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
ecd8b549114cbd56f82480f0e89e4d47a61cdccb
Wordpress Stackexchange Q: My add_action (wp_footer, 'method') is not calling? In my themes functions.php file I have put: add_action('wp_footer', 'method'); function method() { echo "this is being called"; die(); } My wordpress footer.php file looks like this: <?php wp_footer(); ?> </body> </html> What could be the reason my add_action hook is not being called? I can provide additional code or information if needed. EDIT: Instead of die() if I echo a script it won't appear in the pages footer add_action('wp_footer', 'method'); function method() { echo "<script>...</script>"; } A: In a WordPress footer hooks are different for back-end(dashboard) and front-end. In Dashboard use "admin_footer" hook. In Front-end use "wp_footer" hook.
Q: My add_action (wp_footer, 'method') is not calling? In my themes functions.php file I have put: add_action('wp_footer', 'method'); function method() { echo "this is being called"; die(); } My wordpress footer.php file looks like this: <?php wp_footer(); ?> </body> </html> What could be the reason my add_action hook is not being called? I can provide additional code or information if needed. EDIT: Instead of die() if I echo a script it won't appear in the pages footer add_action('wp_footer', 'method'); function method() { echo "<script>...</script>"; } A: In a WordPress footer hooks are different for back-end(dashboard) and front-end. In Dashboard use "admin_footer" hook. In Front-end use "wp_footer" hook. A: With such a general function name like method() a collision could be happening. Try something a little more unique than that. Also, if you have access to the server you could also print it to the error log so you don't have to worry when the page is being rendered.
wordpress
{ "language": "en", "length": 158, "provenance": "stackexchange_00019.jsonl.gz:456464", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/191523" }
[ 0.05621337890625, 0.039825439453125, -0.04400634765625, -0.016265869140625, 0.048553466796875, -0.051361083984375, 0.046539306640625, -0.032989501953125, -0.0121307373046875, 0.02484130859375, -0.0134735107421875, 0.005390167236328125, 0.012176513671875, -0.019866943359375, -0.006603240966796875, -0.025299072265625, 0.040374755859375, 0.0032215118408203125, 0.070556640625, -0.00637054443359375, 0.01378631591796875, 0.028106689453125, 0.046661376953125, 0.0816650390625, 0.003101348876953125, -0.0433349609375, 0.0682373046875, 0.0168609619140625, -0.0018129348754882812, -0.0081939697265625, 0.009735107421875, -0.00460052490234375, 0.005126953125, 0.04205322265625, -0.0252685546875, -0.0040740966796875, 0.0298004150390625, 0.01168060302734375, 0.0115509033203125, 0.05084228515625, 0.0181884765625, -0.0030803680419921875, -0.00591278076171875, 0.00315093994140625, -0.0265350341796875, -0.060943603515625, 0.05914306640625, 0.0046234130859375, 0.004405975341796875, -0.01788330078125, -0.01184844970703125, -0.002864837646484375, 0.00786590576171875, -0.018402099609375, -0.006992340087890625, -0.0203399658203125, -0.0142822265625, 0.047210693359375, 0.0143890380859375, 0.007671356201171875, -0.02685546875, 0.0278778076171875, -0.00217437744140625, -0.0285797119140625, -0.0236663818359375, -0.00799560546875, -0.03900146484375, -0.01490020751953125, -0.0018711090087890625, 0.01157379150390625, 0.039886474609375, -0.00849151611328125, -0.0084686279296875, 0.0299530029296875, 0.01555633544921875, -0.050537109375, 0.01959228515625, -0.01485443115234375, 0.012786865234375, 0.05072021484375, 0.0178070068359375, -0.002979278564453125, -0.01074981689453125, -0.020782470703125, 0.00849151611328125, -0.005001068115234375, -0.01462554931640625, -0.01276397705078125, -0.0667724609375, -0.04241943359375, -0.046112060546875, -0.06292724609375, -0.0374755859375, -0.04229736328125, -0.01297760009765625, -0.0209808349609375, -0.002803802490234375, 0.0298309326171875, 0.0089263916015625, 0.0199432373046875, 0.028656005859375, -0.042022705078125, 0.0450439453125, -0.045684814453125, 0.007076263427734375, 0.06207275390625, -0.0126953125, 0.0089111328125, 0.0217132568359375, 0.016876220703125, 0.0216827392578125, -0.0364990234375, 0.0386962890625, -0.0225372314453125, 0.00865936279296875, -0.03472900390625, -0.033905029296875, 0.063232421875, 0.0191650390625, -0.0029850006103515625, 0.01593017578125, 0.02520751953125, -0.0067291259765625, -0.0005540847778320312, 0.0028667449951171875, -0.0084381103515625, -0.020355224609375, -0.01535797119140625, 0.07568359375, 0.0135498046875, -0.024566650390625, 0.01141357421875, 0.0318603515625, -0.03759765625, -0.0341796875, -0.0175018310546875, 0.021575927734375, 0.00786590576171875, -0.0169219970703125, 0.01934814453125, 0.004791259765625, -0.042144775390625, -0.031524658203125, -0.004486083984375, 0.014251708984375, 0.0033664703369140625, 0.00513458251953125, 0.005115509033203125, 0.022125244140625, -0.0104827880859375, 0.0246124267578125, -0.05291748046875, 0.01049041748046875, 0.016632080078125, -0.00463104248046875, 0.0210723876953125, -0.0244598388671875, 0.00849151611328125, -0.0104217529296875, 0.02099609375, -0.035308837890625, -0.016937255859375, 0.012451171875, -0.06939697265625, -0.062164306640625, -0.004364013671875, -0.002166748046875, 0.00003719329833984375, 0.0218048095703125, 0.057220458984375, 0.00914764404296875, 0.0090789794921875, 0.01187896728515625, 0.02032470703125, -0.00508880615234375, -0.0029850006103515625, -0.000942230224609375, 0.0657958984375, 0.0218048095703125, -0.052398681640625, -0.03802490234375, -0.05328369140625, 0.08148193359375, -0.0208892822265625, -0.042724609375, 0.04156494140625, 0.029449462890625, 0.07879638671875, -0.01824951171875, 0.022216796875, 0.01181793212890625, 0.0556640625, -0.010406494140625, 0.01396942138671875, -0.003864288330078125, -0.03216552734375, -0.044403076171875, -0.00664520263671875, -0.0267486572265625, 0.0176849365234375, 0.00341033935546875, 0.00677490234375, 0.00728607177734375, 0.01526641845703125, 0.0091705322265625, 0.0224151611328125, -0.01219940185546875, 0.01506805419921875, 0.0046234130859375, 0.0008473396301269531, 0.0228271484375, 0.0302276611328125, -0.038726806640625, -0.0298614501953125, -0.034942626953125, 0.0310516357421875, -0.062042236328125, 0.0239105224609375, -0.01486968994140625, 0.02008056640625, -0.0234527587890625, -0.0163116455078125, -0.0121307373046875, -0.0198211669921875, 0.029022216796875, -0.00786590576171875, -0.022857666015625, -0.0298004150390625, -0.026092529296875, 0.01499176025390625, -0.0799560546875, 0.05377197265625, 0.0192718505859375, 0.047393798828125, -0.0288238525390625, -0.03485107421875, -0.035919189453125, -0.057098388671875, 0.021148681640625, 0.0638427734375, 0.02935791015625, 0.023193359375, -0.006855010986328125, -0.00322723388671875, 0.01232147216796875, -0.02423095703125, 0.02655029296875, -0.02337646484375, -0.00555419921875, 0.0439453125, 0.005542755126953125, 0.017578125, 0.0018930435180664062, -0.04052734375, -0.0194854736328125, 0.036529541015625, -0.0142059326171875, -0.052886962890625, 0.014739990234375, -0.0022220611572265625, 0.03143310546875, -0.0670166015625, -0.06597900390625, -0.012939453125, -0.0250091552734375, -0.0193939208984375, -0.0181427001953125, -0.0084991455078125, -0.0183563232421875, -0.0183868408203125, 0.041412353515625, 0.0106353759765625, -0.0096282958984375, 0.0364990234375, 0.0085906982421875, -0.0181121826171875, 0.0015888214111328125, -0.0039043426513671875, -0.01885986328125, 0.01024627685546875, -0.00433349609375, 0.0531005859375, 0.004665374755859375, -0.0272064208984375, 0.0146636962890625, -0.036956787109375, -0.023651123046875, -0.044891357421875, 0.032440185546875, 0.036468505859375, 0.053955078125, 0.0256195068359375, 0.0037403106689453125, 0.0233612060546875, 0.01499176025390625, -0.014801025390625, 0.00147247314453125, 0.0279388427734375, 0.005710601806640625, 0.0125274658203125, 0.00556182861328125, 0.047119140625, 0.00724029541015625, -0.0025177001953125, 0.003932952880859375, -0.00432586669921875, 0.015655517578125, -0.015899658203125, -0.0291900634765625, -0.0100555419921875, -0.04827880859375, 0.0301513671875, 0.01519012451171875, 0.0167388916015625, -0.004238128662109375, -0.031829833984375, -0.0165557861328125, -7.152557373046875e-7, -0.06494140625, -0.0576171875, 0.01313018798828125, -0.10858154296875, 0.021087646484375, -0.0026607513427734375, -0.06884765625, -0.03411865234375, 0.05291748046875, 0.00806427001953125, -0.017791748046875, -0.00933074951171875, -0.014495849609375, -0.0240020751953125, -0.049407958984375, -0.005535125732421875, 0.013946533203125, 0.01788330078125, 0.0027065277099609375, 0.0341796875, -0.005649566650390625, -0.033538818359375, 0.010650634765625, -0.04779052734375, -0.01360321044921875, 0.0211029052734375, 0.026641845703125, 0.005336761474609375, 0.0031757354736328125, 0.0180206298828125, -0.02734375, 0.0197906494140625, -0.0285797119140625, -0.05255126953125, -0.0224761962890625, -0.0653076171875, -0.005626678466796875, 0.09588623046875, 0.0167083740234375, -0.07757568359375, 0.041656494140625, -0.08203125, 0.00011372566223144531, 0.0204315185546875, -0.0039005279541015625, 0.0169677734375, -0.002185821533203125, -0.0489501953125, -0.00030422210693359375, 0.0229949951171875, 0.0265655517578125, 0.0194244384765625, 0.006938934326171875, 0.0252532958984375, -0.0193328857421875, -0.0030364990234375, -0.0018949508666992188, -0.0066986083984375, -0.019805908203125, -0.0210113525390625, 0.0181732177734375, -0.0155487060546875, 0.04437255859375, 0.0033702850341796875, 0.0200042724609375, -0.041473388671875, -0.00836944580078125, 0.01959228515625, -0.038177490234375, -0.00428009033203125, -0.01026153564453125, 0.00719451904296875, 0.00992584228515625, 0.034027099609375, -0.053741455078125, -0.0201873779296875, 0.0211334228515625, 0.034027099609375, -0.058929443359375, -0.049835205078125, -0.0239105224609375, -0.00887298583984375, -0.0654296875, 0.00717926025390625, 0.006069183349609375, -0.0223846435546875, -0.0207061767578125, 0.02850341796875, -0.048126220703125, -0.01947021484375, 0.0153350830078125, -0.032562255859375, -0.006969451904296875, 0.035675048828125, -0.043243408203125, 0.01434326171875, -0.0131683349609375, -0.0294189453125, -0.0447998046875, 0.004116058349609375, -0.064453125, 0.040313720703125, 0.052001953125, -0.04205322265625, -0.005725860595703125, 0.02093505859375, 0.035308837890625, 0.0037059783935546875, 0.039337158203125, 0.01065826416015625, 0.021484375, -0.043853759765625, 0.0084686279296875, -0.046356201171875, -0.00577545166015625, 0.0038776397705078125, -0.01378631591796875, 0.052032470703125, -0.0247955322265625, 0.01214599609375, 0.005039215087890625, -0.026275634765625, -0.01514434814453125, -0.025726318359375, -0.0240631103515625, -0.0030269622802734375, 0.004955291748046875, -0.0284881591796875, -0.021240234375, -0.010467529296875, 0.0200653076171875, -0.056640625, 0.01218414306640625, 0.0229339599609375, 0.11083984375, 0.0150299072265625, 0.020355224609375, -0.055389404296875, 0.0151214599609375, 0.044464111328125, -0.00759124755859375, 0.01116180419921875, -0.00757598876953125, -0.03466796875, 0.04962158203125, 0.009490966796875, 0.0307464599609375, -0.05126953125, 0.09283447265625, -0.0006694793701171875, 0.0022754669189453125, 0.035125732421875, 0.005886077880859375, -0.024200439453125, -0.01457977294921875, -0.033538818359375, -0.00725555419921875, -0.00970458984375, 0.04541015625, -0.039581298828125, 0.07977294921875, -0.038330078125, 0.0074615478515625, -0.0140838623046875, -0.05755615234375, 0.07940673828125, 0.033203125, 0.002132415771484375, 0.0109710693359375, 0.032806396484375, -0.0093994140625, 0.0025043487548828125, -0.0209503173828125, -0.0163726806640625, 0.01303863525390625, 0.005329132080078125, -0.0221710205078125, 0.0183868408203125, -0.01189422607421875, 0.06787109375, 0.036346435546875, -0.0262298583984375, -0.006450653076171875, -0.00859832763671875, 0.01971435546875, -0.029052734375, -0.006465911865234375, 0.0013856887817382812, 0.0100250244140625, 0.0036907196044921875, 0.00634765625, -0.0008745193481445312, 0.004116058349609375, -0.01032257080078125, 0.0587158203125, 0.0261688232421875, -0.0095977783203125, 0.00334930419921875, 0.02081298828125, 0.0308074951171875, -0.01131439208984375, -0.014129638671875, 0.0007290840148925781, -0.04010009765625, 0.0684814453125, 0.020782470703125, -0.04168701171875, 0.003803253173828125, 0.04815673828125, -0.0003933906555175781, -0.019317626953125, 0.01549530029296875, -0.001506805419921875, 0.0198974609375, -0.0029296875, -0.0103912353515625, 0.0214080810546875, -0.0176849365234375, 0.002410888671875, 0.03350830078125, 0.0289764404296875, -0.037567138671875, -0.00966644287109375, -0.00353240966796875, 0.0168304443359375, -0.031524658203125, -0.01171112060546875, 0.056488037109375, 0.0247344970703125, 0.056854248046875, 0.0026912689208984375, -0.00030732154846191406, 0.0122528076171875, 0.0136566162109375, -0.004665374755859375, 0.01318359375, 0.0121002197265625, -0.0225677490234375, -0.034088134765625, -0.0196075439453125, -0.022552490234375, 0.0697021484375, -0.013397216796875, 0.037353515625, -0.005832672119140625, -0.04754638671875, 0.01531219482421875, 0.01158905029296875, 0.0635986328125, 0.03759765625, -0.05206298828125, -0.0003333091735839844, -0.0032367706298828125, -0.0133209228515625, -0.011474609375, -0.0080108642578125, -0.054443359375, -0.01476287841796875, 0.000606536865234375, 0.01065826416015625, -0.0197296142578125, -0.02337646484375, 0.01483917236328125, 0.0247802734375, -0.00452423095703125, 0.023590087890625, -0.027496337890625, 0.0628662109375, -0.0024433135986328125, 0.02850341796875, -0.01128387451171875, 0.03887939453125, 0.02325439453125, -0.009063720703125, 0.0249481201171875, -0.02880859375, -0.00634765625, -0.01189422607421875, -0.0294342041015625, -0.03253173828125, 0.0254669189453125, -0.01580810546875, -0.0265960693359375, 0.0003948211669921875, 0.0014286041259765625, -0.0235595703125, 0.03448486328125, 0.033203125, -0.006870269775390625, -0.02789306640625, -0.0504150390625, -0.0161590576171875, 0.0031299591064453125, 0.020782470703125, 0.0458984375, -0.04095458984375, 0.018646240234375, 0.021636962890625, -0.0283355712890625, 0.05194091796875, 0.061798095703125, 0.0088958740234375, 0.0552978515625, 0.002880096435546875, 0.0229644775390625, 0.0296173095703125, 0.060302734375, -0.0057525634765625, -0.09033203125, 0.0279541015625, 0.01195526123046875, -0.004169464111328125, 0.027099609375, -0.0227203369140625, 0.041412353515625, 0.07318115234375, 0.08416748046875, -0.09619140625, 0.0196380615234375, 0.0031490325927734375, -0.038330078125, 0.039337158203125, -0.038787841796875, 0.0171661376953125, 0.0008993148803710938, 0.056243896484375, 0.059051513671875, -0.00384521484375, 0.036712646484375, 0.01129913330078125, -0.005123138427734375, 0.0211181640625, -0.01332855224609375, -0.0017671585083007812, -0.0133819580078125, -0.0115509033203125, 0.0125579833984375, 0.014739990234375, -0.0193023681640625, -0.007061004638671875, -0.020477294921875, -0.0102996826171875, -0.038482666015625, 0.004497528076171875, -0.03704833984375, 0.01898193359375, 0.007293701171875, -0.031463623046875, 0.037841796875, 0.03094482421875, -0.0222320556640625, -0.0015716552734375, -0.004718780517578125, 0.01262664794921875, -0.024627685546875, -0.023193359375, 0.030731201171875, -0.0015888214111328125, -0.0460205078125, 0.027618408203125, -0.033782958984375, -0.03717041015625, 0.01212310791015625, -0.027313232421875, 0.0172271728515625, -0.050628662109375, -0.006610870361328125, 0.021026611328125, -0.0170135498046875, 0.01151275634765625, -0.0148162841796875, 0.0277252197265625, -0.04437255859375, 0.007732391357421875, 0.016082763671875, 0.01436614990234375, 0.006649017333984375, 0.004871368408203125, 0.004581451416015625, 0.10394287109375, 0.007221221923828125, -0.055938720703125, -0.0005679130554199219, 0.07623291015625, -0.01904296875, 0.08074951171875, -0.043701171875, 0.046875, -0.004032135009765625, 0.041229248046875, -0.02716064453125, 0.0013427734375, 0.003002166748046875, 0.0154876708984375, 0.044464111328125, 0.01325225830078125, -0.0024890899658203125, 0.00218963623046875, 0.040313720703125, 0.04888916015625, -0.0010271072387695312, -0.0023517608642578125, -0.01428985595703125, -0.0117034912109375, -0.01556396484375, 0.00751495361328125, 0.02081298828125, -0.0160369873046875, -0.03717041015625, 0.01904296875, -0.0277099609375, -0.05548095703125, 0.007965087890625, -0.0198822021484375, -0.00313568115234375, -0.0005645751953125, -0.024993896484375, -0.00682830810546875, -0.0250701904296875, 0.05328369140625, -0.0036373138427734375, -0.0111541748046875, -0.033935546875, -0.03131103515625, 0.0208740234375, -0.01512908935546875, 0.002246856689453125, -0.0024585723876953125, 0.00872039794921875, 0.0008459091186523438, -0.0231170654296875, -0.01277923583984375, 0.0214080810546875, -0.0261993408203125, 0.049835205078125, 0.04302978515625, 0.0287322998046875, -0.00789642333984375, 0.00760650634765625, 0.0261688232421875, 0.07232666015625, -0.0421142578125, -0.01126861572265625, -0.0103607177734375, -0.0013141632080078125, 0.0216827392578125, -0.0338134765625, 0.0286407470703125, -0.0010318756103515625, 0.0028209686279296875, -0.0125885009765625, -0.0276947021484375, -0.00920867919921875, 0.03997802734375, 0.0004203319549560547, 0.005542755126953125, -0.002201080322265625, -0.04095458984375, 0.0008106231689453125, -0.00047135353088378906, -0.0107421875, 0.03961181640625, -0.005290985107421875, 0.03961181640625, -0.05731201171875, -0.0049285888671875, -0.034332275390625, 0.07037353515625, -0.01535797119140625, 0.0457763671875, -0.04583740234375, -0.035125732421875, -0.0154266357421875, 0.042327880859375, 0.032562255859375, 0.048614501953125, 0.034698486328125, 0.01503753662109375, -0.0015993118286132812, 0.01312255859375, 0.043182373046875, -0.0183563232421875, -0.0574951171875, -0.0051116943359375, -0.05181884765625, 0.01641845703125, -0.000553131103515625, 0.0251312255859375, 0.012115478515625, 0.0231170654296875, -0.019744873046875, -0.006134033203125, 0.0033397674560546875, -0.032806396484375, 0.0251617431640625, -0.007503509521484375, 0.045257568359375, 0.0027408599853515625, 0.0021800994873046875, 0.00505828857421875, -0.0058746337890625, -0.052581787109375, 0.00933074951171875, 0.032958984375, -0.01313018798828125, 0.01099395751953125, 0.0125274658203125, 0.005115509033203125, 0.0197296142578125, -0.007381439208984375, -0.0045928955078125, 0.00020647048950195312, 0.045867919921875, 0.0120697021484375, -0.006801605224609375, -0.0089263916015625, -0.0002758502960205078, 0.054168701171875, 0.0070953369140625, 0.09246826171875, -0.05633544921875, 0.020599365234375, -0.005340576171875, 0.0245361328125, -0.020111083984375, -0.006671905517578125, 0.0148162841796875, 0.0042572021484375, -0.00994110107421875, -0.0186309814453125, -0.08624267578125, 0.0103302001953125, 0.01751708984375, 0.022705078125, 0.038299560546875, -0.030975341796875, 0.0305633544921875, 0.0086212158203125, 0.018829345703125, -0.006999969482421875, -0.060394287109375, -0.044036865234375, -0.0030498504638671875, 0.0236053466796875, 0.0865478515625, 0.033477783203125, 0.008758544921875, -0.032745361328125, -0.03155517578125, -0.024200439453125, -0.01009368896484375, -0.043304443359375, 0.01373291015625, -0.0085906982421875, 0.00908660888671875, 0.00940704345703125, -0.0171966552734375, 0.04339599609375, -0.002063751220703125, 0.00014209747314453125, 0.018829345703125, -0.022216796875, 0.0107879638671875, 0.007671356201171875, 0.0278472900390625, -0.026885986328125, 0.005634307861328125, 0.0307159423828125, -0.004543304443359375, -0.007297515869140625, -0.00716400146484375, -0.0208587646484375, -0.025360107421875, 0.004947662353515625, 0.0199127197265625, -0.006221771240234375, -0.007694244384765625, -0.01203155517578125, 0.0164337158203125, 0.0258636474609375, 0.003238677978515625, -0.05865478515625, 0.033477783203125, -0.039947509765625, 0.04229736328125, -0.0223236083984375, 0.01226806640625, 0.02239990234375, 0.054046630859375, -0.0430908203125, 0.00603485107421875, 0.01512908935546875, -0.013916015625, 0.0054168701171875, 0.0252532958984375, 0.036346435546875, -0.0160980224609375, -0.01268768310546875, 0.042999267578125, 0.005817413330078125, 0.09515380859375, -0.0026226043701171875, -0.0244140625, -0.004856109619140625, 0.01490020751953125, -0.01308441162109375, -0.0238037109375, 0.0234527587890625, -0.033843994140625, -0.0269012451171875, -0.0229034423828125, 0.01313018798828125, 0.0236358642578125, -0.03472900390625, -0.0816650390625, 0.05328369140625, -0.02056884765625, -0.032684326171875, -0.09326171875, 0.01222991943359375, 0.0100860595703125, 0.036163330078125, -0.036651611328125, 0.0012836456298828125, -0.03204345703125, 0.0452880859375, -0.00014495849609375, 0.0224761962890625, 0.027374267578125, -0.0208587646484375, -0.01560211181640625, 0.016082763671875, 0.0149383544921875, 0.004604339599609375, 0.017913818359375, -0.03424072265625, 0.06390380859375, 0.045135498046875, -0.03094482421875, 0.0233917236328125, 0.0160369873046875, -0.00522613525390625, 0.0009784698486328125, -0.0498046875, -0.009246826171875, -0.030303955078125, 0.0482177734375, -0.038299560546875, 0.004970550537109375, 0.0019407272338867188, -0.01209259033203125, -0.0283203125, -0.03802490234375, -0.00891876220703125, 0.020751953125, -0.06927490234375, -0.0042572021484375, 0.01551055908203125, 0.0033740997314453125, -0.00989532470703125, -0.007122039794921875, -0.004703521728515625, 0.0001443624496459961, 0.0301361083984375, -0.0012445449829101562, 0.01348114013671875, -0.06890869140625, 0.114990234375, -0.051605224609375, -0.0169219970703125, 0.035064697265625, 0.044891357421875, 0.04730224609375, 0.023162841796875, 0.0032215118408203125, 0.038818359375, -0.052581787109375, 0.01715087890625, 0.007350921630859375, -0.00484466552734375, -0.03692626953125, -0.0026912689208984375, 0.0017976760864257812, 0.03143310546875, -0.0299072265625, 0.038482666015625, 0.03546142578125, 0.061431884765625, -0.0013275146484375, 0.084716796875, -0.046783447265625, 0.0567626953125, -0.01763916015625, 0.035797119140625, 0.0037670135498046875, 0.00714111328125, 0.047149658203125, 0.0005407333374023438, -0.00907135009765625, 0.0312042236328125, -0.00859832763671875, -0.0457763671875, 0.0218353271484375, -0.0028285980224609375, 0.01983642578125, 0.01461029052734375 ]
35c9165bc2215a3e146aecace61e222db64aeda3
Wordpress Stackexchange Q: For what security reasons are svgs blocked in the media uploader? I see that SVGs are blocked by default in the media uploader and you have to add it as a supported MIME type in functions.php. What security reasons are behind this? A: SVG can contain JavaScript. JavaScript can be used to hijack cookies or do other questionable actions. It can even be "hidden" in namespaces: <html xmlns:ø="http://www.w3.org/1999/xhtml"> <ø:script src="//0x.lv/" /> </html> source It is very hard to filter that out during the upload, so it is just not allowed by default.
Q: For what security reasons are svgs blocked in the media uploader? I see that SVGs are blocked by default in the media uploader and you have to add it as a supported MIME type in functions.php. What security reasons are behind this? A: SVG can contain JavaScript. JavaScript can be used to hijack cookies or do other questionable actions. It can even be "hidden" in namespaces: <html xmlns:ø="http://www.w3.org/1999/xhtml"> <ø:script src="//0x.lv/" /> </html> source It is very hard to filter that out during the upload, so it is just not allowed by default.
wordpress
{ "language": "en", "length": 93, "provenance": "stackexchange_00019.jsonl.gz:456467", "question_score": "15", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/191536" }
[ 0.08837890625, -0.021575927734375, 0.03582763671875, -0.029998779296875, 0.009735107421875, -0.0231170654296875, 0.06536865234375, 0.0010900497436523438, -0.029266357421875, 0.044219970703125, 0.005786895751953125, -0.0022106170654296875, -0.0009531974792480469, -0.032135009765625, -0.01160430908203125, -0.0223388671875, 0.0372314453125, -0.0264739990234375, -0.0028171539306640625, -0.01922607421875, 0.026763916015625, 0.0133056640625, 0.0030117034912109375, 0.06640625, -0.00970458984375, -0.0223541259765625, 0.08447265625, -0.049346923828125, -0.0252838134765625, -0.0648193359375, -0.0022869110107421875, 0.0487060546875, -0.007534027099609375, 0.052703857421875, -0.024078369140625, 0.0284576416015625, 0.035064697265625, 0.0268402099609375, 0.033966064453125, 0.030029296875, 0.014892578125, 0.004619598388671875, 0.0660400390625, 0.032501220703125, -0.0011386871337890625, -0.00010728836059570312, 0.004970550537109375, -0.0330810546875, -0.0016565322875976562, 0.05975341796875, 0.00440216064453125, -0.01873779296875, -0.0041351318359375, 0.06671142578125, -0.01091766357421875, -0.0278778076171875, -0.021759033203125, 0.0445556640625, 0.016845703125, 0.05548095703125, -0.006519317626953125, 0.043243408203125, -0.038421630859375, -0.050201416015625, -0.0011663436889648438, 0.006092071533203125, 0.0184173583984375, 0.010711669921875, -0.07318115234375, -0.024169921875, 0.047149658203125, -0.0396728515625, 0.0249176025390625, -0.044189453125, 0.028289794921875, 0.024566650390625, -0.0260772705078125, 0.016143798828125, 0.02618408203125, -0.01352691650390625, 0.012542724609375, -0.0207061767578125, -0.0222320556640625, 0.003681182861328125, -0.004291534423828125, 0.003093719482421875, -0.00566864013671875, -0.01201629638671875, 0.0189056396484375, -0.02142333984375, -0.006015777587890625, 0.0263824462890625, -0.0010519027709960938, -0.00934600830078125, -0.024566650390625, -0.02911376953125, -0.01116180419921875, 0.00385284423828125, 0.00037097930908203125, 0.0095672607421875, -0.0007948875427246094, -0.0171051025390625, 0.011138916015625, -0.02587890625, -0.0010328292846679688, 0.03094482421875, -0.003490447998046875, -0.0012187957763671875, -0.00586700439453125, 0.0254364013671875, 0.004169464111328125, -0.056427001953125, 0.023040771484375, -0.0299835205078125, -0.01763916015625, -0.01251983642578125, -0.005290985107421875, -0.006183624267578125, 0.0169525146484375, -0.0450439453125, -0.006069183349609375, 0.0267181396484375, -0.0191192626953125, -0.0293121337890625, 0.03656005859375, 0.00533294677734375, -0.0172119140625, 0.01200103759765625, -0.018402099609375, 0.0677490234375, -0.026519775390625, -0.037109375, 0.0204315185546875, 0.03631591796875, 0.00865936279296875, -0.033294677734375, 0.015411376953125, -0.002948760986328125, 0.007335662841796875, 0.032928466796875, -0.0168609619140625, -0.06781005859375, -0.0195465087890625, 0.0127410888671875, -0.0267181396484375, -0.0030498504638671875, 0.005290985107421875, 0.0171051025390625, -0.00731658935546875, -0.034088134765625, 0.006450653076171875, -0.00420379638671875, 0.0296173095703125, -0.011444091796875, 0.006862640380859375, -0.03424072265625, 0.0228424072265625, -0.030975341796875, 0.0027484893798828125, -0.0286865234375, -0.014373779296875, 0.03045654296875, 0.055877685546875, -0.00664520263671875, 0.006927490234375, -0.051483154296875, -0.0086517333984375, 0.0034122467041015625, 0.03656005859375, 0.076904296875, -0.01073455810546875, -0.0303802490234375, 0.0167694091796875, 0.031524658203125, -0.0104522705078125, 0.01180267333984375, 0.025848388671875, 0.0152435302734375, 0.01861572265625, 0.02716064453125, -0.00547027587890625, -0.028350830078125, 0.07421875, -0.019134521484375, -0.041534423828125, 0.04705810546875, 0.01227569580078125, 0.042816162109375, 0.0036449432373046875, -0.0023555755615234375, 0.038604736328125, 0.0347900390625, -0.0247802734375, 0.0171661376953125, 0.010894775390625, -0.057586669921875, -0.0179290771484375, -0.05615234375, 0.005321502685546875, 0.0201873779296875, 0.0836181640625, 0.006244659423828125, -0.01140594482421875, -0.021026611328125, 0.003536224365234375, -0.06707763671875, 0.03668212890625, -0.0237884521484375, -0.0594482421875, 0.015777587890625, 0.045074462890625, -0.0281524658203125, -0.05047607421875, 0.079833984375, 0.03228759765625, -0.047271728515625, -0.0002046823501586914, 0.0543212890625, -0.0173187255859375, 0.041748046875, -0.027862548828125, -0.04693603515625, -0.0143585205078125, 0.01348114013671875, -0.00888824462890625, 0.03729248046875, -0.01849365234375, 0.034088134765625, 0.053466796875, 0.036956787109375, 0.0552978515625, -0.038330078125, -0.007568359375, 0.02484130859375, -0.026397705078125, -0.01212310791015625, -0.0307159423828125, -0.058441162109375, 0.00536346435546875, 0.047119140625, 0.01654052734375, 0.04412841796875, -0.0029544830322265625, 0.03485107421875, 0.04510498046875, -0.029296875, 0.014007568359375, 0.003040313720703125, -0.0341796875, -0.0273284912109375, 0.0215301513671875, -0.0140380859375, 0.02618408203125, -0.0242919921875, -0.005474090576171875, 0.0199127197265625, 0.0279693603515625, -0.02978515625, -0.01727294921875, 0.04803466796875, 0.001560211181640625, 0.04937744140625, -0.04071044921875, 0.030426025390625, 0.008453369140625, 0.014862060546875, 0.00897979736328125, 0.0169525146484375, -0.0263519287109375, 0.024810791015625, 0.0146331787109375, -0.037109375, -0.00029277801513671875, 0.0797119140625, 0.0875244140625, 0.006793975830078125, -0.01214599609375, -0.056732177734375, 0.0255126953125, 0.061767578125, -0.0268096923828125, -0.01312255859375, -0.042449951171875, -0.0146331787109375, 0.00748443603515625, -0.0160675048828125, 0.0119781494140625, -0.002407073974609375, -0.0276336669921875, -0.00675201416015625, 0.0064849853515625, 0.05615234375, -0.0134124755859375, 0.0214691162109375, 0.0027637481689453125, 0.004787445068359375, 0.04156494140625, -0.016204833984375, 0.0186767578125, -0.002109527587890625, 0.060699462890625, 0.0645751953125, -0.01183319091796875, 0.014556884765625, 0.0135650634765625, -0.0305938720703125, 0.019439697265625, 0.036376953125, -0.0073394775390625, -0.0223846435546875, -0.03692626953125, -0.02374267578125, -0.0041656494140625, -0.0927734375, 0.006534576416015625, -0.005733489990234375, -0.04718017578125, -0.04559326171875, -0.0858154296875, -0.00518035888671875, 0.015899658203125, -0.037933349609375, 0.0164337158203125, -0.00559234619140625, -0.00807952880859375, -0.0213623046875, 0.0166015625, -0.00970458984375, -0.0300445556640625, 0.01300811767578125, -0.04241943359375, -0.034454345703125, -0.040802001953125, 0.044769287109375, -0.0110626220703125, 0.023590087890625, 0.0232391357421875, 0.004486083984375, -0.000017642974853515625, -0.044952392578125, 0.040374755859375, -0.03338623046875, -0.007205963134765625, 0.0294342041015625, 0.0012731552124023438, -0.004894256591796875, 0.0079498291015625, -0.0008435249328613281, -0.0088348388671875, 0.0184478759765625, -0.01800537109375, -0.0185089111328125, -0.0231170654296875, -0.041290283203125, -0.0168914794921875, 0.044097900390625, 0.0296173095703125, -0.0391845703125, 0.0022754669189453125, -0.061614990234375, 0.006923675537109375, 0.005718231201171875, 0.0011320114135742188, -0.0025196075439453125, -0.04296875, -0.0288848876953125, -0.005401611328125, 0.0389404296875, 0.045501708984375, 0.044677734375, -0.03369140625, 0.0034694671630859375, 0.0273284912109375, -0.0006585121154785156, 0.052032470703125, 0.0003898143768310547, 0.01071929931640625, -0.0262603759765625, 0.024139404296875, -0.0003123283386230469, -0.0120391845703125, -0.0140838623046875, -0.0018968582153320312, -0.01349639892578125, -0.0087432861328125, 0.012115478515625, -0.027008056640625, 0.037200927734375, -0.021209716796875, 0.0016546249389648438, -0.033721923828125, 0.04913330078125, -0.0188446044921875, -0.0172576904296875, -0.036468505859375, -0.00908660888671875, -0.01198577880859375, -0.038116455078125, -0.00914764404296875, 0.01128387451171875, 0.03076171875, 0.00891876220703125, 0.007965087890625, -0.0021457672119140625, 0.0087127685546875, -0.05267333984375, 0.01462554931640625, -0.0181732177734375, 0.0166168212890625, 0.047149658203125, -0.016937255859375, -0.0009918212890625, 0.019287109375, -0.037750244140625, 0.019927978515625, 0.0030841827392578125, -0.0673828125, -0.0201263427734375, -0.0208892822265625, 0.0673828125, -0.005840301513671875, 0.0394287109375, -0.06304931640625, 0.033447265625, -0.022003173828125, -0.01134490966796875, -0.01273345947265625, 0.006046295166015625, 0.0196685791015625, -0.0005478858947753906, -0.035003662109375, -0.0210723876953125, -0.01119232177734375, 0.0149688720703125, -0.020294189453125, -0.0316162109375, -0.0216827392578125, -0.0767822265625, 0.031097412109375, -0.04229736328125, -0.0283966064453125, -0.056304931640625, -0.034332275390625, 0.007843017578125, -0.009979248046875, 0.00223541259765625, -0.06195068359375, -0.036834716796875, 0.04791259765625, 0.047943115234375, -0.0193634033203125, -0.010986328125, 0.0283355712890625, 0.005992889404296875, -0.04681396484375, -0.061798095703125, -0.01428985595703125, 0.03070068359375, -0.0330810546875, 0.034759521484375, 0.00467681884765625, -0.0224761962890625, 0.058074951171875, -0.0169525146484375, 0.017547607421875, -0.03759765625, 0.076904296875, -0.0024242401123046875, 0.0089263916015625, 0.01971435546875, 0.0021514892578125, -0.02044677734375, 0.0201873779296875, -0.0003190040588378906, 0.00847625732421875, 0.01001739501953125, -0.0032634735107421875, 0.007190704345703125, -0.038665771484375, -0.025970458984375, -0.0096282958984375, -0.0027904510498046875, 0.016693115234375, 0.05975341796875, 0.02069091796875, 0.0006194114685058594, 0.0223541259765625, 0.05279541015625, 0.0263671875, -0.0058135986328125, -0.045562744140625, -0.01312255859375, 0.04437255859375, -0.0249481201171875, 0.011993408203125, 0.03582763671875, 0.00588226318359375, -0.019073486328125, 0.018341064453125, -0.01177978515625, -0.0290374755859375, 0.0132293701171875, -0.03387451171875, -0.0191802978515625, 0.00921630859375, -0.02520751953125, -0.01312255859375, -0.0228424072265625, 0.025238037109375, 0.01358795166015625, -0.005214691162109375, -0.016815185546875, 0.056610107421875, 0.0189971923828125, -0.023193359375, -0.00891876220703125, -0.0197296142578125, 0.0194549560546875, -0.047454833984375, 0.0031604766845703125, 0.0199737548828125, 0.05853271484375, -0.0168304443359375, 0.02410888671875, 0.011077880859375, 0.01386260986328125, -0.039215087890625, 0.038482666015625, -0.0372314453125, 0.01275634765625, -0.028411865234375, 0.015869140625, -0.0318603515625, -0.0531005859375, 0.08203125, -0.024658203125, 0.0017461776733398438, -0.034088134765625, -0.02752685546875, -0.006664276123046875, 0.01329803466796875, 0.01386260986328125, -0.00939178466796875, 0.0034236907958984375, 0.003322601318359375, -0.0227508544921875, -0.0170745849609375, -0.0291748046875, 0.004848480224609375, -0.049774169921875, -0.00787353515625, 0.0117340087890625, -0.040130615234375, -0.018646240234375, 0.01097869873046875, -0.0826416015625, -0.041290283203125, -0.003200531005859375, 0.0003809928894042969, 0.0244598388671875, -0.034271240234375, -0.000194549560546875, -0.00959014892578125, 0.004817962646484375, -0.0005192756652832031, 0.0194854736328125, 0.0198822021484375, -0.01031494140625, -0.0026073455810546875, 0.00449371337890625, -0.044586181640625, -0.026885986328125, 0.006732940673828125, -0.0017805099487304688, -0.01453399658203125, -0.016510009765625, 0.002201080322265625, 0.026824951171875, 0.01215362548828125, 0.028594970703125, 0.007686614990234375, 0.052703857421875, 0.01190185546875, 0.1058349609375, -0.0226593017578125, -0.0223236083984375, 0.029693603515625, -0.0279541015625, -0.02587890625, -0.028656005859375, 0.004184722900390625, 0.00013148784637451172, 0.0192718505859375, -0.029937744140625, -0.034210205078125, -0.00475311279296875, -0.04931640625, -0.019500732421875, 0.019256591796875, -0.008026123046875, 0.0173492431640625, -0.0233306884765625, 0.004444122314453125, -0.0257110595703125, 0.0103607177734375, -0.051910400390625, -0.0105133056640625, -0.0114288330078125, -0.0025119781494140625, 0.00379180908203125, 0.007740020751953125, -0.0455322265625, 0.0484619140625, 0.0250244140625, 0.02716064453125, -0.01312255859375, 0.06005859375, -0.0261993408203125, 0.01251220703125, -0.02618408203125, 0.007213592529296875, 0.052032470703125, 0.021331787109375, 0.01424407958984375, 0.035308837890625, -0.01070404052734375, -0.039794921875, -0.0228424072265625, -0.016021728515625, -0.00627899169921875, -0.0270843505859375, -0.010650634765625, 0.00818634033203125, 0.0462646484375, 0.07073974609375, -0.03863525390625, -0.0083465576171875, 0.00983428955078125, -0.026580810546875, 0.021453857421875, 0.0163421630859375, -0.008758544921875, -0.026397705078125, 0.04364013671875, -0.0280609130859375, -0.0006561279296875, 0.03240966796875, -0.01131439208984375, 0.01216888427734375, -0.0022373199462890625, 0.04315185546875, 0.008544921875, 0.025665283203125, -0.05792236328125, -0.023193359375, -0.0022182464599609375, -0.006542205810546875, 0.019195556640625, -0.01549530029296875, -0.00856781005859375, -0.037445068359375, 0.0097808837890625, -0.00702667236328125, -0.0199127197265625, 0.0149993896484375, -0.005084991455078125, 0.04083251953125, 0.041290283203125, -0.0031280517578125, 0.00018298625946044922, 0.0034847259521484375, 0.009429931640625, 0.06622314453125, -0.01229095458984375, 0.006633758544921875, 0.037139892578125, -0.0098876953125, 0.0019350051879882812, 0.0163116455078125, 0.0027217864990234375, 0.0126495361328125, 0.034942626953125, -0.003692626953125, 0.017059326171875, -0.035186767578125, 0.0687255859375, 0.003643035888671875, -0.037506103515625, -0.01303863525390625, -0.017730712890625, -0.0306549072265625, 0.0085906982421875, -0.0289459228515625, -0.011444091796875, 0.0164642333984375, -0.007175445556640625, -0.06365966796875, 0.0225067138671875, 0.017822265625, 0.032745361328125, 0.02874755859375, -0.015869140625, -0.0341796875, -0.04205322265625, -0.0137939453125, 0.0178985595703125, -0.032470703125, 0.0144195556640625, -0.013946533203125, 0.004505157470703125, 0.0017833709716796875, 0.01470184326171875, 0.0127410888671875, -0.018524169921875, -0.01219940185546875, 0.02215576171875, 0.1134033203125, 0.03607177734375, 0.035980224609375, 0.01800537109375, -0.004138946533203125, 0.0286407470703125, 0.02874755859375, -0.041259765625, 0.0260009765625, -0.0302886962890625, -0.014312744140625, 0.004756927490234375, 0.0034637451171875, -0.00666046142578125, 0.027557373046875, 0.006237030029296875, -0.03875732421875, 0.033447265625, 0.01354217529296875, 0.050689697265625, -0.027435302734375, 0.04791259765625, -0.036285400390625, -0.032379150390625, -0.0232086181640625, -0.033416748046875, 0.01139068603515625, -0.0189208984375, -0.0161285400390625, 0.050262451171875, 0.0147705078125, -0.041534423828125, 0.0015859603881835938, -0.01186370849609375, -0.001705169677734375, -0.01515960693359375, -0.047637939453125, -0.0243377685546875, 0.005077362060546875, -0.052459716796875, 0.020721435546875, 0.03582763671875, -0.0252838134765625, -0.002002716064453125, -0.03228759765625, 0.0023193359375, -0.02447509765625, 0.004489898681640625, -0.0193328857421875, 0.0084381103515625, -0.038330078125, -0.044281005859375, -0.01442718505859375, 0.0006041526794433594, 0.0252227783203125, 0.033111572265625, 0.0127716064453125, 0.0184783935546875, -0.03790283203125, -0.000469207763671875, -0.049163818359375, 0.007564544677734375, 0.0017948150634765625, 0.04656982421875, 0.0215911865234375, 0.042816162109375, -0.0006918907165527344, -0.021575927734375, 0.00798797607421875, 0.01378631591796875, 0.00046443939208984375, 0.0060272216796875, -0.0162811279296875, -0.0205078125, 0.0278778076171875, 0.036895751953125, 0.03851318359375, 0.03631591796875, 0.024444580078125, -0.0269622802734375, -0.00075531005859375, 0.026031494140625, -0.006710052490234375, -0.0328369140625, -0.0115509033203125, -0.043701171875, -0.00702667236328125, 0.0053558349609375, -0.01397705078125, 0.02557373046875, -0.046356201171875, 0.0572509765625, -0.029388427734375, 0.0372314453125, -0.01020050048828125, -0.03729248046875, 0.015289306640625, -0.0528564453125, 0.06268310546875, -0.037567138671875, 0.0036449432373046875, 0.004245758056640625, 0.0048370361328125, -0.0046539306640625, -0.0310821533203125, 0.00412750244140625, -0.0290679931640625, 0.0546875, 0.00445556640625, -0.040557861328125, -0.017822265625, 0.0341796875, 0.02203369140625, 0.06378173828125, 0.003932952880859375, 0.022186279296875, -0.055694580078125, -0.0291595458984375, -0.0107269287109375, 0.010894775390625, 0.0068511962890625, 0.0899658203125, -0.006145477294921875, -0.00533294677734375, 0.00943756103515625, -0.00948333740234375, 0.01076507568359375, 0.0019235610961914062, 0.02911376953125, 0.00027108192443847656, -0.0280303955078125, -0.0217132568359375, 0.0106353759765625, 0.032440185546875, 0.0035991668701171875, -0.0308380126953125, -0.0034503936767578125, -0.005817413330078125, 0.0124359130859375, 0.03985595703125, 0.01232147216796875, -0.04364013671875, -0.056304931640625, -0.076416015625, -0.012359619140625, 0.030181884765625, 0.035736083984375, -0.0020389556884765625, 0.047882080078125, -0.0531005859375, -0.0650634765625, 0.0219879150390625, -0.101806640625, 0.0176544189453125, 0.023284912109375, 0.0112152099609375, -0.0545654296875, -0.043212890625, -0.0310821533203125, -0.0235748291015625, -0.0129852294921875, 0.0224761962890625, -0.03240966796875, -0.012237548828125, 0.01318359375, 0.019195556640625, 0.0211029052734375, -0.040679931640625, -0.0211334228515625, 0.052093505859375, -0.0220184326171875, -0.01073455810546875, -0.023223876953125, 0.0037689208984375, 0.026336669921875, -0.012542724609375, 0.0416259765625, 0.0120391845703125, -0.004756927490234375, -0.07733154296875, 0.018646240234375, 0.03643798828125, -0.00006246566772460938, -0.042633056640625, 0.01678466796875, -0.033233642578125, 0.068603515625, 0.00463104248046875, 0.07391357421875, -0.024749755859375, 0.00533294677734375, -0.055023193359375, -0.033905029296875, -0.001140594482421875, 0.07403564453125, 0.01047515869140625, -0.0003046989440917969, -0.004039764404296875, -0.003803253173828125, 0.05377197265625, 0.02178955078125, 0.013153076171875, 0.0889892578125, -0.0295867919921875, -0.03631591796875, -0.07098388671875, 0.0199127197265625, -0.0010623931884765625, 0.0229339599609375, 0.04290771484375, -0.0222930908203125, -0.079345703125, -0.0609130859375, 0.0201873779296875, -0.00023674964904785156, -0.056640625, -0.10400390625, 0.040191650390625, -0.036407470703125, -0.038909912109375, 0.01690673828125, 0.0022869110107421875, -0.0255279541015625, 0.022491455078125, 0.014495849609375, -0.009368896484375, 0.018341064453125, 0.0179595947265625, -0.0012941360473632812, 0.00013458728790283203, 0.01543426513671875, -0.0021514892578125, -0.03692626953125, 0.0260772705078125, 0.023345947265625, 0.0010852813720703125, -0.00817108154296875, -0.00299835205078125, 0.0294036865234375, 0.030059814453125, -0.0222320556640625, 0.0298309326171875, 0.018829345703125, 0.0020542144775390625, -0.01849365234375, -0.0084228515625, -0.03204345703125, -0.0191192626953125, 0.080810546875, 0.0341796875, 0.0208740234375, -0.0123291015625, 0.0222930908203125, -0.02044677734375, 0.034515380859375, 0.01690673828125, -0.01287841796875, -0.04559326171875, -0.030242919921875, 0.054595947265625, 0.03070068359375, 0.050384521484375, -0.039703369140625, 0.01548004150390625, -0.0265960693359375, 0.0130462646484375, 0.006343841552734375, -0.032135009765625, 0.0204620361328125, 0.04302978515625, -0.0151519775390625, 0.03765869140625, 0.00450897216796875, -0.01456451416015625, 0.04339599609375, 0.0399169921875, 0.04669189453125, -0.036651611328125, -0.00589752197265625, 0.0304718017578125, 0.024200439453125, -0.028778076171875, -0.001255035400390625, -0.0771484375, -0.01413726806640625, 0.0277557373046875, 0.0160675048828125, 0.04571533203125, -0.03515625, 0.012115478515625, 0.01445770263671875, -0.0174102783203125, 0.0038604736328125, -0.07281494140625, -0.037750244140625, 0.043487548828125, -0.0014362335205078125, -0.02972412109375, 0.01284027099609375, -0.019287109375, 0.0298309326171875, 0.041748046875, 0.0027713775634765625, 0.045623779296875, -0.01238250732421875, -0.11248779296875, -0.0275421142578125, -0.0260162353515625 ]
c710c111134cd5c88907e38b93a581bfc4ae71bb
Wordpress Stackexchange Q: Git Deploying - Disabling plugin/theme installation/update on remote? Is there any way to disable the installation/updating of plugins in Wordpress? I am deploying by Github, and therefore changes on server, does not replicate on my development environment. I need to disable this, and make all updates and installations on my local Git repository, and THEN push to production, with the changes. A: Set the constant DISALLOW_FILE_MODS to TRUE in your wp-config.php: const DISALLOW_FILE_MODS = TRUE; See the Codex for background information: Setting this constant also disables the Plugin and Theme editor (i.e. you don't need to set DISALLOW_FILE_MODS and DISALLOW_FILE_EDIT, as on its own DISALLOW_FILE_MODS will have the same effect). It will also prevent installing or uninstalling plugins, themes and updating the WordPress core. This will not affect the Git deployment.
Q: Git Deploying - Disabling plugin/theme installation/update on remote? Is there any way to disable the installation/updating of plugins in Wordpress? I am deploying by Github, and therefore changes on server, does not replicate on my development environment. I need to disable this, and make all updates and installations on my local Git repository, and THEN push to production, with the changes. A: Set the constant DISALLOW_FILE_MODS to TRUE in your wp-config.php: const DISALLOW_FILE_MODS = TRUE; See the Codex for background information: Setting this constant also disables the Plugin and Theme editor (i.e. you don't need to set DISALLOW_FILE_MODS and DISALLOW_FILE_EDIT, as on its own DISALLOW_FILE_MODS will have the same effect). It will also prevent installing or uninstalling plugins, themes and updating the WordPress core. This will not affect the Git deployment. A: There are quite a few related bits you can tinker with, but the one most comprehensive setting for version controlled stack is define( 'DISALLOW_FILE_MODS', true );. It will disable anything related to changing code files, core or extensions either.
wordpress
{ "language": "en", "length": 172, "provenance": "stackexchange_00019.jsonl.gz:456470", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/191558" }
[ 0.04217529296875, 0.01537322998046875, 0.007354736328125, -0.0217437744140625, 0.00615692138671875, -0.01064300537109375, 0.00479888916015625, -0.0283966064453125, 0.0225677490234375, 0.020599365234375, 0.0016994476318359375, -0.014739990234375, 0.0174407958984375, -0.04052734375, 0.0009813308715820312, -0.002716064453125, 0.025634765625, 0.0080413818359375, 0.018157958984375, -0.0260162353515625, 0.004657745361328125, -0.00811004638671875, 0.0183868408203125, 0.076904296875, 0.0159454345703125, 0.0180816650390625, 0.0330810546875, -0.00726318359375, 0.004451751708984375, -0.0098876953125, 0.0293731689453125, -0.03936767578125, 0.039886474609375, 0.0215606689453125, -0.0655517578125, -0.096435546875, 0.0013408660888671875, -0.00527191162109375, -0.047821044921875, 0.03271484375, 0.04180908203125, -0.032623291015625, 0.019622802734375, 0.00667572021484375, -0.00348663330078125, -0.01873779296875, 0.037994384765625, -0.0271759033203125, 0.036895751953125, -0.005901336669921875, -0.0038661956787109375, 0.0254364013671875, 0.013916015625, -0.02630615234375, -0.0131988525390625, -0.01180267333984375, -0.030303955078125, 0.034881591796875, 0.0137176513671875, 0.01343536376953125, -0.0170135498046875, 0.00691986083984375, 0.005859375, -0.0186309814453125, 0.034942626953125, -0.00997161865234375, 0.0073394775390625, 0.0311279296875, -0.1236572265625, 0.042266845703125, 0.08941650390625, -0.08837890625, -0.016265869140625, -0.007526397705078125, -0.0027179718017578125, -0.006214141845703125, 0.009063720703125, -0.0085601806640625, 0.005035400390625, 0.01593017578125, 0.03466796875, -0.006927490234375, 0.0193023681640625, -0.04132080078125, 0.022369384765625, -0.0186767578125, 0.00627899169921875, 0.0015611648559570312, -0.043792724609375, 0.019073486328125, -0.0289306640625, 0.0308074951171875, -0.0643310546875, 0.030853271484375, 0.00628662109375, 0.0190277099609375, 0.035369873046875, 0.0333251953125, -0.00850677490234375, 0.0199127197265625, 0.014312744140625, -0.048248291015625, 0.0443115234375, -0.040283203125, -0.0187835693359375, 0.04315185546875, 0.0079498291015625, -0.00347137451171875, 0.009979248046875, 0.018341064453125, 0.00994873046875, -0.0093994140625, -0.0394287109375, -0.0289306640625, 0.0100555419921875, 0.027069091796875, -0.055877685546875, 0.03607177734375, 0.00804901123046875, 0.0156402587890625, -0.013031005859375, 0.01666259765625, -0.0020999908447265625, -0.0012044906616210938, 0.0017004013061523438, 0.007495880126953125, -0.00670623779296875, -0.02374267578125, -0.071533203125, 0.0228729248046875, -0.0191192626953125, 0.006519317626953125, 0.0726318359375, 0.06744384765625, 0.019317626953125, -0.0027618408203125, 0.01885986328125, 0.0231781005859375, -0.0226287841796875, 0.03363037109375, -0.05633544921875, -0.00435638427734375, 0.047027587890625, -0.06756591796875, -0.01508331298828125, 0.003665924072265625, 0.023468017578125, 0.02203369140625, -0.027801513671875, -0.018646240234375, 0.0015306472778320312, -0.0026416778564453125, 0.044647216796875, -0.00145721435546875, 0.00479888916015625, -0.021942138671875, 0.04931640625, -0.030548095703125, -0.03314208984375, -0.036865234375, -0.0278167724609375, -0.005481719970703125, 0.031951904296875, -0.0248260498046875, -0.03466796875, 0.01325225830078125, -0.007373809814453125, -0.00366973876953125, 0.0259857177734375, 0.0284271240234375, -0.01458740234375, -0.022613525390625, 0.03814697265625, 0.0215301513671875, -0.012786865234375, 0.040283203125, 0.049407958984375, 0.003429412841796875, 0.019744873046875, 0.0181121826171875, -0.0181427001953125, -0.01416015625, 0.07470703125, -0.03424072265625, -0.06817626953125, 0.03240966796875, -0.01873779296875, 0.0126953125, 0.05010986328125, -0.01433563232421875, 0.04547119140625, -0.00939178466796875, -0.023040771484375, 0.0022220611572265625, -0.003681182861328125, -0.0233154296875, -0.007076263427734375, -0.00308990478515625, 0.0003764629364013672, 0.0015554428100585938, -0.0115509033203125, -0.0095977783203125, 0.00904083251953125, -0.03533935546875, -0.042755126953125, -0.03375244140625, -0.008941650390625, 0.03411865234375, -0.031280517578125, 0.03057861328125, 0.0031032562255859375, -0.01195526123046875, 0.0081024169921875, -0.0299072265625, 0.01288604736328125, -0.017852783203125, -0.036865234375, 0.054718017578125, -0.00035381317138671875, 0.060699462890625, -0.0002846717834472656, -0.014495849609375, 0.0203094482421875, -0.0396728515625, 0.01995849609375, 0.01166534423828125, 0.00853729248046875, 0.00826263427734375, 0.0440673828125, 0.00867462158203125, 0.060333251953125, -0.0125579833984375, -0.03253173828125, -0.0281524658203125, -0.01776123046875, 0.0145721435546875, 0.004978179931640625, -0.07470703125, 0.014923095703125, 0.045806884765625, 0.018157958984375, 0.00804901123046875, -0.048004150390625, -0.039306640625, 0.04095458984375, -0.023193359375, -0.0088043212890625, 0.0026454925537109375, 0.048858642578125, 0.047821044921875, -0.0012044906616210938, -0.0236968994140625, 0.0284576416015625, 0.0007715225219726562, 0.03875732421875, 0.015106201171875, -0.038177490234375, -0.042510986328125, 0.01160430908203125, -0.0294952392578125, 0.0233612060546875, -0.03839111328125, -0.03228759765625, -0.0112457275390625, 0.0019283294677734375, -0.004978179931640625, 0.01155853271484375, 0.0022563934326171875, -0.01727294921875, -0.003631591796875, 0.0300750732421875, -0.0014247894287109375, -0.00226593017578125, 0.00894927978515625, 0.04400634765625, 0.03302001953125, -0.05047607421875, -0.0189361572265625, 0.04345703125, 0.030242919921875, -0.0552978515625, -0.0517578125, 0.018280029296875, -0.0131683349609375, 0.0146484375, -0.055389404296875, 0.058685302734375, -0.040740966796875, -0.03863525390625, -0.005695343017578125, 0.0157470703125, -0.0012226104736328125, -0.0277252197265625, -0.008636474609375, 0.0228424072265625, -0.01186370849609375, 0.008514404296875, -0.021240234375, 0.019805908203125, -0.008819580078125, 0.02996826171875, 0.047698974609375, 0.0166168212890625, -0.0173187255859375, 0.01184844970703125, -0.032012939453125, 0.00013494491577148438, 0.020538330078125, -0.005855560302734375, 0.0224151611328125, -0.103759765625, -0.028839111328125, 0.01508331298828125, -0.0248260498046875, 0.0011949539184570312, -0.028564453125, -0.0191497802734375, -0.0011434555053710938, -0.05181884765625, -0.00579071044921875, -0.0213775634765625, -0.044647216796875, 0.045257568359375, 0.01898193359375, -0.0019235610961914062, -0.03192138671875, 0.059326171875, 0.0217742919921875, -0.06671142578125, -0.005123138427734375, -0.0150146484375, -0.0501708984375, -0.036285400390625, 0.00283050537109375, -0.00043845176696777344, 0.0181121826171875, -0.0010519027709960938, 0.120849609375, 0.0269012451171875, -0.061279296875, 0.043060302734375, -0.01444244384765625, -0.0012140274047851562, 0.071533203125, 0.0119781494140625, -0.000865936279296875, 0.03717041015625, 0.0172576904296875, -0.00445556640625, 0.0150146484375, -0.01229095458984375, -0.047454833984375, 0.004299163818359375, -0.0266876220703125, 0.0087890625, 0.005390167236328125, -0.01174163818359375, -0.03546142578125, -0.01416778564453125, -0.07415771484375, -0.033203125, 0.00197601318359375, -0.044158935546875, 0.0137786865234375, 0.0212249755859375, -0.0024662017822265625, 0.01165771484375, -0.005275726318359375, 0.045074462890625, 0.0439453125, 0.0229034423828125, 0.01525115966796875, 0.0154876708984375, -0.0159454345703125, 0.01074981689453125, -0.05389404296875, 0.0027942657470703125, -0.019744873046875, 0.0169219970703125, -0.0149993896484375, -0.0082550048828125, -0.0576171875, 0.057525634765625, -0.07550048828125, -0.0007886886596679688, 0.0181121826171875, -0.032196044921875, 0.007251739501953125, -0.007251739501953125, -0.0023956298828125, 0.003116607666015625, 0.045379638671875, -0.06103515625, -0.011138916015625, -0.0035419464111328125, 0.02520751953125, -0.0144500732421875, -0.051361083984375, -0.0279998779296875, -0.01849365234375, -0.0595703125, 0.006099700927734375, -0.005992889404296875, -0.0294036865234375, 0.0076904296875, -0.0426025390625, -0.03948974609375, -0.0428466796875, 0.0299224853515625, 0.0115203857421875, -0.0038604736328125, -0.0121307373046875, -0.01277923583984375, -0.031890869140625, -0.033477783203125, 0.01287078857421875, -0.06719970703125, -0.001209259033203125, -0.0187530517578125, 0.01021575927734375, -0.0231781005859375, 0.041229248046875, -0.038604736328125, 0.0073089599609375, 0.0079803466796875, 0.01406097412109375, 0.00865936279296875, -0.007495880126953125, -0.01861572265625, 0.0275421142578125, 0.0225677490234375, -0.0017261505126953125, 0.01346588134765625, 0.01296234130859375, -0.051055908203125, 0.003131866455078125, 0.002254486083984375, -0.0093994140625, 0.05816650390625, -0.053955078125, -0.0214080810546875, -0.02423095703125, -0.02197265625, 0.005992889404296875, -0.0298614501953125, 0.016326904296875, -0.033660888671875, -0.02398681640625, 0.056549072265625, -0.058746337890625, 0.0036468505859375, 0.0014009475708007812, 0.08477783203125, 0.01221466064453125, -0.0023250579833984375, -0.01477813720703125, 0.03143310546875, 0.0465087890625, 0.0274200439453125, 0.0141143798828125, 0.006046295166015625, -0.0338134765625, 0.00479888916015625, 0.034271240234375, -0.0172882080078125, -0.006839752197265625, 0.0301666259765625, 0.005496978759765625, -0.03509521484375, 0.0207977294921875, -0.0033512115478515625, 0.022857666015625, 0.0207672119140625, 0.00708770751953125, -0.0300750732421875, 0.01451873779296875, 0.00021839141845703125, -0.00003165006637573242, 0.0159759521484375, 0.0011529922485351562, -0.040557861328125, 0.031982421875, -0.035369873046875, -0.0214996337890625, 0.023712158203125, -0.0106353759765625, 0.003955841064453125, -0.038604736328125, -0.0261077880859375, 0.01558685302734375, 0.0189361572265625, -0.005634307861328125, 0.020843505859375, 0.0010652542114257812, -0.03338623046875, -0.01806640625, -0.01261138916015625, 0.051666259765625, -0.0175323486328125, -0.0233612060546875, -0.03448486328125, -0.01519775390625, 0.0513916015625, 0.0231475830078125, 0.007411956787109375, 0.04632568359375, -0.0065460205078125, -0.01242828369140625, 0.0008053779602050781, -0.01377105712890625, -0.0340576171875, -0.03790283203125, 0.0038909912109375, 0.0060577392578125, -0.00986480712890625, 0.033050537109375, -0.025146484375, 0.0204315185546875, -0.0244598388671875, -0.01085662841796875, 0.02691650390625, 0.04144287109375, -0.0229949951171875, 0.0167388916015625, 0.01318359375, 0.021697998046875, -0.06878662109375, 0.0250244140625, -0.046295166015625, -0.0056915283203125, 0.03094482421875, 0.05029296875, -0.0335693359375, -0.037811279296875, 0.0269622802734375, -0.023956298828125, 0.004039764404296875, 0.04412841796875, 0.00604248046875, -0.0196685791015625, -0.042266845703125, 0.002933502197265625, 0.05889892578125, -0.020751953125, -0.009918212890625, -0.01026153564453125, -0.0230865478515625, -0.025634765625, 0.06939697265625, -0.077392578125, -0.0081939697265625, 0.0256195068359375, -0.037109375, -0.0126190185546875, 0.003917694091796875, -0.042755126953125, -0.0178375244140625, -0.002056121826171875, -0.01328277587890625, -0.00485992431640625, -0.0167999267578125, -0.00858306884765625, -0.04083251953125, 0.018951416015625, -0.0433349609375, -0.0157012939453125, 0.0704345703125, 0.031494140625, -0.0863037109375, 0.0061492919921875, -0.051605224609375, -0.00969696044921875, -0.040008544921875, -0.0280914306640625, -0.06390380859375, -0.0028896331787109375, 0.0180816650390625, 0.0031986236572265625, -0.002910614013671875, -0.01351165771484375, -0.012359619140625, 0.0372314453125, 0.019500732421875, 0.037506103515625, 0.01129913330078125, 0.0026950836181640625, 0.006504058837890625, 0.030517578125, 0.023406982421875, -0.0005259513854980469, -0.016387939453125, -0.032958984375, 0.01003265380859375, -0.0217742919921875, -0.0159454345703125, 0.00901031494140625, -0.0168304443359375, -0.028961181640625, 0.0016050338745117188, -0.0118255615234375, 0.0041046142578125, 0.01239013671875, 0.00611114501953125, -0.0257415771484375, -0.0108489990234375, -0.00792694091796875, -0.004741668701171875, -0.0016956329345703125, -0.0309295654296875, -0.005458831787109375, 0.000598907470703125, -0.0275421142578125, 0.01322174072265625, 0.002899169921875, 0.0009341239929199219, 0.03045654296875, -0.00952911376953125, 0.037841796875, 0.07000732421875, -0.0026149749755859375, 0.04608154296875, 0.01053619384765625, 0.0225067138671875, 0.0032672882080078125, 0.034820556640625, -0.0214691162109375, -0.031982421875, 0.031890869140625, 0.01488494873046875, -0.010284423828125, 0.0202789306640625, -0.0250701904296875, 0.033905029296875, 0.051910400390625, 0.058624267578125, -0.06658935546875, 0.01290130615234375, 0.006053924560546875, -0.0274505615234375, 0.03387451171875, 0.0045318603515625, -0.01971435546875, -0.0438232421875, -0.021728515625, -0.023956298828125, -0.019439697265625, -0.03497314453125, -0.01052093505859375, -0.0391845703125, 0.0220794677734375, 0.01102447509765625, 0.02734375, 0.000030875205993652344, -0.0005168914794921875, -0.0008807182312011719, 0.0178070068359375, -0.01123046875, -0.0270843505859375, 0.0300750732421875, -0.044677734375, -0.0718994140625, 0.005352020263671875, -0.0142822265625, -0.006435394287109375, 0.022003173828125, -0.0214691162109375, -0.006359100341796875, 0.036712646484375, -0.0323486328125, 0.00621795654296875, 0.03131103515625, -0.058837890625, -0.039337158203125, -0.0249481201171875, -0.01425933837890625, 0.03558349609375, -0.0005278587341308594, 0.0210418701171875, -0.0004477500915527344, -0.031646728515625, 0.0030117034912109375, 0.0313720703125, 0.048065185546875, -0.005947113037109375, -0.037109375, 0.040924072265625, -0.0024471282958984375, -0.0217742919921875, -0.032073974609375, 0.0201568603515625, -0.06903076171875, -0.0195159912109375, -0.01329803466796875, 0.004299163818359375, -0.002056121826171875, -0.0236053466796875, -0.037628173828125, 0.1112060546875, -0.0311279296875, 0.011077880859375, 0.01532745361328125, 0.053131103515625, -0.0233612060546875, 0.0214996337890625, 0.00666046142578125, 0.05767822265625, -0.052947998046875, 0.0095062255859375, -0.01117706298828125, 0.0138702392578125, 0.015960693359375, 0.0124664306640625, 0.0833740234375, 0.0211181640625, -0.0423583984375, -0.025115966796875, 0.062225341796875, 0.0306396484375, 0.011749267578125, 0.049530029296875, -0.00803375244140625, 0.0119781494140625, -0.025726318359375, -0.03131103515625, 0.0164031982421875, -0.056549072265625, -0.039581298828125, 0.0186920166015625, 0.0250701904296875, 0.025726318359375, 0.0004715919494628906, 0.04541015625, -0.03460693359375, -0.0002474784851074219, 0.02789306640625, 0.0229339599609375, 0.031646728515625, -0.005176544189453125, 0.02288818359375, 0.0311431884765625, 0.01983642578125, 0.0005483627319335938, 0.041961669921875, 0.00720977783203125, -0.004772186279296875, -0.0178375244140625, 0.004299163818359375, -0.03826904296875, -0.007282257080078125, -0.0013380050659179688, 0.035888671875, -0.03826904296875, 0.0076751708984375, 0.00197601318359375, 0.0272216796875, -0.0178070068359375, 0.0083160400390625, 0.018157958984375, 0.00182342529296875, -0.01108551025390625, -0.013427734375, 0.016082763671875, -0.0178375244140625, -0.0267181396484375, -0.0321044921875, -0.05438232421875, 0.0119781494140625, 0.0189666748046875, -0.01142120361328125, -0.0008168220520019531, 0.010101318359375, 0.007244110107421875, -0.00021374225616455078, 0.01165008544921875, -0.0030422210693359375, -0.00585174560546875, -0.02423095703125, 0.0091552734375, -0.01050567626953125, 0.0110015869140625, 0.021484375, 0.0032901763916015625, 0.0173492431640625, -0.00537109375, -0.01479339599609375, 0.050018310546875, -0.00843048095703125, 0.034698486328125, -0.062469482421875, -0.054718017578125, -0.002017974853515625, 0.04412841796875, 0.00969696044921875, 0.04010009765625, 0.08209228515625, 0.09698486328125, -0.0244140625, -0.005329132080078125, 0.10150146484375, -0.001041412353515625, -0.003704071044921875, -0.0095062255859375, 0.0012407302856445312, -0.0036983489990234375, -0.006069183349609375, -0.03192138671875, 0.04144287109375, 0.0090789794921875, 0.004100799560546875, 0.00612640380859375, 0.008148193359375, -0.0172882080078125, 0.01187896728515625, -0.01073455810546875, 0.02203369140625, 0.0275115966796875, 0.004871368408203125, 0.01507568359375, -0.0174407958984375, -0.01513671875, -0.01418304443359375, 0.01800537109375, -0.049041748046875, 0.0748291015625, 0.038726806640625, -0.010345458984375, -0.007781982421875, 0.005157470703125, 0.01187896728515625, -0.03619384765625, 0.00774383544921875, -0.00799560546875, 0.0008516311645507812, -0.0171661376953125, -0.006824493408203125, 0.050872802734375, -0.01092529296875, 0.08343505859375, -0.047637939453125, 0.0010433197021484375, -0.007843017578125, -0.045684814453125, 0.02081298828125, 0.015228271484375, -0.03912353515625, 0.006397247314453125, -0.007720947265625, -0.005115509033203125, -0.031524658203125, 0.0115509033203125, 0.006412506103515625, -0.0224761962890625, 0.0025844573974609375, -0.053863525390625, 0.033843994140625, 0.02703857421875, -0.0183868408203125, -0.03997802734375, -0.04156494140625, -0.017425537109375, 0.01751708984375, -0.023773193359375, -0.012451171875, 0.00044655799865722656, 0.01507568359375, 0.046234130859375, 0.016265869140625, -0.004810333251953125, 0.038421630859375, -0.0137481689453125, 0.020355224609375, 0.00273895263671875, -0.04437255859375, -0.031494140625, -0.0202484130859375, -0.03106689453125, 0.018585205078125, 0.021636962890625, -0.012786865234375, -0.048858642578125, -0.01198577880859375, 0.032928466796875, 0.01885986328125, -0.0089111328125, 0.0170745849609375, 0.0221099853515625, -0.026824951171875, 0.004596710205078125, -0.03375244140625, -0.011199951171875, -0.05780029296875, 0.0106048583984375, 0.030426025390625, -0.020751953125, -0.022705078125, -0.019134521484375, 0.0232086181640625, 0.0304412841796875, 0.0022602081298828125, -0.074462890625, 0.050811767578125, -0.017181396484375, 0.055877685546875, -0.0299224853515625, 0.018096923828125, -0.0275421142578125, -0.017852783203125, -0.0099639892578125, -0.0537109375, -0.017425537109375, 0.0977783203125, 0.0038604736328125, 0.0017032623291015625, 0.0182647705078125, 0.00308990478515625, -0.0311126708984375, 0.006160736083984375, -0.01128387451171875, 0.03814697265625, -0.011260986328125, -0.0024051666259765625, 0.0043182373046875, -0.0015382766723632812, -0.0265045166015625, -0.055877685546875, 0.025665283203125, -0.08148193359375, -0.02484130859375, -0.041351318359375, -0.0258636474609375, -0.0184783935546875, -0.06829833984375, -0.11700439453125, 0.008392333984375, -0.0181427001953125, -0.055908203125, 0.007625579833984375, -0.057037353515625, -0.03948974609375, 0.052154541015625, 0.010345458984375, -0.041412353515625, -0.039031982421875, 0.04803466796875, -0.015167236328125, 0.04364013671875, -0.012237548828125, -0.005523681640625, 0.02410888671875, 0.0223846435546875, 0.037506103515625, -0.0292816162109375, -0.02435302734375, 0.0195465087890625, 0.025970458984375, 0.048675537109375, -0.0023441314697265625, 0.073974609375, 0.008453369140625, -0.01404571533203125, -0.0303192138671875, -0.00205230712890625, -0.0102996826171875, 0.0206451416015625, 0.0908203125, 0.0775146484375, 0.0308380126953125, -0.046600341796875, -0.044189453125, -0.05767822265625, 0.00823974609375, -0.0062255859375, 0.0180816650390625, -0.07965087890625, 0.0080108642578125, 0.0300445556640625, 0.0160064697265625, 0.02044677734375, -0.0206756591796875, 0.00446319580078125, -0.026611328125, -0.020050048828125, -0.00445556640625, -0.01357269287109375, 0.01212310791015625, 0.004299163818359375, -0.01061248779296875, 0.0168304443359375, 0.005870819091796875, -0.020538330078125, 0.02685546875, 0.06646728515625, -0.03973388671875, 0.0025768280029296875, -0.0426025390625, 0.046478271484375, -0.034637451171875, 0.05633544921875, -0.056671142578125, 0.0151214599609375, -0.01018524169921875, 0.0109100341796875, -0.01255035400390625, -0.00421905517578125, -0.04034423828125, 0.05267333984375, -0.0033130645751953125, 0.08685302734375, -0.009246826171875, -0.045196533203125, -0.01329803466796875, 0.004772186279296875, -0.0258941650390625, 0.01611328125, 0.0017518997192382812, -0.0268402099609375, 0.0110321044921875, -0.00543975830078125, 0.025665283203125, -0.0197601318359375, 0.0264739990234375, -0.045013427734375, -0.004779815673828125, 0.0189208984375 ]
8a95ba44b69f6fe26e6f3e7929a36ce1c7d12447
Wordpress Stackexchange Q: Include files in functions.php This is a rewritten post since the way I worded my old post totally confused everyone. MikeSchinkel shows how he uses Include files in his theme's functions.php file In this Stackexchange post: Organizing Code in your WordPress Theme's functions.php File? Example: require_once('includes/my-file.php'); How would you write this php line if the file to include is inside a directory, inside the wp-content directory? Location: [wordpress install]/wp-content/new-directory/my-file.php The only way I can think of is like this: require_once( ABSPATH . '/wp-content/new-directory/my-file.php' ); Would this be the correct way? A: Including a file inside a subdirectory is the same as any other as long as you know the path to the file. Since it's possible to move the 'wp-content' directory, don't pass that part of the path to the require statement; instead, use the WP_CONTENT_DIR constant. require_once WP_CONTENT_DIR . '/new-directory/my-file.php'; Also, you can leave out the parentheses since include and require are statements, not functions.
Q: Include files in functions.php This is a rewritten post since the way I worded my old post totally confused everyone. MikeSchinkel shows how he uses Include files in his theme's functions.php file In this Stackexchange post: Organizing Code in your WordPress Theme's functions.php File? Example: require_once('includes/my-file.php'); How would you write this php line if the file to include is inside a directory, inside the wp-content directory? Location: [wordpress install]/wp-content/new-directory/my-file.php The only way I can think of is like this: require_once( ABSPATH . '/wp-content/new-directory/my-file.php' ); Would this be the correct way? A: Including a file inside a subdirectory is the same as any other as long as you know the path to the file. Since it's possible to move the 'wp-content' directory, don't pass that part of the path to the require statement; instead, use the WP_CONTENT_DIR constant. require_once WP_CONTENT_DIR . '/new-directory/my-file.php'; Also, you can leave out the parentheses since include and require are statements, not functions.
wordpress
{ "language": "en", "length": 157, "provenance": "stackexchange_00019.jsonl.gz:456491", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/191646" }
[ 0.07275390625, -0.0193939208984375, -0.032196044921875, -0.0867919921875, 0.01947021484375, -0.023529052734375, -0.0009899139404296875, 0.017730712890625, 0.00377655029296875, -0.00024211406707763672, -0.0675048828125, 0.0196380615234375, -0.033294677734375, 0.01093292236328125, -0.014862060546875, -0.0416259765625, 0.0364990234375, -0.0167236328125, 0.033782958984375, -0.0024738311767578125, 0.01300811767578125, 0.0263671875, 0.026947021484375, 0.054107666015625, -0.01080322265625, -0.0131378173828125, 0.0411376953125, -0.021514892578125, -0.0208282470703125, -0.0264739990234375, -0.0030364990234375, 0.027130126953125, 0.00791168212890625, 0.04315185546875, -0.028839111328125, 0.0204010009765625, -0.004741668701171875, 0.02862548828125, 0.01885986328125, 0.018951416015625, 0.0131072998046875, -0.0122833251953125, -0.0210113525390625, 0.035675048828125, -0.0073394775390625, -0.073974609375, 0.03607177734375, -0.042388916015625, -0.001804351806640625, 0.039154052734375, 0.03192138671875, -0.018280029296875, 0.0311279296875, -0.0239410400390625, 0.00859832763671875, 0.0077667236328125, 0.0167999267578125, 0.0261993408203125, 0.038482666015625, -0.04351806640625, -0.0635986328125, 0.00279998779296875, 0.030303955078125, -0.006198883056640625, 0.0084686279296875, -0.01459503173828125, -0.00860595703125, 0.0229034423828125, -0.09490966796875, -0.0099029541015625, 0.046875, -0.05181884765625, 0.002391815185546875, -0.0261077880859375, 0.017059326171875, -0.02264404296875, 0.01169586181640625, -0.00884246826171875, 0.007297515869140625, 0.031494140625, -0.037841796875, -0.022247314453125, -0.03009033203125, -0.0433349609375, 0.005512237548828125, 0.001850128173828125, -0.02313232421875, 0.01151275634765625, -0.06585693359375, 0.007110595703125, -0.042205810546875, 0.046356201171875, -0.03314208984375, -0.029815673828125, -0.032379150390625, 0.026519775390625, 0.0154266357421875, 0.01873779296875, -0.01385498046875, 0.0183563232421875, 0.01390838623046875, -0.032806396484375, 0.0355224609375, -0.0218658447265625, 0.0307159423828125, 0.0946044921875, -0.0197296142578125, -0.00846099853515625, 0.026702880859375, 0.0169525146484375, 0.0357666015625, -0.034332275390625, 0.007442474365234375, -0.0833740234375, 0.0005865097045898438, 0.050323486328125, 0.00894927978515625, 0.017120361328125, 0.05657958984375, -0.00495147705078125, 0.023773193359375, 0.0262908935546875, -0.00007480382919311523, -0.01436614990234375, 0.014617919921875, -0.00601959228515625, -0.0341796875, -0.01210784912109375, -0.01448822021484375, 0.05877685546875, 0.0005311965942382812, -0.0122833251953125, 0.0158233642578125, 0.0086669921875, -0.0400390625, -0.027252197265625, 0.01470947265625, 0.0338134765625, 0.034942626953125, -0.01476287841796875, 0.0132293701171875, -0.0438232421875, -0.012664794921875, 0.01849365234375, 0.0012960433959960938, 0.0197906494140625, 0.012176513671875, 0.01126861572265625, -0.0033817291259765625, -0.0723876953125, 0.0452880859375, -0.043243408203125, 0.0147705078125, 0.009521484375, -0.01447296142578125, -0.0142059326171875, -0.038330078125, -0.00930023193359375, 0.0213470458984375, 0.012115478515625, 0.004100799560546875, -0.032867431640625, -0.0166473388671875, -0.01250457763671875, -0.031463623046875, 0.03179931640625, -0.0017414093017578125, 0.0053253173828125, 0.01035308837890625, -0.0024700164794921875, 0.0037288665771484375, -0.005733489990234375, 0.01256561279296875, 0.0135650634765625, 0.004001617431640625, 0.0194549560546875, 0.0179901123046875, 0.01346588134765625, 0.0037403106689453125, 0.08843994140625, -0.003086090087890625, -0.03729248046875, 0.038787841796875, -0.033294677734375, -0.05633544921875, 0.00841522216796875, 0.01947021484375, 0.059478759765625, 0.00847625732421875, 0.019866943359375, 0.03662109375, 0.007808685302734375, 0.0013217926025390625, 0.00125885009765625, -0.03851318359375, -0.038177490234375, 0.0271759033203125, 0.0038318634033203125, -0.03350830078125, 0.041900634765625, -0.009063720703125, -0.0286712646484375, 0.036712646484375, 0.0224151611328125, -0.029693603515625, 0.01001739501953125, -0.034149169921875, 0.02752685546875, 0.035430908203125, 0.014404296875, 0.0044097900390625, 0.039031982421875, -0.0011892318725585938, -0.08441162109375, -0.052001953125, 0.0433349609375, -0.00904083251953125, 0.0762939453125, -0.00528717041015625, 0.08056640625, -0.0009145736694335938, -0.034454345703125, -0.0052337646484375, -0.0112762451171875, 0.0150146484375, 0.01041412353515625, -0.047088623046875, -0.0037364959716796875, -0.035919189453125, -0.00844573974609375, -0.0234527587890625, 0.07257080078125, 0.01433563232421875, 0.0200958251953125, -0.0226898193359375, -0.00989532470703125, -0.0128021240234375, -0.02838134765625, -0.01030731201171875, 0.041778564453125, 0.044097900390625, 0.033447265625, -0.002086639404296875, 0.000042438507080078125, 0.0467529296875, -0.047271728515625, -0.0022792816162109375, -0.0240020751953125, -0.0033416748046875, 0.00815582275390625, 0.00849151611328125, -0.00948333740234375, 0.027740478515625, -0.0718994140625, 0.008636474609375, 0.0445556640625, -0.0230560302734375, -0.018280029296875, -0.00978851318359375, 0.014892578125, 0.0089111328125, -0.0582275390625, -0.0225372314453125, -0.0220794677734375, 0.00600433349609375, 0.01010894775390625, 0.0177001953125, 0.01445770263671875, -0.00420379638671875, 0.002536773681640625, 0.0174102783203125, -0.01000213623046875, -0.0150909423828125, 0.032379150390625, -0.0128326416015625, -0.016326904296875, -0.001125335693359375, 0.0169830322265625, -0.0648193359375, -0.0010595321655273438, -0.01360321044921875, -0.00441741943359375, -0.017120361328125, -0.00350189208984375, -0.0012483596801757812, -0.0196380615234375, 0.027618408203125, 0.0261077880859375, 0.031494140625, 0.018157958984375, 0.0296630859375, 0.03277587890625, -0.01523590087890625, 0.045318603515625, 0.003993988037109375, -0.01523590087890625, 0.08050537109375, 0.00591278076171875, -0.00572967529296875, 0.00406646728515625, 0.0133209228515625, 0.033447265625, 0.019287109375, -0.040008544921875, 0.00791168212890625, 0.00955963134765625, 0.0390625, 0.0069580078125, -0.0009312629699707031, -0.0193939208984375, -0.0303955078125, -0.0299224853515625, 0.022369384765625, 0.014617919921875, 0.00064849853515625, -0.046142578125, -0.00745391845703125, -0.00012421607971191406, -0.103515625, -0.079833984375, -0.004367828369140625, -0.06744384765625, 0.004512786865234375, 0.017120361328125, -0.049835205078125, -0.0189361572265625, 0.039581298828125, 0.015167236328125, -0.041534423828125, -0.02508544921875, -0.04949951171875, -0.07977294921875, -0.064697265625, 0.01309967041015625, -0.00661468505859375, -0.0038890838623046875, -0.00891876220703125, 0.06903076171875, 0.0020580291748046875, -0.061920166015625, -0.007091522216796875, 0.062286376953125, -0.017974853515625, -0.00650787353515625, 0.0286865234375, -0.047088623046875, -0.006488800048828125, -0.014495849609375, 0.032623291015625, 0.0208282470703125, -0.030487060546875, -0.01299285888671875, -0.01442718505859375, -0.0277252197265625, 0.008056640625, 0.0584716796875, 0.0005764961242675781, -0.03570556640625, 0.042327880859375, -0.058197021484375, -0.01311492919921875, 0.0263519287109375, -0.01129913330078125, -0.001659393310546875, -0.0004425048828125, -0.045501708984375, -0.004970550537109375, 0.0223541259765625, 0.0196075439453125, 0.0201416015625, -0.0233612060546875, -0.002391815185546875, 0.04888916015625, 0.007259368896484375, 0.04345703125, -0.01019287109375, 0.05120849609375, 0.0161590576171875, -0.014678955078125, 0.0178375244140625, 0.043426513671875, 0.0005145072937011719, -0.00024390220642089844, -0.051300048828125, -0.0062408447265625, 0.03656005859375, 0.0078125, 0.01898193359375, -0.0081634521484375, -0.01519775390625, -0.01099395751953125, 0.03192138671875, 0.01983642578125, -0.021240234375, 0.00858306884765625, 0.0020084381103515625, -0.061187744140625, -0.023193359375, -0.034332275390625, 0.00007230043411254883, 0.041778564453125, -0.0310821533203125, -0.02349853515625, -0.00034928321838378906, -0.0006146430969238281, -0.0104827880859375, 0.0294036865234375, -0.011566162109375, 0.032501220703125, -0.068359375, 0.028656005859375, 0.036773681640625, 0.007442474365234375, 0.0013799667358398438, -0.021453857421875, -0.04559326171875, -0.06622314453125, 0.01052093505859375, -0.09039306640625, 0.0687255859375, 0.035858154296875, -0.0081329345703125, -0.0284423828125, 0.00916290283203125, -0.01105499267578125, -0.01029205322265625, 0.0386962890625, 0.04571533203125, -0.009918212890625, 0.002323150634765625, 0.038238525390625, -0.0305023193359375, -0.0250244140625, -0.01451873779296875, -0.0416259765625, 0.07757568359375, 0.00787353515625, 0.06353759765625, 0.021087646484375, -0.012420654296875, 0.01885986328125, 0.00009363889694213867, -0.0232696533203125, 0.025115966796875, -0.0088348388671875, -0.01806640625, -0.00855255126953125, -0.00408172607421875, 0.02996826171875, 0.0007071495056152344, -0.01236724853515625, 0.0255889892578125, 0.049713134765625, 0.00786590576171875, -0.0202178955078125, -0.1044921875, 0.00872039794921875, 0.0411376953125, -0.05377197265625, 0.0452880859375, 0.0297393798828125, -0.022308349609375, 0.056365966796875, -0.0025653839111328125, 0.043609619140625, -0.0247955322265625, 0.043304443359375, -0.0236968994140625, -0.0128021240234375, 0.02154541015625, -0.00945281982421875, -0.026092529296875, -0.006591796875, -0.00969696044921875, -0.01358795166015625, 0.0211334228515625, 0.0222320556640625, -0.035888671875, 0.0465087890625, 0.005558013916015625, -0.007228851318359375, -0.01371002197265625, 0.020843505859375, 0.0604248046875, 0.04473876953125, 0.00722503662109375, 0.050994873046875, 0.04376220703125, 0.0118560791015625, 0.06903076171875, 0.062347412109375, -0.0009746551513671875, 0.0328369140625, 0.078857421875, 0.00521087646484375, -0.01064300537109375, -0.00433349609375, 0.0163726806640625, 0.01334381103515625, -0.0204315185546875, -0.00506591796875, -0.001888275146484375, -0.006046295166015625, -0.01317596435546875, -0.01416778564453125, 0.023101806640625, 0.0019474029541015625, -0.03948974609375, 0.00994110107421875, -0.01462554931640625, -0.042327880859375, -0.022491455078125, -0.018341064453125, 0.029449462890625, -0.037933349609375, 0.0024814605712890625, -0.0002300739288330078, 0.0150909423828125, -0.0085296630859375, -0.014129638671875, 0.034332275390625, 0.0206451416015625, 0.0254364013671875, 0.00897216796875, -0.01108551025390625, -0.009490966796875, 0.01520538330078125, 0.004154205322265625, -0.0130767822265625, -0.0258636474609375, 0.006587982177734375, 0.0399169921875, -0.04620361328125, -0.0168914794921875, 0.0188446044921875, -0.0101318359375, 0.00496673583984375, -0.016632080078125, -0.024383544921875, -0.03692626953125, 0.00539398193359375, -0.0169525146484375, 0.001949310302734375, -0.022064208984375, -0.018768310546875, 0.0364990234375, -0.0169830322265625, 0.0257568359375, 0.006542205810546875, -0.0238037109375, 0.0046844482421875, -0.0028743743896484375, 0.01447296142578125, 0.020416259765625, -0.01465606689453125, -0.010223388671875, -0.052886962890625, -0.00559234619140625, -0.0220794677734375, 0.06787109375, -0.0184173583984375, -0.00836181640625, -0.0116729736328125, -0.0034942626953125, 0.0310821533203125, -0.01053619384765625, 0.0709228515625, 0.0132598876953125, -0.0755615234375, 0.0213165283203125, -0.035552978515625, 0.004119873046875, 0.0014867782592773438, -0.03594970703125, -0.052886962890625, -0.0212554931640625, -0.031280517578125, -0.005008697509765625, -0.01091766357421875, 0.0225067138671875, -0.0075836181640625, 0.043121337890625, -0.0241241455078125, 0.0016603469848632812, -0.018341064453125, 0.057037353515625, 0.0272979736328125, 0.040771484375, 0.00830078125, 0.016326904296875, -0.0010843276977539062, -0.011749267578125, 0.0009517669677734375, -0.031036376953125, -0.0008335113525390625, -0.0273590087890625, 0.002201080322265625, 0.0244598388671875, 0.0638427734375, -0.0026531219482421875, 0.00659942626953125, -0.021026611328125, -0.01508331298828125, -0.0128021240234375, 0.046478271484375, 0.0015707015991210938, 0.01494598388671875, -0.0159759521484375, -0.00951385498046875, 0.01702880859375, -0.015167236328125, -0.0137176513671875, 0.0277252197265625, 0.002040863037109375, 0.0220794677734375, -0.00701141357421875, -0.042022705078125, 0.064453125, 0.058685302734375, 0.0294036865234375, 0.051513671875, -0.00594329833984375, 0.0220947265625, -0.0065155029296875, 0.0181121826171875, -0.0258331298828125, -0.0025997161865234375, 0.0350341796875, 0.009674072265625, -0.0082855224609375, 0.01345062255859375, -0.01419830322265625, 0.0130615234375, 0.03375244140625, 0.030914306640625, -0.034820556640625, 0.0028667449951171875, -0.0102996826171875, -0.01529693603515625, 0.043701171875, -0.0201263427734375, -0.030120849609375, -0.0275726318359375, 0.03204345703125, 0.028961181640625, -0.0163116455078125, 0.0239410400390625, 0.0277862548828125, 0.0115203857421875, -0.002559661865234375, 0.020965576171875, 0.01374053955078125, -0.0421142578125, 0.0237274169921875, 0.048797607421875, 0.0189666748046875, -0.00962066650390625, 0.0258026123046875, -0.0285797119140625, -0.0175933837890625, -0.01263427734375, 0.0204925537109375, -0.0017910003662109375, -0.007686614990234375, 0.0260009765625, 0.006023406982421875, 0.045013427734375, 0.05322265625, 0.00341796875, 0.0071868896484375, 0.0298004150390625, 0.021636962890625, -0.023773193359375, -0.0194854736328125, 0.0283966064453125, 0.016937255859375, -0.0733642578125, 0.016387939453125, -0.03558349609375, -0.0099945068359375, -0.0218505859375, -0.00873565673828125, 0.07501220703125, -0.03533935546875, -0.00791168212890625, 0.021087646484375, 0.028717041015625, -0.0008525848388671875, 0.01361846923828125, 0.06365966796875, -0.04949951171875, -0.03692626953125, 0.038482666015625, -0.0189056396484375, -0.037139892578125, 0.0012035369873046875, -0.0288238525390625, 0.1221923828125, -0.0161590576171875, 0.02252197265625, 0.029205322265625, 0.05035400390625, -0.027252197265625, 0.044342041015625, -0.0341796875, 0.0162200927734375, 0.00524139404296875, 0.06201171875, -0.047698974609375, -0.0213470458984375, 0.002410888671875, 0.0648193359375, 0.0297393798828125, 0.0035762786865234375, 0.028533935546875, 0.0224151611328125, 0.048583984375, 0.0355224609375, 0.0033626556396484375, -0.0035724639892578125, -0.0269622802734375, -0.025726318359375, 0.0078277587890625, -0.01025390625, 0.012542724609375, -0.008148193359375, -0.038909912109375, -0.01454925537109375, 0.01557159423828125, 0.00267791748046875, -0.0125274658203125, -0.035186767578125, 0.0080718994140625, -0.00800323486328125, -0.018646240234375, 0.036895751953125, 0.0021514892578125, 0.0178985595703125, 0.0038700103759765625, -0.03094482421875, 0.007007598876953125, -0.0284881591796875, 0.03839111328125, -0.0016202926635742188, 0.033843994140625, -0.021514892578125, 0.00466156005859375, 0.0499267578125, -0.0039825439453125, -0.004425048828125, 0.031646728515625, -0.0048828125, 0.05474853515625, 0.05413818359375, 0.043609619140625, -0.0052032470703125, 0.004032135009765625, 0.0217742919921875, 0.054779052734375, -0.033721923828125, -0.017059326171875, 0.0067291259765625, -0.0014047622680664062, -0.01055145263671875, -0.0117950439453125, -0.0116424560546875, 0.00792694091796875, 0.025543212890625, 0.006046295166015625, -0.016693115234375, -0.006488800048828125, -0.0200347900390625, 0.00600433349609375, -0.01520538330078125, 0.03076171875, 0.02593994140625, -0.03424072265625, 0.0440673828125, 0.0288238525390625, 0.0189666748046875, -0.034698486328125, 0.0618896484375, 0.03472900390625, 0.002971649169921875, 0.00023758411407470703, 0.036041259765625, -0.0110626220703125, -0.00555419921875, -0.032928466796875, -0.0736083984375, 0.04107666015625, 0.036468505859375, -0.004505157470703125, 0.03277587890625, 0.0237274169921875, -0.0015172958374023438, -0.0435791015625, -0.01522064208984375, 0.0005612373352050781, -0.033782958984375, -0.01404571533203125, -0.0295257568359375, 0.0171966552734375, 0.0389404296875, 0.00775146484375, 0.0022735595703125, -0.01763916015625, 0.05645751953125, -0.0105438232421875, 0.0195159912109375, 0.0015001296997070312, -0.0033245086669921875, 0.0080413818359375, -0.0087127685546875, 0.023834228515625, 0.01861572265625, -0.021209716796875, 0.0167999267578125, -0.0202789306640625, -0.049102783203125, 0.00937652587890625, 0.04193115234375, -0.005863189697265625, 0.019256591796875, 0.0518798828125, 0.03509521484375, 0.0146484375, -0.018402099609375, -0.015960693359375, -0.038909912109375, 0.0677490234375, 0.022491455078125, -0.035003662109375, -0.039764404296875, -0.0080413818359375, 0.04833984375, 0.03759765625, 0.05914306640625, -0.0241851806640625, 0.039306640625, 0.0146331787109375, -0.017181396484375, 0.01273345947265625, -0.0013580322265625, 0.028289794921875, -0.005802154541015625, -0.005451202392578125, -0.016510009765625, -0.04608154296875, 0.007190704345703125, 0.0196380615234375, -0.052825927734375, -0.0022869110107421875, 0.0161285400390625, 0.008453369140625, -0.03582763671875, 0.05975341796875, 0.006134033203125, -0.022186279296875, 0.0006132125854492188, 0.015289306640625, 0.024688720703125, 0.03350830078125, -0.016510009765625, -0.023040771484375, 0.03631591796875, -0.04498291015625, 0.01346588134765625, 0.00482940673828125, 0.013580322265625, 0.0207977294921875, 0.033477783203125, -0.075927734375, -0.02935791015625, -0.021881103515625, -0.0173187255859375, -0.0041961669921875, 0.061737060546875, -0.02056884765625, -0.036163330078125, 0.00347900390625, 0.055023193359375, 0.050384521484375, 0.0032672882080078125, 0.02508544921875, 0.01329803466796875, -0.026702880859375, -0.003398895263671875, -0.0203399658203125, -0.032012939453125, -0.0113525390625, 0.0007252693176269531, 0.01398468017578125, -0.004375457763671875, -0.02728271484375, -0.04254150390625, 0.031982421875, 0.04974365234375, 0.01552581787109375, -0.0859375, 0.01407623291015625, -0.017974853515625, 0.10748291015625, -0.016845703125, -0.01448822021484375, 0.00615692138671875, 0.031158447265625, -0.01479339599609375, -0.0200042724609375, -0.03240966796875, -0.00196075439453125, -0.00814056396484375, 0.04888916015625, 0.065673828125, -0.035186767578125, -0.00795745849609375, 0.057159423828125, 0.0207061767578125, 0.10455322265625, -0.059967041015625, -0.039520263671875, 0.02117919921875, -0.006153106689453125, -0.00458526611328125, -0.037200927734375, -0.00891876220703125, -0.0318603515625, 0.01195526123046875, -0.0139617919921875, 0.005588531494140625, 0.0114898681640625, -0.0660400390625, -0.107177734375, 0.031951904296875, -0.01396942138671875, -0.043060302734375, -0.06610107421875, -0.019866943359375, -0.0151519775390625, 0.02984619140625, -0.0254669189453125, -0.036651611328125, -0.00858306884765625, 0.082275390625, 0.031982421875, -0.02386474609375, 0.04962158203125, 0.01214599609375, -0.024932861328125, 0.027435302734375, 0.0203704833984375, -0.01250457763671875, 0.037841796875, -0.031463623046875, 0.048828125, 0.072509765625, -0.0141143798828125, -0.032928466796875, -0.01117706298828125, -0.070068359375, -0.03558349609375, -0.038909912109375, 0.01331329345703125, -0.0037174224853515625, 0.08758544921875, 0.004543304443359375, 0.00799560546875, -0.039581298828125, -0.00943756103515625, -0.007568359375, 0.00484466552734375, 0.0080413818359375, -0.0009975433349609375, -0.0364990234375, 0.0037746429443359375, 0.00507354736328125, -0.0235443115234375, 0.0008139610290527344, -0.001834869384765625, -0.049102783203125, 0.0071563720703125, -0.0303192138671875, -0.040283203125, 0.0016117095947265625, -0.048553466796875, 0.0379638671875, -0.01502227783203125, 0.0157470703125, 0.00460052490234375, 0.024444580078125, 0.024627685546875, 0.03668212890625, 0.007297515869140625, 0.024932861328125, -0.02655029296875, -0.00817108154296875, 0.0016813278198242188, 0.0256195068359375, 0.00391387939453125, -0.0249176025390625, 0.01042938232421875, -0.00064849853515625, -0.016510009765625, -0.00901031494140625, 0.0252685546875, 0.06634521484375, -0.014190673828125, 0.05584716796875, -0.0218963623046875, 0.0526123046875, -0.0252685546875, 0.04473876953125, -0.019439697265625, 0.00203704833984375, 0.0177764892578125, -0.01172637939453125, 0.0036563873291015625, 0.0179901123046875, 0.0021762847900390625, -0.00014126300811767578, 0.0038280487060546875, 0.002956390380859375, -0.003955841064453125, -0.01023101806640625 ]
8efccd96995983f66a80614ae96510654673f213
Wordpress Stackexchange Q: Hook that get's triggered when the author of a post is changed Is there any hook that gets trigged when the author of a post is modified from the edit post screen? I can list to the update post hook, but then I will not know whether the author of the post was changed or not. A: There is no special hook to author change. But you can achieve it by using post_updated hook. Example: add_action('post_updated', 'prefix_on_update_author', 10, 3); function prefix_on_update_author($post_ID, $post_after, $post_before) { if ($post_after->post_author != $post_before->post_author) { // author has been changed // you can add your own hook here or write your code } } Here is the codex reference.
Q: Hook that get's triggered when the author of a post is changed Is there any hook that gets trigged when the author of a post is modified from the edit post screen? I can list to the update post hook, but then I will not know whether the author of the post was changed or not. A: There is no special hook to author change. But you can achieve it by using post_updated hook. Example: add_action('post_updated', 'prefix_on_update_author', 10, 3); function prefix_on_update_author($post_ID, $post_after, $post_before) { if ($post_after->post_author != $post_before->post_author) { // author has been changed // you can add your own hook here or write your code } } Here is the codex reference.
wordpress
{ "language": "en", "length": 114, "provenance": "stackexchange_00019.jsonl.gz:456493", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/191649" }
[ 0.044952392578125, -0.0028362274169921875, 0.00873565673828125, -0.03399658203125, 0.01107025146484375, -0.015655517578125, 0.00528717041015625, -0.01959228515625, -0.0166473388671875, 0.042633056640625, -0.021697998046875, 0.05133056640625, 0.0025463104248046875, 0.00391387939453125, -0.004756927490234375, -0.00021445751190185547, 0.038055419921875, -0.048980712890625, 0.0145111083984375, -0.007480621337890625, 0.00714874267578125, 0.00872039794921875, 0.03680419921875, 0.036651611328125, 0.042327880859375, -0.029815673828125, 0.063720703125, -0.035400390625, 0.059814453125, 0.016021728515625, 0.03857421875, -0.06976318359375, 0.012359619140625, 0.0731201171875, -0.084716796875, 0.068115234375, -0.007160186767578125, 0.0323486328125, -0.00817108154296875, 0.043060302734375, 0.01297760009765625, 0.01140594482421875, -0.05548095703125, 0.0278472900390625, -0.045501708984375, -0.057952880859375, 0.0178680419921875, 0.0050811767578125, 0.056976318359375, -0.005298614501953125, -0.023101806640625, 0.0265045166015625, -0.02838134765625, 0.026702880859375, -0.0162506103515625, 0.008056640625, -0.034210205078125, 0.036468505859375, 0.01433563232421875, -0.022857666015625, -0.00728607177734375, 0.003696441650390625, 0.0174102783203125, 0.020538330078125, 0.0007104873657226562, 0.006084442138671875, 0.0251922607421875, 0.00021219253540039062, -0.01409149169921875, -0.001613616943359375, 0.021392822265625, -0.022491455078125, -0.0533447265625, 0.0231475830078125, -0.01456451416015625, -0.02789306640625, 0.028167724609375, -0.03570556640625, -0.01306915283203125, 0.0748291015625, 0.0257568359375, -0.005359649658203125, 0.0286865234375, -0.043548583984375, 0.020782470703125, -0.0251617431640625, -0.0003414154052734375, 0.0029659271240234375, -0.06646728515625, -0.006114959716796875, -0.0511474609375, -0.005176544189453125, -0.0565185546875, 0.0153656005859375, -0.00843048095703125, 0.019378662109375, 0.0290985107421875, 0.03460693359375, -0.0274505615234375, -0.01433563232421875, -0.01457977294921875, -0.01317596435546875, -0.01129913330078125, -0.0325927734375, -0.006061553955078125, 0.030120849609375, 0.03875732421875, 0.0208587646484375, 0.01531219482421875, 0.0179290771484375, -0.016265869140625, -0.0007410049438476562, -0.00435638427734375, 0.0245819091796875, -0.0203094482421875, -0.0153045654296875, -0.048370361328125, 0.0226593017578125, -0.0259857177734375, 0.0119476318359375, 0.0264892578125, 0.020416259765625, -0.003086090087890625, -0.042633056640625, 0.04400634765625, 0.0098419189453125, -0.042144775390625, 0.008453369140625, 0.01512908935546875, -0.0244140625, -0.035308837890625, 0.0112457275390625, 0.07891845703125, 0.039642333984375, 0.033050537109375, -0.0227203369140625, -0.00493621826171875, 0.019866943359375, 0.004840850830078125, 0.017242431640625, -0.060791015625, -0.0248260498046875, 0.02496337890625, -0.02069091796875, 0.0113525390625, -0.01446533203125, -0.00605010986328125, 0.035552978515625, 0.037750244140625, -0.009613037109375, 0.032928466796875, -0.0230865478515625, 0.031097412109375, 0.0014781951904296875, 0.038787841796875, -0.03466796875, 0.053436279296875, -0.03717041015625, 0.00043272972106933594, -0.037811279296875, 0.01043701171875, -0.029449462890625, 0.01390838623046875, -0.0114288330078125, -0.032867431640625, 0.0379638671875, -0.047760009765625, 0.0011539459228515625, 0.019439697265625, 0.0188751220703125, 0.0318603515625, 0.00740814208984375, -0.015869140625, 0.032318115234375, 0.00537109375, 0.007762908935546875, -0.031341552734375, -0.008514404296875, 0.0419921875, 0.0180511474609375, -0.004856109619140625, -0.011016845703125, 0.043304443359375, -0.0024814605712890625, -0.0304107666015625, 0.07037353515625, 0.01416778564453125, 0.09173583984375, -0.0079193115234375, 0.0124053955078125, -0.00710296630859375, 0.0285797119140625, -0.040985107421875, 0.006622314453125, -0.0007758140563964844, 0.002887725830078125, 0.01056671142578125, 0.0028705596923828125, 0.0034809112548828125, -0.00417327880859375, -0.0002142190933227539, 0.009857177734375, 0.0006804466247558594, -0.0112152099609375, -0.08984375, 0.034515380859375, -0.050750732421875, 0.06024169921875, 0.048309326171875, 0.030975341796875, -0.005645751953125, -0.0054473876953125, -0.01544189453125, 0.0119781494140625, -0.037445068359375, 0.01190185546875, -0.0202178955078125, 0.0288543701171875, 0.014190673828125, 0.01309967041015625, 0.007343292236328125, -0.0084991455078125, 0.009857177734375, -0.023834228515625, 0.017730712890625, -0.051116943359375, 0.0006098747253417969, -0.036346435546875, -0.0287933349609375, 0.00010758638381958008, -0.0294342041015625, 0.0528564453125, 0.001636505126953125, -0.0208740234375, -0.041107177734375, -0.01885986328125, -0.015106201171875, -0.082763671875, 0.001983642578125, 0.077392578125, 0.0280914306640625, -0.0247650146484375, -0.005283355712890625, 0.014556884765625, 0.048370361328125, 0.0390625, 0.031982421875, -0.016937255859375, 0.007266998291015625, 0.0654296875, -0.00478363037109375, 0.0160980224609375, -0.00754547119140625, -0.06341552734375, -0.0106658935546875, 0.020477294921875, 0.01251220703125, 0.04718017578125, -0.0567626953125, 0.008026123046875, -0.0014333724975585938, -0.058563232421875, -0.0295257568359375, -0.031097412109375, -0.00136566162109375, -0.018707275390625, 0.0026226043701171875, -0.007266998291015625, -0.029876708984375, -0.02215576171875, 0.030303955078125, 0.013580322265625, 0.01800537109375, 0.031982421875, -0.03466796875, 0.032745361328125, -0.0007333755493164062, -0.007965087890625, 0.0132904052734375, 0.006221771240234375, -0.053497314453125, -0.037200927734375, -0.001781463623046875, 0.0034027099609375, -0.007389068603515625, -0.029876708984375, 0.047119140625, -0.035125732421875, -0.01165771484375, -0.0267333984375, 0.007678985595703125, 0.025909423828125, 0.01202392578125, 0.00995635986328125, -0.005771636962890625, -0.014984130859375, -0.016876220703125, -0.05841064453125, 0.05560302734375, -0.038848876953125, 0.0275421142578125, 0.08209228515625, 0.0082244873046875, 0.0236663818359375, 0.01480865478515625, -0.0306549072265625, -0.002841949462890625, 0.03057861328125, 0.021240234375, -0.004985809326171875, -0.038482666015625, 0.03350830078125, 0.0162200927734375, 0.04864501953125, -0.0281829833984375, -0.04962158203125, -0.0139617919921875, 0.0157012939453125, -0.056488037109375, -0.031646728515625, -0.025848388671875, -0.05072021484375, -0.01204681396484375, -0.01922607421875, -0.0247802734375, 0.011962890625, -0.007061004638671875, 0.0089111328125, -0.0210113525390625, -0.01480865478515625, -0.037078857421875, -0.02215576171875, -0.03790283203125, 0.04083251953125, -0.0032711029052734375, 0.01678466796875, 0.0059967041015625, 0.0531005859375, -0.0025310516357421875, -0.06732177734375, -0.0287017822265625, 0.01129150390625, -0.02301025390625, 0.0016002655029296875, -0.007503509521484375, -0.0017709732055664062, 0.02093505859375, -0.007030487060546875, -0.0151519775390625, 0.025909423828125, -0.01128387451171875, -0.0249786376953125, -0.00229644775390625, 0.003032684326171875, 0.0253448486328125, 0.04876708984375, 0.005451202392578125, 0.00615692138671875, 0.06939697265625, -0.029632568359375, 0.031494140625, -0.0137786865234375, -0.006927490234375, 0.0194244384765625, -0.0292205810546875, -0.01226043701171875, -0.0242156982421875, 0.03424072265625, 0.015472412109375, 0.0172576904296875, -0.0164794921875, 0.031890869140625, -0.005695343017578125, -0.007587432861328125, 0.0031948089599609375, -0.007171630859375, -0.07244873046875, -0.034210205078125, 0.044464111328125, -0.0482177734375, 0.018768310546875, -0.0340576171875, 0.044525146484375, -0.049560546875, -0.0112457275390625, 0.032867431640625, -0.038330078125, -0.01418304443359375, -0.0298614501953125, -0.00579071044921875, -0.01067352294921875, 0.03375244140625, 0.006107330322265625, -0.021759033203125, 0.023345947265625, 0.02484130859375, -0.0290069580078125, -0.0213623046875, -0.0228118896484375, -0.0263214111328125, -0.039764404296875, 0.028594970703125, 0.029083251953125, -0.0208282470703125, -0.04974365234375, 0.0992431640625, -0.043365478515625, 0.0241546630859375, 0.0210418701171875, -0.025665283203125, -0.01220703125, 0.056671142578125, -0.0217132568359375, 0.035797119140625, -0.02911376953125, -0.0178375244140625, -0.0811767578125, -0.0110321044921875, -0.03155517578125, 0.034271240234375, 0.0189666748046875, -0.005481719970703125, -0.0305328369140625, 0.01245880126953125, 0.00139617919921875, 0.0226287841796875, -0.002933502197265625, 0.00482177734375, -0.005573272705078125, -0.01300811767578125, -0.005840301513671875, -0.00952911376953125, 0.0195159912109375, 0.01212310791015625, -0.0244598388671875, 0.02001953125, -0.038543701171875, 0.0014505386352539062, -0.0028362274169921875, -0.050445556640625, -0.083984375, -0.0726318359375, -0.0188140869140625, 0.01078033447265625, -0.0108489990234375, 0.032073974609375, -0.0791015625, -0.08203125, 0.047271728515625, -0.013641357421875, 0.00510406494140625, -0.0213775634765625, 0.081298828125, 0.0306854248046875, -0.022705078125, 0.040374755859375, 0.0146331787109375, 0.051177978515625, 0.004978179931640625, -0.0007781982421875, 0.027191162109375, -0.03955078125, 0.0121307373046875, 0.0212860107421875, -0.04833984375, 0.0025386810302734375, 0.043731689453125, 0.0197906494140625, 0.00815582275390625, -0.0318603515625, -0.0171661376953125, 0.04290771484375, -0.0296478271484375, -0.0296783447265625, 0.038665771484375, 0.025360107421875, 0.00823211669921875, -0.06072998046875, 0.05096435546875, 0.0033321380615234375, -0.004093170166015625, -0.00548553466796875, 0.0295257568359375, 0.006420135498046875, -0.002960205078125, 0.0308837890625, -0.038543701171875, 0.00240325927734375, -0.0022563934326171875, -0.07305908203125, -0.056243896484375, -0.0204620361328125, 0.01090240478515625, -0.0462646484375, -0.0013370513916015625, -0.01258087158203125, -0.010162353515625, 0.060546875, 0.031585693359375, -0.038818359375, 0.0224151611328125, -0.008544921875, 0.0067138671875, -0.0005159378051757812, -0.037445068359375, 0.042877197265625, 0.01377105712890625, -0.00429534912109375, 0.01078033447265625, -0.01554107666015625, -0.0205230712890625, -0.0268402099609375, -0.00719451904296875, 0.0026397705078125, -0.004817962646484375, 0.03472900390625, 0.00679779052734375, 0.05133056640625, -0.014739990234375, -0.04547119140625, 0.036834716796875, 0.025604248046875, -0.00569915771484375, 0.0204925537109375, 0.02734375, -0.0159454345703125, -0.0207977294921875, -0.0062103271484375, -0.0413818359375, 0.0023403167724609375, 0.01399993896484375, 0.042083740234375, 0.041290283203125, -0.0110931396484375, 0.00945281982421875, -0.0180206298828125, -0.020050048828125, 0.04510498046875, 0.03387451171875, -0.04510498046875, -0.0095062255859375, 0.00873565673828125, 0.003795623779296875, -0.00951385498046875, -0.0296173095703125, -0.025299072265625, -0.04888916015625, -0.0018072128295898438, -0.0308685302734375, -0.0071258544921875, 0.009735107421875, 0.00920867919921875, -0.034912109375, -0.0149688720703125, 0.0255889892578125, -0.0195159912109375, -0.0218048095703125, -0.0162353515625, -0.0064544677734375, 0.05499267578125, 0.00939178466796875, 0.01230621337890625, -0.048614501953125, 0.0003292560577392578, 0.032989501953125, -0.0199737548828125, 0.10064697265625, 0.036285400390625, -0.060821533203125, 0.032867431640625, -0.04095458984375, -0.00021076202392578125, -0.01535797119140625, -0.043670654296875, -0.03887939453125, -0.0256500244140625, -0.0013952255249023438, 0.0186309814453125, -0.008270263671875, -0.0174713134765625, -0.00966644287109375, 0.0191192626953125, 0.016387939453125, 0.031829833984375, 0.028289794921875, 0.049591064453125, -0.0229949951171875, 0.048492431640625, 0.03558349609375, 0.01274871826171875, -0.06591796875, -0.0185089111328125, -0.01262664794921875, -0.04241943359375, 0.0167694091796875, 0.005764007568359375, 0.01213836669921875, -0.01311492919921875, -0.0012178421020507812, 0.01025390625, -0.01343536376953125, -0.015777587890625, 0.00033354759216308594, -0.005588531494140625, -0.005619049072265625, 0.0244598388671875, -0.03997802734375, 0.033721923828125, -0.0172119140625, 0.00667572021484375, -0.0266876220703125, -0.00772857666015625, 0.0108795166015625, -0.022918701171875, 0.0022411346435546875, 0.02056884765625, 0.0010099411010742188, 0.01953125, 0.0399169921875, -0.00955963134765625, 0.018646240234375, 0.03759765625, 0.0209197998046875, 0.0027008056640625, -0.0222320556640625, -0.01013946533203125, 0.017791748046875, 0.0186309814453125, -0.00865936279296875, 0.034027099609375, 0.0285186767578125, 0.0023193359375, -0.003612518310546875, -0.00455474853515625, 0.04388427734375, -0.01210784912109375, 0.0009121894836425781, 0.023284912109375, -0.0100555419921875, 0.0210113525390625, 0.0208892822265625, -0.043701171875, -0.01251983642578125, 0.0233917236328125, -0.045135498046875, -0.0030364990234375, 0.037506103515625, 0.01617431640625, -0.00600433349609375, -0.054290771484375, 0.057525634765625, 0.023681640625, 0.00789642333984375, 0.04656982421875, -0.016815185546875, 0.03619384765625, -0.031036376953125, 0.008819580078125, 0.038055419921875, -0.01145172119140625, -0.027984619140625, 0.063720703125, 0.0006437301635742188, 0.0009579658508300781, -0.01261138916015625, 0.03753662109375, 0.00441741943359375, 0.0117340087890625, 0.01384735107421875, -0.052459716796875, 0.00986480712890625, -0.033050537109375, -0.037078857421875, -0.051727294921875, 0.008941650390625, 0.0728759765625, -0.03570556640625, 0.046783447265625, 0.0106353759765625, -0.025421142578125, -0.0002263784408569336, -0.0012798309326171875, 0.04974365234375, -0.02301025390625, -0.022186279296875, 0.0226593017578125, -0.0249481201171875, -0.0091552734375, 0.034515380859375, 0.01119232177734375, -0.034027099609375, -0.035736083984375, 0.027374267578125, -0.06329345703125, -0.0294189453125, 0.003322601318359375, -0.056182861328125, 0.09576416015625, 0.037322998046875, 0.0077362060546875, -0.017425537109375, 0.03985595703125, -0.0489501953125, 0.0009083747863769531, -0.06707763671875, 0.077392578125, 0.023284912109375, 0.06201171875, -0.07061767578125, -0.0113372802734375, 0.0165863037109375, 0.0276336669921875, 0.037078857421875, -0.0050811767578125, 0.0231170654296875, -0.007640838623046875, 0.00943756103515625, -0.005565643310546875, -0.04718017578125, 0.0294189453125, -0.0030231475830078125, 0.01507568359375, 0.0212249755859375, 0.000652313232421875, 0.04876708984375, -0.026397705078125, -0.0419921875, 0.00859832763671875, 0.0208282470703125, 0.0384521484375, -0.0284271240234375, 0.0203094482421875, -0.028564453125, -0.0180511474609375, 0.03173828125, -0.029296875, 0.00634765625, 0.042449951171875, 0.07110595703125, 0.0031948089599609375, 0.005313873291015625, -0.02197265625, 0.06787109375, 0.032562255859375, 0.004596710205078125, -0.0190277099609375, -0.007633209228515625, 0.0131378173828125, 0.0211181640625, -0.01494598388671875, 0.053375244140625, 0.00974273681640625, 0.041290283203125, 0.0227813720703125, -0.00177001953125, -0.0196075439453125, 0.05120849609375, 0.027587890625, 0.037567138671875, -0.057647705078125, 0.005390167236328125, 0.014678955078125, -0.01143646240234375, -0.02935791015625, -0.0443115234375, -0.0634765625, -0.01544189453125, -0.0084075927734375, -0.00551605224609375, -0.03936767578125, 0.00997161865234375, 0.053375244140625, 0.0196380615234375, 0.00817108154296875, -0.03369140625, -0.052703857421875, -0.035736083984375, -0.00559234619140625, 0.005603790283203125, 0.030914306640625, 0.0213623046875, 0.02874755859375, 0.030303955078125, -0.0087738037109375, 0.00799560546875, -0.028961181640625, -0.0022563934326171875, -0.00034046173095703125, -0.053955078125, -0.037139892578125, 0.021942138671875, 0.052825927734375, 0.037445068359375, 0.050872802734375, 0.03668212890625, -0.005847930908203125, -0.0230255126953125, 0.011077880859375, 0.0151824951171875, -0.037841796875, -0.0028247833251953125, -0.028411865234375, 0.0227203369140625, 0.0279388427734375, -0.0053558349609375, 0.0018129348754882812, 0.005474090576171875, 0.03936767578125, -0.0179901123046875, 0.01465606689453125, 0.0121917724609375, -0.033477783203125, 0.02105712890625, 0.04022216796875, 0.04852294921875, 0.02752685546875, -0.024993896484375, 0.03314208984375, -0.03594970703125, -0.1181640625, -0.00792694091796875, 0.041168212890625, -0.032196044921875, 0.005527496337890625, -0.0357666015625, -0.00943756103515625, 0.01403045654296875, -0.0017604827880859375, -0.013824462890625, 0.03204345703125, 0.0161285400390625, -0.0171966552734375, -0.0161895751953125, -0.004512786865234375, 0.015228271484375, 0.0263519287109375, 0.0013885498046875, 0.00036215782165527344, 0.0111236572265625, 0.012725830078125, 0.01548004150390625, 0.0155181884765625, -0.054534912109375, -0.026275634765625, 0.057159423828125, -0.07080078125, -0.0390625, 0.018035888671875, -0.04010009765625, 0.01983642578125, 0.0234222412109375, 0.00345611572265625, 0.037567138671875, -0.0154876708984375, 0.0134735107421875, -0.0256500244140625, -0.02899169921875, -0.04132080078125, -0.048004150390625, -0.0098419189453125, -0.0010728836059570312, -0.006160736083984375, -0.0214080810546875, -0.004848480224609375, 0.007045745849609375, -0.023834228515625, -0.0021800994873046875, -0.023834228515625, 0.022491455078125, -0.07098388671875, 0.004451751708984375, -0.015594482421875, -0.0267486572265625, 0.0037708282470703125, 0.0016508102416992188, 0.01378631591796875, 0.0025081634521484375, 0.031829833984375, 0.01030731201171875, 0.00795745849609375, -0.00981903076171875, -0.033416748046875, 0.0496826171875, 0.01898193359375, 0.0165557861328125, -0.05670166015625, 0.03216552734375, -0.043609619140625, 0.007312774658203125, -0.03509521484375, -0.0149688720703125, 0.01806640625, 0.01371002197265625, 0.03314208984375, -0.0220489501953125, -0.03778076171875, -0.01186370849609375, 0.006595611572265625, -0.0006804466247558594, -0.0487060546875, 0.0159759521484375, -0.021331787109375, 0.042755126953125, -0.04931640625, -0.04827880859375, 0.0284881591796875, 0.045623779296875, -0.0574951171875, -0.00595855712890625, -0.037750244140625, -0.046875, -0.037811279296875, 0.005950927734375, 0.044708251953125, -0.0167388916015625, -0.07513427734375, -0.0037403106689453125, 0.00357818603515625, 0.040435791015625, -0.026458740234375, -0.033111572265625, -0.01226043701171875, 0.026092529296875, -0.0017337799072265625, -0.06903076171875, 0.011444091796875, -0.06927490234375, 0.01169586181640625, -0.015899658203125, 0.0028171539306640625, 0.0271453857421875, -0.03271484375, -0.0635986328125, 0.03204345703125, -0.00676727294921875, -0.035675048828125, -0.05609130859375, 0.018646240234375, -0.0007977485656738281, 0.012054443359375, -0.01226806640625, -0.0188751220703125, -0.0172271728515625, 0.0167999267578125, -0.005886077880859375, 0.0115203857421875, 0.01206207275390625, -0.041595458984375, -0.03424072265625, -0.01030731201171875, -0.004367828369140625, -0.01995849609375, 0.00408935546875, -0.039764404296875, 0.032012939453125, 0.0129241943359375, -0.04705810546875, 0.00304412841796875, 0.03643798828125, 0.00905609130859375, -0.02886962890625, -0.045684814453125, -0.00830841064453125, 0.00688934326171875, 0.0908203125, 0.0305633544921875, 0.02581787109375, -0.05401611328125, 0.0382080078125, -0.0130157470703125, -0.031768798828125, -0.007328033447265625, 0.006053924560546875, -0.0216827392578125, -0.007137298583984375, 0.0032176971435546875, -0.021575927734375, -0.049835205078125, -0.0216827392578125, -0.059356689453125, -0.023040771484375, -0.044708251953125, 0.01751708984375, -0.002689361572265625, -0.031005859375, 0.0297088623046875, -0.01313018798828125, 0.03375244140625, 0.01206207275390625, 0.0242767333984375, 0.03338623046875, 0.0806884765625, 0.0291748046875, 0.036529541015625, -0.041351318359375, -0.01136016845703125, 0.011016845703125, 0.030975341796875, -0.02325439453125, -0.010406494140625, -0.0311126708984375, 0.0222320556640625, 0.0009665489196777344, 0.003086090087890625, 0.0271453857421875, 0.00402069091796875, 0.0080718994140625, 0.0709228515625, -0.0218963623046875, 0.007495880126953125, -0.0169830322265625, 0.039825439453125, -0.021148681640625, 0.00658416748046875, 0.00775909423828125, -0.0025463104248046875, 0.003665924072265625, 0.03070068359375, 0.04864501953125, -0.028228759765625, 0.05902099609375, 0.0311431884765625, 0.03582763671875, 0.0258026123046875 ]
e64428e59f7e31c731ae3b2f03049d3e66f33fe0
Wordpress Stackexchange Q: How to overwrite JS variable with wp_localize _script? The function wp_localize_script( $handle, $name, $data ); does not work when trying to overwrite the same variable, that is when calling the function second time with the same $handle and $name but with other $data value. How can this problem be solved?
Q: How to overwrite JS variable with wp_localize _script? The function wp_localize_script( $handle, $name, $data ); does not work when trying to overwrite the same variable, that is when calling the function second time with the same $handle and $name but with other $data value. How can this problem be solved?
wordpress
{ "language": "en", "length": 51, "provenance": "stackexchange_00019.jsonl.gz:456546", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/191840" }
[ 0.004058837890625, -0.017425537109375, -0.0379638671875, -0.055694580078125, -0.00438690185546875, -0.0232086181640625, -0.0156402587890625, 0.0149383544921875, 0.00001233816146850586, 0.0088958740234375, -0.0236053466796875, 0.00785064697265625, -0.005130767822265625, -0.0172882080078125, 0.0024566650390625, -0.034698486328125, 0.057403564453125, -0.052154541015625, -0.0078125, -0.00998687744140625, -0.008636474609375, 0.019744873046875, 0.02471923828125, 0.09326171875, 0.033905029296875, -0.05670166015625, 0.004024505615234375, 0.00927734375, -0.0196533203125, -0.01303863525390625, 0.0220489501953125, 0.029022216796875, 0.0004146099090576172, 0.04901123046875, -0.034515380859375, 0.0029506683349609375, 0.0257568359375, 0.0274658203125, 0.0230560302734375, 0.0184326171875, 0.03082275390625, -0.0237884521484375, -0.00679779052734375, 0.041900634765625, -0.020355224609375, -0.041229248046875, 0.045196533203125, -0.0123291015625, 0.001987457275390625, 0.07635498046875, 0.004016876220703125, 0.0125885009765625, -0.0161895751953125, 0.051910400390625, 0.0164337158203125, 0.008697509765625, -0.02203369140625, 0.009063720703125, 0.01316070556640625, 0.0604248046875, -0.01042938232421875, 0.008880615234375, 0.00609588623046875, -0.04742431640625, -0.0178375244140625, 0.005420684814453125, -0.0185699462890625, -0.005115509033203125, -0.043487548828125, 0.00749969482421875, 0.048065185546875, -0.0374755859375, -0.01119232177734375, 0.0119171142578125, -0.00284576416015625, -0.01800537109375, -0.0027484893798828125, 0.007266998291015625, 0.0224456787109375, 0.027679443359375, 0.004680633544921875, -0.031402587890625, 0.019805908203125, 0.0139312744140625, -0.0192718505859375, 0.0261993408203125, -0.01617431640625, -0.0182647705078125, -0.03179931640625, -0.0276947021484375, -0.0299072265625, -0.06695556640625, -0.05419921875, 0.038055419921875, 0.016571044921875, -0.01253509521484375, 0.0182952880859375, 0.0218658447265625, -0.01386260986328125, 0.00702667236328125, -0.00933074951171875, -0.01177978515625, -0.005290985107421875, -0.01158905029296875, 0.0014696121215820312, 0.01457977294921875, 0.015960693359375, 0.0171356201171875, 0.0197906494140625, 0.00936126708984375, -0.0246429443359375, 0.031341552734375, 0.00208282470703125, 0.006839752197265625, -0.0009188652038574219, -0.006862640380859375, -0.043365478515625, 0.02215576171875, -0.016845703125, 0.0025177001953125, 0.00806427001953125, 0.0272216796875, -0.06085205078125, 0.0075836181640625, 0.00856781005859375, -0.0224151611328125, -0.001293182373046875, 0.0281829833984375, 0.00519561767578125, 0.023712158203125, -0.0253448486328125, -0.0090484619140625, 0.052215576171875, 0.01166534423828125, 0.0189666748046875, -0.0298309326171875, 0.059539794921875, -0.0181427001953125, 0.0081939697265625, 0.0307464599609375, -0.033477783203125, -0.013824462890625, 0.00921630859375, -0.01328277587890625, 0.0172119140625, 0.01885986328125, 0.00920867919921875, 0.0005450248718261719, -0.0006890296936035156, -0.02886962890625, 0.026641845703125, -0.02001953125, 0.0122222900390625, 0.02349853515625, -0.001506805419921875, -0.01541900634765625, 0.043914794921875, -0.040863037109375, -0.004421234130859375, -0.0450439453125, 0.0180206298828125, -0.022979736328125, -0.0499267578125, 0.008941650390625, -0.016021728515625, 0.01239776611328125, 0.005035400390625, 0.006298065185546875, 0.0117034912109375, 0.0462646484375, -0.007251739501953125, 0.02459716796875, -0.03179931640625, -0.00765228271484375, -0.0017328262329101562, -0.00887298583984375, -0.0418701171875, 0.0183563232421875, 0.0283050537109375, -0.055419921875, -0.01447296142578125, -0.044464111328125, 0.0034198760986328125, 0.0255584716796875, -0.04180908203125, -0.0518798828125, 0.0174560546875, 0.02081298828125, 0.046966552734375, 0.0186614990234375, 0.042144775390625, -0.04205322265625, -0.0469970703125, 0.051361083984375, -0.038665771484375, -0.0174407958984375, 0.046844482421875, 0.047210693359375, -0.019989013671875, -0.0301361083984375, 0.040924072265625, 0.0062408447265625, 0.011688232421875, -0.00754547119140625, -0.0604248046875, 0.0283966064453125, -0.032470703125, 0.037994384765625, 0.005855560302734375, 0.03466796875, 0.0242767333984375, 0.035003662109375, -0.05438232421875, 0.01538848876953125, -0.00707244873046875, 0.01184844970703125, -0.0203399658203125, 0.05633544921875, 0.00983428955078125, 0.02728271484375, 0.0165863037109375, -0.034027099609375, 0.017120361328125, -0.01934814453125, -0.0196380615234375, -0.0037860870361328125, -0.025970458984375, -0.00943756103515625, -0.002834320068359375, -0.0357666015625, 0.054962158203125, 0.07958984375, -0.010528564453125, 0.03515625, -0.0035648345947265625, -0.018829345703125, 0.005229949951171875, -0.049652099609375, 0.01885986328125, 0.032684326171875, 0.044647216796875, 0.049041748046875, 0.01441192626953125, 0.004802703857421875, 0.032440185546875, -0.00530242919921875, 0.038543701171875, -0.038848876953125, 0.0223541259765625, 0.03961181640625, -0.0309906005859375, -0.0270538330078125, 0.0172119140625, -0.137451171875, 0.00018525123596191406, 0.06585693359375, -0.0416259765625, -0.013916015625, 0.00551605224609375, 0.0108642578125, -0.0155029296875, 0.0203094482421875, 0.031158447265625, -0.00820159912109375, 0.05499267578125, -0.00968170166015625, -0.005443572998046875, -0.0160980224609375, -0.0355224609375, 0.0300445556640625, 0.03759765625, -0.075439453125, 0.012237548828125, 0.02667236328125, -0.035064697265625, -0.01204681396484375, -0.0172882080078125, 0.001361846923828125, -0.013214111328125, 0.0057830810546875, 0.0047607421875, 0.055908203125, -0.0216064453125, -0.03619384765625, 0.025421142578125, 0.0243377685546875, -0.046478271484375, -0.055694580078125, 0.038970947265625, 0.010711669921875, 0.0134735107421875, 0.0190887451171875, -0.026763916015625, 0.05096435546875, 0.005428314208984375, -0.0357666015625, 0.01320648193359375, 0.0204925537109375, -0.00968170166015625, -0.00997161865234375, 0.0209197998046875, 0.03240966796875, 0.0198974609375, -0.020416259765625, -0.01372528076171875, -0.004161834716796875, 0.025909423828125, -0.01439666748046875, -0.0169219970703125, -0.04791259765625, -0.0125274658203125, -0.01387786865234375, 0.0251312255859375, 0.05438232421875, 0.0216827392578125, -0.030853271484375, 0.010223388671875, 0.0221710205078125, -0.09814453125, -0.1285400390625, 0.04656982421875, -0.0277557373046875, 0.0021686553955078125, 0.0171966552734375, -0.0201416015625, -0.03253173828125, 0.03594970703125, -0.007602691650390625, 0.0220184326171875, -0.0194549560546875, 0.00713348388671875, -0.0577392578125, -0.050994873046875, -0.06353759765625, 0.00537109375, 0.00879669189453125, -0.0003731250762939453, -0.037322998046875, -0.00849151611328125, -0.00200653076171875, 0.0274200439453125, 0.0281219482421875, 0.014007568359375, 0.00893402099609375, 0.006061553955078125, -0.02923583984375, 0.0182952880859375, -0.01444244384765625, -0.00803375244140625, 0.0098876953125, 0.0035228729248046875, -0.0100555419921875, 0.020904541015625, 0.0175933837890625, 0.039642333984375, 0.02032470703125, -0.0242767333984375, 0.0074920654296875, 0.0469970703125, -0.0293121337890625, -0.0159454345703125, 0.00395965576171875, -0.022674560546875, -0.0185089111328125, 0.00927734375, -0.023193359375, -0.025726318359375, 0.02642822265625, 0.0292510986328125, 0.016021728515625, -0.032745361328125, 0.0017719268798828125, 0.01029205322265625, 0.01456451416015625, 0.04364013671875, -0.0015392303466796875, 0.035858154296875, -0.0213775634765625, -0.0300445556640625, -0.019683837890625, -0.0162506103515625, -0.02783203125, -0.0242919921875, -0.04815673828125, 0.00438690185546875, 0.0282135009765625, -0.004486083984375, 0.0261993408203125, 0.00528717041015625, -0.0089111328125, 0.0109405517578125, 0.03662109375, 0.004642486572265625, -0.00897216796875, 0.0011644363403320312, 0.01433563232421875, -0.09521484375, -0.0207366943359375, -0.06231689453125, 0.031585693359375, -0.030059814453125, 0.014434814453125, 0.00647735595703125, 0.00017583370208740234, -0.03643798828125, 0.09393310546875, -0.01959228515625, -0.005512237548828125, 0.037322998046875, -0.04656982421875, 0.019378662109375, 0.00302886962890625, 0.038116455078125, -0.043243408203125, -0.00598907470703125, -0.031890869140625, -0.0467529296875, -0.01025390625, -0.021026611328125, 0.053070068359375, 0.013458251953125, -0.0303497314453125, -0.0236358642578125, 0.0240631103515625, -0.022705078125, 0.006481170654296875, -0.00832366943359375, 0.0031890869140625, 0.0292510986328125, 0.025726318359375, -0.01305389404296875, 0.0006389617919921875, 0.006587982177734375, -0.0019130706787109375, -0.053009033203125, 0.02325439453125, -0.0027446746826171875, -0.0031642913818359375, 0.027984619140625, -0.042022705078125, -0.07342529296875, -0.01366424560546875, -0.01058197021484375, 0.0013828277587890625, -0.0165252685546875, 0.0192413330078125, -0.006561279296875, -0.06048583984375, 0.0203857421875, 0.0321044921875, -0.007350921630859375, 0.002788543701171875, 0.0260009765625, 0.017578125, -0.03485107421875, -0.04461669921875, 0.00598907470703125, -0.0001055598258972168, 0.00635528564453125, 0.033294677734375, -0.01971435546875, -0.006320953369140625, 0.042877197265625, -0.0225982666015625, 0.004180908203125, 0.0211029052734375, 0.029571533203125, 0.0168304443359375, 0.000013470649719238281, 0.0097808837890625, 0.012054443359375, -0.053619384765625, 0.0125579833984375, 0.006923675537109375, -0.0042266845703125, 0.0108642578125, 0.0157928466796875, 0.0022678375244140625, -0.017913818359375, -0.0094146728515625, -0.0499267578125, 0.01497650146484375, -0.0341796875, 0.039703369140625, 0.00801849365234375, -0.0009918212890625, 0.00848388671875, 0.012847900390625, 0.01354217529296875, 0.014251708984375, 0.016387939453125, -0.03643798828125, 0.0312347412109375, 0.0160980224609375, -0.007808685302734375, -0.0038623809814453125, -0.01139068603515625, 0.033935546875, 0.01885986328125, -0.01131439208984375, -0.004619598388671875, 0.011962890625, -0.034271240234375, -0.00861358642578125, 0.045501708984375, -0.033172607421875, -0.007015228271484375, 0.0176544189453125, 0.0260467529296875, 0.08782958984375, -0.0022754669189453125, 0.0227813720703125, 0.051727294921875, 0.031829833984375, -0.004489898681640625, -0.00815582275390625, 0.05633544921875, 0.0209197998046875, 0.003173828125, -0.00760650634765625, 0.0083465576171875, 0.004985809326171875, 0.0199127197265625, 0.025360107421875, 0.0036220550537109375, 0.00832366943359375, 0.01367950439453125, 0.0179290771484375, -0.037353515625, -0.0273284912109375, 0.045166015625, 0.035919189453125, 0.005161285400390625, 0.0095977783203125, -0.014739990234375, 0.0005693435668945312, -0.01470947265625, 0.019317626953125, -0.0132904052734375, -0.050628662109375, 0.0146484375, 0.00955963134765625, 0.0163726806640625, -0.018768310546875, 0.0198211669921875, -0.0535888671875, -0.034027099609375, -0.022308349609375, 0.01000213623046875, 0.00788116455078125, -0.049102783203125, -0.0501708984375, -0.013763427734375, 0.00933074951171875, -0.004520416259765625, -0.04345703125, -0.061126708984375, 0.01427459716796875, 0.0224456787109375, 0.0186767578125, 0.00003331899642944336, 0.048309326171875, -0.0546875, 0.0114288330078125, -0.0208892822265625, -0.00934600830078125, 0.07440185546875, 0.032379150390625, -0.00789642333984375, -0.01059722900390625, -0.0489501953125, -0.0240478515625, -0.0282135009765625, -0.044952392578125, -0.0360107421875, 0.0007147789001464844, -0.007381439208984375, 0.025390625, -0.0287628173828125, -0.0175628662109375, 0.019256591796875, 0.0229644775390625, 0.001781463623046875, 0.045806884765625, -0.05322265625, 0.047943115234375, 0.0335693359375, -0.0285186767578125, -0.016204833984375, 0.038726806640625, 0.019622802734375, 0.0106048583984375, 0.0170440673828125, -0.023223876953125, -0.0447998046875, -0.0242462158203125, -0.0277557373046875, -0.0017642974853515625, 0.051116943359375, -0.0155029296875, 0.0745849609375, -0.005886077880859375, 0.00876617431640625, -0.004024505615234375, -0.04718017578125, -0.05303955078125, 0.029022216796875, 0.03155517578125, -0.002960205078125, 0.00986480712890625, -0.017974853515625, -0.0174713134765625, 0.0114288330078125, 0.007740020751953125, -0.00446319580078125, 0.0017633438110351562, -0.0440673828125, 0.00038743019104003906, 0.0218505859375, -0.01800537109375, 0.035858154296875, -0.0211639404296875, 0.009429931640625, 0.065673828125, -0.006328582763671875, 0.0141754150390625, 0.0198516845703125, 0.005794525146484375, -0.041046142578125, 0.004657745361328125, -0.05169677734375, -0.01120758056640625, 0.006839752197265625, 0.0697021484375, 0.094482421875, -0.09942626953125, 0.0116729736328125, 0.045867919921875, -0.01517486572265625, -0.0693359375, -0.007656097412109375, 0.005641937255859375, -0.0032901763916015625, 0.013092041015625, 0.0035610198974609375, -0.03216552734375, -0.002735137939453125, 0.010772705078125, -0.00952911376953125, -0.038543701171875, 0.00899505615234375, 0.00988006591796875, -0.008819580078125, 0.03057861328125, 0.016845703125, 0.0203399658203125, -0.0308074951171875, -0.007343292236328125, 0.033477783203125, -0.06451416015625, -0.078369140625, -0.01216888427734375, 0.0052947998046875, -0.01690673828125, -0.046417236328125, -0.00638580322265625, 0.07623291015625, 0.0167083740234375, 0.017730712890625, -0.04248046875, -0.018310546875, 0.061553955078125, 0.0205230712890625, -0.03460693359375, 0.0226287841796875, 0.054107666015625, -0.0802001953125, 0.015594482421875, -0.0230712890625, 0.011932373046875, -0.01204681396484375, -0.0103759765625, 0.0157470703125, -0.0227813720703125, -0.005634307861328125, 0.0225830078125, 0.0325927734375, -0.0019426345825195312, -0.0036830902099609375, 0.0289154052734375, -0.0672607421875, -0.058746337890625, 0.0036182403564453125, -0.09381103515625, -0.0202178955078125, -0.0086669921875, -0.0621337890625, 0.12213134765625, 0.034027099609375, 0.053314208984375, 0.03399658203125, 0.041839599609375, -0.039947509765625, 0.012725830078125, -0.04986572265625, 0.04644775390625, 0.0014410018920898438, 0.0288848876953125, -0.0287322998046875, 0.0312042236328125, 0.004817962646484375, -0.017120361328125, -0.00745391845703125, -0.01090240478515625, 0.062103271484375, -0.0115203857421875, -0.016143798828125, 0.036407470703125, -0.030914306640625, -0.0311431884765625, 0.004367828369140625, 0.0164642333984375, 0.0236053466796875, -0.032958984375, 0.0114593505859375, -0.03961181640625, -0.004413604736328125, 0.035919189453125, 0.0202178955078125, 0.02081298828125, -0.0020809173583984375, 0.00678253173828125, -0.040740966796875, 0.0030517578125, 0.0283203125, 0.006160736083984375, -0.004283905029296875, 0.0278167724609375, -0.0148468017578125, 0.0521240234375, -0.00359344482421875, 0.002880096435546875, 0.01568603515625, 0.0006394386291503906, -0.0078582763671875, 0.0007781982421875, 0.0018720626831054688, 0.003231048583984375, 0.0204620361328125, -0.03228759765625, 0.036224365234375, 0.01491546630859375, 0.0165252685546875, 0.05303955078125, 0.031982421875, 0.026824951171875, 0.0019683837890625, 0.04803466796875, 0.034820556640625, -0.0217132568359375, 0.004344940185546875, 0.02978515625, 0.026397705078125, -0.032501220703125, -0.006458282470703125, 0.0132598876953125, -0.0225830078125, 0.017364501953125, -0.027923583984375, -0.005924224853515625, 0.022216796875, 0.0158843994140625, 0.01450347900390625, 0.065185546875, -0.02850341796875, -0.022918701171875, -0.078369140625, 0.0091094970703125, 0.013946533203125, 0.10845947265625, 0.032684326171875, 0.068359375, -0.02130126953125, -0.057525634765625, -0.002460479736328125, 0.015838623046875, 0.0151824951171875, -0.003231048583984375, -0.02435302734375, -0.021148681640625, 0.035064697265625, 0.0257720947265625, 0.0262908935546875, 0.040618896484375, 0.06097412109375, 0.034515380859375, -0.037200927734375, 0.01157379150390625, 0.07305908203125, -0.0246429443359375, 0.037841796875, -0.038116455078125, 0.014862060546875, -0.040557861328125, -0.0299835205078125, -0.004978179931640625, 0.036102294921875, -0.02215576171875, -0.0012788772583007812, 0.02490234375, 0.005962371826171875, -0.057861328125, 0.009796142578125, 0.021728515625, 0.1422119140625, 0.04229736328125, -0.0262908935546875, 0.006916046142578125, -0.051483154296875, -0.038330078125, 0.045806884765625, 0.0391845703125, 0.005008697509765625, 0.0173797607421875, 0.042388916015625, -0.057098388671875, 0.01177215576171875, 0.07647705078125, -0.0185699462890625, -0.020965576171875, 0.028472900390625, -0.023956298828125, -0.0212554931640625, -0.0265350341796875, 0.0019016265869140625, 0.048309326171875, 0.0153045654296875, -0.00559234619140625, 0.01187896728515625, 0.0255279541015625, 0.0118560791015625, 0.0215606689453125, -0.0120849609375, 0.0028324127197265625, -0.0239105224609375, 0.0003502368927001953, 0.0355224609375, -0.0105743408203125, -0.0092926025390625, 0.037628173828125, -0.0037403106689453125, -0.0175323486328125, 0.0300140380859375, -0.025146484375, 0.006519317626953125, 0.0008006095886230469, 0.0281982421875, -0.037261962890625, -0.029083251953125, -0.031585693359375, -0.006587982177734375, 0.0200653076171875, 0.018157958984375, 0.0287017822265625, 0.004474639892578125, -0.0216827392578125, -0.0287322998046875, 0.01421356201171875, -0.03509521484375, -0.019256591796875, 0.0139312744140625, 0.017425537109375, -0.007183074951171875, -0.01514434814453125, -0.0237579345703125, -0.0091552734375, 0.021026611328125, -0.005889892578125, -0.016845703125, 0.0202178955078125, -0.03369140625, -0.0225067138671875, -0.00017261505126953125, -0.00079345703125, -0.01348114013671875, 0.002288818359375, -0.0147705078125, -0.067138671875, 0.0022640228271484375, -0.004451751708984375, -0.00919342041015625, -0.003093719482421875, 0.033172607421875, 0.0159912109375, 0.00969696044921875, -0.01800537109375, 0.0009670257568359375, -0.0014410018920898438, -0.011627197265625, -0.0218505859375, 0.0114288330078125, -0.03253173828125, 0.000751495361328125, -0.0078582763671875, -0.0309600830078125, -0.00867462158203125, 0.041534423828125, -0.0183563232421875, -0.04034423828125, -0.032989501953125, 0.0208740234375, -0.022216796875, 0.0213165283203125, 0.0261688232421875, -0.007160186767578125, 0.00942230224609375, 0.08013916015625, 0.0426025390625, 0.1181640625, -0.0265045166015625, -0.03179931640625, 0.019256591796875, 0.001983642578125, -0.00727081298828125, -0.047607421875, 0.01306915283203125, -0.0850830078125, 0.018280029296875, -0.0226898193359375, -0.00075531005859375, 0.0009336471557617188, -0.047821044921875, -0.06658935546875, 0.0128326416015625, 0.005222320556640625, -0.044189453125, -0.040740966796875, -0.00731658935546875, 0.0101318359375, -0.001003265380859375, -0.03094482421875, 0.006450653076171875, -0.04669189453125, -0.00478363037109375, 0.004688262939453125, 0.0299072265625, 0.0102386474609375, -0.01090240478515625, -0.0286102294921875, 0.02880859375, 0.0219879150390625, 0.0231475830078125, 0.0199737548828125, -0.005725860595703125, 0.03680419921875, 0.033935546875, -0.021728515625, -0.0029296875, -0.01380157470703125, -0.03509521484375, 0.0006656646728515625, 0.00234222412109375, -0.055267333984375, 0.00443267822265625, 0.08251953125, 0.0511474609375, 0.040985107421875, -0.040557861328125, 0.003299713134765625, -0.0294036865234375, 0.0068206787109375, -0.006793975830078125, 0.0106201171875, -0.048309326171875, -0.0014066696166992188, 0.0374755859375, -0.0176544189453125, -0.01739501953125, 0.002338409423828125, -0.0187835693359375, -0.011444091796875, 0.0242919921875, -0.0218658447265625, 0.0023345947265625, -0.04669189453125, 0.102294921875, -0.048583984375, 0.008148193359375, 0.037567138671875, 0.03759765625, 0.0574951171875, 0.048187255859375, 0.007762908935546875, 0.01910400390625, -0.0149993896484375, -0.0261993408203125, 0.02105712890625, 0.0298004150390625, 0.0199127197265625, -0.0322265625, -0.0103302001953125, 0.0134124755859375, 0.0025768280029296875, -0.0014896392822265625, -0.01285552978515625, 0.061492919921875, 0.0206146240234375, -0.0197906494140625, -0.047088623046875, -0.005748748779296875, -0.00507354736328125, -0.00818634033203125, -0.029541015625, 0.0311279296875, 0.03558349609375, -0.0205078125, 0.002407073974609375, -0.007049560546875, -0.0241241455078125, -0.03656005859375, 0.0106964111328125, -0.003589630126953125, -0.005584716796875, 0.0274505615234375 ]
4da2cc5cc2c6dc45682ac03668be7aec4458bdd6
Wordpress Stackexchange Q: How can I get all user options? The codex has a function called get_user_option() but it requires me to pass the name of the option. Is there a wp function to retrieve all user options? I just need to see a list of all options set for a specific user. The only other similar function I found is get_alloptions() but that has been deprecated. A: You will get all the meta for the user by using get_user_meta function $all_meta_for_user = get_user_meta( [user ID] ); echo "<pre>"; print_r( $all_meta_for_user );
Q: How can I get all user options? The codex has a function called get_user_option() but it requires me to pass the name of the option. Is there a wp function to retrieve all user options? I just need to see a list of all options set for a specific user. The only other similar function I found is get_alloptions() but that has been deprecated. A: You will get all the meta for the user by using get_user_meta function $all_meta_for_user = get_user_meta( [user ID] ); echo "<pre>"; print_r( $all_meta_for_user );
wordpress
{ "language": "en", "length": 90, "provenance": "stackexchange_00019.jsonl.gz:456562", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/191907" }
[ 0.04669189453125, -0.0289459228515625, 0.0281829833984375, -0.01419830322265625, -0.03033447265625, -0.0263214111328125, 0.032440185546875, -0.01229095458984375, 0.0223388671875, 0.043304443359375, -0.0198516845703125, -0.00968170166015625, 0.01055145263671875, -0.005619049072265625, -0.04595947265625, -0.036376953125, 0.06207275390625, -0.035308837890625, 0.00591278076171875, -0.00801849365234375, 0.0146484375, 0.040313720703125, 0.0013933181762695312, 0.1004638671875, 0.0251617431640625, -0.03741455078125, -0.0251312255859375, -0.01218414306640625, 0.01116943359375, -0.00589752197265625, 0.007221221923828125, 0.0296783447265625, -0.01922607421875, 0.016021728515625, 0.030792236328125, -0.01071929931640625, 0.02032470703125, 0.011688232421875, 0.043548583984375, -0.01318359375, 0.02252197265625, 0.0016088485717773438, -0.05999755859375, 0.056732177734375, -0.04638671875, -0.0748291015625, 0.050506591796875, -0.003265380859375, -0.007358551025390625, 0.0158538818359375, 0.036224365234375, -0.0238037109375, 0.05389404296875, -0.00771331787109375, -0.002033233642578125, -0.01442718505859375, 0.022674560546875, -0.0123748779296875, 0.054779052734375, -0.053619384765625, -0.05401611328125, -0.033721923828125, 0.043182373046875, -0.00826263427734375, 0.0102386474609375, -0.03204345703125, -0.042816162109375, 0.0433349609375, -0.01068115234375, 0.006725311279296875, 0.01549530029296875, -0.006229400634765625, 0.0229949951171875, -0.0165557861328125, 0.00890350341796875, -0.0250091552734375, -0.0142822265625, -0.0110931396484375, 0.0298309326171875, -0.007404327392578125, 0.033172607421875, -0.029022216796875, -0.05426025390625, 0.0147247314453125, 0.0159454345703125, 0.02410888671875, 0.005840301513671875, -0.02227783203125, -0.0133819580078125, -0.0222015380859375, -0.006786346435546875, -0.041046142578125, -0.028717041015625, 0.00885772705078125, -0.0003502368927001953, -0.03143310546875, 0.021484375, 0.03997802734375, -0.0311431884765625, -0.0005221366882324219, 0.00489044189453125, -0.033477783203125, 0.0250701904296875, -0.0292816162109375, -0.01114654541015625, 0.0214080810546875, 0.007904052734375, 0.042816162109375, 0.01274871826171875, 0.051055908203125, -0.0013408660888671875, -0.0294342041015625, -0.033111572265625, -0.0015163421630859375, -0.01313018798828125, 0.0118408203125, -0.0567626953125, 0.0214691162109375, -0.0189361572265625, 0.0150604248046875, 0.048431396484375, 0.055633544921875, 0.00598907470703125, -0.049713134765625, -0.0241546630859375, -0.033172607421875, -0.0457763671875, -0.044097900390625, -0.0230712890625, 0.035919189453125, -0.0277252197265625, 0.0136566162109375, 0.003513336181640625, -0.01036834716796875, -0.032806396484375, -0.029388427734375, -0.0101470947265625, -0.0180511474609375, -0.0013818740844726562, 0.036590576171875, 0.0067901611328125, -0.08245849609375, -0.0255126953125, 0.035888671875, -0.0165252685546875, 0.00621795654296875, 0.042999267578125, 0.01290130615234375, -0.031707763671875, -0.01123046875, -0.0809326171875, 0.0662841796875, -0.013458251953125, -0.0010194778442382812, 0.03118896484375, 0.0254669189453125, 0.01812744140625, 0.0032787322998046875, -0.01338958740234375, 0.00948333740234375, -0.019012451171875, -0.00243377685546875, 0.048248291015625, 0.03643798828125, 0.0260009765625, -0.00787353515625, -0.0011568069458007812, 0.00018715858459472656, 0.0264739990234375, 0.0682373046875, -0.002567291259765625, -0.00772857666015625, 0.049835205078125, 0.0181427001953125, -0.0195465087890625, -0.0014972686767578125, -0.007144927978515625, 0.0305633544921875, 0.015289306640625, -0.018524169921875, -0.022796630859375, -0.04888916015625, 0.033966064453125, -0.004241943359375, -0.042144775390625, 0.01409149169921875, 0.0127105712890625, 0.0771484375, 0.0247650146484375, 0.018463134765625, 0.004085540771484375, -0.00226593017578125, 0.005199432373046875, -0.01027679443359375, -0.0014667510986328125, -0.00772857666015625, 0.01129913330078125, 0.0035648345947265625, -0.0145416259765625, -0.0031032562255859375, 0.039703369140625, -0.039520263671875, 0.004489898681640625, -0.0447998046875, -0.08734130859375, -0.039031982421875, -0.0241851806640625, 0.0209808349609375, -0.0061798095703125, 0.0269012451171875, 0.01035308837890625, -0.0171966552734375, -0.039306640625, 0.040313720703125, 0.0025787353515625, 0.01117706298828125, -0.008270263671875, 0.049285888671875, -0.002925872802734375, 0.0509033203125, -0.00395965576171875, -0.038238525390625, 0.006740570068359375, 0.01934814453125, 0.0379638671875, 0.0146484375, -0.00966644287109375, 0.006328582763671875, 0.056243896484375, 0.00424957275390625, 0.0300445556640625, -0.001544952392578125, 0.0021991729736328125, 0.01482391357421875, -0.042877197265625, -0.002033233642578125, -0.01568603515625, 0.006534576416015625, -0.0016469955444335938, 0.0175933837890625, 0.0389404296875, 0.055389404296875, 0.030426025390625, 0.037384033203125, 0.062042236328125, -0.0310516357421875, 0.031646728515625, -0.00653076171875, 0.020294189453125, 0.04705810546875, 0.007244110107421875, 0.020263671875, 0.00823211669921875, -0.006557464599609375, 0.032379150390625, 0.0298614501953125, -0.03704833984375, 0.005107879638671875, 0.00811767578125, -0.002483367919921875, -0.021728515625, -0.033172607421875, 0.01244354248046875, -0.03240966796875, 0.01617431640625, -0.00434112548828125, 0.0005908012390136719, -0.00067901611328125, -0.0258636474609375, 0.00885772705078125, 0.0258636474609375, 0.00397491455078125, -0.005771636962890625, 0.03826904296875, 0.035919189453125, -0.0022411346435546875, -0.013671875, -0.01464080810546875, -0.016937255859375, 0.0216522216796875, 0.0167694091796875, 0.0462646484375, 0.0135955810546875, -0.0015392303466796875, 0.01183319091796875, -0.0268707275390625, 0.0048065185546875, 0.021697998046875, -0.004886627197265625, 0.0150909423828125, 0.0401611328125, 0.01074981689453125, -0.0090789794921875, 0.0051727294921875, -0.003993988037109375, -0.01153564453125, 0.00592803955078125, -0.056488037109375, 0.022247314453125, -0.0195770263671875, 0.04248046875, 0.07159423828125, 0.003692626953125, 0.0026226043701171875, 0.0019092559814453125, -0.035308837890625, -0.030426025390625, 0.051727294921875, 0.01500701904296875, -0.04278564453125, -0.0050201416015625, 0.052215576171875, 0.00449371337890625, 0.01947021484375, -0.01910400390625, -0.033172607421875, -0.025299072265625, -0.0037746429443359375, -0.061309814453125, -0.01264190673828125, -0.0024700164794921875, -0.0823974609375, -0.0204315185546875, -0.055450439453125, -0.049102783203125, 0.02978515625, -0.037353515625, 0.00450897216796875, 0.038421630859375, -0.0157318115234375, -0.046478271484375, -0.01000213623046875, -0.06353759765625, -0.00856781005859375, -0.0062408447265625, 0.002994537353515625, -0.0044097900390625, 0.058746337890625, -0.0111541748046875, -0.039398193359375, -0.0211181640625, -0.0011034011840820312, -0.0029354095458984375, -0.032501220703125, 0.016754150390625, -0.0272064208984375, 0.000006020069122314453, -0.0125885009765625, 0.007053375244140625, 0.0194091796875, -0.01922607421875, 0.0095977783203125, 0.01131439208984375, -0.0166015625, 0.0112457275390625, 0.0272216796875, -0.0262451171875, 0.01161956787109375, 0.046417236328125, -0.037078857421875, 0.04217529296875, 0.0294647216796875, 0.0182342529296875, 0.03814697265625, -0.024749755859375, -0.043365478515625, 0.031707763671875, -0.004817962646484375, 0.0195465087890625, 0.0284576416015625, 0.01204681396484375, 0.01287078857421875, -0.01174163818359375, -0.0092315673828125, 0.0182342529296875, -0.0027008056640625, -0.007404327392578125, -0.0186614990234375, 0.030029296875, -0.006481170654296875, 0.01451873779296875, 0.0013513565063476562, 0.009185791015625, 0.0038433074951171875, -0.068115234375, 0.04998779296875, -0.017364501953125, -0.00780487060546875, -0.03814697265625, -0.0294342041015625, -0.0156707763671875, 0.105224609375, 0.055023193359375, -0.00868988037109375, -0.0121307373046875, -0.00850677490234375, -0.06982421875, 0.005138397216796875, -0.046844482421875, 0.020355224609375, -0.09820556640625, -0.0012865066528320312, -0.00832366943359375, -0.0438232421875, -0.0090789794921875, -0.026214599609375, -0.061492919921875, -0.024566650390625, 0.023406982421875, 0.005504608154296875, -0.00598907470703125, -0.0145721435546875, -0.0180206298828125, -0.0151519775390625, -0.0095367431640625, 0.0011205673217773438, -0.03466796875, -0.017578125, -0.012939453125, 0.04718017578125, 0.038330078125, -0.039642333984375, 0.00514984130859375, 0.04119873046875, 0.00904083251953125, 0.035125732421875, 0.009613037109375, 0.00443267822265625, 0.021392822265625, -0.032867431640625, 0.00827789306640625, -0.037567138671875, -0.01271820068359375, -0.0271148681640625, -0.0149078369140625, -0.00647735595703125, -0.05029296875, 0.0297393798828125, -0.041259765625, -0.009613037109375, -0.0181121826171875, -0.041534423828125, -0.05218505859375, -0.00232696533203125, -0.0380859375, 0.00026798248291015625, -0.041412353515625, -0.051727294921875, 0.0196380615234375, 0.006725311279296875, -0.0049285888671875, 0.0037841796875, 0.0596923828125, 0.019134521484375, -0.018707275390625, 0.001483917236328125, 0.0015878677368164062, 0.01213836669921875, -0.0036220550537109375, 0.031494140625, 0.005832672119140625, 0.0009579658508300781, 0.0243377685546875, -0.0180206298828125, 0.043701171875, -0.051422119140625, 0.031982421875, -0.02154541015625, -0.01500701904296875, 0.0247039794921875, -0.0001481771469116211, 0.012786865234375, 0.021087646484375, 0.0007696151733398438, -0.0199127197265625, -0.004756927490234375, 0.0250396728515625, 0.0191802978515625, -0.00809478759765625, -0.0206756591796875, -0.0362548828125, 0.0031585693359375, -0.05731201171875, 0.049072265625, 0.0203857421875, -0.01021575927734375, 0.031982421875, 0.03460693359375, 0.01528167724609375, -0.00921630859375, 0.01654052734375, -0.005123138427734375, 0.058563232421875, -0.0458984375, 0.01319122314453125, -0.04095458984375, -0.0137176513671875, 0.0687255859375, -0.0177154541015625, -0.06549072265625, 0.03662109375, -0.021575927734375, 0.03656005859375, 0.031982421875, 0.0019893646240234375, 0.0299224853515625, 0.038848876953125, -0.006988525390625, -0.0246124267578125, -0.0202484130859375, 0.022735595703125, -0.055816650390625, 0.05352783203125, 0.00191497802734375, 0.0032806396484375, 0.0030994415283203125, 0.0989990234375, -0.050506591796875, 0.07550048828125, -0.0025177001953125, 0.0025005340576171875, 0.01525115966796875, 0.0241851806640625, 0.033416748046875, -0.0185699462890625, -0.0084686279296875, -0.0118865966796875, 0.005756378173828125, -0.0374755859375, 0.0163726806640625, 0.049835205078125, 0.027587890625, 0.08056640625, -0.005626678466796875, -0.038238525390625, -0.01142120361328125, -0.02044677734375, 0.03216552734375, -0.004016876220703125, -0.05120849609375, -0.0188751220703125, 0.0157470703125, 0.007144927978515625, -0.0234527587890625, 0.0263519287109375, 0.0088653564453125, 0.0303955078125, -0.003803253173828125, -0.01483154296875, -0.04315185546875, -0.018829345703125, 0.01457977294921875, -0.08673095703125, 0.00020444393157958984, 0.0182647705078125, -0.08905029296875, -0.04827880859375, 0.0015649795532226562, -0.039520263671875, 0.0706787109375, -0.019378662109375, 0.035125732421875, -0.037353515625, 0.0028514862060546875, -0.049407958984375, -0.0025157928466796875, 0.054351806640625, 0.0361328125, -0.051239013671875, 0.010284423828125, -0.023834228515625, 0.01212310791015625, 0.006343841552734375, -0.0513916015625, -0.02728271484375, -0.02337646484375, 0.0206451416015625, 0.0218963623046875, 0.0275421142578125, 0.021820068359375, 0.029083251953125, 0.020538330078125, -0.0078125, 0.05279541015625, 0.0008454322814941406, 0.061767578125, -0.01540374755859375, 0.018280029296875, 0.0091400146484375, 0.0321044921875, -0.020782470703125, -0.00447845458984375, -0.0021495819091796875, -0.0013837814331054688, -0.028656005859375, -0.0220794677734375, -0.006866455078125, 0.01010894775390625, 0.0770263671875, -0.007022857666015625, -0.012359619140625, -0.0188140869140625, 0.002323150634765625, -0.0182952880859375, 0.03814697265625, 0.0195159912109375, -0.00989532470703125, 0.0210723876953125, -0.0186920166015625, -0.01434326171875, -0.01357269287109375, -0.00907135009765625, 0.03948974609375, -0.00896453857421875, 0.031463623046875, -0.01445770263671875, -0.063720703125, 0.0731201171875, 0.0889892578125, -0.006542205810546875, 0.0269622802734375, 0.01534271240234375, -0.0122833251953125, 0.0011653900146484375, 0.01262664794921875, -0.010009765625, -0.0285186767578125, 0.035552978515625, 0.012054443359375, 0.00432586669921875, 0.047607421875, -0.00966644287109375, 0.00794219970703125, 0.039520263671875, 0.050567626953125, -0.07843017578125, 0.03466796875, 0.0220794677734375, 0.0243682861328125, 0.042327880859375, -0.0052642822265625, -0.01629638671875, -0.053558349609375, 0.06390380859375, -0.045379638671875, -0.01351165771484375, 0.023712158203125, -0.030670166015625, -0.0236053466796875, -0.0474853515625, 0.01044464111328125, 0.01140594482421875, 0.036376953125, 0.0176544189453125, -0.0173492431640625, 0.0222015380859375, -0.01806640625, 0.0030975341796875, -0.01503753662109375, -0.0261993408203125, -0.0614013671875, -0.0206451416015625, -0.0185394287109375, -0.021087646484375, 0.0018444061279296875, -0.00127410888671875, 0.006732940673828125, 0.017486572265625, -0.0197906494140625, -0.005008697509765625, -0.0007944107055664062, -0.052093505859375, -0.04241943359375, -0.0469970703125, -0.0306549072265625, 0.005352020263671875, 0.0185089111328125, 0.0265045166015625, 0.01006317138671875, -0.037567138671875, -0.0247802734375, -0.048980712890625, 0.062225341796875, -0.042236328125, 0.0018262863159179688, 0.0197906494140625, 0.0352783203125, -0.01485443115234375, 0.04083251953125, -0.01183319091796875, -0.00469207763671875, 0.004608154296875, 0.0211334228515625, -0.02752685546875, 0.0032215118408203125, 0.06304931640625, -0.046783447265625, 0.038787841796875, -0.01114654541015625, -0.01849365234375, 0.01031494140625, 0.01129150390625, -0.016448974609375, -0.00830841064453125, -0.055938720703125, 0.06439208984375, 0.0214385986328125, 0.04541015625, -0.07958984375, -0.029144287109375, -0.0144805908203125, 0.0474853515625, 0.042266845703125, 0.0255126953125, -0.052734375, -0.0213470458984375, 0.01139068603515625, 0.02545166015625, 0.0070343017578125, 0.04541015625, 0.035247802734375, 0.04681396484375, 0.09918212890625, -0.03936767578125, 0.0290374755859375, -0.00782012939453125, 0.0266571044921875, 0.0296173095703125, 0.00020074844360351562, -0.0045928955078125, -0.034454345703125, 0.040435791015625, -0.0309295654296875, -0.0161590576171875, 0.0050506591796875, -0.02142333984375, 0.004924774169921875, 0.0286865234375, 0.01019287109375, 0.00634002685546875, 0.0236663818359375, -0.0222930908203125, 0.0382080078125, -0.0186614990234375, -0.01438140869140625, 0.019378662109375, 0.009429931640625, -0.02130126953125, 0.01123809814453125, -0.00913238525390625, 0.005771636962890625, 0.0251007080078125, 0.043304443359375, 0.020263671875, 0.0016355514526367188, -0.047821044921875, 0.0138397216796875, 0.043212890625, 0.052337646484375, -0.0517578125, -0.06451416015625, 0.016021728515625, -0.01425933837890625, -0.0018253326416015625, 0.0484619140625, 0.027679443359375, 0.0078582763671875, 0.049163818359375, -0.055023193359375, 0.00464630126953125, 0.0018825531005859375, 0.04412841796875, -0.0109405517578125, -0.01983642578125, -0.02667236328125, -0.0026645660400390625, -0.016693115234375, -0.02142333984375, 0.00579071044921875, 0.00046825408935546875, 0.0271148681640625, 0.017791748046875, 0.0389404296875, 0.0124969482421875, -0.0024967193603515625, 0.0268096923828125, 0.0015497207641601562, -0.0131988525390625, -0.0131378173828125, -0.041900634765625, 0.01605224609375, 0.034210205078125, 0.038818359375, -0.0298004150390625, 0.026702880859375, 0.0275421142578125, -0.026641845703125, 0.00001049041748046875, 0.0821533203125, -0.0044403076171875, 0.031951904296875, -0.0247344970703125, 0.029541015625, 0.0084075927734375, 0.00018095970153808594, -0.0259246826171875, 0.0159912109375, 0.05517578125, 0.013153076171875, 0.060577392578125, 0.00579833984375, 0.0218505859375, 0.0169830322265625, -0.0197296142578125, 0.0129852294921875, 0.018951416015625, -0.03826904296875, -0.00170135498046875, -0.05731201171875, 0.00821685791015625, 0.0142822265625, 0.01378631591796875, 0.010101318359375, 0.0190887451171875, -0.0528564453125, -0.0272979736328125, 0.029571533203125, -0.00029397010803222656, 0.0022640228271484375, 0.043914794921875, 0.0020465850830078125, -0.0200042724609375, -0.06890869140625, -0.0174713134765625, -0.0189666748046875, -0.0047607421875, -0.00858306884765625, 0.037841796875, 0.01052093505859375, -0.0017271041870117188, 0.0016622543334960938, -0.0230255126953125, 0.024658203125, -0.037109375, 0.078125, 0.004062652587890625, -0.02685546875, -0.0301666259765625, -0.0182647705078125, 0.0243072509765625, 0.057220458984375, -0.005794525146484375, 0.024017333984375, 0.01215362548828125, 0.01294708251953125, -0.05389404296875, 0.0163726806640625, -0.0172576904296875, -0.0113067626953125, -0.0184478759765625, -0.0234222412109375, 0.052886962890625, 0.04693603515625, -0.0005130767822265625, -0.007965087890625, 0.050384521484375, 0.001361846923828125, -0.01074981689453125, 0.06390380859375, -0.00582122802734375, 0.033477783203125, -0.031768798828125, 0.03326416015625, -0.005970001220703125, -0.0184326171875, 0.050506591796875, -0.01270294189453125, -0.005107879638671875, 0.0220794677734375, 0.0006461143493652344, 0.0020542144775390625, 0.0168914794921875, 0.04364013671875, -0.0028362274169921875, -0.0013332366943359375, -0.01200103759765625, -0.00946044921875, 0.00540924072265625, -0.056793212890625, -0.03839111328125, -0.047821044921875, 0.0011034011840820312, 0.03033447265625, -0.0038928985595703125, -0.006130218505859375, -0.03070068359375, -0.0198211669921875, 0.0003604888916015625, -0.0099334716796875, -0.02001953125, 0.0122528076171875, -0.006389617919921875, 0.0203704833984375, -0.04156494140625, -0.03265380859375, 0.0279998779296875, 0.050048828125, -0.0271148681640625, 0.007472991943359375, 0.006465911865234375, -0.0243682861328125, 0.0096282958984375, 0.0223388671875, 0.02752685546875, -0.0158233642578125, -0.021881103515625, 0.07977294921875, 0.006908416748046875, 0.11700439453125, -0.034637451171875, -0.025177001953125, -0.004505157470703125, 0.0205230712890625, -0.0002636909484863281, -0.07244873046875, -0.0017652511596679688, -0.053802490234375, 0.014617919921875, 0.00652313232421875, 0.01549530029296875, 0.053741455078125, -0.0209503173828125, -0.08331298828125, 0.100830078125, -0.0287628173828125, -0.035858154296875, -0.04193115234375, -0.005756378173828125, 0.0182342529296875, -0.0234527587890625, -0.014404296875, -0.02532958984375, -0.053497314453125, 0.0143280029296875, 0.03375244140625, -0.01172637939453125, 0.0226287841796875, 0.034210205078125, -0.054473876953125, 0.042633056640625, 0.015960693359375, 0.023223876953125, 0.01372528076171875, -0.0180206298828125, 0.0295562744140625, 0.056640625, -0.0171051025390625, -0.0455322265625, -0.0155487060546875, -0.035797119140625, -0.025970458984375, -0.018463134765625, -0.0222320556640625, -0.01152801513671875, 0.057891845703125, 0.04718017578125, 0.016845703125, -0.0279388427734375, -0.043670654296875, 0.0005273818969726562, -0.0163421630859375, -0.024749755859375, 0.0226593017578125, -0.05816650390625, -0.01337432861328125, -0.032989501953125, -0.0462646484375, -0.0002567768096923828, 0.01190185546875, -0.054412841796875, 0.02734375, 0.01366424560546875, -0.01605224609375, -0.018096923828125, -0.007717132568359375, 0.01522064208984375, -0.0238800048828125, -0.0318603515625, -0.0100555419921875, 0.006046295166015625, -0.017547607421875, -0.0052490234375, -0.0248565673828125, -0.0006785392761230469, 0.002124786376953125, 0.027679443359375, 0.003139495849609375, 0.03973388671875, -0.005401611328125, 0.00556182861328125, -0.012786865234375, 0.027435302734375, 0.01270294189453125, 0.0186767578125, -0.0295867919921875, 0.05987548828125, 0.0244140625, 0.0271453857421875, -0.0270843505859375, 0.04437255859375, -0.0260772705078125, 0.048248291015625, -0.00031638145446777344, -0.00675201416015625, 0.041229248046875, -0.0262298583984375, -0.01181793212890625, -0.026397705078125, -0.0182647705078125, -0.049072265625, 0.0197296142578125, 0.057861328125, -0.0209503173828125, 0.03662109375 ]
cfdbd22380e9bd3bb52f8412ece05ce95456f2ae
Wordpress Stackexchange Q: Mass registrations on my blog. Disable specific domain? Since few days, every several minutes I get on my mailbox information about new user. I don't know what is the main purpose for that but I assume someone is checking something on my site and it not anything good. Is it anyhow possible to disable specific domain while user is filling email field? Should I be worried? A: BTW you can try this one. I just put together something. It should block gmail.com domain. This function will check for email domain when someone tries to register on your website and throws an error if email domain is matched. function wpse_disable_email_domain( $errors, $sanitized_user_login, $user_email ) { list( $email_user, $email_domain ) = explode( '@', $user_email ); if ( $email_domain == 'gmail.com' ) { $errors->add( 'email_error', __( '<strong>ERROR</strong>: Domain not allowed.', 'my_textdomain' ) ); } return $errors; } add_filter( 'registration_errors', 'wpse_disable_email_domain', 10, 3 ); OK I just tested it and it's working.
Q: Mass registrations on my blog. Disable specific domain? Since few days, every several minutes I get on my mailbox information about new user. I don't know what is the main purpose for that but I assume someone is checking something on my site and it not anything good. Is it anyhow possible to disable specific domain while user is filling email field? Should I be worried? A: BTW you can try this one. I just put together something. It should block gmail.com domain. This function will check for email domain when someone tries to register on your website and throws an error if email domain is matched. function wpse_disable_email_domain( $errors, $sanitized_user_login, $user_email ) { list( $email_user, $email_domain ) = explode( '@', $user_email ); if ( $email_domain == 'gmail.com' ) { $errors->add( 'email_error', __( '<strong>ERROR</strong>: Domain not allowed.', 'my_textdomain' ) ); } return $errors; } add_filter( 'registration_errors', 'wpse_disable_email_domain', 10, 3 ); OK I just tested it and it's working.
wordpress
{ "language": "en", "length": 159, "provenance": "stackexchange_00019.jsonl.gz:456588", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/191999" }
[ 0.05841064453125, 0.0128021240234375, -0.022979736328125, -0.0305938720703125, 0.0098876953125, -0.050048828125, 0.039215087890625, -0.0197906494140625, 0.0275115966796875, 0.0079193115234375, 0.01238250732421875, -0.033477783203125, 0.0281829833984375, -0.050689697265625, -0.004489898681640625, -0.01007843017578125, -0.035919189453125, 0.045166015625, -0.001171112060546875, -0.04815673828125, 0.02008056640625, -0.06671142578125, -0.029510498046875, -0.033477783203125, -0.018829345703125, -0.005184173583984375, 0.10986328125, -0.00994873046875, -0.0269317626953125, -0.03167724609375, 0.00644683837890625, 0.006221771240234375, -0.00571441650390625, 0.051422119140625, -0.0241851806640625, -0.0017671585083007812, 0.0316162109375, 0.0181884765625, 0.0199737548828125, 0.0360107421875, 0.0197601318359375, -0.02960205078125, 0.02471923828125, -0.018157958984375, 0.019073486328125, -0.020751953125, 0.058380126953125, -0.0272216796875, 0.0132904052734375, 0.0546875, 0.0166015625, 0.035308837890625, 0.011260986328125, 0.0013704299926757812, 0.0049285888671875, 0.00545501708984375, -0.0416259765625, 0.01505279541015625, 0.01000213623046875, 0.02166748046875, 0.0003571510314941406, 0.0018835067749023438, 0.0023250579833984375, -0.016510009765625, -0.0038700103759765625, -0.0198974609375, -0.034912109375, 0.033355712890625, 0.00972747802734375, -0.0138702392578125, 0.00443267822265625, -0.01528167724609375, -0.006427764892578125, -0.00293731689453125, -0.013580322265625, 0.03204345703125, -0.0214691162109375, 0.011505126953125, 0.036651611328125, 0.01045989990234375, 0.01094818115234375, 0.00036263465881347656, -0.033935546875, 0.01666259765625, 0.006572723388671875, 0.0369873046875, -0.0231170654296875, -0.0266876220703125, -0.035980224609375, 0.0012712478637695312, -0.037750244140625, -0.00946807861328125, -0.009857177734375, -0.0012197494506835938, -0.0143585205078125, -0.00623321533203125, 0.049346923828125, 0.0498046875, -0.00507354736328125, -0.06103515625, 0.023406982421875, -0.03216552734375, -0.09576416015625, 0.0208587646484375, -0.01107025146484375, 0.07440185546875, 0.00101470947265625, -0.0242462158203125, -0.01277923583984375, -0.01007080078125, 0.00687408447265625, -0.0631103515625, -0.0172271728515625, -0.0009379386901855469, -0.033966064453125, -0.03973388671875, -0.06512451171875, 0.018096923828125, 0.0018110275268554688, -0.005401611328125, -0.007602691650390625, 0.031982421875, 0.036102294921875, -0.03765869140625, -0.0308074951171875, -0.023529052734375, -0.021636962890625, -0.053009033203125, 0.031219482421875, -0.00750732421875, -0.042236328125, 0.01155853271484375, 0.031707763671875, 0.047271728515625, 0.038177490234375, -0.001743316650390625, 0.0275726318359375, 0.03509521484375, -0.007556915283203125, 0.019805908203125, 0.023651123046875, -0.051239013671875, -0.04937744140625, 0.030731201171875, 0.00391387939453125, 0.038330078125, 0.0162353515625, -0.00975799560546875, 0.0182037353515625, -0.025299072265625, -0.039154052734375, -0.01934814453125, 0.04034423828125, 0.011627197265625, -0.0223236083984375, 0.0190887451171875, 0.0401611328125, -0.01065826416015625, -0.0579833984375, -0.041015625, 0.051239013671875, -0.004611968994140625, 0.0006008148193359375, -0.011138916015625, -0.037750244140625, -0.00937652587890625, -0.05755615234375, -0.01047515869140625, 0.0193023681640625, -0.02587890625, 0.017486572265625, 0.03204345703125, 0.0306549072265625, -0.007595062255859375, 0.0009927749633789062, 0.0030040740966796875, 0.02325439453125, 0.0021114349365234375, -0.005786895751953125, 0.0308380126953125, -0.0025730133056640625, -0.034820556640625, 0.0286407470703125, -0.0167388916015625, -0.040130615234375, 0.04071044921875, -0.01546478271484375, 0.01092529296875, 0.0194549560546875, -0.0106353759765625, 0.034271240234375, 0.05291748046875, 0.022491455078125, -0.05218505859375, 0.027099609375, -0.0496826171875, 0.013916015625, -0.040863037109375, 0.0214080810546875, 0.04193115234375, 0.03216552734375, -0.058563232421875, 0.06494140625, -0.03173828125, -0.0200042724609375, -0.006740570068359375, -0.023681640625, 0.0179290771484375, -0.0163421630859375, 0.016845703125, 0.029205322265625, -0.00833892822265625, -0.046966552734375, 0.0242462158203125, -0.00930023193359375, -0.01415252685546875, -0.02392578125, 0.07012939453125, -0.0103607177734375, 0.07708740234375, -0.0277557373046875, -0.0653076171875, -0.00289154052734375, -0.034332275390625, 0.006977081298828125, -0.01470947265625, -0.021026611328125, -0.01366424560546875, -0.004711151123046875, 0.00229644775390625, -0.0013971328735351562, 0.042724609375, 0.0272216796875, 0.0029888153076171875, -0.049560546875, 0.0010852813720703125, 0.0016508102416992188, -0.0391845703125, -0.0209503173828125, 0.05584716796875, 0.032928466796875, -0.01515960693359375, 0.0121002197265625, 0.01493072509765625, 0.0288543701171875, -0.03399658203125, -0.00331878662109375, 0.005245208740234375, 0.00882720947265625, 0.052886962890625, -0.035552978515625, 0.048248291015625, 0.023406982421875, 0.051055908203125, 0.0022525787353515625, 0.040130615234375, -0.0110931396484375, -0.02630615234375, 0.006847381591796875, -0.0167999267578125, 0.0277252197265625, -0.005649566650390625, -0.030364990234375, 0.0020580291748046875, -0.00931549072265625, 0.01265716552734375, 0.000051915645599365234, -0.0000317692756652832, -0.0162506103515625, 0.02886962890625, 0.0174102783203125, -0.06500244140625, -0.007396697998046875, -0.0160980224609375, 0.0273284912109375, -0.016937255859375, -0.0276336669921875, 0.0179290771484375, -0.002593994140625, -0.01873779296875, -0.048126220703125, -0.07818603515625, -0.028839111328125, -0.0031452178955078125, 0.01800537109375, -0.070556640625, 0.05535888671875, -0.007465362548828125, -0.03228759765625, -0.054901123046875, -0.0304412841796875, 0.0276336669921875, -0.0264129638671875, 0.02587890625, 0.0223541259765625, -0.0289764404296875, -0.041412353515625, -0.036346435546875, 0.041168212890625, -0.04052734375, 0.018280029296875, 0.0732421875, -0.01210784912109375, 0.028411865234375, 0.0225830078125, -0.03369140625, -0.0029811859130859375, 0.033294677734375, 0.031280517578125, 0.003086090087890625, -0.04229736328125, 0.03155517578125, 0.0011615753173828125, 0.0238800048828125, -0.034423828125, -0.0367431640625, 0.0015153884887695312, -0.0172119140625, -0.04339599609375, -0.005733489990234375, -0.0067596435546875, -0.02423095703125, -0.01331329345703125, 0.011077880859375, -0.006221771240234375, -0.000021219253540039062, 0.0159912109375, 0.01073455810546875, 0.01338958740234375, -0.0582275390625, -0.07379150390625, -0.05712890625, -0.05712890625, 0.0019626617431640625, 0.0035381317138671875, -0.0105133056640625, 0.00859832763671875, 0.041900634765625, 0.01177215576171875, -0.0022945404052734375, 0.0261993408203125, 0.01398468017578125, -0.0012722015380859375, -0.016143798828125, -0.06982421875, 0.016204833984375, -0.01311492919921875, 0.0086669921875, -0.031524658203125, -0.041015625, 0.047027587890625, -0.0199432373046875, 0.0274658203125, -0.00485992431640625, 0.039794921875, -0.00875091552734375, -0.049530029296875, -0.00251007080078125, -0.01091766357421875, -0.056396484375, -0.00337982177734375, -0.01511383056640625, -0.037200927734375, -0.04522705078125, 0.0050811767578125, -0.0069122314453125, -0.020111083984375, -0.00801849365234375, 0.0213775634765625, 0.0114898681640625, 0.021026611328125, -0.0213775634765625, 0.0472412109375, 0.00885009765625, 0.029876708984375, -0.0321044921875, 0.0163421630859375, -0.0142822265625, -0.0290374755859375, -0.020355224609375, -0.0102996826171875, -0.05352783203125, 0.054412841796875, -0.059234619140625, -0.04248046875, 0.04327392578125, -0.0137176513671875, -0.00812530517578125, -0.0218353271484375, -0.033966064453125, 0.008453369140625, 0.085693359375, -0.032379150390625, -0.011871337890625, 0.00548553466796875, 0.0232391357421875, -0.0166015625, -0.007564544677734375, -0.042999267578125, -0.01395416259765625, -0.062225341796875, 0.005435943603515625, -0.030731201171875, 0.00669097900390625, 0.006031036376953125, -0.051727294921875, 0.001026153564453125, -0.06103515625, 0.0206146240234375, -0.0202484130859375, 0.0027179718017578125, 0.006252288818359375, -0.01065826416015625, -0.0150146484375, -0.0194854736328125, -0.016326904296875, -0.04541015625, 0.0081939697265625, -0.0263671875, -0.004962921142578125, -0.005878448486328125, 0.0202178955078125, -0.01605224609375, 0.01812744140625, -0.0019855499267578125, -0.00490570068359375, 0.00563812255859375, 0.0212249755859375, 0.01091766357421875, 0.00199127197265625, -0.0268096923828125, -0.018280029296875, 0.0003764629364013672, 0.00949859619140625, -0.04241943359375, 0.0311431884765625, -0.0005083084106445312, 0.04266357421875, 0.045806884765625, -0.0428466796875, -0.0227813720703125, -0.00296783447265625, -0.01824951171875, 0.01375579833984375, -0.00984954833984375, -0.0208587646484375, 0.0005927085876464844, -0.036590576171875, 0.061981201171875, -0.0273284912109375, -0.006561279296875, -0.007022857666015625, 0.06201171875, 0.005428314208984375, -0.0216064453125, 0.01537322998046875, 0.01134490966796875, 0.040863037109375, 0.02532958984375, 0.0191650390625, 0.009124755859375, -0.0260009765625, 0.0247650146484375, 0.021514892578125, -0.01959228515625, 0.0043792724609375, 0.021575927734375, 0.0322265625, -0.0120086669921875, -0.001979827880859375, 0.030517578125, -0.0011844635009765625, 0.03515625, -0.0023193359375, -0.030853271484375, 0.011383056640625, 0.02191162109375, -0.01006317138671875, 0.016265869140625, -0.006473541259765625, -0.016021728515625, 0.01392364501953125, -0.000009238719940185547, -0.0305633544921875, -0.00368499755859375, 0.006359100341796875, -0.0419921875, -0.01045989990234375, -0.029571533203125, -0.01314544677734375, 0.0012912750244140625, 0.0213470458984375, 0.01090240478515625, -0.0192108154296875, -0.024658203125, -0.040802001953125, -0.0128936767578125, 0.040985107421875, 0.003814697265625, -0.048675537109375, 0.0211944580078125, 0.00531005859375, 0.0197906494140625, 0.035797119140625, -0.016815185546875, 0.06500244140625, 0.0276031494140625, -0.022857666015625, -0.01039886474609375, -0.00592041015625, -0.0228729248046875, -0.065673828125, 0.0131988525390625, 0.01531219482421875, -0.0224761962890625, 0.0050201416015625, 0.0296173095703125, -0.016632080078125, 0.0229644775390625, -0.002101898193359375, 0.043548583984375, 0.091064453125, 0.0024700164794921875, 0.0208740234375, -0.003337860107421875, -0.048583984375, 0.01306915283203125, 0.00324249267578125, -0.0142822265625, 0.014923095703125, 0.0177459716796875, 0.033721923828125, 0.01505279541015625, 0.0031604766845703125, -0.01226806640625, -0.0305633544921875, -0.004913330078125, 0.05706787109375, -0.006504058837890625, -0.04656982421875, -0.04998779296875, -0.0159912109375, 0.0325927734375, -0.0399169921875, 0.020965576171875, -0.05975341796875, 0.00827789306640625, -0.0262451171875, 0.058441162109375, -0.044647216796875, -0.01201629638671875, -0.0034236907958984375, -0.00778961181640625, -0.00681304931640625, 0.0010967254638671875, 0.006298065185546875, -0.010162353515625, -0.0017919540405273438, -0.005611419677734375, 0.0119476318359375, -0.034515380859375, 0.0291290283203125, -0.054473876953125, 0.0296173095703125, -0.0716552734375, 0.026885986328125, -0.002269744873046875, 0.0159454345703125, -0.07403564453125, 0.0059661865234375, -0.042083740234375, -0.0030841827392578125, -0.020965576171875, -0.03790283203125, -0.024322509765625, -0.008056640625, 0.042694091796875, 0.01641845703125, 0.00029969215393066406, -0.0675048828125, -0.010223388671875, -0.0244903564453125, 0.032623291015625, -0.0052337646484375, -0.04962158203125, 0.03851318359375, 0.024200439453125, 0.0008401870727539062, -0.0001760721206665039, 0.027618408203125, 0.03631591796875, -0.0166473388671875, -0.0145111083984375, -0.09466552734375, -0.0240020751953125, 0.0251312255859375, -0.05523681640625, 0.087158203125, 0.043243408203125, 0.0006361007690429688, -0.0081329345703125, -0.01934814453125, -0.000904083251953125, -0.028594970703125, 0.0016679763793945312, -0.0341796875, 0.01259613037109375, -0.038787841796875, -0.006099700927734375, 0.003093719482421875, -0.0341796875, -0.034576416015625, 0.037445068359375, -0.00574493408203125, 0.01250457763671875, 0.036285400390625, -0.007183074951171875, 0.0145416259765625, -0.009735107421875, -0.0079345703125, 0.02069091796875, -0.02459716796875, 0.0159454345703125, -0.0045013427734375, 0.01149749755859375, -0.0631103515625, -0.0257415771484375, 0.0141448974609375, 0.0105133056640625, -0.0150604248046875, 0.00920867919921875, -0.021331787109375, -0.0192718505859375, 0.10504150390625, 0.05340576171875, -0.1260986328125, -0.0164337158203125, -0.01580810546875, 0.0129547119140625, -0.0109710693359375, -0.025634765625, 0.01849365234375, 0.037017822265625, 0.045440673828125, -0.036865234375, -0.0213165283203125, 0.014739990234375, -0.027801513671875, -0.0244293212890625, 0.0177001953125, 0.043487548828125, 0.018524169921875, -0.0213165283203125, -0.0003349781036376953, 0.006626129150390625, 0.013031005859375, -0.0027065277099609375, -0.0143890380859375, 0.04620361328125, -0.056976318359375, -0.07989501953125, -0.0018453598022460938, 0.0001647472381591797, -0.0362548828125, -0.0288543701171875, -0.0032825469970703125, 0.0377197265625, 0.042755126953125, -0.0165557861328125, -0.00421142578125, 0.013031005859375, 0.001983642578125, 0.015380859375, -0.0274505615234375, -0.0210418701171875, 0.0033550262451171875, -0.00847625732421875, 0.0005269050598144531, 0.0002415180206298828, -0.01953125, 0.0022716522216796875, 0.0021800994873046875, 0.036712646484375, 0.0152740478515625, -0.040283203125, 0.0303955078125, 0.00847625732421875, -0.01485443115234375, -0.036865234375, -0.0022373199462890625, -0.0116729736328125, 0.00569915771484375, -0.041534423828125, -0.046417236328125, -0.018707275390625, -0.080078125, -0.0587158203125, 0.08392333984375, 0.0090179443359375, 0.054779052734375, 0.00366973876953125, 0.0254974365234375, -0.0018453598022460938, 0.0176544189453125, -0.01479339599609375, 0.024444580078125, -0.02362060546875, 0.06292724609375, -0.00122833251953125, -0.0084228515625, 0.042572021484375, 0.03717041015625, 0.055755615234375, 0.0220489501953125, -0.0168609619140625, -0.03955078125, -0.01039886474609375, 0.029144287109375, -0.0390625, 0.021728515625, -0.048065185546875, 0.0247650146484375, 0.01259613037109375, -0.0452880859375, 0.0190887451171875, -0.0146636962890625, -0.06622314453125, -0.021514892578125, -0.001922607421875, -0.00736236572265625, -0.0260009765625, 0.026336669921875, -0.02972412109375, -0.0121307373046875, 0.017669677734375, 0.0310821533203125, -0.0266265869140625, 0.0288848876953125, 0.02978515625, -0.030426025390625, 0.060516357421875, -0.0465087890625, 0.06842041015625, 0.0011224746704101562, 0.003726959228515625, 0.04278564453125, 0.03173828125, 0.020660400390625, 0.0273590087890625, 0.01377105712890625, 0.021270751953125, -0.00830078125, 0.0181121826171875, -0.0270538330078125, -0.00873565673828125, -0.0736083984375, 0.0002562999725341797, 0.030242919921875, 0.0245513916015625, -0.039459228515625, -0.026275634765625, 0.018096923828125, 0.01355743408203125, 0.0261688232421875, 0.0022125244140625, 0.04901123046875, -0.051025390625, -0.0239105224609375, -0.018829345703125, -0.0004968643188476562, 0.040802001953125, 0.025177001953125, -0.0018863677978515625, 0.01245880126953125, -0.01407623291015625, -0.0159149169921875, -0.0194091796875, 0.005672454833984375, -0.0022563934326171875, 0.030914306640625, 0.0153656005859375, 0.03411865234375, -0.005138397216796875, -0.01116180419921875, -0.042510986328125, 0.032379150390625, 0.0187835693359375, 0.02203369140625, -0.0611572265625, -0.0167694091796875, 0.01045989990234375, 0.0577392578125, -0.00266265869140625, 0.018310546875, 0.0548095703125, 0.0565185546875, -0.0439453125, -0.02264404296875, 0.06378173828125, -0.0148773193359375, 0.00818634033203125, -0.01953125, -0.0250396728515625, -0.00757598876953125, -0.0224609375, 0.0013647079467773438, 0.00982666015625, 0.005374908447265625, -0.01458740234375, 0.043182373046875, -0.0121917724609375, -0.0084228515625, 0.0095367431640625, 0.0007033348083496094, 0.0156707763671875, 0.026214599609375, -0.09356689453125, -0.043701171875, 0.0188751220703125, 0.0070037841796875, -0.0084686279296875, 0.018402099609375, -0.0159454345703125, 0.03662109375, 0.0179290771484375, -0.01959228515625, 0.0341796875, -0.01116943359375, -0.0233154296875, 0.0088653564453125, 0.021331787109375, -0.01519775390625, -0.03125, 0.0038089752197265625, 0.02581787109375, -0.01409149169921875, -0.0255279541015625, 0.0784912109375, -0.00875091552734375, -0.031707763671875, -0.03582763671875, -0.00391387939453125, 0.00800323486328125, -0.028533935546875, -0.005802154541015625, 0.042266845703125, 0.01148223876953125, -0.018310546875, -0.052215576171875, 0.03594970703125, 0.0242767333984375, 0.00020623207092285156, 0.0751953125, -0.0296478271484375, 0.0037975311279296875, -0.033233642578125, 0.0228118896484375, -0.042236328125, -0.08837890625, -0.05389404296875, 0.0213165283203125, -0.02001953125, 0.0028743743896484375, -0.0333251953125, 0.021209716796875, -0.0264434814453125, -0.013092041015625, -0.0027561187744140625, -0.0178680419921875, 0.004276275634765625, 0.0182037353515625, -0.0265960693359375, -0.023101806640625, 0.0097503662109375, -0.00910186767578125, -0.0283203125, 0.0091705322265625, 0.01473236083984375, -0.0010347366333007812, -0.0230865478515625, -0.031585693359375, -0.019927978515625, 0.00433349609375, -0.019683837890625, -0.00824737548828125, 0.0034465789794921875, -0.0173797607421875, -0.030120849609375, -0.048797607421875, -0.029144287109375, -0.008697509765625, 0.0033779144287109375, 0.0244140625, -0.0077972412109375, -0.0224761962890625, -0.0203857421875, -0.012054443359375, 0.041290283203125, 0.008392333984375, -0.0374755859375, 0.0103759765625, -0.01904296875, 0.0487060546875, -0.02105712890625, 0.05126953125, -0.019256591796875, 0.005359649658203125, -0.041015625, -0.0556640625, -0.0127105712890625, 0.07904052734375, -0.017242431640625, -0.021209716796875, 0.0288543701171875, 0.01934814453125, -0.04876708984375, -0.028533935546875, -0.0640869140625, 0.014404296875, -0.09002685546875, -0.01396942138671875, 0.004154205322265625, -0.0015096664428710938, -0.007659912109375, -0.024017333984375, 0.01146697998046875, -0.033294677734375, -0.0286712646484375, -0.0283660888671875, 0.0035915374755859375, 0.0216217041015625, -0.020904541015625, -0.0712890625, 0.005748748779296875, -0.003875732421875, -0.03643798828125, -0.048797607421875, -0.0236968994140625, 0.0013513565063476562, 0.0256805419921875, -0.0216522216796875, -0.0145721435546875, -0.052337646484375, 0.05340576171875, 0.0240478515625, 0.06439208984375, -0.011505126953125, 0.038543701171875, 0.0013780593872070312, 0.04010009765625, 0.0183563232421875, 0.0120086669921875, -0.00539398193359375, 0.02783203125, 0.02728271484375, 0.05828857421875, -0.005764007568359375, 0.039703369140625, -0.0012044906616210938, -0.05859375, -0.0231781005859375, -0.05218505859375, -0.0316162109375, -0.0163726806640625, 0.1153564453125, 0.060089111328125, 0.038726806640625, -0.047210693359375, -0.035980224609375, -0.0187835693359375, 0.0261688232421875, -0.023681640625, 0.01262664794921875, -0.066650390625, -0.0258636474609375, 0.001373291015625, 0.0023822784423828125, 0.027130126953125, -0.0026683807373046875, 0.0021877288818359375, 0.0016279220581054688, 0.0156402587890625, -0.020843505859375, -0.02850341796875, 0.0113983154296875, 0.0038280487060546875, -0.0225067138671875, -0.0206298828125, -0.0196075439453125, 0.0236968994140625, -0.035858154296875, -0.0367431640625, 0.02911376953125, 0.01409912109375, -0.0389404296875, 0.007663726806640625, 0.0213165283203125, 0.030426025390625, -0.0355224609375, -0.032196044921875, -0.0168609619140625, 0.01641845703125, 0.034759521484375, 0.0299072265625, -0.03411865234375, 0.027984619140625, 0.0194854736328125, -0.0098114013671875, 0.0125579833984375, -0.012664794921875, -0.036956787109375, 0.060150146484375, 0.02435302734375, -0.031768798828125, 0.043731689453125, -0.0184326171875, 0.0304107666015625, 0.0384521484375, 0.0755615234375, 0.008026123046875, 0.04791259765625, -0.0543212890625, 0.0384521484375, -0.0005965232849121094 ]
26cd3582c1898a2a8cf58feb04d53a7bb40b892a
Wordpress Stackexchange Q: Hide specific categories from category widget I'm trying to hide a large amount of categories from my category widget. I've tried a few plugins but none of them seem to want to let me use the dropdown option. I looked into the widget_categories_args hook and that seems to be what I want but I can't get it to work. Anyways here's my code function widget_categories_args_filter( $cat_args ) { $exclude_arr = array( 57,61,63,56,55,62,52,53,54,67,65 ); if( isset( $cat_args['exclude'] ) && !empty( $cat_args['exclude'] ) ) $exclude_arr = array_unique( array_merge( explode( ',', $cat_args['exclude'] ), $exclude_arr ) ); $cat_args['exclude'] = implode( ',', $exclude_arr ); return $cat_args; } add_filter( 'widget_categories_args', 'widget_categories_args_filter', 10, 1 ); I Took that from here: https://codex.wordpress.org/Plugin_API/Filter_Reference/widget_categories_args I'm putting this in my theme's functions.php. That shouldn't matter even though the function is set for plugins, right? A: This works: https://gist.github.com/peltopiri/76e7d1143e33b424633114103cfae5ec <?php function exclude_woocommerce_widget_product_categories($widget_args) { //Insert excluded category ids here $excludes = array(12,33); $includes = explode(",",$widget_args['include']); $includes = array_filter($includes, function($value) use ($excludes) { return !in_array($value, $excludes); }); $widget_args["include"] = implode(",", $includes); return $widget_args; } add_filter( 'woocommerce_product_categories_widget_dropdown_args', 'exclude_woocommerce_widget_product_categories'); add_filter( 'woocommerce_product_categories_widget_args', 'exclude_woocommerce_widget_product_categories');
Q: Hide specific categories from category widget I'm trying to hide a large amount of categories from my category widget. I've tried a few plugins but none of them seem to want to let me use the dropdown option. I looked into the widget_categories_args hook and that seems to be what I want but I can't get it to work. Anyways here's my code function widget_categories_args_filter( $cat_args ) { $exclude_arr = array( 57,61,63,56,55,62,52,53,54,67,65 ); if( isset( $cat_args['exclude'] ) && !empty( $cat_args['exclude'] ) ) $exclude_arr = array_unique( array_merge( explode( ',', $cat_args['exclude'] ), $exclude_arr ) ); $cat_args['exclude'] = implode( ',', $exclude_arr ); return $cat_args; } add_filter( 'widget_categories_args', 'widget_categories_args_filter', 10, 1 ); I Took that from here: https://codex.wordpress.org/Plugin_API/Filter_Reference/widget_categories_args I'm putting this in my theme's functions.php. That shouldn't matter even though the function is set for plugins, right? A: This works: https://gist.github.com/peltopiri/76e7d1143e33b424633114103cfae5ec <?php function exclude_woocommerce_widget_product_categories($widget_args) { //Insert excluded category ids here $excludes = array(12,33); $includes = explode(",",$widget_args['include']); $includes = array_filter($includes, function($value) use ($excludes) { return !in_array($value, $excludes); }); $widget_args["include"] = implode(",", $includes); return $widget_args; } add_filter( 'woocommerce_product_categories_widget_dropdown_args', 'exclude_woocommerce_widget_product_categories'); add_filter( 'woocommerce_product_categories_widget_args', 'exclude_woocommerce_widget_product_categories'); A: Hide the uncatecogrized / default category in WooCommerce: I guess I'm not the only one who came to this page in search for a way to hide the default / uncategorized category introduced in WooCommerce 3.3. If you're one of them, instead of hard-coding the category ID which may be different in different environments / installations, you can use the following snippet, modified from the snippet by Mike Jolley to hide it from the Woocommerce Product Categories widget: <?php // Do not include this if already open! /** * Code goes in theme functions.php. * * If you use dropdown instead of hierachical view, * hook to the following filter instead: * `woocommerce_product_categories_widget_dropdown_args` */ add_filter( 'woocommerce_product_categories_widget_args', 'custom_woocommerce_product_categories_widget_args' ); function custom_woocommerce_product_categories_widget_args( $args ) { $args['exclude'] = get_option( 'default_product_cat' ); return $args; } A: I know this post is pretty old, but because I came across the same issue and this post came up higher than one with a solution, I figured I'd add this, which worked for me. Source: http://coffeecupweb.com/how-to-exclude-or-hide-categories-from-category-widget-in-wordpress-sidebar/ //Hide categories from WordPress category widget function exclude_widget_categories($args){ $exclude = "1,4,8,57,80"; $args["exclude"] = $exclude; return $args; } add_filter("widget_categories_args","exclude_widget_categories"); A: I was able to hide a single category using CSS: li.cat-item-1 { display: none; } I put this CSS snippet in my theme's "Additional CSS". Category 1 is "Uncategorized", which is the one I wanted to hide. A: After several searches and tests, hiding post categories for list items and drop-down is done separately since they're called by different filter ids. For list category items use add_filter("widget_categories_args","YOUR_CUSTOM_FUNCTION"); For drop-down category items use add_filter("widget_categories_dropdown_args","YOUR_CUSTOM_FUNCTION"); Reference: https://basicwp.com/exclude-categories-from-category-widgets-in-wordpress/
wordpress
{ "language": "en", "length": 441, "provenance": "stackexchange_00019.jsonl.gz:456601", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/192051" }
[ 0.0394287109375, -0.0141448974609375, 0.0030651092529296875, -0.0237579345703125, 0.0183868408203125, -0.042633056640625, 0.050018310546875, -0.0235137939453125, -0.01324462890625, 0.01934814453125, -0.01448822021484375, -0.035430908203125, -0.01198577880859375, -0.0296478271484375, -0.021026611328125, -0.05670166015625, -0.0028896331787109375, 0.033660888671875, 0.01247406005859375, -0.0096893310546875, 0.0177154541015625, -0.01273345947265625, -0.0189666748046875, 0.057220458984375, 0.0037384033203125, -0.049530029296875, 0.06719970703125, -0.039215087890625, 0.0167999267578125, -0.01152801513671875, 0.016448974609375, -0.00885009765625, -0.0151214599609375, 0.02362060546875, 0.00616455078125, 0.0160064697265625, 0.001468658447265625, 0.022979736328125, 0.05401611328125, -0.0212249755859375, 0.018890380859375, -0.0168609619140625, -0.006649017333984375, -0.006023406982421875, -0.02032470703125, -0.0106658935546875, 0.01348876953125, -0.0191802978515625, 0.0034198760986328125, -0.034210205078125, 0.026641845703125, 0.040740966796875, 0.041717529296875, -0.057708740234375, -0.0023097991943359375, 0.01226806640625, -0.0214996337890625, 0.048492431640625, 0.045166015625, 0.005161285400390625, -0.05841064453125, -0.007732391357421875, 0.004283905029296875, -0.061309814453125, 0.00405120849609375, 0.012969970703125, 0.002536773681640625, 0.01715087890625, -0.0272064208984375, -0.00013840198516845703, 0.0310211181640625, -0.045318603515625, -0.00363922119140625, 0.005035400390625, -0.05572509765625, -0.018035888671875, 0.0239715576171875, -0.0283355712890625, 0.01519012451171875, -0.0033817291259765625, 0.0347900390625, -0.0015420913696289062, -0.005039215087890625, -0.003173828125, 0.026702880859375, 0.0181427001953125, 0.002132415771484375, -0.021820068359375, -0.01043701171875, 0.00417327880859375, -0.005901336669921875, -0.0438232421875, -0.0231475830078125, 0.05950927734375, 0.03436279296875, -0.0220184326171875, 0.013885498046875, 0.0255126953125, -0.01119232177734375, 0.01238250732421875, 0.00839996337890625, -0.0305023193359375, 0.0149688720703125, -0.028472900390625, 0.00704193115234375, 0.049896240234375, -0.0217132568359375, 0.038421630859375, 0.052642822265625, 0.035797119140625, 0.04443359375, -0.007183074951171875, 0.008697509765625, -0.0311126708984375, -0.001071929931640625, -0.00015807151794433594, -0.025970458984375, 0.0282440185546875, 0.0161590576171875, 0.0191497802734375, 0.010528564453125, 0.0241241455078125, 0.0275726318359375, -0.0199737548828125, 0.006450653076171875, 0.005054473876953125, -0.0202789306640625, -0.04327392578125, -0.00511932373046875, -0.0091400146484375, -0.0501708984375, 0.0175018310546875, 0.057586669921875, 0.04083251953125, 0.0296478271484375, -0.019500732421875, 0.022003173828125, 0.0014190673828125, 0.0243377685546875, -0.0092620849609375, 0.01751708984375, -0.01134490966796875, -0.0017223358154296875, 0.0025615692138671875, 0.01032257080078125, -0.01190185546875, -0.00897216796875, 0.01154327392578125, 0.0308685302734375, 0.0145721435546875, 0.0169830322265625, -0.049652099609375, 0.07177734375, 0.0137786865234375, -0.0137939453125, 0.034698486328125, 0.07550048828125, -0.0190582275390625, -0.0992431640625, -0.048614501953125, -0.0134735107421875, -0.008575439453125, -0.0008530616760253906, -0.06182861328125, -0.062255859375, 0.0220184326171875, -0.0142059326171875, 0.0008726119995117188, 0.0175018310546875, 0.0222930908203125, -0.004840850830078125, -0.02056884765625, 0.019256591796875, 0.00799560546875, -0.01018524169921875, 0.0301971435546875, -0.03802490234375, 0.03668212890625, 0.03057861328125, -0.01031494140625, -0.02093505859375, -0.04559326171875, 0.035369873046875, 0.00200653076171875, -0.08203125, 0.052459716796875, 0.0236358642578125, 0.08062744140625, -0.01456451416015625, 0.00833892822265625, 0.077880859375, 0.0234832763671875, -0.0293731689453125, -0.02178955078125, 0.0015630722045898438, -0.0313720703125, 0.02471923828125, -0.018646240234375, 0.005615234375, 0.018341064453125, 0.048370361328125, -0.01512908935546875, 0.0127410888671875, -0.0229034423828125, -0.06854248046875, 0.0006647109985351562, -0.0258026123046875, 0.0217437744140625, -0.02294921875, 0.048065185546875, 0.0289459228515625, 0.01629638671875, -0.045013427734375, 0.022125244140625, 0.0166473388671875, -0.018524169921875, -0.00665283203125, 0.08050537109375, -0.01177215576171875, 0.03271484375, -0.0010356903076171875, -0.0469970703125, 0.024261474609375, 0.05145263671875, 0.06097412109375, 0.0033397674560546875, -0.011138916015625, -0.026641845703125, 0.034576416015625, 0.009124755859375, -0.0648193359375, 0.032073974609375, 0.033447265625, 0.043060302734375, -0.035980224609375, 0.0093536376953125, -0.00853729248046875, -0.0162506103515625, -0.01497650146484375, 0.0308685302734375, 0.03875732421875, 0.01007843017578125, -0.01346588134765625, -0.01442718505859375, 0.0638427734375, -0.1160888671875, -0.0350341796875, 0.0013380050659179688, 0.008209228515625, 0.00428009033203125, 0.043212890625, 0.0089263916015625, 0.0268402099609375, -0.01003265380859375, 0.04986572265625, 0.0108642578125, -0.0380859375, -0.003086090087890625, -0.007160186767578125, -0.0312347412109375, 0.0142669677734375, -0.07208251953125, -0.02923583984375, -0.0445556640625, 0.03912353515625, -0.004425048828125, 0.021820068359375, 0.013153076171875, -0.0311737060546875, 0.002178192138671875, 0.0236968994140625, 0.002765655517578125, -0.00888824462890625, -0.0115966796875, 0.0299530029296875, -0.015960693359375, -0.043426513671875, 0.017913818359375, 0.0006632804870605469, -0.01277923583984375, 0.0126953125, 0.072021484375, 0.0462646484375, -0.01300048828125, -0.0303497314453125, -0.01678466796875, 0.02056884765625, 0.0173797607421875, -0.024139404296875, -0.01384735107421875, -0.0035762786865234375, 0.036224365234375, -0.00513458251953125, 0.005268096923828125, 0.012908935546875, -0.006641387939453125, 0.0029735565185546875, -0.0162353515625, 0.0220794677734375, -0.028900146484375, 0.04638671875, 0.055908203125, -0.00449371337890625, -0.0022487640380859375, 0.027252197265625, -0.008087158203125, 0.0288848876953125, 0.018951416015625, 0.0010395050048828125, 0.024505615234375, -0.0694580078125, 0.01242828369140625, 0.01422882080078125, 0.01238250732421875, 0.0102081298828125, -0.024139404296875, 0.00020432472229003906, 0.00905609130859375, -0.031402587890625, -0.0262451171875, 0.028106689453125, 0.0135650634765625, -0.0082244873046875, 0.01294708251953125, 0.01018524169921875, -0.0221099853515625, 0.01202392578125, -0.005290985107421875, -0.0172576904296875, -0.01125335693359375, -0.044525146484375, -0.0257110595703125, -0.0350341796875, 0.0249481201171875, -0.005523681640625, 0.00472259521484375, 0.002178192138671875, 0.098388671875, 0.0057525634765625, -0.060028076171875, -0.0008349418640136719, 0.028106689453125, 0.01031494140625, 0.044189453125, 0.0029888153076171875, -0.040252685546875, -0.0083770751953125, 0.0023479461669921875, 0.058074951171875, -0.0024433135986328125, -0.01316070556640625, -0.01088714599609375, 0.0173492431640625, 0.0019483566284179688, 0.0244598388671875, 0.0211029052734375, -0.0235748291015625, 0.001270294189453125, 0.01113128662109375, -0.034088134765625, 0.0053558349609375, -0.01006317138671875, -0.012542724609375, 0.0078582763671875, -0.01020050048828125, -0.0101165771484375, 0.01039886474609375, 0.010498046875, 0.0260772705078125, 0.007755279541015625, -0.002094268798828125, -0.0290985107421875, 0.0309295654296875, 0.0206756591796875, 0.044677734375, -0.00899505615234375, -0.0008912086486816406, -0.0357666015625, 0.0062103271484375, -0.01053619384765625, -0.0233154296875, -0.0095062255859375, 0.005031585693359375, 0.00919342041015625, -0.055023193359375, 0.040771484375, -0.01290130615234375, -0.0285797119140625, -0.01202392578125, -0.0154266357421875, 0.01505279541015625, 0.051300048828125, -0.0307464599609375, -0.0300445556640625, -0.030029296875, 0.0195465087890625, -0.0178070068359375, -0.0364990234375, 0.005588531494140625, -0.0221710205078125, -0.11053466796875, 0.03759765625, 0.005645751953125, -0.036163330078125, -0.006511688232421875, -0.0340576171875, -0.07318115234375, -0.045440673828125, 0.0379638671875, -0.03369140625, 0.04296875, -0.01456451416015625, 0.0438232421875, -0.040252685546875, -0.007537841796875, -0.0198516845703125, -0.03546142578125, 0.00583648681640625, -0.0228118896484375, 0.0122528076171875, -0.009490966796875, 0.044281005859375, -0.0423583984375, 0.014434814453125, 0.0182952880859375, 0.0181732177734375, -0.0194549560546875, 0.0001533031463623047, -0.0272979736328125, -0.0026645660400390625, 0.00266265869140625, -0.019378662109375, -0.0300140380859375, -0.0206146240234375, -0.0255279541015625, 0.01421356201171875, -0.003070831298828125, -0.005603790283203125, 0.04071044921875, -0.03265380859375, -0.06805419921875, -0.031219482421875, -0.05096435546875, -0.0224456787109375, -0.041839599609375, 0.005077362060546875, -0.0297698974609375, -0.0732421875, 0.04559326171875, -0.0303802490234375, -0.01358795166015625, 0.01119232177734375, 0.0745849609375, 0.004390716552734375, -0.016845703125, -0.054351806640625, -0.0311737060546875, 0.02935791015625, -0.03033447265625, 0.03955078125, -0.00701141357421875, -0.036712646484375, 0.115478515625, -0.01354217529296875, -0.0021305084228515625, -0.02239990234375, 0.061370849609375, -0.0081634521484375, -0.023529052734375, 0.0011739730834960938, -0.0288238525390625, 0.017059326171875, 0.017059326171875, 0.0102081298828125, -0.02203369140625, 0.0253448486328125, 0.0302886962890625, 0.0207366943359375, -0.03851318359375, -0.0338134765625, 0.0130157470703125, -0.004364013671875, 0.0007710456848144531, 0.048248291015625, 0.04248046875, -0.0025272369384765625, -0.0008463859558105469, 0.0247802734375, 0.0008683204650878906, -0.0028476715087890625, 0.0328369140625, -0.043212890625, 0.027984619140625, -0.005138397216796875, -0.0316162109375, -0.016357421875, 0.0033359527587890625, -0.0017261505126953125, -0.01073455810546875, -0.03045654296875, -0.025390625, -0.000926971435546875, 0.0014734268188476562, 0.02056884765625, -0.00011068582534790039, 0.048126220703125, 0.0188446044921875, -0.019134521484375, -0.01012420654296875, -0.04345703125, 0.010498046875, -0.060333251953125, -0.0274200439453125, -0.005847930908203125, -0.01041412353515625, 0.03656005859375, 0.034423828125, -0.01273345947265625, 0.04022216796875, -0.0247039794921875, 0.044708251953125, 0.0335693359375, 0.0180206298828125, 0.0171966552734375, -0.0232696533203125, 0.0107879638671875, -0.032012939453125, 0.0037097930908203125, -0.0286865234375, -0.04669189453125, 0.023895263671875, 0.01342010498046875, -0.016021728515625, 0.0023746490478515625, 0.025146484375, 0.042236328125, -0.00921630859375, 0.048583984375, 0.0157928466796875, -0.038665771484375, -0.0303955078125, -0.015655517578125, 0.025909423828125, -0.0212860107421875, -0.028472900390625, 0.00496673583984375, -0.05780029296875, -0.0213470458984375, 0.052459716796875, -0.046661376953125, 0.0140380859375, 0.0100555419921875, -0.03680419921875, -0.01454925537109375, 0.004184722900390625, -0.0721435546875, -0.03753662109375, 0.0120391845703125, -0.0018520355224609375, -0.0009284019470214844, -0.00731658935546875, 0.07476806640625, -0.0175628662109375, -0.041717529296875, 0.0223388671875, 0.0003783702850341797, 0.05029296875, 0.0318603515625, -0.0706787109375, -0.0106658935546875, -0.0181121826171875, -0.00263214111328125, -0.0255279541015625, -0.04595947265625, -0.030670166015625, -0.013519287109375, 0.01116943359375, 0.026611328125, 0.0123138427734375, -0.011627197265625, -0.0083770751953125, -0.01233673095703125, 0.004425048828125, 0.006015777587890625, -0.024932861328125, 0.014739990234375, 0.0364990234375, 0.0219573974609375, -0.0328369140625, -0.028717041015625, -0.0174102783203125, 0.00543212890625, -0.01184844970703125, -0.03643798828125, -0.007617950439453125, 0.030242919921875, -0.04595947265625, 0.00777435302734375, 0.032958984375, 0.0035305023193359375, 0.0235443115234375, -0.0236968994140625, -0.0010786056518554688, -0.0192108154296875, 0.01117706298828125, -0.038726806640625, 0.005832672119140625, 0.01305389404296875, -0.0338134765625, -0.032928466796875, -0.004669189453125, -0.01045989990234375, 0.032257080078125, -0.0028018951416015625, 0.00757598876953125, 0.00726318359375, -0.045135498046875, 0.0672607421875, 0.039154052734375, 0.00604248046875, 0.041412353515625, 0.0085906982421875, 0.0236053466796875, 0.0080413818359375, 0.0168609619140625, -0.0026798248291015625, -0.0045928955078125, 0.044342041015625, -0.0112457275390625, -0.00543975830078125, 0.037017822265625, -0.0206756591796875, -0.015533447265625, 0.044036865234375, 0.0227813720703125, -0.08184814453125, 0.0038089752197265625, 0.0166168212890625, 0.02532958984375, 0.003787994384765625, 0.0240631103515625, -0.02410888671875, -0.018768310546875, -0.0111846923828125, -0.0240020751953125, -0.0292816162109375, 0.0037784576416015625, 0.01546478271484375, -0.00592803955078125, 0.0180511474609375, -0.0030002593994140625, 0.01209259033203125, -0.064453125, 0.005847930908203125, 0.02874755859375, -0.00469207763671875, -0.019439697265625, -0.00804901123046875, 0.043792724609375, -0.0655517578125, -0.08648681640625, 0.0135040283203125, 0.0215301513671875, -0.03936767578125, 0.0504150390625, -0.02838134765625, 0.051910400390625, 0.052215576171875, -0.004024505615234375, 0.030364990234375, -0.01222991943359375, 0.022064208984375, 0.00322723388671875, -0.0015935897827148438, 0.01491546630859375, 0.025238037109375, -0.0765380859375, 0.00836181640625, -0.044158935546875, 0.0213470458984375, -0.01540374755859375, 0.0178070068359375, 0.08880615234375, -0.0289306640625, -0.0258331298828125, 0.0187835693359375, 0.0374755859375, -0.00484466552734375, 0.01206207275390625, 0.036102294921875, -0.018798828125, 0.006198883056640625, 0.0169219970703125, -0.00958251953125, -0.02105712890625, -0.00830078125, -0.0701904296875, 0.062286376953125, -0.034423828125, 0.06402587890625, 0.01503753662109375, 0.0024871826171875, -0.0031604766845703125, -0.0076904296875, -0.048797607421875, 0.05853271484375, 0.040496826171875, 0.029144287109375, -0.0174560546875, -0.00574493408203125, 0.0145416259765625, 0.00827789306640625, 0.0179901123046875, -0.0123138427734375, -0.0012187957763671875, -0.002994537353515625, 0.063232421875, 0.07354736328125, 0.0243682861328125, -0.01247406005859375, 0.00024318695068359375, -0.015777587890625, 0.036346435546875, -0.004253387451171875, 0.047576904296875, -0.036895751953125, -0.006893157958984375, 0.00733184814453125, 0.01061248779296875, 0.0218963623046875, -0.0208587646484375, 0.048492431640625, 0.038177490234375, -0.034454345703125, -0.0137481689453125, -0.010986328125, -0.0110321044921875, 0.045928955078125, 0.02777099609375, -0.05487060546875, 0.002185821533203125, -0.037872314453125, 0.053070068359375, 0.0214385986328125, 0.034912109375, 0.052032470703125, 0.022857666015625, 0.06939697265625, -0.0112762451171875, 0.023773193359375, 0.00362396240234375, -0.01087188720703125, 0.0227508544921875, 0.0298919677734375, 0.0199432373046875, 0.004619598388671875, 0.03314208984375, 0.037017822265625, 0.0186309814453125, -0.0268707275390625, -0.07513427734375, 0.0159759521484375, 0.01322174072265625, 0.00960540771484375, 0.03448486328125, 0.0167999267578125, -0.0242919921875, 0.04541015625, -0.054534912109375, -0.0002187490463256836, 0.05267333984375, 0.03472900390625, -0.00130462646484375, -0.04931640625, -0.047882080078125, -0.022003173828125, -0.070068359375, 0.012115478515625, 0.0012636184692382812, 0.095458984375, 0.048736572265625, 0.059478759765625, -0.03753662109375, -0.06475830078125, 0.004726409912109375, -0.0098114013671875, -0.00875091552734375, -0.0242919921875, -0.0226287841796875, -0.039215087890625, 0.007183074951171875, 0.0291900634765625, -0.01007843017578125, 0.01097869873046875, 0.022308349609375, 0.052398681640625, 0.0069427490234375, -0.0057830810546875, 0.051300048828125, -0.0035724639892578125, 0.00516510009765625, -0.0374755859375, 0.055511474609375, 0.02130126953125, 0.01515960693359375, -0.0174713134765625, 0.045684814453125, 0.023712158203125, -0.0214385986328125, 0.01140594482421875, -0.0015687942504882812, -0.03887939453125, -0.003337860107421875, -0.025177001953125, 0.045318603515625, -0.01136016845703125, -0.09405517578125, -0.0265655517578125, 0.0005893707275390625, -0.034759521484375, 0.00994873046875, 0.0248565673828125, -0.045379638671875, 0.046417236328125, 0.0184478759765625, -0.0285186767578125, -0.01190948486328125, 0.01245880126953125, 0.00909423828125, -0.068359375, 0.0010442733764648438, -0.0265960693359375, -0.0199432373046875, 0.004772186279296875, 0.015655517578125, 0.0168609619140625, 0.03033447265625, 0.029266357421875, 0.017669677734375, 0.010162353515625, -0.01448822021484375, -0.015899658203125, -0.01273345947265625, -0.045745849609375, 0.0740966796875, -0.01406097412109375, -0.035003662109375, 0.005069732666015625, 0.029449462890625, -0.03741455078125, 0.059112548828125, -0.0728759765625, -0.034576416015625, -0.0225830078125, 0.032379150390625, -0.035614013671875, 0.039306640625, -0.0110321044921875, -0.0173797607421875, -0.042144775390625, -0.02679443359375, 0.0394287109375, 0.043212890625, 0.006198883056640625, -0.006153106689453125, 0.0025730133056640625, -0.00353240966796875, -0.012054443359375, 0.03887939453125, -0.0236968994140625, 0.0262603759765625, -0.0222320556640625, -0.008148193359375, 0.017730712890625, -0.0244293212890625, -0.0009169578552246094, 0.0092620849609375, 0.0201568603515625, -0.01326751708984375, -0.028472900390625, -0.044708251953125, 0.056915283203125, -0.00677490234375, -0.0477294921875, 0.0136871337890625, 0.03515625, -0.052734375, -0.0018787384033203125, -0.0244140625, -0.035430908203125, -0.0088043212890625, -0.00797271728515625, 0.004932403564453125, 0.015533447265625, -0.06195068359375, -0.057586669921875, 0.018096923828125, 0.03289794921875, 0.021484375, -0.06549072265625, 0.052764892578125, -0.023834228515625, 0.037078857421875, -0.005901336669921875, 0.0124053955078125, -0.005519866943359375, 0.0038433074951171875, -0.037506103515625, 0.0118865966796875, -0.02972412109375, -0.0008745193481445312, -0.0010585784912109375, 0.00858306884765625, 0.0250244140625, -0.0300140380859375, -0.01436614990234375, 0.0282440185546875, 0.0144805908203125, 0.057220458984375, 0.0156707763671875, 0.0004391670227050781, 0.0022220611572265625, 0.025238037109375, -0.038604736328125, -0.04180908203125, 0.021575927734375, -0.002300262451171875, -0.0212249755859375, 0.01093292236328125, -0.037200927734375, -0.020599365234375, -0.0545654296875, -0.093994140625, 0.06109619140625, -0.006992340087890625, -0.0294036865234375, -0.0050811767578125, 0.0242462158203125, -0.0192108154296875, 0.00830841064453125, 0.01123046875, -0.0285797119140625, 0.004360198974609375, 0.0136260986328125, 0.02850341796875, 0.0056610107421875, 0.0301666259765625, 0.006732940673828125, -0.047607421875, 0.020233154296875, -0.0071258544921875, 0.033203125, -0.0215301513671875, -0.0015850067138671875, 0.022491455078125, 0.050567626953125, -0.008392333984375, -0.0196075439453125, 0.02410888671875, 0.0037441253662109375, 0.039764404296875, -0.0394287109375, -0.078857421875, -0.05718994140625, 0.04547119140625, 0.01088714599609375, 0.029266357421875, 0.01983642578125, -0.033599853515625, -0.002765655517578125, 0.018585205078125, -0.002300262451171875, 0.00885009765625, -0.0634765625, -0.007511138916015625, 0.005077362060546875, 0.0111236572265625, 0.069091796875, -0.0173797607421875, 0.01053619384765625, -0.01172637939453125, 0.041778564453125, 0.0009250640869140625, -0.06292724609375, 0.0208587646484375, -0.040618896484375, -0.006649017333984375, -0.0212860107421875, -0.0307159423828125, 0.00652313232421875, -0.038360595703125, -0.0309906005859375, -0.0743408203125, -0.051849365234375, 0.0245208740234375, 0.046966552734375, -0.0352783203125, 0.032379150390625, -0.01114654541015625, 0.030609130859375, -0.039947509765625, -0.0031223297119140625, 0.0262451171875, -0.0237884521484375, -0.0204010009765625, 0.00418853759765625, 0.042755126953125, 0.0288238525390625, -0.0018587112426757812, 0.0294036865234375, -0.0203094482421875, 0.021942138671875, 0.0250396728515625, -0.003139495849609375, 0.05517578125, -0.0167083740234375, 0.00978851318359375, -0.00537109375, 0.01274871826171875, -0.006500244140625, 0.018646240234375, -0.00897979736328125, -0.008209228515625, 0.007122039794921875 ]
33b90b07cbc79ab7ed2a4255bc0b6cf6a3548779
Wordpress Stackexchange Q: Overriding default template if page slug and post type are same I have created a post type named 'faq', and a page 'faq' for displaying the posts under faq. Also I have created a page template name faq and selected the faq page's template to this. Now the problem is the faq page always render default template, which is archive.php or index.php. I tried to change the template name to page-faq.php and page-{page_id}.php but failed to achieve desired result. Is there any way to override default template in this case if I would not willing to change the page slug or post type. A: Easy way to achieve this. register_post_type( 'mypost', array( ... 'has_archive' => false, ... ) ); After updating this reset the permalinks 'Settings -> Permalink'
Q: Overriding default template if page slug and post type are same I have created a post type named 'faq', and a page 'faq' for displaying the posts under faq. Also I have created a page template name faq and selected the faq page's template to this. Now the problem is the faq page always render default template, which is archive.php or index.php. I tried to change the template name to page-faq.php and page-{page_id}.php but failed to achieve desired result. Is there any way to override default template in this case if I would not willing to change the page slug or post type. A: Easy way to achieve this. register_post_type( 'mypost', array( ... 'has_archive' => false, ... ) ); After updating this reset the permalinks 'Settings -> Permalink'
wordpress
{ "language": "en", "length": 129, "provenance": "stackexchange_00019.jsonl.gz:456608", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/192070" }
[ 0.011688232421875, -0.0014057159423828125, -0.0181121826171875, 0.005207061767578125, -0.007312774658203125, -0.028564453125, 0.03057861328125, -0.04180908203125, -0.0229339599609375, 0.0019931793212890625, 0.0063629150390625, -0.0159912109375, 0.00278472900390625, -0.04864501953125, 0.03759765625, -0.020721435546875, 0.022247314453125, 0.0214080810546875, 0.058013916015625, -0.01175689697265625, 0.0167694091796875, -0.0002949237823486328, 0.04193115234375, 0.052978515625, 0.02276611328125, -0.0263519287109375, 0.073486328125, 0.00305938720703125, -0.0026187896728515625, -0.023162841796875, 0.021331787109375, 0.0053253173828125, 0.036529541015625, -0.006282806396484375, -0.040679931640625, -0.0227508544921875, -0.0308380126953125, -0.0010128021240234375, -0.02197265625, 0.005359649658203125, 0.0091705322265625, 0.00640869140625, 0.044891357421875, 0.01029205322265625, -0.00727081298828125, -0.023468017578125, -0.01161956787109375, -0.052734375, 0.0357666015625, -0.00012624263763427734, -0.01031494140625, 0.007843017578125, -0.0032520294189453125, -0.01059722900390625, -0.0123443603515625, -0.00901031494140625, 0.0032253265380859375, -0.041046142578125, 0.041900634765625, -0.0165557861328125, -0.01235198974609375, -0.0298919677734375, 0.035552978515625, -0.007526397705078125, -0.001560211181640625, -0.043243408203125, 0.00046706199645996094, 0.0316162109375, -0.037841796875, 0.00882720947265625, 0.05804443359375, -0.0170135498046875, 0.0118408203125, -0.0276336669921875, -0.0298004150390625, -0.014251708984375, -0.0021457672119140625, -0.0254058837890625, 0.0120391845703125, -0.01555633544921875, 0.01580810546875, -0.01010894775390625, 0.0233001708984375, -0.05413818359375, 0.01184844970703125, -0.03240966796875, -0.007232666015625, 0.0011501312255859375, -0.03240966796875, -0.021453857421875, -0.0142364501953125, -0.044830322265625, -0.006679534912109375, -0.00872802734375, -0.01410675048828125, -0.0246429443359375, 0.0213470458984375, 0.0400390625, -0.00930023193359375, 0.031494140625, -0.01227569580078125, -0.048614501953125, 0.058197021484375, -0.039947509765625, 0.0024929046630859375, 0.035308837890625, 0.01541900634765625, 0.05120849609375, 0.03924560546875, 0.030517578125, -0.003173828125, 0.025115966796875, -0.0304107666015625, -0.0401611328125, -0.01485443115234375, 0.04150390625, -0.037109375, -0.00862884521484375, 0.0079345703125, -0.0033321380615234375, 0.019439697265625, 0.03778076171875, 0.0765380859375, -0.06103515625, 0.01300811767578125, 0.0277557373046875, -0.0281982421875, -0.1087646484375, -0.003055572509765625, 0.03948974609375, -0.033233642578125, -0.029815673828125, 0.053192138671875, 0.055267333984375, 0.0311737060546875, -0.037841796875, 0.004547119140625, -0.00244140625, -0.0175323486328125, 0.041046142578125, -0.039398193359375, -0.036163330078125, 0.016937255859375, -0.0150909423828125, 0.006977081298828125, 0.057525634765625, 0.0201416015625, -0.004444122314453125, -0.007488250732421875, -0.033935546875, -0.0292510986328125, -0.023712158203125, 0.044677734375, -0.003131866455078125, -0.016448974609375, -0.0369873046875, -0.011993408203125, -0.01947021484375, -0.0156097412109375, -0.024017333984375, -0.005619049072265625, -0.0217132568359375, 0.009552001953125, -0.0193634033203125, -0.056610107421875, 0.0516357421875, -0.0264129638671875, -0.025604248046875, 0.0190582275390625, -0.0040130615234375, 0.04443359375, 0.00930023193359375, -0.0226898193359375, -0.017791748046875, 0.0023288726806640625, -0.0248565673828125, -0.000499725341796875, -0.0035457611083984375, 0.0034198760986328125, 0.0273284912109375, -0.0225067138671875, -0.0350341796875, -0.0236968994140625, 0.005489349365234375, -0.07647705078125, 0.023895263671875, 0.01983642578125, 0.01922607421875, 0.002628326416015625, 0.0042572021484375, 0.08807373046875, 0.0244293212890625, -0.06866455078125, 0.0721435546875, -0.003971099853515625, -0.02545166015625, 0.01203155517578125, 0.010284423828125, -0.0018444061279296875, -0.037017822265625, 0.005634307861328125, 0.01154327392578125, -0.002574920654296875, 0.019622802734375, -0.01517486572265625, -0.0026569366455078125, -0.01136016845703125, 0.0265045166015625, 0.00873565673828125, 0.057769775390625, 0.00963592529296875, 0.01332855224609375, -0.03179931640625, 0.00040912628173828125, -0.006183624267578125, 0.0008573532104492188, 0.0004012584686279297, -0.00640106201171875, -0.0243988037109375, 0.014373779296875, -0.032073974609375, -0.0036373138427734375, -0.054107666015625, 0.02734375, 0.03228759765625, -0.0005660057067871094, -0.0283660888671875, -0.016143798828125, -0.013031005859375, 0.00966644287109375, -0.07257080078125, 0.050537109375, -0.032470703125, -0.0180511474609375, -0.05255126953125, 0.0011167526245117188, 0.0057830810546875, 0.0026226043701171875, 0.01111602783203125, 0.036651611328125, 0.0107574462890625, 0.0272979736328125, -0.01399993896484375, 0.0309600830078125, 0.023345947265625, 0.010009765625, 0.02032470703125, 0.00463104248046875, 0.028839111328125, 0.037078857421875, 0.0001361370086669922, 0.00403594970703125, 0.0218658447265625, -0.026123046875, 0.0216217041015625, 0.0220184326171875, 0.007633209228515625, -0.0130462646484375, 0.0208282470703125, 0.0211639404296875, -0.0059661865234375, 0.0162353515625, -0.004543304443359375, 0.0006113052368164062, 0.032196044921875, -0.011566162109375, 0.008636474609375, -0.0110321044921875, -0.03875732421875, 0.0006389617919921875, 0.0274505615234375, -0.03143310546875, -0.0028743743896484375, 0.0241851806640625, 0.0168609619140625, 0.0115203857421875, -0.032470703125, -0.006473541259765625, 0.005157470703125, 0.0159454345703125, -0.004791259765625, 0.042694091796875, -0.028167724609375, -0.0027599334716796875, -0.0310821533203125, -0.0826416015625, -0.00414276123046875, 0.042510986328125, 0.00794219970703125, -0.032623291015625, -0.0078125, 0.026031494140625, -0.04486083984375, 0.0540771484375, 0.0039215087890625, -0.03106689453125, -0.0027637481689453125, -0.05499267578125, 0.05328369140625, -0.0511474609375, 0.042236328125, 0.0673828125, -0.030487060546875, 0.03070068359375, -0.005435943603515625, 0.0279388427734375, 0.007640838623046875, -0.01291656494140625, -0.017852783203125, -0.016326904296875, -0.0201873779296875, 0.0231781005859375, 0.0258026123046875, 0.0290374755859375, 0.0155181884765625, -0.01415252685546875, 0.00406646728515625, 0.031494140625, -0.03240966796875, -0.01617431640625, 0.027313232421875, -0.0362548828125, 0.021881103515625, -0.037078857421875, -0.00008249282836914062, -0.0294342041015625, -0.02069091796875, 0.017547607421875, 0.027801513671875, -0.06414794921875, -0.042205810546875, -0.0750732421875, -0.078369140625, -0.06060791015625, 0.01477813720703125, -0.0006237030029296875, 0.0169830322265625, 0.0174407958984375, 0.0134429931640625, -0.0310516357421875, 0.052032470703125, -0.003650665283203125, -0.02081298828125, 0.0253448486328125, 0.0218963623046875, -0.042449951171875, -0.00017631053924560547, 0.007579803466796875, 0.034637451171875, 0.0122222900390625, -0.0007219314575195312, -0.01311492919921875, -0.00994873046875, -0.039276123046875, -0.0107879638671875, 0.02471923828125, 0.0186004638671875, -0.037322998046875, 0.01519012451171875, -0.0631103515625, -0.0662841796875, -0.030120849609375, -0.0748291015625, 0.043304443359375, 0.034149169921875, 0.025360107421875, -0.02740478515625, 0.03778076171875, -0.0037937164306640625, -0.00774383544921875, 0.075439453125, -0.047332763671875, 0.006954193115234375, -0.0181121826171875, -0.022064208984375, -0.055877685546875, 0.00962066650390625, -0.0224761962890625, 0.006870269775390625, 0.002960205078125, 0.0248870849609375, 0.0275421142578125, -0.0035419464111328125, -0.0009164810180664062, -0.0751953125, 0.039154052734375, -0.07293701171875, -0.01220703125, -0.042755126953125, -0.00688934326171875, 0.01540374755859375, 0.0947265625, -0.018218994140625, -0.0250701904296875, -0.008758544921875, 0.00021409988403320312, 0.0279693603515625, -0.007564544677734375, -0.0009541511535644531, -0.0288543701171875, -0.014404296875, 0.015960693359375, -0.01198577880859375, -0.009307861328125, -0.0190582275390625, 0.033203125, -0.011505126953125, -0.0269012451171875, 0.0278778076171875, -0.0298309326171875, -0.025299072265625, 0.039154052734375, -0.039398193359375, -0.0236968994140625, -0.0232086181640625, -0.025634765625, -0.09027099609375, -0.0200042724609375, 0.00015223026275634766, 0.063720703125, -0.0038909912109375, -0.013580322265625, -0.032989501953125, 0.035614013671875, 0.03216552734375, 0.02435302734375, 0.0054168701171875, -0.0088043212890625, -0.0240631103515625, -0.0369873046875, 0.026275634765625, -0.0467529296875, 0.01558685302734375, -0.01132965087890625, -0.0313720703125, -0.01233673095703125, -0.03961181640625, -0.00801849365234375, -0.00634002685546875, -0.0281829833984375, -0.07672119140625, -0.034576416015625, 0.006832122802734375, -0.00763702392578125, 0.02490234375, -0.0179901123046875, -0.036529541015625, -0.0665283203125, 0.0362548828125, 0.01314544677734375, -0.00698089599609375, 0.02117919921875, 0.035400390625, 0.007686614990234375, -0.03228759765625, -0.051605224609375, 0.032958984375, 0.016510009765625, -0.0107574462890625, 0.0297088623046875, -0.006343841552734375, 0.0171051025390625, -0.000005602836608886719, -0.0210113525390625, 0.000713348388671875, -0.0286712646484375, 0.07073974609375, -0.033935546875, -0.030670166015625, 0.03546142578125, -0.06719970703125, 0.0377197265625, 0.0281524658203125, -0.0030059814453125, 0.01308441162109375, -0.01215362548828125, 0.02777099609375, 0.006786346435546875, -0.0133514404296875, -0.053009033203125, -0.0078887939453125, 0.0005517005920410156, 0.02655029296875, 0.00615692138671875, 0.0157318115234375, -0.007396697998046875, 0.0004665851593017578, -0.006488800048828125, -0.008758544921875, 0.0254669189453125, 0.041534423828125, 0.007633209228515625, 0.0285491943359375, 0.033935546875, -0.0011053085327148438, -0.034027099609375, 0.0009660720825195312, 0.018798828125, 0.0018625259399414062, -0.02655029296875, -0.03424072265625, -0.0105133056640625, 0.0195770263671875, 0.0170440673828125, 0.022705078125, 0.02935791015625, 0.0091552734375, -0.014190673828125, -0.0138092041015625, 0.005771636962890625, 0.005313873291015625, -0.0489501953125, -0.0145721435546875, 0.0186309814453125, -0.023681640625, 0.03729248046875, -0.0012359619140625, 0.042816162109375, -0.01317596435546875, -0.02630615234375, -0.016937255859375, -0.03436279296875, 0.0562744140625, 0.0170745849609375, 0.005123138427734375, -0.029449462890625, 0.047393798828125, 0.022918701171875, 0.0147552490234375, -0.033721923828125, -0.01395416259765625, 0.019500732421875, -0.018280029296875, 0.023712158203125, 0.0017766952514648438, -0.06317138671875, 0.0009222030639648438, 0.0059356689453125, -0.0352783203125, -0.041717529296875, -0.018157958984375, -0.0010633468627929688, 0.0357666015625, -0.02911376953125, -0.01837158203125, 0.037811279296875, -0.021514892578125, 0.035858154296875, 0.01377105712890625, -0.02496337890625, 0.0002046823501586914, 0.0030059814453125, 0.01708984375, -0.0114288330078125, -0.00891876220703125, -0.055694580078125, 0.005889892578125, -0.02398681640625, -0.0133514404296875, 0.039886474609375, -0.00469207763671875, 0.045562744140625, -0.00844573974609375, -0.036285400390625, 0.054962158203125, 0.0111083984375, 0.0421142578125, 0.00778961181640625, -0.0268402099609375, 0.004444122314453125, -0.07861328125, -0.038330078125, -0.0142822265625, -0.05419921875, -0.048187255859375, -0.011505126953125, 0.0014715194702148438, -0.004390716552734375, -0.01416778564453125, -0.0200653076171875, -0.0310211181640625, 0.04693603515625, 0.046295166015625, 0.06341552734375, -0.01397705078125, 0.03985595703125, -0.0195770263671875, 0.0061492919921875, -0.0164794921875, -0.0071563720703125, -0.0296478271484375, 0.005931854248046875, -0.0160064697265625, -0.018157958984375, -0.01076507568359375, 0.038360595703125, -0.07012939453125, 0.0185089111328125, 0.08892822265625, 0.003955841064453125, -0.01189422607421875, -0.01343536376953125, 0.006267547607421875, -0.03228759765625, 0.04583740234375, -0.0301055908203125, -0.0229339599609375, -0.01120758056640625, 0.005283355712890625, 0.02349853515625, -0.0047760009765625, -0.0042266845703125, 0.01453399658203125, -0.0232391357421875, 0.0218505859375, -0.015655517578125, -0.08880615234375, 0.07769775390625, 0.059326171875, 0.019500732421875, 0.0406494140625, -0.01485443115234375, 0.00005513429641723633, 0.0144500732421875, 0.007633209228515625, 0.004001617431640625, -0.017791748046875, 0.03839111328125, 0.004291534423828125, -0.0012540817260742188, 0.0196685791015625, -0.0260467529296875, 0.017120361328125, 0.07421875, 0.06903076171875, -0.09344482421875, -0.00783538818359375, 0.015350341796875, -0.0167236328125, 0.03515625, 0.01264190673828125, -0.0161590576171875, 0.0023174285888671875, 0.01096343994140625, -0.04461669921875, -0.038055419921875, 0.0013742446899414062, 0.00502777099609375, -0.0090179443359375, 0.01568603515625, 0.06378173828125, 0.021514892578125, 0.01442718505859375, -0.01206207275390625, 0.0001531839370727539, 0.0283966064453125, 0.0006060600280761719, 0.002010345458984375, -0.009124755859375, -0.01081085205078125, -0.042938232421875, 0.00927734375, -0.055084228515625, 0.002223968505859375, 0.07257080078125, 0.00994110107421875, -0.0293121337890625, 0.01296234130859375, -0.017059326171875, 0.039642333984375, -0.026641845703125, -0.054779052734375, -0.029937744140625, -0.025421142578125, 0.0019989013671875, 0.02093505859375, 0.005779266357421875, 0.0142974853515625, -0.007724761962890625, -0.04449462890625, -0.01824951171875, -0.01251983642578125, 0.10211181640625, -0.05999755859375, -0.004207611083984375, 0.0244140625, 0.04693603515625, -0.0199432373046875, 0.008819580078125, 0.020660400390625, -0.0216217041015625, -0.0227203369140625, 0.0118560791015625, -0.0391845703125, -0.012420654296875, 0.0034046173095703125, -0.049041748046875, 0.10491943359375, 0.028778076171875, 0.00905609130859375, 0.02008056640625, 0.049530029296875, -0.044891357421875, 0.021575927734375, -0.035797119140625, 0.032379150390625, 0.0406494140625, 0.0728759765625, 0.0183868408203125, -0.0034923553466796875, 0.0386962890625, 0.0221099853515625, 0.04803466796875, 0.004543304443359375, -0.00630950927734375, -0.0023975372314453125, 0.052581787109375, 0.01995849609375, -0.0104217529296875, 0.0194854736328125, -0.01275634765625, -0.0118865966796875, 0.005611419677734375, -0.0144500732421875, 0.01519012451171875, -0.01593017578125, -0.0274505615234375, 0.0121307373046875, 0.0198822021484375, 0.031005859375, 0.002399444580078125, -0.0162200927734375, -0.046356201171875, 0.0013828277587890625, 0.0484619140625, -0.051361083984375, -0.01288604736328125, 0.0216217041015625, 0.04254150390625, -0.048431396484375, -0.01500701904296875, -0.025848388671875, 0.06549072265625, 0.034423828125, -0.02801513671875, 0.020843505859375, 0.002025604248046875, -0.01702880859375, -0.033111572265625, -0.0280609130859375, -0.007671356201171875, 0.0074920654296875, 0.04766845703125, 0.031951904296875, 0.0272064208984375, -0.0193634033203125, -0.00701904296875, 0.057281494140625, 0.0565185546875, -0.035736083984375, -0.043670654296875, 0.0203094482421875, -0.002201080322265625, -0.0242767333984375, 0.02142333984375, -0.01244354248046875, -0.0172271728515625, 0.039276123046875, -0.004665374755859375, -0.0189361572265625, 0.0032749176025390625, -0.01322174072265625, -0.018463134765625, -0.036956787109375, 0.0360107421875, 0.0164031982421875, -0.0631103515625, 0.027740478515625, 0.008819580078125, 0.07025146484375, 0.0179901123046875, 0.04571533203125, -0.00856781005859375, -0.034149169921875, -0.01708984375, 0.00481414794921875, -0.032318115234375, 0.0458984375, -0.0596923828125, -0.006500244140625, 0.0099945068359375, 0.046112060546875, -0.0112152099609375, 0.0302276611328125, 0.04071044921875, 0.00963592529296875, -0.026397705078125, -0.01934814453125, 0.0094146728515625, -0.044677734375, 0.049560546875, -0.0380859375, -0.0006160736083984375, -0.033294677734375, -0.03765869140625, -0.020538330078125, -0.0086212158203125, 0.005435943603515625, -0.0247955322265625, 0.02703857421875, 0.005870819091796875, 0.0027256011962890625, 0.07073974609375, 0.0283660888671875, 0.0285491943359375, 0.031707763671875, -0.08544921875, -0.0166473388671875, -0.039154052734375, -0.08001708984375, 0.055206298828125, 0.05438232421875, -0.020477294921875, 0.0034046173095703125, 0.052215576171875, 0.00223541259765625, -0.0237274169921875, 0.003871917724609375, 0.022491455078125, 0.0002982616424560547, 0.017059326171875, 0.031707763671875, -0.0128936767578125, -0.0294036865234375, -0.00600433349609375, 0.054931640625, 0.00008749961853027344, 0.09771728515625, -0.044342041015625, 0.006282806396484375, 0.00592803955078125, 0.0225372314453125, -0.025482177734375, -0.0201568603515625, 0.046966552734375, -0.00925445556640625, -0.0087738037109375, -0.010223388671875, -0.06884765625, 0.033477783203125, 0.04681396484375, -0.016815185546875, 0.03936767578125, 0.00482177734375, 0.002712249755859375, -0.04644775390625, -0.006473541259765625, -0.0237884521484375, -0.0308074951171875, -0.0275726318359375, 0.018218994140625, 0.0102386474609375, 0.017669677734375, -0.0292816162109375, 0.054534912109375, -0.060394287109375, -0.04388427734375, 0.01381683349609375, -0.07080078125, -0.01776123046875, 0.01551055908203125, 0.00321197509765625, -0.03985595703125, 0.01045989990234375, -0.006237030029296875, -0.0009889602661132812, 0.0159454345703125, 0.021270751953125, 0.005016326904296875, -0.0408935546875, -0.00418853759765625, -0.040618896484375, -0.0037784576416015625, -0.026336669921875, -0.0242156982421875, -0.01153564453125, 0.00792694091796875, -0.0010471343994140625, 0.03289794921875, -0.01450347900390625, -0.0212249755859375, -0.004917144775390625, 0.0119781494140625, -0.0249176025390625, -0.00640869140625, -0.052642822265625, 0.000027418136596679688, 0.006870269775390625, -0.011016845703125, -0.031402587890625, 0.0029468536376953125, -0.0203857421875, 0.05108642578125, -0.040496826171875, -0.05926513671875, 0.0206756591796875, -0.01165771484375, -0.050872802734375, 0.04364013671875, -0.046142578125, -0.0748291015625, -0.0038299560546875, -0.0023326873779296875, 0.061431884765625, -0.0174407958984375, -0.06268310546875, -0.02044677734375, -0.01061248779296875, 0.040740966796875, -0.036590576171875, -0.0026569366455078125, 0.0256195068359375, 0.01554107666015625, -0.024627685546875, -0.09381103515625, -0.0008134841918945312, -0.06304931640625, 0.0299530029296875, 0.022552490234375, -0.01007080078125, 0.0178680419921875, -0.0214996337890625, 0.002239227294921875, 0.035797119140625, 0.0272674560546875, -0.0153350830078125, -0.01422882080078125, -0.00312042236328125, -0.0016775131225585938, -0.001689910888671875, -0.0131378173828125, 0.0032405853271484375, -0.010498046875, 0.029388427734375, 0.0007333755493164062, 0.043304443359375, 0.0027408599853515625, 0.01204681396484375, -0.020843505859375, 0.02142333984375, 0.0048370361328125, 0.002956390380859375, 0.01995849609375, -0.016510009765625, 0.00930023193359375, 0.023162841796875, -0.06463623046875, -0.04608154296875, -0.01337432861328125, 0.040618896484375, -0.007457733154296875, 0.0258331298828125, -0.0419921875, -0.004001617431640625, 0.054534912109375, 0.07867431640625, 0.024200439453125, -0.0268096923828125, -0.025634765625, -0.02056884765625, -0.048065185546875, -0.01061248779296875, 0.047088623046875, -0.0794677734375, 0.0100250244140625, 0.01529693603515625, -0.031524658203125, -0.0205078125, -0.0187530517578125, -0.05584716796875, 0.0228424072265625, 0.0021820068359375, 0.0033931732177734375, 0.00977325439453125, 0.01910400390625, 0.0097503662109375, -0.0098114013671875, 0.02435302734375, -0.023773193359375, 0.00829315185546875, 0.0103302001953125, -0.0303192138671875, -0.0242767333984375, 0.0145111083984375, -0.0255126953125, -0.029388427734375, 0.002193450927734375, 0.006534576416015625, 0.017059326171875, -0.0023956298828125, 0.010467529296875, 0.0280303955078125, 0.0025157928466796875, 0.038177490234375, -0.0209503173828125, 0.0548095703125, -0.0023593902587890625, 0.03533935546875, 0.018310546875, 0.017486572265625, -0.003925323486328125, 0.06512451171875, -0.00127410888671875, -0.0255279541015625, -0.00821685791015625, -0.0038356781005859375, 0.01082611083984375, -0.024078369140625, -0.008026123046875, -0.0330810546875, 0.022491455078125, -0.021240234375, -0.038055419921875, 0.0267791748046875 ]
3295d704704cf336277ff64cd5e784b7e80f7f38
Wordpress Stackexchange Q: Remove All Widgets from Sidebar Does someone know a solution for this? I want to remove (not unregister) all widgets from a sidebar with a function. A: You could add this function to your functions.php file. add_filter( 'sidebars_widgets', 'disable_all_widgets' ); function disable_all_widgets( $sidebars_widgets ) { $sidebars_widgets = array( false ); return $sidebars_widgets; } You could also use the Wordpress conditional tags to disable widgets only on certain pages. For example; this would only disable widgets on the home page. add_filter( 'sidebars_widgets', 'disable_all_widgets' ); function disable_all_widgets( $sidebars_widgets ) { if ( is_home() ) $sidebars_widgets = array( false ); return $sidebars_widgets; }
Q: Remove All Widgets from Sidebar Does someone know a solution for this? I want to remove (not unregister) all widgets from a sidebar with a function. A: You could add this function to your functions.php file. add_filter( 'sidebars_widgets', 'disable_all_widgets' ); function disable_all_widgets( $sidebars_widgets ) { $sidebars_widgets = array( false ); return $sidebars_widgets; } You could also use the Wordpress conditional tags to disable widgets only on certain pages. For example; this would only disable widgets on the home page. add_filter( 'sidebars_widgets', 'disable_all_widgets' ); function disable_all_widgets( $sidebars_widgets ) { if ( is_home() ) $sidebars_widgets = array( false ); return $sidebars_widgets; } A: There is a quick way to accomplish this via jQuery and the developer console. First, navigate to Appearance Widgets and open the developer console (I use Chrome so I just hit CTRL+SHIFT+J on the keyboard to open it). This action cannot be undone, so be careful and make a database backup first. $('.button-link.button-link-delete.widget-control-remove').click(); What this is doing is using a CSS selector to get a list of all 'Delete' buttons/links on the page and simulating a click on it. This leaves your sidebars registered, but it empties all widgets that are added. I used it today because a theme I installed pre-populated all the sidebars with tons of widgets that were causing the site to load slowly even though they were only used on certain pages. Note: for some reason, this will appear to remove even the widget templates on the left. It is not. Just refresh the Widget management page and they will all be there, available to add to the sidebars.
wordpress
{ "language": "en", "length": 265, "provenance": "stackexchange_00019.jsonl.gz:456630", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/192159" }
[ 0.0555419921875, 0.0015268325805664062, 0.0270538330078125, 0.01324462890625, 0.029754638671875, -0.045806884765625, 0.09979248046875, -0.05517578125, 0.02459716796875, 0.034576416015625, 0.009674072265625, -0.0286865234375, 0.005168914794921875, -0.027130126953125, -0.0238800048828125, -0.01320648193359375, 0.032379150390625, 0.02392578125, 0.058380126953125, -0.0027751922607421875, 0.01033782958984375, 0.0236358642578125, 0.0187530517578125, 0.07110595703125, -0.01073455810546875, -0.0010652542114257812, 0.08111572265625, -0.03564453125, 0.0024890899658203125, -0.042083740234375, 0.0211639404296875, 0.0335693359375, 0.001201629638671875, 0.0152587890625, -0.003505706787109375, 0.032135009765625, -0.053436279296875, 0.03564453125, 0.0247955322265625, -0.0170135498046875, 0.04058837890625, -0.020843505859375, -0.018402099609375, 0.0198974609375, -0.035430908203125, 0.0079345703125, 0.01209259033203125, -0.0128173828125, 0.01226043701171875, -0.0311279296875, 0.0297393798828125, -0.001270294189453125, 0.05718994140625, -0.053466796875, -0.037109375, -0.005069732666015625, 0.01617431640625, -0.01910400390625, 0.03497314453125, 0.0152130126953125, -0.033416748046875, -0.0081939697265625, 0.01514434814453125, -0.035980224609375, -0.0213623046875, -0.0218963623046875, -0.0265045166015625, 0.00875091552734375, -0.049102783203125, -0.00359344482421875, 0.061492919921875, -0.03875732421875, 0.0062255859375, -0.022308349609375, 0.0183563232421875, 0.00788116455078125, -0.016632080078125, 0.0209503173828125, 0.00954437255859375, -0.0026092529296875, -0.0032405853271484375, 0.0091400146484375, -0.0494384765625, -0.0013208389282226562, 0.004817962646484375, 0.01477813720703125, -0.01763916015625, -0.0126953125, -0.00460052490234375, 0.017822265625, 0.00024139881134033203, -0.0207977294921875, -0.0022144317626953125, 0.0082855224609375, 0.01406097412109375, -0.0321044921875, 0.043487548828125, 0.040283203125, -0.0174713134765625, 0.0024242401123046875, 0.003082275390625, -0.046051025390625, 0.0288848876953125, -0.057952880859375, 0.017791748046875, 0.052886962890625, -0.04449462890625, -0.004711151123046875, 0.04266357421875, 0.049957275390625, 0.04840087890625, -0.04974365234375, -0.0179901123046875, -0.01084136962890625, -0.0582275390625, 0.0272369384765625, -0.01126861572265625, -0.020599365234375, -0.0016460418701171875, 0.0275421142578125, -0.0007615089416503906, 0.00994873046875, 0.0271148681640625, -0.00496673583984375, 0.0197601318359375, 0.00682830810546875, -0.0308990478515625, -0.035186767578125, 0.01128387451171875, -0.014556884765625, -0.05096435546875, 0.00389862060546875, 0.060577392578125, 0.048004150390625, 0.033538818359375, -0.01418304443359375, 0.048980712890625, 0.006195068359375, 0.0205078125, 0.031646728515625, 0.01322174072265625, -0.0596923828125, -0.0308837890625, 0.0164947509765625, 0.01123046875, 0.008544921875, 0.0236053466796875, 0.0027332305908203125, -0.002216339111328125, 0.0013523101806640625, -0.007167816162109375, -0.01160430908203125, 0.0268096923828125, 0.0279693603515625, 0.0231475830078125, 0.0009908676147460938, 0.07244873046875, -0.041656494140625, -0.0295257568359375, -0.040985107421875, -0.00968170166015625, -0.01139068603515625, -0.00759124755859375, -0.00742340087890625, -0.0262451171875, 0.0196075439453125, 0.03057861328125, 0.01088714599609375, 0.015716552734375, 0.032806396484375, -0.045867919921875, -0.05535888671875, -0.03704833984375, 0.0239105224609375, 0.0003991127014160156, 0.069091796875, -0.0141754150390625, 0.002887725830078125, -0.00167083740234375, 0.0120086669921875, -0.0256500244140625, -0.04888916015625, -0.016632080078125, 0.0241851806640625, -0.0853271484375, 0.00384521484375, 0.0120086669921875, 0.054931640625, 0.03912353515625, 0.018463134765625, 0.050048828125, -0.025390625, -0.0374755859375, 0.0088043212890625, 0.0094451904296875, -0.023345947265625, -0.031494140625, -0.035186767578125, -0.011199951171875, 0.0267486572265625, 0.052978515625, -0.01165771484375, 0.0213165283203125, -0.032135009765625, -0.0924072265625, 0.01023101806640625, -0.0287017822265625, 0.044708251953125, 0.0009965896606445312, 0.040740966796875, 0.01416015625, 0.025665283203125, -0.041717529296875, 0.0125732421875, -0.01413726806640625, -0.01678466796875, 0.03778076171875, 0.0679931640625, 0.0122528076171875, -0.004749298095703125, 0.01166534423828125, -0.038299560546875, 0.037353515625, 0.0546875, 0.07421875, -0.0187530517578125, -0.0091400146484375, -0.042755126953125, 0.0262603759765625, 0.0019063949584960938, -0.10723876953125, 0.06988525390625, -0.01488494873046875, 0.0080413818359375, -0.036376953125, -0.001682281494140625, 0.0014848709106445312, 0.03173828125, -0.01122283935546875, 0.01100921630859375, 0.03729248046875, 0.01824951171875, -0.0023097991943359375, 0.017333984375, 0.007686614990234375, -0.09375, -0.0029735565185546875, 0.0018682479858398438, -0.0088653564453125, 0.00632476806640625, 0.0016803741455078125, 0.01439666748046875, 0.027557373046875, -0.0281219482421875, 0.0128021240234375, 0.03179931640625, -0.001514434814453125, 0.03289794921875, -0.029083251953125, -0.007167816162109375, 0.0028228759765625, -0.0232391357421875, -0.0254974365234375, -0.0254364013671875, 0.03607177734375, -0.007843017578125, 0.02923583984375, 0.0235595703125, 0.002410888671875, -0.0172271728515625, 0.005672454833984375, -0.044921875, -0.01203155517578125, 0.0290069580078125, 0.0616455078125, -0.0235595703125, -0.043121337890625, -0.0191802978515625, 0.026947021484375, 0.004840850830078125, 0.015289306640625, 0.03546142578125, 0.033660888671875, -0.004425048828125, 0.0031223297119140625, -0.0638427734375, 0.036712646484375, 0.04425048828125, -0.006107330322265625, -0.004657745361328125, -0.01267242431640625, 0.050506591796875, 0.0026874542236328125, 0.016265869140625, 0.045318603515625, 0.00183868408203125, 0.0257568359375, -0.039581298828125, 0.02789306640625, 0.0017251968383789062, 0.044219970703125, 0.063720703125, 0.01325225830078125, -0.00489044189453125, 0.0232696533203125, 0.029449462890625, 0.056243896484375, -0.005619049072265625, 0.0171966552734375, 0.039581298828125, -0.0706787109375, -0.01873779296875, -0.00901031494140625, 0.025665283203125, -0.01364898681640625, -0.0535888671875, 0.0034198760986328125, -0.01139068603515625, -0.035980224609375, -0.00432586669921875, 0.03887939453125, 0.00301361083984375, -0.0309600830078125, 0.011871337890625, -0.01503753662109375, 0.002918243408203125, 0.024261474609375, -0.0165557861328125, 0.004573822021484375, 0.0031909942626953125, -0.031646728515625, 0.0157928466796875, -0.025909423828125, 0.01389312744140625, -0.0128173828125, 0.0155792236328125, 0.0172576904296875, 0.056884765625, 0.00909423828125, -0.053802490234375, 0.032012939453125, -0.019561767578125, -0.029541015625, 0.0252838134765625, 0.0068511962890625, -0.0244293212890625, -0.01214599609375, -0.007450103759765625, 0.00946044921875, 0.00231170654296875, -0.01546478271484375, -0.0019989013671875, 0.00423431396484375, 0.0083770751953125, 0.02325439453125, -0.0036869049072265625, -0.0158538818359375, -0.022216796875, -0.00475311279296875, -0.060150146484375, -0.021484375, 0.023651123046875, -0.017425537109375, 0.002803802490234375, -0.0039825439453125, -0.02630615234375, 0.02130126953125, 0.00962066650390625, 0.0194549560546875, -0.00043272972106933594, 0.0149688720703125, -0.01617431640625, 0.03631591796875, 0.0236358642578125, 0.04620361328125, -0.0216217041015625, -0.0290374755859375, -0.048095703125, 0.042144775390625, -0.01448822021484375, -0.006290435791015625, -0.0265655517578125, 0.0557861328125, -0.0149078369140625, -0.006591796875, 0.047088623046875, 0.00994873046875, 0.0091705322265625, 0.022430419921875, -0.0256500244140625, 0.041351318359375, 0.07342529296875, -0.056854248046875, -0.0232696533203125, -0.00727081298828125, 0.024261474609375, -0.034210205078125, -0.049285888671875, -0.031402587890625, -0.0100555419921875, -0.10198974609375, 0.0386962890625, -0.003284454345703125, -0.03631591796875, -0.0247802734375, -0.03424072265625, -0.05853271484375, -0.0248870849609375, 0.04150390625, -0.0394287109375, 0.02410888671875, -0.019500732421875, 0.0015840530395507812, -0.0413818359375, -0.0032444000244140625, -0.032989501953125, -0.058135986328125, 0.00913238525390625, -0.042999267578125, 0.037078857421875, 0.0221710205078125, -0.0261688232421875, -0.014617919921875, 0.005374908447265625, 0.030426025390625, -0.053741455078125, 0.021697998046875, 0.0012884140014648438, -0.01427459716796875, 0.0190887451171875, 0.00794219970703125, -0.0207366943359375, 0.0038890838623046875, 0.021636962890625, -0.01050567626953125, -0.015350341796875, -0.043487548828125, -0.043426513671875, 0.030609130859375, -0.056854248046875, -0.0272674560546875, -0.041351318359375, -0.03436279296875, 0.01629638671875, -0.052001953125, 0.043426513671875, -0.0418701171875, -0.03448486328125, 0.0233154296875, 0.01300811767578125, -0.036651611328125, 0.01678466796875, 0.052734375, 0.022705078125, -0.0207977294921875, -0.0433349609375, -0.00864410400390625, 0.046417236328125, -0.00286102294921875, 0.029388427734375, 0.04046630859375, -0.0293121337890625, 0.017974853515625, 0.0223541259765625, -0.02001953125, -0.0148468017578125, 0.1021728515625, 0.0216522216796875, 0.0134124755859375, -0.00801849365234375, 0.0036602020263671875, -0.018951416015625, -0.009796142578125, -0.0026760101318359375, -0.0009741783142089844, 0.036712646484375, 0.01206207275390625, 0.01538848876953125, -0.041229248046875, -0.022491455078125, 0.00289154052734375, -0.0060577392578125, 0.03826904296875, 0.028167724609375, 0.0022754669189453125, 0.015228271484375, -0.0186767578125, 0.00749969482421875, 0.002513885498046875, -0.0030498504638671875, -0.0037593841552734375, -0.0267333984375, 0.0208587646484375, -0.01253509521484375, -0.0122833251953125, 0.01477813720703125, -0.006130218505859375, 0.061614990234375, 0.0303802490234375, -0.017303466796875, -0.00020575523376464844, -0.007190704345703125, 0.00662994384765625, -0.00954437255859375, 0.05548095703125, 0.0458984375, 0.000698089599609375, -0.01898193359375, -0.036956787109375, -0.01178741455078125, 0.0022754669189453125, -0.06829833984375, -0.03936767578125, -0.0005769729614257812, -0.017486572265625, 0.0114288330078125, -0.0135040283203125, -0.009918212890625, 0.0070953369140625, -0.0034885406494140625, 0.033721923828125, 0.0256805419921875, 0.035552978515625, 0.00579071044921875, -0.004253387451171875, 0.0084686279296875, -0.01617431640625, 0.0018510818481445312, -0.0292816162109375, -0.006488800048828125, 0.028045654296875, 0.00969696044921875, 0.040802001953125, -0.0122833251953125, -0.00385284423828125, -0.00020587444305419922, -0.006916046142578125, 0.0799560546875, 0.028167724609375, -0.045745849609375, -0.031951904296875, -0.00437164306640625, 0.0220794677734375, -0.036712646484375, 0.007038116455078125, -0.01568603515625, -0.035888671875, -0.01849365234375, 0.02880859375, -0.02435302734375, -0.0177154541015625, -0.023773193359375, -0.048187255859375, -0.0217437744140625, 0.007701873779296875, -0.114501953125, -0.05029296875, 0.019744873046875, -0.0113067626953125, -0.010955810546875, -0.01538848876953125, 0.04840087890625, -0.026702880859375, -0.01238250732421875, 0.01009368896484375, 0.00860595703125, 0.0240936279296875, 0.011077880859375, -0.06732177734375, -0.01221466064453125, -0.050750732421875, -0.02154541015625, -0.062042236328125, -0.05364990234375, -0.06866455078125, 0.0115203857421875, 0.0283355712890625, 0.0214996337890625, 0.0218963623046875, -0.010894775390625, -0.00007718801498413086, 0.01065826416015625, 0.015838623046875, 0.04803466796875, -0.03741455078125, 0.04864501953125, 0.00702667236328125, 0.057098388671875, 0.0053253173828125, 0.020263671875, 0.002849578857421875, -0.03515625, 0.0406494140625, -0.027496337890625, -0.039154052734375, -0.031890869140625, -0.0477294921875, -0.05181884765625, 0.01538848876953125, -0.03192138671875, 0.0239715576171875, -0.05059814453125, -0.01491546630859375, -0.0195465087890625, 0.047637939453125, -0.045623779296875, 0.048370361328125, -0.0219879150390625, -0.01812744140625, 0.000774383544921875, -0.01220703125, -0.0435791015625, 0.029632568359375, 0.01224517822265625, 0.0036067962646484375, 0.0032196044921875, -0.055267333984375, 0.07745361328125, 0.04290771484375, 0.02130126953125, 0.05816650390625, -0.007274627685546875, 0.032318115234375, 0.020111083984375, -0.006351470947265625, 0.02435302734375, 0.00373077392578125, 0.052581787109375, -0.01285552978515625, -0.018341064453125, 0.026153564453125, -0.03546142578125, 0.0023212432861328125, 0.047088623046875, 0.042877197265625, -0.0869140625, 0.0002124309539794922, 0.0029850006103515625, 0.0107879638671875, 0.0297393798828125, -0.01226043701171875, -0.0171966552734375, -0.049163818359375, 0.0872802734375, -0.00275421142578125, -0.0037212371826171875, 0.044403076171875, 0.007472991943359375, -0.0021381378173828125, -0.01305389404296875, 0.044464111328125, 0.02044677734375, -0.0205078125, -0.0237579345703125, 0.044097900390625, -0.0229339599609375, 0.006591796875, 0.0035991668701171875, 0.0189361572265625, -0.051788330078125, -0.0963134765625, -0.0259857177734375, -0.0010251998901367188, -0.05328369140625, 0.061370849609375, -0.0290985107421875, 0.035247802734375, 0.032379150390625, -0.0169830322265625, 0.041900634765625, -0.03466796875, -0.01018524169921875, -0.018035888671875, -0.00914764404296875, 0.00008887052536010742, -0.01220703125, -0.0217742919921875, 0.02056884765625, -0.035308837890625, -0.0318603515625, -0.0239410400390625, 0.00951385498046875, 0.1297607421875, -0.043975830078125, -0.031951904296875, 0.00226593017578125, 0.043060302734375, -0.0110931396484375, -0.0472412109375, 0.040008544921875, -0.08367919921875, -0.010772705078125, -0.016082763671875, -0.01009368896484375, -0.0271453857421875, -0.04669189453125, -0.048004150390625, 0.09619140625, -0.0100555419921875, 0.0219573974609375, 0.033355712890625, 0.031036376953125, -0.052154541015625, 0.016510009765625, -0.0098876953125, 0.02398681640625, 0.030487060546875, 0.028350830078125, 0.037322998046875, 0.0135040283203125, 0.022216796875, 0.0007987022399902344, 0.038543701171875, -0.006244659423828125, 0.0472412109375, -0.0200958251953125, 0.02496337890625, 0.0743408203125, 0.0022640228271484375, -0.03436279296875, -0.01512908935546875, -0.015045166015625, -0.0086212158203125, -0.003276824951171875, 0.034027099609375, -0.03997802734375, -0.037109375, 0.00543975830078125, 0.01922607421875, 0.0308837890625, -0.0228729248046875, 0.015472412109375, 0.060638427734375, -0.053924560546875, -0.036865234375, -0.0172119140625, 0.00004398822784423828, 0.05511474609375, 0.0091552734375, 0.006015777587890625, 0.01541900634765625, -0.033416748046875, 0.05810546875, -0.01181793212890625, 0.0253143310546875, -0.006435394287109375, 0.0193939208984375, -0.006404876708984375, 0.0026874542236328125, 0.02197265625, 0.0570068359375, -0.045654296875, 0.0240936279296875, 0.030120849609375, 0.033477783203125, -0.0233001708984375, 0.00630950927734375, 0.0047607421875, 0.0218963623046875, -0.014678955078125, -0.07330322265625, 0.01666259765625, -0.025787353515625, -0.002960205078125, 0.0219879150390625, 0.0004246234893798828, -0.044189453125, -0.00737762451171875, -0.00685882568359375, -0.001369476318359375, -0.0005793571472167969, 0.049102783203125, -0.008697509765625, -0.0322265625, -0.010528564453125, -0.00820159912109375, -0.02386474609375, -0.0178375244140625, 0.0189971923828125, 0.044097900390625, 0.037017822265625, -0.0032482147216796875, -0.00870513916015625, -0.0279388427734375, -0.00785064697265625, 0.0120697021484375, -0.025054931640625, 0.022003173828125, -0.057220458984375, -0.04498291015625, -0.006580352783203125, 0.040771484375, 0.01435089111328125, 0.0322265625, 0.02752685546875, 0.025177001953125, 0.003910064697265625, -0.002285003662109375, 0.04901123046875, -0.01983642578125, 0.00537872314453125, -0.022979736328125, 0.006488800048828125, 0.01227569580078125, -0.0085601806640625, -0.0200347900390625, 0.0369873046875, 0.0169525146484375, 0.00754547119140625, 0.0294189453125, 0.0023937225341796875, 0.00490570068359375, 0.055450439453125, -0.01221466064453125, 0.0185394287109375, 0.0192413330078125, -0.07012939453125, -0.030426025390625, 0.0269622802734375, -0.019317626953125, -0.00237274169921875, 0.0181732177734375, -0.06402587890625, 0.0567626953125, 0.03302001953125, -0.0135650634765625, -0.00533294677734375, -0.01000213623046875, 0.035430908203125, -0.0044097900390625, -0.0013103485107421875, 0.025054931640625, -0.036651611328125, 0.00927734375, 0.004230499267578125, -0.01386260986328125, 0.0311737060546875, 0.0238494873046875, 0.0226593017578125, 0.01120758056640625, -0.01450347900390625, 0.020050048828125, -0.0198974609375, -0.01186370849609375, 0.01059722900390625, 0.01080322265625, 0.0045166015625, -0.0208282470703125, -0.0234527587890625, 0.02978515625, 0.0182037353515625, -0.034698486328125, 0.03875732421875, -0.043701171875, 0.004062652587890625, -0.0286865234375, -0.030792236328125, -0.0218963623046875, -0.007785797119140625, 0.0160675048828125, -0.00223541259765625, 0.021759033203125, -0.007411956787109375, -0.0043182373046875, 0.00394439697265625, 0.011749267578125, -0.00844573974609375, 0.0102691650390625, 0.01036834716796875, -0.00493621826171875, 0.0200958251953125, 0.009429931640625, -0.050262451171875, -0.00714874267578125, -0.00916290283203125, -0.00067901611328125, 0.0065765380859375, 0.043182373046875, -0.00127410888671875, -0.015106201171875, -0.03582763671875, -0.0025501251220703125, -0.0019989013671875, -0.0171661376953125, -0.01122283935546875, 0.00103759765625, -0.020904541015625, -0.0176239013671875, 0.0193634033203125, -0.0057220458984375, -0.0298919677734375, -0.02484130859375, 0.0311431884765625, -0.034515380859375, -0.032470703125, -0.0645751953125, 0.01294708251953125, 0.02410888671875, 0.0011730194091796875, -0.059722900390625, 0.04815673828125, -0.0178985595703125, 0.041015625, -0.026611328125, 0.043121337890625, -0.00885772705078125, 0.0020618438720703125, -0.030120849609375, -0.004459381103515625, -0.0203399658203125, 0.035308837890625, 0.006412506103515625, 0.0014019012451171875, -0.004344940185546875, -0.01505279541015625, 0.04144287109375, 0.0056304931640625, 0.0164337158203125, 0.05157470703125, 0.0301513671875, -0.00986480712890625, 0.0206756591796875, 0.007808685302734375, -0.006603240966796875, -0.04498291015625, -0.0095672607421875, -0.01027679443359375, 0.01519012451171875, -0.0200347900390625, 0.00044846534729003906, -0.004344940185546875, -0.035003662109375, -0.03961181640625, 0.0303802490234375, -0.0019350051879882812, -0.02154541015625, -0.005584716796875, 0.0203704833984375, -0.0118865966796875, -0.005039215087890625, 0.0080413818359375, -0.03912353515625, -0.00445556640625, 0.0240325927734375, 0.0435791015625, 0.0254058837890625, 0.01021575927734375, 0.0443115234375, -0.033966064453125, 0.040252685546875, 0.0010528564453125, 0.04766845703125, -0.038360595703125, -0.024810791015625, 0.00782012939453125, 0.01361083984375, -0.044219970703125, -0.0195465087890625, 0.026702880859375, 0.052581787109375, 0.0021381378173828125, -0.041961669921875, -0.03436279296875, -0.0162200927734375, 0.0823974609375, 0.0462646484375, 0.037872314453125, -0.029937744140625, -0.01064300537109375, -0.00716400146484375, -0.0015106201171875, -0.0008568763732910156, -0.0058135986328125, -0.02362060546875, 0.00688934326171875, 0.0011892318725585938, 0.01202392578125, 0.0253448486328125, -0.030548095703125, -0.005329132080078125, 0.00260162353515625, 0.04833984375, 0.03240966796875, -0.05340576171875, 0.046783447265625, -0.0098419189453125, -0.0015716552734375, 0.05340576171875, -0.0638427734375, 0.00273895263671875, 0.0270538330078125, -0.023651123046875, -0.0233917236328125, -0.0099945068359375, -0.00824737548828125, 0.03424072265625, -0.009552001953125, 0.0418701171875, -0.0131378173828125, -0.0052642822265625, -0.0341796875, -0.0055389404296875, 0.0142974853515625, -0.01258087158203125, 0.002513885498046875, 0.028289794921875, 0.03607177734375, 0.036163330078125, -0.01470184326171875, 0.06256103515625, -0.0084686279296875, 0.04046630859375, 0.0163726806640625, -0.01471710205078125, 0.0703125, -0.055511474609375, -0.0100860595703125, 0.01503753662109375, 0.01194000244140625, -0.0782470703125, 0.055816650390625, -0.006374359130859375, 0.0289459228515625, 0.039031982421875 ]
8bcda6c9810408943495672390d4a6809d02f584
Wordpress Stackexchange Q: How to add quick edit and bulk edit fields to users admin section Salutations, is there a way to add quick edit and bulk edit fields for the users section in wordpress. I have found a lot about post types and custom post types but i'm specifically looking to add ability to edit custom meta fields i have added to the users.
Q: How to add quick edit and bulk edit fields to users admin section Salutations, is there a way to add quick edit and bulk edit fields for the users section in wordpress. I have found a lot about post types and custom post types but i'm specifically looking to add ability to edit custom meta fields i have added to the users.
wordpress
{ "language": "en", "length": 63, "provenance": "stackexchange_00019.jsonl.gz:456652", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/192225" }
[ 0.039093017578125, -0.0005893707275390625, 0.00270843505859375, -0.037750244140625, 0.005146026611328125, -0.0017337799072265625, -0.00020051002502441406, -0.0308380126953125, -0.0035648345947265625, 0.034637451171875, 0.01476287841796875, -0.0135650634765625, -0.0141143798828125, -0.017974853515625, -0.057861328125, -0.0179290771484375, 0.006977081298828125, -0.01488494873046875, -0.0280914306640625, -0.0269622802734375, -0.00797271728515625, -0.021453857421875, -0.01146697998046875, -0.01537322998046875, 0.0070037841796875, 0.038055419921875, -0.03155517578125, 0.007289886474609375, -0.01654052734375, 0.005588531494140625, 0.00707244873046875, -0.0022029876708984375, -0.01213836669921875, 0.0273895263671875, 0.0009446144104003906, -0.02777099609375, 0.01302337646484375, 0.01087188720703125, 0.0107574462890625, 0.0035858154296875, 0.03228759765625, -0.01415252685546875, -0.006267547607421875, 0.035186767578125, -0.0256500244140625, -0.031494140625, 0.0577392578125, -0.0216522216796875, 0.021514892578125, 0.005481719970703125, -0.0165252685546875, -0.00850677490234375, -0.0014524459838867188, -0.059326171875, 0.00473785400390625, -0.04168701171875, -0.042388916015625, -0.0282745361328125, 0.060882568359375, 0.005401611328125, -0.0141448974609375, -0.092041015625, 0.0316162109375, -0.05609130859375, -0.00435638427734375, -0.0279998779296875, -0.028411865234375, 0.01531219482421875, -0.0023040771484375, 0.020477294921875, 0.0182647705078125, -0.0018205642700195312, 0.006195068359375, 0.00350189208984375, 0.042236328125, -0.01093292236328125, -0.029815673828125, -0.0182647705078125, 0.01507568359375, 0.049285888671875, -0.02001953125, 0.000782012939453125, 0.017822265625, -0.0439453125, -0.00244140625, -0.0273590087890625, -0.0276336669921875, 0.00962066650390625, 0.0174407958984375, -0.033721923828125, 0.005863189697265625, -0.125732421875, -0.00495147705078125, 0.0635986328125, 0.0157623291015625, -0.030731201171875, 0.023040771484375, 0.0141754150390625, 0.02264404296875, 0.0193634033203125, 0.0173492431640625, -0.05804443359375, 0.037872314453125, -0.0207977294921875, -0.00202178955078125, 0.0127105712890625, -0.0079193115234375, 0.014617919921875, -0.0022258758544921875, 0.019287109375, -0.0241546630859375, -0.0250091552734375, 0.0085601806640625, -0.014312744140625, -0.013702392578125, -0.0014085769653320312, -0.02520751953125, 0.005794525146484375, -0.00627899169921875, -0.002185821533203125, -0.0213623046875, -0.0005927085876464844, 0.0119476318359375, -0.0269317626953125, -0.026611328125, -0.038787841796875, -0.0303802490234375, 0.002269744873046875, 0.0243377685546875, -0.004146575927734375, -0.0202789306640625, 0.013153076171875, 0.0280609130859375, 0.031524658203125, 0.007511138916015625, -0.0003311634063720703, 0.00872039794921875, -0.0301971435546875, -0.0298919677734375, 0.0276641845703125, -0.019073486328125, -0.0163116455078125, 0.00836944580078125, -0.031646728515625, -0.01129150390625, 0.04608154296875, 0.01345062255859375, -0.0157012939453125, -0.00426483154296875, -0.038665771484375, -0.05999755859375, -0.01532745361328125, 0.00879669189453125, 0.0283050537109375, 0.0249176025390625, 0.02960205078125, 0.047821044921875, -0.007564544677734375, -0.023773193359375, 0.0034770965576171875, 0.02880859375, 0.0001558065414428711, 0.048187255859375, 0.01177215576171875, -0.02728271484375, 0.016571044921875, -0.069091796875, -0.02618408203125, 0.0287933349609375, -0.0177764892578125, 0.0498046875, 0.0445556640625, 0.0732421875, 0.0143585205078125, 0.004489898681640625, -0.0225982666015625, 0.0201568603515625, 0.022216796875, -0.00885772705078125, 0.05615234375, 0.0161590576171875, -0.02862548828125, 0.041473388671875, -0.0194549560546875, -0.043609619140625, -0.01678466796875, 0.004482269287109375, 0.062225341796875, 0.06298828125, 0.0263671875, -0.011199951171875, -0.0269317626953125, 0.01136016845703125, -0.0247344970703125, 0.003021240234375, -0.0209808349609375, 0.012359619140625, -0.00402069091796875, -0.014739990234375, 0.0164031982421875, -0.051239013671875, -0.0204620361328125, 0.003719329833984375, 0.00986480712890625, 0.01297760009765625, -0.0229644775390625, 0.000644683837890625, 0.0240631103515625, 0.046844482421875, 0.01407623291015625, -0.0279541015625, -0.030487060546875, 0.01267242431640625, -0.0237884521484375, -0.03948974609375, 0.00881195068359375, 0.00910186767578125, 0.047454833984375, 0.036773681640625, 0.015716552734375, 0.047637939453125, -0.04107666015625, 0.0281829833984375, -0.00678253173828125, -0.00507354736328125, -0.0169525146484375, -0.005687713623046875, -0.00574493408203125, 0.01446533203125, -0.0169830322265625, 0.053558349609375, 0.037872314453125, 0.042327880859375, 0.033203125, -0.053253173828125, -0.01708984375, -0.0616455078125, -0.027130126953125, -0.0160064697265625, 0.0576171875, 0.02215576171875, 0.0004978179931640625, 0.0129547119140625, 0.0584716796875, 0.08416748046875, 0.054473876953125, 0.02911376953125, 0.0221099853515625, 0.0028743743896484375, 0.0640869140625, 0.0110321044921875, 0.02618408203125, -0.00534820556640625, -0.042266845703125, 0.0345458984375, 0.01806640625, 0.0017833709716796875, 0.004901885986328125, 0.021728515625, -0.03363037109375, 0.017303466796875, -0.05133056640625, -0.05926513671875, -0.005008697509765625, 0.049407958984375, 0.006832122802734375, 0.050872802734375, 0.0313720703125, -0.0182952880859375, -0.003875732421875, 0.0094451904296875, 0.0085296630859375, 0.004993438720703125, -0.003269195556640625, -0.0019044876098632812, 0.0159149169921875, -0.01465606689453125, 0.0058746337890625, 0.01384735107421875, -0.01715087890625, -0.019134521484375, -0.036468505859375, -0.01399993896484375, 0.00269317626953125, 0.0450439453125, -0.03729248046875, 0.018157958984375, -0.00460052490234375, -0.00453948974609375, -0.033203125, -0.00446319580078125, 0.0238800048828125, -0.0296783447265625, 0.049163818359375, -0.0201263427734375, -0.0186767578125, 0.0032939910888671875, -0.035980224609375, 0.024169921875, -0.0207672119140625, 0.005218505859375, 0.07177734375, 0.01641845703125, -0.00823211669921875, 0.00902557373046875, 0.0075836181640625, -0.0166473388671875, 0.0178070068359375, 0.01617431640625, -0.0158843994140625, -0.00025343894958496094, 0.04779052734375, 0.0267791748046875, 0.040252685546875, 0.0033740997314453125, -0.0285186767578125, 0.01043701171875, 0.042510986328125, -0.01428985595703125, -0.022796630859375, -0.026336669921875, -0.07391357421875, -0.0316162109375, 0.0199737548828125, -0.047698974609375, 0.0300445556640625, 0.05511474609375, 0.00677490234375, 0.026153564453125, -0.0174407958984375, -0.0027599334716796875, -0.0127410888671875, -0.047210693359375, -0.052093505859375, -0.0010814666748046875, -0.00714111328125, 0.0006246566772460938, 0.037261962890625, -0.01397705078125, -0.038299560546875, -0.0160980224609375, -0.0443115234375, 0.0040130615234375, 0.0018415451049804688, 0.02838134765625, -0.0162811279296875, 0.02764892578125, 0.00691986083984375, -0.0032100677490234375, 0.02020263671875, -0.045196533203125, -0.040069580078125, -0.0200042724609375, -0.02130126953125, 0.017578125, -0.01739501953125, 0.004161834716796875, 0.003276824951171875, 0.023406982421875, -0.037384033203125, 0.007476806640625, 0.0206146240234375, -0.004123687744140625, 0.0058135986328125, -0.030517578125, -0.022674560546875, 0.006725311279296875, 0.0229949951171875, 0.03216552734375, 0.044677734375, -0.026214599609375, 0.0256195068359375, -0.0222930908203125, 0.0036563873291015625, 0.0279083251953125, 0.006893157958984375, -0.02691650390625, -0.052215576171875, 0.0899658203125, -0.011566162109375, -0.0166015625, -0.0206146240234375, 0.0703125, 0.0117034912109375, -0.0660400390625, 0.0234832763671875, -0.06488037109375, 0.029510498046875, -0.08502197265625, -0.001056671142578125, -0.0379638671875, 0.088134765625, -0.05487060546875, 0.0014495849609375, 0.00951385498046875, 0.0318603515625, -0.055084228515625, -0.04888916015625, -0.059478759765625, -0.01515960693359375, -0.035125732421875, 0.0199432373046875, 0.01490020751953125, -0.015960693359375, -0.03900146484375, 0.08514404296875, -0.028961181640625, -0.00786590576171875, 0.0203704833984375, -0.039031982421875, 0.0281219482421875, 0.01125335693359375, 0.014984130859375, 0.00017523765563964844, 0.001834869384765625, -0.04180908203125, -0.099853515625, -0.021636962890625, -0.0196990966796875, 0.06500244140625, 0.031158447265625, -0.04913330078125, -0.004779815673828125, 0.04937744140625, 0.0117340087890625, 0.014068603515625, 0.00885772705078125, 0.0161285400390625, -0.00630950927734375, -0.04931640625, -0.01270294189453125, -0.034454345703125, -0.0030689239501953125, -0.0226898193359375, -0.0152587890625, 0.0126800537109375, -0.052734375, 0.0189971923828125, -0.0251312255859375, -0.0144805908203125, -0.0294189453125, -0.032867431640625, -0.03521728515625, 0.016937255859375, -0.045867919921875, 0.0200042724609375, -0.04595947265625, -0.044097900390625, 0.042755126953125, 0.01509857177734375, 0.015472412109375, 0.002460479736328125, 0.07427978515625, 0.00850677490234375, -0.0161895751953125, -0.052001953125, 0.00772857666015625, 0.04156494140625, 0.022796630859375, 0.0008153915405273438, 0.006435394287109375, -0.0254058837890625, 0.0203704833984375, 0.00417327880859375, 0.016693115234375, -0.0665283203125, 0.028839111328125, -0.01177215576171875, -0.00377655029296875, 0.01129913330078125, -0.02215576171875, 0.053924560546875, 0.0136260986328125, 0.0006604194641113281, -0.005634307861328125, -0.00844573974609375, 0.00974273681640625, 0.00007426738739013672, -0.0009613037109375, -0.0024318695068359375, -0.055816650390625, 0.0098724365234375, -0.0111236572265625, -0.0187835693359375, -0.001308441162109375, 0.006435394287109375, 0.005123138427734375, 0.00909423828125, -0.005046844482421875, -0.0193023681640625, -0.045806884765625, -0.00952911376953125, 0.0006551742553710938, 0.007762908935546875, 0.0158538818359375, -0.011962890625, -0.0122222900390625, 0.0589599609375, -0.007144927978515625, -0.04248046875, 0.0009732246398925781, -0.0167694091796875, 0.034881591796875, 0.014556884765625, 0.036590576171875, 0.0020618438720703125, 0.0318603515625, 0.0266265869140625, 0.0135955810546875, 0.049102783203125, 0.047149658203125, -0.005321502685546875, -0.019012451171875, 0.00034332275390625, -0.025390625, -0.003936767578125, 0.050140380859375, -0.0357666015625, 0.011016845703125, -0.007785797119140625, 0.0728759765625, 0.077880859375, -0.016876220703125, -0.0095977783203125, 0.08111572265625, -0.034088134765625, -0.019927978515625, -0.0227813720703125, -0.0124969482421875, 0.003543853759765625, 0.012481689453125, 0.042266845703125, 0.045135498046875, 0.017730712890625, -0.0269775390625, -0.044830322265625, -0.0029621124267578125, 0.01168060302734375, -0.03167724609375, -0.07159423828125, 0.0003886222839355469, 0.025787353515625, 0.0049285888671875, -0.04840087890625, 0.002349853515625, -0.006412506103515625, -0.0184173583984375, -0.0044097900390625, 0.0272064208984375, -0.0259246826171875, -0.02252197265625, -0.03448486328125, -0.004398345947265625, 0.02081298828125, 0.00878143310546875, -0.055816650390625, -0.032379150390625, -0.00843048095703125, -0.01214599609375, 0.048980712890625, -0.010711669921875, -0.0244903564453125, -0.0601806640625, 0.07562255859375, -0.058868408203125, -0.00917816162109375, 0.0294342041015625, 0.00789642333984375, -0.017333984375, -0.004974365234375, -0.06402587890625, -0.01297760009765625, -0.06121826171875, -0.0175323486328125, -0.0233917236328125, 0.018096923828125, 0.0014696121215820312, 0.0023593902587890625, -0.0143585205078125, -0.03387451171875, -0.009185791015625, 0.020111083984375, 0.0284423828125, 0.00542449951171875, 0.01018524169921875, 0.03955078125, -0.03411865234375, 0.051727294921875, 0.002346038818359375, 0.0299530029296875, -0.0023651123046875, -0.033477783203125, 0.005908966064453125, -0.0390625, -0.022705078125, 0.003192901611328125, -0.039642333984375, 0.013458251953125, 0.035858154296875, -0.01134490966796875, 0.005950927734375, -0.01082611083984375, 0.004222869873046875, -0.0279998779296875, 0.013763427734375, -0.01104736328125, 0.00421905517578125, -0.01320648193359375, -0.0015935897827148438, 0.025909423828125, -0.006305694580078125, -0.038818359375, 0.0207672119140625, 0.00023627281188964844, 0.03173828125, -0.00580596923828125, -0.06671142578125, 0.0340576171875, 0.0177001953125, -0.034393310546875, -0.004665374755859375, 0.00748443603515625, -0.01363372802734375, 0.0255889892578125, 0.00428009033203125, -0.07977294921875, 0.0274810791015625, 0.0233306884765625, -0.00023627281188964844, -0.047271728515625, 0.00048661231994628906, -0.0140380859375, 0.02001953125, 0.0692138671875, 0.08868408203125, -0.1102294921875, 0.0272979736328125, 0.011749267578125, 0.01546478271484375, 0.060028076171875, -0.0036373138427734375, 0.00873565673828125, -0.01302337646484375, 0.0227813720703125, -0.01552581787109375, -0.0178680419921875, 0.00032210350036621094, -0.022491455078125, -0.0045928955078125, -0.01346588134765625, 0.0294189453125, -0.004543304443359375, 0.043426513671875, -0.03033447265625, -0.02886962890625, 0.00817108154296875, -0.01861572265625, 0.00955963134765625, -0.004657745361328125, -0.0038661956787109375, -0.0440673828125, 0.0010919570922851562, -0.0123748779296875, -0.0036163330078125, 0.039398193359375, 0.0077667236328125, 0.056671142578125, 0.045074462890625, 0.0013799667358398438, 0.012969970703125, 0.0010929107666015625, -0.003803253173828125, -0.001941680908203125, -0.0341796875, -0.045989990234375, -0.0181121826171875, 0.00925445556640625, -0.0007805824279785156, 0.0011396408081054688, -0.0217742919921875, -0.01453399658203125, -0.021240234375, 0.048248291015625, -0.036773681640625, -0.0168304443359375, 0.004344940185546875, -0.0010042190551757812, 0.01099395751953125, -0.005588531494140625, -0.0178680419921875, -0.0125274658203125, 0.00771331787109375, -0.0147552490234375, -0.044830322265625, 0.00893402099609375, -0.0173797607421875, -0.04644775390625, 0.06329345703125, 0.032867431640625, -0.01788330078125, 0.008636474609375, 0.035064697265625, -0.0555419921875, 0.004009246826171875, -0.03192138671875, 0.06988525390625, 0.0205078125, 0.0257110595703125, -0.0704345703125, -0.0196075439453125, -0.0027980804443359375, 0.0457763671875, 0.015289306640625, 0.027252197265625, -0.02154541015625, -0.005237579345703125, 0.027587890625, 0.0258941650390625, 0.00070953369140625, 0.0298309326171875, 0.0010671615600585938, 0.00008046627044677734, 0.043853759765625, 0.0238800048828125, 0.036773681640625, 0.0128326416015625, -0.0394287109375, 0.02276611328125, 0.0011854171752929688, 0.005889892578125, 0.0005421638488769531, 0.06536865234375, 0.004146575927734375, -0.0188751220703125, -0.003368377685546875, 0.0019893646240234375, -0.0233154296875, 0.00756072998046875, -0.0012178421020507812, -0.0276031494140625, -0.034210205078125, -0.012237548828125, 0.0238800048828125, 0.03155517578125, 0.054534912109375, 0.017608642578125, 0.01064300537109375, 0.03936767578125, 0.03082275390625, 0.04949951171875, 0.049102783203125, -0.01168060302734375, 0.0469970703125, -0.0196380615234375, 0.01052093505859375, -0.0809326171875, -0.00925445556640625, 0.0265960693359375, 0.0718994140625, -0.04486083984375, -0.02825927734375, 0.005992889404296875, 0.0103302001953125, 0.03314208984375, 0.0157318115234375, 0.0276947021484375, -0.0151824951171875, 0.0147552490234375, -0.0223236083984375, 0.01459503173828125, 0.010589599609375, 0.00360870361328125, 0.01108551025390625, 0.061279296875, -0.033233642578125, 0.0174713134765625, -0.0252685546875, -0.011138916015625, -0.0117340087890625, 0.01209259033203125, 0.04180908203125, 0.004718780517578125, 0.04425048828125, -0.005828857421875, -0.0129547119140625, -0.0020389556884765625, 0.0260009765625, -0.0032138824462890625, -0.016693115234375, -0.00960540771484375, 0.0312347412109375, 0.0128326416015625, -0.03021240234375, -0.003063201904296875, 0.0184173583984375, 0.01374053955078125, -0.0472412109375, -0.03460693359375, -0.00013744831085205078, -0.036224365234375, 0.00017023086547851562, -0.04400634765625, 0.044036865234375, 0.032379150390625, 0.01806640625, -0.003124237060546875, -0.004840850830078125, 0.06304931640625, -0.004619598388671875, -0.00823211669921875, 0.00962066650390625, -0.045318603515625, 0.0184326171875, 0.007049560546875, 0.02777099609375, 0.0294647216796875, -0.042999267578125, 0.0079498291015625, -0.0284576416015625, -0.09332275390625, 0.0184783935546875, 0.0364990234375, -0.037994384765625, 0.0205230712890625, 0.0021266937255859375, -0.035980224609375, 0.01097869873046875, 0.01555633544921875, 0.0195770263671875, 0.00974273681640625, -0.015716552734375, -0.0130157470703125, -0.045318603515625, -0.020904541015625, -0.00045418739318847656, 0.02166748046875, -0.00870513916015625, 0.07916259765625, -0.016693115234375, 0.0092315673828125, -0.0207366943359375, -0.0217742919921875, 0.0123291015625, -0.0034656524658203125, 0.01317596435546875, 0.0343017578125, -0.0168609619140625, -0.032867431640625, -0.00952911376953125, 0.0159149169921875, 0.04290771484375, -0.049346923828125, -0.00270843505859375, 0.035247802734375, -0.004924774169921875, -0.0462646484375, 0.0304107666015625, -0.019012451171875, -0.035003662109375, -0.0243682861328125, -0.0007619857788085938, 0.0197601318359375, 0.0206298828125, -0.006870269775390625, -0.0023555755615234375, 0.05865478515625, 0.0118408203125, -0.005489349365234375, 0.02703857421875, 0.011322021484375, 0.0280609130859375, -0.034820556640625, 0.0213470458984375, 0.020172119140625, -0.0087432861328125, 0.0438232421875, 0.01515960693359375, 0.00893402099609375, 0.03338623046875, -0.0086822509765625, 0.0235137939453125, 0.005992889404296875, 0.041656494140625, -0.0162506103515625, -0.0065765380859375, -0.00530242919921875, 0.00934600830078125, -0.0016231536865234375, 0.009307861328125, -0.0328369140625, -0.036285400390625, 0.017791748046875, 0.0302276611328125, 0.0017595291137695312, -0.007358551025390625, -0.093994140625, 0.0178070068359375, -0.01224517822265625, -0.018341064453125, -0.03839111328125, 0.046966552734375, -0.022003173828125, 0.0266265869140625, -0.061309814453125, -0.0709228515625, 0.01434326171875, 0.023101806640625, -0.0270843505859375, -0.0220947265625, -0.038299560546875, -0.016204833984375, -0.04766845703125, 0.0282440185546875, 0.034423828125, -0.0178985595703125, -0.00030541419982910156, 0.032684326171875, 0.0277252197265625, 0.0794677734375, 0.0108184814453125, -0.032745361328125, 0.019287109375, 0.00102996826171875, 0.0413818359375, -0.0391845703125, -0.057037353515625, 0.0106658935546875, 0.030242919921875, -0.02349853515625, -0.0174713134765625, -0.0188446044921875, -0.0628662109375, -0.1251220703125, 0.07659912109375, -0.033477783203125, -0.0496826171875, -0.0198516845703125, -0.01165771484375, -0.0123291015625, -0.00853729248046875, -0.00507354736328125, -0.0102386474609375, -0.0183868408203125, 0.03265380859375, 0.020172119140625, 0.0160675048828125, 0.01273345947265625, 0.01934814453125, -0.0277252197265625, 0.0242462158203125, 0.01062774658203125, -0.0005125999450683594, 0.032745361328125, -0.03118896484375, 0.038238525390625, 0.044647216796875, -0.03515625, -0.061248779296875, -0.0217437744140625, -0.0267486572265625, -0.02044677734375, -0.06097412109375, -0.059539794921875, -0.0439453125, 0.11053466796875, 0.062408447265625, 0.0301513671875, -0.01407623291015625, 0.05438232421875, 0.0183258056640625, -0.0171661376953125, 0.0250244140625, -0.0007495880126953125, 0.005126953125, -0.00640106201171875, -0.0027828216552734375, -0.0191192626953125, -0.01549530029296875, 0.017486572265625, -0.03277587890625, 0.0092010498046875, 0.033782958984375, -0.00612640380859375, -0.01438140869140625, 0.0250244140625, 0.035186767578125, -0.0501708984375, -0.027679443359375, -0.0142669677734375, -0.004322052001953125, -0.00421142578125, -0.0347900390625, 0.0038471221923828125, -0.03802490234375, -0.0262298583984375, 0.06268310546875, -0.02642822265625, 0.07672119140625, -0.0782470703125, -0.0303955078125, -0.005542755126953125, 0.032958984375, -0.01074981689453125, 0.0237884521484375, -0.025634765625, 0.06512451171875, -0.0032806396484375, 0.0924072265625, -0.029937744140625, 0.016204833984375, -0.02288818359375, 0.021087646484375, -0.00940704345703125, 0.01155853271484375, 0.039947509765625, -0.0134735107421875, -0.01947021484375, 0.0113525390625, -0.050750732421875, -0.0557861328125, -0.00481414794921875, -0.004077911376953125, 0.0036525726318359375, 0.00936126708984375 ]
6cfbd6d65973f070f8c2a3f96da1915ca436a349
Wordpress Stackexchange Q: WP Customizer - Prevent live preview How do I prevent a widget being updated in the customizer preview if a widget field fails a JS validation check? More generally, is there any actual documentation for the customizer JS API? (I mean real, proper api documentation rather than the few examples or sketchy descriptions) A: Visit this link and read about transporter argument: https://codex.wordpress.org/Theme_Customization_API Is that what you are looking for? Here is an example for you: <?php add_action( 'customize_register', 'my_customizer' ); function my_customizer($wp_customize){ $wp_customize->add_section( 'my_section', array( 'title' => __( 'My Custom Section', 'mytheme' ), //Visible title of section 'capability' => 'edit_theme_options', //Capability needed to tweak ) ); $wp_customize->add_setting( 'my_setting', array( 'default' => 'option1', //Default setting/value to save 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? 'capability' => 'edit_theme_options', //Optional. Special permissions for accessing this setting. 'transport' => 'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? ) ); $wp_customize->add_control( 'my_control', array( 'label' => __( 'My Custom Control', 'mytheme' ), 'section' => 'my_section', 'settings' => 'my_setting', 'type' => 'radio', 'choices' => array( 'option1' => 'Option 1', 'option2' => 'Option 2', ), ) ); }
Q: WP Customizer - Prevent live preview How do I prevent a widget being updated in the customizer preview if a widget field fails a JS validation check? More generally, is there any actual documentation for the customizer JS API? (I mean real, proper api documentation rather than the few examples or sketchy descriptions) A: Visit this link and read about transporter argument: https://codex.wordpress.org/Theme_Customization_API Is that what you are looking for? Here is an example for you: <?php add_action( 'customize_register', 'my_customizer' ); function my_customizer($wp_customize){ $wp_customize->add_section( 'my_section', array( 'title' => __( 'My Custom Section', 'mytheme' ), //Visible title of section 'capability' => 'edit_theme_options', //Capability needed to tweak ) ); $wp_customize->add_setting( 'my_setting', array( 'default' => 'option1', //Default setting/value to save 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? 'capability' => 'edit_theme_options', //Optional. Special permissions for accessing this setting. 'transport' => 'postMessage', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? ) ); $wp_customize->add_control( 'my_control', array( 'label' => __( 'My Custom Control', 'mytheme' ), 'section' => 'my_section', 'settings' => 'my_setting', 'type' => 'radio', 'choices' => array( 'option1' => 'Option 1', 'option2' => 'Option 2', ), ) ); }
wordpress
{ "language": "en", "length": 189, "provenance": "stackexchange_00019.jsonl.gz:456678", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/192326" }
[ 0.0283203125, -0.0038299560546875, -0.00010752677917480469, -0.0313720703125, 0.004673004150390625, -0.0014371871948242188, 0.001434326171875, -0.0288848876953125, -0.044921875, 0.0193939208984375, 0.035369873046875, -0.01247406005859375, -0.042877197265625, -0.0379638671875, -0.002742767333984375, -0.043182373046875, 0.052520751953125, -0.0183258056640625, 0.028961181640625, -0.00994873046875, -0.014495849609375, 0.00830841064453125, 0.05499267578125, 0.10467529296875, -0.004535675048828125, -0.0167694091796875, 0.043365478515625, -0.0091094970703125, -0.021942138671875, -0.01491546630859375, 0.01045989990234375, 0.0101165771484375, 0.036224365234375, 0.0309600830078125, -0.0640869140625, 0.00843048095703125, 0.043304443359375, -0.020172119140625, -0.0158233642578125, 0.05108642578125, 0.017364501953125, -0.0189361572265625, -0.03179931640625, -0.0187530517578125, -0.041748046875, -0.0233306884765625, 0.022674560546875, -0.004856109619140625, 0.01409912109375, 0.005767822265625, 0.01544189453125, 0.00951385498046875, 0.01560211181640625, 0.011077880859375, -0.0178680419921875, -0.01247406005859375, -0.037567138671875, -0.0112152099609375, 0.032623291015625, 0.00908660888671875, -0.00494384765625, -0.027313232421875, 0.01511383056640625, -0.0251617431640625, -0.0022182464599609375, 0.0023708343505859375, 0.00007456541061401367, 0.0260162353515625, -0.03515625, -0.00302886962890625, 0.02178955078125, -0.045806884765625, 0.01739501953125, -0.0263824462890625, -0.0112152099609375, -0.025054931640625, -0.028045654296875, -0.048309326171875, 0.04742431640625, -0.019866943359375, 0.0738525390625, -0.004222869873046875, 0.069091796875, -0.0147857666015625, 0.0238800048828125, -0.018463134765625, 0.0036773681640625, -0.01428985595703125, 0.0142974853515625, -0.00019812583923339844, -0.003955841064453125, -0.052154541015625, 0.0283050537109375, 0.0640869140625, 0.0193634033203125, -0.01526641845703125, 0.0465087890625, 0.039398193359375, 0.01090240478515625, 0.01336669921875, 0.0184478759765625, -0.04949951171875, 0.047454833984375, -0.0418701171875, 0.007663726806640625, 0.01303863525390625, 0.006114959716796875, -0.003223419189453125, 0.0291595458984375, 0.0181427001953125, -0.0163116455078125, 0.05120849609375, 0.023895263671875, -0.00406646728515625, 0.0014133453369140625, -0.0693359375, -0.040924072265625, 0.0243682861328125, 0.01178741455078125, -0.06494140625, 0.0030345916748046875, 0.00858306884765625, -0.0027561187744140625, 0.0008931159973144531, 0.03466796875, 0.0250244140625, -0.036224365234375, -0.0109710693359375, 0.00043582916259765625, 0.01465606689453125, -0.0416259765625, -0.0085296630859375, 0.1021728515625, 0.08221435546875, 0.054046630859375, -0.034820556640625, 0.05755615234375, 0.033203125, 0.01094818115234375, 0.00615692138671875, 0.006893157958984375, 0.0023040771484375, 0.00504302978515625, -0.0213775634765625, 0.006855010986328125, 0.021942138671875, 0.00696563720703125, 0.003246307373046875, 0.0221099853515625, -0.033416748046875, 0.01419830322265625, -0.0338134765625, 0.0509033203125, 0.031585693359375, -0.03997802734375, -0.0001672506332397461, 0.057769775390625, -0.0289306640625, -0.038421630859375, -0.06463623046875, 0.004917144775390625, -0.02069091796875, 0.006069183349609375, -0.0209808349609375, -0.0396728515625, 0.03228759765625, -0.0316162109375, -0.007110595703125, 0.017486572265625, 0.08135986328125, -0.00400543212890625, 0.0001329183578491211, 0.00786590576171875, 0.01220703125, -0.02197265625, -0.0147247314453125, -0.01263427734375, 0.012664794921875, 0.01316070556640625, 0.0162200927734375, -0.013641357421875, -0.0394287109375, 0.032073974609375, -0.00711822509765625, -0.038482666015625, 0.047576904296875, 0.0190582275390625, 0.07659912109375, -0.0179290771484375, 0.0269775390625, 0.0217742919921875, 0.016693115234375, -0.029388427734375, 0.0142669677734375, -0.04052734375, -0.045684814453125, 0.0124664306640625, -0.00193023681640625, -0.02606201171875, 0.055511474609375, 0.0004725456237792969, -0.01580810546875, 0.01073455810546875, -0.032928466796875, -0.055908203125, -0.0116119384765625, -0.0269622802734375, 0.034423828125, -0.013519287109375, -0.00765228271484375, 0.0078125, -0.017852783203125, -0.0232696533203125, 0.0126953125, -0.0004382133483886719, 0.015411376953125, -0.0455322265625, 0.0714111328125, 0.00933074951171875, 0.07757568359375, -0.0004324913024902344, -0.059906005859375, 0.0086212158203125, -0.0254974365234375, 0.031341552734375, -0.0015192031860351562, -0.0139312744140625, -0.0233306884765625, 0.048583984375, -0.01806640625, 0.05645751953125, 0.036865234375, 0.05157470703125, 0.017303466796875, -0.034423828125, -0.02197265625, -0.00498199462890625, -0.10601806640625, 0.0021991729736328125, 0.08758544921875, 0.0242767333984375, 0.00606536865234375, 0.0012655258178710938, 0.034576416015625, 0.01239776611328125, -0.006732940673828125, 0.0238037109375, -0.0006113052368164062, 0.027496337890625, 0.027923583984375, 0.0013608932495117188, -0.02410888671875, 0.0199737548828125, -0.06195068359375, 0.056640625, 0.0118408203125, -0.0408935546875, -0.00007289648056030273, 0.01183319091796875, -0.007129669189453125, -0.004276275634765625, -0.00899505615234375, 0.0216217041015625, -0.01131439208984375, 0.06317138671875, 0.0215301513671875, 0.044921875, 0.026397705078125, -0.03375244140625, 0.0302276611328125, 0.0034885406494140625, -0.039093017578125, 0.0189971923828125, 0.01169586181640625, 0.021820068359375, -0.004199981689453125, -0.033782958984375, -0.01323699951171875, 0.03564453125, 0.006259918212890625, -0.0118255615234375, 0.03466796875, -0.036285400390625, -0.0156402587890625, 0.0029315948486328125, -0.055908203125, -0.028228759765625, -0.0200958251953125, 0.02838134765625, 0.01355743408203125, 0.045867919921875, -0.018890380859375, -0.040435791015625, 0.03192138671875, 0.027069091796875, -0.04962158203125, 0.00316619873046875, -0.0284271240234375, 0.023895263671875, -0.01462554931640625, 0.0343017578125, 0.07257080078125, 0.024169921875, 0.0078887939453125, -0.004459381103515625, -0.0235595703125, 0.01482391357421875, 0.003101348876953125, 0.004627227783203125, -0.01125335693359375, -0.0408935546875, 0.023681640625, 0.0295257568359375, -0.005046844482421875, 0.0212860107421875, -0.016204833984375, -0.00787353515625, 0.020751953125, -0.034698486328125, -0.0026397705078125, 0.02508544921875, -0.08233642578125, -0.01471710205078125, -0.00421142578125, -0.05047607421875, -0.0031452178955078125, 0.02178955078125, -0.007755279541015625, -0.05059814453125, -0.049041748046875, -0.0279541015625, -0.08380126953125, -0.0279083251953125, 0.003314971923828125, 0.002468109130859375, -0.0036792755126953125, 0.0004229545593261719, 0.1209716796875, 0.024871826171875, -0.0670166015625, 0.00591278076171875, -0.020294189453125, -0.0181732177734375, 0.04876708984375, 0.0010128021240234375, 0.0209808349609375, 0.01355743408203125, 0.0038585662841796875, 0.010467529296875, 0.045074462890625, -0.04620361328125, -0.0173492431640625, -0.0099029541015625, 0.02301025390625, -0.023681640625, 0.075927734375, 0.0439453125, 0.0012235641479492188, 0.01236724853515625, -0.03387451171875, -0.02203369140625, -0.00017249584197998047, -0.0400390625, 0.015777587890625, 0.02093505859375, -0.0018663406372070312, 0.0194854736328125, 0.005985260009765625, 0.033660888671875, 0.004970550537109375, 0.006237030029296875, -0.015869140625, 0.0504150390625, 0.0094451904296875, 0.02606201171875, -0.01959228515625, 0.0238037109375, -0.015045166015625, 0.050689697265625, 0.022186279296875, 0.0011444091796875, -0.0251922607421875, -0.022705078125, -0.067138671875, -0.059783935546875, 0.035186767578125, -0.0214385986328125, 0.0182037353515625, -0.0204315185546875, -0.017059326171875, 0.01556396484375, 0.08587646484375, -0.024017333984375, 0.003200531005859375, -0.024658203125, -0.01318359375, -0.01116943359375, -0.01126861572265625, -0.043792724609375, 0.00019657611846923828, -0.09393310546875, 0.0002865791320800781, -0.023223876953125, -0.03460693359375, -0.0158538818359375, -0.00971221923828125, -0.037322998046875, -0.05078125, 0.01305389404296875, -0.0552978515625, 0.0199127197265625, -0.00495147705078125, 0.01319122314453125, -0.027008056640625, 0.031494140625, -0.0728759765625, -0.10235595703125, -0.0036983489990234375, -0.0439453125, 0.0484619140625, 0.01690673828125, -0.0138702392578125, -0.02642822265625, 0.03533935546875, 0.0281829833984375, 0.0261077880859375, 0.005695343017578125, -0.016204833984375, -0.003368377685546875, 0.015869140625, 0.0244140625, -0.0198211669921875, 0.01071929931640625, 0.0276947021484375, -0.0438232421875, 0.03662109375, -0.020782470703125, -0.002838134765625, 0.0253143310546875, -0.047882080078125, -0.0799560546875, -0.0251617431640625, -0.04522705078125, -0.0208282470703125, -0.028839111328125, -0.00997161865234375, 0.0020656585693359375, -0.08209228515625, 0.01206207275390625, -0.061859130859375, 0.0244140625, 0.0020008087158203125, 0.091796875, 0.0234527587890625, 0.00959014892578125, 0.03375244140625, -0.02410888671875, 0.034088134765625, 0.00797271728515625, 0.01012420654296875, -0.0251922607421875, -0.035614013671875, 0.06805419921875, -0.006999969482421875, -0.00650787353515625, -0.002719879150390625, 0.038665771484375, 0.01009368896484375, -0.017364501953125, -0.01348876953125, -0.0033435821533203125, 0.00873565673828125, 0.0125885009765625, -0.0084991455078125, 0.0005698204040527344, 0.01427459716796875, 0.028900146484375, -0.0287322998046875, 0.0099639892578125, -0.004611968994140625, -0.0108489990234375, 0.013458251953125, 0.024871826171875, 0.013275146484375, 0.0007491111755371094, 0.01291656494140625, -0.0310211181640625, -0.0160369873046875, 0.0087890625, 0.013763427734375, 0.026214599609375, -0.02886962890625, 0.005100250244140625, 0.0316162109375, -0.023223876953125, -0.003925323486328125, 0.0010957717895507812, 0.035308837890625, -0.03863525390625, -0.05609130859375, -0.0146942138671875, 0.0007648468017578125, 0.01448822021484375, 0.032562255859375, 0.01163482666015625, 0.02532958984375, 0.05291748046875, -0.01424407958984375, -0.016876220703125, 0.0318603515625, 0.0151214599609375, -0.031646728515625, 0.03680419921875, 0.01110076904296875, -0.01068115234375, 0.0059051513671875, 0.0256500244140625, 0.0167694091796875, -0.0133209228515625, -0.01549530029296875, 0.037506103515625, 0.04473876953125, 0.0153045654296875, -0.00008869171142578125, 0.00994873046875, 0.037384033203125, -0.04290771484375, 0.03125, -0.036224365234375, -0.037445068359375, 0.035369873046875, 0.0244140625, 0.005828857421875, 0.0062255859375, 0.005435943603515625, 0.03900146484375, -0.0307769775390625, 0.00054931640625, -0.038604736328125, -0.04638671875, -0.01451873779296875, 0.028564453125, 0.0246734619140625, -0.00582122802734375, 0.0086669921875, -0.004253387451171875, -0.00499725341796875, -0.01316070556640625, -0.0131988525390625, -0.0280303955078125, -0.0196990966796875, -0.0008955001831054688, -0.018707275390625, -0.0165557861328125, -0.0175933837890625, -0.08013916015625, -0.01953125, 0.0006871223449707031, -0.0009918212890625, 0.0399169921875, -0.0020847320556640625, 0.0170440673828125, -0.04144287109375, 0.018218994140625, -0.049957275390625, 0.01666259765625, 0.0149383544921875, -0.01491546630859375, -0.017486572265625, 0.004924774169921875, -0.058837890625, -0.0296630859375, -0.08526611328125, -0.07122802734375, -0.050933837890625, 0.00667572021484375, -0.00429534912109375, 0.0027675628662109375, -0.0003590583801269531, 0.00833892822265625, -0.00583648681640625, 0.0300445556640625, 0.01971435546875, 0.05706787109375, -0.003597259521484375, 0.03997802734375, -0.0084686279296875, 0.05499267578125, -0.0031604766845703125, -0.0256195068359375, -0.0345458984375, -0.01172637939453125, -0.0008921623229980469, -0.01128387451171875, -0.0213470458984375, -0.0236358642578125, -0.005100250244140625, 0.0226898193359375, 0.071533203125, -0.00643157958984375, 0.019775390625, -0.019012451171875, 0.006908416748046875, -0.0165557861328125, 0.008056640625, -0.05133056640625, -0.005786895751953125, 0.025115966796875, -0.00658416748046875, 0.01044464111328125, -0.016021728515625, 0.023712158203125, 0.00945281982421875, -0.0252685546875, 0.024688720703125, -0.031524658203125, -0.0833740234375, 0.05194091796875, 0.10491943359375, 0.040435791015625, 0.05859375, -0.0234375, 0.0265655517578125, 0.027618408203125, -0.0041961669921875, -0.032318115234375, 0.01453399658203125, 0.030517578125, 0.0110015869140625, 0.0112152099609375, 0.0305938720703125, -0.0000426173210144043, 0.003204345703125, 0.042144775390625, 0.04827880859375, -0.057220458984375, 0.009124755859375, 0.0171051025390625, 0.00885772705078125, 0.0283355712890625, -0.004467010498046875, -0.01019287109375, -0.0400390625, 0.0182037353515625, -0.0193328857421875, -0.0181732177734375, 0.00382232666015625, -0.01739501953125, 0.00946044921875, 0.0044403076171875, 0.0286865234375, -0.0003581047058105469, 0.0188751220703125, -0.053680419921875, -0.01073455810546875, 0.0010976791381835938, -0.013427734375, 0.00864410400390625, -0.0006337165832519531, -0.043060302734375, -0.0911865234375, -0.026885986328125, -0.005336761474609375, -0.04473876953125, -0.02606201171875, -0.0222930908203125, 0.034637451171875, 0.0478515625, -0.024200439453125, -0.0034236907958984375, 0.020416259765625, 0.0084991455078125, -0.00295257568359375, -0.0277252197265625, -0.006229400634765625, 0.0496826171875, -0.037017822265625, 0.027435302734375, 0.00989532470703125, -0.0173492431640625, -0.0183563232421875, 0.015106201171875, 0.08465576171875, -0.0226593017578125, -0.03656005859375, 0.050933837890625, -0.0034503936767578125, -0.03759765625, -0.0265350341796875, 0.0313720703125, -0.07489013671875, -0.052398681640625, -0.01210784912109375, -0.0531005859375, -0.0046844482421875, -0.0294342041015625, -0.045928955078125, 0.11505126953125, 0.0211639404296875, 0.0220184326171875, 0.0214996337890625, 0.048675537109375, -0.04803466796875, 0.0188446044921875, -0.01126861572265625, 0.03314208984375, -0.0014848709106445312, 0.00908660888671875, -0.01160430908203125, 0.01383209228515625, -0.0023517608642578125, 0.0155792236328125, 0.0333251953125, 0.0192413330078125, 0.028411865234375, 0.0023956298828125, 0.0029201507568359375, -0.001949310302734375, -0.053802490234375, 0.0233612060546875, 0.005458831787109375, 0.007354736328125, 0.01094818115234375, -0.01116180419921875, 0.014984130859375, -0.0181427001953125, -0.0174407958984375, 0.0386962890625, -0.0008082389831542969, -0.0028743743896484375, 0.004978179931640625, 0.0670166015625, -0.03375244140625, -0.007205963134765625, 0.0252685546875, -0.0091400146484375, -0.035614013671875, 0.0179290771484375, 0.00795745849609375, -0.03839111328125, 0.00927734375, -0.036895751953125, 0.0347900390625, 0.0121002197265625, 0.0189666748046875, 0.00391387939453125, 0.0223846435546875, -0.0491943359375, 0.01062774658203125, 0.00989532470703125, 0.050048828125, -0.0418701171875, 0.0144500732421875, 0.039703369140625, 0.054595947265625, -0.0036640167236328125, -0.033660888671875, 0.0299530029296875, 0.034454345703125, -0.005092620849609375, -0.024200439453125, 0.0298004150390625, 0.01558685302734375, -0.0245361328125, -0.00344085693359375, -0.0079193115234375, -0.036895751953125, 0.0184173583984375, -0.041473388671875, 0.01351165771484375, 0.040618896484375, 0.042877197265625, -0.002895355224609375, 0.021514892578125, -0.08331298828125, -0.0203704833984375, -0.023773193359375, -0.0269622802734375, 0.01232147216796875, 0.05157470703125, 0.0261383056640625, 0.051055908203125, 0.002658843994140625, -0.02337646484375, -0.019134521484375, 0.01357269287109375, 0.044281005859375, -0.0013265609741210938, -0.0167999267578125, 0.0044403076171875, 0.052215576171875, 0.01617431640625, -0.0178070068359375, -0.00429534912109375, 0.0019702911376953125, 0.03802490234375, 0.018310546875, -0.00917816162109375, 0.08050537109375, -0.0006327629089355469, -0.00016999244689941406, -0.0452880859375, 0.0028324127197265625, 0.0085906982421875, -0.005809783935546875, 0.016937255859375, -0.01247406005859375, 0.03900146484375, -0.0266876220703125, 0.022003173828125, -0.0108489990234375, 0.0015716552734375, 0.06573486328125, -0.0012102127075195312, 0.06280517578125, 0.007038116455078125, -0.044677734375, 0.005764007568359375, -0.01522064208984375, -0.0679931640625, 0.020751953125, 0.0364990234375, -0.04266357421875, 0.0308380126953125, -0.059356689453125, -0.018768310546875, 0.0076751708984375, 0.01282501220703125, -0.03363037109375, 0.00975799560546875, 0.01910400390625, -0.0303192138671875, -0.0576171875, -0.043304443359375, -0.0186004638671875, 0.053314208984375, -0.0061798095703125, 0.0116119384765625, 0.00861358642578125, 0.0302734375, -0.0251617431640625, 0.0296478271484375, -0.02294921875, -0.0274200439453125, 0.04107666015625, 0.0211181640625, -0.002925872802734375, -0.019775390625, 0.005939483642578125, 0.0136871337890625, 0.0161590576171875, -0.03448486328125, 0.01245880126953125, -0.031097412109375, 0.0141448974609375, -0.0057220458984375, 0.0028820037841796875, -0.050628662109375, -0.05316162109375, -0.037384033203125, -0.0025920867919921875, -0.0124664306640625, -0.0155029296875, 0.0128173828125, -0.006412506103515625, 0.01119232177734375, 0.01922607421875, 0.016357421875, 0.037933349609375, 0.0164947509765625, 0.04168701171875, -0.052642822265625, -0.006927490234375, 0.0191192626953125, -0.007465362548828125, -0.024322509765625, 0.03009033203125, -0.0005650520324707031, -0.00038886070251464844, -0.0094146728515625, 0.02410888671875, 0.0216522216796875, 0.0300140380859375, -0.03857421875, 0.0015621185302734375, 0.0352783203125, 0.01525115966796875, 0.0101165771484375, -0.037811279296875, -0.034515380859375, -0.06719970703125, 0.0194854736328125, 0.043609619140625, -0.0235137939453125, 0.0134429931640625, -0.06805419921875, 0.023162841796875, 0.026580810546875, -0.0187225341796875, -0.032989501953125, 0.0014524459838867188, -0.05731201171875, 0.079833984375, -0.035308837890625, 0.0217132568359375, -0.0310516357421875, -0.0009756088256835938, -0.00579071044921875, -0.017181396484375, -0.0489501953125, 0.041717529296875, -0.0109405517578125, -0.0177154541015625, 0.00862884521484375, 0.00235748291015625, -0.00804901123046875, -0.00942230224609375, -0.0013113021850585938, 0.03436279296875, -0.0004680156707763672, -0.005157470703125, 0.041107177734375, -0.0052642822265625, -0.0223388671875, -0.04736328125, -0.01788330078125, 0.0178985595703125, -0.0003414154052734375, -0.008514404296875, -0.047271728515625, -0.03271484375, -0.061431884765625, -0.049896240234375, 0.0506591796875, 0.01055145263671875, -0.0260162353515625, -0.005001068115234375, -0.0078277587890625, -0.0263214111328125, 0.032440185546875, 0.00383758544921875, -0.0264892578125, -0.007190704345703125, 0.0095672607421875, 0.005008697509765625, 0.0516357421875, 0.0005593299865722656, -0.01085662841796875, -0.054901123046875, -0.01302337646484375, -0.02581787109375, 0.01277923583984375, -0.01438140869140625, 0.004009246826171875, -0.003143310546875, 0.0166168212890625, -0.0281524658203125, -0.08465576171875, -0.004985809326171875, 0.0172576904296875, 0.0118560791015625, 0.0117645263671875, -0.035919189453125, -0.0067291259765625, 0.03375244140625, 0.039764404296875, 0.0131072998046875, -0.0184478759765625, 0.022979736328125, -0.0026454925537109375, -0.036376953125, -0.005443572998046875, 0.028533935546875, -0.05072021484375, -0.0272979736328125, 0.0207061767578125, 0.0086822509765625, -0.01934814453125, -0.0025768280029296875, -0.0164947509765625, -0.0182952880859375, 0.0203704833984375, 0.0108642578125, -0.04644775390625, -0.020294189453125, 0.0192718505859375, -0.0237274169921875, -0.00981903076171875, 0.01045989990234375, 0.0209808349609375, -0.00902557373046875, 0.024139404296875, -0.00040340423583984375, -0.01503753662109375, -0.0225677490234375, 0.02056884765625, -0.0081634521484375, 0.058441162109375, -0.0295257568359375, -0.0186309814453125, -0.0220794677734375, 0.0052947998046875, 0.00485992431640625, -0.0179443359375, -0.016357421875, 0.0421142578125, 0.01190185546875, 0.0276336669921875, -0.026763916015625, 0.01335906982421875, -0.0259246826171875, 0.0220184326171875, 0.0100250244140625, 0.014190673828125, 0.058380126953125, -0.00981903076171875, 0.006824493408203125, -0.0074462890625, -0.00485992431640625, 0.0002269744873046875, -0.032440185546875, -0.01076507568359375, -0.0179595947265625, 0.006893157958984375 ]
a45866c03b899c516908184c80a477ba640164b0
Wordpress Stackexchange Q: wp_enqueue_script adds only the first script function banana_scripts() { wp_enqueue_script('grid', get_stylesheet_directory_uri() . '/js/jquery.min.js', null, null); wp_enqueue_script('grid', get_stylesheet_directory_uri() . '/js/main.js', null, null); } add_action('wp_enqueue_scripts', 'banana_scripts'); I have the above hook in my functions.php. The first js file gets included, the second not. Is it incorrect to call this function twice or more? A: You gave each each script the same handle/id of 'grid' Try something like this. function banana_scripts() { wp_enqueue_script('grid', get_stylesheet_directory_uri() . '/js/jquery.min.js', null, null); wp_enqueue_script('grid2', get_stylesheet_directory_uri() . '/js/main.js', null, null); } add_action('wp_enqueue_scripts', 'banana_scripts');
Q: wp_enqueue_script adds only the first script function banana_scripts() { wp_enqueue_script('grid', get_stylesheet_directory_uri() . '/js/jquery.min.js', null, null); wp_enqueue_script('grid', get_stylesheet_directory_uri() . '/js/main.js', null, null); } add_action('wp_enqueue_scripts', 'banana_scripts'); I have the above hook in my functions.php. The first js file gets included, the second not. Is it incorrect to call this function twice or more? A: You gave each each script the same handle/id of 'grid' Try something like this. function banana_scripts() { wp_enqueue_script('grid', get_stylesheet_directory_uri() . '/js/jquery.min.js', null, null); wp_enqueue_script('grid2', get_stylesheet_directory_uri() . '/js/main.js', null, null); } add_action('wp_enqueue_scripts', 'banana_scripts');
wordpress
{ "language": "en", "length": 85, "provenance": "stackexchange_00019.jsonl.gz:456697", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/192387" }
[ 0.0021114349365234375, -0.0135345458984375, -0.06756591796875, -0.0458984375, 0.024871826171875, -0.045257568359375, 0.02392578125, 0.0467529296875, -0.039215087890625, 0.0199737548828125, -0.033447265625, 0.0254058837890625, -0.0273895263671875, -0.004955291748046875, 0.014068603515625, -0.05230712890625, 0.05517578125, -0.07452392578125, -0.0263824462890625, -0.033721923828125, 0.038238525390625, -0.0022907257080078125, 0.00014090538024902344, 0.150390625, 0.00998687744140625, -0.051910400390625, 0.04339599609375, 0.01158905029296875, -0.019012451171875, -0.025970458984375, 0.0059051513671875, 0.02630615234375, 0.01555633544921875, 0.01314544677734375, -0.004177093505859375, 0.0176849365234375, 0.0243988037109375, 0.01201629638671875, 0.0104522705078125, 0.04876708984375, 0.0293426513671875, -0.002490997314453125, -0.01032257080078125, 0.04833984375, -0.033477783203125, -0.06256103515625, 0.043304443359375, -0.0133514404296875, -0.0027446746826171875, 0.047882080078125, 0.0171661376953125, 0.037139892578125, 0.00569915771484375, 0.038787841796875, 0.0079803466796875, 0.00494384765625, -0.00907135009765625, -0.027984619140625, 0.029052734375, 0.06500244140625, -0.00020360946655273438, -0.0277252197265625, 0.0040283203125, -0.07135009765625, -0.06231689453125, -0.006961822509765625, -0.07452392578125, -0.01763916015625, -0.0210113525390625, -0.052490234375, 0.0277862548828125, -0.0294189453125, -0.03021240234375, -0.04425048828125, -0.0145263671875, 0.047149658203125, 0.00388336181640625, -0.00449371337890625, -0.01024627685546875, 0.01218414306640625, -0.031829833984375, -0.041656494140625, -0.0176239013671875, -0.02313232421875, 0.01470184326171875, 0.0191650390625, -0.0282440185546875, 0.0083770751953125, -0.040496826171875, 0.00485992431640625, -0.032745361328125, -0.023773193359375, -0.01508331298828125, -0.006290435791015625, -0.0094451904296875, 0.01409149169921875, 0.048370361328125, 0.05511474609375, 0.0211181640625, 0.0372314453125, -0.0157623291015625, -0.032958984375, 0.012054443359375, -0.047393798828125, -0.0028476715087890625, 0.049224853515625, 0.0008254051208496094, -0.0192413330078125, 0.0175628662109375, 0.0060882568359375, 0.01236724853515625, 0.0239715576171875, 0.0284271240234375, 0.03607177734375, -0.0390625, -0.04168701171875, -0.032745361328125, -0.00547027587890625, -0.0261383056640625, 0.006572723388671875, -0.0024166107177734375, 0.0254669189453125, -0.00386810302734375, -0.01605224609375, -0.01001739501953125, -0.0276641845703125, -0.01177978515625, -0.0118865966796875, 0.00963592529296875, 0.055084228515625, -0.031219482421875, -0.01465606689453125, 0.047271728515625, -0.0003223419189453125, -0.0141754150390625, -0.052734375, 0.03192138671875, -0.0162811279296875, -0.0271148681640625, -0.0126953125, 0.035247802734375, -0.00046944618225097656, -0.0003383159637451172, -0.00969696044921875, -0.04833984375, -0.00904083251953125, 0.0157470703125, 0.028045654296875, -0.01001739501953125, -0.022552490234375, 0.002132415771484375, 0.00014781951904296875, 0.039947509765625, 0.000713348388671875, -0.017303466796875, 0.0081634521484375, -0.00151824951171875, 0.00298309326171875, -0.02117919921875, -0.0005259513854980469, -0.0467529296875, -0.007808685302734375, 0.0095367431640625, -0.041412353515625, -0.0196380615234375, -0.011474609375, 0.00310516357421875, 0.00518035888671875, 0.01446533203125, 0.048614501953125, -0.03399658203125, 0.00109100341796875, 0.04022216796875, -0.010986328125, -0.0269927978515625, -0.0015897750854492188, 0.00527191162109375, 0.01375579833984375, 0.02099609375, 0.011749267578125, -0.02471923828125, -0.045867919921875, 0.0533447265625, -0.029083251953125, -0.056976318359375, 0.0101165771484375, 0.007083892822265625, 0.06805419921875, 0.01983642578125, 0.0147705078125, 0.05145263671875, -0.0194244384765625, -0.056671142578125, 0.02642822265625, -0.0034084320068359375, -0.01233673095703125, 0.0105438232421875, 0.0025634765625, 0.0035533905029296875, -0.0203857421875, -0.0036468505859375, -0.0089874267578125, 0.034820556640625, -0.00445556640625, -0.06011962890625, 0.0264434814453125, -0.04791259765625, 0.054290771484375, -0.0435791015625, 0.00415802001953125, 0.02099609375, 0.00957489013671875, -0.035888671875, -0.0089874267578125, -0.01090240478515625, 0.00373077392578125, -0.0232086181640625, 0.057952880859375, 0.0018911361694335938, 0.0478515625, 0.02020263671875, -0.02301025390625, 0.0296630859375, -0.0184783935546875, 0.022430419921875, 0.02557373046875, -0.035888671875, -0.005878448486328125, -0.004673004150390625, 0.02581787109375, -0.048553466796875, 0.04388427734375, 0.0247344970703125, 0.06024169921875, -0.038726806640625, -0.00841522216796875, 0.007305145263671875, 0.033233642578125, 0.0037479400634765625, 0.00025463104248046875, 0.030181884765625, 0.036102294921875, 0.005023956298828125, 0.04156494140625, 0.006317138671875, -0.056854248046875, 0.01180267333984375, 0.0145111083984375, -0.0252532958984375, 0.01309967041015625, -0.006412506103515625, 0.03668212890625, 0.02679443359375, -0.01050567626953125, -0.0025768280029296875, 0.05975341796875, -0.039642333984375, 0.0073699951171875, -0.006725311279296875, -0.01666259765625, 0.016082763671875, -0.0231781005859375, 0.009765625, -0.00995635986328125, 0.0433349609375, -0.003955841064453125, 0.0289459228515625, 0.019561767578125, -0.0204315185546875, 0.0055389404296875, 0.0164031982421875, -0.029266357421875, -0.0081634521484375, 0.045654296875, 0.0099639892578125, -0.039337158203125, -0.035003662109375, -0.0031585693359375, -0.004596710205078125, 0.0177764892578125, 0.00029015541076660156, 0.047607421875, -0.0633544921875, -0.03778076171875, 0.00009441375732421875, -0.0595703125, -0.04705810546875, -0.01140594482421875, -0.00350189208984375, 0.0207977294921875, 0.04632568359375, 0.01047515869140625, 0.029693603515625, -0.0312042236328125, 0.0108795166015625, -0.007427215576171875, 0.06658935546875, 0.047515869140625, -0.02032470703125, 0.00937652587890625, 0.02069091796875, 0.01187896728515625, -0.007740020751953125, -0.0163726806640625, 0.00102996826171875, 0.01360321044921875, 0.01202392578125, -0.0299072265625, -0.011932373046875, 0.0032749176025390625, -0.04925537109375, 0.03363037109375, 0.034210205078125, 0.028594970703125, 0.01568603515625, -0.038543701171875, -0.006694793701171875, 0.0168914794921875, -0.1075439453125, -0.114013671875, 0.0012798309326171875, -0.01509857177734375, 0.0268402099609375, -0.0178680419921875, -0.0025806427001953125, -0.02069091796875, -0.004344940185546875, 0.01161956787109375, -0.033477783203125, -0.013580322265625, -0.0380859375, -0.04425048828125, -0.044281005859375, 0.045440673828125, -0.0008058547973632812, 0.004497528076171875, 0.0153656005859375, 0.0233001708984375, 0.0102691650390625, -0.0298919677734375, 0.0408935546875, 0.018402099609375, -0.01904296875, 0.0186767578125, 0.06365966796875, -0.07080078125, -0.00994873046875, -0.012054443359375, -0.034912109375, 0.04052734375, -0.0126495361328125, 0.00537109375, -0.00400543212890625, -0.01508331298828125, 0.00937652587890625, 0.047943115234375, 0.003986358642578125, -0.00855255126953125, 0.042633056640625, -0.044891357421875, -0.0021152496337890625, 0.00804901123046875, -0.0216522216796875, -0.0212554931640625, 0.01033782958984375, -0.021942138671875, -0.01499176025390625, 0.01294708251953125, 0.08935546875, -0.0030422210693359375, -0.009979248046875, 0.04168701171875, 0.039794921875, 0.0111083984375, 0.06591796875, -0.05999755859375, 0.032440185546875, -0.0240478515625, -0.00815582275390625, -0.01123046875, -0.00033020973205566406, 0.01061248779296875, -0.039215087890625, -0.017791748046875, 0.036529541015625, 0.0009889602661132812, -0.0186920166015625, 0.0206451416015625, 0.004802703857421875, 0.0146942138671875, -0.0226593017578125, -0.004184722900390625, -0.048095703125, -0.01177215576171875, -0.01032257080078125, 0.0341796875, -0.07928466796875, -0.0792236328125, -0.0114593505859375, -0.006488800048828125, -0.033172607421875, -0.02032470703125, -0.033966064453125, -0.018218994140625, 0.0022068023681640625, -0.032745361328125, -0.006610870361328125, -0.0304107666015625, 0.050811767578125, -0.03961181640625, 0.0182037353515625, 0.04388427734375, 0.0236053466796875, 0.004367828369140625, -0.028350830078125, -0.01861572265625, -0.0733642578125, -0.0220489501953125, 0.006076812744140625, 0.063720703125, -0.0101165771484375, -0.00931549072265625, -0.0202178955078125, 0.040374755859375, -0.014190673828125, -0.00634002685546875, 0.01122283935546875, 0.0308837890625, -0.01556396484375, -0.0207977294921875, -0.00024437904357910156, -0.04376220703125, -0.0032100677490234375, -0.0002734661102294922, -0.0299835205078125, -0.01087188720703125, -0.0213623046875, -0.019073486328125, 0.03582763671875, -0.030181884765625, -0.044708251953125, -0.0134735107421875, 0.0159759521484375, -0.003971099853515625, 0.0013952255249023438, -0.01477813720703125, -0.0131683349609375, -0.021026611328125, 0.002582550048828125, -0.016998291015625, -0.0091400146484375, 0.0023860931396484375, 0.05517578125, 0.0192413330078125, -0.00011372566223144531, -0.0050811767578125, 0.010223388671875, -0.00006628036499023438, 0.03082275390625, 0.0330810546875, -0.0167388916015625, 0.0081787109375, 0.00623321533203125, -0.0164031982421875, 0.022796630859375, -0.0190887451171875, 0.08001708984375, 0.002048492431640625, -0.004070281982421875, 0.0154571533203125, 0.0094451904296875, -0.03857421875, -0.0183563232421875, -0.02508544921875, 0.0249481201171875, -0.020416259765625, -0.004474639892578125, 0.015167236328125, -0.00434112548828125, -0.013519287109375, -0.028106689453125, -0.00991058349609375, -0.015777587890625, 0.0810546875, 0.033599853515625, -0.00408935546875, 0.044342041015625, 0.06707763671875, 0.01287078857421875, 0.02069091796875, 0.045806884765625, -0.0100555419921875, 0.038909912109375, 0.04376220703125, 0.01552581787109375, -0.016204833984375, 0.002826690673828125, 0.01560211181640625, 0.050933837890625, -0.01580810546875, -0.0255584716796875, 0.0274200439453125, 0.034820556640625, -0.062225341796875, 0.03582763671875, 0.03668212890625, 0.019775390625, 0.0018739700317382812, -0.00733184814453125, 0.03656005859375, -0.0163726806640625, -0.0220184326171875, 0.0260772705078125, 0.0185546875, -0.0313720703125, -0.00511932373046875, -0.0146026611328125, 0.038299560546875, -0.0248870849609375, -0.00705718994140625, -0.007350921630859375, -0.012115478515625, 0.045135498046875, 0.0109710693359375, -0.0229644775390625, -0.002803802490234375, 0.0560302734375, 0.0187835693359375, -0.0037746429443359375, 0.04290771484375, 0.029998779296875, 0.0160064697265625, 0.0215606689453125, -0.0254364013671875, -0.002346038818359375, -0.031646728515625, -0.047607421875, 0.018402099609375, 0.05548095703125, 0.0194854736328125, -0.025421142578125, -0.027618408203125, 0.0069427490234375, 0.06256103515625, 0.0062408447265625, -0.01557159423828125, 0.026641845703125, 0.0382080078125, 0.02008056640625, -0.0091705322265625, 0.0029296875, 0.0078582763671875, 0.0034332275390625, -0.002124786376953125, 0.0011491775512695312, -0.041717529296875, -0.03631591796875, -0.01169586181640625, -0.0176544189453125, 0.0159149169921875, -0.00830078125, 0.0171661376953125, -0.0222625732421875, 0.003963470458984375, -0.0239105224609375, 0.003314971923828125, 0.047119140625, 0.01194000244140625, -0.00476837158203125, -0.022918701171875, -0.056854248046875, -0.00366973876953125, -0.00217437744140625, -0.070556640625, 0.0386962890625, -0.0087127685546875, -0.0285797119140625, 0.02099609375, -0.0149078369140625, 0.0259552001953125, 0.033843994140625, 0.004730224609375, -0.040740966796875, 0.0270843505859375, -0.035888671875, 0.1004638671875, 0.03900146484375, 0.033233642578125, 0.0250244140625, 0.07257080078125, 0.0147705078125, -0.02191162109375, -0.0187530517578125, -0.03619384765625, 0.048248291015625, 0.007373809814453125, 0.01561737060546875, -0.00946807861328125, 0.033111572265625, 0.018096923828125, 0.0197601318359375, 0.041351318359375, 0.0135498046875, -0.003101348876953125, -0.05340576171875, 0.0758056640625, 0.0008974075317382812, 0.0740966796875, 0.00406646728515625, 0.031219482421875, -0.002063751220703125, -0.017852783203125, 0.040069580078125, -0.0139312744140625, 0.048614501953125, -0.019927978515625, -0.023162841796875, 0.0369873046875, 0.00910186767578125, -0.01666259765625, 0.019134521484375, -0.0070343017578125, 0.0171966552734375, 0.01287841796875, -0.0018930435180664062, -0.00579833984375, 0.0179901123046875, 0.0112152099609375, -0.0215301513671875, 0.02142333984375, -0.000507354736328125, 0.0059051513671875, -0.0024566650390625, 0.015411376953125, 0.002208709716796875, -0.027587890625, -0.006244659423828125, -0.03729248046875, -0.0194549560546875, 0.010498046875, -0.0355224609375, 0.01873779296875, -0.0055389404296875, 0.0592041015625, 0.045074462890625, -0.005214691162109375, 0.031524658203125, 0.0007686614990234375, -0.0170440673828125, -0.0323486328125, -0.056243896484375, -0.00577545166015625, -0.0262908935546875, 0.05322265625, 0.032958984375, 0.00994873046875, -0.0234527587890625, 0.0013837814331054688, 0.021209716796875, -0.01222991943359375, -0.05401611328125, 0.0139007568359375, -0.0264739990234375, -0.007843017578125, -0.0360107421875, 0.006809234619140625, 0.0196990966796875, 0.01395416259765625, -0.01267242431640625, -0.0194244384765625, 0.0148468017578125, -0.046875, 0.0167999267578125, -0.006717681884765625, 0.046539306640625, 0.010955810546875, -0.068359375, 0.01023101806640625, -0.0263824462890625, -0.01210784912109375, -0.008270263671875, -0.004062652587890625, 0.051239013671875, -0.0211181640625, -0.0254669189453125, 0.00966644287109375, -0.01273345947265625, 0.0071868896484375, 0.00748443603515625, 0.0218048095703125, -0.09832763671875, -0.082275390625, 0.02508544921875, -0.08953857421875, -0.0126800537109375, -0.0035533905029296875, -0.0168914794921875, 0.0692138671875, -0.02032470703125, 0.0073699951171875, 0.038177490234375, 0.0167083740234375, -0.0296783447265625, 0.0052337646484375, 0.007770538330078125, 0.03094482421875, -0.01507568359375, 0.0018396377563476562, -0.006072998046875, -0.005550384521484375, 0.00600433349609375, 0.0406494140625, 0.01023101806640625, -0.006572723388671875, 0.0389404296875, -0.00655364990234375, 0.0118865966796875, 0.0599365234375, -0.008270263671875, -0.045867919921875, 0.00713348388671875, -0.018829345703125, -0.0025615692138671875, -0.004558563232421875, 0.0196685791015625, -0.037445068359375, -0.0295562744140625, 0.0196075439453125, 0.00826263427734375, 0.0207366943359375, 0.006072998046875, 0.023468017578125, -0.0235748291015625, 0.0196380615234375, 0.0167388916015625, -0.00859832763671875, -0.01029205322265625, 0.04742431640625, -0.022491455078125, 0.051300048828125, -0.05596923828125, 0.004482269287109375, -0.00605010986328125, -0.0034332275390625, -0.01081085205078125, 0.027862548828125, 0.0161285400390625, 0.0184173583984375, 0.005390167236328125, -0.00878143310546875, 0.0145111083984375, 0.0021190643310546875, 0.038787841796875, 0.01148223876953125, 0.05340576171875, -0.0196990966796875, -0.006824493408203125, -0.01357269287109375, 0.0307769775390625, -0.0251922607421875, -0.018951416015625, 0.004436492919921875, 0.02618408203125, 0.01788330078125, 0.00083160400390625, 0.037628173828125, -0.023956298828125, 0.0184173583984375, -0.0213470458984375, 0.01023101806640625, 0.0162811279296875, -0.01641845703125, -0.01474761962890625, -0.013397216796875, 0.0122528076171875, 0.042327880859375, -0.065673828125, 0.047027587890625, -0.00629425048828125, 0.0626220703125, 0.01033782958984375, 0.0787353515625, -0.018829345703125, -0.03851318359375, -0.0305633544921875, 0.03399658203125, 0.003448486328125, 0.048309326171875, -0.0528564453125, -0.00557708740234375, 0.0004055500030517578, 0.053863525390625, 0.024749755859375, 0.011688232421875, 0.03704833984375, -0.0007829666137695312, -0.03948974609375, 0.01169586181640625, 0.0406494140625, -0.03045654296875, 0.04205322265625, 0.00586700439453125, 0.022216796875, -0.00540924072265625, -0.0225982666015625, -0.0260009765625, 0.0362548828125, 0.00878143310546875, -0.029876708984375, 0.0246734619140625, 0.006103515625, -0.03253173828125, 0.033721923828125, 0.02545166015625, 0.0738525390625, 0.00511932373046875, -0.06451416015625, -0.0101776123046875, -0.0010528564453125, -0.006389617919921875, -0.006282806396484375, 0.0182342529296875, -0.021026611328125, 0.0394287109375, 0.05908203125, -0.039337158203125, 0.00589752197265625, 0.03948974609375, 0.00691986083984375, 0.032012939453125, 0.042327880859375, 0.0305938720703125, -0.0382080078125, -0.03564453125, -0.0024585723876953125, 0.033721923828125, 0.027069091796875, 0.036346435546875, -0.003284454345703125, 0.0213623046875, 0.049072265625, -0.0428466796875, 0.07049560546875, 0.0267791748046875, -0.0226287841796875, 0.006793975830078125, 0.0245819091796875, -0.0284271240234375, -0.0416259765625, 0.006404876708984375, 0.02081298828125, -0.0176239013671875, 0.0065765380859375, 0.00927734375, 0.0147552490234375, -0.02239990234375, 0.03814697265625, -0.03411865234375, -0.0430908203125, -0.07232666015625, -0.007415771484375, 0.01398468017578125, -0.0017414093017578125, -0.03204345703125, -0.009735107421875, 0.01416778564453125, -0.001789093017578125, 0.007965087890625, 0.01294708251953125, -0.011138916015625, 0.01415252685546875, 0.0187225341796875, 0.03070068359375, 0.04693603515625, -0.0005407333374023438, 0.0267181396484375, 0.02740478515625, 0.008758544921875, 0.01337432861328125, -0.032073974609375, 0.0162811279296875, 0.0611572265625, 0.05078125, -0.002300262451171875, 0.01922607421875, 0.029327392578125, -0.030059814453125, 0.00787353515625, -0.0186309814453125, -0.0052032470703125, -0.0158233642578125, -0.0255279541015625, 0.004543304443359375, 0.0096435546875, -0.04010009765625, 0.0076141357421875, 0.00786590576171875, 0.0292510986328125, 0.0115966796875, -0.08905029296875, 0.10528564453125, -0.0635986328125, -0.01064300537109375, -0.0110321044921875, 0.038848876953125, -0.01910400390625, -0.01328277587890625, -0.07958984375, -0.0281829833984375, -0.04901123046875, 0.0325927734375, -0.0372314453125, 0.006656646728515625, 0.05072021484375, -0.009765625, 0.0110626220703125, -0.0106201171875, 0.0003180503845214844, 0.0562744140625, -0.037078857421875, -0.0088348388671875, 0.029510498046875, 0.00649261474609375, -0.0057830810546875, -0.049041748046875, -0.024169921875, -0.01195526123046875, 0.02496337890625, 0.01282501220703125, 0.004791259765625, 0.01221466064453125, -0.0167388916015625, -0.03521728515625, 0.051116943359375, 0.00795745849609375, -0.0167694091796875, -0.06707763671875, 0.0073699951171875, 0.01092529296875, 0.004238128662109375, -0.0241241455078125, -0.035430908203125, -0.03289794921875, 0.01346588134765625, -0.0028629302978515625, 0.01187896728515625, 0.0430908203125, -0.018524169921875, 0.01009368896484375, 0.00665283203125, 0.00452423095703125, -0.0227813720703125, -0.02398681640625, -0.003154754638671875, 0.039642333984375, 0.061370849609375, 0.01436614990234375, 0.01702880859375, 0.0218505859375, -0.07440185546875, -0.01084136962890625, 0.00286102294921875, -0.01143646240234375, 0.020416259765625, 0.06695556640625, 0.032989501953125, 0.0208892822265625, -0.04461669921875, -0.038970947265625, -0.03375244140625, -0.02142333984375, 0.009613037109375, 0.021575927734375, -0.043975830078125, 0.041168212890625, 0.0101776123046875, -0.0243988037109375, -0.01470947265625, 0.01099395751953125, -0.061248779296875, 0.005130767822265625, -0.0190887451171875, -0.00473785400390625, -0.062408447265625, -0.0701904296875, 0.0877685546875, -0.02093505859375, 0.058502197265625, -0.022613525390625, 0.06689453125, 0.08502197265625, 0.0206756591796875, -0.007030487060546875, 0.041748046875, -0.063232421875, -0.0036411285400390625, -0.00713348388671875, 0.0218963623046875, -0.036834716796875, 0.00223541259765625, 0.0180816650390625, 0.02001953125, -0.006114959716796875, 0.0149383544921875, -0.007213592529296875, -0.00690460205078125, -0.03509521484375, 0.04779052734375, -0.059112548828125, 0.05908203125, -0.0200653076171875, 0.01039886474609375, 0.01715087890625, 0.031707763671875, 0.0718994140625, 0.007534027099609375, -0.00632476806640625, 0.023162841796875, -0.034759521484375, -0.01558685302734375, 0.012237548828125, -0.0240631103515625, -0.00048828125, 0.0041656494140625 ]
9b5153ca041422bff0a77d5ca7ec103153d17593
Wordpress Stackexchange Q: Set the transport of the Customizer 'header_image' core setting to 'postMessage' To activate the Customizer core section Navigation (ID: nav), you need to: add_theme_support( 'custom-header' ); I already tried to make the transport of the Customizer header_image setting postMessage with the ID based on what I'm seeing at get_header_image(): function theme_customize_register( $wp_customize ) { $wp_customize->get_setting( 'header_image' )->transport = 'postMessage'; // I also tried this line. // $wp_customize->get_setting( 'header_image', get_theme_support( 'custom-header', 'default-image' ) )->transport = 'postMessage'; } add_action( 'customize_register', 'theme_customize_register' ); But the setting transport is still refresh. And because the code above didn't work, it looks like the ID of the Customizer Header Image setting is not header_image.. What is the Header Image's ID and how to make it postMessage? A: Luckily, I was facing the same issue an hour ago so I brainstormed for a long time to find a find a solution. I posted it here before seeing this: http://www.hardeepasrani.com/2015/12/using-postmessage-transport-method-for-header-image/ So instead of just using: $wp_customize->get_setting( 'header_image' )->transport = 'postMessage'; I used: $wp_customize->get_setting( 'header_image' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_image_data' )->transport = 'postMessage'; After that, in JS, we got the value using header_image. Hope it helps you. :)
Q: Set the transport of the Customizer 'header_image' core setting to 'postMessage' To activate the Customizer core section Navigation (ID: nav), you need to: add_theme_support( 'custom-header' ); I already tried to make the transport of the Customizer header_image setting postMessage with the ID based on what I'm seeing at get_header_image(): function theme_customize_register( $wp_customize ) { $wp_customize->get_setting( 'header_image' )->transport = 'postMessage'; // I also tried this line. // $wp_customize->get_setting( 'header_image', get_theme_support( 'custom-header', 'default-image' ) )->transport = 'postMessage'; } add_action( 'customize_register', 'theme_customize_register' ); But the setting transport is still refresh. And because the code above didn't work, it looks like the ID of the Customizer Header Image setting is not header_image.. What is the Header Image's ID and how to make it postMessage? A: Luckily, I was facing the same issue an hour ago so I brainstormed for a long time to find a find a solution. I posted it here before seeing this: http://www.hardeepasrani.com/2015/12/using-postmessage-transport-method-for-header-image/ So instead of just using: $wp_customize->get_setting( 'header_image' )->transport = 'postMessage'; I used: $wp_customize->get_setting( 'header_image' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_image_data' )->transport = 'postMessage'; After that, in JS, we got the value using header_image. Hope it helps you. :)
wordpress
{ "language": "en", "length": 190, "provenance": "stackexchange_00019.jsonl.gz:456706", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/192433" }
[ 0.043060302734375, -0.00008702278137207031, 0.03961181640625, -0.006465911865234375, 0.0160980224609375, -0.01459503173828125, 0.055877685546875, -0.04742431640625, -0.00806427001953125, 0.0211639404296875, 0.0013818740844726562, 0.014434814453125, -0.04486083984375, -0.01483154296875, -0.0253143310546875, -0.03326416015625, 0.06219482421875, -0.059295654296875, 0.017425537109375, -0.00579071044921875, 0.01233673095703125, 0.027679443359375, 0.045074462890625, 0.0831298828125, -0.0016260147094726562, 0.01267242431640625, 0.0203399658203125, -0.01519012451171875, -0.01419830322265625, -0.0163116455078125, 0.005352020263671875, 0.027679443359375, 0.02362060546875, 0.026824951171875, -0.038787841796875, 0.02020263671875, 0.0182952880859375, 0.0087890625, -0.001953125, 0.026336669921875, -0.00359344482421875, 0.0133819580078125, 0.033721923828125, 0.0117645263671875, -0.0182952880859375, -0.0261383056640625, -0.00562286376953125, -0.050689697265625, 0.0615234375, -0.00380706787109375, -0.00848388671875, 0.00969696044921875, -0.0007219314575195312, -0.0236663818359375, -0.04644775390625, -0.054290771484375, -0.060791015625, 0.036590576171875, 0.025421142578125, 0.043670654296875, 0.011627197265625, -0.01395416259765625, -0.010650634765625, -0.040802001953125, 0.0055084228515625, 0.01326751708984375, 0.0247955322265625, 0.005199432373046875, -0.0352783203125, 0.005550384521484375, 0.0199432373046875, -0.030731201171875, 0.0310516357421875, -0.00841522216796875, -0.02801513671875, -0.0491943359375, 0.01334381103515625, -0.034759521484375, 0.026702880859375, -0.01097869873046875, 0.050689697265625, -0.0209197998046875, 0.02001953125, 0.0028247833251953125, 0.006732940673828125, 0.00720977783203125, 0.0171661376953125, -0.0156402587890625, 0.0018339157104492188, -0.004978179931640625, -0.0113677978515625, -0.0170440673828125, -0.0010747909545898438, 0.0100860595703125, 0.002155303955078125, -0.03582763671875, -0.009063720703125, 0.00968170166015625, -0.006946563720703125, 0.0243377685546875, -0.016754150390625, -0.0372314453125, 0.08135986328125, -0.057373046875, 0.01200103759765625, -0.01512908935546875, -0.02099609375, -0.0287322998046875, 0.056182861328125, 0.046783447265625, -0.020599365234375, 0.0631103515625, 0.01091766357421875, -0.003936767578125, -0.0210723876953125, -0.041839599609375, -0.0482177734375, 0.00766754150390625, 0.00205230712890625, -0.046173095703125, 0.018035888671875, 0.0306854248046875, -0.00434112548828125, -0.0070953369140625, -0.01432037353515625, -0.017181396484375, -0.0242462158203125, -0.037109375, 0.0212249755859375, -0.0250396728515625, -0.024169921875, 0.0181121826171875, 0.0809326171875, 0.037109375, 0.042144775390625, -0.000415802001953125, 0.0445556640625, -0.0126190185546875, 0.007061004638671875, 0.01222991943359375, 0.03857421875, -0.007328033447265625, -0.0026798248291015625, 0.005306243896484375, -0.0030384063720703125, -0.0017614364624023438, 0.017791748046875, 0.0196685791015625, 0.0215911865234375, -0.047821044921875, -0.0005259513854980469, 0.0059814453125, 0.00589752197265625, 0.0369873046875, -0.026611328125, 0.015777587890625, 0.0226898193359375, -0.004665374755859375, -0.0135040283203125, -0.031707763671875, -0.010528564453125, -0.0135650634765625, 0.0252838134765625, -0.032440185546875, -0.0333251953125, 0.0100555419921875, -0.0382080078125, -0.0002319812774658203, 0.025543212890625, 0.054351806640625, 0.00833892822265625, 0.01061248779296875, -0.05145263671875, 0.0018033981323242188, 0.004810333251953125, -0.005954742431640625, -0.00350189208984375, -0.00507354736328125, 0.030364990234375, 0.033660888671875, -0.0158538818359375, -0.03570556640625, 0.0261383056640625, -0.0169525146484375, -0.044586181640625, 0.060394287109375, 0.0173187255859375, 0.0770263671875, -0.0091552734375, 0.02581787109375, 0.035125732421875, 0.01568603515625, -0.0377197265625, -0.00623321533203125, -0.02423095703125, -0.016998291015625, -0.01509857177734375, -0.0034503936767578125, -0.010498046875, 0.05462646484375, -0.01262664794921875, -0.0145416259765625, 0.0266265869140625, -0.020111083984375, -0.0232391357421875, -0.0052032470703125, -0.0164794921875, 0.03546142578125, 0.0157623291015625, 0.003833770751953125, -0.0017938613891601562, -0.0001233816146850586, 0.0125732421875, -0.06988525390625, -0.01385498046875, 0.033050537109375, -0.0249176025390625, 0.04681396484375, -0.0109100341796875, 0.05450439453125, -0.0283355712890625, -0.046539306640625, -0.02337646484375, 0.004512786865234375, 0.013153076171875, 0.0295257568359375, -0.0145263671875, 0.0120849609375, 0.04339599609375, 0.0221405029296875, 0.041748046875, -0.00920867919921875, 0.0322265625, 0.0016431808471679688, -0.0188751220703125, -0.0028285980224609375, 0.034759521484375, -0.07012939453125, 0.00901031494140625, 0.044464111328125, 0.02581787109375, 0.0283660888671875, -0.00572967529296875, 0.018798828125, 0.041259765625, 0.0301971435546875, 0.025115966796875, 0.00797271728515625, 0.01129913330078125, -0.01036834716796875, -0.0016984939575195312, -0.045013427734375, 0.046356201171875, -0.0250244140625, 0.0276641845703125, 0.01641845703125, -0.01568603515625, -0.0665283203125, 0.007106781005859375, 0.016265869140625, 0.01898193359375, 0.016143798828125, -0.0230865478515625, 0.0177764892578125, 0.03570556640625, 0.035186767578125, 0.05078125, 0.027252197265625, -0.0460205078125, 0.033111572265625, 0.01312255859375, -0.0190887451171875, 0.0131988525390625, 0.03985595703125, 0.044097900390625, 0.0189361572265625, -0.02288818359375, -0.020233154296875, 0.026153564453125, 0.0426025390625, -0.016082763671875, 0.01041412353515625, -0.00939178466796875, -0.003963470458984375, 0.01459503173828125, -0.04620361328125, 0.0189666748046875, 0.0226898193359375, 0.008453369140625, -0.0016698837280273438, 0.03955078125, 0.00409698486328125, -0.034515380859375, 0.04302978515625, -0.0302581787109375, -0.0224151611328125, 0.006122589111328125, -0.06292724609375, 0.049072265625, -0.03564453125, 0.047210693359375, 0.07623291015625, -0.01313018798828125, 0.026580810546875, -0.02496337890625, 0.006069183349609375, 0.003490447998046875, 0.00476837158203125, -0.01372528076171875, -0.0679931640625, 0.0283203125, 0.0095062255859375, -0.000022649765014648438, 0.01554107666015625, -0.044219970703125, -0.049957275390625, -0.038177490234375, -0.0166473388671875, -0.061553955078125, -0.03155517578125, -0.0139923095703125, -0.053741455078125, -0.00041556358337402344, 0.003101348876953125, -0.0197601318359375, -0.002086639404296875, 0.01509857177734375, 0.004039764404296875, -0.040802001953125, -0.0146636962890625, -0.00937652587890625, -0.04681396484375, -0.039642333984375, -0.037078857421875, 0.0016193389892578125, 0.0014429092407226562, 0.005886077880859375, 0.03265380859375, 0.01605224609375, -0.039306640625, 0.01024627685546875, 0.0184478759765625, -0.01409149169921875, 0.0007882118225097656, 0.00933074951171875, 0.0086669921875, -0.002239227294921875, 0.005916595458984375, -0.01175689697265625, 0.0408935546875, -0.04632568359375, 0.0024242401123046875, -0.02056884765625, -0.004871368408203125, -0.043182373046875, 0.060455322265625, 0.058441162109375, -0.046966552734375, -0.024932861328125, -0.070556640625, -0.056243896484375, -0.034454345703125, -0.0836181640625, 0.0143280029296875, 0.06298828125, 0.024444580078125, -0.020416259765625, 0.0027561187744140625, 0.01210784912109375, -0.015655517578125, 0.0247650146484375, -0.03436279296875, 0.036834716796875, 0.0113677978515625, 0.0187835693359375, -0.0276031494140625, 0.03009033203125, -0.00719451904296875, 0.05712890625, 0.031280517578125, 0.0223236083984375, -0.011138916015625, -0.01419830322265625, -0.06866455078125, -0.060638427734375, 0.050750732421875, 0.00020956993103027344, 0.005352020263671875, 0.010498046875, -0.0295562744140625, 0.037628173828125, 0.09893798828125, 0.0217742919921875, -0.024322509765625, -0.0161590576171875, -0.007396697998046875, -0.00872802734375, 0.031402587890625, -0.0171661376953125, 0.0055389404296875, -0.0928955078125, -0.006175994873046875, -0.00811767578125, -0.0589599609375, 0.00843048095703125, -0.0261993408203125, -0.04913330078125, -0.05120849609375, 0.00910186767578125, -0.006103515625, -0.0102996826171875, 0.036590576171875, -0.034027099609375, 0.031829833984375, -0.002899169921875, -0.02667236328125, -0.09246826171875, -0.0199127197265625, -0.0216217041015625, 0.0635986328125, 0.02496337890625, -0.036285400390625, -0.0214080810546875, 0.037200927734375, 0.036041259765625, 0.018829345703125, 0.0130615234375, -0.00936126708984375, 0.0361328125, 0.0129852294921875, 0.0265045166015625, -0.0013675689697265625, 0.0226593017578125, 0.04693603515625, -0.062744140625, 0.028350830078125, 0.0025501251220703125, 0.018280029296875, 0.055511474609375, -0.058746337890625, -0.09857177734375, -0.0175628662109375, -0.0018157958984375, 0.01074981689453125, -0.005336761474609375, -0.004669189453125, -0.029632568359375, -0.0841064453125, 0.03466796875, 0.00482177734375, 0.0260162353515625, -0.010467529296875, 0.038238525390625, 0.028778076171875, -0.0211181640625, 0.0487060546875, 0.00518035888671875, 0.0372314453125, 0.042724609375, 0.001430511474609375, -0.00787353515625, -0.021820068359375, 0.01282501220703125, 0.01165008544921875, -0.00667572021484375, 0.0217437744140625, 0.0162811279296875, 0.0127716064453125, -0.033905029296875, 0.0099029541015625, 0.0255279541015625, -0.0244903564453125, 0.052032470703125, 0.026824951171875, -0.0135955810546875, 0.00870513916015625, 0.0194854736328125, -0.004795074462890625, -0.0469970703125, -0.0240020751953125, -0.01312255859375, 0.00838470458984375, 0.0216064453125, 0.0266265869140625, -0.00852203369140625, 0.01934814453125, -0.032501220703125, -0.0055084228515625, 0.023162841796875, -0.0026264190673828125, -0.020294189453125, -0.029052734375, 0.0311279296875, 0.0173187255859375, 0.0072174072265625, 0.0281982421875, 0.00801849365234375, 0.0307464599609375, -0.004009246826171875, -0.0236358642578125, -0.05633544921875, 0.007228851318359375, 0.0369873046875, 0.005313873291015625, -0.0355224609375, 0.02703857421875, 0.033294677734375, -0.01435089111328125, -0.0186767578125, -0.050262451171875, 0.039276123046875, -0.058197021484375, 0.046478271484375, 0.0204925537109375, -0.007709503173828125, -0.012115478515625, 0.0584716796875, 0.032928466796875, -0.00384521484375, -0.00864410400390625, -0.01300811767578125, 0.015106201171875, 0.017578125, 0.01690673828125, -0.007293701171875, 0.0139923095703125, -0.0266571044921875, 0.05157470703125, -0.01995849609375, 0.007049560546875, 0.0345458984375, 0.05035400390625, 0.00958251953125, -0.0191192626953125, -0.01445770263671875, -0.0184173583984375, -0.00527191162109375, 0.040435791015625, -0.0233154296875, -0.08209228515625, -0.0167388916015625, 0.037567138671875, 0.041412353515625, -0.029296875, -0.007587432861328125, 0.007648468017578125, -0.0117340087890625, 0.022216796875, -0.019256591796875, -0.0016021728515625, 0.01611328125, 0.01053619384765625, 0.0036945343017578125, -0.0167694091796875, 0.005619049072265625, -0.0244903564453125, -0.00388336181640625, -0.024200439453125, -0.0119781494140625, 0.06378173828125, -0.0236053466796875, -0.0046234130859375, -0.034881591796875, 0.035186767578125, -0.046966552734375, 0.031890869140625, -0.005764007568359375, -0.0240936279296875, -0.0229644775390625, -0.0027332305908203125, -0.014495849609375, 0.0003762245178222656, -0.012298583984375, -0.061187744140625, -0.0156402587890625, -0.0165252685546875, 0.019683837890625, 0.018768310546875, 0.01085662841796875, -0.0084686279296875, -0.00925445556640625, 0.01873779296875, 0.0154571533203125, 0.06793212890625, -0.030120849609375, 0.00870513916015625, 0.032073974609375, 0.0105133056640625, 0.00015151500701904297, -0.01531219482421875, 0.027740478515625, -0.012115478515625, -0.00922393798828125, 0.0123443603515625, -0.0026569366455078125, -0.0340576171875, 0.049957275390625, 0.015899658203125, 0.0699462890625, -0.0018110275268554688, 0.04986572265625, -0.0095977783203125, 0.024810791015625, -0.0232696533203125, -0.046630859375, -0.07354736328125, -0.02166748046875, 0.04095458984375, -0.0126800537109375, 0.002590179443359375, -0.0306243896484375, -0.001163482666015625, 0.0228271484375, -0.016265869140625, 0.01265716552734375, -0.0056304931640625, -0.07757568359375, 0.0489501953125, 0.1285400390625, 0.0160675048828125, 0.049896240234375, 0.0130157470703125, -0.005413055419921875, 0.0312347412109375, 0.01389312744140625, -0.040771484375, -0.003017425537109375, 0.0276641845703125, 0.00977325439453125, 0.01319122314453125, 0.042388916015625, 0.010101318359375, -0.0004267692565917969, -0.0228729248046875, 0.056793212890625, 0.0170135498046875, 0.015655517578125, 0.039642333984375, 0.00885009765625, 0.044952392578125, -0.004791259765625, -0.0096282958984375, -0.039093017578125, 0.01454925537109375, 0.0015249252319335938, -0.0181732177734375, 0.0014200210571289062, -0.00565338134765625, 0.0184173583984375, 0.007137298583984375, 0.045501708984375, -0.018402099609375, -0.0164031982421875, -0.09124755859375, 0.016754150390625, -0.06719970703125, -0.0213470458984375, 0.026947021484375, -0.037689208984375, -0.0036487579345703125, -0.044036865234375, -0.011810302734375, -0.0267791748046875, -0.0016145706176757812, 0.003429412841796875, -0.0104217529296875, 0.0350341796875, 0.0214691162109375, 0.007694244384765625, -0.0435791015625, -0.003482818603515625, -0.006107330322265625, 0.016571044921875, -0.0164337158203125, 0.0203857421875, 0.0229949951171875, -0.040924072265625, 0.01160430908203125, -0.0028514862060546875, -0.0013704299926757812, -0.0230865478515625, 0.005992889404296875, 0.09075927734375, -0.0270843505859375, -0.024749755859375, 0.02032470703125, 0.02850341796875, -0.01143646240234375, 0.00024080276489257812, 0.06475830078125, -0.05889892578125, -0.054351806640625, 0.0218963623046875, -0.0523681640625, -0.0323486328125, -0.01406097412109375, -0.0478515625, 0.107177734375, 0.0038204193115234375, 0.0257568359375, -0.005550384521484375, 0.05108642578125, -0.0038585662841796875, 0.037811279296875, -0.01079559326171875, 0.040496826171875, -0.022430419921875, 0.014892578125, -0.04974365234375, 0.01068878173828125, -0.01529693603515625, 0.05291748046875, 0.0309906005859375, 0.0127410888671875, 0.0208282470703125, 0.00943756103515625, 0.0379638671875, 0.006511688232421875, -0.0288238525390625, 0.0136871337890625, -0.01140594482421875, -0.045440673828125, -0.0166015625, -0.006069183349609375, 0.01294708251953125, -0.020721435546875, -0.0235748291015625, 0.0155487060546875, 0.00039005279541015625, -0.005390167236328125, 0.016998291015625, 0.046722412109375, -0.07861328125, 0.013458251953125, 0.0640869140625, -0.038330078125, -0.02191162109375, 0.030548095703125, 0.0247955322265625, 0.0032711029052734375, -0.01177978515625, -0.01374053955078125, 0.043182373046875, 0.0250396728515625, 0.036102294921875, 0.01203155517578125, 0.0200042724609375, 0.005889892578125, 0.0166168212890625, 0.0265045166015625, 0.0465087890625, -0.0162353515625, 0.045501708984375, 0.0145721435546875, 0.0379638671875, -0.028350830078125, -0.025634765625, 0.030609130859375, 0.0648193359375, -0.01311492919921875, -0.002849578857421875, 0.01226806640625, 0.004131317138671875, -0.0025177001953125, -0.044036865234375, 0.01485443115234375, -0.07757568359375, -0.050140380859375, -0.032562255859375, 0.01531982421875, 0.049591064453125, 0.034515380859375, -0.0010595321655273438, 0.02764892578125, -0.08404541015625, 0.00434112548828125, -0.037506103515625, 0.051361083984375, 0.01358795166015625, 0.0223541259765625, -0.0295867919921875, 0.0892333984375, 0.0084381103515625, -0.0017719268798828125, -0.01229095458984375, 0.01641845703125, 0.01531982421875, 0.0289306640625, -0.01192474365234375, 0.01323699951171875, -0.012603759765625, 0.0261993408203125, 0.009979248046875, -0.015655517578125, 0.0014429092407226562, 0.03277587890625, 0.01195526123046875, -0.0058746337890625, 0.060302734375, -0.0015001296997070312, 0.07073974609375, -0.050506591796875, -0.002956390380859375, -0.027984619140625, -0.02862548828125, 0.0025234222412109375, -0.04150390625, 0.044769287109375, -0.01543426513671875, -0.006866455078125, 0.00040841102600097656, -0.035247802734375, 0.00399017333984375, -0.01169586181640625, 0.0240936279296875, -0.0038318634033203125, -0.046295166015625, -0.027740478515625, -0.007373809814453125, -0.036651611328125, 0.036956787109375, 0.05401611328125, -0.023406982421875, 0.0106658935546875, -0.060211181640625, 0.0001672506332397461, 0.0126953125, -0.01296234130859375, -0.02740478515625, 0.016204833984375, 0.0214080810546875, -0.01186370849609375, -0.03778076171875, -0.018524169921875, -0.029754638671875, 0.034454345703125, 0.03863525390625, -0.040985107421875, 0.044677734375, 0.060089111328125, -0.01361083984375, 0.0238189697265625, -0.02655029296875, 0.0005712509155273438, 0.0022068023681640625, 0.02239990234375, 0.0030384063720703125, -0.024566650390625, -0.0386962890625, -0.0023822784423828125, 0.04400634765625, -0.0309295654296875, 0.0268096923828125, -0.0082855224609375, 0.0015316009521484375, -0.04046630859375, 0.00408172607421875, -0.046844482421875, -0.05743408203125, -0.079345703125, -0.0290985107421875, 0.0060882568359375, -0.01025390625, 0.0251312255859375, 0.04296875, 0.006641387939453125, -0.0251617431640625, 0.0491943359375, -0.07366943359375, 0.08404541015625, 0.0462646484375, -0.00897979736328125, -0.051025390625, 0.033355712890625, 0.013153076171875, -0.028839111328125, 0.0343017578125, 0.0200653076171875, 0.034698486328125, -0.043914794921875, 0.047698974609375, 0.00397491455078125, 0.02325439453125, -0.03826904296875, -0.008941650390625, 0.032379150390625, 0.01418304443359375, 0.01471710205078125, -0.052215576171875, -0.0116119384765625, -0.050140380859375, -0.0161895751953125, 0.031005859375, -0.042724609375, -0.0126495361328125, -0.07159423828125, -0.020294189453125, 0.0284576416015625, -0.001659393310546875, -0.00972747802734375, -0.0016698837280273438, -0.032257080078125, 0.0047760009765625, 0.0028018951416015625, -0.0017242431640625, -0.0292205810546875, -0.019775390625, -0.03057861328125, -0.033935546875, -0.05438232421875, 0.05224609375, -0.043975830078125, -0.02685546875, 0.0200958251953125, 0.0197906494140625, -0.01448822021484375, -0.0157623291015625, -0.03765869140625, 0.0304412841796875, -0.054931640625, -0.04010009765625, -0.044036865234375, 0.000812530517578125, -0.00016891956329345703, 0.0010652542114257812, 0.021484375, -0.035491943359375, -0.05499267578125, -0.04864501953125, 0.0171661376953125, 0.006999969482421875, -0.04681396484375, -0.0499267578125, -0.0150604248046875, -0.00390625, -0.030853271484375, -0.03009033203125, 0.0289154052734375, -0.0019178390502929688, 0.019134521484375, 0.0034847259521484375, -0.034759521484375, -0.0013589859008789062, 0.005260467529296875, -0.00699615478515625, 0.08740234375, -0.01346588134765625, -0.009979248046875, 0.01403045654296875, 0.017303466796875, 0.005859375, 0.0167388916015625, 0.01047515869140625, 0.0011167526245117188, -0.0118865966796875, 0.005619049072265625, -0.06536865234375, -0.0867919921875, -0.0233306884765625, 0.0236968994140625, -0.01776123046875, -0.0118408203125, 0.0190277099609375, 0.01403045654296875, 0.044677734375, -0.004535675048828125, 0.00018978118896484375, -0.031707763671875, 0.02325439453125, -0.0021953582763671875, -0.0009765625, 0.0192413330078125, 0.00605010986328125, -0.01207733154296875, -0.010101318359375, 0.0208587646484375, -0.0196685791015625, -0.05718994140625, 0.013946533203125, -0.034210205078125, -0.020660400390625, -0.00395965576171875, -0.0191802978515625, -0.01282501220703125, -0.0178375244140625, -0.0009746551513671875, -0.008056640625, -0.02008056640625, -0.0064239501953125, 0.0220489501953125, -0.0210723876953125, 0.0174102783203125, 0.00719451904296875, 0.0172119140625, -0.0234375, 0.02618408203125, -0.006771087646484375, 0.060516357421875, -0.042388916015625, -0.0177001953125, 0.0004870891571044922, -0.0027751922607421875, -0.019683837890625, -0.0206298828125, 0.0233612060546875, 0.01207733154296875, -0.022491455078125, 0.041473388671875, -0.01458740234375, 0.0086669921875, -0.003658294677734375, 0.0216217041015625, -0.0032634735107421875, -0.0005350112915039062, 0.03790283203125, -0.039215087890625, 0.00356292724609375, 0.0153961181640625, -0.006732940673828125, -0.01065826416015625, 0.001087188720703125, -0.009674072265625, 0.007472991943359375, -0.00151824951171875 ]
b76cc734eb53ef3dd640c4109da3a995ec511a51
Wordpress Stackexchange Q: How do I share plugin settings across WordPress network? I am using multisite to translate WordPress website and I have the plugin https://wordpress.org/plugins/nmedia-user-file-uploader/ which I want to be accessible from all languages. From all site you should see the same uploaded content and settings. How can I achieve that? Currently if I upload in one language I won't be able to see in another. A: The generic way to do it, is by using the pre_option_{option} https://codex.wordpress.org/Plugin_API/Filter_Reference/pre_option_(option_name) filter to override the "local" settings and use the value being stored in your "main" sub site. something like add_filter( 'pre_option_the_plugin_option_name', function () { // Code assumes that "blog" 1 is the main one in which the relevant settings are stored. if (get_current_blog_id() != 1) { return get_blog_option(1, 'the_plugin_option_name'); } return false; } Depending on the complexity of the plugin, it might not be enough and you will need additional overrides, but this type of code should be enough for simple cases.
Q: How do I share plugin settings across WordPress network? I am using multisite to translate WordPress website and I have the plugin https://wordpress.org/plugins/nmedia-user-file-uploader/ which I want to be accessible from all languages. From all site you should see the same uploaded content and settings. How can I achieve that? Currently if I upload in one language I won't be able to see in another. A: The generic way to do it, is by using the pre_option_{option} https://codex.wordpress.org/Plugin_API/Filter_Reference/pre_option_(option_name) filter to override the "local" settings and use the value being stored in your "main" sub site. something like add_filter( 'pre_option_the_plugin_option_name', function () { // Code assumes that "blog" 1 is the main one in which the relevant settings are stored. if (get_current_blog_id() != 1) { return get_blog_option(1, 'the_plugin_option_name'); } return false; } Depending on the complexity of the plugin, it might not be enough and you will need additional overrides, but this type of code should be enough for simple cases. A: I almost thought this was a duplicate to Network-Wide Plugin Settings Management , but I see you also want shared content. Basically, this is tough and situation and plugin dependent. I'm a fan of WPMUDev's premium New Blog Template for copying content and settings upon blog creation, but it doesn't help with subsequent settings and content changes. WPMUDev also has MultiSite Content Copier which might work for you. I haven't tried it myself, but it looks reasonable. There may very well be other, and cheaper, options, too. I hope this helps - good luck.
wordpress
{ "language": "en", "length": 255, "provenance": "stackexchange_00019.jsonl.gz:456712", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/192450" }
[ 0.02362060546875, -0.0128021240234375, 0.040496826171875, 0.006343841552734375, -0.0283355712890625, 0.005855560302734375, 0.009979248046875, -0.044158935546875, 0.034515380859375, 0.005214691162109375, -0.012359619140625, 0.0028171539306640625, -0.00917816162109375, -0.02947998046875, 0.0103759765625, -0.0068817138671875, 0.0281524658203125, 0.0016736984252929688, 0.01080322265625, -0.01052093505859375, -0.018463134765625, 0.026885986328125, 0.018768310546875, 0.023956298828125, 0.023101806640625, -0.062744140625, 0.031768798828125, -0.011444091796875, 0.01523590087890625, -0.01258087158203125, 0.027618408203125, 0.0185089111328125, 0.0243988037109375, -0.00583648681640625, -0.032073974609375, -0.061065673828125, 0.0316162109375, -0.038726806640625, -0.035400390625, 0.0675048828125, 0.038330078125, -0.024993896484375, -0.0117950439453125, 0.064208984375, 0.0037384033203125, -0.08966064453125, 0.08123779296875, -0.05157470703125, -0.01146697998046875, 0.0282745361328125, 0.0157470703125, -0.039764404296875, 0.040374755859375, 0.0092620849609375, -0.0279388427734375, -0.035675048828125, -0.0128326416015625, 0.0189208984375, 0.055999755859375, 0.0150909423828125, -0.041534423828125, -0.03857421875, 0.00785064697265625, -0.04437255859375, -0.0008454322814941406, 0.0012731552124023438, -0.00759124755859375, 0.00771331787109375, -0.00704193115234375, -0.004566192626953125, 0.01451873779296875, -0.0163421630859375, 0.060821533203125, -0.0249481201171875, -0.0224456787109375, -0.023193359375, -0.0143585205078125, -0.0173492431640625, 0.04608154296875, -0.06298828125, 0.00298309326171875, -0.026092529296875, -0.0312042236328125, -0.034088134765625, 0.0011854171752929688, 0.010528564453125, -0.003185272216796875, 0.0009732246398925781, -0.0229339599609375, 0.0150299072265625, -0.0133514404296875, -0.0291290283203125, -0.03997802734375, 0.038787841796875, 0.0155487060546875, -0.00292205810546875, -0.00415802001953125, 0.048492431640625, -0.0167999267578125, -0.007366180419921875, 0.00025200843811035156, -0.03729248046875, 0.006130218505859375, -0.0352783203125, -0.00647735595703125, 0.01108551025390625, 0.01593017578125, 0.0169677734375, 0.02362060546875, 0.03369140625, -0.01727294921875, 0.03790283203125, -0.022796630859375, -0.050872802734375, 0.01123809814453125, 0.0280303955078125, -0.023406982421875, 0.01142120361328125, 0.00341033935546875, -0.0148773193359375, 0.0004374980926513672, 0.022186279296875, -0.046417236328125, 0.0195770263671875, -0.007808685302734375, -0.01947021484375, 0.007236480712890625, 0.0023860931396484375, -0.05462646484375, 0.0311126708984375, -0.00136566162109375, -0.01497650146484375, 0.04205322265625, 0.052337646484375, -0.0108642578125, -0.0225067138671875, 0.033782958984375, 0.018829345703125, -0.0221710205078125, 0.01398468017578125, 0.00484466552734375, -0.01262664794921875, -0.023101806640625, -0.0225677490234375, -0.01328277587890625, 0.00015270709991455078, 0.0267181396484375, 0.037017822265625, -0.0258331298828125, -0.017547607421875, 0.006137847900390625, -0.00579833984375, 0.044952392578125, -0.0263214111328125, -0.0170135498046875, -0.027374267578125, 0.0233306884765625, -0.0288238525390625, -0.01259613037109375, -0.039703369140625, -0.024658203125, -0.028289794921875, 0.032012939453125, 0.006481170654296875, 0.0007910728454589844, 0.03411865234375, -0.01271820068359375, 0.00665283203125, 0.0191802978515625, 0.01546478271484375, -0.0082855224609375, 0.0026454925537109375, -0.002227783203125, -0.0026378631591796875, -0.004833221435546875, 0.007755279541015625, -0.030914306640625, 0.042083740234375, 0.0152435302734375, 0.006931304931640625, -0.004825592041015625, -0.038787841796875, 0.035400390625, 0.004695892333984375, -0.07537841796875, -0.0294647216796875, 0.00829315185546875, 0.05035400390625, 0.046295166015625, 0.01336669921875, 0.05047607421875, -0.013671875, -0.029876708984375, -0.00678253173828125, -0.029876708984375, 0.050384521484375, -0.038116455078125, 0.0650634765625, -0.025299072265625, -0.01192474365234375, -0.01113128662109375, -0.0303955078125, 0.0276336669921875, 0.00421905517578125, -0.00707244873046875, -0.0204925537109375, -0.008209228515625, 0.004344940185546875, -0.00820159912109375, -0.0043792724609375, 0.00724029541015625, 0.005645751953125, 0.00946044921875, -0.0626220703125, -0.0170440673828125, 0.040435791015625, -0.0172271728515625, 0.06243896484375, 0.0240631103515625, 0.037353515625, 0.0262298583984375, -0.03973388671875, 0.0235748291015625, -0.00901031494140625, 0.0172882080078125, -0.0012111663818359375, -0.01068115234375, -0.004055023193359375, 0.0294647216796875, -0.0004858970642089844, 0.043121337890625, 0.00769805908203125, -0.007343292236328125, 0.0200042724609375, 0.004302978515625, 0.00860595703125, 0.0169677734375, -0.0232696533203125, 0.017669677734375, 0.0114898681640625, 0.0123138427734375, 0.03460693359375, -0.016571044921875, -0.0047607421875, -0.0196685791015625, -0.059814453125, 0.0243072509765625, 0.004505157470703125, 0.060882568359375, 0.06561279296875, -0.0499267578125, -0.03167724609375, 0.0206146240234375, -0.0865478515625, 0.014251708984375, 0.035491943359375, -0.045257568359375, -0.060394287109375, 0.048370361328125, -0.022796630859375, 0.0139923095703125, -0.0181732177734375, -0.00286102294921875, 0.0010223388671875, 0.033294677734375, -0.0172119140625, 0.00992584228515625, 0.0031642913818359375, -0.030426025390625, 0.015625, 0.0241546630859375, -0.0321044921875, 0.01629638671875, 0.0257110595703125, 0.020294189453125, 0.0084381103515625, -0.0256195068359375, -0.0234375, 0.0489501953125, 0.020782470703125, -0.012542724609375, 0.029144287109375, -0.06939697265625, -0.0175933837890625, 0.0058746337890625, -0.0174102783203125, -0.0301055908203125, -0.01374053955078125, 0.028289794921875, -0.0005474090576171875, 0.043212890625, 0.00846099853515625, -0.03924560546875, 0.05419921875, -0.034881591796875, -0.0389404296875, 0.04705810546875, -0.0609130859375, 0.0312042236328125, -0.044525146484375, 0.0716552734375, 0.0694580078125, -0.01108551025390625, -0.006011962890625, 0.013275146484375, -0.003849029541015625, -0.002910614013671875, 0.01146697998046875, -0.0167999267578125, -0.0045928955078125, -0.061981201171875, 0.0006036758422851562, -0.0206756591796875, -0.06658935546875, -0.054107666015625, -0.031829833984375, -0.060089111328125, -0.06689453125, -0.09222412109375, 0.010833740234375, 0.01560211181640625, -0.05328369140625, 0.05731201171875, -0.016937255859375, -0.01517486572265625, -0.0467529296875, 0.0302581787109375, 0.0135040283203125, -0.00299072265625, -0.030853271484375, -0.0098724365234375, -0.036773681640625, -0.02618408203125, -0.01328277587890625, 0.01174163818359375, -0.0152435302734375, 0.0124969482421875, -0.0149688720703125, -0.00804901123046875, -0.0325927734375, 0.00048613548278808594, 0.0305938720703125, 0.0028533935546875, -0.0246124267578125, 0.00482177734375, -0.014129638671875, 0.039031982421875, -0.0006566047668457031, 0.003631591796875, 0.0438232421875, -0.047088623046875, -0.004993438720703125, 0.0088043212890625, 0.0079193115234375, 0.0298919677734375, -0.0797119140625, -0.0169830322265625, 0.0279693603515625, -0.031585693359375, -0.0221710205078125, -0.00835418701171875, -0.0049896240234375, -0.037445068359375, 0.0196533203125, 0.02825927734375, -0.020294189453125, 0.01220703125, 0.01184844970703125, -0.014801025390625, -0.0233001708984375, 0.01160430908203125, -0.0222015380859375, 0.01483154296875, -0.01059722900390625, -0.031585693359375, -0.00844573974609375, 0.00923919677734375, -0.01361083984375, 0.0277252197265625, -0.0008401870727539062, 0.01290130615234375, -0.0146636962890625, 0.04583740234375, -0.031829833984375, -0.0301055908203125, 0.037200927734375, -0.0259857177734375, 0.004100799560546875, -0.0259552001953125, -0.0070953369140625, -0.0189971923828125, 0.06329345703125, -0.032684326171875, 0.01519775390625, 0.009521484375, 0.00498199462890625, -0.0296783447265625, -0.048126220703125, -0.06439208984375, 0.0037841796875, -0.005504608154296875, -0.0112762451171875, -0.01383209228515625, -0.0135498046875, -0.00899505615234375, -0.047698974609375, -0.005615234375, -0.01849365234375, 0.029083251953125, 0.039337158203125, -0.002437591552734375, -0.035064697265625, -0.01174163818359375, -0.0411376953125, -0.00814056396484375, 0.011505126953125, -0.057586669921875, -0.0059051513671875, -0.0247955322265625, 0.04840087890625, 0.020355224609375, -0.011962890625, -0.020294189453125, 0.041290283203125, -0.019805908203125, 0.073974609375, -0.024017333984375, 0.01161956787109375, 0.0165557861328125, -0.00428009033203125, 0.00026798248291015625, -0.00699615478515625, 0.032196044921875, 0.0312042236328125, -0.0718994140625, -0.002197265625, -0.0156707763671875, -0.0264892578125, 0.0494384765625, -0.07342529296875, -0.10455322265625, -0.037109375, -0.02374267578125, -0.03253173828125, -0.0233612060546875, -0.01520538330078125, -0.01213836669921875, -0.06011962890625, 0.021453857421875, -0.0081787109375, -0.022918701171875, 0.016845703125, 0.06591796875, 0.017059326171875, -0.005306243896484375, -0.051177978515625, -0.01259613037109375, 0.033782958984375, 0.01485443115234375, 0.0272216796875, 0.037139892578125, -0.036651611328125, 0.06890869140625, 0.028289794921875, 0.017852783203125, -0.0069580078125, 0.013427734375, 0.0207366943359375, -0.0244140625, 0.0257720947265625, 0.044525146484375, -0.0218963623046875, 0.0013742446899414062, -0.0234527587890625, -0.00958251953125, -0.03326416015625, 0.01094818115234375, -0.0010128021240234375, 0.039093017578125, -0.01238250732421875, -0.07421875, 0.042449951171875, -0.05255126953125, 0.009552001953125, -0.006885528564453125, 0.0005178451538085938, 0.018646240234375, -0.00917816162109375, -0.0254974365234375, 0.049957275390625, 0.060089111328125, 0.0038089752197265625, 0.0233612060546875, 0.0338134765625, -0.048370361328125, -0.0233154296875, -0.022796630859375, 0.055206298828125, -0.04693603515625, -0.066162109375, 0.0010051727294921875, -0.0266876220703125, 0.031402587890625, 0.06390380859375, -0.0185089111328125, 0.017333984375, 0.031707763671875, -0.0289764404296875, -0.002124786376953125, 0.025360107421875, -0.0162506103515625, -0.042938232421875, 0.016510009765625, -0.0235595703125, -0.0013141632080078125, -0.0181884765625, 0.045257568359375, -0.08624267578125, 0.0389404296875, 0.01361846923828125, 0.02825927734375, 0.0550537109375, 0.0027408599853515625, 0.0343017578125, -0.018096923828125, -0.018524169921875, -0.006046295166015625, -0.0279693603515625, -0.0011892318725585938, 0.03790283203125, 0.0186614990234375, 0.0129547119140625, 0.0013036727905273438, -0.01953125, 0.01824951171875, -0.04046630859375, -0.01354217529296875, 0.01385498046875, -0.00841522216796875, -0.037628173828125, -0.014007568359375, 0.0280303955078125, 0.0294342041015625, -0.005367279052734375, 0.0222930908203125, -0.048248291015625, -0.0008220672607421875, -0.04498291015625, 0.0228424072265625, -0.06097412109375, -0.00920867919921875, 0.01751708984375, 0.018707275390625, 0.0018396377563476562, -0.01454925537109375, -0.08929443359375, -0.0205078125, -0.01053619384765625, 0.0151214599609375, 0.037567138671875, -0.0037326812744140625, 0.039886474609375, -0.022125244140625, -0.0092010498046875, -0.014434814453125, 0.002925872802734375, 0.030059814453125, 0.0028514862060546875, -0.06988525390625, 0.012969970703125, -0.006618499755859375, -0.0109100341796875, -0.006221771240234375, -0.0248565673828125, -0.049163818359375, -0.0191802978515625, 0.0125579833984375, 0.0307464599609375, -0.032989501953125, -0.02667236328125, 0.0011739730834960938, -0.0016736984252929688, 0.0132293701171875, 0.0308074951171875, -0.04266357421875, 0.049835205078125, 0.0174102783203125, 0.06414794921875, 0.002468109130859375, 0.020233154296875, -0.023040771484375, -0.00673675537109375, -0.007419586181640625, -0.031341552734375, -0.042755126953125, -0.0014324188232421875, -0.037384033203125, 0.049224853515625, 0.07830810546875, 0.00025773048400878906, 0.0168914794921875, 0.0092010498046875, 0.00164794921875, -0.018402099609375, -0.012451171875, 0.012237548828125, 0.0164031982421875, 0.01947021484375, -0.02691650390625, -0.007030487060546875, -0.005023956298828125, -0.02020263671875, 0.045257568359375, -0.01079559326171875, 0.026947021484375, 0.02130126953125, -0.0019626617431640625, 0.0556640625, 0.045196533203125, 0.000492095947265625, 0.032501220703125, 0.040771484375, 0.01473236083984375, -0.0208282470703125, -0.0252685546875, 0.025146484375, -0.01184844970703125, 0.0015201568603515625, -0.0207366943359375, 0.035675048828125, 0.010406494140625, 0.01015472412109375, 0.01070404052734375, 0.036041259765625, 0.0450439453125, -0.080810546875, 0.01203155517578125, 0.0172119140625, -0.0159759521484375, -0.03350830078125, 0.0045166015625, -0.0261688232421875, -0.03375244140625, 0.0169830322265625, -0.0262908935546875, -0.028900146484375, 0.01210784912109375, 0.01445770263671875, -0.0223846435546875, 0.037841796875, 0.01125335693359375, 0.0159454345703125, 0.03167724609375, -0.033111572265625, -0.0121307373046875, 0.0186614990234375, -0.0005421638488769531, 0.0026836395263671875, 0.01132965087890625, -0.043182373046875, -0.07220458984375, -0.0369873046875, -0.00896453857421875, -0.05462646484375, -0.030181884765625, -0.031524658203125, 0.038238525390625, 0.0474853515625, -0.0265960693359375, -0.01849365234375, 0.0196380615234375, 0.01800537109375, 0.001964569091796875, -0.0205230712890625, -0.0192413330078125, 0.0149993896484375, -0.0010480880737304688, 0.00968170166015625, -0.0092620849609375, -0.00957489013671875, -0.02435302734375, 0.0003485679626464844, 0.077392578125, -0.030975341796875, -0.0037136077880859375, 0.04071044921875, 0.07086181640625, -0.025054931640625, 0.00939178466796875, -0.006855010986328125, -0.06951904296875, -0.0789794921875, 0.003810882568359375, -0.0902099609375, 0.004547119140625, 0.01293182373046875, -0.08648681640625, 0.10516357421875, -0.01279449462890625, 0.0550537109375, -0.00411224365234375, 0.046173095703125, -0.006591796875, 0.005504608154296875, -0.031005859375, 0.0216522216796875, 0.0027179718017578125, 0.03167724609375, -0.0552978515625, -0.019256591796875, -0.00583648681640625, 0.06646728515625, 0.06744384765625, 0.02490234375, -0.053924560546875, -0.020111083984375, 0.01306915283203125, -0.00604248046875, -0.0278778076171875, 0.06842041015625, 0.0178985595703125, 0.00823974609375, 0.028564453125, -0.0200347900390625, 0.037353515625, -0.037384033203125, 0.014678955078125, 0.0268402099609375, -0.0007472038269042969, 0.004505157470703125, -0.03314208984375, 0.02301025390625, -0.033416748046875, -0.0187835693359375, 0.020172119140625, -0.039031982421875, 0.0174102783203125, -0.00569915771484375, 0.01136016845703125, -0.02410888671875, 0.016510009765625, -0.014068603515625, 0.0340576171875, 0.012542724609375, -0.0067901611328125, 0.026763916015625, 0.0134735107421875, 0.0135955810546875, 0.01007080078125, -0.0023670196533203125, 0.0198211669921875, 0.01136016845703125, 0.0294647216796875, -0.004199981689453125, 0.0196685791015625, -0.01470947265625, 0.0372314453125, -0.0177459716796875, 0.01519775390625, -0.038848876953125, -0.059539794921875, 0.01116180419921875, 0.005558013916015625, -0.0180816650390625, 0.0203399658203125, -0.0239410400390625, -0.04815673828125, 0.037872314453125, -0.02880859375, 0.005603790283203125, -0.0038928985595703125, 0.0300750732421875, 0.01103973388671875, 0.03173828125, -0.053924560546875, -0.0212860107421875, -0.056915283203125, 0.031402587890625, 0.0263214111328125, 0.0689697265625, 0.0048675537109375, 0.09423828125, -0.02288818359375, -0.0296630859375, -0.02239990234375, 0.0279998779296875, 0.008819580078125, 0.01739501953125, -0.046783447265625, -0.04669189453125, 0.0330810546875, 0.052764892578125, 0.0138397216796875, 0.0045013427734375, 0.0467529296875, 0.050384521484375, -0.030303955078125, -0.0207672119140625, 0.0238494873046875, -0.007381439208984375, 0.0438232421875, -0.034454345703125, 0.0207366943359375, -0.022857666015625, -0.0302276611328125, -0.0469970703125, 0.00428009033203125, 0.03631591796875, -0.035858154296875, 0.056549072265625, -0.0137481689453125, -0.02459716796875, 0.001010894775390625, -0.02886962890625, 0.058349609375, -0.0207672119140625, -0.049957275390625, 0.0254058837890625, -0.073974609375, -0.0367431640625, 0.0146942138671875, 0.02789306640625, -0.02783203125, 0.038970947265625, 0.025726318359375, -0.0182952880859375, 0.0367431640625, -0.0200042724609375, 0.02764892578125, 0.007476806640625, 0.002407073974609375, -0.00354766845703125, -0.0293426513671875, -0.026580810546875, -0.031829833984375, 0.06341552734375, 0.03656005859375, 0.07177734375, -0.0227508544921875, 0.04388427734375, 0.0088348388671875, -0.0034637451171875, 0.00815582275390625, 0.0132598876953125, 0.005947113037109375, 0.01190185546875, 0.0013055801391601562, -0.0105133056640625, -0.025543212890625, -0.002044677734375, 0.036895751953125, -0.06243896484375, -0.00574493408203125, 0.011566162109375, 0.01983642578125, -0.01560211181640625, 0.0263824462890625, -0.039306640625, -0.040557861328125, -0.059417724609375, -0.003452301025390625, 0.01413726806640625, 0.018524169921875, 0.01070404052734375, 0.04058837890625, 0.017364501953125, 0.0190277099609375, 0.004146575927734375, 0.00257110595703125, -0.0218658447265625, 0.024444580078125, -0.0241241455078125, -0.02044677734375, -0.016143798828125, -0.01983642578125, -0.01313018798828125, -0.003360748291015625, 0.022247314453125, -0.0032138824462890625, -0.03643798828125, 0.0020542144775390625, 0.0198516845703125, 0.0205841064453125, -0.0240936279296875, 0.0082550048828125, 0.042022705078125, -0.0095367431640625, -0.01513671875, -0.032470703125, -0.019744873046875, -0.04052734375, 0.0005846023559570312, 0.01953125, -0.01369476318359375, -0.03228759765625, -0.044403076171875, -0.0168304443359375, 0.016845703125, -0.03594970703125, -0.031524658203125, -0.0296173095703125, -0.035858154296875, 0.073486328125, -0.04473876953125, -0.045501708984375, -0.00739288330078125, 0.0169830322265625, 0.01067352294921875, -0.018951416015625, -0.032806396484375, 0.01390838623046875, -0.0194549560546875, 0.0245361328125, 0.00206756591796875, -0.002109527587890625, 0.0172882080078125, 0.054351806640625, 0.0027008056640625, 0.09014892578125, -0.0458984375, -0.0296630859375, 0.0189056396484375, -0.0257110595703125, 0.0005588531494140625, -0.0294952392578125, 0.007205963134765625, -0.07574462890625, -0.0281524658203125, -0.0352783203125, -0.0244140625, -0.03277587890625, -0.0574951171875, -0.0384521484375, 0.06097412109375, 0.001373291015625, -0.0290985107421875, -0.053558349609375, 0.01099395751953125, 0.00839996337890625, 0.052886962890625, 0.004184722900390625, -0.041534423828125, -0.055877685546875, -0.0100250244140625, -0.0154266357421875, 0.01445770263671875, -0.014739990234375, -0.0166473388671875, -0.015533447265625, 0.0089263916015625, 0.0253448486328125, -0.040130615234375, 0.0255126953125, -0.039031982421875, 0.040679931640625, 0.031341552734375, -0.0181121826171875, -0.04364013671875, 0.02728271484375, -0.0247955322265625, -0.0262603759765625, 0.0005288124084472656, 0.003063201904296875, 0.01419830322265625, 0.057342529296875, 0.0634765625, 0.0092620849609375, -0.04779052734375, -0.0028133392333984375, 0.004955291748046875, -0.0469970703125, -0.0025463104248046875, 0.0277862548828125, -0.053497314453125, 0.00748443603515625, -0.01323699951171875, -0.0124969482421875, 0.0195465087890625, 0.01143646240234375, -0.0296478271484375, 0.0044708251953125, 0.01506805419921875, -0.01494598388671875, -0.054656982421875, -0.02008056640625, 0.057159423828125, -0.02587890625, 0.004840850830078125, 0.02801513671875, -0.0016527175903320312, 0.037933349609375, 0.07598876953125, -0.0178680419921875, -0.01129150390625, -0.0169525146484375, 0.053466796875, 0.0090789794921875, 0.0318603515625, -0.0306549072265625, 0.00344085693359375, -0.0171356201171875, -0.0018281936645507812, -0.006847381591796875, -0.00426483154296875, 0.003574371337890625, 0.015625, 0.0006403923034667969, 0.0293426513671875, -0.02740478515625, 0.004566192626953125, -0.016815185546875, 0.007404327392578125, -0.0262908935546875, 0.011444091796875, 0.0098876953125, -0.031402587890625, 0.015716552734375, -0.00936126708984375, 0.02362060546875, -0.032196044921875, 0.0288238525390625, -0.03173828125, -0.0009050369262695312, 0.024993896484375 ]
bf38a6c95f5691271fbb8de4d8be54bc8d21fa05
Wordpress Stackexchange Q: How to add multiple custom URL variables? I am building a Wordpress plugin that looks for different custom variables in the URL. The way I am able to achieve that right now is with this code: function add_custom_query_var( $vars){ $vars[] = "variable1"; return $vars; } function add_custom_query_var1( $vars1){ $vars1[] = "variable2"; return $vars1; } add_filter( 'query_vars', 'add_custom_query_var' ); add_filter( 'query_vars1', 'add_custom_query_var1' ); I feel like this code is redundant and was wondering if there is a better way to do this. Thanks A: I pretty sure this filter lets you add an array of variables. I've not tested this: function add_custom_query_vars( $vars ){ $vars[] = "variable1"; $vars[] = "variable2"; $vars[] = "variable3"; //... etc return $vars; } add_filter( 'query_vars', 'add_custom_query_vars' ); Or another way of doing it would be to do this: function add_custom_query_vars( $vars ){ array_push($vars, "variable1", "variable2", "variable3"); return $vars; } add_filter( 'query_vars', 'add_custom_query_vars' );
Q: How to add multiple custom URL variables? I am building a Wordpress plugin that looks for different custom variables in the URL. The way I am able to achieve that right now is with this code: function add_custom_query_var( $vars){ $vars[] = "variable1"; return $vars; } function add_custom_query_var1( $vars1){ $vars1[] = "variable2"; return $vars1; } add_filter( 'query_vars', 'add_custom_query_var' ); add_filter( 'query_vars1', 'add_custom_query_var1' ); I feel like this code is redundant and was wondering if there is a better way to do this. Thanks A: I pretty sure this filter lets you add an array of variables. I've not tested this: function add_custom_query_vars( $vars ){ $vars[] = "variable1"; $vars[] = "variable2"; $vars[] = "variable3"; //... etc return $vars; } add_filter( 'query_vars', 'add_custom_query_vars' ); Or another way of doing it would be to do this: function add_custom_query_vars( $vars ){ array_push($vars, "variable1", "variable2", "variable3"); return $vars; } add_filter( 'query_vars', 'add_custom_query_vars' );
wordpress
{ "language": "en", "length": 148, "provenance": "stackexchange_00019.jsonl.gz:456726", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/192504" }
[ 0.0775146484375, -0.0292816162109375, 0.00843048095703125, -0.0989990234375, 0.02069091796875, -0.00487518310546875, 0.0132293701171875, 0.034515380859375, -0.019805908203125, 0.01276397705078125, 0.010772705078125, -0.0030803680419921875, -0.035675048828125, -0.035614013671875, -0.0025005340576171875, -0.0237274169921875, 0.026153564453125, -0.043060302734375, -0.0146026611328125, -0.01953125, 0.0201568603515625, -0.0104217529296875, 0.017303466796875, 0.0904541015625, 0.01435089111328125, 0.0167388916015625, 0.043548583984375, -0.047454833984375, 0.0207977294921875, -0.01023101806640625, 0.0023708343505859375, -0.01099395751953125, 0.024169921875, 0.01395416259765625, -0.0111541748046875, 0.01183319091796875, 0.02691650390625, -0.01288604736328125, -0.00550079345703125, 0.03570556640625, 0.045623779296875, -0.02911376953125, 0.0108795166015625, 0.01108551025390625, 0.016387939453125, -0.043548583984375, 0.0745849609375, -0.03558349609375, -0.0025768280029296875, 0.028564453125, -0.0196533203125, -0.01971435546875, -0.00928497314453125, -0.00852203369140625, -0.0021991729736328125, -0.044952392578125, 0.055267333984375, -0.06707763671875, 0.031341552734375, -0.0159454345703125, -0.03131103515625, -0.01233673095703125, 0.0386962890625, -0.0163726806640625, 0.006130218505859375, 0.024810791015625, 0.006160736083984375, 0.009185791015625, -0.0775146484375, -0.03179931640625, 0.0269622802734375, -0.061431884765625, -0.017791748046875, 0.01012420654296875, -0.033172607421875, -0.0293121337890625, 0.022491455078125, -0.03680419921875, 0.0022907257080078125, 0.0222015380859375, -0.006717681884765625, -0.03802490234375, -0.030029296875, 0.0094451904296875, -0.01197052001953125, 0.03216552734375, -0.0148162841796875, -0.006855010986328125, -0.022216796875, -0.02288818359375, -0.01464080810546875, -0.044036865234375, -0.04638671875, 0.0110015869140625, 0.01213836669921875, -0.0229034423828125, 0.003925323486328125, 0.0274658203125, 0.00289154052734375, 0.01441192626953125, -0.0159912109375, -0.0193939208984375, 0.005039215087890625, -0.0197906494140625, -0.003326416015625, 0.0250091552734375, 0.0272064208984375, 0.07525634765625, 0.033050537109375, 0.0210723876953125, 0.00933074951171875, 0.0143890380859375, -0.003437042236328125, 0.035491943359375, -0.04339599609375, -0.035186767578125, -0.0219879150390625, -0.03839111328125, -0.037841796875, -0.01837158203125, 0.00885772705078125, 0.0130157470703125, -0.0131683349609375, -0.0162353515625, -0.0009794235229492188, -0.02850341796875, -0.01531982421875, -0.0010166168212890625, -0.064453125, 0.0299530029296875, -0.0150604248046875, 0.0183868408203125, 0.0211029052734375, 0.043670654296875, -0.00960540771484375, -0.02099609375, 0.039215087890625, -0.0039520263671875, -0.0034160614013671875, 0.0143280029296875, 0.00925445556640625, -0.01305389404296875, -0.00740814208984375, -0.024688720703125, -0.0086822509765625, 0.0180816650390625, 0.032623291015625, 0.01457977294921875, -0.01004791259765625, -0.033172607421875, 0.006343841552734375, 0.00023734569549560547, 0.0250701904296875, -0.0032176971435546875, -0.04107666015625, 0.040863037109375, -0.0230560302734375, 0.00815582275390625, -0.040283203125, 0.01230621337890625, -0.025604248046875, -0.00356292724609375, 0.014373779296875, -0.0269775390625, -0.00501251220703125, -0.0311431884765625, -0.004085540771484375, 0.010955810546875, 0.0166778564453125, 0.00920867919921875, 0.017242431640625, -0.0119476318359375, -0.0004787445068359375, 0.0188446044921875, 0.001224517822265625, 0.016082763671875, 0.0024623870849609375, 0.037384033203125, 0.0288238525390625, 0.005489349365234375, 0.0020656585693359375, -0.040130615234375, 0.09381103515625, -0.0190887451171875, -0.07952880859375, 0.049560546875, -0.031402587890625, 0.044677734375, 0.048492431640625, -0.016815185546875, 0.024383544921875, -0.0002429485321044922, -0.009063720703125, -0.018310546875, -0.00690460205078125, -0.0054931640625, 0.018829345703125, 0.00949859619140625, 0.0007452964782714844, 0.0013484954833984375, 0.0160064697265625, -0.0089569091796875, 0.03204345703125, 0.0140380859375, -0.01251220703125, 0.014312744140625, -0.014129638671875, 0.0176239013671875, -0.020355224609375, 0.027923583984375, 0.01517486572265625, -0.001102447509765625, -0.02606201171875, -0.0018444061279296875, 0.00130462646484375, 0.005176544189453125, 0.0233917236328125, 0.0360107421875, 0.01490020751953125, 0.00034880638122558594, 0.04962158203125, 0.00824737548828125, 0.042938232421875, 0.050537109375, 0.041107177734375, -0.0062255859375, -0.02508544921875, -0.0168609619140625, 0.0129241943359375, 0.0027866363525390625, -0.037628173828125, 0.06146240234375, 0.04083251953125, 0.035675048828125, 0.0020198822021484375, -0.0008001327514648438, 0.0137939453125, -0.0701904296875, -0.004322052001953125, 0.0394287109375, 0.03863525390625, 0.0260162353515625, 0.0031986236572265625, -0.0146026611328125, 0.03497314453125, -0.05609130859375, 0.0006208419799804688, -0.0151214599609375, 0.0282745361328125, 0.049041748046875, -0.0289459228515625, -0.0200042724609375, 0.003299713134765625, -0.070068359375, 0.023345947265625, 0.01751708984375, -0.021575927734375, -0.0238189697265625, -0.0074310302734375, 0.01204681396484375, -0.019073486328125, -0.0273590087890625, -0.004322052001953125, -0.00969696044921875, 0.01873779296875, -0.00970458984375, 0.031280517578125, 0.032196044921875, 0.00984954833984375, -0.0267791748046875, -0.00658416748046875, -0.0290679931640625, -0.0229339599609375, -0.0560302734375, -0.0250396728515625, -0.019866943359375, -0.0280914306640625, 0.048828125, -0.0235137939453125, -0.05523681640625, -0.0038356781005859375, 0.0653076171875, -0.006381988525390625, -0.031036376953125, -0.0247802734375, 0.00820159912109375, -0.004116058349609375, -0.03472900390625, 0.0253143310546875, -0.0299072265625, 0.032196044921875, -0.003002166748046875, -0.0193328857421875, 0.0330810546875, -0.01105499267578125, -0.043212890625, 0.0251922607421875, -0.01505279541015625, 0.025909423828125, -0.0215301513671875, 0.0347900390625, 0.04736328125, -0.003101348876953125, -0.010467529296875, 0.0092315673828125, -0.01129913330078125, 0.0011959075927734375, 0.010986328125, 0.00310516357421875, -0.00572967529296875, -0.05908203125, 0.0063018798828125, 0.0144805908203125, -0.027191162109375, 0.03631591796875, -0.0229644775390625, -0.00948333740234375, 0.0004115104675292969, -0.0535888671875, -0.034149169921875, 0.07843017578125, -0.05181884765625, -0.03302001953125, -0.003635406494140625, -0.044891357421875, -0.0069580078125, 0.01401519775390625, -0.026275634765625, 0.0161590576171875, -0.0157928466796875, -0.0906982421875, -0.046966552734375, -0.08251953125, 0.0257568359375, -0.00567626953125, 0.018280029296875, -0.01294708251953125, 0.08782958984375, 0.01345062255859375, -0.0157928466796875, 0.0190582275390625, -0.0162353515625, 0.00445556640625, -0.004032135009765625, 0.01873779296875, -0.026153564453125, 0.0400390625, -0.0221405029296875, 0.0546875, 0.0723876953125, -0.050567626953125, 0.0145416259765625, -0.00919342041015625, 0.040191650390625, 0.0191497802734375, -0.0184173583984375, 0.0164947509765625, 0.043487548828125, 0.0213470458984375, -0.019744873046875, -0.0016984939575195312, 0.0254058837890625, -0.0009870529174804688, -0.0001773834228515625, 0.0006442070007324219, -0.0307769775390625, -0.0164642333984375, 0.02435302734375, -0.00823211669921875, -0.03411865234375, -0.005401611328125, -0.0261688232421875, 0.00730133056640625, 0.006256103515625, 0.0228118896484375, 0.0164642333984375, 0.034454345703125, -0.035125732421875, 0.0498046875, 0.02044677734375, -0.0175323486328125, 0.006328582763671875, -0.03558349609375, -0.0247955322265625, 0.00695037841796875, 0.051300048828125, 0.0032291412353515625, 0.0192718505859375, -0.0266571044921875, -0.0308837890625, -0.018402099609375, 0.051971435546875, -0.0899658203125, -0.01116943359375, 0.020904541015625, 0.0268402099609375, -0.0206756591796875, -0.059478759765625, -0.026947021484375, -0.035430908203125, -0.03668212890625, 0.030517578125, -0.006916046142578125, -0.011138916015625, -0.038909912109375, 0.0236968994140625, -0.037841796875, -0.01471710205078125, 0.0236053466796875, -0.019622802734375, 0.01776123046875, -0.0185089111328125, -0.01189422607421875, -0.03302001953125, -0.0028629302978515625, -0.0279388427734375, -0.0645751953125, -0.031341552734375, 0.0279083251953125, 0.07342529296875, 0.018524169921875, -0.04766845703125, 0.008026123046875, 0.0692138671875, -0.0094451904296875, -0.0055999755859375, -0.0023956298828125, 0.0008611679077148438, -0.01284027099609375, 0.0023365020751953125, -0.0150299072265625, -0.017852783203125, -0.0019969940185546875, -0.01346588134765625, -0.0009059906005859375, -0.007843017578125, -0.03570556640625, -0.033447265625, -0.0236968994140625, -0.0275421142578125, -0.036834716796875, -0.01132965087890625, 0.01617431640625, -0.00896453857421875, 0.0222320556640625, -0.034515380859375, 0.025482177734375, -0.017486572265625, 0.03363037109375, -0.0007352828979492188, 0.002162933349609375, 0.0006890296936035156, 0.059600830078125, 0.0184783935546875, -0.0264129638671875, -0.0177154541015625, -0.006084442138671875, 0.03192138671875, -0.0077972412109375, 0.01751708984375, 0.017913818359375, -0.031158447265625, 0.0197906494140625, -0.00647735595703125, 0.028106689453125, -0.01251983642578125, 0.0198211669921875, 0.00887298583984375, -0.0014677047729492188, -0.0008492469787597656, 0.02752685546875, -0.0072174072265625, -0.003307342529296875, -0.02178955078125, -0.03863525390625, 0.01190185546875, 0.05718994140625, -0.049530029296875, 0.07177734375, -0.023773193359375, -0.031524658203125, 0.0169830322265625, -0.0299224853515625, 0.04412841796875, 0.02496337890625, -0.0162811279296875, 0.0226593017578125, -0.033843994140625, 0.0275726318359375, 0.0158233642578125, 0.05078125, -0.0303192138671875, 0.04913330078125, 0.004058837890625, -0.01436614990234375, -0.0031890869140625, 0.002628326416015625, 0.05303955078125, -0.0176544189453125, -0.0174560546875, -0.0270233154296875, -0.01181793212890625, -0.00748443603515625, 0.01082611083984375, 0.01317596435546875, 0.048553466796875, 0.03265380859375, 0.0008063316345214844, 0.0177154541015625, 0.004913330078125, -0.00603485107421875, -0.034210205078125, 0.0421142578125, -0.0131988525390625, 0.01316070556640625, -0.037750244140625, 0.0706787109375, -0.049652099609375, 0.04583740234375, 0.0152740478515625, -0.002613067626953125, 0.0179443359375, -0.00968170166015625, 0.0005888938903808594, 0.02044677734375, -0.0055084228515625, 0.0015649795532226562, 0.039306640625, -0.01300811767578125, 0.0174713134765625, 0.0013227462768554688, 0.0218048095703125, 0.0021839141845703125, -0.03167724609375, 0.02252197265625, -0.034423828125, -0.01099395751953125, 0.0097808837890625, 0.00887298583984375, -0.0028781890869140625, -0.036529541015625, -0.031829833984375, 0.01287078857421875, 0.0147247314453125, -0.01080322265625, -0.0260009765625, -0.0252227783203125, 0.04229736328125, -0.036956787109375, 0.042205810546875, -0.0169219970703125, -0.040863037109375, 0.0097198486328125, -0.00345611572265625, -0.00982666015625, -0.055206298828125, -0.0357666015625, -0.0177764892578125, -0.003490447998046875, 0.0294952392578125, -0.0160064697265625, 0.052459716796875, -0.0174713134765625, -0.0390625, 0.0487060546875, -0.000012040138244628906, 0.042572021484375, 0.00797271728515625, -0.0290679931640625, -0.0042572021484375, -0.03057861328125, -0.0120086669921875, -0.00577545166015625, -0.00803375244140625, -0.007434844970703125, -0.0039215087890625, -0.007171630859375, 0.0178375244140625, 0.00267791748046875, -0.00186920166015625, -0.00797271728515625, 0.007213592529296875, -0.0017080307006835938, 0.0254669189453125, 0.027435302734375, 0.0098724365234375, -0.00199127197265625, 0.062347412109375, 0.0234832763671875, -0.020751953125, -0.037139892578125, -0.037933349609375, 0.0106658935546875, -0.0599365234375, -0.038055419921875, -0.0086822509765625, -0.043426513671875, 0.04632568359375, 0.046661376953125, -0.004161834716796875, 0.0272674560546875, 0.01073455810546875, 0.012939453125, -0.02130126953125, -0.060394287109375, 0.0067291259765625, -0.005565643310546875, 0.0243988037109375, 0.0281829833984375, 0.04156494140625, -0.022125244140625, 0.00015664100646972656, -0.01206207275390625, 0.0189361572265625, 0.01229095458984375, -0.039337158203125, -0.0517578125, 0.01357269287109375, 0.056732177734375, 0.0250244140625, 0.059295654296875, -0.0018053054809570312, 0.032745361328125, 0.029632568359375, -0.031982421875, 0.040435791015625, 0.026336669921875, 0.061737060546875, -0.01800537109375, -0.0197601318359375, 0.0501708984375, -0.030426025390625, 0.004993438720703125, 0.036651611328125, 0.0173187255859375, -0.08465576171875, -0.00902557373046875, -0.03131103515625, 0.01568603515625, 0.049041748046875, 0.019287109375, 0.006847381591796875, 0.0088348388671875, -0.031097412109375, 0.008758544921875, -0.0217437744140625, 0.004344940185546875, 0.03875732421875, -0.0031681060791015625, 0.001148223876953125, -0.0209197998046875, -0.0238037109375, -0.0294036865234375, 0.0173492431640625, 0.0213165283203125, -0.020721435546875, 0.0160064697265625, 0.004974365234375, 0.047515869140625, -0.0318603515625, -0.058807373046875, 0.01190948486328125, -0.0501708984375, -0.0341796875, 0.0165252685546875, 0.01232147216796875, 0.067138671875, 0.0271453857421875, 0.02935791015625, -0.032867431640625, 0.01280975341796875, -0.0086212158203125, 0.049072265625, -0.0165252685546875, 0.01727294921875, 0.00637054443359375, -0.043670654296875, 0.00579833984375, -0.0169525146484375, -0.0005698204040527344, 0.013092041015625, 0.06927490234375, 0.035491943359375, 0.0181884765625, -0.050689697265625, 0.0487060546875, -0.024658203125, -0.01531219482421875, 0.00042247772216796875, 0.01020050048828125, -0.052337646484375, -0.0689697265625, 0.018280029296875, -0.0782470703125, 0.0012578964233398438, -0.004535675048828125, -0.077880859375, 0.09552001953125, 0.007556915283203125, 0.0638427734375, 0.04168701171875, 0.02410888671875, -0.05059814453125, -0.0159149169921875, -0.0202484130859375, 0.034637451171875, 0.003021240234375, 0.04376220703125, -0.05810546875, -0.029754638671875, 0.024444580078125, 0.0738525390625, 0.08355712890625, 0.0196075439453125, -0.023712158203125, -0.00196075439453125, 0.0570068359375, 0.03558349609375, -0.01284027099609375, 0.016754150390625, 0.02581787109375, 0.051300048828125, 0.0870361328125, -0.0232696533203125, 0.05792236328125, -0.02899169921875, 0.017913818359375, 0.02838134765625, 0.003143310546875, 0.0168914794921875, -0.0283966064453125, 0.01288604736328125, 0.005558013916015625, -0.02801513671875, -0.006443023681640625, -0.0199432373046875, 0.0204620361328125, 0.0106658935546875, -0.013641357421875, 0.023956298828125, 0.00015997886657714844, 0.0003662109375, 0.0197296142578125, -0.01158905029296875, -0.01065826416015625, 0.050201416015625, -0.001556396484375, 0.01488494873046875, 0.02825927734375, 0.00649261474609375, 0.01145172119140625, 0.0374755859375, 0.0650634765625, 0.0185394287109375, 0.01800537109375, -0.04986572265625, 0.01151275634765625, 0.01800537109375, 0.06390380859375, -0.04925537109375, -0.050537109375, 0.0028228759765625, 0.00391387939453125, 0.004314422607421875, 0.03131103515625, 0.0302734375, 0.0419921875, 0.061767578125, -0.057952880859375, 0.0180206298828125, 0.0323486328125, 0.0008258819580078125, -0.01494598388671875, 0.0014514923095703125, -0.033599853515625, 0.0240478515625, -0.030181884765625, -0.06365966796875, 0.00787353515625, 0.09051513671875, 0.050201416015625, 0.04095458984375, -0.048614501953125, -0.06884765625, -0.032958984375, 0.0418701171875, -0.01232147216796875, 0.03759765625, -0.035369873046875, -0.0225982666015625, -0.03533935546875, 0.0257110595703125, 0.0380859375, 0.033843994140625, 0.04937744140625, 0.0142974853515625, -0.0259552001953125, 0.005222320556640625, 0.0198822021484375, -0.03448486328125, 0.01149749755859375, -0.046844482421875, -0.00594329833984375, -0.0011653900146484375, -0.01593017578125, -0.0037708282470703125, -0.0270843505859375, 0.020782470703125, 0.0308990478515625, -0.040679931640625, 0.00943756103515625, -0.055755615234375, -0.00759124755859375, -0.00705718994140625, 0.057861328125, 0.03204345703125, -0.08135986328125, 0.0023059844970703125, -0.034515380859375, -0.0869140625, 0.04083251953125, 0.056671142578125, -0.017913818359375, -0.01385498046875, 0.032379150390625, -0.069091796875, 0.0110321044921875, 0.04962158203125, 0.00836944580078125, -0.014801025390625, -0.00740814208984375, -0.0243377685546875, -0.04473876953125, -0.01548004150390625, 0.003444671630859375, -0.0030612945556640625, 0.0234375, 0.0172882080078125, 0.00946044921875, 0.008056640625, 0.01459503173828125, -0.00960540771484375, 0.01345062255859375, 0.03045654296875, -0.039154052734375, -0.0009765625, 0.006595611572265625, 0.0006580352783203125, 0.023834228515625, 0.02703857421875, 0.02960205078125, -0.038818359375, 0.0049285888671875, -0.0201873779296875, 0.013946533203125, -0.0027370452880859375, 0.06597900390625, -0.017242431640625, -0.0234527587890625, -0.054229736328125, -0.02618408203125, 0.049407958984375, 0.034423828125, -0.01050567626953125, 0.0263671875, 0.0239715576171875, -0.00798797607421875, 0.019317626953125, -0.0198211669921875, 0.0303802490234375, 0.032135009765625, 0.01324462890625, -0.015472412109375, -0.044036865234375, -0.0283966064453125, -0.0254974365234375, -0.0011053085327148438, 0.00627899169921875, -0.021331787109375, 0.003711700439453125, -0.0215911865234375, -0.01477813720703125, 0.026519775390625, -0.006847381591796875, 0.00955963134765625, 0.00876617431640625, -0.0114288330078125, -0.0213165283203125, 0.0006952285766601562, -0.0169525146484375, -0.0095367431640625, -0.007595062255859375, -0.00742340087890625, 0.0237274169921875, -0.046661376953125, -0.015869140625, 0.0272064208984375, 0.01334381103515625, -0.004901885986328125, -0.060089111328125, 0.041473388671875, -0.043212890625, 0.03057861328125, -0.0168914794921875, -0.0156402587890625, 0.0203094482421875, 0.0281524658203125, -0.005031585693359375, -0.007526397705078125, -0.007343292236328125, 0.0229949951171875, 0.03118896484375, -0.0008816719055175781, 0.00566864013671875, -0.00218963623046875, -0.020050048828125, 0.0347900390625, -0.003200531005859375, 0.0631103515625, -0.0211029052734375, -0.021881103515625, 0.018341064453125, -0.012451171875, -0.048431396484375, -0.03741455078125, 0.02606201171875, -0.06927490234375, -0.01111602783203125, 0.009765625, 0.017120361328125, 0.0457763671875, -0.0260162353515625, -0.12152099609375, 0.10272216796875, -0.0501708984375, -0.036224365234375, -0.060211181640625, 0.0050506591796875, -0.011199951171875, 0.0126190185546875, -0.01514434814453125, -0.04205322265625, -0.028106689453125, 0.029693603515625, 0.0178680419921875, 0.025482177734375, 0.026031494140625, 0.007022857666015625, -0.06689453125, -0.01488494873046875, -0.0389404296875, 0.017608642578125, 0.00038933753967285156, -0.0157318115234375, 0.045562744140625, 0.0261688232421875, -0.0005474090576171875, -0.021148681640625, 0.03515625, -0.051605224609375, -0.031402587890625, -0.03936767578125, -0.0085296630859375, -0.00335693359375, 0.0867919921875, 0.048370361328125, 0.01007080078125, -0.035064697265625, -0.00792694091796875, -0.0242919921875, -0.00970458984375, -0.01509857177734375, 0.00695037841796875, -0.06317138671875, -0.0257415771484375, 0.0216217041015625, 0.00965118408203125, 0.0117034912109375, -0.0216064453125, -0.017822265625, -0.0173187255859375, 0.0115509033203125, 0.022613525390625, -0.051788330078125, 0.04107666015625, 0.03875732421875, -0.040496826171875, -0.031219482421875, 0.0001512765884399414, -0.0196380615234375, -0.002620697021484375, -0.0222625732421875, -0.023223876953125, -0.01387786865234375, -0.012298583984375, 0.035064697265625, -0.0162353515625, 0.04473876953125, -0.0265655517578125, 0.00223541259765625, -0.03729248046875, 0.021728515625, 0.0088653564453125, 0.02337646484375, -0.03863525390625, 0.050201416015625, 0.01617431640625, 0.077880859375, -0.03338623046875, -0.025054931640625, -0.013671875, -0.01032257080078125, -0.01477813720703125, 0.0406494140625, 0.03302001953125, -0.0092926025390625, -0.0125732421875, 0.0086212158203125, -0.043304443359375, -0.060150146484375, 0.0255279541015625, -0.00936126708984375, 0.016143798828125, 0.032135009765625 ]
ecf8d364aad151775c30858e9c69df6ded1a8dff
Wordpress Stackexchange Q: Override get_template_directory() in child theme? Is it possible to replace a get_template_directory() in my child's functions.php file? I want to make changes to the file: /** * Load Custom Post types file. */ require get_template_directory() . '/inc/post-types.php'; I'd obviously prefer my work not be overwritten when I update my theme, so can I un-register the parent file and then re-register my child's file in my child's functions file? A: Late answer, but in Wordpress 4.7 two new functions were introduced to address this question. get_theme_file_path() (for absolute file paths) and get_theme_file_uri() (for URLs) work just like get_template_part() in that they will automatically look in the child theme for that file first, then fallback to the parent theme. In your example, you could rewrite it using 4.7 to look like this: /** * Load Custom Post types file. */ require get_theme_file_path( 'inc/post-types.php' ); More information here: https://make.wordpress.org/core/2016/09/09/new-functions-hooks-and-behaviour-for-theme-developers-in-wordpress-4-7/
Q: Override get_template_directory() in child theme? Is it possible to replace a get_template_directory() in my child's functions.php file? I want to make changes to the file: /** * Load Custom Post types file. */ require get_template_directory() . '/inc/post-types.php'; I'd obviously prefer my work not be overwritten when I update my theme, so can I un-register the parent file and then re-register my child's file in my child's functions file? A: Late answer, but in Wordpress 4.7 two new functions were introduced to address this question. get_theme_file_path() (for absolute file paths) and get_theme_file_uri() (for URLs) work just like get_template_part() in that they will automatically look in the child theme for that file first, then fallback to the parent theme. In your example, you could rewrite it using 4.7 to look like this: /** * Load Custom Post types file. */ require get_theme_file_path( 'inc/post-types.php' ); More information here: https://make.wordpress.org/core/2016/09/09/new-functions-hooks-and-behaviour-for-theme-developers-in-wordpress-4-7/ A: You need to use get_stylesheet_directory_uri() instead of get_template_directory() in your child theme. From the WordPress codex: get_template_directory_uri() In the event that a child theme is being used, the parent theme directory URI will be returned. get_template_directory_uri() should be used for resources that are not intended to be included in/over-ridden by a child theme. Use get_stylesheet_directory_uri() to include resources that are intended to be included in/over-ridden by the child theme. get_stylesheet_directory_uri() In the event a child theme is being used, this function will return the child's theme directory URI. Use get_template_directory_uri() to avoid being overridden by a child theme.
wordpress
{ "language": "en", "length": 246, "provenance": "stackexchange_00019.jsonl.gz:456784", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/192773" }
[ 0.007415771484375, -0.0303192138671875, -0.014068603515625, -0.0390625, -0.0186767578125, -0.00698089599609375, 0.0195465087890625, 0.00615692138671875, -0.006542205810546875, 0.004070281982421875, -0.0191497802734375, 0.00128936767578125, -0.019317626953125, -0.017120361328125, 0.003849029541015625, -0.0311431884765625, 0.03582763671875, -0.07269287109375, 0.0113677978515625, -0.032806396484375, 0.03485107421875, -0.02301025390625, 0.06658935546875, 0.04052734375, 0.0312042236328125, -0.0037326812744140625, 0.037384033203125, -0.028167724609375, -0.00524139404296875, -0.039215087890625, 0.013885498046875, 0.039154052734375, 0.0269622802734375, 0.0165557861328125, -0.037750244140625, -0.0153045654296875, 0.0015821456909179688, 0.007633209228515625, 0.0004639625549316406, 0.01012420654296875, 0.028167724609375, -0.0175628662109375, -0.00640869140625, 0.0231781005859375, -0.01055145263671875, -0.044677734375, 0.040557861328125, -0.0335693359375, 0.01045989990234375, 0.027130126953125, 0.027099609375, 0.0022716522216796875, 0.0224456787109375, 0.026092529296875, -0.0084991455078125, -0.0007157325744628906, -0.031707763671875, 0.024810791015625, 0.0188140869140625, -0.00142669677734375, -0.005817413330078125, 0.01131439208984375, 0.0100250244140625, -0.0017366409301757812, 0.01108551025390625, -0.00553131103515625, -0.032501220703125, 0.0163116455078125, -0.03558349609375, 0.0083160400390625, 0.0338134765625, -0.0379638671875, -0.002521514892578125, -0.01166534423828125, 0.0123443603515625, 0.004486083984375, -0.00489044189453125, -0.00948333740234375, 0.01473236083984375, 0.0157928466796875, -0.003963470458984375, -0.020843505859375, -0.004016876220703125, -0.038543701171875, 0.03717041015625, -0.0031528472900390625, -0.00439453125, -0.004825592041015625, -0.03173828125, 0.00975799560546875, -0.035247802734375, -0.05419921875, 0.0250701904296875, 0.026123046875, -0.0084228515625, -0.00725555419921875, 0.04156494140625, 0.039703369140625, -0.03057861328125, 0.02008056640625, -0.00782012939453125, -0.0350341796875, 0.038543701171875, -0.034088134765625, 0.0162200927734375, 0.037261962890625, -0.031768798828125, 0.0021686553955078125, 0.05853271484375, 0.04425048828125, 0.0251007080078125, 0.031280517578125, -0.0279083251953125, -0.01108551025390625, -0.05218505859375, 0.048309326171875, -0.0230560302734375, -0.038238525390625, -0.00257110595703125, 0.0254364013671875, 0.0318603515625, 0.03643798828125, 0.0220489501953125, -0.05718994140625, -0.004642486572265625, -0.024322509765625, -0.052459716796875, -0.04632568359375, 0.02557373046875, 0.0160369873046875, -0.0184326171875, -0.023040771484375, 0.0221405029296875, 0.040740966796875, 0.020599365234375, -0.0172576904296875, 0.005672454833984375, -0.00273895263671875, -0.00012540817260742188, 0.0184173583984375, 0.0174713134765625, -0.06927490234375, -0.0218963623046875, 0.041015625, 0.01158905029296875, 0.01444244384765625, 0.00341796875, -0.0028324127197265625, 0.01152801513671875, 0.01971435546875, -0.022705078125, -0.019256591796875, 0.048065185546875, 0.01442718505859375, -0.0018444061279296875, -0.03973388671875, 0.0321044921875, -0.037017822265625, 0.0025157928466796875, -0.0526123046875, 0.0025463104248046875, -0.002841949462890625, 0.008331298828125, -0.00811004638671875, -0.037445068359375, 0.0121002197265625, -0.018310546875, -0.01203155517578125, 0.0185699462890625, -0.034423828125, 0.072265625, -0.0262451171875, -0.041168212890625, 0.0031147003173828125, 0.0289459228515625, 0.01605224609375, -0.01319122314453125, 0.023590087890625, 0.0193328857421875, 0.0308685302734375, -0.0022106170654296875, -0.0300140380859375, 0.0301971435546875, -0.0107879638671875, -0.057830810546875, 0.0102386474609375, -0.0004930496215820312, 0.0094757080078125, 0.01885986328125, 0.01383209228515625, 0.037689208984375, 0.027313232421875, -0.057220458984375, 0.034393310546875, 0.01174163818359375, -0.0021820068359375, 0.01026153564453125, 0.0213470458984375, 0.00018537044525146484, -0.031768798828125, 0.01552581787109375, -0.00591278076171875, 0.0202178955078125, -0.00356292724609375, -0.0205078125, 0.00043082237243652344, -0.0102691650390625, 0.0261688232421875, 0.007396697998046875, 0.043487548828125, 0.01073455810546875, 0.01155853271484375, -0.0296630859375, -0.011199951171875, -0.017242431640625, -0.02191162109375, -0.019561767578125, 0.05181884765625, 0.00565338134765625, 0.0499267578125, 0.01357269287109375, -0.01519775390625, 0.01389312744140625, -0.004261016845703125, 0.031951904296875, 0.01543426513671875, -0.027191162109375, -0.00942230224609375, -0.001617431640625, 0.037994384765625, -0.08441162109375, 0.031646728515625, -0.01143646240234375, 0.0009207725524902344, -0.044097900390625, -0.029449462890625, -0.033111572265625, -0.042877197265625, 0.013763427734375, 0.061431884765625, 0.032318115234375, 0.0188446044921875, -0.0144195556640625, -0.005443572998046875, 0.06744384765625, 0.0009303092956542969, 0.00485992431640625, -0.0106201171875, 0.0246124267578125, 0.050689697265625, 0.003986358642578125, 0.005268096923828125, 0.006526947021484375, -0.0258636474609375, 0.01338958740234375, 0.0311126708984375, 0.0011854171752929688, -0.0386962890625, 0.0215606689453125, -0.004627227783203125, 0.0294036865234375, -0.002925872802734375, -0.06231689453125, 0.03302001953125, 0.03228759765625, 0.0147705078125, 0.03131103515625, 0.0123138427734375, -0.030731201171875, 0.009918212890625, 0.03033447265625, -0.007007598876953125, 0.0020465850830078125, 0.036468505859375, -0.0128631591796875, 0.00882720947265625, -0.016448974609375, 0.0085601806640625, -0.0271148681640625, 0.0012807846069335938, 0.0049285888671875, 0.03778076171875, -0.02471923828125, -0.0011415481567382812, -0.024200439453125, -0.041046142578125, 0.0004892349243164062, 0.0545654296875, -0.0095367431640625, 0.00838470458984375, 0.0242156982421875, 0.045196533203125, -0.0118560791015625, 0.041259765625, -0.0214996337890625, 0.017303466796875, 0.034698486328125, 0.0036296844482421875, 0.0264892578125, -0.013763427734375, 0.010589599609375, 0.0305328369140625, -0.01494598388671875, 0.00811767578125, 0.0188446044921875, -0.01247406005859375, 0.0360107421875, 0.00775909423828125, 0.004543304443359375, -0.0275726318359375, -0.00708770751953125, 0.021484375, 0.024444580078125, 0.02044677734375, -0.00141143798828125, -0.032562255859375, -0.006561279296875, 0.00762939453125, -0.037261962890625, -0.0249481201171875, -0.003139495849609375, -0.01568603515625, -0.01434326171875, 0.0035533905029296875, -0.00044226646423339844, -0.01381683349609375, -0.012908935546875, 0.0081634521484375, 0.03619384765625, -0.046295166015625, -0.04266357421875, -0.056915283203125, -0.07794189453125, -0.059326171875, 0.0159912109375, -0.003917694091796875, 0.0017290115356445312, 0.0233001708984375, 0.001087188720703125, -0.05267333984375, 0.0011186599731445312, 0.0689697265625, 0.006587982177734375, -0.0006122589111328125, 0.017364501953125, -0.01666259765625, 0.033721923828125, 0.0087127685546875, -0.0247039794921875, 0.0253753662109375, -0.026763916015625, -0.036651611328125, -0.0082550048828125, -0.034881591796875, -0.01236724853515625, 0.09271240234375, 0.034210205078125, -0.016082763671875, 0.04345703125, -0.047119140625, -0.0592041015625, -0.0161590576171875, -0.050537109375, 0.07244873046875, 0.0296783447265625, -0.0016889572143554688, -0.023712158203125, 0.058258056640625, 0.0304107666015625, 0.02337646484375, 0.03289794921875, -0.0211181640625, 0.0673828125, -0.00907135009765625, 0.00870513916015625, -0.06915283203125, 0.05816650390625, -0.004398345947265625, -0.01137542724609375, 0.0208282470703125, 0.0197601318359375, 0.002986907958984375, -0.01216888427734375, -0.053802490234375, -0.07177734375, 0.061279296875, -0.051513671875, -0.0159149169921875, -0.057769775390625, -0.0174102783203125, -0.0084686279296875, 0.08453369140625, -0.0243988037109375, 0.0036773681640625, 0.023162841796875, 0.0208282470703125, -0.04150390625, -0.04449462890625, -0.06719970703125, 0.01413726806640625, -0.0343017578125, -0.0190887451171875, -0.0240478515625, -0.0185089111328125, -0.01123046875, 0.036376953125, -0.0106048583984375, -0.021270751953125, 0.02557373046875, -0.01274871826171875, 0.0153656005859375, 0.025909423828125, -0.019744873046875, 0.0180816650390625, -0.0246734619140625, -0.0272674560546875, -0.08489990234375, -0.0276031494140625, -0.03521728515625, 0.0897216796875, 0.03265380859375, -0.01070404052734375, -0.0180511474609375, 0.055419921875, 0.029327392578125, -0.01092529296875, 0.023345947265625, 0.002605438232421875, -0.0208587646484375, -0.0130157470703125, 0.0216827392578125, -0.0306854248046875, 0.0014562606811523438, -0.0206756591796875, -0.0599365234375, 0.00872802734375, -0.00534820556640625, 0.0362548828125, 0.0221405029296875, -0.030517578125, -0.0465087890625, -0.0282745361328125, -0.047332763671875, -0.006137847900390625, 0.00939178466796875, -0.05291748046875, -0.041839599609375, -0.0640869140625, 0.03790283203125, 0.022491455078125, -0.0355224609375, -0.01108551025390625, 0.032257080078125, 0.027191162109375, -0.041595458984375, 0.05194091796875, 0.0144805908203125, 0.027130126953125, 0.0031337738037109375, 0.0060882568359375, -0.0035877227783203125, -0.01305389404296875, 0.0183563232421875, 0.0048828125, -0.03460693359375, 0.006610870361328125, 0.1053466796875, 0.0208282470703125, 0.0099029541015625, -0.01097869873046875, -0.0174560546875, 0.0036792755126953125, 0.0223846435546875, -0.0005545616149902344, -0.019012451171875, -0.0291748046875, 0.0328369140625, 0.01366424560546875, 0.00699615478515625, -0.050445556640625, -0.0601806640625, 0.019287109375, -0.00868988037109375, -0.0161590576171875, 0.004352569580078125, -0.004566192626953125, 0.0301513671875, 0.002643585205078125, -0.001384735107421875, 0.034881591796875, 0.056060791015625, 0.0234375, 0.029052734375, 0.046905517578125, -0.006015777587890625, -0.0210723876953125, 0.00970458984375, -0.00917816162109375, 0.0116729736328125, -0.0107269287109375, -0.031646728515625, 0.0180816650390625, -0.00452423095703125, -0.0197601318359375, -0.022064208984375, 0.031646728515625, 0.024688720703125, -0.00914764404296875, -0.035064697265625, -0.04559326171875, 0.0305938720703125, -0.048431396484375, -0.013214111328125, 0.038848876953125, -0.042694091796875, -0.00913238525390625, -0.0083770751953125, 0.0223388671875, -0.03863525390625, 0.0010366439819335938, 0.03155517578125, 0.01468658447265625, 0.00548553466796875, 0.0040283203125, 0.00392913818359375, 0.029937744140625, -0.0180511474609375, 0.038238525390625, -0.05902099609375, -0.0233917236328125, 0.002780914306640625, 0.06280517578125, -0.0108184814453125, -0.019256591796875, 0.02777099609375, -0.01053619384765625, 0.002895355224609375, 0.0189666748046875, 0.00017189979553222656, -0.029510498046875, -0.0008463859558105469, -0.01207733154296875, 0.0118255615234375, -0.028594970703125, -0.018280029296875, 0.0160369873046875, -0.030487060546875, -0.01555633544921875, 0.05029296875, -0.0577392578125, -0.0045318603515625, 0.0218658447265625, -0.045501708984375, 0.01434326171875, 0.0263214111328125, -0.058135986328125, -0.0758056640625, 0.01226043701171875, -0.0136871337890625, 0.0271759033203125, -0.0307159423828125, 0.0024089813232421875, -0.002559661865234375, -0.003177642822265625, 0.0019931793212890625, 0.0244598388671875, 0.0467529296875, 0.011505126953125, -0.05303955078125, 0.0226898193359375, -0.05828857421875, -0.0211944580078125, -0.0543212890625, -0.05755615234375, -0.0721435546875, 0.020904541015625, -0.03515625, 0.006183624267578125, -0.0114593505859375, 0.0235443115234375, 0.006038665771484375, 0.033294677734375, -0.017181396484375, 0.035186767578125, -0.003803253173828125, 0.059967041015625, -0.00708770751953125, -0.000055670738220214844, 0.01361083984375, 0.01401519775390625, -0.0214385986328125, 0.0015554428100585938, 0.0088348388671875, -0.011932373046875, -0.021026611328125, -0.023162841796875, -0.005279541015625, 0.02423095703125, 0.068115234375, 0.004138946533203125, 0.01444244384765625, -0.0211029052734375, -0.0095672607421875, -0.0292205810546875, 0.040924072265625, -0.036224365234375, 0.02587890625, -0.039886474609375, -0.0007266998291015625, 0.020050048828125, 0.0016918182373046875, -0.0302734375, 0.036590576171875, 0.0074005126953125, 0.022613525390625, 0.00682830810546875, -0.09820556640625, 0.0845947265625, 0.04461669921875, 0.01363372802734375, 0.050994873046875, -0.046478271484375, 0.019134521484375, 0.029998779296875, 0.0150909423828125, 0.0059051513671875, -0.0001798868179321289, 0.06768798828125, 0.00962066650390625, -0.02386474609375, 0.0234832763671875, -0.0430908203125, -0.0015707015991210938, 0.01336669921875, 0.038116455078125, -0.0294952392578125, -0.006809234619140625, 0.02154541015625, 0.0114288330078125, 0.0160369873046875, 0.0065765380859375, -0.024200439453125, 0.01523590087890625, -0.016876220703125, 0.0015802383422851562, -0.0238189697265625, -0.004360198974609375, 0.038330078125, -0.017913818359375, 0.007312774658203125, 0.057769775390625, 0.01861572265625, 0.023773193359375, 0.000125885009765625, -0.0005588531494140625, 0.0416259765625, 0.00946807861328125, 0.0279541015625, -0.0092926025390625, -0.027862548828125, -0.0302581787109375, -0.00440216064453125, -0.02618408203125, -0.03399658203125, 0.009918212890625, -0.0061187744140625, 0.015869140625, 0.016845703125, -0.004268646240234375, -0.01678466796875, -0.016265869140625, -0.00295257568359375, -0.037017822265625, -0.01076507568359375, 0.0038852691650390625, 0.04638671875, -0.033782958984375, 0.019012451171875, -0.03997802734375, 0.0157470703125, 0.0028362274169921875, -0.01441192626953125, 0.07757568359375, -0.07110595703125, -0.0043487548828125, 0.0394287109375, -0.0008983612060546875, -0.0200653076171875, 0.0125579833984375, 0.040802001953125, -0.043548583984375, -0.039794921875, 0.029296875, -0.041961669921875, -0.0406494140625, 0.006500244140625, -0.045623779296875, 0.13525390625, -0.00997161865234375, 0.042449951171875, 0.039306640625, 0.0484619140625, -0.049591064453125, 0.0360107421875, -0.01531219482421875, 0.0202178955078125, 0.052642822265625, 0.001739501953125, -0.00994873046875, -0.0069122314453125, -0.01180267333984375, 0.04205322265625, 0.05633544921875, 0.0128021240234375, -0.0216827392578125, -0.016815185546875, 0.055419921875, 0.04034423828125, -0.00809478759765625, 0.021026611328125, -0.023406982421875, -0.0038909912109375, 0.01123809814453125, -0.03277587890625, 0.024871826171875, -0.01192474365234375, -0.02667236328125, 0.004955291748046875, 0.0139007568359375, -0.0006465911865234375, -0.025543212890625, -0.046844482421875, -0.046478271484375, -0.013763427734375, 0.0234375, -0.004360198974609375, -0.01177978515625, 0.0173187255859375, 0.018035888671875, -0.0489501953125, 0.012237548828125, -0.035308837890625, 0.039306640625, -0.00817108154296875, 0.0007867813110351562, -0.036651611328125, 0.01026153564453125, 0.016448974609375, -0.03900146484375, -0.028839111328125, 0.04779052734375, -0.036712646484375, 0.0574951171875, 0.04412841796875, 0.054107666015625, 0.03338623046875, 0.059967041015625, 0.017425537109375, 0.0244903564453125, -0.04681396484375, -0.034393310546875, 0.026153564453125, 0.0005831718444824219, -0.038299560546875, 0.010223388671875, -0.0235137939453125, -0.0251922607421875, 0.0098724365234375, -0.04571533203125, -0.03167724609375, 0.009857177734375, 0.015899658203125, -0.01904296875, -0.034210205078125, 0.038482666015625, -0.0428466796875, -0.04901123046875, 0.0071563720703125, 0.0330810546875, 0.042449951171875, 0.00226593017578125, 0.06427001953125, 0.02337646484375, -0.025054931640625, 0.0025005340576171875, -0.016571044921875, -0.019744873046875, 0.005977630615234375, -0.0250396728515625, -0.019500732421875, 0.0288238525390625, 0.040374755859375, 0.054656982421875, -0.01323699951171875, 0.053863525390625, 0.0130462646484375, -0.02886962890625, -0.0024242401123046875, 0.00020253658294677734, -0.0032367706298828125, 0.01364898681640625, -0.04547119140625, -0.0022373199462890625, -0.0103759765625, -0.019287109375, -0.00812530517578125, -0.021636962890625, 0.03662109375, -0.047393798828125, 0.075927734375, -0.016357421875, 0.013671875, 0.041839599609375, 0.00902557373046875, 0.056427001953125, 0.004512786865234375, -0.057373046875, -0.0008745193481445312, -0.01335906982421875, -0.039886474609375, 0.0075531005859375, 0.0350341796875, -0.035675048828125, 0.026458740234375, 0.0021915435791015625, -0.006656646728515625, -0.0176849365234375, 0.033905029296875, -0.0224151611328125, -0.0016851425170898438, 0.03515625, 0.006053924560546875, -0.0282135009765625, -0.021026611328125, -0.0179901123046875, 0.037811279296875, 0.0084381103515625, 0.11529541015625, -0.042449951171875, 0.0252532958984375, 0.0010004043579101562, 0.039947509765625, -0.03790283203125, -0.0330810546875, 0.0655517578125, -0.0271759033203125, -0.00787353515625, 0.003265380859375, -0.044830322265625, 0.0250396728515625, 0.050201416015625, -0.031341552734375, 0.02392578125, 0.01128387451171875, 0.01145172119140625, -0.036224365234375, 0.0155487060546875, -0.0213623046875, -0.0127716064453125, -0.013092041015625, 0.0012388229370117188, 0.0186614990234375, -0.0012273788452148438, -0.0177001953125, 0.025634765625, 0.04345703125, -0.01287841796875, 0.041473388671875, -0.00859832763671875, 0.07342529296875, 0.044677734375, -0.0283966064453125, -0.044158935546875, 0.011962890625, -0.0166168212890625, 0.0132598876953125, 0.00572967529296875, 0.055023193359375, -0.0006628036499023438, -0.0496826171875, -0.0022430419921875, -0.00492095947265625, 0.0302734375, -0.0255584716796875, 0.01354217529296875, -0.0093994140625, 0.007724761962890625, 0.023406982421875, -0.061553955078125, -0.01158905029296875, -0.027587890625, -0.00762939453125, 0.0217132568359375, -0.00945281982421875, -0.01016998291015625, -0.004138946533203125, 0.0079803466796875, 0.049041748046875, 0.033782958984375, -0.10479736328125, 0.041717529296875, -0.0078277587890625, 0.06494140625, 0.007747650146484375, -0.0029850006103515625, -0.0057830810546875, 0.0114288330078125, -0.0250701904296875, -0.0120391845703125, -0.025238037109375, 0.01441192626953125, -0.00530242919921875, 0.01540374755859375, 0.0302581787109375, 0.0010328292846679688, -0.00787353515625, 0.06500244140625, -0.002239227294921875, 0.10992431640625, -0.07672119140625, -0.027587890625, -0.0014743804931640625, 0.0020160675048828125, -0.0172119140625, -0.037322998046875, 0.0175018310546875, -0.06396484375, 0.00432586669921875, 0.00702667236328125, 0.00022113323211669922, 0.0275726318359375, -0.0307159423828125, -0.0780029296875, 0.060882568359375, -0.01349639892578125, -0.038238525390625, -0.045501708984375, 0.01215362548828125, -0.02264404296875, 0.0292205810546875, -0.00739288330078125, -0.01006317138671875, 0.007598876953125, 0.056427001953125, 0.013946533203125, 0.0210418701171875, 0.02044677734375, 0.0226898193359375, -0.055389404296875, 0.009124755859375, -0.00902557373046875, -0.0171356201171875, -0.024627685546875, 0.011566162109375, 0.00994873046875, 0.0205230712890625, -0.0147552490234375, -0.0024776458740234375, 0.02001953125, -0.0214385986328125, -0.008514404296875, -0.01953125, -0.006313323974609375, 0.0237274169921875, 0.06549072265625, 0.04736328125, 0.0179595947265625, -0.048583984375, -0.02325439453125, -0.0254364013671875, -0.02606201171875, -0.00243377685546875, 0.033111572265625, -0.0716552734375, 0.01541900634765625, 0.054046630859375, -0.0245513916015625, -0.0218048095703125, -0.0261077880859375, -0.042877197265625, -0.00589752197265625, -0.051177978515625, -0.0292510986328125, 0.010345458984375, 0.0135498046875, 0.0504150390625, -0.014190673828125, 0.03802490234375, -0.0211334228515625, 0.0204925537109375, 0.0347900390625, -0.0045166015625, 0.018341064453125, 0.0494384765625, -0.05401611328125, -0.00933837890625, 0.0204010009765625, 0.03167724609375, -0.022705078125, -0.0184173583984375, 0.01520538330078125, -0.01253509521484375, -0.01397705078125, -0.032318115234375, -0.0047149658203125, 0.06842041015625, -0.0233154296875, 0.1119384765625, 0.01195526123046875, 0.060028076171875, 0.00933837890625, 0.036346435546875, -0.01491546630859375, -0.0083465576171875, -0.0063323974609375, -0.017730712890625, -0.0042266845703125, 0.0005502700805664062, -0.0261993408203125, -0.0479736328125, 0.0293731689453125, -0.01318359375, -0.013763427734375, 0.011383056640625 ]
7a277e143c86dea1f30fcbc84c98c51a5e82e7fe
Wordpress Stackexchange Q: Get all products with a custom attribute I want do a custom query to get all products with an especific attribute ("demo" in my case) The query what i want returns from this: a:5:{s:4:"demo"; a:6:{s:4:"name"; s:4:"DEMO"; s:5:"value"; s:366:"LINK TO DEMO"; s:8:"position"; s:1:"0"; s:10:"is_visible"; i:0; s:12:"is_variation"; i:0; s:11:"is_taxonomy"; i:0; } } I don't know how do an $args to get products. I want $args be something like this: $args = array ( 'meta_query' => array( array( 'key' => 'meta_value', 'value' => 'demo', 'compare' => 'LIKE', ), ), ); Thanks! A: You have written key as meta_value. It should be your meta name. The name you have given to your custom fields or meta. Then use the following query. $args = array ( 'post_type' => 'your-post-type', 'posts_per_page' => -1, 'meta_query' => array( array( 'key' => 'demo', 'value' => '', 'compare' => '!=' ), ), ); By default the compare is set to =
Q: Get all products with a custom attribute I want do a custom query to get all products with an especific attribute ("demo" in my case) The query what i want returns from this: a:5:{s:4:"demo"; a:6:{s:4:"name"; s:4:"DEMO"; s:5:"value"; s:366:"LINK TO DEMO"; s:8:"position"; s:1:"0"; s:10:"is_visible"; i:0; s:12:"is_variation"; i:0; s:11:"is_taxonomy"; i:0; } } I don't know how do an $args to get products. I want $args be something like this: $args = array ( 'meta_query' => array( array( 'key' => 'meta_value', 'value' => 'demo', 'compare' => 'LIKE', ), ), ); Thanks! A: You have written key as meta_value. It should be your meta name. The name you have given to your custom fields or meta. Then use the following query. $args = array ( 'post_type' => 'your-post-type', 'posts_per_page' => -1, 'meta_query' => array( array( 'key' => 'demo', 'value' => '', 'compare' => '!=' ), ), ); By default the compare is set to = A: OK I HAVE ALREADY!! yuhuuu! Thanks a lot guys!! I have this: $args = array ( 'post_type' => 'product', 'posts_per_page' => -1, 'meta_query' => array( array( 'value' => 'demo', 'compare' => 'like' ), ), ); Well this works at least for me Thanks thanks!! Best regards! A: try something like this $args = array( "post_type" => "product", "meta_query" => array( array( "key" => "demo", "value" => "abc", "compare" => "EXISTS", ), ), ); $query = new WP_Query( $args ); A: I know this is old, but straight sql, here are my solutions: Get all meta data for a product: SELECT meta_key, meta_value FROM wp_postmeta WHERE wp_postmeta.post_id = 626 Get products with specific meta data SELECT p.id, p.post_title, m.meta_key, m.meta_value FROM wp_posts p INNER JOIN wp_postmeta m ON p.id=m.post_id AND m.meta_key='_auction_dates_to' APPEND TO GET META DATA FOR A SPECIFIC PRODUCT AND p.id=626 Append to get specific meta value AND m.meta_value='today'
wordpress
{ "language": "en", "length": 302, "provenance": "stackexchange_00019.jsonl.gz:456826", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/192917" }
[ 0.00006961822509765625, -0.005481719970703125, -0.013427734375, 0.0016660690307617188, 0.0012636184692382812, -0.0211181640625, 0.0293426513671875, -0.0032196044921875, -0.007648468017578125, 0.0220184326171875, -0.0258331298828125, -0.030364990234375, -0.021392822265625, -0.02587890625, 0.0179901123046875, -0.061614990234375, 0.0318603515625, 0.0249481201171875, 0.060821533203125, -0.0004146099090576172, 0.0275726318359375, 0.0112457275390625, 0.02801513671875, -0.006927490234375, 0.0482177734375, -0.057769775390625, 0.017791748046875, -0.049591064453125, 0.0193328857421875, -0.0288848876953125, 0.0213470458984375, 0.024566650390625, 0.036102294921875, -0.036651611328125, 0.054962158203125, 0.02783203125, 0.052764892578125, -0.0276336669921875, 0.035919189453125, -0.0089569091796875, 0.03656005859375, -0.0233612060546875, -0.04351806640625, 0.045135498046875, -0.0184478759765625, -0.035614013671875, 0.03338623046875, -0.0300750732421875, 0.0281219482421875, -0.01445770263671875, -0.01776123046875, 0.005916595458984375, -0.008148193359375, -0.0154876708984375, -0.01251983642578125, -0.002956390380859375, 0.00855255126953125, -0.04815673828125, 0.0285491943359375, -0.0147552490234375, -0.014984130859375, -0.0278167724609375, 0.047515869140625, 0.01090240478515625, -0.00464630126953125, 0.01004791259765625, 0.0150146484375, 0.00878143310546875, -0.019989013671875, -0.04205322265625, 0.01629638671875, -0.0245208740234375, 0.007106781005859375, -0.01334381103515625, 0.005779266357421875, -0.057525634765625, -0.0016002655029296875, -0.04608154296875, -0.0005826950073242188, 0.031585693359375, -0.0058135986328125, -0.0191650390625, -0.06451416015625, -0.0136871337890625, 0.006439208984375, -0.00814056396484375, -0.0142974853515625, -0.0084075927734375, 0.017822265625, -0.056182861328125, -0.0053863525390625, -0.0179290771484375, -0.0391845703125, 0.01381683349609375, -0.015655517578125, -0.042449951171875, 0.007770538330078125, 0.0175933837890625, -0.0030689239501953125, 0.011627197265625, -0.022308349609375, -0.046844482421875, 0.011444091796875, -0.0248870849609375, 0.01377105712890625, 0.0137481689453125, -0.01480865478515625, 0.013031005859375, 0.050628662109375, 0.04559326171875, 0.0067596435546875, 0.0278167724609375, -0.049896240234375, -0.0100555419921875, -0.025421142578125, 0.07415771484375, -0.0198516845703125, -0.026031494140625, -0.0202484130859375, 0.0335693359375, 0.0204315185546875, 0.049713134765625, 0.05633544921875, -0.06689453125, 0.03717041015625, 0.0338134765625, -0.0196380615234375, -0.07440185546875, -0.033203125, 0.0234527587890625, -0.01454925537109375, 0.01009368896484375, 0.0120697021484375, 0.02099609375, -0.029754638671875, -0.004779815673828125, 0.02459716796875, -0.0191192626953125, -0.0012044906616210938, 0.0276031494140625, 0.00835418701171875, -0.047088623046875, 0.0161895751953125, 0.023162841796875, -0.01245880126953125, -0.024810791015625, 0.00853729248046875, 0.039581298828125, 0.01377105712890625, -0.004238128662109375, -0.01059722900390625, 0.0113372802734375, 0.0181884765625, -0.00087738037109375, -0.0313720703125, -0.00466156005859375, 0.039825439453125, -0.03399658203125, -0.0283966064453125, -0.036529541015625, 0.0012674331665039062, 0.0149993896484375, 0.019195556640625, -0.0384521484375, -0.033233642578125, -0.0189361572265625, -0.0178985595703125, -0.01441192626953125, 0.022247314453125, 0.06756591796875, -0.0004973411560058594, 0.00897216796875, 0.09197998046875, 0.0233612060546875, -0.012420654296875, 0.0012845993041992188, -0.01198577880859375, 0.048095703125, 0.02392578125, -0.056060791015625, -0.049285888671875, -0.054351806640625, 0.055938720703125, -0.01398468017578125, -0.047882080078125, 0.036102294921875, 0.01177215576171875, 0.05609130859375, -0.0011739730834960938, 0.004863739013671875, 0.0364990234375, 0.0091094970703125, -0.047698974609375, 0.06378173828125, 0.004062652587890625, -0.0281219482421875, -0.044189453125, -0.0126190185546875, -0.00875091552734375, -0.016021728515625, -0.0110015869140625, 0.020233154296875, 0.00934600830078125, 0.01535797119140625, -0.05218505859375, 0.0540771484375, -0.022430419921875, 0.04315185546875, -0.0560302734375, 0.004322052001953125, 0.043365478515625, -0.0169830322265625, -0.033935546875, 0.04559326171875, 0.006282806396484375, -0.038482666015625, 0.00698089599609375, 0.040679931640625, -0.012847900390625, -0.0024089813232421875, 0.0011386871337890625, -0.07177734375, 0.008544921875, 0.07952880859375, 0.0293731689453125, 0.01995849609375, -0.0191802978515625, 0.025634765625, 0.05841064453125, 0.0355224609375, 0.01059722900390625, -0.0272369384765625, 0.0128173828125, 0.0166168212890625, -0.0152740478515625, 0.020751953125, 0.01306915283203125, -0.0594482421875, 0.01177978515625, 0.0340576171875, 0.0133056640625, 0.03314208984375, 0.0036144256591796875, -0.0036983489990234375, 0.060150146484375, 0.02288818359375, 0.020904541015625, -0.034912109375, 0.0104217529296875, 0.0250244140625, -0.020751953125, 0.0107879638671875, 0.036895751953125, 0.0271453857421875, 0.0318603515625, 0.0310821533203125, -0.0094757080078125, 0.035919189453125, -0.061431884765625, 0.033233642578125, -0.034423828125, -0.0120391845703125, 0.01898193359375, -0.013641357421875, 0.0667724609375, 0.042388916015625, 0.0614013671875, 0.053741455078125, -0.034210205078125, 0.02734375, -0.0118255615234375, -0.0007710456848144531, -0.0109100341796875, -0.015625, -0.004817962646484375, 0.00722503662109375, -0.033660888671875, 0.0211181640625, 0.045166015625, -0.009368896484375, 0.005733489990234375, 0.0372314453125, -0.0230560302734375, -0.012603759765625, 0.000820159912109375, -0.04290771484375, -0.0325927734375, 0.004108428955078125, -0.01256561279296875, -0.022308349609375, 0.0164031982421875, 0.014373779296875, -0.007213592529296875, -0.005657196044921875, -0.01004791259765625, -0.0193634033203125, -0.0535888671875, -0.0775146484375, 0.0755615234375, -0.04443359375, 0.03863525390625, 0.08685302734375, -0.0022525787353515625, 0.0279388427734375, -0.0184478759765625, -0.031951904296875, -0.037872314453125, 0.0276641845703125, -0.0180206298828125, -0.041412353515625, -0.068115234375, -0.00897979736328125, 0.040557861328125, 0.05853271484375, 0.045654296875, 0.005084991455078125, 0.01131439208984375, 0.061767578125, -0.06524658203125, -0.10357666015625, 0.0675048828125, -0.058685302734375, -0.004146575927734375, -0.033172607421875, -0.037567138671875, -0.0272064208984375, -0.00748443603515625, -0.0014934539794921875, 0.0008602142333984375, -0.0004820823669433594, -0.06329345703125, -0.0168609619140625, -0.05328369140625, 0.032989501953125, -0.0006036758422851562, 0.02490234375, 0.0174560546875, 0.041534423828125, 0.011962890625, -0.035186767578125, 0.042236328125, 0.034637451171875, -0.01363372802734375, 0.021575927734375, 0.012237548828125, -0.0270843505859375, 0.0253143310546875, -0.01532745361328125, 0.0426025390625, 0.038970947265625, -0.0258941650390625, 0.013916015625, 0.01763916015625, 0.003940582275390625, 0.038116455078125, -0.0166015625, -0.0435791015625, 0.0748291015625, 0.050537109375, 0.0120849609375, -0.042755126953125, -0.01361083984375, -0.048004150390625, 0.0230865478515625, 0.0234832763671875, 0.0089874267578125, -0.00955963134765625, 0.0190582275390625, 0.007511138916015625, -0.01519775390625, 0.019134521484375, -0.0187530517578125, -0.015899658203125, -0.00803375244140625, 0.0205078125, -0.024200439453125, 0.015899658203125, -0.049957275390625, 0.037384033203125, 0.0175323486328125, -0.022552490234375, 0.007724761962890625, -0.034942626953125, 0.002033233642578125, -0.0228424072265625, 0.0665283203125, 0.0526123046875, 0.0433349609375, -0.0236053466796875, -0.061065673828125, -0.0369873046875, 0.07275390625, 0.01213836669921875, -0.0303497314453125, -0.03680419921875, -0.01326751708984375, -0.01149749755859375, 0.027740478515625, -0.01216888427734375, 0.0182647705078125, -0.0770263671875, 0.00464630126953125, -0.00984954833984375, -0.051177978515625, -0.02386474609375, -0.044586181640625, -0.0682373046875, -0.0244598388671875, 0.027374267578125, 0.004070281982421875, 0.0296173095703125, 0.02691650390625, 0.015289306640625, 0.028411865234375, -0.0034465789794921875, -0.0072021484375, -0.05511474609375, -0.02142333984375, 0.0216522216796875, 0.040863037109375, -0.01788330078125, 0.0104522705078125, -0.036773681640625, 0.038360595703125, 0.0188446044921875, -0.0073699951171875, 0.00807952880859375, 0.0115509033203125, -0.031982421875, -0.022125244140625, 0.01061248779296875, -0.053619384765625, -0.007266998291015625, -0.0309906005859375, -0.006015777587890625, -0.0222625732421875, -0.035675048828125, -0.0164031982421875, -0.0176849365234375, -0.036102294921875, -0.048583984375, -0.0130462646484375, 0.0175018310546875, 0.0095977783203125, -0.0198211669921875, 0.013519287109375, -0.0084228515625, -0.0272979736328125, 0.01398468017578125, 0.0256195068359375, -0.03289794921875, 0.00804901123046875, 0.027801513671875, 0.0245819091796875, -0.0273895263671875, -0.014373779296875, -0.0187530517578125, 0.00650787353515625, -0.0293426513671875, 0.0194854736328125, -0.0220794677734375, -0.003345489501953125, 0.056640625, -0.046295166015625, 0.0196685791015625, -0.0021800994873046875, 0.03375244140625, -0.0144195556640625, -0.0080413818359375, 0.016815185546875, -0.012451171875, -0.0208740234375, 0.0214385986328125, -0.004489898681640625, -0.0438232421875, 0.00890350341796875, 0.043426513671875, -0.0120697021484375, 0.012359619140625, -0.0153045654296875, -0.0199737548828125, 0.01062774658203125, 0.005077362060546875, -0.0152435302734375, 0.0129547119140625, -0.0111541748046875, -0.00882720947265625, 0.00021827220916748047, -0.00872802734375, 0.007030487060546875, 0.036224365234375, -0.02899169921875, 0.0189971923828125, 0.0150909423828125, -0.0390625, -0.0205230712890625, -0.0164794921875, 0.047454833984375, -0.007137298583984375, -0.041259765625, -0.00018310546875, -0.0285797119140625, 0.0100250244140625, 0.0207366943359375, -0.0247802734375, 0.0299530029296875, 0.048583984375, -0.017913818359375, -0.006778717041015625, -0.0718994140625, 0.03875732421875, -0.039886474609375, -0.01367950439453125, -0.00815582275390625, -0.006397247314453125, -0.03228759765625, 0.09771728515625, -0.0355224609375, 0.062469482421875, -0.002742767333984375, 0.0300140380859375, 0.01293182373046875, 0.04998779296875, 0.0271453857421875, -0.0391845703125, 0.003231048583984375, 0.02020263671875, -0.026397705078125, -0.04052734375, -0.0159759521484375, 0.025177001953125, 0.0251007080078125, 0.0175018310546875, 0.001800537109375, 0.01136016845703125, 0.00363922119140625, -0.0187530517578125, 0.0267333984375, -0.0044403076171875, -0.0341796875, -0.034881591796875, 0.0084228515625, 0.022857666015625, 0.0003845691680908203, 0.0021419525146484375, 0.006549835205078125, -0.0238494873046875, 0.00820159912109375, -0.0330810546875, 0.019622802734375, -0.0198516845703125, 0.00010514259338378906, -0.041412353515625, -0.0272064208984375, 0.0241546630859375, -0.043853759765625, 0.0119781494140625, -0.023193359375, -0.05438232421875, 0.046295166015625, -0.0167388916015625, 0.053253173828125, -0.042083740234375, -0.0197906494140625, -0.049896240234375, 0.0151214599609375, 0.02978515625, 0.01163482666015625, -0.04156494140625, 0.0018930435180664062, -0.0191650390625, -0.011566162109375, 0.068115234375, -0.0003955364227294922, -0.0181121826171875, -0.054412841796875, -0.0093994140625, 0.04071044921875, -0.007541656494140625, -0.0114593505859375, 0.01058197021484375, -0.0141448974609375, -0.036224365234375, 0.0240631103515625, -0.02490234375, 0.00901031494140625, -0.01020050048828125, -0.0016164779663085938, -0.0238189697265625, -0.00815582275390625, -0.01013946533203125, 0.01015472412109375, -0.00848388671875, -0.056060791015625, 0.0005664825439453125, -0.01210784912109375, -0.032745361328125, 0.03253173828125, 0.050537109375, 0.0075531005859375, -0.0012216567993164062, -0.006938934326171875, 0.0012035369873046875, -0.00472259521484375, 0.0268402099609375, 0.0186767578125, 0.037322998046875, 0.0186614990234375, -0.0280609130859375, 0.0004696846008300781, -0.0026569366455078125, -0.0061798095703125, 0.0193328857421875, -0.0072174072265625, 0.012939453125, 0.023101806640625, -0.0287933349609375, 0.025482177734375, 0.043121337890625, 0.007602691650390625, 0.0304718017578125, 0.0101776123046875, 0.00698089599609375, 0.01336669921875, -0.01300811767578125, 0.028106689453125, 0.0025482177734375, 0.0673828125, 0.0007104873657226562, -0.0191802978515625, 0.0628662109375, -0.033935546875, -0.04315185546875, 0.0106658935546875, 0.00576019287109375, -0.03997802734375, 0.01395416259765625, 0.0175628662109375, 0.043243408203125, -0.0138397216796875, 0.0408935546875, -0.0181884765625, -0.01264190673828125, -0.061767578125, -0.0152435302734375, -0.0274810791015625, -0.04254150390625, 0.00908660888671875, 0.00928497314453125, -0.00644683837890625, -0.03253173828125, -0.0250701904296875, -0.03033447265625, -0.017578125, 0.029632568359375, -0.0267791748046875, -0.01505279541015625, -0.01001739501953125, -0.00597381591796875, -0.0189666748046875, -0.08740234375, -0.026336669921875, -0.0313720703125, -0.016143798828125, 0.01517486572265625, 0.024749755859375, 0.032135009765625, 0.05096435546875, 0.008941650390625, 0.0028324127197265625, 0.01519012451171875, -0.01412200927734375, -0.0382080078125, -0.0008754730224609375, -0.03094482421875, 0.00905609130859375, 0.007251739501953125, 0.005584716796875, -0.040924072265625, 0.01027679443359375, 0.0005459785461425781, 0.0556640625, 0.060516357421875, -0.030242919921875, -0.01473236083984375, 0.06207275390625, 0.019134521484375, -0.036468505859375, 0.00797271728515625, -0.0079803466796875, -0.045318603515625, -0.0002142190933227539, 0.0018510818481445312, -0.0192413330078125, -0.03314208984375, -0.00859832763671875, -0.059234619140625, 0.0286102294921875, 0.0068511962890625, 0.01318359375, 0.030853271484375, -0.007137298583984375, -0.042633056640625, -0.039947509765625, -0.036834716796875, 0.029083251953125, 0.03851318359375, 0.04901123046875, -0.04937744140625, -0.0433349609375, 0.0189971923828125, 0.07073974609375, 0.033935546875, 0.010345458984375, -0.04388427734375, -0.01523590087890625, 0.0186614990234375, 0.040740966796875, 0.00704193115234375, 0.031494140625, 0.0084228515625, 0.05975341796875, 0.0870361328125, -0.0545654296875, 0.046722412109375, 0.0019779205322265625, 0.0100555419921875, 0.021759033203125, 0.0200958251953125, 0.03662109375, -0.00475311279296875, 0.005443572998046875, -0.015716552734375, -0.0006957054138183594, 0.019927978515625, -0.003143310546875, 0.027191162109375, 0.0191497802734375, 0.039306640625, -0.020721435546875, -0.0352783203125, -0.01471710205078125, 0.034942626953125, 0.0166473388671875, 0.0154876708984375, 0.06500244140625, 0.00998687744140625, 0.04205322265625, 0.00797271728515625, 0.01513671875, 0.0022068023681640625, 0.0244903564453125, 0.0104217529296875, -0.00018906593322753906, -0.0270538330078125, -0.053497314453125, 0.050079345703125, 0.0634765625, 0.006923675537109375, -0.04913330078125, -0.053863525390625, 0.0215301513671875, 0.0007333755493164062, 0.0031280517578125, 0.01403045654296875, -0.00710296630859375, 0.0175628662109375, 0.05133056640625, -0.0268402099609375, 0.01371002197265625, 0.014923095703125, 0.024658203125, 0.01012420654296875, -0.0140228271484375, -0.0489501953125, -0.00461578369140625, -0.030792236328125, 0.0029315948486328125, -0.0005145072937011719, 0.04949951171875, 0.0281524658203125, 0.038909912109375, -0.020233154296875, -0.052337646484375, -0.0307159423828125, 0.031402587890625, -0.017547607421875, 0.0304412841796875, -0.039306640625, -0.04388427734375, -0.0167236328125, 0.049591064453125, 0.035247802734375, 0.01245880126953125, 0.0305938720703125, 0.02325439453125, 0.00832366943359375, 0.0266265869140625, 0.0621337890625, -0.007396697998046875, -0.0318603515625, -0.0418701171875, 0.0242767333984375, 0.033721923828125, 0.025238037109375, 0.009246826171875, 0.032073974609375, 0.036041259765625, 0.0068359375, 0.06304931640625, 0.0017223358154296875, 0.01337432861328125, 0.0031795501708984375, 0.002239227294921875, 0.02978515625, 0.0304412841796875, -0.029571533203125, -0.0018815994262695312, -0.031036376953125, -0.0090484619140625, 0.0016002655029296875, 0.022064208984375, -0.010162353515625, 0.038970947265625, -0.01386260986328125, -0.0384521484375, 0.0059356689453125, 0.037200927734375, -0.00705718994140625, 0.04510498046875, 0.01264190673828125, -0.0034351348876953125, -0.0174407958984375, 0.01053619384765625, 0.01557159423828125, -0.0169830322265625, -0.01763916015625, 0.0160064697265625, -0.003910064697265625, -0.00960540771484375, -0.01369476318359375, 0.03204345703125, -0.0036182403564453125, -0.0251617431640625, 0.05755615234375, 0.007320404052734375, -0.001132965087890625, -0.026641845703125, 0.045989990234375, 0.01107025146484375, 0.0621337890625, -0.045013427734375, -0.029754638671875, 0.0186614990234375, 0.0294342041015625, -0.0301361083984375, -0.0102996826171875, -0.0318603515625, -0.056976318359375, -0.0784912109375, -0.0201873779296875, 0.039154052734375, 0.0161285400390625, -0.038177490234375, 0.004150390625, 0.0134735107421875, -0.01378631591796875, 0.035400390625, 0.0004177093505859375, 0.06182861328125, 0.033966064453125, -0.004909515380859375, 0.0225677490234375, 0.037689208984375, -0.0219879150390625, 0.044952392578125, 0.00980377197265625, 0.0279388427734375, 0.0078582763671875, 0.03924560546875, -0.003192901611328125, 0.0226287841796875, 0.040985107421875, 0.0079803466796875, 0.0034694671630859375, 0.0211029052734375, -0.0186614990234375, -0.0274810791015625, -0.0225982666015625, -0.048248291015625, -0.029388427734375, 0.005611419677734375, 0.004119873046875, -0.004703521728515625, -0.036895751953125, -0.04541015625, 0.004024505615234375, 0.0210418701171875, 0.0034389495849609375, -0.0355224609375, 0.0132904052734375, -0.0135498046875, 0.02203369140625, -0.0292205810546875, -0.044677734375, 0.0185089111328125, 0.02587890625, -0.00524139404296875, 0.037567138671875, -0.0090484619140625, -0.01947021484375, 0.0213775634765625, 0.0032024383544921875, 0.0242767333984375, -0.022308349609375, -0.029052734375, 0.014190673828125, 0.02752685546875, 0.038543701171875, 0.046630859375, -0.0009832382202148438, 0.02374267578125, 0.0147247314453125, -0.055419921875, -0.09783935546875, 0.0190277099609375, -0.0872802734375, 0.01355743408203125, -0.00412750244140625, 0.0321044921875, 0.0677490234375, -0.001605987548828125, -0.07012939453125, 0.048370361328125, -0.029510498046875, -0.02923583984375, -0.04217529296875, 0.01320648193359375, 0.002048492431640625, 0.04144287109375, 0.0052947998046875, -0.022216796875, -0.0369873046875, -0.011322021484375, 0.01474761962890625, -0.01433563232421875, 0.01190185546875, 0.0648193359375, -0.0899658203125, 0.018798828125, -0.0194549560546875, -0.026702880859375, -0.007511138916015625, 0.0005135536193847656, 0.012054443359375, 0.018768310546875, -0.0221710205078125, -0.035064697265625, 0.0105438232421875, 0.0078887939453125, 0.0156402587890625, 0.01151275634765625, -0.057586669921875, -0.0171051025390625, 0.0222015380859375, 0.04840087890625, 0.023193359375, -0.00841522216796875, -0.00946807861328125, -0.0083465576171875, -0.0020751953125, -0.0248870849609375, 0.00916290283203125, -0.08258056640625, -0.0308837890625, -0.0006670951843261719, -0.01345062255859375, 0.032806396484375, -0.002559661865234375, -0.0186309814453125, 0.0169219970703125, 0.038818359375, -0.00646209716796875, -0.0313720703125, 0.0173187255859375, 0.004482269287109375, -0.017974853515625, -0.01800537109375, -0.03204345703125, 0.00641632080078125, -0.00691986083984375, -0.036041259765625, -0.0094757080078125, -0.01404571533203125, 0.038360595703125, 0.00038552284240722656, 0.0281982421875, -0.0506591796875, 0.056732177734375, 0.00836944580078125, 0.0003762245178222656, 0.0048828125, -0.00482177734375, -0.01212310791015625, -0.042083740234375, 0.029693603515625, 0.00408172607421875, 0.0814208984375, -0.0118255615234375, 0.036956787109375, 0.01398468017578125, -0.01329803466796875, -0.037017822265625, 0.0101776123046875, 0.020111083984375, -0.05426025390625, 0.007289886474609375, -0.0011720657348632812, -0.04833984375, -0.009124755859375, 0.00955963134765625, 0.101318359375, -0.04718017578125, 0.00794219970703125 ]
ff0e46166b6874dbf47b7c48f0f1012b445c7601
Wordpress Stackexchange Q: Make Category Base Appear in Posts Permalink (but not tags) I have a slight problem with WP permalink structure. My aim is to make posts permalink appear with a specific category and it's base, for example: domain.com/custom-base/%category%/%postname% And categories should appear as: domain.com/custom-base/%category% Problem is that when I specify a category base in permalink settings the posts doesn't "take" that base and shows this: domain.com/%category%/%postname% The problem seems to be solved when I manually add that base near custom structure as: domain.com/custom-base/%category%/%postname% But then all the other links (including tags) has that structure which I don't need: domain.com/custom-base/tag/%tag% So my main question is how can I achieve my goal of posts and categories without affecting anything else: Post: domain.com/custom-base/%category%/%postname% Category: domain.com/custom-base/%category% Thanks a lot! :)
Q: Make Category Base Appear in Posts Permalink (but not tags) I have a slight problem with WP permalink structure. My aim is to make posts permalink appear with a specific category and it's base, for example: domain.com/custom-base/%category%/%postname% And categories should appear as: domain.com/custom-base/%category% Problem is that when I specify a category base in permalink settings the posts doesn't "take" that base and shows this: domain.com/%category%/%postname% The problem seems to be solved when I manually add that base near custom structure as: domain.com/custom-base/%category%/%postname% But then all the other links (including tags) has that structure which I don't need: domain.com/custom-base/tag/%tag% So my main question is how can I achieve my goal of posts and categories without affecting anything else: Post: domain.com/custom-base/%category%/%postname% Category: domain.com/custom-base/%category% Thanks a lot! :)
wordpress
{ "language": "en", "length": 126, "provenance": "stackexchange_00019.jsonl.gz:456867", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193068" }
[ 0.055755615234375, 0.0176239013671875, -0.00821685791015625, -0.0338134765625, 0.031097412109375, -0.023040771484375, 0.02935791015625, -0.031463623046875, -0.0174407958984375, 0.00701904296875, -0.0225982666015625, -0.00553131103515625, -0.01175689697265625, -0.03759765625, 0.0244903564453125, -0.0204620361328125, 0.002010345458984375, 0.005779266357421875, 0.028228759765625, -0.016510009765625, 0.023406982421875, -0.0271453857421875, 0.031219482421875, -0.004032135009765625, 0.032562255859375, -0.0250091552734375, 0.03167724609375, -0.0596923828125, 0.0247802734375, -0.045928955078125, 0.0178680419921875, 0.01229095458984375, 0.0227508544921875, -0.036163330078125, 0.04742431640625, 0.033782958984375, 0.015655517578125, -0.017852783203125, 0.0244598388671875, -0.0029010772705078125, 0.019622802734375, -0.0186614990234375, 0.06561279296875, 0.00574493408203125, 0.045135498046875, -0.0230712890625, 0.02337646484375, -0.0946044921875, 0.0187835693359375, -0.054595947265625, -0.0056915283203125, 0.018096923828125, 0.0161285400390625, -0.046112060546875, -0.03631591796875, -0.0250244140625, -0.06060791015625, -0.001964569091796875, 0.041168212890625, 0.00475311279296875, -0.00988006591796875, -0.0394287109375, 0.022216796875, 0.0014667510986328125, -0.0244598388671875, -0.03515625, 0.0262908935546875, 0.01323699951171875, -0.059600830078125, -0.0144500732421875, 0.065673828125, -0.00749969482421875, -0.00717926025390625, -0.01515960693359375, -0.031768798828125, -0.0151214599609375, -0.004077911376953125, -0.032928466796875, 0.015869140625, 0.007335662841796875, 0.01214599609375, 0.0084075927734375, 0.0272674560546875, -0.047943115234375, 0.0163421630859375, -0.024658203125, 0.00281524658203125, -0.00118255615234375, -0.0232391357421875, -0.0210723876953125, -0.0130462646484375, -0.0237579345703125, -0.0565185546875, 0.030792236328125, 0.0187225341796875, -0.02294921875, 0.0005893707275390625, 0.018310546875, -0.00033164024353027344, 0.0103759765625, 0.02691650390625, -0.045013427734375, 0.033843994140625, -0.033416748046875, 0.0004715919494628906, 0.0200653076171875, -0.002719879150390625, 0.050262451171875, 0.06829833984375, 0.042388916015625, 0.01800537109375, 0.0248565673828125, 0.0094146728515625, 0.02020263671875, -0.0284423828125, -0.0066070556640625, -0.0404052734375, 0.0066986083984375, -0.035675048828125, 0.02789306640625, -0.017242431640625, 0.043060302734375, 0.0159759521484375, -0.0207061767578125, 0.01093292236328125, 0.0386962890625, 0.013153076171875, -0.083740234375, -0.0228118896484375, 0.0048370361328125, -0.02532958984375, 0.01702880859375, 0.055206298828125, 0.0290374755859375, 0.00774383544921875, -0.017486572265625, 0.0052032470703125, -0.061370849609375, -0.0210418701171875, 0.0093841552734375, -0.004791259765625, 0.005153656005859375, 0.047271728515625, -0.042755126953125, 0.0167236328125, 0.033447265625, 0.01543426513671875, 0.0038318634033203125, -0.003505706787109375, -0.017333984375, 0.012603759765625, -0.03759765625, 0.05035400390625, -0.01152801513671875, -0.0484619140625, -0.028533935546875, 0.0028858184814453125, -0.028411865234375, -0.0283660888671875, -0.060394287109375, 0.056488037109375, -0.01369476318359375, 0.0008854866027832031, -0.010223388671875, -0.047607421875, 0.01184844970703125, -0.068603515625, -0.01526641845703125, 0.0180816650390625, -0.0200042724609375, 0.030609130859375, 0.023712158203125, -0.0026950836181640625, -0.00457763671875, 0.02203369140625, -0.00910186767578125, 0.00433349609375, 0.0034008026123046875, 0.0209503173828125, 0.05303955078125, 0.00632476806640625, -0.034637451171875, 0.01517486572265625, -0.01042938232421875, -0.04632568359375, 0.0279998779296875, 0.0312042236328125, 0.0748291015625, -0.04266357421875, 0.030364990234375, 0.02801513671875, 0.03424072265625, -0.042755126953125, -0.007236480712890625, -0.016082763671875, 0.0076751708984375, -0.01493072509765625, 0.01485443115234375, -0.00946807861328125, -0.00173187255859375, -0.041900634765625, 0.029998779296875, 0.0039043426513671875, 0.04718017578125, 0.04412841796875, 0.0215606689453125, 0.004657745361328125, 0.0289459228515625, 0.0151519775390625, 0.0134124755859375, 0.027801513671875, 0.026336669921875, -0.0194091796875, -0.07623291015625, -0.0526123046875, 0.045074462890625, 0.00258636474609375, -0.017364501953125, -0.01715087890625, -0.01206207275390625, 0.0007829666137695312, -0.025909423828125, -0.03497314453125, 0.0572509765625, 0.0140380859375, -0.001132965087890625, -0.0117950439453125, -0.025299072265625, -0.044097900390625, 0.04107666015625, -0.0989990234375, 0.0023326873779296875, 0.052978515625, 0.008148193359375, -0.060455322265625, 0.00992584228515625, 0.006977081298828125, 0.00937652587890625, -0.0212249755859375, 0.049713134765625, 0.022735595703125, 0.0249176025390625, -0.0224456787109375, -0.01312255859375, 0.052154541015625, -0.03118896484375, 0.0010099411010742188, -0.0037136077880859375, 0.02044677734375, 0.03399658203125, 0.0283050537109375, -0.0092926025390625, 0.0219268798828125, -0.045379638671875, 0.004863739013671875, 0.03662109375, 0.017181396484375, -0.00849151611328125, -0.002887725830078125, -0.0070037841796875, 0.030120849609375, -0.0097808837890625, -0.061126708984375, 0.00868988037109375, 0.028289794921875, 0.0238189697265625, 0.0292816162109375, 0.030731201171875, -0.019989013671875, 0.00937652587890625, -0.0008168220520019531, -0.00366973876953125, -0.01436614990234375, 0.01194000244140625, 0.011444091796875, -0.0015230178833007812, -0.031768798828125, 0.002635955810546875, -0.0140533447265625, 0.0057220458984375, -0.01641845703125, 0.045074462890625, -0.01922607421875, -0.0150299072265625, -0.035797119140625, -0.05218505859375, -0.0112152099609375, 0.0022411346435546875, -0.041778564453125, -0.033203125, 0.0002758502960205078, 0.0241851806640625, -0.000055670738220214844, -0.016143798828125, 0.025970458984375, -0.0021419525146484375, 0.00010770559310913086, -0.059539794921875, 0.053985595703125, -0.057891845703125, 0.0106964111328125, 0.056304931640625, -0.006031036376953125, 0.0192413330078125, 0.005157470703125, -0.00000959634780883789, 0.0216522216796875, 0.005046844482421875, -0.0222625732421875, -0.01511383056640625, -0.05908203125, -0.036468505859375, 0.028778076171875, 0.02569580078125, 0.010528564453125, -0.0447998046875, -0.0037784576416015625, 0.0193634033203125, -0.06329345703125, -0.07073974609375, 0.0283050537109375, -0.0042266845703125, 0.0238800048828125, 0.006214141845703125, 0.0119781494140625, -0.043304443359375, 0.0172119140625, -0.0171051025390625, -0.01474761962890625, -0.03497314453125, -0.050140380859375, -0.0660400390625, -0.06561279296875, -0.0238494873046875, -0.005588531494140625, -0.005191802978515625, -0.00567626953125, 0.01174163818359375, -0.00830841064453125, -0.03692626953125, -0.0031452178955078125, 0.022216796875, 0.0082855224609375, -0.01806640625, -0.005146026611328125, -0.015777587890625, 0.026031494140625, 0.0030345916748046875, 0.0305023193359375, 0.037750244140625, -0.0293121337890625, -0.00952911376953125, -0.0156097412109375, -0.00147247314453125, 0.0122528076171875, 0.01084136962890625, 0.01800537109375, 0.041534423828125, 0.033782958984375, -0.01332855224609375, -0.017364501953125, -0.0035953521728515625, -0.0267791748046875, -0.0030002593994140625, -0.00730133056640625, 0.00003075599670410156, -0.0185394287109375, 0.021392822265625, 0.0196075439453125, 0.0276641845703125, 0.039337158203125, -0.0306854248046875, 0.0189056396484375, 0.006969451904296875, 0.01143646240234375, -0.03070068359375, -0.01055908203125, -0.05865478515625, 0.046478271484375, -0.0170440673828125, -0.058929443359375, -0.055999755859375, 0.0274200439453125, -0.0301361083984375, -0.057342529296875, 0.028167724609375, -0.07916259765625, -0.0230255126953125, -0.048095703125, -0.012176513671875, -0.0008358955383300781, 0.0765380859375, -0.01128387451171875, -0.006671905517578125, 0.00260162353515625, 0.00730133056640625, -0.046478271484375, -0.031585693359375, -0.054351806640625, -0.006893157958984375, -0.06549072265625, 0.0169219970703125, 0.0084686279296875, -0.0367431640625, -0.004238128662109375, -0.0126190185546875, -0.03851318359375, -0.0260162353515625, 0.038482666015625, 0.00792694091796875, -0.0213623046875, -0.03399658203125, -0.0183563232421875, -0.04571533203125, -0.028106689453125, 0.0182952880859375, -0.06329345703125, -0.0248260498046875, 0.028289794921875, 0.04510498046875, -0.0137786865234375, 0.0148773193359375, -0.018310546875, 0.0438232421875, 0.020355224609375, 0.005413055419921875, 0.0212554931640625, -0.005588531494140625, 0.006984710693359375, 0.0138092041015625, 0.02117919921875, -0.023956298828125, -0.007419586181640625, -0.0205078125, -0.01397705078125, 0.03558349609375, -0.0182647705078125, 0.0109405517578125, -0.004150390625, -0.01416015625, -0.032501220703125, -0.0255279541015625, -0.040496826171875, 0.0196380615234375, -0.0205078125, 0.000026166439056396484, -0.046356201171875, -0.05755615234375, 0.03863525390625, 0.01751708984375, 0.0226593017578125, 0.00199127197265625, 0.040985107421875, -0.005359649658203125, -0.032684326171875, -0.032806396484375, 0.028167724609375, 0.038055419921875, -0.0245361328125, 0.04638671875, 0.0252227783203125, -0.02447509765625, 0.046478271484375, 0.0047149658203125, 0.01555633544921875, -0.03717041015625, 0.047760009765625, -0.0035572052001953125, 0.006740570068359375, 0.0020465850830078125, 0.000598907470703125, 0.0150146484375, 0.03143310546875, -0.005596160888671875, 0.0129241943359375, -0.045654296875, 0.0239410400390625, 0.015350341796875, -0.005252838134765625, -0.047027587890625, -0.0133056640625, 0.00270843505859375, 0.041046142578125, 0.0218048095703125, 0.0174102783203125, -0.0015659332275390625, 0.01160430908203125, 0.0218048095703125, 0.006591796875, -0.03143310546875, -0.01666259765625, -0.01031494140625, 0.0178680419921875, -0.01233673095703125, 0.00293731689453125, -0.01450347900390625, 0.00817108154296875, 0.028106689453125, 0.0030670166015625, -0.0037784576416015625, -0.02716064453125, -0.0255889892578125, 0.0183563232421875, 0.0229949951171875, -0.0031223297119140625, 0.019287109375, 0.015594482421875, 0.0030841827392578125, 0.0204620361328125, -0.0141448974609375, -0.0245819091796875, -0.01904296875, 0.0262908935546875, 0.005496978759765625, -0.00238037109375, -0.002780914306640625, 0.061279296875, 0.0330810546875, 0.0140380859375, -0.0230560302734375, -0.0171356201171875, 0.016876220703125, 0.022430419921875, 0.02960205078125, -0.0266265869140625, -0.00794219970703125, 0.0006237030029296875, 0.024169921875, -0.051788330078125, -0.01092529296875, 0.002460479736328125, 0.0762939453125, -0.0080108642578125, -0.0205841064453125, 0.016021728515625, -0.038299560546875, -0.02117919921875, 0.03839111328125, -0.026275634765625, -0.045684814453125, -0.04266357421875, 0.0008420944213867188, 0.03302001953125, -0.0143890380859375, -0.018280029296875, 0.005741119384765625, -0.025848388671875, 0.030853271484375, 0.0202178955078125, -0.0023784637451171875, 0.016448974609375, -0.0014410018920898438, 0.00763702392578125, -0.0123443603515625, -0.006183624267578125, 0.003173828125, 0.012542724609375, -0.0176544189453125, -0.0138397216796875, -0.0018024444580078125, -0.00354766845703125, 0.051513671875, -0.0269012451171875, -0.026611328125, 0.01080322265625, -0.00701904296875, 0.034210205078125, 0.0188446044921875, -0.0679931640625, 0.026824951171875, -0.02886962890625, -0.0012521743774414062, -0.00945281982421875, -0.01910400390625, -0.06976318359375, -0.017181396484375, 0.051727294921875, 0.01557159423828125, 0.0294342041015625, -0.0288238525390625, -0.053497314453125, 0.021453857421875, 0.0511474609375, 0.0310211181640625, -0.0352783203125, 0.05047607421875, -0.0032024383544921875, 0.04901123046875, -0.018707275390625, 0.0027103424072265625, 0.00385284423828125, -0.0232086181640625, -0.002979278564453125, -0.071533203125, -0.00933074951171875, 0.01763916015625, -0.01763916015625, 0.027801513671875, 0.0325927734375, 0.0176849365234375, -0.0005717277526855469, 0.00006753206253051758, -0.0005812644958496094, -0.02996826171875, -0.002361297607421875, -0.0276641845703125, 0.0092010498046875, -0.0261688232421875, 0.017242431640625, 0.0439453125, -0.0152435302734375, -0.0287933349609375, 0.0006346702575683594, -0.005802154541015625, 0.01580810546875, 0.0155487060546875, -0.047637939453125, 0.005237579345703125, 0.0212249755859375, 0.0689697265625, 0.047637939453125, -0.023895263671875, 0.039642333984375, -0.00989532470703125, 0.01163482666015625, 0.020294189453125, 0.005771636962890625, 0.05078125, 0.007099151611328125, 0.00676727294921875, 0.043609619140625, -0.025909423828125, -0.019134521484375, 0.033416748046875, 0.0457763671875, -0.047271728515625, -0.01313018798828125, 0.0164337158203125, 0.00212860107421875, 0.0020656585693359375, 0.0394287109375, 0.0037364959716796875, 0.0187530517578125, -0.037200927734375, -0.031524658203125, -0.006626129150390625, 0.00310516357421875, 0.001384735107421875, -0.00037384033203125, -0.011871337890625, 0.00494384765625, 0.0164794921875, -0.01043701171875, -0.0179901123046875, 0.029541015625, 0.0009136199951171875, -0.0036144256591796875, -0.01503753662109375, 0.00830841064453125, -0.03350830078125, -0.044189453125, 0.0216827392578125, -0.0262908935546875, 0.0019683837890625, 0.026153564453125, 0.005794525146484375, -0.0012502670288085938, 0.0002799034118652344, -0.000043511390686035156, -0.002140045166015625, -0.0310821533203125, -0.042724609375, 0.03167724609375, -0.0015621185302734375, 0.00302886962890625, -0.006378173828125, -0.004787445068359375, -0.01047515869140625, -0.01242828369140625, -0.014312744140625, -0.0279388427734375, -0.062347412109375, 0.09136962890625, -0.057891845703125, 0.0006136894226074219, -0.004589080810546875, 0.0325927734375, 0.01404571533203125, -0.01087188720703125, 0.036376953125, -0.01788330078125, 0.0171051025390625, 0.0037517547607421875, 0.039337158203125, -0.0027256011962890625, 0.00033020973205566406, -0.0584716796875, 0.07586669921875, 0.007083892822265625, 0.062744140625, 0.03350830078125, 0.0161285400390625, -0.006351470947265625, 0.00629425048828125, -0.048370361328125, 0.07098388671875, 0.01409149169921875, 0.0679931640625, -0.0484619140625, -0.0173797607421875, 0.036346435546875, 0.053497314453125, 0.042236328125, 0.00897216796875, -0.0579833984375, 0.004680633544921875, 0.06268310546875, 0.0469970703125, 0.0180206298828125, 0.035369873046875, -0.019989013671875, 0.039031982421875, 0.01146697998046875, 0.005428314208984375, 0.0283355712890625, 0.026702880859375, -0.08251953125, 0.0154266357421875, 0.0352783203125, 0.06927490234375, -0.0085601806640625, -0.0005817413330078125, -0.00008547306060791016, -0.005466461181640625, 0.04046630859375, -0.071533203125, -0.0012035369873046875, 0.037109375, 0.048004150390625, -0.0928955078125, -0.056060791015625, -0.031463623046875, 0.041900634765625, 0.00940704345703125, 0.020843505859375, 0.004474639892578125, 0.0203094482421875, 0.054473876953125, -0.033233642578125, 0.0190887451171875, 0.0192108154296875, -0.049774169921875, 0.0823974609375, 0.041961669921875, 0.03857421875, -0.02410888671875, -0.021942138671875, 0.037506103515625, 0.101318359375, -0.047821044921875, -0.043426513671875, -0.0002918243408203125, 0.018310546875, 0.01934814453125, -0.0022106170654296875, 0.0171356201171875, 0.0293121337890625, 0.0657958984375, -0.039398193359375, -0.00634765625, 0.00677490234375, 0.08001708984375, -0.00855255126953125, -0.0297393798828125, -0.06414794921875, -0.034759521484375, -0.062408447265625, 0.024139404296875, 0.0284423828125, 0.06365966796875, 0.020538330078125, 0.0345458984375, -0.016876220703125, -0.0287322998046875, 0.008575439453125, 0.047637939453125, -0.0089263916015625, -0.00548553466796875, 0.007701873779296875, -0.021484375, -0.01593017578125, 0.0195770263671875, 0.0112152099609375, 0.005962371826171875, 0.020355224609375, 0.0209197998046875, -0.00968170166015625, -0.01023101806640625, 0.02227783203125, -0.00711822509765625, 0.00725555419921875, -0.05316162109375, 0.052490234375, 0.0333251953125, 0.005886077880859375, 0.0218658447265625, -0.022003173828125, 0.06683349609375, -0.0072479248046875, 0.004955291748046875, 0.004962921142578125, -0.04022216796875, 0.038543701171875, -0.0116119384765625, 0.0784912109375, 0.01323699951171875, -0.00370025634765625, 0.0055694580078125, -0.04998779296875, -0.056854248046875, 0.0335693359375, 0.046356201171875, 0.0227203369140625, -0.026336669921875, 0.0049896240234375, -0.0158843994140625, 0.0198211669921875, -0.01117706298828125, 0.021636962890625, 0.036590576171875, -0.0123443603515625, 0.015533447265625, -0.05401611328125, -0.028717041015625, -0.00975799560546875, 0.0301361083984375, -0.005702972412109375, 0.09130859375, -0.017974853515625, -0.006134033203125, -0.042236328125, 0.041900634765625, -0.07415771484375, -0.04449462890625, 0.036865234375, -0.0194091796875, -0.00946807861328125, 0.01207733154296875, -0.0164794921875, -0.01971435546875, 0.0477294921875, -0.04638671875, -0.0310211181640625, -0.01314544677734375, 0.030029296875, -0.0030364990234375, 0.01073455810546875, -0.0298004150390625, -0.06732177734375, -0.0933837890625, -0.00722503662109375, 0.022613525390625, 0.028778076171875, -0.03314208984375, 0.046661376953125, -0.0012845993041992188, 0.0005340576171875, 0.006801605224609375, -0.017822265625, 0.019287109375, 0.033172607421875, -0.0149688720703125, 0.00548553466796875, 0.04864501953125, -0.0053558349609375, 0.03070068359375, 0.01617431640625, 0.01459503173828125, 0.037841796875, -0.03619384765625, -0.01373291015625, 0.02667236328125, 0.0275115966796875, -0.00914764404296875, 0.031097412109375, -0.0184783935546875, -0.01110076904296875, 0.037139892578125, -0.033203125, -0.0235443115234375, -0.029022216796875, -0.0091552734375, 0.0198211669921875, -0.043609619140625, -0.0496826171875, -0.053070068359375, 0.01216888427734375, 0.03106689453125, 0.00409698486328125, -0.05462646484375, 0.065185546875, -0.04144287109375, 0.0223541259765625, -0.018890380859375, -0.017974853515625, 0.006847381591796875, 0.00994873046875, -0.045989990234375, 0.0141143798828125, -0.018646240234375, -0.0280914306640625, 0.003131866455078125, 0.0286865234375, 0.051177978515625, -0.042510986328125, -0.047119140625, 0.0108642578125, 0.012359619140625, 0.06298828125, 0.0362548828125, -0.007266998291015625, -0.0270538330078125, 0.042877197265625, -0.048858642578125, -0.039093017578125, 0.044189453125, -0.03131103515625, -0.033233642578125, -0.030029296875, 0.00518798828125, 0.023895263671875, -0.036346435546875, -0.04937744140625, 0.048858642578125, -0.0138702392578125, -0.029876708984375, -0.01403045654296875, -0.022674560546875, -0.013885498046875, 0.04644775390625, 0.00888824462890625, -0.0161895751953125, -0.040557861328125, 0.0197296142578125, 0.0263519287109375, 0.021209716796875, -0.00476837158203125, 0.019989013671875, -0.018218994140625, 0.03369140625, 0.034515380859375, 0.01174163818359375, 0.0298919677734375, -0.008392333984375, 0.00803375244140625, 0.044525146484375, -0.05908203125, 0.0011301040649414062, -0.041290283203125, 0.0194854736328125, 0.02490234375, -0.07122802734375, -0.043609619140625, -0.052490234375, 0.050079345703125, -0.02471923828125, 0.015960693359375, 0.007312774658203125, -0.0467529296875, -0.06884765625, -0.0060882568359375, -0.007534027099609375, 0.01031494140625, -0.06231689453125, 0.031463623046875, 0.00907135009765625, -0.023956298828125, 0.01715087890625, -0.03631591796875, -0.0382080078125, 0.03082275390625, -0.0174102783203125, 0.0015668869018554688, -0.0163421630859375, -0.003925323486328125, -0.0246734619140625, -0.002079010009765625, -0.024078369140625, -0.01183319091796875, -0.004772186279296875, -0.04486083984375, 0.01442718505859375, -0.0119171142578125, -0.0197601318359375, 0.027435302734375, 0.006526947021484375, 0.0279541015625, 0.024322509765625, 0.03826904296875, -0.00870513916015625, -0.034149169921875, 0.02593994140625, 0.0161285400390625, 0.00978851318359375, -0.047027587890625, 0.05584716796875, 0.03485107421875, 0.067138671875, 0.00833892822265625, -0.0300750732421875, -0.01398468017578125, 0.060821533203125, -0.0302276611328125, -0.015899658203125, -0.0159149169921875, -0.0313720703125, -0.0159454345703125, 0.005207061767578125, -0.01279449462890625, -0.042694091796875, 0.010345458984375, -0.05938720703125, 0.01006317138671875, 0.0227203369140625 ]
3bb7b5c4222365db8d6e24b284aeb6c3ed18e816
Wordpress Stackexchange Q: How to change user password with wp-cli? wp-cli is great. But it's not clear how I can quickly change a user password with it. How to change a user's password programatically can probably help to figure this out. Although wp user update username --field=password is not gonna cut it, apparently md5 is deprecated so it should go through wp_set_password. A: This does the trick: wp user update USERNAME --user_pass="PASSWORD" (Found it here.)
Q: How to change user password with wp-cli? wp-cli is great. But it's not clear how I can quickly change a user password with it. How to change a user's password programatically can probably help to figure this out. Although wp user update username --field=password is not gonna cut it, apparently md5 is deprecated so it should go through wp_set_password. A: This does the trick: wp user update USERNAME --user_pass="PASSWORD" (Found it here.) A: Just to append one minor thing; sometimes the password may start with the = character. I prefer using this notation, just because of that. wp user update USERNAME --user_pass="PASSWORD" A: first check the user name: wp user list then change password without leaving traces in history wp user update admin --prompt=user_pass A: I have found that sudo definitely changes the path, so I have tried using --allow-root without sudo and the commands work
wordpress
{ "language": "en", "length": 147, "provenance": "stackexchange_00019.jsonl.gz:456872", "question_score": "42", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193084" }
[ -0.005321502685546875, -0.026214599609375, -0.03033447265625, 0.0005254745483398438, -0.028472900390625, -0.040985107421875, 0.0132904052734375, -0.0012903213500976562, -0.0110931396484375, 0.0477294921875, 0.005733489990234375, -0.019256591796875, -0.003398895263671875, -0.0118408203125, -0.046173095703125, -0.03619384765625, 0.01131439208984375, 0.0178070068359375, 0.0037212371826171875, -0.021697998046875, 0.0012378692626953125, 0.0021991729736328125, 0.006633758544921875, 0.0311737060546875, 0.009613037109375, 0.00972747802734375, 0.069091796875, -0.0199127197265625, 0.01296234130859375, 0.003665924072265625, 0.019073486328125, -0.04681396484375, -0.00494384765625, 0.0174560546875, 0.00872802734375, -0.002208709716796875, -0.0230255126953125, 0.031585693359375, 0.0174102783203125, 0.0024433135986328125, 0.0161285400390625, -0.003520965576171875, -0.0272216796875, 0.03973388671875, -0.0328369140625, -0.06640625, 0.03228759765625, -0.0233917236328125, 0.0254058837890625, 0.0011377334594726562, 0.003360748291015625, 0.0079345703125, 0.0178985595703125, -0.0302886962890625, -0.013397216796875, -0.00528717041015625, -0.0104217529296875, -0.00678253173828125, 0.048248291015625, 0.00911712646484375, -0.0325927734375, -0.045135498046875, 0.025787353515625, -0.03594970703125, 0.0027618408203125, -0.0085296630859375, 0.025421142578125, 0.0212249755859375, -0.00911712646484375, 0.0011692047119140625, 0.0198211669921875, 0.00911712646484375, -0.0013494491577148438, -0.037841796875, 0.04205322265625, 0.0222930908203125, -0.0265655517578125, -0.002178192138671875, 0.01526641845703125, 0.016754150390625, 0.03826904296875, 0.0242919921875, -0.0138702392578125, -0.0104217529296875, 0.0167694091796875, 0.01415252685546875, -0.00588226318359375, -0.0272216796875, -0.001575469970703125, -0.032745361328125, -0.01450347900390625, 0.014404296875, -0.023406982421875, 0.0011224746704101562, -0.033599853515625, -0.0212860107421875, -0.00807952880859375, -0.0037994384765625, 0.0107269287109375, -0.006717681884765625, 0.01285552978515625, -0.0288543701171875, -0.029571533203125, 0.00867462158203125, -0.023040771484375, 0.0293121337890625, 0.036224365234375, 0.047821044921875, -0.0110931396484375, 0.00579071044921875, -0.0249481201171875, -0.041748046875, -0.0072784423828125, -0.037200927734375, -0.00765228271484375, 0.0291595458984375, -0.0190277099609375, 0.01837158203125, 0.00467681884765625, 0.01468658447265625, -0.00962066650390625, -0.006877899169921875, -0.0101470947265625, 0.0297088623046875, -0.00209808349609375, -0.01082611083984375, -0.0130767822265625, 0.01338958740234375, -0.0238800048828125, 0.022735595703125, -0.04156494140625, -0.0176544189453125, 0.0625, 0.0657958984375, 0.026611328125, -0.0273895263671875, 0.028472900390625, 0.008331298828125, 0.0177459716796875, 0.041046142578125, -0.030670166015625, -0.0533447265625, 0.002361297607421875, -0.005001068115234375, 0.03973388671875, 0.022216796875, 0.007537841796875, -0.0023937225341796875, 0.01383209228515625, -0.016998291015625, 0.004436492919921875, -0.01148223876953125, -0.05133056640625, 0.047088623046875, 0.09521484375, 0.0467529296875, 0.06170654296875, -0.0014657974243164062, 0.03118896484375, 0.026763916015625, 0.0079498291015625, -0.01406097412109375, 0.021270751953125, 0.05517578125, 0.006237030029296875, 0.03271484375, -0.0088043212890625, -0.0037364959716796875, 0.0281982421875, -0.007221221923828125, 0.035675048828125, -0.01209259033203125, 0.00750732421875, 0.0035457611083984375, 0.004398345947265625, 0.0179901123046875, -0.022308349609375, 0.0396728515625, 0.007450103759765625, 0.032562255859375, 0.0194854736328125, -0.03033447265625, 0.057342529296875, 0.002105712890625, -0.0217437744140625, -0.05206298828125, 0.023406982421875, 0.03509521484375, 0.04815673828125, 0.044647216796875, -0.00817108154296875, -0.0243377685546875, 0.0068817138671875, 0.0213470458984375, -0.0203857421875, -0.0264129638671875, -0.01468658447265625, 0.01056671142578125, -0.03466796875, -0.0005488395690917969, 0.033233642578125, -0.030120849609375, 0.0216827392578125, -0.023773193359375, -0.07012939453125, -0.003063201904296875, -0.033843994140625, 0.0216827392578125, -0.004364013671875, 0.0080108642578125, -0.0004405975341796875, -0.017181396484375, 0.00899505615234375, -0.04791259765625, -0.040191650390625, -0.01441192626953125, -0.03924560546875, 0.05548095703125, -0.0017881393432617188, 0.07769775390625, -0.021148681640625, -0.02294921875, -0.00276947021484375, -0.041778564453125, -0.01690673828125, -0.0286102294921875, -0.00388336181640625, -0.02081298828125, -0.0007190704345703125, -0.0184173583984375, 0.04766845703125, 0.01496124267578125, 0.025360107421875, -0.001712799072265625, -0.05517578125, -0.00698089599609375, -0.01120758056640625, -0.0382080078125, 0.002285003662109375, 0.050201416015625, 0.03582763671875, 0.01259613037109375, -0.017181396484375, -0.01439666748046875, 0.06292724609375, 0.035125732421875, 0.03314208984375, -0.0259552001953125, 0.01070404052734375, 0.051361083984375, -0.0028095245361328125, 0.0027599334716796875, -0.0012569427490234375, -0.0494384765625, -0.005817413330078125, 0.044036865234375, 0.006305694580078125, 0.031646728515625, -0.037567138671875, -0.001087188720703125, -0.00691986083984375, -0.061676025390625, -0.038665771484375, -0.020294189453125, 0.0132904052734375, -0.033935546875, -0.01311492919921875, -0.023468017578125, -0.01507568359375, -0.00890350341796875, 0.0321044921875, -0.04388427734375, 0.022216796875, 0.0305328369140625, -0.0146026611328125, 0.0209197998046875, -0.019622802734375, -0.0214385986328125, 0.0242767333984375, 0.0192718505859375, -0.0109100341796875, -0.0240478515625, 0.0003151893615722656, 0.0019855499267578125, 0.024017333984375, -0.009368896484375, 0.022552490234375, 0.0306243896484375, -0.0149078369140625, -0.018280029296875, 0.026031494140625, -0.004253387451171875, -0.01482391357421875, 0.031280517578125, -0.03179931640625, -0.03125, 0.006076812744140625, -0.0018873214721679688, 0.00943756103515625, -0.00959014892578125, -0.0072174072265625, 0.04998779296875, 0.0165557861328125, -0.0132598876953125, 0.005077362060546875, 0.01154327392578125, 0.018096923828125, -0.0233306884765625, -0.018707275390625, 0.0256195068359375, -0.03863525390625, 0.0289154052734375, -0.00238800048828125, 0.0004818439483642578, -0.0292816162109375, -0.033050537109375, -0.0286865234375, -0.0176239013671875, -0.0867919921875, -0.05316162109375, -0.08148193359375, -0.077880859375, 0.00006151199340820312, 0.0178680419921875, -0.026336669921875, 0.0253753662109375, 0.06268310546875, 0.027130126953125, 0.06109619140625, -0.042144775390625, -0.038360595703125, -0.037933349609375, -0.06219482421875, -0.0156402587890625, 0.00856781005859375, -0.0017156600952148438, -0.0166015625, 0.10174560546875, -0.01021575927734375, -0.05926513671875, -0.054931640625, 0.03570556640625, -0.0094451904296875, -0.031341552734375, 0.00843048095703125, -0.052581787109375, 0.0220184326171875, -0.0108489990234375, 0.02850341796875, 0.006378173828125, 0.0145416259765625, -0.0095672607421875, 0.0206451416015625, -0.042572021484375, 0.004581451416015625, 0.053375244140625, -0.0227203369140625, -0.040008544921875, 0.004764556884765625, -0.07122802734375, 0.037933349609375, 0.007328033447265625, 0.01271820068359375, 0.0238189697265625, -0.034027099609375, -0.0298614501953125, 0.0163726806640625, 0.0236053466796875, -0.010467529296875, 0.0237884521484375, -0.0270843505859375, -0.01409149169921875, 0.05047607421875, -0.0165863037109375, 0.006134033203125, 0.004547119140625, 0.005428314208984375, -0.0416259765625, -0.042694091796875, -0.0277099609375, -0.0244293212890625, -0.019805908203125, -0.0069732666015625, 0.006256103515625, -0.09405517578125, 0.05633544921875, -0.0438232421875, -0.01042938232421875, -0.066162109375, -0.0294952392578125, -0.015838623046875, 0.11273193359375, -0.041107177734375, -0.05450439453125, 0.029998779296875, 0.054107666015625, -0.07281494140625, -0.029449462890625, 0.00428009033203125, -0.031158447265625, -0.041107177734375, -0.021209716796875, -0.019744873046875, -0.019195556640625, -0.007343292236328125, -0.033721923828125, -0.0244903564453125, -0.03631591796875, 0.03533935546875, -0.0311431884765625, 0.037841796875, -0.0200958251953125, -0.00012576580047607422, -0.0285797119140625, -0.02288818359375, -0.0133819580078125, -0.08514404296875, -0.008392333984375, -0.006565093994140625, 0.06072998046875, 0.01300048828125, -0.0277099609375, -0.0287628173828125, 0.03680419921875, 0.0172576904296875, 0.00141143798828125, -0.0012273788452148438, -0.02593994140625, 0.015350341796875, -0.00496673583984375, -0.0207366943359375, 0.00800323486328125, -0.017578125, -0.02935791015625, -0.01605224609375, 0.007320404052734375, -0.0201263427734375, 0.0305633544921875, -0.0076904296875, -0.0032196044921875, -0.048828125, -0.04962158203125, -0.02105712890625, -0.006153106689453125, -0.03753662109375, 0.039337158203125, -0.047393798828125, -0.02435302734375, 0.10723876953125, 0.0095367431640625, 0.01715087890625, -0.037200927734375, 0.08197021484375, -0.011962890625, -0.051513671875, 0.003231048583984375, 0.0341796875, 0.0316162109375, 0.0328369140625, 0.0390625, 0.02227783203125, -0.0186004638671875, 0.032958984375, 0.01788330078125, -0.017608642578125, 0.0209503173828125, -0.01174163818359375, 0.01409912109375, -0.0271453857421875, 0.00637054443359375, 0.0073089599609375, 0.019287109375, -0.016082763671875, 0.00677490234375, -0.0005817413330078125, 0.0006556510925292969, 0.01137542724609375, 0.03790283203125, -0.044525146484375, -0.0316162109375, -0.09234619140625, 0.03985595703125, -0.05670166015625, -0.0673828125, -0.01953125, -0.00009167194366455078, -0.00365447998046875, -0.0164794921875, 0.00441741943359375, -0.062103271484375, -0.052154541015625, -0.0220947265625, 0.01397705078125, -0.063232421875, 0.0134124755859375, -0.0210723876953125, -0.035614013671875, 0.12371826171875, 0.016265869140625, -0.0516357421875, 0.037200927734375, -0.04046630859375, 0.04864501953125, 0.0191497802734375, -0.01666259765625, 0.042724609375, -0.058502197265625, -0.0193634033203125, -0.0005669593811035156, -0.064697265625, -0.075439453125, -0.0435791015625, 0.0266571044921875, 0.0095062255859375, -0.0104522705078125, 0.0467529296875, 0.00894927978515625, 0.0019664764404296875, 0.0136871337890625, -0.02117919921875, 0.036163330078125, 0.04803466796875, -0.042724609375, 0.00949859619140625, 0.0650634765625, -0.005870819091796875, -0.05694580078125, 0.0248565673828125, -0.0164337158203125, -0.023193359375, 0.041656494140625, 0.03997802734375, 0.0482177734375, 0.0428466796875, -0.049407958984375, -0.004032135009765625, 0.0204010009765625, 0.005115509033203125, -0.036590576171875, -0.026763916015625, -0.00960540771484375, 0.0007462501525878906, 0.0311431884765625, -0.047698974609375, 0.01519012451171875, -0.052734375, -0.0296478271484375, -0.024871826171875, 0.0268707275390625, 0.006439208984375, -0.046112060546875, -0.055419921875, -0.00016582012176513672, -0.00853729248046875, -0.038543701171875, 0.032867431640625, 0.005916595458984375, -0.01503753662109375, -0.0131988525390625, 0.059112548828125, -0.008758544921875, 0.01204681396484375, -0.0188751220703125, 0.0063018798828125, 0.0008139610290527344, -0.0020599365234375, 0.0390625, 0.0006103515625, -0.0197601318359375, 0.0182647705078125, -0.035430908203125, -0.01001739501953125, -0.011322021484375, -0.0233001708984375, -0.0482177734375, -0.0261688232421875, 0.01491546630859375, -0.01221466064453125, 0.016265869140625, 0.01397705078125, -0.041412353515625, 0.0280609130859375, 0.0257110595703125, -0.01837158203125, -0.003948211669921875, 0.0094146728515625, 0.0267486572265625, 0.004428863525390625, 0.0218963623046875, 0.019134521484375, 0.01165771484375, -0.023101806640625, 0.01155853271484375, 0.0117340087890625, 0.0002002716064453125, -0.032867431640625, 0.0272216796875, -0.042816162109375, 0.03424072265625, -0.004108428955078125, -0.005931854248046875, -0.00872802734375, -0.003757476806640625, -0.02294921875, 0.051666259765625, -0.006931304931640625, -0.01393890380859375, 0.01568603515625, -0.00841522216796875, 0.03643798828125, -0.0062713623046875, -0.0022563934326171875, 0.019561767578125, -0.0258941650390625, 0.01837158203125, 0.0252685546875, -0.057098388671875, 0.06396484375, 0.07177734375, -0.019744873046875, 0.0237274169921875, 0.0167999267578125, -0.01000213623046875, 0.004383087158203125, -0.0452880859375, -0.0214996337890625, 0.036102294921875, 0.0305328369140625, -0.0016956329345703125, 0.00872039794921875, 0.035064697265625, -0.0195770263671875, 0.0312042236328125, 0.058563232421875, 0.09027099609375, -0.08306884765625, 0.006458282470703125, -0.002635955810546875, -0.0289459228515625, 0.061614990234375, 0.023223876953125, -0.03271484375, -0.01904296875, 0.0222015380859375, -0.0560302734375, -0.018524169921875, -0.0013093948364257812, 0.0015354156494140625, 0.0010166168212890625, -0.0128631591796875, 0.051361083984375, 0.020233154296875, -0.02142333984375, 0.00899505615234375, 0.0275726318359375, 0.0286407470703125, -0.013824462890625, 0.006603240966796875, -0.01100921630859375, -0.036376953125, -0.0693359375, -0.015289306640625, -0.0014333724975585938, -0.04541015625, 0.02117919921875, 0.0130767822265625, 0.055938720703125, 0.037506103515625, 0.0160369873046875, -0.032012939453125, 0.002727508544921875, 0.0277557373046875, -0.0005278587341308594, -0.0247039794921875, -0.00937652587890625, 0.024200439453125, -0.07440185546875, 0.006870269775390625, -0.055999755859375, 0.0272979736328125, -0.0295867919921875, -0.03759765625, 0.0909423828125, -0.016357421875, -0.0197296142578125, 0.027557373046875, 0.0203857421875, -0.01617431640625, 0.00534820556640625, 0.0206756591796875, -0.01479339599609375, 0.01256561279296875, -0.00037550926208496094, -0.022369384765625, -0.004459381103515625, 0.000012636184692382812, -0.035400390625, 0.08966064453125, 0.013275146484375, -0.01068878173828125, -0.0009746551513671875, 0.04608154296875, -0.01004791259765625, 0.03155517578125, -0.0333251953125, 0.0302886962890625, 0.0160675048828125, 0.04669189453125, 0.004146575927734375, -0.004543304443359375, 0.03631591796875, 0.01763916015625, 0.041046142578125, 0.0158233642578125, -0.0205841064453125, -0.041290283203125, -0.007106781005859375, 0.0252685546875, -0.00821685791015625, 0.031646728515625, 0.0025081634521484375, 0.053436279296875, 0.0238037109375, -0.07598876953125, 0.02716064453125, -0.047698974609375, -0.020843505859375, 0.0171356201171875, 0.02166748046875, 0.0100860595703125, 0.0214385986328125, 0.06829833984375, -0.07025146484375, 0.026885986328125, 0.05029296875, 0.0233154296875, 0.01038360595703125, 0.028045654296875, 0.0030002593994140625, 0.034423828125, 0.0087127685546875, -0.018707275390625, 0.0268402099609375, -0.0213775634765625, 0.025543212890625, 0.001674652099609375, 0.0095672607421875, 0.0010194778442382812, 0.00395965576171875, 0.00823211669921875, 0.03485107421875, -0.0198822021484375, 0.0562744140625, 0.0233154296875, 0.0209197998046875, -0.0357666015625, 0.037353515625, 0.02484130859375, 0.051605224609375, -0.05645751953125, -0.03466796875, 0.0201263427734375, 0.02276611328125, 0.0196685791015625, -0.002529144287109375, 0.0211944580078125, -0.028350830078125, 0.0167999267578125, -0.0281829833984375, 0.017730712890625, 0.04058837890625, -0.0321044921875, 0.01873779296875, 0.052032470703125, -0.0222015380859375, 0.049835205078125, -0.0214080810546875, 0.003948211669921875, 0.0277862548828125, 0.01158905029296875, -0.006671905517578125, 0.025909423828125, 0.035064697265625, -0.004283905029296875, 0.004550933837890625, 0.0264892578125, 0.01554107666015625, -0.00574493408203125, -0.006740570068359375, -0.028472900390625, 0.0086212158203125, 0.01739501953125, -0.00608062744140625, -0.00969696044921875, 0.019134521484375, 0.036468505859375, -0.0209197998046875, -0.03350830078125, 0.01361846923828125, -0.0123748779296875, 0.03912353515625, 0.0006771087646484375, 0.0296630859375, -0.0011653900146484375, -0.017120361328125, -0.058929443359375, 0.05419921875, 0.0252685546875, -0.004459381103515625, 0.0615234375, -0.005016326904296875, 0.02197265625, 0.031890869140625, 0.0220489501953125, 0.01496124267578125, 0.03143310546875, -0.0287017822265625, -0.0125274658203125, 0.0190582275390625, -0.0423583984375, 0.01523590087890625, 0.0300750732421875, -0.0225372314453125, 0.0160369873046875, -0.02606201171875, -0.0160675048828125, 0.01132965087890625, 0.032867431640625, -0.0254058837890625, -0.0097808837890625, 0.0197906494140625, -0.033477783203125, -0.06048583984375, -0.042572021484375, -0.0335693359375, 0.030120849609375, 0.00727081298828125, 0.0245361328125, 0.01314544677734375, 0.029144287109375, -0.029541015625, -0.0009322166442871094, -0.016143798828125, -0.01392364501953125, 0.0063018798828125, 0.019805908203125, -0.003757476806640625, -0.01983642578125, -0.032958984375, 0.09039306640625, -0.00438690185546875, 0.032745361328125, 0.060333251953125, -0.0239715576171875, -0.003841400146484375, 0.00936126708984375, -0.00707244873046875, -0.038665771484375, -0.0275726318359375, -0.0254058837890625, 0.006927490234375, 0.0093841552734375, -0.006473541259765625, -0.0224151611328125, 0.0174713134765625, -0.00965118408203125, 0.00836181640625, -0.017120361328125, 0.014892578125, -0.0296173095703125, 0.0292205810546875, -0.03533935546875, 0.008270263671875, -0.0300140380859375, -0.035888671875, -0.0032958984375, 0.004192352294921875, -0.015289306640625, -0.0198822021484375, -0.007068634033203125, -0.0245819091796875, 0.02288818359375, 0.047515869140625, 0.0145263671875, 0.0245513916015625, -0.0253143310546875, -0.0059051513671875, 0.00957489013671875, -0.053466796875, -0.035888671875, -0.056121826171875, 0.0034332275390625, 0.023529052734375, -0.027984619140625, -0.02459716796875, -0.05657958984375, 0.0118865966796875, 0.0177459716796875, -0.0168609619140625, -0.03314208984375, 0.018035888671875, -0.0214691162109375, 0.005702972412109375, -0.0237274169921875, -0.051666259765625, 0.00846099853515625, 0.03857421875, -0.023193359375, -0.053955078125, -0.061492919921875, 0.0017948150634765625, -0.08587646484375, 0.002277374267578125, 0.0265960693359375, 0.003177642822265625, 0.0010347366333007812, -0.0134429931640625, -0.01418304443359375, 0.032958984375, -0.03729248046875, -0.030670166015625, 0.01509857177734375, 0.012908935546875, 0.01451873779296875, -0.07049560546875, -0.0233612060546875, -0.05523681640625, 0.039459228515625, -0.039581298828125, -0.0014801025390625, -0.0100860595703125, -0.05877685546875, -0.10107421875, 0.030914306640625, -0.01560211181640625, -0.035400390625, -0.0191802978515625, -0.008056640625, -0.0193634033203125, 0.0030536651611328125, -0.01520538330078125, -0.0022258758544921875, -0.0157623291015625, 0.0408935546875, 0.015655517578125, 0.03271484375, -0.0178985595703125, 0.0057525634765625, -0.013336181640625, 0.050994873046875, 0.046905517578125, 0.0268707275390625, 0.003570556640625, 0.002887725830078125, 0.0084381103515625, 0.0176544189453125, -0.0221710205078125, -0.00672149658203125, -0.007671356201171875, -0.01971435546875, -0.0267333984375, 0.007678985595703125, -0.0011310577392578125, 0.0105438232421875, 0.0635986328125, 0.03839111328125, 0.01190948486328125, -0.0276336669921875, -0.0286102294921875, -0.0094146728515625, 0.036163330078125, 0.0015468597412109375, -0.00946807861328125, -0.04815673828125, -0.0110931396484375, 0.01552581787109375, 0.0177764892578125, -0.033477783203125, -0.005916595458984375, -0.007678985595703125, -0.0296783447265625, 0.0184326171875, -0.005176544189453125, 0.029449462890625, -0.0293121337890625, 0.09466552734375, -0.05316162109375, 0.01236724853515625, -0.00023794174194335938, 0.0263214111328125, 0.05120849609375, -0.0250396728515625, -0.011932373046875, -0.004657745361328125, 0.00487518310546875, 0.049591064453125, -0.00000858306884765625, 0.024139404296875, -0.0411376953125, 0.01554107666015625, -0.0197296142578125, 0.0226593017578125, -0.0026721954345703125, 0.0089111328125, -0.0002868175506591797, 0.0168304443359375, 0.005672454833984375, 0.052337646484375, -0.03875732421875, -0.03167724609375, -0.0635986328125, 0.0230712890625, -0.0057830810546875, 0.014556884765625, 0.0191192626953125, 0.046966552734375, -0.006603240966796875, 0.01323699951171875, 0.01003265380859375, -0.04339599609375, 0.0189666748046875, 0.0247802734375, 0.0211181640625, 0.0201873779296875 ]
864ad765491867bba5e3ebd4b4f6709ed5c823e5
Wordpress Stackexchange Q: Wordpress get_posts by category I have the following bit of code: $args = array( 'posts_per_page' => -1, 'category' => 7, 'orderby' => 'name', 'order' => 'ASC', 'post_type' => 'product' ); $posts = get_posts($args);var_dump($posts); This should return one post I know that is in the category, but it isn't. If I leave out the 'category'-argument, I get all the products, so I know this should normally work. If I change the category to 1 and take out my custom post type (product), I get my default posts. I can't see what's wrong with this. Can anyone spot what the problem is? A: <ul> <?php $args = array( 'posts_per_page' => 5, 'offset'=> 1, 'category' => 1 ); $myposts = get_posts( $args ); foreach ( $myposts as $post ) : setup_postdata( $post ); ?> <li> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </li> <?php endforeach; wp_reset_postdata();?> </ul> May this will help You. Thanks
Q: Wordpress get_posts by category I have the following bit of code: $args = array( 'posts_per_page' => -1, 'category' => 7, 'orderby' => 'name', 'order' => 'ASC', 'post_type' => 'product' ); $posts = get_posts($args);var_dump($posts); This should return one post I know that is in the category, but it isn't. If I leave out the 'category'-argument, I get all the products, so I know this should normally work. If I change the category to 1 and take out my custom post type (product), I get my default posts. I can't see what's wrong with this. Can anyone spot what the problem is? A: <ul> <?php $args = array( 'posts_per_page' => 5, 'offset'=> 1, 'category' => 1 ); $myposts = get_posts( $args ); foreach ( $myposts as $post ) : setup_postdata( $post ); ?> <li> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </li> <?php endforeach; wp_reset_postdata();?> </ul> May this will help You. Thanks A: In all probability you are using a custom taxonomy, and not the build-in category taxonomy. If this is the case, then the category parameters won't work. You will need a tax_query to query posts from a specific term. (Remember, get_posts uses WP_Query, so you can pass any parameter from WP_Query to get_posts) $args = [ 'post_type' => 'product', 'tax_query' => [ [ 'taxonomy' => 'my_custom_taxonomy', 'terms' => 7, 'include_children' => false // Remove if you need posts from term 7 child terms ], ], // Rest of your arguments ]; ADDITIONAL RESOURCES * *What is the difference between custom taxonomies and categories
wordpress
{ "language": "en", "length": 253, "provenance": "stackexchange_00019.jsonl.gz:456880", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193110" }
[ 0.0245361328125, 0.006572723388671875, -0.01055145263671875, -0.01177978515625, 0.0301055908203125, -0.034515380859375, 0.053314208984375, -0.018035888671875, -0.03466796875, -0.0077362060546875, -0.05816650390625, -0.014434814453125, -0.05987548828125, -0.034698486328125, 0.022430419921875, -0.08416748046875, 0.044891357421875, 0.016082763671875, 0.053680419921875, -0.0021877288818359375, 0.0076904296875, 0.0262603759765625, 0.045654296875, 0.059326171875, 0.01171112060546875, 0.0042572021484375, 0.043914794921875, -0.052520751953125, 0.0216064453125, -0.031524658203125, 0.01367950439453125, -0.0037822723388671875, 0.0167083740234375, -0.01200103759765625, 0.0224456787109375, -0.0007996559143066406, 0.000797271728515625, -0.0091705322265625, 0.01451873779296875, 0.019500732421875, 0.0163421630859375, -0.0087890625, 0.034820556640625, 0.0221405029296875, 0.005413055419921875, -0.0120849609375, 0.006561279296875, -0.05401611328125, 0.01412200927734375, -0.03863525390625, 0.0049591064453125, -0.006290435791015625, 0.02276611328125, -0.0357666015625, -0.0298004150390625, -0.00388336181640625, 0.021514892578125, -0.040771484375, 0.0543212890625, -0.023162841796875, -0.05413818359375, -0.03851318359375, 0.040802001953125, -0.03094482421875, 0.00136566162109375, 0.0258636474609375, 0.060333251953125, 0.011016845703125, -0.044952392578125, -0.007633209228515625, 0.023712158203125, -0.0433349609375, -0.0302581787109375, 0.006633758544921875, -0.01611328125, -0.04669189453125, 0.0136871337890625, -0.074951171875, -0.01065826416015625, 0.05419921875, -0.0092315673828125, -0.0061187744140625, -0.02716064453125, -0.0282440185546875, 0.0033550262451171875, -0.0223541259765625, -0.011627197265625, -0.002956390380859375, -0.0167083740234375, -0.017425537109375, -0.0240936279296875, -0.0272979736328125, 0.006481170654296875, 0.027069091796875, -0.0211181640625, -0.0007596015930175781, 0.0259857177734375, 0.0592041015625, -0.0202178955078125, 0.0087127685546875, -0.01247406005859375, -0.02581787109375, -0.01120758056640625, -0.0303497314453125, 0.0221710205078125, -0.009796142578125, -0.02313232421875, 0.007556915283203125, 0.0743408203125, 0.059326171875, 0.0017652511596679688, 0.056243896484375, -0.002063751220703125, -0.02764892578125, -0.01059722900390625, 0.0257568359375, -0.0261993408203125, 0.0193023681640625, 0.0026798248291015625, 0.025787353515625, 0.00010901689529418945, 0.045318603515625, -0.0194244384765625, -0.053985595703125, 0.022003173828125, 0.0209503173828125, 0.00908660888671875, -0.04376220703125, -0.00168609619140625, 0.022491455078125, -0.04034423828125, 0.0162811279296875, 0.0574951171875, 0.00946044921875, -0.0000718235969543457, -0.02362060546875, 0.0056304931640625, -0.0187530517578125, 0.0041351318359375, 0.01519775390625, 0.0128173828125, -0.0156097412109375, 0.01319122314453125, 0.0008130073547363281, 0.0188751220703125, 0.00226593017578125, -0.01055908203125, 0.0194549560546875, 0.0286865234375, 0.023651123046875, -0.00022113323211669922, -0.0286407470703125, 0.033477783203125, -0.004878997802734375, -0.01335906982421875, -0.022247314453125, 0.016387939453125, -0.02337646484375, -0.025482177734375, -0.045196533203125, 0.02996826171875, -0.00923919677734375, 0.0025463104248046875, -0.047088623046875, -0.08233642578125, 0.0205230712890625, -0.053192138671875, -0.024993896484375, 0.0207366943359375, 0.00910186767578125, 0.0010919570922851562, -0.01885986328125, 0.0201873779296875, 0.017120361328125, 0.01540374755859375, 0.0287933349609375, -0.01010894775390625, -0.0234222412109375, 0.03448486328125, -0.006862640380859375, -0.0292816162109375, -0.0234832763671875, 0.0022640228271484375, 0.0038433074951171875, -0.06378173828125, 0.0289154052734375, 0.025238037109375, 0.08172607421875, -0.0017290115356445312, 0.0240325927734375, 0.06903076171875, 0.004375457763671875, -0.08984375, 0.0596923828125, 0.006988525390625, -0.02227783203125, -0.04052734375, -0.0279541015625, 0.0006799697875976562, 0.003101348876953125, 0.010467529296875, -0.01727294921875, -0.01195526123046875, 0.00745391845703125, -0.062042236328125, -0.0002970695495605469, -0.009521484375, 0.0210723876953125, -0.00472259521484375, 0.027191162109375, 0.036895751953125, 0.014007568359375, -0.0367431640625, -0.0205230712890625, -0.03631591796875, 0.00012886524200439453, 0.00046896934509277344, 0.01824951171875, -0.0282745361328125, -0.0022296905517578125, -0.0276947021484375, -0.05474853515625, -0.0270538330078125, 0.0660400390625, 0.08282470703125, -0.0103302001953125, -0.00830078125, -0.0399169921875, 0.0467529296875, 0.0030384063720703125, -0.0689697265625, 0.030364990234375, 0.006504058837890625, 0.031097412109375, -0.033050537109375, 0.0102081298828125, 0.021392822265625, -0.0086212158203125, 0.0247650146484375, 0.03021240234375, 0.0233612060546875, 0.003482818603515625, -0.01146697998046875, 0.0061798095703125, 0.040496826171875, -0.0282745361328125, 0.0025787353515625, -0.022369384765625, 0.0193023681640625, 0.07281494140625, 0.021240234375, 0.0186309814453125, 0.005828857421875, 0.0217132568359375, 0.018463134765625, 0.01094818115234375, -0.0074005126953125, 0.00861358642578125, -0.0221710205078125, 0.016448974609375, -0.002899169921875, -0.0235595703125, -0.0131988525390625, -0.016021728515625, 0.03924560546875, 0.023834228515625, 0.031982421875, 0.0232391357421875, -0.041748046875, 0.0187530517578125, 0.0034637451171875, -0.002895355224609375, -0.007480621337890625, 0.004589080810546875, -0.0023651123046875, -0.0213165283203125, -0.045806884765625, 0.01320648193359375, 0.0091094970703125, -0.0164031982421875, 0.007015228271484375, 0.0474853515625, 0.0142669677734375, -0.0014543533325195312, -0.03753662109375, -0.076171875, 0.0020427703857421875, 0.04351806640625, -0.021484375, -0.0208740234375, 0.017364501953125, 0.0253448486328125, -0.0287322998046875, 0.0242919921875, -0.0013294219970703125, -0.0159454345703125, 0.026763916015625, -0.06304931640625, 0.048797607421875, -0.05828857421875, 0.04071044921875, 0.0618896484375, -0.0168304443359375, 0.0245361328125, -0.0019207000732421875, -0.0012273788452148438, 0.016265869140625, 0.024993896484375, -0.014434814453125, -0.033905029296875, -0.03399658203125, -0.0083770751953125, 0.0259246826171875, 0.06781005859375, 0.01110076904296875, -0.03765869140625, 0.0204925537109375, 0.044189453125, -0.08441162109375, -0.091064453125, 0.03955078125, -0.047576904296875, 0.033599853515625, -0.01806640625, -0.0257415771484375, -0.04962158203125, 0.003963470458984375, 0.006443023681640625, 0.0254364013671875, -0.01422119140625, -0.036895751953125, -0.0228424072265625, -0.0699462890625, -0.020355224609375, 0.004528045654296875, 0.0150909423828125, 0.0110931396484375, 0.0684814453125, 0.01262664794921875, -0.056671142578125, -0.01299285888671875, 0.012664794921875, -0.0241851806640625, 0.0016298294067382812, -0.0224151611328125, -0.0002510547637939453, 0.0121612548828125, 0.00048542022705078125, 0.01444244384765625, 0.023101806640625, -0.0093841552734375, -0.013824462890625, -0.0156402587890625, -0.0039520263671875, 0.0181884765625, 0.01214599609375, 0.007709503173828125, 0.032012939453125, 0.0352783203125, -0.013336181640625, -0.00798797607421875, -0.002124786376953125, -0.02825927734375, 0.01123809814453125, -0.00415802001953125, -0.00611114501953125, -0.004299163818359375, 0.0168304443359375, -0.0033359527587890625, -0.00014960765838623047, 0.047027587890625, -0.0638427734375, 0.0150146484375, 0.0034961700439453125, 0.0028400421142578125, -0.0251922607421875, 0.01055908203125, -0.03912353515625, -0.00621795654296875, -0.012054443359375, -0.008636474609375, -0.00952911376953125, -0.029144287109375, -0.0283355712890625, -0.06854248046875, 0.03582763671875, -0.02984619140625, -0.01422119140625, -0.0163116455078125, -0.01268768310546875, 0.01776123046875, 0.067138671875, -0.008941650390625, -0.0229949951171875, -0.04473876953125, 0.00560760498046875, -0.046173095703125, -0.040771484375, -0.0102691650390625, 0.006237030029296875, -0.06219482421875, 0.005565643310546875, 0.00807952880859375, -0.03240966796875, 0.00862884521484375, 0.04132080078125, -0.0460205078125, -0.01617431640625, 0.0399169921875, -0.0460205078125, 0.04351806640625, -0.018951416015625, 0.014923095703125, -0.03082275390625, -0.027252197265625, -0.024139404296875, -0.031402587890625, -0.0257415771484375, 0.038909912109375, 0.019561767578125, -0.0029926300048828125, -0.006961822509765625, -0.0086212158203125, 0.05303955078125, 0.027984619140625, 0.01380157470703125, 0.01148223876953125, 0.0009136199951171875, -0.03167724609375, -0.02484130859375, 0.0198974609375, -0.048858642578125, -0.0096588134765625, -0.019439697265625, -0.01055145263671875, 0.0254669189453125, -0.040283203125, 0.015777587890625, -0.0303497314453125, -0.0173797607421875, -0.100830078125, -0.0389404296875, 0.0160064697265625, -0.0156707763671875, -0.0095672607421875, 0.02459716796875, -0.0226593017578125, -0.07354736328125, 0.0278472900390625, 0.01345062255859375, -0.022552490234375, 0.001495361328125, 0.04815673828125, 0.0125732421875, -0.026947021484375, -0.0027713775634765625, -0.004940032958984375, 0.02874755859375, -0.039764404296875, 0.037384033203125, -0.00548553466796875, -0.021331787109375, 0.0733642578125, -0.0255584716796875, 0.020660400390625, -0.032684326171875, 0.03375244140625, 0.01401519775390625, 0.0163421630859375, -0.002567291259765625, 0.00799560546875, 0.0174407958984375, 0.027069091796875, -0.015380859375, 0.007633209228515625, 0.01114654541015625, 0.021728515625, -0.010406494140625, -0.0089263916015625, -0.03662109375, 0.0017614364624023438, -0.0018644332885742188, 0.0239410400390625, 0.00650787353515625, 0.03131103515625, -0.0012722015380859375, 0.00328826904296875, 0.0225067138671875, 0.006084442138671875, -0.0006866455078125, 0.0309906005859375, -0.0004737377166748047, 0.0200653076171875, 0.04119873046875, 0.003154754638671875, -0.031768798828125, -0.005451202392578125, -0.022430419921875, 0.017913818359375, -0.025787353515625, 0.00498199462890625, -0.000988006591796875, 0.0185546875, -0.015380859375, 0.00943756103515625, 0.052093505859375, 0.0085296630859375, 0.01300811767578125, -0.00539398193359375, -0.0672607421875, 0.0222015380859375, -0.027801513671875, 0.00908660888671875, 0.0010805130004882812, -0.00371551513671875, 0.01335906982421875, 0.0830078125, -0.00606536865234375, 0.05889892578125, -0.0255279541015625, 0.01904296875, 0.0016803741455078125, 0.045166015625, 0.015716552734375, -0.018585205078125, -0.019134521484375, 0.0235748291015625, 0.0029087066650390625, -0.060455322265625, -0.0212249755859375, 0.0058441162109375, 0.0792236328125, -0.003536224365234375, -0.032470703125, 0.026092529296875, -0.0191650390625, -0.0130767822265625, 0.040252685546875, 0.004657745361328125, -0.0445556640625, -0.040557861328125, 0.0031757354736328125, 0.028717041015625, -0.0168304443359375, -0.019195556640625, 0.02325439453125, -0.00640869140625, 0.0105133056640625, 0.008270263671875, -0.0218658447265625, 0.00989532470703125, 0.0182647705078125, 0.004268646240234375, -0.0352783203125, 0.006084442138671875, -0.01104736328125, 0.0260009765625, -0.01396942138671875, -0.032501220703125, 0.01398468017578125, -0.0014047622680664062, 0.0802001953125, -0.0576171875, -0.019439697265625, -0.041900634765625, -0.0008988380432128906, 0.055450439453125, 0.0479736328125, -0.049072265625, 0.01000213623046875, -0.0311126708984375, -0.0085906982421875, 0.0272674560546875, -0.0204620361328125, -0.0262603759765625, -0.0335693359375, 0.0151824951171875, 0.0240325927734375, 0.0015153884887695312, -0.034149169921875, -0.0221099853515625, -0.017852783203125, 0.01271820068359375, 0.0220947265625, -0.016693115234375, 0.026092529296875, 0.012664794921875, 0.0281219482421875, -0.011260986328125, -0.0102691650390625, -0.0155029296875, -0.0064697265625, -0.01134490966796875, -0.0653076171875, -0.020660400390625, 0.0210113525390625, -0.045074462890625, 0.035614013671875, 0.0498046875, 0.005397796630859375, -0.0280609130859375, -0.01136016845703125, 0.0094451904296875, -0.0150146484375, 0.0184326171875, -0.00023889541625976562, -0.04449462890625, 0.0258331298828125, -0.0000027418136596679688, 0.0224456787109375, -0.000015139579772949219, -0.0233001708984375, 0.0016222000122070312, 0.0033626556396484375, 0.0007424354553222656, 0.00449371337890625, -0.03680419921875, 0.01282501220703125, 0.07562255859375, 0.043853759765625, 0.06512451171875, 0.02178955078125, 0.0305938720703125, 0.0179290771484375, 0.0018796920776367188, 0.05181884765625, 0.0308685302734375, 0.06805419921875, -0.0184326171875, 0.00977325439453125, 0.022918701171875, -0.02685546875, -0.03509521484375, 0.0316162109375, 0.04437255859375, -0.03411865234375, 0.0005488395690917969, 0.0194549560546875, -0.0018529891967773438, -0.003910064697265625, 0.0159149169921875, -0.0217132568359375, -0.004547119140625, 0.0238494873046875, -0.0379638671875, -0.035003662109375, 0.0059661865234375, 0.002269744873046875, 0.0136566162109375, 0.00397491455078125, 0.06793212890625, 0.006633758544921875, -0.0633544921875, -0.018768310546875, 0.0276336669921875, -0.024932861328125, -0.0272674560546875, -0.0260467529296875, 0.0203857421875, -0.033447265625, -0.0936279296875, 0.01140594482421875, -0.0024509429931640625, -0.00641632080078125, 0.041473388671875, -0.03070068359375, -0.0153045654296875, 0.037933349609375, -0.023895263671875, 0.03814697265625, 0.00890350341796875, -0.0499267578125, -0.040283203125, -0.005512237548828125, 0.004512786865234375, 0.03192138671875, -0.043304443359375, 0.027587890625, -0.036651611328125, 0.004619598388671875, -0.004657745361328125, -0.0225067138671875, 0.038482666015625, -0.05548095703125, 0.0025768280029296875, 0.0208740234375, 0.0439453125, 0.0149688720703125, -0.001560211181640625, -0.0015592575073242188, -0.024078369140625, 0.03009033203125, -0.000015676021575927734, 0.03094482421875, -0.01041412353515625, 0.006134033203125, -0.0843505859375, 0.08575439453125, -0.01213836669921875, 0.04827880859375, 0.01303863525390625, 0.011932373046875, -0.0170135498046875, -0.015350341796875, -0.043121337890625, 0.047271728515625, 0.038970947265625, 0.038726806640625, -0.06390380859375, -0.037139892578125, -0.005702972412109375, 0.05865478515625, 0.051727294921875, 0.00653839111328125, -0.044219970703125, 0.0107421875, 0.042572021484375, 0.04205322265625, 0.0016345977783203125, 0.025665283203125, 0.015869140625, 0.073486328125, 0.068359375, -0.0303192138671875, 0.0499267578125, 0.00905609130859375, -0.0157470703125, 0.0254974365234375, 0.0098724365234375, -0.0110626220703125, -0.0205535888671875, 0.0302734375, -0.0675048828125, -0.0081787109375, 0.0347900390625, -0.01525115966796875, 0.0350341796875, 0.059295654296875, 0.0758056640625, -0.03863525390625, -0.0262908935546875, -0.019134521484375, 0.06707763671875, 0.0124969482421875, 0.007709503173828125, 0.05999755859375, 0.025848388671875, 0.042694091796875, -0.00763702392578125, 0.01157379150390625, -0.0105743408203125, 0.0011005401611328125, 0.0638427734375, 0.05078125, 0.0120391845703125, -0.01885986328125, 0.01910400390625, 0.046142578125, 0.060821533203125, -0.06854248046875, -0.07122802734375, 0.024444580078125, 0.0226898193359375, 0.031646728515625, -0.00408172607421875, 0.015167236328125, -0.03399658203125, 0.04296875, -0.046875, -0.0086822509765625, 0.0209808349609375, 0.036529541015625, -0.006725311279296875, -0.054351806640625, -0.02032470703125, -0.030426025390625, -0.041656494140625, 0.0240325927734375, 0.006862640380859375, 0.07843017578125, 0.01702880859375, 0.060089111328125, -0.07232666015625, -0.0406494140625, 0.031768798828125, 0.002613067626953125, -0.0264739990234375, -0.0194091796875, -0.0003590583801269531, -0.03369140625, -0.0404052734375, 0.0206756591796875, 0.040863037109375, -0.020355224609375, 0.0455322265625, 0.041900634765625, -0.0203857421875, -0.00994110107421875, 0.00687408447265625, -0.0049285888671875, -0.0248870849609375, -0.00954437255859375, 0.0195770263671875, 0.0151824951171875, 0.0077362060546875, -0.0020656585693359375, 0.06640625, 0.000335693359375, -0.020477294921875, 0.052337646484375, -0.0008344650268554688, -0.0291900634765625, 0.03173828125, 0.01410675048828125, 0.0921630859375, 0.0094451904296875, -0.0572509765625, -0.01554107666015625, -0.0203857421875, -0.05889892578125, 0.0222320556640625, 0.045318603515625, 0.00856781005859375, -0.006420135498046875, 0.0144195556640625, -0.0164337158203125, 0.03045654296875, 0.0029621124267578125, -0.00847625732421875, -0.0099639892578125, 0.025726318359375, -0.01241302490234375, -0.00870513916015625, -0.0020275115966796875, 0.0110931396484375, 0.0174713134765625, 0.004383087158203125, 0.03948974609375, -0.005771636962890625, 0.01177215576171875, -0.048797607421875, 0.054290771484375, -0.0787353515625, -0.04925537109375, 0.041961669921875, 0.009613037109375, 0.006092071533203125, 0.00130462646484375, 0.032623291015625, 0.0149383544921875, 0.0589599609375, -0.03521728515625, -0.01605224609375, -0.024566650390625, 0.0268402099609375, -0.028076171875, 0.0243682861328125, -0.02825927734375, -0.0033416748046875, -0.048248291015625, -0.038787841796875, 0.052459716796875, 0.0257415771484375, 0.013671875, 0.0247039794921875, 0.01275634765625, -0.0107879638671875, 0.0203704833984375, -0.007537841796875, 0.0240936279296875, 0.026580810546875, 0.01515960693359375, -0.0206756591796875, 0.0167694091796875, -0.00965118408203125, -0.0012540817260742188, 0.0251007080078125, 0.00788116455078125, 0.0037784576416015625, -0.0020771026611328125, 0.0008068084716796875, 0.048797607421875, 0.041107177734375, -0.02362060546875, 0.01128387451171875, 0.0308685302734375, -0.0232696533203125, 0.0020961761474609375, 0.00360870361328125, -0.0278778076171875, -0.025054931640625, -0.00475311279296875, -0.009613037109375, -0.018798828125, -0.0396728515625, -0.028167724609375, 0.006450653076171875, 0.0276641845703125, -0.006671905517578125, -0.01074981689453125, 0.038848876953125, -0.032318115234375, -0.0029926300048828125, -0.02874755859375, -0.057342529296875, 0.0111846923828125, 0.00949859619140625, -0.0355224609375, 0.0287322998046875, -0.056243896484375, -0.065673828125, -0.03857421875, 0.0213623046875, 0.032257080078125, -0.040313720703125, -0.048583984375, 0.0207672119140625, 0.018585205078125, 0.06268310546875, 0.0289306640625, 0.0025959014892578125, 0.01238250732421875, 0.051666259765625, -0.06964111328125, -0.10052490234375, 0.03436279296875, -0.04437255859375, 0.007457733154296875, 0.0173187255859375, -0.0027790069580078125, 0.047882080078125, -0.010467529296875, -0.020782470703125, 0.061981201171875, -0.016357421875, -0.0192718505859375, -0.01727294921875, 0.002002716064453125, -0.01108551025390625, 0.046905517578125, 0.0235137939453125, -0.05078125, -0.0240936279296875, 0.01399993896484375, 0.00432586669921875, 0.04339599609375, 0.0236358642578125, 0.024749755859375, -0.039520263671875, -0.0083160400390625, -0.042083740234375, -0.01386260986328125, 0.01593017578125, -0.0126495361328125, 0.0198211669921875, 0.04205322265625, -0.042755126953125, -0.0176849365234375, -0.02069091796875, 0.0080413818359375, 0.0159149169921875, -0.044036865234375, -0.06817626953125, -0.0511474609375, 0.00482177734375, 0.039886474609375, 0.011444091796875, 0.002132415771484375, -0.0234527587890625, 0.028228759765625, -0.0233612060546875, -0.01971435546875, 0.0308074951171875, -0.07183837890625, -0.015289306640625, -0.01280975341796875, -0.0127105712890625, 0.0189971923828125, -0.02459716796875, -0.037261962890625, -0.014678955078125, -0.0570068359375, -0.030914306640625, -0.01971435546875, -0.0010738372802734375, -0.01448822021484375, -0.001018524169921875, 0.004253387451171875, -0.0289764404296875, 0.0103759765625, -0.0185699462890625, -0.006069183349609375, -0.01088714599609375, 0.0251617431640625, -0.01311492919921875, -0.027130126953125, 0.015045166015625, -0.00566864013671875, 0.0176849365234375, 0.01194000244140625, -0.0044403076171875, 0.0021266937255859375, -0.0111541748046875, -0.00812530517578125, 0.045989990234375, 0.0170135498046875, 0.00560760498046875, 0.044830322265625, 0.01320648193359375, -0.00894927978515625, 0.007198333740234375, 0.052276611328125, -0.014129638671875, -0.0300445556640625, 0.014923095703125, -0.06829833984375, -0.01258087158203125, 0.0035610198974609375, -0.005954742431640625, -0.0198822021484375, 0.0009236335754394531, 0.02227783203125, -0.00878143310546875, -0.0018892288208007812 ]
0a9d54c3ca17180ecd16e5f06ff575ed37305980
Wordpress Stackexchange Q: wp_get_attachment_image_src always returns full-sized image https://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src#Parameters leads me to believe wp_get_attachment_image_src( $thumb_id, array(100, 100) )[0] would return a 100x100 thumbnail, but it always just returns the full-sized image. Any help would be greatly appreciated. A: I think this code will help you: $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full', false, '' ); echo '<img src="'.$src[0].'">';
Q: wp_get_attachment_image_src always returns full-sized image https://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src#Parameters leads me to believe wp_get_attachment_image_src( $thumb_id, array(100, 100) )[0] would return a 100x100 thumbnail, but it always just returns the full-sized image. Any help would be greatly appreciated. A: I think this code will help you: $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full', false, '' ); echo '<img src="'.$src[0].'">'; A: you need to have predefined image sizes, WP have 3 default sizes as 100x100 thumbnail, 300x300 medium and 800x800 large, and I have an aditional size called img-polaroid 700x320 defined on functions.ini. So the code to get images is: $image_id=get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,'img-polaroid'); $image_url=$image_url[0]; 'img-polaroid' is the '$size' retreived 700x320, and the way to print the image is: img src="php echo $image_url" class="img-polaroid" style="margin:5px 0px 15px;" Where class="img-polaroid" is the real size to print like 100x100 or 200x100 with style of polaroid photo defined on CSS styles; or you can use inside img html code heigh=100 wight=100. with both methods the image will be clear and good definition. for my purposes img-polaroid has a size 320x200 and defined also as responsive size. If you get the image $image_url = wp_get_attachment_image_src($image_id,'thumbnail'); and tries to print on higher size the image will be blurred. *** So try to get the image size closest to the size you need to print to not overload your page A: ... leads me to believe wp_get_attachment_image_src( $thumb_id, array(100, 100) )[0] would return a 100x100 thumbnail... That isn't quite what happens. Most of the work is done by image_downsize() as you can see from near the top of the wp_get_attachment_image_src() : 692 // get a thumbnail or intermediate image if there is one 693 if ( $image = image_downsize($attachment_id, $size) ) 694 return $image; If you look at the notes for that function you will see: 134 * The URL might be the original image, or it might be a resized version. This 135 * function won't create a new resized copy, it will just return an already 136 * resized one if it exists. What you get (near as I can tell) is the nearest size to the one requested with an array containing the requested image dimensions or the actual image dimensions if the requested size is larger than the largest image. You are expected to do the rest with HTML and CSS.
wordpress
{ "language": "en", "length": 383, "provenance": "stackexchange_00019.jsonl.gz:456891", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193136" }
[ 0.043548583984375, -0.033843994140625, 0.0241851806640625, -0.004779815673828125, -0.01377105712890625, -0.0281524658203125, 0.0699462890625, -0.0187835693359375, 0.0162200927734375, 0.0294952392578125, -0.0243377685546875, -0.00032210350036621094, 0.00289154052734375, -0.0023746490478515625, -0.040557861328125, -0.0335693359375, 0.067138671875, -0.034210205078125, 0.06219482421875, 0.0235137939453125, 0.0079193115234375, 0.069580078125, 0.061614990234375, 0.07379150390625, 0.01348114013671875, -0.0271453857421875, 0.0736083984375, -0.015472412109375, -0.0037097930908203125, -0.025054931640625, 0.015777587890625, 0.029205322265625, 0.0177154541015625, -0.00217437744140625, -0.00528717041015625, 0.02545166015625, 0.011138916015625, -0.01427459716796875, -0.01006317138671875, 0.0172882080078125, -0.005268096923828125, 0.01380157470703125, 0.032989501953125, -0.004734039306640625, -0.01267242431640625, -0.01500701904296875, 0.00748443603515625, -0.029815673828125, -0.0188751220703125, 0.0216522216796875, 0.037322998046875, 0.037078857421875, 0.048675537109375, -0.016845703125, 0.0181121826171875, 0.0242156982421875, -0.03570556640625, 0.0225830078125, 0.032440185546875, -0.011138916015625, -0.0256195068359375, -0.01214599609375, 0.0292816162109375, -0.011016845703125, -0.0007429122924804688, 0.019561767578125, -0.0193023681640625, -0.01261138916015625, -0.019134521484375, -0.00397491455078125, 0.01380157470703125, -0.0276947021484375, -0.0010099411010742188, -0.02105712890625, -0.025054931640625, 0.0171661376953125, 0.00992584228515625, -0.012481689453125, 0.00836944580078125, -0.020355224609375, 0.045623779296875, -0.02850341796875, -0.04583740234375, 0.0548095703125, 0.00571441650390625, 0.07220458984375, 0.0107879638671875, -0.034271240234375, -0.0134735107421875, -0.0124969482421875, -0.0015773773193359375, -0.043060302734375, -0.0162506103515625, 0.0083160400390625, 0.004352569580078125, -0.04052734375, 0.049346923828125, 0.0312347412109375, 0.0087127685546875, -0.0011110305786132812, 0.01490020751953125, -0.059356689453125, 0.0352783203125, -0.040924072265625, 0.0079345703125, 0.009124755859375, -0.01030731201171875, -0.004444122314453125, 0.042694091796875, 0.03790283203125, 0.0078887939453125, 0.06036376953125, -0.00801849365234375, -0.00809478759765625, 0.00904083251953125, -0.005031585693359375, -0.045196533203125, 0.0439453125, 0.0004627704620361328, 0.005123138427734375, 0.0020351409912109375, -0.0034313201904296875, 0.04949951171875, 0.01070404052734375, 0.004222869873046875, 0.0212249755859375, -0.02490234375, -0.06219482421875, 0.0038623809814453125, 0.01293182373046875, -0.022552490234375, 0.015594482421875, 0.0033721923828125, -0.009613037109375, -0.0112762451171875, -0.01059722900390625, -0.030487060546875, -0.0158843994140625, -0.007297515869140625, 0.031768798828125, -0.0322265625, -0.0203857421875, 0.062469482421875, -0.0202178955078125, 0.0037403106689453125, 0.0171661376953125, -0.00038814544677734375, 0.0196990966796875, -0.0017185211181640625, -0.03955078125, 0.02490234375, -0.04595947265625, 0.0212860107421875, 0.0186767578125, -0.008758544921875, 0.005062103271484375, 0.04119873046875, -0.00859832763671875, -0.02215576171875, -0.04656982421875, 0.050537109375, 0.009857177734375, -0.01885986328125, 0.03253173828125, 0.0019044876098632812, 0.0037384033203125, -0.0261993408203125, 0.00292205810546875, 0.02734375, 0.065185546875, 0.01064300537109375, 0.0030307769775390625, 0.01253509521484375, 0.0086517333984375, -0.0312042236328125, -0.0234222412109375, 0.0212554931640625, -0.024078369140625, 0.0189666748046875, 0.007598876953125, -0.040557861328125, -0.023284912109375, 0.035491943359375, -0.025360107421875, 0.00299072265625, -0.0181427001953125, -0.0011539459228515625, 0.0008935928344726562, 0.0269012451171875, 0.01505279541015625, -0.023406982421875, 0.018646240234375, -0.04595947265625, 0.032745361328125, -0.016021728515625, 0.01763916015625, -0.061126708984375, 0.0172882080078125, -0.0273284912109375, -0.0087738037109375, 0.059417724609375, -0.0303955078125, 0.044403076171875, -0.01093292236328125, -0.0185546875, 0.0037097930908203125, -0.00861358642578125, 0.006649017333984375, -0.023284912109375, 0.0516357421875, 0.00742340087890625, 0.0294189453125, -0.03857421875, 0.003711700439453125, 0.0224609375, 0.023956298828125, -0.025482177734375, 0.01165008544921875, -0.0252685546875, 0.0540771484375, -0.080810546875, -0.02777099609375, -0.053558349609375, 0.00565338134765625, 0.062744140625, 0.00939178466796875, -0.023162841796875, -0.01861572265625, 0.028594970703125, 0.011566162109375, -0.059814453125, 0.03289794921875, -0.045166015625, -0.01026153564453125, -0.0267486572265625, -0.006992340087890625, -0.007724761962890625, -0.035400390625, 0.0306243896484375, 0.037139892578125, 0.0374755859375, 0.0245819091796875, -0.005615234375, 0.0020084381103515625, 0.09613037109375, 0.0261077880859375, 0.0274810791015625, -0.0235443115234375, 0.00823211669921875, -0.0002560615539550781, 0.0120849609375, -0.036346435546875, 0.0204925537109375, -0.056365966796875, 0.004436492919921875, 0.031463623046875, -0.0017538070678710938, 0.0057525634765625, -0.0225372314453125, 0.044158935546875, -0.0149993896484375, 0.037200927734375, 0.039031982421875, -0.004730224609375, -0.041046142578125, 0.02667236328125, -0.00618743896484375, -0.0024623870849609375, -0.0401611328125, 0.0208740234375, 0.035369873046875, 0.035125732421875, -0.0035839080810546875, 0.069580078125, 0.0289306640625, 0.006542205810546875, -0.00853729248046875, -0.018280029296875, -0.0236053466796875, 0.023590087890625, 0.009307861328125, 0.0430908203125, 0.0096893310546875, -0.00394439697265625, -0.006801605224609375, -0.021087646484375, 0.006183624267578125, 0.0166778564453125, -0.00565338134765625, 0.00778961181640625, 0.0161590576171875, 0.05609130859375, 0.0141143798828125, 0.029876708984375, -0.0335693359375, 0.0213165283203125, 0.034820556640625, -0.03594970703125, 0.052520751953125, -0.0184783935546875, 0.0888671875, 0.08135986328125, -0.05010986328125, 0.0587158203125, -0.0239715576171875, -0.0191802978515625, -0.021514892578125, 0.0007243156433105469, -0.027801513671875, -0.031402587890625, -0.06915283203125, -0.003238677978515625, -0.0057525634765625, 0.042449951171875, -0.050750732421875, -0.06512451171875, -0.003021240234375, -0.0182647705078125, -0.09210205078125, -0.04840087890625, -0.01294708251953125, -0.06781005859375, -0.0244140625, -0.0230865478515625, -0.037750244140625, 0.01346588134765625, -0.0003802776336669922, -0.002349853515625, -0.0018529891967773438, -0.025665283203125, -0.0521240234375, -0.0194091796875, -0.046112060546875, 0.0251922607421875, 0.00807952880859375, 0.0145416259765625, -0.0007929801940917969, 0.00994873046875, 0.004058837890625, -0.02197265625, 0.0007634162902832031, 0.072265625, -0.00354766845703125, -0.0406494140625, 0.0082855224609375, -0.01149749755859375, -0.01580810546875, 0.01050567626953125, -0.0295257568359375, 0.01177978515625, 0.00514984130859375, -0.0171966552734375, 0.00272369384765625, -0.01361846923828125, -0.00168609619140625, 0.0552978515625, -0.01157379150390625, -0.01898193359375, 0.023284912109375, -0.060089111328125, 0.00006198883056640625, -0.0283050537109375, -0.040252685546875, 0.039520263671875, 0.0062408447265625, 0.01209259033203125, 0.00336456298828125, 0.0188751220703125, 0.0249786376953125, -0.0047454833984375, 0.0106353759765625, -0.008697509765625, 0.04815673828125, -0.0078887939453125, 0.0175323486328125, -0.031951904296875, -0.0282745361328125, -0.0289154052734375, 0.0210723876953125, -0.0213470458984375, 0.01499176025390625, -0.0158843994140625, -0.010223388671875, -0.042266845703125, -0.042449951171875, 0.0509033203125, -0.0092315673828125, 0.005611419677734375, -0.042144775390625, -0.023406982421875, -0.004119873046875, 0.09002685546875, -0.005756378173828125, -0.0283203125, -0.0203704833984375, 0.007343292236328125, -0.0257110595703125, -0.051025390625, -0.0034313201904296875, -0.0014362335205078125, -0.06427001953125, 0.0174407958984375, 0.01934814453125, -0.0283966064453125, -0.01788330078125, -0.019134521484375, -0.05072021484375, -0.0297698974609375, 0.021942138671875, 0.01012420654296875, 0.0015611648559570312, 0.017120361328125, -0.01419830322265625, 0.02386474609375, -0.01355743408203125, -0.0184478759765625, -0.09326171875, -0.0285186767578125, 0.0209503173828125, 0.0899658203125, -0.039215087890625, 0.03668212890625, -0.055755615234375, 0.049835205078125, -0.01110076904296875, 0.0135345458984375, -0.00635528564453125, 0.01299285888671875, -0.032928466796875, 0.0202178955078125, 0.0197296142578125, -0.01654052734375, -0.02484130859375, -0.0841064453125, -0.061370849609375, -0.0947265625, -0.034515380859375, 0.0185394287109375, -0.01165771484375, 0.0033397674560546875, -0.0066375732421875, -0.0211334228515625, -0.021087646484375, 0.0218963623046875, -0.0200958251953125, 0.0005826950073242188, -0.035064697265625, -0.0260009765625, 0.03778076171875, 0.028594970703125, -0.027191162109375, 0.00612640380859375, 0.043060302734375, 0.005138397216796875, -0.0311431884765625, -0.09735107421875, -0.0024013519287109375, 0.039886474609375, 0.01453399658203125, 0.042572021484375, 0.0293426513671875, -0.022705078125, 0.052764892578125, 0.0266876220703125, 0.02740478515625, -0.019287109375, 0.0594482421875, 0.01230621337890625, 0.0225830078125, 0.00429534912109375, 0.0173797607421875, -0.0364990234375, 0.0100860595703125, -0.0268096923828125, -0.0029811859130859375, -0.0133514404296875, 0.029327392578125, -0.01544189453125, 0.019439697265625, -0.026641845703125, -0.01422119140625, 0.0012426376342773438, 0.023223876953125, 0.0762939453125, 0.0299072265625, -0.002017974853515625, 0.019683837890625, 0.0322265625, 0.0227203369140625, 0.0274200439453125, 0.0142974853515625, -0.0071868896484375, 0.06903076171875, -0.0129241943359375, 0.01148223876953125, 0.0185546875, 0.0191192626953125, -0.0240325927734375, 0.01305389404296875, 0.0027828216552734375, -0.08172607421875, 0.00873565673828125, 0.00789642333984375, -0.037261962890625, -0.05169677734375, 0.052490234375, 0.03753662109375, -0.034637451171875, -0.034698486328125, -0.0660400390625, -0.030548095703125, -0.08160400390625, 0.00914764404296875, 0.0330810546875, -0.0247955322265625, 0.03216552734375, 0.021942138671875, 0.0016918182373046875, 0.0225067138671875, -0.01593017578125, -0.0020599365234375, 0.01419830322265625, 0.00414276123046875, 0.00812530517578125, 0.037750244140625, -0.0369873046875, 0.0184478759765625, 0.01947021484375, -0.05035400390625, 0.00782012939453125, 0.052398681640625, 0.045257568359375, -0.0131683349609375, -0.049072265625, 0.0164031982421875, -0.0030689239501953125, -0.006046295166015625, 0.03790283203125, -0.020904541015625, -0.05401611328125, -0.035675048828125, 0.0197601318359375, 0.061309814453125, -0.03399658203125, -0.043365478515625, 0.036773681640625, -0.0019664764404296875, 0.0083770751953125, 0.01146697998046875, -0.06500244140625, 0.03826904296875, 0.062042236328125, -0.02545166015625, -0.025848388671875, -0.041900634765625, 0.061737060546875, 0.010498046875, -0.01116943359375, -0.0313720703125, 0.0428466796875, -0.00652313232421875, 0.0184326171875, 0.00336456298828125, -0.036712646484375, -0.04229736328125, -0.00936126708984375, 0.06927490234375, 0.046600341796875, -0.0469970703125, -0.00011849403381347656, -0.01267242431640625, 0.006130218505859375, 0.09320068359375, -0.0038318634033203125, -0.01318359375, -0.052093505859375, -0.00620269775390625, 0.0242767333984375, 0.0008053779602050781, 0.0196990966796875, 0.024261474609375, 0.026824951171875, -0.00891876220703125, 0.058563232421875, -0.0106201171875, 0.031341552734375, 0.007305145263671875, 0.0183258056640625, -0.025421142578125, -0.0078887939453125, -0.0262451171875, 0.009307861328125, 0.002803802490234375, -0.037200927734375, 0.00482177734375, 0.0038166046142578125, 0.02764892578125, -0.0247344970703125, -0.03460693359375, 0.01377105712890625, -0.0219573974609375, -0.006046295166015625, -0.0068359375, -0.038482666015625, 0.07080078125, 0.011871337890625, 0.0117034912109375, -0.01476287841796875, -0.042327880859375, 0.003582000732421875, 0.01058197021484375, 0.0141143798828125, -0.0008587837219238281, -0.036956787109375, -0.0093994140625, 0.045928955078125, 0.048736572265625, -0.0004892349243164062, 0.0555419921875, -0.0141143798828125, 0.0377197265625, 0.044708251953125, 0.0282745361328125, 0.0037059783935546875, 0.06292724609375, -0.0660400390625, -0.0318603515625, 0.040283203125, 0.0290985107421875, -0.0303955078125, 0.017303466796875, -0.0190582275390625, 0.068115234375, -0.059814453125, 0.045135498046875, 0.0458984375, 0.0439453125, 0.0152740478515625, -0.05645751953125, 0.07110595703125, -0.0139923095703125, 0.017913818359375, -0.00975799560546875, 0.010711669921875, -0.02362060546875, -0.0372314453125, -0.029541015625, -0.024078369140625, 0.01200103759765625, -0.003299713134765625, 0.015899658203125, 0.006099700927734375, -0.07550048828125, 0.0187530517578125, 0.0616455078125, 0.005481719970703125, 0.005397796630859375, 0.022491455078125, -0.05169677734375, 0.013580322265625, -0.0042724609375, -0.013427734375, -0.052459716796875, 0.00521087646484375, 0.03466796875, -0.0074615478515625, 0.010040283203125, 0.02484130859375, -0.0171661376953125, 0.033355712890625, -0.0026092529296875, -0.0416259765625, 0.019012451171875, -0.013702392578125, 0.01197052001953125, 0.04779052734375, -0.056182861328125, 0.0135955810546875, -0.01416015625, 0.0152587890625, 0.004436492919921875, -0.007778167724609375, 0.0802001953125, -0.06524658203125, 0.0025177001953125, 0.033660888671875, 0.0286712646484375, -0.022125244140625, -0.01093292236328125, 0.0274505615234375, -0.043212890625, 0.01061248779296875, 0.004543304443359375, -0.001834869384765625, -0.019561767578125, -0.0231781005859375, -0.04803466796875, 0.03656005859375, 0.004913330078125, 0.021942138671875, -0.0037593841552734375, -0.0021686553955078125, 0.0181732177734375, 0.0101470947265625, -0.0197601318359375, 0.005718231201171875, -0.0263671875, -0.0202178955078125, -0.021148681640625, 0.0263214111328125, -0.027374267578125, -0.01544189453125, 0.044647216796875, 0.01160430908203125, -0.039764404296875, 0.00598907470703125, 0.0780029296875, 0.038421630859375, 0.0274505615234375, 0.03814697265625, 0.00756072998046875, -0.0112152099609375, 0.041412353515625, -0.0015048980712890625, 0.035003662109375, -0.0352783203125, 0.0092010498046875, 0.01386260986328125, 0.0033855438232421875, 0.0197601318359375, 0.0177764892578125, 0.06036376953125, -0.027679443359375, -0.002593994140625, 0.039825439453125, -0.0926513671875, 0.051055908203125, 0.0148468017578125, 0.049774169921875, -0.01081085205078125, -0.026519775390625, 0.011749267578125, 0.046356201171875, 0.01325225830078125, 0.0214996337890625, 0.0194091796875, -0.000022351741790771484, 0.057830810546875, 0.018341064453125, 0.012359619140625, 0.040130615234375, 0.0018329620361328125, -0.0292816162109375, 0.017608642578125, 0.011444091796875, -0.028839111328125, -0.016326904296875, 0.08428955078125, 0.0165557861328125, -0.020355224609375, -0.023040771484375, 0.01531219482421875, 0.0245361328125, -0.005626678466796875, 0.00766754150390625, 0.0084075927734375, -0.0367431640625, 0.0127716064453125, -0.050048828125, 0.031280517578125, 0.0411376953125, 0.035308837890625, -0.01201629638671875, -0.01363372802734375, -0.0712890625, 0.0142364501953125, -0.020050048828125, 0.0164794921875, 0.0249786376953125, 0.0230865478515625, -0.007320404052734375, 0.01541900634765625, 0.003849029541015625, 0.020721435546875, -0.01739501953125, 0.043121337890625, -0.024932861328125, 0.0262603759765625, -0.02288818359375, -0.0216217041015625, 0.000055789947509765625, 0.0230712890625, 0.04278564453125, -0.05010986328125, 0.0261383056640625, -0.0013971328735351562, -0.082275390625, -0.005626678466796875, -0.00885009765625, -0.02117919921875, 0.028778076171875, -0.03167724609375, 0.046051025390625, 0.05206298828125, 0.00383758544921875, -0.020538330078125, -0.029876708984375, 0.09100341796875, -0.00783538818359375, 0.03204345703125, 0.0009832382202148438, 0.002956390380859375, 0.00911712646484375, 0.00591278076171875, 0.032135009765625, 0.01953125, -0.034027099609375, -0.002048492431640625, -0.021728515625, -0.0208892822265625, 0.0037822723388671875, 0.0204620361328125, -0.01351165771484375, 0.0238494873046875, -0.010589599609375, -0.00817108154296875, -0.022674560546875, 0.0184326171875, 0.006542205810546875, -0.0152740478515625, 0.0214080810546875, -0.014190673828125, -0.046356201171875, -0.026336669921875, 0.005298614501953125, 0.0261688232421875, 0.00074005126953125, 0.032440185546875, 0.0104522705078125, -0.0034503936767578125, -0.0020275115966796875, -0.02685546875, 0.00943756103515625, -0.007137298583984375, 0.000423431396484375, -0.015380859375, -0.032684326171875, -0.006649017333984375, -0.0179901123046875, 0.01471710205078125, 0.02838134765625, -0.0233306884765625, -0.0189361572265625, 0.0029811859130859375, 0.0175018310546875, 0.0292816162109375, -0.004062652587890625, -0.03289794921875, -0.01007080078125, -0.042694091796875, -0.0310211181640625, 0.03656005859375, 0.0128631591796875, 0.022735595703125, 0.0270538330078125, 0.03729248046875, -0.005184173583984375, 0.053863525390625, -0.039520263671875, 0.0909423828125, 0.05206298828125, -0.0496826171875, -0.01678466796875, -0.0221099853515625, -0.0214080810546875, -0.01067352294921875, -0.004535675048828125, 0.02349853515625, -0.038848876953125, 0.0155792236328125, 0.0180816650390625, 0.0033893585205078125, 0.02667236328125, -0.035430908203125, -0.020599365234375, 0.033203125, -0.001140594482421875, -0.0190582275390625, -0.03564453125, -0.004810333251953125, -0.0055084228515625, -0.0172882080078125, 0.014190673828125, 0.0228424072265625, -0.01348114013671875, 0.058380126953125, -0.0282745361328125, 0.0048828125, 0.00774383544921875, -0.0302581787109375, -0.0012454986572265625, 0.0160369873046875, -0.002002716064453125, -0.01262664794921875, -0.0128173828125, -0.0011358261108398438, 0.0125885009765625, -0.00623321533203125, -0.03021240234375, -0.0158538818359375, 0.034423828125, 0.0019197463989257812, 0.0278167724609375, 0.045318603515625, -0.029144287109375, 0.0084991455078125, 0.04132080078125, 0.01507568359375, 0.092041015625, -0.044586181640625, -0.03570556640625, -0.0384521484375, 0.03955078125, 0.004730224609375, -0.0204010009765625, -0.01220703125, -0.004505157470703125, 0.016387939453125, -0.0240936279296875, 0.01366424560546875, 0.01898193359375, -0.0257568359375, -0.045135498046875, 0.005157470703125, -0.002017974853515625, -0.027008056640625, -0.022430419921875, -0.008941650390625, 0.0191802978515625, 0.001697540283203125, -0.0181884765625, 0.022369384765625, -0.034881591796875, 0.0140228271484375, 0.0232391357421875, -0.052032470703125, 0.0633544921875, -0.0047454833984375, -0.01284027099609375, 0.01363372802734375, 0.01421356201171875, -0.0080108642578125, -0.012847900390625, -0.0121917724609375, 0.041717529296875, 0.05340576171875, 0.00435638427734375, -0.006587982177734375, 0.025115966796875, -0.03924560546875, -0.0103607177734375, -0.0097808837890625, -0.004306793212890625, 0.023834228515625, 0.02886962890625, 0.06488037109375, -0.0015430450439453125, -0.0526123046875, -0.0035991668701171875, 0.01512908935546875, -0.021636962890625, 0.005924224853515625, 0.00827789306640625, -0.0411376953125, -0.015899658203125, -0.01386260986328125, 0.00341033935546875, -0.002124786376953125, -0.0187225341796875, -0.034881591796875, -0.00777435302734375, -0.0027923583984375, 0.0259246826171875, -0.0775146484375, -0.00970458984375, 0.046295166015625, -0.03863525390625, -0.01453399658203125, -0.004962921142578125, 0.0185089111328125, 0.018218994140625, -0.022918701171875, -0.00909423828125, 0.0657958984375, -0.004772186279296875, -0.02911376953125, 0.041748046875, -0.04541015625, 0.03924560546875, 0.03143310546875, 0.0014801025390625, 0.00910186767578125, -0.0254058837890625, 0.034759521484375, 0.06451416015625, -0.0238037109375, -0.003170013427734375, 0.0010747909545898438, -0.00803375244140625, -0.01184844970703125, -0.0059051513671875, 0.005535125732421875, -0.0047760009765625, -0.01654052734375, 0.0217742919921875, -0.011566162109375, -0.00823974609375, 0.039398193359375, -0.0693359375, -0.035186767578125, -0.0068511962890625, -0.018341064453125, -0.007793426513671875, 0.0084991455078125 ]
987429e57c05525941976d3988bae9a54a8482f3
Wordpress Stackexchange Q: Is curl required? My admin panel is very slow I've tried to debug the issue. I nailed it to the function wp_remote_post and an internal error message thrown by curl on this line return new WP_Error( 'http_request_failed', curl_error( $handle ) ); I wonder what would have happened if I uninstalled curl. Can WordPress use other mechanisms to make http requests or is curl required? A: For the record, I have uninstalled curl and wordpress was working on seamlessly. So I confirm that curl is not a dependency of wordpress. However, some plugins may require curl.
Q: Is curl required? My admin panel is very slow I've tried to debug the issue. I nailed it to the function wp_remote_post and an internal error message thrown by curl on this line return new WP_Error( 'http_request_failed', curl_error( $handle ) ); I wonder what would have happened if I uninstalled curl. Can WordPress use other mechanisms to make http requests or is curl required? A: For the record, I have uninstalled curl and wordpress was working on seamlessly. So I confirm that curl is not a dependency of wordpress. However, some plugins may require curl. A: Wordpress themselfes claim to not require anything else than: * *Nginx or Apace . *PHP 5.2.4 or greater. *MySQL or some other database that connects to PHP's mysqli_connect(...), like MariaDB. *Some way to rewrite requests like Apache mod_rewrite. No requirements for curl is mentioned, so I would assume that it will use other methods if curl is not avaible. Refrence: https://wordpress.org/about/requirements/
wordpress
{ "language": "en", "length": 158, "provenance": "stackexchange_00019.jsonl.gz:456905", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193182" }
[ 0.0262298583984375, -0.0117645263671875, -0.0038604736328125, -0.02581787109375, -0.01123809814453125, -0.01116180419921875, 0.03192138671875, -0.00852203369140625, 0.0222930908203125, 0.003017425537109375, 0.00199127197265625, -0.032684326171875, -0.01080322265625, -0.044189453125, -0.0028171539306640625, -0.0193939208984375, 0.020904541015625, 0.0081329345703125, -0.004146575927734375, -0.01788330078125, -0.0015344619750976562, 0.00688934326171875, -0.008270263671875, 0.04632568359375, 0.0142974853515625, 0.035858154296875, -0.006633758544921875, -0.007602691650390625, -0.006908416748046875, -0.01132965087890625, 0.003326416015625, 0.002223968505859375, 0.04400634765625, 0.0223388671875, -0.06256103515625, -0.04962158203125, -0.035858154296875, 0.020538330078125, -0.031768798828125, 0.018341064453125, -0.01328277587890625, 0.004589080810546875, 0.06427001953125, -0.0008363723754882812, -0.004852294921875, 0.0167694091796875, -0.024017333984375, -0.0430908203125, 0.0123291015625, 0.01715087890625, -0.002811431884765625, -0.017547607421875, -0.00531005859375, 0.022857666015625, -0.0214385986328125, -0.02825927734375, 0.04034423828125, 0.032196044921875, 0.030975341796875, -0.058074951171875, -0.0755615234375, 0.0021305084228515625, 0.026702880859375, -0.005748748779296875, 0.04241943359375, -0.01453399658203125, -0.005950927734375, 0.044921875, -0.041412353515625, 0.03839111328125, 0.03692626953125, -0.033050537109375, -0.0193328857421875, -0.00247955322265625, 0.046051025390625, -0.01519012451171875, -0.01326751708984375, -0.0242462158203125, 0.005970001220703125, 0.073974609375, -0.013031005859375, 0.01111602783203125, -0.03192138671875, -0.019989013671875, 0.0051116943359375, 0.014617919921875, -0.01788330078125, -0.01244354248046875, -0.05047607421875, -0.03778076171875, -0.03240966796875, -0.04754638671875, -0.052520751953125, -0.011260986328125, -0.013580322265625, -0.00971221923828125, 0.005947113037109375, -0.0219573974609375, 0.0120849609375, -0.00933837890625, 0.0151519775390625, -0.04266357421875, 0.0017690658569335938, 0.00405120849609375, -0.0005674362182617188, -0.0199737548828125, -0.031585693359375, -0.02935791015625, 0.034423828125, 0.050567626953125, -0.018798828125, 0.0246124267578125, 0.0307464599609375, 0.0218658447265625, -0.04376220703125, -0.01007843017578125, -0.0132293701171875, -0.01071929931640625, -0.0274810791015625, 0.0173492431640625, -0.01345062255859375, 0.0011072158813476562, -0.0240325927734375, -0.003482818603515625, 0.0188140869140625, 0.002986907958984375, -0.00894927978515625, 0.0182647705078125, 0.0252227783203125, 0.006244659423828125, -0.0129547119140625, 0.0207672119140625, 0.04083251953125, -0.014129638671875, -0.02850341796875, -0.0170745849609375, 0.044647216796875, 0.02008056640625, 0.0027008056640625, 0.016571044921875, -0.0030956268310546875, -0.0694580078125, -0.0416259765625, 0.019622802734375, 0.0181732177734375, 0.0106201171875, 0.0232391357421875, 0.0232086181640625, -0.0096893310546875, -0.026519775390625, 0.01788330078125, 0.006473541259765625, 0.014251708984375, 0.00873565673828125, 0.05242919921875, -0.01300048828125, 0.07830810546875, -0.054107666015625, -0.0092926025390625, -0.0302581787109375, -0.0181732177734375, -0.01232147216796875, 0.030364990234375, -0.00958251953125, -0.0246124267578125, 0.0277099609375, -0.0189971923828125, -0.0036334991455078125, 0.031585693359375, -0.002147674560546875, 0.035125732421875, -0.0567626953125, 0.056060791015625, 0.0176849365234375, -0.00539398193359375, 0.045318603515625, 0.0198974609375, 0.04339599609375, 0.0119171142578125, 0.03216552734375, 0.02227783203125, -0.01068115234375, 0.10772705078125, -0.020416259765625, -0.04150390625, 0.062469482421875, 0.027374267578125, 0.08367919921875, -0.023193359375, 0.019317626953125, 0.01102447509765625, 0.04644775390625, 0.03692626953125, 0.0203399658203125, -0.0284881591796875, -0.06634521484375, -0.0124969482421875, -0.0016775131225585938, -0.037139892578125, 0.01464080810546875, -0.004001617431640625, -0.012939453125, -0.0030994415283203125, -0.02178955078125, -0.068603515625, -0.039703369140625, -0.022552490234375, 0.0206146240234375, 0.01471710205078125, 0.0209197998046875, -0.007526397705078125, -0.0046539306640625, 0.00418853759765625, -0.033172607421875, -0.0202178955078125, 0.020294189453125, -0.03326416015625, 0.04718017578125, -0.0010786056518554688, 0.05535888671875, -0.037139892578125, -0.0455322265625, -0.015106201171875, -0.033172607421875, 0.03173828125, 0.02874755859375, -0.0229034423828125, 0.00818634033203125, 0.0243682861328125, 0.01111602783203125, 0.01265716552734375, 0.0230255126953125, 0.033203125, 0.032745361328125, 0.0009937286376953125, -0.01113128662109375, -0.00356292724609375, -0.09063720703125, 0.019134521484375, 0.05316162109375, 0.040130615234375, 0.0272979736328125, 0.0037441253662109375, -0.003231048583984375, 0.0183258056640625, -0.05731201171875, 0.0193634033203125, -0.0222320556640625, -0.010284423828125, -0.041717529296875, 0.007488250732421875, -0.035858154296875, 0.03387451171875, -0.046295166015625, 0.005443572998046875, 0.0196380615234375, -0.006694793701171875, -0.0204315185546875, -0.01560211181640625, -0.01094818115234375, 0.0172882080078125, -0.006633758544921875, -0.04443359375, 0.01165771484375, -0.0233917236328125, -0.035125732421875, 0.00787353515625, 0.002216339111328125, 0.0226898193359375, -0.04864501953125, 0.0155487060546875, -0.0057525634765625, 0.0009465217590332031, 0.00795745849609375, 0.06640625, 0.0266265869140625, -0.05633544921875, -0.00962066650390625, 0.0235443115234375, 0.0192108154296875, -0.0166168212890625, 0.0306549072265625, 0.0263519287109375, -0.007740020751953125, -0.048309326171875, -0.009429931640625, 0.039459228515625, 0.0207061767578125, 0.0880126953125, 0.027130126953125, 0.0284423828125, 0.0250244140625, -0.025787353515625, 0.09521484375, 0.01409912109375, -0.045440673828125, 0.06292724609375, 0.0028743743896484375, -0.0041046142578125, 0.0161285400390625, 0.04290771484375, 0.033050537109375, 0.030426025390625, -0.0226593017578125, 0.006664276123046875, 0.04693603515625, 0.031280517578125, 0.0002484321594238281, -0.0243988037109375, 0.011505126953125, -0.08477783203125, -0.08282470703125, 0.024017333984375, 0.019989013671875, 0.020538330078125, -0.0369873046875, -0.00673675537109375, 0.01947021484375, -0.134765625, -0.1370849609375, -0.06524658203125, -0.044586181640625, -0.00969696044921875, 0.017120361328125, -0.00679779052734375, 0.01390838623046875, 0.0285491943359375, 0.0224609375, -0.001705169677734375, -0.0001926422119140625, -0.06268310546875, -0.07061767578125, -0.08447265625, -0.022216796875, -0.0201416015625, 0.0169219970703125, -0.0025234222412109375, 0.0562744140625, -0.0069427490234375, -0.06982421875, -0.030517578125, -0.034912109375, -0.0237884521484375, 0.0207672119140625, -0.0231781005859375, 0.0067291259765625, 0.005474090576171875, 0.000698089599609375, 0.013153076171875, 0.0024394989013671875, -0.00848388671875, -0.025848388671875, -0.0128936767578125, -0.0616455078125, -0.0144805908203125, -0.021759033203125, 0.00380706787109375, -0.08123779296875, -0.04010009765625, -0.09344482421875, -0.0296478271484375, -0.031646728515625, -0.061065673828125, 0.049072265625, 0.0391845703125, 0.00476837158203125, -0.0029087066650390625, 0.0016727447509765625, -0.00844573974609375, 0.0111541748046875, -0.033660888671875, -0.00858306884765625, -0.00545501708984375, -0.0081634521484375, 0.001617431640625, 0.023712158203125, 0.03778076171875, -0.0081329345703125, -0.0210723876953125, 0.00833892822265625, -0.0175018310546875, -0.0251007080078125, 0.0201263427734375, -0.041778564453125, -0.015716552734375, 0.038055419921875, -0.0008902549743652344, -0.003082275390625, 0.000858306884765625, -0.0164337158203125, 0.012786865234375, 0.04779052734375, -0.00617218017578125, -0.03515625, -0.0301971435546875, 0.0141143798828125, -0.0031833648681640625, -0.032501220703125, 0.042327880859375, -0.020904541015625, 0.050689697265625, -0.0169830322265625, -0.0174102783203125, 0.0078125, 0.0034275054931640625, 0.004886627197265625, 0.0477294921875, -0.0105133056640625, 0.02117919921875, -0.060333251953125, 0.00995635986328125, -0.0173187255859375, -0.00812530517578125, -0.050933837890625, -0.007354736328125, -0.04986572265625, -0.0830078125, -0.010162353515625, -0.015380859375, 0.05517578125, -0.0164337158203125, 0.0255279541015625, -0.044097900390625, 0.0163421630859375, -0.0019359588623046875, 0.0006561279296875, -0.0007262229919433594, -0.0115966796875, -0.018035888671875, 0.0374755859375, 0.01056671142578125, 0.009063720703125, -0.019989013671875, -0.0152740478515625, -0.028228759765625, -0.0257568359375, 0.00722503662109375, -0.0271453857421875, 0.052642822265625, -0.0222320556640625, -0.035125732421875, -0.0045166015625, -0.00933074951171875, 0.030487060546875, -0.01983642578125, 0.01256561279296875, -0.01025390625, -0.04443359375, 0.052581787109375, -0.000858306884765625, -0.01540374755859375, -0.001739501953125, 0.038116455078125, 0.0161590576171875, -0.031463623046875, -0.05157470703125, -0.0117645263671875, -0.002483367919921875, -0.007171630859375, 0.058624267578125, 0.01526641845703125, 0.0205078125, 0.011383056640625, -0.0294189453125, 0.0196685791015625, 0.00354766845703125, 0.0014982223510742188, 0.01520538330078125, -0.01812744140625, 0.0301055908203125, 0.03521728515625, -0.0286865234375, 0.056396484375, -0.01377105712890625, -0.00490570068359375, 0.01473236083984375, 0.01251220703125, -0.0643310546875, 0.03179931640625, -0.0023670196533203125, -0.044677734375, 0.024139404296875, -0.01654052734375, -0.0184783935546875, 0.011749267578125, -0.002948760986328125, -0.005062103271484375, -0.0352783203125, -0.01129150390625, -0.014984130859375, 0.008087158203125, -0.0175628662109375, 0.00568389892578125, -0.0089569091796875, -0.030975341796875, -0.02996826171875, -0.02520751953125, 0.0841064453125, 0.016815185546875, -0.047149658203125, 0.020172119140625, -0.01282501220703125, 0.0194091796875, -0.00116729736328125, -0.0134124755859375, 0.05706787109375, 0.039154052734375, -0.027313232421875, -0.02130126953125, 0.0174102783203125, -0.037139892578125, -0.0501708984375, -0.016021728515625, -0.001430511474609375, -0.00024890899658203125, 0.028656005859375, 0.03387451171875, -0.0220794677734375, 0.030914306640625, -0.00988006591796875, 0.033172607421875, 0.005992889404296875, 0.0228118896484375, 0.005237579345703125, 0.001983642578125, 0.0136871337890625, -0.0156707763671875, 0.0207366943359375, -0.0462646484375, -0.031646728515625, 0.02923583984375, 0.041961669921875, 0.0121002197265625, 0.006267547607421875, 0.0061798095703125, 0.004467010498046875, -0.0105133056640625, 0.042877197265625, 0.03741455078125, -0.0189056396484375, -0.0316162109375, 0.01103973388671875, 0.050018310546875, 0.00308990478515625, -0.005313873291015625, 0.01934814453125, 0.01053619384765625, 0.028778076171875, -0.00983428955078125, -0.0239715576171875, -0.00432586669921875, 0.0225982666015625, 0.0499267578125, -0.01424407958984375, -0.042633056640625, 0.00012636184692382812, 0.002841949462890625, -0.02178955078125, 0.0176239013671875, 0.0689697265625, -0.0281524658203125, -0.01294708251953125, -0.033660888671875, 0.03021240234375, -0.04913330078125, 0.0035877227783203125, 0.034271240234375, 0.027374267578125, -0.048187255859375, -0.0220489501953125, -0.05902099609375, -0.040283203125, -0.017242431640625, 0.00194549560546875, -0.044708251953125, 0.0178375244140625, -0.01303863525390625, 0.005191802978515625, -0.00028324127197265625, 0.02789306640625, -0.0138397216796875, 0.077392578125, 0.012359619140625, 0.0777587890625, -0.0374755859375, 0.037445068359375, 0.028533935546875, -0.00939178466796875, 0.0014085769653320312, 0.0203704833984375, 0.0186767578125, -0.004291534423828125, 0.001766204833984375, -0.0257110595703125, -0.0357666015625, -0.004543304443359375, -0.0268096923828125, 0.0438232421875, 0.07421875, -0.006572723388671875, -0.01934814453125, -0.000713348388671875, 0.003925323486328125, -0.0080413818359375, 0.023284912109375, 0.017547607421875, -0.006084442138671875, -0.00408935546875, 0.0019741058349609375, 0.022369384765625, -0.03924560546875, -0.01139068603515625, -0.0011043548583984375, 0.002117156982421875, -0.0063018798828125, 0.0022735595703125, -0.0266876220703125, 0.055877685546875, 0.09033203125, 0.00470733642578125, 0.046356201171875, 0.0225830078125, 0.011962890625, 0.008941650390625, 0.0338134765625, -0.0301666259765625, -0.03997802734375, -0.01013946533203125, -0.016448974609375, -0.01396942138671875, -0.035003662109375, -0.00927734375, 0.007266998291015625, 0.0625, 0.07659912109375, -0.07135009765625, -0.00911712646484375, 0.0295867919921875, -0.033538818359375, -0.023101806640625, -0.02911376953125, -0.024658203125, -0.06317138671875, 0.05206298828125, 0.017486572265625, -0.0305938720703125, 0.004291534423828125, -0.005428314208984375, -0.01153564453125, -0.0220184326171875, 0.07110595703125, 0.01399993896484375, 0.006710052490234375, -0.002277374267578125, -0.01432037353515625, 0.0106201171875, -0.00830078125, 0.04693603515625, -0.0301971435546875, -0.024505615234375, -0.024139404296875, 0.00011169910430908203, 0.0223541259765625, -0.019622802734375, 0.050933837890625, 0.0102386474609375, 0.03564453125, 0.050933837890625, 0.002613067626953125, 0.0191192626953125, 0.0089111328125, 0.01019287109375, -0.017730712890625, -0.076904296875, 0.00464630126953125, 0.07598876953125, -0.045562744140625, 0.03955078125, 0.043792724609375, -0.0672607421875, -0.0008363723754882812, 0.00659942626953125, 0.03839111328125, -0.002147674560546875, -0.016876220703125, 0.022674560546875, 0.00539398193359375, 0.0005955696105957031, -0.039031982421875, 0.051055908203125, -0.061187744140625, -0.005084991455078125, -0.01145172119140625, -0.01104736328125, -0.03961181640625, -0.05712890625, -0.06707763671875, 0.16064453125, 0.0254974365234375, 0.01471710205078125, 0.0006680488586425781, 0.07379150390625, -0.059051513671875, 0.022186279296875, -0.0089263916015625, 0.02923583984375, 0.01324462890625, 0.0039520263671875, -0.0022678375244140625, 0.004322052001953125, 0.009857177734375, 0.0210418701171875, 0.01296234130859375, 0.0013370513916015625, -0.026153564453125, -0.017608642578125, 0.020172119140625, 0.04034423828125, 0.0251617431640625, 0.023834228515625, -0.0245361328125, 0.0198974609375, 0.0528564453125, -0.038482666015625, 0.02471923828125, 0.0042877197265625, -0.0230255126953125, -0.004161834716796875, 0.0202789306640625, 0.01207733154296875, -0.00033855438232421875, -0.0014019012451171875, -0.033966064453125, 0.0014123916625976562, 0.0158843994140625, 0.035919189453125, -0.0016870498657226562, 0.006103515625, -0.00797271728515625, 0.0011816024780273438, -0.0006394386291503906, -0.0279083251953125, 0.03424072265625, -0.0006699562072753906, 0.0029773712158203125, -0.032501220703125, 0.001422882080078125, 0.0269317626953125, -0.06597900390625, -0.0304412841796875, 0.0128326416015625, -0.03106689453125, 0.01214599609375, 0.0018987655639648438, 0.0151214599609375, -0.03173828125, 0.022705078125, 0.019775390625, 0.0189971923828125, -0.0245513916015625, -0.0225982666015625, 0.00406646728515625, -0.00524139404296875, 0.033355712890625, 0.000640869140625, 0.05877685546875, 0.0093231201171875, -0.01430511474609375, -0.0003256797790527344, -0.01409912109375, 0.03375244140625, 0.01200103759765625, 0.010711669921875, 0.026641845703125, -0.01386260986328125, -0.0223541259765625, 0.00299835205078125, -0.008026123046875, 0.0107879638671875, 0.040740966796875, -0.004283905029296875, 0.0205535888671875, -0.0689697265625, 0.0011196136474609375, -0.007808685302734375, 0.037322998046875, 0.0163421630859375, -0.0007162094116210938, -0.01390838623046875, -0.034271240234375, 0.00963592529296875, 0.024749755859375, 0.01007080078125, 0.03546142578125, 0.03466796875, 0.022674560546875, -0.033660888671875, 0.0058135986328125, 0.046173095703125, -0.034271240234375, -0.0279388427734375, -0.043060302734375, -0.030548095703125, -0.0099029541015625, -0.01436614990234375, 0.0271453857421875, -0.0191497802734375, 0.0160369873046875, -0.01111602783203125, 0.0257110595703125, 0.0083770751953125, -0.040985107421875, 0.041107177734375, -0.004238128662109375, 0.08154296875, 0.0112762451171875, -0.038604736328125, 0.0072479248046875, -0.020843505859375, -0.025543212890625, 0.00054168701171875, 0.022674560546875, -0.02825927734375, 0.051025390625, 0.0251007080078125, -0.006267547607421875, 0.005584716796875, 0.005268096923828125, -0.000614166259765625, -0.0292816162109375, 0.0236053466796875, -0.019134521484375, 0.008270263671875, 0.00681304931640625, -0.013397216796875, 0.0263214111328125, 0.01056671142578125, 0.06793212890625, -0.03466796875, 0.0117950439453125, -0.0007448196411132812, -0.051513671875, 0.03424072265625, 0.02459716796875, -0.0594482421875, 0.0025234222412109375, -0.007659912109375, -0.0108184814453125, -0.030487060546875, 0.06463623046875, -0.0171051025390625, 0.0079803466796875, 0.0684814453125, -0.039520263671875, -0.0008826255798339844, 0.0008959770202636719, 0.038970947265625, -0.01031494140625, -0.043853759765625, -0.01073455810546875, 0.02447509765625, 0.01413726806640625, 0.06292724609375, 0.0221405029296875, 0.0221710205078125, -0.0146026611328125, -0.05670166015625, -0.003849029541015625, -0.0587158203125, -0.0262908935546875, 0.0233154296875, 0.042022705078125, 0.018096923828125, -0.051971435546875, -0.031890869140625, 0.0261383056640625, -0.00583648681640625, -0.0012502670288085938, -0.0201416015625, 0.05609130859375, -0.042236328125, -0.0265960693359375, 0.00772857666015625, 0.004192352294921875, -0.00986480712890625, -0.0343017578125, -0.010101318359375, -0.024444580078125, 0.0019388198852539062, -0.00617218017578125, -0.01358795166015625, -0.00179290771484375, 0.008453369140625, -0.00572967529296875, -0.0156707763671875, -0.016937255859375, 0.0146636962890625, 0.017730712890625, -0.0017147064208984375, -0.01226043701171875, -0.0111236572265625, -0.01093292236328125, 0.017974853515625, 0.00513458251953125, -0.0121917724609375, 0.02227783203125, 0.07623291015625, -0.045257568359375, -0.035125732421875, -0.00292205810546875, 0.0007719993591308594, -0.032073974609375, 0.00897216796875, 0.036529541015625, -0.032989501953125, -0.007415771484375, -0.014068603515625, 0.0251922607421875, 0.02197265625, 0.0243377685546875, -0.0166168212890625, 0.0204315185546875, -0.000904083251953125, -0.01485443115234375, -0.06365966796875, 0.00205230712890625, -0.050506591796875, 0.0008111000061035156, -0.0262908935546875, 0.0282745361328125, 0.0240478515625, -0.036956787109375, -0.08294677734375, 0.045562744140625, -0.0213623046875, -0.0220489501953125, -0.056427001953125, -0.0389404296875, 0.0021038055419921875, 0.006282806396484375, -0.025421142578125, -0.0172119140625, -0.06134033203125, 0.052459716796875, 0.0211944580078125, -0.015899658203125, 0.06622314453125, 0.00302886962890625, -0.0209808349609375, -0.0030994415283203125, -0.005329132080078125, 0.0021953582763671875, -0.0028629302978515625, 0.0185546875, 0.008392333984375, 0.0288848876953125, -0.0389404296875, 0.020965576171875, -0.00310516357421875, 0.00878143310546875, -0.020599365234375, -0.016876220703125, 0.027435302734375, 0.034637451171875, 0.0338134765625, 0.04583740234375, -0.00414276123046875, -0.051513671875, -0.020355224609375, -0.06536865234375, -0.00421905517578125, -0.0260162353515625, 0.0056610107421875, -0.057830810546875, 0.0009655952453613281, 0.007724761962890625, -0.00411224365234375, 0.0091400146484375, -0.0203857421875, -0.007343292236328125, -0.0187225341796875, -0.025848388671875, -0.0325927734375, 0.007354736328125, -0.01190948486328125, 0.0438232421875, -0.006275177001953125, 0.029144287109375, -0.0007028579711914062, 0.010894775390625, 0.037445068359375, 0.06396484375, 0.0166015625, 0.009033203125, -0.0570068359375, 0.0200042724609375, 0.0011653900146484375, 0.0270538330078125, -0.038116455078125, -0.022674560546875, -0.0196533203125, -0.0176544189453125, 0.01568603515625, -0.0305633544921875, -0.0126800537109375, -0.03302001953125, -0.004215240478515625, 0.0168609619140625, -0.0165252685546875, -0.0184783935546875, -0.0272369384765625, 0.00989532470703125, 0.00885009765625, -0.006717681884765625, 0.043426513671875, -0.0168304443359375, 0.015045166015625, 0.032318115234375, -0.0119781494140625, -0.010467529296875, 0.002216339111328125, 0.027984619140625, 0.0031585693359375, -0.002185821533203125 ]
6206a361e184ac35a124bfee614d6d914fda3f2b
Wordpress Stackexchange Q: How to get image title/alt attribute? In my white theme, there is no alt attribute configured for the home slider post. I added the alt text for the image through the media library interface. I added the following code to display the alt text/attribute. But it does not display: <img class="homepage-slider_image" src="http://www.blabla.com/wp-content/uploads/2013/06/cms-website4-1800x800.jpg" alt="" /> Here is the code: <?php $image = get_post_meta(get_the_ID(), WPGRADE_PREFIX.'homepage_slide_image', true); if (!empty($image)) { $image = json_decode($image); $image_alt = get_post_meta( $attachment->ID, '_wp_attachment_image_alt', true); if ( empty( $image_alt )) { $image_alt = $attachment->post_title; } if ( empty( $image_alt )) { $image_alt = $attachment->post_excerpt; } $image_title = $attachment->post_title; $image_id = $image->id; $image = wp_get_attachment_image_src( $image_id, 'blog-huge', false); echo '<img class="homepage-slider_image" src="'.$image[0].'" alt="'. $image_alt .'" />'; } ?> A: I use a quick function in all my themes to get image attachment data: //get attachment meta if ( !function_exists('wp_get_attachment') ) { function wp_get_attachment( $attachment_id ) { $attachment = get_post( $attachment_id ); return array( 'alt' => get_post_meta( $attachment->ID, '_wp_attachment_image_alt', true ), 'caption' => $attachment->post_excerpt, 'description' => $attachment->post_content, 'href' => get_permalink( $attachment->ID ), 'src' => $attachment->guid, 'title' => $attachment->post_title ); } } Hope this helps!
Q: How to get image title/alt attribute? In my white theme, there is no alt attribute configured for the home slider post. I added the alt text for the image through the media library interface. I added the following code to display the alt text/attribute. But it does not display: <img class="homepage-slider_image" src="http://www.blabla.com/wp-content/uploads/2013/06/cms-website4-1800x800.jpg" alt="" /> Here is the code: <?php $image = get_post_meta(get_the_ID(), WPGRADE_PREFIX.'homepage_slide_image', true); if (!empty($image)) { $image = json_decode($image); $image_alt = get_post_meta( $attachment->ID, '_wp_attachment_image_alt', true); if ( empty( $image_alt )) { $image_alt = $attachment->post_title; } if ( empty( $image_alt )) { $image_alt = $attachment->post_excerpt; } $image_title = $attachment->post_title; $image_id = $image->id; $image = wp_get_attachment_image_src( $image_id, 'blog-huge', false); echo '<img class="homepage-slider_image" src="'.$image[0].'" alt="'. $image_alt .'" />'; } ?> A: I use a quick function in all my themes to get image attachment data: //get attachment meta if ( !function_exists('wp_get_attachment') ) { function wp_get_attachment( $attachment_id ) { $attachment = get_post( $attachment_id ); return array( 'alt' => get_post_meta( $attachment->ID, '_wp_attachment_image_alt', true ), 'caption' => $attachment->post_excerpt, 'description' => $attachment->post_content, 'href' => get_permalink( $attachment->ID ), 'src' => $attachment->guid, 'title' => $attachment->post_title ); } } Hope this helps! A: Came here as this post is among the top hits on the search engine when looking for WordPress image alt and title. Being rather surprised that none of the answers seem to provide a simple solution matching the question's title I'll drop what I came up with in the end hoping it helps future readers. // An attachment/image ID is all that's needed to retrieve its alt and title attributes. $image_id = get_post_thumbnail_id(); $image_alt = get_post_meta($image_id, '_wp_attachment_image_alt', TRUE); $image_title = get_the_title($image_id); As a bonus here's how to retrieve an image src. With the above attributes that's all we need to build a static image's markup. $size = 'my-size' // Defaults to 'thumbnail' if omitted. $image_src = wp_get_attachment_image_src($image_id, $size)[0]; A: Your problem is that you are not providing the correct attachment's ID to get_post_meta() and get_the_title() functions. This is your code to get the alt of the image: $image_alt = get_post_meta( $attachment->ID, '_wp_attachment_image_alt', true); And it is correct, but $attachment->ID is not defined in your code, so, the function does not return anything. Reading your code, it seems that you store the ID of the image as a meta field and then you get it with this code: $image = get_post_meta(get_the_ID(), WPGRADE_PREFIX.'homepage_slide_image', true); So, assuming that $image->id is correct in your code, you should replace this: $image_alt = get_post_meta( $attachment->ID, '_wp_attachment_image_alt', true); With: $image_alt = get_post_meta( $image->id, '_wp_attachment_image_alt', true); That is for getting the alt, to get the title: $image_title = get_the_title( $image->id ); A: $image = get_post_meta(get_the_ID(), WPGRADE_PREFIX . 'homepage_slide_image', true); if (!empty($image)) { $image = json_decode($image); $image_id = $image->id; $img_meta = wp_prepare_attachment_for_js($image_id); $image_title = $img_meta['title'] == '' ? esc_html_e('Missing title','{domain}') : $img_meta['title']; $image_alt = $img_meta['alt'] == '' ? $image_title : $img_meta['alt']; $image_src = wp_get_attachment_image_src($image_id, 'blog-huge', false); echo '<img class="homepage-slider_image" src="' . $image_src[0] . '" alt="' . $image_alt . '" />'; } please note that I did not test your $image->id , just assumed that you have the right attachment ID. The rest comes from $img_meta. If alt is missing we are using image title, if title is missing you will see "Missing title" text to nudge you to fill it in. A: Ok I found the answer that no one has on the net I been looking for days now. Keep in mine this only works if your theme or plugin is using the WP_Customize_Image_Control() if you are using WP_Customize_Media_Control() the get_theme_mod() will return the ID and not the url. For my solution I was using the newer version WP_Customize_Image_Control() A lot of posts on the forums have the get_attachment_id() which does not work anymore. I used attachment_url_to_postid() Here is how I was able to do it. Hope this helps someone out there // This is getting the image / url $feature1 = get_theme_mod('feature_image_1'); // This is getting the post id $feature1_id = attachment_url_to_postid($feature1); // This is getting the alt text from the image that is set in the media area $image1_alt = get_post_meta( $feature1_id, '_wp_attachment_image_alt', true ); Markup <a href="<?php echo $feature1_url; ?>"><img class="img-responsive center-block" src="<?php echo $feature1; ?>" alt="<?php echo $image1_alt; ?>"></a> A: The true WordPress way would be to use provided function get_image_tag() to obtain image tag, providing id and alt arguments to the function. Other answers already explain how to get alt attribute. It also takes care of srcset and sizes attributes, which you should otherwise provide manually using wp_get_attachment_image_srcset, in order to have modern browser - optimized image loading.
wordpress
{ "language": "en", "length": 750, "provenance": "stackexchange_00019.jsonl.gz:456909", "question_score": "35", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193196" }
[ 0.0214691162109375, 0.0087738037109375, 0.03314208984375, 0.00980377197265625, 0.0095062255859375, -0.0145111083984375, 0.061767578125, -0.06103515625, 0.0157623291015625, 0.0242767333984375, -0.0269775390625, 0.0262908935546875, -0.0253448486328125, -0.0047760009765625, -0.0133209228515625, -0.0177459716796875, 0.053131103515625, -0.02899169921875, 0.0577392578125, 0.034942626953125, -0.0004801750183105469, 0.081787109375, 0.018524169921875, -0.01080322265625, 0.00789642333984375, -0.03680419921875, 0.111083984375, -0.01212310791015625, 0.01273345947265625, -0.01488494873046875, 0.0294952392578125, -0.0145263671875, 0.041168212890625, -0.022674560546875, 0.010772705078125, 0.035003662109375, -0.0007367134094238281, -0.00849151611328125, -0.0192108154296875, 0.021636962890625, 0.01739501953125, 0.0065765380859375, 0.0070037841796875, 0.040435791015625, -0.019683837890625, -0.0479736328125, 0.01372528076171875, -0.030670166015625, 0.023529052734375, 0.0271453857421875, 0.029388427734375, -0.003055572509765625, 0.026885986328125, 0.0017938613891601562, -0.0118255615234375, -0.00801849365234375, -0.037017822265625, -0.01186370849609375, 0.0216064453125, 0.0042572021484375, -0.007396697998046875, -0.0097503662109375, 0.0174407958984375, -0.0168914794921875, 0.024322509765625, 0.0157470703125, 0.0443115234375, 0.01003265380859375, -0.0341796875, 0.0050048828125, 0.00923919677734375, -0.035736083984375, 0.006305694580078125, -0.07220458984375, -0.005889892578125, 0.046051025390625, -0.0389404296875, -0.041290283203125, 0.01427459716796875, -0.0281982421875, 0.017730712890625, -0.019256591796875, -0.015380859375, 0.01561737060546875, 0.009033203125, 0.045867919921875, -0.0009026527404785156, -0.020233154296875, 0.005428314208984375, -0.01910400390625, -0.002758026123046875, -0.057281494140625, 0.01149749755859375, 0.0211639404296875, -0.0043487548828125, -0.04437255859375, 0.0306396484375, 0.040985107421875, -0.01323699951171875, 0.01776123046875, -0.0026397705078125, -0.0513916015625, 0.05975341796875, -0.05072021484375, 0.0011301040649414062, -0.033538818359375, -0.00713348388671875, -0.0200347900390625, 0.00772857666015625, 0.039520263671875, -0.0322265625, 0.0030670166015625, -0.020111083984375, 0.0026035308837890625, -0.03192138671875, 0.01995849609375, -0.042633056640625, 0.00458526611328125, -0.0154876708984375, 0.0266876220703125, -0.0011167526245117188, 0.004528045654296875, 0.031005859375, -0.01129150390625, 0.0037555694580078125, 0.00637054443359375, -0.024200439453125, -0.0423583984375, 0.0288543701171875, 0.009674072265625, -0.040313720703125, 0.00885772705078125, 0.0235443115234375, -0.0196075439453125, 0.0046539306640625, -0.01038360595703125, -0.0144195556640625, -0.01441192626953125, -0.0169525146484375, -0.003856658935546875, 0.03118896484375, -0.0090179443359375, 0.0008606910705566406, -0.0014276504516601562, -0.0016469955444335938, 0.033905029296875, -0.00385284423828125, 0.007205963134765625, 0.0009169578552246094, -0.047607421875, 0.0287017822265625, -0.07110595703125, 0.0176849365234375, 0.04541015625, -0.007297515869140625, 0.01123809814453125, 0.0579833984375, -0.01320648193359375, -0.022308349609375, -0.04693603515625, 0.0258636474609375, 0.0078277587890625, -0.006977081298828125, -0.01056671142578125, 0.0011510848999023438, -0.0269012451171875, 0.0003476142883300781, 0.003482818603515625, 0.0103607177734375, 0.056182861328125, -0.0230712890625, 0.006435394287109375, 0.01629638671875, -0.0045013427734375, -0.029998779296875, -0.007709503173828125, -0.0131683349609375, -0.01219940185546875, 0.03973388671875, 0.0352783203125, 0.0081024169921875, -0.0033931732177734375, 0.035247802734375, 0.004543304443359375, -0.037017822265625, 0.006809234619140625, -0.0002696514129638672, 0.01922607421875, 0.0268096923828125, 0.008941650390625, 0.0255126953125, 0.0036468505859375, -0.0293731689453125, 0.03997802734375, -0.020599365234375, -0.02008056640625, -0.0245513916015625, -0.004596710205078125, -0.03009033203125, 0.006900787353515625, 0.006504058837890625, -0.0228271484375, 0.02703857421875, -0.018798828125, -0.00748443603515625, -0.0261383056640625, -0.0024280548095703125, 0.0242156982421875, -0.0258026123046875, 0.045379638671875, 0.0241851806640625, -0.004207611083984375, -0.0288238525390625, 0.0028934478759765625, 0.0233154296875, -0.00949859619140625, -0.036590576171875, 0.021331787109375, -0.049560546875, 0.03985595703125, -0.052490234375, -0.040130615234375, -0.019744873046875, 0.04266357421875, 0.0675048828125, 0.00937652587890625, -0.0237884521484375, -0.021240234375, 0.03643798828125, 0.0174407958984375, -0.074951171875, 0.0219268798828125, 0.01009368896484375, -0.00933074951171875, -0.03765869140625, -0.00461578369140625, -0.032806396484375, -0.077880859375, -0.0030841827392578125, 0.0667724609375, 0.034332275390625, 0.024871826171875, -0.013427734375, -0.015899658203125, 0.06927490234375, -0.0013866424560546875, 0.0223388671875, -0.0267791748046875, -0.00916290283203125, -0.01543426513671875, -0.00704193115234375, 0.00958251953125, 0.041961669921875, -0.01194000244140625, 0.01953125, 0.044158935546875, -0.005908966064453125, 0.005443572998046875, -0.034698486328125, 0.032470703125, -0.0020923614501953125, 0.01861572265625, 0.0161895751953125, 0.0014781951904296875, 0.0005693435668945312, 0.04693603515625, 0.005100250244140625, -0.0011959075927734375, -0.058837890625, 0.05975341796875, 0.0180206298828125, -0.0119171142578125, 0.0010499954223632812, 0.038726806640625, 0.0177001953125, -0.01271820068359375, 0.00661468505859375, -0.01959228515625, -0.0011577606201171875, 0.006534576416015625, -0.0182342529296875, 0.025604248046875, 0.00836181640625, -0.0113983154296875, -0.0035915374755859375, -0.054840087890625, 0.0062255859375, -0.005035400390625, -0.03387451171875, -0.0032444000244140625, -0.00460052490234375, 0.052642822265625, 0.00618743896484375, 0.015655517578125, 0.0024700164794921875, 0.017333984375, 0.0175323486328125, -0.055267333984375, 0.058624267578125, -0.0229339599609375, 0.08709716796875, 0.08013916015625, -0.032623291015625, 0.053131103515625, -0.00315093994140625, -0.00463104248046875, -0.01184844970703125, -0.0121002197265625, -0.0204925537109375, -0.01387786865234375, -0.03350830078125, 0.041229248046875, 0.016571044921875, 0.048248291015625, -0.05389404296875, -0.06353759765625, -0.0286712646484375, 0.00420379638671875, -0.13330078125, -0.08453369140625, 0.0278167724609375, -0.06280517578125, -0.002498626708984375, -0.00913238525390625, -0.037872314453125, -0.019805908203125, 0.042388916015625, -0.01203155517578125, -0.0078125, -0.01534271240234375, -0.053924560546875, -0.052490234375, -0.0640869140625, -0.04876708984375, -0.007297515869140625, 0.000835418701171875, 0.005138397216796875, 0.0015716552734375, -0.00958251953125, -0.0380859375, 0.005035400390625, 0.05804443359375, 0.00691986083984375, -0.01299285888671875, 0.00484466552734375, -0.018157958984375, -0.036590576171875, 0.0008382797241210938, -0.0026302337646484375, -0.0025196075439453125, -0.00762176513671875, -0.0103759765625, -0.0189208984375, -0.0115814208984375, -0.004619598388671875, 0.019622802734375, 0.024200439453125, -0.012969970703125, 0.00978851318359375, -0.048248291015625, -0.02301025390625, -0.06378173828125, -0.07220458984375, 0.051361083984375, 0.056396484375, 0.0285797119140625, -0.0002703666687011719, 0.005035400390625, -0.01084136962890625, 0.00020492076873779297, 0.027679443359375, -0.02972412109375, 0.03619384765625, -0.01434326171875, -0.005100250244140625, -0.0192718505859375, 0.00804901123046875, 0.001735687255859375, 0.00634765625, 0.0007176399230957031, 0.0220489501953125, -0.016571044921875, 0.010955810546875, -0.0157928466796875, -0.039337158203125, 0.050384521484375, -0.01129150390625, 0.03857421875, -0.057098388671875, -0.0297698974609375, -0.0239105224609375, 0.0777587890625, -0.0360107421875, -0.029327392578125, 0.0005559921264648438, 0.0196685791015625, -0.02862548828125, -0.0242919921875, -0.0224456787109375, 0.0027923583984375, -0.09832763671875, 0.028778076171875, 0.032379150390625, -0.03997802734375, -0.0186309814453125, 0.0235443115234375, -0.07012939453125, -0.0265350341796875, 0.0244140625, 0.0269775390625, -0.00836181640625, 0.03314208984375, -0.0281524658203125, 0.039398193359375, -0.0322265625, 0.003261566162109375, -0.06878662109375, -0.02130126953125, 0.00591278076171875, 0.061614990234375, -0.029937744140625, 0.039581298828125, -0.0162506103515625, 0.0626220703125, 0.0041656494140625, -0.004070281982421875, 0.0090789794921875, 0.00807952880859375, -0.01221466064453125, -0.01311492919921875, 0.0011720657348632812, -0.032257080078125, 0.0198822021484375, -0.04150390625, -0.0870361328125, -0.05975341796875, -0.03717041015625, 0.031646728515625, 0.00984954833984375, -0.0270233154296875, -0.00011664628982543945, 0.00489044189453125, -0.01534271240234375, 0.0203094482421875, -0.0037994384765625, -0.0147857666015625, -0.0191650390625, -0.01104736328125, 0.04205322265625, 0.0093536376953125, -0.0185546875, -0.0022125244140625, 0.054443359375, 0.01049041748046875, -0.031707763671875, -0.03521728515625, 0.029693603515625, 0.044158935546875, 0.001800537109375, 0.03997802734375, 0.0300140380859375, -0.0240020751953125, 0.031463623046875, 0.0307159423828125, 0.0233154296875, -0.041229248046875, 0.047760009765625, -0.01593017578125, -0.0138092041015625, 0.0309600830078125, -0.0009255409240722656, 0.00701904296875, 0.0123291015625, -0.018341064453125, -0.04559326171875, -0.0237274169921875, 0.055694580078125, -0.0204315185546875, 0.0689697265625, -0.0172271728515625, -0.0205078125, -0.00007212162017822266, -0.006664276123046875, 0.03350830078125, 0.00909423828125, 0.006320953369140625, -0.005344390869140625, 0.0268096923828125, -0.011260986328125, -0.0250244140625, -0.0214996337890625, -0.01119232177734375, 0.0143890380859375, -0.01751708984375, -0.0227203369140625, -0.0012121200561523438, -0.0012807846069335938, 0.0187835693359375, -0.007755279541015625, -0.0309906005859375, -0.034393310546875, 0.00585174560546875, 0.03753662109375, 0.017120361328125, -0.021484375, 0.039306640625, 0.014251708984375, -0.04150390625, -0.0252227783203125, -0.053680419921875, -0.0026912689208984375, -0.067626953125, 0.0006694793701171875, 0.024383544921875, -0.0151519775390625, 0.027099609375, 0.038421630859375, -0.0126800537109375, 0.0279693603515625, -0.004657745361328125, -0.01020050048828125, 0.00960540771484375, 0.033905029296875, 0.0182647705078125, -0.01465606689453125, -0.009857177734375, 0.03045654296875, 0.035430908203125, -0.06243896484375, 0.0175933837890625, 0.047149658203125, 0.0858154296875, -0.0085906982421875, -0.083251953125, 0.01296234130859375, -0.05792236328125, -0.0285797119140625, 0.055572509765625, 0.00005555152893066406, -0.05914306640625, -0.03369140625, 0.01580810546875, 0.04644775390625, -0.01739501953125, -0.0262908935546875, 0.0295257568359375, 0.020782470703125, 0.0343017578125, 0.0210418701171875, -0.064208984375, 0.049224853515625, 0.061553955078125, -0.033935546875, 0.007213592529296875, -0.0209503173828125, 0.0180511474609375, -0.01236724853515625, -0.0076446533203125, -0.052337646484375, 0.06512451171875, -0.0084075927734375, 0.0367431640625, -0.031402587890625, -0.021392822265625, -0.06939697265625, -0.007358551025390625, 0.08697509765625, 0.047943115234375, -0.0310211181640625, -0.0023632049560546875, -0.044189453125, 0.0100860595703125, 0.05596923828125, -0.020172119140625, -0.019378662109375, -0.042266845703125, -0.0153350830078125, 0.031524658203125, -0.01280975341796875, 0.01424407958984375, -0.0029506683349609375, 0.018463134765625, -0.00720977783203125, 0.0965576171875, -0.03448486328125, 0.05023193359375, 0.0015459060668945312, 0.04791259765625, -0.01027679443359375, 0.03076171875, 0.0174560546875, -0.0236968994140625, -0.0172271728515625, -0.031585693359375, 0.018157958984375, 0.0196990966796875, 0.0474853515625, -0.001941680908203125, 0.0022563934326171875, 0.021820068359375, 0.0089111328125, -0.010833740234375, 0.0030651092529296875, -0.0196990966796875, -0.0006375312805175781, -0.0195159912109375, -0.0209503173828125, 0.0208892822265625, -0.061248779296875, -0.0175018310546875, -0.008514404296875, 0.005237579345703125, 0.0195770263671875, -0.03680419921875, -0.003631591796875, 0.07305908203125, -0.0264892578125, 0.0238494873046875, 0.131591796875, 0.00783538818359375, 0.062042236328125, 0.03167724609375, -0.0026111602783203125, 0.0537109375, 0.06341552734375, -0.004268646240234375, -0.07025146484375, 0.066162109375, 0.030731201171875, -0.04730224609375, 0.04248046875, -0.041656494140625, 0.04351806640625, -0.043487548828125, 0.07647705078125, 0.059844970703125, 0.0096588134765625, 0.041107177734375, -0.049468994140625, 0.031097412109375, 0.02508544921875, -0.0135650634765625, -0.0003421306610107422, 0.026611328125, -0.052276611328125, -0.01399993896484375, -0.00577545166015625, 0.00963592529296875, 0.0123291015625, -0.00202178955078125, -0.0018739700317382812, -0.00829315185546875, -0.0631103515625, -0.0238037109375, 0.05194091796875, -0.0284271240234375, -0.022918701171875, 0.0201416015625, -0.00997161865234375, -0.01885986328125, -0.079345703125, -0.02618408203125, 0.00917816162109375, -0.02557373046875, -0.01270294189453125, 0.01708984375, 0.0345458984375, 0.025482177734375, 0.016876220703125, -0.0259857177734375, -0.00632476806640625, -0.017364501953125, -0.0002243518829345703, -0.032867431640625, 0.00908660888671875, 0.017730712890625, -0.04583740234375, 0.01117706298828125, -0.000675201416015625, -0.00690460205078125, -0.024810791015625, -0.03656005859375, 0.051849365234375, -0.00994873046875, -0.01358795166015625, 0.0200347900390625, 0.046722412109375, -0.011383056640625, -0.006256103515625, 0.046630859375, -0.047821044921875, -0.0218963623046875, 0.01251220703125, -0.0294189453125, -0.032012939453125, -0.0242462158203125, -0.034393310546875, 0.06451416015625, -0.045623779296875, 0.02978515625, 0.034027099609375, 0.01409149169921875, 0.0033512115478515625, 0.002254486083984375, -0.0263519287109375, 0.02679443359375, -0.0406494140625, -0.002044677734375, -0.060546875, 0.004779815673828125, -0.0261993408203125, 0.03753662109375, 0.07598876953125, 0.0132598876953125, -0.007015228271484375, -0.0272674560546875, 0.0274810791015625, 0.026397705078125, -0.0236358642578125, 0.0305328369140625, -0.004688262939453125, 0.01454925537109375, 0.071044921875, -0.04022216796875, 0.0301666259765625, -0.0180511474609375, 0.0216522216796875, 0.01910400390625, 0.001911163330078125, 0.002593994140625, 0.032379150390625, -0.0035037994384765625, -0.038299560546875, 0.011383056640625, 0.04364013671875, -0.06500244140625, -0.00641632080078125, 0.014739990234375, -0.01064300537109375, 0.004184722900390625, -0.039642333984375, -0.00536346435546875, 0.009613037109375, 0.01160430908203125, 0.0038738250732421875, 0.03765869140625, 0.0035305023193359375, 0.00608062744140625, 0.016357421875, -0.0017604827880859375, 0.0189666748046875, 0.02191162109375, 0.01361083984375, 0.00007265806198120117, 0.0187835693359375, -0.0333251953125, -0.012939453125, 0.036468505859375, 0.0274505615234375, -0.0210723876953125, -0.01922607421875, 0.02239990234375, 0.00820159912109375, -0.00505828857421875, 0.01128387451171875, 0.021392822265625, -0.036224365234375, -0.002765655517578125, -0.033782958984375, 0.0215301513671875, 0.02935791015625, 0.043365478515625, -0.00013315677642822266, -0.01338958740234375, -0.06402587890625, 0.00799560546875, -0.0239105224609375, -0.0236358642578125, 0.009857177734375, 0.046112060546875, 0.0177764892578125, 0.03253173828125, -0.0018310546875, -0.011474609375, -0.0126800537109375, 0.060089111328125, -0.0108795166015625, 0.01580810546875, -0.032623291015625, -0.059234619140625, 0.0003838539123535156, 0.018951416015625, -0.0017843246459960938, -0.0133056640625, 0.04290771484375, 0.03594970703125, -0.053497314453125, -0.03265380859375, -0.01194000244140625, -0.02130126953125, 0.01194000244140625, -0.0201873779296875, 0.0650634765625, 0.05224609375, 0.0098419189453125, -0.0206146240234375, 0.021636962890625, 0.06610107421875, -0.03704833984375, 0.067138671875, -0.0078125, -0.01079559326171875, -0.0209197998046875, 0.00623321533203125, 0.026947021484375, -0.00409698486328125, -0.0765380859375, -0.01654052734375, -0.021514892578125, -0.0189971923828125, 0.01448822021484375, 0.034271240234375, -0.021514892578125, 0.035552978515625, -0.04541015625, -0.0278167724609375, 0.03192138671875, -0.0071563720703125, -0.0115509033203125, 0.0211029052734375, 0.0009975433349609375, -0.02874755859375, -0.02349853515625, -0.0053253173828125, -0.004261016845703125, 0.0150909423828125, 0.0171966552734375, 0.0159912109375, 0.006938934326171875, 0.02508544921875, 0.00443267822265625, 0.0167236328125, -0.0281982421875, 0.01268768310546875, -0.00849151611328125, -0.00921630859375, 0.0066986083984375, -0.0112457275390625, -0.040130615234375, 0.0129852294921875, 0.0299072265625, -0.0057373046875, 0.0084686279296875, -0.0028553009033203125, 0.01580810546875, -0.006072998046875, 0.046844482421875, -0.015838623046875, -0.0096435546875, -0.06805419921875, -0.0298919677734375, 0.05902099609375, 0.0484619140625, 0.0014944076538085938, 0.01137542724609375, 0.041656494140625, 0.02459716796875, 0.041107177734375, 0.0169677734375, 0.0650634765625, 0.0243988037109375, -0.03265380859375, -0.026336669921875, -0.00481414794921875, 0.0022525787353515625, 0.004596710205078125, 0.0140533447265625, 0.0277252197265625, 0.01302337646484375, 0.006862640380859375, 0.0269927978515625, 0.0004100799560546875, 0.032989501953125, -0.01238250732421875, -0.0047607421875, 0.01297760009765625, 0.00919342041015625, -0.01338958740234375, -0.02960205078125, -0.0129852294921875, -0.056427001953125, 0.004589080810546875, 0.028411865234375, -0.01459503173828125, 0.027313232421875, -0.01519012451171875, -0.029510498046875, 0.0225830078125, -0.004909515380859375, 0.0149383544921875, -0.02838134765625, -0.0119781494140625, -0.0250244140625, 0.0158843994140625, -0.0194854736328125, 0.0131378173828125, 0.029693603515625, -0.01654052734375, -0.0265045166015625, -0.041534423828125, 0.004306793212890625, -0.03485107421875, 0.038665771484375, 0.052398681640625, -0.040679931640625, -0.0037174224853515625, -0.00033211708068847656, 0.0290985107421875, 0.05450439453125, -0.033660888671875, -0.0087738037109375, -0.00384521484375, 0.0074310302734375, -0.005901336669921875, -0.0521240234375, 0.0004372596740722656, -0.042938232421875, -0.02178955078125, -0.0516357421875, 0.0213623046875, 0.018463134765625, -0.03936767578125, -0.03924560546875, 0.0289459228515625, -0.0165557861328125, -0.022735595703125, -0.0285186767578125, 0.0457763671875, 0.00634002685546875, -0.00519561767578125, 0.022918701171875, -0.03887939453125, 0.00400543212890625, -0.001941680908203125, 0.031829833984375, -0.02001953125, 0.036590576171875, -0.012908935546875, -0.04888916015625, 0.00835418701171875, 0.004283905029296875, 0.01012420654296875, 0.017425537109375, -0.043731689453125, 0.041412353515625, 0.0301513671875, -0.0343017578125, -0.040557861328125, 0.02215576171875, -0.003200531005859375, -0.0092010498046875, 0.0106201171875, -0.02154541015625, 0.006069183349609375, 0.0231475830078125, 0.0831298828125, 0.00872802734375, -0.032989501953125, 0.0445556640625, 0.01120758056640625, -0.048797607421875, -0.0103302001953125, 0.03424072265625, -0.058258056640625, -0.036346435546875, 0.0165863037109375, -0.00324249267578125, -0.028839111328125, -0.005802154541015625, -0.038726806640625, -0.0197296142578125, -0.00905609130859375, 0.0176544189453125, -0.058380126953125, 0.020233154296875, 0.060516357421875, -0.035308837890625, 0.037017822265625, -0.03240966796875, 0.01288604736328125, 0.0614013671875, -0.04058837890625, -0.009246826171875, 0.0297393798828125, 0.0155029296875, 0.00433349609375, 0.03485107421875, -0.001346588134765625, 0.0162200927734375, 0.015960693359375, 0.0290679931640625, 0.0017900466918945312, -0.01500701904296875, 0.00937652587890625, 0.006816864013671875, -0.012481689453125, -0.041534423828125, 0.021026611328125, -0.01331329345703125, 0.018707275390625, 0.0009775161743164062, 0.01042938232421875, -0.020721435546875, -0.001514434814453125, 0.012237548828125, -0.031768798828125, 0.007694244384765625, 0.005359649658203125, -0.011077880859375, -0.007564544677734375, -0.0198822021484375, -0.0421142578125, -0.0162506103515625, 0.0008144378662109375 ]
c6a3bdfee117b7518c449bd0500937ebb993670d
Wordpress Stackexchange Q: Why does wp_enqueue_style() in plugin not load stylesheet? I'm trying to load a custom stylesheet (for the front-end, not admin area) via plugin. As near as I can tell, I'm doing things the way the Codex says is correct, but my CSS doesn't get loaded. This is what I have: /* * Load stylesheets, etc. */ function cl_chanimal_scripts() { //Register CSS wp_register_style('cl-chanimal-styles', plugins_url('css/cl-chanimal-styles.css', __FILE__)); //Use it! wp_enqueue_style ( 'cl-chanimal-styles' ); } add_action( 'wp_enqueue_scripts', 'cl_chanimal_scripts' ); Am I using the wrong action hook? It is possible to load front-end styles via plugin, is it not? A: First thing to mention is that you don't need to use wp_register_style if enqueuing within the same function. You can replace it with wp_enqueue_style and remove the duplicate. As for why your stylesheet isn't loading, start by checking the file path. Try this instead: wp_enqueue_style('cl-chanimal-styles', plugin_dir_url( __FILE__ ) . 'css/cl-chanimal-styles.css' ); https://codex.wordpress.org/Function_Reference/plugin_dir_url
Q: Why does wp_enqueue_style() in plugin not load stylesheet? I'm trying to load a custom stylesheet (for the front-end, not admin area) via plugin. As near as I can tell, I'm doing things the way the Codex says is correct, but my CSS doesn't get loaded. This is what I have: /* * Load stylesheets, etc. */ function cl_chanimal_scripts() { //Register CSS wp_register_style('cl-chanimal-styles', plugins_url('css/cl-chanimal-styles.css', __FILE__)); //Use it! wp_enqueue_style ( 'cl-chanimal-styles' ); } add_action( 'wp_enqueue_scripts', 'cl_chanimal_scripts' ); Am I using the wrong action hook? It is possible to load front-end styles via plugin, is it not? A: First thing to mention is that you don't need to use wp_register_style if enqueuing within the same function. You can replace it with wp_enqueue_style and remove the duplicate. As for why your stylesheet isn't loading, start by checking the file path. Try this instead: wp_enqueue_style('cl-chanimal-styles', plugin_dir_url( __FILE__ ) . 'css/cl-chanimal-styles.css' ); https://codex.wordpress.org/Function_Reference/plugin_dir_url
wordpress
{ "language": "en", "length": 148, "provenance": "stackexchange_00019.jsonl.gz:456923", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193231" }
[ -0.036651611328125, 0.0079193115234375, -0.0718994140625, -0.030059814453125, -0.0117340087890625, -0.01971435546875, -0.043609619140625, 0.0207672119140625, -0.0048980712890625, 0.006549835205078125, -0.060546875, 0.032684326171875, -0.034759521484375, 0.0011434555053710938, 0.005214691162109375, -0.050018310546875, 0.040069580078125, -0.03125, 0.01287078857421875, -0.0074920654296875, 0.01409149169921875, 0.0181732177734375, 0.01861572265625, 0.04693603515625, 0.031341552734375, -0.006130218505859375, 0.0638427734375, 0.01093292236328125, 0.02301025390625, 0.0113067626953125, 0.035491943359375, -0.05572509765625, 0.0272216796875, 0.0251007080078125, -0.053680419921875, -0.0176544189453125, 0.0160980224609375, -0.003376007080078125, -0.0201873779296875, 0.032684326171875, 0.0321044921875, -0.01415252685546875, -0.00785064697265625, 0.07568359375, -0.0242767333984375, -0.059417724609375, 0.031463623046875, -0.0159759521484375, -0.02838134765625, -0.0007495880126953125, 0.02301025390625, -0.00910186767578125, 0.050628662109375, -0.03887939453125, 0.007175445556640625, -0.01537322998046875, -0.048614501953125, 0.0005974769592285156, -0.00103759765625, 0.0293731689453125, 0.0258636474609375, -0.005619049072265625, 0.0213775634765625, 0.00041866302490234375, -0.003688812255859375, 0.0016918182373046875, 0.0107574462890625, 0.007350921630859375, -0.06109619140625, -0.01024627685546875, 0.0296478271484375, -0.035736083984375, -0.00750732421875, -0.016082763671875, -0.0489501953125, 0.0089263916015625, 0.0029811859130859375, -0.01406097412109375, 0.051177978515625, -0.0284423828125, -0.0131988525390625, -0.011199951171875, -0.07794189453125, 0.01000213623046875, -0.005924224853515625, 0.03607177734375, -0.0156097412109375, -0.0264434814453125, -0.0269317626953125, -0.02679443359375, -0.03717041015625, 0.0158538818359375, -0.02191162109375, -0.0281219482421875, -0.03192138671875, -0.020660400390625, 0.06060791015625, 0.087890625, 0.002277374267578125, -0.00629425048828125, 0.0131683349609375, -0.058746337890625, -0.0010042190551757812, -0.0287933349609375, 0.01010894775390625, 0.042510986328125, -0.003772735595703125, -0.00019359588623046875, 0.0322265625, 0.0019311904907226562, 0.00960540771484375, 0.01020050048828125, 0.024139404296875, -0.0031185150146484375, -0.0129241943359375, -0.0223541259765625, -0.00983428955078125, 0.01025390625, -0.005771636962890625, 0.005016326904296875, 0.0162200927734375, 0.04156494140625, -0.0225982666015625, -0.001720428466796875, -0.023284912109375, -0.0196075439453125, 0.0157012939453125, -0.04473876953125, 0.040435791015625, 0.018157958984375, -0.0243377685546875, 0.0023174285888671875, 0.05023193359375, 0.00455474853515625, 0.006069183349609375, -0.02691650390625, 0.033935546875, -0.00971221923828125, -0.03656005859375, -0.02197265625, 0.0218048095703125, -0.006130218505859375, -0.0406494140625, -0.0206756591796875, -0.010284423828125, 0.0294342041015625, 0.0163421630859375, 0.0163421630859375, -0.009185791015625, -0.05743408203125, 0.02496337890625, -0.056915283203125, 0.038726806640625, 0.0189361572265625, -0.01256561279296875, 0.0005388259887695312, 0.06402587890625, -0.038604736328125, -0.0235443115234375, -0.05364990234375, -0.033203125, -0.00299835205078125, 0.005939483642578125, -0.034759521484375, -0.0228424072265625, -0.01045989990234375, 0.001262664794921875, 0.015625, 0.0250091552734375, 0.0113983154296875, -0.01141357421875, -0.0004379749298095703, 0.0312042236328125, 0.00601959228515625, -0.0014896392822265625, 0.022735595703125, 0.0270843505859375, -0.0202484130859375, 0.045440673828125, 0.0275726318359375, -0.0445556640625, -0.0284576416015625, 0.0928955078125, -0.06671142578125, 0.001857757568359375, -0.058197021484375, 0.0302581787109375, 0.0170745849609375, 0.01739501953125, 0.043365478515625, 0.01116943359375, -0.0178680419921875, 0.0012607574462890625, -0.023895263671875, 0.007442474365234375, -0.032440185546875, -0.017181396484375, -0.01248931884765625, 0.0010385513305664062, 0.030181884765625, -0.02117919921875, -0.0135498046875, 0.045989990234375, 0.01068878173828125, -0.00977325439453125, 0.033416748046875, -0.030548095703125, 0.033935546875, -0.004192352294921875, 0.0153656005859375, -0.00708770751953125, -0.0041961669921875, -0.00841522216796875, -0.048004150390625, -0.0216522216796875, 0.03192138671875, 0.005218505859375, 0.058135986328125, -0.002330780029296875, 0.0240631103515625, 0.014984130859375, -0.0389404296875, 0.01218414306640625, 0.026947021484375, -0.030029296875, 0.0282440185546875, -0.039031982421875, 0.0179901123046875, -0.0126953125, 0.0296173095703125, 0.0258026123046875, 0.0232086181640625, 0.044464111328125, 0.0699462890625, -0.0179443359375, -0.00017642974853515625, 0.00962066650390625, -0.023284912109375, 0.0100555419921875, 0.023956298828125, 0.042144775390625, 0.004619598388671875, -0.0096282958984375, -0.01064300537109375, 0.0611572265625, 0.0018243789672851562, 0.013580322265625, -0.004058837890625, -0.01277923583984375, -0.0455322265625, 0.0099334716796875, -0.0158843994140625, 0.0418701171875, -0.032928466796875, 0.0238800048828125, 0.0247802734375, -0.01763916015625, -0.0123443603515625, -0.006732940673828125, 0.0034503936767578125, 0.0039520263671875, 0.0215301513671875, -0.0081634521484375, 0.00176239013671875, -0.027740478515625, -0.006256103515625, -0.0103912353515625, -0.011474609375, -0.007373809814453125, 0.01503753662109375, 0.022796630859375, -0.044403076171875, -0.004489898681640625, 0.004688262939453125, 0.047515869140625, -0.03546142578125, -0.0212249755859375, -0.014434814453125, 0.021087646484375, 0.002384185791015625, -0.004276275634765625, 0.027008056640625, -0.044464111328125, -0.00923919677734375, -0.0252532958984375, -0.058319091796875, 0.004924774169921875, 0.055877685546875, 0.00911712646484375, 0.0209197998046875, 0.0465087890625, 0.03594970703125, 0.010986328125, 0.016143798828125, -0.0007023811340332031, -0.01015472412109375, 0.0230560302734375, 0.0024127960205078125, 0.00948333740234375, -0.0138702392578125, -0.00484466552734375, 0.03515625, 0.0194549560546875, -0.033599853515625, 0.007396697998046875, -0.006191253662109375, 0.026641845703125, -0.0008778572082519531, -0.0106658935546875, -0.01428985595703125, -0.03521728515625, -0.01367950439453125, 0.026580810546875, 0.062469482421875, 0.01120758056640625, -0.050384521484375, 0.01076507568359375, 0.051513671875, -0.052642822265625, -0.08917236328125, -0.067626953125, -0.0625, 0.054779052734375, -0.033294677734375, -0.00801849365234375, 0.005397796630859375, -0.029296875, 0.033203125, 0.0194091796875, -0.00785064697265625, -0.0307159423828125, -0.047088623046875, -0.07342529296875, -0.0478515625, 0.015777587890625, 0.000988006591796875, 0.0004458427429199219, 0.035980224609375, -0.005214691162109375, -0.03717041015625, -0.004261016845703125, 0.0321044921875, -0.0014753341674804688, -0.00447845458984375, 0.050933837890625, -0.05419921875, -0.005016326904296875, 0.0007228851318359375, 0.0211334228515625, 0.04388427734375, -0.04498291015625, -0.0025634765625, -0.0120391845703125, -0.055328369140625, -0.0130767822265625, 0.03143310546875, 0.005645751953125, -0.044952392578125, 0.01340484619140625, -0.0694580078125, -0.046661376953125, -0.0018091201782226562, -0.040863037109375, 0.03680419921875, 0.0274200439453125, -0.00690460205078125, -0.036468505859375, 0.0628662109375, 0.0172576904296875, -0.0236053466796875, 0.01556396484375, -0.01788330078125, 0.03369140625, 0.003421783447265625, 0.018524169921875, -0.0250701904296875, 0.0697021484375, 0.0022411346435546875, 0.0111083984375, 0.03802490234375, 0.0021495819091796875, -0.012939453125, -0.006542205810546875, -0.056549072265625, -0.036285400390625, 0.0106964111328125, -0.04327392578125, 0.03704833984375, -0.036041259765625, -0.005645751953125, -0.00040650367736816406, 0.076416015625, -0.038665771484375, -0.031097412109375, 0.015777587890625, 0.0343017578125, -0.058013916015625, -0.04986572265625, -0.01219940185546875, 0.00717926025390625, -0.07568359375, 0.00882720947265625, 0.01116943359375, -0.039825439453125, 0.005435943603515625, -0.0118865966796875, -0.06597900390625, -0.041748046875, 0.0238037109375, 0.0160064697265625, -0.0061492919921875, 0.03424072265625, -0.0283660888671875, 0.00940704345703125, -0.00838470458984375, 0.0019855499267578125, -0.1314697265625, -0.028900146484375, -0.00945281982421875, 0.09356689453125, -0.00402069091796875, 0.033447265625, -0.0028858184814453125, 0.0838623046875, 0.01080322265625, 0.0282135009765625, 0.04290771484375, 0.006847381591796875, 0.0196533203125, -0.0005946159362792969, 0.05645751953125, -0.0226898193359375, -0.013885498046875, 0.002002716064453125, -0.05072021484375, 0.01117706298828125, -0.0029697418212890625, -0.022705078125, 0.05535888671875, -0.038909912109375, 0.0065155029296875, 0.0176544189453125, 0.0194549560546875, -0.011138916015625, 0.045318603515625, -0.051025390625, 0.02081298828125, 0.0257568359375, 0.017791748046875, -0.01001739501953125, 0.0197601318359375, -0.0106201171875, 0.0312042236328125, 0.035125732421875, -0.0291290283203125, 0.019805908203125, 0.04345703125, 0.033538818359375, 0.0254364013671875, 0.013702392578125, 0.0015707015991210938, -0.021026611328125, 0.03253173828125, 0.019378662109375, 0.019744873046875, 0.0341796875, 0.03399658203125, 0.0129241943359375, -0.0157318115234375, 0.000247955322265625, 0.0201873779296875, -0.06048583984375, 0.01334381103515625, 0.0012006759643554688, -0.01178741455078125, 0.041290283203125, -0.0002834796905517578, 0.007259368896484375, -0.035980224609375, -0.015777587890625, -0.05224609375, 0.01490020751953125, -0.046417236328125, 0.0989990234375, 0.03411865234375, -0.0270538330078125, 0.08538818359375, 0.04962158203125, 0.0002397298812866211, 0.03131103515625, 0.031829833984375, -0.005889892578125, 0.019439697265625, 0.0283660888671875, -0.001781463623046875, 0.00046515464782714844, -0.0110626220703125, 0.08428955078125, -0.0000852346420288086, -0.0234375, -0.048919677734375, -0.005084991455078125, 0.0244903564453125, 0.0095672607421875, 0.009124755859375, 0.054473876953125, 0.01025390625, -0.0243988037109375, -0.03387451171875, -0.0076904296875, -0.0125732421875, -0.0462646484375, 0.051422119140625, 0.0208587646484375, -0.022430419921875, -0.0297698974609375, 0.0478515625, 0.04119873046875, -0.01739501953125, -0.0031147003173828125, 0.0098419189453125, -0.0307159423828125, 0.056793212890625, 0.004608154296875, -0.0400390625, 0.031463623046875, 0.0157623291015625, 0.0248260498046875, -0.0340576171875, -0.01497650146484375, 0.0127105712890625, 0.058319091796875, -0.0297088623046875, -0.0302581787109375, 0.0418701171875, -0.018768310546875, -0.04180908203125, 0.002292633056640625, -0.0248260498046875, -0.0070953369140625, -0.057403564453125, -0.0198974609375, 0.06854248046875, 0.0404052734375, -0.005794525146484375, 0.00376129150390625, 0.01366424560546875, 0.0260009765625, 0.03668212890625, -0.02569580078125, 0.0260009765625, 0.004810333251953125, 0.014373779296875, -0.003353118896484375, -0.0225982666015625, -0.0164337158203125, -0.01418304443359375, -0.021148681640625, -0.00142669677734375, 0.021636962890625, -0.045654296875, 0.04644775390625, -0.0288238525390625, -0.00775909423828125, -0.03887939453125, 0.033355712890625, 0.00946044921875, 0.014984130859375, 0.0027713775634765625, -0.0035839080810546875, -0.0140838623046875, -0.0055084228515625, -0.0121307373046875, -0.050445556640625, -0.003925323486328125, -0.0197296142578125, -0.0024318695068359375, -0.004825592041015625, -0.024383544921875, -0.03778076171875, -0.0288848876953125, 0.05303955078125, 0.057342529296875, 0.0274658203125, -0.033416748046875, 0.07049560546875, 0.034027099609375, -0.00609588623046875, 0.01374053955078125, 0.0474853515625, -0.0062713623046875, 0.004222869873046875, -0.0276031494140625, -0.04229736328125, 0.01163482666015625, -0.01247406005859375, 0.01403045654296875, 0.07464599609375, 0.0982666015625, 0.02557373046875, 0.006683349609375, 0.0164337158203125, 0.0082855224609375, -0.025054931640625, 0.01102447509765625, 0.01235198974609375, 0.0220184326171875, 0.0036773681640625, 0.002056121826171875, 0.047576904296875, -0.00823211669921875, -0.001979827880859375, 0.0291900634765625, -0.033050537109375, 0.056182861328125, -0.0242767333984375, -0.0452880859375, 0.036529541015625, 0.041168212890625, 0.0341796875, 0.0445556640625, 0.004932403564453125, 0.031768798828125, -0.00899505615234375, 0.01187896728515625, 0.0114593505859375, -0.01432037353515625, 0.054473876953125, -0.007427215576171875, -0.0003211498260498047, 0.02947998046875, -0.0197296142578125, 0.0007123947143554688, 0.03863525390625, 0.028564453125, -0.06195068359375, -0.00689697265625, 0.00838470458984375, 0.01464080810546875, 0.00852203369140625, -0.0021209716796875, -0.00246429443359375, -0.0235748291015625, 0.0552978515625, 0.04071044921875, 0.017242431640625, 0.0482177734375, 0.0098876953125, 0.008514404296875, -0.004444122314453125, -0.012939453125, -0.01102447509765625, -0.06298828125, -0.0077972412109375, 0.035308837890625, -0.0304718017578125, -0.0181121826171875, 0.0158233642578125, 0.010650634765625, -0.0167999267578125, -0.0279541015625, 0.043121337890625, -0.018768310546875, -0.020172119140625, 0.044036865234375, 0.01490020751953125, 0.035308837890625, 0.01340484619140625, 0.01047515869140625, 0.00232696533203125, -0.0253753662109375, 0.039031982421875, 0.058624267578125, -0.01983642578125, 0.0350341796875, 0.0230712890625, -0.08203125, 0.019775390625, 0.00555419921875, -0.00399017333984375, -0.00858306884765625, -0.003955841064453125, 0.078857421875, -0.003086090087890625, -0.0313720703125, 0.00189208984375, 0.00980377197265625, 0.00856781005859375, -0.0254974365234375, 0.0209808349609375, -0.041107177734375, -0.0159912109375, -0.0025081634521484375, -0.029571533203125, -0.032623291015625, -0.040130615234375, -0.0179901123046875, 0.036163330078125, -0.056488037109375, 0.015838623046875, 0.0433349609375, 0.008514404296875, -0.005245208740234375, -0.006450653076171875, -0.0019292831420898438, 0.043243408203125, -0.01247406005859375, -0.006366729736328125, -0.01108551025390625, 0.0069580078125, 0.01251983642578125, 0.03411865234375, 0.057952880859375, 0.0010957717895507812, -0.005260467529296875, 0.01265716552734375, 0.0849609375, 0.0357666015625, 0.007068634033203125, 0.0027713775634765625, -0.00830078125, 0.03173828125, -0.0019483566284179688, -0.030609130859375, 0.02996826171875, -0.047332763671875, -0.051361083984375, 0.0038738250732421875, -0.01464080810546875, -0.0221405029296875, -0.00998687744140625, 0.0287628173828125, -0.060394287109375, 0.0028476715087890625, 0.04296875, -0.02459716796875, -0.00726318359375, 0.0226898193359375, 0.0056304931640625, -0.009735107421875, -0.052398681640625, 0.0011091232299804688, 0.0174407958984375, -0.005702972412109375, -0.0084686279296875, -0.055999755859375, -0.022613525390625, 0.038055419921875, -0.04937744140625, -0.0374755859375, 0.019195556640625, -0.0099029541015625, 0.005008697509765625, -0.005184173583984375, 0.0113983154296875, -0.014312744140625, -0.01065826416015625, -0.028961181640625, -0.01335906982421875, -0.0117645263671875, -0.02813720703125, 0.020294189453125, -0.007373809814453125, -0.01236724853515625, -0.007030487060546875, -0.0220184326171875, -0.055267333984375, -0.0124359130859375, -0.013916015625, -0.0166168212890625, 0.007022857666015625, -0.0107421875, -0.01157379150390625, -0.01103973388671875, 0.0252838134765625, 0.0147857666015625, -0.0323486328125, 0.047515869140625, 0.002574920654296875, 0.01568603515625, -0.01384735107421875, 0.04290771484375, -0.004619598388671875, -0.0013103485107421875, -0.026580810546875, 0.057861328125, -0.01812744140625, 0.03082275390625, -0.0252685546875, -0.01284027099609375, -0.047088623046875, 0.04595947265625, 0.00704193115234375, 0.0076751708984375, 0.058868408203125, 0.0389404296875, -0.019927978515625, -0.0198211669921875, 0.022064208984375, -0.009246826171875, 0.040802001953125, -0.02545166015625, 0.0582275390625, 0.0171661376953125, -0.005767822265625, -0.0226898193359375, 0.01812744140625, 0.06280517578125, -0.041168212890625, 0.0201873779296875, 0.0013875961303710938, -0.0135040283203125, 0.03411865234375, -0.00585174560546875, 0.004177093505859375, -0.0191650390625, -0.04669189453125, -0.0222930908203125, -0.0224609375, 0.0491943359375, -0.006175994873046875, 0.02203369140625, 0.008636474609375, 0.037689208984375, 0.01055908203125, -0.028656005859375, -0.00836944580078125, 0.0304412841796875, 0.01273345947265625, 0.027984619140625, 0.0174560546875, 0.0212249755859375, -0.045654296875, -0.03021240234375, -0.035247802734375, 0.060943603515625, 0.0208587646484375, 0.0732421875, -0.056365966796875, 0.038818359375, 0.056884765625, 0.00009995698928833008, 0.018341064453125, 0.01271820068359375, 0.0264739990234375, -0.0232086181640625, 0.039276123046875, -0.0020904541015625, -0.02392578125, -0.0006594657897949219, 0.046905517578125, -0.0275115966796875, -0.03240966796875, 0.034912109375, 0.022918701171875, -0.00795745849609375, 0.0252685546875, -0.043792724609375, -0.052703857421875, -0.059417724609375, -0.0004417896270751953, -0.00809478759765625, -0.02813720703125, -0.01035308837890625, 0.002216339111328125, 0.038330078125, -0.048431396484375, 0.0377197265625, -0.01482391357421875, 0.062744140625, 0.02777099609375, 0.018890380859375, -0.0198516845703125, 0.01134490966796875, -0.016357421875, 0.01540374755859375, -0.00299835205078125, 0.049713134765625, -0.0167083740234375, -0.039520263671875, 0.0309295654296875, 0.04864501953125, 0.05584716796875, -0.00519561767578125, 0.026824951171875, 0.04766845703125, -0.017333984375, -0.00394439697265625, -0.04656982421875, -0.0254058837890625, -0.07525634765625, 0.0008187294006347656, 0.0167236328125, -0.0308074951171875, -0.00600433349609375, -0.01493072509765625, 0.027984619140625, 0.02490234375, -0.01403045654296875, -0.057891845703125, 0.0184173583984375, -0.045867919921875, 0.077392578125, -0.0278778076171875, 0.03778076171875, -0.00746917724609375, 0.0078887939453125, -0.051025390625, 0.0114288330078125, -0.0025920867919921875, 0.01204681396484375, -0.0099029541015625, 0.00975799560546875, 0.038116455078125, 0.001739501953125, -0.016387939453125, 0.0009441375732421875, -0.00582122802734375, 0.0518798828125, -0.06817626953125, 0.0185699462890625, 0.03814697265625, 0.0030422210693359375, -0.06768798828125, -0.097412109375, 0.0063018798828125, -0.036651611328125, -0.0006780624389648438, -0.020660400390625, -0.0185699462890625, -0.00455474853515625, -0.053131103515625, -0.092529296875, 0.0100250244140625, 0.0011816024780273438, -0.048065185546875, -0.0288543701171875, -0.01233673095703125, 0.0177154541015625, -0.036956787109375, -0.030731201171875, -0.0284576416015625, -0.03948974609375, 0.04315185546875, 0.00018668174743652344, 0.0167388916015625, 0.0279388427734375, -0.0122528076171875, -0.0236358642578125, 0.0030918121337890625, 0.007495880126953125, -0.006771087646484375, -0.0220794677734375, 0.00905609130859375, 0.01137542724609375, 0.00823211669921875, 0.004726409912109375, 0.0031528472900390625, 0.0367431640625, -0.016021728515625, -0.0010166168212890625, -0.0276641845703125, 0.002666473388671875, 0.0013027191162109375, 0.07208251953125, -0.0302734375, 0.0023212432861328125, 0.00006854534149169922, 0.0045928955078125, -0.006259918212890625, -0.0277862548828125, -0.00995635986328125, 0.02459716796875, -0.04815673828125, -0.0197906494140625, -0.00530242919921875, 0.0240936279296875, -0.0164947509765625, -0.009063720703125, -0.008697509765625, -0.03662109375, -0.01012420654296875, -0.00589752197265625, -0.0309295654296875, -0.01462554931640625, 0.06536865234375, -0.0184478759765625, 0.04083251953125, -0.013946533203125, 0.040191650390625, 0.050018310546875, 0.0106201171875, -0.0233917236328125, 0.042205810546875, -0.047332763671875, 0.005588531494140625, -0.0129241943359375, 0.031280517578125, -0.0221710205078125, 0.0240020751953125, 0.00019228458404541016, -0.0206146240234375, -0.0323486328125, -0.05242919921875, 0.0235748291015625, -0.0180511474609375, -0.033355712890625, 0.06671142578125, -0.01537322998046875, -0.0052032470703125, -0.01261138916015625, 0.00010323524475097656, -0.0090179443359375, 0.000804901123046875, 0.035369873046875, -0.00940704345703125, 0.004093170166015625, -0.01079559326171875, -0.01068878173828125, -0.049041748046875, 0.01641845703125, -0.0025463104248046875, -0.006542205810546875, 0.01678466796875 ]
734d6568638fc6bfd7415c62c506a7abb7b4806f
Wordpress Stackexchange Q: Automatically Add New Tags to Sub-menu Been searching for any related plugins or info. about this case but didn't find anything relevant or working. I need every new tag that is added to a post automatically appear in a menu as a sub-menu item. Something like you can make pages automatically appear in a menu. Thank you very much! A: This plugin is what you want. I test and works very fine. JC Submenu Por James Collings Look the printscreen for understand. In this case the effect was: show all tags as menu item
Q: Automatically Add New Tags to Sub-menu Been searching for any related plugins or info. about this case but didn't find anything relevant or working. I need every new tag that is added to a post automatically appear in a menu as a sub-menu item. Something like you can make pages automatically appear in a menu. Thank you very much! A: This plugin is what you want. I test and works very fine. JC Submenu Por James Collings Look the printscreen for understand. In this case the effect was: show all tags as menu item
wordpress
{ "language": "en", "length": 95, "provenance": "stackexchange_00019.jsonl.gz:456958", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193315" }
[ 0.0615234375, 0.0167388916015625, 0.0297393798828125, 0.046905517578125, 0.026763916015625, -0.033233642578125, 0.10516357421875, -0.07122802734375, -0.006683349609375, 0.0030002593994140625, -0.056640625, 0.01873779296875, -0.03155517578125, -0.00946044921875, 0.01678466796875, -0.054534912109375, 0.025390625, -0.00824737548828125, 0.024078369140625, -0.01422119140625, -0.00624847412109375, 0.01629638671875, 0.0228729248046875, 0.0308990478515625, 0.047943115234375, 0.0014810562133789062, -0.00994110107421875, 0.0200042724609375, 0.0183563232421875, 0.0134124755859375, 0.031402587890625, -0.0295867919921875, 0.0024871826171875, 0.017974853515625, 0.01105499267578125, 0.0048370361328125, 0.01806640625, 0.00470733642578125, 0.01885986328125, 0.003765106201171875, 0.03863525390625, -0.0141143798828125, 0.05206298828125, 0.03314208984375, 0.035736083984375, -0.043426513671875, 0.042755126953125, -0.0673828125, -0.0090179443359375, -0.0711669921875, 0.0301361083984375, 0.01531982421875, 0.051116943359375, -0.034515380859375, -0.0191192626953125, 0.0238800048828125, -0.0069427490234375, 0.020416259765625, 0.0413818359375, -0.000240325927734375, -0.019195556640625, -0.01520538330078125, 0.0170135498046875, -0.0226593017578125, -0.0008497238159179688, -0.0195770263671875, -0.01091766357421875, 0.0077056884765625, -0.050750732421875, 0.0168914794921875, 0.06988525390625, -0.0341796875, -0.00494384765625, 0.0289306640625, -0.0119781494140625, -0.0550537109375, 0.036590576171875, -0.01422119140625, 0.0180511474609375, 0.02447509765625, 0.038360595703125, 0.01934814453125, 0.037811279296875, -0.01377105712890625, -0.0151519775390625, -0.0279083251953125, -0.002330780029296875, -0.0016183853149414062, -0.046478271484375, -0.03521728515625, -0.02734375, -0.036651611328125, -0.045379638671875, 0.00921630859375, -0.00931549072265625, -0.01187896728515625, 0.0325927734375, 0.08123779296875, -0.02874755859375, 0.05181884765625, -0.03759765625, -0.034088134765625, 0.07440185546875, -0.0772705078125, -0.0033359527587890625, 0.0232391357421875, -0.00005990266799926758, 0.0006003379821777344, 0.04217529296875, 0.033477783203125, 0.010284423828125, 0.033294677734375, 0.01126861572265625, -0.00902557373046875, -0.0215606689453125, -0.020599365234375, -0.0255584716796875, 0.006381988525390625, -0.0014429092407226562, -0.028076171875, -0.0005412101745605469, 0.03863525390625, -0.04833984375, 0.01352691650390625, 0.01557159423828125, 0.023529052734375, 0.009613037109375, -0.0193328857421875, -0.049072265625, -0.0275115966796875, -0.01158905029296875, 0.05377197265625, 0.054107666015625, 0.024627685546875, -0.018341064453125, 0.00957489013671875, 0.01293182373046875, -0.04583740234375, 0.00006759166717529297, 0.00730133056640625, -0.003711700439453125, -0.03399658203125, -0.01129913330078125, -0.0137176513671875, 0.018280029296875, 0.008514404296875, 0.00506591796875, 0.02520751953125, 0.01055908203125, -0.0217742919921875, 0.03887939453125, -0.04595947265625, 0.044647216796875, -0.026580810546875, -0.032012939453125, -0.045623779296875, -0.0205230712890625, -0.0305328369140625, 0.0178680419921875, -0.0208587646484375, -0.0220489501953125, -0.0032806396484375, 0.0292205810546875, -0.05169677734375, -0.044647216796875, 0.0019235610961914062, -0.030609130859375, -0.0015287399291992188, 0.033905029296875, 0.00351715087890625, 0.035186767578125, 0.01029205322265625, 0.07928466796875, 0.004703521728515625, -0.006099700927734375, 0.007778167724609375, 0.0193634033203125, 0.01313018798828125, 0.0209503173828125, 0.05078125, 0.0159454345703125, -0.01329803466796875, 0.0750732421875, -0.0187835693359375, -0.08380126953125, 0.04107666015625, -0.021484375, 0.07635498046875, 0.0672607421875, 0.018646240234375, 0.001392364501953125, -0.0439453125, -0.0482177734375, 0.0166473388671875, 0.016815185546875, 0.0018825531005859375, -0.00759124755859375, 0.0207366943359375, -0.00011146068572998047, -0.041748046875, -0.0838623046875, -0.003978729248046875, -0.0076141357421875, 0.0225067138671875, -0.0006847381591796875, -0.018280029296875, -0.01197052001953125, 0.0372314453125, 0.0802001953125, -0.0174560546875, -0.0401611328125, -0.044036865234375, 0.062408447265625, -0.09722900390625, -0.07659912109375, 0.0257110595703125, -0.02984619140625, -0.03582763671875, -0.003314971923828125, -0.0230865478515625, -0.0053253173828125, 0.0272064208984375, -0.0226287841796875, 0.0083160400390625, 0.0297393798828125, -0.0289459228515625, -0.02471923828125, -0.038330078125, -0.03515625, 0.00652313232421875, -0.0712890625, 0.059906005859375, 0.026702880859375, 0.01270294189453125, -0.07550048828125, -0.0194091796875, -0.05230712890625, -0.01385498046875, -0.017913818359375, 0.065185546875, 0.01873779296875, 0.015625, -0.00673675537109375, 0.0185546875, 0.07220458984375, 0.01611328125, 0.01094818115234375, 0.0009012222290039062, -0.021148681640625, -0.0028591156005859375, 0.022216796875, 0.0186004638671875, 0.0192413330078125, -0.00640869140625, 0.0260467529296875, 0.0235443115234375, 0.017822265625, 0.01549530029296875, -0.01068115234375, -0.0247344970703125, 0.0201263427734375, -0.0030574798583984375, -0.03509521484375, -0.003955841064453125, 0.0306854248046875, 0.00853729248046875, 0.0250396728515625, 0.0242919921875, -0.010101318359375, -0.00708770751953125, 0.02294921875, 0.01052093505859375, 0.0095367431640625, 0.01221466064453125, -0.00403594970703125, -0.00252532958984375, -0.020050048828125, -0.00659942626953125, 0.0052642822265625, -0.0068511962890625, -0.0102386474609375, 0.039581298828125, 0.011932373046875, -0.011505126953125, -0.007518768310546875, -0.032745361328125, -0.01108551025390625, -0.0191497802734375, -0.0546875, -0.0174713134765625, 0.00022459030151367188, 0.0289154052734375, -0.033843994140625, 0.01163482666015625, 0.0042572021484375, 0.005046844482421875, 0.032318115234375, -0.003528594970703125, 0.03228759765625, -0.0258636474609375, 0.0300750732421875, 0.05938720703125, -0.0177764892578125, 0.014434814453125, 0.008026123046875, 0.0165557861328125, 0.01629638671875, 0.00986480712890625, -0.0031681060791015625, 0.02252197265625, -0.07257080078125, -0.014068603515625, 0.0150299072265625, 0.00514984130859375, -0.027191162109375, -0.048095703125, -0.03363037109375, -0.01056671142578125, -0.0677490234375, -0.03814697265625, 0.02545166015625, -0.037139892578125, -0.025543212890625, 0.01045989990234375, -0.0301513671875, -0.007572174072265625, 0.03546142578125, -0.0009188652038574219, -0.0460205078125, -0.0174102783203125, -0.0033397674560546875, -0.04150390625, -0.014892578125, 0.042327880859375, 0.003246307373046875, -0.0096282958984375, -0.006191253662109375, 0.08978271484375, -0.00048351287841796875, -0.051239013671875, 0.0012903213500976562, -0.035675048828125, -0.01317596435546875, 0.036895751953125, 0.053802490234375, -0.04180908203125, 0.0157318115234375, 0.0168304443359375, 0.049560546875, 0.044647216796875, -0.053741455078125, -0.0115966796875, -0.0298919677734375, 0.0211639404296875, 0.005733489990234375, -0.036590576171875, 0.046142578125, 0.0631103515625, 0.0030536651611328125, -0.0004582405090332031, 0.03057861328125, 0.0004680156707763672, 0.0064544677734375, -0.034027099609375, -0.04931640625, -0.0195159912109375, -0.0193328857421875, 0.0193939208984375, -0.0276947021484375, -0.0087738037109375, 0.041473388671875, -0.0087432861328125, -0.03857421875, -0.038665771484375, -0.06353759765625, -0.017303466796875, 0.0298614501953125, -0.02618408203125, 0.037017822265625, 0.005069732666015625, 0.0017185211181640625, -0.00011557340621948242, 0.00853729248046875, -0.02178955078125, -0.0440673828125, 0.01180267333984375, -0.041778564453125, 0.02301025390625, -0.04302978515625, -0.003734588623046875, -0.0131072998046875, 0.06396484375, -0.041046142578125, -0.0245819091796875, -0.004180908203125, 0.0091705322265625, 0.0261077880859375, -0.01519012451171875, -0.01329803466796875, -0.03204345703125, -0.0675048828125, 0.006267547607421875, -0.0162506103515625, -0.0144500732421875, -0.02392578125, 0.020416259765625, -0.033782958984375, -0.03759765625, 0.054962158203125, -0.0731201171875, 0.007778167724609375, -0.023193359375, 0.0022735595703125, -0.0733642578125, -0.047637939453125, -0.006023406982421875, -0.05224609375, -0.00820159912109375, -0.0222015380859375, 0.042755126953125, 0.03082275390625, -0.04803466796875, -0.0143890380859375, 0.0159454345703125, 0.018310546875, 0.04254150390625, 0.009246826171875, 0.006969451904296875, 0.0184326171875, -0.02581787109375, 0.0183563232421875, -0.0357666015625, -0.00457000732421875, -0.016510009765625, -0.0167083740234375, 0.0418701171875, -0.003498077392578125, 0.038787841796875, 0.002445220947265625, -0.0132598876953125, -0.01000213623046875, -0.02935791015625, -0.030853271484375, 0.007312774658203125, -0.02423095703125, -0.005153656005859375, -0.018463134765625, -0.01184844970703125, -0.002429962158203125, -0.0008955001831054688, -0.0191650390625, 0.01849365234375, 0.03240966796875, 0.0210113525390625, -0.00341796875, -0.03521728515625, 0.0347900390625, 0.0343017578125, 0.01001739501953125, 0.04412841796875, 0.0177001953125, -0.01030731201171875, 0.009368896484375, 0.0162353515625, 0.040130615234375, -0.024017333984375, 0.0261688232421875, -0.0152435302734375, -0.0236358642578125, 0.0372314453125, 0.002941131591796875, -0.0020618438720703125, -0.003551483154296875, -0.02252197265625, -0.0250244140625, -0.05084228515625, 0.0755615234375, 0.022918701171875, 0.0093231201171875, -0.06744384765625, -0.0237579345703125, 0.00878143310546875, 0.08380126953125, -0.006694793701171875, 0.01629638671875, 0.0008068084716796875, -0.01155853271484375, -0.0191650390625, -0.000058710575103759766, -0.0111083984375, -0.0055084228515625, -0.0005960464477539062, 0.03631591796875, -0.02520751953125, 0.012481689453125, -0.01039886474609375, -0.013946533203125, 0.0438232421875, 0.011749267578125, -0.0240020751953125, -0.006374359130859375, 0.0022716522216796875, 0.01242828369140625, 0.0220184326171875, 0.0020313262939453125, 0.00957489013671875, 0.0289764404296875, 0.0009908676147460938, 0.01441192626953125, 0.0204925537109375, -0.0009431838989257812, -0.0159149169921875, -0.040618896484375, 0.0051116943359375, -0.01555633544921875, 0.02203369140625, 0.032135009765625, 0.00617218017578125, 0.01318359375, -0.0306243896484375, -0.0115203857421875, 0.0036983489990234375, 0.01314544677734375, 0.0234375, 0.014892578125, -0.0093841552734375, -0.006450653076171875, 0.033172607421875, -0.033172607421875, -0.01580810546875, 0.037384033203125, 0.045257568359375, 0.0257568359375, -0.0078277587890625, -0.005931854248046875, -0.01305389404296875, -0.0253143310546875, 0.035797119140625, -0.0020198822021484375, -0.03857421875, -0.0364990234375, 0.029541015625, 0.060699462890625, 0.0009427070617675781, -0.02069091796875, 0.028961181640625, 0.01125335693359375, 0.0562744140625, -0.0302276611328125, -0.0169830322265625, 0.033935546875, 0.04412841796875, -0.04046630859375, -0.01119232177734375, 0.0014390945434570312, -0.05853271484375, -0.0237579345703125, -0.0267181396484375, -0.0168609619140625, 0.037628173828125, -0.04034423828125, 0.0117645263671875, 0.0015077590942382812, 0.0013275146484375, 0.003192901611328125, 0.0197906494140625, 0.0131988525390625, 0.00948333740234375, -0.0229644775390625, -0.016815185546875, -0.03228759765625, -0.0341796875, -0.0345458984375, -0.0211029052734375, -0.0494384765625, -0.00475311279296875, 0.0207061767578125, 0.0121002197265625, -0.02276611328125, -0.03948974609375, -0.0240936279296875, 0.0241241455078125, 0.04180908203125, 0.015625, -0.004276275634765625, 0.0305633544921875, -0.032073974609375, 0.0273590087890625, -0.01398468017578125, -0.0139007568359375, -0.0201416015625, -0.00152587890625, -0.01323699951171875, -0.03826904296875, -0.006427764892578125, 0.013214111328125, -0.028106689453125, 0.019989013671875, 0.044342041015625, 0.01396942138671875, 0.0404052734375, -0.01259613037109375, 0.01024627685546875, -0.0070037841796875, 0.0235137939453125, -0.014862060546875, 0.00881195068359375, 0.05712890625, -0.0292205810546875, -0.01513671875, 0.0133209228515625, 0.007038116455078125, -0.0086517333984375, -0.0004546642303466797, -0.00795745849609375, -0.00823211669921875, -0.0272979736328125, 0.0599365234375, 0.045074462890625, -0.002410888671875, 0.01551055908203125, 0.0009665489196777344, 0.00185394287109375, -0.0189208984375, -0.029937744140625, 0.0138702392578125, 0.01776123046875, 0.0240631103515625, -0.01898193359375, 0.0026111602783203125, 0.0210418701171875, -0.02410888671875, -0.022247314453125, 0.04156494140625, 0.0091094970703125, -0.066650390625, 0.00783538818359375, -0.002986907958984375, 0.0210418701171875, 0.01129913330078125, 0.004245758056640625, -0.003520965576171875, -0.00986480712890625, 0.0238494873046875, -0.018341064453125, -0.015533447265625, 0.009490966796875, 0.00934600830078125, -0.00238800048828125, -0.021728515625, 0.052154541015625, 0.027679443359375, 0.028594970703125, -0.004985809326171875, -0.0231475830078125, 0.0257568359375, -0.0284271240234375, -0.004421234130859375, -0.0031604766845703125, -0.0089874267578125, -0.0030117034912109375, 0.0625, -0.0261993408203125, 0.043212890625, 0.0059356689453125, -0.0244293212890625, -0.02056884765625, 0.0467529296875, -0.050689697265625, 0.034423828125, 0.01812744140625, -0.0283355712890625, -0.033660888671875, -0.0199127197265625, 0.0242156982421875, 0.026458740234375, -0.0136871337890625, 0.0196685791015625, -0.00860595703125, -0.02496337890625, -0.008941650390625, -0.004596710205078125, 0.10784912109375, -0.055694580078125, -0.0265045166015625, -0.00390625, 0.01117706298828125, 0.004344940185546875, -0.00878143310546875, -0.004383087158203125, -0.006649017333984375, 0.0408935546875, -0.0095062255859375, 0.023284912109375, 0.001499176025390625, 0.0005164146423339844, -0.0440673828125, 0.09625244140625, -0.017974853515625, -0.006137847900390625, 0.00385284423828125, 0.046630859375, -0.024627685546875, 0.031829833984375, -0.051361083984375, 0.0689697265625, -0.00325775146484375, 0.046905517578125, -0.04046630859375, 0.00428009033203125, 0.0270843505859375, 0.01959228515625, -0.0146942138671875, -0.005458831787109375, -0.0294189453125, 0.00473785400390625, 0.04669189453125, 0.02203369140625, 0.02264404296875, 0.039825439453125, -0.01776123046875, -0.020538330078125, 0.01708984375, -0.0157012939453125, 0.02752685546875, -0.023651123046875, -0.01073455810546875, -0.00041174888610839844, 0.002460479736328125, 0.006557464599609375, -0.02545166015625, -0.006359100341796875, 0.0145721435546875, -0.02386474609375, -0.01346588134765625, -0.01140594482421875, 0.04144287109375, -0.0014257431030273438, 0.045440673828125, -0.029083251953125, -0.035186767578125, 0.0028533935546875, 0.03436279296875, 0.012054443359375, 0.03143310546875, -0.01515960693359375, 0.00963592529296875, 0.0307159423828125, -0.006496429443359375, 0.01568603515625, 0.05548095703125, -0.0389404296875, 0.0141143798828125, 0.004314422607421875, 0.0313720703125, -0.08221435546875, -0.0989990234375, 0.0631103515625, 0.0517578125, 0.00141143798828125, -0.049530029296875, 0.0093994140625, 0.0203399658203125, 0.00766754150390625, 0.0244293212890625, 0.0294952392578125, -0.0216522216796875, 0.031890869140625, -0.01107025146484375, 0.00875091552734375, 0.006500244140625, 0.01079559326171875, 0.005245208740234375, 0.0286407470703125, -0.0165863037109375, 0.010345458984375, -0.07293701171875, 0.04425048828125, 0.034881591796875, 0.054473876953125, -0.00716400146484375, 0.0728759765625, 0.0017795562744140625, -0.0160675048828125, 0.00836944580078125, 0.02532958984375, 0.007537841796875, 0.004116058349609375, -0.024658203125, -0.03558349609375, 0.01425933837890625, 0.0265655517578125, -0.0177459716796875, 0.00295257568359375, 0.053253173828125, 0.037017822265625, -0.0458984375, -0.0291748046875, 0.002056121826171875, -0.028228759765625, -0.0352783203125, -0.0232391357421875, 0.005306243896484375, 0.042999267578125, -0.0058746337890625, 0.00484466552734375, 0.01416778564453125, 0.051177978515625, -0.02618408203125, 0.0016908645629882812, -0.01050567626953125, -0.041534423828125, 0.045989990234375, -0.01218414306640625, 0.0369873046875, 0.002162933349609375, -0.1024169921875, -0.003528594970703125, -0.08355712890625, -0.0194854736328125, 0.05657958984375, 0.0302734375, -0.0372314453125, 0.044219970703125, 0.03668212890625, -0.0016937255859375, 0.00010585784912109375, 0.0073089599609375, 0.00884246826171875, 0.0538330078125, 0.03887939453125, 0.03424072265625, -0.05816650390625, -0.0193023681640625, -0.026947021484375, 0.007282257080078125, 0.0253143310546875, 0.0279083251953125, 0.020355224609375, 0.0227203369140625, -0.0208892822265625, -0.019775390625, -0.0234222412109375, -0.039337158203125, 0.052703857421875, -0.012054443359375, -0.01465606689453125, 0.0028018951416015625, -0.06280517578125, 0.0196685791015625, 0.0256500244140625, -0.0156707763671875, 0.0182342529296875, -0.00995635986328125, 0.009246826171875, -0.01568603515625, 0.04278564453125, -0.0142669677734375, -0.01500701904296875, -0.0545654296875, -0.0347900390625, 0.041046142578125, 0.042999267578125, 0.01294708251953125, 0.0360107421875, -0.0260467529296875, -0.0016374588012695312, -0.00678253173828125, -0.034912109375, -0.023040771484375, 0.019378662109375, -0.0007658004760742188, -0.005168914794921875, 0.035614013671875, -0.0184478759765625, 0.008056640625, 0.0203094482421875, 0.010772705078125, 0.033905029296875, -0.025634765625, 0.03466796875, 0.03424072265625, 0.052886962890625, -0.0261688232421875, 0.0250396728515625, 0.0068359375, 0.008758544921875, 0.0196075439453125, -0.0313720703125, -0.03662109375, -0.059600830078125, 0.0207672119140625, 0.029388427734375, -0.033111572265625, -0.048614501953125, -0.10296630859375, 0.004398345947265625, 0.03753662109375, 0.016204833984375, -0.050537109375, 0.01202392578125, -0.0108795166015625, 0.054595947265625, -0.004444122314453125, -0.03564453125, 0.0065155029296875, 0.019195556640625, -0.01288604736328125, 0.0019779205322265625, -0.0439453125, -0.0004911422729492188, -0.02203369140625, 0.01180267333984375, 0.01204681396484375, -0.038818359375, 0.01515960693359375, -0.002834320068359375, 0.03924560546875, 0.04876708984375, 0.077392578125, -0.01117706298828125, -0.0308685302734375, 0.011749267578125, 0.01181793212890625, -0.02178955078125, 0.015167236328125, -0.0330810546875, -0.0252227783203125, -0.027252197265625, 0.031768798828125, 0.03790283203125, -0.035369873046875, -0.09112548828125, 0.050872802734375, -0.018035888671875, -0.0435791015625, -0.0260467529296875, 0.002017974853515625, -0.017303466796875, -0.0220947265625, -0.0226287841796875, 0.0026836395263671875, 0.01522064208984375, 0.05548095703125, -0.006805419921875, 0.048583984375, 0.0209503173828125, -0.034454345703125, 0.01050567626953125, -0.00348663330078125, 0.01184844970703125, -0.00331878662109375, 0.03662109375, -0.03997802734375, 0.0148468017578125, 0.0182037353515625, -0.076416015625, -0.07659912109375, -0.03192138671875, 0.042999267578125, 0.018707275390625, -0.001148223876953125, -0.02532958984375, -0.016326904296875, 0.057891845703125, 0.00466156005859375, 0.017608642578125, -0.0142059326171875, 0.03277587890625, -0.006610870361328125, -0.00858306884765625, 0.01157379150390625, -0.0117645263671875, 0.00397491455078125, 0.022552490234375, -0.03582763671875, -0.009429931640625, -0.0634765625, -0.003143310546875, -0.063720703125, -0.016510009765625, -0.007427215576171875, 0.02099609375, -0.0182952880859375, -0.0006875991821289062, 0.060302734375, -0.05120849609375, -0.052947998046875, 0.02587890625, -0.003326416015625, -0.0177001953125, -0.002178192138671875, -0.014190673828125, -0.007335662841796875, -0.04132080078125, 0.019866943359375, -0.01386260986328125, 0.040313720703125, -0.03704833984375, -0.01383209228515625, -0.0306549072265625, 0.046142578125, 0.007389068603515625, 0.05950927734375, -0.017181396484375, 0.0367431640625, 0.048675537109375, 0.032470703125, 0.007198333740234375, 0.0163726806640625, -0.0184173583984375, 0.062408447265625, -0.00583648681640625, -0.037109375, 0.0279388427734375, -0.054107666015625, 0.004138946533203125, 0.01265716552734375, -0.0292510986328125, -0.03240966796875, 0.01187896728515625, -0.020050048828125, -0.0015573501586914062, 0.0210113525390625 ]
22b7267e5872eaf5e9d5aede6dbf035228847abd
Wordpress Stackexchange Q: WP_Query with meta_value LIKE 'something%' I have read several questions like this (for example, this), but no equal. I WP_Query need to perform a LIKE on a meta_value. My problem is that I want the like is as follows: meta_value LIKE 'value%' and I can not solve. My code is as follows: $today = '0702'; /*(month and day)*/ $args = array ( 'post_type' => 'post', 'posts_per_page' => $number, 'orderby' => $sort_by, 'cat' => '2' 'post_status' => 'publish' 'ignore_sticky_posts' => true, 'meta_key' => 'date' 'meta_value' => $today, 'meta_compare' => 'LIKE' ); Thanks!!! :) A: For a left-sided match you can get around the automatic adding of '%''s by WP by using regular expression RLIKE: 'meta_value' => '^' . preg_quote( $today ), 'meta_compare' => 'RLIKE' Similarly for right-sided match: 'meta_value' => preg_quote( $today ) . '$', 'meta_compare' => 'RLIKE'
Q: WP_Query with meta_value LIKE 'something%' I have read several questions like this (for example, this), but no equal. I WP_Query need to perform a LIKE on a meta_value. My problem is that I want the like is as follows: meta_value LIKE 'value%' and I can not solve. My code is as follows: $today = '0702'; /*(month and day)*/ $args = array ( 'post_type' => 'post', 'posts_per_page' => $number, 'orderby' => $sort_by, 'cat' => '2' 'post_status' => 'publish' 'ignore_sticky_posts' => true, 'meta_key' => 'date' 'meta_value' => $today, 'meta_compare' => 'LIKE' ); Thanks!!! :) A: For a left-sided match you can get around the automatic adding of '%''s by WP by using regular expression RLIKE: 'meta_value' => '^' . preg_quote( $today ), 'meta_compare' => 'RLIKE' Similarly for right-sided match: 'meta_value' => preg_quote( $today ) . '$', 'meta_compare' => 'RLIKE'
wordpress
{ "language": "en", "length": 138, "provenance": "stackexchange_00019.jsonl.gz:456971", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193356" }
[ 0.005077362060546875, -0.002498626708984375, -0.01544952392578125, 0.00649261474609375, 0.01313018798828125, -0.0310516357421875, 0.052703857421875, -0.01025390625, 0.0643310546875, 0.013824462890625, -0.0377197265625, -0.038116455078125, 0.0147857666015625, -0.0217742919921875, -0.028717041015625, -0.020843505859375, 0.0167388916015625, 0.01248931884765625, 0.03472900390625, -0.00820159912109375, 0.044525146484375, -0.00464630126953125, 0.029510498046875, -0.019989013671875, 0.034271240234375, -0.08013916015625, 0.0675048828125, -0.02886962890625, 0.06658935546875, -0.005580902099609375, 0.0293731689453125, -0.0234527587890625, 0.03179931640625, -0.003749847412109375, 0.0007262229919433594, 0.00333404541015625, 0.0460205078125, -0.01239776611328125, 0.0057525634765625, 0.011077880859375, 0.028167724609375, -0.00205230712890625, -0.048797607421875, -0.0008492469787597656, -0.03607177734375, -0.051177978515625, 0.041839599609375, 0.0254364013671875, -0.0007562637329101562, -0.0098114013671875, -0.0183563232421875, 0.022857666015625, -0.00347137451171875, -0.009002685546875, 0.0084381103515625, -0.00531768798828125, -0.03533935546875, 0.0133209228515625, 0.01457977294921875, 0.01373291015625, 0.0015802383422851562, 0.01201629638671875, 0.0068206787109375, 0.00270843505859375, -0.0027904510498046875, -0.0200958251953125, -0.010223388671875, 0.01268768310546875, 0.003177642822265625, -0.01258087158203125, 0.01739501953125, 0.007366180419921875, 0.00780487060546875, -0.04327392578125, 0.003787994384765625, -0.018798828125, 0.023468017578125, -0.0156097412109375, -0.0195770263671875, 0.0047149658203125, 0.03375244140625, -0.01485443115234375, 0.00690460205078125, 0.00698089599609375, 0.0166778564453125, 0.01499176025390625, -0.0014886856079101562, -0.017059326171875, -0.062347412109375, -0.04962158203125, -0.038330078125, -0.022674560546875, -0.049163818359375, -0.04351806640625, -0.028411865234375, -0.0262908935546875, 0.0186614990234375, 0.061798095703125, -0.0222320556640625, 0.006839752197265625, -0.0367431640625, -0.01081085205078125, -0.0236053466796875, -0.0262451171875, -0.00041794776916503906, 0.0361328125, 0.013153076171875, 0.017791748046875, 0.02789306640625, 0.023101806640625, 0.00003534555435180664, 0.027496337890625, -0.0077972412109375, 0.03277587890625, -0.044281005859375, 0.0386962890625, -0.01274871826171875, -0.0175933837890625, -0.039337158203125, 0.032684326171875, 0.03619384765625, 0.046112060546875, 0.0531005859375, -0.08477783203125, 0.035797119140625, 0.031158447265625, -0.038360595703125, -0.0810546875, -0.0439453125, 0.043609619140625, -0.01727294921875, -0.00829315185546875, 0.03265380859375, 0.04779052734375, 0.005584716796875, -0.0243377685546875, 0.003452301025390625, -0.0673828125, -0.01160430908203125, 0.02569580078125, -0.00897216796875, -0.070068359375, -0.01220703125, -0.0107269287109375, -0.0032711029052734375, 0.007801055908203125, 0.0136260986328125, 0.0186614990234375, -0.005748748779296875, -0.0267791748046875, -0.014129638671875, -0.0242919921875, 0.01116943359375, -0.025604248046875, -0.02825927734375, -0.011749267578125, -0.043426513671875, 0.0009775161743164062, 0.00214385986328125, -0.002483367919921875, 0.01007080078125, -0.0148773193359375, -0.0085296630859375, -0.0105438232421875, -0.041961669921875, 0.0222015380859375, -0.00832366943359375, -0.0113372802734375, 0.00341796875, 0.031280517578125, -0.0033416748046875, 0.021087646484375, 0.0044403076171875, -0.031951904296875, -0.02386474609375, -0.02447509765625, 0.0192108154296875, 0.0133514404296875, 0.01284027099609375, -0.00640106201171875, -0.035552978515625, -0.03436279296875, 0.025543212890625, -0.0145263671875, -0.033172607421875, 0.017608642578125, 0.02001953125, 0.01270294189453125, -0.01119232177734375, -0.000017702579498291016, 0.066162109375, 0.0406494140625, -0.039642333984375, 0.05389404296875, -0.0107574462890625, -0.025726318359375, 0.0175018310546875, 0.016143798828125, 0.005382537841796875, -0.0457763671875, 0.004917144775390625, 0.04339599609375, -0.03173828125, 0.0259857177734375, -0.133544921875, 0.048065185546875, -0.049530029296875, 0.0496826171875, -0.0511474609375, 0.0202178955078125, 0.0328369140625, -0.0089874267578125, -0.018157958984375, 0.021820068359375, 0.02001953125, -0.0206146240234375, -0.01027679443359375, 0.012939453125, -0.0265350341796875, 0.025604248046875, -0.0265960693359375, -0.0188140869140625, -0.01678466796875, 0.029510498046875, 0.003383636474609375, 0.0052642822265625, -0.0189208984375, 0.01149749755859375, -0.00543975830078125, 0.038482666015625, -0.035491943359375, -0.005550384521484375, 0.00890350341796875, -0.007129669189453125, -0.0225677490234375, 0.0308685302734375, -0.006801605224609375, -0.043975830078125, -0.018798828125, 0.032379150390625, 0.042510986328125, 0.06304931640625, 0.038330078125, 0.01552581787109375, 0.0275421142578125, -0.0458984375, 0.0322265625, -0.045013427734375, 0.0229949951171875, 0.0799560546875, -0.0307769775390625, -0.003612518310546875, -0.000980377197265625, -0.06390380859375, -0.0017824172973632812, 0.04547119140625, 0.00492095947265625, 0.046234130859375, -0.0430908203125, 0.0447998046875, -0.027252197265625, 0.0209808349609375, 0.034393310546875, -0.0198516845703125, 0.005702972412109375, 0.00968170166015625, 0.0220794677734375, 0.03057861328125, 0.002197265625, 0.001125335693359375, -0.0020294189453125, -0.00868988037109375, -0.00450897216796875, 0.0206298828125, -0.014923095703125, -0.0160980224609375, -0.0246429443359375, 0.019775390625, 0.024505615234375, 0.005924224853515625, 0.02508544921875, 0.0277099609375, -0.02484130859375, 0.01070404052734375, 0.004489898681640625, -0.0423583984375, -0.0016880035400390625, 0.0540771484375, 0.005126953125, -0.00011688470840454102, 0.027313232421875, 0.00992584228515625, -0.005542755126953125, -0.0009388923645019531, 0.022430419921875, -0.0311126708984375, -0.00043892860412597656, -0.027801513671875, 0.032745361328125, -0.04119873046875, 0.040924072265625, 0.054718017578125, -0.027557373046875, 0.0110626220703125, -0.01061248779296875, 0.0190277099609375, -0.02569580078125, 0.0321044921875, 0.005558013916015625, -0.036346435546875, -0.0177459716796875, 0.01220703125, 0.052001953125, 0.046417236328125, 0.055145263671875, 0.007465362548828125, 0.026092529296875, 0.036468505859375, -0.0870361328125, -0.1787109375, 0.0302276611328125, -0.0247344970703125, -0.049163818359375, -0.01837158203125, -0.045379638671875, 0.0210113525390625, -0.01296234130859375, -0.0275115966796875, -0.0217742919921875, -0.022308349609375, -0.07025146484375, -0.0665283203125, -0.05889892578125, -0.006519317626953125, -0.017822265625, 0.00609588623046875, 0.0164794921875, 0.046173095703125, 0.0031452178955078125, -0.04718017578125, 0.01824951171875, 0.02337646484375, 0.004383087158203125, 0.0229949951171875, -0.0291290283203125, -0.0132293701171875, 0.02325439453125, -0.017547607421875, 0.061767578125, 0.01360321044921875, -0.011322021484375, 0.01678466796875, 0.0152740478515625, 0.028076171875, 0.055023193359375, -0.0169525146484375, -0.04290771484375, 0.057342529296875, 0.04339599609375, 0.004245758056640625, -0.0380859375, -0.00901031494140625, -0.0345458984375, 0.0207366943359375, 0.0323486328125, 0.0031909942626953125, -0.001155853271484375, 0.036590576171875, -0.020751953125, -0.0079193115234375, 0.04693603515625, -0.059661865234375, 0.01012420654296875, -0.006473541259765625, -0.025726318359375, -0.024505615234375, -0.0253753662109375, -0.04144287109375, 0.0234832763671875, -0.0309906005859375, -0.0244598388671875, -0.039031982421875, 0.025726318359375, -0.033599853515625, -0.00701141357421875, 0.08642578125, 0.06463623046875, 0.0135345458984375, -0.017120361328125, -0.06903076171875, -0.033355712890625, 0.060516357421875, -0.00726318359375, -0.034515380859375, -0.01268768310546875, 0.006946563720703125, -0.0421142578125, -0.0012922286987304688, -0.006389617919921875, 0.00652313232421875, -0.09375, 0.01474761962890625, 0.01033782958984375, -0.0236053466796875, -0.02593994140625, 0.00653076171875, -0.059356689453125, -0.0404052734375, 0.0291900634765625, -0.026641845703125, -0.0081329345703125, 0.058380126953125, -0.0194091796875, 0.0374755859375, -0.0296173095703125, -0.01456451416015625, -0.06964111328125, -0.01910400390625, -0.00634765625, 0.062469482421875, -0.0114898681640625, 0.017333984375, -0.0158843994140625, 0.04437255859375, 0.0048065185546875, -0.0240325927734375, 0.0081024169921875, -0.01041412353515625, 0.0252532958984375, 0.0450439453125, -0.0033779144287109375, -0.0102691650390625, 0.0017833709716796875, -0.041473388671875, -0.04180908203125, -0.0240478515625, -0.042724609375, -0.006336212158203125, -0.0277862548828125, -0.0220489501953125, -0.0184326171875, -0.01134490966796875, -0.03326416015625, 0.03631591796875, -0.0162200927734375, -0.006603240966796875, -0.03955078125, -0.04754638671875, 0.07171630859375, 0.04473876953125, 0.0024394989013671875, -0.00439453125, 0.0802001953125, 0.0034084320068359375, -0.053192138671875, -0.07666015625, -0.01239013671875, 0.0245361328125, -0.0069122314453125, -0.01251983642578125, -0.037078857421875, -0.048187255859375, 0.08282470703125, -0.030670166015625, 0.0299224853515625, -0.037994384765625, 0.013275146484375, -0.010009765625, -0.0288543701171875, 0.023040771484375, -0.0185394287109375, 0.01114654541015625, 0.052215576171875, 0.0161895751953125, -0.0556640625, 0.0037212371826171875, 0.05615234375, -0.002735137939453125, -0.0166473388671875, -0.055908203125, -0.0266876220703125, 0.003627777099609375, -0.0182037353515625, 0.01479339599609375, 0.005390167236328125, -0.00701141357421875, -0.0112152099609375, 0.0252685546875, -0.01776123046875, 0.01128387451171875, 0.0156707763671875, -0.0306243896484375, 0.01531982421875, -0.0316162109375, -0.058929443359375, 0.0175018310546875, 0.00551605224609375, 0.0252532958984375, 0.0178070068359375, -0.0174102783203125, 0.0019378662109375, -0.00916290283203125, 0.0129547119140625, 0.007465362548828125, -0.003009796142578125, 0.0073699951171875, 0.0278472900390625, 0.0030536651611328125, 0.0080108642578125, 0.00859832763671875, 0.002323150634765625, -0.02374267578125, 0.00884246826171875, -0.010986328125, -0.00012254714965820312, 0.025360107421875, 0.0675048828125, -0.022552490234375, 0.0687255859375, -0.0309600830078125, 0.058197021484375, 0.0205535888671875, 0.028472900390625, 0.0199432373046875, -0.00818634033203125, 0.0083160400390625, 0.01074981689453125, -0.03387451171875, -0.0146942138671875, 0.0026092529296875, -0.0164031982421875, -0.0241546630859375, -0.0025920867919921875, 0.011810302734375, 0.055450439453125, 0.0231475830078125, -0.027587890625, -0.00640106201171875, 0.04913330078125, 0.0207977294921875, -0.0188140869140625, -0.0275421142578125, -0.00981903076171875, 0.03936767578125, 0.0093994140625, -0.009552001953125, -0.03662109375, 0.014007568359375, 0.01494598388671875, 0.05120849609375, -0.06298828125, -0.08026123046875, 0.0305938720703125, -0.0036773681640625, -0.014617919921875, -0.06494140625, -0.0208282470703125, -0.018798828125, 0.001922607421875, 0.0755615234375, 0.006317138671875, 0.0232391357421875, -0.050140380859375, 0.0003516674041748047, -0.0153350830078125, -0.0164337158203125, 0.055633544921875, 0.00836181640625, 0.003437042236328125, -0.021484375, -0.0228118896484375, -0.031585693359375, 0.03338623046875, -0.00577545166015625, -0.009979248046875, -0.0229949951171875, -0.0216217041015625, 0.02581787109375, -0.0237579345703125, -0.0070037841796875, -0.0008406639099121094, 0.0179595947265625, -0.0109405517578125, 0.0263214111328125, -0.0239410400390625, 0.03558349609375, -0.00787353515625, 0.04217529296875, 0.005695343017578125, 0.01849365234375, 0.0084381103515625, -0.025421142578125, -0.00540924072265625, -0.0107269287109375, -0.0247039794921875, -0.02203369140625, -0.0208282470703125, -0.0010538101196289062, 0.0704345703125, -0.0186309814453125, 0.018218994140625, -0.0034084320068359375, -0.0187530517578125, -0.00023758411407470703, 0.0401611328125, 0.019134521484375, 0.04412841796875, 0.0281982421875, -0.00970458984375, -0.0246124267578125, -0.0126800537109375, 0.01505279541015625, -0.0146484375, 0.01425933837890625, -0.0156707763671875, -0.004302978515625, -0.052398681640625, 0.05157470703125, 0.057403564453125, 0.04022216796875, 0.033843994140625, -0.006114959716796875, 0.0202789306640625, -0.0032672882080078125, 0.00286102294921875, 0.03521728515625, -0.002750396728515625, 0.055572509765625, -0.01078033447265625, -0.0100250244140625, 0.0330810546875, -0.029144287109375, 0.003173828125, 0.0308380126953125, 0.03912353515625, -0.05267333984375, 0.01302337646484375, 0.0215301513671875, -0.0213623046875, -0.0012769699096679688, 0.0233306884765625, -0.004093170166015625, -0.029022216796875, -0.0227508544921875, -0.0032825469970703125, -0.019256591796875, -0.0093231201171875, 0.01078033447265625, 0.0036220550537109375, -0.0205535888671875, 0.045013427734375, -0.00567626953125, 0.0205230712890625, -0.053131103515625, -0.0139312744140625, -0.0239105224609375, 0.0188140869140625, -0.0021514892578125, -0.0221405029296875, -0.035858154296875, -0.08282470703125, -0.07598876953125, -0.0281829833984375, -0.053863525390625, 0.025115966796875, 0.025390625, 0.049530029296875, 0.061248779296875, 0.01507568359375, -0.00757598876953125, 0.00904083251953125, 0.045989990234375, -0.04107666015625, -0.02044677734375, -0.025482177734375, 0.014984130859375, 0.0215911865234375, 0.01528167724609375, -0.00337982177734375, -0.0260009765625, -0.00905609130859375, 0.004207611083984375, 0.056915283203125, -0.021240234375, -0.01165008544921875, 0.0343017578125, 0.0242156982421875, -0.012725830078125, 0.017364501953125, -0.021636962890625, -0.0274658203125, -0.03302001953125, -0.01372528076171875, -0.0694580078125, -0.00788116455078125, -0.021209716796875, -0.0594482421875, 0.04962158203125, 0.022552490234375, 0.01360321044921875, 0.01404571533203125, 0.015350341796875, -0.040191650390625, -0.0303955078125, -0.0224151611328125, 0.047882080078125, 0.018310546875, 0.0123138427734375, -0.038116455078125, -0.0242156982421875, 0.0018281936645507812, 0.054107666015625, 0.0135498046875, -0.00516510009765625, -0.05438232421875, 0.0077056884765625, 0.058624267578125, 0.048980712890625, 0.02642822265625, 0.048248291015625, -0.0122528076171875, 0.057952880859375, 0.0762939453125, -0.0753173828125, 0.028839111328125, -0.0140838623046875, -0.017578125, -0.0095062255859375, -0.01125335693359375, -0.00774383544921875, -0.013763427734375, 0.01337432861328125, 0.002010345458984375, -0.01499176025390625, 0.0032863616943359375, -0.03387451171875, 0.01340484619140625, -0.00726318359375, 0.025054931640625, -0.0687255859375, -0.0145263671875, -0.02008056640625, 0.033477783203125, 0.020172119140625, -0.00276947021484375, 0.03839111328125, 0.014434814453125, 0.042633056640625, -0.01316070556640625, -0.006458282470703125, -0.0028076171875, 0.0233306884765625, 0.050567626953125, 0.002155303955078125, 0.0121612548828125, -0.0265350341796875, 0.016326904296875, 0.018707275390625, 0.0543212890625, -0.04901123046875, 0.004547119140625, 0.016754150390625, -0.01361846923828125, -0.0007905960083007812, -0.05035400390625, -0.0164642333984375, -0.0347900390625, -0.036834716796875, -0.0227508544921875, 0.0024089813232421875, -0.01024627685546875, 0.019256591796875, 0.0005040168762207031, 0.025482177734375, -0.03448486328125, 0.007015228271484375, -0.06591796875, 0.052337646484375, 0.057525634765625, 0.07122802734375, -0.0206451416015625, 0.095947265625, -0.000014901161193847656, -0.029449462890625, -0.0233917236328125, 0.0299224853515625, -0.006439208984375, 0.02984619140625, -0.0262908935546875, -0.01030731201171875, 0.005611419677734375, 0.0246124267578125, 0.0033855438232421875, 0.05029296875, 0.04437255859375, 0.026641845703125, -0.0119781494140625, -0.001583099365234375, 0.0274810791015625, -0.0270233154296875, -0.0594482421875, -0.0293121337890625, 0.0004620552062988281, 0.021270751953125, 0.028594970703125, 0.005527496337890625, 0.046661376953125, -0.004756927490234375, 0.0200653076171875, 0.0017900466918945312, 0.01134490966796875, 0.0101776123046875, -0.004024505615234375, 0.01824951171875, -0.0295257568359375, 0.0292510986328125, -0.00844573974609375, 0.0218353271484375, -0.03314208984375, -0.056549072265625, -0.00559234619140625, 0.020751953125, -0.028717041015625, 0.0292205810546875, 0.00737762451171875, -0.007190704345703125, 0.0186004638671875, 0.0212860107421875, -0.009979248046875, 0.01108551025390625, 0.03277587890625, -0.0009417533874511719, -0.042236328125, 0.01428985595703125, 0.0022144317626953125, -0.0149078369140625, -0.0191802978515625, 0.0701904296875, 0.0163726806640625, -0.0077362060546875, 0.0204315185546875, -0.007152557373046875, 0.003673553466796875, 0.0015153884887695312, 0.0289459228515625, -0.02410888671875, -0.01096343994140625, -0.00644683837890625, 0.01366424560546875, -0.01351165771484375, 0.058837890625, -0.042205810546875, -0.0281524658203125, 0.0113372802734375, 0.0184326171875, -0.0038051605224609375, -0.02801513671875, -0.062042236328125, -0.0200653076171875, -0.0240631103515625, -0.035003662109375, 0.01393890380859375, -0.033416748046875, 0.01180267333984375, 0.0008807182312011719, 0.0009288787841796875, -0.004154205322265625, 0.0164031982421875, 0.0284576416015625, 0.032012939453125, 0.031463623046875, -0.0626220703125, 0.04656982421875, -0.026611328125, -0.032928466796875, 0.032379150390625, -0.01971435546875, -0.005268096923828125, -0.0098419189453125, 0.025299072265625, -0.04052734375, 0.0175628662109375, 0.054107666015625, 0.025421142578125, 0.02459716796875, -0.028900146484375, -0.00791168212890625, -0.016998291015625, -0.03460693359375, -0.008941650390625, -0.039154052734375, -0.011962890625, -0.010589599609375, -0.00693511962890625, -0.0396728515625, 0.042724609375, 0.017608642578125, 0.01296234130859375, 0.022003173828125, -0.049285888671875, 0.034149169921875, -0.002223968505859375, 0.016265869140625, 0.005573272705078125, -0.01265716552734375, 0.0096282958984375, 0.044464111328125, -0.0008573532104492188, -0.01023101806640625, -0.01410675048828125, 0.00811767578125, 0.0003228187561035156, -0.0019159317016601562, 0.01248931884765625, -0.0077972412109375, -0.04144287109375, 0.00670623779296875, -0.00598907470703125, 0.033782958984375, 0.0149688720703125, -0.0034694671630859375, 0.06585693359375, -0.03460693359375, -0.048187255859375, -0.04669189453125, 0.0137786865234375, -0.03887939453125, -0.01262664794921875, -0.04327392578125, 0.0204620361328125, 0.0253448486328125, -0.0316162109375, -0.09356689453125, 0.0148162841796875, -0.030120849609375, -0.0290985107421875, -0.04522705078125, -0.019927978515625, 0.0241851806640625, -0.016632080078125, -0.021240234375, 0.0063018798828125, -0.0712890625, -0.008087158203125, 0.023468017578125, -0.0276336669921875, -0.004638671875, 0.0357666015625, -0.09735107421875, 0.0225982666015625, 0.004482269287109375, -0.01480865478515625, -0.023712158203125, 0.0155792236328125, -0.0044403076171875, 0.01490020751953125, -0.0286102294921875, -0.0159759521484375, 0.00897979736328125, 0.0026073455810546875, -0.004299163818359375, -0.00206756591796875, -0.035675048828125, 0.009918212890625, 0.056854248046875, 0.031951904296875, 0.0186309814453125, -0.040802001953125, -0.0013666152954101562, -0.036834716796875, 0.0029926300048828125, -0.004913330078125, 0.01044464111328125, -0.05804443359375, -0.00151824951171875, 0.015167236328125, -0.0247344970703125, -0.006832122802734375, 0.012542724609375, -0.0011148452758789062, 0.01003265380859375, 0.048004150390625, -0.040771484375, 0.04437255859375, -0.035369873046875, 0.08050537109375, -0.053192138671875, -0.0108184814453125, 0.0050201416015625, 0.01526641845703125, 0.0270843505859375, -0.00897979736328125, -0.019866943359375, -0.0187835693359375, 0.034576416015625, -0.00762176513671875, 0.029693603515625, -0.0189361572265625, 0.061767578125, -0.0013723373413085938, -0.01262664794921875, -0.00447845458984375, 0.00634765625, -0.041351318359375, -0.027069091796875, -0.0208282470703125, -0.004360198974609375, 0.02197265625, -0.01045989990234375, 0.000031948089599609375, -0.00785064697265625, 0.01226806640625, -0.01366424560546875, -0.0015010833740234375, 0.0236663818359375, -0.0135650634765625, -0.005779266357421875, 0.0096282958984375, 0.01137542724609375, -0.042083740234375, 0.0176239013671875, 0.0164947509765625, 0.0197296142578125, 0.019287109375 ]
2fdfe8bdac70ff4de859f03815796e38c2d7ec82
Wordpress Stackexchange Q: How to order by post_status? I'm using get_posts() like this: $posts = get_posts(array('orderby' => 'post_status')) which is not possible cause it's not in the allowed keys in the parse_orderby() method How to get around this limitation? A: You can use 'posts_orderby' filter to change the SQL performed. Note that: * *using get_posts() you need to set 'suppress_filters' argument of false for the filter to be performed *if you don't explicitly set 'post_status' you'll get only published posts (so no much to order) Code sample: $filter = function() { return 'post_status ASC'; }; add_filter('posts_orderby', $filter); $posts = get_posts('post_status' => 'any', 'suppress_filters' => false); remove_filter('posts_orderby', $filter);
Q: How to order by post_status? I'm using get_posts() like this: $posts = get_posts(array('orderby' => 'post_status')) which is not possible cause it's not in the allowed keys in the parse_orderby() method How to get around this limitation? A: You can use 'posts_orderby' filter to change the SQL performed. Note that: * *using get_posts() you need to set 'suppress_filters' argument of false for the filter to be performed *if you don't explicitly set 'post_status' you'll get only published posts (so no much to order) Code sample: $filter = function() { return 'post_status ASC'; }; add_filter('posts_orderby', $filter); $posts = get_posts('post_status' => 'any', 'suppress_filters' => false); remove_filter('posts_orderby', $filter); A: add_filter('posts_orderby', 'custom_post_status', 10,2); function custom_post_status($args, $wp_query){ if($wp_query->query_vars['orderby'] == 'post_status') { if($wp_query->query_vars['order']) { return 'post_status '.$wp_query->query_vars['order']; } else { return 'post_status ASC'; } } return $args; } Adding this would enable 'orderby' => 'post_status' in WP_Query
wordpress
{ "language": "en", "length": 141, "provenance": "stackexchange_00019.jsonl.gz:456985", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193405" }
[ 0.0953369140625, 0.0116729736328125, 0.053741455078125, -0.0238037109375, 0.0279083251953125, -0.03082275390625, 0.06982421875, -0.040985107421875, 0.040069580078125, 0.007328033447265625, -0.04766845703125, -0.0220794677734375, -0.0462646484375, -0.0110015869140625, -0.045562744140625, -0.06744384765625, 0.043304443359375, -0.022369384765625, 0.0460205078125, 0.00150299072265625, 0.021453857421875, 0.0195770263671875, 0.04498291015625, 0.01214599609375, 0.0138397216796875, 0.022430419921875, 0.08062744140625, -0.047515869140625, 0.033782958984375, -0.0229034423828125, 0.0164947509765625, -0.0435791015625, 0.00991058349609375, -0.0036487579345703125, 0.013336181640625, -0.00556182861328125, 0.0214996337890625, -0.0118255615234375, 0.00215911865234375, 0.025299072265625, 0.01922607421875, -0.006526947021484375, 0.015380859375, 0.0019016265869140625, -0.00641632080078125, -0.0200958251953125, 0.0310211181640625, -0.01061248779296875, 0.0284271240234375, -0.042999267578125, 0.020111083984375, -0.0153961181640625, 0.045013427734375, -0.04583740234375, -0.035797119140625, -0.029296875, 0.01509857177734375, 0.04376220703125, 0.040313720703125, -0.01415252685546875, -0.043670654296875, 0.034912109375, 0.00717926025390625, -0.0302734375, -0.004749298095703125, 0.0019664764404296875, 0.031280517578125, 0.0013523101806640625, -0.035888671875, -0.004993438720703125, 0.0301055908203125, -0.022430419921875, 0.018829345703125, -0.01045989990234375, -0.0196075439453125, -0.035369873046875, -0.0133056640625, -0.044097900390625, 0.047821044921875, -0.0193023681640625, 0.0230560302734375, 0.0150909423828125, -0.03125, -0.004962921142578125, 0.0007262229919433594, -0.00922393798828125, -0.0194091796875, -0.00847625732421875, -0.0222015380859375, -0.00786590576171875, -0.0154266357421875, -0.034423828125, -0.0122222900390625, 0.039276123046875, -0.000888824462890625, -0.00012934207916259766, 0.031829833984375, 0.045074462890625, -0.0294952392578125, -0.009429931640625, -0.02288818359375, -0.02984619140625, 0.0174560546875, -0.035675048828125, -0.0211944580078125, -0.01959228515625, 0.0247955322265625, 0.017791748046875, 0.0019330978393554688, 0.050201416015625, -0.023651123046875, 0.006137847900390625, -0.01053619384765625, -0.0286407470703125, -0.0307769775390625, 0.00446319580078125, -0.03936767578125, -0.011505126953125, 0.02154541015625, -0.037109375, 0.03326416015625, 0.043121337890625, -0.0159454345703125, -0.0021686553955078125, -0.0367431640625, -0.02099609375, -0.01824951171875, -0.0528564453125, 0.00133514404296875, 0.037078857421875, -0.0301361083984375, 0.00115966796875, 0.0521240234375, 0.0174713134765625, -0.00634765625, -0.0252227783203125, -0.016937255859375, -0.064697265625, -0.0110626220703125, 0.0177154541015625, 0.01947021484375, -0.02838134765625, 0.0096893310546875, 0.0131378173828125, 0.00363922119140625, 0.0126953125, 0.0182647705078125, -0.0118255615234375, -0.0211639404296875, -0.024993896484375, -0.0167236328125, 0.0142822265625, 0.0159454345703125, 0.0185394287109375, -0.0021190643310546875, -0.00557708740234375, -0.0156097412109375, -0.0229644775390625, 0.0133056640625, -0.016937255859375, 0.05718994140625, 0.01105499267578125, -0.012298583984375, -0.00882720947265625, -0.034912109375, -0.0223388671875, -0.046142578125, -0.022308349609375, 0.006256103515625, -0.0258026123046875, -0.00052642822265625, 0.028961181640625, -0.0087432861328125, -0.0032634735107421875, 0.006099700927734375, -0.0074310302734375, 0.005645751953125, -0.035675048828125, 0.00911712646484375, 0.017730712890625, -0.0360107421875, -0.03851318359375, -0.05242919921875, 0.0230255126953125, -0.0577392578125, 0.0467529296875, 0.0049591064453125, 0.06268310546875, 0.002452850341796875, 0.0171966552734375, 0.00997161865234375, 0.046142578125, -0.05242919921875, 0.04010009765625, -0.00284576416015625, -0.06732177734375, -0.004886627197265625, -0.034332275390625, 0.0048828125, 0.0114593505859375, 0.001953125, 0.007793426513671875, -0.0241546630859375, 0.02850341796875, -0.0416259765625, -0.020660400390625, -0.0013895034790039062, 0.01306915283203125, -0.0143585205078125, -0.007137298583984375, 0.0223846435546875, -0.002376556396484375, -0.02410888671875, -0.005565643310546875, -0.024688720703125, 0.0038051605224609375, -0.0069427490234375, -0.0155181884765625, -0.01345062255859375, 0.019622802734375, -0.051116943359375, -0.001804351806640625, -0.0595703125, 0.01226043701171875, 0.0377197265625, -0.04736328125, 0.0167999267578125, -0.04107666015625, 0.0294342041015625, -0.006198883056640625, -0.01129913330078125, -0.0006575584411621094, 0.03936767578125, 0.059356689453125, 0.00133514404296875, -0.0015869140625, 0.01352691650390625, -0.07415771484375, 0.0132293701171875, 0.04205322265625, 0.0222320556640625, 0.0030689239501953125, -0.003070831298828125, 0.025909423828125, 0.03509521484375, -0.0010538101196289062, 0.01313018798828125, 0.014404296875, 0.01251220703125, 0.07684326171875, -0.00710296630859375, 0.025238037109375, 0.00945281982421875, -0.0025310516357421875, -0.0005249977111816406, 0.045806884765625, 0.00548553466796875, 0.02105712890625, -0.01348876953125, 0.005157470703125, 0.0059967041015625, -0.0025730133056640625, -0.03155517578125, 0.008453369140625, 0.019622802734375, 0.0027179718017578125, 0.01183319091796875, 0.013397216796875, -0.040618896484375, 0.0072784423828125, 0.01983642578125, -0.02154541015625, 0.007110595703125, 0.0221405029296875, -0.0626220703125, 0.00823974609375, -0.0240478515625, 0.015838623046875, 0.00026488304138183594, -0.0070648193359375, 0.007137298583984375, 0.006114959716796875, 0.01111602783203125, 0.0030689239501953125, 0.0110015869140625, -0.0225982666015625, 0.03912353515625, 0.054443359375, -0.049591064453125, -0.033843994140625, -0.01551055908203125, 0.0595703125, 0.0018405914306640625, 0.01332855224609375, 0.00994873046875, 0.003932952880859375, 0.0118255615234375, -0.09368896484375, 0.0657958984375, -0.050018310546875, 0.04522705078125, 0.08563232421875, 0.005092620849609375, 0.0206298828125, 0.002399444580078125, 0.008697509765625, 0.01546478271484375, -0.01020050048828125, -0.01325225830078125, 0.007282257080078125, -0.052520751953125, 0.036407470703125, 0.0394287109375, 0.0338134765625, 0.0187225341796875, -0.0224609375, 0.0107879638671875, 0.032928466796875, -0.05133056640625, -0.0855712890625, -0.00324249267578125, -0.034912109375, 0.003681182861328125, -0.010986328125, -0.01212310791015625, -0.0006308555603027344, -0.01666259765625, 0.0021305084228515625, -0.016387939453125, 0.0193634033203125, -0.04156494140625, -0.0014696121215820312, -0.0364990234375, 0.045501708984375, -0.01541900634765625, 0.008331298828125, 0.0158538818359375, 0.133056640625, 0.027313232421875, -0.07928466796875, 0.0095062255859375, 0.0301361083984375, -0.036712646484375, 0.062744140625, -0.00342559814453125, 0.004261016845703125, -0.0026912689208984375, 0.023529052734375, 0.02264404296875, 0.00528717041015625, -0.01971435546875, -0.0185089111328125, -0.036651611328125, 0.035186767578125, 0.0185546875, 0.0160369873046875, 0.0246734619140625, 0.03436279296875, 0.02850341796875, -0.01727294921875, -0.01052093505859375, -0.0289154052734375, -0.03900146484375, -0.0084381103515625, 0.0210113525390625, 0.02423095703125, -0.0230255126953125, 0.0107269287109375, 0.01666259765625, 0.013275146484375, 0.01052093505859375, 0.0035228729248046875, 0.0230560302734375, 0.004665374755859375, 0.0152587890625, -0.019500732421875, 0.002582550048828125, -0.01288604736328125, -0.0045013427734375, 0.004940032958984375, 0.01349639892578125, -0.01287078857421875, 0.0174407958984375, -0.042327880859375, -0.05194091796875, 0.051239013671875, -0.00148773193359375, 0.00909423828125, -0.041900634765625, -0.037994384765625, 0.0032634735107421875, 0.109619140625, -0.03704833984375, -0.0211334228515625, -0.0035343170166015625, 0.0309295654296875, -0.04083251953125, -0.07373046875, -0.0116729736328125, -0.0182952880859375, -0.04339599609375, -0.004138946533203125, -0.0211181640625, -0.01812744140625, -0.033966064453125, -0.0406494140625, -0.031494140625, -0.0291290283203125, 0.017181396484375, -0.0193634033203125, -0.005191802978515625, 0.0167083740234375, -0.038482666015625, 0.01158905029296875, -0.0148162841796875, -0.01067352294921875, -0.059814453125, -0.00788116455078125, 0.0018148422241210938, 0.006679534912109375, 0.0026073455810546875, 0.0086822509765625, -0.004047393798828125, 0.033355712890625, -0.012664794921875, 0.0244140625, -0.0008349418640136719, 0.0360107421875, 0.01111602783203125, -0.007556915283203125, 0.004619598388671875, -0.028350830078125, -0.028564453125, -0.0273590087890625, 0.006824493408203125, -0.01296234130859375, -0.054412841796875, -0.0228424072265625, -0.05718994140625, -0.01113128662109375, -0.047149658203125, -0.025848388671875, 0.0063323974609375, 0.015716552734375, -0.03955078125, 0.029296875, -0.034820556640625, -0.054656982421875, 0.03997802734375, -0.0021610260009765625, -0.03387451171875, -0.0004978179931640625, 0.09161376953125, 0.0238189697265625, -0.018463134765625, -0.034698486328125, -0.03814697265625, 0.0221405029296875, -0.0193023681640625, 0.021087646484375, 0.007778167724609375, -0.0316162109375, 0.06683349609375, 0.005390167236328125, -0.04461669921875, 0.02593994140625, 0.024871826171875, 0.0233154296875, -0.0225372314453125, -0.01222991943359375, -0.01372528076171875, 0.026947021484375, 0.0203399658203125, -0.014801025390625, -0.0175628662109375, 0.034149169921875, 0.049957275390625, -0.0242462158203125, 0.00909423828125, -0.03369140625, -0.053375244140625, 0.022125244140625, -0.039459228515625, 0.0033054351806640625, -0.002185821533203125, 0.00943756103515625, 0.007171630859375, 0.007198333740234375, 0.0178985595703125, -0.01195526123046875, 0.026763916015625, -0.029388427734375, 0.05120849609375, -0.0242156982421875, 0.0016527175903320312, -0.004871368408203125, -0.0194854736328125, 0.08441162109375, -0.004749298095703125, -0.056427001953125, -0.00122833251953125, -0.018707275390625, 0.042816162109375, 0.023345947265625, -0.03082275390625, 0.00762939453125, 0.0404052734375, -0.0036487579345703125, 0.004619598388671875, -0.0172576904296875, 0.0131378173828125, -0.0211334228515625, 0.061370849609375, 0.0452880859375, -0.00798797607421875, 0.0306243896484375, 0.0587158203125, 0.01129150390625, 0.037384033203125, -0.0287628173828125, 0.0062255859375, 0.004955291748046875, -0.0138702392578125, 0.01184844970703125, 0.0201416015625, 0.020111083984375, -0.031402587890625, 0.038818359375, -0.005252838134765625, 0.00475311279296875, -0.007572174072265625, -0.032012939453125, 0.0025615692138671875, 0.0182647705078125, 0.04351806640625, 0.0288543701171875, -0.02886962890625, 0.040191650390625, 0.0836181640625, 0.00933074951171875, -0.038543701171875, -0.045989990234375, 0.0122222900390625, 0.03912353515625, -0.00461578369140625, 0.01212310791015625, -0.009368896484375, 0.03314208984375, -0.031890869140625, 0.0133514404296875, -0.006328582763671875, -0.003200531005859375, 0.005420684814453125, -0.033355712890625, -0.0252685546875, 0.0026035308837890625, 0.00946807861328125, -0.0068511962890625, -0.0009899139404296875, 0.0220794677734375, -0.0181884765625, 0.0579833984375, -0.049072265625, 0.007297515869140625, -0.029144287109375, -0.003246307373046875, 0.02166748046875, 0.007198333740234375, -0.007312774658203125, -0.01142120361328125, -0.05194091796875, -0.039031982421875, -0.017791748046875, -0.020172119140625, -0.04254150390625, -0.0013456344604492188, 0.029754638671875, 0.032684326171875, 0.014678955078125, -0.048126220703125, -0.045623779296875, -0.03485107421875, 0.03497314453125, -0.00470733642578125, 0.0097198486328125, 0.0950927734375, -0.048126220703125, 0.09149169921875, 0.021453857421875, 0.0567626953125, -0.030364990234375, -0.034393310546875, 0.006011962890625, -0.040191650390625, -0.02166748046875, -0.01303863525390625, -0.0278167724609375, -0.00666046142578125, 0.0236053466796875, -0.0002963542938232422, 0.011016845703125, -0.02496337890625, 0.00153350830078125, -0.01082611083984375, -0.0219879150390625, -0.005550384521484375, 0.0072479248046875, 0.01538848876953125, -0.0265960693359375, 0.0008630752563476562, -0.0018987655639648438, 0.01004791259765625, -0.00934600830078125, -0.01654052734375, -0.01238250732421875, 0.0246124267578125, -0.03631591796875, 0.04388427734375, 0.054962158203125, 0.038482666015625, 0.02362060546875, -0.01329803466796875, 0.0282135009765625, -0.0256195068359375, -0.0007834434509277344, 0.0240325927734375, 0.0200347900390625, 0.08203125, 0.00627899169921875, -0.013397216796875, 0.05157470703125, -0.052520751953125, 0.0203094482421875, 0.047393798828125, 0.06927490234375, -0.08135986328125, 0.035430908203125, 0.044158935546875, 0.00960540771484375, 0.044281005859375, -0.00868988037109375, -0.00585174560546875, -0.03045654296875, 0.07012939453125, -0.046417236328125, -0.010955810546875, 0.0240936279296875, -0.03204345703125, 0.0008549690246582031, -0.0108184814453125, 0.0171356201171875, -0.0002008676528930664, -0.026458740234375, -0.0223541259765625, 0.0166168212890625, -0.0067596435546875, -0.007511138916015625, 0.0034694671630859375, -0.013824462890625, -0.017974853515625, -0.055572509765625, -0.004245758056640625, -0.01971435546875, -0.0088653564453125, -0.0159149169921875, -0.0421142578125, 0.00864410400390625, 0.05059814453125, -0.03082275390625, -0.005706787109375, 0.036529541015625, -0.06524658203125, -0.0222930908203125, -0.007534027099609375, 0.03240966796875, 0.01399993896484375, 0.00824737548828125, 0.0152435302734375, 0.01462554931640625, -0.0474853515625, -0.0224609375, -0.034698486328125, 0.06591796875, -0.032012939453125, -0.00560760498046875, 0.0249786376953125, 0.0577392578125, -0.0224609375, -0.004550933837890625, 0.036102294921875, -0.037353515625, 0.00720977783203125, 0.005146026611328125, 0.007171630859375, -0.0066070556640625, -0.00482940673828125, -0.039520263671875, 0.045623779296875, 0.01174163818359375, -0.007965087890625, -0.005664825439453125, 0.026885986328125, -0.026611328125, 0.00494384765625, -0.056610107421875, 0.07696533203125, -0.0073089599609375, 0.09381103515625, -0.06396484375, 0.0128326416015625, 0.0286712646484375, 0.0277557373046875, 0.04522705078125, 0.00803375244140625, -0.07012939453125, -0.02618408203125, 0.07012939453125, 0.09075927734375, 0.05780029296875, 0.03564453125, -0.01947021484375, 0.07366943359375, 0.0321044921875, -0.07763671875, 0.0234222412109375, -0.006328582763671875, -0.03546142578125, 0.006412506103515625, 0.029815673828125, 0.0305633544921875, 0.004253387451171875, 0.00548553466796875, -0.04022216796875, -0.0007238388061523438, 0.044647216796875, -0.0216064453125, 0.034759521484375, 0.0261383056640625, 0.047882080078125, -0.0426025390625, -0.0450439453125, -0.01190185546875, 0.040924072265625, 0.026611328125, 0.038482666015625, 0.0292205810546875, 0.0286865234375, 0.0372314453125, -0.040740966796875, 0.0192413330078125, 0.0029811859130859375, -0.0543212890625, 0.053802490234375, 0.0264129638671875, 0.03887939453125, -0.037139892578125, -0.0239715576171875, 0.0406494140625, 0.07598876953125, -0.0294647216796875, 0.0155792236328125, 0.02362060546875, -0.01528167724609375, 0.0008158683776855469, -0.061553955078125, -0.01056671142578125, -0.0005097389221191406, -0.0155792236328125, -0.059783935546875, -0.01004791259765625, 0.038726806640625, 0.04473876953125, -0.00507354736328125, -0.0147857666015625, -0.039154052734375, -0.04290771484375, -0.024566650390625, -0.0214080810546875, 0.0189361572265625, 0.01255035400390625, 0.01030731201171875, 0.0282440185546875, 0.012054443359375, 0.0045318603515625, 0.0095367431640625, 0.0181121826171875, -0.0183563232421875, 0.0134429931640625, -0.0165557861328125, -0.042816162109375, -0.025482177734375, 0.0274200439453125, 0.01015472412109375, -0.0255584716796875, 0.0124969482421875, 0.03546142578125, -0.0131072998046875, -0.006992340087890625, 0.051116943359375, -0.0022373199462890625, -0.044830322265625, -0.0298004150390625, -0.0149993896484375, 0.0218658447265625, -0.00183868408203125, 0.0577392578125, 0.018798828125, 0.027130126953125, -0.00833892822265625, 0.0208282470703125, -0.00798797607421875, -0.011688232421875, 0.030487060546875, 0.00980377197265625, 0.04010009765625, 0.004779815673828125, -0.037933349609375, -0.0155181884765625, -0.0297088623046875, 0.00208282470703125, 0.01343536376953125, 0.025848388671875, 0.01082611083984375, 0.0245361328125, -0.00272369384765625, -0.036041259765625, 0.0306854248046875, 0.004161834716796875, 0.02606201171875, 0.025634765625, -0.0017375946044921875, 0.0036373138427734375, -0.02789306640625, -0.0285797119140625, -0.0203094482421875, 0.045684814453125, 0.03802490234375, 0.004558563232421875, 0.00565338134765625, 0.043304443359375, -0.02386474609375, 0.0174560546875, -0.04229736328125, -0.00751495361328125, 0.0181121826171875, -0.00992584228515625, -0.02154541015625, -0.00608062744140625, 0.04486083984375, 0.01184844970703125, 0.049530029296875, -0.042755126953125, -0.007450103759765625, -0.0379638671875, 0.0113525390625, -0.0266265869140625, 0.0125579833984375, -0.0251617431640625, 0.00914764404296875, 0.004253387451171875, -0.00762176513671875, 0.018798828125, 0.0056915283203125, -0.009552001953125, 0.0239410400390625, -0.01148223876953125, -0.060302734375, 0.040863037109375, -0.043365478515625, 0.07025146484375, 0.038543701171875, -0.041259765625, 0.029937744140625, -0.01554107666015625, -0.0197601318359375, 0.0293731689453125, -0.0007786750793457031, -0.0153961181640625, -0.0016231536865234375, -0.0045623779296875, -0.0238189697265625, 0.00618743896484375, 0.04852294921875, 0.01204681396484375, 0.016876220703125, -0.0118255615234375, -0.01073455810546875, -0.0290679931640625, 0.0247650146484375, -0.0169830322265625, -0.0187225341796875, -0.0248565673828125, -0.0251617431640625, 0.0123291015625, -0.08135986328125, 0.00745391845703125, -0.0213165283203125, 0.01380157470703125, -0.0111541748046875, 0.00011116266250610352, -0.0142669677734375, -0.0164642333984375, -0.0304718017578125, -0.0038280487060546875, -0.0176239013671875, 0.01520538330078125, 0.03472900390625, -0.0114593505859375, 0.01253509521484375, -0.0103912353515625, -0.0111846923828125, 0.01081085205078125, 0.00533294677734375, 0.023468017578125, -0.01446533203125, -0.021636962890625, 0.0106658935546875, -0.0110931396484375, 0.042999267578125, -0.0161285400390625, -0.003993988037109375, 0.0191650390625, 0.0135498046875, -0.04913330078125, -0.09033203125, 0.0306396484375, -0.0877685546875, 0.01236724853515625, -0.02337646484375, 0.044891357421875, 0.047149658203125, -0.01690673828125, -0.046142578125, 0.08282470703125, -0.021453857421875, -0.0176239013671875, -0.038543701171875, 0.01125335693359375, -0.0026111602783203125, 0.0086212158203125, 0.00890350341796875, -0.037384033203125, -0.028900146484375, 0.0181732177734375, -0.0165252685546875, 0.057098388671875, -0.0256500244140625, 0.017791748046875, -0.08148193359375, 0.01262664794921875, -0.0216522216796875, -0.0060272216796875, -0.041168212890625, 0.004642486572265625, 0.021453857421875, 0.046478271484375, -0.0032329559326171875, 0.0017375946044921875, 0.04547119140625, 0.0047454833984375, 0.037384033203125, -0.037353515625, -0.042022705078125, -0.031341552734375, 0.0374755859375, 0.0204925537109375, 0.02587890625, -0.0119476318359375, -0.0018901824951171875, -0.040771484375, -0.0211944580078125, -0.0163421630859375, 0.0263214111328125, -0.08367919921875, -0.03582763671875, 0.053466796875, 0.016632080078125, 0.0159759521484375, -0.047943115234375, -0.01309967041015625, -0.03173828125, -0.026885986328125, 0.01255035400390625, -0.040924072265625, -0.00623321533203125, 0.005138397216796875, -0.0269775390625, -0.042877197265625, 0.005802154541015625, 0.01503753662109375, -0.049957275390625, -0.0089263916015625, -0.01384735107421875, -0.0132293701171875, 0.01959228515625, 0.01250457763671875, 0.0230865478515625, 0.01253509521484375, 0.04083251953125, -0.00391387939453125, -0.035858154296875, 0.00408935546875, 0.0311279296875, -0.0212554931640625, -0.0277252197265625, 0.0226287841796875, 0.03363037109375, 0.0576171875, 0.0015897750854492188, 0.092041015625, 0.037445068359375, 0.023651123046875, 0.00296783447265625, -0.0253753662109375, 0.046356201171875, -0.059295654296875, 0.01505279541015625, -0.013214111328125, 0.02197265625, -0.00185394287109375, 0.0248870849609375, -0.0130462646484375, -0.029449462890625, 0.0155029296875 ]
066690b86010369816969396fce0965c42dbc784
Wordpress Stackexchange Q: Limit number of pages that use a specific template? I have a custom page template, so a .php file in my themes folder with this at the beginning /* * Template Name: MyTemplate */ Now I can, in the WP backend, create new pages and select this template so that the page created uses this template. How can I limit the number of pages using this template? For example, if I only want to allow one single page using this template? Or if there's only ever allowed three pages that may use it. How can I achieve this? A: You can approach this by first using a database query to count the number of pages that are already using the template: $query = "SELECT COUNT(*) as total FROM prefix_posts as p JOIN prefix_postmeta as m ON p.ID = m.post_id WHERE p.'post_type' = 'page' AND p.'post_status' = 'publish' AND m.'meta_key' = '_wp_page_template' AND m.'meta_value' = 'page-your-template-name.php'"; Then check if your count limit has been reached and remove the page template with the theme_page_templates filter:
Q: Limit number of pages that use a specific template? I have a custom page template, so a .php file in my themes folder with this at the beginning /* * Template Name: MyTemplate */ Now I can, in the WP backend, create new pages and select this template so that the page created uses this template. How can I limit the number of pages using this template? For example, if I only want to allow one single page using this template? Or if there's only ever allowed three pages that may use it. How can I achieve this? A: You can approach this by first using a database query to count the number of pages that are already using the template: $query = "SELECT COUNT(*) as total FROM prefix_posts as p JOIN prefix_postmeta as m ON p.ID = m.post_id WHERE p.'post_type' = 'page' AND p.'post_status' = 'publish' AND m.'meta_key' = '_wp_page_template' AND m.'meta_value' = 'page-your-template-name.php'"; Then check if your count limit has been reached and remove the page template with the theme_page_templates filter:
wordpress
{ "language": "en", "length": 174, "provenance": "stackexchange_00019.jsonl.gz:456988", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193420" }
[ 0.02569580078125, -0.00994110107421875, 0.031005859375, -0.01006317138671875, -0.01529693603515625, -0.007415771484375, 0.009185791015625, -0.04217529296875, -0.027862548828125, 0.015533447265625, -0.00611114501953125, 0.0008025169372558594, -0.033905029296875, -0.0266265869140625, 0.017425537109375, -0.038970947265625, 0.0286712646484375, -0.003570556640625, 0.031402587890625, -0.0200958251953125, 0.0308990478515625, -0.0027942657470703125, 0.0208892822265625, 0.067626953125, 0.00899505615234375, -0.03900146484375, 0.057830810546875, -0.0250244140625, -0.0154876708984375, -0.052398681640625, 0.00901031494140625, 0.06195068359375, 0.0357666015625, 0.01030731201171875, -0.038726806640625, -0.0082244873046875, -0.0085906982421875, -0.0009169578552246094, -0.0132904052734375, 0.0244140625, 0.0053558349609375, 0.0003733634948730469, 0.003917694091796875, 0.017486572265625, -0.0176239013671875, -0.032806396484375, 0.01081085205078125, -0.0445556640625, -0.0027904510498046875, -0.0119781494140625, 0.019287109375, -0.01245880126953125, 0.02679443359375, 0.02728271484375, -0.0159454345703125, -0.0066986083984375, 0.0234832763671875, -0.013153076171875, 0.0318603515625, -0.037261962890625, -0.045440673828125, -0.007266998291015625, 0.031280517578125, -0.0022029876708984375, -0.0009369850158691406, -0.0219573974609375, -0.0606689453125, 0.0293426513671875, 0.0350341796875, -0.01045989990234375, -0.0204010009765625, 0.0020351409912109375, 0.00519561767578125, -0.027618408203125, -0.016448974609375, 0.0185394287109375, 0.0103912353515625, -0.004302978515625, 0.005649566650390625, -0.0004973411560058594, -0.032318115234375, -0.0445556640625, -0.061737060546875, -0.0170440673828125, -0.01288604736328125, 0.0008611679077148438, -0.024658203125, 0.017608642578125, -0.0117950439453125, 0.0018205642700195312, -0.0165252685546875, 0.0114288330078125, 0.031951904296875, -0.0108642578125, -0.032806396484375, -0.004852294921875, 0.019683837890625, 0.06683349609375, -0.01253509521484375, -0.01464080810546875, -0.00986480712890625, -0.027984619140625, -0.0160675048828125, -0.0264892578125, 0.042999267578125, 0.06085205078125, -0.01605224609375, 0.031494140625, 0.072998046875, 0.021209716796875, 0.04058837890625, 0.019500732421875, -0.02215576171875, -0.00472259521484375, -0.047943115234375, -0.01537322998046875, -0.040802001953125, -0.036102294921875, 0.00475311279296875, -0.04876708984375, -0.00534820556640625, 0.016845703125, 0.0220794677734375, -0.053009033203125, 0.000995635986328125, -0.013885498046875, -0.033203125, -0.0357666015625, 0.01096343994140625, 0.0299224853515625, -0.0140228271484375, -0.007175445556640625, -0.01092529296875, 0.017333984375, -0.018463134765625, -0.01364898681640625, -0.01558685302734375, -0.0018243789672851562, 0.002353668212890625, 0.01247406005859375, -0.020904541015625, -0.0367431640625, 0.0265655517578125, -0.027099609375, 0.00244140625, 0.00019979476928710938, 0.019927978515625, 0.0406494140625, -0.0029926300048828125, -0.028472900390625, 0.0362548828125, -0.01103973388671875, 0.0355224609375, -0.00016939640045166016, -0.034912109375, -0.037017822265625, -0.02593994140625, -0.02581787109375, 0.0026950836181640625, -0.0294647216796875, -0.007659912109375, 0.00725555419921875, -0.000051856040954589844, -0.037322998046875, -0.04132080078125, -0.013458251953125, 0.0068511962890625, -0.0007834434509277344, 0.00984954833984375, 0.029449462890625, 0.0111846923828125, -0.048858642578125, -0.0273590087890625, -0.009979248046875, -0.0146484375, 0.02044677734375, 0.00701141357421875, 0.013092041015625, 0.01244354248046875, 0.04071044921875, 0.0021343231201171875, -0.019317626953125, 0.043212890625, -0.006626129150390625, -0.056182861328125, 0.006587982177734375, 0.0258636474609375, 0.042999267578125, 0.0011053085327148438, 0.00740814208984375, 0.06610107421875, 0.005504608154296875, -0.004718780517578125, 0.026611328125, 0.0025386810302734375, -0.044342041015625, -0.02899169921875, 0.00286102294921875, -0.0189208984375, -0.002017974853515625, 0.035247802734375, 0.0020618438720703125, 0.008453369140625, -0.0018701553344726562, -0.037322998046875, 0.016326904296875, -0.0214691162109375, 0.0196380615234375, -0.03558349609375, 0.01134490966796875, 0.0240478515625, -0.0310821533203125, -0.01433563232421875, 0.0008697509765625, -0.01116180419921875, 0.002674102783203125, 0.0242156982421875, 0.007709503173828125, 0.018463134765625, 0.00455474853515625, 0.035186767578125, -0.01324462890625, -0.0081939697265625, 0.0187225341796875, 0.054656982421875, -0.009246826171875, -0.03955078125, -0.0224456787109375, -0.048614501953125, 0.0290069580078125, -0.13232421875, 0.07659912109375, 0.003185272216796875, 0.0258331298828125, -0.0166015625, -0.000530242919921875, -0.021697998046875, -0.046966552734375, 0.004119873046875, 0.03741455078125, 0.031494140625, 0.0031909942626953125, -0.00701904296875, -0.00243377685546875, 0.0221405029296875, -0.056854248046875, -0.00516510009765625, 0.01470947265625, 0.01279449462890625, 0.0035552978515625, 0.00555419921875, -0.0137176513671875, 0.033203125, -0.0227203369140625, 0.0196685791015625, 0.0249786376953125, -0.00843048095703125, 0.0244140625, -0.00948333740234375, 0.01287078857421875, -0.0101776123046875, 0.0166473388671875, 0.00977325439453125, -0.01000213623046875, 0.015716552734375, -0.005832672119140625, 0.0293121337890625, 0.010284423828125, -0.01248931884765625, -0.01611328125, 0.01160430908203125, -0.018035888671875, 0.0192108154296875, -0.052703857421875, -0.042144775390625, 0.012481689453125, -0.031707763671875, 0.0362548828125, 0.04949951171875, -0.036712646484375, -0.0223846435546875, 0.0257720947265625, -0.0711669921875, -0.01038360595703125, -0.035614013671875, -0.08001708984375, -0.01093292236328125, 0.049224853515625, 0.0230255126953125, 0.0129852294921875, 0.01251983642578125, 0.044464111328125, -0.0253448486328125, 0.046600341796875, 0.026611328125, -0.014495849609375, 0.02191162109375, -0.07476806640625, 0.07672119140625, -0.0621337890625, 0.042083740234375, 0.07427978515625, -0.04595947265625, 0.0574951171875, -0.0036373138427734375, 0.049652099609375, 0.01367950439453125, -0.0024929046630859375, -0.008514404296875, -0.02203369140625, 0.0011625289916992188, 0.0124359130859375, 0.0261077880859375, 0.0452880859375, 0.01505279541015625, -0.017730712890625, 0.00868988037109375, 0.0247650146484375, -0.016876220703125, -0.021697998046875, 0.045928955078125, -0.0141448974609375, -0.0103912353515625, -0.0173492431640625, -0.0111083984375, -0.016632080078125, 0.0019273757934570312, -0.012603759765625, -0.0236663818359375, -0.030853271484375, -0.039093017578125, -0.06585693359375, -0.04345703125, -0.035491943359375, -0.0028858184814453125, -0.01555633544921875, -0.01172637939453125, 0.10211181640625, -0.01174163818359375, -0.10430908203125, -0.055389404296875, -0.004604339599609375, -0.031341552734375, 0.00897216796875, 0.027557373046875, -0.0160675048828125, -0.007274627685546875, 0.00432586669921875, -0.0211334228515625, 0.026336669921875, -0.0215911865234375, -0.0128021240234375, 0.007106781005859375, -0.0384521484375, 0.0158538818359375, 0.034637451171875, -0.003993988037109375, -0.0111541748046875, 0.031951904296875, -0.047515869140625, -0.0692138671875, 0.003574371337890625, -0.0784912109375, 0.01149749755859375, 0.0706787109375, -0.005489349365234375, -0.00827789306640625, -0.0109100341796875, 0.047027587890625, 0.0186309814453125, -0.0150604248046875, -0.0090789794921875, 0.04144287109375, 0.0280303955078125, 0.059417724609375, -0.012847900390625, 0.02099609375, -0.019683837890625, 0.037750244140625, 0.0223541259765625, 0.020477294921875, 0.024810791015625, -0.0164337158203125, -0.001373291015625, -0.07403564453125, 0.049896240234375, 0.00955963134765625, 0.0130767822265625, -0.0298919677734375, -0.02764892578125, 0.00667572021484375, 0.09197998046875, -0.005481719970703125, -0.045166015625, -0.040618896484375, -0.00022614002227783203, 0.031768798828125, -0.01369476318359375, 0.06146240234375, -0.0272369384765625, -0.01751708984375, -0.010650634765625, -0.020904541015625, -0.0107421875, -0.0056304931640625, -0.022369384765625, -0.00832366943359375, -0.0272216796875, 0.03741455078125, -0.035369873046875, 0.002689361572265625, 0.0183868408203125, -0.01534271240234375, -0.0158843994140625, -0.0197601318359375, -0.024383544921875, -0.05133056640625, -0.0102081298828125, 0.0024738311767578125, 0.01708984375, 0.0128936767578125, -0.039520263671875, 0.00033211708068847656, 0.0250701904296875, 0.042144775390625, 0.055450439453125, -0.0044097900390625, -0.029327392578125, 0.011138916015625, -0.020263671875, 0.0243682861328125, -0.0242462158203125, 0.016876220703125, 0.00838470458984375, -0.0167083740234375, 0.042877197265625, -0.027374267578125, 0.0026340484619140625, 0.00833892822265625, -0.0279998779296875, -0.049407958984375, -0.03692626953125, 0.022064208984375, 0.029815673828125, 0.0250091552734375, -0.01165771484375, -0.048980712890625, -0.0399169921875, 0.05364990234375, 0.026611328125, -0.02459716796875, 0.007354736328125, 0.08428955078125, 0.01346588134765625, -0.042694091796875, -0.10723876953125, 0.0187835693359375, 0.03057861328125, 0.02801513671875, 0.0172119140625, -0.005908966064453125, -0.0285491943359375, 0.053466796875, 0.01160430908203125, -0.047332763671875, -0.005725860595703125, 0.046142578125, -0.01105499267578125, -0.0438232421875, 0.01177215576171875, -0.049774169921875, 0.0660400390625, 0.025665283203125, -0.029296875, -0.033966064453125, -0.02532958984375, 0.07635498046875, -0.00232696533203125, 0.032684326171875, -0.06884765625, -0.014495849609375, -0.0010995864868164062, 0.0273590087890625, 0.016204833984375, 0.018341064453125, -0.005001068115234375, 0.0201568603515625, 0.028045654296875, 0.01351165771484375, 0.051483154296875, 0.05560302734375, -0.0089569091796875, 0.0369873046875, 0.03302001953125, -0.01149749755859375, 0.01534271240234375, 0.0092926025390625, 0.01861572265625, 0.0081024169921875, -0.03155517578125, -0.0256500244140625, 0.0017232894897460938, -0.0095367431640625, -0.0057220458984375, 0.00589752197265625, 0.03509521484375, -0.0023708343505859375, -0.01482391357421875, -0.007114410400390625, 0.0003941059112548828, -0.032989501953125, -0.0521240234375, -0.00534820556640625, 0.020599365234375, -0.03472900390625, 0.00440216064453125, 0.01280975341796875, 0.0258026123046875, -0.0222320556640625, -0.0139617919921875, 0.048797607421875, 0.059356689453125, 0.0057373046875, 0.001613616943359375, 0.043609619140625, -0.03509521484375, -0.00891876220703125, -0.00909423828125, -0.0220489501953125, -0.0340576171875, 0.0123748779296875, 0.0302276611328125, -0.0107574462890625, 0.00012731552124023438, 0.0165557861328125, -0.00766754150390625, 0.00853729248046875, -0.01313018798828125, -0.04669189453125, -0.01953125, -0.017547607421875, 0.00450897216796875, 0.0226287841796875, -0.007465362548828125, -0.0113525390625, 0.0160064697265625, -0.024444580078125, 0.0202484130859375, -0.00444793701171875, 0.00243377685546875, -0.01287841796875, -0.016937255859375, -0.0350341796875, -0.00030231475830078125, 0.02081298828125, -0.08746337890625, -0.0433349609375, 0.0011911392211914062, -0.004131317138671875, -0.017852783203125, -0.02447509765625, 0.035919189453125, 0.002605438232421875, -0.029937744140625, -0.00009989738464355469, 0.037445068359375, 0.007213592529296875, 0.0006990432739257812, -0.030517578125, -0.0203399658203125, -0.051971435546875, -0.020965576171875, -0.00112152099609375, -0.0285491943359375, -0.034423828125, 0.00965118408203125, 0.0043487548828125, 0.01611328125, -0.005764007568359375, -0.00042057037353515625, -0.027984619140625, 0.0295562744140625, 0.0185546875, 0.043731689453125, -0.0304718017578125, 0.051361083984375, 0.01025390625, 0.0599365234375, 0.007328033447265625, 0.031646728515625, 0.03900146484375, -0.042083740234375, 0.01513671875, -0.03125, -0.01885986328125, 0.0017957687377929688, -0.049224853515625, 0.005107879638671875, 0.046295166015625, 0.006099700927734375, 0.021148681640625, -0.061553955078125, -0.0008945465087890625, -0.033172607421875, 0.0469970703125, -0.072265625, -0.03314208984375, 0.032257080078125, -0.000051915645599365234, 0.0271759033203125, -0.01580810546875, -0.01464080810546875, 0.0108642578125, -0.007350921630859375, 0.016021728515625, -0.0006999969482421875, -0.00598907470703125, 0.04901123046875, 0.050048828125, 0.0051422119140625, 0.034210205078125, 0.020416259765625, 0.015289306640625, 0.005130767822265625, 0.01715087890625, -0.0035877227783203125, -0.032379150390625, 0.042694091796875, 0.01006317138671875, 0.0013532638549804688, 0.04705810546875, -0.0230712890625, -0.0025653839111328125, 0.0673828125, 0.0215911865234375, -0.09014892578125, -0.01024627685546875, -0.0173187255859375, 0.0019311904907226562, 0.02581787109375, -0.0233917236328125, 0.01287841796875, -0.044830322265625, 0.069091796875, 0.029693603515625, 0.00537109375, 0.0195159912109375, -0.035919189453125, -0.00820159912109375, 0.0003788471221923828, 0.0516357421875, -0.0023956298828125, 0.032012939453125, -0.036376953125, -0.038299560546875, 0.003940582275390625, -0.01535797119140625, 0.0053558349609375, -0.03863525390625, 0.0181121826171875, 0.0117950439453125, 0.04705810546875, -0.0732421875, 0.0452880859375, 0.0178375244140625, 0.037200927734375, -0.00405120849609375, 0.06256103515625, -0.025238037109375, 0.0302734375, 0.036285400390625, -0.0201873779296875, -0.02142333984375, -0.0184326171875, 0.00902557373046875, -0.01119232177734375, -0.02056884765625, 0.0172576904296875, -0.02490234375, -0.0298004150390625, -0.00836944580078125, 0.03033447265625, 0.08831787109375, -0.005199432373046875, -0.0285186767578125, 0.038238525390625, 0.0165252685546875, -0.02764892578125, 0.0136566162109375, -0.01042938232421875, -0.0168609619140625, -0.00728607177734375, 0.005901336669921875, -0.025054931640625, 0.0098876953125, 0.0176239013671875, -0.060760498046875, 0.10614013671875, 0.0107269287109375, 0.03179931640625, 0.01111602783203125, 0.054290771484375, -0.03570556640625, 0.03118896484375, -0.0243988037109375, 0.03143310546875, 0.0147857666015625, 0.035369873046875, -0.01467132568359375, -0.004730224609375, 0.020172119140625, 0.032470703125, 0.047271728515625, 0.0101318359375, 0.00725555419921875, -0.0164642333984375, 0.018402099609375, 0.00806427001953125, -0.0251007080078125, 0.01611328125, 0.00759124755859375, 0.0163116455078125, -0.003688812255859375, -0.036956787109375, 0.01537322998046875, -0.0265655517578125, -0.00856781005859375, 0.0250244140625, 0.005702972412109375, 0.0067596435546875, -0.00562286376953125, -0.0044403076171875, -0.0718994140625, -0.00278472900390625, 0.049713134765625, -0.014129638671875, 0.0016937255859375, 0.0301055908203125, 0.03192138671875, -0.05023193359375, -0.035980224609375, -0.0207672119140625, 0.047760009765625, 0.01113128662109375, 0.038665771484375, -0.0165557861328125, 0.00939178466796875, 0.050994873046875, -0.029998779296875, 0.00447845458984375, 0.02008056640625, -0.0216217041015625, 0.03546142578125, 0.01004791259765625, 0.0289306640625, -0.041473388671875, -0.0139923095703125, 0.0076904296875, 0.029876708984375, -0.0247344970703125, -0.04461669921875, 0.005855560302734375, 0.0160064697265625, -0.0109710693359375, -0.0016450881958007812, -0.00519561767578125, 0.046966552734375, 0.0804443359375, -0.01114654541015625, -0.006114959716796875, 0.01236724853515625, 0.00506591796875, -0.0190887451171875, -0.0130462646484375, -0.0007672309875488281, 0.011871337890625, -0.033233642578125, -0.0279388427734375, 0.0234527587890625, 0.0601806640625, 0.02960205078125, 0.0248260498046875, -0.01132965087890625, -0.031494140625, -0.0029010772705078125, 0.0018558502197265625, -0.028167724609375, 0.01386260986328125, -0.0115966796875, -0.0141754150390625, -0.011871337890625, 0.01824951171875, -0.0090484619140625, -0.025421142578125, 0.003459930419921875, 0.014129638671875, -0.004695892333984375, -0.0296478271484375, -0.032135009765625, -0.028961181640625, 0.029815673828125, -0.02783203125, -0.018524169921875, -0.04833984375, -0.0443115234375, -0.03497314453125, 0.010162353515625, -0.0150146484375, -0.00177001953125, -0.0017309188842773438, 0.01123809814453125, -0.042236328125, 0.037384033203125, -0.005611419677734375, 0.041168212890625, 0.017852783203125, -0.08990478515625, -0.0026397705078125, -0.030670166015625, -0.052734375, 0.04156494140625, 0.051727294921875, -0.039520263671875, 0.025909423828125, 0.00323486328125, 0.020294189453125, -0.00240325927734375, -0.0291290283203125, 0.0167694091796875, -0.00296783447265625, 0.0172882080078125, 0.0152740478515625, -0.061187744140625, -0.0439453125, -0.021331787109375, 0.06048583984375, 0.012908935546875, 0.0814208984375, -0.034210205078125, 0.0200347900390625, 0.031524658203125, 0.010284423828125, 0.0248870849609375, 0.02001953125, 0.046295166015625, 0.059661865234375, 0.020721435546875, -0.05816650390625, -0.0494384765625, 0.048980712890625, 0.019744873046875, -0.0045928955078125, 0.050537109375, -0.0116729736328125, -0.0072784423828125, -0.0152740478515625, 0.01568603515625, -0.026824951171875, -0.01215362548828125, -0.0251617431640625, -0.032073974609375, 0.0260772705078125, 0.0150146484375, 0.031890869140625, 0.054779052734375, -0.066162109375, -0.043731689453125, 0.0007810592651367188, -0.05810546875, -0.0167236328125, 0.0255584716796875, -0.006481170654296875, -0.07891845703125, 0.04595947265625, -0.0055694580078125, -0.02056884765625, 0.01334381103515625, 0.05804443359375, 0.040740966796875, -0.0582275390625, 0.0106353759765625, -0.035614013671875, -0.006099700927734375, -0.049560546875, -0.034759521484375, -0.0123443603515625, 0.0241851806640625, 0.01361083984375, -0.0014448165893554688, -0.022125244140625, -0.0347900390625, 0.016448974609375, 0.0209808349609375, 0.0027008056640625, 0.0011587142944335938, -0.040496826171875, 0.0173797607421875, 0.0040283203125, 0.0013704299926757812, -0.05322265625, 0.05706787109375, -0.024017333984375, 0.004505157470703125, -0.0062713623046875, -0.0166473388671875, 0.0035858154296875, 0.0015020370483398438, -0.0226898193359375, 0.031982421875, -0.034881591796875, -0.0177154541015625, 0.01210784912109375, -0.001987457275390625, 0.042938232421875, -0.0185699462890625, 0.004528045654296875, -0.0142364501953125, -0.004283905029296875, 0.04034423828125, -0.040191650390625, 0.007625579833984375, 0.050323486328125, -0.029083251953125, -0.02490234375, -0.09149169921875, -0.01078033447265625, -0.07000732421875, 0.0219879150390625, 0.01024627685546875, -0.0055999755859375, 0.028472900390625, -0.0286865234375, -0.0853271484375, 0.0312347412109375, -0.0123443603515625, -0.036834716796875, -0.049468994140625, 0.0230712890625, -0.00028443336486816406, -0.00009626150131225586, -0.021148681640625, 0.002902984619140625, -0.003345489501953125, 0.02471923828125, 0.0374755859375, 0.007171630859375, 0.047515869140625, 0.00759124755859375, -0.047454833984375, 0.00920867919921875, -0.0018901824951171875, 0.0303192138671875, -0.007049560546875, 0.00103759765625, 0.0184783935546875, 0.030303955078125, -0.0258636474609375, 0.028533935546875, 0.0194549560546875, -0.0037097930908203125, -0.00852203369140625, 0.01194000244140625, -0.0391845703125, -0.021759033203125, 0.07415771484375, 0.07159423828125, 0.0264739990234375, -0.0187225341796875, 0.0176544189453125, -0.02215576171875, -0.048004150390625, -0.016876220703125, 0.033782958984375, -0.0828857421875, -0.017120361328125, 0.02716064453125, -0.03240966796875, -0.004924774169921875, -0.01457977294921875, -0.053985595703125, 0.003856658935546875, -0.0246124267578125, 0.014129638671875, -0.06634521484375, 0.0665283203125, 0.0181884765625, -0.032928466796875, -0.01605224609375, -0.035736083984375, -0.0130157470703125, -0.022125244140625, -0.06695556640625, -0.00919342041015625, 0.035064697265625, -0.0628662109375, 0.0180511474609375, -0.0246734619140625, 0.032501220703125, -0.0697021484375, 0.007717132568359375, 0.0014896392822265625, 0.042327880859375, 0.00440216064453125, 0.046112060546875, -0.03106689453125, 0.064208984375, 0.00438690185546875, 0.0281524658203125, -0.002727508544921875, 0.0562744140625, -0.00260162353515625, 0.019195556640625, -0.0117340087890625, 0.000018894672393798828, 0.004367828369140625, -0.0012388229370117188, 0.01219940185546875, -0.0160064697265625, 0.0019779205322265625, -0.048614501953125, 0.02337646484375, -0.019287109375, -0.005611419677734375, 0.021820068359375 ]
f8b0c6cbd4f187bbd17add8b631476c12d2a5d6c
Wordpress Stackexchange Q: How to change user_login with wp-cli? How to change the username with wp-cli? This does not work: wp user update old_login --user-login=new_login A: search-replace does the trick but can have undesired side effects if old_login appears in other contexts in the database: wp search-replace old_login new_login But before doing that run wp sql dump wp search-replace old_login new_login --dry-run To make an SQL dump and see what is going to be replaced.
Q: How to change user_login with wp-cli? How to change the username with wp-cli? This does not work: wp user update old_login --user-login=new_login A: search-replace does the trick but can have undesired side effects if old_login appears in other contexts in the database: wp search-replace old_login new_login But before doing that run wp sql dump wp search-replace old_login new_login --dry-run To make an SQL dump and see what is going to be replaced. A: Not allowed by design: If we try to change the user login by the email: wp user update [email protected] --user_login=mary_new or by the user id: wp user update 123 --user_login=mary_new we get the following warning: User logins can't be changed. This is the reason: if ( isset( $assoc_args['user_login'] ) ) { WP_CLI::warning( "User logins can't be changed." ); unset( $assoc_args['user_login'] ); } within the user update method. Possible workarounds: Custom SQL queries: If we only want to target the wp_users table and the user_login field, it's possible to run the SQL query with: wp db query "UPDATE wp_users SET user_login = 'mary_new' WHERE user_login = 'mary'" But we have to make sure the user logins are unique. I experiented with this kind of query: wp db query "UPDATE wp_users u, ( SELECT COUNT(*) as number_of_same_login_users FROM wp_users u WHERE user_login = 'mary_new' ) tmp SET u.user_login = 'mary_new' WHERE u.user_login = 'mary_old' AND tmp.number_of_same_login_users = 0" to enforce the uniqueness of the user_login field, by only updating, if the no user has the same user login name. This unrelated answer helped me constructing an UPDATE with a subquery. Here's the same command in a single line: wp db query "UPDATE wp_users u, ( SELECT COUNT(*) as number_of_same_login_users FROM wp_users WHERE user_login = 'mary_new' ) tmp SET u.user_login = 'mary_new' WHERE u.user_login = 'mary_old' AND tmp.number_of_same_login_users = 0" but this is kind of query should be inside a custom command ;-) Note that the table prefix might be different than wp_. Custom WP-CLI commands: Like explained in the Commands Cookbook, it's possible to create custom WP-CLI commands. We might try to build a custom command like: WP_CLI::add_command( 'wpse_replace_user_login', 'WPSE_Replace_User_Login' ); or: WP_CLI::add_command( 'wpse_user', 'WPSE_User_Command' ); where WPSE_User_Command extends the User_Command class. This would need further work.
wordpress
{ "language": "en", "length": 369, "provenance": "stackexchange_00019.jsonl.gz:457006", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193495" }
[ 0.007022857666015625, -0.029693603515625, -0.00457763671875, -0.0108642578125, -0.0361328125, -0.042236328125, 0.0142669677734375, 0.01541900634765625, -0.01132965087890625, 0.0360107421875, 0.01248931884765625, 0.005687713623046875, 0.0003707408905029297, -0.017822265625, -0.0180206298828125, -0.033477783203125, 0.01169586181640625, -0.0030612945556640625, -0.004302978515625, -0.032745361328125, 0.0224456787109375, -0.006542205810546875, -0.006610870361328125, 0.03692626953125, 0.00818634033203125, -0.03204345703125, 0.0982666015625, -0.029296875, 0.03106689453125, -0.005859375, 0.01302337646484375, -0.0325927734375, -0.007480621337890625, 0.03533935546875, 0.00016379356384277344, -0.018646240234375, -0.0130157470703125, 0.0238494873046875, 0.032257080078125, -0.0152587890625, 0.0262298583984375, -0.01016998291015625, -0.041656494140625, 0.0007271766662597656, -0.041046142578125, -0.03399658203125, 0.021148681640625, 0.005367279052734375, 0.034393310546875, -0.0082550048828125, 0.0040740966796875, 0.0180816650390625, 0.0155181884765625, 0.0004520416259765625, -0.0065765380859375, 0.01922607421875, -0.0188446044921875, 0.031646728515625, 0.0330810546875, 0.0102996826171875, -0.0220489501953125, 0.0026721954345703125, 0.01332855224609375, -0.034942626953125, 0.00769805908203125, -0.00971221923828125, 0.0162200927734375, 0.013916015625, -0.02923583984375, 0.01047515869140625, 0.0311737060546875, -0.0159759521484375, -0.002170562744140625, 0.0122528076171875, 0.011077880859375, 0.004608154296875, 0.0118865966796875, 0.036285400390625, 0.01039886474609375, 0.034393310546875, 0.042449951171875, 0.025543212890625, -0.0224609375, -0.0150146484375, 0.03619384765625, 0.01395416259765625, -0.008148193359375, -0.03631591796875, 0.00865936279296875, -0.00830078125, -0.0017910003662109375, -0.01323699951171875, -0.019775390625, 0.03314208984375, -0.01522064208984375, -0.025390625, -0.001983642578125, 0.0037441253662109375, -0.029541015625, -0.0148162841796875, -0.0067901611328125, -0.0166015625, -0.016143798828125, 0.012786865234375, -0.0121002197265625, 0.070068359375, 0.058258056640625, 0.06341552734375, 0.004268646240234375, -0.0205841064453125, 0.006122589111328125, 0.02154541015625, -0.0266265869140625, -0.0210723876953125, -0.00013947486877441406, 0.057403564453125, -0.0287933349609375, 0.037109375, -0.0200347900390625, 0.06488037109375, -0.014678955078125, -0.0012531280517578125, -0.0191802978515625, 0.02374267578125, -0.0262603759765625, -0.0308074951171875, 0.007801055908203125, 0.010284423828125, -0.03558349609375, -0.0004589557647705078, -0.0269622802734375, 0.0139923095703125, 0.06378173828125, 0.05010986328125, 0.0088348388671875, -0.0131072998046875, 0.0122528076171875, -0.00628662109375, -0.005260467529296875, 0.048126220703125, -0.0173492431640625, -0.07342529296875, -0.01432037353515625, -0.0023136138916015625, 0.06488037109375, 0.021575927734375, 0.0174713134765625, -0.0037784576416015625, -0.002002716064453125, -0.007228851318359375, 0.0277099609375, -0.01535797119140625, -0.04974365234375, 0.048583984375, 0.07147216796875, 0.033843994140625, 0.05474853515625, -0.01324462890625, 0.0247650146484375, 0.0193634033203125, 0.0007596015930175781, 0.0169830322265625, 0.03753662109375, 0.03143310546875, -0.0010023117065429688, -0.01290130615234375, -0.0219268798828125, -0.00334930419921875, 0.033966064453125, 0.01947021484375, 0.017974853515625, 0.0034389495849609375, 0.042999267578125, 0.018585205078125, 0.0018930435180664062, 0.00254058837890625, -0.03460693359375, 0.06011962890625, 0.0187835693359375, -0.004848480224609375, 0.00980377197265625, -0.03021240234375, 0.045806884765625, 0.01502227783203125, -0.018524169921875, -0.0304412841796875, 0.01470947265625, 0.0195465087890625, 0.0345458984375, 0.017547607421875, 0.025054931640625, -0.005096435546875, -0.03271484375, 0.0195770263671875, -0.011505126953125, -0.0216522216796875, -0.01477813720703125, -0.0027027130126953125, -0.022216796875, 0.00949859619140625, 0.03253173828125, 0.0021343231201171875, -0.018524169921875, -0.0256500244140625, -0.1015625, -0.00601959228515625, -0.028656005859375, 0.0318603515625, 0.00849151611328125, -0.006099700927734375, -0.002361297607421875, -0.0033664703369140625, 0.00653839111328125, -0.04913330078125, -0.046478271484375, 0.006622314453125, -0.045623779296875, 0.0279541015625, -0.008941650390625, 0.0726318359375, -0.039947509765625, -0.0018138885498046875, -0.0311279296875, -0.058990478515625, -0.0195770263671875, -0.02459716796875, 0.00005060434341430664, -0.0183868408203125, -0.0018558502197265625, -0.022186279296875, 0.051788330078125, 0.0255584716796875, 0.02264404296875, 0.0252685546875, -0.04107666015625, -0.015869140625, -0.01010894775390625, -0.0428466796875, 0.0114288330078125, 0.043212890625, 0.042236328125, -0.006267547607421875, 0.00469207763671875, -0.005794525146484375, 0.0289459228515625, 0.021942138671875, 0.049468994140625, -0.028228759765625, -0.002407073974609375, 0.060699462890625, -0.027008056640625, -0.002567291259765625, 0.01349639892578125, -0.0263824462890625, -0.017669677734375, 0.049285888671875, 0.008331298828125, 0.00727081298828125, -0.04815673828125, 0.0281829833984375, -0.0110321044921875, -0.04571533203125, -0.0202484130859375, -0.010040283203125, 0.0029621124267578125, -0.040496826171875, -0.013031005859375, -0.03662109375, -0.015716552734375, -0.01316070556640625, 0.044097900390625, -0.053619384765625, 0.019989013671875, -0.00998687744140625, -0.0228118896484375, 0.025726318359375, -0.0073394775390625, -0.01200103759765625, 0.01812744140625, -0.0031909942626953125, -0.003173828125, -0.006866455078125, 0.00812530517578125, -0.0037403106689453125, 0.025787353515625, 0.004459381103515625, 0.0263824462890625, 0.0219268798828125, 0.00016188621520996094, -0.0289154052734375, 0.00879669189453125, 0.00681304931640625, -0.01922607421875, 0.050689697265625, -0.020111083984375, -0.043731689453125, 0.009796142578125, -0.0005283355712890625, -0.0029850006103515625, 0.00876617431640625, 0.0247802734375, 0.047332763671875, 0.0307159423828125, -0.0215911865234375, 0.0027751922607421875, 0.00995635986328125, 0.0176849365234375, 0.00464630126953125, 0.0012378692626953125, -0.001880645751953125, -0.0089874267578125, 0.0281524658203125, 0.012054443359375, 0.015869140625, -0.003742218017578125, -0.02642822265625, -0.017303466796875, 0.00911712646484375, -0.04449462890625, -0.02606201171875, -0.09765625, -0.061431884765625, 0.0190277099609375, 0.0014781951904296875, -0.0120086669921875, 0.035888671875, 0.01947021484375, 0.029144287109375, 0.094482421875, -0.051910400390625, -0.0264129638671875, -0.0271453857421875, -0.069580078125, -0.03466796875, 0.016754150390625, -0.011474609375, -0.00598907470703125, 0.046966552734375, -0.002109527587890625, -0.0204620361328125, -0.0225067138671875, 0.05560302734375, 0.0014333724975585938, -0.043792724609375, 0.02215576171875, -0.05181884765625, 0.033203125, -0.0134429931640625, 0.04486083984375, 0.027435302734375, -0.00968170166015625, 0.004486083984375, 0.0164794921875, -0.0751953125, 0.02783203125, -0.00855255126953125, -0.054290771484375, -0.0292816162109375, 0.0242767333984375, -0.0673828125, 0.026397705078125, -0.00872039794921875, -0.00006836652755737305, 0.00991058349609375, -0.01678466796875, -0.01189422607421875, 0.017608642578125, -0.00859832763671875, -0.007175445556640625, 0.0048065185546875, -0.009735107421875, -0.00778961181640625, 0.01319122314453125, -0.01953125, -0.0165252685546875, 0.0102691650390625, 0.012786865234375, -0.04345703125, -0.056365966796875, -0.0215606689453125, -0.027191162109375, -0.003879547119140625, -0.0168609619140625, 0.0183258056640625, -0.0760498046875, 0.048309326171875, -0.02960205078125, 0.0022220611572265625, -0.061767578125, -0.02978515625, -0.023529052734375, 0.11114501953125, -0.021942138671875, -0.0248260498046875, 0.03826904296875, 0.036163330078125, -0.07647705078125, -0.00827789306640625, -0.0570068359375, -0.0023708343505859375, -0.054168701171875, -0.03436279296875, -0.0008511543273925781, -0.03887939453125, -0.004241943359375, 0.003360748291015625, -0.036834716796875, -0.027618408203125, 0.0273590087890625, 0.0310516357421875, 0.0304107666015625, -0.0275726318359375, 0.0103759765625, -0.0233154296875, 0.0008311271667480469, 0.00917816162109375, -0.09063720703125, -0.0018758773803710938, -0.0557861328125, 0.07177734375, 0.043182373046875, -0.028564453125, -0.03045654296875, 0.0175018310546875, 0.00778961181640625, 0.0072479248046875, -0.01116180419921875, -0.033447265625, 0.0221405029296875, 0.042388916015625, -0.012115478515625, 0.02935791015625, -0.016845703125, -0.06011962890625, -0.0264739990234375, -0.01470947265625, -0.01898193359375, 0.04534912109375, -0.0183258056640625, 0.0203094482421875, -0.03778076171875, -0.045623779296875, -0.01190185546875, 0.004917144775390625, -0.005420684814453125, 0.0145111083984375, -0.05450439453125, -0.01904296875, 0.0841064453125, 0.0308990478515625, 0.0013027191162109375, -0.0254058837890625, 0.061767578125, 0.0008015632629394531, -0.05169677734375, 0.016815185546875, 0.0139923095703125, 0.0093231201171875, 0.006893157958984375, 0.0452880859375, -0.009307861328125, 0.0022029876708984375, 0.042144775390625, -0.009521484375, 0.0005326271057128906, 0.018157958984375, -0.003131866455078125, 0.01306915283203125, -0.0406494140625, 0.0288238525390625, 0.005977630615234375, -0.0201873779296875, 0.01904296875, 0.005802154541015625, -0.007659912109375, -0.0009946823120117188, 0.002872467041015625, 0.0094757080078125, -0.0265655517578125, -0.018798828125, -0.0860595703125, 0.031524658203125, -0.041290283203125, -0.039337158203125, -0.015350341796875, -0.00820159912109375, 0.0104522705078125, -0.0262298583984375, -0.01947021484375, -0.07452392578125, -0.04937744140625, -0.046600341796875, -0.0019893646240234375, -0.069091796875, -0.0309600830078125, -0.02972412109375, -0.034698486328125, 0.14013671875, 0.0160064697265625, -0.06549072265625, 0.06787109375, -0.03887939453125, 0.0099334716796875, 0.044464111328125, 0.00860595703125, 0.026702880859375, -0.045501708984375, -0.0306243896484375, -0.03564453125, -0.00795745849609375, -0.06939697265625, -0.052001953125, 0.00560760498046875, 0.00775146484375, -0.01483154296875, 0.0216522216796875, 0.0193939208984375, 0.014373779296875, 0.0026836395263671875, -0.0157012939453125, 0.029083251953125, 0.0318603515625, -0.01059722900390625, 0.01812744140625, 0.026885986328125, -0.01068878173828125, -0.031280517578125, 0.006824493408203125, -0.002040863037109375, 0.01432037353515625, 0.049591064453125, 0.019744873046875, 0.03973388671875, 0.01605224609375, -0.040283203125, -0.021728515625, 0.0242919921875, 0.0182037353515625, -0.031951904296875, -0.046173095703125, -0.01494598388671875, 0.024749755859375, 0.043182373046875, -0.059844970703125, -0.00637054443359375, -0.032562255859375, -0.06207275390625, -0.0309600830078125, 0.05877685546875, -0.029022216796875, -0.0361328125, -0.04620361328125, -0.031768798828125, -0.019012451171875, -0.0082550048828125, 0.0287933349609375, 0.0169219970703125, -0.0231475830078125, -0.035369873046875, 0.0300750732421875, 0.010772705078125, 0.0061187744140625, -0.01873779296875, 0.00007677078247070312, 0.01434326171875, -0.00885772705078125, 0.05145263671875, -0.002101898193359375, -0.0213775634765625, -0.0013828277587890625, -0.0186614990234375, -0.00696563720703125, 0.005306243896484375, -0.0203399658203125, -0.04937744140625, -0.0296783447265625, 0.035491943359375, 0.00673675537109375, 0.009368896484375, 0.0007991790771484375, -0.0082550048828125, 0.0164642333984375, 0.0176239013671875, 0.02001953125, -0.02264404296875, 0.0124969482421875, 0.0226898193359375, 0.007045745849609375, -0.00437164306640625, -0.004497528076171875, -0.0010471343994140625, 0.0036640167236328125, -0.00043702125549316406, 0.037017822265625, 0.005344390869140625, -0.0270843505859375, 0.0289306640625, -0.0299224853515625, 0.057830810546875, -0.00698089599609375, 0.0049896240234375, -0.001495361328125, -0.0002777576446533203, -0.0207672119140625, 0.01428985595703125, -0.01500701904296875, -0.00341796875, 0.0006403923034667969, -0.0002321004867553711, 0.026092529296875, -0.00936126708984375, -0.0099945068359375, -0.004932403564453125, 0.004650115966796875, -0.0168304443359375, 0.0301361083984375, -0.045806884765625, 0.0401611328125, 0.0499267578125, -0.0025806427001953125, 0.034027099609375, -0.0094146728515625, 0.0169830322265625, 0.040771484375, -0.056854248046875, -0.0018911361694335938, 0.05206298828125, 0.056976318359375, -0.0052642822265625, -0.00492095947265625, 0.04913330078125, -0.03515625, 0.03094482421875, 0.0738525390625, 0.063720703125, -0.1268310546875, 0.0260467529296875, -0.0109405517578125, 0.0247039794921875, 0.0863037109375, 0.042083740234375, -0.0193939208984375, -0.01544189453125, 0.0123443603515625, -0.045440673828125, -0.00133514404296875, 0.00728607177734375, 0.01366424560546875, -0.01036834716796875, -0.0031890869140625, -0.006404876708984375, 0.00980377197265625, -0.00043129920959472656, 0.01503753662109375, 0.0095672607421875, 0.035369873046875, -0.0173492431640625, -0.00945281982421875, 0.0171051025390625, -0.0335693359375, -0.060943603515625, 0.005908966064453125, -0.022857666015625, -0.023895263671875, 0.033935546875, 0.025238037109375, 0.09222412109375, 0.03802490234375, 0.03265380859375, -0.0242156982421875, -0.0008983612060546875, 0.03192138671875, 0.0234832763671875, -0.0161590576171875, 0.004390716552734375, 0.02728271484375, -0.0679931640625, 0.007564544677734375, -0.038330078125, 0.01727294921875, -0.0167388916015625, -0.053863525390625, 0.050323486328125, -0.0020389556884765625, -0.0137176513671875, 0.019683837890625, 0.004642486572265625, -0.007022857666015625, 0.012176513671875, -0.0011262893676757812, -0.05340576171875, -0.0516357421875, 0.0139312744140625, -0.06439208984375, 0.016632080078125, 0.03143310546875, -0.0765380859375, 0.0770263671875, 0.0263519287109375, 0.0357666015625, -0.006084442138671875, 0.0170135498046875, -0.0170745849609375, 0.0025844573974609375, -0.0281829833984375, 0.0552978515625, -0.002628326416015625, 0.04974365234375, 0.01555633544921875, 0.0030155181884765625, 0.052978515625, -0.00295257568359375, 0.0275726318359375, 0.01251983642578125, -0.0217437744140625, -0.04473876953125, -0.021453857421875, 0.00109100341796875, -0.0035076141357421875, 0.0408935546875, 0.00965118408203125, 0.03948974609375, 0.0162506103515625, -0.0249481201171875, 0.03033447265625, -0.0240325927734375, -0.04766845703125, 0.033050537109375, 0.0207672119140625, 0.0157318115234375, -0.0011653900146484375, 0.0638427734375, -0.064453125, 0.005100250244140625, 0.037567138671875, 0.026397705078125, 0.01558685302734375, -0.0185699462890625, -0.037261962890625, 0.019317626953125, 0.00914764404296875, -0.015869140625, 0.00800323486328125, -0.0106353759765625, -0.00527191162109375, 0.0103912353515625, 0.01355743408203125, 0.002349853515625, -0.0175323486328125, -0.01220703125, 0.01934814453125, -0.0002841949462890625, 0.061676025390625, 0.055267333984375, 0.058746337890625, 0.0037631988525390625, 0.03167724609375, 0.022491455078125, 0.05908203125, -0.0419921875, -0.040069580078125, 0.0220184326171875, 0.025299072265625, 0.0249176025390625, 0.0197601318359375, 0.046600341796875, -0.038787841796875, 0.019317626953125, -0.01021575927734375, 0.026458740234375, 0.042724609375, -0.020111083984375, 0.0126495361328125, 0.03778076171875, -0.044769287109375, 0.0416259765625, -0.0181121826171875, 0.026336669921875, 0.01514434814453125, -0.009124755859375, -0.00479888916015625, 0.021240234375, 0.035369873046875, 0.007488250732421875, -0.00551605224609375, -0.0022830963134765625, -0.006011962890625, 0.016571044921875, -0.0164031982421875, -0.0207672119140625, -0.0032501220703125, 0.0316162109375, -0.0027484893798828125, 0.027191162109375, 0.032958984375, 0.03106689453125, -0.0305938720703125, -0.0183868408203125, 0.04644775390625, -0.02239990234375, 0.044952392578125, 0.0252838134765625, 0.022003173828125, 0.0025424957275390625, -0.02972412109375, -0.0650634765625, 0.07891845703125, 0.00969696044921875, -0.01554107666015625, 0.0557861328125, -0.00885009765625, -0.0245208740234375, 0.0218658447265625, -0.002872467041015625, 0.06842041015625, 0.01934814453125, -0.0196990966796875, -0.01331329345703125, -0.01154327392578125, 0.0007290840148925781, 0.01611328125, 0.028961181640625, 0.038330078125, -0.0157928466796875, -0.010467529296875, -0.0032939910888671875, -0.01036834716796875, 0.018341064453125, 0.00875091552734375, -0.00814056396484375, 0.01233673095703125, -0.01025390625, -0.056732177734375, -0.031585693359375, -0.0303497314453125, 0.0247344970703125, 0.01308441162109375, 0.00763702392578125, 0.012542724609375, 0.030059814453125, -0.04437255859375, -0.0033550262451171875, -0.042236328125, -0.036376953125, 0.008270263671875, -0.0169830322265625, -0.0297698974609375, 0.013458251953125, -0.037384033203125, 0.078369140625, -0.01403045654296875, 0.042572021484375, 0.07342529296875, -0.053924560546875, -0.0010814666748046875, 0.00514984130859375, -0.045806884765625, -0.038055419921875, -0.01629638671875, 0.0162353515625, 0.01129150390625, -0.0016927719116210938, -0.0274505615234375, -0.0219879150390625, 0.040557861328125, 0.0014591217041015625, 0.004238128662109375, -0.01488494873046875, -0.009490966796875, -0.018890380859375, 0.0229644775390625, -0.006954193115234375, 0.037933349609375, -0.0462646484375, -0.0430908203125, 0.01042938232421875, -0.00916290283203125, -0.0304107666015625, -0.019012451171875, -0.005428314208984375, -0.015777587890625, 0.0133514404296875, 0.0400390625, 0.01275634765625, 0.013519287109375, -0.031982421875, -0.00905609130859375, 0.01557159423828125, -0.071044921875, -0.036651611328125, -0.037689208984375, -0.01042938232421875, 0.0177764892578125, -0.023468017578125, -0.050933837890625, -0.0372314453125, 0.0018739700317382812, 0.0287933349609375, -0.0030956268310546875, -0.04595947265625, 0.03546142578125, -0.023193359375, -0.0202178955078125, 0.00013244152069091797, -0.09014892578125, 0.0269012451171875, 0.0465087890625, -0.00789642333984375, -0.03326416015625, -0.046295166015625, -0.027313232421875, -0.046661376953125, -0.0185699462890625, 0.018341064453125, 0.020355224609375, -0.0162811279296875, -0.0318603515625, -0.057220458984375, 0.01490020751953125, -0.06298828125, -0.00930023193359375, 0.00325775146484375, 0.0131072998046875, 0.0033779144287109375, -0.08489990234375, -0.014892578125, -0.0521240234375, 0.007335662841796875, -0.01488494873046875, -0.0202178955078125, -0.0214080810546875, -0.056060791015625, -0.0843505859375, 0.025238037109375, 0.003864288330078125, -0.0306396484375, -0.04296875, 0.0015554428100585938, -0.005786895751953125, 0.005672454833984375, -0.0195770263671875, -0.0341796875, -0.02691650390625, 0.051513671875, -0.00643157958984375, 0.0211181640625, -0.0119781494140625, -0.009552001953125, -0.007076263427734375, 0.0245819091796875, 0.039459228515625, 0.005184173583984375, 0.0182342529296875, 0.0035552978515625, 0.017242431640625, 0.032562255859375, -0.01812744140625, 0.018707275390625, -0.0170135498046875, -0.029205322265625, -0.01094818115234375, -0.0307159423828125, -0.0144500732421875, -0.008453369140625, 0.0616455078125, 0.030120849609375, 0.00974273681640625, -0.0216827392578125, -0.0552978515625, -0.03857421875, 0.0404052734375, -0.01910400390625, 0.007610321044921875, -0.07733154296875, -0.0081787109375, 0.0159759521484375, 0.005168914794921875, -0.01959228515625, 0.018768310546875, -0.00957489013671875, -0.0194854736328125, 0.042022705078125, -0.0130157470703125, 0.01374053955078125, -0.00611114501953125, 0.0926513671875, -0.054412841796875, -0.0179290771484375, 0.0144500732421875, 0.006931304931640625, 0.037200927734375, -0.034454345703125, 0.0003261566162109375, -0.010009765625, 0.0066986083984375, 0.0203399658203125, 0.0117034912109375, -0.00046062469482421875, -0.007419586181640625, -0.0163116455078125, -0.016204833984375, 0.01329803466796875, -0.01290130615234375, 0.0084381103515625, 0.007526397705078125, 0.02740478515625, 0.013214111328125, 0.047149658203125, -0.006618499755859375, -0.03131103515625, -0.0421142578125, 0.027252197265625, -0.0008997917175292969, -0.0194854736328125, 0.004680633544921875, 0.03448486328125, 0.0025997161865234375, 0.010498046875, 0.012481689453125, -0.0517578125, 0.04315185546875, 0.04986572265625, 0.0121917724609375, 0.02337646484375 ]
87ce36d848d48e036d9453adcb56885617e60802
Wordpress Stackexchange Q: How does WordPress Multisite know that a Plugin is installed? I am running a WP Multisite Network. I am curious to know how WordPress knows that a plugin is installed on a network site: * *how does WP know that a plugin is Network Activated? *how does WP know that a plugin is activated at the site level? Does it record this instance in a DB Table somewhere? If so, which table and how is it tagged? Thanks for helping. A: You can clearly see the way WordPress loads plugins if you inspect the source code of the file wp-settings.php. The function wp_get_active_and_valid_plugins() loads plugins for individual sites in the network and for non-Multi-Site installations, while wp_get_active_network_plugins() loads network activated plugins when Multi-Site is enabled. The former more or less just calls get_option() to get the active_plugins option from the wp_options database table, while the latter uses get_site_option() which is the network-wide version of get_option(). The option which has the network enabled plugins is called active_sitewide_plugins.
Q: How does WordPress Multisite know that a Plugin is installed? I am running a WP Multisite Network. I am curious to know how WordPress knows that a plugin is installed on a network site: * *how does WP know that a plugin is Network Activated? *how does WP know that a plugin is activated at the site level? Does it record this instance in a DB Table somewhere? If so, which table and how is it tagged? Thanks for helping. A: You can clearly see the way WordPress loads plugins if you inspect the source code of the file wp-settings.php. The function wp_get_active_and_valid_plugins() loads plugins for individual sites in the network and for non-Multi-Site installations, while wp_get_active_network_plugins() loads network activated plugins when Multi-Site is enabled. The former more or less just calls get_option() to get the active_plugins option from the wp_options database table, while the latter uses get_site_option() which is the network-wide version of get_option(). The option which has the network enabled plugins is called active_sitewide_plugins.
wordpress
{ "language": "en", "length": 167, "provenance": "stackexchange_00019.jsonl.gz:457051", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193634" }
[ 0.03912353515625, 0.0168914794921875, 0.004547119140625, -0.027313232421875, 0.016265869140625, -0.0172882080078125, 0.0223388671875, -0.0306243896484375, 0.01055908203125, -0.009521484375, -0.041168212890625, 0.017181396484375, -0.045501708984375, -0.02923583984375, 0.0152435302734375, -0.041290283203125, 0.039459228515625, 0.002895355224609375, -0.008697509765625, 0.002185821533203125, -0.02105712890625, 0.04351806640625, -0.031402587890625, 0.07354736328125, 0.016815185546875, -0.0183563232421875, 0.1007080078125, -0.021697998046875, 0.047515869140625, -0.0036106109619140625, 0.03570556640625, -0.0245361328125, 0.01145172119140625, 0.0248565673828125, -0.0032062530517578125, -0.0662841796875, 0.012725830078125, -0.005573272705078125, -0.00756072998046875, 0.052642822265625, 0.029876708984375, -0.0147552490234375, 0.08319091796875, -0.007495880126953125, 0.032806396484375, -0.034515380859375, 0.070556640625, -0.035186767578125, 0.0024871826171875, -0.018310546875, 0.00966644287109375, -0.0183258056640625, 0.0418701171875, -0.07073974609375, -0.035858154296875, -0.051422119140625, -0.022918701171875, 0.060791015625, 0.017578125, 0.0266571044921875, -0.01453399658203125, 0.0408935546875, -0.006622314453125, -0.0275726318359375, 0.0232391357421875, -0.01513671875, 0.01470184326171875, 0.03497314453125, -0.052978515625, -0.0019292831420898438, 0.0279693603515625, -0.022918701171875, 0.021881103515625, 0.02313232421875, -0.0367431640625, -0.07098388671875, 0.0219573974609375, -0.0265655517578125, 0.0211639404296875, -0.0190887451171875, 0.043731689453125, 0.0276336669921875, 0.008514404296875, -0.0213165283203125, 0.0272979736328125, 0.028778076171875, 0.007389068603515625, -0.03033447265625, -0.0272216796875, 0.0032176971435546875, -0.03204345703125, 0.0364990234375, -0.0031108856201171875, -0.005126953125, -0.041259765625, 0.0239410400390625, 0.03692626953125, 0.0703125, -0.012298583984375, -0.032379150390625, -0.004199981689453125, -0.039947509765625, -0.0007014274597167969, -0.034576416015625, -0.0113677978515625, 0.04766845703125, 0.0166778564453125, -0.000896453857421875, 0.006526947021484375, 0.007640838623046875, -0.0043792724609375, -0.010589599609375, -0.004032135009765625, -0.00514984130859375, -0.03765869140625, -0.01409149169921875, -0.025604248046875, -0.008270263671875, -0.0027008056640625, -0.024261474609375, 0.0174102783203125, 0.0242919921875, -0.018524169921875, -0.0165557861328125, -0.0103759765625, -0.0249786376953125, -0.0254364013671875, -0.00061798095703125, -0.09014892578125, 0.0223388671875, -0.03155517578125, 0.021697998046875, 0.047332763671875, 0.0208587646484375, -0.0198822021484375, -0.0213775634765625, 0.014251708984375, 0.061004638671875, 0.0093536376953125, -0.0017309188842773438, 0.0278778076171875, -0.0361328125, -0.02850341796875, 0.01641845703125, 0.0241851806640625, -0.0004062652587890625, 0.023773193359375, 0.028167724609375, -0.006084442138671875, 0.0274658203125, 0.01367950439453125, 0.019134521484375, 0.005279541015625, 0.019134521484375, 0.036956787109375, -0.0110015869140625, 0.060272216796875, -0.024749755859375, -0.0076141357421875, -0.0269012451171875, -0.0057220458984375, -0.01727294921875, 0.0185089111328125, -0.0117645263671875, -0.0169677734375, 0.015777587890625, -0.0269622802734375, 0.0036945343017578125, 0.0229644775390625, 0.00341033935546875, 0.0009975433349609375, -0.0298919677734375, 0.02069091796875, 0.0294342041015625, 0.00904083251953125, 0.03863525390625, 0.00437164306640625, 0.0140228271484375, 0.056488037109375, 0.0004391670227050781, -0.0267181396484375, 0.0014486312866210938, 0.142578125, -0.0550537109375, -0.045654296875, 0.0097808837890625, 0.00628662109375, 0.0307159423828125, 0.01103973388671875, 0.0083465576171875, 0.054412841796875, 0.0006723403930664062, 0.003993988037109375, -0.0203704833984375, 0.01297760009765625, 0.00789642333984375, -0.01934814453125, 0.035614013671875, -0.0019388198852539062, -0.0426025390625, 0.0238189697265625, -0.002147674560546875, 0.031494140625, -0.03814697265625, -0.042327880859375, -0.00978851318359375, -0.01105499267578125, 0.03704833984375, 0.0543212890625, -0.00740814208984375, -0.021331787109375, 0.00464630126953125, 0.0259246826171875, -0.10076904296875, -0.061370849609375, 0.045013427734375, -0.046142578125, 0.045257568359375, 0.00832366943359375, 0.0113067626953125, -0.01003265380859375, -0.00848388671875, 0.002254486083984375, -0.0382080078125, 0.006198883056640625, 0.0263519287109375, -0.038909912109375, 0.024078369140625, 0.0034847259521484375, 0.0313720703125, 0.024444580078125, 0.0073089599609375, -0.01528167724609375, 0.010772705078125, -0.0036602020263671875, -0.0136566162109375, 0.03167724609375, -0.052978515625, 0.039215087890625, 0.02081298828125, 0.03961181640625, 0.0299835205078125, -0.0016584396362304688, 0.015716552734375, -0.014923095703125, -0.07391357421875, 0.0115203857421875, -0.0036373138427734375, 0.02166748046875, 0.07379150390625, -0.042236328125, -0.0009479522705078125, 0.0179290771484375, 0.00980377197265625, -0.0246124267578125, 0.041107177734375, -0.00621795654296875, -0.039886474609375, -0.02325439453125, 0.0280609130859375, 0.0179595947265625, 0.038543701171875, -0.01509857177734375, 0.02691650390625, 0.034576416015625, 0.00732421875, 0.029754638671875, 0.020416259765625, -0.005893707275390625, -0.0003247261047363281, 0.0042877197265625, -0.03338623046875, -0.008941650390625, 0.0154876708984375, 0.0352783203125, 0.011932373046875, -0.036834716796875, -0.0154876708984375, 0.01262664794921875, 0.007503509521484375, -0.059326171875, -0.0341796875, -0.054443359375, -0.020355224609375, -0.01043701171875, -0.04205322265625, 0.022369384765625, -0.0175018310546875, -0.034423828125, -0.0027065277099609375, 0.029754638671875, 0.024749755859375, -0.018585205078125, 0.007843017578125, 0.00627899169921875, -0.0005245208740234375, -0.0302276611328125, -0.04296875, 0.024810791015625, -0.016204833984375, 0.0323486328125, 0.0838623046875, 0.030120849609375, -0.00812530517578125, -0.01690673828125, 0.00118255615234375, 0.00583648681640625, -0.032989501953125, -0.040374755859375, 0.00882720947265625, -0.0909423828125, 0.004192352294921875, -0.0012178421020507812, -0.014801025390625, -0.0308380126953125, -0.0511474609375, -0.031585693359375, -0.04736328125, -0.10247802734375, -0.0308837890625, -0.037139892578125, -0.0628662109375, 0.0672607421875, -0.038818359375, 0.00865936279296875, -0.028076171875, -0.0215301513671875, 0.03973388671875, -0.06329345703125, -0.04022216796875, -0.0153350830078125, -0.0836181640625, -0.049041748046875, -0.002655029296875, 0.01317596435546875, 0.0157012939453125, 0.01168060302734375, 0.03753662109375, 0.01690673828125, -0.0014677047729492188, 0.01800537109375, -0.02020263671875, -0.02679443359375, -0.0338134765625, -0.01078033447265625, -0.0216064453125, -0.005603790283203125, 0.00579833984375, -0.0189666748046875, 0.00008362531661987305, 0.015899658203125, -0.0174713134765625, 0.04925537109375, -0.0029144287109375, 0.041900634765625, -0.024993896484375, -0.0523681640625, -0.0057220458984375, -0.0189971923828125, -0.06170654296875, 0.0279693603515625, -0.01158905029296875, -0.01092529296875, 0.023681640625, -0.01873779296875, -0.0091552734375, 0.036834716796875, -0.0231170654296875, 0.006839752197265625, -0.0100860595703125, 0.0129241943359375, -0.049652099609375, 0.064697265625, 0.0022125244140625, 0.007320404052734375, -0.02032470703125, 0.038909912109375, -0.017547607421875, 0.009124755859375, -0.000766754150390625, -0.011322021484375, -0.03643798828125, 0.01270294189453125, -0.06451416015625, 0.01190185546875, 0.0192108154296875, -0.01338958740234375, 0.004283905029296875, -0.0023441314697265625, -0.0231781005859375, -0.00799560546875, 0.052581787109375, -0.03955078125, -0.0019588470458984375, -0.01502227783203125, -0.00849151611328125, 0.005359649658203125, -0.01192474365234375, -0.051025390625, -0.00760650634765625, -0.0753173828125, 0.0140228271484375, 0.0015535354614257812, -0.045166015625, -0.006221771240234375, -0.004241943359375, -0.05767822265625, -0.0234832763671875, 0.0233306884765625, -0.016845703125, 0.01280975341796875, 0.004413604736328125, -0.0032634735107421875, -0.0218505859375, -0.00789642333984375, -0.032196044921875, -0.0208740234375, 0.0164794921875, -0.060211181640625, 0.01514434814453125, 0.023651123046875, 0.0156707763671875, -0.0096435546875, 0.01181793212890625, 0.01230621337890625, 0.044403076171875, -0.0158233642578125, -0.01055145263671875, -0.002597808837890625, -0.0026950836181640625, 0.0168914794921875, -0.0191497802734375, 0.0184783935546875, 0.013214111328125, -0.0556640625, -0.0010423660278320312, -0.01177978515625, -0.0214691162109375, 0.0460205078125, -0.0560302734375, 0.0074920654296875, -0.0003268718719482422, -0.0272979736328125, 0.0184326171875, -0.0186920166015625, -0.0126495361328125, 0.0017795562744140625, -0.006343841552734375, 0.036163330078125, -0.0574951171875, 0.007476806640625, 0.008026123046875, 0.12359619140625, 0.022979736328125, 0.0190582275390625, -0.0176544189453125, 0.037322998046875, 0.036773681640625, 0.0419921875, 0.02886962890625, 0.047271728515625, 0.00485992431640625, -0.056915283203125, 0.044189453125, -0.004901885986328125, 0.00811767578125, 0.04107666015625, 0.022857666015625, -0.01120758056640625, 0.0124664306640625, 0.0133819580078125, -0.0082244873046875, 0.023345947265625, -0.02862548828125, -0.01678466796875, -0.024017333984375, 0.0283050537109375, -0.026947021484375, 0.04241943359375, -0.025543212890625, -0.05224609375, 0.0242919921875, -0.038238525390625, 0.0166168212890625, 0.019500732421875, -0.0004987716674804688, 0.01641845703125, 0.005939483642578125, 0.003391265869140625, 0.024658203125, 0.0237274169921875, -0.02349853515625, 0.02288818359375, 0.009857177734375, -0.0303497314453125, 0.0179290771484375, -0.02410888671875, 0.09326171875, -0.047088623046875, -0.06341552734375, 0.000012218952178955078, -0.044708251953125, 0.0628662109375, 0.0755615234375, -0.01074981689453125, 0.036834716796875, 0.0276947021484375, -0.034576416015625, -0.01061248779296875, -0.02020263671875, 0.0010328292846679688, -0.055694580078125, -0.039581298828125, -0.05810546875, -0.0004439353942871094, 0.005657196044921875, 0.0207977294921875, -0.053863525390625, 0.02099609375, -0.0005631446838378906, 0.047760009765625, 0.07537841796875, -0.01184844970703125, 0.00511932373046875, 0.01202392578125, -0.025146484375, -0.0200653076171875, 0.0062255859375, -0.033843994140625, -0.002361297607421875, 0.0443115234375, 0.043914794921875, 0.0178985595703125, -0.00916290283203125, -0.01074981689453125, 0.0030117034912109375, -0.03369140625, 0.0667724609375, 0.014373779296875, -0.05841064453125, -0.044464111328125, 0.0400390625, 0.060333251953125, -0.0009579658508300781, -0.01454925537109375, 0.005001068115234375, -0.001979827880859375, -0.00928497314453125, 0.05224609375, -0.08673095703125, 0.0268707275390625, 0.06390380859375, -0.0263824462890625, -0.020355224609375, 0.016693115234375, -0.04010009765625, 0.007335662841796875, -0.031341552734375, -0.0220794677734375, 0.03448486328125, 0.0011243820190429688, 0.01357269287109375, -0.034881591796875, 0.0008993148803710938, -0.0257415771484375, -0.00389862060546875, 0.038421630859375, 0.0036106109619140625, -0.054443359375, 0.0131988525390625, -0.044219970703125, -0.0210723876953125, -0.0124359130859375, -0.0168609619140625, -0.04156494140625, -0.00164794921875, 0.00670623779296875, 0.01593017578125, -0.01125335693359375, -0.022857666015625, 0.01947021484375, 0.001995086669921875, -0.0078277587890625, 0.0024204254150390625, -0.0017385482788085938, 0.0416259765625, 0.00496673583984375, 0.052947998046875, 0.0301361083984375, 0.0159149169921875, -0.025909423828125, -0.0258941650390625, -0.0009284019470214844, -0.043670654296875, -0.01556396484375, -0.00510406494140625, 0.0269775390625, -0.0011167526245117188, -0.0186309814453125, 0.01349639892578125, -0.022857666015625, 0.01708984375, 0.0163116455078125, -0.0194549560546875, -0.018951416015625, 0.05230712890625, -0.00817108154296875, -0.006793975830078125, -0.0758056640625, -0.02191162109375, 0.030181884765625, 0.01367950439453125, 0.0210418701171875, -0.037139892578125, 0.010101318359375, 0.0654296875, -0.06683349609375, 0.06842041015625, 0.06768798828125, 0.003673553466796875, 0.04656982421875, 0.010101318359375, 0.012542724609375, 0.0228118896484375, -0.0129241943359375, 0.01351165771484375, -0.002208709716796875, 0.014739990234375, -0.014312744140625, 0.01739501953125, 0.022796630859375, -0.004894256591796875, 0.0168914794921875, -0.021697998046875, 0.04864501953125, -0.01812744140625, 0.0263671875, 0.0265045166015625, -0.01473236083984375, -0.0090789794921875, -0.01323699951171875, 0.0024394989013671875, -0.0177764892578125, 0.0535888671875, -0.004398345947265625, -0.0088958740234375, 0.02239990234375, -0.0249176025390625, -0.0193023681640625, 0.0169677734375, 0.05364990234375, 0.0313720703125, 0.0214080810546875, -0.0205535888671875, -0.017059326171875, 0.026092529296875, -0.0220184326171875, -0.006938934326171875, 0.010101318359375, -0.0148468017578125, -0.04803466796875, 0.0018491744995117188, -0.0235595703125, -0.002132415771484375, 0.0271148681640625, 0.01180267333984375, 0.0033130645751953125, 0.0557861328125, -0.00948333740234375, 0.00519561767578125, 0.041900634765625, -0.0228118896484375, -0.0440673828125, 0.0016012191772460938, 0.0229339599609375, 0.0216522216796875, -0.0294189453125, 0.0234375, -0.036407470703125, -0.0066986083984375, -0.011749267578125, -0.00411224365234375, 0.05841064453125, -0.04913330078125, 0.0034618377685546875, 0.0556640625, 0.0374755859375, -0.0192413330078125, -0.0261993408203125, 0.0012674331665039062, -0.03656005859375, 0.0028228759765625, -0.020355224609375, -0.005603790283203125, 0.0164794921875, -0.0195770263671875, -0.041717529296875, 0.06854248046875, 0.02984619140625, -0.00861358642578125, 0.0064544677734375, 0.038238525390625, -0.0343017578125, 0.0024509429931640625, -0.040618896484375, 0.0634765625, -0.0235137939453125, 0.045013427734375, -0.0489501953125, 0.013031005859375, 0.0031223297119140625, 0.00492095947265625, 0.0110321044921875, 0.002193450927734375, -0.0400390625, -0.015655517578125, 0.018096923828125, 0.01629638671875, 0.0032501220703125, 0.03387451171875, 0.0290679931640625, 0.05096435546875, 0.0670166015625, -0.0268402099609375, 0.0400390625, -0.01224517822265625, 0.0242462158203125, 0.037078857421875, 0.0002982616424560547, 0.0032634735107421875, -0.005496978759765625, 0.01268768310546875, 0.00605010986328125, -0.00679779052734375, -0.006679534912109375, -0.0011501312255859375, -0.000888824462890625, 0.0277099609375, -0.006954193115234375, 0.0225982666015625, 0.0350341796875, -0.0299224853515625, 0.035400390625, -0.0199432373046875, 0.0115203857421875, 0.01983642578125, 0.0169219970703125, -0.0175018310546875, 0.0263214111328125, 0.00615692138671875, 0.039093017578125, -0.0160675048828125, 0.00634002685546875, -0.01247406005859375, 0.0193023681640625, -0.0200347900390625, -0.004390716552734375, 0.007381439208984375, 0.0011320114135742188, 0.0032901763916015625, -0.09039306640625, 0.017364501953125, 0.0049285888671875, -0.0026302337646484375, 0.04888916015625, 0.002773284912109375, -0.02117919921875, 0.05621337890625, -0.0213165283203125, -0.0181884765625, 0.02374267578125, 0.035186767578125, 0.0134735107421875, 0.0223388671875, -0.0286865234375, -0.058563232421875, -0.0294647216796875, 0.001621246337890625, 0.0310211181640625, 0.056243896484375, -0.0174713134765625, 0.07000732421875, -0.045196533203125, -0.0248870849609375, -0.0211181640625, 0.05426025390625, -0.0049591064453125, 0.047576904296875, -0.056304931640625, -0.057708740234375, 0.0225067138671875, 0.041748046875, 0.05670166015625, 0.0294342041015625, 0.03741455078125, 0.027984619140625, -0.0105438232421875, 0.017242431640625, 0.0762939453125, -0.0023097991943359375, 0.01363372802734375, -0.048187255859375, 0.0411376953125, 0.007411956787109375, -0.006000518798828125, -0.001735687255859375, -0.006130218505859375, 0.0472412109375, -0.0229339599609375, 0.042388916015625, 0.003421783447265625, 0.00531005859375, 0.0255279541015625, -0.006290435791015625, 0.0165863037109375, -0.0037555694580078125, -0.08074951171875, 0.003345489501953125, -0.031524658203125, -0.04022216796875, 0.01482391357421875, 0.045745849609375, -0.00824737548828125, 0.00960540771484375, 0.00010025501251220703, -0.01438140869140625, 0.0198211669921875, 0.0246124267578125, -0.0199127197265625, 0.047088623046875, 0.04766845703125, 0.0023021697998046875, -0.037445068359375, 0.0001817941665649414, -0.0157318115234375, 0.0199127197265625, 0.021148681640625, 0.051788330078125, -0.0003864765167236328, 0.037139892578125, 0.037811279296875, -0.017486572265625, 0.02471923828125, 0.03363037109375, -0.031646728515625, -0.0243377685546875, -0.01812744140625, -0.010986328125, -0.0271453857421875, 0.03631591796875, 0.0224761962890625, -0.010223388671875, 0.01995849609375, -0.0136871337890625, 0.01482391357421875, 0.015411376953125, 0.0259246826171875, -0.0299072265625, -0.053741455078125, -0.0728759765625, -0.0179443359375, 0.0278167724609375, 0.042633056640625, 0.0082855224609375, 0.006595611572265625, -0.0004684925079345703, -0.021484375, 0.007671356201171875, 0.0138702392578125, -0.0205078125, 0.0223236083984375, -0.0016412734985351562, -0.034820556640625, 0.01274871826171875, -0.009857177734375, 0.0024318695068359375, 0.006679534912109375, 0.0419921875, 0.0266571044921875, -0.01253509521484375, 0.025238037109375, 0.001743316650390625, 0.0386962890625, -0.0196990966796875, 0.0170745849609375, 0.02508544921875, 0.022430419921875, -0.0098724365234375, -0.0570068359375, -0.017791748046875, -0.07464599609375, -0.004428863525390625, 0.017730712890625, -0.050384521484375, 0.01132965087890625, -0.006908416748046875, 0.0031719207763671875, 0.0267791748046875, -0.01947021484375, -0.04534912109375, 0.00537872314453125, -0.046112060546875, 0.055511474609375, -0.0186767578125, -0.03802490234375, -0.0021419525146484375, 0.0029582977294921875, 0.01256561279296875, 0.007114410400390625, -0.0229034423828125, 0.00498199462890625, 0.031585693359375, 0.044525146484375, 0.0494384765625, -0.04644775390625, -0.01519775390625, 0.0360107421875, 0.03936767578125, 0.0728759765625, 0.020355224609375, -0.0079803466796875, 0.032379150390625, -0.024688720703125, -0.0077056884765625, -0.01532745361328125, -0.0035381317138671875, -0.0244293212890625, -0.01800537109375, -0.048004150390625, 0.0204925537109375, 0.0007243156433105469, -0.046539306640625, -0.03057861328125, 0.052703857421875, -0.0170440673828125, -0.016754150390625, -0.07061767578125, -0.01366424560546875, -0.0020694732666015625, -0.0030269622802734375, -0.0350341796875, 0.0077667236328125, -0.04833984375, 0.044281005859375, 0.00872039794921875, 0.0090484619140625, 0.00890350341796875, 0.00797271728515625, -0.0220489501953125, 0.0237884521484375, 0.0142669677734375, -0.0112457275390625, 0.035308837890625, -0.056121826171875, 0.0648193359375, 0.03802490234375, -0.04156494140625, 0.02294921875, 0.020111083984375, 0.0242156982421875, -0.02838134765625, -0.04461669921875, 0.010650634765625, 0.0092315673828125, 0.047332763671875, 0.05548095703125, 0.00202178955078125, -0.053680419921875, -0.017730712890625, -0.007755279541015625, -0.0160369873046875, 0.013031005859375, 0.0296173095703125, -0.06976318359375, 0.00382232666015625, 0.02947998046875, -0.036773681640625, 0.0018472671508789062, 0.023468017578125, -0.051666259765625, 0.018402099609375, -0.001766204833984375, -0.0099029541015625, -0.044708251953125, -0.044586181640625, 0.032135009765625, -0.01529693603515625, -0.01174163818359375, -0.0134124755859375, 0.022857666015625, -0.0010089874267578125, 0.0219573974609375, 0.0107574462890625, 0.0310211181640625, -0.05419921875, 0.003955841064453125, 0.00014269351959228516, 0.004909515380859375, -0.0189666748046875, -0.01425933837890625, 0.01137542724609375, 0.033050537109375, -0.0196990966796875, 0.030792236328125, 0.0155029296875, 0.027587890625, -0.0015077590942382812, 0.031402587890625, 0.00042319297790527344, 0.0247955322265625, -0.0168609619140625, 0.055908203125, -0.00948333740234375, -0.0198211669921875, 0.0217742919921875, -0.038543701171875, 0.00002491474151611328, -0.0010814666748046875, 0.0010967254638671875, -0.042724609375, 0.023529052734375, -0.0307159423828125, 0.0097503662109375, 0.019866943359375 ]
58720d53c2f6e2a1616a29059136cfcca92d19ca
Wordpress Stackexchange Q: Display message once per session to users with a specific role I need to display a message to only users with a specific role. The message should appear either as soon as the user logs in or if they re-open their browser after having closed it when logged in to the site. Can someone point me in the right direction as to how to go about accomplishing this? Would it be best to use PHP's sessions, HTML5's web storage or cookies in JavaScript or PHP? A: You can check whether this plugin helps you to achieve your purpose or You can write your own code in your custom plugin with the following approach: * *Check if the user is logged in. *Check if the current user has the any roles from the specified list of roles which you want the notice to be shown. *If the above conditions are true just add a Notice to the site. You might not be needing sessions as you check whether the user is logged in an show the message. If at all you need WordPress Sessions you can use the functions defined in the class WP_Session_Tokens.
Q: Display message once per session to users with a specific role I need to display a message to only users with a specific role. The message should appear either as soon as the user logs in or if they re-open their browser after having closed it when logged in to the site. Can someone point me in the right direction as to how to go about accomplishing this? Would it be best to use PHP's sessions, HTML5's web storage or cookies in JavaScript or PHP? A: You can check whether this plugin helps you to achieve your purpose or You can write your own code in your custom plugin with the following approach: * *Check if the user is logged in. *Check if the current user has the any roles from the specified list of roles which you want the notice to be shown. *If the above conditions are true just add a Notice to the site. You might not be needing sessions as you check whether the user is logged in an show the message. If at all you need WordPress Sessions you can use the functions defined in the class WP_Session_Tokens.
wordpress
{ "language": "en", "length": 194, "provenance": "stackexchange_00019.jsonl.gz:457100", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193802" }
[ 0.0750732421875, 0.0065460205078125, 0.013824462890625, -0.033111572265625, 0.004680633544921875, -0.035797119140625, 0.0235748291015625, -0.034423828125, -0.00835418701171875, 0.01427459716796875, -0.0032806396484375, -0.00872039794921875, -0.0117645263671875, -0.03875732421875, 0.00010985136032104492, -0.018402099609375, 0.005634307861328125, 0.0011510848999023438, 0.0030879974365234375, -0.028778076171875, 0.022430419921875, -0.0270538330078125, -0.00012350082397460938, 0.04608154296875, 0.005428314208984375, -0.01058197021484375, 0.06829833984375, -0.0357666015625, 0.040008544921875, -0.00380706787109375, 0.0194549560546875, -0.0423583984375, -0.004302978515625, 0.031524658203125, -0.00420379638671875, 0.006443023681640625, -0.019775390625, 0.0240020751953125, 0.0217742919921875, 0.0113067626953125, -0.006519317626953125, 0.01367950439453125, 0.0190277099609375, 0.0205535888671875, 0.0010232925415039062, -0.035491943359375, 0.0115509033203125, -0.03765869140625, 0.017608642578125, 0.006610870361328125, 0.02294921875, 0.01898193359375, 0.036407470703125, -0.0065460205078125, -0.0086669921875, 0.02813720703125, -0.039306640625, 0.039886474609375, 0.0279693603515625, -0.0034122467041015625, -0.004608154296875, -0.013031005859375, 0.0150299072265625, 0.01262664794921875, -0.022613525390625, 0.006137847900390625, -0.0219268798828125, 0.0174713134765625, -0.06842041015625, -0.07244873046875, 0.0178070068359375, -0.03399658203125, -0.0179443359375, -0.007965087890625, -0.06976318359375, 0.01207733154296875, 0.038177490234375, 0.0038509368896484375, 0.0014019012451171875, -0.016845703125, -0.035491943359375, -0.007720947265625, -0.00817108154296875, -0.0006971359252929688, -0.0095062255859375, 0.0262451171875, -0.021240234375, -0.0067901611328125, -0.02227783203125, 0.015838623046875, -0.027557373046875, 0.02392578125, 0.00023031234741210938, -0.01473236083984375, -0.032684326171875, -0.0111846923828125, 0.0159759521484375, 0.052001953125, -0.021575927734375, -0.03021240234375, -0.033599853515625, 0.005458831787109375, -0.08026123046875, 0.00608062744140625, -0.01922607421875, 0.0380859375, 0.00971221923828125, 0.00966644287109375, -0.01035308837890625, 0.022979736328125, 0.00554656982421875, -0.04718017578125, -0.013336181640625, -0.024017333984375, -0.00928497314453125, 0.025054931640625, -0.034576416015625, 0.033203125, 0.00896453857421875, 0.05322265625, -0.023529052734375, 0.0244140625, 0.00893402099609375, -0.03692626953125, -0.00406646728515625, 0.002628326416015625, -0.00539398193359375, -0.03704833984375, -0.004871368408203125, -0.0017709732055664062, -0.01505279541015625, 0.0100250244140625, 0.046112060546875, 0.057464599609375, 0.01490020751953125, -0.0055694580078125, 0.0191497802734375, 0.0026035308837890625, 0.0009813308715820312, 0.0312347412109375, -0.048614501953125, -0.02374267578125, 0.0252532958984375, -0.0287322998046875, -0.004169464111328125, 0.0234832763671875, 0.0201873779296875, 0.00316619873046875, -0.000537872314453125, -0.041259765625, -0.0307464599609375, 0.017608642578125, -0.0036334991455078125, 0.0080108642578125, 0.01396942138671875, 0.0171051025390625, 0.0193023681640625, -0.0202178955078125, 0.00749969482421875, -0.006626129150390625, 0.050323486328125, 0.009918212890625, 0.0114898681640625, -0.01433563232421875, -0.03326416015625, -0.027618408203125, -0.05999755859375, -0.0027027130126953125, 0.0264129638671875, -0.0110015869140625, 0.03179931640625, 0.00902557373046875, 0.007320404052734375, 0.004520416259765625, 0.004894256591796875, 0.00635528564453125, -0.029541015625, 0.043975830078125, 0.03173828125, -0.06573486328125, -0.03497314453125, -0.04132080078125, 0.0439453125, 0.00377655029296875, -0.031951904296875, 0.0294036865234375, -0.004749298095703125, 0.035919189453125, 0.0006861686706542969, 0.014862060546875, -0.009002685546875, 0.040191650390625, 0.0213470458984375, -0.014373779296875, -0.0295562744140625, -0.041839599609375, 0.021453857421875, 0.001712799072265625, -0.0311431884765625, 0.0540771484375, 0.056121826171875, -0.0125885009765625, 0.01268768310546875, -0.039581298828125, -0.07281494140625, 0.0131378173828125, -0.03521728515625, 0.0277862548828125, 0.0174407958984375, 0.0006279945373535156, -0.00653839111328125, 0.033721923828125, 0.0004801750183105469, -0.10430908203125, -0.050201416015625, 0.0208587646484375, -0.015716552734375, 0.075927734375, 0.0007443428039550781, 0.06427001953125, 0.01331329345703125, -0.0556640625, 0.0147705078125, -0.01666259765625, 0.019500732421875, 0.00766754150390625, -0.0184173583984375, 0.00426483154296875, 0.02264404296875, 0.0164031982421875, 0.01369476318359375, 0.0032749176025390625, 0.03125, 0.03936767578125, -0.01401519775390625, -0.003665924072265625, -0.004241943359375, -0.05126953125, 0.003147125244140625, 0.04254150390625, 0.0294189453125, 0.01190185546875, 0.01226043701171875, 0.035736083984375, 0.01488494873046875, -0.048797607421875, 0.012451171875, 0.00904083251953125, -0.005931854248046875, -0.014892578125, -0.0115203857421875, -0.03228759765625, 0.037872314453125, -0.043853759765625, -0.006984710693359375, 0.03448486328125, 0.00533294677734375, 0.028656005859375, -0.029296875, 0.012725830078125, -0.005901336669921875, -0.025604248046875, 0.00899505615234375, -0.0197906494140625, -0.006908416748046875, -0.0259246826171875, -0.002727508544921875, -0.024688720703125, 0.0047760009765625, -0.0028896331787109375, 0.0183258056640625, -0.05413818359375, -0.001552581787109375, 0.0189361572265625, -0.016693115234375, 0.00965118408203125, -0.034027099609375, 0.0014696121215820312, -0.002384185791015625, 0.01552581787109375, -0.0135498046875, -0.0016126632690429688, 0.0097808837890625, -0.01959228515625, 0.00543975830078125, 0.00931549072265625, 0.0178680419921875, -0.0022869110107421875, 0.033721923828125, -0.0006074905395507812, 0.017333984375, 0.031280517578125, -0.006565093994140625, 0.0396728515625, -0.00492095947265625, -0.0119171142578125, -0.031707763671875, -0.046600341796875, 0.04595947265625, -0.0460205078125, 0.00036454200744628906, 0.058502197265625, -0.01006317138671875, 0.01751708984375, -0.025054931640625, -0.025390625, -0.0178680419921875, 0.01229095458984375, -0.006755828857421875, -0.0731201171875, 0.048858642578125, 0.05523681640625, 0.004711151123046875, 0.0067138671875, -0.00714111328125, -0.0281982421875, -0.0108489990234375, -0.0155792236328125, -0.04547119140625, -0.0430908203125, -0.00531005859375, -0.09173583984375, 0.035430908203125, -0.002666473388671875, -0.0338134765625, -0.0249786376953125, 0.0606689453125, 0.01514434814453125, -0.0228271484375, -0.0160369873046875, -0.005641937255859375, -0.0247039794921875, -0.01459503173828125, 0.040863037109375, 0.0077972412109375, -0.007534027099609375, -0.01061248779296875, 0.046173095703125, 0.00036644935607910156, -0.0538330078125, -0.00681304931640625, 0.0276031494140625, -0.01517486572265625, -0.00547027587890625, 0.0160064697265625, -0.009063720703125, -0.00107574462890625, 0.0125885009765625, -0.03253173828125, -0.0183258056640625, 0.0024013519287109375, -0.03851318359375, 0.016143798828125, -0.035400390625, 0.038360595703125, -0.05230712890625, -0.04736328125, 0.023529052734375, 0.0184326171875, -0.031768798828125, 0.0032958984375, 0.0026226043701171875, -0.028564453125, -0.06640625, 0.0286407470703125, -0.019012451171875, -0.0521240234375, -0.0299072265625, 0.0054473876953125, 0.021026611328125, -0.03265380859375, 0.01873779296875, -0.0012159347534179688, 0.00231170654296875, -0.007770538330078125, 0.0106353759765625, 0.0292510986328125, -0.0061187744140625, -0.01715087890625, -0.01107025146484375, 0.017822265625, -0.0321044921875, 0.0230255126953125, -0.0718994140625, -0.0350341796875, 0.026763916015625, -0.0213623046875, 0.00974273681640625, -0.018310546875, -0.006710052490234375, 0.00966644287109375, 0.08465576171875, -0.014739990234375, -0.0246124267578125, -0.0251007080078125, -0.0008754730224609375, -0.012969970703125, 0.01044464111328125, -0.01235198974609375, -0.00942230224609375, -0.05609130859375, 0.001094818115234375, -0.01108551025390625, -0.00794219970703125, -0.036773681640625, 0.0240631103515625, -0.049072265625, -0.032196044921875, 0.041534423828125, -0.10888671875, 0.03668212890625, -0.013519287109375, 0.0182952880859375, -0.061187744140625, -0.015380859375, -0.06732177734375, -0.05352783203125, -0.01259613037109375, -0.04962158203125, 0.070068359375, 0.06402587890625, -0.064697265625, 0.0257110595703125, 0.0533447265625, -0.0093841552734375, 0.0250701904296875, 0.00933837890625, 0.01277923583984375, 0.04510498046875, 0.004993438720703125, -0.0125274658203125, -0.013275146484375, -0.0024013519287109375, -0.0200958251953125, -0.014251708984375, 0.0219573974609375, -0.0243988037109375, -0.01096343994140625, -0.0140838623046875, -0.004638671875, -0.013580322265625, -0.00047969818115234375, 0.0188140869140625, 0.0574951171875, 0.0189666748046875, 0.0011949539184570312, -0.043243408203125, -0.033905029296875, -0.0123138427734375, -0.005367279052734375, -0.0236358642578125, 0.0360107421875, 0.018768310546875, 0.02435302734375, -0.00664520263671875, -0.020416259765625, 0.03118896484375, 0.04046630859375, -0.007503509521484375, 0.069580078125, 0.06256103515625, -0.040435791015625, 0.057403564453125, 0.026214599609375, 0.014862060546875, -0.0129852294921875, 0.04705810546875, -0.006885528564453125, -0.036895751953125, 0.0419921875, 0.0023937225341796875, -0.04833984375, -0.0181121826171875, 0.013214111328125, -0.00885772705078125, 0.0273284912109375, 0.01111602783203125, 0.02386474609375, -0.02191162109375, -0.01041412353515625, -0.00911712646484375, -0.01837158203125, 0.0216522216796875, 0.007022857666015625, 0.0267181396484375, -0.0005650520324707031, -0.01294708251953125, 0.0124053955078125, -0.012481689453125, 0.017822265625, 0.0252838134765625, -0.0008616447448730469, 0.03924560546875, -0.0135498046875, -0.0145111083984375, -0.0283660888671875, -0.0045623779296875, 0.06463623046875, 0.006702423095703125, -0.0400390625, -0.0003616809844970703, -0.010284423828125, 0.0126495361328125, 0.00923919677734375, 0.01474761962890625, 0.0221405029296875, 0.01097869873046875, 0.01049041748046875, -0.0027484893798828125, 0.033538818359375, -0.0017919540405273438, -0.009490966796875, -0.00997161865234375, -0.01160430908203125, -0.0013980865478515625, 0.0171051025390625, 0.061676025390625, -0.034881591796875, 0.047821044921875, -0.013519287109375, 0.0645751953125, 0.062286376953125, 0.0177154541015625, 0.007038116455078125, 0.01171112060546875, -0.041412353515625, 0.0019445419311523438, -0.02581787109375, 0.0021953582763671875, -0.0157012939453125, 0.014678955078125, 0.005962371826171875, -0.0226593017578125, -0.0096588134765625, 0.0204315185546875, 0.005401611328125, -0.004638671875, 0.06256103515625, 0.002471923828125, -0.0631103515625, -0.038604736328125, 0.0193328857421875, 0.03582763671875, -0.035491943359375, -0.01213836669921875, 0.00949859619140625, 0.01190185546875, 0.058013916015625, -0.02325439453125, -0.0011892318725585938, 0.027191162109375, 0.0194244384765625, -0.033111572265625, -0.0225677490234375, 0.0148162841796875, -0.0302581787109375, -0.01169586181640625, -0.01143646240234375, -0.0140380859375, -0.00914764404296875, -0.0210418701171875, 0.00768280029296875, -0.01274871826171875, -0.0014362335205078125, -0.0216217041015625, 0.029296875, 0.00012290477752685547, -0.008514404296875, -0.07867431640625, 0.013519287109375, -0.0931396484375, 0.0013589859008789062, -0.0821533203125, -0.077880859375, -0.039703369140625, 0.008392333984375, 0.023406982421875, 0.026702880859375, -0.012664794921875, -0.05291748046875, -0.0193023681640625, 0.0240478515625, 0.046783447265625, 0.04815673828125, 0.0111236572265625, 0.03411865234375, 0.0139617919921875, 0.03997802734375, 0.0306854248046875, 0.01290130615234375, -0.0086212158203125, -0.031951904296875, 0.0282440185546875, 0.0161285400390625, -0.004638671875, -0.03594970703125, 0.030487060546875, -0.05914306640625, 0.005107879638671875, -0.014495849609375, 0.0234375, -0.00019884109497070312, 0.0069122314453125, -0.0170745849609375, -0.0096282958984375, 0.01605224609375, 0.0080718994140625, 0.040985107421875, -0.021392822265625, 0.0106048583984375, 0.001422882080078125, -0.013641357421875, 0.036163330078125, -0.0074920654296875, 0.02532958984375, -0.00554656982421875, -0.002017974853515625, 0.00983428955078125, 0.0296173095703125, -0.00029468536376953125, 0.040740966796875, 0.015594482421875, 0.040069580078125, 0.040313720703125, -0.0088348388671875, -0.01050567626953125, -0.01580810546875, 0.0440673828125, -0.00563812255859375, -0.0268707275390625, 0.034423828125, -0.032196044921875, 0.00797271728515625, 0.0704345703125, 0.06396484375, -0.10333251953125, 0.01275634765625, 0.00212860107421875, -0.01561737060546875, 0.01332855224609375, -0.0215301513671875, -0.002162933349609375, -0.017120361328125, 0.0587158203125, 0.02685546875, -0.01233673095703125, 0.027313232421875, -0.011749267578125, -0.0080413818359375, 0.0304718017578125, 0.0223846435546875, -0.0002579689025878906, -0.0189666748046875, -0.031036376953125, 0.027313232421875, -0.0170440673828125, -0.0301361083984375, 0.0021820068359375, 0.0236053466796875, -0.02587890625, -0.0703125, 0.0015010833740234375, -0.006031036376953125, -0.0155029296875, -0.01020050048828125, 0.0007190704345703125, 0.0255279541015625, 0.04034423828125, -0.00536346435546875, -0.032562255859375, 0.04443359375, -0.0634765625, -0.045379638671875, -0.03533935546875, 0.01108551025390625, 0.0650634765625, -0.080322265625, 0.0350341796875, -0.00861358642578125, 0.01129913330078125, -0.024658203125, -0.0665283203125, 0.0628662109375, -0.01505279541015625, -0.01049041748046875, 0.00008124113082885742, 0.0304412841796875, -0.004367828369140625, -0.02197265625, 0.03143310546875, -0.061279296875, 0.0004940032958984375, 0.0007925033569335938, 0.0020275115966796875, -0.0229644775390625, -0.0035114288330078125, -0.0867919921875, 0.0870361328125, 0.015167236328125, 0.055908203125, -0.01837158203125, 0.01529693603515625, -0.0109710693359375, -0.0110626220703125, -0.034332275390625, 0.0574951171875, 0.019287109375, 0.050506591796875, -0.0294647216796875, -0.0022602081298828125, 0.0303192138671875, 0.0280303955078125, 0.035888671875, 0.022796630859375, -0.040130615234375, -0.00598907470703125, -0.0056915283203125, -0.017852783203125, -0.0275421142578125, 0.06439208984375, -0.0028209686279296875, 0.0037670135498046875, -0.00424957275390625, -0.0228271484375, 0.03570556640625, -0.0352783203125, -0.0526123046875, 0.0179595947265625, 0.0182647705078125, 0.019622802734375, -0.00521087646484375, 0.026580810546875, -0.049468994140625, -0.0004336833953857422, 0.031219482421875, 0.014190673828125, -0.008148193359375, 0.0224609375, 0.039642333984375, -0.01380157470703125, 0.023712158203125, -0.032806396484375, 0.051605224609375, 0.01033782958984375, 0.00791168212890625, 0.0364990234375, 0.01446533203125, 0.00310516357421875, 0.0235595703125, 0.01451873779296875, 0.0206298828125, -0.0094451904296875, 0.021881103515625, 0.027801513671875, 0.032989501953125, -0.015960693359375, -0.00222015380859375, 0.048828125, 0.05413818359375, -0.01806640625, -0.034332275390625, 0.0033626556396484375, 0.01666259765625, 0.0291748046875, 0.0206756591796875, 0.0179901123046875, 0.00829315185546875, 0.05743408203125, 0.00004488229751586914, 0.0200042724609375, -0.0054779052734375, -0.0006880760192871094, -0.007358551025390625, 0.0164337158203125, -0.01678466796875, 0.0521240234375, -0.0239410400390625, -0.004169464111328125, 0.038970947265625, -0.025360107421875, 0.0007939338684082031, 0.0146026611328125, 0.11541748046875, 0.0306549072265625, 0.0006175041198730469, -0.013092041015625, -0.01534271240234375, -0.01177978515625, 0.0233001708984375, 0.00395965576171875, 0.0105438232421875, 0.0041046142578125, 0.01442718505859375, -0.036468505859375, -0.002201080322265625, -0.001491546630859375, -0.019073486328125, -0.01264190673828125, -0.023406982421875, -0.02923583984375, 0.030670166015625, -0.01114654541015625, 0.0033779144287109375, -0.0012636184692382812, -0.018768310546875, -0.03204345703125, 0.049468994140625, 0.00433349609375, -0.0290679931640625, 0.024505615234375, -0.00884246826171875, -0.02789306640625, 0.0141754150390625, -0.0518798828125, 0.03912353515625, -0.020965576171875, -0.0379638671875, 0.019256591796875, -0.053558349609375, -0.08819580078125, 0.0250091552734375, 0.040863037109375, -0.021453857421875, 0.021697998046875, 0.06787109375, 0.04168701171875, -0.0084075927734375, -0.0288238525390625, 0.03350830078125, -0.063232421875, 0.019927978515625, 0.01018524169921875, -0.054656982421875, -0.0226898193359375, -0.0290374755859375, 0.014373779296875, 0.0406494140625, 0.00041937828063964844, 0.0379638671875, 0.035400390625, -0.049957275390625, 0.04022216796875, -0.051055908203125, -0.071533203125, 0.079833984375, 0.002971649169921875, -0.01178741455078125, 0.0057830810546875, -0.07568359375, 0.039215087890625, -0.0018930435180664062, -0.00984954833984375, 0.06610107421875, -0.00433349609375, -0.018402099609375, -0.0247650146484375, 0.021148681640625, -0.0176849365234375, -0.028839111328125, -0.0360107421875, 0.005962371826171875, 0.01404571533203125, 0.030487060546875, 0.004840850830078125, 0.0667724609375, -0.037109375, -0.03271484375, -0.0195465087890625, -0.07183837890625, -0.061248779296875, 0.006984710693359375, 0.05328369140625, 0.03826904296875, -0.0169525146484375, -0.0175628662109375, 0.01383209228515625, 0.003910064697265625, -0.00858306884765625, 0.0029735565185546875, 0.046142578125, 0.0305633544921875, 0.0223846435546875, 0.0401611328125, -0.03692626953125, 0.007808685302734375, 0.04571533203125, 0.01486968994140625, -0.0303802490234375, -0.01421356201171875, -0.047882080078125, -0.0299072265625, 0.0078887939453125, 0.028289794921875, 0.01242828369140625, -0.025787353515625, -0.06695556640625, -0.01415252685546875, 0.0203399658203125, -0.00238037109375, -0.046844482421875, -0.0016689300537109375, -0.004306793212890625, 0.0391845703125, -0.0289459228515625, -0.05206298828125, 0.018798828125, 0.0404052734375, -0.0269927978515625, 0.019256591796875, -0.04541015625, -0.055145263671875, -0.041900634765625, -0.025634765625, 0.0028781890869140625, 0.0222930908203125, -0.0210113525390625, -0.041046142578125, -0.0308990478515625, 0.001438140869140625, -0.034576416015625, 0.0023937225341796875, -0.01079559326171875, 0.0212860107421875, -0.0101470947265625, -0.045623779296875, 0.01385498046875, 0.01100921630859375, -0.029876708984375, 0.0054931640625, -0.00438690185546875, 0.00844573974609375, -0.0289154052734375, -0.06768798828125, 0.1077880859375, -0.0211334228515625, -0.02252197265625, -0.038299560546875, 0.015716552734375, -0.0023708343505859375, -0.02227783203125, -0.01438140869140625, -0.01493072509765625, 0.0044403076171875, 0.0360107421875, 0.019927978515625, -0.086669921875, 0.055694580078125, 0.01200103759765625, -0.06396484375, 0.0242462158203125, 0.046539306640625, -0.0285797119140625, -0.037017822265625, 0.01763916015625, -0.0030879974365234375, 0.0307159423828125, -0.006847381591796875, -0.042144775390625, 0.0111846923828125, 0.00803375244140625, 0.002986907958984375, -0.002780914306640625, 0.016265869140625, -0.0174407958984375, -0.00432586669921875, 0.009979248046875, -0.005924224853515625, -0.00936126708984375, -0.0406494140625, -0.049102783203125, -0.0242462158203125, 0.022674560546875, 0.00759124755859375, -0.033172607421875, 0.052154541015625, 0.01129150390625, -0.05706787109375, 0.0194244384765625, 0.043975830078125, -0.06005859375, 0.043701171875, 0.0438232421875, 0.00707244873046875, -0.096923828125, -0.0130615234375, 0.0291290283203125, -0.0234832763671875, 0.0015211105346679688, -0.007312774658203125, 0.01287841796875, 0.006359100341796875, 0.0111846923828125, 0.05548095703125, 0.05877685546875, -0.08880615234375, 0.002719879150390625, 0.011077880859375, 0.0280303955078125, -0.06146240234375, -0.037872314453125, 0.0037441253662109375, 0.0224609375, -0.01287078857421875, 0.0240325927734375, 0.0205230712890625, -0.0213623046875, -0.019561767578125, 0.0011539459228515625, -0.034454345703125, 0.018646240234375, -0.0372314453125, 0.037200927734375, 0.0158233642578125, -0.0034542083740234375, 0.050506591796875, -0.0254974365234375, 0.0214385986328125, 0.019195556640625, 0.06414794921875, -0.0281219482421875, 0.0411376953125, -0.0094146728515625, 0.0263671875, 0.0135345458984375 ]
da3b4655c0cb91864dd129b0dfd0d8378a138cfa
Wordpress Stackexchange Q: Add class="media_type" when media is inserted into editor I am looking for a way to edit the link that get inserted in the editor when the user choose to add a media. The goal would be to add a class with the media type (pdf) in the link. I know how to get the mime type but I am not sure which hook to use to retrieve the link before it gets inserted. Could you point me in the right direction? Thanks! A: So thanks to @amritanshu and @wycks github's code, here is the solution for those in need to add a class with the media type to the attachment url before it gets inserted in the editor : if ( ! function_exists( 'epc_add_class_pdf' ) ) : function epc_add_class_pdf( $html, $id ) { $attachment = get_post( $id ); $mime_type = $attachment->post_mime_type; // I only needed PDF but you can use whatever mime_type you need if ( $mime_type == 'application/pdf' ) { $src = wp_get_attachment_url( $id ); $html = '<a class="pdf" href="'. $src .'">'. $attachment->post_title .'</a>'; } return $html; } endif; add_filter('media_send_to_editor', 'epc_add_class_pdf', 20, 3);
Q: Add class="media_type" when media is inserted into editor I am looking for a way to edit the link that get inserted in the editor when the user choose to add a media. The goal would be to add a class with the media type (pdf) in the link. I know how to get the mime type but I am not sure which hook to use to retrieve the link before it gets inserted. Could you point me in the right direction? Thanks! A: So thanks to @amritanshu and @wycks github's code, here is the solution for those in need to add a class with the media type to the attachment url before it gets inserted in the editor : if ( ! function_exists( 'epc_add_class_pdf' ) ) : function epc_add_class_pdf( $html, $id ) { $attachment = get_post( $id ); $mime_type = $attachment->post_mime_type; // I only needed PDF but you can use whatever mime_type you need if ( $mime_type == 'application/pdf' ) { $src = wp_get_attachment_url( $id ); $html = '<a class="pdf" href="'. $src .'">'. $attachment->post_title .'</a>'; } return $html; } endif; add_filter('media_send_to_editor', 'epc_add_class_pdf', 20, 3); A: Here's a shorter way to do it (PHP 5.4+): add_filter( 'media_send_to_editor', function( $html, $send_id, $attachment ) { $class = wp_check_filetype( $attachment['url'] )['ext']; return str_ireplace( '<a href', sprintf( '<a class="%s" href',$class ? $class : 'unknown' ), $html ); }, 10, 3 ); where we get the attachment's info from the third input argument. We could also use the mime type data, from wp_check_filetype(), instead of the extension. A: This is not the answer but just the hint. media_send_to_editor should be the hook that should help you. Not sure how but came across this while searching for my problem I would have commented but still 4 points short, so unable to comment All the best
wordpress
{ "language": "en", "length": 299, "provenance": "stackexchange_00019.jsonl.gz:457111", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193845" }
[ 0.04876708984375, -0.015960693359375, 0.0102386474609375, -0.01074981689453125, 0.00679779052734375, -0.041900634765625, 0.08624267578125, -0.006786346435546875, -0.0243682861328125, 0.0085296630859375, 0.031494140625, -0.0015897750854492188, 0.015228271484375, -0.053680419921875, 0.04638671875, -0.00408935546875, 0.00024628639221191406, 0.00980377197265625, 0.037841796875, -0.00603485107421875, -0.0005860328674316406, -0.0070343017578125, 0.048492431640625, -0.05645751953125, -0.01708984375, 0.0501708984375, 0.07147216796875, -0.039459228515625, -0.010498046875, -0.0169219970703125, -0.0029964447021484375, -0.01016998291015625, 0.040008544921875, 0.02728271484375, -0.059814453125, 0.055511474609375, 0.0273590087890625, -0.0112762451171875, -0.012359619140625, 0.04931640625, 0.0007071495056152344, 0.01102447509765625, -0.004364013671875, 0.00453948974609375, -0.036834716796875, -0.0347900390625, 0.009490966796875, -0.004451751708984375, 0.005229949951171875, 0.05450439453125, 0.003765106201171875, -0.0243988037109375, -0.001354217529296875, 0.021087646484375, -0.0012598037719726562, 0.0016889572143554688, -0.004638671875, -0.00226593017578125, 0.00347900390625, 0.01024627685546875, -0.0045623779296875, 0.0260009765625, -0.0025501251220703125, -0.0205230712890625, -0.00467681884765625, -0.00562286376953125, 0.004611968994140625, 0.013641357421875, -0.05108642578125, -0.007663726806640625, 0.04833984375, -0.032470703125, -0.016693115234375, -0.045501708984375, -0.006877899169921875, 0.06280517578125, 0.0156402587890625, 0.0205841064453125, -0.01197052001953125, -0.01020050048828125, 0.0677490234375, 0.0307464599609375, 0.0051727294921875, -0.030059814453125, 0.041534423828125, 0.0014257431030273438, 0.012054443359375, -0.0430908203125, -0.021484375, -0.0028514862060546875, -0.0260467529296875, -0.022308349609375, 0.055023193359375, -0.035552978515625, -0.043182373046875, -0.0161895751953125, -0.0009250640869140625, 0.01062774658203125, 0.01485443115234375, 0.049591064453125, 0.0169525146484375, -0.05950927734375, 0.08795166015625, -0.0548095703125, 0.018157958984375, 0.0232086181640625, -0.0260162353515625, -0.039459228515625, 0.034698486328125, 0.0219879150390625, -0.003726959228515625, 0.0142059326171875, -0.0262451171875, 0.0027294158935546875, -0.0011281967163085938, 0.012939453125, -0.0538330078125, 0.01654052734375, -0.01505279541015625, 0.01317596435546875, -0.0015621185302734375, 0.0196990966796875, 0.0230255126953125, -0.02783203125, -0.0250396728515625, -0.0127716064453125, 0.004276275634765625, -0.059173583984375, 0.049224853515625, -0.01568603515625, -0.017913818359375, 0.024749755859375, 0.01496124267578125, 0.00972747802734375, 0.0016069412231445312, -0.0011949539184570312, -0.037384033203125, -0.03192138671875, -0.0212249755859375, 0.02801513671875, 0.004375457763671875, -0.03851318359375, 0.01439666748046875, 0.02978515625, -0.027862548828125, 0.0247344970703125, 0.0280303955078125, -0.0137481689453125, -0.0428466796875, -0.0738525390625, -0.01056671142578125, -0.0235137939453125, 0.059722900390625, -0.001232147216796875, -0.0433349609375, -0.01396942138671875, 0.0249786376953125, -0.00965118408203125, -0.02752685546875, -0.052886962890625, 0.0043182373046875, -0.014068603515625, 0.0242462158203125, -0.057952880859375, -0.045654296875, 0.0134429931640625, -0.07427978515625, -0.003475189208984375, 0.034393310546875, 0.043243408203125, 0.0224456787109375, -0.0447998046875, 0.0338134765625, 0.0263824462890625, -0.026031494140625, 0.0224609375, 0.01507568359375, 0.04150390625, 0.031097412109375, -0.004100799560546875, -0.00995635986328125, -0.03009033203125, 0.11334228515625, -0.055816650390625, -0.02587890625, 0.019561767578125, 0.027099609375, 0.04638671875, -0.0033473968505859375, 0.0278472900390625, 0.006801605224609375, 0.06158447265625, 0.0016231536865234375, -0.066650390625, -0.00450897216796875, -0.002933502197265625, 0.01312255859375, 0.00341033935546875, -0.00753021240234375, 0.034576416015625, 0.000453948974609375, -0.003582000732421875, 0.035430908203125, -0.0236663818359375, 0.0136566162109375, -0.00103759765625, 0.006633758544921875, 0.0352783203125, -0.00933074951171875, 0.021636962890625, 0.01067352294921875, -0.0055389404296875, -0.0158843994140625, -0.0172576904296875, 0.0076141357421875, 0.013458251953125, -0.01111602783203125, 0.0182037353515625, -0.01119232177734375, 0.042266845703125, -0.04132080078125, -0.0126190185546875, -0.0278167724609375, 0.00225830078125, 0.007335662841796875, 0.033935546875, -0.0175628662109375, 0.017547607421875, 0.0287017822265625, 0.0273895263671875, 0.0306243896484375, -0.0225677490234375, 0.0003986358642578125, -0.0029621124267578125, -0.045745849609375, -0.00839996337890625, -0.0304107666015625, -0.058135986328125, 0.00833892822265625, 0.059906005859375, 0.04510498046875, 0.04193115234375, 0.01346588134765625, -0.003520965576171875, 0.0709228515625, 0.027099609375, 0.04766845703125, -0.048492431640625, -0.0151519775390625, 0.034881591796875, 0.00952911376953125, 0.048553466796875, 0.004184722900390625, -0.025909423828125, 0.0083770751953125, 0.044830322265625, 0.019073486328125, -0.0048370361328125, 0.0011444091796875, 0.0170440673828125, -0.0018482208251953125, 0.0166473388671875, -0.0227203369140625, 0.015655517578125, 0.0269927978515625, 0.0223388671875, 0.045989990234375, 0.040496826171875, -0.0176849365234375, -0.0080718994140625, 0.013397216796875, 0.031951904296875, -0.00528717041015625, 0.054595947265625, 0.031890869140625, 0.01398468017578125, -0.037200927734375, -0.0127410888671875, 0.0015382766723632812, 0.02752685546875, -0.03668212890625, 0.0191650390625, -0.0185546875, -0.024627685546875, -0.0130462646484375, -0.01132965087890625, 0.0010776519775390625, -0.0611572265625, 0.0185089111328125, -0.0121917724609375, 0.00885772705078125, -0.0009732246398925781, -0.02301025390625, 0.0322265625, 0.045928955078125, -0.047149658203125, 0.032623291015625, -0.0252838134765625, 0.049530029296875, -0.0225372314453125, 0.05157470703125, 0.056793212890625, -0.036163330078125, 0.03802490234375, -0.0185089111328125, -0.0226287841796875, -0.037994384765625, 0.010009765625, -0.0224609375, -0.0592041015625, -0.00765228271484375, 0.046417236328125, 0.0009760856628417969, -0.05145263671875, -0.004940032958984375, -0.0214080810546875, -0.0428466796875, -0.042022705078125, -0.0908203125, -0.0168609619140625, 0.053436279296875, -0.062225341796875, 0.007457733154296875, 0.01678466796875, -0.0391845703125, -0.037994384765625, 0.0689697265625, -0.00440216064453125, 0.01715087890625, 0.00981903076171875, -0.01953125, -0.01959228515625, -0.021697998046875, -0.0309600830078125, -0.012481689453125, -0.015777587890625, 0.006397247314453125, 0.0343017578125, 0.006061553955078125, -0.0175018310546875, 0.0118865966796875, -0.006317138671875, -0.0086822509765625, -0.0111846923828125, 0.0056915283203125, -0.043182373046875, -0.002513885498046875, -0.01325225830078125, 0.036956787109375, 0.021148681640625, -0.01503753662109375, 0.00992584228515625, -0.00470733642578125, 0.0009975433349609375, -0.0034008026123046875, 0.054534912109375, 0.0234832763671875, 0.006275177001953125, 0.01971435546875, -0.047882080078125, 0.0548095703125, -0.0011911392211914062, 0.0196533203125, 0.017242431640625, -0.04010009765625, -0.0235443115234375, 0.01317596435546875, 0.0086822509765625, -0.061614990234375, -0.00797271728515625, -0.01476287841796875, -0.01064300537109375, 0.039276123046875, -0.03802490234375, -0.048248291015625, 0.03277587890625, 0.038970947265625, 0.00048232078552246094, 0.00897979736328125, 0.0282135009765625, 0.0176544189453125, 0.016082763671875, -0.003627777099609375, -0.049896240234375, -0.05181884765625, 0.053009033203125, -0.0234832763671875, 0.0205230712890625, -0.06549072265625, -0.0308380126953125, -0.0251922607421875, 0.08795166015625, -0.043701171875, -0.0194854736328125, -0.0181884765625, 0.01971435546875, -0.0128021240234375, -0.0628662109375, 0.0098724365234375, -0.003345489501953125, 0.008392333984375, 0.0029582977294921875, -0.00780487060546875, -0.006473541259765625, -0.022705078125, 0.027679443359375, -0.00643157958984375, -0.01458740234375, 0.0455322265625, -0.01410675048828125, -0.00439453125, 0.07366943359375, -0.0246734619140625, 0.042449951171875, -0.053314208984375, -0.0070343017578125, -0.09600830078125, -0.00937652587890625, -0.007114410400390625, 0.066162109375, 0.01458740234375, -0.032989501953125, -0.0045928955078125, 0.0648193359375, 0.015899658203125, 0.006587982177734375, 0.0219573974609375, 0.0014791488647460938, 0.0036563873291015625, 0.006195068359375, 0.01641845703125, -0.022918701171875, 0.003780364990234375, -0.01995849609375, -0.07830810546875, 0.0036945343017578125, -0.00826263427734375, 0.0224761962890625, 0.033416748046875, -0.0277557373046875, -0.02911376953125, -0.040191650390625, -0.0145263671875, 0.036834716796875, 0.0027866363525390625, -0.01027679443359375, -0.06488037109375, -0.068115234375, 0.0295867919921875, -0.02587890625, -0.00522613525390625, -0.0011606216430664062, 0.04925537109375, 0.01568603515625, -0.006916046142578125, -0.00794219970703125, 0.034454345703125, 0.0287933349609375, 0.0085296630859375, 0.03997802734375, 0.030029296875, 0.0005373954772949219, 0.002597808837890625, -0.01161956787109375, 0.0323486328125, -0.0482177734375, 0.07684326171875, 0.002841949462890625, -0.0021419525146484375, 0.0291290283203125, 0.0011377334594726562, -0.0122528076171875, 0.0072174072265625, -0.01361846923828125, -0.01337432861328125, 0.054046630859375, 0.0264739990234375, -0.05108642578125, 0.048187255859375, 0.00458526611328125, -0.01229095458984375, -0.01288604736328125, -0.00457000732421875, 0.056243896484375, 0.058929443359375, -0.006591796875, 0.0205841064453125, 0.01544189453125, 0.004665374755859375, 0.04046630859375, 0.0233306884765625, -0.007320404052734375, 0.04217529296875, 0.006137847900390625, -0.0203399658203125, 0.0197906494140625, 0.0037059783935546875, 0.00238800048828125, 0.005970001220703125, -0.01232147216796875, -0.04559326171875, 0.01343536376953125, -0.00390625, -0.0166473388671875, -0.0201263427734375, 0.01490020751953125, 0.0016489028930664062, -0.0019989013671875, -0.003650665283203125, -0.042144775390625, 0.0086517333984375, -0.0390625, 0.0211944580078125, -0.00970458984375, -0.01165771484375, 0.015625, 0.00479888916015625, -0.01490020751953125, -0.01354217529296875, 0.006561279296875, 0.0290374755859375, 0.044189453125, -0.0155181884765625, 0.0275115966796875, 0.03436279296875, -0.02484130859375, -0.01334381103515625, 0.006404876708984375, -0.038238525390625, 0.0096282958984375, 0.00450897216796875, 0.042266845703125, -0.021270751953125, -0.03070068359375, 0.039794921875, -0.053192138671875, -0.0172271728515625, -0.0016326904296875, -0.023223876953125, -0.012237548828125, -0.01806640625, 0.00537109375, 0.023284912109375, 0.00952911376953125, 0.006107330322265625, 0.0284881591796875, 0.0474853515625, 0.021148681640625, -0.00376129150390625, -0.0447998046875, -0.0011587142944335938, 0.0195159912109375, -0.01873779296875, -0.00801849365234375, -0.0067596435546875, -0.032958984375, -0.028289794921875, -0.00365447998046875, -0.01178741455078125, 0.065185546875, -0.001583099365234375, 0.0291290283203125, -0.035858154296875, 0.0017414093017578125, -0.062408447265625, 0.01059722900390625, -0.0019025802612304688, 0.0014123916625976562, 0.0171966552734375, -0.035491943359375, -0.0504150390625, -0.037841796875, -0.048431396484375, -0.04669189453125, -0.008056640625, 0.0117645263671875, -0.003108978271484375, 0.04486083984375, -0.024017333984375, -0.006256103515625, 0.0111846923828125, -0.00707244873046875, -0.01073455810546875, 0.062103271484375, 0.03143310546875, 0.05389404296875, -0.01983642578125, 0.06298828125, 0.0272216796875, 0.01251220703125, -0.049957275390625, -0.016876220703125, -0.021148681640625, -0.043731689453125, 0.016143798828125, 0.0290985107421875, 0.0014982223510742188, -0.0027713775634765625, -0.001674652099609375, 0.01013946533203125, -0.006439208984375, -0.0020694732666015625, -0.0235595703125, -0.0258026123046875, 0.002132415771484375, 0.02239990234375, 0.02081298828125, -0.00299835205078125, -0.03857421875, 0.027923583984375, -0.01244354248046875, 0.0199737548828125, 0.034637451171875, -0.0609130859375, 0.025482177734375, 0.030181884765625, -0.018310546875, 0.0230255126953125, 0.037445068359375, -0.0026721954345703125, 0.033355712890625, 0.0161590576171875, 0.0184173583984375, 0.0308685302734375, -0.01123046875, -0.0225372314453125, 0.0246429443359375, 0.04052734375, -0.006015777587890625, 0.0022449493408203125, 0.0360107421875, -0.007083892822265625, 0.037384033203125, 0.0210113525390625, 0.07177734375, -0.0251312255859375, 0.01241302490234375, 0.0039215087890625, -0.04595947265625, 0.048828125, -0.0167999267578125, -0.00524139404296875, -0.005802154541015625, 0.07232666015625, -0.055419921875, -0.03466796875, 0.0151214599609375, -0.0271453857421875, -0.0003542900085449219, -0.0163116455078125, -0.01271820068359375, -0.020751953125, -0.0132293701171875, -0.03399658203125, 0.01242828369140625, -0.0293121337890625, -0.0164031982421875, 0.0285186767578125, -0.01490020751953125, -0.00455474853515625, -0.048004150390625, -0.00583648681640625, -0.026947021484375, -0.0002884864807128906, -0.02392578125, -0.0007543563842773438, 0.06744384765625, 0.029205322265625, 0.0011157989501953125, -0.005817413330078125, 0.021392822265625, -0.01073455810546875, -0.0343017578125, -0.0281219482421875, 0.0014705657958984375, 0.02777099609375, -0.0132598876953125, 0.0198974609375, -0.0150299072265625, -0.01430511474609375, 0.013763427734375, 0.05010986328125, 0.00824737548828125, -0.032257080078125, -0.02313232421875, 0.047454833984375, -0.01096343994140625, -0.011688232421875, -0.01058197021484375, -0.01995849609375, -0.037811279296875, -0.0231170654296875, -0.0159149169921875, -0.05657958984375, 0.008056640625, -0.026336669921875, -0.0736083984375, 0.0611572265625, 0.000591278076171875, 0.0450439453125, 0.01538848876953125, 0.006855010986328125, -0.038360595703125, -0.018829345703125, -0.028350830078125, 0.055145263671875, 0.02154541015625, -0.018585205078125, -0.057952880859375, -0.016265869140625, -0.0161895751953125, 0.0496826171875, 0.037567138671875, 0.005615234375, -0.07708740234375, 0.00920867919921875, 0.06201171875, 0.02874755859375, 0.0226287841796875, 0.056610107421875, -0.022857666015625, -0.054840087890625, 0.0128631591796875, -0.0069732666015625, 0.0134429931640625, -0.0196380615234375, -0.01512908935546875, 0.00327301025390625, 0.0052642822265625, 0.01317596435546875, 0.01407623291015625, 0.0183563232421875, 0.0073089599609375, 0.00002562999725341797, -0.006717681884765625, 0.00031113624572753906, 0.0224761962890625, 0.048309326171875, 0.043426513671875, -0.0277862548828125, -0.0182037353515625, -0.02777099609375, 0.043212890625, -0.0015239715576171875, -0.00457000732421875, 0.025634765625, 0.0160064697265625, 0.016204833984375, -0.0191802978515625, -0.0124053955078125, 0.009857177734375, 0.008331298828125, 0.024169921875, -0.0013179779052734375, 0.0121612548828125, -0.047393798828125, 0.01220703125, 0.0643310546875, 0.0428466796875, -0.041412353515625, -0.00354766845703125, 0.010162353515625, 0.01641845703125, -0.0046539306640625, -0.0126495361328125, 0.0205535888671875, -0.03326416015625, -0.007297515869140625, -0.029876708984375, -0.0237579345703125, -0.0187225341796875, 0.06915283203125, -0.017486572265625, -0.0183563232421875, -0.0105743408203125, -0.06884765625, -0.06390380859375, 0.04248046875, 0.00688934326171875, 0.01360321044921875, 0.00519561767578125, 0.069091796875, 0.05584716796875, -0.00046181678771972656, -0.0394287109375, 0.01302337646484375, 0.0006012916564941406, 0.06488037109375, -0.0285491943359375, 0.0156707763671875, 0.01399993896484375, 0.029510498046875, 0.048126220703125, 0.017486572265625, 0.029571533203125, 0.005428314208984375, 0.0226593017578125, 0.0191650390625, -0.0251007080078125, -0.0181121826171875, 0.01198577880859375, -0.038330078125, 0.020416259765625, 0.00667572021484375, -0.0106353759765625, -0.00298309326171875, -0.00826263427734375, 0.052520751953125, -0.01551055908203125, 0.0310211181640625, -0.006710052490234375, -0.0269317626953125, 0.05328369140625, -0.005260467529296875, 0.0897216796875, 0.019073486328125, -0.1173095703125, -0.0109100341796875, -0.0288238525390625, -0.09320068359375, 0.055450439453125, 0.06121826171875, -0.031463623046875, -0.01500701904296875, -0.01285552978515625, 0.004932403564453125, 0.0181121826171875, -0.01264190673828125, -0.0226593017578125, 0.0231475830078125, 0.03265380859375, -0.0170745849609375, -0.00860595703125, -0.0098114013671875, -0.0083770751953125, 0.05047607421875, 0.01012420654296875, 0.0753173828125, -0.038604736328125, 0.0257415771484375, -0.0185394287109375, 0.00908660888671875, -0.0249481201171875, -0.027923583984375, 0.017120361328125, 0.00003409385681152344, -0.0013971328735351562, 0.01165771484375, 0.037139892578125, 0.0220184326171875, 0.029632568359375, -0.027252197265625, -0.021881103515625, -0.0147705078125, 0.026153564453125, -0.0016880035400390625, 0.050811767578125, -0.01271820068359375, 0.006084442138671875, -0.0148162841796875, -0.021148681640625, 0.038970947265625, 0.025482177734375, 0.0235443115234375, 0.037811279296875, 0.045989990234375, 0.0134429931640625, 0.01751708984375, 0.00241851806640625, 0.055267333984375, 0.041015625, -0.04034423828125, -0.054595947265625, 0.0311126708984375, -0.0019550323486328125, 0.007274627685546875, 0.02215576171875, 0.06304931640625, 0.021209716796875, -0.0263824462890625, 0.0173492431640625, 0.039947509765625, 0.059173583984375, -0.0018138885498046875, 0.0162506103515625, 0.032867431640625, -0.009185791015625, -0.028472900390625, -0.0264739990234375, -0.0190277099609375, -0.051177978515625, -0.01100921630859375, 0.007289886474609375, -0.029937744140625, -0.037384033203125, -0.04473876953125, -0.00930023193359375, 0.031707763671875, 0.00498199462890625, -0.059539794921875, 0.0218048095703125, -0.01715087890625, 0.04205322265625, -0.02362060546875, 0.007671356201171875, -0.01434326171875, 0.0212860107421875, -0.0032520294189453125, -0.05084228515625, -0.0269927978515625, 0.0792236328125, -0.0197601318359375, 0.00919342041015625, 0.029296875, -0.01708984375, -0.0007543563842773438, -0.0017900466918945312, -0.0036106109619140625, 0.03814697265625, -0.050506591796875, -0.046051025390625, -0.01611328125, 0.0011644363403320312, 0.01161956787109375, -0.042755126953125, 0.005046844482421875, -0.07305908203125, 0.006977081298828125, 0.0004563331604003906, -0.01058197021484375, -0.0006475448608398438, -0.04754638671875, -0.0875244140625, 0.053619384765625, -0.003459930419921875, -0.04473876953125, -0.01092529296875, 0.00745391845703125, -0.045684814453125, 0.038726806640625, 0.002170562744140625, -0.032073974609375, 0.0220184326171875, 0.043548583984375, 0.00423431396484375, -0.00661468505859375, 0.041961669921875, -0.0083465576171875, -0.04541015625, -0.01262664794921875, -0.0300750732421875, -0.0202178955078125, 0.0022487640380859375, -0.050048828125, 0.06689453125, 0.01335906982421875, -0.03802490234375, 0.0001157522201538086, 0.047393798828125, 0.01099395751953125, 0.002422332763671875, -0.046783447265625, -0.037200927734375, -0.015899658203125, 0.065185546875, 0.03558349609375, 0.01727294921875, -0.0218048095703125, 0.030975341796875, -0.0037059783935546875, -0.0670166015625, 0.0277557373046875, 0.0186004638671875, -0.007110595703125, 0.0207977294921875, -0.0115814208984375, 0.0168914794921875, 0.005268096923828125, 0.005161285400390625, -0.01080322265625, -0.020477294921875, 0.0172576904296875, 0.0271148681640625, -0.0635986328125, -0.0107421875, 0.06781005859375, -0.03125, 0.03594970703125, 0.00678253173828125, 0.01224517822265625, 0.05426025390625, 0.018524169921875, 0.01316070556640625, 0.01332855224609375, -0.0165252685546875, 0.0007390975952148438, 0.02734375, -0.054412841796875, -0.0022258758544921875, 0.0021877288818359375, -0.01018524169921875, -0.0012302398681640625, -0.0155792236328125, -0.01309967041015625, 0.021697998046875, 0.0369873046875, -0.00005137920379638672, 0.04669189453125, -0.037750244140625, -0.02984619140625, -0.009490966796875, -0.0075531005859375, 0.0220184326171875, 0.0194549560546875, 0.09393310546875, -0.03680419921875, 0.00855255126953125, 0.006832122802734375, -0.0202178955078125, -0.031524658203125, -0.007904052734375, -0.03497314453125, -0.01192474365234375, 0.0002503395080566406 ]
353baf5592233129cd6c72dc51979c649dd9d569
Wordpress Stackexchange Q: how do you get the author's username? how do you get the author's username? I'm using this code "get_the_author()" I wanted to change this into author's username, instead of author's name. Thankyou A: In the Loop, it would be: $authorname = get_the_author_meta('user_nicename'); Or: $authorname = get_the_author_meta('displayname'); Or: $authorname = get_the_author_meta('nickname'); Or any field that get_the_author_meta() accepts. $authorname = get_the_author_meta('user_nicename',123); If you just need to echo the name just use the_author_meta() instead: the_author_meta('user_nicename',123);
Q: how do you get the author's username? how do you get the author's username? I'm using this code "get_the_author()" I wanted to change this into author's username, instead of author's name. Thankyou A: In the Loop, it would be: $authorname = get_the_author_meta('user_nicename'); Or: $authorname = get_the_author_meta('displayname'); Or: $authorname = get_the_author_meta('nickname'); Or any field that get_the_author_meta() accepts. $authorname = get_the_author_meta('user_nicename',123); If you just need to echo the name just use the_author_meta() instead: the_author_meta('user_nicename',123); A: Regarding @s_ha_dum answer above, he is correct, but it's no longer get_the_author_meta('displayname');, it should be: get_the_author_meta('display_name');. See: https://developer.wordpress.org/reference/functions/get_the_author_meta/ A: The actual answer to your question is: get_the_author_meta('user_login'); A: I found something that is better help you. We have multiple option to get author name provided by WP. 1) <?php get_the_author_meta( $field, $userID ); ?> Via this function you can get current user auther name by: <?php $auth_name = get_the_author_meta( 'display_name' ); ?> OR if you pass $userID as secont param then you can get that use field like: <?php $auth_name = get_the_author_meta( 'display_name', $userID ); ?> There is different fields that you can fetch via this function for respected author information: display_name, nickname, first_name, last_name and Many more *<?php get_userdata($userID ); ?> This is done by setting up a variable called $currauth (Current Author). The usual way to do this is to put the following lines before the loop in your template file: <?php $currauth = (isset($_GET['author_name'])) ? get_user_by('slug', $_GET['author_name']) : get_userdata($_GET['author']); ?> Or this example that only works in WordPress Version 2.8 and higher: <?php $currauth = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author')); ?> Now that you have the $currauth variable set up, you can use it to display all kinds of information about the author whose page is being displayed. Now you have below choice to use: //For display name $currauth->display_name; //For First Name $currauth->first_name //For Last Name $currauth->last_name //For Nick Name $currauth->nickname and Many more Let me know if you face any further query regarding this. Thanks! A: In the Loop $username=get_the_author_meta('user_nicename'); Outside of Loop (Suppose $user_id=1) $username=get_the_author_meta( 'user_nicename', $user_id ); You can use get_userdata function. $username=get_userdata($user_id)->user_nicename; you can use get_user_by function $username=get_user_by( 'id', $user_id )->user_nicename;
wordpress
{ "language": "en", "length": 353, "provenance": "stackexchange_00019.jsonl.gz:457121", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193880" }
[ -0.0129547119140625, 0.0033435821533203125, 0.004589080810546875, 0.034332275390625, -0.02593994140625, -0.005126953125, -0.006855010986328125, -0.04217529296875, -0.004085540771484375, 0.0643310546875, -0.0098114013671875, 0.030548095703125, 0.01161956787109375, 0.006866455078125, -0.033599853515625, -0.022125244140625, 0.027435302734375, -0.016357421875, 0.0426025390625, -0.00847625732421875, 0.0268707275390625, -0.0019464492797851562, 0.049652099609375, -0.0026111602783203125, 0.0543212890625, -0.055419921875, 0.10223388671875, -0.03363037109375, 0.04876708984375, -0.01910400390625, 0.037384033203125, -0.0269012451171875, -0.01189422607421875, 0.037506103515625, -0.00963592529296875, 0.0261688232421875, -0.01265716552734375, 0.03338623046875, 0.042205810546875, -0.0164947509765625, 0.025604248046875, -0.00732421875, -0.09002685546875, 0.006778717041015625, -0.0517578125, -0.059051513671875, 0.0221710205078125, -0.00511932373046875, 0.04534912109375, 0.021820068359375, 0.0033206939697265625, 0.00640106201171875, -0.003997802734375, 0.00992584228515625, -0.01763916015625, -0.00933074951171875, 0.04327392578125, -0.01212310791015625, 0.04168701171875, -0.0946044921875, -0.051544189453125, 0.00655364990234375, 0.0562744140625, 0.045806884765625, 0.0190887451171875, -0.0006885528564453125, -0.00583648681640625, 0.03802490234375, 0.016357421875, 0.027679443359375, -0.0036640167236328125, -0.023834228515625, -0.0153656005859375, 0.00392913818359375, -0.032073974609375, -0.029754638671875, -0.015045166015625, -0.04595947265625, 0.026275634765625, -0.0037517547607421875, -0.0261077880859375, 0.0031070709228515625, -0.06256103515625, -0.0017251968383789062, 0.0254974365234375, 0.046417236328125, -0.024932861328125, -0.0305023193359375, -0.032745361328125, 0.005828857421875, -0.0210723876953125, -0.048736572265625, 0.003482818603515625, 0.029205322265625, -0.005786895751953125, -0.01389312744140625, 0.0271759033203125, 0.0631103515625, -0.021270751953125, -0.020172119140625, -0.015960693359375, -0.008941650390625, -0.024810791015625, -0.029327392578125, -0.01033782958984375, 0.0140228271484375, 0.01507568359375, 0.02667236328125, 0.007717132568359375, 0.029541015625, -0.0117340087890625, -0.0411376953125, -0.066162109375, -0.03857421875, -0.00360107421875, 0.043304443359375, -0.0838623046875, 0.0289306640625, 0.0022640228271484375, 0.0240631103515625, 0.0258331298828125, 0.0379638671875, -0.00403594970703125, -0.012420654296875, -0.01293182373046875, -0.01018524169921875, -0.03546142578125, -0.0149993896484375, 0.006298065185546875, -0.00730133056640625, -0.044525146484375, 0.0087890625, 0.032562255859375, 0.0227203369140625, 0.0200958251953125, -0.0236663818359375, 0.0019483566284179688, 0.007511138916015625, 0.010772705078125, 0.003093719482421875, -0.0201263427734375, -0.01824951171875, 0.016845703125, -0.011749267578125, -0.0229339599609375, 0.00856781005859375, 0.005283355712890625, 0.0240325927734375, -0.01528167724609375, -0.02520751953125, -0.0107421875, 0.00885009765625, -0.0211334228515625, 0.0182952880859375, 0.0635986328125, 0.003734588623046875, 0.039825439453125, -0.033111572265625, 0.0259552001953125, -0.0005788803100585938, 0.02728271484375, 0.00481414794921875, 0.003177642822265625, 0.02593994140625, -0.00649261474609375, -0.013946533203125, -0.01352691650390625, -0.00565338134765625, 0.0157470703125, -0.0247650146484375, 0.0380859375, 0.0087127685546875, 0.0031261444091796875, 0.01334381103515625, 0.0115814208984375, 0.0030956268310546875, -0.0316162109375, 0.0428466796875, 0.0010156631469726562, 0.033233642578125, -0.0074005126953125, -0.04217529296875, -0.001697540283203125, 0.006946563720703125, -0.037109375, 0.007732391357421875, 0.018280029296875, 0.056793212890625, 0.01503753662109375, 0.00704193115234375, 0.0126800537109375, -0.00208282470703125, -0.042755126953125, 0.020751953125, -0.0079193115234375, -0.00888824462890625, 0.003314971923828125, -0.00478363037109375, -0.0036144256591796875, -0.013580322265625, 0.0152435302734375, -0.044158935546875, 0.0439453125, -0.0023708343505859375, -0.054046630859375, 0.029937744140625, -0.0307464599609375, 0.032562255859375, 0.04742431640625, 0.0115966796875, -0.007457733154296875, -0.0341796875, -0.0156402587890625, 0.0032367706298828125, -0.036102294921875, 0.006679534912109375, -0.00978851318359375, -0.0130157470703125, -0.0019197463989257812, -0.004535675048828125, 0.007091522216796875, 0.0293121337890625, -0.0088348388671875, 0.0110626220703125, 0.0380859375, -0.04144287109375, -0.01055145263671875, -0.038482666015625, -0.00807952880859375, 0.0028247833251953125, -0.07073974609375, 0.04290771484375, 0.0012121200561523438, -0.00559234619140625, -0.007354736328125, -0.00034737586975097656, 0.024932861328125, -0.07110595703125, 0.019989013671875, 0.04510498046875, 0.023834228515625, -0.039947509765625, -0.04156494140625, -0.003841400146484375, 0.030120849609375, 0.0037441253662109375, 0.0023632049560546875, 0.00688934326171875, 0.040863037109375, 0.0792236328125, -0.041412353515625, 0.006412506103515625, 0.01641845703125, -0.0709228515625, 0.00653839111328125, 0.052886962890625, -0.006591796875, 0.0098876953125, -0.0247650146484375, 0.0225982666015625, -0.01113128662109375, -0.028045654296875, 0.0123443603515625, -0.029266357421875, 0.02392578125, -0.004436492919921875, -0.0026149749755859375, -0.0011930465698242188, -0.04974365234375, 0.004840850830078125, 0.031494140625, 0.035400390625, 0.00021708011627197266, 0.0310211181640625, -0.004314422607421875, -0.01751708984375, 0.004878997802734375, -0.011474609375, -0.013702392578125, 0.0086669921875, -0.00823211669921875, 0.0013494491577148438, 0.01003265380859375, 0.003978729248046875, -0.0025577545166015625, -0.038787841796875, 0.036590576171875, 0.047515869140625, -0.0227813720703125, -0.00531768798828125, 0.0269775390625, 0.027862548828125, -0.01309967041015625, 0.004482269287109375, -0.0211334228515625, 0.007366180419921875, 0.0538330078125, -0.036163330078125, 0.044464111328125, -0.013641357421875, 0.057830810546875, 0.059234619140625, 0.0013170242309570312, 0.024566650390625, -0.0029144287109375, -0.066650390625, -0.03961181640625, 0.0169677734375, -0.003635406494140625, -0.01496124267578125, -0.038177490234375, 0.0706787109375, 0.0212554931640625, 0.07501220703125, -0.0093231201171875, -0.038909912109375, -0.00455474853515625, 0.0465087890625, -0.04412841796875, -0.033172607421875, -0.0110626220703125, -0.05474853515625, -0.01430511474609375, -0.030426025390625, -0.0345458984375, 0.01549530029296875, -0.0278167724609375, -0.005779266357421875, 0.041839599609375, -0.039398193359375, -0.0682373046875, -0.04327392578125, -0.09442138671875, -0.04681396484375, -0.002899169921875, 0.006481170654296875, 0.006847381591796875, -0.00666046142578125, -0.028594970703125, -0.038238525390625, -0.046844482421875, 0.01415252685546875, 0.018310546875, -0.032867431640625, -0.00426483154296875, 0.0019292831420898438, -0.0266265869140625, 0.006092071533203125, 0.03363037109375, 0.016845703125, -0.0157012939453125, -0.008880615234375, -0.001590728759765625, -0.007534027099609375, 0.0548095703125, 0.024505615234375, -0.03509521484375, 0.0191650390625, 0.08697509765625, -0.035675048828125, 0.0107421875, -0.00417327880859375, -0.0181732177734375, 0.07049560546875, 0.007411956787109375, -0.025177001953125, 0.00022268295288085938, 0.021270751953125, 0.01346588134765625, 0.043365478515625, -0.0263519287109375, 0.01500701904296875, 0.027130126953125, 0.007610321044921875, 0.012237548828125, 0.01068115234375, -0.036102294921875, -0.041351318359375, -0.00130462646484375, -0.0323486328125, -0.0068817138671875, -0.00913238525390625, -0.0148468017578125, 0.010650634765625, -0.04730224609375, 0.056427001953125, -0.023101806640625, -0.004291534423828125, -0.0235748291015625, -0.039581298828125, -0.006107330322265625, 0.0867919921875, 0.055755615234375, -0.0229034423828125, 0.019317626953125, 0.01425933837890625, -0.0787353515625, -0.0193328857421875, -0.048095703125, 0.0003352165222167969, -0.0933837890625, -0.0023174285888671875, -0.02252197265625, -0.026702880859375, -0.01270294189453125, 0.04718017578125, -0.025390625, -0.033111572265625, 0.0167388916015625, -0.0260772705078125, 0.01433563232421875, 0.00955963134765625, -0.00856781005859375, 0.019287109375, 0.0052032470703125, -0.048614501953125, -0.061065673828125, -0.00778961181640625, -0.037811279296875, 0.055267333984375, -0.00113677978515625, 0.037445068359375, -0.010772705078125, 0.048431396484375, 0.0038623809814453125, 0.02752685546875, 0.0270538330078125, 0.00933074951171875, 0.04180908203125, -0.017181396484375, 0.0181427001953125, -0.02459716796875, -0.00312042236328125, -0.0145416259765625, -0.048736572265625, -0.01434326171875, -0.04156494140625, -0.00841522216796875, -0.0121917724609375, -0.02618408203125, -0.039215087890625, -0.045257568359375, 0.00913238525390625, 0.0013885498046875, 0.01024627685546875, 0.0178985595703125, -0.037322998046875, -0.042510986328125, 0.06744384765625, 0.0247344970703125, -0.00882720947265625, -0.011688232421875, 0.08392333984375, 0.01206207275390625, -0.037841796875, -0.0022983551025390625, 0.035186767578125, 0.040374755859375, -0.0404052734375, 0.026031494140625, 0.01324462890625, -0.039825439453125, 0.0797119140625, -0.005702972412109375, 0.0200347900390625, -0.0188446044921875, 0.032501220703125, -0.0297698974609375, -0.0294036865234375, 0.045654296875, -0.0242156982421875, 0.00844573974609375, -0.006927490234375, -0.0059661865234375, -0.005092620849609375, 0.01416015625, 0.03363037109375, -0.0183258056640625, 0.01508331298828125, -0.027252197265625, -0.046844482421875, 0.0076751708984375, -0.0540771484375, -0.00909423828125, -0.012481689453125, 0.0106201171875, -0.01641845703125, 0.00653839111328125, 0.0208282470703125, -0.045257568359375, -0.0653076171875, -0.0017185211181640625, 0.027618408203125, -0.061859130859375, 0.025909423828125, 0.004673004150390625, -0.0161590576171875, 0.09283447265625, 0.028076171875, -0.051239013671875, 0.033721923828125, -0.0306396484375, 0.003932952880859375, -0.00791168212890625, -0.0211639404296875, 0.036651611328125, 0.0265960693359375, -0.023895263671875, 0.0154876708984375, -0.0626220703125, 0.0288543701171875, -0.0421142578125, 0.039703369140625, -0.018157958984375, 0.01715087890625, -0.0347900390625, 0.139892578125, -0.0162811279296875, 0.064208984375, -0.0220489501953125, 0.0301971435546875, 0.0178375244140625, 0.0189056396484375, 0.0286865234375, -0.0102996826171875, 0.0267791748046875, -0.0389404296875, -0.009429931640625, -0.020904541015625, 0.01300048828125, 0.01062774658203125, 0.04388427734375, 0.0288543701171875, -0.021942138671875, 0.00379180908203125, -0.05853271484375, 0.0205230712890625, -0.035552978515625, -0.0309295654296875, 0.01384735107421875, 0.0006642341613769531, -0.008026123046875, -0.0044403076171875, -0.00896453857421875, 0.005977630615234375, -0.01812744140625, -0.010833740234375, -0.01555633544921875, -0.0263519287109375, 0.000354766845703125, -0.0196380615234375, -0.0172576904296875, -0.0302734375, -0.029449462890625, -0.0303497314453125, -0.03558349609375, -0.018707275390625, -0.01035308837890625, -0.00725555419921875, 0.052032470703125, 0.007450103759765625, 0.027069091796875, -0.047454833984375, 0.0146484375, -0.01418304443359375, -0.017822265625, 0.07940673828125, 0.0287933349609375, -0.057830810546875, 0.033782958984375, -0.034637451171875, 0.01143646240234375, -0.004657745361328125, -0.04620361328125, -0.0469970703125, -0.03302001953125, -0.0168914794921875, 0.0167999267578125, -0.01317596435546875, 0.0377197265625, 0.034149169921875, 0.020538330078125, -0.05401611328125, 0.0239715576171875, -0.01328277587890625, 0.046844482421875, 0.0149688720703125, 0.027984619140625, 0.004425048828125, 0.0254669189453125, -0.0091094970703125, -0.023834228515625, 0.0014734268188476562, -0.0158843994140625, -0.01090240478515625, -0.0217742919921875, 0.0205535888671875, -0.016998291015625, 0.0211181640625, 0.00514984130859375, -0.0222015380859375, 0.00154876708984375, -0.0008440017700195312, -0.01043701171875, -0.00879669189453125, 0.047027587890625, -0.02923583984375, 0.0028705596923828125, -0.030303955078125, 0.040740966796875, -0.00498199462890625, -0.028076171875, 0.01001739501953125, -0.0037937164306640625, -0.007488250732421875, 0.053009033203125, -0.0396728515625, 0.05517578125, 0.0863037109375, 0.0235137939453125, 0.050018310546875, 0.0279388427734375, 0.021697998046875, 0.006011962890625, 0.00659942626953125, -0.0012798309326171875, -0.01371002197265625, 0.060577392578125, 0.0301361083984375, -0.00983428955078125, 0.05975341796875, -0.03570556640625, 0.0119781494140625, 0.00875091552734375, 0.039947509765625, -0.06304931640625, 0.03228759765625, 0.0518798828125, 0.0252227783203125, 0.02703857421875, 0.0106048583984375, -0.03314208984375, -0.058868408203125, 0.0711669921875, -0.055572509765625, 0.004108428955078125, 0.032470703125, -0.006641387939453125, 0.004711151123046875, -0.058013916015625, 0.044219970703125, 0.0097503662109375, -0.00347137451171875, 0.016845703125, 0.00014400482177734375, 0.0107421875, -0.0290069580078125, -0.003688812255859375, 0.0180511474609375, -0.001956939697265625, -0.021270751953125, 0.046600341796875, -0.05059814453125, 0.022735595703125, -0.00409698486328125, 0.031463623046875, 0.0230865478515625, 0.039398193359375, 0.0012540817260742188, -0.01544952392578125, 0.0218505859375, -0.026763916015625, 0.034454345703125, -0.03692626953125, -0.02984619140625, 0.01435089111328125, -0.01177215576171875, 0.01206207275390625, 0.003185272216796875, -0.01593017578125, -0.00832366943359375, -0.0210113525390625, 0.08367919921875, 0.005222320556640625, -0.054412841796875, 0.007633209228515625, -0.017425537109375, -0.0264739990234375, 0.0243682861328125, 0.021942138671875, -0.0260162353515625, 0.00379180908203125, 0.0238037109375, -0.01210784912109375, 0.00921630859375, 0.0185089111328125, -0.07861328125, 0.0246734619140625, 0.03369140625, 0.0220489501953125, 0.0035552978515625, -0.0105438232421875, -0.038177490234375, -0.04583740234375, -0.047088623046875, 0.068603515625, 0.008026123046875, 0.04766845703125, -0.04541015625, -0.01226806640625, 0.00974273681640625, 0.0258636474609375, 0.0657958984375, 0.0212249755859375, -0.033416748046875, -0.0086669921875, 0.01186370849609375, 0.0198211669921875, -0.02862548828125, 0.043792724609375, 0.0110321044921875, 0.0191802978515625, 0.06646728515625, -0.01502227783203125, 0.039520263671875, -0.006153106689453125, -0.00250244140625, 0.0208587646484375, 0.004596710205078125, -0.0183868408203125, -0.01434326171875, -0.0047454833984375, -0.039520263671875, -0.022552490234375, 0.0263671875, -0.03375244140625, 0.01273345947265625, 0.059234619140625, 0.050323486328125, 0.01971435546875, 0.0240478515625, -0.019866943359375, 0.0665283203125, 0.0164337158203125, -0.0027256011962890625, 0.022857666015625, 0.0089874267578125, 0.00927734375, 0.0175628662109375, 0.003940582275390625, 0.019134521484375, 0.033660888671875, 0.07122802734375, 0.0162200927734375, 0.0037384033203125, -0.07330322265625, -0.01082611083984375, 0.0239410400390625, 0.07830810546875, -0.05096435546875, -0.01012420654296875, 0.0067291259765625, -0.0223388671875, 0.009124755859375, -0.043701171875, -0.00421905517578125, 0.01015472412109375, 0.00260162353515625, -0.0258636474609375, 0.015838623046875, 0.02557373046875, 0.0207977294921875, 0.0063629150390625, 0.0013751983642578125, -0.052703857421875, 0.014617919921875, -0.036895751953125, -0.032867431640625, 0.007480621337890625, 0.03302001953125, 0.03924560546875, 0.04107666015625, 0.0212249755859375, -0.01140594482421875, 0.00397491455078125, -0.005252838134765625, 0.0008373260498046875, 0.012939453125, -0.0036487579345703125, 0.020965576171875, 0.0026531219482421875, 0.0168304443359375, 0.0034618377685546875, 0.01309967041015625, 0.041717529296875, 0.018218994140625, -0.048736572265625, -0.01067352294921875, 0.0287628173828125, -0.039642333984375, 0.00641632080078125, -0.030120849609375, 0.0125579833984375, 0.0182647705078125, -0.0029087066650390625, -0.0182037353515625, 0.0096588134765625, 0.033966064453125, -0.0242156982421875, 0.01139068603515625, -0.00783538818359375, -0.029937744140625, 0.010467529296875, -0.016082763671875, 0.012451171875, -0.0183258056640625, -0.07073974609375, 0.0025463104248046875, -0.0443115234375, -0.032562255859375, 0.033935546875, 0.032958984375, -0.02069091796875, 0.045379638671875, -0.06658935546875, -0.0022792816162109375, 0.0248870849609375, -0.01512908935546875, 0.00019025802612304688, 0.0662841796875, 0.01132965087890625, -0.0012788772583007812, -0.07696533203125, -0.045135498046875, -0.0323486328125, 0.0154876708984375, 0.0167236328125, -0.0307464599609375, 0.032867431640625, 0.033416748046875, -0.045257568359375, 0.01015472412109375, -0.06304931640625, -0.04608154296875, 0.047607421875, -0.020599365234375, -0.0418701171875, 0.0009007453918457031, -0.041259765625, 0.049896240234375, 0.0044708251953125, 0.0241546630859375, 0.037628173828125, -0.0223846435546875, 0.0048370361328125, -0.00909423828125, -0.01435089111328125, -0.04034423828125, -0.04412841796875, -0.0273590087890625, 0.001262664794921875, 0.01163482666015625, -0.0141143798828125, -0.0135955810546875, -0.029693603515625, 0.0258636474609375, -0.0266571044921875, 0.0292816162109375, 0.0513916015625, 0.014495849609375, 0.0194091796875, -0.002941131591796875, -0.060211181640625, -0.020660400390625, -0.0253448486328125, 0.0106964111328125, -0.0217437744140625, 0.04351806640625, 0.004695892333984375, -0.044525146484375, 0.036407470703125, -0.017486572265625, 0.051788330078125, 0.002124786376953125, 0.0017414093017578125, -0.0254669189453125, 0.0284271240234375, -0.006855010986328125, -0.031463623046875, -0.02197265625, -0.04937744140625, 0.004528045654296875, 0.0238494873046875, -0.003887176513671875, -0.00182342529296875, -0.033538818359375, -0.0163421630859375, -0.0162811279296875, -0.0205230712890625, 0.007266998291015625, -0.0013027191162109375, -0.0181732177734375, -0.005245208740234375, -0.04815673828125, -0.029815673828125, 0.03961181640625, 0.07080078125, -0.03887939453125, 0.01555633544921875, -0.0149383544921875, -0.045684814453125, -0.00946807861328125, 0.0230865478515625, 0.025054931640625, -0.016510009765625, 0.00556182861328125, 0.060302734375, 0.01442718505859375, 0.10052490234375, -0.04583740234375, -0.0166015625, 0.0012454986572265625, 0.0146942138671875, -0.017852783203125, -0.0980224609375, 0.0186614990234375, -0.09051513671875, 0.0076446533203125, -0.04541015625, 0.0245513916015625, 0.01380157470703125, -0.01331329345703125, -0.0015583038330078125, 0.04541015625, -0.0024738311767578125, -0.0212554931640625, -0.0185089111328125, -0.01380157470703125, 0.0093994140625, -0.007061004638671875, 0.0103302001953125, -0.019805908203125, -0.048583984375, 0.00225067138671875, 0.01107025146484375, -0.000766754150390625, 0.021240234375, 0.0028553009033203125, -0.047637939453125, 0.005870819091796875, -0.00811767578125, -0.01544189453125, -0.0099029541015625, -0.013458251953125, -0.00789642333984375, 0.0345458984375, -0.025726318359375, -0.022216796875, -0.003543853759765625, 0.020233154296875, -0.029327392578125, -0.04058837890625, -0.0005016326904296875, -0.00502777099609375, 0.04644775390625, 0.027679443359375, 0.016387939453125, -0.029998779296875, -0.01401519775390625, 0.0036029815673828125, -0.0212860107421875, -0.021026611328125, 0.0206298828125, -0.0633544921875, -0.017547607421875, -0.01322174072265625, -0.0338134765625, 0.01432037353515625, -0.0297393798828125, -0.044158935546875, 0.01227569580078125, -0.038604736328125, -0.01532745361328125, 0.01328277587890625, -0.0171661376953125, 0.04559326171875, -0.0394287109375, -0.0321044921875, 0.018310546875, 0.005764007568359375, -0.01322174072265625, -0.0129852294921875, 0.0079803466796875, 0.01236724853515625, -0.005489349365234375, 0.00811767578125, 0.01096343994140625, 0.0065460205078125, 0.005523681640625, -0.00936126708984375, -0.033660888671875, 0.035888671875, 0.00847625732421875, 0.0362548828125, 0.020111083984375, 0.044158935546875, 0.0386962890625, 0.037750244140625, -0.0265350341796875, 0.007659912109375, -0.0184478759765625, 0.03131103515625, -0.031982421875, 0.007293701171875, 0.005123138427734375, -0.015960693359375, 0.00775146484375, -0.0083770751953125, 0.04022216796875, -0.01416778564453125, 0.002750396728515625, 0.0118865966796875, 0.00794219970703125, 0.01812744140625 ]
9baa2544e1c5ee8934854282a210aa75925b8151
Wordpress Stackexchange Q: Automatic Logout on from another active session I have a made application over Wordpress for premium user where user can see page after logging into his account. but there is issue that same user can login form multiple computer, so I want to make function for the user session, when user login in Wordpress then expires all other sessions, By this way I can prevent miss use of my Wordpress application. I want a function that would make only one current active session. A: Answer has been updated because don't need to write function, only use wp_destroy_all_other_sessions function with initlike this add_action('init', 'wp_destroy_all_other_sessions'); Developed its plugin and publish on WordPress Download here :One Active session
Q: Automatic Logout on from another active session I have a made application over Wordpress for premium user where user can see page after logging into his account. but there is issue that same user can login form multiple computer, so I want to make function for the user session, when user login in Wordpress then expires all other sessions, By this way I can prevent miss use of my Wordpress application. I want a function that would make only one current active session. A: Answer has been updated because don't need to write function, only use wp_destroy_all_other_sessions function with initlike this add_action('init', 'wp_destroy_all_other_sessions'); Developed its plugin and publish on WordPress Download here :One Active session
wordpress
{ "language": "en", "length": 116, "provenance": "stackexchange_00019.jsonl.gz:457134", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193931" }
[ 0.087890625, 0.03204345703125, 0.026885986328125, -0.00921630859375, 0.044830322265625, -0.0400390625, 0.083740234375, -0.0504150390625, -0.01499176025390625, -0.0026226043701171875, -0.0036792755126953125, 0.000530242919921875, -0.0307769775390625, -0.040802001953125, 0.01751708984375, -0.037017822265625, 0.029937744140625, -0.014251708984375, 0.0229949951171875, -0.00936126708984375, -0.0020198822021484375, 0.00116729736328125, 0.0261688232421875, 0.040130615234375, 0.01152801513671875, 0.0021419525146484375, 0.0379638671875, -0.00482940673828125, 0.01543426513671875, 0.00554656982421875, 0.022705078125, -0.0236968994140625, -0.01904296875, 0.0457763671875, -0.0010557174682617188, 0.00769805908203125, -0.0241546630859375, 0.039031982421875, 0.044677734375, 0.00829315185546875, 0.034576416015625, -0.007610321044921875, 0.0024051666259765625, 0.003055572509765625, -0.0189056396484375, -0.03289794921875, 0.026641845703125, -0.03289794921875, 0.0148162841796875, -0.0127105712890625, 0.01971435546875, 0.0243988037109375, 0.031646728515625, -0.022857666015625, -0.006351470947265625, 0.01105499267578125, 0.0086517333984375, 0.01526641845703125, 0.06219482421875, -0.03948974609375, -0.05755615234375, -0.046234130859375, 0.035858154296875, -0.0264434814453125, -0.03314208984375, 0.00931549072265625, -0.06890869140625, 0.018829345703125, -0.0361328125, -0.043060302734375, 0.01085662841796875, -0.046295166015625, 0.002017974853515625, 0.0501708984375, -0.043426513671875, -0.0399169921875, 0.02239990234375, 0.01236724853515625, 0.0290985107421875, 0.016265869140625, -0.01470947265625, 0.0016736984252929688, -0.0650634765625, -0.00847625732421875, 0.001434326171875, 0.00838470458984375, -0.018768310546875, -0.005489349365234375, -0.0229949951171875, -0.0281982421875, -0.025146484375, -0.044708251953125, 0.01107025146484375, -0.006816864013671875, -0.035125732421875, -0.0272369384765625, 0.02911376953125, 0.039154052734375, 0.026214599609375, -0.0025234222412109375, -0.0159454345703125, -0.0301971435546875, -0.0313720703125, -0.0230560302734375, -0.025665283203125, 0.067626953125, 0.044097900390625, 0.0118408203125, -0.031646728515625, -0.005840301513671875, 0.00981903076171875, -0.046844482421875, -0.004131317138671875, -0.0207672119140625, -0.00009000301361083984, 0.0160064697265625, -0.036865234375, 0.051300048828125, 0.00501251220703125, 0.03277587890625, -0.0400390625, -0.0263519287109375, -0.0184173583984375, 0.01036834716796875, 0.0008177757263183594, -0.0255126953125, -0.0124664306640625, 0.0287017822265625, -0.01557159423828125, 0.00836181640625, -0.035980224609375, 0.0360107421875, 0.05987548828125, -0.01294708251953125, -0.017578125, -0.01160430908203125, 0.038726806640625, 0.00965118408203125, 0.01250457763671875, 0.0186309814453125, 0.013092041015625, -0.0789794921875, -0.049407958984375, 0.0469970703125, 0.024261474609375, 0.011322021484375, 0.0231475830078125, 0.01611328125, -0.0158538818359375, -0.0006923675537109375, -0.00152587890625, 0.02471923828125, -0.005847930908203125, 0.007419586181640625, 0.03863525390625, -0.003055572509765625, 0.034698486328125, -0.0237579345703125, 0.01465606689453125, -0.003040313720703125, 0.026397705078125, -0.0151824951171875, -0.0222930908203125, 0.001964569091796875, -0.03704833984375, -0.0095977783203125, -0.0236358642578125, -0.0046234130859375, 0.04547119140625, 0.006259918212890625, 0.0008578300476074219, -0.0162200927734375, 0.117431640625, 0.0380859375, -0.004917144775390625, 0.04620361328125, -0.051971435546875, 0.043304443359375, 0.033172607421875, -0.0174407958984375, -0.0012235641479492188, -0.035186767578125, 0.036590576171875, 0.0063934326171875, -0.034332275390625, 0.04351806640625, 0.0004494190216064453, 0.035614013671875, -0.0003783702850341797, 0.006862640380859375, 0.0022830963134765625, 0.032867431640625, 0.01233673095703125, 0.01467132568359375, 0.00811767578125, -0.051055908203125, 0.0306854248046875, 0.00640106201171875, -0.004791259765625, -0.0162200927734375, 0.055908203125, 0.0078887939453125, -0.01140594482421875, -0.037994384765625, -0.0953369140625, -0.006683349609375, -0.01491546630859375, 0.0291748046875, -0.00843048095703125, 0.01279449462890625, 0.007373809814453125, -0.0174713134765625, 0.0111541748046875, -0.061065673828125, -0.020263671875, -0.001682281494140625, -0.042877197265625, 0.0758056640625, -0.005321502685546875, 0.078369140625, -0.018035888671875, -0.027557373046875, 0.0109405517578125, -0.05963134765625, 0.038787841796875, -0.0282745361328125, -0.0203094482421875, -0.037261962890625, -0.01212310791015625, -0.00870513916015625, -0.056121826171875, 0.07421875, 0.006053924560546875, -0.0279998779296875, -0.06585693359375, -0.003482818603515625, -0.051666259765625, -0.0201873779296875, -0.03399658203125, 0.064453125, 0.03973388671875, 0.01543426513671875, -0.008392333984375, 0.0228424072265625, 0.0171966552734375, -0.07025146484375, -0.010772705078125, 0.0299530029296875, -0.00601959228515625, 0.0225830078125, -0.0085906982421875, 0.01163482666015625, 0.02923583984375, -0.041717529296875, 0.0154571533203125, 0.04400634765625, -0.02642822265625, -0.020721435546875, -0.0084686279296875, -0.0186920166015625, 0.0224151611328125, -0.0772705078125, -0.0428466796875, -0.015533447265625, 0.0290679931640625, -0.045562744140625, 0.0019702911376953125, -0.017974853515625, 0.0015249252319335938, -0.022979736328125, 0.0164337158203125, -0.05975341796875, -0.00637054443359375, 0.027740478515625, 0.01483917236328125, -0.0435791015625, -0.007457733154296875, 0.007396697998046875, -0.03472900390625, -0.0029315948486328125, -0.00698089599609375, 0.0247039794921875, -0.018402099609375, -0.0223541259765625, 0.00388336181640625, -0.0052337646484375, -0.0033893585205078125, -0.0177154541015625, -0.00799560546875, -0.047454833984375, 0.006259918212890625, 0.0056610107421875, -0.044036865234375, 0.02557373046875, 0.037841796875, -0.0460205078125, 0.0242156982421875, -0.03887939453125, 0.0303802490234375, -0.0455322265625, 0.036376953125, 0.053985595703125, -0.0118865966796875, 0.003963470458984375, -0.026092529296875, 0.0528564453125, -0.0018768310546875, -0.0301513671875, -0.031280517578125, -0.002410888671875, -0.044830322265625, -0.01329803466796875, 0.027374267578125, 0.089599609375, -0.04266357421875, -0.05859375, -0.026214599609375, 0.0264739990234375, -0.044403076171875, -0.0205078125, -0.0180206298828125, -0.07745361328125, 0.02593994140625, -0.022003173828125, -0.0188446044921875, 0.0031795501708984375, 0.0253143310546875, 0.025787353515625, 0.005290985107421875, -0.0253753662109375, 0.02276611328125, 0.0017290115356445312, -0.0046844482421875, -0.0003113746643066406, 0.0144500732421875, -0.022735595703125, 0.00543212890625, 0.067138671875, -0.0075531005859375, -0.052337646484375, -0.01422119140625, 0.01116180419921875, -0.017791748046875, 0.0028743743896484375, -0.0193328857421875, -0.019927978515625, -0.00042510032653808594, -0.0006761550903320312, 0.03155517578125, -0.01551055908203125, 0.0207061767578125, -0.0033893585205078125, 0.0178070068359375, -0.0218353271484375, 0.03521728515625, 0.002773284912109375, -0.045196533203125, 0.0115509033203125, 0.025146484375, -0.035858154296875, 0.03656005859375, -0.005512237548828125, -0.020416259765625, -0.0132293701171875, 0.0255889892578125, -0.035064697265625, -0.02410888671875, -0.02923583984375, -0.0081329345703125, 0.0079345703125, -0.00824737548828125, -0.00440216064453125, 0.02044677734375, -0.017242431640625, -0.020111083984375, 0.005096435546875, 0.06048583984375, 0.0108184814453125, 0.00011795759201049805, 0.0098114013671875, 0.030487060546875, -0.019195556640625, 0.0034389495849609375, -0.09039306640625, -0.018585205078125, 0.033355712890625, -0.0190277099609375, -0.01202392578125, -0.005268096923828125, -0.0135498046875, 0.0019502639770507812, 0.0650634765625, -0.0293426513671875, -0.0286712646484375, 0.018646240234375, 0.00972747802734375, 0.0023670196533203125, 0.032012939453125, -0.044342041015625, -0.0265045166015625, -0.0439453125, -0.0098419189453125, -0.0173492431640625, -0.00782012939453125, -0.0296630859375, 0.005100250244140625, -0.01507568359375, -0.033782958984375, 0.01345062255859375, -0.059722900390625, 0.01149749755859375, -0.01103973388671875, -0.0202789306640625, -0.0282745361328125, 0.024200439453125, -0.06646728515625, -0.03021240234375, 0.02557373046875, -0.10479736328125, 0.02703857421875, 0.06793212890625, -0.0198516845703125, 0.0160064697265625, 0.01024627685546875, -0.024505615234375, 0.051239013671875, -0.01380157470703125, 0.0121917724609375, 0.0386962890625, 0.032623291015625, 0.0093536376953125, 0.001972198486328125, 0.0104217529296875, -0.02313232421875, -0.040283203125, -0.0173797607421875, -0.03887939453125, 0.0208587646484375, -0.014984130859375, -0.0311279296875, -0.01544952392578125, -0.0291595458984375, -0.004993438720703125, 0.0287017822265625, -0.006908416748046875, 0.00678253173828125, -0.034698486328125, -0.03387451171875, 0.04736328125, 0.017486572265625, -0.02008056640625, 0.0102081298828125, 0.0292205810546875, 0.004909515380859375, -0.0299530029296875, -0.03277587890625, 0.000560760498046875, 0.01580810546875, -0.0266876220703125, 0.01953125, -0.017608642578125, -0.019622802734375, 0.059722900390625, -0.0245361328125, -0.017333984375, -0.03570556640625, 0.05078125, -0.0250244140625, -0.020294189453125, 0.00043702125549316406, -0.068603515625, 0.05572509765625, -0.015411376953125, -0.005817413330078125, 0.00855255126953125, 0.00965118408203125, 0.00276947021484375, 0.0265655517578125, -0.0286712646484375, -0.0212860107421875, -0.034698486328125, 0.0147857666015625, 0.00872802734375, 0.0174407958984375, 0.03253173828125, -0.005825042724609375, 0.0234527587890625, 0.001163482666015625, -0.0042724609375, -0.0016613006591796875, 0.0166473388671875, -0.033172607421875, 0.037261962890625, -0.0189666748046875, -0.0175933837890625, -0.005573272705078125, -0.0160675048828125, 0.08319091796875, -0.0015554428100585938, -0.076416015625, 0.0248870849609375, -0.033203125, 0.02313232421875, 0.033233642578125, -0.0223236083984375, 0.0247039794921875, 0.0032176971435546875, -0.00010949373245239258, -0.01331329345703125, -0.029541015625, -0.003711700439453125, -0.0291900634765625, -0.0308685302734375, -0.0283355712890625, 0.0014524459838867188, 0.0287017822265625, 0.0343017578125, 0.00464630126953125, 0.042999267578125, -0.032073974609375, 0.05792236328125, -0.00606536865234375, 0.0288848876953125, 0.0102386474609375, 0.0140380859375, -0.021728515625, 0.0161285400390625, -0.041351318359375, -0.0360107421875, -0.032745361328125, 0.0311279296875, 0.044647216796875, -0.0035724639892578125, 0.00798797607421875, 0.007099151611328125, 0.007511138916015625, -0.005023956298828125, 0.06109619140625, 0.022918701171875, -0.053955078125, -0.01355743408203125, 0.0213470458984375, 0.0311279296875, -0.034820556640625, -0.00901031494140625, 0.0024509429931640625, -0.03411865234375, -0.0032711029052734375, 0.04473876953125, -0.027801513671875, -0.02288818359375, -0.0201263427734375, -0.043914794921875, -0.0352783203125, -0.011566162109375, -0.03045654296875, -0.00417327880859375, -0.007434844970703125, -0.031280517578125, 0.00507354736328125, -0.026214599609375, -0.007720947265625, -0.00119781494140625, 0.0018768310546875, 0.00444793701171875, 0.0177764892578125, 0.026123046875, -0.016632080078125, -0.06951904296875, 0.00431060791015625, -0.048309326171875, 0.0025234222412109375, -0.056884765625, -0.05865478515625, -0.03594970703125, -0.0091552734375, 0.03326416015625, 0.03204345703125, -0.01261138916015625, -0.030303955078125, -0.006710052490234375, 0.0214080810546875, 0.026763916015625, 0.06976318359375, -0.0229339599609375, 0.058135986328125, -0.0003972053527832031, 0.0562744140625, 0.01317596435546875, 0.027191162109375, -0.0198211669921875, -0.01522064208984375, 0.01386260986328125, -0.0095977783203125, -0.03704833984375, -0.0013713836669921875, -0.032501220703125, -0.003528594970703125, 0.06121826171875, -0.013397216796875, -0.0009250640869140625, -0.00995635986328125, -0.0016336441040039062, -0.01302337646484375, 0.0132598876953125, 0.061187744140625, 0.02362060546875, 0.005718231201171875, 0.0081634521484375, 0.043792724609375, -0.01517486572265625, -0.005809783935546875, 0.0122833251953125, -0.00629425048828125, 0.028961181640625, -0.0206756591796875, -0.016876220703125, 0.01132965087890625, 0.021270751953125, -0.00644683837890625, 0.030548095703125, 0.0054473876953125, 0.018890380859375, 0.037109375, -0.00960540771484375, -0.01210784912109375, -0.0199737548828125, 0.025360107421875, -0.00785064697265625, -0.014495849609375, 0.01001739501953125, -0.01837158203125, 0.00922393798828125, 0.06353759765625, 0.0601806640625, -0.104248046875, 0.029876708984375, 0.0083465576171875, 0.02191162109375, 0.041259765625, -0.02740478515625, 0.0262603759765625, -0.0030460357666015625, 0.0178680419921875, 0.01488494873046875, -0.03228759765625, -0.008880615234375, -0.0184173583984375, -0.01097869873046875, -0.00992584228515625, 0.0006303787231445312, 0.0153045654296875, -0.06707763671875, 0.043853759765625, 0.0341796875, 0.0023403167724609375, -0.037506103515625, -0.038299560546875, 0.044464111328125, -0.020965576171875, -0.0633544921875, 0.041473388671875, -0.040435791015625, 0.02606201171875, -0.017364501953125, -0.03277587890625, 0.039825439453125, 0.0229339599609375, -0.01183319091796875, -0.010406494140625, 0.004291534423828125, -0.0001245737075805664, -0.054290771484375, -0.026702880859375, 0.016265869140625, 0.051361083984375, -0.048675537109375, 0.0321044921875, -0.03387451171875, 0.0023593902587890625, -0.01015472412109375, -0.036956787109375, 0.052398681640625, -0.06597900390625, 0.0260467529296875, 0.0467529296875, 0.0193939208984375, -0.01461029052734375, -0.0008406639099121094, -0.0156402587890625, -0.0721435546875, -0.05889892578125, -0.0131683349609375, -0.060150146484375, 0.0341796875, 0.01377105712890625, -0.06982421875, 0.09149169921875, 0.0074310302734375, 0.0267791748046875, -0.005481719970703125, 0.037109375, -0.036651611328125, 0.01410675048828125, -0.052703857421875, 0.06268310546875, -0.0155029296875, 0.057281494140625, -0.042083740234375, 0.009674072265625, 0.019287109375, -0.0027713775634765625, 0.058074951171875, 0.02325439453125, -0.0237579345703125, -0.044281005859375, -0.0447998046875, 0.01218414306640625, -0.032379150390625, 0.043304443359375, 0.01055908203125, -0.0019378662109375, 0.00791168212890625, -0.01273345947265625, 0.018646240234375, -0.01291656494140625, -0.01274871826171875, 0.04681396484375, -0.000988006591796875, -0.01983642578125, -0.034515380859375, 0.016204833984375, -0.07427978515625, -0.0038604736328125, 0.013427734375, 0.03564453125, 0.0178680419921875, -0.004947662353515625, 0.026092529296875, -0.0169219970703125, 0.01291656494140625, -0.018341064453125, 0.03704833984375, 0.0042877197265625, -0.024932861328125, 0.070068359375, 0.0293426513671875, -0.047149658203125, -0.0200042724609375, 0.00027441978454589844, -0.0222015380859375, -0.014434814453125, 0.0413818359375, 0.0340576171875, 0.041595458984375, -0.0216217041015625, -0.0216064453125, 0.005458831787109375, 0.038330078125, -0.0222015380859375, -0.06378173828125, 0.00005370378494262695, 0.01873779296875, 0.0462646484375, 0.043609619140625, 0.07171630859375, -0.031585693359375, 0.0282440185546875, -0.0159912109375, 0.0258026123046875, 0.0303497314453125, 0.002017974853515625, 0.0115814208984375, 0.0419921875, -0.08056640625, 0.0229644775390625, -0.00731658935546875, -0.01160430908203125, -0.006195068359375, -0.0139923095703125, 0.0059051513671875, 0.0150909423828125, 0.035736083984375, 0.00666046142578125, -0.022918701171875, 0.0621337890625, -0.0001468658447265625, 0.0225677490234375, -0.06439208984375, -0.067138671875, 0.01739501953125, 0.05645751953125, -0.011260986328125, -0.0540771484375, 0.02081298828125, 0.01464080810546875, -0.080810546875, -0.034942626953125, 0.0223236083984375, -0.031402587890625, 0.0159454345703125, -0.00238037109375, -0.0029449462890625, 0.01934814453125, -0.01554107666015625, -0.030120849609375, 0.038482666015625, 0.013519287109375, -0.002391815185546875, 0.013702392578125, 0.01299285888671875, 0.007110595703125, 0.003795623779296875, 0.0193023681640625, -0.01523590087890625, 0.044647216796875, -0.0494384765625, 0.00868988037109375, -0.06048583984375, -0.0306854248046875, 0.0307159423828125, 0.0406494140625, -0.0191497802734375, 0.0196533203125, 0.046356201171875, 0.015899658203125, -0.01413726806640625, -0.0110321044921875, 0.009552001953125, -0.05279541015625, 0.01064300537109375, 0.0034847259521484375, -0.061492919921875, -0.0352783203125, -0.0179595947265625, 0.030517578125, 0.0166778564453125, 0.003993988037109375, 0.01537322998046875, 0.0374755859375, 0.00563812255859375, 0.006191253662109375, -0.0172119140625, -0.003086090087890625, 0.0226287841796875, -0.0147552490234375, -0.0175323486328125, -0.008697509765625, -0.039093017578125, 0.052642822265625, 0.006137847900390625, 0.024322509765625, 0.0447998046875, -0.021453857421875, 0.0043487548828125, 0.00960540771484375, 0.00594329833984375, -0.01580810546875, 0.002063751220703125, -0.0179901123046875, -0.0220489501953125, 0.032470703125, 0.01132965087890625, -0.00882720947265625, 0.04931640625, -0.003322601318359375, 0.002468109130859375, 0.00022470951080322266, -0.035552978515625, -0.01343536376953125, 0.0205230712890625, 0.00009202957153320312, -0.0002505779266357422, 0.00738525390625, -0.0133819580078125, -0.01273345947265625, 0.01904296875, -0.0036468505859375, -0.0003066062927246094, 0.0101776123046875, 0.03802490234375, 0.0267791748046875, 0.046844482421875, -0.005420684814453125, 0.022125244140625, 0.0159454345703125, 0.01328277587890625, 0.01605224609375, -0.07403564453125, -0.036895751953125, -0.054656982421875, 0.0207977294921875, 0.039825439453125, -0.006595611572265625, -0.0236968994140625, -0.053253173828125, 0.02069091796875, 0.0316162109375, 0.01134490966796875, -0.044952392578125, 0.0274658203125, -0.037567138671875, 0.021240234375, 0.012054443359375, -0.046417236328125, 0.0084075927734375, 0.0177001953125, -0.0200653076171875, -0.02032470703125, -0.0300445556640625, -0.0015344619750976562, -0.037811279296875, -0.026031494140625, 0.009979248046875, 0.0163421630859375, 0.0012416839599609375, -0.0158843994140625, -0.01580810546875, 0.0288848876953125, -0.043914794921875, -0.00945281982421875, 0.031463623046875, 0.0016021728515625, -0.0018262863159179688, -0.01226043701171875, -0.006488800048828125, 0.054718017578125, 0.0011034011840820312, 0.0093536376953125, -0.0178070068359375, 0.00018966197967529297, -0.030517578125, -0.01708984375, 0.06256103515625, 0.019073486328125, -0.01433563232421875, -0.06414794921875, 0.047821044921875, 0.0154571533203125, -0.072998046875, -0.035400390625, 0.0010080337524414062, 0.00785064697265625, 0.0270233154296875, 0.01300048828125, 0.01259613037109375, 0.0140533447265625, 0.04412841796875, -0.022064208984375, 0.04913330078125, 0.0251922607421875, -0.0158538818359375, -0.0027828216552734375, 0.00507354736328125, 0.026275634765625, 0.07318115234375, 0.0159149169921875, 0.0170440673828125, 0.008697509765625, -0.06658935546875, -0.023101806640625, -0.022308349609375, 0.006534576416015625, 0.00835418701171875, 0.06683349609375, 0.033905029296875, 0.0181884765625, -0.04150390625, -0.022735595703125, -0.0267333984375, 0.004314422607421875, -0.0022640228271484375, 0.007320404052734375, -0.052581787109375, 0.00824737548828125, 0.0070037841796875, -0.01873779296875, -0.036102294921875, 0.031494140625, -0.0259857177734375, 0.0003666877746582031, 0.0367431640625, -0.0023632049560546875, -0.01143646240234375, 0.040863037109375, 0.0170745849609375, -0.0285186767578125, -0.0282440185546875, 0.0076446533203125, -0.0150146484375, -0.0174713134765625, 0.0046844482421875, 0.047088623046875, 0.04522705078125, -0.0975341796875, -0.004512786865234375, 0.0098114013671875, -0.0024433135986328125, -0.04705810546875, -0.040740966796875, -0.01125335693359375, 0.01291656494140625, 0.008575439453125, 0.00849151611328125, -0.00482940673828125, 0.00862884521484375, 0.01861572265625, -0.02294921875, 0.0266876220703125, -0.0078125, -0.01947021484375, 0.04547119140625, 0.016571044921875, -0.047576904296875, 0.037506103515625, -0.048248291015625, 0.00030517578125, 0.0126953125, -0.006496429443359375, -0.062103271484375, 0.064453125, 0.03448486328125, 0.02508544921875, 0.041961669921875 ]
8cafce727aa97c550848a2969444f9478b86613b
Wordpress Stackexchange Q: Namespaces in WordPress - How do I initiate the main class? I have very basic knowledge of OOP in PHP and am trying to learn to use namespaces in WordPress plugins. Followed some instructions from these 2 sources: * *WPSE 63668 *Paulund This is how my current code looks: Root Folder: plugins/oowp File: oowp/bootstrap.php <?php /* Plugin name: OOWP */ require_once('autoload.php'); File: oowp/autoload.php <?php spl_autoload_register('autoload_function'); function autoload_function( $classname ) { $class = str_replace( '\\', DIRECTORY_SEPARATOR, str_replace( '_', '-', strtolower($classname) ) ); // create the actual filepath $filePath = WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . $class . '.php'; // check if the file exists if(file_exists($filePath)) { // require once on the file require_once $filePath; } } File: oowp/objects/custom-objects.php <?php namespace oowp\objects; class Custom_Objects { public function __construct() { add_action('plugins_loaded', array($this, 'trial')); } public function trial() { echo 'Works'; } } How and where do I initiate this class? Do I need to write another class which starts the processing? I tried creating the instance of the custom-objects class in the file itself but it doesn't work. A: Give it a try like so: File: oowp/bootstrap.php <?php /* Plugin name: OOWP */ require_once( 'autoload.php' ); use oowp\objects\Custom_Objects; new Custom_Objects;
Q: Namespaces in WordPress - How do I initiate the main class? I have very basic knowledge of OOP in PHP and am trying to learn to use namespaces in WordPress plugins. Followed some instructions from these 2 sources: * *WPSE 63668 *Paulund This is how my current code looks: Root Folder: plugins/oowp File: oowp/bootstrap.php <?php /* Plugin name: OOWP */ require_once('autoload.php'); File: oowp/autoload.php <?php spl_autoload_register('autoload_function'); function autoload_function( $classname ) { $class = str_replace( '\\', DIRECTORY_SEPARATOR, str_replace( '_', '-', strtolower($classname) ) ); // create the actual filepath $filePath = WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . $class . '.php'; // check if the file exists if(file_exists($filePath)) { // require once on the file require_once $filePath; } } File: oowp/objects/custom-objects.php <?php namespace oowp\objects; class Custom_Objects { public function __construct() { add_action('plugins_loaded', array($this, 'trial')); } public function trial() { echo 'Works'; } } How and where do I initiate this class? Do I need to write another class which starts the processing? I tried creating the instance of the custom-objects class in the file itself but it doesn't work. A: Give it a try like so: File: oowp/bootstrap.php <?php /* Plugin name: OOWP */ require_once( 'autoload.php' ); use oowp\objects\Custom_Objects; new Custom_Objects;
wordpress
{ "language": "en", "length": 196, "provenance": "stackexchange_00019.jsonl.gz:457152", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/193997" }
[ 0.037139892578125, -0.007434844970703125, -0.0213165283203125, -0.040191650390625, 0.01134490966796875, -0.019378662109375, 0.033721923828125, 0.0148773193359375, -0.037567138671875, -0.01221466064453125, -0.056365966796875, 0.04150390625, -0.048065185546875, -0.013916015625, 0.043853759765625, -0.03485107421875, 0.028472900390625, -0.038848876953125, 0.0230712890625, -0.013763427734375, 0.01360321044921875, 0.00876617431640625, 0.030853271484375, 0.02398681640625, 0.0190582275390625, -0.04791259765625, 0.071533203125, -0.00556182861328125, 0.0080108642578125, -0.0272369384765625, 0.020172119140625, 0.0065765380859375, 0.0187835693359375, 0.029144287109375, -0.0167083740234375, -0.0018720626831054688, -0.003398895263671875, 0.0189666748046875, 0.0033588409423828125, 0.0263214111328125, 0.043548583984375, -0.0194854736328125, -0.01287078857421875, 0.05975341796875, -0.01491546630859375, -0.046600341796875, 0.044403076171875, -0.025970458984375, 0.0049896240234375, -0.003997802734375, 0.0253753662109375, 0.0179443359375, 0.04022216796875, -0.0787353515625, 0.00646209716796875, 0.0037689208984375, -0.04083251953125, 0.043701171875, 0.0033435821533203125, 0.05499267578125, -0.007732391357421875, 0.01459503173828125, -0.01035308837890625, -0.0263214111328125, 0.01107025146484375, -0.0300750732421875, 0.005176544189453125, 0.05364990234375, -0.04937744140625, -0.0022449493408203125, 0.036407470703125, -0.0258941650390625, -0.0102386474609375, -0.001201629638671875, 0.020477294921875, -0.0029888153076171875, 0.0013179779052734375, -0.0162506103515625, 0.004108428955078125, 0.045562744140625, 0.0171966552734375, 0.004451751708984375, -0.03118896484375, 0.00830841064453125, -0.022857666015625, 0.038330078125, -0.0117340087890625, -0.042144775390625, 0.0106201171875, 0.003154754638671875, -0.0215911865234375, 0.0248565673828125, 0.03631591796875, -0.0177459716796875, -0.040252685546875, -0.0186920166015625, -0.0246734619140625, -0.003143310546875, -0.004878997802734375, 0.0008292198181152344, 0.01727294921875, -0.044708251953125, 0.0279693603515625, -0.00440216064453125, 0.006214141845703125, 0.059600830078125, -0.01540374755859375, -0.028900146484375, 0.01486968994140625, 0.0247650146484375, 0.0256805419921875, -0.05023193359375, 0.0221405029296875, -0.041778564453125, 0.0015735626220703125, -0.006256103515625, 0.00743865966796875, 0.01200103759765625, 0.0171051025390625, -0.03729248046875, -0.0114288330078125, -0.00449371337890625, 0.0168304443359375, -0.0226593017578125, -0.0013875961303710938, -0.028228759765625, -0.0167083740234375, -0.01342010498046875, 0.00040602684020996094, 0.00616455078125, -0.01360321044921875, 0.01214599609375, 0.043731689453125, 0.024261474609375, -0.0132598876953125, -0.0175933837890625, 0.045806884765625, 0.011260986328125, 0.004222869873046875, -0.005901336669921875, 0.0229949951171875, -0.0233306884765625, -0.04119873046875, 0.01500701904296875, 0.027557373046875, -0.01107025146484375, 0.0213623046875, 0.037017822265625, 0.0056915283203125, -0.0179901123046875, 0.03704833984375, -0.010162353515625, 0.0014047622680664062, 0.0229644775390625, 0.0097198486328125, 0.0272979736328125, 0.034210205078125, -0.01493072509765625, -0.013336181640625, -0.0112152099609375, -0.0270233154296875, -0.025665283203125, -0.0066986083984375, -0.0384521484375, -0.04638671875, 0.028564453125, 0.016510009765625, 0.0098114013671875, 0.00865936279296875, -0.0256195068359375, -0.0114288330078125, 0.048492431640625, 0.039825439453125, 0.0281982421875, 0.02130126953125, 0.00830078125, -0.005596160888671875, -0.00351715087890625, 0.030731201171875, 0.043548583984375, 0.0044097900390625, -0.021759033203125, 0.059722900390625, -0.024078369140625, -0.01271820068359375, -0.001934051513671875, -0.0059814453125, -0.0303802490234375, 0.01519012451171875, -0.004138946533203125, 0.005702972412109375, 0.05059814453125, -0.0653076171875, 0.0169677734375, -0.044586181640625, 0.029266357421875, 0.0122222900390625, 0.044891357421875, -0.0196533203125, -0.004619598388671875, 0.0013742446899414062, -0.01580810546875, 0.0171661376953125, -0.0007042884826660156, -0.05096435546875, -0.0135498046875, -0.016632080078125, 0.0204315185546875, 0.046600341796875, 0.034912109375, -0.0155181884765625, -0.0050201416015625, 0.0004115104675292969, -0.030853271484375, -0.02227783203125, 0.0016269683837890625, 0.0102081298828125, 0.06243896484375, 0.029571533203125, 0.022216796875, 0.0460205078125, -0.0214385986328125, 0.038421630859375, -0.0090484619140625, 0.007511138916015625, 0.0028781890869140625, -0.007183074951171875, 0.0010480880737304688, 0.0131988525390625, 0.015960693359375, 0.01334381103515625, 0.00272369384765625, 0.0208282470703125, 0.001415252685546875, -0.038238525390625, -0.0266265869140625, -0.007965087890625, -0.059783935546875, 0.0044403076171875, 0.046630859375, 0.0249786376953125, 0.022552490234375, -0.0038814544677734375, -0.01152801513671875, 0.050689697265625, 0.01522064208984375, 0.031768798828125, -0.0209808349609375, -0.01181793212890625, -0.0034465789794921875, -0.03631591796875, 0.0074920654296875, 0.0531005859375, 0.0215911865234375, -0.0012836456298828125, 0.05218505859375, -0.022186279296875, -0.0731201171875, 0.00887298583984375, 0.001079559326171875, 0.023834228515625, -0.037567138671875, -0.050140380859375, 0.00665283203125, 0.036346435546875, 0.0118865966796875, 0.032562255859375, 0.039337158203125, -0.016357421875, 0.0247344970703125, -0.00946044921875, -0.031890869140625, -0.02740478515625, 0.00168609619140625, 0.0232391357421875, -0.06268310546875, -0.05316162109375, 0.034637451171875, -0.0391845703125, -0.037689208984375, -0.0211181640625, 0.04302978515625, -0.031524658203125, -0.0252532958984375, -0.0233154296875, -0.0439453125, 0.0021514892578125, -0.0190887451171875, -0.0013761520385742188, -0.01800537109375, 0.00720977783203125, 0.032012939453125, -0.054656982421875, 0.07879638671875, -0.0305633544921875, -0.0164031982421875, -0.0018224716186523438, -0.00411224365234375, 0.01071929931640625, -0.0203704833984375, 0.0233001708984375, 0.039306640625, -0.0038280487060546875, -0.0028743743896484375, 0.0149688720703125, -0.0202484130859375, 0.0028209686279296875, 0.0227813720703125, 0.006633758544921875, -0.0106964111328125, -0.042236328125, 0.0180816650390625, 0.0284423828125, 0.09326171875, -0.0132598876953125, -0.0657958984375, 0.01678466796875, 0.04498291015625, -0.03143310546875, -0.06866455078125, 0.04998779296875, -0.044921875, -0.0155792236328125, -0.0183563232421875, -0.0496826171875, -0.01288604736328125, 0.0030670166015625, -0.01114654541015625, 0.0016260147094726562, -0.042999267578125, -0.006999969482421875, -0.06341552734375, -0.057525634765625, -0.04974365234375, 0.026947021484375, -0.007511138916015625, 0.00640106201171875, 0.0090789794921875, -0.00447845458984375, 0.01099395751953125, 0.03253173828125, 0.03009033203125, 0.0038738250732421875, -0.0298919677734375, 0.01474761962890625, -0.0300445556640625, -0.01357269287109375, -0.01479339599609375, 0.077880859375, 0.0250244140625, -0.047332763671875, 0.01050567626953125, 0.016357421875, -0.0236358642578125, 0.014923095703125, 0.01971435546875, -0.026275634765625, -0.01520538330078125, 0.0159454345703125, -0.056121826171875, -0.0029659271240234375, 0.0084991455078125, -0.0167999267578125, -0.04827880859375, -0.035888671875, -0.004779815673828125, -0.013458251953125, 0.019378662109375, -0.02947998046875, -0.00888824462890625, -0.00868988037109375, -0.0238494873046875, 0.01409149169921875, -0.016876220703125, -0.013916015625, 0.02655029296875, 0.0640869140625, -0.01336669921875, -0.01476287841796875, 0.01229095458984375, -0.018829345703125, -0.0219879150390625, -0.025421142578125, -0.0673828125, -0.037841796875, 0.043792724609375, -0.03143310546875, 0.01352691650390625, -0.0341796875, -0.0401611328125, -0.005687713623046875, 0.08441162109375, -0.062042236328125, -0.01285552978515625, 0.037384033203125, 0.020904541015625, -0.0572509765625, -0.0184173583984375, -0.0721435546875, -0.00940704345703125, -0.0408935546875, 0.0003662109375, -0.0048065185546875, -0.045623779296875, 0.00016939640045166016, -0.035400390625, -0.05535888671875, -0.029449462890625, 0.01971435546875, -0.045166015625, 0.0146331787109375, -0.00804901123046875, 0.00020992755889892578, -0.051239013671875, 0.0189208984375, -0.034210205078125, -0.158203125, -0.0204010009765625, -0.058074951171875, 0.119140625, 0.032958984375, -0.038360595703125, -0.0268096923828125, 0.06903076171875, 0.0206146240234375, 0.028778076171875, 0.0016241073608398438, -0.01383209228515625, 0.030303955078125, -0.0081024169921875, 0.0009069442749023438, -0.0093231201171875, 0.03521728515625, -0.003070831298828125, -0.056182861328125, 0.0159454345703125, -0.039764404296875, 0.0252227783203125, -0.009490966796875, -0.0609130859375, 0.01259613037109375, -0.010650634765625, -0.0069427490234375, 0.0186614990234375, -0.0333251953125, 0.01268768310546875, 0.00365447998046875, 0.0060272216796875, -0.01161956787109375, 0.00592041015625, 0.0003268718719482422, 0.0258331298828125, 0.04473876953125, 0.03338623046875, -0.005451202392578125, -0.05224609375, 0.007904052734375, 0.01473236083984375, 0.004184722900390625, 0.00650787353515625, 0.0016336441040039062, 0.001708984375, -0.0292816162109375, -0.0201568603515625, 0.01276397705078125, -0.027069091796875, 0.04119873046875, 0.0003285408020019531, -0.0185394287109375, 0.01509857177734375, -0.006214141845703125, -0.00905609130859375, 0.0340576171875, -0.00579833984375, -0.0379638671875, 0.032623291015625, 0.021209716796875, -0.056427001953125, 0.058197021484375, 0.0229949951171875, -0.060943603515625, 0.026702880859375, -0.03643798828125, 0.0146331787109375, 0.0234832763671875, -0.00411224365234375, 0.027496337890625, -0.0103302001953125, 0.037078857421875, 0.06573486328125, 0.037750244140625, -0.00470733642578125, 0.048828125, 0.078125, 0.0205230712890625, 0.0305938720703125, -0.005405426025390625, 0.1053466796875, -0.00682830810546875, -0.031585693359375, -0.028106689453125, -0.0174102783203125, -0.004291534423828125, 0.032562255859375, -0.050628662109375, 0.05633544921875, 0.07373046875, 0.0089874267578125, 0.00022876262664794922, -0.04998779296875, 0.01511383056640625, -0.040740966796875, 0.046722412109375, 0.01352691650390625, -0.0035915374755859375, -0.0192718505859375, 0.04779052734375, 0.042236328125, 0.004428863525390625, -0.0178070068359375, 0.033660888671875, -0.0245361328125, 0.0478515625, 0.0017633438110351562, -0.01540374755859375, 0.00887298583984375, 0.0207061767578125, -0.008270263671875, -0.0203857421875, -0.0184326171875, -0.01419830322265625, 0.061309814453125, -0.08642578125, -0.04150390625, 0.07421875, -0.04095458984375, -0.025848388671875, 0.0200653076171875, 0.0299530029296875, -0.01678466796875, -0.0261077880859375, 0.00440216064453125, 0.028045654296875, 0.004974365234375, 0.00628662109375, 0.02496337890625, 0.010498046875, 0.041290283203125, -0.033660888671875, -0.0026798248291015625, -0.0160064697265625, 0.0016384124755859375, -0.00452423095703125, -0.031280517578125, 0.00630950927734375, -0.0355224609375, 0.0272369384765625, -0.0295257568359375, -0.0186309814453125, 0.026947021484375, -0.058685302734375, 0.033294677734375, -0.03228759765625, 0.02947998046875, -0.0694580078125, 0.032562255859375, 0.0160980224609375, 0.03167724609375, -0.0040283203125, -0.007755279541015625, -0.0263214111328125, -0.026031494140625, -0.01253509521484375, 0.0001373291015625, -0.0210723876953125, -0.00010150671005249023, -0.009246826171875, -0.005275726318359375, 0.0017347335815429688, 0.0011796951293945312, -0.0085601806640625, 0.0262298583984375, -0.00286102294921875, -0.0308837890625, -0.0028972625732421875, 0.078125, 0.0028476715087890625, 0.0850830078125, 0.05322265625, 0.04376220703125, -0.051513671875, -0.027587890625, -0.010223388671875, -0.0287933349609375, -0.02764892578125, -0.0031490325927734375, -0.03594970703125, 0.051666259765625, 0.113525390625, -0.00225067138671875, 0.002185821533203125, -0.00588226318359375, 0.00357818603515625, -0.021697998046875, 0.017059326171875, -0.045501708984375, -0.020050048828125, -0.042083740234375, -0.049163818359375, 0.00975799560546875, 0.01438140869140625, -0.0138702392578125, 0.06317138671875, -0.04278564453125, 0.039215087890625, 0.03387451171875, -0.0626220703125, 0.051513671875, 0.0509033203125, -0.0131988525390625, 0.047332763671875, -0.0115966796875, 0.006275177001953125, 0.02423095703125, 0.005809783935546875, -0.0226898193359375, -0.01441192626953125, 0.08868408203125, 0.0182037353515625, -0.03472900390625, 0.06585693359375, -0.030029296875, 0.0171051025390625, 0.0657958984375, 0.05230712890625, -0.07781982421875, 0.00788116455078125, -0.004299163818359375, -0.031005859375, 0.007755279541015625, 0.02398681640625, -0.01107025146484375, 0.002521514892578125, 0.005046844482421875, -0.0240478515625, -0.0123443603515625, 0.01361846923828125, 0.020172119140625, -0.015838623046875, 0.0006856918334960938, 0.00882720947265625, 0.0182952880859375, -0.041656494140625, 0.041259765625, 0.01337432861328125, 0.0201416015625, 0.00872039794921875, 0.03448486328125, -0.01258087158203125, 0.00411224365234375, 0.034881591796875, 0.056671142578125, -0.037017822265625, 0.0071868896484375, 0.034454345703125, -0.0223388671875, 0.01473236083984375, 0.0227203369140625, -0.0172576904296875, 0.0220794677734375, -0.0082855224609375, -0.006927490234375, -0.02374267578125, -0.00428009033203125, -0.0028858184814453125, 0.0450439453125, -0.08453369140625, 0.0243988037109375, -0.05413818359375, 0.052734375, 0.003376007080078125, -0.0189666748046875, 0.036468505859375, -0.008209228515625, -0.0221710205078125, 0.035247802734375, -0.045562744140625, -0.01345062255859375, 0.0140838623046875, -0.0193328857421875, -0.031768798828125, 0.0041656494140625, 0.0017833709716796875, -0.04876708984375, 0.01195526123046875, 0.0017108917236328125, -0.048126220703125, 0.10003662109375, 0.02642822265625, 0.007572174072265625, 0.0247039794921875, 0.046173095703125, -0.051513671875, 0.005329132080078125, -0.0270538330078125, 0.023773193359375, -0.021514892578125, 0.0460205078125, -0.05169677734375, 0.0006041526794433594, 0.0009717941284179688, 0.0306549072265625, 0.0230560302734375, 0.004398345947265625, 0.0027618408203125, -0.00977325439453125, -0.02716064453125, -0.007598876953125, -0.04443359375, 0.01555633544921875, -0.00557708740234375, -0.0167999267578125, 0.0102386474609375, 0.00820159912109375, 0.03765869140625, -0.033782958984375, -0.0239715576171875, 0.01512908935546875, 0.01523590087890625, 0.0198211669921875, -0.00699615478515625, 0.01751708984375, -0.0035686492919921875, 0.0020275115966796875, 0.0024051666259765625, 0.0232086181640625, 0.03558349609375, 0.01995849609375, 0.0249786376953125, 0.052459716796875, -0.049285888671875, 0.01247406005859375, 0.02520751953125, 0.0180511474609375, -0.01140594482421875, 0.0172271728515625, -0.0010251998901367188, -0.031982421875, 0.010986328125, -0.01087188720703125, 0.026824951171875, 0.021209716796875, 0.023406982421875, 0.024871826171875, 0.039642333984375, -0.0223388671875, 0.0032196044921875, 0.01494598388671875, 0.0303955078125, -0.0162506103515625, -0.01404571533203125, -0.0003581047058105469, 0.00848388671875, 0.018157958984375, -0.0170745849609375, 0.0155792236328125, 0.019012451171875, 0.0209503173828125, -0.03594970703125, 0.0126953125, 0.042510986328125, -0.00846099853515625, 0.0073699951171875, -0.00783538818359375, -0.02410888671875, 0.01519775390625, 0.0252685546875, 0.002826690673828125, -0.005001068115234375, 0.00537109375, -0.02264404296875, 0.0183258056640625, -0.0657958984375, 0.01611328125, -0.01058197021484375, 0.00653076171875, 0.005733489990234375, 0.011688232421875, 0.01154327392578125, 0.01499176025390625, -0.035675048828125, 0.01947021484375, 0.0257110595703125, 0.040374755859375, 0.055084228515625, 0.0177001953125, -0.002857208251953125, 0.0106658935546875, 0.023040771484375, -0.0238494873046875, -0.0506591796875, -0.007648468017578125, -0.05670166015625, -0.003963470458984375, -0.0175323486328125, 0.0214385986328125, 0.0192108154296875, -0.0082855224609375, -0.030242919921875, 0.036895751953125, -0.00714111328125, -0.053863525390625, -0.007556915283203125, -0.038970947265625, 0.09136962890625, -0.00298309326171875, -0.037628173828125, -0.00457763671875, 0.003139495849609375, -0.06622314453125, 0.02618408203125, 0.050750732421875, -0.00408172607421875, 0.0079345703125, 0.0435791015625, 0.02252197265625, -0.006748199462890625, -0.0233306884765625, 0.0306396484375, 0.0271453857421875, 0.0372314453125, 0.047698974609375, -0.0270233154296875, -0.02001953125, -0.0196380615234375, 0.046173095703125, 0.00890350341796875, 0.045440673828125, -0.03436279296875, 0.0307464599609375, -0.04461669921875, -0.01477813720703125, -0.0231170654296875, -0.029571533203125, -0.01520538330078125, -0.0024871826171875, -0.007213592529296875, 0.0132904052734375, -0.01407623291015625, 0.03466796875, 0.052825927734375, 0.0022411346435546875, 0.0112457275390625, 0.01183319091796875, 0.016571044921875, -0.03485107421875, 0.0372314453125, -0.01470184326171875, -0.04339599609375, -0.0340576171875, -0.009765625, 0.02142333984375, 0.0321044921875, -0.019561767578125, 0.0254974365234375, 0.00908660888671875, -0.041900634765625, 0.024627685546875, -0.03973388671875, 0.0219879150390625, 0.0254669189453125, 0.01331329345703125, -0.07135009765625, 0.015289306640625, -0.006053924560546875, -0.02569580078125, 0.0289764404296875, 0.039215087890625, 0.0162353515625, -0.0843505859375, 0.058746337890625, 0.0279388427734375, 0.044097900390625, -0.03607177734375, 0.01526641845703125, 0.06072998046875, -0.007335662841796875, 0.006500244140625, -0.048797607421875, -0.0214080810546875, -0.0645751953125, -0.0017938613891601562, 0.03302001953125, -0.0310821533203125, -0.0112457275390625, -0.01348114013671875, 0.006679534912109375, 0.0080413818359375, 0.001033782958984375, -0.0294036865234375, 0.0161590576171875, -0.011993408203125, -0.00601959228515625, -0.0116729736328125, 0.0125274658203125, -0.002422332763671875, 0.057525634765625, -0.006603240966796875, -0.03314208984375, -0.0164947509765625, 0.04248046875, -0.032989501953125, 0.028045654296875, 0.05731201171875, -0.035247802734375, 0.0027103424072265625, 0.005229949951171875, 0.0372314453125, 0.04193115234375, -0.01287078857421875, -0.025146484375, 0.017974853515625, -0.019927978515625, 0.01354217529296875, -0.041534423828125, -0.0036144256591796875, -0.054046630859375, -0.0027446746826171875, -0.0401611328125, 0.03009033203125, 0.0202484130859375, -0.032196044921875, -0.043853759765625, 0.04888916015625, -0.011138916015625, -0.0330810546875, -0.073486328125, 0.010589599609375, 0.01336669921875, 0.01499176025390625, -0.0257110595703125, -0.0274505615234375, -0.03790283203125, 0.030914306640625, 0.0164031982421875, 0.0494384765625, -0.0008234977722167969, 0.01464080810546875, -0.004657745361328125, 0.04541015625, 0.0277252197265625, 0.007511138916015625, -0.0206146240234375, 0.01140594482421875, 0.030609130859375, 0.07293701171875, 0.0182037353515625, 0.0219879150390625, 0.0291900634765625, -0.055572509765625, -0.005859375, -0.037628173828125, -0.0160369873046875, 0.00499725341796875, 0.02752685546875, 0.0277099609375, 0.0080718994140625, -0.03961181640625, 0.0111846923828125, -0.00772857666015625, -0.041015625, -0.0285491943359375, 0.03253173828125, -0.07904052734375, -0.031951904296875, 0.01541900634765625, 0.0093231201171875, 0.0259246826171875, -0.0243988037109375, 0.00933837890625, -0.010345458984375, 0.0280609130859375, -0.0183868408203125, 0.025634765625, -0.0274810791015625, 0.040740966796875, -0.0374755859375, -0.018585205078125, -0.003055572509765625, 0.0160675048828125, -0.024505615234375, -0.00408935546875, -0.01358795166015625, -0.000037670135498046875, -0.039703369140625, 0.00966644287109375, -0.00794219970703125, 0.0209503173828125, -0.01290130615234375, -0.00339508056640625, 0.00023758411407470703, 0.037353515625, 0.0005855560302734375, 0.0352783203125, -0.01325225830078125, 0.0123291015625, -0.0153656005859375, 0.050262451171875, 0.0015974044799804688, -0.03692626953125, -0.0228271484375, 0.038818359375, -0.006267547607421875, -0.0262908935546875, 0.007232666015625, -0.01541900634765625, 0.00920867919921875, -0.00972747802734375, -0.0116424560546875, -0.0139007568359375, -0.0011310577392578125, 0.032745361328125, -0.0257415771484375, 0.0164337158203125 ]
b1ea7eca5be259f7ef5adc2d5ee6517cef61da7a
Wordpress Stackexchange Q: How to listen to color changes on the color picker? I am trying to run some custom jquery function every time the colorpicker's color change. The colorpicker is include as part of the WP core. I have been looking at the JS code, but I can't figure out what's the trigger that updates the color. I have tried listening for several classes, and also listening for changes on the text input (the one that holds the color hex value), but no luck. Has anyone done this before? A: I hate answering my own question, but hopefully this can help someone else with similar issues: Wordpress uses Iris color picker. http://automattic.github.io/Iris/# Wordpress also creates a jquery widget with default settings for Iris. The file can be found under wp-admin/js/color-picker.js At first I was trying to pass values directly to iris(), which works, but that overrides the wordpress widget. Once I found out about the widget, I wrote the following: $(".wp-color-picker").wpColorPicker( 'option', 'change', function(event, ui) { //do something on color change here } ); The wpColirPicker accepts a custom function for the change event. So it runs first the default actions and then it allows you to add your own.
Q: How to listen to color changes on the color picker? I am trying to run some custom jquery function every time the colorpicker's color change. The colorpicker is include as part of the WP core. I have been looking at the JS code, but I can't figure out what's the trigger that updates the color. I have tried listening for several classes, and also listening for changes on the text input (the one that holds the color hex value), but no luck. Has anyone done this before? A: I hate answering my own question, but hopefully this can help someone else with similar issues: Wordpress uses Iris color picker. http://automattic.github.io/Iris/# Wordpress also creates a jquery widget with default settings for Iris. The file can be found under wp-admin/js/color-picker.js At first I was trying to pass values directly to iris(), which works, but that overrides the wordpress widget. Once I found out about the widget, I wrote the following: $(".wp-color-picker").wpColorPicker( 'option', 'change', function(event, ui) { //do something on color change here } ); The wpColirPicker accepts a custom function for the change event. So it runs first the default actions and then it allows you to add your own. A: As gdaniel was saying in his answer, WordPress uses Iris color picker. You can pass your callbacks to wpColorPicker plugin using change and clear options. Please note that change-callback will handle all the changes except for cleaning of the field via "Clear" button. So use clear-callback for that purposes. jQuery('.wp-color-picker').wpColorPicker({ /** * @param {Event} event - standard jQuery event, produced by whichever * control was changed. * @param {Object} ui - standard jQuery UI object, with a color member * containing a Color.js object. */ change: function (event, ui) { var element = event.target; var color = ui.color.toString(); // Add your code here }, /** * @param {Event} event - standard jQuery event, produced by "Clear" * button. */ clear: function (event) { var element = jQuery(event.target).siblings('.wp-color-picker')[0]; var color = ''; if (element) { // Add your code here } } }); Please also note that if you use element.value in your change-callback then you'll get the old value instead of new one.
wordpress
{ "language": "en", "length": 363, "provenance": "stackexchange_00019.jsonl.gz:457161", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/194028" }
[ 0.0019235610961914062, 0.008758544921875, -0.0220489501953125, -0.017333984375, 0.0021686553955078125, -0.02105712890625, -0.0138092041015625, -0.0292205810546875, 0.006763458251953125, 0.0033359527587890625, -0.03631591796875, 0.01261138916015625, -0.03912353515625, -0.017669677734375, 0.005352020263671875, -0.04010009765625, 0.06512451171875, -0.0535888671875, 0.04302978515625, -0.00421905517578125, 0.0145111083984375, 0.0310211181640625, 0.04638671875, 0.053192138671875, 0.0279998779296875, -0.00841522216796875, 0.035980224609375, 0.0102081298828125, 0.024505615234375, 0.00888824462890625, 0.033416748046875, -0.032318115234375, 0.004482269287109375, 0.0408935546875, -0.043914794921875, 0.02093505859375, 0.01200103759765625, 0.0167083740234375, 0.01120758056640625, 0.027679443359375, 0.04266357421875, -0.021087646484375, -0.0587158203125, 0.05242919921875, -0.0694580078125, -0.0589599609375, 0.061553955078125, 0.016448974609375, 0.0157928466796875, 0.0118408203125, -0.003025054931640625, 0.0298309326171875, 0.007198333740234375, -0.035491943359375, 0.003192901611328125, 0.01629638671875, -0.03289794921875, 0.0343017578125, 0.0238494873046875, 0.03082275390625, 0.0018625259399414062, 0.007747650146484375, -0.01233673095703125, -0.018463134765625, -0.0285491943359375, -0.0196075439453125, -0.0095062255859375, 0.0008063316345214844, -0.00702667236328125, -0.0295562744140625, 0.0238800048828125, 0.002391815185546875, -0.044219970703125, -0.037750244140625, 0.00922393798828125, 0.05377197265625, 0.0009765625, 0.00881195068359375, -0.0252227783203125, 0.0343017578125, 0.0733642578125, 0.00783538818359375, 0.004451751708984375, -0.0182037353515625, 0.04315185546875, 0.0111846923828125, 0.01666259765625, -0.035064697265625, -0.0298004150390625, -0.03240966796875, -0.0188446044921875, 0.041778564453125, -0.032135009765625, -0.035614013671875, -0.04669189453125, -0.01558685302734375, -0.03973388671875, 0.030120849609375, -0.0445556640625, 0.032684326171875, 0.0007805824279785156, -0.006420135498046875, 0.036102294921875, -0.050079345703125, 0.00637054443359375, 0.04931640625, 0.01360321044921875, 0.028228759765625, 0.0233154296875, -0.00769805908203125, 0.0020008087158203125, -0.02728271484375, 0.0367431640625, 0.0074615478515625, -0.0130462646484375, -0.050079345703125, -0.0396728515625, 0.0221099853515625, -0.0120391845703125, -0.009124755859375, 0.026153564453125, 0.0167999267578125, 0.022613525390625, -0.061981201171875, 0.0479736328125, -0.00374603271484375, -0.04412841796875, -0.00662994384765625, -0.027679443359375, 0.0005221366882324219, -0.051025390625, 0.0258941650390625, 0.10968017578125, 0.05328369140625, 0.0377197265625, -0.01397705078125, 0.07916259765625, 0.030853271484375, 0.032745361328125, -0.0170440673828125, 0.0484619140625, -0.031951904296875, -0.07916259765625, 0.05810546875, 0.023895263671875, -0.0221099853515625, -0.0117034912109375, 0.0423583984375, 0.048736572265625, 0.0017404556274414062, 0.005260467529296875, 0.0035800933837890625, 0.00791168212890625, 0.045745849609375, 0.004138946533203125, 0.00508880615234375, 0.056549072265625, -0.0248870849609375, -0.007671356201171875, -0.045684814453125, 0.033905029296875, -0.01666259765625, -0.038970947265625, 0.03509521484375, -0.004100799560546875, 0.02532958984375, -0.0003254413604736328, 0.0114898681640625, 0.038665771484375, 0.0251922607421875, 0.0399169921875, 0.00743865966796875, 0.04376220703125, 0.038848876953125, 0.016754150390625, -0.0083160400390625, -0.000054895877838134766, 0.0210418701171875, 0.0260009765625, -0.0307769775390625, -0.04925537109375, -0.0498046875, 0.0736083984375, -0.053924560546875, -0.0028018951416015625, -0.0066375732421875, 0.007015228271484375, 0.0225830078125, 0.0186309814453125, 0.0269927978515625, -0.024627685546875, 0.00702667236328125, -0.021636962890625, 0.00962066650390625, -0.0154876708984375, 0.00884246826171875, -0.027587890625, 0.0265350341796875, -0.0219879150390625, -0.00499725341796875, 0.01045989990234375, 0.01148223876953125, -0.0016155242919921875, -0.035125732421875, -0.07366943359375, 0.0145111083984375, -0.031463623046875, 0.06378173828125, 0.023956298828125, -0.012969970703125, 0.00302886962890625, -0.03466796875, 0.01387786865234375, -0.0183868408203125, -0.04620361328125, -0.02178955078125, -0.0281219482421875, 0.01511383056640625, -0.01654052734375, -0.0197601318359375, 0.0284881591796875, -0.036224365234375, 0.026092529296875, 0.04974365234375, 0.005859375, 0.003459930419921875, -0.0234222412109375, 0.006504058837890625, 0.027587890625, 0.007564544677734375, 0.0258026123046875, 0.01508331298828125, -0.0037994384765625, 0.002613067626953125, -0.0236663818359375, -0.0160369873046875, 0.01346588134765625, -0.06683349609375, 0.02777099609375, 0.053802490234375, 0.0078582763671875, 0.036865234375, -0.007198333740234375, 0.03106689453125, 0.07470703125, 0.05755615234375, 0.035247802734375, -0.006378173828125, -0.00391387939453125, 0.04901123046875, -0.0199127197265625, 0.0084991455078125, 0.02703857421875, -0.01287841796875, -0.0105438232421875, 0.03607177734375, -0.0026836395263671875, 0.020904541015625, -0.05010986328125, 0.029998779296875, -0.0244598388671875, -0.006786346435546875, 0.00572967529296875, -0.029327392578125, 0.027740478515625, -0.039276123046875, 0.0216522216796875, 0.003482818603515625, 0.01001739501953125, -0.025360107421875, 0.0052642822265625, -0.0645751953125, 0.007366180419921875, 0.038055419921875, 0.016357421875, 0.03179931640625, 0.0106353759765625, -0.0316162109375, -0.0112152099609375, 0.021087646484375, -0.00405120849609375, 0.08953857421875, -0.0565185546875, -0.038665771484375, -0.0297088623046875, -0.0460205078125, -0.064208984375, -0.023040771484375, 0.0223846435546875, 0.008392333984375, 0.0146026611328125, 0.0280609130859375, -0.001373291015625, 0.0172119140625, 0.061767578125, -0.0273284912109375, -0.00510406494140625, -0.0175018310546875, 0.01316070556640625, -0.0226287841796875, 0.022918701171875, 0.061126708984375, 0.0017404556274414062, 0.0103912353515625, 0.005832672119140625, -0.03875732421875, 0.0147857666015625, 0.007579803466796875, -0.01395416259765625, 0.0079803466796875, -0.07196044921875, 0.01849365234375, 0.0096588134765625, -0.02264404296875, 0.022918701171875, -0.01389312744140625, 0.0124664306640625, -0.00743865966796875, -0.044677734375, -0.03863525390625, 0.0002646446228027344, -0.07818603515625, 0.02850341796875, -0.04827880859375, -0.0260772705078125, -0.005809783935546875, -0.034332275390625, 0.0200042724609375, -0.0723876953125, 0.00923919677734375, -0.02093505859375, -0.040496826171875, -0.03741455078125, 0.011871337890625, -0.01065826416015625, 0.0249481201171875, 0.001857757568359375, 0.02386474609375, -0.006511688232421875, -0.053192138671875, -0.00003135204315185547, -0.02264404296875, -0.0026454925537109375, 0.0225982666015625, 0.03680419921875, -0.06890869140625, 0.04425048828125, -0.0081329345703125, 0.037567138671875, 0.049407958984375, -0.0305328369140625, 0.001041412353515625, -0.010894775390625, -0.00460052490234375, 0.002872467041015625, 0.032501220703125, 0.034912109375, 0.01407623291015625, 0.02252197265625, -0.02264404296875, 0.03076171875, -0.0224456787109375, -0.01338958740234375, -0.01255035400390625, 0.01209259033203125, -0.02191162109375, 0.0032062530517578125, -0.030181884765625, 0.0197601318359375, 0.002635955810546875, -0.012969970703125, -0.01064300537109375, 0.06341552734375, 0.00897979736328125, 0.03375244140625, -0.014556884765625, 0.004215240478515625, -0.0213470458984375, 0.007640838623046875, -0.01474761962890625, 0.020904541015625, -0.005687713623046875, 0.003711700439453125, -0.045684814453125, -0.018280029296875, 0.0084228515625, -0.00661468505859375, -0.0071563720703125, 0.04193115234375, 0.004749298095703125, 0.0452880859375, 0.03143310546875, -0.032318115234375, -0.01041412353515625, -0.004978179931640625, 0.01383209228515625, -0.0362548828125, -0.06292724609375, -0.048492431640625, 0.006717681884765625, -0.12548828125, 0.040771484375, -0.00077056884765625, -0.0340576171875, -0.01343536376953125, 0.0257568359375, -0.06304931640625, -0.049285888671875, 0.031341552734375, -0.023651123046875, 0.013763427734375, 0.00885772705078125, 0.01508331298828125, -0.0245513916015625, 0.01457977294921875, -0.040802001953125, -0.110595703125, -0.0261993408203125, 0.006420135498046875, 0.072021484375, -0.015106201171875, -0.0019474029541015625, -0.0217742919921875, 0.07171630859375, 0.01776123046875, 0.047210693359375, -0.023712158203125, -0.0015344619750976562, -0.01468658447265625, -0.039947509765625, 0.0016422271728515625, -0.03814697265625, -0.00957489013671875, 0.01503753662109375, -0.0562744140625, 0.0124664306640625, 0.01540374755859375, -0.0001289844512939453, 0.0692138671875, -0.047637939453125, -0.040679931640625, 0.002368927001953125, -0.05047607421875, 0.009246826171875, -0.032501220703125, 0.00151824951171875, -0.0098114013671875, -0.0626220703125, -0.0034847259521484375, -0.046905517578125, 0.0008478164672851562, 0.003223419189453125, 0.059783935546875, 0.0259246826171875, 0.01073455810546875, 0.057891845703125, -0.0086669921875, 0.040008544921875, 0.01953125, -0.0007143020629882812, 0.0187835693359375, -0.024017333984375, 0.01238250732421875, 0.03240966796875, 0.01708984375, 0.0063018798828125, 0.05230712890625, 0.00582122802734375, -0.01456451416015625, 0.027374267578125, 0.006290435791015625, -0.050811767578125, 0.0285797119140625, -0.012115478515625, -0.0034885406494140625, 0.007770538330078125, 0.015777587890625, -0.04351806640625, 0.03729248046875, -0.002899169921875, -0.0277862548828125, 0.0130767822265625, -0.060455322265625, 0.07147216796875, 0.0163726806640625, -0.0121307373046875, 0.029296875, 0.0242919921875, -0.0229034423828125, 0.017730712890625, 0.0015325546264648438, 0.04620361328125, 0.0287322998046875, 0.03350830078125, 0.0214080810546875, -0.0235748291015625, -0.01128387451171875, 0.059478759765625, 0.034210205078125, -0.01898193359375, -0.027557373046875, 0.0011081695556640625, 0.0029296875, -0.0262451171875, -0.034393310546875, 0.059661865234375, 0.0455322265625, -0.0272979736328125, -0.006526947021484375, -0.048126220703125, 0.0015115737915039062, -0.07672119140625, 0.00864410400390625, 0.0274658203125, -0.0211944580078125, 0.0321044921875, 0.004581451416015625, 0.0201416015625, -0.00643157958984375, -0.0112152099609375, 0.0287322998046875, 0.033203125, 0.039398193359375, 0.01401519775390625, -0.017181396484375, -0.0037384033203125, 0.00872802734375, 0.00403594970703125, -0.029815673828125, -0.049041748046875, 0.0121917724609375, 0.018341064453125, 0.0321044921875, 0.054962158203125, -0.00757598876953125, 0.051300048828125, 0.01465606689453125, -0.0296783447265625, -0.0094757080078125, 0.0191802978515625, 0.0141754150390625, 0.01030731201171875, -0.0015325546264648438, 0.01560211181640625, -0.0131988525390625, 0.0027618408203125, -0.0145416259765625, -0.00846099853515625, -0.00484466552734375, -0.028289794921875, 0.0153961181640625, 0.01534271240234375, -0.039031982421875, -0.04827880859375, 0.01218414306640625, -0.04669189453125, 0.0284271240234375, -0.01465606689453125, -0.043548583984375, -0.0112152099609375, 0.0022678375244140625, 0.0399169921875, -0.034820556640625, -0.024078369140625, -0.055908203125, -0.0016641616821289062, 0.0311126708984375, -0.003124237060546875, -0.0282135009765625, -0.01336669921875, -0.025482177734375, -0.0294952392578125, -0.006320953369140625, -0.010986328125, -0.03302001953125, -0.01093292236328125, -0.02557373046875, -0.00623321533203125, 0.008880615234375, 0.0287628173828125, -0.0081787109375, 0.05413818359375, 0.0055084228515625, 0.039306640625, -0.02410888671875, 0.0240020751953125, -0.0014028549194335938, 0.04669189453125, -0.007205963134765625, -0.0211181640625, -0.0197906494140625, 0.003875732421875, 0.0028018951416015625, 0.0039520263671875, -0.0012340545654296875, -0.037506103515625, 0.019561767578125, -0.00699615478515625, 0.0357666015625, -0.005832672119140625, 0.0338134765625, -0.0309295654296875, 0.008697509765625, -0.024566650390625, 0.003124237060546875, -0.063720703125, -0.04522705078125, 0.0341796875, -0.0027637481689453125, 0.0171661376953125, -0.027130126953125, -0.0250244140625, 0.043365478515625, 0.002223968505859375, 0.034942626953125, 0.004528045654296875, -0.004840850830078125, 0.01474761962890625, 0.00949859619140625, -0.01387786865234375, 0.0175323486328125, -0.0111541748046875, 0.0043182373046875, 0.004093170166015625, 0.003753662109375, -0.00817108154296875, -0.0014286041259765625, 0.0166473388671875, -0.01470184326171875, -0.01264190673828125, -0.004802703857421875, -0.0122528076171875, -0.002849578857421875, 0.026458740234375, 0.029022216796875, -0.048095703125, -0.0055999755859375, -0.01300811767578125, 0.01448822021484375, 0.0565185546875, 0.004177093505859375, -0.04266357421875, -0.03271484375, 0.03887939453125, -0.04345703125, -0.0142669677734375, 0.0243377685546875, -0.008544921875, 0.0137786865234375, -0.0028972625732421875, 0.03509521484375, 0.0027942657470703125, -0.052398681640625, 0.01163482666015625, 0.0169525146484375, 0.006443023681640625, 0.007171630859375, 0.00766754150390625, 0.004245758056640625, -0.046630859375, -0.066162109375, -0.0211334228515625, 0.0098419189453125, -0.061309814453125, 0.03192138671875, 0.0242919921875, 0.03741455078125, 0.0654296875, 0.0008091926574707031, 0.01543426513671875, 0.020660400390625, 0.050079345703125, 0.01375579833984375, -0.034912109375, 0.01141357421875, 0.047637939453125, -0.0643310546875, 0.0207366943359375, -0.00024771690368652344, 0.0027294158935546875, 0.006908416748046875, 0.012939453125, 0.035614013671875, -0.06341552734375, 0.00555419921875, 0.052581787109375, 0.00627899169921875, -0.01154327392578125, 0.004253387451171875, -0.0223541259765625, -0.0706787109375, -0.058258056640625, -0.00969696044921875, -0.09979248046875, 0.007312774658203125, -0.00942230224609375, -0.0046844482421875, 0.06195068359375, -0.01143646240234375, -0.0455322265625, 0.027984619140625, 0.041015625, -0.054931640625, 0.030670166015625, -0.040069580078125, 0.01226043701171875, -0.009246826171875, 0.0247039794921875, -0.03289794921875, 0.0025653839111328125, -0.0300750732421875, 0.007587432861328125, 0.011474609375, -0.00872802734375, 0.0205230712890625, -0.0213470458984375, 0.0372314453125, 0.045013427734375, -0.00012755393981933594, -0.00597381591796875, 0.0122833251953125, -0.00911712646484375, 0.01065826416015625, -0.02032470703125, 0.01678466796875, -0.044097900390625, 0.00293731689453125, 0.023712158203125, 0.003932952880859375, -0.0028171539306640625, 0.00797271728515625, 0.0077667236328125, 0.01629638671875, -0.00598907470703125, -0.00820159912109375, -0.0263519287109375, -0.006927490234375, 0.045013427734375, 0.01274871826171875, 0.00547027587890625, -0.0149688720703125, -0.040130615234375, 0.03106689453125, -0.015167236328125, 0.006893157958984375, -0.027984619140625, 0.0022678375244140625, -0.03363037109375, -0.005397796630859375, -0.0231781005859375, 0.0341796875, -0.0194244384765625, 0.01200103759765625, 0.0164031982421875, 0.032135009765625, 0.021728515625, 0.0479736328125, -0.005062103271484375, -0.022369384765625, -0.0255584716796875, -0.0322265625, 0.0160675048828125, 0.01788330078125, 0.0198211669921875, 0.0056610107421875, 0.042022705078125, -0.10137939453125, -0.055511474609375, -0.04400634765625, 0.002155303955078125, 0.06146240234375, 0.01168060302734375, 0.01253509521484375, 0.03594970703125, -0.0516357421875, -0.0220184326171875, 0.0008883476257324219, -0.02520751953125, 0.01910400390625, 0.01358795166015625, -0.00396728515625, 0.00972747802734375, 0.00014662742614746094, 0.007061004638671875, -0.01419830322265625, 0.029876708984375, 0.021392822265625, 0.0009188652038574219, 0.00884246826171875, 0.0101318359375, 0.00997161865234375, 0.01177215576171875, 0.0219268798828125, 0.0258636474609375, 0.05523681640625, 0.02960205078125, -0.0258636474609375, 0.0018072128295898438, 0.0350341796875, -0.023681640625, 0.02362060546875, -0.028594970703125, 0.033233642578125, 0.019805908203125, -0.0101776123046875, -0.0290374755859375, 0.0169219970703125, 0.047088623046875, -0.0126495361328125, 0.05780029296875, -0.01294708251953125, 0.006927490234375, 0.0531005859375, -0.02020263671875, 0.0579833984375, 0.00959014892578125, -0.1004638671875, -0.00937652587890625, -0.0260009765625, -0.061614990234375, 0.028167724609375, 0.039337158203125, -0.053070068359375, 0.0292816162109375, -0.05328369140625, -0.0172271728515625, 0.05078125, -0.00893402099609375, -0.03955078125, 0.026275634765625, 0.0182952880859375, -0.0265655517578125, -0.01534271240234375, -0.01544189453125, 0.0254364013671875, 0.021209716796875, 0.037139892578125, -0.0254364013671875, 0.01325225830078125, 0.0238037109375, 0.0655517578125, 0.009613037109375, 0.029693603515625, 0.01812744140625, 0.062469482421875, -0.01904296875, 0.003635406494140625, -0.034942626953125, -0.011138916015625, 0.00887298583984375, -0.00014281272888183594, -0.0197296142578125, 0.03228759765625, -0.055389404296875, 0.01522064208984375, -0.0013742446899414062, 0.03570556640625, -0.0290374755859375, -0.03704833984375, -0.0369873046875, -0.0266876220703125, 0.0194549560546875, 0.029266357421875, 0.024566650390625, 0.03277587890625, -0.01416778564453125, 0.050811767578125, -0.0162811279296875, 0.019866943359375, -0.04327392578125, 0.01229095458984375, -0.041412353515625, -0.006153106689453125, -0.001285552978515625, -0.01042938232421875, -0.01296234130859375, 0.013336181640625, -0.006023406982421875, -0.007171630859375, -0.01392364501953125, 0.01479339599609375, 0.01374053955078125, 0.01218414306640625, -0.03472900390625, -0.013824462890625, 0.053741455078125, -0.0185546875, -0.0258026123046875, -0.037445068359375, -0.006923675537109375, -0.01861572265625, -0.0009336471557617188, 0.038726806640625, 0.0181732177734375, 0.046905517578125, 0.00762176513671875, 0.0212860107421875, 0.0258941650390625, 0.023956298828125, -0.08477783203125, 0.05267333984375, -0.0245819091796875, 0.064208984375, -0.00001537799835205078, -0.01094818115234375, 0.034149169921875, 0.042755126953125, -0.056182861328125, -0.01421356201171875, -0.016998291015625, -0.01398468017578125, -0.0243988037109375, -0.019317626953125, 0.0180206298828125, -0.0140228271484375, -0.041717529296875, -0.042510986328125, 0.0018672943115234375, 0.00807952880859375, 0.015106201171875, -0.0112762451171875, 0.03155517578125, -0.00746917724609375, -0.00812530517578125, -0.06451416015625, -0.023712158203125, -0.032012939453125, 0.0291595458984375, 0.01087188720703125, -0.001674652099609375, 0.02227783203125, -0.035919189453125, -0.059112548828125, 0.0379638671875, 0.0020923614501953125, -0.020355224609375, -0.016326904296875, 0.0035495758056640625, 0.001903533935546875, -0.0164031982421875, -0.00984954833984375, -0.0157318115234375, -0.0193023681640625, 0.0167694091796875, 0.0056915283203125, 0.00524139404296875, 0.0169219970703125, -0.0036029815673828125, -0.059906005859375, 0.01070404052734375, -0.005405426025390625, 0.013092041015625, -0.01052093505859375, -0.0213775634765625, -0.0015573501586914062, 0.0220794677734375, -0.0413818359375, -0.0897216796875, 0.00562286376953125, 0.0235443115234375, 0.000637054443359375, -0.022735595703125, -0.055999755859375, -0.044677734375, 0.0750732421875, 0.033843994140625, 0.0235443115234375, -0.0027217864990234375, -0.02813720703125, -0.026611328125, 0.042572021484375, -0.0325927734375, -0.019622802734375, -0.035430908203125, -0.0016841888427734375, -0.0116424560546875, -0.006866455078125, -0.0058441162109375, 0.014862060546875, -0.0261993408203125, -0.00896453857421875, 0.02630615234375, 0.0181884765625, -0.09228515625, -0.0147857666015625, 0.07904052734375, -0.0321044921875, 0.04827880859375, 0.028961181640625, 0.0129241943359375, 0.08355712890625, 0.0772705078125, -0.03314208984375, 0.00820159912109375, 0.0014677047729492188, 0.0307464599609375, -0.00630950927734375, -0.00347137451171875, -0.014984130859375, 0.0166778564453125, 0.0247955322265625, -0.031524658203125, -0.002765655517578125, -0.039337158203125, -0.0174407958984375, -0.044769287109375, -0.060577392578125, -0.022979736328125, -0.01641845703125, -0.053863525390625, -0.040496826171875, 0.01751708984375, -0.01036834716796875, -0.009613037109375, 0.019744873046875, -0.0255279541015625, 0.01129150390625, 0.0361328125, -0.0166778564453125, -0.0247650146484375, 0.0013027191162109375, -0.0019683837890625, 0.006572723388671875, -0.0085296630859375 ]
2b3ddea0ac0e1a14d8657f9db353fecdaa644f56
Wordpress Stackexchange Q: Endpoint on Specific Page Slug I have created an endpoint inside of my plugin: add_rewrite_endpoint( 'libstaff', EP_PAGES ); Now I would like to have the endpoint work for one page only based on its slug. In this case, I want it to work ONLY when the page with the slug 'staff-directory' is at the end of the URL.
Q: Endpoint on Specific Page Slug I have created an endpoint inside of my plugin: add_rewrite_endpoint( 'libstaff', EP_PAGES ); Now I would like to have the endpoint work for one page only based on its slug. In this case, I want it to work ONLY when the page with the slug 'staff-directory' is at the end of the URL.
wordpress
{ "language": "en", "length": 59, "provenance": "stackexchange_00019.jsonl.gz:457162", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/194029" }
[ 0.059356689453125, -0.00418853759765625, 0.029022216796875, -0.041534423828125, -0.007411956787109375, -0.0087432861328125, 0.035736083984375, -0.02447509765625, -0.0118255615234375, 0.0230865478515625, -0.00792694091796875, 0.0228729248046875, 0.0311126708984375, -0.041290283203125, 0.044921875, 0.00015723705291748047, 0.01428985595703125, 0.01476287841796875, 0.025238037109375, -0.0111083984375, 0.00241851806640625, -0.00742340087890625, 0.0305328369140625, 0.0312042236328125, -0.002574920654296875, -0.03790283203125, 0.054901123046875, -0.0195770263671875, -0.00986480712890625, -0.045623779296875, -0.00139617919921875, 0.03485107421875, 0.0153350830078125, 0.02386474609375, -0.0162353515625, -0.0086669921875, 0.004161834716796875, 0.004238128662109375, 0.0039215087890625, 0.01221466064453125, 0.0328369140625, -0.0269775390625, -0.01494598388671875, 0.037139892578125, 0.0035495758056640625, -0.02392578125, 0.0290985107421875, -0.052978515625, 0.0201416015625, 0.050323486328125, -0.01763916015625, 0.003322601318359375, -0.038238525390625, 0.032928466796875, 0.0136566162109375, 0.0028858184814453125, 0.046630859375, -0.058380126953125, 0.025909423828125, -0.01275634765625, -0.0247344970703125, -0.00884246826171875, 0.0301513671875, -0.019439697265625, 0.0196075439453125, 0.000027000904083251953, -0.053436279296875, 0.047271728515625, 0.0012655258178710938, -0.0014925003051757812, -0.0208282470703125, -0.03594970703125, 0.0272979736328125, -0.003490447998046875, -0.036041259765625, -0.052947998046875, 0.0408935546875, -0.01078033447265625, 0.0176849365234375, -0.017181396484375, -0.031219482421875, -0.04815673828125, -0.038055419921875, -0.00809478759765625, 0.0030117034912109375, 0.017669677734375, -0.01476287841796875, 0.0019159317016601562, -0.003108978271484375, -0.006977081298828125, -0.0246429443359375, 0.03558349609375, 0.039276123046875, -0.0276641845703125, -0.04693603515625, 0.01084136962890625, 0.01526641845703125, 0.0064239501953125, -0.002567291259765625, 0.01027679443359375, 0.0265045166015625, -0.0487060546875, 0.033294677734375, -0.026519775390625, 0.03228759765625, 0.04803466796875, -0.03326416015625, -0.0029544830322265625, 0.0775146484375, 0.0215606689453125, 0.040740966796875, 0.060394287109375, -0.00566864013671875, 0.016204833984375, -0.0161590576171875, -0.00289154052734375, -0.0374755859375, 0.019378662109375, -0.00884246826171875, 0.00969696044921875, -0.039093017578125, -0.01076507568359375, 0.0228271484375, 0.0108795166015625, -0.01259613037109375, -0.0084075927734375, 0.00952911376953125, -0.0160980224609375, 0.062164306640625, -0.00589752197265625, -0.01274871826171875, 0.016815185546875, 0.040924072265625, 0.005245208740234375, -0.007598876953125, 0.004245758056640625, -0.00502777099609375, -0.0021495819091796875, -0.00008696317672729492, 0.027801513671875, -0.0220184326171875, -0.0367431640625, 0.022491455078125, -0.006351470947265625, -0.0025997161865234375, -0.028564453125, 0.01172637939453125, 0.043365478515625, 0.0095977783203125, 0.0176239013671875, -0.0201873779296875, 0.0223541259765625, 0.032806396484375, -0.00980377197265625, -0.00312042236328125, -0.04339599609375, 0.0023708343505859375, -0.02874755859375, 0.0279693603515625, -0.0177001953125, -0.01325225830078125, -0.00362396240234375, 0.029632568359375, -0.0694580078125, -0.06390380859375, -0.0207977294921875, -0.0498046875, -0.0119171142578125, 0.018646240234375, 0.04827880859375, 0.02459716796875, -0.01055145263671875, -0.0251922607421875, 0.0279083251953125, -0.0016422271728515625, 0.00858306884765625, -0.03326416015625, 0.0411376953125, 0.03314208984375, 0.0163726806640625, 0.004444122314453125, -0.0221405029296875, 0.044677734375, 0.0238037109375, -0.0953369140625, 0.05999755859375, -0.006252288818359375, 0.08673095703125, 0.04241943359375, 0.0034084320068359375, 0.0616455078125, -0.01290130615234375, -0.0034656524658203125, -0.0026035308837890625, -0.004016876220703125, -0.006832122802734375, 0.0224761962890625, 0.031494140625, -0.005359649658203125, -0.037017822265625, -0.0254974365234375, -0.0236358642578125, 0.016632080078125, 0.0117340087890625, 0.0067596435546875, -0.0107879638671875, -0.004627227783203125, 0.0192718505859375, 0.054779052734375, -0.01168060302734375, -0.00591278076171875, -0.00331878662109375, -0.01422119140625, -0.0114593505859375, -0.08013916015625, 0.03192138671875, 0.025634765625, 0.0034465789794921875, -0.0075836181640625, 0.026947021484375, -0.029083251953125, -0.00870513916015625, -0.040557861328125, 0.0139923095703125, 0.0251617431640625, 0.0139617919921875, 0.00044083595275878906, 0.0006680488586425781, 0.03289794921875, 0.0282745361328125, -0.0179901123046875, -0.01806640625, 0.0264434814453125, 0.052154541015625, -0.016204833984375, 0.0238494873046875, 0.0305023193359375, 0.020965576171875, -0.0035686492919921875, 0.0011234283447265625, 0.04071044921875, 0.00850677490234375, -0.009368896484375, -0.0255279541015625, 0.0234527587890625, -0.07806396484375, -0.0201416015625, -0.0135650634765625, 0.0120849609375, 0.07415771484375, 0.01033782958984375, 0.0224456787109375, -0.0007810592651367188, -0.03302001953125, 0.0076141357421875, 0.03436279296875, -0.0027866363525390625, -0.0224761962890625, -0.0181121826171875, 0.030853271484375, -0.005126953125, 0.0029277801513671875, 0.003429412841796875, -0.004489898681640625, -0.0038890838623046875, -0.007198333740234375, 0.01534271240234375, 0.028594970703125, 0.0202484130859375, -0.058074951171875, 0.005718231201171875, 0.04052734375, -0.0186920166015625, 0.0594482421875, 0.080810546875, -0.025848388671875, -0.039398193359375, -0.0210418701171875, 0.016021728515625, 0.0162353515625, -0.00457000732421875, 0.0172119140625, 0.025146484375, -0.013580322265625, -0.01910400390625, -0.02593994140625, 0.02020263671875, 0.005596160888671875, 0.040008544921875, -0.00791168212890625, 0.016754150390625, 0.0341796875, -0.006359100341796875, 0.049285888671875, 0.017822265625, -0.029327392578125, 0.09796142578125, -0.0294342041015625, 0.026031494140625, -0.01342010498046875, 0.02569580078125, 0.044708251953125, 0.016387939453125, -0.025909423828125, -0.00498199462890625, -0.03314208984375, -0.034332275390625, 0.02978515625, 0.0014772415161132812, -0.07080078125, 0.01751708984375, 0.03302001953125, 0.0167999267578125, -0.00717926025390625, 0.03375244140625, -0.05010986328125, 0.0097503662109375, 0.005260467529296875, -0.08544921875, -0.07550048828125, 0.02398681640625, -0.058135986328125, 0.041412353515625, 0.0034313201904296875, -0.02630615234375, -0.03179931640625, 0.05908203125, 0.0228729248046875, 0.003894805908203125, -0.031280517578125, -0.03436279296875, -0.055328369140625, -0.0753173828125, -0.0295867919921875, 0.0133056640625, 0.006374359130859375, 0.00354766845703125, 0.041748046875, 0.0015516281127929688, -0.0286102294921875, 0.0298919677734375, -0.015472412109375, -0.01495361328125, 0.007419586181640625, -0.044281005859375, -0.0018310546875, -0.0181427001953125, -0.0006227493286132812, 0.070556640625, -0.00862884521484375, 0.003452301025390625, 0.0237274169921875, 0.0134735107421875, -0.006214141845703125, -0.01535797119140625, 0.00424957275390625, 0.0005650520324707031, -0.000995635986328125, -0.0150146484375, -0.04400634765625, -0.06170654296875, -0.019927978515625, -0.0635986328125, 0.06268310546875, 0.038726806640625, 0.00876617431640625, 0.005153656005859375, 0.0240478515625, -0.0026645660400390625, -0.0027828216552734375, 0.03668212890625, -0.041168212890625, 0.040191650390625, -0.02349853515625, -0.01885986328125, -0.04510498046875, 0.031494140625, 0.0230865478515625, -0.002910614013671875, 0.00797271728515625, 0.05859375, 0.0002830028533935547, 0.023345947265625, -0.072021484375, -0.0572509765625, 0.0302886962890625, -0.014801025390625, 0.012603759765625, -0.0192718505859375, -0.00327301025390625, -0.005962371826171875, 0.08038330078125, -0.03411865234375, -0.034759521484375, -0.027557373046875, -0.01560211181640625, 0.031585693359375, 0.02764892578125, -0.0113677978515625, -0.027252197265625, -0.03271484375, 0.007061004638671875, -0.00730133056640625, -0.0084228515625, 0.00911712646484375, -0.00522613525390625, 0.01500701904296875, -0.042266845703125, 0.05206298828125, -0.042327880859375, 0.038909912109375, -0.01181793212890625, 0.037200927734375, -0.041717529296875, -0.041778564453125, -0.01174163818359375, -0.0377197265625, -0.002552032470703125, 0.01251220703125, 0.044586181640625, 0.01258087158203125, -0.05706787109375, -0.00774383544921875, 0.0242767333984375, 0.019012451171875, -0.0267181396484375, 0.0487060546875, -0.007549285888671875, 0.03662109375, 0.052886962890625, 0.0528564453125, -0.0007891654968261719, -0.0000069141387939453125, -0.00015485286712646484, -0.0594482421875, 0.02197265625, 0.00038886070251464844, 0.0242156982421875, 0.03570556640625, -0.03558349609375, -0.039520263671875, -0.034881591796875, 0.031524658203125, 0.044219970703125, 0.0233917236328125, 0.01068878173828125, -0.061859130859375, -0.015045166015625, 0.05218505859375, 0.037384033203125, 0.00379180908203125, -0.001667022705078125, 0.03228759765625, 0.0002703666687011719, -0.04931640625, -0.01041412353515625, 0.0161895751953125, 0.0290374755859375, -0.016204833984375, 0.0826416015625, 0.06884765625, 0.006092071533203125, 0.03997802734375, -0.00783538818359375, 0.019012451171875, -0.0040435791015625, 0.046112060546875, 0.003955841064453125, -0.0223236083984375, 0.007648468017578125, 0.0023746490478515625, -0.0261993408203125, 0.053436279296875, -0.0304107666015625, 0.03411865234375, -0.03741455078125, -0.0111083984375, -0.0115814208984375, -0.0010356903076171875, -0.0167236328125, -0.048309326171875, 0.01220703125, -0.0002570152282714844, 0.041168212890625, 0.05047607421875, -0.0177459716796875, 0.055023193359375, 0.021575927734375, -0.0292205810546875, 0.01418304443359375, 0.0284881591796875, 0.0079345703125, 0.01354217529296875, -0.00186920166015625, -0.018035888671875, -0.0227508544921875, -0.0064849853515625, 0.0677490234375, 0.0034770965576171875, -0.022003173828125, -0.03448486328125, -0.030792236328125, -0.00930023193359375, 0.006916046142578125, 0.013824462890625, 0.036376953125, -0.01351165771484375, 0.0019550323486328125, -0.01232147216796875, -0.047760009765625, 0.0002701282501220703, -0.042938232421875, 0.041168212890625, 0.00377655029296875, -0.00960540771484375, -0.026458740234375, 0.04840087890625, 0.005908966064453125, 0.0029144287109375, -0.0003695487976074219, 0.047332763671875, 0.059661865234375, -0.019256591796875, -0.01107025146484375, 0.0633544921875, -0.00888824462890625, -0.028289794921875, 0.0200958251953125, -0.0013637542724609375, 0.00839996337890625, -0.0086669921875, 0.0106048583984375, -0.0288848876953125, -0.0104522705078125, 0.02008056640625, -0.0263214111328125, -0.0243377685546875, 0.0256805419921875, -0.0203857421875, -0.02294921875, -0.04437255859375, -0.01483917236328125, 0.030548095703125, -0.004207611083984375, -0.003692626953125, 0.017822265625, 0.027557373046875, 0.0063934326171875, 0.039154052734375, -0.06591796875, 0.01324462890625, 0.0416259765625, 0.04681396484375, -0.01617431640625, -0.0304412841796875, -0.0287933349609375, -0.01092529296875, -0.0092315673828125, 0.01959228515625, 0.010498046875, -0.0494384765625, 0.0328369140625, -0.003879547119140625, -0.00930023193359375, 0.031158447265625, 0.016510009765625, 0.055389404296875, 0.056396484375, -0.07659912109375, 0.0029087066650390625, -0.0187530517578125, 0.0148468017578125, 0.034698486328125, -0.0394287109375, -0.0005254745483398438, -0.047454833984375, 0.01216888427734375, 0.0484619140625, -0.0199127197265625, -0.049835205078125, 0.001861572265625, -0.0126190185546875, 0.0176239013671875, 0.029815673828125, -0.00418853759765625, 0.03509521484375, -0.0181732177734375, 0.046722412109375, -0.0137786865234375, -0.007808685302734375, -0.0110015869140625, -0.0153350830078125, -0.0164947509765625, -0.057159423828125, -0.00974273681640625, 0.032012939453125, -0.037841796875, 0.035614013671875, 0.0286865234375, 0.00859832763671875, 0.021331787109375, -0.007213592529296875, -0.00679779052734375, -0.006420135498046875, 0.003253936767578125, 0.004302978515625, 0.010498046875, 0.057830810546875, 0.0206146240234375, 0.05938720703125, -0.0311737060546875, -0.048980712890625, 0.020294189453125, 0.024139404296875, 0.04583740234375, -0.0067138671875, -0.0214385986328125, 0.038055419921875, 0.0709228515625, -0.039764404296875, 0.032501220703125, 0.01611328125, 0.004070281982421875, 0.075927734375, -0.026336669921875, 0.054901123046875, 0.0212554931640625, 0.01277923583984375, -0.03863525390625, 0.01558685302734375, -0.0164794921875, 0.0024623870849609375, 0.0056610107421875, -0.002643585205078125, 0.0020618438720703125, -0.047454833984375, 0.018768310546875, -0.0254058837890625, 0.00380706787109375, 0.040130615234375, -0.0180511474609375, 0.033660888671875, 0.06683349609375, 0.0205078125, 0.00855255126953125, -0.0268096923828125, 0.0254364013671875, 0.0229034423828125, 0.0015745162963867188, -0.04132080078125, 0.0794677734375, 0.016510009765625, 0.013916015625, 0.004978179931640625, -0.0012912750244140625, -0.00904083251953125, -0.0223541259765625, 0.006977081298828125, 0.00440216064453125, -0.0243377685546875, -0.034759521484375, 0.039794921875, -0.0102996826171875, 0.021636962890625, 0.0853271484375, 0.01397705078125, 0.023223876953125, 0.0248260498046875, 0.017486572265625, -0.0005908012390136719, -0.0113372802734375, -0.024810791015625, -0.000010371208190917969, -0.0189971923828125, -0.005626678466796875, 0.0143585205078125, -0.01224517822265625, -0.0002428293228149414, -0.002986907958984375, -0.0027484893798828125, -0.0153961181640625, -0.035797119140625, 0.06365966796875, -0.02142333984375, -0.018096923828125, 0.0130462646484375, 0.00518798828125, -0.011199951171875, 0.004261016845703125, -0.00643157958984375, -0.050994873046875, -0.04052734375, -0.006992340087890625, -0.07440185546875, 0.0277557373046875, -0.0081329345703125, -0.07904052734375, 0.12451171875, 0.020843505859375, 0.0250701904296875, -0.033172607421875, 0.0662841796875, -0.0170135498046875, 0.046539306640625, -0.0496826171875, 0.054840087890625, 0.0216522216796875, 0.0540771484375, -0.046234130859375, 0.0057830810546875, 0.0257720947265625, -0.008056640625, 0.0850830078125, 0.033935546875, -0.0762939453125, -0.00750732421875, 0.0027561187744140625, -0.017974853515625, -0.03515625, 0.091796875, 0.0015201568603515625, 0.00954437255859375, 0.004833221435546875, -0.044677734375, 0.01256561279296875, -0.035003662109375, -0.0035305023193359375, 0.0290069580078125, -0.0027294158935546875, 0.0004780292510986328, -0.0202789306640625, -0.0406494140625, -0.006916046142578125, -0.0176239013671875, -0.0198211669921875, 0.00689697265625, 0.0167388916015625, 0.0264892578125, 0.04595947265625, -0.0205535888671875, -0.0302276611328125, -0.0125885009765625, 0.048858642578125, 0.011688232421875, 0.01483917236328125, 0.0188751220703125, 0.02978515625, 0.021881103515625, 0.0211029052734375, 0.019256591796875, 0.04693603515625, -0.030242919921875, 0.03143310546875, 0.0181427001953125, 0.0285186767578125, -0.0088043212890625, 0.048370361328125, 0.01483154296875, 0.0163421630859375, -0.048797607421875, 0.0105133056640625, 0.01555633544921875, 0.006725311279296875, -0.01105499267578125, -0.0013856887817382812, 0.044708251953125, -0.0038127899169921875, -0.01200103759765625, -0.054901123046875, 0.015716552734375, -0.01204681396484375, 0.0675048828125, -0.0275115966796875, -0.0303955078125, -0.048004150390625, -0.0218658447265625, -0.01800537109375, 0.0239715576171875, 0.01806640625, 0.01224517822265625, 0.0107879638671875, 0.0113677978515625, 0.00778961181640625, 0.0036716461181640625, -0.01947021484375, -0.0048370361328125, -0.0247802734375, 0.029296875, -0.057220458984375, 0.0011434555053710938, -0.04205322265625, 0.052825927734375, 0.027313232421875, 0.0126800537109375, 0.0136566162109375, 0.01010894775390625, -0.0008678436279296875, 0.0035343170166015625, 0.0216217041015625, -0.02288818359375, 0.0247039794921875, -0.0362548828125, 0.07513427734375, 0.01534271240234375, 0.03155517578125, -0.060211181640625, 0.06268310546875, 0.0204010009765625, 0.01406097412109375, -0.01104736328125, 0.007144927978515625, -0.0243988037109375, 0.0138702392578125, 0.021270751953125, 0.0372314453125, 0.05523681640625, -0.03594970703125, 0.01190948486328125, 0.006134033203125, -0.10540771484375, 0.0001233816146850586, 0.040924072265625, -0.043670654296875, 0.0218658447265625, -0.01235198974609375, 0.044189453125, 0.0010776519775390625, -0.01551055908203125, -0.0161285400390625, -0.0115966796875, 0.0440673828125, 0.001140594482421875, -0.0225677490234375, -0.026153564453125, -0.0122528076171875, 0.032196044921875, 0.016998291015625, 0.100830078125, -0.0310516357421875, 0.017730712890625, -0.0160675048828125, -0.035430908203125, 0.026947021484375, 0.0137786865234375, -0.0296630859375, 0.026519775390625, -0.006587982177734375, -0.01165008544921875, -0.02130126953125, -0.016815185546875, 0.025543212890625, -0.04144287109375, -0.0071868896484375, -0.03155517578125, 0.00713348388671875, 0.003131866455078125, 0.016998291015625, -0.0241241455078125, -0.03033447265625, -0.00920867919921875, 0.00785064697265625, -0.002040863037109375, -0.01385498046875, -0.0194091796875, 0.0218963623046875, 0.0211181640625, -0.019561767578125, -0.0015764236450195312, -0.004039764404296875, -0.033599853515625, 0.0180511474609375, 0.05511474609375, 0.024566650390625, -0.006717681884765625, -0.0240631103515625, 0.0173492431640625, 0.0159149169921875, 0.0017328262329101562, 0.00519561767578125, 0.046783447265625, -0.01033782958984375, -0.04058837890625, 0.0230712890625, 0.005397796630859375, -0.00830078125, -0.03424072265625, 0.019287109375, -0.0517578125, -0.00495147705078125, -0.01079559326171875, -0.033416748046875, 0.0045013427734375, 0.019256591796875, 0.0003437995910644531, 0.010589599609375, 0.0019330978393554688, 0.0223846435546875, 0.0088653564453125, -0.0277862548828125, -0.03594970703125, 0.0300445556640625, -0.04736328125, 0.0550537109375, -0.032562255859375, 0.01107025146484375, 0.0096435546875, 0.037811279296875, -0.0718994140625, 0.002841949462890625, -0.0124359130859375, 0.0018758773803710938, -0.0015878677368164062, -0.010833740234375, 0.0255889892578125, -0.00676727294921875, 0.017791748046875, -0.036102294921875, -0.029449462890625, 0.030792236328125, -0.044219970703125, -0.0379638671875, -0.0191497802734375, 0.01439666748046875, 0.0284423828125, -0.038116455078125, -0.026824951171875, -0.00756072998046875, 0.028778076171875, 0.04632568359375, -0.061553955078125, -0.041015625, -0.05377197265625, -0.0596923828125, 0.074951171875, 0.0272979736328125, -0.020843505859375, -0.0870361328125, 0.0275115966796875, 0.0176544189453125, 0.0233306884765625, -0.034088134765625, -0.032501220703125, -0.0452880859375, 0.016265869140625, 0.01139068603515625, 0.0300750732421875, -0.0005116462707519531, 0.0244903564453125, -0.0294036865234375, 0.035308837890625, 0.00897216796875, -0.014129638671875, 0.0193939208984375, -0.021728515625, 0.0278167724609375, 0.01250457763671875, -0.039215087890625, -0.0097198486328125, -0.003948211669921875, -0.03314208984375, 0.01515960693359375, -0.028533935546875, -0.053680419921875, -0.008880615234375, 0.05322265625, 0.06451416015625, 0.032562255859375, -0.044158935546875, -0.036834716796875, -0.05108642578125, -0.003147125244140625, 0.01318359375, 0.0277252197265625, -0.05169677734375, 0.02777099609375, 0.0323486328125, 0.016357421875, 0.033233642578125, -0.0253753662109375, 0.01058197021484375, -0.0189666748046875, 0.022064208984375, 0.0104522705078125, -0.0168609619140625, -0.030059814453125, 0.0355224609375, -0.035400390625, -0.004779815673828125, -0.013885498046875, 0.04046630859375, 0.002620697021484375, -0.04443359375, 0.004993438720703125, 0.005626678466796875, 0.0033779144287109375, 0.00994110107421875, 0.0098724365234375, 0.0030460357666015625, -0.026947021484375, -0.0013494491577148438, -0.0301513671875, 0.021759033203125, 0.0088348388671875, 0.030853271484375, -0.0158233642578125, 0.040679931640625, 0.029510498046875, 0.050018310546875, 0.0126800537109375, -0.0193023681640625, 0.01263427734375, 0.013427734375, -0.015228271484375, -0.0142364501953125, 0.01195526123046875, -0.06170654296875, -0.01132965087890625, 0.0203857421875, -0.049652099609375, -0.06390380859375, 0.0229644775390625, -0.0213775634765625, -0.000022590160369873047, 0.01407623291015625 ]
6353ec2c0e1d6f618e870dbd4316a9caf202f03c
Wordpress Stackexchange Q: Page with page template not using template in Preview I am using a page template created by myself, which is showing and working correctly in page backend. It also works on the front end. The problem: Preview shows the normal "page.php" instead of using the template page. Any idea why this happens? I have never had this problem before. The template is called "page_temp_news.php" and is setup correctly and working so far. Using latest wordpress 4.2.2. nginx server. Thank you! AD
Q: Page with page template not using template in Preview I am using a page template created by myself, which is showing and working correctly in page backend. It also works on the front end. The problem: Preview shows the normal "page.php" instead of using the template page. Any idea why this happens? I have never had this problem before. The template is called "page_temp_news.php" and is setup correctly and working so far. Using latest wordpress 4.2.2. nginx server. Thank you! AD
wordpress
{ "language": "en", "length": 82, "provenance": "stackexchange_00019.jsonl.gz:457191", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/194124" }
[ -0.041595458984375, -0.00940704345703125, -0.0006384849548339844, 0.0279998779296875, -0.0203094482421875, -0.0157623291015625, -0.0007681846618652344, -0.035919189453125, 0.009246826171875, -0.005008697509765625, -0.009857177734375, 0.006557464599609375, -0.031707763671875, -0.0295867919921875, 0.01033782958984375, -0.022613525390625, 0.029754638671875, -0.0224456787109375, 0.0298309326171875, -0.0137939453125, 0.0177764892578125, -0.0024566650390625, 0.04705810546875, 0.0011701583862304688, 0.026702880859375, -0.033843994140625, 0.0311431884765625, 0.0013360977172851562, -0.00489044189453125, -0.0263824462890625, 0.01459503173828125, 0.0229339599609375, 0.051910400390625, 0.0213775634765625, -0.05706787109375, -0.013458251953125, -0.004703521728515625, -0.005001068115234375, -0.0189971923828125, 0.024627685546875, -0.0098876953125, 0.01548004150390625, 0.054168701171875, -0.005641937255859375, -0.0022830963134765625, -0.0062713623046875, -0.023529052734375, -0.054595947265625, -0.01004791259765625, 0.00330352783203125, 0.015625, -0.01416015625, 0.0217742919921875, 0.061737060546875, -0.00505828857421875, -0.006732940673828125, 0.0218505859375, 0.03948974609375, 0.0174407958984375, -0.02435302734375, -0.02740478515625, 0.0426025390625, 0.0013875961303710938, 0.002025604248046875, -0.0062408447265625, -0.0032444000244140625, -0.019805908203125, 0.0108184814453125, -0.023162841796875, -0.01119232177734375, 0.0160369873046875, -0.02618408203125, 0.01140594482421875, -0.0308380126953125, -0.031280517578125, 0.0009069442749023438, 0.0037364959716796875, -0.032257080078125, 0.002773284912109375, -0.0185546875, -0.0266265869140625, 0.0024623870849609375, -0.07952880859375, -0.059814453125, 0.0258331298828125, -0.0203094482421875, -0.0164794921875, -0.0032978057861328125, -0.0224151611328125, -0.0111236572265625, -0.02301025390625, -0.004085540771484375, 0.01161956787109375, -0.0216827392578125, -0.03741455078125, -0.00714111328125, -0.0093841552734375, 0.06622314453125, 0.00034356117248535156, 0.03912353515625, -0.0251007080078125, -0.0206298828125, 0.035308837890625, -0.061370849609375, 0.00957489013671875, 0.046783447265625, -0.01250457763671875, 0.0305633544921875, 0.0675048828125, 0.04425048828125, 0.021820068359375, 0.037689208984375, -0.0194091796875, -0.0380859375, -0.037872314453125, 0.02545166015625, -0.0084075927734375, -0.024688720703125, 0.0199432373046875, -0.023895263671875, 0.00803375244140625, 0.0287322998046875, 0.0197296142578125, -0.0482177734375, 0.0210113525390625, 0.02099609375, -0.0185089111328125, -0.043975830078125, 0.020355224609375, -0.007598876953125, -0.003875732421875, -0.0018310546875, 0.015960693359375, 0.0295562744140625, -0.0007205009460449219, -0.0097503662109375, -0.002895355224609375, -0.0165557861328125, 0.00994110107421875, -0.006900787353515625, -0.01538848876953125, -0.0124969482421875, 0.02142333984375, -0.01343536376953125, -0.0102081298828125, 0.00872039794921875, 0.027862548828125, 0.02435302734375, -0.01287841796875, -0.0177001953125, -0.002593994140625, -0.0014705657958984375, -0.00859832763671875, 0.0247802734375, 0.0458984375, -0.0297393798828125, 0.0017251968383789062, -0.0251617431640625, 0.03033447265625, 0.011810302734375, 0.03857421875, 0.007045745849609375, -0.0144805908203125, -0.06890869140625, -0.07232666015625, -0.0321044921875, -0.040283203125, -0.006259918212890625, 0.02154541015625, 0.00717926025390625, 0.022308349609375, -0.032623291015625, 0.034912109375, 0.03179931640625, -0.003631591796875, 0.033721923828125, 0.0025634765625, 0.0102386474609375, 0.0004978179931640625, 0.0175628662109375, -0.0102691650390625, -0.022491455078125, 0.0033664703369140625, 0.0034999847412109375, -0.057281494140625, -0.02532958984375, 0.0230255126953125, 0.035308837890625, 0.0301513671875, 0.0152435302734375, 0.045166015625, -0.006622314453125, -0.02923583984375, 0.07208251953125, 0.04833984375, -0.0290374755859375, -0.0214996337890625, 0.00600433349609375, 0.007068634033203125, -0.08245849609375, -0.0096893310546875, 0.010345458984375, 0.0162811279296875, -0.002445220947265625, -0.04974365234375, 0.01641845703125, -0.022186279296875, 0.04345703125, -0.033172607421875, 0.0113983154296875, 0.035186767578125, 0.0068511962890625, -0.031463623046875, -0.0301055908203125, -0.0247039794921875, 0.033416748046875, 0.013885498046875, 0.002407073974609375, 0.036407470703125, -0.002643585205078125, 0.03668212890625, 0.01180267333984375, 0.002834320068359375, -0.00762939453125, 0.039794921875, -0.006175994873046875, -0.03680419921875, -0.0243377685546875, -0.01029205322265625, -0.01403045654296875, -0.04425048828125, 0.081787109375, -0.0458984375, 0.015472412109375, -0.01502227783203125, 0.00542449951171875, -0.001499176025390625, -0.002773284912109375, 0.01558685302734375, 0.01605224609375, 0.01093292236328125, 0.0224609375, -0.019317626953125, -0.0034198760986328125, 0.042724609375, -0.006557464599609375, 0.0206146240234375, -0.0141143798828125, 0.0211944580078125, 0.03350830078125, 0.001262664794921875, -0.014190673828125, 0.0175323486328125, -0.03985595703125, 0.0062255859375, 0.0280609130859375, 0.01422119140625, 0.0205230712890625, -0.01415252685546875, 0.026885986328125, -0.0036334991455078125, 0.053466796875, -0.005329132080078125, 0.0204010009765625, 0.0111083984375, -0.006450653076171875, 0.0228271484375, 0.01027679443359375, -0.0017671585083007812, -0.02630615234375, 0.003429412841796875, -0.0226593017578125, 0.02490234375, 0.03338623046875, -0.0027751922607421875, 0.04107666015625, -0.0225372314453125, -0.03631591796875, 0.04656982421875, 0.02777099609375, -0.004817962646484375, 0.048370361328125, -0.032073974609375, -0.016571044921875, -0.024139404296875, -0.05657958984375, -0.01439666748046875, 0.00982666015625, 0.023834228515625, 0.0240325927734375, 0.032806396484375, 0.033935546875, -0.03778076171875, 0.0594482421875, -0.015899658203125, -0.01451873779296875, 0.04412841796875, -0.0367431640625, 0.033355712890625, -0.02264404296875, 0.0228729248046875, 0.056793212890625, -0.01019287109375, 0.0052032470703125, 0.01363372802734375, 0.035888671875, 0.052490234375, -0.003932952880859375, 0.0007348060607910156, 0.007232666015625, -0.06744384765625, -0.044281005859375, 0.019927978515625, 0.07745361328125, -0.032318115234375, -0.0362548828125, -0.00860595703125, 0.0143890380859375, -0.0187225341796875, -0.0265655517578125, -0.05096435546875, -0.029449462890625, -0.0301513671875, -0.0234222412109375, -0.019866943359375, 0.024200439453125, -0.0269012451171875, 0.0167694091796875, -0.00623321533203125, -0.032379150390625, -0.0528564453125, -0.08001708984375, -0.078857421875, -0.04730224609375, -0.00058746337890625, 0.0113372802734375, 0.013641357421875, 0.015899658203125, -0.01441192626953125, -0.062255859375, -0.0032253265380859375, 0.0014247894287109375, -0.0157928466796875, -0.0036792755126953125, 0.0109100341796875, -0.005184173583984375, 0.00875091552734375, 0.01629638671875, 0.0120849609375, 0.005947113037109375, -0.00899505615234375, -0.028839111328125, -0.0282135009765625, -0.050048828125, -0.03387451171875, 0.034088134765625, 0.0631103515625, -0.042205810546875, -0.0023345947265625, -0.0611572265625, -0.06671142578125, -0.00786590576171875, -0.07781982421875, 0.031646728515625, 0.06402587890625, -0.0051727294921875, -0.0117034912109375, 0.0009479522705078125, 0.00421905517578125, 0.019683837890625, 0.0230865478515625, -0.0132598876953125, 0.0267486572265625, -0.0111083984375, -0.0029697418212890625, -0.0267791748046875, -0.00247955322265625, -0.026123046875, 0.043548583984375, 0.004123687744140625, 0.0211029052734375, 0.021148681640625, 0.0019197463989257812, 0.01212310791015625, -0.06976318359375, 0.041229248046875, -0.048736572265625, -0.020172119140625, -0.048980712890625, -0.01131439208984375, 0.003734588623046875, 0.0794677734375, -0.043853759765625, -0.0168609619140625, 0.0108489990234375, 0.01383209228515625, -0.01334381103515625, -0.01111602783203125, -0.028350830078125, -0.0210723876953125, 0.010589599609375, -0.00246429443359375, -0.009521484375, -0.0171966552734375, -0.00267791748046875, -0.0228424072265625, 0.02630615234375, -0.0203704833984375, 0.0323486328125, -0.011444091796875, -0.00232696533203125, 0.01983642578125, -0.0184783935546875, -0.0165557861328125, -0.022491455078125, -0.025909423828125, -0.07269287109375, -0.0048370361328125, 0.00974273681640625, 0.0187835693359375, 0.000762939453125, -0.02972412109375, -0.0208282470703125, 0.018890380859375, 0.042205810546875, 0.0182037353515625, 0.0138092041015625, -0.023162841796875, -0.002117156982421875, -0.0296173095703125, 0.0287933349609375, -0.03369140625, 0.020721435546875, 0.00661468505859375, -0.04510498046875, 0.004100799560546875, -0.03271484375, 0.01032257080078125, 0.01297760009765625, -0.032684326171875, -0.0161895751953125, -0.0172119140625, 0.00464630126953125, 0.00933074951171875, 0.0273284912109375, -0.03253173828125, -0.020416259765625, -0.018524169921875, 0.0211944580078125, 0.0207366943359375, -0.0287628173828125, 0.0134735107421875, 0.0567626953125, 0.0231170654296875, -0.0262603759765625, -0.033935546875, 0.032745361328125, 0.0230712890625, 0.0188446044921875, 0.040618896484375, -0.000056803226470947266, -0.0052490234375, 0.051788330078125, -0.002933502197265625, 0.011199951171875, -0.047607421875, 0.040069580078125, -0.0169677734375, -0.060211181640625, 0.049896240234375, -0.0243682861328125, 0.02545166015625, 0.034698486328125, -0.026763916015625, -0.0174407958984375, -0.0269775390625, 0.05291748046875, -0.00217437744140625, 0.01377105712890625, -0.06097412109375, -0.01340484619140625, -0.01052093505859375, -0.015472412109375, 0.037017822265625, 0.03997802734375, -0.00766754150390625, 0.025421142578125, 0.0369873046875, -0.012969970703125, 0.0638427734375, 0.0007662773132324219, 0.01082611083984375, -0.006099700927734375, 0.049407958984375, -0.0259857177734375, 0.024658203125, -0.00983428955078125, 0.04364013671875, 0.020965576171875, -0.0215301513671875, -0.01325225830078125, 0.005756378173828125, 0.0079193115234375, -0.022491455078125, 0.028167724609375, 0.005970001220703125, -0.0171661376953125, 0.01151275634765625, 0.007312774658203125, 0.051788330078125, -0.02337646484375, -0.007518768310546875, 0.0255889892578125, 0.0162811279296875, -0.0165863037109375, 0.0042266845703125, 0.02862548828125, 0.0010080337524414062, -0.0096588134765625, -0.005283355712890625, 0.00952911376953125, 0.01338958740234375, 0.0033206939697265625, 0.005290985107421875, 0.03936767578125, 0.0043792724609375, -0.016754150390625, 0.0308685302734375, -0.03021240234375, -0.026885986328125, 0.00554656982421875, 0.02392578125, 0.015380859375, 0.006214141845703125, 0.015838623046875, 0.01183319091796875, 0.01409149169921875, 0.01145172119140625, -0.06390380859375, -0.04937744140625, -0.014862060546875, 0.023468017578125, 0.035400390625, -0.03125, -0.0172576904296875, -0.000020563602447509766, -0.0179290771484375, 0.042510986328125, -0.0167999267578125, -0.031524658203125, 0.0280303955078125, 0.0158538818359375, 0.039337158203125, -0.0214691162109375, -0.0085296630859375, -0.05426025390625, 0.0182952880859375, -0.031402587890625, 0.004032135009765625, 0.044677734375, -0.0165252685546875, 0.0200347900390625, -0.0043487548828125, -0.0169677734375, -0.03643798828125, 0.0171356201171875, 0.0171051025390625, 0.0206298828125, -0.046417236328125, -0.023956298828125, -0.058624267578125, -0.043365478515625, -0.042999267578125, -0.00981903076171875, -0.053619384765625, 0.039581298828125, -0.00527191162109375, 0.0220947265625, -0.0312042236328125, -0.00550079345703125, -0.045989990234375, 0.048614501953125, 0.033905029296875, 0.115234375, 0.004711151123046875, 0.0760498046875, -0.047637939453125, 0.061126708984375, 0.003856658935546875, 0.0218048095703125, -0.0428466796875, -0.004756927490234375, 0.035614013671875, -0.01013946533203125, -0.0350341796875, -0.0215606689453125, -0.0682373046875, -0.00531005859375, 0.07098388671875, -0.00986480712890625, 0.0029163360595703125, -0.048614501953125, 0.00868988037109375, -0.0277099609375, 0.052093505859375, -0.048919677734375, -0.06427001953125, 0.03326416015625, -0.00241851806640625, -0.01074981689453125, -0.0108489990234375, 0.0227508544921875, -0.02490234375, 0.00885772705078125, -0.032135009765625, -0.03668212890625, -0.0169830322265625, 0.056365966796875, 0.09515380859375, -0.01371002197265625, 0.04248046875, 0.032135009765625, -0.0011501312255859375, 0.021392822265625, 0.02850341796875, -0.0197906494140625, -0.053985595703125, 0.050323486328125, 0.017120361328125, -0.0303192138671875, 0.0287933349609375, -0.0220794677734375, 0.005767822265625, 0.11279296875, 0.06561279296875, -0.135498046875, -0.005035400390625, 0.00807952880859375, -0.005992889404296875, -0.00957489013671875, -0.0188751220703125, -0.007221221923828125, -0.046722412109375, 0.033935546875, 0.025146484375, -0.0148162841796875, 0.0111846923828125, 0.006221771240234375, -0.01220703125, -0.01509857177734375, 0.0660400390625, 0.01104736328125, -0.0031223297119140625, 0.0029735565185546875, -0.02410888671875, 0.0202178955078125, 0.0014657974243164062, 0.014892578125, -0.0139007568359375, -0.0186309814453125, 0.00608062744140625, 0.029266357421875, -0.0296630859375, -0.00336456298828125, 0.03900146484375, 0.04388427734375, -0.0217742919921875, 0.049652099609375, -0.0215301513671875, 0.04339599609375, 0.01270294189453125, 0.0021991729736328125, 0.019012451171875, -0.0166168212890625, 0.0157470703125, 0.0224609375, -0.02728271484375, 0.0231781005859375, 0.0008907318115234375, -0.01727294921875, -0.01169586181640625, 0.05078125, 0.09515380859375, 0.0016088485717773438, -0.05322265625, 0.02496337890625, -0.00554656982421875, -0.0172271728515625, 0.00685882568359375, -0.00975799560546875, -0.0150146484375, 0.024658203125, 0.0046539306640625, 0.00860595703125, -0.000091552734375, 0.0188446044921875, -0.08599853515625, 0.08636474609375, 0.0281982421875, 0.0655517578125, 0.04937744140625, 0.01320648193359375, -0.06787109375, -0.046173095703125, -0.0276031494140625, 0.02294921875, 0.0176849365234375, 0.055511474609375, -0.0167694091796875, -0.005161285400390625, 0.022857666015625, 0.035491943359375, 0.02020263671875, -0.0021991729736328125, 0.0145416259765625, 0.01552581787109375, 0.04486083984375, 0.0119476318359375, -0.01202392578125, 0.003021240234375, -0.00876617431640625, -0.012603759765625, -0.0239410400390625, -0.0079498291015625, 0.01349639892578125, -0.0145263671875, -0.0335693359375, 0.0230255126953125, 0.003261566162109375, 0.0236358642578125, 0.0106658935546875, 0.022369384765625, -0.06048583984375, -0.0013484954833984375, 0.050689697265625, -0.039581298828125, -0.0028705596923828125, -0.0025653839111328125, 0.0140228271484375, -0.07305908203125, -0.03851318359375, -0.024688720703125, 0.02703857421875, 0.0211181640625, 0.003383636474609375, -0.00814056396484375, 0.01355743408203125, -0.0116424560546875, -0.0618896484375, -0.017852783203125, 0.0167388916015625, -0.04833984375, 0.0220489501953125, 0.0136566162109375, 0.01434326171875, -0.049102783203125, -0.02166748046875, 0.043182373046875, 0.045135498046875, -0.027099609375, -0.04034423828125, 0.0026836395263671875, -0.00592803955078125, 0.0013437271118164062, -0.00933837890625, -0.00039315223693847656, 0.033660888671875, 0.0374755859375, -0.017608642578125, -0.032928466796875, -0.01331329345703125, 0.0079803466796875, -0.0191192626953125, -0.001922607421875, 0.042236328125, -0.017852783203125, -0.06280517578125, 0.0447998046875, 0.0318603515625, 0.06103515625, 0.00691986083984375, 0.045989990234375, -0.021453857421875, -0.0252227783203125, -0.0174560546875, 0.0294189453125, -0.01161956787109375, 0.01995849609375, -0.00872039794921875, -0.0042572021484375, -0.004680633544921875, 0.011749267578125, -0.05224609375, 0.00479888916015625, -0.00024175643920898438, -0.0174407958984375, -0.052490234375, -0.0345458984375, -0.00920867919921875, -0.055206298828125, -0.0196685791015625, -0.031707763671875, -0.0328369140625, -0.0204315185546875, -0.0211181640625, 0.007808685302734375, 0.003299713134765625, 0.004512786865234375, -0.036102294921875, 0.0343017578125, -0.01387786865234375, -0.028228759765625, 0.05029296875, -0.02783203125, 0.059417724609375, -0.01401519775390625, -0.050537109375, 0.0010013580322265625, -0.0279998779296875, -0.047698974609375, 0.039093017578125, 0.05230712890625, -0.012725830078125, 0.00001901388168334961, 0.0193634033203125, 0.04193115234375, -0.029144287109375, -0.040283203125, 0.0295562744140625, -0.0164031982421875, 0.01537322998046875, 0.02581787109375, -0.02252197265625, -0.039794921875, -0.0224151611328125, 0.069580078125, 0.0009975433349609375, 0.1676025390625, -0.08331298828125, 0.005260467529296875, 0.0112762451171875, 0.035980224609375, -0.0188140869140625, -0.0020389556884765625, 0.04486083984375, 0.00855255126953125, 0.00579833984375, -0.038482666015625, -0.092041015625, 0.051849365234375, 0.0277862548828125, 0.0183258056640625, 0.03521728515625, 0.01464080810546875, -0.005382537841796875, -0.0214385986328125, -0.0254058837890625, -0.017791748046875, -0.01084136962890625, -0.0136871337890625, 0.01425933837890625, 0.0340576171875, 0.0281219482421875, -0.04205322265625, 0.0264892578125, -0.00821685791015625, -0.046539306640625, -0.0051727294921875, -0.046173095703125, -0.021331787109375, 0.01396942138671875, 0.055572509765625, -0.02001953125, 0.0191650390625, -0.00537109375, 0.0028934478759765625, 0.0241241455078125, 0.017425537109375, 0.0029888153076171875, 0.007904052734375, -0.008392333984375, -0.057647705078125, -0.01219940185546875, -0.062225341796875, -0.03070068359375, 0.00954437255859375, 0.0263824462890625, 0.0032367706298828125, 0.0201873779296875, 0.0028839111328125, -0.0189666748046875, -0.003665924072265625, 0.014801025390625, -0.0095062255859375, 0.0078582763671875, -0.0482177734375, -0.02166748046875, 0.040374755859375, -0.0202484130859375, 0.004299163818359375, -0.01177978515625, -0.040069580078125, -0.00420379638671875, 0.0021343231201171875, -0.005939483642578125, 0.0181732177734375, 0.043914794921875, -0.018585205078125, 0.04119873046875, -0.0199432373046875, -0.042572021484375, 0.0121917724609375, 0.00792694091796875, 0.046722412109375, -0.020599365234375, -0.00641632080078125, -0.007144927978515625, 0.01204681396484375, 0.0677490234375, -0.02490234375, -0.021575927734375, -0.032806396484375, 0.006015777587890625, 0.022796630859375, -0.01277923583984375, -0.006122589111328125, -0.0222320556640625, -0.0114898681640625, 0.0052947998046875, 0.0150146484375, 0.032257080078125, -0.04248046875, -0.1080322265625, 0.026123046875, -0.01384735107421875, -0.0421142578125, -0.0257568359375, 0.0016393661499023438, -0.0045013427734375, 0.0029582977294921875, -0.0221710205078125, -0.0028820037841796875, -0.0196685791015625, 0.0144805908203125, 0.006198883056640625, 0.0243682861328125, 0.030792236328125, -0.01520538330078125, -0.045379638671875, -0.006664276123046875, -0.01557159423828125, -0.00922393798828125, -0.033660888671875, 0.0162811279296875, -0.0087738037109375, 0.017852783203125, -0.033660888671875, -0.0601806640625, 0.0211944580078125, 0.0203399658203125, 0.0306396484375, 0.05694580078125, -0.03631591796875, 0.00878143310546875, 0.0219268798828125, 0.054931640625, 0.0163421630859375, -0.0225830078125, 0.0008234977722167969, -0.05914306640625, -0.06494140625, -0.021728515625, 0.0416259765625, -0.0657958984375, 0.00431060791015625, 0.0296173095703125, -0.0208892822265625, -0.011474609375, -0.004604339599609375, -0.03497314453125, -0.0092620849609375, -0.0166473388671875, 0.002338409423828125, -0.00460052490234375, -0.0574951171875, 0.0870361328125, -0.041748046875, -0.004344940185546875, -0.00958251953125, 0.052490234375, 0.0232086181640625, -0.0293731689453125, 0.0093231201171875, 0.057098388671875, -0.06842041015625, -0.031890869140625, 0.01110076904296875, 0.006771087646484375, -0.0240020751953125, -0.0024890899658203125, -0.00021910667419433594, 0.0229644775390625, -0.0185394287109375, 0.032379150390625, 0.0092926025390625, 0.0271453857421875, -0.01837158203125, 0.034454345703125, 0.00214385986328125, -0.00801849365234375, -0.01039886474609375, 0.0321044921875, 0.00861358642578125, -0.0182952880859375, 0.03167724609375, -0.032318115234375, 0.00667572021484375, -0.031494140625, -0.01522064208984375, -0.044281005859375, -0.012115478515625, -0.050506591796875, -0.02203369140625, 0.01502227783203125 ]
6dcda8689ecec2da3785b6b4a555297f316cf5d9
Wordpress Stackexchange Q: Execute a function when admin changes the user role How can I execute a function, when admin changes the user role of a user? I have two user roles: one is agent and the other one is client . My need is that when admin changes the user role of client to agent, I need to execute a specific function. In this function I need to get the all content and meta fields of user by getting the user id. A: You can use the set_user_role hook, that will only fire when the user role changes: add_action( 'set_user_role', function( $user_id, $role, $old_roles ) { // Your code ... }, 10, 3 ); If you want to restrict this to a profile update, you can use: add_action( 'set_user_role', function( $user_id ) { add_action( 'profile_update', function( $user_id ) { // Your code here ... } ); } );
Q: Execute a function when admin changes the user role How can I execute a function, when admin changes the user role of a user? I have two user roles: one is agent and the other one is client . My need is that when admin changes the user role of client to agent, I need to execute a specific function. In this function I need to get the all content and meta fields of user by getting the user id. A: You can use the set_user_role hook, that will only fire when the user role changes: add_action( 'set_user_role', function( $user_id, $role, $old_roles ) { // Your code ... }, 10, 3 ); If you want to restrict this to a profile update, you can use: add_action( 'set_user_role', function( $user_id ) { add_action( 'profile_update', function( $user_id ) { // Your code here ... } ); } );
wordpress
{ "language": "en", "length": 147, "provenance": "stackexchange_00019.jsonl.gz:457243", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/194324" }
[ 0.05767822265625, 0.0004398822784423828, -0.0067901611328125, -0.029937744140625, 0.011199951171875, -0.0278778076171875, 0.00522613525390625, -0.03814697265625, -0.0181427001953125, 0.035308837890625, 0.0280914306640625, -0.0012264251708984375, -0.0018205642700195312, -0.03436279296875, -0.01491546630859375, -0.0179290771484375, 0.026885986328125, 0.0029621124267578125, 0.0219879150390625, -0.0008673667907714844, -0.0017328262329101562, 0.037841796875, -0.0078887939453125, 0.04168701171875, 0.0276031494140625, -0.057281494140625, 0.023956298828125, -0.02899169921875, 0.0295562744140625, 0.0038089752197265625, 0.01556396484375, 0.01418304443359375, -0.0174713134765625, 0.044830322265625, -0.0122833251953125, 0.0293731689453125, 0.025146484375, 0.015899658203125, 0.038787841796875, 0.01312255859375, 0.026458740234375, -0.0015430450439453125, 0.002460479736328125, 0.050048828125, -0.004364013671875, -0.07000732421875, 0.038848876953125, -0.04583740234375, 0.02264404296875, 0.01340484619140625, 0.0218658447265625, -0.023712158203125, 0.0244140625, 0.009490966796875, -0.00695037841796875, 0.005008697509765625, -0.055938720703125, 0.02557373046875, 0.020233154296875, 0.044525146484375, 0.01032257080078125, -0.005832672119140625, -0.01436614990234375, -0.04730224609375, -0.0126953125, -0.007720947265625, -0.01233673095703125, 0.0084075927734375, -0.057037353515625, -0.0212860107421875, 0.02960205078125, -0.02899169921875, -0.031585693359375, 0.014556884765625, -0.0161285400390625, 0.00496673583984375, 0.0173797607421875, -0.0004277229309082031, 0.002582550048828125, 0.03619384765625, 0.00818634033203125, 0.027587890625, 0.01605224609375, 0.01113128662109375, 0.00952911376953125, 0.0489501953125, -0.01568603515625, -0.03076171875, -0.021636962890625, -0.00811767578125, -0.020111083984375, -0.00591278076171875, -0.00009417533874511719, -0.015594482421875, -0.035003662109375, -0.017486572265625, 0.0276641845703125, 0.04620361328125, -0.0233917236328125, -0.0242767333984375, -0.0082550048828125, -0.01531982421875, -0.0333251953125, -0.019256591796875, -0.006855010986328125, 0.052520751953125, 0.0281219482421875, -0.003910064697265625, -0.00634765625, 0.0019073486328125, -0.0059661865234375, -0.035736083984375, -0.020538330078125, 0.0299835205078125, -0.0262451171875, -0.0225372314453125, -0.06915283203125, 0.01959228515625, -0.03350830078125, 0.0211944580078125, 0.005573272705078125, 0.0217742919921875, 0.0169219970703125, -0.05975341796875, 0.021453857421875, 0.00015974044799804688, -0.045257568359375, -0.02484130859375, 0.00344085693359375, -0.007320404052734375, -0.0477294921875, 0.0025234222412109375, 0.0799560546875, 0.07379150390625, 0.053314208984375, -0.008514404296875, 0.0207366943359375, 0.0018892288208007812, -0.00664520263671875, 0.03204345703125, -0.000025033950805664062, -0.060394287109375, -0.04296875, 0.0186767578125, 0.0219573974609375, 0.027587890625, 0.006122589111328125, -0.0003230571746826172, 0.012847900390625, -0.00634002685546875, -0.031890869140625, -0.005130767822265625, -0.00974273681640625, 0.03900146484375, 0.049652099609375, 0.02374267578125, 0.0343017578125, -0.004177093505859375, 0.0172882080078125, 0.01320648193359375, 0.0064849853515625, -0.001007080078125, 0.0240631103515625, -0.007598876953125, -0.0205230712890625, -0.00669097900390625, -0.038818359375, 0.0013675689697265625, 0.027862548828125, -0.012237548828125, 0.0723876953125, -0.0086517333984375, 0.02001953125, 0.0124969482421875, 0.0172119140625, 0.00597381591796875, -0.02581787109375, 0.020416259765625, 0.0251617431640625, -0.0308685302734375, -0.0281219482421875, -0.04949951171875, 0.0400390625, -0.00797271728515625, -0.00485992431640625, 0.00844573974609375, -0.00714874267578125, -0.0010700225830078125, 0.0113677978515625, 0.01273345947265625, -0.0340576171875, 0.0489501953125, 0.00563812255859375, 0.0037899017333984375, 0.025390625, -0.026336669921875, -0.0013370513916015625, -0.0146942138671875, -0.01116180419921875, -0.0211334228515625, 0.0433349609375, 0.0219573974609375, -0.0214691162109375, -0.0097503662109375, -0.0401611328125, -0.0213165283203125, -0.0062713623046875, 0.024810791015625, 0.044647216796875, 0.035491943359375, -0.0111846923828125, 0.020599365234375, -0.00641632080078125, -0.0399169921875, -0.0213775634765625, 0.0243072509765625, -0.0200958251953125, 0.0433349609375, -0.0037746429443359375, 0.0509033203125, -0.0069732666015625, -0.04022216796875, -0.007472991943359375, -0.040679931640625, 0.029876708984375, -0.0136260986328125, -0.0138092041015625, -0.01654052734375, 0.044769287109375, -0.00977325439453125, 0.01715087890625, 0.02978515625, 0.046295166015625, 0.0182952880859375, -0.0290069580078125, 0.0012426376342773438, -0.00753021240234375, -0.0775146484375, -0.0133819580078125, 0.06591796875, 0.039947509765625, -0.00839996337890625, 0.0023860931396484375, 0.0062103271484375, 0.00876617431640625, -0.00605010986328125, 0.04705810546875, -0.02935791015625, 0.00403594970703125, 0.057403564453125, -0.0269012451171875, 0.00470733642578125, 0.017333984375, -0.045623779296875, -0.0296630859375, 0.060089111328125, 0.01383209228515625, -0.01082611083984375, -0.00583648681640625, 0.0142059326171875, 0.01033782958984375, -0.071044921875, -0.046478271484375, -0.0240631103515625, -0.009307861328125, -0.00043272972106933594, -0.02191162109375, -0.0167694091796875, -0.038970947265625, 0.0021953582763671875, 0.049407958984375, 0.0175933837890625, 0.01345062255859375, 0.0543212890625, -0.0293731689453125, 0.0113067626953125, -0.0213470458984375, -0.0064239501953125, -0.0213165283203125, 0.028594970703125, 0.0032787322998046875, 0.057373046875, -0.006908416748046875, -0.0196380615234375, -0.01163482666015625, 0.0280303955078125, -0.01210784912109375, -0.0002263784408569336, 0.047149658203125, -0.01041412353515625, 0.0258941650390625, -0.0134429931640625, -0.0242156982421875, 0.05389404296875, -0.024169921875, -0.047393798828125, 0.0010480880737304688, -0.025115966796875, 0.0121917724609375, -0.01531982421875, 0.033355712890625, 0.061370849609375, 0.0129241943359375, -0.01401519775390625, 0.00902557373046875, -0.032257080078125, -0.0011072158813476562, 0.0556640625, 0.040496826171875, -0.034637451171875, 0.0036640167236328125, 0.04046630859375, 0.035614013671875, 0.005672454833984375, 0.032073974609375, -0.0120697021484375, -0.0101470947265625, 0.025146484375, -0.0572509765625, -0.037261962890625, -0.015106201171875, -0.05816650390625, 0.006519317626953125, 0.0030612945556640625, -0.025360107421875, 0.001087188720703125, 0.021026611328125, 0.005767822265625, 0.0256805419921875, 0.00458526611328125, -0.047393798828125, 0.012420654296875, -0.034515380859375, 0.04241943359375, -0.020782470703125, -0.00157928466796875, 0.00211334228515625, 0.06695556640625, -0.0027294158935546875, -0.08563232421875, -0.04840087890625, 0.0019407272338867188, -0.03411865234375, -0.005092620849609375, 0.0246429443359375, -0.049285888671875, 0.0235443115234375, -0.01155853271484375, 0.046630859375, 0.0211944580078125, -0.006134033203125, -0.0111846923828125, 0.004791259765625, -0.039093017578125, 0.03350830078125, -0.0292510986328125, -0.037353515625, -0.004299163818359375, 0.04107666015625, -0.03936767578125, 0.01349639892578125, -0.01413726806640625, -0.021820068359375, 0.05108642578125, -0.0009984970092773438, -0.019073486328125, 0.013214111328125, 0.00830841064453125, 0.0438232421875, 0.029937744140625, -0.03253173828125, 0.0504150390625, -0.0274810791015625, 0.0011281967163085938, 0.021881103515625, -0.00036978721618652344, 0.0163116455078125, 0.007556915283203125, -0.00254058837890625, -0.005218505859375, 0.05157470703125, -0.01898193359375, 0.0305023193359375, -0.0706787109375, -0.0411376953125, 0.03759765625, -0.021728515625, 0.003765106201171875, -0.025115966796875, -0.0198211669921875, -0.002391815185546875, 0.0760498046875, 0.06640625, -0.00962066650390625, -0.029388427734375, -0.0240631103515625, -0.052337646484375, -0.0011053085327148438, -0.031524658203125, 0.01959228515625, -0.038726806640625, -0.0168304443359375, -0.0291595458984375, -0.0015554428100585938, -0.051239013671875, 0.0655517578125, -0.032684326171875, -0.0215606689453125, 0.0389404296875, -0.044342041015625, -0.0159149169921875, 0.0379638671875, -0.014892578125, -0.0170440673828125, -0.0301055908203125, -0.003726959228515625, -0.05084228515625, -0.006954193115234375, -0.031707763671875, 0.0433349609375, 0.038848876953125, -0.034820556640625, -0.002193450927734375, 0.0198516845703125, -0.003795623779296875, 0.0037364959716796875, 0.007755279541015625, 0.0177154541015625, 0.034332275390625, -0.027130126953125, -0.00339508056640625, -0.0298919677734375, -0.0211944580078125, -0.0093231201171875, 0.004367828369140625, 0.02978515625, -0.025909423828125, 0.0013751983642578125, -0.003177642822265625, -0.01143646240234375, -0.06256103515625, -0.0253143310546875, -0.020904541015625, 0.004581451416015625, -0.01053619384765625, 0.0014171600341796875, -0.03106689453125, -0.057159423828125, 0.0273895263671875, -0.06365966796875, -0.015472412109375, 0.0038661956787109375, 0.058868408203125, 0.0277252197265625, 0.00885009765625, 0.05889892578125, 0.0092926025390625, 0.048553466796875, -0.004764556884765625, 0.0276947021484375, 0.0260467529296875, -0.0360107421875, 0.04925537109375, 0.0268402099609375, 0.023773193359375, -0.016204833984375, 0.04254150390625, 0.0211181640625, -0.0025844573974609375, 0.0150299072265625, 0.020599365234375, -0.0258636474609375, -0.01203155517578125, -0.0009603500366210938, -0.02532958984375, 0.002414703369140625, 0.033203125, -0.0093994140625, 0.0311126708984375, -0.0081634521484375, -0.01522064208984375, 0.0006699562072753906, -0.029205322265625, 0.00431060791015625, 0.0194549560546875, 0.0008645057678222656, -0.0243377685546875, -0.0073394775390625, -0.0019550323486328125, -0.031707763671875, 0.01543426513671875, -0.01148223876953125, 0.055389404296875, -0.05010986328125, 0.007213592529296875, -0.053497314453125, -0.00864410400390625, 0.04278564453125, 0.015350341796875, -0.028900146484375, -0.0063629150390625, -0.006000518798828125, 0.010345458984375, -0.0043792724609375, -0.013671875, 0.039794921875, 0.0140228271484375, 0.01091766357421875, -0.0123748779296875, -0.0298309326171875, 0.01290130615234375, -0.0328369140625, 0.0033588409423828125, 0.0023975372314453125, -0.0193023681640625, 0.0141754150390625, 0.0341796875, 0.037322998046875, 0.007022857666015625, -0.0333251953125, 0.078125, 0.06060791015625, -0.006298065185546875, 0.00013875961303710938, 0.05084228515625, -0.0249481201171875, -0.0188446044921875, -0.010772705078125, -0.013397216796875, 0.022552490234375, -0.00008612871170043945, 0.005401611328125, 0.0474853515625, -0.0008797645568847656, -0.0131378173828125, -0.010406494140625, -0.0017175674438476562, 0.051849365234375, -0.0261077880859375, -0.048492431640625, -0.04608154296875, -0.020294189453125, 0.0325927734375, -0.03778076171875, -0.0012073516845703125, 0.0292510986328125, -0.0165863037109375, 0.03997802734375, -0.03350830078125, 0.0008392333984375, -0.018341064453125, -0.005641937255859375, -0.06365966796875, -0.03985595703125, -0.0225067138671875, 0.0238800048828125, -0.0021610260009765625, -0.005859375, -0.03411865234375, 0.02557373046875, -0.01751708984375, 0.01050567626953125, -0.033111572265625, 0.01015472412109375, -0.00788116455078125, -0.01885986328125, 0.08685302734375, 0.03271484375, -0.08551025390625, 0.00362396240234375, -0.052276611328125, 0.012969970703125, -0.01032257080078125, -0.0268402099609375, -0.0253753662109375, 0.004909515380859375, 0.0018100738525390625, 0.01103973388671875, -0.00162506103515625, 0.00791168212890625, 0.0076141357421875, 0.03851318359375, 0.0192108154296875, 0.049468994140625, -0.0217437744140625, 0.062164306640625, 0.0280914306640625, 0.0298614501953125, 0.01493072509765625, 0.0128173828125, -0.0272979736328125, -0.0021114349365234375, -0.0255584716796875, 0.0283660888671875, 0.03045654296875, 0.0009222030639648438, 0.031707763671875, -0.039764404296875, 0.052398681640625, 0.0029277801513671875, 0.0208282470703125, -0.01099395751953125, 0.01006317138671875, -0.037109375, -0.009429931640625, -0.0109100341796875, 0.02349853515625, -0.01554107666015625, -0.049774169921875, -0.00847625732421875, 0.022796630859375, 0.01611328125, 0.0284271240234375, -0.023956298828125, 0.0175018310546875, 0.0285491943359375, -0.038116455078125, 0.00595855712890625, 0.051544189453125, -0.00449371337890625, 0.0246124267578125, 0.00739288330078125, 0.01007080078125, 0.0238189697265625, -0.020843505859375, -0.00193023681640625, 0.030029296875, 0.0199737548828125, -0.00714874267578125, 0.0194854736328125, 0.01331329345703125, -0.013336181640625, 0.0487060546875, 0.0733642578125, 0.08251953125, -0.11334228515625, 0.025787353515625, 0.0017786026000976562, -0.004638671875, 0.08990478515625, -0.01031494140625, -0.035614013671875, -0.08843994140625, 0.035980224609375, -0.01290130615234375, -0.0210723876953125, 0.00757598876953125, -0.0102691650390625, -0.03924560546875, -0.00522613525390625, -0.019775390625, 0.02410888671875, 0.06329345703125, 0.03265380859375, -0.042694091796875, 0.051544189453125, -0.03521728515625, 0.006290435791015625, 0.007663726806640625, -0.026611328125, -0.07720947265625, 0.006015777587890625, 0.0112457275390625, -0.01192474365234375, -0.0087432861328125, 0.01678466796875, 0.052459716796875, 0.051849365234375, 0.021759033203125, -0.044769287109375, 0.044830322265625, -0.02069091796875, -0.0904541015625, -0.048858642578125, 0.002750396728515625, 0.050384521484375, -0.0194244384765625, 0.042327880859375, 0.0011205673217773438, -0.03887939453125, -0.009246826171875, -0.051727294921875, 0.01226043701171875, -0.02703857421875, 0.0103302001953125, 0.023040771484375, 0.03033447265625, -0.01059722900390625, 0.00673675537109375, 0.0159759521484375, -0.04669189453125, -0.03912353515625, 0.0207977294921875, -0.04376220703125, -0.02490234375, 0.0164031982421875, -0.065185546875, 0.11920166015625, -0.0029964447021484375, 0.02313232421875, -0.003932952880859375, 0.038055419921875, -0.027313232421875, 0.00867462158203125, -0.0386962890625, 0.049346923828125, 0.01151275634765625, 0.033233642578125, -0.034698486328125, 0.0025501251220703125, -0.005367279052734375, 0.015960693359375, 0.0196533203125, 0.0234832763671875, -0.051513671875, -0.00902557373046875, -0.01526641845703125, 0.00653076171875, -0.0108642578125, 0.060882568359375, -0.034393310546875, 0.0355224609375, 0.004192352294921875, -0.037384033203125, 0.0350341796875, -0.0467529296875, -0.0816650390625, -0.020294189453125, 0.022735595703125, 0.0114288330078125, -0.017608642578125, 0.027130126953125, -0.0408935546875, -0.007221221923828125, 0.02691650390625, -0.013885498046875, 0.01535797119140625, 0.03570556640625, 0.029998779296875, 0.031768798828125, 0.05828857421875, -0.025543212890625, 0.058074951171875, 0.0005917549133300781, -0.0037994384765625, -0.00899505615234375, 0.01262664794921875, -0.0316162109375, 0.00955963134765625, -0.0182037353515625, 0.0443115234375, -0.00786590576171875, 0.07171630859375, 0.055450439453125, 0.02362060546875, -0.001308441162109375, 0.03656005859375, 0.024871826171875, 0.065185546875, -0.052978515625, 0.002765655517578125, 0.0186767578125, 0.0154876708984375, 0.00327301025390625, -0.011322021484375, 0.019500732421875, -0.015472412109375, 0.0131988525390625, 0.0024967193603515625, 0.0007619857788085938, 0.00931549072265625, -0.0161895751953125, 0.00737762451171875, 0.026824951171875, -0.00667572021484375, 0.025390625, -0.039306640625, 0.0261993408203125, 0.00531005859375, -0.01413726806640625, -0.00954437255859375, 0.01708984375, 0.054229736328125, 0.02301025390625, 0.03985595703125, -0.0022754669189453125, -0.0472412109375, -0.03436279296875, -0.02783203125, -0.091552734375, -0.00444793701171875, 0.048248291015625, -0.0036334991455078125, 0.008209228515625, -0.001514434814453125, 0.016693115234375, 0.0128936767578125, -0.01134490966796875, 0.04998779296875, -0.0090179443359375, -0.0005474090576171875, -0.0190582275390625, 0.024169921875, 0.023773193359375, 0.00464630126953125, -0.023468017578125, 0.03375244140625, 0.04058837890625, -0.034210205078125, 0.038787841796875, -0.01007080078125, -0.0192718505859375, 0.022857666015625, -0.016845703125, 0.0521240234375, -0.0015411376953125, -0.0227508544921875, 0.032012939453125, -0.06744384765625, -0.101806640625, 0.031707763671875, 0.04437255859375, -0.0291595458984375, 0.03057861328125, -0.031280517578125, -0.00435638427734375, 0.02813720703125, -0.0009946823120117188, -0.022491455078125, 0.0003821849822998047, 0.021942138671875, -0.0247955322265625, 0.01056671142578125, 0.0014257431030273438, 0.0095977783203125, 0.033966064453125, 0.02679443359375, 0.061859130859375, -0.026611328125, 0.0355224609375, -0.00836181640625, 0.001865386962890625, -0.0047760009765625, -0.035797119140625, 0.0653076171875, -0.005340576171875, -0.0169525146484375, -0.00736236572265625, -0.0088653564453125, 0.058197021484375, 0.01363372802734375, -0.0026760101318359375, 0.01055908203125, 0.02020263671875, 0.004802703857421875, 0.01371002197265625, 0.007598876953125, -0.0229949951171875, -0.02398681640625, -0.02813720703125, -0.0169525146484375, 0.0252685546875, 0.01031494140625, -0.005786895751953125, 0.0027313232421875, -0.0188751220703125, -0.0269012451171875, -0.02069091796875, 0.0157928466796875, -0.06695556640625, 0.0228118896484375, -0.007411956787109375, 0.006443023681640625, -0.0024433135986328125, -0.0082244873046875, 0.0169219970703125, 0.00232696533203125, 0.005153656005859375, 0.0136871337890625, 0.017608642578125, -0.02142333984375, -0.0014553070068359375, 0.0279388427734375, -0.00539398193359375, 0.00806427001953125, -0.005756378173828125, -0.0025119781494140625, -0.0233154296875, -0.0274200439453125, -0.0325927734375, -0.030792236328125, 0.005039215087890625, 0.0272369384765625, -0.00196075439453125, -0.036224365234375, -0.05108642578125, 0.0284271240234375, 0.042510986328125, 0.022369384765625, -0.10791015625, 0.058868408203125, -0.014678955078125, 0.0745849609375, 0.002529144287109375, -0.0540771484375, 0.045135498046875, 0.0792236328125, -0.026519775390625, 0.0077056884765625, -0.02374267578125, -0.05596923828125, -0.045257568359375, 0.008148193359375, 0.03558349609375, 0.007076263427734375, -0.0562744140625, 0.0016002655029296875, -0.0303955078125, 0.048126220703125, -0.0311737060546875, -0.0033893585205078125, -0.029388427734375, 0.0491943359375, -0.0078277587890625, -0.041015625, -0.003551483154296875, 0.0369873046875, -0.01175689697265625, 0.002758026123046875, 0.0156097412109375, 0.052886962890625, -0.00260162353515625, -0.0301513671875, 0.078125, -0.015960693359375, -0.0008940696716308594, -0.02752685546875, -0.0100250244140625, 0.0225982666015625, -0.03924560546875, -0.0245208740234375, -0.005275726318359375, -0.042327880859375, 0.0003573894500732422, 0.014801025390625, -0.0179595947265625, 0.0207366943359375, -0.0009822845458984375, -0.0450439453125, 0.042449951171875, 0.045440673828125, 0.0035457611083984375, 0.0011005401611328125, -0.014434814453125, 0.0302886962890625, 0.041778564453125, -0.016571044921875, -0.0295257568359375, 0.00897979736328125, -0.0267333984375, -0.046783447265625, -0.048675537109375, 0.003467559814453125, -0.0025653839111328125, 0.096923828125, 0.0557861328125, 0.01387786865234375, -0.05181884765625, -0.04339599609375, -0.017303466796875, 0.034912109375, -0.00634002685546875, 0.00018417835235595703, -0.05889892578125, -0.005374908447265625, 0.00862884521484375, -0.0364990234375, -0.003887176513671875, -0.004772186279296875, -0.06036376953125, 0.019927978515625, 0.0230712890625, 0.021392822265625, -0.032623291015625, 0.0171356201171875, 0.04327392578125, -0.04827880859375, -0.0079803466796875, 0.0152435302734375, -0.01334381103515625, 0.01213836669921875, 0.017822265625, 0.01425933837890625, 0.041412353515625, -0.06512451171875, 0.006038665771484375, -0.0009169578552246094, -0.00598907470703125, -0.04632568359375, -0.007476806640625, 0.006397247314453125, 0.0281829833984375, 0.0022125244140625, 0.0270538330078125, -0.01262664794921875, 0.05633544921875, 0.0114593505859375, 0.0316162109375, -0.0399169921875, 0.08209228515625, -0.0255889892578125, 0.049560546875, 0.0037288665771484375, 0.0014982223510742188, 0.06842041015625, -0.01447296142578125, -0.0003154277801513672, 0.0074462890625, 0.03802490234375, -0.0574951171875, 0.020843505859375, 0.0243682861328125, 0.030242919921875, 0.0240936279296875 ]
905fff2aa8ce2afc4028a34e2ff72ecd518188ac
Wordpress Stackexchange Q: How to intercept a 404 error I'd like to intercept 404 errors and do some things before to show the 404 error page. How can intercept the 404 error? A: As was mentioned in a comment, template_redirect would be an appropriate hook for intercepting a 404 before the template is loaded. function wpd_do_stuff_on_404(){ if( is_404() ){ // do stuff } } add_action( 'template_redirect', 'wpd_do_stuff_on_404' ); Refer to the Action Reference for the general order of actions on the front end. The main query runs between the posts_selection and wp actions, so that is the earliest you can determine that a request is a 404. The template is then loaded after template_redirect, so it's too late to set headers after that point.
Q: How to intercept a 404 error I'd like to intercept 404 errors and do some things before to show the 404 error page. How can intercept the 404 error? A: As was mentioned in a comment, template_redirect would be an appropriate hook for intercepting a 404 before the template is loaded. function wpd_do_stuff_on_404(){ if( is_404() ){ // do stuff } } add_action( 'template_redirect', 'wpd_do_stuff_on_404' ); Refer to the Action Reference for the general order of actions on the front end. The main query runs between the posts_selection and wp actions, so that is the earliest you can determine that a request is a 404. The template is then loaded after template_redirect, so it's too late to set headers after that point. A: Using below code you can directly redirect on home page when 404 call, please remove all code from the 404.php file and add below code. <?php header("HTTP/1.1 301 Moved Permanently"); header("Location: ".get_bloginfo('url')); exit(); ?>
wordpress
{ "language": "en", "length": 157, "provenance": "stackexchange_00019.jsonl.gz:457249", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/194348" }
[ 0.06243896484375, -0.009857177734375, 0.011871337890625, -0.05169677734375, 0.004077911376953125, -0.0172271728515625, 0.0273590087890625, -0.006809234619140625, 0.03302001953125, 0.0168914794921875, -0.01812744140625, -0.0029296875, 0.0038127899169921875, -0.017608642578125, -0.0244903564453125, -0.0132598876953125, 0.0231170654296875, -0.0307464599609375, 0.0193328857421875, -0.00756072998046875, 0.0172882080078125, 0.003662109375, 0.03863525390625, -0.00616455078125, -0.0002779960632324219, 0.01018524169921875, 0.027740478515625, 0.004413604736328125, -0.03753662109375, -0.024078369140625, 0.0006308555603027344, 0.01515960693359375, 0.017486572265625, 0.0172576904296875, -0.0035381317138671875, 0.033355712890625, -0.01314544677734375, 0.027587890625, 0.01258087158203125, 0.0285491943359375, 0.0075225830078125, -0.0062408447265625, 0.07025146484375, 0.01476287841796875, 0.0128631591796875, -0.0167694091796875, 0.016876220703125, -0.061859130859375, 0.02435302734375, -0.0031890869140625, 0.018829345703125, 0.02264404296875, 0.031524658203125, -0.01236724853515625, -0.0260772705078125, -0.01242828369140625, 0.006587982177734375, 0.060882568359375, 0.01090240478515625, -0.0167694091796875, -0.0321044921875, 0.0633544921875, -0.0084686279296875, -0.01076507568359375, 0.0138702392578125, -0.0158233642578125, -0.0018148422241210938, 0.027679443359375, -0.0684814453125, 0.00788116455078125, 0.042388916015625, -0.046875, -0.0191802978515625, 0.0192718505859375, -0.01715087890625, -0.042083740234375, 0.045074462890625, -0.0017595291137695312, -0.00408172607421875, 0.0469970703125, 0.054229736328125, -0.047271728515625, 0.056671142578125, -0.0288238525390625, 0.031829833984375, 0.0019683837890625, 0.004337310791015625, -0.005615234375, -0.016326904296875, -0.02423095703125, -0.0226287841796875, -0.0008988380432128906, 0.001819610595703125, -0.0289764404296875, -0.02813720703125, -0.04632568359375, -0.0112457275390625, 0.0115203857421875, -0.0252227783203125, -0.002826690673828125, -0.0252532958984375, -0.0004477500915527344, -0.0304107666015625, -0.00945281982421875, -0.0010404586791992188, 0.033721923828125, 0.023101806640625, -0.0276336669921875, 0.0200347900390625, 0.0162353515625, -0.01384735107421875, 0.054290771484375, -0.024200439453125, -0.04248046875, -0.03778076171875, 0.062225341796875, -0.00383758544921875, -0.0338134765625, 0.00933074951171875, 0.003475189208984375, -0.00421142578125, -0.009521484375, 0.038299560546875, 0.0011119842529296875, -0.0171356201171875, -0.0271759033203125, -0.01424407958984375, -0.0306396484375, 0.087646484375, -0.00896453857421875, 0.0030803680419921875, 0.02813720703125, -0.0191802978515625, -0.040435791015625, -0.032958984375, 0.00669097900390625, 0.054107666015625, -0.0026607513427734375, 0.0078887939453125, 0.016845703125, 0.0218353271484375, -0.06280517578125, -0.07281494140625, 0.0465087890625, 0.0040283203125, 0.0161895751953125, 0.0190277099609375, 0.02313232421875, -0.0032749176025390625, -0.062286376953125, 0.01271820068359375, 0.006511688232421875, 0.00182342529296875, 0.0268096923828125, 0.0164337158203125, -0.0027675628662109375, 0.0306549072265625, -0.01226043701171875, -0.0168914794921875, -0.02642822265625, -0.0093994140625, -0.00936126708984375, 0.0286407470703125, -0.01509857177734375, -0.04022216796875, 0.0098724365234375, -0.028839111328125, -0.011932373046875, 0.0260009765625, 0.06689453125, 0.0193328857421875, -0.01556396484375, -0.039947509765625, -0.01058197021484375, -0.0241546630859375, -0.0244598388671875, 0.0154876708984375, 0.02166748046875, -0.00817108154296875, 0.04107666015625, 0.0183563232421875, -0.025909423828125, 0.0073699951171875, -0.002971649169921875, -0.05340576171875, 0.0709228515625, 0.015899658203125, 0.08447265625, -0.01306915283203125, 0.01319122314453125, 0.0163116455078125, 0.0457763671875, -0.036529541015625, 0.08648681640625, -0.037750244140625, -0.02166748046875, 0.005489349365234375, 0.032318115234375, -0.0310821533203125, -0.032257080078125, 0.0003211498260498047, 0.068115234375, -0.05389404296875, 0.01032257080078125, -0.056732177734375, 0.008575439453125, -0.00386810302734375, 0.03045654296875, 0.013763427734375, 0.00681304931640625, 0.01140594482421875, -0.0166015625, -0.0270538330078125, 0.04107666015625, -0.0109405517578125, 0.039886474609375, -0.03564453125, 0.018951416015625, -0.02410888671875, 0.039398193359375, -0.0300140380859375, -0.057464599609375, -0.0298004150390625, -0.03424072265625, 0.0169677734375, -0.030059814453125, -0.0016222000122070312, -0.000011026859283447266, 0.03857421875, 0.002994537353515625, -0.00858306884765625, 0.0067901611328125, -0.0188751220703125, 0.017730712890625, -0.01206207275390625, -0.00865936279296875, -0.038787841796875, -0.0792236328125, 0.017120361328125, 0.053070068359375, 0.02166748046875, 0.055145263671875, -0.02606201171875, -0.017913818359375, 0.0217437744140625, -0.0587158203125, 0.00888824462890625, -0.004108428955078125, 0.023590087890625, 0.030548095703125, -0.004856109619140625, -0.0244598388671875, 0.0237274169921875, -0.033966064453125, 0.0251922607421875, 0.01538848876953125, -0.0227203369140625, -0.011627197265625, -0.021881103515625, 0.03326416015625, -0.0022735595703125, 0.01352691650390625, 0.0075531005859375, -0.00688934326171875, 0.037994384765625, -0.01849365234375, 0.022308349609375, -0.000007748603820800781, -0.0193023681640625, -0.018524169921875, 0.022705078125, -0.0180816650390625, 0.03240966796875, 0.0469970703125, -0.0218505859375, 0.053802490234375, -0.01250457763671875, -0.0214080810546875, 0.0265045166015625, 0.041961669921875, -0.001483917236328125, 0.08160400390625, -0.03997802734375, -0.02447509765625, -0.03466796875, -0.051116943359375, -0.0242919921875, -0.016845703125, 0.05596923828125, 0.0271453857421875, 0.033843994140625, 0.022125244140625, -0.0017681121826171875, 0.05352783203125, -0.0019350051879882812, -0.0223388671875, -0.0274810791015625, -0.057464599609375, 0.042694091796875, -0.04290771484375, 0.040618896484375, 0.07037353515625, -0.0194244384765625, 0.0247955322265625, 0.01739501953125, -0.02899169921875, 0.049041748046875, -0.003246307373046875, -0.0033512115478515625, -0.00963592529296875, -0.029815673828125, 0.01332855224609375, 0.020721435546875, 0.03411865234375, -0.0007805824279785156, -0.02069091796875, 0.0021915435791015625, 0.0231170654296875, -0.058441162109375, -0.0836181640625, 0.00872802734375, -0.07037353515625, 0.00368499755859375, -0.01178741455078125, -0.0301513671875, -0.01189422607421875, 0.0011701583862304688, 0.0109710693359375, -0.034454345703125, -0.018035888671875, -0.0296478271484375, -0.06329345703125, -0.05499267578125, 0.00342559814453125, 0.00010418891906738281, 0.0176544189453125, 0.0039215087890625, -0.0036106109619140625, -0.00998687744140625, -0.01971435546875, 0.0033321380615234375, -0.0121307373046875, -0.0024356842041015625, -0.01922607421875, -0.0028533935546875, -0.00907135009765625, 0.0186920166015625, 0.0122528076171875, -0.027374267578125, 0.00006645917892456055, 0.02044677734375, -0.03363037109375, -0.041717529296875, -0.04547119140625, -0.0248870849609375, 0.0298919677734375, 0.0246734619140625, -0.07470703125, 0.01297760009765625, -0.07623291015625, 0.0026092529296875, -0.0147705078125, -0.047943115234375, -0.044830322265625, 0.0225677490234375, 0.0006451606750488281, -0.025238037109375, -0.028900146484375, 0.03546142578125, 0.00565338134765625, 0.051727294921875, -0.003131866455078125, 0.050811767578125, -0.0013132095336914062, 0.0058746337890625, -0.07501220703125, -0.0032482147216796875, -0.00931549072265625, -0.004367828369140625, -0.00624847412109375, 0.0303192138671875, -0.00811767578125, 0.0160369873046875, -0.039154052734375, -0.0382080078125, 0.037322998046875, -0.005535125732421875, 0.04180908203125, -0.03680419921875, -0.042572021484375, -0.01360321044921875, 0.08502197265625, -0.0012264251708984375, -0.01500701904296875, -0.017242431640625, 0.01476287841796875, -0.035980224609375, -0.0552978515625, -0.0022335052490234375, -0.0007634162902832031, -0.06353759765625, 0.01239013671875, -0.0081787109375, -0.035736083984375, -0.0130767822265625, -0.03363037109375, -0.0390625, -0.0472412109375, 0.021240234375, -0.054931640625, -0.018768310546875, 0.006031036376953125, -0.0084686279296875, -0.035614013671875, 0.00042128562927246094, -0.0394287109375, -0.07012939453125, -0.02020263671875, -0.0306396484375, 0.08929443359375, 0.048675537109375, -0.03759765625, 0.00876617431640625, 0.061065673828125, -0.03424072265625, -0.0170745849609375, -0.0389404296875, 0.0110321044921875, -0.002574920654296875, 0.0089569091796875, -0.03839111328125, 0.007709503173828125, 0.0106201171875, -0.008544921875, -0.042877197265625, -0.0223236083984375, -0.03887939453125, -0.020538330078125, 0.0107574462890625, -0.04913330078125, -0.0193328857421875, -0.016998291015625, -0.00940704345703125, 0.032501220703125, -0.0048828125, 0.01233673095703125, -0.0234527587890625, -0.05328369140625, 0.015899658203125, -0.01788330078125, -0.020843505859375, -0.01512908935546875, 0.0216827392578125, 0.0379638671875, -0.0193328857421875, 0.0928955078125, 0.0031585693359375, 0.022430419921875, -0.0316162109375, 0.049713134765625, 0.0254058837890625, -0.00780487060546875, 0.045623779296875, -0.0257720947265625, -0.0426025390625, -0.0109710693359375, 0.041351318359375, 0.017059326171875, -0.005916595458984375, -0.006137847900390625, -0.03521728515625, 0.037445068359375, 0.01183319091796875, 0.007587432861328125, -0.00872039794921875, 0.0401611328125, 0.0010833740234375, -0.05487060546875, 0.060638427734375, 0.031494140625, -0.022491455078125, 0.00855255126953125, 0.013641357421875, -0.00197601318359375, 0.0290679931640625, -0.00646209716796875, -0.00408172607421875, -0.005619049072265625, -0.00922393798828125, 0.00644683837890625, -0.0029506683349609375, 0.009765625, 0.0242462158203125, 0.0007801055908203125, -0.02203369140625, 0.005107879638671875, -0.00732421875, 0.0252532958984375, -0.0061187744140625, -0.039398193359375, 0.0025119781494140625, -0.019775390625, -0.0204620361328125, 0.01476287841796875, -0.02264404296875, 0.0222320556640625, 0.03033447265625, -0.0272064208984375, -0.01788330078125, -0.038421630859375, 0.0055084228515625, -0.052581787109375, -0.0004925727844238281, 0.028289794921875, -0.00455474853515625, 0.0239105224609375, 0.033477783203125, 0.047149658203125, 0.0000388026237487793, -0.0404052734375, -0.0024471282958984375, 0.013214111328125, 0.03369140625, 0.033660888671875, -0.034698486328125, -0.0014772415161132812, 0.00911712646484375, 0.0115966796875, -0.05426025390625, -0.01392364501953125, 0.028076171875, 0.048187255859375, -0.058807373046875, -0.04815673828125, 0.053680419921875, -0.00040650367736816406, -0.006664276123046875, 0.04925537109375, -0.0005693435668945312, -0.0458984375, -0.044677734375, -0.00959014892578125, 0.053253173828125, -0.00980377197265625, 0.006633758544921875, 0.02069091796875, -0.000980377197265625, 0.020172119140625, 0.01522064208984375, -0.0153656005859375, -0.0165557861328125, -0.0028667449951171875, 0.0288238525390625, -0.036041259765625, -0.0268707275390625, -0.0297088623046875, 0.03314208984375, -0.038238525390625, 0.0025482177734375, 0.0709228515625, -0.01336669921875, -0.01532745361328125, -0.0233001708984375, 0.016845703125, -0.0123138427734375, 0.00939178466796875, 0.0223846435546875, -0.011749267578125, -0.04327392578125, -0.005859375, -0.041595458984375, -0.0171966552734375, -0.031341552734375, -0.0265960693359375, -0.04412841796875, 0.00783538818359375, 0.005878448486328125, 0.0158843994140625, 0.02313232421875, 0.024200439453125, 0.01395416259765625, 0.0174407958984375, -0.019622802734375, -0.0003921985626220703, -0.011627197265625, 0.051513671875, -0.033355712890625, -0.00374603271484375, -0.00891876220703125, 0.031890869140625, 0.0090179443359375, -0.00791168212890625, -0.0035877227783203125, -0.0270843505859375, -0.00359344482421875, -0.006725311279296875, 0.015716552734375, 0.0205841064453125, 0.033111572265625, 0.0024433135986328125, -0.045989990234375, -0.01235198974609375, 0.0017910003662109375, -0.0268096923828125, 0.076416015625, 0.0193328857421875, -0.024810791015625, -0.0025005340576171875, 0.0277252197265625, 0.005832672119140625, -0.03228759765625, -0.04351806640625, -0.004085540771484375, 0.0343017578125, 0.007015228271484375, -0.0462646484375, -0.0675048828125, 0.06976318359375, 0.09259033203125, 0.0293731689453125, 0.058807373046875, -0.007320404052734375, 0.00797271728515625, 0.00579071044921875, 0.048797607421875, -0.006900787353515625, -0.055816650390625, 0.026947021484375, 0.0126800537109375, -0.02239990234375, 0.00478363037109375, -0.027130126953125, 0.01554107666015625, 0.07098388671875, 0.04461669921875, -0.09234619140625, -0.0024280548095703125, -0.00611114501953125, -0.03729248046875, -0.0055389404296875, -0.0122833251953125, -0.0004532337188720703, -0.004100799560546875, 0.0474853515625, 0.01192474365234375, -0.0160980224609375, 0.0199432373046875, 0.0009279251098632812, -0.026611328125, -0.0263214111328125, 0.0325927734375, 0.018463134765625, -0.01340484619140625, 0.045166015625, -0.0146636962890625, 0.04046630859375, -0.0279388427734375, 0.03948974609375, -0.0055694580078125, 0.0217132568359375, -0.00626373291015625, 0.0537109375, -0.00839996337890625, 0.002349853515625, 0.019927978515625, 0.0253753662109375, -0.0188751220703125, 0.033203125, -0.01425933837890625, 0.0130615234375, 0.0088348388671875, -0.022491455078125, 0.0241851806640625, -0.0135498046875, -0.025360107421875, -0.0230865478515625, -0.004985809326171875, -0.006244659423828125, -0.0261688232421875, -0.0043792724609375, -0.00415802001953125, -0.0037975311279296875, 0.05487060546875, -0.037445068359375, -0.029693603515625, 0.013763427734375, 0.00717926025390625, 0.006275177001953125, -0.006374359130859375, 0.03131103515625, -0.004863739013671875, 0.015350341796875, 0.0008978843688964844, 0.0088348388671875, -0.00841522216796875, -0.0204315185546875, -0.028106689453125, 0.0623779296875, -0.0008096694946289062, 0.004352569580078125, 0.027618408203125, 0.0158233642578125, -0.02984619140625, 0.00835418701171875, -0.05731201171875, 0.07257080078125, 0.002063751220703125, 0.0714111328125, -0.05902099609375, -0.01187896728515625, 0.020233154296875, 0.028289794921875, 0.07159423828125, 0.01239013671875, -0.034942626953125, 0.0087890625, 0.05206298828125, 0.030670166015625, -0.005771636962890625, 0.04443359375, -0.02288818359375, -0.005290985107421875, -0.016815185546875, -0.044403076171875, 0.0222930908203125, -0.06512451171875, -0.02685546875, -0.0151214599609375, -0.00626373291015625, -0.00963592529296875, 0.01309967041015625, 0.027191162109375, -0.0562744140625, 0.00019729137420654297, 0.040985107421875, -0.0242462158203125, 0.01025390625, 0.041015625, 0.02081298828125, -0.0024509429931640625, 0.03204345703125, -0.050567626953125, 0.052581787109375, -0.005462646484375, 0.01611328125, 0.0149993896484375, 0.022308349609375, -0.0146636962890625, 0.039398193359375, 0.0202484130859375, 0.06060791015625, -0.031463623046875, 0.029541015625, 0.026092529296875, 0.0195159912109375, -0.02532958984375, 0.01141357421875, 0.0153656005859375, 0.03656005859375, -0.03271484375, -0.0253448486328125, 0.01206207275390625, 0.00894927978515625, 0.00616455078125, -0.00998687744140625, 0.0082855224609375, -0.0247344970703125, 0.01557159423828125, -0.01702880859375, -0.042755126953125, -0.0204925537109375, 0.018890380859375, -0.0115814208984375, -0.0506591796875, 0.05718994140625, -0.03643798828125, 0.0011930465698242188, -0.05609130859375, 0.01557159423828125, 0.044677734375, 0.031494140625, -0.00524139404296875, -0.01340484619140625, -0.0181732177734375, -0.00678253173828125, 0.0207672119140625, 0.0044097900390625, 0.01107025146484375, -0.0092620849609375, 0.0098876953125, -0.0295257568359375, 0.02911376953125, 0.01361083984375, 0.0210113525390625, 0.0308685302734375, 0.042022705078125, -0.00005602836608886719, -0.008544921875, 0.0207977294921875, -0.0255889892578125, 0.0501708984375, -0.0295562744140625, 0.019866943359375, -0.01540374755859375, -0.0186614990234375, -0.042236328125, 0.003604888916015625, 0.0244140625, -0.00485992431640625, 0.030975341796875, -0.00588226318359375, -0.01215362548828125, 0.035552978515625, -0.0261993408203125, 0.055328369140625, -0.00018084049224853516, -0.11322021484375, -0.01197052001953125, -0.0101470947265625, -0.09808349609375, 0.06256103515625, 0.0701904296875, -0.041534423828125, -0.00689697265625, 0.020050048828125, 0.0036792755126953125, -0.00922393798828125, -0.0218353271484375, 0.02252197265625, -0.010009765625, 0.01198577880859375, 0.0218353271484375, -0.0077056884765625, -0.00791168212890625, 0.0020351409912109375, 0.0300750732421875, -0.00601959228515625, 0.085205078125, -0.0462646484375, 0.0107421875, 0.01470184326171875, 0.008758544921875, 0.005985260009765625, 0.00623321533203125, -0.0024261474609375, 0.020172119140625, 0.0221710205078125, -0.035552978515625, -0.038482666015625, 0.0275726318359375, 0.0247039794921875, -0.01132965087890625, 0.01959228515625, -0.0019779205322265625, 0.0136871337890625, -0.00864410400390625, -0.037445068359375, -0.052490234375, -0.0760498046875, -0.06463623046875, 0.0026912689208984375, 0.00650787353515625, 0.00843048095703125, -0.01544952392578125, 0.025146484375, -0.0311126708984375, -0.007495880126953125, 0.01020050048828125, -0.005825042724609375, -0.00817108154296875, 0.006847381591796875, -0.06878662109375, 0.01352691650390625, 0.0071258544921875, -0.00823211669921875, 0.00826263427734375, 0.01593017578125, -0.01131439208984375, -0.002880096435546875, 0.0653076171875, -0.051300048828125, -0.06243896484375, 0.008392333984375, -0.0088958740234375, -0.007144927978515625, -0.0821533203125, 0.0177764892578125, -0.00897216796875, -0.031219482421875, -0.0007596015930175781, 0.007381439208984375, -0.026275634765625, 0.004642486572265625, 0.0149688720703125, -0.0204925537109375, 0.0149383544921875, -0.007411956787109375, 0.004856109619140625, 0.0029392242431640625, -0.032958984375, -0.0049896240234375, -0.006427764892578125, 0.03857421875, -0.030975341796875, 0.031646728515625, 0.006244659423828125, 0.035003662109375, -0.05810546875, 0.028289794921875, -0.0179595947265625, -0.022430419921875, -0.01495361328125, -0.0069580078125, 0.031494140625, -0.0077972412109375, 0.0022144317626953125, -0.0303955078125, -0.003631591796875, 0.0236053466796875, -0.048553466796875, -0.029754638671875, 0.0237884521484375, 0.009033203125, 0.00974273681640625, -0.048583984375, -0.0273590087890625, -0.0019102096557617188, 0.0147247314453125, -0.03778076171875, 0.0043182373046875, -0.00580596923828125, -0.053466796875, -0.061370849609375, 0.054412841796875, -0.0188751220703125, -0.0160675048828125, -0.07366943359375, 0.03717041015625, 0.0161895751953125, -0.047393798828125, -0.042724609375, 0.02532958984375, -0.01763916015625, 0.021942138671875, 0.02655029296875, -0.05859375, 0.0562744140625, -0.01342010498046875, -0.0310821533203125, 0.027801513671875, 0.05023193359375, -0.014007568359375, -0.0211944580078125, -0.02001953125, 0.0496826171875, 0.05230712890625, -0.00881195068359375, 0.0265350341796875, 0.041961669921875, -0.0252685546875, -0.022705078125, -0.01522064208984375, -0.01395416259765625, -0.0169677734375, 0.06890869140625, 0.0386962890625, 0.021148681640625, -0.0291290283203125, -0.05169677734375, -0.0273590087890625, -0.0214996337890625, -0.01031494140625, 0.039093017578125, -0.09344482421875, -0.0157318115234375, 0.03582763671875, -0.01007843017578125, 0.033660888671875, -0.00986480712890625, -0.01001739501953125, 0.003047943115234375, 0.0225830078125, -0.007053375244140625, -0.051483154296875, 0.0028057098388671875, 0.1136474609375, -0.066162109375, 0.0019359588623046875, -0.0032634735107421875, 0.023101806640625, 0.039154052734375, -0.07305908203125, 0.015625, 0.044189453125, -0.05987548828125, -0.017303466796875, -0.004993438720703125, -0.004291534423828125, -0.01059722900390625, -0.015350341796875, -0.0024566650390625, 0.015228271484375, -0.0022029876708984375, 0.00970458984375, -0.0083465576171875, 0.00788116455078125, -0.019439697265625, 0.0208282470703125, -0.0057830810546875, 0.033294677734375, -0.016937255859375, 0.062042236328125, -0.0197601318359375, -0.00949859619140625, -0.01088714599609375, -0.0170745849609375, -0.002056121826171875, 0.0233001708984375, -0.038116455078125, -0.032623291015625, 0.021636962890625, -0.0132293701171875, -0.004932403564453125, 0.0189056396484375 ]
11b88b353137acf84eea593576fcb559b9da3a35
Wordpress Stackexchange Q: Public and Private Keys are Incorrect for user For some time, I'm getting the error Public and Private keys incorrect for wp-user when I try to update a plug-in. I've a CentOS 7 VPS setup with a LAMP stack. I've installed and configured my Wordpress installation which works fine except that I can't update plug-ins or make image uploads via the Wordpress control panel. I let Wordpress access to my server using SSH. I've followed this tutorial to do so. Basically there is a specific user in my system created for this task(making Wordpress connect via SSH) and it has the SSH keys. According to the tutorial, the permissions of various files are all okay(I've double-checked) but nevertheless Wordpress does not perform the operation. What other configuration do I need? Some other information: * *the user for the Wordpress SSH operation has a password so it can log-in via Ssh and it's specifically allowed in ssh_config A: I solved it! Finally after a lot of frustrating days. In the tutorial page, deep down in the comments, someone suggested removing/commenting the following line: define('FTP_PRIKEY','/home/wp-user/'); I did this and immediately the error message disappeared and things started getting updated.
Q: Public and Private Keys are Incorrect for user For some time, I'm getting the error Public and Private keys incorrect for wp-user when I try to update a plug-in. I've a CentOS 7 VPS setup with a LAMP stack. I've installed and configured my Wordpress installation which works fine except that I can't update plug-ins or make image uploads via the Wordpress control panel. I let Wordpress access to my server using SSH. I've followed this tutorial to do so. Basically there is a specific user in my system created for this task(making Wordpress connect via SSH) and it has the SSH keys. According to the tutorial, the permissions of various files are all okay(I've double-checked) but nevertheless Wordpress does not perform the operation. What other configuration do I need? Some other information: * *the user for the Wordpress SSH operation has a password so it can log-in via Ssh and it's specifically allowed in ssh_config A: I solved it! Finally after a lot of frustrating days. In the tutorial page, deep down in the comments, someone suggested removing/commenting the following line: define('FTP_PRIKEY','/home/wp-user/'); I did this and immediately the error message disappeared and things started getting updated. A: I had the same error message. In my case I had created the ssh key with a passphrase. But the codex site says "It is recommended to use a private key that is not pass-phrase protected. There have been numerous reports that pass phrase protected private keys do not work properly." It worked once I recreated they key without a passphrase. A: This is an old topic, but I was never able to find the answer that worked for us anywhere. The root cause for us was a library does not work with OpenSSH RSA keys. I don't know exactly which has the issue; we were using Ubuntu 20.04's packages of libssh2 and php7.4-ssh2. This seems to have been an issue since PHP 5 days and is still ongoing in 2021. You can easily test if your private RSA key is an OpenSSH RSA key if it starts with the following line: -----BEGIN OPENSSH PRIVATE KEY----- Unfortunately, that's the default output when running ssh-keygen on many popular web servers. If it starts with the following, it should work assuming everything else is set up properly: -----BEGIN RSA PRIVATE KEY----- That type of key can be created by running ssh-keygen -m PEM -t rsa. It also seemed that other key types worked, too. If you aren't using an OpenSSH-format RSA key, I'd suggest checking the system auth logs (for example, /var/log/auth.log). Also, try SSH-ing as the user you're trying (for example, sudo -u www-data ssh ubuntu@localhost -i ~/.ssh/id_rsa). Any error messages provided by those should be much more helpful than the one encountered here. Note, incorrect file permissions can also result in this same error message. We kept all website files owned by the SFTP user so the web server cannot write any files except through SFTP. We set the access keys are owned by root:www-data so both the SSH user and web server—both members of the www-data group—could use the keys. Lastly, make sure the keys are in the authorized keys file (~/.ssh/authorized_keys). Good luck to anyone that comes across this! A: blakek set me on the right path, but ultimately neither OPENSSH or RSA worked for me. I had to create an ecdsa key: ssh-keygen -t ecdsa Definitely check the auth log (/var/log/auth.log in Ubuntu) to see any related error messages. The error I was getting was: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth] Hope this saves someone a few hours debugging!
wordpress
{ "language": "en", "length": 603, "provenance": "stackexchange_00019.jsonl.gz:457293", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/194529" }
[ 0.0164794921875, 0.007160186767578125, 0.0100555419921875, 0.0518798828125, -0.01287841796875, -0.040435791015625, 0.0426025390625, -0.06988525390625, 0.011199951171875, 0.01369476318359375, -0.038818359375, -0.0243682861328125, -0.00858306884765625, -0.0222625732421875, -0.025054931640625, -0.0285797119140625, 0.004192352294921875, -0.00829315185546875, -0.0109405517578125, -0.020843505859375, 0.00226593017578125, 0.0050048828125, 0.026153564453125, -0.0240936279296875, 0.05023193359375, -0.040557861328125, 0.058319091796875, -0.02703857421875, 0.04522705078125, -0.01309967041015625, 0.0313720703125, -0.021728515625, 0.01340484619140625, 0.0384521484375, -0.0457763671875, -0.051361083984375, -0.01531219482421875, 0.01611328125, -0.01214599609375, 0.01617431640625, -0.0104522705078125, 0.02398681640625, 0.044952392578125, 0.0240936279296875, -0.01593017578125, -0.0589599609375, 0.01012420654296875, -0.035003662109375, 0.0171661376953125, 0.0377197265625, -0.007106781005859375, -0.01007080078125, -0.0069580078125, -0.0076904296875, -0.0093994140625, -0.0301666259765625, 0.00592803955078125, 0.0274810791015625, 0.0221710205078125, 0.039886474609375, -0.033721923828125, 0.0031795501708984375, 0.0020771026611328125, -0.05517578125, -0.007289886474609375, -0.0304412841796875, 0.003849029541015625, 0.0233154296875, -0.07061767578125, -0.036956787109375, 0.058746337890625, -0.0017833709716796875, -0.02618408203125, 0.00850677490234375, 0.0022830963134765625, 0.01085662841796875, 0.0396728515625, 0.01509857177734375, -0.01297760009765625, 0.049407958984375, 0.01155853271484375, -0.021484375, -0.05364990234375, 0.0423583984375, -0.01568603515625, 0.0703125, 0.005336761474609375, -0.04345703125, -0.02362060546875, 0.0228424072265625, -0.0232086181640625, -0.0157318115234375, -0.0063018798828125, 0.04351806640625, -0.002826690673828125, 0.0141448974609375, 0.0084991455078125, 0.0238189697265625, 0.0026416778564453125, 0.0250396728515625, 0.01404571533203125, -0.04669189453125, 0.051239013671875, -0.02862548828125, -0.02166748046875, -0.0031490325927734375, 0.004520416259765625, 0.024444580078125, 0.01432037353515625, 0.045684814453125, -0.01116180419921875, -0.0095062255859375, -0.032257080078125, -0.07318115234375, 0.03253173828125, 0.086669921875, -0.0178070068359375, 0.021759033203125, 0.01910400390625, 0.0394287109375, 0.0001322031021118164, 0.0296478271484375, -0.049041748046875, 0.01210784912109375, -0.0184478759765625, -0.027496337890625, -0.0019350051879882812, 0.00766754150390625, -0.05572509765625, 0.0273590087890625, -0.0482177734375, 0.0222320556640625, 0.11370849609375, 0.035064697265625, 0.00783538818359375, -0.0297698974609375, -0.00030994415283203125, 0.01166534423828125, -0.0230865478515625, 0.04010009765625, -0.0367431640625, -0.02691650390625, 0.0256805419921875, -0.051422119140625, 0.0033397674560546875, 0.01361083984375, 0.025421142578125, 0.0291748046875, -0.0022296905517578125, -0.07965087890625, 0.03802490234375, 0.003574371337890625, 0.01142120361328125, 0.0230255126953125, 0.0343017578125, 0.0017728805541992188, 0.06201171875, -0.041290283203125, 0.0006165504455566406, -0.015045166015625, 0.016998291015625, -0.031341552734375, -0.0049591064453125, 0.0296630859375, -0.004772186279296875, 0.03753662109375, -0.00553131103515625, 0.006801605224609375, 0.037384033203125, -0.0052642822265625, 0.042510986328125, -0.0594482421875, 0.044158935546875, 0.0122833251953125, 0.0017147064208984375, 0.032501220703125, 0.04840087890625, -0.0027599334716796875, 0.01080322265625, 0.0538330078125, 0.0006132125854492188, -0.0163726806640625, 0.06341552734375, -0.026763916015625, -0.0239105224609375, 0.006988525390625, 0.01032257080078125, 0.025421142578125, 0.0182952880859375, 0.01367950439453125, 0.025848388671875, 0.011962890625, -0.0160675048828125, 0.0316162109375, -0.0036869049072265625, -0.036651611328125, -0.02978515625, 0.0024280548095703125, -0.0244598388671875, -0.0127410888671875, 0.01369476318359375, 0.0029315948486328125, -0.0243988037109375, -0.0296173095703125, -0.06256103515625, -0.030487060546875, -0.01471710205078125, 0.016998291015625, 0.0156402587890625, 0.004878997802734375, -0.0161590576171875, -0.0364990234375, 0.0174407958984375, -0.035247802734375, -0.03277587890625, -0.01068878173828125, -0.05169677734375, 0.08380126953125, -0.01355743408203125, 0.09735107421875, -0.037994384765625, -0.062225341796875, -0.0038738250732421875, -0.044952392578125, 0.01158905029296875, 0.0275421142578125, -0.0133819580078125, 0.01499176025390625, 0.033905029296875, 0.0098114013671875, 0.0270538330078125, -0.01245880126953125, -0.0347900390625, 0.040863037109375, -0.0185546875, -0.024658203125, -0.0129241943359375, -0.00876617431640625, 0.03717041015625, 0.02783203125, 0.03955078125, -0.0231475830078125, -0.0019311904907226562, -0.00616455078125, 0.01105499267578125, -0.0030651092529296875, 0.03094482421875, -0.0264892578125, -0.011474609375, 0.004596710205078125, 0.021240234375, -0.01012420654296875, 0.03045654296875, -0.05902099609375, 0.002460479736328125, 0.052398681640625, -0.0269775390625, -0.015838623046875, -0.0038509368896484375, -0.025543212890625, 0.01535797119140625, -0.06561279296875, -0.038604736328125, -0.01430511474609375, 0.021209716796875, -0.033905029296875, -0.0004954338073730469, -0.0231781005859375, -0.005550384521484375, 0.006580352783203125, 0.009979248046875, -0.09844970703125, -0.00711822509765625, 0.0221710205078125, 0.0167236328125, 0.07598876953125, -0.0210113525390625, -0.0133819580078125, 0.01593017578125, 0.03106689453125, -0.0300140380859375, -0.031494140625, -0.0175018310546875, 0.00881195068359375, -0.00836944580078125, -0.043304443359375, 0.046356201171875, 0.0218353271484375, -0.0179290771484375, -0.040863037109375, 0.0159759521484375, -0.0009965896606445312, -0.02294921875, 0.0322265625, 0.0007534027099609375, -0.0428466796875, 0.0538330078125, -0.035675048828125, 0.04486083984375, -0.035675048828125, 0.04522705078125, 0.060516357421875, -0.035614013671875, 0.029144287109375, 0.0183868408203125, 0.0008664131164550781, 0.0137176513671875, 0.0267486572265625, 0.0096588134765625, 0.01517486572265625, -0.06634521484375, -0.00589752197265625, -0.002460479736328125, 0.020599365234375, -0.0440673828125, -0.06048583984375, -0.047607421875, -0.02923583984375, -0.11712646484375, -0.07745361328125, -0.03387451171875, -0.08221435546875, 0.0137786865234375, -0.0254669189453125, -0.030181884765625, 0.0095367431640625, -0.007671356201171875, 0.025482177734375, -0.0012197494506835938, -0.042510986328125, -0.05865478515625, -0.058319091796875, -0.0697021484375, 0.01201629638671875, 0.007770538330078125, 0.004974365234375, -0.0079193115234375, 0.034423828125, -0.00457000732421875, -0.046356201171875, -0.0361328125, 0.02886962890625, -0.0177459716796875, -0.0322265625, -0.019622802734375, -0.015777587890625, 0.038177490234375, -0.01495361328125, 0.036773681640625, 0.0244598388671875, -0.00344085693359375, -0.005802154541015625, 0.0113983154296875, -0.039764404296875, -0.0020542144775390625, 0.0041656494140625, -0.0106658935546875, -0.047271728515625, -0.02020263671875, -0.0753173828125, 0.00852203369140625, -0.005279541015625, -0.0213775634765625, 0.031036376953125, 0.01849365234375, -0.0279388427734375, -0.0118560791015625, 0.00775909423828125, -0.01395416259765625, 0.0218963623046875, -0.019622802734375, -0.00732421875, 0.036773681640625, -0.0213623046875, -0.0194244384765625, 0.005504608154296875, 0.048553466796875, -0.0175018310546875, -0.021881103515625, -0.001064300537109375, -0.0268707275390625, -0.01512908935546875, -0.01250457763671875, -0.009002685546875, -0.0576171875, 0.04180908203125, -0.01540374755859375, 0.0295562744140625, -0.05560302734375, -0.035003662109375, -0.0239410400390625, 0.08721923828125, 0.0164031982421875, -0.0177154541015625, 0.006351470947265625, 0.0152130126953125, -0.034210205078125, -0.0312042236328125, -0.0099945068359375, -0.00934600830078125, -0.01435089111328125, -0.01319122314453125, -0.00269317626953125, -0.0180206298828125, 0.01264190673828125, -0.04229736328125, -0.009490966796875, -0.027099609375, 0.0185546875, -0.0080413818359375, 0.01418304443359375, -0.0141754150390625, 0.0181427001953125, -0.06365966796875, -0.0013942718505859375, 0.0067138671875, -0.0947265625, -0.0088653564453125, -0.0208587646484375, 0.06341552734375, 0.01206207275390625, 0.0029315948486328125, -0.0244140625, 0.047088623046875, 0.0014657974243164062, 0.0147857666015625, 0.00855255126953125, -0.003299713134765625, 0.006511688232421875, 0.037750244140625, 0.0167083740234375, -0.00408935546875, 0.0213775634765625, -0.0157928466796875, -0.07147216796875, -0.07574462890625, -0.048431396484375, -0.0221099853515625, 0.019744873046875, -0.055816650390625, -0.052581787109375, -0.0138702392578125, -0.01194000244140625, 0.0287628173828125, -0.032501220703125, 0.01012420654296875, -0.01479339599609375, -0.0604248046875, 0.057037353515625, -0.04150390625, 0.0007557868957519531, -0.00908660888671875, 0.07904052734375, 0.00873565673828125, -0.01065826416015625, 0.00543975830078125, -0.004123687744140625, 0.021575927734375, -0.0187225341796875, 0.0384521484375, 0.037872314453125, 0.01434326171875, -0.012298583984375, -0.0029048919677734375, -0.0015439987182617188, -0.01149749755859375, 0.01488494873046875, 0.007404327392578125, -0.02532958984375, -0.00595855712890625, 0.0018339157104492188, 0.02264404296875, -0.0300750732421875, -0.006603240966796875, 0.06048583984375, 0.01383209228515625, -0.048095703125, 0.038909912109375, -0.0614013671875, 0.005992889404296875, -0.050567626953125, 0.029876708984375, -0.08447265625, -0.00348663330078125, -0.007297515869140625, -0.0015048980712890625, -0.003871917724609375, -0.0166168212890625, -0.025299072265625, -0.052490234375, -0.015289306640625, -0.01548004150390625, 0.0018968582153320312, -0.049530029296875, -0.037139892578125, -0.031341552734375, -0.01403045654296875, 0.0662841796875, 0.00556182861328125, -0.052886962890625, 0.002628326416015625, -0.01129913330078125, 0.02166748046875, 0.0274200439453125, 0.00969696044921875, 0.027557373046875, -0.023223876953125, -0.014190673828125, -0.0014333724975585938, -0.01074981689453125, -0.037994384765625, -0.019775390625, 0.0234222412109375, 0.015472412109375, -0.0104217529296875, 0.0303192138671875, 0.029754638671875, 0.039703369140625, 0.00626373291015625, -0.0203704833984375, 0.01360321044921875, 0.0430908203125, -0.00395965576171875, 0.0242462158203125, 0.0025844573974609375, -0.005435943603515625, -0.00943756103515625, 0.03582763671875, -0.0285797119140625, -0.00713348388671875, 0.0501708984375, 0.04376220703125, 0.038604736328125, -0.0005970001220703125, -0.0283355712890625, -0.00902557373046875, 0.005161285400390625, 0.00896453857421875, 0.00408172607421875, -0.0203704833984375, 0.0006718635559082031, 0.025726318359375, 0.01338958740234375, -0.0193634033203125, -0.002140045166015625, -0.0177001953125, -0.01529693603515625, 0.00833892822265625, 0.0039215087890625, -0.0033397674560546875, 0.0023956298828125, 0.0004074573516845703, 0.00887298583984375, -0.016510009765625, -0.0154571533203125, 0.01299285888671875, 0.0026721954345703125, -0.0270233154296875, -0.021087646484375, 0.04742431640625, -0.01593017578125, 0.00583648681640625, -0.0166778564453125, -0.0137481689453125, -0.0341796875, 0.0127716064453125, 0.025604248046875, 0.0163116455078125, -0.0277557373046875, -0.006412506103515625, -0.042022705078125, -0.00983428955078125, 0.046661376953125, -0.005016326904296875, -0.0232391357421875, -0.0200042724609375, 0.0248565673828125, 0.024658203125, -0.01432037353515625, -0.054168701171875, -0.06451416015625, -0.0052032470703125, 0.05401611328125, 0.0178070068359375, 0.00824737548828125, 0.002956390380859375, 0.009979248046875, 0.05413818359375, 0.0172882080078125, -0.0055389404296875, -0.01079559326171875, -0.036956787109375, 0.024261474609375, -0.0182952880859375, -0.0121002197265625, -0.025299072265625, 0.01346588134765625, -0.032318115234375, -0.007366180419921875, -0.013580322265625, 0.0143280029296875, 0.006305694580078125, 0.01549530029296875, 0.002346038818359375, 0.023345947265625, -0.005771636962890625, -0.036163330078125, 0.1055908203125, -0.053558349609375, 0.038360595703125, 0.04876708984375, 0.006549835205078125, 0.02606201171875, -0.04998779296875, 0.0211181640625, 0.04718017578125, -0.0150146484375, 0.0240936279296875, 0.01369476318359375, -0.0190277099609375, 0.0214996337890625, 0.00716400146484375, 0.0124359130859375, 0.04052734375, -0.0069427490234375, -0.04315185546875, 0.01511383056640625, 0.015838623046875, 0.00026035308837890625, 0.000438690185546875, 0.00972747802734375, -0.0009407997131347656, 0.01534271240234375, 0.06475830078125, 0.049102783203125, -0.07135009765625, 0.0135650634765625, 0.00792694091796875, -0.018310546875, 0.01409912109375, 0.00858306884765625, -0.0167694091796875, -0.008331298828125, 0.01468658447265625, -0.02398681640625, -0.0246734619140625, -0.0054779052734375, 0.0086212158203125, -0.0028858184814453125, 0.0276031494140625, 0.018035888671875, 0.021514892578125, -0.022003173828125, -0.002475738525390625, 0.0263214111328125, 0.0267791748046875, 0.0124053955078125, -0.017425537109375, -0.0201873779296875, -0.0577392578125, -0.07806396484375, -0.07037353515625, -0.0214385986328125, -0.047149658203125, 0.02081298828125, -0.0026721954345703125, 0.031707763671875, 0.016357421875, 0.0140533447265625, -0.0231781005859375, -0.007389068603515625, -0.0140228271484375, 0.029510498046875, -0.0274658203125, 0.01403045654296875, 0.07440185546875, -0.0209808349609375, 0.022705078125, 0.033660888671875, -0.01399993896484375, 0.00165557861328125, -0.005645751953125, 0.0311737060546875, -0.043548583984375, 0.0092010498046875, 0.046051025390625, 0.011749267578125, -0.0123291015625, 0.044677734375, 0.0281982421875, -0.05322265625, -0.025299072265625, 0.053802490234375, -0.004276275634765625, 0.007648468017578125, 0.09259033203125, -0.0286407470703125, 0.0650634765625, -0.0244293212890625, -0.0169219970703125, 0.005283355712890625, 0.036224365234375, 0.004848480224609375, 0.02691650390625, -0.007343292236328125, 0.027313232421875, -0.0029754638671875, -0.0025272369384765625, -0.028533935546875, 0.0010128021240234375, -0.01354217529296875, 0.03826904296875, 0.09722900390625, 0.038482666015625, -0.08197021484375, -0.00894927978515625, 0.03436279296875, 0.0501708984375, 0.0182037353515625, 0.06353759765625, 0.00838470458984375, -0.0239105224609375, -0.0025234222412109375, 0.0005078315734863281, 0.03863525390625, -0.056365966796875, -0.01018524169921875, 0.0158233642578125, 0.018310546875, 0.0200653076171875, -0.0292816162109375, 0.02947998046875, -0.028076171875, -0.004302978515625, 0.0218048095703125, 0.050537109375, 0.019683837890625, 0.012054443359375, -0.0039215087890625, 0.0155029296875, -0.033203125, -0.00045490264892578125, 0.0300750732421875, -0.0099945068359375, 0.0008668899536132812, 0.0257720947265625, 0.017181396484375, -0.035736083984375, 0.015106201171875, -0.002475738525390625, 0.0142822265625, -0.01641845703125, 0.055908203125, 0.0216827392578125, 0.0276031494140625, -0.00783538818359375, 0.05621337890625, 0.034027099609375, 0.052337646484375, -0.05999755859375, -0.038818359375, 0.0296173095703125, 0.0272674560546875, -0.0015354156494140625, 0.0196075439453125, 0.0208892822265625, -0.0029621124267578125, 0.0298919677734375, -0.01039886474609375, 0.01904296875, 0.037261962890625, 0.006282806396484375, 0.01161956787109375, 0.0140228271484375, -0.051025390625, 0.0221405029296875, -0.0162200927734375, 0.0169525146484375, 0.019134521484375, -0.028594970703125, -0.0240478515625, -0.00836944580078125, 0.061676025390625, 0.0280609130859375, 0.005832672119140625, 0.0039520263671875, 0.01776123046875, -0.0104217529296875, -0.0150299072265625, -0.0401611328125, 0.0496826171875, 0.0288543701171875, -0.038726806640625, 0.005466461181640625, -0.005176544189453125, 0.022674560546875, -0.03564453125, -0.021453857421875, 0.037628173828125, -0.028656005859375, -0.031341552734375, 0.01568603515625, -0.034393310546875, -0.01678466796875, -0.0167999267578125, -0.00817108154296875, 0.06317138671875, -0.00914764404296875, 0.0265960693359375, 0.0333251953125, 0.01081085205078125, 0.018829345703125, 0.036529541015625, -0.00989532470703125, 0.004253387451171875, 0.0430908203125, -0.0306549072265625, -0.020355224609375, -0.02740478515625, 0.035003662109375, -0.005077362060546875, 0.0056304931640625, 0.0168304443359375, 0.0293121337890625, 0.0255889892578125, -0.03204345703125, 0.0235748291015625, 0.01152801513671875, 0.015380859375, -0.00814056396484375, 0.00559234619140625, -0.0112457275390625, -0.034393310546875, -0.017730712890625, -0.0209197998046875, 0.036865234375, 0.0196075439453125, 0.06927490234375, -0.018798828125, 0.0302734375, -0.046844482421875, -0.00760650634765625, -0.0390625, -0.0391845703125, -0.0113983154296875, 0.003147125244140625, 0.0024051666259765625, 0.01097869873046875, -0.013519287109375, 0.05108642578125, -0.0090179443359375, -0.0068511962890625, 0.0313720703125, -0.0513916015625, 0.0121612548828125, 0.026641845703125, 0.040008544921875, -0.0147857666015625, -0.047332763671875, -0.034423828125, 0.0190582275390625, 0.0204010009765625, 0.044464111328125, -0.026702880859375, 0.041748046875, -0.02154541015625, -0.012786865234375, -0.00286865234375, -0.0438232421875, -0.039825439453125, 0.00823974609375, 0.02337646484375, -0.0130615234375, -0.03314208984375, -0.018585205078125, -0.00872039794921875, -0.0118408203125, 0.01020050048828125, -0.03448486328125, -0.02655029296875, 0.0330810546875, -0.01041412353515625, 0.021209716796875, -0.00788116455078125, -0.007244110107421875, 0.0179290771484375, 0.00811767578125, -0.0097808837890625, 0.0049285888671875, 0.0033817291259765625, -0.03143310546875, -0.01290130615234375, -0.004764556884765625, 0.00960540771484375, 0.0031223297119140625, 0.0240020751953125, 0.004657745361328125, -0.007099151611328125, -0.01282501220703125, -0.024200439453125, 0.01507568359375, -0.0120849609375, 0.0010318756103515625, -0.064697265625, -0.037628173828125, 0.006099700927734375, -0.00931549072265625, -0.043304443359375, -0.0277862548828125, -0.026824951171875, 0.01322174072265625, -0.0200347900390625, 0.0020427703857421875, 0.046661376953125, -0.006046295166015625, -0.0943603515625, 0.0196380615234375, -0.01483917236328125, 0.06304931640625, -0.02099609375, -0.009490966796875, 0.0031337738037109375, 0.0003666877746582031, -0.019805908203125, -0.0994873046875, 0.01187896728515625, -0.10223388671875, -0.0017595291137695312, -0.0179290771484375, 0.0009202957153320312, 0.0104522705078125, -0.057647705078125, -0.0950927734375, 0.07110595703125, -0.029815673828125, -0.027679443359375, -0.03558349609375, -0.03387451171875, -0.03961181640625, 0.0755615234375, 0.00525665283203125, -0.033477783203125, -0.0292510986328125, 0.0654296875, 0.022216796875, 0.0382080078125, -0.01593017578125, 0.06512451171875, -0.01526641845703125, 0.038543701171875, 0.00750732421875, -0.01137542724609375, -0.01947021484375, 0.01215362548828125, -0.0012664794921875, 0.031341552734375, -0.0155029296875, 0.0008096694946289062, 0.007732391357421875, -0.018035888671875, -0.0237274169921875, -0.039031982421875, -0.001163482666015625, -0.0032024383544921875, 0.057708740234375, 0.01531219482421875, 0.01097869873046875, -0.030975341796875, -0.021087646484375, -0.05316162109375, 0.022308349609375, -0.02001953125, -0.01471710205078125, -0.0276031494140625, 0.0175323486328125, -0.0094757080078125, 0.0008792877197265625, -0.0207672119140625, -0.0209197998046875, -0.014434814453125, -0.0350341796875, -0.0159759521484375, -0.02069091796875, 0.0501708984375, -0.046875, 0.0301666259765625, -0.023162841796875, -0.01264190673828125, 0.01055908203125, 0.029022216796875, -0.004001617431640625, 0.0185394287109375, -0.017303466796875, 0.004573822021484375, -0.044525146484375, 0.0273590087890625, -0.026214599609375, 0.0258331298828125, -0.059814453125, -0.00032067298889160156, -0.0002529621124267578, 0.0074920654296875, -0.017913818359375, 0.00785064697265625, 0.01806640625, 0.0234832763671875, -0.0241546630859375, 0.055938720703125, -0.01209259033203125, -0.05078125, -0.035308837890625, 0.0289764404296875, -0.01253509521484375, 0.00579833984375, 0.005435943603515625, 0.00931549072265625, 0.00203704833984375, 0.0144500732421875, 0.0093231201171875, -0.0223388671875, 0.0016126632690429688, 0.0024662017822265625, 0.01081085205078125, 0.004062652587890625 ]
9fc2dc6f62ed134027a334bd1449f260f6ee907b
Wordpress Stackexchange Q: Previous page or reffer url in worpress Is there any method to get the previous page /refer page url in wordpress. In my wordpress site there is a paypal form it include return url . So after payment complete it come back to the site. Now i need to check this page is returned from paypal website, not the user manually taken this page. How to check this? Is there any function? Any suggestions? A: wp_get_referer() function will give you a referrer page URL. codex documentation here
Q: Previous page or reffer url in worpress Is there any method to get the previous page /refer page url in wordpress. In my wordpress site there is a paypal form it include return url . So after payment complete it come back to the site. Now i need to check this page is returned from paypal website, not the user manually taken this page. How to check this? Is there any function? Any suggestions? A: wp_get_referer() function will give you a referrer page URL. codex documentation here
wordpress
{ "language": "en", "length": 88, "provenance": "stackexchange_00019.jsonl.gz:457296", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/194539" }
[ 0.04632568359375, 0.0175933837890625, 0.008331298828125, -0.0175018310546875, 0.01363372802734375, -0.036102294921875, 0.035369873046875, -0.034332275390625, 0.042327880859375, -0.00732421875, -0.030731201171875, -0.013092041015625, -0.01898193359375, -0.029693603515625, -0.0037384033203125, -0.0281982421875, 0.01490020751953125, -0.007171630859375, 0.04156494140625, -0.0003981590270996094, -0.01207733154296875, -0.00580596923828125, 0.053192138671875, -0.043670654296875, 0.0168609619140625, -0.005237579345703125, 0.07391357421875, -0.0303955078125, 0.03546142578125, -0.007221221923828125, 0.03369140625, -0.055145263671875, 0.0258636474609375, 0.006603240966796875, -0.028717041015625, -0.039825439453125, -0.0207366943359375, 0.00992584228515625, -0.01183319091796875, 0.014862060546875, 0.01128387451171875, 0.00878143310546875, -0.07928466796875, -0.039947509765625, -0.08258056640625, -0.0291290283203125, 0.006641387939453125, 0.041046142578125, 0.005252838134765625, 0.08880615234375, 0.002147674560546875, -0.0165863037109375, -0.01279449462890625, 0.06256103515625, -0.005092620849609375, -0.03692626953125, -0.01216888427734375, -0.0214385986328125, 0.0080718994140625, -0.0222320556640625, -0.00505828857421875, 0.01403045654296875, 0.0182342529296875, 0.00962066650390625, -0.0286865234375, 0.0278778076171875, 0.005886077880859375, 0.01517486572265625, -0.01641845703125, -0.0504150390625, -0.0215606689453125, -0.01081085205078125, -0.0166473388671875, 0.0262603759765625, -0.035552978515625, -0.044219970703125, 0.048553466796875, -0.0150299072265625, -0.01367950439453125, 0.044219970703125, -0.040435791015625, -0.028533935546875, -0.055877685546875, -0.00933074951171875, -0.01404571533203125, -0.00341796875, -0.01273345947265625, 0.01593017578125, -0.07159423828125, -0.049163818359375, -0.047271728515625, -0.049407958984375, -0.05267333984375, -0.03570556640625, -0.0278167724609375, -0.01134490966796875, 0.0037479400634765625, 0.00658416748046875, -0.011688232421875, -0.01309967041015625, -0.01232147216796875, -0.0161895751953125, -0.037384033203125, -0.0011949539184570312, 0.0281524658203125, 0.03173828125, -0.01493072509765625, -0.0022106170654296875, 0.05816650390625, 0.00690460205078125, -0.00433349609375, 0.043243408203125, -0.031280517578125, -0.021514892578125, 0.0084228515625, 0.038604736328125, -0.043365478515625, -0.0059356689453125, -0.0161285400390625, 0.0012617111206054688, -0.033416748046875, 0.0139923095703125, 0.0106048583984375, -0.08795166015625, 0.027069091796875, -0.021087646484375, -0.0265350341796875, -0.01316070556640625, 0.0032711029052734375, 0.04364013671875, -0.01447296142578125, -0.007457733154296875, -0.0177764892578125, 0.00838470458984375, -0.004848480224609375, -0.02716064453125, 0.00035262107849121094, 0.0147552490234375, 0.01404571533203125, 0.0251312255859375, -0.0538330078125, -0.047698974609375, 0.0141448974609375, -0.01528167724609375, -0.0105743408203125, -0.007442474365234375, -0.0137939453125, 0.038116455078125, 0.02178955078125, -0.0197296142578125, 0.01934814453125, -0.015777587890625, 0.0009722709655761719, 0.0008006095886230469, 0.03594970703125, 0.0031986236572265625, 0.0100250244140625, 0.0186004638671875, 0.005252838134765625, 0.02178955078125, 0.0491943359375, -0.0185546875, -0.031280517578125, -0.049957275390625, -0.0714111328125, -0.0034885406494140625, -0.0533447265625, -0.01073455810546875, 0.027618408203125, 0.07012939453125, 0.00495147705078125, -0.0018320083618164062, 0.00720977783203125, 0.0267333984375, -0.0165252685546875, -0.004756927490234375, 0.01064300537109375, 0.041839599609375, 0.0127716064453125, 0.046661376953125, 0.0225067138671875, -0.0214080810546875, 0.090087890625, -0.0154876708984375, -0.050628662109375, 0.051910400390625, 0.00772857666015625, 0.059906005859375, 0.001323699951171875, 0.023193359375, 0.0163116455078125, 0.0223846435546875, -0.0267333984375, 0.02789306640625, 0.00807952880859375, -0.0274505615234375, 0.03155517578125, 0.01546478271484375, -0.003421783447265625, -0.009796142578125, -0.0145111083984375, 0.021636962890625, -0.0072174072265625, -0.0055084228515625, -0.020294189453125, 0.0067138671875, -0.00887298583984375, 0.039154052734375, -0.002002716064453125, 0.03326416015625, 0.033447265625, 0.04150390625, -0.05230712890625, -0.028076171875, -0.0247344970703125, -0.00807952880859375, -0.007251739501953125, 0.037933349609375, -0.00469207763671875, 0.026397705078125, -0.026153564453125, -0.0248870849609375, -0.01369476318359375, -0.01143646240234375, -0.0076751708984375, -0.0081939697265625, -0.019683837890625, -0.0156402587890625, -0.0318603515625, -0.01288604736328125, 0.00836944580078125, 0.04302978515625, 0.0123138427734375, -0.005290985107421875, -0.0103302001953125, 0.0061798095703125, 0.0004658699035644531, -0.1053466796875, 0.0117950439453125, 0.055511474609375, 0.0357666015625, 0.0499267578125, 0.01280975341796875, 0.01812744140625, 0.026519775390625, -0.0919189453125, -0.006481170654296875, 0.01308441162109375, 0.009674072265625, 0.0430908203125, -0.0020923614501953125, 0.019622802734375, 0.0219573974609375, 0.033477783203125, 0.00948333740234375, 0.0273590087890625, -0.0274810791015625, 0.009185791015625, -0.0071563720703125, -0.012420654296875, 0.00864410400390625, 0.03790283203125, 0.01358795166015625, 0.005245208740234375, -0.028778076171875, -0.0132293701171875, 0.0204925537109375, 0.0018529891967773438, 0.0218963623046875, -0.049652099609375, 0.0151214599609375, -0.00530242919921875, 0.0101470947265625, 0.00928497314453125, 0.06500244140625, -0.0202789306640625, 0.005123138427734375, -0.02777099609375, 0.01493072509765625, -0.005199432373046875, -0.01033782958984375, 0.0230560302734375, -0.0167083740234375, -0.0158843994140625, -0.0233917236328125, -0.0218048095703125, 0.0050048828125, 0.00988006591796875, 0.042816162109375, 0.0048980712890625, 0.0207672119140625, 0.0159149169921875, -0.040771484375, 0.0924072265625, -0.032745361328125, -0.0360107421875, -0.0278167724609375, -0.0207366943359375, 0.025848388671875, -0.0265045166015625, -0.0085601806640625, 0.058868408203125, 0.00848388671875, -0.0041961669921875, 0.011627197265625, -0.022216796875, 0.04345703125, -0.02008056640625, -0.0225677490234375, 0.011993408203125, -0.0860595703125, -0.0157623291015625, 0.01126861572265625, 0.0096893310546875, -0.0065155029296875, -0.051605224609375, -0.004337310791015625, -0.0123291015625, -0.11529541015625, -0.0679931640625, -0.0017271041870117188, -0.063232421875, -0.024993896484375, 0.048583984375, -0.03619384765625, 0.00922393798828125, 0.0831298828125, -0.003681182861328125, 0.042236328125, -0.04534912109375, -0.089111328125, -0.08343505859375, -0.09326171875, -0.06427001953125, -0.01739501953125, -0.0180206298828125, -0.0016698837280273438, -0.01355743408203125, -0.006412506103515625, -0.0206756591796875, -0.016357421875, 0.005519866943359375, -0.0021724700927734375, -0.053009033203125, -0.0283203125, 0.0169830322265625, 0.0170440673828125, 0.0070037841796875, 0.0021839141845703125, 0.0015134811401367188, 0.00458526611328125, 0.005680084228515625, -0.0240936279296875, -0.013214111328125, -0.0275421142578125, 0.007350921630859375, 0.038360595703125, -0.03216552734375, -0.026123046875, -0.05609130859375, 0.0005059242248535156, -0.0066070556640625, -0.039794921875, 0.0020580291748046875, 0.031341552734375, -0.027374267578125, 0.010040283203125, -0.043670654296875, 0.0169525146484375, 0.00283050537109375, 0.0001672506332397461, -0.000030040740966796875, 0.007030487060546875, 0.0034465789794921875, 0.012054443359375, -0.0189666748046875, 0.054718017578125, -0.000732421875, 0.0169830322265625, 0.02752685546875, 0.0193023681640625, 0.006710052490234375, -0.014984130859375, -0.042694091796875, -0.0743408203125, 0.0279541015625, -0.081298828125, 0.0105133056640625, -0.06390380859375, -0.00891876220703125, 0.00774383544921875, 0.11993408203125, -0.016632080078125, -0.0186920166015625, -0.007534027099609375, 0.0093231201171875, -0.011322021484375, -0.0084228515625, -0.0269927978515625, -0.00789642333984375, -0.0716552734375, -0.002193450927734375, 0.006618499755859375, -0.0450439453125, 0.00937652587890625, -0.0090179443359375, -0.0267791748046875, -0.031463623046875, 0.0146942138671875, 0.002208709716796875, -0.00827789306640625, 0.037689208984375, -0.028106689453125, 0.0163726806640625, -0.00995635986328125, -0.0124664306640625, -0.022552490234375, -0.006923675537109375, 0.0149688720703125, 0.01000213623046875, 0.010833740234375, -0.0509033203125, 0.007511138916015625, 0.0273895263671875, 0.0269622802734375, 0.054534912109375, -0.0226287841796875, -0.028045654296875, 0.0701904296875, -0.02197265625, -0.0125579833984375, -0.01337432861328125, 0.0135498046875, -0.0291290283203125, -0.039947509765625, -0.04638671875, -0.05364990234375, 0.00855255126953125, -0.0231170654296875, -0.025238037109375, -0.01507568359375, -0.0028171539306640625, 0.006397247314453125, 0.042816162109375, -0.01178741455078125, 0.005779266357421875, -0.007686614990234375, -0.035308837890625, -0.0080108642578125, -0.0140533447265625, -0.02392578125, 0.0240020751953125, 0.0167388916015625, 0.02789306640625, 0.00202178955078125, -0.0193328857421875, -0.006389617919921875, 0.0299835205078125, 0.0006513595581054688, 0.03277587890625, -0.0004837512969970703, -0.039031982421875, 0.0972900390625, -0.004604339599609375, -0.0207366943359375, -0.00830078125, 0.017669677734375, 0.01100921630859375, -0.037872314453125, 0.0189971923828125, -0.009918212890625, 0.035064697265625, 0.0341796875, -0.0487060546875, -0.018310546875, -0.04571533203125, 0.033477783203125, -0.047210693359375, 0.08026123046875, -0.0169219970703125, -0.0256805419921875, -0.003726959228515625, 0.005657196044921875, 0.050750732421875, 0.041046142578125, -0.006710052490234375, 0.035430908203125, 0.06134033203125, 0.002391815185546875, -0.00620269775390625, 0.0015096664428710938, 0.0022735595703125, 0.053314208984375, -0.036590576171875, 0.006443023681640625, -0.00872039794921875, 0.0069427490234375, 0.00016069412231445312, 0.01026153564453125, -0.01366424560546875, -0.01520538330078125, -0.00925445556640625, -0.045074462890625, -0.00341033935546875, 0.006946563720703125, 0.048065185546875, 0.00815582275390625, -0.01160430908203125, -0.023529052734375, 0.00621795654296875, -0.051788330078125, -0.05938720703125, 0.0203857421875, -0.016876220703125, 0.01259613037109375, -0.02899169921875, 0.093017578125, -0.016998291015625, 0.039520263671875, -0.0214996337890625, 0.007335662841796875, 0.02099609375, 0.02117919921875, 0.022735595703125, -0.00708770751953125, 0.01263427734375, -0.026763916015625, 0.021575927734375, -0.040283203125, 0.0040130615234375, 0.0235595703125, 0.031402587890625, -0.0020275115966796875, -0.0197601318359375, 0.0253143310546875, 0.0060577392578125, -0.00662994384765625, 0.0218658447265625, 0.05194091796875, -0.00225830078125, -0.0026702880859375, 0.00809478759765625, -0.01751708984375, 0.0213165283203125, -0.0246734619140625, 0.0008115768432617188, -0.04095458984375, 0.0128173828125, 0.01259613037109375, -0.0309295654296875, 0.00815582275390625, 0.0067596435546875, -0.01306915283203125, -0.030120849609375, -0.006755828857421875, 0.031524658203125, 0.026763916015625, -0.0262603759765625, -0.04730224609375, 0.047271728515625, -0.0005383491516113281, 0.0210418701171875, -0.06353759765625, 0.0201568603515625, -0.06378173828125, -0.0127410888671875, 0.06390380859375, 0.0238800048828125, -0.030059814453125, 0.0089111328125, -0.0645751953125, -0.0244140625, 0.0130767822265625, -0.0110015869140625, -0.039764404296875, -0.0255126953125, -0.01129150390625, 0.021148681640625, -0.01393890380859375, -0.005115509033203125, 0.010223388671875, 0.0120391845703125, 0.0018520355224609375, 0.0130462646484375, 0.0161895751953125, 0.098388671875, -0.029022216796875, 0.06964111328125, 0.035186767578125, 0.05938720703125, -0.0261993408203125, -0.0306549072265625, 0.00264739990234375, -0.04266357421875, -0.018646240234375, -0.0406494140625, -0.0300445556640625, 0.04345703125, 0.050201416015625, 0.005512237548828125, -0.00867462158203125, -0.002429962158203125, 0.007171630859375, -0.0198974609375, -0.0016765594482421875, 0.0084686279296875, -0.057861328125, 0.02789306640625, 0.0012845993041992188, 0.0289154052734375, 0.019744873046875, 0.013458251953125, -0.0177459716796875, 0.01171875, 0.00974273681640625, -0.00580596923828125, -0.014984130859375, 0.0205535888671875, 0.09442138671875, -0.0184326171875, 0.058868408203125, 0.02496337890625, 0.0124969482421875, 0.08489990234375, 0.02276611328125, -0.00023984909057617188, -0.01338958740234375, 0.04461669921875, 0.0004258155822753906, 0.01007843017578125, 0.0242919921875, -0.01290130615234375, 0.0008692741394042969, 0.00380706787109375, 0.03436279296875, -0.0097503662109375, -0.0021457672119140625, 0.0180511474609375, -0.021575927734375, -0.02001953125, 0.020843505859375, -0.021636962890625, -0.04010009765625, 0.0140533447265625, -0.051025390625, -0.005527496337890625, -0.0040435791015625, -0.01270294189453125, -0.006969451904296875, -0.0159149169921875, 0.04656982421875, 0.003261566162109375, -0.01248931884765625, -0.035125732421875, -0.0189208984375, -0.0181427001953125, -0.03802490234375, 0.00937652587890625, 0.0009365081787109375, -0.019439697265625, -0.05487060546875, 0.00728607177734375, -0.00025177001953125, 0.01384735107421875, -0.0034122467041015625, -0.00018715858459472656, 0.04425048828125, 0.027618408203125, -0.00567626953125, -0.00807952880859375, -0.00008082389831542969, -0.00783538818359375, 0.01141357421875, -0.035400390625, 0.0252685546875, 0.00399017333984375, -0.0770263671875, 0.0230712890625, -0.033843994140625, -0.039398193359375, -0.01497650146484375, 0.033416748046875, 0.09185791015625, -0.00600433349609375, -0.038482666015625, 0.03485107421875, -0.00007343292236328125, -0.021209716796875, -0.003711700439453125, 0.00876617431640625, -0.01739501953125, 0.00765228271484375, -0.02203369140625, -0.018402099609375, 0.037933349609375, -0.016448974609375, -0.07464599609375, 0.059844970703125, -0.018951416015625, 0.07525634765625, 0.032379150390625, 0.00554656982421875, -0.00453948974609375, -0.0099639892578125, -0.018157958984375, 0.042999267578125, 0.062744140625, 0.0238037109375, -0.0465087890625, -0.046630859375, -0.00836944580078125, 0.08416748046875, 0.068115234375, 0.0170440673828125, -0.0158843994140625, -0.00855255126953125, 0.047332763671875, 0.0257568359375, -0.0284271240234375, 0.04132080078125, 0.0281219482421875, 0.0115814208984375, 0.06573486328125, -0.0362548828125, 0.03857421875, -0.036712646484375, 0.0535888671875, 0.034881591796875, 0.004993438720703125, -0.01251983642578125, -0.0175323486328125, 0.008544921875, -0.0557861328125, 0.0011453628540039062, 0.02972412109375, -0.004608154296875, 0.022491455078125, 0.04254150390625, 0.03704833984375, 0.0181427001953125, 0.024078369140625, -0.0291290283203125, 0.050506591796875, -0.0070648193359375, 0.0227813720703125, 0.067626953125, 0.019439697265625, 0.046295166015625, 0.0132904052734375, 0.0173492431640625, -0.0122222900390625, 0.018463134765625, 0.0780029296875, 0.06298828125, 0.033935546875, -0.0236053466796875, -0.0302276611328125, 0.0243377685546875, 0.08941650390625, -0.037109375, -0.0254669189453125, -0.00791168212890625, -0.01486968994140625, 0.03369140625, -0.007602691650390625, 0.043365478515625, -0.0299835205078125, -0.05621337890625, -0.005619049072265625, -0.02301025390625, 0.03314208984375, 0.036529541015625, 0.006900787353515625, 0.003482818603515625, -0.0161285400390625, -0.04705810546875, 0.00508880615234375, 0.0016145706176757812, 0.0029888153076171875, 0.006328582763671875, -0.007579803466796875, 0.01168060302734375, -0.016998291015625, 0.0243072509765625, -0.007556915283203125, 0.03173828125, 0.0108184814453125, 0.006877899169921875, -0.0005102157592773438, -0.01113128662109375, 0.01027679443359375, 0.0010499954223632812, 0.00817108154296875, 0.01715087890625, 0.0155487060546875, 0.00305938720703125, -0.01329803466796875, -0.0061187744140625, 0.00917816162109375, -0.03521728515625, 0.0391845703125, -0.039459228515625, -0.0540771484375, -0.03875732421875, -0.051605224609375, -0.020416259765625, -0.06268310546875, 0.036773681640625, -0.0151214599609375, 0.038818359375, -0.0003840923309326172, -0.00717926025390625, 0.0135345458984375, -0.0033206939697265625, 0.026885986328125, 0.018218994140625, -0.0279541015625, -0.006618499755859375, -0.04638671875, 0.00940704345703125, -0.0009822845458984375, 0.014129638671875, -0.0124359130859375, 0.0341796875, 0.00649261474609375, 0.02435302734375, -0.0170440673828125, -0.011016845703125, -0.003173828125, 0.0140838623046875, 0.048004150390625, 0.01788330078125, -0.054229736328125, -0.023345947265625, -0.0077362060546875, 0.01422882080078125, 0.0318603515625, 0.02215576171875, 0.0203857421875, 0.0181121826171875, -0.004581451416015625, 0.0216522216796875, -0.015869140625, -0.039093017578125, 0.043487548828125, 0.0133209228515625, 0.0195465087890625, -0.0055999755859375, -0.0772705078125, -0.00836181640625, 0.01654052734375, -0.01261138916015625, 0.0160675048828125, -0.0450439453125, 0.029510498046875, 0.007568359375, 0.008087158203125, -0.029998779296875, -0.016448974609375, -0.01232147216796875, -0.0196990966796875, 0.01477813720703125, -0.0122528076171875, -0.0135955810546875, 0.069091796875, 0.0160675048828125, 0.021148681640625, 0.0206298828125, -0.04345703125, 0.0283660888671875, 0.025054931640625, -0.037261962890625, 0.0022754669189453125, -0.0171966552734375, -0.0173187255859375, 0.0177154541015625, 0.00467681884765625, 0.0159759521484375, 0.0011043548583984375, 0.08367919921875, -0.00798797607421875, -0.060546875, 0.0005407333374023438, -0.00864410400390625, -0.0204315185546875, -0.0200042724609375, 0.0006198883056640625, -0.040130615234375, -0.04461669921875, -0.00322723388671875, -0.0195770263671875, -0.0012950897216796875, 0.01447296142578125, 0.021759033203125, 0.0176849365234375, 0.0265350341796875, 0.0203399658203125, 0.027313232421875, 0.0152587890625, -0.052642822265625, 0.05096435546875, -0.0310211181640625, 0.016387939453125, 0.006229400634765625, 0.025665283203125, -0.005931854248046875, -0.0312042236328125, -0.0755615234375, 0.01358795166015625, -0.031646728515625, -0.0286102294921875, -0.001617431640625, -0.0279693603515625, 0.01091766357421875, 0.0005655288696289062, -0.033294677734375, -0.042022705078125, -0.008697509765625, 0.00852203369140625, -0.00603485107421875, 0.002521514892578125, 0.00884246826171875, 0.0232696533203125, -0.0231781005859375, -0.05291748046875, -0.00037789344787597656, 0.0011510848999023438, 0.015838623046875, -0.01641845703125, -0.01141357421875, -0.00782012939453125, -0.04718017578125, -0.07708740234375, 0.054656982421875, -0.0124664306640625, -0.02740478515625, -0.072509765625, 0.0182037353515625, 0.00710296630859375, -0.0076751708984375, -0.03765869140625, -0.015777587890625, -0.0307159423828125, 0.04296875, 0.00939178466796875, 0.081298828125, -0.020538330078125, 0.01934814453125, -0.0032444000244140625, 0.031341552734375, -0.006916046142578125, 0.024383544921875, -0.021484375, 0.0283050537109375, -0.0193328857421875, 0.03289794921875, -0.0386962890625, -0.01617431640625, -0.029876708984375, 0.02410888671875, -0.011627197265625, -0.0149688720703125, 0.028656005859375, -0.01485443115234375, -0.014373779296875, 0.032623291015625, -0.0171356201171875, -0.0021800994873046875, 0.01529693603515625, 0.01322174072265625, -0.037445068359375, -0.015350341796875, 0.021392822265625, -0.032379150390625, -0.015838623046875, -0.03631591796875, -0.00542449951171875, 0.01099395751953125, -0.043548583984375, -0.031463623046875, -0.0142669677734375, -0.037506103515625, 0.01073455810546875, -0.0303955078125, -0.005275726318359375, 0.0252227783203125, -0.029205322265625, -0.004673004150390625, 0.0010614395141601562, 0.012603759765625, -0.0020122528076171875, 0.008697509765625, 0.011322021484375, 0.054595947265625, -0.013427734375, -0.0289459228515625, 0.041412353515625, -0.0155181884765625, 0.02130126953125, 0.0001271963119506836, -0.0022907257080078125, 0.0106964111328125, -0.011444091796875, -0.00627899169921875, -0.0019130706787109375, 0.01367950439453125, -0.0186920166015625, 0.06402587890625, 0.0073699951171875, 0.068115234375, 0.011871337890625, 0.05316162109375, -0.031524658203125, -0.021514892578125, 0.01226806640625, -0.067138671875, 0.00739288330078125, 0.01010894775390625, -0.01082611083984375, -0.00984954833984375, -0.0158538818359375, 0.01202392578125, 0.0110321044921875, -0.014129638671875 ]
ed95533202d6405026e03368c8c609055b35486b
Wordpress Stackexchange Q: Reset Undo on the tinymce editor I have one editor where I switch between content in one editor, and what I want to do when I set the new content, I would like to reset the undo possibility. I have read on this site http://www.tinymce.com/wiki.php/api4:class.tinymce.UndoManager That it's just to call tinymce.UndoManager.clear() but I just get that the function is undefined. A: The global variable tinyMCE has an array of editors. So you have to call the undoManager inside them. Like this for default wp editor on post edit/create screen: tinyMCE.editors[0].undoManager.clear(); If you want to do it in a specific editor, select the editor id in n like this: var n = 0; // editor id tinyMCE.editors[n].undoManager.clear();
Q: Reset Undo on the tinymce editor I have one editor where I switch between content in one editor, and what I want to do when I set the new content, I would like to reset the undo possibility. I have read on this site http://www.tinymce.com/wiki.php/api4:class.tinymce.UndoManager That it's just to call tinymce.UndoManager.clear() but I just get that the function is undefined. A: The global variable tinyMCE has an array of editors. So you have to call the undoManager inside them. Like this for default wp editor on post edit/create screen: tinyMCE.editors[0].undoManager.clear(); If you want to do it in a specific editor, select the editor id in n like this: var n = 0; // editor id tinyMCE.editors[n].undoManager.clear();
wordpress
{ "language": "en", "length": 117, "provenance": "stackexchange_00019.jsonl.gz:457303", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/194557" }
[ -0.023284912109375, 0.00249481201171875, -0.018035888671875, 0.006534576416015625, -0.0014734268188476562, -0.00684356689453125, -0.001544952392578125, -0.022186279296875, 0.06719970703125, 0.0487060546875, -0.01107025146484375, -0.03765869140625, 0.045196533203125, -0.02789306640625, -0.062744140625, 0.0189056396484375, 0.04595947265625, -0.050689697265625, 0.031494140625, -0.0035572052001953125, -0.023284912109375, 0.03082275390625, 0.0770263671875, -0.036834716796875, -0.01163482666015625, 0.06353759765625, 0.0328369140625, -0.017425537109375, -0.041351318359375, -0.051971435546875, -0.01180267333984375, 0.03759765625, 0.023712158203125, 0.04754638671875, -0.0771484375, 0.003917694091796875, -0.0291748046875, 0.036224365234375, -0.005008697509765625, 0.011016845703125, 0.026641845703125, -0.0053558349609375, -0.05517578125, 0.005767822265625, -0.052764892578125, -0.040557861328125, 0.02874755859375, -0.01073455810546875, 0.01233673095703125, 0.01165008544921875, 0.01425933837890625, -0.040069580078125, 0.0150146484375, 0.03125, -0.020233154296875, -0.0032978057861328125, -0.0029163360595703125, 0.00007826089859008789, 0.00821685791015625, 0.057037353515625, 0.00469970703125, 0.032135009765625, -0.028228759765625, -0.047607421875, -0.0229034423828125, 0.005374908447265625, 0.010894775390625, -0.00569915771484375, -0.01194000244140625, -0.005313873291015625, 0.03363037109375, -0.01108551025390625, -0.007419586181640625, -0.005367279052734375, 0.00571441650390625, 0.00965118408203125, -0.01042938232421875, 0.0041046142578125, -0.0004146099090576172, 0.030731201171875, 0.01873779296875, 0.00310516357421875, -0.06048583984375, -0.0017614364624023438, 0.01471710205078125, 0.0274810791015625, 0.0023021697998046875, -0.032958984375, -0.044097900390625, -0.00742340087890625, -0.02410888671875, -0.041961669921875, -0.007049560546875, -0.001331329345703125, -0.0184783935546875, -0.0090484619140625, 0.0192413330078125, 0.02001953125, -0.00899505615234375, -0.0281829833984375, 0.0242919921875, -0.03277587890625, -0.019073486328125, -0.019561767578125, 0.04241943359375, -0.013458251953125, -0.033355712890625, -0.041778564453125, 0.06170654296875, 0.043304443359375, -0.0186004638671875, 0.09478759765625, -0.0389404296875, -0.033172607421875, -0.0142822265625, 0.02899169921875, -0.061279296875, 0.0294342041015625, -0.00821685791015625, 0.01171112060546875, -0.0252227783203125, -0.0095062255859375, -0.046783447265625, 0.0266571044921875, -0.00135040283203125, -0.038299560546875, -0.0022830963134765625, 0.058074951171875, 0.02203369140625, -0.0019407272338867188, -0.054962158203125, 0.0161285400390625, 0.09893798828125, 0.046966552734375, 0.03948974609375, -0.01947021484375, 0.003208160400390625, 0.054718017578125, 0.0087432861328125, 0.0006284713745117188, 0.0007147789001464844, -0.0261077880859375, 0.017730712890625, 0.00885009765625, 0.018798828125, 0.01134490966796875, 0.004848480224609375, 0.0266571044921875, 0.01425933837890625, -0.030548095703125, 0.02337646484375, -0.031646728515625, -0.00140380859375, 0.0291900634765625, 0.055572509765625, -0.055908203125, 0.076904296875, -0.05419921875, 0.024261474609375, -0.047943115234375, 0.0328369140625, -0.0146026611328125, 0.0226287841796875, -0.0293121337890625, -0.038848876953125, -0.0025768280029296875, -0.08001708984375, -0.00537109375, 0.018646240234375, 0.00888824462890625, -0.0018310546875, 0.0124664306640625, -0.0308380126953125, 0.004291534423828125, 0.01059722900390625, 0.005641937255859375, -0.01092529296875, 0.0081024169921875, 0.009429931640625, 0.04400634765625, 0.0277252197265625, -0.037567138671875, 0.006366729736328125, 0.0233154296875, -0.03656005859375, -0.0127410888671875, 0.0030841827392578125, 0.0355224609375, 0.0157470703125, 0.019805908203125, 0.01152801513671875, -0.01324462890625, 0.017486572265625, 0.00841522216796875, 0.0150146484375, -0.0197906494140625, -0.071533203125, -0.006038665771484375, -0.0218353271484375, -0.0193634033203125, 0.054534912109375, 0.0297088623046875, -0.00661468505859375, -0.06549072265625, -0.1024169921875, 0.013885498046875, -0.0148468017578125, 0.04229736328125, 0.008026123046875, -0.01116180419921875, 0.017181396484375, -0.02880859375, -0.01629638671875, 0.0240631103515625, -0.0212249755859375, 0.03173828125, -0.01403045654296875, 0.04345703125, 0.0033016204833984375, 0.0225372314453125, -0.00505828857421875, -0.00066375732421875, 0.0185089111328125, -0.0025310516357421875, 0.0499267578125, -0.047821044921875, -0.007572174072265625, -0.05126953125, 0.039520263671875, -0.0733642578125, 0.0330810546875, 0.09234619140625, -0.029571533203125, 0.01280975341796875, -0.0123138427734375, -0.04156494140625, -0.034515380859375, -0.07708740234375, 0.048095703125, 0.0654296875, 0.021942138671875, 0.01404571533203125, -0.034698486328125, 0.0081787109375, 0.03326416015625, 0.03924560546875, 0.031707763671875, -0.0039005279541015625, 0.028167724609375, 0.0780029296875, -0.0029659271240234375, -0.02178955078125, -0.006160736083984375, -0.0229644775390625, 0.01105499267578125, 0.00849151611328125, 0.0004830360412597656, 0.0201873779296875, 0.01181793212890625, -0.0024204254150390625, -0.013946533203125, -0.03033447265625, 0.006927490234375, -0.035491943359375, 0.042449951171875, 0.000263214111328125, 0.054351806640625, 0.037750244140625, -0.01462554931640625, -0.0064544677734375, 0.005886077880859375, 0.0226898193359375, 0.0015850067138671875, 0.0306854248046875, -0.0011720657348632812, -0.01297760009765625, -0.01409149169921875, -0.005924224853515625, 0.0214080810546875, 0.00829315185546875, -0.034210205078125, 0.003322601318359375, -0.0297088623046875, -0.011749267578125, -0.0006952285766601562, -0.01500701904296875, -0.0028820037841796875, -0.034210205078125, 0.0277099609375, 0.009918212890625, 0.02484130859375, -0.002471923828125, -0.021728515625, 0.0206756591796875, 0.0250701904296875, -0.0285491943359375, 0.03936767578125, -0.03338623046875, 0.03173828125, -0.0124664306640625, 0.033721923828125, 0.06365966796875, 0.01074981689453125, 0.002307891845703125, 0.033447265625, -0.0288238525390625, 0.0203857421875, 0.0301666259765625, 0.0250244140625, 0.032073974609375, -0.07147216796875, 0.01187896728515625, 0.0233306884765625, 0.0190582275390625, -0.010162353515625, -0.0305328369140625, -0.03729248046875, 0.0281829833984375, -0.046142578125, -0.0201263427734375, -0.00788116455078125, -0.06964111328125, 0.031463623046875, -0.0111541748046875, -0.038665771484375, -0.0269775390625, 0.035858154296875, 0.00662994384765625, 0.0080108642578125, 0.0048370361328125, -0.0044708251953125, -0.006134033203125, -0.040130615234375, -0.06097412109375, -0.01497650146484375, 0.004421234130859375, 0.02337646484375, 0.048736572265625, 0.0187225341796875, -0.002689361572265625, 0.0399169921875, -0.055206298828125, -0.033905029296875, -0.01088714599609375, 0.0078277587890625, -0.0202178955078125, -0.0267181396484375, 0.00637054443359375, -0.042755126953125, 0.00450897216796875, 0.00957489013671875, -0.017181396484375, -0.005382537841796875, -0.001495361328125, 0.019439697265625, 0.034912109375, 0.008209228515625, 0.0261688232421875, 0.05413818359375, -0.0230560302734375, -0.01116180419921875, 0.021270751953125, -0.0257415771484375, 0.0037670135498046875, -0.0173492431640625, -0.014892578125, 0.004642486572265625, 0.011474609375, 0.004669189453125, 0.045989990234375, 0.0159149169921875, -0.0003666877746582031, 0.0283355712890625, -0.0202484130859375, -0.0213470458984375, -0.016082763671875, 0.032867431640625, -0.0180816650390625, -0.037811279296875, -0.01043701171875, -0.00672149658203125, 0.01503753662109375, -0.039825439453125, 0.0128173828125, -0.00955963134765625, 0.00194549560546875, -0.05389404296875, 0.041229248046875, -0.038848876953125, 0.0146331787109375, -0.0302581787109375, 0.048126220703125, -0.00287628173828125, -0.005886077880859375, -0.01288604736328125, -0.01727294921875, 0.0006327629089355469, 0.0027523040771484375, -0.05230712890625, 0.0010938644409179688, -0.0882568359375, 0.0330810546875, 0.0223236083984375, -0.039825439453125, -0.046356201171875, 0.03692626953125, -0.0794677734375, -0.0240478515625, 0.03717041015625, -0.07672119140625, 0.0151519775390625, -0.03802490234375, -0.0026035308837890625, -0.07525634765625, -0.00714111328125, -0.05291748046875, -0.08380126953125, -0.0172271728515625, -0.0307464599609375, 0.0740966796875, 0.033203125, -0.0201873779296875, -0.0280303955078125, 0.038970947265625, -0.02197265625, 0.0174713134765625, -0.01464080810546875, 0.05181884765625, -0.039947509765625, -0.028045654296875, -0.01523590087890625, -0.041534423828125, 0.0100555419921875, 0.0261077880859375, 0.00034308433532714844, 0.00927734375, -0.055816650390625, -0.07470703125, 0.0068359375, -0.0478515625, -0.052764892578125, -0.04486083984375, -0.049530029296875, -0.0271759033203125, -0.028411865234375, -0.006710052490234375, -0.01348114013671875, -0.05035400390625, 0.0294647216796875, 0.029083251953125, -0.00959014892578125, -0.00783538818359375, 0.02947998046875, 0.027801513671875, -0.03515625, 0.03985595703125, -0.04205322265625, 0.01303863525390625, 0.01053619384765625, -0.0112152099609375, -0.01934814453125, -0.0138397216796875, 0.00678253173828125, -0.0233306884765625, 0.00775146484375, -0.08538818359375, 0.09051513671875, -0.008880615234375, 0.004329681396484375, 0.0169677734375, -0.033782958984375, 0.0280609130859375, -0.004306793212890625, -0.0202484130859375, 0.031402587890625, -0.00849151611328125, -0.0022945404052734375, -0.01132965087890625, 0.005878448486328125, -0.004070281982421875, -0.025238037109375, -0.006092071533203125, 0.021575927734375, 0.038543701171875, 0.0202789306640625, 0.00022304058074951172, 0.00860595703125, 0.04974365234375, -0.003570556640625, 0.0345458984375, 0.0273590087890625, 0.030364990234375, 0.035888671875, 0.0221710205078125, 0.00534820556640625, -0.0194091796875, -0.0265960693359375, -0.001811981201171875, 0.04913330078125, -0.040985107421875, 0.05242919921875, 0.016448974609375, 0.020782470703125, -0.0296173095703125, -0.0216522216796875, 0.0004401206970214844, 0.0260467529296875, -0.0362548828125, 0.026153564453125, 0.01580810546875, 0.01303863525390625, -0.03436279296875, -0.004840850830078125, -0.01062774658203125, -0.01561737060546875, -0.004795074462890625, 0.056884765625, 0.0252227783203125, 0.0007534027099609375, -0.013763427734375, 0.00641632080078125, 0.01483917236328125, 0.0156707763671875, 0.006267547607421875, 0.056396484375, -0.021820068359375, 0.016326904296875, 0.0011663436889648438, -0.05108642578125, -0.0110931396484375, 0.01534271240234375, 0.049835205078125, 0.01464080810546875, -0.03460693359375, 0.0267486572265625, -0.0276641845703125, 0.01235198974609375, 0.002368927001953125, -0.038421630859375, -0.048675537109375, 0.00970458984375, 0.042144775390625, 0.0211944580078125, -0.034820556640625, -0.00824737548828125, -0.041168212890625, -0.05078125, -0.00252532958984375, -0.033172607421875, -0.0104827880859375, -0.00420379638671875, -0.015411376953125, 0.005611419677734375, -0.006099700927734375, -0.03521728515625, -0.04498291015625, -0.0298614501953125, 0.0029354095458984375, 0.01451873779296875, 0.042449951171875, -0.0121917724609375, -0.007476806640625, -0.013153076171875, 0.00966644287109375, -0.0640869140625, 0.01152801513671875, 0.015655517578125, -0.00782012939453125, -0.0009684562683105469, -0.0256195068359375, -0.06207275390625, -0.054901123046875, -0.033477783203125, -0.020416259765625, -0.070068359375, 0.00934600830078125, 0.032684326171875, 0.034423828125, 0.01788330078125, 0.006099700927734375, 0.047393798828125, -0.00617218017578125, -0.033935546875, 0.06280517578125, 0.02001953125, -0.0101470947265625, -0.01142120361328125, 0.0281524658203125, 0.007266998291015625, -0.02337646484375, -0.00678253173828125, -0.036651611328125, 0.01465606689453125, 0.004810333251953125, 0.01334381103515625, -0.019622802734375, 0.01788330078125, -0.045196533203125, 0.0101165771484375, -0.005687713623046875, -0.0196380615234375, -0.0196380615234375, 0.00908660888671875, -0.0372314453125, 0.059417724609375, -0.0430908203125, -0.034942626953125, -0.0173492431640625, -0.081787109375, -0.040069580078125, -0.0009217262268066406, 0.027557373046875, 0.033294677734375, -0.052459716796875, -0.004322052001953125, 0.048248291015625, 0.025634765625, 0.001194000244140625, 0.03851318359375, -0.0192413330078125, 0.0328369140625, 0.0306549072265625, 0.01226043701171875, 0.04095458984375, -0.03448486328125, 0.00844573974609375, 0.051055908203125, 0.0084075927734375, -0.0240478515625, 0.0244293212890625, -0.006298065185546875, -0.0103912353515625, 0.0007243156433105469, 0.04449462890625, 0.041717529296875, -0.07623291015625, 0.015899658203125, 0.032470703125, 0.0101318359375, 0.004169464111328125, 0.0137939453125, 0.004253387451171875, -0.005359649658203125, 0.010162353515625, -0.027252197265625, -0.019134521484375, 0.00502777099609375, -0.01340484619140625, -0.0248260498046875, -0.044952392578125, -0.0258026123046875, -0.004150390625, 0.033721923828125, 0.026702880859375, -0.00897216796875, 0.006038665771484375, -0.0345458984375, 0.0160369873046875, -0.0182952880859375, -0.01248931884765625, -0.06500244140625, -0.00452423095703125, -0.0021514892578125, 0.0031299591064453125, 0.003574371337890625, -0.007106781005859375, -0.06549072265625, 0.045745849609375, -0.08465576171875, 0.07403564453125, 0.019500732421875, -0.05572509765625, 0.025726318359375, 0.005428314208984375, 0.0218963623046875, -0.00943756103515625, -0.0657958984375, 0.0089569091796875, -0.0389404296875, 0.0038394927978515625, 0.00380706787109375, 0.0203399658203125, -0.005474090576171875, -0.03338623046875, 0.0092315673828125, 0.0509033203125, 0.031219482421875, -0.00548553466796875, -0.05230712890625, -0.04656982421875, -0.06585693359375, 0.01030731201171875, -0.061431884765625, 0.0198822021484375, 0.05419921875, -0.05731201171875, -0.07574462890625, 0.127197265625, 0.0194549560546875, 0.01325225830078125, -0.00534820556640625, 0.058258056640625, -0.044281005859375, 0.031646728515625, -0.005420684814453125, 0.035491943359375, 0.00624847412109375, -0.0064697265625, -0.032012939453125, 0.004291534423828125, -0.004680633544921875, 0.032562255859375, 0.043670654296875, 0.00882720947265625, -0.0188140869140625, -0.0101318359375, 0.0191192626953125, 0.039276123046875, -0.006259918212890625, 0.0231781005859375, 0.01715087890625, -0.03582763671875, 0.0240325927734375, 0.007755279541015625, 0.0262603759765625, -0.02679443359375, 0.00897979736328125, 0.031707763671875, -0.00022304058074951172, -0.0170745849609375, 0.01312255859375, 0.02740478515625, -0.04302978515625, 0.0070037841796875, 0.0188140869140625, -0.0253143310546875, 0.0005588531494140625, 0.031982421875, -0.001544952392578125, 0.02276611328125, -0.024017333984375, -0.0208587646484375, 0.023681640625, -0.006557464599609375, 0.0102386474609375, 0.03759765625, 0.0177001953125, 0.016326904296875, -0.0027065277099609375, 0.00226593017578125, -0.005218505859375, 0.0004870891571044922, 0.0038204193115234375, 0.0264129638671875, 0.010406494140625, -0.010833740234375, 0.0242919921875, 0.034210205078125, 0.0009675025939941406, -0.028076171875, -0.05029296875, -0.0112762451171875, -0.0082550048828125, 0.00481414794921875, -0.03521728515625, -0.01043701171875, -0.043121337890625, 0.010284423828125, 0.01308441162109375, -0.0247650146484375, -0.0045928955078125, -0.002841949462890625, -0.003910064697265625, -0.01058197021484375, 0.038299560546875, -0.01143646240234375, -0.044342041015625, 0.01073455810546875, 0.0230865478515625, 0.019439697265625, 0.01148223876953125, 0.031463623046875, 0.052337646484375, -0.007457733154296875, -0.0321044921875, 0.04412841796875, 0.0221405029296875, 0.032318115234375, -0.021636962890625, -0.0255279541015625, 0.01275634765625, 0.0233001708984375, 0.0170745849609375, 0.006622314453125, 0.0394287109375, 0.0090789794921875, -0.0271759033203125, -0.00951385498046875, -0.036712646484375, -0.037445068359375, -0.0233306884765625, -0.020416259765625, -0.033050537109375, -0.0020236968994140625, -0.003978729248046875, -0.0008511543273925781, 0.00605010986328125, 0.006084442138671875, -0.043121337890625, 0.0251617431640625, -0.00087738037109375, -0.0193023681640625, 0.030242919921875, -0.0135040283203125, 0.0077362060546875, -0.01241302490234375, -0.0240631103515625, -0.00836181640625, 0.02288818359375, -0.02740478515625, -0.0003688335418701172, 0.035980224609375, -0.005191802978515625, 0.019134521484375, -0.01474761962890625, -0.0311126708984375, 0.006687164306640625, 0.025360107421875, -0.00782012939453125, 0.01348876953125, 0.01403045654296875, -0.0236968994140625, -0.0643310546875, -0.036346435546875, -0.01416015625, 0.03338623046875, 0.019378662109375, 0.0208587646484375, 0.023590087890625, 0.013885498046875, 0.007518768310546875, 0.056304931640625, -0.0282135009765625, -0.0283203125, 0.0455322265625, 0.0157928466796875, 0.033050537109375, -0.0100555419921875, -0.01432037353515625, 0.087890625, 0.0108642578125, 0.0135650634765625, 0.05157470703125, -0.0379638671875, -0.002620697021484375, -0.007541656494140625, -0.010955810546875, -0.01043701171875, -0.0247955322265625, 0.0173187255859375, 0.0293731689453125, 0.005077362060546875, 0.0214691162109375, -0.021240234375, 0.00004303455352783203, 0.01245880126953125, -0.01739501953125, 0.01654052734375, 0.00914764404296875, -0.0099945068359375, 0.01485443115234375, 0.037078857421875, -0.038116455078125, 0.01493072509765625, 0.0008311271667480469, -0.05267333984375, 0.046630859375, -0.0280609130859375, 0.01522064208984375, -0.046295166015625, 0.0294952392578125, -0.020233154296875, 0.05133056640625, 0.0038051605224609375, 0.0074310302734375, -0.0229949951171875, 0.035308837890625, -0.014862060546875, -0.016265869140625, -0.0278167724609375, -0.0309600830078125, 0.0019311904907226562, 0.0182647705078125, -0.017120361328125, -0.026275634765625, -0.034454345703125, 0.0072479248046875, 0.0279541015625, 0.0238189697265625, -0.05535888671875, 0.052154541015625, -0.0266265869140625, -0.00760650634765625, 0.02081298828125, 0.00482940673828125, -0.0165863037109375, -0.004974365234375, -0.059844970703125, -0.033843994140625, -0.0667724609375, 0.01291656494140625, -0.06427001953125, 0.0228118896484375, 0.058441162109375, -0.0231475830078125, -0.0169677734375, -0.03271484375, 0.0042877197265625, 0.027191162109375, -0.0182037353515625, 0.0005755424499511719, 0.04620361328125, -0.003330230712890625, -0.0284576416015625, -0.08819580078125, -0.025299072265625, -0.050201416015625, 0.0273895263671875, -0.0230865478515625, 0.01119232177734375, 0.0199737548828125, -0.03515625, -0.05029296875, -0.032470703125, 0.00899505615234375, -0.0413818359375, -0.0010576248168945312, 0.02252197265625, -0.0069580078125, -0.010711669921875, 0.0103759765625, 0.00899505615234375, 0.00762176513671875, -0.0178680419921875, -0.004116058349609375, 0.04864501953125, 0.0149078369140625, 0.01168060302734375, -0.031494140625, -0.0145721435546875, -0.04986572265625, -0.00519561767578125, 0.0496826171875, -0.03143310546875, 0.04339599609375, 0.056793212890625, -0.03326416015625, -0.09735107421875, -0.048309326171875, -0.076171875, -0.0081787109375, -0.02392578125, -0.0421142578125, -0.01279449462890625, 0.05657958984375, 0.06573486328125, 0.0210723876953125, -0.031768798828125, -0.0155029296875, 0.0234375, -0.052154541015625, -0.0240478515625, 0.040435791015625, -0.0684814453125, -0.0310821533203125, -0.0141143798828125, -0.02032470703125, 0.024871826171875, -0.0070037841796875, -0.03179931640625, 0.005481719970703125, -0.0001952648162841797, -0.010894775390625, -0.054473876953125, 0.041107177734375, 0.0333251953125, -0.0296173095703125, 0.006427764892578125, 0.0029315948486328125, -0.020355224609375, 0.01554107666015625, 0.03143310546875, -0.0018177032470703125, 0.031341552734375, -0.034088134765625, -0.007007598876953125, 0.00041103363037109375, -0.0032196044921875, -0.02471923828125, -0.0040740966796875, -0.018707275390625, 0.0086517333984375, -0.00708770751953125, 0.0134735107421875, 0.01415252685546875, 0.00800323486328125, 0.0042266845703125, -0.0035839080810546875, -0.0207977294921875, 0.0218048095703125, -0.0185089111328125, 0.044952392578125, -0.0313720703125, 0.01090240478515625, 0.01000213623046875, -0.037567138671875, 0.0207977294921875, 0.0160369873046875, 0.032562255859375, -0.00469207763671875, 0.0287322998046875, 0.03521728515625, 0.00305938720703125, 0.00008237361907958984 ]
33c880b7adbafea8e23f1280832b3463c9a7cbe2
Wordpress Stackexchange Q: How to disable drag-and-drop upload function in Media Library? Does any one knows a valid/standard way to disable drag and upload when accessing the media library in the admin area? In order to make this sense to you, I'm building a multisite and user of sub-site cannot upload media files but they can view. I can remove their capability 'upload_file' but that would completely remove the media experience. So far this is what I've got: add_action('admin_init','disable_drag_upload'); function disable_drag_upload() { wp_deregister_script( 'wp-plupload' ); } .. but that would skip the media library content. A: Instead of removing upload script you can make the upload error out if the user does not have admin privileges. Like this- function tomjn_only_upload_for_admin( $file ) { if ( ! current_user_can( 'manage_options' ) ) { $file['error'] = 'You can\'t upload images without admin privileges!'; } return $file; } add_filter( 'wp_handle_upload_prefilter', 'tomjn_only_upload_for_admin' ); For other possible way please follow this answer- https://wordpress.stackexchange.com/a/105558/59760
Q: How to disable drag-and-drop upload function in Media Library? Does any one knows a valid/standard way to disable drag and upload when accessing the media library in the admin area? In order to make this sense to you, I'm building a multisite and user of sub-site cannot upload media files but they can view. I can remove their capability 'upload_file' but that would completely remove the media experience. So far this is what I've got: add_action('admin_init','disable_drag_upload'); function disable_drag_upload() { wp_deregister_script( 'wp-plupload' ); } .. but that would skip the media library content. A: Instead of removing upload script you can make the upload error out if the user does not have admin privileges. Like this- function tomjn_only_upload_for_admin( $file ) { if ( ! current_user_can( 'manage_options' ) ) { $file['error'] = 'You can\'t upload images without admin privileges!'; } return $file; } add_filter( 'wp_handle_upload_prefilter', 'tomjn_only_upload_for_admin' ); For other possible way please follow this answer- https://wordpress.stackexchange.com/a/105558/59760
wordpress
{ "language": "en", "length": 155, "provenance": "stackexchange_00019.jsonl.gz:457330", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/194655" }
[ 0.0733642578125, -0.016265869140625, 0.020843505859375, -0.0082855224609375, 0.0232696533203125, -0.040313720703125, 0.0687255859375, -0.0304718017578125, 0.035491943359375, 0.011077880859375, 0.0189971923828125, -0.0236053466796875, 0.021759033203125, -0.04962158203125, -0.0045623779296875, 0.00620269775390625, 0.0117340087890625, -0.010284423828125, 0.0261077880859375, -0.028289794921875, 0.0107574462890625, -0.00989532470703125, 0.051177978515625, -0.0158843994140625, -0.0236968994140625, 0.0203399658203125, -0.0079803466796875, 0.004131317138671875, -0.042938232421875, -0.0305938720703125, 0.0007390975952148438, 0.039947509765625, -0.005023956298828125, 0.037811279296875, -0.0184173583984375, -0.0177764892578125, 0.0019159317016601562, 0.02093505859375, 0.039642333984375, -0.001697540283203125, 0.0129241943359375, -0.000720977783203125, -0.05255126953125, 0.048553466796875, -0.0606689453125, -0.0157012939453125, -0.0175018310546875, 0.00504302978515625, 0.0263671875, 0.0265960693359375, 0.00783538818359375, -0.00403594970703125, 0.011260986328125, -0.0313720703125, -0.024871826171875, -0.0304107666015625, 0.006702423095703125, 0.00719451904296875, 0.00841522216796875, 0.036895751953125, -0.0301513671875, 0.04241943359375, -0.012908935546875, -0.055450439453125, -0.005825042724609375, -0.01071929931640625, -0.031280517578125, 0.004123687744140625, -0.0753173828125, -0.008453369140625, 0.05230712890625, -0.055023193359375, 0.0259552001953125, -0.0036144256591796875, 0.01090240478515625, -0.01529693603515625, 0.01274871826171875, 0.0227813720703125, 0.01549530029296875, -0.007598876953125, 0.01424407958984375, -0.0160675048828125, -0.0416259765625, -0.00859832763671875, 0.016510009765625, 0.0233612060546875, 0.0019016265869140625, -0.0162811279296875, 0.0169830322265625, 0.043975830078125, -0.0026874542236328125, 0.028106689453125, 0.037353515625, 0.031890869140625, -0.0104522705078125, -0.01554107666015625, 0.03387451171875, 0.01000213623046875, 0.0121917724609375, -0.016937255859375, 0.0289459228515625, -0.060577392578125, -0.00653839111328125, -0.011993408203125, 0.032989501953125, -0.006927490234375, -0.035797119140625, -0.0771484375, 0.0340576171875, 0.030975341796875, -0.0202178955078125, 0.057830810546875, 0.00591278076171875, 0.02294921875, -0.0102081298828125, -0.01055145263671875, -0.039794921875, 0.03765869140625, -0.033935546875, 0.0280914306640625, -0.00970458984375, 0.01448822021484375, -0.0292816162109375, 0.005950927734375, 0.032867431640625, 0.01010894775390625, -0.00556182861328125, 0.0218505859375, 0.003849029541015625, 0.008331298828125, -0.033599853515625, 0.003917694091796875, 0.0810546875, 0.041961669921875, 0.020294189453125, -0.00957489013671875, 0.01497650146484375, 0.006870269775390625, 0.00482940673828125, 0.006122589111328125, 0.03472900390625, -0.0428466796875, -0.00943756103515625, 0.020660400390625, -0.01251220703125, 0.0341796875, 0.00809478759765625, 0.0036602020263671875, 0.020660400390625, -0.0682373046875, -0.022705078125, -0.01220703125, 0.03155517578125, 0.007213592529296875, 0.002742767333984375, -0.0212554931640625, 0.049835205078125, -0.0244293212890625, -0.01216888427734375, -0.03466796875, 0.0283355712890625, 0.01488494873046875, 0.038482666015625, -0.01540374755859375, -0.029205322265625, -0.01458740234375, -0.045166015625, -0.0211334228515625, 0.02734375, 0.0142974853515625, 0.0021514892578125, -0.0181121826171875, 0.051513671875, 0.013671875, -0.01050567626953125, 0.01419830322265625, 0.0136871337890625, 0.0289306640625, 0.0211639404296875, 0.031524658203125, -0.0042877197265625, -0.027374267578125, 0.08721923828125, -0.03363037109375, -0.046661376953125, 0.0218658447265625, 0.0093841552734375, 0.0271759033203125, 0.007671356201171875, 0.0008206367492675781, 0.045440673828125, 0.03887939453125, -0.00345611572265625, -0.012115478515625, -0.0208892822265625, -0.041351318359375, -0.03656005859375, -0.0304412841796875, -0.032440185546875, 0.06976318359375, 0.046783447265625, -0.0247802734375, 0.02655029296875, -0.01247406005859375, -0.0043487548828125, -0.00835418701171875, 0.00052642822265625, -0.00682830810546875, -0.0170745849609375, 0.0418701171875, 0.026458740234375, 0.034210205078125, -0.06512451171875, 0.0250091552734375, 0.025604248046875, 0.0019025802612304688, -0.01068878173828125, 0.08416748046875, 0.002262115478515625, 0.0738525390625, -0.006267547607421875, -0.059356689453125, 0.0250244140625, -0.0123748779296875, 0.0033931732177734375, -0.0022068023681640625, -0.0011949539184570312, 0.0053253173828125, 0.048675537109375, -0.0074920654296875, 0.059173583984375, 0.027130126953125, -0.00774383544921875, 0.0102996826171875, -0.006763458251953125, -0.01959228515625, -0.0272064208984375, -0.111328125, 0.0267333984375, 0.06256103515625, 0.0169830322265625, 0.028106689453125, 0.0228271484375, 0.06365966796875, 0.04486083984375, -0.01053619384765625, 0.007366180419921875, 0.0184478759765625, -0.0018033981323242188, 0.00003516674041748047, -0.043182373046875, 0.007442474365234375, 0.04278564453125, 0.0017681121826171875, 0.01287078857421875, 0.04180908203125, -0.0208892822265625, -0.034912109375, 0.03179931640625, -0.0224609375, 0.03515625, -0.0011606216430664062, -0.035888671875, 0.0236053466796875, -0.0202789306640625, 0.0295867919921875, 0.0028018951416015625, 0.004886627197265625, -0.02984619140625, 0.034637451171875, 0.023040771484375, -0.0309295654296875, -0.01076507568359375, 0.0513916015625, 0.054534912109375, -0.04315185546875, -0.040069580078125, -0.004993438720703125, -0.0212554931640625, 0.01546478271484375, -0.04132080078125, 0.01220703125, -0.00927734375, -0.01128387451171875, -0.036224365234375, -0.0653076171875, 0.0208282470703125, -0.0167999267578125, -0.03448486328125, -0.005237579345703125, 0.0276641845703125, 0.006526947021484375, -0.005847930908203125, -0.01309967041015625, -0.0064849853515625, -0.0169219970703125, -0.024383544921875, -0.034912109375, 0.0228729248046875, -0.03375244140625, 0.079345703125, 0.07257080078125, -0.0229339599609375, 0.01409149169921875, 0.0281982421875, -0.0396728515625, 0.0155792236328125, 0.033905029296875, 0.0208587646484375, 0.0116424560546875, -0.0689697265625, 0.00021851062774658203, 0.0082550048828125, -0.062347412109375, 0.01483154296875, -0.012939453125, -0.0094757080078125, -0.0273284912109375, -0.061492919921875, -0.006183624267578125, -0.048675537109375, -0.054168701171875, 0.041961669921875, 0.0244598388671875, -0.0197906494140625, -0.035369873046875, 0.0555419921875, 0.03204345703125, -0.043975830078125, 0.016876220703125, 0.0218353271484375, 0.03057861328125, -0.0019626617431640625, 0.0171661376953125, -0.00530242919921875, 0.015655517578125, 0.00920867919921875, 0.09027099609375, 0.005702972412109375, -0.049896240234375, 0.01371002197265625, -0.05224609375, -0.040771484375, 0.0183563232421875, 0.054443359375, -0.02294921875, -0.0011997222900390625, 0.0141143798828125, -0.0028705596923828125, 0.01465606689453125, -0.0199737548828125, -0.0241546630859375, -0.00804901123046875, -0.041900634765625, -0.01561737060546875, 0.03631591796875, 0.010772705078125, -0.05517578125, -0.0271453857421875, -0.07537841796875, -0.004016876220703125, -0.0202789306640625, -0.016387939453125, 0.0300445556640625, -0.0019931793212890625, -0.0080108642578125, 0.00508880615234375, 0.01959228515625, 0.024505615234375, 0.031402587890625, -0.051025390625, -0.00608062744140625, -0.0069122314453125, 0.0205230712890625, 0.043548583984375, 0.033050537109375, 0.02520751953125, -0.00896453857421875, -0.0008897781372070312, 0.00897979736328125, 0.0054931640625, -0.025909423828125, 0.0194091796875, -0.038299560546875, -0.0228729248046875, 0.0257720947265625, -0.03924560546875, 0.0007052421569824219, -0.01303863525390625, 0.01019287109375, 0.00716400146484375, 0.0694580078125, -0.0157928466796875, 0.006618499755859375, -0.048828125, -0.01242828369140625, 0.00626373291015625, -0.04229736328125, -0.031280517578125, 0.003932952880859375, -0.01922607421875, -0.0182342529296875, -0.0136260986328125, -0.022125244140625, -0.017364501953125, -0.0465087890625, -0.0089874267578125, -0.0171051025390625, 0.02423095703125, -0.042083740234375, 0.01438140869140625, 0.013671875, 0.018463134765625, -0.0286102294921875, -0.01000213623046875, -0.0389404296875, -0.09307861328125, -0.0242919921875, -0.0149993896484375, 0.0859375, -0.01320648193359375, 0.042388916015625, -0.05816650390625, 0.03338623046875, 0.028900146484375, -0.01666259765625, 0.027069091796875, -0.00992584228515625, 0.02130126953125, 0.00997161865234375, 0.007465362548828125, -0.009063720703125, -0.001922607421875, -0.0290985107421875, -0.040557861328125, -0.0293731689453125, -0.037017822265625, 0.0028228759765625, 0.013946533203125, -0.030303955078125, -0.064208984375, -0.05560302734375, -0.07611083984375, -0.00618743896484375, -0.038177490234375, 0.0064849853515625, -0.06317138671875, -0.07720947265625, 0.027801513671875, -0.022003173828125, 0.018218994140625, 0.01116180419921875, 0.051055908203125, -0.00030159950256347656, -0.00830078125, -0.03369140625, 0.050811767578125, 0.037109375, -0.0262298583984375, 0.0261688232421875, 0.031890869140625, -0.0029850006103515625, -0.020294189453125, -0.00787353515625, 0.006610870361328125, -0.009674072265625, 0.002315521240234375, 0.005218505859375, 0.004489898681640625, -0.00722503662109375, -0.0039043426513671875, 0.033447265625, 0.01331329345703125, 0.002109527587890625, -0.01177215576171875, -0.00583648681640625, 0.035125732421875, 0.0025634765625, 0.003787994384765625, -0.04290771484375, -0.061981201171875, 0.0229034423828125, -0.06689453125, 0.01496124267578125, 0.0031681060791015625, -0.003692626953125, 0.0071258544921875, 0.002742767333984375, -0.0066375732421875, -0.0009160041809082031, 0.01473236083984375, -0.005588531494140625, 0.03009033203125, 0.0028228759765625, -0.003040313720703125, -0.02490234375, -0.0031375885009765625, 0.03497314453125, -0.0027828216552734375, -0.0192718505859375, -0.05828857421875, -0.00653839111328125, 0.061065673828125, 0.007373809814453125, 0.0006937980651855469, 0.007625579833984375, 0.031524658203125, 0.007030487060546875, 0.01450347900390625, 0.0174102783203125, 0.0250091552734375, -0.0176544189453125, 0.0159759521484375, 0.017913818359375, -0.0179901123046875, 0.0207061767578125, 0.0355224609375, 0.0197296142578125, 0.0026798248291015625, -0.005046844482421875, 0.02508544921875, 0.04034423828125, 0.007793426513671875, 0.00408172607421875, 0.0221710205078125, -0.00588226318359375, -0.00682830810546875, 0.032135009765625, -0.048614501953125, 0.00446319580078125, 0.040191650390625, 0.042236328125, 0.012939453125, -0.027496337890625, -0.00946044921875, -0.0316162109375, -0.0250244140625, 0.0230865478515625, -0.01192474365234375, -0.044464111328125, -0.0205230712890625, 0.015777587890625, 0.02685546875, -0.0188446044921875, 0.006748199462890625, -0.009521484375, -0.01512908935546875, -0.0161285400390625, 0.0267333984375, -0.0260162353515625, -0.01158905029296875, 0.00951385498046875, 0.0179901123046875, -0.0171356201171875, -0.006893157958984375, -0.059844970703125, 0.00640869140625, -0.02685546875, -0.00583648681640625, 0.038421630859375, -0.048126220703125, 0.00679779052734375, -0.0262908935546875, 0.042327880859375, -0.054290771484375, 0.0228271484375, 0.05645751953125, 0.04290771484375, 0.0222320556640625, -0.0283660888671875, -0.06341552734375, -0.042327880859375, -0.052947998046875, -0.056610107421875, -0.028717041015625, -0.0040740966796875, 0.005817413330078125, 0.0093231201171875, 0.005481719970703125, -0.0064239501953125, -0.0005040168762207031, 0.0277862548828125, 0.00487518310546875, 0.04718017578125, -0.01485443115234375, 0.048858642578125, 0.02410888671875, 0.00902557373046875, 0.00823211669921875, 0.0309906005859375, -0.00817108154296875, -0.01428985595703125, 0.0004992485046386719, -0.04595947265625, -0.0293121337890625, 0.007541656494140625, -0.036865234375, 0.045135498046875, 0.07110595703125, -0.011505126953125, -0.004123687744140625, -0.0008473396301269531, 0.008941650390625, -0.033599853515625, 0.0170745849609375, -0.00939178466796875, -0.011688232421875, -0.009063720703125, -0.0140838623046875, 0.032684326171875, -0.019927978515625, -0.067626953125, 0.068115234375, 0.00518035888671875, 0.0489501953125, 0.010040283203125, 0.0012731552124023438, -0.0036640167236328125, 0.054107666015625, 0.03076171875, 0.054351806640625, 0.0237274169921875, 0.04827880859375, 0.037322998046875, 0.01476287841796875, 0.0246429443359375, -0.052215576171875, -0.00420379638671875, -0.004039764404296875, 0.0338134765625, 0.0106048583984375, 0.006168365478515625, -0.0068511962890625, 0.042327880859375, 0.043487548828125, -0.032379150390625, -0.01788330078125, -0.0020999908447265625, -0.00743865966796875, 0.010040283203125, -0.0386962890625, -0.007183074951171875, -0.06512451171875, 0.04150390625, -0.004177093505859375, -0.05889892578125, -0.029876708984375, -0.018310546875, -0.0156402587890625, -0.0137176513671875, -0.0167999267578125, 0.0142669677734375, 0.048370361328125, -0.02081298828125, -0.007709503173828125, -0.00023937225341796875, 0.01262664794921875, 0.0210418701171875, -0.037078857421875, -0.03997802734375, -0.04010009765625, -0.028045654296875, 0.01435089111328125, -0.032440185546875, 0.0209197998046875, -0.00623321533203125, 0.03216552734375, 0.056365966796875, -0.0140838623046875, -0.0027637481689453125, 0.027984619140625, -0.00609588623046875, -0.0037937164306640625, -0.021026611328125, 0.0093536376953125, -0.0230865478515625, -0.01538848876953125, 0.010284423828125, -0.01053619384765625, -0.043121337890625, 0.006526947021484375, 0.00946807861328125, 0.01503753662109375, -0.0221405029296875, -0.00833892822265625, 0.056304931640625, 0.021148681640625, -0.0168304443359375, -0.00510406494140625, 0.044647216796875, -0.06646728515625, -0.056732177734375, 0.015167236328125, -0.072265625, -0.03558349609375, -0.021484375, -0.031890869140625, 0.10186767578125, -0.026336669921875, 0.037078857421875, 0.0556640625, 0.0194549560546875, -0.02154541015625, 0.00672149658203125, -0.0290374755859375, 0.04248046875, -0.001323699951171875, 0.0311279296875, -0.05426025390625, -0.0004048347473144531, -0.0047760009765625, 0.0305023193359375, 0.04669189453125, 0.0181884765625, -0.0239105224609375, 0.00030422210693359375, 0.04791259765625, 0.08526611328125, 0.03302001953125, -0.002429962158203125, -0.01244354248046875, 0.007007598876953125, 0.0166168212890625, -0.00868988037109375, 0.02685546875, 0.006938934326171875, -0.040985107421875, 0.0281982421875, 0.01324462890625, 0.01531982421875, -0.029510498046875, 0.013153076171875, -0.01995849609375, -0.014404296875, 0.0126495361328125, -0.007610321044921875, 0.007740020751953125, 0.02557373046875, 0.0161895751953125, -0.046875, -0.01398468017578125, -0.025726318359375, 0.035247802734375, -0.00800323486328125, 0.033599853515625, 0.0041656494140625, 0.01593017578125, -0.03314208984375, 0.00904083251953125, 0.0192413330078125, 0.0241851806640625, -0.05718994140625, -0.0121002197265625, -0.0072784423828125, -0.00467681884765625, -0.04559326171875, 0.00766754150390625, 0.039459228515625, 0.00942230224609375, -0.0211029052734375, 0.0111236572265625, 0.02215576171875, 0.0194091796875, -0.03643798828125, -0.036285400390625, -0.0204620361328125, -0.0380859375, -0.00949859619140625, -0.02008056640625, -0.03668212890625, 0.00708770751953125, 0.043853759765625, 0.0032863616943359375, 0.0095367431640625, 0.004207611083984375, -0.060272216796875, 0.003780364990234375, -0.001712799072265625, -0.0156707763671875, 0.01416015625, 0.006317138671875, 0.03155517578125, -0.04315185546875, -0.0015468597412109375, -0.04156494140625, 0.05645751953125, -0.0127716064453125, 0.041046142578125, -0.07720947265625, -0.060333251953125, 0.0091552734375, 0.062255859375, 0.0210418701171875, 0.043975830078125, 0.048828125, 0.034515380859375, -0.0182647705078125, 0.01125335693359375, 0.054534912109375, -0.023712158203125, -0.01165771484375, -0.0304718017578125, -0.01953125, -0.0079498291015625, -0.015625, 0.0092926025390625, -0.0006237030029296875, 0.0316162109375, -0.051483154296875, 0.006893157958984375, -0.004436492919921875, -0.05560302734375, 0.0011425018310546875, -0.011444091796875, 0.03302001953125, -0.02752685546875, -0.10577392578125, -0.014678955078125, -0.071044921875, -0.006992340087890625, 0.0213165283203125, 0.01788330078125, -0.0355224609375, 0.052703857421875, 0.0264739990234375, -0.01666259765625, 0.0027828216552734375, -0.005054473876953125, 0.0216064453125, -0.033660888671875, 0.0031223297119140625, -0.0035572052001953125, -0.005306243896484375, -0.0014314651489257812, -0.0068817138671875, 0.04150390625, 0.0068511962890625, 0.08062744140625, -0.0267181396484375, 0.01861572265625, 0.0001850128173828125, -0.0065460205078125, -0.0002046823501586914, 0.005344390869140625, -0.042724609375, 0.0012073516845703125, 0.01009368896484375, -0.00139617919921875, 0.046112060546875, 0.058380126953125, 0.00002300739288330078, -0.0273284912109375, 0.00794219970703125, -0.00916290283203125, -0.0016412734985351562, 0.037689208984375, -0.0024013519287109375, -0.01690673828125, -0.03656005859375, -0.016021728515625, 0.03662109375, 0.0144500732421875, 0.0166473388671875, -0.05474853515625, -0.006153106689453125, -0.021270751953125, -0.049652099609375, -0.0097198486328125, -0.007198333740234375, -0.028717041015625, 0.0242919921875, 0.000865936279296875, -0.0306549072265625, 0.019317626953125, -0.0159912109375, -0.006320953369140625, 0.01491546630859375, 0.02471923828125, 0.0214080810546875, -0.05096435546875, 0.00038313865661621094, 0.0030612945556640625, 0.02337646484375, -0.003101348876953125, -0.01177978515625, -0.0010137557983398438, -0.0135955810546875, -0.047271728515625, -0.0509033203125, -0.0207977294921875, -0.049224853515625, -0.00830078125, 0.04559326171875, -0.0357666015625, -0.0116424560546875, -0.0251007080078125, 0.032867431640625, 0.0247802734375, 0.0130767822265625, -0.10137939453125, 0.095947265625, -0.054443359375, 0.049713134765625, -0.02423095703125, 0.0280609130859375, -0.0159759521484375, 0.027496337890625, -0.04833984375, -0.07440185546875, -0.0288543701171875, 0.07440185546875, -0.03558349609375, 0.0123138427734375, 0.029571533203125, -0.014495849609375, -0.0198211669921875, 0.031890869140625, 0.00647735595703125, 0.0755615234375, -0.0030460357666015625, -0.043548583984375, -0.0226898193359375, 0.01556396484375, 0.0276031494140625, -0.007404327392578125, -0.0204315185546875, -0.0025691986083984375, -0.0060882568359375, -0.0034427642822265625, -0.004245758056640625, 0.007389068603515625, -0.035125732421875, -0.0667724609375, -0.03314208984375, 0.0018930435180664062, -0.052001953125, 0.043426513671875, 0.00429534912109375, -0.032073974609375, 0.05426025390625, 0.044952392578125, -0.034881591796875, 0.01250457763671875, -0.0277862548828125, 0.01534271240234375, 0.0309600830078125, 0.0216522216796875, 0.035369873046875, -0.04547119140625, 0.0186614990234375, -0.0166015625, 0.0028324127197265625, 0.01297760009765625, -0.031158447265625, 0.04901123046875, 0.03533935546875, -0.0239105224609375, 0.0411376953125, 0.0086212158203125, -0.017486572265625, -0.01513671875, 0.0005335807800292969, -0.06005859375, -0.004642486572265625, 0.08306884765625, 0.11572265625, 0.024566650390625, -0.039276123046875, -0.027252197265625, -0.041259765625, -0.0003077983856201172, -0.01534271240234375, 0.00974273681640625, -0.0556640625, 0.0074920654296875, 0.00792694091796875, 0.00545501708984375, 0.0029544830322265625, -0.0023326873779296875, -0.016937255859375, -0.0205841064453125, -0.0081939697265625, -0.01219940185546875, -0.045318603515625, 0.044708251953125, 0.061126708984375, -0.0501708984375, 0.00037407875061035156, 0.0128021240234375, -0.007537841796875, 0.01739501953125, -0.0034160614013671875, -0.01473236083984375, 0.0038738250732421875, -0.019134521484375, 0.033233642578125, -0.0022068023681640625, 0.0125274658203125, -0.045013427734375, 0.01255035400390625, 0.005016326904296875, -0.006298065185546875, 0.002941131591796875, -0.00446319580078125, 0.0101165771484375, 0.00106048583984375, -0.0276336669921875, 0.01107025146484375, -0.01526641845703125, 0.036834716796875, -0.02471923828125, 0.038177490234375, 0.0081329345703125, -0.0171966552734375, 0.0369873046875, -0.02734375, 0.01397705078125, 0.032012939453125, -0.0042572021484375, 0.003582000732421875, 0.01373291015625, -0.05316162109375, 0.0002789497375488281, -0.000988006591796875 ]
02e7ecf42b53750c8b3af3612a16c39ae3ccea43
Wordpress Stackexchange Q: Change title in head on Archive page I'm having problems with figuring out how I can change the title on my archives pages. I now have a title like this: <title>Jobs Archive - The Company</title> But I would like to have a title like this: <title>Jobs - The Company</title>. Without the Archive . This for all my archives pages for all my custom post types. Google didn't help me much, can you help me? A: You can change it via the category template (if you have multiple category templates you'll need to edit all of them; if you have archive.php, you need to edit it only there). Otherwise you can use the Yoast SEO plugin which have settings for naming the archives (actually I think that almost all SEO plugins have those settings).
Q: Change title in head on Archive page I'm having problems with figuring out how I can change the title on my archives pages. I now have a title like this: <title>Jobs Archive - The Company</title> But I would like to have a title like this: <title>Jobs - The Company</title>. Without the Archive . This for all my archives pages for all my custom post types. Google didn't help me much, can you help me? A: You can change it via the category template (if you have multiple category templates you'll need to edit all of them; if you have archive.php, you need to edit it only there). Otherwise you can use the Yoast SEO plugin which have settings for naming the archives (actually I think that almost all SEO plugins have those settings).
wordpress
{ "language": "en", "length": 134, "provenance": "stackexchange_00019.jsonl.gz:457359", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/194780" }
[ 0.03399658203125, 0.01715087890625, -0.0125274658203125, 0.050567626953125, 0.00774383544921875, -0.0557861328125, 0.0904541015625, -0.0372314453125, 0.01708984375, 0.0204925537109375, 0.036529541015625, -0.0176849365234375, 0.025482177734375, -0.05450439453125, -0.0131072998046875, 0.006916046142578125, 0.0313720703125, -0.042388916015625, -0.01230621337890625, -0.02496337890625, 0.00977325439453125, -0.0006642341613769531, 0.00931549072265625, 0.021575927734375, 0.01328277587890625, -0.01378631591796875, 0.075927734375, -0.0213775634765625, 0.033599853515625, -0.0009174346923828125, 0.0298004150390625, -0.051239013671875, 0.051116943359375, -0.06097412109375, 0.05859375, 0.0518798828125, 0.0205841064453125, -0.0281829833984375, 0.0035800933837890625, 0.015472412109375, 0.0265960693359375, -0.017791748046875, 0.0120697021484375, 0.006679534912109375, 0.0143890380859375, -0.04254150390625, 0.04266357421875, -0.042327880859375, 0.01678466796875, -0.050994873046875, -0.00469970703125, 0.0360107421875, 0.0106964111328125, -0.00588226318359375, -0.0092315673828125, 0.03759765625, -0.0190582275390625, 0.01380157470703125, 0.026824951171875, -0.037872314453125, -0.01294708251953125, -0.01554107666015625, 0.03253173828125, 0.0248870849609375, 0.00913238525390625, -0.00882720947265625, 0.061614990234375, 0.0026569366455078125, -0.0628662109375, -0.00492095947265625, 0.04193115234375, -0.01202392578125, -0.00258636474609375, -0.0191802978515625, -0.0435791015625, -0.0037593841552734375, -0.001064300537109375, -0.03643798828125, 0.01439666748046875, -0.00562286376953125, 0.031951904296875, -0.0262908935546875, 0.0333251953125, -0.027496337890625, 0.021575927734375, -0.0006136894226074219, 0.01241302490234375, -0.01462554931640625, -0.031890869140625, 0.0009927749633789062, -0.006832122802734375, -0.007518768310546875, -0.037567138671875, 0.0299835205078125, 0.0035457611083984375, -0.00005412101745605469, -0.00885772705078125, 0.055511474609375, -0.01580810546875, 0.020538330078125, -0.03363037109375, -0.0009179115295410156, -0.01381683349609375, -0.04150390625, 0.0009908676147460938, -0.0030002593994140625, -0.00920867919921875, 0.028961181640625, 0.055389404296875, 0.026458740234375, -0.021484375, 0.051666259765625, -0.024627685546875, -0.0127105712890625, -0.004352569580078125, 0.053558349609375, -0.014892578125, 0.0300445556640625, -0.007354736328125, 0.055694580078125, -0.0021190643310546875, 0.012908935546875, 0.03399658203125, -0.019134521484375, 0.005218505859375, -0.004833221435546875, -0.0195159912109375, -0.03338623046875, 0.0234527587890625, -0.004596710205078125, -0.02374267578125, 0.0193328857421875, 0.053619384765625, 0.0230255126953125, 0.0016918182373046875, -0.01006317138671875, -0.006412506103515625, -0.01995849609375, -0.0161895751953125, 0.009307861328125, -0.00018334388732910156, -0.01861572265625, 0.022125244140625, -0.0094757080078125, 0.0132904052734375, 0.0151519775390625, 0.01523590087890625, 0.043701171875, -0.010284423828125, -0.0655517578125, 0.052276611328125, -0.0275726318359375, 0.0034847259521484375, 0.0081024169921875, 0.0133209228515625, -0.0272064208984375, 0.030303955078125, -0.034576416015625, 0.03289794921875, -0.0157470703125, 0.0271453857421875, 0.0025482177734375, 0.0218353271484375, -0.002498626708984375, -0.0160064697265625, 0.0068817138671875, -0.06402587890625, -0.0009908676147460938, 0.01142120361328125, -0.0260467529296875, 0.03009033203125, -0.01433563232421875, -0.015045166015625, -0.0240936279296875, -0.003604888916015625, -0.0014896392822265625, -0.03271484375, -0.01526641845703125, 0.0174102783203125, 0.0203094482421875, 0.0122833251953125, -0.0201263427734375, -0.0105743408203125, 0.015106201171875, -0.0233001708984375, -0.01328277587890625, 0.0078125, 0.01971435546875, 0.00763702392578125, 0.0218963623046875, 0.00946807861328125, 0.0233154296875, -0.0162506103515625, -0.011322021484375, -0.005001068115234375, -0.022308349609375, 0.0002732276916503906, -0.0207672119140625, -0.00342559814453125, 0.013824462890625, -0.0014591217041015625, 0.037353515625, -0.0352783203125, 0.0173492431640625, -0.0191802978515625, -0.011688232421875, 0.001995086669921875, 0.0229339599609375, 0.0341796875, 0.065185546875, -0.01366424560546875, 0.00792694091796875, 0.01483917236328125, -0.07574462890625, -0.03509521484375, -0.032745361328125, -0.003826141357421875, -0.03692626953125, -0.0152435302734375, -0.033111572265625, 0.0013017654418945312, 0.0127410888671875, -0.023590087890625, 0.04803466796875, 0.07342529296875, -0.007526397705078125, -0.019775390625, -0.0343017578125, 0.045196533203125, 0.0011949539184570312, -0.04644775390625, 0.054595947265625, 0.04217529296875, 0.052459716796875, -0.00615692138671875, -0.0246734619140625, -0.024200439453125, -0.07470703125, 0.004581451416015625, 0.07330322265625, 0.006290435791015625, -0.00661468505859375, 0.006015777587890625, 0.058868408203125, 0.02532958984375, 0.02484130859375, 0.0260772705078125, 0.021728515625, 0.032135009765625, 0.033050537109375, -0.024810791015625, -0.0214080810546875, 0.042816162109375, -0.0273590087890625, 0.01035308837890625, 0.04010009765625, -0.0178680419921875, -0.052032470703125, 0.0188751220703125, -0.018798828125, 0.0196990966796875, -0.040313720703125, -0.044921875, -0.0005502700805664062, 0.025634765625, 0.042022705078125, 0.039031982421875, 0.03533935546875, -0.058319091796875, 0.03155517578125, 0.0218658447265625, 0.0411376953125, 0.00681304931640625, 0.0263824462890625, 0.02337646484375, 0.0236663818359375, -0.0215911865234375, -0.0178070068359375, 0.0031185150146484375, 0.01088714599609375, -0.0210418701171875, 0.00672149658203125, 0.00307464599609375, -0.004756927490234375, -0.011322021484375, -0.0517578125, 0.0269317626953125, 0.00691986083984375, 0.0131378173828125, -0.006221771240234375, 0.0158233642578125, 0.01024627685546875, -0.01451873779296875, 0.041778564453125, -0.00881195068359375, -0.034271240234375, 0.0225677490234375, -0.048828125, 0.0283050537109375, -0.0311431884765625, 0.0673828125, 0.062408447265625, -0.000766754150390625, 0.007022857666015625, 0.01387786865234375, -0.0419921875, 0.032623291015625, -0.005489349365234375, -0.007366180419921875, 0.012908935546875, -0.0584716796875, 0.0179595947265625, 0.0190582275390625, 0.01038360595703125, 0.02880859375, -0.01540374755859375, 0.00783538818359375, 0.0279541015625, -0.07025146484375, -0.09130859375, 0.0237274169921875, -0.07421875, -0.00460052490234375, 0.019073486328125, -0.054229736328125, -0.031402587890625, 0.062744140625, 0.0005197525024414062, 0.033660888671875, -0.0190582275390625, -0.021331787109375, -0.03179931640625, -0.0655517578125, -0.0770263671875, -0.0018453598022460938, -0.017669677734375, 0.001705169677734375, 0.043853759765625, 0.0102691650390625, -0.0401611328125, 0.017822265625, 0.052581787109375, 0.005523681640625, 0.00768280029296875, 0.029632568359375, -0.03973388671875, -0.00026035308837890625, 0.01128387451171875, 0.0121307373046875, 0.03875732421875, -0.017578125, -0.0074005126953125, -0.0266571044921875, 0.04949951171875, -0.0017805099487304688, 0.029541015625, 0.03802490234375, 0.05596923828125, 0.0192718505859375, -0.01190948486328125, -0.06341552734375, -0.01139068603515625, -0.065185546875, 0.0234222412109375, 0.040679931640625, 0.015838623046875, -0.03155517578125, 0.0401611328125, -0.01253509521484375, -0.022064208984375, 0.025177001953125, -0.034881591796875, 0.007427215576171875, -0.01097869873046875, -0.003108978271484375, -0.009002685546875, 0.024169921875, -0.0192413330078125, -0.0015316009521484375, 0.0091552734375, 0.01312255859375, 0.01248931884765625, 0.0159454345703125, 0.0002460479736328125, -0.08892822265625, 0.0016613006591796875, -0.111572265625, 0.0021381378173828125, -0.044403076171875, 0.01140594482421875, 0.01360321044921875, 0.09527587890625, -0.065673828125, -0.011474609375, 0.0172119140625, 0.01470947265625, 0.006313323974609375, -0.00815582275390625, -0.041351318359375, -0.04229736328125, -0.12548828125, 0.0175323486328125, -0.006683349609375, -0.037994384765625, -0.0294647216796875, 0.06396484375, -0.064208984375, -0.04510498046875, 0.0130767822265625, 0.002857208251953125, 0.0013990402221679688, -0.0155487060546875, -0.03778076171875, -0.017913818359375, -0.014312744140625, -0.01244354248046875, -0.09332275390625, -0.0200653076171875, 0.0031414031982421875, 0.06524658203125, -0.022064208984375, 0.019927978515625, -0.03912353515625, 0.042236328125, 0.0142059326171875, 0.049530029296875, -0.0091705322265625, -0.01515960693359375, -0.0200042724609375, -0.007049560546875, -0.005199432373046875, -0.0240936279296875, 0.01348114013671875, -0.022705078125, -0.058074951171875, -0.0121612548828125, -0.0391845703125, 0.031494140625, -0.01103973388671875, -0.0133819580078125, -0.08404541015625, -0.046783447265625, 0.06439208984375, 0.0185699462890625, 0.019927978515625, 0.0149383544921875, -0.05145263671875, -0.03271484375, 0.0733642578125, 0.034332275390625, -0.0205078125, -0.0019626617431640625, 0.047760009765625, 0.0025501251220703125, -0.053863525390625, -0.054779052734375, 0.0291900634765625, 0.033721923828125, -0.05523681640625, 0.064453125, 0.01007080078125, -0.0190277099609375, 0.0816650390625, -0.0277099609375, -0.0186004638671875, 0.009979248046875, 0.0186004638671875, 0.00384521484375, -0.043701171875, 0.034210205078125, -0.0154571533203125, 0.017608642578125, 0.00984954833984375, 0.007061004638671875, 0.0099945068359375, 0.00875091552734375, -0.003604888916015625, 0.0011796951293945312, 0.0044403076171875, 0.00836944580078125, -0.01763916015625, 0.00832366943359375, 0.0305328369140625, -0.01080322265625, 0.031768798828125, -0.01239776611328125, -0.017852783203125, -0.040557861328125, 0.0181427001953125, -0.08355712890625, -0.01412200927734375, -0.059051513671875, 0.048095703125, -0.08563232421875, -0.0127410888671875, -0.0416259765625, -0.0169677734375, 0.04510498046875, 0.005306243896484375, -0.044464111328125, 0.0247650146484375, -0.010772705078125, 0.036102294921875, 0.024627685546875, 0.01389312744140625, 0.028839111328125, 0.0362548828125, -0.00034689903259277344, -0.0127410888671875, -0.0209808349609375, 0.0306549072265625, -0.032989501953125, 0.0146942138671875, 0.0295867919921875, -0.02423095703125, 0.019775390625, 0.01496124267578125, 0.0274505615234375, -0.0019025802612304688, -0.022918701171875, 0.003696441650390625, 0.00992584228515625, 0.005565643310546875, 0.02008056640625, -0.00014126300811767578, -0.02337646484375, 0.0118255615234375, 0.002811431884765625, -0.01261138916015625, 0.0250244140625, 0.049163818359375, 0.0401611328125, 0.00984954833984375, -0.034332275390625, -0.007244110107421875, -0.049072265625, -0.0028133392333984375, 0.02581787109375, -0.0223236083984375, -0.05126953125, -0.019195556640625, 0.0030078887939453125, 0.032501220703125, -0.0292205810546875, -0.0233917236328125, -0.0219879150390625, -0.048736572265625, -0.004474639892578125, -0.00463104248046875, -0.031463623046875, 0.0115814208984375, 0.005016326904296875, 0.01255035400390625, 0.0041961669921875, 0.0029125213623046875, -0.036773681640625, -0.042449951171875, -0.01532745361328125, 0.029144287109375, 0.04736328125, -0.0231170654296875, 0.071044921875, -0.034881591796875, -0.0250244140625, 0.0237274169921875, 0.01123046875, 0.047943115234375, 0.02667236328125, -0.07061767578125, 0.004138946533203125, -0.02239990234375, 0.00658416748046875, -0.0797119140625, -0.049041748046875, -0.042724609375, 0.0235595703125, 0.0097808837890625, 0.00839996337890625, -0.01148223876953125, -0.03265380859375, -0.0010662078857421875, 0.0380859375, 0.0275726318359375, 0.047393798828125, -0.0251617431640625, 0.0292510986328125, 0.002635955810546875, 0.004657745361328125, -0.0284423828125, -0.0211029052734375, -0.00960540771484375, 0.004741668701171875, 0.0009412765502929688, -0.06170654296875, -0.013336181640625, -0.0103607177734375, -0.0009984970092773438, 0.039215087890625, 0.02874755859375, 0.0007138252258300781, -0.0184173583984375, -0.0196075439453125, 0.007732391357421875, -0.0193939208984375, 0.0557861328125, -0.01476287841796875, -0.06207275390625, 0.043609619140625, -0.0261077880859375, 0.047088623046875, -0.032073974609375, -0.031280517578125, 0.06475830078125, -0.04791259765625, 0.0574951171875, 0.038665771484375, -0.0220947265625, 0.0197601318359375, 0.044097900390625, 0.00592803955078125, 0.0219879150390625, 0.0068511962890625, -0.0025691986083984375, 0.02264404296875, 0.004978179931640625, 0.009796142578125, 0.003997802734375, 0.0352783203125, -0.00980377197265625, 0.017059326171875, 0.0259857177734375, -0.0252227783203125, -0.01212310791015625, 0.0271148681640625, 0.0103607177734375, -0.059661865234375, 0.0011844635009765625, -0.00971221923828125, 0.0188446044921875, 0.041656494140625, 0.03802490234375, -0.006099700927734375, 0.00007003545761108398, -0.0186309814453125, -0.021331787109375, -0.00450897216796875, 0.003719329833984375, 0.0341796875, 0.0028285980224609375, -0.02032470703125, 0.0236053466796875, 0.007381439208984375, -0.06787109375, 0.0251007080078125, 0.04901123046875, 0.0009102821350097656, -0.02911376953125, 0.0174102783203125, 0.041595458984375, -0.01110076904296875, -0.046539306640625, 0.09442138671875, 0.0216827392578125, -0.016876220703125, -0.03607177734375, 0.0299224853515625, 0.033599853515625, 0.0245361328125, 0.0017099380493164062, -0.0258331298828125, 0.00015819072723388672, 0.00772857666015625, -0.024169921875, -0.024444580078125, -0.00600433349609375, 0.0149383544921875, 0.005596160888671875, 0.008209228515625, -0.00957489013671875, -0.0297088623046875, -0.03790283203125, -0.032958984375, 0.0401611328125, 0.01517486572265625, -0.0299530029296875, 0.0181732177734375, 0.00554656982421875, -0.0005769729614257812, 0.031768798828125, 0.015167236328125, -0.0117034912109375, 0.0004382133483886719, 0.026580810546875, -0.01294708251953125, -0.00738525390625, 0.0249481201171875, -0.0394287109375, 0.11480712890625, 0.007678985595703125, 0.00018107891082763672, 0.01442718505859375, 0.055145263671875, -0.03106689453125, 0.031890869140625, -0.0157928466796875, 0.03924560546875, -0.0173187255859375, -0.00916290283203125, -0.022735595703125, 0.00507354736328125, -0.00024259090423583984, 0.017578125, -0.0038318634033203125, -0.004756927490234375, -0.02197265625, -0.032745361328125, 0.038970947265625, 0.051025390625, 0.027069091796875, 0.01248931884765625, -0.0127716064453125, -0.00372314453125, -0.00792694091796875, -0.0013179779052734375, 0.0307464599609375, -0.00007081031799316406, -0.054473876953125, 0.0207061767578125, 0.040924072265625, 0.055267333984375, 0.0019588470458984375, -0.0194549560546875, -0.0197906494140625, -0.0081787109375, 0.0289154052734375, -0.00405120849609375, -0.007556915283203125, 0.0712890625, 0.07781982421875, -0.06207275390625, -0.0312347412109375, -0.036651611328125, 0.0599365234375, 0.0386962890625, 0.0096588134765625, 0.0178680419921875, 0.01201629638671875, 0.006252288818359375, -0.04180908203125, 0.007568359375, 0.00864410400390625, -0.0190582275390625, 0.022674560546875, 0.02166748046875, 0.0291748046875, -0.023162841796875, -0.00223541259765625, 0.043609619140625, 0.045928955078125, -0.025604248046875, -0.00733184814453125, 0.00812530517578125, -0.020050048828125, -0.0244903564453125, -0.04095458984375, -0.0307159423828125, 0.01186370849609375, 0.0253143310546875, 0.0008692741394042969, -0.01593017578125, 0.01036834716796875, 0.0045928955078125, 0.0007615089416503906, -0.002918243408203125, -0.002689361572265625, -0.005466461181640625, -0.012908935546875, -0.0036869049072265625, -0.007808685302734375, 0.0275726318359375, 0.023773193359375, 0.001758575439453125, -0.024322509765625, -0.002307891845703125, 0.0029201507568359375, 0.051361083984375, -0.01346588134765625, -0.00763702392578125, -0.033905029296875, -0.06475830078125, 0.002162933349609375, 0.02557373046875, 0.040283203125, 0.022308349609375, 0.046295166015625, 0.0343017578125, 0.00406646728515625, 0.00797271728515625, 0.0251922607421875, -0.00997161865234375, 0.0216827392578125, 0.01287841796875, 0.0300140380859375, 0.03155517578125, 0.0014772415161132812, -0.038604736328125, 0.09942626953125, 0.0032176971435546875, -0.0312042236328125, 0.004413604736328125, 0.0036220550537109375, -0.05694580078125, 0.0088043212890625, -0.022705078125, 0.04632568359375, -0.0003685951232910156, -0.043182373046875, -0.0037078857421875, 0.0038318634033203125, -0.050567626953125, -0.00039386749267578125, 0.03204345703125, -0.03704833984375, 0.0193939208984375, 0.009368896484375, 0.0028095245361328125, 0.03662109375, -0.017303466796875, 0.005817413330078125, 0.059173583984375, 0.0220184326171875, 0.0281982421875, 0.00921630859375, 0.018463134765625, 0.02972412109375, 0.01666259765625, 0.0253753662109375, -0.04107666015625, 0.0217742919921875, 0.0333251953125, 0.0146331787109375, 0.033905029296875, -0.0304718017578125, 0.002655029296875, 0.0189666748046875, -0.0192413330078125, 0.0138397216796875, -0.004077911376953125, -0.0224151611328125, 0.02471923828125, 0.0278472900390625, -0.0204620361328125, 0.032623291015625, -0.0294952392578125, 0.0020656585693359375, -0.04925537109375, -0.0005598068237304688, -0.0191650390625, -0.0110015869140625, -0.0015039443969726562, -0.0143280029296875, 0.0262603759765625, 0.0006561279296875, -0.02716064453125, 0.038360595703125, 0.0099945068359375, 0.0148468017578125, 0.0195770263671875, -0.0280609130859375, 0.0237884521484375, 0.031280517578125, -0.00034737586975097656, -0.02056884765625, 0.0250396728515625, -0.021636962890625, 0.02716064453125, 0.005886077880859375, 0.0543212890625, -0.0019054412841796875, 0.052886962890625, -0.0179290771484375, -0.03955078125, 0.0003342628479003906, 0.0158538818359375, 0.0016994476318359375, -0.039398193359375, -0.005451202392578125, -0.0531005859375, 0.004314422607421875, -0.0274810791015625, -0.0295257568359375, -0.004558563232421875, 0.0111236572265625, 0.0043792724609375, -0.00724029541015625, -0.0147857666015625, -0.0235748291015625, -0.005161285400390625, 0.00746917724609375, -0.036865234375, 0.057891845703125, -0.0211334228515625, -0.04541015625, -0.01010894775390625, -0.03436279296875, 0.01153564453125, 0.0362548828125, -0.03631591796875, -0.017669677734375, -0.05889892578125, -0.006927490234375, -0.0633544921875, 0.00147247314453125, 0.031341552734375, 0.0026950836181640625, -0.0106048583984375, -0.04559326171875, -0.0116119384765625, 0.015594482421875, -0.03533935546875, -0.00695037841796875, 0.0046539306640625, -0.022186279296875, -0.0055694580078125, -0.03192138671875, 0.03204345703125, -0.058319091796875, -0.06768798828125, 0.0132293701171875, -0.06317138671875, -0.047332763671875, -0.054443359375, -0.049652099609375, 0.048187255859375, 0.0138092041015625, -0.035308837890625, -0.028656005859375, 0.032989501953125, 0.007770538330078125, -0.02252197265625, 0.003429412841796875, 0.0010805130004882812, -0.01049041748046875, -0.0151214599609375, 0.01727294921875, 0.0802001953125, -0.016326904296875, 0.050933837890625, 0.0085906982421875, 0.03289794921875, 0.00978851318359375, -0.00469207763671875, 0.0133056640625, 0.01396942138671875, -0.007396697998046875, 0.0162506103515625, -0.052154541015625, -0.0300445556640625, -0.034881591796875, 0.02459716796875, 0.007022857666015625, -0.014923095703125, -0.066650390625, -0.018157958984375, 0.027130126953125, 0.08831787109375, 0.0170440673828125, -0.0323486328125, 0.02142333984375, 0.002323150634765625, -0.02191162109375, 0.006038665771484375, 0.004070281982421875, -0.0275115966796875, -0.018646240234375, 0.004665374755859375, -0.043853759765625, -0.03533935546875, 0.01104736328125, -0.06573486328125, 0.0004169940948486328, -0.035125732421875, -0.016387939453125, 0.001392364501953125, -0.00928497314453125, 0.049102783203125, -0.033905029296875, -0.0120849609375, -0.004932403564453125, 0.024505615234375, 0.01399993896484375, -0.026336669921875, -0.046630859375, -0.036529541015625, 0.033966064453125, 0.0260467529296875, -0.00934600830078125, -0.005077362060546875, 0.00815582275390625, 0.01284027099609375, -0.00141143798828125, 0.0233306884765625, -0.0001608133316040039, 0.01445770263671875, -0.029388427734375, 0.023040771484375, -0.017425537109375, 0.06793212890625, 0.01325225830078125, -0.037200927734375, -0.00846099853515625, 0.03021240234375, -0.03375244140625, -0.01132965087890625, -0.0355224609375, -0.0189666748046875, 0.002010345458984375, -0.020599365234375, 0.02679443359375, -0.04278564453125, 0.0088958740234375, -0.0416259765625, 0.01123046875, 0.02618408203125 ]
91397fba6b3c036ce3de6cc35ca1274228fa5cf0
Wordpress Stackexchange Q: Forbidden 403 error, permission to access, unable to read htaccess Recently clean-installed (with exception of themes and content/upload folders) an old wordpress to the latest Wordpress 4.2.2. I continue to get this error below whenever I load files such as style.css in the web browser manually. I've tried: * *changing this file's permission to 644, 755, and 777 *changing .c to .so in the .htaccess *changing htaccess permission from 644 to 755 to even 777. *adding mod_sec clause to htaccess None of the above works for me. This error still occurs? I'm running PHP 5.4.43 and Wordpress 4.2.2. Forbidden You don't have permission to access /blog/wp-content/themes/wp-knowledge-base/style.css on this server. Server unable to read htaccess file, denying access to be safe Apache/2.4.12 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 Server at subdomain.domain.com Port 80 A: Your .htaccess is not readable (like the error noticed). So make your .htaccess readable using permission 644. Source Now check again, perhaps now your stylesheet will be loaded? If not, check if the stylesheet file is readable. May this not be the cause, check the owner of the files.
Q: Forbidden 403 error, permission to access, unable to read htaccess Recently clean-installed (with exception of themes and content/upload folders) an old wordpress to the latest Wordpress 4.2.2. I continue to get this error below whenever I load files such as style.css in the web browser manually. I've tried: * *changing this file's permission to 644, 755, and 777 *changing .c to .so in the .htaccess *changing htaccess permission from 644 to 755 to even 777. *adding mod_sec clause to htaccess None of the above works for me. This error still occurs? I'm running PHP 5.4.43 and Wordpress 4.2.2. Forbidden You don't have permission to access /blog/wp-content/themes/wp-knowledge-base/style.css on this server. Server unable to read htaccess file, denying access to be safe Apache/2.4.12 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 Server at subdomain.domain.com Port 80 A: Your .htaccess is not readable (like the error noticed). So make your .htaccess readable using permission 644. Source Now check again, perhaps now your stylesheet will be loaded? If not, check if the stylesheet file is readable. May this not be the cause, check the owner of the files. A: * *What's in your Apache logs? Maybe more info about the error. *Set a 755 permission on the the public_html directory *Who's your hosting provider? The issue might be permissions that you, as a user, cannot change yourself (contact hosting support). A: You can give permissions as follow to allow permission particular folders and sub folders recursively. chmod -R 755 /blog
wordpress
{ "language": "en", "length": 242, "provenance": "stackexchange_00019.jsonl.gz:457421", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/194997" }
[ 0.0154876708984375, 0.0011043548583984375, -0.0216064453125, -0.035308837890625, 0.0031890869140625, -0.01398468017578125, -0.0128936767578125, 0.0008673667907714844, 0.0423583984375, -0.0123443603515625, -0.060638427734375, -0.003299713134765625, -0.01338958740234375, -0.0211944580078125, 0.006160736083984375, -0.03790283203125, 0.024566650390625, -0.02423095703125, 0.00881195068359375, -0.0022716522216796875, -0.00836944580078125, 0.0257110595703125, 0.0087432861328125, -0.015625, -0.0164642333984375, 0.01042938232421875, 0.06671142578125, -0.00705718994140625, -0.01334381103515625, -0.0162811279296875, 0.00791168212890625, -0.0015354156494140625, 0.01206207275390625, 0.085205078125, -0.0831298828125, -0.0308685302734375, 0.007965087890625, 0.0241851806640625, -0.01398468017578125, 0.06005859375, -0.012939453125, 0.01233673095703125, 0.01385498046875, 0.045745849609375, 0.0036754608154296875, -0.06982421875, 0.019500732421875, -0.057098388671875, 0.017913818359375, 0.049407958984375, -0.004268646240234375, 0.0260772705078125, -0.01274871826171875, 0.0167694091796875, -0.0196380615234375, -0.0200042724609375, 0.038848876953125, 0.03558349609375, 0.012908935546875, -0.072021484375, -0.042266845703125, 0.041259765625, 0.0294647216796875, 0.042755126953125, 0.0020427703857421875, -0.01039886474609375, 0.024749755859375, 0.0260772705078125, -0.02960205078125, -0.007007598876953125, 0.02484130859375, -0.0130767822265625, 0.04742431640625, -0.051910400390625, 0.01085662841796875, -0.0013093948364257812, -0.012725830078125, 0.0027027130126953125, 0.030609130859375, -0.03253173828125, -0.013275146484375, -0.022430419921875, -0.05682373046875, 0.002124786376953125, -0.013885498046875, 0.016448974609375, -0.01248931884765625, -0.0087890625, 0.0189971923828125, -0.006664276123046875, -0.00982666015625, -0.01342010498046875, 0.031951904296875, 0.004993438720703125, -0.0288238525390625, -0.03759765625, 0.0201416015625, 0.0628662109375, 0.01325225830078125, 0.0043792724609375, -0.0180511474609375, -0.0267333984375, -0.0406494140625, -0.0205078125, -0.006778717041015625, 0.03533935546875, 0.00860595703125, 0.05987548828125, 0.03717041015625, 0.0258331298828125, -0.0016107559204101562, -0.021514892578125, -0.0108489990234375, -0.036834716796875, -0.021820068359375, 0.060821533203125, 0.011199951171875, -0.0217742919921875, -0.01136016845703125, -0.0092315673828125, 0.0093231201171875, 0.0279083251953125, -0.0085601806640625, 0.006999969482421875, 0.01045989990234375, 0.022216796875, -0.01386260986328125, -0.0183868408203125, 0.007205963134765625, 0.0169677734375, 0.0006899833679199219, -0.00421142578125, -0.0379638671875, 0.004886627197265625, -0.01433563232421875, -0.01190948486328125, 0.041656494140625, -0.04876708984375, -0.03692626953125, 0.0350341796875, 0.01494598388671875, -0.0323486328125, 0.0030422210693359375, -0.027008056640625, -0.01055145263671875, 0.03448486328125, 0.046783447265625, 0.01505279541015625, -0.0389404296875, -0.11614990234375, 0.054962158203125, -0.0001112818717956543, 0.07171630859375, 0.00012791156768798828, -0.0208587646484375, -0.04583740234375, 0.05059814453125, -0.05987548828125, -0.039306640625, -0.07537841796875, 0.05859375, 0.0240478515625, 0.0166015625, 0.006072998046875, 0.01511383056640625, -0.04547119140625, -0.0850830078125, 0.0004780292510986328, 0.0256195068359375, -0.0264434814453125, 0.004917144775390625, -0.0528564453125, -0.003208160400390625, 0.0018215179443359375, 0.0009450912475585938, 0.05584716796875, -0.001018524169921875, -0.018768310546875, 0.01006317138671875, 0.059326171875, 0.0225830078125, -0.007564544677734375, 0.049407958984375, 0.0007581710815429688, -0.032135009765625, -0.0110626220703125, 0.0087890625, 0.005550384521484375, 0.0204315185546875, 0.005523681640625, 0.018890380859375, 0.005657196044921875, -0.01071929931640625, 0.034576416015625, -0.0093841552734375, -0.04010009765625, -0.0072479248046875, 0.005809783935546875, -0.01509857177734375, -0.0175018310546875, -0.0130462646484375, -0.00363922119140625, -0.01036834716796875, -0.0006418228149414062, -0.0219268798828125, -0.0257110595703125, 0.0033016204833984375, 0.01055145263671875, 0.00812530517578125, 0.0252532958984375, 0.004795074462890625, 0.0094757080078125, -0.01837158203125, -0.006076812744140625, -0.00460052490234375, 0.022369384765625, -0.0255889892578125, 0.0772705078125, 0.0028209686279296875, 0.0364990234375, -0.0008673667907714844, -0.044189453125, 0.03515625, -0.01100921630859375, -0.022064208984375, -0.0167236328125, -0.00920867919921875, -0.0018033981323242188, 0.003932952880859375, 0.01015472412109375, 0.040802001953125, -0.0013370513916015625, 0.0231170654296875, 0.052215576171875, -0.0135650634765625, -0.0119781494140625, -0.03350830078125, -0.067626953125, 0.00453948974609375, 0.048309326171875, 0.03778076171875, -0.0024051666259765625, -0.0261077880859375, -0.060394287109375, 0.04486083984375, -0.0182647705078125, 0.01514434814453125, -0.036468505859375, -0.003936767578125, -0.007312774658203125, 0.017578125, -0.0240020751953125, 0.052001953125, 0.0198516845703125, -0.027618408203125, 0.0382080078125, -0.01580810546875, -0.019927978515625, -0.05621337890625, 0.0546875, 0.01305389404296875, -0.00205230712890625, -0.01325225830078125, -0.003078460693359375, 0.034332275390625, -0.01105499267578125, 0.007381439208984375, -0.0045623779296875, -0.0111846923828125, 0.01800537109375, 0.0106964111328125, -0.07830810546875, -0.004993438720703125, 0.0287933349609375, 0.04449462890625, -0.0004062652587890625, -0.02239990234375, -0.01104736328125, -0.0017881393432617188, 0.01788330078125, -0.0238494873046875, -0.0020599365234375, -0.07855224609375, -0.0107574462890625, 0.0020503997802734375, -0.041412353515625, -0.0198516845703125, 0.005298614501953125, 0.0201873779296875, 0.017120361328125, 0.043609619140625, 0.02252197265625, -0.0031890869140625, 0.0167694091796875, -0.0296478271484375, -0.0106201171875, 0.021942138671875, -0.0250396728515625, 0.03082275390625, -0.01355743408203125, -0.00024127960205078125, 0.048187255859375, 0.01287841796875, -0.005191802978515625, 0.0243988037109375, -0.0168304443359375, 0.0197601318359375, 0.0131988525390625, -0.00008231401443481445, 0.018829345703125, -0.058197021484375, 0.016143798828125, 0.0307159423828125, -0.00533294677734375, 0.03472900390625, -0.00865936279296875, -0.0009417533874511719, 0.01329803466796875, -0.07537841796875, -0.10235595703125, -0.0302581787109375, -0.054443359375, -0.0201416015625, -0.017059326171875, -0.0416259765625, 0.01219940185546875, 0.0016765594482421875, -0.0017719268798828125, -0.0118865966796875, -0.0212554931640625, -0.06427001953125, -0.07965087890625, -0.07794189453125, -0.038970947265625, -0.0162353515625, -0.002338409423828125, -0.0096282958984375, 0.033721923828125, -0.03289794921875, -0.04742431640625, -0.053619384765625, -0.0245361328125, 0.00533294677734375, -0.036773681640625, -0.045196533203125, -0.0015325546264648438, 0.019805908203125, -0.01434326171875, 0.017608642578125, 0.01386260986328125, 0.00344085693359375, -0.0167236328125, -0.0233612060546875, -0.040283203125, 0.0021076202392578125, 0.04052734375, 0.0010499954223632812, -0.050079345703125, 0.03558349609375, -0.064697265625, -0.056427001953125, -0.0151519775390625, -0.06451416015625, -0.0009107589721679688, 0.03753662109375, 0.00772857666015625, -0.02703857421875, 0.01203155517578125, 0.03704833984375, 0.028717041015625, 0.0022125244140625, -0.0043792724609375, 0.0689697265625, -0.003055572509765625, 0.01152801513671875, -0.0477294921875, 0.044464111328125, -0.0161895751953125, 0.00006729364395141602, 0.0128173828125, -0.01123046875, -0.0187835693359375, 0.00447845458984375, -0.055328369140625, -0.055999755859375, 0.042144775390625, -0.04718017578125, 0.0255279541015625, -0.06158447265625, -0.0271148681640625, -0.0284881591796875, 0.09429931640625, 0.029083251953125, -0.023162841796875, -0.012786865234375, 0.013824462890625, -0.033477783203125, -0.037628173828125, 0.00010573863983154297, 0.01068878173828125, -0.05401611328125, -0.005329132080078125, -0.01953125, -0.0180206298828125, -0.01499176025390625, -0.0687255859375, -0.03076171875, -0.040802001953125, 0.02801513671875, 0.00455474853515625, -0.0299072265625, 0.0216827392578125, -0.01308441162109375, -0.01384735107421875, -0.0069580078125, -0.0006952285766601562, -0.1324462890625, -0.043060302734375, 0.0292816162109375, 0.10223388671875, -0.0290069580078125, 0.0279541015625, -0.0147247314453125, 0.09075927734375, 0.00014078617095947266, 0.00832366943359375, 0.0001971721649169922, -0.00930023193359375, 0.00815582275390625, 0.022186279296875, -0.00447845458984375, -0.0103912353515625, -0.01556396484375, -0.0195465087890625, -0.01508331298828125, 0.021331787109375, -0.01654052734375, 0.01214599609375, 0.01180267333984375, -0.0024509429931640625, -0.03704833984375, -0.0307464599609375, -0.003887176513671875, 0.00969696044921875, 0.0002665519714355469, -0.007221221923828125, -0.036865234375, -0.025390625, 0.038543701171875, -0.0191192626953125, 0.0179290771484375, -0.00707244873046875, 0.044219970703125, 0.006656646728515625, -0.033966064453125, 0.02874755859375, 0.010772705078125, 0.0262908935546875, 0.004619598388671875, 0.055084228515625, 0.0224456787109375, -0.006488800048828125, 0.04620361328125, -0.0005412101745605469, -0.035675048828125, 0.02880859375, 0.003978729248046875, 0.02825927734375, -0.013946533203125, -0.01377105712890625, 0.0149688720703125, 0.0124053955078125, 0.05560302734375, 0.040771484375, -0.0274505615234375, 0.0198211669921875, -0.000720977783203125, 0.0218963623046875, -0.05340576171875, -0.00028228759765625, -0.060089111328125, 0.0285491943359375, -0.0369873046875, 0.038970947265625, -0.01459503173828125, 0.01194000244140625, 0.028289794921875, 0.0187530517578125, -0.0246429443359375, -0.0181884765625, 0.01215362548828125, 0.0008225440979003906, 0.0063018798828125, 0.018890380859375, -0.0215301513671875, -0.037811279296875, -0.0015087127685546875, 0.039276123046875, -0.0037937164306640625, -0.035552978515625, -0.0237579345703125, 0.0019483566284179688, -0.04107666015625, 0.0082855224609375, -0.01166534423828125, 0.005641937255859375, -0.01428985595703125, -0.01107025146484375, 0.0181427001953125, 0.0152130126953125, -0.03741455078125, -0.01242828369140625, 0.08392333984375, 0.0240478515625, -0.0130157470703125, -0.0036449432373046875, 0.041534423828125, 0.0245361328125, -0.00914764404296875, -0.000980377197265625, -0.01007843017578125, 0.0212554931640625, 0.0096282958984375, -0.0167388916015625, 0.018585205078125, 0.02655029296875, -0.0084228515625, 0.08624267578125, -0.053558349609375, -0.0241241455078125, 0.03118896484375, 0.07611083984375, -0.033172607421875, -0.03558349609375, 0.034912109375, -0.0249481201171875, -0.01348876953125, 0.01503753662109375, -0.05010986328125, -0.044891357421875, -0.0251007080078125, -0.01514434814453125, 0.030853271484375, -0.017364501953125, 0.0010423660278320312, 0.0264892578125, 0.0016164779663085938, 0.0310211181640625, 0.033905029296875, -0.004230499267578125, -0.00754547119140625, -0.00843048095703125, 0.0010347366333007812, -0.015960693359375, -0.00653839111328125, -0.058380126953125, -0.03369140625, -0.01678466796875, -0.0014019012451171875, 0.025970458984375, 0.00031828880310058594, -0.00977325439453125, -0.0034770965576171875, -0.0194549560546875, 0.0033779144287109375, 0.01293182373046875, 0.023834228515625, -0.006710052490234375, -0.028350830078125, -0.01557159423828125, -0.034637451171875, -0.03680419921875, -0.04022216796875, -0.03375244140625, -0.0247802734375, -0.0014047622680664062, -0.007442474365234375, 0.00882720947265625, -0.011077880859375, -0.00565338134765625, -0.02752685546875, 0.0352783203125, 0.0283660888671875, 0.045440673828125, -0.07012939453125, 0.0728759765625, 0.034942626953125, -0.0098876953125, 0.00342559814453125, 0.06524658203125, 0.035614013671875, -0.004924774169921875, 0.01224517822265625, -0.03173828125, -0.035491943359375, -0.04583740234375, 0.007694244384765625, 0.02947998046875, 0.0758056640625, -0.00992584228515625, 0.00995635986328125, -0.0313720703125, 0.001338958740234375, -0.016815185546875, 0.017578125, -0.041748046875, -0.0238494873046875, -0.007160186767578125, 0.01568603515625, 0.11334228515625, -0.00719451904296875, -0.0165557861328125, 0.0131072998046875, -0.04840087890625, 0.069580078125, 0.024078369140625, -0.03741455078125, 0.0428466796875, 0.061248779296875, 0.01020050048828125, 0.061676025390625, -0.008758544921875, 0.033843994140625, 0.06451416015625, 0.0257720947265625, -0.00849151611328125, -0.01412200927734375, 0.0181732177734375, 0.0037136077880859375, -0.007904052734375, -0.004974365234375, -0.01386260986328125, 0.0291290283203125, 0.055145263671875, 0.07275390625, -0.058013916015625, 0.005031585693359375, -0.0005769729614257812, -0.038818359375, 0.0469970703125, 0.001735687255859375, -0.00335693359375, -0.04119873046875, 0.035186767578125, -0.006351470947265625, -0.0227508544921875, -0.002643585205078125, 0.001087188720703125, 0.0009760856628417969, 0.0237884521484375, 0.01451873779296875, 0.003833770751953125, -0.0115814208984375, -0.033233642578125, 0.0199127197265625, 0.0013580322265625, -0.01385498046875, 0.0160064697265625, -0.0035800933837890625, -0.0167236328125, -0.0302276611328125, 0.01387786865234375, -0.006927490234375, -0.01313018798828125, -0.00638580322265625, 0.043548583984375, -0.0306549072265625, 0.034454345703125, -0.030853271484375, 0.051605224609375, -0.0024585723876953125, 0.03558349609375, 0.035675048828125, -0.01399993896484375, 0.0192108154296875, 0.0261688232421875, -0.0048065185546875, 0.01271820068359375, 0.032623291015625, -0.030517578125, 0.010986328125, 0.003269195556640625, 0.01422119140625, -0.032196044921875, -0.01018524169921875, 0.029449462890625, -0.0218353271484375, 0.00024247169494628906, 0.003570556640625, 0.03533935546875, -0.037506103515625, 0.0243072509765625, 0.014617919921875, 0.032989501953125, -0.0234832763671875, 0.01934814453125, -0.00998687744140625, 0.032562255859375, -0.05572509765625, 0.00887298583984375, 0.07086181640625, 0.0041961669921875, -0.0252685546875, -0.01605224609375, -0.01495361328125, 0.0282440185546875, 0.0016231536865234375, -0.01617431640625, -0.036163330078125, -0.0114898681640625, -0.023773193359375, 0.044769287109375, 0.044097900390625, 0.003932952880859375, -0.037384033203125, -0.0154876708984375, 0.02386474609375, 0.0408935546875, 0.01007843017578125, 0.030914306640625, -0.032257080078125, -0.0209808349609375, -0.02734375, -0.021728515625, 0.02215576171875, -0.0266876220703125, -0.06671142578125, -0.0166473388671875, -0.0188751220703125, -0.0526123046875, 0.0094757080078125, 0.0220184326171875, -0.0797119140625, 0.0226593017578125, 0.03924560546875, 0.01000213623046875, -0.01212310791015625, 0.05218505859375, 0.0224609375, -0.0297088623046875, -0.0174560546875, -0.030029296875, 0.044342041015625, -0.0012683868408203125, -0.01319122314453125, -0.04815673828125, 0.005794525146484375, 0.0126190185546875, -0.047882080078125, -0.0279541015625, 0.0287933349609375, -0.040130615234375, 0.0244293212890625, 0.03955078125, 0.04681396484375, 0.0113067626953125, 0.01058197021484375, -0.0235595703125, 0.0204010009765625, -0.02301025390625, -0.015625, 0.0021724700927734375, -0.026214599609375, -0.01190185546875, -0.00817108154296875, -0.0017251968383789062, 0.0206451416015625, 0.01506805419921875, -0.04681396484375, -0.01328277587890625, 0.0265655517578125, -0.01288604736328125, 0.00264739990234375, 0.045623779296875, -0.00182342529296875, -0.0016965866088867188, -0.029083251953125, -0.01103973388671875, 0.02301025390625, 0.00005751848220825195, -0.0028228759765625, 0.022125244140625, 0.041473388671875, 0.001987457275390625, -0.005767822265625, 0.038482666015625, -0.031951904296875, 0.0191802978515625, -0.033233642578125, -0.05712890625, 0.0015134811401367188, 0.0472412109375, -0.0082550048828125, -0.0038433074951171875, -0.0143280029296875, -0.0017156600952148438, -0.0006809234619140625, 0.002262115478515625, 0.016998291015625, -0.018798828125, -0.0081939697265625, -0.0136260986328125, 0.00836944580078125, -0.002010345458984375, -0.00737762451171875, -0.020416259765625, 0.044464111328125, 0.01377105712890625, 0.0182037353515625, 0.0182037353515625, 0.005008697509765625, 0.043487548828125, 0.037689208984375, -0.021759033203125, -0.04290771484375, 0.02642822265625, -0.0244140625, 0.043853759765625, -0.0452880859375, -0.0250396728515625, -0.0218353271484375, -0.0040740966796875, -0.019989013671875, 0.039886474609375, -0.0232696533203125, -0.0206298828125, 0.0171966552734375, 0.0027294158935546875, 0.0115203857421875, 0.035552978515625, 0.0003552436828613281, 0.01349639892578125, -0.08612060546875, -0.043975830078125, -0.0382080078125, 0.0538330078125, -0.00978851318359375, 0.0859375, -0.038360595703125, 0.0247039794921875, -0.005390167236328125, 0.006439208984375, -0.022186279296875, -0.02459716796875, 0.043975830078125, -0.006351470947265625, -0.01401519775390625, -0.00445556640625, -0.0445556640625, 0.0601806640625, -0.00263214111328125, -0.006561279296875, 0.025848388671875, 0.0191802978515625, -0.006099700927734375, 0.00839996337890625, 0.006183624267578125, -0.054168701171875, -0.096923828125, -0.08331298828125, 0.0367431640625, -0.024658203125, -0.031341552734375, -0.06494140625, 0.0174407958984375, -0.01708984375, -0.00589752197265625, 0.0280609130859375, -0.017730712890625, 0.0216827392578125, 0.0181732177734375, -0.0419921875, -0.0125274658203125, -0.00010073184967041016, -0.0242462158203125, 0.00872802734375, -0.0016918182373046875, 0.021514892578125, -0.0303802490234375, -0.01763916015625, 0.024566650390625, -0.0006017684936523438, 0.0377197265625, -0.007076263427734375, -0.0013790130615234375, 0.005603790283203125, 0.0025081634521484375, 0.00246429443359375, -0.021881103515625, -0.003376007080078125, -0.00846099853515625, -0.0267486572265625, 0.0179901123046875, -0.01055145263671875, -0.0157470703125, -0.0152587890625, 0.013763427734375, 0.034088134765625, 0.022979736328125, -0.0850830078125, 0.049835205078125, -0.0256500244140625, 0.06298828125, -0.01265716552734375, 0.0215606689453125, 0.0109405517578125, 0.006122589111328125, -0.055328369140625, 0.002849578857421875, -0.006992340087890625, 0.0008497238159179688, -0.007480621337890625, 0.0071258544921875, 0.0078582763671875, -0.00838470458984375, 0.033355712890625, 0.041473388671875, 0.008819580078125, 0.07794189453125, -0.028961181640625, 0.025909423828125, 0.04388427734375, -0.003612518310546875, -0.08203125, -0.07403564453125, 0.02154541015625, -0.040618896484375, -0.0211334228515625, -0.01806640625, -0.0117340087890625, -0.0107269287109375, -0.036407470703125, -0.03662109375, 0.02386474609375, 0.0022411346435546875, -0.026123046875, -0.045501708984375, -0.03765869140625, -0.019622802734375, 0.0693359375, -0.0016193389892578125, -0.0224761962890625, -0.02630615234375, 0.03546142578125, 0.02154541015625, 0.0016202926635742188, 0.0110015869140625, 0.01108551025390625, -0.046905517578125, 0.037750244140625, 0.0411376953125, 0.005397796630859375, -0.023773193359375, 0.0033473968505859375, 0.0249786376953125, 0.05767822265625, 0.00984954833984375, 0.003940582275390625, 0.033538818359375, -0.035186767578125, 0.017578125, 0.0171051025390625, -0.04168701171875, -0.046875, -0.0192108154296875, 0.032928466796875, -0.0006961822509765625, 0.0262603759765625, -0.01300811767578125, -0.07073974609375, -0.04986572265625, -0.01107025146484375, 0.01861572265625, -0.047210693359375, 0.032958984375, 0.008453369140625, -0.004486083984375, 0.0361328125, -0.0213470458984375, -0.03802490234375, 0.0100250244140625, -0.0379638671875, -0.01007843017578125, -0.068603515625, -0.00365447998046875, 0.0772705078125, -0.033538818359375, 0.0146636962890625, 0.0011539459228515625, 0.0258026123046875, 0.0391845703125, 0.01397705078125, -0.0229644775390625, -0.012298583984375, -0.02227783203125, -0.0029144287109375, 0.0007987022399902344, 0.0301971435546875, 0.0026607513427734375, -0.0114288330078125, 0.0205535888671875, -0.01134490966796875, -0.00217437744140625, -0.019256591796875, 0.02099609375, 0.004169464111328125, -0.0244598388671875, 0.03338623046875, -0.00354766845703125, -0.046844482421875, -0.0225677490234375, 0.0430908203125, 0.0124053955078125, -0.0204620361328125, 0.025543212890625, -0.00896453857421875, 0.007472991943359375, 0.035614013671875, 0.0255126953125, -0.00943756103515625, 0.0164031982421875, -0.003265380859375, 0.027374267578125, 0.00041985511779785156 ]
947960db481439787dfae0a27fef9ad65e2d51a6
Wordpress Stackexchange Q: WordPress admin menu formatting issue I'm having an issue with my admin menu in WordPress. As you can see in the image below the formatting of the menu is out of order. This happens whenever I first land on one of the admin pages but if I refresh the page the menu looks fine. I tried disabling my plugins but none of them seem to be causing the issue. A: Otto has suggested a fix in Chrome itself until the bug is resolved: * *Go to chrome://flags/#disable-slimming-paint *Enable the "Disable slimming paint" option. *Ensure that the "Enable slimming paint" option below it is not turned on. *Relaunch Chrome. If you don't want to take this approach you can fix this with CSS: function chromefix_inline_css() { wp_add_inline_style( 'wp-admin', '#adminmenu { transform: translateZ(0); }' ); } add_action('admin_enqueue_scripts', 'chromefix_inline_css'); If you just want a plugin to do it: https://github.com/raffjones/chrome-admin-menu-fix
Q: WordPress admin menu formatting issue I'm having an issue with my admin menu in WordPress. As you can see in the image below the formatting of the menu is out of order. This happens whenever I first land on one of the admin pages but if I refresh the page the menu looks fine. I tried disabling my plugins but none of them seem to be causing the issue. A: Otto has suggested a fix in Chrome itself until the bug is resolved: * *Go to chrome://flags/#disable-slimming-paint *Enable the "Disable slimming paint" option. *Ensure that the "Enable slimming paint" option below it is not turned on. *Relaunch Chrome. If you don't want to take this approach you can fix this with CSS: function chromefix_inline_css() { wp_add_inline_style( 'wp-admin', '#adminmenu { transform: translateZ(0); }' ); } add_action('admin_enqueue_scripts', 'chromefix_inline_css'); If you just want a plugin to do it: https://github.com/raffjones/chrome-admin-menu-fix
wordpress
{ "language": "en", "length": 147, "provenance": "stackexchange_00019.jsonl.gz:457499", "question_score": "25", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/195291" }
[ 0.0426025390625, 0.0027828216552734375, -0.00809478759765625, 0.0013971328735351562, 0.017547607421875, -0.03704833984375, 0.035980224609375, -0.0391845703125, -0.0241851806640625, 0.02862548828125, 0.0072784423828125, -0.0014276504516601562, -0.0093841552734375, -0.03692626953125, 0.0120391845703125, -0.028167724609375, 0.03131103515625, 0.0177154541015625, 0.04180908203125, 0.000051975250244140625, -0.021636962890625, 0.0217132568359375, 0.00830078125, 0.01081085205078125, 0.0283660888671875, -0.01861572265625, 0.0711669921875, -0.01276397705078125, 0.026947021484375, -0.0016489028930664062, 0.0260772705078125, -0.048675537109375, 0.0034732818603515625, 0.00809478759765625, 0.0006642341613769531, -0.04766845703125, -0.025390625, 0.02984619140625, 0.00617218017578125, -0.023468017578125, 0.0029163360595703125, 0.007266998291015625, 0.042816162109375, 0.0264892578125, -0.0023193359375, -0.016754150390625, -0.035064697265625, -0.06439208984375, 0.0027923583984375, -0.02874755859375, 0.02984619140625, -0.0265655517578125, 0.054290771484375, 0.0106658935546875, -0.0060577392578125, 0.0164031982421875, -0.0301513671875, -0.003131866455078125, 0.006389617919921875, 0.037322998046875, 0.01558685302734375, 0.0008797645568847656, -0.007396697998046875, -0.032135009765625, -0.0083770751953125, -0.00656890869140625, 0.0242156982421875, 0.0111541748046875, -0.0556640625, -0.01139068603515625, 0.040863037109375, -0.028533935546875, -0.002445220947265625, 0.0013914108276367188, 0.017791748046875, -0.025787353515625, -0.035919189453125, -0.023834228515625, 0.042572021484375, 0.01436614990234375, 0.056060791015625, 0.058746337890625, -0.05029296875, 0.018310546875, -0.0017719268798828125, 0.027801513671875, -0.011993408203125, -0.048431396484375, -0.005313873291015625, -0.0309906005859375, -0.0183563232421875, -0.052276611328125, -0.03228759765625, 0.037353515625, 0.01047515869140625, -0.0232696533203125, 0.0229339599609375, 0.01459503173828125, 0.01059722900390625, 0.0086212158203125, 0.02935791015625, -0.0638427734375, 0.03515625, -0.01904296875, -0.0019779205322265625, -0.0178985595703125, 0.0020294189453125, 0.00714111328125, 0.04193115234375, 0.0352783203125, -0.01276397705078125, 0.05718994140625, 0.00302886962890625, -0.02325439453125, 0.01377105712890625, -0.0215301513671875, -0.0204010009765625, 0.035125732421875, 0.01239776611328125, -0.032196044921875, -0.034088134765625, -0.00429534912109375, -0.02752685546875, 0.01276397705078125, -0.01526641845703125, -0.0172882080078125, 0.01198577880859375, 0.011138916015625, -0.0013933181762695312, 0.005771636962890625, -0.02593994140625, 0.00502777099609375, 0.08624267578125, 0.059173583984375, 0.0225677490234375, -0.0171051025390625, -0.00481414794921875, -0.0305633544921875, -0.02099609375, 0.0111083984375, 0.0192413330078125, -0.0024585723876953125, 0.024810791015625, -0.017333984375, -0.005146026611328125, 0.052978515625, 0.01102447509765625, -0.0312347412109375, 0.007465362548828125, -0.040008544921875, -0.023223876953125, -0.062408447265625, 0.045257568359375, 0.04315185546875, -0.040283203125, 0.0147705078125, 0.07867431640625, -0.0299072265625, -0.06622314453125, -0.0689697265625, -0.042755126953125, -0.00397491455078125, 0.043701171875, -0.05047607421875, -0.0282135009765625, -0.0007963180541992188, -0.041717529296875, -0.00960540771484375, 0.019622802734375, -0.020233154296875, 0.005687713623046875, 0.0289459228515625, 0.0217132568359375, 0.004825592041015625, -0.0031871795654296875, 0.00417327880859375, 0.0214080810546875, -0.0156402587890625, 0.0139312744140625, 0.0379638671875, -0.018768310546875, -0.03173828125, 0.0105743408203125, -0.0225982666015625, -0.0200653076171875, -0.00792694091796875, 0.0008721351623535156, 0.0298309326171875, 0.037567138671875, 0.0262298583984375, -0.0281219482421875, -0.0199127197265625, -0.01303863525390625, -0.00978851318359375, 0.014251708984375, 0.002094268798828125, -0.01470184326171875, 0.0242919921875, 0.00011342763900756836, -0.0298614501953125, -0.00437164306640625, 0.020965576171875, -0.0281524658203125, 0.0068511962890625, -0.08038330078125, 0.0229949951171875, -0.026275634765625, 0.04425048828125, -0.0003845691680908203, 0.03131103515625, -0.007965087890625, -0.01378631591796875, -0.0030651092529296875, -0.0250701904296875, 0.00867462158203125, 0.0169830322265625, -0.01551055908203125, 0.041168212890625, -0.0185394287109375, 0.0272216796875, -0.0016937255859375, -0.041229248046875, 0.015869140625, 0.04327392578125, -0.027099609375, 0.0167388916015625, -0.036224365234375, 0.014495849609375, -0.01308441162109375, -0.0005621910095214844, 0.05181884765625, 0.036468505859375, 0.048492431640625, 0.0718994140625, -0.0257110595703125, -0.006427764892578125, -0.015045166015625, -0.0531005859375, -0.0095977783203125, 0.03375244140625, 0.04888916015625, 0.02142333984375, 0.00878143310546875, 0.006435394287109375, 0.0843505859375, -0.03192138671875, 0.00936126708984375, -0.004840850830078125, -0.0186309814453125, -0.00428009033203125, 0.0142364501953125, -0.01373291015625, 0.0316162109375, 0.00838470458984375, 0.00762176513671875, 0.0272369384765625, -0.0243682861328125, 0.004940032958984375, -0.0177459716796875, 0.0135650634765625, 0.0048370361328125, 0.000514984130859375, 0.005191802978515625, -0.01824951171875, -0.0265655517578125, -0.0098114013671875, -0.0232086181640625, -0.0192718505859375, -0.020263671875, -0.0204925537109375, 0.057220458984375, 0.0528564453125, 0.0018796920776367188, -0.0152587890625, 0.0008044242858886719, -0.0238800048828125, -0.048065185546875, 0.01617431640625, 0.0200958251953125, -0.0290985107421875, -0.0103607177734375, 0.031097412109375, 0.006511688232421875, -0.0132293701171875, -0.00830841064453125, -0.044097900390625, 0.03106689453125, 0.02294921875, -0.003658294677734375, 0.0009946823120117188, 0.0191192626953125, -0.01336669921875, -0.0219879150390625, 0.00836181640625, -0.009490966796875, -0.0263671875, 0.026123046875, 0.012359619140625, 0.01361083984375, 0.0013990402221679688, 0.06719970703125, 0.0572509765625, -0.0157318115234375, -0.0012197494506835938, -0.009185791015625, 0.0210113525390625, 0.01348876953125, 0.0157623291015625, 0.002300262451171875, -0.0328369140625, -0.0107574462890625, -0.00037288665771484375, 0.0247650146484375, 0.025909423828125, 0.01107025146484375, -0.051025390625, -0.022125244140625, 0.0067596435546875, -0.08587646484375, -0.0672607421875, -0.08099365234375, -0.034759521484375, -0.006954193115234375, 0.04315185546875, -0.01378631591796875, 0.0114288330078125, 0.060516357421875, 0.032073974609375, 0.026763916015625, -0.0283966064453125, -0.02099609375, 0.0006341934204101562, -0.03741455078125, -0.014984130859375, 0.0041351318359375, -0.0094451904296875, 0.00815582275390625, 0.01377105712890625, -0.018280029296875, -0.072509765625, 0.003681182861328125, -0.027740478515625, -0.0032215118408203125, 0.03570556640625, 0.04827880859375, -0.03729248046875, -0.0213165283203125, 0.01169586181640625, 0.006610870361328125, 0.00234222412109375, -0.01995849609375, -0.019287109375, -0.019378662109375, -0.0187835693359375, -0.01364898681640625, -0.0029697418212890625, 0.04443359375, -0.00270843505859375, -0.023345947265625, -0.042938232421875, 0.0007200241088867188, -0.01180267333984375, -0.03240966796875, 0.0550537109375, 0.0037479400634765625, -0.01788330078125, 0.0287322998046875, -0.003932952880859375, -0.005435943603515625, -0.00274658203125, -0.0191802978515625, 0.006847381591796875, 0.0259246826171875, -0.01904296875, 0.00010955333709716797, -0.0017824172973632812, 0.0338134765625, -0.01004791259765625, -0.0219573974609375, -0.0012540817260742188, 0.00995635986328125, -0.006816864013671875, 0.004093170166015625, -0.007724761962890625, -0.03466796875, 0.02569580078125, -0.064453125, 0.021453857421875, -0.047698974609375, -0.01352691650390625, -0.01092529296875, 0.09539794921875, -0.041961669921875, -0.0210113525390625, 0.00577545166015625, 0.0171661376953125, -0.00563812255859375, -0.0036373138427734375, -0.0433349609375, -0.0106048583984375, -0.100830078125, 0.036834716796875, 0.0024967193603515625, -0.0280914306640625, -0.037567138671875, 0.04266357421875, -0.06707763671875, -0.03497314453125, 0.0138092041015625, -0.0256805419921875, -0.01348876953125, 0.01568603515625, -0.039520263671875, -0.02032470703125, -0.012115478515625, -0.0220794677734375, -0.1048583984375, -0.029937744140625, -0.039459228515625, 0.11541748046875, 0.0421142578125, -0.03985595703125, 0.007564544677734375, 0.0748291015625, 0.0260162353515625, 0.02764892578125, 0.020355224609375, -0.0012197494506835938, 0.0009694099426269531, -0.0310821533203125, 0.018096923828125, -0.043914794921875, -0.0144500732421875, 0.0001398324966430664, -0.037872314453125, -0.00830841064453125, 0.01291656494140625, -0.01366424560546875, 0.08953857421875, -0.041534423828125, -0.07171630859375, -0.028900146484375, -0.032928466796875, 0.0200347900390625, -0.0081939697265625, -0.00255584716796875, -0.044097900390625, -0.09326171875, -0.024993896484375, -0.059295654296875, -0.0244903564453125, 0.0252685546875, 0.0330810546875, 0.03173828125, 0.02099609375, 0.0198516845703125, 0.01309967041015625, 0.032440185546875, -0.020294189453125, 0.046417236328125, 0.0145416259765625, -0.025177001953125, 0.0718994140625, 0.00911712646484375, -0.021392822265625, 0.01873779296875, 0.0278472900390625, 0.01448822021484375, -0.01145172119140625, -0.0035076141357421875, 0.001888275146484375, -0.0223388671875, 0.004241943359375, 0.0030155181884765625, -0.006381988525390625, -0.024658203125, 0.035491943359375, 0.059326171875, -0.059112548828125, -0.06341552734375, -0.0301361083984375, 0.0004849433898925781, -0.038360595703125, 0.0341796875, 0.03692626953125, -0.0208892822265625, 0.033843994140625, 0.042449951171875, -0.0195770263671875, 0.0017147064208984375, 0.0139617919921875, -0.0227203369140625, 0.0269622802734375, -0.0282440185546875, -0.03399658203125, -0.0057220458984375, -0.0203704833984375, 0.09710693359375, 0.033538818359375, -0.0206298828125, -0.0177459716796875, -0.0019083023071289062, 0.039459228515625, -0.02178955078125, 0.040618896484375, 0.020751953125, -0.01971435546875, 0.01092529296875, -0.036468505859375, 0.0224151611328125, -0.01442718505859375, -0.0189666748046875, 0.05035400390625, 0.0114593505859375, 0.00136566162109375, 0.021728515625, 0.050994873046875, 0.0179290771484375, 0.027374267578125, -0.007404327392578125, -0.0292816162109375, -0.040557861328125, 0.0548095703125, 0.037841796875, -0.055023193359375, 0.014129638671875, 0.0284576416015625, 0.0282745361328125, -0.021636962890625, -0.004917144775390625, -0.001537322998046875, 0.01910400390625, 0.01776123046875, 0.0079498291015625, 0.01422882080078125, 0.00473785400390625, -0.0167388916015625, 0.0172576904296875, -0.03900146484375, -0.06134033203125, -0.0159759521484375, 0.0048065185546875, 0.0180511474609375, -0.0335693359375, -0.035430908203125, 0.05859375, -0.021209716796875, 0.0244140625, -0.01467132568359375, -0.04071044921875, 0.04248046875, 0.039703369140625, -0.0260467529296875, -0.02911376953125, -0.0401611328125, -0.053131103515625, -0.031219482421875, 0.0115509033203125, 0.0234375, 0.0006470680236816406, -0.04327392578125, -0.0235443115234375, -0.031982421875, 0.064208984375, -0.06268310546875, 0.0211639404296875, 0.0025615692138671875, 0.0111236572265625, -0.0430908203125, -0.01293182373046875, -0.06536865234375, -0.0278778076171875, -0.07562255859375, -0.03582763671875, -0.03192138671875, 0.025665283203125, 0.01090240478515625, 0.0144500732421875, 0.01108551025390625, 0.0008234977722167969, -0.03289794921875, 0.0455322265625, 0.0501708984375, 0.09686279296875, -0.0256805419921875, 0.033935546875, 0.01447296142578125, 0.0003337860107421875, -0.005947113037109375, 0.0209503173828125, 0.0056304931640625, -0.0028553009033203125, 0.013153076171875, 0.0072784423828125, -0.01947021484375, -0.002544403076171875, -0.02313232421875, -0.0220794677734375, 0.04119873046875, -0.01129150390625, 0.038330078125, -0.005748748779296875, 0.0171356201171875, -0.03631591796875, -0.01433563232421875, -0.04632568359375, 0.0197296142578125, -0.020294189453125, 0.00435638427734375, 0.0521240234375, 0.0177459716796875, -0.04498291015625, 0.01477813720703125, 0.026611328125, 0.031341552734375, -0.01210784912109375, -0.01371002197265625, 0.03521728515625, 0.0002849102020263672, 0.031402587890625, 0.01395416259765625, 0.0039043426513671875, 0.0294189453125, -0.052734375, -0.026336669921875, 0.061004638671875, 0.0186920166015625, -0.0017862319946289062, -0.042633056640625, 0.0343017578125, -0.007579803466796875, -0.01885986328125, 0.029541015625, 0.09954833984375, 0.07684326171875, -0.1180419921875, 0.01360321044921875, 0.01215362548828125, -0.0240631103515625, 0.0567626953125, -0.0025196075439453125, -0.014129638671875, -0.034332275390625, 0.060028076171875, -0.0263671875, 0.00179290771484375, 0.032318115234375, -0.01490020751953125, -0.01445770263671875, 0.00469207763671875, 0.0084381103515625, 0.00888824462890625, -0.00406646728515625, -0.0345458984375, -0.012603759765625, -0.00649261474609375, 0.02581787109375, -0.005214691162109375, -0.0208587646484375, -0.0272674560546875, 0.0010118484497070312, -0.003204345703125, -0.0355224609375, -0.016571044921875, 0.03668212890625, 0.004329681396484375, -0.0118255615234375, 0.052978515625, -0.031463623046875, 0.0285491943359375, -0.0030269622802734375, 0.0031528472900390625, 0.046661376953125, -0.0228118896484375, -0.00798797607421875, 0.016754150390625, -0.0271759033203125, -0.00860595703125, 0.00843048095703125, -0.00041413307189941406, -0.00408935546875, -0.01151275634765625, 0.07061767578125, -0.030853271484375, -0.0029754638671875, 0.0079345703125, -0.007534027099609375, 0.026702880859375, -0.020416259765625, 0.035064697265625, -0.0295867919921875, 0.029083251953125, 0.0031185150146484375, 0.032958984375, -0.0133056640625, -0.0201416015625, -0.0518798828125, 0.0435791015625, -0.01294708251953125, 0.016265869140625, 0.0173797607421875, 0.01230621337890625, -0.024017333984375, -0.00902557373046875, -0.01152801513671875, 0.0170135498046875, -0.0051422119140625, -0.01271820068359375, -0.0258026123046875, -0.0034351348876953125, -0.01702880859375, 0.039337158203125, -0.002552032470703125, -0.00124359130859375, -0.0653076171875, 0.0133056640625, 0.07916259765625, 0.034942626953125, 0.05517578125, 0.053009033203125, -0.01067352294921875, -0.033111572265625, 0.00384521484375, 0.041534423828125, 0.053314208984375, -0.0291595458984375, -0.076171875, 0.0055694580078125, 0.01053619384765625, 0.0115966796875, 0.0133514404296875, 0.0132293701171875, -0.003864288330078125, -0.005573272705078125, -0.00934600830078125, -0.01210784912109375, -0.0014276504516601562, -0.0046844482421875, 0.00786590576171875, -0.04058837890625, -0.018524169921875, -0.01535797119140625, 0.0240325927734375, 0.0269775390625, -0.0008473396301269531, -0.00797271728515625, 0.0048675537109375, 0.0106658935546875, -0.03192138671875, -0.002857208251953125, 0.0170135498046875, -0.040191650390625, 0.01195526123046875, -0.0197601318359375, 0.03717041015625, -0.047943115234375, -0.06768798828125, 0.005802154541015625, 0.0274505615234375, 0.00591278076171875, -0.04254150390625, 0.0098876953125, 0.0016870498657226562, -0.006420135498046875, 0.01490020751953125, 0.0082244873046875, 0.01229095458984375, 0.0355224609375, 0.018798828125, -0.0256195068359375, -0.0009150505065917969, 0.002353668212890625, 0.00982666015625, 0.056549072265625, 0.04290771484375, -0.0024890899658203125, -0.05389404296875, 0.019378662109375, 0.03350830078125, 0.0704345703125, 0.00199127197265625, 0.07257080078125, -0.0222930908203125, -0.029052734375, -0.006526947021484375, 0.00733184814453125, -0.00930023193359375, -0.01503753662109375, -0.0176239013671875, -0.016021728515625, -0.00931549072265625, 0.0280609130859375, -0.0093231201171875, 0.03497314453125, 0.0263671875, 0.01404571533203125, -0.0240631103515625, -0.01461029052734375, 0.03271484375, -0.03057861328125, -0.059814453125, -0.06903076171875, 0.0252685546875, 0.03094482421875, 0.038543701171875, 0.0599365234375, 0.03472900390625, 0.00936126708984375, 0.01468658447265625, -0.006649017333984375, 0.01031494140625, -0.00659942626953125, -0.008941650390625, -0.0099334716796875, -0.0302276611328125, 0.0521240234375, -0.06402587890625, -0.0173187255859375, -0.038238525390625, -0.002727508544921875, 0.030670166015625, 0.033203125, -0.0078125, 0.01947021484375, 0.0018014907836914062, 0.0023555755615234375, -0.041961669921875, -0.0001418590545654297, 0.041717529296875, 0.01739501953125, -0.004657745361328125, 0.03350830078125, -0.060546875, -0.0341796875, -0.03204345703125, 0.044769287109375, 0.00908660888671875, 0.046539306640625, -0.0104827880859375, 0.0299072265625, -0.0113372802734375, -0.046966552734375, -0.0034027099609375, -0.00875091552734375, -0.017181396484375, -0.0226898193359375, -0.0257720947265625, 0.0029048919677734375, -0.04754638671875, 0.023223876953125, 0.031890869140625, -0.0192718505859375, 0.0019683837890625, 0.0136260986328125, 0.00734710693359375, -0.00885009765625, 0.0246734619140625, -0.01641845703125, -0.034149169921875, 0.016693115234375, 0.028106689453125, -0.00800323486328125, 0.0252532958984375, 0.01605224609375, 0.014556884765625, 0.0145416259765625, -0.042083740234375, 0.0234222412109375, -0.0231170654296875, 0.054412841796875, 0.031890869140625, 0.0006465911865234375, 0.02008056640625, -0.00504302978515625, -0.019561767578125, 0.0093536376953125, 0.0038299560546875, -0.01000213623046875, -0.0180511474609375, -0.00260162353515625, 0.03240966796875, 0.032440185546875, 0.0306243896484375, -0.0482177734375, 0.01229095458984375, 0.045318603515625, -0.0058746337890625, 0.0281829833984375, 0.01221466064453125, -0.0306854248046875, -0.037994384765625, 0.007305145263671875, 0.01552581787109375, 0.01139068603515625, -0.026092529296875, -0.05706787109375, -0.01129913330078125, 0.029449462890625, 0.00870513916015625, -0.0484619140625, 0.020263671875, -0.024810791015625, 0.034088134765625, -0.025970458984375, -0.0172119140625, 0.01132965087890625, 0.06024169921875, 0.00046563148498535156, -0.049652099609375, -0.0254669189453125, 0.041900634765625, -0.0643310546875, -0.004108428955078125, 0.035308837890625, -0.013336181640625, 0.00046825408935546875, -0.044342041015625, -0.0027008056640625, 0.00023376941680908203, 0.0169677734375, -0.005764007568359375, 0.007404327392578125, 0.023193359375, -0.015625, -0.04522705078125, 0.00872802734375, -0.0241851806640625, 0.01526641845703125, 0.01073455810546875, -0.01483154296875, -0.002716064453125, -0.040374755859375, -0.0736083984375, -0.0191192626953125, 0.0302886962890625, -0.04644775390625, 0.0080413818359375, -0.0192413330078125, -0.0184326171875, -0.017974853515625, 0.001392364501953125, -0.023406982421875, 0.006389617919921875, 0.03619384765625, 0.016082763671875, 0.03570556640625, -0.008636474609375, 0.01027679443359375, -0.01543426513671875, 0.044219970703125, 0.0325927734375, 0.01114654541015625, -0.0021457672119140625, -0.00733184814453125, 0.0274200439453125, 0.06207275390625, -0.01824951171875, -0.0404052734375, -0.00855255126953125, -0.01959228515625, -0.00897979736328125, 0.034027099609375, -0.0322265625, 0.00533294677734375, 0.050628662109375, 0.08258056640625, 0.01261138916015625, -0.02691650390625, 0.018402099609375, -0.0173187255859375, -0.018524169921875, -0.04559326171875, 0.0013971328735351562, -0.0614013671875, -0.046966552734375, -0.006832122802734375, 0.00856781005859375, -0.017852783203125, 0.008392333984375, -0.018585205078125, -0.0217132568359375, 0.025665283203125, 0.026397705078125, -0.047210693359375, -0.044036865234375, 0.052703857421875, -0.045928955078125, -0.02752685546875, 0.027496337890625, 0.0235748291015625, -0.0038928985595703125, 0.00914764404296875, -0.0267333984375, 0.052947998046875, -0.10833740234375, -0.0085601806640625, -0.040771484375, 0.044677734375, -0.0687255859375, 0.014129638671875, -0.00756072998046875, -0.01049041748046875, -0.0036602020263671875, -0.00948333740234375, 0.025146484375, -0.00775909423828125, -0.01483917236328125, 0.0239715576171875, 0.004486083984375, 0.0577392578125, -0.02264404296875, 0.06591796875, -0.002727508544921875, -0.032073974609375, 0.03204345703125, -0.050994873046875, 0.0048675537109375, 0.036346435546875, 0.0189056396484375, -0.05609130859375, 0.03515625, 0.00339508056640625, 0.060699462890625, 0.01776123046875 ]
6111f67418a152eea66fa549bc74a38f339a2d74
Wordpress Stackexchange Q: How are roles stored in the database? I know roles are defined http://codex.wordpress.org/Roles_and_Capabilities but how are they stored in the database? For instance, how is "Super Admin" stored i.e. 'super_admin'? A: The core functions: * *is_super_admin(), *grant_super_admin(), *revoke_super_admin() fetch the super admins data from the wp_sitemeta table with: $super_admins = get_site_option( 'site_admins', array( 'admin' ) ); It's stored as a serialized array of user logins, for each site, like: a:1:{i:0;s:6:"louiev";} It's possible to override it with the global $site_admins array. On the other hand, the general user roles (admin, editor, author, ...) are stored as serialized arrays, for each user, like: a:1:{s:13:"administrator";b:1;} in the wp_usermeta table under the wp_capabilities meta key and/or the wp_{$blog_id}_capabilities meta keys. Note that the wp_ prefix might be different on your install.
Q: How are roles stored in the database? I know roles are defined http://codex.wordpress.org/Roles_and_Capabilities but how are they stored in the database? For instance, how is "Super Admin" stored i.e. 'super_admin'? A: The core functions: * *is_super_admin(), *grant_super_admin(), *revoke_super_admin() fetch the super admins data from the wp_sitemeta table with: $super_admins = get_site_option( 'site_admins', array( 'admin' ) ); It's stored as a serialized array of user logins, for each site, like: a:1:{i:0;s:6:"louiev";} It's possible to override it with the global $site_admins array. On the other hand, the general user roles (admin, editor, author, ...) are stored as serialized arrays, for each user, like: a:1:{s:13:"administrator";b:1;} in the wp_usermeta table under the wp_capabilities meta key and/or the wp_{$blog_id}_capabilities meta keys. Note that the wp_ prefix might be different on your install.
wordpress
{ "language": "en", "length": 128, "provenance": "stackexchange_00019.jsonl.gz:457501", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/195293" }
[ 0.056610107421875, -0.0149383544921875, -0.030517578125, -0.052734375, 0.01206207275390625, -0.033966064453125, 0.04193115234375, 0.025726318359375, 0.033447265625, 0.027923583984375, 0.0155792236328125, -0.032470703125, 0.0150909423828125, -0.03515625, -0.03167724609375, -0.00916290283203125, 0.0309295654296875, -0.026580810546875, 0.0240020751953125, 0.008270263671875, 0.012451171875, 0.030059814453125, -0.0023212432861328125, 0.01395416259765625, 0.04840087890625, -0.057769775390625, 0.024932861328125, -0.043548583984375, 0.056884765625, -0.004547119140625, 0.036407470703125, -0.01050567626953125, -0.01296234130859375, -0.01450347900390625, 0.055206298828125, -0.06060791015625, 0.006011962890625, -0.000659942626953125, 0.006744384765625, -0.00848388671875, -0.00014543533325195312, 0.0186767578125, 0.03533935546875, 0.020111083984375, -0.0032787322998046875, -0.06011962890625, 0.02081298828125, -0.04449462890625, -0.0256195068359375, -0.04296875, 0.026641845703125, -0.0036907196044921875, 0.059783935546875, -0.0173492431640625, -0.0132598876953125, -0.010101318359375, -0.0367431640625, 0.0391845703125, 0.036224365234375, 0.010894775390625, -0.01922607421875, -0.009002685546875, 0.0082855224609375, -0.0306396484375, -0.0108642578125, -0.0008645057678222656, 0.05047607421875, 0.0217437744140625, -0.038177490234375, -0.02740478515625, -0.0014362335205078125, 0.0146636962890625, 0.00897979736328125, -0.0189056396484375, -0.0204620361328125, 0.0192413330078125, -0.01287841796875, 0.004558563232421875, 0.0200958251953125, -0.0105133056640625, 0.0174713134765625, 0.01239776611328125, 0.0162811279296875, 0.0233612060546875, -0.0305938720703125, 0.01438140869140625, -0.0181732177734375, -0.019622802734375, 0.0219879150390625, 0.0001577138900756836, -0.0005645751953125, -0.0296478271484375, 0.0433349609375, 0.04058837890625, -0.027984619140625, -0.0258941650390625, 0.0576171875, 0.0596923828125, -0.003787994384765625, -0.0343017578125, 0.0034046173095703125, -0.03570556640625, -0.0340576171875, -0.0161590576171875, 0.0175323486328125, 0.041717529296875, -0.041229248046875, -0.01462554931640625, 0.0295867919921875, 0.028228759765625, 0.01189422607421875, -0.05023193359375, -0.00165557861328125, -0.07257080078125, 0.033294677734375, 0.028900146484375, -0.0175933837890625, 0.0511474609375, 0.04071044921875, -0.0104827880859375, -0.0113372802734375, 0.0016584396362304688, -0.00734710693359375, -0.049957275390625, 0.01508331298828125, -0.0299072265625, -0.033050537109375, 0.021270751953125, -0.06781005859375, 0.08697509765625, -0.0246124267578125, 0.017608642578125, 0.0206451416015625, -0.00901031494140625, -0.05206298828125, -0.028564453125, 0.0372314453125, -0.032928466796875, -0.022430419921875, 0.05316162109375, -0.0290679931640625, -0.05584716796875, -0.00904083251953125, -0.0238037109375, -0.007793426513671875, 0.0209197998046875, 0.00372314453125, 0.017333984375, 0.0019321441650390625, -0.0252227783203125, -0.0200042724609375, -0.006893157958984375, -0.002239227294921875, 0.01111602783203125, 0.020416259765625, 0.0182342529296875, -0.003936767578125, 0.00382232666015625, -0.017333984375, 0.0095977783203125, 0.0013895034790039062, -0.004970550537109375, 0.0177459716796875, -0.0168304443359375, -0.014373779296875, -0.003826141357421875, -0.0361328125, -0.0020542144775390625, 0.0261688232421875, -0.0225677490234375, 0.035491943359375, -0.0277099609375, 0.0241851806640625, -0.019561767578125, 0.002529144287109375, 0.01018524169921875, -0.0023174285888671875, -0.051177978515625, 0.04193115234375, 0.011566162109375, -0.037811279296875, -0.01293182373046875, -0.018280029296875, 0.00292205810546875, -0.00833892822265625, 0.00003808736801147461, 0.00868988037109375, 0.024505615234375, 0.01885986328125, 0.0273590087890625, -0.032470703125, 0.0048370361328125, -0.0640869140625, 0.031463623046875, 0.00695037841796875, 0.0014629364013671875, -0.0003199577331542969, 0.0024318695068359375, 0.00017333030700683594, -0.0277252197265625, 0.047607421875, -0.01508331298828125, 0.0154876708984375, -0.0213775634765625, -0.05267333984375, -0.00962066650390625, -0.01453399658203125, 0.01132965087890625, -0.00007933378219604492, 0.0305328369140625, 0.01204681396484375, 0.0235748291015625, -0.0223846435546875, -0.02728271484375, -0.005481719970703125, -0.0015621185302734375, -0.0168914794921875, 0.0428466796875, -0.000865936279296875, 0.0404052734375, -0.0242919921875, -0.0263824462890625, -0.024444580078125, -0.0105438232421875, 0.0251312255859375, 0.01277923583984375, -0.00739288330078125, 0.00838470458984375, 0.08331298828125, 0.00478363037109375, 0.0755615234375, -0.019317626953125, 0.0654296875, 0.033050537109375, -0.01029205322265625, 0.0004143714904785156, 0.005889892578125, -0.0897216796875, -0.006336212158203125, 0.056884765625, 0.035003662109375, 0.0308685302734375, -0.00225830078125, 0.037689208984375, 0.0093841552734375, -0.06671142578125, 0.0120086669921875, 0.0167083740234375, -0.00038504600524902344, 0.061126708984375, -0.046905517578125, 0.0111236572265625, 0.01441192626953125, 0.03167724609375, -0.044586181640625, 0.049041748046875, -0.06414794921875, -0.01511383056640625, -0.00504302978515625, -0.01105499267578125, 0.004528045654296875, 0.00482940673828125, 0.0302276611328125, -0.0185394287109375, -0.0162811279296875, 0.0292816162109375, 0.0106353759765625, 0.01372528076171875, -0.033111572265625, 0.01177978515625, 0.031005859375, 0.036102294921875, -0.00827789306640625, -0.023651123046875, 0.03643798828125, -0.00909423828125, -0.040374755859375, 0.01507568359375, 0.00386810302734375, -0.0234222412109375, -0.00948333740234375, 0.04058837890625, -0.003864288330078125, -0.01708984375, -0.03546142578125, -0.018524169921875, 0.011016845703125, 0.0246124267578125, 0.03363037109375, 0.007556915283203125, 0.02581787109375, 0.0118408203125, -0.03179931640625, 0.07208251953125, -0.043243408203125, -0.023529052734375, 0.006908416748046875, -0.0390625, 0.00864410400390625, 0.0020694732666015625, 0.03021240234375, 0.073486328125, 0.044586181640625, -0.029388427734375, -0.000518798828125, -0.04547119140625, -0.017486572265625, 0.04010009765625, 0.014495849609375, -0.042449951171875, 0.00789642333984375, 0.06060791015625, 0.0323486328125, 0.01435089111328125, 0.0158233642578125, -0.005893707275390625, 0.00026416778564453125, 0.0289154052734375, -0.03546142578125, -0.04791259765625, -0.02398681640625, -0.06671142578125, 0.009033203125, -0.0190277099609375, -0.01739501953125, 0.0047760009765625, 0.002288818359375, 0.0231781005859375, 0.001438140869140625, -0.0178680419921875, -0.028167724609375, -0.005985260009765625, -0.036224365234375, 0.024505615234375, -0.006694793701171875, -0.003326416015625, -0.0175933837890625, 0.04986572265625, -0.022064208984375, -0.06341552734375, -0.055328369140625, 0.0203704833984375, 0.0025482177734375, -0.0128936767578125, -0.00022876262664794922, -0.0080413818359375, -0.0102691650390625, 0.009857177734375, -0.00934600830078125, -0.0088043212890625, 0.003993988037109375, -0.0088653564453125, 0.0218505859375, -0.0208587646484375, 0.044219970703125, -0.0110015869140625, -0.052947998046875, 0.028839111328125, 0.04840087890625, -0.026519775390625, -0.0238189697265625, 0.004871368408203125, -0.04925537109375, -0.012847900390625, 0.0100555419921875, 0.0034580230712890625, 0.01296234130859375, -0.01001739501953125, 0.0278167724609375, 0.036865234375, -0.037750244140625, 0.0267791748046875, -0.0679931640625, 0.00730133056640625, 0.01123046875, 0.025115966796875, 0.0333251953125, -0.015716552734375, 0.0091400146484375, 0.0194549560546875, -0.00214385986328125, -0.01007080078125, -0.0264892578125, -0.04425048828125, -0.07440185546875, 0.035675048828125, -0.043975830078125, 0.042266845703125, -0.07147216796875, -0.021820068359375, -0.0247344970703125, 0.1142578125, -0.0104522705078125, 0.01464080810546875, 0.00226593017578125, -0.0017414093017578125, -0.05426025390625, -0.019866943359375, -0.0845947265625, 0.016754150390625, -0.032928466796875, -0.02484130859375, -0.0124359130859375, -0.0194549560546875, -0.0276031494140625, 0.002655029296875, -0.03265380859375, -0.027740478515625, 0.026092529296875, -0.05767822265625, 0.055938720703125, -0.00739288330078125, 0.0361328125, -0.036865234375, 0.006603240966796875, -0.058135986328125, -0.10052490234375, -0.0212554931640625, -0.01010894775390625, 0.07220458984375, 0.01361083984375, -0.02825927734375, -0.01439666748046875, 0.05084228515625, -0.0218658447265625, 0.01236724853515625, 0.0112457275390625, 0.04217529296875, -0.021484375, -0.0249481201171875, 0.015655517578125, -0.0499267578125, -0.0372314453125, -0.0225830078125, 0.038055419921875, -0.0178070068359375, -0.0249786376953125, -0.03753662109375, -0.01187896728515625, 0.0013532638549804688, 0.005451202392578125, -0.0170745849609375, -0.04888916015625, 0.0267181396484375, -0.0386962890625, 0.0150604248046875, -0.02667236328125, -0.033447265625, 0.0386962890625, -0.020263671875, -0.0103302001953125, 0.0295562744140625, 0.059051513671875, 0.01445770263671875, -0.00991058349609375, -0.0384521484375, 0.0498046875, 0.059295654296875, -0.02398681640625, 0.03326416015625, 0.084716796875, -0.00936126708984375, -0.041595458984375, 0.03887939453125, -0.0216064453125, -0.007076263427734375, 0.036651611328125, 0.0306549072265625, 0.002239227294921875, -0.007049560546875, -0.0043792724609375, -0.004100799560546875, -0.00392913818359375, 0.001071929931640625, -0.0245513916015625, 0.0226593017578125, 0.049041748046875, -0.0268402099609375, 0.0313720703125, -0.029998779296875, -0.04248046875, 0.0134735107421875, -0.052520751953125, 0.01311492919921875, 0.014617919921875, -0.0010271072387695312, 0.0150146484375, -0.01222991943359375, 0.005886077880859375, -0.01409912109375, -0.0226287841796875, -0.022613525390625, 0.037261962890625, -0.036712646484375, -0.0142059326171875, -0.0018672943115234375, -0.002300262451171875, 0.031982421875, -0.00746917724609375, -0.06640625, 0.01140594482421875, -0.001598358154296875, 0.05877685546875, 0.04364013671875, -0.005184173583984375, 0.0196075439453125, 0.0316162109375, 0.0095977783203125, -0.00217437744140625, -0.0121002197265625, 0.0261077880859375, -0.01605224609375, 0.003620147705078125, -0.0299835205078125, 0.0105438232421875, -0.007228851318359375, 0.0771484375, -0.0290069580078125, 0.049530029296875, -0.016876220703125, 0.0675048828125, 0.046295166015625, 0.021759033203125, -0.001110076904296875, 0.03924560546875, -0.00661468505859375, -0.0016508102416992188, 0.0007619857788085938, -0.013763427734375, 0.005859375, 0.0217437744140625, 0.0234375, 0.01319122314453125, 0.01015472412109375, -0.00217437744140625, -0.019683837890625, 0.0168609619140625, 0.05224609375, -0.0309295654296875, -0.07879638671875, -0.0184478759765625, 0.016693115234375, 0.0421142578125, -0.07366943359375, 0.0019121170043945312, 0.009613037109375, -0.0151824951171875, 0.0172576904296875, -0.033294677734375, -0.0046234130859375, -0.0225677490234375, -0.0137481689453125, -0.07275390625, 0.0016880035400390625, -0.004749298095703125, -0.01251220703125, -0.035003662109375, 0.0135040283203125, -0.03338623046875, 0.0023651123046875, -0.0221710205078125, 0.0157623291015625, -0.030792236328125, 0.01398468017578125, -0.034332275390625, -0.0016260147094726562, 0.04931640625, -0.00018453598022460938, -0.037506103515625, -0.0274200439453125, -0.0121307373046875, -0.019195556640625, 0.0095672607421875, 0.00841522216796875, -0.035400390625, 0.00595855712890625, -0.0091400146484375, 0.00946044921875, -0.01021575927734375, -0.0075836181640625, -0.006134033203125, 0.02459716796875, 0.01290130615234375, 0.0265960693359375, 0.011138916015625, 0.0736083984375, -0.023681640625, 0.0718994140625, 0.0270233154296875, 0.050140380859375, -0.0305938720703125, -0.0222015380859375, 0.00382232666015625, -0.02716064453125, -0.004375457763671875, -0.043212890625, 0.0201873779296875, 0.01910400390625, 0.0430908203125, 0.005069732666015625, 0.01430511474609375, 0.0207366943359375, 0.0114898681640625, -0.002750396728515625, -0.047027587890625, 0.042633056640625, 0.0131072998046875, 0.01477813720703125, -0.0279693603515625, 0.03167724609375, -0.0023136138916015625, -0.005321502685546875, 0.004169464111328125, -0.022491455078125, 0.00341033935546875, 0.056060791015625, -0.037567138671875, 0.01678466796875, 0.0418701171875, 0.0254974365234375, 0.051666259765625, -0.0005154609680175781, 0.02545166015625, 0.0030879974365234375, 0.00023472309112548828, -0.044036865234375, 0.00220489501953125, 0.017486572265625, -0.0005927085876464844, -0.005451202392578125, 0.016021728515625, -0.0005941390991210938, 0.0260772705078125, 0.044342041015625, 0.0426025390625, -0.0584716796875, 0.024505615234375, -0.0032062530517578125, -0.0213623046875, 0.03741455078125, -0.0099639892578125, -0.03057861328125, -0.08392333984375, -0.0034427642822265625, 0.032806396484375, -0.025787353515625, -0.031463623046875, 0.002864837646484375, -0.03399658203125, 0.01229095458984375, -0.0175628662109375, 0.010498046875, 0.054107666015625, -0.01116943359375, -0.030120849609375, 0.0252532958984375, 0.00200653076171875, 0.0180511474609375, -0.002292633056640625, -0.00902557373046875, -0.06646728515625, -0.0158233642578125, -0.00942230224609375, -0.043426513671875, -0.054901123046875, 0.00567626953125, 0.051605224609375, 0.056365966796875, -0.02001953125, -0.0025348663330078125, 0.0458984375, 0.0012025833129882812, -0.03436279296875, -0.06341552734375, 0.0232696533203125, 0.0209197998046875, -0.04925537109375, 0.0401611328125, -0.007537841796875, -0.06451416015625, -0.03070068359375, -0.04510498046875, 0.0537109375, -0.0215911865234375, -0.01406097412109375, 0.0285186767578125, 0.018218994140625, -0.02301025390625, -0.008636474609375, 0.050140380859375, -0.033966064453125, 0.01357269287109375, 0.0112152099609375, 0.0140228271484375, -0.0020885467529296875, 0.01546478271484375, -0.0201416015625, 0.05242919921875, 0.004852294921875, -0.0235137939453125, 0.02471923828125, 0.02423095703125, -0.038482666015625, -0.0061492919921875, -0.016448974609375, 0.03741455078125, -0.026947021484375, 0.03912353515625, -0.032257080078125, 0.0089111328125, 0.0059967041015625, 0.018798828125, 0.0960693359375, 0.0304718017578125, -0.03753662109375, -0.01251983642578125, 0.0296630859375, -0.004261016845703125, -0.032135009765625, 0.06500244140625, -0.0200653076171875, 0.04901123046875, 0.036468505859375, -0.04327392578125, 0.036407470703125, -0.03118896484375, -0.044342041015625, -0.01148223876953125, -0.01171112060546875, -0.031036376953125, -0.03021240234375, -0.019256591796875, -0.02740478515625, -0.01541900634765625, 0.002132415771484375, -0.0645751953125, 0.040740966796875, -0.0090179443359375, 0.054046630859375, -0.027862548828125, -0.0155029296875, -0.0065155029296875, 0.052459716796875, 0.0223236083984375, 0.0290985107421875, 0.0033931732177734375, 0.030303955078125, -0.0093841552734375, -0.002811431884765625, 0.0157318115234375, 0.051788330078125, -0.0616455078125, 0.0577392578125, 0.031890869140625, 0.0192108154296875, -0.0289459228515625, 0.048828125, 0.043914794921875, 0.06524658203125, -0.061492919921875, -0.03900146484375, 0.0092010498046875, 0.015716552734375, -0.0031948089599609375, 0.0186920166015625, -0.01177215576171875, 0.005504608154296875, 0.059967041015625, 0.010101318359375, -0.01222991943359375, 0.01107025146484375, -0.0098724365234375, 0.006610870361328125, 0.03753662109375, 0.0133514404296875, -0.0022449493408203125, -0.023162841796875, -0.04217529296875, -0.01629638671875, 0.00727081298828125, 0.07562255859375, -0.03179931640625, 0.06512451171875, 0.006866455078125, -0.0004391670227050781, 0.010955810546875, -0.0229949951171875, 0.0102691650390625, -0.0531005859375, -0.06451416015625, 0.03497314453125, 0.043609619140625, -0.0184326171875, 0.01534271240234375, 0.01464080810546875, 0.040740966796875, 0.0166473388671875, -0.01169586181640625, 0.04425048828125, -0.01268768310546875, -0.01654052734375, -0.033721923828125, 0.037750244140625, 0.03741455078125, 0.0233306884765625, -0.016876220703125, 0.0482177734375, 0.034149169921875, -0.01222991943359375, 0.01824951171875, -0.004512786865234375, 0.0211639404296875, 0.035430908203125, -0.0212860107421875, -0.01629638671875, 0.00978851318359375, -0.0426025390625, 0.00389862060546875, -0.052490234375, -0.04901123046875, 0.004169464111328125, 0.0384521484375, 0.004974365234375, -0.00463104248046875, -0.00273895263671875, -0.04205322265625, 0.0154266357421875, 0.038818359375, -0.00626373291015625, 0.0362548828125, 0.035858154296875, -0.0105743408203125, -0.0184783935546875, 0.0210113525390625, 0.0175933837890625, -0.022613525390625, -0.005863189697265625, -0.005229949951171875, 0.018463134765625, 0.0106353759765625, -0.0386962890625, 0.03277587890625, -0.048919677734375, -0.03790283203125, 0.03387451171875, 0.0233917236328125, 0.0009918212890625, -0.0002551078796386719, 0.00820159912109375, 0.034912109375, 0.037353515625, -0.028961181640625, -0.0009446144104003906, 0.01552581787109375, 0.006458282470703125, -0.01453399658203125, 0.0191497802734375, -0.0135498046875, -0.033203125, -0.047027587890625, -0.0218963623046875, 0.03564453125, 0.0304107666015625, 0.0015878677368164062, 0.01275634765625, -0.00881195068359375, -0.053924560546875, 0.0109710693359375, -0.04052734375, 0.0114593505859375, 0.034088134765625, 0.010406494140625, -0.006114959716796875, 0.021728515625, -0.01068115234375, 0.016632080078125, 0.010986328125, 0.01195526123046875, 0.0484619140625, -0.0697021484375, 0.0306854248046875, 0.04693603515625, 0.081787109375, 0.0205078125, 0.023895263671875, -0.006191253662109375, -0.007183074951171875, 0.0144195556640625, 0.0215911865234375, -0.020294189453125, -0.0301513671875, -0.0211181640625, 0.0280609130859375, -0.045684814453125, -0.035919189453125, -0.118408203125, -0.0014696121215820312, 0.050811767578125, 0.027374267578125, -0.0797119140625, 0.046173095703125, -0.0157318115234375, 0.036468505859375, 0.021209716796875, -0.025634765625, 0.01486968994140625, 0.043121337890625, 0.007724761962890625, 0.0149688720703125, -0.0137786865234375, -0.02178955078125, 0.02349853515625, 0.0260772705078125, -0.006084442138671875, -0.0142974853515625, 0.028900146484375, 0.04864501953125, 0.01117706298828125, 0.1014404296875, -0.023040771484375, -0.0026340484619140625, 0.020050048828125, 0.0154571533203125, -0.0259552001953125, -0.0762939453125, -0.0095672607421875, -0.0283355712890625, 0.01406097412109375, -0.0297088623046875, 0.06292724609375, 0.060150146484375, -0.007389068603515625, 0.0123748779296875, 0.0249481201171875, 0.0003414154052734375, -0.01264190673828125, -0.0016689300537109375, -0.01398468017578125, 0.00629425048828125, -0.0390625, -0.01322174072265625, -0.0063934326171875, -0.03662109375, 0.01538848876953125, 0.0286865234375, -0.0328369140625, 0.023345947265625, 0.028076171875, -0.0655517578125, 0.039337158203125, 0.0312347412109375, -0.004062652587890625, -0.003101348876953125, 0.009063720703125, 0.017547607421875, 0.048828125, 0.0037631988525390625, 0.01399993896484375, 0.0020313262939453125, -0.033599853515625, -0.02532958984375, -0.033111572265625, 0.0126800537109375, 0.0017843246459960938, 0.0400390625, 0.04656982421875, -0.00836944580078125, -0.037384033203125, -0.0178070068359375, -0.047698974609375, -0.0379638671875, -0.01531219482421875, 0.019927978515625, -0.06585693359375, 0.0037841796875, 0.0079803466796875, -0.0077972412109375, 0.007720947265625, 0.0047149658203125, -0.00614166259765625, -0.01264190673828125, -0.0037078857421875, -0.0204010009765625, -0.02288818359375, 0.005519866943359375, 0.0115203857421875, -0.029876708984375, -0.035186767578125, -0.004924774169921875, 0.0010595321655273438, -0.02459716796875, -0.004001617431640625, -0.00829315185546875, -0.013580322265625, -0.026397705078125, 0.044830322265625, -0.02392578125, 0.00603485107421875, -0.058258056640625, -0.0163116455078125, 0.0076446533203125, 0.0252532958984375, -0.015625, 0.0267486572265625, -0.0214996337890625, 0.0760498046875, 0.0008182525634765625, 0.051025390625, -0.021942138671875, 0.0201568603515625, -0.032073974609375, 0.045867919921875, 0.0012140274047851562, -0.0165557861328125, 0.04217529296875, -0.004093170166015625, 0.0166015625, -0.01337432861328125, 0.003780364990234375, -0.0224151611328125, -0.023712158203125, 0.00909423828125, -0.0021572113037109375, 0.01338958740234375 ]
1a606cebba0f45aa438375e91478f3d4d371a69a
Wordpress Stackexchange Q: How to disable profile.php for users? I am using wordpress 4.2.2 and i am using buddypress latest version. I want all my users customize their profile at buddypress profile page. So i want to disable profile.php for the users. I hide the profile link from dashboard by the WP admin UI customize plugin.But when anyone type url mysite/wp-admin/profile.php it's appear on browser.So i want to escape from the problem and want to disable profile.php for the users. What should i do to do this? A: The following code* will redirect non-admin to a custom profile page in the front end, because instead of disabling you need to redirect them to your custom page. :) <?php add_action ('init' , 'wpse_redirect_profile_access'); function wpse_redirect_profile_access(){ //admin won't be affected if (current_user_can('manage_options')) return ''; //if we're at admin profile.php page if (strpos ($_SERVER ['REQUEST_URI'] , 'wp-admin/profile.php' )) { wp_redirect ( home_url( '/my-profile' )); // to page like: example.com/my-profile/ exit(); } } *Source^
Q: How to disable profile.php for users? I am using wordpress 4.2.2 and i am using buddypress latest version. I want all my users customize their profile at buddypress profile page. So i want to disable profile.php for the users. I hide the profile link from dashboard by the WP admin UI customize plugin.But when anyone type url mysite/wp-admin/profile.php it's appear on browser.So i want to escape from the problem and want to disable profile.php for the users. What should i do to do this? A: The following code* will redirect non-admin to a custom profile page in the front end, because instead of disabling you need to redirect them to your custom page. :) <?php add_action ('init' , 'wpse_redirect_profile_access'); function wpse_redirect_profile_access(){ //admin won't be affected if (current_user_can('manage_options')) return ''; //if we're at admin profile.php page if (strpos ($_SERVER ['REQUEST_URI'] , 'wp-admin/profile.php' )) { wp_redirect ( home_url( '/my-profile' )); // to page like: example.com/my-profile/ exit(); } } *Source^ A: Redirect from profile.php to the dashboard Here's one way to do it: add_action( 'load-profile.php', function() { if( ! current_user_can( 'manage_options' ) ) exit( wp_safe_redirect( admin_url() ) ); } ); where we redirect to the dashboard instead, if the current user can't manage options. Redirect from profile.php to the current user's member page If you want to redirect to the member's profile page, you could try (untested): add_action( 'load-profile.php', function() { if( ! current_user_can( 'manage_options' ) && function_exists( 'bp_core_get_user_domain' ) ) exit( wp_safe_redirect( bp_core_get_user_domain( get_current_user_id() ) ) ); } ); The bp_core_get_user_domain() function is mentioned in this answer, few years ago, by @BooneGorges. I just checked the BP source and this function is still available in BP 2.3 (see here). For PHP < 5.3 add_action( 'load-profile.php', 'wpse_195353_profile_redirect_to_dashboard' ); function wpse_195353_profile_redirect_to_dashboard() { if( ! current_user_can( 'manage_options' ) ) exit( wp_safe_redirect( admin_url() ) ); } and add_action( 'load-profile.php', 'wpse_195353_profile_redirect_to_member_page' ); function wpse_195353_profile_redirect_to_member_page() { if( ! current_user_can( 'manage_options' ) && function_exists( 'bp_core_get_user_domain' ) ) exit( wp_safe_redirect( bp_core_get_user_domain( get_current_user_id() ) ) ); } but you should consider updating your PHP if that's the case. A: I like this one. You can add admin pages to the array to redirect them. I have it redirecting to the Dashboard below, but you can redirect to BuddyPress URL as well... I'm just not sure what that URL is since I don't use BP very often. function no_proflie_admin_pages_redirect() { global $pagenow; if(!current_user_can('manage_options')) { $admin_redirects = array( 'profile.php' ); if(in_array($pagenow, $admin_redirects)){ wp_redirect( admin_url('/') ); exit; } } } add_action('admin_init', 'no_proflie_admin_pages_redirect'); You can also hide any additional profile.php links with simple CSS: function hide_any_profile_links() { ?> <style type="text/css"> a[href="http://example.com/wp-admin/profile.php"], a[href="profile.php"]{ display: none!important; } </style> <?php } add_action('admin_head', 'hide_any_profile_links', 999); The above could also be achieved with jquery or using PHP and the output buffer. A: Extending on @birgire 's answer, from which I found the first snippet to be the cleanest one I've seen for this, I wanted to add the following since I think it might be useful for most people arriving to this thread. If you don't want users to access their profile on the backend, you will most probably also don't want them to be able to access the dashboard. The use case is when you have subscribers that you don't want to access the backend at all. By default they can access the dashboard and their profile, so let's avoid that: function redirect_subscribers () { if( ! current_user_can( 'edit_posts' ) ) { exit( wp_safe_redirect( site_url() ) ); } } add_action( 'load-index.php', 'redirect_subscribers' ); add_action( 'load-profile.php', 'redirect_subscribers' ); Notice that in this case I've used the edit_posts capability, since I'm only targeting subscribers and this is a capability all roles have except for subscribers. Then I'm using site_url() to redirect them to the homepage, but you could also use get_permalink($page_id) using the id of the page where you have created a "My account" area as a parameter. The load-{$page_hook} is documented in codex.
wordpress
{ "language": "en", "length": 644, "provenance": "stackexchange_00019.jsonl.gz:457522", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/195353" }
[ 0.0975341796875, 0.0041046142578125, 0.01245880126953125, -0.049530029296875, 0.03533935546875, -0.0250244140625, 0.0604248046875, -0.032745361328125, -0.0012359619140625, 0.025115966796875, 0.050811767578125, -0.03369140625, -0.0015354156494140625, -0.05633544921875, -0.00809478759765625, -0.0116424560546875, 0.00936126708984375, 0.0233306884765625, 0.0311737060546875, 0.0022945404052734375, 0.00766754150390625, 0.0061492919921875, -0.00876617431640625, -0.053009033203125, -0.0195159912109375, -0.01702880859375, 0.06988525390625, -0.0216522216796875, -0.0167236328125, -0.02374267578125, 0.006839752197265625, 0.0127716064453125, 0.0012292861938476562, 0.053558349609375, -0.038665771484375, -0.03857421875, 0.007297515869140625, 0.01364898681640625, -0.006816864013671875, 0.02880859375, 0.0209503173828125, -0.00704193115234375, -0.05059814453125, 0.0195159912109375, -0.032623291015625, -0.055999755859375, 0.0643310546875, 0.0007729530334472656, 0.007556915283203125, 0.038970947265625, 0.00754547119140625, 0.0183258056640625, -0.0033283233642578125, -0.039398193359375, 0.00927734375, 0.01554107666015625, -0.0020351409912109375, -0.004093170166015625, 0.020263671875, 0.0072021484375, 0.0005736351013183594, -0.00008100271224975586, 0.001567840576171875, -0.01494598388671875, -0.002056121826171875, -0.006011962890625, -0.0127716064453125, 0.0272979736328125, -0.035369873046875, -0.0258941650390625, 0.007801055908203125, -0.0266265869140625, -0.01432037353515625, -0.0157318115234375, -0.04815673828125, 0.0011653900146484375, 0.0030536651611328125, -0.049072265625, 0.0265960693359375, -0.0026264190673828125, -0.0264892578125, -0.038238525390625, -0.060302734375, 0.0018186569213867188, -0.00395965576171875, 0.043121337890625, -0.0275115966796875, -0.0098876953125, -0.0034542083740234375, 0.022491455078125, -0.0173187255859375, -0.0211181640625, 0.04510498046875, 0.0203094482421875, -0.012420654296875, -0.0129547119140625, 0.024688720703125, 0.023590087890625, -0.0086517333984375, -0.0043792724609375, 0.02587890625, -0.03717041015625, -0.00001633167266845703, -0.005565643310546875, 0.005466461181640625, 0.050262451171875, 0.006160736083984375, 0.00015544891357421875, 0.01410675048828125, -0.0009908676147460938, 0.0094757080078125, -0.02935791015625, -0.041656494140625, -0.01629638671875, 0.00940704345703125, 0.029876708984375, -0.053375244140625, 0.008636474609375, -0.0190887451171875, 0.02667236328125, -0.046295166015625, -0.033172607421875, 0.033416748046875, -0.0286102294921875, 0.0107421875, -0.0184326171875, -0.0246124267578125, 0.005558013916015625, 0.0238800048828125, -0.0014934539794921875, -0.031890869140625, -0.01026153564453125, 0.07989501953125, 0.06634521484375, 0.054107666015625, -0.0187530517578125, 0.042877197265625, -0.02630615234375, -0.020751953125, 0.045013427734375, -0.0312347412109375, -0.07159423828125, -0.03125, -0.0220184326171875, 0.01922607421875, 0.0631103515625, 0.0177764892578125, -0.0103607177734375, 0.01209259033203125, -0.05767822265625, -0.0218505859375, -0.023712158203125, 0.01560211181640625, 0.0250091552734375, 0.0037403106689453125, 0.0219573974609375, 0.0501708984375, -0.01934814453125, -0.03253173828125, -0.0284881591796875, 0.00730133056640625, 0.0037059783935546875, 0.0292510986328125, -0.0301666259765625, -0.039794921875, -0.023895263671875, -0.01039886474609375, -0.01251983642578125, 0.01812744140625, -0.005130767822265625, 0.0045928955078125, -0.0018949508666992188, -0.005405426025390625, 0.02032470703125, 0.024658203125, 0.0192718505859375, -0.037567138671875, 0.01128387451171875, 0.040008544921875, 0.01177978515625, -0.0098114013671875, -0.0244293212890625, 0.05572509765625, 0.01114654541015625, -0.0765380859375, 0.07037353515625, -0.007244110107421875, 0.04296875, 0.0207061767578125, -0.0106048583984375, 0.061859130859375, 0.0256805419921875, 0.014190673828125, 0.0203399658203125, -0.0060577392578125, -0.04901123046875, 0.0189361572265625, -0.0222930908203125, -0.00772857666015625, 0.0361328125, 0.0413818359375, 0.01313018798828125, 0.002971649169921875, -0.0285491943359375, -0.0841064453125, 0.0002002716064453125, -0.02142333984375, 0.037567138671875, 0.0357666015625, 0.038818359375, 0.007205963134765625, 0.0081939697265625, -0.02752685546875, -0.002513885498046875, -0.03387451171875, -0.026763916015625, -0.019744873046875, 0.06890869140625, 0.016448974609375, 0.0294647216796875, 0.0256195068359375, -0.036376953125, 0.0301513671875, -0.0091552734375, 0.030853271484375, -0.0169677734375, -0.0181884765625, -0.0082855224609375, 0.0157623291015625, -0.0201873779296875, -0.00728607177734375, 0.04412841796875, 0.01355743408203125, -0.01172637939453125, -0.033233642578125, 0.005222320556640625, 0.004993438720703125, -0.05810546875, -0.00978851318359375, 0.047637939453125, 0.036712646484375, 0.024627685546875, -0.0189361572265625, -0.004634857177734375, 0.02044677734375, -0.04498291015625, 0.00968170166015625, -0.020294189453125, 0.039520263671875, 0.03314208984375, -0.0094757080078125, -0.0265655517578125, 0.04315185546875, 0.0030155181884765625, 0.021026611328125, 0.037994384765625, -0.0382080078125, 0.006916046142578125, 0.00606536865234375, -0.023101806640625, 0.0043487548828125, -0.0014104843139648438, 0.0025634765625, -0.00885772705078125, 0.00836181640625, -0.0008649826049804688, 0.0301666259765625, 0.0355224609375, 0.006916046142578125, -0.02496337890625, 0.0207366943359375, -0.015899658203125, -0.01206207275390625, -0.033782958984375, 0.04644775390625, -0.0687255859375, -0.04345703125, 0.0230865478515625, -0.006256103515625, -0.035980224609375, 0.01042938232421875, -0.000774383544921875, -0.0229034423828125, -0.00908660888671875, 0.0164642333984375, -0.046630859375, 0.00861358642578125, 0.0170745849609375, -0.0008015632629394531, -0.0273284912109375, 0.0226287841796875, 0.004302978515625, -0.01678466796875, 0.0276641845703125, 0.006622314453125, -0.03326416015625, -0.00634765625, -0.03497314453125, 0.047760009765625, -0.04302978515625, 0.0489501953125, 0.07568359375, -0.021240234375, 0.03753662109375, 0.01007080078125, -0.00588226318359375, 0.00746917724609375, 0.038116455078125, 0.01358795166015625, -0.0347900390625, -0.005207061767578125, 0.0237274169921875, 0.028076171875, -0.0204315185546875, 0.02581787109375, -0.01837158203125, -0.01239013671875, 0.018157958984375, -0.031585693359375, 0.0065765380859375, -0.043731689453125, -0.07940673828125, 0.0433349609375, 0.0191497802734375, -0.0201416015625, -0.0184173583984375, 0.057861328125, 0.0491943359375, 0.0059814453125, -0.02691650390625, -0.049896240234375, -0.054229736328125, -0.031646728515625, -0.022979736328125, -0.0061492919921875, -0.0161285400390625, 0.011138916015625, 0.04620361328125, 0.0083770751953125, -0.0285797119140625, 0.03350830078125, -0.0311279296875, -0.01551055908203125, 0.01702880859375, -0.06201171875, 0.032012939453125, 0.0260162353515625, 0.004940032958984375, 0.055084228515625, -0.0166168212890625, 0.00734710693359375, -0.0281829833984375, -0.0015964508056640625, -0.0271759033203125, -0.0008339881896972656, -0.021697998046875, -0.0069732666015625, -0.019012451171875, -0.0224761962890625, -0.052886962890625, -0.043121337890625, -0.01323699951171875, -0.061065673828125, 0.0338134765625, 0.0350341796875, -0.005615234375, 0.0300140380859375, -0.0169677734375, 0.016845703125, 0.039459228515625, -0.0138397216796875, -0.014495849609375, 0.031341552734375, 0.0048828125, 0.034881591796875, -0.0161590576171875, 0.0254669189453125, -0.023284912109375, 0.01416778564453125, 0.00716400146484375, -0.0306549072265625, -0.017242431640625, 0.005977630615234375, -0.007049560546875, -0.05694580078125, 0.050933837890625, -0.04412841796875, -0.051300048828125, -0.0202484130859375, -0.004901885986328125, 0.0088958740234375, 0.058746337890625, -0.0096435546875, 0.011505126953125, -0.0028095245361328125, -0.01248931884765625, -0.043701171875, -0.0303955078125, -0.08935546875, 0.007030487060546875, -0.07977294921875, -0.00933074951171875, -0.0243988037109375, -0.0200958251953125, -0.0300140380859375, -0.0212860107421875, -0.0487060546875, -0.046173095703125, -0.0013780593872070312, 0.0150299072265625, -0.00992584228515625, 0.0270233154296875, -0.04071044921875, 0.000018596649169921875, -0.0011615753173828125, -0.0187225341796875, -0.066162109375, 0.003963470458984375, 0.005222320556640625, 0.0101470947265625, -0.01080322265625, -0.002628326416015625, -0.0039043426513671875, 0.037506103515625, 0.026153564453125, -0.0091705322265625, 0.01169586181640625, -0.0145111083984375, 0.00775146484375, 0.00702667236328125, 0.00902557373046875, -0.007396697998046875, -0.01165771484375, 0.0196380615234375, -0.003353118896484375, 0.043670654296875, -0.01023101806640625, -0.01015472412109375, 0.039398193359375, -0.038665771484375, -0.07281494140625, -0.025909423828125, -0.0013666152954101562, 0.0157012939453125, -0.00849151611328125, -0.0017375946044921875, -0.029144287109375, -0.083740234375, 0.043792724609375, -0.0279693603515625, -0.00988006591796875, -0.0105743408203125, 0.0460205078125, 0.0202789306640625, -0.0209197998046875, 0.0226287841796875, 0.034423828125, 0.0219268798828125, -0.0103912353515625, 0.06463623046875, 0.011322021484375, -0.0186309814453125, 0.08758544921875, -0.0175628662109375, -0.007419586181640625, -0.03729248046875, 0.058929443359375, 0.007694244384765625, -0.0257720947265625, 0.00444793701171875, -0.0069122314453125, -0.006732940673828125, 0.045135498046875, 0.030975341796875, -0.027008056640625, 0.0191192626953125, 0.0250244140625, 0.0097198486328125, -0.052703857421875, -0.027191162109375, -0.028839111328125, 0.01165771484375, -0.045379638671875, -0.0083770751953125, 0.01506805419921875, -0.015228271484375, -0.01139068603515625, -0.01251220703125, -0.0121917724609375, 0.0322265625, 0.006153106689453125, -0.0016946792602539062, 0.037109375, -0.0168914794921875, -0.0309600830078125, 0.0164337158203125, 0.0035400390625, 0.01419830322265625, -0.003215789794921875, -0.04779052734375, -0.006534576416015625, -0.0181427001953125, 0.033203125, 0.01470947265625, -0.012603759765625, 0.046875, 0.0290985107421875, -0.0587158203125, -0.035858154296875, -0.00002014636993408203, -0.01348876953125, -0.062408447265625, 0.055389404296875, 0.040740966796875, -0.005596160888671875, 0.030792236328125, 0.06890869140625, 0.0189056396484375, 0.0268707275390625, -0.01568603515625, 0.0679931640625, 0.06903076171875, -0.0233001708984375, -0.005298614501953125, 0.0660400390625, -0.004650115966796875, -0.044097900390625, 0.0182037353515625, -0.03118896484375, -0.005634307861328125, 0.026153564453125, 0.0237274169921875, 0.0106658935546875, -0.0173492431640625, 0.01058197021484375, -0.00394439697265625, -0.020050048828125, 0.054351806640625, 0.006969451904296875, -0.06842041015625, -0.01517486572265625, 0.0073699951171875, 0.012176513671875, -0.0340576171875, -0.007183074951171875, 0.0084381103515625, -0.03009033203125, -0.017120361328125, 0.028564453125, -0.055328369140625, 0.00418853759765625, 0.02056884765625, -0.0014495849609375, -0.01251220703125, -0.01702880859375, -0.01442718505859375, 0.0109405517578125, -0.01511383056640625, -0.037017822265625, 0.035675048828125, -0.020416259765625, 0.007396697998046875, -0.024627685546875, 0.0127105712890625, 0.01123046875, 0.006954193115234375, 0.06396484375, 0.0278472900390625, -0.10491943359375, 0.043548583984375, -0.038421630859375, 0.011260986328125, -0.01250457763671875, -0.047119140625, -0.0623779296875, -0.0291595458984375, -0.018585205078125, -0.01047515869140625, 0.005466461181640625, 0.014495849609375, -0.0245819091796875, 0.045379638671875, 0.026641845703125, 0.0268402099609375, -0.026458740234375, 0.0672607421875, -0.0237579345703125, 0.0316162109375, -0.01058197021484375, 0.05023193359375, 0.046539306640625, -0.0208740234375, 0.0253753662109375, 0.0015401840209960938, -0.0298614501953125, -0.053192138671875, -0.01953125, 0.0162353515625, 0.07440185546875, -0.01763916015625, -0.00543212890625, 0.0153961181640625, 0.010162353515625, -0.036590576171875, -0.0287933349609375, -0.000008463859558105469, 0.0335693359375, -0.0487060546875, 0.003963470458984375, 0.03143310546875, -0.019744873046875, -0.033905029296875, 0.012054443359375, 0.0001556873321533203, 0.0151519775390625, 0.00008344650268554688, -0.0178375244140625, 0.033660888671875, 0.1014404296875, 0.0065765380859375, 0.0418701171875, 0.00841522216796875, -0.00146484375, 0.020111083984375, 0.0211334228515625, -0.027313232421875, 0.0161590576171875, 0.037506103515625, 0.0017633438110351562, -0.0335693359375, 0.005706787109375, -0.023284912109375, -0.0110931396484375, 0.07220458984375, 0.047576904296875, -0.10382080078125, 0.004009246826171875, 0.00647735595703125, 0.046142578125, 0.049407958984375, -0.0234375, -0.01497650146484375, -0.0660400390625, 0.045013427734375, -0.00638580322265625, -0.0278167724609375, 0.0019092559814453125, -0.0189056396484375, -0.0272369384765625, 0.0283966064453125, 0.0443115234375, 0.01387786865234375, -0.02044677734375, -0.008209228515625, 0.01306915283203125, 0.00310516357421875, -0.003826141357421875, -0.021240234375, 0.0087890625, -0.0648193359375, -0.06317138671875, -0.008636474609375, -0.01435089111328125, -0.01470947265625, 0.07708740234375, 0.01045989990234375, 0.00511932373046875, 0.064453125, -0.006084442138671875, 0.047332763671875, 0.00811767578125, -0.029998779296875, 0.016265869140625, -0.0361328125, 0.0020503997802734375, 0.036468505859375, -0.0560302734375, 0.0275726318359375, 0.012420654296875, -0.027923583984375, -0.0025348663330078125, 0.0193328857421875, 0.09832763671875, 0.00386810302734375, -0.038482666015625, -0.00003737211227416992, 0.005321502685546875, -0.0021381378173828125, -0.01416015625, 0.033660888671875, -0.03375244140625, -0.02606201171875, -0.0038166046142578125, -0.0355224609375, 0.0023670196533203125, -0.0212554931640625, -0.04681396484375, 0.07366943359375, -0.09149169921875, 0.036651611328125, 0.0186767578125, 0.0250701904296875, 0.02947998046875, 0.023956298828125, -0.01384735107421875, 0.046142578125, 0.008392333984375, 0.07720947265625, -0.01421356201171875, -0.01435089111328125, 0.059661865234375, 0.0631103515625, 0.06671142578125, 0.0226593017578125, -0.05853271484375, -0.01092529296875, -0.0002467632293701172, 0.0184783935546875, -0.018218994140625, 0.056610107421875, -0.0231781005859375, -0.01342010498046875, -0.0005688667297363281, -0.06475830078125, 0.004940032958984375, -0.03521728515625, -0.0279998779296875, -0.0157318115234375, 0.017852783203125, 0.015106201171875, -0.027740478515625, 0.0204620361328125, -0.01490020751953125, -0.004238128662109375, 0.01207733154296875, 0.01477813720703125, -0.04302978515625, 0.02410888671875, -0.009063720703125, -0.01255035400390625, 0.049835205078125, -0.04180908203125, 0.037445068359375, 0.0103607177734375, -0.0161285400390625, 0.0172882080078125, 0.0114288330078125, 0.0233917236328125, -0.020965576171875, -0.0159149169921875, 0.01126861572265625, -0.00037550926208496094, 0.059112548828125, 0.049530029296875, 0.033782958984375, -0.0098876953125, 0.031494140625, 0.0032253265380859375, 0.05682373046875, -0.040740966796875, -0.0587158203125, 0.01465606689453125, 0.01558685302734375, 0.0009112358093261719, 0.027435302734375, 0.02777099609375, -0.037109375, 0.026702880859375, -0.048187255859375, 0.0267333984375, 0.0526123046875, -0.004482269287109375, -0.0226898193359375, -0.018035888671875, -0.035247802734375, 0.0308990478515625, 0.0089874267578125, -0.04119873046875, -0.0172271728515625, -0.00713348388671875, 0.034759521484375, -0.0188140869140625, 0.03167724609375, 0.010589599609375, 0.004047393798828125, 0.0195465087890625, 0.016845703125, -0.010528564453125, -0.0638427734375, -0.0623779296875, 0.01393890380859375, 0.05987548828125, 0.0259857177734375, 0.0001500844955444336, 0.014678955078125, 0.01568603515625, -0.0274810791015625, 0.0015916824340820312, 0.059478759765625, -0.0019664764404296875, -0.01326751708984375, -0.00768280029296875, 0.0205841064453125, 0.01410675048828125, -0.0012912750244140625, 0.006450653076171875, 0.0282440185546875, 0.0225372314453125, -0.0014047622680664062, 0.0291900634765625, -0.002117156982421875, -0.0008296966552734375, 0.006893157958984375, 0.0308990478515625, 0.018585205078125, 0.027069091796875, -0.08905029296875, -0.01183319091796875, -0.0296478271484375, -0.01288604736328125, 0.027374267578125, 0.02972412109375, -0.03076171875, 0.04071044921875, 0.009521484375, 0.0203857421875, -0.004169464111328125, -0.03204345703125, 0.0196685791015625, -0.025634765625, 0.0220947265625, 0.005863189697265625, -0.0240478515625, 0.0008745193481445312, -0.032379150390625, 0.024627685546875, 0.027374267578125, 0.1033935546875, -0.0416259765625, 0.03558349609375, -0.052581787109375, 0.019744873046875, -0.0232696533203125, -0.03582763671875, -0.00511932373046875, 0.02264404296875, 0.020050048828125, 0.002750396728515625, -0.066162109375, 0.0552978515625, 0.0300445556640625, 0.02471923828125, 0.0421142578125, 0.044891357421875, -0.0023784637451171875, -0.0209197998046875, -0.01117706298828125, -0.04071044921875, -0.0416259765625, -0.035125732421875, 0.004360198974609375, -0.005863189697265625, -0.01617431640625, -0.024932861328125, 0.0148468017578125, 0.01169586181640625, -0.01153564453125, 0.009613037109375, -0.00820159912109375, -0.007167816162109375, 0.0267181396484375, -0.0073089599609375, -0.023681640625, -0.003692626953125, -0.01201629638671875, -0.0212249755859375, 0.0164031982421875, -0.00922393798828125, 0.004253387451171875, -0.0205230712890625, -0.0296478271484375, -0.01343536376953125, 0.00885772705078125, 0.0023365020751953125, 0.0016603469848632812, -0.01114654541015625, -0.0225830078125, -0.009674072265625, -0.054229736328125, -0.0273590087890625, -0.02362060546875, -0.0067901611328125, 0.032989501953125, -0.01374053955078125, -0.0352783203125, -0.036224365234375, -0.005645751953125, 0.022674560546875, -0.0020751953125, -0.04022216796875, -0.0028934478759765625, -0.0272979736328125, 0.041412353515625, -0.032073974609375, 0.041717529296875, 0.00809478759765625, 0.016357421875, -0.01081085205078125, 0.03240966796875, -0.0194854736328125, -0.018096923828125, 0.0308837890625, -0.0222930908203125, 0.043548583984375, 0.022918701171875, -0.01678466796875, -0.042724609375, -0.06024169921875, 0.018341064453125, -0.10321044921875, -0.022796630859375, -0.0167694091796875, 0.0125274658203125, 0.005016326904296875, -0.0009751319885253906, 0.004638671875, 0.01345062255859375, -0.0233612060546875, -0.007183074951171875, -0.0341796875, -0.027679443359375, -0.0645751953125, -0.070068359375, 0.054779052734375, -0.0011129379272460938, -0.02337646484375, -0.019989013671875, 0.00783538818359375, 0.004024505615234375, -0.03253173828125, -0.0021724700927734375, -0.047943115234375, -0.024017333984375, 0.0037136077880859375, 0.0168304443359375, 0.0662841796875, -0.037445068359375, 0.0755615234375, 0.0032176971435546875, 0.05804443359375, 0.01517486572265625, -0.0262603759765625, -0.0165252685546875, 0.01535797119140625, 0.02630615234375, 0.03179931640625, 0.0030040740966796875, 0.01197052001953125, 0.020904541015625, -0.0235748291015625, -0.00601959228515625, -0.0182037353515625, -0.0450439453125, -0.0438232421875, 0.02325439453125, 0.0726318359375, 0.010772705078125, -0.004276275634765625, -0.055084228515625, -0.03741455078125, 0.052825927734375, -0.0022735595703125, -0.01032257080078125, -0.054351806640625, -0.0015592575073242188, 0.0284881591796875, 0.003704071044921875, 0.011810302734375, 0.0033092498779296875, -0.01305389404296875, -0.0165557861328125, 0.00508880615234375, -0.03826904296875, -0.0011110305786132812, -0.0037899017333984375, 0.0070953369140625, -0.0305023193359375, -0.0323486328125, -0.006343841552734375, 0.011383056640625, -0.039794921875, -0.03167724609375, 0.0017547607421875, 0.0173492431640625, -0.018157958984375, 0.01849365234375, 0.00826263427734375, 0.017791748046875, -0.040130615234375, -0.01226043701171875, -0.01165008544921875, 0.029571533203125, 0.01126861572265625, 0.036041259765625, -0.02484130859375, 0.013519287109375, 0.0235748291015625, -0.0181732177734375, 0.004932403564453125, 0.0168609619140625, -0.0033588409423828125, 0.028289794921875, 0.002361297607421875, -0.02423095703125, 0.0352783203125, -0.039306640625, 0.014129638671875, 0.0290985107421875, 0.03546142578125, -0.01514434814453125, 0.0254364013671875, 0.004848480224609375, 0.029205322265625, 0.0010385513305664062 ]
e58dc9371df8b83346004e8d4e555a9b1c8c1116
Wordpress Stackexchange Q: Chrome Version 44.0.2403.89 m is trying to force HTTPS With the release of Chrome Version 44.0.2403.89 m, I've noticed that our site is now completely broken. All of the HTTP URLs are being redirected to HTTPS URLs, which is a problem because our site does not support HTTPS. Please note, this is not happening in any other browser, and was working on the previous Chrome release. I've tried to replace all of our stylesheet calls with relative links, and that has worked, but the images that are loaded in automatically or through absolute paths as well as the navigation is still broken. Please see below image for the error page that is thrown when navigating, after accepting the security warning and proceeding. Anyone have any advice as far as updating perhaps the .htaccess file goes, or something in functions? Thanks. A: Solution 1: Enable mod_header on the server and added this rule to my appache2.conf file: <IfModule mod_headers.c> RequestHeader unset HTTPS </IfModule> Solution 2: Or you need to add the code to fonction.php file of your current theme: function https_chrome44fix() { $_SERVER['HTTPS'] = false; } add_action('init', 'https_chrome44fix',0);
Q: Chrome Version 44.0.2403.89 m is trying to force HTTPS With the release of Chrome Version 44.0.2403.89 m, I've noticed that our site is now completely broken. All of the HTTP URLs are being redirected to HTTPS URLs, which is a problem because our site does not support HTTPS. Please note, this is not happening in any other browser, and was working on the previous Chrome release. I've tried to replace all of our stylesheet calls with relative links, and that has worked, but the images that are loaded in automatically or through absolute paths as well as the navigation is still broken. Please see below image for the error page that is thrown when navigating, after accepting the security warning and proceeding. Anyone have any advice as far as updating perhaps the .htaccess file goes, or something in functions? Thanks. A: Solution 1: Enable mod_header on the server and added this rule to my appache2.conf file: <IfModule mod_headers.c> RequestHeader unset HTTPS </IfModule> Solution 2: Or you need to add the code to fonction.php file of your current theme: function https_chrome44fix() { $_SERVER['HTTPS'] = false; } add_action('init', 'https_chrome44fix',0); A: This seems to be a bug that affects only Apache which is sending the user value for the header HTTPS as unprefixed header HTTPS instead of HTTP_HTTPS. You should be able to fix that with a simple plugin: if ( empty ( $_SERVER['SERVER_SOFTWARE'] ) ) return; if ( FALSE === stristr( $_SERVER['SERVER_SOFTWARE'], 'apache' ) ) return; if ( empty ( $_SERVER['HTTPS'] ) ) return; if ( '1' === $_SERVER['HTTPS'] ) $_SERVER['HTTPS'] = FALSE; if ( '1' === $_SERVER['HTTP_HTTPS'] ) $_SERVER['HTTP_HTTPS'] = FALSE; A: WooCommerce has released an update fixing this problem (at least for me) Fix - Fixed Google Chrome forcing to use SSL. This can cause some issues on websites behind load balancers or reverse proxies. Read more. Detailed notes at their blog post or in GitHub. Make sure to refresh your caching plugins after updating, if you are using one. A: The problem is the last update of google chrome. You can use this to resolve until the new release of chrome See also this page for more info A: You need to add the code to fonction.php file of your current theme: if (!is_ssl()) { $_SERVER['HTTPS'] = false; }
wordpress
{ "language": "en", "length": 381, "provenance": "stackexchange_00019.jsonl.gz:457530", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/195377" }
[ 0.0218048095703125, 0.0027923583984375, -0.022125244140625, -0.00426483154296875, 0.01499176025390625, -0.0244598388671875, 0.029815673828125, -0.0254669189453125, -0.00988006591796875, 0.012054443359375, 0.005329132080078125, 0.016204833984375, -0.010009765625, -0.0340576171875, 0.033477783203125, 0.0009484291076660156, 0.0404052734375, -0.043548583984375, -0.0108489990234375, -0.01409149169921875, -0.01470184326171875, 0.0299224853515625, 0.021240234375, 0.030181884765625, -0.00917816162109375, 0.0328369140625, 0.06170654296875, -0.0267486572265625, -0.0059356689453125, -0.01302337646484375, 0.0015344619750976562, -0.00157928466796875, 0.0186309814453125, 0.06146240234375, -0.09674072265625, -0.05718994140625, -0.030792236328125, 0.037384033203125, -0.03680419921875, 0.024627685546875, 0.0125579833984375, -0.0154266357421875, 0.08551025390625, 0.03289794921875, 0.0284271240234375, -0.0254974365234375, 0.0310211181640625, -0.081298828125, -0.00414276123046875, 0.0261993408203125, 0.0352783203125, 0.046051025390625, 0.0340576171875, -0.0015001296997070312, -0.0134735107421875, -0.0104522705078125, -0.0225982666015625, 0.0248870849609375, 0.0163726806640625, 0.047027587890625, 0.0043487548828125, 0.0209503173828125, -0.03277587890625, -0.051239013671875, -0.0244140625, -0.0236663818359375, -0.006351470947265625, 0.003185272216796875, -0.033294677734375, -0.020538330078125, 0.04608154296875, -0.02203369140625, -0.002269744873046875, -0.03961181640625, -0.00013315677642822266, 0.0039005279541015625, -0.01174163818359375, -0.0303192138671875, 0.0082244873046875, -0.00992584228515625, 0.0205535888671875, 0.0181121826171875, -0.061279296875, 0.000560760498046875, 0.0215911865234375, 0.0367431640625, -0.00559234619140625, -0.0465087890625, 0.0112152099609375, -0.0003695487976074219, -0.009979248046875, -0.026947021484375, 0.0152435302734375, 0.0151519775390625, -0.0114593505859375, -0.041748046875, 0.0283966064453125, 0.0408935546875, 0.03460693359375, 0.006992340087890625, -0.0006666183471679688, -0.05120849609375, -0.01345062255859375, -0.0223846435546875, -0.007595062255859375, 0.036285400390625, -0.00872039794921875, -0.0059967041015625, 0.011260986328125, 0.01509857177734375, 0.0013952255249023438, -0.004642486572265625, -0.01519012451171875, -0.0022335052490234375, -0.0237579345703125, -0.00717926025390625, -0.041656494140625, -0.0179443359375, -0.0263519287109375, -0.00939178466796875, 0.01513671875, 0.0257415771484375, -0.00264739990234375, 0.0025272369384765625, -0.004138946533203125, -0.00731658935546875, -0.0152435302734375, -0.0204620361328125, 0.0161590576171875, -0.004657745361328125, -0.035430908203125, 0.0101318359375, 0.0618896484375, 0.046905517578125, 0.032958984375, -0.007659912109375, 0.0251007080078125, -0.01375579833984375, -0.04510498046875, 0.0281829833984375, 0.02191162109375, -0.0144195556640625, -0.0095977783203125, -0.0199432373046875, 0.0753173828125, 0.0057830810546875, 0.020538330078125, 0.026519775390625, 0.008026123046875, -0.0264129638671875, 0.048248291015625, 0.0261383056640625, 0.03985595703125, 0.0163116455078125, -0.0116119384765625, -0.019622802734375, 0.06158447265625, -0.048980712890625, -0.018798828125, -0.0733642578125, 0.017974853515625, 0.007694244384765625, 0.0091094970703125, -0.0084075927734375, -0.01071929931640625, -0.032928466796875, -0.0193939208984375, 0.007625579833984375, 0.0264434814453125, 0.052734375, -0.042144775390625, -0.0185089111328125, -0.0072479248046875, 0.0318603515625, 0.005115509033203125, 0.03564453125, 0.001270294189453125, -0.0014753341674804688, 0.0235748291015625, 0.0239105224609375, -0.011383056640625, -0.0299224853515625, 0.024749755859375, -0.02105712890625, 0.006732940673828125, 0.033477783203125, -0.01271820068359375, -0.0013942718505859375, 0.00896453857421875, 0.0019245147705078125, -0.0287322998046875, 0.045623779296875, -0.018951416015625, 0.044036865234375, -0.0222625732421875, -0.060455322265625, -0.0031833648681640625, 0.005359649658203125, -0.0231781005859375, 0.0015621185302734375, 0.0462646484375, 0.0276336669921875, -0.03363037109375, 0.0169219970703125, 0.00270843505859375, -0.0157623291015625, 0.00844573974609375, -0.0016069412231445312, -0.0098419189453125, 0.030670166015625, 0.00449371337890625, -0.0290985107421875, -0.01216888427734375, 0.00699615478515625, 0.0225830078125, 0.0174102783203125, -0.00933837890625, 0.09234619140625, -0.003185272216796875, 0.067626953125, -0.01457977294921875, -0.06646728515625, 0.0093536376953125, 0.0002803802490234375, 0.0166168212890625, 0.0229339599609375, -0.028717041015625, 0.00989532470703125, 0.031768798828125, 0.01226806640625, 0.004467010498046875, 0.01464080810546875, 0.0362548828125, 0.06256103515625, -0.0200347900390625, 0.0012416839599609375, -0.00267791748046875, -0.04266357421875, 0.0097198486328125, 0.03814697265625, 0.0391845703125, -0.00806427001953125, -0.05133056640625, -0.0740966796875, 0.05889892578125, -0.0133056640625, 0.0052337646484375, -0.032501220703125, -0.0238037109375, -0.012939453125, 0.00634002685546875, 0.0012102127075195312, 0.0205535888671875, -0.00963592529296875, -0.013763427734375, 0.033447265625, 0.01446533203125, 0.0005598068237304688, -0.020843505859375, 0.0020732879638671875, 0.006744384765625, -0.03167724609375, -0.05572509765625, 0.0038204193115234375, 0.0286865234375, -0.052490234375, 0.0239410400390625, 0.0031070709228515625, 0.00988006591796875, -0.05755615234375, 0.01110076904296875, -0.024871826171875, -0.0039520263671875, 0.03424072265625, 0.047515869140625, -0.0179901123046875, -0.0267181396484375, -0.0019550323486328125, 0.01038360595703125, 0.0198211669921875, 0.0101470947265625, 0.0281982421875, 0.0166778564453125, -0.0094146728515625, 0.0003020763397216797, 0.006298065185546875, 0.0244293212890625, 0.0291595458984375, 0.01690673828125, 0.0194091796875, 0.039031982421875, -0.0070037841796875, -0.00635528564453125, 0.00852203369140625, 0.00945281982421875, -0.017364501953125, 0.048004150390625, -0.01403045654296875, 0.01229095458984375, 0.0238189697265625, 0.11322021484375, 0.0626220703125, -0.026397705078125, 0.05828857421875, 0.004100799560546875, -0.00531768798828125, 0.040863037109375, -0.01110076904296875, -0.0153350830078125, 0.00543975830078125, -0.06414794921875, -0.037139892578125, 0.0267181396484375, -0.032440185546875, 0.038787841796875, 0.00989532470703125, -0.01383209228515625, 0.00435638427734375, -0.10052490234375, -0.10357666015625, -0.043975830078125, -0.0212554931640625, -0.0224761962890625, 0.02117919921875, -0.0006685256958007812, 0.02191162109375, 0.0374755859375, 0.01715087890625, -0.02978515625, -0.012420654296875, -0.056854248046875, -0.0467529296875, -0.049224853515625, 0.02142333984375, -0.025970458984375, 0.0291900634765625, 0.005138397216796875, 0.006832122802734375, -0.003627777099609375, -0.0146484375, -0.0072021484375, 0.0183868408203125, 0.0026149749755859375, -0.03564453125, -0.0247955322265625, 0.0116424560546875, -0.0213470458984375, 0.005092620849609375, 0.0043487548828125, 0.0126953125, -0.017822265625, -0.0012159347534179688, -0.043792724609375, -0.035736083984375, -0.011322021484375, 0.0128326416015625, 0.0240478515625, -0.0689697265625, -0.015106201171875, -0.0770263671875, 0.009857177734375, 0.0005998611450195312, -0.02081298828125, -0.01605224609375, 0.0272216796875, -0.033660888671875, -0.0034503936767578125, -0.0181884765625, 0.005855560302734375, 0.0340576171875, 0.0509033203125, -0.00945281982421875, 0.002941131591796875, -0.0291900634765625, -0.01947021484375, -0.055389404296875, 0.05047607421875, -0.00978851318359375, 0.00206756591796875, 0.0251312255859375, -0.00335693359375, -0.00891876220703125, -0.0146331787109375, -0.03863525390625, -0.037445068359375, 0.031829833984375, -0.0260162353515625, 0.0276336669921875, -0.02056884765625, -0.0223236083984375, -0.0310516357421875, 0.062408447265625, -0.021881103515625, -0.01568603515625, -0.0036182403564453125, 0.0271148681640625, -0.01340484619140625, -0.0200653076171875, -0.0130615234375, -0.016510009765625, -0.0797119140625, -0.03271484375, -0.0250244140625, -0.03485107421875, 0.0181121826171875, -0.060302734375, 0.0018339157104492188, -0.06011962890625, 0.0115203857421875, 0.031646728515625, -0.010009765625, 0.0166015625, -0.0213623046875, 0.01097869873046875, 0.00635528564453125, -0.00612640380859375, -0.0738525390625, -0.0236053466796875, 0.0258941650390625, 0.04376220703125, -0.036376953125, 0.0310516357421875, -0.0031261444091796875, 0.08782958984375, 0.01959228515625, 0.04425048828125, -0.0166015625, -0.03704833984375, 0.0557861328125, 0.020843505859375, -0.004817962646484375, 0.0255889892578125, 0.0172882080078125, 0.02899169921875, -0.048675537109375, 0.0241546630859375, 0.0087890625, 0.0021724700927734375, 0.05120849609375, -0.07037353515625, -0.05218505859375, 0.007053375244140625, 0.005817413330078125, 0.038299560546875, 0.005069732666015625, -0.00843048095703125, 0.0015954971313476562, -0.07305908203125, 0.05010986328125, -0.04254150390625, -0.006298065185546875, 0.00682830810546875, 0.050872802734375, 0.002353668212890625, -0.006927490234375, 0.00743865966796875, 0.0216522216796875, 0.01580810546875, -0.0230712890625, 0.05560302734375, 0.01013946533203125, 0.01166534423828125, 0.049468994140625, -0.030120849609375, 0.039276123046875, 0.001995086669921875, -0.01983642578125, -0.0029888153076171875, -0.0006971359252929688, 0.0006995201110839844, 0.016326904296875, 0.0024776458740234375, 0.034088134765625, 0.03717041015625, 0.0044097900390625, 0.0059814453125, -0.0252532958984375, 0.04766845703125, -0.06329345703125, 0.0008325576782226562, -0.035003662109375, 0.0117340087890625, -0.005786895751953125, 0.0364990234375, 0.0013399124145507812, 0.01076507568359375, 0.0276947021484375, 0.0171966552734375, -0.009490966796875, -0.07476806640625, -0.0162506103515625, -0.06646728515625, 0.053497314453125, -0.10980224609375, -0.048675537109375, -0.0187530517578125, -0.0205535888671875, 0.0931396484375, 0.03204345703125, -0.0341796875, 0.0027484893798828125, -0.00022900104522705078, -0.045013427734375, 0.003932952880859375, 0.0268707275390625, 0.039794921875, -0.00238037109375, -0.01290130615234375, -0.0185089111328125, -0.01177978515625, -0.0164337158203125, -0.0531005859375, 0.01641845703125, 0.0030975341796875, -0.0009927749633789062, -0.01727294921875, 0.053955078125, 0.03515625, -0.004985809326171875, -0.0238189697265625, -0.0201416015625, -0.044952392578125, 0.00966644287109375, 0.033843994140625, -0.01496124267578125, 0.02911376953125, -0.041290283203125, 0.033843994140625, -0.042327880859375, -0.0263214111328125, 0.033294677734375, 0.037200927734375, 0.01885986328125, 0.0036830902099609375, -0.004123687744140625, 0.0207672119140625, -0.00684356689453125, 0.014068603515625, -0.01543426513671875, -0.047393798828125, -0.0157470703125, -0.02337646484375, 0.00832366943359375, -0.0202484130859375, -0.0321044921875, 0.05120849609375, -0.007633209228515625, 0.05621337890625, 0.0079803466796875, -0.0184326171875, 0.023223876953125, 0.0193328857421875, -0.0167694091796875, -0.053314208984375, -0.0036716461181640625, 0.0039043426513671875, 0.051177978515625, -0.0374755859375, -0.0207672119140625, 0.04522705078125, -0.02880859375, -0.027252197265625, 0.01068115234375, 0.0307769775390625, 0.044525146484375, 0.027069091796875, 0.008087158203125, -0.02142333984375, -0.0307769775390625, -0.0271453857421875, -0.0176544189453125, -0.01450347900390625, -0.003936767578125, -0.0167083740234375, -0.0281524658203125, -0.005397796630859375, 0.047637939453125, 0.05908203125, -0.028350830078125, -0.06817626953125, -0.03863525390625, -0.0161590576171875, 0.045257568359375, 0.077880859375, -0.0271759033203125, 0.035125732421875, 0.020599365234375, 0.04241943359375, -0.0015163421630859375, 0.019073486328125, -0.00659942626953125, -0.0284423828125, -0.005672454833984375, -0.033721923828125, -0.023712158203125, 0.0024242401123046875, -0.016082763671875, 0.00875091552734375, 0.0404052734375, -0.00612640380859375, -0.00679779052734375, 0.0032138824462890625, 0.0257568359375, -0.0260162353515625, 0.0147552490234375, 0.007266998291015625, -0.0228271484375, 0.01800537109375, 0.03533935546875, 0.00891876220703125, -0.0283050537109375, -0.006317138671875, -0.0106964111328125, 0.0220947265625, -0.01050567626953125, -0.0251312255859375, -0.037506103515625, 0.032684326171875, 0.055999755859375, 0.0181427001953125, 0.0487060546875, 0.0011043548583984375, 0.0193939208984375, 0.037139892578125, 0.01523590087890625, -0.048095703125, -0.07672119140625, -0.0254364013671875, -0.0026187896728515625, -0.0034351348876953125, -0.004215240478515625, -0.0074005126953125, -0.0003542900085449219, 0.071533203125, 0.06903076171875, -0.0830078125, -0.0018157958984375, 0.0299224853515625, -0.01445770263671875, -0.0136871337890625, -0.00971221923828125, -0.01029205322265625, -0.03802490234375, 0.008575439453125, 0.0131072998046875, -0.036590576171875, -0.013885498046875, 0.024505615234375, -0.008575439453125, -0.006988525390625, 0.0106201171875, 0.004909515380859375, -0.0157928466796875, -0.005573272705078125, -0.0016527175903320312, -0.002315521240234375, 0.004913330078125, 0.0206451416015625, -0.0254974365234375, -0.025543212890625, -0.05804443359375, -0.04229736328125, -0.0102386474609375, -0.0311279296875, -0.004566192626953125, 0.00685882568359375, 0.0199432373046875, 0.054046630859375, -0.00862884521484375, -0.006397247314453125, 0.03375244140625, -0.03009033203125, 0.06378173828125, 0.0013780593872070312, -0.0072174072265625, 0.0166015625, -0.005062103271484375, -0.0027294158935546875, -0.0011167526245117188, 0.00336456298828125, -0.01126861572265625, -0.0077667236328125, 0.034210205078125, 0.005435943603515625, -0.03363037109375, 0.018035888671875, 0.043121337890625, 0.0007181167602539062, 0.00881195068359375, 0.01551055908203125, -0.0160980224609375, 0.0189056396484375, -0.0025691986083984375, -0.006404876708984375, -0.0172882080078125, 0.005413055419921875, -0.028106689453125, 0.08062744140625, 0.0018720626831054688, 0.01107025146484375, 0.0188751220703125, 0.02978515625, -0.03302001953125, 0.0158538818359375, 0.0235443115234375, 0.0281524658203125, -0.01418304443359375, -0.00254058837890625, -0.0227813720703125, -0.0120697021484375, 0.0028553009033203125, 0.07421875, 0.034393310546875, 0.009796142578125, -0.04083251953125, -0.027130126953125, 0.03619384765625, 0.06494140625, 0.0182952880859375, 0.0389404296875, -0.0302581787109375, -0.0496826171875, 0.03387451171875, 0.00977325439453125, 0.032928466796875, 0.001491546630859375, -0.020843505859375, -0.0304412841796875, 0.022552490234375, -0.003429412841796875, 0.027679443359375, 0.0117950439453125, -0.060577392578125, 0.017578125, 0.04315185546875, 0.0182952880859375, -0.0043792724609375, -0.0305938720703125, -0.0308837890625, -0.044952392578125, 0.0206451416015625, -0.0255279541015625, 0.035186767578125, -0.008209228515625, -0.01947021484375, -0.01134490966796875, -0.00846099853515625, -0.01241302490234375, 0.008026123046875, -0.01293182373046875, 0.059051513671875, -0.0173492431640625, 0.03436279296875, 0.005352020263671875, 0.0113372802734375, -0.0419921875, 0.0221405029296875, 0.0224151611328125, 0.045684814453125, -0.0391845703125, -0.0623779296875, -0.00982666015625, -0.0208587646484375, 0.04541015625, 0.0212860107421875, 0.0413818359375, -0.047882080078125, -0.02264404296875, 0.03253173828125, 0.005870819091796875, 0.005008697509765625, 0.0012454986572265625, 0.0309295654296875, 0.072265625, -0.0399169921875, 0.03314208984375, -0.06414794921875, -0.00803375244140625, 0.01580810546875, 0.07537841796875, 0.039642333984375, 0.0543212890625, 0.026702880859375, -0.038177490234375, 0.001590728759765625, 0.032073974609375, 0.004581451416015625, -0.0131988525390625, 0.0031528472900390625, -0.0313720703125, 0.005367279052734375, 0.029327392578125, 0.0244903564453125, -0.036102294921875, 0.01806640625, 0.037109375, 0.016021728515625, -0.0035686492919921875, 0.04412841796875, 0.0193023681640625, 0.01397705078125, -0.037506103515625, -0.01557159423828125, -0.00870513916015625, -0.031036376953125, 0.049560546875, -0.040283203125, 0.038055419921875, 0.041717529296875, 0.04046630859375, 0.0136260986328125, -0.00150299072265625, 0.006969451904296875, 0.000499725341796875, 0.040008544921875, 0.06060791015625, 0.0034542083740234375, 0.0211639404296875, -0.004730224609375, -0.060546875, 0.00066375732421875, 0.01291656494140625, -0.00787353515625, 0.0232086181640625, -0.017059326171875, -0.019866943359375, 0.0043792724609375, 0.0167694091796875, -0.0079498291015625, 0.03131103515625, 0.022247314453125, 0.0034351348876953125, 0.0014066696166992188, -0.0194854736328125, 0.01084136962890625, 0.0288848876953125, -0.01239013671875, 0.0911865234375, -0.04937744140625, 0.01165771484375, 0.031494140625, -0.036834716796875, 0.0297698974609375, 0.0361328125, -0.0300445556640625, -0.006954193115234375, 0.004100799560546875, -0.0190887451171875, -0.08551025390625, 0.03790283203125, -0.00762939453125, 0.007190704345703125, 0.01314544677734375, 0.001041412353515625, 0.01229095458984375, 0.0181121826171875, -0.036224365234375, -0.06524658203125, -0.1094970703125, -0.05548095703125, 0.046630859375, -0.04534912109375, -0.0252532958984375, -0.032745361328125, 0.01275634765625, 0.01094818115234375, -0.0201263427734375, 0.01019287109375, -0.01312255859375, 0.0020694732666015625, 0.023193359375, 0.0008940696716308594, 0.0222930908203125, 0.0034542083740234375, -0.0160369873046875, 0.022064208984375, 0.01959228515625, -0.017486572265625, 0.009063720703125, 0.03912353515625, -0.009521484375, 0.0400390625, 0.035858154296875, -0.0215606689453125, 0.01259613037109375, 0.0216064453125, -0.025482177734375, -0.0138702392578125, 0.0184783935546875, 0.004573822021484375, 0.0232391357421875, -0.044036865234375, -0.022796630859375, 0.0157470703125, -0.058837890625, 0.006908416748046875, 0.01397705078125, 0.0240936279296875, -0.018646240234375, 0.0135955810546875, -0.031494140625, -0.034912109375, 0.074462890625, -0.0171966552734375, 0.0257720947265625, 0.0097808837890625, 0.05413818359375, -0.06689453125, -0.0269622802734375, -0.00075531005859375, 0.0033779144287109375, -0.03729248046875, -0.0190582275390625, 0.039520263671875, 0.005771636962890625, -0.0193023681640625, -0.03765869140625, -0.0052032470703125, 0.01447296142578125, -0.05059814453125, -0.020599365234375, 0.02008056640625, -0.002620697021484375, -0.050506591796875, -0.05596923828125, 0.0214385986328125, -0.05914306640625, -0.002445220947265625, 0.04693603515625, -0.036285400390625, -0.005016326904296875, -0.02044677734375, -0.0257720947265625, 0.0131988525390625, 0.0249786376953125, -0.0238189697265625, -0.027099609375, -0.01318359375, -0.0164031982421875, 0.0238800048828125, 0.00284576416015625, -0.016754150390625, -0.01335906982421875, 0.05126953125, 0.01142120361328125, 0.0460205078125, -0.004184722900390625, 0.06378173828125, 0.0474853515625, 0.06976318359375, 0.040924072265625, -0.02545166015625, -0.0022068023681640625, -0.007175445556640625, 0.03985595703125, 0.039764404296875, -0.0211181640625, 0.0205230712890625, 0.00279998779296875, -0.00704193115234375, 0.007160186767578125, 0.0116119384765625, -0.0211181640625, -0.0286102294921875, -0.006465911865234375, 0.032867431640625, -0.002559661865234375, 0.01154327392578125, -0.056396484375, -0.03765869140625, 0.01323699951171875, 0.0005726814270019531, 0.0019407272338867188, -0.033294677734375, 0.0261383056640625, 0.00577545166015625, -0.00829315185546875, 0.023101806640625, 0.0002486705780029297, -0.0059814453125, -0.0005793571472167969, -0.00022137165069580078, -0.066650390625, 0.027679443359375, 0.03228759765625, 0.09783935546875, -0.07177734375, -0.0130767822265625, 0.0128631591796875, 0.002040863037109375, 0.03594970703125, -0.051055908203125, 0.0648193359375, 0.05108642578125, -0.044189453125, 0.005428314208984375, 0.0467529296875, -0.01358795166015625, -0.0302734375, -0.039825439453125, -0.023712158203125, -0.006557464599609375, 0.00479888916015625, -0.0203857421875, 0.01259613037109375, -0.00272369384765625, 0.004364013671875, 0.050506591796875, -0.0250396728515625, -0.022674560546875, -0.0231475830078125, 0.038177490234375, -0.010162353515625, -0.00803375244140625, 0.0501708984375, -0.0528564453125, 0.015960693359375, 0.022918701171875, 0.0220794677734375, 0.00748443603515625, 0.019805908203125, -0.0222625732421875, 0.0036792755126953125, -0.004161834716796875 ]
954627682c9bfaa7a0dde2fa77e8fc364c5b3556
Wordpress Stackexchange Q: WooCommerce - Create Products Programatically I'm writing a plugin that will automatically import products via JSON API. I need to programatically create/update products. I did a research and it seems everyone is using wp_insert_post() and update_post_meta() for this, ie this and this However, I found that there's the class-wc-api-products, where are various functions for adding/editing products and variations. Is there any reason why people don't use something like: $wc = new WC_API_Products(); $wc->create_product( $data ); It seems to me more future-proof to use native WC classes for this, am I wrong? A: Technically speaking, Woocommerce products are just another WordPress post object with a customized post type (which is product in this case). If you take a look at the create_product function inside class-wc-api-products.php, you'll see this line: // Attempts to create the new product $id = wp_insert_post( $new_product, true ); So the API ends up using wp_insert_post eventually. I guess you can do both but it's obviously using what WooCommerce API provides to create a WooCommerce product is a better way to go.
Q: WooCommerce - Create Products Programatically I'm writing a plugin that will automatically import products via JSON API. I need to programatically create/update products. I did a research and it seems everyone is using wp_insert_post() and update_post_meta() for this, ie this and this However, I found that there's the class-wc-api-products, where are various functions for adding/editing products and variations. Is there any reason why people don't use something like: $wc = new WC_API_Products(); $wc->create_product( $data ); It seems to me more future-proof to use native WC classes for this, am I wrong? A: Technically speaking, Woocommerce products are just another WordPress post object with a customized post type (which is product in this case). If you take a look at the create_product function inside class-wc-api-products.php, you'll see this line: // Attempts to create the new product $id = wp_insert_post( $new_product, true ); So the API ends up using wp_insert_post eventually. I guess you can do both but it's obviously using what WooCommerce API provides to create a WooCommerce product is a better way to go.
wordpress
{ "language": "en", "length": 175, "provenance": "stackexchange_00019.jsonl.gz:457559", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/195492" }
[ 0.0167694091796875, -0.029937744140625, -0.0242767333984375, -0.0299072265625, -0.01126861572265625, -0.0250091552734375, 0.0235137939453125, 0.02520751953125, -0.036346435546875, 0.0181121826171875, -0.0281524658203125, -0.012420654296875, -0.026123046875, -0.0003771781921386719, -0.00940704345703125, -0.062164306640625, 0.033660888671875, -0.00927734375, 0.01715087890625, -0.0026950836181640625, 0.00650787353515625, 0.02667236328125, 0.013885498046875, 0.025726318359375, 0.01187896728515625, -0.0159912109375, 0.060699462890625, -0.035308837890625, 0.033050537109375, -0.01291656494140625, 0.02349853515625, -0.005645751953125, 0.019561767578125, 0.0009665489196777344, 0.005023956298828125, 0.0252838134765625, 0.02777099609375, -0.00788116455078125, 0.02484130859375, 0.003509521484375, 0.0406494140625, -0.0225830078125, -0.0001150369644165039, 0.03826904296875, 0.0050201416015625, -0.0406494140625, 0.0210418701171875, -0.042327880859375, 0.0247650146484375, 0.0205841064453125, 0.004428863525390625, 0.0217132568359375, 0.01111602783203125, 0.0037746429443359375, -0.0162811279296875, -0.01035308837890625, -0.030975341796875, -0.01235198974609375, 0.0411376953125, -0.0032806396484375, -0.0239410400390625, -0.043731689453125, 0.040985107421875, -0.01340484619140625, 0.02618408203125, 0.0008959770202636719, 0.01739501953125, 0.0357666015625, -0.041046142578125, 0.0235443115234375, 0.0243988037109375, -0.0262908935546875, 0.0106201171875, 0.0222320556640625, 0.012786865234375, -0.06707763671875, 0.01203155517578125, -0.00616455078125, 0.0178985595703125, 0.0408935546875, 0.042266845703125, 0.0200347900390625, 0.06610107421875, -0.065673828125, 0.0219573974609375, -0.046051025390625, 0.0033359527587890625, -0.005016326904296875, -0.01271820068359375, -0.03472900390625, -0.01306915283203125, -0.07025146484375, -0.0253143310546875, 0.043487548828125, -0.0229949951171875, 0.0005159378051757812, -0.01404571533203125, -0.0211334228515625, 0.0167236328125, 0.053955078125, 0.057708740234375, -0.08770751953125, 0.1209716796875, -0.041107177734375, 0.01146697998046875, 0.020263671875, -0.007183074951171875, -0.060150146484375, 0.00441741943359375, 0.01134490966796875, -0.0148468017578125, 0.037933349609375, 0.00830078125, -0.036102294921875, -0.004711151123046875, 0.026397705078125, 0.005146026611328125, 0.0037326812744140625, 0.01215362548828125, -0.01348876953125, -0.0083465576171875, 0.0113372802734375, 0.012664794921875, 0.00432586669921875, 0.01654052734375, 0.0152435302734375, -0.01125335693359375, -0.0172882080078125, -0.0189208984375, -0.0194854736328125, -0.0284881591796875, 0.0305938720703125, 0.0997314453125, 0.048004150390625, 0.0179901123046875, 0.0099639892578125, 0.015869140625, 0.01119232177734375, -0.002063751220703125, -0.0078887939453125, 0.044281005859375, 0.0169219970703125, -0.0014886856079101562, 0.006092071533203125, 0.0572509765625, -0.0102386474609375, 0.01232147216796875, 0.031951904296875, 0.029815673828125, 0.0240936279296875, 0.017059326171875, 0.018035888671875, -0.0179443359375, 0.00574493408203125, 0.085205078125, -0.0053863525390625, 0.05096435546875, -0.036468505859375, 0.04107666015625, -0.0019330978393554688, -0.0221099853515625, -0.009033203125, 0.03753662109375, -0.045318603515625, -0.049530029296875, 0.0242919921875, -0.0265655517578125, -0.01535797119140625, 0.0248870849609375, 0.04864501953125, -0.015289306640625, -0.0119781494140625, 0.019989013671875, -0.00518798828125, -0.0237274169921875, -0.0022563934326171875, 0.0162506103515625, -0.009735107421875, 0.045135498046875, 0.021728515625, -0.021484375, -0.0164947509765625, 0.09393310546875, -0.0450439453125, -0.037628173828125, 0.0335693359375, 0.035491943359375, 0.06378173828125, -0.03680419921875, 0.02691650390625, 0.04803466796875, 0.0482177734375, -0.033172607421875, 0.026885986328125, -0.0229949951171875, -0.057220458984375, 0.02191162109375, -0.012603759765625, -0.0126495361328125, 0.02423095703125, -0.015594482421875, 0.01861572265625, 0.00225067138671875, 0.03350830078125, -0.0244293212890625, 0.022918701171875, -0.011444091796875, 0.039031982421875, -0.04498291015625, 0.018280029296875, 0.03057861328125, -0.01427459716796875, -0.01119232177734375, -0.0186309814453125, 0.0007338523864746094, -0.04290771484375, -0.018341064453125, 0.06451416015625, 0.007442474365234375, 0.05413818359375, 0.027923583984375, -0.04022216796875, 0.0308685302734375, 0.000774383544921875, 0.0328369140625, 0.00537872314453125, -0.00550079345703125, -0.01043701171875, 0.059814453125, 0.0204315185546875, 0.0229949951171875, -0.0165252685546875, 0.029937744140625, -0.0017948150634765625, -0.019927978515625, 0.0006566047668457031, -0.00740814208984375, -0.09259033203125, -0.0086212158203125, 0.06512451171875, 0.02178955078125, 0.021026611328125, -0.00592803955078125, 0.01605224609375, 0.0928955078125, 0.022186279296875, 0.0066680908203125, 0.00325775146484375, -0.0142669677734375, 0.054962158203125, -0.015594482421875, 0.0208892822265625, -0.006786346435546875, -0.0767822265625, -0.0085906982421875, 0.04339599609375, -0.027313232421875, -0.00046825408935546875, 0.01238250732421875, -0.0236968994140625, -0.01165771484375, -0.04742431640625, 0.00926971435546875, -0.036285400390625, 0.057525634765625, -0.0032558441162109375, 0.050018310546875, 0.026458740234375, -0.019195556640625, -0.0020465850830078125, 0.007183074951171875, -0.0182342529296875, -0.00836944580078125, 0.01129150390625, 0.00881195068359375, -0.04132080078125, -0.062408447265625, 0.0163116455078125, 0.033416748046875, -0.0217437744140625, 0.0038394927978515625, 0.0435791015625, 0.0018777847290039062, -0.00991058349609375, -0.01296234130859375, -0.046051025390625, 0.0009026527404785156, 0.01251983642578125, 0.0173187255859375, -0.020965576171875, 0.015869140625, 0.00046944618225097656, -0.05023193359375, 0.052734375, 0.007587432861328125, -0.03936767578125, 0.032806396484375, -0.009735107421875, 0.036712646484375, -0.0239105224609375, 0.0020961761474609375, 0.0298004150390625, -0.041168212890625, 0.0225677490234375, 0.0007619857788085938, 0.0048828125, -0.0108489990234375, 0.00577545166015625, -0.00905609130859375, -0.0099334716796875, -0.0308990478515625, 0.0267181396484375, 0.035064697265625, 0.100341796875, 0.006229400634765625, -0.04632568359375, 0.0232696533203125, 0.06689453125, -0.03521728515625, -0.08294677734375, -0.0058135986328125, -0.04534912109375, 0.01666259765625, -0.0256805419921875, -0.0245819091796875, -0.005645751953125, -0.0153045654296875, 0.016754150390625, -0.0545654296875, -0.0016927719116210938, 0.01195526123046875, -0.04278564453125, -0.0162200927734375, -0.0036830902099609375, -0.00036072731018066406, -0.0031604766845703125, 0.0037593841552734375, 0.01020050048828125, -0.008331298828125, -0.0379638671875, -0.01220703125, 0.05352783203125, -0.0133514404296875, -0.0197296142578125, 0.00794219970703125, -0.0267333984375, 0.004566192626953125, -0.0007152557373046875, 0.0166015625, 0.038299560546875, -0.037017822265625, 0.00927734375, 0.00788116455078125, 0.0029468536376953125, 0.01336669921875, 0.0252532958984375, -0.01031494140625, 0.022216796875, 0.0164337158203125, -0.0289459228515625, -0.0189971923828125, 0.026336669921875, -0.00366973876953125, 0.03326416015625, -0.031707763671875, -0.00701141357421875, 0.017578125, 0.042022705078125, -0.0034046173095703125, 0.0058135986328125, 0.0193634033203125, -0.015838623046875, -0.00675201416015625, -0.0157928466796875, -0.034149169921875, -0.0205841064453125, 0.06036376953125, -0.00893402099609375, -0.016387939453125, 0.02734375, 0.01312255859375, 0.0006318092346191406, 0.00617218017578125, -0.03875732421875, -0.0538330078125, 0.03515625, -0.0245208740234375, 0.024261474609375, -0.0286102294921875, -0.017059326171875, 0.0150299072265625, 0.09375, 0.0231781005859375, -0.0009131431579589844, 0.0029392242431640625, 0.0095367431640625, -0.06298828125, -0.025634765625, -0.06280517578125, 0.01319122314453125, 0.0235748291015625, 0.0059814453125, -0.00936126708984375, 0.000028133392333984375, -0.0306396484375, 0.00384521484375, -0.008697509765625, -0.0081634521484375, 0.0271759033203125, -0.0535888671875, 0.0029144287109375, 0.0384521484375, 0.002170562744140625, -0.0122528076171875, 0.0013256072998046875, -0.0299224853515625, -0.05706787109375, 0.00537872314453125, -0.0157928466796875, 0.03363037109375, 0.01198577880859375, -0.00255584716796875, -0.023681640625, 0.01554107666015625, -0.02301025390625, 0.0268402099609375, -0.00788116455078125, 0.044921875, -0.030609130859375, -0.0382080078125, -0.0115509033203125, -0.036895751953125, -0.0241851806640625, -0.06329345703125, -0.00017368793487548828, 0.0240478515625, -0.00826263427734375, 0.07080078125, -0.03265380859375, 0.026092529296875, -0.0657958984375, -0.0494384765625, 0.006671905517578125, 0.024261474609375, -0.01264190673828125, 0.017181396484375, -0.036529541015625, -0.05767822265625, 0.050994873046875, -0.04937744140625, -0.0009632110595703125, -0.0010776519775390625, 0.127197265625, 0.0164031982421875, 0.0033855438232421875, -0.0369873046875, 0.03125, 0.016448974609375, 0.02886962890625, 0.0031948089599609375, -0.037200927734375, -0.007511138916015625, 0.014495849609375, -0.0187530517578125, -0.0078277587890625, 0.038848876953125, 0.029998779296875, 0.00011819601058959961, -0.01468658447265625, 0.0015020370483398438, 0.0000743865966796875, -0.019073486328125, -0.00911712646484375, -0.0255584716796875, -0.0019207000732421875, 0.0013866424560546875, 0.031585693359375, -0.006046295166015625, 0.003406524658203125, -0.048980712890625, -0.047821044921875, 0.02789306640625, 0.0036716461181640625, -0.06829833984375, -0.0078582763671875, 0.0057373046875, -0.046722412109375, -0.08087158203125, 0.0256195068359375, -0.0164337158203125, -0.0206451416015625, -0.01010894775390625, 0.0121612548828125, 0.00984954833984375, 0.0171356201171875, -0.0210418701171875, -0.004238128662109375, 0.0185546875, 0.0003848075866699219, -0.0157318115234375, -0.03887939453125, -0.0145416259765625, 0.004367828369140625, 0.004436492919921875, -0.032684326171875, 0.0438232421875, 0.0235595703125, -0.0182952880859375, -0.01186370849609375, -0.07928466796875, 0.001972198486328125, -0.05712890625, -0.01309967041015625, 0.0220489501953125, -0.0159149169921875, 0.0116424560546875, 0.062103271484375, -0.0013341903686523438, 0.0419921875, -0.019927978515625, 0.045013427734375, 0.03643798828125, 0.049530029296875, 0.0196075439453125, -0.0276336669921875, -0.00843048095703125, 0.003021240234375, -0.0428466796875, -0.0254058837890625, -0.033477783203125, 0.0291900634765625, 0.035736083984375, -0.046142578125, -0.0187530517578125, 0.016448974609375, -0.01384735107421875, -0.01055145263671875, -0.0264892578125, -0.033172607421875, -0.00530242919921875, -0.01512908935546875, 0.032012939453125, 0.043701171875, 0.0093536376953125, 0.004367828369140625, -0.0177001953125, -0.02301025390625, -0.0207366943359375, -0.01192474365234375, -0.0091400146484375, -0.0270843505859375, -0.016021728515625, -0.0254364013671875, -0.0531005859375, -0.0133209228515625, -0.00325775146484375, 0.031890869140625, -0.037811279296875, -0.037628173828125, 0.03814697265625, -0.01271820068359375, 0.042755126953125, -0.01351165771484375, -0.034912109375, -0.0247802734375, 0.01177215576171875, 0.0289764404296875, 0.0222320556640625, 0.007568359375, -0.027557373046875, -0.0131378173828125, -0.044708251953125, 0.004589080810546875, -0.005092620849609375, -0.036834716796875, 0.007541656494140625, -0.01062774658203125, 0.026580810546875, -0.0219268798828125, -0.02471923828125, 0.025848388671875, -0.021759033203125, -0.04058837890625, -0.0243988037109375, -0.005786895751953125, 0.02996826171875, -0.014617919921875, 0.04510498046875, 0.0066070556640625, 0.01285552978515625, -0.005641937255859375, -0.016632080078125, -0.00911712646484375, -0.054046630859375, -0.012908935546875, -0.0162200927734375, -0.0017366409301757812, 0.060760498046875, 0.0599365234375, -0.00725555419921875, 0.039886474609375, -0.03155517578125, -0.005268096923828125, -0.020050048828125, 0.0350341796875, -0.04522705078125, -0.00833892822265625, 0.05621337890625, -0.05731201171875, -0.0163116455078125, 0.0338134765625, 0.0043792724609375, 0.0270233154296875, -0.019561767578125, 0.017822265625, 0.022003173828125, -0.043304443359375, 0.051971435546875, 0.04339599609375, -0.024566650390625, 0.016387939453125, -0.007450103759765625, -0.0034732818603515625, 0.019683837890625, 0.029754638671875, -0.0204925537109375, -0.0163421630859375, 0.029937744140625, -0.00026679039001464844, -0.036346435546875, 0.0080718994140625, -0.0460205078125, 0.0224761962890625, 0.03936767578125, 0.07208251953125, -0.06634521484375, 0.024566650390625, 0.0236663818359375, -0.043212890625, 0.0149383544921875, -0.0007605552673339844, -0.0087127685546875, -0.030303955078125, 0.0242462158203125, -0.01224517822265625, -0.0154876708984375, 0.006404876708984375, -0.0176544189453125, 0.0028781890869140625, 0.0316162109375, 0.0048828125, 0.0033664703369140625, -0.002593994140625, -0.0184173583984375, 0.005985260009765625, 0.012481689453125, -0.0224761962890625, -0.0011606216430664062, 0.029510498046875, -0.006778717041015625, -0.040679931640625, 0.062744140625, -0.0440673828125, 0.031158447265625, 0.0280914306640625, -0.00234222412109375, 0.05108642578125, 0.0596923828125, 0.004146575927734375, 0.00890350341796875, 0.0236053466796875, 0.03778076171875, -0.035186767578125, -0.026641845703125, 0.019622802734375, 0.040618896484375, -0.08221435546875, 0.0218963623046875, -0.04736328125, 0.024658203125, 0.0114593505859375, 0.044403076171875, 0.0236968994140625, 0.0034732818603515625, -0.025726318359375, 0.045440673828125, 0.0024204254150390625, -0.01512908935546875, -0.0235137939453125, 0.01381683349609375, -0.0232391357421875, 0.036407470703125, -0.00670623779296875, 0.036041259765625, -0.0080413818359375, -0.01470947265625, -0.07794189453125, 0.0765380859375, -0.00182342529296875, 0.0221710205078125, 0.0018939971923828125, 0.00855255126953125, -0.0258941650390625, -0.016876220703125, -0.044219970703125, 0.0203857421875, 0.00901031494140625, 0.0308685302734375, -0.033447265625, -0.007335662841796875, 0.0026187896728515625, 0.0189361572265625, 0.04852294921875, 0.000919342041015625, -0.0104827880859375, 0.00896453857421875, 0.04193115234375, -0.0220489501953125, -0.04119873046875, 0.044891357421875, -0.0111236572265625, -0.0362548828125, 0.0411376953125, -0.043212890625, 0.0046539306640625, -0.0013303756713867188, 0.037353515625, 0.0100860595703125, -0.00167083740234375, 0.0009465217590332031, -0.00042724609375, 0.043365478515625, 0.0089111328125, -0.016387939453125, -0.0022602081298828125, -0.008209228515625, 0.0034465789794921875, 0.02716064453125, 0.00237274169921875, 0.005580902099609375, 0.0138397216796875, -0.0269622802734375, 0.04217529296875, -0.002765655517578125, 0.06072998046875, 0.0435791015625, 0.0216217041015625, 0.0596923828125, 0.01012420654296875, 0.037689208984375, 0.0242919921875, -0.038818359375, 0.01097869873046875, 0.0180816650390625, 0.01308441162109375, -0.025787353515625, 0.023345947265625, 0.06787109375, 0.0206756591796875, -0.041595458984375, -0.037506103515625, -0.0017404556274414062, -0.0010833740234375, 0.041473388671875, -0.00455474853515625, 0.046173095703125, -0.0672607421875, -0.0330810546875, -0.019317626953125, 0.0203094482421875, 0.0274810791015625, -0.01322174072265625, 0.017242431640625, 0.0596923828125, -0.060302734375, 0.0203094482421875, -0.019073486328125, 0.0059356689453125, -0.00382232666015625, 0.08758544921875, 0.005344390869140625, 0.10015869140625, -0.0736083984375, -0.053863525390625, -0.0009579658508300781, 0.0141448974609375, 0.0236358642578125, -0.0027980804443359375, -0.01207733154296875, -0.0223846435546875, 0.028564453125, 0.021820068359375, -0.007171630859375, 0.1070556640625, 0.069580078125, 0.0487060546875, 0.011962890625, -0.006137847900390625, 0.034332275390625, -0.0282440185546875, -0.033447265625, -0.0182647705078125, -0.00983428955078125, -0.01081085205078125, -0.004001617431640625, 0.005718231201171875, 0.054718017578125, -0.024383544921875, -0.0565185546875, 0.0430908203125, -0.0230865478515625, -0.0423583984375, 0.059234619140625, -0.0206756591796875, 0.12249755859375, -0.033111572265625, -0.04998779296875, 0.01239013671875, -0.0299224853515625, -0.019622802734375, -0.01354217529296875, 0.005340576171875, -0.03631591796875, 0.06634521484375, 0.00919342041015625, 0.01270294189453125, 0.036712646484375, -0.036376953125, -0.012054443359375, -0.0276947021484375, 0.0305023193359375, -0.0114288330078125, -0.04498291015625, 0.0028743743896484375, -0.032501220703125, 0.0186614990234375, 0.0377197265625, 0.0521240234375, 0.00856781005859375, 0.0270233154296875, -0.02557373046875, -0.025115966796875, -0.0235137939453125, -0.015533447265625, 0.00439453125, -0.01490020751953125, -0.030242919921875, 0.0269622802734375, -0.01148223876953125, -0.031402587890625, 0.0633544921875, -0.0294189453125, -0.0164031982421875, -0.034454345703125, 0.05072021484375, -0.0174713134765625, 0.028839111328125, -0.032073974609375, -0.015716552734375, -0.02740478515625, -0.0216064453125, 0.00909423828125, -0.0308074951171875, -0.002864837646484375, 0.019287109375, -0.003520965576171875, -0.043121337890625, 0.02227783203125, -0.050567626953125, 0.02508544921875, 0.033233642578125, 0.0206298828125, 0.0132598876953125, -0.01018524169921875, -0.019805908203125, -0.0172882080078125, 0.0161285400390625, -0.00567626953125, 0.003635406494140625, -0.042755126953125, 0.00243377685546875, 0.057281494140625, 0.0247039794921875, -0.02587890625, 0.01904296875, 0.06280517578125, -0.04931640625, 0.016571044921875, -0.004993438720703125, -0.018096923828125, -0.0306396484375, 0.02447509765625, 0.0117340087890625, 0.021728515625, -0.0018014907836914062, -0.0266876220703125, -0.0088958740234375, -0.00496673583984375, -0.0131378173828125, -0.0178375244140625, 0.004322052001953125, -0.008056640625, 0.0129547119140625, -0.03662109375, -0.020294189453125, 0.00905609130859375, 0.0256195068359375, -0.0107879638671875, -0.0137176513671875, -0.040985107421875, -0.00202178955078125, -0.0271148681640625, 0.01285552978515625, 0.025146484375, -0.031280517578125, -0.036346435546875, 0.00061798095703125, 0.026519775390625, 0.029876708984375, 0.0433349609375, -0.04913330078125, 0.0177154541015625, -0.024169921875, 0.0171966552734375, -0.044647216796875, -0.002689361572265625, -0.08514404296875, 0.01117706298828125, 0.0190582275390625, 0.0130767822265625, 0.057952880859375, 0.00693511962890625, -0.038360595703125, 0.006732940673828125, 0.00855255126953125, -0.0280303955078125, -0.029571533203125, -0.004993438720703125, -0.0200042724609375, 0.0504150390625, -0.01448822021484375, -0.026123046875, -0.01113128662109375, 0.0439453125, -0.03125, 0.01702880859375, 0.042022705078125, -0.06689453125, 0.01003265380859375, -0.0240020751953125, 0.003604888916015625, -0.02093505859375, 0.0172119140625, -0.0191497802734375, 0.03955078125, 0.0313720703125, -0.0212249755859375, 0.022186279296875, 0.007110595703125, -0.006267547607421875, -0.0252532958984375, -0.0067138671875, -0.00865936279296875, -0.0206298828125, 0.060272216796875, 0.0304412841796875, 0.0182647705078125, -0.01172637939453125, 0.030914306640625, 0.024932861328125, -0.0124664306640625, 0.031890869140625, -0.00736236572265625, 0.007965087890625, 0.00339508056640625, -0.0195159912109375, 0.02313232421875, 0.006275177001953125, -0.00832366943359375, -0.005645751953125, -0.017913818359375, 0.0209808349609375, -0.00783538818359375, -0.0266265869140625, -0.027557373046875, 0.028656005859375, -0.0206451416015625, -0.015869140625, 0.01316070556640625, 0.01476287841796875, -0.01465606689453125, 0.0292205810546875, 0.0160369873046875, 0.0016117095947265625, -0.0312347412109375, 0.0131378173828125, 0.00235748291015625, 0.030731201171875, -0.00836944580078125, -0.019805908203125, -0.00646209716796875, 0.034332275390625, -0.00887298583984375, 0.0352783203125, 0.004924774169921875, 0.068603515625, 0.020416259765625, 0.0726318359375, -0.02301025390625, -0.03106689453125, -0.0401611328125, 0.03509521484375, -0.0142669677734375, 0.008636474609375, 0.0108795166015625, -0.024505615234375, -0.004589080810546875, -0.0201263427734375, -0.060821533203125, -0.039276123046875, -0.017486572265625, 0.03277587890625, -0.040435791015625, 0.012420654296875 ]
cd564ee867cf76bd289fba5a2af5fd898ff26850
Wordpress Stackexchange Q: Why can't I save permalink "360" for a page? I am trying to save my page with permalink "360" but for some reason WP keeps updating the permalink to "360-2". I have checked everywhere in my WP and there is no page or post that uses permalink "360". Is 360 a permalink for something internal? If not, what is the problem? A: The problem comes with using only numbers as URLs. Here is a forum thread in WP that discuss this issue. I'll cite Otto: WordPress 2.3 and up does not allow the post or page slugs to be all numeric. This is because that URL scheme will conflict with multi-page posts. There is no fix. Change them to something else. Alternatively, a plugin exists to allow this, if you give up on multi-page posting: http://wordpress.org/extend/plugins/allow-numeric-stubs/ More info here: http://trac.wordpress.org/ticket/5305
Q: Why can't I save permalink "360" for a page? I am trying to save my page with permalink "360" but for some reason WP keeps updating the permalink to "360-2". I have checked everywhere in my WP and there is no page or post that uses permalink "360". Is 360 a permalink for something internal? If not, what is the problem? A: The problem comes with using only numbers as URLs. Here is a forum thread in WP that discuss this issue. I'll cite Otto: WordPress 2.3 and up does not allow the post or page slugs to be all numeric. This is because that URL scheme will conflict with multi-page posts. There is no fix. Change them to something else. Alternatively, a plugin exists to allow this, if you give up on multi-page posting: http://wordpress.org/extend/plugins/allow-numeric-stubs/ More info here: http://trac.wordpress.org/ticket/5305 A: If we check out the source of the wp_unique_post_slug() function, then we see that this is expected for hierarchical post types, other than nav_menu_item. If we try for example the slugs 360 or page360, then the -n slug suffix will show up. We can play with e.g.: echo wp_unique_post_slug( $slug = '360', $post_id = '', $post_status = '', $post_type = 'page' ); or echo wp_unique_post_slug( $slug = 'page360', $post_id = '', $post_status = '', $post_type = 'page' ); to see that. One of the "bad slug" checks, within wp_unique_post_slug(), is this one: preg_match( "@^($wp_rewrite->pagination_base)?\d+$@", $slug ) It's matched in your case: preg_match( "@^(page)?\d+$@", '360' ) hence the resulting slug suffix. You can also play with it here: https://regex101.com/r/jF3kC6/1 Note that it's possible to modify the slug via the wp_unique_post_slug filter, but one should be really careful doing that. A: Here's what I did if you don't like plugins for a simple job: // Fix issue with digits can't be slug add_filter('wp_unique_post_slug', 'my_allow_numeric_slug', 20, 6); function my_allow_numeric_slug($slug, $post_ID, $post_status, $post_type, $post_parent, $original_slug) { global $wpdb; if (preg_match("@^\d+-2$@", $slug) && $post_type !== 'attachment') { $check_sql = "SELECT post_name FROM $wpdb->posts WHERE post_name = %s AND " . "post_type IN ( %s, 'attachment' ) AND ID != %d AND post_parent = %d LIMIT 1"; $better_slug = str_replace('-2', '', $slug); $post_name_check = $wpdb->get_var($wpdb->prepare($check_sql, $better_slug, $post_type, $post_ID, $post_parent)); if (!$post_name_check) { return $better_slug; } } return $slug; } "@^\d+-2$@" matches numeric slug with -2 postfix. I actually just check for -2 if it has been added cause in the other case it means that you already have e.g. 360-2 page which seems weird to me, but I suppose you got the idea.
wordpress
{ "language": "en", "length": 419, "provenance": "stackexchange_00019.jsonl.gz:457560", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/195497" }
[ 0.054901123046875, -0.004238128662109375, 0.0025177001953125, 0.0054779052734375, 0.005283355712890625, -0.04034423828125, 0.063720703125, -0.048614501953125, 0.002758026123046875, 0.008880615234375, -0.016754150390625, 0.023040771484375, -0.002948760986328125, -0.036468505859375, 0.032318115234375, 0.0003376007080078125, 0.04522705078125, -0.0093536376953125, 0.03363037109375, 0.00421142578125, 0.00182342529296875, 0.05029296875, 0.0032100677490234375, 0.06622314453125, 0.075439453125, -0.03826904296875, -0.0260009765625, -0.0159454345703125, 0.0361328125, -0.003620147705078125, 0.033416748046875, 0.00003165006637573242, 0.0281219482421875, 0.0066375732421875, -0.00015282630920410156, 0.010498046875, -0.0282440185546875, 0.008209228515625, 0.006839752197265625, 0.0157470703125, 0.005039215087890625, 0.006076812744140625, 0.002559661865234375, 0.015869140625, -0.0251312255859375, -0.0269775390625, 0.0016460418701171875, -0.041290283203125, -0.004608154296875, -0.0178375244140625, 0.01335906982421875, 0.004543304443359375, 0.0244293212890625, 0.0208282470703125, -0.022552490234375, -0.01922607421875, 0.004055023193359375, -0.005054473876953125, 0.010406494140625, 0.015350341796875, -0.006992340087890625, 0.02691650390625, -0.00946807861328125, -0.014923095703125, -0.0199737548828125, -0.035064697265625, 0.010406494140625, 0.0164337158203125, -0.0516357421875, -0.004581451416015625, 0.07275390625, -0.01511383056640625, -0.033843994140625, -0.0063934326171875, -0.005390167236328125, -0.01678466796875, -0.0014276504516601562, -0.0386962890625, -0.00054931640625, 0.059173583984375, 0.037384033203125, 0.0052490234375, -0.0243377685546875, 0.020660400390625, 0.005695343017578125, 0.029205322265625, -0.00882720947265625, -0.0206298828125, -0.0312347412109375, -0.0257415771484375, -0.029266357421875, -0.00027370452880859375, -0.024261474609375, -0.0164794921875, -0.0266265869140625, -0.0161285400390625, 0.0190277099609375, 0.03302001953125, -0.032745361328125, -0.0118865966796875, 0.0185546875, -0.049713134765625, 0.051605224609375, -0.04815673828125, 0.0032405853271484375, 0.033416748046875, 0.042572021484375, 0.06414794921875, 0.042266845703125, -0.0044097900390625, -0.00811004638671875, 0.052032470703125, 0.0257568359375, -0.0083770751953125, -0.0391845703125, -0.0248260498046875, -0.019439697265625, 0.01168060302734375, 0.0294952392578125, 0.001224517822265625, -0.0220794677734375, -0.001708984375, 0.0070037841796875, 0.0235748291015625, 0.00904083251953125, 0.020233154296875, -0.01073455810546875, -0.023040771484375, 0.0185546875, 0.00893402099609375, -0.0162811279296875, -0.01100921630859375, 0.012359619140625, 0.027191162109375, -0.006175994873046875, -0.0176849365234375, 0.021759033203125, -0.055084228515625, -0.030487060546875, 0.044708251953125, -0.03326416015625, -0.0299530029296875, 0.004299163818359375, -0.046295166015625, -0.0024852752685546875, 0.01363372802734375, -0.0051116943359375, 0.030792236328125, 0.02545166015625, -0.007843017578125, 0.0278167724609375, -0.048187255859375, 0.07061767578125, -0.0251617431640625, -0.033233642578125, -0.071044921875, 0.01204681396484375, -0.041046142578125, 0.015380859375, -0.0462646484375, -0.01082611083984375, -0.0269775390625, 0.032684326171875, -0.0361328125, -0.06744384765625, 0.056549072265625, -0.064208984375, -0.0294647216796875, 0.0265960693359375, 0.044097900390625, 0.003131866455078125, -0.0188751220703125, 0.0024261474609375, 0.03564453125, 0.01214599609375, 0.032928466796875, 0.0037136077880859375, -0.0157318115234375, 0.0023288726806640625, 0.037872314453125, 0.0169677734375, -0.01483154296875, 0.01416015625, 0.005710601806640625, -0.018890380859375, 0.03521728515625, 0.040252685546875, 0.049774169921875, -0.036712646484375, 0.0204925537109375, 0.034881591796875, 0.048095703125, -0.0294952392578125, 0.053314208984375, 0.008087158203125, -0.034423828125, 0.00879669189453125, 0.0233154296875, -0.00913238525390625, -0.045928955078125, -0.0008378028869628906, 0.03656005859375, -0.061859130859375, 0.045257568359375, -0.06939697265625, 0.0088348388671875, -0.0164794921875, 0.0222015380859375, 0.0211334228515625, 0.036651611328125, 0.0009303092956542969, 0.01227569580078125, -0.0204620361328125, -0.0447998046875, -0.049163818359375, 0.0033817291259765625, -0.0241241455078125, -0.014739990234375, -0.026641845703125, 0.017181396484375, -0.0284271240234375, -0.01885986328125, -0.02667236328125, 0.032440185546875, 0.01325225830078125, -0.012298583984375, -0.0298614501953125, -0.027862548828125, -0.01251220703125, -0.007801055908203125, -0.03033447265625, 0.06671142578125, 0.0263824462890625, 0.028472900390625, -0.026580810546875, 0.0019483566284179688, -0.03594970703125, -0.057708740234375, -0.0219573974609375, 0.0455322265625, 0.0328369140625, -0.0006852149963378906, 0.0003161430358886719, -0.0025997161865234375, -0.01476287841796875, -0.06573486328125, 0.0181732177734375, -0.0111541748046875, -0.02423095703125, 0.005405426025390625, 0.06097412109375, 0.017425537109375, -0.01299285888671875, -0.017974853515625, -0.0198516845703125, 0.023651123046875, -0.0133514404296875, 0.0213623046875, 0.009307861328125, 0.0181884765625, -0.010589599609375, 0.0158233642578125, 0.019866943359375, -0.01226806640625, -0.00005060434341430664, 0.0142059326171875, 0.03802490234375, 0.041290283203125, 0.019683837890625, -0.020172119140625, -0.00611114501953125, -0.0281219482421875, 0.012969970703125, 0.0012054443359375, 0.0233917236328125, -0.0204620361328125, -0.03863525390625, 0.01509857177734375, 0.029083251953125, -0.0003752708435058594, -0.0253448486328125, 0.002292633056640625, -0.076416015625, -0.0223846435546875, -0.0055084228515625, -0.04229736328125, -0.03509521484375, -0.004741668701171875, -0.0003769397735595703, -0.04046630859375, 0.0157318115234375, -0.04217529296875, -0.040435791015625, 0.00843048095703125, 0.023193359375, -0.0718994140625, 0.027252197265625, -0.0254974365234375, 0.0330810546875, -0.007457733154296875, 0.04571533203125, 0.0682373046875, -0.01451873779296875, 0.05230712890625, -0.0174102783203125, 0.0150909423828125, -0.028533935546875, 0.0105438232421875, -0.0209197998046875, -0.018341064453125, -0.033050537109375, 0.002178192138671875, 0.01763916015625, 0.0347900390625, -0.003948211669921875, -0.034149169921875, -0.0283203125, 0.023651123046875, -0.0650634765625, -0.061981201171875, 0.0099029541015625, -0.036224365234375, -0.0008411407470703125, 0.023651123046875, -0.01145172119140625, -0.0124053955078125, 0.02685546875, 0.0059051513671875, 0.0022220611572265625, -0.0255126953125, -0.08416748046875, -0.04779052734375, -0.049163818359375, -0.011749267578125, -0.0057525634765625, -0.005245208740234375, 0.008758544921875, -0.004550933837890625, -0.01021575927734375, -0.036834716796875, -0.0030231475830078125, 0.0178070068359375, 0.004547119140625, -0.01499176025390625, -0.036651611328125, -0.01788330078125, 0.01715087890625, -0.03179931640625, 0.0859375, 0.03045654296875, -0.00716400146484375, 0.030914306640625, -0.032989501953125, -0.07208251953125, -0.0028705596923828125, 0.0014810562133789062, 0.033294677734375, 0.0014190673828125, 0.040557861328125, -0.0408935546875, -0.0132598876953125, -0.055938720703125, -0.0538330078125, 0.057220458984375, 0.052276611328125, 0.0052337646484375, -0.023223876953125, 0.0210418701171875, 0.01467132568359375, -0.0097198486328125, 0.0219573974609375, -0.01395416259765625, -0.0168304443359375, -0.0090179443359375, 0.006298065185546875, -0.01409912109375, -0.0083465576171875, -0.026336669921875, 0.0192413330078125, -0.005771636962890625, -0.01093292236328125, -0.02215576171875, 0.03216552734375, -0.049072265625, -0.07080078125, 0.046783447265625, -0.07464599609375, 0.01113128662109375, -0.060272216796875, -0.01097869873046875, -0.037506103515625, 0.0699462890625, -0.0584716796875, -0.033172607421875, -0.01800537109375, 0.0088043212890625, 0.05572509765625, -0.0181732177734375, 0.0137176513671875, -0.053009033203125, -0.00537872314453125, -0.005733489990234375, -0.0001996755599975586, -0.020477294921875, -0.00949859619140625, -0.017578125, 0.021087646484375, -0.0223846435546875, 0.0218505859375, -0.0028743743896484375, -0.0286865234375, 0.0274200439453125, -0.040069580078125, -0.00958251953125, -0.0191497802734375, -0.007465362548828125, -0.10552978515625, -0.025177001953125, 0.02764892578125, 0.06884765625, -0.0021114349365234375, -0.0419921875, -0.0182037353515625, 0.04437255859375, 0.0009908676147460938, 0.030029296875, 0.0016450881958007812, 0.003204345703125, -0.0010433197021484375, 0.0289764404296875, 0.0106353759765625, -0.00890350341796875, 0.01092529296875, -0.015655517578125, -0.02545166015625, 0.021026611328125, -0.042572021484375, -0.00988006591796875, -0.023956298828125, -0.0261383056640625, -0.0240478515625, -0.0182342529296875, -0.0080108642578125, 0.039031982421875, 0.0003867149353027344, 0.01032257080078125, -0.053436279296875, -0.047210693359375, -0.0038242340087890625, -0.01409912109375, 0.0293731689453125, 0.0246124267578125, 0.06781005859375, -0.0036792755126953125, -0.010711669921875, -0.058563232421875, -0.00537872314453125, 0.02655029296875, 0.0056304931640625, 0.041595458984375, 0.006679534912109375, 0.0120391845703125, 0.00701141357421875, -0.013763427734375, -0.013885498046875, -0.011993408203125, 0.03564453125, 0.003170013427734375, -0.01305389404296875, -0.0008487701416015625, -0.039764404296875, 0.029754638671875, 0.057647705078125, -0.0263671875, -0.0206451416015625, -0.064208984375, 0.06378173828125, -0.01024627685546875, 0.03289794921875, -0.08050537109375, -0.049346923828125, 0.0176239013671875, -0.041107177734375, 0.04510498046875, 0.034210205078125, -0.017913818359375, 0.06976318359375, 0.01885986328125, -0.01009368896484375, 0.034912109375, 0.027191162109375, -0.00247955322265625, 0.0139923095703125, 0.0256195068359375, -0.0240631103515625, 0.01041412353515625, -0.00955963134765625, 0.04437255859375, 0.03839111328125, -0.013214111328125, -0.0131378173828125, -0.00562286376953125, 0.0037593841552734375, -0.024505615234375, 0.0288238525390625, 0.02398681640625, 0.01348114013671875, -0.01495361328125, -0.00260162353515625, 0.0247344970703125, 0.01361083984375, -0.05279541015625, 0.004817962646484375, -0.003719329833984375, -0.0158538818359375, 0.021697998046875, 0.016448974609375, 0.0248260498046875, 0.0040435791015625, -0.0167694091796875, -0.00859832763671875, -0.019744873046875, 0.0124053955078125, 0.0081787109375, 0.01483917236328125, 0.01800537109375, -0.0161895751953125, 0.044281005859375, -0.03436279296875, 0.00269317626953125, 0.01629638671875, 0.0300445556640625, 0.01129150390625, -0.0168914794921875, 0.0277862548828125, 0.00667572021484375, -0.00994873046875, 0.0055389404296875, -0.0102386474609375, -0.0236358642578125, 0.0036163330078125, 0.007495880126953125, 0.0030460357666015625, -0.007198333740234375, 0.0152130126953125, -0.0416259765625, -0.002201080322265625, -0.056427001953125, 0.0213165283203125, -0.044769287109375, -0.0231781005859375, -0.01959228515625, 0.0202789306640625, -0.0240631103515625, -0.0184478759765625, 0.0006465911865234375, 0.01142120361328125, -0.033172607421875, -0.01058197021484375, 0.056732177734375, 0.0038433074951171875, 0.09661865234375, -0.0294189453125, -0.07843017578125, 0.0278778076171875, 0.00702667236328125, 0.005794525146484375, -0.0006422996520996094, -0.048126220703125, -0.001613616943359375, -0.020751953125, -0.01192474365234375, 0.0706787109375, 0.0284423828125, -0.0157012939453125, -0.038848876953125, 0.0120391845703125, 0.041229248046875, -0.03192138671875, -0.031463623046875, 0.00023567676544189453, -0.002651214599609375, 0.006114959716796875, 0.051422119140625, -0.0460205078125, 0.07647705078125, 0.0248565673828125, 0.0008296966552734375, -0.017425537109375, 0.01361846923828125, 0.0005035400390625, 0.0019512176513671875, 0.000537872314453125, -0.0293426513671875, -0.0212249755859375, 0.017303466796875, -0.0146026611328125, 0.0157928466796875, 0.034820556640625, -0.0058746337890625, -0.0187225341796875, -0.0194244384765625, 0.0141143798828125, -0.041961669921875, 0.03240966796875, -0.05072021484375, -0.0379638671875, -0.0125274658203125, -0.01267242431640625, -0.004848480224609375, 0.0113067626953125, -0.018341064453125, 0.01297760009765625, 0.0084686279296875, 0.0133514404296875, -0.005584716796875, -0.0011348724365234375, 0.0024318695068359375, 0.04949951171875, 0.01959228515625, 0.061920166015625, 0.034423828125, 0.037322998046875, 0.058441162109375, 0.026458740234375, -0.00708770751953125, 0.000576019287109375, 0.058380126953125, 0.0044097900390625, -0.01543426513671875, 0.0165863037109375, -0.0238494873046875, -0.0013532638549804688, 0.0740966796875, 0.0215301513671875, -0.09368896484375, -0.0107421875, -0.040252685546875, -0.0115509033203125, 0.0279998779296875, 0.00667572021484375, 0.0128936767578125, -0.031646728515625, 0.0557861328125, -0.00827789306640625, 0.0234375, 0.0321044921875, -0.035064697265625, -0.007602691650390625, -0.004787445068359375, 0.0220489501953125, -0.0004661083221435547, -0.0150299072265625, -0.036041259765625, -0.004291534423828125, 0.0008893013000488281, -0.030914306640625, -0.0189666748046875, 0.0217742919921875, -0.021820068359375, -0.050811767578125, 0.01364898681640625, -0.0391845703125, 0.0182952880859375, 0.00905609130859375, 0.0286865234375, 0.04583740234375, 0.026885986328125, 0.0228424072265625, -0.041290283203125, 0.003326416015625, 0.0179290771484375, -0.0162200927734375, 0.01264190673828125, 0.0186614990234375, -0.01299285888671875, -0.0202178955078125, -0.00197601318359375, -0.056488037109375, 0.00015020370483398438, -0.01995849609375, -0.05908203125, 0.0672607421875, -0.05078125, -0.0012044906616210938, 0.036865234375, -0.0066375732421875, -0.033050537109375, -0.01374053955078125, 0.024169921875, -0.0178375244140625, -0.030548095703125, 0.0078277587890625, -0.04071044921875, -0.0223236083984375, -0.047454833984375, -0.075439453125, 0.09698486328125, 0.0270538330078125, 0.050262451171875, -0.01186370849609375, 0.04669189453125, -0.00911712646484375, 0.0390625, -0.0263671875, 0.051910400390625, 0.0160980224609375, 0.04107666015625, -0.0298309326171875, 0.0034275054931640625, 0.00977325439453125, 0.040191650390625, 0.038726806640625, 0.0035076141357421875, -0.060272216796875, 0.01503753662109375, 0.09088134765625, 0.0237579345703125, 0.0233612060546875, 0.052825927734375, 0.025970458984375, -0.0125274658203125, 0.02886962890625, 0.00319671630859375, 0.01343536376953125, 0.01462554931640625, 0.00968170166015625, 0.042510986328125, 0.0069732666015625, -0.0004887580871582031, 0.05340576171875, -0.02880859375, -0.067138671875, 0.042999267578125, 0.04107666015625, -0.00681304931640625, 0.00981903076171875, 0.00545501708984375, 0.01078033447265625, -0.04559326171875, -0.0028400421142578125, -0.032989501953125, 0.046630859375, 0.0010890960693359375, -0.00800323486328125, 0.01605224609375, -0.0042724609375, 0.030120849609375, 0.005496978759765625, -0.0157318115234375, 0.02679443359375, 0.0174407958984375, 0.069091796875, 0.0237274169921875, 0.0174102783203125, -0.0684814453125, -0.0015926361083984375, 0.062744140625, 0.08587646484375, -0.04559326171875, -0.03729248046875, 0.0170135498046875, 0.002777099609375, -0.01477813720703125, 0.005992889404296875, 0.029876708984375, -0.026092529296875, 0.0005555152893066406, 0.0196990966796875, -0.0128173828125, 0.00495147705078125, 0.04364013671875, 0.0091094970703125, -0.032073974609375, -0.0501708984375, 0.00693511962890625, -0.072265625, -0.0006246566772460938, 0.020782470703125, 0.09967041015625, 0.0587158203125, 0.06951904296875, -0.017822265625, -0.05975341796875, 0.0022945404052734375, 0.043121337890625, -0.019317626953125, 0.0004372596740722656, -0.0628662109375, -0.10015869140625, 0.05487060546875, 0.0496826171875, 0.0240020751953125, 0.025543212890625, 0.037872314453125, -0.0199127197265625, -0.033355712890625, 0.0173797607421875, -0.005001068115234375, -0.046661376953125, 0.0205078125, -0.058258056640625, 0.043670654296875, 0.004604339599609375, -0.000797271728515625, -0.0293121337890625, -0.005481719970703125, 0.052001953125, -0.00391387939453125, 0.00998687744140625, 0.0191802978515625, 0.002056121826171875, 0.0240478515625, 0.0341796875, 0.0109405517578125, 0.03436279296875, -0.042236328125, -0.0070953369140625, -0.01959228515625, 0.0160064697265625, -0.019073486328125, 0.0135040283203125, -0.00815582275390625, 0.037353515625, 0.007781982421875, 0.0124053955078125, 0.016754150390625, -0.049713134765625, 0.0193023681640625, 0.0057830810546875, 0.0038509368896484375, 0.010040283203125, -0.05499267578125, -0.048736572265625, -0.0213775634765625, 0.053070068359375, -0.0198974609375, 0.10980224609375, -0.038421630859375, -0.00678253173828125, 0.0212249755859375, 0.0159912109375, 0.0157928466796875, 0.002826690673828125, -0.00386810302734375, -0.002185821533203125, 0.02081298828125, -0.02197265625, -0.05511474609375, 0.04779052734375, 0.004886627197265625, 0.0167236328125, 0.017974853515625, -0.0208282470703125, 0.0173797607421875, 0.03997802734375, 0.004390716552734375, -0.028717041015625, -0.04473876953125, -0.0216522216796875, 0.037872314453125, 0.00909423828125, -0.000682830810546875, -0.0555419921875, 0.04864501953125, 0.04461669921875, -0.0156707763671875, -0.0038547515869140625, -0.03216552734375, 0.0217132568359375, 0.0325927734375, 0.03857421875, 0.0203399658203125, 0.014801025390625, -0.0263824462890625, 0.01143646240234375, -0.0080413818359375, 0.0011930465698242188, 0.007640838623046875, -0.0184478759765625, 0.002323150634765625, -0.0095062255859375, -0.00899505615234375, -0.056488037109375, -0.0168304443359375, 0.0153350830078125, -0.0004076957702636719, 0.0243072509765625, -0.028106689453125, -0.0255584716796875, -0.034820556640625, 0.006999969482421875, 0.0413818359375, -0.034912109375, 0.032928466796875, -0.039306640625, 0.01340484619140625, 0.053466796875, -0.0008120536804199219, -0.033477783203125, 0.026397705078125, -0.060089111328125, 0.044281005859375, 0.0156402587890625, -0.0308685302734375, 0.00676727294921875, 0.016571044921875, -0.0175628662109375, 0.006198883056640625, -0.0423583984375, -0.00609588623046875, -0.0218963623046875, -0.00007092952728271484, 0.01050567626953125, -0.005558013916015625, -0.01312255859375, -0.0161590576171875, -0.00014412403106689453, 0.0301361083984375, 0.01282501220703125, -0.0214996337890625, -0.00731658935546875, 0.015960693359375, -0.0246124267578125, -0.0301666259765625, 0.0225067138671875, -0.004749298095703125, -0.014923095703125, -0.022735595703125, -0.009735107421875, -0.0290985107421875, -0.05084228515625, -0.0248260498046875, 0.016876220703125, 0.022369384765625, -0.022216796875, -0.064453125, -0.0394287109375, -0.0162200927734375, 0.054473876953125, -0.025299072265625, 0.0007519721984863281, -0.04473876953125, 0.078857421875, 0.00846099853515625, 0.040618896484375, -0.01348114013671875, 0.0172882080078125, -0.04620361328125, 0.03363037109375, 0.0107269287109375, 0.0217742919921875, 0.050537109375, -0.0127716064453125, 0.0452880859375, 0.06396484375, -0.05023193359375, 0.0235137939453125, -0.041229248046875, -0.016326904296875, -0.01419830322265625, -0.0277252197265625, -0.0389404296875, -0.024017333984375, 0.073974609375, 0.0239105224609375, 0.013275146484375, -0.0191650390625, -0.01482391357421875, 0.00441741943359375, -0.0621337890625, -0.0033512115478515625, 0.0299530029296875, -0.033294677734375, 0.010345458984375, -0.0333251953125, -0.004604339599609375, 0.030059814453125, 0.0013427734375, 0.00839996337890625, -0.00897216796875, 0.01285552978515625, -0.02349853515625, -0.0184783935546875, 0.0262603759765625, 0.0243988037109375, -0.0260772705078125, -0.003200531005859375, -0.006317138671875, -0.00152587890625, 0.01198577880859375, -0.0030002593994140625, -0.01125335693359375, 0.03570556640625, -0.0242156982421875, 0.0068206787109375, 0.0036334991455078125, 0.01361846923828125, -0.040130615234375, 0.013702392578125, -0.00710296630859375, 0.01465606689453125, 0.006336212158203125, 0.0200347900390625, -0.0117950439453125, 0.01445770263671875, 0.00557708740234375, -0.00811767578125, 0.0162506103515625, 0.002044677734375, -0.00496673583984375, 0.059814453125, -0.005931854248046875, -0.019989013671875, 0.0225982666015625, -0.053619384765625, 0.0089263916015625, -0.016082763671875, 0.039306640625, -0.030242919921875, -0.0099945068359375, -0.057708740234375, -0.00211334228515625, -0.0038356781005859375 ]
1833ddb954f005eecd47944047976aead61e9361
Wordpress Stackexchange Q: Why is the »_builtin« parameter not advised in »register_post_type()« for custom post types? The parameter "_builtin" => true is a huge help for me, as this will set good permalink structure, like standard posts, for example: example.com/my_category/sub_category/POST-NAME instead of example.com/POST-NAME But in documentation, it is not advised - see note: Note: this Codex entry is for documentation - core developers recommend you don't use this when registering your own post type Why? May I rely on that, and start building my site with it? or it will be removed soon? A: I'd figure, it mainly is not advised, because it is intended just to use it for built-in post types, just because you can use for custom post types it does not change anything on that intention. For example, if you use it and there are changes in WordPress that make that arguments use strictly available for built-in post types, then you are in trouble. And, no, its not going to be removed soon - if ever, it likely will die with WordPress.
Q: Why is the »_builtin« parameter not advised in »register_post_type()« for custom post types? The parameter "_builtin" => true is a huge help for me, as this will set good permalink structure, like standard posts, for example: example.com/my_category/sub_category/POST-NAME instead of example.com/POST-NAME But in documentation, it is not advised - see note: Note: this Codex entry is for documentation - core developers recommend you don't use this when registering your own post type Why? May I rely on that, and start building my site with it? or it will be removed soon? A: I'd figure, it mainly is not advised, because it is intended just to use it for built-in post types, just because you can use for custom post types it does not change anything on that intention. For example, if you use it and there are changes in WordPress that make that arguments use strictly available for built-in post types, then you are in trouble. And, no, its not going to be removed soon - if ever, it likely will die with WordPress.
wordpress
{ "language": "en", "length": 174, "provenance": "stackexchange_00019.jsonl.gz:457578", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/195573" }
[ 0.042724609375, -0.00399017333984375, 0.0158538818359375, -0.0134429931640625, -0.0155487060546875, -0.010467529296875, 0.026336669921875, -0.0235443115234375, -0.0341796875, -0.01348114013671875, 0.0017194747924804688, 0.0027561187744140625, -0.00624847412109375, -0.05133056640625, 0.06915283203125, -0.0180511474609375, 0.022674560546875, -0.005329132080078125, -0.014801025390625, -0.0165557861328125, 0.0152130126953125, -0.0033321380615234375, -0.031036376953125, 0.0574951171875, 0.046478271484375, -0.030487060546875, 0.044158935546875, -0.047943115234375, 0.047210693359375, -0.014068603515625, 0.0302581787109375, -0.0218505859375, -0.004512786865234375, 0.024658203125, 0.021026611328125, -0.0022335052490234375, 0.0281982421875, 0.013641357421875, 0.0352783203125, 0.00713348388671875, 0.01154327392578125, -0.006801605224609375, 0.040618896484375, -0.02239990234375, -0.028045654296875, -0.01149749755859375, 0.002124786376953125, -0.00018405914306640625, 0.00455474853515625, -0.042999267578125, -0.01070404052734375, 0.015716552734375, 0.0268402099609375, -0.0233917236328125, -0.03765869140625, -0.053131103515625, -0.037261962890625, -0.01739501953125, 0.0263214111328125, 0.0478515625, -0.0006017684936523438, -0.0240631103515625, 0.009735107421875, -0.03424072265625, 0.01538848876953125, -0.001132965087890625, 0.007480621337890625, 0.01065826416015625, -0.02691650390625, 0.020538330078125, 0.03619384765625, -0.031890869140625, 0.0110626220703125, 0.01241302490234375, -0.01177978515625, -0.033538818359375, -0.0281524658203125, -0.0282135009765625, 0.04437255859375, 0.0163421630859375, -0.03173828125, 0.032257080078125, 0.01293182373046875, -0.023529052734375, 0.004207611083984375, 0.005558013916015625, -0.03155517578125, -0.006702423095703125, -0.02880859375, -0.01849365234375, -0.0300750732421875, -0.020111083984375, -0.0131378173828125, 0.002788543701171875, -0.0261077880859375, -0.011383056640625, 0.0268096923828125, 0.056488037109375, -0.0269775390625, 0.016204833984375, 0.0076904296875, -0.053741455078125, 0.061859130859375, -0.052001953125, 0.01227569580078125, 0.056732177734375, -0.0232391357421875, -0.0243072509765625, 0.036285400390625, 0.0084686279296875, 0.0264434814453125, 0.004199981689453125, -0.0196380615234375, -0.05718994140625, -0.0117950439453125, 0.04962158203125, -0.02716064453125, 0.008880615234375, 0.0172119140625, 0.02618408203125, 0.0188751220703125, 0.0673828125, 0.00478363037109375, -0.02813720703125, 0.0027484893798828125, 0.0216522216796875, 0.005954742431640625, -0.087890625, -0.0296783447265625, 0.0190887451171875, -0.0107574462890625, 0.02325439453125, 0.06158447265625, 0.0027446746826171875, -0.01195526123046875, -0.02667236328125, 0.032958984375, 0.005229949951171875, -0.0036640167236328125, 0.00403594970703125, 0.0115203857421875, -0.0254364013671875, -0.002521514892578125, 0.0140228271484375, 0.023223876953125, 0.0293731689453125, 0.01158905029296875, -0.0006771087646484375, 0.00817108154296875, -0.018035888671875, -0.006378173828125, -0.04791259765625, 0.03887939453125, -0.00249481201171875, -0.06475830078125, -0.01904296875, -0.037078857421875, -0.0181121826171875, -0.0131378173828125, -0.0240936279296875, 0.014984130859375, 0.006397247314453125, 0.019805908203125, -0.025543212890625, -0.053619384765625, 0.000385284423828125, -0.024505615234375, -0.00530242919921875, 0.01346588134765625, 0.005290985107421875, 0.007701873779296875, 0.006336212158203125, -0.0439453125, -0.021331787109375, 0.0014801025390625, -0.01512908935546875, 0.0166778564453125, 0.05035400390625, 0.0191497802734375, 0.05072021484375, -0.00865936279296875, -0.0386962890625, 0.0589599609375, -0.0460205078125, -0.0836181640625, 0.047637939453125, 0.01471710205078125, 0.036285400390625, 0.0137176513671875, -0.003582000732421875, 0.0738525390625, 0.036712646484375, -0.057952880859375, -0.0162506103515625, -0.02099609375, 0.0080718994140625, -0.0016260147094726562, -0.00786590576171875, -0.0162200927734375, 0.031097412109375, -0.0399169921875, -0.0247955322265625, 0.0088043212890625, -0.005023956298828125, -0.0501708984375, -0.0148468017578125, -0.024383544921875, 0.044158935546875, 0.0246734619140625, 0.00452423095703125, 0.0017871856689453125, 0.01335906982421875, -0.022735595703125, -0.04736328125, -0.057891845703125, 0.0166473388671875, -0.058197021484375, 0.00942230224609375, -0.0286407470703125, 0.0189666748046875, -0.023651123046875, -0.03387451171875, 0.00007647275924682617, 0.026275634765625, 0.0174713134765625, 0.036865234375, -0.0221710205078125, -0.0011768341064453125, -0.0108489990234375, 0.045501708984375, -0.075439453125, 0.00388336181640625, 0.0267333984375, 0.03399658203125, -0.0180511474609375, -0.0006952285766601562, -0.006351470947265625, -0.060699462890625, 0.00754547119140625, 0.0509033203125, 0.0069732666015625, 0.04119873046875, -0.03656005859375, 0.01149749755859375, 0.040496826171875, -0.00417327880859375, 0.0038166046142578125, 0.02374267578125, 0.050628662109375, 0.07427978515625, -0.06121826171875, -0.0241546630859375, 0.027130126953125, -0.0244140625, 0.03460693359375, 0.033416748046875, 0.004253387451171875, -0.023223876953125, 0.054412841796875, -0.029449462890625, 0.01122283935546875, 0.0154876708984375, -0.029205322265625, 0.0240020751953125, 0.006473541259765625, -0.00872039794921875, 0.0159912109375, 0.0218658447265625, -0.0139312744140625, -0.0037899017333984375, 0.0228271484375, -0.004863739013671875, -0.016876220703125, 0.01470184326171875, 0.10125732421875, -0.004547119140625, -0.060150146484375, -0.00878143310546875, 0.021484375, 0.0111083984375, -0.0242462158203125, -0.0186614990234375, -0.03387451171875, -0.01043701171875, 0.00836181640625, -0.06201171875, 0.0292816162109375, 0.0404052734375, 0.056610107421875, -0.01152801513671875, 0.031494140625, -0.00826263427734375, -0.02886962890625, 0.03973388671875, 0.023895263671875, -0.063232421875, -0.0078277587890625, -0.0594482421875, 0.022674560546875, -0.040679931640625, 0.031982421875, 0.0546875, 0.0211944580078125, -0.0288543701171875, -0.004528045654296875, 0.02716064453125, 0.02459716796875, 0.007091522216796875, -0.01036834716796875, -0.028228759765625, 0.0006580352783203125, 0.00788116455078125, 0.0438232421875, 0.08380126953125, 0.0120391845703125, -0.0195770263671875, 0.0178375244140625, 0.06878662109375, 0.01470947265625, -0.0163116455078125, -0.004364013671875, -0.0096588134765625, 0.01508331298828125, 0.0028247833251953125, 0.01526641845703125, -0.0141754150390625, 0.00897216796875, 0.0002627372741699219, 0.0186614990234375, -0.054046630859375, -0.048431396484375, -0.09564208984375, -0.07684326171875, -0.0487060546875, 0.0157318115234375, -0.003997802734375, 0.01494598388671875, 0.05926513671875, 0.0316162109375, -0.0380859375, 0.04754638671875, -0.0185546875, -0.020782470703125, 0.0374755859375, 0.040863037109375, -0.006832122802734375, 0.0132904052734375, 0.0272979736328125, 0.0109405517578125, 0.047637939453125, -0.0653076171875, -0.03924560546875, -0.00904083251953125, -0.0038852691650390625, 0.0102386474609375, 0.04217529296875, 0.0212554931640625, 0.006168365478515625, 0.03350830078125, -0.0654296875, -0.0217132568359375, -0.00653839111328125, -0.035858154296875, 0.03558349609375, 0.0001888275146484375, 0.0005502700805664062, 0.0100250244140625, 0.019073486328125, -0.0007905960083007812, 0.0391845703125, -0.001384735107421875, -0.029693603515625, 0.051361083984375, -0.0063934326171875, -0.010040283203125, -0.01654052734375, 0.03570556640625, -0.030487060546875, -0.0007996559143066406, -0.0017719268798828125, -0.0134429931640625, -0.00579071044921875, -0.021331787109375, -0.031768798828125, -0.03228759765625, 0.05841064453125, -0.0166778564453125, -0.00522613525390625, -0.0174102783203125, -0.0295257568359375, -0.007099151611328125, 0.07659912109375, -0.00913238525390625, -0.0110626220703125, -0.00008577108383178711, 0.0093994140625, -0.0302886962890625, -0.03570556640625, -0.049163818359375, -0.004756927490234375, 0.01849365234375, -0.036285400390625, 0.00002759695053100586, -0.04620361328125, -0.006439208984375, -0.004650115966796875, -0.025390625, -0.0015392303466796875, 0.028656005859375, 0.01073455810546875, 0.002834320068359375, 0.005496978759765625, 0.021728515625, -0.0258331298828125, -0.019317626953125, 0.012603759765625, -0.09783935546875, -0.0263519287109375, -0.0080718994140625, 0.0748291015625, -0.00788116455078125, -0.015716552734375, -0.057037353515625, 0.031158447265625, 0.01137542724609375, 0.01251220703125, 0.03228759765625, -0.0010766983032226562, -0.0133514404296875, 0.03985595703125, 0.04443359375, -0.01540374755859375, -0.00603485107421875, 0.006366729736328125, -0.0289154052734375, 0.0115203857421875, -0.00579071044921875, -0.02484130859375, 0.034881591796875, -0.048736572265625, -0.02032470703125, -0.020599365234375, -0.058319091796875, 0.0049591064453125, -0.024749755859375, -0.01525115966796875, -0.042572021484375, -0.032318115234375, 0.028106689453125, -0.035247802734375, 0.035797119140625, 0.0083770751953125, 0.08673095703125, -0.0009493827819824219, -0.008941650390625, 0.002941131591796875, 0.0360107421875, 0.004909515380859375, -0.00884246826171875, 0.049835205078125, 0.004486083984375, 0.0258026123046875, -0.0309295654296875, -0.02166748046875, -0.0041961669921875, 0.000056862831115722656, -0.01505279541015625, -0.0149688720703125, -0.0330810546875, 0.00742340087890625, -0.0283660888671875, 0.0697021484375, 0.0606689453125, 0.016082763671875, -0.043243408203125, -0.006717681884765625, 0.0316162109375, -0.032135009765625, 0.0249176025390625, -0.0212860107421875, -0.0204620361328125, 0.03729248046875, 0.04022216796875, 0.0065765380859375, 0.0196990966796875, -0.00787353515625, -0.015655517578125, -0.07489013671875, 0.01447296142578125, 0.023651123046875, -0.01042938232421875, 0.004180908203125, 0.0217437744140625, 0.039947509765625, 0.0179595947265625, 0.006748199462890625, 0.0018281936645507812, 0.0029659271240234375, -0.019500732421875, -0.021392822265625, -0.040985107421875, -0.0298614501953125, 0.03277587890625, 0.0111236572265625, 0.0199737548828125, 0.048187255859375, 0.067138671875, 0.00917816162109375, 0.01285552978515625, 0.025970458984375, 0.0355224609375, -0.030364990234375, -0.0183563232421875, 0.00791168212890625, -0.01093292236328125, -0.01922607421875, 0.049652099609375, 0.0167388916015625, -0.000713348388671875, -0.0167388916015625, 0.0113677978515625, 0.01605224609375, 0.0321044921875, 0.018310546875, -0.01220703125, 0.007373809814453125, -0.0127105712890625, -0.0013103485107421875, -0.02911376953125, -0.01137542724609375, -0.01093292236328125, 0.050445556640625, -0.0100250244140625, -0.004009246826171875, 0.0244140625, -0.03253173828125, -0.0071868896484375, 0.0242767333984375, -0.00015747547149658203, -0.035003662109375, -0.01561737060546875, 0.0201263427734375, 0.049224853515625, -0.020843505859375, -0.01517486572265625, -0.00881195068359375, -0.053466796875, 0.0011568069458007812, -0.0006723403930664062, -0.029052734375, 0.0175628662109375, 0.021820068359375, 0.00015020370483398438, -0.02691650390625, -0.006153106689453125, 0.035614013671875, 0.036865234375, -0.028717041015625, -0.026397705078125, 0.0140380859375, 0.0151214599609375, 0.047821044921875, -0.0213623046875, -0.038970947265625, 0.0243377685546875, 0.005706787109375, 0.0196533203125, -0.0260467529296875, -0.0104522705078125, 0.002086639404296875, -0.0163116455078125, -0.00910186767578125, -0.0308074951171875, -0.0467529296875, -0.035369873046875, -0.00783538818359375, 0.01800537109375, 0.0120697021484375, -0.003948211669921875, -0.018585205078125, -0.036956787109375, 0.0267791748046875, 0.033721923828125, 0.0265655517578125, -0.035888671875, 0.054931640625, 0.0082244873046875, 0.002201080322265625, -0.012939453125, 0.002193450927734375, -0.00334930419921875, 0.0237274169921875, 0.02044677734375, -0.059234619140625, -0.037933349609375, -0.02252197265625, -0.0017595291137695312, 0.032073974609375, 0.032073974609375, -0.0029430389404296875, 0.01324462890625, -0.004856109619140625, 0.003604888916015625, -0.0270843505859375, 0.005825042724609375, -0.038421630859375, 0.00023353099822998047, -0.02398681640625, 0.006542205810546875, 0.033203125, -0.01198577880859375, -0.009765625, 0.0005245208740234375, -0.00202178955078125, -0.004367828369140625, -0.004886627197265625, -0.051025390625, 0.0215301513671875, 0.0733642578125, 0.04620361328125, 0.068603515625, -0.0153656005859375, 0.041229248046875, 0.0210418701171875, 0.025543212890625, -0.019866943359375, -0.044189453125, 0.0237274169921875, 0.0103607177734375, -0.00559234619140625, 0.0296173095703125, -0.0178375244140625, 0.0167083740234375, 0.053192138671875, 0.062255859375, -0.11572265625, 0.032958984375, 0.043609619140625, 0.03192138671875, 0.04180908203125, -0.0049285888671875, 0.0118865966796875, 0.03717041015625, -0.00664520263671875, 0.012420654296875, -0.01448822021484375, 0.005401611328125, 0.0013885498046875, -0.0020885467529296875, 0.025909423828125, 0.0543212890625, 0.01552581787109375, 0.0139923095703125, -0.032562255859375, -0.0008368492126464844, 0.0032196044921875, 0.015960693359375, 0.015899658203125, -0.034027099609375, -0.0298309326171875, -0.01102447509765625, -0.0196533203125, -0.01983642578125, -0.0166473388671875, 0.0178680419921875, -0.005035400390625, 0.040191650390625, 0.038238525390625, -0.0022945404052734375, 0.003993988037109375, 0.0108795166015625, 0.02490234375, -0.0081329345703125, -0.03350830078125, -0.00879669189453125, 0.0589599609375, -0.018890380859375, 0.01453399658203125, 0.0010662078857421875, -0.0219879150390625, -0.0173492431640625, -0.038421630859375, 0.0914306640625, -0.04437255859375, -0.0157470703125, 0.01015472412109375, -0.02386474609375, -0.0095672607421875, -0.0247344970703125, -0.01096343994140625, -0.05181884765625, -0.02069091796875, -0.05029296875, -0.032867431640625, 0.0338134765625, -0.038604736328125, -0.0252685546875, 0.128173828125, -0.030792236328125, 0.0266571044921875, 0.021209716796875, 0.041748046875, -0.0009131431579589844, 0.04412841796875, -0.00916290283203125, 0.052154541015625, -0.0176239013671875, -0.0009794235229492188, -0.005950927734375, 0.014862060546875, -0.0015840530395507812, 0.006191253662109375, 0.046875, 0.00799560546875, -0.00860595703125, -0.0009937286376953125, 0.050567626953125, 0.0300750732421875, 0.006893157958984375, 0.006473541259765625, 0.02606201171875, 0.0318603515625, 0.06500244140625, -0.0028934478759765625, 0.046661376953125, 0.003742218017578125, -0.0170135498046875, 0.0352783203125, 0.00525665283203125, -0.0020160675048828125, 0.0031032562255859375, -0.050750732421875, 0.0078277587890625, -0.0079193115234375, -0.00830841064453125, -0.0089569091796875, 0.005535125732421875, 0.0124053955078125, 0.006031036376953125, -0.0286102294921875, -0.007038116455078125, -0.0239410400390625, 0.045196533203125, -0.0216217041015625, 0.02301025390625, 0.0301971435546875, 0.01019287109375, 0.038848876953125, 0.022186279296875, 0.02215576171875, 0.04583740234375, -0.0081634521484375, 0.039398193359375, 0.04339599609375, 0.039215087890625, -0.0003998279571533203, -0.0185546875, 0.071533203125, 0.0487060546875, -0.018646240234375, -0.0310516357421875, 0.0113677978515625, 0.0252227783203125, 0.014556884765625, 0.0157623291015625, 0.019317626953125, -0.011199951171875, 0.055267333984375, -0.02130126953125, -0.0217742919921875, 0.0104217529296875, 0.059173583984375, 0.0123748779296875, -0.02044677734375, -0.054901123046875, -0.065673828125, -0.034637451171875, -0.00862884521484375, 0.0036029815673828125, 0.0606689453125, 0.047149658203125, 0.051055908203125, -0.0286865234375, -0.03936767578125, 0.0251007080078125, 0.01401519775390625, 0.02520751953125, -0.0292816162109375, -0.0172271728515625, -0.03961181640625, 0.05316162109375, 0.03289794921875, 0.035491943359375, 0.0260009765625, 0.026519775390625, 0.017730712890625, -0.0117034912109375, 0.00827789306640625, 0.08660888671875, 0.01181793212890625, 0.0108489990234375, -0.031341552734375, -0.00223541259765625, -0.01424407958984375, -0.0283203125, 0.0050201416015625, -0.006145477294921875, 0.0060882568359375, 0.031402587890625, 0.003650665283203125, 0.0183868408203125, -0.02349853515625, 0.034942626953125, -0.00313568115234375, 0.04791259765625, 0.037628173828125, -0.0020771026611328125, 0.01213836669921875, -0.018951416015625, -0.09375, 0.016082763671875, 0.038330078125, 0.0012006759643554688, -0.0029087066650390625, 0.0224761962890625, 0.0029659271240234375, -0.0025615692138671875, -0.01543426513671875, 0.0146942138671875, -0.0157623291015625, 0.0236968994140625, 0.00374603271484375, 0.0034046173095703125, 0.0088348388671875, 0.00039315223693847656, 0.01535797119140625, -0.007476806640625, 0.1278076171875, -0.043060302734375, 0.002105712890625, 0.0156707763671875, 0.022003173828125, -0.032867431640625, 0.0120086669921875, 0.014007568359375, -0.035400390625, 0.00501251220703125, 0.0015192031860351562, -0.0186004638671875, 0.025604248046875, 0.04144287109375, -0.0418701171875, 0.0291748046875, -0.0079498291015625, -0.0024204254150390625, -0.05462646484375, 0.030548095703125, -0.027984619140625, -0.037078857421875, -0.0179901123046875, -0.0014896392822265625, 0.00850677490234375, -0.0045623779296875, 0.005413055419921875, 0.027618408203125, -0.004581451416015625, -0.01971435546875, 0.019805908203125, -0.0419921875, 0.025054931640625, 0.032958984375, -0.021697998046875, 0.017364501953125, 0.0285491943359375, -0.01181793212890625, 0.008941650390625, 0.032440185546875, 0.00669097900390625, 0.0181121826171875, -0.0606689453125, -0.035369873046875, 0.0137481689453125, 0.0029201507568359375, -0.04156494140625, -0.00255584716796875, -0.0018463134765625, -0.01235198974609375, 0.036407470703125, -0.03350830078125, -0.0256500244140625, -0.041168212890625, -0.027130126953125, 0.005672454833984375, -0.0477294921875, -0.0712890625, -0.048004150390625, 0.0169677734375, 0.01181793212890625, -0.016845703125, -0.036224365234375, 0.029022216796875, -0.04132080078125, 0.061676025390625, -0.050750732421875, -0.01479339599609375, 0.00737762451171875, 0.0557861328125, -0.037689208984375, -0.029998779296875, -0.0188751220703125, -0.0028533935546875, -0.024810791015625, 0.054351806640625, 0.052215576171875, -0.046112060546875, -0.045257568359375, 0.06982421875, 0.033172607421875, 0.122314453125, -0.0035686492919921875, -0.01499176025390625, 0.035003662109375, 0.0018157958984375, -0.056640625, -0.06683349609375, 0.0241851806640625, -0.051849365234375, -0.0238494873046875, -0.03326416015625, 0.0072021484375, 0.014801025390625, -0.039764404296875, -0.061309814453125, 0.061431884765625, -0.0163726806640625, -0.0211944580078125, -0.03753662109375, -0.0007958412170410156, 0.00013375282287597656, 0.047576904296875, 0.003940582275390625, -0.011505126953125, -0.048553466796875, 0.0166015625, 0.0170745849609375, 0.015838623046875, 0.05157470703125, -0.029937744140625, -0.0233917236328125, -0.003894805908203125, 0.0168304443359375, 0.022705078125, 0.0204010009765625, 0.00567626953125, 0.026580810546875, 0.040863037109375, -0.0106048583984375, 0.05291748046875, -0.0190277099609375, -0.01385498046875, -0.02935791015625, -0.041259765625, 0.01470184326171875, 0.00894927978515625, 0.06744384765625, 0.00437164306640625, 0.0178070068359375, -0.041229248046875, -0.057281494140625, -0.060150146484375, 0.0024662017822265625, 0.00423431396484375, 0.026397705078125, -0.0660400390625, 0.04364013671875, 0.010589599609375, 0.0189361572265625, -0.0291595458984375, -0.0004451274871826172, 0.006114959716796875, -0.0172119140625, 0.0506591796875, 0.00022482872009277344, -0.0002472400665283203, 0.032440185546875, -0.0070037841796875, -0.01776123046875, -0.047943115234375, 0.0148468017578125, -0.017974853515625, -0.05523681640625, -0.005229949951171875, -0.01380157470703125, 0.04632568359375, -0.00635528564453125, -0.001560211181640625, 0.015167236328125, 0.01413726806640625, 0.006443023681640625, 0.00012373924255371094, -0.019775390625, 0.01806640625, 0.00693511962890625, 0.026611328125, -0.00982666015625, 0.049591064453125, 0.03057861328125, 0.035736083984375, 0.0239715576171875, -0.009002685546875, -0.020843505859375, 0.04913330078125, 0.00963592529296875, -0.041351318359375, 0.002414703369140625, -0.0164642333984375, -0.01189422607421875, 0.007495880126953125, -0.018829345703125, -0.051361083984375, -0.0031604766845703125, -0.01105499267578125, 0.01021575927734375, 0.013397216796875 ]
f90bb8c89f7b76685a3bd92dc79744acaf7b9d7d
Wordpress Stackexchange Q: Create tabs inside Plugins Admin Page I am developing my own plugin and I am trying to figure out how to add tabs to my admin page. Is the process similar to how we add meta boxes? Ie, something like add_tab_box(...); and I specify a callback? When I say tabs I mean tabs like below: A: I advice you to read this topic: Here you can find complete guide making options page with tabbed content. Or you can just copy the html of the tabbed page that you've liked, and use it on your own options page. I made my options page with tabs too, but with api. Tabs and the fields are taken from config array. Here you can see $aus_tabs array. And here is the class of options page. This class is used to render the form fields.
Q: Create tabs inside Plugins Admin Page I am developing my own plugin and I am trying to figure out how to add tabs to my admin page. Is the process similar to how we add meta boxes? Ie, something like add_tab_box(...); and I specify a callback? When I say tabs I mean tabs like below: A: I advice you to read this topic: Here you can find complete guide making options page with tabbed content. Or you can just copy the html of the tabbed page that you've liked, and use it on your own options page. I made my options page with tabs too, but with api. Tabs and the fields are taken from config array. Here you can see $aus_tabs array. And here is the class of options page. This class is used to render the form fields.
wordpress
{ "language": "en", "length": 141, "provenance": "stackexchange_00019.jsonl.gz:457607", "question_score": "13", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/195661" }
[ 0.0537109375, -0.041534423828125, 0.04132080078125, -0.022186279296875, -0.022125244140625, -0.00603485107421875, 0.0233306884765625, -0.015960693359375, -0.0257415771484375, 0.0203094482421875, -0.02032470703125, 0.01499176025390625, -0.052032470703125, -0.01806640625, -0.02191162109375, -0.03778076171875, 0.0258636474609375, -0.0023517608642578125, 0.03997802734375, -0.01025390625, 0.01486968994140625, -0.0013360977172851562, 0.01288604736328125, 0.088623046875, 0.03472900390625, -0.03167724609375, 0.005710601806640625, -0.00699615478515625, 0.031463623046875, 0.005458831787109375, 0.019866943359375, -0.0178680419921875, 0.0123443603515625, 0.019134521484375, 0.006809234619140625, -0.0023040771484375, 0.016265869140625, -0.0002880096435546875, 0.0298004150390625, -0.0009760856628417969, 0.05487060546875, -0.02398681640625, 0.026153564453125, 0.063232421875, 0.01354217529296875, -0.0489501953125, 0.04864501953125, -0.06744384765625, 0.0166015625, -0.01117706298828125, -0.00240325927734375, -0.0297698974609375, 0.0015344619750976562, -0.0548095703125, -0.0082244873046875, -0.018646240234375, 0.0304718017578125, -0.03216552734375, 0.040557861328125, -0.00506591796875, -0.033966064453125, -0.0244598388671875, 0.028594970703125, -0.014923095703125, 0.023468017578125, -0.01551055908203125, 0.0129241943359375, 0.01021575927734375, -0.01035308837890625, 0.033203125, 0.04205322265625, -0.019439697265625, -0.0013217926025390625, -0.007045745849609375, -0.0154571533203125, -0.0221405029296875, 0.0211181640625, -0.0267486572265625, -0.00579833984375, 0.0099334716796875, 0.036376953125, 0.041412353515625, 0.0272216796875, -0.0206146240234375, 0.01271820068359375, -0.0040740966796875, -0.0100860595703125, -0.0301361083984375, -0.0164642333984375, 0.003948211669921875, -0.0163116455078125, -0.0304718017578125, -0.0109100341796875, 0.04241943359375, -0.01259613037109375, 0.0059051513671875, 0.01485443115234375, -0.0191802978515625, 0.041748046875, 0.0217132568359375, 0.0041351318359375, -0.061309814453125, 0.0263824462890625, -0.00925445556640625, 0.007785797119140625, 0.03851318359375, -0.0221710205078125, -0.027862548828125, 0.019744873046875, 0.0231170654296875, -0.01221466064453125, -0.0177154541015625, 0.0237579345703125, -0.0258331298828125, -0.0038738250732421875, -0.0310516357421875, -0.0217742919921875, 0.01058197021484375, 0.0210113525390625, -0.04998779296875, -0.00542449951171875, 0.0158843994140625, -0.03070068359375, -0.0013828277587890625, -0.0194549560546875, -0.0318603515625, -0.007785797119140625, 0.001220703125, -0.0185089111328125, -0.0179290771484375, -0.0224609375, 0.033935546875, 0.051788330078125, 0.03717041015625, 0.01367950439453125, -0.01049041748046875, 0.01702880859375, -0.01222991943359375, 0.0152130126953125, -0.0009284019470214844, 0.0076751708984375, -0.0172119140625, 0.01141357421875, -0.0063629150390625, 0.0005507469177246094, 0.0247650146484375, -0.00449371337890625, 0.0016498565673828125, 0.019775390625, -0.043701171875, 0.03082275390625, -0.037628173828125, 0.01514434814453125, 0.002559661865234375, 0.0240631103515625, 0.0098114013671875, 0.0269012451171875, -0.01337432861328125, -0.013946533203125, 0.007396697998046875, 0.02734375, 0.004398345947265625, 0.009033203125, -0.021942138671875, -0.0151824951171875, -0.039031982421875, -0.057373046875, 0.0012149810791015625, 0.027618408203125, -0.007518768310546875, 0.0179290771484375, -0.0257720947265625, 0.0221099853515625, 0.018707275390625, 0.002674102783203125, 0.0310211181640625, 0.0031986236572265625, -0.0009012222290039062, 0.032440185546875, -0.00959014892578125, -0.0242767333984375, -0.0251007080078125, 0.05950927734375, -0.0307464599609375, -0.0484619140625, 0.02764892578125, -0.01129150390625, 0.029296875, 0.0384521484375, 0.006134033203125, -0.013397216796875, -0.0109405517578125, -0.01477813720703125, -0.0135345458984375, 0.0032329559326171875, -0.00910186767578125, 0.0283660888671875, 0.0321044921875, -0.00811767578125, -0.0191650390625, -0.040863037109375, 0.004970550537109375, -0.005290985107421875, 0.02496337890625, 0.020538330078125, -0.0223236083984375, 0.005001068115234375, 0.0162811279296875, 0.007465362548828125, 0.0181121826171875, 0.002422332763671875, -0.02276611328125, 0.0069580078125, -0.035247802734375, -0.0226898193359375, 0.00397491455078125, -0.00440216064453125, 0.04541015625, 0.0306396484375, 0.01727294921875, 0.052642822265625, -0.0215911865234375, 0.03985595703125, -0.007709503173828125, 0.033477783203125, -0.005535125732421875, -0.0241241455078125, -0.034423828125, 0.0026416778564453125, -0.005340576171875, -0.0271759033203125, 0.059539794921875, 0.0083465576171875, 0.01837158203125, -0.0121002197265625, -0.0158233642578125, -0.006313323974609375, -0.07598876953125, 0.005695343017578125, 0.0419921875, 0.03045654296875, 0.0279998779296875, 0.005886077880859375, 0.0284271240234375, 0.039886474609375, -0.03515625, 0.0035572052001953125, 0.015777587890625, -0.01195526123046875, 0.008636474609375, -0.00922393798828125, 0.0177001953125, 0.0162506103515625, -0.004268646240234375, 0.0117340087890625, 0.02545166015625, -0.056365966796875, -0.034423828125, 0.0234832763671875, -0.026702880859375, 0.01023101806640625, -0.0273590087890625, 0.00457000732421875, -0.019500732421875, 0.0245361328125, -0.01494598388671875, 0.037567138671875, 0.028289794921875, -0.002941131591796875, -0.026763916015625, 0.0149383544921875, 0.00321197509765625, -0.009979248046875, -0.00299072265625, 0.03558349609375, -0.041168212890625, -0.07781982421875, 0.0179901123046875, 0.039794921875, -0.00897216796875, -0.03619384765625, -0.0103759765625, -0.027862548828125, -0.016937255859375, 0.012786865234375, -0.0160064697265625, 0.020538330078125, -0.0258331298828125, -0.00496673583984375, -0.058502197265625, -0.00804901123046875, -0.0283203125, -0.062103271484375, 0.036895751953125, 0.0347900390625, -0.05938720703125, 0.046539306640625, -0.0279693603515625, 0.027984619140625, -0.029754638671875, 0.098388671875, 0.0697021484375, -0.0201416015625, 0.014739990234375, 0.005130767822265625, -0.017730712890625, -0.027099609375, 0.0362548828125, 0.00994110107421875, -0.0131378173828125, -0.0176544189453125, 0.049346923828125, 0.025970458984375, 0.03826904296875, -0.0133514404296875, -0.045379638671875, -0.01971435546875, 0.0251922607421875, -0.03662109375, -0.0067291259765625, -0.00039649009704589844, -0.07720947265625, -0.01837158203125, -0.01873779296875, -0.055755615234375, 0.00482940673828125, 0.025665283203125, 0.00783538818359375, -0.032379150390625, -0.016448974609375, -0.006862640380859375, -0.0445556640625, -0.03680419921875, -0.0095367431640625, 0.00965118408203125, 0.005702972412109375, 0.0005908012390136719, 0.033721923828125, -0.003353118896484375, -0.06134033203125, 0.0021877288818359375, -0.023468017578125, 0.00818634033203125, 0.031768798828125, 0.032196044921875, -0.041595458984375, 0.004119873046875, 0.0026397705078125, 0.0162200927734375, 0.0335693359375, -0.0187225341796875, 0.00110626220703125, -0.0204620361328125, 0.0030574798583984375, 0.00046944618225097656, -0.0283966064453125, 0.01097869873046875, 0.0258941650390625, -0.0124053955078125, -0.0294189453125, 0.016143798828125, 0.0218353271484375, -0.0016145706176757812, -0.034027099609375, -0.029144287109375, -0.035308837890625, 0.017333984375, -0.01497650146484375, 0.0231475830078125, 0.0157318115234375, 0.0157623291015625, -0.0038852691650390625, 0.013275146484375, -0.01285552978515625, -0.0115814208984375, -0.033203125, 0.037567138671875, -0.007610321044921875, -0.0021152496337890625, 0.0100860595703125, 0.000843048095703125, -0.0034008026123046875, 0.02423095703125, -0.01105499267578125, -0.052215576171875, 0.033294677734375, -0.0277099609375, 0.0203704833984375, -0.03857421875, -0.0241241455078125, 0.002178192138671875, 0.09185791015625, -0.05364990234375, -0.00760650634765625, -0.0174102783203125, 0.0108489990234375, 0.01052093505859375, -0.05401611328125, -0.0191650390625, -0.028839111328125, -0.0728759765625, 0.0035724639892578125, 0.02008056640625, -0.0447998046875, -0.041015625, 0.050750732421875, -0.0789794921875, -0.0024662017822265625, 0.0199737548828125, -0.01061248779296875, -0.019439697265625, 0.0146636962890625, -0.0016632080078125, -0.047210693359375, -0.0024166107177734375, 0.0027484893798828125, -0.10003662109375, -0.00501251220703125, -0.0274810791015625, 0.07574462890625, 0.0235443115234375, -0.025177001953125, -0.01174163818359375, 0.050689697265625, 0.000469207763671875, 0.0096435546875, 0.0175628662109375, 0.02423095703125, 0.0080413818359375, -0.0180816650390625, 0.0203704833984375, -0.040771484375, -0.0009794235229492188, -0.0254669189453125, -0.0059967041015625, 0.040679931640625, -0.0196533203125, 0.0100860595703125, -0.0207977294921875, -0.00441741943359375, 0.001262664794921875, -0.017364501953125, -0.06048583984375, -0.01552581787109375, -0.0242156982421875, -0.03497314453125, 0.004390716552734375, -0.0182037353515625, 0.01393890380859375, 0.037628173828125, -0.04583740234375, 0.03375244140625, 0.028961181640625, 0.014373779296875, -0.0269622802734375, -0.1204833984375, -0.0008831024169921875, 0.02667236328125, 0.0110015869140625, 0.027374267578125, -0.007419586181640625, -0.0345458984375, 0.07586669921875, 0.005126953125, 0.01523590087890625, -0.040283203125, 0.0284576416015625, -0.0087127685546875, -0.027099609375, 0.0208892822265625, -0.0212860107421875, 0.042633056640625, -0.00991058349609375, -0.0213775634765625, 0.00383758544921875, -0.04132080078125, 0.027618408203125, 0.011688232421875, 0.0210723876953125, -0.034332275390625, -0.025726318359375, -0.0046844482421875, 0.016448974609375, 0.0274505615234375, 0.03704833984375, -0.01471710205078125, 0.024932861328125, -0.0044403076171875, 0.0008339881896972656, 0.010009765625, 0.0587158203125, -0.043243408203125, 0.0126800537109375, 0.033172607421875, -0.035430908203125, -0.017730712890625, -0.00988006591796875, 0.043670654296875, -0.0252685546875, -0.0460205078125, -0.040618896484375, -0.01453399658203125, 0.0209808349609375, 0.046234130859375, 0.011566162109375, -0.0296630859375, 0.002025604248046875, -0.00762176513671875, 0.0196380615234375, 0.05474853515625, -0.016510009765625, -0.009033203125, 0.031951904296875, 0.007045745849609375, 0.00386810302734375, 0.00414276123046875, 0.09283447265625, -0.058258056640625, 0.06097412109375, 0.004085540771484375, 0.0099334716796875, 0.00609588623046875, 0.0163726806640625, 0.0389404296875, -0.046539306640625, 0.0268402099609375, -0.042724609375, 0.0005292892456054688, -0.02777099609375, 0.04718017578125, 0.0030269622802734375, 0.0311126708984375, 0.0120849609375, -0.041290283203125, 0.026885986328125, -0.0452880859375, 0.006420135498046875, 0.006389617919921875, -0.05657958984375, -0.05023193359375, -0.01371002197265625, -0.004459381103515625, 0.01351165771484375, -0.02838134765625, -0.00756072998046875, 0.045013427734375, -0.0201568603515625, 0.046783447265625, -0.01332855224609375, 0.006656646728515625, 0.0048065185546875, 0.003753662109375, -0.01116943359375, -0.0145416259765625, -0.019073486328125, -0.0404052734375, -0.047698974609375, -0.0011119842529296875, 0.01253509521484375, 0.02313232421875, -0.01544952392578125, 0.03912353515625, -0.0134735107421875, -0.025665283203125, -0.033660888671875, -0.0012807846069335938, 0.0433349609375, 0.027191162109375, -0.061676025390625, -0.00151824951171875, -0.0670166015625, -0.00930023193359375, -0.041473388671875, -0.0316162109375, -0.036468505859375, -0.004245758056640625, 0.00135040283203125, 0.0092010498046875, -0.025543212890625, -0.050750732421875, 0.0011224746704101562, -0.0008268356323242188, 0.006435394287109375, -0.029266357421875, 0.0296630859375, 0.06988525390625, -0.046966552734375, 0.0621337890625, 0.0257720947265625, 0.04608154296875, -0.03955078125, -0.0275115966796875, 0.005279541015625, -0.03594970703125, -0.036590576171875, -0.0222320556640625, -0.0293121337890625, 0.038299560546875, 0.05108642578125, -0.00424957275390625, 0.013336181640625, 0.002044677734375, 0.0003268718719482422, -0.0135040283203125, 0.01385498046875, 0.0091705322265625, 0.0147857666015625, 0.023590087890625, -0.027984619140625, 0.010955810546875, -0.0213165283203125, -0.007114410400390625, 0.037384033203125, -0.032684326171875, 0.0384521484375, 0.02313232421875, -0.033172607421875, 0.0643310546875, 0.073974609375, 0.00914764404296875, 0.046722412109375, 0.03192138671875, 0.0143890380859375, 0.01155853271484375, 0.039093017578125, 0.00554656982421875, -0.023834228515625, 0.084716796875, 0.0255889892578125, -0.03509521484375, 0.05755615234375, -0.058074951171875, 0.03619384765625, 0.062103271484375, 0.06256103515625, -0.12384033203125, 0.03240966796875, 0.003978729248046875, 0.02947998046875, 0.08563232421875, -0.0216827392578125, -0.0016345977783203125, -0.041290283203125, 0.042724609375, 0.0146636962890625, -0.0130767822265625, 0.0153350830078125, -0.01009368896484375, -0.024505615234375, -0.0310516357421875, 0.01371002197265625, 0.0127716064453125, 0.0187835693359375, 0.0142822265625, -0.02642822265625, 0.0247955322265625, 0.00997161865234375, 0.026153564453125, 0.00974273681640625, -0.00641632080078125, 0.00887298583984375, 0.0623779296875, -0.039642333984375, -0.0066070556640625, 0.022186279296875, 0.0191802978515625, 0.031890869140625, 0.0645751953125, -0.00323486328125, 0.007404327392578125, 0.03253173828125, 0.013702392578125, -0.0029506683349609375, -0.00212860107421875, 0.00534820556640625, -0.0191802978515625, -0.02813720703125, 0.0002703666687011719, -0.04095458984375, 0.0019779205322265625, -0.01024627685546875, -0.005069732666015625, 0.0648193359375, 0.0167694091796875, -0.04803466796875, 0.0223236083984375, -0.0079345703125, -0.00870513916015625, 0.01062774658203125, -0.0229339599609375, -0.00853729248046875, 0.0244293212890625, -0.0031719207763671875, -0.00022470951080322266, 0.025146484375, 0.00893402099609375, -0.06689453125, 0.09661865234375, 0.006443023681640625, 0.01450347900390625, -0.002162933349609375, 0.04620361328125, -0.040985107421875, -0.0025234222412109375, -0.0232391357421875, 0.01910400390625, 0.0276641845703125, 0.025360107421875, -0.043914794921875, -0.0200958251953125, -0.005054473876953125, 0.061981201171875, 0.043487548828125, 0.01195526123046875, -0.04241943359375, 0.000652313232421875, 0.03326416015625, 0.021209716796875, 0.0042877197265625, 0.053924560546875, 0.042022705078125, -0.0003654956817626953, 0.08697509765625, 0.0056915283203125, 0.040985107421875, -0.0047760009765625, 0.04345703125, 0.048126220703125, -0.0023746490478515625, -0.021484375, -0.032928466796875, 0.0243072509765625, 0.0035495758056640625, -0.026336669921875, -0.00798797607421875, -0.057464599609375, 0.00708770751953125, 0.013275146484375, -0.0014867782592773438, 0.01470947265625, -0.01045989990234375, -0.0106964111328125, 0.02484130859375, 0.00750732421875, -0.003536224365234375, 0.005344390869140625, 0.026885986328125, -0.03741455078125, -0.0207061767578125, 0.0037136077880859375, 0.032470703125, -0.05084228515625, 0.0059051513671875, -0.039825439453125, 0.0005373954772949219, -0.0711669921875, -0.0179901123046875, 0.0220184326171875, 0.0218658447265625, -0.01611328125, -0.0906982421875, 0.001190185546875, -0.0010232925415039062, 0.038970947265625, 0.06109619140625, 0.06396484375, 0.0160675048828125, 0.06494140625, 0.01107025146484375, -0.00737762451171875, -0.0031986236572265625, -0.004314422607421875, 0.004772186279296875, 0.03289794921875, -0.0110015869140625, 0.0184478759765625, -0.0311737060546875, -0.01390838623046875, 0.0019989013671875, 0.0328369140625, 0.03424072265625, 0.017486572265625, 0.01251220703125, -0.019500732421875, 0.0020885467529296875, 0.0199432373046875, -0.0007729530334472656, 0.0004661083221435547, 0.001453399658203125, -0.014617919921875, 0.00858306884765625, 0.0101776123046875, 0.009918212890625, 0.034759521484375, 0.01488494873046875, 0.0027599334716796875, 0.020965576171875, 0.0025424957275390625, -0.004398345947265625, -0.021331787109375, -0.03619384765625, -0.06219482421875, 0.03466796875, 0.033782958984375, 0.0268707275390625, 0.031402587890625, -0.00878143310546875, 0.04595947265625, -0.00243377685546875, 0.0312347412109375, 0.0041961669921875, -0.0298309326171875, 0.0182342529296875, -0.02044677734375, 0.06982421875, 0.0304412841796875, -0.0465087890625, -0.0027618408203125, -0.03594970703125, -0.053924560546875, 0.021942138671875, 0.049224853515625, 0.000560760498046875, -0.00439453125, -0.003749847412109375, -0.0016107559204101562, -0.005237579345703125, -0.01849365234375, 0.0228729248046875, 0.01206207275390625, 0.0087127685546875, 0.0123748779296875, -0.0538330078125, -0.032745361328125, 0.004695892333984375, 0.025604248046875, 0.008819580078125, 0.036895751953125, 0.004405975341796875, 0.0176849365234375, -0.0177154541015625, -0.004730224609375, -0.0228118896484375, -0.03472900390625, 0.0794677734375, -0.011566162109375, -0.0521240234375, -0.00614166259765625, -0.022705078125, -0.004547119140625, 0.028228759765625, -0.03399658203125, -0.048675537109375, 0.022796630859375, 0.03369140625, 0.02484130859375, 0.0335693359375, -0.0012521743774414062, -0.01351165771484375, -0.0171661376953125, -0.00009530782699584961, 0.032012939453125, 0.044952392578125, -0.0113983154296875, 0.03167724609375, 0.0011930465698242188, 0.031890869140625, -0.015106201171875, 0.0216827392578125, -0.031890869140625, 0.0239410400390625, -0.049713134765625, -0.0235137939453125, 0.007709503173828125, -0.024505615234375, 0.046539306640625, -0.018035888671875, 0.07269287109375, 0.010772705078125, -0.00603485107421875, 0.040771484375, 0.055572509765625, 0.0526123046875, -0.038299560546875, 0.01166534423828125, 0.061065673828125, -0.011474609375, 0.01186370849609375, 0.0285186767578125, -0.04052734375, -0.07220458984375, -0.0006327629089355469, 0.014434814453125, -0.03765869140625, -0.0283660888671875, -0.09521484375, 0.035980224609375, 0.0080108642578125, -0.003459930419921875, -0.04730224609375, 0.01251220703125, -0.0166168212890625, 0.077392578125, -0.030975341796875, 0.01155853271484375, -0.00016021728515625, 0.0014190673828125, -0.041748046875, -0.01218414306640625, -0.0213623046875, 0.00957489013671875, -0.0003237724304199219, 0.0300140380859375, 0.03973388671875, -0.045013427734375, 0.007648468017578125, 0.01898193359375, 0.048583984375, 0.06182861328125, 0.040679931640625, -0.0092620849609375, 0.03607177734375, 0.0157623291015625, -0.0306396484375, -0.05047607421875, -0.0104827880859375, -0.00815582275390625, 0.03106689453125, 0.019927978515625, -0.00258636474609375, 0.0270538330078125, -0.030975341796875, -0.061279296875, 0.048919677734375, 0.006229400634765625, -0.03582763671875, -0.03363037109375, 0.0022869110107421875, 0.0017461776733398438, 0.0148468017578125, -0.0155487060546875, -0.01142120361328125, -0.031524658203125, 0.00995635986328125, 0.0182342529296875, 0.031494140625, 0.018096923828125, 0.0150909423828125, -0.0190582275390625, 0.01959228515625, 0.01094818115234375, 0.0210418701171875, 0.004467010498046875, -0.0169219970703125, 0.0181121826171875, 0.05926513671875, -0.0233306884765625, -0.09454345703125, -0.0109100341796875, -0.032989501953125, -0.016754150390625, -0.07843017578125, 0.0036163330078125, 0.00626373291015625, 0.0699462890625, 0.042999267578125, 0.0092926025390625, -0.06793212890625, 0.005283355712890625, -0.045806884765625, -0.0181884765625, -0.0280303955078125, 0.00913238525390625, -0.07305908203125, -0.0130615234375, 0.03125, 0.017791748046875, -0.0163726806640625, 0.004070281982421875, 0.0115509033203125, -0.027008056640625, 0.054718017578125, 0.01253509521484375, 0.004497528076171875, -0.0223388671875, 0.067138671875, -0.05572509765625, -0.03338623046875, 0.0225677490234375, 0.0121612548828125, 0.006805419921875, 0.00592803955078125, 0.0182952880859375, -0.037017822265625, -0.031402587890625, 0.058258056640625, -0.01995849609375, 0.08197021484375, -0.06646728515625, -0.051544189453125, -0.0066070556640625, 0.033050537109375, -0.007404327392578125, 0.029388427734375, -0.0282135009765625, 0.0733642578125, -0.00008696317672729492, 0.08660888671875, -0.00799560546875, -0.0066680908203125, -0.025543212890625, 0.0372314453125, -0.007587432861328125, -0.01383209228515625, 0.0196533203125, -0.02398681640625, 0.005268096923828125, -0.046417236328125, -0.018035888671875, -0.04541015625, 0.0159759521484375, 0.0281524658203125, -0.019134521484375, 0.046173095703125 ]
99e57889d33764239e738328aa3084a14995f12d
Wordpress Stackexchange Q: Why do_shortcode is not executing the shortcode in data-* html attributes? This is on Vanilla installation. I've made a shortcode:- /** * Creates a shortcode for shortcode_use_here * @author Omar Tariq <[email protected]> */ function callback_banana_abc( $args ){ /* Don't echo! Always return */ return 'yay!'; } add_shortcode( 'banana_abc', 'callback_banana_abc' ); And I've made a template that looks like this:- <?php /* * Template Name: Test Template * Description: Hello world. */ $str = '<a href="#" title="[banana_abc]" data-abc="[banana_abc]">[banana_abc]</a>'; echo do_shortcode($str); The output is:- <a href="#" title="yay!" data-abc="[banana_abc]">yay!</a> This is only for data-* attributes. It works fine when used in title attribute. A: do_shortcodes_in_html_tags() runs attributes through wp_kses_one_attr() which checks them against wp_kses_allowed_html( 'post' ) which by default only accepts standard non-data attributes, so you'd have to add your attribute: add_filter( 'wp_kses_allowed_html', function ( $allowedposttags, $context ) { if ( $context == 'post' ) { $allowedposttags['a']['data-abc'] = 1; } return $allowedposttags; }, 10, 2 );
Q: Why do_shortcode is not executing the shortcode in data-* html attributes? This is on Vanilla installation. I've made a shortcode:- /** * Creates a shortcode for shortcode_use_here * @author Omar Tariq <[email protected]> */ function callback_banana_abc( $args ){ /* Don't echo! Always return */ return 'yay!'; } add_shortcode( 'banana_abc', 'callback_banana_abc' ); And I've made a template that looks like this:- <?php /* * Template Name: Test Template * Description: Hello world. */ $str = '<a href="#" title="[banana_abc]" data-abc="[banana_abc]">[banana_abc]</a>'; echo do_shortcode($str); The output is:- <a href="#" title="yay!" data-abc="[banana_abc]">yay!</a> This is only for data-* attributes. It works fine when used in title attribute. A: do_shortcodes_in_html_tags() runs attributes through wp_kses_one_attr() which checks them against wp_kses_allowed_html( 'post' ) which by default only accepts standard non-data attributes, so you'd have to add your attribute: add_filter( 'wp_kses_allowed_html', function ( $allowedposttags, $context ) { if ( $context == 'post' ) { $allowedposttags['a']['data-abc'] = 1; } return $allowedposttags; }, 10, 2 ); A: I cannot reproduce your problem but the way you are using the shortcode to construct small pieces of that string is making me crazy. Try this, and maybe it will work around your problem as well: function callback_banana_abc( $args ){ $atts = shortcode_atts( array( 'title' => 'yay!', 'data' => 'yay!', 'linktext' => 'yay!' ), $args ); $str = '<a href="#" title="'.$atts['title'].'" data-abc="'.$atts['data'].'">'.$atts['linktext'].'</a>'; return $str; } add_shortcode( 'banana_abc', 'callback_banana_abc' ); $str = '[banana_abc]'; echo do_shortcode($str); $str = '[banana_abc title="ba" data="na" linktext="na"]'; echo do_shortcode($str);
wordpress
{ "language": "en", "length": 237, "provenance": "stackexchange_00019.jsonl.gz:457608", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/195665" }
[ 0.037811279296875, -0.032073974609375, 0.01568603515625, 0.0032253265380859375, -0.005817413330078125, -0.0216064453125, 0.054443359375, -0.0173492431640625, -0.0033969879150390625, 0.05279541015625, -0.00675201416015625, 0.0006327629089355469, 0.03594970703125, -0.0186767578125, -0.0032444000244140625, 0.001293182373046875, 0.0296630859375, -0.0035839080810546875, 0.0168304443359375, -0.024383544921875, 0.0003879070281982422, -0.005279541015625, 0.01027679443359375, 0.0670166015625, -0.0128326416015625, -0.033843994140625, 0.082275390625, -0.006679534912109375, -0.036895751953125, -0.03021240234375, 0.0029773712158203125, 0.0139312744140625, 0.05426025390625, 0.056060791015625, -0.10186767578125, 0.05975341796875, -0.01131439208984375, 0.0301361083984375, -0.0241241455078125, 0.048370361328125, 0.046539306640625, -0.033233642578125, 0.053131103515625, 0.0281829833984375, 0.0153961181640625, -0.030242919921875, 0.05694580078125, -0.054718017578125, -0.01171875, 0.00905609130859375, 0.0137786865234375, 0.0169219970703125, 0.0214691162109375, -0.046234130859375, -0.003154754638671875, 0.00951385498046875, -0.07537841796875, -0.0287322998046875, 0.0186767578125, 0.07275390625, 0.029296875, -0.03936767578125, -0.0009164810180664062, -0.023895263671875, 0.01202392578125, -0.0107421875, 0.007305145263671875, 0.0033550262451171875, -0.0005135536193847656, 0.044219970703125, 0.04595947265625, -0.01465606689453125, 0.0007190704345703125, -0.037078857421875, 0.00028824806213378906, 0.01039886474609375, -0.009857177734375, -0.035369873046875, -0.0018329620361328125, 0.00374603271484375, 0.027984619140625, -0.02093505859375, 0.0266265869140625, -0.0025177001953125, -0.014251708984375, -0.01471710205078125, -0.01139068603515625, -0.0020656585693359375, 0.0027523040771484375, 0.0162200927734375, -0.0283050537109375, 0.05535888671875, -0.0010766983032226562, 0.01029205322265625, -0.0175323486328125, 0.0052337646484375, 0.004596710205078125, 0.054443359375, -0.004787445068359375, 0.017913818359375, -0.00012254714965820312, -0.03228759765625, 0.0256195068359375, -0.05755615234375, 0.0222015380859375, 0.048828125, -0.002964019775390625, -0.0170135498046875, 0.0377197265625, 0.008514404296875, 0.01580810546875, 0.036376953125, 0.00213623046875, 0.034912109375, -0.05377197265625, -0.005985260009765625, -0.0306854248046875, -0.01666259765625, -0.020599365234375, 0.0257415771484375, 0.02197265625, 0.03778076171875, 0.028656005859375, -0.0313720703125, -0.0287628173828125, -0.0226593017578125, -0.035888671875, -0.05059814453125, 0.01910400390625, 0.024017333984375, -0.0243682861328125, 0.029327392578125, 0.0157623291015625, -0.028289794921875, -0.036407470703125, -0.00931549072265625, 0.007549285888671875, -0.047088623046875, -0.01270294189453125, 0.0164642333984375, -0.01322174072265625, 0.00899505615234375, 0.038421630859375, -0.042266845703125, 0.018341064453125, 0.016204833984375, 0.020477294921875, 0.023406982421875, -0.0217132568359375, -0.084228515625, 0.09185791015625, -0.03631591796875, 0.04644775390625, 0.01332855224609375, 0.01062774658203125, -0.018524169921875, 0.044830322265625, -0.034515380859375, -0.0092315673828125, -0.03887939453125, 0.0018110275268554688, -0.0220794677734375, 0.031982421875, -0.030792236328125, -0.033843994140625, 0.043121337890625, -0.06036376953125, -0.018829345703125, 0.0167999267578125, 0.07818603515625, -0.033447265625, 0.0155792236328125, -0.017608642578125, 0.0112457275390625, -0.0013132095336914062, -0.00991058349609375, -0.0164794921875, 0.041717529296875, 0.030548095703125, 0.0045013427734375, -0.0029811859130859375, -0.03326416015625, 0.07879638671875, -0.00531768798828125, -0.055938720703125, 0.051513671875, 0.01032257080078125, 0.0792236328125, 0.00736236572265625, 0.02960205078125, 0.005435943603515625, 0.0200653076171875, 0.0258331298828125, 0.01003265380859375, 0.05859375, -0.067138671875, -0.0084075927734375, -0.038055419921875, 0.0107421875, -0.019805908203125, 0.045196533203125, -0.0323486328125, 0.0482177734375, -0.0006575584411621094, -0.01299285888671875, -0.0030155181884765625, -0.03717041015625, 0.02587890625, -0.04144287109375, 0.00067138671875, 0.034698486328125, -0.0226593017578125, -0.03387451171875, 0.01727294921875, 0.01007080078125, -0.01239776611328125, -0.0227813720703125, 0.0506591796875, -0.00146484375, 0.041412353515625, 0.00856781005859375, -0.02984619140625, 0.01216888427734375, 0.0014925003051757812, 0.049835205078125, 0.0142364501953125, -0.0263671875, -0.02496337890625, 0.0005960464477539062, 0.03594970703125, -0.076171875, 0.0236358642578125, -0.024566650390625, -0.02899169921875, -0.039825439453125, -0.0173187255859375, -0.0204010009765625, -0.0295562744140625, 0.0304718017578125, 0.058380126953125, 0.043975830078125, 0.0240631103515625, -0.00603485107421875, -0.0294342041015625, 0.049041748046875, -0.0145416259765625, 0.02618408203125, -0.048553466796875, 0.00707244873046875, 0.033233642578125, -0.00039839744567871094, 0.025390625, 0.023895263671875, -0.032135009765625, 0.0167694091796875, 0.0266876220703125, -0.0209808349609375, -0.01690673828125, -0.031585693359375, 0.00012034177780151367, 0.01421356201171875, -0.0182952880859375, -0.010833740234375, -0.0025653839111328125, 0.08392333984375, -0.0027618408203125, 0.045684814453125, 0.019378662109375, -0.044891357421875, 0.026519775390625, -0.00470733642578125, -0.058074951171875, -0.011260986328125, 0.0528564453125, 0.045928955078125, 0.023162841796875, -0.05157470703125, -0.01384735107421875, 0.02288818359375, 0.053070068359375, 0.006969451904296875, 0.037078857421875, 0.0012521743774414062, -0.0280609130859375, 0.0153350830078125, -0.03631591796875, -0.0080108642578125, -0.01136016845703125, 0.01268768310546875, -0.0206298828125, -0.006404876708984375, 0.046539306640625, -0.00855255126953125, 0.04815673828125, 0.036529541015625, -0.00860595703125, 0.004749298095703125, -0.032806396484375, 0.01425933837890625, -0.03106689453125, 0.0389404296875, 0.048492431640625, 0.0026454925537109375, -0.02203369140625, 0.01153564453125, -0.00844573974609375, -0.023040771484375, 0.028961181640625, 0.0006623268127441406, -0.03265380859375, -0.0153350830078125, 0.034149169921875, 0.023681640625, 0.05596923828125, -0.00617218017578125, -0.0450439453125, -0.004787445068359375, 0.03173828125, -0.05194091796875, -0.052398681640625, 0.07373046875, -0.0325927734375, 0.0023632049560546875, -0.027252197265625, -0.017242431640625, -0.0291900634765625, -0.00030541419982910156, -0.01812744140625, -0.060302734375, 0.0014705657958984375, -0.0268707275390625, -0.02276611328125, -0.038604736328125, 0.043060302734375, 0.0016775131225585938, 0.00695037841796875, 0.0226287841796875, 0.0293731689453125, 0.0193328857421875, -0.018157958984375, 0.033416748046875, 0.00506591796875, -0.041351318359375, 0.006343841552734375, 0.014007568359375, -0.0258636474609375, -0.010833740234375, -0.0018644332885742188, 0.0087432861328125, 0.0308074951171875, -0.02264404296875, -0.00829315185546875, 0.01303863525390625, 0.0300445556640625, 0.04296875, 0.0001285076141357422, -0.0281219482421875, 0.057647705078125, 0.052093505859375, 0.00774383544921875, -0.01319122314453125, -0.003093719482421875, -0.048583984375, -0.0237884521484375, 0.03363037109375, -0.01263427734375, 0.0037784576416015625, -0.015960693359375, 0.024078369140625, 0.012908935546875, 0.0494384765625, 0.0225372314453125, -0.041107177734375, -0.0194244384765625, -0.01165771484375, -0.0361328125, 0.0008168220520019531, -0.0219573974609375, -0.006641387939453125, -0.01346588134765625, 0.0054473876953125, -0.00907135009765625, -0.0030498504638671875, -0.0279541015625, -0.0110626220703125, 0.0572509765625, -0.0129547119140625, 0.027587890625, -0.040130615234375, -0.0290374755859375, -0.01416778564453125, 0.05169677734375, -0.01401519775390625, 0.0063629150390625, -0.03424072265625, -0.0172119140625, -0.0219879150390625, -0.026153564453125, -0.0518798828125, 0.00991058349609375, -0.050689697265625, 0.00505828857421875, 0.0010242462158203125, -0.034332275390625, -0.0192108154296875, -0.044281005859375, -0.04638671875, -0.01715087890625, 0.03717041015625, -0.01433563232421875, 0.0027980804443359375, 0.0031757354736328125, -0.0330810546875, -0.00833892822265625, -0.0274658203125, -0.002788543701171875, -0.052215576171875, 0.0021038055419921875, -0.0186920166015625, 0.0216217041015625, 0.0170745849609375, -0.024749755859375, -0.036346435546875, 0.0110015869140625, -0.0241851806640625, 0.014129638671875, 0.0155181884765625, 0.051177978515625, -0.017333984375, -0.00875091552734375, 0.0146331787109375, -0.03387451171875, -0.0089111328125, 0.0440673828125, 0.0157928466796875, 0.038909912109375, -0.012176513671875, -0.05023193359375, 0.0299072265625, -0.049163818359375, -0.049407958984375, -0.042236328125, -0.01068115234375, -0.0146331787109375, -0.00247955322265625, -0.026214599609375, -0.04150390625, -0.0168304443359375, 0.060516357421875, 0.006622314453125, 0.003818511962890625, -0.0158233642578125, 0.061492919921875, 0.0005788803100585938, -0.03765869140625, -0.0179443359375, -0.0233001708984375, 0.035491943359375, -0.0158233642578125, 0.037506103515625, 0.0487060546875, -0.007167816162109375, -0.0029010772705078125, -0.0009150505065917969, 0.035003662109375, -0.0262451171875, 0.04913330078125, -0.00728607177734375, -0.0014467239379882812, 0.018280029296875, 0.02783203125, -0.0232696533203125, -0.005908966064453125, 0.00679779052734375, 0.00959014892578125, 0.003875732421875, -0.0025691986083984375, 0.0171051025390625, 0.0021495819091796875, -0.00019037723541259766, -0.0136260986328125, 0.0036773681640625, 0.0489501953125, 0.0224151611328125, 0.0230255126953125, 0.0015649795532226562, -0.01309967041015625, -0.0084686279296875, 0.0189666748046875, -0.01439666748046875, 0.0260772705078125, -0.033203125, 0.056732177734375, -0.043670654296875, -0.00446319580078125, -0.015716552734375, -0.0132904052734375, 0.045166015625, 0.04107666015625, -0.0110321044921875, -0.0084381103515625, -0.016571044921875, -0.001129150390625, -0.05926513671875, -0.03302001953125, 0.005157470703125, 0.043487548828125, -0.00540924072265625, 0.057373046875, 0.006561279296875, -0.0166015625, 0.00018775463104248047, -0.030548095703125, -0.04339599609375, 0.0002853870391845703, 0.002712249755859375, 0.02093505859375, -0.00927734375, 0.015869140625, -0.01416015625, 0.0443115234375, 0.044281005859375, 0.023284912109375, 0.01401519775390625, -0.01580810546875, -0.000522613525390625, 0.004138946533203125, -0.01158905029296875, -0.05712890625, -0.0262451171875, 0.0362548828125, 0.05401611328125, -0.0151824951171875, -0.029754638671875, 0.0114288330078125, -0.003322601318359375, -0.01690673828125, 0.0205078125, 0.0226898193359375, -0.00989532470703125, -0.015350341796875, 0.01287841796875, 0.027740478515625, 0.02386474609375, -0.006923675537109375, 0.0129241943359375, -0.0021991729736328125, 0.035888671875, -0.0162506103515625, 0.0192413330078125, -0.01558685302734375, -0.030120849609375, -0.0056610107421875, -0.026397705078125, -0.047882080078125, 0.054168701171875, 0.0013484954833984375, -0.01262664794921875, -0.0271453857421875, 0.039154052734375, -0.02752685546875, 0.050262451171875, -0.023101806640625, -0.00919342041015625, -0.0017290115356445312, 0.01479339599609375, 0.04779052734375, 0.034210205078125, -0.048126220703125, 0.001132965087890625, -0.010498046875, -0.0038471221923828125, 0.00983428955078125, -0.0140228271484375, -0.020416259765625, -0.02056884765625, 0.0017910003662109375, 0.02069091796875, -0.0262603759765625, -0.02484130859375, 0.0017213821411132812, 0.026702880859375, 0.006500244140625, 0.057861328125, -0.032806396484375, 0.041351318359375, -0.0191497802734375, 0.043487548828125, -0.033050537109375, 0.0017032623291015625, 0.0285186767578125, -0.0232086181640625, 0.0283355712890625, -0.06884765625, -0.05731201171875, -0.017913818359375, -0.0311126708984375, 0.0413818359375, 0.034210205078125, -0.01258087158203125, 0.0292205810546875, -0.002750396728515625, 0.0048828125, -0.01456451416015625, 0.00481414794921875, -0.0277099609375, -0.00525665283203125, 0.010894775390625, -0.038818359375, -0.035797119140625, -0.0016994476318359375, 0.00873565673828125, 0.03277587890625, -0.0352783203125, 0.00949859619140625, 0.0217132568359375, -0.049530029296875, 0.054229736328125, 0.0894775390625, -0.0157623291015625, 0.02337646484375, 0.019775390625, -0.00742340087890625, 0.0212249755859375, 0.041168212890625, 0.005100250244140625, -0.059906005859375, 0.049713134765625, 0.0016689300537109375, -0.028076171875, 0.0308685302734375, -0.03302001953125, 0.0225372314453125, 0.06585693359375, 0.05633544921875, -0.059539794921875, -0.009368896484375, -0.0041046142578125, -0.0677490234375, -0.004360198974609375, -0.0255126953125, 0.009613037109375, -0.0145263671875, 0.02105712890625, 0.04425048828125, -0.0288238525390625, -0.0007495880126953125, 0.01971435546875, 0.041351318359375, 0.0064544677734375, 0.0897216796875, -0.009918212890625, -0.032562255859375, -0.0679931640625, 0.01309967041015625, -0.02587890625, -0.01251220703125, 0.029571533203125, -0.0205535888671875, -0.022979736328125, -0.0631103515625, -0.0285186767578125, 0.0267333984375, -0.034912109375, -0.01055145263671875, -0.0110015869140625, 0.06298828125, 0.034271240234375, -0.01222991943359375, -0.006191253662109375, 0.024169921875, 0.0038127899169921875, 0.0260009765625, -0.036468505859375, -0.0116729736328125, 0.055938720703125, -0.002475738525390625, 0.016845703125, 0.037353515625, -0.0220794677734375, -0.0059967041015625, -0.01165771484375, 0.0228271484375, -0.007198333740234375, -0.0233306884765625, 0.01137542724609375, 0.033203125, 0.0162506103515625, -0.0189971923828125, 0.01264190673828125, -0.06475830078125, -0.022247314453125, -0.0192718505859375, -0.05517578125, -0.011871337890625, -0.0380859375, -0.09417724609375, 0.087646484375, 0.042816162109375, 0.0396728515625, -0.011016845703125, 0.0255889892578125, -0.027679443359375, -0.00940704345703125, -0.0190582275390625, 0.01190948486328125, -0.00687408447265625, 0.01007080078125, -0.033477783203125, -0.00002855062484741211, -0.0013904571533203125, 0.04473876953125, 0.037200927734375, 0.0037937164306640625, 0.020294189453125, -0.0272979736328125, 0.0015316009521484375, 0.01047515869140625, -0.045074462890625, 0.004199981689453125, -0.008575439453125, 0.068603515625, 0.0268707275390625, -0.053375244140625, 0.03125, -0.0267181396484375, -0.02978515625, 0.0204010009765625, -0.00830841064453125, -0.019622802734375, 0.024383544921875, -0.0068511962890625, -0.00521087646484375, 0.0096893310546875, -0.00264739990234375, -0.049774169921875, -0.0235748291015625, 0.043243408203125, 0.0330810546875, -0.0853271484375, -0.11865234375, -0.01534271240234375, 0.01366424560546875, 0.02740478515625, 0.041534423828125, 0.0275115966796875, 0.0130767822265625, 0.0352783203125, 0.0161895751953125, 0.034332275390625, 0.024688720703125, -0.0087738037109375, -0.00800323486328125, -0.023101806640625, 0.0216522216796875, -0.059661865234375, -0.0131072998046875, 0.0293731689453125, 0.017822265625, -0.0151214599609375, 0.024688720703125, 0.0098876953125, 0.01910400390625, -0.033721923828125, -0.05029296875, -0.01148223876953125, 0.03350830078125, 0.02056884765625, -0.04364013671875, 0.0005254745483398438, 0.0122222900390625, 0.0557861328125, -0.00830078125, 0.01555633544921875, -0.048095703125, -0.04345703125, -0.0179443359375, -0.01238250732421875, -0.0202178955078125, 0.051727294921875, 0.03564453125, 0.03369140625, -0.0596923828125, -0.0231170654296875, 0.00408172607421875, 0.019683837890625, -0.033416748046875, 0.003261566162109375, -0.0222320556640625, -0.043670654296875, -0.006732940673828125, 0.039337158203125, 0.0240936279296875, -0.00803375244140625, 0.01413726806640625, -0.004261016845703125, 0.0020751953125, -0.006923675537109375, 0.0293731689453125, -0.0090789794921875, -0.005023956298828125, 0.004535675048828125, -0.0267486572265625, -0.00032782554626464844, -0.02923583984375, -0.01593017578125, 0.034332275390625, 0.011810302734375, -0.0257110595703125, 0.0633544921875, -0.007801055908203125, -0.0181884765625, 0.0125732421875, 0.011505126953125, 0.07769775390625, 0.0149993896484375, -0.0406494140625, -0.016510009765625, 0.01503753662109375, -0.06036376953125, 0.01352691650390625, 0.050323486328125, -0.0078277587890625, 0.0014715194702148438, 0.001804351806640625, -0.06011962890625, 0.053497314453125, 0.05438232421875, -0.0198974609375, 0.052459716796875, 0.0280914306640625, -0.0231781005859375, -0.006496429443359375, 0.010040283203125, 0.02783203125, 0.023193359375, 0.0023956298828125, 0.04278564453125, -0.0254364013671875, 0.005611419677734375, -0.020294189453125, 0.04534912109375, -0.035186767578125, -0.00986480712890625, 0.05682373046875, 0.0411376953125, 0.007160186767578125, -0.035980224609375, 0.0259552001953125, 0.052490234375, 0.01528167724609375, -0.0025691986083984375, 0.0235595703125, -0.0305328369140625, 0.00519561767578125, 0.00763702392578125, 0.0313720703125, -0.0340576171875, -0.068115234375, -0.10003662109375, -0.0075531005859375, 0.01012420654296875, 0.028900146484375, 0.003841400146484375, 0.0192108154296875, 0.02032470703125, -0.006351470947265625, 0.016754150390625, -0.01297760009765625, 0.0146636962890625, 0.0269775390625, 0.02020263671875, 0.0244598388671875, 0.03857421875, -0.01488494873046875, 0.03155517578125, 0.0097808837890625, 0.004215240478515625, 0.031829833984375, -0.049346923828125, 0.032623291015625, 0.06915283203125, 0.057281494140625, -0.0322265625, 0.030792236328125, 0.049560546875, -0.01491546630859375, 0.03448486328125, 0.00516510009765625, -0.026641845703125, -0.026458740234375, -0.0105438232421875, 0.00803375244140625, -0.01404571533203125, -0.0699462890625, -0.069091796875, -0.0167999267578125, 0.0191192626953125, -0.00168609619140625, -0.0197906494140625, -0.023773193359375, 0.0096282958984375, 0.03387451171875, -0.0021076202392578125, 0.040740966796875, -0.0190582275390625, -0.01605224609375, -0.0648193359375, -0.003749847412109375, -0.04638671875, 0.0086669921875, -0.0233612060546875, 0.03826904296875, 0.0204925537109375, -0.016448974609375, -0.0172882080078125, 0.050201416015625, 0.01555633544921875, 0.10198974609375, 0.0296173095703125, -0.0084991455078125, 0.0325927734375, -0.0180206298828125, -0.052337646484375, -0.101806640625, 0.008880615234375, -0.11126708984375, 0.004550933837890625, 0.005138397216796875, -0.0007619857788085938, 0.0136871337890625, -0.0309600830078125, -0.07489013671875, 0.0433349609375, -0.006099700927734375, -0.037567138671875, -0.0294342041015625, -0.005046844482421875, -0.0011548995971679688, 0.0182952880859375, -0.016357421875, -0.025054931640625, -0.03887939453125, 0.0074615478515625, -0.0007877349853515625, 0.0303955078125, 0.00824737548828125, -0.00389862060546875, -0.0016317367553710938, 0.0231170654296875, -0.0006303787231445312, -0.0188751220703125, -0.0014543533325195312, -0.0224456787109375, 0.0310516357421875, 0.014434814453125, -0.032501220703125, -0.0134429931640625, 0.026275634765625, 0.01125335693359375, 0.01288604736328125, -0.056427001953125, -0.03436279296875, -0.02716064453125, 0.0728759765625, 0.017669677734375, 0.01378631591796875, -0.0151824951171875, 0.0309295654296875, -0.001186370849609375, -0.037567138671875, 0.0255889892578125, 0.0135955810546875, -0.033966064453125, 0.0006647109985351562, 0.007659912109375, 0.003925323486328125, 0.0186004638671875, 0.006725311279296875, -0.0013580322265625, -0.007198333740234375, 0.013702392578125, -0.01236724853515625, -0.050628662109375, -0.0006647109985351562, 0.013336181640625, -0.01861572265625, -0.00766754150390625, -0.005054473876953125, 0.011016845703125, -0.01053619384765625, -0.003963470458984375, 0.0205230712890625, -0.002349853515625, -0.02069091796875, -0.01058197021484375, 0.0303497314453125, 0.01523590087890625, 0.009765625, -0.047210693359375, 0.005222320556640625, 0.030914306640625, -0.0157012939453125, 0.037322998046875, -0.00186920166015625, 0.0239105224609375, -0.004611968994140625, 0.038238525390625, -0.0144500732421875, -0.00789642333984375, -0.0007328987121582031, -0.0030364990234375, -0.01849365234375, -0.0018444061279296875, 0.0208892822265625, -0.0181732177734375, 0.01316070556640625, 0.02349853515625, 0.0440673828125, -0.0051116943359375, 0.0135650634765625, 0.003387451171875, 0.026702880859375, 0.0016345977783203125 ]
7f6c1e3ad9e72589d61414aa97721973e768e5a4
Wordpress Stackexchange Q: Shortcode not working inside html input I'm using Wordpress 4.2.3 The shortcode is added with the following: function upsellxid_shortcode() { return '9eaa86d1a36a126313aa752c2ff8e16c'; } function upsellxid_shortcode_2() { return '4849f6a5e3b188fa4b3b4c1f37975706'; } function upsellxid_shortcode_rsa() { return '7a9bc3b332605817594dbac27847dff0'; } function infusionsoftEmail_shortcode() { // Code $in = $_REQUEST; if (isset($_REQUEST['q'])) { $parse = parse_url($_REQUEST['q']); parse_str($parse['query'], $get); $in = $get; } $email = false; if (isset($in['inf_field_Email']) == true && empty($in['inf_field_Email']) == false) { $email = $in['inf_field_Email']; } else if(isset($in['Contact0Email']) == true && empty($in['Contact0Email']) == false) { $email = $in['Contact0Email']; } return $email; } add_shortcode('upsellxid', 'upsellxid_shortcode'); add_shortcode('xid_RSAMonthly', 'upsellxid_shortcode_2'); add_shortcode('rsa30daytrial', 'upsellxid_shortcode_rsa'); add_shortcode('infusionsoftEmail', 'infusionsoftEmail_shortcode'); Using it in a post seems fine (just [rsa30daytrial] will output the correct code). But using it inside an html input returns the raw text: [rsa30daytrial] [rsa30daytrial] <input type="text" value="[rsa30daytrial]" /> results in (page source): <p>7a9bc3b332605817594dbac27847dff0 7a9bc3b332605817594dbac27847dff0 <input type="text" value="[rsa30daytrial]" /></p> A: As above, https://wordpress.stackexchange.com/a/195673/22728 solved it: add_filter( 'wp_kses_allowed_html', function ( $allowedposttags, $context ) { if ( $context == 'post' ) { $allowedposttags['input']['value'] = 1; } return $allowedposttags; }, 10, 2 );
Q: Shortcode not working inside html input I'm using Wordpress 4.2.3 The shortcode is added with the following: function upsellxid_shortcode() { return '9eaa86d1a36a126313aa752c2ff8e16c'; } function upsellxid_shortcode_2() { return '4849f6a5e3b188fa4b3b4c1f37975706'; } function upsellxid_shortcode_rsa() { return '7a9bc3b332605817594dbac27847dff0'; } function infusionsoftEmail_shortcode() { // Code $in = $_REQUEST; if (isset($_REQUEST['q'])) { $parse = parse_url($_REQUEST['q']); parse_str($parse['query'], $get); $in = $get; } $email = false; if (isset($in['inf_field_Email']) == true && empty($in['inf_field_Email']) == false) { $email = $in['inf_field_Email']; } else if(isset($in['Contact0Email']) == true && empty($in['Contact0Email']) == false) { $email = $in['Contact0Email']; } return $email; } add_shortcode('upsellxid', 'upsellxid_shortcode'); add_shortcode('xid_RSAMonthly', 'upsellxid_shortcode_2'); add_shortcode('rsa30daytrial', 'upsellxid_shortcode_rsa'); add_shortcode('infusionsoftEmail', 'infusionsoftEmail_shortcode'); Using it in a post seems fine (just [rsa30daytrial] will output the correct code). But using it inside an html input returns the raw text: [rsa30daytrial] [rsa30daytrial] <input type="text" value="[rsa30daytrial]" /> results in (page source): <p>7a9bc3b332605817594dbac27847dff0 7a9bc3b332605817594dbac27847dff0 <input type="text" value="[rsa30daytrial]" /></p> A: As above, https://wordpress.stackexchange.com/a/195673/22728 solved it: add_filter( 'wp_kses_allowed_html', function ( $allowedposttags, $context ) { if ( $context == 'post' ) { $allowedposttags['input']['value'] = 1; } return $allowedposttags; }, 10, 2 );
wordpress
{ "language": "en", "length": 168, "provenance": "stackexchange_00019.jsonl.gz:457620", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/195707" }
[ 0.0462646484375, -0.04205322265625, 0.01221466064453125, -0.0108489990234375, -0.0267791748046875, -0.039703369140625, 0.033538818359375, -0.0027256011962890625, -0.004711151123046875, 0.0189208984375, 0.004711151123046875, 0.006320953369140625, -0.0345458984375, -0.0207672119140625, -0.0209808349609375, -0.017181396484375, 0.0142822265625, 0.0129547119140625, -0.0018310546875, -0.0169219970703125, -0.0160980224609375, 0.002605438232421875, -0.04681396484375, 0.024017333984375, -0.023040771484375, -0.0200958251953125, 0.0797119140625, -0.0158538818359375, -0.0159912109375, -0.031585693359375, -0.00232696533203125, 0.02191162109375, 0.06640625, 0.03240966796875, -0.0914306640625, 0.021148681640625, -0.048004150390625, 0.023406982421875, -0.03363037109375, 0.046966552734375, 0.0292816162109375, -0.0299835205078125, 0.036956787109375, -0.0323486328125, 0.023590087890625, -0.0173492431640625, 0.0257415771484375, -0.044403076171875, -0.0198516845703125, 0.00806427001953125, -0.002910614013671875, 0.053985595703125, 0.00588226318359375, -0.00579833984375, 0.003902435302734375, 0.01136016845703125, -0.037567138671875, -0.033660888671875, 0.0289306640625, 0.06707763671875, 0.008544921875, -0.03546142578125, -0.0037078857421875, -0.0655517578125, 0.00051116943359375, -0.005252838134765625, -0.0157623291015625, 0.01177215576171875, 0.0178375244140625, 0.018341064453125, 0.00988006591796875, 0.00518035888671875, -0.01751708984375, -0.034698486328125, -0.0245513916015625, 0.026702880859375, 0.0104827880859375, -0.0136566162109375, -0.0157623291015625, 0.0070953369140625, 0.00839996337890625, 0.00209808349609375, -0.09027099609375, 0.0113983154296875, -0.0010852813720703125, 0.018157958984375, -0.0029201507568359375, -0.0153961181640625, 0.003986358642578125, 0.026702880859375, -0.01251220703125, 0.014404296875, 0.0335693359375, -0.0201416015625, -0.0089569091796875, -0.04193115234375, 0.044097900390625, 0.0633544921875, 0.0178985595703125, -0.00391387939453125, -0.0081329345703125, -0.038726806640625, 0.01087188720703125, -0.051513671875, 0.016815185546875, 0.0693359375, 0.0013704299926757812, 0.0007510185241699219, 0.04034423828125, -0.005970001220703125, 0.01273345947265625, 0.034576416015625, -0.00225830078125, -0.0364990234375, -0.01194000244140625, 0.00992584228515625, -0.028106689453125, 0.0237274169921875, 0.0272064208984375, -0.0157928466796875, 0.01092529296875, 0.04705810546875, 0.034576416015625, -0.068359375, 0.00893402099609375, -0.00055694580078125, -0.00664520263671875, -0.07855224609375, -0.000518798828125, 0.00893402099609375, -0.050048828125, 0.034454345703125, 0.06915283203125, 0.0116729736328125, 0.01279449462890625, -0.007694244384765625, -0.040069580078125, -0.002460479736328125, 0.004230499267578125, -0.0125732421875, 0.035736083984375, -0.03216552734375, 0.0169830322265625, 0.037139892578125, -0.022491455078125, 0.046539306640625, 0.0389404296875, -0.012786865234375, -0.051605224609375, -0.09417724609375, -0.010040283203125, 0.00812530517578125, 0.032318115234375, 0.005950927734375, -0.0208282470703125, 0.008758544921875, 0.003719329833984375, 0.00038170814514160156, -0.035919189453125, -0.0177459716796875, 0.06494140625, -0.03564453125, -0.022430419921875, -0.037994384765625, -0.07611083984375, 0.0193023681640625, -0.0897216796875, -0.01806640625, 0.0213470458984375, 0.048492431640625, 0.0301055908203125, 0.01654052734375, 0.0008864402770996094, -0.00405120849609375, -0.021636962890625, -0.03887939453125, -0.014862060546875, 0.01849365234375, 0.04193115234375, -0.0323486328125, -0.037689208984375, -0.040771484375, 0.059783935546875, -0.039947509765625, -0.081787109375, 0.0540771484375, 0.00565338134765625, 0.051788330078125, 0.011260986328125, -0.01190185546875, 0.06884765625, 0.03228759765625, 0.0186004638671875, -0.005512237548828125, 0.03167724609375, -0.0447998046875, -0.0211029052734375, -0.0308074951171875, -0.004791259765625, -0.0037860870361328125, -0.02532958984375, -0.0210723876953125, 0.0557861328125, 0.00965118408203125, 0.038055419921875, 0.01275634765625, -0.0206146240234375, 0.01275634765625, -0.0157623291015625, -0.018585205078125, 0.00759124755859375, -0.0286407470703125, -0.0216827392578125, 0.043426513671875, 0.0170745849609375, 0.05853271484375, -0.0258636474609375, 0.042816162109375, 0.00250244140625, 0.037750244140625, 0.023284912109375, -0.046844482421875, 0.0297088623046875, 0.0200653076171875, -0.006183624267578125, -0.004528045654296875, -0.0069732666015625, -0.0080413818359375, -0.013275146484375, 0.0163726806640625, 0.0045318603515625, 0.009490966796875, 0.0189056396484375, 0.0167236328125, -0.05120849609375, -0.00626373291015625, -0.04229736328125, 0.01434326171875, -0.0225982666015625, 0.04376220703125, 0.0506591796875, 0.005214691162109375, 0.00457763671875, -0.02032470703125, 0.0927734375, 0.0248870849609375, 0.033599853515625, -0.052703857421875, -0.0212249755859375, 0.02685546875, 0.015899658203125, 0.02899169921875, -0.0089111328125, -0.0196685791015625, 0.013031005859375, 0.0211639404296875, 0.00696563720703125, -0.013458251953125, 0.0060882568359375, 0.006099700927734375, 0.0191192626953125, -0.0072021484375, -0.035491943359375, 0.0055389404296875, 0.04052734375, 0.01160430908203125, 0.033111572265625, 0.0167388916015625, -0.04150390625, 0.00327301025390625, 0.015106201171875, -0.003787994384765625, -0.00821685791015625, 0.035308837890625, 0.04058837890625, 0.0053558349609375, -0.06683349609375, 0.007076263427734375, 0.03765869140625, 0.0257110595703125, -0.0112457275390625, 0.00879669189453125, 0.01275634765625, -0.004833221435546875, -0.004024505615234375, -0.033294677734375, 0.01038360595703125, -0.0023288726806640625, 0.052032470703125, 0.0238494873046875, 0.0355224609375, 0.038726806640625, -0.00310516357421875, 0.06298828125, -0.011993408203125, -0.01226043701171875, -0.050994873046875, -0.01163482666015625, 0.0247344970703125, -0.0209197998046875, -0.005619049072265625, 0.05902099609375, -0.0123443603515625, 0.039947509765625, 0.010711669921875, -0.05633544921875, -0.047271728515625, 0.04034423828125, 0.0215301513671875, -0.00998687744140625, -0.0012340545654296875, 0.09356689453125, 0.02398681640625, 0.0540771484375, -0.021942138671875, -0.0535888671875, -0.0224151611328125, 0.029205322265625, -0.10302734375, -0.08514404296875, 0.0212554931640625, -0.049072265625, -0.0196380615234375, -0.01117706298828125, -0.026275634765625, -0.00823211669921875, 0.0158233642578125, -0.01016998291015625, 0.0287017822265625, -0.05157470703125, -0.05316162109375, -0.049774169921875, -0.07452392578125, 0.00403594970703125, 0.00004547834396362305, 0.007305145263671875, -0.011871337890625, 0.0220947265625, 0.004291534423828125, 0.00360107421875, 0.0177154541015625, 0.00913238525390625, 0.00432586669921875, -0.0011157989501953125, -0.03826904296875, -0.019378662109375, 0.00565338134765625, -0.018310546875, 0.006618499755859375, -0.004756927490234375, 0.0220489501953125, 0.01119232177734375, -0.0128631591796875, -0.0024318695068359375, 0.01322174072265625, 0.0057525634765625, 0.0175933837890625, 0.01262664794921875, 0.0450439453125, -0.016937255859375, -0.016326904296875, -0.01348876953125, -0.049835205078125, -0.03521728515625, 0.011993408203125, 0.0243988037109375, -0.00472259521484375, -0.01021575927734375, 0.01251983642578125, 0.0257720947265625, 0.031402587890625, -0.005931854248046875, 0.052764892578125, -0.035430908203125, -0.035797119140625, -0.0599365234375, 0.0184326171875, -0.0134735107421875, -0.005939483642578125, -0.0009732246398925781, 0.00958251953125, -0.01387786865234375, 0.0149383544921875, -0.01549530029296875, -0.0283660888671875, 0.03009033203125, -0.049591064453125, 0.0258331298828125, -0.054962158203125, -0.01666259765625, -0.03533935546875, 0.07275390625, -0.01216888427734375, 0.013458251953125, -0.00461578369140625, -0.01273345947265625, -0.0279541015625, -0.038482666015625, -0.08551025390625, 0.0160980224609375, -0.0234832763671875, -0.00717926025390625, -0.0282440185546875, 0.01067352294921875, -0.0211334228515625, -0.044891357421875, 0.001972198486328125, -0.038360595703125, 0.026611328125, 0.00909423828125, 0.039886474609375, -0.01214599609375, 0.0178985595703125, 0.00891876220703125, -0.01110076904296875, -0.029266357421875, -0.04571533203125, -0.00266265869140625, 0.005283355712890625, 0.00620269775390625, -0.01111602783203125, -0.001617431640625, -0.0361328125, 0.032745361328125, -0.0296783447265625, 0.0015153884887695312, -0.004673004150390625, 0.039337158203125, -0.06085205078125, 0.0270538330078125, -0.00560760498046875, -0.019287109375, 0.006927490234375, 0.030914306640625, -0.0207672119140625, 0.031951904296875, -0.0313720703125, -0.032379150390625, 0.02325439453125, -0.04351806640625, -0.01947021484375, -0.002346038818359375, -0.0031032562255859375, 0.03704833984375, -0.034149169921875, 0.00510406494140625, -0.01512908935546875, -0.0192718505859375, 0.018585205078125, -0.002887725830078125, -0.0023860931396484375, -0.0013132095336914062, 0.0338134765625, 0.0073394775390625, -0.0125274658203125, -0.0038967132568359375, 0.005222320556640625, 0.05206298828125, -0.018280029296875, 0.031982421875, 0.0274658203125, -0.05548095703125, 0.09771728515625, 0.009307861328125, 0.024139404296875, -0.03631591796875, 0.0570068359375, 0.00458526611328125, 0.01837158203125, -0.004764556884765625, 0.016143798828125, -0.01116943359375, 0.024871826171875, -0.019805908203125, 0.00923919677734375, 0.00627899169921875, 0.007678985595703125, -0.0151214599609375, -0.00213623046875, -0.022430419921875, -0.06573486328125, 0.013763427734375, -0.0001379251480102539, 0.040191650390625, -0.018463134765625, 0.0296173095703125, 0.0238494873046875, 0.0513916015625, 0.01751708984375, -0.0167083740234375, -0.0201873779296875, -0.0380859375, 0.0328369140625, -0.04180908203125, -0.007450103759765625, 0.01128387451171875, 0.0080108642578125, 0.01485443115234375, 0.0186309814453125, 0.0025310516357421875, -0.031402587890625, -0.00601959228515625, -0.039337158203125, -0.0648193359375, 0.0175323486328125, 0.0081939697265625, 0.02081298828125, 0.002655029296875, -0.0013217926025390625, 0.01027679443359375, 0.0423583984375, -0.01259613037109375, -0.00711822509765625, -0.011199951171875, -0.0149078369140625, -0.0207672119140625, 0.00962066650390625, -0.03216552734375, 0.0036163330078125, 0.017669677734375, 0.04461669921875, 0.044586181640625, 0.00449371337890625, 0.030487060546875, -0.0120391845703125, 0.01319122314453125, -0.034881591796875, -0.0216064453125, -0.0245361328125, -0.059051513671875, 0.007015228271484375, 0.043701171875, -0.0380859375, 0.0209197998046875, 0.00664520263671875, 0.0183258056640625, -0.0116424560546875, 0.0033206939697265625, 0.0285797119140625, 0.01403045654296875, -0.04425048828125, -0.042755126953125, 0.01308441162109375, 0.0282135009765625, -0.00899505615234375, 0.020233154296875, -0.04327392578125, -0.00469207763671875, 0.001560211181640625, -0.01381683349609375, -0.027313232421875, -0.0246429443359375, 0.037689208984375, 0.00101470947265625, -0.06451416015625, 0.0016345977783203125, -0.0288543701171875, 0.005504608154296875, 0.0104827880859375, 0.03741455078125, -0.004177093505859375, 0.01325225830078125, -0.035552978515625, 0.01235198974609375, -0.035736083984375, 0.00450897216796875, 0.03240966796875, -0.002758026123046875, -0.039520263671875, -0.005680084228515625, -0.01012420654296875, -0.01183319091796875, 0.0248870849609375, -0.0267791748046875, -0.0233306884765625, -0.0179595947265625, -0.003875732421875, 0.033966064453125, -0.03912353515625, -0.049774169921875, -0.027069091796875, 0.01409149169921875, 0.03125, 0.081298828125, -0.0047454833984375, 0.050018310546875, -0.021697998046875, 0.037506103515625, 0.01403045654296875, 0.033599853515625, -0.01036834716796875, -0.01035308837890625, 0.012939453125, -0.043853759765625, -0.038909912109375, -0.01125335693359375, 0.0135498046875, 0.0312347412109375, 0.0233306884765625, 0.0019550323486328125, -0.0014495849609375, -0.025848388671875, -0.005664825439453125, -0.020660400390625, 0.090576171875, 0.0016889572143554688, 0.0032329559326171875, 0.031463623046875, -0.034027099609375, -0.0380859375, -0.0261993408203125, 0.0137939453125, 0.044403076171875, -0.035003662109375, 0.0124664306640625, 0.0161285400390625, -0.01300048828125, 0.04779052734375, 0.07293701171875, -0.01776123046875, 0.024658203125, 0.0169219970703125, -0.01047515869140625, 0.003662109375, 0.042694091796875, -0.01432037353515625, -0.0165252685546875, 0.041229248046875, 0.005641937255859375, -0.03228759765625, 0.003940582275390625, -0.0322265625, 0.0270843505859375, 0.07568359375, 0.10736083984375, -0.10357666015625, 0.0143890380859375, 0.05255126953125, -0.0220489501953125, -0.043701171875, 0.005756378173828125, 0.0082244873046875, -0.0014324188232421875, 0.048553466796875, 0.037872314453125, 0.0161895751953125, 0.040618896484375, 0.0178375244140625, -0.00876617431640625, -0.01016998291015625, 0.06781005859375, 0.015655517578125, -0.019195556640625, -0.021087646484375, 0.0179901123046875, -0.00018215179443359375, -0.023651123046875, 0.01378631591796875, 0.0178985595703125, -0.045318603515625, -0.04254150390625, 0.019561767578125, 0.03631591796875, -0.02716064453125, -0.0291595458984375, -0.041046142578125, 0.05645751953125, 0.0287017822265625, -0.029815673828125, -0.0005812644958496094, 0.006671905517578125, 0.060394287109375, 0.010009765625, -0.030059814453125, -0.01262664794921875, 0.046966552734375, -0.048583984375, 0.0214385986328125, 0.0005183219909667969, 0.00678253173828125, 0.0037784576416015625, 0.0258636474609375, 0.049163818359375, -0.03179931640625, -0.0391845703125, 0.0155792236328125, -0.0247344970703125, 0.0011262893676757812, -0.0104827880859375, -0.0040283203125, -0.062286376953125, -0.025970458984375, -0.01409912109375, -0.0625, 0.00043582916259765625, -0.0330810546875, -0.1051025390625, 0.114990234375, 0.0087890625, 0.06640625, -0.0115814208984375, 0.03289794921875, -0.0276947021484375, -0.01174163818359375, -0.0113983154296875, -0.00510406494140625, -0.0283203125, 0.04046630859375, -0.0323486328125, -0.01271820068359375, 0.0195770263671875, 0.060546875, 0.018646240234375, -0.01044464111328125, 0.001628875732421875, 0.00905609130859375, 0.06317138671875, 0.00989532470703125, -0.031402587890625, 0.01081085205078125, 0.00426483154296875, -0.0194854736328125, 0.058135986328125, 0.004802703857421875, 0.0254058837890625, 0.041717529296875, 0.01227569580078125, 0.0355224609375, -0.022491455078125, -0.025146484375, -0.00998687744140625, 0.02337646484375, -0.0217437744140625, -0.01494598388671875, 0.0023136138916015625, -0.0299224853515625, -0.01508331298828125, 0.026641845703125, -0.025848388671875, -0.063720703125, -0.024932861328125, -0.0308685302734375, 0.020843505859375, -0.03338623046875, 0.0511474609375, 0.0289459228515625, 0.0232391357421875, 0.085205078125, -0.00681304931640625, 0.0255279541015625, 0.0188446044921875, -0.029510498046875, 0.0139617919921875, -0.00782012939453125, 0.016510009765625, -0.045623779296875, 0.0200958251953125, 0.03411865234375, 0.032470703125, -0.035247802734375, -0.03369140625, 0.01377105712890625, -0.001522064208984375, -0.0153961181640625, -0.01513671875, -0.017578125, -0.028106689453125, 0.01201629638671875, -0.00948333740234375, -0.007755279541015625, 0.011993408203125, 0.0284576416015625, 0.004970550537109375, 0.05364990234375, -0.04736328125, -0.024200439453125, -0.044891357421875, 0.0192413330078125, -0.00824737548828125, 0.05670166015625, 0.01983642578125, 0.051055908203125, -0.03759765625, -0.0244598388671875, -0.0107421875, 0.026153564453125, 0.02337646484375, 0.002796173095703125, -0.0158843994140625, 0.0188446044921875, -0.0030956268310546875, 0.01354217529296875, -0.00928497314453125, 0.01474761962890625, 0.00725555419921875, -0.005382537841796875, 0.00341796875, -0.01459503173828125, 0.000017881393432617188, -0.0224761962890625, -0.0038299560546875, -0.01180267333984375, -0.0124664306640625, 0.019287109375, -0.0020046234130859375, 0.0020236968994140625, 0.04229736328125, 0.033050537109375, -0.0029430389404296875, 0.023590087890625, 0.0008578300476074219, 0.0026378631591796875, 0.005138397216796875, 0.014678955078125, 0.0224761962890625, 0.031890869140625, 0.00498199462890625, 0.00693511962890625, -0.004810333251953125, -0.056060791015625, 0.00899505615234375, 0.047882080078125, 0.0029621124267578125, -0.01256561279296875, 0.042755126953125, -0.0474853515625, -0.00039577484130859375, 0.0645751953125, -0.00811767578125, -0.031341552734375, 0.031280517578125, -0.019927978515625, -0.015960693359375, 0.0197296142578125, -0.007289886474609375, 0.0038318634033203125, 0.0196990966796875, 0.0219573974609375, 0.004634857177734375, 0.029083251953125, -0.004695892333984375, -0.01678466796875, -0.01401519775390625, -0.01551055908203125, 0.0286102294921875, -0.037261962890625, -0.022003173828125, 0.0030384063720703125, 0.0011577606201171875, 0.01294708251953125, -0.0010700225830078125, -0.0107879638671875, 0.005954742431640625, -0.06268310546875, 0.0272674560546875, 0.040771484375, 0.044281005859375, 0.01036834716796875, 0.0087738037109375, 0.0033168792724609375, -0.0025653839111328125, 0.044403076171875, 0.062744140625, -0.005588531494140625, 0.062225341796875, 0.034637451171875, -0.005878448486328125, 0.0265655517578125, -0.053436279296875, 0.0294189453125, 0.02880859375, 0.03009033203125, 0.037994384765625, -0.01558685302734375, -0.02691650390625, 0.0099945068359375, 0.01049041748046875, -0.0435791015625, 0.004642486572265625, -0.0169219970703125, -0.005523681640625, 0.040557861328125, 0.0131378173828125, -0.030853271484375, 0.0144195556640625, 0.052825927734375, -0.040496826171875, 0.016326904296875, -0.044219970703125, -0.005672454833984375, -0.04791259765625, 0.01428985595703125, 0.0213470458984375, -0.00696563720703125, 0.01517486572265625, 0.031646728515625, 0.00946807861328125, 0.018218994140625, -0.0125579833984375, -0.00884246826171875, -0.0382080078125, -0.0007009506225585938, 0.08050537109375, -0.0218963623046875, 0.06744384765625, -0.0277862548828125, -0.004596710205078125, -0.038116455078125, -0.0343017578125, -0.037933349609375, 0.04107666015625, -0.037872314453125, 0.00580596923828125, 0.035125732421875, 0.005222320556640625, -0.0850830078125, -0.005863189697265625, -0.0217132568359375, 0.03375244140625, -0.0322265625, -0.0244140625, 0.0220489501953125, -0.0207672119140625, -0.0123138427734375, -0.04620361328125, 0.001064300537109375, -0.0888671875, 0.005191802978515625, -0.0167236328125, -0.0107574462890625, -0.0126800537109375, -0.047454833984375, -0.08343505859375, 0.044525146484375, -0.005588531494140625, -0.025909423828125, -0.039154052734375, -0.03472900390625, -0.0079803466796875, 0.030609130859375, -0.0261688232421875, 0.001781463623046875, -0.0543212890625, 0.0302581787109375, -0.0079803466796875, 0.0606689453125, -0.0113067626953125, 0.003833770751953125, -0.0220794677734375, 0.0108184814453125, -0.0213623046875, -0.032958984375, 0.021087646484375, 0.005046844482421875, 0.02520751953125, 0.032928466796875, -0.031707763671875, -0.006122589111328125, -0.01233673095703125, -0.0174407958984375, 0.0112762451171875, -0.0265045166015625, -0.031768798828125, -0.023162841796875, 0.05645751953125, 0.01189422607421875, 0.011474609375, -0.0164031982421875, -0.021942138671875, -0.00014507770538330078, 0.018829345703125, 0.0042724609375, -0.02581787109375, 0.01549530029296875, 0.0194854736328125, -0.067626953125, 0.0189361572265625, -0.01447296142578125, -0.0203857421875, -0.00693511962890625, -0.023773193359375, -0.0115203857421875, -0.00994873046875, -0.020294189453125, 0.0100555419921875, 0.048095703125, -0.033233642578125, -0.0247802734375, -0.00919342041015625, 0.0099945068359375, 0.01302337646484375, -0.01580810546875, -0.003849029541015625, 0.006237030029296875, -0.00864410400390625, 0.00881195068359375, 0.0178375244140625, 0.045135498046875, -0.006244659423828125, -0.00371551513671875, -0.0035991668701171875, 0.0166168212890625, -0.0083770751953125, 0.0030727386474609375, -0.033172607421875, 0.0135650634765625, -0.01019287109375, 0.07525634765625, -0.025634765625, 0.0194244384765625, -0.027557373046875, 0.03179931640625, 0.0219573974609375, 0.0118865966796875, 0.0821533203125, -0.0338134765625, 0.0160369873046875, 0.056640625, 0.04217529296875, -0.015533447265625, 0.01016998291015625, -0.0198822021484375, 0.06597900390625, -0.001522064208984375 ]
18d5efac913259fd60cfae150e6bc800700f1bde
Wordpress Stackexchange Q: Add column for attachment file size EDIT. I got this working, see my own answer below: Now, if someone has any clue as to how I can get this sortable, please chime in! :) ---------------- Original question ---------------- How can I add a custom column to the attachment post type? I'm finding ways to add them to posts, pages or custom post types. But for native post types like attachments, how? I would like to display the attachment file size in it's own column. A: Working code: // Add custom column with file size info to attachment page add_filter( 'manage_media_columns', 'bb2_manage_media_columns', 10, 2 ); function bb2_manage_media_columns( $columns ) { $columns['filesize'] = __( 'Storlek', 'bb2' ); return $columns; } add_action( 'manage_media_custom_column', 'bb2_manage_media_custom_column', 10, 2 ); function bb2_manage_media_custom_column( $column_name, $id ) { switch ( $column_name ) { case 'filesize' : $bytes = filesize(get_attached_file($id)); echo size_format($bytes); break; default : break; } }
Q: Add column for attachment file size EDIT. I got this working, see my own answer below: Now, if someone has any clue as to how I can get this sortable, please chime in! :) ---------------- Original question ---------------- How can I add a custom column to the attachment post type? I'm finding ways to add them to posts, pages or custom post types. But for native post types like attachments, how? I would like to display the attachment file size in it's own column. A: Working code: // Add custom column with file size info to attachment page add_filter( 'manage_media_columns', 'bb2_manage_media_columns', 10, 2 ); function bb2_manage_media_columns( $columns ) { $columns['filesize'] = __( 'Storlek', 'bb2' ); return $columns; } add_action( 'manage_media_custom_column', 'bb2_manage_media_custom_column', 10, 2 ); function bb2_manage_media_custom_column( $column_name, $id ) { switch ( $column_name ) { case 'filesize' : $bytes = filesize(get_attached_file($id)); echo size_format($bytes); break; default : break; } }
wordpress
{ "language": "en", "length": 150, "provenance": "stackexchange_00019.jsonl.gz:457653", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/195838" }
[ -0.02008056640625, -0.0391845703125, -0.00664520263671875, -0.024017333984375, -0.03179931640625, 0.0223388671875, -0.023681640625, 0.0160980224609375, -0.00824737548828125, 0.0159149169921875, -0.004177093505859375, 0.002834320068359375, -0.03118896484375, -0.0216827392578125, -0.01555633544921875, -0.0270233154296875, 0.059295654296875, -0.0245208740234375, 0.05853271484375, 0.020172119140625, -0.00881195068359375, 0.07147216796875, 0.056884765625, 0.0310211181640625, -0.004962921142578125, 0.0276336669921875, 0.037811279296875, -0.0157470703125, 0.0081634521484375, -0.004772186279296875, 0.00655364990234375, 0.0012788772583007812, 0.01922607421875, 0.01043701171875, -0.001953125, 0.005832672119140625, 0.04443359375, -0.011627197265625, -0.0251922607421875, 0.062408447265625, 0.03717041015625, -0.018310546875, 0.04119873046875, -0.024322509765625, 0.01549530029296875, 0.00933837890625, 0.0118560791015625, -0.047943115234375, 0.02227783203125, 0.0170745849609375, -0.00750732421875, 0.0352783203125, -0.0032558441162109375, -0.0149993896484375, -0.00861358642578125, -0.0139007568359375, -0.041900634765625, 0.0225372314453125, 0.011627197265625, -0.01329803466796875, -0.00494384765625, 0.00803375244140625, 0.0166015625, 0.0075225830078125, -0.00376129150390625, -0.004329681396484375, 0.031646728515625, 0.015838623046875, -0.0217437744140625, -0.03167724609375, 0.033416748046875, -0.0070343017578125, -0.0015001296997070312, -0.02874755859375, -0.0242156982421875, 0.0088348388671875, 0.00983428955078125, -0.0178680419921875, 0.0036563873291015625, -0.025421142578125, -0.0067291259765625, -0.032012939453125, -0.00652313232421875, -0.0177764892578125, 0.027679443359375, 0.022216796875, -0.00545501708984375, -0.027191162109375, 0.0214996337890625, -0.0011386871337890625, 0.007663726806640625, -0.040313720703125, 0.019805908203125, 0.0267791748046875, -0.00664520263671875, -0.0274200439453125, 0.0224151611328125, 0.01611328125, 0.017974853515625, 0.01323699951171875, 0.0230255126953125, -0.050933837890625, 0.035858154296875, -0.0241851806640625, 0.0253753662109375, 0.0225982666015625, -0.04229736328125, -0.08270263671875, 0.032440185546875, 0.0256195068359375, -0.01168060302734375, 0.03948974609375, 0.0268096923828125, 0.0138397216796875, -0.014862060546875, -0.0160064697265625, -0.0222930908203125, 0.0307464599609375, -0.0175933837890625, 0.0034942626953125, 0.009490966796875, 0.005458831787109375, 0.0158843994140625, -0.0206756591796875, -0.00751495361328125, -0.031494140625, -0.038055419921875, 0.0084686279296875, 0.0095062255859375, 0.0258026123046875, -0.0222625732421875, 0.01348876953125, 0.03656005859375, 0.01873779296875, -0.0007448196411132812, -0.01104736328125, 0.01392364501953125, -0.0482177734375, -0.00801849365234375, 0.0208282470703125, 0.0132598876953125, -0.0185394287109375, 0.012451171875, 0.00789642333984375, -0.018157958984375, 0.021453857421875, 0.019256591796875, 0.0109100341796875, -0.01561737060546875, -0.087158203125, 0.0182647705078125, -0.01297760009765625, 0.07098388671875, 0.01039886474609375, -0.1129150390625, 0.028076171875, -0.0197601318359375, 0.001979827880859375, -0.073486328125, -0.04937744140625, -0.0004992485046386719, -0.00934600830078125, -0.014739990234375, -0.05999755859375, -0.058380126953125, 0.0248260498046875, -0.03741455078125, 0.001552581787109375, 0.0236358642578125, -0.00757598876953125, 0.0234832763671875, -0.017059326171875, -0.0006546974182128906, -0.008514404296875, -0.00017070770263671875, -0.008880615234375, -0.026153564453125, -0.007328033447265625, 0.041595458984375, 0.0377197265625, -0.0017070770263671875, -0.0242767333984375, 0.033355712890625, -0.0177764892578125, -0.01434326171875, 0.034271240234375, 0.00013458728790283203, 0.0130767822265625, 0.007293701171875, -0.0045013427734375, -0.00495147705078125, 0.039398193359375, -0.033660888671875, 0.005031585693359375, -0.045654296875, 0.006381988525390625, 0.006221771240234375, 0.0259246826171875, -0.0241241455078125, 0.0263671875, -0.0193939208984375, 0.001857757568359375, 0.0160064697265625, 0.008148193359375, 0.004913330078125, 0.0191802978515625, -0.00679779052734375, 0.0243377685546875, -0.037628173828125, 0.00933837890625, 0.0251312255859375, -0.0079498291015625, -0.01849365234375, -0.0083465576171875, 0.01517486572265625, 0.01910400390625, 0.01410675048828125, -0.01702880859375, -0.016754150390625, -0.0002684593200683594, -0.057159423828125, 0.01238250732421875, -0.062408447265625, 0.0289154052734375, 0.0225677490234375, 0.00754547119140625, -0.024658203125, -0.00695037841796875, 0.044769287109375, 0.0006117820739746094, 0.0230865478515625, 0.0295867919921875, -0.006359100341796875, -0.006824493408203125, -0.026885986328125, -0.0160675048828125, -0.037200927734375, -0.10089111328125, 0.004276275634765625, 0.07440185546875, 0.0222625732421875, 0.02178955078125, -0.0024051666259765625, 0.0209503173828125, 0.07781982421875, 0.048248291015625, 0.02703857421875, 0.001766204833984375, 0.003261566162109375, 0.0296630859375, -0.021575927734375, 0.004642486572265625, 0.014617919921875, -0.07989501953125, 0.0241851806640625, 0.031646728515625, -0.0211181640625, -0.01025390625, 0.0162506103515625, 0.0104827880859375, -0.007648468017578125, 0.03021240234375, 0.0182952880859375, -0.0017709732055664062, 0.02740478515625, 0.024383544921875, 0.045440673828125, 0.03955078125, -0.0273590087890625, 0.0180816650390625, 0.0016050338745117188, 0.0169830322265625, -0.0087738037109375, 0.009368896484375, -0.009765625, 0.00833892822265625, -0.050567626953125, 0.0222625732421875, 0.0174560546875, -0.009185791015625, -0.01067352294921875, 0.02825927734375, -0.08343505859375, -0.0193328857421875, -0.00304412841796875, -0.0643310546875, -0.0438232421875, -0.0029582977294921875, -0.043975830078125, -0.0203704833984375, -0.0015554428100585938, 0.06146240234375, 0.010986328125, -0.01018524169921875, 0.0258941650390625, 0.01401519775390625, 0.0416259765625, -0.051849365234375, 0.055999755859375, -0.045654296875, 0.048004150390625, 0.06817626953125, -0.060333251953125, 0.05169677734375, -0.0059967041015625, 0.0094451904296875, -0.0224456787109375, 0.0198211669921875, -0.0090484619140625, -0.061187744140625, 0.0250396728515625, 0.0390625, 0.0122833251953125, -0.0008940696716308594, -0.0225830078125, -0.0367431640625, -0.0333251953125, -0.01422119140625, -0.057830810546875, -0.016754150390625, 0.050811767578125, -0.074462890625, -0.0172882080078125, -0.0215301513671875, -0.056854248046875, -0.006816864013671875, 0.005123138427734375, -0.0005698204040527344, -0.0137176513671875, -0.0160980224609375, 0.0011930465698242188, -0.0272216796875, -0.020355224609375, -0.045440673828125, -0.0016460418701171875, -0.00688934326171875, -0.01299285888671875, 0.06646728515625, -0.002124786376953125, -0.036407470703125, -0.0125274658203125, -0.03753662109375, 0.01050567626953125, 0.007671356201171875, 0.02362060546875, 0.00818634033203125, -0.011077880859375, 0.00982666015625, 0.057159423828125, 0.04583740234375, -0.06048583984375, -0.0066070556640625, -0.034149169921875, -0.0197906494140625, -0.0200042724609375, 0.031341552734375, 0.0210723876953125, -0.0219573974609375, -0.00023162364959716797, -0.061187744140625, 0.006591796875, -0.00693511962890625, -0.00725555419921875, 0.0016231536865234375, 0.00860595703125, -0.017547607421875, -0.0197601318359375, 0.0084991455078125, -0.0035305023193359375, -0.00983428955078125, 0.0134429931640625, -0.03240966796875, 0.0297698974609375, 0.013397216796875, 0.02996826171875, -0.01528167724609375, 0.0239410400390625, 0.0040283203125, 0.00461578369140625, 0.013092041015625, 0.048370361328125, 0.0250244140625, 0.0099334716796875, -0.0142059326171875, -0.083740234375, 0.06610107421875, -0.006412506103515625, 0.014984130859375, -0.0582275390625, -0.040191650390625, -0.0212860107421875, 0.10089111328125, -0.045196533203125, -0.03125, -0.0181884765625, 0.043304443359375, -0.06011962890625, -0.077880859375, 0.01531982421875, -0.004268646240234375, -0.0228729248046875, -0.00865936279296875, -0.01163482666015625, -0.0195770263671875, -0.032501220703125, 0.033203125, -0.0302734375, -0.01080322265625, 0.0282440185546875, 0.0038890838623046875, -0.00356292724609375, 0.033172607421875, -0.040130615234375, 0.040985107421875, -0.042205810546875, -0.01525115966796875, -0.12408447265625, -0.01361846923828125, 0.0055084228515625, 0.0662841796875, -0.043243408203125, 0.051605224609375, -0.037933349609375, 0.054351806640625, 0.037872314453125, -0.005237579345703125, 0.0232391357421875, -0.017669677734375, 0.0011835098266601562, 0.01158905029296875, 0.005794525146484375, -0.0237274169921875, -0.00048613548278808594, -0.07684326171875, -0.0518798828125, -0.036529541015625, -0.03460693359375, 0.043212890625, -0.031463623046875, -0.0085601806640625, -0.01425933837890625, -0.0386962890625, 0.0079498291015625, 0.047698974609375, -0.0241241455078125, 0.0298919677734375, -0.05438232421875, -0.01366424560546875, 0.0305633544921875, 0.01282501220703125, 0.00475311279296875, 0.00814056396484375, 0.07470703125, 0.0026569366455078125, -0.0189361572265625, -0.09002685546875, 0.0099029541015625, 0.0207366943359375, -0.004932403564453125, 0.051422119140625, 0.0211029052734375, -0.0003809928894042969, 0.040740966796875, 0.0009760856628417969, 0.020965576171875, -0.034088134765625, 0.0433349609375, -0.014129638671875, 0.00736236572265625, 0.00978851318359375, -0.025634765625, 0.027374267578125, -0.034332275390625, -0.0185699462890625, -0.00909423828125, 0.01629638671875, 0.054443359375, -0.01165771484375, 0.034149169921875, -0.0273284912109375, -0.0284576416015625, 0.0091705322265625, -0.040985107421875, 0.0657958984375, 0.0084075927734375, 0.01238250732421875, 0.01401519775390625, 0.019500732421875, 0.01329803466796875, 0.019287109375, -0.0014705657958984375, -0.01332855224609375, 0.038818359375, -0.00769805908203125, -0.01097869873046875, 0.0162200927734375, 0.00897216796875, -0.00853729248046875, 0.013153076171875, -0.01422882080078125, -0.057342529296875, 0.01312255859375, 0.01111602783203125, -0.0245513916015625, -0.004547119140625, 0.0199432373046875, 0.02093505859375, -0.01031494140625, -0.0032711029052734375, -0.0288238525390625, 0.0162200927734375, -0.04443359375, 0.0032501220703125, 0.02587890625, -0.03399658203125, 0.0212249755859375, 0.0005588531494140625, 0.017730712890625, -0.015289306640625, -0.00481414794921875, 0.0262908935546875, 0.060302734375, -0.005084991455078125, 0.013824462890625, 0.019073486328125, -0.038299560546875, 0.00452423095703125, -0.004180908203125, -0.0265655517578125, 0.064697265625, -0.01849365234375, 0.034027099609375, -0.037353515625, -0.066650390625, 0.0751953125, -0.08740234375, -0.007480621337890625, 0.032867431640625, 0.0263824462890625, -0.05279541015625, -0.002025604248046875, -0.0003135204315185547, -0.00374603271484375, -0.0343017578125, -0.0040740966796875, 0.020172119140625, -0.00836944580078125, 0.03265380859375, 0.01280975341796875, 0.001163482666015625, -0.0128021240234375, -0.01242828369140625, -0.0178070068359375, -0.01090240478515625, -0.00234222412109375, -0.0186614990234375, -0.03533935546875, -0.00405120849609375, 0.0022869110107421875, 0.018829345703125, -0.0100555419921875, 0.027740478515625, -0.019561767578125, -0.01763916015625, -0.0179443359375, -0.0012359619140625, 0.04248046875, 0.0143890380859375, 0.03436279296875, -0.034881591796875, -0.015655517578125, -0.038238525390625, 0.06121826171875, 0.007770538330078125, 0.01031494140625, -0.0240631103515625, 0.008697509765625, 0.028900146484375, 0.0032901763916015625, -0.034149169921875, -0.022735595703125, -0.01131439208984375, 0.0179901123046875, 0.006038665771484375, -0.0225372314453125, 0.031646728515625, 0.0196075439453125, 0.016357421875, 0.007717132568359375, 0.0195465087890625, -0.007579803466796875, -0.01513671875, 0.0150909423828125, -0.0304107666015625, -0.003631591796875, -0.0100555419921875, 0.01441192626953125, -0.049407958984375, -0.0262298583984375, -0.004032135009765625, -0.0019588470458984375, -0.025390625, -0.00907135009765625, -0.033782958984375, 0.060089111328125, -0.01395416259765625, 0.0274810791015625, -0.032440185546875, -0.038848876953125, 0.0055084228515625, -0.0077362060546875, -0.007099151611328125, 0.047454833984375, -0.04998779296875, 0.0290679931640625, 0.038970947265625, -0.038604736328125, 0.04913330078125, 0.06744384765625, 0.016387939453125, 0.0232391357421875, 0.0213165283203125, -0.00339508056640625, -0.0341796875, -0.00797271728515625, 0.0189666748046875, 0.00843048095703125, 0.0411376953125, 0.005008697509765625, 0.01340484619140625, 0.026519775390625, -0.00585174560546875, 0.050506591796875, -0.0144500732421875, 0.0304718017578125, -0.0217132568359375, 0.038177490234375, -0.03216552734375, -0.0240936279296875, 0.09759521484375, -0.025726318359375, 0.018280029296875, -0.028778076171875, 0.039337158203125, 0.02899169921875, -0.02667236328125, -0.01031494140625, -0.0046539306640625, -0.0007104873657226562, -0.0160369873046875, 0.0014963150024414062, -0.00815582275390625, -0.01244354248046875, -0.035919189453125, 0.003307342529296875, -0.010467529296875, 0.0195465087890625, 0.043975830078125, -0.053985595703125, 0.00035500526428222656, -0.0240325927734375, -0.0216217041015625, -0.0295867919921875, -0.006908416748046875, -0.01140594482421875, -0.01255035400390625, 0.047637939453125, 0.04425048828125, 0.0066070556640625, -0.01454925537109375, 0.03375244140625, -0.0450439453125, 0.00879669189453125, -0.024627685546875, 0.02215576171875, 0.0296783447265625, -0.035675048828125, 0.01398468017578125, -0.01226806640625, -0.011077880859375, -0.01019287109375, 0.027496337890625, 0.1031494140625, -0.060699462890625, -0.0217132568359375, 0.0418701171875, 0.0179443359375, -0.0223236083984375, 0.0204010009765625, 0.0469970703125, -0.06005859375, -0.03961181640625, 0.0308837890625, -0.0535888671875, -0.0286712646484375, 0.019561767578125, -0.056884765625, 0.06689453125, -0.00994110107421875, 0.033294677734375, -0.00962066650390625, 0.01363372802734375, 0.0162811279296875, 0.0186767578125, -0.048614501953125, 0.027130126953125, 0.013458251953125, 0.01488494873046875, -0.0653076171875, -0.006511688232421875, -0.0219268798828125, 0.0310821533203125, 0.063720703125, 0.00489044189453125, -0.0038051605224609375, -0.0149993896484375, 0.061859130859375, 0.028656005859375, -0.0076446533203125, 0.01470184326171875, -0.0162200927734375, -0.01288604736328125, 0.040313720703125, 0.001544952392578125, 0.03729248046875, -0.01276397705078125, -0.0164794921875, -0.0055694580078125, 0.016998291015625, 0.04010009765625, -0.01430511474609375, 0.0300750732421875, -0.009124755859375, -0.0249481201171875, 0.030181884765625, -0.059173583984375, 0.010528564453125, 0.035858154296875, 0.05694580078125, -0.04400634765625, -0.0192718505859375, -0.022003173828125, 0.060394287109375, 0.0116119384765625, 0.0288238525390625, 0.0279541015625, 0.0016574859619140625, 0.037933349609375, 0.0016431808471679688, 0.01152801513671875, 0.0201873779296875, 0.00614166259765625, 0.0171356201171875, -0.0093994140625, 0.00791168212890625, -0.0140533447265625, 0.044464111328125, 0.008148193359375, 0.012969970703125, -0.046356201171875, -0.0208740234375, 0.01541900634765625, -0.01206207275390625, -0.0085906982421875, -0.005100250244140625, -0.007640838623046875, -0.0078277587890625, 0.00007605552673339844, -0.0631103515625, 0.0221710205078125, 0.0231475830078125, 0.048858642578125, -0.0162811279296875, -0.0182647705078125, -0.061004638671875, -0.0190277099609375, -0.042449951171875, 0.0159759521484375, 0.01175689697265625, 0.0164947509765625, 0.0036678314208984375, 0.060272216796875, 0.048126220703125, -0.00481414794921875, -0.039398193359375, 0.038909912109375, -0.0202484130859375, 0.051788330078125, -0.0215911865234375, -0.0238494873046875, 0.0003924369812011719, 0.046630859375, 0.022003173828125, -0.023773193359375, 0.0191497802734375, -0.0190277099609375, -0.053070068359375, -0.003192901611328125, 0.0035858154296875, -0.0255279541015625, 0.01081085205078125, -0.04486083984375, 0.02935791015625, 0.025299072265625, 0.0065765380859375, 0.001033782958984375, -0.036529541015625, 0.0736083984375, -0.031768798828125, 0.029754638671875, -0.010894775390625, -0.00916290283203125, 0.040435791015625, 0.00719451904296875, 0.0474853515625, -0.0029850006103515625, -0.083984375, -0.0011157989501953125, -0.04864501953125, -0.059722900390625, 0.043182373046875, 0.043487548828125, -0.01806640625, 0.00865936279296875, -0.01427459716796875, -0.01013946533203125, 0.034271240234375, -0.0005478858947753906, -0.0379638671875, 0.006561279296875, 0.039947509765625, -0.0190277099609375, -0.0899658203125, -0.05987548828125, -0.03814697265625, 0.0489501953125, 0.007305145263671875, 0.04522705078125, 0.00717926025390625, 0.0288543701171875, -0.004119873046875, 0.0106048583984375, -0.0020809173583984375, 0.002532958984375, 0.0127410888671875, 0.0316162109375, 0.0231781005859375, -0.0269012451171875, 0.038238525390625, 0.02911376953125, 0.0186614990234375, -0.059906005859375, -0.00745391845703125, -0.01203155517578125, 0.00879669189453125, -0.012420654296875, -0.01451873779296875, -0.03155517578125, -0.0264739990234375, -0.00373077392578125, -0.006439208984375, 0.0003733634948730469, -0.00814056396484375, 0.00426483154296875, 0.005870819091796875, 0.018218994140625, 0.007541656494140625, 0.03173828125, 0.01091766357421875, 0.07427978515625, 0.038421630859375, -0.076416015625, -0.056427001953125, 0.0220489501953125, -0.002246856689453125, 0.003841400146484375, 0.004241943359375, 0.0709228515625, 0.0285491943359375, -0.03192138671875, 0.0325927734375, 0.0157012939453125, 0.0418701171875, -0.032958984375, 0.0031299591064453125, 0.0233917236328125, 0.00026679039001464844, 0.037322998046875, -0.03143310546875, -0.0263824462890625, -0.036285400390625, 0.0010204315185546875, 0.0293121337890625, 0.0091705322265625, 0.0075225830078125, -0.021392822265625, -0.043731689453125, 0.02630615234375, 0.01049041748046875, -0.02484130859375, -0.00495147705078125, -0.00034332275390625, -0.0095367431640625, -0.005279541015625, -0.0191802978515625, 0.0016040802001953125, 0.04736328125, 0.011383056640625, -0.0562744140625, -0.040374755859375, 0.05908203125, -0.038238525390625, 0.0343017578125, 0.0309906005859375, -0.04119873046875, 0.0141754150390625, 0.0609130859375, 0.050506591796875, 0.09722900390625, 0.01374053955078125, -0.045623779296875, -0.008087158203125, -0.00669097900390625, 0.02447509765625, -0.048095703125, -0.0167999267578125, -0.06640625, 0.01274871826171875, -0.01544952392578125, 0.024749755859375, 0.02484130859375, -0.010528564453125, -0.03106689453125, 0.0106658935546875, -0.00890350341796875, -0.017730712890625, -0.0986328125, 0.03485107421875, 0.004543304443359375, 0.016632080078125, -0.0167083740234375, -0.0147552490234375, -0.022369384765625, 0.0247650146484375, -0.0020809173583984375, -0.0421142578125, 0.050201416015625, -0.0106353759765625, -0.07080078125, -0.005275726318359375, -0.004070281982421875, -0.0297698974609375, 0.00569915771484375, -0.03704833984375, 0.060516357421875, 0.036590576171875, -0.003559112548828125, 0.01190185546875, 0.034576416015625, -0.067626953125, -0.0181732177734375, 0.009033203125, -0.0236663818359375, 0.013885498046875, 0.0489501953125, 0.07281494140625, 0.006580352783203125, -0.0287628173828125, -0.01013946533203125, -0.0423583984375, -0.046234130859375, 0.01110076904296875, 0.01361846923828125, -0.0325927734375, 0.028289794921875, 0.00780487060546875, 0.011932373046875, -0.035858154296875, 0.0091400146484375, -0.003322601318359375, -0.0031261444091796875, 0.0426025390625, 0.02093505859375, -0.0216827392578125, 0.052825927734375, 0.052276611328125, -0.0421142578125, 0.0133819580078125, 0.0003974437713623047, -0.016632080078125, 0.0335693359375, -0.00209808349609375, -0.0509033203125, -0.033599853515625, 0.0223236083984375, 0.026123046875, 0.0005602836608886719, -0.00817108154296875, 0.0167999267578125, 0.0291900634765625, -0.0005311965942382812, -0.002353668212890625, -0.01473236083984375, 0.00395965576171875, 0.011871337890625, 0.02642822265625, 0.0005846023559570312, 0.0228118896484375, 0.007579803466796875, -0.0307769775390625, -0.00432586669921875, -0.0026226043701171875, 0.03228759765625, -0.0079193115234375, 0.039031982421875, -0.020965576171875, -0.006397247314453125, -0.004364013671875, -0.0635986328125, -0.05487060546875, 0.006801605224609375, -0.0050811767578125, -0.0156707763671875, 0.03375244140625 ]
5fa4d4069761c63e9d097da77e8027a7c2aaf6ae
Wordpress Stackexchange Q: Wordpress Deadlock Error I see more of this error these days in error_log. I see that someone asked this question here a year ago but no solution. Please advise what is causing this issue. Already, tried deactivating some plugins like w3total cache, disabled a few options like minify on w3total cache but nothing helped. Also, the site is using cloudfront, optimized. please advise. WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM `wp_options` WHERE `option_name` = 'rewrite_rules' made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), call_user_func_array, WP_Rewrite->flush_rules, delete_option, W3_Db->query, W3_DbCache->query, W3_DbCallUnderlying->query, W3_Db->query, W3_DbProcessor->query, W3_Db->default_query
Q: Wordpress Deadlock Error I see more of this error these days in error_log. I see that someone asked this question here a year ago but no solution. Please advise what is causing this issue. Already, tried deactivating some plugins like w3total cache, disabled a few options like minify on w3total cache but nothing helped. Also, the site is using cloudfront, optimized. please advise. WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM `wp_options` WHERE `option_name` = 'rewrite_rules' made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), call_user_func_array, WP_Rewrite->flush_rules, delete_option, W3_Db->query, W3_DbCache->query, W3_DbCallUnderlying->query, W3_Db->query, W3_DbProcessor->query, W3_Db->default_query
wordpress
{ "language": "en", "length": 102, "provenance": "stackexchange_00019.jsonl.gz:457673", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/195885" }
[ 0.0205535888671875, -0.01555633544921875, 0.004283905029296875, 0.03179931640625, -0.00431060791015625, -0.0241851806640625, 0.0640869140625, -0.0257568359375, 0.06280517578125, 0.03704833984375, -0.0333251953125, -0.001491546630859375, 0.0052337646484375, -0.000885009765625, -0.047210693359375, -0.007419586181640625, 0.043426513671875, -0.0229949951171875, 0.037750244140625, 0.01505279541015625, 0.01309967041015625, 0.034759521484375, 0.04595947265625, 0.007526397705078125, 0.022216796875, -0.0276031494140625, 0.081787109375, -0.01047515869140625, 0.0204620361328125, -0.006378173828125, 0.033935546875, -0.04638671875, 0.004161834716796875, -0.00714874267578125, 0.006622314453125, -0.07574462890625, 0.0226898193359375, -0.0166473388671875, -0.0162506103515625, 0.034393310546875, 0.00798797607421875, 0.003421783447265625, -0.0113983154296875, 0.051055908203125, -0.038909912109375, -0.03765869140625, 0.006069183349609375, -0.042236328125, -0.0166015625, 0.02874755859375, 0.00847625732421875, 0.04901123046875, 0.0196990966796875, 0.00838470458984375, 0.014892578125, -0.01512908935546875, 0.025787353515625, -0.0238037109375, 0.03076171875, -0.00179290771484375, -0.0321044921875, -0.0036773681640625, 0.0204620361328125, -0.0189361572265625, -0.02252197265625, -0.01161956787109375, 0.034759521484375, 0.00717926025390625, 0.032562255859375, -0.022613525390625, 0.0032978057861328125, 0.0302886962890625, -0.02825927734375, 0.0028839111328125, 0.05145263671875, 0.00855255126953125, 0.0005097389221191406, 0.03045654296875, -0.00682830810546875, 0.07122802734375, -0.01364898681640625, -0.050384521484375, -0.03564453125, 0.016815185546875, -0.01195526123046875, 0.0380859375, -0.0092926025390625, -0.004634857177734375, -0.0088348388671875, -0.027435302734375, -0.006988525390625, -0.04119873046875, -0.0286712646484375, 0.0203857421875, -0.00865936279296875, -0.0237884521484375, 0.0011425018310546875, 0.04888916015625, -0.012847900390625, -0.005126953125, -0.0117034912109375, -0.0185546875, -0.0104522705078125, -0.0094451904296875, -0.021697998046875, -0.01181793212890625, -0.004390716552734375, -0.0177764892578125, -0.004215240478515625, 0.03302001953125, -0.034576416015625, -0.0199432373046875, -0.020416259765625, -0.035614013671875, -0.0015707015991210938, 0.02386474609375, -0.0288848876953125, 0.00005793571472167969, -0.00850677490234375, -0.02703857421875, -0.0350341796875, -0.00466156005859375, -0.035308837890625, 0.007904052734375, -0.00812530517578125, -0.040985107421875, 0.0017528533935546875, 0.0182037353515625, -0.031890869140625, 0.00310516357421875, -0.0182342529296875, 0.0158538818359375, 0.09185791015625, 0.050079345703125, 0.008758544921875, -0.0150604248046875, 0.0162353515625, -0.0316162109375, -0.00244903564453125, 0.052093505859375, 0.0179443359375, -0.0552978515625, -0.031982421875, 0.0159454345703125, 0.03741455078125, 0.028564453125, 0.03265380859375, 0.00199127197265625, -0.0036334991455078125, -0.018524169921875, -0.0130767822265625, 0.0281829833984375, 0.043243408203125, -0.00885772705078125, 0.0032444000244140625, -0.0595703125, 0.054962158203125, -0.053741455078125, -0.01334381103515625, -0.047393798828125, -0.01202392578125, 0.0012273788452148438, 0.036590576171875, -0.01373291015625, -0.006732940673828125, -0.005523681640625, -0.033203125, 0.0010766983032226562, 0.0204620361328125, 0.0012884140014648438, 0.0007081031799316406, -0.004718780517578125, 0.007534027099609375, -0.0039043426513671875, 0.00036787986755371094, -0.0013093948364257812, -0.036224365234375, -0.036346435546875, 0.02679443359375, -0.0006198883056640625, -0.01079559326171875, -0.02325439453125, -0.0269012451171875, 0.0302581787109375, -0.0228424072265625, 0.017181396484375, 0.018646240234375, 0.0150909423828125, -0.00714111328125, 0.0189208984375, 0.021331787109375, 0.035430908203125, -0.018096923828125, 0.07598876953125, -0.0201263427734375, -0.056671142578125, -0.0168304443359375, -0.0023670196533203125, -0.019317626953125, -0.028533935546875, 0.0093231201171875, 0.022064208984375, -0.05078125, -0.0299530029296875, -0.099609375, -0.021270751953125, -0.0029430389404296875, 0.032562255859375, -0.02178955078125, 0.01412200927734375, 0.02764892578125, 0.01070404052734375, -0.0308837890625, -0.0194091796875, -0.0141754150390625, 0.00806427001953125, -0.0499267578125, 0.01515960693359375, 0.00868988037109375, 0.0391845703125, -0.006519317626953125, 0.000032842159271240234, -0.00481414794921875, -0.041473388671875, 0.0528564453125, 0.0008378028869628906, -0.015655517578125, -0.003314971923828125, 0.0380859375, 0.01068878173828125, -0.033203125, 0.03582763671875, 0.035430908203125, 0.048370361328125, -0.0251617431640625, -0.01873779296875, -0.0304107666015625, -0.05133056640625, 0.005382537841796875, 0.056488037109375, 0.0389404296875, 0.01233673095703125, -0.03594970703125, -0.035675048828125, 0.005237579345703125, -0.07110595703125, 0.0031261444091796875, -0.01093292236328125, -0.0024776458740234375, 0.034423828125, 0.0230255126953125, 0.001682281494140625, 0.01715087890625, -0.0126495361328125, -0.00855255126953125, 0.0233917236328125, -0.0224609375, -0.0178375244140625, -0.011138916015625, 0.006191253662109375, -0.003551483154296875, -0.09161376953125, -0.022003173828125, -0.0472412109375, 0.051177978515625, -0.0260467529296875, -0.0007839202880859375, -0.007007598876953125, -0.0003619194030761719, 0.0306396484375, 0.0020046234130859375, -0.10992431640625, 0.0041351318359375, -0.0309295654296875, -0.01788330078125, 0.01556396484375, -0.00447845458984375, 0.0218353271484375, -0.0178070068359375, -0.03717041015625, -0.02032470703125, 0.004367828369140625, -0.0285491943359375, -0.0158233642578125, 0.00923919677734375, -0.035247802734375, -0.005313873291015625, -0.01403045654296875, -0.01355743408203125, -0.03173828125, -0.0007815361022949219, 0.02886962890625, -0.029541015625, 0.0195770263671875, 0.00031948089599609375, -0.02423095703125, 0.048004150390625, -0.004154205322265625, 0.0256195068359375, -0.0008029937744140625, 0.007534027099609375, 0.0618896484375, -0.005062103271484375, 0.018341064453125, 0.00826263427734375, -0.0031414031982421875, 0.04522705078125, -0.0169830322265625, -0.0175628662109375, 0.04345703125, -0.10009765625, -0.0305633544921875, 0.03692626953125, 0.0777587890625, 0.0016021728515625, -0.02294921875, 0.00007921457290649414, 0.056640625, -0.0279388427734375, -0.060150146484375, -0.038665771484375, -0.031829833984375, -0.0196990966796875, 0.00487518310546875, -0.0113983154296875, 0.027923583984375, 0.00344085693359375, 0.00469207763671875, -0.03302001953125, -0.05718994140625, -0.06982421875, -0.08831787109375, -0.05712890625, 0.033477783203125, -0.0024166107177734375, 0.03253173828125, 0.0004982948303222656, 0.0784912109375, -0.024322509765625, -0.083251953125, -0.06988525390625, -0.0889892578125, -0.02960205078125, -0.0187530517578125, -0.04315185546875, 0.038177490234375, -0.0026187896728515625, 0.0176544189453125, 0.01317596435546875, -0.0007953643798828125, 0.0018024444580078125, -0.02593994140625, -0.0050048828125, -0.00504302978515625, 0.026092529296875, 0.0249176025390625, -0.0256805419921875, 0.0017766952514648438, 0.02783203125, -0.03533935546875, -0.01215362548828125, 0.00870513916015625, -0.0176544189453125, 0.0335693359375, 0.0301513671875, -0.03533935546875, -0.0056610107421875, -0.0078125, 0.016937255859375, 0.0166168212890625, -0.01904296875, -0.030181884765625, 0.059814453125, 0.0256195068359375, 0.034271240234375, -0.018829345703125, 0.049072265625, -0.0173492431640625, -0.0134429931640625, 0.00939178466796875, -0.0280609130859375, -0.039764404296875, -0.005512237548828125, -0.061126708984375, -0.026275634765625, 0.011962890625, -0.03662109375, 0.0259246826171875, -0.02874755859375, -0.005588531494140625, -0.0038967132568359375, 0.05645751953125, -0.018829345703125, -0.026702880859375, -0.0159149169921875, 0.02239990234375, -0.005893707275390625, -0.0283050537109375, 0.0309600830078125, -0.02691650390625, 0.0213470458984375, -0.0078887939453125, -0.02130126953125, -0.0211639404296875, -0.0255126953125, 0.026458740234375, 0.01473236083984375, -0.003673553466796875, 0.01084136962890625, -0.07403564453125, 0.0236053466796875, 0.032318115234375, 0.003192901611328125, 0.016448974609375, -0.006771087646484375, -0.0745849609375, -0.0970458984375, -0.021453857421875, -0.0391845703125, 0.0716552734375, 0.037811279296875, -0.00714111328125, -0.02618408203125, 0.0474853515625, 0.007396697998046875, 0.040985107421875, 0.00011861324310302734, -0.0111541748046875, 0.0227203369140625, 0.017791748046875, 0.0098876953125, -0.0110321044921875, 0.004253387451171875, -0.003635406494140625, 0.0006570816040039062, 0.006893157958984375, -0.035186767578125, -0.01169586181640625, -0.0017604827880859375, -0.0423583984375, -0.030517578125, -0.032196044921875, -0.0152587890625, 0.04833984375, 0.0251007080078125, -0.018157958984375, -0.05859375, -0.0645751953125, 0.04974365234375, -0.0157928466796875, 0.0022792816162109375, 0.00771331787109375, 0.065185546875, 0.0104217529296875, -0.0188446044921875, -0.0255126953125, -0.0035343170166015625, 0.0204010009765625, 0.0273284912109375, 0.032958984375, 0.03466796875, 0.0008807182312011719, -0.011383056640625, 0.018829345703125, -0.01910400390625, -0.0186309814453125, -0.0240478515625, 0.0142059326171875, -0.031494140625, 0.021087646484375, 0.01136016845703125, 0.053924560546875, 0.0304107666015625, -0.02593994140625, 0.0179595947265625, -0.0170135498046875, 0.0280914306640625, 0.01239013671875, -0.024627685546875, -0.0599365234375, -0.07525634765625, 0.03778076171875, -0.036102294921875, 0.01702880859375, 0.0155181884765625, -0.00897979736328125, 0.054107666015625, 0.005573272705078125, 0.0008563995361328125, 0.003570556640625, 0.0003001689910888672, -0.00806427001953125, 0.01557159423828125, 0.018035888671875, -0.01239776611328125, -0.00620269775390625, -0.0220489501953125, 0.106689453125, 0.0086212158203125, -0.064697265625, 0.0177154541015625, -0.0207366943359375, -0.0164031982421875, 0.04058837890625, 0.0035152435302734375, 0.03485107421875, -0.0036563873291015625, -0.007305145263671875, 0.00537109375, -0.0190887451171875, -0.02227783203125, -0.0296478271484375, 0.00571441650390625, -0.01251983642578125, -0.006710052490234375, -0.007904052734375, 0.048248291015625, -0.049591064453125, 0.03973388671875, 0.0100860595703125, 0.0285491943359375, -0.01061248779296875, 0.0219879150390625, 0.007678985595703125, 0.0235443115234375, 0.0115814208984375, -0.0035152435302734375, -0.016448974609375, -0.00466156005859375, 0.0269622802734375, 0.0225982666015625, 0.00969696044921875, -0.007602691650390625, -0.0303497314453125, 0.0283660888671875, -0.032806396484375, -0.0018444061279296875, 0.034515380859375, -0.0037631988525390625, -0.036468505859375, -0.0229644775390625, 0.0014486312866210938, 0.040374755859375, -0.0295562744140625, 0.00824737548828125, 0.031890869140625, 0.0011911392211914062, 0.056060791015625, -0.0137786865234375, 0.035125732421875, -0.013092041015625, -0.0130767822265625, 0.0224151611328125, -0.058746337890625, -0.03668212890625, -0.019683837890625, 0.0528564453125, -0.03167724609375, -0.01428985595703125, 0.0183868408203125, 0.00785064697265625, 0.033111572265625, 0.004871368408203125, -0.0428466796875, -0.030548095703125, 0.00250244140625, 0.0501708984375, 0.028717041015625, -0.007366180419921875, -0.003200531005859375, -0.042327880859375, -0.039794921875, 0.019378662109375, -0.00952911376953125, -0.035400390625, -0.02557373046875, -0.01201629638671875, 0.026397705078125, -0.035675048828125, -0.031646728515625, -0.0155181884765625, 0.0023651123046875, -0.00458526611328125, -0.0199432373046875, -0.0552978515625, 0.033843994140625, -0.0016069412231445312, 0.022216796875, -0.0303497314453125, 0.019805908203125, 0.03167724609375, -0.005504608154296875, -0.006931304931640625, -0.026031494140625, -0.0014581680297851562, 0.01143646240234375, 0.0035228729248046875, -0.01422882080078125, -0.002063751220703125, -0.00047278404235839844, 0.0084991455078125, -0.04168701171875, -0.007053375244140625, -0.0311126708984375, 0.077392578125, -0.047821044921875, -0.0028362274169921875, -0.0125579833984375, -0.007030487060546875, 0.01541900634765625, -0.040557861328125, -0.0250396728515625, 0.011566162109375, -0.0153350830078125, 0.006160736083984375, 0.0038394927978515625, -0.020172119140625, -0.0022449493408203125, 0.038330078125, 0.0150909423828125, 0.041015625, 0.019500732421875, 0.021942138671875, 0.0372314453125, 0.0709228515625, -0.061126708984375, -0.0509033203125, 0.03448486328125, 0.0161285400390625, -0.049896240234375, -0.00531005859375, -0.03338623046875, 0.0089111328125, 0.045684814453125, 0.06884765625, -0.058197021484375, 0.007076263427734375, 0.0228424072265625, -0.03582763671875, -0.0264129638671875, -0.018096923828125, -0.0008931159973144531, -0.015960693359375, 0.04034423828125, -0.0156402587890625, -0.036712646484375, -0.01544952392578125, -0.0129852294921875, -0.0057373046875, -0.00978851318359375, 0.009002685546875, 0.00872039794921875, -0.0293426513671875, 0.0462646484375, 0.018890380859375, 0.033233642578125, -0.00301361083984375, 0.0208892822265625, -0.03057861328125, 0.005603790283203125, -0.02923583984375, 0.00013554096221923828, -0.0345458984375, -0.0042877197265625, -0.00705718994140625, -0.027587890625, -0.020233154296875, 0.056610107421875, -0.0491943359375, 0.0204925537109375, 0.037353515625, -0.047821044921875, -0.005466461181640625, -0.028839111328125, 0.0152740478515625, 0.01058197021484375, -0.07281494140625, 0.00494384765625, -0.03436279296875, -0.005352020263671875, -0.0009393692016601562, 0.01085662841796875, 0.047088623046875, -0.04962158203125, 0.01493072509765625, 0.0577392578125, 0.0133514404296875, -0.029144287109375, -0.0004608631134033203, 0.037353515625, -0.04693603515625, -0.0236968994140625, 0.016754150390625, -0.0172576904296875, -0.0006160736083984375, -0.0106658935546875, -0.03839111328125, 0.01580810546875, -0.0038051605224609375, 0.001827239990234375, 0.033966064453125, -0.007343292236328125, -0.0266876220703125, -0.0204925537109375, -0.052215576171875, 0.07861328125, -0.035430908203125, 0.07855224609375, -0.05078125, 0.011322021484375, 0.03369140625, 0.0009918212890625, 0.01221466064453125, -0.004711151123046875, -0.037567138671875, -0.01342010498046875, 0.01140594482421875, 0.042236328125, 0.024322509765625, 0.0222320556640625, -0.0253143310546875, 0.0159454345703125, -0.01285552978515625, -0.034820556640625, 0.0191802978515625, -0.0233917236328125, -0.046234130859375, 0.01412200927734375, 0.00021660327911376953, -0.012420654296875, -0.02374267578125, 0.047454833984375, -0.02984619140625, -0.01041412353515625, 0.0234527587890625, -0.0002613067626953125, -0.0029315948486328125, 0.042022705078125, 0.035186767578125, -0.06549072265625, -0.03240966796875, -0.03948974609375, 0.060638427734375, -0.025604248046875, -0.03265380859375, 0.028289794921875, -0.00322723388671875, -0.0350341796875, -0.037506103515625, -0.04730224609375, -0.0162506103515625, -0.005542755126953125, 0.028778076171875, -0.0033740997314453125, 0.01338958740234375, -0.05987548828125, -0.0018987655639648438, 0.03692626953125, 0.051483154296875, -0.043609619140625, -0.0244903564453125, 0.008148193359375, 0.0160064697265625, 0.0220947265625, -0.040130615234375, -0.01230621337890625, 0.00960540771484375, 0.037872314453125, 0.00923919677734375, 0.0017900466918945312, -0.0033893585205078125, -0.01751708984375, 0.00978851318359375, 0.054840087890625, -0.0001131296157836914, 0.0154571533203125, -0.019439697265625, 0.0245819091796875, 0.033477783203125, 0.0264739990234375, -0.034271240234375, 0.07916259765625, -0.0155029296875, -0.004673004150390625, -0.0031719207763671875, 0.035980224609375, -0.0306854248046875, 0.009063720703125, -0.07073974609375, -0.09326171875, -0.0129241943359375, 0.0633544921875, -0.0200958251953125, -0.0086822509765625, 0.02984619140625, 0.06597900390625, 0.00893402099609375, -0.040496826171875, -0.002094268798828125, -0.01194000244140625, -0.048553466796875, -0.0166015625, -0.0251312255859375, -0.004764556884765625, 0.0038509368896484375, 0.0032863616943359375, 0.0576171875, -0.0462646484375, 0.0310211181640625, -0.0089874267578125, 0.02215576171875, 0.00614166259765625, 0.034515380859375, 0.0080108642578125, -0.06549072265625, 0.03131103515625, -0.08392333984375, -0.026214599609375, -0.0091400146484375, 0.030670166015625, -0.01244354248046875, 0.01128387451171875, 0.012115478515625, 0.0174407958984375, 0.00022292137145996094, -0.0013408660888671875, -0.00301361083984375, 0.0110015869140625, 0.0133819580078125, 0.04022216796875, 0.039154052734375, 0.0261993408203125, -0.068359375, -0.031341552734375, -0.00014698505401611328, 0.01139068603515625, -0.019317626953125, 0.0584716796875, -0.00012254714965820312, -0.0039520263671875, -0.01207733154296875, -0.04461669921875, 0.03814697265625, 0.0224151611328125, -0.057037353515625, 0.010406494140625, -0.013214111328125, -0.01184844970703125, -0.0245819091796875, 0.055877685546875, 0.005390167236328125, -0.003582000732421875, 0.0367431640625, -0.039031982421875, 0.014312744140625, 0.0191497802734375, -0.0152587890625, -0.034149169921875, -0.033355712890625, 0.02227783203125, 0.024932861328125, -0.007358551025390625, 0.0009222030639648438, 0.00798797607421875, 0.035369873046875, -0.01468658447265625, -0.01605224609375, 0.012542724609375, -0.0467529296875, 0.0106964111328125, 0.03338623046875, -0.049072265625, -0.03778076171875, -0.0288238525390625, -0.031005859375, 0.0125885009765625, -0.02215576171875, 0.04473876953125, -0.03033447265625, -0.01107025146484375, -0.02813720703125, 0.033172607421875, 0.023101806640625, -0.03228759765625, 0.0218505859375, 0.029937744140625, -0.00995635986328125, -0.01336669921875, 0.0260772705078125, 0.0042877197265625, -0.00643157958984375, -0.04632568359375, -0.022613525390625, -0.01214599609375, -0.0723876953125, 0.0031948089599609375, -0.004940032958984375, -0.0020198822021484375, 0.01189422607421875, -0.036407470703125, 0.040496826171875, -0.01448822021484375, -0.0253753662109375, -0.00469207763671875, -0.0085296630859375, 0.007259368896484375, 0.0452880859375, -0.011444091796875, -0.041412353515625, -0.0295257568359375, 0.034332275390625, -0.014556884765625, 0.0088348388671875, 0.01480865478515625, -0.0223236083984375, -0.01212310791015625, -0.0107269287109375, 0.01232147216796875, 0.034423828125, 0.016937255859375, -0.00862884521484375, -0.0029125213623046875, -0.00800323486328125, -0.0119476318359375, -0.0377197265625, 0.0242919921875, -0.06439208984375, -0.038055419921875, -0.058685302734375, 0.0516357421875, 0.044830322265625, -0.041778564453125, -0.112548828125, 0.0259552001953125, -0.0399169921875, -0.03448486328125, -0.08001708984375, -0.007358551025390625, 0.01551055908203125, -0.004558563232421875, -0.0200958251953125, -0.00368499755859375, -0.048431396484375, 0.0212860107421875, 0.0242462158203125, -0.01116180419921875, 0.021392822265625, 0.026336669921875, -0.0305328369140625, 0.0443115234375, 0.0254669189453125, 0.0093994140625, 0.000012755393981933594, 0.00839996337890625, 0.01428985595703125, 0.06402587890625, 0.0160980224609375, -0.031890869140625, -0.0029850006103515625, -0.10540771484375, 0.000008046627044677734, -0.039520263671875, 0.0007443428039550781, -0.0095672607421875, 0.0352783203125, 0.0088348388671875, 0.00769805908203125, -0.0251617431640625, -0.05426025390625, -0.049774169921875, -0.033233642578125, -0.031890869140625, 0.0489501953125, -0.12408447265625, -0.01151275634765625, 0.0287933349609375, -0.01001739501953125, -0.012451171875, -0.0066986083984375, -0.03228759765625, -0.0032367706298828125, -0.0102081298828125, 0.0010824203491210938, -0.051971435546875, 0.041961669921875, 0.0221710205078125, -0.0254669189453125, -0.0027866363525390625, -0.0247344970703125, -0.0012264251708984375, 0.003108978271484375, -0.0276947021484375, 0.0009336471557617188, 0.0301666259765625, -0.03814697265625, 0.0146942138671875, 0.0001729726791381836, 0.0084075927734375, -0.0263824462890625, 0.01299285888671875, -0.005321502685546875, 0.0008106231689453125, 0.00449371337890625, 0.0008330345153808594, -0.0224761962890625, 0.02362060546875, 0.0089569091796875, 0.044647216796875, -0.01210784912109375, -0.029937744140625, -0.0188140869140625, 0.0144500732421875, -0.03546142578125, 0.00896453857421875, 0.0164337158203125, -0.050689697265625, 0.007404327392578125, 0.006351470947265625, 0.026092529296875, -0.025543212890625, 0.0139617919921875, 0.0379638671875, 0.0143280029296875, 0.012725830078125 ]
8f36e7b264455a9e48e50d2fa56acd888541e3d4
Wordpress Stackexchange Q: How do I replace a function, declared inside a plugin's class, in functions.php? I want to modify a function in a plugin. It is declared in the plugin's main file like this: class WCPGSK_Main { ... public function wcpgsk_email_after_order_table($order) { ... } } Add called from there like this: add_action( 'woocommerce_email_after_order_table', array($this, 'wcpgsk_email_after_order_table') ); I guess it would be possible to replace it if had an access to the class in functions.php. Then I would be able to write something like this: $wcpgsk = new WCPGSK_Main; remove_action( 'woocommerce_email_after_order_table', array($wcpgsk, 'wcpgsk_email_after_order_table') ); function customized_wcpgsk_email_after_order_table($order) { ... } add_action( 'woocommerce_email_after_order_table', array($wcpgsk, 'customized_wcpgsk_email_after_order_table') ); My thought to get an access to the class in the functions.php file was to include the file where the class is declared in functions.php: require_once('/wp-content/plugins/woocommerce-poor-guys-swiss-knife/woocommerce-poor-guys-swiss-knife.php'); $wcpgsk = new WCPGSK_Main; ... But this does not work because the plugin's file is included when the plugin is getting initialized in WordPress, I guess. Is there a way to rewrite the function without touching plugin's files? A: This should work: add_action( 'woocommerce_init', 'remove_wcpgsk_email_order_table' ); function remove_wcpgsk_email_order_table() { global $wcpgsk; remove_action( 'woocommerce_email_after_order_table', array( $wcpgsk, 'wcpgsk_email_after_order_table' ) ); }
Q: How do I replace a function, declared inside a plugin's class, in functions.php? I want to modify a function in a plugin. It is declared in the plugin's main file like this: class WCPGSK_Main { ... public function wcpgsk_email_after_order_table($order) { ... } } Add called from there like this: add_action( 'woocommerce_email_after_order_table', array($this, 'wcpgsk_email_after_order_table') ); I guess it would be possible to replace it if had an access to the class in functions.php. Then I would be able to write something like this: $wcpgsk = new WCPGSK_Main; remove_action( 'woocommerce_email_after_order_table', array($wcpgsk, 'wcpgsk_email_after_order_table') ); function customized_wcpgsk_email_after_order_table($order) { ... } add_action( 'woocommerce_email_after_order_table', array($wcpgsk, 'customized_wcpgsk_email_after_order_table') ); My thought to get an access to the class in the functions.php file was to include the file where the class is declared in functions.php: require_once('/wp-content/plugins/woocommerce-poor-guys-swiss-knife/woocommerce-poor-guys-swiss-knife.php'); $wcpgsk = new WCPGSK_Main; ... But this does not work because the plugin's file is included when the plugin is getting initialized in WordPress, I guess. Is there a way to rewrite the function without touching plugin's files? A: This should work: add_action( 'woocommerce_init', 'remove_wcpgsk_email_order_table' ); function remove_wcpgsk_email_order_table() { global $wcpgsk; remove_action( 'woocommerce_email_after_order_table', array( $wcpgsk, 'wcpgsk_email_after_order_table' ) ); } A: If your plugin is registered like this: class Test_Class_Parent { function __construct() { add_action('wp_head',array($this,'test_method')); } function test_method() { echo 'Echoed from the parent'; } } $p = new Test_Class_Parent(); Then you should be able to remove the filter by accessing the global: class Test_Class_Child extends Test_Class_Parent { function __construct() { $this->unregister_parent_hook(); add_action('wp_head',array($this,'test_method')); } function unregister_parent_hook() { global $p; remove_action('wp_head',array($p,'test_method')); } function test_method() { echo 'Echoed from the child'; } } $c = new Test_Class_Child(); Otherwise, you will need to crawl the $wp_filter global for the registration key: class Test_Class_Child extends Test_Class_Parent { function __construct() { $this->unregister_parent_hook(); add_action('wp_head',array($this,'test_method')); } function unregister_parent_hook() { global $wp_filter; if (!empty($wp_filter['wp_head'])) { foreach($wp_filter['wp_head'] as $cb) { foreach ($cb as $k => $v) { if ( isset($v['function']) && is_a($v['function'][0],'Test_Class_Parent') && isset($v['function'][1]) && 'test_method' == $v['function'][1] ) { remove_action('wp_head',$k); } } } } } function test_method() { echo 'Echoed from the child'; } } $c = new Test_Class_Child(); This is resource intensive and should really not be done unless you have no other choice. A: That plugin makes its init function wcpgsk_init() pluggable, so another way to override it is to define it first in a must-use plugin (as it's too late in your theme's "functions.php"). So you could put your override in "wp-content/mu-plugins/functions.php": function wcpgsk_init() { global $wcpgsk, $wcpgsk_about, $wcpgsk_options, $wcpgsk_session, $wcpgsk_woocommerce_active; //only continue loading if ( $wcpgsk_woocommerce_active && version_compare( WOOCOMMERCE_VERSION, "2.0" ) >= 0 ) { $FILE = WP_PLUGIN_DIR . '/woocommerce-poor-guys-swiss-knife/woocommerce-poor-guys-swiss-knife.php'; // Fake __FILE__ $dirname = dirname( $FILE ) . '/'; $wcpgsk_options = get_option('wcpgsk_settings', true); require_once( $dirname . 'classes/woocommerce-poor-guys-swiss-knife.php' ); require_once( $dirname . 'classes/woocommerce-poor-guys-swiss-knife-about.php' ); require_once( $dirname . 'wcpgsk-af.php' ); if ( !is_admin() ) : add_action( 'plugins_loaded', 'wcpgsk_load_wcsession_helper' ); endif; // Your override. class My_WCPGSK_Main extends WCPGSK_Main { public function wcpgsk_email_after_order_table($order) { echo "O la la"; } } define( 'WCRGSK_DOMAIN', WCPGSK_DOMAIN ); // Fix typo! (WooCommerce Rich Guys Swiss Knife?) //load into our global $wcpgsk = new My_WCPGSK_Main( $FILE ); $wcpgsk->version = '2.2.4'; $wcpgsk->wcpgsk_hook_woocommerce_filters(); } elseif ( version_compare( WOOCOMMERCE_VERSION, "2.0" ) < 0 ) { add_action( 'admin_notices', 'wcpgsk_woocommerce_version_message', 0 ) ; return; } else { return; } } But an even better way to override it is to install runkit (https://github.com/padraic/runkit) and then just replace it directly in your theme's "functions.php": add_action( 'init', function () { $code = <<<'EOD' echo "O la la"; EOD; runkit_method_redefine( 'WCPGSK_Main', 'wcpgsk_email_after_order_table', '$order', $code, RUNKIT_ACC_PUBLIC ); } ); (That's a joke, btw.)
wordpress
{ "language": "en", "length": 579, "provenance": "stackexchange_00019.jsonl.gz:457709", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/196026" }
[ 0.040863037109375, -0.0239410400390625, -0.017974853515625, -0.055511474609375, 0.0002429485321044922, -0.035614013671875, 0.011199951171875, 0.0010461807250976562, -0.0140380859375, 0.007232666015625, 0.006381988525390625, -0.0004010200500488281, 0.003536224365234375, -0.0300140380859375, 0.015380859375, -0.00983428955078125, 0.03045654296875, -0.0019054412841796875, 0.049835205078125, 0.0043487548828125, 0.0097503662109375, 0.0293426513671875, 0.0189361572265625, 0.04119873046875, 0.02978515625, -0.0228271484375, 0.08843994140625, -0.0220794677734375, 0.02984619140625, -0.0142059326171875, 0.02642822265625, -0.030792236328125, 0.043853759765625, 0.0167083740234375, -0.044708251953125, 0.01139068603515625, 0.0003497600555419922, -0.01297760009765625, -0.0200347900390625, 0.022796630859375, 0.0086212158203125, 0.0095977783203125, -0.0491943359375, 0.01153564453125, -0.040283203125, -0.0894775390625, 0.03448486328125, -0.0074005126953125, 0.00713348388671875, 0.04229736328125, 0.0198211669921875, 0.042510986328125, 0.007843017578125, 0.005474090576171875, 0.01885986328125, 0.044036865234375, -0.06756591796875, 0.0171051025390625, -0.0138092041015625, 0.11444091796875, 0.055145263671875, 0.031768798828125, -0.039154052734375, -0.0556640625, -0.026519775390625, -0.007762908935546875, -0.00910186767578125, 0.0056915283203125, -0.0266571044921875, -0.033233642578125, 0.0255279541015625, 0.0027561187744140625, 0.00318145751953125, 0.0128021240234375, 0.0008397102355957031, -0.0236663818359375, 0.03466796875, 0.00984954833984375, 0.00403594970703125, 0.032745361328125, 0.0281524658203125, -0.0262908935546875, -0.028045654296875, 0.00347137451171875, 0.005985260009765625, 0.016876220703125, 0.01366424560546875, -0.01184844970703125, -0.036956787109375, 0.012451171875, -0.030426025390625, -0.02459716796875, 0.01427459716796875, -0.0174102783203125, -0.0301361083984375, -0.0175018310546875, 0.005126953125, 0.0120849609375, 0.004230499267578125, 0.042388916015625, 0.035430908203125, -0.05780029296875, 0.0220184326171875, -0.0170745849609375, -0.00946044921875, 0.034271240234375, -0.033935546875, 0.0082244873046875, 0.00982666015625, 0.045623779296875, 0.0093231201171875, -0.068359375, 0.014617919921875, -0.06414794921875, 0.01654052734375, 0.012847900390625, -0.00124359130859375, 0.01470947265625, 0.0286865234375, -0.036346435546875, 0.005035400390625, 0.0206146240234375, -0.0075836181640625, -0.050689697265625, 0.005306243896484375, -0.016632080078125, -0.026031494140625, -0.005794525146484375, -0.00457000732421875, 0.006717681884765625, -0.0440673828125, -0.003963470458984375, 0.07928466796875, 0.061370849609375, 0.03643798828125, -0.01727294921875, 0.037078857421875, 0.06903076171875, 0.0236663818359375, -0.004261016845703125, 0.00827789306640625, -0.035125732421875, -0.031585693359375, 0.02197265625, 0.023681640625, -0.0031757354736328125, 0.03924560546875, 0.025482177734375, -0.0233306884765625, -0.0024623870849609375, 0.01525115966796875, 0.0219573974609375, 0.01922607421875, 0.03076171875, 0.00885772705078125, 0.03424072265625, 0.035888671875, -0.0003955364227294922, -0.035797119140625, 0.00289154052734375, -0.0190887451171875, -0.038604736328125, -0.05303955078125, -0.0706787109375, -0.0777587890625, 0.032012939453125, 0.00209808349609375, 0.01497650146484375, 0.035247802734375, -0.00637054443359375, 0.01555633544921875, 0.0244293212890625, 0.03375244140625, 0.056365966796875, 0.03363037109375, 0.03375244140625, -0.0288543701171875, 0.033721923828125, 0.036712646484375, 0.053375244140625, 0.004848480224609375, -0.039764404296875, 0.07464599609375, -0.036651611328125, -0.0648193359375, -0.019805908203125, 0.0225830078125, 0.036712646484375, 0.0153961181640625, 0.02008056640625, 0.04156494140625, -0.004581451416015625, 0.01422882080078125, 0.00885772705078125, -0.0072479248046875, -0.042694091796875, 0.00027561187744140625, -0.0034942626953125, -0.0161285400390625, 0.01117706298828125, 0.0074310302734375, 0.00864410400390625, 0.021759033203125, -0.0070953369140625, -0.016265869140625, 0.0291900634765625, -0.0157928466796875, 0.039031982421875, -0.0161285400390625, 0.027252197265625, 0.040985107421875, 0.034271240234375, -0.08154296875, 0.02606201171875, -0.0203704833984375, -0.0345458984375, -0.0029964447021484375, 0.10693359375, 0.0240936279296875, 0.09661865234375, -0.0009350776672363281, -0.04052734375, 0.0160675048828125, -0.059478759765625, 0.00847625732421875, 0.039215087890625, -0.032257080078125, 0.0004334449768066406, -0.0098114013671875, 0.004878997802734375, -0.0008373260498046875, 0.049102783203125, 0.043304443359375, 0.055877685546875, -0.0380859375, -0.0246734619140625, -0.034393310546875, -0.034149169921875, -0.005767822265625, 0.040557861328125, 0.039947509765625, 0.01306915283203125, 0.007686614990234375, -0.0238037109375, 0.07012939453125, -0.042572021484375, -0.00009363889694213867, -0.027008056640625, -0.02508544921875, 0.0048675537109375, -0.00991058349609375, 0.0266571044921875, 0.0290679931640625, 0.01751708984375, -0.01047515869140625, 0.049285888671875, 0.00809478759765625, -0.04107666015625, 0.01922607421875, 0.007904052734375, 0.0296173095703125, -0.0175628662109375, -0.047943115234375, 0.0186004638671875, 0.037506103515625, -0.00628662109375, 0.0144805908203125, -0.0003063678741455078, -0.038543701171875, 0.0156097412109375, 0.034942626953125, 0.0155181884765625, -0.0164642333984375, 0.026123046875, -0.01366424560546875, -0.0247802734375, -0.053863525390625, 0.038482666015625, -0.025482177734375, -0.0001920461654663086, 0.0035400390625, 0.00839996337890625, -0.0055694580078125, -0.00621795654296875, -0.01407623291015625, 0.0075225830078125, 0.034942626953125, 0.03900146484375, 0.00978851318359375, -0.033111572265625, 0.0082550048828125, 0.0028476715087890625, -0.036590576171875, 0.04986572265625, -0.0017900466918945312, -0.034149169921875, 0.0357666015625, 0.0340576171875, -0.00206756591796875, -0.0085601806640625, 0.0078887939453125, 0.016754150390625, -0.015869140625, -0.007770538330078125, -0.0029010772705078125, -0.045928955078125, 0.0028285980224609375, -0.0146026611328125, -0.01367950439453125, -0.008819580078125, -0.025787353515625, 0.06597900390625, 0.0146942138671875, 0.08135986328125, -0.0240478515625, -0.06988525390625, 0.0091552734375, 0.0294647216796875, -0.053497314453125, -0.06756591796875, -0.0012235641479492188, -0.044158935546875, -0.0160980224609375, -0.004886627197265625, -0.0284576416015625, 0.005298614501953125, 0.019134521484375, -0.0011415481567382812, -0.0205841064453125, -0.03070068359375, -0.00676727294921875, -0.0660400390625, -0.049896240234375, -0.048004150390625, 0.01100921630859375, -0.0056610107421875, -0.0066680908203125, 0.036834716796875, 0.0006513595581054688, -0.0182952880859375, 0.0214996337890625, 0.01849365234375, -0.00542449951171875, 0.00262451171875, 0.0313720703125, -0.062286376953125, 0.004669189453125, -0.01183319091796875, 0.024444580078125, 0.0175323486328125, -0.01055908203125, 0.003997802734375, 0.019683837890625, 0.0030059814453125, 0.01332855224609375, 0.02392578125, -0.0352783203125, -0.01317596435546875, -0.0033416748046875, -0.04827880859375, -0.03094482421875, 0.0258331298828125, -0.0203857421875, 0.01107025146484375, -0.0089263916015625, -0.022369384765625, -0.003314971923828125, 0.022552490234375, 0.033721923828125, 0.02374267578125, 0.0298309326171875, 0.02398681640625, 0.031097412109375, -0.0099945068359375, -0.004474639892578125, -0.07568359375, 0.0513916015625, 0.0003693103790283203, -0.02587890625, 0.0029621124267578125, 0.033477783203125, 0.01464080810546875, -0.056427001953125, -0.053619384765625, -0.0068511962890625, 0.024749755859375, -0.07379150390625, 0.00899505615234375, -0.0345458984375, 0.00939178466796875, -0.0185546875, 0.057708740234375, -0.0014438629150390625, -0.00815582275390625, -0.0021305084228515625, 0.00812530517578125, -0.048431396484375, -0.038787841796875, -0.042022705078125, 0.00759124755859375, -0.0266876220703125, -0.037353515625, -0.0300750732421875, -0.007190704345703125, -0.0036449432373046875, 0.006031036376953125, -0.0135955810546875, -0.050140380859375, 0.02899169921875, -0.0165863037109375, 0.0137786865234375, 0.039947509765625, -0.01473236083984375, 0.020721435546875, -0.017974853515625, -0.033050537109375, -0.060302734375, 0.0125274658203125, -0.09161376953125, 0.0479736328125, 0.033416748046875, 0.0271759033203125, -0.025421142578125, 0.0177764892578125, -0.01313018798828125, 0.018402099609375, -0.0037059783935546875, 0.0322265625, -0.019500732421875, 0.0011129379272460938, 0.00914764404296875, -0.012847900390625, 0.015533447265625, -0.0008072853088378906, -0.08038330078125, 0.006931304931640625, -0.006000518798828125, 0.00008946657180786133, 0.04827880859375, -0.056884765625, -0.04754638671875, -0.001293182373046875, -0.01010894775390625, 0.0227813720703125, -0.03570556640625, 0.008514404296875, -0.00372314453125, -0.047821044921875, 0.014617919921875, -0.05218505859375, -0.033050537109375, 0.0361328125, 0.052154541015625, 0.017852783203125, 0.01214599609375, -0.030059814453125, 0.01416778564453125, 0.02490234375, 0.0225982666015625, 0.03277587890625, 0.0182342529296875, -0.00719451904296875, 0.0024013519287109375, 0.0139007568359375, 0.016876220703125, -0.060333251953125, 0.0833740234375, 0.0057830810546875, -0.00043773651123046875, 0.0169830322265625, -0.016510009765625, 0.0027904510498046875, -0.0230865478515625, -0.00815582275390625, -0.0192413330078125, 0.0267791748046875, 0.0283050537109375, -0.0200653076171875, 0.055999755859375, 0.006290435791015625, -0.03399658203125, 0.005260467529296875, -0.041290283203125, 0.046844482421875, 0.05511474609375, -0.01495361328125, 0.0340576171875, -0.007205963134765625, 0.01317596435546875, 0.0164031982421875, 0.0046539306640625, -0.023468017578125, 0.035003662109375, 0.0252227783203125, 0.002414703369140625, 0.005527496337890625, -0.0048980712890625, 0.00983428955078125, 0.0160064697265625, 0.00531768798828125, -0.051239013671875, -0.01540374755859375, -0.026275634765625, -0.03753662109375, -0.07098388671875, 0.054046630859375, 0.041961669921875, -0.00848388671875, 0.0093536376953125, -0.0782470703125, -0.0242156982421875, -0.02996826171875, 0.006988525390625, 0.0214691162109375, -0.01222991943359375, 0.0128021240234375, 0.024139404296875, 0.04083251953125, -0.0023822784423828125, -0.021453857421875, 0.033172607421875, -0.034149169921875, 0.035400390625, 0.005886077880859375, -0.0010595321655273438, -0.00010329484939575195, -0.00658416748046875, -0.0281524658203125, -0.0208282470703125, -0.02801513671875, 0.016448974609375, 0.0154266357421875, -0.0266876220703125, 0.00543975830078125, 0.00690460205078125, 0.0102691650390625, -0.0212249755859375, 0.02685546875, 0.03729248046875, -0.023773193359375, 0.0018224716186523438, 0.035675048828125, 0.0236968994140625, 0.010345458984375, 0.00716400146484375, -0.022552490234375, 0.011688232421875, 0.00337982177734375, 0.009124755859375, -0.018798828125, -0.0108489990234375, -0.0017175674438476562, -0.0157623291015625, -0.0114288330078125, -0.0167236328125, -0.0017147064208984375, -0.0347900390625, -0.004703521728515625, -0.010772705078125, 0.019073486328125, -0.023101806640625, 0.04754638671875, -0.02886962890625, -0.0204010009765625, -0.038055419921875, -0.00498199462890625, 0.06854248046875, 0.052642822265625, -0.061859130859375, -0.0203094482421875, -0.033203125, -0.00960540771484375, 0.0089111328125, -0.021484375, -0.035919189453125, -0.000621795654296875, -0.02178955078125, 0.0296630859375, -0.0238037109375, -0.004337310791015625, 0.026824951171875, -0.01300048828125, -0.02239990234375, -0.0066986083984375, -0.019622802734375, 0.08624267578125, 0.0040435791015625, 0.053466796875, 0.032135009765625, 0.047760009765625, -0.023681640625, -0.02716064453125, 0.01282501220703125, -0.0251312255859375, -0.03387451171875, -0.03741455078125, -0.032196044921875, 0.029449462890625, 0.07745361328125, -0.00177764892578125, 0.03887939453125, -0.01190948486328125, -0.0074462890625, -0.0222930908203125, 0.004627227783203125, -0.029052734375, 0.020660400390625, -0.018524169921875, -0.0294189453125, -0.0023193359375, -0.01116943359375, 0.03375244140625, 0.025390625, -0.042388916015625, 0.01715087890625, 0.00943756103515625, -0.048492431640625, 0.060516357421875, 0.0274658203125, -0.01340484619140625, 0.0115966796875, -0.0172882080078125, -0.021697998046875, -0.0307159423828125, -0.00569915771484375, 0.0333251953125, 0.001880645751953125, 0.06884765625, -0.006687164306640625, -0.0147705078125, 0.040985107421875, -0.036285400390625, 0.034027099609375, 0.054351806640625, 0.05615234375, -0.0928955078125, 0.018585205078125, 0.00907135009765625, -0.0036258697509765625, 0.050994873046875, 0.015625, -0.01186370849609375, -0.0298919677734375, 0.00504302978515625, 0.0005326271057128906, -0.00980377197265625, -0.0009732246398925781, 0.0167694091796875, -0.004398345947265625, -0.0149078369140625, 0.006175994873046875, 0.018798828125, -0.053863525390625, 0.035919189453125, 0.034820556640625, 0.020721435546875, -0.03668212890625, 0.02911376953125, 0.04345703125, -0.018768310546875, -0.048248291015625, 0.042449951171875, 0.024627685546875, -0.0093536376953125, 0.01068878173828125, -0.0286865234375, 0.002880096435546875, 0.0190582275390625, -0.0199737548828125, 0.0078277587890625, -0.00653076171875, -0.0014047622680664062, -0.00995635986328125, -0.032867431640625, 0.0188751220703125, 0.06024169921875, -0.086181640625, 0.0418701171875, -0.02972412109375, 0.0121612548828125, -0.01552581787109375, 0.0264892578125, 0.06439208984375, -0.0005097389221191406, -0.032989501953125, 0.032318115234375, 0.03375244140625, -0.020965576171875, 0.01432037353515625, 0.05126953125, -0.00852203369140625, -0.0011816024780273438, 0.0203399658203125, -0.0220489501953125, -0.0302276611328125, 0.000865936279296875, -0.0645751953125, 0.1046142578125, -0.01009368896484375, 0.038909912109375, 0.020111083984375, 0.033050537109375, -0.0211181640625, -0.00115203857421875, -0.00577545166015625, 0.0288238525390625, -0.047210693359375, 0.040313720703125, -0.01016998291015625, 0.00640869140625, 0.023590087890625, 0.024322509765625, 0.05096435546875, -0.004123687744140625, 0.0187225341796875, 0.0030117034912109375, 0.044097900390625, -0.01465606689453125, -0.042816162109375, 0.0236663818359375, -0.0099945068359375, -0.02520751953125, 0.0004634857177734375, -0.0150146484375, 0.02587890625, -0.038726806640625, -0.0013523101806640625, 0.01049041748046875, -0.005886077880859375, 0.0005388259887695312, -0.01036834716796875, 0.02606201171875, 0.0007681846618652344, -0.0198822021484375, -0.00113677978515625, -0.0087890625, -0.0172271728515625, 0.0120391845703125, -0.031585693359375, 0.01442718505859375, -0.0252685546875, -0.0018320083618164062, 0.017181396484375, -0.020751953125, 0.04827880859375, 0.0085296630859375, 0.00893402099609375, 0.04010009765625, 0.00838470458984375, 0.0210113525390625, 0.02593994140625, -0.00402069091796875, 0.038421630859375, 0.00975799560546875, 0.020965576171875, -0.00794219970703125, 0.06610107421875, 0.0110931396484375, 0.023895263671875, -0.043365478515625, 0.028656005859375, 0.0008196830749511719, 0.006805419921875, -0.0001876354217529297, -0.06292724609375, -0.0080413818359375, -0.07012939453125, -0.056610107421875, 0.002758026123046875, 0.01496124267578125, 0.02618408203125, 0.01531982421875, 0.002166748046875, 0.032073974609375, -0.055999755859375, 0.01390838623046875, 0.00225067138671875, 0.01070404052734375, -0.00605010986328125, 0.0203399658203125, -0.019866943359375, 0.04241943359375, -0.0175018310546875, 0.0024356842041015625, -0.0188140869140625, 0.031402587890625, -0.0159912109375, 0.0210418701171875, -0.03338623046875, -0.0224609375, -0.0013475418090820312, 0.0303497314453125, 0.00347900390625, 0.048248291015625, 0.0194549560546875, 0.0189971923828125, 0.0163116455078125, -0.006740570068359375, 0.0175628662109375, -0.022979736328125, -0.000040590763092041016, -0.02410888671875, -0.0113067626953125, -0.039031982421875, -0.011932373046875, -0.02557373046875, 0.050445556640625, -0.056488037109375, -0.000988006591796875, 0.017364501953125, -0.00025463104248046875, -0.0102386474609375, 0.053314208984375, -0.006549835205078125, 0.0738525390625, 0.034759521484375, -0.031707763671875, -0.0186614990234375, -0.0287933349609375, 0.0022735595703125, 0.0131988525390625, 0.03570556640625, 0.00008022785186767578, 0.0220489501953125, 0.046600341796875, 0.0209197998046875, 0.0008268356323242188, -0.005565643310546875, -0.00991058349609375, -0.058013916015625, 0.042694091796875, -0.008209228515625, -0.0460205078125, -0.040679931640625, -0.026031494140625, 0.047271728515625, 0.0203399658203125, 0.0699462890625, -0.009674072265625, 0.032562255859375, -0.0482177734375, -0.027191162109375, -0.01513671875, -0.060150146484375, 0.0208587646484375, -0.0108795166015625, -0.01261138916015625, 0.0241851806640625, 0.0202178955078125, -0.032623291015625, 0.03466796875, -0.070068359375, -0.0167694091796875, -0.060882568359375, 0.04217529296875, -0.017120361328125, 0.04217529296875, -0.002948760986328125, -0.025787353515625, 0.0112762451171875, -0.0013065338134765625, 0.019775390625, 0.035858154296875, 0.0262451171875, -0.0012140274047851562, 0.029449462890625, -0.0036106109619140625, 0.021453857421875, 0.015838623046875, 0.01629638671875, 0.0199127197265625, -0.005706787109375, -0.0147705078125, 0.0010318756103515625, -0.010345458984375, -0.0019893646240234375, 0.00855255126953125, 0.019195556640625, 0.015625, -0.05511474609375, 0.006427764892578125, 0.0623779296875, 0.00864410400390625, -0.017486572265625, 0.0108642578125, 0.06951904296875, -0.0482177734375, -0.039215087890625, 0.00893402099609375, -0.0116729736328125, 0.034088134765625, -0.028167724609375, -0.002368927001953125, 0.0255279541015625, -0.006565093994140625, -0.009490966796875, 0.0070953369140625, 0.03369140625, 0.0189971923828125, -0.0771484375, 0.01529693603515625, 0.00970458984375, 0.0677490234375, -0.01486968994140625, -0.0221710205078125, -0.015106201171875, 0.025238037109375, -0.039031982421875, -0.06622314453125, -0.06573486328125, 0.037933349609375, -0.08477783203125, 0.039642333984375, 0.0733642578125, -0.038421630859375, -0.0241241455078125, 0.02215576171875, 0.032318115234375, 0.055938720703125, -0.03668212890625, -0.0241241455078125, 0.0232391357421875, -0.0006480216979980469, 0.006832122802734375, -0.0694580078125, -0.02294921875, -0.047454833984375, 0.0266571044921875, 0.021331787109375, -0.01352691650390625, 0.01007080078125, -0.04083251953125, -0.06787109375, 0.064453125, 0.002719879150390625, -0.029541015625, -0.048919677734375, -0.0156097412109375, -0.030975341796875, 0.06524658203125, -0.01531982421875, -0.0195770263671875, -0.01050567626953125, 0.0638427734375, 0.0024166107177734375, 0.0191497802734375, 0.0189056396484375, -0.005794525146484375, -0.00591278076171875, 0.020782470703125, 0.0240631103515625, 0.01427459716796875, -0.0029506683349609375, -0.0238800048828125, 0.04400634765625, 0.046722412109375, -0.005397796630859375, -0.0296173095703125, 0.020477294921875, -0.01541900634765625, 0.002010345458984375, -0.02947998046875, -0.0164337158203125, -0.0270538330078125, 0.055267333984375, -0.010986328125, 0.01934814453125, -0.0127105712890625, -0.0033779144287109375, 0.0026874542236328125, 0.011627197265625, 0.0184783935546875, 0.0006976127624511719, -0.0179290771484375, 0.01154327392578125, 0.02020263671875, -0.031524658203125, 0.003658294677734375, 0.02386474609375, -0.056915283203125, 0.0196380615234375, -0.01465606689453125, -0.0033016204833984375, -0.07757568359375, -0.00640106201171875, 0.01227569580078125, -0.005222320556640625, 0.0196533203125, 0.01142120361328125, -0.00714874267578125, 0.01456451416015625, 0.05828857421875, 0.0213775634765625, -0.01336669921875, -0.035430908203125, 0.0171051025390625, 0.0007543563842773438, 0.032623291015625, -0.0292510986328125, -0.0287322998046875, -0.00433349609375, 0.0172119140625, 0.0006823539733886719, 0.01532745361328125, -0.0168914794921875, 0.05810546875, -0.0012426376342773438, 0.047821044921875, -0.0176849365234375, 0.02606201171875, -0.0128173828125, 0.0251007080078125, 0.01117706298828125, -0.00031757354736328125, 0.0479736328125, -0.0396728515625, 0.01435089111328125, 0.01470184326171875, 0.03643798828125, -0.039031982421875, 0.04107666015625, -0.001209259033203125, 0.035919189453125, 0.01861572265625 ]
1520c2450df0fc0b92a03b380bd406b586f3b65d
Wordpress Stackexchange Q: Contact Form 7 - Execute code AFTER mail send I've figured out how to do something BEFORE sending the mail, but I also need an action to happen AFTER it's been send. I tried wpcf7_after_send_mail but with no success... Any help on the matter would be much appreciated. A: EDIT: Please note that as of 2017 'on_sent_ok' is deprecated. This means that your code will stop working at some point in the future (likely by the end of 2017). The recommended solution is using DOM event listeners directly. For example, if you used: on_sent_ok: "ga( 'send', 'event', 'Contact Form', 'submit' );" You should replace it with: document.addEventListener( 'wpcf7mailsent', function( event ) { ga( 'send', 'event', 'Contact Form', 'submit' ); }, false ); The JavaScript code can be placed e.g. in the footer of your page. ORIGINAL ANSWER: Ok figured it out. In the specific form settings, go to the additional fields tab. Type in the following: on_sent_ok: "location.replace('http://www.website-redirect.com');" It's working like a charm for me now. Hope this helps other developers in the future as well. I know the image is in Dutch ... but you can't miss it with the big red lines around the tab name.
Q: Contact Form 7 - Execute code AFTER mail send I've figured out how to do something BEFORE sending the mail, but I also need an action to happen AFTER it's been send. I tried wpcf7_after_send_mail but with no success... Any help on the matter would be much appreciated. A: EDIT: Please note that as of 2017 'on_sent_ok' is deprecated. This means that your code will stop working at some point in the future (likely by the end of 2017). The recommended solution is using DOM event listeners directly. For example, if you used: on_sent_ok: "ga( 'send', 'event', 'Contact Form', 'submit' );" You should replace it with: document.addEventListener( 'wpcf7mailsent', function( event ) { ga( 'send', 'event', 'Contact Form', 'submit' ); }, false ); The JavaScript code can be placed e.g. in the footer of your page. ORIGINAL ANSWER: Ok figured it out. In the specific form settings, go to the additional fields tab. Type in the following: on_sent_ok: "location.replace('http://www.website-redirect.com');" It's working like a charm for me now. Hope this helps other developers in the future as well. I know the image is in Dutch ... but you can't miss it with the big red lines around the tab name. A: Using on_sent_ok as explained at contactform7.com/additional-settings can be very useful for adding some simple JavaScript like redirecting to another page. However it is rather prone to failing due to Javascript conflicts with either your current WordPress theme or one of the other plugins you are using. on_sent_ok is the absolutely last thing that runs in Contact Form 7, so any interferring Javascript Conflict can stop this completing. As an alternative, Contact Form 7 has a large number of hooks which are listed at http://hookr.io/plugins/contact-form-7/. These can provide a better targeted, more robust solution. A: For anybody still landing here looking for a way to run some PHP code after the email has been sent, Contact Form 7 has a wpcf7_mail_sent hook for exactly this. Usage looks a little like: // ...in functions.php add_action('wpcf7_mail_sent', function ($cf7) { // Run code after the email has been sent }); There is also wpcf7_mail_failed, which lets you hook into when the email fails.
wordpress
{ "language": "en", "length": 359, "provenance": "stackexchange_00019.jsonl.gz:457738", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/196126" }
[ 0.0277862548828125, -0.00885772705078125, -0.00824737548828125, -0.0221405029296875, -0.0021991729736328125, -0.02886962890625, 0.0083770751953125, -0.033935546875, 0.036163330078125, 0.02337646484375, -0.013580322265625, -0.01532745361328125, 0.034423828125, -0.03277587890625, -0.004650115966796875, 0.0091094970703125, 0.01268768310546875, -0.0178375244140625, -0.0073699951171875, -0.031494140625, 0.0107421875, -0.0312042236328125, 0.00693511962890625, 0.0254669189453125, -0.03216552734375, 0.021026611328125, 0.0845947265625, -0.0251922607421875, -0.052947998046875, -0.0281219482421875, -0.01346588134765625, 0.029815673828125, 0.061737060546875, 0.05157470703125, -0.1209716796875, -0.004940032958984375, -0.0031948089599609375, -0.0035114288330078125, -0.052398681640625, 0.056182861328125, 0.0279998779296875, -0.018646240234375, 0.041961669921875, 0.0231475830078125, 0.005245208740234375, -0.0323486328125, 0.040740966796875, -0.054718017578125, 0.032257080078125, 0.028289794921875, -0.0036640167236328125, 0.0185699462890625, -0.0137176513671875, 0.0219573974609375, -0.004444122314453125, -0.004276275634765625, -0.0677490234375, 0.027435302734375, 0.01104736328125, 0.08258056640625, 0.04449462890625, 0.0116424560546875, -0.0277099609375, -0.037628173828125, 0.0042572021484375, -0.01013946533203125, -0.029571533203125, -0.00453948974609375, -0.018341064453125, 0.0119476318359375, 0.031341552734375, -0.0380859375, 0.008270263671875, -0.005290985107421875, 0.018890380859375, -0.03204345703125, 0.021209716796875, 0.009979248046875, 0.00246429443359375, 0.04376220703125, 0.00537872314453125, -0.039947509765625, 0.008453369140625, -0.0008473396301269531, -0.00922393798828125, 0.00461578369140625, -0.0068817138671875, 0.00188446044921875, -0.057647705078125, -0.0596923828125, -0.03387451171875, -0.01096343994140625, -0.042022705078125, -0.056365966796875, -0.046478271484375, -0.039459228515625, 0.01025390625, 0.02398681640625, -0.015716552734375, -0.03558349609375, 0.0019779205322265625, -0.013702392578125, -0.059326171875, -0.004741668701171875, 0.0009279251098632812, 0.05670166015625, -0.002048492431640625, -0.028472900390625, -0.013336181640625, -0.012786865234375, -0.01605224609375, -0.04412841796875, -0.00342559814453125, 0.010009765625, -0.0296630859375, -0.01849365234375, -0.046661376953125, 0.00783538818359375, -0.0137481689453125, 0.025665283203125, 0.0011653900146484375, 0.0259552001953125, -0.0255126953125, -0.0361328125, 0.0114898681640625, -0.025115966796875, 0.00644683837890625, -0.01270294189453125, 0.09564208984375, 0.0036373138427734375, -0.01506805419921875, 0.01323699951171875, 0.0159149169921875, -0.0053863525390625, 0.00213623046875, -0.015960693359375, 0.03863525390625, 0.006397247314453125, 0.027496337890625, 0.00677490234375, -0.0038547515869140625, -0.028656005859375, -0.01593017578125, 0.02996826171875, 0.0185394287109375, 0.021820068359375, 0.024322509765625, 0.005214691162109375, -0.015380859375, -0.021270751953125, -0.01445770263671875, -0.00012314319610595703, 0.0421142578125, 0.005340576171875, -0.04534912109375, -0.016326904296875, -0.03216552734375, 0.0038013458251953125, -0.004825592041015625, -0.03704833984375, 0.0292510986328125, 0.00719451904296875, 0.033599853515625, -0.040802001953125, -0.03448486328125, -0.03485107421875, -0.09600830078125, -0.02032470703125, 0.008331298828125, -0.027557373046875, -0.0005164146423339844, -0.006641387939453125, -0.0290985107421875, -0.01056671142578125, 0.0157470703125, 0.02716064453125, 0.0199737548828125, 0.0016164779663085938, 0.032135009765625, -0.0213165283203125, -0.0228729248046875, -0.0260009765625, 0.061737060546875, -0.046234130859375, -0.027557373046875, 0.0474853515625, 0.01309967041015625, 0.033538818359375, -0.0338134765625, 0.014312744140625, 0.02435302734375, 0.06475830078125, -0.004413604736328125, 0.039581298828125, -0.0013408660888671875, -0.036346435546875, -0.00989532470703125, 0.026702880859375, -0.022674560546875, -0.024261474609375, 0.0155181884765625, -0.007602691650390625, 0.0300445556640625, -0.0248870849609375, 0.01299285888671875, 0.0178070068359375, -0.007785797119140625, 0.0219268798828125, -0.0015621185302734375, 0.0178375244140625, 0.0159912109375, -0.016143798828125, 0.0015821456909179688, -0.0291900634765625, -0.01702880859375, -0.02490234375, -0.0161895751953125, 0.05523681640625, 0.0092315673828125, 0.078125, -0.032867431640625, -0.031707763671875, -0.0233612060546875, -0.0526123046875, 0.00600433349609375, -0.019622802734375, -0.02191162109375, -0.01203155517578125, -0.026458740234375, -0.0016450881958007812, -0.0157012939453125, 0.09088134765625, 0.0273284912109375, 0.00434112548828125, -0.036651611328125, 0.0257110595703125, 0.021881103515625, 0.004970550537109375, -0.01296234130859375, 0.029510498046875, 0.02056884765625, -0.001068115234375, -0.01183319091796875, 0.0225830078125, 0.0300750732421875, -0.0164337158203125, 0.00540924072265625, 0.01183319091796875, 0.04437255859375, 0.039154052734375, -0.0350341796875, -0.03125, 0.0200042724609375, -0.079345703125, 0.032745361328125, 0.0164947509765625, -0.03271484375, -0.07208251953125, 0.0226287841796875, -0.01666259765625, 0.02691650390625, -0.0109405517578125, -0.0631103515625, -0.0005750656127929688, -0.0007104873657226562, -0.01483154296875, 0.006504058837890625, -0.01053619384765625, -0.018951416015625, -0.004154205322265625, 0.0297088623046875, -0.021392822265625, -0.0004622936248779297, 0.015625, 0.0256195068359375, 0.03411865234375, -0.039886474609375, 0.0009388923645019531, 0.02740478515625, 0.0196533203125, -0.01216888427734375, -0.00836944580078125, -0.0126953125, -0.020416259765625, 0.036102294921875, -0.0095062255859375, -0.007335662841796875, -0.0421142578125, 0.053466796875, 0.0287933349609375, 0.0290374755859375, 0.002391815185546875, -0.015716552734375, 0.065673828125, -0.01131439208984375, -0.044464111328125, -0.039459228515625, 0.0386962890625, -0.0004703998565673828, -0.031829833984375, 0.0034847259521484375, 0.033660888671875, -0.03656005859375, 0.0227203369140625, -0.00560760498046875, -0.05828857421875, 0.0015916824340820312, 0.0294189453125, 0.0005578994750976562, -0.056610107421875, 0.01302337646484375, 0.048370361328125, 0.01352691650390625, -0.00004297494888305664, -0.003932952880859375, -0.036956787109375, -0.0218963623046875, -0.03375244140625, -0.09783935546875, -0.08612060546875, -0.00490570068359375, -0.07318115234375, -0.042938232421875, 0.00012421607971191406, -0.03594970703125, 0.022705078125, -0.000017523765563964844, 0.0024566650390625, -0.041351318359375, 0.01131439208984375, -0.0192108154296875, -0.0457763671875, -0.04248046875, 0.00034880638122558594, -0.015899658203125, 0.0168914794921875, 0.0014972686767578125, 0.0126495361328125, -0.0222015380859375, -0.036590576171875, -0.0090179443359375, -0.0157470703125, 0.0167694091796875, -0.007213592529296875, -0.07403564453125, -0.036468505859375, 0.022857666015625, -0.0167999267578125, -0.02044677734375, -0.0212554931640625, 0.049041748046875, -0.002391815185546875, -0.00925445556640625, -0.0210723876953125, 0.007030487060546875, -0.035797119140625, 0.0048675537109375, -0.0404052734375, -0.022216796875, -0.05780029296875, 0.03192138671875, 0.0055084228515625, 0.003337860107421875, -0.065673828125, -0.0285797119140625, -0.01074981689453125, -0.01026153564453125, -0.00518035888671875, 0.0225830078125, 0.03509521484375, -0.00026726722717285156, 0.01367950439453125, 0.05615234375, -0.012359619140625, -0.02691650390625, -0.040496826171875, 0.039581298828125, 0.000514984130859375, 0.01224517822265625, 0.015869140625, 0.0457763671875, 0.0224761962890625, 0.0196990966796875, -0.04315185546875, -0.0679931640625, 0.0311431884765625, -0.0682373046875, -0.037384033203125, -0.01361083984375, 0.00626373291015625, 0.03228759765625, 0.08062744140625, 0.01320648193359375, -0.01092529296875, 0.01226043701171875, 0.01319122314453125, -0.00824737548828125, -0.0158233642578125, -0.0237884521484375, -0.005123138427734375, -0.0703125, 0.01288604736328125, -0.0198516845703125, -0.0113677978515625, -0.016326904296875, 0.000316619873046875, -0.0235443115234375, -0.06781005859375, 0.01345062255859375, -0.0003132820129394531, -0.0306396484375, -0.001617431640625, -0.048095703125, -0.01395416259765625, 0.007049560546875, -0.0146942138671875, -0.0675048828125, 0.01421356201171875, -0.0164947509765625, 0.02081298828125, -0.01371002197265625, 0.055511474609375, -0.0273590087890625, 0.03472900390625, 0.0274505615234375, -0.0280914306640625, -0.0035648345947265625, -0.0167694091796875, -0.0089569091796875, 0.024078369140625, 0.006984710693359375, -0.0189361572265625, 0.004901885986328125, 0.0194091796875, -0.0294342041015625, 0.01299285888671875, -0.01251983642578125, -0.02960205078125, 0.050811767578125, -0.0640869140625, -0.051300048828125, -0.04486083984375, -0.0350341796875, -0.0192718505859375, -0.0206451416015625, -0.0302886962890625, -0.0247802734375, -0.043121337890625, -0.04095458984375, -0.0335693359375, -0.039276123046875, 0.02783203125, 0.029632568359375, 0.040313720703125, 0.020599365234375, 0.0307464599609375, 0.00617218017578125, 0.046417236328125, 0.046783447265625, -0.053619384765625, -0.02410888671875, -0.06982421875, 0.033111572265625, 0.0506591796875, 0.029083251953125, -0.046844482421875, 0.06787109375, -0.0012140274047851562, -0.00572967529296875, 0.0157470703125, -0.005413055419921875, -0.004669189453125, -0.036285400390625, 0.007564544677734375, -0.00342559814453125, 0.042938232421875, 0.024322509765625, -0.00804901123046875, 0.01348876953125, -0.00586700439453125, -0.044158935546875, 0.01351165771484375, 0.01470184326171875, 0.0280303955078125, 0.01172637939453125, 0.0007233619689941406, 0.038665771484375, 0.0257415771484375, 0.00039839744567871094, -0.022186279296875, -0.0310211181640625, -0.02337646484375, 0.0138397216796875, 0.0010938644409179688, -0.00925445556640625, -0.002094268798828125, -0.003009796142578125, 0.0234375, 0.04974365234375, 0.0215301513671875, -0.041259765625, -0.029327392578125, -0.091796875, -0.07452392578125, -0.025604248046875, 0.01953125, 0.04486083984375, 0.03253173828125, 0.016143798828125, 0.00637054443359375, 0.027740478515625, -0.00432586669921875, -0.05230712890625, 0.006259918212890625, -0.029937744140625, 0.0167388916015625, 0.04144287109375, -0.041229248046875, 0.043731689453125, 0.006008148193359375, 0.037567138671875, 0.04254150390625, 0.002582550048828125, 0.0184173583984375, 0.0312042236328125, 0.003215789794921875, -0.038818359375, 0.012664794921875, -0.042205810546875, -0.0217132568359375, 0.033294677734375, 0.056243896484375, 0.006870269775390625, 0.0115814208984375, -0.00102996826171875, -0.00492095947265625, -0.0013093948364257812, -0.004772186279296875, 0.029876708984375, -0.0008006095886230469, -0.0015344619750976562, -0.0016269683837890625, -0.004779815673828125, 0.012298583984375, 0.00789642333984375, 0.036285400390625, -0.00937652587890625, 0.0302581787109375, 0.0384521484375, 0.0268707275390625, -0.03619384765625, -0.04998779296875, 0.038360595703125, -0.0213165283203125, -0.0282745361328125, 0.01090240478515625, -0.00830841064453125, -0.0201416015625, 0.0208892822265625, 0.057159423828125, -0.036224365234375, 0.00909423828125, -0.0186614990234375, 0.023681640625, -0.043792724609375, 0.01531219482421875, 0.0214385986328125, 0.003810882568359375, -0.05670166015625, -0.01082611083984375, -0.08648681640625, -0.025177001953125, -0.01253509521484375, -0.01251220703125, -0.030548095703125, -0.00592803955078125, 0.0139617919921875, 0.0167388916015625, -0.00589752197265625, -0.0306549072265625, -0.0008320808410644531, -0.0061798095703125, -0.0010404586791992188, -0.002742767333984375, 0.0130615234375, 0.038665771484375, -0.05035400390625, 0.0194244384765625, 0.006343841552734375, 0.014312744140625, -0.03082275390625, -0.009002685546875, 0.00814056396484375, -0.043609619140625, -0.03472900390625, -0.02618408203125, 0.0034809112548828125, 0.03399658203125, 0.028076171875, -0.0082244873046875, 0.00838470458984375, -0.002349853515625, 0.007427215576171875, -0.024444580078125, -0.0050201416015625, -0.0301055908203125, -0.0118408203125, 0.0163421630859375, -0.00868988037109375, 0.02740478515625, -0.01560211181640625, -0.017608642578125, 0.0333251953125, -0.01329803466796875, 0.039306640625, 0.0128173828125, -0.0252227783203125, 0.019561767578125, 0.043914794921875, 0.0013942718505859375, 0.03887939453125, 0.0151824951171875, 0.03558349609375, 0.047515869140625, 0.04156494140625, -0.006755828857421875, -0.034637451171875, 0.006687164306640625, -0.003940582275390625, -0.0229339599609375, -0.01392364501953125, -0.0255126953125, 0.01549530029296875, 0.0704345703125, 0.085205078125, -0.0977783203125, 0.004848480224609375, 0.0247039794921875, -0.0084075927734375, 0.0218963623046875, -0.04095458984375, -0.01013946533203125, -0.004474639892578125, 0.060943603515625, 0.034454345703125, -0.009796142578125, 0.036163330078125, 0.0264129638671875, -0.0174102783203125, -0.0015354156494140625, -0.003925323486328125, 0.00946044921875, -0.047576904296875, -0.0038623809814453125, 0.0299224853515625, -0.0033626556396484375, -0.0377197265625, 0.055816650390625, -0.019134521484375, -0.0237884521484375, -0.0433349609375, 0.00969696044921875, 0.023162841796875, -0.0105438232421875, -0.08331298828125, 0.0107421875, 0.034393310546875, 0.0238037109375, -0.00543212890625, -0.051666259765625, 0.0294342041015625, 0.0158538818359375, -0.00839996337890625, -0.0147247314453125, 0.019775390625, 0.033294677734375, -0.035858154296875, 0.0268402099609375, -0.00870513916015625, -0.005893707275390625, -0.0158233642578125, 0.00690460205078125, 0.0672607421875, -0.001117706298828125, -0.043121337890625, 0.0168609619140625, 0.018463134765625, -0.00959014892578125, -0.00745391845703125, -0.01175689697265625, -0.01508331298828125, 0.01093292236328125, -0.02520751953125, -0.033416748046875, 0.033935546875, -0.0308990478515625, -0.056396484375, 0.08123779296875, -0.0004706382751464844, 0.023956298828125, 0.0182342529296875, 0.0357666015625, -0.03802490234375, -0.003692626953125, -0.0261383056640625, 0.048858642578125, 0.0010538101196289062, 0.015716552734375, -0.05841064453125, -0.0104217529296875, -0.0083770751953125, 0.037445068359375, 0.0330810546875, 0.00543212890625, -0.04241943359375, 0.03778076171875, 0.08514404296875, 0.0360107421875, 0.00249481201171875, 0.0294952392578125, -0.0298004150390625, -0.0222320556640625, -0.024505615234375, -0.035919189453125, 0.00798797607421875, -0.036895751953125, -0.039154052734375, -0.0059661865234375, 0.0103759765625, 0.01529693603515625, -0.047821044921875, 0.0156707763671875, 0.00855255126953125, -0.035614013671875, -0.01279449462890625, -0.0173492431640625, -0.05120849609375, 0.0260772705078125, -0.049957275390625, -0.033203125, 0.034210205078125, -0.057586669921875, 0.0318603515625, -0.028594970703125, 0.01947021484375, 0.049957275390625, 0.0418701171875, 0.0281524658203125, -0.001495361328125, 0.021514892578125, 0.0230560302734375, -0.01369476318359375, 0.048248291015625, -0.0247955322265625, 0.0302276611328125, -0.031951904296875, 0.01300811767578125, 0.01056671142578125, 0.025543212890625, -0.03643798828125, 0.017333984375, 0.0041046142578125, 0.01763916015625, 0.017578125, -0.041595458984375, 0.02587890625, -0.06640625, -0.05487060546875, 0.00004476308822631836, -0.0208282470703125, -0.0251617431640625, 0.02801513671875, 0.005359649658203125, 0.041259765625, -0.01372528076171875, -0.0396728515625, -0.0311431884765625, 0.0038242340087890625, 0.01380157470703125, 0.028411865234375, -0.004425048828125, 0.053314208984375, 0.0028324127197265625, -0.006107330322265625, -0.0284576416015625, -0.002960205078125, 0.0239410400390625, 0.0128326416015625, 0.00502777099609375, 0.048126220703125, -0.0087890625, 0.0252532958984375, 0.0159759521484375, 0.08856201171875, 0.047698974609375, 0.0292816162109375, 0.039642333984375, 0.0179443359375, 0.0014295578002929688, -0.03448486328125, 0.018341064453125, -0.039337158203125, 0.006999969482421875, 0.00608062744140625, -0.00045180320739746094, -0.005950927734375, -0.015960693359375, 0.04736328125, -0.021270751953125, 0.0298309326171875, -0.01280975341796875, -0.027740478515625, 0.0015344619750976562, -0.028106689453125, 0.064208984375, -0.00577545166015625, -0.042236328125, -0.0285491943359375, -0.00417327880859375, 0.016998291015625, 0.0236663818359375, 0.037109375, 0.005519866943359375, 0.01461029052734375, -0.010528564453125, -0.0034351348876953125, 0.05670166015625, -0.027313232421875, -0.0458984375, 0.0193634033203125, 0.04998779296875, -0.023162841796875, -0.06463623046875, -0.035919189453125, 0.0157012939453125, 0.025848388671875, -0.026641845703125, 0.019989013671875, 0.005039215087890625, -0.00677490234375, -0.041473388671875, 0.0249786376953125, -0.027618408203125, -0.060943603515625, 0.060516357421875, 0.00307464599609375, -0.0161590576171875, 0.00882720947265625, -0.00485992431640625, 0.0225982666015625, 0.01092529296875, -0.0183868408203125, 0.050506591796875, -0.0504150390625, 0.003387451171875, 0.0048980712890625, -0.0019969940185546875, -0.0269775390625, -0.03656005859375, -0.009124755859375, -0.0054931640625, 0.003814697265625, 0.00846099853515625, 0.01406097412109375, 0.028594970703125, 0.0007505416870117188, 0.00942230224609375, 0.01558685302734375, -0.0081329345703125, 0.0308990478515625, 0.01325225830078125, -0.03668212890625, 0.045257568359375, -0.004665374755859375, -0.035308837890625, 0.057037353515625, -0.0170440673828125, 0.029876708984375, -0.00807952880859375, 0.0251007080078125, -0.033966064453125, 0.007598876953125, -0.001270294189453125, -0.00856781005859375, 0.007320404052734375, -0.01554107666015625, -0.0213623046875, -0.0228118896484375, -0.02716064453125, -0.0092010498046875, -0.020843505859375, 0.014007568359375, 0.01299285888671875, 0.0298919677734375, -0.00476837158203125, 0.04290771484375, 0.0004363059997558594, 0.0285186767578125, 0.0175933837890625, -0.049346923828125, 0.01136016845703125, 0.00897216796875, 0.0579833984375, -0.0085601806640625, 0.058868408203125, -0.034942626953125, -0.0097808837890625, -0.042572021484375, -0.05487060546875, -0.033355712890625, 0.0845947265625, -0.01971435546875, -0.0295257568359375, 0.0223541259765625, -0.0003063678741455078, -0.07891845703125, -0.038482666015625, -0.0302886962890625, 0.004638671875, -0.00286865234375, -0.0269927978515625, 0.0182647705078125, -0.01531219482421875, 0.0017061233520507812, -0.023773193359375, -0.005954742431640625, -0.00726318359375, -0.0026187896728515625, -0.0176239013671875, -0.0119781494140625, -0.0201568603515625, -0.037689208984375, -0.055816650390625, -0.00408935546875, 0.018829345703125, -0.028564453125, -0.0162353515625, 0.03997802734375, 0.0234222412109375, -0.056915283203125, -0.0302886962890625, 0.026885986328125, -0.037353515625, -0.01335906982421875, -0.01154327392578125, 0.0653076171875, 0.0240631103515625, -0.0162811279296875, -0.01490020751953125, -0.051849365234375, -0.043670654296875, 0.0013980865478515625, 0.0158843994140625, -0.0154876708984375, 0.0274200439453125, 0.04339599609375, -0.036529541015625, -0.016998291015625, 0.003223419189453125, -0.04296875, -0.0192108154296875, -0.04425048828125, -0.00881195068359375, -0.018402099609375, 0.0814208984375, 0.0073699951171875, 0.0123291015625, -0.01058197021484375, -0.0152435302734375, 0.024627685546875, 0.021697998046875, -0.0035762786865234375, 0.003452301025390625, -0.033477783203125, -0.0030841827392578125, -0.019927978515625, -0.0176544189453125, -0.01506805419921875, 0.01212310791015625, -0.0234375, 0.00640869140625, 0.0048980712890625, -0.022979736328125, -0.01039886474609375, -0.036773681640625, 0.07806396484375, -0.028717041015625, 0.0177764892578125, 0.037322998046875, 0.0247344970703125, 0.040802001953125, 0.08819580078125, 0.04296875, 0.01105499267578125, -0.023651123046875, -0.0138092041015625, 0.034423828125, 0.01476287841796875, -0.006031036376953125, -0.04339599609375, -0.0125274658203125, 0.017791748046875, -0.01096343994140625, 0.00873565673828125, -0.00420379638671875, 0.04998779296875, -0.0017147064208984375, 0.08648681640625, -0.04058837890625, -0.0024871826171875, -0.034515380859375, 0.020660400390625, 0.0023059844970703125, 0.018402099609375, 0.064208984375, -0.0201568603515625, 0.0089569091796875, 0.0267486572265625, 0.0426025390625, -0.052886962890625, 0.037567138671875, 0.04437255859375, 0.044647216796875, 0.022796630859375 ]
245d77e2765c4a47d73247493ae2419085648467
Wordpress Stackexchange Q: How to display wp_list_categories on div instead of li? Does anyone know how to display the wp_list_categories() on a div instead of the li? I basically want to wrap main categories and its children in a bootstrap column. $args = array( 'taxonomy' => 'product_category', 'hide_empty' => 0, 'orderby' => 'name', 'order' => 'ASC', 'show_count' => 0, 'use_desc_for_title' => 0, 'title_li' => 0 ); wp_list_categories($args); A: You can specify the style argument as something other than the default (which is list) and it won't wrap the output in a <li>. You can then wrap it in a <div> yourself. Combine it with the echo argument if you need to check that the list isn't empty. Example: $args = array( 'taxonomy' => 'product_category', 'hide_empty' => 0, 'orderby' => 'name', 'order' => 'ASC', 'show_count' => 0, 'use_desc_for_title' => 0, 'title_li' => 0, 'style' => '', 'echo' => false, ); $categories = wp_list_categories($args); if ( $categories ) { printf( '<div class="col">%s</div>', $categories ); }
Q: How to display wp_list_categories on div instead of li? Does anyone know how to display the wp_list_categories() on a div instead of the li? I basically want to wrap main categories and its children in a bootstrap column. $args = array( 'taxonomy' => 'product_category', 'hide_empty' => 0, 'orderby' => 'name', 'order' => 'ASC', 'show_count' => 0, 'use_desc_for_title' => 0, 'title_li' => 0 ); wp_list_categories($args); A: You can specify the style argument as something other than the default (which is list) and it won't wrap the output in a <li>. You can then wrap it in a <div> yourself. Combine it with the echo argument if you need to check that the list isn't empty. Example: $args = array( 'taxonomy' => 'product_category', 'hide_empty' => 0, 'orderby' => 'name', 'order' => 'ASC', 'show_count' => 0, 'use_desc_for_title' => 0, 'title_li' => 0, 'style' => '', 'echo' => false, ); $categories = wp_list_categories($args); if ( $categories ) { printf( '<div class="col">%s</div>', $categories ); } A: Please add two new argument into your $args array. 1) Style with none value. See the markup section for more. 2) echo with 0(False). Now call and store the result into $categories variable and print it via printf(). Final code like: $args = array( 'taxonomy' => 'product_category', 'hide_empty' => 0, 'orderby' => 'name', 'order' => 'ASC', 'show_count' => 0, 'use_desc_for_title' => 0, 'title_li' => 0, 'style' => 'none', 'echo' => 0, ); $categories = wp_list_categories($args); if ( $categories ) { printf( '<div>%s</div>', $categories ); } In aditional, you can use if ( !preg_match( '/No\scategories/i', $cats ) ) If the displayed text reads "No categories". P.S. If this stuff helps you please leave me a comment and support :)
wordpress
{ "language": "en", "length": 280, "provenance": "stackexchange_00019.jsonl.gz:457758", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/196186" }
[ 0.029571533203125, -0.0008897781372070312, -0.037689208984375, -0.0599365234375, 0.03179931640625, -0.037078857421875, 0.01983642578125, 0.014312744140625, -0.0086669921875, -0.01177215576171875, -0.0305023193359375, -0.01496124267578125, -0.04931640625, -0.043670654296875, -0.00653076171875, -0.0712890625, 0.022216796875, 0.0008234977722167969, 0.012054443359375, -0.0016984939575195312, -0.00287628173828125, 0.007568359375, 0.00327301025390625, 0.0634765625, -0.002674102783203125, -0.0618896484375, 0.09405517578125, -0.039642333984375, 0.0142059326171875, -0.0330810546875, 0.01708984375, 0.0040740966796875, 0.04547119140625, -0.0006103515625, -0.0118865966796875, 0.02362060546875, 0.0149383544921875, -0.0203857421875, 0.005619049072265625, 0.0289764404296875, 0.04254150390625, -0.02301025390625, 0.029510498046875, -0.00946044921875, -0.001995086669921875, 0.00870513916015625, 0.018096923828125, -0.0157470703125, 0.00893402099609375, -0.052825927734375, 0.0255889892578125, 0.018035888671875, 0.0158233642578125, -0.0654296875, 0.0014619827270507812, 0.06549072265625, -0.03558349609375, -0.0130767822265625, 0.02191162109375, 0.011962890625, 0.003864288330078125, -0.0283050537109375, 0.03173828125, -0.01448822021484375, 0.0224609375, 0.00958251953125, 0.042755126953125, 0.020538330078125, -0.0282440185546875, 0.0181732177734375, 0.0224456787109375, -0.0343017578125, -0.023468017578125, -0.04010009765625, -0.01358795166015625, 0.03741455078125, 0.0023593902587890625, -0.0200042724609375, -0.005405426025390625, 0.018707275390625, -0.044189453125, 0.0290374755859375, -0.04498291015625, -0.030609130859375, 0.020111083984375, 0.00539398193359375, -0.04412841796875, -0.01934814453125, 0.01251983642578125, 0.0017900466918945312, -0.0008568763732910156, 0.027923583984375, -0.0133819580078125, 0.016937255859375, 0.01258087158203125, -0.044647216796875, -0.005706787109375, 0.041778564453125, -0.02587890625, 0.0037517547607421875, -0.01233673095703125, -0.02130126953125, 0.006221771240234375, -0.0288543701171875, 0.01480865478515625, 0.075439453125, -0.02325439453125, -0.0211944580078125, 0.0361328125, 0.01030731201171875, 0.032379150390625, 0.01568603515625, -0.0115966796875, -0.0308837890625, 0.0077667236328125, 0.0027217864990234375, -0.053314208984375, 0.060302734375, -0.0027980804443359375, 0.0411376953125, -0.0229034423828125, 0.032196044921875, 0.030731201171875, -0.02105712890625, 0.0244140625, 0.04864501953125, 0.02996826171875, -0.09124755859375, -0.01088714599609375, 0.0028553009033203125, -0.0269317626953125, -0.006565093994140625, 0.052520751953125, 0.0733642578125, 0.034759521484375, -0.01044464111328125, 0.031524658203125, -0.003635406494140625, 0.0177154541015625, 0.00495147705078125, 0.019012451171875, 0.0007328987121582031, 0.022705078125, -0.005855560302734375, -0.0063323974609375, 0.0027751922607421875, 0.0005946159362792969, 0.0023441314697265625, 0.007579803466796875, -0.034454345703125, 0.040252685546875, -0.053466796875, 0.0501708984375, 0.0208282470703125, -0.032562255859375, 0.0295257568359375, 0.05224609375, -0.01311492919921875, -0.08172607421875, -0.04925537109375, -0.03173828125, 0.01385498046875, 0.060089111328125, -0.0667724609375, -0.056915283203125, -0.005458831787109375, -0.050506591796875, -0.01531219482421875, 0.0129547119140625, 0.01271820068359375, -0.0092010498046875, -0.041717529296875, 0.01348114013671875, 0.02130126953125, 0.0020389556884765625, 0.038055419921875, -0.039520263671875, -0.0360107421875, 0.0648193359375, -0.00032520294189453125, -0.0360107421875, -0.0306854248046875, 0.016448974609375, -0.003849029541015625, -0.04669189453125, 0.05059814453125, -0.02862548828125, 0.01702880859375, 0.0278167724609375, -0.0197906494140625, 0.0183563232421875, 0.029327392578125, -0.08526611328125, 0.0038394927978515625, 0.0277862548828125, -0.00922393798828125, -0.01274871826171875, -0.031982421875, 0.00933837890625, -0.0011663436889648438, -0.0011081695556640625, 0.0242919921875, -0.043792724609375, -0.00319671630859375, -0.079345703125, -0.00624847412109375, -0.01062774658203125, 0.045257568359375, -0.0031719207763671875, 0.040008544921875, 0.0007953643798828125, 0.01280975341796875, -0.00476837158203125, -0.052520751953125, -0.0222015380859375, -0.0025653839111328125, 0.003322601318359375, 0.034088134765625, 0.0009307861328125, 0.0013942718505859375, 0.005367279052734375, -0.00234222412109375, 0.0133819580078125, 0.03912353515625, 0.06292724609375, -0.0273590087890625, -0.007720947265625, -0.04876708984375, 0.02130126953125, 0.005176544189453125, -0.067626953125, 0.034210205078125, 0.06634521484375, 0.044189453125, -0.04644775390625, -0.0018720626831054688, -0.004726409912109375, -0.060394287109375, -0.00604248046875, 0.058502197265625, 0.0277099609375, 0.019775390625, -0.01214599609375, -0.01433563232421875, 0.09228515625, -0.00463104248046875, -0.0026569366455078125, -0.0111846923828125, -0.0015411376953125, 0.0006985664367675781, 0.047607421875, -0.000522613525390625, 0.0301666259765625, 0.0217742919921875, 0.03466796875, 0.00676727294921875, -0.0161895751953125, 0.006526947021484375, -0.01543426513671875, -0.019195556640625, 0.023193359375, -0.0291900634765625, -0.04205322265625, -0.00179290771484375, 0.03533935546875, -0.0229644775390625, 0.021697998046875, 0.004070281982421875, -0.01219940185546875, -0.014617919921875, 0.018280029296875, -0.0028533935546875, -0.006168365478515625, 0.0303955078125, -0.0199737548828125, -0.002117156982421875, -0.0272979736328125, 0.0063934326171875, -0.0049591064453125, -0.0065460205078125, -0.0022792816162109375, 0.0758056640625, 0.035888671875, -0.01200103759765625, -0.0458984375, -0.046234130859375, 0.00995635986328125, 0.0213623046875, -0.0252532958984375, -0.0292510986328125, 0.0160064697265625, 0.0157623291015625, -0.0271453857421875, 0.005413055419921875, 0.01479339599609375, -0.0219879150390625, 0.005786895751953125, -0.0256195068359375, 0.03314208984375, -0.03582763671875, 0.051666259765625, 0.04119873046875, -0.032257080078125, 0.005237579345703125, 0.00023663043975830078, 0.0138702392578125, -0.00008189678192138672, 0.005859375, -0.01328277587890625, -0.0296173095703125, -0.006443023681640625, 0.042816162109375, 0.033050537109375, 0.06768798828125, 0.01212310791015625, -0.0399169921875, 0.019989013671875, 0.045257568359375, -0.033843994140625, -0.07012939453125, 0.045013427734375, -0.03021240234375, 0.014434814453125, 0.0121307373046875, -0.023895263671875, -0.0369873046875, 0.060333251953125, -0.00983428955078125, -0.00075531005859375, -0.03302001953125, -0.054779052734375, -0.0640869140625, -0.06951904296875, -0.007781982421875, -0.00666046142578125, 0.01247406005859375, 0.007328033447265625, 0.09100341796875, 0.03594970703125, -0.006809234619140625, 0.05035400390625, 0.04925537109375, -0.00829315185546875, 0.010772705078125, 0.0207672119140625, -0.031463623046875, -0.02239990234375, 0.01000213623046875, 0.0290985107421875, -0.0093841552734375, 0.007415771484375, -0.00690460205078125, -0.0099029541015625, 0.0205230712890625, -0.0040435791015625, -0.003223419189453125, 0.02532958984375, 0.030914306640625, -0.0192108154296875, -0.0152740478515625, -0.041900634765625, 0.0079803466796875, -0.049591064453125, 0.007030487060546875, -0.00005048513412475586, 0.0105743408203125, 0.01593017578125, -0.007717132568359375, 0.0009565353393554688, 0.0124359130859375, 0.01064300537109375, -0.0226898193359375, 0.0185546875, -0.0005064010620117188, 0.0018138885498046875, -0.01555633544921875, -0.007503509521484375, -0.0223236083984375, -0.0280914306640625, -0.02618408203125, 0.029541015625, -0.00966644287109375, 0.013031005859375, -0.03411865234375, -0.0673828125, 0.039581298828125, -0.034332275390625, -0.021881103515625, -0.005306243896484375, -0.0203094482421875, 0.034637451171875, 0.07000732421875, -0.0748291015625, -0.038604736328125, -0.03289794921875, 0.021270751953125, -0.018035888671875, -0.03900146484375, -0.01102447509765625, -0.015838623046875, -0.11456298828125, 0.00458526611328125, -0.01041412353515625, -0.04656982421875, 0.003704071044921875, 0.037933349609375, -0.0604248046875, -0.038665771484375, 0.0443115234375, -0.02142333984375, 0.0032672882080078125, -0.01434326171875, -0.01055908203125, -0.04071044921875, -0.0294189453125, 0.0067901611328125, -0.05731201171875, -0.0179901123046875, 0.002765655517578125, 0.029327392578125, -0.0204925537109375, 0.0178985595703125, -0.0228424072265625, 0.051544189453125, 0.02264404296875, 0.0018377304077148438, 0.03729248046875, 0.0158843994140625, -0.01189422607421875, -0.01544952392578125, 0.0205535888671875, -0.0400390625, -0.026031494140625, -0.056427001953125, -0.031890869140625, 0.00931549072265625, -0.0129241943359375, 0.0289154052734375, -0.00919342041015625, 0.01837158203125, -0.07049560546875, -0.03546142578125, 0.014373779296875, -0.00024437904357910156, -0.0218505859375, 0.047698974609375, -0.02923583984375, -0.056732177734375, 0.04351806640625, -0.0032367706298828125, -0.0149688720703125, 0.00020587444305419922, 0.07586669921875, 0.0221099853515625, -0.015655517578125, -0.0081634521484375, 0.004596710205078125, 0.039276123046875, -0.05023193359375, 0.04351806640625, -0.00033164024353027344, -0.034088134765625, 0.09893798828125, -0.01861572265625, 0.00875091552734375, 0.00458526611328125, 0.0204620361328125, 0.0174560546875, -0.00876617431640625, 0.0094146728515625, 0.0191650390625, -0.023223876953125, 0.044158935546875, 0.0143280029296875, -0.00254058837890625, -0.01113128662109375, -0.0035552978515625, 0.03631591796875, -0.05169677734375, -0.01727294921875, -0.0228118896484375, 0.007083892822265625, -0.00946044921875, 0.050201416015625, 0.032562255859375, -0.007045745849609375, 0.033843994140625, 0.0281982421875, -0.0187530517578125, 0.01551055908203125, -0.0229949951171875, 0.0095367431640625, 0.002384185791015625, 0.0069580078125, -0.0121307373046875, 0.01580810546875, -0.0028476715087890625, -0.0184326171875, 0.0190887451171875, -0.01434326171875, -0.0217742919921875, 0.00493621826171875, 0.0284576416015625, -0.017730712890625, 0.01396942138671875, 0.0254974365234375, 0.025238037109375, 0.0167694091796875, -0.0130767822265625, -0.0165557861328125, 0.0108184814453125, -0.0243988037109375, 0.0097503662109375, 0.0014066696166992188, -0.0103607177734375, 0.0098876953125, 0.03851318359375, 0.0176849365234375, 0.027313232421875, -0.0267791748046875, -0.00788116455078125, 0.037994384765625, 0.01381683349609375, 0.039215087890625, -0.0295562744140625, -0.0433349609375, 0.00909423828125, 0.01424407958984375, -0.0294189453125, -0.01215362548828125, 0.0233306884765625, 0.037139892578125, -0.0157318115234375, -0.01540374755859375, 0.0116119384765625, -0.019744873046875, -0.0352783203125, 0.032257080078125, -0.032440185546875, -0.049407958984375, -0.062255859375, -0.00048828125, 0.05633544921875, -0.01302337646484375, -0.0250701904296875, 0.0003769397735595703, -0.0217437744140625, 0.016021728515625, 0.0250244140625, -0.0161895751953125, 0.02191162109375, 0.019500732421875, -0.03741455078125, -0.018707275390625, 0.008392333984375, -0.048492431640625, -0.020782470703125, -0.00788116455078125, -0.0186004638671875, -0.0016012191772460938, -0.038604736328125, 0.05096435546875, -0.0352783203125, -0.01409912109375, -0.0132904052734375, 0.0011186599731445312, 0.08123779296875, 0.07293701171875, -0.043487548828125, -0.014251708984375, -0.0240478515625, -0.0070648193359375, 0.00496673583984375, -0.0242767333984375, -0.01512908935546875, 0.0031833648681640625, 0.02984619140625, 0.02325439453125, -0.004993438720703125, -0.045135498046875, -0.05120849609375, -0.007350921630859375, 0.037445068359375, 0.0175323486328125, -0.0178985595703125, 0.03216552734375, 0.01555633544921875, 0.00872802734375, 0.0015230178833007812, -0.0029048919677734375, -0.0014142990112304688, -0.0150299072265625, -0.001735687255859375, -0.053009033203125, -0.01361846923828125, 0.01508331298828125, -0.03466796875, 0.002422332763671875, 0.0419921875, 0.0002505779266357422, 0.0179595947265625, 0.01299285888671875, 0.009674072265625, -0.005130767822265625, -0.021484375, -0.00011307001113891602, 0.0018377304077148438, 0.043731689453125, 0.00872039794921875, 0.00848388671875, -0.037353515625, -0.0229949951171875, 0.025054931640625, 0.004199981689453125, 0.0230255126953125, -0.0157623291015625, -0.0304412841796875, 0.0740966796875, 0.057525634765625, 0.00044989585876464844, 0.033935546875, 0.0256195068359375, 0.005672454833984375, -0.0152587890625, 0.0103912353515625, 0.049163818359375, 0.01557159423828125, 0.07745361328125, -0.00746917724609375, -0.01568603515625, 0.028289794921875, -0.047607421875, -0.0164794921875, 0.054595947265625, 0.0419921875, -0.056182861328125, 0.003002166748046875, -0.0006241798400878906, -0.007965087890625, -0.007236480712890625, 0.01229095458984375, -0.035186767578125, -0.020721435546875, 0.03424072265625, -0.0231781005859375, -0.0298614501953125, 0.0023193359375, 0.007228851318359375, 0.018341064453125, -0.004169464111328125, 0.04315185546875, 0.022430419921875, -0.05908203125, -0.015472412109375, 0.04083251953125, 0.0121307373046875, -0.015472412109375, 0.01056671142578125, -0.0022029876708984375, -0.038604736328125, -0.046356201171875, -0.0038204193115234375, 0.005680084228515625, -0.01090240478515625, 0.053466796875, -0.0228424072265625, -0.043487548828125, 0.0382080078125, -0.0261993408203125, 0.0294647216796875, 0.006862640380859375, -0.07220458984375, 0.00811767578125, 0.004688262939453125, 0.03192138671875, 0.006561279296875, -0.04779052734375, 0.0130157470703125, -0.034393310546875, 0.0088653564453125, -0.0098724365234375, -0.004299163818359375, 0.0609130859375, -0.04345703125, -0.00922393798828125, 0.019683837890625, 0.0283660888671875, 0.00872802734375, -0.01068115234375, 0.036407470703125, -0.0386962890625, -0.01424407958984375, 0.00830841064453125, -0.021148681640625, -0.03961181640625, -0.040496826171875, -0.04815673828125, 0.070068359375, -0.0129241943359375, 0.0200653076171875, 0.021728515625, 0.01364898681640625, -0.0253448486328125, -0.01392364501953125, -0.01348876953125, 0.0310516357421875, 0.03955078125, 0.02490234375, -0.01038360595703125, -0.0259857177734375, 0.027191162109375, 0.047637939453125, -0.0135955810546875, -0.004932403564453125, -0.01442718505859375, 0.01091766357421875, 0.050079345703125, 0.037017822265625, 0.0254974365234375, 0.010223388671875, -0.0236968994140625, 0.0300140380859375, 0.024200439453125, -0.035430908203125, 0.02813720703125, -0.007080078125, -0.038665771484375, -0.005817413330078125, 0.0310211181640625, 0.0391845703125, 0.01282501220703125, 0.037109375, -0.04046630859375, 0.00653076171875, 0.035675048828125, -0.0117034912109375, 0.03240966796875, 0.058197021484375, 0.031829833984375, -0.013092041015625, -0.008880615234375, -0.0225067138671875, 0.042633056640625, -0.0171661376953125, 0.01044464111328125, 0.0224609375, 0.005802154541015625, 0.053741455078125, 0.027099609375, 0.00873565673828125, 0.04608154296875, 0.0028324127197265625, 0.035491943359375, 0.03643798828125, 0.026947021484375, -0.0051116943359375, 0.02099609375, 0.0528564453125, 0.045013427734375, -0.046844482421875, -0.048065185546875, 0.0183868408203125, 0.0247802734375, 0.005352020263671875, 0.0188751220703125, 0.0193023681640625, 0.0004775524139404297, 0.0609130859375, -0.06689453125, -0.0188140869140625, 0.023040771484375, 0.045654296875, -0.0030002593994140625, -0.009429931640625, -0.02886962890625, -0.0655517578125, -0.046905517578125, 0.01708984375, -0.0091094970703125, 0.09869384765625, 0.043304443359375, 0.0309600830078125, -0.07110595703125, -0.05633544921875, -0.004894256591796875, -0.0188140869140625, -0.0053863525390625, -0.0003485679626464844, 0.002414703369140625, 0.022491455078125, -0.005840301513671875, 0.0214080810546875, 0.011627197265625, 0.01139068603515625, 0.03619384765625, 0.049713134765625, 0.0045928955078125, -0.00862884521484375, 0.0506591796875, 0.00007683038711547852, -0.0250396728515625, -0.0243072509765625, 0.027130126953125, 0.029022216796875, 0.0194854736328125, 0.01226806640625, 0.0296783447265625, 0.043609619140625, -0.04376220703125, 0.0501708984375, -0.0098419189453125, -0.032623291015625, -0.0116119384765625, -0.040313720703125, 0.057342529296875, -0.025482177734375, -0.06903076171875, -0.023681640625, -0.0036983489990234375, -0.03204345703125, 0.030303955078125, 0.0452880859375, -0.01515960693359375, 0.0123748779296875, -0.0003719329833984375, -0.0163726806640625, 0.0234222412109375, -0.0110931396484375, 0.00870513916015625, -0.0168609619140625, -0.00015163421630859375, -0.01519775390625, -0.036834716796875, -0.0265655517578125, -0.017791748046875, 0.040069580078125, -0.0053863525390625, 0.034332275390625, -0.015960693359375, 0.019134521484375, -0.0239410400390625, 0.00836181640625, -0.04669189453125, -0.040802001953125, 0.07080078125, -0.0106964111328125, -0.029754638671875, -0.0224151611328125, 0.0042266845703125, -0.0178070068359375, 0.04241943359375, -0.05401611328125, -0.04266357421875, -0.0171356201171875, 0.0426025390625, -0.008880615234375, 0.0267791748046875, -0.0172882080078125, -0.03509521484375, -0.028228759765625, -0.0027790069580078125, 0.00879669189453125, 0.0279388427734375, 0.01401519775390625, 0.0225372314453125, 0.03594970703125, -0.0021514892578125, 0.0278472900390625, -0.0024547576904296875, 0.0321044921875, 0.041717529296875, 0.02105712890625, -0.0164031982421875, -0.006168365478515625, -0.0157012939453125, 0.0146484375, -0.00572967529296875, 0.0211334228515625, 0.0012836456298828125, -0.01218414306640625, 0.03131103515625, 0.05340576171875, 0.040435791015625, -0.032012939453125, 0.015167236328125, 0.0517578125, -0.0281219482421875, -0.00910186767578125, -0.002597808837890625, -0.06365966796875, -0.06781005859375, 0.029205322265625, 0.0264434814453125, -0.019012451171875, -0.03021240234375, -0.09490966796875, -0.01485443115234375, 0.00890350341796875, -0.00974273681640625, -0.004940032958984375, 0.007602691650390625, -0.0081939697265625, 0.0006361007690429688, -0.04132080078125, -0.003742218017578125, 0.01125335693359375, 0.0222320556640625, -0.0565185546875, 0.0233306884765625, -0.0307464599609375, -0.032379150390625, -0.0212554931640625, 0.0303802490234375, 0.0034160614013671875, -0.033660888671875, 0.026702880859375, 0.031463623046875, 0.036376953125, 0.0869140625, 0.05865478515625, -0.006214141845703125, -0.004680633544921875, 0.05059814453125, -0.03515625, -0.025299072265625, 0.02276611328125, 0.0208587646484375, -0.025299072265625, 0.0249176025390625, -0.0126190185546875, 0.029296875, -0.032684326171875, -0.0989990234375, 0.07904052734375, -0.025543212890625, -0.03912353515625, -0.006893157958984375, 0.01055145263671875, -0.019256591796875, 0.004032135009765625, 0.006122589111328125, -0.02752685546875, 0.00690460205078125, 0.0301513671875, 0.0058441162109375, 0.031280517578125, 0.00789642333984375, 0.00732421875, -0.06683349609375, -0.005748748779296875, -0.027923583984375, 0.0107421875, -0.029266357421875, 0.007965087890625, 0.00881195068359375, 0.0230865478515625, -0.020355224609375, -0.0024566650390625, 0.0187835693359375, 0.0303802490234375, 0.0289764404296875, -0.037841796875, -0.0186614990234375, -0.020660400390625, 0.007457733154296875, -0.01678466796875, 0.0059356689453125, 0.00070953369140625, -0.060302734375, -0.0254669189453125, -0.001941680908203125, -0.0185089111328125, 0.03021240234375, -0.10052490234375, -0.0218505859375, 0.018218994140625, 0.00528717041015625, 0.01210784912109375, 0.009857177734375, -0.0033016204833984375, -0.0189056396484375, 0.00437164306640625, -0.0256805419921875, -0.0360107421875, -0.009552001953125, 0.029693603515625, -0.0298614501953125, -0.0178985595703125, -0.0155792236328125, 0.02081298828125, -0.0069427490234375, -0.0241241455078125, -0.07061767578125, -0.048370361328125, 0.01062774658203125, 0.016143798828125, -0.0295257568359375, 0.044036865234375, 0.00542449951171875, 0.0369873046875, -0.03326416015625, 0.005580902099609375, -0.01541900634765625, -0.0022716522216796875, 0.030487060546875, 0.0201873779296875, 0.023345947265625, 0.05596923828125, -0.0128021240234375, -0.0178070068359375, 0.00482177734375, 0.01837158203125, 0.0038089752197265625, -0.00948333740234375, 0.04718017578125, -0.0679931640625, 0.00738525390625, -0.0462646484375, -0.0160064697265625, -0.013916015625, -0.00817108154296875, -0.0012216567993164062, -0.04931640625, 0.0260009765625 ]
1ded0a052490e240a22272ca6ea8cffddc226382
Wordpress Stackexchange Q: Use __($str) and _e($str) to translate strings with HTML I'm currently developing a non-trivial theme right now, most of the time I'm not using a __($str) translate function when there's an HTML tag therein the text. Is it good to always use the translate functions such __($str) and _e($str) whenever there's a text that'll be going to output? Any downside with it? Can I still use it even to a very long text that have mixed with an HTML tag such like this? __("This <em>text</em> have an <b>HTML</b> tag. Another sentence...") Or it is good to use like this? (*Looks messy..) __('This ').'<em>'.__('text').'</em>'.' have an '.'<b>'.__('HTML').'</b>'__(' tag.') How to properly use such kind of a function? A: The second option will not only (as @mmm already said) confuse translators, but also the order of words in a sentence can be significantly different from one language to another. With the first option a translator can adjust and translate properly, which is not possible with the second one.
Q: Use __($str) and _e($str) to translate strings with HTML I'm currently developing a non-trivial theme right now, most of the time I'm not using a __($str) translate function when there's an HTML tag therein the text. Is it good to always use the translate functions such __($str) and _e($str) whenever there's a text that'll be going to output? Any downside with it? Can I still use it even to a very long text that have mixed with an HTML tag such like this? __("This <em>text</em> have an <b>HTML</b> tag. Another sentence...") Or it is good to use like this? (*Looks messy..) __('This ').'<em>'.__('text').'</em>'.' have an '.'<b>'.__('HTML').'</b>'__(' tag.') How to properly use such kind of a function? A: The second option will not only (as @mmm already said) confuse translators, but also the order of words in a sentence can be significantly different from one language to another. With the first option a translator can adjust and translate properly, which is not possible with the second one. A: The sweet and short of it all is, never try to translate HTML tags. Use placeholders and either printf or sprintf to translate strings with HTML tags Something like this will do printf() printf( __( 'This %s text %s have an %s HTML %s tag. Another sentence...' ), '<em>', '</em>', '<b>', '</b>' ); sprintf() sprintf( __( 'This %s text %s have an %s HTML %s tag. Another sentence...' ), '<em>', '</em>', '<b>', '</b>' );
wordpress
{ "language": "en", "length": 242, "provenance": "stackexchange_00019.jsonl.gz:457820", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/196412" }
[ -0.0308990478515625, -0.011627197265625, -0.0139617919921875, 0.06988525390625, -0.01023101806640625, -0.030426025390625, 0.042144775390625, -0.03131103515625, 0.00823974609375, 0.0714111328125, 0.044342041015625, -0.01290130615234375, 0.0294189453125, -0.0247039794921875, -0.051177978515625, -0.0030765533447265625, 0.02337646484375, -0.01201629638671875, 0.01073455810546875, -0.003459930419921875, -0.0037975311279296875, 0.013214111328125, 0.0074005126953125, -0.021026611328125, 0.052001953125, -0.11676025390625, 0.07122802734375, -0.002635955810546875, 0.0258331298828125, -0.026519775390625, 0.0338134765625, -0.0214385986328125, 0.03558349609375, 0.031036376953125, -0.0799560546875, -0.03424072265625, -0.0186767578125, 0.006641387939453125, -0.037322998046875, 0.02618408203125, 0.03302001953125, -0.02294921875, 0.004108428955078125, 0.017608642578125, 0.0256195068359375, -0.03985595703125, 0.060516357421875, -0.04632568359375, -0.044464111328125, 0.016571044921875, 0.034454345703125, 0.000003993511199951172, 0.03558349609375, -0.01134490966796875, 0.0004608631134033203, -0.0008554458618164062, -0.04534912109375, 0.0182647705078125, 0.0109710693359375, 0.031280517578125, 0.00949859619140625, 0.0150146484375, -0.00893402099609375, -0.002895355224609375, -0.0115509033203125, 0.0017910003662109375, 0.006862640380859375, 0.004863739013671875, 0.01302337646484375, -0.0379638671875, 0.00653076171875, 0.007488250732421875, 0.04248046875, -0.060028076171875, 0.0224151611328125, 0.025665283203125, -0.055999755859375, -0.0097198486328125, 0.01248931884765625, -0.0206298828125, -0.00782012939453125, 0.037078857421875, -0.0290069580078125, -0.037994384765625, -0.0036983489990234375, -0.034820556640625, -0.01393890380859375, -0.00560760498046875, -0.04443359375, -0.0261993408203125, -0.035125732421875, -0.01007843017578125, -0.03143310546875, 0.0015935897827148438, -0.008148193359375, -0.0165863037109375, 0.004634857177734375, -0.001148223876953125, -0.0037364959716796875, 0.009429931640625, 0.034027099609375, -0.05108642578125, 0.042022705078125, -0.0119476318359375, 0.0357666015625, 0.0274658203125, -0.037017822265625, -0.00290679931640625, 0.0869140625, 0.0318603515625, 0.0274810791015625, 0.07952880859375, 0.0084686279296875, -0.04931640625, 0.001514434814453125, 0.0546875, 0.0083160400390625, 0.0297393798828125, 0.0191497802734375, 0.0246429443359375, 0.0009698867797851562, -0.0127716064453125, 0.05523681640625, -0.00447845458984375, 0.00930023193359375, -0.0065460205078125, -0.045806884765625, -0.0225982666015625, 0.005512237548828125, -0.00569915771484375, -0.0017833709716796875, 0.01214599609375, 0.0256500244140625, 0.0121612548828125, -0.01319122314453125, -0.01026153564453125, 0.0056304931640625, -0.017852783203125, -0.00824737548828125, 0.018310546875, 0.00494384765625, -0.028045654296875, -0.005580902099609375, -0.0159454345703125, -0.036285400390625, -0.0029926300048828125, 0.001750946044921875, 0.0202178955078125, -0.004398345947265625, -0.0740966796875, 0.0513916015625, -0.08001708984375, 0.0372314453125, -0.00426483154296875, -0.0380859375, -0.043609619140625, -0.0193023681640625, -0.021759033203125, 0.01323699951171875, -0.052398681640625, -0.041839599609375, -0.0302886962890625, 0.007053375244140625, -0.07135009765625, -0.0784912109375, 0.03369140625, -0.0208740234375, 0.004947662353515625, 0.0031490325927734375, 0.00656890869140625, -0.0169830322265625, -0.0035228729248046875, 0.026336669921875, -0.020233154296875, -0.0242462158203125, 0.01560211181640625, -0.03753662109375, -0.010406494140625, 0.0382080078125, -0.001972198486328125, -0.0024547576904296875, -0.0243682861328125, -0.01486968994140625, 0.0293426513671875, -0.0472412109375, 0.016998291015625, -0.01279449462890625, 0.017822265625, 0.048492431640625, -0.0038604736328125, 0.014373779296875, -0.00792694091796875, 0.0203399658203125, 0.03240966796875, -0.0030918121337890625, -0.0254364013671875, 0.01097869873046875, 0.028594970703125, -0.0092010498046875, -0.073486328125, 0.0124969482421875, -0.040863037109375, 0.06463623046875, -0.0087432861328125, -0.00864410400390625, 0.005420684814453125, -0.0171356201171875, 0.0255279541015625, -0.01226806640625, 0.009368896484375, 0.033599853515625, 0.015594482421875, -0.043243408203125, -0.0009274482727050781, -0.02667236328125, -0.018798828125, -0.019927978515625, 0.01180267333984375, -0.01666259765625, -0.02838134765625, 0.030670166015625, -0.041961669921875, 0.0131072998046875, 0.061798095703125, 0.00421142578125, 0.0281829833984375, -0.032745361328125, 0.01250457763671875, -0.00943756103515625, 0.00958251953125, 0.006534576416015625, 0.031280517578125, 0.031524658203125, 0.04400634765625, -0.019989013671875, 0.0137939453125, 0.00902557373046875, -0.0254364013671875, 0.0010623931884765625, 0.040435791015625, 0.03839111328125, 0.0004935264587402344, -0.018951416015625, -0.041412353515625, -0.00033783912658691406, -0.061187744140625, 0.017364501953125, -0.038177490234375, 0.009185791015625, 0.037445068359375, -0.006561279296875, -0.04052734375, -0.0017595291137695312, -0.11248779296875, -0.01262664794921875, 0.0241546630859375, -0.0167388916015625, 0.0020313262939453125, 0.00807952880859375, -0.03271484375, 0.0112152099609375, -0.0082550048828125, -0.013427734375, -0.0089874267578125, -0.00812530517578125, -0.032806396484375, -0.032257080078125, -0.0350341796875, -0.0229339599609375, -0.0141754150390625, 0.036468505859375, -0.0157318115234375, -0.01207733154296875, -0.0030918121337890625, -0.0098114013671875, -0.0165557861328125, -0.027099609375, 0.022979736328125, -0.017730712890625, -0.01476287841796875, 0.00461578369140625, 0.06744384765625, 0.0009655952453613281, -0.0266571044921875, -0.0012502670288085938, -0.0057373046875, -0.040252685546875, -0.04278564453125, 0.00824737548828125, -0.001739501953125, 0.04364013671875, 0.005756378173828125, -0.0253753662109375, 0.0248870849609375, -0.006450653076171875, -0.027435302734375, 0.0198974609375, -0.033935546875, 0.0262603759765625, -0.036895751953125, 0.031951904296875, 0.0438232421875, 0.004070281982421875, -0.0170745849609375, 0.009521484375, 0.0579833984375, 0.032989501953125, -0.011688232421875, -0.0021610260009765625, 0.01473236083984375, -0.059478759765625, -0.054046630859375, 0.01364898681640625, 0.0277252197265625, -0.0233001708984375, -0.050811767578125, -0.032135009765625, -0.012939453125, -0.0987548828125, -0.035400390625, 0.00936126708984375, -0.021240234375, -0.04376220703125, 0.04730224609375, -0.0226593017578125, 0.0068359375, 0.05413818359375, -0.017486572265625, 0.0207061767578125, -0.033843994140625, -0.0212860107421875, -0.040130615234375, -0.042205810546875, 0.00179290771484375, 0.007106781005859375, -0.0031642913818359375, 0.012115478515625, -0.042388916015625, -0.004070281982421875, -0.0237579345703125, 0.029815673828125, 0.06689453125, 0.0029449462890625, 0.00200653076171875, -0.008453369140625, -0.04681396484375, 0.02642822265625, -0.008819580078125, 0.007568359375, 0.005771636962890625, 0.0173492431640625, 0.0111541748046875, 0.004913330078125, 0.0504150390625, 0.035003662109375, -0.047271728515625, -0.005634307861328125, 0.055816650390625, 0.0018720626831054688, -0.01398468017578125, -0.028656005859375, 0.00760650634765625, -0.0341796875, 0.007080078125, 0.0202484130859375, -0.0102081298828125, 0.01241302490234375, 0.004627227783203125, 0.0223236083984375, 0.0258026123046875, 0.033843994140625, 0.024505615234375, -0.0153045654296875, -0.010833740234375, -0.0220794677734375, -0.034027099609375, 0.01904296875, 0.0005598068237304688, 0.0031585693359375, 0.0012311935424804688, 0.034027099609375, -0.01163482666015625, 0.0217132568359375, -0.019073486328125, -0.038818359375, 0.037872314453125, -0.01003265380859375, 0.0298919677734375, -0.008941650390625, -0.044036865234375, 0.00461578369140625, 0.0909423828125, 0.062744140625, -0.031890869140625, -0.014984130859375, 0.001483917236328125, -0.006313323974609375, -0.0130767822265625, 0.01116180419921875, 0.0028972625732421875, 0.01275634765625, -0.001617431640625, -0.01293182373046875, 0.0016489028930664062, -0.032196044921875, 0.039825439453125, -0.012298583984375, 0.00794219970703125, 0.006435394287109375, -0.00496673583984375, -0.006000518798828125, -0.02069091796875, -0.00701904296875, -0.0107421875, 0.01507568359375, -0.04327392578125, -0.036041259765625, -0.0185546875, -0.01056671142578125, 0.03265380859375, 0.0009899139404296875, -0.02294921875, 0.004360198974609375, 0.040191650390625, 0.0304718017578125, 0.02813720703125, 0.028045654296875, 0.0038928985595703125, 0.0284271240234375, 0.01009368896484375, 0.030364990234375, -0.0384521484375, -0.005977630615234375, 0.0156402587890625, -0.0310516357421875, 0.049896240234375, 0.0011615753173828125, -0.0239410400390625, 0.03204345703125, -0.051544189453125, -0.038116455078125, -0.0122222900390625, -0.024169921875, 0.01110076904296875, 0.005908966064453125, -0.0268402099609375, -0.0185394287109375, -0.061309814453125, 0.04949951171875, 0.08001708984375, -0.00601959228515625, -0.0214691162109375, -0.0055389404296875, 0.00919342041015625, -0.07763671875, -0.0129852294921875, 0.027923583984375, 0.05084228515625, 0.0206756591796875, -0.00800323486328125, 0.0256500244140625, -0.056915283203125, 0.020660400390625, 0.036102294921875, 0.0013151168823242188, -0.01456451416015625, 0.02484130859375, 0.0029659271240234375, -0.02117919921875, 0.0115509033203125, 0.006526947021484375, -0.016876220703125, -0.0114593505859375, -0.01654052734375, 0.020751953125, 0.0284881591796875, 0.0137939453125, -0.01175689697265625, 0.0234222412109375, -0.0179443359375, -0.023712158203125, 0.018035888671875, 0.058074951171875, -0.032318115234375, -0.0009183883666992188, 0.01398468017578125, -0.0498046875, -0.0096282958984375, -0.0201568603515625, -0.009918212890625, -0.01416015625, 0.03485107421875, 0.02008056640625, -0.01070404052734375, -0.01038360595703125, -0.04058837890625, -0.003570556640625, 0.04095458984375, 0.0121307373046875, -0.0189208984375, -0.0229339599609375, 0.0020580291748046875, 0.0199737548828125, -0.01058197021484375, 0.0341796875, -0.0214691162109375, -0.0214996337890625, -0.0008554458618164062, 0.04913330078125, 0.07623291015625, -0.05230712890625, -0.0040435791015625, -0.0377197265625, -0.011505126953125, -0.01267242431640625, 0.002696990966796875, 0.052001953125, -0.03607177734375, 0.029266357421875, -0.0174560546875, 0.00826263427734375, -0.040191650390625, 0.0374755859375, 0.027679443359375, -0.021820068359375, 0.0347900390625, -0.020477294921875, 0.0030269622802734375, -0.01058197021484375, 0.0189666748046875, 0.058349609375, 0.042694091796875, -0.00115966796875, -0.027191162109375, -0.0004215240478515625, -0.0305023193359375, -0.00830078125, 0.061065673828125, 0.0239410400390625, -0.0266876220703125, -0.056060791015625, -0.0018815994262695312, 0.0560302734375, -0.007694244384765625, -0.007785797119140625, 0.03863525390625, -0.0311126708984375, 0.031341552734375, 0.00336456298828125, 0.0120086669921875, -0.01708984375, -0.032745361328125, -0.008514404296875, -0.0224151611328125, -0.00849151611328125, -0.0139617919921875, -0.00600433349609375, -0.005405426025390625, -0.005107879638671875, 0.021728515625, -0.00597381591796875, -0.0129852294921875, -0.0219879150390625, 0.006351470947265625, -0.004901885986328125, -0.0105438232421875, 0.07745361328125, 0.0017414093017578125, -0.08428955078125, -0.0272369384765625, -0.032073974609375, 0.0012617111206054688, -0.065673828125, -0.06585693359375, -0.038909912109375, 0.0195465087890625, 0.00896453857421875, 0.050567626953125, -0.009490966796875, 0.0001684427261352539, 0.0107269287109375, -0.0060272216796875, -0.0214691162109375, 0.0858154296875, -0.03802490234375, 0.042572021484375, 0.0145416259765625, -0.02679443359375, -0.014404296875, 0.045196533203125, 0.059783935546875, -0.004638671875, 0.00402069091796875, -0.0006532669067382812, -0.0206146240234375, -0.00992584228515625, 0.033843994140625, -0.021453857421875, -0.0031681060791015625, -0.00324249267578125, 0.041107177734375, -0.0277557373046875, -0.015838623046875, 0.00327301025390625, 0.0438232421875, -0.051422119140625, 0.010345458984375, 0.030792236328125, -0.04638671875, -0.04541015625, 0.01409912109375, 0.0347900390625, 0.019989013671875, -0.00940704345703125, -0.01495361328125, 0.0156707763671875, 0.006465911865234375, -0.036041259765625, 0.0223541259765625, 0.01375579833984375, 0.0195770263671875, 0.026611328125, 0.033660888671875, -0.0054473876953125, 0.021728515625, 0.0099639892578125, 0.01049041748046875, -0.007068634033203125, -0.02642822265625, 0.03765869140625, -0.03399658203125, 0.0123138427734375, 0.040802001953125, 0.09954833984375, 0.1004638671875, -0.08807373046875, -0.00846099853515625, 0.0174713134765625, -0.0616455078125, -0.00782012939453125, 0.00078582763671875, 0.002353668212890625, -0.044677734375, 0.056304931640625, -0.0275421142578125, 0.00550079345703125, 0.0089263916015625, -0.0430908203125, 0.028900146484375, -0.018890380859375, 0.071044921875, 0.00983428955078125, -0.036773681640625, -0.034912109375, 0.0066680908203125, 0.00652313232421875, -0.03363037109375, 0.0105133056640625, -0.019561767578125, -0.01154327392578125, -0.0589599609375, -0.0146942138671875, -0.012664794921875, -0.0004036426544189453, -0.026092529296875, -0.0140228271484375, 0.0250244140625, 0.06451416015625, -0.0222320556640625, -0.0099029541015625, 0.040191650390625, 0.00119781494140625, 0.0199737548828125, 0.006336212158203125, 0.0021152496337890625, 0.00921630859375, 0.000057220458984375, 0.004680633544921875, -0.0213775634765625, -0.0023212432861328125, -0.0236663818359375, -0.034393310546875, 0.0198822021484375, 0.0311126708984375, -0.0413818359375, 0.01904296875, -0.01091766357421875, -0.0179290771484375, -0.001781463623046875, -0.03790283203125, -0.06939697265625, -0.019439697265625, -0.034576416015625, -0.07122802734375, 0.043121337890625, -0.01419830322265625, -0.0947265625, 0.09844970703125, 0.002323150634765625, 0.050750732421875, -0.00943756103515625, 0.036407470703125, 0.003681182861328125, -0.00751495361328125, -0.0325927734375, -0.03924560546875, -0.03704833984375, 0.05419921875, 0.0157012939453125, 0.01458740234375, 0.0269012451171875, 0.0141448974609375, -0.0094451904296875, -0.017364501953125, 0.0005307197570800781, 0.035858154296875, 0.06402587890625, 0.052032470703125, 0.022186279296875, -0.0091552734375, 0.0084075927734375, 0.0310516357421875, 0.01419830322265625, -0.049285888671875, 0.02001953125, -0.057373046875, -0.009765625, 0.0257415771484375, -0.01433563232421875, -0.034515380859375, 0.004390716552734375, 0.00058746337890625, -0.0787353515625, 0.00653076171875, 0.0304107666015625, -0.01183319091796875, -0.0174102783203125, 0.017181396484375, 0.043975830078125, -0.062286376953125, 0.007617950439453125, -0.032806396484375, 0.053497314453125, 0.033111572265625, 0.04608154296875, 0.050201416015625, 0.01033782958984375, 0.06182861328125, 0.0059051513671875, 0.024566650390625, 0.00838470458984375, 0.0169219970703125, 0.0174560546875, 0.0085296630859375, 0.0159912109375, -0.03826904296875, -0.0357666015625, 0.02728271484375, 0.039215087890625, -0.0184326171875, 0.007587432861328125, -0.0086517333984375, -0.01220703125, 0.007236480712890625, -0.04632568359375, -0.01605224609375, -0.0044708251953125, 0.004665374755859375, 0.00905609130859375, -0.0268402099609375, -0.012054443359375, 0.009735107421875, 0.0103759765625, 0.004985809326171875, 0.0236358642578125, -0.01654052734375, -0.09124755859375, 0.042572021484375, 0.01497650146484375, 0.067626953125, 0.0263519287109375, 0.061248779296875, 0.033477783203125, -0.037841796875, 0.01554107666015625, 0.0018320083618164062, -0.0266571044921875, -0.01543426513671875, 0.006988525390625, -0.023681640625, -0.0158233642578125, 0.0086669921875, -0.03729248046875, 0.0129547119140625, 0.053802490234375, 0.037811279296875, -0.08111572265625, -0.0221099853515625, 0.0223388671875, -0.0309600830078125, 0.01419830322265625, 0.00848388671875, -0.0305938720703125, 0.00804901123046875, -0.0296630859375, -0.0243377685546875, 0.0047760009765625, 0.037567138671875, 0.0141143798828125, 0.03125, 0.0069580078125, -0.01171875, 0.0234375, 0.008514404296875, 0.08135986328125, 0.047210693359375, -0.01375579833984375, -0.00827789306640625, -0.01047515869140625, -0.02899169921875, 0.0142364501953125, 0.044769287109375, 0.0159149169921875, -0.01032257080078125, 0.02178955078125, -0.0157012939453125, -0.003215789794921875, -0.004566192626953125, 0.021209716796875, -0.0221710205078125, 0.0058746337890625, 0.0017108917236328125, -0.0265350341796875, -0.00611114501953125, -0.003673553466796875, 0.044708251953125, 0.02337646484375, 0.044281005859375, -0.0003113746643066406, 0.0316162109375, -0.0037403106689453125, -0.0113677978515625, -0.00141143798828125, -0.004421234130859375, 0.043731689453125, 0.01428985595703125, -0.00652313232421875, -0.0252838134765625, -0.0325927734375, 0.0557861328125, 0.004116058349609375, -0.01222991943359375, 0.022857666015625, 0.0063629150390625, -0.002559661865234375, 0.01309967041015625, -0.00708770751953125, -0.0212249755859375, -0.03253173828125, -0.0159149169921875, 0.0030517578125, 0.0186309814453125, 0.0408935546875, 0.0015249252319335938, 0.01064300537109375, -0.02996826171875, -0.0252532958984375, 0.00677490234375, -0.001140594482421875, -0.01213836669921875, 0.0225067138671875, -0.01514434814453125, -0.025177001953125, 0.029815673828125, -0.016998291015625, -0.00958251953125, 0.0186614990234375, 0.045318603515625, 0.01004791259765625, 0.00768280029296875, -0.036285400390625, -0.006969451904296875, 0.0298919677734375, -0.00041365623474121094, 0.02978515625, -0.04803466796875, 0.006435394287109375, 0.045318603515625, 0.041595458984375, -0.00344085693359375, -0.00011420249938964844, -0.01425933837890625, -0.01458740234375, 0.01776123046875, -0.052520751953125, -0.0005078315734863281, -0.01065826416015625, -0.0078582763671875, -0.02392578125, 0.0257720947265625, -0.0251617431640625, -0.02044677734375, -0.0126800537109375, -0.052734375, -0.0250396728515625, 0.01195526123046875, -0.00951385498046875, -0.033966064453125, -0.006542205810546875, -0.056610107421875, -0.0129241943359375, -0.017303466796875, 0.03759765625, 0.0660400390625, -0.0269775390625, 0.000009357929229736328, 0.05487060546875, 0.004352569580078125, 0.10150146484375, -0.033599853515625, 0.00878143310546875, -0.0117950439453125, 0.025421142578125, -0.0460205078125, -0.056243896484375, 0.043731689453125, -0.0660400390625, -0.033477783203125, 0.01201629638671875, 0.0021209716796875, 0.026031494140625, -0.032196044921875, -0.133056640625, 0.05963134765625, -0.0275726318359375, -0.04754638671875, 0.03131103515625, -0.03790283203125, -0.0301055908203125, 0.034759521484375, 0.003509521484375, 0.018463134765625, -0.0160369873046875, 0.003955841064453125, 0.00832366943359375, 0.04595947265625, 0.039947509765625, -0.0225677490234375, -0.030975341796875, -0.0255279541015625, -0.02294921875, 0.0064239501953125, 0.00252532958984375, -0.0098419189453125, 0.0168304443359375, 0.00554656982421875, -0.042816162109375, 0.0020294189453125, 0.00457000732421875, 0.019561767578125, -0.0306549072265625, -0.03643798828125, -0.01788330078125, 0.00537109375, 0.0596923828125, 0.050872802734375, 0.0015916824340820312, -0.03955078125, 0.029754638671875, 0.00860595703125, -0.0002880096435546875, 0.0013799667358398438, 0.004207611083984375, -0.04510498046875, -0.0225982666015625, 0.0125885009765625, -0.003376007080078125, 0.032073974609375, 0.00868988037109375, -0.02752685546875, -0.00008618831634521484, -0.009185791015625, -0.02197265625, -0.056243896484375, -0.016876220703125, 0.07733154296875, -0.053924560546875, 0.0096282958984375, 0.00501251220703125, 0.00959014892578125, 0.03564453125, -0.01302337646484375, -0.004428863525390625, -0.00722503662109375, 0.0548095703125, 0.004146575927734375, 0.03125, -0.00366973876953125, 0.058746337890625, -0.002529144287109375, -0.0196380615234375, 0.03143310546875, -0.0008940696716308594, 0.03704833984375, -0.01299285888671875, 0.05474853515625, 0.04388427734375, 0.026611328125, -0.005767822265625, 0.0833740234375, -0.0227813720703125, 0.0440673828125, -0.0202789306640625, 0.0075225830078125, -0.0166168212890625, 0.015869140625, 0.0161285400390625, -0.0092315673828125, -0.010833740234375, -0.001514434814453125, 0.00539398193359375, -0.05694580078125, -0.01227569580078125, 0.0077972412109375 ]
233486710cafc411848d4e67121d3e977d5c311c
Wordpress Stackexchange Q: What is the purpose of the option name hack_file in the options table? I was looking at the options table in a WordPress install and noticed an option name hack_file. At first I thought the site was compromised and then realized it is a default option http://codex.wordpress.org/Option_Reference . I couldn't find much information regarding it. What is it and its purpose? A: As the codex says, it is legacy with probably no use in any modern version. I have been around wordpress since 2.0.4 and I don't remember it being used or referenced so my guess is that it is a really old legacy thing.
Q: What is the purpose of the option name hack_file in the options table? I was looking at the options table in a WordPress install and noticed an option name hack_file. At first I thought the site was compromised and then realized it is a default option http://codex.wordpress.org/Option_Reference . I couldn't find much information regarding it. What is it and its purpose? A: As the codex says, it is legacy with probably no use in any modern version. I have been around wordpress since 2.0.4 and I don't remember it being used or referenced so my guess is that it is a really old legacy thing.
wordpress
{ "language": "en", "length": 106, "provenance": "stackexchange_00019.jsonl.gz:457825", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/196421" }
[ -0.0236663818359375, -0.0240631103515625, -0.006504058837890625, 0.0248870849609375, -0.04351806640625, -0.0304718017578125, 0.021636962890625, -0.006015777587890625, -0.0252685546875, -0.00020444393157958984, -0.025054931640625, 0.005908966064453125, -0.01153564453125, -0.023345947265625, 0.041259765625, -0.0428466796875, 0.0360107421875, -0.0144195556640625, 0.0213470458984375, 0.0157623291015625, 0.01045989990234375, 0.041290283203125, 0.01180267333984375, -0.051788330078125, 0.00647735595703125, -0.007198333740234375, 0.04913330078125, -0.0501708984375, 0.0297393798828125, -0.009521484375, 0.01007080078125, -0.01218414306640625, 0.007137298583984375, 0.01500701904296875, 0.01593017578125, -0.01125335693359375, 0.06927490234375, -0.01461029052734375, 0.0129241943359375, 0.043548583984375, -0.0006022453308105469, 0.0157012939453125, 0.025604248046875, -0.0196380615234375, -0.036346435546875, -0.006649017333984375, 0.007755279541015625, 0.0107879638671875, 0.013946533203125, -0.0264739990234375, 0.0024318695068359375, 0.0275421142578125, 0.01306915283203125, 0.007843017578125, -0.0276031494140625, -0.017852783203125, -0.012664794921875, 0.05340576171875, 0.01363372802734375, 0.006969451904296875, -0.018402099609375, 0.036163330078125, -0.0011568069458007812, -0.024322509765625, 0.01311492919921875, -0.03228759765625, -0.0252227783203125, 0.0251922607421875, -0.057281494140625, 0.007293701171875, 0.060546875, -0.03857421875, 0.021331787109375, -0.04638671875, -0.0017480850219726562, 0.0285491943359375, -0.033447265625, -0.01995849609375, 0.03631591796875, -0.0308990478515625, -0.034912109375, -0.05352783203125, -0.013763427734375, -0.027313232421875, 0.022674560546875, 0.00989532470703125, -0.003662109375, 0.00868988037109375, -0.006168365478515625, 0.018585205078125, -0.005916595458984375, -0.014190673828125, 0.0233917236328125, 0.0167236328125, -0.006801605224609375, -0.033416748046875, 0.01459503173828125, 0.024444580078125, 0.021636962890625, 0.0176544189453125, 0.040771484375, -0.054290771484375, 0.04168701171875, -0.035003662109375, 0.0184478759765625, 0.076904296875, 0.0139923095703125, -0.0258331298828125, -0.0004734992980957031, -0.02593994140625, -0.0037517547607421875, 0.0215301513671875, 0.0203704833984375, -0.04058837890625, -0.006465911865234375, -0.0153961181640625, -0.02337646484375, 0.02947998046875, 0.0225677490234375, -0.0036067962646484375, -0.02197265625, -0.0254669189453125, 0.0090484619140625, -0.01407623291015625, 0.007022857666015625, -0.0241851806640625, -0.0389404296875, 0.0229644775390625, -0.0200042724609375, 0.038482666015625, -0.00582122802734375, -0.01483154296875, 0.00945281982421875, 0.020904541015625, -0.0170135498046875, -0.0234832763671875, -0.0148468017578125, 0.0183563232421875, 0.0094757080078125, 0.00823974609375, 0.0139007568359375, -0.072509765625, -0.01512908935546875, 0.032501220703125, 0.037017822265625, -0.0089263916015625, 0.004467010498046875, 0.04302978515625, 0.049530029296875, 0.01416015625, 0.0012493133544921875, 0.036041259765625, 0.0084991455078125, 0.0019397735595703125, 0.01143646240234375, 0.006954193115234375, -0.0025634765625, -0.006900787353515625, -0.002498626708984375, 0.0119171142578125, -0.0277557373046875, -0.026275634765625, 0.0301055908203125, -0.02130126953125, -0.0408935546875, 0.045196533203125, -0.0166015625, -0.0119476318359375, 0.024322509765625, -0.003002166748046875, 0.00847625732421875, -0.05010986328125, 0.006500244140625, 0.00989532470703125, -0.0032405853271484375, 0.032684326171875, -0.01111602783203125, 0.015869140625, 0.020782470703125, -0.0168304443359375, 0.005359649658203125, -0.0284271240234375, 0.038787841796875, -0.003253936767578125, -0.04327392578125, 0.0167236328125, 0.00839996337890625, 0.0655517578125, 0.017913818359375, 0.0222930908203125, 0.015380859375, -0.01287078857421875, -0.034637451171875, 0.0220489501953125, 0.020965576171875, 0.006595611572265625, -0.034210205078125, 0.00511932373046875, -0.00019991397857666016, -0.03692626953125, 0.0045623779296875, 0.00363922119140625, -0.03497314453125, -0.0301055908203125, -0.09796142578125, -0.00432586669921875, -0.033905029296875, 0.025360107421875, -0.03515625, -0.02044677734375, 0.00839996337890625, -0.047088623046875, -0.007289886474609375, 0.0238189697265625, -0.03253173828125, 0.0014743804931640625, -0.01678466796875, 0.02081298828125, 0.00403594970703125, 0.02337646484375, -0.0192718505859375, -0.007793426513671875, -0.019622802734375, -0.01300048828125, -0.00493621826171875, 0.01551055908203125, -0.021087646484375, 0.01044464111328125, 0.0205535888671875, 0.0041351318359375, 0.047760009765625, 0.0098114013671875, 0.05584716796875, 0.04632568359375, -0.0280914306640625, -0.027862548828125, -0.039154052734375, -0.09716796875, 0.0117645263671875, 0.077880859375, 0.0301971435546875, 0.03997802734375, -0.00341033935546875, -0.021514892578125, 0.065673828125, -0.042266845703125, 0.002780914306640625, -0.0229644775390625, -0.007373809814453125, 0.01910400390625, 0.01690673828125, -0.002208709716796875, 0.0104217529296875, -0.0474853515625, -0.0167388916015625, 0.024505615234375, -0.054290771484375, -0.037506103515625, 0.03125, 0.00879669189453125, -0.006481170654296875, -0.01019287109375, 0.01517486572265625, -0.0207672119140625, 0.0284271240234375, 0.0010347366333007812, 0.046478271484375, 0.0279541015625, -0.00806427001953125, 0.00505828857421875, -0.00615692138671875, -0.014892578125, -0.003936767578125, 0.0540771484375, 0.058074951171875, -0.0008134841918945312, 0.0305328369140625, -0.053924560546875, -0.0438232421875, 0.018951416015625, -0.01374053955078125, -0.041778564453125, -0.07476806640625, -0.01497650146484375, 0.0411376953125, -0.057891845703125, -0.0174102783203125, 0.00536346435546875, -0.02691650390625, -0.0161590576171875, 0.0011854171752929688, 0.047149658203125, -0.006740570068359375, 0.0205841064453125, 0.0101776123046875, -0.007717132568359375, 0.0015716552734375, -0.00853729248046875, 0.00827789306640625, -0.020904541015625, 0.037811279296875, 0.06060791015625, -0.006587982177734375, -0.0018796920776367188, 0.015716552734375, -0.0171051025390625, 0.02532958984375, 0.01177215576171875, -0.002750396728515625, 0.021148681640625, -0.0732421875, -0.024932861328125, 0.005096435546875, 0.0498046875, -0.0295562744140625, -0.056884765625, -0.0218658447265625, 0.0226593017578125, -0.054718017578125, -0.01044464111328125, -0.03558349609375, -0.072998046875, 0.0261688232421875, -0.035125732421875, -0.0199737548828125, -0.0038204193115234375, -0.0166015625, 0.017578125, 0.0118408203125, -0.0049591064453125, -0.0114898681640625, -0.038665771484375, -0.052337646484375, -0.06011962890625, 0.0005831718444824219, 0.0120391845703125, 0.00980377197265625, 0.03851318359375, 0.007144927978515625, -0.01090240478515625, 0.0265045166015625, -0.045196533203125, -0.007389068603515625, 0.01531982421875, 0.041595458984375, -0.07568359375, -0.002979278564453125, 0.0038509368896484375, 0.0254974365234375, 0.0170440673828125, -0.0087890625, -0.0164947509765625, -0.0142974853515625, 0.002086639404296875, 0.0026302337646484375, 0.034881591796875, 0.0004703998565673828, -0.0084991455078125, -0.005096435546875, -0.05072021484375, 0.0484619140625, 0.029815673828125, 0.0262603759765625, -0.0189666748046875, -0.028167724609375, -0.04327392578125, 0.0131378173828125, -0.025360107421875, 0.0230560302734375, 0.018157958984375, 0.0157470703125, -0.0295562744140625, -0.0027332305908203125, 0.0037288665771484375, 0.0310516357421875, -0.02716064453125, 0.0400390625, -0.034698486328125, 0.048370361328125, 0.03863525390625, -0.00836181640625, 0.0189208984375, -0.01904296875, 0.0253143310546875, -0.04547119140625, 0.0341796875, -0.040283203125, -0.01568603515625, -0.0199737548828125, -0.01531219482421875, 0.006877899169921875, 0.0833740234375, 0.0246429443359375, -0.02056884765625, 0.019866943359375, -0.00722503662109375, -0.03704833984375, 0.028961181640625, -0.028045654296875, 0.006130218505859375, -0.1099853515625, 0.0170745849609375, 0.0230255126953125, -0.031768798828125, -0.0283355712890625, 0.019927978515625, -0.0677490234375, -0.042388916015625, 0.00673675537109375, 0.0035190582275390625, 0.01122283935546875, -0.00792694091796875, 0.01442718505859375, -0.00714874267578125, 0.0082855224609375, -0.03350830078125, -0.02838134765625, -0.017913818359375, 0.0238494873046875, 0.0237579345703125, -0.0067901611328125, -0.01934814453125, -0.0028514862060546875, 0.045989990234375, 0.03173828125, -0.03363037109375, 0.0302734375, -0.04718017578125, 0.0296478271484375, 0.0462646484375, 0.0209503173828125, 0.002918243408203125, 0.0124053955078125, -0.0253753662109375, -0.0714111328125, -0.0261077880859375, -0.0232391357421875, 0.016448974609375, 0.0183258056640625, -0.04290771484375, -0.054840087890625, -0.044281005859375, 0.004535675048828125, 0.00691986083984375, -0.0215301513671875, 0.0115814208984375, -0.052093505859375, -0.026214599609375, 0.03125, -0.040771484375, 0.002162933349609375, 0.019287109375, 0.042724609375, 0.00344085693359375, -0.00762176513671875, -0.045623779296875, -0.0272216796875, 0.0234527587890625, -0.004520416259765625, 0.04071044921875, 0.008941650390625, -0.024627685546875, 0.07537841796875, -0.00807952880859375, -0.00959014892578125, -0.0579833984375, 0.0303955078125, -0.01218414306640625, 0.00786590576171875, -0.01837158203125, -0.0452880859375, 0.0662841796875, 0.036102294921875, -0.0010747909545898438, 0.025543212890625, -0.0020122528076171875, -0.0021724700927734375, -0.0091552734375, -0.0401611328125, -0.0286102294921875, -0.0000622868537902832, -0.02081298828125, -0.0263214111328125, 0.047607421875, 0.003246307373046875, 0.00737762451171875, -0.016571044921875, 0.04791259765625, 0.025787353515625, -0.0003294944763183594, 0.044769287109375, -0.044525146484375, 0.05584716796875, 0.00618743896484375, 0.007114410400390625, -0.023590087890625, -0.013763427734375, 0.050048828125, -0.007526397705078125, -0.083984375, 0.0450439453125, -0.0159759521484375, 0.0231170654296875, 0.026519775390625, 0.0070648193359375, -0.0197296142578125, -0.0313720703125, -0.0233154296875, 0.01009368896484375, 0.018890380859375, -0.01012420654296875, -0.004314422607421875, 0.0233306884765625, 0.031829833984375, -0.01953125, 0.0193023681640625, 0.0255126953125, 0.014373779296875, 0.006282806396484375, -0.0192718505859375, 0.010589599609375, 0.05181884765625, -0.0172882080078125, 0.0182037353515625, 0.01122283935546875, 0.005001068115234375, -0.031829833984375, 0.019805908203125, -0.042022705078125, -0.0055999755859375, 0.01476287841796875, 0.035675048828125, -0.054443359375, -0.03277587890625, 0.04571533203125, -0.0196990966796875, -0.023193359375, 0.0182952880859375, 0.01483154296875, -0.03631591796875, -0.0128326416015625, -0.001861572265625, 0.004779815673828125, -0.004398345947265625, -0.00829315185546875, 0.01456451416015625, -0.02484130859375, -0.005382537841796875, 0.05535888671875, -0.05145263671875, -0.0230865478515625, 0.0020999908447265625, -0.0065765380859375, -0.0051727294921875, -0.021697998046875, 0.0271453857421875, -0.0198211669921875, -0.00609588623046875, -0.026153564453125, 0.03228759765625, 0.00772857666015625, 0.0111846923828125, -0.0030422210693359375, -0.03399658203125, 0.0098876953125, 0.01385498046875, 0.007293701171875, -0.01079559326171875, -0.07421875, 0.017486572265625, -0.00013303756713867188, 0.0028076171875, 0.014495849609375, -0.04364013671875, -0.05731201171875, -0.050018310546875, -0.0249481201171875, 0.0367431640625, 0.0018873214721679688, 0.0220184326171875, 0.0063323974609375, -0.01456451416015625, -0.034881591796875, 0.035888671875, -0.020599365234375, 0.0169219970703125, 0.0222930908203125, -0.01520538330078125, 0.0177154541015625, 0.0465087890625, 0.0295257568359375, -0.031524658203125, 0.01373291015625, 0.0008978843688964844, -0.0195770263671875, -0.00904083251953125, -0.006927490234375, -0.01885986328125, 0.038787841796875, -0.0157318115234375, 0.022735595703125, 0.016326904296875, 0.0298309326171875, -0.01027679443359375, -0.07183837890625, -0.0117034912109375, 0.0181427001953125, -0.0238494873046875, -0.028167724609375, 0.0130462646484375, -0.007045745849609375, -0.00946807861328125, 0.004131317138671875, -0.0478515625, -0.00811767578125, 0.075439453125, -0.05419921875, 0.0794677734375, 0.09869384765625, -0.030670166015625, 0.0238800048828125, 0.03021240234375, -0.02117919921875, 0.00583648681640625, -0.01462554931640625, -0.0129547119140625, -0.0325927734375, 0.0201416015625, -0.003330230712890625, -0.0043487548828125, 0.0233917236328125, -0.02349853515625, 0.05303955078125, 0.05999755859375, 0.10235595703125, -0.064453125, 0.0142822265625, 0.0180206298828125, -0.037689208984375, 0.061981201171875, 0.016265869140625, -0.0264129638671875, -0.051513671875, 0.05126953125, -0.04559326171875, -0.0013275146484375, 0.005725860595703125, -0.01233673095703125, -0.018035888671875, -0.030609130859375, 0.0277862548828125, 0.006412506103515625, -0.0223541259765625, 0.005550384521484375, 0.0054168701171875, -0.0205230712890625, -0.01540374755859375, 0.00815582275390625, -0.0350341796875, -0.01244354248046875, -0.0268707275390625, -0.011138916015625, -0.026336669921875, 0.007068634033203125, -0.053741455078125, -0.00312042236328125, 0.0300750732421875, 0.058258056640625, -0.0308990478515625, 0.005802154541015625, 0.037872314453125, 0.0274200439453125, -0.056488037109375, -0.038330078125, 0.00966644287109375, 0.01202392578125, 0.003887176513671875, 0.044921875, -0.01947021484375, -0.0635986328125, -0.036773681640625, -0.044891357421875, 0.095947265625, -0.021728515625, -0.01343536376953125, 0.0276641845703125, 0.0217132568359375, -0.029693603515625, 0.00868988037109375, -0.06097412109375, -0.0391845703125, -0.0234222412109375, -0.01605224609375, -0.05621337890625, 0.03326416015625, 0.01212310791015625, -0.01474761962890625, 0.10455322265625, -0.0435791015625, -0.005161285400390625, 0.0135040283203125, 0.044769287109375, 0.0005297660827636719, 0.036529541015625, -0.00365447998046875, 0.00616455078125, -0.0027294158935546875, 0.0022335052490234375, -0.040802001953125, -0.01299285888671875, -0.017730712890625, 0.03961181640625, 0.0175628662109375, 0.0086212158203125, -0.00760650634765625, -0.00560760498046875, 0.047454833984375, 0.0238494873046875, 0.00922393798828125, 0.020477294921875, 0.00931549072265625, -0.0133514404296875, 0.0210113525390625, 0.0286407470703125, 0.036895751953125, -0.01419830322265625, -0.01108551025390625, 0.01181793212890625, 0.0207672119140625, 0.0225982666015625, -0.0128326416015625, 0.0210723876953125, -0.05377197265625, 0.0053863525390625, 0.0297393798828125, 0.0474853515625, -0.061981201171875, 0.04010009765625, -0.031280517578125, -0.0148773193359375, 0.0273590087890625, -0.038299560546875, 0.034210205078125, -0.01149749755859375, 0.007556915283203125, 0.06195068359375, 0.0239410400390625, 0.0301513671875, -0.00644683837890625, 0.0137176513671875, 0.021514892578125, -0.00470733642578125, 0.03460693359375, -0.0155487060546875, 0.0038433074951171875, -0.035064697265625, 0.0667724609375, 0.01320648193359375, 0.04583740234375, -0.061553955078125, -0.00021982192993164062, 0.0039043426513671875, 0.0016155242919921875, 0.02166748046875, -0.031494140625, 0.0233001708984375, 0.0017404556274414062, 0.001495361328125, -0.0204620361328125, 0.0015382766723632812, 0.0167388916015625, -0.0211639404296875, 0.0084228515625, 0.0369873046875, -0.0093231201171875, 0.0038433074951171875, -0.001399993896484375, -0.0142364501953125, -0.005878448486328125, 0.0088348388671875, -0.00396728515625, 0.0090179443359375, 0.0107269287109375, -0.000812530517578125, -0.044891357421875, 0.050201416015625, -0.006610870361328125, 0.058135986328125, -0.05194091796875, -0.004833221435546875, -0.0044403076171875, 0.045379638671875, 0.040985107421875, 0.08746337890625, 0.06451416015625, 0.006168365478515625, -0.027313232421875, 0.034912109375, 0.040740966796875, -0.039520263671875, 0.0253753662109375, -0.027862548828125, 0.032806396484375, 0.021942138671875, -0.0007476806640625, -0.03424072265625, 0.03619384765625, 0.0372314453125, -0.010406494140625, 0.037872314453125, 0.00623321533203125, -0.023681640625, 0.018157958984375, 0.00909423828125, 0.0875244140625, 0.032012939453125, -0.0213165283203125, -0.026214599609375, 0.03521728515625, -0.0043792724609375, 0.00042557716369628906, 0.038848876953125, 0.0034046173095703125, -0.00714111328125, -0.04742431640625, 0.00019741058349609375, -0.01776123046875, -0.01300811767578125, 0.0203399658203125, 0.04937744140625, 0.0017232894897460938, 0.0098724365234375, -0.0009369850158691406, 0.01763916015625, -0.039520263671875, 0.01519775390625, 0.038543701171875, 0.09381103515625, -0.027099609375, 0.035064697265625, -0.004970550537109375, -0.0019159317016601562, 0.0245361328125, -0.005504608154296875, 0.01593017578125, 0.060577392578125, 0.022735595703125, -0.044586181640625, -0.0277099609375, 0.01016998291015625, 0.0379638671875, -0.0087127685546875, 0.00678253173828125, 0.00159454345703125, 0.02777099609375, -0.00727081298828125, 0.0194244384765625, -0.0039825439453125, -0.009521484375, 0.03662109375, 0.017791748046875, 0.0168914794921875, 0.018463134765625, 0.0015954971313476562, -0.0147705078125, -0.010101318359375, 0.023101806640625, 0.00620269775390625, 0.0474853515625, -0.008453369140625, -0.0005593299865722656, -0.0372314453125, -0.0018482208251953125, -0.006778717041015625, -0.00586700439453125, 0.0163116455078125, 0.0004494190216064453, 0.01209259033203125, 0.00426483154296875, -0.0215606689453125, -0.0123748779296875, 0.005096435546875, 0.03466796875, 0.0041351318359375, -0.0080413818359375, -0.028717041015625, -0.00952911376953125, 0.026031494140625, -0.0182952880859375, 0.00571441650390625, -0.011383056640625, -0.038543701171875, 0.0052947998046875, -0.012603759765625, -0.01334381103515625, -0.0008382797241210938, -0.00318145751953125, -0.00696563720703125, -0.005161285400390625, -0.042449951171875, 0.0210113525390625, -0.0007452964782714844, 0.0021228790283203125, -0.03985595703125, 0.0399169921875, -0.001800537109375, 0.0232696533203125, -0.047027587890625, -0.0246124267578125, -0.00021517276763916016, 0.0231781005859375, 0.005619049072265625, 0.06866455078125, 0.08544921875, -0.041168212890625, -0.014678955078125, 0.091796875, 0.053009033203125, 0.13330078125, -0.041900634765625, -0.025482177734375, -0.005924224853515625, 0.017364501953125, -0.01351165771484375, -0.07965087890625, 0.0155181884765625, -0.0677490234375, 0.004451751708984375, 0.00856781005859375, -0.0167999267578125, 0.0030307769775390625, -0.059295654296875, -0.112060546875, -0.01690673828125, -0.00814056396484375, -0.06982421875, 0.003192901611328125, -0.03240966796875, -0.031585693359375, 0.05108642578125, 0.01523590087890625, -0.0188751220703125, -0.0106353759765625, 0.039825439453125, -0.004123687744140625, -0.004055023193359375, 0.022674560546875, -0.01241302490234375, -0.0335693359375, 0.007793426513671875, 0.01202392578125, -0.038604736328125, 0.02593994140625, -0.00989532470703125, 0.056121826171875, 0.07098388671875, 0.00856781005859375, 0.032470703125, -0.0070648193359375, -0.0673828125, 0.0238189697265625, 0.03973388671875, -0.046661376953125, 0.01273345947265625, 0.0039005279541015625, 0.096435546875, 0.02166748046875, -0.0179443359375, -0.039764404296875, -0.07159423828125, -0.019439697265625, -0.0261077880859375, 0.007442474365234375, -0.0692138671875, 0.00994873046875, 0.027252197265625, -0.0265350341796875, -0.0242919921875, -0.0007014274597167969, -0.06732177734375, 0.0170745849609375, 0.0025501251220703125, 0.00148773193359375, -0.0325927734375, -0.00022661685943603516, 0.036163330078125, -0.01316070556640625, 0.0308990478515625, -0.0005750656127929688, 0.01149749755859375, 0.045867919921875, 0.0670166015625, 0.01084136962890625, 0.0116424560546875, -0.033782958984375, 0.025909423828125, -0.0008082389831542969, 0.034454345703125, -0.03155517578125, -0.021759033203125, 0.0082550048828125, 0.042510986328125, -0.0125732421875, 0.030670166015625, -0.018585205078125, 0.0882568359375, -0.002544403076171875, 0.05804443359375, -0.00266265869140625, -0.01226043701171875, -0.0286407470703125, 0.038787841796875, -0.022216796875, -0.01318359375, -0.0179595947265625, -0.010498046875, 0.016632080078125, 0.004177093505859375, 0.00024318695068359375, 0.0039825439453125, -0.012359619140625, -0.034332275390625, -0.0171661376953125, -0.00170135498046875 ]
13224fedf46418cdb983f6abbf922388a16321e8
Wordpress Stackexchange Q: How to post data to same page in wordpress I am trying to submit form and get that data in same page when i used the_permalink i am getting page not found. I used this code: <?php /* Template Name:testing */ if(isset($_POST["name"])) { echo $_POST["name"]; } ?> <form action="<?php the_permalink(); ?>" method="POST"> <input type="text" name="name" id="name"> <input type="submit" value="submit"> </form> A: Do not use any action in form. If you keep empty action of form then data will submit on same page if(isset($_POST["name"])) { echo $_POST["name"]; } <form action="" method="POST"> <input type="text" name="names" id="names"> <input type="submit" value="submit" name="submit_btn"> </form>
Q: How to post data to same page in wordpress I am trying to submit form and get that data in same page when i used the_permalink i am getting page not found. I used this code: <?php /* Template Name:testing */ if(isset($_POST["name"])) { echo $_POST["name"]; } ?> <form action="<?php the_permalink(); ?>" method="POST"> <input type="text" name="name" id="name"> <input type="submit" value="submit"> </form> A: Do not use any action in form. If you keep empty action of form then data will submit on same page if(isset($_POST["name"])) { echo $_POST["name"]; } <form action="" method="POST"> <input type="text" name="names" id="names"> <input type="submit" value="submit" name="submit_btn"> </form>
wordpress
{ "language": "en", "length": 100, "provenance": "stackexchange_00019.jsonl.gz:457828", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/196435" }
[ 0.060577392578125, 0.000988006591796875, -0.003948211669921875, 0.008331298828125, 0.01611328125, -0.044281005859375, 0.08538818359375, -0.0299530029296875, 0.0213623046875, -0.00909423828125, -0.0445556640625, 0.01287841796875, -0.0245208740234375, -0.03570556640625, 0.02996826171875, -0.01690673828125, 0.006633758544921875, 0.02154541015625, 0.0265350341796875, -0.0105133056640625, -0.00909423828125, -0.004024505615234375, -0.0048828125, -0.01171875, 0.024871826171875, 0.01105499267578125, 0.01316070556640625, 0.00022709369659423828, -0.01215362548828125, -0.027374267578125, 0.01345062255859375, 0.016082763671875, 0.02008056640625, 0.02227783203125, -0.0237884521484375, 0.00611114501953125, 0.00691986083984375, 0.00689697265625, 0.0081329345703125, 0.035614013671875, 0.044097900390625, -0.0367431640625, 0.02490234375, 0.0220794677734375, 0.01446533203125, -0.04119873046875, 0.054168701171875, -0.054443359375, 0.0053558349609375, 0.030029296875, 0.0011577606201171875, 0.022857666015625, 0.004154205322265625, 0.0264129638671875, -0.0025386810302734375, 0.004039764404296875, 0.005619049072265625, -0.042083740234375, 0.03765869140625, -0.00333404541015625, -0.040252685546875, -0.06146240234375, 0.0268707275390625, -0.023468017578125, -0.0102691650390625, -0.00867462158203125, 0.003162384033203125, 0.01435089111328125, -0.03594970703125, -0.01248931884765625, 0.0283355712890625, -0.01458740234375, 0.0012750625610351562, -0.0005106925964355469, 0.01016998291015625, -0.033172607421875, 0.01458740234375, -0.022491455078125, -0.00400543212890625, 0.036285400390625, -0.0033550262451171875, 0.0025177001953125, -0.049957275390625, -0.0294342041015625, 0.0102691650390625, 0.0132293701171875, -0.01514434814453125, -0.006031036376953125, -0.0228424072265625, -0.051910400390625, -0.0282745361328125, -0.036285400390625, -0.03314208984375, 0.0019464492797851562, -0.031005859375, -0.017059326171875, -0.0016813278198242188, 0.0489501953125, -0.005352020263671875, 0.0275726318359375, -0.01427459716796875, -0.02777099609375, 0.043060302734375, -0.0577392578125, 0.00045943260192871094, 0.036163330078125, 0.03594970703125, -0.0005660057067871094, 0.005954742431640625, -0.031890869140625, -0.022247314453125, 0.032623291015625, -0.01203155517578125, -0.005466461181640625, -0.004383087158203125, 0.01201629638671875, -0.038787841796875, 0.0197296142578125, -0.004199981689453125, 0.0186004638671875, -0.0350341796875, 0.0206298828125, -0.016021728515625, -0.045440673828125, 0.0272216796875, 0.01425933837890625, 0.0213775634765625, -0.03277587890625, 0.01393890380859375, -0.0025005340576171875, -0.0438232421875, 0.0083160400390625, 0.06732177734375, 0.0308380126953125, 0.01556396484375, -0.0149078369140625, -0.00591278076171875, -0.02520751953125, 0.0022258758544921875, 0.043731689453125, -0.042938232421875, -0.038116455078125, 0.03155517578125, -0.0128936767578125, 0.004673004150390625, 0.04412841796875, 0.0283355712890625, -0.0048675537109375, -0.0218048095703125, -0.03125, -0.03887939453125, 0.00396728515625, 0.01971435546875, -0.002140045166015625, -0.005645751953125, 0.00665283203125, 0.00476837158203125, -0.006824493408203125, -0.0018358230590820312, -0.0124359130859375, 0.045684814453125, 0.00696563720703125, 0.052154541015625, -0.0062408447265625, -0.04052734375, -0.0170440673828125, -0.0980224609375, -0.03826904296875, 0.0106658935546875, -0.007476806640625, -0.0247650146484375, 0.00936126708984375, 0.005252838134765625, -0.038299560546875, -0.0256500244140625, -0.0116119384765625, -0.01995849609375, 0.01163482666015625, 0.018585205078125, 0.013336181640625, 0.01128387451171875, -0.00897216796875, 0.04290771484375, 0.0087432861328125, -0.07537841796875, 0.0543212890625, 0.036224365234375, 0.0771484375, -0.043182373046875, 0.01177978515625, 0.09906005859375, 0.06439208984375, -0.0216522216796875, 0.03289794921875, -0.035430908203125, -0.0203704833984375, -0.0075836181640625, 0.02166748046875, -0.0411376953125, 0.01457977294921875, 0.0010347366333007812, 0.00383758544921875, 0.00566864013671875, 0.0103759765625, 0.01163482666015625, 0.004871368408203125, -0.0078125, 0.00879669189453125, -0.0139312744140625, 0.00536346435546875, 0.0360107421875, 0.0176849365234375, -0.04010009765625, -0.0484619140625, -0.0226287841796875, 0.050750732421875, -0.028411865234375, -0.0036907196044921875, -0.0280303955078125, 0.0374755859375, -0.0305023193359375, -0.04278564453125, -0.045501708984375, 0.0008358955383300781, 0.0136566162109375, -0.001377105712890625, -0.0316162109375, -0.0179290771484375, -0.045440673828125, -0.0025691986083984375, -0.06732177734375, 0.05029296875, -0.000044226646423339844, 0.01141357421875, -0.043182373046875, -0.0115509033203125, -0.050537109375, -0.003997802734375, -0.01617431640625, 0.0426025390625, 0.021484375, 0.03399658203125, 0.00632476806640625, 0.05755615234375, 0.0400390625, -0.0367431640625, -0.0005078315734863281, 0.0273895263671875, 0.0103912353515625, 0.032257080078125, 0.0170135498046875, 0.0062713623046875, 0.0205535888671875, -0.0665283203125, 0.018829345703125, 0.0263824462890625, -0.0219879150390625, 0.017669677734375, -0.0214080810546875, 0.004192352294921875, -0.0184326171875, -0.005100250244140625, 0.004894256591796875, -0.0203399658203125, 0.03607177734375, 0.0192108154296875, 0.0367431640625, 0.034912109375, -0.02923583984375, 0.00859832763671875, 0.00821685791015625, -0.024444580078125, -0.0115509033203125, 0.0237274169921875, 0.01593017578125, -0.01380157470703125, -0.0224456787109375, -0.00640869140625, -0.003833770751953125, 0.006008148193359375, -0.018096923828125, 0.01454925537109375, 0.016693115234375, -0.014190673828125, 0.01065826416015625, -0.004940032958984375, 0.013580322265625, -0.0355224609375, 0.05584716796875, 0.00959014892578125, 0.0445556640625, -0.007259368896484375, -0.0280303955078125, 0.05096435546875, 0.006404876708984375, -0.05181884765625, 0.027862548828125, 0.006622314453125, 0.01102447509765625, -0.0284423828125, 0.0274810791015625, 0.03533935546875, -0.02801513671875, 0.016998291015625, -0.00988006591796875, -0.024932861328125, 0.0006036758422851562, -0.01197052001953125, -0.03057861328125, -0.0216522216796875, -0.050262451171875, -0.00028514862060546875, 0.03521728515625, 0.0855712890625, 0.0003285408020019531, -0.049652099609375, 0.0019092559814453125, 0.0433349609375, -0.07391357421875, -0.09429931640625, -0.0183563232421875, -0.0494384765625, 0.034515380859375, -0.00429534912109375, -0.01068115234375, -0.028839111328125, 0.0303192138671875, 0.0180511474609375, 0.03924560546875, -0.0026760101318359375, -0.058502197265625, -0.01395416259765625, -0.06573486328125, -0.0152435302734375, -0.007110595703125, -0.00492095947265625, -0.0028896331787109375, -0.00986480712890625, -0.00763702392578125, -0.03460693359375, -0.000335693359375, 0.031341552734375, -0.007801055908203125, -0.006595611572265625, -0.00392913818359375, -0.038848876953125, 0.0219573974609375, -0.0033893585205078125, 0.052337646484375, 0.0260772705078125, -0.01666259765625, 0.0023593902587890625, -0.0035858154296875, -0.05572509765625, 0.0272674560546875, 0.003997802734375, -0.01416015625, -0.006618499755859375, 0.059295654296875, -0.04345703125, -0.045501708984375, -0.00868988037109375, -0.0660400390625, -0.029632568359375, 0.0194549560546875, 0.0192413330078125, -0.00817108154296875, 0.01438140869140625, 0.0018453598022460938, 0.0030918121337890625, 0.040679931640625, -0.017730712890625, 0.007518768310546875, -0.01324462890625, 0.006137847900390625, -0.026092529296875, -0.006649017333984375, -0.03411865234375, 0.040618896484375, -0.00009632110595703125, -0.00632476806640625, 0.004100799560546875, 0.0128021240234375, -0.00470733642578125, -0.08770751953125, 0.058502197265625, -0.029296875, 0.002826690673828125, -0.05047607421875, -0.035552978515625, 0.006633758544921875, 0.09967041015625, 0.0004715919494628906, -0.027740478515625, -0.0168914794921875, 0.0019044876098632812, -0.03839111328125, -0.0247955322265625, -0.00927734375, -0.00357818603515625, -0.019744873046875, -0.038299560546875, -0.02691650390625, -0.0207672119140625, 0.00487518310546875, -0.0154266357421875, -0.0004570484161376953, -0.023345947265625, 0.018646240234375, -0.0275115966796875, 0.00859832763671875, 0.01123809814453125, -0.01342010498046875, -0.0276336669921875, -0.0201873779296875, -0.0233154296875, -0.034423828125, -0.0005922317504882812, 0.007045745849609375, 0.0172882080078125, 0.002521514892578125, -0.0168609619140625, -0.00494384765625, 0.0180511474609375, 0.0194244384765625, 0.061920166015625, -0.0153961181640625, -0.027862548828125, 0.037933349609375, -0.021728515625, -0.0024280548095703125, -0.0152435302734375, 0.0085296630859375, -0.0130615234375, 0.0031070709228515625, -0.0440673828125, -0.05828857421875, -0.060760498046875, -0.03094482421875, -0.027923583984375, -0.061553955078125, -0.031280517578125, 0.0177154541015625, 0.019195556640625, -0.0185546875, 0.02593994140625, -0.009796142578125, -0.0458984375, 0.037811279296875, -0.0024852752685546875, -0.0016956329345703125, 0.01544952392578125, 0.06903076171875, 0.0011796951293945312, -0.01418304443359375, -0.07958984375, -0.0118408203125, 0.04486083984375, -0.0013360977172851562, -0.006076812744140625, 0.010528564453125, -0.035369873046875, 0.023223876953125, 0.0180816650390625, 0.019500732421875, -0.031646728515625, 0.051055908203125, -0.00974273681640625, -0.002178192138671875, 0.0029315948486328125, -0.00540924072265625, -0.0017766952514648438, 0.03399658203125, -0.018310546875, 0.01142120361328125, -0.02618408203125, -0.0009336471557617188, -0.0014934539794921875, 0.001689910888671875, -0.0220947265625, -0.03485107421875, 0.0005288124084472656, -0.0308074951171875, 0.06243896484375, 0.024688720703125, -0.00807952880859375, 0.036773681640625, 0.014923095703125, -0.0131988525390625, 0.032501220703125, 0.0266876220703125, 0.01168060302734375, 0.003101348876953125, 0.032562255859375, -0.0171661376953125, -0.01172637939453125, -0.0225372314453125, 0.037322998046875, 0.034454345703125, -0.01351165771484375, 0.022979736328125, -0.04296875, 0.0369873046875, -0.01171112060546875, 0.0406494140625, -0.0003147125244140625, 0.0287628173828125, 0.0367431640625, 0.00913238525390625, 0.07293701171875, 0.0203857421875, 0.00312042236328125, -0.00307464599609375, -0.0020503997802734375, 0.00818634033203125, 0.022796630859375, 0.02398681640625, 0.0288848876953125, 0.023651123046875, -0.0274200439453125, 0.0221405029296875, 0.053863525390625, 0.0249481201171875, 0.0338134765625, -0.03497314453125, -0.0230712890625, 0.005069732666015625, -0.0083770751953125, -0.0787353515625, -0.0266876220703125, 0.002361297607421875, 0.07861328125, 0.000965118408203125, -0.022247314453125, 0.033935546875, -0.018585205078125, 0.002826690673828125, -0.0140533447265625, -0.0009713172912597656, -0.0111083984375, -0.0056304931640625, 0.043304443359375, 0.02239990234375, -0.00954437255859375, 0.007598876953125, -0.01213836669921875, -0.0031585693359375, 0.004055023193359375, 0.00365447998046875, 0.0012998580932617188, -0.0032482147216796875, -0.01084136962890625, 0.0732421875, -0.004665374755859375, -0.00931549072265625, -0.033538818359375, 0.0136566162109375, -0.039154052734375, -0.0010290145874023438, 0.060333251953125, -0.018096923828125, 0.058563232421875, -0.056488037109375, -0.00350189208984375, -0.03204345703125, -0.02508544921875, 0.0765380859375, 0.05352783203125, -0.0196533203125, 0.0026760101318359375, -0.01201629638671875, -0.00865936279296875, 0.01593017578125, 0.021392822265625, -0.017059326171875, -0.00884246826171875, -0.01611328125, 0.01885986328125, -0.0225372314453125, -0.0206756591796875, -0.011322021484375, 0.00006639957427978516, 0.00008565187454223633, 0.0089569091796875, 0.01129913330078125, 0.08251953125, -0.054290771484375, 0.057861328125, -0.0078582763671875, 0.03314208984375, -0.0311431884765625, -0.007373809814453125, 0.0175323486328125, -0.03857421875, -0.043426513671875, 0.0006647109985351562, -0.06890869140625, 0.01666259765625, 0.05340576171875, -0.007328033447265625, -0.0306549072265625, -0.006732940673828125, 0.01190948486328125, -0.0311279296875, 0.02740478515625, -0.03338623046875, -0.062103271484375, -0.018707275390625, 0.0118865966796875, -0.0162200927734375, -0.01129150390625, -0.0272369384765625, -0.0005717277526855469, 0.034637451171875, -0.0233154296875, -0.0193023681640625, -0.0081024169921875, 0.0234527587890625, 0.08355712890625, 0.0076904296875, 0.052490234375, 0.0430908203125, 0.010162353515625, 0.035980224609375, 0.054412841796875, -0.025177001953125, -0.0307769775390625, 0.0775146484375, 0.0245819091796875, -0.01076507568359375, 0.0537109375, -0.0221099853515625, 0.0031795501708984375, 0.06329345703125, 0.08526611328125, -0.07781982421875, -0.01044464111328125, 0.01375579833984375, -0.035797119140625, -0.0255126953125, -0.028289794921875, 0.0192718505859375, -0.024627685546875, 0.0170440673828125, 0.03680419921875, -0.0146331787109375, -0.004302978515625, -0.00652313232421875, 0.004100799560546875, -0.0112762451171875, 0.06365966796875, 0.0004048347473144531, -0.046966552734375, -0.0249481201171875, 0.0391845703125, -0.043975830078125, 0.0100555419921875, -0.023529052734375, -0.004032135009765625, -0.045928955078125, -0.04241943359375, -0.047943115234375, -0.049468994140625, -0.00665283203125, -0.0178375244140625, 0.0261993408203125, 0.04876708984375, 0.047515869140625, 0.00951385498046875, -0.02001953125, 0.007110595703125, 0.054779052734375, -0.007549285888671875, -0.033966064453125, -0.01142120361328125, 0.01056671142578125, -0.052520751953125, 0.018402099609375, -0.028900146484375, -0.006591796875, -0.006622314453125, -0.017822265625, 0.08917236328125, -0.043914794921875, -0.021759033203125, 0.006450653076171875, -0.032562255859375, 0.00304412841796875, -0.021759033203125, -0.0238494873046875, -0.041046142578125, 0.016204833984375, -0.02398681640625, -0.0213470458984375, 0.033355712890625, -0.02728271484375, -0.10760498046875, 0.1181640625, 0.042694091796875, 0.04949951171875, -0.001068115234375, 0.05010986328125, -0.042572021484375, 0.00557708740234375, -0.0338134765625, 0.043792724609375, 0.01153564453125, 0.047698974609375, -0.0312042236328125, -0.0004172325134277344, 0.01100921630859375, 0.025390625, 0.07305908203125, 0.007640838623046875, -0.0121002197265625, 0.011871337890625, 0.08343505859375, 0.04052734375, -0.017059326171875, 0.020172119140625, 0.02435302734375, 0.01259613037109375, 0.0755615234375, -0.0167388916015625, 0.0203704833984375, 0.033203125, 0.0202789306640625, 0.0594482421875, -0.009552001953125, -0.019073486328125, -0.006015777587890625, 0.00708770751953125, -0.03460693359375, -0.006175994873046875, 0.0194091796875, 0.00400543212890625, -0.021728515625, 0.052276611328125, 0.0294036865234375, -0.0699462890625, -0.048553466796875, -0.035888671875, 0.037109375, 0.01503753662109375, 0.01023101806640625, 0.04022216796875, 0.01099395751953125, 0.08978271484375, -0.023223876953125, -0.007350921630859375, -0.0035572052001953125, 0.025604248046875, 0.061981201171875, 0.03173828125, 0.0273895263671875, -0.0274810791015625, -0.0169219970703125, 0.04205322265625, 0.08148193359375, -0.0439453125, -0.0017061233520507812, 0.0078582763671875, 0.01529693603515625, 0.00855255126953125, -0.01666259765625, 0.033447265625, 0.007732391357421875, 0.0178375244140625, -0.021575927734375, -0.0244598388671875, -0.00560760498046875, 0.01128387451171875, -0.01386260986328125, -0.00846099853515625, 0.029449462890625, -0.01294708251953125, -0.040924072265625, 0.04205322265625, 0.00868988037109375, 0.052215576171875, 0.0023136138916015625, 0.026611328125, -0.0367431640625, -0.01232147216796875, -0.0031566619873046875, -0.0025348663330078125, -0.0159149169921875, 0.0200958251953125, -0.030792236328125, -0.0062408447265625, 0.011444091796875, 0.0287628173828125, 0.0215301513671875, 0.08319091796875, 0.052093505859375, -0.004932403564453125, 0.01561737060546875, 0.0190887451171875, 0.000011146068572998047, -0.052032470703125, -0.0030040740966796875, -0.0231170654296875, -0.0338134765625, -0.0246429443359375, -0.022430419921875, -0.017303466796875, 0.01910400390625, -0.00893402099609375, -0.00839996337890625, 0.01218414306640625, -0.0038242340087890625, -0.05535888671875, 0.0144500732421875, -0.03192138671875, 0.090087890625, 0.00519561767578125, -0.0167236328125, -0.0177459716796875, -0.0011997222900390625, -0.044586181640625, 0.0180206298828125, 0.049041748046875, 0.0228118896484375, -0.0219573974609375, 0.043853759765625, -0.01000213623046875, 0.0325927734375, 0.0002110004425048828, 0.0146484375, 0.047698974609375, 0.0159149169921875, 0.0287017822265625, -0.042266845703125, -0.0161895751953125, 0.0009517669677734375, 0.0249176025390625, -0.02313232421875, 0.0941162109375, -0.034393310546875, 0.0096435546875, -0.04888916015625, 0.047576904296875, -0.05133056640625, -0.06121826171875, 0.07830810546875, 0.008575439453125, -0.007541656494140625, -0.0009860992431640625, -0.036163330078125, 0.038665771484375, 0.01030731201171875, -0.028594970703125, -0.00467681884765625, 0.01274871826171875, 0.0033664703369140625, 0.021026611328125, 0.01287841796875, -0.0135955810546875, -0.0277557373046875, 0.010894775390625, 0.0162506103515625, 0.0143280029296875, 0.05755615234375, 0.0193939208984375, 0.062286376953125, -0.037506103515625, -0.0035305023193359375, 0.01195526123046875, -0.083740234375, -0.00783538818359375, 0.024810791015625, 0.0009946823120117188, -0.01520538330078125, -0.0185394287109375, -0.0296478271484375, 0.01558685302734375, -0.0215606689453125, 0.0169525146484375, -0.01322174072265625, -0.01369476318359375, -0.0029163360595703125, 0.006439208984375, 0.005542755126953125, -0.0164337158203125, 0.00530242919921875, 0.030029296875, -0.01397705078125, -0.016387939453125, -0.0286407470703125, -0.00441741943359375, -0.032928466796875, -0.00995635986328125, 0.018646240234375, -0.0118255615234375, -0.01763916015625, -0.0211639404296875, 0.00778961181640625, -0.006954193115234375, -0.0308837890625, 0.0168304443359375, -0.020965576171875, -0.053009033203125, 0.02215576171875, -0.049163818359375, -0.003376007080078125, 0.021881103515625, 0.0693359375, -0.0316162109375, 0.0055389404296875, -0.002933502197265625, -0.036651611328125, -0.01409912109375, 0.005802154541015625, 0.0241851806640625, -0.0129241943359375, -0.02410888671875, -0.01369476318359375, -0.0023746490478515625, 0.0244903564453125, 0.0164337158203125, -0.0235137939453125, 0.0121002197265625, 0.00530242919921875, 0.001941680908203125, -0.0252838134765625, -0.0111236572265625, -0.018768310546875, 0.019317626953125, -0.034393310546875, 0.021087646484375, 0.01141357421875, -0.033905029296875, -0.05889892578125, 0.017364501953125, 0.009185791015625, -0.02935791015625, -0.013214111328125, 0.0142822265625, 0.0175323486328125, -0.0277099609375, -0.0212249755859375, -0.02520751953125, -0.019134521484375, 0.0019178390502929688, 0.00014829635620117188, 0.03515625, 0.0060882568359375, 0.0077667236328125, -0.033721923828125, 0.00659942626953125, 0.004970550537109375, 0.0028171539306640625, 0.037841796875, -0.0085296630859375, 0.040069580078125, 0.0313720703125, -0.040740966796875, 0.01473236083984375, -0.0146636962890625, -0.0297088623046875, -0.011810302734375, -0.00809478759765625, -0.0170135498046875, 0.0195770263671875, 0.077392578125, 0.051513671875, 0.023468017578125, -0.050262451171875, 0.0003693103790283203, 0.0178680419921875, -0.0670166015625, -0.0019426345825195312, 0.040374755859375, -0.07000732421875, -0.0016727447509765625, -0.0140380859375, -0.002410888671875, -0.0054779052734375, 0.043304443359375, -0.0116729736328125, -0.02349853515625, 0.023956298828125, -0.0309600830078125, -0.0175323486328125, -0.048431396484375, 0.055908203125, -0.034759521484375, -0.0076904296875, -0.010711669921875, 0.0379638671875, 0.005126953125, -0.010498046875, 0.03851318359375, 0.057647705078125, -0.0460205078125, -0.038818359375, 0.038818359375, 0.004150390625, 0.0011196136474609375, -0.0267181396484375, -0.0193023681640625, 0.0246734619140625, -0.0068359375, -0.000072479248046875, -0.01812744140625, 0.0121307373046875, -0.004364013671875, 0.07958984375, -0.0193939208984375, -0.0014867782592773438, -0.019317626953125, 0.043670654296875, 0.004055023193359375, -0.008148193359375, 0.0614013671875, -0.0594482421875, -0.0025844573974609375, 0.004974365234375, 0.0022735595703125, -0.036865234375, 0.02978515625, -0.036163330078125, 0.021392822265625, 0.018951416015625 ]
8ede5c615394bb6577a92e073060b762781461ed
Wordpress Stackexchange Q: Wordpress Media Uploader events I want to capture the click event on the "Save all changes" button? Is there any callback method like there is when you click (window.send_to_editor) the "Insert into Post" button A: I don't think there is. You will have to use some local (browser-based) Javascript code to attach a function to the on-click event of the button. (Not a Javascript expert, but perhaps this will point you in a direction of investigation.)
Q: Wordpress Media Uploader events I want to capture the click event on the "Save all changes" button? Is there any callback method like there is when you click (window.send_to_editor) the "Insert into Post" button A: I don't think there is. You will have to use some local (browser-based) Javascript code to attach a function to the on-click event of the button. (Not a Javascript expert, but perhaps this will point you in a direction of investigation.) A: You should got a class for that button Try to find it and, if exists, you can fire event i.e using jQuery: jQuery(".button-class").click(...);
wordpress
{ "language": "en", "length": 101, "provenance": "stackexchange_00019.jsonl.gz:457944", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/196881" }
[ 0.00569915771484375, -0.00872802734375, 0.019134521484375, 0.00644683837890625, -0.023101806640625, -0.01496124267578125, 0.0308990478515625, -0.0469970703125, 0.049072265625, 0.0196990966796875, 0.01068878173828125, -0.0048370361328125, 0.03948974609375, -0.050628662109375, 0.00492095947265625, 0.0256195068359375, 0.03765869140625, -0.01629638671875, 0.0567626953125, -0.01148223876953125, 0.004150390625, 0.032867431640625, 0.04718017578125, 0.01174163818359375, -0.0026645660400390625, 0.04541015625, 0.03021240234375, -0.00614166259765625, 0.0012559890747070312, 0.0009899139404296875, 0.014373779296875, -0.031829833984375, 0.015716552734375, 0.043487548828125, -0.0391845703125, 0.033050537109375, -0.0181732177734375, 0.032318115234375, 0.0213470458984375, 0.000518798828125, 0.02679443359375, -0.0110931396484375, -0.0173187255859375, 0.0091552734375, -0.0255279541015625, -0.0280914306640625, 0.04327392578125, -0.021240234375, 0.0070343017578125, -0.016815185546875, 0.0036678314208984375, -0.01499176025390625, 0.0168304443359375, 0.0002949237823486328, -0.01519012451171875, 0.01000213623046875, -0.031219482421875, 0.040679931640625, 0.01177978515625, 0.059295654296875, 0.005462646484375, 0.0238800048828125, -0.021087646484375, -0.05218505859375, -0.03363037109375, 0.0151519775390625, -0.0178985595703125, -0.007350921630859375, -0.0209197998046875, -0.0243377685546875, 0.00799560546875, -0.034271240234375, -0.01256561279296875, 0.0195770263671875, 0.031951904296875, -0.028656005859375, 0.0295867919921875, 0.00815582275390625, -0.00876617431640625, 0.06085205078125, 0.033966064453125, -0.01427459716796875, -0.008819580078125, -0.0236968994140625, 0.025482177734375, -0.01036834716796875, 0.0036468505859375, -0.01812744140625, -0.02777099609375, -0.05133056640625, -0.01364898681640625, -0.0055389404296875, -0.025421142578125, -0.0151824951171875, -0.032745361328125, -0.019989013671875, 0.011688232421875, 0.0294342041015625, -0.01263427734375, -0.0087890625, -0.007610321044921875, -0.01270294189453125, -0.0302734375, -0.0139007568359375, 0.0036067962646484375, 0.0194244384765625, 0.0216217041015625, -0.0182037353515625, 0.0180206298828125, -0.003963470458984375, -0.0243377685546875, 0.0235137939453125, 0.0401611328125, 0.020904541015625, 0.002166748046875, -0.032989501953125, -0.01485443115234375, 0.0799560546875, -0.0162353515625, 0.042694091796875, 0.019622802734375, 0.0159912109375, -0.0118408203125, 0.029144287109375, -0.02044677734375, -0.019622802734375, -0.0100250244140625, -0.01386260986328125, 0.0100860595703125, 0.0029964447021484375, -0.0216064453125, 0.0033931732177734375, 0.05828857421875, 0.043182373046875, 0.0132904052734375, -0.006786346435546875, 0.0235595703125, -0.006938934326171875, 0.006595611572265625, 0.0183868408203125, -0.016387939453125, -0.056732177734375, -0.023681640625, 0.01483154296875, 0.012969970703125, -0.005680084228515625, 0.0164794921875, 0.032562255859375, 0.0048675537109375, -0.032928466796875, 0.02471923828125, 0.0027027130126953125, 0.037628173828125, -0.02154541015625, 0.002689361572265625, -0.07318115234375, -0.0169219970703125, -0.033721923828125, 0.0462646484375, -0.03216552734375, -0.00777435302734375, -0.005573272705078125, 0.03594970703125, -0.006439208984375, -0.00933837890625, -0.0005865097045898438, -0.03936767578125, -0.002368927001953125, 0.032440185546875, 0.048004150390625, 0.003841400146484375, 0.0169830322265625, 0.040863037109375, 0.0360107421875, -0.0020732879638671875, 0.01189422607421875, 0.02069091796875, -0.00917816162109375, 0.0013952255249023438, 0.033538818359375, 0.005298614501953125, -0.01332855224609375, 0.030487060546875, -0.00794219970703125, -0.01190948486328125, 0.042877197265625, -0.00531768798828125, 0.024688720703125, -0.001922607421875, 0.0144195556640625, -0.00209808349609375, 0.04547119140625, 0.007091522216796875, -0.01031494140625, -0.00638580322265625, 0.0021953582763671875, -0.048431396484375, 0.018585205078125, -0.0277557373046875, -0.0007944107055664062, 0.002193450927734375, 0.03570556640625, -0.05010986328125, 0.034271240234375, -0.0219879150390625, 0.0007328987121582031, 0.00420379638671875, 0.010406494140625, 0.030670166015625, 0.0187530517578125, -0.001003265380859375, 0.0169830322265625, 0.0202484130859375, -0.07708740234375, -0.038726806640625, 0.01654052734375, -0.0355224609375, 0.034332275390625, -0.0144805908203125, 0.051849365234375, -0.07867431640625, 0.00672149658203125, -0.05047607421875, -0.01214599609375, -0.01318359375, -0.00772857666015625, -0.013427734375, -0.0007987022399902344, 0.00093841552734375, 0.0112457275390625, 0.01331329345703125, 0.0124359130859375, 0.01042938232421875, -0.005420684814453125, -0.037139892578125, -0.007579803466796875, -0.038848876953125, -0.09625244140625, 0.01421356201171875, 0.07135009765625, 0.01885986328125, -0.0003521442413330078, 0.0299530029296875, 0.09906005859375, 0.0218048095703125, 0.032562255859375, 0.0347900390625, 0.0151519775390625, -0.00505828857421875, 0.05902099609375, -0.003314971923828125, 0.0255889892578125, 0.0089263916015625, -0.0819091796875, 0.01629638671875, 0.047698974609375, -0.00560760498046875, 0.0285491943359375, -0.0341796875, 0.00974273681640625, -0.01132965087890625, -0.053985595703125, -0.0059967041015625, -0.044708251953125, -0.0009202957153320312, 0.0193023681640625, 0.0267333984375, 0.0231475830078125, -0.01023101806640625, 0.0024509429931640625, 0.0108642578125, -0.022857666015625, 0.003635406494140625, 0.0767822265625, 0.05584716796875, 0.059722900390625, -0.0252685546875, -0.050445556640625, 0.0090484619140625, 0.07666015625, -0.017303466796875, 0.042938232421875, -0.0372314453125, -0.038543701171875, 0.006160736083984375, -0.042327880859375, -0.03265380859375, -0.060516357421875, 0.00547027587890625, -0.01503753662109375, 0.01506805419921875, 0.00504302978515625, -0.01453399658203125, 0.0186309814453125, 0.006084442138671875, -0.0474853515625, 0.007205963134765625, 0.0067596435546875, 0.0016193389892578125, 0.019134521484375, 0.049346923828125, 0.060272216796875, -0.006439208984375, 0.034332275390625, -0.0006232261657714844, -0.05712890625, -0.0064544677734375, 0.0114593505859375, -0.0049896240234375, -0.0012416839599609375, -0.0806884765625, -0.0014085769653320312, 0.005054473876953125, 0.0297393798828125, -0.042449951171875, -0.060028076171875, -0.049468994140625, -0.0066680908203125, -0.08197021484375, -0.05596923828125, -0.0101470947265625, -0.11083984375, 0.00629425048828125, -0.039093017578125, -0.066162109375, 0.005901336669921875, 0.0167388916015625, 0.0224609375, -0.059783935546875, 0.030853271484375, 0.044036865234375, 0.006328582763671875, 0.033416748046875, 0.0300445556640625, -0.0001704692840576172, 0.0001747608184814453, 0.006664276123046875, 0.039764404296875, 0.0016031265258789062, -0.020477294921875, 0.0032100677490234375, -0.0135650634765625, -0.00014543533325195312, 0.0003933906555175781, -0.004375457763671875, 0.009765625, 0.01409149169921875, 0.0034351348876953125, -0.038116455078125, 0.024749755859375, -0.0069732666015625, -0.0185546875, -0.006107330322265625, -0.045867919921875, -0.006038665771484375, 0.08563232421875, 0.0192718505859375, 0.0017671585083007812, 0.0721435546875, -0.040863037109375, 0.0277252197265625, 0.00543212890625, -0.0133056640625, -0.03912353515625, -0.00310516357421875, -0.02679443359375, 0.0115509033203125, -0.0243072509765625, 0.0565185546875, 0.0491943359375, -0.007778167724609375, 0.039398193359375, 0.0016002655029296875, 0.006168365478515625, 0.02874755859375, -0.0192413330078125, 0.00977325439453125, -0.006710052490234375, 0.01800537109375, -0.0024585723876953125, 0.026336669921875, -0.0010118484497070312, 0.037109375, -0.028350830078125, -0.04168701171875, 0.0178070068359375, -0.02862548828125, 0.0322265625, -0.045013427734375, -0.0102081298828125, -0.0279388427734375, 0.06561279296875, -0.0175628662109375, -0.01187896728515625, -0.0221099853515625, -0.0016384124755859375, 0.00693511962890625, -0.020050048828125, -0.0203399658203125, -0.0006756782531738281, 0.0263824462890625, 0.01971435546875, 0.001373291015625, 0.00975799560546875, -0.02093505859375, 0.014434814453125, 0.02313232421875, -0.004547119140625, 0.043792724609375, -0.027923583984375, 0.00818634033203125, 0.005107879638671875, 0.024169921875, -0.048675537109375, 0.0008668899536132812, -0.0175628662109375, -0.10906982421875, -0.0113983154296875, -0.028961181640625, 0.060516357421875, -0.01114654541015625, 0.042083740234375, -0.0260009765625, 0.0452880859375, 0.0138702392578125, 0.02313232421875, 0.02349853515625, 0.0096893310546875, 0.01367950439453125, -0.0302734375, 0.01067352294921875, -0.047332763671875, 0.0010538101196289062, -0.0222015380859375, -0.0309600830078125, 0.02215576171875, -0.0364990234375, -0.0037479400634765625, -0.0147705078125, -0.0186309814453125, -0.0341796875, -0.030792236328125, -0.0304718017578125, -0.01250457763671875, -0.01282501220703125, -0.0032215118408203125, -0.034149169921875, -0.046173095703125, -0.0280303955078125, -0.0291290283203125, -0.01226806640625, 0.0250091552734375, 0.0141448974609375, 0.033355712890625, 0.00881195068359375, 0.006214141845703125, 0.0107421875, 0.0164642333984375, 0.008697509765625, 0.0191650390625, -0.0103302001953125, -0.00981903076171875, 0.039520263671875, -0.0166168212890625, 0.042236328125, -0.068115234375, 0.08209228515625, 0.0168609619140625, 0.0200653076171875, 0.017181396484375, 0.0085906982421875, -0.00876617431640625, 0.01129913330078125, -0.04522705078125, -0.0021381378173828125, -0.0233001708984375, 0.03765869140625, -0.05633544921875, 0.06744384765625, -0.0267486572265625, -0.03448486328125, 0.01007843017578125, -0.0513916015625, 0.09375, 0.01678466796875, -0.00010114908218383789, 0.049652099609375, 0.051483154296875, 0.00414276123046875, -0.01617431640625, -0.0092926025390625, -0.0198211669921875, 0.03778076171875, -0.006229400634765625, 0.01071929931640625, -0.0187530517578125, 0.005702972412109375, -0.061126708984375, 0.01009368896484375, -0.0447998046875, -0.006603240966796875, 0.00179290771484375, -0.00372314453125, -0.007965087890625, 0.002696990966796875, 0.023345947265625, 0.042236328125, 0.01045989990234375, 0.004978179931640625, -0.01129913330078125, 0.0450439453125, -0.022308349609375, 0.0283203125, 0.0008435249328613281, -0.0180816650390625, 0.0227508544921875, -0.015380859375, -0.01334381103515625, -0.02178955078125, 0.001239776611328125, 0.05859375, 0.0477294921875, 0.018585205078125, 0.034698486328125, -0.0276031494140625, 0.004726409912109375, -0.01776123046875, -0.0343017578125, -0.018951416015625, 0.0201568603515625, 0.0118560791015625, 0.01110076904296875, 0.03668212890625, 0.008697509765625, 0.007354736328125, -0.0236663818359375, -0.0298919677734375, -0.0033397674560546875, 0.004276275634765625, -0.0210418701171875, 0.0158843994140625, 0.02532958984375, -0.0281219482421875, 0.0136871337890625, 0.0290985107421875, -0.00670623779296875, 0.02490234375, -0.01329803466796875, -0.0292816162109375, -0.031829833984375, -0.01371002197265625, 0.0030422210693359375, -0.005840301513671875, -0.034820556640625, -0.0155487060546875, -0.0213165283203125, 0.00811004638671875, -0.0226898193359375, -0.0129547119140625, 0.06866455078125, -0.0211944580078125, 0.004070281982421875, -0.0104522705078125, 0.01096343994140625, -0.044525146484375, 0.0201263427734375, 0.0171356201171875, 0.00437164306640625, 0.0760498046875, -0.042755126953125, -0.049774169921875, -0.047821044921875, -0.028717041015625, -0.0017042160034179688, -0.004795074462890625, -0.0118255615234375, -0.010894775390625, 0.01300811767578125, 0.00007170438766479492, -0.0009522438049316406, 0.019744873046875, 0.034088134765625, -0.00007939338684082031, 0.03436279296875, 0.0196685791015625, 0.043365478515625, 0.00476837158203125, 0.041656494140625, 0.01390838623046875, -0.01233673095703125, -0.0599365234375, -0.0186004638671875, 0.0037059783935546875, -0.02838134765625, 0.0048675537109375, -0.0171661376953125, -0.0040130615234375, -0.005558013916015625, 0.00852203369140625, 0.002155303955078125, 0.00263214111328125, -0.017669677734375, 0.0060882568359375, -0.017669677734375, 0.031494140625, -0.0234375, -0.05364990234375, 0.053070068359375, -0.045135498046875, -0.019012451171875, 0.001987457275390625, 0.036041259765625, 0.0221710205078125, -0.037628173828125, 0.0008373260498046875, 0.0108795166015625, 0.014617919921875, -0.032073974609375, 0.00292205810546875, -0.0004374980926513672, 0.034881591796875, -0.001155853271484375, 0.0220184326171875, 0.045135498046875, 0.0284881591796875, -0.01364898681640625, -0.046539306640625, 0.04339599609375, 0.00937652587890625, -0.0160675048828125, 0.0389404296875, -0.026458740234375, 0.044219970703125, 0.0212249755859375, 0.0804443359375, -0.04034423828125, 0.017486572265625, 0.0187835693359375, -0.048309326171875, -0.0020751953125, -0.007450103759765625, -0.00371551513671875, -0.018829345703125, 0.018463134765625, -0.0015096664428710938, -0.030853271484375, -0.0063629150390625, -0.0014657974243164062, 0.0240020751953125, 0.01293182373046875, 0.00576019287109375, -0.0145721435546875, -0.0445556640625, -0.01251983642578125, 0.026214599609375, 0.0216064453125, -0.0196990966796875, 0.04058837890625, -0.0203399658203125, 0.0040130615234375, -0.027801513671875, 0.0207061767578125, 0.0007395744323730469, -0.00592803955078125, -0.039276123046875, 0.0023593902587890625, 0.049530029296875, 0.0238189697265625, -0.0138397216796875, -0.0024623870849609375, 0.0027065277099609375, 0.047149658203125, -0.03729248046875, -0.0008983612060546875, 0.045806884765625, 0.004070281982421875, -0.020172119140625, 0.01268768310546875, -0.034149169921875, -0.025909423828125, 0.01611328125, 0.0465087890625, 0.057708740234375, -0.06146240234375, -0.01482391357421875, 0.044921875, -0.01197052001953125, -0.0159454345703125, -0.025299072265625, -0.039581298828125, -0.06036376953125, 0.00409698486328125, -0.03948974609375, -0.018280029296875, 0.0225982666015625, -0.031890869140625, -0.06292724609375, 0.15185546875, -0.01184844970703125, 0.0303955078125, 0.03173828125, 0.05157470703125, -0.0601806640625, 0.02569580078125, -0.0557861328125, 0.06744384765625, 0.0156707763671875, 0.01091766357421875, -0.0687255859375, -0.006084442138671875, -0.0294342041015625, 0.0050811767578125, 0.05279541015625, -0.0011949539184570312, 0.0016613006591796875, 0.0011491775512695312, 0.06378173828125, 0.060821533203125, 0.0169830322265625, 0.0067291259765625, 0.036834716796875, -0.0060577392578125, 0.043182373046875, 0.0084686279296875, 0.037384033203125, -0.01561737060546875, 0.0197296142578125, 0.04156494140625, -0.00768280029296875, -0.007221221923828125, 0.01270294189453125, -0.0247955322265625, 0.0416259765625, -0.01534271240234375, -0.0389404296875, 0.0006356239318847656, 0.0161590576171875, 0.03955078125, 0.02630615234375, -0.0045013427734375, 0.0030918121337890625, -0.035003662109375, 0.03863525390625, -0.0007367134094238281, -0.03082275390625, -0.0335693359375, -0.017303466796875, -0.0090484619140625, -0.0127716064453125, -0.060791015625, 0.027740478515625, 0.0165557861328125, 0.04302978515625, 0.000370025634765625, 0.0224761962890625, -0.059539794921875, -0.0189361572265625, 0.0269317626953125, 0.055419921875, -0.0280303955078125, -0.0265045166015625, 0.0251922607421875, 0.01629638671875, -0.0213623046875, -0.00884246826171875, 0.01082611083984375, -0.0657958984375, 0.004825592041015625, 0.01480865478515625, -0.0207366943359375, -0.0031299591064453125, 0.0157623291015625, 0.01215362548828125, 0.049285888671875, 0.003963470458984375, -0.0157318115234375, -0.0040283203125, -0.0299072265625, -0.0253448486328125, 0.0039215087890625, 0.045440673828125, 0.0174102783203125, 0.016510009765625, -0.006389617919921875, -0.0242462158203125, 0.0143280029296875, 0.01446533203125, 0.03436279296875, -0.0240631103515625, 0.002414703369140625, 0.04248046875, 0.024627685546875, 0.03424072265625, 0.06671142578125, 0.0885009765625, 0.054656982421875, -0.0235748291015625, 0.020721435546875, 0.03790283203125, -0.034088134765625, -0.004909515380859375, -0.0228424072265625, 0.01392364501953125, 0.029998779296875, -0.003032684326171875, -0.0197906494140625, 0.00042891502380371094, 0.0821533203125, -0.0243988037109375, 0.04180908203125, -0.01113128662109375, -0.01212310791015625, 0.03314208984375, -0.028900146484375, 0.06707763671875, -0.007175445556640625, -0.0386962890625, 0.01197052001953125, -0.0050506591796875, -0.03631591796875, 0.00794219970703125, 0.02587890625, -0.06683349609375, 0.07379150390625, -0.0306243896484375, -0.0019931793212890625, 0.033233642578125, -0.031951904296875, -0.003509521484375, 0.05615234375, 0.017578125, 0.00026917457580566406, -0.042144775390625, 0.00995635986328125, 0.0267791748046875, -0.031829833984375, -0.02685546875, 0.10369873046875, -0.0118408203125, -0.0282440185546875, 0.045196533203125, -0.0026035308837890625, 0.00812530517578125, 0.0278472900390625, 0.004299163818359375, -0.01194000244140625, 0.0191650390625, -0.0177154541015625, -0.00830078125, 0.040313720703125, -0.005420684814453125, -0.004138946533203125, 0.0201568603515625, -0.0345458984375, 0.0113677978515625, 0.026947021484375, 0.0167083740234375, -0.0098419189453125, 0.0014944076538085938, -0.005794525146484375, -0.0089874267578125, 0.02825927734375, 0.01654052734375, -0.00968170166015625, 0.019500732421875, -0.0013408660888671875, -0.00434112548828125, -0.00817108154296875, 0.005725860595703125, -0.015716552734375, 0.01812744140625, 0.003421783447265625, 0.03192138671875, 0.01154327392578125, -0.0128936767578125, 0.0120391845703125, 0.02410888671875, -0.0285186767578125, 0.0150146484375, -0.049072265625, -0.023956298828125, 0.00904083251953125, 0.023590087890625, -0.01036834716796875, -0.0048675537109375, 0.0005068778991699219, -0.01554107666015625, -0.0205230712890625, -0.0384521484375, -0.019256591796875, -0.03289794921875, -0.0039043426513671875, 0.0244293212890625, -0.016143798828125, -0.006900787353515625, -0.0180511474609375, -0.02252197265625, 0.0291748046875, -0.0071868896484375, -0.036224365234375, 0.0025768280029296875, -0.0302886962890625, 0.0345458984375, -0.02020263671875, 0.0194244384765625, 0.002872467041015625, 0.076171875, -0.0265045166015625, -0.0762939453125, -0.0023403167724609375, 0.060455322265625, -0.04522705078125, 0.019012451171875, 0.0046844482421875, -0.037628173828125, -0.014404296875, 0.050750732421875, 0.060760498046875, 0.08819580078125, 0.07000732421875, -0.0289459228515625, -0.0233001708984375, 0.0169830322265625, 0.02423095703125, 0.01197052001953125, 0.001041412353515625, 0.02691650390625, -0.028564453125, -0.0301666259765625, 0.00830841064453125, 0.022186279296875, -0.037109375, -0.0977783203125, 0.0236663818359375, -0.0172271728515625, -0.041412353515625, -0.06329345703125, 0.05914306640625, 0.0252838134765625, -0.0396728515625, -0.04217529296875, 0.0247039794921875, -0.0141754150390625, -0.009429931640625, 0.0004687309265136719, -0.03643798828125, 0.05230712890625, -0.0247039794921875, -0.07244873046875, -0.01413726806640625, -0.01531219482421875, -0.0035877227783203125, 0.03955078125, -0.029052734375, 0.033782958984375, 0.01959228515625, -0.047576904296875, -0.0301361083984375, -0.033447265625, 0.0031490325927734375, -0.04473876953125, -0.01425933837890625, 0.002414703369140625, 0.0233917236328125, 0.07769775390625, 0.072998046875, 0.006572723388671875, -0.057098388671875, 0.01654052734375, 0.000274658203125, -0.046661376953125, -0.00905609130859375, 0.01049041748046875, -0.004611968994140625, 0.003719329833984375, -0.048858642578125, 0.0013179779052734375, -0.0263519287109375, 0.0272369384765625, -0.01003265380859375, -0.02227783203125, 0.035491943359375, -0.0183563232421875, -0.0125579833984375, -0.00750732421875, 0.079345703125, -0.05615234375, -0.00777435302734375, 0.032806396484375, 0.016754150390625, 0.036102294921875, 0.0297393798828125, 0.023223876953125, 0.0218505859375, -0.0419921875, 0.01047515869140625, 0.01032257080078125, 0.00316619873046875, -0.0531005859375, -0.022003173828125, -0.0001558065414428711, 0.014068603515625, -0.0106658935546875, 0.03460693359375, 0.029510498046875, -0.01253509521484375, -0.025787353515625, 0.052520751953125, -0.0204620361328125, -0.03564453125, -0.0246124267578125, 0.015899658203125, -0.020294189453125, 0.00363922119140625, 0.0214080810546875, -0.0260467529296875, -0.01369476318359375, 0.0171966552734375, -0.060028076171875, -0.0782470703125, 0.02288818359375, 0.0386962890625, -0.006420135498046875, 0.0242919921875 ]
642ce077855e683bbc09c8f0365bad98a89a94bd
Wordpress Stackexchange Q: How do I add a search bar to my header? I need to add a functioning search bar to my header. I have read through the forums but am unsure what code I need to put where. For instance, where do I put the css code versus where do I put the html code. Any direction would be much appreciated. A: Just add to your theme this code: <?php get_search_form(); ?> This code will echoing search form so place it everywhere where you want to have the search form. Further you need to have search.php file in your theme which will show the search results. You can use ordinary WP loop in the file.
Q: How do I add a search bar to my header? I need to add a functioning search bar to my header. I have read through the forums but am unsure what code I need to put where. For instance, where do I put the css code versus where do I put the html code. Any direction would be much appreciated. A: Just add to your theme this code: <?php get_search_form(); ?> This code will echoing search form so place it everywhere where you want to have the search form. Further you need to have search.php file in your theme which will show the search results. You can use ordinary WP loop in the file.
wordpress
{ "language": "en", "length": 115, "provenance": "stackexchange_00019.jsonl.gz:457946", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/196885" }
[ 0.0633544921875, 0.00475311279296875, 0.021331787109375, 0.0181121826171875, 0.0118408203125, -0.032440185546875, 0.07177734375, -0.049407958984375, 0.01312255859375, 0.0267181396484375, -0.05010986328125, 0.01177978515625, -0.032440185546875, 0.0020294189453125, -0.033721923828125, -0.0377197265625, 0.02252197265625, -0.038116455078125, 0.002536773681640625, -0.02728271484375, 0.0105133056640625, -0.0265350341796875, 0.030792236328125, 0.0316162109375, 0.01605224609375, -0.06439208984375, 0.078857421875, -0.0068511962890625, 0.0295562744140625, -0.010833740234375, 0.02374267578125, 0.0004591941833496094, 0.0108642578125, -0.0017900466918945312, 0.04034423828125, 0.09881591796875, 0.008514404296875, 0.0224609375, 0.0408935546875, 0.003696441650390625, 0.02886962890625, -0.0090484619140625, -0.00437164306640625, 0.0223236083984375, -0.006969451904296875, -0.072265625, 0.059600830078125, -0.042144775390625, -0.005695343017578125, -0.050140380859375, -0.0076904296875, 0.0186767578125, 0.015380859375, -0.07525634765625, -0.01163482666015625, -0.0013580322265625, 0.0193634033203125, -0.03265380859375, 0.041046142578125, -0.028900146484375, -0.029815673828125, -0.0260772705078125, 0.0298614501953125, 0.003177642822265625, -0.024200439453125, 0.013641357421875, -0.01238250732421875, -0.0074615478515625, -0.0265350341796875, -0.03460693359375, 0.01910400390625, -0.03558349609375, 0.0205230712890625, 0.00827789306640625, 0.01473236083984375, -0.10107421875, 0.0208282470703125, -0.036956787109375, 0.00811004638671875, 0.041290283203125, 0.0192413330078125, 0.02294921875, -0.0176849365234375, -0.053131103515625, 0.0118865966796875, -0.04962158203125, -0.0036373138427734375, -0.006824493408203125, -0.03375244140625, -0.043975830078125, -0.017669677734375, -0.043060302734375, -0.039703369140625, -0.0179443359375, -0.01483154296875, -0.04266357421875, -0.0124969482421875, 0.006107330322265625, 0.0278778076171875, 0.04241943359375, -0.0084686279296875, -0.034332275390625, 0.05609130859375, -0.0390625, -0.01450347900390625, 0.00801849365234375, -0.02923583984375, -0.003261566162109375, 0.030059814453125, 0.047637939453125, -0.0032863616943359375, -0.0157318115234375, -0.006000518798828125, -0.0227508544921875, -0.038787841796875, 0.045623779296875, 0.006160736083984375, -0.01406097412109375, 0.0162200927734375, 0.0302886962890625, 0.026031494140625, 0.0399169921875, 0.00860595703125, -0.006443023681640625, -0.052947998046875, -0.03155517578125, -0.01104736328125, -0.036529541015625, 0.0310211181640625, -0.0445556640625, -0.01221466064453125, 0.05767822265625, 0.0268707275390625, 0.00022935867309570312, -0.0227813720703125, 0.01477813720703125, -0.005016326904296875, -0.019989013671875, -0.00008696317672729492, -0.0132904052734375, 0.0213165283203125, -0.019622802734375, 0.0086517333984375, 0.00760650634765625, 0.0369873046875, -0.03387451171875, 0.0323486328125, 0.061981201171875, 0.006679534912109375, -0.0107879638671875, 0.032684326171875, 0.0587158203125, 0.0255889892578125, 0.00812530517578125, -0.0640869140625, 0.01245880126953125, -0.02679443359375, -0.0025806427001953125, -0.0268096923828125, -0.00925445556640625, -0.0280914306640625, 0.002552032470703125, 0.042999267578125, -0.0216827392578125, -0.0143890380859375, -0.028472900390625, -0.01287078857421875, 0.0011749267578125, 0.01145172119140625, -0.036956787109375, -0.019989013671875, -0.00931549072265625, 0.03973388671875, -0.0112762451171875, -0.01416015625, 0.02081298828125, 0.048614501953125, 0.0030994415283203125, 0.0129547119140625, 0.06103515625, 0.0092010498046875, -0.020233154296875, 0.08251953125, -0.051239013671875, -0.060028076171875, 0.09466552734375, 0.005321502685546875, 0.087890625, -0.0300140380859375, 0.01367950439453125, 0.01294708251953125, 0.054443359375, -0.0206146240234375, -0.03369140625, -0.017333984375, 0.01107025146484375, -0.00725555419921875, 0.0036869049072265625, -0.0189208984375, 0.044189453125, -0.0269317626953125, -0.005290985107421875, 0.020751953125, 0.0074615478515625, 0.000606536865234375, 0.010528564453125, -0.004932403564453125, 0.025909423828125, 0.0252227783203125, -0.0011892318725585938, -0.0073089599609375, -0.0288238525390625, 0.018585205078125, -0.049560546875, -0.0418701171875, 0.014923095703125, -0.0210113525390625, 0.043548583984375, 0.021728515625, 0.025970458984375, 0.0127716064453125, -0.0191192626953125, 0.02642822265625, -0.0220794677734375, 0.056060791015625, -0.002864837646484375, -0.027313232421875, -0.0283660888671875, 0.0289764404296875, 0.0037689208984375, -0.058258056640625, 0.038665771484375, 0.0562744140625, 0.0484619140625, -0.0191497802734375, -0.003631591796875, 0.0009937286376953125, -0.02764892578125, -0.00848388671875, 0.03826904296875, 0.0303955078125, 0.024017333984375, 0.00628662109375, 0.0277862548828125, 0.060211181640625, -0.0193634033203125, 0.0084381103515625, 0.0196685791015625, 0.007755279541015625, 0.0251007080078125, 0.03326416015625, -0.03936767578125, 0.0018558502197265625, -0.0595703125, 0.0025348663330078125, -0.003269195556640625, -0.009490966796875, 0.0029048919677734375, -0.0276641845703125, 0.0011920928955078125, -0.006404876708984375, -0.04522705078125, -0.0233154296875, -0.016693115234375, 0.04266357421875, 0.0362548828125, 0.036956787109375, 0.029754638671875, -0.055450439453125, 0.0408935546875, 0.0166015625, 0.0001246929168701172, -0.01154327392578125, 0.033782958984375, -0.0094451904296875, 0.0201416015625, -0.0120086669921875, -0.003719329833984375, -0.023284912109375, 0.0128173828125, -0.0159759521484375, -0.01654052734375, -0.0017290115356445312, 0.004955291748046875, 0.0253753662109375, -0.0250701904296875, 0.0290679931640625, 0.020782470703125, 0.011077880859375, 0.019256591796875, 0.02178955078125, 0.043609619140625, -0.016265869140625, 0.05560302734375, -0.0143280029296875, 0.01446533203125, 0.000965118408203125, 0.0005540847778320312, 0.01088714599609375, -0.00858306884765625, 0.04595947265625, 0.046142578125, -0.02978515625, 0.0243072509765625, -0.0237274169921875, -0.004009246826171875, -0.03729248046875, 0.0096282958984375, -0.0187530517578125, -0.055084228515625, 0.00775146484375, 0.039825439453125, 0.025299072265625, -0.0249786376953125, 0.038421630859375, -0.01165771484375, -0.005489349365234375, 0.00490570068359375, -0.0712890625, -0.06402587890625, -0.01345062255859375, -0.0281524658203125, -0.0372314453125, 0.01947021484375, -0.0149993896484375, 0.0191802978515625, 0.0174560546875, -0.01027679443359375, 0.0230255126953125, -0.0169677734375, -0.032012939453125, -0.01715087890625, -0.067138671875, -0.022796630859375, -0.0023250579833984375, 0.0014429092407226562, -0.00533294677734375, 0.0272064208984375, -0.01251220703125, -0.0384521484375, -0.0306243896484375, 0.006511688232421875, 0.00408172607421875, -0.0159149169921875, 0.0209503173828125, -0.052276611328125, 0.0078125, -0.0065765380859375, -0.0003781318664550781, 0.017242431640625, -0.005523681640625, 0.0110015869140625, -0.051788330078125, -0.040802001953125, -0.045196533203125, 0.0103302001953125, 0.0465087890625, -0.051239013671875, -0.0165252685546875, -0.0640869140625, -0.007793426513671875, 0.02130126953125, -0.0267181396484375, -0.06500244140625, 0.0046539306640625, -0.02978515625, -0.0165252685546875, -0.0205078125, 0.003955841064453125, 0.00803375244140625, -0.0075836181640625, -0.040374755859375, 0.055206298828125, 0.0116424560546875, 0.017913818359375, -0.0025806427001953125, -0.0033168792724609375, -0.0469970703125, 0.05267333984375, 0.009674072265625, -0.007770538330078125, -0.0052032470703125, 0.008453369140625, -0.0110626220703125, -0.057708740234375, 0.06988525390625, 0.04400634765625, 0.02069091796875, -0.01309967041015625, -0.06597900390625, 0.0231781005859375, 0.1231689453125, -0.035247802734375, -0.024139404296875, -0.00856781005859375, 0.0013484954833984375, -0.0189208984375, -0.035552978515625, -0.0165863037109375, -0.01558685302734375, -0.06988525390625, 0.0001266002655029297, -0.00588226318359375, -0.026336669921875, -0.029144287109375, 0.01375579833984375, -0.0311126708984375, -0.03515625, 0.0081787109375, 0.01061248779296875, -0.012542724609375, 0.01152801513671875, -0.0290679931640625, 0.01035308837890625, 0.0007548332214355469, -0.03216552734375, -0.05975341796875, -0.012420654296875, -0.023529052734375, 0.0596923828125, 0.023712158203125, -0.019744873046875, -0.00891876220703125, 0.043365478515625, 0.03668212890625, 0.049591064453125, 0.03131103515625, -0.0236053466796875, 0.0518798828125, 0.0035228729248046875, 0.02227783203125, -0.0271759033203125, -0.021240234375, 0.00852203369140625, 0.01271820068359375, 0.079345703125, -0.01476287841796875, -0.0020923614501953125, -0.002658843994140625, -0.01248931884765625, -0.0135650634765625, -0.038848876953125, 0.0037364959716796875, 0.00982666015625, -0.036773681640625, 0.03515625, -0.0037384033203125, 0.007373809814453125, 0.032989501953125, 0.0435791015625, 0.019775390625, -0.003009796142578125, 0.033294677734375, 0.0034084320068359375, -0.0469970703125, -0.0096588134765625, 0.016632080078125, 0.040679931640625, 0.004390716552734375, 0.0029087066650390625, -0.03094482421875, -0.052947998046875, 0.09234619140625, -0.005947113037109375, 0.003711700439453125, 0.0172119140625, 0.01349639892578125, 0.0069580078125, -0.0185089111328125, 0.011199951171875, 0.016876220703125, -0.0186767578125, 0.001987457275390625, -0.01166534423828125, 0.01470184326171875, 0.017608642578125, 0.0026760101318359375, -0.0135955810546875, 0.007293701171875, 0.00849151611328125, 0.040008544921875, -0.02801513671875, -0.01702880859375, 0.0577392578125, 0.04852294921875, -0.01128387451171875, -0.025299072265625, 0.005092620849609375, -0.006458282470703125, -0.03680419921875, -0.0266265869140625, -0.041961669921875, 0.01519012451171875, -0.038848876953125, -0.03570556640625, 0.004146575927734375, -0.0182342529296875, 0.085693359375, 0.03814697265625, -0.015045166015625, 0.001842498779296875, -0.010345458984375, 0.0071868896484375, -0.01227569580078125, 0.007354736328125, 0.0081329345703125, -0.007129669189453125, 0.0155487060546875, 0.0179595947265625, -0.019256591796875, -0.004924774169921875, -0.015899658203125, 0.030364990234375, 0.021575927734375, -0.0046539306640625, -0.0207366943359375, 0.057861328125, -0.029388427734375, 0.0218048095703125, 0.010772705078125, 0.0015020370483398438, 0.0142974853515625, -0.009368896484375, 0.0124664306640625, 0.0163726806640625, 0.025665283203125, -0.040985107421875, 0.0535888671875, -0.0168304443359375, -0.0022068023681640625, -0.01947021484375, 0.01189422607421875, -0.014312744140625, -0.0025348663330078125, 0.044586181640625, -0.016693115234375, -0.0027618408203125, -0.0007266998291015625, -0.0049285888671875, -0.0323486328125, 0.00006443262100219727, -0.01055908203125, -0.01471710205078125, -0.013397216796875, -0.007404327392578125, -0.0133819580078125, -0.041900634765625, 0.007015228271484375, 0.019012451171875, -0.0006108283996582031, -0.0017452239990234375, -0.021392822265625, -0.02325439453125, -0.0142822265625, 0.00917816162109375, -0.0594482421875, -0.0104217529296875, -0.0300750732421875, -0.00986480712890625, 0.05279541015625, -0.03314208984375, 0.00914764404296875, -0.02484130859375, 0.02606201171875, 0.0262298583984375, 0.00319671630859375, 0.02947998046875, -0.00412750244140625, -0.08184814453125, -0.0020160675048828125, -0.053375244140625, -0.0005517005920410156, -0.0621337890625, -0.05078125, -0.03753662109375, -0.0029811859130859375, 0.01212310791015625, 0.0230712890625, -0.020355224609375, -0.04443359375, -0.01364898681640625, 0.008819580078125, 0.036468505859375, 0.0240478515625, -0.023406982421875, 0.034698486328125, 0.0062255859375, 0.016845703125, 0.0027751922607421875, 0.0252227783203125, 0.033172607421875, -0.0255279541015625, 0.030364990234375, -0.00047016143798828125, -0.0692138671875, -0.02154541015625, -0.044952392578125, 0.0217742919921875, 0.07366943359375, -0.0262298583984375, -0.0207977294921875, -0.0214691162109375, 0.00699615478515625, -0.0294342041015625, 0.057952880859375, -0.03790283203125, -0.046905517578125, 0.00922393798828125, 0.01189422607421875, 0.02191162109375, -0.0274505615234375, -0.01282501220703125, 0.0169677734375, 0.01580810546875, 0.03564453125, -0.04962158203125, -0.0992431640625, 0.0931396484375, 0.08673095703125, 0.02191162109375, 0.047119140625, 0.01125335693359375, -0.00218963623046875, -0.0244293212890625, 0.02130126953125, -0.01175689697265625, 0.0292816162109375, 0.08172607421875, 0.0113372802734375, -0.04119873046875, 0.038787841796875, -0.0537109375, 0.004627227783203125, 0.031951904296875, 0.043243408203125, -0.04302978515625, -0.00946044921875, -0.02313232421875, -0.030548095703125, 0.0518798828125, 0.0111541748046875, -0.0250396728515625, -0.056121826171875, 0.050384521484375, -0.0230712890625, -0.00354766845703125, 0.01201629638671875, -0.0026149749755859375, -0.0274658203125, -0.01235198974609375, 0.03497314453125, 0.00670623779296875, -0.056121826171875, 0.00672149658203125, 0.03155517578125, -0.01454925537109375, -0.004886627197265625, 0.0266265869140625, 0.005352020263671875, 0.0011816024780273438, -0.033721923828125, 0.0188446044921875, -0.0228424072265625, -0.017669677734375, 0.0411376953125, 0.00670623779296875, 0.039459228515625, 0.041534423828125, 0.00958251953125, -0.006038665771484375, 0.00966644287109375, -0.0007047653198242188, 0.032470703125, -0.00910186767578125, 0.0169677734375, 0.01885986328125, -0.03558349609375, 0.0083160400390625, -0.00394439697265625, -0.01617431640625, -0.02301025390625, -0.045440673828125, 0.09149169921875, -0.04425048828125, -0.01593017578125, 0.005252838134765625, 0.0019626617431640625, -0.0035991668701171875, -0.0005731582641601562, 0.005466461181640625, -0.021209716796875, 0.0302886962890625, -0.005741119384765625, 0.007080078125, 0.0173492431640625, -0.00707244873046875, -0.004817962646484375, 0.0086212158203125, -0.0159454345703125, -0.022918701171875, 0.019012451171875, 0.027984619140625, -0.007152557373046875, 0.0244598388671875, 0.0150146484375, 0.03826904296875, -0.033660888671875, 0.031707763671875, -0.0589599609375, -0.018096923828125, -0.004550933837890625, 0.0621337890625, 0.02362060546875, -0.01215362548828125, 0.02984619140625, -0.01068115234375, 0.06561279296875, 0.0479736328125, 0.003932952880859375, -0.01155853271484375, 0.0013628005981445312, -0.0155792236328125, 0.019134521484375, -0.004360198974609375, 0.035308837890625, -0.02447509765625, -0.0218658447265625, 0.01824951171875, 0.00600433349609375, -0.011138916015625, 0.007457733154296875, -0.03253173828125, -0.03216552734375, 0.0016355514526367188, 0.0043487548828125, 0.0159149169921875, -0.01508331298828125, 0.043304443359375, 0.0167236328125, -0.03350830078125, -0.0125579833984375, -0.030853271484375, 0.0404052734375, 0.01299285888671875, 0.054168701171875, 0.0023860931396484375, 0.00806427001953125, 0.041412353515625, 0.0160675048828125, 0.0316162109375, 0.0540771484375, -0.03009033203125, 0.04425048828125, 0.0382080078125, 0.032318115234375, -0.0279693603515625, -0.030120849609375, 0.0261993408203125, 0.061737060546875, -0.025726318359375, -0.031951904296875, 0.01143646240234375, 0.009307861328125, 0.01214599609375, -0.01213836669921875, 0.0034465789794921875, -0.0010318756103515625, 0.05780029296875, 0.01459503173828125, -0.00583648681640625, -0.01654052734375, -0.0046234130859375, 0.004878997802734375, 0.021820068359375, 0.02105712890625, 0.0282745361328125, -0.022430419921875, 0.0251922607421875, -0.01052093505859375, 0.036956787109375, -0.0129547119140625, 0.06158447265625, -0.0489501953125, -0.0015430450439453125, -0.0316162109375, 0.03662109375, -0.0031681060791015625, 0.0474853515625, -0.05133056640625, -0.0263671875, 0.004913330078125, 0.0352783203125, 0.0014677047729492188, -0.0129241943359375, 0.0177154541015625, -0.0113372802734375, -0.043792724609375, -0.0168609619140625, -0.005474090576171875, -0.039520263671875, 0.017791748046875, -0.0340576171875, 0.037445068359375, 0.051483154296875, 0.01299285888671875, -0.01263427734375, -0.031097412109375, 0.09539794921875, 0.0157470703125, 0.01055908203125, 0.006420135498046875, -0.04248046875, 0.008453369140625, -0.0267486572265625, 0.0723876953125, 0.04071044921875, -0.08209228515625, -0.026275634765625, 0.0253448486328125, -0.10540771484375, 0.0494384765625, 0.07318115234375, -0.0200958251953125, -0.047119140625, 0.02545166015625, -0.0234832763671875, -0.00733184814453125, -0.005245208740234375, 0.035125732421875, 0.025787353515625, 0.01049041748046875, 0.020843505859375, -0.05670166015625, -0.0212249755859375, 0.00927734375, -0.0028095245361328125, 0.01348876953125, -0.01611328125, 0.052703857421875, 0.008575439453125, -0.0293121337890625, 0.01067352294921875, -0.00399017333984375, -0.0185699462890625, 0.044158935546875, 0.017578125, -0.01003265380859375, -0.0284271240234375, -0.039154052734375, -0.0001062154769897461, 0.03564453125, -0.027435302734375, 0.036224365234375, -0.009735107421875, 0.0023288726806640625, -0.05535888671875, 0.0115814208984375, -0.0181884765625, -0.0033702850341796875, -0.0003287792205810547, -0.01641845703125, 0.0361328125, 0.0194244384765625, -0.00780487060546875, 0.04034423828125, 0.00467681884765625, 0.00605010986328125, 0.0309600830078125, -0.0340576171875, 0.055023193359375, 0.041595458984375, -0.0340576171875, 0.0016050338745117188, -0.017425537109375, -0.0220947265625, 0.0052337646484375, -0.0049896240234375, -0.01222991943359375, 0.0010929107666015625, -0.04681396484375, -0.0037994384765625, 0.017181396484375, 0.04095458984375, -0.01204681396484375, 0.01294708251953125, 0.0074310302734375, -0.0217132568359375, -0.01096343994140625, 0.02862548828125, -0.0251007080078125, -0.0034046173095703125, -0.016632080078125, 0.01525115966796875, -0.004878997802734375, -0.044219970703125, -0.08770751953125, 0.007480621337890625, 0.060638427734375, -0.01483917236328125, -0.0279388427734375, -0.017791748046875, -0.0280914306640625, 0.0703125, 0.0104827880859375, 0.002140045166015625, -0.001312255859375, 0.049774169921875, -0.038421630859375, -0.0033473968505859375, -0.040924072265625, -0.0230865478515625, -0.02911376953125, -0.01526641845703125, 0.022216796875, -0.00344085693359375, 0.0283355712890625, -0.0113525390625, -0.01013946533203125, 0.03411865234375, -0.0300140380859375, -0.023590087890625, 0.0272064208984375, -0.01885986328125, -0.0195159912109375, -0.0291900634765625, -0.0006923675537109375, -0.034454345703125, -0.0025691986083984375, -0.031585693359375, 0.0413818359375, 0.0306549072265625, -0.027923583984375, -0.0848388671875, 0.0183868408203125, -0.023651123046875, -0.038848876953125, -0.04168701171875, -0.0086822509765625, -0.0002799034118652344, -0.004730224609375, -0.00714111328125, -0.0284423828125, -0.0310211181640625, 0.01416778564453125, 0.0020904541015625, 0.00812530517578125, 0.029083251953125, -0.00788116455078125, -0.033447265625, -0.00031948089599609375, 0.0022220611572265625, -0.006664276123046875, -0.00661468505859375, -0.019744873046875, 0.00853729248046875, 0.016510009765625, -0.038299560546875, -0.07354736328125, -0.0027713775634765625, -0.00838470458984375, -0.009765625, -0.0171051025390625, -0.015045166015625, -0.0279388427734375, 0.03985595703125, 0.005413055419921875, 0.005115509033203125, 0.01145172119140625, 0.0140380859375, -0.01142120361328125, -0.0141754150390625, 0.000270843505859375, -0.006561279296875, -0.0079803466796875, 0.01546478271484375, -0.01279449462890625, -0.0028667449951171875, 0.0008382797241210938, -0.01285552978515625, -0.006221771240234375, -0.00829315185546875, 0.01654052734375, 0.00838470458984375, -0.03729248046875, -0.02978515625, 0.0877685546875, -0.061431884765625, -0.05303955078125, 0.01313018798828125, 0.0231170654296875, -0.006378173828125, -0.054840087890625, 0.035552978515625, 0.034576416015625, -0.045135498046875, -0.005527496337890625, 0.02239990234375, 0.005512237548828125, -0.00498199462890625, -0.026763916015625, -0.021697998046875, 0.03106689453125, 0.0082855224609375, 0.031646728515625, -0.05902099609375, 0.07000732421875, 0.006656646728515625, 0.105712890625, 0.00595855712890625, -0.013397216796875, -0.015106201171875, 0.04644775390625, 0.02618408203125, -0.025970458984375, 0.052154541015625, -0.0328369140625, -0.0009336471557617188, -0.0062255859375, 0.011322021484375, -0.048614501953125, 0.04254150390625, -0.037750244140625, 0.009521484375, 0.042938232421875 ]
f5027e09174a81ebfff32a847b71f01fc10991a5
Wordpress Stackexchange Q: Get a list of all WordPress.org Plugins? I'm looking for a way to get the list of all plugins listed in the WordPress.org Plugin Directory. There is one other post I've found on StackOverflow regarding this which recommends using the subversion repository. I'd like to do something that organizes them by number of downloads. I think this is probably possible using the WordPress.org API, but I'm not positive. My attempts thus far have failed. Any ideas? A: You can start with something like this: https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&request[page]=1&request[per_page]=400 I think it's self-explanatory.
Q: Get a list of all WordPress.org Plugins? I'm looking for a way to get the list of all plugins listed in the WordPress.org Plugin Directory. There is one other post I've found on StackOverflow regarding this which recommends using the subversion repository. I'd like to do something that organizes them by number of downloads. I think this is probably possible using the WordPress.org API, but I'm not positive. My attempts thus far have failed. Any ideas? A: You can start with something like this: https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&request[page]=1&request[per_page]=400 I think it's self-explanatory. A: Without seeing some code or results it is difficult to advise beyond linking you to other tutorials on the web. A quick Google revealed these: * *https://dd32.id.au/projects/wordpressorg-plugin-information-api-docs/ *http://code.tutsplus.com/tutorials/communicating-with-the-wordpressorg-plugin-api--wp-33069 As with a lot of the WP codex the official documentation is a little lacking. A: good day dear Davemackey - hello Michael Field its been a long time that this has been asked - but anyway.. here my little idea that i can come up with.. Not the best answer but I tried to solve my own problem the best way I could. Getting a list of plugins This will not return ALL plugins but it will return the top rated ones: $plugins = plugins_api('query_plugins', array( 'per_page' => 100, 'browse' => 'top-rated', 'fields' => array( 'short_description' => false, 'description' => false, 'sections' => false, 'tested' => false, 'requires' => false, 'rating' => false, 'ratings' => false, 'downloaded' => false, 'downloadlink' => false, 'last_updated' => false, 'added' => false, 'tags' => false, 'compatibility' => false, 'homepage' => false, 'versions' => false, 'donate_link' => false, 'reviews' => false, 'banners' => false, 'icons' => false, 'active_installs' => false, 'group' => false, 'contributors' => false ))); Save the data as JSON Since the data that we get is huge and it will be bad for performance, we try to get the name and the slug out of the array and then we write it in a JSON file: $plugins_json = '{' . PHP_EOL; // Get only the name and the slug foreach ($plugins as $plugin) { foreach ($plugin as $key => $p) { if ($p->name != null) { // Let's beautify the JSON $plugins_json .= ' "'. $p->name . '": {' . PHP_EOL; $plugins_json .= ' "slug": "' . $p->slug . '"' . PHP_EOL; end($plugin); $plugins_json .= ($key !== key($plugin)) ? ' },' . PHP_EOL : ' }' . PHP_EOL; } } } $plugins_json .= '}'; file_put_contents('plugins.json', $plugins_json); Now we have a slim JSON file with only the data that we need. To keep updating the JSON file, we run that script to create a JSON file every 24 hours by setting up a Cron Job.
wordpress
{ "language": "en", "length": 442, "provenance": "stackexchange_00019.jsonl.gz:458014", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/198143" }
[ 0.027435302734375, 0.0013322830200195312, 0.003528594970703125, 0.0003612041473388672, 0.006519317626953125, -0.02264404296875, 0.054229736328125, -0.023406982421875, -0.0171966552734375, 0.024749755859375, -0.00862884521484375, 0.0174713134765625, -0.00630950927734375, -0.01486968994140625, 0.01375579833984375, -0.022247314453125, 0.038665771484375, -0.024688720703125, 0.0195159912109375, -0.0022640228271484375, 0.0157470703125, 0.036224365234375, 0.01038360595703125, 0.06060791015625, 0.02532958984375, -0.007625579833984375, 0.0701904296875, -0.0266265869140625, 0.022308349609375, -0.02569580078125, 0.01389312744140625, -0.012847900390625, 0.01435089111328125, 0.0042724609375, 0.003459930419921875, -0.04241943359375, 0.00787353515625, -0.00814056396484375, 0.01385498046875, -0.0009236335754394531, 0.061004638671875, -0.049713134765625, -0.00057220458984375, 0.025787353515625, 0.0050506591796875, -0.0258636474609375, 0.0560302734375, -0.0222625732421875, 0.018218994140625, -0.0728759765625, 0.01126861572265625, -0.0078887939453125, 0.0399169921875, -0.0310211181640625, -0.0308837890625, 0.016265869140625, 0.019317626953125, 0.0584716796875, 0.0198516845703125, -0.0751953125, -0.053741455078125, 0.022918701171875, 0.03875732421875, 0.040557861328125, -0.0293426513671875, -0.0006270408630371094, -0.028564453125, 0.00945281982421875, 0.003387451171875, -0.0268096923828125, 0.00125885009765625, -0.00911712646484375, 0.0022869110107421875, 0.023162841796875, -0.01617431640625, -0.049224853515625, 0.005767822265625, -0.048126220703125, 0.031341552734375, 0.009368896484375, 0.03265380859375, -0.0080718994140625, -0.059814453125, 0.0133209228515625, 0.015350341796875, 0.048370361328125, 0.007549285888671875, -0.041290283203125, -0.0364990234375, 0.01153564453125, -0.027587890625, -0.013397216796875, -0.038726806640625, 0.02288818359375, -0.00412750244140625, 0.00701904296875, 0.034515380859375, 0.037017822265625, -0.01271820068359375, -0.009033203125, 0.0006690025329589844, -0.029541015625, 0.0011701583862304688, -0.023712158203125, -0.01070404052734375, 0.0076446533203125, 0.01422119140625, 0.0004596710205078125, 0.024810791015625, 0.03143310546875, -0.01666259765625, 0.032379150390625, 0.0018377304077148438, -0.0157012939453125, 0.0020580291748046875, -0.0038547515869140625, -0.0222320556640625, 0.026458740234375, 0.00872802734375, 0.00495147705078125, 0.01303863525390625, 0.035400390625, 0.005565643310546875, -0.022735595703125, -0.046234130859375, -0.031768798828125, -0.0202178955078125, -0.042633056640625, -0.00980377197265625, 0.00609588623046875, -0.0169525146484375, 0.020538330078125, 0.01508331298828125, 0.0080413818359375, -0.026885986328125, -0.0089111328125, -0.005626678466796875, 0.04833984375, 0.00452423095703125, 0.0034809112548828125, -0.0207061767578125, -0.0206146240234375, 0.0187530517578125, -0.0251922607421875, 0.0111541748046875, -0.020965576171875, 0.00772857666015625, 0.044525146484375, 0.00829315185546875, 0.04046630859375, -0.02020263671875, 0.03741455078125, 0.009490966796875, -0.00679779052734375, 0.050262451171875, -0.06365966796875, 0.047576904296875, -0.0543212890625, 0.058929443359375, -0.0400390625, -0.0250091552734375, -0.00707244873046875, 0.0278167724609375, 0.003204345703125, 0.01495361328125, 0.00437164306640625, 0.00884246826171875, 0.016204833984375, 0.03424072265625, 0.040130615234375, -0.0084991455078125, -0.0227508544921875, 0.07269287109375, 0.038787841796875, -0.005817413330078125, 0.0345458984375, 0.00461578369140625, -0.005664825439453125, 0.0211639404296875, 0.0247650146484375, -0.005458831787109375, -0.0263671875, 0.057586669921875, -0.017059326171875, -0.05426025390625, 0.0158233642578125, -0.00958251953125, 0.0301055908203125, 0.0258026123046875, -0.0136566162109375, 0.04632568359375, 0.01064300537109375, -0.0280609130859375, -0.0183563232421875, -0.0457763671875, -0.0016326904296875, 0.016082763671875, 0.041961669921875, -0.028717041015625, -0.008148193359375, 0.0027294158935546875, -0.01194000244140625, 0.000644683837890625, -0.0198974609375, -0.055938720703125, -0.03338623046875, -0.0083465576171875, 0.0246124267578125, 0.020416259765625, 0.00826263427734375, -0.0146942138671875, -0.0229034423828125, -0.00264739990234375, 0.00016748905181884766, -0.02117919921875, 0.03594970703125, -0.00836181640625, -0.01947021484375, -0.0094146728515625, -0.008026123046875, -0.006206512451171875, 0.00037097930908203125, -0.03936767578125, 0.00962066650390625, 0.0300445556640625, -0.005954742431640625, -0.016571044921875, -0.01294708251953125, 0.019500732421875, 0.0093994140625, 0.005748748779296875, 0.013763427734375, 0.02630615234375, 0.08551025390625, 0.0056304931640625, -0.03424072265625, -0.004741668701171875, -0.046600341796875, 0.0399169921875, 0.0245208740234375, 0.019317626953125, 0.050537109375, -0.0083160400390625, -0.00644683837890625, 0.06341552734375, -0.05291748046875, -0.01018524169921875, -0.006900787353515625, 0.02056884765625, 0.0300750732421875, 0.021942138671875, 0.0304412841796875, 0.025146484375, 0.03271484375, 0.0290985107421875, 0.0484619140625, 0.01120758056640625, -0.022674560546875, -0.005962371826171875, 0.002109527587890625, 0.0213775634765625, -0.008697509765625, -0.049560546875, 0.01369476318359375, 0.007167816162109375, 0.0187835693359375, 0.039154052734375, 0.050811767578125, -0.0088043212890625, -0.013885498046875, 0.0055694580078125, 0.050506591796875, -0.00026917457580566406, 0.04010009765625, 0.048309326171875, -0.00838470458984375, -0.039276123046875, -0.01959228515625, 0.01352691650390625, 0.017730712890625, -0.0022373199462890625, -0.0207366943359375, -0.0012750625610351562, 0.0017843246459960938, 0.0231475830078125, -0.047088623046875, 0.028106689453125, 0.0312347412109375, -0.05902099609375, 0.016693115234375, 0.038970947265625, 0.00007331371307373047, -0.027801513671875, -0.0034885406494140625, -0.0284881591796875, -0.0007662773132324219, 0.022613525390625, -0.0672607421875, 0.041412353515625, -0.03558349609375, 0.0382080078125, 0.06982421875, 0.017242431640625, -0.01519775390625, 0.006195068359375, -0.06134033203125, -0.0010194778442382812, 0.0051116943359375, -0.0150909423828125, 0.003131866455078125, -0.0782470703125, 0.01203155517578125, 0.00792694091796875, 0.0533447265625, -0.034515380859375, -0.0699462890625, -0.040802001953125, 0.00399017333984375, -0.1146240234375, -0.055450439453125, 0.005764007568359375, -0.0399169921875, 0.04180908203125, -0.0259857177734375, -0.0148468017578125, -0.026092529296875, -0.0124359130859375, 0.016387939453125, 0.01125335693359375, -0.03680419921875, -0.02984619140625, -0.05419921875, -0.08489990234375, -0.040008544921875, 0.01209259033203125, 0.0050506591796875, 0.01157379150390625, 0.052734375, 0.004669189453125, -0.06732177734375, 0.002681732177734375, 0.06683349609375, -0.0125579833984375, 0.004322052001953125, 0.0164337158203125, -0.00716400146484375, -0.007781982421875, -0.0041351318359375, 0.057525634765625, 0.05755615234375, -0.055419921875, 0.0115966796875, -0.0184173583984375, -0.058807373046875, 0.0017747879028320312, -0.0369873046875, -0.002452850341796875, -0.037109375, -0.01247406005859375, -0.0677490234375, 0.02825927734375, 0.0196685791015625, 0.0018024444580078125, 0.021240234375, -0.024444580078125, -0.034332275390625, 0.0238037109375, 0.0054168701171875, 0.0069122314453125, 0.0292816162109375, -0.005367279052734375, -0.01513671875, 0.00127410888671875, -0.0117645263671875, 0.011138916015625, 0.00815582275390625, 0.0596923828125, -0.006282806396484375, -0.0157012939453125, 0.0083465576171875, -0.004314422607421875, -0.0084075927734375, -0.01428985595703125, -0.037841796875, -0.0343017578125, 0.05657958984375, 0.01247406005859375, 0.0230712890625, -0.0233306884765625, -0.038848876953125, 0.003490447998046875, 0.09063720703125, -0.0030364990234375, -0.0173797607421875, -0.03631591796875, -0.007251739501953125, -0.005481719970703125, -0.03924560546875, 0.004093170166015625, -0.01415252685546875, -0.11126708984375, 0.0113067626953125, -0.0198822021484375, -0.036773681640625, 0.0225372314453125, -0.043701171875, -0.0305938720703125, -0.059295654296875, 0.00901031494140625, -0.01197052001953125, -0.015655517578125, -0.0113372802734375, -0.0169677734375, -0.038177490234375, -0.00354766845703125, -0.01071929931640625, -0.0711669921875, -0.01161956787109375, -0.05938720703125, 0.05596923828125, 0.0430908203125, -0.037384033203125, -0.00783538818359375, 0.035247802734375, -0.0238037109375, 0.038116455078125, 0.00738525390625, 0.0305938720703125, -0.02740478515625, -0.0021152496337890625, 0.0191802978515625, -0.04266357421875, -0.01386260986328125, -0.0265045166015625, -0.0282745361328125, 0.0216522216796875, -0.000659942626953125, 0.0225830078125, 0.016510009765625, -0.00620269775390625, -0.0025463104248046875, -0.0259246826171875, -0.031829833984375, 0.00189971923828125, -0.0220184326171875, -0.010528564453125, -0.0210723876953125, 0.002239227294921875, 0.01306915283203125, 0.0032444000244140625, -0.0169219970703125, 0.0298919677734375, 0.06463623046875, 0.0028476715087890625, -0.005298614501953125, -0.10601806640625, 0.028350830078125, 0.0214385986328125, 0.00313568115234375, 0.036529541015625, 0.0061492919921875, -0.00717926025390625, 0.021484375, -0.0210113525390625, 0.00676727294921875, -0.003917694091796875, 0.00788116455078125, 0.0225677490234375, 0.0018978118896484375, -0.009796142578125, 0.030609130859375, 0.013763427734375, 0.0179595947265625, -0.01276397705078125, -0.0307159423828125, -0.01177215576171875, 0.02911376953125, -0.0112457275390625, 0.05126953125, -0.0017910003662109375, -0.050994873046875, 0.0207061767578125, -0.00222015380859375, 0.045806884765625, 0.038604736328125, -0.0175323486328125, 0.06719970703125, 0.0305023193359375, 0.0003514289855957031, 0.02960205078125, 0.04547119140625, 0.0088348388671875, 0.032867431640625, -0.00511932373046875, -0.02764892578125, -0.01238250732421875, -0.01398468017578125, 0.07965087890625, 0.0014028549194335938, -0.069091796875, 0.04559326171875, -0.043701171875, -0.0107879638671875, 0.03271484375, -0.025054931640625, 0.05255126953125, 0.055816650390625, -0.023956298828125, -0.016815185546875, -0.0533447265625, 0.03436279296875, -0.05987548828125, -0.0007309913635253906, -0.0194549560546875, -0.0154876708984375, -0.0066375732421875, 0.043548583984375, -0.067138671875, 0.048828125, 0.0286865234375, 0.0212860107421875, 0.0291290283203125, 0.026123046875, 0.0185089111328125, -0.03515625, -0.004276275634765625, -0.0017404556274414062, -0.003215789794921875, -0.0311431884765625, -0.0029850006103515625, 0.0067901611328125, 0.044647216796875, -0.005146026611328125, -0.0374755859375, 0.03631591796875, -0.0229034423828125, -0.0190277099609375, 0.0068511962890625, 0.01241302490234375, -0.007091522216796875, -0.008636474609375, 0.007442474365234375, 0.029571533203125, 0.025848388671875, -0.00006878376007080078, -0.01611328125, 0.0025615692138671875, -0.03424072265625, 0.0247039794921875, -0.10797119140625, 0.01953125, 0.0565185546875, -0.06317138671875, -0.0214691162109375, -0.0008740425109863281, -0.0771484375, -0.034332275390625, 0.00200653076171875, -0.0228424072265625, 0.045013427734375, 0.004047393798828125, 0.05645751953125, -0.0401611328125, -0.0220489501953125, -0.006969451904296875, -0.008148193359375, 0.0584716796875, 0.0254669189453125, -0.08233642578125, -0.00289154052734375, -0.02459716796875, -0.0124053955078125, 0.038330078125, -0.01317596435546875, -0.05950927734375, -0.0199127197265625, 0.018310546875, 0.0189361572265625, -0.0000603795051574707, 0.003490447998046875, 0.0113067626953125, -0.0032939910888671875, -0.0291900634765625, -0.01065826416015625, 0.00868988037109375, 0.04473876953125, 0.004039764404296875, 0.0237579345703125, 0.01387786865234375, 0.0243072509765625, -0.004764556884765625, -0.014434814453125, 0.01288604736328125, -0.010284423828125, -0.01155853271484375, -0.0223846435546875, -0.00543212890625, -0.0254364013671875, 0.0169219970703125, 0.0078277587890625, -0.0238037109375, -0.019378662109375, -0.00434112548828125, -0.01284027099609375, 0.04718017578125, 0.01398468017578125, -0.03167724609375, 0.01271820068359375, -0.03814697265625, -0.0181732177734375, 0.015777587890625, -0.00884246826171875, 0.0164031982421875, -0.0013942718505859375, 0.0030612945556640625, 0.0036029815673828125, -0.027862548828125, 0.05877685546875, 0.0246124267578125, 0.0008411407470703125, 0.0302734375, 0.0226898193359375, 0.020721435546875, -0.022369384765625, 0.0011386871337890625, 0.06103515625, -0.027801513671875, 0.0704345703125, 0.0108642578125, -0.0093536376953125, 0.0670166015625, -0.046722412109375, 0.0074615478515625, -0.027618408203125, 0.020782470703125, -0.01328277587890625, 0.039093017578125, 0.034393310546875, 0.025177001953125, 0.013824462890625, -0.0047760009765625, -0.022216796875, -0.05340576171875, 0.03411865234375, -0.0159454345703125, -0.01238250732421875, -0.0034008026123046875, -0.012939453125, -0.033416748046875, 0.002471923828125, 0.020294189453125, 0.03265380859375, 0.01253509521484375, 0.00754547119140625, -0.0200042724609375, 0.0258026123046875, -0.0228271484375, 0.023101806640625, 0.00844573974609375, -0.006526947021484375, -0.05255126953125, 0.0283203125, 0.0019159317016601562, -0.0195770263671875, 0.002262115478515625, -0.017333984375, -0.00844573974609375, 0.0452880859375, -0.04315185546875, 0.01446533203125, 0.0404052734375, -0.053070068359375, 0.0236053466796875, 0.0008111000061035156, -0.0183563232421875, 0.04644775390625, -0.0249481201171875, 0.00334930419921875, -0.02789306640625, 0.03729248046875, 0.0021076202392578125, 0.051849365234375, 0.09002685546875, -0.046356201171875, -0.00942230224609375, 0.05615234375, 0.0073699951171875, -0.03753662109375, -0.01433563232421875, 0.00638580322265625, -0.04119873046875, 0.0286712646484375, 0.004913330078125, 0.049468994140625, 0.0030956268310546875, 0.01055145263671875, -0.044281005859375, 0.07427978515625, 0.0001958608627319336, 0.01116180419921875, 0.0296478271484375, 0.0207672119140625, -0.0390625, 0.004177093505859375, -0.0191802978515625, 0.058685302734375, 0.005390167236328125, -0.00998687744140625, -0.0118865966796875, 0.00341033935546875, -0.0142822265625, 0.01290130615234375, 0.0253143310546875, 0.004116058349609375, -0.053375244140625, -0.00902557373046875, 0.0185699462890625, 0.0017795562744140625, 0.0009579658508300781, 0.060882568359375, 0.026123046875, -0.01007080078125, 0.05218505859375, -0.0011234283447265625, 0.046600341796875, -0.0252685546875, 0.032257080078125, 0.0222930908203125, -0.0014848709106445312, -0.01593017578125, -0.0024776458740234375, 0.0039520263671875, -0.0164642333984375, 0.0074920654296875, -0.01371002197265625, 0.050140380859375, 0.017242431640625, 0.0214996337890625, 0.00977325439453125, 0.0095062255859375, 0.02154541015625, -0.0170135498046875, 0.0303192138671875, -0.00887298583984375, 0.0194854736328125, -0.0015668869018554688, 0.00450897216796875, 0.0767822265625, -0.02020263671875, 0.006134033203125, 0.035675048828125, -0.01195526123046875, 0.034942626953125, 0.0005054473876953125, 0.0197296142578125, -0.0751953125, 0.0018024444580078125, 0.04876708984375, 0.038055419921875, -0.035369873046875, -0.117919921875, 0.00814056396484375, 0.01338958740234375, 0.02691650390625, 0.0784912109375, 0.0207977294921875, -0.02557373046875, 0.07843017578125, -0.032562255859375, -0.0212249755859375, 0.0034656524658203125, 0.041595458984375, 0.0021114349365234375, -0.0278778076171875, -0.004299163818359375, -0.04083251953125, -0.0075225830078125, -0.0019512176513671875, -0.004421234130859375, 0.0032100677490234375, 0.01421356201171875, 0.0152435302734375, -0.0158843994140625, -0.0074462890625, -0.00003796815872192383, 0.0182952880859375, -0.0082855224609375, -0.003360748291015625, -0.02899169921875, -0.0545654296875, -0.0012807846069335938, 0.0455322265625, 0.050689697265625, 0.01354217529296875, 0.043670654296875, 0.039520263671875, -0.0234832763671875, 0.0164337158203125, 0.08251953125, 0.0029201507568359375, -0.0233306884765625, -0.01389312744140625, 0.006084442138671875, 0.05633544921875, -0.006557464599609375, 0.00435638427734375, -0.00585174560546875, 0.07501220703125, -0.0228424072265625, 0.0301055908203125, -0.01126861572265625, -0.01319122314453125, 0.045501708984375, -0.030914306640625, 0.0208740234375, -0.0230560302734375, -0.08447265625, -0.0233612060546875, -0.054840087890625, 0.03851318359375, 0.03509521484375, 0.0264739990234375, -0.00913238525390625, 0.05352783203125, 0.0455322265625, -0.0193634033203125, 0.004055023193359375, 0.01482391357421875, 0.0338134765625, 0.0188751220703125, 0.019317626953125, 0.021240234375, -0.053680419921875, -0.0187835693359375, -0.061920166015625, 0.0189666748046875, 0.048828125, 0.05810546875, 0.0026798248291015625, 0.040496826171875, 0.0248260498046875, -0.0660400390625, 0.0341796875, -0.006641387939453125, 0.0165863037109375, -0.016571044921875, -0.0206756591796875, -0.01230621337890625, -0.07354736328125, 0.00691986083984375, 0.0293426513671875, -0.01751708984375, 0.0200347900390625, -0.01215362548828125, 0.017913818359375, -0.014984130859375, 0.036834716796875, -0.018829345703125, -0.063232421875, -0.0297088623046875, 0.0181121826171875, -0.0145263671875, 0.040283203125, 0.004581451416015625, 0.01544189453125, -0.00948333740234375, -0.0239410400390625, -0.01494598388671875, 0.00716400146484375, -0.0225372314453125, 0.031463623046875, -0.006938934326171875, -0.0252532958984375, -0.00676727294921875, -0.021148681640625, 0.033477783203125, -0.00994110107421875, 0.037445068359375, 0.00021159648895263672, -0.0110015869140625, -0.03765869140625, -0.00988006591796875, 0.011199951171875, -0.0117645263671875, 0.0162353515625, -0.0164947509765625, -0.0011873245239257812, -0.0014057159423828125, -0.0307159423828125, -0.0279388427734375, -0.06689453125, 0.00797271728515625, 0.003726959228515625, -0.0220947265625, -0.04620361328125, -0.007137298583984375, -0.01222991943359375, 0.0008420944213867188, -0.005451202392578125, -0.01654052734375, 0.00862884521484375, -0.00403594970703125, 0.0017642974853515625, -0.032501220703125, 0.010498046875, -0.0011281967163085938, 0.0163726806640625, -0.017120361328125, -0.01464080810546875, -0.01544952392578125, 0.0282440185546875, 0.0114593505859375, 0.0211944580078125, 0.01739501953125, -0.0269317626953125, -0.007236480712890625, 0.035369873046875, 0.04217529296875, 0.07965087890625, 0.0258941650390625, 0.006282806396484375, 0.00655364990234375, -0.0082855224609375, -0.0249176025390625, -0.05816650390625, 0.026702880859375, -0.0740966796875, -0.034393310546875, -0.0361328125, 0.0191497802734375, 0.016387939453125, -0.042327880859375, -0.06732177734375, 0.09649658203125, -0.034332275390625, -0.0177154541015625, -0.09063720703125, 0.01308441162109375, 0.037445068359375, -0.041259765625, -0.04180908203125, 0.003692626953125, -0.050048828125, 0.040771484375, 0.0171356201171875, 0.02197265625, -0.015838623046875, -0.006206512451171875, -0.01293182373046875, 0.0421142578125, 0.04620361328125, 0.00553131103515625, -0.00925445556640625, -0.00795745849609375, 0.025054931640625, 0.051910400390625, -0.018951416015625, -0.00885772705078125, 0.0106658935546875, 0.003116607666015625, -0.00815582275390625, -0.0016632080078125, -0.02813720703125, 0.0102996826171875, 0.0184326171875, 0.07733154296875, 0.0199432373046875, -0.05401611328125, 0.030303955078125, 0.0190277099609375, -0.0162353515625, -0.01186370849609375, 0.00494384765625, -0.0263214111328125, -0.01446533203125, -0.030609130859375, -0.0140838623046875, -0.00824737548828125, -0.002338409423828125, -0.03155517578125, -0.0103912353515625, -0.0147247314453125, -0.024932861328125, 0.0161590576171875, 0.0212860107421875, 0.005138397216796875, -0.0054473876953125, 0.0077056884765625, -0.0185546875, -0.002407073974609375, 0.005401611328125, 0.004718780517578125, 0.00205230712890625, 0.0018405914306640625, -0.01528167724609375, 0.033050537109375, 0.004817962646484375, 0.0207061767578125, -0.02276611328125, -0.0168304443359375, -0.0298309326171875, 0.0181884765625, 0.006061553955078125, -0.0017299652099609375, -0.044464111328125, 0.072509765625, 0.033782958984375, 0.07696533203125, 0.01477813720703125, -0.0345458984375, -0.01837158203125, 0.06658935546875, 0.006328582763671875, -0.055206298828125, 0.014923095703125, -0.054595947265625, 0.008697509765625, 0.01303863525390625, -0.004486083984375, -0.01806640625, 0.0280609130859375, 0.0115814208984375, -0.005931854248046875, 0.01204681396484375 ]
bd19644d970f8830b5b61d56cebab9f749cd4f6d
Wordpress Stackexchange Q: How to delete woo commerce order pragmatically? I am trying to delete an order from database i was tried using bellow function but this is not working.can any body tell me how to delete an order from db using order id. <?php wc_delete_order_item( absint( $order_id ) ); ?> A: Orders are just regular posts: wp_delete_post($order_id,true);
Q: How to delete woo commerce order pragmatically? I am trying to delete an order from database i was tried using bellow function but this is not working.can any body tell me how to delete an order from db using order id. <?php wc_delete_order_item( absint( $order_id ) ); ?> A: Orders are just regular posts: wp_delete_post($order_id,true);
wordpress
{ "language": "en", "length": 56, "provenance": "stackexchange_00019.jsonl.gz:458028", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/198174" }
[ 0.041168212890625, -0.00519561767578125, -0.01486968994140625, -0.0008726119995117188, 0.017059326171875, -0.046295166015625, 0.07550048828125, -0.0128631591796875, 0.069091796875, 0.018890380859375, -0.01470947265625, -0.049957275390625, 0.041595458984375, -0.0303802490234375, -0.0308380126953125, -0.01898193359375, 0.0478515625, -0.01361846923828125, 0.0572509765625, 0.0215606689453125, 0.0010309219360351562, 0.06158447265625, 0.04144287109375, 0.03924560546875, 0.0198211669921875, 0.03704833984375, 0.06591796875, -0.00948333740234375, 0.0298919677734375, -0.00318145751953125, 0.030181884765625, -0.061065673828125, -0.00904083251953125, 0.030487060546875, -0.00103759765625, -0.014984130859375, -0.0286865234375, 0.029937744140625, 0.0233612060546875, 0.0006709098815917969, 0.056121826171875, -0.031463623046875, 0.01220703125, -0.00994110107421875, 0.0002963542938232422, -0.0198211669921875, 0.03192138671875, -0.050537109375, 0.0200347900390625, 0.0241546630859375, 0.0251922607421875, 0.01233673095703125, 0.0270843505859375, -0.040008544921875, -0.0159759521484375, -0.024078369140625, -0.02392578125, 0.0308837890625, 0.023712158203125, 0.02880859375, -0.0123138427734375, 0.0156097412109375, 0.004062652587890625, -0.0296478271484375, 0.0133819580078125, -0.0027484893798828125, 0.0225677490234375, 0.026092529296875, -0.0528564453125, 0.006866455078125, 0.04656982421875, -0.0279998779296875, -0.01320648193359375, -0.0010137557983398438, 0.006061553955078125, -0.01302337646484375, 0.01727294921875, -0.01059722900390625, 0.00255584716796875, 0.038787841796875, 0.033416748046875, -0.01351165771484375, -0.0286407470703125, 0.0213775634765625, -0.0243377685546875, 0.01357269287109375, -0.00020039081573486328, -0.027008056640625, -0.03070068359375, -0.0305633544921875, -0.020843505859375, -0.0467529296875, -0.007511138916015625, -0.01302337646484375, -0.05194091796875, -0.0185546875, 0.0217132568359375, 0.035797119140625, -0.0094757080078125, -0.005645751953125, 0.033203125, -0.045989990234375, 0.0034847259521484375, -0.0224151611328125, -0.013641357421875, 0.0020008087158203125, 0.00897216796875, 0.00916290283203125, 0.0037860870361328125, 0.0233306884765625, -0.0175018310546875, 0.013275146484375, 0.00605010986328125, -0.051483154296875, 0.00939178466796875, 0.0210113525390625, -0.0207977294921875, 0.05230712890625, 0.0237579345703125, 0.00608062744140625, -0.01715087890625, 0.005176544189453125, -0.0216827392578125, -0.03656005859375, -0.0270843505859375, -0.052154541015625, -0.012420654296875, 0.0060577392578125, -0.00528717041015625, -0.0276031494140625, -0.036834716796875, 0.04168701171875, 0.06982421875, 0.0311279296875, 0.00557708740234375, 0.0032100677490234375, 0.007381439208984375, 0.0300445556640625, 0.03326416015625, -0.04339599609375, 0.08056640625, 0.00020456314086914062, -0.021209716796875, 0.06744384765625, 0.01209259033203125, 0.047943115234375, 0.01291656494140625, -0.01873779296875, 0.0153045654296875, 0.01093292236328125, -0.0791015625, 0.0129241943359375, 0.026611328125, 0.005741119384765625, 0.037139892578125, -0.0015163421630859375, 0.06597900390625, -0.0298919677734375, -0.02410888671875, -0.04180908203125, -0.047698974609375, -0.0251617431640625, 0.039031982421875, -0.04522705078125, -0.0361328125, 0.0396728515625, -0.0323486328125, -0.00927734375, 0.032745361328125, 0.02099609375, -0.0010251998901367188, -0.060028076171875, 0.033966064453125, 0.0170440673828125, -0.0150604248046875, 0.0533447265625, 0.0189666748046875, -0.034393310546875, -0.0141143798828125, 0.04876708984375, -0.022979736328125, -0.033172607421875, -0.053070068359375, 0.004940032958984375, -0.046875, 0.00704193115234375, 0.033966064453125, 0.058441162109375, -0.005512237548828125, 0.0248260498046875, 0.05645751953125, 0.0029087066650390625, -0.0168304443359375, 0.030426025390625, 0.0111083984375, -0.046722412109375, -0.035308837890625, -0.03033447265625, -0.01171112060546875, -0.0110321044921875, -0.00258636474609375, -0.01157379150390625, 0.0126800537109375, 0.020233154296875, -0.022125244140625, -0.005771636962890625, -0.0081939697265625, 0.0156097412109375, -0.020660400390625, -0.0032978057861328125, 0.0380859375, 0.0166778564453125, -0.0657958984375, 0.005413055419921875, -0.027923583984375, 0.0014467239379882812, -0.01396942138671875, 0.02984619140625, -0.0077972412109375, 0.050140380859375, -0.045196533203125, -0.025360107421875, -0.036041259765625, -0.0095977783203125, 0.0177154541015625, -0.0032405853271484375, -0.01219940185546875, -0.017913818359375, 0.0714111328125, -0.0246124267578125, 0.053375244140625, 0.0163116455078125, 0.03936767578125, 0.029815673828125, 0.0016021728515625, -0.0225830078125, 0.010833740234375, -0.16552734375, 0.030181884765625, 0.07403564453125, 0.01216888427734375, 0.0192108154296875, -0.032440185546875, 0.0122528076171875, 0.01194000244140625, -0.0308990478515625, 0.00420379638671875, 0.0165557861328125, -0.01190948486328125, -0.0203399658203125, -0.015777587890625, -0.01453399658203125, 0.0423583984375, 0.01397705078125, 0.0152130126953125, 0.0372314453125, -0.0009765625, -0.01483154296875, 0.00926971435546875, 0.0220947265625, -0.003787994384765625, 0.0113525390625, -0.005767822265625, 0.004238128662109375, 0.0285797119140625, -0.01198577880859375, 0.047149658203125, 0.0235137939453125, -0.03509521484375, 0.0015716552734375, 0.02325439453125, 0.01541900634765625, 0.01593017578125, 0.0201263427734375, -0.03125, -0.01291656494140625, -0.0237579345703125, 0.0074462890625, 0.0038242340087890625, -0.0139312744140625, -0.002895355224609375, 0.003753662109375, 0.025604248046875, -0.00466156005859375, 0.01456451416015625, 0.0029697418212890625, 0.03131103515625, 0.00031757354736328125, -0.032501220703125, -0.01666259765625, 0.00943756103515625, 0.044097900390625, -0.0208282470703125, 0.0272369384765625, -0.0125579833984375, -0.0016984939575195312, 0.038238525390625, -0.00794219970703125, 0.0205841064453125, -0.0304107666015625, 0.000018537044525146484, 0.0426025390625, -0.0201568603515625, 0.0018720626831054688, 0.024658203125, -0.0270843505859375, 0.060333251953125, -0.001155853271484375, 0.0123748779296875, 0.045684814453125, -0.0543212890625, 0.0259552001953125, 0.0224151611328125, 0.05584716796875, 0.0005197525024414062, -0.030059814453125, 0.034820556640625, 0.036285400390625, -0.06378173828125, -0.116943359375, -0.010894775390625, 0.004261016845703125, -0.0237579345703125, 0.00457763671875, 0.00299835205078125, 0.00659942626953125, -0.0181732177734375, -0.010894775390625, 0.00737762451171875, -0.0008440017700195312, -0.00969696044921875, -0.013763427734375, -0.04827880859375, -0.01467132568359375, -0.0029468536376953125, 0.006671905517578125, 0.0012607574462890625, 0.046722412109375, -0.002773284912109375, -0.04620361328125, -0.0121307373046875, -0.003368377685546875, -0.012725830078125, 0.003387451171875, 0.01953125, -0.034088134765625, -0.0135498046875, 0.007640838623046875, 0.0479736328125, 0.00682830810546875, -0.0215606689453125, -0.01099395751953125, 0.0062713623046875, 0.033966064453125, 0.034637451171875, -0.047576904296875, -0.0289306640625, 0.019561767578125, -0.018585205078125, -0.039764404296875, -0.006683349609375, -0.01605224609375, -0.017486572265625, 0.0247344970703125, -0.0036106109619140625, 0.0007929801940917969, -0.01280975341796875, 0.040313720703125, 0.07525634765625, 0.053375244140625, -0.027557373046875, 0.020263671875, -0.00827789306640625, 0.0232391357421875, 0.045928955078125, -0.0109100341796875, 0.05487060546875, -0.006351470947265625, -0.007678985595703125, 0.023834228515625, 0.0103607177734375, -0.01047515869140625, -0.007720947265625, -0.05224609375, -0.033172607421875, 0.039520263671875, -0.0194244384765625, 0.0156707763671875, -0.025787353515625, -0.02935791015625, 0.0015010833740234375, 0.08917236328125, 0.040435791015625, -0.04718017578125, -0.00574493408203125, 0.01227569580078125, -0.026824951171875, -0.01042938232421875, 0.03082275390625, -0.0121307373046875, -0.05615234375, -0.00582122802734375, -0.015716552734375, -0.0114898681640625, -0.01219940185546875, -0.00553131103515625, -0.046875, -0.0518798828125, 0.05511474609375, -0.08831787109375, 0.03656005859375, 0.060089111328125, 0.01352691650390625, 0.00827789306640625, -0.042388916015625, -0.0521240234375, 0.005115509033203125, 0.01345062255859375, -0.0335693359375, -0.00992584228515625, 0.024810791015625, 0.0312347412109375, -0.01314544677734375, 0.007648468017578125, -0.0164031982421875, 0.04022216796875, -0.017425537109375, 0.005817413330078125, -0.041717529296875, -0.0157928466796875, -0.0068511962890625, -0.02587890625, -0.01094818115234375, -0.02166748046875, -0.0019550323486328125, 0.038238525390625, -0.024139404296875, 0.055633544921875, -0.02838134765625, -0.0004730224609375, -0.0875244140625, -0.034912109375, -0.01464080810546875, 0.029449462890625, -0.0218658447265625, 0.01078033447265625, -0.04217529296875, -0.0888671875, 0.0357666015625, -0.009796142578125, -0.01293182373046875, 0.009918212890625, 0.0304107666015625, 0.0025634765625, -0.0146484375, -0.044281005859375, 0.01194000244140625, 0.0258026123046875, -0.00533294677734375, 0.018035888671875, -0.0057220458984375, 0.0026950836181640625, 0.015106201171875, -0.00588226318359375, -0.0012502670288085938, -0.0362548828125, 0.060089111328125, -0.0252838134765625, -0.019317626953125, 0.02001953125, -0.047088623046875, 0.041900634765625, 0.0106353759765625, -0.0036220550537109375, -0.034149169921875, 0.018585205078125, 0.03875732421875, -0.016632080078125, 0.022735595703125, -0.015380859375, -0.0131683349609375, 0.00421905517578125, 0.007808685302734375, 0.0218353271484375, 0.0255126953125, 0.0028076171875, 0.005279541015625, 0.01288604736328125, 0.0289764404296875, -0.0296478271484375, 0.0213165283203125, -0.045654296875, 0.0360107421875, -0.01126861572265625, 0.0032176971435546875, -0.0201568603515625, -0.0159759521484375, 0.0655517578125, 0.00971221923828125, -0.0254364013671875, -0.0013217926025390625, -0.008758544921875, 0.0149078369140625, 0.01227569580078125, -0.0594482421875, -0.0024433135986328125, 0.04193115234375, 0.01116180419921875, 0.01329803466796875, -0.036651611328125, 0.017913818359375, -0.01227569580078125, 0.024993896484375, -0.01209259033203125, -0.0002620220184326172, 0.034393310546875, 0.039947509765625, -0.0174407958984375, 0.03912353515625, -0.01158905029296875, 0.0614013671875, 0.0057830810546875, 0.040618896484375, -0.017364501953125, 0.007472991943359375, 0.023712158203125, -0.00034546852111816406, -0.0177764892578125, -0.034332275390625, -0.034576416015625, 0.0064544677734375, 0.004924774169921875, 0.00489044189453125, 0.01103973388671875, 0.030487060546875, 0.0110626220703125, -0.0125885009765625, 0.0111541748046875, 0.01446533203125, -0.0136871337890625, 0.00018286705017089844, 0.0084075927734375, 0.0182342529296875, 0.01001739501953125, 0.021209716796875, -0.01523590087890625, -0.001766204833984375, 0.0279693603515625, -0.0305938720703125, 0.037445068359375, -0.02923583984375, -0.049652099609375, 0.0031414031982421875, -0.018402099609375, -0.026885986328125, 0.023406982421875, 0.0017795562744140625, -0.0210418701171875, -0.0222625732421875, 0.051116943359375, -0.01177978515625, 0.037506103515625, -0.016021728515625, -0.0138397216796875, -0.01361083984375, 0.014190673828125, 0.033447265625, 0.0179443359375, 0.00766754150390625, -0.032989501953125, -0.04583740234375, -0.034332275390625, -0.02703857421875, -0.0161285400390625, -0.0192718505859375, 0.01983642578125, -0.029937744140625, 0.00933837890625, -0.00913238525390625, 0.016326904296875, -0.0190887451171875, 0.00780487060546875, -0.0025310516357421875, -0.0219879150390625, -0.018402099609375, 0.04669189453125, -0.0193023681640625, 0.02996826171875, 0.0007882118225097656, 0.0184478759765625, 0.007427215576171875, -0.0225677490234375, 0.014801025390625, -0.01070404052734375, -0.0245361328125, -0.035003662109375, -0.0195770263671875, -0.01070404052734375, 0.0330810546875, -0.0088653564453125, 0.030670166015625, -0.035980224609375, -0.01009368896484375, -0.026336669921875, 0.014801025390625, -0.062469482421875, 0.0083770751953125, -0.032318115234375, -0.04461669921875, 0.01898193359375, 0.0404052734375, 0.051422119140625, -0.036346435546875, -0.0418701171875, -0.0186614990234375, 0.042449951171875, -0.021514892578125, 0.03387451171875, 0.0283203125, 0.0017547607421875, 0.01068878173828125, -0.01898193359375, -0.00028586387634277344, -0.0308685302734375, 0.0157012939453125, -0.0160980224609375, -0.0221099853515625, 0.050262451171875, 0.0020160675048828125, -0.025970458984375, 0.0316162109375, -0.03009033203125, 0.041259765625, 0.0833740234375, 0.0830078125, -0.1448974609375, 0.0253448486328125, 0.025238037109375, 0.0035533905029296875, 0.045928955078125, -0.015960693359375, 0.001201629638671875, 0.0024929046630859375, 0.0546875, 0.0175323486328125, -0.02166748046875, 0.017852783203125, 0.009124755859375, 0.0177764892578125, -0.00986480712890625, 0.0217437744140625, -0.0008058547973632812, -0.054718017578125, -0.024017333984375, 0.06689453125, -0.02545166015625, -0.034271240234375, 0.033935546875, 0.023345947265625, 0.0275726318359375, -0.0306243896484375, 0.0819091796875, -0.00783538818359375, 0.01116180419921875, 0.04254150390625, -0.0201263427734375, -0.0184783935546875, 0.044158935546875, -0.02227783203125, -0.00852203369140625, 0.0195465087890625, -0.046417236328125, -0.0440673828125, -0.0264739990234375, 0.0226287841796875, 0.02581787109375, -0.08905029296875, 0.033233642578125, -0.054534912109375, 0.003875732421875, -0.0135345458984375, -0.0258331298828125, 0.042266845703125, -0.074462890625, 0.0197906494140625, 0.0192413330078125, 0.06573486328125, 0.007232666015625, -0.007305145263671875, 0.034423828125, 0.0057220458984375, 0.0292510986328125, -0.0038089752197265625, 0.0216522216796875, -0.0234222412109375, -0.022918701171875, -0.08349609375, 0.06048583984375, -0.022705078125, 0.03729248046875, -0.02301025390625, 0.0164794921875, 0.0174560546875, 0.0036449432373046875, -0.04254150390625, 0.03289794921875, -0.0211029052734375, 0.00359344482421875, -0.024871826171875, 0.01268768310546875, -0.020263671875, 0.01100921630859375, 0.01678466796875, -0.007781982421875, -0.0142059326171875, -0.0162506103515625, 0.036468505859375, 0.0284881591796875, 0.0164031982421875, 0.0269317626953125, -0.00762176513671875, -0.00909423828125, 0.03753662109375, -0.01450347900390625, 0.0290985107421875, -0.00574493408203125, -0.00827789306640625, -0.00031757354736328125, 0.01291656494140625, -0.0019311904907226562, 0.004138946533203125, 0.01290130615234375, -0.0024967193603515625, -0.00041604042053222656, -0.00020956993103027344, -0.031951904296875, 0.0304412841796875, 0.0226287841796875, 0.0694580078125, -0.049285888671875, -0.040283203125, -0.005828857421875, 0.04803466796875, 0.031402587890625, 0.0279388427734375, 0.04095458984375, 0.0266571044921875, 0.029754638671875, -0.0305023193359375, 0.01383209228515625, 0.0013904571533203125, -0.032318115234375, 0.03228759765625, 0.042816162109375, 0.005268096923828125, -0.03466796875, -0.00490570068359375, 0.058685302734375, 0.0440673828125, -0.038787841796875, 0.0204620361328125, 0.01120758056640625, 0.00028777122497558594, 0.0233154296875, -0.04779052734375, 0.03839111328125, -0.058837890625, -0.06475830078125, -0.005229949951171875, 0.0302581787109375, 0.031768798828125, 0.036224365234375, 0.0283966064453125, 0.05364990234375, -0.13232421875, -0.004848480224609375, -0.007781982421875, 0.0022106170654296875, 0.012725830078125, -0.0220794677734375, -0.028045654296875, 0.048187255859375, 0.0209808349609375, 0.015350341796875, 0.002933502197265625, 0.043792724609375, 0.0137176513671875, -0.01953125, -0.04693603515625, -0.0577392578125, 0.02197265625, 0.037567138671875, -0.01131439208984375, 0.06414794921875, 0.07183837890625, 0.06488037109375, 0.0038318634033203125, -0.0175628662109375, 0.06890869140625, -0.0123443603515625, -0.0276336669921875, 0.00829315185546875, -0.04931640625, 0.00434112548828125, -0.02557373046875, 0.0188751220703125, 0.040924072265625, -0.01983642578125, -0.037078857421875, 0.03363037109375, -0.0106201171875, -0.0033550262451171875, 0.04290771484375, -0.022216796875, -0.0021991729736328125, -0.017425537109375, -0.000911712646484375, -0.005584716796875, -0.052459716796875, 0.07806396484375, -0.01491546630859375, -0.0037860870361328125, 0.005706787109375, 0.06103515625, 0.011260986328125, -0.0150604248046875, 0.01486968994140625, 0.0193328857421875, -0.00868988037109375, 0.01300048828125, 0.038970947265625, -0.00511932373046875, -0.0465087890625, -0.037384033203125, 0.00843048095703125, 0.03466796875, 0.00519561767578125, -0.03338623046875, 0.0251007080078125, 0.01541900634765625, -0.0028018951416015625, 0.037078857421875, -0.0145111083984375, -0.0175628662109375, 0.05474853515625, 0.0151824951171875, -0.0016107559204101562, -0.0178680419921875, -0.007640838623046875, 0.007007598876953125, 0.040130615234375, -0.03668212890625, -0.007476806640625, -0.0318603515625, 0.033721923828125, -0.002056121826171875, 0.03631591796875, -0.0034656524658203125, -0.0191802978515625, -0.0214080810546875, -0.009674072265625, 0.043426513671875, 0.0556640625, 0.004154205322265625, 0.039794921875, -0.00727081298828125, -0.01045989990234375, 0.0219879150390625, -0.048004150390625, 0.0226593017578125, 0.02642822265625, -0.0204010009765625, 0.0008406639099121094, 0.0384521484375, -0.0008158683776855469, 0.0033283233642578125, 0.0304107666015625, 0.01290130615234375, 0.035003662109375, -0.0201416015625, 0.0007524490356445312, -0.00994110107421875, 0.00969696044921875, -0.004825592041015625, -0.0154571533203125, -0.003932952880859375, -0.0080108642578125, -0.0264739990234375, 0.054351806640625, 0.001285552978515625, 0.01434326171875, -0.0264892578125, -0.0224151611328125, 0.012237548828125, -0.049224853515625, -0.01146697998046875, -0.040374755859375, 0.023956298828125, 0.003543853759765625, -0.0087738037109375, -0.0158843994140625, 0.0092315673828125, -0.01580810546875, 0.01148223876953125, -0.005428314208984375, -0.0036163330078125, 0.0030078887939453125, -0.0307159423828125, -0.034454345703125, -0.041351318359375, 0.0283050537109375, -0.0299835205078125, 0.01235198974609375, -0.0006504058837890625, -0.02825927734375, -0.00020956993103027344, 0.0012922286987304688, 0.042999267578125, 0.0450439453125, 0.06915283203125, -0.050872802734375, 0.0153656005859375, -0.0005135536193847656, 0.02130126953125, -0.02093505859375, -0.005779266357421875, -0.04296875, 0.0029926300048828125, -0.058135986328125, 0.024932861328125, 0.0284271240234375, -0.039825439453125, -0.0740966796875, 0.07049560546875, -0.02508544921875, -0.0264739990234375, -0.0325927734375, -0.00972747802734375, -0.0139617919921875, -0.00966644287109375, -0.0265350341796875, -0.01120758056640625, -0.0240936279296875, 0.040496826171875, -0.01474761962890625, 0.034423828125, 0.0033740997314453125, -0.0165252685546875, 0.0298004150390625, 0.0245361328125, 0.027557373046875, -0.0164794921875, 0.00382232666015625, -0.011260986328125, 0.018463134765625, 0.045166015625, -0.0133056640625, -0.0153045654296875, 0.01513671875, -0.0254974365234375, 0.0035552978515625, -0.01251983642578125, 0.0175628662109375, 0.0296173095703125, 0.033966064453125, 0.032073974609375, 0.0043487548828125, -0.0389404296875, -0.0017528533935546875, -0.0289154052734375, -0.0196075439453125, -0.0321044921875, 0.01160430908203125, -0.050140380859375, -0.002758026123046875, -0.00969696044921875, -0.0289154052734375, 0.003612518310546875, 0.01023101806640625, -0.03533935546875, -0.00049591064453125, -0.01514434814453125, -0.043121337890625, -0.012603759765625, 0.042083740234375, 0.005710601806640625, -0.017303466796875, 0.012359619140625, -0.052093505859375, 0.00533294677734375, -0.0027370452880859375, -0.0606689453125, -0.0225982666015625, -0.072021484375, -0.00289154052734375, 0.042938232421875, -0.0252532958984375, 0.0282135009765625, -0.037322998046875, -0.0312347412109375, -0.020660400390625, 0.0284423828125, 0.011962890625, 0.0184326171875, -0.027618408203125, 0.055145263671875, 0.0260162353515625, 0.0258636474609375, -0.01111602783203125, 0.007633209228515625, -0.006839752197265625, 0.032379150390625, 0.017120361328125, -0.0233917236328125, 0.06903076171875, -0.055572509765625, -0.0116729736328125, -0.0041961669921875, -0.0147247314453125, -0.08990478515625, 0.0404052734375, 0.05206298828125, 0.0291290283203125, 0.040008544921875 ]
90479995713938e4be16a5a3697e97b1484f3e6f
Wordpress Stackexchange Q: Adding a menu item for a Custom Post Archive I've created a Custom Post type (project) and it works perfectly. I have a custom archive page (archive-project.php), and that works great, too, but what's the best way to add a link to that custom post archive in the site's primary menu? I've created a Custom Link (see below), but is there a better way that isn't so hard coded? A: You can use a built in function of the menu editor for this. Go to your Custom Post Type in the Menu editor, click the "view all" tab and the first item you see is a link to the CPT archive page. In case your CPT does not appear in the Menu editor please check whether your CPT has archives enabled ('has_archive' => true in the register_post_type-arguments). When you are sure that archives are enabled and your CPT is still not visible you can reveal it through the Screen Options menu at the top of the screen (thanks, Nathan Hornby).
Q: Adding a menu item for a Custom Post Archive I've created a Custom Post type (project) and it works perfectly. I have a custom archive page (archive-project.php), and that works great, too, but what's the best way to add a link to that custom post archive in the site's primary menu? I've created a Custom Link (see below), but is there a better way that isn't so hard coded? A: You can use a built in function of the menu editor for this. Go to your Custom Post Type in the Menu editor, click the "view all" tab and the first item you see is a link to the CPT archive page. In case your CPT does not appear in the Menu editor please check whether your CPT has archives enabled ('has_archive' => true in the register_post_type-arguments). When you are sure that archives are enabled and your CPT is still not visible you can reveal it through the Screen Options menu at the top of the screen (thanks, Nathan Hornby).
wordpress
{ "language": "en", "length": 171, "provenance": "stackexchange_00019.jsonl.gz:458038", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/198213" }
[ 0.1016845703125, 0.0031909942626953125, 0.048858642578125, 0.018157958984375, 0.01552581787109375, -0.037506103515625, 0.092529296875, -0.064208984375, -0.02032470703125, 0.01226806640625, 0.0165557861328125, -0.00368499755859375, -0.032562255859375, -0.0440673828125, 0.0064849853515625, -0.0237274169921875, 0.03399658203125, -0.009124755859375, 0.0224151611328125, -0.0224151611328125, 0.005153656005859375, 0.004604339599609375, 0.01125335693359375, 0.04150390625, 0.013763427734375, 0.00902557373046875, 0.03472900390625, 0.0020351409912109375, 0.0241851806640625, 0.01528167724609375, 0.022918701171875, -0.061737060546875, 0.0192108154296875, 0.000370025634765625, 0.0208587646484375, 0.033416748046875, 0.00341033935546875, 0.00746917724609375, 0.01120758056640625, 0.01544952392578125, 0.0007033348083496094, 0.0209503173828125, 0.0013065338134765625, -0.0006117820739746094, -0.006290435791015625, -0.036285400390625, -0.0026836395263671875, -0.034149169921875, 0.000720977783203125, -0.035552978515625, 0.0188751220703125, 0.017303466796875, 0.0350341796875, -0.01873779296875, -0.006744384765625, 0.023101806640625, 0.010711669921875, -0.053619384765625, 0.0166015625, 0.011138916015625, -0.0020923614501953125, -0.00008624792098999023, 0.03070068359375, -0.008880615234375, 0.00812530517578125, 0.00823974609375, 0.052337646484375, 0.00484466552734375, -0.0794677734375, -0.01013946533203125, 0.048309326171875, -0.034698486328125, 0.0243988037109375, 0.0007615089416503906, -0.030609130859375, -0.041351318359375, 0.015167236328125, -0.04193115234375, 0.0209197998046875, -0.00792694091796875, -0.0154571533203125, -0.0006351470947265625, 0.003826141357421875, -0.020416259765625, -0.00571441650390625, -0.01294708251953125, -0.0283660888671875, -0.004486083984375, -0.00860595703125, -0.0212554931640625, -0.0163116455078125, -0.03338623046875, -0.00936126708984375, 0.01641845703125, -0.007415771484375, -0.03533935546875, 0.036407470703125, 0.045928955078125, -0.0113525390625, 0.0232696533203125, -0.0021457672119140625, -0.041351318359375, 0.06793212890625, -0.0496826171875, -0.00191497802734375, 0.02935791015625, 0.02862548828125, 0.01666259765625, 0.0239105224609375, 0.002330780029296875, -0.0195159912109375, 0.01824951171875, -0.01552581787109375, -0.0361328125, 0.0036754608154296875, 0.0300445556640625, -0.03192138671875, 0.00933837890625, 0.001194000244140625, 0.0140838623046875, 0.00069427490234375, 0.01187896728515625, 0.022430419921875, 0.0106201171875, -0.0109100341796875, 0.00421142578125, 0.00415802001953125, -0.041748046875, -0.0015134811401367188, 0.0303192138671875, -0.0143280029296875, 0.01381683349609375, 0.0294036865234375, 0.01494598388671875, -0.0164642333984375, -0.02252197265625, 0.0135498046875, -0.0279083251953125, -0.0176239013671875, 0.004199981689453125, 0.029296875, 0.0014495849609375, 0.00836944580078125, -0.0100860595703125, -0.006134033203125, 0.036376953125, 0.0107269287109375, -0.0027332305908203125, -0.0095977783203125, -0.046661376953125, 0.004840850830078125, -0.0416259765625, 0.0462646484375, 0.00273895263671875, -0.033538818359375, -0.032684326171875, -0.005893707275390625, -0.0247344970703125, 0.0025482177734375, -0.023162841796875, -0.0200958251953125, -0.0138092041015625, -0.0104217529296875, -0.04791259765625, -0.042236328125, 0.028564453125, -0.006221771240234375, 0.01061248779296875, 0.0285491943359375, 0.0433349609375, 0.01031494140625, -0.05682373046875, 0.0225372314453125, 0.00887298583984375, -0.030914306640625, 0.0270233154296875, 0.0288848876953125, 0.01093292236328125, -0.004199981689453125, 0.08966064453125, 0.021575927734375, -0.0295257568359375, 0.053253173828125, -0.039459228515625, -0.0477294921875, 0.0222320556640625, 0.0147247314453125, 0.08837890625, 0.0036487579345703125, 0.03814697265625, -0.01360321044921875, 0.0240325927734375, -0.0201416015625, -0.0216522216796875, -0.0011129379272460938, -0.0318603515625, 0.00647735595703125, -0.0260467529296875, -0.00482177734375, 0.0340576171875, -0.092529296875, 0.007476806640625, -0.01654052734375, 0.04132080078125, -0.040008544921875, 0.037994384765625, -0.0263824462890625, 0.0478515625, 0.029388427734375, -0.00461578369140625, -0.01140594482421875, -0.0157012939453125, 0.020050048828125, -0.059906005859375, -0.039215087890625, 0.03045654296875, 0.0118865966796875, -0.00614166259765625, -0.01209259033203125, -0.0182342529296875, -0.00902557373046875, -0.001667022705078125, -0.0154876708984375, 0.046966552734375, 0.04327392578125, 0.006710052490234375, -0.035308837890625, -0.01151275634765625, -0.0033626556396484375, 0.03289794921875, -0.07623291015625, 0.0228729248046875, 0.055755615234375, 0.0041656494140625, -0.034210205078125, -0.010711669921875, -0.0188140869140625, -0.06683349609375, -0.00616455078125, 0.06634521484375, 0.00594329833984375, 0.0307769775390625, -0.01114654541015625, 0.041473388671875, 0.0343017578125, 0.006999969482421875, 0.017181396484375, 0.01328277587890625, -0.0030384063720703125, 0.0026950836181640625, 0.0264892578125, -0.01690673828125, 0.0240478515625, -0.0012493133544921875, 0.0174407958984375, 0.01885986328125, 0.02783203125, 0.01515960693359375, 0.019073486328125, -0.02752685546875, 0.006092071533203125, 0.041534423828125, -0.0253448486328125, 0.02374267578125, 0.036529541015625, 0.04498291015625, 0.059906005859375, 0.0465087890625, -0.0433349609375, 0.02679443359375, 0.004608154296875, 0.0168609619140625, -0.0026073455810546875, -0.0012140274047851562, 0.0447998046875, 0.0045013427734375, -0.0309295654296875, -0.00628662109375, 0.035614013671875, 0.0006852149963378906, -0.03594970703125, -0.00795745849609375, -0.01276397705078125, -0.00461578369140625, -0.005985260009765625, -0.07373046875, 0.0293121337890625, 0.00905609130859375, -0.039306640625, -0.0305023193359375, 0.030059814453125, -0.0268402099609375, -0.02508544921875, -0.01483917236328125, -0.00927734375, -0.036956787109375, 0.0272064208984375, -0.046173095703125, 0.041473388671875, -0.036407470703125, 0.05303955078125, 0.06500244140625, -0.0311431884765625, 0.025726318359375, 0.0014476776123046875, -0.005962371826171875, -0.0267181396484375, 0.03643798828125, -0.0010023117065429688, -0.048065185546875, -0.0025577545166015625, 0.01873779296875, 0.021759033203125, -0.003650665283203125, 0.00591278076171875, -0.0156402587890625, -0.022247314453125, 0.008087158203125, -0.09259033203125, -0.06573486328125, 0.042022705078125, -0.11376953125, 0.04132080078125, 0.00849151611328125, -0.06256103515625, -0.05242919921875, 0.09173583984375, 0.017333984375, 0.01181793212890625, -0.03582763671875, -0.0173797607421875, -0.049468994140625, -0.042633056640625, -0.01959228515625, 0.0032806396484375, -0.0053558349609375, 0.007274627685546875, 0.039520263671875, 0.007465362548828125, -0.056304931640625, 0.0311737060546875, -0.0232696533203125, -0.010223388671875, 0.0433349609375, 0.0751953125, -0.0286865234375, -0.00267791748046875, 0.0233001708984375, 0.055908203125, 0.061798095703125, -0.079345703125, -0.0194549560546875, -0.0121612548828125, 0.02484130859375, 0.0281829833984375, 0.040374755859375, 0.0191497802734375, 0.042999267578125, 0.047271728515625, -0.019378662109375, -0.0236053466796875, -0.005199432373046875, -0.0217742919921875, -0.023468017578125, -0.00958251953125, 0.0131378173828125, -0.06488037109375, 0.058990478515625, -0.0226898193359375, 0.0001609325408935547, 0.07952880859375, -0.033447265625, -0.004497528076171875, -0.02392578125, -0.031829833984375, -0.0318603515625, 0.057708740234375, -0.0236968994140625, 0.007709503173828125, 0.030487060546875, -0.013641357421875, 0.00160980224609375, -0.030609130859375, -0.0102691650390625, -0.057769775390625, 0.0426025390625, -0.0200042724609375, 0.043609619140625, -0.037017822265625, -0.03369140625, 0.00490570068359375, 0.1031494140625, -0.05169677734375, -0.03741455078125, -0.0117034912109375, 0.0094451904296875, 0.050323486328125, -0.024169921875, 0.02203369140625, -0.04473876953125, -0.04840087890625, 0.0117034912109375, 0.0027675628662109375, -0.0269622802734375, -0.016845703125, 0.01439666748046875, -0.040679931640625, -0.0285186767578125, 0.042999267578125, -0.054290771484375, 0.01593017578125, 0.029052734375, -0.00890350341796875, -0.0157470703125, -0.039154052734375, -0.02923583984375, -0.09136962890625, -0.010986328125, -0.0455322265625, 0.053192138671875, 0.034698486328125, -0.046966552734375, -0.00922393798828125, 0.0296630859375, 0.038848876953125, 0.0274810791015625, 0.009429931640625, -0.01555633544921875, -0.00592041015625, -0.035888671875, -0.004756927490234375, -0.040863037109375, 0.014068603515625, -0.0050201416015625, -0.039337158203125, -0.0030956268310546875, -0.03961181640625, -0.01593017578125, 0.0088958740234375, -0.043792724609375, -0.0677490234375, -0.036163330078125, -0.00467681884765625, 0.01520538330078125, 0.0219573974609375, -0.0240936279296875, -0.035858154296875, -0.06927490234375, -0.028656005859375, -0.010986328125, -0.04461669921875, 0.03826904296875, 0.0205535888671875, 0.0218505859375, -0.01027679443359375, -0.042510986328125, 0.02459716796875, 0.025665283203125, -0.03240966796875, 0.060394287109375, 0.03851318359375, 0.01324462890625, 0.0018892288208007812, -0.0142974853515625, -0.0037441253662109375, -0.0224761962890625, 0.055908203125, 0.01428985595703125, 0.012969970703125, -0.0015468597412109375, -0.01067352294921875, 0.01256561279296875, -0.0024871826171875, -0.0037326812744140625, -0.0394287109375, 0.0020465850830078125, 0.052703857421875, -0.01491546630859375, 0.042205810546875, -0.034698486328125, 0.01641845703125, -0.004852294921875, 0.006420135498046875, 0.0712890625, 0.0216522216796875, -0.005596160888671875, 0.010040283203125, 0.0017824172973632812, 0.00868988037109375, -0.0194244384765625, -0.0207366943359375, 0.01270294189453125, 0.0268096923828125, -0.01015472412109375, 0.03173828125, -0.0164794921875, -0.003681182861328125, 0.039642333984375, 0.007465362548828125, -0.02191162109375, -0.037445068359375, -0.00397491455078125, 0.033538818359375, 0.004802703857421875, 0.0020198822021484375, 0.058624267578125, 0.033447265625, -0.036590576171875, 0.0020008087158203125, -0.01148223876953125, -0.0023250579833984375, -0.05706787109375, 0.02154541015625, 0.012359619140625, -0.007160186767578125, 0.001735687255859375, 0.052886962890625, 0.019500732421875, 0.0142822265625, -0.0218353271484375, 0.0166473388671875, 0.034423828125, 0.034149169921875, 0.021636962890625, -0.0308837890625, -0.033966064453125, 0.035125732421875, -0.00551605224609375, -0.01149749755859375, 0.009246826171875, -0.02008056640625, 0.038360595703125, -0.0032558441162109375, -0.030181884765625, 0.03948974609375, -0.06329345703125, -0.018585205078125, 0.00011622905731201172, -0.00975799560546875, -0.049041748046875, -0.0067901611328125, 0.003452301025390625, -0.00466156005859375, -0.00930023193359375, -0.043731689453125, 0.05841064453125, -0.033050537109375, 0.04071044921875, -0.0136871337890625, -0.0207366943359375, 0.02252197265625, 0.023956298828125, 0.00843048095703125, -0.020233154296875, -0.0103607177734375, 0.022979736328125, 0.007770538330078125, -0.0276031494140625, -0.007190704345703125, 0.02783203125, -0.038299560546875, -0.0029430389404296875, -0.002582550048828125, -0.007686614990234375, 0.0010089874267578125, 0.0231781005859375, 0.0406494140625, 0.0103759765625, -0.024322509765625, 0.007480621337890625, -0.016387939453125, -0.01163482666015625, 0.01033782958984375, -0.037139892578125, -0.0294189453125, -0.0284576416015625, 0.025970458984375, 0.020477294921875, 0.01442718505859375, -0.016387939453125, -0.033843994140625, 0.0206756591796875, 0.0379638671875, 0.04107666015625, -0.00341796875, 0.08282470703125, -0.00881195068359375, 0.0892333984375, 0.00885009765625, 0.0285186767578125, -0.032958984375, -0.025543212890625, 0.01123046875, -0.04193115234375, -0.021942138671875, -0.024566650390625, 0.0096893310546875, 0.049041748046875, 0.0389404296875, 0.003978729248046875, -0.012298583984375, -0.0261993408203125, -0.00916290283203125, -0.01904296875, 0.08709716796875, -0.00965118408203125, -0.0024814605712890625, 0.0372314453125, -0.01428985595703125, 0.036865234375, 0.0200347900390625, -0.003894805908203125, 0.00020611286163330078, -0.005290985107421875, 0.0220489501953125, 0.0031070709228515625, -0.06732177734375, 0.0703125, 0.0948486328125, 0.017730712890625, 0.0489501953125, 0.00699615478515625, 0.0035686492919921875, 0.005672454833984375, -0.002147674560546875, -0.020416259765625, 0.0110321044921875, 0.024871826171875, -0.00620269775390625, -0.00217437744140625, 0.01279449462890625, -0.01331329345703125, -0.003238677978515625, 0.025299072265625, 0.0275421142578125, -0.048370361328125, -0.004894256591796875, -0.00876617431640625, -0.01378631591796875, 0.0145416259765625, 0.012664794921875, -0.00893402099609375, -0.0099945068359375, 0.0308380126953125, -0.059356689453125, -0.026580810546875, -0.009857177734375, -0.006015777587890625, 0.016693115234375, 0.00887298583984375, 0.0206146240234375, -0.005756378173828125, -0.03533935546875, -0.01529693603515625, 0.015960693359375, 0.00878143310546875, -0.00620269775390625, -0.00980377197265625, 0.0020885467529296875, -0.0091552734375, -0.028900146484375, 0.0270233154296875, -0.0751953125, 0.019683837890625, 0.03656005859375, 0.019317626953125, 0.022552490234375, 0.0305938720703125, 0.0019378662109375, 0.00286865234375, -0.006313323974609375, 0.0193939208984375, -0.01012420654296875, -0.040802001953125, -0.00501251220703125, 0.0293121337890625, 0.0234375, 0.01556396484375, 0.025543212890625, -0.057830810546875, -0.015380859375, 0.0020580291748046875, 0.12066650390625, -0.052215576171875, -0.02618408203125, 0.0106048583984375, 0.0115966796875, -0.012908935546875, -0.0006361007690429688, 0.025421142578125, -0.034271240234375, -0.019195556640625, 0.000008881092071533203, -0.0305328369140625, -0.0017156600952148438, -0.004940032958984375, 0.0284576416015625, 0.100830078125, -0.0494384765625, -0.049468994140625, 0.0421142578125, 0.0716552734375, 0.00516510009765625, 0.089599609375, -0.0233306884765625, 0.065185546875, -0.002567291259765625, 0.026458740234375, -0.06573486328125, -0.016998291015625, -0.0030612945556640625, 0.049468994140625, 0.020599365234375, 0.013671875, -0.04376220703125, 0.0186920166015625, 0.0469970703125, 0.0281219482421875, 0.0009870529174804688, 0.04315185546875, -0.01013946533203125, 0.00547027587890625, 0.01934814453125, 0.0018644332885742188, 0.03887939453125, 0.01548004150390625, -0.044677734375, 0.00835418701171875, 0.00838470458984375, 0.0013437271118164062, -0.01428985595703125, -0.0235748291015625, -0.01459503173828125, -0.00701904296875, -0.001537322998046875, 0.00658416748046875, -0.01568603515625, 0.0343017578125, 0.0243072509765625, -0.007564544677734375, -0.030853271484375, -0.0219268798828125, 0.0262908935546875, 0.0181427001953125, 0.0215301513671875, 0.002887725830078125, 0.00789642333984375, 0.00240325927734375, -0.045684814453125, -0.006832122802734375, 0.01268768310546875, -0.035888671875, 0.025634765625, 0.0207977294921875, 0.00806427001953125, -0.043914794921875, -0.0070953369140625, 0.043212890625, 0.055999755859375, -0.0386962890625, -0.03509521484375, 0.0196685791015625, 0.0102386474609375, -0.0067291259765625, 0.00977325439453125, 0.01129913330078125, 0.016815185546875, 0.0335693359375, -0.019744873046875, -0.0013093948364257812, -0.00911712646484375, 0.020050048828125, -0.01641845703125, -0.040863037109375, -0.0012350082397460938, 0.00882720947265625, -0.035919189453125, -0.005054473876953125, 0.0159759521484375, 0.040618896484375, 0.0313720703125, 0.0222930908203125, 0.018310546875, -0.015472412109375, -0.0086212158203125, 0.0477294921875, -0.00157928466796875, 0.0213165283203125, -0.0233306884765625, -0.051971435546875, 0.002758026123046875, 0.0225830078125, 0.0087127685546875, 0.00478363037109375, 0.041748046875, 0.030517578125, -0.014617919921875, -0.01236724853515625, 0.03759765625, -0.0216522216796875, -0.00012505054473876953, -0.05352783203125, 0.0496826171875, 0.033966064453125, 0.0094451904296875, 0.0119781494140625, -0.011077880859375, 0.07440185546875, 0.01049041748046875, 0.013214111328125, -0.0015716552734375, -0.02471923828125, 0.039398193359375, -0.00640869140625, 0.056610107421875, 0.03826904296875, -0.08197021484375, -0.033355712890625, -0.0008001327514648438, -0.0400390625, 0.034027099609375, 0.05303955078125, -0.00931549072265625, -0.007274627685546875, 0.03668212890625, 0.027862548828125, -0.0206146240234375, -0.02252197265625, 0.0163116455078125, 0.045745849609375, 0.040283203125, 0.060943603515625, -0.02166748046875, -0.0239715576171875, 0.00860595703125, 0.03271484375, 0.034576416015625, 0.004230499267578125, 0.02618408203125, 0.03314208984375, -0.01605224609375, 0.01861572265625, -0.03326416015625, -0.0148773193359375, -0.003681182861328125, 0.0097198486328125, 0.01515960693359375, -0.00727081298828125, -0.03948974609375, -0.00704193115234375, 0.059814453125, -0.056976318359375, -0.00949859619140625, -0.0005970001220703125, 0.0200042724609375, -0.04345703125, 0.0243377685546875, -0.02301025390625, -0.02777099609375, -0.02099609375, -0.007389068603515625, 0.0205535888671875, 0.0219879150390625, -0.007110595703125, 0.010894775390625, -0.01082611083984375, -0.0242767333984375, 0.0121307373046875, -0.0186004638671875, 0.0222015380859375, 0.034149169921875, -0.01078033447265625, -0.0238037109375, 0.0158538818359375, -0.0088348388671875, 0.02520751953125, 0.003559112548828125, 0.051605224609375, 0.01233673095703125, -0.01513671875, 0.0181732177734375, 0.0050201416015625, 0.05047607421875, 0.00759124755859375, 0.01393890380859375, -0.0308990478515625, -0.00122833251953125, 0.0160369873046875, 0.00762176513671875, -0.0296173095703125, -0.0239715576171875, 0.0140228271484375, 0.0200958251953125, -0.01348876953125, -0.01198577880859375, -0.0950927734375, -0.01395416259765625, 0.0706787109375, 0.012359619140625, -0.0535888671875, 0.0218505859375, -0.0322265625, 0.005298614501953125, 0.002429962158203125, -0.00977325439453125, 0.0027065277099609375, 0.019775390625, -0.00711822509765625, -0.007289886474609375, -0.035491943359375, 0.025421142578125, -0.01207733154296875, 0.00725555419921875, 0.028228759765625, -0.0223388671875, -0.006534576416015625, 0.0084381103515625, 0.0107269287109375, 0.0589599609375, 0.00394439697265625, -0.0217742919921875, 0.0103759765625, -0.0154266357421875, -0.00785064697265625, -0.0277862548828125, 0.0305938720703125, -0.0885009765625, -0.036468505859375, -0.02532958984375, 0.00913238525390625, 0.011688232421875, -0.04083251953125, -0.087158203125, 0.0772705078125, -0.0250701904296875, -0.0271453857421875, -0.034393310546875, 0.01499176025390625, -0.006988525390625, 0.0005521774291992188, -0.00902557373046875, -0.011444091796875, -0.0094757080078125, 0.0178070068359375, -0.0209503173828125, 0.09503173828125, -0.009033203125, -0.00536346435546875, -0.001399993896484375, -0.025482177734375, -0.030487060546875, -0.01428985595703125, 0.02264404296875, -0.0211029052734375, 0.0186004638671875, 0.016021728515625, -0.0703125, -0.01436614990234375, -0.032806396484375, 0.0517578125, 0.001293182373046875, -0.035675048828125, -0.035919189453125, -0.0318603515625, 0.038665771484375, 0.0231781005859375, 0.01035308837890625, -0.01116943359375, 0.01491546630859375, -0.0250701904296875, -0.0281524658203125, -0.02252197265625, 0.0014371871948242188, -0.03143310546875, -0.016387939453125, -0.01338958740234375, -0.02520751953125, 0.0145263671875, 0.0083770751953125, -0.022552490234375, 0.022003173828125, 0.040740966796875, -0.00283050537109375, -0.033538818359375, 0.0195465087890625, 0.056549072265625, -0.043701171875, -0.01448822021484375, 0.00304412841796875, -0.006069183349609375, 0.01325225830078125, -0.034698486328125, -0.033966064453125, -0.003498077392578125, -0.028961181640625, 0.0218963623046875, -0.031036376953125, 0.043182373046875, -0.03369140625, 0.0017099380493164062, 0.01200103759765625, -0.0019102096557617188, -0.02691650390625, -0.017486572265625, 0.02618408203125, 0.0207061767578125, -0.0209503173828125, 0.060272216796875, -0.0036830902099609375, -0.0204925537109375, -0.00949859619140625, 0.0208587646484375, -0.0550537109375, 0.0054931640625, -0.03082275390625, -0.040802001953125, 0.00263214111328125, -0.0291748046875, -0.0341796875, -0.054412841796875, 0.0136260986328125, -0.005458831787109375, -0.0292816162109375, 0.0230255126953125 ]
cf1148e0529eaabe27be933abc1c0c73f60e31a1
Wordpress Stackexchange Q: How to get current product category ID in product archive page If I am on a product archive page then how can I get current product category ID in product archive page. I am using this but no result: global $wp_query; $category_name = $wp_query->query_vars['product_cat']; $category_object = get_term_by('name', $category_name, 'product_cat'); $category_id = $category_object->term_id; A: I solve This To get the current category ID. $cate = get_queried_object(); $cateID = $cate->term_id; echo $cateID; and it works like a charm.
Q: How to get current product category ID in product archive page If I am on a product archive page then how can I get current product category ID in product archive page. I am using this but no result: global $wp_query; $category_name = $wp_query->query_vars['product_cat']; $category_object = get_term_by('name', $category_name, 'product_cat'); $category_id = $category_object->term_id; A: I solve This To get the current category ID. $cate = get_queried_object(); $cateID = $cate->term_id; echo $cateID; and it works like a charm. A: Funciona perfeitamente! <?php global $post; $terms = get_the_terms( $post->ID, 'product_cat' ); foreach ( $terms as $term ) { $product_cat_id = $term->term_id; if( $term = get_term_by( 'id', $product_cat_id, 'product_cat' ) ){echo $term->name;} break; }?>
wordpress
{ "language": "en", "length": 111, "provenance": "stackexchange_00019.jsonl.gz:458088", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/198422" }
[ -0.006755828857421875, -0.021697998046875, -0.04791259765625, -0.0254669189453125, 0.0110015869140625, -0.03582763671875, 0.0399169921875, 0.05023193359375, 0.00818634033203125, 0.027923583984375, 0.0191802978515625, -0.03863525390625, -0.005985260009765625, -0.048309326171875, -0.0296173095703125, -0.0196533203125, 0.040802001953125, -0.038665771484375, 0.0012722015380859375, 0.006488800048828125, -0.0067138671875, 0.040191650390625, -0.0099029541015625, 0.042724609375, 0.027099609375, -0.041107177734375, 0.0587158203125, -0.021331787109375, 0.0020008087158203125, -0.043060302734375, 0.0216217041015625, 0.019561767578125, 0.0193023681640625, -0.024932861328125, 0.05633544921875, 0.05865478515625, 0.0108184814453125, 0.0159149169921875, 0.061553955078125, -0.01116180419921875, 0.03350830078125, -0.03851318359375, 0.0158233642578125, -0.0179443359375, 0.0006647109985351562, -0.00449371337890625, 0.01290130615234375, -0.043975830078125, -0.005313873291015625, -0.0012073516845703125, 0.020172119140625, 0.04656982421875, 0.027374267578125, -0.02911376953125, -0.002376556396484375, 0.0027217864990234375, -0.0193939208984375, 0.0245208740234375, 0.041290283203125, -0.0247650146484375, -0.049896240234375, -0.03173828125, 0.0379638671875, -0.0304107666015625, 0.018524169921875, 0.024200439453125, 0.088623046875, 0.040069580078125, -0.04412841796875, -0.01081085205078125, 0.01154327392578125, -0.0161590576171875, 0.027801513671875, 0.01107025146484375, -0.026275634765625, -0.08380126953125, 0.039703369140625, -0.05206298828125, -0.0158233642578125, 0.01824951171875, -0.041778564453125, -0.0030269622802734375, -0.05902099609375, -0.0203704833984375, -0.00616455078125, -0.0019054412841796875, -0.02484130859375, -0.01255035400390625, -0.00765228271484375, -0.0318603515625, -0.0112457275390625, -0.033172607421875, -0.032684326171875, 0.00482177734375, -0.0104217529296875, -0.060943603515625, 0.0245513916015625, 0.0638427734375, -0.0171356201171875, -0.00922393798828125, -0.0111846923828125, -0.0258636474609375, -0.0245819091796875, -0.03143310546875, 0.003910064697265625, 0.0159149169921875, 0.038482666015625, 0.0250244140625, 0.0312042236328125, -0.0110015869140625, -0.01556396484375, 0.037017822265625, -0.006938934326171875, -0.0308380126953125, -0.01013946533203125, 0.06585693359375, 0.0032215118408203125, -0.0036411285400390625, 0.0038509368896484375, 0.0186767578125, 0.0159759521484375, 0.0498046875, 0.02752685546875, -0.00066375732421875, -0.01045989990234375, 0.00954437255859375, -0.01377105712890625, -0.047637939453125, 0.0312347412109375, -0.005886077880859375, -0.048553466796875, -0.00336456298828125, 0.02691650390625, 0.0264434814453125, 0.00966644287109375, -0.0177764892578125, 0.023773193359375, 0.002552032470703125, 0.03839111328125, -0.01458740234375, 0.0193023681640625, 0.01053619384765625, 0.007564544677734375, 0.00555419921875, 0.0010900497436523438, 0.01025390625, 0.00434112548828125, 0.030609130859375, -0.0041656494140625, -0.0301513671875, 0.04296875, -0.02996826171875, 0.0161895751953125, 0.02508544921875, 0.019775390625, -0.016754150390625, 0.053192138671875, -0.040679931640625, 0.004314422607421875, -0.052520751953125, 0.058441162109375, 0.019500732421875, 0.039886474609375, 0.03228759765625, -0.01427459716796875, -0.0166473388671875, -0.07720947265625, -0.0195159912109375, 0.0193328857421875, 0.092041015625, -0.013275146484375, -0.0166168212890625, 0.03338623046875, -0.004337310791015625, -0.046722412109375, -0.01403045654296875, -0.01904296875, -0.01451873779296875, 0.037933349609375, -0.00969696044921875, -0.055450439453125, -0.0535888671875, -0.0007219314575195312, -0.0164337158203125, -0.00942230224609375, 0.0257720947265625, 0.037628173828125, 0.07781982421875, -0.047088623046875, 0.032684326171875, 0.0181732177734375, 0.0236663818359375, -0.055206298828125, -0.007015228271484375, 0.01061248779296875, -0.017303466796875, 0.0129241943359375, -0.0130767822265625, 0.006374359130859375, 0.0030803680419921875, 0.00135040283203125, 0.03497314453125, -0.0260162353515625, 0.0021457672119140625, -0.07867431640625, 0.01158905029296875, -0.01215362548828125, 0.0570068359375, -0.0167388916015625, 0.0168304443359375, 0.023162841796875, -0.0231170654296875, 0.0060882568359375, -0.036865234375, -0.00513458251953125, 0.0019521713256835938, -0.0210113525390625, 0.01236724853515625, -0.035888671875, 0.015472412109375, -0.041656494140625, 0.004459381103515625, -0.031646728515625, 0.0223541259765625, 0.01393890380859375, 0.006832122802734375, -0.0168914794921875, -0.00798797607421875, 0.0416259765625, 0.022491455078125, -0.0212249755859375, -0.0302734375, 0.00858306884765625, 0.03948974609375, -0.00579833984375, 0.002033233642578125, -0.00003820657730102539, -0.065185546875, 0.0220947265625, 0.04150390625, 0.03912353515625, 0.0097808837890625, 0.0128936767578125, 0.0189208984375, 0.056396484375, -0.021026611328125, 0.0095367431640625, -0.0150146484375, 0.002246856689453125, 0.040496826171875, -0.002536773681640625, 0.028472900390625, 0.009063720703125, 0.046112060546875, 0.002094268798828125, 0.036956787109375, 0.004032135009765625, -0.0128936767578125, -0.00958251953125, 0.022979736328125, -0.01459503173828125, -0.030487060546875, -0.0160675048828125, -0.00728607177734375, 0.04766845703125, 0.0477294921875, 0.0640869140625, 0.060882568359375, -0.023223876953125, 0.01446533203125, -0.007328033447265625, 0.02447509765625, -0.00675201416015625, 0.0340576171875, -0.0011377334594726562, -0.0199432373046875, -0.040313720703125, 0.00799560546875, -0.0003857612609863281, 0.002593994140625, 0.00246429443359375, 0.080322265625, 0.034454345703125, -0.0245208740234375, -0.036895751953125, -0.07879638671875, -0.004207611083984375, -0.0176849365234375, -0.05364990234375, -0.038726806640625, 0.00811004638671875, 0.035308837890625, -0.041168212890625, 0.036041259765625, -0.0634765625, 0.005260467529296875, 0.01233673095703125, -0.0188446044921875, 0.03143310546875, -0.024932861328125, 0.06805419921875, 0.05126953125, -0.0418701171875, 0.041351318359375, -0.0002498626708984375, 0.0001653432846069336, 0.017425537109375, -0.007198333740234375, -0.00739288330078125, 0.0238189697265625, -0.0694580078125, 0.01200103759765625, 0.0171661376953125, 0.052642822265625, -0.0008139610290527344, -0.032806396484375, 0.01357269287109375, 0.0265045166015625, -0.07476806640625, -0.10479736328125, 0.0438232421875, -0.0875244140625, 0.046112060546875, -0.0384521484375, -0.0294189453125, -0.0498046875, 0.022186279296875, 0.00785064697265625, 0.038818359375, -0.0418701171875, -0.061920166015625, -0.051727294921875, -0.0771484375, -0.03369140625, -0.00980377197265625, -0.0140228271484375, 0.004604339599609375, 0.0261993408203125, -0.0022296905517578125, -0.03662109375, -0.0078887939453125, -0.004993438720703125, -0.0084381103515625, 0.004852294921875, 0.0010395050048828125, -0.0253143310546875, 0.002002716064453125, 0.0176544189453125, -0.0020751953125, 0.0220794677734375, 0.01068115234375, -0.0045318603515625, -0.0155487060546875, 0.016510009765625, 0.021575927734375, 0.026519775390625, 0.011383056640625, 0.039093017578125, 0.04925537109375, -0.01560211181640625, -0.024932861328125, -0.01995849609375, -0.034423828125, 0.025787353515625, -0.005008697509765625, -0.0015039443969726562, -0.004425048828125, 0.0251007080078125, -0.0162200927734375, -0.0290069580078125, 0.03057861328125, -0.059814453125, 0.00011217594146728516, 0.01525115966796875, 0.0097198486328125, 0.01297760009765625, 0.0440673828125, -0.0244598388671875, 0.03350830078125, 0.0153961181640625, 0.00547027587890625, 0.01617431640625, -0.0164642333984375, 0.0193634033203125, -0.044219970703125, 0.0416259765625, 0.0115509033203125, -0.01727294921875, 0.0027523040771484375, -0.0277099609375, 0.0321044921875, 0.0745849609375, -0.0107574462890625, -0.031036376953125, -0.0032329559326171875, 0.00531005859375, 0.01294708251953125, -0.022552490234375, -0.028472900390625, -0.035614013671875, -0.0499267578125, 0.0100250244140625, -0.00843048095703125, -0.0201416015625, -0.01042938232421875, 0.0208587646484375, -0.038330078125, -0.025848388671875, 0.04925537109375, -0.056243896484375, 0.01210784912109375, 0.01004791259765625, -0.0242767333984375, 0.01531219482421875, -0.0484619140625, -0.01444244384765625, -0.03662109375, -0.0004968643188476562, -0.03448486328125, 0.040008544921875, -0.001049041748046875, 0.024810791015625, -0.0191650390625, 0.033538818359375, -0.025054931640625, 0.0258026123046875, -0.006473541259765625, 0.047027587890625, -0.019744873046875, -0.037872314453125, -0.01419830322265625, -0.04156494140625, -0.00948333740234375, -0.045196533203125, -0.0249481201171875, -0.0372314453125, -0.047210693359375, -0.01213836669921875, -0.028717041015625, -0.01470184326171875, -0.075927734375, -0.029449462890625, 0.01462554931640625, 0.01074981689453125, -0.00330352783203125, 0.0173187255859375, -0.01605224609375, -0.06549072265625, 0.053192138671875, 0.0382080078125, -0.0135040283203125, -0.004718780517578125, 0.039398193359375, 0.0089874267578125, -0.046417236328125, -0.028472900390625, 0.00937652587890625, 0.0210418701171875, -0.00044608116149902344, 0.046051025390625, -0.0033016204833984375, -0.0233154296875, 0.050201416015625, -0.00203704833984375, -0.0015516281127929688, -0.0099945068359375, 0.03973388671875, -0.0121612548828125, -0.0103759765625, 0.006778717041015625, -0.0265960693359375, 0.034454345703125, -0.0345458984375, -0.02850341796875, -0.02239990234375, -0.028900146484375, 0.03924560546875, 0.0020351409912109375, 0.0635986328125, -0.0318603515625, -0.0130615234375, 0.003780364990234375, 0.0286865234375, 0.038909912109375, 0.0411376953125, -0.0010538101196289062, 0.0195770263671875, 0.0160980224609375, -0.0083770751953125, -0.04705810546875, -0.0253448486328125, -0.01137542724609375, 0.00390625, -0.03448486328125, -0.027130126953125, -0.01300048828125, 0.003887176513671875, -0.0136566162109375, -0.01611328125, -0.0230712890625, -0.01202392578125, -0.003204345703125, -0.0295562744140625, 0.037384033203125, -0.06658935546875, 0.02099609375, 0.040679931640625, -0.0160064697265625, 0.00885009765625, -0.09344482421875, 0.006011962890625, -0.0390625, -0.0012025833129882812, -0.0063629150390625, 0.007598876953125, 0.003673553466796875, 0.0869140625, 0.0017004013061523438, 0.0611572265625, -0.0235137939453125, -0.0018911361694335938, -0.01788330078125, 0.06591796875, 0.033203125, -0.0814208984375, -0.0069580078125, 0.0283966064453125, -0.006732940673828125, -0.033843994140625, 0.01035308837890625, -0.0019702911376953125, 0.04962158203125, -0.040008544921875, -0.051239013671875, 0.05303955078125, -0.058624267578125, -0.0089569091796875, 0.02203369140625, -0.013275146484375, -0.041259765625, -0.03338623046875, 0.01064300537109375, 0.04180908203125, -0.0005168914794921875, -0.043304443359375, 0.0030651092529296875, -0.073974609375, 0.005802154541015625, 0.05145263671875, 0.0015001296997070312, -0.01175689697265625, -0.025848388671875, -0.04998779296875, -0.03485107421875, -0.004138946533203125, 0.021514892578125, 0.031707763671875, -0.0276947021484375, -0.0391845703125, 0.03936767578125, 0.0150604248046875, 0.06475830078125, -0.0292816162109375, -0.05767822265625, 0.01232147216796875, -0.01934814453125, 0.06719970703125, 0.0273895263671875, -0.0216827392578125, -0.02178955078125, -0.0258026123046875, -0.01934814453125, 0.06329345703125, 0.0036220550537109375, -0.01486968994140625, -0.0302886962890625, 0.006198883056640625, 0.034423828125, 0.0006256103515625, -0.00591278076171875, -0.0306396484375, 0.0172119140625, 0.0121307373046875, 0.04534912109375, -0.013580322265625, 0.038177490234375, 0.0257110595703125, 0.0479736328125, 0.00036263465881347656, 0.00537872314453125, -0.04254150390625, -0.01424407958984375, -0.01439666748046875, -0.0278472900390625, 0.0118560791015625, 0.0191497802734375, -0.0181884765625, -0.0029144287109375, 0.0341796875, 0.00849151611328125, -0.02130126953125, -0.0062408447265625, -0.0013828277587890625, -0.012481689453125, 0.0142364501953125, 0.040435791015625, -0.017913818359375, 0.021270751953125, -0.0767822265625, -0.0196075439453125, 0.0005717277526855469, 0.038116455078125, 0.03375244140625, -0.0673828125, 0.0095977783203125, 0.06878662109375, -0.030242919921875, 0.0537109375, 0.0650634765625, 0.01666259765625, 0.052490234375, 0.005054473876953125, 0.0193023681640625, 0.0012111663818359375, 0.043548583984375, -0.0318603515625, -0.005218505859375, 0.0494384765625, 0.01116180419921875, -0.0290069580078125, 0.0237884521484375, -0.033660888671875, -0.0255126953125, -0.0374755859375, 0.0098724365234375, 0.03240966796875, -0.005771636962890625, 0.01224517822265625, -0.041839599609375, -0.045867919921875, 0.0394287109375, -0.00739288330078125, -0.00794219970703125, 0.015777587890625, -0.0280914306640625, -0.0086517333984375, 0.0262908935546875, 0.00174713134765625, 0.00914764404296875, 0.00965118408203125, 0.042999267578125, 0.00356292724609375, -0.04730224609375, -0.032379150390625, 0.00560760498046875, -0.0040435791015625, -0.0430908203125, -0.013824462890625, 0.019439697265625, -0.01163482666015625, -0.0467529296875, 0.0701904296875, -0.005321502685546875, 0.038116455078125, 0.007030487060546875, 0.00394439697265625, 0.04864501953125, 0.0186309814453125, 0.0125885009765625, -0.006900787353515625, -0.01058197021484375, -0.01812744140625, 0.01256561279296875, -0.01372528076171875, -0.0025177001953125, 0.01361083984375, -0.044708251953125, -0.0141448974609375, -0.0269012451171875, 0.017608642578125, -0.0009303092956542969, 0.0038604736328125, 0.048370361328125, -0.045166015625, -0.01165008544921875, 0.039947509765625, 0.047607421875, -0.0175933837890625, 0.0216064453125, 0.00762939453125, -0.0147552490234375, 0.0304718017578125, 0.0215301513671875, 0.046875, 0.01139068603515625, 0.0335693359375, -0.0408935546875, -0.0006737709045410156, -0.0380859375, 0.01715087890625, 0.0184478759765625, -0.0184478759765625, 0.0101470947265625, -0.032196044921875, -0.0249176025390625, -0.00258636474609375, 0.022186279296875, 0.0160675048828125, -0.0188446044921875, -0.0285186767578125, -0.0013523101806640625, 0.05035400390625, 0.07757568359375, 0.0266571044921875, -0.012725830078125, -0.014923095703125, -0.0103912353515625, 0.0109405517578125, -0.04217529296875, 0.029388427734375, 0.0179595947265625, -0.0222015380859375, 0.06805419921875, 0.0141143798828125, 0.041107177734375, -0.004032135009765625, 0.01261138916015625, 0.03265380859375, 0.02783203125, 0.045440673828125, -0.0303497314453125, 0.048065185546875, 0.0167694091796875, -0.0306549072265625, 0.005218505859375, -0.045379638671875, 0.0025882720947265625, 0.0662841796875, 0.037078857421875, -0.032562255859375, 0.022186279296875, -0.038848876953125, 0.052947998046875, -0.00734710693359375, 0.0117034912109375, 0.0712890625, 0.0190887451171875, 0.054229736328125, 0.02032470703125, 0.01517486572265625, 0.0019054412841796875, 0.005706787109375, 0.029388427734375, 0.035125732421875, 0.0092010498046875, -0.004913330078125, 0.02081298828125, 0.033599853515625, 0.046051025390625, -0.032196044921875, -0.055999755859375, 0.0306854248046875, -0.0036563873291015625, -0.007297515869140625, 0.035980224609375, 0.0120086669921875, 0.006923675537109375, 0.0299224853515625, -0.0204010009765625, -0.00257110595703125, 0.0264892578125, 0.033966064453125, 0.0113372802734375, 0.0098876953125, -0.055877685546875, -0.0333251953125, -0.052642822265625, -0.0015516281127929688, 0.004364013671875, 0.06793212890625, 0.0430908203125, 0.04095458984375, -0.01654052734375, -0.050750732421875, -0.0237884521484375, 0.0732421875, -0.01557159423828125, 0.0226287841796875, -0.0382080078125, -0.03948974609375, -0.01177215576171875, 0.029388427734375, 0.0089263916015625, 0.0183868408203125, 0.0401611328125, 0.048126220703125, -0.01058197021484375, -0.01751708984375, 0.03826904296875, -0.01132965087890625, 0.0128936767578125, -0.0293731689453125, 0.071044921875, 0.045745849609375, 0.0272674560546875, -0.033172607421875, 0.0264892578125, 0.07330322265625, -0.0293731689453125, 0.048919677734375, -0.0008645057678222656, -0.01541900634765625, -0.002918243408203125, -0.022979736328125, 0.01544189453125, -0.01568603515625, -0.06494140625, -0.0240936279296875, -0.044647216796875, 0.0335693359375, 0.016754150390625, 0.0245208740234375, 0.005649566650390625, 0.0202789306640625, 0.0115966796875, -0.004222869873046875, -0.008270263671875, 0.018157958984375, 0.0103302001953125, 0.0192718505859375, 0.0272216796875, 0.034210205078125, 0.0169830322265625, 0.0196990966796875, 0.044219970703125, -0.013641357421875, 0.0298309326171875, -0.040771484375, 0.037109375, 0.0142059326171875, 0.0114593505859375, 0.04156494140625, -0.06207275390625, -0.01222991943359375, 0.064208984375, -0.035064697265625, -0.00704193115234375, -0.001361846923828125, -0.00858306884765625, 0.0085601806640625, 0.062408447265625, -0.0133209228515625, -0.0006103515625, -0.0255584716796875, 0.033233642578125, -0.0233612060546875, 0.024505615234375, -0.004138946533203125, -0.0382080078125, 0.002834320068359375, 0.0022945404052734375, 0.02935791015625, 0.0523681640625, -0.00713348388671875, 0.01593017578125, 0.00838470458984375, -0.019256591796875, 0.006481170654296875, 0.0141754150390625, 0.01016998291015625, 0.033233642578125, 0.0024280548095703125, 0.040191650390625, 0.041290283203125, -0.0161285400390625, 0.043609619140625, 0.0088653564453125, 0.035247802734375, 0.003803253173828125, 0.0263824462890625, 0.0330810546875, 0.0280914306640625, 0.0557861328125, 0.00787353515625, 0.00983428955078125, 0.0272674560546875, -0.01410675048828125, -0.0023670196533203125, -0.058349609375, -0.0278472900390625, -0.039031982421875, 0.0189971923828125, 0.02874755859375, -0.007633209228515625, -0.0039043426513671875, -0.0120391845703125, -0.015838623046875, 0.014495849609375, 0.0110321044921875, -0.043670654296875, 0.031494140625, 0.004642486572265625, 0.002475738525390625, -0.02374267578125, -0.0445556640625, -0.00262451171875, -0.008056640625, -0.0408935546875, 0.00965118408203125, -0.0469970703125, -0.0285491943359375, -0.023284912109375, -0.00249481201171875, -0.00778961181640625, 0.00701141357421875, -0.03814697265625, 0.01531982421875, -0.0102081298828125, 0.048004150390625, -0.00537109375, -0.0161285400390625, 0.0079498291015625, 0.0220947265625, -0.042083740234375, -0.0298309326171875, 0.032623291015625, -0.02685546875, -0.0089111328125, -0.0223846435546875, 0.0302734375, 0.04815673828125, -0.0034847259521484375, -0.02972412109375, 0.01788330078125, -0.0161590576171875, -0.031219482421875, -0.0224456787109375, 0.01259613037109375, -0.00005459785461425781, -0.01021575927734375, -0.0189056396484375, -0.021484375, -0.0054473876953125, 0.0156707763671875, 0.031341552734375, 0.06787109375, -0.003742218017578125, 0.00479888916015625, -0.0489501953125, 0.00666046142578125, -0.02685546875, 0.08233642578125, -0.0214385986328125, 0.0302734375, -0.0247802734375, 0.0138092041015625, -0.050262451171875, -0.00640106201171875, -0.0162811279296875, 0.052764892578125, 0.0168609619140625, -0.015655517578125, -0.029937744140625, -0.031402587890625, -0.01343536376953125, 0.01201629638671875, -0.0068511962890625, 0.0162353515625, -0.03363037109375, 0.0012416839599609375, -0.01043701171875, -0.01203155517578125, 0.01250457763671875, -0.05914306640625, -0.0072174072265625, -0.007358551025390625, -0.00690460205078125, 0.021881103515625, -0.01468658447265625, -0.042266845703125, 0.007564544677734375, -0.0289154052734375, -0.0060272216796875, -0.04449462890625, 0.0295867919921875, -0.0009489059448242188, -0.038787841796875, -0.07867431640625, 0.01206207275390625, -0.01416778564453125, -0.044891357421875, -0.0357666015625, -0.01404571533203125, 0.0300750732421875, 0.0005168914794921875, -0.0089569091796875, 0.02783203125, -0.008544921875, 0.033843994140625, 0.0191497802734375, 0.00771331787109375, 0.0169525146484375, -0.01363372802734375, -0.00794219970703125, -0.01329803466796875, 0.033233642578125, -0.01500701904296875, 0.08978271484375, 0.0004553794860839844, -0.0274810791015625, -0.015777587890625, 0.046051025390625, -0.0224456787109375, -0.01534271240234375, 0.004169464111328125, -0.04656982421875, -0.00408172607421875, -0.024566650390625, 0.0020809173583984375, -0.0260009765625, 0.0059814453125, -0.017913818359375, -0.0202484130859375, 0.0200653076171875 ]
c656bd852e85381e620cba7459bfa0e48f94b938
Wordpress Stackexchange Q: how to update serialized options programatically? I want to automate updating plugin options. There are some things that I repeat a lot. With wp-cli I know I can update simple options like this: php wp-cli.phar option update blog_public 1 However, some plugin options save their options in a serialized string. Example of serialized option_value in wp_options: a:9:{s:4:"from";s:21:"[email protected]";s:8:"fromname";s:51:"xxx";s:4:"host";s:13:"smtp.xx.com";s:10:"smtpsecure";s:3:"ssl";s:4:"port";s:3:"465";s:8:"smtpauth";s:3:"yes";s:8:"username";s:21:"[email protected]";s:8:"password";s:13:"xxx";s:10:"deactivate";s:0:"";} How to update those options? A: Here is how I do it in a bash script: wp option get wp_smtp_options --format=json | php -r ' $var = json_decode( fgets(STDIN) ); $var->from = "[email protected]"; $var->fromname = "me"; print json_encode($var); ' | wp option set wp_smtp_options --format=json
Q: how to update serialized options programatically? I want to automate updating plugin options. There are some things that I repeat a lot. With wp-cli I know I can update simple options like this: php wp-cli.phar option update blog_public 1 However, some plugin options save their options in a serialized string. Example of serialized option_value in wp_options: a:9:{s:4:"from";s:21:"[email protected]";s:8:"fromname";s:51:"xxx";s:4:"host";s:13:"smtp.xx.com";s:10:"smtpsecure";s:3:"ssl";s:4:"port";s:3:"465";s:8:"smtpauth";s:3:"yes";s:8:"username";s:21:"[email protected]";s:8:"password";s:13:"xxx";s:10:"deactivate";s:0:"";} How to update those options? A: Here is how I do it in a bash script: wp option get wp_smtp_options --format=json | php -r ' $var = json_decode( fgets(STDIN) ); $var->from = "[email protected]"; $var->fromname = "me"; print json_encode($var); ' | wp option set wp_smtp_options --format=json A: WP-CLI is definitely the answer to this after the update to 1.4.0 which introduced the pluck and patch commands for accessing serialized data in WordPress. The pluck command takes this format for grabbing serialized values wp option pluck <key> <key-name> For example in the active_plugins option you can grab first item wp option pluck active_plugins 0 The patch command takes this format for inserting, updating or removing serialized values (the action) wp option patch <action> <key> <key-name> <value> Deleting the first active_plugin would look like this wp option patch delete active_plugins 0 The same pluck and patch were also added for other commands like postmeta, you can now use WP-CLI to do some cool loops for updating WordPress serialized data programmatically A: Solved it myself, this is how to do it: If you want to programatically update serialized options: download wp-cli from wp-cli.org Find out what is the "key" for the options you are using. In this example the key is "wp_smtp_options" If you don't know the key, search in wp_options table and try to figure it out. Example: select * from wp_options where option_name like '%smtp%' Now that you know your key, use this command to save your configuration to json file: php wp-cli.phar option get wp_smtp_options --format=json > my_saved_config.txt Whenever you want that configuration to be restored use this command php wp-cli.phar option update wp_smtp_options --format=json < my_saved_config.txt Notes: * *works in WAMPSERVER64 *works with unicode characters like ñ á é *you can have your json file with paddings and spaces, for legibility It would be great not having to use an intermediate file for this purpose. Does anybody know how to do it? A: The WP-CLI command option does use WordPress' Options API to do its job. Given, e.g. with the subcommand update, a correct input, an array, you should be able to do this with WP-CLI. You should make use of the --format parameter here, to make sure you get the same, json works generally fine for the update subcommand. Note, the subcommand get should return you the option unserialized, because the Options API is used, which you then can save, modify and/or transfer/set-up on other/new installations.
wordpress
{ "language": "en", "length": 465, "provenance": "stackexchange_00019.jsonl.gz:458150", "question_score": "23", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/198667" }
[ 0.0283203125, -0.01416778564453125, 0.0035915374755859375, -0.069091796875, 0.0032596588134765625, -0.01690673828125, 0.009857177734375, 0.013671875, -0.015777587890625, 0.02392578125, 0.036529541015625, -0.025390625, -0.007320404052734375, -0.05731201171875, 0.0028400421142578125, -0.032928466796875, 0.021240234375, 0.00392913818359375, -0.0124969482421875, -0.023681640625, 0.0196990966796875, 0.003261566162109375, -0.05126953125, 0.08563232421875, 0.00963592529296875, -0.00966644287109375, 0.10321044921875, -0.030792236328125, 0.01134490966796875, -0.0169219970703125, 0.01287078857421875, -0.01904296875, 0.055694580078125, 0.032623291015625, -0.07470703125, 0.00870513916015625, 0.005855560302734375, -0.00836944580078125, -0.01171112060546875, 0.043853759765625, 0.0273590087890625, -0.0149993896484375, 0.06329345703125, 0.0048980712890625, 0.00814056396484375, 0.000637054443359375, 0.02581787109375, -0.041229248046875, 0.01580810546875, 0.0219268798828125, -0.00457000732421875, -0.0177154541015625, 0.0017690658569335938, -0.0026569366455078125, -0.0015544891357421875, -0.01519012451171875, -0.034576416015625, 0.0908203125, 0.00408935546875, 0.0186004638671875, -0.0277252197265625, 0.055572509765625, -0.0168304443359375, -0.0168914794921875, 0.050262451171875, -0.003993988037109375, 0.01160430908203125, 0.035675048828125, -0.02777099609375, 0.0253753662109375, 0.02435302734375, -0.042266845703125, 0.01055908203125, -0.057830810546875, 0.008514404296875, 0.052734375, -0.0229034423828125, 0.004810333251953125, 0.012237548828125, -0.0256500244140625, 0.03387451171875, -0.012237548828125, 0.008209228515625, -0.01561737060546875, 0.038055419921875, 0.015411376953125, 0.00719451904296875, -0.0303802490234375, -0.0171661376953125, 0.00374603271484375, -0.021453857421875, -0.012481689453125, -0.0054779052734375, 0.040374755859375, -0.01422119140625, 0.0019254684448242188, -0.0303192138671875, -0.0533447265625, -0.014739990234375, -0.0062713623046875, 0.03216552734375, -0.0306396484375, 0.0158233642578125, 0.00481414794921875, -0.018280029296875, 0.005001068115234375, 0.031158447265625, 0.008087158203125, 0.0110015869140625, 0.0173492431640625, -0.022979736328125, 0.033172607421875, 0.0014085769653320312, 0.0066986083984375, -0.0001512765884399414, -0.030029296875, -0.05487060546875, 0.033782958984375, -0.0219879150390625, 0.01617431640625, 0.0011796951293945312, 0.047393798828125, -0.0305633544921875, -0.0266571044921875, -0.0273590087890625, -0.04437255859375, -0.0012989044189453125, -0.021453857421875, -0.0234222412109375, 0.0010776519775390625, -0.034515380859375, 0.029266357421875, 0.063720703125, 0.026824951171875, 0.01064300537109375, 0.00005698204040527344, -0.028167724609375, -0.011749267578125, -0.00887298583984375, 0.00240325927734375, 0.00991058349609375, -0.03179931640625, 0.0288543701171875, 0.0125579833984375, 0.024139404296875, -0.0216522216796875, 0.0235748291015625, 0.030975341796875, -0.004825592041015625, 0.035125732421875, -0.0015354156494140625, 0.0306549072265625, 0.031097412109375, 0.0290374755859375, -0.00707244873046875, 0.0180511474609375, 0.03924560546875, -0.0235443115234375, -0.031494140625, -0.039276123046875, -0.053680419921875, -0.0146026611328125, 0.02294921875, -0.03369140625, -0.01561737060546875, 0.0208587646484375, -0.004001617431640625, 0.0017757415771484375, 0.015045166015625, 0.004230499267578125, 0.0272064208984375, -0.025604248046875, 0.04144287109375, -0.0228424072265625, -0.02642822265625, -0.013641357421875, -0.035675048828125, 0.0016231536865234375, 0.0574951171875, -0.041412353515625, -0.0228271484375, -0.027435302734375, 0.06353759765625, -0.02301025390625, -0.050201416015625, 0.054840087890625, -0.002010345458984375, 0.065185546875, 0.0195770263671875, 0.0001310110092163086, 0.01194000244140625, 0.000942230224609375, -0.01128387451171875, 0.01209259033203125, -0.0206298828125, -0.001598358154296875, 0.0003857612609863281, 0.02593994140625, -0.0292205810546875, -0.0172576904296875, -0.02996826171875, 0.00045490264892578125, -0.0295867919921875, -0.00844573974609375, -0.0516357421875, -0.048828125, -0.00562286376953125, 0.0243988037109375, -0.00981903076171875, 0.0226898193359375, 0.0165863037109375, 0.0193939208984375, -0.033966064453125, 0.01409912109375, -0.004421234130859375, -0.0016632080078125, -0.01309967041015625, 0.07940673828125, -0.0228118896484375, 0.06982421875, -0.04132080078125, -0.060028076171875, -0.002071380615234375, -0.00614166259765625, 0.0177001953125, -0.0182952880859375, 0.006488800048828125, -0.0123748779296875, 0.05120849609375, -0.0301055908203125, 0.056121826171875, 0.015380859375, 0.0092620849609375, 0.0029296875, -0.03326416015625, -0.0090789794921875, -0.0212249755859375, -0.05914306640625, 0.0071258544921875, 0.0521240234375, 0.040863037109375, 0.0238494873046875, -0.002109527587890625, -0.0227813720703125, 0.042144775390625, 0.0011529922485351562, 0.031829833984375, -0.0232391357421875, -0.0006084442138671875, -0.008544921875, -0.032623291015625, -0.028167724609375, 0.029876708984375, -0.07916259765625, 0.0206146240234375, 0.034332275390625, -0.01229095458984375, -0.0196380615234375, 0.037078857421875, -0.005756378173828125, -0.004352569580078125, -0.004787445068359375, 0.021484375, -0.020538330078125, 0.060272216796875, -0.0295562744140625, -0.0016317367553710938, -0.00939178466796875, -0.07525634765625, 0.0236968994140625, 0.039825439453125, 0.004619598388671875, 0.000354766845703125, 0.016754150390625, -0.0216064453125, 0.038604736328125, -0.014495849609375, 0.01190185546875, -0.01224517822265625, 0.0162200927734375, -0.01177215576171875, -0.002613067626953125, -0.0017061233520507812, -0.013458251953125, 0.01479339599609375, -0.0021266937255859375, 0.00995635986328125, -0.0091552734375, -0.022918701171875, -0.005672454833984375, 0.023468017578125, 0.01287841796875, -0.0148468017578125, 0.0226898193359375, -0.00090789794921875, -0.02520751953125, 0.04620361328125, 0.01560211181640625, -0.006099700927734375, 0.0194854736328125, 0.05145263671875, 0.04541015625, 0.005138397216796875, -0.0078277587890625, -0.007236480712890625, -0.0104217529296875, -0.0287017822265625, 0.007488250732421875, -0.00428009033203125, -0.0274200439453125, 0.026947021484375, 0.08966064453125, -0.004703521728515625, -0.005462646484375, -0.01189422607421875, -0.049774169921875, -0.0221099853515625, -0.007236480712890625, -0.115234375, -0.072998046875, 0.006916046142578125, -0.08636474609375, -0.03778076171875, -0.0160675048828125, -0.060760498046875, 0.02813720703125, 0.0032863616943359375, -0.0068359375, -0.00982666015625, -0.032806396484375, -0.0474853515625, -0.056488037109375, -0.07379150390625, 0.0060272216796875, -0.007579803466796875, 0.01873779296875, -0.0010013580322265625, 0.0270538330078125, 0.003582000732421875, -0.018646240234375, -0.00901031494140625, -0.0186920166015625, -0.017822265625, -0.003910064697265625, 0.01233673095703125, -0.033935546875, 0.0223388671875, -0.0107421875, 0.03692626953125, 0.032257080078125, -0.0145416259765625, -0.00537872314453125, 0.01024627685546875, -0.0003082752227783203, 0.02410888671875, 0.0131683349609375, -0.004016876220703125, 0.0308685302734375, 0.018798828125, -0.0217132568359375, 0.031463623046875, 0.007167816162109375, 0.01220703125, 0.0178375244140625, -0.01328277587890625, -0.038665771484375, 0.011322021484375, 0.00951385498046875, -0.041839599609375, -0.021881103515625, 0.0302734375, -0.034210205078125, 0.01454925537109375, -0.03466796875, -0.066162109375, -0.01512908935546875, 0.04571533203125, -0.00048041343688964844, -0.03369140625, 0.0058135986328125, -0.0179290771484375, -0.023468017578125, 0.0172882080078125, -0.0292510986328125, -0.08294677734375, 0.04058837890625, -0.054840087890625, -0.00807952880859375, -0.062347412109375, -0.0225830078125, -0.01947021484375, 0.08453369140625, 0.001903533935546875, -0.012969970703125, -0.003292083740234375, 0.019500732421875, -0.049285888671875, -0.0226898193359375, -0.012298583984375, 0.00860595703125, -0.05621337890625, 0.01256561279296875, -0.01277923583984375, -0.0221710205078125, -0.0035572052001953125, -0.037384033203125, -0.0167694091796875, -0.037445068359375, 0.0251312255859375, -0.00301361083984375, 0.013427734375, -0.048828125, 0.0012807846069335938, -0.06121826171875, 0.00817108154296875, -0.008270263671875, -0.1131591796875, -0.0131072998046875, 0.0169677734375, 0.057159423828125, -0.01171112060546875, -0.0151824951171875, -0.028594970703125, 0.0526123046875, -0.000013768672943115234, -0.043182373046875, 0.014404296875, 0.00666046142578125, -0.0272064208984375, 0.0228729248046875, -0.0011720657348632812, -0.0110626220703125, -0.036346435546875, -0.024505615234375, -0.0266265869140625, 0.0167236328125, 0.005435943603515625, -0.011688232421875, 0.04815673828125, -0.0220794677734375, -0.07403564453125, -0.033203125, -0.0214385986328125, 0.003971099853515625, -0.053955078125, 0.037078857421875, -0.051177978515625, -0.0675048828125, 0.0732421875, -0.011474609375, 0.002468109130859375, -0.004974365234375, 0.09197998046875, -0.00176239013671875, -0.021942138671875, -0.01727294921875, -0.046173095703125, -0.0117950439453125, 0.032196044921875, 0.0188140869140625, 0.01491546630859375, 0.00708770751953125, 0.0022335052490234375, -0.01377105712890625, -0.0250701904296875, 0.004192352294921875, 0.045501708984375, 0.032745361328125, 0.0014829635620117188, -0.0159149169921875, 0.00226593017578125, -0.000023066997528076172, 0.01169586181640625, -0.010284423828125, 0.031494140625, -0.0105133056640625, -0.0100250244140625, 0.0059051513671875, -0.0139923095703125, -0.017547607421875, -0.09869384765625, 0.035919189453125, -0.061614990234375, -0.00554656982421875, 0.00848388671875, -0.01409912109375, 0.035888671875, 0.017364501953125, 0.00007486343383789062, -0.0240631103515625, -0.0098724365234375, -0.03216552734375, 0.0172119140625, -0.03375244140625, -0.04144287109375, -0.0157012939453125, 0.0013704299926757812, -0.0188751220703125, -0.01497650146484375, -0.027496337890625, -0.040679931640625, 0.0023326873779296875, 0.010528564453125, 0.01392364501953125, 0.0247039794921875, 0.042449951171875, 0.032257080078125, -0.02435302734375, -0.022491455078125, -0.039581298828125, 0.04705810546875, -0.0355224609375, 0.03778076171875, 0.027435302734375, -0.01464080810546875, -0.0011081695556640625, 0.064453125, 0.041839599609375, 0.02142333984375, -0.0289764404296875, 0.0218353271484375, 0.022003173828125, 0.010162353515625, 0.031585693359375, 0.00455474853515625, -0.005245208740234375, -0.00583648681640625, -0.010284423828125, -0.0244293212890625, 0.012481689453125, -0.006870269775390625, 0.004924774169921875, 0.0032596588134765625, -0.01043701171875, 0.0352783203125, -0.00896453857421875, -0.029144287109375, 0.00926971435546875, 0.05047607421875, 0.0118255615234375, 0.007099151611328125, 0.041351318359375, 0.0123748779296875, 0.026611328125, 0.01654052734375, -0.017120361328125, 0.005878448486328125, 0.0004382133483886719, -0.0018205642700195312, 0.0013818740844726562, -0.03814697265625, -0.0270843505859375, -0.0005359649658203125, -0.002674102783203125, -0.012603759765625, -0.03594970703125, -0.037994384765625, -0.006534576416015625, 0.006591796875, 0.057281494140625, -0.01139068603515625, -0.00878143310546875, -0.02508544921875, 0.0254974365234375, -0.0238189697265625, -0.00681304931640625, 0.054931640625, 0.01013946533203125, -0.020111083984375, -0.0028362274169921875, -0.0190887451171875, 0.004116058349609375, 0.01506805419921875, -0.0196533203125, -0.0303955078125, -0.0372314453125, 0.042938232421875, 0.023834228515625, 0.0052642822265625, -0.0367431640625, 0.0124359130859375, -0.005096435546875, 0.01459503173828125, 0.060546875, 0.005474090576171875, 0.057647705078125, -0.0391845703125, 0.0186309814453125, -0.0107879638671875, 0.0251007080078125, -0.033966064453125, 0.0207366943359375, -0.0225372314453125, -0.03558349609375, 0.0078887939453125, -0.00763702392578125, -0.005840301513671875, 0.024261474609375, 0.049346923828125, 0.01444244384765625, 0.03839111328125, -0.01187896728515625, 0.0025424957275390625, -0.01277923583984375, 0.0263519287109375, -0.0165252685546875, 0.041015625, 0.017547607421875, -0.024993896484375, -0.00684356689453125, -0.0016393661499023438, 0.0206146240234375, -0.0019474029541015625, -0.0019025802612304688, -0.0130462646484375, 0.007568359375, -0.034820556640625, 0.051910400390625, 0.04901123046875, -0.00388336181640625, 0.0259552001953125, -0.0100555419921875, 0.00576019287109375, -0.0018825531005859375, -0.004245758056640625, 0.0216064453125, 0.045989990234375, 0.0645751953125, -0.0183868408203125, -0.03143310546875, 0.0016536712646484375, -0.04669189453125, 0.0498046875, 0.032318115234375, 0.07568359375, -0.0687255859375, 0.03729248046875, 0.02972412109375, 0.0028533935546875, 0.0826416015625, 0.0101470947265625, -0.0158538818359375, -0.02984619140625, -0.0014238357543945312, -0.029632568359375, -0.031951904296875, -0.0227813720703125, 0.00447845458984375, -0.024993896484375, -0.0209808349609375, 0.02154541015625, 0.016845703125, 0.0008797645568847656, 0.01157379150390625, -0.00750732421875, 0.0175933837890625, 0.0169219970703125, -0.0513916015625, 0.0163421630859375, -0.054931640625, -0.07403564453125, -0.040283203125, -0.06915283203125, -0.02001953125, -0.018585205078125, -0.0004544258117675781, 0.06878662109375, 0.048797607421875, 0.013946533203125, -0.059112548828125, 0.045074462890625, 0.0027713775634765625, 0.0120849609375, -0.039459228515625, 0.01000213623046875, 0.055023193359375, -0.037506103515625, 0.03460693359375, 0.0215911865234375, -0.01209259033203125, -0.0196533203125, 0.0268402099609375, 0.052642822265625, 0.0015726089477539062, -0.0242767333984375, 0.05059814453125, 0.0364990234375, -0.033111572265625, -0.0091400146484375, 0.0107574462890625, -0.060943603515625, -0.0213165283203125, -0.006984710693359375, -0.048797607421875, -0.00986480712890625, -0.0312347412109375, -0.03448486328125, 0.1424560546875, 0.014068603515625, -0.0017614364624023438, -0.0102081298828125, 0.06988525390625, -0.020538330078125, 0.05987548828125, -0.002071380615234375, -0.007350921630859375, -0.00608062744140625, 0.005924224853515625, -0.0081634521484375, 0.01287841796875, -0.01050567626953125, 0.044281005859375, 0.06903076171875, 0.01290130615234375, -0.011199951171875, -0.0001302957534790039, 0.0369873046875, 0.0021495819091796875, -0.0312347412109375, 0.036529541015625, 0.018402099609375, 0.0190582275390625, 0.063720703125, -0.043487548828125, 0.0245208740234375, -0.0006480216979980469, 0.024261474609375, 0.03375244140625, 0.037841796875, 0.057952880859375, -0.0030117034912109375, 0.02508544921875, 0.00475311279296875, -0.0112457275390625, 0.01300811767578125, -0.012176513671875, 0.01074981689453125, 0.048980712890625, 0.0124359130859375, 0.0308380126953125, 0.007221221923828125, -0.0163421630859375, 0.0309906005859375, -0.0212860107421875, -0.00925445556640625, 0.01459503173828125, 0.0151824951171875, 0.0092620849609375, -0.00894927978515625, -0.004306793212890625, 0.0023250579833984375, 0.005893707275390625, 0.034698486328125, -0.006816864013671875, 0.0201568603515625, -0.01947021484375, 0.03497314453125, 0.018798828125, 0.0310821533203125, -0.032623291015625, -0.05706787109375, 0.005584716796875, 0.0022335052490234375, 0.01139068603515625, 0.0166778564453125, 0.026519775390625, -0.0411376953125, 0.01140594482421875, -0.063232421875, 0.0207977294921875, 0.057647705078125, 0.00812530517578125, 0.00927734375, 0.03271484375, -0.06219482421875, -0.005462646484375, -0.03753662109375, 0.0098114013671875, 0.01213836669921875, 0.05511474609375, 0.022430419921875, 0.0249176025390625, -0.02166748046875, -0.0328369140625, -0.027313232421875, 0.044097900390625, 0.034210205078125, 0.01142120361328125, 0.00234222412109375, 0.0203857421875, -0.00965118408203125, 0.01053619384765625, 0.01611328125, 0.0577392578125, 0.0537109375, 0.019775390625, -0.024627685546875, 0.0236053466796875, 0.05389404296875, -0.017333984375, -0.0129547119140625, -0.0178375244140625, -0.0002224445343017578, 0.0201416015625, 0.0038661956787109375, -0.0027217864990234375, 0.054351806640625, 0.007965087890625, -0.0310821533203125, 0.05072021484375, -0.00528717041015625, 0.0178070068359375, 0.0615234375, 0.001888275146484375, 0.019012451171875, 0.00003361701965332031, 0.0516357421875, 0.017578125, -0.0169677734375, 0.00794219970703125, -0.03662109375, 0.01239013671875, 0.0246124267578125, 0.012939453125, -0.0439453125, -0.0188751220703125, 0.0237579345703125, -0.0025768280029296875, -0.01061248779296875, 0.030487060546875, 0.029541015625, -0.01242828369140625, -0.075439453125, -0.038848876953125, -0.061737060546875, 0.0537109375, -0.00955963134765625, 0.056915283203125, 0.00201416015625, 0.0302734375, -0.05841064453125, 0.0176544189453125, -0.03350830078125, -0.032745361328125, -0.0016117095947265625, 0.0237884521484375, 0.003726959228515625, -0.00934600830078125, 0.0170745849609375, 0.028472900390625, 0.0153656005859375, -0.035797119140625, -0.0022830963134765625, -0.007244110107421875, 0.012420654296875, -0.0011730194091796875, 0.020843505859375, -0.0235595703125, -0.049530029296875, -0.035675048828125, -0.0025119781494140625, 0.022064208984375, 0.045074462890625, 0.01381683349609375, 0.0219573974609375, -0.0189208984375, 0.0286712646484375, 0.004917144775390625, 0.024566650390625, -0.007007598876953125, 0.0152740478515625, -0.0684814453125, 0.015594482421875, 0.0163726806640625, -0.0222320556640625, 0.0177154541015625, -0.0011243820190429688, 0.028045654296875, 0.0025272369384765625, 0.01849365234375, -0.02691650390625, -0.004901885986328125, 0.0028858184814453125, -0.0301055908203125, -0.005214691162109375, 0.00392913818359375, -0.01235198974609375, 0.007965087890625, -0.0133056640625, -0.0067901611328125, -0.0288543701171875, -0.004856109619140625, 0.0243072509765625, -0.020965576171875, -0.02044677734375, -0.0235595703125, -0.0428466796875, -0.00670623779296875, -0.001995086669921875, 0.0011138916015625, -0.042205810546875, 0.010040283203125, -0.0026111602783203125, -0.0165252685546875, 0.004558563232421875, -0.012176513671875, 0.01346588134765625, -0.0286712646484375, -0.054168701171875, -0.033599853515625, 0.0565185546875, -0.0279083251953125, 0.0138092041015625, 0.035308837890625, -0.0035457611083984375, -0.01171112060546875, -0.00040435791015625, -0.0184173583984375, 0.052764892578125, -0.045654296875, -0.0070953369140625, 0.048675537109375, -0.0022258758544921875, -0.0288543701171875, -0.09332275390625, -0.0323486328125, -0.03399658203125, 0.046783447265625, -0.0075836181640625, 0.0165863037109375, 0.017730712890625, -0.022979736328125, -0.0367431640625, 0.0262908935546875, 0.00213623046875, -0.032867431640625, -0.037567138671875, -0.049102783203125, -0.002044677734375, 0.035919189453125, -0.02899169921875, 0.0032444000244140625, -0.053680419921875, 0.04425048828125, -0.01067352294921875, 0.082275390625, -0.0523681640625, -0.0018749237060546875, -0.0137939453125, 0.03802490234375, 0.0163421630859375, -0.0079345703125, -0.0191192626953125, 0.00650787353515625, 0.03936767578125, 0.04547119140625, 0.009674072265625, 0.0310516357421875, 0.0216827392578125, -0.0394287109375, -0.0030117034912109375, -0.0176544189453125, -0.05548095703125, -0.00673675537109375, 0.0843505859375, 0.0771484375, 0.038330078125, -0.037506103515625, -0.002925872802734375, -0.03271484375, 0.0174713134765625, 0.00830078125, -0.004161834716796875, -0.035003662109375, -0.0027027130126953125, 0.0095367431640625, 0.01065826416015625, 0.02130126953125, -0.02740478515625, 0.0146026611328125, -0.00958251953125, 0.050872802734375, -0.00426483154296875, 0.0211334228515625, -0.0243988037109375, 0.03155517578125, -0.018035888671875, 0.005428314208984375, 0.024078369140625, 0.01541900634765625, 0.0078887939453125, 0.0860595703125, -0.025360107421875, -0.0265350341796875, -0.041748046875, 0.038238525390625, -0.0310821533203125, 0.06005859375, -0.0621337890625, -0.03076171875, -0.041839599609375, 0.0147247314453125, 0.02685546875, -0.00048041343688964844, -0.059112548828125, 0.04266357421875, 0.026275634765625, 0.0272979736328125, -0.016510009765625, -0.05712890625, -0.043792724609375, 0.01580810546875, 0.02960205078125, -0.0219573974609375, 0.0693359375, -0.0190277099609375, 0.01361083984375, 0.0030975341796875, -0.023040771484375, -0.0499267578125, 0.00514984130859375, 0.033203125, -0.01538848876953125, 0.01190948486328125 ]
6314fde61397c6051ce2f3aa1ec3f327a00641c5
Wordpress Stackexchange Q: Should I use loop in the single.php file? I read many tutorials, and checked many premium/free theme's source and most of them use loop in the single.php file. The single.php file only displays one post, so I think the_post() is enough, while is unnecessary. Is there any reason why these themes (twentyfifteen, twentytwelve, etc..) use loop in the single.php file? A: Stricktly speaking, you don't need the loop in single post pages, you only need the call to the_post(). The reason for the_post() is that the_post() sets the $post global value to the single post post object
Q: Should I use loop in the single.php file? I read many tutorials, and checked many premium/free theme's source and most of them use loop in the single.php file. The single.php file only displays one post, so I think the_post() is enough, while is unnecessary. Is there any reason why these themes (twentyfifteen, twentytwelve, etc..) use loop in the single.php file? A: Stricktly speaking, you don't need the loop in single post pages, you only need the call to the_post(). The reason for the_post() is that the_post() sets the $post global value to the single post post object A: If you want to maintain 100% compatibility with all plugins, you need to use the loop on single.php. The reason is that there are loop_start and loop_end actions which get triggered on the first and last call to have_posts(). A: More precisions as i can't comment the given answers. The Wordpress documentation isn't precise from a developer point of view, and i was much confused myself until i opened the WP code. global post Unlike what is claimed in a given response (Pieter), the global $post is already set when landing on a single template (either standard or custom post). It should hold the first and unique post. I tried it myself displaying the post before and after a sequential loop, then going beyond to see what happens. // in single.php or single-{cpt}.php get_the_header(); global $post; echo "<h3>before loop</h3>"; var_dump($post); // already contains the queried post! echo "<h3>in loop [i=0]</h3>"; the_post(); var_dump($post); // still the same! echo "<h3>in loop [i=1]</h3>"; the_post(); var_dump($post); // not set (NULL) the WP loop So, for accessing the standard fields of the posts you don't strictly need to call the_post(). However, as Milo mentioned, this might create some conflicts with plugins or lead to weird behaviours because your content will be displayed out of the loop. Not only it will miss the loop_start and loop_end actions, but the WP query holds an internal state called in_the_loop that would not be set. For instance, a callback in the content calling in_the_loop() would get false while you could expect to get true when reading some content. And this is quite misleading as you are not in a real loop... a loop should only be for archives involving multiple posts but this is just a bad semantics choice in WP. You can see this here: https://developer.wordpress.org/reference/classes/wp_query/the_post/ public function the_post() { global $post; $this->in_the_loop = true; if ( $this->current_post == -1 ) // loop has just started /** * Fires once the loop is started. * * @since 2.0.0 * * @param WP_Query &$this The WP_Query instance (passed by reference). */ do_action_ref_array( 'loop_start', array( &$this ) ); $post = $this->next_post(); $this->setup_postdata( $post ); } a while loop? The last question would be the need for a while (has_posts()) loop which doesn't make much sense as you are in a single post template and a unique post should have been found. Some claim it is for consistency to fit in a general case as for other templates, but from a pure developer point of view it's a bit confusing. Actually you should rather check if (has_posts()) in case of a bad call, so the main reason is more for robustness if ever a redirection goes wrong. Given that, you can use while (has_posts()) to match a general template but this is more of a subjective matter. TL;DR To loop or not to loop? A while loop is not necessary but the_post() should be called at least once, not for loading the post but for consistency with the internal states (WP_Query). A check with has_posts() should be called once before, for robustness.
wordpress
{ "language": "en", "length": 610, "provenance": "stackexchange_00019.jsonl.gz:458161", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/198704" }
[ 0.065673828125, -0.03656005859375, 0.01678466796875, -0.03448486328125, -0.0018835067749023438, -0.026397705078125, 0.06500244140625, 0.007297515869140625, 0.0149993896484375, -0.01384735107421875, -0.0012073516845703125, -0.03997802734375, -0.02423095703125, -0.048583984375, 0.006103515625, -0.041839599609375, 0.026702880859375, -0.0183258056640625, 0.026336669921875, 0.0050048828125, 0.005340576171875, 0.0299072265625, 0.0013685226440429688, 0.0002658367156982422, 0.0208282470703125, -0.02032470703125, 0.01528167724609375, -0.03851318359375, -0.002227783203125, -0.0328369140625, 0.002956390380859375, 0.050872802734375, 0.027099609375, 0.01552581787109375, -0.028778076171875, 0.048797607421875, -0.01277923583984375, 0.00547027587890625, 0.0160064697265625, 0.01343536376953125, -0.005496978759765625, 0.0110015869140625, 0.0284881591796875, 0.02490234375, -0.0016956329345703125, -0.050750732421875, 0.0167999267578125, -0.052703857421875, 0.01383209228515625, 0.0009360313415527344, 0.044097900390625, -0.0113983154296875, 0.052215576171875, -0.0169219970703125, -0.0304412841796875, -0.00467681884765625, 0.0098724365234375, -0.0615234375, 0.03350830078125, -0.052093505859375, -0.04547119140625, -0.05487060546875, 0.06591796875, -0.003719329833984375, -0.014007568359375, -0.0010728836059570312, -0.04931640625, 0.02197265625, -0.066650390625, -0.04217529296875, 0.023040771484375, -0.049957275390625, 0.0182647705078125, -0.009063720703125, -0.017974853515625, -0.0277862548828125, -0.00045228004455566406, -0.0229644775390625, 0.01032257080078125, -0.0034160614013671875, -0.06256103515625, -0.0072021484375, -0.068359375, -0.024200439453125, -0.0135955810546875, 0.01020050048828125, -0.0374755859375, 0.00965118408203125, -0.04229736328125, -0.0697021484375, -0.035614013671875, -0.000041365623474121094, -0.0207366943359375, -0.0606689453125, -0.060546875, -0.034454345703125, 0.031646728515625, 0.032989501953125, -0.007137298583984375, -0.01505279541015625, 0.0188751220703125, -0.055694580078125, 0.020721435546875, -0.0259552001953125, 0.0265045166015625, 0.04248046875, -0.0220947265625, 0.02435302734375, 0.07293701171875, 0.0213623046875, 0.01520538330078125, 0.0635986328125, 0.0183258056640625, -0.0181884765625, -0.0139923095703125, -0.018035888671875, -0.044525146484375, 0.0447998046875, 0.011138916015625, 0.0262908935546875, 0.02154541015625, 0.04071044921875, 0.0028400421142578125, 0.00460052490234375, -0.047210693359375, -0.025421142578125, 0.00012564659118652344, -0.06243896484375, -0.0041656494140625, 0.022003173828125, -0.0244140625, -0.0239410400390625, 0.0260162353515625, 0.0478515625, 0.00151824951171875, -0.034423828125, -0.0292205810546875, 0.026947021484375, -0.0149383544921875, 0.04083251953125, -0.047882080078125, -0.0670166015625, 0.0228729248046875, -0.00911712646484375, 0.00650787353515625, 0.0179595947265625, 0.021087646484375, 0.0193023681640625, 0.0167999267578125, -0.026153564453125, -0.0172576904296875, 0.040679931640625, -0.033233642578125, 0.016632080078125, 0.0587158203125, -0.0238189697265625, -0.01523590087890625, -0.0002435445785522461, 0.068603515625, 0.0228271484375, 0.03350830078125, -0.003871917724609375, -0.0007500648498535156, -0.0212249755859375, -0.03753662109375, 0.0036525726318359375, -0.03594970703125, -0.011810302734375, 0.00872802734375, -0.035247802734375, -0.0270843505859375, -0.005504608154296875, 0.004047393798828125, 0.0024280548095703125, 0.01107025146484375, 0.040283203125, -0.0293731689453125, -0.01276397705078125, 0.054931640625, 0.0198211669921875, -0.01412200927734375, -0.0303955078125, 0.05010986328125, -0.004451751708984375, -0.06591796875, 0.043426513671875, 0.020599365234375, 0.052886962890625, 0.01517486572265625, 0.00447845458984375, 0.04864501953125, 0.037628173828125, 0.00838470458984375, 0.007427215576171875, 0.018310546875, -0.01403045654296875, -0.044219970703125, -0.015625, 0.0005550384521484375, -0.035430908203125, -0.01309967041015625, -0.0176544189453125, 0.0177764892578125, 0.006786346435546875, 0.0006723403930664062, -0.005733489990234375, -0.00862884521484375, 0.0228729248046875, -0.0447998046875, 0.007053375244140625, 0.03070068359375, -0.0206146240234375, -0.002849578857421875, -0.0234222412109375, -0.005718231201171875, 0.010955810546875, 0.004119873046875, 0.00524139404296875, 0.00020968914031982422, -0.014007568359375, 0.021820068359375, 0.011688232421875, 0.0180511474609375, 0.05511474609375, 0.0804443359375, -0.021697998046875, -0.0179901123046875, -0.045196533203125, -0.00052642822265625, 0.0009183883666992188, -0.08935546875, 0.07373046875, 0.0045318603515625, -0.0206146240234375, -0.044219970703125, -0.0037841796875, -0.0252227783203125, -0.0256500244140625, -0.01552581787109375, 0.059234619140625, 0.045623779296875, 0.0134735107421875, 0.0157928466796875, 0.034332275390625, 0.01898193359375, -0.05340576171875, 0.018585205078125, -0.00815582275390625, 0.003910064697265625, 0.0255126953125, 0.0170745849609375, 0.002170562744140625, 0.01207733154296875, -0.062347412109375, -0.00029015541076660156, 0.0233001708984375, -0.0098724365234375, -0.0238800048828125, 0.01035308837890625, -0.0021381378173828125, 0.015655517578125, 0.01715087890625, -0.0209808349609375, 0.0088653564453125, 0.01126861572265625, 0.011993408203125, 0.0272216796875, 0.0180206298828125, -0.013763427734375, -0.0008931159973144531, -0.004154205322265625, 0.00044846534729003906, -0.01119232177734375, 0.0036907196044921875, -0.0657958984375, -0.0012607574462890625, -0.0236053466796875, 0.024200439453125, -0.01763916015625, -0.026397705078125, -0.022857666015625, -0.001728057861328125, -0.0017271041870117188, -0.02093505859375, 0.012969970703125, -0.0152130126953125, 0.0155792236328125, -0.036865234375, 0.047515869140625, 0.01788330078125, 0.03558349609375, 0.0207977294921875, -0.031005859375, 0.051025390625, -0.005680084228515625, -0.025146484375, 0.039459228515625, 0.00798797607421875, 0.0094451904296875, -0.01247406005859375, 0.0295867919921875, 0.034912109375, -0.029296875, 0.019256591796875, 0.0223236083984375, -0.0011339187622070312, 0.0269622802734375, 0.01387786865234375, 0.00971221923828125, -0.005252838134765625, -0.034149169921875, -0.0233154296875, 0.0191497802734375, 0.10443115234375, -0.0161285400390625, -0.056243896484375, 0.0201873779296875, 0.0535888671875, -0.0509033203125, -0.07879638671875, 0.0021991729736328125, -0.118408203125, -0.0018749237060546875, -0.035003662109375, -0.060882568359375, -0.0018281936645507812, 0.0009584426879882812, 0.01561737060546875, -0.01207733154296875, 0.00908660888671875, -0.041778564453125, -0.0182342529296875, -0.04730224609375, -0.002960205078125, -0.01451873779296875, 0.01261138916015625, 0.0021152496337890625, 0.066650390625, 0.010955810546875, -0.041259765625, -0.0229034423828125, 0.030914306640625, -0.041168212890625, -0.025543212890625, 0.0033130645751953125, -0.0318603515625, -0.04925537109375, 0.0266876220703125, -0.07684326171875, -0.0469970703125, 0.033111572265625, -0.04461669921875, -0.00057220458984375, 0.026885986328125, 0.021728515625, 0.017974853515625, 0.0014133453369140625, 0.019134521484375, 0.00922393798828125, -0.03271484375, -0.0172576904296875, -0.018280029296875, -0.052001953125, -0.0426025390625, 0.036346435546875, 0.0025501251220703125, -0.04559326171875, 0.004100799560546875, -0.027435302734375, -0.018524169921875, -0.036865234375, -0.033599853515625, 0.07257080078125, 0.0101318359375, 0.01056671142578125, 0.0250244140625, -0.0033473968505859375, -0.029022216796875, 0.0161285400390625, -0.02056884765625, -0.01374053955078125, -0.0017223358154296875, -0.0241241455078125, -0.00296783447265625, -0.030120849609375, 0.021728515625, -0.0002713203430175781, 0.0302581787109375, -0.003849029541015625, -0.024078369140625, 0.00650787353515625, 0.0675048828125, -0.07373046875, 0.00335693359375, 0.004058837890625, 0.01151275634765625, -0.01195526123046875, -0.021942138671875, -0.04364013671875, -0.019989013671875, -0.043609619140625, 0.02264404296875, -0.0102386474609375, 0.0020656585693359375, -0.002033233642578125, 0.031494140625, -0.01200103759765625, -0.0277252197265625, 0.00942230224609375, -0.06610107421875, 0.00882720947265625, 0.025299072265625, 0.0211181640625, -0.0296630859375, 0.02154541015625, -0.0760498046875, -0.0567626953125, -0.00504302978515625, 0.01209259033203125, 0.044281005859375, -0.0045623779296875, -0.0093994140625, -0.0015239715576171875, 0.0352783203125, -0.0135498046875, 0.032684326171875, -0.00855255126953125, -0.00461578369140625, 0.0252685546875, 0.039154052734375, -0.0004553794860839844, 0.021087646484375, -0.03704833984375, -0.037841796875, -0.003139495849609375, 0.0298004150390625, -0.0245513916015625, 0.00263214111328125, -0.0230560302734375, 0.021026611328125, -0.0390625, -0.03216552734375, 0.0321044921875, 0.010223388671875, -0.008270263671875, 0.033294677734375, -0.0211944580078125, -0.0225372314453125, 0.032501220703125, 0.0271759033203125, -0.0220947265625, 0.0214080810546875, 0.049163818359375, 0.0038509368896484375, -0.03216552734375, -0.1385498046875, 0.0048370361328125, 0.034637451171875, -0.013092041015625, 0.064208984375, 0.040313720703125, -0.0091552734375, 0.045684814453125, 0.0133514404296875, 0.004901885986328125, 0.00603485107421875, 0.0135040283203125, -0.004650115966796875, -0.01334381103515625, 0.02587890625, -0.01174163818359375, 0.018768310546875, 0.01009368896484375, -0.0007171630859375, 0.0018053054809570312, 0.04571533203125, 0.019317626953125, -0.023895263671875, 0.0096435546875, -0.0178070068359375, -0.047943115234375, 0.009918212890625, 0.0221710205078125, 0.033905029296875, 0.01120758056640625, 0.0275115966796875, 0.04901123046875, 0.04913330078125, 0.00379180908203125, 0.0223846435546875, 0.0665283203125, 0.0219573974609375, 0.0303497314453125, 0.035247802734375, 0.00539398193359375, -0.056396484375, -0.004730224609375, 0.028778076171875, 0.0198974609375, -0.01523590087890625, -0.0167388916015625, -0.004150390625, 0.046844482421875, -0.011077880859375, 0.044952392578125, 0.0056304931640625, -0.0119476318359375, -0.0003402233123779297, -0.0078277587890625, 0.0389404296875, 0.00836181640625, -0.007434844970703125, 0.00960540771484375, 0.0206451416015625, -0.0182037353515625, 0.0174713134765625, 0.01396942138671875, 0.006359100341796875, 0.0287628173828125, -0.0302886962890625, 0.056365966796875, 0.049041748046875, 0.00860595703125, 0.0108489990234375, 0.0030517578125, -0.0045623779296875, -0.0235595703125, -0.0152587890625, -0.037872314453125, -0.015655517578125, -0.012359619140625, 0.047576904296875, -0.0188140869140625, -0.00467681884765625, 0.045989990234375, 0.0037479400634765625, -0.007434844970703125, 0.03759765625, 0.0190887451171875, -0.043853759765625, -0.00975799560546875, 0.012908935546875, 0.00585174560546875, 0.0026454925537109375, 0.006381988525390625, -0.031280517578125, -0.012969970703125, -0.00897979736328125, -0.053192138671875, -0.020172119140625, 0.003997802734375, 0.0092010498046875, 0.003223419189453125, -0.01369476318359375, -0.01079559326171875, -0.035736083984375, 0.0025920867919921875, -0.0245361328125, -0.0245361328125, 0.041778564453125, 0.0203857421875, 0.0550537109375, -0.03118896484375, -0.06744384765625, 0.01044464111328125, -0.00914764404296875, 0.08697509765625, 0.03924560546875, -0.07855224609375, 0.0201873779296875, -0.0506591796875, 0.01203155517578125, 0.0014104843139648438, -0.044281005859375, -0.038543701171875, -0.01458740234375, 0.0163116455078125, 0.006153106689453125, 0.023284912109375, -0.0033359527587890625, -0.0234832763671875, 0.033172607421875, 0.016815185546875, 0.044891357421875, -0.0236358642578125, 0.0360107421875, 0.01459503173828125, -0.012786865234375, 0.0099639892578125, 0.0223236083984375, 0.0161590576171875, -0.003902435302734375, 0.0110321044921875, -0.0239715576171875, -0.00875091552734375, 0.0038909912109375, -0.003765106201171875, -0.028961181640625, 0.0021953582763671875, -0.00789642333984375, -0.01393890380859375, -0.01458740234375, 0.004642486572265625, -0.00390625, 0.01525115966796875, 0.01509857177734375, -0.038665771484375, 0.033966064453125, 0.0119476318359375, -0.0242462158203125, 0.0018177032470703125, -0.041290283203125, 0.0009212493896484375, 0.0384521484375, -0.00951385498046875, 0.01061248779296875, -0.00655364990234375, 0.0231781005859375, 0.072265625, -0.0183868408203125, 0.03240966796875, 0.0340576171875, -0.0084075927734375, 0.021209716796875, 0.00965118408203125, -0.0406494140625, -0.006679534912109375, 0.0400390625, -0.004421234130859375, -0.0308380126953125, 0.01094818115234375, -0.0309906005859375, 0.003345489501953125, 0.048309326171875, 0.069091796875, -0.05072021484375, -0.005558013916015625, 0.0306396484375, -0.0257720947265625, -0.0002532005310058594, -0.0205535888671875, 0.004711151123046875, -0.0310211181640625, 0.08575439453125, 0.040618896484375, 0.00849151611328125, 0.0465087890625, -0.01548004150390625, 0.038177490234375, -0.0236053466796875, 0.0877685546875, 0.002307891845703125, -0.10675048828125, 0.00731658935546875, 0.078369140625, -0.0227813720703125, -0.038543701171875, -0.017852783203125, -0.0169830322265625, -0.039398193359375, -0.057861328125, -0.025238037109375, -0.0146636962890625, 0.0253143310546875, 0.033843994140625, 0.03125, 0.0060577392578125, 0.06378173828125, -0.0204010009765625, 0.048828125, 0.021240234375, 0.01108551025390625, -0.07147216796875, -0.022552490234375, 0.02099609375, 0.02105712890625, -0.051666259765625, 0.038116455078125, -0.03997802734375, -0.0169677734375, -0.01503753662109375, -0.049652099609375, 0.035736083984375, -0.00827789306640625, -0.02447509765625, 0.001987457275390625, -0.0214080810546875, 0.01078033447265625, -0.03155517578125, 0.044525146484375, -0.05462646484375, -0.013336181640625, -0.0022296905517578125, -0.01270294189453125, -0.00592041015625, -0.05133056640625, -0.0411376953125, 0.0914306640625, -0.020111083984375, 0.00336456298828125, 0.00554656982421875, 0.045501708984375, 0.00283050537109375, 0.0384521484375, -0.01007843017578125, 0.038360595703125, 0.00447845458984375, 0.03558349609375, -0.0124053955078125, -0.007244110107421875, 0.0176544189453125, 0.02978515625, 0.0204010009765625, 0.003238677978515625, -0.018157958984375, 0.0054168701171875, 0.066650390625, 0.0517578125, 0.019775390625, 0.00569915771484375, 0.01116943359375, 0.059722900390625, 0.0167083740234375, -0.027496337890625, 0.0211944580078125, 0.0160369873046875, -0.0284423828125, 0.0689697265625, 0.028411865234375, 0.006443023681640625, 0.027099609375, -0.008087158203125, -0.07928466796875, 0.033416748046875, 0.041717529296875, 0.049407958984375, -0.033966064453125, 0.0516357421875, -0.032470703125, -0.0200958251953125, -0.0109710693359375, -0.04083251953125, 0.0307159423828125, -0.022216796875, 0.01739501953125, 0.0242156982421875, 0.007511138916015625, 0.05755615234375, 0.007190704345703125, 0.00516510009765625, 0.0271759033203125, 0.0019016265869140625, -0.00913238525390625, 0.01654052734375, 0.024261474609375, -0.0195465087890625, 0.029022216796875, 0.006481170654296875, -0.0126495361328125, -0.0261077880859375, -0.0038547515869140625, -0.002288818359375, -0.0126800537109375, 0.0084991455078125, -0.041595458984375, 0.00646209716796875, 0.00777435302734375, 0.004970550537109375, -0.0264892578125, -0.0173797607421875, 0.01727294921875, 0.0214996337890625, 0.0019474029541015625, 0.028350830078125, -0.03302001953125, -0.0299835205078125, -0.0196990966796875, 0.0224609375, 0.0125274658203125, 0.038330078125, -0.0025157928466796875, 0.035186767578125, -0.034332275390625, 0.002017974853515625, -0.005702972412109375, 0.0199127197265625, -0.0168609619140625, 0.0308380126953125, -0.047454833984375, -0.045867919921875, -0.00881195068359375, 0.057098388671875, 0.0523681640625, 0.03656005859375, 0.0521240234375, -0.006420135498046875, -0.0217437744140625, 0.005657196044921875, 0.008056640625, -0.03106689453125, -0.01268768310546875, -0.0006132125854492188, -0.0419921875, 0.00559234619140625, -0.0259857177734375, 0.007282257080078125, 0.0198211669921875, 0.0091094970703125, 0.00695037841796875, -0.0070343017578125, 0.00885772705078125, -0.049835205078125, 0.0269317626953125, 0.01110076904296875, 0.09991455078125, 0.039520263671875, -0.0199127197265625, 0.01285552978515625, 0.0022678375244140625, -0.075927734375, 0.00875091552734375, 0.044036865234375, -0.021026611328125, 0.0134429931640625, -0.01215362548828125, 0.0144500732421875, 0.02252197265625, -0.01094818115234375, -0.0248565673828125, 0.00873565673828125, 0.037841796875, -0.00473785400390625, -0.0560302734375, -0.03662109375, -0.0416259765625, 0.039794921875, 0.037872314453125, 0.061553955078125, -0.005825042724609375, 0.050628662109375, 0.022705078125, 0.0114288330078125, -0.0197601318359375, 0.01316070556640625, 0.01132965087890625, -0.023345947265625, 0.00048828125, -0.01377105712890625, -0.0428466796875, 0.0026702880859375, 0.04620361328125, -0.03778076171875, -0.0101776123046875, 0.0242767333984375, 0.01279449462890625, -0.0188446044921875, 0.035919189453125, -0.00981903076171875, 0.00016355514526367188, -0.0030994415283203125, -0.0103759765625, 0.047515869140625, 0.01476287841796875, -0.0118865966796875, -0.03228759765625, -0.01517486572265625, -0.050140380859375, 0.00872802734375, 0.00839996337890625, -0.037567138671875, 0.01007080078125, 0.035552978515625, 0.0128173828125, -0.0092620849609375, -0.0312042236328125, 0.01739501953125, 0.00653076171875, -0.000457763671875, 0.0003800392150878906, -0.0022678375244140625, 0.0277557373046875, 0.03826904296875, 0.048797607421875, -0.006504058837890625, 0.021392822265625, 0.047393798828125, -0.004978179931640625, -0.00005251169204711914, 0.053497314453125, 0.001983642578125, -0.03387451171875, -0.02880859375, -0.0193023681640625, -0.057769775390625, -0.049224853515625, -0.039337158203125, -0.0302886962890625, 0.01538848876953125, -0.020477294921875, 0.0165252685546875, -0.0401611328125, -0.038116455078125, 0.01108551025390625, -0.04315185546875, 0.038970947265625, 0.00395965576171875, 0.0116119384765625, -0.0706787109375, -0.0207977294921875, -0.0170440673828125, 0.021026611328125, -0.006740570068359375, 0.0087432861328125, 0.0263214111328125, -0.035186767578125, 0.0008335113525390625, 0.01117706298828125, 0.029937744140625, 0.039764404296875, 0.0231170654296875, -0.017303466796875, 0.0183258056640625, 0.016845703125, -0.015228271484375, -0.06341552734375, 0.008392333984375, -0.031524658203125, 0.004413604736328125, -0.0328369140625, 0.0235443115234375, 0.0306396484375, -0.022216796875, -0.05609130859375, 0.03448486328125, -0.02850341796875, -0.029937744140625, -0.06591796875, -0.00757598876953125, 0.01032257080078125, 0.00400543212890625, -0.0243682861328125, -0.0277252197265625, -0.02825927734375, 0.0499267578125, 0.01727294921875, 0.0053253173828125, 0.049713134765625, -0.0209197998046875, -0.00513458251953125, 0.004364013671875, 0.0182037353515625, 0.007717132568359375, 0.00933837890625, -0.0106353759765625, 0.033660888671875, 0.0330810546875, -0.046295166015625, 0.0267333984375, -0.0021152496337890625, 0.0229949951171875, -0.019012451171875, -0.0005507469177246094, -0.041259765625, -0.00847625732421875, 0.0706787109375, 0.07244873046875, 0.0250396728515625, -0.02728271484375, -0.0187225341796875, -0.0213470458984375, -0.0394287109375, 0.017059326171875, 0.0277252197265625, -0.05413818359375, 0.015625, 0.0287322998046875, -0.022125244140625, 0.0113983154296875, -0.0125274658203125, -0.03289794921875, -0.0002815723419189453, -0.037200927734375, -0.0099945068359375, -0.022216796875, -0.0340576171875, 0.0106048583984375, 0.0027713775634765625, 0.0205841064453125, -0.0130157470703125, 0.02178955078125, 0.0082244873046875, 0.03961181640625, 0.036956787109375, 0.046844482421875, -0.057342529296875, -0.009033203125, 0.031005859375, 0.033416748046875, -0.03729248046875, -0.0228271484375, -0.0161285400390625, 0.0234832763671875, 0.00562286376953125, 0.0300140380859375, -0.0025119781494140625, 0.014984130859375, 0.0018415451049804688, 0.0491943359375, -0.00464630126953125, 0.0977783203125, -0.008270263671875, 0.0662841796875, 0.0032196044921875, -0.0247955322265625, 0.00946807861328125, -0.016754150390625, 0.005519866943359375, -0.001922607421875, -0.01352691650390625, 0.01181793212890625, -0.006519317626953125, 0.0005826950073242188, -0.01190948486328125, 0.007213592529296875 ]
9a5f2e8dd7297a7702e254fdf722944f475cc401
Wordpress Stackexchange Q: change only the theme language My wordpress admin is in french. and my theme is in arabic. i have two files mo : arabic and french. i used this : add_filter( 'locale', 'change_locale' ); function change_locale(){ return 'pt_AR'; } load_default_textdomain(); load_textdomain('responsive', get_template_directory().'/languages/pt_AR.mo'); i have my site web in araic only if i deleted the file french pt_FR.mo if this file exit, my site web is will be in french not in arabic how can fixed it ?! A: Yes, rename your pt_AR.mo to ar.mo and pt_FR to fr_FR.mo. In step one install but not activate yet the plugin Admin in English. Edit the plugin's php script. Find line with en_US string and replace this string with fr_FR. Save and activate the plugin. Now your Dashboard will be in French. In step two remove first three lines of your code from theme's functions.php and replace fourth one withload_theme_textdomain('responsive', get_template_directory().'/languages');. In final step go toRéglages -> Général` and select Arabic as your site's language. Now you should have your front end in Arabic and back end in French.
Q: change only the theme language My wordpress admin is in french. and my theme is in arabic. i have two files mo : arabic and french. i used this : add_filter( 'locale', 'change_locale' ); function change_locale(){ return 'pt_AR'; } load_default_textdomain(); load_textdomain('responsive', get_template_directory().'/languages/pt_AR.mo'); i have my site web in araic only if i deleted the file french pt_FR.mo if this file exit, my site web is will be in french not in arabic how can fixed it ?! A: Yes, rename your pt_AR.mo to ar.mo and pt_FR to fr_FR.mo. In step one install but not activate yet the plugin Admin in English. Edit the plugin's php script. Find line with en_US string and replace this string with fr_FR. Save and activate the plugin. Now your Dashboard will be in French. In step two remove first three lines of your code from theme's functions.php and replace fourth one withload_theme_textdomain('responsive', get_template_directory().'/languages');. In final step go toRéglages -> Général` and select Arabic as your site's language. Now you should have your front end in Arabic and back end in French.
wordpress
{ "language": "en", "length": 177, "provenance": "stackexchange_00019.jsonl.gz:458182", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/198776" }
[ -0.01483917236328125, -0.035675048828125, 0.00421142578125, -0.01541900634765625, -0.0243072509765625, -0.00356292724609375, -0.0032939910888671875, 0.0028171539306640625, -0.00128173828125, 0.020599365234375, 0.041900634765625, -0.01206207275390625, -0.015625, -0.047210693359375, -0.01264190673828125, -0.001251220703125, 0.045135498046875, -0.023895263671875, 0.0270538330078125, 0.00001823902130126953, -0.0102996826171875, 0.0174560546875, 0.050872802734375, 0.0208282470703125, 0.025299072265625, -0.06658935546875, 0.057373046875, -0.044036865234375, 0.0028934478759765625, -0.033935546875, 0.0211181640625, 0.03460693359375, 0.035888671875, 0.0018901824951171875, -0.0288543701171875, -0.04901123046875, 0.0269317626953125, -0.01392364501953125, -0.034759521484375, 0.0311431884765625, 0.0210723876953125, -0.0103912353515625, -0.0161590576171875, 0.07733154296875, -0.019012451171875, -0.0816650390625, 0.040771484375, -0.04840087890625, 0.01194000244140625, -0.0013322830200195312, -0.0010404586791992188, -0.0137481689453125, 0.007068634033203125, -0.0011777877807617188, -0.01263427734375, -0.0018091201782226562, -0.004261016845703125, 0.042388916015625, 0.0361328125, 0.0126190185546875, -0.034149169921875, -0.00910186767578125, 0.0013360977172851562, -0.04010009765625, -0.03192138671875, -0.01514434814453125, -0.04327392578125, 0.00775146484375, -0.01543426513671875, -0.00930023193359375, 0.023834228515625, -0.026885986328125, 0.0169677734375, -0.040313720703125, 0.00286102294921875, 0.05767822265625, -0.0430908203125, 0.0009627342224121094, 0.035369873046875, -0.03399658203125, 0.060882568359375, 0.024810791015625, -0.023590087890625, -0.01224517822265625, -0.014678955078125, -0.0002435445785522461, -0.00023353099822998047, -0.02301025390625, -0.07379150390625, -0.031524658203125, -0.036865234375, -0.012969970703125, -0.1151123046875, -0.006244659423828125, 0.013214111328125, -0.0184173583984375, 0.0082855224609375, 0.008270263671875, 0.006439208984375, 0.0301361083984375, -0.01153564453125, -0.040802001953125, 0.0430908203125, -0.0333251953125, 0.01297760009765625, -0.0059814453125, 0.006984710693359375, 0.01465606689453125, 0.04583740234375, 0.03192138671875, -0.00666046142578125, 0.07025146484375, -0.01568603515625, -0.0111846923828125, -0.0177764892578125, 0.032958984375, -0.0277557373046875, -0.01372528076171875, -0.01554107666015625, 0.00930023193359375, 0.015716552734375, 0.04266357421875, -0.048828125, -0.0518798828125, -0.00429534912109375, -0.052398681640625, -0.032012939453125, 0.034271240234375, -0.016204833984375, 0.004638671875, -0.01326751708984375, 0.000675201416015625, 0.0023441314697265625, 0.036712646484375, 0.00060272216796875, -0.00787353515625, 0.0166168212890625, -0.002971649169921875, -0.01337432861328125, 0.00031828880310058594, 0.032318115234375, -0.0321044921875, -0.0162353515625, 0.01412200927734375, -0.057830810546875, 0.002277374267578125, -0.0034732818603515625, 0.0309906005859375, -0.00545501708984375, -0.05609130859375, 0.033111572265625, -0.06182861328125, 0.03369140625, 0.0150299072265625, -0.042724609375, -0.007534027099609375, 0.01482391357421875, -0.003204345703125, -0.0297698974609375, -0.0302581787109375, 0.0026607513427734375, -0.034332275390625, 0.0032787322998046875, -0.0057830810546875, -0.038604736328125, 0.03271484375, -0.017669677734375, 0.003505706787109375, 0.030303955078125, -0.0277862548828125, 0.033538818359375, -0.0279693603515625, 0.043701171875, 0.00286865234375, 0.007480621337890625, 0.03179931640625, -0.032470703125, 0.0219879150390625, 0.0207672119140625, 0.0054779052734375, 0.03289794921875, -0.012359619140625, 0.048553466796875, 0.0232391357421875, -0.0220794677734375, -0.050811767578125, 0.048614501953125, 0.051513671875, 0.0088043212890625, 0.046112060546875, 0.00951385498046875, -0.0120391845703125, -0.049407958984375, 0.01052093505859375, -0.01898193359375, 0.016357421875, 0.0035152435302734375, 0.037078857421875, -0.0019989013671875, -0.0157318115234375, 0.031280517578125, 0.01070404052734375, -0.00978851318359375, -0.01047515869140625, -0.036834716796875, -0.0073089599609375, -0.006801605224609375, 0.01904296875, 0.02496337890625, 0.0310821533203125, -0.006336212158203125, -0.00675201416015625, -0.023406982421875, -0.0014200210571289062, -0.0269622802734375, 0.00241851806640625, -0.022125244140625, 0.01496124267578125, 0.0194549560546875, 0.002323150634765625, 0.0277099609375, -0.01513671875, 0.03192138671875, 0.005023956298828125, 0.031890869140625, -0.020294189453125, 0.006237030029296875, -0.016204833984375, 0.057952880859375, -0.01534271240234375, 0.03485107421875, 0.049346923828125, -0.045501708984375, -0.03948974609375, -0.0155029296875, 0.01129913330078125, 0.00330352783203125, -0.08349609375, 0.01392364501953125, 0.048187255859375, 0.0197906494140625, -0.00978851318359375, -0.0212249755859375, -0.007633209228515625, 0.0328369140625, -0.01360321044921875, 0.0040740966796875, 0.00510406494140625, 0.042236328125, 0.038604736328125, -0.033294677734375, -0.01036834716796875, 0.0182342529296875, -0.10888671875, 0.01514434814453125, 0.048583984375, -0.0305328369140625, -0.0643310546875, 0.033599853515625, 0.0038471221923828125, 0.005786895751953125, -0.01142120361328125, -0.0281524658203125, -0.0001690387725830078, -0.01038360595703125, 0.026336669921875, 0.00644683837890625, 0.00972747802734375, -0.0499267578125, 0.0067138671875, 0.026885986328125, 0.041748046875, 0.00963592529296875, 0.039642333984375, -0.033782958984375, 0.0020732879638671875, -0.0224609375, -0.0025787353515625, 0.02099609375, 0.002864837646484375, 0.01016998291015625, 0.039794921875, -0.01910400390625, -0.0108795166015625, 0.005245208740234375, -0.05499267578125, -0.00818634033203125, 0.03692626953125, 0.0131072998046875, 0.001773834228515625, 0.01082611083984375, -0.01094818115234375, -0.0369873046875, 0.048065185546875, 0.0030269622802734375, -0.042633056640625, 0.08380126953125, -0.0258331298828125, 0.00787353515625, -0.0052490234375, 0.06427001953125, 0.044464111328125, 0.03546142578125, -0.03759765625, 0.00188446044921875, 0.002468109130859375, -0.0086822509765625, 0.0181121826171875, -0.00955963134765625, -0.0097808837890625, -0.050048828125, 0.0228271484375, 0.0011415481567382812, -0.02337646484375, -0.029632568359375, -0.04180908203125, -0.032012939453125, -0.0113677978515625, -0.06622314453125, -0.01479339599609375, 0.01065826416015625, -0.043548583984375, 0.035400390625, 0.01053619384765625, -0.014556884765625, -0.0295257568359375, 0.019195556640625, 0.00969696044921875, 0.042816162109375, -0.006389617919921875, -0.0025348663330078125, 0.0211639404296875, -0.0364990234375, -0.020965576171875, 0.01511383056640625, -0.022064208984375, 0.0213470458984375, -0.0169525146484375, -0.0007829666137695312, -0.039703369140625, 0.021636962890625, 0.053436279296875, -0.01232147216796875, 0.00818634033203125, 0.003871917724609375, -0.0526123046875, 0.038055419921875, -0.0166168212890625, -0.002986907958984375, 0.03448486328125, 0.00043654441833496094, 0.004718780517578125, -0.003093719482421875, -0.0187835693359375, -0.0012063980102539062, -0.033447265625, 0.0040130615234375, -0.006069183349609375, -0.0034046173095703125, -0.04864501953125, -0.048553466796875, 0.020721435546875, -0.032318115234375, 0.03521728515625, 0.0149993896484375, -0.049713134765625, 0.01259613037109375, 0.0285186767578125, -0.005123138427734375, -0.0158538818359375, 0.006603240966796875, -0.03692626953125, 0.0250701904296875, 0.0075836181640625, 0.01085662841796875, 0.00904083251953125, 0.03533935546875, -0.0227813720703125, -0.005161285400390625, 0.010467529296875, -0.018890380859375, 0.0021762847900390625, 0.0007042884826660156, 0.007137298583984375, -0.0291290283203125, 0.01168060302734375, -0.06207275390625, -0.005767822265625, -0.005992889404296875, -0.001605987548828125, 0.0026111602783203125, 0.038848876953125, -0.027099609375, 0.00403594970703125, 0.0030975341796875, 0.006900787353515625, -0.03070068359375, -0.02880859375, -0.0753173828125, -0.005123138427734375, -0.04229736328125, 0.012542724609375, 0.0020771026611328125, -0.016632080078125, -0.03460693359375, 0.0219879150390625, -0.036376953125, -0.0174407958984375, 0.043182373046875, -0.0200042724609375, -0.005657196044921875, 0.0062408447265625, -0.0224456787109375, -0.005992889404296875, -0.031890869140625, -0.0037326812744140625, -0.0780029296875, -0.034210205078125, -0.0251922607421875, 0.08935546875, 0.01776123046875, -0.00811004638671875, -0.0166473388671875, 0.050933837890625, 0.0030155181884765625, 0.03021240234375, -0.0025119781494140625, -0.00957489013671875, 0.059295654296875, 0.0259857177734375, 0.00225830078125, 0.0166473388671875, -0.01502227783203125, 0.0305328369140625, -0.03851318359375, 0.04766845703125, 0.01302337646484375, -0.01464080810546875, 0.07537841796875, -0.06634521484375, -0.07098388671875, -0.00450897216796875, -0.0259246826171875, -0.017242431640625, -0.0267333984375, -0.01134490966796875, -0.0001323223114013672, -0.04595947265625, 0.044952392578125, -0.0281829833984375, -0.00788116455078125, -0.00356292724609375, 0.060516357421875, 0.0014543533325195312, -0.02142333984375, -0.006622314453125, -0.0202789306640625, 0.0302886962890625, 0.0221710205078125, 0.054595947265625, 0.0153656005859375, -0.044952392578125, 0.1201171875, 0.0157623291015625, -0.01459503173828125, 0.006023406982421875, 0.06597900390625, 0.01087188720703125, -0.0151519775390625, 0.0204010009765625, 0.00635528564453125, -0.04925537109375, 0.01227569580078125, 0.01244354248046875, -0.00540924072265625, 0.0194854736328125, 0.0225982666015625, -0.004425048828125, -0.00926971435546875, -0.022125244140625, -0.06280517578125, 0.0287628173828125, 0.006687164306640625, -0.01392364501953125, -0.037689208984375, 0.019683837890625, 0.003559112548828125, 0.032501220703125, 0.0013818740844726562, 0.05963134765625, 0.0499267578125, 0.01274871826171875, 0.0247650146484375, 0.054779052734375, -0.018768310546875, -0.01105499267578125, -0.00931549072265625, 0.039276123046875, 0.01250457763671875, -0.0264129638671875, -0.0271453857421875, 0.0043182373046875, 0.051666259765625, 0.0128173828125, -0.00923919677734375, 0.026947021484375, 0.0068206787109375, -0.0210418701171875, 0.0030231475830078125, 0.0268096923828125, -0.050994873046875, -0.0380859375, -0.01447296142578125, -0.00765228271484375, 0.00612640380859375, -0.035308837890625, 0.10107421875, 0.01007843017578125, 0.017181396484375, -0.013214111328125, -0.038970947265625, -0.01277923583984375, 0.041961669921875, 0.0079498291015625, -0.0288543701171875, 0.0159912109375, 0.03607177734375, 0.0675048828125, -0.0158843994140625, 0.025054931640625, 0.057861328125, 0.0364990234375, -0.01380157470703125, -0.036590576171875, -0.0038433074951171875, -0.021331787109375, 0.037841796875, 0.02069091796875, -0.0643310546875, -0.09075927734375, 0.0120086669921875, 0.066162109375, 0.033355712890625, -0.0841064453125, 0.00995635986328125, 0.00312042236328125, -0.0118255615234375, -0.0008568763732910156, 0.0361328125, -0.004291534423828125, -0.038848876953125, -0.03302001953125, -0.021453857421875, 0.01409149169921875, 0.01189422607421875, -0.0599365234375, -0.035003662109375, 0.01324462890625, -0.00933074951171875, -0.00030684471130371094, 0.038177490234375, 0.01340484619140625, -0.0189208984375, -0.03448486328125, 0.007526397705078125, -0.00991058349609375, 0.026641845703125, -0.036773681640625, -0.0197906494140625, -0.035675048828125, -0.0258331298828125, -0.023681640625, -0.058258056640625, -0.03265380859375, -0.02459716796875, 0.0304107666015625, 0.0011415481567382812, 0.033294677734375, -0.0301971435546875, -0.004779815673828125, 0.00986480712890625, 0.01395416259765625, -0.00653839111328125, 0.0777587890625, -0.00717926025390625, 0.061798095703125, 0.011566162109375, 0.010650634765625, 0.014678955078125, 0.046905517578125, -0.0037441253662109375, -0.0169830322265625, 0.00719451904296875, -0.0311431884765625, 0.0002617835998535156, 0.01641845703125, -0.03173828125, -0.0298309326171875, 0.00760650634765625, 0.00811004638671875, 0.0017137527465820312, 0.011810302734375, -0.0007686614990234375, -0.02227783203125, 0.019500732421875, -0.003902435302734375, 0.05633544921875, -0.01364898681640625, -0.02789306640625, -0.01224517822265625, -0.0130615234375, -0.013427734375, 0.049774169921875, -0.025726318359375, 0.0196075439453125, 0.0247344970703125, -0.0241241455078125, 0.016510009765625, 0.040863037109375, 0.03802490234375, 0.036834716796875, 0.02471923828125, 0.035369873046875, -0.0279388427734375, 0.030181884765625, 0.004993438720703125, 0.00820159912109375, 0.0160980224609375, -0.01404571533203125, 0.006252288818359375, -0.007904052734375, -0.01132965087890625, -0.0058746337890625, 0.0908203125, 0.0655517578125, -0.11346435546875, -0.007305145263671875, 0.003696441650390625, -0.007396697998046875, -0.0078887939453125, 0.0010776519775390625, -0.0316162109375, -0.0634765625, 0.0450439453125, -0.035430908203125, -0.0230865478515625, -0.001956939697265625, 0.0024127960205078125, -0.00437164306640625, 0.0244140625, 0.050872802734375, -0.0006079673767089844, -0.022491455078125, -0.0274658203125, -0.01546478271484375, 0.01007080078125, -0.0261383056640625, -0.0015869140625, 0.00963592529296875, -0.0261077880859375, -0.077392578125, -0.0144195556640625, -0.004608154296875, -0.01177215576171875, -0.005840301513671875, 0.03717041015625, 0.042449951171875, 0.07171630859375, -0.0113677978515625, -0.027801513671875, 0.0401611328125, 0.0285186767578125, 0.0135955810546875, -0.0118560791015625, -0.006565093994140625, -0.00004851818084716797, -0.039703369140625, -0.0036334991455078125, -0.0521240234375, 0.0158843994140625, 0.007091522216796875, -0.02886962890625, 0.005207061767578125, 0.0399169921875, -0.035980224609375, 0.0146942138671875, -0.0225372314453125, 0.0080718994140625, -0.0149383544921875, 0.01971435546875, -0.07464599609375, -0.051605224609375, 0.00936126708984375, -0.056427001953125, -0.03955078125, -0.00818634033203125, -0.07501220703125, 0.091552734375, 0.0005564689636230469, 0.035430908203125, -0.0225677490234375, 0.0484619140625, -0.001079559326171875, 0.0037860870361328125, 0.0006704330444335938, 0.0247344970703125, 0.0152435302734375, -0.030059814453125, -0.0261383056640625, 0.002094268798828125, -0.01410675048828125, 0.03515625, 0.056488037109375, 0.0159454345703125, 0.0003647804260253906, -0.0193634033203125, 0.020721435546875, 0.0292816162109375, -0.019927978515625, 0.01389312744140625, -0.0501708984375, 0.05950927734375, -0.0285186767578125, -0.07257080078125, 0.01297760009765625, -0.031951904296875, -0.10235595703125, -0.01032257080078125, 0.003875732421875, 0.008941650390625, 0.010498046875, 0.0011281967163085938, -0.0261993408203125, 0.006641387939453125, 0.016510009765625, -0.0396728515625, -0.0034027099609375, -0.00331878662109375, 0.01287841796875, -0.07000732421875, -0.00909423828125, -0.035430908203125, 0.0399169921875, 0.005207061767578125, -0.0229949951171875, 0.010009765625, 0.006160736083984375, -0.035308837890625, -0.03924560546875, -0.019073486328125, 0.005428314208984375, -0.01546478271484375, -0.006679534912109375, 0.0277862548828125, 0.0169219970703125, 0.0012445449829101562, 0.0207977294921875, 0.032562255859375, 0.021881103515625, -0.0118255615234375, -0.0234222412109375, 0.0017766952514648438, -0.001071929931640625, 0.0033550262451171875, 0.0161590576171875, 0.0128936767578125, 0.00644683837890625, 0.0253448486328125, 0.019744873046875, -0.007732391357421875, -0.0220947265625, 0.016510009765625, 0.0014324188232421875, -0.016510009765625, 0.03253173828125, 0.0269927978515625, -0.038665771484375, 0.0114898681640625, 0.01445770263671875, 0.06329345703125, 0.00936126708984375, 0.05035400390625, -0.01024627685546875, -0.025787353515625, -0.0184783935546875, 0.006679534912109375, -0.01004791259765625, 0.01059722900390625, -0.04144287109375, -0.032989501953125, -0.004848480224609375, 0.047210693359375, -0.016387939453125, -0.0261993408203125, 0.030120849609375, 0.05609130859375, -0.0257720947265625, -0.0159149169921875, 0.0377197265625, -0.0088958740234375, -0.01313018798828125, -0.034271240234375, 0.030731201171875, -0.0008072853088378906, 0.0096435546875, 0.005184173583984375, 0.09259033203125, -0.027008056640625, 0.01375579833984375, 0.017333984375, 0.01200103759765625, -0.01047515869140625, -0.01279449462890625, 0.0088653564453125, 0.04022216796875, 0.0467529296875, -0.0304107666015625, -0.01071929931640625, -0.0025157928466796875, -0.052978515625, 0.02056884765625, 0.0284576416015625, -0.047393798828125, 0.05389404296875, -0.0259246826171875, -0.011810302734375, -0.0170440673828125, 0.00391387939453125, 0.0183868408203125, 0.0107574462890625, -0.0017023086547851562, -0.0022125244140625, 0.023223876953125, -0.0030536651611328125, 0.00848388671875, 0.0501708984375, 0.0171356201171875, 0.01282501220703125, -0.0159759521484375, 0.0447998046875, -0.0302886962890625, -0.006542205810546875, 0.004077911376953125, -0.054779052734375, 0.059661865234375, 0.024078369140625, 0.0022258758544921875, -0.0160369873046875, -0.0287628173828125, -0.03485107421875, 0.051544189453125, -0.0672607421875, -0.015899658203125, -0.0016889572143554688, 0.026519775390625, -0.0633544921875, 0.00962066650390625, -0.029541015625, -0.10845947265625, -0.0780029296875, 0.0867919921875, 0.0022754669189453125, 0.043914794921875, -0.0797119140625, 0.04364013671875, -0.0587158203125, -0.03778076171875, 0.011199951171875, -0.06268310546875, -0.016815185546875, 0.01617431640625, -0.00444793701171875, -0.0037555694580078125, 0.003482818603515625, -0.013427734375, 0.006378173828125, 0.01067352294921875, 0.035064697265625, -0.011688232421875, 0.03509521484375, -0.01470184326171875, 0.006908416748046875, 0.0024700164794921875, -0.0362548828125, 0.006069183349609375, 0.0239105224609375, -0.0150299072265625, 0.004871368408203125, 0.036224365234375, -0.00241851806640625, 0.01519775390625, -0.0172882080078125, -0.0035037994384765625, 0.01325225830078125, -0.030517578125, -0.0209197998046875, 0.034881591796875, 0.037109375, -0.0118255615234375, -0.051025390625, 0.01446533203125, -0.0273284912109375, 0.0718994140625, -0.00862884521484375, -0.054443359375, 0.01523590087890625, 0.020294189453125, -0.037384033203125, -0.024566650390625, -0.04052734375, -0.036102294921875, -0.04656982421875, -0.0210418701171875, 0.0217437744140625, 0.023651123046875, -0.0160369873046875, 0.00001329183578491211, -0.021728515625, 0.04351806640625, -0.032867431640625, 0.0091552734375, 0.04052734375, 0.0015735626220703125, -0.049285888671875, -0.0712890625, 0.017059326171875, -0.058380126953125, -0.01507568359375, -0.01291656494140625, -0.0169525146484375, -0.0119781494140625, -0.0460205078125, -0.07952880859375, 0.0164947509765625, 0.001354217529296875, -0.0291290283203125, -0.0283050537109375, 0.025726318359375, -0.009796142578125, 0.0191497802734375, -0.002040863037109375, -0.049530029296875, -0.0162200927734375, -0.00601959228515625, 0.0217437744140625, 0.0298614501953125, 0.0022182464599609375, 0.036865234375, -0.00606536865234375, 0.03814697265625, 0.0234222412109375, 0.00406646728515625, -0.01617431640625, 0.017608642578125, -0.01074981689453125, 0.02227783203125, -0.0271453857421875, -0.042572021484375, -0.0040740966796875, 0.01169586181640625, -0.0059356689453125, -0.041046142578125, -0.01073455810546875, -0.02801513671875, 0.078369140625, -0.01093292236328125, 0.006801605224609375, -0.005382537841796875, -0.0158843994140625, 0.0017328262329101562, 0.01244354248046875, -0.0014934539794921875, 0.007598876953125, -0.0584716796875, -0.01178741455078125, 0.0206298828125, 0.0173797607421875, 0.0133209228515625, 0.033782958984375, -0.0016727447509765625, -0.018768310546875, 0.01439666748046875, -0.032928466796875, -0.040557861328125, -0.0310516357421875, 0.06915283203125, -0.037200927734375, 0.0036163330078125, -0.00652313232421875, 0.03326416015625, 0.0287322998046875, -0.0098114013671875, 0.00925445556640625, -0.0270843505859375, 0.044647216796875, 0.01371002197265625, 0.037841796875, -0.0248260498046875, 0.0498046875, -0.023223876953125, -0.01351165771484375, 0.0223236083984375, 0.01001739501953125, 0.040863037109375, -0.03900146484375, 0.023681640625, 0.0200347900390625, -0.0009918212890625, -0.01358795166015625, -0.041748046875, -0.01001739501953125, 0.0041961669921875, -0.0239715576171875, -0.002471923828125, -0.00754547119140625, -0.0390625, 0.004619598388671875, 0.01201629638671875, 0.01343536376953125, -0.034820556640625, 0.0158843994140625, 0.003696441650390625, 0.02215576171875, 0.0176239013671875 ]
63b6ae960b0d7598a12dba6f88d64c3f7b3587d2
Wordpress Stackexchange Q: Is /wp-login.php?redirect_to[] exploitable? I have a wordpress site, against which I ran a penetration testing tool (debug mode was on at the time) It reported a (medium severity) issue in that errors were being displayed, and cited /wp-login.php?redirect_to[]=blah as triggering a warning: urlencode() expects parameter 1 to be string, array given in /home3/.../wp-includes/general-template.php on line 340 When I turned debug mode off, and replayed the session the redirect took place, and redirected me to /Array Which concerns me that wordpress may be trying to evaluate the querystring parameter name in some way that is exploitable. Am I being overly paranoid? A: I think this is nothing to worry about. The redirect target is sanitized and validated a lot. To be honest I think I haven't seen any part of the WordPress code where so many checks happen for the most obscure attack vectors. Finally when you cast an array to a string Array is returned which is what you've seen. Arrays are always converted to the string "Array"; Source This happens in _deep_replace. So my personal opinion is this should be fine. Let's see what other people say.
Q: Is /wp-login.php?redirect_to[] exploitable? I have a wordpress site, against which I ran a penetration testing tool (debug mode was on at the time) It reported a (medium severity) issue in that errors were being displayed, and cited /wp-login.php?redirect_to[]=blah as triggering a warning: urlencode() expects parameter 1 to be string, array given in /home3/.../wp-includes/general-template.php on line 340 When I turned debug mode off, and replayed the session the redirect took place, and redirected me to /Array Which concerns me that wordpress may be trying to evaluate the querystring parameter name in some way that is exploitable. Am I being overly paranoid? A: I think this is nothing to worry about. The redirect target is sanitized and validated a lot. To be honest I think I haven't seen any part of the WordPress code where so many checks happen for the most obscure attack vectors. Finally when you cast an array to a string Array is returned which is what you've seen. Arrays are always converted to the string "Array"; Source This happens in _deep_replace. So my personal opinion is this should be fine. Let's see what other people say. A: Which concerns me that wordpress may be trying to evaluate the querystring parameter name in some way that is exploitable. Why this particular possibility? If you look at the source-- and the error suggests as much--, what is happening is that WordPress code is attempting to urlencode the redirect_to query parameter, which it expects to be a string. The square brackets you've added cause that parameter to be an array which, when processed as a string, is "Array". You might argue that WordPress should check the type of the data before trying to manipulate it, but I don't think there is anything exploitable. Essentially, the array you try to shove into that parameter is converted by PHP to the innocuous string "Array"
wordpress
{ "language": "en", "length": 312, "provenance": "stackexchange_00019.jsonl.gz:458211", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/198904" }
[ 0.075439453125, 0.0169219970703125, 0.0239715576171875, 0.01311492919921875, 0.0207366943359375, -0.04180908203125, 0.07305908203125, -0.06805419921875, -0.01983642578125, -0.00484466552734375, 0.031280517578125, -0.0013017654418945312, -0.05377197265625, -0.03045654296875, 0.010894775390625, -0.02484130859375, -0.0084991455078125, 0.0183258056640625, 0.01910400390625, -0.0177764892578125, 0.0248870849609375, -0.01363372802734375, 0.00116729736328125, -0.037109375, 0.00460052490234375, 0.0036869049072265625, 0.1151123046875, -0.06109619140625, 0.0650634765625, -0.0117340087890625, 0.012725830078125, -0.051971435546875, 0.0194091796875, 0.04571533203125, -0.050201416015625, -0.046051025390625, 0.0132293701171875, 0.00557708740234375, -0.00817108154296875, 0.01546478271484375, 0.01361846923828125, -0.0187225341796875, 0.006809234619140625, -0.03521728515625, -0.0264892578125, 0.0160369873046875, 0.0040435791015625, -0.006683349609375, 0.0306243896484375, -0.00856781005859375, 0.007801055908203125, 0.0675048828125, 0.0064697265625, 0.0323486328125, -0.0087127685546875, 0.01690673828125, -0.05718994140625, 0.06390380859375, 0.0197906494140625, 0.037994384765625, 0.0020771026611328125, 0.01082611083984375, -0.01499176025390625, -0.0382080078125, -0.00356292724609375, 0.0134429931640625, -0.0106201171875, 0.0238189697265625, -0.03118896484375, -0.0204925537109375, -0.0008587837219238281, -0.040191650390625, -0.0156097412109375, -0.0364990234375, 0.006420135498046875, 0.032928466796875, -0.00702667236328125, 0.001628875732421875, -0.01041412353515625, 0.0124359130859375, -0.0294952392578125, -0.013397216796875, -0.0212249755859375, -0.00445556640625, 0.0181427001953125, 0.036346435546875, -0.026702880859375, -0.02703857421875, -0.0204925537109375, 0.006404876708984375, -0.0251922607421875, 0.0161590576171875, -0.0024566650390625, 0.0103607177734375, -0.01300811767578125, -0.00047659873962402344, 0.0004756450653076172, -0.00357818603515625, 0.0287933349609375, 0.01403045654296875, 0.004421234130859375, -0.050537109375, 0.01337432861328125, -0.009674072265625, -0.03399658203125, 0.00994873046875, 0.0628662109375, 0.06292724609375, -0.023193359375, 0.0008292198181152344, -0.0249786376953125, -0.00206756591796875, -0.046630859375, -0.0506591796875, -0.01445770263671875, 0.08782958984375, -0.0099334716796875, -0.0269775390625, 0.0168609619140625, 0.0183563232421875, -0.0267486572265625, -0.031036376953125, 0.045013427734375, 0.003696441650390625, 0.0017442703247070312, -0.01230621337890625, -0.0230560302734375, -0.01328277587890625, -0.0104827880859375, 0.0228729248046875, -0.0245513916015625, 0.02459716796875, 0.01053619384765625, -0.004413604736328125, -0.0221405029296875, -0.0247039794921875, 0.0665283203125, 0.0303802490234375, -0.02783203125, 0.03765869140625, -0.01274871826171875, -0.042022705078125, -0.022857666015625, -0.0180511474609375, 0.03472900390625, 0.01497650146484375, 0.0215911865234375, 0.0223846435546875, 0.02001953125, -0.041534423828125, 0.0296630859375, -0.00399017333984375, 0.02520751953125, 0.005550384521484375, 0.00933074951171875, 0.0238494873046875, 0.039031982421875, -0.0240936279296875, -0.04376220703125, -0.023895263671875, 0.0034198760986328125, -0.0022716522216796875, 0.0006051063537597656, -0.039520263671875, -0.03973388671875, -0.02264404296875, -0.033538818359375, -0.0038776397705078125, 0.0355224609375, 0.033721923828125, 0.033966064453125, -0.025299072265625, -0.005306243896484375, 0.0265655517578125, 0.01708984375, 0.0087127685546875, -0.0156097412109375, 0.0399169921875, 0.023895263671875, 0.0239715576171875, 0.007213592529296875, -0.04852294921875, 0.0162353515625, 0.004322052001953125, -0.0576171875, 0.06329345703125, 0.01641845703125, 0.0494384765625, -0.0016908645629882812, -0.0027790069580078125, 0.055694580078125, 0.054351806640625, -0.0303497314453125, 0.05084228515625, -0.02899169921875, -0.027069091796875, -0.00914764404296875, 0.0068511962890625, -0.01470184326171875, -0.005817413330078125, 0.051177978515625, 0.0263519287109375, -0.02813720703125, -0.01812744140625, -0.0318603515625, 0.0008511543273925781, 0.006031036376953125, 0.0199127197265625, -0.009552001953125, 0.031768798828125, 0.01097869873046875, 0.00927734375, -0.05487060546875, 0.037322998046875, -0.004947662353515625, 0.0214080810546875, -0.0150909423828125, 0.046875, -0.0136260986328125, 0.0200347900390625, -0.00882720947265625, -0.051055908203125, -0.0180206298828125, -0.007266998291015625, 0.0294036865234375, 0.003986358642578125, -0.01447296142578125, -0.015777587890625, 0.06451416015625, -0.0012722015380859375, 0.0306854248046875, 0.0013980865478515625, 0.0003705024719238281, -0.0196533203125, -0.032196044921875, 0.00901031494140625, -0.01355743408203125, -0.058624267578125, -0.01277923583984375, 0.04949951171875, 0.03167724609375, 0.0205535888671875, -0.037261962890625, -0.036346435546875, 0.014129638671875, -0.0394287109375, 0.00789642333984375, -0.015777587890625, 0.0172271728515625, 0.044952392578125, -0.039337158203125, -0.0341796875, 0.0167388916015625, -0.04345703125, -0.01357269287109375, 0.04656982421875, 0.0261077880859375, 0.0166168212890625, -0.0270843505859375, 0.0244293212890625, -0.021209716796875, -0.0261688232421875, -0.0281524658203125, 0.0005445480346679688, -0.00765228271484375, -0.03277587890625, -0.029052734375, -0.04345703125, -0.045623779296875, -0.004421234130859375, 0.046295166015625, -0.04083251953125, -0.0095672607421875, 0.0023059844970703125, 0.0570068359375, -0.0195159912109375, -0.0291290283203125, -0.00949859619140625, 0.0182342529296875, -0.0012502670288085938, -0.007282257080078125, 0.04296875, -0.053955078125, -0.0279693603515625, -0.00970458984375, 0.027313232421875, -0.0237884521484375, 0.018280029296875, 0.034027099609375, 0.02618408203125, 0.0482177734375, -0.003170013427734375, -0.0206451416015625, 0.046600341796875, -0.022552490234375, -0.03369140625, 0.0538330078125, -0.0007634162902832031, 0.0157928466796875, 0.015655517578125, 0.055084228515625, 0.050201416015625, -0.0081787109375, -0.0016498565673828125, -0.01024627685546875, 0.033477783203125, -0.0008816719055175781, -0.0007929801940917969, -0.01776123046875, -0.037506103515625, -0.025604248046875, -0.0270233154296875, 0.021087646484375, 0.040252685546875, -0.0163116455078125, -0.047088623046875, -0.0182647705078125, 0.035736083984375, -0.0728759765625, -0.076171875, 0.01068115234375, -0.0733642578125, 0.04595947265625, -0.0162811279296875, -0.0197296142578125, -0.0238494873046875, 0.0201568603515625, 0.0205841064453125, 0.035125732421875, -0.03314208984375, -0.047515869140625, -0.043670654296875, -0.070556640625, -0.004657745361328125, -0.013519287109375, 0.00748443603515625, 0.01007080078125, -0.011871337890625, -0.00043487548828125, -0.005725860595703125, 0.0108184814453125, 0.055450439453125, 0.01461029052734375, -0.0136260986328125, -0.056243896484375, 0.0099945068359375, 0.00525665283203125, -0.0128631591796875, 0.0028781890869140625, -0.005435943603515625, 0.0290679931640625, 0.007274627685546875, 0.02520751953125, -0.0197601318359375, 0.023040771484375, -0.042755126953125, -0.046417236328125, -0.01531219482421875, -0.028472900390625, -0.07025146484375, 0.0283966064453125, -0.0221710205078125, -0.040069580078125, -0.036102294921875, 0.01404571533203125, 0.0020465850830078125, 0.01230621337890625, -0.0634765625, 0.0292205810546875, 0.021484375, -0.020782470703125, 0.00701141357421875, 0.00669097900390625, -0.0086822509765625, 0.01934814453125, -0.01363372802734375, 0.042694091796875, -0.0249481201171875, -0.01509857177734375, 0.01351165771484375, -0.028106689453125, -0.01971435546875, -0.0006136894226074219, -0.030517578125, -0.035980224609375, 0.04925537109375, -0.0574951171875, -0.01366424560546875, -0.053497314453125, -0.0058135986328125, -0.03509521484375, 0.059173583984375, 0.027099609375, -0.0029354095458984375, -0.01395416259765625, 0.0282135009765625, -0.0504150390625, -0.054412841796875, -0.01134490966796875, -0.0030078887939453125, -0.03759765625, 0.021575927734375, -0.0020294189453125, -0.007843017578125, 0.007312774658203125, -0.03753662109375, 0.0038318634033203125, -0.052398681640625, 0.00714874267578125, 0.028045654296875, 0.04266357421875, -0.0186004638671875, 0.041107177734375, -0.059234619140625, 0.03485107421875, -0.0257720947265625, -0.09722900390625, -0.029205322265625, 0.061065673828125, 0.07623291015625, -0.01560211181640625, -0.049224853515625, -0.05133056640625, 0.052764892578125, -0.0077362060546875, -0.00841522216796875, 0.030792236328125, 0.007640838623046875, -0.01107025146484375, 0.0819091796875, 0.0190277099609375, 0.021026611328125, -0.0150299072265625, -0.0184783935546875, -0.005458831787109375, -0.05322265625, -0.0282135009765625, -0.05596923828125, 0.0217132568359375, -0.01468658447265625, -0.044952392578125, -0.03167724609375, -0.0251617431640625, 0.0279693603515625, -0.029876708984375, 0.01462554931640625, -0.0408935546875, -0.05230712890625, 0.062469482421875, 0.037567138671875, -0.03155517578125, -0.009674072265625, 0.060333251953125, 0.0109100341796875, -0.038604736328125, -0.0589599609375, -0.0011148452758789062, 0.0131072998046875, 0.01531982421875, 0.0295562744140625, -0.0282135009765625, -0.00690460205078125, 0.0626220703125, -0.016815185546875, 0.013214111328125, -0.00862884521484375, 0.0242767333984375, 0.0016641616821289062, -0.0214080810546875, 0.0216217041015625, 0.004756927490234375, -0.028076171875, 0.040130615234375, 0.030364990234375, -0.0200653076171875, 0.02972412109375, 0.0036640167236328125, -0.035614013671875, 0.0218963623046875, 0.0127105712890625, -0.053680419921875, 0.009033203125, 0.011932373046875, -0.037994384765625, 0.00884246826171875, -0.01213836669921875, 0.0011854171752929688, 0.0142059326171875, -0.01519775390625, -0.006542205810546875, -0.01036834716796875, -0.00096893310546875, 0.0267791748046875, -0.028106689453125, -0.017608642578125, -0.0157470703125, -0.029632568359375, 0.09197998046875, -0.00470733642578125, -0.06500244140625, 0.0195159912109375, -0.01904296875, 0.0029239654541015625, 0.033599853515625, -0.0063323974609375, 0.0240936279296875, 0.00640106201171875, -0.019683837890625, -0.00814056396484375, -0.0094757080078125, -0.03387451171875, -0.04046630859375, 0.0262908935546875, -0.004322052001953125, 0.00609588623046875, 0.043914794921875, 0.043914794921875, -0.0030651092529296875, 0.0484619140625, -0.0213775634765625, -0.018035888671875, 0.0271759033203125, 0.033294677734375, 0.02899169921875, -0.022552490234375, 0.005313873291015625, 0.0038738250732421875, 0.0175628662109375, -0.0555419921875, -0.01366424560546875, 0.034149169921875, 0.045562744140625, 0.0232086181640625, -0.0140380859375, -0.0009965896606445312, 0.0017547607421875, 0.01371002197265625, 0.03924560546875, -0.0240478515625, -0.0765380859375, -0.022491455078125, -0.01488494873046875, 0.0183258056640625, -0.04083251953125, -0.032470703125, -0.0018405914306640625, -0.03948974609375, 0.045379638671875, 0.03363037109375, 0.023681640625, 0.00566864013671875, -0.03961181640625, 0.0027065277099609375, -0.042572021484375, -0.031951904296875, 0.010498046875, 0.044403076171875, -0.0246734619140625, -0.0223388671875, 0.02581787109375, -0.0018014907836914062, 0.01436614990234375, -0.0224609375, -0.0175018310546875, 0.02667236328125, -0.00885772705078125, 0.051666259765625, 0.01035308837890625, -0.0653076171875, 0.00875091552734375, -0.027496337890625, -0.004596710205078125, 0.03253173828125, 0.004520416259765625, -0.04827880859375, -0.0305023193359375, -0.0026988983154296875, 0.0039825439453125, 0.012603759765625, 0.04412841796875, -0.00600433349609375, 0.0204010009765625, -0.025909423828125, 0.031219482421875, -0.03375244140625, 0.0012540817260742188, 0.016815185546875, -0.05450439453125, -0.0254058837890625, 0.01385498046875, 0.0494384765625, 0.013580322265625, 0.022796630859375, 0.01374053955078125, 0.00437164306640625, -0.037506103515625, 0.057281494140625, -0.0377197265625, 0.020355224609375, -0.0131072998046875, -0.0097198486328125, 0.00702667236328125, 0.01189422607421875, -0.01531219482421875, 0.03350830078125, 0.024078369140625, -0.0195770263671875, 0.033233642578125, 0.028961181640625, 0.02801513671875, -0.01436614990234375, 0.0145416259765625, -0.043731689453125, 0.01526641845703125, -0.019744873046875, -0.0198516845703125, -0.048126220703125, 0.016021728515625, 0.0830078125, 0.0159149169921875, 0.055938720703125, 0.00432586669921875, 0.01476287841796875, 0.04888916015625, -0.025543212890625, -0.01812744140625, 0.025146484375, 0.0265045166015625, -0.0193328857421875, -0.028289794921875, -0.01071929931640625, -0.02642822265625, 0.0108642578125, 0.08502197265625, 0.07977294921875, -0.10955810546875, 0.017608642578125, 0.00670623779296875, 0.0037021636962890625, 0.041107177734375, 0.006103515625, 0.00909423828125, 0.037445068359375, -0.0208282470703125, 0.0034809112548828125, -0.0308990478515625, -0.0049896240234375, 0.037445068359375, -0.0039215087890625, -0.0223388671875, 0.021759033203125, 0.017333984375, -0.03765869140625, 0.02716064453125, 0.0300140380859375, 0.00667572021484375, 0.00004667043685913086, -0.01094818115234375, 0.033905029296875, -0.03533935546875, -0.041168212890625, 0.0271148681640625, -0.022308349609375, -0.02587890625, -0.032562255859375, -0.010467529296875, 0.047515869140625, 0.043701171875, -0.0131378173828125, -0.01416015625, 0.0140228271484375, 0.0244293212890625, 0.0673828125, -0.0199737548828125, 0.01763916015625, 0.036163330078125, -0.049163818359375, -0.006046295166015625, 0.006031036376953125, 0.00030994415283203125, -0.015411376953125, 0.00698089599609375, 0.043548583984375, 0.02685546875, -0.042510986328125, 0.0281982421875, 0.0021762847900390625, -0.0172271728515625, -0.0271148681640625, -0.018646240234375, -0.0576171875, -0.0144805908203125, -0.0259552001953125, -0.0193023681640625, 0.0369873046875, -0.027191162109375, -0.0272369384765625, 0.044952392578125, -0.01824951171875, 0.01059722900390625, 0.0499267578125, 0.0061798095703125, -0.041778564453125, -0.0151519775390625, -0.02423095703125, 0.04547119140625, 0.03125, 0.0160675048828125, 0.01447296142578125, 0.0098724365234375, 0.035888671875, -0.0004131793975830078, 0.013885498046875, 0.0204925537109375, -0.042510986328125, -0.006870269775390625, 0.0015239715576171875, 0.025177001953125, -0.001880645751953125, 0.03265380859375, 0.007427215576171875, 0.036590576171875, 0.040771484375, -0.035736083984375, 0.021087646484375, 0.0157012939453125, -0.0218353271484375, 0.0260009765625, -0.021728515625, -0.065185546875, 0.003726959228515625, -0.0325927734375, -0.0703125, 0.0238800048828125, 0.005947113037109375, 0.025634765625, 0.01336669921875, 0.0018787384033203125, 0.004734039306640625, -0.033477783203125, 0.0218658447265625, -0.039947509765625, 0.027984619140625, -0.0014820098876953125, 0.03466796875, 0.048309326171875, 0.0229949951171875, 0.035797119140625, -0.008056640625, 0.031280517578125, 0.001842498779296875, -0.013427734375, 0.0655517578125, 0.0196075439453125, 0.0247344970703125, -0.045806884765625, -0.005382537841796875, 0.06329345703125, 0.08465576171875, -0.0445556640625, -0.0256500244140625, -0.00414276123046875, 0.00644683837890625, 0.0399169921875, 0.0007147789001464844, 0.07421875, -0.006710052490234375, -0.00547027587890625, -0.00804901123046875, 0.0013484954833984375, 0.0156402587890625, -0.026519775390625, 0.0107879638671875, 0.03765869140625, 0.01038360595703125, 0.0233306884765625, -0.00347900390625, -0.017333984375, -0.0193328857421875, 0.0469970703125, 0.0193939208984375, 0.0259552001953125, -0.0504150390625, -0.02496337890625, 0.0002624988555908203, 0.044830322265625, 0.0008859634399414062, 0.00852203369140625, -0.01224517822265625, -0.02032470703125, 0.00946807861328125, 0.0135345458984375, 0.0250701904296875, -0.0179901123046875, 0.0172271728515625, 0.0035381317138671875, -0.0237274169921875, -0.01062774658203125, 0.00963592529296875, -0.0184783935546875, 0.005931854248046875, -0.0124664306640625, -0.01364898681640625, 0.00879669189453125, -0.0151519775390625, -0.030059814453125, 0.022796630859375, 0.01261138916015625, 0.0219573974609375, 0.052978515625, 0.01149749755859375, 0.0416259765625, 0.0161895751953125, -0.00873565673828125, -0.003955841064453125, 0.051849365234375, -0.02154541015625, -0.0259857177734375, 0.037017822265625, -0.041259765625, 0.00952911376953125, 0.034759521484375, -0.01222991943359375, 0.0083770751953125, 0.0036468505859375, -0.01380157470703125, 0.006671905517578125, -0.0022602081298828125, 0.037811279296875, -0.0198974609375, 0.00024771690368652344, -0.016387939453125, -0.07293701171875, -0.00888824462890625, -0.0175933837890625, -0.004878997802734375, -0.0171966552734375, 0.12939453125, -0.0296478271484375, -0.00959014892578125, -0.052825927734375, 0.013824462890625, -0.0404052734375, -0.02508544921875, 0.026153564453125, -0.00397491455078125, -0.004673004150390625, -0.0157928466796875, -0.03253173828125, 0.0767822265625, -0.01055908203125, 0.01885986328125, 0.0433349609375, -0.0251312255859375, -0.0005483627319335938, 0.0225372314453125, -0.006221771240234375, -0.0236663818359375, -0.0487060546875, -0.014129638671875, 0.0233001708984375, 0.0018377304077148438, 0.04351806640625, 0.006290435791015625, 0.039306640625, -0.0286102294921875, -0.0201873779296875, 0.0184783935546875, -0.0728759765625, -0.0173187255859375, 0.0025653839111328125, 0.043731689453125, 0.0212249755859375, -0.032958984375, -0.0260009765625, -0.0199127197265625, 0.0192718505859375, -0.036865234375, -0.020355224609375, 0.040985107421875, -0.0252532958984375, 0.0310516357421875, 0.029937744140625, 0.0073089599609375, 0.016632080078125, -0.01861572265625, -0.0201416015625, 0.0232086181640625, -0.044525146484375, -0.02215576171875, -0.0182342529296875, -0.0198974609375, 0.00876617431640625, 0.00704193115234375, -0.0533447265625, -0.01317596435546875, 0.013275146484375, -0.01019287109375, -0.0293121337890625, -0.01184844970703125, 0.00244140625, -0.029022216796875, 0.05145263671875, -0.049896240234375, 0.00893402099609375, 0.0158843994140625, 0.029541015625, -0.050872802734375, -0.024322509765625, -0.0020542144775390625, -0.01027679443359375, -0.00811767578125, -0.0011892318725585938, 0.0217437744140625, -0.004425048828125, -0.041778564453125, -0.031402587890625, -0.025238037109375, 0.020843505859375, -0.01042938232421875, -0.0020313262939453125, 0.0259857177734375, 0.0175628662109375, -0.0184173583984375, -0.10205078125, -0.0231170654296875, -0.031768798828125, 0.0262603759765625, 0.035797119140625, -0.03948974609375, -0.0202484130859375, -0.061859130859375, -0.092529296875, 0.05322265625, 0.006755828857421875, -0.03924560546875, -0.0215301513671875, 0.042724609375, 0.024658203125, -0.04022216796875, -0.000957489013671875, -0.031982421875, -0.002300262451171875, -0.0066375732421875, -0.005672454833984375, -0.00824737548828125, -0.0027179718017578125, 0.013427734375, -0.04473876953125, 0.024688720703125, 0.006778717041015625, -0.047027587890625, -0.034088134765625, 0.009368896484375, 0.042755126953125, 0.0406494140625, 0.006313323974609375, 0.0693359375, 0.019195556640625, -0.0006747245788574219, 0.0050201416015625, -0.01143646240234375, -0.00626373291015625, 0.0185089111328125, 0.01514434814453125, 0.0423583984375, -0.0007376670837402344, -0.045013427734375, -0.06158447265625, -0.0177459716796875, 0.021575927734375, -0.0286407470703125, 0.0270233154296875, -0.10235595703125, -0.0266876220703125, 0.0144500732421875, -0.018218994140625, -0.02838134765625, 0.0166778564453125, -0.03936767578125, 0.0006842613220214844, 0.00603485107421875, -0.016510009765625, 0.025177001953125, -0.0117340087890625, 0.04583740234375, -0.017059326171875, 0.009796142578125, 0.004497528076171875, 0.020416259765625, 0.0219573974609375, 0.01959228515625, 0.014007568359375, -0.005615234375, -0.00945281982421875, 0.004840850830078125, 0.0102081298828125, 0.02239990234375, 0.0010919570922851562, -0.0452880859375, -0.015869140625, 0.036834716796875, -0.011138916015625, 0.04718017578125, -0.0032253265380859375, 0.033660888671875, 0.028717041015625, 0.032073974609375, -0.04962158203125, 0.03887939453125, -0.0232086181640625, 0.0199432373046875, 0.0065460205078125, 0.0111236572265625, 0.07373046875, -0.04180908203125, 0.00992584228515625, 0.04156494140625, 0.0423583984375, 0.0013990402221679688, -0.022674560546875, -0.018218994140625, 0.04803466796875, -0.0138702392578125 ]
48c32d04470eb01a03ec8827b737b798d0c7d5bf
Wordpress Stackexchange Q: How can I list all the categories under a Custom Post Type (taxonomy)? So I have created a custom post type and under that taxonomy named "Category" which serves for categories. How can I list all the categories from there? A: If you just want to list them you can use the get_terms function: $terms = get_terms( 'my_taxonomy' ); if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){ echo '<ul>'; foreach ( $terms as $term ) { echo '<li>' . $term->name . '</li>'; } echo '</ul>'; } Read the codex, it has a lot of examples: https://codex.wordpress.org/Function_Reference/get_terms
Q: How can I list all the categories under a Custom Post Type (taxonomy)? So I have created a custom post type and under that taxonomy named "Category" which serves for categories. How can I list all the categories from there? A: If you just want to list them you can use the get_terms function: $terms = get_terms( 'my_taxonomy' ); if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){ echo '<ul>'; foreach ( $terms as $term ) { echo '<li>' . $term->name . '</li>'; } echo '</ul>'; } Read the codex, it has a lot of examples: https://codex.wordpress.org/Function_Reference/get_terms A: nm I should start my own question... EDIT: I figured out what I was going to ask, but if anybody stumbles on this original question, here's what you can also do to just link to the categories after they are listed: <?php $terms = get_terms( 'nameofyourregisteredtaxonomygoeshere' ); $count = count( $terms ); if ( $count > 0 ) { echo '<h3>Total Projects: '. $count . '</h3>'; echo '<ul>'; foreach ( $terms as $term ) { echo '<li>'; echo '<a href="' . esc_url( get_term_link( $term ) ) . '" alt="'. esc_attr( sprintf( __( 'View all post filed under %s', 'my_localization_domain' ), $term->name ) ) . '">' . $term->name . '</a>'; echo '</li>'; } echo '</ul>'; } ?>
wordpress
{ "language": "en", "length": 218, "provenance": "stackexchange_00019.jsonl.gz:458233", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/198981" }
[ 0.059112548828125, 0.001007080078125, -0.0193634033203125, -0.05078125, 0.032928466796875, -0.03900146484375, 0.04913330078125, 0.0153350830078125, -0.013946533203125, 0.00037288665771484375, -0.0218505859375, -0.005168914794921875, -0.0221710205078125, -0.03314208984375, 0.00846099853515625, -0.046905517578125, 0.04425048828125, -0.0009098052978515625, 0.055450439453125, -0.00499725341796875, 0.031005859375, 0.0225982666015625, 0.02838134765625, 0.052093505859375, 0.0157012939453125, -0.028717041015625, 0.033111572265625, -0.027679443359375, 0.0013704299926757812, -0.03399658203125, 0.0116424560546875, 0.034393310546875, -0.0027923583984375, 0.01091766357421875, 0.0276947021484375, 0.0262298583984375, 0.0251922607421875, 0.01009368896484375, 0.0416259765625, 0.0200347900390625, 0.040679931640625, -0.0234375, 0.031280517578125, 0.0135955810546875, 0.01092529296875, -0.03900146484375, 0.03955078125, -0.053680419921875, 0.00986480712890625, -0.07049560546875, 0.031341552734375, -0.00179290771484375, 0.06414794921875, -0.0650634765625, -0.043548583984375, -0.0017461776733398438, 0.00617218017578125, -0.021026611328125, 0.056732177734375, -0.0474853515625, -0.056396484375, -0.040802001953125, 0.05548095703125, -0.004489898681640625, 0.0018224716186523438, 0.0134429931640625, 0.029693603515625, 0.01800537109375, -0.039520263671875, -0.021697998046875, 0.0292205810546875, -0.032806396484375, 0.01506805419921875, -0.008575439453125, -0.0002560615539550781, -0.062347412109375, 0.0128631591796875, -0.040618896484375, 0.004856109619140625, 0.01934814453125, 0.02392578125, -0.0211639404296875, -0.032806396484375, 0.016387939453125, 0.0005841255187988281, 0.027130126953125, -0.00975799560546875, -0.02490234375, -0.00785064697265625, -0.03875732421875, -0.00350189208984375, 0.00010162591934204102, -0.06396484375, 0.0308380126953125, 0.0179595947265625, -0.04351806640625, 0.0244293212890625, 0.04290771484375, -0.01404571533203125, 0.00482177734375, -0.01971435546875, -0.033355712890625, 0.0227203369140625, -0.0447998046875, 0.0254974365234375, 0.01132965087890625, -0.03424072265625, -0.027923583984375, 0.0565185546875, 0.0517578125, 0.00853729248046875, 0.01229095458984375, -0.0207061767578125, -0.0033664703369140625, -0.01580810546875, 0.0161895751953125, -0.045867919921875, 0.0167388916015625, -0.0183258056640625, 0.01520538330078125, 0.021453857421875, 0.0555419921875, 0.01151275634765625, -0.0235595703125, -0.0010213851928710938, 0.006618499755859375, -0.006504058837890625, -0.06829833984375, 0.01467132568359375, -0.0008997917175292969, -0.05804443359375, 0.0213165283203125, 0.038421630859375, 0.017791748046875, 0.019775390625, -0.02044677734375, -0.007343292236328125, 0.0007805824279785156, 0.00914764404296875, 0.01425933837890625, 0.01360321044921875, -0.0281829833984375, 0.01058197021484375, 0.01030731201171875, 0.01303863525390625, 0.002422332763671875, 0.012725830078125, 0.031585693359375, 0.00415802001953125, -0.0102691650390625, 0.0306243896484375, -0.01013946533203125, 0.03704833984375, 0.0059661865234375, -0.0187835693359375, -0.00562286376953125, 0.038726806640625, -0.039764404296875, -0.036590576171875, -0.05560302734375, 0.02496337890625, 0.016937255859375, 0.027191162109375, 0.00823211669921875, -0.014801025390625, 0.00815582275390625, -0.06561279296875, -0.008148193359375, 0.0273895263671875, -0.03240966796875, 0.021331787109375, 0.01200103759765625, 0.03070068359375, 0.01158905029296875, 0.01291656494140625, 0.0008487701416015625, -0.0325927734375, -0.0286865234375, 0.04449462890625, 0.034149169921875, -0.0197601318359375, -0.0379638671875, -0.0109710693359375, 0.00603485107421875, -0.0535888671875, 0.0104217529296875, 0.0120697021484375, 0.07470703125, 0.0261993408203125, 0.028167724609375, 0.028076171875, -0.009307861328125, -0.05584716796875, 0.007472991943359375, 0.01418304443359375, 0.00801849365234375, -0.03350830078125, 0.00008356571197509766, -0.0011377334594726562, -0.02252197265625, -0.01334381103515625, -0.0174560546875, -0.0002453327178955078, -0.00420379638671875, -0.0279083251953125, -0.0086212158203125, -0.004638671875, 0.02032470703125, 0.00902557373046875, 0.02239990234375, 0.00682830810546875, -0.0157318115234375, -0.012786865234375, -0.056427001953125, -0.0253143310546875, 0.0219573974609375, -0.0007309913635253906, 0.00782012939453125, -0.004730224609375, 0.00748443603515625, -0.0005321502685546875, -0.0167388916015625, -0.0025177001953125, 0.057464599609375, 0.04296875, 0.0303497314453125, -0.04229736328125, -0.007419586181640625, 0.003757476806640625, 0.0545654296875, -0.09844970703125, -0.0194244384765625, 0.03668212890625, 0.0379638671875, -0.03839111328125, 0.0026397705078125, 0.0279541015625, 0.01512908935546875, -0.0157928466796875, 0.032440185546875, 0.01219940185546875, 0.01380157470703125, -0.0271759033203125, -0.0018215179443359375, 0.052276611328125, -0.03814697265625, -0.0147552490234375, 0.0019626617431640625, 0.0175628662109375, 0.033477783203125, 0.03265380859375, 0.0109405517578125, 0.0235595703125, 0.0283203125, 0.046661376953125, 0.0275726318359375, 0.00966644287109375, -0.00811767578125, 0.00774383544921875, -0.006008148193359375, 0.01261138916015625, -0.038360595703125, -0.0643310546875, -0.00008547306060791016, 0.023193359375, 0.01090240478515625, 0.035125732421875, 0.025421142578125, -0.0295562744140625, -0.0119781494140625, 0.0123291015625, 0.006946563720703125, 0.0033473968505859375, 0.037567138671875, 0.01416778564453125, -0.0177764892578125, -0.0272979736328125, -0.007190704345703125, 0.0088653564453125, 0.011871337890625, 0.00811004638671875, 0.0416259765625, 0.0177001953125, -0.00759124755859375, -0.00707244873046875, -0.06903076171875, 0.00115203857421875, 0.03118896484375, -0.0618896484375, -0.0189208984375, 0.0069732666015625, 0.03369140625, -0.00394439697265625, -0.02618408203125, -0.020416259765625, 0.01235198974609375, -0.007495880126953125, -0.047119140625, 0.0360107421875, -0.0226287841796875, 0.044708251953125, 0.06866455078125, 0.01148223876953125, -0.0015039443969726562, 0.00786590576171875, -0.033355712890625, 0.0190582275390625, 0.029510498046875, 0.00011962652206420898, -0.0284271240234375, -0.0269622802734375, 0.01242828369140625, 0.0311431884765625, 0.040985107421875, 0.0015926361083984375, -0.03155517578125, 0.0069122314453125, 0.043182373046875, -0.0256195068359375, -0.0167388916015625, 0.05438232421875, -0.049224853515625, -0.01004791259765625, -0.04522705078125, -0.0259246826171875, -0.0207672119140625, -0.028961181640625, -0.01375579833984375, 0.0202484130859375, -0.0204010009765625, -0.038787841796875, -0.0309295654296875, -0.07244873046875, -0.05291748046875, 0.005641937255859375, -0.0038356781005859375, 0.00914764404296875, 0.08251953125, 0.0257415771484375, -0.058929443359375, 0.0123443603515625, 0.04254150390625, -0.0284576416015625, 0.0253753662109375, 0.0124359130859375, -0.00981903076171875, 0.0226898193359375, 0.006160736083984375, 0.01328277587890625, 0.0303497314453125, -0.02362060546875, -0.0133514404296875, -0.0081024169921875, 0.007755279541015625, 0.0027408599853515625, 0.0003509521484375, 0.0034637451171875, 0.0156402587890625, -0.003360748291015625, -0.0338134765625, 0.01824951171875, 0.001354217529296875, 0.004058837890625, -0.010833740234375, -0.0200653076171875, -0.0255584716796875, -0.02703857421875, 0.0189666748046875, -0.025360107421875, 0.0186614990234375, -0.0220489501953125, -0.0212554931640625, 0.029937744140625, -0.0014057159423828125, 0.00907135009765625, 0.021026611328125, -0.01202392578125, -0.035736083984375, 0.03704833984375, -0.004413604736328125, 0.003940582275390625, -0.0298309326171875, 0.046173095703125, -0.01861572265625, -0.082763671875, 0.04840087890625, -0.03887939453125, -0.027099609375, -0.0198822021484375, -0.0192108154296875, 0.030670166015625, 0.1138916015625, -0.02691650390625, -0.01056671142578125, -0.023468017578125, 0.0036067962646484375, -0.0078582763671875, -0.023345947265625, -0.049591064453125, -0.019927978515625, -0.09600830078125, 0.00841522216796875, 0.001689910888671875, -0.041839599609375, -0.018218994140625, 0.01262664794921875, -0.07366943359375, -0.0279998779296875, 0.02392578125, -0.048858642578125, 0.008087158203125, -0.0088958740234375, 0.0057830810546875, -0.0361328125, -0.0191497802734375, -0.02423095703125, -0.051025390625, -0.000812530517578125, -0.0170440673828125, 0.01273345947265625, 0.004505157470703125, -0.01461029052734375, 0.006237030029296875, 0.03570556640625, 0.037078857421875, 0.0221710205078125, 0.01155853271484375, -0.0034084320068359375, -0.00453948974609375, -0.00681304931640625, 0.0128021240234375, -0.021759033203125, -0.038726806640625, -0.024627685546875, 0.019073486328125, 0.050384521484375, -0.00849151611328125, 0.0057373046875, -0.019287109375, 0.0007824897766113281, -0.04193115234375, -0.00897216796875, -0.032440185546875, -0.0190582275390625, -0.031707763671875, -0.007537841796875, 0.0028324127197265625, -0.03497314453125, 0.03546142578125, 0.01461029052734375, -0.007205963134765625, 0.01953125, 0.06719970703125, 0.005977630615234375, -0.025726318359375, -0.1015625, 0.017486572265625, 0.039764404296875, -0.04144287109375, 0.051422119140625, 0.0047607421875, -0.022491455078125, 0.0869140625, -0.017364501953125, -0.007633209228515625, -0.005832672119140625, 0.0506591796875, 0.00653839111328125, 0.0034427642822265625, 0.0010862350463867188, -0.01708984375, 0.021453857421875, 0.01171112060546875, -0.0198516845703125, -0.0254058837890625, 0.006549835205078125, 0.056396484375, -0.0276947021484375, 0.042510986328125, -0.030181884765625, -0.0163726806640625, 0.007495880126953125, -0.00897979736328125, 0.040557861328125, 0.034423828125, -0.0184326171875, 0.0263519287109375, -0.0005707740783691406, 0.0153961181640625, 0.007282257080078125, 0.01158905029296875, -0.0034809112548828125, 0.032257080078125, 0.0003998279571533203, 0.00786590576171875, 0.002689361572265625, 0.004428863525390625, 0.00630950927734375, -0.01953125, -0.0655517578125, 0.0177001953125, -0.0256195068359375, -0.002346038818359375, 0.04876708984375, -0.01027679443359375, 0.0238189697265625, 0.0262451171875, -0.0016489028930664062, 0.026458740234375, -0.0440673828125, 0.0177154541015625, -0.0298919677734375, 0.0033931732177734375, 0.01617431640625, -0.0239410400390625, 0.00791168212890625, 0.0303192138671875, -0.0160980224609375, 0.0218658447265625, -0.0013227462768554688, 0.032867431640625, 0.023651123046875, 0.0369873046875, 0.03167724609375, -0.02264404296875, -0.02001953125, 0.0032196044921875, -0.0240631103515625, -0.060211181640625, -0.0117950439453125, -0.00992584228515625, 0.042938232421875, -0.0063629150390625, -0.031158447265625, 0.0501708984375, -0.00809478759765625, -0.023101806640625, -0.01064300537109375, -0.0122528076171875, -0.018402099609375, -0.016937255859375, -0.0026721954345703125, 0.005126953125, 0.0147552490234375, -0.0233154296875, 0.019989013671875, -0.0293121337890625, 0.04931640625, -0.0241851806640625, 0.0166168212890625, -0.00263214111328125, 0.003993988037109375, -0.0811767578125, -0.024749755859375, 0.017547607421875, -0.05712890625, -0.0275726318359375, 0.002288818359375, -0.04498291015625, 0.007205963134765625, -0.0098876953125, 0.034088134765625, -0.00673675537109375, -0.035980224609375, 0.014801025390625, 0.0013408660888671875, 0.06695556640625, 0.0178680419921875, -0.043365478515625, -0.0036869049072265625, -0.03857421875, 0.0064544677734375, -0.01056671142578125, -0.0567626953125, -0.0246124267578125, -0.020111083984375, 0.019012451171875, 0.00292205810546875, 0.01074981689453125, -0.0166015625, -0.033660888671875, 0.01611328125, 0.0293731689453125, -0.0283660888671875, -0.006694793701171875, 0.0318603515625, 0.01045989990234375, 0.03802490234375, -0.0130615234375, -0.0033168792724609375, -0.0260467529296875, -0.0156097412109375, -0.0088653564453125, -0.08343505859375, -0.020172119140625, 0.00400543212890625, -0.047821044921875, 0.04962158203125, 0.0423583984375, 0.011566162109375, -0.0007634162902832031, -0.016998291015625, -0.0008673667907714844, -0.0133209228515625, 0.0215606689453125, 0.0026798248291015625, 0.004467010498046875, 0.020111083984375, 0.01305389404296875, 0.03857421875, -0.006969451904296875, -0.038543701171875, 0.033447265625, -0.0068817138671875, 0.055389404296875, -0.01441192626953125, -0.01197052001953125, 0.04351806640625, 0.017425537109375, -0.0005788803100585938, 0.01641845703125, 0.021881103515625, 0.0219268798828125, -0.0213775634765625, 0.011383056640625, 0.01143646240234375, -0.027496337890625, 0.04681396484375, 0.01136016845703125, -0.0159759521484375, 0.0241546630859375, -0.0362548828125, -0.043212890625, 0.03558349609375, 0.040924072265625, -0.06939697265625, 0.00746917724609375, 0.039215087890625, 0.021240234375, -0.032196044921875, 0.032989501953125, -0.0384521484375, -0.019866943359375, -0.023651123046875, -0.038787841796875, -0.038055419921875, -0.02166748046875, 0.006961822509765625, 0.010009765625, -0.0014085769653320312, 0.05462646484375, 0.0236053466796875, -0.021026611328125, -0.029266357421875, 0.0218048095703125, 0.00669097900390625, -0.01380157470703125, 0.0006580352783203125, 0.00215911865234375, -0.0012264251708984375, -0.0313720703125, 0.0540771484375, -0.0231170654296875, 0.01361846923828125, 0.0252838134765625, -0.0189361572265625, -0.0251312255859375, 0.039154052734375, -0.03546142578125, 0.038482666015625, 0.00904083251953125, -0.08563232421875, 0.005184173583984375, -0.0005545616149902344, -0.02142333984375, 0.034271240234375, -0.027801513671875, 0.00405120849609375, -0.02825927734375, 0.031890869140625, -0.025634765625, -0.0567626953125, 0.09576416015625, -0.047332763671875, 0.004001617431640625, 0.01345062255859375, 0.058624267578125, -0.00302886962890625, 0.013671875, 0.010406494140625, -0.01421356201171875, 0.02581787109375, 0.015289306640625, 0.026031494140625, 0.0027446746826171875, 0.0133819580078125, -0.05255126953125, 0.07525634765625, -0.029571533203125, 0.019683837890625, 0.0301055908203125, 0.02197265625, -0.0099029541015625, 0.01123046875, -0.0357666015625, 0.046783447265625, 0.036376953125, 0.0169830322265625, -0.0623779296875, -0.02923583984375, -0.005512237548828125, 0.0625, 0.040008544921875, 0.003322601318359375, -0.005039215087890625, -0.0009431838989257812, 0.053070068359375, 0.045257568359375, -0.004486083984375, 0.01788330078125, 0.001941680908203125, 0.0014734268188476562, 0.04400634765625, -0.0038394927978515625, 0.0401611328125, 0.01192474365234375, -0.0171356201171875, 0.02056884765625, 0.025909423828125, 0.0416259765625, -0.0040130615234375, -0.0252532958984375, -0.00772857666015625, -0.0021820068359375, 0.004283905029296875, 0.00244140625, 0.01416015625, 0.040008544921875, 0.0285186767578125, -0.03924560546875, 0.038818359375, -0.03985595703125, 0.058502197265625, -0.0265045166015625, 0.043701171875, 0.0225830078125, 0.005279541015625, 0.093994140625, -0.004421234130859375, 0.023345947265625, 0.00896453857421875, 0.0025272369384765625, 0.052642822265625, 0.0248870849609375, 0.02337646484375, -0.0423583984375, 0.002529144287109375, 0.031951904296875, 0.058563232421875, -0.04638671875, -0.09417724609375, 0.018707275390625, 0.02203369140625, 0.007625579833984375, 0.05517578125, 0.021820068359375, 0.029052734375, 0.1024169921875, -0.0638427734375, -0.0186767578125, 0.015289306640625, 0.06793212890625, -0.00315093994140625, -0.0238494873046875, -0.041717529296875, -0.06304931640625, -0.050079345703125, -0.00022208690643310547, 0.0216217041015625, 0.044891357421875, 0.0263671875, 0.056182861328125, -0.01390838623046875, -0.029449462890625, 0.0286407470703125, 0.01033782958984375, -0.013946533203125, -0.03448486328125, 0.0228424072265625, -0.033447265625, -0.012847900390625, 0.0024509429931640625, 0.02880859375, -0.0228424072265625, 0.035308837890625, 0.0452880859375, -0.00019180774688720703, -0.0160064697265625, 0.048248291015625, 0.00823974609375, -0.01280975341796875, -0.044403076171875, 0.01439666748046875, 0.037811279296875, 0.00421142578125, 0.023223876953125, -0.007129669189453125, 0.072265625, 0.00208282470703125, 0.040252685546875, 0.002033233642578125, -0.022918701171875, 0.035003662109375, -0.024017333984375, 0.06103515625, 0.02032470703125, -0.0909423828125, -0.0282745361328125, -0.07135009765625, -0.0161285400390625, 0.06573486328125, 0.04986572265625, 0.0102691650390625, -0.000904083251953125, -0.01342010498046875, -0.05230712890625, 0.02587890625, 0.034149169921875, -0.00457000732421875, 0.0029621124267578125, 0.00026416778564453125, -0.0240325927734375, -0.01534271240234375, -0.0028324127197265625, 0.0069427490234375, 0.01171875, 0.02801513671875, 0.01861572265625, 0.00860595703125, 0.01531982421875, -0.033416748046875, 0.058929443359375, -0.08544921875, -0.050018310546875, 0.060150146484375, -0.0006685256958007812, -0.003208160400390625, -0.01302337646484375, -0.018218994140625, 0.037872314453125, 0.031005859375, -0.045166015625, 0.01470947265625, -0.0024814605712890625, 0.005161285400390625, -0.032958984375, 0.04205322265625, -0.01434326171875, -0.01348114013671875, -0.0364990234375, -0.0286102294921875, 0.02752685546875, 0.038543701171875, 0.0211181640625, 0.0055999755859375, -0.00556182861328125, -0.0311126708984375, 0.01300811767578125, -0.0070648193359375, 0.01430511474609375, 0.03436279296875, -0.0012693405151367188, -0.03448486328125, 0.0212860107421875, -0.01056671142578125, 0.01233673095703125, 0.010009765625, 0.03173828125, 0.01396942138671875, -0.044158935546875, -0.01277923583984375, 0.01861572265625, 0.035552978515625, -0.0240325927734375, 0.021484375, -0.00370025634765625, -0.0189971923828125, 0.00528717041015625, -0.032073974609375, -0.048553466796875, -0.056640625, 0.0021762847900390625, 0.0195159912109375, -0.01812744140625, -0.025634765625, -0.046844482421875, -0.0009813308715820312, 0.04144287109375, -0.01251983642578125, 0.01201629638671875, 0.0115966796875, -0.0633544921875, 0.0169219970703125, -0.002994537353515625, -0.028167724609375, 0.0224761962890625, 0.050750732421875, -0.0308380126953125, 0.0163421630859375, -0.016357421875, -0.043548583984375, -0.007843017578125, 0.019500732421875, 0.033599853515625, -0.036041259765625, -0.0328369140625, 0.035552978515625, 0.038787841796875, 0.07757568359375, 0.05596923828125, -0.0018835067749023438, -0.0011348724365234375, 0.02288818359375, -0.06378173828125, -0.045318603515625, 0.042449951171875, -0.034027099609375, -0.034912109375, -0.00601959228515625, 0.0250396728515625, 0.04669189453125, -0.01806640625, -0.060028076171875, 0.040679931640625, -0.021331787109375, -0.033721923828125, -0.0634765625, 0.00789642333984375, 0.006549835205078125, 0.00579833984375, -0.0120849609375, -0.011383056640625, -0.04443359375, 0.019805908203125, 0.039947509765625, 0.046356201171875, 0.00841522216796875, 0.0308074951171875, -0.07135009765625, 0.0281524658203125, -0.005523681640625, 0.05035400390625, 0.007709503173828125, 0.0045166015625, -0.0063934326171875, 0.0289306640625, -0.048004150390625, -0.017242431640625, -0.0277099609375, 0.00785064697265625, 0.020782470703125, -0.05792236328125, -0.0465087890625, -0.0655517578125, 0.0276947021484375, -0.005462646484375, 0.0250396728515625, 0.007350921630859375, -0.050079345703125, -0.01471710205078125, -0.00740814208984375, -0.006366729736328125, 0.0145416259765625, -0.05078125, 0.014434814453125, -0.0013561248779296875, -0.004314422607421875, -0.00782012939453125, -0.0166473388671875, -0.031524658203125, -0.0178680419921875, -0.031829833984375, -0.00605010986328125, -0.022003173828125, 0.07098388671875, -0.02239990234375, -0.0263671875, -0.042877197265625, -0.015167236328125, -0.0270843505859375, -0.043548583984375, -0.041656494140625, -0.050506591796875, -0.015777587890625, 0.0355224609375, 0.0289764404296875, -0.0065460205078125, 0.023773193359375, 0.019378662109375, 0.04351806640625, -0.036468505859375, 0.029754638671875, 0.012298583984375, 0.0210113525390625, -0.03424072265625, 0.05712890625, 0.052703857421875, 0.04254150390625, 0.01354217529296875, 0.0113067626953125, -0.012603759765625, 0.05615234375, 0.00525665283203125, -0.035064697265625, 0.0248260498046875, -0.053192138671875, 0.00803375244140625, -0.00817108154296875, -0.006893157958984375, -0.0035343170166015625, 0.007770538330078125, 0.0056610107421875, -0.0272674560546875, 0.016143798828125 ]
97882346e5e7fa5b0ec2ab0d3505be62d7e4f1b4
Wordpress Stackexchange Q: How to create a custom order status in woocommerce! I've tried the below code to create custom status. add_action( 'init', function() { $term = get_term_by( 'name', 'shipped', 'shop_order_status' ); if ( ! $term ) { wp_insert_term( 'shipped', 'shop_order_status' ); } } ); But it is not working. I tried some other methods also. Please can anyone help me on this.. A: As a completion for above and to not use JavaScript to add the actions in bulk actions list, to add/reorder bulk actions you can use the hook bulk_actions-edit-shop_order. For example: function rename_or_reorder_bulk_actions( $actions ) { $actions = array( // this is the order in which the actions are displayed; you can switch them 'mark_processing' => __( 'Mark placed', 'textdomain' ), // rewrite an existing status 'mark_invoiced' => __( 'Mark invoiced', 'textdomain' ), // adding a new one 'mark_completed' => $actions['mark_completed'], 'remove_personal_data' => $actions['remove_personal_data'], 'trash' => $actions['trash'], ); return $actions; } add_filter( 'bulk_actions-edit-shop_order', 'rename_or_reorder_bulk_actions', 20 ); Cheers!
Q: How to create a custom order status in woocommerce! I've tried the below code to create custom status. add_action( 'init', function() { $term = get_term_by( 'name', 'shipped', 'shop_order_status' ); if ( ! $term ) { wp_insert_term( 'shipped', 'shop_order_status' ); } } ); But it is not working. I tried some other methods also. Please can anyone help me on this.. A: As a completion for above and to not use JavaScript to add the actions in bulk actions list, to add/reorder bulk actions you can use the hook bulk_actions-edit-shop_order. For example: function rename_or_reorder_bulk_actions( $actions ) { $actions = array( // this is the order in which the actions are displayed; you can switch them 'mark_processing' => __( 'Mark placed', 'textdomain' ), // rewrite an existing status 'mark_invoiced' => __( 'Mark invoiced', 'textdomain' ), // adding a new one 'mark_completed' => $actions['mark_completed'], 'remove_personal_data' => $actions['remove_personal_data'], 'trash' => $actions['trash'], ); return $actions; } add_filter( 'bulk_actions-edit-shop_order', 'rename_or_reorder_bulk_actions', 20 ); Cheers! A: This is what I have used to create a custom order status called "Invoiced". Add this to your theme's functions.php // New order status AFTER woo 2.2 add_action( 'init', 'register_my_new_order_statuses' ); function register_my_new_order_statuses() { register_post_status( 'wc-invoiced', array( 'label' => _x( 'Invoiced', 'Order status', 'woocommerce' ), 'public' => true, 'exclude_from_search' => false, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, 'label_count' => _n_noop( 'Invoiced <span class="count">(%s)</span>', 'Invoiced<span class="count">(%s)</span>', 'woocommerce' ) ) ); } add_filter( 'wc_order_statuses', 'my_new_wc_order_statuses' ); // Register in wc_order_statuses. function my_new_wc_order_statuses( $order_statuses ) { $order_statuses['wc-invoiced'] = _x( 'Invoiced', 'Order status', 'woocommerce' ); return $order_statuses; } In order to add your new status to the admin Bulk-edit dropdown you have to use javascript. Add your function to the admin_footer action. My function then looks something like this: function custom_bulk_admin_footer() { global $post_type; if ( $post_type == 'shop_order' ) { ?> <script type="text/javascript"> jQuery(document).ready(function() { jQuery('<option>').val('mark_invoiced').text('<?php _e( 'Mark invoiced', 'textdomain' ); ?>').appendTo("select[name='action']"); jQuery('<option>').val('mark_invoiced').text('<?php _e( 'Mark invoiced', 'textdomain' ); ?>').appendTo("select[name='action2']"); }); </script> <?php } } The action is added two times because there are one bulk action at the top and another at the bottom of the order list.
wordpress
{ "language": "en", "length": 344, "provenance": "stackexchange_00019.jsonl.gz:458312", "question_score": "13", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/199289" }
[ 0.0611572265625, -0.0033016204833984375, -0.0294342041015625, -0.05865478515625, 0.0266265869140625, -0.0438232421875, 0.026214599609375, 0.00885772705078125, 0.0233306884765625, 0.02203369140625, 0.0010404586791992188, -0.01287841796875, 0.01641845703125, -0.03265380859375, 0.01375579833984375, -0.0006079673767089844, 0.03118896484375, -0.0055084228515625, 0.06634521484375, 0.00252532958984375, -0.006313323974609375, 0.022491455078125, 0.0714111328125, 0.0140533447265625, 0.016143798828125, -0.0103912353515625, 0.08197021484375, -0.037017822265625, 0.0280609130859375, -0.0193023681640625, 0.01806640625, -0.00849151611328125, 0.00975799560546875, 0.01861572265625, -0.0241241455078125, -0.004718780517578125, -0.0163726806640625, 0.0083770751953125, -0.005092620849609375, 0.0186614990234375, 0.042999267578125, -0.0278167724609375, 0.01186370849609375, -0.016693115234375, -0.0032749176025390625, -0.036376953125, 0.070068359375, -0.0170440673828125, 0.042694091796875, 0.004627227783203125, 0.0265045166015625, 0.041229248046875, 0.0274200439453125, -0.0103607177734375, -0.0292510986328125, -0.005275726318359375, -0.0628662109375, 0.038848876953125, 0.01561737060546875, 0.05194091796875, 0.01409149169921875, 0.0081634521484375, -0.022369384765625, -0.048248291015625, 0.0221710205078125, -0.001201629638671875, 0.004058837890625, 0.029022216796875, -0.0178985595703125, 0.0219573974609375, 0.0130767822265625, -0.01424407958984375, 0.012847900390625, 0.0188140869140625, -0.031829833984375, -0.056427001953125, 0.00861358642578125, -0.03936767578125, 0.0260772705078125, 0.011077880859375, 0.0219573974609375, -0.0014429092407226562, 0.01236724853515625, -0.0101165771484375, 0.006221771240234375, 0.00778961181640625, -0.0022335052490234375, -0.0223388671875, -0.003376007080078125, -0.017242431640625, -0.01458740234375, -0.10260009765625, 0.02203369140625, 0.0296630859375, -0.01568603515625, -0.0167999267578125, 0.01514434814453125, 0.039306640625, -0.0215606689453125, 0.01849365234375, 0.0119781494140625, -0.039215087890625, 0.0465087890625, -0.0509033203125, 0.00867462158203125, -0.0084686279296875, 0.00464630126953125, -0.029754638671875, 0.017486572265625, 0.005054473876953125, -0.033233642578125, 0.0181427001953125, 0.015045166015625, -0.00832366943359375, 0.002025604248046875, -0.0182647705078125, -0.03485107421875, 0.035491943359375, -0.008453369140625, -0.0106658935546875, -0.005283355712890625, 0.0218658447265625, -0.0238800048828125, 0.030975341796875, -0.0323486328125, -0.024139404296875, 0.029266357421875, -0.03240966796875, 0.032440185546875, -0.0179290771484375, -0.04327392578125, 0.0372314453125, 0.05120849609375, -0.0021381378173828125, -0.01507568359375, 0.0156707763671875, 0.06829833984375, 0.007442474365234375, -0.004512786865234375, 0.002750396728515625, 0.043670654296875, 0.00395965576171875, -0.039306640625, 0.0113372802734375, 0.03082275390625, 0.00946044921875, 0.01117706298828125, -0.01287841796875, 0.0290985107421875, 0.0174407958984375, -0.050689697265625, 0.01055908203125, 0.03692626953125, 0.0018873214721679688, 0.00493621826171875, 0.0246429443359375, 0.0183868408203125, 0.0198822021484375, -0.049102783203125, -0.00750732421875, 0.035003662109375, -0.0159454345703125, -0.039886474609375, -0.01302337646484375, -0.056549072265625, 0.0268402099609375, -0.0231475830078125, -0.006740570068359375, 0.024627685546875, -0.01149749755859375, 0.0181884765625, 0.0078887939453125, 0.032318115234375, 0.016357421875, 0.002201080322265625, 0.007732391357421875, -0.00011909008026123047, -0.0026912689208984375, 0.0187225341796875, 0.004825592041015625, -0.03680419921875, -0.0418701171875, 0.031494140625, -0.030792236328125, -0.037841796875, 0.02923583984375, 0.02667236328125, 0.056396484375, -0.020233154296875, 0.0229339599609375, 0.0367431640625, 0.0273284912109375, -0.024169921875, 0.001529693603515625, 0.01363372802734375, -0.03369140625, 0.03277587890625, -0.0184783935546875, 0.01116180419921875, 0.0075225830078125, 0.006633758544921875, 0.01074981689453125, 0.01032257080078125, 0.0028667449951171875, -0.07159423828125, 0.03045654296875, -0.04437255859375, 0.056121826171875, -0.060302734375, -0.019012451171875, 0.05523681640625, -0.0032501220703125, -0.04608154296875, 0.006008148193359375, 0.01605224609375, 0.00001704692840576172, -0.044525146484375, 0.058929443359375, -0.00015366077423095703, 0.06689453125, -0.007785797119140625, -0.047515869140625, 0.00469207763671875, -0.033905029296875, 0.008148193359375, -0.020751953125, -0.00690460205078125, -0.0181732177734375, 0.01006317138671875, -0.020721435546875, 0.0210418701171875, 0.036346435546875, 0.048126220703125, 0.054107666015625, -0.0087890625, -0.026031494140625, -0.0282745361328125, -0.130615234375, 0.01338958740234375, 0.059356689453125, 0.01485443115234375, 0.042510986328125, 0.00992584228515625, 0.054840087890625, 0.061767578125, -0.005786895751953125, 0.01491546630859375, 0.0290985107421875, -0.0191802978515625, 0.01806640625, -0.0038738250732421875, 0.0175628662109375, 0.0202789306640625, -0.01045989990234375, 0.004016876220703125, 0.03594970703125, -0.032135009765625, -0.04547119140625, 0.00971221923828125, -0.0171661376953125, 0.023468017578125, -0.032073974609375, -0.039703369140625, 0.00705718994140625, 0.034332275390625, 0.02069091796875, 0.036346435546875, 0.01702880859375, -0.041717529296875, 0.0303497314453125, 0.0229644775390625, -0.026580810546875, -0.00460052490234375, -0.002193450927734375, -0.025390625, -0.0231781005859375, -0.0038051605224609375, 0.014556884765625, -0.01373291015625, -0.0273590087890625, -0.01910400390625, -0.0156707763671875, -0.0115966796875, -0.00447845458984375, 0.01500701904296875, -0.031707763671875, 0.0287322998046875, 0.0020961761474609375, -0.042205810546875, -0.045013427734375, -0.0301666259765625, 0.045166015625, -0.05157470703125, 0.049468994140625, 0.0239715576171875, -0.01215362548828125, 0.06878662109375, -0.01800537109375, 0.037506103515625, -0.0208892822265625, 0.06658935546875, 0.060882568359375, -0.0268096923828125, 0.00983428955078125, 0.00972747802734375, -0.03076171875, -0.005344390869140625, 0.0126800537109375, 0.0144805908203125, -0.0152740478515625, -0.0015468597412109375, 0.0777587890625, 0.04156494140625, 0.0496826171875, 0.0038356781005859375, -0.0189361572265625, -0.004627227783203125, 0.050750732421875, -0.0003292560577392578, -0.021331787109375, 0.0465087890625, -0.042327880859375, -0.0190277099609375, 0.002956390380859375, -0.03619384765625, 0.0004088878631591797, 0.02056884765625, -0.0096588134765625, 0.0200958251953125, -0.01290130615234375, -0.01316070556640625, -0.00704193115234375, -0.02203369140625, -0.0172119140625, 0.0174102783203125, -0.03277587890625, -0.001094818115234375, 0.11737060546875, 0.01061248779296875, -0.037109375, 0.005672454833984375, -0.03985595703125, 0.01125335693359375, 0.036895751953125, 0.00390625, -0.01898193359375, 0.01241302490234375, -0.00554656982421875, 0.003597259521484375, 0.010009765625, -0.0057220458984375, -0.013458251953125, -0.0201263427734375, -0.00888824462890625, 0.006732940673828125, 0.0163726806640625, 0.0123291015625, -0.01137542724609375, 0.0243072509765625, -0.0440673828125, -0.055908203125, 0.025177001953125, -0.033721923828125, 0.02862548828125, 0.0147247314453125, -0.0182647705078125, -0.00267791748046875, 0.05712890625, 0.0203094482421875, 0.046356201171875, 0.035400390625, 0.01953125, -0.025421142578125, -0.011810302734375, -0.030059814453125, -0.033416748046875, 0.054351806640625, -0.004848480224609375, -0.002475738525390625, 0.0085906982421875, -0.00531005859375, 0.00003641843795776367, -0.011810302734375, -0.04559326171875, -0.04730224609375, 0.0235748291015625, -0.058197021484375, 0.023773193359375, -0.055450439453125, -0.0022869110107421875, -0.0014467239379882812, 0.0870361328125, -0.03192138671875, -0.035186767578125, -0.00234222412109375, 0.0299072265625, -0.047332763671875, -0.0111083984375, -0.008819580078125, 0.0031337738037109375, -0.1021728515625, 0.037353515625, -0.005126953125, -0.0243988037109375, -0.005802154541015625, -0.044281005859375, -0.0477294921875, -0.0626220703125, 0.0355224609375, -0.026824951171875, 0.013580322265625, 0.03826904296875, -0.0111236572265625, -0.00138092041015625, -0.0077362060546875, -0.01485443115234375, -0.02777099609375, -0.0009851455688476562, -0.0214996337890625, 0.01366424560546875, 0.00881195068359375, 0.0197906494140625, 0.010955810546875, 0.037261962890625, 0.01192474365234375, 0.04864501953125, -0.01116943359375, -0.0027103424072265625, 0.0286865234375, -0.0276947021484375, -0.005615234375, -0.0248260498046875, -0.005855560302734375, -0.00685882568359375, -0.0238037109375, -0.01242828369140625, -0.04144287109375, -0.007549285888671875, -0.0018243789672851562, -0.036224365234375, -0.08544921875, -0.06475830078125, 0.000029265880584716797, 0.0190582275390625, -0.004306793212890625, 0.009521484375, -0.0762939453125, -0.06475830078125, 0.0178070068359375, -0.06658935546875, -0.0226287841796875, 0.0171966552734375, 0.0665283203125, 0.021148681640625, 0.026519775390625, 0.00971221923828125, 0.035858154296875, 0.0296173095703125, 0.007266998291015625, -0.013214111328125, -0.03167724609375, -0.0169677734375, -0.006732940673828125, -0.0199737548828125, -0.0219268798828125, -0.02581787109375, 0.05194091796875, 0.0009050369262695312, -0.006320953369140625, -0.00788116455078125, -0.034088134765625, 0.05035400390625, 0.0036792755126953125, -0.0059051513671875, -0.057342529296875, -0.0025882720947265625, 0.07080078125, -0.019744873046875, 0.03717041015625, -0.0290985107421875, -0.01285552978515625, 0.007266998291015625, -0.015777587890625, -0.01090240478515625, -0.0003082752227783203, -0.005596160888671875, -0.0411376953125, -0.045989990234375, 0.0202789306640625, -0.062744140625, -0.06591796875, -0.06353759765625, 0.007778167724609375, -0.0167694091796875, -0.0079498291015625, 0.03515625, -0.006072998046875, 0.0310821533203125, -0.0313720703125, -0.04461669921875, -0.034271240234375, -0.0107269287109375, 0.047576904296875, 0.022491455078125, 0.004741668701171875, 0.0282745361328125, 0.0263519287109375, -0.00399017333984375, 0.0155792236328125, -0.010406494140625, 0.0134429931640625, -0.0312347412109375, 0.01395416259765625, 0.005054473876953125, 0.001354217529296875, 0.0010280609130859375, 0.047943115234375, 0.017242431640625, 0.0305328369140625, -0.0181427001953125, 0.059112548828125, 0.04547119140625, 0.01136016845703125, 0.003047943115234375, 0.0162811279296875, 0.0033416748046875, -0.011627197265625, -0.0223846435546875, -0.0181732177734375, 0.0055999755859375, 0.0132293701171875, 0.0201873779296875, -0.007904052734375, -0.0108184814453125, 0.020050048828125, -0.0380859375, -0.0408935546875, 0.0360107421875, 0.030364990234375, -0.0257720947265625, -0.0175323486328125, 0.0020923614501953125, 0.00785064697265625, 0.01343536376953125, -0.014801025390625, 0.034088134765625, -0.04034423828125, 0.0225067138671875, 0.0121612548828125, 0.0226898193359375, -0.0325927734375, -0.03765869140625, -0.01898193359375, -0.0172119140625, 0.037628173828125, -0.07232666015625, -0.01538848876953125, -0.0191802978515625, -0.01021575927734375, 0.04266357421875, -0.02606201171875, -0.0047607421875, -0.0292816162109375, 0.0126190185546875, -0.05810546875, 0.0013952255249023438, 0.045928955078125, 0.02117919921875, 0.004695892333984375, -0.0277099609375, -0.0192413330078125, -0.0302581787109375, -0.044891357421875, -0.007076263427734375, -0.005035400390625, 0.0219268798828125, -0.0077667236328125, 0.0252838134765625, -0.020477294921875, -0.0120697021484375, -0.01096343994140625, 0.0007123947143554688, 0.0026950836181640625, 0.0246429443359375, -0.013336181640625, 0.052459716796875, 0.0103912353515625, 0.07366943359375, 0.01143646240234375, 0.0194549560546875, -0.008148193359375, -0.040771484375, 0.022186279296875, -0.0465087890625, -0.05181884765625, -0.0361328125, -0.0643310546875, 0.054901123046875, 0.06378173828125, -0.01079559326171875, 0.021636962890625, 0.01227569580078125, 0.0085601806640625, -0.0199737548828125, -0.0178680419921875, 0.001834869384765625, 0.04150390625, -0.01277923583984375, -0.03558349609375, 0.01297760009765625, 0.013885498046875, 0.0523681640625, -0.004741668701171875, -0.0638427734375, 0.01047515869140625, 0.0262298583984375, -0.04473876953125, 0.031890869140625, 0.0217437744140625, -0.018951416015625, 0.0127105712890625, -0.0283203125, -0.006572723388671875, 0.0479736328125, 0.02947998046875, 0.016082763671875, -0.003017425537109375, 0.08349609375, 0.0123138427734375, -0.0258636474609375, 0.04156494140625, -0.03656005859375, 0.0287322998046875, 0.090087890625, 0.0777587890625, -0.149169921875, 0.0182647705078125, 0.024017333984375, 0.027069091796875, 0.079833984375, -0.0171661376953125, 0.01611328125, -0.0206146240234375, 0.022369384765625, -0.0007486343383789062, -0.02252197265625, -0.0016679763793945312, -0.0194549560546875, 0.000240325927734375, 0.041900634765625, -0.01983642578125, -0.03314208984375, -0.00916290283203125, -0.0650634765625, -0.00257110595703125, -0.03643798828125, -0.04229736328125, 0.026123046875, 0.02520751953125, 0.0160980224609375, -0.0667724609375, 0.039947509765625, -0.0138092041015625, 0.0166015625, 0.0035839080810546875, -0.04180908203125, 0.0430908203125, 0.0428466796875, -0.025390625, -0.01532745361328125, 0.01104736328125, -0.0080718994140625, -0.044036865234375, -0.01013946533203125, 0.0267791748046875, -0.01438140869140625, -0.0682373046875, 0.016632080078125, -0.07403564453125, 0.00635528564453125, -0.0157012939453125, -0.05780029296875, 0.0024394989013671875, -0.01314544677734375, -0.0186614990234375, 0.0087127685546875, 0.022735595703125, 0.0103912353515625, -0.005329132080078125, 0.042633056640625, -0.047882080078125, -0.0197601318359375, 0.026519775390625, -0.0157623291015625, -0.046905517578125, 0.00745391845703125, -0.06817626953125, 0.09796142578125, -0.002300262451171875, 0.01535797119140625, -0.03179931640625, 0.048095703125, -0.01306915283203125, 0.036346435546875, -0.0372314453125, 0.04644775390625, 0.00917816162109375, 0.034027099609375, -0.0002722740173339844, -0.00022029876708984375, 0.0277862548828125, -0.0033016204833984375, 0.04864501953125, 0.01474761962890625, -0.0260009765625, -0.0089263916015625, 0.03082275390625, -0.0279541015625, -0.03668212890625, 0.06585693359375, -0.009185791015625, -0.0131988525390625, 0.0052032470703125, -0.026336669921875, 0.010528564453125, -0.022216796875, -0.007335662841796875, 0.0276336669921875, 0.01178741455078125, 0.0003094673156738281, -0.04718017578125, 0.07843017578125, -0.0271453857421875, -0.0200958251953125, 0.0155181884765625, 0.0239410400390625, 0.0021381378173828125, 0.02362060546875, 0.006427764892578125, -0.0282440185546875, -0.064453125, -0.00955963134765625, 0.0217132568359375, 0.018524169921875, 0.0408935546875, 0.042022705078125, 0.0260009765625, 0.03497314453125, -0.00957489013671875, 0.032928466796875, 0.00399017333984375, -0.0214080810546875, 0.045562744140625, 0.019989013671875, 0.021087646484375, -0.0009636878967285156, 0.0264892578125, 0.009185791015625, 0.0465087890625, -0.0312347412109375, -0.010345458984375, -0.00646209716796875, -0.0158843994140625, 0.01065826416015625, -0.026947021484375, 0.0223846435546875, -0.06817626953125, -0.05291748046875, -0.080810546875, 0.038665771484375, 0.041351318359375, 0.034698486328125, -0.0165252685546875, -0.0205230712890625, -0.09197998046875, -0.00933837890625, -0.0079193115234375, -0.0116424560546875, -0.01080322265625, 0.01474761962890625, 0.0258331298828125, 0.0173492431640625, -0.00833892822265625, 0.005069732666015625, 0.017059326171875, -0.00382232666015625, -0.025054931640625, -0.026153564453125, -0.017791748046875, -0.0239105224609375, -0.03240966796875, 0.037109375, -0.002017974853515625, 0.03192138671875, 0.0211944580078125, 0.0073699951171875, -0.0007457733154296875, -0.006450653076171875, 0.00072479248046875, -0.03485107421875, -0.0127105712890625, -0.06195068359375, 0.00516510009765625, -0.0159759521484375, 0.00460052490234375, 0.0261993408203125, -0.003398895263671875, 0.0010051727294921875, -0.0197601318359375, 0.01324462890625, -0.0023956298828125, -0.041839599609375, 0.03790283203125, -0.0162811279296875, 0.061614990234375, -0.01047515869140625, -0.00897216796875, -0.03466796875, -0.0058746337890625, 0.048126220703125, -0.024688720703125, 0.01174163818359375, 0.0204925537109375, 0.05096435546875, -0.0088043212890625, -0.0191802978515625, 0.02557373046875, -0.0103759765625, 0.02294921875, 0.0233612060546875, -0.00815582275390625, 0.01953125, -0.0023059844970703125, 0.006763458251953125, 0.033966064453125, 0.0044708251953125, 0.0207061767578125, 0.0123748779296875, 0.00679779052734375, 0.0163421630859375, -0.0182647705078125, 0.0296783447265625, -0.0289154052734375, -0.018707275390625, 0.06158447265625, -0.007068634033203125, -0.0279083251953125, 0.0103912353515625, 0.018707275390625, -0.0128326416015625, 0.05792236328125, -0.057952880859375, -0.05657958984375, 0.039703369140625, 0.0211334228515625, -0.0028057098388671875, 0.061279296875, -0.01593017578125, -0.032928466796875, -0.0157012939453125, 0.0012006759643554688, 0.0014944076538085938, 0.000278472900390625, 0.00760650634765625, 0.01233673095703125, -0.0007648468017578125, -0.0123291015625, 0.03253173828125, -0.01361846923828125, 0.0645751953125, 0.0301971435546875, -0.037841796875, 0.00023257732391357422, -0.00595855712890625, -0.0092926025390625, 0.0100250244140625, 0.0160675048828125, -0.0016937255859375, 0.005733489990234375, -0.028106689453125, 0.003894805908203125, 0.0209808349609375, 0.01715087890625, -0.005626678466796875, 0.005764007568359375, 0.01100921630859375, -0.01256561279296875, 0.01531982421875, 0.0003352165222167969, -0.0225982666015625, -0.0263519287109375, -0.00476837158203125, 0.01239013671875, 0.006526947021484375, 0.0092315673828125, 0.0011072158813476562, -0.00556182861328125, 0.01117706298828125, 0.0104217529296875, -0.015106201171875, -0.01163482666015625, 0.0240478515625, -0.0118865966796875, 0.0135040283203125, -0.02606201171875, -0.04296875, -0.034820556640625, 0.00670623779296875, -0.01898193359375, -0.08245849609375, 0.032867431640625, -0.042816162109375, -0.022857666015625, 0.0013818740844726562, 0.0002734661102294922, -0.035919189453125, -0.039947509765625, -0.0016851425170898438, -0.01389312744140625, 0.0132904052734375, -0.0400390625, 0.0034465789794921875, -0.013275146484375, 0.0217132568359375, -0.04840087890625, -0.02056884765625, -0.05889892578125, -0.0092315673828125, -0.0251007080078125, -0.0081329345703125, 0.00254058837890625, -0.04876708984375, -0.0712890625, 0.039093017578125, -0.0006318092346191406, -0.033721923828125, -0.046600341796875, 0.0016756057739257812, -0.01019287109375, 0.01031494140625, -0.0207061767578125, -0.0159912109375, -0.032806396484375, 0.024688720703125, -0.039520263671875, 0.0614013671875, -0.05157470703125, 0.002407073974609375, 0.01544189453125, 0.032379150390625, 0.039581298828125, -0.030426025390625, 0.03802490234375, -0.03790283203125, 0.07415771484375, 0.032318115234375, -0.03741455078125, 0.0238189697265625, 0.005847930908203125, -0.00711822509765625, -0.00020039081573486328, -0.0243072509765625, -0.039642333984375, -0.0218048095703125, 0.05438232421875, 0.035064697265625, 0.01023101806640625, -0.003826141357421875, -0.004436492919921875, -0.010284423828125, 0.001583099365234375, 0.01111602783203125, -0.011322021484375, -0.0301055908203125, -0.008544921875, -0.00910186767578125, -0.0014028549194335938, -0.001850128173828125, 0.01491546630859375, -0.0228118896484375, 0.0007925033569335938, 0.064697265625, 0.01483154296875, -0.033660888671875, 0.0200653076171875, 0.001007080078125, -0.01430511474609375, -0.0255889892578125, -0.00038886070251464844, -0.018280029296875, -0.02001953125, 0.0136260986328125, 0.0165863037109375, 0.0029354095458984375, -0.0250701904296875, 0.01540374755859375, 0.004566192626953125, 0.02447509765625, -0.01500701904296875, -0.037841796875, -0.02301025390625, -0.00971221923828125, -0.00946807861328125, -0.0224609375, -0.00920867919921875, 0.0216827392578125, 0.00092315673828125, 0.044586181640625, -0.027862548828125, 0.07891845703125, -0.0007944107055664062, 0.0177154541015625, 0.021453857421875, 0.0002856254577636719, 0.07843017578125, -0.044219970703125, -0.0033054351806640625, -0.0263671875, -0.0081939697265625, -0.07843017578125, 0.03802490234375, -0.0246429443359375, 0.00722503662109375, 0.04107666015625 ]
60b9a041af5645db1c30440fd8466226ebcc913a
Wordpress Stackexchange Q: query_vars Filter: Would You Ever Use It When $_GET is Available and You Don't Need a 'Pretty' URL? I'm having a hard time wrapping my head around the uses cases/best practice for the 'query_vars' filter, and query_vars in general, when I could use the $_GET global instead. Given http://example.com/my-page/?mykey=myvalue: * *If I'm not altering the query, I understand that it wouldn't be appropriate to add 'mykey' as a query var. *But if I AM going to alter the query using the 'pre_get_posts' hook, I can still grab 'mykey' from the $_GET global and use it without issue, provided I don't care about pretty permalinks and am not rewriting the URL. Is there some reason I shouldn't be using $_GET in this case?
Q: query_vars Filter: Would You Ever Use It When $_GET is Available and You Don't Need a 'Pretty' URL? I'm having a hard time wrapping my head around the uses cases/best practice for the 'query_vars' filter, and query_vars in general, when I could use the $_GET global instead. Given http://example.com/my-page/?mykey=myvalue: * *If I'm not altering the query, I understand that it wouldn't be appropriate to add 'mykey' as a query var. *But if I AM going to alter the query using the 'pre_get_posts' hook, I can still grab 'mykey' from the $_GET global and use it without issue, provided I don't care about pretty permalinks and am not rewriting the URL. Is there some reason I shouldn't be using $_GET in this case?
wordpress
{ "language": "en", "length": 123, "provenance": "stackexchange_00019.jsonl.gz:458321", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/199332" }
[ 0.043701171875, -0.03131103515625, 0.011810302734375, -0.01531219482421875, -0.0122833251953125, -0.016387939453125, 0.046173095703125, 0.016632080078125, 0.0257568359375, 0.00945281982421875, -0.02056884765625, -0.0279998779296875, 0.004283905029296875, -0.02801513671875, -0.0253143310546875, -0.027069091796875, 0.0303955078125, -0.06927490234375, -0.0306243896484375, -0.024871826171875, -0.0013723373413085938, -0.0268707275390625, 0.061431884765625, 0.024322509765625, 0.04400634765625, -0.027801513671875, 0.003749847412109375, -0.0011758804321289062, 0.018157958984375, -0.002048492431640625, 0.0164794921875, -0.0207366943359375, 0.0173187255859375, -0.00681304931640625, 0.0184326171875, 0.01316070556640625, 0.00469970703125, 0.00972747802734375, 0.0306854248046875, -0.032470703125, 0.035308837890625, -0.024505615234375, -0.00766754150390625, 0.004764556884765625, 0.0003390312194824219, -0.035736083984375, 0.048187255859375, -0.040252685546875, -0.00505828857421875, 0.042144775390625, -0.0077667236328125, 0.032562255859375, -0.01561737060546875, 0.04473876953125, 0.01068115234375, 0.00518798828125, 0.01230621337890625, -0.05560302734375, 0.0362548828125, 0.0010290145874023438, -0.01456451416015625, -0.04095458984375, 0.040924072265625, -0.0045623779296875, 0.0018558502197265625, -0.00695037841796875, -0.032440185546875, 0.0126190185546875, -0.05914306640625, -0.007049560546875, 0.043914794921875, -0.061370849609375, 0.0022144317626953125, -0.043212890625, -0.0220184326171875, -0.0160064697265625, 0.032867431640625, -0.03277587890625, -0.0228271484375, 0.002803802490234375, -0.04022216796875, -0.032196044921875, -0.0498046875, -0.006366729736328125, -0.0243988037109375, -0.00011402368545532227, -0.0206756591796875, 0.01088714599609375, -0.034912109375, -0.06640625, -0.0220794677734375, -0.0178070068359375, -0.068115234375, -0.01202392578125, -0.0246124267578125, -0.030853271484375, 0.004512786865234375, 0.031982421875, 0.01531219482421875, 0.010223388671875, -0.009674072265625, -0.0204010009765625, 0.007175445556640625, -0.03350830078125, -0.00577545166015625, 0.02935791015625, 0.01422119140625, 0.05908203125, 0.044891357421875, 0.01910400390625, 0.0038738250732421875, 0.03961181640625, -0.0010976791381835938, 0.031982421875, -0.0643310546875, -0.012908935546875, -0.0211639404296875, -0.057769775390625, -0.03106689453125, -0.01366424560546875, 0.0230865478515625, 0.0142059326171875, 0.012969970703125, 0.01219940185546875, -0.00774383544921875, -0.01131439208984375, -0.0295867919921875, -0.0190277099609375, -0.072509765625, 0.053253173828125, 0.00970458984375, 0.01340484619140625, 0.0177001953125, 0.01959228515625, -0.033111572265625, -0.0265655517578125, 0.0103607177734375, -0.0276031494140625, 0.027008056640625, -0.0205841064453125, -0.0182342529296875, -0.009002685546875, 0.04217529296875, 0.0012607574462890625, -0.03143310546875, 0.045501708984375, 0.0281524658203125, 0.00029969215393066406, -0.02899169921875, -0.0623779296875, -0.0011720657348632812, -0.01953125, 0.034210205078125, -0.0020999908447265625, -0.03509521484375, 0.002948760986328125, 0.00801849365234375, -0.028076171875, -0.031219482421875, -0.01525115966796875, -0.015777587890625, -0.0023860931396484375, 0.005706787109375, -0.034271240234375, -0.0080413818359375, -0.036346435546875, 0.01528167724609375, 0.015411376953125, 0.012542724609375, -0.0037097930908203125, 0.038299560546875, -0.0112152099609375, -0.0004146099090576172, 0.01800537109375, 0.0230255126953125, 0.001850128173828125, 0.0247650146484375, 0.02294921875, 0.02227783203125, 0.006809234619140625, -0.01556396484375, -0.037139892578125, 0.057708740234375, -0.0338134765625, -0.08123779296875, 0.03399658203125, -0.01010894775390625, 0.02813720703125, 0.03704833984375, -0.00875091552734375, 0.0562744140625, 0.01157379150390625, -0.01126861572265625, 0.0277862548828125, -0.0082855224609375, -0.026153564453125, 0.0287322998046875, 0.004703521728515625, 0.00963592529296875, -0.0294189453125, 0.059722900390625, -0.0203094482421875, 0.0350341796875, -0.025970458984375, -0.04302978515625, 0.0113372802734375, -0.01236724853515625, 0.00917816162109375, -0.0182647705078125, 0.002727508544921875, 0.034271240234375, 0.0205535888671875, -0.052734375, 0.004245758056640625, -0.0178985595703125, 0.03082275390625, 0.00029087066650390625, 0.0079193115234375, -0.0174560546875, 0.004741668701171875, 0.021942138671875, -0.002239227294921875, 0.0165252685546875, 0.050506591796875, 0.01264190673828125, 0.0233306884765625, -0.033660888671875, 0.0006551742553710938, 0.0020046234130859375, 0.010986328125, -0.016265869140625, 0.02587890625, 0.0281982421875, 0.07098388671875, 0.0079803466796875, -0.00807952880859375, -0.01012420654296875, -0.03778076171875, -0.005565643310546875, 0.03253173828125, 0.0374755859375, 0.00662994384765625, -0.01068115234375, -0.0171661376953125, -0.0006799697875976562, -0.044036865234375, 0.01247406005859375, -0.024139404296875, -0.0171051025390625, 0.03497314453125, 0.018280029296875, -0.01030731201171875, -0.001087188720703125, -0.06622314453125, -0.0243072509765625, 0.0191497802734375, -0.00732421875, 0.0164031982421875, -0.015655517578125, 0.03900146484375, -0.040557861328125, -0.01259613037109375, 0.01470947265625, -0.026641845703125, 0.01155853271484375, -0.04461669921875, 0.018585205078125, 0.004528045654296875, 0.032989501953125, -0.045135498046875, -0.00783538818359375, -0.05511474609375, -0.00453948974609375, 0.005199432373046875, -0.0003457069396972656, -0.0242462158203125, -0.005962371826171875, 0.004730224609375, -0.0011510848999023438, -0.0144195556640625, -0.0195159912109375, 0.0204010009765625, -0.05322265625, -0.0201568603515625, -0.0068359375, 0.007358551025390625, -0.006381988525390625, -0.00946044921875, 0.056610107421875, -0.0005822181701660156, 0.033935546875, -0.0066375732421875, -0.029876708984375, 0.0498046875, 0.012603759765625, -0.051666259765625, 0.0181427001953125, -0.034423828125, 0.0195770263671875, -0.0084991455078125, 0.043304443359375, 0.058563232421875, 0.01519012451171875, 0.006622314453125, 0.0060272216796875, 0.039764404296875, 0.0275726318359375, -0.029388427734375, -0.00974273681640625, 0.044647216796875, -0.08984375, -0.0258331298828125, 0.0012922286987304688, 0.036163330078125, -0.0079345703125, -0.058074951171875, 0.00858306884765625, -0.007076263427734375, -0.07025146484375, -0.07757568359375, -0.01535797119140625, -0.048309326171875, -0.0179290771484375, 0.00315093994140625, -0.0210723876953125, 0.021728515625, 0.006381988525390625, 0.004810333251953125, 0.0009508132934570312, -0.0204010009765625, -0.09149169921875, -0.0592041015625, -0.09600830078125, 0.01202392578125, -0.0036716461181640625, 0.0161895751953125, -0.0121612548828125, 0.06658935546875, 0.0026950836181640625, -0.0160980224609375, 0.001651763916015625, -0.01436614990234375, -0.004383087158203125, -0.026580810546875, -0.0047149658203125, -0.047271728515625, 0.01462554931640625, -0.0233917236328125, 0.06805419921875, 0.0335693359375, -0.0155487060546875, 0.031005859375, -0.003932952880859375, 0.0224609375, 0.038238525390625, 0.01078033447265625, -0.00974273681640625, 0.037353515625, 0.04425048828125, -0.0186614990234375, -0.020263671875, -0.0050811767578125, -0.040252685546875, -0.0175323486328125, 0.0156402587890625, -0.003635406494140625, -0.0182647705078125, 0.009368896484375, 0.004505157470703125, -0.0247650146484375, -0.012359619140625, -0.054168701171875, 0.052093505859375, 0.02667236328125, 0.0687255859375, 0.0097198486328125, 0.00118255615234375, -0.055023193359375, 0.01357269287109375, -0.0033588409423828125, -0.05157470703125, 0.0061187744140625, -0.044158935546875, 0.0501708984375, -0.033538818359375, 0.06195068359375, 0.013336181640625, 0.007228851318359375, -0.048248291015625, -0.040557861328125, -0.05267333984375, 0.0518798828125, -0.00814056396484375, -0.032623291015625, 0.0066375732421875, 0.0301361083984375, -0.032928466796875, -0.06591796875, 0.0280609130859375, -0.0209808349609375, -0.058990478515625, 0.0255279541015625, -0.012176513671875, -0.015350341796875, -0.026031494140625, -0.0184783935546875, -0.032745361328125, -0.042510986328125, 0.035003662109375, -0.03839111328125, 0.006549835205078125, -0.00688934326171875, -0.01617431640625, -0.01432037353515625, -0.037841796875, -0.027435302734375, -0.05303955078125, -0.03558349609375, 0.03240966796875, 0.0718994140625, -0.0005006790161132812, -0.02435302734375, 0.0078125, 0.0714111328125, 0.0169830322265625, 0.019287109375, 0.00237274169921875, -0.024993896484375, 0.0004773139953613281, 0.0015697479248046875, 0.01192474365234375, -0.0298309326171875, 0.0089569091796875, 0.011505126953125, -0.022003173828125, -0.037689208984375, -0.0258941650390625, -0.061981201171875, 0.01617431640625, -0.03570556640625, -0.0924072265625, -0.02734375, -0.0035305023193359375, -0.0205535888671875, -0.00539398193359375, -0.0227813720703125, 0.004756927490234375, -0.07305908203125, 0.047027587890625, 0.032562255859375, -0.003719329833984375, -0.0168304443359375, 0.052886962890625, 0.024078369140625, -0.04248046875, 0.0268707275390625, -0.00368499755859375, 0.01432037353515625, -0.036895751953125, 0.04376220703125, -0.0029506683349609375, -0.005504608154296875, 0.051513671875, -0.02239990234375, 0.0228729248046875, -0.041534423828125, 0.034637451171875, -0.0005254745483398438, 0.0001913309097290039, 0.007282257080078125, 0.0030517578125, 0.027923583984375, 0.0106201171875, -0.006443023681640625, -0.027008056640625, 0.02740478515625, 0.046966552734375, -0.03485107421875, 0.038360595703125, -0.03131103515625, 0.01428985595703125, -0.0012369155883789062, -0.000043272972106933594, 0.03240966796875, 0.01264190673828125, 0.01197052001953125, -0.02703857421875, -0.0188446044921875, 0.023284912109375, -0.0015878677368164062, 0.043792724609375, -0.02398681640625, 0.0577392578125, -0.0203399658203125, -0.0031185150146484375, -0.0221405029296875, -0.0024261474609375, 0.03912353515625, -0.0274810791015625, -0.020355224609375, -0.014678955078125, -0.0167999267578125, -0.007205963134765625, 0.032318115234375, -0.00580596923828125, 0.0142974853515625, 0.0195159912109375, -0.004192352294921875, 0.01165771484375, 0.04425048828125, -0.0158538818359375, -0.017486572265625, 0.0364990234375, 0.0276336669921875, -0.00295257568359375, -0.0328369140625, 0.08740234375, -0.050018310546875, 0.040435791015625, 0.0138397216796875, -0.00499725341796875, -0.0027751922607421875, -0.0172882080078125, 0.0195770263671875, 0.039825439453125, 0.0253143310546875, -0.032440185546875, 0.0258636474609375, 0.017791748046875, -0.0247955322265625, -0.00839996337890625, -0.01277923583984375, 0.0028018951416015625, 0.046844482421875, 0.0185089111328125, 0.0255889892578125, -0.023773193359375, 0.024322509765625, -0.00917816162109375, -0.018096923828125, -0.04052734375, -0.041595458984375, 0.0198974609375, 0.01183319091796875, 0.0058441162109375, -0.039947509765625, -0.00600433349609375, 0.0279541015625, -0.051025390625, 0.03521728515625, 0.016754150390625, -0.01064300537109375, 0.03497314453125, -0.033447265625, -0.038116455078125, -0.0092010498046875, 0.0186767578125, -0.033935546875, -0.0092010498046875, 0.0494384765625, 0.0162353515625, 0.037811279296875, -0.038055419921875, -0.03448486328125, 0.026275634765625, -0.0228424072265625, 0.05303955078125, 0.004398345947265625, -0.057281494140625, -0.0263824462890625, -0.05999755859375, -0.00350189208984375, 0.00786590576171875, -0.027252197265625, -0.0027027130126953125, 0.00966644287109375, 0.0006470680236816406, 0.0128631591796875, 0.0157318115234375, -0.01922607421875, -0.0222625732421875, -0.0010528564453125, 0.023345947265625, -0.01263427734375, -0.00574493408203125, -0.0014362335205078125, -0.01097869873046875, 0.03509521484375, -0.00975799560546875, -0.029541015625, -0.010345458984375, -0.0182342529296875, 0.00041413307189941406, -0.052093505859375, -0.01482391357421875, -0.0215606689453125, -0.0209808349609375, 0.034271240234375, 0.061981201171875, 0.0011224746704101562, 0.04156494140625, 0.0106658935546875, 0.0278167724609375, -0.0032501220703125, -0.07513427734375, -0.0396728515625, -0.030853271484375, 0.059478759765625, 0.0056304931640625, -0.0179595947265625, -0.01253509521484375, -0.0167388916015625, -0.0008563995361328125, 0.01166534423828125, -0.0102386474609375, 0.005535125732421875, -0.00844573974609375, 0.0207977294921875, 0.082275390625, -0.005626678466796875, 0.039642333984375, 0.01419830322265625, -0.0024929046630859375, 0.02911376953125, 0.0251312255859375, -0.01128387451171875, -0.02130126953125, 0.024658203125, 0.005695343017578125, -0.01389312744140625, 0.0175628662109375, -0.011749267578125, 0.00928497314453125, 0.08367919921875, 0.06951904296875, -0.103515625, 0.0035533905029296875, 0.022613525390625, 0.0094451904296875, -0.0013294219970703125, 0.04620361328125, -0.0207977294921875, -0.018585205078125, -0.022552490234375, -0.058319091796875, -0.02520751953125, -0.01058197021484375, 0.0244140625, 0.0053558349609375, -0.00917816162109375, 0.04278564453125, -0.007049560546875, -0.024078369140625, -0.00437164306640625, 0.025360107421875, -0.00823211669921875, 0.01128387451171875, 0.017486572265625, 0.0236358642578125, -0.035614013671875, -0.049285888671875, -0.0018339157104492188, -0.0110931396484375, -0.05133056640625, -0.0340576171875, 0.0195159912109375, 0.03125, 0.0265960693359375, 0.01154327392578125, -0.047637939453125, 0.0211181640625, -0.030670166015625, 0.0430908203125, -0.0036334991455078125, 0.02215576171875, 0.0229034423828125, -0.01812744140625, 0.0024623870849609375, -0.00001633167266845703, -0.0018405914306640625, 0.00609588623046875, 0.0163421630859375, 0.039886474609375, -0.038238525390625, -0.00848388671875, 0.034820556640625, -0.006275177001953125, -0.002887725830078125, 0.0252838134765625, -0.0224151611328125, -0.03204345703125, -0.01425933837890625, 0.0017461776733398438, -0.0531005859375, 0.02117919921875, 0.0034923553466796875, -0.040618896484375, 0.056610107421875, 0.004192352294921875, 0.01438140869140625, 0.01450347900390625, 0.030181884765625, -0.0194854736328125, -0.0004227161407470703, -0.0445556640625, 0.040618896484375, 0.023193359375, 0.0570068359375, -0.05487060546875, -0.01227569580078125, 0.02313232421875, 0.045928955078125, 0.06842041015625, -0.00396728515625, -0.034149169921875, -0.0107879638671875, 0.04205322265625, 0.058135986328125, 0.008697509765625, 0.020843505859375, 0.02252197265625, 0.08477783203125, 0.05352783203125, -0.057281494140625, 0.02581787109375, -0.031341552734375, -0.00771331787109375, 0.040924072265625, 0.00923919677734375, 0.0074920654296875, 0.018798828125, 0.00018906593322753906, -0.04345703125, 0.01226043701171875, 0.034149169921875, -0.00933837890625, 0.006778717041015625, -0.0021514892578125, -0.0117034912109375, -0.006927490234375, -0.045135498046875, 0.00858306884765625, 0.0138092041015625, 0.0034351348876953125, 0.013763427734375, 0.06597900390625, 0.0223236083984375, 0.028167724609375, 0.01561737060546875, 0.0161285400390625, 0.00597381591796875, 0.006267547607421875, 0.08221435546875, 0.026397705078125, 0.03839111328125, -0.0531005859375, -0.024871826171875, 0.043212890625, 0.1004638671875, -0.044677734375, -0.0401611328125, 0.00331878662109375, -0.0189361572265625, 0.002170562744140625, -0.01273345947265625, -0.0176544189453125, 0.034088134765625, 0.05596923828125, -0.048828125, 0.034698486328125, 0.0673828125, -0.0007467269897460938, 0.004482269287109375, 0.0384521484375, -0.0648193359375, 0.035736083984375, -0.046875, -0.058929443359375, 0.0246734619140625, 0.08837890625, 0.055999755859375, 0.0284576416015625, -0.016876220703125, -0.05645751953125, -0.0220947265625, 0.031005859375, -0.00571441650390625, 0.048309326171875, -0.039520263671875, -0.0157012939453125, -0.0214996337890625, 0.042724609375, 0.01348876953125, -0.026519775390625, 0.029449462890625, -0.00958251953125, -0.05328369140625, -0.01348876953125, -0.0008502006530761719, -0.03155517578125, 0.04766845703125, -0.03680419921875, 0.0213165283203125, -0.01384735107421875, -0.015838623046875, -0.036376953125, -0.006786346435546875, 0.019073486328125, 0.009796142578125, -0.00109100341796875, 0.003643035888671875, -0.0438232421875, 0.0062255859375, -0.0165863037109375, 0.0784912109375, 0.0153656005859375, -0.016143798828125, -0.009979248046875, -0.037689208984375, -0.00305938720703125, 0.0250244140625, 0.0325927734375, 0.01168060302734375, 0.007244110107421875, 0.01258087158203125, -0.0032520294189453125, -0.003170013427734375, 0.01558685302734375, -0.0146484375, -0.053314208984375, 0.0260467529296875, -0.01947021484375, -0.0169677734375, -0.0006389617919921875, -0.0015773773193359375, 0.000010967254638671875, 0.0164642333984375, 0.058319091796875, -0.0042572021484375, 0.0119476318359375, 0.0230255126953125, 0.002796173095703125, 0.006557464599609375, 0.05316162109375, -0.045166015625, -0.016693115234375, 0.0129241943359375, -0.00836181640625, -0.001407623291015625, 0.039154052734375, 0.0309906005859375, -0.017303466796875, 0.008209228515625, 0.01430511474609375, 0.01242828369140625, -0.01163482666015625, 0.038848876953125, -0.0196685791015625, -0.0181427001953125, -0.0093536376953125, -0.000011801719665527344, 0.0245819091796875, 0.0131378173828125, -0.0316162109375, 0.0225067138671875, 0.025634765625, 0.004146575927734375, 0.0203399658203125, -0.0020580291748046875, 0.0165863037109375, 0.0239715576171875, 0.006267547607421875, 0.05645751953125, -0.002410888671875, -0.034332275390625, 0.0265960693359375, 0.002780914306640625, -0.0155029296875, -0.00794219970703125, -0.00799560546875, -0.0275726318359375, -0.034759521484375, 0.039794921875, 0.01198577880859375, 0.0136260986328125, -0.0457763671875, 0.01277923583984375, -0.0250091552734375, 0.01849365234375, -0.0201263427734375, -0.0023174285888671875, -0.033935546875, -0.01538848876953125, 0.00994873046875, -0.079833984375, -0.02655029296875, 0.01299285888671875, 0.006282806396484375, 0.003009796142578125, -0.0782470703125, 0.06597900390625, -0.03680419921875, 0.0245208740234375, -0.0455322265625, 0.018890380859375, 0.0008654594421386719, 0.0006022453308105469, -0.04388427734375, -0.00872039794921875, -0.034271240234375, 0.0107574462890625, 0.01690673828125, 0.035308837890625, 0.0543212890625, -0.043121337890625, -0.0277557373046875, 0.059417724609375, 0.045654296875, 0.089111328125, -0.032958984375, -0.0214080810546875, 0.03179931640625, 0.00580596923828125, -0.062164306640625, 0.0067901611328125, 0.0404052734375, -0.01334381103515625, -0.00238037109375, 0.005878448486328125, 0.01233673095703125, 0.0309600830078125, -0.0244293212890625, -0.08929443359375, 0.0888671875, -0.0311737060546875, -0.033203125, -0.0225830078125, -0.04217529296875, -0.007904052734375, 0.034820556640625, 0.0169219970703125, -0.0675048828125, -0.05010986328125, 0.00902557373046875, 0.03668212890625, 0.00460052490234375, 0.061553955078125, 0.003627777099609375, -0.06658935546875, -0.007472991943359375, -0.018524169921875, 0.046234130859375, -0.038787841796875, 0.00665283203125, 0.01446533203125, 0.0031986236572265625, -0.01004791259765625, 0.0352783203125, 0.0440673828125, 0.0031585693359375, -0.0246429443359375, 0.00809478759765625, -0.0408935546875, -0.029144287109375, 0.083984375, 0.038055419921875, 0.0262451171875, -0.0131072998046875, 0.0189056396484375, -0.00982666015625, -0.0246429443359375, -0.01666259765625, 0.020477294921875, -0.06207275390625, -0.030426025390625, 0.03350830078125, 0.01052093505859375, 0.01486968994140625, -0.06280517578125, 0.0019989013671875, -0.00814056396484375, 0.0120697021484375, 0.012420654296875, 0.0225067138671875, -0.0165252685546875, 0.0310516357421875, -0.0248565673828125, -0.014862060546875, 0.024810791015625, 0.016845703125, -0.009033203125, 0.024932861328125, 0.0022907257080078125, -0.00879669189453125, -0.01318359375, 0.01194000244140625, 0.00836181640625, 0.0166778564453125, -0.01338958740234375, -0.032745361328125, -0.040313720703125, 0.0546875, 0.024566650390625, 0.07000732421875, -0.00788116455078125, 0.0360107421875, 0.04693603515625, 0.00835418701171875, -0.020416259765625, -0.01067352294921875, 0.00170135498046875, -0.003162384033203125, 0.0113372802734375, 0.0201416015625, 0.044952392578125, -0.0306396484375, -0.01120758056640625, -0.03472900390625, -0.04046630859375, -0.0406494140625, -0.0095977783203125, -0.03271484375, -0.0235748291015625, 0.025848388671875 ]
b2b300d5822e7a7eb81e8a8b5957b7e93bbd5c24
Wordpress Stackexchange Q: Detect a focus on wp_editor I wan't to detect/callback when a wp_editor(..) output text-area/content-editable is focus. Quite a simple question that I could not find anywhere. <div class="compose-body"> <?php $content = ''; $editor_id = 'compose-editor'; wp_editor( $content, $editor_id, array( "wpautop" => true, "tabindex" => 1, "editor_height" => 400, "teeny" => true )); ?> </div> This should works, but because of iframe/delegation this make it difficult to select. e.g : $(".compose-body").on("click focus", "[data-id='compose-editor']", function(){ console.log("YEPP focus/clicked!"); }); EDIT ---- wp_editor() == tinyMCE and the only callbacks this has is FocusEvent and Editor.focus, but I had in do a nasty hack to make it work: setTimeout(function(){ var a = tinymce.editors[0].on("focus", function(){ console.log("YEPP!"); }); }, 300); This works but is a hack of a solution, any other way (using jQuery preferably) to create a selector for focus? A: You can pass an array of settings to the editor instance. For possible values please refer to the tinymce documentation, in your case 'init_instance_callback' might be helpful. https://www.tinymce.com/docs/configure/integration-and-setup/#init_instance_callback wp_editor('', 'sedemoeditor', array( 'tinymce' => array( 'init_instance_callback' => 'function(editor) { editor.on("focus", function(){ console.log("Editor: " + editor.id + " focus."); }); }' ) ));
Q: Detect a focus on wp_editor I wan't to detect/callback when a wp_editor(..) output text-area/content-editable is focus. Quite a simple question that I could not find anywhere. <div class="compose-body"> <?php $content = ''; $editor_id = 'compose-editor'; wp_editor( $content, $editor_id, array( "wpautop" => true, "tabindex" => 1, "editor_height" => 400, "teeny" => true )); ?> </div> This should works, but because of iframe/delegation this make it difficult to select. e.g : $(".compose-body").on("click focus", "[data-id='compose-editor']", function(){ console.log("YEPP focus/clicked!"); }); EDIT ---- wp_editor() == tinyMCE and the only callbacks this has is FocusEvent and Editor.focus, but I had in do a nasty hack to make it work: setTimeout(function(){ var a = tinymce.editors[0].on("focus", function(){ console.log("YEPP!"); }); }, 300); This works but is a hack of a solution, any other way (using jQuery preferably) to create a selector for focus? A: You can pass an array of settings to the editor instance. For possible values please refer to the tinymce documentation, in your case 'init_instance_callback' might be helpful. https://www.tinymce.com/docs/configure/integration-and-setup/#init_instance_callback wp_editor('', 'sedemoeditor', array( 'tinymce' => array( 'init_instance_callback' => 'function(editor) { editor.on("focus", function(){ console.log("Editor: " + editor.id + " focus."); }); }' ) ));
wordpress
{ "language": "en", "length": 187, "provenance": "stackexchange_00019.jsonl.gz:458435", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/199780" }
[ -0.00855255126953125, -0.01396942138671875, -0.0181427001953125, -0.0204315185546875, -0.01097869873046875, -0.01152801513671875, 0.007625579833984375, -0.004512786865234375, 0.055999755859375, 0.01605224609375, 0.00045418739318847656, 0.0010023117065429688, -0.00914764404296875, -0.03277587890625, -0.025726318359375, -0.0069732666015625, 0.006832122802734375, -0.01441192626953125, -0.0114288330078125, -0.0216064453125, 0.015960693359375, -0.0184783935546875, -0.0162506103515625, -0.01812744140625, 0.040496826171875, 0.0149993896484375, 0.0335693359375, -0.02197265625, 0.022003173828125, -0.01026153564453125, 0.02166748046875, -0.034027099609375, 0.01313018798828125, 0.05419921875, -0.05322265625, 0.040679931640625, -0.0193634033203125, 0.040618896484375, 0.0096588134765625, 0.0216827392578125, 0.0291900634765625, -0.034698486328125, -0.007476806640625, 0.052032470703125, -0.0219268798828125, -0.0572509765625, 0.0648193359375, -0.035980224609375, 0.004833221435546875, -0.0169525146484375, -0.005615234375, 0.035003662109375, 0.003665924072265625, -0.031768798828125, -0.0006704330444335938, 0.0272369384765625, -0.04412841796875, 0.0227813720703125, -0.0055084228515625, 0.07568359375, 0.0260009765625, 0.04364013671875, -0.033050537109375, -0.024078369140625, -0.005001068115234375, -0.0009093284606933594, -0.036102294921875, 0.0277099609375, 0.044647216796875, 0.01442718505859375, -0.0238037109375, -0.0014247894287109375, 0.0041046142578125, 0.006542205810546875, 0.0061798095703125, -0.03436279296875, 0.03765869140625, -0.00513458251953125, -0.01503753662109375, 0.033447265625, 0.0144195556640625, -0.01183319091796875, -0.0082244873046875, 0.0198516845703125, -0.003940582275390625, 0.0290374755859375, -0.004909515380859375, -0.01995849609375, -0.019012451171875, -0.04034423828125, -0.0222015380859375, -0.0024242401123046875, -0.011627197265625, -0.0049285888671875, -0.039764404296875, -0.01983642578125, 0.013763427734375, -0.01446533203125, 0.0333251953125, 0.003082275390625, 0.04840087890625, -0.05828857421875, 0.024383544921875, -0.0004062652587890625, 0.012969970703125, 0.03790283203125, -0.009246826171875, -0.0262451171875, 0.01006317138671875, 0.01511383056640625, -0.01284027099609375, -0.0107421875, 0.02178955078125, 0.01369476318359375, 0.00237274169921875, -0.040496826171875, -0.050201416015625, 0.044525146484375, -0.0259857177734375, 0.0084991455078125, 0.0028820037841796875, -0.006317138671875, 0.01361846923828125, 0.0253143310546875, -0.0144500732421875, -0.0235595703125, -0.0238189697265625, 0.0035266876220703125, 0.002227783203125, 0.0073089599609375, -0.027435302734375, 0.03131103515625, 0.040863037109375, 0.01360321044921875, -0.00537109375, -0.003681182861328125, 0.048858642578125, 0.034820556640625, 0.032073974609375, -0.02752685546875, 0.031402587890625, 0.006542205810546875, -0.0079803466796875, 0.0174102783203125, -0.01454925537109375, -0.0158538818359375, 0.0277252197265625, 0.035919189453125, -0.0242919921875, -0.0433349609375, 0.01230621337890625, 0.002246856689453125, 0.0276947021484375, 0.03564453125, -0.004039764404296875, -0.02288818359375, 0.047882080078125, -0.039215087890625, -0.0118408203125, -0.06854248046875, 0.057769775390625, -0.0037479400634765625, 0.0038242340087890625, -0.0260009765625, -0.042633056640625, -0.0214080810546875, -0.0589599609375, -0.027496337890625, 0.0224151611328125, 0.017425537109375, -0.0008645057678222656, 0.0006361007690429688, 0.006412506103515625, 0.0224761962890625, 0.01107025146484375, 0.01451873779296875, -0.00896453857421875, 0.04443359375, 0.014190673828125, 0.00887298583984375, 0.0112762451171875, -0.041656494140625, 0.046966552734375, 0.004276275634765625, -0.0258941650390625, 0.039794921875, 0.004756927490234375, 0.055145263671875, -0.00823974609375, 0.028594970703125, -0.0190582275390625, 0.028900146484375, 0.01261138916015625, -0.047454833984375, -0.019989013671875, 0.003322601318359375, -0.029022216796875, 0.00989532470703125, -0.020111083984375, 0.0236968994140625, 0.076904296875, -0.0102691650390625, 0.005237579345703125, -0.0401611328125, -0.09649658203125, -0.005588531494140625, -0.022552490234375, 0.033172607421875, 0.060699462890625, -0.01082611083984375, -0.0112457275390625, -0.0008058547973632812, 0.022216796875, -0.046600341796875, -0.066162109375, 0.04241943359375, -0.03271484375, 0.0023441314697265625, -0.017547607421875, 0.02691650390625, -0.033477783203125, -0.0002562999725341797, -0.031005859375, 0.00527191162109375, -0.0158233642578125, 0.0067138671875, -0.0222015380859375, 0.00299835205078125, -0.0084228515625, 0.00978851318359375, 0.032196044921875, 0.0005578994750976562, 0.01434326171875, 0.013824462890625, -0.0341796875, -0.0224609375, -0.026824951171875, -0.07098388671875, 0.006244659423828125, 0.0631103515625, 0.03839111328125, 0.0341796875, 0.0037822723388671875, 0.004150390625, 0.07806396484375, 0.00958251953125, 0.0196380615234375, -0.0162506103515625, 0.01506805419921875, 0.040283203125, -0.04534912109375, -0.0194091796875, 0.021392822265625, -0.06671142578125, 0.004150390625, 0.036712646484375, -0.021514892578125, 0.0262908935546875, 0.0271453857421875, -0.029266357421875, 0.003887176513671875, -0.0289764404296875, -0.00867462158203125, -0.0162353515625, 0.0228271484375, 0.021087646484375, 0.051544189453125, 0.04571533203125, -0.027984619140625, 0.00434112548828125, 0.0113067626953125, 0.0204925537109375, -0.006374359130859375, 0.03424072265625, 0.053802490234375, -0.0186767578125, -0.016265869140625, -0.00787353515625, 0.0035724639892578125, 0.027099609375, -0.04248046875, 0.0107574462890625, 0.002105712890625, -0.0288848876953125, -0.00391387939453125, -0.00936126708984375, 0.0136260986328125, -0.0587158203125, 0.0367431640625, -0.02423095703125, -0.0029964447021484375, -0.0017080307006835938, -0.03900146484375, 0.0596923828125, 0.03277587890625, -0.050628662109375, 0.03118896484375, -0.01044464111328125, 0.032257080078125, -0.03594970703125, 0.050567626953125, 0.04168701171875, -0.055633544921875, 0.029815673828125, 0.02838134765625, -0.0345458984375, 0.03509521484375, 0.044097900390625, 0.02960205078125, 0.035308837890625, -0.084716796875, -0.002437591552734375, 0.011810302734375, 0.0361328125, -0.03228759765625, -0.06561279296875, -0.02734375, 0.00652313232421875, -0.051727294921875, -0.002655029296875, 0.03558349609375, -0.10662841796875, 0.002948760986328125, -0.04400634765625, -0.07476806640625, -0.01375579833984375, 0.01548004150390625, 0.0021953582763671875, -0.042877197265625, 0.01007080078125, -0.043212890625, -0.032379150390625, -0.0242919921875, 0.0284423828125, -0.0302581787109375, 0.0018281936645507812, 0.02642822265625, 0.0218963623046875, 0.0249176025390625, 0.01031494140625, 0.044830322265625, -0.02496337890625, -0.020843505859375, 0.01041412353515625, -0.0197296142578125, -0.020782470703125, -0.01201629638671875, -0.00203704833984375, -0.0211334228515625, -0.0005693435668945312, 0.01013946533203125, -0.0052490234375, -0.0008225440979003906, 0.02783203125, 0.033355712890625, 0.0657958984375, -0.006988525390625, 0.0254974365234375, 0.06890869140625, -0.01922607421875, 0.0089111328125, 0.0308380126953125, -0.0001901388168334961, -0.02667236328125, -0.01043701171875, -0.0297088623046875, -0.00658416748046875, 0.025299072265625, 0.036376953125, 0.05511474609375, 0.013153076171875, 0.0155487060546875, 0.059783935546875, -0.01233673095703125, -0.00597381591796875, -0.05438232421875, 0.0094451904296875, -0.00273895263671875, -0.0400390625, -0.00962066650390625, 0.0148162841796875, -0.02850341796875, 0.026885986328125, -0.04541015625, 0.0202484130859375, 0.040985107421875, 0.0103302001953125, 0.0183563232421875, -0.0042877197265625, -0.0269927978515625, -0.004482269287109375, 0.05023193359375, -0.035736083984375, 0.0049285888671875, 0.0085296630859375, 0.011383056640625, -0.0142364501953125, -0.036376953125, -0.061859130859375, -0.0140838623046875, -0.0634765625, 0.042755126953125, 0.006626129150390625, -0.01517486572265625, -0.043304443359375, 0.01369476318359375, -0.050384521484375, -0.039764404296875, 0.0014295578002929688, -0.03179931640625, -0.01432037353515625, 0.0157012939453125, -0.031341552734375, -0.00151824951171875, 0.017913818359375, -0.05584716796875, -0.08172607421875, -0.006244659423828125, -0.02545166015625, 0.032379150390625, -0.0027256011962890625, -0.00238037109375, -0.0021209716796875, 0.047760009765625, 0.019378662109375, 0.01145172119140625, 0.02996826171875, 0.0186004638671875, 0.00812530517578125, -0.034759521484375, 0.0025501251220703125, -0.042449951171875, 0.0178680419921875, 0.015472412109375, -0.0516357421875, 0.005634307861328125, -0.03564453125, -0.01226043701171875, 0.022674560546875, -0.053558349609375, -0.02960205078125, -0.037109375, -0.044952392578125, 0.0190277099609375, -0.034332275390625, 0.01409149169921875, -0.035858154296875, -0.050140380859375, 0.007030487060546875, -0.06396484375, -0.0069580078125, -0.0083770751953125, 0.047637939453125, 0.03594970703125, 0.01476287841796875, 0.110107421875, -0.0152740478515625, 0.0276641845703125, 0.042205810546875, -0.006153106689453125, -0.024383544921875, -0.0257110595703125, 0.038787841796875, 0.01934814453125, 0.005344390869140625, -0.04205322265625, 0.032867431640625, 0.0177459716796875, 0.0132293701171875, -0.0159149169921875, 0.0024242401123046875, 0.03277587890625, -0.0195770263671875, -0.0418701171875, 0.0296478271484375, 0.00405120849609375, -0.002178192138671875, -0.05316162109375, 0.0704345703125, 0.00823974609375, -0.0265350341796875, -0.00385284423828125, 0.0362548828125, 0.076904296875, 0.028472900390625, -0.006092071533203125, 0.031524658203125, 0.03741455078125, -0.00257110595703125, 0.0265655517578125, 0.03887939453125, 0.01087188720703125, 0.041748046875, 0.040435791015625, 0.0040435791015625, -0.031341552734375, -0.0001569986343383789, 0.0077056884765625, 0.016357421875, 0.0006384849548339844, -0.0341796875, -0.003631591796875, 0.003314971923828125, -0.0196533203125, -0.021514892578125, 0.0256195068359375, 0.047943115234375, -0.04180908203125, 0.0186004638671875, 0.031829833984375, -0.0245819091796875, -0.03741455078125, -0.034027099609375, -0.0264129638671875, -0.00009268522262573242, -0.003997802734375, 0.0325927734375, -0.018646240234375, 0.0023593902587890625, -0.0050201416015625, 0.01062774658203125, 0.004543304443359375, 0.0241851806640625, 0.036651611328125, -0.012603759765625, 0.0067596435546875, -0.0030059814453125, 0.0063323974609375, -0.0189361572265625, -0.0031147003173828125, 0.030517578125, 0.0033130645751953125, -0.005687713623046875, 0.0020084381103515625, 0.017120361328125, 0.010589599609375, -0.01264190673828125, -0.02691650390625, -0.037353515625, -0.0172882080078125, 0.0133056640625, 0.0252532958984375, -0.002979278564453125, 0.006343841552734375, -0.01116943359375, -0.0240478515625, -0.0147857666015625, 0.003269195556640625, -0.026611328125, -0.058349609375, 0.046356201171875, 0.0350341796875, -0.0024127960205078125, 0.01288604736328125, 0.004985809326171875, -0.10406494140625, -0.058319091796875, -0.00269317626953125, 0.021881103515625, 0.07122802734375, -0.016754150390625, 0.0174102783203125, -0.0168914794921875, 0.006076812744140625, -0.11126708984375, 0.0180511474609375, -0.0232086181640625, -0.00615692138671875, 0.028839111328125, -0.0200347900390625, -0.054107666015625, -0.03546142578125, -0.03271484375, -0.023651123046875, -0.0215606689453125, 0.004032135009765625, 0.03326416015625, 0.019500732421875, 0.017608642578125, -0.015960693359375, 0.01490020751953125, 0.0265350341796875, 0.01629638671875, 0.048187255859375, 0.0125274658203125, 0.040283203125, -0.034271240234375, 0.06927490234375, 0.00812530517578125, -0.0111236572265625, -0.01708984375, -0.0225067138671875, 0.0027217864990234375, -0.049896240234375, 0.036712646484375, -0.024993896484375, 0.004764556884765625, -0.025787353515625, 0.007122039794921875, 0.006511688232421875, 0.0259552001953125, -0.0189666748046875, 0.006999969482421875, -0.026397705078125, 0.0008344650268554688, -0.050537109375, -0.0169219970703125, -0.00876617431640625, -0.0533447265625, 0.00289154052734375, -0.0025730133056640625, -0.0195465087890625, 0.060089111328125, -0.039337158203125, 0.0262451171875, 0.063720703125, -0.007518768310546875, 0.038116455078125, 0.04437255859375, -0.018524169921875, 0.0286407470703125, 0.0169677734375, -0.01215362548828125, 0.01024627685546875, 0.046478271484375, -0.059722900390625, -0.052215576171875, 0.039337158203125, 0.027099609375, -0.00787353515625, 0.053619384765625, -0.0208892822265625, 0.00958251953125, -0.0015878677368164062, 0.07275390625, -0.02703857421875, 0.01238250732421875, 0.0509033203125, -0.02490234375, -0.0217742919921875, -0.034576416015625, -0.0233612060546875, -0.055389404296875, 0.11279296875, -0.0142669677734375, -0.0121612548828125, 0.046905517578125, -0.0155181884765625, 0.0023136138916015625, 0.004375457763671875, 0.021148681640625, 0.01371002197265625, -0.015625, 0.004802703857421875, 0.0016841888427734375, 0.045135498046875, -0.004825592041015625, 0.058563232421875, -0.035247802734375, 0.0028820037841796875, -0.0155181884765625, 4.76837158203125e-7, 0.00579833984375, -0.039581298828125, 0.0145111083984375, -0.032623291015625, -0.0182342529296875, 0.044403076171875, -0.042449951171875, 0.038848876953125, 0.01282501220703125, -0.037384033203125, -0.00720977783203125, -0.0038318634033203125, 0.01824951171875, -0.006763458251953125, -0.029510498046875, 0.00716400146484375, -0.035186767578125, 0.01280975341796875, 0.02020263671875, 0.033966064453125, -0.00399017333984375, -0.01934814453125, -0.01103973388671875, 0.04376220703125, -0.0137786865234375, -0.00872802734375, -0.03216552734375, -0.038848876953125, -0.068115234375, -0.0221710205078125, -0.0633544921875, -0.055877685546875, 0.042510986328125, -0.062744140625, -0.05108642578125, 0.1007080078125, -0.013824462890625, 0.0023040771484375, -0.005718231201171875, 0.04541015625, -0.033233642578125, 0.0152740478515625, -0.052978515625, 0.037109375, -0.005828857421875, 0.0198516845703125, -0.0318603515625, 0.01409912109375, -0.00882720947265625, -0.000009953975677490234, 0.031890869140625, -0.004192352294921875, 0.01403045654296875, 0.0030364990234375, 0.0623779296875, 0.032257080078125, -0.0159759521484375, 0.0034656524658203125, 0.0012006759643554688, -0.02093505859375, 0.037445068359375, -0.01448822021484375, 0.026336669921875, -0.034912109375, 0.014892578125, 0.001804351806640625, 0.013458251953125, 0.016448974609375, 0.037445068359375, -0.0176849365234375, -0.006237030029296875, 0.01161956787109375, 0.0135345458984375, -0.037384033203125, -0.054046630859375, 0.062103271484375, 0.0229034423828125, -0.06903076171875, -0.06646728515625, -0.055084228515625, 0.033721923828125, 0.005519866943359375, -0.04583740234375, -0.0183563232421875, -0.0023441314697265625, -0.038970947265625, -0.0036296844482421875, -0.04034423828125, 0.0538330078125, -0.00293731689453125, 0.012969970703125, -0.01983642578125, 0.020751953125, -0.048431396484375, -0.01494598388671875, 0.012481689453125, 0.0126495361328125, -0.00954437255859375, -0.050872802734375, 0.0160064697265625, 0.020477294921875, -0.00933074951171875, 0.00775146484375, -0.0008168220520019531, -0.0235443115234375, 0.055145263671875, 0.01529693603515625, -0.025970458984375, -0.0168914794921875, 0.005504608154296875, 0.01922607421875, 0.058563232421875, 0.0048828125, -0.0202789306640625, -0.05889892578125, 0.0208282470703125, 0.0166778564453125, 0.03668212890625, 0.01360321044921875, 0.0684814453125, 0.051666259765625, -0.0253448486328125, -0.0198822021484375, -0.003078460693359375, 0.0340576171875, 0.01316070556640625, 0.007785797119140625, 0.052459716796875, 0.0281829833984375, 0.004993438720703125, 0.025543212890625, 0.01375579833984375, 0.0189208984375, 0.0039215087890625, -0.0007476806640625, 0.010589599609375, 0.0015726089477539062, -0.0166473388671875, -0.0217742919921875, -0.040679931640625, -0.00328826904296875, 0.014251708984375, 0.002597808837890625, 0.02838134765625, 0.019317626953125, 0.017974853515625, -0.04107666015625, 0.01338958740234375, 0.000400543212890625, -0.0211029052734375, 0.01230621337890625, -0.0085906982421875, 0.0261383056640625, -0.008880615234375, -0.06683349609375, -0.0271453857421875, 0.017852783203125, -0.04571533203125, 0.036102294921875, 0.0579833984375, -0.0227813720703125, 0.00411224365234375, -0.0263671875, -0.0125579833984375, 0.006877899169921875, -0.01390838623046875, -0.0032196044921875, 0.01898193359375, 0.0137176513671875, -0.013214111328125, 0.0311737060546875, 0.004901885986328125, 0.05328369140625, 0.007305145263671875, 0.02752685546875, -0.0031147003173828125, 0.017059326171875, 0.01226043701171875, 0.0016422271728515625, 0.02581787109375, -0.00800323486328125, -0.0182647705078125, 0.046905517578125, 0.0005183219909667969, 0.01361846923828125, -0.02044677734375, -0.08428955078125, 0.06201171875, -0.00939178466796875, 0.021087646484375, 0.046783447265625, -0.0143280029296875, 0.001163482666015625, 0.0245208740234375, 0.0035953521728515625, -0.035369873046875, 0.0137786865234375, -0.035247802734375, -0.05242919921875, 0.047607421875, -0.0182952880859375, 0.033203125, 0.005466461181640625, -0.0296783447265625, -0.027496337890625, -0.008087158203125, 0.003337860107421875, -0.040313720703125, 0.0120086669921875, 0.022918701171875, -0.0027370452880859375, 0.00855255126953125, -0.00775146484375, -0.00666046142578125, 0.025146484375, -0.0181884765625, 0.0196685791015625, -0.0251617431640625, 0.06610107421875, 0.022186279296875, 0.0626220703125, -0.037200927734375, 0.01406097412109375, 0.025848388671875, 0.0267486572265625, 0.0110015869140625, -0.056060791015625, -0.040252685546875, -0.06103515625, 0.0222320556640625, 0.026824951171875, 0.00038623809814453125, -0.040283203125, -0.019500732421875, -0.01459503173828125, 0.0189208984375, 0.0074005126953125, -0.034698486328125, 0.0222320556640625, -0.0261077880859375, 0.0272674560546875, 0.006626129150390625, 0.054473876953125, -0.01715087890625, -0.005889892578125, -0.051544189453125, -0.0073394775390625, -0.037689208984375, 0.019439697265625, -0.01654052734375, 0.032012939453125, 0.07403564453125, -0.0274200439453125, -0.034393310546875, 0.0157623291015625, 0.00809478759765625, 0.053741455078125, -0.061248779296875, -0.0201416015625, 0.058837890625, -0.0209503173828125, -0.0250244140625, -0.03802490234375, -0.0230712890625, -0.0024433135986328125, 0.01497650146484375, 0.01490020751953125, -0.01134490966796875, -0.017364501953125, -0.06768798828125, -0.1077880859375, 0.00836181640625, 0.00992584228515625, -0.046844482421875, -0.05364990234375, -0.0175018310546875, 0.0011434555053710938, 0.007389068603515625, -0.0330810546875, 0.0097503662109375, -0.0255584716796875, 0.0450439453125, 0.005008697509765625, 0.007381439208984375, 0.072998046875, -0.0372314453125, -0.01244354248046875, -0.0212249755859375, -0.0279388427734375, -0.015777587890625, 0.0175018310546875, 0.02117919921875, 0.01183319091796875, 0.0489501953125, -0.00617218017578125, -0.0711669921875, -0.03326416015625, -0.057708740234375, -0.005542755126953125, -0.04913330078125, -0.043792724609375, -0.003528594970703125, 0.10302734375, 0.054473876953125, 0.0181732177734375, -0.0440673828125, -0.00455474853515625, -0.01178741455078125, -0.045501708984375, -0.0172576904296875, 0.023681640625, -0.054229736328125, -0.0047454833984375, -0.0037555694580078125, -0.006923675537109375, -0.0138702392578125, -0.024932861328125, -0.029998779296875, -0.00623321533203125, -0.00959014892578125, 0.0007791519165039062, -0.00601959228515625, -0.0108795166015625, 0.05023193359375, -0.042449951171875, -0.03741455078125, 0.040283203125, 0.015899658203125, 0.0026531219482421875, 0.043975830078125, 0.0032215118408203125, 0.0022125244140625, -0.0135650634765625, 0.0026645660400390625, 0.005001068115234375, 0.031585693359375, -0.02178955078125, -0.0222015380859375, 0.005779266357421875, 0.0005297660827636719, -0.0239715576171875, -0.005382537841796875, 0.026123046875, -0.01160430908203125, -0.01433563232421875, 0.0189971923828125, -0.0194091796875, 0.0238037109375, -0.00824737548828125, 0.01145172119140625, 0.0009598731994628906, 0.004795074462890625, 0.02105712890625, -0.0048828125, 0.017059326171875, 0.00682830810546875, 0.0184326171875, -0.01244354248046875, 0.01806640625, 0.049835205078125, -0.0161590576171875, 0.0101318359375 ]
b9a1277ca0462da83712499ac6ae3998eda8258c
Wordpress Stackexchange Q: Activate a plugin through PHPMyAdmin or FTP? I've just disabled a plugin on my site and it's now giving me the dreaded white screen of death. I know the site will be fine if I reactivate the plugin. Is there a way to manually activate a plugin through PHPMyAdmin or over FTP? A: Just another answer for a different approach that could benefit someone else in the future. You could also move the plugin folder to the Must Use folder (which you will probably need to create if not used before. This path is usually: wp-content/mu-plugins Plugins in this folder will always run. Refer to the following for more info: https://codex.wordpress.org/Must_Use_Plugins Note: The only thing to consider is that these plugins are loaded before others in the plugins folder. Also refer to the caveats in the above link as there may be other issues that could prevent your plugin working correctly.
Q: Activate a plugin through PHPMyAdmin or FTP? I've just disabled a plugin on my site and it's now giving me the dreaded white screen of death. I know the site will be fine if I reactivate the plugin. Is there a way to manually activate a plugin through PHPMyAdmin or over FTP? A: Just another answer for a different approach that could benefit someone else in the future. You could also move the plugin folder to the Must Use folder (which you will probably need to create if not used before. This path is usually: wp-content/mu-plugins Plugins in this folder will always run. Refer to the following for more info: https://codex.wordpress.org/Must_Use_Plugins Note: The only thing to consider is that these plugins are loaded before others in the plugins folder. Also refer to the caveats in the above link as there may be other issues that could prevent your plugin working correctly. A: I fixed this by going through PHPMyAdmin to the table "Options" and then the row active_plugins. I had the following stored there (formatted for readability): a:10:{ i:0;s:49:"1and1-wordpress-wizard/1and1-wordpress-wizard.php"; i:1;s:29:"acf-repeater/acf-repeater.php"; i:2;s:30:"advanced-custom-fields/acf.php"; i:3;s:45:"limit-login-attempts/limit-login-attempts.php"; i:4;s:27:"redirection/redirection.php"; i:6;s:33:"w3-total-cache/w3-total-cache.php"; i:7;s:41:"wordpress-importer/wordpress-importer.php"; i:8;s:24:"wordpress-seo/wp-seo.php"; i:9;s:34:"wpml-string-translation/plugin.php"; i:10;s:38:"wpml-translation-management/plugin.php"; } I added a new line (for the missing plugin) and incremented the a:10 to a:11 to indicate that there are now 11 items in the array: a:11:{ i:0;s:49:"1and1-wordpress-wizard/1and1-wordpress-wizard.php"; i:1;s:29:"acf-repeater/acf-repeater.php"; i:2;s:30:"advanced-custom-fields/acf.php"; i:3;s:45:"limit-login-attempts/limit-login-attempts.php"; i:4;s:27:"redirection/redirection.php"; i:5;s:40:"sitepress-multilingual-cms/sitepress.php"; i:6;s:33:"w3-total-cache/w3-total-cache.php"; i:7;s:41:"wordpress-importer/wordpress-importer.php"; i:8;s:24:"wordpress-seo/wp-seo.php"; i:9;s:34:"wpml-string-translation/plugin.php"; i:10;s:38:"wpml-translation-management/plugin.php"; } i: appears to be item number, and thanks to JHoffmann's comment, it appears s: is the length of the string that follows. The site now works as before! A: You can simply rename the plugin folder, for example: "_aksimet" to deactive it and than back to "aksimet" to activate it again (if was active) you can do that with all "plugins" folder together. Otherwise, go to MySQL and have a look at this step by step manual, in short: * *MYSQL > wp_options *search for active_plugins entry (both steps can be done by SELECT * FROM wp_options WHERE option_name = 'active_plugins';) *and than write your plugin there as the other plugins are written (i is index, s is for the length of string). Hope it helps A: //Using this code you can activate your plugin from the functions.php function activate_plugin_via_php() { $active_plugins = get_option( 'active_plugins' ); array_push($active_plugins, 'unyson/unyson.php'); /* Here just replace unyson plugin directory and plugin file*/ update_option( 'active_plugins', $active_plugins ); } add_action( 'init', 'activate_plugin_via_php' );
wordpress
{ "language": "en", "length": 396, "provenance": "stackexchange_00019.jsonl.gz:458442", "question_score": "24", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/199798" }
[ 0.07330322265625, 0.029388427734375, -0.0007710456848144531, -0.03924560546875, 0.036285400390625, -0.0247650146484375, 0.044586181640625, -0.024505615234375, 0.019927978515625, 0.01320648193359375, -0.046844482421875, -0.002109527587890625, 0.0196380615234375, -0.0252532958984375, 0.0006012916564941406, -0.0249176025390625, 0.01305389404296875, 0.0095672607421875, 0.0124359130859375, -0.00977325439453125, 0.01346588134765625, 0.0186004638671875, 0.01137542724609375, -0.0037174224853515625, 0.01544189453125, 0.0036144256591796875, 0.0948486328125, -0.0283660888671875, 0.0143280029296875, -0.036285400390625, 0.0271148681640625, -0.02508544921875, 0.0004515647888183594, 0.024383544921875, -0.0036182403564453125, -0.029449462890625, 0.0105743408203125, 0.0043182373046875, 0.00547027587890625, 0.02203369140625, 0.053955078125, -0.0164947509765625, -0.0099945068359375, 0.046661376953125, -0.00298309326171875, -0.059783935546875, 0.0626220703125, -0.0325927734375, 0.01523590087890625, 0.0022411346435546875, -0.022369384765625, 0.00768280029296875, -0.00989532470703125, -0.021148681640625, -0.0089874267578125, -0.0345458984375, -0.050506591796875, 0.049468994140625, -0.017486572265625, 0.037139892578125, 0.027801513671875, 0.0567626953125, -0.0110015869140625, 0.0164031982421875, 0.0252532958984375, -0.015960693359375, -0.04071044921875, 0.03253173828125, -0.04443359375, 0.038970947265625, 0.05078125, -0.051025390625, 0.01214599609375, -0.0226593017578125, -0.0010118484497070312, -0.01473236083984375, 0.0214080810546875, -0.00832366943359375, 0.0007767677307128906, 0.0020999908447265625, 0.06768798828125, 0.034027099609375, 0.0187835693359375, -0.032318115234375, 0.0132598876953125, -0.007633209228515625, 0.004329681396484375, -0.029541015625, -0.021270751953125, -0.0238037109375, -0.0264434814453125, -0.00489044189453125, -0.0151824951171875, 0.00516510009765625, -0.03515625, 0.00046563148498535156, 0.044036865234375, 0.023284912109375, -0.0117034912109375, -0.0280303955078125, 0.035491943359375, -0.06439208984375, 0.0426025390625, -0.01055145263671875, -0.040679931640625, 0.056304931640625, 0.025848388671875, 0.03558349609375, -0.009124755859375, 0.00922393798828125, 0.012725830078125, -0.05322265625, -0.004261016845703125, -0.018096923828125, 0.0081787109375, 0.01300048828125, -0.0295562744140625, 0.037628173828125, 0.01354217529296875, 0.0162353515625, -0.01165771484375, 0.0205841064453125, -0.0255584716796875, -0.01338958740234375, -0.0243072509765625, -0.035614013671875, -0.005184173583984375, 0.001434326171875, -0.00774383544921875, -0.004070281982421875, -0.028106689453125, 0.0289154052734375, 0.072509765625, 0.0176239013671875, -0.00412750244140625, 0.00841522216796875, 0.0012664794921875, 0.04876708984375, 0.049530029296875, -0.019500732421875, 0.015777587890625, -0.03173828125, 0.032470703125, 0.0295562744140625, -0.003192901611328125, 0.03558349609375, 0.0152740478515625, 0.0012912750244140625, -0.002178192138671875, -0.0293121337890625, 0.01082611083984375, -0.034332275390625, 0.001514434814453125, 0.00909423828125, 0.037933349609375, 0.0007882118225097656, 0.07196044921875, -0.0261383056640625, -0.0172576904296875, -0.0247802734375, 0.032684326171875, 0.01413726806640625, -0.014190673828125, -0.054840087890625, -0.053131103515625, -0.036956787109375, -0.0259857177734375, 0.002422332763671875, 0.00940704345703125, 0.00707244873046875, -0.030181884765625, 0.0024471282958984375, 0.038055419921875, -0.005428314208984375, -0.004970550537109375, 0.033782958984375, 0.0013914108276367188, 0.041229248046875, 0.03778076171875, -0.01079559326171875, -0.0217132568359375, -0.020599365234375, 0.1136474609375, -0.0377197265625, -0.026580810546875, 0.00655364990234375, 0.0017452239990234375, 0.00949859619140625, 0.0085601806640625, 0.0156707763671875, 0.01418304443359375, 0.02093505859375, -0.065673828125, 0.0307159423828125, 0.01529693603515625, -0.02667236328125, 0.00467681884765625, -0.00911712646484375, 0.013092041015625, -0.0234832763671875, 0.0260467529296875, -0.0188140869140625, -0.0123748779296875, -0.0279083251953125, -0.0799560546875, -0.0413818359375, -0.0227203369140625, 0.020751953125, 0.05230712890625, 0.0311126708984375, -0.035186767578125, -0.01922607421875, 0.036651611328125, -0.0533447265625, -0.05474853515625, -0.01593017578125, -0.03887939453125, 0.0543212890625, 0.003662109375, 0.035430908203125, 0.01354217529296875, -0.033782958984375, 0.025146484375, -0.029876708984375, -0.03985595703125, -0.0008702278137207031, -0.01531982421875, -0.00146484375, -0.05316162109375, -0.0033931732177734375, 0.045440673828125, 0.0260162353515625, -0.023040771484375, -0.008758544921875, -0.0180511474609375, 0.00580596923828125, -0.01361083984375, -0.06280517578125, 0.01265716552734375, 0.04864501953125, 0.0504150390625, 0.012786865234375, 0.01702880859375, 0.00911712646484375, 0.01251983642578125, -0.07928466796875, 0.011322021484375, -0.00862884521484375, 0.0250701904296875, -0.004833221435546875, -0.052154541015625, -0.0277099609375, 0.072265625, 0.042724609375, 0.0153045654296875, 0.043365478515625, -0.00812530517578125, -0.0142669677734375, 0.0175323486328125, -0.027496337890625, 0.01314544677734375, -0.028076171875, -0.027435302734375, -0.00811767578125, -0.01395416259765625, 0.033111572265625, 0.0265045166015625, 0.037567138671875, 0.00096893310546875, 0.00818634033203125, 0.01415252685546875, -0.0232391357421875, -0.00867462158203125, 0.0546875, 0.046630859375, -0.0252685546875, -0.01898193359375, -0.03466796875, -0.01416015625, 0.02978515625, -0.041229248046875, -0.056793212890625, -0.0204620361328125, -0.0162811279296875, 0.005496978759765625, -0.108154296875, 0.02557373046875, 0.01617431640625, -0.048553466796875, -0.0272979736328125, 0.01617431640625, 0.002925872802734375, -0.042755126953125, 0.016143798828125, -0.007732391357421875, -0.02325439453125, 0.04290771484375, -0.044830322265625, 0.037322998046875, -0.059234619140625, 0.047149658203125, 0.04632568359375, -0.029632568359375, -0.00431060791015625, 0.0083770751953125, -0.009552001953125, 0.0299224853515625, -0.011016845703125, -0.01812744140625, 0.0207366943359375, -0.0662841796875, 0.0019483566284179688, 0.01444244384765625, 0.03411865234375, -0.04937744140625, -0.0804443359375, -0.04412841796875, -0.007106781005859375, -0.1173095703125, -0.064453125, -0.0240631103515625, -0.0287017822265625, 0.05694580078125, 0.001789093017578125, -0.01153564453125, -0.0364990234375, 0.028076171875, 0.035400390625, -0.0198516845703125, -0.031982421875, -0.034088134765625, -0.05718994140625, -0.052276611328125, -0.0007495880126953125, 0.0009474754333496094, 0.0001786947250366211, 0.001861572265625, 0.045135498046875, -0.01104736328125, -0.051605224609375, -0.031280517578125, -0.02301025390625, -0.01568603515625, -0.01337432861328125, 0.004993438720703125, 0.0030956268310546875, -0.01385498046875, 0.0167999267578125, 0.0160675048828125, 0.0150604248046875, -0.017974853515625, -0.033721923828125, 0.0167236328125, 0.003509521484375, -0.0130767822265625, 0.007411956787109375, 0.0003972053527832031, -0.048980712890625, -0.047943115234375, -0.07305908203125, 0.004192352294921875, -0.0176849365234375, -0.0338134765625, -0.016693115234375, -0.018157958984375, 0.00910186767578125, 0.004913330078125, -0.01465606689453125, 0.0087127685546875, -0.0025234222412109375, 0.01467132568359375, -0.011322021484375, -0.01496124267578125, -0.013214111328125, -0.004863739013671875, -0.01812744140625, 0.0443115234375, 0.002040863037109375, -0.039886474609375, -0.0030422210693359375, -0.003665924072265625, -0.0338134765625, 0.01152801513671875, -0.070556640625, 0.0163116455078125, -0.0185546875, -0.08831787109375, 0.012054443359375, -0.0204925537109375, 0.03228759765625, -0.00739288330078125, 0.03460693359375, -0.050506591796875, -0.01593017578125, -0.00836944580078125, 0.006534576416015625, -0.03515625, -0.0071258544921875, -0.035125732421875, -0.0017833709716796875, -0.074951171875, -0.0196380615234375, -0.00012362003326416016, -0.0704345703125, 0.0240020751953125, -0.0546875, -0.05169677734375, -0.036529541015625, 0.016357421875, -0.0022220611572265625, -0.01033782958984375, 0.027984619140625, -0.036895751953125, 0.01885986328125, -0.01131439208984375, -0.0187530517578125, -0.04644775390625, 0.0083465576171875, -0.041473388671875, 0.0308074951171875, 0.0311279296875, -0.0143280029296875, 0.00472259521484375, 0.017669677734375, 0.0037441253662109375, 0.044525146484375, 0.0082550048828125, 0.01474761962890625, 0.013214111328125, -0.024871826171875, 0.037261962890625, -0.0220184326171875, 0.001056671142578125, -0.02978515625, -0.0186614990234375, 0.02154541015625, -0.00670623779296875, 0.045989990234375, 0.021697998046875, -0.01018524169921875, 0.004688262939453125, -0.0217742919921875, -0.062103271484375, -0.0156402587890625, -0.03204345703125, -0.0234375, -0.01468658447265625, 0.0102691650390625, 0.014373779296875, -0.049102783203125, 0.007289886474609375, 0.009674072265625, 0.0697021484375, 0.0294189453125, 0.0013208389282226562, 0.0190277099609375, 0.006687164306640625, 0.032562255859375, 0.06500244140625, 0.00717926025390625, -0.0035114288330078125, -0.026947021484375, 0.01142120361328125, 0.033905029296875, -0.013824462890625, -0.043304443359375, 0.104736328125, -0.01026153564453125, -0.03045654296875, 0.0382080078125, -0.042755126953125, 0.010894775390625, 0.0343017578125, 0.007640838623046875, -0.02374267578125, 0.00325775146484375, 0.0217132568359375, 0.01314544677734375, -0.0181121826171875, -0.0193939208984375, -0.05743408203125, 0.03143310546875, -0.024566650390625, 0.015869140625, 0.01209259033203125, -0.00829315185546875, 0.0278472900390625, -0.0169830322265625, -0.0167388916015625, 0.021942138671875, 0.0362548828125, 0.0016279220581054688, 0.0362548828125, -0.003780364990234375, -0.025482177734375, -0.011444091796875, -0.003406524658203125, 0.054595947265625, -0.0197601318359375, -0.028411865234375, -0.0567626953125, -0.0128326416015625, 0.00044655799865722656, 0.03192138671875, -0.0080718994140625, 0.039642333984375, 0.0234832763671875, -0.0265045166015625, 0.00824737548828125, 0.00667572021484375, -0.0233612060546875, -0.045928955078125, -0.0037841796875, 0.0022373199462890625, -0.0146331787109375, -0.0205841064453125, 0.09356689453125, 0.01284027099609375, 0.020355224609375, -0.0130462646484375, -0.00823974609375, 0.0093841552734375, 0.024505615234375, 0.014862060546875, -0.003753662109375, -0.01445770263671875, -0.0017118453979492188, 0.018463134765625, -0.036529541015625, -0.036468505859375, -0.0251617431640625, 0.037750244140625, -0.006011962890625, 0.0216522216796875, 0.040557861328125, 0.01183319091796875, -0.038665771484375, 0.024658203125, 0.00955963134765625, -0.043182373046875, -0.0211181640625, 0.00821685791015625, 0.00890350341796875, -0.00911712646484375, -0.01471710205078125, 0.02606201171875, -0.0263214111328125, -0.0013437271118164062, 0.01006317138671875, -0.0540771484375, 0.01152801513671875, 0.03363037109375, 0.04229736328125, 0.00542449951171875, -0.0271453857421875, -0.007427215576171875, 0.0013608932495117188, -0.0211334228515625, -0.00473785400390625, 0.07232666015625, -0.0108795166015625, 0.0213470458984375, -0.006122589111328125, -0.018463134765625, 0.017974853515625, 0.01540374755859375, 0.0165557861328125, -0.0139007568359375, -0.06793212890625, 0.0109710693359375, -0.0235595703125, -0.0271759033203125, -0.03179931640625, -0.03399658203125, -0.05535888671875, -0.0081024169921875, -0.01392364501953125, 0.005268096923828125, -0.04296875, -0.0290679931640625, -0.01666259765625, 0.026885986328125, 0.0114288330078125, 0.0220489501953125, -0.005924224853515625, 0.01324462890625, 0.014129638671875, 0.0261383056640625, 0.006656646728515625, -0.00383758544921875, -0.005893707275390625, -0.0207977294921875, 0.0034046173095703125, -0.0122528076171875, -0.01690673828125, -0.00942230224609375, 0.00438690185546875, -0.0022716522216796875, 0.0245513916015625, -0.01088714599609375, -0.00982666015625, 0.01348114013671875, 0.0113525390625, -0.0162811279296875, 0.0433349609375, 0.0244903564453125, 0.014190673828125, 0.014190673828125, -0.06610107421875, -0.006771087646484375, 0.0006937980651855469, -0.0153656005859375, 0.046630859375, -0.05377197265625, 0.0313720703125, 0.06329345703125, -0.0269775390625, 0.050445556640625, 0.042755126953125, -0.0261077880859375, 0.0195770263671875, 0.011871337890625, -0.0084686279296875, -0.01390838623046875, 0.031341552734375, 0.00739288330078125, 0.008392333984375, 0.0458984375, -0.0015726089477539062, -0.00885772705078125, -0.0060577392578125, -0.0227813720703125, 0.0291595458984375, 0.0287017822265625, 0.054962158203125, -0.06707763671875, 0.0285797119140625, 0.0231170654296875, -0.0271148681640625, 0.01544189453125, -0.051361083984375, -0.0207672119140625, -0.0684814453125, 0.06591796875, 0.006786346435546875, -0.0246734619140625, 0.0033016204833984375, -0.024688720703125, 0.004802703857421875, 0.034820556640625, 0.036529541015625, 0.01123809814453125, -0.0262603759765625, -0.033111572265625, 0.0276336669921875, 0.00923919677734375, -0.0011034011840820312, 0.0087127685546875, -0.0084228515625, -0.0225677490234375, -0.035736083984375, 0.0020084381103515625, -0.0125885009765625, -0.01103973388671875, -0.01276397705078125, -0.008148193359375, 0.0501708984375, 0.03314208984375, -0.005123138427734375, -0.0360107421875, 0.0178680419921875, -0.00341033935546875, -0.01532745361328125, -0.01218414306640625, 0.004299163818359375, 0.0341796875, 0.00504302978515625, 0.01190185546875, 0.00787353515625, -0.032867431640625, 0.00086212158203125, 0.00019168853759765625, 0.057525634765625, -0.006221771240234375, -0.0223541259765625, 0.04156494140625, -0.03436279296875, -0.03192138671875, -0.045928955078125, 0.01146697998046875, -0.053741455078125, 0.0292205810546875, -0.01238250732421875, 0.042083740234375, -0.0190582275390625, -0.037139892578125, -0.0550537109375, 0.1348876953125, -0.007251739501953125, 0.0118408203125, 0.011688232421875, 0.057830810546875, -0.04376220703125, 0.018280029296875, -0.0200347900390625, 0.066162109375, -0.039398193359375, 0.03997802734375, -0.0325927734375, 0.0174713134765625, 0.0149688720703125, -0.00800323486328125, 0.043792724609375, 0.0037479400634765625, -0.0064544677734375, -0.01126861572265625, 0.05108642578125, 0.0110626220703125, 0.0028533935546875, 0.0261993408203125, 0.003894805908203125, 0.056121826171875, 0.0310211181640625, -0.040557861328125, 0.0205841064453125, -0.0091552734375, -0.0323486328125, 0.0243377685546875, -0.002964019775390625, -0.020172119140625, 0.0004973411560058594, 0.0215301513671875, 0.0155181884765625, -0.0123748779296875, -0.008941650390625, -0.019256591796875, -0.01418304443359375, 0.0189971923828125, 0.00152587890625, 0.01419830322265625, 0.02081298828125, -0.029541015625, 0.0482177734375, 0.00762939453125, -0.0160980224609375, -0.01314544677734375, 0.004547119140625, 0.00395965576171875, -0.0599365234375, -0.0155792236328125, 0.0179901123046875, -0.0443115234375, -0.002086639404296875, 0.0260162353515625, 0.0247039794921875, 0.00585174560546875, 0.00647735595703125, 0.04449462890625, 0.0167694091796875, -0.0181121826171875, -0.08599853515625, 0.00574493408203125, 0.038330078125, 0.034637451171875, 0.052001953125, 0.039520263671875, -0.006587982177734375, 0.071044921875, 0.03656005859375, -0.01311492919921875, 0.0083770751953125, -0.0028514862060546875, 0.0026836395263671875, 0.015777587890625, -0.006633758544921875, 0.0261383056640625, -0.0034923553466796875, 0.028839111328125, -0.005664825439453125, -0.006046295166015625, -0.0243988037109375, 0.037841796875, 0.0021839141845703125, 0.0148773193359375, -0.0157470703125, 0.06781005859375, 0.006195068359375, 0.031707763671875, -0.06549072265625, -0.0753173828125, 0.0282135009765625, 0.04168701171875, -0.049346923828125, 0.038360595703125, 0.0550537109375, 0.081787109375, -0.0201873779296875, -0.033843994140625, 0.006443023681640625, -0.0239410400390625, -0.00333404541015625, -0.01197052001953125, 0.0194091796875, 0.034576416015625, 0.006130218505859375, -0.01117706298828125, 0.028411865234375, 0.03704833984375, -0.036224365234375, 0.0335693359375, -0.00042819976806640625, -0.007648468017578125, 0.03289794921875, 0.00153350830078125, 0.033721923828125, 0.0084381103515625, -0.07977294921875, -0.0215911865234375, -0.02899169921875, -0.03729248046875, 0.01221466064453125, 0.038726806640625, -0.02471923828125, 0.03338623046875, -0.0030117034912109375, -0.0210418701171875, 0.027984619140625, -0.0152587890625, 0.0193328857421875, 0.0313720703125, -0.00418853759765625, -0.0025577545166015625, -0.011627197265625, -0.01934814453125, -0.051544189453125, 0.0751953125, 0.047027587890625, 0.1409912109375, -0.06536865234375, 0.05145263671875, 0.0007276535034179688, -0.030029296875, 0.024993896484375, 0.0174102783203125, -0.059326171875, -0.00335693359375, -0.0014047622680664062, 0.004180908203125, -0.041595458984375, 0.06353759765625, -0.012359619140625, 0.0241851806640625, 0.01629638671875, 0.00760650634765625, -0.0017833709716796875, 0.06396484375, 0.0340576171875, -0.0099334716796875, -0.0303955078125, -0.044891357421875, -0.01491546630859375, 0.0306396484375, 0.0450439453125, -0.01271820068359375, -0.0245208740234375, -0.00307464599609375, -0.0357666015625, -0.01045989990234375, 0.02740478515625, -0.04595947265625, 0.0211944580078125, 0.01385498046875, -0.04931640625, 0.0006875991821289062, -0.007320404052734375, -0.0224456787109375, 0.0283203125, 0.03485107421875, 0.0192413330078125, -0.044158935546875, 0.005512237548828125, -0.0092926025390625, -0.00324249267578125, -0.03143310546875, -0.00926971435546875, 0.022308349609375, 0.0015249252319335938, -0.0036449432373046875, -0.046630859375, -0.017303466796875, -0.048919677734375, -0.005115509033203125, 0.030059814453125, -0.036956787109375, -0.0105133056640625, -0.01554107666015625, -0.01113128662109375, 0.044586181640625, 0.0113067626953125, -0.0472412109375, -0.004428863525390625, -0.03570556640625, 0.028839111328125, -0.0024929046630859375, -0.020111083984375, -0.0121612548828125, -0.01113128662109375, -0.032073974609375, -0.033935546875, -0.055023193359375, 0.0203704833984375, -0.035980224609375, 0.0390625, 0.057525634765625, -0.0345458984375, 0.0005826950073242188, 0.021209716796875, 0.0244598388671875, 0.0670166015625, -0.0207366943359375, -0.0176544189453125, 0.01448822021484375, -0.021240234375, 0.01654052734375, -0.056793212890625, -0.005184173583984375, -0.07373046875, 0.004589080810546875, -0.0190582275390625, 0.025665283203125, 0.039947509765625, -0.03515625, -0.033782958984375, 0.0032215118408203125, 0.00856781005859375, -0.0214691162109375, -0.036285400390625, -0.00702667236328125, -0.0031948089599609375, 0.00881195068359375, -0.00815582275390625, -0.020263671875, -0.0260162353515625, 0.048919677734375, 0.003570556640625, 0.039825439453125, -0.0033817291259765625, 0.01064300537109375, 0.0243988037109375, 0.0478515625, 0.04364013671875, -0.0171661376953125, -0.0209808349609375, 0.0165863037109375, 0.0087890625, 0.048004150390625, -0.009185791015625, 0.0178985595703125, 0.01120758056640625, -0.01617431640625, -0.0107421875, -0.01776123046875, -0.0263671875, -0.001544952392578125, 0.06890869140625, 0.057281494140625, 0.0205535888671875, -0.0347900390625, -0.0259857177734375, -0.0309600830078125, 0.0220947265625, -0.0399169921875, 0.0020313262939453125, -0.08599853515625, -0.03076171875, -0.01226043701171875, -0.0160369873046875, 0.01824951171875, -0.0025119781494140625, -0.0219268798828125, 0.0003097057342529297, -0.0106964111328125, -0.0133056640625, -0.0206451416015625, -0.0162353515625, 0.039215087890625, -0.03277587890625, -0.01314544677734375, -0.00492095947265625, 0.0173797607421875, 0.004741668701171875, -0.0148162841796875, -0.0077972412109375, 0.03900146484375, -0.0312042236328125, 0.0188140869140625, 0.00293731689453125, 0.0390625, -0.0173492431640625, 0.004268646240234375, -0.00270843505859375, 0.0290985107421875, -0.004650115966796875, 0.03179931640625, -0.00705718994140625, 0.03375244140625, 0.0020198822021484375, 0.034393310546875, 0.01102447509765625, -0.0094757080078125, -0.01031494140625, 0.03887939453125, 0.01605224609375, -0.02801513671875, 0.031585693359375, -0.031219482421875, 0.0174102783203125, 0.006481170654296875, 0.038238525390625, -0.0305023193359375, 0.0501708984375, -0.002193450927734375, 0.001750946044921875, 0.026641845703125 ]
0b32fdd48a69d5d8ef91cbb5d77342f0725516c8
Wordpress Stackexchange Q: Customising the size of images served in Visual Composer elements I'm using the Visual Composer plugin to build, or basically visually insert the shortcode for a number of sliders, latest blog posts and masonry grids. Most of these are set to use a posts featured image as the background to the link. I'm not sure how to set the size of these images though, so they always appear as the original featured image, and the size is just scaled down in the CSS. This is obviously flagging up a big problem in PageSpeed Insights and is a part of why my site is so hideously slow. I appreciate that it needs to be a certain size to scale properly, but is there a way to set the size of this image that is served? I need to keep the original, larger upload as that is shown on the actual post page.
Q: Customising the size of images served in Visual Composer elements I'm using the Visual Composer plugin to build, or basically visually insert the shortcode for a number of sliders, latest blog posts and masonry grids. Most of these are set to use a posts featured image as the background to the link. I'm not sure how to set the size of these images though, so they always appear as the original featured image, and the size is just scaled down in the CSS. This is obviously flagging up a big problem in PageSpeed Insights and is a part of why my site is so hideously slow. I appreciate that it needs to be a certain size to scale properly, but is there a way to set the size of this image that is served? I need to keep the original, larger upload as that is shown on the actual post page.
wordpress
{ "language": "en", "length": 152, "provenance": "stackexchange_00019.jsonl.gz:458443", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/199806" }
[ 0.0091552734375, -0.0106201171875, -0.028228759765625, -0.0162506103515625, 0.00970458984375, -0.0275421142578125, 0.037445068359375, -0.0012340545654296875, 0.03802490234375, 0.00797271728515625, -0.052886962890625, 0.0016775131225585938, -0.035369873046875, -0.01039886474609375, -0.050384521484375, -0.032928466796875, 0.0499267578125, -0.00666046142578125, 0.049102783203125, 0.00861358642578125, 0.0069122314453125, 0.05548095703125, 0.01201629638671875, 0.059539794921875, 0.00390625, 0.0284423828125, 0.044525146484375, -0.0009946823120117188, -0.021087646484375, -0.00687408447265625, 0.0188446044921875, -0.01447296142578125, 0.0276336669921875, -0.01462554931640625, -0.016815185546875, -0.022308349609375, -0.016143798828125, -0.012786865234375, -0.03277587890625, 0.01251983642578125, 0.052947998046875, -0.03118896484375, 0.05291748046875, -0.029876708984375, 0.01140594482421875, -0.004917144775390625, 0.037200927734375, -0.0345458984375, 0.0222320556640625, -0.0250701904296875, -0.0008840560913085938, 0.0221099853515625, 0.022369384765625, -0.0264892578125, -0.0118255615234375, -0.004108428955078125, -0.07305908203125, 0.09344482421875, 0.045684814453125, -0.0023937225341796875, -0.0294189453125, -0.0201416015625, 0.005489349365234375, -0.0396728515625, 0.019744873046875, 0.002227783203125, 0.007381439208984375, 0.0199737548828125, -0.0209808349609375, 0.0202484130859375, 0.0193634033203125, -0.032470703125, -0.0029850006103515625, -0.016693115234375, -0.0225067138671875, 0.001293182373046875, 0.00762176513671875, -0.004108428955078125, 0.00043511390686035156, -0.0098876953125, 0.03887939453125, -0.0203094482421875, 0.0218963623046875, -0.021484375, 0.00634765625, -0.02630615234375, -0.0090484619140625, 0.00868988037109375, -0.0243072509765625, 0.0042572021484375, -0.0285491943359375, -0.0228271484375, -0.008636474609375, 0.033050537109375, -0.0101776123046875, 0.01165008544921875, 0.016937255859375, -0.0109405517578125, 0.020416259765625, 0.04534912109375, 0.0110931396484375, -0.06072998046875, 0.09002685546875, -0.04107666015625, 0.0279388427734375, 0.039947509765625, -0.030242919921875, 0.01224517822265625, 0.062469482421875, 0.0167388916015625, 0.0239410400390625, 0.027191162109375, -0.0068359375, 0.01690673828125, -0.032562255859375, -0.030517578125, -0.0606689453125, -0.007541656494140625, -0.006420135498046875, -0.0301055908203125, 0.0103759765625, 0.034271240234375, 0.052642822265625, -0.031707763671875, -0.002521514892578125, 0.00815582275390625, -0.01277923583984375, -0.07232666015625, 0.011993408203125, 0.0689697265625, -0.048370361328125, 0.0019311904907226562, 0.07415771484375, -0.007633209228515625, 0.00550079345703125, -0.03741455078125, 0.0007433891296386719, -0.05230712890625, -0.01496124267578125, 0.004913330078125, -0.0032711029052734375, -0.006526947021484375, 0.0538330078125, -0.0171051025390625, 0.0057525634765625, -0.01367950439453125, -0.00710296630859375, 0.034149169921875, 0.002521514892578125, -0.05316162109375, 0.062744140625, -0.018402099609375, 0.020233154296875, 0.025970458984375, 0.01123809814453125, 0.0284423828125, 0.0560302734375, 0.00217437744140625, -0.03594970703125, -0.0239715576171875, -0.008758544921875, 0.00916290283203125, 0.03985595703125, -0.01427459716796875, -0.018890380859375, -0.0032329559326171875, -0.03448486328125, 0.0002484321594238281, 0.0297088623046875, 0.052764892578125, 0.0141754150390625, 0.0010385513305664062, -0.019439697265625, -0.004238128662109375, -0.0160369873046875, -0.0006728172302246094, 0.023834228515625, 0.0025959014892578125, 0.00102996826171875, 0.00452423095703125, -0.0032482147216796875, -0.0194244384765625, 0.06585693359375, -0.039825439453125, 0.00131988525390625, -0.03265380859375, -0.00481414794921875, -0.01806640625, 0.03985595703125, 0.00830841064453125, -0.0257110595703125, -0.004852294921875, -0.0229339599609375, 0.0072784423828125, -0.01462554931640625, -0.00926971435546875, -0.035980224609375, -0.01259613037109375, -0.0235748291015625, 0.0193023681640625, 0.0199432373046875, -0.03594970703125, 0.040435791015625, -0.003536224365234375, 0.01032257080078125, 0.00791168212890625, -0.01219940185546875, 0.0158233642578125, 0.007503509521484375, 0.0364990234375, -0.020111083984375, -0.01302337646484375, -0.0174407958984375, -0.004047393798828125, 0.0007085800170898438, 0.002048492431640625, 0.009246826171875, -0.034759521484375, -0.00799560546875, 0.01265716552734375, -0.018402099609375, 0.0003459453582763672, -0.04669189453125, 0.05523681640625, -0.007568359375, 0.03271484375, -0.0169830322265625, 0.0113525390625, 0.0168304443359375, 0.0228118896484375, 0.03729248046875, -0.006259918212890625, -0.01534271240234375, 0.034912109375, -0.018646240234375, -0.0284271240234375, -0.01132965087890625, -0.039398193359375, 0.027496337890625, 0.0275421142578125, 0.0341796875, -0.006649017333984375, -0.002117156982421875, -0.00806427001953125, 0.057281494140625, 0.053314208984375, 0.045867919921875, -0.037261962890625, -0.00917816162109375, -0.03106689453125, -0.006439208984375, -0.0305633544921875, 0.043487548828125, -0.040130615234375, 0.03277587890625, 0.0408935546875, -0.003879547119140625, -0.0153656005859375, -0.0292816162109375, 0.07330322265625, -0.00711822509765625, 0.055572509765625, 0.0205230712890625, -0.00217437744140625, -0.0204315185546875, 0.0030422210693359375, 0.0098724365234375, 0.01306915283203125, -0.01436614990234375, 0.0086822509765625, 0.01140594482421875, -0.0067291259765625, -0.00032138824462890625, 0.01485443115234375, 0.005489349365234375, -0.01934814453125, -0.0131988525390625, -0.0014009475708007812, -0.00717926025390625, -0.0035953521728515625, -0.012969970703125, -0.0270843505859375, -0.07391357421875, -0.0025119781494140625, 0.01128387451171875, -0.0631103515625, 0.005542755126953125, 0.06268310546875, 0.00696563720703125, -0.00968170166015625, 0.005733489990234375, 0.04669189453125, 0.0164794921875, 0.03729248046875, 0.023162841796875, -0.00841522216796875, 0.051910400390625, -0.03521728515625, 0.0595703125, -0.0472412109375, 0.036895751953125, 0.035430908203125, -0.0455322265625, 0.026458740234375, -0.00318145751953125, 0.02838134765625, -0.01329803466796875, 0.005550384521484375, -0.01236724853515625, -0.0251922607421875, -0.0251617431640625, -0.01059722900390625, 0.019195556640625, -0.024139404296875, -0.017578125, -0.028533935546875, -0.056671142578125, -0.00600433349609375, -0.073974609375, -0.0169677734375, 0.0236358642578125, -0.057952880859375, -0.0584716796875, 0.01490020751953125, -0.0357666015625, 0.0169219970703125, 0.02276611328125, -0.01611328125, -0.0225830078125, -0.0211944580078125, -0.027008056640625, -0.050079345703125, -0.05499267578125, -0.005828857421875, 0.002971649169921875, 0.0233001708984375, 0.0019741058349609375, 0.004085540771484375, -0.0142822265625, -0.0214996337890625, -0.02484130859375, 0.034210205078125, 0.0074920654296875, -0.04229736328125, 0.034027099609375, -0.03985595703125, -0.0400390625, 0.00473785400390625, -0.031402587890625, 0.0016603469848632812, -0.01274871826171875, -0.0020503997802734375, -0.019012451171875, -0.02301025390625, -0.01056671142578125, 0.0516357421875, 0.0194091796875, -0.00811004638671875, 0.033416748046875, -0.03680419921875, -0.0293731689453125, -0.0211029052734375, -0.0699462890625, 0.014862060546875, 0.032806396484375, 0.019256591796875, -0.0025177001953125, -0.0008568763732910156, 0.008758544921875, 0.003078460693359375, 0.072265625, -0.04425048828125, 0.06341552734375, -0.01229095458984375, -0.0167999267578125, -0.0758056640625, 0.0132293701171875, -0.0169525146484375, 0.0511474609375, 0.0099639892578125, 0.024322509765625, 0.01316070556640625, 0.005443572998046875, -0.0143585205078125, -0.00853729248046875, 0.033294677734375, -0.019561767578125, 0.07696533203125, -0.0675048828125, -0.033477783203125, -0.04754638671875, 0.06402587890625, -0.0029430389404296875, -0.007434844970703125, -0.0111083984375, -0.0106048583984375, -0.01374053955078125, 0.00525665283203125, -0.058685302734375, 0.0034313201904296875, -0.0968017578125, 0.018829345703125, 0.0219268798828125, -0.036651611328125, -0.020233154296875, 0.0263519287109375, -0.06988525390625, -0.03155517578125, 0.033599853515625, 0.0260772705078125, -0.005001068115234375, 0.0217742919921875, -0.00582122802734375, 0.004467010498046875, -0.0277557373046875, -0.005397796630859375, -0.11102294921875, -0.037506103515625, 0.05242919921875, 0.0767822265625, -0.041778564453125, -0.018951416015625, -0.050750732421875, 0.04693603515625, -0.00508880615234375, 0.005062103271484375, 0.0075225830078125, 0.0011806488037109375, -0.001636505126953125, 0.0230712890625, 0.00211334228515625, -0.00736236572265625, 0.0018701553344726562, 0.00005745887756347656, -0.041046142578125, -0.03033447265625, -0.01458740234375, -0.027740478515625, 0.03741455078125, -0.038177490234375, -0.057159423828125, -0.04974365234375, -0.00914764404296875, 0.044158935546875, -0.0161590576171875, 0.0088958740234375, -0.07635498046875, -0.0589599609375, 0.060546875, 0.0299224853515625, 0.0298919677734375, -0.00664520263671875, 0.10418701171875, 0.0048980712890625, -0.02880859375, -0.039794921875, -0.005619049072265625, 0.055328369140625, 0.032989501953125, 0.00502777099609375, 0.006298065185546875, -0.0445556640625, 0.05792236328125, 0.046966552734375, -0.0087127685546875, -0.002689361572265625, 0.0643310546875, 0.0017461776733398438, -0.00803375244140625, 0.0189971923828125, -0.020965576171875, -0.0089569091796875, 0.019317626953125, -0.0064239501953125, 0.01873779296875, -0.01140594482421875, -0.0178375244140625, -0.0029010772705078125, -0.01033782958984375, 0.0109100341796875, -0.04754638671875, 0.0013179779052734375, 0.013641357421875, 0.056640625, 0.0115814208984375, 0.0013113021850585938, 0.053375244140625, 0.06121826171875, 0.0020885467529296875, 0.01322174072265625, -0.01099395751953125, -0.01136016845703125, 0.02764892578125, -0.027435302734375, -0.0033702850341796875, 0.021026611328125, 0.0086669921875, -0.019866943359375, 0.0135345458984375, -0.023468017578125, -0.0416259765625, 0.01332855224609375, 0.007076263427734375, -0.0236358642578125, 0.01384735107421875, 0.067626953125, 0.0287017822265625, -0.0106658935546875, -0.045379638671875, -0.01161956787109375, -0.0254669189453125, -0.0672607421875, -0.0245819091796875, 0.01247406005859375, -0.0267791748046875, 0.056121826171875, -0.00815582275390625, 0.0400390625, -0.0030651092529296875, -0.0165557861328125, 0.02801513671875, 0.01413726806640625, -0.006824493408203125, 0.0174102783203125, 0.024322509765625, 0.01055908203125, -0.0335693359375, 0.01285552978515625, 0.0017480850219726562, -0.020355224609375, 0.0010347366333007812, 0.006122589111328125, -0.033050537109375, 0.00911712646484375, 0.0233917236328125, 0.0063323974609375, 0.010650634765625, -0.01520538330078125, -0.030853271484375, 0.004150390625, -0.025970458984375, -0.002124786376953125, 0.0506591796875, 0.00339508056640625, -0.032196044921875, -0.00970458984375, -0.01409149169921875, 0.01230621337890625, -0.0019512176513671875, -0.05615234375, 0.054168701171875, 0.043365478515625, -0.05377197265625, -0.0012073516845703125, 0.003284454345703125, -0.02886962890625, -0.0224151611328125, -0.0039005279541015625, -0.0310211181640625, 0.048614501953125, -0.06756591796875, 0.018524169921875, -0.01255035400390625, 0.0088653564453125, -0.043548583984375, 0.037017822265625, 0.00007092952728271484, 0.0239715576171875, -0.0082550048828125, -0.0220184326171875, -0.018096923828125, -0.012542724609375, 0.055572509765625, -0.004947662353515625, -0.01580810546875, -0.0347900390625, 0.00415802001953125, 0.00823974609375, 0.013153076171875, -0.0107879638671875, -0.0178375244140625, -0.002246856689453125, 0.00661468505859375, -0.0198974609375, 0.0011663436889648438, -0.00890350341796875, -0.0032024383544921875, 0.037322998046875, -0.01277923583984375, -0.037353515625, 0.005786895751953125, -0.022216796875, -0.02508544921875, -0.0255889892578125, -0.01007080078125, 0.0247039794921875, -0.01105499267578125, 0.037353515625, 0.0408935546875, 0.022735595703125, -0.00904083251953125, -0.0303497314453125, -0.0053558349609375, -0.0297088623046875, 0.06866455078125, -0.042144775390625, -0.0016164779663085938, -0.0092315673828125, -0.0006966590881347656, 0.032318115234375, -0.01184844970703125, -0.0097808837890625, 0.01073455810546875, -0.02496337890625, 0.0080108642578125, 0.034027099609375, 0.0304718017578125, -0.03851318359375, 0.0477294921875, -0.018096923828125, 0.028045654296875, 0.0285797119140625, 0.0024356842041015625, 0.034454345703125, 0.0109710693359375, -0.034271240234375, -0.0137481689453125, 0.0258941650390625, -0.0005230903625488281, -0.008941650390625, 0.0193634033203125, -0.008697509765625, 0.0279693603515625, -0.0347900390625, 0.038848876953125, 0.0099334716796875, 0.0273895263671875, 0.0274810791015625, -0.0005326271057128906, 0.042266845703125, -0.0313720703125, 0.0159912109375, -0.004657745361328125, 0.0665283203125, 0.032470703125, -0.00974273681640625, 0.0304412841796875, 0.006038665771484375, -0.005054473876953125, -0.008544921875, 0.0269012451171875, 0.013671875, -0.07086181640625, 0.01230621337890625, 0.0340576171875, -0.01137542724609375, -0.0265655517578125, 0.01531982421875, -0.0156707763671875, -0.017425537109375, -0.03436279296875, 0.0159912109375, -0.0002484321594238281, 0.0025691986083984375, 0.0263214111328125, 0.0234832763671875, 0.01320648193359375, 0.04083251953125, 0.0031528472900390625, 0.0208740234375, 0.0102996826171875, -0.040313720703125, 0.07513427734375, 0.0079345703125, 0.0219268798828125, 0.01192474365234375, -0.0340576171875, -0.0164031982421875, -0.0179595947265625, 0.0210723876953125, -0.00815582275390625, -0.0030918121337890625, 0.08038330078125, -0.027923583984375, -0.0190887451171875, 0.0196380615234375, 0.00180816650390625, -0.0207672119140625, -0.0003399848937988281, 0.022491455078125, -0.03533935546875, -0.0335693359375, -0.00302886962890625, -0.06622314453125, -0.031280517578125, -0.03704833984375, -0.05548095703125, 0.08245849609375, -0.025634765625, 0.00879669189453125, -0.00792694091796875, 0.042999267578125, -0.000637054443359375, 0.0193939208984375, -0.0039215087890625, -0.0030689239501953125, -0.0281524658203125, -0.0025653839111328125, -0.01436614990234375, 0.019287109375, -0.0162353515625, 0.00949859619140625, 0.062225341796875, 0.0110321044921875, -0.0531005859375, -0.007801055908203125, 0.07171630859375, 0.053253173828125, 0.0261688232421875, 0.039581298828125, -0.02264404296875, -0.041351318359375, -0.011474609375, 0.006076812744140625, 0.02069091796875, -0.0117645263671875, -0.0274200439453125, 0.0002906322479248047, 0.0192413330078125, 0.042449951171875, 0.0457763671875, 0.07568359375, -0.0251312255859375, 0.014984130859375, 0.056793212890625, -0.0869140625, 0.06878662109375, -0.002529144287109375, 0.05908203125, -0.01451873779296875, -0.0259552001953125, 0.01235198974609375, 0.04376220703125, 0.00981903076171875, 0.0218658447265625, 0.005641937255859375, -0.00402069091796875, 0.0252227783203125, 0.0228271484375, 0.0218048095703125, 0.05078125, -0.0224609375, 0.0055084228515625, -0.004436492919921875, 0.0014505386352539062, -0.036712646484375, 0.007198333740234375, 0.00971221923828125, 0.0015344619750976562, -0.032806396484375, -0.02227783203125, 0.0159912109375, 0.030975341796875, -0.0020503997802734375, -0.0151519775390625, 0.00839996337890625, -0.0484619140625, -0.003421783447265625, -0.0093841552734375, 0.011688232421875, 0.04486083984375, 0.025238037109375, -0.01137542724609375, 0.00890350341796875, -0.05389404296875, 0.00267791748046875, -0.00446319580078125, 0.02166748046875, 0.0167388916015625, -0.00035500526428222656, -0.043609619140625, 0.038726806640625, -0.0013360977172851562, 0.044891357421875, -0.028411865234375, 0.0548095703125, 0.0137786865234375, 0.033660888671875, -0.0298004150390625, -0.0174713134765625, 0.02593994140625, 0.039581298828125, 0.0013885498046875, -0.062469482421875, 0.0289154052734375, 0.0526123046875, -0.05438232421875, -0.039947509765625, 0.0163116455078125, 0.0030231475830078125, 0.027191162109375, -0.04400634765625, -0.0007772445678710938, 0.0203704833984375, -0.03729248046875, 0.01171112060546875, -0.034515380859375, 0.06793212890625, -0.0163726806640625, 0.03582763671875, -0.00811767578125, -0.0261383056640625, -0.00911712646484375, -0.0225067138671875, 0.0496826171875, 0.0077972412109375, 0.01343536376953125, 0.01340484619140625, -0.041595458984375, -0.05023193359375, -0.006793975830078125, 0.01953125, -0.021820068359375, 0.034088134765625, -0.031280517578125, -0.044281005859375, -0.001094818115234375, 0.0188140869140625, 0.017730712890625, -0.0186614990234375, -0.0299224853515625, -0.0270538330078125, -0.06890869140625, -0.045013427734375, -0.045166015625, 0.04669189453125, -0.0117950439453125, 0.1478271484375, -0.052093505859375, 0.01380157470703125, 0.011199951171875, -0.01354217529296875, 0.0043182373046875, -0.00801849365234375, 0.035797119140625, -0.021209716796875, -0.03424072265625, -0.016632080078125, -0.0089263916015625, -0.037994384765625, 0.051666259765625, -0.046142578125, -0.0394287109375, -0.029510498046875, 0.032623291015625, 0.01548004150390625, -0.002819061279296875, -0.039459228515625, -0.0282135009765625, -0.001834869384765625, 0.01137542724609375, -0.0162353515625, -0.038848876953125, 0.005550384521484375, 0.03741455078125, -0.0185089111328125, 0.00855255126953125, 0.033782958984375, -0.0675048828125, 0.0653076171875, 0.04351806640625, -0.059478759765625, -0.06927490234375, -0.0014867782592773438, -0.00691986083984375, -0.042877197265625, 0.014923095703125, 0.0213623046875, -0.0038776397705078125, -0.065185546875, 0.0229949951171875, 0.002613067626953125, 0.00567626953125, -0.05084228515625, -0.0025234222412109375, 0.021575927734375, 0.00618743896484375, -0.00017261505126953125, 0.037322998046875, -0.014129638671875, -0.0006155967712402344, -0.02685546875, -0.01091766357421875, 0.0072174072265625, -0.04644775390625, -0.033935546875, -0.0208740234375, 0.055023193359375, 0.047088623046875, -0.06292724609375, 0.04119873046875, -0.006046295166015625, -0.04107666015625, 0.053375244140625, -0.01837158203125, -0.00962066650390625, -0.0245208740234375, -0.039154052734375, -0.0372314453125, -0.034393310546875, 0.03680419921875, -0.0250701904296875, 0.045928955078125, 0.05694580078125, -0.028350830078125, -0.0142822265625, 0.023040771484375, 0.007129669189453125, 0.094970703125, -0.048919677734375, -0.0044097900390625, 0.01210784912109375, 0.002384185791015625, -0.005908966064453125, -0.025909423828125, 0.0148162841796875, -0.0234222412109375, -0.0250091552734375, -0.0100860595703125, -0.0078887939453125, -0.0020275115966796875, -0.04608154296875, -0.07037353515625, 0.0216827392578125, 0.00818634033203125, -0.03045654296875, -0.029327392578125, 0.01499176025390625, -0.006439208984375, 0.036102294921875, -0.0007596015930175781, -0.0207366943359375, -0.00008672475814819336, 0.01012420654296875, -0.0198516845703125, 0.03289794921875, 0.0162811279296875, -0.0125274658203125, -0.0080413818359375, -0.004024505615234375, -0.0006356239318847656, -0.014007568359375, 0.0175018310546875, -0.0279693603515625, 0.0238494873046875, 0.021728515625, -0.03680419921875, -0.06024169921875, -0.005199432373046875, -0.007720947265625, -0.0198974609375, -0.048736572265625, 0.0129852294921875, -0.0151824951171875, 0.037933349609375, 0.004276275634765625, -0.004894256591796875, -0.0188140869140625, -0.00015747547149658203, -0.0224456787109375, 0.057647705078125, -0.0060577392578125, -0.022735595703125, -0.043670654296875, -0.034515380859375, 0.0026302337646484375, -0.01427459716796875, -0.00867462158203125, -0.037384033203125, -0.055511474609375, -0.0023021697998046875, -0.05126953125, 0.0216522216796875, -0.055450439453125, 0.00807952880859375, 0.024932861328125, -0.00679779052734375, 0.048370361328125, -0.00333404541015625, -0.0014553070068359375, 0.047698974609375, 0.049102783203125, -0.0012664794921875, 0.0222015380859375, -0.032867431640625, 0.0287322998046875, -0.004001617431640625, 0.0016717910766601562, -0.050140380859375, 0.0020999908447265625, 0.0201568603515625, 0.0186614990234375, -0.0205078125, 0.020050048828125, 0.006313323974609375, 0.028778076171875, -0.005214691162109375, 0.01390838623046875, -0.04290771484375, 0.0239715576171875, -0.01485443115234375, -0.00018393993377685547, -0.046234130859375, 0.0303192138671875, 0.016082763671875, -0.0160369873046875, 0.0190277099609375, 0.0289459228515625, -0.0202178955078125, 0.037811279296875, -0.0228271484375, -0.0635986328125, -0.0198211669921875, -0.0273590087890625 ]
26e80fc9a68f0dc5f293dc30f6344f0123e30750
Wordpress Stackexchange Q: What is singular.php? From 4.3 we have a new template, singular.php. I tried to understand what is it, but I didn't get it. :) The page.php for pages. The single.php for every post types. If we have single-[post-type].php we can use a specific template for the custom post type.. so why we need singular.php? A: The single post template file is used to render a single post. WordPress uses the following path: 1.single-{post-type}.php – First, WordPress looks for a template for the specific post type. For example, post type is product, WordPress would look for single-product.php. 2.single.php – WordPress then falls back to single.php. 3.singular.php – Then it falls back to singular.php. 4.index.php – Finally, as mentioned above, WordPress ultimately falls back to index.php. https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post The template file used to render a static page (page post-type). Note that unlike other post-types, page is special to WordPress and uses the following patch: 1.custom template file – The page template assigned to the page. See get_page_templates(). 2.page-{slug}.php – If the page slug is recent-news, WordPress will look to use page-recent-news.php. 3.page-{id}.php – If the page ID is 6, WordPress will look to use page-6.php. 4.page.php 5.singular.php 6.index.php https://developer.wordpress.org/themes/basics/template-hierarchy/#page
Q: What is singular.php? From 4.3 we have a new template, singular.php. I tried to understand what is it, but I didn't get it. :) The page.php for pages. The single.php for every post types. If we have single-[post-type].php we can use a specific template for the custom post type.. so why we need singular.php? A: The single post template file is used to render a single post. WordPress uses the following path: 1.single-{post-type}.php – First, WordPress looks for a template for the specific post type. For example, post type is product, WordPress would look for single-product.php. 2.single.php – WordPress then falls back to single.php. 3.singular.php – Then it falls back to singular.php. 4.index.php – Finally, as mentioned above, WordPress ultimately falls back to index.php. https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post The template file used to render a static page (page post-type). Note that unlike other post-types, page is special to WordPress and uses the following patch: 1.custom template file – The page template assigned to the page. See get_page_templates(). 2.page-{slug}.php – If the page slug is recent-news, WordPress will look to use page-recent-news.php. 3.page-{id}.php – If the page ID is 6, WordPress will look to use page-6.php. 4.page.php 5.singular.php 6.index.php https://developer.wordpress.org/themes/basics/template-hierarchy/#page A: It's the nature of the WordPress template hierarchy - point being, if you don't have a page.php, it will use singular.php, same if you don't have single.php, it will fallback to a template lower in the hierarchy. Ideal for themes that have the same layout for posts/pages, instead of having duplicate code in each respective template. A: singular.php is basically an extra fallback for all post types, regardless if built-in or custom. It comes in straight after single.php and page.php, so you can omit the latter two templates and just have a singular.php template which will be used by all post types in single view. How useful it will be and the necessity of it will, just as with any other template, depend on the user/site/requirements. The template hierarchy is built such that, regardless of any page being viewed, you will always just need index.php to display any page. So in short, you can have a fully functional theme with only index.php and style.css in the theme folder. The templates available in the template hierarchy are just there for convenience, and that goes for singular.php as well. You can use any template in context if you need to, but you don't have to use it if you don't need it.
wordpress
{ "language": "en", "length": 408, "provenance": "stackexchange_00019.jsonl.gz:458464", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/199873" }
[ 0.03973388671875, -0.0240020751953125, 0.0028362274169921875, -0.078857421875, 0.010284423828125, 0.0031223297119140625, 0.0229644775390625, 0.023681640625, -0.0199737548828125, -0.004032135009765625, 0.00560760498046875, 0.022674560546875, -0.0548095703125, -0.04248046875, 0.03509521484375, -0.02020263671875, 0.0220184326171875, -0.0158843994140625, 0.01067352294921875, -0.01178741455078125, -0.0008573532104492188, -0.0026607513427734375, 0.03753662109375, 0.01103973388671875, 0.0201568603515625, -0.0244598388671875, 0.0164031982421875, -0.031036376953125, -0.01311492919921875, -0.03814697265625, 0.004528045654296875, 0.055816650390625, 0.0297088623046875, 0.00579071044921875, -0.02398681640625, -0.0060882568359375, -0.0124664306640625, -0.00009149312973022461, 0.007595062255859375, 0.0006361007690429688, -0.01763916015625, 0.015655517578125, 0.046417236328125, -0.01113128662109375, 0.01441192626953125, -0.010284423828125, -0.0098876953125, -0.052581787109375, 0.006175994873046875, -0.007526397705078125, 0.0097198486328125, -0.0235595703125, 0.01316070556640625, 0.0175018310546875, -0.01203155517578125, -0.0041656494140625, 0.0255279541015625, -0.054107666015625, 0.01456451416015625, -0.0144195556640625, 0.002033233642578125, 0.01308441162109375, 0.0254058837890625, 0.01971435546875, -0.03033447265625, -0.016326904296875, -0.0279998779296875, 0.0302581787109375, -0.04248046875, -0.0400390625, 0.0211181640625, -0.003314971923828125, -0.004146575927734375, -0.0433349609375, 0.0111083984375, 0.000008165836334228516, -0.00881195068359375, -0.040283203125, -0.0106353759765625, 0.0301513671875, 0.01251983642578125, -0.0012331008911132812, -0.01284027099609375, -0.04150390625, 0.0180816650390625, -0.00415802001953125, -0.00876617431640625, -0.015869140625, -0.04644775390625, -0.013580322265625, -0.043060302734375, -0.037078857421875, 0.03271484375, -0.04437255859375, -0.046539306640625, -0.01044464111328125, -0.0006618499755859375, 0.01885986328125, 0.0251312255859375, 0.0175018310546875, 0.025299072265625, -0.0511474609375, 0.0299835205078125, -0.03387451171875, 0.025665283203125, 0.07098388671875, -0.028961181640625, 0.0307769775390625, 0.06707763671875, 0.0144500732421875, 0.033935546875, 0.0221099853515625, -0.0156402587890625, -0.0250091552734375, -0.0287322998046875, 0.027984619140625, -0.0308837890625, -0.006023406982421875, 0.018768310546875, 0.009674072265625, 0.01216888427734375, 0.032867431640625, 0.03643798828125, -0.056121826171875, -0.00119781494140625, -0.005275726318359375, -0.03662109375, -0.061767578125, 0.0110015869140625, 0.00988006591796875, -0.0056304931640625, -0.0035533905029296875, 0.016937255859375, 0.03594970703125, -0.004810333251953125, -0.00811004638671875, -0.008270263671875, -0.0017566680908203125, -0.0128021240234375, 0.019927978515625, -0.0034503936767578125, -0.030670166015625, 0.01500701904296875, -0.000031948089599609375, -0.0035552978515625, -0.00298309326171875, 0.01439666748046875, 0.0285797119140625, 0.0133056640625, 0.0018644332885742188, -0.02313232421875, 0.0169677734375, 0.0318603515625, 0.00620269775390625, -0.0265045166015625, -0.0230560302734375, 0.006275177001953125, -0.0196990966796875, -0.0005350112915039062, -0.04150390625, 0.037750244140625, -0.008087158203125, 0.0032215118408203125, -0.0306854248046875, -0.032928466796875, 0.007106781005859375, -0.0633544921875, 0.0017080307006835938, 0.015869140625, -0.01824951171875, 0.0037384033203125, 0.0162506103515625, 0.029998779296875, 0.0056915283203125, 0.0034580230712890625, -0.002147674560546875, -0.0244598388671875, 0.0011205673217773438, 0.0217742919921875, 0.0193634033203125, 0.0023632049560546875, -0.02239990234375, 0.001941680908203125, 0.0214691162109375, -0.074951171875, 0.05462646484375, 0.01666259765625, 0.046600341796875, 0.0071868896484375, 0.0098419189453125, 0.060516357421875, 0.020965576171875, -0.027557373046875, 0.05023193359375, 0.0247039794921875, -0.01531982421875, -0.0305023193359375, 0.019378662109375, -0.00936126708984375, -0.07904052734375, -0.034820556640625, 0.0007543563842773438, 0.027557373046875, 0.0179595947265625, -0.002902984619140625, 0.007602691650390625, -0.0215911865234375, 0.04327392578125, -0.042633056640625, -0.0161895751953125, 0.033447265625, -0.01019287109375, -0.02783203125, 0.0023708343505859375, -0.0244140625, 0.0064544677734375, 0.0286712646484375, -0.0011358261108398438, -0.0005717277526855469, 0.00396728515625, -0.009368896484375, -0.0007429122924804688, -0.033935546875, 0.01453399658203125, 0.0709228515625, 0.00785064697265625, -0.02044677734375, -0.02117919921875, 0.003780364990234375, 0.0254058837890625, -0.08233642578125, 0.0309600830078125, 0.002483367919921875, 0.0174102783203125, -0.039215087890625, 0.0186309814453125, -0.005870819091796875, 0.028839111328125, -0.0072784423828125, 0.024566650390625, 0.0187530517578125, 0.0191497802734375, -0.0125579833984375, 0.0179443359375, 0.01385498046875, -0.03277587890625, 0.01641845703125, -0.00434112548828125, 0.004642486572265625, 0.035125732421875, 0.020599365234375, 0.005809783935546875, 0.0116424560546875, -0.0261383056640625, -0.005947113037109375, 0.032073974609375, -0.03466796875, -0.0224761962890625, 0.0030193328857421875, 0.03717041015625, -0.00868988037109375, 0.045867919921875, 0.049713134765625, -0.0095367431640625, -0.0103607177734375, 0.047882080078125, 0.025146484375, 0.031463623046875, -0.0258026123046875, 0.007602691650390625, 0.00043392181396484375, 0.006778717041015625, -0.001483917236328125, 0.0191192626953125, -0.00977325439453125, 0.007579803466796875, -0.00554656982421875, -0.0096282958984375, 0.00213623046875, -0.0002751350402832031, -0.0288543701171875, 0.0364990234375, -0.002239227294921875, -0.0221710205078125, -0.043426513671875, -0.06536865234375, 0.01012420654296875, -0.00719451904296875, 0.022308349609375, 0.01053619384765625, 0.01427459716796875, 0.0631103515625, -0.0270843505859375, 0.06329345703125, 0.030853271484375, -0.0031604766845703125, 0.0543212890625, -0.0262908935546875, 0.039093017578125, -0.0338134765625, 0.0535888671875, 0.04229736328125, -0.0416259765625, 0.029937744140625, -0.0024318695068359375, -0.0167388916015625, 0.0096435546875, -0.0213165283203125, -0.0197296142578125, -0.01241302490234375, -0.02630615234375, 0.028411865234375, 0.01418304443359375, 0.058685302734375, -0.027130126953125, -0.0576171875, -0.0033416748046875, 0.01012420654296875, -0.084228515625, -0.0731201171875, 0.0018100738525390625, -0.07391357421875, 0.00418853759765625, -0.030181884765625, -0.047637939453125, -0.01062774658203125, 0.01000213623046875, 0.00821685791015625, 0.044219970703125, -0.022735595703125, -0.088623046875, -0.051361083984375, -0.09759521484375, -0.00621795654296875, -0.01202392578125, 0.0180816650390625, 0.017730712890625, 0.0149383544921875, 0.0106964111328125, -0.039215087890625, 0.02813720703125, 0.032562255859375, -0.032989501953125, 0.0010690689086914062, -0.0162506103515625, -0.0256195068359375, 0.01238250732421875, 0.0132598876953125, -0.0271759033203125, -0.006046295166015625, 0.0296630859375, -0.03607177734375, -0.03955078125, -0.00547027587890625, -0.0184783935546875, 0.049835205078125, 0.0517578125, -0.0177459716796875, 0.027252197265625, -0.03631591796875, -0.07080078125, -0.0218048095703125, -0.076904296875, 0.055145263671875, 0.07891845703125, 0.00489044189453125, -0.03375244140625, 0.03192138671875, -0.02093505859375, 0.014617919921875, -0.0014276504516601562, -0.042144775390625, 0.041473388671875, -0.0052947998046875, -0.0224609375, -0.003292083740234375, 0.0026912689208984375, -0.01560211181640625, 0.027008056640625, 0.0007381439208984375, -0.0011358261108398438, 0.0132598876953125, -0.0010900497436523438, -0.001987457275390625, -0.042816162109375, 0.038818359375, -0.01898193359375, 0.016326904296875, -0.0440673828125, -0.01458740234375, -0.0080108642578125, 0.067138671875, -0.07611083984375, -0.0035266876220703125, 0.013275146484375, -0.00452423095703125, 0.0343017578125, -0.005908966064453125, -0.0511474609375, -0.0284881591796875, -0.01171112060546875, 0.01171112060546875, 0.0054473876953125, -0.0082244873046875, 0.0005621910095214844, 0.0196990966796875, 0.006671905517578125, -0.0135650634765625, 0.0247344970703125, -0.0187530517578125, -0.0008192062377929688, 0.0638427734375, -0.0192413330078125, 0.032928466796875, -0.0287322998046875, -0.02960205078125, -0.01104736328125, -0.0199432373046875, 0.0237884521484375, 0.0298309326171875, 0.01453399658203125, -0.037445068359375, 0.0002275705337524414, 0.0280609130859375, -0.00336456298828125, 0.0020160675048828125, 0.004459381103515625, -0.0022640228271484375, 0.042266845703125, 0.029083251953125, 0.00598907470703125, 0.01375579833984375, -0.00206756591796875, 0.00881195068359375, -0.0504150390625, 0.0107879638671875, -0.00931549072265625, 0.003322601318359375, 0.023681640625, -0.0264129638671875, -0.037445068359375, -0.0167388916015625, 0.0226593017578125, 0.0260467529296875, 0.0084686279296875, 0.0173797607421875, -0.0223541259765625, -0.036834716796875, 0.06732177734375, 0.0426025390625, -0.031829833984375, -0.0202484130859375, 0.04522705078125, 0.02362060546875, -0.058807373046875, -0.040924072265625, 0.01107025146484375, 0.0423583984375, 0.045867919921875, 0.058807373046875, 0.0374755859375, -0.0023212432861328125, 0.034210205078125, 0.041473388671875, -0.02880859375, -0.0026645660400390625, 0.042572021484375, -0.0180816650390625, -0.03155517578125, 0.0176544189453125, -0.058685302734375, 0.04986572265625, 0.043792724609375, -0.019622802734375, -0.0345458984375, -0.00860595703125, 0.070556640625, -0.040069580078125, 0.050628662109375, -0.061248779296875, -0.042327880859375, 0.0019407272338867188, 0.0164337158203125, 0.0243072509765625, 0.0188140869140625, 0.00795745849609375, 0.059478759765625, 0.032135009765625, -0.024017333984375, 0.028411865234375, 0.03155517578125, 0.02740478515625, -0.011566162109375, 0.04754638671875, -0.0197296142578125, -0.024749755859375, 0.0007319450378417969, 0.0244598388671875, 0.0136566162109375, -0.03192138671875, -0.025115966796875, 0.015899658203125, 0.01383209228515625, -0.01148223876953125, 0.024566650390625, 0.036590576171875, 0.00372314453125, -0.0247344970703125, -0.036773681640625, 0.008270263671875, -0.00908660888671875, -0.045196533203125, 0.004550933837890625, 0.01204681396484375, -0.025787353515625, 0.0048065185546875, -0.005878448486328125, 0.035064697265625, -0.0280303955078125, -0.0171966552734375, 0.0300750732421875, 0.0108489990234375, 0.00966644287109375, 0.00850677490234375, 0.00109100341796875, 0.003986358642578125, -0.01369476318359375, 0.01236724853515625, -0.059967041015625, -0.0253753662109375, 0.0178680419921875, 0.03607177734375, -0.0130615234375, -0.0119476318359375, 0.025726318359375, 0.028472900390625, 0.003353118896484375, 0.0243988037109375, -0.010345458984375, -0.049285888671875, 0.001399993896484375, 0.0211029052734375, 0.00852203369140625, -0.034393310546875, -0.01546478271484375, 0.0322265625, 0.0030364990234375, 0.0283355712890625, 0.00926971435546875, -0.050933837890625, 0.0022335052490234375, 0.0229949951171875, 0.005054473876953125, 0.0030345916748046875, 0.011138916015625, -0.0904541015625, -0.01352691650390625, -0.0158538818359375, -0.003765106201171875, 0.042144775390625, -0.0009131431579589844, 0.050537109375, -0.007686614990234375, -0.0589599609375, 0.03277587890625, 0.0086669921875, 0.01751708984375, -0.0034770965576171875, -0.03338623046875, 0.020751953125, -0.04156494140625, -0.0150604248046875, 0.0367431640625, -0.0292816162109375, -0.0262451171875, -0.032073974609375, -0.021453857421875, 0.0270538330078125, -0.0239105224609375, 0.0198974609375, -0.023956298828125, 0.00991058349609375, -0.021270751953125, 0.0784912109375, -0.027557373046875, 0.0718994140625, -0.0099639892578125, 0.0255584716796875, -0.0035953521728515625, 0.032196044921875, -0.0286102294921875, 0.01318359375, 0.01154327392578125, -0.003643035888671875, -0.00698089599609375, -0.0287933349609375, -0.023193359375, 0.00688934326171875, 0.0728759765625, -0.001194000244140625, -0.00745391845703125, -0.0078582763671875, 0.013336181640625, -0.018829345703125, -0.0226593017578125, 0.002902984619140625, -0.052154541015625, 0.009063720703125, -0.0233917236328125, 0.018646240234375, 0.00093841552734375, 0.007289886474609375, -0.0108489990234375, -0.01557159423828125, -0.0151214599609375, 0.050689697265625, -0.047119140625, 0.04559326171875, 0.06768798828125, 0.01535797119140625, 0.05487060546875, -0.0028438568115234375, 0.0185546875, 0.022705078125, 0.005046844482421875, 0.00441741943359375, 0.0099639892578125, 0.045440673828125, -0.01177978515625, -0.0128936767578125, 0.0033817291259765625, -0.035430908203125, 0.00969696044921875, 0.059356689453125, 0.05706787109375, -0.07330322265625, 0.00567626953125, 0.0188751220703125, -0.0281219482421875, 0.0164031982421875, -0.0218353271484375, -0.00626373291015625, -0.052764892578125, 0.022735595703125, 0.0435791015625, -0.01380157470703125, -0.00580596923828125, -0.004547119140625, 0.0155181884765625, 0.0025005340576171875, 0.0684814453125, 0.0006518363952636719, -0.0260772705078125, -0.029815673828125, 0.00844573974609375, -0.0024814605712890625, -0.01666259765625, -0.0020389556884765625, 0.000946044921875, -0.0140533447265625, -0.00031638145446777344, 0.03607177734375, -0.02947998046875, 0.0084075927734375, 0.054718017578125, -0.0010318756103515625, -0.050689697265625, 0.038055419921875, -0.030792236328125, 0.0235443115234375, 0.003917694091796875, -0.07086181640625, -0.057281494140625, -0.0223846435546875, 0.000033020973205566406, 0.030029296875, -0.0260467529296875, 0.0260772705078125, -0.0224609375, -0.018157958984375, -0.03375244140625, -0.056488037109375, 0.087158203125, -0.031494140625, -0.012237548828125, -0.00286865234375, 0.03204345703125, -0.0051422119140625, 0.0007510185241699219, -0.01500701904296875, -0.05255126953125, -0.039031982421875, 0.0030994415283203125, -0.050537109375, 0.0289306640625, 0.0069122314453125, -0.1044921875, 0.08819580078125, 0.019744873046875, 0.071044921875, -0.0009908676147460938, 0.022735595703125, -0.02752685546875, -0.01274871826171875, -0.0018758773803710938, 0.04248046875, -0.01393890380859375, 0.07867431640625, -0.00836944580078125, -0.00287628173828125, 0.04864501953125, 0.0404052734375, 0.06512451171875, 0.0137786865234375, -0.053680419921875, 0.033599853515625, 0.11102294921875, -0.002300262451171875, -0.011016845703125, 0.07830810546875, -0.01316070556640625, 0.0146942138671875, 0.0208740234375, -0.0271453857421875, 0.0251617431640625, -0.0118560791015625, -0.022674560546875, 0.01343536376953125, 0.0311737060546875, 0.03387451171875, -0.0160064697265625, 0.0016508102416992188, -0.06915283203125, 0.0146331787109375, 0.05657958984375, 0.017791748046875, -0.0272979736328125, 0.040924072265625, 0.0153656005859375, -0.0499267578125, 0.0194091796875, -0.04974365234375, 0.0484619140625, -0.00095367431640625, 0.0028285980224609375, 0.0199737548828125, 0.0150909423828125, 0.0177764892578125, 0.009246826171875, -0.00580596923828125, 0.03863525390625, -0.002155303955078125, 0.04632568359375, -0.0034999847412109375, 0.007366180419921875, -0.0484619140625, 0.03643798828125, 0.02166748046875, 0.045379638671875, -0.062042236328125, -0.032562255859375, 0.00988006591796875, 0.0220489501953125, -0.0016889572143554688, 0.00501251220703125, 0.00885009765625, -0.00351715087890625, 0.045989990234375, -0.04638671875, -0.0098114013671875, 0.02227783203125, -0.0216827392578125, -0.0109100341796875, 0.005397796630859375, 0.021209716796875, 0.016693115234375, -0.061431884765625, 0.0333251953125, 0.0318603515625, 0.0560302734375, 0.00232696533203125, 0.06219482421875, 0.0009975433349609375, -0.0228271484375, -0.002971649169921875, 0.0096435546875, -0.0191650390625, 0.021820068359375, -0.0501708984375, -0.03265380859375, 0.02679443359375, 0.04296875, 0.052001953125, -0.006435394287109375, 0.022674560546875, -0.01611328125, -0.03131103515625, -0.0107879638671875, -0.0306549072265625, -0.0296173095703125, -0.003849029541015625, 0.005657196044921875, -0.041290283203125, -0.007114410400390625, -0.036285400390625, 0.00780487060546875, 0.02935791015625, -0.0103759765625, -0.0172882080078125, 0.04541015625, 0.00009828805923461914, -0.020965576171875, 0.043060302734375, 0.0125579833984375, 0.086181640625, 0.031982421875, -0.06317138671875, 0.0089263916015625, -0.020111083984375, -0.085205078125, 0.0211029052734375, 0.041748046875, -0.028350830078125, 0.00606536865234375, 0.025848388671875, 0.0217437744140625, -0.02154541015625, -0.01678466796875, 0.0322265625, -0.0000661611557006836, 0.01531219482421875, 0.037353515625, -0.040924072265625, -0.042694091796875, -0.0034236907958984375, 0.055633544921875, -0.0033512115478515625, 0.10675048828125, -0.04095458984375, 0.008880615234375, -0.049041748046875, 0.046722412109375, -0.055328369140625, -0.05255126953125, 0.07159423828125, 0.022247314453125, 0.005733489990234375, -0.01087188720703125, -0.06622314453125, -0.005840301513671875, 0.049896240234375, -0.042755126953125, 0.0016269683837890625, 0.0171051025390625, 0.01076507568359375, -0.0286102294921875, 0.0181121826171875, -0.0213470458984375, -0.015869140625, -0.01898193359375, 0.0111846923828125, 0.035064697265625, -0.0008945465087890625, -0.0347900390625, 0.034271240234375, -0.0266876220703125, -0.061126708984375, 0.0199127197265625, -0.06280517578125, 0.0090179443359375, 0.0196075439453125, 0.0218963623046875, -0.01354217529296875, 0.0186920166015625, -0.01403045654296875, -0.007373809814453125, 0.01312255859375, 0.01192474365234375, -0.01059722900390625, -0.01922607421875, 0.031890869140625, -0.04425048828125, 0.005584716796875, -0.0158538818359375, -0.036407470703125, 0.01085662841796875, 0.01355743408203125, -0.0101165771484375, -0.0291290283203125, -0.01158905029296875, -0.0252838134765625, -0.0002999305725097656, 0.0258026123046875, -0.01482391357421875, 0.006927490234375, -0.036865234375, -0.0227813720703125, 0.0257568359375, -0.014251708984375, 0.0093841552734375, -0.0176544189453125, -0.0309600830078125, 0.005115509033203125, -0.007022857666015625, 0.027191162109375, -0.0143585205078125, -0.00376129150390625, -0.07086181640625, 0.0254058837890625, -0.043670654296875, -0.032745361328125, -0.00420379638671875, 0.014068603515625, 0.040802001953125, -0.0145111083984375, -0.0089263916015625, -0.00402069091796875, 0.0040740966796875, 0.0504150390625, -0.0321044921875, -0.01404571533203125, 0.06402587890625, -0.03472900390625, -0.01568603515625, -0.034027099609375, -0.0090179443359375, -0.03863525390625, 0.01444244384765625, 0.023406982421875, -0.01078033447265625, 0.004207611083984375, -0.050506591796875, -0.0845947265625, 0.057769775390625, -0.01513671875, -0.045806884765625, -0.0189361572265625, 0.0178680419921875, 0.00762176513671875, -0.043701171875, -0.03118896484375, -0.00861358642578125, 0.0006208419799804688, 0.0226593017578125, 0.0126190185546875, 0.048004150390625, 0.035186767578125, 0.013702392578125, -0.005878448486328125, 0.0219573974609375, -0.00653839111328125, -0.0157470703125, -0.007781982421875, 0.0192718505859375, 0.00600433349609375, 0.0202484130859375, -0.057159423828125, 0.021942138671875, -0.008087158203125, 0.05419921875, -0.0018548965454101562, 0.0225982666015625, -0.04425048828125, 0.0051727294921875, 0.07049560546875, 0.06341552734375, 0.0269012451171875, -0.033966064453125, 0.0272369384765625, -0.047698974609375, -0.0888671875, 0.02197265625, 0.043182373046875, -0.05657958984375, 0.0256805419921875, 0.057403564453125, -0.001590728759765625, 0.016754150390625, -0.01093292236328125, -0.0229949951171875, 0.0011091232299804688, -0.0146484375, -0.006046295166015625, -0.0187225341796875, 0.000579833984375, 0.0200042724609375, -0.0021953582763671875, 0.036651611328125, -0.01103973388671875, 0.01116943359375, 0.021087646484375, 0.01412200927734375, -0.01496124267578125, 0.034942626953125, -0.043060302734375, 0.0005245208740234375, -0.0016069412231445312, 0.0258941650390625, -0.0350341796875, 0.021697998046875, -0.02783203125, 0.0234527587890625, 0.01143646240234375, 0.0172119140625, -0.034210205078125, 0.0240325927734375, 0.0008606910705566406, 0.06817626953125, 0.0236968994140625, 0.0286102294921875, -0.0020427703857421875, 0.05615234375, 0.00771331787109375, -0.049407958984375, 0.007213592529296875, -0.01953125, 0.00862884521484375, -0.0243682861328125, -0.03826904296875, -0.025970458984375, -0.003429412841796875, 0.006557464599609375, -0.045562744140625, 0.014739990234375 ]
2c2c7f41d613cc4a1e932c584cb9a88c7c3f162f
Wordpress Stackexchange Q: What is the code to get the download link for a product in WooCommerce? I'm trying to add the direct download link of a product to a button, but I'm stuck. What I tried is this <a href="<?php echo $product->downloadable_files; ?>">Download</a> And of course it didn't work. What is the proper code to get the product's download url? A: Here is the code to get the download link for a downloadable product in WooCommerce. $downloads = $product->get_downloads(); foreach( $downloads as $key => $each_download ) { echo '<a href="'.$each_download["file"].'">Download</a>'; }
Q: What is the code to get the download link for a product in WooCommerce? I'm trying to add the direct download link of a product to a button, but I'm stuck. What I tried is this <a href="<?php echo $product->downloadable_files; ?>">Download</a> And of course it didn't work. What is the proper code to get the product's download url? A: Here is the code to get the download link for a downloadable product in WooCommerce. $downloads = $product->get_downloads(); foreach( $downloads as $key => $each_download ) { echo '<a href="'.$each_download["file"].'">Download</a>'; }
wordpress
{ "language": "en", "length": 90, "provenance": "stackexchange_00019.jsonl.gz:458466", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/199877" }
[ 0.02691650390625, -0.0309906005859375, 0.006038665771484375, -0.01421356201171875, -0.01467132568359375, -0.0185699462890625, 0.03802490234375, -0.010894775390625, -0.0022602081298828125, 0.04681396484375, -0.01284027099609375, -0.0024127960205078125, 0.00550079345703125, -0.01032257080078125, -0.044281005859375, -0.0224761962890625, 0.05755615234375, 0.0195770263671875, 0.09295654296875, 0.031768798828125, -0.0092010498046875, 0.0909423828125, 0.049835205078125, 0.043792724609375, 0.0179595947265625, 0.0289154052734375, 0.07867431640625, -0.0299835205078125, 0.02276611328125, -0.00775146484375, 0.0250244140625, -0.0394287109375, 0.031890869140625, -0.045501708984375, 0.01403045654296875, -0.036834716796875, -0.0224151611328125, -0.0138092041015625, -0.0294342041015625, 0.01502227783203125, 0.04962158203125, -0.032958984375, -0.043426513671875, -0.0032196044921875, -0.0264129638671875, -0.033111572265625, 0.03521728515625, -0.0143585205078125, 0.0011835098266601562, 0.047119140625, 0.00981903076171875, 0.036376953125, -0.001277923583984375, 0.03900146484375, -0.00695037841796875, 0.00859832763671875, -0.02081298828125, 0.03826904296875, 0.020111083984375, -0.0299530029296875, -0.026397705078125, 0.02032470703125, 0.01383209228515625, 0.01348876953125, -0.00043845176696777344, 0.01209259033203125, 0.00946807861328125, 0.0094451904296875, -0.03900146484375, -0.01195526123046875, 0.0305328369140625, -0.037628173828125, -0.003818511962890625, 0.0142669677734375, -0.00519561767578125, -0.041168212890625, -0.0132598876953125, -0.032684326171875, 0.0198822021484375, 0.0305938720703125, 0.03009033203125, 0.01593017578125, 0.012237548828125, -0.038818359375, 0.0308074951171875, -0.00971221923828125, 0.0035152435302734375, -0.0191802978515625, -0.01276397705078125, -0.0411376953125, -0.0228729248046875, -0.003875732421875, -0.0153961181640625, -0.0184173583984375, -0.05572509765625, -0.0292205810546875, 0.0209808349609375, 0.0146636962890625, 0.0231781005859375, 0.0178070068359375, 0.007183074951171875, -0.0535888671875, 0.044769287109375, -0.03558349609375, -0.00003165006637573242, 0.01104736328125, 0.008880615234375, 0.0098419189453125, 0.03497314453125, 0.01299285888671875, -0.01666259765625, 0.04248046875, -0.00811767578125, -0.04901123046875, 0.005458831787109375, 0.022674560546875, -0.045257568359375, 0.044464111328125, 0.045257568359375, 0.01430511474609375, 0.0057220458984375, 0.038848876953125, -0.004871368408203125, 0.0204925537109375, -0.041290283203125, -0.0071868896484375, 0.0213165283203125, -0.06683349609375, 0.01422882080078125, 0.0030879974365234375, -0.026336669921875, 0.01007080078125, 0.00696563720703125, 0.0110626220703125, -0.0005278587341308594, -0.01482391357421875, 0.0010194778442382812, 0.01013946533203125, 0.0247039794921875, -0.0071868896484375, 0.0261383056640625, -0.0057373046875, -0.005527496337890625, 0.0188140869140625, 0.031768798828125, -0.006809234619140625, -0.0131072998046875, 0.03216552734375, 0.040740966796875, 0.0199737548828125, 0.01268768310546875, -0.00748443603515625, 0.00275421142578125, 0.0141448974609375, 0.04669189453125, -0.0032100677490234375, 0.07379150390625, -0.03216552734375, 0.019012451171875, -0.034698486328125, 0.00537872314453125, 0.003383636474609375, 0.0205230712890625, -0.0026569366455078125, -0.03607177734375, -0.0087738037109375, -0.0230865478515625, -0.00952911376953125, 0.02496337890625, 0.050567626953125, -0.007038116455078125, -0.045806884765625, 0.01100921630859375, 0.0147247314453125, -0.0255279541015625, 0.0182952880859375, 0.0207977294921875, 0.0050811767578125, 0.028900146484375, 0.01107025146484375, -0.0302886962890625, -0.0236968994140625, 0.07415771484375, -0.0482177734375, -0.038726806640625, 0.05767822265625, -0.0014009475708007812, 0.04510498046875, 0.00945281982421875, 0.00323486328125, 0.019744873046875, 0.029876708984375, -0.036865234375, -0.003772735595703125, -0.046783447265625, -0.01483154296875, 0.0261383056640625, 0.0160064697265625, -0.0291748046875, 0.0457763671875, -0.00004363059997558594, 0.002162933349609375, 0.01218414306640625, 0.03570556640625, 0.004058837890625, 0.041229248046875, 0.0010671615600585938, 0.01824951171875, -0.03375244140625, 0.0113677978515625, 0.0288543701171875, 0.0144500732421875, -0.01108551025390625, -0.06304931640625, 0.0031604766845703125, 0.0191497802734375, -0.035369873046875, 0.0478515625, -0.0113525390625, 0.04486083984375, -0.0297698974609375, -0.0167083740234375, -0.009796142578125, -0.0018758773803710938, 0.009033203125, 0.01470947265625, -0.02032470703125, -0.0008502006530761719, 0.046356201171875, 0.0178985595703125, 0.0117950439453125, -0.012969970703125, 0.03765869140625, 0.01035308837890625, -0.031951904296875, 0.005268096923828125, 0.00616455078125, -0.0828857421875, -0.006343841552734375, 0.055328369140625, 0.047332763671875, 0.010986328125, 0.006778717041015625, 0.0152130126953125, 0.06683349609375, -0.00453948974609375, 0.00560760498046875, -0.01397705078125, -0.0011463165283203125, 0.033660888671875, 0.031890869140625, 0.0333251953125, -0.0025157928466796875, 0.004253387451171875, 0.02587890625, 0.04058837890625, -0.0127716064453125, 0.01471710205078125, -0.007595062255859375, 0.01904296875, -0.0216064453125, -0.0030231475830078125, 0.0218963623046875, -0.02923583984375, -0.016143798828125, 0.0283355712890625, 0.006069183349609375, 0.02581787109375, -0.0292205810546875, -0.004352569580078125, 0.015289306640625, 0.0304718017578125, -0.0212554931640625, 0.047637939453125, 0.050933837890625, -0.054046630859375, -0.02117919921875, -0.00830078125, -0.01032257080078125, 0.0014715194702148438, -0.0092620849609375, -0.01152801513671875, 0.0116424560546875, -0.000858306884765625, 0.0195770263671875, -0.03924560546875, 0.02252197265625, 0.015625, -0.006931304931640625, 0.01214599609375, 0.0294189453125, 0.011932373046875, -0.0214996337890625, 0.0206146240234375, -0.01435089111328125, -0.00545501708984375, 0.0404052734375, -0.01442718505859375, 0.0390625, -0.0286712646484375, 0.0711669921875, 0.049530029296875, -0.042694091796875, 0.03466796875, 0.016265869140625, -0.00443267822265625, 0.0244293212890625, -0.020233154296875, -0.0156402587890625, 0.058929443359375, -0.113037109375, 0.00010949373245239258, 0.0128326416015625, 0.0200042724609375, -0.0289306640625, -0.048919677734375, -0.035797119140625, -0.0096282958984375, -0.15087890625, -0.1143798828125, -0.01493072509765625, -0.050567626953125, 0.034271240234375, -0.0096282958984375, -0.00583648681640625, -0.017425537109375, 0.0176849365234375, 0.01314544677734375, -0.0041656494140625, -0.0251007080078125, -0.020172119140625, -0.035614013671875, -0.0474853515625, 0.01340484619140625, 0.0006594657897949219, 0.00186920166015625, 0.006366729736328125, -0.0159912109375, -0.0258026123046875, -0.01055908203125, -0.01236724853515625, 0.01337432861328125, 0.0140380859375, -0.033294677734375, -0.018402099609375, -0.01983642578125, -0.00354766845703125, -0.006427764892578125, 0.047943115234375, 0.019683837890625, -0.0175628662109375, 0.009124755859375, 0.004467010498046875, -0.0002994537353515625, 0.0242767333984375, 0.00911712646484375, -0.0029277801513671875, 0.0178680419921875, 0.026031494140625, -0.051544189453125, -0.0166015625, -0.01552581787109375, -0.040252685546875, 0.058258056640625, -0.0033931732177734375, 0.0007739067077636719, 0.032470703125, 0.0160064697265625, 0.020355224609375, -0.005443572998046875, 0.01248931884765625, -0.0176544189453125, -0.005619049072265625, 0.01166534423828125, 0.023712158203125, -0.018707275390625, 0.055084228515625, 0.01396942138671875, -0.005962371826171875, 0.03082275390625, 0.03131103515625, 0.0006475448608398438, 0.00386810302734375, -0.040191650390625, -0.07086181640625, 0.06292724609375, -0.0192108154296875, 0.0200653076171875, -0.03680419921875, -0.046234130859375, -0.00004118680953979492, 0.1207275390625, 0.043121337890625, -0.037109375, -0.033966064453125, -0.0005974769592285156, -0.049774169921875, -0.03338623046875, 0.0133209228515625, 0.01776123046875, -0.02191162109375, -0.0052032470703125, -0.017242431640625, -0.01309967041015625, 0.0095062255859375, -0.0318603515625, -0.0005946159362792969, -0.030059814453125, 0.0130767822265625, 0.01358795166015625, -0.018463134765625, 0.053924560546875, -0.0287322998046875, 0.0565185546875, -0.01280975341796875, -0.018218994140625, 0.00827789306640625, 0.0010557174682617188, 0.018829345703125, -0.0022430419921875, 0.0026874542236328125, -0.0163726806640625, -0.0135040283203125, 0.007053375244140625, 0.0216827392578125, 0.0247344970703125, 0.00780487060546875, -0.007793426513671875, -0.00875091552734375, -0.030975341796875, 0.0086517333984375, -0.04681396484375, 0.005985260009765625, -0.019073486328125, -0.01500701904296875, 0.019317626953125, -0.028717041015625, 0.051910400390625, -0.01503753662109375, -0.0127716064453125, -0.0899658203125, -0.024688720703125, 0.035308837890625, 0.00424957275390625, 0.0027008056640625, 0.018646240234375, -0.00731658935546875, -0.049652099609375, 0.02734375, -0.019561767578125, -0.0206146240234375, 0.003192901611328125, 0.05078125, 0.011199951171875, -0.006099700927734375, 0.006683349609375, 0.02679443359375, 0.041168212890625, 0.00930023193359375, 0.0009760856628417969, -0.0020008087158203125, -0.0205535888671875, 0.0014524459838867188, -0.0016736984252929688, 0.021881103515625, 0.007671356201171875, 0.02142333984375, -0.0091552734375, -0.00511932373046875, 0.016021728515625, -0.0117340087890625, -0.006992340087890625, -0.007144927978515625, -0.03558349609375, 0.0032501220703125, -0.003307342529296875, 0.022918701171875, -0.020355224609375, 0.0230712890625, -0.0246429443359375, -0.040374755859375, 0.00791168212890625, -0.042022705078125, 0.0416259765625, 0.039703369140625, -0.01009368896484375, 0.0325927734375, 0.016754150390625, 0.004520416259765625, -0.0243072509765625, -0.0400390625, 0.008636474609375, 0.019744873046875, -0.0272979736328125, 0.0107421875, 0.00595855712890625, -0.01338958740234375, 0.0023021697998046875, 0.0190277099609375, -0.023681640625, -0.0034160614013671875, -0.01393890380859375, -0.010711669921875, -0.00629425048828125, -0.029937744140625, 0.0242156982421875, 0.01251220703125, -0.028411865234375, 0.00836181640625, -0.026611328125, -0.0238800048828125, -0.045623779296875, 0.060089111328125, 0.0004546642303466797, 0.022613525390625, 0.02386474609375, 0.0689697265625, -0.00879669189453125, 0.043182373046875, 0.005962371826171875, 0.0186767578125, 0.042938232421875, 0.0206756591796875, 0.035491943359375, -0.01410675048828125, -0.004619598388671875, -0.017791748046875, 0.0007772445678710938, -0.0013170242309570312, 0.00959014892578125, -0.0289306640625, 0.029205322265625, -0.0287628173828125, -0.021209716796875, 0.050445556640625, -0.051116943359375, -0.01329803466796875, 0.0006127357482910156, -0.004756927490234375, 0.0036716461181640625, -0.0411376953125, -0.0218505859375, 0.0254058837890625, 0.033447265625, -0.0282440185546875, 0.00290679931640625, -0.01551055908203125, -0.00894927978515625, 0.009552001953125, -0.0460205078125, 0.01497650146484375, 0.025543212890625, 0.00830078125, -0.0467529296875, -0.0059814453125, -0.0004229545593261719, 0.0313720703125, -0.04302978515625, -0.00966644287109375, 0.050079345703125, -0.0086822509765625, 0.03033447265625, -0.03662109375, -0.0189971923828125, -0.06292724609375, -0.018890380859375, 0.088623046875, 0.06536865234375, -0.027801513671875, -0.00955963134765625, -0.027862548828125, -0.0249481201171875, 0.01776123046875, -0.0253448486328125, -0.0355224609375, -0.03375244140625, -0.0157470703125, 0.0185546875, -0.00649261474609375, -0.0048675537109375, 0.01904296875, -0.00844573974609375, -0.0279541015625, -0.0164337158203125, 0.02294921875, 0.004131317138671875, 0.017852783203125, 0.05316162109375, 0.0222930908203125, -0.015289306640625, -0.038116455078125, -0.0292205810546875, 0.005634307861328125, 0.0307769775390625, 0.0037784576416015625, -0.03204345703125, 0.044158935546875, -0.0350341796875, 0.02459716796875, -0.007076263427734375, -0.02801513671875, -0.0167083740234375, -0.019073486328125, -0.0218353271484375, 0.058319091796875, 0.0216217041015625, -0.0426025390625, 0.018951416015625, -0.05657958984375, -0.037078857421875, 0.005420684814453125, 0.023590087890625, 0.01024627685546875, -0.0289154052734375, -0.01155853271484375, 0.02923583984375, -0.0259552001953125, 0.051513671875, 0.1036376953125, -0.0059661865234375, 0.056549072265625, 0.015869140625, -0.0007476806640625, 0.036163330078125, 0.034332275390625, -0.0012941360473632812, -0.025054931640625, 0.0250244140625, -0.00023102760314941406, -0.00392913818359375, 0.0090789794921875, -0.0152587890625, 0.050933837890625, 0.0184326171875, 0.0792236328125, -0.0479736328125, 0.0267181396484375, 0.0251922607421875, -0.0055084228515625, 0.06695556640625, -0.0011453628540039062, -0.019561767578125, -0.05108642578125, 0.0640869140625, -0.0248260498046875, 0.0055694580078125, 0.011199951171875, -0.0221710205078125, 0.035858154296875, 0.024261474609375, 0.016571044921875, -0.01318359375, -0.127685546875, -0.045562744140625, 0.08056640625, -0.055816650390625, -0.0195770263671875, -0.000682830810546875, 0.0027103424072265625, -0.00308990478515625, -0.0377197265625, 0.042449951171875, -0.03472900390625, 0.042205810546875, 0.0164031982421875, -0.0235748291015625, 0.02349853515625, 0.057098388671875, -0.01447296142578125, 0.0188140869140625, 0.025665283203125, -0.018585205078125, 0.026275634765625, -0.0001188516616821289, 0.00928497314453125, 0.01491546630859375, -0.04827880859375, -0.0145416259765625, -0.06256103515625, 0.019744873046875, -0.006866455078125, 0.049591064453125, 0.0902099609375, -0.01445770263671875, -0.035797119140625, 0.061920166015625, 0.0310516357421875, -0.037261962890625, -0.00717926025390625, 0.047637939453125, -0.01439666748046875, 0.053436279296875, 0.007080078125, 0.053924560546875, -0.043975830078125, -0.02581787109375, -0.04144287109375, 0.0172119140625, -0.020050048828125, 0.0003437995910644531, 0.01165008544921875, -0.003597259521484375, -0.00475311279296875, -0.0248870849609375, -0.045379638671875, 0.0478515625, 0.043670654296875, 0.0015697479248046875, -0.045745849609375, -0.02081298828125, -0.028533935546875, 0.019134521484375, 0.0287017822265625, 0.0004184246063232422, -0.021240234375, 0.01751708984375, 0.079345703125, 0.01320648193359375, -0.007083892822265625, 0.037109375, 0.0020389556884765625, -0.041717529296875, 0.057403564453125, -0.0184783935546875, 0.0272216796875, -0.004940032958984375, 0.029296875, 0.0123138427734375, 0.0013065338134765625, -0.01519775390625, -0.007472991943359375, 0.037078857421875, -0.0213775634765625, -0.0030422210693359375, 0.007556915283203125, 0.0032215118408203125, 0.01275634765625, 0.03179931640625, -0.00931549072265625, 0.03936767578125, 0.0220489501953125, -0.0165252685546875, 0.028961181640625, -0.007488250732421875, 0.031982421875, 0.04351806640625, 0.01035308837890625, 0.071044921875, -0.024322509765625, 0.001567840576171875, -0.023681640625, 0.010711669921875, 0.02264404296875, 0.01104736328125, 0.004276275634765625, -0.03375244140625, 0.0305328369140625, 0.0714111328125, 0.033966064453125, -0.0467529296875, -0.038482666015625, 0.00316619873046875, -0.007476806640625, 0.0205078125, -0.00902557373046875, 0.030120849609375, -0.055084228515625, -0.022979736328125, -0.017913818359375, -0.01290130615234375, 0.0117340087890625, 0.045074462890625, 0.0167083740234375, -0.015106201171875, -0.052642822265625, -0.0374755859375, 0.0010843276977539062, 0.0167694091796875, -0.00714874267578125, -0.004344940185546875, -0.020904541015625, 0.032928466796875, -0.0245513916015625, 0.015350341796875, 0.0201263427734375, 0.0462646484375, -0.0225982666015625, -0.0016908645629882812, -0.0233001708984375, -0.06787109375, -0.004383087158203125, 0.036376953125, 0.010498046875, 0.0114898681640625, 0.028564453125, 0.0270538330078125, 0.004299163818359375, 0.00010633468627929688, 0.03289794921875, -0.0106048583984375, -0.0020389556884765625, -0.05133056640625, 0.0285797119140625, 0.0147857666015625, 0.0088653564453125, 0.005367279052734375, -0.025970458984375, 0.05499267578125, -0.0751953125, 0.0772705078125, -0.0300445556640625, -0.0195465087890625, 0.04638671875, -0.02789306640625, 0.1142578125, -0.043975830078125, -0.09136962890625, -0.005489349365234375, -0.02685546875, -0.00434112548828125, -0.0099945068359375, 0.014404296875, -0.035430908203125, 0.06585693359375, -0.0079193115234375, -0.0004982948303222656, 0.0079803466796875, 0.0117950439453125, -0.031646728515625, 0.00951385498046875, 0.04052734375, -0.0111236572265625, -0.048553466796875, -0.01800537109375, -0.0236968994140625, 0.0179290771484375, 0.0250091552734375, 0.054290771484375, 0.01143646240234375, 0.0178680419921875, 0.0115203857421875, -0.00887298583984375, 0.0074005126953125, -0.0112457275390625, 0.00975799560546875, -0.0204925537109375, -0.006877899169921875, -0.00168609619140625, -0.0017948150634765625, -0.0026302337646484375, 0.050537109375, -0.0072784423828125, -0.0208587646484375, -0.018585205078125, 0.04095458984375, 0.004367828369140625, 0.053192138671875, -0.0193634033203125, -0.0582275390625, -0.0292510986328125, 0.01264190673828125, -0.006542205810546875, 0.0203857421875, 0.00180816650390625, 0.001773834228515625, 0.02685546875, 0.004734039306640625, 0.024505615234375, 0.017852783203125, 0.05792236328125, 0.03253173828125, -0.033843994140625, -0.0276641845703125, -0.00792694091796875, -0.0222320556640625, 0.00716400146484375, -0.0206146240234375, 0.06048583984375, -0.006671905517578125, -0.0360107421875, 0.0307159423828125, 0.055572509765625, 0.03155517578125, -0.0205841064453125, 0.0087890625, 0.0787353515625, -0.035308837890625, 0.01125335693359375, 0.03155517578125, 0.0007734298706054688, -0.0275726318359375, -0.0129241943359375, -0.019744873046875, -0.00769805908203125, -0.0166168212890625, -0.00267791748046875, -0.0193939208984375, 0.04888916015625, -0.005001068115234375, -0.0477294921875, -0.03265380859375, 0.01007080078125, 0.0631103515625, -0.001720428466796875, -0.004444122314453125, -0.01041412353515625, 0.00494384765625, -0.00322723388671875, -0.0240936279296875, -0.04388427734375, 0.031585693359375, -0.033172607421875, 0.031890869140625, 0.006717681884765625, -0.0303192138671875, 0.0242919921875, 0.050445556640625, 0.032623291015625, 0.09912109375, 0.02301025390625, -0.041107177734375, 0.0239105224609375, -0.024871826171875, 0.014739990234375, -0.05682373046875, -0.007701873779296875, -0.0933837890625, -0.0008730888366699219, -0.0174560546875, 0.0203399658203125, 0.031097412109375, -0.0352783203125, -0.05999755859375, 0.05169677734375, -0.00927734375, -0.032257080078125, -0.034912109375, 0.0250244140625, -0.008270263671875, 0.0225677490234375, -0.01300811767578125, -0.013092041015625, -0.015594482421875, 0.0142059326171875, 0.0019321441650390625, -0.001781463623046875, 0.00846099853515625, -0.0012083053588867188, 0.005588531494140625, 0.0352783203125, 0.039520263671875, -0.0195465087890625, -0.00472259521484375, -0.031341552734375, 0.049072265625, 0.033843994140625, 0.00257110595703125, 0.0305023193359375, 0.050567626953125, -0.004611968994140625, -0.014556884765625, -0.01023101806640625, 0.0060272216796875, -0.0180206298828125, 0.00609588623046875, 0.0211029052734375, -0.01174163818359375, -0.00009340047836303711, 0.00331878662109375, 0.02813720703125, -0.055633544921875, -0.00020182132720947266, 0.028594970703125, -0.045623779296875, 0.0068206787109375, -0.0273590087890625, -0.01213836669921875, 0.01203155517578125, 0.0091552734375, -0.04608154296875, 0.004718780517578125, -0.0019044876098632812, 0.015960693359375, -0.086181640625, -0.00689697265625, 0.07281494140625, -0.031494140625, 0.0253448486328125, 0.00937652587890625, 0.007526397705078125, 0.058319091796875, 0.0024433135986328125, 0.0193939208984375, 0.06243896484375, -0.03985595703125, -0.024169921875, 0.0230712890625, 0.005107879638671875, -0.003665924072265625, 0.0118408203125, -0.01262664794921875, 0.037628173828125, -0.0218505859375, 0.03643798828125, 0.0292510986328125, 0.03662109375, 0.01233673095703125, 0.081298828125, -0.0191650390625, 0.020965576171875, -0.0082244873046875, 0.0287628173828125, 0.0032825469970703125, 0.00394439697265625, 0.05438232421875, -0.02996826171875, 0.002574920654296875, -0.0168914794921875, -0.0364990234375, -0.01192474365234375, -0.01552581787109375, -0.00962066650390625, -0.04388427734375, 0.010833740234375 ]
4b9dd0d3c3e06eb6aec8aec38ed8471e127c483f
Wordpress Stackexchange Q: What is comment_karma? While doing a var_dump on the $comment object, I see there is a comment_karma property. What is that? A: You get the comment_karma property because there is such a column in the comments table. It is meaningless and AFAIK was never used for anything except for maybe some random spam prevention plugin. It is there just for backward compatibility and because no one thinks that removing it will improve anything in a measurable way. You can use that field if needed, but it is probably a better idea to use your own meta field.
Q: What is comment_karma? While doing a var_dump on the $comment object, I see there is a comment_karma property. What is that? A: You get the comment_karma property because there is such a column in the comments table. It is meaningless and AFAIK was never used for anything except for maybe some random spam prevention plugin. It is there just for backward compatibility and because no one thinks that removing it will improve anything in a measurable way. You can use that field if needed, but it is probably a better idea to use your own meta field.
wordpress
{ "language": "en", "length": 98, "provenance": "stackexchange_00019.jsonl.gz:458488", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/199950" }
[ 0.023284912109375, -0.0465087890625, 0.037811279296875, -0.001445770263671875, -0.04730224609375, -0.0277252197265625, 0.0143585205078125, -0.0274505615234375, 0.0259552001953125, 0.04217529296875, -0.00982666015625, -0.0293426513671875, 0.028564453125, -0.0212554931640625, -0.047821044921875, -0.019134521484375, 0.0355224609375, -0.0018138885498046875, 0.0318603515625, 0.00798797607421875, -0.00186920166015625, 0.028533935546875, 0.02301025390625, -0.0268402099609375, 0.042755126953125, -0.049713134765625, 0.1114501953125, -0.0153656005859375, 0.051025390625, -0.00745391845703125, 0.03302001953125, -0.04425048828125, 0.014434814453125, 0.0067901611328125, 0.01465606689453125, -0.058013916015625, 0.01509857177734375, 0.00409698486328125, 0.01149749755859375, 0.0026378631591796875, 0.04327392578125, -0.016815185546875, -0.0090484619140625, -0.012054443359375, -0.01702880859375, 0.020843505859375, -0.005161285400390625, -0.01351165771484375, 0.016632080078125, -0.052001953125, 0.00948333740234375, 0.030303955078125, 0.0257110595703125, -0.0038356781005859375, -0.011505126953125, 0.00693511962890625, -0.052001953125, 0.0037136077880859375, 0.0191650390625, 0.01476287841796875, -0.00550079345703125, 0.002689361572265625, 0.016448974609375, -0.0014276504516601562, -0.0033931732177734375, 0.00417327880859375, 0.0258636474609375, 0.03167724609375, -0.0126190185546875, -0.01947021484375, 0.01088714599609375, -0.01335906982421875, 0.0018892288208007812, -0.03900146484375, 0.007144927978515625, -0.01194000244140625, -0.006427764892578125, -0.031707763671875, 0.00740814208984375, 0.0105743408203125, -0.0196380615234375, -0.0018224716186523438, -0.019561767578125, 0.0218048095703125, -0.00893402099609375, 0.03173828125, -0.023712158203125, -0.0179595947265625, -0.01007843017578125, -0.02880859375, -0.004596710205078125, -0.079833984375, -0.0268096923828125, 0.0270538330078125, 0.0162506103515625, -0.041961669921875, 0.0254364013671875, 0.0234832763671875, 0.0024929046630859375, -0.01287841796875, -0.0195159912109375, -0.01100921630859375, -0.029022216796875, -0.00548553466796875, 0.00904083251953125, -0.00823211669921875, -0.0243072509765625, -0.041961669921875, 0.03125, 0.047821044921875, -0.018524169921875, 0.03173828125, 0.0001710653305053711, 0.00951385498046875, -0.0116119384765625, -0.0138702392578125, -0.057830810546875, 0.036163330078125, -0.0302886962890625, 0.031890869140625, 0.005481719970703125, 0.018463134765625, 0.042205810546875, -0.00864410400390625, 0.0094451904296875, 0.00811004638671875, -0.023040771484375, -0.034576416015625, -0.0230865478515625, 0.0129852294921875, -0.00469207763671875, 0.015289306640625, 0.0125885009765625, 0.0255889892578125, -0.0184326171875, -0.013671875, 0.01201629638671875, -0.041229248046875, -0.014373779296875, 0.032501220703125, -0.0027675628662109375, -0.034149169921875, 0.0010204315185546875, 0.0014295578002929688, -0.02813720703125, 0.008697509765625, -0.005458831787109375, 0.01491546630859375, 0.022613525390625, -0.0289306640625, -0.0386962890625, -0.0098114013671875, -0.0325927734375, 0.0335693359375, 0.0384521484375, 0.024810791015625, -0.03399658203125, 0.017242431640625, 0.038818359375, 0.027679443359375, 0.0306396484375, 0.00588226318359375, -0.003570556640625, -0.0013685226440429688, -0.00962066650390625, -0.0248260498046875, 0.003963470458984375, 0.01284027099609375, 0.01511383056640625, 0.03204345703125, 0.0005002021789550781, -0.0190582275390625, -0.0152587890625, 0.005931854248046875, -0.005649566650390625, 0.0028896331787109375, -0.011138916015625, 0.00881195068359375, -0.0029277801513671875, -0.001617431640625, -0.0174102783203125, -0.04742431640625, -0.03619384765625, 0.0186309814453125, -0.01305389404296875, 0.044219970703125, 0.00489044189453125, 0.02288818359375, -0.014068603515625, 0.00036215782165527344, 0.0017557144165039062, 0.057159423828125, -0.02337646484375, 0.02642822265625, -0.0005273818969726562, 0.0021877288818359375, -0.01263427734375, 0.0213470458984375, -0.0076751708984375, -0.0596923828125, 0.0494384765625, -0.033782958984375, -0.001232147216796875, -0.01192474365234375, -0.1004638671875, 0.005016326904296875, -0.032684326171875, 0.017730712890625, -0.0258331298828125, 0.040618896484375, 0.024566650390625, -0.01065826416015625, -0.0423583984375, 0.04669189453125, 0.017425537109375, -0.01995849609375, -0.00643157958984375, -0.06298828125, -0.01110076904296875, -0.0113525390625, -0.0254669189453125, 0.03216552734375, -0.060760498046875, -0.002185821533203125, 0.0173492431640625, -0.018798828125, -0.008880615234375, -0.029205322265625, -0.000579833984375, -0.004825592041015625, 0.0035400390625, 0.03546142578125, 0.009857177734375, 0.00693511962890625, -0.0034351348876953125, -0.024566650390625, -0.0266876220703125, -0.134765625, 0.0166473388671875, 0.08612060546875, 0.0301666259765625, -0.0030536651611328125, 0.00662994384765625, 0.0200347900390625, 0.0251617431640625, 0.016845703125, 0.047943115234375, -0.0265045166015625, 0.00853729248046875, 0.057586669921875, -0.03216552734375, 0.00865936279296875, 0.0196380615234375, -0.04669189453125, -0.00794219970703125, 0.04302978515625, -0.005809783935546875, 0.0242462158203125, -0.012664794921875, 0.0565185546875, -0.02978515625, 0.047576904296875, 0.047576904296875, -0.0049285888671875, 0.0187225341796875, -0.01259613037109375, 0.0247039794921875, 0.0136260986328125, -0.00849151611328125, -0.01160430908203125, 0.0243988037109375, 0.005527496337890625, 0.003021240234375, 0.04962158203125, 0.00405120849609375, 0.032379150390625, 0.00836181640625, -0.0361328125, 0.0022945404052734375, 0.0192108154296875, -0.0212860107421875, 0.00616455078125, 0.0033588409423828125, -0.01053619384765625, -0.0139617919921875, -0.03314208984375, 0.0055084228515625, -0.031646728515625, -0.03753662109375, -0.059783935546875, -0.01898193359375, 0.035308837890625, 0.0094757080078125, -0.003910064697265625, 0.030120849609375, -0.016143798828125, -0.041168212890625, -0.03973388671875, 0.04022216796875, -0.03436279296875, 0.016357421875, 0.06793212890625, 0.0005917549133300781, 0.01152801513671875, 0.006534576416015625, -0.009124755859375, -0.01326751708984375, 0.01971435546875, -0.0080718994140625, 0.02099609375, -0.05560302734375, 0.041015625, 0.0161285400390625, 0.050201416015625, -0.00775909423828125, -0.046478271484375, -0.00371551513671875, 0.0308380126953125, -0.023406982421875, -0.0277557373046875, 0.032623291015625, -0.04632568359375, -0.0251007080078125, -0.037933349609375, -0.027923583984375, -0.0019702911376953125, -0.0209197998046875, -0.0192413330078125, 0.0261993408203125, -0.03570556640625, -0.06768798828125, -0.035797119140625, -0.07220458984375, 0.02099609375, -0.0070953369140625, 0.00833892822265625, 0.0009341239929199219, 0.0716552734375, 0.004634857177734375, -0.0203094482421875, -0.00047779083251953125, -0.06317138671875, -0.01381683349609375, -0.005146026611328125, 0.0007658004760742188, 0.0012884140014648438, -0.02471923828125, 0.007778167724609375, -0.00537872314453125, 0.0154571533203125, -0.031951904296875, -0.016143798828125, 0.00592041015625, 0.0225067138671875, 0.02801513671875, 0.008087158203125, -0.00933074951171875, 0.034515380859375, 0.031951904296875, -0.017913818359375, -0.03271484375, -0.01202392578125, -0.050140380859375, -0.0251312255859375, 0.04473876953125, -0.005924224853515625, -0.03668212890625, -0.002960205078125, 0.004856109619140625, -0.0023784637451171875, 0.0101165771484375, -0.03887939453125, 0.031585693359375, -0.00601959228515625, 0.0294036865234375, -0.024658203125, -0.0206298828125, -0.0426025390625, 0.04840087890625, -0.0086669921875, 0.008270263671875, -0.004856109619140625, 0.03173828125, 0.0008172988891601562, -0.0284423828125, 0.04437255859375, -0.0179443359375, 0.03753662109375, -0.04998779296875, -0.0345458984375, -0.03759765625, 0.0811767578125, -0.01113128662109375, -0.0200653076171875, -0.01227569580078125, -0.00470733642578125, -0.00720977783203125, 0.0275421142578125, -0.00962066650390625, -0.0233001708984375, -0.04693603515625, 0.052276611328125, 0.0280914306640625, -0.018798828125, -0.052001953125, 0.049530029296875, -0.06744384765625, -0.0189971923828125, 0.0067596435546875, -0.047119140625, -0.0008616447448730469, 0.0313720703125, -0.054473876953125, 0.046661376953125, -0.0008807182312011719, -0.07049560546875, 0.011932373046875, 0.009124755859375, -0.0295867919921875, 0.0240325927734375, 0.0010213851928710938, 0.0595703125, -0.0130157470703125, 0.003513336181640625, -0.0194854736328125, -0.00533294677734375, -0.01088714599609375, 0.01256561279296875, -0.013641357421875, 0.0187835693359375, -0.0010080337524414062, -0.017822265625, 0.0240631103515625, 0.020263671875, -0.04803466796875, 0.036895751953125, -0.04510498046875, -0.006610870361328125, -0.00859832763671875, -0.03631591796875, -0.00646209716796875, -0.02850341796875, 0.03570556640625, 0.06536865234375, -0.0061187744140625, 0.04296875, -0.05224609375, -0.00014591217041015625, 0.03704833984375, -0.051025390625, -0.0022296905517578125, -0.0009527206420898438, 0.036102294921875, 0.02154541015625, -0.006778717041015625, -0.00528717041015625, -0.0179290771484375, 0.029754638671875, -0.0179443359375, 0.03387451171875, 0.01557159423828125, -0.0167388916015625, 0.04864501953125, -0.00835418701171875, 0.0300445556640625, -0.0250701904296875, 0.033966064453125, -0.027191162109375, -0.0248870849609375, 0.042449951171875, -0.04827880859375, 0.0288848876953125, 0.01222991943359375, -0.0032444000244140625, -0.0236663818359375, -0.05133056640625, 0.05316162109375, -0.002010345458984375, 0.0286102294921875, -0.05340576171875, -0.05364990234375, 0.0232086181640625, -0.071044921875, 0.037628173828125, 0.0123291015625, -0.01153564453125, 0.021820068359375, 0.0054931640625, 0.015960693359375, -0.02935791015625, 0.0033626556396484375, -0.0241851806640625, 0.01279449462890625, 0.0104217529296875, 0.01117706298828125, -0.0296630859375, -0.0103607177734375, 0.09344482421875, 0.0252532958984375, -0.052215576171875, 0.031494140625, -0.0028858184814453125, 0.054779052734375, 0.005054473876953125, -0.02276611328125, 0.03826904296875, 0.01751708984375, -0.021759033203125, 0.006351470947265625, -0.04022216796875, 0.0006237030029296875, -0.04742431640625, 0.06207275390625, 0.032318115234375, -0.01265716552734375, 0.030059814453125, 0.032501220703125, 0.0015039443969726562, 0.033477783203125, -0.021728515625, 0.0217742919921875, 0.0282135009765625, 0.0281982421875, 0.018035888671875, 0.0067596435546875, -0.0187225341796875, 0.0204620361328125, -0.01061248779296875, -0.00882720947265625, 0.01873779296875, 0.0234375, -0.01025390625, -0.00018036365509033203, -0.008697509765625, 0.00004202127456665039, -0.025970458984375, -0.0172576904296875, 0.040771484375, 0.0814208984375, -0.0179443359375, -0.005733489990234375, -0.0516357421875, -0.018707275390625, -0.0010318756103515625, 0.007549285888671875, 0.009796142578125, -0.025482177734375, 0.00754547119140625, 0.002887725830078125, -0.018341064453125, -0.0404052734375, -0.02264404296875, -0.042938232421875, -0.00548553466796875, -0.01229095458984375, -0.0105743408203125, -0.0209808349609375, -0.0014219284057617188, -0.0179443359375, 0.02630615234375, 0.01468658447265625, 0.0034961700439453125, -0.0263214111328125, -0.00579833984375, -0.027191162109375, -0.002025604248046875, 0.03131103515625, -0.0201416015625, 0.0213623046875, -0.033447265625, -0.04425048828125, -0.04498291015625, -0.039337158203125, -0.0606689453125, -0.01500701904296875, 0.0194091796875, -0.0008497238159179688, 0.023193359375, 0.0006008148193359375, -0.01450347900390625, -0.02093505859375, 0.0013303756713867188, 0.0099029541015625, 0.0148162841796875, -0.04949951171875, 0.08721923828125, 0.023284912109375, 0.0229339599609375, -0.002910614013671875, 0.056549072265625, -0.007015228271484375, 0.006549835205078125, 0.031890869140625, 0.0185699462890625, -0.046417236328125, -0.03173828125, -0.011138916015625, -0.044158935546875, 0.05120849609375, -0.0216522216796875, 0.0408935546875, 0.01161956787109375, 0.00832366943359375, -0.01739501953125, -0.053466796875, -0.01201629638671875, 0.042724609375, -0.00013887882232666016, -0.02093505859375, 0.043060302734375, -0.0041961669921875, 0.0018558502197265625, 0.00004374980926513672, -0.044342041015625, 0.01136016845703125, 0.06378173828125, 0.006778717041015625, 0.004405975341796875, 0.048919677734375, 0.00624847412109375, 0.040802001953125, 0.0369873046875, 0.0279388427734375, 0.037445068359375, 0.051177978515625, 0.0256195068359375, -0.10443115234375, 0.036834716796875, 0.0276947021484375, -0.010772705078125, 0.0413818359375, -0.037841796875, 0.0244903564453125, 0.044891357421875, 0.050811767578125, -0.08953857421875, 0.01116180419921875, -0.00443267822265625, 0.003265380859375, 0.07305908203125, 0.0292205810546875, -0.00970458984375, -0.059600830078125, 0.0181732177734375, -0.03863525390625, 0.0052337646484375, 0.006378173828125, -0.03387451171875, 0.004253387451171875, 0.0019588470458984375, 0.038055419921875, -0.0051116943359375, -0.011810302734375, -0.0491943359375, 0.00655364990234375, -0.0268096923828125, -0.040283203125, -0.014892578125, 0.030548095703125, -0.036529541015625, -0.06231689453125, 0.01910400390625, -0.04937744140625, 0.0095977783203125, -0.0225677490234375, -0.00994873046875, -0.0011196136474609375, 0.0225830078125, -0.0232696533203125, -0.006816864013671875, 0.0001118779182434082, -0.05010986328125, -0.05010986328125, -0.03961181640625, 0.02044677734375, 0.0008378028869628906, 0.0009870529174804688, 0.036407470703125, 0.001911163330078125, -0.07763671875, -0.004116058349609375, -0.031829833984375, 0.0151824951171875, -0.022125244140625, -0.00974273681640625, 0.032379150390625, 0.005229949951171875, -0.0084991455078125, -0.0151214599609375, -0.006023406982421875, -0.01751708984375, 0.03662109375, -0.022369384765625, 0.0213623046875, 0.03167724609375, -0.024566650390625, -0.052459716796875, 0.057403564453125, 0.005931854248046875, 0.0036468505859375, -0.0148773193359375, 0.01351165771484375, -0.007129669189453125, 0.0014934539794921875, -0.01483154296875, 0.0252532958984375, -0.038116455078125, 0.06817626953125, -0.049652099609375, -0.01369476318359375, 0.0421142578125, 0.048919677734375, 0.063720703125, 0.01287841796875, -0.029541015625, -0.0154876708984375, 0.05340576171875, 0.0223388671875, -0.0150146484375, 0.030731201171875, 0.0193634033203125, 0.03155517578125, 0.045501708984375, -0.034515380859375, 0.01715087890625, -0.02288818359375, 0.01678466796875, 0.04046630859375, 0.004547119140625, -0.01363372802734375, 0.0302734375, 0.05584716796875, -0.0026111602783203125, 0.0022182464599609375, 0.002399444580078125, -0.04327392578125, -0.024810791015625, 0.031280517578125, 0.0220794677734375, -0.016510009765625, -0.034881591796875, -0.00957489013671875, 0.03497314453125, 0.0185394287109375, 0.03790283203125, 0.060394287109375, 0.02728271484375, 0.044281005859375, 0.0177459716796875, 0.0302734375, 0.03240966796875, -0.01253509521484375, 0.053253173828125, -0.00039958953857421875, 0.0225982666015625, -0.06011962890625, -0.0215911865234375, 0.040313720703125, 0.07958984375, -0.0267181396484375, 0.01186370849609375, 0.025238037109375, 0.0148773193359375, 0.004058837890625, -0.04425048828125, 0.021484375, -0.0196533203125, -0.007251739501953125, -0.034698486328125, 0.0014619827270507812, 0.027984619140625, 0.01490020751953125, 0.012847900390625, 0.0513916015625, -0.05657958984375, -0.02911376953125, -0.0218658447265625, -0.042724609375, -0.0174713134765625, 0.047943115234375, 0.059539794921875, 0.0157928466796875, 0.02520751953125, -0.03466796875, 0.01464080810546875, -0.0046539306640625, 0.0175933837890625, -0.02862548828125, 0.0003387928009033203, -0.0018310546875, -0.004974365234375, 0.019744873046875, 0.06549072265625, 0.01375579833984375, 0.0247039794921875, -0.0240020751953125, -0.004161834716796875, 0.0221099853515625, -0.0053863525390625, -0.0223846435546875, 0.0244140625, -0.0204315185546875, 0.071533203125, 0.059234619140625, 0.0307769775390625, -0.045562744140625, 0.0225372314453125, 0.09539794921875, -0.0153350830078125, -0.013519287109375, 0.00911712646484375, -0.0175933837890625, 0.01099395751953125, 0.019317626953125, -0.02410888671875, 0.0089569091796875, -0.018951416015625, -0.016265869140625, 0.0229339599609375, -0.0211181640625, -0.0006628036499023438, 0.0248260498046875, -0.0159912109375, 0.0188140869140625, -0.0570068359375, -0.031646728515625, 0.030120849609375, 0.00957489013671875, -0.007808685302734375, 0.024749755859375, -0.0113983154296875, -0.035552978515625, -0.010894775390625, -0.0228271484375, -0.004596710205078125, 0.0195465087890625, 0.039886474609375, 0.032257080078125, -0.002277374267578125, 0.030975341796875, -0.01502227783203125, 0.0291748046875, -0.016326904296875, 0.0118560791015625, 0.025238037109375, 0.037506103515625, -0.0030460357666015625, -0.03814697265625, -0.0268096923828125, 0.03802490234375, 0.035919189453125, -0.0046844482421875, 0.0278778076171875, -0.0197296142578125, 0.003116607666015625, -0.038177490234375, -0.021759033203125, -0.0257720947265625, -0.0056304931640625, -0.00738525390625, -0.0288238525390625, 0.033050537109375, -0.00133514404296875, 0.01169586181640625, 0.060943603515625, -0.0023059844970703125, 0.015655517578125, 0.0124664306640625, -0.022674560546875, -0.005794525146484375, 0.01544952392578125, -0.0190277099609375, 0.00801849365234375, 0.042266845703125, -0.0173797607421875, 0.049224853515625, -0.002208709716796875, 0.032684326171875, 0.0345458984375, -0.0287322998046875, -0.01346588134765625, -0.039642333984375, 0.0293121337890625, 0.00571441650390625, -0.0049896240234375, -0.076416015625, 0.026641845703125, 0.0172882080078125, -0.030364990234375, -0.013031005859375, -0.0400390625, -0.0195770263671875, 0.03277587890625, -0.041534423828125, -0.004486083984375, -0.05145263671875, -0.007965087890625, -0.025482177734375, -0.015869140625, 0.01490020751953125, 0.00958251953125, -0.00511932373046875, -0.00926971435546875, -0.0200653076171875, -0.0001785755157470703, 0.01123809814453125, 0.038238525390625, -0.0289764404296875, -0.007663726806640625, -0.0263824462890625, -0.00243377685546875, -0.01094818115234375, 0.07000732421875, 0.06640625, -0.06365966796875, 0.029296875, 0.10107421875, 0.07366943359375, 0.1456298828125, 0.0144500732421875, -0.0152740478515625, 0.0110321044921875, 0.00806427001953125, 0.005413055419921875, -0.06768798828125, -0.00547027587890625, -0.03387451171875, 0.00785064697265625, -0.0259857177734375, 0.0157318115234375, 0.0196380615234375, -0.03582763671875, -0.07562255859375, -0.00798797607421875, -0.0189666748046875, -0.03765869140625, -0.0411376953125, -0.01849365234375, -0.0036373138427734375, 0.0243377685546875, -0.002841949462890625, -0.02392578125, -0.04638671875, 0.0204315185546875, 0.01052093505859375, 0.0028285980224609375, 0.050384521484375, -0.01837158203125, -0.060943603515625, -0.0241241455078125, -0.022918701171875, 0.009765625, -0.0175933837890625, 0.0224456787109375, 0.01081085205078125, 0.039794921875, -0.0175018310546875, -0.002605438232421875, -0.005847930908203125, -0.0063629150390625, 0.007450103759765625, 0.0197601318359375, -0.0033817291259765625, 0.0272674560546875, 0.01456451416015625, 0.0421142578125, 0.002346038818359375, -0.052703857421875, 0.007671356201171875, -0.004528045654296875, -0.05474853515625, -0.06280517578125, 0.03338623046875, -0.10577392578125, -0.06005859375, -0.009857177734375, 0.0145721435546875, -0.01654052734375, -0.03558349609375, -0.0177764892578125, -0.026092529296875, -0.0006165504455566406, -0.004848480224609375, 0.03875732421875, -0.0218963623046875, 0.004241943359375, 0.00555419921875, 0.05096435546875, -0.00246429443359375, 0.016357421875, 0.022979736328125, 0.09527587890625, 0.0184478759765625, -0.0185699462890625, -0.020263671875, 0.018035888671875, -0.00044226646423339844, 0.0286102294921875, -0.0177001953125, -0.04193115234375, 0.005176544189453125, 0.002956390380859375, -0.00860595703125, 0.02685546875, 0.0111236572265625, 0.0219879150390625, -0.00821685791015625, 0.0059661865234375, 0.0163421630859375, 0.0207061767578125, -0.02801513671875, 0.0799560546875, -0.033660888671875, -0.037628173828125, -0.045074462890625, -0.00452423095703125, -0.00440216064453125, 0.0118560791015625, -0.002704620361328125, -0.06939697265625, 0.04901123046875, 0.050872802734375, 0.0135345458984375, 0.0413818359375 ]
c59091e0d3f443b3938701a68b37490d54f2ab7e
Wordpress Stackexchange Q: How could I add button next to "edit image" button in "Attachment Details" How could I add button next to "edit image" button in "Attachment Details" This is the location I would like to add button, Do you have any recommend? A: I would recommend that you begin by having a look at a question asked more recently here. The best option would be to create a custom plugin so that the WP core doesn't get affected. Editing core files is never a good idea, plus you would lose any changes when updating WP.
Q: How could I add button next to "edit image" button in "Attachment Details" How could I add button next to "edit image" button in "Attachment Details" This is the location I would like to add button, Do you have any recommend? A: I would recommend that you begin by having a look at a question asked more recently here. The best option would be to create a custom plugin so that the WP core doesn't get affected. Editing core files is never a good idea, plus you would lose any changes when updating WP.
wordpress
{ "language": "en", "length": 95, "provenance": "stackexchange_00019.jsonl.gz:458494", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/199974" }
[ 0.0433349609375, -0.0023670196533203125, 0.023284912109375, 0.0144195556640625, 0.005901336669921875, -0.0261688232421875, 0.08026123046875, -0.033233642578125, 0.024200439453125, 0.0286407470703125, -0.006015777587890625, -0.003192901611328125, 0.0174407958984375, -0.025299072265625, -0.01387786865234375, -0.0009303092956542969, 0.039306640625, -0.027801513671875, 0.0253753662109375, 0.0022258758544921875, 0.0174560546875, 0.03448486328125, 0.0099639892578125, 0.0145111083984375, -0.01146697998046875, 0.0169830322265625, 0.06878662109375, -0.0143280029296875, 0.018524169921875, 0.00838470458984375, 0.0207366943359375, -0.047821044921875, 0.02325439453125, 0.0050506591796875, -0.011444091796875, 0.0008192062377929688, 0.00461578369140625, -0.005645751953125, -0.01226043701171875, 0.0139312744140625, 0.02105712890625, -0.0012292861938476562, 0.03070068359375, 0.0117950439453125, -0.00626373291015625, -0.006633758544921875, 0.0070343017578125, -0.04913330078125, 0.037933349609375, -0.024017333984375, -0.007366180419921875, 0.031463623046875, 0.011322021484375, -0.01531219482421875, -0.020751953125, -0.0242919921875, -0.031768798828125, 0.056640625, 0.01483154296875, 0.0033664703369140625, -0.0100555419921875, 0.0208282470703125, 0.005397796630859375, 0.005001068115234375, 0.019195556640625, -0.032012939453125, 0.0018434524536132812, 0.0086669921875, -0.0192718505859375, 0.017364501953125, 0.0328369140625, -0.015869140625, 0.021484375, -0.0401611328125, 0.02008056640625, 0.01456451416015625, -0.02587890625, -0.0144500732421875, 0.037261962890625, -0.01165771484375, 0.0033817291259765625, -0.005359649658203125, 0.035125732421875, -0.0209503173828125, 0.006099700927734375, -0.01438140869140625, -0.0018787384033203125, -0.0033416748046875, -0.01390838623046875, -0.005970001220703125, -0.0171661376953125, -0.07958984375, 0.01336669921875, 0.04766845703125, -0.01287841796875, 0.003276824951171875, 0.009246826171875, -0.0194549560546875, 0.026580810546875, 0.0205535888671875, 0.02593994140625, -0.07025146484375, 0.07427978515625, -0.029022216796875, -0.01490020751953125, 0.0021915435791015625, 0.032257080078125, 0.024566650390625, 0.01727294921875, 0.019500732421875, -0.0274658203125, 0.047393798828125, 0.0290679931640625, -0.0253143310546875, -0.0245513916015625, -0.01045989990234375, 0.00652313232421875, 0.035888671875, 0.028106689453125, 0.0227813720703125, -0.0153045654296875, -0.0189208984375, -0.0104217529296875, 0.041229248046875, -0.005157470703125, -0.0175933837890625, -0.0137481689453125, 0.0165557861328125, 0.0279083251953125, -0.00014388561248779297, -0.046722412109375, 0.0247650146484375, 0.078369140625, 0.0157012939453125, 0.01221466064453125, -0.004543304443359375, -0.00839996337890625, -0.0178070068359375, 0.00818634033203125, -0.032073974609375, 0.021881103515625, -0.0010442733764648438, 0.01453399658203125, -0.005191802978515625, 0.004962921142578125, 0.0254364013671875, 0.020050048828125, 0.0215606689453125, 0.002727508544921875, -0.08074951171875, 0.043914794921875, -0.0205078125, 0.0283966064453125, -0.015899658203125, -0.0022373199462890625, -0.0208892822265625, 0.02166748046875, -0.0226287841796875, -0.005748748779296875, -0.032440185546875, 0.00374603271484375, 0.01296234130859375, 0.051727294921875, -0.01139068603515625, -0.021026611328125, -0.006496429443359375, -0.06463623046875, -0.011505126953125, 0.02239990234375, 0.06304931640625, 0.00797271728515625, -0.0070037841796875, -0.02374267578125, 0.01120758056640625, -0.01404571533203125, -0.00547027587890625, 0.0309906005859375, 0.0011043548583984375, -0.0035228729248046875, 0.10223388671875, 0.03509521484375, -0.022613525390625, 0.048126220703125, -0.024139404296875, -0.04864501953125, 0.03271484375, -0.01149749755859375, 0.0631103515625, 0.0241546630859375, 0.021697998046875, -0.00341796875, 0.006855010986328125, -0.03265380859375, 0.0165252685546875, -0.039154052734375, -0.007526397705078125, -0.0306396484375, 0.01708984375, -0.04791259765625, 0.02239990234375, -0.0239105224609375, 0.020233154296875, -0.01312255859375, 0.01085662841796875, 0.0015430450439453125, -0.0060577392578125, 0.0043792724609375, 0.02099609375, 0.003925323486328125, -0.01004791259765625, 0.014251708984375, 0.00982666015625, 0.02667236328125, -0.0992431640625, -0.042510986328125, 0.033477783203125, 0.0015058517456054688, 0.00429534912109375, 0.0284576416015625, 0.0345458984375, 0.00972747802734375, -0.00550079345703125, -0.0145111083984375, -0.0219879150390625, 0.01061248779296875, -0.01355743408203125, -0.01494598388671875, -0.02020263671875, -0.027130126953125, 0.022705078125, -0.0703125, 0.004482269287109375, 0.0219879150390625, 0.0182037353515625, -0.0182342529296875, 0.0107574462890625, 0.0025577545166015625, -0.0208587646484375, -0.0018033981323242188, 0.029937744140625, 0.00881195068359375, 0.0377197265625, -0.005588531494140625, 0.060577392578125, 0.058685302734375, 0.0236358642578125, 0.01190948486328125, 0.032928466796875, 0.00624847412109375, 0.036590576171875, -0.006183624267578125, -0.013092041015625, 0.01454925537109375, -0.05303955078125, 0.0002231597900390625, 0.0355224609375, -0.048126220703125, 0.0098114013671875, -0.0237579345703125, -0.00623321533203125, -0.00948333740234375, -0.037841796875, 0.01358795166015625, -0.0267791748046875, 0.0171966552734375, 0.03765869140625, 0.0511474609375, 0.0433349609375, -0.0305023193359375, 0.018951416015625, -0.00574493408203125, -0.02117919921875, -0.002918243408203125, 0.0248260498046875, -0.04595947265625, -0.00537872314453125, -0.01043701171875, 0.0230865478515625, -0.0176239013671875, -0.0031490325927734375, -0.031005859375, -0.016998291015625, -0.02685546875, -0.0192413330078125, 0.01294708251953125, -0.049713134765625, 0.00943756103515625, -0.0262298583984375, -0.00988006591796875, -0.044219970703125, 0.01387786865234375, -0.0013780593872070312, -0.01519012451171875, 0.008148193359375, -0.006877899169921875, -0.0289306640625, 0.002613067626953125, -0.0171356201171875, 0.01422119140625, -0.00926971435546875, 0.039031982421875, 0.0667724609375, 0.00024068355560302734, -0.0003616809844970703, -0.002666473388671875, -0.0012340545654296875, -0.0228424072265625, 0.01129913330078125, -0.0006189346313476562, 0.002986907958984375, -0.04180908203125, 0.032745361328125, 0.0021114349365234375, 0.042816162109375, -0.053192138671875, -0.0712890625, -0.040496826171875, -0.0040130615234375, -0.10809326171875, -0.06549072265625, -0.01465606689453125, -0.06097412109375, 0.00643157958984375, 0.018402099609375, -0.0288543701171875, -0.0201873779296875, 0.076171875, 0.0008482933044433594, -0.07318115234375, -0.0084686279296875, 0.036895751953125, -0.0302581787109375, -0.01540374755859375, -0.02471923828125, 0.00482177734375, 0.006595611572265625, -0.00974273681640625, 0.044342041015625, -0.01061248779296875, -0.0567626953125, -0.007640838623046875, 0.005985260009765625, 0.01678466796875, 0.0139617919921875, 0.044158935546875, -0.01557159423828125, -0.00788116455078125, 0.00963592529296875, 0.04754638671875, 0.052001953125, -0.05303955078125, 0.00572967529296875, -0.046295166015625, -0.03875732421875, -0.00701141357421875, 0.01142120361328125, 0.0293731689453125, -0.029266357421875, 0.0246429443359375, -0.05322265625, 0.0013179779052734375, 0.005367279052734375, -0.02081298828125, -0.00720977783203125, -0.01275634765625, -0.01139068603515625, 0.00533294677734375, -0.0032253265380859375, 0.0313720703125, -0.0064544677734375, 0.00838470458984375, 0.0010976791381835938, 0.03369140625, -0.011077880859375, 0.01300811767578125, -0.04974365234375, -0.0284423828125, -0.02618408203125, 0.0236358642578125, -0.0229949951171875, 0.03314208984375, -0.01082611083984375, 0.042510986328125, -0.0234222412109375, -0.029022216796875, 0.0234375, -0.037567138671875, 0.0132904052734375, -0.047332763671875, -0.0128021240234375, -0.004302978515625, 0.0802001953125, -0.05169677734375, -0.023529052734375, -0.002452850341796875, 0.020843505859375, 0.014862060546875, -0.029205322265625, -0.002681732177734375, -0.03533935546875, -0.044708251953125, 0.0287628173828125, 0.0123443603515625, -0.0226287841796875, -0.029693603515625, 0.039276123046875, -0.04010009765625, -0.0213165283203125, 0.039215087890625, -0.03106689453125, -0.00513458251953125, 0.0272064208984375, -0.04119873046875, 0.025146484375, -0.04266357421875, -0.0219268798828125, -0.100341796875, -0.0022296905517578125, -0.01248931884765625, 0.049591064453125, -0.00402069091796875, 0.0176239013671875, -0.0457763671875, 0.03607177734375, -0.01442718505859375, 0.007904052734375, 0.0008502006530761719, 0.042877197265625, 0.018157958984375, -0.028778076171875, -0.004329681396484375, -0.02960205078125, -0.01222991943359375, -0.030303955078125, -0.027679443359375, -0.0128021240234375, -0.0263519287109375, -0.01544952392578125, 0.0145416259765625, -0.01505279541015625, -0.030029296875, -0.0216827392578125, -0.01305389404296875, 0.05914306640625, -0.0303192138671875, 0.0188446044921875, -0.058258056640625, -0.0584716796875, 0.00811004638671875, -0.008758544921875, -0.025634765625, 0.01751708984375, 0.062408447265625, 0.0246429443359375, -0.01039886474609375, -0.0672607421875, 0.0205078125, 0.03802490234375, -0.00136566162109375, 0.01357269287109375, 0.016845703125, -0.0180511474609375, 0.0007863044738769531, 0.0300140380859375, 0.01555633544921875, -0.04217529296875, 0.0582275390625, -0.009490966796875, -0.00846099853515625, 0.0209808349609375, -0.0240325927734375, 0.0306549072265625, 0.0127410888671875, -0.0408935546875, 0.0037555694580078125, -0.041748046875, 0.0296630859375, -0.03466796875, 0.0753173828125, -0.0028324127197265625, -0.0196685791015625, -0.006259918212890625, 0.0258636474609375, 0.06268310546875, 0.01406097412109375, 0.0035991668701171875, 0.0005059242248535156, 0.017791748046875, -0.00525665283203125, -0.0010538101196289062, -0.0079498291015625, -0.0270233154296875, 0.0311737060546875, 0.0029163360595703125, -0.004146575927734375, -0.0037975311279296875, -0.02252197265625, 0.05853271484375, 0.006267547607421875, -0.037933349609375, 0.0158843994140625, -0.0160675048828125, 0.0188446044921875, 0.00843048095703125, 0.0022144317626953125, -0.01300048828125, -0.010101318359375, 0.00028228759765625, -0.006786346435546875, -0.01192474365234375, -0.0006289482116699219, -0.019805908203125, 0.032379150390625, 0.0223236083984375, -0.01971435546875, 0.059783935546875, -0.00789642333984375, -0.034332275390625, 0.0231170654296875, 0.01085662841796875, 0.0231781005859375, 0.043792724609375, -0.0215301513671875, 0.0229644775390625, 0.033447265625, -0.0099334716796875, -0.04339599609375, 0.00620269775390625, -0.0148773193359375, 0.01617431640625, 0.002655029296875, 0.044952392578125, -0.011138916015625, -0.0167083740234375, 0.030731201171875, -0.058441162109375, -0.017608642578125, 0.0167236328125, 0.02435302734375, -0.053558349609375, 0.0144805908203125, 0.06024169921875, -0.001129150390625, -0.0079803466796875, 0.0014696121215820312, -0.003406524658203125, -0.00818634033203125, 0.007160186767578125, 0.004711151123046875, -0.0295257568359375, 0.00262451171875, 0.00797271728515625, 0.007701873779296875, -0.0014591217041015625, -0.0213623046875, -0.0105133056640625, -0.034027099609375, -0.01806640625, 0.00839996337890625, 0.060760498046875, -0.01294708251953125, -0.0278472900390625, -0.018157958984375, 0.0382080078125, -0.005962371826171875, 0.00940704345703125, 0.005191802978515625, -0.04296875, -0.005950927734375, -0.041534423828125, -0.0384521484375, -0.0380859375, -0.0274658203125, -0.01491546630859375, -0.0362548828125, 0.0232696533203125, 0.017822265625, 0.03167724609375, -0.040985107421875, -0.06134033203125, -0.0259857177734375, 0.035614013671875, 0.04620361328125, 0.08819580078125, 0.01837158203125, 0.01441192626953125, 0.007785797119140625, 0.048065185546875, 0.011566162109375, -0.01580810546875, -0.029052734375, -0.03564453125, 0.017547607421875, -0.03717041015625, -0.02606201171875, -0.031829833984375, 0.0007052421569824219, 0.00949859619140625, -0.001392364501953125, 0.0037288665771484375, 0.0286712646484375, -0.042144775390625, -0.004474639892578125, -0.02105712890625, 0.03643798828125, -0.06884765625, -0.0031299591064453125, 0.0278778076171875, -0.0213775634765625, 0.01222991943359375, -0.017913818359375, 0.01464080810546875, -0.01393890380859375, -0.015045166015625, -0.0269012451171875, 0.0247650146484375, -0.03314208984375, 0.04278564453125, 0.044464111328125, 0.00957489013671875, 0.038055419921875, 0.0277557373046875, 0.0130157470703125, -0.0217742919921875, 0.038665771484375, -0.044586181640625, -0.0173187255859375, 0.06256103515625, 0.0210418701171875, -0.0312347412109375, 0.056427001953125, -0.023590087890625, 0.046234130859375, 0.0248870849609375, 0.059600830078125, -0.068359375, 0.035980224609375, -0.0115203857421875, -0.002994537353515625, 0.0933837890625, 0.0203094482421875, 0.01010894775390625, -0.01213836669921875, 0.03363037109375, -0.03546142578125, 0.0150604248046875, 0.01407623291015625, -0.01262664794921875, -0.0037860870361328125, -0.01837158203125, 0.011444091796875, 0.01959228515625, -0.0523681640625, 0.004253387451171875, 0.05169677734375, -0.0291290283203125, -0.01291656494140625, 0.0122528076171875, -0.008697509765625, -0.0216827392578125, -0.03131103515625, 0.0169830322265625, -0.0018167495727539062, -0.01203155517578125, 0.03411865234375, -0.0216522216796875, 0.007755279541015625, 0.01396942138671875, -0.01172637939453125, 0.0380859375, -0.0154571533203125, -0.019439697265625, 0.0058746337890625, -0.01169586181640625, -0.006618499755859375, 0.0037841796875, -0.022491455078125, -0.0003483295440673828, -0.033599853515625, 0.019256591796875, -0.015960693359375, -0.00893402099609375, 0.10101318359375, -0.0396728515625, -0.0252838134765625, 0.01898193359375, 0.008697509765625, -0.0238189697265625, 0.015777587890625, -0.04119873046875, -0.042572021484375, -0.01398468017578125, -0.0179443359375, -0.053741455078125, 0.04730224609375, 0.01143646240234375, -0.042572021484375, 0.06524658203125, -0.0174560546875, 0.007305145263671875, -0.0034885406494140625, 0.037750244140625, 0.0014276504516601562, 0.014068603515625, -0.0038356781005859375, 0.048095703125, -0.0360107421875, 0.015106201171875, -0.04730224609375, 0.0081024169921875, -0.00658416748046875, 0.0361328125, 0.0927734375, 0.0297698974609375, -0.0281219482421875, -0.008087158203125, 0.07769775390625, 0.052490234375, 0.007801055908203125, 0.04510498046875, 0.037567138671875, -0.03485107421875, 0.01641845703125, 0.07086181640625, 0.05908203125, -0.047393798828125, -0.00461578369140625, 0.039703369140625, 0.0200042724609375, 0.03594970703125, 0.002445220947265625, 0.04443359375, 0.004138946533203125, 0.003597259521484375, 0.022979736328125, -0.0288848876953125, -0.01427459716796875, 0.0316162109375, -0.0098724365234375, 0.017181396484375, 0.006305694580078125, -0.0180816650390625, 0.02252197265625, -0.00008732080459594727, 0.04681396484375, 0.0191497802734375, 0.025177001953125, 0.0033054351806640625, 0.025970458984375, 0.038116455078125, 0.066650390625, -0.04345703125, -0.006622314453125, -0.01678466796875, 0.01317596435546875, -0.057464599609375, -0.0242462158203125, 0.0528564453125, 0.023773193359375, -0.01153564453125, 0.0166168212890625, 0.01971435546875, 0.0012350082397460938, -0.005054473876953125, -0.03131103515625, 0.03009033203125, -0.001220703125, -0.0112457275390625, -0.04425048828125, -0.00923919677734375, 0.0469970703125, 0.0340576171875, 0.01338958740234375, 0.02197265625, -0.0418701171875, -0.040069580078125, 0.01076507568359375, -0.019317626953125, 0.00414276123046875, -0.01666259765625, -0.0008463859558105469, 0.007152557373046875, 0.04217529296875, 0.02276611328125, 0.0014200210571289062, 0.0229949951171875, 0.0003643035888671875, 0.0146484375, -0.007694244384765625, -0.02099609375, -0.005443572998046875, 0.005390167236328125, 0.029327392578125, 0.027313232421875, 0.02252197265625, 0.01561737060546875, -0.006359100341796875, 0.01107025146484375, 0.0107269287109375, -0.029998779296875, 0.04351806640625, -0.035736083984375, 0.0838623046875, 0.070556640625, 0.0194091796875, -0.029693603515625, 0.0007772445678710938, 0.11407470703125, -0.03314208984375, 0.01517486572265625, -0.01314544677734375, -0.0200958251953125, 0.06341552734375, -0.0200347900390625, 0.0443115234375, -0.004444122314453125, -0.041595458984375, 0.01087188720703125, -0.04986572265625, -0.0645751953125, 0.020782470703125, 0.040069580078125, -0.048004150390625, 0.044219970703125, -0.035491943359375, -0.006359100341796875, 0.0123748779296875, -0.031524658203125, 0.0238800048828125, 0.0281982421875, 0.0008788108825683594, 0.01201629638671875, -0.045013427734375, -0.00026297569274902344, -0.010894775390625, 0.00794219970703125, 0.01538848876953125, 0.0634765625, -0.00832366943359375, 0.01413726806640625, 0.0189666748046875, -0.01055908203125, 0.0015172958374023438, 0.0296630859375, 0.005405426025390625, 0.0114288330078125, -0.0103302001953125, -0.02435302734375, 0.00778961181640625, 0.036102294921875, 0.0121612548828125, -0.029510498046875, 0.03057861328125, -0.038360595703125, -0.0015687942504882812, -0.014251708984375, 0.0189971923828125, -0.007602691650390625, -0.0024242401123046875, -0.0017957687377929688, -0.003925323486328125, 0.02325439453125, 0.00634002685546875, -0.009063720703125, 0.019561767578125, 0.01910400390625, 0.02392578125, 0.0225830078125, 0.016143798828125, 0.0413818359375, 0.03082275390625, -0.050872802734375, -0.024444580078125, -0.0350341796875, -0.016815185546875, -0.01389312744140625, -0.00849151611328125, 0.016876220703125, -0.0147247314453125, -0.0187225341796875, -0.03326416015625, -0.00041937828063964844, 0.0219573974609375, -0.0037555694580078125, 0.00914764404296875, -0.03424072265625, 0.0015468597412109375, 0.00707244873046875, 0.01959228515625, -0.019134521484375, -0.0531005859375, 0.002696990966796875, 0.00911712646484375, -0.0163421630859375, 0.0005083084106445312, -0.02642822265625, -0.0013256072998046875, 0.051055908203125, 0.032470703125, -0.09814453125, 0.040618896484375, 0.00738525390625, 0.050079345703125, 0.0011892318725585938, -0.046905517578125, -0.00827789306640625, 0.06158447265625, -0.00632476806640625, -0.049346923828125, -0.0377197265625, 0.0262451171875, -0.04766845703125, 0.0506591796875, 0.048797607421875, -0.0428466796875, 0.038604736328125, 0.05950927734375, 0.07501220703125, 0.10748291015625, -0.016448974609375, -0.03759765625, -0.024139404296875, -0.0031528472900390625, 0.0313720703125, 0.002300262451171875, 0.0109405517578125, -0.0350341796875, -0.05438232421875, -0.061737060546875, 0.038482666015625, 0.01206207275390625, -0.050079345703125, -0.12042236328125, 0.014434814453125, -0.0325927734375, -0.04376220703125, -0.0606689453125, 0.05889892578125, 0.002960205078125, -0.0352783203125, -0.0272216796875, 0.02655029296875, 0.0232391357421875, 0.0181884765625, 0.006618499755859375, 0.0145263671875, -0.016510009765625, -0.0007829666137695312, -0.038299560546875, 0.040130615234375, 0.03619384765625, 0.0189361572265625, 0.0229339599609375, -0.011962890625, 0.033203125, 0.019927978515625, -0.054779052734375, -0.0007276535034179688, -0.0189361572265625, 0.0031833648681640625, -0.0168304443359375, -0.03515625, -0.0312347412109375, 0.01314544677734375, 0.07061767578125, 0.067626953125, 0.024658203125, -0.05218505859375, 0.06964111328125, 0.019561767578125, -0.055023193359375, 0.01412200927734375, 0.00904083251953125, -0.0078277587890625, -0.01358795166015625, -0.00296783447265625, -0.03607177734375, -0.03179931640625, 0.0350341796875, -0.062744140625, -0.00479888916015625, -0.0238037109375, -0.005947113037109375, -0.0548095703125, 0.006496429443359375, 0.0787353515625, -0.03167724609375, 0.04852294921875, -0.00138092041015625, 0.007740020751953125, 0.06439208984375, 0.01093292236328125, -0.010589599609375, 0.002140045166015625, -0.01476287841796875, 0.0288543701171875, -0.007801055908203125, 0.035308837890625, -0.031524658203125, -0.005954742431640625, -0.01554107666015625, 0.04638671875, 0.0170745849609375, 0.035064697265625, -0.0650634765625, 0.07086181640625, 0.003543853759765625, 0.07403564453125, -0.0138092041015625, 0.05816650390625, -0.015380859375, 0.03643798828125, -0.0100860595703125, -0.006134033203125, 0.025909423828125, -0.034423828125, 0.014434814453125, 0.0205841064453125, 0.007129669189453125, 0.00208282470703125, -0.02081298828125, 0.021759033203125, -0.004512786865234375, -0.0018625259399414062 ]
c9b598fcfe3daaf9d530f39727b1eb76237fd814
Wordpress Stackexchange Q: When can you get current page ID and initialize hooks right after? I'm developing a plugin and need to know on what page user is and then add specific hooks and filters for that page. And my problem is that is_page() and the_ID() doesn't work outside of wp, wp_loaded, init actions, but if i use these actions then i can't initialize hooks because for them to work properly they must be added before those actions. So my question being, is there any hook from witch i can call the_ID(), get a proper result and then add another hooks for that page? Or is it possible only using PHP's $_SERVER['REQUEST_URI']? A: The earliest safe hook to get post information is the template_redirect hook. All the hooks in question runs before Wordpress has setup postdata, so any post info are still unavailable at that point. The globals like $wp_query and $post will still contain no data, that is why your efforts returns nothing. EDIT Extra info as per comment by @TheDeadMedic Actually wp is an earlier, still-safe hook - just make sure to use get_queried_object() instead of relying on $post global
Q: When can you get current page ID and initialize hooks right after? I'm developing a plugin and need to know on what page user is and then add specific hooks and filters for that page. And my problem is that is_page() and the_ID() doesn't work outside of wp, wp_loaded, init actions, but if i use these actions then i can't initialize hooks because for them to work properly they must be added before those actions. So my question being, is there any hook from witch i can call the_ID(), get a proper result and then add another hooks for that page? Or is it possible only using PHP's $_SERVER['REQUEST_URI']? A: The earliest safe hook to get post information is the template_redirect hook. All the hooks in question runs before Wordpress has setup postdata, so any post info are still unavailable at that point. The globals like $wp_query and $post will still contain no data, that is why your efforts returns nothing. EDIT Extra info as per comment by @TheDeadMedic Actually wp is an earlier, still-safe hook - just make sure to use get_queried_object() instead of relying on $post global
wordpress
{ "language": "en", "length": 190, "provenance": "stackexchange_00019.jsonl.gz:458499", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/199991" }
[ 0.021575927734375, -0.006927490234375, 0.0012941360473632812, 0.00479888916015625, -0.015533447265625, -0.00789642333984375, 0.0240478515625, -0.033538818359375, -0.0045928955078125, 0.01580810546875, -0.03350830078125, 0.02362060546875, -0.0347900390625, -0.0173797607421875, -0.0040435791015625, -0.0304718017578125, 0.04571533203125, -0.046295166015625, 0.0161590576171875, -0.0211181640625, 0.00861358642578125, 0.004520416259765625, 0.06927490234375, 0.047332763671875, 0.052215576171875, -0.052947998046875, 0.0175323486328125, -0.0086669921875, 0.0404052734375, -0.01131439208984375, 0.0276641845703125, -0.0185546875, 0.02374267578125, 0.004032135009765625, -0.00443267822265625, 0.0194854736328125, 0.0013093948364257812, 0.0005326271057128906, 0.0193023681640625, 0.0215911865234375, 0.029266357421875, -0.0115509033203125, 0.00856781005859375, 0.02587890625, -0.00658416748046875, -0.04132080078125, 0.027130126953125, -0.036865234375, 0.0246124267578125, 0.044097900390625, 0.0101470947265625, 0.01427459716796875, 0.00563812255859375, 0.029296875, -0.005512237548828125, 0.006557464599609375, 0.00434112548828125, -0.0217437744140625, 0.05029296875, 0.01511383056640625, -0.030548095703125, -0.0460205078125, 0.0295257568359375, -0.047332763671875, 0.019195556640625, 0.014007568359375, 0.01239776611328125, 0.0156097412109375, -0.038818359375, 0.00742340087890625, -0.0003294944763183594, -0.0513916015625, -0.0173187255859375, 0.0190277099609375, -0.0216064453125, -0.045562744140625, 0.0616455078125, -0.01416778564453125, -0.0284271240234375, 0.045745849609375, -0.03173828125, -0.025909423828125, -0.056182861328125, 0.0268096923828125, -0.038787841796875, 0.0095367431640625, -0.022796630859375, 0.01238250732421875, -0.03411865234375, -0.00799560546875, -0.03924560546875, 0.0086212158203125, 0.0242919921875, -0.04290771484375, -0.06610107421875, 0.006988525390625, 0.0241241455078125, 0.06744384765625, -0.0203857421875, 0.01873779296875, -0.019683837890625, -0.04119873046875, 0.0443115234375, -0.049957275390625, 0.00994110107421875, 0.0218963623046875, 0.02545166015625, 0.0169219970703125, 0.025177001953125, 0.0015935897827148438, -0.0235137939453125, -0.001987457275390625, 0.0008215904235839844, 0.00984954833984375, -0.039459228515625, 0.0093841552734375, -0.0118865966796875, -0.035308837890625, -0.00920867919921875, -0.003170013427734375, 0.01971435546875, 0.0182952880859375, 0.004444122314453125, 0.01323699951171875, -0.00347900390625, -0.0052490234375, -0.033782958984375, -0.0235137939453125, 0.0014219284057617188, 0.0013790130615234375, -0.01641845703125, 0.0148773193359375, 0.0609130859375, 0.0261688232421875, -0.01045989990234375, -0.0088348388671875, 0.007656097412109375, -0.03265380859375, 0.01251983642578125, -0.01305389404296875, -0.033660888671875, -0.0226287841796875, 0.00753021240234375, -0.0421142578125, 0.00925445556640625, 0.011077880859375, 0.00295257568359375, 0.0191192626953125, 0.006290435791015625, -0.01800537109375, 0.020599365234375, -0.027252197265625, 0.0105743408203125, 0.0207672119140625, 0.01629638671875, -0.007144927978515625, 0.0404052734375, -0.044219970703125, 0.0218658447265625, -0.023712158203125, 0.055694580078125, -0.004688262939453125, -0.00957489013671875, -0.01001739501953125, -0.047943115234375, -0.0139923095703125, -0.042510986328125, -0.00954437255859375, 0.019012451171875, 0.027374267578125, 0.033355712890625, 0.0196075439453125, -0.03594970703125, 0.005504608154296875, -0.0038356781005859375, -0.0306549072265625, -0.017852783203125, 0.003627777099609375, 0.044189453125, -0.002445220947265625, -0.02752685546875, -0.0230255126953125, 0.033416748046875, -0.0122528076171875, -0.0670166015625, 0.09075927734375, 0.029083251953125, 0.09210205078125, -0.0252838134765625, 0.0050811767578125, 0.062225341796875, 0.0687255859375, -0.06756591796875, 0.053497314453125, -0.0013246536254882812, -0.01453399658203125, 0.0160675048828125, 0.0169830322265625, -0.00566864013671875, -0.037353515625, 0.01393890380859375, -0.0003235340118408203, -0.007213592529296875, -0.0014200210571289062, -0.08038330078125, 0.00807952880859375, -0.033111572265625, 0.037811279296875, 0.045318603515625, -0.0094451904296875, -0.00098419189453125, -0.0251922607421875, -0.0010557174682617188, -0.00876617431640625, -0.05523681640625, 0.015655517578125, -0.050506591796875, 0.01186370849609375, -0.018402099609375, 0.053131103515625, -0.022705078125, -0.0078277587890625, -0.0228118896484375, -0.0372314453125, 0.04107666015625, -0.009857177734375, -0.003082275390625, -0.0301055908203125, 0.021820068359375, 0.0017614364624023438, -0.03240966796875, 0.0273284912109375, -0.01418304443359375, 0.031402587890625, -0.01470184326171875, -0.007228851318359375, 0.00548553466796875, -0.03778076171875, 0.035308837890625, 0.0236663818359375, 0.039093017578125, 0.041778564453125, 0.024200439453125, 0.01085662841796875, -0.0010900497436523438, -0.072998046875, 0.0199432373046875, -0.0271148681640625, 0.03326416015625, 0.08465576171875, 0.034332275390625, 0.03570556640625, -0.0205535888671875, 0.016387939453125, 0.04095458984375, 0.016632080078125, -0.01418304443359375, -0.0168609619140625, -0.036041259765625, -0.00739288330078125, 0.01336669921875, -0.04522705078125, -0.034637451171875, -0.02630615234375, 0.05145263671875, -0.0157470703125, 0.034332275390625, 0.024383544921875, -0.005619049072265625, -0.018524169921875, 0.01226806640625, -0.0028133392333984375, -0.00566864013671875, 0.0267181396484375, 0.0229034423828125, -0.0296478271484375, -0.0189208984375, -0.01256561279296875, 0.00010019540786743164, 0.0035858154296875, -0.0096435546875, -0.0135650634765625, -0.0249786376953125, -0.00611114501953125, 0.0244903564453125, -0.0273284912109375, 0.00732421875, 0.0200347900390625, 0.0418701171875, -0.0015201568603515625, 0.0223236083984375, -0.001522064208984375, -0.061737060546875, 0.08544921875, -0.0258026123046875, -0.0360107421875, 0.0142974853515625, -0.015472412109375, 0.024017333984375, -0.01332855224609375, 0.047882080078125, 0.049102783203125, -0.007598876953125, -0.0011463165283203125, 0.0036067962646484375, -0.0194244384765625, 0.0005731582641601562, -0.00916290283203125, -0.0034656524658203125, -0.0224456787109375, -0.0094757080078125, 0.054901123046875, 0.0094757080078125, 0.09295654296875, -0.04376220703125, -0.06585693359375, -0.0078887939453125, 0.0078887939453125, -0.08624267578125, -0.08355712890625, -0.0159149169921875, -0.050445556640625, -0.0139617919921875, -0.0303802490234375, -0.0186004638671875, 0.016845703125, -0.01666259765625, -0.00200653076171875, -0.0187225341796875, -0.0298004150390625, -0.0640869140625, -0.056121826171875, -0.05755615234375, 0.04058837890625, -0.01116180419921875, -0.0027008056640625, 0.0002605915069580078, 0.032958984375, 0.00592803955078125, -0.0313720703125, -0.005191802978515625, 0.0176239013671875, -0.025604248046875, -0.038421630859375, -0.06134033203125, 0.03375244140625, 0.032318115234375, 0.0029735565185546875, -0.04705810546875, 0.0010509490966796875, 0.02056884765625, -0.02783203125, -0.0191650390625, -0.02703857421875, -0.00983428955078125, 0.042205810546875, 0.024932861328125, -0.0284271240234375, 0.0284881591796875, -0.053619384765625, 0.002094268798828125, -0.0290679931640625, -0.05828857421875, -0.0257110595703125, 0.027679443359375, 0.0009446144104003906, -0.00984954833984375, -0.0258941650390625, 0.0017805099487304688, -0.033294677734375, 0.0174102783203125, 0.006717681884765625, 0.0255889892578125, -0.01995849609375, -0.00601959228515625, -0.00943756103515625, 0.0084381103515625, -0.0025959014892578125, -0.0262908935546875, -0.01654052734375, 0.0265045166015625, -0.006404876708984375, 0.0011568069458007812, -0.0347900390625, -0.0288543701171875, 0.033294677734375, 0.01020050048828125, 0.02294921875, -0.020904541015625, -0.0280914306640625, -0.00484466552734375, 0.0770263671875, -0.050811767578125, -0.0087127685546875, -0.00551605224609375, 0.01270294189453125, -0.0224151611328125, -0.035308837890625, -0.04449462890625, -0.00876617431640625, -0.0804443359375, -0.006847381591796875, -0.000919342041015625, -0.01421356201171875, -0.0147247314453125, 0.05255126953125, -0.043792724609375, -0.0261688232421875, 0.034515380859375, -0.039093017578125, -0.01548004150390625, 0.04345703125, -0.035736083984375, 0.0205078125, -0.03570556640625, -0.019866943359375, -0.08697509765625, -0.01183319091796875, -0.016815185546875, 0.035858154296875, 0.016632080078125, -0.040679931640625, -0.0304412841796875, 0.01450347900390625, 0.0078277587890625, 0.0304107666015625, -0.0111846923828125, -0.0023212432861328125, 0.0174560546875, -0.0218963623046875, -0.01324462890625, -0.00904083251953125, 0.007244110107421875, -0.00989532470703125, -0.0080413818359375, -0.0123291015625, -0.062347412109375, -0.048309326171875, -0.044525146484375, -0.0309906005859375, -0.068115234375, -0.036163330078125, -0.01308441162109375, 0.005619049072265625, -0.0216064453125, 0.0124969482421875, -0.023529052734375, -0.07855224609375, 0.0419921875, -0.006134033203125, -0.004268646240234375, -0.0116424560546875, 0.055389404296875, 0.0277862548828125, -0.0186004638671875, 0.04473876953125, -0.030181884765625, 0.03338623046875, 0.0186767578125, 0.02362060546875, 0.00812530517578125, -0.032012939453125, 0.06951904296875, 0.0298919677734375, -0.003269195556640625, -0.01116180419921875, 0.049224853515625, -0.00598907470703125, -0.01031494140625, 0.0084228515625, -0.01953125, 0.0187835693359375, -0.0051727294921875, -0.0478515625, -0.0034198760986328125, 0.01611328125, 0.0243377685546875, -0.07025146484375, 0.07891845703125, -0.0024013519287109375, -0.0086212158203125, 0.005901336669921875, 0.0240478515625, 0.012939453125, 0.0113983154296875, 0.00641632080078125, -0.006473541259765625, -0.0026035308837890625, 0.01117706298828125, 0.046661376953125, 0.01549530029296875, 0.006381988525390625, 0.043914794921875, 0.0049591064453125, 0.004695892333984375, 0.01212310791015625, -0.0078582763671875, 0.052276611328125, -0.046295166015625, -0.06756591796875, -0.01129913330078125, -0.03302001953125, -0.01351165771484375, 0.052032470703125, -0.01238250732421875, 0.047088623046875, 0.0305938720703125, -0.01529693603515625, -0.021087646484375, -0.0181884765625, -0.0037174224853515625, -0.05523681640625, 0.011566162109375, -0.020538330078125, 0.007701873779296875, 0.0222625732421875, 0.043670654296875, 0.01654052734375, 0.027984619140625, -0.031402587890625, 0.047454833984375, 0.0165863037109375, 0.03302001953125, 0.0018491744995117188, 0.01352691650390625, -0.0008077621459960938, 0.0221710205078125, -0.0007958412170410156, -0.03497314453125, 0.01030731201171875, -0.0006732940673828125, 0.01041412353515625, -0.033905029296875, -0.039794921875, 0.049591064453125, -0.0123138427734375, -0.02850341796875, 0.06817626953125, 0.038116455078125, -0.05487060546875, -0.032928466796875, 0.0018663406372070312, 0.0242919921875, 0.0064544677734375, -0.0017442703247070312, 0.0031681060791015625, -0.0229644775390625, -0.0024433135986328125, -0.005153656005859375, -0.004276275634765625, -0.01334381103515625, -0.01337432861328125, 0.00020384788513183594, -0.03485107421875, -0.00925445556640625, 0.003917694091796875, 0.020843505859375, -0.035675048828125, -0.015869140625, 0.053741455078125, -0.00626373291015625, 0.07440185546875, -0.04736328125, -0.019805908203125, -0.04302978515625, -0.01186370849609375, 0.049591064453125, 0.03253173828125, -0.040679931640625, 0.00879669189453125, -0.042694091796875, -0.0032138824462890625, 0.03240966796875, -0.0178375244140625, -0.038482666015625, -0.022674560546875, 0.00666046142578125, 0.0233306884765625, -0.0029888153076171875, -0.00446319580078125, -0.00650787353515625, 0.006427764892578125, 0.01322174072265625, 0.03936767578125, -0.00997161865234375, 0.0677490234375, -0.00553131103515625, 0.04913330078125, 0.0063323974609375, 0.0216522216796875, -0.0177154541015625, -0.00975799560546875, -0.006771087646484375, -0.022613525390625, -0.003143310546875, -0.0088348388671875, -0.0017118453979492188, 0.031494140625, 0.0645751953125, 0.00887298583984375, -0.005664825439453125, 0.007312774658203125, 0.0022411346435546875, -0.00862884521484375, -0.0028171539306640625, 0.0345458984375, -0.03912353515625, 0.0740966796875, -0.0201568603515625, -0.0498046875, 0.0137939453125, 0.01861572265625, -0.013916015625, 0.004638671875, -0.025604248046875, -0.006610870361328125, -0.04058837890625, 0.03961181640625, 0.0645751953125, 0.007965087890625, 0.050628662109375, 0.020721435546875, 0.018096923828125, 0.024139404296875, 0.01025390625, -0.029296875, -0.0259857177734375, 0.05975341796875, 0.0208892822265625, -0.02557373046875, 0.04864501953125, -0.033050537109375, -0.0133514404296875, 0.0257568359375, 0.0355224609375, -0.049346923828125, 0.0038013458251953125, -0.001049041748046875, -0.028228759765625, -0.0264892578125, -0.0192108154296875, 0.004657745361328125, 0.0033054351806640625, 0.0657958984375, -0.00531005859375, -0.0177154541015625, 0.038848876953125, 0.0011682510375976562, -0.0246734619140625, -0.03717041015625, 0.046295166015625, 0.01419830322265625, -0.0015916824340820312, 0.039794921875, -0.0273895263671875, 0.03106689453125, -0.02337646484375, 0.002964019775390625, 0.005428314208984375, -0.031402587890625, -0.037261962890625, 0.01287078857421875, -0.01245880126953125, -0.00980377197265625, 0.03765869140625, -0.018402099609375, 0.05657958984375, 0.0227203369140625, 0.02069091796875, -0.03131103515625, -0.00659942626953125, -0.01235198974609375, -0.052947998046875, -0.037506103515625, -0.005096435546875, 0.049560546875, -0.0278472900390625, 0.0246734619140625, -0.0080108642578125, -0.005458831787109375, -0.000820159912109375, 0.00036334991455078125, 0.07672119140625, -0.060882568359375, -0.0116119384765625, 0.01261138916015625, 0.030517578125, 0.0038547515869140625, -0.005939483642578125, -0.020660400390625, 0.0193023681640625, 0.0435791015625, -0.021148681640625, 0.0078125, 0.0132598876953125, -0.010650634765625, -0.08062744140625, 0.09210205078125, 0.0087127685546875, 0.049957275390625, -0.004222869873046875, 0.027587890625, 0.01087188720703125, 0.0198516845703125, -0.036285400390625, 0.04241943359375, -0.0013904571533203125, 0.062469482421875, -0.031829833984375, -0.001842498779296875, 0.0302886962890625, 0.03631591796875, 0.055206298828125, 0.0189208984375, 0.01245880126953125, 0.00695037841796875, 0.012451171875, 0.0159454345703125, -0.033050537109375, 0.01629638671875, 0.01343536376953125, -0.005786895751953125, 0.00920867919921875, -0.0234832763671875, 0.03961181640625, -0.072509765625, 0.01947021484375, 0.0198211669921875, 0.0165863037109375, 0.0029449462890625, -0.014068603515625, 0.01031494140625, -0.078857421875, 0.01181793212890625, 0.05108642578125, 0.01161956787109375, 0.018157958984375, 0.0206451416015625, 0.03985595703125, -0.0143585205078125, -0.0091705322265625, -0.01629638671875, 0.050079345703125, 0.0288543701171875, 0.01190185546875, 0.0153045654296875, 0.03387451171875, -0.0067291259765625, -0.00617218017578125, 0.002544403076171875, 0.0297393798828125, -0.04052734375, 0.0849609375, 0.02020263671875, 0.017669677734375, -0.05780029296875, -0.034332275390625, 0.044525146484375, 0.10394287109375, -0.05169677734375, -0.038421630859375, 0.0058135986328125, -0.00475311279296875, -0.00396728515625, 0.038177490234375, 0.029022216796875, 0.04730224609375, 0.04388427734375, -0.0082550048828125, -0.0249481201171875, -0.0167083740234375, 0.055450439453125, 0.0042724609375, 0.0021572113037109375, -0.035614013671875, -0.032318115234375, -0.0191192626953125, -0.040557861328125, 0.017913818359375, 0.0290069580078125, 0.0023365020751953125, 0.0308685302734375, 0.0008978843688964844, -0.00682830810546875, -0.005889892578125, 0.0010309219360351562, 0.0005507469177246094, 0.011474609375, -0.0287628173828125, -0.0300750732421875, 0.005306243896484375, 0.033355712890625, 0.04071044921875, -0.0009889602661132812, 0.023223876953125, -0.0030422210693359375, -0.039398193359375, -0.0016269683837890625, 0.01369476318359375, -0.0190277099609375, 0.0236053466796875, -0.0208587646484375, 0.01268768310546875, -0.029998779296875, -0.0277557373046875, -0.0097808837890625, 0.03338623046875, 0.0088653564453125, -0.01047515869140625, 0.022705078125, 0.004611968994140625, -0.0428466796875, 0.045196533203125, -0.0238189697265625, 0.09625244140625, 0.00954437255859375, -0.06610107421875, -0.00023114681243896484, -0.060028076171875, -0.04376220703125, 0.018463134765625, 0.03497314453125, -0.0008702278137207031, 0.0017004013061523438, 0.044921875, 0.0101165771484375, 0.0132598876953125, -0.0127105712890625, -0.0017337799072265625, -0.022125244140625, 0.030670166015625, 0.01500701904296875, -0.0196075439453125, -0.005825042724609375, 0.01171875, -0.001220703125, -0.00450897216796875, 0.06793212890625, -0.004726409912109375, -0.011199951171875, -0.018341064453125, 0.033477783203125, -0.076904296875, -0.039703369140625, 0.057098388671875, -0.0215301513671875, -0.00708770751953125, 0.01390838623046875, -0.00846099853515625, 0.057952880859375, 0.00678253173828125, 0.0210418701171875, 0.0166778564453125, -0.03765869140625, 0.0244140625, 0.057830810546875, 0.0517578125, -0.00719451904296875, -0.0274505615234375, -0.025787353515625, 0.0120849609375, 0.0292816162109375, 0.027984619140625, -0.042205810546875, 0.019805908203125, -0.02935791015625, -0.023712158203125, -0.01169586181640625, -0.0088653564453125, -0.043243408203125, 0.011138916015625, -0.00801849365234375, 0.0032672882080078125, 0.0237274169921875, -0.01532745361328125, -0.00299835205078125, 0.0234527587890625, 0.01641845703125, 0.0014104843139648438, 0.024322509765625, 0.034881591796875, -0.00021266937255859375, 0.0745849609375, 0.02313232421875, 0.00627899169921875, -0.00548553466796875, 0.012786865234375, -0.03662109375, -0.08099365234375, -0.036956787109375, -0.052276611328125, 0.003444671630859375, 0.0235137939453125, -0.01284027099609375, -0.040985107421875, -0.037567138671875, 0.0012769699096679688, 0.003795623779296875, -0.0000591278076171875, -0.055328369140625, 0.03045654296875, -0.00827789306640625, 0.049835205078125, -0.03155517578125, 0.033172607421875, -0.019989013671875, -0.028106689453125, -0.042510986328125, 0.02923583984375, -0.012786865234375, 0.01348876953125, 0.04931640625, 0.00022912025451660156, 0.018218994140625, -0.004146575927734375, -0.07769775390625, 0.00286102294921875, -0.0262908935546875, 0.057220458984375, -0.006866455078125, -0.022216796875, 0.0072021484375, 0.02032470703125, 0.0037746429443359375, -0.03857421875, 0.00809478759765625, -0.0240631103515625, 0.018951416015625, -0.0063323974609375, -0.0087738037109375, -0.0043792724609375, -0.04290771484375, -0.05267333984375, 0.11468505859375, -0.014984130859375, -0.0269317626953125, -0.017852783203125, 0.0362548828125, 0.0282440185546875, -0.05731201171875, -0.0191650390625, -0.024688720703125, -0.023681640625, 0.001171112060546875, -0.006999969482421875, -0.032745361328125, 0.046478271484375, -0.0235443115234375, -0.07391357421875, -0.0088043212890625, -0.004730224609375, -0.0038604736328125, 0.0047149658203125, -0.0171966552734375, 0.033966064453125, 0.0276947021484375, -0.04412841796875, 0.03436279296875, 0.01549530029296875, 0.0225677490234375, -0.0272674560546875, -0.01544952392578125, -0.0115966796875, 0.008941650390625, 0.07891845703125, 0.06463623046875, 0.02044677734375, -0.052337646484375, -0.0038166046142578125, -0.02197265625, -0.04742431640625, -0.006809234619140625, 0.04010009765625, -0.073486328125, 0.0006785392761230469, 0.036285400390625, -0.00630950927734375, 0.0057373046875, -0.019439697265625, -0.032196044921875, -0.01971435546875, -0.02227783203125, 0.0005631446838378906, -0.0286407470703125, -0.0307159423828125, 0.05511474609375, -0.038238525390625, -0.02960205078125, 0.0196380615234375, 0.0225372314453125, -0.006908416748046875, 0.00775146484375, 0.0302734375, 0.0303497314453125, -0.046356201171875, 0.00920867919921875, 0.026947021484375, 0.049285888671875, -0.026763916015625, -0.018402099609375, 0.004505157470703125, 0.0238800048828125, -0.0121002197265625, 0.037841796875, 0.035003662109375, 0.01763916015625, -0.0074920654296875, 0.02386474609375, -0.0080718994140625, 0.04779052734375, -0.0078887939453125, 0.04412841796875, -0.01361846923828125, -0.0178070068359375, 0.02459716796875, -0.033538818359375, -0.0053863525390625, 0.02593994140625, 0.007091522216796875, -0.0267181396484375, 0.014984130859375, -0.0021190643310546875, 0.01357269287109375, 0.0046234130859375 ]
36ec3c0b6d54bdfc579b319cb1df909296556113
Wordpress Stackexchange Q: Define Function in functions.php or plugin and call in theme loop I need to define a function in functions.php or a plugin and be able to call it inside the theme's loop & outside. Example; I have a $product_price = get_post_meta(get_the_ID(), 'product-price', true); defined inside the loop of all these pages; inside home.php, index.php, archive.php, single.php, & other custom pages... so every time I need to change something I need to go to every single of these pages and make the change... So Now I want to create a function where instead of having $product_price = get_post_meta(get_the_ID(), 'product-price', true); in every page I only call product_price(); and that's it. I've tried something like this (in both plugin & functions.php), but it's not working function product_title() { global $post; $args = array( "posts_per_page" => "-1" ); $get_title = new WP_Query( $args ); while ( $get_title->have_posts() ) : $get_title->the_post(); return get_post_meta(get_the_ID(), 'product-price', true); wp_reset_postdata(); endwhile; } A: Try use this (functions.php) : function product_title($id) { $custom='CustomField'; // Your custom field here return get_post_meta($id, $custom, true); } and call func in your template (in loop and etc...): <?php $p_title=product_title(get_the_ID()); ?> <h3>Product : <?php echo ($P_title); ?> </h3>
Q: Define Function in functions.php or plugin and call in theme loop I need to define a function in functions.php or a plugin and be able to call it inside the theme's loop & outside. Example; I have a $product_price = get_post_meta(get_the_ID(), 'product-price', true); defined inside the loop of all these pages; inside home.php, index.php, archive.php, single.php, & other custom pages... so every time I need to change something I need to go to every single of these pages and make the change... So Now I want to create a function where instead of having $product_price = get_post_meta(get_the_ID(), 'product-price', true); in every page I only call product_price(); and that's it. I've tried something like this (in both plugin & functions.php), but it's not working function product_title() { global $post; $args = array( "posts_per_page" => "-1" ); $get_title = new WP_Query( $args ); while ( $get_title->have_posts() ) : $get_title->the_post(); return get_post_meta(get_the_ID(), 'product-price', true); wp_reset_postdata(); endwhile; } A: Try use this (functions.php) : function product_title($id) { $custom='CustomField'; // Your custom field here return get_post_meta($id, $custom, true); } and call func in your template (in loop and etc...): <?php $p_title=product_title(get_the_ID()); ?> <h3>Product : <?php echo ($P_title); ?> </h3>
wordpress
{ "language": "en", "length": 195, "provenance": "stackexchange_00019.jsonl.gz:458521", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/200081" }
[ -0.0089569091796875, 0.0064849853515625, -0.0121612548828125, -0.037384033203125, 0.01070404052734375, 0.0023746490478515625, -0.017578125, -0.016387939453125, -0.0185089111328125, 0.0005745887756347656, -0.0233001708984375, -0.0093536376953125, -0.041229248046875, -0.04522705078125, 0.0166473388671875, -0.059783935546875, 0.058135986328125, -0.0017099380493164062, 0.049346923828125, -0.0011987686157226562, -0.0074462890625, 0.04937744140625, 0.030029296875, 0.041229248046875, 0.02325439453125, -0.052825927734375, 0.034423828125, -0.0291290283203125, 0.0037994384765625, -0.0345458984375, 0.01300811767578125, 0.0211029052734375, 0.0167694091796875, -0.0126190185546875, 0.03204345703125, 0.007091522216796875, 0.032470703125, -0.0145721435546875, 0.0207061767578125, 0.0170135498046875, 0.0269927978515625, -0.0030193328857421875, -0.043487548828125, 0.050537109375, -0.0478515625, -0.03936767578125, 0.0197906494140625, -0.00916290283203125, 0.0122222900390625, 0.024688720703125, 0.0038623809814453125, -0.0116424560546875, 0.004055023193359375, 0.018035888671875, -0.0207366943359375, -0.0260009765625, -0.0036907196044921875, -0.03436279296875, 0.03607177734375, 0.0017337799072265625, -0.02972412109375, -0.0269317626953125, 0.026519775390625, -0.0260009765625, 0.004150390625, 0.0160980224609375, -0.0011758804321289062, 0.0200042724609375, -0.0197296142578125, -0.00167083740234375, 0.0020122528076171875, -0.036163330078125, 0.005504608154296875, 0.01068878173828125, -0.0244140625, -0.065185546875, 0.029815673828125, -0.07196044921875, 0.00014448165893554688, 0.009033203125, -0.0360107421875, -0.042083740234375, -0.00897216796875, 0.0023326873779296875, 0.0018491744995117188, 0.033843994140625, -0.018463134765625, 0.01108551025390625, -0.01360321044921875, -0.04296875, -0.01097869873046875, 0.0157623291015625, -0.035186767578125, -0.049560546875, -0.024261474609375, -0.043212890625, 0.0201873779296875, 0.061981201171875, -0.0185699462890625, 0.0254974365234375, 0.00357818603515625, -0.037322998046875, 0.0302581787109375, -0.050994873046875, 0.01177978515625, 0.06146240234375, -0.036041259765625, 0.0103759765625, 0.05303955078125, 0.0477294921875, 0.04034423828125, -0.0390625, -0.03338623046875, -0.0386962890625, -0.0272064208984375, 0.04571533203125, -0.031982421875, -0.01812744140625, 0.0179443359375, -0.01238250732421875, 0.0175933837890625, 0.026153564453125, 0.057861328125, -0.041168212890625, 0.01446533203125, 0.025848388671875, -0.0401611328125, -0.0732421875, -0.043975830078125, 0.032073974609375, -0.0209503173828125, 0.0031261444091796875, 0.07647705078125, 0.024566650390625, -0.01026153564453125, -0.0175323486328125, 0.0218048095703125, 0.0180206298828125, 0.0005602836608886719, -0.0008549690246582031, 0.0303497314453125, -0.0238800048828125, -0.01464080810546875, 0.00563812255859375, -0.022552490234375, -0.027587890625, 0.0016994476318359375, 0.032623291015625, 0.00701904296875, -0.01837158203125, 0.003795623779296875, 0.01126861572265625, 0.015716552734375, 0.01335906982421875, 0.01105499267578125, 0.0142974853515625, 0.0150604248046875, -0.0005354881286621094, -0.0118560791015625, -0.0028209686279296875, 0.0034236907958984375, -0.0321044921875, -0.0224609375, -0.021453857421875, -0.06256103515625, 0.0518798828125, -0.0045166015625, -0.01031494140625, 0.0210113525390625, 0.05975341796875, 0.0218048095703125, 0.0204315185546875, 0.01264190673828125, 0.006771087646484375, -0.005218505859375, -0.03277587890625, -0.0231475830078125, 0.041839599609375, 0.0443115234375, -0.037109375, -0.041778564453125, -0.05242919921875, 0.07366943359375, -0.0361328125, -0.06597900390625, 0.03717041015625, 0.001834869384765625, 0.06451416015625, 0.036376953125, 0.0148162841796875, 0.051483154296875, -0.01268768310546875, -0.050872802734375, 0.044097900390625, 0.01366424560546875, -0.031890869140625, -0.03167724609375, -0.0239715576171875, -0.0213775634765625, -0.006572723388671875, -0.042877197265625, 0.012725830078125, -0.0134735107421875, 0.035552978515625, -0.053863525390625, 0.0287933349609375, -0.029541015625, 0.04931640625, 0.00392913818359375, 0.024017333984375, 0.01123809814453125, 0.0092315673828125, -0.01136016845703125, -0.001781463623046875, -0.01136016845703125, -0.0177154541015625, -0.0233306884765625, 0.045135498046875, -0.01160430908203125, 0.029754638671875, -0.016143798828125, -0.0296783447265625, -0.00171661376953125, 0.007205963134765625, 0.0625, 0.02337646484375, -0.0223388671875, -0.01300048828125, 0.0645751953125, 0.0103302001953125, -0.00884246826171875, 0.0115814208984375, 0.023345947265625, 0.037506103515625, -0.0075531005859375, 0.0126800537109375, -0.005825042724609375, -0.059173583984375, 0.0012006759643554688, 0.051239013671875, 0.0267791748046875, 0.01343536376953125, -0.0261077880859375, 0.0021800994873046875, 0.0599365234375, 0.017913818359375, 0.0053558349609375, -0.01316070556640625, 0.039703369140625, 0.0625, -0.033050537109375, -0.01494598388671875, 0.027862548828125, -0.0240325927734375, 0.0164794921875, 0.038482666015625, -0.05029296875, -0.02215576171875, 0.013702392578125, -0.0027446746826171875, -0.014617919921875, -0.01261138916015625, 0.0272216796875, -0.0127105712890625, 0.0217132568359375, 0.03424072265625, 0.030853271484375, 0.027252197265625, -0.058441162109375, 0.0137939453125, 0.02935791015625, 0.048583984375, -0.01235198974609375, -0.014984130859375, -0.029998779296875, -0.040557861328125, -0.03558349609375, 0.035919189453125, -0.00991058349609375, -0.048248291015625, 0.0210113525390625, 0.049774169921875, -0.0283660888671875, -0.00916290283203125, -0.017608642578125, -0.057159423828125, -0.0184326171875, 0.04620361328125, 0.027557373046875, -0.020721435546875, 0.0036163330078125, 0.037017822265625, -0.033294677734375, 0.08154296875, -0.0023860931396484375, -0.031494140625, 0.01107025146484375, -0.040069580078125, 0.040679931640625, -0.031646728515625, 0.049774169921875, 0.06292724609375, -0.002323150634765625, 0.01177215576171875, -0.0009064674377441406, -0.0157470703125, 0.0269317626953125, 0.01422882080078125, -0.017669677734375, 0.0014009475708007812, -0.09423828125, -0.0265350341796875, 0.02764892578125, 0.06903076171875, 0.007755279541015625, -0.05145263671875, 0.003589630126953125, 0.0428466796875, -0.10321044921875, -0.10205078125, 0.03912353515625, -0.06512451171875, 0.0017414093017578125, -0.0421142578125, -0.048797607421875, -0.01043701171875, -0.0208587646484375, -0.002040863037109375, 0.004367828369140625, -0.01439666748046875, -0.0357666015625, -0.05938720703125, -0.060546875, -0.04901123046875, 0.004611968994140625, 0.00302886962890625, 0.004001617431640625, 0.047332763671875, 0.0186614990234375, -0.03460693359375, 0.016448974609375, 0.03369140625, -0.02783203125, 0.0133514404296875, 0.017181396484375, -0.04864501953125, 0.00835418701171875, -0.0008568763732910156, -0.00910186767578125, 0.00899505615234375, 0.00797271728515625, -0.033111572265625, -0.025909423828125, -0.01349639892578125, -0.00501251220703125, 0.0640869140625, 0.0408935546875, 0.02740478515625, 0.06793212890625, -0.01325225830078125, -0.06549072265625, -0.0004906654357910156, -0.0537109375, 0.054656982421875, 0.0300445556640625, -0.01047515869140625, -0.0008158683776855469, 0.042083740234375, 0.0211029052734375, 0.01534271240234375, 0.0235748291015625, -0.009033203125, 0.01971435546875, 0.002025604248046875, 0.0226287841796875, -0.034423828125, 0.0374755859375, -0.01367950439453125, 0.00576019287109375, 0.0174560546875, 0.037384033203125, 0.03167724609375, -0.03558349609375, -0.0267791748046875, -0.0133819580078125, 0.03643798828125, 0.038482666015625, 0.03021240234375, 0.00856781005859375, -0.041900634765625, 0.0023651123046875, 0.0701904296875, -0.01751708984375, -0.00838470458984375, -0.0103607177734375, -0.0147857666015625, -0.0208892822265625, -0.00621795654296875, -0.06304931640625, 0.0051422119140625, -0.0548095703125, 0.006931304931640625, -0.0116729736328125, -0.004741668701171875, -0.0118560791015625, 0.09466552734375, -0.0338134765625, -0.006591796875, 0.0135345458984375, -0.017059326171875, 0.0168609619140625, 0.01153564453125, -0.007282257080078125, 0.0015344619750976562, -0.01090240478515625, -0.019073486328125, -0.02288818359375, -0.01502227783203125, -0.01971435546875, 0.05389404296875, 0.03662109375, -0.0239410400390625, 0.00881195068359375, 0.054901123046875, 0.0234222412109375, 0.031646728515625, -0.004749298095703125, 0.002132415771484375, 0.006038665771484375, -0.0298919677734375, 0.002750396728515625, -0.0380859375, -0.009033203125, -0.01032257080078125, -0.023773193359375, 0.032623291015625, -0.0230712890625, 0.00466156005859375, -0.0006985664367675781, -0.0303192138671875, -0.0775146484375, -0.00905609130859375, 0.0350341796875, -0.04571533203125, 0.0014410018920898438, -0.008209228515625, 0.0296783447265625, -0.029693603515625, 0.02294921875, -0.0002636909484863281, -0.019775390625, 0.004291534423828125, 0.05780029296875, 0.0225067138671875, -0.0318603515625, -0.0184478759765625, 0.005687713623046875, 0.036590576171875, -0.007568359375, -0.007564544677734375, -0.037506103515625, -0.046539306640625, 0.06884765625, -0.0086517333984375, 0.0201416015625, -0.017822265625, 0.033721923828125, -0.0235595703125, -0.0257110595703125, 0.02392578125, -0.03363037109375, 0.0299224853515625, 0.007965087890625, -0.00937652587890625, -0.0212554931640625, 0.005550384521484375, 0.034454345703125, -0.016937255859375, 0.0310211181640625, -0.0178680419921875, -0.028167724609375, 0.00836181640625, 0.032440185546875, -0.0032634735107421875, 0.0272216796875, 0.00689697265625, -0.0022525787353515625, -0.01264190673828125, 0.01171875, 0.01100921630859375, 0.037689208984375, -0.0263214111328125, 0.02783203125, 0.0257110595703125, -0.0107421875, -0.0255584716796875, 0.0045166015625, -0.0283966064453125, 0.0168304443359375, -0.02294921875, -0.0158233642578125, 0.024871826171875, 0.0194244384765625, -0.0263214111328125, 0.00989532470703125, 0.0479736328125, 0.0197296142578125, -0.0133819580078125, 0.005229949951171875, -0.03515625, 0.020355224609375, -0.045654296875, 0.0300140380859375, 0.01947021484375, -0.01331329345703125, -0.03900146484375, 0.09674072265625, -0.0164031982421875, 0.0266571044921875, -0.00937652587890625, 0.045654296875, 0.03314208984375, 0.038482666015625, 0.018218994140625, -0.033721923828125, -0.01212310791015625, 0.0185394287109375, -0.005832672119140625, -0.018096923828125, 0.001953125, 0.0270843505859375, 0.05224609375, 0.00333404541015625, -0.009552001953125, -0.01067352294921875, -0.040924072265625, -0.01168060302734375, 0.018951416015625, 0.01186370849609375, -0.032806396484375, -0.00890350341796875, 0.015533447265625, 0.01522064208984375, -0.0003066062927246094, 0.0279541015625, -0.0003199577331542969, 0.01549530029296875, 0.013671875, -0.057220458984375, 0.003955841064453125, -0.0235137939453125, -0.0110321044921875, -0.01349639892578125, 0.0082244873046875, 0.002101898193359375, -0.0338134765625, -0.046905517578125, 0.0070343017578125, -0.01204681396484375, 0.0189361572265625, -0.0196533203125, 0.0662841796875, -0.055206298828125, -0.0141143798828125, -0.031341552734375, -0.0017871856689453125, 0.06280517578125, 0.041656494140625, -0.083251953125, 0.019775390625, -0.00803375244140625, 0.0005044937133789062, 0.005542755126953125, -0.037872314453125, -0.035614013671875, -0.01806640625, 0.01580810546875, 0.04656982421875, -0.01486968994140625, -0.012115478515625, 0.01491546630859375, -0.010406494140625, -0.0223541259765625, 0.076904296875, -0.0209197998046875, 0.006317138671875, 0.06158447265625, 0.03265380859375, 0.027984619140625, -0.0012311935424804688, -0.008636474609375, -0.030059814453125, -0.0174713134765625, -0.0248565673828125, 0.0206756591796875, -0.0182342529296875, 0.0247955322265625, 0.00444793701171875, 0.042572021484375, 0.01317596435546875, -0.004787445068359375, -0.0256195068359375, -0.0096282958984375, -0.0264129638671875, 0.0350341796875, -0.0076446533203125, -0.0258026123046875, -0.00492095947265625, -0.0819091796875, -0.042724609375, 0.04705810546875, 0.006195068359375, 0.061248779296875, -0.03704833984375, 0.01947021484375, 0.0380859375, -0.06866455078125, 0.034942626953125, 0.05877685546875, 0.050994873046875, 0.057342529296875, -0.0264129638671875, 0.028289794921875, 0.0187530517578125, 0.013885498046875, 0.03729248046875, -0.0175018310546875, 0.06390380859375, -0.00884246826171875, -0.0136260986328125, 0.038055419921875, -0.0308380126953125, -0.0142059326171875, 0.01361083984375, 0.022857666015625, -0.04193115234375, 0.01074981689453125, 0.00984954833984375, 0.0206451416015625, 0.01485443115234375, 0.015960693359375, 0.0186767578125, 0.004749298095703125, 0.0050506591796875, -0.0118560791015625, -0.00719451904296875, 0.01406097412109375, -0.006122589111328125, 0.0209808349609375, -0.0179443359375, 0.048370361328125, 0.00008720159530639648, -0.05126953125, -0.017120361328125, 0.035552978515625, -0.0399169921875, -0.038726806640625, -0.006656646728515625, 0.025909423828125, -0.009002685546875, -0.052703857421875, 0.05621337890625, 0.0010347366333007812, 0.00514984130859375, 0.0103302001953125, 0.047210693359375, -0.010589599609375, 0.04595947265625, -0.003574371337890625, 0.0208282470703125, 0.01285552978515625, -0.023162841796875, -0.0292510986328125, -0.02178955078125, -0.00766754150390625, 0.005512237548828125, -0.058990478515625, 0.005157470703125, -0.045562744140625, 0.005062103271484375, -0.01171112060546875, -0.006023406982421875, 0.04156494140625, 0.01036834716796875, -0.033477783203125, 0.033050537109375, 0.0280609130859375, -0.0187530517578125, -0.0011777877807617188, 0.029449462890625, -0.039337158203125, 0.007965087890625, 0.0204315185546875, -0.0030612945556640625, -0.034942626953125, 0.00016307830810546875, -0.061614990234375, 0.09844970703125, -0.00945281982421875, 0.009765625, 0.0069580078125, 0.0257110595703125, -0.013641357421875, 0.01184844970703125, -0.033660888671875, 0.0268096923828125, -0.01256561279296875, 0.04193115234375, -0.06951904296875, -0.0296173095703125, -0.004604339599609375, 0.0677490234375, 0.04205322265625, 0.01497650146484375, -0.032867431640625, -0.0162200927734375, 0.01470184326171875, 0.047576904296875, -0.004947662353515625, 0.0125885009765625, 0.0020294189453125, 0.0614013671875, 0.0721435546875, -0.0265045166015625, 0.04022216796875, 0.0021457672119140625, -0.0170745849609375, 0.0361328125, 0.0203857421875, 0.0002002716064453125, -0.030059814453125, -0.005283355712890625, -0.036468505859375, -0.002834320068359375, 0.01329803466796875, 0.02362060546875, 0.00966644287109375, 0.0204315185546875, 0.019439697265625, -0.0182647705078125, 0.0210723876953125, -0.03558349609375, 0.0435791015625, -0.0106353759765625, -0.004764556884765625, 0.0233001708984375, 0.00951385498046875, 0.017852783203125, -0.01105499267578125, -0.0069732666015625, 0.0015850067138671875, 0.0236053466796875, 0.045989990234375, 0.0289459228515625, -0.006893157958984375, -0.0281829833984375, 0.0662841796875, 0.0275115966796875, 0.047637939453125, -0.07623291015625, -0.03759765625, 0.00870513916015625, -0.0017347335815429688, 0.0018978118896484375, -0.0250244140625, -0.0203704833984375, -0.0143280029296875, 0.013885498046875, -0.0335693359375, 0.01366424560546875, 0.052642822265625, 0.00962066650390625, 0.018157958984375, -0.013397216796875, -0.066162109375, 0.002666473388671875, -0.034393310546875, 0.0090179443359375, -0.01471710205078125, 0.06549072265625, 0.050201416015625, 0.0545654296875, -0.02435302734375, -0.034332275390625, 0.0033111572265625, 0.06646728515625, 0.0146331787109375, -0.00844573974609375, -0.041900634765625, -0.0682373046875, -0.0018873214721679688, 0.04168701171875, 0.042510986328125, 0.021697998046875, 0.045257568359375, 0.0306396484375, 0.006015777587890625, 0.014312744140625, 0.0091552734375, -0.00933837890625, 0.00640869140625, 0.01593017578125, -0.00994110107421875, -0.0233306884765625, -0.023468017578125, -0.021087646484375, 0.06280517578125, -0.038421630859375, -0.0291900634765625, 0.046844482421875, -0.00350189208984375, -0.0155181884765625, 0.0155029296875, 0.007843017578125, 0.07373046875, -0.0004343986511230469, -0.0479736328125, 0.00946807861328125, -0.0177764892578125, -0.055389404296875, -0.01617431640625, 0.017578125, -0.0201873779296875, 0.046875, -0.00022470951080322266, -0.004116058349609375, 0.047943115234375, -0.008270263671875, -0.023284912109375, 0.030914306640625, 0.037994384765625, -0.002216339111328125, 0.01215362548828125, 0.010009765625, 0.0249176025390625, 0.0190887451171875, 0.026458740234375, 0.004543304443359375, -0.003299713134765625, 0.02685546875, -0.006008148193359375, 0.0005559921264648438, -0.00928497314453125, -0.02392578125, 0.053375244140625, 0.00466156005859375, 0.0067138671875, -0.0190277099609375, 0.0119171142578125, 0.01523590087890625, 0.05224609375, -0.0239410400390625, 0.00759124755859375, -0.031463623046875, 0.0269012451171875, -0.039276123046875, 0.0172882080078125, 0.0009055137634277344, 0.01203155517578125, -0.0250701904296875, -0.019378662109375, 0.07452392578125, 0.061004638671875, -0.00713348388671875, -0.0211334228515625, 0.022247314453125, -0.022613525390625, 0.0245208740234375, 0.0142059326171875, 0.043853759765625, 0.038848876953125, -0.0087432861328125, -0.0430908203125, -0.014556884765625, -0.018585205078125, 0.01096343994140625, -0.0009431838989257812, 0.0447998046875, 0.005096435546875, -0.0287628173828125, 0.0030002593994140625, 0.00591278076171875, 0.01120758056640625, -0.03271484375, -0.008056640625, 0.040679931640625, -0.018096923828125, -0.031280517578125, -0.048797607421875, -0.02349853515625, -0.03594970703125, -0.004047393798828125, 0.0157928466796875, -0.0209808349609375, -0.040191650390625, -0.032318115234375, 0.0093231201171875, 0.00989532470703125, -0.0090179443359375, -0.03515625, 0.0018587112426757812, -0.01525115966796875, 0.056427001953125, -0.0208892822265625, -0.046844482421875, 0.0237579345703125, 0.05462646484375, -0.00833892822265625, 0.0006604194641113281, -0.0223846435546875, -0.031463623046875, -0.017791748046875, 0.0206146240234375, 0.038421630859375, -0.0240631103515625, -0.032928466796875, 0.03216552734375, 0.019866943359375, 0.07623291015625, -0.004459381103515625, -0.014434814453125, 0.0195770263671875, 0.0111083984375, -0.01357269287109375, -0.1041259765625, -0.00283050537109375, -0.07965087890625, 0.006885528564453125, 0.0211334228515625, 0.002346038818359375, 0.03900146484375, -0.017974853515625, -0.0377197265625, 0.02398681640625, 0.0132598876953125, -0.036468505859375, -0.049163818359375, -0.016693115234375, -0.007564544677734375, 0.08697509765625, 0.00547027587890625, -0.031707763671875, -0.05615234375, 0.03265380859375, 0.0192108154296875, -0.008941650390625, 0.051544189453125, 0.032684326171875, -0.058502197265625, -0.00136566162109375, -0.0281982421875, -0.033203125, 0.0194854736328125, -0.01861572265625, 0.01398468017578125, 0.01265716552734375, -0.05010986328125, -0.056915283203125, -0.01861572265625, 0.0193634033203125, -0.022552490234375, -0.055511474609375, 0.01029205322265625, -0.01861572265625, 0.019134521484375, 0.0031719207763671875, -0.007537841796875, -0.0261077880859375, -0.0023021697998046875, 0.0208740234375, -0.0206756591796875, 0.00507354736328125, 0.018096923828125, -0.05462646484375, -0.0245513916015625, 0.009185791015625, -0.027679443359375, 0.0216064453125, -0.00010073184967041016, -0.044525146484375, 0.00418853759765625, 0.003200531005859375, -0.0055084228515625, -0.042816162109375, -0.034820556640625, 0.041107177734375, -0.0296630859375, -0.019317626953125, 0.0075225830078125, 0.02130126953125, -0.005954742431640625, -0.01085662841796875, -0.00646209716796875, 0.0307159423828125, -0.019561767578125, -0.00894927978515625, 0.0159454345703125, 0.020904541015625, 0.0019817352294921875, -0.001800537109375, -0.03948974609375, 0.0157318115234375, 0.006259918212890625, -0.0137939453125, -0.01039886474609375, 0.04290771484375, 0.033172607421875, 0.08648681640625, -0.0037670135498046875, 0.060028076171875, 0.01258087158203125, 0.03497314453125, -0.01715087890625, -0.009918212890625, -0.00595855712890625, -0.0178985595703125, 0.0030307769775390625, 0.002552032470703125, -0.0178985595703125, -0.01442718505859375, -0.0027675628662109375, -0.0015077590942382812, -0.0233154296875, -0.0036373138427734375 ]
7ade966d044a6d84fe1a1229643e6b7afd1ede0f
Wordpress Stackexchange Q: Admin sidebar items overlapping in admin panel Before to report this to wordpress I would like to know if it's just me or it's actually a bug. I noticed also another user that asked on the wordpress forum but he hadn't an answer for that: https://wordpress.org/support/topic/admin-left-menu-overlap And the same is here: It happens almost every time I move the cursor above the panel and it seems to give this problem only in Chrome but I couldn't try it in other browser except for Edge where it seems to work fine. My environment information is: OS: Windows 10 64bit Browser: 45.0.2454.78 beta-m (64-bit) extensions all deactivated A: This is a known issue. The current fix (which may also make it into core) looks like this: add_action( 'admin_enqueue_scripts', 'chrome_fix' ); function chrome_fix() { if ( strpos( $_SERVER[ 'HTTP_USER_AGENT' ], 'Chrome' ) !== false ) { wp_add_inline_style( 'wp-admin', '#adminmenu { transform: translateZ(0) }' ); } }
Q: Admin sidebar items overlapping in admin panel Before to report this to wordpress I would like to know if it's just me or it's actually a bug. I noticed also another user that asked on the wordpress forum but he hadn't an answer for that: https://wordpress.org/support/topic/admin-left-menu-overlap And the same is here: It happens almost every time I move the cursor above the panel and it seems to give this problem only in Chrome but I couldn't try it in other browser except for Edge where it seems to work fine. My environment information is: OS: Windows 10 64bit Browser: 45.0.2454.78 beta-m (64-bit) extensions all deactivated A: This is a known issue. The current fix (which may also make it into core) looks like this: add_action( 'admin_enqueue_scripts', 'chrome_fix' ); function chrome_fix() { if ( strpos( $_SERVER[ 'HTTP_USER_AGENT' ], 'Chrome' ) !== false ) { wp_add_inline_style( 'wp-admin', '#adminmenu { transform: translateZ(0) }' ); } } A: @user80085 Create a new plugin to do this. Create a new file in wp-content/plugins called "admin-menu-chrome-fix.php" with the following: <?php /* Plugin Name: Admin Menu Chrome Fix Plugin URI: Description: Fixes overlapping admin dashboard menu in chrome */ add_action( 'admin_enqueue_scripts', 'chrome_fix' ); function chrome_fix() { if ( strpos( $_SERVER[ 'HTTP_USER_AGENT' ], 'Chrome' ) !== false ) { wp_add_inline_style( 'wp-admin', '#adminmenu { transform: translateZ(0) }' ); } } Don't forget to activate the plugin.
wordpress
{ "language": "en", "length": 228, "provenance": "stackexchange_00019.jsonl.gz:458526", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/200096" }
[ 0.049591064453125, 0.006961822509765625, 0.007129669189453125, 0.0191497802734375, 0.0194091796875, -0.03790283203125, 0.072021484375, -0.054443359375, 0.0012655258178710938, 0.0280914306640625, -0.049285888671875, 0.005504608154296875, 0.018646240234375, 0.001834869384765625, 0.00690460205078125, -0.03472900390625, 0.01416015625, 0.0287628173828125, 0.0302581787109375, -0.0002796649932861328, -0.019775390625, 0.018096923828125, 0.0013360977172851562, 0.003986358642578125, 0.025390625, -0.046142578125, 0.045257568359375, -0.023773193359375, 0.019989013671875, -0.00856781005859375, 0.0211639404296875, -0.00835418701171875, 0.00888824462890625, -0.00576019287109375, 0.01529693603515625, -0.0300750732421875, -0.029571533203125, 0.01190948486328125, 0.008544921875, -0.004070281982421875, 0.01248931884765625, -0.0128021240234375, 0.02911376953125, 0.0269927978515625, -0.009796142578125, -0.01027679443359375, -0.012908935546875, -0.03643798828125, 0.0152740478515625, -0.0292205810546875, 0.01282501220703125, -0.032989501953125, 0.0284576416015625, -0.0053253173828125, -0.005001068115234375, 0.0298004150390625, -0.0169525146484375, 0.008819580078125, 0.0247344970703125, 0.0394287109375, -0.01000213623046875, -0.0004508495330810547, -0.0011129379272460938, -0.045074462890625, 0.010284423828125, -0.0186614990234375, 0.015350341796875, 0.0210418701171875, -0.057647705078125, 0.015228271484375, 0.0672607421875, -0.046356201171875, 0.007015228271484375, -0.02630615234375, 0.03253173828125, 0.00034737586975097656, 0.00521087646484375, 0.02618408203125, -0.0074310302734375, 0.010894775390625, -0.014739990234375, 0.0196685791015625, -0.04156494140625, -0.006931304931640625, 0.0135345458984375, 0.03570556640625, -0.02911376953125, -0.0167083740234375, -0.0011053085327148438, -0.026824951171875, 0.00838470458984375, -0.0953369140625, -0.01580810546875, 0.050323486328125, 0.0155487060546875, -0.0517578125, 0.06439208984375, 0.06768798828125, -0.02142333984375, -0.0230865478515625, -0.00220489501953125, -0.0477294921875, -0.0010395050048828125, -0.0272216796875, 0.00371551513671875, 0.0142974853515625, -0.0325927734375, -0.0309295654296875, 0.03143310546875, 0.034698486328125, -0.019622802734375, 0.0263824462890625, 0.01122283935546875, -0.009307861328125, -0.0203094482421875, -0.01024627685546875, -0.027252197265625, 0.0265960693359375, 0.0014715194702148438, 0.018341064453125, -0.01018524169921875, 0.00623321533203125, -0.037139892578125, 0.036834716796875, 0.00742340087890625, 0.00852203369140625, 0.006656646728515625, 0.0034637451171875, -0.0230560302734375, 0.030029296875, -0.042327880859375, -0.0003592967987060547, 0.08056640625, 0.043304443359375, 0.017425537109375, -0.024139404296875, 0.01029205322265625, 0.0135040283203125, 0.0120697021484375, -0.0243377685546875, 0.051116943359375, 0.0089263916015625, 0.003326416015625, 0.0237579345703125, -0.0290069580078125, 0.040435791015625, 0.02215576171875, -0.01105499267578125, -0.01369476318359375, -0.07171630859375, 0.02099609375, -0.0557861328125, 0.03363037109375, 0.048553466796875, -0.02520751953125, 0.034454345703125, 0.08526611328125, -0.039642333984375, -0.06475830078125, -0.06390380859375, -0.038482666015625, -0.00740814208984375, 0.0005507469177246094, -0.0361328125, -0.027984619140625, 0.0149688720703125, 0.0203857421875, 0.011627197265625, 0.02374267578125, -0.0200347900390625, 0.0264739990234375, -0.023681640625, 0.01898193359375, 0.00775146484375, -0.0049896240234375, 0.033660888671875, 0.040008544921875, -0.0284423828125, 0.01555633544921875, -0.0056915283203125, -0.049896240234375, -0.04266357421875, 0.0236968994140625, -0.02850341796875, -0.042816162109375, -0.007781982421875, -0.00360107421875, 0.010009765625, 0.051849365234375, 0.01059722900390625, 0.0255584716796875, -0.0195465087890625, -0.00539398193359375, 0.052001953125, -0.0535888671875, -0.01399993896484375, 0.0033588409423828125, 0.05645751953125, -0.048858642578125, -0.03424072265625, -0.0165557861328125, 0.0016489028930664062, -0.005832672119140625, 0.0146942138671875, -0.048370361328125, 0.00466156005859375, -0.016082763671875, 0.034881591796875, 0.0280303955078125, 0.0289764404296875, -0.01215362548828125, 0.01320648193359375, -0.0026683807373046875, -0.034027099609375, -0.01280975341796875, 0.0128936767578125, -0.01253509521484375, 0.02777099609375, -0.00211334228515625, 0.004764556884765625, 0.01342010498046875, -0.0633544921875, -0.0052642822265625, 0.03216552734375, -0.007564544677734375, 0.01529693603515625, -0.032928466796875, 0.0157623291015625, 0.0010881423950195312, 0.01739501953125, 0.01155853271484375, 0.01424407958984375, 0.0270538330078125, 0.06072998046875, -0.0225372314453125, -0.01331329345703125, -0.01129913330078125, -0.01512908935546875, 0.00823211669921875, 0.02447509765625, 0.031768798828125, 0.0269622802734375, -0.01448822021484375, 0.022247314453125, 0.07073974609375, -0.06829833984375, -0.01372528076171875, 0.0211181640625, -0.02154541015625, -0.0018644332885742188, 0.0245361328125, -0.01806640625, 0.0265045166015625, 0.002288818359375, 0.0127716064453125, 0.020538330078125, -0.0308685302734375, -0.032196044921875, 0.006580352783203125, -0.01158905029296875, 0.02276611328125, -0.043792724609375, -0.036865234375, -0.01251220703125, -0.015716552734375, -0.0241851806640625, 0.004772186279296875, -0.0169677734375, -0.0210113525390625, -0.021575927734375, 0.035888671875, 0.02642822265625, 0.005107879638671875, -0.0080718994140625, -0.00838470458984375, -0.0165863037109375, -0.03704833984375, 0.01168060302734375, 0.0167388916015625, -0.02093505859375, -0.014984130859375, 0.046417236328125, -0.036163330078125, -0.01439666748046875, -0.0199127197265625, -0.040802001953125, -0.006378173828125, 0.00545501708984375, 0.007904052734375, -0.01502227783203125, 0.00821685791015625, -0.00240325927734375, -0.01282501220703125, -0.005401611328125, 0.04412841796875, -0.026275634765625, 0.0625, -0.035675048828125, 0.047271728515625, -0.0308685302734375, 0.06103515625, 0.03790283203125, -0.0277099609375, 0.01352691650390625, 0.0053253173828125, 0.035125732421875, 0.03253173828125, 0.00020551681518554688, 0.00121307373046875, -0.00782012939453125, -0.03741455078125, -0.0157470703125, 0.0268096923828125, 0.01678466796875, 0.0103607177734375, -0.0252227783203125, -0.0355224609375, 0.005458831787109375, -0.0731201171875, -0.05426025390625, -0.04510498046875, -0.031707763671875, -0.0499267578125, 0.036285400390625, -0.0279541015625, 0.019073486328125, 0.054595947265625, -0.0008974075317382812, 0.03253173828125, -0.046112060546875, -0.0311431884765625, -0.03271484375, -0.04156494140625, -0.0193634033203125, 0.01296234130859375, -0.0217132568359375, 0.0212554931640625, -0.034912109375, -0.0054168701171875, -0.04949951171875, 0.0149688720703125, -0.020751953125, -0.0023555755615234375, 0.0282440185546875, 0.0259246826171875, -0.05108642578125, 0.00469207763671875, 0.001552581787109375, -0.036529541015625, 0.0020122528076171875, -0.0005693435668945312, -0.0311431884765625, 0.0215911865234375, -0.00794219970703125, 0.023773193359375, -0.0200653076171875, -0.033843994140625, -0.0295867919921875, -0.0226593017578125, -0.0721435546875, -0.01206207275390625, 0.01006317138671875, -0.028839111328125, -0.00023281574249267578, -0.01558685302734375, -0.0086517333984375, 0.02386474609375, -0.014373779296875, 0.041656494140625, 0.007659912109375, 0.0098876953125, -0.0169830322265625, 0.0189361572265625, 0.0100860595703125, 0.0278778076171875, -0.04034423828125, -0.0455322265625, -0.048614501953125, 0.0211181640625, -0.03363037109375, 0.00666046142578125, -0.0023136138916015625, 0.046661376953125, 0.0341796875, -0.020355224609375, 0.047149658203125, 0.042694091796875, 0.05078125, -0.01128387451171875, -0.055755615234375, -0.004070281982421875, 0.09344482421875, -0.034912109375, -0.0212249755859375, 0.031982421875, 0.01378631591796875, -0.023040771484375, -0.0032787322998046875, -0.045196533203125, -0.02142333984375, -0.056243896484375, 0.0266265869140625, 0.035736083984375, -0.030731201171875, -0.04327392578125, 0.058349609375, -0.0848388671875, -0.011474609375, 0.037872314453125, -0.0416259765625, -0.0013170242309570312, 0.0032253265380859375, -0.03387451171875, -0.025177001953125, -0.0301361083984375, -0.02435302734375, -0.0823974609375, -0.0236663818359375, -0.06640625, 0.10028076171875, 0.0458984375, 0.005767822265625, 0.003543853759765625, 0.06793212890625, -0.0011081695556640625, 0.0021038055419921875, 0.0218505859375, 0.0181732177734375, 0.0228729248046875, -0.017425537109375, 0.0151214599609375, -0.032257080078125, 0.0007567405700683594, -0.0260467529296875, -0.0634765625, -0.033294677734375, 0.0050201416015625, 0.017059326171875, 0.05535888671875, -0.047607421875, -0.049468994140625, -0.031341552734375, -0.0191497802734375, 0.0291900634765625, -0.0032825469970703125, -0.0004954338073730469, -0.03094482421875, -0.060211181640625, 0.0008325576782226562, -0.026702880859375, -0.02459716796875, 0.023284912109375, 0.033477783203125, 0.02130126953125, -0.01386260986328125, -0.0101470947265625, 0.00946044921875, 0.0305633544921875, 0.0116424560546875, 0.023651123046875, 0.01346588134765625, -0.018829345703125, 0.0220489501953125, 0.00988006591796875, 0.001926422119140625, 0.0146484375, 0.046112060546875, 0.00943756103515625, 0.0078582763671875, 0.0005154609680175781, 0.022308349609375, -0.0528564453125, 0.01149749755859375, -0.0078277587890625, -0.00977325439453125, -0.0075836181640625, 0.02862548828125, -0.01412200927734375, -0.00464630126953125, -0.0222320556640625, -0.02276611328125, -0.00406646728515625, -0.06280517578125, 0.05157470703125, 0.034759521484375, -0.00008094310760498047, 0.028594970703125, 0.04400634765625, -0.00482940673828125, -0.0100250244140625, 0.0024871826171875, -0.0224761962890625, 0.01369476318359375, -0.01432037353515625, -0.033233642578125, 0.005054473876953125, -0.01012420654296875, 0.1048583984375, 0.0283355712890625, -0.0253448486328125, 0.01416778564453125, -0.0004413127899169922, -0.0216064453125, 0.0157012939453125, 0.030609130859375, 0.0165557861328125, -0.0026111602783203125, -0.01020050048828125, -0.006031036376953125, 0.04400634765625, -0.054473876953125, -0.019378662109375, 0.05352783203125, 0.02947998046875, -0.00722503662109375, -0.002490997314453125, 0.03729248046875, 0.02154541015625, 0.0019178390502929688, -0.017364501953125, -0.00923919677734375, -0.0011053085327148438, 0.061309814453125, 0.038177490234375, -0.061553955078125, -0.01459503173828125, 0.030975341796875, 0.003696441650390625, -0.04656982421875, 0.012542724609375, 0.0218963623046875, 0.03448486328125, 0.047607421875, -0.0264892578125, 0.00011730194091796875, -0.020050048828125, -0.0018815994262695312, 0.046356201171875, 0.0005040168762207031, -0.048919677734375, -0.004756927490234375, -0.0034084320068359375, 0.018707275390625, -0.058990478515625, -0.033721923828125, 0.047149658203125, -0.047332763671875, 0.00970458984375, 0.0091552734375, -0.04669189453125, 0.0308685302734375, 0.028289794921875, -0.0012559890747070312, -0.01058197021484375, -0.01202392578125, -0.06842041015625, -0.03399658203125, -0.006351470947265625, -0.01132965087890625, 0.025054931640625, -0.034759521484375, -0.0080108642578125, 0.0024852752685546875, -0.005222320556640625, -0.0244598388671875, 0.016082763671875, 0.038330078125, 0.00914764404296875, -0.033782958984375, -0.005035400390625, -0.05621337890625, -0.0303497314453125, -0.0816650390625, -0.05767822265625, -0.0418701171875, 0.0143280029296875, 0.021697998046875, 0.026275634765625, -0.0013027191162109375, -0.0277862548828125, -0.037109375, 0.019317626953125, 0.04296875, 0.044219970703125, -0.050445556640625, 0.0210418701171875, 0.006023406982421875, -0.0240325927734375, -0.030914306640625, -0.003505706787109375, 0.0176849365234375, 0.006847381591796875, 0.01218414306640625, -0.0305633544921875, -0.0257568359375, 0.004138946533203125, -0.0308685302734375, 0.00443267822265625, 0.032806396484375, -0.003673553466796875, 0.0234832763671875, -0.022216796875, 0.00272369384765625, 0.00006496906280517578, 0.0428466796875, -0.051361083984375, -0.0016183853149414062, 0.0216827392578125, -0.0163116455078125, 0.04144287109375, 0.01403045654296875, -0.038330078125, 0.0230255126953125, 0.005565643310546875, 0.015960693359375, 0.0145721435546875, -0.027374267578125, 0.0291595458984375, 0.048126220703125, 0.036468505859375, 0.04949951171875, 0.0230712890625, 0.047760009765625, -0.0023212432861328125, 0.005535125732421875, 0.03790283203125, 0.007656097412109375, 0.026641845703125, -0.0250701904296875, -0.0272979736328125, -0.0286102294921875, -0.054962158203125, -0.01070404052734375, 0.0618896484375, 0.04669189453125, -0.0662841796875, -0.0027103424072265625, 0.0013856887817382812, -0.0124969482421875, 0.007080078125, -0.008209228515625, -0.00887298583984375, -0.0390625, 0.02740478515625, -0.0025005340576171875, -0.015655517578125, -0.01039886474609375, -0.00917816162109375, -0.0069122314453125, -0.024169921875, -0.00901031494140625, 0.0033473968505859375, 0.01708984375, -0.0157318115234375, -0.005458831787109375, -0.0012035369873046875, -0.0245819091796875, 0.0087738037109375, 0.0028839111328125, -0.005527496337890625, -0.07293701171875, -0.005039215087890625, -0.033721923828125, -0.0082855224609375, 0.03582763671875, 0.00328826904296875, -0.02069091796875, 0.01464080810546875, -0.010009765625, 0.004230499267578125, -0.026824951171875, 0.008056640625, 0.062255859375, -0.00925445556640625, -0.01490020751953125, -0.03668212890625, -0.0098876953125, -0.007785797119140625, -0.0182952880859375, -0.00980377197265625, -0.00502777099609375, -0.013916015625, 0.06427001953125, -0.037841796875, -0.0018596649169921875, 0.031585693359375, 0.032196044921875, -0.01108551025390625, -0.004741668701171875, 0.025299072265625, -0.08636474609375, -0.07061767578125, 0.01532745361328125, -0.062347412109375, -0.0276947021484375, -0.017852783203125, -0.061370849609375, 0.03497314453125, -0.00030159950256347656, 0.055084228515625, 0.0498046875, -0.0092926025390625, -0.058624267578125, -0.045684814453125, 0.016387939453125, 0.004314422607421875, -0.0297698974609375, -0.01392364501953125, -0.01033782958984375, 0.0003304481506347656, -0.009307861328125, 0.045928955078125, -0.0016498565673828125, 0.0125579833984375, -0.06427001953125, -0.0008044242858886719, 0.032196044921875, 0.060821533203125, 0.050994873046875, 0.055145263671875, -0.003520965576171875, -0.015716552734375, -0.01351165771484375, 0.0242767333984375, 0.03985595703125, -0.040008544921875, -0.036590576171875, 0.01421356201171875, 0.004947662353515625, 0.0128326416015625, 0.027862548828125, 0.01561737060546875, 0.0224761962890625, -0.0093536376953125, -0.005664825439453125, -0.057891845703125, -0.0024585723876953125, 0.009521484375, -0.035675048828125, 0.00266265869140625, 0.032928466796875, -0.0284576416015625, 0.024993896484375, -0.016204833984375, -0.03277587890625, -0.03387451171875, 0.01244354248046875, -0.035400390625, -0.026336669921875, -0.0296173095703125, 0.051361083984375, -0.04730224609375, -0.03228759765625, -0.0279083251953125, 0.037872314453125, -0.050079345703125, -0.03350830078125, 0.0184326171875, -0.0024013519287109375, 0.01151275634765625, -0.056671142578125, 0.01070404052734375, -0.022308349609375, -0.032745361328125, 0.005321502685546875, -0.05816650390625, -0.02020263671875, 0.034423828125, 0.031097412109375, -0.031982421875, 0.0050201416015625, 0.016082763671875, 0.01102447509765625, 0.0225372314453125, 0.01125335693359375, -0.00948333740234375, -0.05120849609375, 0.020843505859375, 0.02923583984375, 0.058868408203125, 0.0140838623046875, 0.054595947265625, -0.004421234130859375, -0.03167724609375, 0.0116119384765625, -0.0211639404296875, -0.0310211181640625, -0.00363922119140625, -0.048431396484375, -0.04339599609375, 0.007015228271484375, 0.0491943359375, 0.00939178466796875, 0.0020599365234375, 0.0281219482421875, 0.05450439453125, 0.0200347900390625, -0.0111083984375, 0.057159423828125, 0.01267242431640625, -0.0192718505859375, -0.049530029296875, 0.0654296875, 0.068359375, 0.04400634765625, 0.0149993896484375, 0.035858154296875, 0.054779052734375, 0.0264129638671875, -0.0145721435546875, 0.02874755859375, 0.000988006591796875, -0.019500732421875, 0.0296173095703125, -0.056884765625, 0.05401611328125, -0.0909423828125, -0.00696563720703125, -0.03961181640625, -0.0232086181640625, 0.02935791015625, 0.039031982421875, -0.02252197265625, 0.04583740234375, 0.031463623046875, -0.007965087890625, -0.040069580078125, -0.003040313720703125, 0.0540771484375, 0.0235137939453125, 0.0010366439819335938, 0.053192138671875, -0.067138671875, -0.0270233154296875, -0.02838134765625, 0.0173187255859375, 0.028839111328125, 0.050628662109375, 0.01361846923828125, 0.0345458984375, 0.004901885986328125, -0.0245513916015625, 0.00506591796875, 0.0022907257080078125, -0.00524139404296875, -0.00749969482421875, -0.025146484375, 0.0024318695068359375, -0.048126220703125, 0.018310546875, 0.035614013671875, -0.03302001953125, 0.011932373046875, -0.011993408203125, 0.0112762451171875, -0.020599365234375, 0.0146484375, -0.0318603515625, -0.0260772705078125, 0.0155792236328125, 0.013763427734375, -0.016510009765625, -0.00725555419921875, 0.0053253173828125, 0.024444580078125, 0.034088134765625, -0.0011157989501953125, 0.0305938720703125, -0.0128936767578125, 0.0360107421875, 0.0260467529296875, 0.0169219970703125, 0.01557159423828125, 0.003116607666015625, -0.01727294921875, 0.0142059326171875, 0.0228118896484375, 0.01021575927734375, -0.003131866455078125, 0.0211181640625, 0.0272064208984375, 0.05950927734375, 0.03955078125, -0.01480865478515625, 0.015960693359375, 0.038818359375, -0.0196380615234375, 0.0120849609375, 0.03131103515625, -0.01406097412109375, -0.011138916015625, 0.0014591217041015625, 0.0265655517578125, 0.00829315185546875, 0.01482391357421875, -0.0693359375, -0.015045166015625, 0.033294677734375, -0.002964019775390625, -0.01131439208984375, 0.03582763671875, -0.033447265625, -0.032135009765625, -0.00698089599609375, 0.0221405029296875, 0.023651123046875, 0.078857421875, -0.0421142578125, -0.037689208984375, -0.0117034912109375, 0.0199432373046875, -0.03326416015625, -0.0067901611328125, 0.01149749755859375, -0.0160675048828125, 0.01227569580078125, -0.033233642578125, 0.021484375, 0.0072021484375, 0.03076171875, -0.01044464111328125, -0.01004791259765625, 0.034881591796875, -0.027801513671875, -0.0312042236328125, 0.0009183883666992188, 0.015655517578125, 0.0009441375732421875, -0.035125732421875, 0.03271484375, 0.029205322265625, -0.03173828125, -0.0732421875, -0.0657958984375, 0.00839996337890625, -0.037994384765625, -0.02734375, 0.0262451171875, -0.0029754638671875, -0.045989990234375, -0.01568603515625, -0.0115966796875, 0.01404571533203125, 0.025115966796875, -0.01232147216796875, 0.0144195556640625, 0.0236968994140625, 0.01082611083984375, 0.0091400146484375, 0.0179595947265625, 0.0282135009765625, -0.02496337890625, 0.0033588409423828125, -0.00324249267578125, 0.01837158203125, 0.04827880859375, -0.016510009765625, -0.0212249755859375, -0.0016689300537109375, -0.029388427734375, -0.030029296875, -0.0211029052734375, -0.0125732421875, 0.014892578125, 0.06524658203125, 0.08135986328125, 0.01480865478515625, -0.05340576171875, -0.010528564453125, -0.022674560546875, -0.0248870849609375, 0.001888275146484375, 0.008819580078125, -0.05560302734375, -0.00887298583984375, 0.0257568359375, -0.0014314651489257812, 0.0132598876953125, 0.0263671875, -0.01438140869140625, -0.00286865234375, 0.01508331298828125, -0.01031494140625, -0.09039306640625, 0.0264129638671875, 0.07568359375, -0.06256103515625, -0.050445556640625, 0.01377105712890625, -0.0001590251922607422, 0.0014810562133789062, -0.0614013671875, 0.0166015625, 0.04022216796875, -0.07476806640625, -0.0022335052490234375, -0.006206512451171875, 0.04571533203125, -0.04510498046875, -0.007022857666015625, -0.0181732177734375, 0.018035888671875, -0.005748748779296875, 0.0170745849609375, 0.05859375, 0.0002503395080566406, 0.0012750625610351562, 0.062164306640625, 0.01328277587890625, 0.08978271484375, -0.00882720947265625, 0.07537841796875, 0.0099639892578125, -0.04388427734375, 0.0203704833984375, -0.052490234375, 0.0044097900390625, 0.039031982421875, -0.0020465850830078125, -0.02301025390625, -0.01480865478515625, 0.05035400390625, 0.036529541015625, 0.00289154052734375 ]
dc556891b178948bf6425ca06dbf234426a20823
Wordpress Stackexchange Q: How to remove duplicate sub-menu name for top level menu items in a plugin? I have written a custom plugin for wordpress. Once I add a sub-menu to the plugin I get a double entry for the top level item: I would like to disable the second "TopLevel" menu item so it would appear like so: So, How do I disable the Top leve sub menu? A: If you dont want 'TopLevel' menu to represent a custom page you can use: add_menu_page( 'TopLevel', 'TopLevel', 'MENU_CAP_LVL', 'MENU_SLUG', 'MENU_CB' ); add_submenu_page( 'MENU_SLUG', 'SubMenu', 'SubMenu', 'MENU_CAP_LVL', 'SUB_MENU_SLUG', 'SUB_MENU_CB' ); add_submenu_page( 'MENU_SLUG', 'SubMenu-A', 'SubMenu-A', 'MENU_CAP_LVL', 'SUB_MENU_A_SLUG', 'SUB_MENU_A_CB' ); remove_submenu_page('MENU_SLUG','MENU_SLUG'); In this way click on "TopMenu" will forward to the 1st "SubMenu" and prevent "TopLevel" from being duplicate. Alternative solution would be a renaming the "TopLevel" label inside sub-menu by adding a sub menu entity with same page_slug, menu_slug, function (callback) as it used in add_menu_page: add_menu_page( 'TopLevel', 'TopLevel', 'MENU_CAP_LVL', 'MENU_SLUG', 'MENU_CB' ); add_submenu_page( 'MENU_SLUG', 'MyRenamedTopLevelMenu', 'MyRenamedTopLevelMenu', 'MENU_CAP_LVL', 'MENU_SLUG', 'MENU_CB' ); add_submenu_page( 'MENU_SLUG', 'SubMenu', 'SubMenu', 'MENU_CAP_LVL', 'SUB_MENU_SLUG', 'SUB_MENU_CB' );
Q: How to remove duplicate sub-menu name for top level menu items in a plugin? I have written a custom plugin for wordpress. Once I add a sub-menu to the plugin I get a double entry for the top level item: I would like to disable the second "TopLevel" menu item so it would appear like so: So, How do I disable the Top leve sub menu? A: If you dont want 'TopLevel' menu to represent a custom page you can use: add_menu_page( 'TopLevel', 'TopLevel', 'MENU_CAP_LVL', 'MENU_SLUG', 'MENU_CB' ); add_submenu_page( 'MENU_SLUG', 'SubMenu', 'SubMenu', 'MENU_CAP_LVL', 'SUB_MENU_SLUG', 'SUB_MENU_CB' ); add_submenu_page( 'MENU_SLUG', 'SubMenu-A', 'SubMenu-A', 'MENU_CAP_LVL', 'SUB_MENU_A_SLUG', 'SUB_MENU_A_CB' ); remove_submenu_page('MENU_SLUG','MENU_SLUG'); In this way click on "TopMenu" will forward to the 1st "SubMenu" and prevent "TopLevel" from being duplicate. Alternative solution would be a renaming the "TopLevel" label inside sub-menu by adding a sub menu entity with same page_slug, menu_slug, function (callback) as it used in add_menu_page: add_menu_page( 'TopLevel', 'TopLevel', 'MENU_CAP_LVL', 'MENU_SLUG', 'MENU_CB' ); add_submenu_page( 'MENU_SLUG', 'MyRenamedTopLevelMenu', 'MyRenamedTopLevelMenu', 'MENU_CAP_LVL', 'MENU_SLUG', 'MENU_CB' ); add_submenu_page( 'MENU_SLUG', 'SubMenu', 'SubMenu', 'MENU_CAP_LVL', 'SUB_MENU_SLUG', 'SUB_MENU_CB' ); A: You can easily handle via css. Like .class_name{ display:none; } Hopefully it will work for you.
wordpress
{ "language": "en", "length": 192, "provenance": "stackexchange_00019.jsonl.gz:458541", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/200144" }
[ 0.09405517578125, -0.007419586181640625, 0.030670166015625, -0.015045166015625, 0.0306854248046875, -0.044586181640625, 0.09832763671875, -0.048065185546875, -0.029541015625, 0.038421630859375, 0.04766845703125, -0.01561737060546875, 0.00980377197265625, -0.051605224609375, 0.0111236572265625, -0.0023784637451171875, 0.0151824951171875, 0.030242919921875, 0.0200347900390625, -0.0134735107421875, -0.00682830810546875, 0.006313323974609375, -0.0172119140625, 0.07464599609375, 0.0390625, -0.05047607421875, 0.04022216796875, -0.02923583984375, 0.019683837890625, -0.03265380859375, 0.0190582275390625, 0.0257720947265625, -0.0157928466796875, 0.0311431884765625, 0.01273345947265625, -0.00833892822265625, -0.015045166015625, 0.024383544921875, 0.024749755859375, 0.000652313232421875, 0.03240966796875, -0.006381988525390625, -0.035125732421875, 0.0215301513671875, -0.031982421875, -0.042327880859375, 0.0287933349609375, -0.00820159912109375, 0.006435394287109375, -0.0301055908203125, 0.0265045166015625, 0.0075836181640625, 0.044464111328125, -0.0304107666015625, -0.01271820068359375, 0.0193939208984375, -0.001010894775390625, -0.0027217864990234375, 0.0109100341796875, 0.06646728515625, 0.0111541748046875, 0.019012451171875, 0.00022852420806884766, -0.05706787109375, -0.0010061264038085938, 0.00345611572265625, -0.03546142578125, 0.0193328857421875, -0.04931640625, 0.0112762451171875, 0.03521728515625, -0.058868408203125, 0.03680419921875, 0.0175933837890625, -0.045745849609375, -0.033966064453125, 0.0160064697265625, -0.01329803466796875, 0.05419921875, -0.05596923828125, 0.0035953521728515625, -0.0198822021484375, -0.0109405517578125, 0.01837158203125, -0.0216064453125, 0.025543212890625, -0.01560211181640625, -0.0138397216796875, -0.012176513671875, 0.028533935546875, -0.0200958251953125, -0.01219940185546875, 0.037139892578125, 0.039154052734375, -0.0167694091796875, 0.020172119140625, 0.04241943359375, 0.07684326171875, -0.026519775390625, 0.001171112060546875, -0.0164794921875, -0.034210205078125, 0.00015246868133544922, -0.06365966796875, 0.01409912109375, 0.032684326171875, -0.0019216537475585938, -0.028472900390625, 0.04669189453125, 0.00908660888671875, 0.01039886474609375, 0.0703125, 0.00399017333984375, -0.056671142578125, 0.027099609375, 0.0013246536254882812, -0.024658203125, 0.0433349609375, 0.0307769775390625, -0.004077911376953125, 0.00702667236328125, 0.043609619140625, -0.048187255859375, 0.031524658203125, 0.00904083251953125, 0.0186767578125, 0.005069732666015625, -0.01456451416015625, -0.05084228515625, -0.01010894775390625, -0.05059814453125, 0.0245361328125, 0.1387939453125, 0.06982421875, 0.031494140625, -0.0156707763671875, -0.009735107421875, -0.0137939453125, 0.00868988037109375, 0.0004963874816894531, 0.0101776123046875, 0.0167083740234375, 0.0345458984375, -0.0183563232421875, -0.0185394287109375, 0.0031261444091796875, -0.026641845703125, 0.026092529296875, 0.0443115234375, -0.039947509765625, 0.0100555419921875, -0.073486328125, 0.04278564453125, -0.0028858184814453125, -0.058197021484375, -0.02630615234375, -0.01384735107421875, -0.01422882080078125, -0.0007758140563964844, -0.0299224853515625, -0.035064697265625, -0.0189208984375, 0.00948333740234375, -0.053009033203125, -0.053497314453125, 0.0234832763671875, -0.017425537109375, 0.0015974044799804688, 0.0188140869140625, -0.030029296875, 0.046600341796875, 0.0025920867919921875, -0.00864410400390625, -0.01006317138671875, -0.00017154216766357422, -0.0005245208740234375, -0.00917816162109375, 0.002628326416015625, 0.01226806640625, 0.048126220703125, 0.0018301010131835938, -0.03692626953125, 0.0276031494140625, -0.011505126953125, -0.08416748046875, 0.0245361328125, -0.00504302978515625, 0.06365966796875, 0.034759521484375, 0.012664794921875, 0.07061767578125, -0.0211334228515625, -0.052490234375, -0.0006875991821289062, -0.00476837158203125, -0.005870819091796875, 0.017425537109375, 0.01103973388671875, -0.0109710693359375, 0.016754150390625, -0.03668212890625, 0.0338134765625, -0.04962158203125, 0.0204620361328125, -0.06219482421875, -0.01183319091796875, -0.01293182373046875, 0.04052734375, 0.01493072509765625, 0.00206756591796875, -0.01163482666015625, -0.03863525390625, 0.01898193359375, -0.0423583984375, -0.0286102294921875, 0.0004298686981201172, -0.0079803466796875, -0.0034542083740234375, -0.01690673828125, 0.006153106689453125, -0.00339508056640625, 0.0279083251953125, -0.019805908203125, -0.005767822265625, 0.01412200927734375, 0.006317138671875, -0.0304718017578125, -0.00400543212890625, -0.00360107421875, 0.0144500732421875, -0.0389404296875, 0.034759521484375, 0.06683349609375, 0.018829345703125, -0.025054931640625, 0.02447509765625, 0.0239105224609375, -0.060577392578125, -0.0275726318359375, 0.040130615234375, 0.0221099853515625, 0.022735595703125, -0.017181396484375, 0.0201263427734375, 0.00009047985076904297, -0.07861328125, -0.01153564453125, 0.016571044921875, -0.0205535888671875, -0.00347137451171875, 0.01004791259765625, -0.0032749176025390625, 0.0288543701171875, 0.034454345703125, 0.0251007080078125, 0.005626678466796875, -0.0215911865234375, -0.0265655517578125, 0.03765869140625, -0.005359649658203125, 0.01174163818359375, 0.017547607421875, 0.0013055801391601562, -0.006778717041015625, 0.005779266357421875, -0.0011577606201171875, 0.0183258056640625, 0.026275634765625, -0.0191497802734375, -0.00811004638671875, 0.029327392578125, 0.04449462890625, -0.004253387451171875, -0.02099609375, 0.0316162109375, -0.03521728515625, -0.036468505859375, 0.015869140625, 0.0027942657470703125, -0.022857666015625, 0.004940032958984375, 0.051605224609375, 0.022186279296875, -0.02374267578125, -0.02850341796875, -0.060333251953125, -0.002735137939453125, -0.00865936279296875, -0.0472412109375, -0.0345458984375, -0.00020694732666015625, 0.0245361328125, -0.0105438232421875, 0.006595611572265625, -0.00026154518127441406, -0.01318359375, 0.024932861328125, 0.01212310791015625, 0.0072021484375, -0.0157318115234375, 0.0286407470703125, 0.035003662109375, -0.01316070556640625, -0.0234375, -0.004657745361328125, -0.024688720703125, -0.0284271240234375, 0.00791168212890625, -0.01064300537109375, 0.0243377685546875, -0.058074951171875, 0.06658935546875, 0.01250457763671875, 0.013946533203125, 0.00501251220703125, -0.02783203125, -0.005115509033203125, 0.0125274658203125, -0.0198822021484375, -0.021759033203125, 0.02691650390625, -0.0251617431640625, 0.04791259765625, 0.05133056640625, -0.018646240234375, -0.0496826171875, 0.10260009765625, 0.015716552734375, 0.037933349609375, -0.046417236328125, 0.00241851806640625, 0.0031948089599609375, -0.01172637939453125, 0.02178955078125, 0.01457977294921875, -0.037261962890625, 0.00897979736328125, 0.03631591796875, 0.0107421875, -0.044097900390625, 0.04833984375, -0.0082550048828125, 0.0050506591796875, 0.064697265625, 0.035888671875, -0.01519775390625, 0.01296234130859375, 0.0134124755859375, -0.041046142578125, 0.0207366943359375, -0.005840301513671875, -0.03729248046875, 0.005657196044921875, 0.005462646484375, 0.0269622802734375, -0.0011434555053710938, 0.0130767822265625, 0.04144287109375, 0.03948974609375, 0.0015954971313476562, -0.0289764404296875, -0.040771484375, -0.056488037109375, 0.043487548828125, 0.042388916015625, 0.00934600830078125, -0.048309326171875, 0.0526123046875, -0.008270263671875, -0.020172119140625, 0.027313232421875, -0.0137786865234375, -0.01435089111328125, -0.0206298828125, -0.00974273681640625, -0.006977081298828125, 0.0643310546875, 0.001300811767578125, -0.02301025390625, 0.01258087158203125, 0.0029392242431640625, -0.008453369140625, 0.0011892318725585938, -0.0256500244140625, -0.022216796875, 0.057281494140625, -0.00765228271484375, 0.0372314453125, -0.041839599609375, -0.038177490234375, -0.01541900634765625, 0.07989501953125, -0.06884765625, -0.0201416015625, -0.0231170654296875, -0.007747650146484375, 0.04266357421875, 0.00844573974609375, -0.04083251953125, -0.0280609130859375, -0.11956787109375, 0.033416748046875, 0.017303466796875, -0.0322265625, -0.004608154296875, 0.0145721435546875, -0.066162109375, -0.047393798828125, 0.04095458984375, -0.0645751953125, 0.0023097991943359375, 0.0465087890625, -0.0184478759765625, -0.00716400146484375, -0.047271728515625, -0.023345947265625, -0.05224609375, -0.00738525390625, -0.01983642578125, 0.0433349609375, -0.004116058349609375, 0.003673553466796875, -0.00814056396484375, 0.03045654296875, 0.0246124267578125, 0.039093017578125, -0.0030422210693359375, -0.0340576171875, 0.022613525390625, 0.0083160400390625, -0.0003795623779296875, 0.019500732421875, -0.00016760826110839844, -0.01413726806640625, -0.016937255859375, -0.0017709732055664062, -0.0222625732421875, 0.0115509033203125, 0.0159454345703125, -0.0255889892578125, -0.053375244140625, -0.048187255859375, -0.0287017822265625, -0.0241851806640625, 0.006435394287109375, -0.00904083251953125, -0.04376220703125, -0.045074462890625, -0.0297698974609375, 0.005069732666015625, -0.037445068359375, 0.037872314453125, -0.005420684814453125, 0.024871826171875, -0.00266265869140625, -0.05242919921875, -0.0034732818603515625, 0.0020961761474609375, -0.0162506103515625, 0.041534423828125, 0.023956298828125, 0.0145263671875, 0.00909423828125, -0.038726806640625, 0.0187530517578125, -0.01055145263671875, 0.0341796875, 0.0021820068359375, -0.02545166015625, 0.026123046875, -0.0163116455078125, -0.0229339599609375, 0.035125732421875, -0.0311279296875, -0.0081024169921875, -0.072021484375, 0.041351318359375, 0.01271820068359375, 0.01534271240234375, -0.05255126953125, -0.01352691650390625, 0.00850677490234375, -0.02227783203125, 0.01776123046875, 0.01218414306640625, 0.00037169456481933594, -0.0140838623046875, -0.0132293701171875, -0.01209259033203125, -0.00716400146484375, 0.04010009765625, -0.01934814453125, 0.02484130859375, -0.01361846923828125, -0.022918701171875, -0.023529052734375, -0.0068817138671875, 0.09521484375, 0.029022216796875, -0.021148681640625, -0.0005011558532714844, -0.0176239013671875, -0.002105712890625, -0.007190704345703125, 0.032958984375, 0.0062713623046875, -0.00194549560546875, -0.01132965087890625, 0.0100250244140625, 0.0233001708984375, -0.0045318603515625, -0.0162353515625, 0.0086517333984375, 0.03131103515625, -0.0264739990234375, -0.004016876220703125, 0.02154541015625, 0.052337646484375, -0.0186767578125, -0.0166015625, -0.00746917724609375, 0.01319122314453125, 0.01055145263671875, 0.01068115234375, 0.0248565673828125, -0.03338623046875, 0.00566864013671875, 0.032806396484375, -0.05267333984375, -0.0224456787109375, 0.01441192626953125, 0.044708251953125, 0.033416748046875, -0.01323699951171875, -0.005977630615234375, 0.0009918212890625, -0.0119781494140625, 0.026947021484375, -0.0259552001953125, -0.0494384765625, -0.0002925395965576172, 0.0159149169921875, 0.0328369140625, -0.03228759765625, -0.0272064208984375, 0.01360321044921875, -0.035491943359375, -0.0184173583984375, 0.0245208740234375, -0.06488037109375, 0.013916015625, 0.03314208984375, -0.045989990234375, -0.00951385498046875, 0.00891876220703125, -0.06976318359375, -0.0455322265625, -0.00592803955078125, -0.00592803955078125, 0.035919189453125, -0.022064208984375, 0.030181884765625, 0.0011749267578125, -0.0333251953125, -0.001087188720703125, 0.00984954833984375, 0.042724609375, 0.0227203369140625, -0.04681396484375, -0.0133819580078125, -0.0243377685546875, -0.0228271484375, -0.01255035400390625, -0.0256500244140625, -0.0313720703125, 0.0007357597351074219, -0.0252227783203125, -0.00418853759765625, -0.0254669189453125, 0.006622314453125, 0.00806427001953125, 0.0182952880859375, -0.01934814453125, -0.0024166107177734375, -0.0188446044921875, 0.037261962890625, 0.0024700164794921875, -0.006988525390625, -0.012451171875, 0.0272369384765625, 0.038787841796875, -0.0279693603515625, 0.006870269775390625, -0.01270294189453125, -0.0289306640625, -0.0159149169921875, -0.011077880859375, 0.035247802734375, 0.061676025390625, -0.004268646240234375, 0.052215576171875, -0.007904052734375, 0.026824951171875, -0.003787994384765625, -0.049468994140625, -0.055511474609375, -0.01515960693359375, 0.0457763671875, -0.055511474609375, 0.0254364013671875, 0.020477294921875, 0.005840301513671875, 0.026214599609375, -0.044158935546875, 0.0511474609375, 0.03265380859375, -0.03887939453125, 0.05340576171875, 0.025604248046875, 0.008056640625, 0.0280303955078125, 0.00908660888671875, 0.01499176025390625, -0.0109405517578125, -0.0721435546875, 0.058258056640625, 0.053497314453125, 0.0491943359375, -0.03070068359375, 0.011810302734375, 0.033935546875, -0.0245513916015625, -0.00423431396484375, 0.04022216796875, 0.032379150390625, -0.07244873046875, 0.0001354217529296875, 0.0009794235229492188, -0.01044464111328125, -0.0137176513671875, 0.004566192626953125, 0.0178985595703125, -0.01068878173828125, 0.01499176025390625, -0.0166168212890625, -0.01222991943359375, 0.00034689903259277344, -0.0133209228515625, -0.0201263427734375, 0.005725860595703125, 0.037628173828125, 0.02386474609375, 0.0662841796875, -0.02435302734375, -0.034576416015625, 0.00876617431640625, -0.00548553466796875, -0.03143310546875, 0.03485107421875, -0.0455322265625, -0.0673828125, 0.01349639892578125, -0.041717529296875, -0.0100860595703125, 0.0537109375, 0.023406982421875, 0.0011692047119140625, 0.039520263671875, -0.01904296875, 0.016693115234375, 0.0017137527465820312, -0.0311431884765625, 0.044647216796875, 0.007740020751953125, 0.0228729248046875, -0.035125732421875, -0.033447265625, 0.00196075439453125, -0.0233154296875, -0.0029125213623046875, -0.007587432861328125, 0.045318603515625, 0.11468505859375, -0.01019287109375, -0.053070068359375, 0.029022216796875, 0.0093231201171875, -0.023162841796875, -0.024139404296875, 0.051727294921875, -0.039581298828125, -0.0128936767578125, 0.01107025146484375, 0.00574493408203125, -0.00907135009765625, -0.004856109619140625, -0.101318359375, 0.07049560546875, -0.0343017578125, 0.075439453125, -0.0015850067138671875, 0.01219940185546875, 0.00522613525390625, -0.00926971435546875, -0.009552001953125, 0.0626220703125, 0.01395416259765625, 0.0325927734375, -0.01580810546875, -0.01262664794921875, 0.035064697265625, 0.03466796875, 0.01253509521484375, 0.00634002685546875, -0.009735107421875, 0.01495361328125, 0.0615234375, 0.0206298828125, 0.0037975311279296875, 0.0187530517578125, -0.0164642333984375, -0.004467010498046875, 0.01678466796875, -0.05499267578125, 0.024444580078125, -0.0460205078125, -0.0055084228515625, -0.0013332366943359375, 0.0215606689453125, 0.03277587890625, -0.005107879638671875, 0.015655517578125, -0.0013132095336914062, -0.00799560546875, 0.0139617919921875, 0.003215789794921875, 0.0007991790771484375, 0.003925323486328125, -0.00777435302734375, 0.00649261474609375, -0.024932861328125, -0.0094451904296875, 0.0195770263671875, 0.0289154052734375, 0.0059661865234375, 0.00579833984375, -0.001651763916015625, 0.037506103515625, 0.0096435546875, 0.00006669759750366211, 0.038330078125, -0.00015115737915039062, 0.0218048095703125, -0.00742340087890625, 0.016510009765625, -0.072021484375, -0.0007405281066894531, 0.047332763671875, 0.04302978515625, -0.03216552734375, -0.08209228515625, 0.001800537109375, -0.01605224609375, 0.0010442733764648438, 0.019622802734375, 0.002422332763671875, 0.01403045654296875, 0.03936767578125, 0.006378173828125, -0.0184173583984375, 0.0223236083984375, 0.006591796875, 0.0017004013061523438, 0.0010938644409179688, 0.01177978515625, 0.0045928955078125, -0.04730224609375, 0.0219268798828125, 0.01910400390625, 0.040191650390625, 0.007381439208984375, 0.061981201171875, 0.01378631591796875, -0.01861572265625, -0.0094757080078125, 0.02325439453125, -0.017578125, 0.01427459716796875, -0.043121337890625, -0.055023193359375, 0.01971435546875, 0.0222015380859375, 0.007450103759765625, 0.028594970703125, 0.04156494140625, 0.01116180419921875, -0.037261962890625, -0.001560211181640625, 0.0269622802734375, -0.03826904296875, -0.003658294677734375, -0.0147705078125, -0.01506805419921875, 0.004840850830078125, -0.0219268798828125, -0.0117950439453125, 0.028106689453125, 0.000774383544921875, 0.0190277099609375, -0.02288818359375, 0.01288604736328125, -0.01009368896484375, 0.0238800048828125, 0.0192108154296875, -0.0204315185546875, 0.04180908203125, -0.07147216796875, 0.007656097412109375, -0.042572021484375, -0.032196044921875, 0.032928466796875, 0.040740966796875, -0.032684326171875, 0.044464111328125, 0.04669189453125, -0.0245208740234375, 0.004299163818359375, -0.00670623779296875, 0.041717529296875, 0.041473388671875, -0.005268096923828125, 0.03729248046875, -0.012451171875, 0.0014123916625976562, 0.01056671142578125, -0.01412200927734375, 0.0423583984375, 0.027191162109375, 0.021514892578125, 0.0251007080078125, -0.061126708984375, 0.004058837890625, -0.029296875, -0.035369873046875, 0.007110595703125, 0.017669677734375, -0.00875091552734375, 0.0019779205322265625, -0.07659912109375, 0.0069122314453125, 0.046234130859375, -0.019073486328125, 0.022064208984375, 0.0166473388671875, 0.0097198486328125, -0.054931640625, 0.0210418701171875, -0.0003867149353027344, 0.0123443603515625, 0.0128021240234375, 0.0031833648681640625, 0.044342041015625, 0.057647705078125, -0.0091094970703125, 0.01122283935546875, -0.0189208984375, -0.02227783203125, 0.0173187255859375, -0.00351715087890625, 0.0249481201171875, 0.0258941650390625, -0.0245361328125, 0.00799560546875, 0.038177490234375, -0.00433349609375, 0.0205078125, 0.0211944580078125, -0.0034923553466796875, 0.04901123046875, -0.0631103515625, 0.049896240234375, -0.0016984939575195312, 0.020843505859375, -0.0197601318359375, -0.01424407958984375, 0.0273284912109375, -0.0006618499755859375, -0.0167694091796875, -0.0193328857421875, -0.033416748046875, -0.0192413330078125, 0.00969696044921875, 0.0266571044921875, 0.00513458251953125, -0.0182952880859375, -0.0623779296875, 0.013153076171875, 0.04144287109375, 0.024566650390625, -0.064208984375, 0.037689208984375, -0.01264190673828125, 0.03131103515625, 0.007354736328125, 0.030303955078125, -0.03106689453125, -0.02374267578125, -0.0227813720703125, -0.003215789794921875, -0.05426025390625, 0.0533447265625, -0.0099334716796875, -0.00849151611328125, 0.008575439453125, -0.0187530517578125, 0.0007476806640625, -0.057220458984375, 0.0097198486328125, -0.01364898681640625, 0.0111236572265625, -0.01250457763671875, -0.03765869140625, 0.0032939910888671875, -0.012908935546875, -0.0333251953125, 0.0197601318359375, -0.061859130859375, -0.055450439453125, 0.00983428955078125, -0.01508331298828125, 0.0005254745483398438, -0.03338623046875, -0.043182373046875, 0.065673828125, 0.0099639892578125, -0.028717041015625, 0.004390716552734375, -0.0013628005981445312, -0.037261962890625, 0.03326416015625, -0.00017690658569335938, -0.006275177001953125, 0.0178985595703125, 0.04400634765625, 0.004978179931640625, 0.031890869140625, -0.0211334228515625, 0.016143798828125, -0.0076904296875, 0.035430908203125, 0.034027099609375, -0.00891876220703125, 0.0215301513671875, -0.00556182861328125, 0.021759033203125, 0.017120361328125, -0.056793212890625, 0.01116180419921875, -0.0202178955078125, 0.0282440185546875, 0.01236724853515625, -0.00455474853515625, -0.0187530517578125, -0.004009246826171875, 0.052032470703125, 0.0278778076171875, 0.020172119140625, -0.0377197265625, -0.045013427734375, -0.037078857421875, -0.0127105712890625, 0.019378662109375, 0.0301513671875, -0.06292724609375, 0.0293731689453125, 0.028350830078125, -0.021240234375, -0.039093017578125, -0.01399993896484375, -0.06585693359375, -0.01763916015625, -0.021331787109375, 0.039276123046875, -0.053375244140625, 0.00240325927734375, 0.00557708740234375, -0.0277557373046875, -0.046966552734375, -0.01352691650390625, 0.010162353515625, -0.03668212890625, -0.03912353515625, -0.05206298828125, -0.0240020751953125, -0.02838134765625, 0.020660400390625, -0.046875, 0.051910400390625, -0.049835205078125, 0.01125335693359375, -0.057952880859375, 0.0155029296875, 0.0208892822265625, 0.02716064453125, -0.032562255859375, 0.038726806640625, 0.057525634765625, 0.029205322265625, 0.0160369873046875, 0.08642578125, -0.002613067626953125, 0.052581787109375, 0.0186767578125, -0.035614013671875, 0.038299560546875, -0.030364990234375, -0.005504608154296875, 0.030120849609375, -0.01251983642578125, -0.07843017578125, 0.03131103515625, 0.05133056640625, 0.031524658203125, 0.018341064453125 ]
ff558bad5df60d5b63487e42b609df9acaaac934
Wordpress Stackexchange Q: Woocommerce get category image full size i'm trying to get the full size image of my category products. $prod_categories = get_terms( 'product_cat', array( 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => true )); foreach( $prod_categories as $prod_cat ) : $cat_thumb_id = get_woocommerce_term_meta( $prod_cat->term_id, 'thumbnail_id', true ); $cat_thumb_url = wp_get_attachment_thumb_url( $cat_thumb_id ); $term_link = get_term_link( $prod_cat, 'product_cat' );?> <a href="<?php echo $term_link; ?>"><img src="<?php echo $cat_thumb_url; ?>" alt="<?php echo $prod_cat->name; ?>" /></a> <?php endforeach; wp_reset_query(); The above code works, but it returns an image of 150px x 150 even when adjustments in Woocommerce are like this: I´d like to get a larger size or full size. Thanks! A: Thanks to Mike Jolley (Woocommerce plugin author) for the solution using: wp_get_attachment_image_src $prod_categories = get_terms( 'product_cat', array( 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => true )); foreach( $prod_categories as $prod_cat ) : $cat_thumb_id = get_woocommerce_term_meta( $prod_cat->term_id, 'thumbnail_id', true ); $shop_catalog_img = wp_get_attachment_image_src( $cat_thumb_id, 'shop_catalog' ); $term_link = get_term_link( $prod_cat, 'product_cat' );?> <a href="<?php echo $term_link; ?>"><img src="<?php echo $shop_catalog_img[0]; ?>" alt="<?php echo $prod_cat->name; ?>" /></a> <?php endforeach; wp_reset_query();
Q: Woocommerce get category image full size i'm trying to get the full size image of my category products. $prod_categories = get_terms( 'product_cat', array( 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => true )); foreach( $prod_categories as $prod_cat ) : $cat_thumb_id = get_woocommerce_term_meta( $prod_cat->term_id, 'thumbnail_id', true ); $cat_thumb_url = wp_get_attachment_thumb_url( $cat_thumb_id ); $term_link = get_term_link( $prod_cat, 'product_cat' );?> <a href="<?php echo $term_link; ?>"><img src="<?php echo $cat_thumb_url; ?>" alt="<?php echo $prod_cat->name; ?>" /></a> <?php endforeach; wp_reset_query(); The above code works, but it returns an image of 150px x 150 even when adjustments in Woocommerce are like this: I´d like to get a larger size or full size. Thanks! A: Thanks to Mike Jolley (Woocommerce plugin author) for the solution using: wp_get_attachment_image_src $prod_categories = get_terms( 'product_cat', array( 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => true )); foreach( $prod_categories as $prod_cat ) : $cat_thumb_id = get_woocommerce_term_meta( $prod_cat->term_id, 'thumbnail_id', true ); $shop_catalog_img = wp_get_attachment_image_src( $cat_thumb_id, 'shop_catalog' ); $term_link = get_term_link( $prod_cat, 'product_cat' );?> <a href="<?php echo $term_link; ?>"><img src="<?php echo $shop_catalog_img[0]; ?>" alt="<?php echo $prod_cat->name; ?>" /></a> <?php endforeach; wp_reset_query();
wordpress
{ "language": "en", "length": 177, "provenance": "stackexchange_00019.jsonl.gz:458551", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/200170" }
[ -0.0079193115234375, -0.0306243896484375, -0.0200653076171875, -0.0167388916015625, 0.001621246337890625, -0.018341064453125, 0.036041259765625, 0.0140380859375, 0.024200439453125, -0.00331878662109375, -0.011199951171875, -0.0299835205078125, -0.0208740234375, -0.0249786376953125, -0.0189666748046875, -0.037567138671875, 0.05963134765625, -0.018707275390625, 0.060211181640625, 0.0416259765625, -0.00809478759765625, 0.098388671875, 0.049713134765625, 0.049713134765625, 0.0031070709228515625, -0.0292510986328125, 0.09649658203125, -0.044097900390625, 0.0212249755859375, -0.040435791015625, 0.017303466796875, 0.00989532470703125, 0.0178375244140625, -0.02435302734375, 0.03076171875, 0.0189361572265625, 0.007785797119140625, -0.01302337646484375, 0.0103302001953125, 0.01190948486328125, 0.0240631103515625, -0.0170745849609375, 0.048614501953125, 0.005542755126953125, 0.0100860595703125, -0.01528167724609375, 0.014801025390625, -0.05511474609375, -0.014373779296875, -0.004367828369140625, 0.03643798828125, 0.046417236328125, 0.05108642578125, -0.0220489501953125, -0.00803375244140625, 0.01198577880859375, -0.060150146484375, 0.07073974609375, 0.02691650390625, -0.000004947185516357422, -0.028106689453125, -0.01532745361328125, 0.016876220703125, -0.0225677490234375, -0.0006208419799804688, 0.01153564453125, 0.0082855224609375, -0.0038738250732421875, -0.0009112358093261719, 0.0056610107421875, 0.01299285888671875, -0.007762908935546875, -0.0177764892578125, 0.006977081298828125, -0.048370361328125, -0.01007080078125, 0.0254974365234375, -0.016571044921875, 0.01422119140625, -0.01375579833984375, 0.027679443359375, -0.0303802490234375, -0.018524169921875, 0.0202484130859375, 0.0111846923828125, 0.04742431640625, 0.0019702911376953125, -0.018341064453125, -0.0159454345703125, -0.043060302734375, -0.006969451904296875, -0.0254364013671875, -0.056243896484375, 0.0284881591796875, 0.00008410215377807617, -0.031768798828125, 0.03570556640625, 0.0265045166015625, 0.003910064697265625, 0.013336181640625, 0.04443359375, -0.06878662109375, 0.058074951171875, -0.05096435546875, 0.0198211669921875, 0.010345458984375, -0.01212310791015625, 0.0196685791015625, 0.06121826171875, 0.0258331298828125, 0.0145721435546875, 0.057464599609375, -0.00905609130859375, -0.023529052734375, 0.0271759033203125, 0.032928466796875, -0.0310211181640625, 0.06072998046875, -0.0069122314453125, 0.0279998779296875, -0.004489898681640625, 0.032562255859375, 0.016510009765625, -0.0167999267578125, -0.005977630615234375, 0.01522064208984375, 0.01019287109375, -0.077392578125, -0.005828857421875, -0.0148773193359375, -0.0238494873046875, 0.0248260498046875, 0.004589080810546875, 0.01378631591796875, -0.00850677490234375, -0.0024013519287109375, -0.032440185546875, 0.005527496337890625, 0.0024852752685546875, 0.00209808349609375, -0.0198822021484375, 0.025360107421875, 0.08209228515625, -0.034210205078125, 0.006000518798828125, -0.02569580078125, -0.01727294921875, 0.039215087890625, 0.0288238525390625, -0.0037689208984375, 0.040985107421875, -0.05157470703125, 0.042633056640625, 0.0088958740234375, -0.03546142578125, 0.03173828125, 0.050048828125, -0.007503509521484375, -0.07684326171875, -0.04632568359375, 0.033538818359375, -0.00373077392578125, -0.004497528076171875, -0.0157012939453125, -0.0286865234375, 0.003261566162109375, -0.0645751953125, 0.00007683038711547852, 0.0255584716796875, 0.042327880859375, 0.0289154052734375, 0.00783538818359375, -0.0028018951416015625, 0.01212310791015625, -0.0153656005859375, -0.0027217864990234375, -0.015472412109375, -0.006725311279296875, 0.04254150390625, -0.02069091796875, -0.05108642578125, -0.0307769775390625, 0.050079345703125, -0.0380859375, 0.01444244384765625, -0.024261474609375, 0.0218658447265625, 0.0154266357421875, -0.0084991455078125, 0.02911376953125, -0.01297760009765625, 0.004261016845703125, -0.038665771484375, 0.028045654296875, -0.0220947265625, -0.000667572021484375, -0.03387451171875, 0.01959228515625, -0.0196075439453125, -0.006420135498046875, 0.044403076171875, -0.0293426513671875, 0.042938232421875, -0.01013946533203125, -0.01029205322265625, 0.025238037109375, -0.007808685302734375, 0.0272369384765625, -0.0260467529296875, 0.046051025390625, 0.0256500244140625, 0.03143310546875, -0.04058837890625, -0.03167724609375, 0.002513885498046875, 0.0037403106689453125, -0.0157318115234375, 0.036376953125, -0.01184844970703125, 0.054412841796875, -0.039215087890625, -0.04083251953125, -0.01800537109375, 0.0173797607421875, 0.0419921875, 0.041259765625, -0.03466796875, 0.007045745849609375, 0.0226593017578125, 0.0540771484375, -0.08563232421875, -0.01409149169921875, -0.0221099853515625, 0.005584716796875, -0.01358795166015625, 0.00007522106170654297, 0.03143310546875, -0.0655517578125, 0.0216064453125, 0.0254364013671875, 0.0260162353515625, -0.004344940185546875, -0.033599853515625, -0.006267547607421875, 0.11328125, 0.0189361572265625, -0.0009765625, -0.0062103271484375, 0.006122589111328125, 0.018646240234375, 0.0166778564453125, -0.00022125244140625, 0.01277923583984375, -0.0021915435791015625, 0.0313720703125, 0.0230560302734375, 0.002422332763671875, -0.0009188652038574219, -0.0212860107421875, 0.03460693359375, 0.0004992485046386719, 0.0190277099609375, 0.002349853515625, 0.0008525848388671875, -0.00937652587890625, 0.036712646484375, -0.00014221668243408203, -0.00078582763671875, -0.040069580078125, 0.024383544921875, 0.0283966064453125, 0.0013399124145507812, -0.007495880126953125, 0.028656005859375, -0.0258331298828125, -0.03106689453125, -0.020751953125, 0.0267486572265625, -0.0311431884765625, -0.0312347412109375, 0.01343536376953125, 0.043853759765625, 0.0086212158203125, -0.0035839080810546875, -0.01097869873046875, -0.045867919921875, 0.0005350112915039062, 0.025634765625, -0.023040771484375, 0.01085662841796875, 0.0166168212890625, 0.0523681640625, 0.0031185150146484375, 0.0228729248046875, -0.042144775390625, 0.0191650390625, 0.05780029296875, -0.03607177734375, 0.06280517578125, -0.02337646484375, 0.076416015625, 0.06903076171875, -0.055999755859375, 0.066162109375, -0.0113525390625, -0.020751953125, 0.005191802978515625, -0.0007495880126953125, -0.0229034423828125, -0.013763427734375, -0.0850830078125, -0.01551055908203125, 0.008880615234375, 0.037750244140625, -0.0212249755859375, -0.053436279296875, 0.01093292236328125, -0.00003451108932495117, -0.0556640625, -0.028289794921875, -0.04425048828125, -0.07861328125, -0.01094818115234375, -0.0242462158203125, -0.04217529296875, 0.01861572265625, -0.010284423828125, 0.0221099853515625, 0.0184478759765625, -0.035430908203125, -0.0278778076171875, -0.023162841796875, -0.04742431640625, -0.002838134765625, 0.0194549560546875, -0.00716400146484375, -0.00270843505859375, -0.0014629364013671875, -0.008514404296875, -0.0091705322265625, -0.005218505859375, 0.07147216796875, 0.0080108642578125, -0.045318603515625, -0.0305023193359375, 0.0015306472778320312, -0.012542724609375, 0.01511383056640625, -0.0288543701171875, 0.007282257080078125, 0.00823974609375, -0.006877899169921875, -0.0007085800170898438, -0.0171051025390625, 0.006015777587890625, 0.0291748046875, 0.0030155181884765625, -0.009857177734375, 0.0195159912109375, -0.052337646484375, -0.0090179443359375, -0.0232391357421875, -0.038238525390625, 0.0172271728515625, 0.006702423095703125, 0.0164031982421875, -0.0005660057067871094, 0.0029048919677734375, 0.0187225341796875, -0.00817108154296875, 0.030609130859375, -0.04388427734375, 0.0002593994140625, 0.0051727294921875, 0.0170745849609375, -0.030303955078125, -0.007053375244140625, -0.0246734619140625, 0.01073455810546875, -0.016815185546875, -0.00426483154296875, -0.006908416748046875, -0.0238800048828125, -0.01375579833984375, -0.068359375, 0.05157470703125, -0.03179931640625, -0.014312744140625, -0.047332763671875, -0.0293426513671875, -0.01461029052734375, 0.091064453125, 0.00009053945541381836, -0.04327392578125, -0.00682830810546875, 0.016204833984375, -0.036865234375, -0.0123291015625, -0.01171112060546875, -0.0004405975341796875, -0.0869140625, 0.00788116455078125, 0.0211334228515625, -0.04205322265625, 0.0030689239501953125, -0.0307769775390625, -0.072998046875, -0.03448486328125, 0.0252838134765625, -0.0019550323486328125, -0.0032367706298828125, 0.004108428955078125, -0.016632080078125, -0.00005602836608886719, -0.037689208984375, 0.0024700164794921875, -0.0380859375, -0.01091766357421875, 0.0047760009765625, 0.04443359375, -0.0411376953125, 0.0626220703125, -0.0648193359375, 0.0244293212890625, -0.0222930908203125, 0.01558685302734375, 0.00412750244140625, 0.038177490234375, -0.028045654296875, -0.00099945068359375, 0.017333984375, -0.041290283203125, -0.0281524658203125, -0.064697265625, -0.0721435546875, -0.07781982421875, -0.00799560546875, 0.01169586181640625, 0.0164947509765625, -0.00981903076171875, -0.04937744140625, -0.047515869140625, -0.032928466796875, -0.01258087158203125, -0.017578125, -0.0029296875, -0.03009033203125, -0.052032470703125, 0.04742431640625, 0.01346588134765625, -0.020233154296875, 0.0042724609375, 0.048583984375, 0.006343841552734375, -0.02496337890625, -0.04339599609375, -0.03094482421875, 0.054901123046875, 0.03125, 0.0191497802734375, 0.007007598876953125, -0.0499267578125, 0.06768798828125, 0.045379638671875, 0.01439666748046875, -0.01116180419921875, 0.041107177734375, -0.005321502685546875, -0.002338409423828125, -0.0005903244018554688, -0.0108184814453125, -0.01030731201171875, -0.00323486328125, -0.03900146484375, 0.0180511474609375, -0.032806396484375, -0.0006690025329589844, 0.0002810955047607422, 0.0269622802734375, -0.010009765625, 0.01373291015625, -0.0042724609375, 0.049224853515625, 0.06878662109375, 0.03387451171875, 0.010711669921875, 0.01461029052734375, 0.0177001953125, 0.0037078857421875, -0.01532745361328125, -0.01458740234375, -0.0343017578125, 0.018463134765625, -0.03485107421875, -0.0262908935546875, 0.01251220703125, 0.019134521484375, -0.07269287109375, -0.0173797607421875, -0.0081024169921875, -0.0848388671875, 0.0158233642578125, -0.005321502685546875, -0.00782012939453125, -0.056915283203125, 0.054168701171875, 0.0100250244140625, -0.0280914306640625, -0.019317626953125, -0.10345458984375, -0.031280517578125, -0.0631103515625, 0.0143585205078125, 0.01016998291015625, -0.007579803466796875, 0.04901123046875, 0.04034423828125, -0.002838134765625, 0.043792724609375, -0.0179290771484375, 0.01064300537109375, -0.0184783935546875, 0.0220794677734375, 0.01349639892578125, 0.00519561767578125, -0.01241302490234375, -0.010589599609375, 0.004489898681640625, -0.036407470703125, -0.0124053955078125, 0.0228118896484375, 0.033233642578125, -0.033935546875, -0.041473388671875, 0.039398193359375, 0.007335662841796875, -0.01580810546875, 0.004306793212890625, -0.0292816162109375, -0.019744873046875, -0.0389404296875, -0.013153076171875, 0.03851318359375, -0.0037441253662109375, -0.042388916015625, 0.0489501953125, 0.0003452301025390625, 0.02398681640625, 0.0219268798828125, -0.0308837890625, 0.0322265625, 0.048095703125, -0.054046630859375, -0.0266876220703125, -0.00975799560546875, 0.05322265625, 0.0166015625, -0.0196685791015625, -0.0634765625, 0.032745361328125, -0.0031452178955078125, 0.046722412109375, -0.01389312744140625, -0.0418701171875, -0.02764892578125, -0.004245758056640625, 0.058441162109375, 0.0404052734375, 0.003910064697265625, -0.01377105712890625, 0.00009077787399291992, -0.02557373046875, 0.0577392578125, -0.00771331787109375, -0.00957489013671875, -0.042999267578125, 0.01155853271484375, 0.040618896484375, 0.0078125, -0.0160675048828125, -0.003452301025390625, 0.003070831298828125, 0.00701141357421875, 0.04736328125, -0.01515960693359375, -0.0205841064453125, 0.03778076171875, 0.025970458984375, -0.01438140869140625, -0.052947998046875, -0.0261688232421875, -0.00847625732421875, -0.01136016845703125, -0.03521728515625, 0.0179443359375, 0.00824737548828125, -0.0020008087158203125, 0.0029888153076171875, 0.0292816162109375, 0.0230712890625, -0.015899658203125, -0.016815185546875, -0.0004169940948486328, -0.0243072509765625, 0.044342041015625, 0.0177459716796875, -0.01471710205078125, 0.018280029296875, -0.052398681640625, 0.010467529296875, 0.012420654296875, 0.005428314208984375, 0.034942626953125, -0.04962158203125, 0.031524658203125, 0.048126220703125, 0.035797119140625, -0.001983642578125, 0.04888916015625, -0.00765228271484375, 0.035247802734375, 0.0240631103515625, 0.015594482421875, -0.0094757080078125, 0.05914306640625, -0.0257568359375, 0.005245208740234375, 0.034820556640625, 0.00228118896484375, -0.02471923828125, -0.0099334716796875, -0.01467132568359375, 0.041015625, -0.02178955078125, 0.069091796875, 0.0102081298828125, 0.033935546875, 0.038360595703125, -0.043701171875, 0.0305023193359375, 0.006305694580078125, 0.00411224365234375, -0.0183868408203125, 0.023834228515625, -0.040802001953125, -0.019317626953125, 0.0034637451171875, -0.0224456787109375, 0.018646240234375, 0.0177764892578125, 0.048583984375, 0.0175628662109375, -0.08123779296875, 0.002437591552734375, 0.041748046875, 0.006130218505859375, -0.0290679931640625, 0.00890350341796875, -0.026092529296875, 0.022735595703125, -0.0084991455078125, 0.033721923828125, -0.019378662109375, 0.047119140625, 0.04736328125, -0.025482177734375, -0.002941131591796875, 0.0240936279296875, -0.0152130126953125, 0.02532958984375, -0.01580810546875, -0.05731201171875, 0.043731689453125, 0.007526397705078125, 0.0006871223449707031, 0.0213775634765625, -0.06341552734375, -0.0180816650390625, -0.050201416015625, 0.05267333984375, -0.0081024169921875, -0.02716064453125, 0.049835205078125, -0.030792236328125, -0.0072174072265625, 0.035552978515625, 0.057159423828125, -0.016265869140625, -0.0207366943359375, 0.031005859375, -0.0341796875, 0.0126953125, 0.0194244384765625, 0.018157958984375, -0.0072784423828125, -0.006458282470703125, -0.0601806640625, 0.00998687744140625, -0.0213470458984375, 0.0213623046875, -0.002899169921875, -0.00763702392578125, 0.02398681640625, -0.0178070068359375, -0.024383544921875, 0.0340576171875, -0.0183868408203125, 0.01412200927734375, -0.034271240234375, 0.013092041015625, -0.00563812255859375, 0.0015773773193359375, 0.0496826171875, 0.005523681640625, -0.05810546875, -0.003627777099609375, 0.055267333984375, 0.0251617431640625, 0.02294921875, 0.057464599609375, -0.005405426025390625, -0.064697265625, 0.04248046875, 0.01233673095703125, 0.036712646484375, -0.015045166015625, 0.022918701171875, 0.00019538402557373047, 0.00862884521484375, 0.0275421142578125, 0.0080718994140625, 0.07928466796875, -0.0200958251953125, -0.0050048828125, 0.03363037109375, -0.08575439453125, 0.052520751953125, -0.004161834716796875, 0.005706787109375, 0.0182647705078125, 0.014862060546875, 0.0178375244140625, 0.048675537109375, 0.006572723388671875, 0.038848876953125, 0.0390625, 0.0125579833984375, 0.109619140625, -0.00005739927291870117, 0.00539398193359375, 0.00311279296875, 0.0124359130859375, 0.0035247802734375, 0.027923583984375, 0.0179595947265625, 0.003582000732421875, 0.0152740478515625, 0.053192138671875, 0.01395416259765625, -0.0265045166015625, -0.0625, 0.004962921142578125, 0.006229400634765625, 0.0243072509765625, 0.03521728515625, 0.0303497314453125, -0.03485107421875, 0.034637451171875, -0.0615234375, 0.0214996337890625, 0.05169677734375, 0.05157470703125, -0.002773284912109375, -0.0234222412109375, -0.07257080078125, -0.02447509765625, -0.05126953125, 0.0257568359375, 0.0118255615234375, 0.04425048828125, 0.007740020751953125, 0.05413818359375, -0.00434112548828125, -0.01276397705078125, -0.00014293193817138672, 0.036346435546875, -0.0268707275390625, 0.0028228759765625, -0.0164794921875, -0.030242919921875, -0.012298583984375, 0.0352783203125, -0.0006537437438964844, -0.037353515625, 0.0163421630859375, 0.0517578125, -0.0261077880859375, -0.0237579345703125, 0.03192138671875, -0.00031113624572753906, 0.027679443359375, -0.02581787109375, 0.052398681640625, 0.032989501953125, 0.004344940185546875, -0.0103302001953125, 0.01158905029296875, 0.0643310546875, -0.0276641845703125, 0.03778076171875, -0.0004658699035644531, -0.027557373046875, 0.006061553955078125, -0.023590087890625, 0.0684814453125, -0.0182952880859375, -0.078369140625, -0.006069183349609375, -0.052520751953125, -0.006275177001953125, 0.0107421875, 0.018280029296875, -0.0404052734375, 0.058380126953125, -0.0064697265625, -0.03021240234375, 0.032501220703125, -0.01087188720703125, 0.005340576171875, -0.032318115234375, -0.010406494140625, -0.031341552734375, -0.02490234375, -0.0108184814453125, 0.004268646240234375, 0.006717681884765625, 0.0164794921875, 0.048614501953125, 0.0038394927978515625, 0.009429931640625, -0.0221710205078125, -0.008544921875, -0.0155181884765625, -0.033355712890625, 0.025238037109375, -0.01177978515625, -0.0302581787109375, -0.0037288665771484375, 0.01451873779296875, -0.0105133056640625, 0.056854248046875, -0.03192138671875, -0.04815673828125, 0.01263427734375, 0.03216552734375, 0.0214080810546875, 0.044403076171875, -0.022369384765625, -0.015533447265625, -0.047821044921875, -0.0297088623046875, 0.0214080810546875, 0.0170440673828125, 0.0251617431640625, 0.0174560546875, 0.0404052734375, 0.01227569580078125, 0.03509521484375, 0.0014486312866210938, 0.0853271484375, 0.051055908203125, -0.0740966796875, -0.0015850067138671875, 0.00211334228515625, -0.00728607177734375, -0.0191650390625, 0.02215576171875, -0.015411376953125, -0.00724029541015625, -0.0277557373046875, 0.04461669921875, 0.034942626953125, 0.01629638671875, -0.024658203125, -0.00446319580078125, 0.064697265625, -0.0265350341796875, -0.01215362548828125, -0.0207977294921875, -0.017425537109375, -0.023834228515625, -0.0003151893615722656, -0.0015659332275390625, 0.0238800048828125, -0.01812744140625, 0.0325927734375, -0.016448974609375, 0.019134521484375, 0.0088043212890625, -0.035430908203125, 0.0022258758544921875, 0.0223846435546875, 0.022491455078125, -0.00617218017578125, -0.03607177734375, -0.0003330707550048828, 0.00814056396484375, -0.0004868507385253906, -0.0008373260498046875, -0.03314208984375, 0.00278472900390625, -0.00616455078125, 0.020416259765625, 0.0245208740234375, -0.0239410400390625, 0.0034847259521484375, 0.0277252197265625, 0.021636962890625, 0.07080078125, -0.0033111572265625, -0.043701171875, -0.0254364013671875, 0.025665283203125, 0.00994873046875, -0.0115966796875, -0.00341033935546875, -0.01398468017578125, -0.0006070137023925781, -0.0147247314453125, -0.006206512451171875, 0.0101318359375, -0.0261993408203125, -0.03045654296875, 0.042999267578125, 0.0022678375244140625, -0.0276031494140625, -0.0189666748046875, -0.010406494140625, -0.01441192626953125, 0.0487060546875, 0.0034770965576171875, -0.015716552734375, -0.0261077880859375, 0.0200958251953125, 0.01444244384765625, -0.03485107421875, 0.035369873046875, -0.0243988037109375, -0.0478515625, 0.006038665771484375, 0.0162200927734375, -0.0024280548095703125, -0.0254364013671875, -0.0004916191101074219, 0.0100860595703125, 0.042633056640625, -0.0038280487060546875, -0.04412841796875, 0.021942138671875, -0.022491455078125, 0.004306793212890625, -0.03985595703125, -0.01202392578125, -0.02252197265625, 0.005008697509765625, 0.0181884765625, -0.006443023681640625, -0.00848388671875, -0.0396728515625, 0.00438690185546875, -0.0012159347534179688, -0.0076446533203125, 0.00799560546875, -0.06890869140625, -0.0087890625, -0.005603790283203125, -0.0006394386291503906, 0.01519012451171875, 0.0003948211669921875, -0.0413818359375, 0.0008487701416015625, -0.00608062744140625, 0.014801025390625, -0.09881591796875, 0.030517578125, 0.005748748779296875, -0.045257568359375, -0.0498046875, -0.001750946044921875, -0.0186767578125, -0.0303497314453125, -0.05853271484375, -0.035797119140625, 0.0328369140625, -0.020172119140625, -0.007251739501953125, 0.0005292892456054688, -0.0224609375, 0.00988006591796875, 0.036773681640625, -0.024688720703125, 0.0055694580078125, 0.0007171630859375, 0.0192718505859375, 0.025909423828125, -0.00861358642578125, 0.0243682861328125, 0.00809478759765625, -0.0027980804443359375, -0.046112060546875, -0.01029205322265625, 0.0244140625, 0.0186004638671875, -0.02435302734375, 0.050750732421875, -0.045074462890625, -0.002109527587890625, -0.00021922588348388672, -0.06689453125, -0.0308837890625, -0.01328277587890625, -0.028900146484375, -0.02532958984375, 0.01061248779296875 ]
c4389debe4baaf87f9c053e67369ad0b865beedc
Wordpress Stackexchange Q: Repeater field in Customizer I'd like to develop a setting/control for Customizer that allows dynamically to add fields. The typical example would be the possibility to add an unlimited number of slides to an slider in a Theme. There would be a button in the Customizer setting called "Add new slide" that allows to add a new slide field. For the sake of the responses, let's make it easy: Just a text field per row. So each time we click on a "Add new row" button, a new text field is generated. I've tried different approaches and my latest one was an attempt to use script templates (Mustache) like this example: http://justintadlock.com/archives/2015/06/05/javascript-templating-in-the-wordpress-customizer The problem is how to handle dynamically those settings? How to use the WP_Customize_Control to_json function and how to get that Mustache template and duplicate it every time we click on the "Add new" button? I have a very good background on PHP and a medium level on JS so I can understand advanced topics. A: You could use or take a reference from Kirki. It is a framework that allow to add customizer controls with less code. Take a look to Kirki::Repeater_Control here.
Q: Repeater field in Customizer I'd like to develop a setting/control for Customizer that allows dynamically to add fields. The typical example would be the possibility to add an unlimited number of slides to an slider in a Theme. There would be a button in the Customizer setting called "Add new slide" that allows to add a new slide field. For the sake of the responses, let's make it easy: Just a text field per row. So each time we click on a "Add new row" button, a new text field is generated. I've tried different approaches and my latest one was an attempt to use script templates (Mustache) like this example: http://justintadlock.com/archives/2015/06/05/javascript-templating-in-the-wordpress-customizer The problem is how to handle dynamically those settings? How to use the WP_Customize_Control to_json function and how to get that Mustache template and duplicate it every time we click on the "Add new" button? I have a very good background on PHP and a medium level on JS so I can understand advanced topics. A: You could use or take a reference from Kirki. It is a framework that allow to add customizer controls with less code. Take a look to Kirki::Repeater_Control here. A: This is awesome,have a look it's the best https://github.com/cristian-ungureanu/customizer-repeater
wordpress
{ "language": "en", "length": 207, "provenance": "stackexchange_00019.jsonl.gz:458586", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/200286" }
[ 0.055572509765625, 0.01552581787109375, -0.0158538818359375, -0.07440185546875, 0.01346588134765625, -0.0069427490234375, -0.01065826416015625, -0.00809478759765625, -0.0584716796875, 0.0168304443359375, -0.0277252197265625, 0.02081298828125, -0.032958984375, -0.015899658203125, 0.020416259765625, -0.058258056640625, 0.01580810546875, -0.00801849365234375, 0.0382080078125, -0.021820068359375, 0.0248260498046875, -0.028594970703125, 0.0252227783203125, 0.06268310546875, 0.04315185546875, 0.011871337890625, 0.029815673828125, 0.0029697418212890625, 0.0285186767578125, 0.005580902099609375, 0.0273590087890625, -0.050018310546875, 0.024749755859375, 0.042205810546875, -0.059173583984375, -0.034271240234375, 0.040008544921875, -0.01739501953125, -0.0282745361328125, 0.05517578125, 0.04022216796875, -0.017669677734375, -0.025177001953125, 0.00847625732421875, -0.029998779296875, -0.049468994140625, 0.07122802734375, -0.00452423095703125, 0.006069183349609375, 0.0380859375, -0.0013875961303710938, -0.02655029296875, -0.0032176971435546875, 0.02496337890625, -0.0004520416259765625, -0.007617950439453125, 0.01129150390625, -0.017578125, 0.032958984375, 0.0271759033203125, -0.01268768310546875, 0.00702667236328125, 0.005290985107421875, -0.0439453125, -0.003917694091796875, -0.0021877288818359375, -0.053070068359375, -0.0092926025390625, -0.012542724609375, 0.00634002685546875, 0.037567138671875, -0.05389404296875, 0.01061248779296875, -0.060791015625, 0.0192108154296875, 0.032562255859375, -0.03387451171875, -0.01457977294921875, 0.01544952392578125, -0.0086517333984375, 0.01873779296875, -0.060546875, 0.051239013671875, -0.0106658935546875, 0.017486572265625, 0.00695037841796875, -0.002117156982421875, 0.00739288330078125, -0.0048828125, -0.037139892578125, -0.0085906982421875, -0.0277557373046875, -0.0253143310546875, 0.040069580078125, -0.005126953125, -0.001689910888671875, -0.02496337890625, -0.0015516281127929688, 0.003917694091796875, 0.052032470703125, 0.0056915283203125, -0.04327392578125, 0.09228515625, -0.057159423828125, 0.01532745361328125, 0.0218505859375, 0.01531982421875, 0.0112152099609375, 0.03240966796875, 0.002414703369140625, -0.0158233642578125, 0.041473388671875, 0.0462646484375, 0.0313720703125, -0.041473388671875, -0.06207275390625, -0.01551055908203125, -0.0009717941284179688, -0.02557373046875, -0.02667236328125, -0.034576416015625, -0.0282135009765625, -0.002532958984375, 0.00939178466796875, 0.0241851806640625, -0.0042877197265625, -0.01397705078125, 0.022613525390625, 0.041412353515625, -0.0177154541015625, -0.029083251953125, 0.003063201904296875, 0.0643310546875, 0.070068359375, 0.04229736328125, 0.006046295166015625, 0.044586181640625, -0.012969970703125, 0.01554107666015625, -0.004665374755859375, -0.0212860107421875, 0.00799560546875, 0.0416259765625, -0.0252227783203125, -0.01116180419921875, 0.022705078125, 0.03228759765625, 0.00628662109375, -0.030731201171875, -0.0362548828125, 0.01189422607421875, -0.0003743171691894531, 0.04345703125, 0.00862884521484375, -0.0292510986328125, -0.0196075439453125, 0.0173492431640625, -0.0304718017578125, -0.004451751708984375, -0.051361083984375, 0.035064697265625, 0.0084686279296875, -0.0034351348876953125, -0.03643798828125, -0.045654296875, -0.0297393798828125, -0.0302886962890625, 0.00007480382919311523, 0.0260467529296875, 0.0274505615234375, 0.0168609619140625, -0.007572174072265625, 0.0196075439453125, 0.032073974609375, 0.00875091552734375, 0.0185699462890625, -0.036956787109375, 0.032135009765625, 0.026641845703125, -0.013885498046875, -0.0049285888671875, -0.039306640625, 0.0596923828125, -0.004962921142578125, -0.052398681640625, 0.0252227783203125, -0.00826263427734375, 0.048095703125, 0.044921875, 0.0024547576904296875, 0.021697998046875, -0.01216888427734375, -0.01494598388671875, -0.00963592529296875, -0.007297515869140625, 0.006275177001953125, -0.0338134765625, 0.006671905517578125, -0.0241851806640625, 0.01251983642578125, -0.036163330078125, 0.01082611083984375, 0.00589752197265625, -0.014190673828125, 0.00875091552734375, 0.005710601806640625, -0.00415802001953125, 0.0367431640625, -0.0160064697265625, 0.01200103759765625, 0.01544952392578125, -0.01526641845703125, -0.0246429443359375, 0.0124969482421875, -0.006694793701171875, -0.01837158203125, -0.01184844970703125, 0.0235748291015625, 0.021881103515625, 0.01218414306640625, 0.051788330078125, -0.041015625, 0.040679931640625, 0.00817108154296875, 0.036834716796875, -0.01355743408203125, -0.01287078857421875, -0.0284881591796875, 0.021240234375, 0.0081634521484375, -0.039520263671875, 0.047027587890625, 0.00189208984375, -0.02587890625, -0.0310211181640625, 0.00276947021484375, 0.0019588470458984375, -0.08355712890625, 0.00728607177734375, 0.061767578125, 0.02935791015625, 0.03839111328125, 0.007556915283203125, 0.0018892288208007812, 0.04913330078125, 0.032501220703125, 0.043548583984375, -0.0462646484375, -0.0312042236328125, -0.004428863525390625, 0.016693115234375, 0.0038166046142578125, 0.01214599609375, -0.030029296875, 0.0098114013671875, 0.01383209228515625, -0.02667236328125, 0.0209503173828125, -0.045562744140625, 0.02197265625, -0.0177459716796875, 0.004276275634765625, 0.0193023681640625, -0.025146484375, 0.07855224609375, 0.01396942138671875, 0.0438232421875, 0.027618408203125, -0.03302001953125, 0.039459228515625, 0.005138397216796875, -0.0557861328125, 0.0247650146484375, -0.00445556640625, -0.0721435546875, 0.012664794921875, -0.006679534912109375, 0.006072998046875, 0.004894256591796875, -0.0194091796875, -0.007633209228515625, 0.0211639404296875, -0.03875732421875, -0.0198211669921875, 0.0213165283203125, -0.09442138671875, -0.03125, -0.021331787109375, -0.0015649795532226562, 0.005970001220703125, 0.010284423828125, 0.0406494140625, -0.01381683349609375, 0.041961669921875, -0.018829345703125, -0.008819580078125, 0.03692626953125, -0.00605010986328125, 0.0292205810546875, -0.0214691162109375, 0.03094482421875, 0.0521240234375, -0.04461669921875, 0.025177001953125, -0.0120391845703125, 0.03753662109375, 0.007144927978515625, -0.0238494873046875, -0.01177978515625, -0.022491455078125, 0.00412750244140625, 0.023773193359375, 0.036590576171875, 0.049957275390625, 0.017974853515625, -0.0145721435546875, -0.00786590576171875, 0.042327880859375, -0.04022216796875, -0.11334228515625, 0.04132080078125, -0.0950927734375, -0.0250701904296875, -0.01123809814453125, -0.06988525390625, -0.0005578994750976562, 0.03643798828125, 0.001537322998046875, 0.0143280029296875, -0.039886474609375, -0.0255279541015625, -0.052490234375, -0.059814453125, -0.038330078125, 0.007808685302734375, -0.0144195556640625, 0.0092926025390625, 0.039825439453125, -0.007068634033203125, -0.05828857421875, -0.0206451416015625, -0.0220184326171875, -0.0020885467529296875, 0.023681640625, 0.048553466796875, -0.0034332275390625, 0.00618743896484375, 0.0142059326171875, -0.01751708984375, 0.0379638671875, -0.04876708984375, -0.04498291015625, -0.035247802734375, 0.02069091796875, -0.0287017822265625, 0.0156097412109375, 0.05810546875, -0.0207061767578125, -0.029937744140625, -0.059051513671875, -0.022918701171875, 0.004535675048828125, -0.0248565673828125, 0.001888275146484375, -0.0031585693359375, -0.00417327880859375, 0.00850677490234375, 0.0170135498046875, -0.00872802734375, -0.0007281303405761719, 0.0138092041015625, -0.0189971923828125, 0.0111541748046875, -0.00968170166015625, -0.0217437744140625, -0.015960693359375, 0.0224761962890625, -0.0224761962890625, 0.002628326416015625, -0.002788543701171875, 0.004241943359375, -0.0021915435791015625, -0.004146575927734375, -0.03326416015625, -0.045867919921875, 0.0205535888671875, -0.0032444000244140625, 0.0218658447265625, 0.0014095306396484375, -0.00782012939453125, 0.0270843505859375, 0.067138671875, -0.071044921875, 0.01397705078125, -0.017791748046875, -0.01515960693359375, -0.013671875, 0.002277374267578125, -0.093017578125, 0.0062103271484375, -0.0292816162109375, 0.01457977294921875, 0.01013946533203125, -0.016448974609375, -0.036376953125, 0.03399658203125, -0.0391845703125, -0.0100860595703125, 0.0136871337890625, -0.034393310546875, 0.002849578857421875, 0.016571044921875, -0.006572723388671875, -0.00733184814453125, 0.0191802978515625, -0.05328369140625, -0.0621337890625, -0.01360321044921875, -0.00051116943359375, 0.051055908203125, 0.01300811767578125, -0.0264739990234375, 0.002567291259765625, 0.0465087890625, -0.029144287109375, 0.0157470703125, 0.0112457275390625, 0.033172607421875, 0.016387939453125, 0.003543853759765625, 0.006847381591796875, -0.0228118896484375, 0.007343292236328125, -0.0003809928894042969, -0.016082763671875, 0.0168609619140625, -0.04150390625, -0.003139495849609375, -0.002902984619140625, -0.0335693359375, -0.053558349609375, 0.00115203857421875, -0.006061553955078125, -0.0179901123046875, -0.0166778564453125, -0.02239990234375, 0.01543426513671875, -0.030303955078125, 0.0118560791015625, -0.0167388916015625, -0.00843048095703125, 0.00873565673828125, 0.0894775390625, 0.0155181884765625, -0.0016078948974609375, -0.049072265625, 0.041168212890625, 0.038116455078125, 0.005462646484375, 0.0021514892578125, 0.010009765625, -0.03515625, 0.03192138671875, 0.01313018798828125, 0.004276275634765625, -0.031707763671875, 0.07110595703125, -0.017547607421875, -0.01654052734375, 0.0230255126953125, -0.026336669921875, -0.0006899833679199219, 0.0296173095703125, -0.00800323486328125, -0.0039215087890625, -0.008087158203125, 0.0455322265625, 0.0020847320556640625, -0.0264892578125, -0.0411376953125, -0.038360595703125, 0.0123291015625, -0.0256805419921875, -0.0054779052734375, -0.01467132568359375, 0.012725830078125, -0.020294189453125, -0.0160064697265625, 0.012176513671875, 0.0229034423828125, -0.01319122314453125, 0.03125, 0.034454345703125, 0.032501220703125, 0.036895751953125, 0.005741119384765625, -0.00896453857421875, 0.0158233642578125, -0.0189666748046875, -0.05377197265625, -0.00571441650390625, -0.00673675537109375, 0.024078369140625, 0.00634765625, 0.01256561279296875, 0.01216888427734375, 0.042205810546875, 0.037567138671875, 0.025177001953125, 0.053466796875, 0.0198211669921875, 0.004207611083984375, 0.04608154296875, 0.0183563232421875, -0.004917144775390625, -0.0004220008850097656, 0.031829833984375, 0.037567138671875, -0.004787445068359375, -0.0148468017578125, 0.05535888671875, 0.04913330078125, 0.0023174285888671875, 0.00997161865234375, 0.01264190673828125, 0.018524169921875, -0.0469970703125, -0.004245758056640625, -0.0455322265625, 0.003997802734375, 0.02239990234375, 0.074462890625, -0.009552001953125, -0.037139892578125, 0.0034847259521484375, -0.048309326171875, -0.01201629638671875, -0.053863525390625, -0.0251007080078125, 0.0426025390625, 0.0017938613891601562, -0.015869140625, -0.005023956298828125, 0.03973388671875, 0.023590087890625, -0.01153564453125, -0.016815185546875, -0.0149688720703125, -0.006191253662109375, -0.00445556640625, -0.039154052734375, -0.03265380859375, -0.05950927734375, -0.0007777214050292969, 0.0179290771484375, -0.08172607421875, -0.09124755859375, 0.00891876220703125, -0.0017499923706054688, 0.0498046875, -0.032867431640625, 0.04559326171875, -0.0298614501953125, -0.00783538818359375, -0.067138671875, 0.00951385498046875, 0.037139892578125, 0.050445556640625, -0.001789093017578125, -0.011505126953125, -0.032470703125, -0.0245819091796875, -0.039581298828125, -0.046600341796875, -0.0259552001953125, 0.002643585205078125, 0.009765625, 0.0019741058349609375, 0.0222015380859375, -0.007442474365234375, 0.0059967041015625, 0.002300262451171875, 0.01605224609375, -0.005268096923828125, 0.00264739990234375, -0.00007545948028564453, 0.0220794677734375, 0.0389404296875, 0.0081634521484375, -0.0209197998046875, -0.0082244873046875, -0.0355224609375, 0.0136871337890625, 0.01108551025390625, -0.048065185546875, -0.0235137939453125, -0.035736083984375, 0.006290435791015625, 0.059661865234375, -0.0147552490234375, 0.04974365234375, -0.03350830078125, -0.0093536376953125, -0.01418304443359375, 0.0166168212890625, -0.03460693359375, -0.0006794929504394531, 0.06488037109375, -0.01074981689453125, 0.0298309326171875, -0.0014133453369140625, 0.0241546630859375, -0.0098876953125, -0.0173187255859375, 0.00844573974609375, -0.01065826416015625, -0.025421142578125, 0.05499267578125, 0.048553466796875, 0.002429962158203125, 0.0416259765625, 0.0102386474609375, 0.02081298828125, -0.009246826171875, 0.00785064697265625, -0.0025177001953125, -0.00909423828125, 0.0265350341796875, -0.00856781005859375, -0.01220703125, -0.006931304931640625, -0.01995849609375, 0.0019063949584960938, -0.00609588623046875, 0.0209197998046875, -0.0238800048828125, 0.015472412109375, -0.0101165771484375, 0.01183319091796875, 0.06488037109375, 0.0022716522216796875, 0.0343017578125, 0.0621337890625, 0.01447296142578125, 0.005462646484375, -0.007076263427734375, 0.026123046875, -0.00469970703125, 0.00026297569274902344, 0.0033550262451171875, 0.01267242431640625, -0.0094146728515625, 0.036285400390625, -0.0494384765625, -0.0254058837890625, -0.0018072128295898438, -0.01090240478515625, 0.0010509490966796875, -0.0030460357666015625, -0.034881591796875, -0.041534423828125, -0.011383056640625, -0.025054931640625, 0.0036334991455078125, -0.0105133056640625, 0.016265869140625, 0.019500732421875, 0.04669189453125, -0.01058197021484375, 0.0035419464111328125, 0.00946044921875, 0.0028324127197265625, 0.0137176513671875, -0.05218505859375, -0.0115203857421875, 0.0517578125, -0.04388427734375, 0.0241851806640625, 0.0345458984375, -0.0189208984375, -0.0160675048828125, 0.0390625, 0.08233642578125, -0.036346435546875, -0.0304107666015625, 0.02740478515625, 0.0184783935546875, -0.01212310791015625, -0.0191192626953125, 0.005641937255859375, -0.0965576171875, -0.06561279296875, -0.008819580078125, -0.0684814453125, 0.034515380859375, -0.01087188720703125, -0.05450439453125, 0.1192626953125, 0.06500244140625, -0.01050567626953125, -0.0013065338134765625, 0.0721435546875, -0.057525634765625, 0.038421630859375, 0.004215240478515625, 0.02734375, -0.0270843505859375, -0.018096923828125, -0.012603759765625, 0.006740570068359375, -0.01270294189453125, 0.048248291015625, 0.05767822265625, 0.008941650390625, 0.033447265625, -0.0015125274658203125, 0.0252685546875, 0.0090789794921875, -0.057037353515625, 0.009124755859375, -0.0005755424499511719, -0.005413055419921875, 0.0181884765625, -0.002857208251953125, 0.01427459716796875, 0.0235443115234375, -0.0286865234375, 0.0165863037109375, -0.0174713134765625, -0.034515380859375, -0.0028362274169921875, 0.03155517578125, -0.01241302490234375, -0.010009765625, -0.005115509033203125, -0.0179443359375, 0.003452301025390625, 0.02630615234375, 0.02923583984375, -0.0230865478515625, -0.01338958740234375, -0.0202789306640625, 0.03619384765625, 0.0182037353515625, 0.00667572021484375, 0.01178741455078125, 0.0100860595703125, -0.0243682861328125, 0.0226287841796875, 0.00890350341796875, 0.0350341796875, -0.01554107666015625, 0.0099639892578125, -0.0216064453125, 0.01214599609375, -0.0477294921875, -0.0228271484375, 0.019561767578125, 0.0229339599609375, -0.0224456787109375, -0.059326171875, 0.007724761962890625, 0.01812744140625, 0.034698486328125, 0.00214385986328125, 0.029266357421875, -0.005352020263671875, 0.054931640625, -0.01503753662109375, 0.0238800048828125, 0.030242919921875, 0.035369873046875, 0.01200103759765625, 0.035552978515625, -0.09698486328125, 0.005184173583984375, -0.01088714599609375, -0.05145263671875, -0.0033969879150390625, 0.07464599609375, 0.056976318359375, 0.0237884521484375, -0.042999267578125, -0.033935546875, -0.01299285888671875, 0.00994873046875, 0.04119873046875, 0.005496978759765625, 0.0074005126953125, 0.02740478515625, -0.00652313232421875, 0.02008056640625, 0.006946563720703125, 0.009857177734375, -0.01383209228515625, 0.056854248046875, 0.0853271484375, -0.002208709716796875, 0.030517578125, 0.0155181884765625, 0.0131988525390625, -0.037872314453125, 0.0014619827270507812, 0.0033588409423828125, -0.01506805419921875, 0.01404571533203125, -0.0183258056640625, 0.035797119140625, -0.005268096923828125, 0.047027587890625, -0.01047515869140625, -0.019378662109375, 0.021331787109375, -0.0148162841796875, 0.0931396484375, 0.028350830078125, -0.06280517578125, -0.003353118896484375, -0.010345458984375, -0.07073974609375, 0.0301971435546875, 0.0421142578125, -0.0545654296875, 0.037689208984375, 0.01070404052734375, -0.0274200439453125, -0.0037288665771484375, 0.022003173828125, 0.0192108154296875, -0.01055908203125, -0.0038089752197265625, -0.00461578369140625, -0.038665771484375, -0.00978851318359375, 0.004489898681640625, 0.00609588623046875, 0.01432037353515625, 0.0208740234375, 0.023712158203125, 0.0102996826171875, 0.033050537109375, -0.0165557861328125, 0.05950927734375, 0.0343017578125, 0.044158935546875, 0.041748046875, -0.019927978515625, -0.06707763671875, -0.007171630859375, -0.0099334716796875, 0.041107177734375, -0.03155517578125, -0.0033168792724609375, -0.01125335693359375, 0.022125244140625, -0.03033447265625, -0.00024580955505371094, -0.021942138671875, -0.062408447265625, -0.01861572265625, 0.0223388671875, 0.0078582763671875, 0.07330322265625, 0.0228424072265625, 0.0024623870849609375, 0.0263671875, 0.0272216796875, 0.00554656982421875, 0.022003173828125, 0.032623291015625, 0.04541015625, -0.0399169921875, -0.046112060546875, -0.008087158203125, -0.007354736328125, -0.0017690658569335938, 0.0127410888671875, 0.019775390625, 0.0172576904296875, -0.03863525390625, 0.032470703125, 0.052978515625, 0.06402587890625, -0.0087127685546875, 0.00634002685546875, 0.0347900390625, -0.0195465087890625, 0.005817413330078125, 0.0174560546875, -0.0222320556640625, -0.044891357421875, -0.004505157470703125, 0.01383209228515625, -0.022308349609375, -0.0030345916748046875, -0.03546142578125, 0.01216888427734375, 0.0280303955078125, 0.01568603515625, -0.07183837890625, 0.052520751953125, -0.025848388671875, 0.0194549560546875, -0.0121307373046875, -0.0149688720703125, 0.0261993408203125, 0.06695556640625, -0.007080078125, 0.01526641845703125, -0.0221710205078125, -0.022308349609375, -0.0032196044921875, 0.015777587890625, 0.0322265625, -0.0035915374755859375, 0.0016813278198242188, 0.00677490234375, 0.0019626617431640625, 0.058837890625, -0.025482177734375, 0.0043182373046875, 0.05596923828125, -0.0008072853088378906, -0.034881591796875, -0.0986328125, -0.02020263671875, -0.0340576171875, 0.0247344970703125, 0.00553131103515625, -0.00598907470703125, 0.004047393798828125, -0.0386962890625, -0.0875244140625, 0.037445068359375, -0.00304412841796875, -0.0280303955078125, -0.058990478515625, 0.0157470703125, 0.00388336181640625, 0.01001739501953125, -0.0274810791015625, -0.0110321044921875, -0.02459716796875, 0.022186279296875, 0.0095977783203125, 0.0062713623046875, 0.07366943359375, 0.00044274330139160156, -0.024505615234375, -0.02984619140625, -0.0335693359375, 0.0012960433959960938, 0.0095367431640625, -0.013427734375, 0.00646209716796875, 0.008941650390625, -0.06561279296875, -0.055633544921875, -0.0276031494140625, 0.0404052734375, -0.0021915435791015625, -0.0177154541015625, -0.0264892578125, -0.0133819580078125, 0.0753173828125, 0.043701171875, 0.0208892822265625, -0.03515625, 0.0026092529296875, -0.012420654296875, -0.01451873779296875, -0.01177978515625, 0.0108795166015625, -0.043670654296875, -0.0048370361328125, -0.0161285400390625, 0.00004494190216064453, -0.026885986328125, 0.0235595703125, -0.034393310546875, -0.01450347900390625, 0.03741455078125, 0.00719451904296875, -0.063720703125, -0.0010175704956054688, 0.08111572265625, -0.0611572265625, -0.04705810546875, 0.0181732177734375, 0.0012502670288085938, 0.00792694091796875, -0.0162200927734375, -0.04180908203125, -0.0095672607421875, -0.039947509765625, 0.032684326171875, -0.029205322265625, 0.038360595703125, -0.055419921875, 0.0127716064453125, -0.0146331787109375, 0.0263824462890625, 0.01507568359375, 0.02288818359375, -0.029510498046875, 0.0643310546875, 0.0138397216796875, 0.0545654296875, -0.00899505615234375, -0.0088958740234375, -0.0291290283203125, 0.03143310546875, 0.0135040283203125, -0.0046234130859375, 0.031982421875, -0.0005931854248046875, -0.005706787109375, 0.0147552490234375, -0.07745361328125, -0.043853759765625, 0.00013303756713867188, 0.0002923011779785156, -0.010345458984375, 0.0147247314453125 ]
10aec29f84b7c496eda7ef342995ea621066aefc
Wordpress Stackexchange Q: How to remove Customize from admin menu bar after WP 4.3 WordPress 4.3 brought more updates to the customizer. It also added a new option at the top admin menu bar that says 'Cusomize' and has a paintbrush. How can I disable this menu from showing up? We don't use the customizer, and I would not like our users clicking on it either. We currently do $wp_admin_bar->remove_menu('comments'); but I do not know the term for the customizer. I tried both customize and customizer (guessing) but neither seemed to work. A: Or this more compact one will do the same : add_action( 'admin_bar_menu', 'remove_some_nodes_from_admin_top_bar_menu', 999 ); function remove_some_nodes_from_admin_top_bar_menu( $wp_admin_bar ) { $wp_admin_bar->remove_menu( 'customize' ); } Regards
Q: How to remove Customize from admin menu bar after WP 4.3 WordPress 4.3 brought more updates to the customizer. It also added a new option at the top admin menu bar that says 'Cusomize' and has a paintbrush. How can I disable this menu from showing up? We don't use the customizer, and I would not like our users clicking on it either. We currently do $wp_admin_bar->remove_menu('comments'); but I do not know the term for the customizer. I tried both customize and customizer (guessing) but neither seemed to work. A: Or this more compact one will do the same : add_action( 'admin_bar_menu', 'remove_some_nodes_from_admin_top_bar_menu', 999 ); function remove_some_nodes_from_admin_top_bar_menu( $wp_admin_bar ) { $wp_admin_bar->remove_menu( 'customize' ); } Regards A: customize should work. I was able to remove the Customize link with the following code: add_action( 'wp_before_admin_bar_render', 'wpse200296_before_admin_bar_render' ); function wpse200296_before_admin_bar_render() { global $wp_admin_bar; $wp_admin_bar->remove_menu('customize'); } A: Neither of the solutions posted here worked for me. Instead I used the following: /** * Remove elements from sidebar. */ function remove_customize_from_admin_sidebar() { remove_submenu_page( 'themes.php', 'customize.php?return=%2Fwp-admin%2Fthemes.php' ); } add_action( 'admin_menu', 'remove_customize_from_admin_sidebar' ); This uses the remove_submenu_page() function to specify the parent link (themes.php) and then the child link - in this case the Customize URL. If you want to remove parent menu items, you can use remove_menu_page(), for example: remove_menu_page( 'edit-comments.php' );
wordpress
{ "language": "en", "length": 217, "provenance": "stackexchange_00019.jsonl.gz:458590", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/200296" }
[ 0.04925537109375, -0.01532745361328125, 0.0235137939453125, 0.0018987655639648438, 0.00617218017578125, -0.0390625, 0.052215576171875, -0.05450439453125, -0.041168212890625, 0.0250244140625, 0.061279296875, -0.0181884765625, -0.04315185546875, -0.048675537109375, -0.015960693359375, -0.03125, 0.0215911865234375, 0.0175628662109375, 0.037506103515625, -0.00926971435546875, -0.0006313323974609375, -0.002292633056640625, 0.0209808349609375, 0.044403076171875, 0.004909515380859375, -0.0193634033203125, 0.05133056640625, 0.0016336441040039062, -0.00975799560546875, -0.0110015869140625, 0.01364898681640625, -0.004024505615234375, -0.01560211181640625, 0.049468994140625, 0.0139007568359375, 0.0168609619140625, -0.0312347412109375, 0.05224609375, 0.0426025390625, -0.0307159423828125, 0.01763916015625, -0.01012420654296875, 0.0006928443908691406, 0.044342041015625, -0.02130126953125, -0.0142822265625, 0.0004341602325439453, -0.03363037109375, 0.020111083984375, -0.02764892578125, 0.00594329833984375, 0.005615234375, 0.03277587890625, -0.063720703125, -0.0251617431640625, -0.0224456787109375, -0.0224151611328125, -0.005977630615234375, 0.0247650146484375, 0.08526611328125, 0.00447845458984375, 0.0005102157592773438, -0.01300811767578125, -0.0916748046875, -0.00962066650390625, 0.0242919921875, -0.0056610107421875, 0.0015840530395507812, -0.062103271484375, -0.01210784912109375, 0.0268707275390625, -0.052734375, 0.01099395751953125, 0.01318359375, -0.025848388671875, -0.037872314453125, 0.0016241073608398438, -0.00757598876953125, 0.041656494140625, -0.01242828369140625, 0.0291900634765625, 0.0243988037109375, -0.012786865234375, 0.004802703857421875, 0.0003833770751953125, 0.021759033203125, -0.01325225830078125, -0.030609130859375, -0.01117706298828125, 0.0155181884765625, -0.01068878173828125, -0.021514892578125, 0.003284454345703125, 0.06671142578125, -0.00426483154296875, 0.02325439453125, 0.035064697265625, 0.01319122314453125, 0.003032684326171875, -0.01483154296875, 0.00780487060546875, -0.043701171875, -0.0177154541015625, -0.01058197021484375, 0.00011086463928222656, 0.004169464111328125, -0.0184783935546875, -0.00836181640625, 0.05755615234375, 0.03521728515625, 0.0020732879638671875, 0.007007598876953125, -0.0005035400390625, -0.01727294921875, -0.006809234619140625, 0.0213623046875, -0.0189666748046875, 0.0102386474609375, 0.0020294189453125, 0.004535675048828125, -0.027801513671875, -0.0081634521484375, -0.00850677490234375, -0.0041351318359375, 0.0296478271484375, 0.01328277587890625, -0.0272064208984375, 0.020538330078125, -0.032440185546875, -0.00984954833984375, -0.037261962890625, 0.0191650390625, 0.08465576171875, 0.08062744140625, 0.03411865234375, -0.0103607177734375, 0.01568603515625, -0.022369384765625, 0.024017333984375, 0.0170745849609375, 0.021087646484375, -0.028076171875, -0.006927490234375, 0.0179595947265625, 0.003841400146484375, 0.0287322998046875, 0.0104217529296875, -0.00909423828125, 0.0274810791015625, -0.04083251953125, -0.00844573974609375, -0.01155853271484375, 0.047027587890625, 0.046722412109375, -0.033477783203125, 0.035247802734375, 0.074462890625, -0.0258941650390625, -0.0670166015625, -0.065185546875, -0.007091522216796875, -0.005893707275390625, -0.01551055908203125, -0.0287933349609375, -0.025299072265625, 0.01204681396484375, 0.001804351806640625, 0.0099334716796875, 0.01568603515625, -0.0227508544921875, 0.0208587646484375, -0.023040771484375, 0.0144805908203125, 0.0016736984252929688, 0.00199127197265625, 0.03155517578125, 0.0020294189453125, 0.0111083984375, 0.0037708282470703125, 0.06671142578125, 0.0014467239379882812, -0.040130615234375, 0.032440185546875, -0.0233306884765625, -0.04974365234375, -0.0030975341796875, 0.01497650146484375, 0.0384521484375, 0.019317626953125, 0.0169525146484375, 0.060394287109375, -0.01009368896484375, 0.00923919677734375, -0.018035888671875, -0.009765625, -0.00027632713317871094, -0.0118255615234375, 0.0232086181640625, -0.02056884765625, -0.005619049072265625, -0.0158538818359375, 0.0178985595703125, 0.00812530517578125, 0.003910064697265625, -0.054656982421875, 0.039764404296875, -0.035736083984375, 0.06109619140625, 0.01374053955078125, 0.005039215087890625, -0.0007119178771972656, -0.0173797607421875, -0.02349853515625, 0.025360107421875, -0.0214691162109375, -0.0006666183471679688, -0.0081634521484375, 0.053497314453125, -0.00833892822265625, 0.04443359375, 0.0088958740234375, -0.0350341796875, 0.014923095703125, -0.004177093505859375, 0.046112060546875, -0.015716552734375, -0.0278472900390625, -0.0232391357421875, 0.05072021484375, -0.0269317626953125, 0.003681182861328125, 0.05438232421875, 0.0291748046875, 0.034576416015625, -0.003910064697265625, -0.007617950439453125, 0.0232391357421875, -0.08563232421875, 0.0023651123046875, 0.050018310546875, 0.046051025390625, 0.0088348388671875, -0.0241851806640625, -0.02777099609375, 0.0208740234375, -0.01386260986328125, 0.0228118896484375, -0.040924072265625, -0.0162506103515625, -0.0103912353515625, 0.0289154052734375, -0.0272369384765625, 0.032501220703125, 0.03143310546875, 0.0011463165283203125, 0.005901336669921875, -0.012115478515625, -0.020172119140625, 0.01202392578125, 0.0219268798828125, 0.00788116455078125, 0.03741455078125, -0.0024890899658203125, 0.0041351318359375, 0.027587890625, -0.00662994384765625, 0.01132965087890625, 0.01678466796875, -0.0404052734375, 0.0022563934326171875, 0.048309326171875, 0.06341552734375, -0.01395416259765625, -0.0102081298828125, 0.038726806640625, -0.034515380859375, -0.05438232421875, 0.019287109375, 0.0024890899658203125, -0.0198974609375, -0.0109405517578125, 0.022491455078125, 0.024200439453125, -0.00972747802734375, -0.00563812255859375, -0.062469482421875, 0.01361846923828125, -0.0002715587615966797, -0.038299560546875, -0.043212890625, -0.0021610260009765625, 0.022308349609375, -0.00920867919921875, 0.0000928044319152832, 0.0090789794921875, -0.003650665283203125, 0.00212860107421875, 0.0280914306640625, -0.004611968994140625, 0.0116729736328125, 0.05859375, 0.051727294921875, -0.0059814453125, 0.010986328125, 0.01019287109375, -0.0196685791015625, 0.01776123046875, 0.01312255859375, 0.0104522705078125, -0.007183074951171875, -0.0240631103515625, 0.0189971923828125, 0.0214996337890625, -0.0065155029296875, 0.031951904296875, -0.018218994140625, 0.0005297660827636719, 0.02679443359375, -0.01494598388671875, -0.0025787353515625, 0.0120391845703125, -0.00908660888671875, -0.0248565673828125, 0.019439697265625, -0.00713348388671875, 0.0013856887817382812, 0.02752685546875, -0.0045013427734375, 0.00954437255859375, -0.016510009765625, -0.005828857421875, -0.01091766357421875, -0.017303466796875, -0.0184173583984375, -0.00887298583984375, -0.025665283203125, 0.0090179443359375, 0.054595947265625, 0.00701141357421875, -0.042633056640625, 0.022003173828125, -0.0241241455078125, 0.0014162063598632812, 0.056427001953125, 0.06317138671875, 0.005809783935546875, 0.012420654296875, 0.0167083740234375, -0.0055694580078125, 0.0450439453125, -0.05157470703125, -0.0509033203125, -0.0214080810546875, -0.0013217926025390625, 0.00844573974609375, -0.00860595703125, 0.0301971435546875, -0.0015897750854492188, -0.007335662841796875, -0.037109375, -0.0266265869140625, -0.007228851318359375, -0.0430908203125, 0.03228759765625, 0.0099334716796875, -0.00026917457580566406, -0.002124786376953125, 0.03082275390625, 0.034210205078125, -0.00827789306640625, 0.04998779296875, -0.006679534912109375, -0.0087432861328125, 0.0033206939697265625, 0.025543212890625, -0.043548583984375, 0.05023193359375, -0.02557373046875, 0.04058837890625, 0.035858154296875, -0.018585205078125, 0.010955810546875, -0.058837890625, -0.0094757080078125, -0.00952911376953125, 0.062225341796875, -0.0006365776062011719, 0.0164642333984375, -0.0186309814453125, -0.0308685302734375, 0.0126495361328125, 0.08062744140625, -0.0012989044189453125, -0.00527191162109375, -0.048797607421875, -0.02899169921875, -0.00042724609375, 0.00968170166015625, -0.06036376953125, 0.01235198974609375, -0.1505126953125, 0.0021514892578125, -0.0172576904296875, -0.049072265625, -0.028106689453125, 0.053009033203125, -0.08831787109375, -0.057281494140625, 0.018585205078125, -0.0202484130859375, -0.005260467529296875, 0.0142364501953125, -0.031982421875, -0.03131103515625, -0.0111083984375, -0.0311126708984375, -0.08587646484375, -0.0023021697998046875, -0.036407470703125, 0.04345703125, 0.0008015632629394531, 0.024627685546875, -0.035369873046875, 0.03057861328125, 0.02215576171875, -0.039642333984375, 0.022735595703125, -0.006256103515625, -0.005352020263671875, 0.0039825439453125, -0.007472991943359375, -0.0192718505859375, -0.018890380859375, 0.01303863525390625, -0.021026611328125, -0.0032176971435546875, -0.01068115234375, -0.038299560546875, 0.05029296875, -0.03387451171875, -0.038818359375, -0.04132080078125, -0.045623779296875, -0.0118255615234375, -0.020416259765625, 0.004322052001953125, -0.0207977294921875, -0.05108642578125, -0.00324249267578125, -0.0310211181640625, -0.00811767578125, 0.0093536376953125, 0.0211944580078125, 0.0237579345703125, -0.00560760498046875, 0.0281829833984375, -0.0167694091796875, 0.0200347900390625, -0.016265869140625, 0.048736572265625, 0.0162811279296875, -0.02239990234375, 0.06683349609375, -0.006755828857421875, 0.041168212890625, -0.03546142578125, 0.0296478271484375, -0.0053558349609375, -0.01088714599609375, 0.0494384765625, -0.000007331371307373047, -0.025970458984375, 0.032684326171875, 0.0234222412109375, -0.02313232421875, -0.0313720703125, 0.0227508544921875, 0.050750732421875, -0.0753173828125, -0.042083740234375, -0.02301025390625, 0.0233001708984375, -0.03265380859375, 0.021270751953125, -0.02032470703125, 0.01120758056640625, -0.0099639892578125, 0.0020389556884765625, 0.0049896240234375, 0.011138916015625, -0.0054168701171875, -0.039642333984375, 0.027191162109375, -0.014495849609375, -0.029876708984375, 0.04339599609375, 0.0021495819091796875, 0.054840087890625, -0.00119781494140625, -0.033050537109375, -0.051544189453125, 0.0151214599609375, 0.0555419921875, -0.021484375, 0.0092620849609375, 0.043243408203125, 0.0009002685546875, 0.0022983551025390625, -0.0240478515625, -0.024688720703125, -0.01519775390625, -0.036468505859375, 0.09222412109375, 0.029693603515625, 0.00616455078125, -0.006938934326171875, 0.03326416015625, 0.035919189453125, -0.006847381591796875, -0.007198333740234375, -0.018402099609375, -0.0124664306640625, 0.0352783203125, 0.01500701904296875, -0.0207366943359375, 0.0205535888671875, -0.0210418701171875, 0.0312347412109375, -0.03167724609375, -0.0205535888671875, 0.01010894775390625, 0.00896453857421875, 0.0194244384765625, -0.0044403076171875, 0.01328277587890625, 0.01580810546875, -0.046539306640625, 0.05242919921875, 0.0027408599853515625, -0.060333251953125, -0.0157623291015625, 0.0264434814453125, 0.01009368896484375, -0.020965576171875, -0.0176544189453125, 0.01276397705078125, -0.04364013671875, -0.035400390625, 0.020172119140625, -0.063232421875, 0.0021457672119140625, 0.0143585205078125, -0.025360107421875, 3.5762786865234375e-7, 0.0186920166015625, -0.08758544921875, -0.0631103515625, -0.0034389495849609375, -0.00675201416015625, 0.04840087890625, 0.001434326171875, 0.0205078125, -0.03436279296875, 0.0031757354736328125, -0.0101318359375, 0.000045359134674072266, 0.0308074951171875, -0.006359100341796875, -0.0161590576171875, -0.009918212890625, -0.04522705078125, -0.029022216796875, -0.06298828125, -0.04290771484375, -0.05096435546875, 0.0169830322265625, 0.0010442733764648438, 0.00746917724609375, 0.02996826171875, 0.0440673828125, -0.0302886962890625, 0.046295166015625, -0.0005731582641601562, 0.0726318359375, -0.0408935546875, 0.0469970703125, 0.008209228515625, -0.004947662353515625, -0.02099609375, 0.0244140625, 0.026641845703125, 0.00173187255859375, 0.029510498046875, 0.024444580078125, -0.047454833984375, -0.058258056640625, -0.0106658935546875, 0.0066986083984375, 0.083984375, -0.0298614501953125, 0.039031982421875, -0.0263214111328125, 0.016387939453125, -0.019287109375, 0.0000355839729309082, -0.06463623046875, 0.01186370849609375, -0.0027141571044921875, -0.0017824172973632812, 0.06732177734375, -0.003223419189453125, -0.0222320556640625, 0.005870819091796875, -0.005283355712890625, 0.05084228515625, -0.005428314208984375, -0.04522705078125, 0.057861328125, 0.0274810791015625, -0.003795623779296875, 0.0303497314453125, -0.00885009765625, 0.00725555419921875, -0.00907135009765625, -0.035858154296875, -0.0007338523864746094, 0.060302734375, 0.00734710693359375, -0.01148223876953125, 0.04351806640625, 0.0167388916015625, 0.01380157470703125, 0.01540374755859375, 0.08050537109375, 0.0792236328125, -0.1051025390625, 0.0109405517578125, 0.0261383056640625, 0.0206146240234375, 0.06524658203125, -0.00836181640625, -0.0278167724609375, -0.0867919921875, 0.041656494140625, -0.0152740478515625, -0.01056671142578125, 0.0022792816162109375, -0.010467529296875, -0.014801025390625, 0.01470184326171875, 0.01055908203125, 0.01107025146484375, 0.0251617431640625, -0.020050048828125, -0.013580322265625, -0.0029850006103515625, 0.00272369384765625, -0.01122283935546875, 0.0177001953125, -0.0338134765625, -0.040496826171875, 0.034820556640625, -0.04266357421875, -0.0088653564453125, 0.032623291015625, -0.00850677490234375, 0.00055694580078125, 0.061798095703125, -0.03643798828125, 0.036041259765625, 0.003143310546875, 0.002246856689453125, -0.000476837158203125, -0.0284271240234375, 0.025238037109375, 0.033905029296875, -0.057342529296875, 0.0268402099609375, 0.004787445068359375, -0.01467132568359375, 0.0026378631591796875, 0.03863525390625, 0.123046875, -0.07086181640625, -0.021484375, 0.0208740234375, -0.01467132568359375, -0.006282806396484375, -0.03192138671875, 0.060577392578125, -0.06036376953125, 0.0031795501708984375, 0.01065826416015625, 0.02288818359375, -0.006999969482421875, -0.004070281982421875, -0.04949951171875, 0.08734130859375, -0.017059326171875, 0.053009033203125, 0.026702880859375, 0.031524658203125, -0.0079498291015625, 0.01128387451171875, 0.020294189453125, 0.058624267578125, 0.005523681640625, 0.0028438568115234375, 0.005550384521484375, 0.006107330322265625, 0.021148681640625, 0.03460693359375, 0.01381683349609375, 0.000030100345611572266, -0.0035495758056640625, -0.01158905029296875, 0.020355224609375, 0.039886474609375, 0.01068878173828125, 0.0189971923828125, -0.0146331787109375, -0.041961669921875, 0.003917694091796875, 0.00017964839935302734, 0.00843048095703125, 0.0302276611328125, -0.0207366943359375, 0.0245513916015625, 0.0126190185546875, 0.027191162109375, 0.024505615234375, 0.0423583984375, 0.0062103271484375, -0.00804901123046875, 0.009307861328125, -0.043487548828125, -0.038909912109375, 0.001277923583984375, -0.045562744140625, -0.03271484375, 0.01910400390625, -0.034759521484375, 0.017364501953125, 0.0029506683349609375, 0.0088653564453125, -0.0330810546875, 0.015625, -0.0592041015625, -0.04327392578125, -0.00763702392578125, 0.049285888671875, -0.0953369140625, 0.0246429443359375, -0.0022716522216796875, 0.0299835205078125, -0.030364990234375, -0.0333251953125, 0.004261016845703125, 0.0234527587890625, -0.003170013427734375, -0.056304931640625, 0.0309906005859375, 0.00263214111328125, -0.014892578125, 0.00879669189453125, -0.007732391357421875, -0.0362548828125, 0.022430419921875, 0.00283050537109375, 0.0034351348876953125, 0.016387939453125, 0.00960540771484375, -0.000621795654296875, 0.0333251953125, -0.0228729248046875, 0.016754150390625, -0.02227783203125, -0.003261566162109375, 0.0182342529296875, 0.01708984375, 0.0130615234375, 0.02655029296875, 0.01119232177734375, -0.006305694580078125, -0.0172271728515625, 0.036834716796875, -0.016815185546875, 0.02001953125, -0.044281005859375, -0.033111572265625, -0.0180511474609375, 0.029022216796875, 0.006649017333984375, -0.0533447265625, 0.006160736083984375, 0.017425537109375, 0.0006074905395507812, -0.0199432373046875, 0.034271240234375, 0.005886077880859375, -0.042236328125, -0.037872314453125, -0.007221221923828125, 0.017852783203125, 0.0199432373046875, 0.030181884765625, 0.0301971435546875, 0.01428985595703125, 0.0252838134765625, -0.03619384765625, 0.019989013671875, -0.03643798828125, 0.00449371337890625, 0.0042724609375, -0.0018587112426757812, 0.05096435546875, -0.06610107421875, -0.030426025390625, 0.00884246826171875, -0.01812744140625, 0.01983642578125, 0.0281829833984375, -0.04248046875, 0.04864501953125, -0.009124755859375, -0.0238189697265625, -0.01922607421875, 0.03265380859375, -0.0229339599609375, -0.01447296142578125, 0.0244598388671875, -0.0123443603515625, -0.06231689453125, -0.0295867919921875, -0.0285491943359375, 0.02911376953125, 0.0208740234375, 0.0166473388671875, 0.01259613037109375, 0.040802001953125, -0.0655517578125, 0.0031585693359375, -0.048492431640625, -0.03558349609375, -0.0276336669921875, 0.018341064453125, -0.00861358642578125, 0.0086517333984375, -0.05352783203125, 0.016693115234375, 0.045684814453125, -0.018524169921875, 0.0196380615234375, 0.032958984375, 0.006725311279296875, -0.032501220703125, 0.010589599609375, -0.018707275390625, -0.00331878662109375, 0.00927734375, -0.0021839141845703125, 0.0084686279296875, -0.0019407272338867188, 0.01312255859375, -0.0104217529296875, 0.0126800537109375, -0.0209808349609375, 0.0273284912109375, 0.0150604248046875, 0.039947509765625, 0.04266357421875, -0.023193359375, 0.007366180419921875, 0.0141754150390625, -0.0025577545166015625, 0.0121307373046875, 0.0335693359375, -0.033935546875, 0.032867431640625, -0.0118865966796875, 0.01824951171875, 0.002651214599609375, 0.034210205078125, 0.00193023681640625, -0.0038299560546875, -0.00687408447265625, 0.0034847259521484375, -0.029571533203125, -0.025054931640625, -0.02716064453125, -0.056915283203125, 0.002685546875, 0.04388427734375, -0.034820556640625, -0.0218963623046875, -0.09130859375, 0.03533935546875, 0.0718994140625, 0.013519287109375, -0.093994140625, 0.08905029296875, -0.080322265625, 0.026763916015625, 0.02032470703125, 0.0288543701171875, -0.005481719970703125, 0.030242919921875, -0.0028247833251953125, -0.00594329833984375, -0.025787353515625, 0.0391845703125, 0.0009365081787109375, -0.03289794921875, -0.0175018310546875, 0.0175018310546875, -0.032440185546875, -0.0322265625, -0.024017333984375, 0.005847930908203125, -0.01396942138671875, -0.005184173583984375, -0.03515625, 0.034271240234375, -0.0225372314453125, -0.020416259765625, 0.023345947265625, -0.033355712890625, -0.020599365234375, -0.017364501953125, 0.002471923828125, 0.0072021484375, -0.0399169921875, -0.07183837890625, -0.00885009765625, -0.00412750244140625, -0.038299560546875, 0.043487548828125, -0.0208282470703125, -0.036773681640625, 0.047821044921875, 0.011077880859375, -0.02667236328125, 0.00846099853515625, -0.0020847320556640625, 0.004589080810546875, 0.042572021484375, -0.0006604194641113281, -0.0006494522094726562, -0.0299072265625, 0.0081939697265625, 0.006496429443359375, 0.00888824462890625, -0.032440185546875, 0.0198974609375, 0.0026378631591796875, 0.024200439453125, -0.0191802978515625, -0.01080322265625, 0.0076751708984375, 0.005062103271484375, 0.0107574462890625, 0.00991058349609375, -0.03729248046875, -0.0066986083984375, 0.0207672119140625, 0.08917236328125, 0.024993896484375, -0.024932861328125, -0.019927978515625, -0.054473876953125, -0.0011644363403320312, -0.038116455078125, 0.01396942138671875, -0.07183837890625, -0.021514892578125, 0.032257080078125, -0.01277923583984375, -0.01904296875, 0.0219573974609375, -0.02215576171875, -0.0168609619140625, 0.0275726318359375, -0.0004324913024902344, -0.05908203125, 0.00414276123046875, -0.0005640983581542969, -0.0185089111328125, -0.0255584716796875, -0.0253448486328125, 0.02386474609375, -0.0286407470703125, -0.033416748046875, -0.0258331298828125, -0.046142578125, -0.03985595703125, 0.041656494140625, -0.043487548828125, 0.07470703125, -0.06365966796875, -0.0290374755859375, -0.0182342529296875, -0.0074310302734375, 0.0129852294921875, -0.00441741943359375, -0.00614166259765625, -0.004482269287109375, 0.01226043701171875, -0.024444580078125, 0.032562255859375, 0.060699462890625, -0.01181793212890625, 0.051025390625, 0.02752685546875, -0.050506591796875, 0.039764404296875, -0.044342041015625, -0.0005621910095214844, 0.01438140869140625, 0.0229339599609375, -0.0706787109375, 0.03887939453125, -0.022796630859375, 0.041748046875, 0.03485107421875 ]
3ce63754acee8118dc9f0f08ce2aaf0b9c99f1d5
Wordpress Stackexchange Q: How to add a button to custom post type's posts-page How can I add a button to a posts -page. (In this case a custom post type). I'd like to place it next to, or near, the "Add new" button, to import content from a web service. A: You can add button via add_meta_box function. function add_your_meta_box(){ add_meta_box('your-metabox-id', 'Title', 'function_of_metabox', 'custom_post_type', 'side', 'high');} add_action('add_meta_boxes', 'add_your_meta_box'); function function_of_metabox() {?> <input type="submit" class="button button-primary button-large" value="Add New" id="add-new"/> <?php } if you add to multiple post type, you should use foreach loop. function add_your_meta_box(){ $types = array("post","page","custom_post_type"); foreach($types as $type){ add_meta_box('your-metabox-id', 'Title', 'function_of_metabox', $type, 'side', 'high');} } add_action('add_meta_boxes', 'add_your_meta_box');
Q: How to add a button to custom post type's posts-page How can I add a button to a posts -page. (In this case a custom post type). I'd like to place it next to, or near, the "Add new" button, to import content from a web service. A: You can add button via add_meta_box function. function add_your_meta_box(){ add_meta_box('your-metabox-id', 'Title', 'function_of_metabox', 'custom_post_type', 'side', 'high');} add_action('add_meta_boxes', 'add_your_meta_box'); function function_of_metabox() {?> <input type="submit" class="button button-primary button-large" value="Add New" id="add-new"/> <?php } if you add to multiple post type, you should use foreach loop. function add_your_meta_box(){ $types = array("post","page","custom_post_type"); foreach($types as $type){ add_meta_box('your-metabox-id', 'Title', 'function_of_metabox', $type, 'side', 'high');} } add_action('add_meta_boxes', 'add_your_meta_box'); A: Like this: function custom_js_to_head() { ?> <script> jQuery(function(){ jQuery("body.post-type-YOUR-CUSTOM-POST-TYPE .wrap h1").append('<a href="index.php?param=your-action" class="page-title-action">Import from ...</a>'); }); </script> <?php } add_action('admin_head', 'custom_js_to_head'); That code (pasted to functions.php) will dynamically add new link tag after "Add new" link.
wordpress
{ "language": "en", "length": 145, "provenance": "stackexchange_00019.jsonl.gz:458602", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/200338" }
[ 0.0867919921875, 0.00045561790466308594, 0.007625579833984375, -0.03741455078125, 0.031585693359375, -0.0215301513671875, 0.048187255859375, -0.0195465087890625, -0.00965118408203125, 0.01462554931640625, -0.0051116943359375, 0.02117919921875, -0.03265380859375, -0.02923583984375, -0.0089569091796875, -0.022735595703125, 0.054931640625, -0.0212249755859375, 0.064453125, -0.0004839897155761719, 0.029083251953125, 0.022064208984375, 0.06390380859375, 0.033660888671875, -0.0003628730773925781, -0.0237274169921875, 0.055389404296875, -0.00875091552734375, 0.0160675048828125, 0.007320404052734375, 0.0200042724609375, -0.020843505859375, 0.0123291015625, 0.0198516845703125, -0.0179595947265625, 0.041046142578125, 0.00428009033203125, 0.02105712890625, 0.01146697998046875, 0.0139617919921875, 0.03155517578125, -0.0166015625, -0.01012420654296875, 0.0164031982421875, -0.0177001953125, -0.0272369384765625, 0.012451171875, -0.0401611328125, 0.022918701171875, -0.006103515625, 0.01209259033203125, -0.021087646484375, 0.037994384765625, -0.0217437744140625, -0.0172882080078125, -0.0255126953125, -0.0263824462890625, 0.006862640380859375, 0.0189208984375, 0.04461669921875, 0.002452850341796875, 0.00815582275390625, -0.005374908447265625, -0.03143310546875, -0.007183074951171875, -0.007511138916015625, 0.0016193389892578125, 0.003490447998046875, -0.04144287109375, -0.0006861686706542969, 0.0362548828125, -0.033355712890625, 0.00766754150390625, -0.01160430908203125, 0.02618408203125, -0.01181793212890625, -0.017791748046875, -0.0139923095703125, 0.017303466796875, 0.0228424072265625, 0.0023975372314453125, 0.025146484375, 0.00734710693359375, -0.041259765625, 0.01898193359375, -0.0131378173828125, -0.025115966796875, -0.01427459716796875, -0.00751495361328125, -0.05352783203125, -0.007686614990234375, -0.096435546875, -0.004795074462890625, 0.00775146484375, 0.01055908203125, -0.0650634765625, 0.0019359588623046875, 0.004718780517578125, 0.005977630615234375, 0.006587982177734375, 0.02435302734375, -0.058868408203125, 0.07318115234375, -0.04058837890625, 0.02471923828125, 0.0137481689453125, -0.047882080078125, -0.052001953125, 0.049285888671875, 0.0401611328125, -0.0015897750854492188, -0.0013360977172851562, 0.0154266357421875, 0.0036220550537109375, -0.04974365234375, -0.01556396484375, -0.0159759521484375, 0.00473785400390625, -0.0022945404052734375, 0.006519317626953125, 0.0013103485107421875, 0.0203399658203125, 0.014068603515625, -0.042572021484375, 0.02703857421875, 0.0016984939575195312, -0.0097808837890625, -0.0401611328125, -0.0004949569702148438, 0.01290130615234375, -0.04931640625, -0.00235748291015625, 0.0772705078125, 0.05145263671875, 0.034423828125, -0.03216552734375, 0.0283050537109375, -0.038848876953125, -0.014434814453125, 0.0174713134765625, 0.019012451171875, -0.0731201171875, -0.045013427734375, 0.0181121826171875, -0.0115814208984375, 0.0286712646484375, 0.0021076202392578125, -0.0007042884826660156, 0.01739501953125, -0.051177978515625, 0.0011777877807617188, -0.05426025390625, 0.0350341796875, 0.0096588134765625, -0.026214599609375, 0.0004115104675292969, 0.016265869140625, -0.02288818359375, -0.036865234375, -0.040008544921875, 0.01383209228515625, 0.01209259033203125, 0.03216552734375, 0.0133514404296875, -0.0019054412841796875, -0.011749267578125, -0.0263214111328125, 0.005451202392578125, 0.0160369873046875, 0.07232666015625, -0.00984954833984375, -0.0005278587341308594, -0.010955810546875, -0.003841400146484375, -0.0312347412109375, -0.016632080078125, 0.030517578125, 0.050201416015625, -0.0096893310546875, 0.033935546875, 0.01285552978515625, -0.035064697265625, 0.07745361328125, -0.02642822265625, -0.06732177734375, 0.05670166015625, -0.0096435546875, 0.039703369140625, 0.01024627685546875, -0.002979278564453125, 0.046722412109375, 0.0323486328125, -0.046844482421875, 0.0018072128295898438, 0.00588226318359375, 0.005748748779296875, -0.0284881591796875, -0.015899658203125, -0.00887298583984375, 0.0303955078125, -0.040863037109375, -0.0009737014770507812, 0.002010345458984375, 0.048980712890625, -0.00830078125, 0.0277252197265625, -0.0175323486328125, 0.03289794921875, 0.029388427734375, -0.0151519775390625, 0.005504608154296875, -0.0192108154296875, 0.035125732421875, -0.07562255859375, -0.045745849609375, 0.0478515625, 0.0046234130859375, 0.0259246826171875, 0.00527191162109375, 0.0241241455078125, -0.00937652587890625, -0.0231781005859375, -0.02703857421875, -0.023651123046875, 0.0716552734375, 0.0097198486328125, -0.02923583984375, -0.02471923828125, -0.0023326873779296875, 0.034271240234375, -0.10595703125, 0.054443359375, 0.027740478515625, 0.00469207763671875, -0.02984619140625, 0.01043701171875, 0.0221099853515625, -0.03765869140625, -0.00948333740234375, 0.03521728515625, 0.0091552734375, 0.0279541015625, 0.0246124267578125, 0.09417724609375, 0.0169677734375, -0.01229095458984375, 0.01312255859375, 0.039581298828125, -0.006801605224609375, 0.04443359375, -0.053680419921875, 0.0176544189453125, 0.0290985107421875, -0.024749755859375, 0.00504302978515625, 0.037139892578125, -0.02203369140625, -0.0034580230712890625, 0.00653076171875, -0.0299072265625, 0.01204681396484375, -0.0343017578125, -0.022613525390625, -0.0163116455078125, 0.06640625, 0.0180816650390625, 0.07421875, 0.05224609375, -0.00739288330078125, -0.006732940673828125, -0.014068603515625, -0.0159454345703125, -0.00457763671875, -0.0094757080078125, 0.02288818359375, 0.0175628662109375, -0.04327392578125, 0.007419586181640625, 0.0254364013671875, 0.00249481201171875, -0.01546478271484375, 0.00778961181640625, -0.0274200439453125, -0.00995635986328125, 0.0004982948303222656, -0.0701904296875, 0.0035228729248046875, 0.0106964111328125, 0.040191650390625, -0.01421356201171875, 0.0165557861328125, 0.007755279541015625, -0.01397705078125, 0.042388916015625, 0.007476806640625, -0.0416259765625, 0.05340576171875, -0.036895751953125, 0.04248046875, -0.0306396484375, 0.043182373046875, 0.0487060546875, -0.0270233154296875, 0.01476287841796875, -0.01373291015625, 0.01496124267578125, -0.044525146484375, 0.03643798828125, -0.0012187957763671875, -0.06378173828125, -0.000034809112548828125, 0.0032958984375, 0.0238800048828125, 0.0252227783203125, -0.0036983489990234375, -0.03265380859375, -0.0015630722045898438, 0.0192413330078125, -0.04290771484375, -0.039642333984375, 0.057525634765625, -0.0830078125, -0.003391265869140625, -0.053314208984375, -0.06024169921875, -0.016082763671875, -0.0099945068359375, -0.0161590576171875, -0.051422119140625, -0.022705078125, 0.029022216796875, -0.04510498046875, -0.0255279541015625, -0.032440185546875, 0.0185089111328125, -0.004955291748046875, 0.01116943359375, 0.058013916015625, 0.018096923828125, -0.045379638671875, 0.0233917236328125, 0.03155517578125, -0.01271820068359375, 0.0234375, 0.04864501953125, -0.0350341796875, 0.0177459716796875, -0.013671875, 0.039215087890625, 0.03997802734375, -0.039306640625, -0.0105133056640625, -0.049285888671875, -0.0169525146484375, -0.01451873779296875, 0.03289794921875, 0.044342041015625, -0.0218048095703125, 0.02093505859375, -0.04736328125, -0.011444091796875, 0.0267181396484375, -0.01446533203125, -0.02044677734375, -0.032470703125, -0.01305389404296875, 0.0055389404296875, 0.0296173095703125, 0.0239410400390625, 0.0205535888671875, 0.051239013671875, 0.03839111328125, -0.0232391357421875, -0.0183258056640625, -0.022186279296875, -0.051513671875, -0.004665374755859375, -0.0058441162109375, 0.04949951171875, 0.007457733154296875, 0.042510986328125, -0.01132965087890625, 0.04901123046875, -0.032196044921875, -0.0653076171875, 0.050384521484375, -0.017364501953125, 0.00958251953125, -0.04669189453125, -0.03973388671875, -0.009185791015625, 0.08978271484375, -0.0853271484375, -0.007083892822265625, -0.01224517822265625, 0.00792694091796875, 0.03662109375, -0.035400390625, -0.0295257568359375, -0.0271759033203125, -0.03466796875, -0.000179290771484375, 0.01251983642578125, -0.0240325927734375, -0.015533447265625, 0.0265045166015625, -0.0360107421875, -0.00885009765625, 0.059814453125, -0.046051025390625, 0.0148162841796875, 0.05816650390625, 0.01503753662109375, 0.008880615234375, -0.037384033203125, -0.01479339599609375, -0.08319091796875, -0.01165771484375, -0.00499725341796875, 0.0447998046875, -0.01290130615234375, -0.0151824951171875, -0.02996826171875, 0.025177001953125, 0.0116119384765625, 0.00466156005859375, 0.0182037353515625, 0.0264434814453125, 0.028900146484375, -0.03143310546875, -0.00714111328125, -0.021697998046875, 0.0134429931640625, 0.0238037109375, 0.0014638900756835938, 0.0701904296875, -0.034454345703125, -0.0138092041015625, 0.005077362060546875, -0.032470703125, -0.0068206787109375, -0.06988525390625, -0.04156494140625, 0.019622802734375, -0.005565643310546875, -0.0108489990234375, -0.09503173828125, -0.040008544921875, -0.0243377685546875, -0.004150390625, -0.0294036865234375, 0.033111572265625, 0.0302276611328125, 0.03338623046875, -0.0035190582275390625, -0.06549072265625, 0.00428009033203125, 0.0139007568359375, -0.01337432861328125, 0.0015649795532226562, 0.01107025146484375, 0.004375457763671875, -0.03851318359375, -0.0175933837890625, 0.01021575927734375, -0.04754638671875, 0.08148193359375, -0.011993408203125, -0.0029087066650390625, 0.0197296142578125, -0.048095703125, 0.015594482421875, 0.00424957275390625, -0.0228424072265625, -0.01898193359375, -0.01262664794921875, 0.040863037109375, -0.0263519287109375, 0.05780029296875, -0.021728515625, -0.0004305839538574219, -0.0012845993041992188, -0.0178070068359375, 0.050689697265625, 0.0268707275390625, -0.0032138824462890625, 0.0023441314697265625, -0.0290985107421875, -0.008819580078125, 0.008758544921875, -0.0088958740234375, 0.0141448974609375, 0.011260986328125, 0.04296875, -0.00052642822265625, 0.0010251998901367188, 0.006927490234375, 0.006534576416015625, 0.022552490234375, -0.027862548828125, -0.0167236328125, 0.01953125, 0.058685302734375, -0.0115509033203125, 0.0201568603515625, 0.0200653076171875, 0.0198516845703125, -0.005558013916015625, 0.005279541015625, 0.043853759765625, -0.00994873046875, -0.030059814453125, -0.0294036865234375, 0.01983642578125, -0.02349853515625, 0.0179290771484375, 0.03680419921875, -0.0036907196044921875, 0.0221405029296875, -0.01213836669921875, 0.057159423828125, 0.0396728515625, 0.0311126708984375, 0.023712158203125, -0.0077056884765625, -0.01171112060546875, 0.0036563873291015625, -0.050445556640625, -0.0008382797241210938, 0.0160064697265625, 0.0048675537109375, 0.01800537109375, -0.006862640380859375, 0.0013475418090820312, 0.003932952880859375, -0.03436279296875, -0.0245819091796875, -0.01837158203125, 0.0030994415283203125, -0.0257568359375, 0.006389617919921875, 0.018798828125, -0.01053619384765625, 0.018646240234375, 0.00099945068359375, 0.06500244140625, 0.01169586181640625, 0.0506591796875, -0.053558349609375, 0.021697998046875, -0.0183563232421875, 0.0050811767578125, -0.036865234375, -0.0137481689453125, 0.00907135009765625, -0.03594970703125, -0.031951904296875, -0.002292633056640625, -0.0205535888671875, 0.01200103759765625, -0.019439697265625, 0.012176513671875, -0.025909423828125, 0.0189971923828125, -0.01099395751953125, 0.016815185546875, 0.0173492431640625, -0.0156097412109375, 0.0399169921875, -0.032562255859375, -0.04302978515625, -0.03546142578125, -0.0323486328125, -0.0278167724609375, -0.0210418701171875, 0.009429931640625, 0.0159454345703125, 0.0380859375, -0.0213165283203125, -0.02618408203125, 0.0127410888671875, -0.0049591064453125, -0.0140533447265625, 0.03741455078125, 0.0099334716796875, 0.047515869140625, -0.0036144256591796875, 0.0662841796875, 0.0217132568359375, 0.0211029052734375, -0.0247955322265625, -0.0236663818359375, -0.0017299652099609375, -0.039398193359375, -0.00511932373046875, -0.0238037109375, 0.00991058349609375, 0.036285400390625, 0.048675537109375, -0.00585174560546875, 0.00876617431640625, -0.0261688232421875, -0.0167694091796875, -0.0256805419921875, 0.0401611328125, -0.010650634765625, 0.013580322265625, 0.031402587890625, -0.0243682861328125, 0.00144195556640625, -0.005401611328125, 0.0194244384765625, 0.0143890380859375, -0.033050537109375, 0.016510009765625, 0.01261138916015625, -0.10406494140625, 0.07122802734375, 0.058563232421875, 0.056884765625, 0.07769775390625, -0.027740478515625, 0.04449462890625, 0.0289154052734375, 0.0193634033203125, -0.01134490966796875, -0.0093994140625, 0.0653076171875, 0.0119171142578125, -0.0382080078125, 0.03839111328125, -0.034454345703125, 0.0284423828125, 0.024261474609375, 0.0484619140625, -0.06182861328125, 0.01375579833984375, 0.0078277587890625, -0.01226806640625, 0.049560546875, -0.0293426513671875, 0.0140838623046875, -0.0140228271484375, 0.0611572265625, 0.02294921875, -0.0207672119140625, 0.0264129638671875, -0.01409149169921875, -0.01181793212890625, -0.030029296875, -0.0115966796875, 0.0020294189453125, -0.00780487060546875, 0.0211029052734375, 0.006931304931640625, -0.006256103515625, -0.00579833984375, 0.00232696533203125, -0.0184326171875, -0.0268707275390625, -0.049591064453125, -0.00820159912109375, -0.0237579345703125, 0.00009506940841674805, 0.048187255859375, 0.016632080078125, 0.0208587646484375, 0.033050537109375, -0.00505828857421875, 0.035369873046875, -0.02508544921875, 0.0084991455078125, -0.03338623046875, -0.0298309326171875, -0.006076812744140625, -0.00011938810348510742, 0.004791259765625, 0.0145721435546875, -0.0017328262329101562, -0.04278564453125, 0.0032825469970703125, 0.0023632049560546875, 0.07110595703125, -0.0202484130859375, -0.0301055908203125, 0.03240966796875, -0.0183868408203125, -0.01513671875, 0.019683837890625, -0.0063934326171875, -0.04034423828125, -0.013702392578125, 0.0086669921875, -0.043609619140625, -0.005741119384765625, 0.0228729248046875, -0.0911865234375, 0.08154296875, 0.0309906005859375, 0.029144287109375, -0.0254669189453125, 0.0262451171875, -0.037689208984375, -0.01107025146484375, -0.01024627685546875, 0.0287017822265625, 0.01357269287109375, -0.0038928985595703125, -0.031768798828125, -0.019287109375, -0.0263671875, 0.04644775390625, 0.049407958984375, 0.00540924072265625, -0.0225677490234375, -0.007007598876953125, 0.05078125, 0.07177734375, 0.0231475830078125, 0.00594329833984375, 0.004253387451171875, 0.0179443359375, 0.0472412109375, -0.006076812744140625, 0.037109375, 0.01486968994140625, -0.029449462890625, 0.00814056396484375, 0.0058135986328125, -0.0187835693359375, -0.03546142578125, 0.0036983489990234375, -0.0082244873046875, -0.01605224609375, -0.01497650146484375, 0.0182952880859375, 0.002552032470703125, 0.03448486328125, -0.00313568115234375, 0.0174560546875, 0.0025196075439453125, -0.020538330078125, 0.035003662109375, 0.00858306884765625, 0.051483154296875, -0.005313873291015625, 0.0171661376953125, 0.013214111328125, -0.0034732818603515625, 0.0144500732421875, 0.0176544189453125, -0.022613525390625, 0.07464599609375, 0.0165557861328125, 0.02532958984375, -0.0535888671875, -0.01328277587890625, 0.0200347900390625, 0.08001708984375, -0.042388916015625, -0.04364013671875, 0.00405120849609375, -0.0059051513671875, 0.009552001953125, -0.001995086669921875, 0.045928955078125, -0.01160430908203125, 0.003604888916015625, -0.046478271484375, 0.0072021484375, 0.0095977783203125, 0.0253143310546875, -0.0164947509765625, -0.003299713134765625, -0.0328369140625, 0.005939483642578125, -0.043853759765625, 0.00653839111328125, 0.01611328125, 0.05828857421875, 0.02490234375, 0.047637939453125, 0.0084686279296875, -0.0213165283203125, 0.01107025146484375, -0.01300048828125, 0.007350921630859375, 0.0014829635620117188, -0.00789642333984375, -0.0160675048828125, 0.023193359375, 0.023712158203125, 0.038330078125, 0.062744140625, 0.045135498046875, 0.031494140625, 0.039215087890625, 0.015838623046875, 0.0582275390625, -0.00827789306640625, -0.013092041015625, -0.041015625, 0.0165863037109375, 0.020721435546875, 0.013092041015625, -0.004550933837890625, 0.0009188652038574219, 0.0308837890625, -0.011810302734375, 0.02447509765625, -0.004329681396484375, -0.01806640625, 0.07818603515625, 0.006298065185546875, 0.10125732421875, 0.0302276611328125, -0.06390380859375, 0.0019016265869140625, -0.040679931640625, -0.044677734375, 0.027435302734375, 0.036376953125, -0.0311737060546875, 0.032806396484375, -0.0047454833984375, -0.003406524658203125, 0.01531219482421875, 0.0073089599609375, -0.01071929931640625, 0.07232666015625, 0.04974365234375, 0.043701171875, -0.03228759765625, -0.0024166107177734375, 0.0269012451171875, -0.0016641616821289062, -0.005832672119140625, 0.0185546875, 0.0189666748046875, 0.0005707740783691406, -0.0284576416015625, -0.0014190673828125, -0.0013818740844726562, -0.036773681640625, 0.02203369140625, 0.052398681640625, 0.015106201171875, -0.018096923828125, 0.017242431640625, 0.021392822265625, 0.04107666015625, -0.02532958984375, -0.01061248779296875, 0.0016794204711914062, 0.014892578125, -0.01068878173828125, 0.02545166015625, -0.0167694091796875, 0.01873779296875, -0.037628173828125, -0.034912109375, 0.06085205078125, 0.01029205322265625, -0.031890869140625, 0.015380859375, 0.0157318115234375, 0.0005636215209960938, 0.0290374755859375, -0.00011944770812988281, 0.0309600830078125, 0.020660400390625, -0.0208587646484375, -0.041656494140625, 0.007305145263671875, -0.008392333984375, 0.0098419189453125, 0.003261566162109375, 0.034332275390625, 0.0303802490234375, -0.05810546875, 0.001377105712890625, 0.027130126953125, 0.039825439453125, -0.024688720703125, -0.0002491474151611328, 0.01300811767578125, -0.0186309814453125, -0.013153076171875, 0.0506591796875, -0.0181884765625, -0.01812744140625, -0.012786865234375, 0.006038665771484375, -0.0014019012451171875, -0.0011034011840820312, -0.0341796875, 0.0168609619140625, 0.0235137939453125, -0.003665924072265625, -0.046600341796875, 0.02398681640625, -0.0231170654296875, 0.04248046875, -0.020477294921875, -0.0239105224609375, 0.01073455810546875, 0.0618896484375, -0.004665374755859375, -0.013702392578125, -0.0222015380859375, 0.00832366943359375, -0.0303802490234375, 0.0254974365234375, 0.0162353515625, -0.031463623046875, 0.045196533203125, 0.01404571533203125, 0.0276641845703125, 0.045928955078125, 0.0274658203125, -0.0220184326171875, 0.008056640625, -0.006763458251953125, 0.0007610321044921875, -0.058258056640625, -0.000045239925384521484, -0.07861328125, -0.0196685791015625, -0.032470703125, 0.031585693359375, 0.042083740234375, -0.00977325439453125, -0.051849365234375, 0.0220947265625, -0.006557464599609375, -0.0295867919921875, -0.08587646484375, 0.0302581787109375, 0.02716064453125, 0.00415802001953125, -0.0241241455078125, -0.02008056640625, -0.037994384765625, 0.005886077880859375, 0.011138916015625, -0.0092315673828125, 0.030853271484375, -0.00948333740234375, -0.05908203125, -0.004180908203125, 0.0003235340118408203, -0.0016584396362304688, 0.01081085205078125, -0.033782958984375, 0.02728271484375, 0.00894927978515625, -0.0694580078125, -0.0202789306640625, -0.0019931793212890625, 0.056304931640625, -0.016265869140625, -0.05908203125, -0.012115478515625, -0.0137481689453125, 0.07708740234375, 0.00916290283203125, 0.01163482666015625, -0.0377197265625, 0.0428466796875, -0.028656005859375, -0.048553466796875, -0.00299835205078125, 0.0005764961242675781, -0.01763916015625, -0.0124969482421875, 0.003116607666015625, -0.0033435821533203125, -0.007343292236328125, 0.0002872943878173828, -0.017852783203125, 0.0023288726806640625, 0.047760009765625, 0.01534271240234375, -0.0509033203125, 0.033966064453125, 0.07373046875, -0.042938232421875, 0.02679443359375, -0.0004050731658935547, -0.01126861572265625, 0.060760498046875, -0.01404571533203125, -0.0115966796875, 0.013092041015625, -0.0201873779296875, 0.030853271484375, -0.016204833984375, 0.0694580078125, -0.04876708984375, -0.00041365623474121094, -0.00823974609375, 0.018951416015625, -0.01065826416015625, 0.01666259765625, -0.0308990478515625, 0.0706787109375, 0.00377655029296875, 0.079833984375, -0.01471710205078125, 0.024169921875, -0.0258331298828125, 0.03790283203125, 0.0015211105346679688, -0.001667022705078125, 0.036468505859375, -0.006206512451171875, 0.00653839111328125, -0.024261474609375, -0.01837158203125, -0.033233642578125, 0.0236663818359375, 0.05926513671875, -0.035308837890625, 0.03955078125 ]
d639d11a2b4a6974542b924888024acddb991e2e
Wordpress Stackexchange Q: Feed 404 Errors Before you say this has been dealt with before, please read the whole issue. I have Google'ed and Stackoverflowed myself to death on this. In WMT I see 404 errors for /feed on specific posts. e.g. htt://mydomain/thispost/feed/ My feed is working fine for pages and categories but there is this ongoing 404 error for a feed on indivual posts. I thought to block /feed in robots.txt but then all feeds will be blocked and I dont really know the impact from a SEO perspective. Can someone please give me a solution or direction. By the way my site is using WPML and WP SEO (Yoast) Thank you in advance A: For all those who might hit the same problem, here is the solution: Disable in Yoast the "remove category" option in advanced section. Then install this plugin: https://wordpress.org/plugins/remove-category-url/ ( do use any other plugin as this one works - yes, I tried them all) For some reason the Yoast solution and all other plugins don't allow accessing the /feed/ url in any language besides the default language of WPML. Hope this will be useful someone out there..
Q: Feed 404 Errors Before you say this has been dealt with before, please read the whole issue. I have Google'ed and Stackoverflowed myself to death on this. In WMT I see 404 errors for /feed on specific posts. e.g. htt://mydomain/thispost/feed/ My feed is working fine for pages and categories but there is this ongoing 404 error for a feed on indivual posts. I thought to block /feed in robots.txt but then all feeds will be blocked and I dont really know the impact from a SEO perspective. Can someone please give me a solution or direction. By the way my site is using WPML and WP SEO (Yoast) Thank you in advance A: For all those who might hit the same problem, here is the solution: Disable in Yoast the "remove category" option in advanced section. Then install this plugin: https://wordpress.org/plugins/remove-category-url/ ( do use any other plugin as this one works - yes, I tried them all) For some reason the Yoast solution and all other plugins don't allow accessing the /feed/ url in any language besides the default language of WPML. Hope this will be useful someone out there..
wordpress
{ "language": "en", "length": 191, "provenance": "stackexchange_00019.jsonl.gz:458612", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/200369" }
[ 0.09698486328125, 0.024078369140625, 0.0034122467041015625, -0.02593994140625, 0.039306640625, -0.045684814453125, 0.072509765625, -0.027435302734375, 0.020843505859375, 0.0273895263671875, 0.0022640228271484375, -0.0291748046875, 0.05279541015625, -0.032470703125, -0.013641357421875, -0.0040130615234375, 0.00722503662109375, 0.00714111328125, 0.031524658203125, -0.00164031982421875, 0.022491455078125, -0.005237579345703125, 0.0251617431640625, -0.0065765380859375, 0.00769805908203125, 0.0020008087158203125, 0.00337982177734375, -0.01806640625, -0.016693115234375, -0.0297088623046875, 0.0162811279296875, 0.01824951171875, 0.0098114013671875, 0.00769805908203125, -0.01885986328125, -0.0643310546875, -0.0261993408203125, 0.006793975830078125, -0.026397705078125, 0.010589599609375, 0.01100921630859375, -0.0068206787109375, 0.0911865234375, 0.0174407958984375, 0.04180908203125, -0.0225372314453125, 0.006946563720703125, -0.08819580078125, 0.0067596435546875, 0.0007171630859375, 0.00278472900390625, 0.019561767578125, 0.0050811767578125, 0.0070953369140625, -0.0211944580078125, -0.03668212890625, -0.019287109375, 0.019927978515625, -0.0013942718505859375, 0.01294708251953125, 0.0173797607421875, 0.038330078125, -0.0095062255859375, 0.0249481201171875, -0.0037326812744140625, -0.00830078125, 0.046539306640625, 0.031646728515625, -0.022674560546875, -0.0087432861328125, 0.032135009765625, -0.0023136138916015625, -0.01166534423828125, -0.000011146068572998047, -0.02569580078125, 0.01044464111328125, 0.008758544921875, -0.002262115478515625, 0.0091705322265625, 0.0175933837890625, -0.00592041015625, -0.05621337890625, -0.02880859375, 0.00891876220703125, -0.0149078369140625, 0.01482391357421875, -0.00550079345703125, -0.0028705596923828125, -0.025726318359375, -0.01366424560546875, -0.025360107421875, -0.034271240234375, -0.02728271484375, -0.00017189979553222656, -0.0043487548828125, -0.01448822021484375, 0.04156494140625, 0.059326171875, 0.01849365234375, 0.003551483154296875, -0.0289306640625, -0.023284912109375, -0.0216217041015625, -0.0193634033203125, 0.0272369384765625, 0.006084442138671875, -0.030120849609375, 0.017822265625, 0.0777587890625, 0.04632568359375, 0.01116180419921875, 0.0841064453125, -0.019927978515625, -0.03814697265625, -0.0146636962890625, 0.041412353515625, -0.0294189453125, -0.003337860107421875, 0.007442474365234375, -0.0073394775390625, -0.010986328125, 0.011810302734375, -0.036041259765625, 0.008636474609375, -0.0096435546875, -0.0308074951171875, -0.0200347900390625, 0.03271484375, 0.031829833984375, -0.00997161865234375, -0.016510009765625, 0.026031494140625, 0.00867462158203125, -0.00872802734375, -0.0187530517578125, -0.01129150390625, 0.047821044921875, -0.03302001953125, -0.0145721435546875, 0.0303497314453125, 0.0028209686279296875, -0.01629638671875, 0.0022296905517578125, -0.0036163330078125, 0.005817413330078125, 0.0252838134765625, 0.029083251953125, 0.00238037109375, 0.01248931884765625, -0.036956787109375, -0.0201568603515625, 0.0287933349609375, 0.0772705078125, -0.007152557373046875, -0.0244903564453125, -0.051849365234375, 0.10394287109375, -0.0762939453125, -0.04144287109375, -0.10357666015625, 0.00902557373046875, -0.004608154296875, 0.0121612548828125, -0.04351806640625, -0.0301361083984375, -0.01354217529296875, -0.0479736328125, 0.01473236083984375, 0.0305023193359375, 0.028472900390625, 0.0185699462890625, -0.04107666015625, -0.01102447509765625, -0.0196075439453125, -0.0096588134765625, 0.0051422119140625, 0.01236724853515625, 0.00450897216796875, 0.01824951171875, 0.0218353271484375, 0.01248931884765625, -0.0098114013671875, 0.04278564453125, 0.00714111328125, -0.05877685546875, 0.02374267578125, 0.0179595947265625, 0.0509033203125, 0.02020263671875, 0.01364898681640625, 0.0469970703125, 0.00957489013671875, 0.00823974609375, 0.040191650390625, -0.032989501953125, -0.055908203125, -0.003414154052734375, 0.0091400146484375, -0.0322265625, -0.0267333984375, 0.0072479248046875, 0.029876708984375, -0.032745361328125, 0.024261474609375, -0.049072265625, 0.0068206787109375, -0.0087127685546875, 0.034454345703125, -0.048553466796875, -0.004032135009765625, 0.024322509765625, -0.0072021484375, -0.027587890625, -0.0286102294921875, -0.00879669189453125, 0.007293701171875, -0.0274200439453125, 0.004360198974609375, -0.0016460418701171875, 0.060791015625, -0.017181396484375, -0.01035308837890625, -0.029144287109375, -0.0272674560546875, 0.049407958984375, 0.01239013671875, -0.0234222412109375, -0.01212310791015625, 0.052703857421875, 0.00804901123046875, -0.01261138916015625, 0.0219268798828125, 0.036285400390625, 0.01337432861328125, -0.0101776123046875, 0.0247650146484375, 0.051055908203125, -0.0452880859375, 0.0013427734375, 0.030792236328125, 0.019317626953125, 0.0151519775390625, -0.04620361328125, -0.016815185546875, 0.01593017578125, -0.06732177734375, -0.00861358642578125, 0.0194244384765625, 0.00943756103515625, 0.00222015380859375, 0.0184478759765625, -0.0124969482421875, 0.0221099853515625, -0.021026611328125, 0.007160186767578125, 0.034912109375, -0.0001455545425415039, -0.02099609375, 0.000885009765625, 0.00905609130859375, 0.01122283935546875, 0.0310516357421875, -0.027557373046875, 0.0174560546875, 0.0511474609375, 0.003932952880859375, 0.054229736328125, 0.06475830078125, 0.00412750244140625, -0.002429962158203125, -0.01349639892578125, -0.00725555419921875, 0.0180816650390625, 0.034576416015625, 0.044281005859375, 0.0482177734375, -0.018157958984375, -0.021697998046875, 0.021148681640625, 0.037841796875, 0.0011510848999023438, 0.052642822265625, -0.00618743896484375, -0.01512908935546875, -0.0181427001953125, -0.049285888671875, -0.0227203369140625, -0.00212860107421875, 0.03594970703125, 0.023345947265625, 0.034271240234375, 0.0027179718017578125, -0.01434326171875, 0.04486083984375, 0.004634857177734375, -0.0257720947265625, 0.0241241455078125, -0.0703125, 0.05072021484375, -0.0244903564453125, 0.041046142578125, 0.0831298828125, 0.0199432373046875, -0.01152801513671875, 0.0237884521484375, -0.04656982421875, 0.03839111328125, 0.0201873779296875, 0.00481414794921875, 0.003276824951171875, -0.058685302734375, -0.0012416839599609375, 0.03271484375, 0.018890380859375, 0.0199432373046875, -0.0209808349609375, 0.00762939453125, 0.04412841796875, -0.07525634765625, -0.0709228515625, 0.0023441314697265625, -0.0139312744140625, 0.032257080078125, 0.03924560546875, -0.0055389404296875, -0.039703369140625, 0.048309326171875, 0.0113677978515625, -0.00555419921875, -0.031829833984375, -0.07159423828125, -0.04302978515625, -0.060882568359375, 0.01471710205078125, -0.0195159912109375, -0.003032684326171875, 0.01251220703125, -0.0230255126953125, 0.006763458251953125, -0.01267242431640625, 0.0312042236328125, 0.0127716064453125, -0.00812530517578125, -0.00876617431640625, -0.0218963623046875, 0.005985260009765625, 0.0509033203125, -0.0101318359375, 0.05767822265625, 0.06097412109375, -0.037445068359375, 0.000942230224609375, -0.023406982421875, 0.01122283935546875, 0.00594329833984375, -0.0245361328125, 0.0183868408203125, -0.0294342041015625, -0.0223541259765625, -0.05242919921875, -0.043548583984375, -0.02947998046875, -0.0596923828125, 0.0239410400390625, 0.043243408203125, 0.0173187255859375, -0.038055419921875, 0.006984710693359375, 0.01235198974609375, 0.0002181529998779297, 0.0648193359375, -0.043609619140625, 0.003681182861328125, -0.01215362548828125, -0.02105712890625, -0.0462646484375, 0.016571044921875, -0.007160186767578125, -0.04052734375, -0.0250396728515625, 0.004974365234375, -0.034332275390625, 0.04693603515625, -0.06341552734375, -0.00453948974609375, -0.01551055908203125, -0.065185546875, -0.0279998779296875, 0.01514434814453125, 0.033355712890625, 0.002079010009765625, -0.00452423095703125, 0.015045166015625, -0.03955078125, -0.0338134765625, 0.03277587890625, -0.042877197265625, -0.07061767578125, 0.0467529296875, -0.0035552978515625, -0.03619384765625, 0.00969696044921875, -0.00031447410583496094, -0.016448974609375, -0.0039215087890625, -0.0040283203125, -0.011627197265625, -0.027801513671875, 0.0300445556640625, -0.039337158203125, 0.0005035400390625, -0.01922607421875, -0.0110321044921875, -0.056243896484375, -0.03558349609375, -0.0150604248046875, -0.07891845703125, -0.01526641845703125, -0.04083251953125, 0.0687255859375, 0.0295867919921875, -0.00433349609375, -0.009613037109375, 0.05401611328125, -0.021514892578125, 0.01348876953125, -0.0020599365234375, -0.01389312744140625, 0.052825927734375, 0.044708251953125, 0.003948211669921875, 0.01399993896484375, 0.002628326416015625, 0.020965576171875, -0.071044921875, 0.0247039794921875, 0.0050811767578125, 0.01004791259765625, 0.045013427734375, -0.054656982421875, -0.0665283203125, -0.042236328125, -0.03759765625, 0.01910400390625, -0.01580810546875, -0.0014715194702148438, -0.035491943359375, -0.0828857421875, 0.021087646484375, -0.0038394927978515625, -0.0187225341796875, 0.008056640625, 0.04681396484375, 0.0194091796875, -0.0104827880859375, -0.0003056526184082031, -0.0202484130859375, 0.020233154296875, 0.020050048828125, 0.0638427734375, 0.0333251953125, -0.005115509033203125, 0.05499267578125, 0.0158843994140625, -0.01666259765625, -0.0238494873046875, 0.051422119140625, 0.01345062255859375, -0.0116119384765625, 0.0113525390625, 0.00707244873046875, 0.0207977294921875, 0.044464111328125, -0.01233673095703125, -0.0218353271484375, 0.0019626617431640625, 0.029296875, -0.0577392578125, 0.0657958984375, -0.00354766845703125, -0.018096923828125, 0.02972412109375, 0.0252532958984375, -0.031646728515625, 0.00714874267578125, -0.012176513671875, -0.04046630859375, -0.053741455078125, -0.0023956298828125, -0.031829833984375, 0.026885986328125, -0.0210113525390625, 0.033233642578125, -0.0224456787109375, -0.005146026611328125, -0.041839599609375, -0.006481170654296875, -0.0199737548828125, -0.0048675537109375, -0.073486328125, 0.028900146484375, 0.01416015625, -0.0011959075927734375, 0.043975830078125, 0.0069732666015625, 0.040557861328125, 0.00835418701171875, -0.002117156982421875, -0.00684356689453125, -0.0182342529296875, -0.0012369155883789062, -0.033172607421875, -0.002010345458984375, -0.0212860107421875, -0.01000213623046875, -0.01023101806640625, 0.04949951171875, -0.019439697265625, 0.02337646484375, -0.0086669921875, -0.01343536376953125, 0.00921630859375, 0.056121826171875, -0.0000017881393432617188, -0.0292510986328125, -0.002216339111328125, 0.031829833984375, 0.037994384765625, -0.03546142578125, -0.004627227783203125, 0.0216064453125, 0.021728515625, 0.01227569580078125, -0.0226898193359375, 0.011932373046875, 0.00749969482421875, -0.005840301513671875, 0.05242919921875, 0.021636962890625, -0.0128631591796875, -0.030426025390625, -0.041015625, 0.026947021484375, -0.000031054019927978516, -0.0151519775390625, -0.02203369140625, -0.0295257568359375, -0.0155792236328125, 0.07958984375, -0.057281494140625, 0.034332275390625, 0.0189361572265625, 0.0302734375, -0.0085601806640625, -0.00039505958557128906, -0.045013427734375, 0.0248870849609375, -0.03704833984375, -0.005207061767578125, 0.05810546875, 0.01251983642578125, 0.01165008544921875, -0.029052734375, -0.0028533935546875, 0.0297088623046875, 0.0090484619140625, 0.0135955810546875, -0.03271484375, -0.04278564453125, 0.00966644287109375, -0.0379638671875, -0.0260467529296875, -0.034210205078125, -0.0115966796875, -0.054779052734375, -0.0171661376953125, 0.0086517333984375, 0.01021575927734375, 0.0269622802734375, 0.04913330078125, -0.0122222900390625, 0.0282745361328125, -0.0012197494506835938, 0.0292205810546875, -0.036773681640625, 0.0343017578125, 0.02117919921875, 0.012908935546875, -0.01495361328125, 0.01255035400390625, 0.007801055908203125, -0.01837158203125, 0.0095977783203125, -0.04083251953125, -0.02880859375, 0.008453369140625, -0.049224853515625, 0.020172119140625, 0.03302001953125, 0.00726318359375, 0.005474090576171875, -0.0215911865234375, -0.0017728805541992188, -0.02203369140625, 0.09332275390625, -0.0156707763671875, 0.0295562744140625, 0.038726806640625, -0.01202392578125, 0.00832366943359375, -0.004711151123046875, -0.0018672943115234375, 0.0055694580078125, 0.00214385986328125, -0.003337860107421875, -0.003223419189453125, -0.039459228515625, 0.049072265625, 0.0631103515625, 0.00914764404296875, 0.052734375, -0.005283355712890625, 0.0211029052734375, 0.02020263671875, 0.0411376953125, 0.0194244384765625, -0.053802490234375, 0.01053619384765625, -0.00160980224609375, -0.00409698486328125, -0.0029430389404296875, -0.02166748046875, -0.0173187255859375, 0.051605224609375, 0.030303955078125, -0.046051025390625, -0.0251007080078125, -0.009979248046875, -0.052947998046875, -0.0183563232421875, -0.005443572998046875, 0.01462554931640625, -0.0136871337890625, -0.011322021484375, 0.01242828369140625, -0.02276611328125, -0.0159912109375, -0.01459503173828125, -0.0101318359375, 0.049285888671875, 0.0293731689453125, 0.00846099853515625, -0.03173828125, -0.068115234375, 0.0251007080078125, -0.01531219482421875, -0.019866943359375, -0.0024929046630859375, 0.0146026611328125, -0.017242431640625, -0.02978515625, 0.046722412109375, -0.0102691650390625, 0.009307861328125, 0.01861572265625, -0.005519866943359375, 0.0023651123046875, 0.0216064453125, -0.01535797119140625, 0.004749298095703125, -0.020172119140625, 0.0014581680297851562, 0.07867431640625, -0.0151824951171875, 0.007472991943359375, 0.01317596435546875, -0.0300750732421875, -0.0290069580078125, -0.0161895751953125, 0.00849151611328125, 0.005443572998046875, -0.0631103515625, 0.0248565673828125, -0.035614013671875, 0.0077972412109375, -0.01267242431640625, -0.007007598876953125, 0.035430908203125, -0.006561279296875, -0.00794219970703125, -0.06182861328125, -0.013671875, -0.01226043701171875, 0.00592803955078125, 0.055389404296875, 0.0025577545166015625, -0.0750732421875, 0.07305908203125, -0.021087646484375, 0.05035400390625, 0.010284423828125, 0.0193939208984375, -0.01111602783203125, -0.007534027099609375, -0.0244903564453125, 0.047454833984375, -0.003368377685546875, 0.019195556640625, -0.04241943359375, -0.0006799697875976562, -0.009124755859375, 0.03497314453125, 0.0653076171875, 0.01500701904296875, -0.02886962890625, -0.02557373046875, 0.0142974853515625, 0.0223236083984375, -0.008056640625, 0.037445068359375, -0.0310516357421875, 0.0200653076171875, -0.03875732421875, -0.044158935546875, 0.01207733154296875, -0.0297698974609375, -0.0445556640625, 0.01222991943359375, -0.01296234130859375, -0.032379150390625, 0.00820159912109375, 0.008270263671875, -0.029937744140625, 0.007293701171875, 0.00350189208984375, -0.01161956787109375, -0.00955963134765625, 0.06829833984375, 0.0321044921875, -0.048583984375, -0.03375244140625, -0.051422119140625, 0.04931640625, -0.01561737060546875, 0.085693359375, 0.047637939453125, 0.0301513671875, 0.08123779296875, -0.035797119140625, 0.046356201171875, -0.0030689239501953125, -0.04803466796875, 0.04052734375, 0.015228271484375, -0.001251220703125, -0.05169677734375, -0.01318359375, 0.05853271484375, 0.0701904296875, -0.037322998046875, -0.07379150390625, -0.0024738311767578125, -0.00556182861328125, 0.0293731689453125, 0.042938232421875, 0.033355712890625, -0.00536346435546875, 0.042266845703125, -0.03875732421875, -0.020538330078125, 0.0196075439453125, 0.0357666015625, -0.00897216796875, -0.03204345703125, -0.005084991455078125, -0.0279998779296875, -0.050689697265625, 0.01529693603515625, 0.023651123046875, 0.07098388671875, 0.01409149169921875, 0.04205322265625, -0.027313232421875, -0.03228759765625, 0.022918701171875, 0.0252685546875, -0.006664276123046875, -0.032958984375, -0.0125579833984375, -0.056884765625, 0.0296173095703125, 0.0260162353515625, -0.0159912109375, -0.004047393798828125, 0.017059326171875, 0.0364990234375, -0.008941650390625, -0.023895263671875, 0.016448974609375, -0.0193023681640625, -0.048370361328125, -0.032958984375, 0.017425537109375, 0.020111083984375, 0.01806640625, 0.0205535888671875, 0.05401611328125, -0.0207061767578125, 0.00885009765625, -0.0203094482421875, 0.013153076171875, -0.038360595703125, 0.0259246826171875, 0.011810302734375, 0.0138397216796875, 0.03167724609375, -0.0970458984375, -0.0162506103515625, -0.03759765625, -0.017425537109375, 0.0044403076171875, 0.0205535888671875, -0.0230560302734375, 0.03668212890625, 0.016387939453125, 0.01111602783203125, 0.0110321044921875, -0.04547119140625, 0.039703369140625, 0.018341064453125, 0.00472259521484375, 0.0241851806640625, 0.03021240234375, 0.015228271484375, 0.04302978515625, 0.0167694091796875, 0.007312774658203125, 0.06683349609375, -0.0243072509765625, -0.006374359130859375, -0.00223541259765625, -0.027069091796875, 0.0290679931640625, 0.01442718505859375, -0.0307769775390625, 0.033050537109375, 0.01473236083984375, -0.0252532958984375, -0.055908203125, -0.0006055831909179688, 0.036529541015625, -0.02392578125, -0.00525665283203125, -0.0028285980224609375, 0.029510498046875, -0.00220489501953125, 0.022247314453125, -0.032562255859375, -0.038848876953125, -0.049560546875, -0.0020599365234375, 0.0210418701171875, 0.033935546875, -0.0026569366455078125, 0.027130126953125, -0.055755615234375, 0.0082550048828125, 0.00914764404296875, -0.024322509765625, -0.0229339599609375, 0.0163726806640625, -0.048065185546875, 0.0207672119140625, 0.0276031494140625, -0.00243377685546875, 0.002899169921875, 0.0206298828125, -0.00933074951171875, 0.0030345916748046875, 0.06549072265625, -0.025634765625, -0.0309600830078125, -0.016937255859375, -0.0214385986328125, -0.01493072509765625, -0.00606536865234375, -0.0101470947265625, -0.01364898681640625, -0.043365478515625, -0.00867462158203125, 0.01348114013671875, -0.0341796875, 0.00884246826171875, -0.005641937255859375, -0.044036865234375, -0.03900146484375, 0.0167083740234375, 0.0167694091796875, -0.01357269287109375, -0.032318115234375, 0.033966064453125, -0.035430908203125, 0.035797119140625, -0.0236968994140625, -0.055816650390625, 0.0131988525390625, 0.06829833984375, -0.0278778076171875, 0.0007615089416503906, -0.03460693359375, -0.048004150390625, -0.052703857421875, 0.0118865966796875, 0.0051422119140625, -0.0088043212890625, -0.01129150390625, -0.006282806396484375, 0.005275726318359375, 0.038116455078125, 0.034149169921875, 0.002071380615234375, 0.01800537109375, 0.008697509765625, -0.0286102294921875, -0.050079345703125, 0.02130126953125, -0.0382080078125, -0.0251922607421875, -0.0037174224853515625, -0.0311279296875, -0.01116180419921875, -0.05218505859375, -0.08135986328125, 0.063720703125, -0.000026345252990722656, -0.038116455078125, -0.01177978515625, -0.00048732757568359375, 0.0175018310546875, -0.0116424560546875, -0.0182952880859375, 0.03125, -0.06280517578125, -0.0197601318359375, 0.0256500244140625, 0.024810791015625, 0.0196075439453125, 0.0316162109375, 0.00890350341796875, 0.050628662109375, 0.04119873046875, -0.00801849365234375, -0.0213623046875, 0.0269622802734375, -0.018890380859375, 0.025115966796875, -0.035797119140625, -0.0014753341674804688, -0.0076751708984375, 0.0187530517578125, 0.0167388916015625, -0.042266845703125, -0.0338134765625, -0.02386474609375, 0.033447265625, 0.020660400390625, 0.019073486328125, -0.024688720703125, -0.033050537109375, -0.033599853515625, -0.024658203125, -0.024871826171875, 0.03314208984375, -0.0848388671875, 0.008636474609375, 0.005962371826171875, -0.00479888916015625, -0.01422119140625, -0.028076171875, -0.0477294921875, -0.0125579833984375, -0.048736572265625, -0.010711669921875, -0.040283203125, 0.0280914306640625, 0.016143798828125, -0.0151214599609375, 0.021270751953125, -0.01511383056640625, 0.006084442138671875, 0.016754150390625, -0.0237579345703125, -0.02679443359375, -0.060546875, 0.0115966796875, 0.054443359375, -0.02471923828125, 0.058380126953125, -0.0190277099609375, -0.035614013671875, -0.00252532958984375, 0.01215362548828125, 0.006317138671875, 0.01934814453125, 0.0010919570922851562, -0.017730712890625, -0.015777587890625, -0.0213623046875, -0.00693511962890625, 0.01104736328125, -0.0139923095703125, 0.052520751953125, -0.03143310546875, -0.01276397705078125, 0.0004744529724121094, -0.0579833984375, -0.01036834716796875, 0.0166015625, -0.021759033203125, -0.06292724609375, 0.036834716796875, -0.0704345703125, 0.0194091796875, 0.027740478515625 ]
c7a54b4ac800a30c59b20701fca65a4697e14781
Wordpress Stackexchange Q: WordPress Multisite Login Access I have a multisite installation and use an .htaccess directive to close access to wp-login.php. <files wp-login.php> errordocument 403 http://example.com/restricted/ order deny,allow deny from all </files> Is there a way that I can allow access to a specific individual site using another directive? I don't know how multisite generates those URLs, as I don't see an obvious rewrite rule. A: If you want to provide restricted access, you should add an additional string with the /wp-login.php URL. For example: http://example.com/wp-login.php?restricted_site_access=key_string If the URL does not have such a string parameter, then you can redirect them to a 404 page; you don't need to rewrite the .htaccess file for it.
Q: WordPress Multisite Login Access I have a multisite installation and use an .htaccess directive to close access to wp-login.php. <files wp-login.php> errordocument 403 http://example.com/restricted/ order deny,allow deny from all </files> Is there a way that I can allow access to a specific individual site using another directive? I don't know how multisite generates those URLs, as I don't see an obvious rewrite rule. A: If you want to provide restricted access, you should add an additional string with the /wp-login.php URL. For example: http://example.com/wp-login.php?restricted_site_access=key_string If the URL does not have such a string parameter, then you can redirect them to a 404 page; you don't need to rewrite the .htaccess file for it.
wordpress
{ "language": "en", "length": 114, "provenance": "stackexchange_00019.jsonl.gz:458613", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/200370" }
[ 0.064697265625, -0.004512786865234375, 0.01178741455078125, -0.019805908203125, 0.006313323974609375, -0.031463623046875, 0.056427001953125, -0.01142120361328125, -0.005588531494140625, 0.011688232421875, -0.01345062255859375, 0.0024471282958984375, -0.01690673828125, -0.0254364013671875, 0.0054473876953125, -0.02880859375, -0.0108642578125, 0.021453857421875, 0.04052734375, -0.011810302734375, 0.00920867919921875, -0.0025501251220703125, 0.004123687744140625, -0.021759033203125, -0.003314971923828125, -0.01175689697265625, 0.0911865234375, -0.02862548828125, 0.024749755859375, -0.013946533203125, 0.01128387451171875, -0.037689208984375, 0.0181427001953125, 0.052337646484375, -0.06787109375, -0.0272216796875, -0.01727294921875, 0.0121612548828125, -0.016693115234375, 0.046783447265625, 0.0347900390625, -0.00945281982421875, 0.00848388671875, 0.03851318359375, 0.0078582763671875, -0.055511474609375, 0.042999267578125, -0.061492919921875, 0.023101806640625, -0.01197052001953125, -0.01265716552734375, 0.036529541015625, -0.0007519721984863281, -0.0280303955078125, -0.0220947265625, -0.01214599609375, 0.046630859375, -0.01386260986328125, 0.027008056640625, -0.0305633544921875, -0.048675537109375, -0.0004096031188964844, 0.0286865234375, -0.00539398193359375, -0.0041351318359375, 0.0022068023681640625, -0.024200439453125, 0.020843505859375, 0.009796142578125, -0.005657196044921875, -0.00717926025390625, -0.01751708984375, 0.03460693359375, -0.0196075439453125, 0.00875091552734375, -0.006072998046875, -0.03533935546875, 0.01328277587890625, 0.043731689453125, -0.0234375, -0.00814056396484375, -0.042022705078125, -0.035675048828125, -0.01397705078125, -0.00551605224609375, 0.022247314453125, -0.008575439453125, -0.01142120361328125, -0.0076751708984375, 0.0232696533203125, -0.021942138671875, 0.031280517578125, 0.0038509368896484375, -0.002017974853515625, -0.021636962890625, -0.008514404296875, 0.019744873046875, 0.0200042724609375, 0.022003173828125, 0.0019321441650390625, -0.005359649658203125, -0.040252685546875, -0.032440185546875, 0.001293182373046875, -0.0128173828125, 0.058349609375, 0.0491943359375, 0.061004638671875, -0.000438690185546875, -0.003215789794921875, 0.01654052734375, 0.001873016357421875, -0.019195556640625, -0.05389404296875, -0.0248565673828125, 0.0202789306640625, -0.0252838134765625, -0.01392364501953125, 0.00963592529296875, -0.0408935546875, -0.052703857421875, -0.01275634765625, 0.004974365234375, -0.0081329345703125, -0.00286102294921875, -0.036224365234375, -0.0045928955078125, 0.0023479461669921875, -0.0147247314453125, 0.045745849609375, -0.0214080810546875, 0.00775909423828125, -0.01224517822265625, -0.0131683349609375, -0.0211639404296875, -0.0242919921875, 0.041351318359375, 0.0261383056640625, 0.00447845458984375, -0.004650115966796875, 0.0200347900390625, -0.0250244140625, -0.015869140625, -0.0023097991943359375, -0.0251312255859375, 0.019683837890625, 0.036041259765625, 0.021270751953125, -0.019195556640625, -0.04718017578125, -0.0208740234375, -0.0045166015625, 0.025848388671875, 0.0018892288208007812, 0.0182952880859375, -0.0308990478515625, 0.05157470703125, -0.03546142578125, -0.025909423828125, -0.0288848876953125, 0.00968170166015625, -0.01397705078125, 0.004337310791015625, -0.0182647705078125, -0.0175018310546875, -0.00865936279296875, -0.04302978515625, -0.0065155029296875, 0.0325927734375, 0.0159149169921875, -0.01580810546875, -0.048828125, 0.0126800537109375, 0.0396728515625, 0.011138916015625, 0.06024169921875, -0.019744873046875, 0.0308837890625, 0.01934814453125, 0.051788330078125, 0.01971435546875, -0.018402099609375, 0.0168914794921875, 0.03436279296875, -0.055023193359375, 0.0235443115234375, -0.013671875, 0.026580810546875, 0.01800537109375, 0.0004825592041015625, 0.043212890625, 0.009490966796875, -0.012176513671875, 0.00018966197967529297, -0.0206756591796875, -0.037200927734375, -0.0131378173828125, -0.00951385498046875, -0.0152435302734375, 0.00482177734375, 0.0229949951171875, -0.0184326171875, 0.0269622802734375, -0.01053619384765625, -0.005428314208984375, -0.0052032470703125, 0.0007371902465820312, 0.005924224853515625, -0.026214599609375, 0.00659942626953125, 0.022369384765625, 0.0245513916015625, -0.0321044921875, -0.036712646484375, -0.0112457275390625, 0.002063751220703125, -0.016937255859375, 0.09674072265625, 0.0056915283203125, 0.053070068359375, -0.00867462158203125, -0.07196044921875, 0.01293182373046875, -0.022064208984375, 0.0153350830078125, -0.0217437744140625, -0.01971435546875, -0.0132598876953125, 0.0219268798828125, -0.004058837890625, -0.00322723388671875, 0.024932861328125, 0.0267486572265625, 0.0257720947265625, -0.034454345703125, -0.007724761962890625, -0.017578125, -0.0604248046875, -0.0011882781982421875, 0.032623291015625, 0.03826904296875, 0.0219879150390625, -0.0126953125, -0.02264404296875, 0.02099609375, -0.07171630859375, 0.004413604736328125, -0.022308349609375, -0.0119476318359375, -0.004535675048828125, -0.0005183219909667969, -0.0257415771484375, 0.03875732421875, -0.033050537109375, -0.03314208984375, 0.046966552734375, -0.007659912109375, -0.039031982421875, -0.034515380859375, 0.015380859375, 0.022003173828125, -0.0269927978515625, -0.03814697265625, 0.006298065185546875, -0.02349853515625, -0.0297393798828125, 0.00974273681640625, 0.01129150390625, 0.0131988525390625, -0.039337158203125, 0.006984710693359375, -0.05010986328125, -0.00843048095703125, 0.03314208984375, 0.050445556640625, -0.007171630859375, -0.0213165283203125, -0.0271759033203125, -0.0163421630859375, 0.00922393798828125, -0.022369384765625, 0.0206756591796875, -0.0660400390625, -0.01500701904296875, 0.007419586181640625, -0.027587890625, -0.006938934326171875, -0.00815582275390625, 0.0265655517578125, -0.024383544921875, 0.00965118408203125, -0.00856781005859375, -0.035980224609375, 0.03387451171875, 0.016510009765625, -0.0560302734375, -0.0013332366943359375, -0.056488037109375, 0.0670166015625, -0.06903076171875, 0.01200103759765625, 0.052520751953125, -0.02947998046875, 0.0115966796875, -0.0020084381103515625, 0.0306243896484375, -0.012847900390625, 0.0241546630859375, 0.00824737548828125, -0.020965576171875, -0.033111572265625, 0.0014495849609375, 0.0177154541015625, -0.0248565673828125, 0.029754638671875, -0.00923919677734375, 0.0125885009765625, 0.01154327392578125, -0.035491943359375, -0.0506591796875, -0.038116455078125, -0.0462646484375, 0.034027099609375, -0.015625, -0.0226593017578125, -0.007305145263671875, 0.0185699462890625, 0.014312744140625, 0.002536773681640625, -0.003299713134765625, -0.055389404296875, -0.0287322998046875, -0.05609130859375, 0.01317596435546875, -0.01206207275390625, 0.0060272216796875, 0.012359619140625, 0.0328369140625, -0.00722503662109375, -0.004848480224609375, -0.00363922119140625, 0.003032684326171875, -0.0105438232421875, -0.059783935546875, -0.036590576171875, -0.0174102783203125, -0.004520416259765625, 0.002223968505859375, -0.0025844573974609375, -0.0141143798828125, 0.031951904296875, -0.00870513916015625, 0.003353118896484375, -0.0374755859375, 0.019927978515625, -0.01165771484375, -0.029449462890625, -0.0307769775390625, 0.00504302978515625, -0.058929443359375, 0.0173187255859375, -0.04339599609375, -0.041595458984375, -0.0263214111328125, 0.04010009765625, -0.01094818115234375, -0.0009946823120117188, -0.043304443359375, 0.034515380859375, 0.0036449432373046875, -0.0245361328125, -0.00878143310546875, 0.072021484375, 0.009490966796875, 0.0199432373046875, -0.0301055908203125, 0.0033092498779296875, -0.03375244140625, -0.036529541015625, -0.041107177734375, -0.02349853515625, -0.0298309326171875, -0.00865936279296875, -0.047119140625, -0.0306243896484375, 0.033111572265625, -0.04815673828125, 0.020050048828125, -0.07452392578125, -0.00444793701171875, -0.0704345703125, 0.05914306640625, -0.006744384765625, -0.0268096923828125, -0.0156402587890625, 0.020843505859375, -0.0021457672119140625, -0.04547119140625, 0.01209259033203125, -0.01476287841796875, -0.04638671875, -0.0171661376953125, -0.023284912109375, -0.031463623046875, 0.04229736328125, -0.08612060546875, 0.0167999267578125, -0.053466796875, 0.03448486328125, 0.0328369140625, 0.0190582275390625, 0.00949859619140625, 0.028564453125, -0.0230865478515625, 0.00621795654296875, -0.00229644775390625, -0.0207672119140625, -0.019561767578125, -0.0222320556640625, 0.0684814453125, 0.032684326171875, -0.005321502685546875, 0.0153350830078125, 0.0526123046875, -0.009490966796875, 0.0259246826171875, -0.028656005859375, -0.01227569580078125, 0.0144500732421875, 0.0211639404296875, -0.004322052001953125, 0.001407623291015625, -0.01302337646484375, -0.037017822265625, -0.0200958251953125, -0.0439453125, -0.03472900390625, -0.044769287109375, -0.0024566650390625, -0.010284423828125, -0.057525634765625, -0.038818359375, -0.0162353515625, -0.01401519775390625, -0.01433563232421875, -0.00794219970703125, -0.0237579345703125, -0.0447998046875, 0.04901123046875, 0.01470947265625, -0.0128936767578125, -0.0053558349609375, 0.040618896484375, 0.0111083984375, -0.038330078125, -0.026092529296875, 0.0279388427734375, 0.0104827880859375, -0.0299530029296875, 0.07867431640625, 0.02313232421875, 0.0169219970703125, 0.04595947265625, -0.0306396484375, -0.0131378173828125, 0.0058135986328125, -0.0023021697998046875, 0.01338958740234375, -0.032623291015625, -0.00203704833984375, -0.0063629150390625, 0.0090789794921875, 0.034271240234375, 0.0186309814453125, -0.033233642578125, -0.00577545166015625, 0.0265960693359375, 0.007183074951171875, -0.01287841796875, -0.0187225341796875, -0.05096435546875, 0.0271148681640625, -0.014007568359375, 0.0152435302734375, 0.033447265625, -0.009918212890625, 0.0263214111328125, 0.0009617805480957031, -0.01174163818359375, -0.004940032958984375, -0.01360321044921875, 0.01549530029296875, 0.006023406982421875, 0.0200653076171875, -0.00267791748046875, 0.005084991455078125, -0.02587890625, 0.0877685546875, 0.00978851318359375, -0.055145263671875, 0.041900634765625, -0.01392364501953125, 0.036224365234375, 0.0322265625, -0.02178955078125, 0.0240936279296875, -0.01508331298828125, -0.048614501953125, 0.00022923946380615234, -0.005458831787109375, -0.0723876953125, -0.052520751953125, -0.00551605224609375, -0.01091766357421875, -0.003154754638671875, 0.0126495361328125, 0.041778564453125, -0.032440185546875, 0.045166015625, -0.0025768280029296875, -0.00272369384765625, 0.07171630859375, 0.00864410400390625, 0.00952911376953125, 0.0189208984375, -0.03350830078125, 0.025726318359375, 0.03399658203125, -0.03472900390625, -0.041259765625, 0.0307464599609375, 0.04034423828125, 0.0163726806640625, 0.0177459716796875, -0.018798828125, 0.01262664794921875, -0.00919342041015625, 0.0494384765625, -0.0169525146484375, -0.0775146484375, -0.0186309814453125, 0.0257415771484375, 0.046478271484375, -0.033782958984375, 0.000032842159271240234, 0.006267547607421875, -0.0247955322265625, -0.01824951171875, 0.044891357421875, -0.054779052734375, -0.016204833984375, 0.003143310546875, -0.0213775634765625, -0.037078857421875, -0.034820556640625, -0.024505615234375, 0.0148468017578125, -0.0117645263671875, -0.0290985107421875, 0.0158843994140625, -0.004611968994140625, 0.032867431640625, -0.04595947265625, -0.01305389404296875, -0.00165557861328125, -0.004055023193359375, 0.0305328369140625, 0.0092620849609375, -0.046783447265625, 0.0037250518798828125, -0.0298614501953125, -0.0128936767578125, 0.0034198760986328125, -0.0084686279296875, -0.03765869140625, -0.0308837890625, 0.0034122467041015625, 0.0039520263671875, 0.0133209228515625, 0.0182952880859375, -0.0118408203125, -0.0007104873657226562, -0.0002071857452392578, -0.01451873779296875, -0.056121826171875, 0.06488037109375, 0.037384033203125, 0.00433349609375, 0.0181121826171875, 0.06903076171875, 0.048248291015625, -0.022918701171875, 0.030364990234375, -0.0546875, -0.040496826171875, -0.046173095703125, -0.0030498504638671875, 0.0171661376953125, 0.026641845703125, -0.01495361328125, 0.0079193115234375, -0.033721923828125, -0.008209228515625, -0.0166778564453125, 0.025360107421875, -0.020751953125, 0.01232147216796875, -0.0108795166015625, 0.01654052734375, 0.08905029296875, -0.044525146484375, -0.0206298828125, 0.016082763671875, -0.022705078125, 0.039337158203125, 0.03350830078125, -0.0267486572265625, 0.031341552734375, 0.11962890625, 0.020782470703125, 0.07318115234375, 0.033966064453125, 0.0236358642578125, 0.057586669921875, -0.010101318359375, -0.0150604248046875, -0.019927978515625, 0.032623291015625, 0.000736236572265625, -0.031951904296875, 0.0229339599609375, -0.018890380859375, 0.0200653076171875, 0.0732421875, 0.057464599609375, -0.115966796875, 0.0201263427734375, -0.01476287841796875, -0.004367828369140625, 0.03277587890625, 0.0225982666015625, -0.00980377197265625, 0.0114898681640625, -0.009063720703125, -0.0090484619140625, -0.00962066650390625, 0.01456451416015625, 0.037384033203125, 0.0075531005859375, 0.0197601318359375, 0.036407470703125, 0.01119232177734375, -0.0291290283203125, -0.014678955078125, 0.0075225830078125, 0.03173828125, -0.004215240478515625, -0.0229949951171875, -0.00122833251953125, -0.0433349609375, -0.03265380859375, -0.0177001953125, -0.034820556640625, 0.007965087890625, 0.0008611679077148438, -0.009521484375, 0.00583648681640625, 0.05181884765625, -0.0269622802734375, 0.0139312744140625, 0.01557159423828125, 0.0137786865234375, 0.053680419921875, -0.00855255126953125, -0.00036072731018066406, -0.019744873046875, -0.0157318115234375, -0.002986907958984375, -0.0012979507446289062, -0.02593994140625, -0.0004222393035888672, -0.0022029876708984375, 0.042083740234375, -0.0283050537109375, -0.005367279052734375, 0.036956787109375, 0.0202484130859375, -0.00992584228515625, 0.0243682861328125, -0.0014362335205078125, -0.0667724609375, -0.05914306640625, 0.01253509521484375, -0.06353759765625, 0.040435791015625, 0.03204345703125, -0.052154541015625, 0.0654296875, -0.0146331787109375, 0.03131103515625, 0.038177490234375, 0.020263671875, -0.044677734375, -0.0004286766052246094, -0.017791748046875, 0.032867431640625, 0.0283050537109375, 0.01108551025390625, -0.0048828125, -0.0102691650390625, 0.02569580078125, 0.03204345703125, 0.07574462890625, 0.032379150390625, -0.09490966796875, -0.024871826171875, -0.0004978179931640625, 0.0156707763671875, 0.0048065185546875, 0.086669921875, -0.00200653076171875, 0.041229248046875, 0.01522064208984375, -0.06536865234375, 0.00021731853485107422, -0.005046844482421875, -0.0196685791015625, 0.018585205078125, -0.0209808349609375, -0.07940673828125, -0.001399993896484375, -0.0133514404296875, -0.134033203125, 0.0489501953125, 0.055023193359375, 0.063232421875, -0.0135498046875, 0.048065185546875, 0.01197052001953125, 0.0041961669921875, 0.030792236328125, -0.04974365234375, 0.04541015625, -0.00080108642578125, -0.004878997802734375, 0.0200958251953125, 0.0259246826171875, -0.007198333740234375, 0.01003265380859375, -0.0005993843078613281, 0.031402587890625, -0.026031494140625, 0.0164642333984375, 0.028289794921875, 0.0226287841796875, -0.0258026123046875, -0.008697509765625, 0.058197021484375, 0.04736328125, -0.0172576904296875, -0.004535675048828125, 0.0007371902465820312, 0.003360748291015625, 0.0135345458984375, 0.01812744140625, 0.066650390625, 0.035064697265625, 0.020294189453125, -0.02166748046875, 0.02691650390625, 0.02313232421875, -0.01113128662109375, -0.00843048095703125, 0.01873779296875, -0.0191650390625, 0.033599853515625, -0.0223846435546875, -0.00899505615234375, 0.00797271728515625, 0.02484130859375, -0.005802154541015625, 0.05694580078125, -0.0136871337890625, -0.00045037269592285156, -0.018218994140625, 0.06512451171875, -0.02392578125, 0.0156097412109375, -0.037994384765625, -0.07080078125, -0.0021800994873046875, 0.051361083984375, 0.0227203369140625, 0.00449371337890625, 0.01197052001953125, 0.0106964111328125, -0.0204315185546875, -0.00324249267578125, 0.00281524658203125, -0.0196533203125, 0.04937744140625, -0.0167694091796875, 0.006374359130859375, -0.00970458984375, -0.0428466796875, -0.031829833984375, 0.00934600830078125, 0.004886627197265625, -0.00440216064453125, 0.058074951171875, -0.004924774169921875, 0.004070281982421875, 0.01056671142578125, -0.044097900390625, 0.0200958251953125, -0.0223388671875, -0.03460693359375, 0.0185394287109375, -0.0233001708984375, -0.0693359375, 0.0128631591796875, 0.0421142578125, -0.015716552734375, -0.00572967529296875, -0.0039043426513671875, 0.01189422607421875, 0.0169677734375, -0.047088623046875, 0.0166015625, -0.01541900634765625, 0.0228118896484375, 0.0026836395263671875, -0.07574462890625, -0.0246734619140625, -0.0007219314575195312, 0.0259857177734375, 0.00026226043701171875, 0.057464599609375, -0.0109405517578125, 0.01207733154296875, 0.0207061767578125, 0.0041351318359375, 0.0005583763122558594, 0.00910186767578125, 0.01056671142578125, -0.00447845458984375, 0.0023059844970703125, -0.006603240966796875, -0.030242919921875, 0.09454345703125, -0.032196044921875, 0.024566650390625, 0.07000732421875, -0.0290069580078125, -0.0092010498046875, 0.020263671875, 0.038116455078125, -0.0244293212890625, -0.08197021484375, -0.0750732421875, 0.0131378173828125, 0.019561767578125, 0.031768798828125, -0.0222015380859375, 0.03619384765625, -0.041839599609375, -0.00698089599609375, -0.0012683868408203125, -0.0472412109375, -0.01776123046875, 0.0180511474609375, -0.0258026123046875, -0.01049041748046875, 0.0007872581481933594, -0.01666259765625, -0.009490966796875, 0.00589752197265625, -0.005985260009765625, -0.0001379251480102539, -0.006885528564453125, 0.01959228515625, 0.031524658203125, 0.053985595703125, 0.033233642578125, 0.0101165771484375, -0.0156402587890625, -0.024932861328125, 0.00911712646484375, -0.02996826171875, -0.0533447265625, -0.04595947265625, 0.0020885467529296875, 0.01392364501953125, -0.0233154296875, -0.05047607421875, -0.06378173828125, 0.0199432373046875, 0.04193115234375, -0.00583648681640625, -0.06158447265625, 0.03826904296875, -0.037109375, 0.06829833984375, -0.018280029296875, -0.00140380859375, -0.016204833984375, -0.0005078315734863281, -0.01497650146484375, -0.005176544189453125, -0.054229736328125, 0.00952911376953125, -0.0087738037109375, 0.00415802001953125, 0.0340576171875, -0.01018524169921875, 0.054473876953125, -0.0244140625, -0.024627685546875, 0.0294036865234375, -0.059173583984375, -0.0006313323974609375, 0.014434814453125, -0.01560211181640625, -0.0267486572265625, -0.042266845703125, 0.01047515869140625, -0.037017822265625, -0.041015625, 0.015960693359375, -0.035400390625, -0.0258026123046875, -0.055816650390625, -0.06549072265625, 0.058380126953125, -0.0026836395263671875, -0.03515625, -0.06298828125, -0.01090240478515625, -0.0002567768096923828, 0.04193115234375, -0.0253143310546875, 0.004398345947265625, -0.0360107421875, 0.038665771484375, 0.00896453857421875, -0.002124786376953125, -0.015869140625, 0.054229736328125, -0.0144500732421875, 0.058868408203125, 0.0521240234375, -0.01236724853515625, 0.0030994415283203125, -0.011962890625, 0.042938232421875, 0.07281494140625, 0.01140594482421875, 0.01189422607421875, 0.01235198974609375, -0.05670166015625, 0.000048220157623291016, 0.00667572021484375, -0.024322509765625, -0.0285186767578125, -0.0166473388671875, 0.0751953125, -0.0063629150390625, -0.0006198883056640625, -0.0124969482421875, -0.044677734375, -0.0321044921875, -0.037353515625, 0.0255279541015625, -0.08154296875, -0.016326904296875, 0.0159912109375, -0.0304107666015625, 0.01458740234375, 0.0277862548828125, -0.053741455078125, 0.0357666015625, 0.0245208740234375, -0.0218353271484375, -0.048675537109375, 0.03460693359375, 0.066650390625, -0.0528564453125, -0.003513336181640625, -0.0234222412109375, 0.00009340047836303711, 0.00989532470703125, -0.06689453125, -0.0079345703125, 0.01727294921875, -0.0245819091796875, -0.006511688232421875, 0.0124053955078125, 0.011962890625, -0.0030670166015625, -0.0084381103515625, -0.0439453125, 0.022003173828125, 0.01214599609375, 0.046356201171875, 0.01290130615234375, 0.01340484619140625, 0.036468505859375, 0.00494384765625, -0.0254974365234375, 0.00817108154296875, -0.024566650390625, 0.0282135009765625, 0.028167724609375, -0.0114593505859375, 0.05133056640625, -0.0226593017578125, 0.0113677978515625, 0.038177490234375, 0.03240966796875, -0.016082763671875, 0.031585693359375, -0.01074981689453125, 0.036590576171875, 0.01380157470703125 ]
f6cd2cc3a55dbf00d048d605e190be122a985eb3
Wordpress Stackexchange Q: How do I use WP's jQuery I am trying to learn WP theme development. And I just learned that WP already has a jQuery version included. Until now I have been using the jQuery from Google's CDN. So I just now deleted the CDN link from my code. And of course all my jQuery code stopped working. So I guess I am missing something. What do I need to do if I want to use WordPress's local jQuery? When I search SE QA and Google all I can find is how to un-register the local jQuery version and then register CDN. But that is not what I want to do. I want to use the local jQuery. So what am I missing? A: WP's jQuery is not mapped to $ like you may expect, it is loaded in noConflict mode so you'll need to use jQuery() instead of $(), unless you map it yourself. When you include your js file you'll want to make sure to set jQuery as a dependency as well: wp_enqueue_script( 'your-script-handle', get_stylesheet_directory_uri() . '/js/your-script.js', array( 'jquery' ), '1.0.0' );
Q: How do I use WP's jQuery I am trying to learn WP theme development. And I just learned that WP already has a jQuery version included. Until now I have been using the jQuery from Google's CDN. So I just now deleted the CDN link from my code. And of course all my jQuery code stopped working. So I guess I am missing something. What do I need to do if I want to use WordPress's local jQuery? When I search SE QA and Google all I can find is how to un-register the local jQuery version and then register CDN. But that is not what I want to do. I want to use the local jQuery. So what am I missing? A: WP's jQuery is not mapped to $ like you may expect, it is loaded in noConflict mode so you'll need to use jQuery() instead of $(), unless you map it yourself. When you include your js file you'll want to make sure to set jQuery as a dependency as well: wp_enqueue_script( 'your-script-handle', get_stylesheet_directory_uri() . '/js/your-script.js', array( 'jquery' ), '1.0.0' ); A: In order to enqueue jQuery from WP-installation you can: function custom_enqueue_scripts() { // Jquery enqueue wp_enqueue_script('jquery'); } add_action('wp_enqueue_scripts', 'custom_enqueue_scripts'); Additionally, using this trick you can enqueue jQuery into footer (wp_footer) function custom_enqueue_scripts() { // Jquery - to the footer of template wp_deregister_script('jquery'); wp_register_script('jquery', includes_url('/js/jquery/jquery.js'), false, NULL, true); wp_enqueue_script('jquery'); } add_action('wp_enqueue_scripts', 'custom_enqueue_scripts'); UPDATE Expanding the answer. Using wp_register_script you can register your custom scripts. After, they can be wp_enqueue_script by the $handler. Generally it grant a benefit of code length reduction [Related Answer], but I'd like to emphasize your attention on WordPress pre-registered scripts (local in your meaning). Visit this Codex Page [Handles and Their Script Paths Registered by WordPress]. There you will find a $handler's for jQuery UI and other usefull stuff, that you can enqueue as on example above.
wordpress
{ "language": "en", "length": 315, "provenance": "stackexchange_00019.jsonl.gz:458637", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/200468" }
[ -0.00554656982421875, 0.0062255859375, -0.058929443359375, -0.004871368408203125, 0.029022216796875, -0.043792724609375, 0.046783447265625, 0.00878143310546875, -0.000946044921875, 0.00911712646484375, -0.036590576171875, -0.0004603862762451172, -0.005767822265625, -0.00630950927734375, 0.004730224609375, -0.03546142578125, 0.07110595703125, -0.057464599609375, -0.0155181884765625, -0.003143310546875, -0.02392578125, 0.035858154296875, 0.017791748046875, 0.11920166015625, 0.055389404296875, -0.040924072265625, 0.0970458984375, -0.01412200927734375, 0.0496826171875, -0.006824493408203125, 0.049652099609375, -0.033447265625, -0.001613616943359375, 0.01629638671875, -0.005405426025390625, -0.02032470703125, 0.002124786376953125, 0.025238037109375, 0.02105712890625, -0.0011043548583984375, 0.0233001708984375, -0.02215576171875, -0.0192718505859375, 0.01372528076171875, -0.0096282958984375, -0.037017822265625, 0.02667236328125, -0.03460693359375, -0.0154571533203125, -0.000713348388671875, 0.012847900390625, -0.0211181640625, 0.02923583984375, -0.038909912109375, 0.0008254051208496094, 0.0131378173828125, -0.0007238388061523438, -0.010986328125, 0.037109375, 0.050811767578125, -0.021942138671875, -0.023529052734375, 0.000957489013671875, -0.07806396484375, -0.00199127197265625, -0.00403594970703125, -0.0241851806640625, 0.0033550262451171875, -0.03887939453125, 0.0261688232421875, 0.042938232421875, -0.04010009765625, 0.0017604827880859375, -0.020477294921875, -0.007579803466796875, -0.029632568359375, 0.0189361572265625, -0.0192108154296875, -0.0040130615234375, -0.005096435546875, 0.01544189453125, 0.0228424072265625, -0.060394287109375, -0.02374267578125, 0.046478271484375, 0.042144775390625, -0.0092315673828125, -0.041656494140625, -0.040802001953125, -0.0224761962890625, -0.032318115234375, -0.034942626953125, -0.039337158203125, -0.0032978057861328125, -0.01079559326171875, 0.0162200927734375, 0.0152740478515625, 0.024078369140625, 0.0084686279296875, 0.00894927978515625, 0.023284912109375, -0.04290771484375, 0.03875732421875, -0.0117340087890625, -0.003887176513671875, 0.03350830078125, 0.025543212890625, 0.056549072265625, 0.01116943359375, 0.01025390625, -0.01611328125, -0.0150909423828125, 0.0222320556640625, -0.0114288330078125, -0.00470733642578125, 0.00684356689453125, -0.007511138916015625, 0.0214385986328125, 0.0016222000122070312, 0.01102447509765625, 0.01338958740234375, 0.0386962890625, -0.0386962890625, -0.00508880615234375, 0.02685546875, 0.034454345703125, 0.012420654296875, -0.0452880859375, 0.01073455810546875, 0.006561279296875, -0.03863525390625, 0.01073455810546875, 0.075439453125, 0.01441192626953125, 0.0022830963134765625, -0.0234375, 0.04119873046875, -0.0212554931640625, 0.018310546875, -0.0177459716796875, 0.0160980224609375, 0.0231170654296875, 0.035888671875, -0.01593017578125, 0.0023288726806640625, -0.0170135498046875, 0.00829315185546875, 0.048095703125, 0.0201873779296875, -0.0196685791015625, 0.06182861328125, -0.01435089111328125, 0.047760009765625, 0.0248565673828125, 0.008636474609375, -0.020294189453125, 0.1044921875, -0.056365966796875, -0.036956787109375, -0.07635498046875, 0.0019588470458984375, 0.01904296875, 0.01258087158203125, -0.00229644775390625, 0.006694793701171875, -0.03155517578125, 0.0113372802734375, 0.01062774658203125, 0.0267333984375, 0.043975830078125, -0.00826263427734375, -0.06561279296875, -0.0010766983032226562, 0.01557159423828125, -0.0098419189453125, 0.041259765625, -0.01451873779296875, 0.020263671875, 0.0443115234375, 0.00012576580047607422, -0.008575439453125, -0.0189056396484375, 0.08526611328125, -0.0254364013671875, -0.0268707275390625, -0.0170745849609375, 0.03521728515625, 0.041015625, -0.018218994140625, 0.038055419921875, 0.038909912109375, 0.024505615234375, -0.03472900390625, 0.0213623046875, 0.0018548965454101562, -0.005970001220703125, -0.02734375, 0.01189422607421875, -0.006984710693359375, -0.0198516845703125, 0.033660888671875, -0.0010318756103515625, 0.012481689453125, -0.033447265625, -0.0555419921875, 0.00240325927734375, -0.0277862548828125, 0.0506591796875, -0.00879669189453125, -0.005279541015625, 0.0082244873046875, -0.01294708251953125, -0.00774383544921875, -0.046661376953125, -0.035552978515625, 0.0084686279296875, -0.054962158203125, 0.047027587890625, -0.006885528564453125, 0.023834228515625, 0.01837158203125, -0.0443115234375, 0.018218994140625, 0.011138916015625, 0.0217742919921875, -0.0018377304077148438, -0.0283660888671875, -0.028533935546875, -0.02215576171875, 0.0021991729736328125, -0.05059814453125, 0.0635986328125, 0.010101318359375, 0.03936767578125, -0.01163482666015625, -0.006511688232421875, 0.0079803466796875, -0.002716064453125, 0.0013818740844726562, 0.016326904296875, 0.037567138671875, 0.029052734375, -0.013427734375, -0.0213623046875, 0.044342041015625, -0.0675048828125, 0.0095062255859375, -0.01273345947265625, -0.0186309814453125, -0.006717681884765625, -0.005901336669921875, 0.006252288818359375, 0.0240020751953125, -0.0626220703125, -0.0134124755859375, 0.055633544921875, 0.00782012939453125, 0.039215087890625, -0.0116424560546875, -0.00847625732421875, -0.003650665283203125, -0.046295166015625, -0.04193115234375, -0.01727294921875, 0.03131103515625, -0.011383056640625, 0.0170745849609375, 0.01306915283203125, 0.01367950439453125, -0.0165252685546875, -0.002132415771484375, -0.0794677734375, 0.006732940673828125, 0.04681396484375, -0.00452423095703125, 0.044921875, -0.05682373046875, -0.004116058349609375, 0.0264434814453125, 0.0380859375, -0.027862548828125, -0.01910400390625, 0.00760650634765625, -0.00447845458984375, 0.0195159912109375, -0.042938232421875, 0.036285400390625, -0.0012731552124023438, 0.0301055908203125, 0.036407470703125, 0.056182861328125, -0.0011377334594726562, -0.0128021240234375, 0.01461029052734375, -0.0001710653305053711, -0.0243072509765625, 0.0675048828125, -0.00011080503463745117, 0.0037784576416015625, -0.01580810546875, 0.050750732421875, 0.037445068359375, -0.01788330078125, 0.011688232421875, 0.00997161865234375, 0.0230865478515625, 0.044525146484375, -0.0183258056640625, -0.007198333740234375, 0.01922607421875, -0.08111572265625, -0.02777099609375, 0.012939453125, 0.006038665771484375, 0.0035419464111328125, -0.039031982421875, -0.024322509765625, -0.0023632049560546875, -0.15087890625, -0.1343994140625, -0.052337646484375, -0.09326171875, 0.0594482421875, 0.01313018798828125, -0.0288543701171875, -0.0189971923828125, 0.0682373046875, 0.034454345703125, -0.0143585205078125, -0.0367431640625, -0.0282135009765625, -0.074462890625, -0.0665283203125, -0.0279541015625, 0.00934600830078125, 0.0030307769775390625, 0.0157012939453125, -0.009124755859375, 0.011016845703125, -0.029876708984375, 0.01093292236328125, 0.058074951171875, -0.00499725341796875, 0.00579071044921875, 0.0216827392578125, -0.0279541015625, -0.00927734375, 0.0171661376953125, -0.0232391357421875, 0.0015897750854492188, -0.011322021484375, -0.03472900390625, -0.02001953125, -0.0176239013671875, 0.020538330078125, 0.056304931640625, -0.0128631591796875, -0.023956298828125, 0.0533447265625, -0.044403076171875, -0.01276397705078125, -0.00841522216796875, -0.032958984375, 0.0126190185546875, 0.0013017654418945312, -0.0074615478515625, -0.01256561279296875, 0.0221099853515625, 0.047943115234375, 0.0018796920776367188, 0.00962066650390625, -0.008636474609375, 0.0771484375, 0.01983642578125, 0.04205322265625, -0.055084228515625, 0.026458740234375, -0.048248291015625, 0.00951385498046875, 0.0030803680419921875, -0.027923583984375, 0.0068817138671875, -0.044525146484375, -0.000110626220703125, -0.0350341796875, 0.033660888671875, 0.016845703125, 0.0128631591796875, -0.0083465576171875, -0.0242156982421875, 0.01404571533203125, 0.05682373046875, 0.0031299591064453125, -0.004833221435546875, -0.0188140869140625, -0.0053558349609375, -0.0411376953125, -0.01371002197265625, -0.057403564453125, 0.006778717041015625, -0.06610107421875, 0.02069091796875, -0.01294708251953125, -0.016143798828125, -0.0034084320068359375, 0.01447296142578125, -0.024444580078125, -0.041748046875, 0.02984619140625, -0.061309814453125, -0.0238037109375, 0.00397491455078125, -0.045196533203125, -0.036590576171875, -0.00753021240234375, -0.03485107421875, -0.0716552734375, -0.01360321044921875, -0.04248046875, 0.0703125, 0.044219970703125, -0.0362548828125, 0.0045623779296875, 0.0521240234375, 0.006786346435546875, 0.044036865234375, 0.01153564453125, 0.0128173828125, 0.00429534912109375, -0.02093505859375, 0.01507568359375, -0.0207366943359375, 0.007701873779296875, 0.0028171539306640625, -0.0648193359375, -0.00109100341796875, -0.0131072998046875, 0.033538818359375, 0.031524658203125, -0.027923583984375, -0.0275726318359375, -0.0281524658203125, -0.05059814453125, 0.0081939697265625, -0.002941131591796875, -0.019256591796875, -0.030487060546875, -0.041046142578125, 0.03839111328125, 0.013397216796875, 0.01284027099609375, -0.00540924072265625, 0.042572021484375, 0.003520965576171875, -0.027984619140625, -0.01215362548828125, -0.01302337646484375, 0.022125244140625, 0.02423095703125, 0.061614990234375, 0.0034618377685546875, -0.00955963134765625, 0.071044921875, 0.020660400390625, 0.0224151611328125, -0.01143646240234375, 0.05145263671875, 0.0007147789001464844, -0.00909423828125, 0.0189971923828125, 0.016998291015625, -0.042724609375, -0.01303863525390625, 0.005184173583984375, -0.0188751220703125, 0.05902099609375, 0.019134521484375, -0.04095458984375, 0.0250091552734375, 0.0035343170166015625, -0.03253173828125, 0.004352569580078125, -0.08245849609375, 0.09857177734375, 0.045989990234375, -0.0115966796875, 0.06488037109375, 0.05718994140625, -0.0219573974609375, 0.0259552001953125, 0.0223388671875, -0.004364013671875, 0.00348663330078125, 0.05267333984375, -0.024505615234375, -0.01409912109375, -0.024566650390625, 0.08056640625, 0.043121337890625, -0.018096923828125, 0.00199127197265625, -0.0011205673217773438, 0.047332763671875, -0.020965576171875, 0.0210418701171875, 0.0278472900390625, 0.0318603515625, -0.01494598388671875, -0.0175018310546875, 0.006008148193359375, 0.004070281982421875, -0.0450439453125, 0.0177459716796875, 0.022125244140625, -0.004711151123046875, -0.0095062255859375, 0.05841064453125, 0.039581298828125, 0.01052093505859375, -0.0182952880859375, 0.04595947265625, -0.0028514862060546875, 0.051422119140625, 0.01349639892578125, -0.02313232421875, 0.00235748291015625, 0.01220703125, -0.035675048828125, -0.019561767578125, -0.0390625, 0.0260162353515625, 0.025543212890625, -0.03271484375, 0.014495849609375, 0.003391265869140625, 0.00481414794921875, -0.016021728515625, 0.002025604248046875, -0.005825042724609375, -0.0158538818359375, -0.0147552490234375, -0.007671356201171875, 0.0263824462890625, 0.0189666748046875, 0.0081787109375, 0.0323486328125, -0.0012655258178710938, 0.01922607421875, 0.01424407958984375, -0.0011739730834960938, -0.0189056396484375, -0.02642822265625, 0.0364990234375, 0.0031147003173828125, 0.005947113037109375, -0.05810546875, -0.002582550048828125, -0.0330810546875, -0.00844573974609375, 0.05657958984375, -0.0196075439453125, 0.007404327392578125, -0.0171661376953125, 0.00661468505859375, -0.06060791015625, 0.00443267822265625, 0.0672607421875, 0.059814453125, -0.0350341796875, -0.031494140625, -0.0595703125, -0.028656005859375, -0.036529541015625, -0.02020263671875, -0.046661376953125, 0.0286712646484375, -0.016143798828125, -0.00914764404296875, -0.01172637939453125, -0.016265869140625, -0.033782958984375, 0.0270233154296875, 0.022216796875, -0.005645751953125, -0.023468017578125, 0.0740966796875, 0.0156402587890625, 0.01800537109375, 0.0133514404296875, 0.03277587890625, -0.0082244873046875, -0.0233306884765625, -0.002918243408203125, -0.0699462890625, -0.01251220703125, 0.0135498046875, -0.037872314453125, 0.0321044921875, 0.045501708984375, 0.0110626220703125, 0.05096435546875, -0.0239105224609375, -0.007297515869140625, -0.01171875, 0.0269622802734375, -0.023529052734375, 0.04730224609375, 0.037689208984375, -0.01666259765625, 0.01557159423828125, 0.0007224082946777344, -0.0256805419921875, 0.023773193359375, -0.0283355712890625, 0.011688232421875, 0.0303497314453125, -0.0240631103515625, 0.0300750732421875, 0.0310211181640625, -0.0034580230712890625, 0.025390625, 0.0229339599609375, 0.003383636474609375, 0.0008969306945800781, 0.03863525390625, -0.052734375, -0.0286712646484375, 0.0308074951171875, 0.005916595458984375, -0.022552490234375, 0.023040771484375, -0.0114898681640625, -0.007572174072265625, 0.04998779296875, 0.037994384765625, -0.057037353515625, -0.002105712890625, -0.01904296875, -0.043060302734375, -0.0022182464599609375, -0.00453948974609375, -0.006496429443359375, -0.000988006591796875, 0.026458740234375, 0.00789642333984375, -0.0090789794921875, 0.0152130126953125, 0.016876220703125, -0.0191802978515625, -0.01258087158203125, -0.0162353515625, 0.00267791748046875, -0.0467529296875, 0.01397705078125, 0.033599853515625, -0.0011224746704101562, -0.018035888671875, 0.003021240234375, 0.019561767578125, -0.0232696533203125, -0.038360595703125, 0.0298309326171875, -0.015380859375, -0.007625579833984375, -0.01155853271484375, 0.0247955322265625, 0.005702972412109375, 0.04351806640625, -0.016754150390625, 0.006595611572265625, 0.0124969482421875, 0.0171051025390625, 0.011383056640625, -0.039794921875, 0.011627197265625, -0.00365447998046875, -0.058258056640625, 0.01212310791015625, -0.00963592529296875, -0.02874755859375, -0.00423431396484375, 0.01117706298828125, 0.052886962890625, -0.0146331787109375, -0.022369384765625, 0.02734375, 0.031524658203125, -0.006893157958984375, -0.0243377685546875, -0.000324249267578125, -0.046478271484375, -0.0022029876708984375, -0.00002658367156982422, -0.0207061767578125, -0.011474609375, -0.050445556640625, -0.00946044921875, 0.09747314453125, -0.01605224609375, -0.0200347900390625, 0.0173187255859375, 0.051483154296875, -0.0163116455078125, 0.054718017578125, -0.023162841796875, 0.025543212890625, -0.035125732421875, 0.0182342529296875, -0.01403045654296875, 0.01381683349609375, -0.0064697265625, -0.01532745361328125, 0.004657745361328125, 0.00031638145446777344, 0.0162200927734375, -0.023681640625, -0.0027313232421875, 0.0853271484375, 0.003040313720703125, -0.0285797119140625, -0.009033203125, 0.01611328125, 0.01055908203125, -0.0292205810546875, 0.0235137939453125, -0.0203857421875, -0.033447265625, 0.0126800537109375, 0.021575927734375, 0.016204833984375, 0.014739990234375, -0.018646240234375, -0.039154052734375, 0.026336669921875, 0.0278472900390625, 0.035491943359375, -0.0209808349609375, 0.05364990234375, -0.005268096923828125, 0.00708770751953125, -0.035491943359375, -0.022979736328125, 0.0236053466796875, -0.00518798828125, 0.002529144287109375, -0.008758544921875, 0.0143280029296875, 0.00740814208984375, 0.00992584228515625, -0.01033782958984375, 0.042083740234375, -0.022705078125, 0.033111572265625, 0.01702880859375, 0.0312347412109375, -0.0455322265625, -0.023834228515625, 0.034423828125, 0.047576904296875, -0.03424072265625, -0.03515625, 0.0002187490463256836, 0.01416015625, 0.018829345703125, -0.0114898681640625, 0.033660888671875, -0.003543853759765625, 0.0260467529296875, 0.0190582275390625, -0.025238037109375, 0.00044035911560058594, -0.0021915435791015625, 0.01454925537109375, 0.028961181640625, 0.025360107421875, 0.01171875, -0.03533935546875, -0.0029468536376953125, 0.03033447265625, 0.04852294921875, -0.0140380859375, 0.0546875, -0.018646240234375, -0.0151519775390625, 0.0192108154296875, 0.0011472702026367188, 0.023712158203125, -0.02984619140625, -0.0011510848999023438, -0.0088958740234375, 0.0235595703125, 0.0108489990234375, -0.00463104248046875, 0.0059661865234375, 0.0291290283203125, 0.03485107421875, -0.02325439453125, -0.0214385986328125, 0.03729248046875, -0.01898193359375, 0.006488800048828125, -0.0047607421875, 0.0231170654296875, 0.0006871223449707031, -0.00556182861328125, -0.038482666015625, 0.073486328125, 0.0016374588012695312, -0.04205322265625, 0.037933349609375, -0.002410888671875, -0.040771484375, 0.034149169921875, -0.00046443939208984375, 0.111328125, 0.004093170166015625, -0.0274505615234375, -0.01316070556640625, -0.0062408447265625, -0.0230865478515625, 0.029541015625, 0.0270233154296875, -0.0004322528839111328, 0.0211334228515625, 0.029144287109375, -0.02734375, 0.0439453125, -0.0015506744384765625, 0.00780487060546875, -0.037811279296875, 0.0200958251953125, -0.01366424560546875, 0.00897216796875, 0.01389312744140625, 0.0177154541015625, 0.009674072265625, 0.00909423828125, 0.007091522216796875, -0.001575469970703125, 0.0182037353515625, 0.03839111328125, 0.01282501220703125, 0.012725830078125, 0.019622802734375, -0.0081939697265625, -0.0033016204833984375, 0.026763916015625, -0.0158538818359375, -0.0426025390625, 0.0570068359375, -0.016845703125, -0.004459381103515625, 0.038421630859375, -0.0030803680419921875, -0.007389068603515625, 0.00726318359375, 0.039642333984375, -0.032012939453125, -0.033966064453125, -0.043670654296875, -0.01209259033203125, 0.016357421875, 0.018341064453125, 0.0165252685546875, -0.019927978515625, 0.000720977783203125, -0.043731689453125, 0.00820159912109375, -0.001499176025390625, -0.025787353515625, 0.011199951171875, 0.038665771484375, -0.00627899169921875, 0.0572509765625, -0.0001558065414428711, -0.00449371337890625, 0.0303497314453125, 0.01068878173828125, 0.016357421875, -0.05072021484375, 0.0108489990234375, 0.0233154296875, 0.029571533203125, 0.0068511962890625, 0.005779266357421875, -0.0005373954772949219, -0.01468658447265625, -0.027313232421875, 0.00004667043685913086, -0.0284881591796875, -0.03558349609375, 0.0130767822265625, 0.0301361083984375, -0.0169525146484375, -0.00000476837158203125, -0.0535888671875, 0.00675201416015625, 0.03265380859375, 0.0166168212890625, -0.076171875, 0.04144287109375, -0.0215606689453125, 0.057037353515625, -0.031463623046875, 0.0218048095703125, -0.031005859375, -0.0038738250732421875, -0.01556396484375, -0.0242767333984375, -0.0511474609375, 0.0212249755859375, -0.0243072509765625, 0.04638671875, 0.040313720703125, -0.04052734375, 0.0175323486328125, 0.043609619140625, 0.04833984375, 0.09613037109375, 0.003398895263671875, -0.013641357421875, -0.0109405517578125, 0.038238525390625, -0.0025806427001953125, -0.0521240234375, -0.0023193359375, -0.0328369140625, 0.0201416015625, -0.05755615234375, 0.0256500244140625, 0.0290069580078125, -0.03662109375, -0.09765625, 0.036773681640625, -0.0321044921875, -0.02923583984375, -0.028411865234375, -0.004398345947265625, 0.018646240234375, -0.04754638671875, -0.026641845703125, -0.03759765625, -0.0390625, 0.0229949951171875, 0.0035533905029296875, 0.050018310546875, 0.0013589859008789062, -0.01308441162109375, -0.022369384765625, -0.00121307373046875, -0.013427734375, 0.032073974609375, -0.0181121826171875, 0.0019931793212890625, 0.00841522216796875, 0.029815673828125, -0.0196075439453125, -0.01136016845703125, 0.0081634521484375, -0.0018138885498046875, 0.0011281967163085938, -0.0181884765625, -0.0201873779296875, -0.024688720703125, 0.05987548828125, -0.0085296630859375, 0.0103759765625, 0.01461029052734375, -0.021759033203125, -0.030059814453125, 0.0019435882568359375, 0.0008792877197265625, 0.0024051666259765625, -0.033599853515625, 0.0174407958984375, -0.005405426025390625, -0.018951416015625, -0.0189056396484375, -0.0122528076171875, -0.0555419921875, -0.00762939453125, -0.0753173828125, -0.02490234375, -0.034271240234375, -0.0018787384033203125, 0.09124755859375, -0.028045654296875, 0.046844482421875, 0.01174163818359375, 0.005344390869140625, 0.08648681640625, 0.049652099609375, 0.00966644287109375, 0.0303802490234375, -0.037200927734375, -0.0004489421844482422, 0.0032062530517578125, 0.0085296630859375, -0.0136871337890625, -0.0194549560546875, 0.0019664764404296875, 0.0258331298828125, 0.0012521743774414062, 0.0477294921875, 0.014312744140625, 0.015625, 0.0003445148468017578, -0.026031494140625, -0.0284576416015625, 0.0131378173828125, -0.0345458984375, 0.029937744140625, 0.020660400390625, -0.0030307769775390625, 0.07745361328125, -0.03271484375, 0.002124786376953125, -0.00986480712890625, -0.03546142578125, -0.0246124267578125, -0.006519317626953125, -0.005130767822265625, -0.0166778564453125, 0.009918212890625 ]
3294f3c7d5e0def9ee058500eaf65736c0dcbef6
Wordpress Stackexchange Q: New method to disable wpautop after WP 4.3? After WordPress 4.3, the old method of disabling wpautop no longer works. Has anyone discovered a new method for removing this function? remove_filter( 'the_content', 'wpautop', 99 ); remove_filter( 'the_excerpt', 'wpautop', 99 ); A: I guess you don't use it at all, so why don't you just remove the filter? remove_filter('the_content', 'wpautop'); remove_filter('the_excerpt', 'wpautop'); I've tested it a few minutes ago (on WP 4.3) and it works. p.s. I just saw that you use the same function. Sorry for that. What version are you using? This disables the wpautop on 4.3.
Q: New method to disable wpautop after WP 4.3? After WordPress 4.3, the old method of disabling wpautop no longer works. Has anyone discovered a new method for removing this function? remove_filter( 'the_content', 'wpautop', 99 ); remove_filter( 'the_excerpt', 'wpautop', 99 ); A: I guess you don't use it at all, so why don't you just remove the filter? remove_filter('the_content', 'wpautop'); remove_filter('the_excerpt', 'wpautop'); I've tested it a few minutes ago (on WP 4.3) and it works. p.s. I just saw that you use the same function. Sorry for that. What version are you using? This disables the wpautop on 4.3. A: On the javascript side, as a crude measure you could just replace the wp.editor.autop and wp.editor.removep with no ops: add_action( 'admin_print_footer_scripts', function () { ?> <script type="text/javascript"> jQuery(function ($) { if (typeof wp === 'object' && typeof wp.editor === 'object') { wp.editor.autop = function (text) { return text; }; wp.editor.removep = function (text) { return text; }; } }); </script> <?php }, 100 ); However on very limited testing although it seems to keep markup it does put it all on one line in the Text editor, which is pretty ugly... A: This works well. It's about the priority of the hook : add_filter( 'the_content', 'njengah_remove_autop', 0 ); function njengah_remove_autop($content) { // remove autop remove_filter( 'the_content', 'wpautop' ); return $content; }
wordpress
{ "language": "en", "length": 221, "provenance": "stackexchange_00019.jsonl.gz:458638", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/200469" }
[ 0.040313720703125, -0.03155517578125, -0.01396942138671875, -0.027099609375, 0.01371002197265625, -0.0594482421875, 0.07598876953125, 0.03125, 0.038970947265625, -0.0001983642578125, -0.0210113525390625, -0.0538330078125, 0.00818634033203125, -0.03057861328125, -0.0316162109375, -0.046722412109375, 0.01898193359375, -0.03509521484375, -0.0182647705078125, -0.0245819091796875, 0.01523590087890625, -0.0243682861328125, -0.01274871826171875, 0.01100921630859375, -0.0161590576171875, 0.003345489501953125, 0.10394287109375, -0.00830841064453125, -0.0082550048828125, -0.024688720703125, 0.01629638671875, 0.00756072998046875, -0.01512908935546875, 0.08056640625, -0.09613037109375, -0.051300048828125, -0.0081939697265625, 0.034210205078125, 0.0018453598022460938, 0.0106658935546875, -0.00531768798828125, 0.006664276123046875, -0.0419921875, 0.0267791748046875, -0.04583740234375, -0.006725311279296875, -0.0115509033203125, -0.0086517333984375, -0.004711151123046875, 0.0300140380859375, -0.0146026611328125, 0.0008358955383300781, 0.0019741058349609375, -0.01227569580078125, 0.0021076202392578125, -0.027252197265625, -0.0129547119140625, 0.03472900390625, 0.0191802978515625, 0.00923919677734375, 0.00405120849609375, 0.039398193359375, -0.00424957275390625, -0.00824737548828125, 0.011077880859375, 0.0245208740234375, -0.0045623779296875, 0.00040984153747558594, -0.031219482421875, 0.0188446044921875, 0.0142364501953125, -0.0562744140625, 0.00714111328125, -0.013824462890625, -0.001789093017578125, -0.011993408203125, 0.0084991455078125, -0.0121612548828125, -0.00460052490234375, 0.00977325439453125, 0.011444091796875, -0.01151275634765625, -0.061431884765625, 0.0022411346435546875, 0.0322265625, 0.04180908203125, 0.0008530616760253906, -0.022216796875, -0.0198822021484375, -0.020233154296875, -0.015533447265625, -0.049774169921875, -0.0063934326171875, 0.0013580322265625, -0.00553131103515625, -0.051300048828125, 0.01090240478515625, -0.00731658935546875, -0.0504150390625, -0.0335693359375, 0.0272216796875, -0.04571533203125, 0.03369140625, -0.00910186767578125, 0.003620147705078125, 0.016754150390625, -0.037078857421875, 0.01374053955078125, 0.057525634765625, 0.04998779296875, 0.022216796875, -0.034881591796875, 0.003154754638671875, -0.01326751708984375, -0.0246734619140625, 0.00676727294921875, -0.004119873046875, -0.00954437255859375, 0.0006346702575683594, -0.01806640625, -0.017547607421875, -0.00661468505859375, -0.00403594970703125, -0.0137176513671875, 0.034515380859375, 0.018157958984375, -0.007671356201171875, -0.005954742431640625, 0.032958984375, -0.01085662841796875, -0.02044677734375, -0.007785797119140625, 0.0173797607421875, 0.043914794921875, 0.0159454345703125, -0.0111083984375, 0.049530029296875, -0.02593994140625, 0.004550933837890625, 0.0258636474609375, 0.00763702392578125, -0.033172607421875, -0.00701904296875, 0.01419830322265625, 0.034515380859375, 0.010284423828125, 0.0281829833984375, 0.0236358642578125, 0.0170440673828125, -0.0172576904296875, 0.01788330078125, 0.003101348876953125, 0.04736328125, -0.00982666015625, -0.01033782958984375, -0.03497314453125, 0.031707763671875, -0.031280517578125, -0.04302978515625, -0.050445556640625, 0.056427001953125, -0.021087646484375, -0.048370361328125, 0.021514892578125, -0.00852203369140625, 0.0086669921875, -0.0167999267578125, 0.001407623291015625, 0.0145416259765625, 0.02685546875, -0.0287628173828125, -0.03857421875, -0.0198211669921875, -0.0166778564453125, -0.0301361083984375, 0.0223236083984375, 0.0003447532653808594, 0.01456451416015625, 0.013031005859375, 0.041290283203125, 0.01190185546875, -0.02642822265625, 0.07098388671875, -0.03436279296875, -0.064453125, 0.0204315185546875, 0.01995849609375, 0.055328369140625, 0.0218353271484375, -0.002208709716796875, 0.047637939453125, 0.00833892822265625, -0.0136260986328125, 0.03167724609375, 0.0212860107421875, -0.04095458984375, -0.005458831787109375, -0.0070037841796875, 0.0030231475830078125, -0.0438232421875, 0.0215606689453125, 0.0232696533203125, -0.0076446533203125, -0.004058837890625, -0.048187255859375, 0.00835418701171875, -0.0128173828125, 0.03399658203125, -0.0310516357421875, -0.01812744140625, 0.0335693359375, -0.0183258056640625, -0.02520751953125, 0.0282135009765625, -0.03802490234375, -0.0169830322265625, -0.053131103515625, 0.027984619140625, 0.02197265625, 0.040618896484375, 0.035888671875, -0.0159149169921875, 0.039520263671875, -0.0455322265625, 0.01213836669921875, -0.045013427734375, -0.006420135498046875, -0.030853271484375, 0.01654052734375, -0.02728271484375, 0.0261383056640625, 0.044189453125, 0.0478515625, 0.061737060546875, -0.00676727294921875, -0.01275634765625, -0.00913238525390625, -0.07769775390625, -0.00814056396484375, 0.060150146484375, 0.0484619140625, 0.062469482421875, -0.003662109375, -0.063232421875, 0.05694580078125, -0.078369140625, -0.0040740966796875, -0.044586181640625, 0.0173492431640625, 0.00140380859375, -0.0090179443359375, -0.047882080078125, 0.050323486328125, 0.005634307861328125, 0.01544952392578125, 0.00408935546875, -0.006954193115234375, -0.0017938613891601562, 0.0002536773681640625, 0.0022907257080078125, 0.01690673828125, 0.0237579345703125, -0.006565093994140625, 0.011138916015625, 0.042510986328125, -0.0102691650390625, 0.0509033203125, 0.03955078125, -0.0185394287109375, -0.0168304443359375, 0.017364501953125, 0.0284881591796875, -0.0002994537353515625, 0.017547607421875, 0.037078857421875, -0.00998687744140625, -0.047393798828125, 0.007274627685546875, 0.000004470348358154297, 0.013580322265625, -0.0191192626953125, 0.034576416015625, 0.0028591156005859375, -0.0244140625, -0.01114654541015625, -0.050506591796875, 0.00009268522262573242, -0.0222625732421875, -0.01485443115234375, -0.0325927734375, -0.0050506591796875, 0.04559326171875, 0.0270233154296875, -0.003192901611328125, 0.015960693359375, 0.0106201171875, -0.040313720703125, -0.0279541015625, 0.036529541015625, -0.0338134765625, 0.0302886962890625, 0.067138671875, -0.006439208984375, 0.01197052001953125, 0.040130615234375, -0.033660888671875, 0.047637939453125, 0.00588226318359375, 0.0171661376953125, 0.07354736328125, -0.09539794921875, 0.012359619140625, 0.0063018798828125, 0.0241241455078125, -0.0203704833984375, -0.0467529296875, -0.0090484619140625, 0.0023250579833984375, -0.0682373046875, -0.01800537109375, 0.0096893310546875, -0.0361328125, -0.050262451171875, 0.0275115966796875, -0.04351806640625, 0.01406097412109375, 0.06640625, -0.016387939453125, -0.01044464111328125, -0.01482391357421875, -0.037506103515625, -0.0364990234375, -0.045684814453125, -0.0151214599609375, -0.0053253173828125, 0.02069091796875, 0.007312774658203125, 0.0775146484375, 0.00531768798828125, -0.05108642578125, 0.0003974437713623047, -0.0364990234375, -0.022979736328125, 0.020843505859375, 0.00360870361328125, 0.016082763671875, 0.0240478515625, 0.01338958740234375, -0.0024013519287109375, 0.034423828125, -0.034942626953125, -0.043212890625, 0.003910064697265625, 0.00826263427734375, 0.013336181640625, 0.034881591796875, 0.0024051666259765625, -0.01397705078125, 0.0159759521484375, -0.053192138671875, -0.0004677772521972656, -0.0216064453125, -0.0282440185546875, 0.036834716796875, -0.0011615753173828125, -0.008636474609375, 0.00128173828125, 0.018463134765625, 0.0261383056640625, -0.0028247833251953125, 0.047882080078125, -0.002956390380859375, 0.03948974609375, -0.00907135009765625, 0.0012426376342773438, -0.057525634765625, 0.0307464599609375, -0.026611328125, 0.02752685546875, 0.0187530517578125, 0.00835418701171875, 0.009033203125, -0.0230865478515625, -0.0227813720703125, -0.01218414306640625, 0.043609619140625, -0.0208740234375, -0.0157623291015625, -0.0011854171752929688, -0.0220489501953125, 0.0132904052734375, 0.06866455078125, -0.013397216796875, -0.007236480712890625, -0.0052490234375, 0.002338409423828125, -0.039398193359375, -0.0029354095458984375, -0.055511474609375, 0.0189056396484375, -0.0271453857421875, -0.038238525390625, -0.016204833984375, -0.036712646484375, -0.0246124267578125, -0.023651123046875, -0.017425537109375, -0.01555633544921875, 0.0406494140625, -0.01529693603515625, -0.028045654296875, 0.0174102783203125, -0.0443115234375, -0.0187225341796875, -0.041107177734375, 0.01442718505859375, -0.0653076171875, -0.0045318603515625, -0.0345458984375, 0.0295867919921875, 0.0017642974853515625, 0.003849029541015625, -0.00688934326171875, 0.031707763671875, 0.0119476318359375, -0.01290130615234375, -0.004245758056640625, -0.0191497802734375, -0.0193023681640625, 0.026519775390625, 0.01299285888671875, -0.00803375244140625, -0.02508544921875, -0.050201416015625, -0.054962158203125, -0.004108428955078125, -0.01416778564453125, 0.043914794921875, -0.0037555694580078125, 0.003025054931640625, 0.00005882978439331055, -0.0479736328125, -0.06304931640625, 0.004688262939453125, -0.046234130859375, 0.01364898681640625, -0.049560546875, -0.018218994140625, 0.050506591796875, -0.00815582275390625, -0.0211334228515625, -0.0204620361328125, 0.04327392578125, 0.01519012451171875, -0.0236968994140625, 0.044677734375, -0.02569580078125, 0.00948333740234375, -0.03887939453125, 0.04046630859375, 0.007389068603515625, -0.006122589111328125, 0.04400634765625, -0.03289794921875, -0.00946807861328125, -0.0036373138427734375, 0.001338958740234375, 0.01366424560546875, -0.0218353271484375, 0.01009368896484375, -0.0034084320068359375, 0.0195770263671875, 0.04833984375, 0.04010009765625, -0.04345703125, 0.0230560302734375, 0.0380859375, 0.0146484375, -0.03564453125, -0.0267486572265625, -0.09014892578125, 0.036346435546875, -0.036895751953125, 0.02764892578125, -0.01413726806640625, 0.01262664794921875, 0.055633544921875, 0.0229339599609375, -0.004222869873046875, -0.0083770751953125, 0.036285400390625, -0.02435302734375, 0.05291748046875, -0.057159423828125, -0.018798828125, -0.02423095703125, -0.00495147705078125, 0.029083251953125, -0.0006947517395019531, -0.037506103515625, -0.008819580078125, 0.003894805908203125, 0.025634765625, 0.0261383056640625, -0.0477294921875, 0.0406494140625, 0.018646240234375, -0.0113983154296875, 0.01201629638671875, -0.046234130859375, -0.0226287841796875, -0.043182373046875, 0.01959228515625, -0.0005559921264648438, -0.007099151611328125, 0.004695892333984375, 0.0218963623046875, -0.058197021484375, 0.0260772705078125, 0.00803375244140625, -0.01450347900390625, -0.0208892822265625, 0.02203369140625, 0.0200042724609375, -0.0228271484375, 0.01409912109375, -0.016571044921875, 0.0404052734375, -0.056243896484375, -0.059844970703125, 0.0286407470703125, 0.05657958984375, -0.03851318359375, -0.01222991943359375, 0.01020050048828125, 0.0018148422241210938, -0.002716064453125, 0.018829345703125, 0.0159759521484375, -0.03338623046875, -0.0106201171875, 0.0267333984375, 0.01171112060546875, -0.017486572265625, -0.01190185546875, -0.019622802734375, -0.048065185546875, -0.01531219482421875, 0.045196533203125, -0.052886962890625, -0.0014200210571289062, 0.0026111602783203125, 0.01444244384765625, -0.03631591796875, -0.020660400390625, -0.006847381591796875, 0.0212860107421875, -0.021759033203125, 0.00743865966796875, 0.039886474609375, -0.0293426513671875, 0.0038585662841796875, -0.0244140625, 0.032501220703125, -0.0007123947143554688, 0.01568603515625, 0.0208892822265625, 0.0083465576171875, -0.0280914306640625, -0.00582122802734375, -0.0667724609375, -0.045806884765625, -0.05255126953125, -0.03277587890625, -0.04071044921875, 0.01284027099609375, -0.0109100341796875, 0.01508331298828125, -0.02777099609375, -0.01364898681640625, -0.0012884140014648438, 0.0304718017578125, 0.01081085205078125, 0.044586181640625, -0.037872314453125, 0.08056640625, 0.0166473388671875, 0.034423828125, 0.0214080810546875, 0.0714111328125, 0.033599853515625, -0.039398193359375, 0.036773681640625, -0.07952880859375, -0.07220458984375, -0.04156494140625, -0.0311431884765625, 0.06097412109375, 0.0184478759765625, -0.024871826171875, -0.0016813278198242188, -0.024749755859375, -0.00018274784088134766, -0.0178375244140625, 0.03607177734375, -0.030609130859375, 0.0010013580322265625, -0.023101806640625, -0.02056884765625, 0.034820556640625, -0.0073699951171875, -0.0280303955078125, 0.053497314453125, -0.0288238525390625, 0.040496826171875, 0.04327392578125, 0.01142120361328125, 0.00934600830078125, 0.005756378173828125, -0.025238037109375, 0.0217742919921875, 0.0036945343017578125, 0.00043582916259765625, 0.03350830078125, 0.021881103515625, -0.004390716552734375, -0.00360107421875, 0.034088134765625, 0.0161590576171875, 0.0037822723388671875, 0.0193634033203125, -0.01212310791015625, 0.034271240234375, 0.041656494140625, 0.06695556640625, -0.058441162109375, 0.00868988037109375, 0.016143798828125, -0.01416778564453125, 0.0298919677734375, -0.009613037109375, -0.010772705078125, -0.05999755859375, 0.09344482421875, -0.03155517578125, -0.00203704833984375, 0.04217529296875, -0.0216217041015625, -0.0223846435546875, 0.0234527587890625, 0.01297760009765625, 0.0157928466796875, -0.035186767578125, 0.0177154541015625, 0.04534912109375, -0.00836181640625, -0.04412841796875, -0.0012598037719726562, 0.01197052001953125, -0.057220458984375, -0.0804443359375, -0.01087188720703125, 0.0224456787109375, -0.025482177734375, 0.05523681640625, 0.0202178955078125, 0.0311431884765625, 0.07586669921875, -0.0145111083984375, 0.044158935546875, 0.0341796875, -0.0052032470703125, -0.03741455078125, -0.034820556640625, 0.046905517578125, 0.0295562744140625, -0.041107177734375, 0.05816650390625, -0.003604888916015625, -0.06878662109375, 0.005435943603515625, 0.0172576904296875, 0.0386962890625, 0.00739288330078125, -0.03399658203125, 0.03924560546875, -0.0232696533203125, -0.02386474609375, -0.00438690185546875, 0.0118865966796875, -0.06329345703125, -0.0227813720703125, -0.007091522216796875, -0.03448486328125, 0.030609130859375, 0.0024585723876953125, -0.057037353515625, 0.1522216796875, -0.003265380859375, 0.028411865234375, 0.0023746490478515625, 0.04949951171875, -0.0478515625, 0.0204925537109375, -0.01013946533203125, 0.034088134765625, -0.0430908203125, 0.041107177734375, -0.0233612060546875, 0.01149749755859375, 0.018524169921875, 0.01544189453125, 0.028106689453125, 0.008544921875, 0.00687408447265625, -0.043609619140625, -0.0011768341064453125, 0.03399658203125, -0.016998291015625, 0.0007829666137695312, 0.007354736328125, -0.0294036865234375, -0.004779815673828125, -0.0200653076171875, 0.0224151611328125, -0.055145263671875, -0.0035839080810546875, 0.0110321044921875, 0.0098876953125, 0.016082763671875, -0.0202484130859375, 0.05877685546875, -0.005741119384765625, -0.034759521484375, 0.0085906982421875, 0.0007739067077636719, -0.0258331298828125, 0.037750244140625, -0.010711669921875, -0.05914306640625, 0.017791748046875, -0.056060791015625, 0.048095703125, -0.035675048828125, 0.0165557861328125, 0.0455322265625, 0.023345947265625, 0.0008454322814941406, -0.0006604194641113281, 0.0128631591796875, 0.01409149169921875, -0.0192108154296875, 0.002288818359375, 0.0310211181640625, 0.00901031494140625, 0.0259857177734375, 0.06524658203125, 0.0226898193359375, -0.01319122314453125, -0.0245819091796875, -0.046295166015625, 0.0175628662109375, 0.002399444580078125, -0.006290435791015625, -0.0016260147094726562, -0.01236724853515625, -0.048431396484375, 0.004085540771484375, -0.0182342529296875, -0.01158905029296875, 0.0361328125, 0.004772186279296875, 0.0004303455352783203, 0.04742431640625, -0.01558685302734375, -0.006557464599609375, -0.0288543701171875, -0.0219879150390625, 0.0438232421875, 0.031982421875, 0.0112152099609375, 0.0302734375, 0.0290985107421875, 0.00012552738189697266, -0.0282745361328125, 0.045166015625, -0.008026123046875, 0.0195465087890625, -0.0457763671875, -0.0177001953125, -0.0009555816650390625, 0.0287017822265625, 0.047637939453125, -0.024444580078125, 0.015899658203125, 0.041290283203125, 0.00949859619140625, 0.00524139404296875, 0.0450439453125, 0.00341033935546875, -0.0207672119140625, -0.035247802734375, 0.0032863616943359375, 0.0166168212890625, 0.00827789306640625, 0.01030731201171875, 0.027984619140625, 0.00400543212890625, 0.02032470703125, -0.0213165283203125, 0.01457977294921875, -0.02117919921875, 0.01348876953125, 0.051513671875, -0.0023345947265625, 0.052734375, -0.09625244140625, 0.0017881393432617188, -0.032318115234375, -0.07708740234375, 0.038116455078125, 0.04132080078125, -0.0621337890625, 0.0281219482421875, -0.03753662109375, 0.00010281801223754883, -0.010223388671875, -0.0038928985595703125, -0.0221099853515625, -0.0129241943359375, 0.026947021484375, -0.0296478271484375, -0.0408935546875, -0.0029697418212890625, -0.01534271240234375, 0.009368896484375, -0.004730224609375, 0.0875244140625, -0.023284912109375, 0.011566162109375, -0.016510009765625, -0.0034656524658203125, 0.017791748046875, 0.004703521728515625, -0.03643798828125, 0.046356201171875, 0.0290374755859375, -0.02386474609375, -0.0802001953125, 0.0244293212890625, 0.018402099609375, 0.023406982421875, 0.0447998046875, -0.0102081298828125, 0.0090789794921875, -0.006011962890625, 0.00885772705078125, -0.0169830322265625, -0.00357818603515625, 0.0049896240234375, -0.005275726318359375, 0.0380859375, -0.0013074874877929688, -0.00946044921875, 0.00872039794921875, 0.056793212890625, 0.02130126953125, 0.005390167236328125, 0.04052734375, 0.01540374755859375, 0.040496826171875, 0.0021228790283203125, -0.026214599609375, 0.00286102294921875, -0.00858306884765625, -0.017364501953125, 0.010711669921875, -0.018096923828125, 0.031982421875, -0.05877685546875, -0.0287017822265625, -0.053863525390625, -0.007167816162109375, -0.0206146240234375, -0.01419830322265625, -0.0221099853515625, 0.01483917236328125, -0.0232086181640625, 0.0030269622802734375, -0.000007212162017822266, -0.014739990234375, -0.031280517578125, 0.0098419189453125, -0.03399658203125, -0.0292205810546875, -0.03912353515625, -0.01174163818359375, 0.06622314453125, 0.0190277099609375, -0.07330322265625, 0.035369873046875, -0.031402587890625, 0.03509521484375, 0.0169525146484375, 0.044158935546875, -0.0053558349609375, 0.0176849365234375, -0.04339599609375, -0.02545166015625, -0.0210113525390625, 0.049530029296875, -0.0238494873046875, -0.01220703125, 0.006717681884765625, 0.0192108154296875, -0.04931640625, 0.013671875, -0.0189056396484375, 0.04583740234375, -0.040191650390625, -0.029510498046875, 0.0033817291259765625, 0.007389068603515625, 0.01122283935546875, -0.026214599609375, -0.0139617919921875, -0.0204620361328125, 0.00362396240234375, 0.03814697265625, -0.03582763671875, -0.0245819091796875, -0.047332763671875, -0.072509765625, -0.040679931640625, 0.032684326171875, -0.044189453125, -0.006717681884765625, -0.0298614501953125, -0.0105133056640625, 0.011474609375, -0.005413055419921875, -0.011871337890625, -0.0302581787109375, 0.0298919677734375, -0.000021755695343017578, 0.09185791015625, -0.02911376953125, 0.0169525146484375, 0.044158935546875, 0.04656982421875, 0.03253173828125, -0.01035308837890625, -0.039093017578125, 0.0214996337890625, 0.012603759765625, 0.0094451904296875, -0.0179901123046875, 0.060089111328125, 0.048583984375, 0.037628173828125, 0.004756927490234375, -0.005218505859375, -0.0262908935546875, 0.01824951171875, 0.0015745162963867188, 0.09954833984375, 0.006793975830078125, -0.06512451171875, -0.021697998046875, -0.01050567626953125, -0.0012044906616210938, -0.00743865966796875, 0.017425537109375, -0.060821533203125, -0.0181427001953125, 0.002147674560546875, -0.0018177032470703125, 0.004863739013671875, -0.0230865478515625, -0.02471923828125, -0.02703857421875, -0.048431396484375, 0.0080108642578125, -0.023834228515625, -0.049713134765625, -0.00726318359375, -0.0099639892578125, -0.0280914306640625, -0.033111572265625, 0.0511474609375, -0.043701171875, -0.045074462890625, -0.026397705078125, -0.0029888153076171875, 0.013946533203125, 0.0244903564453125, 0.0019550323486328125, 0.04669189453125, 0.0015316009521484375, 0.0113983154296875, -0.0242462158203125, -0.0158843994140625, 0.0204620361328125, -0.00385284423828125, 0.004932403564453125, -0.031951904296875, -0.006683349609375, -0.02435302734375, 0.0095367431640625, 0.04193115234375, -0.003025054931640625, 0.03741455078125, 0.0161590576171875, -0.0237579345703125, 0.0294952392578125, -0.006740570068359375, 0.02520751953125, 0.005062103271484375, 0.034423828125, -0.0093994140625, 0.00054931640625, -0.029296875, 0.00396728515625, 0.00466156005859375 ]
9f18baaf119d327a0a09434cb5a8fdf4d3336a84
Wordpress Stackexchange Q: Assign Subscriber capabilities to a custom user role I am creating a custom user role (client) for the application I am building, and I want this role to have extremely limited capabilities. I am using the add_role( $role, $display_name, $capabilities ); to create the custom role. $client_role = add_role('client', 'Client', array ( 'edit_posts' => false, 'delete_posts' => false, )); Here's my question - instead of having to list each and every available capability, and setting it to 'false', is there a way to simply assign the capabilities that are available to a 'Subscriber' to my custom user role? Would it be better to use a filter to just change the name of 'Subscriber' to 'Client'? Thanks! A: Wordpress subscriber have only the read capability. So you have to pass to add_role only the read parameter, like: $client_role = add_role('client', 'Client', array ( 'read' => TRUE // true allows this capability ));
Q: Assign Subscriber capabilities to a custom user role I am creating a custom user role (client) for the application I am building, and I want this role to have extremely limited capabilities. I am using the add_role( $role, $display_name, $capabilities ); to create the custom role. $client_role = add_role('client', 'Client', array ( 'edit_posts' => false, 'delete_posts' => false, )); Here's my question - instead of having to list each and every available capability, and setting it to 'false', is there a way to simply assign the capabilities that are available to a 'Subscriber' to my custom user role? Would it be better to use a filter to just change the name of 'Subscriber' to 'Client'? Thanks! A: Wordpress subscriber have only the read capability. So you have to pass to add_role only the read parameter, like: $client_role = add_role('client', 'Client', array ( 'read' => TRUE // true allows this capability ));
wordpress
{ "language": "en", "length": 152, "provenance": "stackexchange_00019.jsonl.gz:458677", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/200597" }
[ 0.040252685546875, 0.0007791519165039062, -0.0123443603515625, -0.0034008026123046875, 0.003131866455078125, -0.04461669921875, 0.0298919677734375, -0.031524658203125, 0.016387939453125, 0.0076141357421875, 0.0306396484375, -0.048492431640625, 0.01107025146484375, -0.055419921875, -0.0125579833984375, -0.034637451171875, 0.0273284912109375, 0.007114410400390625, 0.02447509765625, -0.02471923828125, 0.0103759765625, -0.0005292892456054688, 0.0174407958984375, 0.0758056640625, 0.0058441162109375, -0.0115203857421875, 0.036895751953125, -0.03253173828125, -0.0018606185913085938, -0.0166473388671875, 0.0153656005859375, 0.0083160400390625, -0.0205535888671875, 0.036407470703125, 0.025909423828125, -0.01971435546875, 0.0120391845703125, 0.00612640380859375, 0.0158843994140625, 0.0142059326171875, 0.0015821456909179688, 0.00846099853515625, 0.0015954971313476562, -0.031707763671875, -0.0016889572143554688, -0.064697265625, 0.0272064208984375, -0.029754638671875, 0.0257110595703125, 0.00768280029296875, 0.000046312808990478516, 0.024078369140625, 0.0177459716796875, 0.003475189208984375, -0.0168914794921875, -0.0248870849609375, -0.02093505859375, 0.0184478759765625, 0.027191162109375, 0.0261383056640625, -0.01288604736328125, 0.01551055908203125, -0.0013599395751953125, -0.03411865234375, 0.0059967041015625, 0.01091766357421875, 0.0245513916015625, 0.00611114501953125, -0.0163421630859375, -0.02001953125, -0.0044708251953125, -0.0157012939453125, 0.0338134765625, -0.037841796875, -0.01409912109375, -0.0205841064453125, 0.00838470458984375, 0.0033283233642578125, 0.010498046875, -0.0396728515625, 0.012725830078125, 0.0004363059997558594, 0.00731658935546875, 0.0195770263671875, -0.04388427734375, 0.003765106201171875, -0.01134490966796875, -0.0055999755859375, 0.0187530517578125, 0.0210113525390625, 0.0021762847900390625, 0.0004470348358154297, 0.0743408203125, 0.005374908447265625, -0.0452880859375, -0.010772705078125, 0.04095458984375, 0.023345947265625, 0.00717926025390625, -0.037567138671875, 0.061981201171875, -0.061676025390625, 0.015899658203125, -0.01477813720703125, 0.0090789794921875, 0.04620361328125, -0.00670623779296875, -0.0234375, 0.027679443359375, 0.0272216796875, 0.0035419464111328125, -0.0262908935546875, 0.020416259765625, 0.005420684814453125, -0.041259765625, -0.029083251953125, -0.0305328369140625, 0.016387939453125, 0.006805419921875, 0.0308074951171875, 0.0092010498046875, 0.03619384765625, -0.0164947509765625, -0.04571533203125, 0.00997161865234375, -0.01580810546875, -0.035919189453125, -0.01142120361328125, 0.0181884765625, 0.0017099380493164062, -0.0546875, 0.03399658203125, 0.07891845703125, 0.021820068359375, 0.0113983154296875, -0.006214141845703125, 0.041351318359375, -0.0169525146484375, 0.00417327880859375, 0.018707275390625, 0.0264739990234375, -0.032318115234375, -0.0167388916015625, 0.0229339599609375, 0.0221710205078125, 0.0318603515625, 0.0009169578552246094, 0.008880615234375, 0.0306549072265625, -0.00800323486328125, -0.0187225341796875, -0.041839599609375, -0.0188446044921875, 0.011322021484375, 0.038848876953125, -0.0018377304077148438, -0.0036334991455078125, 0.01168060302734375, 0.0276336669921875, 0.0205841064453125, 0.05487060546875, -0.00046324729919433594, -0.0302276611328125, -0.03765869140625, -0.06158447265625, -0.03265380859375, -0.031158447265625, -0.005023956298828125, 0.01104736328125, -0.0243682861328125, 0.03350830078125, -0.0266571044921875, -0.0297393798828125, 0.0005726814270019531, 0.013153076171875, 0.0330810546875, 0.003265380859375, 0.041107177734375, 0.03857421875, -0.078857421875, -0.05670166015625, -0.053619384765625, 0.09027099609375, -0.045379638671875, -0.040374755859375, 0.01416778564453125, -0.0158233642578125, -0.0012454986572265625, 0.0296173095703125, -0.004619598388671875, 0.008941650390625, 0.0297698974609375, -0.01654052734375, -0.01342010498046875, -0.01389312744140625, -0.04443359375, 0.0267791748046875, -0.032958984375, -0.0179290771484375, 0.053314208984375, 0.0148162841796875, -0.03875732421875, 0.00894927978515625, -0.03607177734375, -0.062164306640625, -0.0207366943359375, -0.034515380859375, 0.0203399658203125, -0.017181396484375, -0.0226898193359375, 0.0133514404296875, -0.0167999267578125, 0.01044464111328125, -0.08367919921875, -0.03472900390625, 0.00565338134765625, -0.007503509521484375, 0.060699462890625, -0.00788116455078125, 0.033447265625, 0.0099945068359375, -0.055816650390625, 0.0330810546875, 0.020660400390625, 0.0595703125, -0.0002015829086303711, 0.01093292236328125, -0.0133819580078125, 0.08026123046875, 0.019683837890625, -0.0136566162109375, -0.012359619140625, 0.090576171875, 0.050018310546875, -0.00885009765625, 0.0396728515625, 0.04168701171875, -0.032867431640625, -0.0430908203125, 0.03253173828125, 0.03692626953125, 0.01416015625, 0.0108184814453125, 0.006877899169921875, 0.015472412109375, -0.0129241943359375, 0.037933349609375, -0.0285797119140625, -0.0249481201171875, 0.038726806640625, -0.005558013916015625, 0.037322998046875, 0.00763702392578125, 0.006427764892578125, -0.01690673828125, 0.0447998046875, -0.0188446044921875, -0.005733489990234375, 0.0341796875, -0.026275634765625, 0.013641357421875, -0.0306243896484375, -0.01511383056640625, -0.0167236328125, -0.009490966796875, 0.033355712890625, -0.0053253173828125, -0.005214691162109375, -0.035675048828125, 0.04132080078125, 0.0293426513671875, -0.02752685546875, -0.0081024169921875, 0.02288818359375, 0.031890869140625, -0.029815673828125, -0.0213165283203125, 0.0024776458740234375, -0.0194549560546875, -0.0008492469787597656, -0.002155303955078125, 0.0223236083984375, 0.01003265380859375, -0.013916015625, -0.0027866363525390625, -0.03375244140625, 0.01056671142578125, 0.004978179931640625, 0.00021708011627197266, -0.0143890380859375, 0.017364501953125, -0.013580322265625, -0.0218658447265625, 0.017852783203125, 0.02496337890625, -0.032257080078125, 0.021820068359375, -0.06915283203125, 0.040008544921875, -0.05133056640625, 0.0194854736328125, 0.060211181640625, 0.00959014892578125, -0.0242919921875, 0.0176239013671875, -0.03533935546875, -0.0024871826171875, 0.053497314453125, 0.0367431640625, -0.0273895263671875, 0.0025157928466796875, 0.0450439453125, 0.0115966796875, -0.0225982666015625, 0.0240020751953125, -0.0008406639099121094, -0.004276275634765625, 0.0085906982421875, 0.0290374755859375, 0.04132080078125, 0.08050537109375, -0.0391845703125, 0.022247314453125, 0.016937255859375, -0.025360107421875, -0.050506591796875, 0.059234619140625, -0.011260986328125, -0.0426025390625, -0.0013113021850585938, -0.02783203125, -0.002971649169921875, -0.02734375, 0.0300445556640625, -0.01097869873046875, 0.01201629638671875, -0.003948211669921875, 0.0562744140625, 0.01093292236328125, -0.032623291015625, -0.01148223876953125, 0.034027099609375, -0.01113128662109375, -0.02325439453125, 0.0167999267578125, -0.010894775390625, 0.0202484130859375, 0.006282806396484375, 0.006805419921875, 0.01580810546875, -0.01445770263671875, -0.040283203125, -0.0181884765625, 0.0188446044921875, 0.011260986328125, 0.01605224609375, 0.00644683837890625, 0.032867431640625, 0.028289794921875, -0.0164642333984375, -0.00156402587890625, -0.00397491455078125, -0.02239990234375, -0.0219879150390625, -0.01812744140625, -0.007106781005859375, -0.017059326171875, 0.0245513916015625, -0.005496978759765625, 0.0239715576171875, -0.0158233642578125, -0.005214691162109375, -0.035064697265625, -0.0012941360473632812, -0.00632476806640625, 0.03973388671875, 0.055755615234375, 0.01233673095703125, 0.044921875, 0.039947509765625, 0.031280517578125, -0.0157623291015625, 0.025360107421875, -0.0557861328125, -0.0867919921875, 0.047637939453125, -0.069580078125, 0.003147125244140625, -0.052001953125, -0.01125335693359375, 0.0017871856689453125, 0.11065673828125, -0.00959014892578125, -0.0125732421875, -0.00444793701171875, -0.0171051025390625, -0.017791748046875, 0.0259552001953125, -0.041473388671875, 0.005626678466796875, 0.0165863037109375, 0.00007450580596923828, -0.0192718505859375, 0.004878997802734375, -0.0197906494140625, -0.033905029296875, 0.01702880859375, -0.0150299072265625, 0.0404052734375, -0.0616455078125, 0.01739501953125, -0.00396728515625, 0.016815185546875, -0.057861328125, -0.023681640625, -0.0406494140625, -0.0665283203125, -0.012420654296875, -0.021484375, 0.07275390625, 0.01552581787109375, 0.0037174224853515625, 0.00677490234375, 0.07305908203125, -0.0002658367156982422, -0.02978515625, 0.01837158203125, -0.0025882720947265625, 0.0212860107421875, 0.047454833984375, 0.0032806396484375, -0.010528564453125, -0.00609588623046875, -0.00637054443359375, 0.0176544189453125, 0.0272216796875, -0.04730224609375, -0.0164794921875, -0.04119873046875, -0.01517486572265625, -0.043731689453125, -0.036651611328125, -0.03729248046875, 0.0130157470703125, -0.02862548828125, -0.001880645751953125, -0.05352783203125, -0.04937744140625, 0.0126190185546875, -0.06536865234375, -0.0021839141845703125, 0.0037822723388671875, 0.075927734375, 0.0294952392578125, 0.0138702392578125, 0.0716552734375, -0.01446533203125, 0.0465087890625, -0.03338623046875, 0.039031982421875, 0.0635986328125, -0.02630615234375, 0.026580810546875, 0.0272369384765625, 0.0151519775390625, 0.0406494140625, -0.028778076171875, 0.0167083740234375, -0.041473388671875, 0.016754150390625, 0.0227813720703125, -0.0212249755859375, -0.04034423828125, -0.026275634765625, -0.00274658203125, 0.0173187255859375, 0.04058837890625, -0.046661376953125, 0.0626220703125, 0.002414703369140625, -0.01470947265625, 0.00925445556640625, -0.0225982666015625, -0.0009717941284179688, 0.00911712646484375, 0.00893402099609375, -0.0243682861328125, -0.0114593505859375, 0.02191162109375, -0.0237274169921875, -0.005367279052734375, -0.01222991943359375, 0.03643798828125, -0.013519287109375, 0.014373779296875, -0.015411376953125, -0.00794219970703125, 0.07855224609375, -0.006114959716796875, -0.059906005859375, 0.00621795654296875, -0.005817413330078125, 0.040313720703125, 0.01055145263671875, -0.0223236083984375, 0.035552978515625, 0.049530029296875, 0.0178375244140625, 0.018951416015625, -0.03167724609375, 0.048858642578125, -0.02728271484375, -0.00441741943359375, 0.0013980865478515625, -0.01416778564453125, -0.0299224853515625, 0.06243896484375, 0.007282257080078125, 0.011260986328125, -0.0130615234375, 0.0570068359375, 0.08270263671875, -0.01325225830078125, 0.00875091552734375, 0.0287322998046875, -0.023956298828125, -0.01364898681640625, -0.01047515869140625, -0.0063629150390625, -0.004634857177734375, 0.004955291748046875, 0.01139068603515625, 0.01030731201171875, 0.00321197509765625, 0.0164794921875, -0.007732391357421875, -0.01494598388671875, 0.004123687744140625, -0.0245361328125, -0.041168212890625, -0.024139404296875, -0.0258331298828125, 0.0089111328125, -0.0159149169921875, -0.01302337646484375, 0.025238037109375, -0.016815185546875, 0.01290130615234375, 0.01381683349609375, -0.0196380615234375, -0.01258087158203125, 0.0008945465087890625, -0.058349609375, -0.01270294189453125, 0.0238494873046875, -0.0138702392578125, -0.01556396484375, -0.01605224609375, -0.049896240234375, 0.03558349609375, 0.002651214599609375, 0.009002685546875, -0.040130615234375, 0.0177001953125, -0.09356689453125, -0.01239776611328125, 0.039337158203125, 0.00925445556640625, -0.0301361083984375, -0.026123046875, -0.039947509765625, -0.009613037109375, -0.07257080078125, -0.08197021484375, -0.0232696533203125, 0.0189208984375, 0.0184783935546875, 0.004787445068359375, -0.0004029273986816406, -0.05810546875, -0.0545654296875, 0.01030731201171875, 0.06854248046875, -0.006465911865234375, -0.006847381591796875, 0.03387451171875, 0.00037479400634765625, 0.024444580078125, 0.0038204193115234375, 0.01568603515625, 0.029876708984375, -0.0279541015625, -0.00746917724609375, -0.0198211669921875, -0.003421783447265625, -0.0406494140625, -0.0106201171875, 0.01544952392578125, 0.077880859375, -0.0006031990051269531, 0.0253448486328125, -0.00711822509765625, 0.0089263916015625, -0.0272216796875, -0.049560546875, -0.01290130615234375, 0.02362060546875, -0.0275726318359375, -0.03857421875, 0.031402587890625, 0.00882720947265625, 0.0142822265625, -0.015655517578125, -0.0217742919921875, -0.00148773193359375, 0.0260009765625, 0.00930023193359375, 0.0025272369384765625, 0.033233642578125, -0.0357666015625, 0.042694091796875, 0.0411376953125, 0.0268707275390625, 0.05596923828125, 0.035888671875, -0.00007712841033935547, -0.005329132080078125, 0.0282745361328125, 0.00319671630859375, -0.0102691650390625, -0.004390716552734375, -0.0207061767578125, 0.038330078125, 0.07977294921875, 0.08935546875, -0.11639404296875, 0.0159149169921875, 0.0183258056640625, 0.0002161264419555664, 0.06280517578125, -0.0050048828125, -0.0061798095703125, -0.041900634765625, 0.050445556640625, -0.01174163818359375, -0.00958251953125, 0.006404876708984375, -0.0208740234375, -0.02203369140625, 0.0174407958984375, -0.01407623291015625, 0.01200103759765625, 0.0677490234375, -0.01458740234375, -0.044158935546875, 0.029266357421875, 0.005794525146484375, 0.0182342529296875, 0.01093292236328125, -0.0322265625, -0.0758056640625, -0.01412200927734375, -0.0145263671875, -0.039093017578125, -0.0147247314453125, -0.021240234375, 0.0229339599609375, 0.051727294921875, -0.027862548828125, 0.00603485107421875, 0.060089111328125, -0.06463623046875, -0.03826904296875, -0.067138671875, -0.00362396240234375, 0.044281005859375, -0.03997802734375, 0.040618896484375, 0.00960540771484375, -0.050262451171875, -0.0126495361328125, 0.0090179443359375, 0.0638427734375, -0.00830841064453125, -0.031646728515625, 0.02032470703125, 0.0087890625, -0.01436614990234375, 0.0044097900390625, -0.0017948150634765625, -0.0557861328125, -0.0455322265625, 0.0036029815673828125, -0.05548095703125, 0.0174407958984375, 0.0291748046875, -0.054962158203125, 0.135498046875, -0.0291290283203125, 0.0204620361328125, 0.0252532958984375, 0.049041748046875, -0.044281005859375, 0.0243682861328125, -0.0226287841796875, 0.032135009765625, -0.0036144256591796875, 0.039093017578125, -0.0009832382202148438, 0.0004248619079589844, 0.01386260986328125, 0.0272064208984375, 0.068115234375, 0.034423828125, -0.01031494140625, -0.03265380859375, -0.0246124267578125, 0.005512237548828125, -0.038482666015625, 0.0290069580078125, -0.00843048095703125, 0.00554656982421875, 0.0030574798583984375, -0.0167999267578125, 0.0310821533203125, -0.0404052734375, -0.03558349609375, 0.00954437255859375, -0.0028438568115234375, -0.00213623046875, -0.01335906982421875, 0.0176849365234375, -0.04351806640625, -0.01026153564453125, 0.0304107666015625, -0.036224365234375, 0.0306854248046875, 0.01312255859375, 0.020751953125, 0.002101898193359375, 0.0127410888671875, -0.019195556640625, 0.05645751953125, 0.0125579833984375, 0.01056671142578125, 0.036041259765625, 0.02130126953125, 0.0163116455078125, 0.01061248779296875, 0.018890380859375, 0.0210113525390625, -0.00882720947265625, 0.0227508544921875, 0.026458740234375, 0.01074981689453125, 0.0015592575073242188, 0.04144287109375, 0.03265380859375, 0.0124053955078125, -0.039794921875, -0.036224365234375, 0.01226043701171875, 0.0016918182373046875, 0.003082275390625, 0.00354766845703125, -0.0028896331787109375, -0.0254058837890625, 0.0260009765625, -0.0281829833984375, 0.0261993408203125, 0.01264190673828125, -0.0008058547973632812, 0.0011043548583984375, 0.061676025390625, -0.0540771484375, 0.021392822265625, -0.024322509765625, -0.018585205078125, -0.01218414306640625, 0.0026454925537109375, 0.040069580078125, -0.00140380859375, 0.0232086181640625, 0.0101776123046875, 0.01366424560546875, 0.0125274658203125, 0.025482177734375, -0.047027587890625, -0.0211334228515625, -0.06817626953125, 0.0229034423828125, 0.035552978515625, -0.025421142578125, -0.00916290283203125, 0.0122528076171875, 0.034515380859375, -0.02484130859375, -0.0208740234375, 0.039825439453125, -0.0255889892578125, 0.0164337158203125, -0.01535797119140625, -0.025970458984375, 0.01496124267578125, -0.021575927734375, -0.0193939208984375, -0.0306396484375, 0.0645751953125, 0.002315521240234375, 0.03558349609375, -0.0013027191162109375, -0.000980377197265625, 0.02288818359375, -0.02178955078125, 0.02325439453125, 0.01175689697265625, -0.037017822265625, 0.031341552734375, -0.08154296875, -0.0826416015625, 0.032073974609375, 0.03759765625, -0.02862548828125, 0.0278167724609375, -0.027984619140625, -0.0034503936767578125, 0.0282745361328125, -0.0184326171875, -0.0305328369140625, -0.01267242431640625, 0.0241851806640625, -0.0404052734375, -0.0090789794921875, 0.01397705078125, 0.00691986083984375, 0.015289306640625, -0.00140380859375, 0.050079345703125, -0.02252197265625, 0.001316070556640625, -0.04522705078125, 0.03533935546875, -0.028900146484375, -0.03973388671875, 0.025421142578125, 0.052886962890625, 0.01247406005859375, -0.01751708984375, -0.004871368408203125, 0.006450653076171875, 0.0258026123046875, -0.03326416015625, -0.031646728515625, 0.01354217529296875, 0.0226593017578125, 0.022857666015625, 0.01512908935546875, -0.026275634765625, -0.004642486572265625, -0.03570556640625, -0.036529541015625, 0.038116455078125, 0.00904083251953125, 0.0015230178833007812, 0.016021728515625, -0.042144775390625, -0.01483917236328125, 0.0220489501953125, 0.00022614002227783203, -0.006561279296875, 0.007511138916015625, -0.042694091796875, -0.0226593017578125, -0.0020751953125, -0.00142669677734375, -0.0279388427734375, 0.0276336669921875, -0.0082855224609375, 0.024658203125, -0.0295562744140625, 0.0186614990234375, -0.00437164306640625, 0.035797119140625, -0.025177001953125, -0.0016298294067382812, 0.0081939697265625, 0.00516510009765625, -0.00627899169921875, -0.03875732421875, -0.031890869140625, -0.0186920166015625, -0.00934600830078125, 0.022552490234375, -0.0113525390625, -0.06585693359375, -0.06573486328125, -0.0096435546875, 0.068359375, 0.0267791748046875, -0.1087646484375, 0.047119140625, -0.01456451416015625, 0.048797607421875, -0.0022373199462890625, -0.05462646484375, 0.016082763671875, 0.005321502685546875, -0.01763916015625, 0.0078582763671875, -0.047088623046875, -0.0256195068359375, -0.0205230712890625, 0.035430908203125, 0.03668212890625, -0.0158843994140625, -0.0213623046875, 0.0712890625, 0.01727294921875, 0.11181640625, -0.0200347900390625, -0.00843048095703125, -0.006317138671875, 0.01218414306640625, -0.01458740234375, -0.039581298828125, 0.0184478759765625, -0.04864501953125, -0.043487548828125, -0.06500244140625, 0.05755615234375, 0.04034423828125, 0.0030975341796875, 0.025421142578125, 0.06756591796875, -0.0169677734375, 0.0096893310546875, -0.02569580078125, 0.0186920166015625, 0.0010700225830078125, -0.0160675048828125, -0.00548553466796875, -0.00803375244140625, -0.0045166015625, 0.0030651092529296875, -0.005146026611328125, -0.038787841796875, 0.0413818359375, -0.0108489990234375, -0.0225372314453125, 0.018157958984375, 0.030029296875, -0.04193115234375, -0.01294708251953125, 0.00405120849609375, 0.0008392333984375, 0.030914306640625, -0.010467529296875, -0.0902099609375, -0.0002009868621826172, -0.023162841796875, -0.025848388671875, -0.0288543701171875, 0.01230621337890625, -0.007366180419921875, 0.054718017578125, 0.0242767333984375, -0.0006756782531738281, -0.028289794921875, -0.0027179718017578125, -0.05682373046875, -0.0306854248046875, -0.005268096923828125, 0.00254058837890625, -0.023651123046875, 0.03173828125, -0.0038585662841796875, -0.021209716796875, -0.006389617919921875, -0.0200042724609375, -0.043212890625, 0.0015420913696289062, 0.00783538818359375, 0.018218994140625, -0.0223846435546875, 0.062408447265625, 0.0253753662109375, -0.040679931640625, -0.0264434814453125, -0.0136871337890625, -0.02130126953125, -0.027374267578125, -0.03839111328125, -0.0142822265625, -0.017791748046875, -0.028472900390625, 0.0285797119140625, -0.01036834716796875, 0.0220794677734375, -0.04046630859375, 0.000965118408203125, 0.0197601318359375, 0.0257110595703125, -0.0133056640625, 0.02545166015625, 0.0088043212890625, 0.03228759765625, -0.0230560302734375, 0.042724609375, 0.00273895263671875, 0.01160430908203125, -0.01739501953125, 0.03875732421875, 0.038055419921875, -0.0258941650390625, 0.064208984375, -0.00818634033203125, 0.00506591796875, 0.00539398193359375, -0.02606201171875, -0.0191802978515625, -0.00710296630859375, 0.02362060546875, -0.0152130126953125, 0.01149749755859375 ]
027b9c8416702059ab6399f27422aec25d6000d9
Wordpress Stackexchange Q: This webpage is not available ERR_NAME_NOT_RESOLVED I have a website that runs wordpress. I'm new to this so I was messing with the settings to see what they do. My domain name was www.example.com and there was a setting that was allowing me to change it. This is the link it led me to https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory After changing it to www.example1.com I no longer have access to my admin page. www.example.com works but it lost all the CSS elements, when I try to add the wp-login at the end it redirects me to www.example1.com and prompts me with that error. Does anyone know how to fix that or revert these changes? I only have access to the server, not the host, so I cannot reinstall wordpress for this domain. It keeps redirecting me to www.example1.com, how can I stop that? A: Those settings are stored in the wp_options table in the database. If you can access the database with PHPMyAdmin Location the wp_options table and find the records with the option_name of home and siteurl and change it back to the correct url. Your host may also be willing to help with this.
Q: This webpage is not available ERR_NAME_NOT_RESOLVED I have a website that runs wordpress. I'm new to this so I was messing with the settings to see what they do. My domain name was www.example.com and there was a setting that was allowing me to change it. This is the link it led me to https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory After changing it to www.example1.com I no longer have access to my admin page. www.example.com works but it lost all the CSS elements, when I try to add the wp-login at the end it redirects me to www.example1.com and prompts me with that error. Does anyone know how to fix that or revert these changes? I only have access to the server, not the host, so I cannot reinstall wordpress for this domain. It keeps redirecting me to www.example1.com, how can I stop that? A: Those settings are stored in the wp_options table in the database. If you can access the database with PHPMyAdmin Location the wp_options table and find the records with the option_name of home and siteurl and change it back to the correct url. Your host may also be willing to help with this. A: first export you database in you system as db.sql after that open it and please do following thing:- * *find www.example.com *replace it with www.example1.com. *and re import it. After this admin would work and if page url dont work, please change the permalinks settings. Thanks :)
wordpress
{ "language": "en", "length": 241, "provenance": "stackexchange_00019.jsonl.gz:458750", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/201846" }
[ 0.00940704345703125, -0.00968170166015625, 0.0154571533203125, 0.020172119140625, -0.0187225341796875, -0.0303497314453125, 0.037322998046875, -0.04888916015625, -0.0121002197265625, -0.0132904052734375, -0.036163330078125, 0.01403045654296875, 0.0189361572265625, -0.03277587890625, 0.040557861328125, -0.032867431640625, 0.0235748291015625, 0.01546478271484375, 0.033050537109375, 0.01081085205078125, -0.01556396484375, 0.00982666015625, 0.03558349609375, 0.001293182373046875, 0.0267181396484375, -0.015625, 0.0760498046875, -0.055419921875, 0.0261383056640625, -0.008392333984375, 0.02703857421875, -0.030364990234375, 0.0025348663330078125, 0.034332275390625, -0.0052337646484375, -0.0380859375, 0.0301971435546875, -0.00951385498046875, 0.00749969482421875, 0.019775390625, 0.030426025390625, -0.0213165283203125, 0.04412841796875, 0.01186370849609375, 0.0097503662109375, -0.03436279296875, 0.0498046875, -0.038909912109375, 0.004901885986328125, -0.0033473968505859375, -0.003322601318359375, 0.02899169921875, -0.003391265869140625, 0.0068511962890625, -0.00798797607421875, -0.020355224609375, 0.0311737060546875, 0.01378631591796875, 0.01438140869140625, -0.052734375, -0.0256500244140625, 0.04022216796875, 0.032745361328125, 0.047637939453125, -0.01666259765625, 0.0011739730834960938, 0.026031494140625, 0.005184173583984375, -0.0372314453125, -0.0293426513671875, 0.02020263671875, -0.0174407958984375, 0.01148223876953125, -0.01204681396484375, -0.0303192138671875, -0.01462554931640625, -0.007175445556640625, -0.028656005859375, 0.021484375, 0.0016727447509765625, 0.02947998046875, 0.01519012451171875, 0.0181732177734375, -0.0255584716796875, 0.0243682861328125, 0.0026111602783203125, -0.0159149169921875, -0.0274505615234375, -0.009918212890625, -0.01027679443359375, -0.017913818359375, -0.046478271484375, -0.0124664306640625, 0.023773193359375, 0.0016756057739257812, -0.01314544677734375, 0.01364898681640625, 0.044281005859375, -0.011962890625, 0.00811004638671875, -0.0069122314453125, -0.040679931640625, 0.03753662109375, -0.030548095703125, 0.000896453857421875, 0.0787353515625, 0.034881591796875, 0.006313323974609375, 0.00299835205078125, -0.0210418701171875, 0.01126861572265625, -0.00926971435546875, -0.026519775390625, -0.053955078125, -0.01861572265625, 0.02459716796875, -0.01824951171875, -0.01399993896484375, 0.01715087890625, -0.00787353515625, -0.005710601806640625, 0.056854248046875, -0.092041015625, -0.04254150390625, 0.002468109130859375, -0.03302001953125, 0.011566162109375, 0.00848388671875, 0.011322021484375, -0.0015916824340820312, -0.0307159423828125, 0.0213775634765625, 0.06072998046875, 0.0223236083984375, 0.01256561279296875, -0.01305389404296875, 0.02911376953125, 0.0130615234375, -0.006622314453125, 0.01244354248046875, 0.0125885009765625, -0.053009033203125, -0.053863525390625, -0.00878143310546875, 0.00818634033203125, 0.0200042724609375, 0.01313018798828125, 0.0166473388671875, -0.0015668869018554688, -0.02911376953125, 0.0134429931640625, -0.002643585205078125, 0.03863525390625, 0.014923095703125, -0.0089111328125, -0.03839111328125, 0.0269622802734375, -0.037994384765625, 0.0107574462890625, -0.0513916015625, 0.0057525634765625, 0.0223541259765625, 0.056396484375, -0.01983642578125, -0.0229644775390625, -0.0487060546875, -0.050628662109375, -0.01468658447265625, 0.01322174072265625, 0.00823211669921875, -0.0031833648681640625, -0.00862884521484375, 0.013458251953125, 0.00927734375, 0.005779266357421875, 0.024505615234375, -0.0129852294921875, 0.02532958984375, -0.0023365020751953125, 0.025848388671875, 0.0182952880859375, -0.0247039794921875, -0.01385498046875, 0.0240325927734375, -0.0308837890625, 0.0176239013671875, -0.00885009765625, 0.0043182373046875, 0.00771331787109375, -0.00992584228515625, 0.04150390625, 0.02520751953125, -0.013946533203125, 0.0174560546875, -0.0281219482421875, -0.036407470703125, -0.009185791015625, 0.0034389495849609375, -0.02801513671875, 0.0167694091796875, -0.0305633544921875, -0.0180511474609375, -0.01015472412109375, -0.01294708251953125, -0.02423095703125, -0.031585693359375, 0.00226593017578125, 0.0221099853515625, 0.030487060546875, 0.022064208984375, 0.005008697509765625, 0.0113067626953125, -0.00891876220703125, -0.0672607421875, -0.0614013671875, -0.004924774169921875, -0.019073486328125, 0.037353515625, -0.0080413818359375, 0.046600341796875, -0.02728271484375, -0.021820068359375, -0.037109375, -0.01483917236328125, 0.0298309326171875, 0.0130615234375, -0.0443115234375, -0.015655517578125, 0.015960693359375, 0.0070648193359375, -0.0380859375, 0.038055419921875, 0.00498199462890625, 0.00940704345703125, -0.03399658203125, -0.003475189208984375, -0.0022182464599609375, -0.04052734375, 0.0174407958984375, 0.033660888671875, 0.037109375, -0.019744873046875, -0.0175933837890625, -0.033843994140625, 0.01251983642578125, -0.0802001953125, -0.009124755859375, -0.00930023193359375, 0.007312774658203125, 0.037567138671875, 0.0239715576171875, -0.004550933837890625, 0.01343536376953125, -0.013824462890625, -0.01300048828125, 0.03582763671875, -0.01331329345703125, 0.01468658447265625, -0.0084686279296875, 0.0014505386352539062, -0.01340484619140625, -0.04296875, -0.01073455810546875, -0.0290985107421875, -0.0035190582275390625, 0.016510009765625, 0.0179595947265625, 0.0161285400390625, -0.0014123916625976562, -0.002506256103515625, -0.0035572052001953125, -0.0706787109375, -0.00934600830078125, -0.00978851318359375, 0.05206298828125, -0.051300048828125, -0.012451171875, -0.00540924072265625, -0.0042266845703125, -0.004730224609375, 0.005645751953125, 0.00986480712890625, -0.04461669921875, 0.0011463165283203125, 0.00115203857421875, -0.045318603515625, 0.01153564453125, 0.07269287109375, 0.003170013427734375, -0.01013946533203125, 0.013397216796875, 0.01812744140625, -0.0181121826171875, 0.0384521484375, 0.0114593505859375, -0.04022216796875, 0.01593017578125, -0.0504150390625, 0.047454833984375, -0.0460205078125, 0.032379150390625, 0.05902099609375, 0.017425537109375, -0.0243988037109375, 0.00548553466796875, -0.006984710693359375, 0.0176239013671875, -0.018890380859375, -0.0257110595703125, 0.0105438232421875, -0.08544921875, -0.00201416015625, 0.0281829833984375, 0.0005698204040527344, 0.005290985107421875, -0.033172607421875, -0.0279693603515625, 0.0068359375, -0.1126708984375, -0.07415771484375, -0.074951171875, -0.0352783203125, 0.01898193359375, 0.045623779296875, 0.0133056640625, 0.005962371826171875, 0.06671142578125, 0.020965576171875, 0.056182861328125, -0.06109619140625, -0.09375, -0.09393310546875, -0.11029052734375, -0.048187255859375, 0.00396728515625, 0.00554656982421875, 0.0191802978515625, 0.02593994140625, -0.008056640625, -0.0201416015625, 0.014678955078125, 0.0241546630859375, -0.0093231201171875, -0.03125, -0.057342529296875, -0.01739501953125, 0.007640838623046875, 0.006397247314453125, 0.036712646484375, -0.0202484130859375, 0.03875732421875, -0.0117034912109375, -0.018829345703125, -0.040130615234375, -0.0309906005859375, 0.0318603515625, 0.038330078125, -0.038665771484375, -0.017974853515625, -0.064697265625, -0.01094818115234375, -0.0025196075439453125, -0.0263214111328125, 0.0283966064453125, 0.03094482421875, -0.032989501953125, 0.0224609375, -0.0246734619140625, -0.013214111328125, -0.017974853515625, 0.00969696044921875, -0.0252685546875, 0.038482666015625, -0.0180206298828125, -0.0097503662109375, -0.006839752197265625, 0.058502197265625, -0.0017147064208984375, -0.0110015869140625, 0.0249481201171875, -0.007793426513671875, -0.032440185546875, -0.0020389556884765625, -0.07208251953125, -0.097412109375, 0.031768798828125, -0.050201416015625, 0.0098724365234375, -0.045684814453125, -0.023193359375, -0.00745391845703125, 0.11883544921875, -0.016143798828125, -0.01311492919921875, 0.021942138671875, 0.0114593505859375, -0.03936767578125, -0.00724029541015625, -0.074462890625, -0.005222320556640625, -0.09222412109375, -0.0285491943359375, -0.040557861328125, -0.03857421875, 0.0210418701171875, -0.0269622802734375, -0.0160369873046875, -0.0672607421875, 0.013153076171875, -0.01416778564453125, 0.0188446044921875, 0.0042266845703125, -0.0025577545166015625, -0.006130218505859375, 0.020050048828125, -0.025909423828125, -0.09991455078125, -0.025146484375, 0.026092529296875, 0.045074462890625, -0.02978515625, 0.0035686492919921875, -0.0242919921875, 0.060333251953125, 0.0391845703125, 0.039520263671875, -0.00510406494140625, -0.043853759765625, 0.03973388671875, 0.012664794921875, 0.007625579833984375, 0.0030498504638671875, 0.0188446044921875, -0.01526641845703125, -0.049713134765625, -0.0231170654296875, -0.016143798828125, 0.0295867919921875, 0.0167999267578125, -0.04345703125, -0.0174407958984375, -0.01214599609375, -0.0169677734375, 0.01885986328125, 0.0002655982971191406, -0.0187835693359375, -0.01824951171875, -0.01354217529296875, 0.0338134765625, -0.03973388671875, -0.0217437744140625, 0.016632080078125, 0.0550537109375, 0.01332855224609375, -0.0163421630859375, -0.006847381591796875, 0.0318603515625, 0.03070068359375, 0.005847930908203125, 0.0206451416015625, -0.002017974853515625, -0.01100921630859375, 0.037506103515625, 0.00344085693359375, 0.01198577880859375, 0.03643798828125, -0.0139007568359375, 0.0160369873046875, -0.03515625, 0.0093536376953125, 0.0207366943359375, -0.0445556640625, 0.05010986328125, 0.0188140869140625, -0.0236663818359375, 0.01099395751953125, -0.00010579824447631836, -0.00960540771484375, -0.01549530029296875, 0.002422332763671875, -0.0396728515625, 0.009185791015625, -0.049072265625, 0.054656982421875, 0.020416259765625, 0.0007414817810058594, 0.0229034423828125, 0.0233154296875, -0.0196075439453125, -0.042755126953125, -0.0014448165893554688, -0.0088348388671875, 0.00597381591796875, 0.00876617431640625, -0.01373291015625, -0.0299224853515625, -0.0382080078125, 0.1514892578125, 0.0305938720703125, -0.054718017578125, 0.041015625, -0.045257568359375, 0.0032253265380859375, 0.0272216796875, 0.01776123046875, -0.0003287792205810547, 0.0219268798828125, -0.0030689239501953125, 0.0025806427001953125, 0.053070068359375, -0.01010894775390625, -0.012420654296875, -0.02801513671875, 0.0218505859375, -0.021759033203125, -0.0171661376953125, 0.083984375, 0.026092529296875, 0.0222320556640625, -0.0286712646484375, -0.0199127197265625, -0.0188751220703125, 0.03802490234375, 0.00933837890625, 0.00937652587890625, 0.021728515625, 0.003326416015625, 0.0509033203125, -0.0460205078125, -0.008331298828125, -0.01666259765625, 0.050750732421875, -0.0088043212890625, -0.033538818359375, 0.046356201171875, -0.03790283203125, -0.007709503173828125, 0.03448486328125, -0.0360107421875, -0.06988525390625, -0.01342010498046875, 0.006805419921875, 0.039093017578125, -0.045654296875, -0.01153564453125, 0.01165771484375, -0.019195556640625, -0.004119873046875, 0.0194244384765625, -0.03277587890625, -0.013702392578125, -0.012542724609375, -0.01934814453125, -0.0160980224609375, 0.00035858154296875, -0.015960693359375, -0.0242462158203125, -0.001129150390625, -0.00506591796875, 0.0255889892578125, -0.0330810546875, 0.0231475830078125, -0.002826690673828125, -0.00446319580078125, -0.039306640625, 0.0283966064453125, 0.0162200927734375, 0.0197296142578125, -0.09783935546875, 0.004787445068359375, -0.04693603515625, 0.026336669921875, 0.04302978515625, 0.0015010833740234375, -0.018585205078125, -0.02484130859375, -0.005474090576171875, 0.024505615234375, -0.0275726318359375, -0.003692626953125, -0.036224365234375, 0.013824462890625, 0.00829315185546875, 0.0226593017578125, -0.007122039794921875, 0.00005322694778442383, -0.0025157928466796875, -0.01092529296875, -0.009033203125, 0.0013551712036132812, 0.023712158203125, -0.016143798828125, 0.040374755859375, -0.003421783447265625, -0.06036376953125, -0.044921875, 0.004302978515625, 0.0208892822265625, 0.060546875, -0.022979736328125, 0.00028443336486816406, -0.0173797607421875, -0.00959014892578125, -0.027130126953125, 0.031280517578125, -0.0281219482421875, 0.030426025390625, -0.03765869140625, -0.023590087890625, 0.043365478515625, -0.00966644287109375, -0.0119781494140625, 0.021759033203125, -0.037994384765625, 0.03759765625, 0.061431884765625, -0.030181884765625, 0.031829833984375, 0.09039306640625, 0.01094818115234375, 0.058135986328125, 0.0161285400390625, 0.001888275146484375, 0.0309295654296875, 0.012664794921875, -0.0543212890625, -0.0189208984375, 0.0233154296875, 0.01312255859375, -0.037994384765625, 0.02178955078125, -0.0294647216796875, 0.004940032958984375, 0.07464599609375, 0.070556640625, -0.10479736328125, 0.001163482666015625, -0.0026035308837890625, 0.012359619140625, 0.0309906005859375, -0.007717132568359375, -0.01032257080078125, -0.004241943359375, 0.037384033203125, 0.0103607177734375, -0.00899505615234375, 0.0195465087890625, 0.0307464599609375, -0.01297760009765625, -0.03314208984375, 0.0162200927734375, -0.0014543533325195312, -0.05584716796875, 0.0168609619140625, 0.0306854248046875, -0.04278564453125, -0.0159149169921875, -0.0247802734375, 0.0197906494140625, -0.04437255859375, -0.060791015625, 0.00333404541015625, -0.0343017578125, 0.0009021759033203125, 0.0095672607421875, 0.0112152099609375, -0.004093170166015625, 0.0340576171875, -0.0350341796875, 0.036834716796875, -0.000522613525390625, -0.00015842914581298828, 0.11004638671875, -0.007595062255859375, -0.018096923828125, -0.006137847900390625, -0.0206298828125, -0.0214080810546875, 0.0022830963134765625, 0.0004944801330566406, -0.01235198974609375, -0.0151519775390625, 0.06695556640625, -0.0017042160034179688, -0.027099609375, 0.01192474365234375, 0.02703857421875, 0.0031528472900390625, 0.0012311935424804688, 0.015594482421875, -0.0260772705078125, -0.0156097412109375, -0.0019779205322265625, -0.04693603515625, 0.005100250244140625, -0.01531982421875, -0.06854248046875, 0.0843505859375, -0.032073974609375, 0.03662109375, 0.04742431640625, 0.0260467529296875, -0.068115234375, -0.023681640625, -0.0311279296875, 0.035064697265625, 0.01549530029296875, 0.0217437744140625, -0.0110321044921875, 0.011810302734375, 0.0129547119140625, 0.00910186767578125, 0.055328369140625, 0.0189361572265625, -0.044281005859375, -0.00311279296875, 0.03399658203125, 0.009857177734375, -0.0114288330078125, 0.06488037109375, -0.03424072265625, 0.014739990234375, -0.0021495819091796875, -0.044158935546875, 0.00885772705078125, 0.017852783203125, -0.051361083984375, -0.0092010498046875, -0.007602691650390625, -0.027557373046875, 0.00444793701171875, 0.0298309326171875, -0.04974365234375, 0.0172576904296875, 0.026947021484375, -0.00933837890625, -0.00431060791015625, 0.0199127197265625, 0.007427215576171875, -0.0214996337890625, -0.004001617431640625, -0.02447509765625, 0.018585205078125, -0.003704071044921875, -0.0235137939453125, 0.017913818359375, 0.017547607421875, -0.01439666748046875, -0.0147857666015625, -0.018890380859375, 0.00867462158203125, -0.005779266357421875, 0.060791015625, 0.033172607421875, 0.038787841796875, -0.007495880126953125, 0.01119232177734375, 0.037261962890625, 0.06817626953125, -0.03216552734375, -0.0279083251953125, 0.0059356689453125, -0.005741119384765625, 0.005039215087890625, -0.0164947509765625, 0.0172119140625, 0.020233154296875, 0.016326904296875, -0.0160980224609375, 0.01410675048828125, 0.026153564453125, -0.01290130615234375, -0.0101318359375, 0.0192108154296875, -0.006763458251953125, 0.051605224609375, -0.01239776611328125, -0.0208587646484375, 0.0139617919921875, 0.0537109375, 0.021453857421875, 0.0369873046875, -0.0355224609375, -0.0218353271484375, -0.022369384765625, 0.04254150390625, -0.0014781951904296875, 0.0202484130859375, -0.048858642578125, -0.032440185546875, -0.012725830078125, 0.048980712890625, -0.013702392578125, 0.031646728515625, 0.031280517578125, 0.036102294921875, -0.0268707275390625, -0.0268707275390625, 0.041351318359375, -0.01473236083984375, 0.027313232421875, 0.00044727325439453125, 0.0066986083984375, -0.019775390625, -0.0248870849609375, -0.02044677734375, 0.049560546875, -0.0238037109375, -0.0036334991455078125, 0.04693603515625, -0.0032024383544921875, -0.00905609130859375, 0.031646728515625, -0.007381439208984375, 0.053955078125, 0.006061553955078125, -0.058990478515625, -0.0166015625, -0.05712890625, 0.01605224609375, 0.04119873046875, 0.0419921875, 0.034393310546875, -0.0045166015625, 0.006801605224609375, -0.020599365234375, 0.0109710693359375, -0.002414703369140625, 0.00945281982421875, 0.01071929931640625, 0.0189361572265625, 0.0006303787231445312, -0.03057861328125, -0.0080413818359375, -0.033416748046875, 0.045867919921875, 0.0183868408203125, 0.1231689453125, -0.057220458984375, 0.038360595703125, -0.043548583984375, 0.006038665771484375, -0.006168365478515625, -0.038421630859375, 0.026336669921875, 0.0322265625, -0.00679779052734375, -0.0199737548828125, -0.06591796875, 0.0394287109375, -0.00518035888671875, -0.02410888671875, 0.033843994140625, -0.0207977294921875, -0.0010938644409179688, -0.00606536865234375, 0.0158233642578125, -0.01139068603515625, -0.0966796875, -0.0167388916015625, 0.053680419921875, -0.01202392578125, 0.057403564453125, -0.0205535888671875, -0.0017719268798828125, -0.00949859619140625, -0.026824951171875, 0.0249481201171875, -0.0256500244140625, 0.0426025390625, 0.0271148681640625, -0.00630950927734375, -0.046478271484375, -0.007274627685546875, -0.0231475830078125, -0.0159149169921875, -0.00738525390625, 0.038909912109375, -0.011749267578125, -0.010101318359375, 0.00347137451171875, -0.002071380615234375, 0.0035839080810546875, -0.0340576171875, -0.01172637939453125, 0.0205841064453125, -0.01027679443359375, 0.007709503173828125, 0.0005903244018554688, -0.0205535888671875, -0.00658416748046875, -0.004970550537109375, 0.01142120361328125, 0.00554656982421875, -0.0222625732421875, -0.0419921875, -0.00603485107421875, 0.0213623046875, -0.01099395751953125, -0.0250701904296875, 0.0258941650390625, -0.0433349609375, 0.01555633544921875, -0.0262298583984375, -0.0153961181640625, 0.0030975341796875, 0.033477783203125, -0.0159454345703125, -0.0020771026611328125, -0.02606201171875, -0.02099609375, -0.018798828125, 0.01221466064453125, 0.0438232421875, -0.0130462646484375, 0.0220794677734375, -0.04681396484375, -0.02874755859375, 0.00992584228515625, -0.056396484375, -0.0006742477416992188, 0.0171051025390625, -0.01462554931640625, -0.0333251953125, -0.0765380859375, 0.02276611328125, -0.07281494140625, -0.0223846435546875, -0.0308074951171875, -0.007091522216796875, -0.016448974609375, -0.039642333984375, -0.02923583984375, 0.00846099853515625, 0.007335662841796875, -0.0269927978515625, -0.040008544921875, 0.0013704299926757812, -0.041656494140625, 0.036956787109375, -0.011962890625, -0.02203369140625, 0.0261383056640625, 0.0697021484375, 0.0157623291015625, 0.02178955078125, -0.022430419921875, 0.0283660888671875, -0.051513671875, 0.027679443359375, 0.0150604248046875, 0.0071563720703125, 0.006313323974609375, 0.001010894775390625, 0.01544189453125, 0.05145263671875, -0.01462554931640625, -0.01531982421875, -0.01207733154296875, -0.053619384765625, -0.00594329833984375, -0.0318603515625, 0.004451751708984375, -0.0268402099609375, -0.01071929931640625, 0.043731689453125, -0.00911712646484375, -0.002960205078125, -0.056488037109375, -0.0213470458984375, -0.027252197265625, -0.01108551025390625, 0.042205810546875, -0.07733154296875, 0.01120758056640625, 0.010284423828125, -0.016876220703125, -0.0051116943359375, -0.0020618438720703125, -0.030181884765625, 0.01181793212890625, -0.0013761520385742188, -0.0081634521484375, -0.027496337890625, 0.0032176971435546875, 0.052734375, -0.036224365234375, 0.01236724853515625, 0.0089569091796875, 0.00034618377685546875, 0.0406494140625, -0.002964019775390625, 0.005401611328125, 0.0121002197265625, -0.02978515625, -0.01351165771484375, 0.01471710205078125, 0.0134429931640625, -0.004955291748046875, -0.026153564453125, 0.036376953125, 0.0113525390625, -0.024627685546875, -0.0018520355224609375, 0.01910400390625, 0.00876617431640625, -0.0535888671875, 0.05364990234375, 0.016632080078125, 0.0015010833740234375, -0.0185089111328125, 0.055816650390625, -0.0173492431640625, -0.036376953125, 0.01277923583984375, -0.043792724609375, 0.003742218017578125, 0.004314422607421875, 0.04656982421875, -0.0482177734375, 0.044189453125, 0.007442474365234375, 0.024139404296875, 0.0186920166015625 ]