id
stringlengths 40
40
| text
stringlengths 29
2.03k
| original_text
stringlengths 3
154k
| subdomain
stringclasses 20
values | metadata
dict | emb
sequencelengths 1.02k
1.02k
|
---|---|---|---|---|---|
8092155e273986e5e39f6c7ee8214352f9140c51 | Wordpress Stackexchange
Q: Problems with localization I'm creating a plugin and I've put:
define ('WPLANG', 'it_IT');
into wp-config.php file.
After plugin Name in the Header of the Plugin declaration:
* Text Domain: endpoint
* Domain Path: /languages/
For the load domain:
add_action( 'plugins_loaded', 'myplugin_load_textdomain' );
function myplugin_load_textdomain() {
load_plugin_textdomain( 'endpoint', false, dirname( __FILE__ ) . '/languages/' );
}
In languages I created pot, po and mo file with this names: end-point.pot, end-point-it_IT.po and end-point-it_IT.mo.
I switched to Italian but nothing is changed.
Any help?
A: 1) Presuming you're running WordPress 4.x. The WPLANG constant does nothing. WordPress 3 and below defined the default language in wp-config.php but since WordPress 4 setting your site language is done via the General Settings page in your admin area. Go to Settings > General and scroll to the bottom where is says "Site Language" next to a dropdown list.
2) The argument dirname(__FILE__).'/languages/' is wrong as this should be a relative path. Use dirname(plugin_basename(__FILE__)).'/languages/'
| Q: Problems with localization I'm creating a plugin and I've put:
define ('WPLANG', 'it_IT');
into wp-config.php file.
After plugin Name in the Header of the Plugin declaration:
* Text Domain: endpoint
* Domain Path: /languages/
For the load domain:
add_action( 'plugins_loaded', 'myplugin_load_textdomain' );
function myplugin_load_textdomain() {
load_plugin_textdomain( 'endpoint', false, dirname( __FILE__ ) . '/languages/' );
}
In languages I created pot, po and mo file with this names: end-point.pot, end-point-it_IT.po and end-point-it_IT.mo.
I switched to Italian but nothing is changed.
Any help?
A: 1) Presuming you're running WordPress 4.x. The WPLANG constant does nothing. WordPress 3 and below defined the default language in wp-config.php but since WordPress 4 setting your site language is done via the General Settings page in your admin area. Go to Settings > General and scroll to the bottom where is says "Site Language" next to a dropdown list.
2) The argument dirname(__FILE__).'/languages/' is wrong as this should be a relative path. Use dirname(plugin_basename(__FILE__)).'/languages/'
A: Ok I made a mistake with dirname (FILE) . /languages/ and the fact that debuggin via load_plugin_textdomain I saw that it create the file name by the domaèn passed as argument to the function.
Thanks anyway.
| wordpress | {
"language": "en",
"length": 195,
"provenance": "stackexchange_00019.jsonl.gz:489204",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/313726"
} | [
0.023193359375,
-0.019744873046875,
0.0021533966064453125,
-0.0384521484375,
-0.024200439453125,
0.00304412841796875,
-0.00725555419921875,
0.0042572021484375,
-0.01155853271484375,
0.01143646240234375,
0.024200439453125,
0.004306793212890625,
-0.015960693359375,
-0.03997802734375,
0.01110076904296875,
-0.0139617919921875,
0.01043701171875,
0.00952911376953125,
0.01372528076171875,
-0.0169219970703125,
-0.0082550048828125,
-0.020477294921875,
0.040618896484375,
-0.00690460205078125,
0.04254150390625,
-0.05194091796875,
0.06732177734375,
-0.0216522216796875,
-0.00399017333984375,
-0.0413818359375,
0.03875732421875,
0.02301025390625,
0.034759521484375,
-0.0092010498046875,
-0.00811004638671875,
-0.034271240234375,
0.00458526611328125,
-0.014923095703125,
-0.00994873046875,
0.0218353271484375,
0.03411865234375,
-0.006839752197265625,
0.0019435882568359375,
0.0780029296875,
-0.006103515625,
-0.086181640625,
0.0716552734375,
-0.03192138671875,
-0.00197601318359375,
0.0323486328125,
0.0224151611328125,
-0.0078582763671875,
0.021820068359375,
-0.027984619140625,
-0.0007214546203613281,
-0.00934600830078125,
-0.06781005859375,
0.0562744140625,
0.0030059814453125,
0.0283355712890625,
0.01207733154296875,
0.0194091796875,
-0.005870819091796875,
0.01050567626953125,
-0.00991058349609375,
-0.0015821456909179688,
-0.0220184326171875,
0.01824951171875,
-0.0296173095703125,
-0.0086669921875,
0.0245208740234375,
-0.01276397705078125,
0.011199951171875,
-0.005817413330078125,
-0.034698486328125,
0.0194549560546875,
-0.023681640625,
-0.017425537109375,
0.057647705078125,
-0.03173828125,
0.0229644775390625,
0.0021343231201171875,
-0.03094482421875,
-0.01522064208984375,
0.03070068359375,
0.0279693603515625,
-0.0056610107421875,
-0.0268096923828125,
-0.035919189453125,
-0.00661468505859375,
-0.0262908935546875,
0.0191497802734375,
-0.03546142578125,
-0.0275421142578125,
-0.01277923583984375,
-0.033111572265625,
-0.01554107666015625,
0.01247406005859375,
-0.01171875,
0.01397705078125,
-0.0028247833251953125,
-0.03533935546875,
0.0257110595703125,
-0.020660400390625,
0.0279998779296875,
0.0361328125,
-0.033966064453125,
-0.0003962516784667969,
0.057586669921875,
0.036102294921875,
0.0276641845703125,
0.0175628662109375,
-0.0096282958984375,
-0.005146026611328125,
-0.0295867919921875,
-0.006671905517578125,
-0.037933349609375,
0.0035648345947265625,
0.00020062923431396484,
-0.0028972625732421875,
0.00215911865234375,
-0.004817962646484375,
-0.0164337158203125,
0.01413726806640625,
-0.0003428459167480469,
-0.02496337890625,
-0.0215301513671875,
0.0182647705078125,
-0.006595611572265625,
0.0242767333984375,
0.0019102096557617188,
0.00457763671875,
0.002056121826171875,
0.0007386207580566406,
-0.0282135009765625,
-0.007587432861328125,
0.0174407958984375,
0.00981903076171875,
0.00394439697265625,
0.0013523101806640625,
0.006805419921875,
-0.00557708740234375,
0.01702880859375,
0.006473541259765625,
-0.00888824462890625,
-0.0037975311279296875,
0.00799560546875,
0.037261962890625,
0.0035495758056640625,
-0.044158935546875,
0.040069580078125,
-0.02728271484375,
0.042266845703125,
0.0159759521484375,
-0.04547119140625,
-0.0214996337890625,
0.026885986328125,
-0.0310211181640625,
-0.0175628662109375,
-0.050750732421875,
-0.006130218505859375,
-0.02899169921875,
-0.03955078125,
-0.035400390625,
-0.0533447265625,
0.027099609375,
0.008148193359375,
0.0076904296875,
0.0182037353515625,
-0.027801513671875,
0.009368896484375,
0.03179931640625,
-0.00580596923828125,
0.00887298583984375,
0.0206146240234375,
0.00740814208984375,
-0.054046630859375,
0.04278564453125,
0.01377105712890625,
0.0240325927734375,
0.0286407470703125,
-0.01464080810546875,
0.06573486328125,
0.0293121337890625,
-0.04888916015625,
-0.0213623046875,
0.02484130859375,
0.03338623046875,
0.0235748291015625,
0.00814056396484375,
0.0340576171875,
-0.0135955810546875,
-0.0753173828125,
0.0229644775390625,
-0.010345458984375,
0.026702880859375,
-0.005687713623046875,
0.040191650390625,
0.0005307197570800781,
-0.02813720703125,
0.0262298583984375,
-0.0245819091796875,
0.0335693359375,
0.00528717041015625,
-0.0247955322265625,
0.00384521484375,
-0.017974853515625,
0.0203704833984375,
0.052642822265625,
0.0005230903625488281,
-0.00449371337890625,
0.0216522216796875,
-0.0098114013671875,
-0.0635986328125,
-0.08148193359375,
0.03521728515625,
-0.0277557373046875,
0.042022705078125,
0.033782958984375,
0.0247802734375,
0.067626953125,
-0.040313720703125,
0.061614990234375,
-0.008392333984375,
-0.0079498291015625,
0.02032470703125,
-0.022552490234375,
0.007602691650390625,
0.020751953125,
-0.004138946533203125,
0.04864501953125,
0.0278472900390625,
-0.0202789306640625,
-0.00853729248046875,
0.0013380050659179688,
0.00791168212890625,
0.02911376953125,
-0.06878662109375,
0.01293182373046875,
0.03802490234375,
0.0218505859375,
0.003612518310546875,
-0.048858642578125,
-0.036163330078125,
-0.01139068603515625,
-0.058624267578125,
0.001636505126953125,
-0.0155029296875,
0.0199737548828125,
0.0477294921875,
-0.048248291015625,
0.0218963623046875,
0.0106048583984375,
-0.061614990234375,
0.01023101806640625,
0.0404052734375,
-0.031768798828125,
-0.06964111328125,
0.046112060546875,
-0.0200653076171875,
0.03497314453125,
-0.01090240478515625,
-0.042388916015625,
0.0308837890625,
0.0181427001953125,
-0.00647735595703125,
-0.0177764892578125,
-0.002620697021484375,
-0.0306854248046875,
0.01113128662109375,
0.0294342041015625,
-0.032745361328125,
0.0017309188842773438,
-0.0012159347534179688,
0.0040740966796875,
-0.04736328125,
-0.023040771484375,
0.0230255126953125,
0.0028591156005859375,
-0.03192138671875,
0.001697540283203125,
0.01453399658203125,
-0.0264129638671875,
-0.004505157470703125,
-0.0167236328125,
-0.052642822265625,
0.004772186279296875,
0.03594970703125,
0.01465606689453125,
-0.0081634521484375,
0.0210418701171875,
0.002948760986328125,
-0.03814697265625,
0.041900634765625,
-0.00726318359375,
-0.036224365234375,
0.0859375,
0.02325439453125,
-0.007717132568359375,
-0.00440216064453125,
0.0214996337890625,
0.03216552734375,
0.020050048828125,
-0.05584716796875,
0.0012063980102539062,
-0.0035343170166015625,
-0.0135650634765625,
0.0123443603515625,
-0.0108795166015625,
-0.022247314453125,
-0.042694091796875,
-0.006641387939453125,
0.003467559814453125,
0.004817962646484375,
-0.029754638671875,
-0.059906005859375,
-0.0204620361328125,
-0.02001953125,
-0.10333251953125,
-0.066650390625,
0.0182342529296875,
-0.0380859375,
0.057861328125,
0.020263671875,
-0.005336761474609375,
-0.07452392578125,
0.04693603515625,
0.007289886474609375,
0.01383209228515625,
-0.06378173828125,
-0.0316162109375,
-0.0667724609375,
-0.059783935546875,
-0.043426513671875,
0.021026611328125,
-0.01169586181640625,
0.00972747802734375,
-0.0307464599609375,
-0.01263427734375,
-0.00197601318359375,
0.006862640380859375,
0.04254150390625,
0.01641845703125,
-0.007740020751953125,
-0.0012140274047851562,
-0.0133819580078125,
0.049835205078125,
-0.0165863037109375,
0.0245361328125,
0.03912353515625,
-0.0274505615234375,
-0.0028858184814453125,
0.02490234375,
-0.0027332305908203125,
0.004337310791015625,
-0.01459503173828125,
-0.0087890625,
-0.00962066650390625,
-0.030731201171875,
-0.0546875,
-0.047210693359375,
0.01812744140625,
-0.03399658203125,
0.03997802734375,
0.0026035308837890625,
-0.037078857421875,
0.032684326171875,
0.0194549560546875,
0.0053253173828125,
0.0027408599853515625,
0.026336669921875,
-0.04034423828125,
0.026153564453125,
-0.005382537841796875,
-0.003742218017578125,
-0.0264434814453125,
0.07781982421875,
0.005168914794921875,
-0.04486083984375,
0.015380859375,
0.0009813308715820312,
0.00730133056640625,
-0.036865234375,
-0.043182373046875,
-0.00476837158203125,
0.03558349609375,
-0.0155487060546875,
-0.006839752197265625,
-0.0161590576171875,
-0.020172119140625,
-0.0088653564453125,
0.02996826171875,
-0.0208587646484375,
0.002696990966796875,
0.02386474609375,
0.017181396484375,
-0.061370849609375,
-0.03277587890625,
-0.0670166015625,
0.002483367919921875,
-0.0277557373046875,
0.0009198188781738281,
0.017547607421875,
-0.0214080810546875,
0.0004868507385253906,
0.0183868408203125,
-0.0035381317138671875,
-0.0299224853515625,
0.0313720703125,
-0.024017333984375,
0.0292510986328125,
0.006114959716796875,
0.01552581787109375,
-0.0096588134765625,
-0.0170135498046875,
-0.0199737548828125,
-0.108642578125,
-0.0192718505859375,
-0.0303192138671875,
0.07940673828125,
0.01209259033203125,
-0.033843994140625,
-0.027496337890625,
0.054107666015625,
0.007610321044921875,
0.005374908447265625,
0.0185394287109375,
0.019073486328125,
-0.010650634765625,
0.00637054443359375,
0.02191162109375,
-0.0186767578125,
0.00580596923828125,
-0.00988006591796875,
-0.07037353515625,
0.0221099853515625,
-0.0011463165283203125,
0.01493072509765625,
0.0278472900390625,
-0.06097412109375,
-0.046600341796875,
-0.021453857421875,
-0.01357269287109375,
-0.0019311904907226562,
-0.0172119140625,
-0.00873565673828125,
-0.01232147216796875,
-0.05047607421875,
0.05816650390625,
-0.014984130859375,
0.0191802978515625,
-0.0009832382202148438,
0.08392333984375,
0.006496429443359375,
-0.03082275390625,
-0.047515869140625,
-0.002490997314453125,
0.01538848876953125,
0.00714874267578125,
0.0760498046875,
0.03082275390625,
-0.00986480712890625,
0.0771484375,
0.005035400390625,
0.01261138916015625,
0.04119873046875,
0.0178375244140625,
0.0215911865234375,
-0.0302276611328125,
0.026824951171875,
0.0222930908203125,
-0.0909423828125,
0.0684814453125,
0.0205230712890625,
-0.027099609375,
0.0040740966796875,
0.01291656494140625,
-0.006103515625,
-0.0182647705078125,
-0.0160675048828125,
-0.09747314453125,
0.0343017578125,
-0.01406097412109375,
-0.035125732421875,
-0.022125244140625,
0.0130767822265625,
0.02685546875,
0.005168914794921875,
-0.029998779296875,
0.07025146484375,
0.064208984375,
0.05255126953125,
0.0137939453125,
0.08740234375,
-0.00403594970703125,
-0.023284912109375,
-0.0027980804443359375,
0.055389404296875,
0.00852203369140625,
-0.01253509521484375,
-0.0200042724609375,
0.0020961761474609375,
0.032562255859375,
0.025421142578125,
-0.0045318603515625,
0.016021728515625,
0.00359344482421875,
-0.0137176513671875,
0.00792694091796875,
0.00431060791015625,
-0.005680084228515625,
-0.035919189453125,
0.01983642578125,
0.006282806396484375,
-0.004093170166015625,
-0.03271484375,
0.06951904296875,
-0.029571533203125,
0.02178955078125,
0.010894775390625,
-0.01116180419921875,
-0.0238800048828125,
0.06707763671875,
0.007648468017578125,
-0.051513671875,
0.01471710205078125,
0.0360107421875,
0.0068359375,
-0.030670166015625,
0.021514892578125,
0.028900146484375,
0.04510498046875,
-0.045806884765625,
-0.0601806640625,
0.0203704833984375,
-0.04034423828125,
0.00641632080078125,
-0.01493072509765625,
-0.04217529296875,
-0.046142578125,
-0.019287109375,
0.0124969482421875,
0.031524658203125,
-0.0164947509765625,
0.00786590576171875,
-0.005931854248046875,
0.01378631591796875,
-0.00849151611328125,
0.039764404296875,
-0.052459716796875,
0.002841949462890625,
0.00994873046875,
0.01168060302734375,
0.003543853759765625,
-0.007579803466796875,
-0.0601806640625,
-0.0227813720703125,
0.001422882080078125,
-0.004535675048828125,
0.0182037353515625,
-0.0262603759765625,
0.0254058837890625,
-0.023834228515625,
0.019805908203125,
-0.044036865234375,
0.033905029296875,
-0.0288238525390625,
-0.037384033203125,
-0.0382080078125,
-0.0178985595703125,
-0.0228729248046875,
-0.02838134765625,
-0.0026149749755859375,
-0.01470184326171875,
-0.03851318359375,
0.00849151611328125,
0.002124786376953125,
0.02069091796875,
-0.01459503173828125,
-0.0010404586791992188,
0.007633209228515625,
0.0153045654296875,
-0.00518798828125,
0.041595458984375,
-0.02691650390625,
0.0528564453125,
0.01190948486328125,
0.01473236083984375,
0.006927490234375,
0.0164947509765625,
-0.005992889404296875,
0.007568359375,
0.04608154296875,
-0.0209808349609375,
-0.052642822265625,
-0.0367431640625,
-0.0237884521484375,
-0.0013885498046875,
0.0311431884765625,
-0.026641845703125,
0.0135955810546875,
0.0025310516357421875,
-0.007366180419921875,
-0.0099029541015625,
0.0299835205078125,
0.022705078125,
0.04449462890625,
0.0176544189453125,
-0.055755615234375,
0.02545166015625,
-0.01165771484375,
-0.0018815994262695312,
0.041534423828125,
-0.052520751953125,
0.031402587890625,
0.0634765625,
-0.02374267578125,
0.020660400390625,
0.0087738037109375,
-0.00008416175842285156,
0.03680419921875,
0.0032138824462890625,
0.029022216796875,
0.00916290283203125,
0.0223388671875,
0.0149688720703125,
-0.01219940185546875,
0.0494384765625,
0.0015106201171875,
-0.00827789306640625,
0.01222991943359375,
-0.01715087890625,
0.017913818359375,
0.056915283203125,
0.0458984375,
-0.08038330078125,
0.00311279296875,
-0.0171966552734375,
-0.0267333984375,
0.0341796875,
-0.04034423828125,
0.0003266334533691406,
0.002490997314453125,
0.06268310546875,
-0.0036563873291015625,
-0.029693603515625,
0.025146484375,
-0.0145111083984375,
0.0016841888427734375,
0.01409149169921875,
0.03265380859375,
0.01525115966796875,
-0.0006775856018066406,
-0.019256591796875,
-0.0110626220703125,
-0.0022945404052734375,
-0.02508544921875,
-0.0260162353515625,
0.041107177734375,
-0.041717529296875,
-0.073974609375,
0.0219268798828125,
-0.0401611328125,
-0.006702423095703125,
0.047882080078125,
-0.0228424072265625,
0.0340576171875,
0.056640625,
-0.0338134765625,
0.013275146484375,
0.0056304931640625,
0.0528564453125,
0.043487548828125,
0.0014390945434570312,
0.0050201416015625,
0.037811279296875,
-0.048004150390625,
-0.0005221366882324219,
-0.0289306640625,
0.0301055908203125,
-0.005279541015625,
-0.0419921875,
0.041351318359375,
0.00742340087890625,
-0.0210723876953125,
0.021942138671875,
-0.01386260986328125,
-0.0007624626159667969,
-0.016510009765625,
0.02044677734375,
-0.05426025390625,
-0.054107666015625,
-0.005096435546875,
-0.06329345703125,
0.01038360595703125,
-0.022216796875,
-0.07598876953125,
0.10589599609375,
-0.0010309219360351562,
0.05511474609375,
-0.0090179443359375,
0.0290374755859375,
0.009368896484375,
0.016876220703125,
-0.005565643310546875,
0.0341796875,
-0.02923583984375,
-0.0009455680847167969,
-0.03314208984375,
0.005710601806640625,
-0.00228118896484375,
0.031341552734375,
0.0537109375,
0.00830841064453125,
-0.015655517578125,
0.002429962158203125,
0.03173828125,
0.00012290477752685547,
-0.036163330078125,
0.032012939453125,
0.0017595291137695312,
0.0029048919677734375,
-0.0352783203125,
-0.0030307769775390625,
0.0458984375,
-0.0858154296875,
-0.046630859375,
0.0211029052734375,
-0.006664276123046875,
-0.01458740234375,
-0.02935791015625,
0.0062255859375,
-0.0281524658203125,
-0.0189666748046875,
0.010467529296875,
0.0008015632629394531,
0.034088134765625,
0.01012420654296875,
0.030609130859375,
-0.0157470703125,
-0.0092620849609375,
-0.0232696533203125,
0.05218505859375,
-0.015380859375,
0.0015506744384765625,
0.0135955810546875,
0.0157928466796875,
0.003391265869140625,
-0.060546875,
-0.0330810546875,
-0.023681640625,
-0.005306243896484375,
0.0176239013671875,
0.033172607421875,
0.02764892578125,
0.03631591796875,
0.052032470703125,
-0.0013942718505859375,
0.017333984375,
-0.03741455078125,
-0.0309600830078125,
-0.0006256103515625,
0.0089874267578125,
-0.005161285400390625,
0.01171112060546875,
0.00264739990234375,
-0.037017822265625,
0.01068115234375,
-0.0014591217041015625,
-0.01235198974609375,
-0.0010595321655273438,
0.006992340087890625,
-0.01410675048828125,
-0.006038665771484375,
-0.007511138916015625,
0.017181396484375,
-0.0321044921875,
0.007404327392578125,
0.022003173828125,
0.046234130859375,
-0.016448974609375,
0.058685302734375,
-0.011749267578125,
-0.017425537109375,
0.0067291259765625,
0.0136871337890625,
-0.007595062255859375,
-0.0160064697265625,
-0.0190582275390625,
-0.028167724609375,
-0.006351470947265625,
0.041290283203125,
0.029632568359375,
0.0221405029296875,
0.061981201171875,
0.055450439453125,
-0.0197296142578125,
0.0015163421630859375,
0.055419921875,
-0.003643035888671875,
0.0010547637939453125,
-0.0260467529296875,
0.050445556640625,
0.017669677734375,
0.0194549560546875,
-0.0057220458984375,
0.06805419921875,
-0.006046295166015625,
-0.033782958984375,
0.0343017578125,
-0.0174102783203125,
-0.01413726806640625,
0.04052734375,
-0.029052734375,
0.07342529296875,
-0.013671875,
-0.0535888671875,
-0.005512237548828125,
-0.0241851806640625,
-0.028472900390625,
0.0126495361328125,
0.020904541015625,
-0.016876220703125,
0.052276611328125,
-0.00817108154296875,
-0.016571044921875,
0.021942138671875,
-0.0136566162109375,
0.020233154296875,
0.0191497802734375,
0.007617950439453125,
0.004207611083984375,
-0.01447296142578125,
-0.016265869140625,
-0.03582763671875,
0.06646728515625,
0.027313232421875,
0.0625,
-0.03765869140625,
0.045196533203125,
0.005523681640625,
0.01122283935546875,
-0.0137176513671875,
-0.002414703369140625,
0.0214080810546875,
0.001132965087890625,
0.022552490234375,
-0.0115509033203125,
-0.036102294921875,
-0.014923095703125,
0.0180511474609375,
-0.033203125,
-0.0078582763671875,
-0.03570556640625,
0.034393310546875,
0.006000518798828125,
0.066162109375,
-0.01425933837890625,
-0.06622314453125,
-0.07098388671875,
0.01328277587890625,
0.03875732421875,
0.06365966796875,
-0.039520263671875,
0.01172637939453125,
-0.0215911865234375,
-0.0052032470703125,
0.0207672119140625,
-0.00494384765625,
-0.006072998046875,
0.017333984375,
-0.0260467529296875,
-0.047943115234375,
-0.0312042236328125,
-0.033294677734375,
0.000995635986328125,
-0.0175323486328125,
0.055328369140625,
-0.033782958984375,
-0.00943756103515625,
-0.00862884521484375,
-0.043212890625,
-0.0113983154296875,
-0.031707763671875,
-0.004962921142578125,
-0.01195526123046875,
0.0223236083984375,
-0.017364501953125,
-0.0293731689453125,
-0.009124755859375,
-0.0302886962890625,
0.00014543533325195312,
0.01445770263671875,
-0.0047607421875,
-0.01122283935546875,
0.0017337799072265625,
0.01308441162109375,
0.005710601806640625,
-0.01404571533203125,
-0.038970947265625,
0.0341796875,
-0.05535888671875,
0.01094818115234375,
-0.027923583984375,
-0.00534820556640625,
0.00844573974609375,
0.040496826171875,
-0.05029296875,
-0.023284912109375,
-0.0205078125,
-0.010467529296875,
-0.0361328125,
0.009765625,
-0.00640869140625,
0.002109527587890625,
-0.0273590087890625,
0.0604248046875,
-0.00450897216796875,
0.0994873046875,
-0.013397216796875,
0.0035762786865234375,
0.050140380859375,
-0.0017786026000976562,
-0.049774169921875,
-0.1014404296875,
0.00373077392578125,
-0.07989501953125,
0.00626373291015625,
-0.00815582275390625,
-0.033599853515625,
-0.0416259765625,
-0.08013916015625,
-0.09295654296875,
0.0579833984375,
-0.00926971435546875,
-0.03155517578125,
-0.0330810546875,
0.002620697021484375,
-0.01334381103515625,
0.06103515625,
-0.004947662353515625,
-0.030181884765625,
-0.0245513916015625,
0.01332855224609375,
-0.00605010986328125,
0.03350830078125,
-0.0004875659942626953,
-0.01018524169921875,
0.0198211669921875,
0.016815185546875,
0.0400390625,
-0.034271240234375,
0.0245208740234375,
-0.0225067138671875,
0.036468505859375,
0.06573486328125,
-0.034820556640625,
-0.0289306640625,
-0.01213836669921875,
-0.0180816650390625,
0.0147705078125,
-0.060699462890625,
-0.01678466796875,
-0.03240966796875,
0.04351806640625,
0.0016460418701171875,
0.00225830078125,
-0.0273284912109375,
-0.00421142578125,
-0.023223876953125,
0.0023593902587890625,
0.00823211669921875,
0.00612640380859375,
-0.036590576171875,
0.007068634033203125,
0.0227813720703125,
0.0193023681640625,
-0.01367950439453125,
0.0157928466796875,
0.0026092529296875,
-0.04217529296875,
0.009765625,
-0.030853271484375,
0.0001703500747680664,
-0.08648681640625,
0.08026123046875,
-0.0264129638671875,
0.009613037109375,
-0.00057220458984375,
0.066650390625,
0.0264892578125,
0.0129241943359375,
0.002105712890625,
0.00382232666015625,
-0.01433563232421875,
0.015167236328125,
0.007099151611328125,
0.027313232421875,
-0.0164642333984375,
-0.024688720703125,
-0.01885986328125,
0.0010814666748046875,
0.0097503662109375,
0.00923919677734375,
-0.0230560302734375,
0.00688934326171875,
0.0048980712890625,
0.0056915283203125,
0.0083160400390625,
-0.0546875,
-0.009979248046875,
0.00879669189453125,
-0.0640869140625,
-0.00030159950256347656,
-0.05596923828125,
-0.044281005859375,
0.0263671875,
0.004791259765625,
0.0262298583984375,
-0.018157958984375,
0.042205810546875,
-0.0246429443359375,
-0.011932373046875,
0.019317626953125
] |
d52b3fbea4da4633b5c102d3d0a3f59b3ae7f60a | Wordpress Stackexchange
Q: Why is die() used at the end of function that handles an Ajax request? What could go wrong if I am not using die(); after the function that handles an Ajax request?
I have noticed that almost all the WordPress Ajax-based code is using it.
A: If you do not die, execution will continue and might generate extra output which might break whatever information you are trying to send from the server to the browser. Strictly speaking, you might not need to die, but there is very little point in taking the risk.
In more general terms, WordPress Ajax shows its age and the lack of experience working with Ajax when it was designed. You should use the WordPress JSON routes instead, as they can have a better URL structure, and the programming structure is more logical and modular.
| Q: Why is die() used at the end of function that handles an Ajax request? What could go wrong if I am not using die(); after the function that handles an Ajax request?
I have noticed that almost all the WordPress Ajax-based code is using it.
A: If you do not die, execution will continue and might generate extra output which might break whatever information you are trying to send from the server to the browser. Strictly speaking, you might not need to die, but there is very little point in taking the risk.
In more general terms, WordPress Ajax shows its age and the lack of experience working with Ajax when it was designed. You should use the WordPress JSON routes instead, as they can have a better URL structure, and the programming structure is more logical and modular.
A: WordPress should not require this and it suggests poor coding practices.
When you make an Ajax request, the requested URL should generate a response with the data required (and also set the correct headers to say what type of data it is, e.g. JSON). Nothing else should be provided in the response except the required output.
I work with PHP and JavaScript all the time - although not a WordPress developer - and was amused by the title of this question. If that's what WordPress does, that's awful. As indicated in the accepted answer, it's likely to be a way to stop any further output being included in the response. But of course that "further output" should never be part of the response to begin with.
| wordpress | {
"language": "en",
"length": 267,
"provenance": "stackexchange_00019.jsonl.gz:489215",
"question_score": "9",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/313779"
} | [
0.0838623046875,
0.00795745849609375,
-0.016510009765625,
-0.05694580078125,
0.0247955322265625,
-0.0311737060546875,
0.0258636474609375,
-0.0016565322875976562,
0.0316162109375,
0.033905029296875,
-0.0169219970703125,
-0.01041412353515625,
0.01454925537109375,
-0.0140228271484375,
-0.034912109375,
0.002811431884765625,
0.038482666015625,
-0.0259246826171875,
0.0111541748046875,
-0.0007886886596679688,
-0.0086669921875,
0.01401519775390625,
0.040618896484375,
-0.00799560546875,
0.0157318115234375,
0.0121917724609375,
0.0133209228515625,
-0.01146697998046875,
0.00341033935546875,
-0.003993988037109375,
0.007427215576171875,
0.0166168212890625,
0.01983642578125,
0.02313232421875,
-0.0112152099609375,
0.0274658203125,
0.00736236572265625,
0.0210113525390625,
0.02374267578125,
0.032073974609375,
0.0299072265625,
-0.01213836669921875,
0.06512451171875,
0.00940704345703125,
0.01317596435546875,
-0.0132904052734375,
0.035980224609375,
-0.038818359375,
0.0017156600952148438,
0.04046630859375,
0.0264892578125,
-0.0202178955078125,
0.0193939208984375,
0.044525146484375,
-0.0175628662109375,
-0.010528564453125,
0.0170745849609375,
0.002269744873046875,
0.0494384765625,
-0.0162200927734375,
-0.055389404296875,
-0.022613525390625,
0.0208892822265625,
-0.046539306640625,
0.01265716552734375,
-0.023284912109375,
-0.0135345458984375,
0.0168304443359375,
-0.0439453125,
0.015869140625,
0.045867919921875,
-0.0280303955078125,
-0.0053863525390625,
0.00017762184143066406,
0.0294952392578125,
-0.01541900634765625,
0.002941131591796875,
0.004795074462890625,
-0.00769805908203125,
0.050201416015625,
-0.00826263427734375,
0.020263671875,
-0.0224761962890625,
-0.033294677734375,
0.01454925537109375,
-0.012725830078125,
-0.015167236328125,
-0.004055023193359375,
-0.055877685546875,
-0.058349609375,
-0.0411376953125,
-0.02801513671875,
-0.026702880859375,
-0.054443359375,
-0.041473388671875,
-0.0219573974609375,
-0.0374755859375,
-0.046722412109375,
0.0089569091796875,
0.01971435546875,
0.03472900390625,
-0.0274200439453125,
0.0274200439453125,
-0.00379180908203125,
0.0170135498046875,
0.04205322265625,
-0.02691650390625,
-0.0205230712890625,
0.034271240234375,
0.021728515625,
-0.006397247314453125,
0.00457763671875,
-0.0146942138671875,
-0.054962158203125,
0.014739990234375,
0.0285797119140625,
-0.02294921875,
0.033843994140625,
0.01181793212890625,
0.0142364501953125,
-0.01422119140625,
-0.0232391357421875,
0.03631591796875,
0.01678466796875,
0.0279083251953125,
0.0277252197265625,
-0.0306396484375,
-0.00876617431640625,
0.0263214111328125,
0.02325439453125,
-0.004123687744140625,
0.01256561279296875,
0.005035400390625,
0.0012645721435546875,
-0.006710052490234375,
-0.02276611328125,
0.0298919677734375,
0.0268402099609375,
0.016265869140625,
0.00820159912109375,
-0.0005698204040527344,
-0.0538330078125,
-0.006809234619140625,
0.02081298828125,
0.003536224365234375,
-0.0247344970703125,
0.0097198486328125,
0.0428466796875,
0.003124237060546875,
0.007965087890625,
0.00110626220703125,
0.011016845703125,
0.01517486572265625,
-0.00014829635620117188,
-0.00045680999755859375,
-0.0152587890625,
-0.03533935546875,
-0.0103759765625,
0.0277862548828125,
0.00914764404296875,
-0.0123138427734375,
0.00909423828125,
0.037322998046875,
-0.03955078125,
-0.04168701171875,
-0.01149749755859375,
-0.049224853515625,
-0.005279541015625,
0.01934814453125,
0.0088348388671875,
0.00360870361328125,
-0.0230865478515625,
0.0016489028930664062,
-0.013275146484375,
-0.0139617919921875,
0.009185791015625,
-0.00583648681640625,
0.031707763671875,
0.04132080078125,
-0.0440673828125,
-0.047515869140625,
-0.048431396484375,
0.0845947265625,
-0.036834716796875,
-0.054595947265625,
0.07159423828125,
-0.0017681121826171875,
0.056427001953125,
-0.01155853271484375,
0.0063934326171875,
0.007343292236328125,
0.057403564453125,
0.00235748291015625,
0.0421142578125,
-0.00948333740234375,
-0.056884765625,
-0.0173797607421875,
-0.0164642333984375,
-0.0283050537109375,
0.0015354156494140625,
0.0176239013671875,
0.057769775390625,
-0.0272216796875,
-0.0007028579711914062,
-0.07391357421875,
0.035247802734375,
-0.02032470703125,
0.048370361328125,
0.0233154296875,
0.038726806640625,
0.011444091796875,
0.03167724609375,
-0.038970947265625,
0.0129241943359375,
-0.028472900390625,
-0.0180206298828125,
-0.043243408203125,
0.0242767333984375,
-0.012054443359375,
0.037017822265625,
-0.02777099609375,
-0.03533935546875,
-0.0306854248046875,
-0.015869140625,
0.041961669921875,
0.0046539306640625,
-0.0300750732421875,
-0.0133514404296875,
0.0187225341796875,
0.005741119384765625,
-0.01523590087890625,
0.042510986328125,
0.061004638671875,
0.0278167724609375,
-0.05206298828125,
-0.0272064208984375,
-0.057952880859375,
-0.06463623046875,
-0.0216217041015625,
0.07598876953125,
0.02471923828125,
0.072998046875,
-0.0232391357421875,
-0.03436279296875,
0.035736083984375,
-0.09375,
-0.0218658447265625,
-0.0111846923828125,
0.0015783309936523438,
0.00775146484375,
-0.0126495361328125,
-0.0452880859375,
0.019622802734375,
-0.050048828125,
-0.01177978515625,
0.01593017578125,
-0.01122283935546875,
-0.026519775390625,
0.0003695487976074219,
0.012176513671875,
-0.00036525726318359375,
-0.0244140625,
-0.020294189453125,
-0.0078887939453125,
0.0023250579833984375,
-0.01140594482421875,
0.018951416015625,
0.0186309814453125,
0.0175018310546875,
-0.0223236083984375,
0.006496429443359375,
-0.01448822021484375,
-0.0004949569702148438,
0.05987548828125,
0.0418701171875,
0.0380859375,
-0.028167724609375,
-0.04217529296875,
0.005107879638671875,
0.0535888671875,
-0.0352783203125,
0.0126495361328125,
-0.00528717041015625,
-0.03094482421875,
-0.01141357421875,
0.0165252685546875,
0.0240325927734375,
-0.055511474609375,
0.088134765625,
0.0266876220703125,
0.0372314453125,
0.0112762451171875,
0.01611328125,
0.04583740234375,
-0.0014619827270507812,
-0.04547119140625,
0.026580810546875,
0.046051025390625,
-0.0200347900390625,
0.01355743408203125,
0.002315521240234375,
0.01428985595703125,
0.013671875,
-0.032379150390625,
-0.006061553955078125,
0.041534423828125,
0.0380859375,
-0.0469970703125,
-0.04656982421875,
-0.000012159347534179688,
-0.07513427734375,
-0.04034423828125,
0.055206298828125,
0.07183837890625,
0.03216552734375,
-0.0244598388671875,
0.0194244384765625,
0.07366943359375,
-0.05712890625,
-0.0943603515625,
0.01216888427734375,
-0.03204345703125,
-0.0165557861328125,
-0.01146697998046875,
-0.007595062255859375,
-0.0033111572265625,
-0.008544921875,
0.00022089481353759766,
-0.0239715576171875,
-0.0157928466796875,
-0.011505126953125,
-0.0625,
-0.0311126708984375,
-0.0150909423828125,
-0.005481719970703125,
0.005123138427734375,
-0.0009732246398925781,
0.031646728515625,
-0.008941650390625,
-0.05352783203125,
-0.02288818359375,
0.021697998046875,
-0.03070068359375,
-0.0247039794921875,
0.0217742919921875,
-0.027984619140625,
-0.0160675048828125,
-0.0123443603515625,
0.047760009765625,
0.0269317626953125,
-0.025115966796875,
0.0229644775390625,
-0.00759124755859375,
0.0216064453125,
0.0231170654296875,
0.07708740234375,
0.0027866363525390625,
0.035675048828125,
0.07452392578125,
-0.01271820068359375,
-0.036163330078125,
0.0227813720703125,
-0.0247955322265625,
0.01386260986328125,
0.0233612060546875,
-0.0288848876953125,
-0.0006985664367675781,
0.01136016845703125,
0.0109100341796875,
0.014862060546875,
-0.049530029296875,
0.003509521484375,
0.08087158203125,
0.006549835205078125,
0.03778076171875,
-0.01213836669921875,
0.00565338134765625,
-0.04058837890625,
-0.0059661865234375,
-0.0108642578125,
-0.0229034423828125,
-0.01666259765625,
0.0006084442138671875,
-0.0189971923828125,
-0.056854248046875,
0.0194549560546875,
-0.027130126953125,
-0.05487060546875,
0.037353515625,
-0.006134033203125,
0.06732177734375,
0.057373046875,
0.047607421875,
-0.02313232421875,
-0.026947021484375,
-0.02264404296875,
-0.0211181640625,
0.0177154541015625,
-0.0159149169921875,
0.017791748046875,
0.01800537109375,
0.01300811767578125,
0.01277923583984375,
0.0085296630859375,
-0.01532745361328125,
0.053436279296875,
0.01174163818359375,
-0.01678466796875,
-0.0022258758544921875,
-0.055023193359375,
-0.01312255859375,
-0.005390167236328125,
-0.0269775390625,
-0.0192718505859375,
0.016845703125,
-0.058074951171875,
-0.005321502685546875,
0.0018186569213867188,
-0.037750244140625,
0.0330810546875,
0.044281005859375,
-0.045745849609375,
0.020904541015625,
0.0305328369140625,
0.027496337890625,
0.04437255859375,
0.0074920654296875,
-0.038055419921875,
0.033172607421875,
0.018157958984375,
0.02593994140625,
-0.0013761520385742188,
0.00836944580078125,
0.0202178955078125,
-0.053375244140625,
0.006999969482421875,
-0.017669677734375,
-0.038055419921875,
0.060150146484375,
-0.0545654296875,
-0.08111572265625,
-0.051177978515625,
0.00196075439453125,
0.0198974609375,
-0.019378662109375,
0.0132904052734375,
-0.05889892578125,
-0.061004638671875,
0.035736083984375,
0.003688812255859375,
0.0089569091796875,
-0.012359619140625,
0.06707763671875,
0.01064300537109375,
-0.012054443359375,
0.00351715087890625,
0.01016998291015625,
0.04669189453125,
-0.01873779296875,
0.005504608154296875,
-0.031219482421875,
-0.057464599609375,
0.098388671875,
-0.01568603515625,
0.0261688232421875,
-0.043914794921875,
0.05780029296875,
-0.0192108154296875,
-0.01462554931640625,
0.04119873046875,
-0.0009298324584960938,
-0.0224456787109375,
-0.0150604248046875,
-0.00888824462890625,
-0.0197296142578125,
0.041656494140625,
0.043426513671875,
-0.05126953125,
0.055877685546875,
-0.00543212890625,
-0.013275146484375,
0.0017719268798828125,
-0.0027446746826171875,
0.07794189453125,
0.050018310546875,
-0.01131439208984375,
0.047760009765625,
0.03118896484375,
0.019927978515625,
-0.01351165771484375,
-0.0286407470703125,
-0.028289794921875,
0.0228118896484375,
0.005756378173828125,
0.0128326416015625,
-0.007598876953125,
-0.0152587890625,
0.04327392578125,
0.0089874267578125,
-0.015777587890625,
-0.0338134765625,
-0.0019044876098632812,
-0.00034046173095703125,
-0.006603240966796875,
0.011810302734375,
-0.02392578125,
-0.01287841796875,
-0.01058197021484375,
0.011474609375,
0.02801513671875,
-0.022552490234375,
0.0049285888671875,
0.07562255859375,
0.03717041015625,
0.004833221435546875,
0.0037631988525390625,
0.050079345703125,
0.08123779296875,
-0.00992584228515625,
-0.0419921875,
0.06744384765625,
0.000484466552734375,
0.058624267578125,
-0.0084686279296875,
0.0016374588012695312,
0.00797271728515625,
0.0238037109375,
-0.03692626953125,
-0.0239105224609375,
-0.0290985107421875,
-0.013458251953125,
0.0032062530517578125,
-0.025177001953125,
0.0209503173828125,
0.042633056640625,
0.028411865234375,
0.00027179718017578125,
0.02593994140625,
0.01007843017578125,
-0.0282135009765625,
-0.0145721435546875,
-0.00424957275390625,
0.0076751708984375,
-0.00907135009765625,
0.01137542724609375,
0.0189666748046875,
0.0159912109375,
0.04144287109375,
-0.0297393798828125,
0.005619049072265625,
-0.025146484375,
-0.0007863044738769531,
0.0254364013671875,
-0.0099334716796875,
-0.042236328125,
-0.00565338134765625,
-0.01238250732421875,
-0.01024627685546875,
0.002185821533203125,
0.060821533203125,
-0.042266845703125,
0.0146636962890625,
-0.01349639892578125,
-0.01525115966796875,
0.003398895263671875,
0.0286102294921875,
0.049224853515625,
0.03692626953125,
-0.049102783203125,
-0.01546478271484375,
-0.04217529296875,
-0.0166015625,
-0.0271759033203125,
-0.040771484375,
-0.04364013671875,
-0.002857208251953125,
-0.0007576942443847656,
0.034698486328125,
-0.01287841796875,
-0.00576019287109375,
0.0133819580078125,
0.005702972412109375,
-0.026397705078125,
0.0219879150390625,
0.00038504600524902344,
0.0283966064453125,
-0.0224456787109375,
0.02734375,
-0.0137939453125,
-0.005626678466796875,
-0.015777587890625,
-0.00467681884765625,
0.0094146728515625,
-0.0273590087890625,
-0.0019025802612304688,
-0.026092529296875,
0.0124053955078125,
-0.01439666748046875,
0.018890380859375,
-0.0115509033203125,
0.0108795166015625,
0.0222625732421875,
-0.0078582763671875,
-0.0015773773193359375,
-0.027435302734375,
0.04595947265625,
0.01541900634765625,
0.035247802734375,
-0.0028228759765625,
0.01336669921875,
-0.0119476318359375,
-0.04400634765625,
0.01702880859375,
0.0163421630859375,
-0.0016698837280273438,
0.0239715576171875,
0.02532958984375,
-0.0293426513671875,
0.0305938720703125,
0.0008707046508789062,
0.032867431640625,
0.028228759765625,
0.025787353515625,
0.024810791015625,
0.03814697265625,
-0.03533935546875,
-0.06787109375,
-0.014862060546875,
-0.0011129379272460938,
-0.0078582763671875,
0.005588531494140625,
-0.007221221923828125,
0.032196044921875,
0.0280609130859375,
0.07855224609375,
-0.0361328125,
0.0262451171875,
0.028167724609375,
-0.05718994140625,
0.01488494873046875,
-0.0305938720703125,
0.01305389404296875,
-0.0216522216796875,
0.079833984375,
0.0394287109375,
0.00106048583984375,
0.032958984375,
-0.0227508544921875,
0.00983428955078125,
-0.01314544677734375,
0.0177001953125,
0.0099639892578125,
-0.024688720703125,
0.0257568359375,
0.016815185546875,
0.0504150390625,
0.0108642578125,
0.0116729736328125,
-0.010772705078125,
-0.0244903564453125,
-0.00994110107421875,
0.01444244384765625,
-0.00760650634765625,
-0.0198516845703125,
-0.00568389892578125,
0.01081085205078125,
0.049774169921875,
0.03875732421875,
0.005420684814453125,
-0.0171661376953125,
0.0137481689453125,
0.00962066650390625,
-0.03985595703125,
-0.034088134765625,
0.0160980224609375,
0.01172637939453125,
-0.0645751953125,
0.027069091796875,
-0.03118896484375,
-0.01389312744140625,
-0.0253143310546875,
0.00959014892578125,
0.055999755859375,
-0.03448486328125,
0.000896453857421875,
0.04925537109375,
0.046356201171875,
-0.02703857421875,
-0.01439666748046875,
-0.0168609619140625,
-0.0200042724609375,
0.028472900390625,
-0.026824951171875,
-0.00641632080078125,
0.008514404296875,
-0.0228729248046875,
-0.005374908447265625,
0.0875244140625,
0.000904083251953125,
-0.031341552734375,
0.01346588134765625,
0.0509033203125,
-0.0240631103515625,
0.0411376953125,
-0.015960693359375,
0.01253509521484375,
-0.05877685546875,
0.048614501953125,
-0.047821044921875,
0.0010652542114257812,
0.0086212158203125,
0.02435302734375,
-0.0091705322265625,
-0.0061492919921875,
0.017578125,
-0.023712158203125,
-0.00637054443359375,
0.0462646484375,
0.005924224853515625,
-0.02459716796875,
-0.00786590576171875,
0.0010986328125,
0.005767822265625,
-0.01056671142578125,
0.02056884765625,
-0.007293701171875,
-0.0496826171875,
0.0268096923828125,
0.0223846435546875,
0.03009033203125,
0.00794219970703125,
0.00824737548828125,
-0.0433349609375,
0.0219268798828125,
0.0258636474609375,
0.02288818359375,
-0.022705078125,
0.04315185546875,
0.03564453125,
-0.0465087890625,
0.009368896484375,
-0.042633056640625,
0.052642822265625,
-0.006458282470703125,
0.01313018798828125,
0.00992584228515625,
0.00010877847671508789,
-0.005878448486328125,
0.01122283935546875,
-0.0024852752685546875,
0.0220794677734375,
0.0100250244140625,
0.044830322265625,
0.026641845703125,
0.03253173828125,
-0.054656982421875,
-0.0533447265625,
0.06982421875,
0.08392333984375,
-0.020355224609375,
-0.0158538818359375,
-0.01035308837890625,
0.018035888671875,
0.058197021484375,
-0.0011262893676757812,
0.1102294921875,
-0.01065826416015625,
-0.0192718505859375,
0.03253173828125,
-0.0173187255859375,
-0.02667236328125,
0.0192413330078125,
0.0137481689453125,
0.036163330078125,
0.0099334716796875,
-0.02410888671875,
-0.00026345252990722656,
-0.00537109375,
-0.0013294219970703125,
0.00980377197265625,
-0.01154327392578125,
0.032806396484375,
-0.00511932373046875,
-0.0010118484497070312,
-0.0218048095703125,
0.048309326171875,
0.0237884521484375,
0.0121917724609375,
-0.02227783203125,
-0.036102294921875,
0.022735595703125,
0.0307464599609375,
0.022491455078125,
0.05224609375,
0.0228424072265625,
0.0296783447265625,
0.025543212890625,
0.01110076904296875,
0.03076171875,
-0.0163116455078125,
-0.0002899169921875,
-0.0265655517578125,
0.032958984375,
0.034515380859375,
0.013397216796875,
-0.0129547119140625,
0.019561767578125,
0.0394287109375,
-0.02557373046875,
0.048126220703125,
-0.02056884765625,
-0.05474853515625,
0.0245361328125,
-0.027435302734375,
0.123779296875,
-0.00887298583984375,
-0.049835205078125,
-0.047210693359375,
0.0131378173828125,
0.0426025390625,
0.0081787109375,
0.024383544921875,
0.003265380859375,
0.033843994140625,
-0.043243408203125,
-0.0106353759765625,
0.0267333984375,
0.01421356201171875,
-0.042877197265625,
-0.0044097900390625,
0.029571533203125,
-0.0307464599609375,
-0.007518768310546875,
-0.018890380859375,
0.025360107421875,
0.042755126953125,
-0.00444793701171875,
0.074462890625,
-0.03662109375,
-0.009552001953125,
0.01496124267578125,
-0.0455322265625,
0.05120849609375,
0.0306854248046875,
-0.02703857421875,
0.01067352294921875,
-0.0038814544677734375,
-0.025848388671875,
-0.044403076171875,
0.03955078125,
-0.01561737060546875,
0.0017747879028320312,
0.047210693359375,
-0.033843994140625,
0.012298583984375,
0.01415252685546875,
0.0792236328125,
-0.003032684326171875,
-0.03179931640625,
-0.030853271484375,
0.00994873046875,
0.027099609375,
0.03204345703125,
-0.00691986083984375,
-0.011474609375,
-0.0128631591796875,
-0.03900146484375,
0.01438140869140625,
-0.020416259765625,
-0.0003731250762939453,
0.00524139404296875,
0.01004791259765625,
-0.0022182464599609375,
0.0093231201171875,
-0.02392578125,
0.0164794921875,
0.0014553070068359375,
0.014373779296875,
0.00452423095703125,
-0.03265380859375,
-0.0672607421875,
0.0125579833984375,
0.032135009765625,
0.018768310546875,
0.02972412109375,
-0.05340576171875,
-0.00983428955078125,
0.00635528564453125,
0.0010595321655273438,
-0.0034313201904296875,
0.048370361328125,
-0.027435302734375,
-0.01239776611328125,
0.042510986328125,
-0.0482177734375,
0.00678253173828125,
-0.01222991943359375,
0.0516357421875,
-0.0088653564453125,
-0.0224456787109375,
-0.017333984375,
-0.01287841796875,
0.034423828125,
0.0194091796875,
0.0203857421875,
-0.0139007568359375,
0.018646240234375,
-0.034698486328125,
-0.061981201171875,
-0.01355743408203125,
0.07012939453125,
-0.024505615234375,
-0.006694793701171875,
0.0013628005981445312,
-0.0015211105346679688,
-0.00782012939453125,
-0.0164031982421875,
-0.00911712646484375,
0.0302734375,
0.00658416748046875,
-0.004711151123046875,
0.0007777214050292969,
0.0227203369140625,
-0.033416748046875,
-0.048583984375,
0.01317596435546875,
-0.02813720703125,
-0.0166778564453125,
0.01605224609375,
0.0177764892578125,
0.041290283203125,
-0.02008056640625,
-0.084716796875,
0.06591796875,
-0.0119476318359375,
-0.0340576171875,
-0.002483367919921875,
-0.01001739501953125,
0.0147705078125,
-0.0298004150390625,
-0.021331787109375,
-0.0003428459167480469,
-0.034149169921875,
-0.0015611648559570312,
0.0209808349609375,
0.016998291015625,
0.01143646240234375,
-0.03509521484375,
-0.03765869140625,
0.013519287109375,
0.024169921875,
0.041168212890625,
-0.03558349609375,
0.0212249755859375,
0.030609130859375,
0.0256805419921875,
0.00946044921875,
0.07696533203125,
0.0386962890625,
-0.00798797607421875,
-0.0231781005859375,
-0.0289306640625,
0.04107666015625,
0.03619384765625,
0.042144775390625,
0.01094818115234375,
0.0024929046630859375,
-0.0670166015625,
-0.005680084228515625,
-0.0213775634765625,
-0.00502777099609375,
0.00420379638671875,
0.0006642341613769531,
-0.039642333984375,
0.00970458984375,
0.0038509368896484375,
-0.0128631591796875,
0.01105499267578125,
-0.03662109375,
-0.034149169921875,
-0.001644134521484375,
-0.029632568359375,
0.0040283203125,
0.00492095947265625,
-0.0287017822265625,
0.05572509765625,
-0.02130126953125,
0.01611328125,
0.02203369140625,
0.016632080078125,
0.037322998046875,
0.0826416015625,
0.020355224609375,
0.037689208984375,
-0.067626953125,
-0.00189208984375,
-0.0052642822265625,
0.037445068359375,
-0.0496826171875,
-0.01300811767578125,
-0.006237030029296875,
0.01361083984375,
-0.0055389404296875,
0.0238800048828125,
0.046661376953125,
-0.0005879402160644531,
0.00482177734375,
-0.0163421630859375,
-0.056304931640625,
0.06634521484375,
-0.0220184326171875,
0.0117950439453125,
0.0113372802734375,
0.04156494140625,
0.08148193359375,
-0.025543212890625,
0.017486572265625,
0.042205810546875,
0.017974853515625,
0.03472900390625,
0.0016927719116210938,
0.051300048828125,
-0.01039886474609375,
-0.01389312744140625
] |
d1161e39f5035c4751b647a78b01b63956bbcd21 | Wordpress Stackexchange
Q: Gutenberg - What is the best way to save/update post meta? What would be the best way in Gutenberg to save/update post meta (not from a block). I can't find an API for it.
I was thinking of doing some ajax in componentDidMount using wp.ajax.post
Any advice would be much appreciated.
| Q: Gutenberg - What is the best way to save/update post meta? What would be the best way in Gutenberg to save/update post meta (not from a block). I can't find an API for it.
I was thinking of doing some ajax in componentDidMount using wp.ajax.post
Any advice would be much appreciated.
| wordpress | {
"language": "en",
"length": 52,
"provenance": "stackexchange_00019.jsonl.gz:489349",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/314275"
} | [
-0.0186309814453125,
-0.009979248046875,
-0.01479339599609375,
0.005847930908203125,
-0.01329803466796875,
-0.0090484619140625,
0.004123687744140625,
-0.0189056396484375,
0.042877197265625,
0.045166015625,
-0.0012674331665039062,
-0.04376220703125,
0.041961669921875,
-0.0213775634765625,
-0.04791259765625,
-0.01291656494140625,
0.04559326171875,
0.00809478759765625,
0.04150390625,
0.01235198974609375,
-0.034332275390625,
0.04736328125,
0.031402587890625,
0.036468505859375,
0.0251007080078125,
-0.028289794921875,
-0.004528045654296875,
-0.0018796920776367188,
0.0027408599853515625,
-0.0177459716796875,
0.015167236328125,
0.0157623291015625,
0.0257415771484375,
-0.022247314453125,
0.0227203369140625,
-0.00098419189453125,
0.03704833984375,
-0.019561767578125,
0.0113525390625,
0.003871917724609375,
0.00962066650390625,
0.0115203857421875,
-0.0221099853515625,
0.0036144256591796875,
-0.0277557373046875,
-0.002475738525390625,
-0.02191162109375,
-0.0224761962890625,
0.0318603515625,
0.03863525390625,
-0.00043463706970214844,
-0.0184783935546875,
-0.008087158203125,
0.0306243896484375,
-0.01416778564453125,
-0.03582763671875,
-0.014617919921875,
0.0231475830078125,
0.042144775390625,
-0.015777587890625,
-0.049163818359375,
-0.0252532958984375,
0.0183563232421875,
-0.0161285400390625,
0.0302734375,
-0.0237884521484375,
0.0270843505859375,
0.0307464599609375,
-0.05194091796875,
0.045806884765625,
0.058319091796875,
-0.029815673828125,
-0.019012451171875,
-0.0439453125,
0.005672454833984375,
0.0129241943359375,
-0.0012187957763671875,
-0.0172119140625,
-0.0023059844970703125,
0.0088653564453125,
-0.029541015625,
0.00804901123046875,
0.01715087890625,
-0.06561279296875,
0.0007781982421875,
-0.047607421875,
-0.023773193359375,
0.0154571533203125,
-0.0474853515625,
-0.048797607421875,
-0.03179931640625,
-0.0799560546875,
-0.07379150390625,
0.01702880859375,
-0.0006055831909179688,
-0.0162200927734375,
-0.0277099609375,
-0.016021728515625,
-0.01261138916015625,
-0.00919342041015625,
-0.0037078857421875,
-0.031646728515625,
0.0155487060546875,
-0.005062103271484375,
0.01038360595703125,
0.027008056640625,
0.000499725341796875,
-0.027069091796875,
0.024322509765625,
0.01654052734375,
-0.021148681640625,
0.019134521484375,
0.0211029052734375,
0.0083160400390625,
-0.0059814453125,
-0.0227508544921875,
-0.035919189453125,
0.07293701171875,
0.00571441650390625,
0.035797119140625,
0.00785064697265625,
0.0203704833984375,
0.053375244140625,
-0.0479736328125,
0.0125885009765625,
0.006587982177734375,
-0.054351806640625,
-0.04302978515625,
0.01494598388671875,
-0.0264434814453125,
-0.035003662109375,
0.0222015380859375,
0.06396484375,
0.0256805419921875,
0.01239776611328125,
-0.013885498046875,
-0.002880096435546875,
-0.0162353515625,
-0.0129547119140625,
0.0174713134765625,
-0.0479736328125,
-0.036895751953125,
0.006549835205078125,
-0.030364990234375,
0.0112152099609375,
-0.003673553466796875,
0.006633758544921875,
0.02044677734375,
0.0209808349609375,
-0.005207061767578125,
-0.0109710693359375,
-0.0124664306640625,
0.020721435546875,
-0.0004673004150390625,
0.0219879150390625,
-0.0238037109375,
0.03753662109375,
-0.034454345703125,
0.0122833251953125,
-0.0257415771484375,
-0.003391265869140625,
-0.004772186279296875,
0.05267333984375,
0.0265045166015625,
-0.00881195068359375,
0.0191497802734375,
-0.042510986328125,
-0.0182647705078125,
0.023468017578125,
0.033843994140625,
0.029632568359375,
0.0030040740966796875,
-0.01739501953125,
-0.0248260498046875,
-0.025115966796875,
-0.024322509765625,
-0.0175018310546875,
-0.052886962890625,
0.03973388671875,
0.01116180419921875,
-0.0170135498046875,
-0.00643157958984375,
0.0105743408203125,
0.01081085205078125,
-0.00921630859375,
0.025665283203125,
0.003971099853515625,
0.0699462890625,
0.0026950836181640625,
0.031951904296875,
-0.032806396484375,
-0.0009760856628417969,
-0.0672607421875,
0.028076171875,
-0.0220794677734375,
0.0183563232421875,
-0.015655517578125,
0.03009033203125,
-0.0128326416015625,
-0.03485107421875,
-0.0256500244140625,
-0.00203704833984375,
-0.00968170166015625,
-0.00412750244140625,
-0.03753662109375,
-0.0230865478515625,
-0.0105133056640625,
0.032440185546875,
-0.022674560546875,
0.0036640167236328125,
0.01277923583984375,
-0.0300750732421875,
-0.0101165771484375,
0.005970001220703125,
-0.01776123046875,
-0.004638671875,
-0.031829833984375,
0.0013017654418945312,
-0.00673675537109375,
0.0018396377563476562,
0.0020904541015625,
0.00366973876953125,
-0.0251312255859375,
-0.00839996337890625,
0.03515625,
-0.01096343994140625,
0.0008411407470703125,
-0.0273284912109375,
0.0079498291015625,
0.00888824462890625,
-0.0546875,
0.0406494140625,
0.00710296630859375,
0.0111541748046875,
0.0094757080078125,
0.01470184326171875,
0.023681640625,
-0.07379150390625,
0.01203155517578125,
0.042755126953125,
0.0021343231201171875,
-0.0185546875,
-0.0168304443359375,
0.056121826171875,
-0.002780914306640625,
-0.004810333251953125,
0.009918212890625,
0.025604248046875,
0.0139312744140625,
0.018218994140625,
-0.0357666015625,
-0.01348876953125,
0.02655029296875,
-0.038330078125,
-0.00507354736328125,
0.03607177734375,
0.0026302337646484375,
0.0302734375,
-0.044464111328125,
-0.01263427734375,
-0.00011962652206420898,
0.00015938282012939453,
-0.019866943359375,
-0.0009307861328125,
0.07659912109375,
-0.00821685791015625,
0.0701904296875,
0.052001953125,
-0.0083770751953125,
-0.006359100341796875,
-0.00036263465881347656,
0.0225372314453125,
0.01024627685546875,
0.053314208984375,
0.04766845703125,
0.048095703125,
-0.051483154296875,
-0.044647216796875,
0.07440185546875,
0.07012939453125,
-0.02154541015625,
-0.0018329620361328125,
0.019744873046875,
-0.0130767822265625,
0.0192108154296875,
-0.030120849609375,
0.0265045166015625,
-0.0296630859375,
0.0245208740234375,
0.0018033981323242188,
0.0457763671875,
-0.0193939208984375,
-0.00635528564453125,
-0.014373779296875,
0.027130126953125,
-0.042449951171875,
-0.00452423095703125,
-0.03887939453125,
0.01134490966796875,
-0.0144195556640625,
0.061737060546875,
0.06390380859375,
-0.00615692138671875,
0.00690460205078125,
-0.009552001953125,
0.00867462158203125,
-0.0047760009765625,
0.0201416015625,
-0.00994110107421875,
-0.0797119140625,
0.0087738037109375,
-0.0102386474609375,
0.022552490234375,
0.03204345703125,
0.01340484619140625,
-0.0267486572265625,
0.00949859619140625,
0.0213775634765625,
-0.06536865234375,
-0.06439208984375,
-0.059326171875,
-0.061187744140625,
-0.0160369873046875,
-0.01342010498046875,
-0.0416259765625,
0.023834228515625,
-0.001800537109375,
0.01279449462890625,
-0.0372314453125,
0.01837158203125,
-0.060394287109375,
-0.037994384765625,
-0.055999755859375,
-0.0005478858947753906,
-0.0166778564453125,
0.01568603515625,
-0.0013971328735351562,
0.020050048828125,
-0.0113067626953125,
-0.0216064453125,
-0.01293182373046875,
-0.0186920166015625,
-0.00798797607421875,
-0.0305938720703125,
0.048736572265625,
-0.0228271484375,
-0.031890869140625,
0.030426025390625,
0.0187530517578125,
0.0038299560546875,
-0.045074462890625,
-0.0256500244140625,
-0.041015625,
-0.0273284912109375,
-0.0014925003051757812,
-0.01227569580078125,
0.0272979736328125,
0.0158843994140625,
0.021759033203125,
-0.031829833984375,
-0.039215087890625,
0.0151519775390625,
-0.0400390625,
0.0048675537109375,
-0.003360748291015625,
0.00749969482421875,
0.0055694580078125,
0.0321044921875,
-0.01041412353515625,
0.03472900390625,
0.0433349609375,
0.0012044906616210938,
-0.01549530029296875,
-0.05169677734375,
-0.06201171875,
-0.032012939453125,
0.0019388198852539062,
-0.02276611328125,
0.0162506103515625,
-0.0157623291015625,
0.0269622802734375,
0.004940032958984375,
0.0159149169921875,
-0.019805908203125,
-0.0265350341796875,
0.0268402099609375,
-0.018096923828125,
0.06976318359375,
-0.0667724609375,
-0.0221710205078125,
-0.060150146484375,
0.0841064453125,
0.03173828125,
-0.0256805419921875,
0.00201416015625,
0.0036468505859375,
-0.033416748046875,
-0.0199127197265625,
-0.0200347900390625,
0.01092529296875,
-0.00921630859375,
-0.00553131103515625,
-0.00027441978454589844,
-0.0168914794921875,
-0.0019083023071289062,
0.005741119384765625,
0.0002880096435546875,
-0.014434814453125,
0.04266357421875,
-0.08929443359375,
0.028778076171875,
-0.0010356903076171875,
0.0148773193359375,
-0.044830322265625,
-0.0234527587890625,
-0.03741455078125,
-0.0594482421875,
-0.004360198974609375,
-0.0226898193359375,
0.04681396484375,
0.021820068359375,
-0.0262298583984375,
-0.0038604736328125,
0.0253753662109375,
0.01552581787109375,
0.05316162109375,
-0.0020904541015625,
0.005313873291015625,
0.0255126953125,
-0.044891357421875,
0.0088348388671875,
-0.034698486328125,
-0.021820068359375,
-0.0162811279296875,
0.00818634033203125,
0.0160980224609375,
-0.03179931640625,
-0.0235137939453125,
-0.00836181640625,
-0.0012416839599609375,
-0.064453125,
-0.04815673828125,
-0.035980224609375,
0.00801849365234375,
-0.03558349609375,
0.0142364501953125,
-0.040557861328125,
-0.0802001953125,
0.0667724609375,
0.0293426513671875,
-0.00583648681640625,
0.006847381591796875,
0.11737060546875,
0.01528167724609375,
-0.0233612060546875,
-0.08892822265625,
0.0106353759765625,
0.007671356201171875,
0.004421234130859375,
0.0521240234375,
-0.0052032470703125,
0.0003197193145751953,
0.0728759765625,
-0.027618408203125,
0.004711151123046875,
-0.045562744140625,
0.077880859375,
-0.0007576942443847656,
0.00811767578125,
0.01251220703125,
-0.0221405029296875,
0.03857421875,
0.030517578125,
-0.030975341796875,
0.0015106201171875,
-0.06927490234375,
0.0247955322265625,
-0.004199981689453125,
0.024749755859375,
-0.05987548828125,
-0.0185089111328125,
0.011810302734375,
-0.025299072265625,
0.0280303955078125,
0.0211944580078125,
-0.009613037109375,
0.02142333984375,
0.0192108154296875,
-0.007061004638671875,
-0.03485107421875,
-0.033905029296875,
-0.03131103515625,
0.0027904510498046875,
-0.036163330078125,
-0.0135955810546875,
-0.0136566162109375,
0.00746917724609375,
0.01045989990234375,
-0.014190673828125,
-0.061920166015625,
-0.058074951171875,
0.00443267822265625,
0.03643798828125,
0.0214080810546875,
0.022216796875,
0.059967041015625,
0.0042724609375,
-0.045257568359375,
-0.039764404296875,
-0.0005435943603515625,
-0.03289794921875,
-0.08306884765625,
-0.03814697265625,
-0.003143310546875,
-0.0262603759765625,
-0.030670166015625,
0.05322265625,
-0.0176849365234375,
-0.0019683837890625,
0.00041747093200683594,
0.032958984375,
0.001361846923828125,
0.005214691162109375,
0.040069580078125,
-0.01308441162109375,
0.008636474609375,
-0.0396728515625,
-0.01708984375,
-0.0092010498046875,
-0.004611968994140625,
0.02099609375,
-0.0038280487060546875,
0.01520538330078125,
0.01256561279296875,
0.005519866943359375,
0.0018663406372070312,
-0.005428314208984375,
0.00640106201171875,
0.00750732421875,
-0.0194549560546875,
0.00962066650390625,
0.016815185546875,
0.005374908447265625,
-0.0006785392761230469,
0.02880859375,
-0.06298828125,
-0.0013132095336914062,
0.00916290283203125,
-0.07489013671875,
0.0214691162109375,
-0.0208740234375,
-0.0340576171875,
0.0203399658203125,
-0.004108428955078125,
-0.007556915283203125,
0.00940704345703125,
-0.02398681640625,
-0.02728271484375,
-0.01837158203125,
0.07037353515625,
-0.045562744140625,
0.00957489013671875,
-0.01071929931640625,
0.02911376953125,
0.0257720947265625,
0.0357666015625,
0.008056640625,
-0.0062713623046875,
-0.0110626220703125,
-0.0149078369140625,
-0.0462646484375,
-0.01690673828125,
-0.049468994140625,
-0.0413818359375,
-0.024810791015625,
0.00019288063049316406,
0.0226593017578125,
0.0419921875,
-0.0006814002990722656,
-0.0162506103515625,
0.0200958251953125,
-0.0013370513916015625,
-0.0110015869140625,
0.06817626953125,
0.0124359130859375,
0.08587646484375,
-0.050262451171875,
0.073486328125,
-0.00412750244140625,
-0.0006194114685058594,
-0.0587158203125,
0.005336761474609375,
-0.00939178466796875,
-0.04443359375,
0.007080078125,
0.0089111328125,
0.0217742919921875,
-0.003932952880859375,
-0.0265960693359375,
0.006580352783203125,
0.0102996826171875,
-0.0254974365234375,
-0.0003802776336669922,
-0.0210723876953125,
0.06072998046875,
-0.04046630859375,
-0.03082275390625,
0.04937744140625,
0.0118255615234375,
0.0192718505859375,
-0.01206207275390625,
-0.0111236572265625,
0.0185089111328125,
0.006687164306640625,
0.0195159912109375,
-0.0328369140625,
-0.01479339599609375,
0.01374053955078125,
0.046600341796875,
0.0144195556640625,
0.04046630859375,
0.01287841796875,
0.0272216796875,
0.0243377685546875,
0.005832672119140625,
0.0054473876953125,
0.02752685546875,
0.03704833984375,
0.00476837158203125,
-0.01520538330078125,
0.0175323486328125,
-0.0202789306640625,
0.027069091796875,
0.0177764892578125,
0.06085205078125,
-0.040496826171875,
0.0145263671875,
0.0223846435546875,
-0.032379150390625,
0.0006537437438964844,
0.0030803680419921875,
-0.01343536376953125,
-0.041015625,
0.047027587890625,
-0.031158447265625,
-0.0019683837890625,
0.02154541015625,
-0.02606201171875,
-0.0130615234375,
-0.052734375,
0.00428009033203125,
0.00742340087890625,
0.023712158203125,
-0.0002491474151611328,
-0.00821685791015625,
-0.00528717041015625,
-0.040069580078125,
0.01203155517578125,
0.008453369140625,
-0.0214691162109375,
-0.05242919921875,
0.0302581787109375,
0.005924224853515625,
0.0022907257080078125,
0.0027065277099609375,
0.0211181640625,
0.0267486572265625,
0.057525634765625,
-0.0186614990234375,
-0.0008401870727539062,
0.00782012939453125,
0.048919677734375,
-0.06878662109375,
-0.037261962890625,
0.02960205078125,
0.013092041015625,
-0.01922607421875,
0.031463623046875,
-0.01007080078125,
-0.067138671875,
-0.017608642578125,
-0.032623291015625,
0.08819580078125,
-0.054718017578125,
-0.01221466064453125,
0.00439453125,
0.0110626220703125,
-0.00323486328125,
-0.0239715576171875,
0.01261138916015625,
-0.0297393798828125,
0.0303192138671875,
-0.01418304443359375,
0.018310546875,
-0.020599365234375,
-0.02960205078125,
-0.06085205078125,
0.08709716796875,
0.0518798828125,
-0.00908660888671875,
-0.038818359375,
0.056427001953125,
-0.0251617431640625,
0.024993896484375,
-0.062469482421875,
0.083251953125,
-0.01971435546875,
0.03240966796875,
-0.070556640625,
0.0228271484375,
-0.015380859375,
-0.0241546630859375,
0.04168701171875,
0.020294189453125,
-0.052276611328125,
-0.01959228515625,
0.01593017578125,
0.025390625,
-0.000030159950256347656,
0.039764404296875,
0.02825927734375,
-0.002010345458984375,
0.0291290283203125,
-0.016357421875,
0.0323486328125,
-0.0202484130859375,
0.00537109375,
0.041778564453125,
0.00887298583984375,
-0.00592041015625,
0.0035800933837890625,
0.0095062255859375,
-0.01806640625,
0.01009368896484375,
0.01314544677734375,
0.00710296630859375,
0.0008859634399414062,
0.016448974609375,
-0.0034236907958984375,
-0.0024929046630859375,
-0.006809234619140625,
-0.01447296142578125,
0.0211944580078125,
-0.00579833984375,
0.0165863037109375,
0.025390625,
0.0140838623046875,
0.045318603515625,
-0.0076446533203125,
0.001644134521484375,
0.022247314453125,
-0.0165557861328125,
0.0732421875,
0.02392578125,
0.0189361572265625,
-0.06915283203125,
-0.024383544921875,
0.054534912109375,
0.09735107421875,
-0.042205810546875,
-0.030609130859375,
0.0081024169921875,
-0.0008025169372558594,
0.0035858154296875,
-0.0088653564453125,
0.021240234375,
-0.0236053466796875,
-0.013153076171875,
-0.01043701171875,
-0.043304443359375,
-0.01140594482421875,
0.0394287109375,
0.0026073455810546875,
0.010009765625,
0.0086669921875,
-0.06390380859375,
-0.031341552734375,
-0.01470184326171875,
0.00690460205078125,
0.045745849609375,
0.04351806640625,
0.0128021240234375,
0.0040130615234375,
-0.015655517578125,
-0.038848876953125,
0.0241851806640625,
-0.002704620361328125,
0.058837890625,
-0.055511474609375,
-0.024871826171875,
0.03582763671875,
0.052734375,
0.0291290283203125,
0.09027099609375,
0.09039306640625,
0.08477783203125,
0.0276947021484375,
0.00395965576171875,
0.08026123046875,
-0.01202392578125,
0.028900146484375,
-0.04254150390625,
0.02685546875,
-0.00379180908203125,
-0.0021152496337890625,
-0.0247039794921875,
0.0211029052734375,
0.038818359375,
-0.005260467529296875,
0.04339599609375,
0.01091766357421875,
-0.0079193115234375,
0.044677734375,
0.0297698974609375,
0.06378173828125,
0.050018310546875,
0.01169586181640625,
0.004413604736328125,
0.00887298583984375,
-0.033782958984375,
-0.0191497802734375,
0.02569580078125,
-0.0289306640625,
0.043548583984375,
-0.031494140625,
0.0149993896484375,
0.07171630859375,
-0.057769775390625,
-0.006587982177734375,
0.0435791015625,
0.0134429931640625,
-0.004901885986328125,
-0.06622314453125,
-0.032196044921875,
-0.004604339599609375,
0.041290283203125,
-0.032958984375,
0.09136962890625,
-0.0185546875,
-0.0030345916748046875,
-0.009124755859375,
-0.0081329345703125,
-0.0006990432739257812,
0.00514984130859375,
-0.051055908203125,
0.0261383056640625,
0.0312042236328125,
0.005016326904296875,
-0.046417236328125,
-0.0040740966796875,
0.038177490234375,
0.00489044189453125,
0.01232147216796875,
-0.02301025390625,
0.02569580078125,
-0.0081787109375,
-0.0197601318359375,
-0.0293121337890625,
-0.033935546875,
-0.00969696044921875,
0.01544189453125,
-0.0033779144287109375,
0.013397216796875,
0.0000762939453125,
0.01143646240234375,
0.0116119384765625,
0.0198974609375,
0.016845703125,
0.00787353515625,
0.0408935546875,
0.03253173828125,
-0.0810546875,
0.060211181640625,
-0.00626373291015625,
-0.03363037109375,
0.03558349609375,
0.000020503997802734375,
-0.0269927978515625,
0.002197265625,
-0.0282135009765625,
-0.02325439453125,
0.028289794921875,
0.04486083984375,
0.0213165283203125,
0.0203399658203125,
-0.021484375,
-0.0135498046875,
0.005695343017578125,
0.04010009765625,
-0.00301361083984375,
-0.032440185546875,
-0.0212860107421875,
-0.0011844635009765625,
-0.040008544921875,
-0.01534271240234375,
-0.03851318359375,
-0.02197265625,
0.0247955322265625,
-0.004756927490234375,
-0.0256500244140625,
0.0069122314453125,
-0.0033473968505859375,
-0.0007987022399902344,
-0.004322052001953125,
-0.031707763671875,
0.00302886962890625,
0.0687255859375,
0.0216522216796875,
-0.018707275390625,
-0.0276947021484375,
0.0185089111328125,
-0.03802490234375,
-0.0004723072052001953,
-0.0005197525024414062,
-0.01284027099609375,
0.033538818359375,
-0.025909423828125,
0.0278778076171875,
0.0174560546875,
0.0282135009765625,
-0.0145721435546875,
0.0205230712890625,
0.016754150390625,
0.01641845703125,
-0.06781005859375,
-0.017303466796875,
-0.0160980224609375,
0.0275421142578125,
-0.0302886962890625,
0.0154876708984375,
0.0210418701171875,
-0.0247039794921875,
-0.051513671875,
0.0638427734375,
-0.019927978515625,
-0.0233154296875,
-0.004001617431640625,
-0.002758026123046875,
0.0029392242431640625,
0.013275146484375,
-0.00969696044921875,
0.006778717041015625,
-0.038604736328125,
-0.0153656005859375,
-0.00798797607421875,
0.040771484375,
0.0201568603515625,
-0.041015625,
-0.01678466796875,
-0.0097503662109375,
-0.006092071533203125,
0.00734710693359375,
-0.020172119140625,
-0.0158538818359375,
0.03668212890625,
0.022918701171875,
-0.046234130859375,
0.0362548828125,
0.0299224853515625,
0.04473876953125,
-0.002948760986328125,
-0.017974853515625,
-0.0176544189453125,
0.0300445556640625,
0.060760498046875,
0.047119140625,
0.007221221923828125,
-0.05877685546875,
0.05914306640625,
0.0081024169921875,
-0.0316162109375,
0.024261474609375,
0.004261016845703125,
-0.0128173828125,
-0.0171661376953125,
0.0132904052734375,
0.00661468505859375,
-0.0256805419921875,
0.0281982421875,
0.01465606689453125,
-0.0255126953125,
0.0165252685546875,
-0.04058837890625,
-0.007266998291015625,
-0.00392913818359375,
0.053131103515625,
-0.0186004638671875,
0.03106689453125,
0.0206756591796875,
0.00334930419921875,
0.049652099609375,
0.0721435546875,
0.053131103515625,
0.0156402587890625,
-0.038421630859375,
0.01323699951171875,
0.0240936279296875,
0.005645751953125,
-0.0174102783203125,
-0.06103515625,
-0.01346588134765625,
0.00876617431640625,
0.0178070068359375,
0.005168914794921875,
-0.05078125,
0.0205230712890625,
0.0005598068237304688,
0.03326416015625,
-0.04083251953125,
0.0015230178833007812,
-0.0235748291015625,
0.009918212890625,
0.014129638671875,
0.00421905517578125,
0.06982421875,
-0.0203704833984375,
-0.0009584426879882812,
-0.0201416015625,
0.03045654296875,
-0.04315185546875,
0.02301025390625,
-0.046966552734375,
0.00609588623046875,
0.0263519287109375
] |
afa18656ebf553062b4fe5038b0e9a452c416071 | Wordpress Stackexchange
Q: How can I get the privacy policy page? After the update regarding the GDPR, WordPress now has an option named "Privacy Policy" under the settings, which you can use a page to be used as your privacy policy page.
How can I get the ID or the permalink for this page to use in my theme or plugin?
A: WordPress stores the page id for the privacy policy page in the options table. To get the value, you can use:
$privacy_policy_page = get_option( 'wp_page_for_privacy_policy' );
if( $privacy_policy_page ) {
$permalink = esc_url( get_permalink( $privacy_policy_page ) );
}
The $privacy_policy_page variable holds the ID of the privacy policy page.
| Q: How can I get the privacy policy page? After the update regarding the GDPR, WordPress now has an option named "Privacy Policy" under the settings, which you can use a page to be used as your privacy policy page.
How can I get the ID or the permalink for this page to use in my theme or plugin?
A: WordPress stores the page id for the privacy policy page in the options table. To get the value, you can use:
$privacy_policy_page = get_option( 'wp_page_for_privacy_policy' );
if( $privacy_policy_page ) {
$permalink = esc_url( get_permalink( $privacy_policy_page ) );
}
The $privacy_policy_page variable holds the ID of the privacy policy page.
A: These functions are available since 4.9.6 for the privacy policy url and link:
*
*get_privacy_policy_url() - filterable with the privacy_policy_url filter.
*get_the_privacy_policy_link() - filterable with the the_privacy_policy_link filter.
*the_privacy_policy_link() - wrapper that outputs get_the_privacy_policy_link().
See ticket #43850
| wordpress | {
"language": "en",
"length": 147,
"provenance": "stackexchange_00019.jsonl.gz:489381",
"question_score": "10",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/314371"
} | [
0.052032470703125,
-0.01113128662109375,
-0.0008625984191894531,
-0.015655517578125,
0.00768280029296875,
-0.037506103515625,
0.03961181640625,
-0.01174163818359375,
-0.04620361328125,
-0.0309600830078125,
-0.05029296875,
0.03997802734375,
-0.07391357421875,
-0.022918701171875,
0.0570068359375,
-0.056884765625,
0.01035308837890625,
0.0086669921875,
0.050384521484375,
0.0005292892456054688,
0.0173492431640625,
-0.0013275146484375,
0.02484130859375,
-0.01070404052734375,
0.059051513671875,
-0.0040435791015625,
0.03851318359375,
-0.0118560791015625,
0.0222930908203125,
-0.0232391357421875,
0.030426025390625,
-0.01715087890625,
-0.0097808837890625,
0.0233154296875,
0.0266571044921875,
-0.00717926025390625,
-0.02056884765625,
0.02801513671875,
0.03375244140625,
0.01404571533203125,
0.0157470703125,
0.002655029296875,
-0.0087890625,
0.0430908203125,
-0.025726318359375,
-0.0273590087890625,
-0.01042938232421875,
-0.046600341796875,
-0.031158447265625,
0.04248046875,
0.01270294189453125,
-0.01035308837890625,
0.014007568359375,
0.0615234375,
-0.0114288330078125,
-0.02667236328125,
0.028167724609375,
-0.03131103515625,
0.04302978515625,
-0.051116943359375,
-0.0374755859375,
-0.0255126953125,
0.038482666015625,
-0.0031108856201171875,
-0.0264434814453125,
0.00948333740234375,
-0.0271148681640625,
0.01776123046875,
-0.027587890625,
-0.0177154541015625,
0.01206207275390625,
-0.033355712890625,
0.01483154296875,
-0.022216796875,
-0.03643798828125,
-0.02203369140625,
0.0401611328125,
-0.01026153564453125,
-0.00965118408203125,
-0.01207733154296875,
-0.0078582763671875,
-0.0196075439453125,
-0.06298828125,
0.01422882080078125,
-0.008209228515625,
0.03863525390625,
-0.01261138916015625,
-0.0242156982421875,
-0.006008148193359375,
-0.00390625,
-0.01373291015625,
0.004375457763671875,
0.0181427001953125,
-0.01313018798828125,
-0.056396484375,
-0.0195465087890625,
0.0204925537109375,
0.0489501953125,
-0.016265869140625,
0.004886627197265625,
-0.00498199462890625,
-0.03912353515625,
0.033935546875,
-0.04058837890625,
-0.03192138671875,
0.037506103515625,
0.067626953125,
0.050750732421875,
-0.0134429931640625,
-0.00591278076171875,
-0.01861572265625,
-0.022430419921875,
-0.001667022705078125,
-0.03424072265625,
-0.006366729736328125,
0.0191497802734375,
-0.0066680908203125,
-0.0173187255859375,
-0.00595855712890625,
-0.0274810791015625,
-0.0291748046875,
-0.00832366943359375,
0.00707244873046875,
0.007106781005859375,
0.013458251953125,
0.0012254714965820312,
-0.006137847900390625,
-0.00547027587890625,
-0.03106689453125,
0.03704833984375,
-0.00493621826171875,
0.00429534912109375,
0.0188751220703125,
0.0212554931640625,
-0.0149688720703125,
-0.0231170654296875,
0.0396728515625,
-0.017852783203125,
0.0030460357666015625,
0.00368499755859375,
0.0113677978515625,
-0.020782470703125,
-0.006992340087890625,
-0.0163116455078125,
-0.0040740966796875,
-0.0164031982421875,
0.017120361328125,
0.05108642578125,
0.01027679443359375,
-0.0037994384765625,
-0.0004858970642089844,
0.043670654296875,
0.00698089599609375,
0.0236968994140625,
0.0007796287536621094,
-0.0016908645629882812,
0.03057861328125,
-0.019744873046875,
-0.007205963134765625,
-0.03570556640625,
0.04608154296875,
-0.00970458984375,
0.0016641616821289062,
0.037017822265625,
0.0182647705078125,
-0.004146575927734375,
-0.048675537109375,
-0.004840850830078125,
0.022247314453125,
0.05426025390625,
0.0272979736328125,
-0.0195159912109375,
-0.060546875,
-0.004039764404296875,
-0.0021514892578125,
-0.0160675048828125,
-0.0171356201171875,
0.033477783203125,
0.019989013671875,
-0.01140594482421875,
-0.0052337646484375,
-0.032073974609375,
0.033050537109375,
0.0046539306640625,
-0.0015935897827148438,
0.055450439453125,
0.037689208984375,
0.074951171875,
-0.08441162109375,
0.036163330078125,
0.030670166015625,
0.0693359375,
-0.034698486328125,
0.00861358642578125,
0.004924774169921875,
0.010894775390625,
-0.0208282470703125,
0.0243988037109375,
-0.01233673095703125,
-0.031524658203125,
-0.00482940673828125,
0.004215240478515625,
0.0016918182373046875,
0.01230621337890625,
-0.035064697265625,
0.0142974853515625,
-0.0345458984375,
0.04034423828125,
0.0014009475708007812,
0.018951416015625,
0.0160980224609375,
-0.004764556884765625,
-0.0220184326171875,
-0.0237579345703125,
-0.0260009765625,
0.0308990478515625,
-0.04376220703125,
0.019775390625,
-0.032806396484375,
0.0145111083984375,
-0.030242919921875,
-0.040374755859375,
-0.0254974365234375,
0.0096893310546875,
0.049652099609375,
0.00731658935546875,
-0.0159759521484375,
-0.028564453125,
0.03570556640625,
0.006298065185546875,
-0.004566192626953125,
0.0108795166015625,
-0.0186004638671875,
0.03729248046875,
0.01042938232421875,
-0.018218994140625,
-0.02630615234375,
-0.0633544921875,
0.03253173828125,
0.034637451171875,
0.053009033203125,
0.042510986328125,
0.02154541015625,
-0.01509857177734375,
0.07666015625,
-0.056640625,
0.01004791259765625,
-0.0288238525390625,
0.00911712646484375,
0.033966064453125,
0.040771484375,
-0.00597381591796875,
0.0023059844970703125,
-0.02935791015625,
-0.00945281982421875,
0.0167083740234375,
-0.04827880859375,
-0.006855010986328125,
-0.023406982421875,
0.01026153564453125,
-0.01678466796875,
-0.0423583984375,
0.02862548828125,
-0.041717529296875,
-0.02606201171875,
-0.0078582763671875,
-0.004180908203125,
-0.00592041015625,
-0.003154754638671875,
-0.037109375,
0.0289306640625,
0.0036487579345703125,
-0.011749267578125,
0.035430908203125,
0.050628662109375,
-0.0271453857421875,
0.0016632080078125,
-0.0271148681640625,
-0.02801513671875,
0.01727294921875,
-0.00861358642578125,
0.0182342529296875,
-0.06011962890625,
-0.006641387939453125,
-0.01117706298828125,
-0.043426513671875,
-0.0254669189453125,
0.035186767578125,
-0.004116058349609375,
-0.02923583984375,
0.002971649169921875,
0.034423828125,
-0.0557861328125,
0.07568359375,
0.0133209228515625,
-0.026611328125,
0.0491943359375,
-0.04718017578125,
0.04876708984375,
-0.047454833984375,
0.0090484619140625,
0.05029296875,
-0.0019407272338867188,
-0.00804901123046875,
0.01445770263671875,
-0.04962158203125,
0.0013723373413085938,
0.00672149658203125,
0.002452850341796875,
0.004207611083984375,
-0.04986572265625,
0.060455322265625,
-0.003932952880859375,
-0.018035888671875,
-0.0126495361328125,
-0.04364013671875,
-0.030181884765625,
-0.0178985595703125,
-0.10333251953125,
-0.04229736328125,
0.008941650390625,
-0.07525634765625,
-0.0380859375,
-0.0261688232421875,
-0.04541015625,
0.01873779296875,
0.00788116455078125,
-0.01403045654296875,
-0.0076751708984375,
-0.0297393798828125,
-0.07867431640625,
-0.0458984375,
-0.0653076171875,
0.03125,
-0.0128021240234375,
0.0158233642578125,
-0.01617431640625,
0.060882568359375,
-0.019989013671875,
-0.051361083984375,
-0.05242919921875,
-0.0266265869140625,
-0.0096893310546875,
-0.045196533203125,
-0.03729248046875,
-0.0269012451171875,
0.0110015869140625,
-0.00016236305236816406,
0.016937255859375,
-0.0176544189453125,
0.04266357421875,
-0.00838470458984375,
-0.025787353515625,
-0.040771484375,
-0.016754150390625,
0.0248870849609375,
0.02008056640625,
-0.0290985107421875,
0.0201416015625,
-0.0537109375,
-0.0186309814453125,
0.01678466796875,
-0.0298614501953125,
-0.0288543701171875,
-0.01055908203125,
-0.01434326171875,
-0.005214691162109375,
0.0015382766723632812,
0.0188140869140625,
0.00959014892578125,
0.034423828125,
-0.00670623779296875,
0.01526641845703125,
-0.0118865966796875,
-0.00519561767578125,
-0.0289154052734375,
0.00034880638122558594,
-0.03619384765625,
0.05364990234375,
-0.0008463859558105469,
-0.0007758140563964844,
-0.01166534423828125,
0.01953125,
-0.008392333984375,
-0.061767578125,
0.056884765625,
-0.02728271484375,
0.007251739501953125,
-0.036712646484375,
-0.038299560546875,
0.002422332763671875,
0.11083984375,
0.0070953369140625,
-0.01465606689453125,
0.00327301025390625,
0.001712799072265625,
-0.021636962890625,
-0.03155517578125,
-0.0268402099609375,
-0.01358795166015625,
-0.046722412109375,
-0.00806427001953125,
-0.006153106689453125,
-0.05572509765625,
0.00861358642578125,
-0.0208740234375,
-0.0207977294921875,
-0.0228271484375,
0.03558349609375,
-0.0194244384765625,
-0.0193023681640625,
0.046539306640625,
-0.026885986328125,
0.019775390625,
-0.047454833984375,
0.004505157470703125,
-0.04083251953125,
-0.006565093994140625,
0.036529541015625,
0.00354766845703125,
0.0022296905517578125,
-0.05731201171875,
-0.0082550048828125,
0.029937744140625,
0.00463104248046875,
0.0404052734375,
0.0154266357421875,
0.0217742919921875,
-0.00685882568359375,
-0.031463623046875,
0.0249176025390625,
-0.045318603515625,
0.027496337890625,
0.006435394287109375,
-0.06146240234375,
-0.01139068603515625,
-0.020172119140625,
0.032073974609375,
0.0274810791015625,
-0.03924560546875,
-0.0391845703125,
0.00333404541015625,
0.00453948974609375,
0.008697509765625,
0.01235198974609375,
-0.00528717041015625,
0.0108184814453125,
-0.061187744140625,
0.048492431640625,
0.004364013671875,
-0.0107879638671875,
-0.00782012939453125,
0.08465576171875,
0.0165557861328125,
-0.01450347900390625,
-0.0243988037109375,
-0.004779815673828125,
0.0225372314453125,
-0.0263214111328125,
0.09765625,
0.053955078125,
0.004245758056640625,
0.05816650390625,
0.0030918121337890625,
-0.031097412109375,
0.0012378692626953125,
0.04547119140625,
-0.0184783935546875,
-0.0193939208984375,
0.00302886962890625,
-0.053863525390625,
0.016021728515625,
0.0255584716796875,
-0.01458740234375,
0.006885528564453125,
-0.031524658203125,
0.006832122802734375,
-0.0194091796875,
0.0418701171875,
0.004253387451171875,
-0.016876220703125,
0.01531219482421875,
-0.0176239013671875,
0.038421630859375,
0.03173828125,
-0.0026073455810546875,
0.00952911376953125,
0.0019550323486328125,
-0.01178741455078125,
-0.01459503173828125,
0.026519775390625,
0.0136566162109375,
0.025665283203125,
0.01139068603515625,
-0.0082244873046875,
-0.042327880859375,
-0.01422119140625,
0.035980224609375,
-0.0022735595703125,
-0.0335693359375,
0.00252532958984375,
-0.0134735107421875,
0.0187225341796875,
0.03729248046875,
-0.008392333984375,
0.04486083984375,
0.0247650146484375,
-0.034088134765625,
-0.004913330078125,
-0.0307159423828125,
0.00782012939453125,
-0.05169677734375,
0.0159912109375,
0.0007200241088867188,
0.0020923614501953125,
-0.0133819580078125,
0.062347412109375,
0.0180206298828125,
0.011932373046875,
-0.0293121337890625,
0.0216827392578125,
0.04119873046875,
0.0020008087158203125,
0.0184783935546875,
-0.008056640625,
0.019866943359375,
-0.04827880859375,
0.0245208740234375,
-0.01031494140625,
-0.02032470703125,
-0.0029888153076171875,
0.03131103515625,
-0.0177001953125,
0.00682830810546875,
0.01470947265625,
-0.032135009765625,
-0.00006455183029174805,
0.0024204254150390625,
-0.0240325927734375,
-0.0295562744140625,
-0.004848480224609375,
0.015838623046875,
-0.005664825439453125,
-0.006378173828125,
0.003841400146484375,
0.0281524658203125,
-0.011383056640625,
-0.006572723388671875,
0.01143646240234375,
-0.04083251953125,
-0.00554656982421875,
0.000492095947265625,
0.025238037109375,
0.002918243408203125,
-0.0037746429443359375,
-0.038116455078125,
-0.012664794921875,
-0.01462554931640625,
0.011688232421875,
0.041473388671875,
0.01374053955078125,
0.060821533203125,
-0.012908935546875,
-0.062744140625,
0.025909423828125,
-0.0173492431640625,
0.0557861328125,
0.023101806640625,
-0.0019044876098632812,
-0.01739501953125,
-0.004024505615234375,
0.004032135009765625,
0.03778076171875,
0.01198577880859375,
0.0026531219482421875,
-0.00641632080078125,
-0.00040268898010253906,
0.0307769775390625,
-0.03924560546875,
0.006694793701171875,
-0.024993896484375,
0.04852294921875,
0.024810791015625,
0.1290283203125,
-0.007389068603515625,
0.08819580078125,
-0.032379150390625,
0.0296173095703125,
0.00632476806640625,
0.0268402099609375,
-0.06024169921875,
-0.00035858154296875,
-0.016204833984375,
-0.0004107952117919922,
-0.018829345703125,
-0.0007338523864746094,
-0.0077056884765625,
0.030609130859375,
0.084228515625,
0.005931854248046875,
0.0230712890625,
-0.01092529296875,
0.0148468017578125,
-0.021148681640625,
-0.0157318115234375,
-0.03887939453125,
-0.037811279296875,
0.05780029296875,
-0.0210418701171875,
-0.01971435546875,
0.0004858970642089844,
-0.00390625,
0.0295867919921875,
-0.0097808837890625,
0.03253173828125,
0.004405975341796875,
-0.061065673828125,
0.056976318359375,
0.07562255859375,
0.0364990234375,
0.042724609375,
-0.00897216796875,
0.008148193359375,
0.0004010200500488281,
0.02880859375,
-0.041229248046875,
-0.00894927978515625,
0.053466796875,
0.0273895263671875,
-0.003475189208984375,
0.047088623046875,
-0.007358551025390625,
0.0114593505859375,
0.0186004638671875,
0.06011962890625,
-0.061553955078125,
0.0275726318359375,
0.0177459716796875,
-0.003376007080078125,
0.023712158203125,
0.01155853271484375,
-0.026214599609375,
-0.0531005859375,
0.033538818359375,
-0.0209808349609375,
-0.0010309219360351562,
0.007843017578125,
-0.01300811767578125,
-0.0225372314453125,
-0.0273590087890625,
0.05438232421875,
0.015716552734375,
-0.0288543701171875,
0.0172882080078125,
0.001953125,
-0.0012836456298828125,
-0.036590576171875,
0.0010623931884765625,
-0.0045013427734375,
-0.022613525390625,
-0.0419921875,
0.00914764404296875,
-0.0007905960083007812,
0.0025196075439453125,
0.03948974609375,
-0.002956390380859375,
0.0211181640625,
0.030792236328125,
-0.003002166748046875,
-0.002704620361328125,
-0.009857177734375,
-0.0241851806640625,
-0.005352020263671875,
-0.01702880859375,
0.046875,
-0.0110931396484375,
-0.06573486328125,
0.0244598388671875,
-0.055908203125,
-0.0196533203125,
-0.0267486572265625,
-0.05853271484375,
0.08624267578125,
-0.07781982421875,
0.0214691162109375,
0.0152587890625,
0.046966552734375,
-0.00598907470703125,
-0.0130462646484375,
0.031768798828125,
-0.0244293212890625,
0.0177764892578125,
-0.004665374755859375,
0.028228759765625,
0.0015430450439453125,
-0.0068206787109375,
-0.07867431640625,
0.1024169921875,
0.0206451416015625,
0.030303955078125,
-0.01337432861328125,
0.049530029296875,
-0.019744873046875,
0.0210113525390625,
0.006641387939453125,
0.0178375244140625,
-0.00743865966796875,
0.01220703125,
-0.01198577880859375,
-0.022857666015625,
0.00235748291015625,
0.05584716796875,
0.10369873046875,
0.0247650146484375,
-0.0229949951171875,
-0.0309295654296875,
0.0158843994140625,
0.0017633438110351562,
-0.0509033203125,
0.052947998046875,
0.019287109375,
0.0285186767578125,
0.05487060546875,
-0.05859375,
0.0269622802734375,
-0.058441162109375,
0.04052734375,
0.0250396728515625,
-0.0015993118286132812,
-0.0106201171875,
-0.00506591796875,
0.00750732421875,
-0.02276611328125,
-0.00295257568359375,
0.0180511474609375,
-0.05853271484375,
-0.01132965087890625,
0.0213775634765625,
0.03533935546875,
-0.05267333984375,
-0.0206298828125,
-0.0258026123046875,
0.044830322265625,
-0.0030040740966796875,
0.0141754150390625,
0.0044708251953125,
0.0013217926025390625,
0.05010986328125,
0.0002244710922241211,
-0.00012493133544921875,
0.0132598876953125,
0.01500701904296875,
0.05120849609375,
0.04974365234375,
0.0223846435546875,
-0.00859832763671875,
0.038665771484375,
0.0186004638671875,
0.042449951171875,
-0.05633544921875,
-0.065673828125,
0.0018320083618164062,
-0.0070037841796875,
0.010223388671875,
0.005916595458984375,
0.0218048095703125,
0.0121307373046875,
0.06927490234375,
-0.012725830078125,
-0.0023136138916015625,
0.0292510986328125,
0.0307159423828125,
0.00965118408203125,
0.0225677490234375,
-0.05682373046875,
-0.00034689903259277344,
-0.03375244140625,
-0.000033855438232421875,
0.0040130615234375,
0.02178955078125,
0.0216522216796875,
0.03070068359375,
0.00514984130859375,
0.00786590576171875,
-0.00981903076171875,
0.0266876220703125,
-0.01056671142578125,
0.0231475830078125,
-0.0163116455078125,
-0.029266357421875,
0.018829345703125,
0.029693603515625,
-0.0005173683166503906,
-0.004604339599609375,
0.0045623779296875,
-0.006816864013671875,
-0.01241302490234375,
-0.01611328125,
-0.0180511474609375,
-0.0300750732421875,
0.05804443359375,
-0.02459716796875,
0.0537109375,
-0.0113525390625,
-0.0239715576171875,
-0.054534912109375,
0.014739990234375,
0.0304107666015625,
-0.0279998779296875,
0.034881591796875,
0.0018167495727539062,
-0.004528045654296875,
0.013519287109375,
-0.007678985595703125,
0.00760650634765625,
-0.0080718994140625,
-0.05828857421875,
0.00585174560546875,
-0.051422119140625,
-0.041717529296875,
0.0280303955078125,
0.038665771484375,
0.0022792816162109375,
-0.011260986328125,
-0.0191192626953125,
0.03515625,
0.005619049072265625,
-0.03948974609375,
-0.003162384033203125,
0.029205322265625,
0.03436279296875,
0.0255126953125,
-0.050872802734375,
-0.047149658203125,
-0.039947509765625,
0.030548095703125,
0.02056884765625,
0.049652099609375,
-0.0014801025390625,
0.033355712890625,
-0.046875,
0.0416259765625,
-0.037109375,
-0.06298828125,
0.0941162109375,
0.0372314453125,
-0.0113372802734375,
-0.020721435546875,
-0.07244873046875,
0.0740966796875,
-0.00324249267578125,
-0.004070281982421875,
0.053497314453125,
-0.01446533203125,
-0.0004856586456298828,
-0.00511932373046875,
0.034698486328125,
-0.0286712646484375,
-0.06744384765625,
-0.0440673828125,
0.02032470703125,
0.0115509033203125,
0.04119873046875,
-0.024322509765625,
0.0068206787109375,
-0.0094451904296875,
-0.021881103515625,
0.026519775390625,
-0.01049041748046875,
0.034881591796875,
0.0328369140625,
-0.04058837890625,
0.003078460693359375,
-0.0043182373046875,
-0.028564453125,
0.0261993408203125,
-0.009368896484375,
0.002193450927734375,
-0.00347137451171875,
-0.0154571533203125,
0.029937744140625,
-0.0030574798583984375,
0.0203399658203125,
-0.02325439453125,
-0.006931304931640625,
0.00760650634765625,
0.004749298095703125,
0.01491546630859375,
-0.034149169921875,
-0.035400390625,
-0.057464599609375,
0.022369384765625,
0.0253753662109375,
-0.015899658203125,
0.01003265380859375,
-0.04437255859375,
0.0078887939453125,
-0.00659942626953125,
0.0041351318359375,
-0.0472412109375,
0.03570556640625,
0.006072998046875,
0.0269927978515625,
-0.0302581787109375,
0.040283203125,
-0.007335662841796875,
0.00452423095703125,
-0.056427001953125,
0.03033447265625,
-0.0182952880859375,
-0.0071258544921875,
0.00354766845703125,
0.00769805908203125,
0.03289794921875,
-0.02642822265625,
-0.005382537841796875,
0.036529541015625,
0.01325225830078125,
0.08135986328125,
0.001178741455078125,
0.01247406005859375,
0.0014581680297851562,
0.0209808349609375,
-0.03973388671875,
-0.082763671875,
0.01317596435546875,
-0.055908203125,
0.00753021240234375,
-0.009918212890625,
-0.01690673828125,
-0.003200531005859375,
-0.053924560546875,
-0.05865478515625,
0.041778564453125,
-0.014892578125,
-0.0328369140625,
-0.05096435546875,
-0.0028018951416015625,
0.020660400390625,
-0.05828857421875,
-0.034271240234375,
-0.00693511962890625,
-0.055572509765625,
0.034271240234375,
0.013519287109375,
0.035308837890625,
0.0079345703125,
0.024566650390625,
0.00311279296875,
0.04254150390625,
0.0200653076171875,
0.0012922286987304688,
0.0101776123046875,
-0.00876617431640625,
0.007656097412109375,
0.032196044921875,
-0.051544189453125,
-0.053497314453125,
-0.026153564453125,
0.0117645263671875,
-0.01139068603515625,
-0.032958984375,
0.01312255859375,
0.003173828125,
0.025421142578125,
0.0367431640625,
-0.0030651092529296875,
-0.0243988037109375,
-0.0015287399291992188,
-0.0238800048828125,
-0.020355224609375,
-0.006256103515625,
0.03131103515625,
-0.059967041015625,
-0.008758544921875,
0.01611328125,
-0.0197296142578125,
-0.0013580322265625,
-0.00933837890625,
-0.035003662109375,
0.0047760009765625,
-0.006214141845703125,
-0.0223541259765625,
0.0018405914306640625,
-0.0243072509765625,
0.07855224609375,
-0.055419921875,
-0.040191650390625,
0.032623291015625,
0.007568359375,
0.01534271240234375,
0.005443572998046875,
0.040771484375,
0.058135986328125,
-0.0389404296875,
-0.004177093505859375,
0.03936767578125,
0.043792724609375,
-0.03460693359375,
-0.037017822265625,
0.006443023681640625,
0.007556915283203125,
-0.00441741943359375,
0.001674652099609375,
0.0022602081298828125,
-0.01541900634765625,
-0.0304412841796875,
0.0419921875,
0.016632080078125,
0.0343017578125,
0.00782012939453125,
0.06829833984375,
-0.00557708740234375,
-0.03131103515625,
0.012054443359375,
-0.054901123046875,
-0.0007634162902832031,
-0.025177001953125,
0.019866943359375,
-0.034210205078125,
0.0225067138671875,
-0.05035400390625,
-0.0037441253662109375,
0.0276031494140625
] |
2200a5c95fd1e3e649f08bf18efabfa0b88c6b8d | Wordpress Stackexchange
Q: How to get current page title inside a page itself in a shortcode and in page content When i add the
<?php the_title(); ?>
to a page template file it works and is able to pull the page title inside html tags however if i wanted to add
<?php the_title(); ?>
to a single page itself how would i do so?
Also to provide more context; i want to add the
<?php the_title(); ?>
inside a shortcode in order to have the shortcode replace part of it with the specific page's title, how would i do that?
For Example: the shortcode [products columns="3" attribute="season" terms="warm" orderby="date"] Except replace the seasons with the page title... thanks!
A: You can create a shortcode to fetch the title of current page. Try copying the following snippet in your child theme's functions.php
function post_title_shortcode(){
return get_the_title();
}
add_shortcode('post_title','post_title_shortcode');
Use [post_title] shortcode to display the title of the post or page.
| Q: How to get current page title inside a page itself in a shortcode and in page content When i add the
<?php the_title(); ?>
to a page template file it works and is able to pull the page title inside html tags however if i wanted to add
<?php the_title(); ?>
to a single page itself how would i do so?
Also to provide more context; i want to add the
<?php the_title(); ?>
inside a shortcode in order to have the shortcode replace part of it with the specific page's title, how would i do that?
For Example: the shortcode [products columns="3" attribute="season" terms="warm" orderby="date"] Except replace the seasons with the page title... thanks!
A: You can create a shortcode to fetch the title of current page. Try copying the following snippet in your child theme's functions.php
function post_title_shortcode(){
return get_the_title();
}
add_shortcode('post_title','post_title_shortcode');
Use [post_title] shortcode to display the title of the post or page.
| wordpress | {
"language": "en",
"length": 157,
"provenance": "stackexchange_00019.jsonl.gz:489394",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/314457"
} | [
-0.0033054351806640625,
-0.0242462158203125,
0.0051116943359375,
0.008392333984375,
-0.03662109375,
-0.0160064697265625,
0.035736083984375,
-0.0086822509765625,
-0.00910186767578125,
0.0306549072265625,
0.00067138671875,
0.032196044921875,
-0.042724609375,
-0.0141754150390625,
0.003910064697265625,
-0.0252838134765625,
0.048126220703125,
-0.0305938720703125,
0.042022705078125,
0.00519561767578125,
-0.00811004638671875,
0.037353515625,
0.03936767578125,
0.03277587890625,
0.0251007080078125,
-0.07684326171875,
0.07183837890625,
-0.004253387451171875,
0.0204315185546875,
-0.0290069580078125,
0.0162353515625,
0.024749755859375,
0.06878662109375,
-0.038665771484375,
-0.019012451171875,
0.051300048828125,
-0.017333984375,
-0.036376953125,
-0.0044403076171875,
0.006641387939453125,
0.0160064697265625,
0.0015325546264648438,
0.007358551025390625,
0.0184783935546875,
-0.0279998779296875,
-0.032440185546875,
0.0218505859375,
-0.0142059326171875,
-0.0235443115234375,
0.0203857421875,
0.0400390625,
0.007572174072265625,
0.04205322265625,
-0.008575439453125,
-0.00984954833984375,
-0.01171112060546875,
-0.0150909423828125,
-0.03851318359375,
0.045867919921875,
-0.04144287109375,
-0.034637451171875,
-0.05621337890625,
0.057342529296875,
-0.01154327392578125,
0.00643157958984375,
0.02960205078125,
0.058685302734375,
0.01629638671875,
0.0156707763671875,
-0.00780487060546875,
-0.001972198486328125,
0.00531768798828125,
-0.0077056884765625,
-0.0191192626953125,
-0.02001953125,
0.0049896240234375,
-0.004886627197265625,
-0.0250701904296875,
-0.0006203651428222656,
0.003704071044921875,
-0.00026416778564453125,
-0.01287841796875,
-0.0450439453125,
0.00732421875,
0.006862640380859375,
0.031524658203125,
-0.00341033935546875,
-0.007663726806640625,
-0.0262603759765625,
-0.006855010986328125,
-0.0270843505859375,
0.0263824462890625,
-0.0064849853515625,
-0.01153564453125,
-0.0281219482421875,
-0.007598876953125,
0.0204620361328125,
0.10601806640625,
-0.0335693359375,
0.04583740234375,
-0.052093505859375,
-0.01763916015625,
0.013153076171875,
-0.07012939453125,
-0.0111083984375,
0.01094818115234375,
-0.024688720703125,
-0.049957275390625,
0.032318115234375,
0.031219482421875,
-0.0104522705078125,
-0.001567840576171875,
-0.0299072265625,
-0.0006165504455566406,
-0.04150390625,
0.04534912109375,
-0.048614501953125,
-0.0216827392578125,
-0.014617919921875,
0.0180206298828125,
0.00855255126953125,
0.02581787109375,
0.0170135498046875,
-0.022064208984375,
0.0070343017578125,
-0.001953125,
-0.0282440185546875,
-0.0261688232421875,
0.02752685546875,
-0.0142059326171875,
-0.01080322265625,
-0.00620269775390625,
0.02081298828125,
0.038848876953125,
0.01432037353515625,
-0.01073455810546875,
-0.0218505859375,
-0.0251312255859375,
0.0164947509765625,
-0.0285186767578125,
0.00800323486328125,
0.01297760009765625,
0.032470703125,
-0.0240325927734375,
-0.03436279296875,
-0.0161285400390625,
-0.0037479400634765625,
0.047454833984375,
0.0012426376342773438,
-0.0232696533203125,
0.036590576171875,
-0.01995849609375,
-0.00656890869140625,
0.025634765625,
0.01207733154296875,
-0.021514892578125,
-0.0020580291748046875,
-0.026397705078125,
0.0640869140625,
-0.033447265625,
0.0423583984375,
-0.004093170166015625,
-0.007740020751953125,
0.00634765625,
-0.040740966796875,
-0.00890350341796875,
-0.04736328125,
-0.01264190673828125,
0.01031494140625,
0.031494140625,
0.0006384849548339844,
0.0036411285400390625,
-0.05059814453125,
0.00042891502380371094,
-0.0024814605712890625,
-0.0233001708984375,
-0.049713134765625,
-0.0017347335815429688,
0.042083740234375,
-0.00769805908203125,
-0.0341796875,
-0.035736083984375,
0.0162811279296875,
0.005092620849609375,
-0.01311492919921875,
-0.005828857421875,
0.0182647705078125,
0.0205841064453125,
-0.006496429443359375,
0.038970947265625,
0.00971221923828125,
0.0189361572265625,
-0.052337646484375,
-0.002407073974609375,
0.0009517669677734375,
-0.00830078125,
-0.01132965087890625,
-0.006870269775390625,
-0.00508880615234375,
0.01204681396484375,
-0.0189361572265625,
-0.028350830078125,
0.014984130859375,
0.0384521484375,
0.0262298583984375,
-0.006221771240234375,
0.00011998414993286133,
0.0182342529296875,
0.0070343017578125,
-0.0411376953125,
0.0010137557983398438,
-0.04449462890625,
0.0175933837890625,
-0.052978515625,
-0.055084228515625,
0.019775390625,
-0.04400634765625,
-0.031585693359375,
-0.0018749237060546875,
-0.0012454986572265625,
0.0120391845703125,
0.039459228515625,
-0.01451873779296875,
0.0225372314453125,
0.07989501953125,
-0.021881103515625,
-0.0249176025390625,
-0.035736083984375,
0.040008544921875,
0.013702392578125,
-0.06732177734375,
0.024871826171875,
-0.0222320556640625,
0.014678955078125,
-0.035858154296875,
-0.0188446044921875,
-0.031951904296875,
0.0008144378662109375,
0.020782470703125,
0.03619384765625,
0.045196533203125,
0.039947509765625,
0.0322265625,
0.0215301513671875,
0.045135498046875,
-0.0438232421875,
0.02294921875,
-0.029327392578125,
0.047637939453125,
0.0802001953125,
0.0274200439453125,
0.0023860931396484375,
0.0045013427734375,
-0.024749755859375,
0.0263214111328125,
0.03631591796875,
-0.0267181396484375,
-0.0078125,
-0.003650665283203125,
-0.01309967041015625,
0.0100860595703125,
-0.05078125,
-0.00704193115234375,
-0.044677734375,
0.0501708984375,
0.046142578125,
0.04547119140625,
0.05035400390625,
-0.0245361328125,
0.00931549072265625,
0.0005984306335449219,
0.01381683349609375,
0.0024433135986328125,
0.043853759765625,
0.03173828125,
-0.0254058837890625,
-0.021209716796875,
-0.029571533203125,
-0.00036263465881347656,
0.0135955810546875,
-0.004657745361328125,
0.0042266845703125,
-0.0246734619140625,
-0.00936126708984375,
0.000858306884765625,
-0.054046630859375,
0.000179290771484375,
0.041900634765625,
0.055908203125,
0.017120361328125,
0.0099334716796875,
0.05133056640625,
-0.02996826171875,
0.08624267578125,
0.03192138671875,
-0.0013761520385742188,
0.0802001953125,
-0.02825927734375,
0.046875,
-0.0209503173828125,
0.0521240234375,
0.0498046875,
-0.035919189453125,
0.006114959716796875,
0.01258087158203125,
-0.0237884521484375,
0.0151824951171875,
-0.03955078125,
-0.0228729248046875,
0.058502197265625,
-0.0966796875,
0.041900634765625,
0.02105712890625,
0.0706787109375,
-0.011810302734375,
-0.03839111328125,
0.0198822021484375,
0.04754638671875,
-0.06524658203125,
-0.07220458984375,
0.039215087890625,
-0.035614013671875,
-0.0082244873046875,
-0.020721435546875,
-0.0192108154296875,
-0.01361083984375,
0.020538330078125,
-0.01010894775390625,
0.0257568359375,
-0.0202789306640625,
-0.028594970703125,
-0.0156402587890625,
-0.0614013671875,
-0.009735107421875,
-0.0007534027099609375,
0.011566162109375,
0.0019502639770507812,
0.0298309326171875,
0.01306915283203125,
-0.029144287109375,
-0.00453948974609375,
0.051055908203125,
-0.0181732177734375,
-0.017578125,
0.01239776611328125,
-0.0152587890625,
-0.0009655952453613281,
0.025054931640625,
-0.09405517578125,
-0.0088348388671875,
0.0345458984375,
-0.04168701171875,
-0.02728271484375,
0.03790283203125,
-0.002178192138671875,
0.0255889892578125,
0.0438232421875,
0.05865478515625,
0.03521728515625,
-0.01092529296875,
-0.060546875,
-0.01422882080078125,
-0.08624267578125,
0.00823211669921875,
0.07135009765625,
0.00396728515625,
-0.01227569580078125,
0.0008444786071777344,
0.006580352783203125,
0.0261383056640625,
0.047943115234375,
0.0031261444091796875,
0.00458526611328125,
-0.005992889404296875,
-0.02484130859375,
-0.035003662109375,
0.039794921875,
0.006046295166015625,
0.042938232421875,
0.030364990234375,
0.04541015625,
0.01523590087890625,
0.01477813720703125,
-0.02398681640625,
-0.0440673828125,
0.038665771484375,
-0.01506805419921875,
0.03668212890625,
-0.042205810546875,
-0.03887939453125,
-0.0025787353515625,
0.10430908203125,
-0.06304931640625,
-0.006565093994140625,
0.01293182373046875,
0.017608642578125,
-0.00811767578125,
-0.042510986328125,
-0.07037353515625,
-0.0276031494140625,
-0.08551025390625,
0.0056915283203125,
-0.0260772705078125,
-0.007572174072265625,
-0.00426483154296875,
0.049346923828125,
-0.029388427734375,
-0.030517578125,
0.0297698974609375,
-0.00698089599609375,
-0.0042877197265625,
0.032745361328125,
-0.050445556640625,
0.0270843505859375,
-0.04119873046875,
-0.006809234619140625,
-0.0430908203125,
-0.000946044921875,
0.0275726318359375,
0.0292816162109375,
-0.0237884521484375,
-0.0167388916015625,
-0.0255126953125,
0.0237884521484375,
0.004222869873046875,
0.018798828125,
0.01105499267578125,
-0.00630950927734375,
0.048309326171875,
0.0296173095703125,
0.01263427734375,
-0.006549835205078125,
0.0248260498046875,
0.0295257568359375,
-0.03424072265625,
0.017730712890625,
-0.047607421875,
-0.02288818359375,
0.004665374755859375,
-0.05145263671875,
-0.052764892578125,
-0.0175628662109375,
0.0484619140625,
0.034027099609375,
-0.0017518997192382812,
0.039215087890625,
-0.0003483295440673828,
-0.0408935546875,
0.0740966796875,
0.040130615234375,
-0.0280303955078125,
-0.01451873779296875,
0.0302734375,
0.00568389892578125,
-0.062347412109375,
-0.027557373046875,
-0.007335662841796875,
0.0469970703125,
-0.03521728515625,
0.036346435546875,
0.005046844482421875,
-0.060089111328125,
0.09088134765625,
-0.005268096923828125,
-0.0027866363525390625,
-0.0171661376953125,
0.050537109375,
-0.005767822265625,
-0.0006103515625,
0.0019197463989257812,
-0.025421142578125,
0.00632476806640625,
0.0017423629760742188,
-0.0374755859375,
0.0043487548828125,
-0.00876617431640625,
0.01605224609375,
-0.01261138916015625,
0.054656982421875,
0.0062103271484375,
-0.048187255859375,
-0.003955841064453125,
0.043853759765625,
0.01560211181640625,
0.0250396728515625,
0.01318359375,
0.00785064697265625,
0.0167388916015625,
-0.00014030933380126953,
-0.019378662109375,
0.00522613525390625,
-0.01898193359375,
0.0330810546875,
-0.0577392578125,
-0.022491455078125,
0.0022830963134765625,
-0.007335662841796875,
0.041168212890625,
-0.006328582763671875,
-0.04107666015625,
0.0129547119140625,
-0.035980224609375,
-0.0105743408203125,
0.01454925537109375,
0.023590087890625,
0.025115966796875,
0.04083251953125,
0.031646728515625,
-0.0066986083984375,
-0.0296173095703125,
0.0599365234375,
-0.021026611328125,
-0.0212860107421875,
0.013397216796875,
-0.0244140625,
-0.010955810546875,
0.057830810546875,
-0.0413818359375,
0.048736572265625,
-0.01202392578125,
0.033111572265625,
0.0139617919921875,
0.0294342041015625,
0.0007867813110351562,
-0.004131317138671875,
0.0125885009765625,
0.0031147003173828125,
0.0025730133056640625,
-0.017242431640625,
0.007221221923828125,
0.02435302734375,
0.03173828125,
-0.0235748291015625,
-0.0234222412109375,
0.016143798828125,
-0.0245361328125,
-0.005176544189453125,
0.027496337890625,
0.0031280517578125,
-0.01006317138671875,
-0.0526123046875,
-0.006938934326171875,
0.056671142578125,
0.02764892578125,
-0.00870513916015625,
0.004047393798828125,
-0.0172119140625,
0.0245361328125,
-0.00505828857421875,
0.00830841064453125,
-0.01177215576171875,
-0.0211029052734375,
-0.0557861328125,
-0.01457977294921875,
0.0172271728515625,
-0.01235198974609375,
-0.0193328857421875,
-0.0135498046875,
-0.035400390625,
0.0305633544921875,
0.0197906494140625,
0.054779052734375,
-0.0687255859375,
-0.01406097412109375,
-0.0123748779296875,
-0.01398468017578125,
0.0355224609375,
0.005451202392578125,
-0.022674560546875,
-0.0009489059448242188,
-0.04150390625,
-0.002979278564453125,
0.0086822509765625,
-0.060333251953125,
-0.01090240478515625,
-0.034881591796875,
0.013458251953125,
0.03857421875,
-0.00909423828125,
-0.0024929046630859375,
-0.031829833984375,
0.0138397216796875,
-0.0025386810302734375,
0.08807373046875,
-0.0127716064453125,
0.05609130859375,
0.033935546875,
0.06463623046875,
0.0153045654296875,
0.0179443359375,
-0.0214996337890625,
-0.03497314453125,
0.03302001953125,
-0.008544921875,
-0.0645751953125,
-0.032379150390625,
0.00246429443359375,
0.01071929931640625,
0.028289794921875,
-0.0167388916015625,
-0.0076141357421875,
0.00963592529296875,
0.01166534423828125,
-0.0185546875,
-0.00594329833984375,
0.0096282958984375,
-0.07147216796875,
0.04248046875,
-0.0404052734375,
-0.00978851318359375,
-0.000102996826171875,
0.00966644287109375,
0.016357421875,
-0.025787353515625,
-0.0051727294921875,
0.04425048828125,
-0.0333251953125,
0.0472412109375,
0.10137939453125,
-0.017303466796875,
0.0467529296875,
0.04229736328125,
-0.004268646240234375,
0.036529541015625,
0.02532958984375,
-0.023345947265625,
-0.017547607421875,
0.0628662109375,
0.01245880126953125,
-0.0382080078125,
0.03399658203125,
-0.033050537109375,
0.01248931884765625,
0.0220184326171875,
0.04742431640625,
-0.054107666015625,
0.020050048828125,
0.021148681640625,
-0.01236724853515625,
-0.00371551513671875,
0.01325225830078125,
0.008056640625,
-0.021148681640625,
0.025390625,
0.0230560302734375,
-0.005535125732421875,
0.0264129638671875,
-0.0077972412109375,
-0.01380157470703125,
-0.01806640625,
0.0677490234375,
0.0016965866088867188,
-0.042510986328125,
-0.034423828125,
0.00307464599609375,
-0.0213165283203125,
-0.0279388427734375,
-0.0008087158203125,
0.01401519775390625,
-0.02215576171875,
-0.032562255859375,
0.061126708984375,
0.003559112548828125,
0.0177001953125,
-0.01403045654296875,
0.01397705078125,
-0.0025424957275390625,
0.07415771484375,
-0.03839111328125,
0.0177001953125,
0.049285888671875,
-0.039459228515625,
-0.01043701171875,
-0.0010004043579101562,
0.00720977783203125,
-0.0025615692138671875,
-0.041473388671875,
-0.0026760101318359375,
-0.0628662109375,
0.0109405517578125,
0.0011806488037109375,
-0.0247650146484375,
0.04559326171875,
-0.020294189453125,
-0.03106689453125,
0.00323486328125,
-0.0227813720703125,
0.0162506103515625,
0.000614166259765625,
0.03729248046875,
0.002544403076171875,
0.037261962890625,
0.006397247314453125,
0.0159912109375,
-0.036041259765625,
-0.017669677734375,
-0.08984375,
0.08642578125,
-0.03515625,
0.046630859375,
0.0282745361328125,
0.0204925537109375,
-0.0299530029296875,
-0.0301971435546875,
-0.0287933349609375,
0.05047607421875,
-0.0164794921875,
0.065673828125,
-0.042327880859375,
-0.0234375,
0.039306640625,
0.051025390625,
0.009857177734375,
0.004505157470703125,
0.0015878677368164062,
-0.00214385986328125,
0.055816650390625,
0.0247650146484375,
-0.00872039794921875,
0.0232391357421875,
0.01275634765625,
0.01302337646484375,
0.01311492919921875,
-0.0025424957275390625,
0.024017333984375,
-0.0034637451171875,
-0.0194091796875,
0.04852294921875,
0.0214691162109375,
-0.007083892822265625,
0.0106658935546875,
-0.0010328292846679688,
-0.060638427734375,
0.0123138427734375,
0.0379638671875,
-0.00815582275390625,
0.005168914794921875,
0.048736572265625,
0.0252685546875,
-0.040252685546875,
-0.043731689453125,
-0.026763916015625,
0.039154052734375,
0.00492095947265625,
0.0271759033203125,
0.0197296142578125,
0.0206756591796875,
0.032501220703125,
-0.00243377685546875,
0.026031494140625,
0.024566650390625,
-0.017974853515625,
0.0399169921875,
0.01611328125,
0.01016998291015625,
-0.046051025390625,
0.0206146240234375,
0.0225830078125,
0.048095703125,
-0.052825927734375,
0.01085662841796875,
0.03167724609375,
-0.0037250518798828125,
-0.040008544921875,
-0.0491943359375,
-0.043365478515625,
0.0213623046875,
0.0252685546875,
0.0032596588134765625,
-0.006839752197265625,
0.037841796875,
0.0310211181640625,
0.0142822265625,
0.0108489990234375,
-0.062164306640625,
-0.01557159423828125,
-0.03900146484375,
0.0216217041015625,
0.00598907470703125,
0.065185546875,
0.0215301513671875,
0.0543212890625,
-0.0662841796875,
-0.0276336669921875,
0.0119781494140625,
0.0086212158203125,
-0.01568603515625,
-0.016326904296875,
-0.009185791015625,
-0.028411865234375,
0.00708770751953125,
0.0283660888671875,
0.066650390625,
0.0197601318359375,
0.035980224609375,
0.007843017578125,
-0.00896453857421875,
0.01088714599609375,
-0.018829345703125,
-0.0126495361328125,
0.034271240234375,
-0.0010671615600585938,
-0.00746917724609375,
-0.01480865478515625,
-0.0382080078125,
-0.0290679931640625,
0.03387451171875,
-0.003841400146484375,
-0.041229248046875,
0.035125732421875,
-0.01092529296875,
-0.01226806640625,
0.0120697021484375,
-0.0145263671875,
0.03704833984375,
-0.0255126953125,
-0.06964111328125,
-0.006397247314453125,
-0.0166168212890625,
-0.044158935546875,
0.02850341796875,
0.051971435546875,
-0.01393890380859375,
-0.01477813720703125,
0.007518768310546875,
-0.00606536865234375,
0.00494384765625,
0.019775390625,
0.0063934326171875,
0.0303192138671875,
0.02252197265625,
0.020843505859375,
-0.038055419921875,
-0.0032138824462890625,
-0.00789642333984375,
0.00736236572265625,
0.03692626953125,
0.036224365234375,
0.00971221923828125,
0.0299072265625,
-0.0227508544921875,
0.0194091796875,
-0.06024169921875,
-0.0285186767578125,
0.047515869140625,
-0.0150146484375,
-0.01145172119140625,
-0.006839752197265625,
-0.042205810546875,
0.047607421875,
0.0250244140625,
0.017608642578125,
0.0272216796875,
-0.0054168701171875,
0.003314971923828125,
0.00470733642578125,
0.0211029052734375,
-0.01512908935546875,
0.0224761962890625,
0.0236358642578125,
-0.0207366943359375,
0.0226593017578125,
0.01323699951171875,
0.017120361328125,
-0.007450103759765625,
0.037445068359375,
-0.0260162353515625,
0.040496826171875,
-0.0014581680297851562,
0.055938720703125,
0.036163330078125,
0.00118255615234375,
-0.028900146484375,
0.02288818359375,
-0.0010728836059570312,
0.00937652587890625,
0.0216217041015625,
0.020416259765625,
0.03802490234375,
-0.00421142578125,
0.0020313262939453125,
-0.03472900390625,
0.022796630859375,
-0.00614166259765625,
0.005031585693359375,
-0.0203857421875,
0.0070037841796875,
-0.028350830078125,
-0.037445068359375,
-0.026519775390625,
-0.053924560546875,
0.0079345703125,
0.0251007080078125,
-0.01267242431640625,
0.0063323974609375,
-0.04071044921875,
-0.033233642578125,
-0.0080413818359375,
-0.0037288665771484375,
0.021240234375,
-0.01142120361328125,
0.00341796875,
-0.047821044921875,
0.00066375732421875,
-0.036224365234375,
0.01983642578125,
0.0020160675048828125,
-0.055145263671875,
0.003238677978515625,
-0.0384521484375,
-0.044830322265625,
-0.0250396728515625,
0.00852203369140625,
0.0284881591796875,
-0.0014181137084960938,
-0.0109100341796875,
0.0184326171875,
-0.01184844970703125,
0.0704345703125,
-0.04364013671875,
-0.021087646484375,
0.016876220703125,
0.0024585723876953125,
0.00237274169921875,
-0.057525634765625,
0.0232391357421875,
-0.05743408203125,
0.0162200927734375,
0.011474609375,
-0.014312744140625,
-0.005035400390625,
-0.0311431884765625,
-0.0144500732421875,
0.0189056396484375,
0.0254364013671875,
-0.0340576171875,
-0.004619598388671875,
0.02191162109375,
-0.0189361572265625,
0.0011014938354492188,
0.00855255126953125,
-0.039825439453125,
0.0177154541015625,
0.0257720947265625,
0.03106689453125,
0.052703857421875,
-0.004077911376953125,
0.044708251953125,
-0.06915283203125,
0.00965118408203125,
-0.035491943359375,
0.00638580322265625,
0.03411865234375,
-0.0230865478515625,
0.0032558441162109375,
0.0028858184814453125,
-0.07440185546875,
-0.031494140625,
-0.03717041015625,
0.0259857177734375,
-0.007785797119140625,
-0.04296875,
-0.01045989990234375,
-0.0267333984375,
0.048583984375,
0.028289794921875,
0.01116180419921875,
-0.00969696044921875,
0.006656646728515625,
0.01390838623046875,
-0.0294952392578125,
0.0137786865234375,
0.01519012451171875,
-0.034271240234375,
0.00266265869140625,
0.005645751953125,
-0.0330810546875,
-0.02838134765625,
-0.01410675048828125,
-0.0638427734375,
0.00681304931640625,
-0.04266357421875,
0.01174163818359375,
-0.0181427001953125,
-0.0156707763671875,
0.08526611328125,
-0.0616455078125,
-0.02105712890625,
0.0220794677734375,
0.024627685546875,
0.0279693603515625,
-0.0218505859375,
0.0228271484375,
0.0543212890625,
-0.047943115234375,
-0.0166168212890625,
0.0284576416015625,
0.02044677734375,
-0.00637054443359375,
-0.00296783447265625,
-0.01123046875,
0.037567138671875,
-0.004825592041015625,
0.028594970703125,
-0.0252838134765625,
0.058502197265625,
0.01520538330078125,
0.061309814453125,
0.0010528564453125,
0.039642333984375,
-0.0104217529296875,
0.061737060546875,
-0.016326904296875,
-0.024078369140625,
-0.0114898681640625,
-0.0295867919921875,
-0.0024929046630859375,
0.04290771484375,
0.0160064697265625,
-0.01178741455078125,
0.0130462646484375,
-0.0280914306640625,
0.033294677734375,
-0.005035400390625
] |
522d2bdaa5226554838bd36429a928323779ebdd | Wordpress Stackexchange
Q: Lost the `wp_options` table: what's the best way to restore the site? Due to some important hardware failure, the wp_options table of one of my WP sites became corrupted, but everything else is okay (WP files and other tables). Obviously the site does not work because of this, and I had no backups.
What would be the best way to repair this? How can I create a fresh wp_options table for my WP version?
A: Uh oh, that's an important table. You might have lost a bunch of options, but you can still repair the database. WordPress allows a repair mode, which you can repair the database.
Open the wp-config.php file using FTP, and add this line before the ABSPATH:
define( 'WP_ALLOW_REPAIR', true );
now head over to :
http://yourdomain.com/wp-admin/maint/repair.php
Follow the steps to repair your broken database.
| Q: Lost the `wp_options` table: what's the best way to restore the site? Due to some important hardware failure, the wp_options table of one of my WP sites became corrupted, but everything else is okay (WP files and other tables). Obviously the site does not work because of this, and I had no backups.
What would be the best way to repair this? How can I create a fresh wp_options table for my WP version?
A: Uh oh, that's an important table. You might have lost a bunch of options, but you can still repair the database. WordPress allows a repair mode, which you can repair the database.
Open the wp-config.php file using FTP, and add this line before the ABSPATH:
define( 'WP_ALLOW_REPAIR', true );
now head over to :
http://yourdomain.com/wp-admin/maint/repair.php
Follow the steps to repair your broken database.
A: Your last suggestion (question?) is the right way to go, especially since you've already dropped that table.
Install a fresh version of WP into a new database (same version as your existing site), the export that table only from the new install and import it into your existing database.
Then BE SURE to set the two options that are critical, which is the blog URL and home URL, while you're still in phpMyAdmin, all other options can be set via the /wp-admin/ back-end when you can access it.
| wordpress | {
"language": "en",
"length": 228,
"provenance": "stackexchange_00019.jsonl.gz:489517",
"question_score": "6",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/314993"
} | [
0.019317626953125,
-0.026153564453125,
0.01117706298828125,
-0.00907135009765625,
-0.00666046142578125,
-0.043212890625,
0.038482666015625,
-0.023040771484375,
0.04638671875,
0.0002777576446533203,
-0.0660400390625,
-0.0220947265625,
0.0019102096557617188,
-0.01471710205078125,
-0.0400390625,
-0.052001953125,
0.03387451171875,
-0.038238525390625,
0.0090789794921875,
-0.005886077880859375,
0.0096282958984375,
0.0196380615234375,
0.0234375,
0.004581451416015625,
-0.0009965896606445312,
-0.006389617919921875,
0.07965087890625,
-0.037933349609375,
0.044281005859375,
-0.0032291412353515625,
0.022613525390625,
-0.03839111328125,
0.0218353271484375,
-0.0343017578125,
0.0439453125,
-0.0163116455078125,
0.00206756591796875,
-0.0135345458984375,
-0.0079193115234375,
0.04034423828125,
0.00293731689453125,
0.00753021240234375,
0.04962158203125,
-0.00681304931640625,
0.00472259521484375,
-0.03729248046875,
0.0182952880859375,
-0.04132080078125,
-0.0254974365234375,
0.0008335113525390625,
0.00922393798828125,
0.00461578369140625,
0.03643798828125,
-0.017303466796875,
0.0007486343383789062,
-0.0192413330078125,
-0.003971099853515625,
0.00743865966796875,
0.0179901123046875,
-0.016357421875,
-0.0262603759765625,
0.0183258056640625,
0.0230865478515625,
0.013824462890625,
0.0017862319946289062,
-0.00392913818359375,
0.06097412109375,
0.00472259521484375,
-0.045135498046875,
0.005420684814453125,
0.0501708984375,
-0.0108642578125,
0.01398468017578125,
-0.02691650390625,
0.02728271484375,
0.0030689239501953125,
-0.0212249755859375,
-0.003437042236328125,
0.025177001953125,
0.01500701904296875,
0.0253448486328125,
0.01507568359375,
0.01136016845703125,
-0.03692626953125,
0.0267333984375,
-0.01065826416015625,
-0.00194549560546875,
-0.024078369140625,
-0.025726318359375,
-0.0007576942443847656,
-0.0168914794921875,
-0.07281494140625,
-0.028350830078125,
0.0423583984375,
0.01265716552734375,
-0.0171051025390625,
0.01242828369140625,
0.005702972412109375,
0.01422119140625,
0.0169830322265625,
0.0302734375,
-0.07269287109375,
0.0693359375,
-0.02764892578125,
0.01038360595703125,
0.0235443115234375,
0.002964019775390625,
-0.042572021484375,
0.01236724853515625,
0.0238800048828125,
-0.01824951171875,
0.037750244140625,
0.00794219970703125,
-0.043670654296875,
0.00406646728515625,
0.0227203369140625,
-0.00667572021484375,
0.039031982421875,
0.0159454345703125,
0.00815582275390625,
-0.041473388671875,
-0.01678466796875,
-0.0733642578125,
-0.042449951171875,
-0.004962921142578125,
-0.07611083984375,
-0.0253448486328125,
0.093505859375,
-0.0305633544921875,
0.0180206298828125,
-0.03448486328125,
0.0160369873046875,
0.070556640625,
0.03240966796875,
0.0028362274169921875,
-0.0189056396484375,
0.0232696533203125,
0.018768310546875,
0.01480865478515625,
0.00466156005859375,
0.048583984375,
-0.041229248046875,
-0.02642822265625,
0.0384521484375,
0.044891357421875,
-0.0048370361328125,
0.01459503173828125,
0.039459228515625,
0.01148223876953125,
-0.0083770751953125,
0.0260467529296875,
0.043487548828125,
0.015472412109375,
0.0171051025390625,
0.01439666748046875,
-0.0379638671875,
0.05120849609375,
-0.043792724609375,
-0.0033416748046875,
-0.048614501953125,
-0.0176239013671875,
-0.0015430450439453125,
0.063232421875,
-0.00896453857421875,
-0.0185546875,
0.0028705596923828125,
-0.06414794921875,
-0.0196380615234375,
0.0294647216796875,
0.0044097900390625,
-0.00408172607421875,
-0.05908203125,
0.038238525390625,
0.00040268898010253906,
-0.02337646484375,
0.047119140625,
-0.0123748779296875,
-0.033966064453125,
0.03497314453125,
0.0164794921875,
-0.0095672607421875,
-0.0288543701171875,
0.00152587890625,
0.01154327392578125,
-0.005611419677734375,
0.004486083984375,
0.0012645721435546875,
0.07305908203125,
0.0199737548828125,
0.048553466796875,
-0.045318603515625,
-0.033203125,
-0.038177490234375,
0.04888916015625,
-0.00927734375,
-0.0294036865234375,
-0.0361328125,
0.012969970703125,
-0.023162841796875,
-0.016387939453125,
-0.00862884521484375,
0.046356201171875,
-0.04193115234375,
-0.015655517578125,
-0.08319091796875,
-0.0024280548095703125,
-0.0129852294921875,
0.058929443359375,
-0.0154266357421875,
-0.008697509765625,
0.0262908935546875,
-0.0071258544921875,
-0.05340576171875,
0.049957275390625,
-0.0143280029296875,
0.006809234619140625,
-0.0311126708984375,
0.0465087890625,
-0.0185546875,
0.04620361328125,
-0.0400390625,
-0.036834716796875,
-0.0235595703125,
-0.00009131431579589844,
-0.00304412841796875,
0.0030364990234375,
-0.01971435546875,
-0.006389617919921875,
0.0063629150390625,
-0.00981903076171875,
0.042572021484375,
0.026824951171875,
0.004085540771484375,
0.031158447265625,
0.01206207275390625,
-0.007781982421875,
0.010528564453125,
-0.08258056640625,
0.022705078125,
0.049560546875,
0.042327880859375,
0.03277587890625,
0.0195159912109375,
0.0119171142578125,
0.035369873046875,
-0.04168701171875,
0.025482177734375,
-0.0109100341796875,
-0.0023746490478515625,
0.01434326171875,
0.0149688720703125,
-0.0059356689453125,
0.021881103515625,
0.00812530517578125,
-0.0045013427734375,
0.03729248046875,
-0.061065673828125,
0.0204010009765625,
-0.0063934326171875,
-0.032562255859375,
0.0008287429809570312,
-0.0565185546875,
0.01392364501953125,
-0.043487548828125,
0.0259857177734375,
0.0045013427734375,
0.0235137939453125,
0.008148193359375,
-0.01528167724609375,
0.0265350341796875,
0.008056640625,
-0.06085205078125,
0.0028018951416015625,
0.047393798828125,
-0.0200347900390625,
0.05535888671875,
-0.027191162109375,
-0.0144500732421875,
0.01024627685546875,
0.037933349609375,
0.00577545166015625,
0.04266357421875,
-0.024658203125,
-0.017547607421875,
-0.00988006591796875,
-0.039093017578125,
-0.01105499267578125,
0.0148468017578125,
-0.05084228515625,
0.00858306884765625,
0.051483154296875,
0.0074005126953125,
0.0078277587890625,
-0.030731201171875,
-0.0014410018920898438,
0.0014591217041015625,
0.006565093994140625,
-0.036773681640625,
0.0200042724609375,
-0.01120758056640625,
0.0236663818359375,
0.07196044921875,
0.0134735107421875,
-0.010986328125,
-0.005306243896484375,
0.00684356689453125,
0.0308837890625,
-0.0088348388671875,
-0.0173797607421875,
-0.0014333724975585938,
-0.0657958984375,
-0.0058441162109375,
0.03466796875,
0.084716796875,
0.0034465789794921875,
-0.044952392578125,
-0.006015777587890625,
0.0474853515625,
-0.065185546875,
-0.06951904296875,
-0.04302978515625,
-0.06927490234375,
-0.0003139972686767578,
-0.00024044513702392578,
-0.02569580078125,
0.004199981689453125,
0.020355224609375,
0.01279449462890625,
0.0190582275390625,
-0.042388916015625,
-0.0308685302734375,
-0.05108642578125,
-0.0919189453125,
-0.042510986328125,
0.0133056640625,
0.03338623046875,
-0.001873016357421875,
0.0223541259765625,
0.0001348257064819336,
0.01041412353515625,
-0.008209228515625,
-0.047698974609375,
0.00276947021484375,
-0.0435791015625,
0.005237579345703125,
-0.043792724609375,
0.0029888153076171875,
0.00586700439453125,
0.00708770751953125,
0.01303863525390625,
-0.0037689208984375,
-0.0175628662109375,
-0.01312255859375,
0.0081024169921875,
-0.01136016845703125,
0.005157470703125,
0.0253448486328125,
0.001438140869140625,
-0.01898193359375,
-0.03955078125,
-0.02587890625,
0.01678466796875,
-0.01389312744140625,
0.0294952392578125,
-0.02313232421875,
-0.0154876708984375,
0.0095672607421875,
0.03204345703125,
0.041534423828125,
0.008819580078125,
0.020355224609375,
0.006221771240234375,
-0.02685546875,
0.0075531005859375,
0.01041412353515625,
-0.0243072509765625,
0.05743408203125,
-0.023284912109375,
-0.03631591796875,
0.01351165771484375,
-0.03582763671875,
-0.0011119842529296875,
-0.04071044921875,
-0.0160064697265625,
-0.04571533203125,
0.0283660888671875,
-0.040313720703125,
0.038421630859375,
-0.038177490234375,
-0.017333984375,
-0.005596160888671875,
0.1097412109375,
0.01226043701171875,
-0.0258636474609375,
0.016998291015625,
0.033477783203125,
-0.06634521484375,
-0.025482177734375,
-0.00879669189453125,
-0.01056671142578125,
-0.0894775390625,
-0.00936126708984375,
-0.0061492919921875,
-0.0408935546875,
-0.00417327880859375,
-0.045166015625,
-0.044464111328125,
-0.05096435546875,
0.0291900634765625,
-0.032012939453125,
-0.005657196044921875,
0.0220184326171875,
-0.0249786376953125,
0.00983428955078125,
-0.005397796630859375,
-0.028900146484375,
-0.07672119140625,
-0.0231170654296875,
-0.0279388427734375,
0.0567626953125,
0.035430908203125,
-0.042388916015625,
-0.01099395751953125,
0.0298309326171875,
-0.002574920654296875,
0.0024242401123046875,
0.02520751953125,
0.0178375244140625,
-0.01090240478515625,
0.0051727294921875,
0.02777099609375,
-0.036956787109375,
-0.00412750244140625,
-0.05902099609375,
-0.0369873046875,
-0.03643798828125,
-0.0357666015625,
0.028472900390625,
-0.026763916015625,
0.0010881423950195312,
0.0068511962890625,
-0.0236053466796875,
-0.07501220703125,
0.0162353515625,
-0.059326171875,
0.00568389892578125,
-0.02410888671875,
-0.033355712890625,
0.037445068359375,
0.00643157958984375,
-0.00717926025390625,
0.01415252685546875,
0.04937744140625,
0.015960693359375,
-0.0308074951171875,
-0.0272064208984375,
-0.03814697265625,
0.0112762451171875,
-0.0244140625,
0.034576416015625,
0.0161285400390625,
0.0005640983581542969,
0.037811279296875,
-0.0138702392578125,
-0.0194549560546875,
-0.049957275390625,
0.036407470703125,
0.00968170166015625,
0.0254058837890625,
-0.0301055908203125,
-0.024871826171875,
0.07659912109375,
0.030792236328125,
-0.0009965896606445312,
-0.00376129150390625,
-0.0301055908203125,
0.0008502006530761719,
0.00708770751953125,
-0.0114898681640625,
-0.0203857421875,
-0.0304107666015625,
-0.0016937255859375,
-0.0289459228515625,
0.06903076171875,
0.01763916015625,
0.01084136962890625,
0.053314208984375,
0.035247802734375,
-0.021484375,
-0.0160369873046875,
0.01374053955078125,
0.0018444061279296875,
0.0295562744140625,
-0.00904083251953125,
-0.0096893310546875,
-0.03497314453125,
-0.0220489501953125,
0.08441162109375,
0.01220703125,
-0.057403564453125,
0.01171112060546875,
-0.0213470458984375,
-0.015960693359375,
0.002597808837890625,
0.021942138671875,
0.0267181396484375,
0.005870819091796875,
-0.0280609130859375,
-0.009185791015625,
-0.03778076171875,
-0.0035572052001953125,
-0.046539306640625,
-0.002895355224609375,
-0.0005035400390625,
-0.00945281982421875,
0.000583648681640625,
0.042816162109375,
-0.01398468017578125,
0.021759033203125,
0.0002205371856689453,
-0.004138946533203125,
-0.00672149658203125,
0.03497314453125,
0.01222991943359375,
-0.0064544677734375,
0.0287933349609375,
-0.01015472412109375,
0.05279541015625,
-0.045928955078125,
-0.010223388671875,
-0.01427459716796875,
0.04559326171875,
-0.0111083984375,
-0.0260009765625,
0.04937744140625,
-0.0266265869140625,
0.004474639892578125,
0.033721923828125,
-0.01427459716796875,
-0.08282470703125,
0.01441192626953125,
0.045654296875,
0.01532745361328125,
-0.053192138671875,
0.032012939453125,
-0.01264190673828125,
-0.0189056396484375,
-0.01065826416015625,
-0.00977325439453125,
0.0031032562255859375,
-0.05859375,
-0.044952392578125,
-0.0023345947265625,
-0.02813720703125,
-0.04736328125,
0.0031604766845703125,
0.002643585205078125,
-0.0168914794921875,
-0.0200653076171875,
0.0196990966796875,
-0.0198211669921875,
-0.015899658203125,
-0.004611968994140625,
0.0083770751953125,
-0.0269927978515625,
0.017486572265625,
0.0031108856201171875,
-0.0242156982421875,
-0.0487060546875,
0.0132904052734375,
-0.03460693359375,
-0.0119781494140625,
0.01090240478515625,
-0.0097198486328125,
-0.059295654296875,
-0.0386962890625,
-0.007843017578125,
0.02294921875,
-0.0305633544921875,
-0.03070068359375,
0.0036754608154296875,
0.01617431640625,
0.01078033447265625,
-0.0029582977294921875,
-0.02557373046875,
0.08074951171875,
-0.029541015625,
0.03887939453125,
-0.0026187896728515625,
0.04644775390625,
-0.001941680908203125,
-0.002048492431640625,
0.018646240234375,
0.020355224609375,
-0.03533935546875,
-0.049591064453125,
0.03851318359375,
-0.0107574462890625,
0.032257080078125,
-0.0186767578125,
0.027252197265625,
-0.044921875,
0.0102996826171875,
-0.022857666015625,
0.05438232421875,
-0.0845947265625,
-0.0028705596923828125,
0.01337432861328125,
-0.034423828125,
-0.002475738525390625,
-0.007610321044921875,
0.0296630859375,
-0.0017786026000976562,
-0.02850341796875,
-0.005695343017578125,
0.0253448486328125,
-0.049163818359375,
0.05877685546875,
0.055145263671875,
0.01473236083984375,
0.031982421875,
-0.0008792877197265625,
0.01120758056640625,
-0.0131988525390625,
0.033233642578125,
-0.06475830078125,
-0.02874755859375,
0.025634765625,
0.02252197265625,
-0.0179290771484375,
0.0131072998046875,
-0.01849365234375,
0.015838623046875,
0.04345703125,
0.057464599609375,
-0.08172607421875,
0.0261993408203125,
0.016326904296875,
-0.0147552490234375,
0.005474090576171875,
-0.0360107421875,
-0.00463104248046875,
-0.011871337890625,
0.058990478515625,
-0.023101806640625,
-0.034881591796875,
-0.0037899017333984375,
-0.01556396484375,
-0.01052093505859375,
-0.0279083251953125,
0.0015316009521484375,
0.007083892822265625,
-0.0217132568359375,
0.03350830078125,
0.0299072265625,
0.02178955078125,
-0.021453857421875,
0.0024776458740234375,
-0.022216796875,
-0.009857177734375,
-0.053436279296875,
-0.00748443603515625,
-0.019012451171875,
-0.00727081298828125,
-0.03857421875,
-0.033905029296875,
-0.01306915283203125,
0.038970947265625,
-0.056304931640625,
0.01024627685546875,
0.0213775634765625,
-0.006320953369140625,
-0.01181793212890625,
-0.00014257431030273438,
0.031890869140625,
-0.0178680419921875,
-0.0127105712890625,
0.01001739501953125,
-0.0240631103515625,
-0.0489501953125,
-0.017333984375,
-0.043243408203125,
0.0826416015625,
-0.068603515625,
0.0149688720703125,
0.032806396484375,
0.0185546875,
-0.01617431640625,
-0.0177154541015625,
-0.0198516845703125,
-0.04461669921875,
-0.019073486328125,
-0.02252197265625,
-0.030792236328125,
0.03131103515625,
-0.01448822021484375,
-0.0177764892578125,
0.085205078125,
-0.003101348876953125,
-0.0452880859375,
0.008758544921875,
0.06463623046875,
-0.0560302734375,
0.03240966796875,
-0.021026611328125,
0.0235443115234375,
-0.027313232421875,
0.026885986328125,
-0.052581787109375,
0.015106201171875,
-0.00905609130859375,
0.0125732421875,
0.00582122802734375,
0.00780487060546875,
-0.032501220703125,
0.00244140625,
0.048614501953125,
0.039459228515625,
0.03033447265625,
0.037353515625,
-0.017669677734375,
0.0291900634765625,
0.033905029296875,
-0.04473876953125,
0.02996826171875,
0.004489898681640625,
-0.0252685546875,
0.00516510009765625,
0.0165252685546875,
0.01100921630859375,
-0.01396942138671875,
-0.003231048583984375,
-0.0284271240234375,
-0.0106964111328125,
0.0202484130859375,
-0.038604736328125,
0.01079559326171875,
0.01309967041015625,
-0.0208740234375,
-0.0140533447265625,
0.01076507568359375,
-0.0198516845703125,
0.0150909423828125,
-0.0246734619140625,
-0.0245361328125,
0.06475830078125,
0.0237579345703125,
-0.018280029296875,
0.02508544921875,
0.00238800048828125,
0.0083465576171875,
0.0135498046875,
0.05206298828125,
0.0389404296875,
0.02618408203125,
-0.008331298828125,
0.0172882080078125,
0.0189056396484375,
0.058685302734375,
-0.044769287109375,
-0.048858642578125,
0.01485443115234375,
0.007297515869140625,
0.0110626220703125,
0.0037937164306640625,
0.03314208984375,
0.0301513671875,
0.0499267578125,
-0.016845703125,
-0.0042572021484375,
0.00695037841796875,
-0.0213623046875,
-0.0157318115234375,
0.03009033203125,
0.01824951171875,
0.007633209228515625,
-0.006008148193359375,
-0.01300811767578125,
0.0229644775390625,
0.006961822509765625,
0.003108978271484375,
0.00820159912109375,
0.023101806640625,
0.00955963134765625,
-0.025360107421875,
0.0511474609375,
-0.0097198486328125,
0.033843994140625,
-0.05902099609375,
-0.06500244140625,
0.003997802734375,
0.061614990234375,
-0.0019741058349609375,
0.0135345458984375,
0.04107666015625,
0.043853759765625,
-0.00505828857421875,
-0.01450347900390625,
0.04254150390625,
-0.0067901611328125,
-0.0163726806640625,
-0.016357421875,
0.005092620849609375,
0.0153045654296875,
-0.007221221923828125,
0.01311492919921875,
0.0308685302734375,
0.004146575927734375,
0.006267547607421875,
0.04425048828125,
0.00995635986328125,
0.0186614990234375,
0.023101806640625,
0.037384033203125,
0.0016813278198242188,
0.0499267578125,
-0.0268402099609375,
-0.0250244140625,
-0.0015249252319335938,
0.0195465087890625,
-0.007297515869140625,
0.032196044921875,
0.041351318359375,
-0.01541900634765625,
-0.025146484375,
-0.036224365234375,
0.004413604736328125,
0.0233001708984375,
-0.0033473968505859375,
0.025848388671875,
0.017791748046875,
-0.0149688720703125,
-0.0706787109375,
-0.038787841796875,
-0.0309906005859375,
0.0390625,
-0.0039043426513671875,
0.07659912109375,
-0.018768310546875,
0.0150909423828125,
-0.027923583984375,
-0.005615234375,
-0.01198577880859375,
-0.023590087890625,
0.0210113525390625,
0.0023593902587890625,
-0.01983642578125,
-0.006397247314453125,
0.00022661685943603516,
0.0253753662109375,
0.0245513916015625,
-0.0137939453125,
-0.0163726806640625,
-0.025390625,
0.0223236083984375,
0.0230560302734375,
0.0006270408630371094,
-0.019012451171875,
-0.020843505859375,
0.001361846923828125,
-0.000009000301361083984,
0.0249176025390625,
0.0079345703125,
0.00774383544921875,
-0.007213592529296875,
-0.03485107421875,
0.0170745849609375,
0.017791748046875,
0.034820556640625,
-0.00001621246337890625,
0.025146484375,
-0.10601806640625,
-0.00507354736328125,
0.0099029541015625,
-0.0184478759765625,
0.035675048828125,
-0.00888824462890625,
0.03662109375,
0.01045989990234375,
-0.010009765625,
-0.011444091796875,
-0.014923095703125,
0.0220794677734375,
0.02056884765625,
-0.00365447998046875,
-0.029876708984375,
0.00946807861328125,
-0.017974853515625,
0.053466796875,
-0.01617431640625,
0.023773193359375,
-0.0310516357421875,
0.0009403228759765625,
0.0236968994140625,
-0.00605010986328125,
-0.0244293212890625,
-0.014678955078125,
0.00630950927734375,
0.01340484619140625,
-0.054107666015625,
0.0145111083984375,
0.01123809814453125,
0.00516510009765625,
-0.0285186767578125,
-0.031402587890625,
0.00394439697265625,
0.029205322265625,
-0.01453399658203125,
-0.03369140625,
-0.027191162109375,
0.00861358642578125,
-0.0185699462890625,
0.04156494140625,
0.036346435546875,
-0.0275115966796875,
0.0267181396484375,
0.057098388671875,
0.021820068359375,
0.10137939453125,
-0.031982421875,
-0.009307861328125,
0.039031982421875,
0.006572723388671875,
-0.044708251953125,
-0.09271240234375,
-0.015594482421875,
-0.052642822265625,
0.0428466796875,
-0.0465087890625,
0.0227813720703125,
0.0187530517578125,
-0.03546142578125,
-0.0271759033203125,
0.0682373046875,
-0.0212554931640625,
-0.0030460357666015625,
-0.028228759765625,
-0.05902099609375,
-0.04217529296875,
0.05810546875,
-0.007663726806640625,
-0.0208740234375,
-0.0355224609375,
0.07061767578125,
0.014495849609375,
0.02923583984375,
-0.0143280029296875,
0.0211334228515625,
-0.057525634765625,
0.039764404296875,
0.0183563232421875,
0.029571533203125,
0.00858306884765625,
-0.014678955078125,
0.0269927978515625,
0.07861328125,
-0.0031070709228515625,
-0.05572509765625,
-0.01415252685546875,
-0.05859375,
0.015625,
-0.0222015380859375,
-0.03173828125,
-0.0305023193359375,
0.0006933212280273438,
0.062164306640625,
0.01097869873046875,
-0.0023956298828125,
-0.032470703125,
-0.048675537109375,
-0.031494140625,
-0.03985595703125,
0.015380859375,
-0.07244873046875,
0.009246826171875,
0.006229400634765625,
-0.0260162353515625,
0.03936767578125,
0.0101470947265625,
0.00554656982421875,
0.01849365234375,
0.027862548828125,
-0.04998779296875,
-0.04071044921875,
-0.0208740234375,
0.0438232421875,
-0.031280517578125,
-0.005664825439453125,
-0.0235137939453125,
0.035400390625,
0.01094818115234375,
-0.049530029296875,
-0.02276611328125,
0.0008902549743652344,
-0.0245819091796875,
-0.00144195556640625,
-0.016845703125,
-0.0157318115234375,
-0.0189208984375,
-0.01104736328125,
0.035491943359375,
0.036285400390625,
-0.01446533203125,
0.043060302734375,
-0.00441741943359375,
0.0208740234375,
-0.0306549072265625,
0.043731689453125,
-0.003173828125,
0.01483917236328125,
-0.01276397705078125,
0.047882080078125,
-0.0162353515625,
-0.03521728515625,
0.0201873779296875,
-0.036590576171875,
-0.0019168853759765625,
-0.0020275115966796875,
0.04022216796875,
-0.05914306640625,
0.04986572265625,
-0.0118865966796875,
0.032073974609375,
0.0210418701171875
] |
ed5401832662a552f6bdbbd5580a9e8b0796a262 | Wordpress Stackexchange
Q: Gutenberg editor add a custom category as wrapper for custom blocks As we know by the provided API from Gutenberg we can create a custom block as
const { registerBlockType } = wp.blocks;
registerBlockType( 'my-namespace/my-block', {
})
but how do I create a wrapper(category like layout) around my custom blocks in gutenberg editor?
Let's say I want to have a collector for my custom elements as slider, gallery ...
A: Digging myself deeper in documentation, I got the following result.
There is a way to group your custom blocks around a given category in Gutenberg, and therefore we have the method block_categories_all. So with a filter, you can extend the default categories with custom ones.
Here is my example:
add_filter( 'block_categories_all', function( $categories, $post ) {
return array_merge(
$categories,
array(
array(
'slug' => 'my-slug',
'title' => 'my-title',
),
)
);
}, 10, 2 );
You can find more on this in the provided API.
| Q: Gutenberg editor add a custom category as wrapper for custom blocks As we know by the provided API from Gutenberg we can create a custom block as
const { registerBlockType } = wp.blocks;
registerBlockType( 'my-namespace/my-block', {
})
but how do I create a wrapper(category like layout) around my custom blocks in gutenberg editor?
Let's say I want to have a collector for my custom elements as slider, gallery ...
A: Digging myself deeper in documentation, I got the following result.
There is a way to group your custom blocks around a given category in Gutenberg, and therefore we have the method block_categories_all. So with a filter, you can extend the default categories with custom ones.
Here is my example:
add_filter( 'block_categories_all', function( $categories, $post ) {
return array_merge(
$categories,
array(
array(
'slug' => 'my-slug',
'title' => 'my-title',
),
)
);
}, 10, 2 );
You can find more on this in the provided API.
A: It is possible to filter the list of default block categories using the block_categories filter. Place the code in functions.php or your-plugin.php file. Explained here in WordPress Gutenberg Handbook
function my_plugin_block_categories( $categories, $post ) {
if ( $post->post_type !== 'post' ) {
return $categories;
}
return array_merge(
$categories,
array(
array(
'slug' => 'my-category',
'title' => __( 'My category', 'my-plugin' ),
'icon' => 'wordpress',
),
)
);
}
add_filter( 'block_categories', 'my_plugin_block_categories', 10, 2 );
To use an svg icon you can replace the icon in js. Define your icon.
const icon = <svg className='components-panel__icon' width='20' height='20' viewBox='0 0 20 20' aria-hidden='true' role='img' focusable='false' xmlns='http://www.w3.org/2000/svg'>
<rect fill="#ffffff" x="0" y="0" width="20" height="20"/>
<rect fill="#1163EB" x="2" y="2" width="16" height="16" rx="16"/>
</svg>;
and replace the icon using updateCategory function from wp.blocks; adding class components-panel__icon will add a 6px space to the left side of icon.
( function() {
wp.blocks.updateCategory( 'my-category', { icon: icon } );
} )();
| wordpress | {
"language": "en",
"length": 308,
"provenance": "stackexchange_00019.jsonl.gz:489663",
"question_score": "10",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/315511"
} | [
0.002628326416015625,
0.0157012939453125,
-0.040924072265625,
-0.041046142578125,
0.0234832763671875,
-0.0252685546875,
-0.0030670166015625,
0.00005322694778442383,
-0.0034465789794921875,
0.016448974609375,
0.00215911865234375,
-0.0283660888671875,
0.01396942138671875,
-0.03802490234375,
0.0028057098388671875,
-0.0181732177734375,
0.0237274169921875,
0.013153076171875,
0.040557861328125,
-0.0058135986328125,
0.00909423828125,
-0.0002472400665283203,
0.02020263671875,
0.049285888671875,
0.027008056640625,
-0.05877685546875,
0.07940673828125,
-0.030853271484375,
0.046356201171875,
-0.029632568359375,
0.034149169921875,
-0.01560211181640625,
0.0156402587890625,
0.009490966796875,
-0.0102386474609375,
0.03985595703125,
0.044647216796875,
-0.0103302001953125,
-0.00496673583984375,
0.041168212890625,
0.0308837890625,
-0.020721435546875,
-0.00882720947265625,
-0.0130767822265625,
-0.02099609375,
-0.007213592529296875,
0.01271820068359375,
-0.016632080078125,
0.0153350830078125,
0.00324249267578125,
-0.00479888916015625,
0.036376953125,
0.0185699462890625,
-0.0258636474609375,
-0.00726318359375,
-0.01050567626953125,
-0.0278472900390625,
0.005962371826171875,
0.0092620849609375,
0.032501220703125,
0.01300811767578125,
0.0284423828125,
-0.002780914306640625,
-0.01250457763671875,
0.0274505615234375,
-0.01580810546875,
0.05877685546875,
0.033050537109375,
-0.01154327392578125,
0.0101318359375,
0.0110626220703125,
0.002941131591796875,
-0.0022125244140625,
-0.038543701171875,
0.004184722900390625,
0.01120758056640625,
-0.0215606689453125,
-0.034088134765625,
0.02569580078125,
0.0004241466522216797,
-0.005886077880859375,
-0.018768310546875,
-0.0132293701171875,
-0.0379638671875,
0.0301055908203125,
0.012969970703125,
-0.0146636962890625,
-0.00890350341796875,
0.00815582275390625,
-0.009552001953125,
0.00672149658203125,
-0.028594970703125,
-0.0343017578125,
0.0638427734375,
0.0185546875,
-0.019500732421875,
0.0167083740234375,
-0.0046539306640625,
-0.017730712890625,
-0.003971099853515625,
0.025360107421875,
-0.060211181640625,
0.06561279296875,
-0.0345458984375,
0.040740966796875,
0.038330078125,
-0.05712890625,
0.0304412841796875,
0.09368896484375,
0.036529541015625,
0.034759521484375,
0.019073486328125,
0.00013303756713867188,
0.01183319091796875,
-0.0142822265625,
-0.003688812255859375,
-0.03314208984375,
0.018798828125,
-0.0209197998046875,
0.0224609375,
-0.0012083053588867188,
0.0267181396484375,
0.04644775390625,
-0.0279693603515625,
-0.011322021484375,
-0.006748199462890625,
-0.016204833984375,
-0.0745849609375,
0.0157012939453125,
-0.0309295654296875,
-0.0257415771484375,
0.05059814453125,
0.07550048828125,
0.031768798828125,
0.0175933837890625,
-0.0017461776733398438,
0.053741455078125,
0.0152130126953125,
0.001678466796875,
-0.00579833984375,
0.0007872581481933594,
0.0312042236328125,
0.024627685546875,
-0.036041259765625,
0.0428466796875,
0.01055145263671875,
0.0092926025390625,
0.011322021484375,
-0.0060272216796875,
-0.040374755859375,
0.07012939453125,
-0.0633544921875,
0.050506591796875,
0.0083160400390625,
-0.0271148681640625,
-0.00008207559585571289,
0.0123748779296875,
-0.00684356689453125,
-0.030059814453125,
-0.031280517578125,
0.016815185546875,
-0.00762939453125,
-0.00811767578125,
-0.03076171875,
-0.022216796875,
-0.00013756752014160156,
-0.0467529296875,
0.00563812255859375,
0.021026611328125,
0.01727294921875,
0.003452301025390625,
-0.007572174072265625,
-0.0163116455078125,
-0.020751953125,
-0.017181396484375,
-0.00725555419921875,
-0.02227783203125,
-0.00530242919921875,
0.0030975341796875,
0.040557861328125,
0.021728515625,
-0.02105712890625,
-0.00004500150680541992,
0.00911712646484375,
-0.040130615234375,
0.0090789794921875,
-0.01873779296875,
0.040130615234375,
0.038360595703125,
0.0239410400390625,
-0.0345458984375,
-0.00818634033203125,
-0.06719970703125,
-0.01544189453125,
-0.01247406005859375,
0.0233612060546875,
0.0194854736328125,
0.0194244384765625,
0.01641845703125,
-0.0004608631134033203,
-0.007537841796875,
-0.0199432373046875,
0.023681640625,
-0.0301055908203125,
-0.02264404296875,
-0.005764007568359375,
-0.01153564453125,
0.050018310546875,
0.004680633544921875,
-0.0276947021484375,
-0.013336181640625,
-0.06549072265625,
-0.0003762245178222656,
0.005939483642578125,
-0.03582763671875,
0.0007710456848144531,
-0.0064544677734375,
0.0308380126953125,
-0.01983642578125,
0.0064239501953125,
0.01409912109375,
-0.040313720703125,
0.0145416259765625,
0.058258056640625,
0.094970703125,
0.003940582275390625,
-0.032684326171875,
-0.03497314453125,
0.0045928955078125,
0.056365966796875,
-0.182861328125,
0.0266876220703125,
0.056884765625,
0.0160064697265625,
-0.027801513671875,
0.01494598388671875,
0.030181884765625,
-0.0390625,
-0.01458740234375,
0.039215087890625,
0.0238800048828125,
0.0066375732421875,
-0.015167236328125,
-0.021240234375,
0.027862548828125,
-0.03448486328125,
0.012664794921875,
-0.01267242431640625,
-0.004650115966796875,
0.021881103515625,
-0.021026611328125,
0.002567291259765625,
0.01427459716796875,
-0.004001617431640625,
0.03424072265625,
0.0217437744140625,
0.010711669921875,
-0.0228271484375,
0.01300048828125,
-0.005832672119140625,
0.02398681640625,
-0.0173492431640625,
-0.05865478515625,
0.0182037353515625,
0.06402587890625,
0.004085540771484375,
0.06488037109375,
0.05426025390625,
-0.033477783203125,
-0.0003211498260498047,
0.00522613525390625,
0.037811279296875,
0.0034122467041015625,
0.01221466064453125,
0.01311492919921875,
0.00878143310546875,
-0.037445068359375,
0.0083160400390625,
0.03802490234375,
0.01105499267578125,
-0.0280914306640625,
0.035400390625,
-0.0537109375,
-0.0137939453125,
-0.016754150390625,
-0.06463623046875,
-0.016357421875,
-0.014068603515625,
-0.0291900634765625,
-0.034423828125,
0.0013093948364257812,
0.017608642578125,
-0.005229949951171875,
-0.0095672607421875,
0.0237274169921875,
-0.031402587890625,
0.045745849609375,
-0.06005859375,
0.045379638671875,
-0.045806884765625,
0.07318115234375,
0.05828857421875,
-0.052032470703125,
0.0384521484375,
0.007526397705078125,
-0.015411376953125,
0.035400390625,
0.01364898681640625,
-0.010955810546875,
-0.0345458984375,
-0.00614166259765625,
-0.00829315185546875,
0.0093231201171875,
0.00995635986328125,
0.0318603515625,
0.0020313262939453125,
0.01235198974609375,
0.0252838134765625,
0.0277862548828125,
0.010040283203125,
0.029327392578125,
-0.050994873046875,
-0.019256591796875,
-0.01183319091796875,
-0.043304443359375,
-0.0037326812744140625,
0.006107330322265625,
-0.01080322265625,
-0.00010198354721069336,
-0.029510498046875,
-0.05157470703125,
-0.046051025390625,
-0.0770263671875,
0.006359100341796875,
-0.0014295578002929688,
0.019622802734375,
0.0017375946044921875,
0.050201416015625,
0.01180267333984375,
-0.055023193359375,
-0.0011568069458007812,
-0.0268096923828125,
-0.006683349609375,
0.028900146484375,
0.027801513671875,
-0.037261962890625,
0.0246429443359375,
0.02484130859375,
-0.00823974609375,
0.01727294921875,
-0.025054931640625,
-0.034088134765625,
-0.0170745849609375,
0.025482177734375,
0.0008721351623535156,
0.0251007080078125,
0.024658203125,
0.034210205078125,
0.0123748779296875,
-0.01230621337890625,
-0.01386260986328125,
0.010833740234375,
-0.01139068603515625,
0.04693603515625,
0.00638580322265625,
-0.0173187255859375,
0.0129852294921875,
0.032318115234375,
0.0033130645751953125,
0.0194549560546875,
0.0261993408203125,
-0.0172271728515625,
-0.0130767822265625,
-0.0127105712890625,
-0.01163482666015625,
-0.021575927734375,
0.00455474853515625,
-0.0186004638671875,
0.0127716064453125,
-0.009033203125,
0.02203369140625,
-0.0056915283203125,
0.0293731689453125,
-0.0357666015625,
-0.06292724609375,
0.0509033203125,
-0.0091094970703125,
0.023162841796875,
-0.02099609375,
-0.02972412109375,
0.022918701171875,
0.09417724609375,
-0.0382080078125,
-0.018341064453125,
0.042633056640625,
0.0181427001953125,
0.0013284683227539062,
0.0232696533203125,
-0.0625,
-0.031890869140625,
-0.0288238525390625,
0.010498046875,
0.01552581787109375,
-0.0418701171875,
-0.016510009765625,
0.01519012451171875,
-0.043701171875,
-0.0137939453125,
0.036529541015625,
-0.031280517578125,
0.0139312744140625,
0.0012979507446289062,
0.01279449462890625,
-0.03424072265625,
-0.0066986083984375,
-0.023345947265625,
-0.07916259765625,
-0.00684356689453125,
-0.038787841796875,
0.054779052734375,
-0.01202392578125,
0.054901123046875,
-0.0246124267578125,
0.051483154296875,
0.00991058349609375,
0.005962371826171875,
0.0308380126953125,
0.004344940185546875,
0.04022216796875,
-0.007965087890625,
0.0196075439453125,
-0.0323486328125,
0.0018796920776367188,
-0.00736236572265625,
-0.0136566162109375,
0.061248779296875,
-0.0199127197265625,
0.00955963134765625,
-0.006267547607421875,
-0.01514434814453125,
-0.058868408203125,
-0.04180908203125,
-0.062347412109375,
-0.0106658935546875,
-0.023406982421875,
-0.022369384765625,
-0.031036376953125,
-0.05755615234375,
0.047698974609375,
0.01593017578125,
-0.0105438232421875,
0.020538330078125,
0.067626953125,
0.0088348388671875,
-0.029815673828125,
-0.08245849609375,
-0.01300048828125,
0.03363037109375,
-0.045318603515625,
0.0787353515625,
0.04669189453125,
0.003940582275390625,
0.04595947265625,
-0.0146942138671875,
-0.019134521484375,
-0.053192138671875,
0.0908203125,
-0.0268402099609375,
-0.011474609375,
0.01134490966796875,
-0.0718994140625,
0.06927490234375,
0.03802490234375,
-0.0243377685546875,
-0.00036907196044921875,
-0.0283050537109375,
0.0250701904296875,
-0.028350830078125,
0.0355224609375,
-0.0137481689453125,
0.006336212158203125,
0.0006628036499023438,
-0.007659912109375,
0.07073974609375,
0.041534423828125,
-0.02154541015625,
0.017303466796875,
0.01436614990234375,
-0.0032958984375,
0.0095062255859375,
-0.044647216796875,
-0.01025390625,
0.0218505859375,
-0.0143890380859375,
-0.00482177734375,
0.039306640625,
0.0272674560546875,
-0.014556884765625,
-0.0298309326171875,
-0.01486968994140625,
-0.08380126953125,
-0.006557464599609375,
-0.0115814208984375,
0.023193359375,
0.00428009033203125,
0.0380859375,
-0.006320953369140625,
-0.014617919921875,
0.007175445556640625,
-0.016265869140625,
-0.023712158203125,
-0.034820556640625,
-0.00014209747314453125,
0.00504302978515625,
-0.0264434814453125,
-0.01617431640625,
0.024200439453125,
0.0037174224853515625,
-0.008209228515625,
-0.002376556396484375,
0.021636962890625,
0.0204315185546875,
0.032470703125,
0.024688720703125,
-0.027130126953125,
-0.0079193115234375,
0.015960693359375,
0.0010004043579101562,
-0.01070404052734375,
-0.011138916015625,
-0.02630615234375,
0.01535797119140625,
-0.019622802734375,
-0.004459381103515625,
0.032501220703125,
-0.021759033203125,
-0.0254364013671875,
-0.01222991943359375,
-0.00014841556549072266,
-0.0080413818359375,
-0.01210784912109375,
-0.016143798828125,
-0.0105133056640625,
0.0244903564453125,
-0.0292816162109375,
0.00980377197265625,
-0.037384033203125,
0.0169830322265625,
-0.021026611328125,
-0.03448486328125,
0.005039215087890625,
-0.00354766845703125,
-0.024688720703125,
0.0024871826171875,
0.0200347900390625,
-0.05865478515625,
-0.036651611328125,
-0.023162841796875,
-0.015472412109375,
0.060821533203125,
-0.0399169921875,
0.0101318359375,
-0.03192138671875,
0.01331329345703125,
-0.0283355712890625,
0.031158447265625,
0.035675048828125,
0.0311279296875,
0.003368377685546875,
-0.0340576171875,
-0.03778076171875,
-0.01904296875,
-0.05328369140625,
-0.053924560546875,
0.002399444580078125,
0.028594970703125,
0.0287322998046875,
0.02618408203125,
0.01406097412109375,
-0.02947998046875,
-0.0264129638671875,
9.5367431640625e-7,
0.029693603515625,
0.036407470703125,
-0.0035858154296875,
0.024810791015625,
-0.015716552734375,
0.056396484375,
-0.014801025390625,
-0.027313232421875,
0.0032196044921875,
-0.01275634765625,
-0.047607421875,
-0.0670166015625,
0.0038909912109375,
0.026031494140625,
-0.00823974609375,
0.0980224609375,
0.0540771484375,
0.0322265625,
0.016571044921875,
-0.01702880859375,
0.0032558441162109375,
-0.025634765625,
-0.005298614501953125,
-0.0369873046875,
-0.01117706298828125,
0.0106048583984375,
-0.0062103271484375,
0.057281494140625,
-0.024200439453125,
-0.0160064697265625,
0.04290771484375,
-0.0271759033203125,
0.03851318359375,
0.01123046875,
-0.02117919921875,
0.033599853515625,
0.0333251953125,
0.01055908203125,
0.0148773193359375,
0.013397216796875,
0.024932861328125,
-0.011749267578125,
-0.0206146240234375,
0.0148162841796875,
0.030975341796875,
0.04229736328125,
-0.0017957687377929688,
0.0214080810546875,
0.03497314453125,
0.0007543563842773438,
-0.0213623046875,
0.038421630859375,
0.02581787109375,
-0.048797607421875,
-0.0116729736328125,
0.00933837890625,
-0.0031337738037109375,
-0.0140838623046875,
0.0001704692840576172,
-0.01215362548828125,
-0.0357666015625,
-0.0037555694580078125,
-0.0191192626953125,
-0.03314208984375,
-0.0230712890625,
0.001163482666015625,
-0.0076446533203125,
0.0006079673767089844,
0.01708984375,
0.0108795166015625,
0.004146575927734375,
-0.0224609375,
-0.0267181396484375,
0.0186004638671875,
-0.018585205078125,
0.01155853271484375,
-0.005260467529296875,
-0.00969696044921875,
-0.0285797119140625,
0.017364501953125,
-0.0183258056640625,
0.0168304443359375,
0.02215576171875,
0.0165863037109375,
0.0016813278198242188,
0.034454345703125,
-0.004669189453125,
0.00537109375,
-0.005397796630859375,
-0.01428985595703125,
0.0013141632080078125,
-0.01549530029296875,
0.018524169921875,
0.0242156982421875,
-0.013031005859375,
0.0106353759765625,
-0.00687408447265625,
-0.01049041748046875,
-0.0004992485046386719,
0.039093017578125,
0.0743408203125,
-0.0379638671875,
-0.0301513671875,
0.022430419921875,
0.04595947265625,
0.0019311904907226562,
0.0183258056640625,
0.038787841796875,
-0.0297698974609375,
-0.00832366943359375,
0.032257080078125,
-0.0010623931884765625,
-0.01528167724609375,
0.037353515625,
-0.056365966796875,
0.07830810546875,
0.026885986328125,
0.0281219482421875,
0.007488250732421875,
0.037139892578125,
-0.038116455078125,
0.0186920166015625,
-0.01425933837890625,
0.0173187255859375,
0.0205841064453125,
0.0310821533203125,
-0.04644775390625,
-0.0250701904296875,
0.0088653564453125,
0.07281494140625,
0.049072265625,
0.0131988525390625,
-0.0202789306640625,
-0.0210723876953125,
-0.013580322265625,
0.00594329833984375,
-0.039764404296875,
0.04296875,
0.01416778564453125,
0.0003516674041748047,
0.011810302734375,
0.02642822265625,
0.037567138671875,
-0.024444580078125,
-0.04693603515625,
0.0340576171875,
0.01039886474609375,
0.0135498046875,
0.0249786376953125,
0.0203399658203125,
0.00795745849609375,
-0.002315521240234375,
0.01435089111328125,
-0.03692626953125,
-0.023345947265625,
0.0535888671875,
0.0186920166015625,
-0.025482177734375,
-0.0220794677734375,
-0.0251007080078125,
0.03173828125,
-0.0015506744384765625,
0.006198883056640625,
0.031890869140625,
0.00998687744140625,
-0.0305938720703125,
0.032257080078125,
0.0219879150390625,
0.036102294921875,
-0.01210784912109375,
0.0589599609375,
0.007137298583984375,
0.007457733154296875,
-0.0281829833984375,
0.047332763671875,
0.036285400390625,
0.043548583984375,
-0.052459716796875,
-0.07550048828125,
0.01355743408203125,
0.02447509765625,
0.036712646484375,
0.0178985595703125,
0.015289306640625,
-0.039703369140625,
0.047515869140625,
-0.055023193359375,
-0.03143310546875,
-0.0028781890869140625,
0.0234222412109375,
-0.0276031494140625,
-0.040618896484375,
0.03045654296875,
-0.0489501953125,
-0.048553466796875,
-0.005702972412109375,
0.004138946533203125,
0.058990478515625,
0.038299560546875,
0.048583984375,
0.017120361328125,
-0.02325439453125,
-0.032562255859375,
-0.0016326904296875,
0.0002663135528564453,
0.0281982421875,
-0.024566650390625,
0.031707763671875,
0.02166748046875,
0.034637451171875,
-0.00969696044921875,
0.006259918212890625,
0.0268402099609375,
0.058837890625,
0.04229736328125,
-0.0175628662109375,
0.0098114013671875,
-0.00670623779296875,
-0.028167724609375,
-0.068603515625,
0.045501708984375,
0.03240966796875,
0.02703857421875,
0.019012451171875,
0.00384521484375,
0.0714111328125,
0.0110321044921875,
0.0035343170166015625,
0.009429931640625,
-0.0660400390625,
-0.016448974609375,
-0.021270751953125,
0.0826416015625,
0.035797119140625,
-0.068603515625,
-0.0188751220703125,
-0.005695343017578125,
-0.065673828125,
0.0440673828125,
0.06170654296875,
-0.03326416015625,
0.0034618377685546875,
-0.00302886962890625,
-0.016632080078125,
0.0214996337890625,
-0.0138092041015625,
0.01439666748046875,
0.00865936279296875,
-0.006862640380859375,
-0.005809783935546875,
-0.03021240234375,
-0.0240936279296875,
0.0101470947265625,
0.034698486328125,
-0.038726806640625,
0.054840087890625,
-0.01418304443359375,
0.0023956298828125,
-0.01019287109375,
0.059295654296875,
-0.02862548828125,
0.002899169921875,
0.01551055908203125,
0.066162109375,
0.037353515625,
-0.050537109375,
-0.038543701171875,
-0.04974365234375,
0.059234619140625,
-0.055450439453125,
-0.046356201171875,
0.00568389892578125,
0.02899169921875,
-0.0229339599609375,
0.006565093994140625,
-0.01959228515625,
-0.0394287109375,
-0.0195159912109375,
0.00846099853515625,
0.009521484375,
0.0289154052734375,
0.0240936279296875,
0.05804443359375,
-0.02435302734375,
0.0281524658203125,
0.00627899169921875,
-0.031585693359375,
0.00844573974609375,
0.0396728515625,
-0.074462890625,
-0.041229248046875,
-0.031097412109375,
-0.01241302490234375,
0.00916290283203125,
-0.006168365478515625,
0.01357269287109375,
0.0097808837890625,
-0.00988006591796875,
0.020294189453125,
0.051361083984375,
0.047607421875,
-0.0255889892578125,
0.03558349609375,
0.034027099609375,
-0.020904541015625,
0.0237274169921875,
0.0157470703125,
-0.031494140625,
-0.0289459228515625,
-0.01678466796875,
0.016876220703125,
-0.03033447265625,
-0.036224365234375,
-0.12005615234375,
0.0166778564453125,
0.0186920166015625,
0.004978179931640625,
-0.042205810546875,
0.058990478515625,
-0.029449462890625,
0.0098724365234375,
-0.0014410018920898438,
-0.0099945068359375,
0.0081024169921875,
0.021636962890625,
-0.04248046875,
-0.01250457763671875,
-0.0263214111328125,
-0.0004172325134277344,
-0.0302734375,
-0.0095977783203125,
0.0011425018310546875,
-0.0069427490234375,
-0.01300811767578125,
0.01398468017578125,
0.015838623046875,
0.054534912109375,
0.00954437255859375,
-0.0005774497985839844,
0.020538330078125,
-0.0123138427734375,
-0.042694091796875,
-0.0323486328125,
0.039337158203125,
-0.025634765625,
-0.03125,
-0.01526641845703125,
-0.01079559326171875,
0.00974273681640625,
-0.04833984375,
-0.08795166015625,
-0.00638580322265625,
-0.004184722900390625,
-0.04266357421875,
-0.044158935546875,
0.050994873046875,
-0.0016498565673828125,
-0.00824737548828125,
-0.021453857421875,
0.0257568359375,
0.0274810791015625,
0.0212249755859375,
0.0025463104248046875,
-0.0008082389831542969,
0.03521728515625,
-0.01959228515625,
-0.036346435546875,
-0.00310516357421875,
0.007328033447265625,
-0.00440216064453125,
-0.0025310516357421875,
-0.02935791015625,
0.04534912109375,
0.03271484375,
-0.0263519287109375,
-0.0289306640625,
0.0222930908203125,
-0.004642486572265625,
0.0200347900390625,
-0.036712646484375,
-0.056854248046875,
-0.032073974609375,
0.03814697265625,
0.0426025390625,
0.01119232177734375,
-0.01358795166015625,
-0.010589599609375,
-0.0219268798828125,
-0.0147857666015625,
0.0009560585021972656,
0.01363372802734375,
-0.056243896484375,
0.003719329833984375,
0.0286712646484375,
0.0013570785522460938,
0.034393310546875,
0.005519866943359375,
0.0025386810302734375,
-0.004547119140625,
0.0029010772705078125,
-0.007511138916015625,
-0.1002197265625,
0.01003265380859375,
0.0186614990234375,
-0.0294189453125,
-0.0418701171875,
-0.00800323486328125,
0.0108184814453125,
-0.0238189697265625,
-0.03375244140625,
-0.0628662109375,
-0.050994873046875,
-0.01496124267578125,
0.0238800048828125,
-0.042388916015625,
0.053619384765625,
-0.0160980224609375,
0.00716400146484375,
-0.0249786376953125,
-0.00888824462890625,
0.00653839111328125,
-0.038330078125,
-0.0367431640625,
0.05810546875,
0.0203857421875,
0.07708740234375,
0.021636962890625,
-0.057952880859375,
-0.007843017578125,
0.00864410400390625,
0.0286407470703125,
-0.026275634765625,
0.023712158203125,
-0.034210205078125,
0.005130767822265625,
-0.0009107589721679688,
-0.0197601318359375,
-0.032012939453125,
-0.01241302490234375,
-0.0172882080078125,
-0.0094451904296875,
0.01163482666015625
] |
865bc543d3e1843dfaad668dde0f82af365ee117 | Wordpress Stackexchange
Q: Is it possible to remove the posts_per_page limit on a specific post type? I'd like to know if I can remove the limit on the posts_per_page for a specific post type.
In the archive.php page I'm displaying different post type, and for the specific "publications" post type I want to display all the posts. How can I achieve this without impacting the traditional "post" type?
A: You can hook into the pre_get_posts action, to access the $query object.
You should use your action hook inside your functions.php.
An example of what your function could look like:
add_action( 'pre_get_posts', 'publications_archive_query' );
function publications_archive_query( $query ) {
if ( !is_admin() && $query->is_main_query()) {
if ( $query->get('post_type') === 'publications' ) {
$query->set( 'posts_per_page', 5 );
}
}
Narrow down what is the query you are modifying by using conditional checks.
$query->get('post_type') to get current's Query post_type to check against.
is_main_query to make sure you are only applying your query modification to the main query.
Read further and find more examples:
https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts
| Q: Is it possible to remove the posts_per_page limit on a specific post type? I'd like to know if I can remove the limit on the posts_per_page for a specific post type.
In the archive.php page I'm displaying different post type, and for the specific "publications" post type I want to display all the posts. How can I achieve this without impacting the traditional "post" type?
A: You can hook into the pre_get_posts action, to access the $query object.
You should use your action hook inside your functions.php.
An example of what your function could look like:
add_action( 'pre_get_posts', 'publications_archive_query' );
function publications_archive_query( $query ) {
if ( !is_admin() && $query->is_main_query()) {
if ( $query->get('post_type') === 'publications' ) {
$query->set( 'posts_per_page', 5 );
}
}
Narrow down what is the query you are modifying by using conditional checks.
$query->get('post_type') to get current's Query post_type to check against.
is_main_query to make sure you are only applying your query modification to the main query.
Read further and find more examples:
https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts
A: Accepted answer isn't working, but this one does:
function bloom_custom_posts_per_page( $query ) {
if( !is_admin() && $query->query_vars['post_type'] == 'post_type') {
$query->query_vars['posts_per_page'] = -1;
return $query;
}
}
add_filter( 'pre_get_posts', 'bloom_custom_posts_per_page' );
A: If you are creating the query yourself inside those .php pages, then it's better to pass -1 in argument to obtain unlimited posts:
$args = array( ...... 'posts_per_page'=>-1, .....)
$your_query = new WP_Query($args);
If you dont have access to the query-creating .php file, then you might neeed to use less-recommended pre_get_post version (which affects all pages/queries with that custom-type), like @FFrewin suggested.
| wordpress | {
"language": "en",
"length": 264,
"provenance": "stackexchange_00019.jsonl.gz:489679",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/315582"
} | [
0.059661865234375,
0.0032978057861328125,
-0.017852783203125,
0.00946044921875,
0.0247039794921875,
-0.061279296875,
0.07843017578125,
-0.01430511474609375,
0.00218963623046875,
0.021697998046875,
0.0172271728515625,
-0.0257110595703125,
-0.00487518310546875,
-0.05340576171875,
0.00965118408203125,
-0.0122222900390625,
0.050048828125,
-0.0191802978515625,
0.0582275390625,
-0.002330780029296875,
0.0247650146484375,
0.0221710205078125,
0.04412841796875,
0.08624267578125,
0.00531768798828125,
0.024810791015625,
0.063720703125,
-0.01514434814453125,
-0.0112457275390625,
-0.0352783203125,
0.008453369140625,
-0.0024585723876953125,
0.0076904296875,
0.004878997802734375,
0.007366180419921875,
-0.002605438232421875,
0.00823974609375,
0.00931549072265625,
0.004695892333984375,
0.028717041015625,
0.03289794921875,
-0.00673675537109375,
-0.0567626953125,
0.01511383056640625,
-0.03912353515625,
-0.0285491943359375,
0.03607177734375,
-0.0180511474609375,
0.0082244873046875,
-0.0244293212890625,
-0.0006031990051269531,
0.027984619140625,
0.01702880859375,
-0.01027679443359375,
-0.014923095703125,
0.005344390869140625,
-0.00548553466796875,
-0.034271240234375,
0.046356201171875,
-0.034027099609375,
-0.048828125,
-0.04541015625,
0.04058837890625,
-0.0289306640625,
-0.0179901123046875,
-0.0272674560546875,
0.0203857421875,
0.01299285888671875,
-0.0308074951171875,
-0.00441741943359375,
0.05340576171875,
0.004962921142578125,
0.0132598876953125,
0.0067291259765625,
-0.01190948486328125,
-0.01103973388671875,
0.00916290283203125,
0.0138702392578125,
0.0276641845703125,
-0.002574920654296875,
0.00951385498046875,
-0.0181884765625,
-0.038665771484375,
0.0205535888671875,
0.0012149810791015625,
0.00959014892578125,
-0.00605010986328125,
-0.00811004638671875,
-0.0285186767578125,
-0.016143798828125,
-0.03466796875,
-0.050323486328125,
0.0074920654296875,
0.0113983154296875,
-0.006175994873046875,
-0.01702880859375,
0.0258331298828125,
0.0191650390625,
0.0178070068359375,
0.042449951171875,
-0.0197601318359375,
-0.037139892578125,
0.03375244140625,
-0.032562255859375,
0.0179901123046875,
0.0238494873046875,
-0.01503753662109375,
0.05462646484375,
0.0823974609375,
0.0428466796875,
0.0311126708984375,
0.03961181640625,
-0.05255126953125,
-0.00939178466796875,
-0.0213165283203125,
0.03369140625,
-0.04791259765625,
-0.01160430908203125,
-0.0217437744140625,
0.01387786865234375,
0.017822265625,
0.0452880859375,
-0.0261077880859375,
-0.07470703125,
0.0034770965576171875,
-0.019989013671875,
-0.03125,
-0.0225372314453125,
0.01497650146484375,
0.07635498046875,
-0.037628173828125,
-0.0341796875,
0.03466796875,
0.01540374755859375,
0.017364501953125,
-0.04681396484375,
0.0031871795654296875,
0.00859832763671875,
-0.0035152435302734375,
0.0231170654296875,
-0.0079498291015625,
-0.057464599609375,
0.01255035400390625,
0.006000518798828125,
0.0003693103790283203,
0.005584716796875,
0.038787841796875,
0.0105133056640625,
-0.0304107666015625,
-0.0235748291015625,
-0.0028839111328125,
0.00942230224609375,
0.0618896484375,
-0.002521514892578125,
-0.04290771484375,
-0.046600341796875,
0.045196533203125,
-0.051483154296875,
-0.020416259765625,
-0.06610107421875,
0.0258941650390625,
0.00034332275390625,
0.00543975830078125,
-0.0452880859375,
-0.045928955078125,
-0.0152435302734375,
-0.040985107421875,
-0.0108642578125,
0.0171356201171875,
0.02410888671875,
0.06622314453125,
-0.024749755859375,
-0.00089263916015625,
-0.00811004638671875,
-0.01776123046875,
-0.0228271484375,
-0.01152801513671875,
-0.009613037109375,
0.036590576171875,
-0.0015115737915039062,
-0.033172607421875,
-0.0306549072265625,
0.031982421875,
-0.0192718505859375,
-0.053924560546875,
0.008880615234375,
0.034759521484375,
0.024993896484375,
-0.0269775390625,
0.013153076171875,
0.07220458984375,
0.043304443359375,
-0.0310211181640625,
-0.01019287109375,
0.01512908935546875,
-0.02252197265625,
0.01300048828125,
-0.01776123046875,
-0.0091094970703125,
0.0232086181640625,
0.0130767822265625,
0.022064208984375,
-0.0044708251953125,
0.005733489990234375,
-0.060272216796875,
0.032073974609375,
-0.0181732177734375,
0.036346435546875,
-0.024169921875,
0.042724609375,
0.02923583984375,
0.0501708984375,
-0.07666015625,
0.01216888427734375,
0.01136016845703125,
0.003330230712890625,
0.0005340576171875,
0.027313232421875,
-0.0162811279296875,
0.00872039794921875,
0.005001068115234375,
-0.036651611328125,
-0.006694793701171875,
0.0264892578125,
0.111328125,
-0.0157470703125,
0.0007171630859375,
-0.04742431640625,
0.0679931640625,
-0.0138397216796875,
-0.0570068359375,
0.056549072265625,
0.043243408203125,
0.069580078125,
-0.006893157958984375,
-0.0142974853515625,
0.0087738037109375,
-0.0755615234375,
0.027252197265625,
0.039154052734375,
0.037017822265625,
0.0173187255859375,
-0.01416778564453125,
-0.0269622802734375,
0.0012607574462890625,
-0.039825439453125,
0.030853271484375,
-0.029449462890625,
0.00649261474609375,
0.01415252685546875,
-0.039031982421875,
-0.004436492919921875,
0.03985595703125,
0.0008196830749511719,
0.0296783447265625,
0.0267333984375,
0.046142578125,
0.013153076171875,
-0.023284912109375,
0.025177001953125,
0.00409698486328125,
0.0296478271484375,
-0.0343017578125,
0.026763916015625,
0.01351165771484375,
0.0145111083984375,
0.04339599609375,
0.0421142578125,
0.005710601806640625,
-0.0233917236328125,
-0.0036773681640625,
0.0232086181640625,
-0.0113525390625,
-0.00922393798828125,
-0.0167388916015625,
-0.004497528076171875,
-0.058349609375,
0.040771484375,
-0.00974273681640625,
-0.01531982421875,
-0.01477813720703125,
0.028839111328125,
-0.0163116455078125,
-0.017364501953125,
-0.0273590087890625,
-0.055572509765625,
0.004077911376953125,
0.0231781005859375,
-0.0149383544921875,
-0.01369476318359375,
0.00830078125,
0.0069122314453125,
-0.027862548828125,
0.03704833984375,
0.004978179931640625,
-0.0119171142578125,
0.0164337158203125,
-0.11260986328125,
0.09149169921875,
-0.07373046875,
0.07073974609375,
0.07391357421875,
-0.038055419921875,
0.043212890625,
-0.0079193115234375,
-0.00679779052734375,
-0.05340576171875,
0.036529541015625,
-0.013153076171875,
-0.0275115966796875,
-0.05328369140625,
0.0364990234375,
0.0122528076171875,
-0.00438690185546875,
0.01324462890625,
-0.02935791015625,
-0.0034332275390625,
0.0134429931640625,
-0.043548583984375,
-0.0312347412109375,
0.044921875,
-0.076416015625,
-0.0120391845703125,
-0.0013828277587890625,
-0.042510986328125,
-0.0116424560546875,
0.0235137939453125,
-0.0106964111328125,
0.0347900390625,
-0.00656890869140625,
-0.04693603515625,
-0.0157012939453125,
-0.05633544921875,
-0.0249481201171875,
0.005771636962890625,
-0.0035114288330078125,
0.0002658367156982422,
0.11883544921875,
0.015045166015625,
-0.09661865234375,
-0.007568359375,
0.03533935546875,
-0.0274200439453125,
0.037811279296875,
0.033538818359375,
-0.019805908203125,
0.0095672607421875,
0.006420135498046875,
0.01450347900390625,
0.0487060546875,
-0.0302581787109375,
0.00214385986328125,
-0.00028514862060546875,
0.0111541748046875,
0.03326416015625,
0.0307159423828125,
-0.0171966552734375,
0.01055908203125,
0.027984619140625,
-0.04095458984375,
-0.045562744140625,
-0.014434814453125,
-0.064453125,
0.005096435546875,
0.0254364013671875,
0.03106689453125,
-0.0124969482421875,
0.01531982421875,
-0.01496124267578125,
-0.014617919921875,
0.025421142578125,
-0.055908203125,
0.03216552734375,
0.00640106201171875,
0.000827789306640625,
-0.0150146484375,
0.047088623046875,
-0.0038852691650390625,
0.050201416015625,
0.04779052734375,
0.021697998046875,
0.03985595703125,
-0.03277587890625,
0.028900146484375,
-0.06451416015625,
0.021392822265625,
-0.048126220703125,
0.00609588623046875,
-0.0443115234375,
-0.013397216796875,
0.00493621826171875,
0.08489990234375,
-0.0269927978515625,
-0.01186370849609375,
-0.032318115234375,
0.00717926025390625,
0.0007982254028320312,
-0.073486328125,
0.0015354156494140625,
-0.01611328125,
-0.0455322265625,
-0.01739501953125,
-0.0174713134765625,
-0.0235443115234375,
-0.0185546875,
0.0310516357421875,
-0.0258941650390625,
-0.0195465087890625,
0.0484619140625,
-0.002620697021484375,
-0.00677490234375,
0.01247406005859375,
-0.022613525390625,
-0.0105133056640625,
-0.05084228515625,
0.00933074951171875,
-0.0633544921875,
-0.01509857177734375,
0.0192413330078125,
0.0498046875,
0.0016431808471679688,
-0.0292205810546875,
-0.0313720703125,
0.0245208740234375,
0.045196533203125,
0.0143585205078125,
0.00615692138671875,
-0.023956298828125,
-0.017333984375,
-0.0225982666015625,
0.00571441650390625,
-0.03131103515625,
0.01849365234375,
-0.0084228515625,
0.004955291748046875,
-0.00000667572021484375,
-0.059967041015625,
-0.021026611328125,
-0.042449951171875,
-0.0219573974609375,
-0.07550048828125,
-0.037139892578125,
-0.0124969482421875,
-0.0004029273986816406,
-0.006320953369140625,
-0.013336181640625,
-0.045654296875,
-0.06549072265625,
0.0251922607421875,
0.035430908203125,
-0.0199737548828125,
0.005550384521484375,
0.047119140625,
0.0128631591796875,
-0.0391845703125,
-0.04193115234375,
0.01387786865234375,
0.0039825439453125,
-0.024017333984375,
0.06817626953125,
0.0097503662109375,
0.0034046173095703125,
0.056732177734375,
-0.04119873046875,
-0.0250244140625,
-0.02581787109375,
0.0372314453125,
0.00005990266799926758,
-0.00937652587890625,
-0.0019855499267578125,
-0.038055419921875,
0.081298828125,
0.0162506103515625,
0.01078033447265625,
-0.0252838134765625,
-0.005161285400390625,
0.03985595703125,
0.01111602783203125,
0.0220489501953125,
-0.00846099853515625,
-0.0070648193359375,
0.0037994384765625,
0.059112548828125,
-0.0013093948364257812,
0.01546478271484375,
-0.00199127197265625,
-0.0170135498046875,
-0.0189208984375,
-0.00586700439453125,
0.00711822509765625,
0.0745849609375,
-0.036407470703125,
0.035369873046875,
0.004001617431640625,
-0.03076171875,
-0.0292816162109375,
-0.0023403167724609375,
-0.01441192626953125,
-0.0399169921875,
-0.050323486328125,
-0.0291290283203125,
0.0016622543334960938,
0.0229949951171875,
0.0173797607421875,
-0.0025634765625,
0.0555419921875,
0.045562744140625,
-0.0024814605712890625,
-0.03265380859375,
-0.00336456298828125,
-0.0246124267578125,
-0.0528564453125,
0.0149688720703125,
0.01261138916015625,
-0.007808685302734375,
0.032135009765625,
0.04852294921875,
0.0026416778564453125,
0.039337158203125,
-0.031158447265625,
0.039947509765625,
0.036834716796875,
0.01436614990234375,
0.0028285980224609375,
0.03314208984375,
-0.0261688232421875,
0.0126800537109375,
-0.0076751708984375,
-0.0197601318359375,
-0.0079498291015625,
0.011749267578125,
0.01525115966796875,
-0.020782470703125,
-0.018096923828125,
0.0247955322265625,
0.00018894672393798828,
-0.0234375,
0.0389404296875,
0.036865234375,
-0.0150909423828125,
-0.028106689453125,
-0.0037021636962890625,
0.0254669189453125,
0.017059326171875,
-0.012054443359375,
0.0134429931640625,
0.00374603271484375,
0.01265716552734375,
-0.00760650634765625,
-0.03436279296875,
0.002918243408203125,
0.0186309814453125,
-0.01270294189453125,
-0.05047607421875,
-0.0142669677734375,
-0.00791168212890625,
0.0333251953125,
-0.016021728515625,
0.0020389556884765625,
-0.01320648193359375,
-0.0290679931640625,
0.039306640625,
-0.024383544921875,
-0.014678955078125,
-0.04559326171875,
0.0191497802734375,
0.0262298583984375,
0.0284271240234375,
-0.0173797607421875,
-0.025909423828125,
-0.04803466796875,
-0.0244903564453125,
-0.0253448486328125,
0.00208282470703125,
-0.041046142578125,
0.0264129638671875,
0.004474639892578125,
0.007213592529296875,
-0.005222320556640625,
-0.036468505859375,
0.00409698486328125,
0.0117950439453125,
0.0175933837890625,
0.034332275390625,
-0.037872314453125,
0.0655517578125,
-0.006908416748046875,
0.0277557373046875,
-0.016021728515625,
0.02972412109375,
0.037200927734375,
-0.0191650390625,
0.0037517547607421875,
-0.11126708984375,
-0.0255584716796875,
0.0135498046875,
-0.044036865234375,
0.036102294921875,
-0.007190704345703125,
0.007472991943359375,
-0.01387786865234375,
-0.010467529296875,
0.0040740966796875,
-0.0270538330078125,
0.032257080078125,
-0.01067352294921875,
-0.0012769699096679688,
-0.00626373291015625,
-0.0142822265625,
0.0288238525390625,
-0.0150909423828125,
-0.0157318115234375,
0.032867431640625,
-0.013763427734375,
0.0382080078125,
0.00031447410583496094,
0.001926422119140625,
0.0390625,
0.034027099609375,
-0.0004761219024658203,
0.04547119140625,
0.01087188720703125,
0.0214080810546875,
-0.0058135986328125,
-0.0101318359375,
0.0048675537109375,
0.013031005859375,
0.028289794921875,
-0.01522064208984375,
0.01715087890625,
0.0204315185546875,
-0.010650634765625,
-0.01079559326171875,
0.0019550323486328125,
-0.00989532470703125,
-0.048065185546875,
0.0219879150390625,
-0.0013561248779296875,
0.033935546875,
0.01541900634765625,
0.0013055801391601562,
0.023223876953125,
0.01177978515625,
0.0177001953125,
0.033599853515625,
-0.00789642333984375,
0.025787353515625,
0.024627685546875,
-0.003948211669921875,
-0.034088134765625,
0.00925445556640625,
0.0036258697509765625,
-0.0270538330078125,
0.00555419921875,
0.00913238525390625,
-0.0161895751953125,
-0.0028228759765625,
0.01409912109375,
-0.002590179443359375,
-0.024322509765625,
-0.07568359375,
-0.01145172119140625,
-0.002674102783203125,
-0.038238525390625,
0.014007568359375,
0.0016937255859375,
0.005168914794921875,
0.04913330078125,
-0.02056884765625,
0.0020503997802734375,
0.036102294921875,
-0.06060791015625,
-0.06903076171875,
-0.04638671875,
0.0083160400390625,
0.032379150390625,
-0.057403564453125,
0.038543701171875,
-0.023834228515625,
-0.0294189453125,
0.0008826255798339844,
-0.0305633544921875,
0.05987548828125,
-0.02899169921875,
-0.007587432861328125,
0.01702880859375,
0.00586700439453125,
-0.019439697265625,
-0.00972747802734375,
0.0079498291015625,
-0.034027099609375,
-0.0005955696105957031,
0.00395965576171875,
-0.01641845703125,
-0.0017938613891601562,
0.005985260009765625,
-0.0576171875,
0.08331298828125,
-0.0205841064453125,
0.0018320083618164062,
0.024871826171875,
0.03680419921875,
-0.034515380859375,
0.008453369140625,
-0.0301666259765625,
0.036651611328125,
0.0192718505859375,
0.018096923828125,
-0.0273284912109375,
-0.0104827880859375,
-0.0027523040771484375,
0.0190887451171875,
0.06597900390625,
0.01776123046875,
-0.03985595703125,
-0.01415252685546875,
0.043121337890625,
0.05072021484375,
0.01119232177734375,
0.031585693359375,
0.0018587112426757812,
0.030914306640625,
0.056182861328125,
-0.044342041015625,
0.031036376953125,
-0.0156707763671875,
-0.003223419189453125,
0.031829833984375,
0.019989013671875,
0.024200439453125,
-0.0015411376953125,
0.04022216796875,
-0.02587890625,
-0.004436492919921875,
0.034088134765625,
0.020477294921875,
0.022247314453125,
0.043548583984375,
0.08880615234375,
-0.04315185546875,
0.004302978515625,
-0.0126953125,
0.0654296875,
0.021636962890625,
0.0258026123046875,
0.03204345703125,
0.01070404052734375,
0.0712890625,
0.00860595703125,
0.026824951171875,
0.013427734375,
0.01287841796875,
0.0213470458984375,
0.01934814453125,
0.0200042724609375,
-0.0364990234375,
0.025909423828125,
0.08306884765625,
0.04583740234375,
-0.036834716796875,
-0.0677490234375,
0.011505126953125,
0.0009307861328125,
-0.0021076202392578125,
0.01318359375,
-0.001598358154296875,
0.00870513916015625,
0.056610107421875,
-0.0250091552734375,
-0.00762176513671875,
-0.007659912109375,
0.04302978515625,
-0.0244140625,
-0.0255584716796875,
-0.0281219482421875,
-0.03350830078125,
-0.054595947265625,
-0.003803253173828125,
-0.0010271072387695312,
0.035369873046875,
0.04046630859375,
0.033966064453125,
0.032867431640625,
-0.013763427734375,
-0.00630950927734375,
-0.01023101806640625,
-0.058380126953125,
0.028045654296875,
-0.051788330078125,
-0.05047607421875,
-0.0128021240234375,
0.04840087890625,
0.054412841796875,
-0.01071929931640625,
0.005695343017578125,
-0.02032470703125,
0.00627899169921875,
0.0281829833984375,
0.0372314453125,
-0.0013275146484375,
0.00473785400390625,
-0.03521728515625,
-0.02044677734375,
-0.03173828125,
-0.0177764892578125,
-0.0245819091796875,
0.0284271240234375,
-0.02642822265625,
0.00968170166015625,
-0.0037746429443359375,
0.002941131591796875,
-0.01483154296875,
0.053466796875,
0.00843048095703125,
0.036285400390625,
0.031280517578125,
-0.07012939453125,
-0.01297760009765625,
-0.04998779296875,
-0.01364898681640625,
0.033355712890625,
0.035552978515625,
-0.0179595947265625,
0.0338134765625,
0.0227203369140625,
-0.011474609375,
0.0236968994140625,
-0.0212554931640625,
0.01233673095703125,
0.01580810546875,
-0.005168914794921875,
0.016021728515625,
-0.02099609375,
-0.041412353515625,
-0.010528564453125,
0.05010986328125,
0.0159759521484375,
0.04534912109375,
-0.01690673828125,
0.0189361572265625,
-0.0014371871948242188,
0.040008544921875,
-0.033477783203125,
0.00885772705078125,
0.0241241455078125,
0.006664276123046875,
0.00888824462890625,
-0.0126800537109375,
-0.034332275390625,
-0.01366424560546875,
0.06658935546875,
-0.046966552734375,
0.0173492431640625,
-0.0238494873046875,
0.0162353515625,
-0.07452392578125,
0.011383056640625,
-0.00727081298828125,
0.01065826416015625,
0.00885772705078125,
-0.008331298828125,
0.030853271484375,
0.00276947021484375,
-0.02899169921875,
0.0259857177734375,
0.027069091796875,
-0.031494140625,
0.021942138671875,
-0.034759521484375,
0.03948974609375,
0.02789306640625,
0.008148193359375,
0.01474761962890625,
0.03302001953125,
-0.0095062255859375,
0.0252838134765625,
0.0282440185546875,
0.0257110595703125,
0.0293731689453125,
0.027862548828125,
-0.0277557373046875,
-0.04852294921875,
0.00382232666015625,
-0.013519287109375,
-0.00705718994140625,
-0.042266845703125,
0.01103973388671875,
-0.04461669921875,
0.04156494140625,
-0.022979736328125,
-0.022003173828125,
-0.0015697479248046875,
-0.00873565673828125,
0.01444244384765625,
-0.0465087890625,
-0.022308349609375,
-0.01190948486328125,
0.011810302734375,
0.01392364501953125,
-0.07098388671875,
0.05926513671875,
-0.022918701171875,
0.00518798828125,
-0.031463623046875,
-0.038604736328125,
-0.00690460205078125,
0.01959228515625,
0.01090240478515625,
-0.003475189208984375,
-0.057647705078125,
0.00988006591796875,
-0.031524658203125,
-0.004245758056640625,
0.028167724609375,
-0.0145721435546875,
-0.03741455078125,
-0.0138092041015625,
-0.018890380859375,
0.034637451171875,
0.014068603515625,
0.018310546875,
0.017181396484375,
0.01007843017578125,
-0.032989501953125,
-0.11077880859375,
-0.005001068115234375,
-0.0533447265625,
0.0030689239501953125,
0.01190948486328125,
0.0022792816162109375,
0.0271759033203125,
-0.00965118408203125,
-0.0232086181640625,
0.0445556640625,
0.00011599063873291016,
-0.0258331298828125,
-0.0455322265625,
0.027587890625,
0.004840850830078125,
0.0401611328125,
0.00726318359375,
-0.01227569580078125,
-0.02362060546875,
-0.006862640380859375,
-0.0020084381103515625,
0.032379150390625,
0.005054473876953125,
-0.00844573974609375,
-0.03759765625,
0.01363372802734375,
0.015045166015625,
0.020263671875,
-0.0178680419921875,
0.0183868408203125,
0.0289764404296875,
0.00433349609375,
-0.030120849609375,
0.08502197265625,
0.02166748046875,
0.034027099609375,
0.007602691650390625,
0.01035308837890625,
-0.052459716796875,
-0.0023365020751953125,
0.04608154296875,
0.07293701171875,
0.0286407470703125,
-0.0259857177734375,
0.030609130859375,
-0.003475189208984375,
-0.0198516845703125,
-0.009918212890625,
0.004486083984375,
-0.017608642578125,
-0.02569580078125,
-0.0297088623046875,
-0.0177764892578125,
-0.01392364501953125,
-0.024383544921875,
-0.031158447265625,
-0.01129913330078125,
-0.0303802490234375,
-0.010894775390625,
0.0070953369140625,
0.03173828125,
-0.04400634765625,
-0.00885009765625,
-0.0479736328125,
-0.00641632080078125,
-0.00738525390625,
-0.07110595703125,
-0.0133056640625,
-0.0266876220703125,
0.0205535888671875,
-0.018218994140625,
0.0120849609375,
0.0013628005981445312,
-0.0036754608154296875,
-0.0192108154296875,
0.02960205078125,
0.0155029296875,
0.00948333740234375,
-0.006481170654296875,
-0.0050201416015625,
0.001224517822265625,
0.0094757080078125,
-0.017547607421875,
0.039093017578125,
0.009429931640625,
0.0535888671875,
0.0161590576171875,
0.01337432861328125,
-0.017730712890625,
-0.0115966796875,
0.005634307861328125,
-0.046478271484375,
-0.0036258697509765625,
0.0063934326171875,
-0.029754638671875,
-0.05670166015625,
0.025177001953125,
0.01102447509765625,
-0.00811767578125,
0.019256591796875
] |
8f2a8d7bd6982251c08357b92881c31c917ac665 | Wordpress Stackexchange
Q: How to use PanelColorSettings in custom Gutenberg block? I'm working on a custom Gutenberg block. I have used <PanelBody> <BaseControl> and <ColorPalette> to create some custom color pickers, however, it seems like it would be more efficient to use the built-in <PanelColorSettings> component.
Has anyone used <PanelColorSettings> component in a custom block? The only discussion of this technique I could find was here: https://stackoverflow.com/questions/50480454/add-the-inbuilt-colour-palette-for-gutenberg-custom-block
A: First you need to import the component -
const {
PanelColorSettings,
} = wp.editor;
then inside the InspectorControls you call the component
<PanelColorSettings
title={ __( 'Color Settings' ) }
colorSettings={ [
{
value: color,
onChange: ( colorValue ) => setAttributes( { color: colorValue } ),
label: __( 'Background Color' ),
},
{
value: textColor,
onChange: ( colorValue ) => setAttributes( { textColor: colorValue } ),
label: __( 'Text Color' ),
},
] }
>
</PanelColorSettings>
| Q: How to use PanelColorSettings in custom Gutenberg block? I'm working on a custom Gutenberg block. I have used <PanelBody> <BaseControl> and <ColorPalette> to create some custom color pickers, however, it seems like it would be more efficient to use the built-in <PanelColorSettings> component.
Has anyone used <PanelColorSettings> component in a custom block? The only discussion of this technique I could find was here: https://stackoverflow.com/questions/50480454/add-the-inbuilt-colour-palette-for-gutenberg-custom-block
A: First you need to import the component -
const {
PanelColorSettings,
} = wp.editor;
then inside the InspectorControls you call the component
<PanelColorSettings
title={ __( 'Color Settings' ) }
colorSettings={ [
{
value: color,
onChange: ( colorValue ) => setAttributes( { color: colorValue } ),
label: __( 'Background Color' ),
},
{
value: textColor,
onChange: ( colorValue ) => setAttributes( { textColor: colorValue } ),
label: __( 'Text Color' ),
},
] }
>
</PanelColorSettings>
A: <PanelColorSettings
title={__('Color Settings')}
colorSettings={[
{
value: props.attributes.backgroundColor,
onChange: (color) => props.setAttributes({ backgroundColor: color }),
label: __('Background Color')
},
{
value: props.attributes.textColor,
onChange: (color) => props.setAttributes({ textColor: color }),
label: __('Text Color'),
colors: [
{
name: 'white',
color: '#fff'
},
{
name: 'black',
color: '#222'
}
]
}
]}
/>
| wordpress | {
"language": "en",
"length": 191,
"provenance": "stackexchange_00019.jsonl.gz:489703",
"question_score": "8",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/315677"
} | [
-0.052459716796875,
-0.00487518310546875,
-0.060028076171875,
-0.0035800933837890625,
-0.0264434814453125,
-0.01265716552734375,
-0.0300445556640625,
0.00995635986328125,
0.03192138671875,
0.0484619140625,
-0.00838470458984375,
-0.021484375,
0.0128021240234375,
-0.00920867919921875,
-0.057830810546875,
0.0034656524658203125,
0.03143310546875,
-0.034393310546875,
-0.002666473388671875,
0.001434326171875,
-0.014068603515625,
-0.0036525726318359375,
0.0292205810546875,
0.021575927734375,
0.056884765625,
-0.0662841796875,
0.00870513916015625,
0.0107269287109375,
0.04412841796875,
-0.0123291015625,
0.030853271484375,
0.0001894235610961914,
0.00684356689453125,
-0.0048675537109375,
0.0100555419921875,
0.00745391845703125,
0.03240966796875,
-0.0137939453125,
0.005802154541015625,
0.034820556640625,
0.0682373046875,
-0.03619384765625,
-0.060546875,
0.01052093505859375,
-0.043212890625,
-0.015960693359375,
0.0308685302734375,
-0.0161285400390625,
0.022186279296875,
0.0221405029296875,
-0.0156707763671875,
0.01001739501953125,
-0.00658416748046875,
0.0229644775390625,
-0.0273590087890625,
-0.0498046875,
-0.02288818359375,
0.0439453125,
0.0021381378173828125,
0.0198211669921875,
-0.00732421875,
0.049163818359375,
-0.015594482421875,
-0.0179443359375,
0.027984619140625,
-0.013641357421875,
0.01080322265625,
0.01422119140625,
-0.002674102783203125,
0.01068878173828125,
0.01385498046875,
-0.0080108642578125,
-0.01476287841796875,
-0.0919189453125,
-0.002201080322265625,
0.0911865234375,
-0.050201416015625,
-0.0183868408203125,
-0.0038967132568359375,
-0.0260467529296875,
-0.00574493408203125,
-0.0006508827209472656,
-0.00928497314453125,
-0.029022216796875,
0.031646728515625,
0.011627197265625,
-0.01654052734375,
-0.005218505859375,
-0.001251220703125,
-0.01419830322265625,
-0.001880645751953125,
-0.000530242919921875,
-0.0416259765625,
0.0277557373046875,
-0.01003265380859375,
-0.0269012451171875,
0.0014448165893554688,
0.01541900634765625,
-0.00939178466796875,
0.01432037353515625,
0.0170135498046875,
-0.054290771484375,
0.03692626953125,
-0.029632568359375,
0.01558685302734375,
0.03509521484375,
-0.055419921875,
0.006893157958984375,
0.05487060546875,
0.037139892578125,
0.016357421875,
-0.0247955322265625,
0.00514984130859375,
-0.016845703125,
-0.048980712890625,
-0.01456451416015625,
-0.00560760498046875,
-0.0170745849609375,
0.01253509521484375,
-0.031463623046875,
-0.005107879638671875,
0.0206146240234375,
0.005886077880859375,
0.0011301040649414062,
-0.0267333984375,
-0.0179443359375,
-0.00527191162109375,
-0.0299072265625,
-0.0169525146484375,
-0.01708984375,
-0.07159423828125,
0.034576416015625,
0.11822509765625,
0.058868408203125,
0.03948974609375,
-0.01210784912109375,
0.058074951171875,
0.0151824951171875,
0.01100921630859375,
-0.0149688720703125,
0.019073486328125,
-0.003231048583984375,
-0.0164947509765625,
0.00620269775390625,
0.0020503997802734375,
-0.0016984939575195312,
0.0104522705078125,
0.012481689453125,
-0.0205230712890625,
-0.050262451171875,
0.050933837890625,
-0.0325927734375,
-0.005939483642578125,
0.0177001953125,
0.03033447265625,
-0.006351470947265625,
0.04229736328125,
-0.0103912353515625,
0.0240478515625,
-0.0137786865234375,
0.044891357421875,
-0.028961181640625,
-0.04779052734375,
0.0297698974609375,
-0.0258636474609375,
0.029266357421875,
0.01354217529296875,
0.0035037994384765625,
0.0162506103515625,
-0.0133209228515625,
-0.03302001953125,
0.00904083251953125,
-0.01531982421875,
0.0028629302978515625,
0.0038356781005859375,
0.0161895751953125,
0.0157318115234375,
-0.0149688720703125,
0.015533447265625,
0.003429412841796875,
-0.034210205078125,
-0.038787841796875,
0.0194244384765625,
-0.02911376953125,
-0.01447296142578125,
-0.012237548828125,
-0.007198333740234375,
0.05364990234375,
0.055572509765625,
0.0198516845703125,
-0.033782958984375,
-0.061676025390625,
-0.020477294921875,
0.0130462646484375,
-0.03448486328125,
0.01094818115234375,
-0.04754638671875,
0.04290771484375,
-0.0357666015625,
-0.02764892578125,
0.01097869873046875,
-0.041473388671875,
0.049041748046875,
-0.01216888427734375,
0.00859832763671875,
-0.00659942626953125,
-0.004364013671875,
0.0260772705078125,
-0.0031948089599609375,
-0.0262298583984375,
0.01416015625,
-0.04388427734375,
0.0172271728515625,
-0.024169921875,
-0.024017333984375,
0.0194244384765625,
0.0098876953125,
0.0467529296875,
0.01470947265625,
-0.031646728515625,
0.09295654296875,
-0.0188751220703125,
0.09027099609375,
0.057281494140625,
0.046783447265625,
0.021942138671875,
-0.01308441162109375,
-0.0032253265380859375,
0.052642822265625,
0.05731201171875,
-0.06298828125,
-0.03607177734375,
0.037384033203125,
0.0242462158203125,
0.001331329345703125,
0.0223236083984375,
0.05755615234375,
-0.04205322265625,
-0.00458526611328125,
0.00673675537109375,
0.0240631103515625,
0.035400390625,
-0.02777099609375,
-0.039886474609375,
0.06951904296875,
0.03070068359375,
0.0287017822265625,
-0.041290283203125,
-0.01067352294921875,
0.0254058837890625,
0.01494598388671875,
0.003749847412109375,
0.024169921875,
0.0301666259765625,
0.008575439453125,
0.016448974609375,
0.0013427734375,
0.0001971721649169922,
-0.032806396484375,
0.01110076904296875,
0.0009365081787109375,
-0.002590179443359375,
-0.0258331298828125,
-0.01337432861328125,
0.02508544921875,
-0.0185546875,
0.0276947021484375,
0.0295562744140625,
-0.01102447509765625,
-0.003826141357421875,
0.0207977294921875,
-0.01546478271484375,
0.0019292831420898438,
-0.005584716796875,
0.0255279541015625,
0.0077972412109375,
-0.028778076171875,
0.0009717941284179688,
0.028656005859375,
0.0197906494140625,
-0.0100555419921875,
0.04345703125,
-0.054229736328125,
-0.01424407958984375,
-0.0031414031982421875,
-0.06396484375,
-0.0316162109375,
-0.00574493408203125,
-0.0186767578125,
-0.0225677490234375,
0.0197601318359375,
0.005126953125,
-0.0097198486328125,
-0.01154327392578125,
0.031951904296875,
-0.019989013671875,
0.0259857177734375,
-0.045379638671875,
0.00670623779296875,
-0.01959228515625,
0.08892822265625,
0.075439453125,
-0.01727294921875,
0.0166473388671875,
0.0097808837890625,
-0.042938232421875,
0.00994873046875,
0.0015401840209960938,
-0.01001739501953125,
-0.025054931640625,
-0.01690673828125,
0.0347900390625,
0.032501220703125,
-0.023345947265625,
0.04681396484375,
0.00589752197265625,
0.004955291748046875,
0.01297760009765625,
-0.0155487060546875,
-0.01422882080078125,
0.01540374755859375,
-0.0703125,
-0.0311126708984375,
-0.04644775390625,
-0.058013916015625,
0.01338958740234375,
-0.0292816162109375,
-0.015533447265625,
-0.06329345703125,
-0.01482391357421875,
-0.0148773193359375,
-0.06427001953125,
-0.05133056640625,
-0.0020122528076171875,
0.007648468017578125,
0.0206146240234375,
-0.00853729248046875,
0.0173797607421875,
-0.0254364013671875,
-0.0251922607421875,
-0.006732940673828125,
-0.052276611328125,
0.0054168701171875,
-0.02325439453125,
0.079833984375,
-0.033905029296875,
-0.01059722900390625,
0.0367431640625,
0.022674560546875,
0.0272674560546875,
-0.07464599609375,
-0.030731201171875,
-0.027130126953125,
0.0156707763671875,
-0.0347900390625,
0.038421630859375,
0.06365966796875,
-0.006755828857421875,
-0.0301971435546875,
-0.037322998046875,
-0.0027103424072265625,
0.006740570068359375,
-0.0200347900390625,
0.00988006591796875,
-0.004520416259765625,
0.0007390975952148438,
0.0186920166015625,
-0.0029659271240234375,
0.0078887939453125,
-0.0038051605224609375,
0.0294189453125,
0.0015583038330078125,
0.008392333984375,
-0.0187530517578125,
-0.0248565673828125,
-0.030059814453125,
0.0082550048828125,
-0.0294036865234375,
0.007602691650390625,
-0.017333984375,
0.004184722900390625,
-0.014984130859375,
0.0179290771484375,
-0.04864501953125,
-0.0223236083984375,
0.02239990234375,
-0.01354217529296875,
0.0155029296875,
-0.005046844482421875,
-0.00835418701171875,
0.01558685302734375,
0.040618896484375,
-0.01558685302734375,
-0.0144805908203125,
0.00939178466796875,
0.024383544921875,
-0.033660888671875,
-0.01438140869140625,
-0.048004150390625,
0.012969970703125,
-0.14306640625,
0.016387939453125,
0.0075836181640625,
-0.0657958984375,
0.010162353515625,
-0.03948974609375,
-0.08978271484375,
-0.047454833984375,
0.01358795166015625,
0.017242431640625,
0.0185089111328125,
-0.0222625732421875,
-0.010223388671875,
-0.0054779052734375,
0.00630950927734375,
-0.0312042236328125,
-0.06866455078125,
-0.0189208984375,
-0.02490234375,
0.050323486328125,
0.004825592041015625,
0.0054779052734375,
-0.005138397216796875,
0.061309814453125,
0.01873779296875,
0.08660888671875,
0.01395416259765625,
-0.00444793701171875,
0.0216064453125,
-0.03045654296875,
0.0380859375,
-0.043914794921875,
0.0129241943359375,
0.01116943359375,
-0.025390625,
0.03857421875,
0.00521087646484375,
0.0004456043243408203,
0.045166015625,
-0.033843994140625,
-0.03973388671875,
-0.0002244710922241211,
-0.035980224609375,
-0.01039886474609375,
-0.0196075439453125,
-0.0243988037109375,
0.01082611083984375,
-0.03533935546875,
0.036407470703125,
0.021575927734375,
0.00010830163955688477,
0.00493621826171875,
0.045654296875,
0.0008230209350585938,
-0.035675048828125,
0.01120758056640625,
-0.005542755126953125,
0.0321044921875,
-0.035369873046875,
0.037567138671875,
0.00043272972106933594,
-0.0287933349609375,
0.0894775390625,
-0.01097869873046875,
-0.0200653076171875,
-0.0102081298828125,
0.0204010009765625,
-0.004215240478515625,
-0.020904541015625,
-0.0021724700927734375,
-0.035400390625,
0.061553955078125,
0.0174102783203125,
-0.016265869140625,
0.0290069580078125,
0.034515380859375,
-0.0221710205078125,
-0.0251007080078125,
-0.00312042236328125,
0.01363372802734375,
-0.005443572998046875,
-0.0034236907958984375,
-0.0294036865234375,
0.0537109375,
0.042877197265625,
-0.0216217041015625,
0.0240325927734375,
0.034698486328125,
-0.03338623046875,
0.04217529296875,
0.0234527587890625,
0.0093994140625,
-0.0189208984375,
0.04302978515625,
-0.037689208984375,
-0.00004684925079345703,
-0.00029659271240234375,
0.07855224609375,
-0.02569580078125,
-0.031341552734375,
-0.0504150390625,
-0.034881591796875,
0.01477813720703125,
0.01690673828125,
-0.0288848876953125,
0.031036376953125,
0.0302734375,
-0.03717041015625,
-0.002536773681640625,
-0.0029544830322265625,
-0.019500732421875,
-0.056243896484375,
-0.0298614501953125,
0.0084991455078125,
-0.0193634033203125,
-0.02105712890625,
0.03729248046875,
-0.0170440673828125,
0.0013561248779296875,
0.01531219482421875,
0.01032257080078125,
-0.01372528076171875,
0.03411865234375,
0.0263214111328125,
-0.032440185546875,
0.0272216796875,
-0.0157012939453125,
0.002216339111328125,
-0.047454833984375,
-0.01399993896484375,
0.0234222412109375,
0.038543701171875,
-0.003498077392578125,
-0.01474761962890625,
0.007495880126953125,
-0.0016393661499023438,
0.007518768310546875,
-0.02789306640625,
-0.0457763671875,
0.00736236572265625,
-0.00868988037109375,
-0.01251983642578125,
0.022674560546875,
0.023162841796875,
-0.0018405914306640625,
-0.025054931640625,
-0.04998779296875,
0.0197906494140625,
-0.0278778076171875,
0.0238494873046875,
-0.005611419677734375,
-0.04278564453125,
-0.025299072265625,
-0.004055023193359375,
0.00756072998046875,
-0.062744140625,
-0.035552978515625,
-0.005390167236328125,
-0.025848388671875,
0.034637451171875,
-0.0167083740234375,
0.0280914306640625,
-0.037567138671875,
-0.01316070556640625,
-0.0280609130859375,
0.0082244873046875,
0.04534912109375,
0.0163726806640625,
-0.0147857666015625,
-0.04486083984375,
-0.032623291015625,
-0.0198822021484375,
-0.06097412109375,
-0.043731689453125,
-0.004116058349609375,
0.02398681640625,
0.018707275390625,
0.01180267333984375,
0.00997161865234375,
-0.0125732421875,
-0.018585205078125,
0.047607421875,
0.026123046875,
0.08056640625,
0.0079345703125,
0.045654296875,
-0.01983642578125,
0.08599853515625,
0.00417327880859375,
-0.0178375244140625,
-0.029876708984375,
-0.00881195068359375,
-0.00316619873046875,
-0.0024051666259765625,
-0.00011044740676879883,
-0.0305328369140625,
0.052093505859375,
0.01073455810546875,
0.0277099609375,
0.004901885986328125,
0.044830322265625,
-0.0290069580078125,
0.00447845458984375,
-0.029693603515625,
-0.007328033447265625,
-0.0999755859375,
-0.024810791015625,
-0.00586700439453125,
0.003215789794921875,
0.005588531494140625,
-0.01375579833984375,
-0.025665283203125,
-0.00395965576171875,
0.029754638671875,
0.01216888427734375,
-0.0044708251953125,
-0.01424407958984375,
0.01468658447265625,
0.033721923828125,
-0.02020263671875,
0.021728515625,
0.020782470703125,
-0.0034313201904296875,
0.0180816650390625,
0.0167083740234375,
-0.01290130615234375,
-0.0234527587890625,
0.002742767333984375,
-0.00026535987854003906,
0.007610321044921875,
0.0101165771484375,
0.01251220703125,
-0.0000374913215637207,
0.06292724609375,
0.036346435546875,
-0.1055908203125,
0.004390716552734375,
-0.0166168212890625,
0.009613037109375,
0.01556396484375,
-0.0008335113525390625,
-0.0045166015625,
-0.014434814453125,
0.046173095703125,
-0.032806396484375,
-0.0148468017578125,
0.024688720703125,
-0.024749755859375,
0.01222991943359375,
-0.01174163818359375,
0.04534912109375,
-0.0034503936767578125,
-0.033538818359375,
-0.021728515625,
0.0203399658203125,
-0.03265380859375,
0.0382080078125,
0.019622802734375,
-0.006229400634765625,
-0.06072998046875,
-0.0509033203125,
-0.057464599609375,
-0.005039215087890625,
-0.09466552734375,
0.01953125,
0.004405975341796875,
0.048797607421875,
0.0533447265625,
-0.019561767578125,
0.013671875,
0.0223236083984375,
0.0296783447265625,
0.04620361328125,
-0.0033893585205078125,
0.025421142578125,
-0.01006317138671875,
-0.042572021484375,
0.0007300376892089844,
-0.0211639404296875,
0.01267242431640625,
0.005168914794921875,
0.0955810546875,
0.0640869140625,
-0.01450347900390625,
-0.0660400390625,
0.04296875,
-0.00499725341796875,
-0.00908660888671875,
0.00789642333984375,
0.0017080307006835938,
-0.06280517578125,
-0.052978515625,
0.01526641845703125,
-0.05084228515625,
-0.00811767578125,
0.031768798828125,
-0.047454833984375,
0.055023193359375,
0.006011962890625,
0.001232147216796875,
-0.002552032470703125,
0.0295257568359375,
-0.03173828125,
-0.01107025146484375,
-0.031097412109375,
0.0187225341796875,
0.0128021240234375,
0.004779815673828125,
-0.0787353515625,
-0.0229034423828125,
-0.0421142578125,
0.0260162353515625,
0.030242919921875,
-0.01134490966796875,
-0.0182037353515625,
-0.027130126953125,
0.034423828125,
0.04791259765625,
0.00044798851013183594,
0.0115203857421875,
0.00682830810546875,
-0.0179443359375,
-0.01285552978515625,
0.004711151123046875,
0.0203399658203125,
-0.038421630859375,
-0.0189208984375,
0.026214599609375,
0.007354736328125,
0.0220794677734375,
0.01983642578125,
-0.013824462890625,
-0.002902984619140625,
-0.001007080078125,
0.027252197265625,
-0.085693359375,
0.004398345947265625,
0.00897216796875,
-0.00560760498046875,
-0.041259765625,
-0.0418701171875,
-0.0198516845703125,
0.02099609375,
-0.0139007568359375,
0.0060882568359375,
0.0038604736328125,
0.0126953125,
-0.04913330078125,
0.0123138427734375,
0.00814056396484375,
0.04150390625,
-0.05426025390625,
0.007282257080078125,
-0.00717926025390625,
-0.004451751708984375,
0.017059326171875,
0.06292724609375,
-0.03704833984375,
-0.05596923828125,
-0.022430419921875,
-0.075439453125,
0.00728607177734375,
-0.01163482666015625,
0.0234375,
0.017486572265625,
-0.0005130767822265625,
-0.0736083984375,
-0.007335662841796875,
-0.0264434814453125,
-0.038909912109375,
-0.004795074462890625,
0.044586181640625,
-0.00901031494140625,
-0.023773193359375,
0.01453399658203125,
-0.06207275390625,
-0.0208282470703125,
-0.002948760986328125,
0.0203857421875,
0.03741455078125,
0.0007023811340332031,
0.038818359375,
0.01226806640625,
-0.004787445068359375,
-0.046234130859375,
0.015167236328125,
0.059906005859375,
0.031158447265625,
-0.013336181640625,
0.01006317138671875,
0.055145263671875,
0.02923583984375,
0.0305633544921875,
0.0050048828125,
0.035736083984375,
0.0280609130859375,
0.036468505859375,
-0.0097503662109375,
-0.00740814208984375,
-0.001556396484375,
-0.0028400421142578125,
-0.043121337890625,
0.02911376953125,
0.009918212890625,
0.003345489501953125,
0.0006551742553710938,
0.0238800048828125,
0.0176239013671875,
-0.0063934326171875,
0.0413818359375,
-0.0016756057739257812,
-0.025299072265625,
-0.0022563934326171875,
-0.0241851806640625,
0.052215576171875,
0.0159454345703125,
-0.051177978515625,
-0.01073455810546875,
0.0024623870849609375,
-0.032745361328125,
0.005550384521484375,
0.03924560546875,
-0.01812744140625,
0.0186309814453125,
-0.0168609619140625,
-0.0164642333984375,
0.055938720703125,
-0.01116180419921875,
0.006195068359375,
0.033447265625,
0.00011730194091796875,
-0.01140594482421875,
-0.07122802734375,
-0.0283050537109375,
0.006580352783203125,
0.008880615234375,
-0.032958984375,
0.0889892578125,
-0.004894256591796875,
-0.0181732177734375,
0.0215606689453125,
0.04010009765625,
-0.012939453125,
0.026123046875,
-0.0006971359252929688,
0.0305328369140625,
0.04083251953125,
-0.031494140625,
-0.0155181884765625,
0.0033054351806640625,
0.0164947509765625,
-0.002742767333984375,
-0.01922607421875,
-0.0171966552734375,
0.0251922607421875,
0.038909912109375,
-0.0096282958984375,
-0.035491943359375,
-0.0667724609375,
-0.048583984375,
-0.00392913818359375,
0.0020008087158203125,
0.0214996337890625,
0.028228759765625,
0.06689453125,
0.008941650390625,
0.06610107421875,
-0.004791259765625,
-0.01006317138671875,
0.0018377304077148438,
0.0176849365234375,
-0.04217529296875,
-0.07049560546875,
0.011199951171875,
0.01041412353515625,
-0.03271484375,
0.0135955810546875,
0.054168701171875,
0.00305938720703125,
-0.004169464111328125,
0.03857421875,
0.06597900390625,
0.06573486328125,
-0.01180267333984375,
0.02239990234375,
0.052154541015625,
-0.01006317138671875,
-0.004146575927734375,
-0.01226043701171875,
-0.0128173828125,
-0.02069091796875,
-0.0011415481567382812,
0.02032470703125,
0.007904052734375,
-0.0145111083984375,
-0.039093017578125,
0.03729248046875,
0.009552001953125,
-0.0084381103515625,
-0.0372314453125,
0.0423583984375,
-0.0281524658203125,
0.030914306640625,
-0.0200958251953125,
0.0258636474609375,
0.01116943359375,
0.0311737060546875,
-0.010009765625,
0.005504608154296875,
0.0094451904296875,
0.032012939453125,
0.04168701171875,
0.01059722900390625,
0.0222625732421875,
-0.0251617431640625,
-0.02374267578125,
-0.02655029296875,
0.0258941650390625,
0.0139312744140625,
-0.004161834716796875,
0.005035400390625,
0.0421142578125,
0.01113128662109375,
-0.031646728515625,
-0.0931396484375,
0.0026950836181640625,
-0.04986572265625,
0.0229644775390625,
0.00588226318359375,
-0.01132965087890625,
-0.0109405517578125,
-0.041778564453125,
-0.035614013671875,
0.0160369873046875,
0.018402099609375,
-0.0297698974609375,
-0.0191650390625,
0.0419921875,
0.0018739700317382812,
-0.0128326416015625,
-0.0041656494140625,
-0.016815185546875,
0.00856781005859375,
-0.002040863037109375,
-0.0025634765625,
-0.0056304931640625,
0.031982421875,
-0.018096923828125,
-0.047393798828125,
-0.035552978515625,
-0.0246734619140625,
-0.00966644287109375,
0.005809783935546875,
-0.0311126708984375,
0.022369384765625,
0.0017337799072265625,
-0.05023193359375,
-0.0545654296875,
0.002956390380859375,
0.0294647216796875,
0.002147674560546875,
-0.03912353515625,
-0.017059326171875,
-0.044342041015625,
0.0273590087890625,
0.010528564453125,
-0.000885009765625,
0.0171966552734375,
-0.00531768798828125,
-0.0189361572265625,
-0.003009796142578125,
-0.027862548828125,
0.0035228729248046875,
-0.0545654296875,
0.0019073486328125,
-0.00455474853515625,
-0.0224609375,
-0.0162811279296875,
0.038330078125,
-0.037078857421875,
-0.00585174560546875,
-0.032257080078125,
-0.04583740234375,
-0.07171630859375,
-0.005680084228515625,
0.03369140625,
-0.005859375,
0.018035888671875,
0.01107025146484375,
0.007770538330078125,
0.03778076171875,
0.058868408203125,
0.0030193328857421875,
-0.0180816650390625,
-0.0281219482421875,
0.01788330078125,
-0.01448822021484375,
0.045745849609375,
-0.04913330078125,
-0.0218353271484375,
-0.0015106201171875,
-0.0465087890625,
-0.0091400146484375,
-0.08660888671875,
-0.017974853515625,
-0.005290985107421875,
-0.049530029296875,
0.0711669921875,
-0.0308990478515625,
0.0013761520385742188,
-0.024871826171875,
0.006011962890625,
0.0056610107421875,
0.01241302490234375,
0.04132080078125,
-0.00984954833984375,
0.01739501953125,
-0.0118408203125,
0.038421630859375,
-0.032958984375,
0.009063720703125,
0.00559234619140625,
0.006313323974609375,
0.005336761474609375
] |
e588dbff174bcce23226053a9223e18eb9f7b773 | Wordpress Stackexchange
Q: How to override the "inc" folder (or any folder) in a theme using child theme? I am using Storefront theme (But question isn't specify to this theme, I am asking question for any theme).
I can easily override files like header.php, footer.php using child theme(just copy and paste the file).
But I can't override any files which is on "inc" folder (any folder). How can I override those files?
A: WordPress only looks for the default template files while loading the child theme. So does woocommerce.
Any extra folder or file that exists in your parent theme can not be overridden, unless the developer is using actions and filters that allows you to hook into them. Therefore, a simple require() or include() can't be overridden by a child theme.
What you can do is to track the template file that is calling the files from the inc folder, and then override those in your theme's folder. You might need to go as back as functions.php.
For a complete list of default template files, take a look at the template hierarchy.
| Q: How to override the "inc" folder (or any folder) in a theme using child theme? I am using Storefront theme (But question isn't specify to this theme, I am asking question for any theme).
I can easily override files like header.php, footer.php using child theme(just copy and paste the file).
But I can't override any files which is on "inc" folder (any folder). How can I override those files?
A: WordPress only looks for the default template files while loading the child theme. So does woocommerce.
Any extra folder or file that exists in your parent theme can not be overridden, unless the developer is using actions and filters that allows you to hook into them. Therefore, a simple require() or include() can't be overridden by a child theme.
What you can do is to track the template file that is calling the files from the inc folder, and then override those in your theme's folder. You might need to go as back as functions.php.
For a complete list of default template files, take a look at the template hierarchy.
A: Certain parent themes use locate_template(), which does allow child themes to override non-default files in the parent theme. It's just something the parent theme has to support.
| wordpress | {
"language": "en",
"length": 209,
"provenance": "stackexchange_00019.jsonl.gz:489725",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/315760"
} | [
0.051422119140625,
-0.044525146484375,
-0.0021839141845703125,
-0.053009033203125,
-0.0169219970703125,
-0.019134521484375,
0.037506103515625,
0.008697509765625,
0.01177215576171875,
0.0300445556640625,
-0.0660400390625,
0.0142974853515625,
0.00640869140625,
0.0008687973022460938,
-0.0106201171875,
-0.02642822265625,
0.0013093948364257812,
0.0104827880859375,
0.015777587890625,
-0.00460052490234375,
0.00974273681640625,
-0.007259368896484375,
-0.0036373138427734375,
0.0245513916015625,
0.025634765625,
-0.0130615234375,
0.0362548828125,
-0.02972412109375,
0.020233154296875,
-0.00991058349609375,
0.0252838134765625,
-0.01383209228515625,
0.003509521484375,
0.052032470703125,
-0.047271728515625,
-0.04766845703125,
-0.0285797119140625,
0.0292205810546875,
-0.0006833076477050781,
0.0055084228515625,
0.043121337890625,
-0.0301666259765625,
0.0210723876953125,
0.045684814453125,
0.00620269775390625,
-0.04547119140625,
0.031890869140625,
-0.0638427734375,
0.03399658203125,
-0.042449951171875,
-0.0083160400390625,
0.03912353515625,
0.0016946792602539062,
-0.0307159423828125,
-0.0118255615234375,
0.0038852691650390625,
-0.040771484375,
0.0374755859375,
0.0302276611328125,
-0.026702880859375,
-0.0217437744140625,
-0.01092529296875,
0.0204925537109375,
0.008636474609375,
0.0097808837890625,
-0.0208282470703125,
-0.0182952880859375,
0.03399658203125,
-0.061004638671875,
0.01021575927734375,
0.04608154296875,
-0.0276641845703125,
0.0204315185546875,
-0.023651123046875,
-0.0247039794921875,
0.002635955810546875,
0.00939178466796875,
0.008392333984375,
0.02740478515625,
-0.0255126953125,
-0.0166473388671875,
0.00821685791015625,
-0.0296783447265625,
-0.0609130859375,
0.0270233154296875,
-0.020782470703125,
-0.01282501220703125,
0.005615234375,
-0.0350341796875,
-0.0025768280029296875,
-0.0306243896484375,
0.01314544677734375,
-0.025115966796875,
-0.01055908203125,
-0.0128936767578125,
0.003612518310546875,
0.06256103515625,
0.05731201171875,
-0.03594970703125,
-0.006740570068359375,
0.01548004150390625,
-0.048004150390625,
0.0377197265625,
-0.03277587890625,
-0.006427764892578125,
0.0211334228515625,
-0.0162200927734375,
0.023040771484375,
0.0307159423828125,
0.0487060546875,
0.007232666015625,
0.0077972412109375,
-0.024078369140625,
-0.03692626953125,
-0.01360321044921875,
0.04833984375,
-0.030853271484375,
-0.0018072128295898438,
0.01403045654296875,
0.0217437744140625,
0.0263214111328125,
0.042388916015625,
-0.0092620849609375,
-0.04852294921875,
0.006160736083984375,
-0.01316070556640625,
-0.0279693603515625,
-0.029449462890625,
0.040313720703125,
0.024200439453125,
-0.03564453125,
-0.016876220703125,
0.041534423828125,
0.032867431640625,
0.0186767578125,
-0.00872039794921875,
0.052337646484375,
0.02557373046875,
0.003177642822265625,
-0.027008056640625,
0.00914764404296875,
0.001861572265625,
-0.01528167724609375,
0.002300262451171875,
-0.004100799560546875,
-0.0031280517578125,
0.006687164306640625,
0.02655029296875,
0.01873779296875,
0.0219573974609375,
-0.005420684814453125,
-0.01021575927734375,
0.031890869140625,
-0.0007777214050292969,
0.005161285400390625,
-0.018341064453125,
0.0206451416015625,
-0.0165557861328125,
-0.01433563232421875,
-0.032073974609375,
-0.041717529296875,
-0.0297088623046875,
0.034698486328125,
-0.041473388671875,
-0.06512451171875,
0.042694091796875,
-0.0196533203125,
-0.018310546875,
0.0285491943359375,
-0.00518798828125,
0.05792236328125,
-0.0101318359375,
-0.0274658203125,
0.020782470703125,
0.0247955322265625,
0.017181396484375,
-0.0281829833984375,
0.0308837890625,
0.00658416748046875,
0.0325927734375,
0.00286102294921875,
-0.0352783203125,
0.034027099609375,
0.006252288818359375,
-0.055938720703125,
-0.00934600830078125,
-0.01529693603515625,
-0.0157470703125,
0.04254150390625,
-0.0011882781982421875,
0.039306640625,
-0.016265869140625,
-0.0361328125,
-0.01203155517578125,
-0.003170013427734375,
-0.02410888671875,
0.0411376953125,
0.0003705024719238281,
0.006893157958984375,
0.01511383056640625,
-0.0014095306396484375,
-0.00748443603515625,
0.0274658203125,
-0.002834320068359375,
0.01806640625,
-0.01885986328125,
-0.00861358642578125,
0.0238494873046875,
-0.0016489028930664062,
0.034332275390625,
0.0173492431640625,
0.00930023193359375,
-0.0294342041015625,
-0.01593017578125,
-0.0201568603515625,
-0.0252685546875,
-0.0057373046875,
0.0748291015625,
0.01216888427734375,
0.034942626953125,
0.036529541015625,
-0.0292205810546875,
0.039306640625,
0.003887176513671875,
0.028228759765625,
0.0254364013671875,
-0.00971221923828125,
0.00205230712890625,
0.043731689453125,
0.037994384765625,
-0.040496826171875,
-0.013885498046875,
-0.02655029296875,
-0.007244110107421875,
-0.0428466796875,
-0.02728271484375,
-0.042724609375,
-0.047515869140625,
0.006183624267578125,
0.059112548828125,
0.0197296142578125,
0.035003662109375,
-0.0257720947265625,
0.01885986328125,
0.06341552734375,
0.0248870849609375,
0.0229034423828125,
-0.004344940185546875,
0.01036834716796875,
0.0015726089477539062,
0.032623291015625,
-0.023834228515625,
0.0240936279296875,
-0.0550537109375,
0.026397705078125,
0.0218658447265625,
0.004337310791015625,
-0.0657958984375,
0.01457977294921875,
0.024261474609375,
0.0269775390625,
0.0193328857421875,
-0.047149658203125,
0.037750244140625,
0.022247314453125,
0.019073486328125,
0.0196380615234375,
0.0109405517578125,
-0.01556396484375,
0.0105438232421875,
0.01497650146484375,
-0.0267181396484375,
0.01137542724609375,
0.046722412109375,
-0.01556396484375,
-0.01275634765625,
-0.012115478515625,
0.0027561187744140625,
-0.034393310546875,
0.0005497932434082031,
-0.006191253662109375,
-0.0037994384765625,
-0.01500701904296875,
0.0016775131225585938,
0.02362060546875,
0.0045166015625,
0.0154571533203125,
0.038116455078125,
0.00070953369140625,
0.0029850006103515625,
0.0341796875,
0.010528564453125,
-0.0300445556640625,
0.036285400390625,
-0.053466796875,
-0.01168060302734375,
0.0290985107421875,
-0.0238037109375,
0.033294677734375,
-0.0306854248046875,
0.021331787109375,
0.046783447265625,
-0.0175628662109375,
0.00968170166015625,
0.016876220703125,
-0.038543701171875,
0.0011568069458007812,
0.036590576171875,
0.006031036376953125,
-0.0352783203125,
-0.0297698974609375,
0.0159454345703125,
0.03594970703125,
0.0221099853515625,
0.017486572265625,
-0.027374267578125,
-0.01171112060546875,
0.0292816162109375,
-0.07672119140625,
-0.06781005859375,
0.0002605915069580078,
-0.033416748046875,
0.0092010498046875,
0.0143280029296875,
-0.0007023811340332031,
-0.027374267578125,
0.024169921875,
0.0179443359375,
0.01526641845703125,
-0.049072265625,
0.033935546875,
-0.038055419921875,
-0.03436279296875,
-0.0386962890625,
0.0272674560546875,
-0.016387939453125,
-0.003116607666015625,
-0.00803375244140625,
-0.011566162109375,
-0.005222320556640625,
0.002651214599609375,
0.037628173828125,
0.0092315673828125,
-0.0121917724609375,
0.020904541015625,
-0.0137481689453125,
-0.000762939453125,
0.021575927734375,
-0.0295562744140625,
-0.002254486083984375,
-0.00972747802734375,
-0.03369140625,
-0.01311492919921875,
-0.007389068603515625,
-0.023681640625,
0.06787109375,
0.035858154296875,
-0.06390380859375,
-0.007541656494140625,
-0.066650390625,
-0.07562255859375,
-0.0185546875,
-0.0836181640625,
0.04608154296875,
0.07366943359375,
-0.0010833740234375,
-0.037994384765625,
0.019744873046875,
0.050537109375,
0.00734710693359375,
0.00482177734375,
-0.0205841064453125,
0.036346435546875,
0.0029354095458984375,
0.04229736328125,
-0.04156494140625,
0.060943603515625,
0.01238250732421875,
-0.01317596435546875,
0.019500732421875,
0.022918701171875,
-0.016265869140625,
0.030303955078125,
-0.07037353515625,
-0.0240325927734375,
-0.004108428955078125,
-0.060028076171875,
0.0275115966796875,
-0.035003662109375,
0.017120361328125,
-0.005840301513671875,
0.06378173828125,
-0.0223846435546875,
-0.01947021484375,
0.01424407958984375,
0.0185546875,
-0.02734375,
0.00658416748046875,
-0.050140380859375,
-0.0030574798583984375,
-0.0220794677734375,
0.007221221923828125,
-0.01177215576171875,
-0.0082550048828125,
0.0005540847778320312,
-0.01177978515625,
0.00875091552734375,
-0.02947998046875,
0.017303466796875,
0.0360107421875,
-0.01110076904296875,
0.0209197998046875,
-0.035064697265625,
0.013671875,
-0.002323150634765625,
-0.0124969482421875,
-0.0928955078125,
-0.015625,
-0.0531005859375,
0.08489990234375,
0.0330810546875,
-0.00605010986328125,
-0.0153045654296875,
0.058349609375,
-0.0276641845703125,
0.022918701171875,
0.012176513671875,
0.042022705078125,
0.0011358261108398438,
-0.00679779052734375,
0.0231170654296875,
-0.024444580078125,
-0.0098419189453125,
0.007129669189453125,
-0.046478271484375,
0.042510986328125,
0.014404296875,
0.01169586181640625,
0.0576171875,
-0.0426025390625,
-0.0584716796875,
-0.037353515625,
-0.045013427734375,
-0.0038051605224609375,
-0.0247344970703125,
-0.01155853271484375,
-0.035614013671875,
-0.0687255859375,
0.032684326171875,
0.0229034423828125,
-0.002841949462890625,
0.007122039794921875,
0.04766845703125,
0.00980377197265625,
-0.0440673828125,
-0.04345703125,
0.03912353515625,
0.020721435546875,
0.031982421875,
-0.0017709732055664062,
-0.031982421875,
-0.0135345458984375,
-0.0045318603515625,
0.01265716552734375,
-0.037445068359375,
0.0195465087890625,
0.077880859375,
0.00012242794036865234,
-0.0168914794921875,
0.00409698486328125,
-0.0243072509765625,
-0.0043792724609375,
0.00732421875,
-0.01092529296875,
-0.0163421630859375,
-0.03717041015625,
0.042449951171875,
0.01070404052734375,
0.0189971923828125,
-0.050262451171875,
-0.0153045654296875,
0.001972198486328125,
0.01409149169921875,
0.01107025146484375,
0.0025482177734375,
0.00934600830078125,
0.004642486572265625,
0.021209716796875,
0.00821685791015625,
-0.004421234130859375,
0.036346435546875,
-0.02130126953125,
0.038055419921875,
0.0103607177734375,
-0.0052947998046875,
-0.0210418701171875,
-0.00328826904296875,
0.034210205078125,
0.02947998046875,
-0.0010089874267578125,
-0.01332855224609375,
-0.0045928955078125,
-0.0076904296875,
-0.013092041015625,
0.01218414306640625,
0.007106781005859375,
-0.025238037109375,
0.0014095306396484375,
-0.003246307373046875,
-0.01494598388671875,
0.0029735565185546875,
-0.0214691162109375,
0.024078369140625,
0.032440185546875,
-0.03399658203125,
0.00281524658203125,
-0.052764892578125,
0.046295166015625,
-0.06695556640625,
0.0033397674560546875,
-0.01253509521484375,
-0.00580596923828125,
0.017242431640625,
0.01525115966796875,
-0.024322509765625,
0.041839599609375,
-0.028472900390625,
0.055511474609375,
-0.05438232421875,
-0.039398193359375,
0.005893707275390625,
0.09014892578125,
-0.0305328369140625,
-0.026885986328125,
0.01087188720703125,
-0.049957275390625,
-0.0008907318115234375,
-0.0071563720703125,
-0.0305023193359375,
-0.0158538818359375,
0.01331329345703125,
-0.0188751220703125,
-0.0162811279296875,
-0.020751953125,
-0.0223541259765625,
0.01438140869140625,
-0.02947998046875,
-0.0001443624496459961,
0.042266845703125,
-0.05865478515625,
0.0189971923828125,
0.0212554931640625,
-0.0097198486328125,
0.0280914306640625,
0.0213165283203125,
-0.0982666015625,
-0.05206298828125,
-0.0222320556640625,
-0.00033283233642578125,
0.08941650390625,
-0.0223846435546875,
0.032928466796875,
0.01229095458984375,
-0.052093505859375,
0.004405975341796875,
0.0260772705078125,
0.052581787109375,
0.0186767578125,
-0.059051513671875,
0.012908935546875,
-0.044342041015625,
-0.0147705078125,
-0.056304931640625,
-0.049163818359375,
-0.0638427734375,
0.01824951171875,
-0.0248870849609375,
0.007671356201171875,
-0.017822265625,
0.00170135498046875,
-0.025421142578125,
0.0303802490234375,
0.01218414306640625,
0.015533447265625,
-0.0248565673828125,
0.08404541015625,
-0.0027866363525390625,
-0.0008034706115722656,
-0.0002663135528564453,
0.02630615234375,
-0.0073699951171875,
0.011871337890625,
0.0018110275268554688,
0.007335662841796875,
0.01117706298828125,
-0.030548095703125,
0.0015392303466796875,
0.004436492919921875,
0.08245849609375,
0.004573822021484375,
0.0272369384765625,
-0.046142578125,
-0.01177978515625,
-0.037139892578125,
0.0635986328125,
-0.08245849609375,
0.02178955078125,
-0.043426513671875,
-0.0129547119140625,
-0.00946044921875,
-0.017547607421875,
-0.034454345703125,
0.050506591796875,
0.012847900390625,
0.0263671875,
-0.01123046875,
-0.10723876953125,
0.10302734375,
0.059906005859375,
0.00125885009765625,
0.032501220703125,
-0.039520263671875,
0.00003409385681152344,
0.00553131103515625,
0.038330078125,
0.01140594482421875,
-0.034942626953125,
0.061065673828125,
0.0106658935546875,
-0.0155029296875,
0.0291595458984375,
-0.038360595703125,
0.0220489501953125,
0.06878662109375,
0.06829833984375,
-0.08599853515625,
-0.0148468017578125,
0.0012912750244140625,
-0.0169525146484375,
0.0132598876953125,
0.006275177001953125,
0.0096893310546875,
0.0285491943359375,
-0.0135650634765625,
0.040740966796875,
-0.007770538330078125,
0.004642486572265625,
0.0232086181640625,
-0.0009131431579589844,
0.0179595947265625,
0.0191497802734375,
0.005153656005859375,
0.025421142578125,
-0.046234130859375,
-0.0025882720947265625,
0.01461029052734375,
-0.00911712646484375,
0.02264404296875,
-0.01386260986328125,
-0.0254974365234375,
-0.01329803466796875,
0.0018825531005859375,
-0.0160980224609375,
0.0031604766845703125,
0.037689208984375,
-0.0321044921875,
0.0021915435791015625,
0.051910400390625,
-0.047210693359375,
0.045684814453125,
-0.0006561279296875,
-0.007770538330078125,
-0.0179290771484375,
-0.018310546875,
-0.0097503662109375,
0.01654052734375,
-0.036529541015625,
0.00298309326171875,
-0.03643798828125,
0.022186279296875,
0.0116119384765625,
-0.0299072265625,
0.0130157470703125,
-0.056640625,
0.00803375244140625,
0.04364013671875,
0.0189666748046875,
-0.0138702392578125,
-0.0007376670837402344,
0.0645751953125,
-0.0411376953125,
0.000675201416015625,
0.02777099609375,
0.014617919921875,
-0.050018310546875,
0.0182342529296875,
-0.042694091796875,
0.11798095703125,
0.000698089599609375,
0.0250091552734375,
0.04791259765625,
0.055206298828125,
-0.057525634765625,
0.02703857421875,
-0.016876220703125,
0.0196685791015625,
0.037139892578125,
0.034271240234375,
-0.01253509521484375,
-0.008453369140625,
0.00867462158203125,
0.033294677734375,
0.01018524169921875,
-0.0100250244140625,
0.007793426513671875,
-0.03546142578125,
0.049560546875,
0.04541015625,
0.010833740234375,
0.000324249267578125,
-0.01361846923828125,
-0.041351318359375,
-0.0205230712890625,
-0.008148193359375,
0.0164031982421875,
-0.0430908203125,
-0.0215301513671875,
0.0046234130859375,
-0.004116058349609375,
-0.0302734375,
0.0014410018920898438,
-0.0005831718444824219,
-0.047698974609375,
0.0034236907958984375,
0.0278167724609375,
-0.031829833984375,
-0.0087432861328125,
0.040008544921875,
0.0239715576171875,
-0.020965576171875,
-0.0037631988525390625,
-0.0299072265625,
0.04840087890625,
-0.0006814002990722656,
0.032135009765625,
-0.03076171875,
0.0031890869140625,
0.031402587890625,
-0.015655517578125,
-0.00855255126953125,
0.042083740234375,
-0.032196044921875,
-0.036376953125,
0.0192718505859375,
0.011810302734375,
0.0310211181640625,
0.07489013671875,
0.01538848876953125,
-0.049957275390625,
-0.0165863037109375,
-0.013427734375,
0.0147552490234375,
-0.0217437744140625,
-0.01788330078125,
-0.0318603515625,
-0.0377197265625,
-0.046356201171875,
-0.0214691162109375,
-0.052093505859375,
-0.00951385498046875,
0.019989013671875,
0.0165557861328125,
-0.0076141357421875,
0.0188751220703125,
-0.00316619873046875,
-0.0305328369140625,
-0.0020809173583984375,
0.0152740478515625,
0.0005755424499511719,
-0.00058746337890625,
-0.037078857421875,
0.052825927734375,
-0.026336669921875,
0.01519775390625,
0.002582550048828125,
-0.00345611572265625,
-0.02264404296875,
0.00959014892578125,
-0.041259765625,
-0.0305938720703125,
0.00926971435546875,
0.040008544921875,
0.006603240966796875,
0.048248291015625,
0.046173095703125,
0.0216217041015625,
-0.034637451171875,
-0.013275146484375,
-0.0002218484878540039,
-0.04412841796875,
0.033843994140625,
-0.02008056640625,
-0.000009715557098388672,
-0.002079010009765625,
-0.0286407470703125,
-0.0196380615234375,
-0.01971435546875,
0.062286376953125,
-0.0159454345703125,
0.043304443359375,
-0.0019550323486328125,
-0.0107879638671875,
-0.00556182861328125,
0.0232086181640625,
0.048736572265625,
0.0292816162109375,
-0.01151275634765625,
-0.0024509429931640625,
-0.0098724365234375,
-0.0244598388671875,
0.00036835670471191406,
0.0347900390625,
-0.0099639892578125,
0.0272979736328125,
0.007904052734375,
-0.0183563232421875,
0.002155303955078125,
0.0185089111328125,
-0.0229644775390625,
-0.00403594970703125,
0.02508544921875,
-0.0024566650390625,
-0.0141143798828125,
-0.01282501220703125,
-0.0043792724609375,
0.035919189453125,
0.045989990234375,
0.07086181640625,
-0.024017333984375,
0.030120849609375,
0.00865936279296875,
0.0156707763671875,
-0.0118408203125,
-0.016876220703125,
0.07269287109375,
-0.018707275390625,
-0.030975341796875,
-0.0168609619140625,
-0.0814208984375,
-0.005527496337890625,
0.0254669189453125,
-0.02093505859375,
0.028289794921875,
-0.00995635986328125,
0.0284576416015625,
-0.019683837890625,
0.0089569091796875,
-0.0126495361328125,
-0.00632476806640625,
-0.0269775390625,
-0.00933837890625,
0.040374755859375,
0.0297393798828125,
-0.00879669189453125,
-0.01213836669921875,
0.036376953125,
-0.033721923828125,
0.021026611328125,
0.0165863037109375,
0.03338623046875,
0.032806396484375,
-0.0279998779296875,
-0.04669189453125,
0.019317626953125,
-0.01132965087890625,
0.00971221923828125,
0.0076904296875,
0.026947021484375,
0.0146942138671875,
-0.1043701171875,
0.0222625732421875,
0.062164306640625,
0.03253173828125,
-0.026763916015625,
0.0294952392578125,
0.03167724609375,
-0.027862548828125,
0.06341552734375,
-0.0322265625,
-0.01387786865234375,
-0.022613525390625,
-0.0004992485046386719,
0.021484375,
-0.0222320556640625,
-0.01348876953125,
-0.026336669921875,
0.0191650390625,
0.04730224609375,
0.0220947265625,
-0.0789794921875,
0.035247802734375,
-0.016326904296875,
0.05975341796875,
0.00484466552734375,
0.040924072265625,
-0.025115966796875,
-0.050872802734375,
-0.073974609375,
-0.02239990234375,
-0.042236328125,
0.0278778076171875,
-0.0240020751953125,
-0.0152130126953125,
0.033172607421875,
0.002483367919921875,
0.01168060302734375,
-0.0189056396484375,
-0.00803375244140625,
0.040069580078125,
-0.0792236328125,
-0.0400390625,
0.011474609375,
-0.00785064697265625,
0.00661468505859375,
-0.00890350341796875,
0.014923095703125,
-0.0533447265625,
0.00905609130859375,
-0.0026721954345703125,
-0.0077056884765625,
0.0015077590942382812,
-0.036712646484375,
-0.02337646484375,
0.0309906005859375,
0.01134490966796875,
-0.0303192138671875,
-0.029754638671875,
0.01180267333984375,
-0.0235595703125,
0.01319122314453125,
-0.0164337158203125,
0.00798797607421875,
0.0031681060791015625,
0.042327880859375,
0.01178741455078125,
-0.00014352798461914062,
0.01007843017578125,
0.021759033203125,
-0.03125,
0.046142578125,
0.031219482421875,
-0.005859375,
0.0157623291015625,
-0.016998291015625,
0.0256805419921875,
0.0236053466796875,
-0.05303955078125,
-0.01477813720703125,
0.00664520263671875,
0.003673553466796875,
0.0062103271484375,
-0.0193023681640625,
-0.042877197265625,
-0.005565643310546875,
0.05645751953125,
0.06964111328125,
0.01502227783203125,
-0.020416259765625,
-0.04412841796875,
-0.009765625,
0.0215606689453125,
0.017303466796875,
0.00586700439453125,
-0.046173095703125,
0.03228759765625,
0.03619384765625,
-0.0384521484375,
-0.01427459716796875,
-0.0032787322998046875,
-0.0694580078125,
-0.00743865966796875,
-0.075439453125,
-0.0411376953125,
0.001285552978515625,
-0.007411956787109375,
0.0440673828125,
-0.0205078125,
0.01178741455078125,
-0.0171966552734375,
0.02069091796875,
0.0163116455078125,
-0.030181884765625,
0.01348876953125,
0.0738525390625,
-0.0643310546875,
0.00024819374084472656,
0.0078582763671875,
0.03631591796875,
-0.054473876953125,
-0.005725860595703125,
0.004039764404296875,
0.01177978515625,
-0.019073486328125,
0.005588531494140625,
0.00873565673828125,
0.064697265625,
-0.00771331787109375,
0.11090087890625,
0.0187225341796875,
0.037872314453125,
-0.0035839080810546875,
0.049285888671875,
-0.0219268798828125,
-0.01151275634765625,
-0.00998687744140625,
-0.04437255859375,
0.0003039836883544922,
-0.01019287109375,
-0.03436279296875,
-0.0390625,
0.005481719970703125,
-0.04571533203125,
-0.03369140625,
0.005062103271484375
] |
a085eb127d0f0994f1a19f439a1aaf19bae3aa93 | Wordpress Stackexchange
Q: Can't install local plugin (zip) with wp-cli I'm using WP-CLI with Docker, everything works fine but I can't seem to find a way to install plugins that are on my local drive.
I'm following the instructions, and do :
wp plugin install ../assets/plugins/myplugin.zip
I'm expecting WP-CLI to install the plugin, instead I get a :
Warning: Couldn't find '/assets/plugins/myplugin.zip' in the WordPress.org plugin directory.
Error: No plugins installed.
It seems WP-CLI is treating my zip path as a plugin slug from the plugin directory.
I tried quotes, absolute path, running as root, all with the same result.
| Q: Can't install local plugin (zip) with wp-cli I'm using WP-CLI with Docker, everything works fine but I can't seem to find a way to install plugins that are on my local drive.
I'm following the instructions, and do :
wp plugin install ../assets/plugins/myplugin.zip
I'm expecting WP-CLI to install the plugin, instead I get a :
Warning: Couldn't find '/assets/plugins/myplugin.zip' in the WordPress.org plugin directory.
Error: No plugins installed.
It seems WP-CLI is treating my zip path as a plugin slug from the plugin directory.
I tried quotes, absolute path, running as root, all with the same result.
| wordpress | {
"language": "en",
"length": 98,
"provenance": "stackexchange_00019.jsonl.gz:489871",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/316358"
} | [
-0.0232086181640625,
-0.00354766845703125,
-0.002140045166015625,
-0.00890350341796875,
-0.019287109375,
0.00982666015625,
0.0027141571044921875,
-0.0069122314453125,
0.043701171875,
-0.01171112060546875,
0.0084381103515625,
0.01398468017578125,
-0.04229736328125,
-0.037139892578125,
-0.0010995864868164062,
-0.01259613037109375,
0.03973388671875,
0.0012083053588867188,
0.01282501220703125,
-0.0187530517578125,
0.0012969970703125,
0.0246734619140625,
-0.012451171875,
0.126953125,
0.021148681640625,
0.0182647705078125,
0.07696533203125,
-0.0196685791015625,
0.008941650390625,
-0.0168914794921875,
0.01551055908203125,
-0.01849365234375,
0.015777587890625,
0.0161590576171875,
-0.0157928466796875,
-0.0097198486328125,
-0.023712158203125,
0.033782958984375,
0.0020732879638671875,
-0.0002651214599609375,
0.020843505859375,
-0.00913238525390625,
-0.015167236328125,
0.0867919921875,
-0.024932861328125,
-0.0760498046875,
0.04559326171875,
-0.022796630859375,
0.0179595947265625,
-0.0269317626953125,
-0.005252838134765625,
0.00641632080078125,
0.0162200927734375,
-0.0556640625,
-0.006103515625,
-0.00870513916015625,
-0.0268096923828125,
0.0714111328125,
0.0096588134765625,
-0.02203369140625,
-0.02764892578125,
0.0246734619140625,
0.0193634033203125,
0.034027099609375,
0.0201873779296875,
-0.007404327392578125,
0.0062408447265625,
0.0158538818359375,
-0.057037353515625,
0.0509033203125,
0.05621337890625,
-0.052947998046875,
0.0186004638671875,
0.0011320114135742188,
-0.015655517578125,
-0.062469482421875,
0.0195159912109375,
-0.040863037109375,
0.0173492431640625,
-0.00475311279296875,
0.041229248046875,
-0.007904052734375,
0.0177459716796875,
-0.01202392578125,
0.026153564453125,
0.03839111328125,
0.0026607513427734375,
-0.026519775390625,
-0.006439208984375,
0.01338958740234375,
-0.027252197265625,
-0.0292205810546875,
0.0242919921875,
0.031890869140625,
-0.023284912109375,
0.01099395751953125,
-0.002559661865234375,
-0.0246734619140625,
0.008087158203125,
0.0305633544921875,
0.039825439453125,
-0.0616455078125,
0.0767822265625,
-0.029510498046875,
0.01486968994140625,
0.05010986328125,
-0.015899658203125,
-0.01296234130859375,
0.032440185546875,
0.0119476318359375,
0.004024505615234375,
0.0052337646484375,
-0.019561767578125,
-0.069580078125,
0.0440673828125,
0.0643310546875,
-0.00975799560546875,
0.0517578125,
0.02679443359375,
0.0305633544921875,
0.010986328125,
0.020111083984375,
-0.028076171875,
0.0360107421875,
-0.0250091552734375,
-0.007625579833984375,
0.01187896728515625,
-0.0221099853515625,
-0.0298004150390625,
0.034271240234375,
-0.004428863525390625,
0.0010662078857421875,
0.0117340087890625,
0.0034732818603515625,
-0.030059814453125,
-0.0051116943359375,
0.0223541259765625,
0.00579071044921875,
0.0230560302734375,
0.004230499267578125,
-0.011932373046875,
0.00807952880859375,
0.037811279296875,
-0.00634765625,
0.044342041015625,
-0.006687164306640625,
0.01568603515625,
0.023834228515625,
-0.004673004150390625,
0.0157470703125,
0.018157958984375,
0.0091094970703125,
0.0162200927734375,
0.0205841064453125,
0.0150299072265625,
-0.00955963134765625,
0.0266265869140625,
-0.0233154296875,
-0.006103515625,
-0.009857177734375,
-0.016632080078125,
-0.012542724609375,
0.007904052734375,
-0.02777099609375,
-0.022857666015625,
-0.0004608631134033203,
0.01042938232421875,
0.0099029541015625,
0.01336669921875,
0.035675048828125,
0.0004856586456298828,
-0.0305938720703125,
0.02178955078125,
0.005084991455078125,
-0.0125274658203125,
0.0216064453125,
0.044891357421875,
0.0103302001953125,
0.00907135009765625,
0.06036376953125,
0.00010263919830322266,
-0.0207061767578125,
0.09228515625,
-0.04888916015625,
-0.03460693359375,
-0.01300811767578125,
0.0196685791015625,
0.02691650390625,
0.041015625,
0.0262908935546875,
0.0109100341796875,
-0.006343841552734375,
-0.02337646484375,
-0.01428985595703125,
-0.0212249755859375,
0.0133056640625,
0.006275177001953125,
0.0341796875,
-0.00717926025390625,
-0.0051116943359375,
-0.0089111328125,
-0.0203704833984375,
0.0209197998046875,
-0.00872802734375,
-0.04058837890625,
-0.00855255126953125,
-0.0176239013671875,
0.0214691162109375,
-0.0069427490234375,
0.0007081031799316406,
0.011474609375,
0.002475738525390625,
0.0202178955078125,
-0.07989501953125,
-0.028778076171875,
0.01513671875,
-0.0474853515625,
0.0538330078125,
-0.0257720947265625,
0.0758056640625,
-0.050750732421875,
-0.021148681640625,
-0.0271453857421875,
-0.037689208984375,
-0.007762908935546875,
0.054962158203125,
-0.025970458984375,
0.033416748046875,
0.0234527587890625,
0.03179931640625,
0.051513671875,
-0.007122039794921875,
-0.0214691162109375,
0.0191497802734375,
-0.01385498046875,
-0.01367950439453125,
-0.00238800048828125,
-0.055145263671875,
0.0379638671875,
0.04290771484375,
0.0302886962890625,
0.0298614501953125,
0.004512786865234375,
0.015045166015625,
0.040435791015625,
-0.01617431640625,
0.0282745361328125,
-0.0215301513671875,
0.01093292236328125,
0.022552490234375,
-0.016510009765625,
0.0038299560546875,
0.037384033203125,
-0.033538818359375,
0.01212310791015625,
0.0528564453125,
-0.00885772705078125,
-0.022979736328125,
-0.01093292236328125,
0.00420379638671875,
0.0172882080078125,
-0.01538848876953125,
-0.037811279296875,
0.006389617919921875,
-0.028167724609375,
-0.0021190643310546875,
-0.0017185211181640625,
0.0088043212890625,
0.003749847412109375,
-0.0261383056640625,
0.020172119140625,
0.0199127197265625,
0.032073974609375,
0.01312255859375,
0.0273284912109375,
0.0243377685546875,
-0.0435791015625,
-0.0261077880859375,
0.07928466796875,
0.028045654296875,
-0.0184326171875,
-0.0095672607421875,
0.0107421875,
-0.00891876220703125,
-0.006011962890625,
-0.04949951171875,
0.03778076171875,
0.0330810546875,
-0.054107666015625,
-0.014434814453125,
0.01446533203125,
0.0004565715789794922,
-0.035247802734375,
0.001194000244140625,
-0.002613067626953125,
-0.0156402587890625,
0.051116943359375,
-0.007259368896484375,
0.00846099853515625,
0.01971435546875,
0.03826904296875,
0.05035400390625,
0.030609130859375,
-0.0205078125,
0.00086212158203125,
0.00460052490234375,
0.004062652587890625,
-0.0311737060546875,
-0.035003662109375,
-0.00873565673828125,
-0.058258056640625,
0.00600433349609375,
0.0079193115234375,
-0.0085906982421875,
-0.0057373046875,
-0.04913330078125,
-0.047821044921875,
-0.01617431640625,
-0.1373291015625,
-0.0985107421875,
-0.0019931793212890625,
-0.032806396484375,
0.039398193359375,
0.00830841064453125,
-0.01080322265625,
-0.037872314453125,
0.03912353515625,
0.0268096923828125,
0.0018339157104492188,
-0.05126953125,
0.00312042236328125,
-0.0631103515625,
-0.060577392578125,
-0.0143890380859375,
0.023834228515625,
0.00962066650390625,
0.00946044921875,
0.0718994140625,
0.004779815673828125,
-0.08331298828125,
-0.01117706298828125,
0.056884765625,
-0.0161895751953125,
0.0391845703125,
0.01464080810546875,
-0.0192413330078125,
0.041595458984375,
-0.005512237548828125,
0.05169677734375,
0.042694091796875,
-0.03607177734375,
-0.0137786865234375,
0.021148681640625,
-0.0287933349609375,
0.0006771087646484375,
0.00328826904296875,
-0.011383056640625,
-0.0289459228515625,
-0.0182952880859375,
-0.07000732421875,
0.037811279296875,
0.00194549560546875,
0.0043487548828125,
0.047271728515625,
-0.03387451171875,
-0.0242462158203125,
0.015869140625,
0.02618408203125,
0.0108642578125,
0.0166015625,
-0.0074462890625,
0.0064239501953125,
0.048309326171875,
-0.00722503662109375,
-0.01214599609375,
-0.01837158203125,
0.07037353515625,
-0.01018524169921875,
-0.044342041015625,
0.0209808349609375,
-0.0186767578125,
-0.01617431640625,
-0.037353515625,
-0.03802490234375,
-0.0144805908203125,
0.035125732421875,
0.00905609130859375,
0.0279693603515625,
-0.0143280029296875,
-0.0208587646484375,
0.0005655288696289062,
0.040740966796875,
-0.071044921875,
-0.023101806640625,
0.01403045654296875,
0.02471923828125,
-0.0089874267578125,
-0.0258331298828125,
-0.030517578125,
-0.035980224609375,
-0.007198333740234375,
-0.028839111328125,
-0.0130157470703125,
-0.03167724609375,
0.04229736328125,
-0.02435302734375,
0.018829345703125,
-0.03277587890625,
0.02679443359375,
-0.012725830078125,
0.030731201171875,
-0.01654052734375,
0.01027679443359375,
-0.027496337890625,
-0.02850341796875,
0.0006623268127441406,
-0.12939453125,
-0.01154327392578125,
-0.028472900390625,
0.05853271484375,
-0.0196380615234375,
0.05023193359375,
-0.058807373046875,
0.042388916015625,
0.00801849365234375,
0.026641845703125,
0.00809478759765625,
0.009735107421875,
-0.01093292236328125,
-0.0198211669921875,
0.0081939697265625,
-0.0204315185546875,
-0.01329803466796875,
-0.0240020751953125,
-0.0250701904296875,
0.0012063980102539062,
-0.006622314453125,
0.0193634033203125,
0.0230865478515625,
-0.0193328857421875,
-0.0009393692016601562,
-0.0275421142578125,
0.007598876953125,
0.032470703125,
-0.0025882720947265625,
0.0269317626953125,
-0.0306549072265625,
0.003047943115234375,
0.031829833984375,
-0.01198577880859375,
0.00647735595703125,
0.0131683349609375,
0.082763671875,
0.00838470458984375,
-0.01334381103515625,
-0.038909912109375,
0.020263671875,
0.025238037109375,
0.064697265625,
0.03717041015625,
0.034942626953125,
0.0054779052734375,
-0.045562744140625,
0.040496826171875,
0.02374267578125,
-0.007213592529296875,
0.0069580078125,
0.010101318359375,
-0.029296875,
0.03155517578125,
0.0190277099609375,
-0.0215301513671875,
0.0237884521484375,
0.0133209228515625,
-0.00774383544921875,
0.0054779052734375,
0.02117919921875,
0.00214385986328125,
-0.023590087890625,
-0.0276947021484375,
-0.0953369140625,
0.032806396484375,
-0.05224609375,
0.02630615234375,
0.0194091796875,
-0.0026187896728515625,
0.0728759765625,
-0.01351165771484375,
-0.0122833251953125,
0.01995849609375,
0.006938934326171875,
-0.00708770751953125,
0.00916290283203125,
0.021514892578125,
-0.0289154052734375,
-0.0005936622619628906,
-0.0204925537109375,
0.087890625,
0.017059326171875,
-0.033111572265625,
0.0020961761474609375,
-0.016357421875,
0.006805419921875,
-0.001129150390625,
0.0091400146484375,
0.005359649658203125,
-0.0186767578125,
-0.0421142578125,
-0.020751953125,
-0.007343292236328125,
-0.049468994140625,
-0.046630859375,
0.00238037109375,
-0.016357421875,
-0.00440216064453125,
0.003734588623046875,
0.01386260986328125,
-0.01091766357421875,
-0.0151824951171875,
0.0111083984375,
-0.005298614501953125,
0.003574371337890625,
0.018218994140625,
0.0265655517578125,
-0.038055419921875,
0.01560211181640625,
-0.02435302734375,
0.0232696533203125,
0.0035381317138671875,
0.036651611328125,
0.01026153564453125,
0.004974365234375,
0.003604888916015625,
-0.027984619140625,
0.032318115234375,
-0.031585693359375,
0.007232666015625,
0.0022869110107421875,
-0.041961669921875,
-0.03765869140625,
-0.0130615234375,
0.0236358642578125,
0.040771484375,
-0.0328369140625,
-0.014190673828125,
0.024200439453125,
0.0037059783935546875,
0.0002567768096923828,
0.0814208984375,
-0.061065673828125,
0.0198516845703125,
0.03826904296875,
0.039886474609375,
-0.0290679931640625,
-0.03192138671875,
0.00850677490234375,
0.0280609130859375,
-0.0445556640625,
0.0086669921875,
0.06634521484375,
-0.038360595703125,
-0.00484466552734375,
-0.01076507568359375,
0.007266998291015625,
-0.027435302734375,
0.008697509765625,
0.047515869140625,
0.04156494140625,
-0.07086181640625,
0.006107330322265625,
-0.025482177734375,
-0.01114654541015625,
0.00492095947265625,
-0.00782012939453125,
-0.06695556640625,
-0.015838623046875,
0.050018310546875,
0.0157928466796875,
-0.0103302001953125,
-0.063232421875,
-0.0233917236328125,
0.0060272216796875,
0.04254150390625,
0.007415771484375,
-0.024017333984375,
-0.007110595703125,
0.04510498046875,
-0.0088653564453125,
-0.00033211708068847656,
-0.00345611572265625,
0.02532958984375,
-0.017578125,
0.001953125,
-0.0186309814453125,
-0.004085540771484375,
-0.0182952880859375,
0.00922393798828125,
0.028472900390625,
0.07672119140625,
0.00830841064453125,
-0.0306854248046875,
0.006946563720703125,
-0.00008392333984375,
0.00804901123046875,
0.06134033203125,
0.060882568359375,
-0.00910186767578125,
0.046844482421875,
-0.03533935546875,
0.01702880859375,
0.0128173828125,
0.0011501312255859375,
-0.0006403923034667969,
-0.0262603759765625,
0.0078125,
0.0301361083984375,
-0.034515380859375,
0.05694580078125,
0.0859375,
-0.003505706787109375,
0.054412841796875,
0.0247650146484375,
0.01519012451171875,
0.02227783203125,
-0.0035915374755859375,
0.03411865234375,
-0.013336181640625,
0.0841064453125,
0.00823974609375,
-0.0028057098388671875,
0.07757568359375,
-0.0496826171875,
0.005462646484375,
0.0180511474609375,
0.01323699951171875,
-0.0245513916015625,
-0.0007853507995605469,
-0.032928466796875,
-0.01378631591796875,
0.03509521484375,
-0.005680084228515625,
0.0016298294067382812,
0.0013980865478515625,
0.033111572265625,
0.0246124267578125,
-0.0114593505859375,
0.014495849609375,
0.00015437602996826172,
-0.0208740234375,
0.005825042724609375,
-0.003978729248046875,
0.0004811286926269531,
-0.051513671875,
0.0197601318359375,
0.0282440185546875,
-0.023223876953125,
0.017303466796875,
0.011688232421875,
-0.010101318359375,
-0.025115966796875,
-0.03179931640625,
-0.006816864013671875,
-0.0264434814453125,
-0.03216552734375,
0.058197021484375,
0.0024261474609375,
0.0180816650390625,
0.033905029296875,
0.00032401084899902344,
-0.00482940673828125,
0.0165252685546875,
-0.04443359375,
0.01352691650390625,
-0.01495361328125,
-0.01096343994140625,
0.06353759765625,
-0.0728759765625,
0.0074310302734375,
-0.033966064453125,
0.045318603515625,
-0.00637054443359375,
-0.01392364501953125,
0.0276641845703125,
-0.01285552978515625,
-0.0097198486328125,
0.0384521484375,
0.013214111328125,
-0.00690460205078125,
-0.00873565673828125,
0.027435302734375,
-0.041961669921875,
-0.00037407875061035156,
0.0166778564453125,
0.01110076904296875,
-0.0252838134765625,
0.0017070770263671875,
-0.0216827392578125,
0.07275390625,
0.0038776397705078125,
-0.01517486572265625,
0.01015472412109375,
0.038299560546875,
0.0004379749298095703,
0.031463623046875,
-0.01161956787109375,
-0.0020198822021484375,
0.0112152099609375,
0.0117034912109375,
0.00292205810546875,
-0.004840850830078125,
-0.002044677734375,
0.044769287109375,
0.06927490234375,
0.01364898681640625,
-0.036834716796875,
-0.038604736328125,
0.0013179779052734375,
0.0135040283203125,
-0.0181732177734375,
0.053955078125,
0.0272369384765625,
0.03240966796875,
0.03564453125,
0.006603240966796875,
0.060699462890625,
-0.03863525390625,
-0.0080413818359375,
0.042205810546875,
0.01873779296875,
0.02935791015625,
-0.005710601806640625,
0.04931640625,
0.0305023193359375,
-0.0173187255859375,
-0.009246826171875,
-0.00811767578125,
0.00411224365234375,
0.01493072509765625,
-0.00490570068359375,
0.0131378173828125,
-0.0310211181640625,
-0.0123748779296875,
0.02191162109375,
-0.0187225341796875,
-0.03131103515625,
-0.04925537109375,
0.0008587837219238281,
-0.044921875,
-0.0226593017578125,
-0.04638671875,
0.0333251953125,
-0.01885986328125,
-0.019775390625,
0.00039958953857421875,
0.0200653076171875,
-0.0002111196517944336,
0.0528564453125,
0.0300445556640625,
-0.0166168212890625,
-0.02105712890625,
-0.07293701171875,
0.00583648681640625,
0.0006494522094726562,
-0.014984130859375,
0.01537322998046875,
-0.03955078125,
-0.0390625,
0.060577392578125,
-0.033935546875,
0.005710601806640625,
0.01258087158203125,
0.01337432861328125,
-0.007030487060546875,
-0.01268768310546875,
-0.0094757080078125,
0.0076446533203125,
0.0047760009765625,
0.0182647705078125,
0.006465911865234375,
0.01406097412109375,
-0.017333984375,
0.005157470703125,
-0.038421630859375,
0.005954742431640625,
-0.0008921623229980469,
0.035064697265625,
0.017242431640625,
0.0123748779296875,
-0.03955078125,
-0.051239013671875,
0.044036865234375,
0.0308074951171875,
0.00724029541015625,
0.0244903564453125,
0.023590087890625,
0.043609619140625,
-0.003997802734375,
-0.00453948974609375,
0.08056640625,
-0.007709503173828125,
-0.0167999267578125,
-0.011444091796875,
0.021820068359375,
0.0194244384765625,
0.0033416748046875,
-0.0165252685546875,
0.047576904296875,
0.0223846435546875,
-0.075927734375,
0.0657958984375,
-0.026641845703125,
0.002254486083984375,
0.0399169921875,
-0.03070068359375,
0.0443115234375,
-0.0276641845703125,
0.0013399124145507812,
-0.0220794677734375,
0.028106689453125,
0.00733184814453125,
-0.02691650390625,
0.02618408203125,
0.0211181640625,
0.016845703125,
0.035186767578125,
-0.02789306640625,
-0.00907135009765625,
0.0269317626953125,
0.0265350341796875,
-0.005222320556640625,
0.005615234375,
-0.0003962516784667969,
-0.004749298095703125,
-0.00060272216796875,
-0.054840087890625,
0.050018310546875,
0.027374267578125,
0.0809326171875,
-0.042388916015625,
0.04766845703125,
0.01242828369140625,
-0.003513336181640625,
-0.0003178119659423828,
0.0178985595703125,
-0.0214996337890625,
-0.00977325439453125,
0.0126495361328125,
-0.0213623046875,
-0.006359100341796875,
-0.01531219482421875,
0.017120361328125,
-0.05389404296875,
-0.044342041015625,
-0.0232391357421875,
0.03253173828125,
0.020843505859375,
0.0218963623046875,
-0.0263824462890625,
-0.07421875,
-0.06268310546875,
0.01448822021484375,
0.017608642578125,
0.057891845703125,
0.0053863525390625,
0.0019502639770507812,
0.02935791015625,
-0.020660400390625,
0.00589752197265625,
0.01497650146484375,
0.0010309219360351562,
0.01837158203125,
0.02667236328125,
-0.033447265625,
0.01059722900390625,
-0.0091094970703125,
-0.0015039443969726562,
0.01514434814453125,
0.05126953125,
0.000027894973754882812,
-0.00043773651123046875,
-0.0230865478515625,
-0.008636474609375,
0.018768310546875,
-0.0001283884048461914,
0.0052642822265625,
-0.0264129638671875,
-0.0030307769775390625,
-0.0172576904296875,
-0.0280609130859375,
-0.0302886962890625,
-0.0992431640625,
0.01548004150390625,
0.03314208984375,
-0.06298828125,
-0.018768310546875,
-0.06915283203125,
-0.0128631591796875,
0.02008056640625,
-0.004291534423828125,
-0.020782470703125,
-0.0025157928466796875,
-0.0206451416015625,
0.01094818115234375,
-0.01447296142578125,
-0.00826263427734375,
-0.01016998291015625,
-0.0146942138671875,
-0.041534423828125,
-0.05975341796875,
-0.03387451171875,
0.051788330078125,
-0.0283355712890625,
0.03350830078125,
0.026031494140625,
-0.0247344970703125,
-0.032501220703125,
0.035675048828125,
0.0307159423828125,
0.077880859375,
0.0281829833984375,
-0.0246734619140625,
-0.01190948486328125,
-0.00716400146484375,
-0.00991058349609375,
-0.04022216796875,
0.020263671875,
-0.0733642578125,
-0.0203399658203125,
-0.057769775390625,
0.01947021484375,
0.0016984939575195312,
-0.060089111328125,
-0.0750732421875,
0.044189453125,
-0.0189971923828125,
-0.0140380859375,
-0.054351806640625,
0.007450103759765625,
0.020782470703125,
-0.00986480712890625,
-0.02716064453125,
0.006839752197265625,
-0.05084228515625,
0.0164337158203125,
-0.01922607421875,
0.0014677047729492188,
-0.01104736328125,
-0.01335906982421875,
0.017791748046875,
0.04107666015625,
0.06646728515625,
-0.048919677734375,
0.023193359375,
-0.008544921875,
0.04058837890625,
0.064208984375,
-0.01514434814453125,
0.04559326171875,
-0.0095367431640625,
-0.044586181640625,
-0.00836944580078125,
-0.007564544677734375,
-0.01849365234375,
0.0029449462890625,
0.033172607421875,
0.05523681640625,
0.0206146240234375,
-0.035186767578125,
-0.03326416015625,
-0.037109375,
0.006259918212890625,
-0.0128936767578125,
0.011383056640625,
-0.055999755859375,
0.0101470947265625,
-0.0045318603515625,
0.0146026611328125,
0.0003426074981689453,
0.0205078125,
0.0218963623046875,
-0.03656005859375,
0.0174560546875,
-0.028656005859375,
-0.015289306640625,
-0.03228759765625,
0.0703125,
-0.0229644775390625,
0.04803466796875,
-0.00653839111328125,
0.0202484130859375,
0.0726318359375,
0.04339599609375,
-0.01320648193359375,
-0.03253173828125,
0.003681182861328125,
0.044830322265625,
-0.0091400146484375,
0.035858154296875,
-0.03253173828125,
-0.022552490234375,
0.0007338523864746094,
0.008758544921875,
-0.01491546630859375,
-0.0013780593872070312,
0.006305694580078125,
0.029754638671875,
-0.006824493408203125,
0.05645751953125,
-0.00545501708984375,
-0.066162109375,
-0.0367431640625,
0.043792724609375,
-0.0567626953125,
0.01216888427734375,
-0.057373046875,
0.01739501953125,
0.00225830078125,
0.022918701171875,
-0.045989990234375,
-0.027130126953125,
0.004146575927734375,
0.0146942138671875,
-0.0016412734985351562,
0.00928497314453125
] |
a20e03d953cad258b3344da003e520c6d8a778c5 | Wordpress Stackexchange
Q: Gutenberg change/remove "Write your story" placeholder in custom blocks When created a new page or post or columns blocks we get the "Write your story" placeholder. Can this be removed or replaced, in custom blocks? How?
A: There does seem to be a filter to modify the default: https://github.com/WordPress/gutenberg/blob/master/lib/client-assets.php#L1574
'bodyPlaceholder' => apply_filters( 'write_your_story', __( 'Write your story', 'gutenberg' ), $post ),
So you should be able to use the WordPress add_filter() function.
| Q: Gutenberg change/remove "Write your story" placeholder in custom blocks When created a new page or post or columns blocks we get the "Write your story" placeholder. Can this be removed or replaced, in custom blocks? How?
A: There does seem to be a filter to modify the default: https://github.com/WordPress/gutenberg/blob/master/lib/client-assets.php#L1574
'bodyPlaceholder' => apply_filters( 'write_your_story', __( 'Write your story', 'gutenberg' ), $post ),
So you should be able to use the WordPress add_filter() function.
A: Here's an example block taken from WordPress/gutenberg-examples with placeholder text added.
const { __, setLocaleData } = wp.i18n;
const { registerBlockType } = wp.blocks;
const { RichText } = wp.editor;
setLocaleData( window.gutenberg_examples_03_esnext.localeData, 'gutenberg-examples' );
registerBlockType( 'gutenberg-examples/example-03-editable-esnext', {
title: __( 'Example: Editable (esnext)', 'gutenberg-examples' ),
icon: 'universal-access-alt',
category: 'layout',
attributes: {
content: {
type: 'array',
source: 'children',
selector: 'p',
},
},
edit: ( props ) => {
const { attributes: { content }, setAttributes, className } = props;
const onChangeContent = ( newContent ) => {
setAttributes( { content: newContent } );
};
return (
<RichText
tagName="p"
className={ className }
onChange={ onChangeContent }
value={ content }
placeholder={__('wpse316624 placeholder text', 'custom-block')}
/>
);
},
save: ( props ) => {
return <RichText.Content tagName="p" value={ props.attributes.content } />;
},
} );
| wordpress | {
"language": "en",
"length": 202,
"provenance": "stackexchange_00019.jsonl.gz:489938",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/316624"
} | [
-0.027496337890625,
-0.0250396728515625,
-0.0027675628662109375,
0.05023193359375,
-0.037750244140625,
-0.0269775390625,
0.01309967041015625,
-0.01922607421875,
-0.0301666259765625,
0.0214691162109375,
-0.0017681121826171875,
-0.00955963134765625,
-0.034393310546875,
-0.0343017578125,
0.01027679443359375,
-0.043304443359375,
0.01534271240234375,
0.010467529296875,
0.01497650146484375,
-0.0192108154296875,
-0.0015048980712890625,
-0.007457733154296875,
-0.00714111328125,
0.04595947265625,
0.00621795654296875,
-0.037078857421875,
0.05377197265625,
0.001129150390625,
-0.0046234130859375,
-0.00698089599609375,
0.0257568359375,
0.00208282470703125,
0.01239013671875,
0.007198333740234375,
-0.0181427001953125,
0.0197601318359375,
0.01500701904296875,
0.0034122467041015625,
0.007373809814453125,
0.008697509765625,
0.04840087890625,
-0.0268096923828125,
-0.030517578125,
-0.054534912109375,
-0.02801513671875,
0.0251312255859375,
0.023529052734375,
-0.005680084228515625,
0.059295654296875,
0.040130615234375,
-0.0269927978515625,
0.04833984375,
-0.03118896484375,
0.011749267578125,
-0.0026073455810546875,
-0.02471923828125,
-0.046142578125,
0.02984619140625,
0.017608642578125,
0.04058837890625,
0.00789642333984375,
0.016326904296875,
-0.01073455810546875,
-0.0153656005859375,
0.02880859375,
-0.0079803466796875,
0.0234375,
0.0303802490234375,
-0.03961181640625,
0.00772857666015625,
0.035186767578125,
-0.0226898193359375,
-0.00968170166015625,
-0.0653076171875,
-0.01003265380859375,
0.053253173828125,
-0.036834716796875,
-0.0223388671875,
0.022247314453125,
-0.01446533203125,
-0.0099945068359375,
-0.0167388916015625,
0.013519287109375,
-0.0130462646484375,
-0.00009226799011230469,
-0.00811004638671875,
-0.0167388916015625,
0.004764556884765625,
-0.01275634765625,
-0.00917816162109375,
-0.01313018798828125,
-0.01207733154296875,
-0.03759765625,
0.033721923828125,
-0.0012950897216796875,
-0.00572967529296875,
0.0025787353515625,
0.029022216796875,
0.004398345947265625,
0.001636505126953125,
-0.007122039794921875,
-0.03485107421875,
0.0139617919921875,
-0.02984619140625,
0.04058837890625,
0.0278167724609375,
-0.0660400390625,
0.0191497802734375,
0.0885009765625,
0.0316162109375,
0.00978851318359375,
-0.009979248046875,
-0.01108551025390625,
-0.0031261444091796875,
-0.0298004150390625,
0.05255126953125,
-0.0036373138427734375,
0.0022029876708984375,
-0.0241851806640625,
0.047119140625,
-0.0037860870361328125,
0.00572967529296875,
0.0014886856079101562,
-0.0221099853515625,
0.0186614990234375,
-0.0177154541015625,
-0.039947509765625,
0.0259552001953125,
0.0128021240234375,
0.0006084442138671875,
-0.02252197265625,
0.0027523040771484375,
0.0582275390625,
0.0635986328125,
0.0355224609375,
-0.0107421875,
0.027374267578125,
-0.01824951171875,
-0.009185791015625,
0.01039886474609375,
-0.0179290771484375,
-0.007053375244140625,
0.00823974609375,
-0.0340576171875,
0.0209503173828125,
-0.01788330078125,
0.01091766357421875,
0.04833984375,
0.0205230712890625,
-0.043975830078125,
0.06158447265625,
-0.035247802734375,
0.0283966064453125,
-0.00043272972106933594,
0.010162353515625,
-0.00786590576171875,
0.0309295654296875,
-0.0178375244140625,
-0.00992584228515625,
-0.0274505615234375,
0.032073974609375,
-0.0192413330078125,
-0.010223388671875,
0.00897979736328125,
-0.02008056640625,
0.0191802978515625,
-0.03826904296875,
-0.00164794921875,
0.01690673828125,
0.004512786865234375,
-0.002902984619140625,
-0.03302001953125,
-0.0127410888671875,
-0.0267486572265625,
-0.032257080078125,
0.0203857421875,
-0.0165252685546875,
0.0238800048828125,
-0.00565338134765625,
0.01361846923828125,
0.006908416748046875,
-0.03167724609375,
0.032806396484375,
0.0115966796875,
-0.03912353515625,
0.035797119140625,
0.01800537109375,
0.0810546875,
-0.006771087646484375,
0.02362060546875,
0.005016326904296875,
-0.00360107421875,
-0.04974365234375,
-0.0086517333984375,
0.013916015625,
0.02545166015625,
-0.00492095947265625,
0.0034332275390625,
0.01971435546875,
-0.03057861328125,
0.0186920166015625,
-0.0200958251953125,
0.0479736328125,
-0.0271759033203125,
-0.0099639892578125,
0.01214599609375,
-0.0194244384765625,
0.05267333984375,
-0.0161895751953125,
-0.0178985595703125,
0.01187896728515625,
-0.038787841796875,
-0.00228118896484375,
-0.0026378631591796875,
-0.028717041015625,
-0.00597381591796875,
0.0094757080078125,
0.02301025390625,
0.025054931640625,
0.00264739990234375,
0.0205535888671875,
0.01119232177734375,
0.00922393798828125,
0.00836944580078125,
0.0633544921875,
-0.0032367706298828125,
-0.03497314453125,
-0.031402587890625,
-0.002391815185546875,
-0.0117645263671875,
-0.09912109375,
0.090087890625,
0.04229736328125,
0.0234832763671875,
-0.022735595703125,
0.00897979736328125,
-0.0057373046875,
-0.038787841796875,
-0.011749267578125,
0.04803466796875,
0.01776123046875,
0.005054473876953125,
-0.0311126708984375,
-0.00635528564453125,
0.04046630859375,
0.0133819580078125,
0.01197052001953125,
0.00551605224609375,
0.01163482666015625,
0.03143310546875,
-0.054718017578125,
0.0077667236328125,
0.0149078369140625,
-0.08648681640625,
0.0272064208984375,
0.046875,
-0.00016999244689941406,
-0.0207977294921875,
0.029144287109375,
-0.0187835693359375,
0.01629638671875,
0.038604736328125,
-0.002960205078125,
0.020904541015625,
0.0751953125,
-0.00774383544921875,
0.0208740234375,
0.00669097900390625,
-0.074951171875,
0.03936767578125,
0.0428466796875,
0.00478363037109375,
0.0026569366455078125,
0.0211334228515625,
0.023040771484375,
0.030364990234375,
-0.0042572021484375,
-0.01422119140625,
0.0236053466796875,
0.0209808349609375,
-0.0246734619140625,
-0.007137298583984375,
-0.045562744140625,
-0.014434814453125,
-0.01061248779296875,
-0.049346923828125,
0.0086517333984375,
0.00382232666015625,
0.0177154541015625,
-0.02685546875,
0.00640869140625,
0.011138916015625,
-0.0272674560546875,
0.0294036865234375,
0.0170745849609375,
-0.033203125,
0.0194854736328125,
-0.073486328125,
0.052337646484375,
-0.055084228515625,
0.033660888671875,
0.0677490234375,
-0.013427734375,
0.01001739501953125,
-0.0009684562683105469,
-0.01343536376953125,
0.0104827880859375,
-0.0006561279296875,
-0.01088714599609375,
-0.0020294189453125,
-0.00020575523376464844,
0.0445556640625,
0.00933074951171875,
0.0080718994140625,
0.0258331298828125,
-0.01168060302734375,
0.01000213623046875,
0.01107025146484375,
0.0052947998046875,
0.0218048095703125,
0.045318603515625,
-0.01200103759765625,
-0.034393310546875,
0.0021266937255859375,
-0.0274200439453125,
-0.0009665489196777344,
0.0164337158203125,
-0.0201873779296875,
0.001209259033203125,
-0.02923583984375,
-0.0477294921875,
-0.052276611328125,
-0.052154541015625,
-0.0022373199462890625,
-0.003406524658203125,
0.00008958578109741211,
0.0009636878967285156,
0.04498291015625,
0.0032024383544921875,
-0.00975799560546875,
-0.0024585723876953125,
-0.0634765625,
-0.0112457275390625,
0.0014963150024414062,
0.05072021484375,
-0.03955078125,
0.0078887939453125,
0.004638671875,
0.030670166015625,
0.051971435546875,
-0.041412353515625,
-0.00885772705078125,
-0.02362060546875,
-0.007724761962890625,
-0.01001739501953125,
0.049835205078125,
0.01554107666015625,
-0.043853759765625,
0.014068603515625,
-0.059967041015625,
-0.0634765625,
0.01244354248046875,
-0.041168212890625,
0.0526123046875,
0.0295257568359375,
-0.00762176513671875,
-0.0115814208984375,
0.056915283203125,
0.001476287841796875,
0.01255035400390625,
0.03515625,
-0.005615234375,
-0.00042176246643066406,
-0.0251922607421875,
-0.0168304443359375,
-0.036895751953125,
0.039093017578125,
-0.022918701171875,
0.047149658203125,
0.031707763671875,
0.040008544921875,
0.044036865234375,
-0.03485107421875,
-0.004352569580078125,
-0.01137542724609375,
0.01422882080078125,
-0.03680419921875,
-0.012908935546875,
0.017364501953125,
0.0034351348876953125,
0.038238525390625,
0.043212890625,
0.00093841552734375,
-0.0102081298828125,
0.0313720703125,
-0.006732940673828125,
0.0137481689453125,
0.0272979736328125,
-0.0487060546875,
-0.018218994140625,
-0.028350830078125,
-0.0077362060546875,
0.0170745849609375,
-0.03778076171875,
-0.020782470703125,
0.04193115234375,
-0.032470703125,
-0.003704071044921875,
0.048004150390625,
-0.0406494140625,
0.0234222412109375,
0.019989013671875,
0.0253143310546875,
-0.03497314453125,
-0.0166015625,
-0.034637451171875,
-0.06903076171875,
0.00339508056640625,
-0.0189056396484375,
0.030975341796875,
-0.00487518310546875,
0.0018939971923828125,
-0.0160064697265625,
0.0290069580078125,
0.04925537109375,
-0.01206207275390625,
0.0148162841796875,
-0.0357666015625,
0.036285400390625,
0.00888824462890625,
0.00701904296875,
-0.0188446044921875,
0.0002808570861816406,
-0.0161895751953125,
-0.035369873046875,
0.059844970703125,
-0.005596160888671875,
0.0081787109375,
0.01568603515625,
-0.0235443115234375,
-0.042724609375,
-0.033935546875,
-0.00820159912109375,
-0.005970001220703125,
-0.00743865966796875,
0.0063934326171875,
-0.0271759033203125,
-0.034881591796875,
0.00806427001953125,
0.0360107421875,
-0.02392578125,
0.0190277099609375,
0.04290771484375,
0.0281524658203125,
-0.0245361328125,
-0.05316162109375,
0.0259246826171875,
0.0194244384765625,
-0.022491455078125,
0.054534912109375,
-0.0013294219970703125,
0.00344085693359375,
0.0462646484375,
-0.040252685546875,
0.01953125,
-0.0283355712890625,
0.038543701171875,
-0.027923583984375,
-0.0136260986328125,
0.0299072265625,
-0.027740478515625,
0.044708251953125,
0.0167388916015625,
-0.039031982421875,
0.033935546875,
-0.026702880859375,
0.00013184547424316406,
-0.01399993896484375,
0.004131317138671875,
-0.011688232421875,
0.016387939453125,
0.00677490234375,
-0.00736236572265625,
0.067626953125,
0.017669677734375,
0.0006618499755859375,
-0.01097869873046875,
-0.005336761474609375,
0.007659912109375,
-0.0638427734375,
-0.06787109375,
-0.05462646484375,
0.00981903076171875,
-0.0252685546875,
-0.0077667236328125,
-0.004817962646484375,
-0.0022830963134765625,
0.040496826171875,
-0.0056915283203125,
-0.0305938720703125,
-0.026458740234375,
-0.01776123046875,
0.0113372802734375,
0.004650115966796875,
-0.0025691986083984375,
0.00420379638671875,
-0.0198211669921875,
-0.0168609619140625,
0.0220489501953125,
0.0063018798828125,
-0.03607177734375,
-0.01480865478515625,
0.0003936290740966797,
-0.0186767578125,
-0.008331298828125,
-0.0166778564453125,
0.031219482421875,
-0.017181396484375,
0.01084136962890625,
-0.00557708740234375,
0.034027099609375,
-0.029388427734375,
0.00215911865234375,
0.00130462646484375,
0.035247802734375,
0.0302276611328125,
-0.0357666015625,
0.0219268798828125,
-0.0294647216796875,
-0.0195770263671875,
-0.0153350830078125,
0.034942626953125,
-0.0310516357421875,
-0.0134735107421875,
0.03936767578125,
-0.039703369140625,
0.00926971435546875,
-0.029815673828125,
-0.049468994140625,
-0.033355712890625,
0.029327392578125,
0.0111083984375,
-0.043548583984375,
-0.020294189453125,
0.007228851318359375,
-0.0555419921875,
-0.0274200439453125,
-0.01064300537109375,
-0.037933349609375,
0.0022068023681640625,
-0.0269012451171875,
-0.045562744140625,
0.0166168212890625,
-0.00713348388671875,
-0.0172576904296875,
-0.07281494140625,
-0.033966064453125,
-0.0183563232421875,
0.0295257568359375,
0.06231689453125,
-0.06097412109375,
0.03057861328125,
-0.00550079345703125,
0.01004791259765625,
0.006397247314453125,
0.03961181640625,
0.0233612060546875,
0.028228759765625,
-0.052978515625,
-0.0090789794921875,
-0.05694580078125,
-0.01454925537109375,
-0.05615234375,
-0.0224609375,
-0.0300750732421875,
0.01544189453125,
0.00949859619140625,
0.019775390625,
0.0033931732177734375,
0.0005774497985839844,
0.0183258056640625,
0.0183258056640625,
0.00563812255859375,
0.067626953125,
-0.010406494140625,
0.031097412109375,
-0.01467132568359375,
0.04376220703125,
-0.02569580078125,
-0.032501220703125,
-0.00279998779296875,
-0.019378662109375,
-0.021514892578125,
-0.0438232421875,
-0.01427459716796875,
0.025848388671875,
-0.01335906982421875,
0.031494140625,
0.0287933349609375,
0.000766754150390625,
0.005458831787109375,
-0.011566162109375,
0.00768280029296875,
-0.041351318359375,
0.0135955810546875,
-0.061614990234375,
-0.017669677734375,
-0.040985107421875,
-0.022430419921875,
0.0298309326171875,
0.014678955078125,
-0.01171875,
0.031829833984375,
-0.0290374755859375,
0.0060272216796875,
0.039337158203125,
-0.004840850830078125,
0.03399658203125,
0.0199432373046875,
-0.040130615234375,
0.01218414306640625,
0.019073486328125,
0.0042572021484375,
0.03643798828125,
-0.0325927734375,
-0.0245819091796875,
0.02142333984375,
0.053314208984375,
0.01316070556640625,
-0.001537322998046875,
0.0814208984375,
-0.0195770263671875,
0.007480621337890625,
0.052947998046875,
0.032470703125,
-0.085205078125,
0.00681304931640625,
-0.002429962158203125,
-0.005260467529296875,
0.0244903564453125,
-0.0252838134765625,
-0.0104217529296875,
-0.02899169921875,
-0.0066070556640625,
-0.0133209228515625,
-0.043487548828125,
-0.0260467529296875,
0.0010814666748046875,
-0.01401519775390625,
-0.026275634765625,
0.01898193359375,
0.0220184326171875,
0.0022106170654296875,
0.02764892578125,
-0.0105438232421875,
0.0284576416015625,
-0.0256805419921875,
-0.002292633056640625,
0.0155181884765625,
0.002788543701171875,
-0.037689208984375,
0.036163330078125,
-0.052703857421875,
0.0248565673828125,
0.04656982421875,
0.034637451171875,
0.022552490234375,
0.046875,
0.00970458984375,
-0.0005660057067871094,
0.022796630859375,
-0.03143310546875,
-0.043914794921875,
-0.037017822265625,
0.022491455078125,
0.051788330078125,
-0.06842041015625,
0.040008544921875,
-0.0284423828125,
-0.005863189697265625,
0.0026760101318359375,
0.0391845703125,
0.078369140625,
-0.045318603515625,
-0.032806396484375,
0.0155029296875,
0.0130615234375,
0.0204315185546875,
-0.01519012451171875,
0.07568359375,
-0.106201171875,
-0.07421875,
0.03076171875,
-0.01422119140625,
-0.03558349609375,
0.0289154052734375,
-0.1131591796875,
0.143310546875,
0.05377197265625,
0.056396484375,
-0.032470703125,
0.051910400390625,
-0.041412353515625,
0.0178985595703125,
-0.0487060546875,
0.0609130859375,
0.01532745361328125,
0.07769775390625,
-0.0546875,
-0.01458740234375,
0.025146484375,
0.01543426513671875,
0.05255126953125,
-0.00572967529296875,
0.0426025390625,
-0.03790283203125,
0.0180206298828125,
0.0487060546875,
-0.016082763671875,
-0.043121337890625,
0.0205230712890625,
0.00626373291015625,
-0.0151519775390625,
-0.02020263671875,
0.0209197998046875,
-0.07342529296875,
-0.026947021484375,
0.0280609130859375,
0.0133056640625,
0.02294921875,
0.03179931640625,
-0.0196380615234375,
0.0250091552734375,
-0.005741119384765625,
-0.0036830902099609375,
0.0106353759765625,
-0.0214385986328125,
0.059661865234375,
0.039276123046875,
-0.06951904296875,
-0.04693603515625,
-0.037139892578125,
0.056121826171875,
0.0208892822265625,
0.0303802490234375,
0.016632080078125,
0.0215911865234375,
0.000885009765625,
-0.007534027099609375,
0.036895751953125,
0.04071044921875,
-0.0504150390625,
0.04296875,
0.0073394775390625,
0.007080078125,
-0.004604339599609375,
0.08343505859375,
0.003932952880859375,
0.0243682861328125,
-0.053314208984375,
-0.0119171142578125,
0.004817962646484375,
0.0013513565063476562,
0.0159149169921875,
-0.07293701171875,
-0.0082244873046875,
-0.07763671875,
-0.045379638671875,
-0.0377197265625,
-0.0250244140625,
0.005290985107421875,
-0.0148773193359375,
-0.006153106689453125,
-0.00565338134765625,
0.0592041015625,
-0.0259246826171875,
-0.03961181640625,
-0.034759521484375,
-0.00374603271484375,
0.056976318359375,
0.06201171875,
0.0308837890625,
0.0145416259765625,
-0.0295562744140625,
-0.0321044921875,
0.006237030029296875,
0.006961822509765625,
0.04296875,
-0.05419921875,
-0.00257110595703125,
0.05938720703125,
0.038726806640625,
-0.023223876953125,
0.029541015625,
0.033905029296875,
0.029388427734375,
-0.005084991455078125,
-0.0232391357421875,
-0.002391815185546875,
-0.041778564453125,
-0.005100250244140625,
-0.020172119140625,
-0.0147857666015625,
-0.005828857421875,
-0.012481689453125,
-0.026885986328125,
0.006679534912109375,
0.017822265625,
0.017669677734375,
-0.0090789794921875,
0.023712158203125,
-0.07159423828125,
0.01165008544921875,
0.0274505615234375,
0.08258056640625,
0.06707763671875,
-0.044342041015625,
-0.006290435791015625,
-0.0200653076171875,
-0.025665283203125,
0.01000213623046875,
0.034332275390625,
-0.0211181640625,
0.0281829833984375,
0.003551483154296875,
0.0218963623046875,
0.0286712646484375,
-0.06500244140625,
0.012969970703125,
-0.0027446746826171875,
0.0027332305908203125,
-0.0011692047119140625,
-0.079833984375,
-0.045867919921875,
0.018646240234375,
0.00743865966796875,
-0.03570556640625,
0.062469482421875,
0.01377105712890625,
-0.0225067138671875,
-0.03350830078125,
0.01788330078125,
-0.0214080810546875,
0.003635406494140625,
-0.034515380859375,
0.0528564453125,
0.020660400390625,
-0.0211181640625,
-0.03240966796875,
0.0257720947265625,
0.02020263671875,
-0.0011444091796875,
0.04864501953125,
-0.0165252685546875,
0.0100250244140625,
-0.044097900390625,
-0.0180511474609375,
-0.0245513916015625,
-0.007740020751953125,
0.035125732421875,
0.0240020751953125,
0.011749267578125,
-0.0141448974609375,
-0.0200653076171875,
0.035400390625,
-0.0155792236328125,
-0.030242919921875,
0.034210205078125,
-0.05780029296875,
0.05517578125,
0.0308685302734375,
0.018096923828125,
-0.054229736328125,
0.029388427734375,
0.005939483642578125,
-0.008697509765625,
0.0243988037109375,
0.04693603515625,
0.061248779296875,
-0.03515625,
-0.0217437744140625,
-0.0161895751953125,
0.036285400390625,
-0.0200347900390625,
0.01071929931640625,
-0.0295257568359375,
0.00684356689453125,
-0.0119171142578125,
0.057342529296875,
0.0158843994140625,
0.0201568603515625,
-0.049896240234375,
-0.0032253265380859375,
-0.0055694580078125,
-0.016510009765625,
-0.0212554931640625,
0.01153564453125,
-0.002025604248046875,
-0.0026397705078125,
-0.07269287109375,
0.0831298828125,
0.003215789794921875,
0.01375579833984375,
-0.0208587646484375,
-0.0030364990234375,
0.00786590576171875,
0.039306640625,
-0.0400390625,
-0.03399658203125,
-0.02777099609375,
0.0230712890625,
-0.055999755859375,
-0.029205322265625,
0.00994873046875,
-0.002437591552734375,
-0.01129150390625,
-0.006900787353515625,
-0.016693115234375,
0.042877197265625,
-0.03472900390625,
-0.01080322265625,
0.02227783203125,
0.0166168212890625,
-0.01507568359375,
-0.06243896484375,
0.0011768341064453125,
-0.020172119140625,
0.0191650390625,
0.024505615234375,
-0.01374053955078125,
0.00928497314453125,
-0.052947998046875,
-0.11199951171875,
-0.03582763671875,
0.00452423095703125,
-0.07427978515625,
0.037078857421875,
0.0130615234375,
-0.0248260498046875,
0.03656005859375,
0.035430908203125,
-0.0195159912109375,
-0.0013132095336914062,
-0.034881591796875,
-0.0231781005859375,
0.01416015625,
0.031707763671875,
-0.0203094482421875,
-0.0560302734375,
-0.0178375244140625,
-0.032196044921875,
-0.023193359375,
0.027862548828125,
-0.031982421875,
0.039947509765625,
0.006923675537109375,
-0.037994384765625,
-0.0224761962890625,
-0.006381988525390625,
0.0007963180541992188,
-0.0251007080078125,
-0.01194000244140625,
-0.005062103271484375,
0.017822265625,
0.07318115234375,
0.047821044921875,
-0.0036563873291015625,
-0.037078857421875,
0.020050048828125,
-0.016510009765625,
-0.040863037109375,
-0.01123046875,
0.01485443115234375,
-0.04052734375,
-0.003917694091796875,
0.00910186767578125,
-0.0193634033203125,
0.03289794921875,
-0.011566162109375,
-0.018402099609375,
-0.0005922317504882812,
-0.015594482421875,
-0.009521484375,
-0.061187744140625,
-0.009124755859375,
0.02593994140625,
-0.015594482421875,
0.003070831298828125,
-0.0262603759765625,
0.0293731689453125,
0.0028934478759765625,
-0.006252288818359375,
-0.01486968994140625,
-0.027496337890625,
-0.00016164779663085938,
0.027191162109375,
-0.0047454833984375,
0.05450439453125,
-0.005695343017578125,
-0.0175628662109375,
-0.01105499267578125,
-0.017822265625,
0.0008821487426757812,
-0.0247039794921875,
0.00913238525390625,
0.00849151611328125,
-0.0017499923706054688,
0.025146484375,
-0.005680084228515625,
-0.0283966064453125,
-0.00861358642578125,
0.0004048347473144531,
-0.007411956787109375,
0.0013666152954101562,
0.0145111083984375,
-0.025421142578125,
0.0030689239501953125,
0.02130126953125,
-0.01153564453125,
-0.0246429443359375,
0.0031585693359375,
-0.04150390625,
0.00945281982421875,
0.005298614501953125
] |
54f6445435c5f50e026013d8336047a3b924208a | Wordpress Stackexchange
Q: Does this .htaccess security setting really work? What does this .htaccess do?
Am I correct in thinking that all it does is prevent automatic brute force attacks?
So, to access the wp-login.php you have to manually type in the URL of the domain so that negates all the bots seeking out wp-login.php
Am I correct?
Here's the .htaccess rule:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{HTTP_REFERER} !^https://(.*)?my-domain.com [NC]
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
RewriteRule ^(.*)$ - [F]
</IfModule>
A: It appears to prevent any POST requests to wp-login.php that aren't made from a page on my-domain.com.
When the browser sends a POST request, say after submitting a form, it will include a HTTP Referrer header telling the server where the request came from.
This theoretically prevents bots submitting POST requests directly to wp-login.php as part of a brute force attack, but the HTTP referrer is trivial to fake, so it's not actually all that helpful.
| Q: Does this .htaccess security setting really work? What does this .htaccess do?
Am I correct in thinking that all it does is prevent automatic brute force attacks?
So, to access the wp-login.php you have to manually type in the URL of the domain so that negates all the bots seeking out wp-login.php
Am I correct?
Here's the .htaccess rule:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{HTTP_REFERER} !^https://(.*)?my-domain.com [NC]
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
RewriteRule ^(.*)$ - [F]
</IfModule>
A: It appears to prevent any POST requests to wp-login.php that aren't made from a page on my-domain.com.
When the browser sends a POST request, say after submitting a form, it will include a HTTP Referrer header telling the server where the request came from.
This theoretically prevents bots submitting POST requests directly to wp-login.php as part of a brute force attack, but the HTTP referrer is trivial to fake, so it's not actually all that helpful.
A: What this doesn't prevent: Brute Force
all it does is prevent automatic brute force attacks?
No. This does not prevent brute force attacks.
In a brute force attack, an attacker has control over all parameters of the HTTP request. This includes the referer. As the attacker can send arbitrary referers, this does not prevent brute force attacks. (Almost) all brute force tools will allow the setting of a referer, and setting the site itself as a referer is pretty standard.
Mechanisms that do protect against brute force would be banning or throttling on an IP or username basis, as well as captchas.
What this might be intended to prevent: CSRF
This code might have been indented to add a referer check to all POST requests to the admin area. If the referer is not valid, the request is rejected.
In a CSRF attack, an attacker forces a victim to perform a state-changing POST request. This can eg happen by posting HTML and Javascript code at attacker.com, which then automatically sends a request to victim.com once an authenticated victim visits the site.
Referer checks are one mechanism to protect against CSRF. As only victim.com is accepted as a valid referer, an attacker cannot force the victim to send a request from their own domain.
Of course, WordPress has its own CSRF protection (via anti-CSRF nonces). But it might not catch all cases, and the security of plugins depends very much on the plugin developer.
An additional referer-check can help prevent CSRF vulnerabilities in WP core, and especially in plugins, from being exploitable.
Of course, if this was the intention, the code is bugged. The $ in RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$ prevents the check for most requests.
The check can also easily be bypassed. The following referers would be accepted:
Referer: http://example.com.org
Referer: http://not-example.com
Referer: http://notexample.com
Referer: http://attacker.com/example.com
[...]
To add anything to the security of the site, these two issues would need to be fixed first. The code could also be further improved by not being restricted to POST requests (in poorly-written applications, GET requests may change server-state as well, or POST requests may be transformable into GET requests). As the check only applies to administrators, this should not restrict usability.
A: You Are Partly Correct
Your above code helps protects your WordPress site by only allowing login requests that come directly from your domain.
Most brute force attacks send POST requests directly to your wp-login.php script. So requiring a POST request to have your domain as the referrer helps stop these bots.
You could go one step further if you have a static IP by using the following code:
RewriteEngine on
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
RewriteCond %{REMOTE_ADDR}!^111\.111\.111\.111$
RewriteRule ^(.*)$ - [R=403,L]
*Replace with your static IP address.
*Might not work if your site is behind a DNS service such as CloudFlare.
| wordpress | {
"language": "en",
"length": 634,
"provenance": "stackexchange_00019.jsonl.gz:489942",
"question_score": "7",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/316646"
} | [
0.06982421875,
0.022674560546875,
-0.00615692138671875,
-0.0159454345703125,
0.03778076171875,
-0.057525634765625,
0.0806884765625,
-0.0296630859375,
-0.08380126953125,
0.0260009765625,
0.041473388671875,
0.01387786865234375,
-0.0160369873046875,
-0.047943115234375,
0.05255126953125,
-0.036407470703125,
-0.00701141357421875,
0.0030384063720703125,
0.0211639404296875,
-0.0195465087890625,
0.028656005859375,
-0.0284881591796875,
0.016754150390625,
-0.0316162109375,
-0.0009274482727050781,
-0.00891876220703125,
0.10919189453125,
-0.0312347412109375,
0.0290069580078125,
-0.0102386474609375,
0.01776123046875,
-0.07196044921875,
0.0306396484375,
0.035614013671875,
-0.06951904296875,
-0.04364013671875,
-0.006526947021484375,
-0.002838134765625,
-0.0118865966796875,
0.0017452239990234375,
0.036376953125,
-0.016387939453125,
-0.00012058019638061523,
-0.042236328125,
-0.0250244140625,
0.0225830078125,
0.01071929931640625,
0.005786895751953125,
0.031768798828125,
0.005283355712890625,
-0.019775390625,
0.047821044921875,
-0.0199127197265625,
0.0236968994140625,
-0.02642822265625,
-0.016632080078125,
-0.0176849365234375,
0.012847900390625,
0.03265380859375,
-0.00211334228515625,
-0.022705078125,
-0.018524169921875,
0.01432037353515625,
-0.02093505859375,
-0.0268707275390625,
0.001140594482421875,
0.004817962646484375,
0.006656646728515625,
-0.01235198974609375,
-0.03997802734375,
0.015838623046875,
-0.0078887939453125,
0.0256500244140625,
-0.036590576171875,
0.0233001708984375,
-0.022979736328125,
-0.0008778572082519531,
0.0023250579833984375,
0.004978179931640625,
0.0015230178833007812,
-0.01459503173828125,
-0.048126220703125,
0.0047607421875,
-0.00794219970703125,
0.0010166168212890625,
0.0219879150390625,
-0.0129547119140625,
-0.0008554458618164062,
-0.00612640380859375,
-0.057281494140625,
-0.018402099609375,
-0.04052734375,
-0.0369873046875,
0.007038116455078125,
-0.0179443359375,
-0.021331787109375,
0.020843505859375,
0.00476837158203125,
0.054351806640625,
0.005054473876953125,
0.03448486328125,
-0.065673828125,
0.01245880126953125,
-0.0114288330078125,
-0.00490570068359375,
0.07232666015625,
0.031829833984375,
0.01393890380859375,
0.00647735595703125,
-0.01885986328125,
0.0244598388671875,
0.0263214111328125,
0.00489044189453125,
-0.0245208740234375,
-0.0204620361328125,
0.0271453857421875,
-0.005573272705078125,
0.016082763671875,
0.016387939453125,
0.005584716796875,
-0.040496826171875,
-0.0208892822265625,
0.032562255859375,
-0.034515380859375,
0.016693115234375,
0.0098114013671875,
-0.01395416259765625,
-0.01308441162109375,
-0.0101318359375,
0.038543701171875,
-0.036224365234375,
0.01343536376953125,
0.038543701171875,
-0.00839996337890625,
-0.015106201171875,
-0.033447265625,
0.0275115966796875,
-0.0009636878967285156,
0.0114593505859375,
0.0204010009765625,
-0.01531219482421875,
-0.053802490234375,
0.0081787109375,
-0.00849151611328125,
-0.033721923828125,
0.02117919921875,
0.0145111083984375,
0.0136260986328125,
-0.007373809814453125,
-0.051727294921875,
-0.01183319091796875,
-0.01558685302734375,
0.01038360595703125,
0.0236053466796875,
0.045318603515625,
0.00870513916015625,
0.07171630859375,
-0.0234222412109375,
-0.0224151611328125,
-0.0150909423828125,
0.031585693359375,
-0.003948211669921875,
0.00875091552734375,
0.0020294189453125,
-0.01462554931640625,
0.00496673583984375,
-0.06982421875,
-0.0037841796875,
0.034027099609375,
0.01523590087890625,
0.0135498046875,
-0.01654052734375,
0.03167724609375,
0.012420654296875,
-0.005237579345703125,
0.005313873291015625,
-0.008636474609375,
0.07879638671875,
0.00958251953125,
0.0273590087890625,
0.035797119140625,
-0.0306243896484375,
0.07537841796875,
0.007236480712890625,
-0.04913330078125,
0.048675537109375,
-0.0023021697998046875,
0.050811767578125,
-0.006229400634765625,
0.015228271484375,
0.0272674560546875,
0.03271484375,
-0.032135009765625,
0.028228759765625,
-0.0276641845703125,
-0.043701171875,
0.01904296875,
-0.006927490234375,
-0.01204681396484375,
0.0179443359375,
0.0088653564453125,
-0.0133056640625,
-0.014923095703125,
-0.01128387451171875,
-0.01238250732421875,
-0.03375244140625,
0.00927734375,
0.01336669921875,
-0.0030517578125,
0.0240325927734375,
0.020233154296875,
0.04534912109375,
-0.0296173095703125,
-0.0110321044921875,
-0.0112457275390625,
0.0029468536376953125,
-0.060821533203125,
0.0596923828125,
-0.0255584716796875,
0.05157470703125,
-0.02734375,
-0.06005859375,
-0.00799560546875,
-0.038848876953125,
0.0085601806640625,
-0.004486083984375,
-0.020782470703125,
-0.01776123046875,
-0.0106201171875,
0.0039520263671875,
-0.00982666015625,
0.0157012939453125,
0.0269012451171875,
0.02392578125,
-0.044189453125,
-0.0279388427734375,
-0.042327880859375,
-0.071044921875,
0.0068817138671875,
0.05859375,
0.03253173828125,
0.032379150390625,
-0.01702880859375,
-0.0201416015625,
-0.0008769035339355469,
-0.08258056640625,
-0.0036334991455078125,
-0.00841522216796875,
-0.00263214111328125,
0.0289306640625,
-0.010009765625,
-0.0153350830078125,
0.019500732421875,
-0.02252197265625,
-0.0132904052734375,
0.03973388671875,
-0.0062713623046875,
0.010101318359375,
-0.051727294921875,
0.0163421630859375,
-0.002285003662109375,
-0.047515869140625,
-0.01306915283203125,
-0.0175933837890625,
-0.0211181640625,
-0.023529052734375,
0.00823211669921875,
0.0005116462707519531,
0.004924774169921875,
-0.0274505615234375,
0.0107421875,
-0.0250701904296875,
-0.0154571533203125,
0.0242462158203125,
0.038299560546875,
-0.0268707275390625,
-0.0193939208984375,
0.003814697265625,
-0.0174560546875,
-0.0031871795654296875,
-0.023681640625,
-0.00998687744140625,
-0.0204315185546875,
-0.0170440673828125,
0.0165557861328125,
-0.004596710205078125,
0.0174102783203125,
-0.00829315185546875,
0.047576904296875,
0.0234832763671875,
0.033782958984375,
0.01369476318359375,
-0.0194854736328125,
0.04931640625,
0.006343841552734375,
-0.0355224609375,
0.0161590576171875,
-0.050872802734375,
0.0447998046875,
-0.038970947265625,
0.0308074951171875,
0.07232666015625,
-0.00623321533203125,
0.0194549560546875,
0.004886627197265625,
0.0157928466796875,
0.0003952980041503906,
0.019287109375,
0.0095977783203125,
-0.00299835205078125,
-0.048828125,
-0.004062652587890625,
0.0266571044921875,
0.01611328125,
0.0005311965942382812,
-0.05010986328125,
0.010955810546875,
0.00389862060546875,
-0.06744384765625,
-0.053070068359375,
-0.03204345703125,
-0.0433349609375,
0.01415252685546875,
-0.0018863677978515625,
-0.008575439453125,
0.00372314453125,
0.020721435546875,
0.009918212890625,
-0.003925323486328125,
-0.0025959014892578125,
-0.024322509765625,
-0.03399658203125,
-0.044097900390625,
-0.0283355712890625,
-0.0027256011962890625,
-0.01143646240234375,
0.0112762451171875,
0.01253509521484375,
0.0033321380615234375,
-0.0216827392578125,
0.0131378173828125,
0.0236358642578125,
-0.01317596435546875,
-0.0259552001953125,
-0.02471923828125,
-0.014190673828125,
0.015594482421875,
0.004302978515625,
-0.0270538330078125,
-0.03485107421875,
0.05224609375,
-0.03875732421875,
0.00960540771484375,
-0.043060302734375,
0.00787353515625,
-0.0013713836669921875,
-0.0345458984375,
-0.04071044921875,
-0.0102081298828125,
-0.076171875,
0.03582763671875,
-0.04827880859375,
-0.0310211181640625,
-0.017669677734375,
0.038726806640625,
-0.019439697265625,
-0.00543212890625,
-0.0626220703125,
0.041900634765625,
0.042938232421875,
-0.031707763671875,
0.019927978515625,
0.027313232421875,
0.0069122314453125,
0.033050537109375,
-0.0013437271118164062,
0.024169921875,
-0.03350830078125,
0.00589752197265625,
-0.01062774658203125,
-0.023101806640625,
-0.0286102294921875,
-0.0211944580078125,
-0.05108642578125,
-0.046051025390625,
0.036285400390625,
-0.031585693359375,
0.01192474365234375,
-0.058349609375,
-0.00551605224609375,
-0.04327392578125,
0.061370849609375,
-0.025177001953125,
-0.01861572265625,
-0.02972412109375,
0.021575927734375,
-0.032745361328125,
-0.055938720703125,
-0.015380859375,
0.0004978179931640625,
-0.0233001708984375,
-0.038543701171875,
-0.017181396484375,
-0.0452880859375,
0.0361328125,
-0.05364990234375,
0.00487518310546875,
-0.03558349609375,
0.024261474609375,
0.0116729736328125,
0.037353515625,
-0.007160186767578125,
0.029083251953125,
-0.019927978515625,
0.00335693359375,
-0.0182037353515625,
-0.044158935546875,
-0.01544952392578125,
0.016754150390625,
0.0323486328125,
0.01117706298828125,
-0.0352783203125,
0.001399993896484375,
0.041595458984375,
0.0200347900390625,
-0.007114410400390625,
0.01374053955078125,
-0.036865234375,
0.01025390625,
0.0545654296875,
0.0025196075439453125,
0.01113128662109375,
0.0018548965454101562,
-0.006511688232421875,
-0.0333251953125,
-0.03546142578125,
-0.0201416015625,
-0.0215606689453125,
0.040618896484375,
-0.029510498046875,
-0.05010986328125,
-0.038360595703125,
-0.036285400390625,
0.01229095458984375,
-0.012603759765625,
-0.013885498046875,
-0.045166015625,
-0.049468994140625,
0.051605224609375,
0.012237548828125,
0.0010404586791992188,
-0.007030487060546875,
0.10076904296875,
0.016571044921875,
-0.031463623046875,
-0.013092041015625,
-0.0036334991455078125,
0.0203399658203125,
-0.0194549560546875,
0.08270263671875,
0.02264404296875,
-0.016693115234375,
0.073974609375,
-0.0079345703125,
-0.0002162456512451172,
-0.029541015625,
0.0269317626953125,
-0.00943756103515625,
-0.0282440185546875,
0.01319122314453125,
-0.017120361328125,
0.026458740234375,
0.0826416015625,
0.0150146484375,
-0.034881591796875,
0.017852783203125,
0.0210113525390625,
-0.0272674560546875,
0.0005712509155273438,
0.0056610107421875,
-0.04425048828125,
0.02734375,
0.0411376953125,
-0.0268402099609375,
-0.0020008087158203125,
0.0011968612670898438,
-0.01165771484375,
-0.0245513916015625,
-0.0172576904296875,
-0.0233154296875,
-0.0197601318359375,
0.0296173095703125,
0.0244140625,
0.00789642333984375,
0.0305938720703125,
-0.038177490234375,
-0.0158538818359375,
0.091552734375,
0.010833740234375,
-0.06182861328125,
0.040863037109375,
-0.0290374755859375,
-0.038421630859375,
0.027069091796875,
-0.00901031494140625,
0.0404052734375,
-0.03131103515625,
-0.03802490234375,
-0.008575439453125,
0.0010852813720703125,
-0.10174560546875,
-0.047088623046875,
0.05078125,
-0.004055023193359375,
-0.015838623046875,
0.00986480712890625,
-0.0020503997802734375,
-0.01885986328125,
-0.0001633167266845703,
0.016204833984375,
0.0284423828125,
0.071044921875,
-0.01276397705078125,
0.0126953125,
0.021331787109375,
0.0092620849609375,
-0.04705810546875,
0.039642333984375,
-0.04083251953125,
-0.03558349609375,
0.019805908203125,
0.032867431640625,
0.0170440673828125,
0.005451202392578125,
0.02239990234375,
0.022674560546875,
-0.019073486328125,
0.034881591796875,
0.010833740234375,
-0.061065673828125,
-0.0247344970703125,
-0.0013294219970703125,
0.00571441650390625,
-0.01255035400390625,
-0.003543853759765625,
0.042633056640625,
-0.02947998046875,
-0.02239990234375,
0.04791259765625,
-0.048675537109375,
-0.03277587890625,
-0.00489044189453125,
0.0033664703369140625,
-0.0382080078125,
-0.031707763671875,
0.0250091552734375,
0.0290374755859375,
-0.01532745361328125,
-0.0196685791015625,
0.00803375244140625,
0.00933074951171875,
0.0050201416015625,
0.00022709369659423828,
-0.0293121337890625,
0.02178955078125,
0.00948333740234375,
0.0044708251953125,
-0.0328369140625,
-0.005908966064453125,
-0.0236968994140625,
-0.001514434814453125,
-0.020477294921875,
0.019287109375,
0.013336181640625,
-0.031280517578125,
-0.01910400390625,
-0.0133056640625,
0.007114410400390625,
0.004650115966796875,
0.023406982421875,
-0.01488494873046875,
0.014617919921875,
-0.007171630859375,
-0.0003235340118408203,
-0.056732177734375,
0.058135986328125,
0.0134735107421875,
-0.022064208984375,
-0.01107025146484375,
0.05596923828125,
0.0693359375,
-0.00014710426330566406,
0.02508544921875,
-0.043487548828125,
-0.0154876708984375,
-0.052947998046875,
0.0222625732421875,
0.01201629638671875,
0.0350341796875,
-0.00948333740234375,
0.00753021240234375,
0.0014810562133789062,
0.006313323974609375,
-0.0168304443359375,
0.028717041015625,
-0.00814056396484375,
-0.01091766357421875,
-0.0006513595581054688,
0.0411376953125,
0.055206298828125,
-0.0457763671875,
-0.036285400390625,
-0.0086212158203125,
0.02154541015625,
0.01215362548828125,
-0.0028076171875,
-0.0195465087890625,
0.0127716064453125,
0.1107177734375,
0.04095458984375,
0.075439453125,
0.021484375,
0.022979736328125,
0.051483154296875,
-0.022216796875,
-0.0038852691650390625,
-0.0113067626953125,
0.05023193359375,
0.0026073455810546875,
-0.0106201171875,
0.046234130859375,
-0.0254669189453125,
-0.00007659196853637695,
0.051727294921875,
0.05517578125,
-0.071044921875,
-0.0011138916015625,
0.00714874267578125,
-0.009002685546875,
-0.00273895263671875,
0.0195770263671875,
-0.010009765625,
-0.002826690673828125,
0.013702392578125,
-0.010833740234375,
0.0010204315185546875,
0.02252197265625,
0.032318115234375,
0.00347137451171875,
0.033538818359375,
0.0131072998046875,
-0.005329132080078125,
-0.03167724609375,
-0.048187255859375,
0.0119171142578125,
-0.01068878173828125,
-0.01471710205078125,
-0.006977081298828125,
-0.0048675537109375,
-0.035247802734375,
-0.0653076171875,
-0.025665283203125,
-0.01509857177734375,
-0.018585205078125,
0.0240020751953125,
0.004566192626953125,
0.035614013671875,
0.061737060546875,
-0.0083465576171875,
0.043182373046875,
0.01233673095703125,
0.045867919921875,
0.0611572265625,
-0.038299560546875,
-0.01451873779296875,
0.037750244140625,
-0.0086517333984375,
0.002529144287109375,
0.046844482421875,
-0.035888671875,
-0.00479888916015625,
-0.056396484375,
0.07843017578125,
-0.0230560302734375,
-0.021148681640625,
0.0021343231201171875,
-0.022613525390625,
0.00557708740234375,
-0.00026416778564453125,
-0.007965087890625,
-0.0259246826171875,
0.0018815994262695312,
-0.014404296875,
-0.01708984375,
0.01105499267578125,
-0.024505615234375,
-0.0460205078125,
0.06805419921875,
-0.00591278076171875,
0.04071044921875,
0.04339599609375,
0.0122528076171875,
-0.034820556640625,
0.0014820098876953125,
-0.0281524658203125,
0.053802490234375,
0.016204833984375,
0.02691650390625,
-0.0254669189453125,
-0.01495361328125,
0.006572723388671875,
0.0294189453125,
0.043853759765625,
0.00998687744140625,
-0.0460205078125,
-0.026092529296875,
0.038543701171875,
0.031585693359375,
0.0155029296875,
0.04296875,
0.00689697265625,
0.0284423828125,
0.0538330078125,
-0.0491943359375,
0.0097808837890625,
0.019927978515625,
0.01055145263671875,
0.0330810546875,
-0.0013761520385742188,
-0.0462646484375,
0.01050567626953125,
0.0187530517578125,
-0.0992431640625,
0.038299560546875,
0.048126220703125,
0.0230712890625,
-0.009368896484375,
0.0242767333984375,
0.019775390625,
-0.03021240234375,
0.005641937255859375,
-0.045745849609375,
0.037689208984375,
0.006755828857421875,
0.01435089111328125,
0.03558349609375,
0.0197296142578125,
0.046173095703125,
0.0002872943878173828,
0.02227783203125,
0.0150604248046875,
-0.0243988037109375,
0.03863525390625,
0.02752685546875,
0.03668212890625,
0.0026397705078125,
-0.0204925537109375,
-0.004238128662109375,
0.0396728515625,
-0.0281524658203125,
-0.03173828125,
-0.0032596588134765625,
-0.01340484619140625,
0.0279541015625,
0.00146484375,
0.049774169921875,
-0.0230255126953125,
-0.040252685546875,
0.029296875,
-0.0004372596740722656,
-0.00537109375,
-0.024444580078125,
0.00995635986328125,
0.061859130859375,
-0.0020732879638671875,
0.04315185546875,
-0.007354736328125,
-0.012237548828125,
0.0106964111328125,
0.031982421875,
0.006420135498046875,
0.036041259765625,
-0.02886962890625,
-0.01079559326171875,
-0.01329803466796875,
-0.00616455078125,
-0.026092529296875,
0.0215301513671875,
-0.0270843505859375,
-0.0024242401123046875,
-0.0157012939453125,
0.049468994140625,
0.032470703125,
-0.0026988983154296875,
0.01406097412109375,
0.0003631114959716797,
-0.01500701904296875,
0.006923675537109375,
0.0211181640625,
-0.0208587646484375,
0.0246734619140625,
-0.011749267578125,
-0.0012273788452148438,
-0.0028171539306640625,
-0.035491943359375,
-0.0279083251953125,
-0.0088348388671875,
0.0274200439453125,
-0.00795745849609375,
0.048370361328125,
-0.00568389892578125,
-0.0206298828125,
-0.005962371826171875,
-0.042022705078125,
0.051513671875,
0.0022563934326171875,
-0.00603485107421875,
0.0177154541015625,
0.0009403228759765625,
-0.0828857421875,
-0.01430511474609375,
0.0189666748046875,
-0.0193023681640625,
0.004650115966796875,
-0.00839996337890625,
-0.031402587890625,
0.019012451171875,
-0.0087738037109375,
0.005767822265625,
-0.03265380859375,
-0.00994873046875,
-0.03759765625,
-0.07489013671875,
-0.020782470703125,
-0.0247802734375,
0.0251312255859375,
-0.034332275390625,
0.072021484375,
-0.024932861328125,
0.0029888153076171875,
-0.03424072265625,
0.034912109375,
-0.0377197265625,
-0.0194091796875,
0.043304443359375,
0.005580902099609375,
-0.031158447265625,
-0.0061187744140625,
-0.0908203125,
0.060943603515625,
-0.0288543701171875,
0.040008544921875,
0.07440185546875,
-0.041015625,
-0.003047943115234375,
0.01229095458984375,
0.0240478515625,
-0.024383544921875,
-0.0670166015625,
-0.052764892578125,
0.0172271728515625,
0.0038299560546875,
0.03302001953125,
-0.0273895263671875,
0.0836181640625,
-0.08892822265625,
0.01300811767578125,
-0.015838623046875,
-0.09210205078125,
-0.059783935546875,
0.00522613525390625,
-0.048126220703125,
0.04437255859375,
0.007106781005859375,
-0.03289794921875,
0.018798828125,
0.01314544677734375,
-0.03521728515625,
0.0169525146484375,
-0.015228271484375,
0.011077880859375,
0.034759521484375,
0.043975830078125,
0.03338623046875,
0.009246826171875,
-0.0167083740234375,
-0.033203125,
0.0170135498046875,
-0.0134429931640625,
-0.0325927734375,
-0.0276641845703125,
-0.01157379150390625,
0.0013704299926757812,
-0.007755279541015625,
-0.054168701171875,
-0.032501220703125,
0.040283203125,
0.0233306884765625,
-0.032012939453125,
-0.03240966796875,
0.0037670135498046875,
-0.056243896484375,
0.108154296875,
-0.036590576171875,
0.0654296875,
-0.01259613037109375,
0.014862060546875,
-0.059478759765625,
0.007358551025390625,
-0.0240478515625,
-0.0025768280029296875,
-0.00179290771484375,
-0.0087890625,
0.0284576416015625,
0.01556396484375,
0.01045989990234375,
-0.04827880859375,
-0.042999267578125,
0.0069427490234375,
-0.06915283203125,
-0.00807952880859375,
0.015838623046875,
0.0011663436889648438,
-0.0084381103515625,
-0.01318359375,
-0.00565338134765625,
0.008758544921875,
-0.01384735107421875,
-0.004302978515625,
-0.0186309814453125,
-0.0184478759765625,
-0.06524658203125,
-0.0830078125,
0.006011962890625,
0.0089263916015625,
-0.040557861328125,
-0.04254150390625,
-0.00074005126953125,
0.0130157470703125,
0.0119781494140625,
-0.0176849365234375,
-0.018463134765625,
-0.045318603515625,
0.03302001953125,
-0.00479888916015625,
0.0447998046875,
-0.027679443359375,
0.03155517578125,
0.01279449462890625,
0.04925537109375,
0.0362548828125,
-0.017974853515625,
-0.001659393310546875,
0.018951416015625,
0.06622314453125,
0.04461669921875,
0.00713348388671875,
0.11322021484375,
0.0264129638671875,
-0.0177154541015625,
0.01181793212890625,
-0.0035762786865234375,
0.0018415451049804688,
-0.0192413330078125,
-0.02996826171875,
0.02777099609375,
-0.0128936767578125,
0.01035308837890625,
0.0012388229370117188,
-0.037384033203125,
-0.027313232421875,
-0.0159149169921875,
0.01477813720703125,
-0.029876708984375,
0.006866455078125,
-0.004795074462890625,
0.006053924560546875,
-0.0288543701171875,
0.00009119510650634766,
-0.02117919921875,
-0.01483917236328125,
0.00809478759765625,
-0.01447296142578125,
0.024139404296875,
-0.0014867782592773438,
0.07861328125,
-0.046234130859375,
-0.00518035888671875,
0.01222991943359375,
0.0266265869140625,
0.03009033203125,
-0.0045318603515625,
-0.002513885498046875,
0.0419921875,
-0.0155181884765625,
-0.0004699230194091797,
0.03240966796875,
-0.021087646484375,
-0.01050567626953125,
0.002948760986328125,
-0.0169525146484375,
0.012847900390625,
0.01079559326171875,
0.0209808349609375,
-0.0202789306640625,
0.021270751953125,
0.0201873779296875,
0.04302978515625,
0.005229949951171875,
-0.050872802734375,
-0.005031585693359375,
0.0299072265625,
0.0182342529296875,
-0.043365478515625,
0.034820556640625,
-0.041412353515625,
0.01070404052734375,
0.013824462890625,
0.029510498046875,
0.00708770751953125,
-0.005680084228515625,
-0.00992584228515625,
0.00966644287109375,
-0.00975799560546875
] |
0772664055f0c05c399104f6ee7304b0fef6541b | Wordpress Stackexchange
Q: Custom field metabox not showing in back-end I recently updated my website after a while, and the custom fields meta box is not showing in the editor anymore. It isn't showing under "Screen Options" either. Any ideas why this could be, and how to get it back?
A: It turns out the latest Advanced Custom Fields update (from version 5.6.0 on) removes the core custom fields metaboxes by default.
The way to restore it was to add a filter in functions.php:
add_filter('acf/settings/remove_wp_meta_box', '__return_false');
| Q: Custom field metabox not showing in back-end I recently updated my website after a while, and the custom fields meta box is not showing in the editor anymore. It isn't showing under "Screen Options" either. Any ideas why this could be, and how to get it back?
A: It turns out the latest Advanced Custom Fields update (from version 5.6.0 on) removes the core custom fields metaboxes by default.
The way to restore it was to add a filter in functions.php:
add_filter('acf/settings/remove_wp_meta_box', '__return_false');
A: When registering a custom post type you have to declare that it supports the custom fields meta box to get it, e.g.:
'supports' => array( 'title', 'editor', 'custom-fields' )
But most people don't do this, and build real metaboxes instead. This way instead they can put in radio buttons and drop downs etc
| wordpress | {
"language": "en",
"length": 138,
"provenance": "stackexchange_00019.jsonl.gz:490075",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/317185"
} | [
0.023223876953125,
-0.012939453125,
0.0206451416015625,
-0.0195159912109375,
-0.0287017822265625,
0.01421356201171875,
-0.009063720703125,
-0.0283203125,
0.02978515625,
0.04168701171875,
0.00402069091796875,
-0.038543701171875,
0.0088958740234375,
-0.03265380859375,
-0.054412841796875,
-0.0242919921875,
0.0265960693359375,
0.013275146484375,
0.029998779296875,
-0.01526641845703125,
0.0170135498046875,
-0.00949859619140625,
0.023834228515625,
0.049224853515625,
0.016021728515625,
-0.042999267578125,
0.03802490234375,
-0.01824951171875,
0.0068817138671875,
-0.0129852294921875,
0.023162841796875,
0.0211639404296875,
0.016845703125,
0.033782958984375,
-0.02691650390625,
0.00817108154296875,
0.0081787109375,
0.0150909423828125,
-0.0037212371826171875,
0.034271240234375,
0.01071929931640625,
-0.00878143310546875,
0.00986480712890625,
0.0031337738037109375,
-0.0019245147705078125,
-0.0233154296875,
0.00408172607421875,
-0.052001953125,
0.01331329345703125,
-0.03387451171875,
-0.00769805908203125,
0.019866943359375,
0.004604339599609375,
-0.0237274169921875,
-0.01568603515625,
-0.039703369140625,
-0.046234130859375,
0.02178955078125,
0.021820068359375,
0.0143280029296875,
0.008087158203125,
0.0018558502197265625,
-0.0078887939453125,
-0.0072021484375,
0.022918701171875,
-0.007320404052734375,
0.00234222412109375,
0.016143798828125,
-0.03167724609375,
0.0188751220703125,
0.0340576171875,
-0.038482666015625,
0.00958251953125,
-0.0271453857421875,
0.0186767578125,
-0.015899658203125,
-0.004638671875,
-0.0285797119140625,
0.01708984375,
0.016693115234375,
-0.02459716796875,
0.01837158203125,
-0.06524658203125,
-0.0145263671875,
0.01885986328125,
0.037200927734375,
-0.0305633544921875,
-0.0297088623046875,
0.0016355514526367188,
-0.0246734619140625,
0.0019006729125976562,
-0.0948486328125,
-0.045867919921875,
0.051025390625,
0.03167724609375,
-0.038818359375,
0.0280609130859375,
0.0567626953125,
-0.0178070068359375,
-0.038482666015625,
0.0261688232421875,
-0.0391845703125,
-0.0026950836181640625,
-0.0160064697265625,
0.0084075927734375,
-0.002628326416015625,
-0.041595458984375,
-0.0119476318359375,
0.0276641845703125,
0.05572509765625,
-0.00910186767578125,
-0.033447265625,
0.00887298583984375,
0.008087158203125,
-0.034149169921875,
-0.0088043212890625,
-0.0210723876953125,
-0.0014801025390625,
-0.0252227783203125,
-0.0082855224609375,
0.004695892333984375,
0.01959228515625,
-0.017852783203125,
-0.058624267578125,
0.015899658203125,
-0.03570556640625,
-0.049530029296875,
0.0170745849609375,
-0.045989990234375,
0.0198211669921875,
-0.0421142578125,
-0.017486572265625,
0.049957275390625,
0.0887451171875,
0.044677734375,
-0.017242431640625,
0.01035308837890625,
-0.040283203125,
-0.01458740234375,
0.047027587890625,
-0.044403076171875,
-0.053497314453125,
0.013671875,
-0.021728515625,
-0.0216064453125,
0.00850677490234375,
0.01230621337890625,
0.0216064453125,
-0.007781982421875,
-0.0582275390625,
0.0020904541015625,
-0.0216827392578125,
0.03863525390625,
0.045379638671875,
0.00569915771484375,
0.028350830078125,
0.1298828125,
-0.050750732421875,
-0.07037353515625,
-0.05035400390625,
0.041473388671875,
0.0017004013061523438,
-0.00594329833984375,
-0.0015916824340820312,
-0.0223388671875,
-0.02471923828125,
-0.0269927978515625,
-0.002166748046875,
0.031219482421875,
0.005084991455078125,
0.03216552734375,
-0.016387939453125,
0.0219573974609375,
0.0175933837890625,
0.0011491775512695312,
0.0198211669921875,
0.02587890625,
0.06744384765625,
-0.003925323486328125,
0.01015472412109375,
0.005634307861328125,
-0.04595947265625,
0.050018310546875,
-0.02325439453125,
-0.046844482421875,
0.01297760009765625,
-0.0148773193359375,
0.00403594970703125,
0.046630859375,
-0.0028972625732421875,
0.04248046875,
-0.003147125244140625,
0.0021495819091796875,
0.00579071044921875,
0.017364501953125,
0.0174407958984375,
-0.040771484375,
0.0218658447265625,
-0.0162353515625,
-0.0244293212890625,
-0.041259765625,
-0.017486572265625,
0.017547607421875,
0.00919342041015625,
-0.0231170654296875,
0.01428985595703125,
-0.032073974609375,
0.046539306640625,
0.015869140625,
0.003978729248046875,
0.018218994140625,
-0.005279541015625,
-0.0239410400390625,
0.00722503662109375,
-0.03302001953125,
0.00998687744140625,
0.0137176513671875,
0.026824951171875,
0.007747650146484375,
-0.006649017333984375,
0.0113372802734375,
-0.0139617919921875,
-0.00765228271484375,
0.0145416259765625,
0.041595458984375,
-0.01043701171875,
0.0016994476318359375,
-0.02398681640625,
0.06854248046875,
0.00021827220916748047,
0.0137939453125,
0.0026569366455078125,
0.01454925537109375,
-0.0150909423828125,
-0.056549072265625,
-0.01177215576171875,
-0.034423828125,
-0.06103515625,
-0.001125335693359375,
0.069091796875,
0.03936767578125,
0.0367431640625,
0.011566162109375,
0.0240020751953125,
0.0811767578125,
-0.0002551078796386719,
0.01436614990234375,
-0.0019407272338867188,
0.009124755859375,
0.0112762451171875,
-0.050994873046875,
-0.01230621337890625,
0.048126220703125,
-0.02716064453125,
0.004093170166015625,
0.053619384765625,
-0.025054931640625,
-0.0129547119140625,
0.0205535888671875,
-0.01395416259765625,
0.0047607421875,
-0.04010009765625,
-0.0159454345703125,
-0.0200042724609375,
0.031829833984375,
0.04046630859375,
0.07122802734375,
0.073974609375,
-0.0183868408203125,
0.0124053955078125,
-0.005435943603515625,
0.039398193359375,
-0.0072021484375,
0.0109710693359375,
0.0247802734375,
0.044952392578125,
-0.055633544921875,
-0.0030364990234375,
0.04461669921875,
0.0303192138671875,
-0.003570556640625,
-0.005218505859375,
-0.0231781005859375,
0.0013780593872070312,
0.0235595703125,
-0.029022216796875,
0.01499176025390625,
0.0258026123046875,
0.034393310546875,
-0.0002713203430175781,
0.0219268798828125,
0.00963592529296875,
-0.003116607666015625,
0.036712646484375,
0.005970001220703125,
-0.0240631103515625,
-0.01104736328125,
-0.0274200439453125,
0.04022216796875,
-0.04510498046875,
-0.00646209716796875,
0.054901123046875,
-0.0259857177734375,
0.026885986328125,
-0.01467132568359375,
0.0413818359375,
-0.0377197265625,
0.030487060546875,
0.00466156005859375,
-0.0352783203125,
-0.0345458984375,
-0.0264739990234375,
0.028228759765625,
0.0303497314453125,
0.0022296905517578125,
-0.04266357421875,
-0.0031642913818359375,
0.02166748046875,
-0.07916259765625,
-0.04339599609375,
-0.0021343231201171875,
-0.0179595947265625,
-0.06292724609375,
-0.005504608154296875,
-0.02703857421875,
0.0310211181640625,
-0.0192413330078125,
-0.004730224609375,
0.0088653564453125,
-0.0333251953125,
-0.047515869140625,
-0.05413818359375,
-0.0697021484375,
-0.050567626953125,
0.0079345703125,
0.0004138946533203125,
0.003513336181640625,
0.09912109375,
0.005523681640625,
-0.07525634765625,
-0.0036869049072265625,
-0.044342041015625,
-0.0029430389404296875,
0.05914306640625,
0.053192138671875,
-0.049713134765625,
0.045928955078125,
-0.003513336181640625,
-0.0039825439453125,
0.03936767578125,
-0.019287109375,
-0.03564453125,
-0.0484619140625,
-0.022430419921875,
-0.035430908203125,
0.0214080810546875,
0.06109619140625,
-0.01464080810546875,
0.01393890380859375,
-0.034637451171875,
0.007663726806640625,
0.019561767578125,
0.0226593017578125,
0.0233306884765625,
-0.0716552734375,
-0.0130767822265625,
-0.0011959075927734375,
0.07940673828125,
0.0038089752197265625,
0.01125335693359375,
0.028717041015625,
-0.0056610107421875,
-0.0295562744140625,
-0.00472259521484375,
-0.01422882080078125,
-0.0100860595703125,
0.03759765625,
-0.00986480712890625,
0.050048828125,
0.0164337158203125,
0.022705078125,
-0.016693115234375,
0.049346923828125,
-0.05517578125,
-0.062103271484375,
0.049530029296875,
-0.0389404296875,
-0.01380157470703125,
-0.0179443359375,
-0.0174407958984375,
0.0205535888671875,
0.0828857421875,
-0.06683349609375,
-0.016357421875,
0.046295166015625,
0.0175628662109375,
0.001087188720703125,
0.0275115966796875,
-0.053741455078125,
-0.0238800048828125,
-0.1173095703125,
0.01088714599609375,
0.0230560302734375,
-0.05322265625,
-0.00951385498046875,
0.0341796875,
-0.0714111328125,
-0.0308685302734375,
0.0433349609375,
-0.0401611328125,
-0.01085662841796875,
0.0007424354553222656,
0.0002111196517944336,
-0.048248291015625,
-0.0136871337890625,
-0.002544403076171875,
-0.07440185546875,
-0.0241241455078125,
-0.018524169921875,
0.05047607421875,
0.00908660888671875,
-0.0014934539794921875,
-0.00450897216796875,
0.05438232421875,
0.029052734375,
-0.00665283203125,
0.0165863037109375,
-0.00492095947265625,
0.02734375,
-0.02294921875,
0.0078277587890625,
-0.02490234375,
0.005863189697265625,
-0.004398345947265625,
-0.016815185546875,
0.02642822265625,
-0.0266265869140625,
-0.0290069580078125,
0.00714111328125,
-0.0333251953125,
0.040191650390625,
-0.04681396484375,
-0.08416748046875,
-0.022857666015625,
-0.022796630859375,
-0.01546478271484375,
-0.0362548828125,
0.01500701904296875,
-0.01641845703125,
-0.01268768310546875,
-0.017242431640625,
0.034423828125,
0.033966064453125,
0.0222015380859375,
0.006649017333984375,
-0.04876708984375,
-0.0260772705078125,
0.0163421630859375,
0.01485443115234375,
0.0248260498046875,
0.0005192756652832031,
-0.0008568763732910156,
0.027618408203125,
-0.01076507568359375,
0.050994873046875,
-0.0711669921875,
0.05682373046875,
-0.025543212890625,
-0.00830841064453125,
0.03570556640625,
-0.019256591796875,
0.0218048095703125,
0.0041351318359375,
-0.00734710693359375,
-0.012969970703125,
-0.01111602783203125,
0.028228759765625,
0.002880096435546875,
-0.00669097900390625,
-0.032196044921875,
-0.03179931640625,
0.00672149658203125,
0.0110321044921875,
0.060272216796875,
0.0260772705078125,
0.0030689239501953125,
0.0367431640625,
0.024871826171875,
0.014312744140625,
-0.0372314453125,
-0.0643310546875,
-0.039306640625,
-0.008544921875,
0.00848388671875,
-0.00763702392578125,
0.03118896484375,
-0.00888824462890625,
0.06842041015625,
-0.0120697021484375,
-0.04119873046875,
-0.01898193359375,
-0.0215606689453125,
0.00980377197265625,
0.016082763671875,
-0.00879669189453125,
0.0124053955078125,
0.046966552734375,
-0.01491546630859375,
0.015716552734375,
0.0265960693359375,
0.0219268798828125,
-0.0265960693359375,
0.01568603515625,
0.0024089813232421875,
-0.00351715087890625,
-0.01953125,
0.06915283203125,
-0.0275726318359375,
0.0306549072265625,
-0.005054473876953125,
-0.0170440673828125,
-0.0484619140625,
0.057830810546875,
0.039703369140625,
-0.05657958984375,
0.0236358642578125,
-0.0005202293395996094,
0.005138397216796875,
-0.019744873046875,
-0.03271484375,
0.0120697021484375,
0.0228271484375,
0.0225067138671875,
0.0216064453125,
-0.00959014892578125,
-0.004726409912109375,
-0.026458740234375,
0.0250701904296875,
-0.0294342041015625,
-0.07757568359375,
0.0017366409301757812,
0.01010894775390625,
-0.007122039794921875,
-0.0294342041015625,
-0.006778717041015625,
0.030609130859375,
-0.02178955078125,
0.0255126953125,
-0.025238037109375,
-0.001552581787109375,
-0.007480621337890625,
-0.007663726806640625,
-0.0201873779296875,
-0.00946044921875,
0.001678466796875,
-0.04248046875,
-0.055206298828125,
0.0092620849609375,
-0.0055694580078125,
0.0108642578125,
-0.0179290771484375,
0.007293701171875,
-0.0122222900390625,
0.01052093505859375,
0.0169525146484375,
0.022003173828125,
0.0285797119140625,
-0.01180267333984375,
-0.043487548828125,
0.0065155029296875,
-0.041717529296875,
-0.018218994140625,
0.001964569091796875,
-0.0157012939453125,
-0.039459228515625,
-0.0203094482421875,
0.0272369384765625,
0.04058837890625,
-0.022552490234375,
-0.056060791015625,
-0.01258087158203125,
-0.0130157470703125,
0.0199432373046875,
0.059906005859375,
-0.0025005340576171875,
0.053924560546875,
-0.02337646484375,
0.07574462890625,
0.008270263671875,
0.03289794921875,
-0.00667572021484375,
-0.043243408203125,
0.01329803466796875,
-0.0187835693359375,
-0.042083740234375,
-0.003002166748046875,
0.006015777587890625,
0.0180206298828125,
0.0231475830078125,
-0.00907135009765625,
-0.00559234619140625,
-0.0267791748046875,
-0.005321502685546875,
-0.0264129638671875,
0.058685302734375,
-0.019439697265625,
-0.004055023193359375,
-0.003353118896484375,
-0.04168701171875,
-0.0085601806640625,
0.0010557174682617188,
-0.0207061767578125,
0.06573486328125,
-0.013702392578125,
0.035919189453125,
0.0253753662109375,
-0.0587158203125,
0.061981201171875,
0.027374267578125,
-0.0056304931640625,
0.03814697265625,
-0.0149383544921875,
0.008148193359375,
-0.0001074671745300293,
0.01122283935546875,
-0.04010009765625,
-0.005115509033203125,
0.03582763671875,
0.01192474365234375,
-0.0037441253662109375,
0.040069580078125,
-0.005092620849609375,
0.01534271240234375,
0.027618408203125,
0.052398681640625,
-0.061676025390625,
0.0181121826171875,
0.004108428955078125,
0.0058135986328125,
0.0408935546875,
0.003574371337890625,
0.0014905929565429688,
-0.0143585205078125,
0.014617919921875,
0.0196990966796875,
-0.0006642341613769531,
0.034393310546875,
0.0162506103515625,
-0.0160064697265625,
-0.01934814453125,
-0.005489349365234375,
-0.00862884521484375,
-0.00556182861328125,
0.01117706298828125,
-0.01357269287109375,
0.01508331298828125,
0.00469970703125,
-0.01285552978515625,
-0.012786865234375,
-0.037353515625,
-0.03704833984375,
-0.033203125,
-0.04315185546875,
0.0019931793212890625,
0.0487060546875,
0.020172119140625,
0.029449462890625,
0.04827880859375,
-0.0017309188842773438,
0.002811431884765625,
0.0011463165283203125,
0.0028820037841796875,
0.0010004043579101562,
-0.04803466796875,
0.0020961761474609375,
0.00702667236328125,
-0.035675048828125,
0.020751953125,
0.003631591796875,
-0.039276123046875,
-0.0137481689453125,
0.0347900390625,
0.06390380859375,
0.012664794921875,
-0.0474853515625,
0.0295867919921875,
0.038970947265625,
-0.0203094482421875,
0.0243988037109375,
-0.006443023681640625,
-0.010589599609375,
0.032440185546875,
0.005126953125,
-0.0011816024780273438,
0.0021305084228515625,
0.02667236328125,
-0.060943603515625,
0.056488037109375,
0.025299072265625,
0.003330230712890625,
-0.00989532470703125,
0.023284912109375,
-0.04132080078125,
-0.0118865966796875,
0.0057220458984375,
0.0202178955078125,
0.0050048828125,
0.006683349609375,
-0.0290069580078125,
-0.01345062255859375,
-0.0094451904296875,
0.074462890625,
0.020355224609375,
0.01071929931640625,
-0.00165557861328125,
-0.01116943359375,
0.005706787109375,
0.041900634765625,
-0.0134735107421875,
0.01348114013671875,
-0.0026683807373046875,
0.051788330078125,
0.0061798095703125,
-0.02911376953125,
0.0203094482421875,
-0.0215606689453125,
-0.059295654296875,
0.025390625,
0.0187530517578125,
0.026824951171875,
0.01079559326171875,
0.0220489501953125,
0.0255126953125,
-0.01253509521484375,
0.0015745162963867188,
-0.054840087890625,
-0.03533935546875,
0.0273895263671875,
0.006542205810546875,
-0.02044677734375,
-0.0190277099609375,
-0.022552490234375,
0.03167724609375,
0.020843505859375,
0.033935546875,
0.01641845703125,
0.0251922607421875,
-0.00301361083984375,
-0.032440185546875,
0.020538330078125,
0.01513671875,
-0.04473876953125,
0.012359619140625,
-0.0099639892578125,
-0.01320648193359375,
-0.029205322265625,
0.04595947265625,
0.041015625,
0.0115509033203125,
-0.04638671875,
-0.07196044921875,
0.005886077880859375,
-0.01413726806640625,
0.0077667236328125,
0.005245208740234375,
-0.02569580078125,
0.010833740234375,
0.04736328125,
-0.028900146484375,
0.005344390869140625,
-0.0167083740234375,
0.03662109375,
-0.031280517578125,
-0.0037822723388671875,
-0.0256805419921875,
-0.01450347900390625,
-0.066650390625,
0.0112152099609375,
0.0224456787109375,
0.066162109375,
0.05145263671875,
0.035186767578125,
0.036376953125,
-0.031280517578125,
-0.0266876220703125,
0.033477783203125,
-0.0288543701171875,
0.0523681640625,
-0.07080078125,
-0.045166015625,
0.0059814453125,
0.05914306640625,
0.01450347900390625,
0.049468994140625,
0.041229248046875,
0.005718231201171875,
-0.0110626220703125,
0.00234222412109375,
-0.0191497802734375,
-0.03472900390625,
-0.026092529296875,
-0.041229248046875,
0.04046630859375,
0.052093505859375,
0.037689208984375,
-0.01488494873046875,
-0.017852783203125,
0.07769775390625,
-0.01229095458984375,
0.019378662109375,
0.008636474609375,
-0.03546142578125,
0.0087432861328125,
-0.01129150390625,
0.04443359375,
0.0115814208984375,
-0.004436492919921875,
0.0017347335815429688,
-0.021759033203125,
-0.014556884765625,
-0.007434844970703125,
0.0170745849609375,
0.001987457275390625,
0.0265350341796875,
0.0361328125,
-0.0008020401000976562,
-0.01358795166015625,
-0.007045745849609375,
0.0328369140625,
0.00482177734375,
0.0028018951416015625,
0.0297088623046875,
-0.06524658203125,
-0.0430908203125,
0.016082763671875,
0.029327392578125,
-0.0201568603515625,
0.052001953125,
0.0036144256591796875,
0.0016031265258789062,
-0.01241302490234375,
0.0188751220703125,
-0.02191162109375,
-0.0035228729248046875,
0.027984619140625,
0.01300811767578125,
-0.00688934326171875,
-0.0225067138671875,
-0.040557861328125,
0.0299835205078125,
0.0299072265625,
-0.01335906982421875,
0.029998779296875,
0.0200042724609375,
0.0018873214721679688,
-0.034088134765625,
-0.04443359375,
-0.0435791015625,
-0.0247039794921875,
-0.0367431640625,
-0.0177154541015625,
0.02093505859375,
-0.0208587646484375,
-0.0206451416015625,
-0.0178985595703125,
0.041717529296875,
-0.0321044921875,
0.0308074951171875,
0.007434844970703125,
0.0693359375,
0.054046630859375,
0.0172271728515625,
0.0034275054931640625,
-0.01202392578125,
-0.01560211181640625,
0.033721923828125,
-0.0012359619140625,
0.0006856918334960938,
0.020843505859375,
-0.026519775390625,
0.0192413330078125,
0.015594482421875,
0.0080718994140625,
-0.03607177734375,
-0.02545166015625,
0.055145263671875,
-0.0152740478515625,
-0.016937255859375,
-0.023590087890625,
-0.00632476806640625,
-0.036407470703125,
-0.018646240234375,
0.0367431640625,
-0.0185546875,
-0.00022113323211669922,
-0.0411376953125,
0.0126495361328125,
0.03192138671875,
0.0265655517578125,
-0.0648193359375,
0.050872802734375,
-0.009765625,
0.01332855224609375,
0.0164947509765625,
-0.00846099853515625,
0.024566650390625,
0.10406494140625,
0.0198516845703125,
0.03436279296875,
0.01239013671875,
-0.024169921875,
0.0279693603515625,
0.00717926025390625,
-0.00087738037109375,
-0.015289306640625,
-0.0031108856201171875,
0.0006837844848632812,
0.013092041015625,
0.032012939453125,
0.06793212890625,
-0.0153961181640625,
-0.0124969482421875,
0.0237274169921875,
-0.0305938720703125,
-0.010284423828125,
0.0289306640625,
0.00699615478515625,
-0.039337158203125,
-0.08013916015625,
0.038787841796875,
0.029632568359375,
-0.033721923828125,
-0.07861328125,
-0.0247802734375,
-0.0170745849609375,
-0.03729248046875,
-0.049346923828125,
-0.007579803466796875,
0.00423431396484375,
0.076904296875,
-0.0023822784423828125,
-0.012603759765625,
-0.0355224609375,
0.010986328125,
0.022918701171875,
0.02001953125,
0.031280517578125,
0.007572174072265625,
-0.056060791015625,
-0.0004436969757080078,
-0.0279541015625,
0.016143798828125,
0.004058837890625,
0.0004756450653076172,
-0.0003478527069091797,
0.00389862060546875,
-0.0631103515625,
-0.03448486328125,
-0.004673004150390625,
0.05267333984375,
0.0186004638671875,
-0.0538330078125,
-0.0006060600280761719,
-0.0435791015625,
0.0151824951171875,
-0.0224761962890625,
-0.00658416748046875,
0.00910186767578125,
0.00310516357421875,
-0.022308349609375,
-0.016326904296875,
-0.04791259765625,
0.004825592041015625,
-0.0679931640625,
-0.034210205078125,
-0.0027637481689453125,
-0.01433563232421875,
0.0253753662109375,
0.021453857421875,
-0.0186309814453125,
0.01146697998046875,
0.04400634765625,
-0.013275146484375,
-0.0809326171875,
-0.0107879638671875,
0.054840087890625,
-0.038482666015625,
-0.01324462890625,
0.017608642578125,
0.00984954833984375,
0.0138397216796875,
0.022705078125,
0.001766204833984375,
-0.062408447265625,
-0.0078125,
0.0355224609375,
-0.022491455078125,
0.051025390625,
-0.036956787109375,
-0.054046630859375,
0.0018720626831054688,
0.0263824462890625,
-0.02740478515625,
0.0217132568359375,
0.014801025390625,
0.03173828125,
-0.006298065185546875,
0.054931640625,
-0.0318603515625,
-0.0024814605712890625,
-0.039093017578125,
0.0235137939453125,
0.032257080078125,
0.00933837890625,
0.076171875,
0.00959014892578125,
0.007038116455078125,
-0.0240936279296875,
-0.00830078125,
-0.0248260498046875,
-0.0204620361328125,
0.0302276611328125,
-0.010650634765625,
0.00977325439453125
] |
cfc9d442580f630e13f69fa8a91d719c84faba74 | Wordpress Stackexchange
Q: Why do I need to use The Loop on pages (inside page.php etc)? This question is addition to the following question.
The answers to the linked question say that you have to write THE LOOP inside each php template file, but what is still open is WHY? why is it necessary to write is as part of page.php if this page is not supposed to display any post at all?
another question why when I perform have_posts() inside page.php the return value is 'true'? shouldn't it contain no posts at all in this page?
A: The wording is (for historical reasons) a bit confusing. Actually Post can mean two things in WordPress:
*
*The literal Post as in Blog-Post
*A general term encompassing other default Post Types (like e.g. Pages) or Custom Post Types.
So there is the Post Type "post" just like there is the Post Type "page".
Here is a link to the Codex which elaborates on that a bit more: https://codex.wordpress.org/Post_Types
| Q: Why do I need to use The Loop on pages (inside page.php etc)? This question is addition to the following question.
The answers to the linked question say that you have to write THE LOOP inside each php template file, but what is still open is WHY? why is it necessary to write is as part of page.php if this page is not supposed to display any post at all?
another question why when I perform have_posts() inside page.php the return value is 'true'? shouldn't it contain no posts at all in this page?
A: The wording is (for historical reasons) a bit confusing. Actually Post can mean two things in WordPress:
*
*The literal Post as in Blog-Post
*A general term encompassing other default Post Types (like e.g. Pages) or Custom Post Types.
So there is the Post Type "post" just like there is the Post Type "page".
Here is a link to the Codex which elaborates on that a bit more: https://codex.wordpress.org/Post_Types
| wordpress | {
"language": "en",
"length": 165,
"provenance": "stackexchange_00019.jsonl.gz:490280",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/318085"
} | [
0.020538330078125,
-0.0017404556274414062,
0.004695892333984375,
0.03033447265625,
-0.0080108642578125,
-0.0289306640625,
0.0640869140625,
-0.04150390625,
0.041473388671875,
-0.01678466796875,
-0.038848876953125,
-0.0002944469451904297,
-0.05413818359375,
-0.0161590576171875,
-0.004795074462890625,
-0.052490234375,
0.0391845703125,
-0.0276031494140625,
0.0347900390625,
-0.00968170166015625,
0.0212554931640625,
0.0217132568359375,
0.050567626953125,
0.035247802734375,
0.0270538330078125,
-0.05072021484375,
0.01523590087890625,
-0.01473236083984375,
-0.01495361328125,
-0.03411865234375,
0.00927734375,
0.05731201171875,
0.0198211669921875,
0.0310516357421875,
-0.0399169921875,
-0.00970458984375,
-0.0379638671875,
0.0024890899658203125,
0.006317138671875,
0.008880615234375,
-0.026031494140625,
0.0260009765625,
0.0546875,
-0.01322174072265625,
-0.01284027099609375,
-0.00447845458984375,
-0.00969696044921875,
-0.006011962890625,
0.0111083984375,
-0.01094818115234375,
0.003139495849609375,
-0.00739288330078125,
0.01406097412109375,
0.021484375,
-0.01001739501953125,
0.00757598876953125,
0.024444580078125,
-0.044708251953125,
0.042205810546875,
-0.045928955078125,
-0.0433349609375,
-0.032623291015625,
0.05078125,
-0.00222015380859375,
-0.00385284423828125,
-0.006069183349609375,
-0.018585205078125,
0.012481689453125,
-0.044647216796875,
-0.0006780624389648438,
0.033935546875,
-0.04150390625,
-0.022857666015625,
-0.02716064453125,
-0.00754547119140625,
0.01200103759765625,
0.0031299591064453125,
-0.01959228515625,
-0.018951416015625,
0.0297088623046875,
-0.041107177734375,
0.010223388671875,
-0.03924560546875,
-0.0163116455078125,
-0.023101806640625,
-0.01136016845703125,
-0.04266357421875,
0.0164031982421875,
-0.0311126708984375,
-0.040130615234375,
-0.0303497314453125,
0.00753021240234375,
-0.0055084228515625,
-0.0447998046875,
-0.040924072265625,
-0.0296630859375,
0.01019287109375,
0.055633544921875,
-0.015045166015625,
0.0285797119140625,
-0.021026611328125,
-0.0369873046875,
0.025115966796875,
-0.04498291015625,
0.0408935546875,
0.05035400390625,
-0.06329345703125,
-0.0067901611328125,
0.0853271484375,
0.031463623046875,
0.042083740234375,
0.060089111328125,
-0.02606201171875,
-0.0504150390625,
-0.01059722900390625,
0.007297515869140625,
-0.0506591796875,
0.01739501953125,
0.0298919677734375,
-0.0014400482177734375,
0.021820068359375,
0.055084228515625,
-0.01531982421875,
-0.0190582275390625,
-0.0172271728515625,
-0.0011539459228515625,
-0.005199432373046875,
-0.051239013671875,
0.046600341796875,
0.050048828125,
-0.033782958984375,
-0.0273284912109375,
0.03662109375,
0.0115966796875,
-0.0079803466796875,
-0.0382080078125,
-0.0298614501953125,
-0.018096923828125,
-0.01348114013671875,
0.02777099609375,
-0.032073974609375,
-0.06597900390625,
0.0160064697265625,
-0.012603759765625,
0.00904083251953125,
0.0207366943359375,
0.0168609619140625,
0.02398681640625,
0.01428985595703125,
-0.04608154296875,
0.02105712890625,
-0.007503509521484375,
-0.01495361328125,
0.02728271484375,
0.038787841796875,
-0.0279693603515625,
-0.0007300376892089844,
-0.01470947265625,
0.046783447265625,
0.0020732879638671875,
-0.0042877197265625,
-0.00974273681640625,
0.0214691162109375,
-0.01910400390625,
-0.0423583984375,
0.0262451171875,
-0.034912109375,
-0.01258087158203125,
0.0193023681640625,
0.005199432373046875,
0.0211181640625,
-0.02227783203125,
-0.0018777847290039062,
0.038482666015625,
0.0242767333984375,
0.038787841796875,
-0.00565338134765625,
-0.0169525146484375,
0.037689208984375,
0.0244598388671875,
-0.024169921875,
-0.0316162109375,
0.0125885009765625,
-0.018341064453125,
-0.092529296875,
0.0247650146484375,
0.0268707275390625,
0.06793212890625,
-0.004398345947265625,
0.0291595458984375,
0.07275390625,
0.012725830078125,
-0.03350830078125,
0.05145263671875,
-0.0027446746826171875,
-0.0251617431640625,
-0.01299285888671875,
0.0095977783203125,
-0.0059051513671875,
-0.050933837890625,
-0.0085601806640625,
-0.01251220703125,
0.004955291748046875,
0.0000731348991394043,
-0.03094482421875,
0.0013484954833984375,
-0.02655029296875,
0.036651611328125,
0.0071868896484375,
0.001056671142578125,
0.01361083984375,
-0.0007963180541992188,
-0.02435302734375,
-0.0125274658203125,
-0.039520263671875,
0.00457763671875,
-0.0214996337890625,
-0.0012884140014648438,
-0.00693511962890625,
-0.004367828369140625,
0.002384185791015625,
-0.0089263916015625,
-0.0011644363403320312,
0.0253143310546875,
0.08477783203125,
-0.007526397705078125,
-0.014129638671875,
-0.0372314453125,
-0.007503509521484375,
0.0245513916015625,
-0.1064453125,
0.041839599609375,
0.0264739990234375,
0.0345458984375,
-0.044281005859375,
-0.007656097412109375,
-0.044403076171875,
-0.024749755859375,
-0.01282501220703125,
0.053070068359375,
0.0273895263671875,
0.037994384765625,
-0.0244903564453125,
0.004108428955078125,
0.010528564453125,
-0.03497314453125,
0.0031528472900390625,
-0.00901031494140625,
0.01030731201171875,
0.035308837890625,
0.023040771484375,
0.0092926025390625,
0.006374359130859375,
-0.051239013671875,
0.0262603759765625,
0.0212554931640625,
-0.0019197463989257812,
0.02587890625,
-0.0303955078125,
-0.00980377197265625,
0.010223388671875,
0.007476806640625,
-0.0030193328857421875,
-0.0135040283203125,
0.040252685546875,
0.002506256103515625,
0.041168212890625,
0.0093841552734375,
-0.0232391357421875,
0.00980377197265625,
0.00939178466796875,
-0.02374267578125,
0.0031223297119140625,
-0.017364501953125,
-0.0146636962890625,
-0.0027942657470703125,
-0.0118865966796875,
0.001049041748046875,
-0.00739288330078125,
-0.0247039794921875,
-0.0289764404296875,
-0.0167999267578125,
-0.0243377685546875,
-0.01064300537109375,
0.0231781005859375,
-0.054229736328125,
0.012847900390625,
0.01190185546875,
0.037445068359375,
-0.003925323486328125,
0.0017070770263671875,
0.0273590087890625,
-0.03167724609375,
0.0562744140625,
0.003932952880859375,
-0.0394287109375,
0.03656005859375,
-0.0360107421875,
0.036224365234375,
-0.0230865478515625,
0.036956787109375,
0.0543212890625,
-0.0174102783203125,
0.016876220703125,
0.0027103424072265625,
0.009796142578125,
0.024749755859375,
0.02618408203125,
0.01381683349609375,
-0.01495361328125,
-0.01081085205078125,
-0.004550933837890625,
0.035552978515625,
0.0802001953125,
0.01302337646484375,
-0.0253448486328125,
-0.005199432373046875,
0.060302734375,
-0.059844970703125,
-0.07501220703125,
0.055633544921875,
-0.064208984375,
-0.028900146484375,
-0.048980712890625,
-0.03936767578125,
-0.0090484619140625,
-0.0391845703125,
-0.003833770751953125,
0.0017709732055664062,
-0.007511138916015625,
-0.06097412109375,
-0.0789794921875,
-0.08447265625,
-0.04376220703125,
-0.0103912353515625,
0.00946044921875,
0.004924774169921875,
0.0718994140625,
0.00951385498046875,
-0.0706787109375,
-0.023284912109375,
0.0288848876953125,
-0.029876708984375,
-0.006679534912109375,
-0.033935546875,
-0.0021610260009765625,
-0.0006494522094726562,
0.004169464111328125,
-0.051116943359375,
-0.02239990234375,
0.03155517578125,
-0.0229644775390625,
-0.030914306640625,
0.01340484619140625,
0.01812744140625,
-0.0010347366333007812,
0.0287628173828125,
0.0158538818359375,
0.01021575927734375,
-0.0298919677734375,
-0.04058837890625,
-0.0194091796875,
-0.05364990234375,
-0.029205322265625,
0.01555633544921875,
0.0157012939453125,
-0.033538818359375,
0.0225677490234375,
-0.013031005859375,
-0.0167694091796875,
-0.01464080810546875,
-0.0283966064453125,
0.07354736328125,
0.0026378631591796875,
0.0221099853515625,
-0.009063720703125,
0.036102294921875,
-0.009796142578125,
-0.004047393798828125,
0.0007872581481933594,
-0.01009368896484375,
-0.030517578125,
-0.0005459785461425781,
-0.0258331298828125,
-0.0784912109375,
0.03350830078125,
-0.00849151611328125,
0.0031337738037109375,
-0.0311126708984375,
-0.0131072998046875,
0.01861572265625,
0.08270263671875,
-0.01898193359375,
-0.004222869873046875,
-0.0450439453125,
-0.0131683349609375,
0.01554107666015625,
-0.03802490234375,
0.0037555694580078125,
-0.00815582275390625,
-0.0390625,
0.01294708251953125,
-0.02178955078125,
0.02764892578125,
-0.0287322998046875,
0.04833984375,
-0.00954437255859375,
-0.0237274169921875,
0.018768310546875,
-0.03582763671875,
0.01309967041015625,
-0.022705078125,
-0.00916290283203125,
-0.018585205078125,
0.00396728515625,
-0.048675537109375,
-0.05535888671875,
-0.0136260986328125,
0.0201416015625,
0.04168701171875,
-0.006397247314453125,
0.0019550323486328125,
0.0058441162109375,
0.0477294921875,
0.0245208740234375,
0.00836181640625,
0.0011968612670898438,
-0.0225677490234375,
0.00522613525390625,
0.01361083984375,
0.01184844970703125,
-0.00009459257125854492,
-0.007724761962890625,
-0.01018524169921875,
0.000888824462890625,
0.00749969482421875,
-0.022857666015625,
-0.0017337799072265625,
-0.0003895759582519531,
0.007781982421875,
-0.0150604248046875,
0.0013113021850585938,
0.034027099609375,
0.04290771484375,
0.01165771484375,
-0.005298614501953125,
-0.02386474609375,
-0.006572723388671875,
0.01220703125,
0.02587890625,
-0.036163330078125,
0.0309906005859375,
0.061370849609375,
0.017608642578125,
-0.0185394287109375,
-0.09686279296875,
-0.00034689903259277344,
0.0262451171875,
-0.0007767677307128906,
0.07623291015625,
0.0419921875,
-0.0021762847900390625,
0.0399169921875,
0.0116424560546875,
0.0137786865234375,
-0.0316162109375,
0.0270843505859375,
-0.012359619140625,
-0.0232696533203125,
0.0278472900390625,
-0.014923095703125,
0.048431396484375,
0.046783447265625,
-0.0132598876953125,
-0.0109710693359375,
0.0161285400390625,
0.030548095703125,
-0.0214385986328125,
0.00021922588348388672,
-0.0267486572265625,
-0.004688262939453125,
-0.00431060791015625,
-0.0093231201171875,
0.039337158203125,
0.032958984375,
0.0184173583984375,
0.002109527587890625,
0.00609588623046875,
0.0266876220703125,
0.0390625,
0.023956298828125,
-0.002567291259765625,
0.05047607421875,
0.0086669921875,
0.00954437255859375,
0.002628326416015625,
-0.007228851318359375,
0.0287628173828125,
-0.0173492431640625,
-0.04986572265625,
-0.038543701171875,
-0.011260986328125,
0.0140838623046875,
0.0280914306640625,
0.05816650390625,
0.041534423828125,
-0.016998291015625,
-0.003326416015625,
-0.017852783203125,
0.0222015380859375,
-0.004238128662109375,
-0.0321044921875,
-0.0125885009765625,
0.0263824462890625,
-0.0201263427734375,
0.0033245086669921875,
0.0499267578125,
-0.017608642578125,
0.036407470703125,
-0.016387939453125,
0.058441162109375,
0.050018310546875,
0.02655029296875,
0.005741119384765625,
0.0105438232421875,
-0.0113067626953125,
-0.00528717041015625,
-0.0249176025390625,
-0.061065673828125,
0.008636474609375,
0.0207061767578125,
0.054534912109375,
-0.035308837890625,
-0.055999755859375,
0.0474853515625,
-0.017669677734375,
-0.0020351409912109375,
0.043212890625,
0.01751708984375,
-0.0169525146484375,
-0.03118896484375,
-0.0012950897216796875,
0.04443359375,
-0.0024242401123046875,
-0.0014371871948242188,
-0.00711822509765625,
-0.01690673828125,
-0.00177001953125,
-0.0408935546875,
-0.02850341796875,
-0.00284576416015625,
0.00638580322265625,
-0.032745361328125,
-0.021453857421875,
-0.0088348388671875,
-0.02447509765625,
-0.0122528076171875,
-0.01094818115234375,
-0.0220489501953125,
0.0152130126953125,
-0.003475189208984375,
0.04534912109375,
-0.00012886524200439453,
-0.06341552734375,
0.0033054351806640625,
0.001804351806640625,
0.04864501953125,
0.020660400390625,
-0.0850830078125,
0.024993896484375,
-0.06671142578125,
0.0133819580078125,
-0.0300750732421875,
-0.069580078125,
-0.0509033203125,
-0.03173828125,
-0.005218505859375,
0.0191192626953125,
0.006313323974609375,
0.009429931640625,
-0.05316162109375,
0.023834228515625,
0.01351165771484375,
0.071533203125,
-0.019378662109375,
0.046783447265625,
-0.009368896484375,
0.00725555419921875,
-0.00121307373046875,
0.0262908935546875,
0.00650787353515625,
0.0010395050048828125,
0.023040771484375,
-0.041717529296875,
-0.034210205078125,
-0.029327392578125,
-0.01380157470703125,
0.018035888671875,
0.0105133056640625,
0.002719879150390625,
-0.0163726806640625,
-0.011474609375,
-0.0013647079467773438,
-0.0120697021484375,
0.050567626953125,
0.00745391845703125,
-0.0113372802734375,
0.02606201171875,
0.022064208984375,
-0.01373291015625,
-0.01329803466796875,
-0.0300750732421875,
-0.0005307197570800781,
0.04058837890625,
0.0034618377685546875,
-0.03558349609375,
-0.0216064453125,
0.04791259765625,
0.07061767578125,
-0.0185394287109375,
0.0457763671875,
0.043182373046875,
0.00872802734375,
0.022064208984375,
0.04193115234375,
-0.0150146484375,
-0.037872314453125,
0.09893798828125,
0.020538330078125,
-0.039337158203125,
0.07904052734375,
-0.051513671875,
0.01446533203125,
0.06768798828125,
0.07061767578125,
-0.07781982421875,
0.0111236572265625,
0.035308837890625,
0.00385284423828125,
0.01474761962890625,
-0.017181396484375,
0.002262115478515625,
-0.03338623046875,
0.078369140625,
0.006542205810546875,
-0.005218505859375,
0.0214691162109375,
-0.0219268798828125,
0.023284912109375,
-0.0328369140625,
0.08526611328125,
0.016815185546875,
-0.0465087890625,
0.0033702850341796875,
0.038421630859375,
0.01800537109375,
-0.01531982421875,
0.012847900390625,
-0.0269622802734375,
-0.031646728515625,
-0.0244598388671875,
-0.00431060791015625,
-0.0285491943359375,
0.013671875,
0.0306396484375,
0.0240478515625,
-0.00791168212890625,
0.0462646484375,
-0.0192413330078125,
0.034698486328125,
0.0186614990234375,
-0.01788330078125,
-0.09454345703125,
-0.0098876953125,
0.0257568359375,
0.040008544921875,
-0.04229736328125,
0.036529541015625,
-0.03472900390625,
-0.01873779296875,
-0.020904541015625,
-0.0133819580078125,
0.09002685546875,
-0.029815673828125,
-0.0264129638671875,
-0.0007319450378417969,
0.002063751220703125,
-0.00302886962890625,
-0.0171966552734375,
0.016693115234375,
-0.032501220703125,
0.02142333984375,
-0.006641387939453125,
0.00475311279296875,
-0.0135040283203125,
-0.039581298828125,
-0.050628662109375,
0.1038818359375,
-0.03338623046875,
0.0240020751953125,
0.032012939453125,
0.043792724609375,
-0.00795745849609375,
0.037628173828125,
-0.013824462890625,
0.033599853515625,
0.022979736328125,
0.0408935546875,
-0.054595947265625,
-0.032135009765625,
0.00412750244140625,
0.082763671875,
0.047332763671875,
-0.0007462501525878906,
0.0035152435302734375,
-0.0013370513916015625,
0.0693359375,
0.08270263671875,
0.0263214111328125,
-0.01364898681640625,
-0.0022068023681640625,
0.05377197265625,
0.041717529296875,
-0.046905517578125,
0.0158233642578125,
0.016265869140625,
-0.007537841796875,
0.033111572265625,
0.01312255859375,
-0.0073699951171875,
-0.01136016845703125,
0.0008349418640136719,
-0.040252685546875,
-0.0124053955078125,
0.013916015625,
0.029144287109375,
-0.0294189453125,
0.048583984375,
0.00861358642578125,
-0.04229736328125,
-0.0467529296875,
-0.032470703125,
0.03240966796875,
0.00138092041015625,
0.02716064453125,
0.037628173828125,
0.018096923828125,
0.06866455078125,
-0.01056671142578125,
0.0165863037109375,
0.0214996337890625,
-0.01047515869140625,
0.01513671875,
0.0201568603515625,
0.020843505859375,
-0.0245513916015625,
0.0222320556640625,
0.01279449462890625,
0.019287109375,
-0.0260772705078125,
-0.039154052734375,
0.003108978271484375,
-0.011077880859375,
-0.0021266937255859375,
-0.01497650146484375,
0.0010528564453125,
0.04229736328125,
0.044830322265625,
-0.005786895751953125,
-0.0191802978515625,
-0.00890350341796875,
0.0026702880859375,
-0.0156402587890625,
-0.0134429931640625,
0.01068115234375,
0.0004520416259765625,
-0.0262908935546875,
0.016815185546875,
-0.0118408203125,
0.0357666015625,
0.01467132568359375,
0.0290374755859375,
-0.0218658447265625,
-0.01165008544921875,
0.0108489990234375,
0.0196075439453125,
-0.0078887939453125,
0.01142120361328125,
-0.0276031494140625,
-0.032470703125,
0.02764892578125,
0.0185546875,
0.045501708984375,
0.00445556640625,
0.01898193359375,
-0.009796142578125,
-0.02252197265625,
0.006465911865234375,
-0.009552001953125,
-0.0242767333984375,
-0.038818359375,
-0.01849365234375,
-0.029632568359375,
0.01427459716796875,
-0.0187225341796875,
0.03759765625,
0.036102294921875,
0.0011138916015625,
-0.0207977294921875,
0.0252838134765625,
-0.01149749755859375,
-0.043212890625,
0.06280517578125,
0.01520538330078125,
0.1273193359375,
0.0284423828125,
-0.0282440185546875,
0.0009241104125976562,
-0.00749969482421875,
-0.07757568359375,
0.0099945068359375,
0.052978515625,
-0.02801513671875,
-0.0009698867797851562,
0.0290069580078125,
-0.005901336669921875,
0.0318603515625,
0.0018472671508789062,
0.0027446746826171875,
0.0193023681640625,
0.03240966796875,
0.01316070556640625,
-0.057769775390625,
-0.03704833984375,
-0.05023193359375,
0.033477783203125,
0.0268096923828125,
0.070556640625,
0.0023136138916015625,
0.0312347412109375,
-0.013427734375,
0.0028667449951171875,
-0.00806427001953125,
-0.0167388916015625,
0.0181121826171875,
0.0256805419921875,
0.0178680419921875,
-0.011932373046875,
-0.034423828125,
0.0172119140625,
0.04193115234375,
-0.037322998046875,
-0.011444091796875,
0.00025844573974609375,
0.007541656494140625,
-0.00206756591796875,
0.033447265625,
-0.003986358642578125,
-0.0135955810546875,
0.0088348388671875,
0.0197601318359375,
0.030059814453125,
0.04168701171875,
-0.014678955078125,
0.0109405517578125,
-0.0276031494140625,
-0.057281494140625,
0.0241546630859375,
-0.050537109375,
-0.006343841552734375,
0.0170135498046875,
0.03314208984375,
0.0002741813659667969,
-0.0031337738037109375,
-0.035491943359375,
0.00684356689453125,
0.008758544921875,
0.0212860107421875,
-0.007076263427734375,
0.02105712890625,
-0.0183563232421875,
0.006229400634765625,
0.0281524658203125,
-0.0052337646484375,
-0.00461578369140625,
-0.0152130126953125,
-0.0200958251953125,
-0.0005822181701660156,
-0.00408172607421875,
-0.00804901123046875,
-0.0262603759765625,
-0.0192718505859375,
0.00323486328125,
-0.03887939453125,
-0.0247344970703125,
-0.0675048828125,
0.0019779205322265625,
0.0028514862060546875,
-0.00478363037109375,
-0.018951416015625,
-0.01453399658203125,
-0.0215301513671875,
0.020965576171875,
-0.039764404296875,
0.0279388427734375,
0.004261016845703125,
0.03253173828125,
-0.0287628173828125,
0.039764404296875,
-0.0180511474609375,
-0.0248565673828125,
0.0313720703125,
0.00933074951171875,
0.0091552734375,
-0.0521240234375,
-0.004131317138671875,
0.0211639404296875,
0.048095703125,
0.0516357421875,
0.069091796875,
-0.0084686279296875,
0.032623291015625,
-0.001674652099609375,
-0.020751953125,
-0.04302978515625,
0.020172119140625,
-0.061737060546875,
0.009918212890625,
-0.01267242431640625,
0.01702880859375,
0.037200927734375,
-0.03179931640625,
-0.07568359375,
0.0396728515625,
-0.0247039794921875,
-0.031768798828125,
-0.052520751953125,
-0.0201568603515625,
-0.01024627685546875,
-0.00038313865661621094,
-0.0129241943359375,
-0.0253143310546875,
-0.028594970703125,
0.046051025390625,
0.02899169921875,
-0.029937744140625,
0.04803466796875,
0.005290985107421875,
-0.054779052734375,
0.003704071044921875,
-0.01004791259765625,
0.007144927978515625,
0.0191192626953125,
-0.00021195411682128906,
0.0164794921875,
0.05560302734375,
-0.040771484375,
0.0008120536804199219,
-0.038238525390625,
-0.0007348060607910156,
0.007099151611328125,
0.0240936279296875,
-0.026123046875,
-0.012359619140625,
0.07086181640625,
0.0268402099609375,
0.036376953125,
-0.010162353515625,
-0.007659912109375,
-0.043792724609375,
-0.039276123046875,
0.0183563232421875,
0.0215911865234375,
-0.041534423828125,
0.030059814453125,
0.0212249755859375,
-0.003688812255859375,
-0.00530242919921875,
-0.0309295654296875,
-0.03875732421875,
-0.0242462158203125,
-0.0614013671875,
-0.004421234130859375,
-0.016265869140625,
-0.0047607421875,
-0.017608642578125,
0.004779815673828125,
0.021392822265625,
-0.028564453125,
0.0187530517578125,
-0.0012331008911132812,
0.0278167724609375,
0.0186614990234375,
0.0223388671875,
-0.0504150390625,
-0.00901031494140625,
0.006496429443359375,
0.040802001953125,
-0.03076171875,
-0.01849365234375,
-0.0135955810546875,
0.0188140869140625,
-0.005580902099609375,
0.015533447265625,
0.004047393798828125,
0.04925537109375,
0.0225372314453125,
0.0401611328125,
0.0188751220703125,
0.0689697265625,
-0.02069091796875,
0.07440185546875,
0.00811004638671875,
-0.040802001953125,
0.022308349609375,
-0.042022705078125,
0.01226043701171875,
-0.006984710693359375,
-0.047698974609375,
-0.006191253662109375,
-0.0210723876953125,
-0.00937652587890625,
-0.035491943359375,
-0.0007386207580566406
] |
2d3f8733649c00fbaab14dee4f78afec697a29d5 | Wordpress Stackexchange
Q: Get all post media images via WP REST API We want to build a back-end for a mobile app using WordPress. We are trying to get all post images, but when we call https://api.com/wp-json/wp/v2/media?parent=58 we are getting only the first image embedded (uploaded via "Media") into post.
How to get all images?
| Q: Get all post media images via WP REST API We want to build a back-end for a mobile app using WordPress. We are trying to get all post images, but when we call https://api.com/wp-json/wp/v2/media?parent=58 we are getting only the first image embedded (uploaded via "Media") into post.
How to get all images?
| wordpress | {
"language": "en",
"length": 53,
"provenance": "stackexchange_00019.jsonl.gz:490315",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/318215"
} | [
0.031829833984375,
-0.005947113037109375,
0.01202392578125,
0.006198883056640625,
-0.00007194280624389648,
-0.02032470703125,
0.064453125,
-0.03472900390625,
0.00946044921875,
0.0183258056640625,
-0.022674560546875,
0.0115509033203125,
-0.0032787322998046875,
-0.0223541259765625,
-0.0037403106689453125,
-0.024627685546875,
0.041046142578125,
-0.023193359375,
0.0207061767578125,
-0.004730224609375,
0.0029430389404296875,
0.0247955322265625,
0.01290130615234375,
0.0767822265625,
0.0007953643798828125,
-0.0026760101318359375,
-0.0121612548828125,
-0.03582763671875,
-0.01415252685546875,
-0.020843505859375,
-0.0054779052734375,
0.03741455078125,
-0.016571044921875,
0.02703857421875,
0.005245208740234375,
-0.02130126953125,
-0.006954193115234375,
0.019287109375,
0.01068878173828125,
-0.0001823902130126953,
0.003383636474609375,
0.004444122314453125,
0.0367431640625,
0.034576416015625,
-0.0132904052734375,
0.01061248779296875,
-0.030792236328125,
-0.045135498046875,
0.0257110595703125,
0.0013523101806640625,
0.0211029052734375,
0.004924774169921875,
0.0259857177734375,
0.033294677734375,
-0.0252838134765625,
-0.029296875,
0.05462646484375,
-0.03302001953125,
0.05145263671875,
-0.0765380859375,
-0.07196044921875,
-0.03253173828125,
0.042327880859375,
-0.015716552734375,
0.0364990234375,
-0.0021305084228515625,
0.0175018310546875,
0.03582763671875,
-0.048675537109375,
0.025909423828125,
0.01898193359375,
-0.039794921875,
0.003292083740234375,
-0.046844482421875,
0.012176513671875,
0.00557708740234375,
-0.0106353759765625,
-0.0305023193359375,
0.01502227783203125,
0.004940032958984375,
0.0174713134765625,
-0.02288818359375,
-0.048919677734375,
-0.018463134765625,
0.018585205078125,
-0.01541900634765625,
0.00901031494140625,
-0.00872039794921875,
-0.048797607421875,
-0.00710296630859375,
-0.038421630859375,
-0.06951904296875,
-0.03765869140625,
0.0258026123046875,
0.010711669921875,
-0.00432586669921875,
0.018829345703125,
0.0071563720703125,
-0.00960540771484375,
0.0162200927734375,
-0.01096343994140625,
-0.0205078125,
0.0308990478515625,
-0.021942138671875,
0.035675048828125,
-0.059356689453125,
-0.02764892578125,
-0.024658203125,
0.08343505859375,
0.047027587890625,
-0.032318115234375,
0.13623046875,
0.0019025802612304688,
0.0005960464477539062,
-0.02490234375,
-0.0007181167602539062,
-0.0196685791015625,
0.0184326171875,
-0.01483917236328125,
-0.0015363693237304688,
0.002994537353515625,
0.0006818771362304688,
0.005077362060546875,
0.03118896484375,
0.00675201416015625,
0.0250091552734375,
-0.0207672119140625,
-0.0178680419921875,
-0.0133209228515625,
0.0219879150390625,
0.01467132568359375,
0.039642333984375,
-0.034332275390625,
-0.0411376953125,
-0.06341552734375,
-0.006816864013671875,
-0.03094482421875,
0.0160675048828125,
0.004852294921875,
0.01158905029296875,
-0.0010280609130859375,
-0.032806396484375,
0.02239990234375,
0.0218353271484375,
-0.01085662841796875,
0.007213592529296875,
0.01751708984375,
0.0082550048828125,
-0.0013895034790039062,
0.0001270771026611328,
-0.042236328125,
0.0098419189453125,
-0.003875732421875,
0.014068603515625,
0.050750732421875,
-0.01546478271484375,
0.0601806640625,
-0.0266265869140625,
0.01611328125,
-0.0157470703125,
0.0088653564453125,
0.0237884521484375,
0.050445556640625,
0.039093017578125,
0.04052734375,
-0.0384521484375,
-0.020172119140625,
0.0006732940673828125,
0.03961181640625,
0.052734375,
0.0036830902099609375,
-0.053619384765625,
0.012847900390625,
0.0169677734375,
-0.0202178955078125,
0.0362548828125,
-0.00965118408203125,
0.00197601318359375,
0.0239410400390625,
0.023284912109375,
-0.0082550048828125,
-0.0253448486328125,
0.04595947265625,
-0.000025987625122070312,
-0.016326904296875,
-0.01284027099609375,
0.03814697265625,
0.04986572265625,
-0.0093231201171875,
0.044830322265625,
0.024871826171875,
0.0196533203125,
-0.0095062255859375,
0.0194091796875,
-0.0310516357421875,
-0.0207061767578125,
-0.01287841796875,
0.02484130859375,
-0.025146484375,
-0.01416015625,
0.0011157989501953125,
-0.0190277099609375,
0.0175628662109375,
0.005962371826171875,
0.004611968994140625,
-0.0177154541015625,
-0.00493621826171875,
0.0015048980712890625,
-0.034912109375,
0.028961181640625,
0.031036376953125,
0.0190277099609375,
-0.03436279296875,
0.007663726806640625,
0.0035037994384765625,
0.007678985595703125,
-0.0196380615234375,
0.0194549560546875,
-0.0228424072265625,
0.03753662109375,
-0.058258056640625,
-0.019927978515625,
-0.0460205078125,
0.036865234375,
0.08367919921875,
0.02935791015625,
-0.01387786865234375,
-0.01113128662109375,
0.09881591796875,
0.0182037353515625,
-0.00804901123046875,
0.00637054443359375,
-0.01297760009765625,
-0.0028171539306640625,
-0.0252685546875,
-0.0166778564453125,
0.006511688232421875,
-0.0294342041015625,
0.0167999267578125,
0.043487548828125,
0.0272979736328125,
0.051055908203125,
0.0028705596923828125,
0.0198516845703125,
0.061004638671875,
-0.0032215118408203125,
0.0135650634765625,
-0.0024662017822265625,
0.040985107421875,
0.045379638671875,
-0.042999267578125,
-0.0250244140625,
0.0239410400390625,
-0.09503173828125,
0.020965576171875,
0.0535888671875,
0.021087646484375,
0.0147552490234375,
-0.034912109375,
0.042724609375,
0.0030574798583984375,
-0.017822265625,
-0.032958984375,
-0.0118408203125,
-0.0028228759765625,
0.01568603515625,
0.020416259765625,
0.0202484130859375,
-0.049468994140625,
-0.0029163360595703125,
0.03924560546875,
0.057098388671875,
0.004779815673828125,
0.06146240234375,
0.025299072265625,
-0.0015506744384765625,
-0.021697998046875,
-0.0295867919921875,
0.0264129638671875,
0.032867431640625,
-0.0047454833984375,
-0.03570556640625,
-0.002414703369140625,
0.004924774169921875,
0.0254058837890625,
-0.052154541015625,
0.044403076171875,
0.0284423828125,
-0.0022716522216796875,
0.04986572265625,
0.03790283203125,
0.05963134765625,
0.030242919921875,
0.0086822509765625,
-0.00604248046875,
0.030364990234375,
0.00032067298889160156,
-0.0294647216796875,
0.0269927978515625,
-0.01348114013671875,
0.018218994140625,
0.05291748046875,
-0.0074310302734375,
0.0225830078125,
-0.02789306640625,
0.003864288330078125,
-0.0208587646484375,
-0.00008541345596313477,
-0.021453857421875,
-0.05291748046875,
-0.021453857421875,
0.0013637542724609375,
0.016357421875,
0.0225372314453125,
-0.01580810546875,
-0.037933349609375,
-0.0193939208984375,
0.0033721923828125,
-0.118896484375,
-0.07513427734375,
0.032379150390625,
-0.059326171875,
-0.05474853515625,
-0.013519287109375,
-0.054046630859375,
0.0227813720703125,
0.0034389495849609375,
-0.0238800048828125,
-0.031219482421875,
0.03594970703125,
-0.01192474365234375,
-0.0033054351806640625,
-0.02777099609375,
-0.00496673583984375,
-0.0167083740234375,
0.01194000244140625,
-0.0001685619354248047,
0.07025146484375,
0.0181121826171875,
-0.029144287109375,
0.0174102783203125,
0.060150146484375,
-0.00885772705078125,
-0.00804901123046875,
-0.0017213821411132812,
0.0034847259521484375,
0.01392364501953125,
-0.000008702278137207031,
-0.035003662109375,
0.040069580078125,
-0.03265380859375,
-0.005886077880859375,
-0.03265380859375,
-0.0360107421875,
-0.01003265380859375,
0.05584716796875,
0.0291290283203125,
-0.033477783203125,
0.03265380859375,
-0.049591064453125,
0.00504302978515625,
-0.0465087890625,
-0.04534912109375,
0.033111572265625,
0.026641845703125,
0.0064849853515625,
-0.027862548828125,
0.0243072509765625,
0.0107879638671875,
0.02716064453125,
0.0023345947265625,
-0.0169525146484375,
0.052490234375,
-0.004589080810546875,
0.0082244873046875,
-0.013824462890625,
0.0159454345703125,
-0.0214996337890625,
-0.01131439208984375,
-0.01473236083984375,
-0.00545501708984375,
-0.0269317626953125,
-0.005908966064453125,
-0.0419921875,
-0.0036067962646484375,
0.029144287109375,
-0.012939453125,
0.045654296875,
-0.0267486572265625,
-0.0225677490234375,
-0.0151519775390625,
0.06396484375,
-0.01479339599609375,
-0.01678466796875,
-0.00293731689453125,
0.005207061767578125,
-0.036956787109375,
-0.027801513671875,
-0.041656494140625,
-0.0036411285400390625,
-0.0087890625,
-0.004558563232421875,
-0.002407073974609375,
-0.0232086181640625,
0.034637451171875,
-0.05133056640625,
0.011871337890625,
-0.026824951171875,
0.01514434814453125,
-0.033843994140625,
-0.00917816162109375,
-0.014739990234375,
-0.0082550048828125,
-0.042144775390625,
-0.0007233619689941406,
-0.0214996337890625,
-0.09405517578125,
-0.0308685302734375,
-0.004947662353515625,
0.07171630859375,
0.0078277587890625,
-0.03314208984375,
-0.01303863525390625,
0.05633544921875,
-0.01221466064453125,
0.03460693359375,
-0.0240478515625,
0.0086669921875,
-0.00923919677734375,
-0.01751708984375,
-0.00719451904296875,
-0.02386474609375,
-0.049407958984375,
-0.06390380859375,
0.01505279541015625,
-0.0243682861328125,
-0.0269622802734375,
-0.0179443359375,
-0.03411865234375,
0.028533935546875,
-0.02032470703125,
-0.031646728515625,
-0.0213470458984375,
0.029876708984375,
-0.007625579833984375,
-0.006191253662109375,
-0.055633544921875,
-0.04473876953125,
0.0297393798828125,
0.01396942138671875,
-0.014617919921875,
-0.00012218952178955078,
0.064453125,
0.0194244384765625,
-0.0108184814453125,
-0.0858154296875,
-0.0258026123046875,
0.0274658203125,
-0.016693115234375,
0.04766845703125,
0.0218048095703125,
-0.010345458984375,
0.0638427734375,
-0.0036411285400390625,
0.01324462890625,
0.0005984306335449219,
0.041351318359375,
-0.006572723388671875,
-0.0283355712890625,
0.028717041015625,
0.01226043701171875,
-0.027740478515625,
0.022369384765625,
-0.0177154541015625,
0.007205963134765625,
-0.0164031982421875,
0.01065826416015625,
-0.032501220703125,
0.0203857421875,
-0.0113067626953125,
-0.032012939453125,
0.00823211669921875,
0.0298614501953125,
0.02734375,
0.0100860595703125,
-0.004276275634765625,
0.029022216796875,
0.0325927734375,
0.01021575927734375,
-0.024932861328125,
0.032989501953125,
-0.0214691162109375,
0.0655517578125,
-0.037567138671875,
0.0007576942443847656,
-0.034820556640625,
0.003856658935546875,
0.0047454833984375,
-0.0352783203125,
-0.053619384765625,
-0.005542755126953125,
-0.007472991943359375,
0.0221405029296875,
0.049041748046875,
-0.03155517578125,
0.035736083984375,
0.01303863525390625,
-0.0211334228515625,
-0.02081298828125,
-0.06427001953125,
-0.01267242431640625,
-0.05401611328125,
0.04058837890625,
0.016815185546875,
0.00030517578125,
0.0556640625,
0.00983428955078125,
-0.017486572265625,
0.0280609130859375,
-0.004573822021484375,
0.009033203125,
-0.0305023193359375,
0.06341552734375,
0.0093231201171875,
-0.01500701904296875,
-0.00484466552734375,
0.050628662109375,
0.010345458984375,
-0.05377197265625,
0.031524658203125,
0.03204345703125,
0.06805419921875,
0.0291595458984375,
-0.047332763671875,
-0.005615234375,
-0.05047607421875,
-0.0139617919921875,
0.0174407958984375,
0.004077911376953125,
-0.0411376953125,
-0.01390838623046875,
0.0360107421875,
0.03424072265625,
0.01285552978515625,
-0.00301361083984375,
0.03887939453125,
0.0582275390625,
0.052154541015625,
0.01094818115234375,
-0.034881591796875,
0.03790283203125,
0.048614501953125,
-0.045654296875,
-0.0509033203125,
-0.042388916015625,
0.032012939453125,
0.00788116455078125,
-0.001068115234375,
-0.0330810546875,
0.0335693359375,
-0.0141143798828125,
-0.01267242431640625,
-0.000009834766387939453,
0.00958251953125,
-0.052337646484375,
0.014984130859375,
0.02874755859375,
0.0099945068359375,
0.03057861328125,
-0.02630615234375,
-0.0102386474609375,
-0.0173492431640625,
0.06011962890625,
-0.0063629150390625,
0.00618743896484375,
-0.04254150390625,
0.005489349365234375,
0.0400390625,
0.0155181884765625,
0.01110076904296875,
0.0035247802734375,
0.016357421875,
-0.0029201507568359375,
0.06878662109375,
-0.0150909423828125,
0.0726318359375,
-0.03912353515625,
0.04412841796875,
-0.010986328125,
0.0097503662109375,
-0.038787841796875,
0.00787353515625,
-0.0250091552734375,
-0.0843505859375,
-0.0223846435546875,
0.04473876953125,
-0.03033447265625,
0.049072265625,
-0.002346038818359375,
0.01375579833984375,
0.0102081298828125,
-0.0264739990234375,
-0.01253509521484375,
-0.0087127685546875,
0.051300048828125,
-0.007354736328125,
0.0009465217590332031,
0.03179931640625,
0.01271820068359375,
0.035491943359375,
-0.03411865234375,
-0.0132598876953125,
-0.01342010498046875,
0.0196533203125,
0.0048065185546875,
0.0004115104675292969,
0.00882720947265625,
0.01372528076171875,
0.0926513671875,
-0.01094818115234375,
0.059600830078125,
0.03955078125,
0.00521087646484375,
0.038543701171875,
0.05511474609375,
-0.0207366943359375,
-0.05950927734375,
0.0182952880859375,
0.0106658935546875,
-0.01493072509765625,
0.0169830322265625,
-0.016510009765625,
0.022613525390625,
-0.0501708984375,
0.0550537109375,
0.043426513671875,
0.02630615234375,
0.038543701171875,
-0.050384521484375,
0.01380157470703125,
-0.002498626708984375,
0.002368927001953125,
-0.004795074462890625,
0.0257720947265625,
-0.0266876220703125,
-0.0233612060546875,
0.004863739013671875,
-0.019744873046875,
0.0019588470458984375,
0.0001926422119140625,
0.03863525390625,
-0.0006070137023925781,
-0.029144287109375,
-0.04254150390625,
0.0311279296875,
-0.035888671875,
-0.01727294921875,
0.04949951171875,
-0.047882080078125,
0.0033397674560546875,
-0.043212890625,
-0.0156707763671875,
0.01013946533203125,
-0.025604248046875,
0.0009937286376953125,
0.02227783203125,
0.003307342529296875,
0.050140380859375,
-0.00989532470703125,
0.0005784034729003906,
0.020355224609375,
-0.040985107421875,
-0.027435302734375,
-0.0288238525390625,
-0.0010662078857421875,
0.032073974609375,
-0.039794921875,
0.019012451171875,
-0.025665283203125,
0.0150604248046875,
-0.014251708984375,
-0.041412353515625,
0.056549072265625,
-0.050750732421875,
0.01259613037109375,
0.0438232421875,
0.0199737548828125,
-0.0255889892578125,
-0.008758544921875,
0.017425537109375,
-0.007427215576171875,
0.0275421142578125,
-0.003284454345703125,
0.0283966064453125,
0.0089569091796875,
-0.0016345977783203125,
-0.040313720703125,
0.06768798828125,
-0.033966064453125,
0.03253173828125,
0.047027587890625,
0.0230712890625,
-0.0209197998046875,
0.0003428459167480469,
-0.02703857421875,
0.033477783203125,
0.004405975341796875,
-0.01355743408203125,
-0.033782958984375,
-0.0009098052978515625,
-0.030548095703125,
0.02801513671875,
0.06292724609375,
0.016326904296875,
-0.060272216796875,
-0.038177490234375,
0.0154876708984375,
0.029693603515625,
-0.00028514862060546875,
0.0625,
0.0382080078125,
0.00397491455078125,
0.055206298828125,
-0.02447509765625,
0.0265960693359375,
-0.034576416015625,
0.054290771484375,
0.04937744140625,
0.0230865478515625,
0.03692626953125,
0.0230255126953125,
0.0266876220703125,
-0.0144805908203125,
0.003551483154296875,
0.0419921875,
-0.062255859375,
0.018310546875,
0.033966064453125,
0.013702392578125,
-0.0019350051879882812,
0.01446533203125,
-0.020263671875,
0.031585693359375,
-0.0258026123046875,
0.050689697265625,
0.034271240234375,
0.029937744140625,
0.01349639892578125,
0.0182952880859375,
0.034515380859375,
0.03936767578125,
-0.034912109375,
0.04150390625,
0.0159454345703125,
0.04248046875,
-0.06170654296875,
-0.04632568359375,
0.0223236083984375,
0.061859130859375,
-0.018768310546875,
-0.06353759765625,
0.028106689453125,
0.006580352783203125,
0.0160980224609375,
0.03765869140625,
0.04266357421875,
-0.06298828125,
-0.0037078857421875,
-0.004566192626953125,
0.0167999267578125,
0.009918212890625,
0.05194091796875,
0.0159149169921875,
0.0276947021484375,
-0.0750732421875,
-0.0099945068359375,
-0.01096343994140625,
-0.0039825439453125,
0.0026092529296875,
0.016021728515625,
0.013336181640625,
0.0267486572265625,
-0.004364013671875,
-0.00214385986328125,
-0.0250244140625,
0.039215087890625,
0.0197601318359375,
0.02752685546875,
0.002803802490234375,
-0.0088958740234375,
0.02001953125,
-0.0035247802734375,
0.0615234375,
0.0302886962890625,
0.057647705078125,
0.038421630859375,
-0.035308837890625,
0.0093994140625,
0.060791015625,
-0.00878143310546875,
0.0159759521484375,
-0.0292205810546875,
-0.03448486328125,
-0.0019321441650390625,
-0.031951904296875,
0.005954742431640625,
-0.0401611328125,
0.0460205078125,
0.0053253173828125,
0.0379638671875,
0.00701141357421875,
-0.002262115478515625,
0.039520263671875,
0.017425537109375,
0.03533935546875,
0.030242919921875,
-0.0748291015625,
-0.01020050048828125,
-0.0237579345703125,
-0.0211181640625,
0.0191497802734375,
0.01512908935546875,
-0.045745849609375,
0.055511474609375,
-0.011932373046875,
-0.004665374755859375,
-0.027679443359375,
-0.01568603515625,
0.035797119140625,
-0.0161895751953125,
-0.0080718994140625,
0.006103515625,
-0.07720947265625,
-0.05462646484375,
-0.033782958984375,
0.0202484130859375,
0.0275421142578125,
0.037994384765625,
0.01146697998046875,
0.031524658203125,
-0.00836944580078125,
-0.006694793701171875,
-0.00635528564453125,
0.0110015869140625,
-0.040557861328125,
0.0226898193359375,
0.01412200927734375,
-0.0163421630859375,
-0.030853271484375,
0.0267486572265625,
0.02496337890625,
-0.0020580291748046875,
0.041259765625,
-0.02679443359375,
0.003749847412109375,
-0.019378662109375,
0.0272064208984375,
-0.01558685302734375,
-0.0124359130859375,
-0.04205322265625,
-0.0306854248046875,
0.04388427734375,
0.039794921875,
0.01316070556640625,
0.007434844970703125,
0.043060302734375,
-0.02838134765625,
0.03369140625,
-0.02099609375,
0.0701904296875,
0.03607177734375,
-0.01045989990234375,
0.0308837890625,
-0.03216552734375,
-0.02154541015625,
-0.006641387939453125,
0.0146331787109375,
-0.04168701171875,
-0.005107879638671875,
0.027587890625,
-0.018280029296875,
0.0273895263671875,
0.030181884765625,
0.0022716522216796875,
-0.0009446144104003906,
0.00490570068359375,
-0.030120849609375,
-0.018798828125,
-0.011444091796875,
0.017303466796875,
-0.0316162109375,
-0.031890869140625,
0.01047515869140625,
-0.023834228515625,
-0.000041425228118896484,
0.017578125,
-0.0228424072265625,
0.0260009765625,
0.001697540283203125,
-0.0155029296875,
-0.003528594970703125,
-0.00469207763671875,
-0.0014677047729492188,
-0.00626373291015625,
0.016021728515625,
-0.0015134811401367188,
0.0301971435546875,
-0.063720703125,
-0.04864501953125,
-0.0196685791015625,
0.00926971435546875,
-0.048126220703125,
0.01837158203125,
0.0071563720703125,
-0.03076171875,
0.028106689453125,
0.054168701171875,
0.038604736328125,
0.10113525390625,
0.007251739501953125,
-0.030181884765625,
-0.047821044921875,
0.03277587890625,
-0.0018129348754882812,
-0.030792236328125,
0.0190887451171875,
-0.033050537109375,
-0.016510009765625,
-0.039093017578125,
0.031402587890625,
0.035980224609375,
-0.029571533203125,
-0.09722900390625,
0.054901123046875,
-0.03668212890625,
-0.032012939453125,
-0.05126953125,
0.0106658935546875,
0.01509857177734375,
-0.01409912109375,
-0.015869140625,
-0.0218658447265625,
-0.025665283203125,
0.016876220703125,
0.005146026611328125,
0.035888671875,
0.002841949462890625,
0.0023250579833984375,
-0.017974853515625,
0.021575927734375,
-0.00472259521484375,
0.021270751953125,
0.0034027099609375,
0.0009918212890625,
0.0130615234375,
0.034210205078125,
-0.052276611328125,
-0.004955291748046875,
-0.0280914306640625,
0.018951416015625,
-0.0482177734375,
-0.0298309326171875,
0.005207061767578125,
0.0019235610961914062,
0.0693359375,
0.06744384765625,
0.005298614501953125,
-0.048828125,
0.0172119140625,
-0.00894927978515625,
-0.01190185546875,
-0.02001953125,
0.006710052490234375,
-0.0411376953125,
-0.0268707275390625,
-0.0065155029296875,
0.0211944580078125,
0.004680633544921875,
-0.052642822265625,
-0.007503509521484375,
-0.034698486328125,
-0.035186767578125,
0.0021610260009765625,
-0.01194000244140625,
0.00206756591796875,
0.049652099609375,
-0.033966064453125,
0.0220947265625,
-0.0166473388671875,
0.017974853515625,
0.041351318359375,
-0.01141357421875,
0.003993988037109375,
-0.01458740234375,
-0.0034732818603515625,
0.0048675537109375,
0.01012420654296875,
-0.0233001708984375,
0.011749267578125,
-0.0077056884765625,
-0.0225067138671875,
0.0166473388671875,
0.024017333984375,
0.027313232421875,
-0.00948333740234375,
0.005126953125,
0.0272216796875,
-0.00878143310546875,
-0.022613525390625,
0.0576171875,
0.0040740966796875,
0.018829345703125,
-0.016998291015625,
-0.0035305023193359375,
0.0311431884765625,
-0.0281524658203125,
-0.012054443359375,
0.0270843505859375,
-0.06683349609375,
-0.041229248046875,
0.005542755126953125,
0.0255126953125,
-0.005733489990234375,
0.0008182525634765625
] |
89eb1b2f0cf05138616ba5e050e5c9b79dfef272 | Wordpress Stackexchange
Q: How to disallow a certain custom gutenberg block outside of an InnerBlocks block? I did add a custom block as an InnerBlocks block, called slider. Then i got another custom block slider-item. I think you get the idea.
The slider block just allows slider-item as it's child blocks. Like so:
<InnerBlocks
allowedBlocks={ [ 'ajk/slider-item' ] }
template={[
[ 'ajk/slider-item' ],
[ 'ajk/slider-item' ],
]}
/>
Now I want to achieve that an editor isn't able to use the slider-item outside of my slider container block.
Or is there some kind of repeater block possibility i do miss?!
WP 4.9.8
Gutenberg 4.2.0
A: In the slider-item you can specify parent must be slider. That way, the slider-item cannot be used outside of your slider container block.
Something like:
registerBlockType('ajk/slider-item', ...
parent: ['ajk/slider'],
https://wordpress.org/gutenberg/handbook/block-api/#parent-optional
| Q: How to disallow a certain custom gutenberg block outside of an InnerBlocks block? I did add a custom block as an InnerBlocks block, called slider. Then i got another custom block slider-item. I think you get the idea.
The slider block just allows slider-item as it's child blocks. Like so:
<InnerBlocks
allowedBlocks={ [ 'ajk/slider-item' ] }
template={[
[ 'ajk/slider-item' ],
[ 'ajk/slider-item' ],
]}
/>
Now I want to achieve that an editor isn't able to use the slider-item outside of my slider container block.
Or is there some kind of repeater block possibility i do miss?!
WP 4.9.8
Gutenberg 4.2.0
A: In the slider-item you can specify parent must be slider. That way, the slider-item cannot be used outside of your slider container block.
Something like:
registerBlockType('ajk/slider-item', ...
parent: ['ajk/slider'],
https://wordpress.org/gutenberg/handbook/block-api/#parent-optional
| wordpress | {
"language": "en",
"length": 133,
"provenance": "stackexchange_00019.jsonl.gz:490333",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/318272"
} | [
0.0151519775390625,
0.016845703125,
-0.03607177734375,
-0.0240325927734375,
0.016815185546875,
-0.0208282470703125,
-0.004993438720703125,
-0.0084991455078125,
0.0074310302734375,
0.03082275390625,
-0.01386260986328125,
0.00998687744140625,
0.007762908935546875,
-0.0194549560546875,
-0.0087738037109375,
-0.00428009033203125,
0.0286865234375,
0.0031566619873046875,
0.0310516357421875,
-0.0250091552734375,
-0.0084381103515625,
-0.01959228515625,
0.0215301513671875,
0.0256500244140625,
0.039276123046875,
-0.0404052734375,
0.055816650390625,
-0.0226287841796875,
0.057403564453125,
-0.01074981689453125,
0.040557861328125,
-0.035858154296875,
0.01047515869140625,
0.042022705078125,
-0.045928955078125,
-0.037994384765625,
-0.0037250518798828125,
0.01268768310546875,
-0.007343292236328125,
0.0267333984375,
0.033111572265625,
-0.022552490234375,
-0.09075927734375,
0.032623291015625,
-0.050323486328125,
-0.04510498046875,
0.01904296875,
-0.021514892578125,
0.03167724609375,
0.04168701171875,
-0.00853729248046875,
-0.00040912628173828125,
-0.0164642333984375,
0.053436279296875,
-0.022369384765625,
-0.055511474609375,
-0.01477813720703125,
0.0147247314453125,
-0.01044464111328125,
0.08544921875,
0.0261077880859375,
0.0830078125,
-0.0404052734375,
-0.03790283203125,
0.0677490234375,
-0.03515625,
0.02020263671875,
0.035186767578125,
-0.024993896484375,
0.046966552734375,
0.040863037109375,
-0.0219573974609375,
-0.007434844970703125,
-0.06890869140625,
-0.01983642578125,
0.041717529296875,
-0.025482177734375,
-0.03546142578125,
0.0079498291015625,
-0.0165863037109375,
-0.01505279541015625,
0.01268768310546875,
-0.026763916015625,
-0.00652313232421875,
-0.0017633438110351562,
0.01473236083984375,
-0.03155517578125,
-0.00847625732421875,
0.0110015869140625,
0.024810791015625,
0.0009512901306152344,
-0.01058197021484375,
0.0078277587890625,
0.058013916015625,
-0.0036029815673828125,
-0.003269195556640625,
0.019012451171875,
0.0167388916015625,
-0.0179443359375,
0.01218414306640625,
-0.01477813720703125,
-0.03680419921875,
0.039764404296875,
-0.038299560546875,
0.017181396484375,
0.06732177734375,
-0.031005859375,
-0.0192718505859375,
0.060943603515625,
0.01273345947265625,
0.035125732421875,
0.0230865478515625,
-0.015045166015625,
-0.01013946533203125,
-0.0462646484375,
0.0025634765625,
-0.0384521484375,
-0.0196380615234375,
-0.01067352294921875,
-0.007411956787109375,
0.01629638671875,
0.012176513671875,
0.042327880859375,
0.01078033447265625,
-0.0017681121826171875,
0.01593017578125,
-0.034210205078125,
-0.052001953125,
-0.01263427734375,
-0.004131317138671875,
-0.03399658203125,
0.0042266845703125,
0.04364013671875,
0.0546875,
0.036102294921875,
-0.01788330078125,
0.031402587890625,
0.00408172607421875,
0.020751953125,
-0.022369384765625,
-0.01168060302734375,
0.0014123916625976562,
0.012664794921875,
-0.0143585205078125,
0.0196685791015625,
0.0304412841796875,
0.0254669189453125,
-0.00086212158203125,
-0.0224761962890625,
-0.07513427734375,
0.06011962890625,
-0.05078125,
0.05078125,
-0.00582122802734375,
0.0025157928466796875,
-0.0237884521484375,
0.066162109375,
-0.0477294921875,
-0.03521728515625,
-0.057098388671875,
0.02496337890625,
0.00818634033203125,
0.01123046875,
-0.032928466796875,
-0.0304107666015625,
-0.027069091796875,
-0.0306549072265625,
-0.003421783447265625,
0.031707763671875,
0.06903076171875,
0.007465362548828125,
-0.0142822265625,
-0.0066070556640625,
-0.006168365478515625,
-0.035491943359375,
-0.015655517578125,
-0.00807952880859375,
-0.0110626220703125,
-0.00826263427734375,
0.045196533203125,
0.005107879638671875,
-0.040435791015625,
-0.00701904296875,
0.002178192138671875,
-0.041595458984375,
-0.01006317138671875,
-0.005970001220703125,
0.015594482421875,
0.050201416015625,
0.00420379638671875,
0.006023406982421875,
-0.0153961181640625,
-0.00803375244140625,
0.005157470703125,
-0.0033130645751953125,
-0.004131317138671875,
-0.0016078948974609375,
0.0159759521484375,
-0.00949859619140625,
-0.0244140625,
0.031646728515625,
-0.02630615234375,
0.03375244140625,
-0.053497314453125,
-0.026824951171875,
-0.0142059326171875,
-0.01338958740234375,
0.0303192138671875,
0.002216339111328125,
0.0156707763671875,
0.00870513916015625,
-0.0184478759765625,
-0.038116455078125,
0.0323486328125,
0.01508331298828125,
-0.00786590576171875,
-0.002246856689453125,
0.09393310546875,
0.02093505859375,
0.036590576171875,
0.029296875,
-0.048858642578125,
0.046844482421875,
0.0006213188171386719,
0.09478759765625,
-0.006244659423828125,
-0.02716064453125,
-0.0218505859375,
0.032928466796875,
0.0634765625,
-0.15380859375,
-0.0025653839111328125,
0.04180908203125,
-0.0266876220703125,
-0.031768798828125,
0.00540924072265625,
0.0112762451171875,
-0.063232421875,
-0.00569915771484375,
0.0609130859375,
0.0091705322265625,
-0.0308990478515625,
-0.056732177734375,
-0.030303955078125,
-0.0106048583984375,
-0.06939697265625,
-0.0209197998046875,
0.00853729248046875,
-0.042205810546875,
-0.04248046875,
-0.002109527587890625,
0.0268402099609375,
0.041656494140625,
0.0205841064453125,
0.03155517578125,
0.0195159912109375,
0.0207061767578125,
-0.00672149658203125,
-0.032196044921875,
0.0270233154296875,
0.0163421630859375,
0.0151214599609375,
-0.03900146484375,
0.0250701904296875,
0.061798095703125,
-0.04058837890625,
0.03680419921875,
-0.006641387939453125,
-0.0115814208984375,
-0.01337432861328125,
0.01227569580078125,
-0.0297698974609375,
0.013458251953125,
-0.01107025146484375,
0.005847930908203125,
0.0253143310546875,
-0.0013380050659179688,
-0.002429962158203125,
0.039520263671875,
0.004108428955078125,
-0.0185089111328125,
-0.0007033348083496094,
-0.03204345703125,
-0.0087432861328125,
0.0108489990234375,
-0.04461669921875,
0.00768280029296875,
-0.004283905029296875,
-0.046112060546875,
-0.050079345703125,
-0.00020170211791992188,
0.0078125,
0.0015459060668945312,
-0.035003662109375,
0.048126220703125,
-0.01837158203125,
0.019256591796875,
-0.027374267578125,
0.03082275390625,
-0.02374267578125,
0.0670166015625,
0.0643310546875,
-0.05035400390625,
0.03533935546875,
0.01299285888671875,
-0.06158447265625,
0.031402587890625,
0.00942230224609375,
-0.00879669189453125,
-0.0004398822784423828,
-0.0452880859375,
0.0271453857421875,
0.032135009765625,
-0.007678985595703125,
0.050567626953125,
0.017822265625,
0.0057220458984375,
0.044952392578125,
0.01812744140625,
0.01715087890625,
-0.00241851806640625,
-0.08746337890625,
0.0167999267578125,
-0.0174560546875,
-0.0340576171875,
-0.0156097412109375,
0.0228271484375,
0.00859832763671875,
-0.041229248046875,
-0.01001739501953125,
-0.07232666015625,
-0.055908203125,
-0.07208251953125,
0.0240020751953125,
-0.0157623291015625,
0.035980224609375,
-0.0056304931640625,
0.048370361328125,
-0.01378631591796875,
-0.070556640625,
-0.022735595703125,
-0.0281219482421875,
0.005237579345703125,
0.00960540771484375,
-0.0063934326171875,
0.0041656494140625,
-0.01023101806640625,
0.03173828125,
-0.0258026123046875,
-0.025238037109375,
0.0037097930908203125,
-0.0210113525390625,
0.0133209228515625,
0.032196044921875,
0.006038665771484375,
0.04107666015625,
-0.007480621337890625,
0.01464080810546875,
0.023406982421875,
-0.023712158203125,
-0.0516357421875,
0.0195159912109375,
-0.041351318359375,
0.0382080078125,
0.012847900390625,
-0.0019121170043945312,
0.040557861328125,
0.018035888671875,
0.0141448974609375,
0.00028777122497558594,
0.007335662841796875,
-0.002849578857421875,
0.04791259765625,
-0.01910400390625,
0.0126495361328125,
-0.042022705078125,
0.0313720703125,
-0.01219940185546875,
-0.0168609619140625,
0.0015964508056640625,
0.0173492431640625,
-0.004150390625,
0.015350341796875,
-0.0233001708984375,
-0.0426025390625,
0.03875732421875,
-0.0222015380859375,
-0.0018339157104492188,
0.0007543563842773438,
-0.0178680419921875,
0.025634765625,
0.07073974609375,
-0.032928466796875,
-0.0023403167724609375,
0.0066680908203125,
0.004795074462890625,
0.00547027587890625,
-0.01486968994140625,
-0.06427001953125,
-0.0173797607421875,
0.015869140625,
0.0054779052734375,
-0.00024580955505371094,
-0.0175628662109375,
-0.002227783203125,
-0.0472412109375,
-0.01113128662109375,
-0.0081329345703125,
0.037445068359375,
-0.01340484619140625,
0.00940704345703125,
0.023101806640625,
0.00511932373046875,
-0.01178741455078125,
-0.027740478515625,
-0.007694244384765625,
-0.08587646484375,
-0.0131072998046875,
-0.07330322265625,
0.07830810546875,
0.0241546630859375,
0.031280517578125,
-0.0260009765625,
0.056060791015625,
-0.0247802734375,
0.0207977294921875,
0.0128631591796875,
0.0221099853515625,
0.03424072265625,
0.004241943359375,
0.004535675048828125,
-0.0204315185546875,
0.01392364501953125,
0.0080413818359375,
-0.040252685546875,
0.026397705078125,
-0.0148773193359375,
-0.0202178955078125,
0.0265960693359375,
-0.038604736328125,
-0.0633544921875,
-0.040557861328125,
-0.069580078125,
-0.008758544921875,
-0.00775909423828125,
-0.0589599609375,
-0.0465087890625,
-0.06439208984375,
0.0171051025390625,
0.01079559326171875,
-0.006145477294921875,
0.0140838623046875,
0.04547119140625,
0.0169525146484375,
-0.026123046875,
-0.021942138671875,
0.0091094970703125,
0.02435302734375,
-0.0282440185546875,
0.08154296875,
0.037384033203125,
0.01335906982421875,
0.02984619140625,
-0.014495849609375,
-0.040252685546875,
-0.0292816162109375,
0.0703125,
-0.01092529296875,
-0.03240966796875,
0.0207366943359375,
-0.05072021484375,
0.05401611328125,
0.01097869873046875,
-0.036529541015625,
-0.00533294677734375,
-0.021240234375,
0.04449462890625,
-0.0345458984375,
0.036407470703125,
-0.03338623046875,
-0.00864410400390625,
0.0017709732055664062,
-0.04168701171875,
0.043365478515625,
0.057342529296875,
-0.016876220703125,
0.01568603515625,
0.0161285400390625,
-0.0081024169921875,
0.0305023193359375,
-0.0251922607421875,
-0.0028209686279296875,
0.0244293212890625,
0.01776123046875,
-0.01023101806640625,
0.049224853515625,
0.0244140625,
-0.0034275054931640625,
-0.0196380615234375,
-0.0192108154296875,
-0.07757568359375,
0.0112457275390625,
0.01495361328125,
0.0023345947265625,
0.011077880859375,
0.0198974609375,
-0.0182342529296875,
-0.0257568359375,
0.0289764404296875,
0.049468994140625,
-0.045318603515625,
-0.022369384765625,
-0.05035400390625,
-0.00521087646484375,
-0.0246429443359375,
-0.05572509765625,
0.044097900390625,
0.039947509765625,
-0.04217529296875,
-0.01308441162109375,
0.0384521484375,
0.014007568359375,
0.0075836181640625,
0.006877899169921875,
0.0016498565673828125,
0.04522705078125,
-0.05230712890625,
0.0227203369140625,
-0.0433349609375,
-0.0168304443359375,
-0.005245208740234375,
0.056427001953125,
0.02203369140625,
-0.005035400390625,
0.01702880859375,
-0.01409149169921875,
-0.0029430389404296875,
-0.00727081298828125,
-0.0085296630859375,
0.01715087890625,
-0.015838623046875,
-0.03521728515625,
-0.002689361572265625,
0.02569580078125,
-0.01036834716796875,
-0.0273590087890625,
-0.037506103515625,
-0.033782958984375,
0.015106201171875,
-0.058135986328125,
0.01116943359375,
0.0167694091796875,
-0.027496337890625,
0.01371002197265625,
0.0079803466796875,
-0.04046630859375,
-0.061370849609375,
0.00482940673828125,
-0.0264129638671875,
0.031646728515625,
-0.059173583984375,
-0.0139312744140625,
-0.037933349609375,
0.04681396484375,
-0.057891845703125,
0.018951416015625,
0.073486328125,
0.0772705078125,
-0.018096923828125,
-0.000823974609375,
-0.0445556640625,
-0.0243072509765625,
-0.05517578125,
-0.056549072265625,
-0.0158538818359375,
0.0177764892578125,
0.0192413330078125,
0.0156707763671875,
0.027984619140625,
0.0029811859130859375,
0.01152801513671875,
-0.0005936622619628906,
-0.0264129638671875,
0.004383087158203125,
-0.044036865234375,
0.048858642578125,
-0.0207672119140625,
0.0254058837890625,
-0.035247802734375,
-0.005054473876953125,
0.04248046875,
-0.0027599334716796875,
-0.0146942138671875,
-0.048614501953125,
-0.0162811279296875,
-0.01483154296875,
0.0208587646484375,
0.0721435546875,
0.036529541015625,
0.01236724853515625,
0.02227783203125,
-0.03668212890625,
-0.00006467103958129883,
-0.0275726318359375,
0.036224365234375,
-0.056182861328125,
-0.0218963623046875,
-0.006832122802734375,
-0.0008883476257324219,
0.0180511474609375,
0.00998687744140625,
-0.042816162109375,
0.0200653076171875,
0.0257110595703125,
0.0159912109375,
-0.00803375244140625,
0.0248870849609375,
0.0016202926635742188,
0.045654296875,
-0.0178985595703125,
0.03521728515625,
0.0309600830078125,
0.023956298828125,
0.041412353515625,
0.00255584716796875,
-0.00583648681640625,
0.0150604248046875,
0.019317626953125,
0.00110626220703125,
-0.006195068359375,
0.006000518798828125,
-0.0087127685546875,
-0.0178375244140625,
0.040557861328125,
0.04241943359375,
-0.061492919921875,
-0.0049591064453125,
0.0289154052734375,
0.0179595947265625,
-0.02618408203125,
0.0099639892578125,
0.004039764404296875,
0.004863739013671875,
-0.01507568359375,
0.00958251953125,
-0.0220489501953125,
-0.0109405517578125,
-0.0088348388671875,
-0.0118255615234375,
-0.01690673828125,
0.0171356201171875,
0.004913330078125,
-0.0187225341796875,
0.001560211181640625,
0.008941650390625,
0.00383758544921875,
-0.009124755859375,
0.01898193359375,
-0.0254364013671875,
-0.0125579833984375,
-0.031036376953125,
-0.0113372802734375,
-0.00396728515625,
-0.00983428955078125,
-0.00974273681640625,
-0.0080413818359375,
0.0214080810546875,
0.02679443359375,
-0.0178985595703125,
-0.00872039794921875,
-0.007152557373046875,
-0.02618408203125,
-0.0408935546875,
-0.01224517822265625,
-0.0049285888671875,
0.0033245086669921875,
-0.020477294921875,
0.0174102783203125,
-0.0306549072265625,
-0.01080322265625,
0.007312774658203125,
0.045318603515625,
0.040557861328125,
-0.02398681640625,
-0.0244293212890625,
0.04168701171875,
0.03302001953125,
-0.009674072265625,
0.01934814453125,
0.056396484375,
-0.021148681640625,
-0.02337646484375,
0.038787841796875,
-0.027496337890625,
-0.046356201171875,
0.0047454833984375,
-0.046630859375,
0.10382080078125,
-0.0227203369140625,
0.031890869140625,
0.05047607421875,
0.036468505859375,
-0.050872802734375,
-0.00441741943359375,
0.005222320556640625,
0.021881103515625,
0.029571533203125,
0.01947021484375,
-0.043731689453125,
-0.045440673828125,
-0.00894927978515625,
0.099853515625,
0.01904296875,
0.004878997802734375,
-0.01285552978515625,
-0.0196533203125,
-0.0025348663330078125,
-0.00524139404296875,
-0.04718017578125,
0.0294647216796875,
0.0294189453125,
0.018463134765625,
0.022857666015625,
-0.0002968311309814453,
0.031829833984375,
-0.03973388671875,
-0.007350921630859375,
0.0335693359375,
0.004322052001953125,
0.0230255126953125,
0.0028438568115234375,
0.0019159317016601562,
0.017852783203125,
-0.01227569580078125,
-0.0002332925796508789,
-0.07196044921875,
0.01800537109375,
0.0274810791015625,
0.0243377685546875,
-0.005832672119140625,
-0.032958984375,
-0.01538848876953125,
0.0218048095703125,
-0.00490570068359375,
-0.0094146728515625,
0.006664276123046875,
0.012847900390625,
-0.043487548828125,
0.024871826171875,
0.01055908203125,
0.03399658203125,
-0.031097412109375,
-0.03179931640625,
0.00945281982421875,
-0.00182342529296875,
-0.0018854141235351562,
0.05987548828125,
0.0290374755859375,
-0.042388916015625,
-0.0194549560546875,
-0.08905029296875,
0.005550384521484375,
-0.00923919677734375,
0.007232666015625,
0.0235595703125,
-0.018035888671875,
0.01413726806640625,
0.04364013671875,
-0.01358795166015625,
-0.020904541015625,
-0.01146697998046875,
0.043609619140625,
-0.0012292861938476562,
-0.000347137451171875,
-0.008026123046875,
-0.0418701171875,
-0.0204925537109375,
-0.016998291015625,
0.0237884521484375,
0.041717529296875,
0.0237274169921875,
0.00621795654296875,
-0.01296234130859375,
-0.01104736328125,
-0.040130615234375,
0.0255126953125,
0.0278472900390625,
0.041412353515625,
-0.06671142578125,
0.01471710205078125,
0.0478515625,
0.0509033203125,
0.00487518310546875,
0.0277252197265625,
0.009735107421875,
0.036346435546875,
0.0751953125,
-0.00751495361328125,
0.0131378173828125,
0.0035533905029296875,
-0.0032939910888671875,
-0.055511474609375,
0.004817962646484375,
0.0119171142578125,
-0.003330230712890625,
0.01222991943359375,
0.0009622573852539062,
0.034027099609375,
0.01055908203125,
0.020355224609375,
0.01175689697265625,
-0.039398193359375,
-0.0250701904296875,
-0.01483917236328125,
0.027313232421875,
0.034942626953125,
-0.078125,
-0.0360107421875,
0.0174713134765625,
-0.01128387451171875,
0.010467529296875,
0.047393798828125,
-0.0298614501953125,
0.041534423828125,
0.046051025390625,
-0.0221710205078125,
0.0000362396240234375,
-0.002666473388671875,
0.051513671875,
-0.026458740234375,
-0.02734375,
0.00981903076171875,
-0.034576416015625,
-0.01293182373046875,
0.0191192626953125,
0.0010633468627929688,
-0.025543212890625,
0.063232421875,
-0.0099029541015625,
-0.0106964111328125,
-0.00504302978515625,
0.0297088623046875,
-0.00843048095703125,
0.0240478515625,
-0.0210113525390625,
0.050506591796875,
0.0280914306640625,
-0.0281219482421875,
-0.062744140625,
-0.01483154296875,
0.053192138671875,
-0.03607177734375,
0.0093994140625,
0.006679534912109375,
0.01274871826171875,
-0.0523681640625,
-0.003265380859375,
-0.0311279296875,
-0.0687255859375,
-0.033355712890625,
0.01398468017578125,
0.0024776458740234375,
0.054351806640625,
0.005786895751953125,
0.051513671875,
-0.004146575927734375,
0.007442474365234375,
0.01561737060546875,
-0.0445556640625,
0.02490234375,
0.03631591796875,
-0.0240631103515625,
-0.05047607421875,
-0.0341796875,
-0.01099395751953125,
-0.01397705078125,
-0.0019521713256835938,
0.030364990234375,
-0.004261016845703125,
0.01216888427734375,
-0.0117340087890625,
0.004817962646484375,
0.01953125,
-0.020843505859375,
0.0089569091796875,
0.029876708984375,
-0.034210205078125,
-0.013458251953125,
0.0162200927734375,
-0.0016155242919921875,
-0.019927978515625,
-0.04150390625,
0.0119781494140625,
-0.026092529296875,
-0.0278778076171875,
-0.041229248046875,
0.0147247314453125,
0.056976318359375,
0.0252685546875,
-0.0777587890625,
0.055511474609375,
-0.0187530517578125,
0.0295867919921875,
0.031341552734375,
0.039031982421875,
0.00426483154296875,
0.00630950927734375,
-0.0234375,
-0.0115966796875,
0.0021228790283203125,
0.051177978515625,
0.005756378173828125,
0.0035610198974609375,
0.0306549072265625,
-0.01306915283203125,
-0.0323486328125,
-0.007709503173828125,
0.01280975341796875,
0.03240966796875,
-0.0172882080078125,
0.00017130374908447266,
0.040313720703125,
-0.0021648406982421875,
-0.046722412109375,
-0.054595947265625,
0.02264404296875,
-0.045501708984375,
-0.0011777877807617188,
-0.01194000244140625,
0.00693511962890625,
0.013519287109375,
-0.043731689453125,
-0.04620361328125,
-0.032318115234375,
0.0166168212890625,
-0.0391845703125,
-0.028106689453125,
0.041412353515625,
-0.0294952392578125,
0.0155792236328125,
-0.010650634765625,
0.01136016845703125,
0.05059814453125,
0.036712646484375,
-0.00689697265625,
-0.002307891845703125,
0.01226043701171875,
-0.0031566619873046875,
-0.0216217041015625,
0.00804901123046875,
0.0215911865234375,
-0.0209808349609375,
-0.06427001953125,
0.01045989990234375,
0.010772705078125,
-0.005908966064453125,
-0.01032257080078125,
0.031829833984375,
0.057708740234375,
0.042449951171875,
0.00664520263671875,
0.0176239013671875,
-0.017059326171875,
-0.0118255615234375,
0.040069580078125,
0.0460205078125,
0.011444091796875,
-0.0207061767578125,
0.00899505615234375,
-0.03564453125,
-0.045379638671875,
0.01390838623046875,
0.00937652587890625,
-0.04864501953125,
0.01053619384765625,
0.025299072265625,
-0.0037899017333984375,
-0.007160186767578125,
0.007701873779296875,
-0.01230621337890625,
-0.00823974609375,
0.0088653564453125,
0.00571441650390625,
-0.061004638671875,
0.023406982421875,
-0.00017786026000976562,
-0.018768310546875,
-0.0301361083984375,
-0.0201416015625,
-0.0010967254638671875,
-0.0162353515625,
-0.032745361328125,
-0.03326416015625,
-0.0017337799072265625,
-0.037933349609375,
0.021942138671875,
-0.04193115234375,
0.058380126953125,
-0.053436279296875,
0.00945281982421875,
0.00018465518951416016,
-0.009796142578125,
0.000060617923736572266,
-0.0386962890625,
-0.0411376953125,
0.06793212890625,
-0.01010894775390625,
0.060638427734375,
0.022491455078125,
0.0018453598022460938,
-0.007503509521484375,
0.0298309326171875,
0.0220489501953125,
-0.0213623046875,
0.0196990966796875,
-0.0121307373046875,
0.007228851318359375,
0.007770538330078125,
-0.015533447265625,
-0.0168914794921875,
0.0015401840209960938,
-0.0106048583984375,
0.0019292831420898438,
0.0030879974365234375
] |
e9883cf19a38448aa23fb5208da64540aa1ef25d | Wordpress Stackexchange
Q: Restrict access to admin but allow admin_post hook I'm using this hook to allow only admin roles access dashboard
add_action( 'admin_init', function() {
if ( defined('DOING_AJAX') && DOING_AJAX ) {
return;
}
if ( !current_user_can('manage_options') ) {
wp_redirect( home_url('/meu-perfil') );
exit();
}
});
Now I need to run a function when a form is submitted on front end, like so:
function editUser() {
error_log('message');
}
add_action( 'admin_post_nopriv_add_foobar', 'editUser' );
add_action( 'admin_post_add_foobar', 'editUser' );
But the first hook is blocking the second one.
A: All you need to do is to modify your method of restricting users.
add_action( 'admin_init', function() {
if ( (defined('DOING_AJAX') && DOING_AJAX) || ( strpos($_SERVER['SCRIPT_NAME'], 'admin-post.php') ) ) {
return;
}
if ( !current_user_can('manage_options') ) {
wp_redirect( home_url('/meu-perfil') );
exit();
}
}
| Q: Restrict access to admin but allow admin_post hook I'm using this hook to allow only admin roles access dashboard
add_action( 'admin_init', function() {
if ( defined('DOING_AJAX') && DOING_AJAX ) {
return;
}
if ( !current_user_can('manage_options') ) {
wp_redirect( home_url('/meu-perfil') );
exit();
}
});
Now I need to run a function when a form is submitted on front end, like so:
function editUser() {
error_log('message');
}
add_action( 'admin_post_nopriv_add_foobar', 'editUser' );
add_action( 'admin_post_add_foobar', 'editUser' );
But the first hook is blocking the second one.
A: All you need to do is to modify your method of restricting users.
add_action( 'admin_init', function() {
if ( (defined('DOING_AJAX') && DOING_AJAX) || ( strpos($_SERVER['SCRIPT_NAME'], 'admin-post.php') ) ) {
return;
}
if ( !current_user_can('manage_options') ) {
wp_redirect( home_url('/meu-perfil') );
exit();
}
}
| wordpress | {
"language": "en",
"length": 126,
"provenance": "stackexchange_00019.jsonl.gz:490409",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/318609"
} | [
0.090087890625,
0.0039825439453125,
0.03228759765625,
-0.0311279296875,
0.0276031494140625,
-0.028228759765625,
0.057373046875,
-0.042938232421875,
0.00780487060546875,
0.026702880859375,
0.0038509368896484375,
-0.006992340087890625,
0.0005817413330078125,
-0.027099609375,
-0.0193939208984375,
-0.010009765625,
0.008636474609375,
0.004756927490234375,
0.0216064453125,
-0.0209197998046875,
-0.00008487701416015625,
-0.01436614990234375,
0.02325439453125,
0.03265380859375,
-0.005290985107421875,
-0.0214691162109375,
0.0240325927734375,
-0.0280303955078125,
-0.0178985595703125,
-0.0110321044921875,
-0.0010442733764648438,
0.01605224609375,
0.0052947998046875,
0.035888671875,
-0.00923919677734375,
0.01248931884765625,
0.003345489501953125,
0.0208740234375,
0.01415252685546875,
0.0294647216796875,
0.0283660888671875,
-0.012298583984375,
-0.037200927734375,
0.06378173828125,
-0.026458740234375,
-0.06658935546875,
0.03765869140625,
-0.033355712890625,
0.00354766845703125,
0.0139617919921875,
0.0303802490234375,
-0.022674560546875,
0.0322265625,
0.005359649658203125,
-0.01306915283203125,
0.0012874603271484375,
-0.0146484375,
-0.0140533447265625,
0.053253173828125,
0.0374755859375,
-0.0279083251953125,
-0.05322265625,
-0.00013327598571777344,
-0.07708740234375,
0.01428985595703125,
-0.03228759765625,
-0.0251617431640625,
0.03125,
-0.049041748046875,
0.00553131103515625,
0.04302978515625,
-0.0322265625,
0.0023899078369140625,
-0.01459503173828125,
-0.0180816650390625,
-0.03680419921875,
0.0208587646484375,
-0.01837158203125,
0.0035419464111328125,
0.019561767578125,
-0.016815185546875,
-0.004566192626953125,
-0.0133056640625,
0.00811767578125,
-0.0279388427734375,
0.00980377197265625,
-0.03680419921875,
0.0018434524536132812,
-0.0165557861328125,
0.00470733642578125,
-0.0164947509765625,
-0.032012939453125,
0.01140594482421875,
0.0006723403930664062,
-0.0014190673828125,
-0.02154541015625,
0.029998779296875,
0.0209808349609375,
0.018585205078125,
-0.034149169921875,
-0.0010356903076171875,
-0.0345458984375,
-0.03680419921875,
-0.002803802490234375,
0.0079345703125,
0.07672119140625,
0.0162811279296875,
-0.0006098747253417969,
0.01338958740234375,
-0.00838470458984375,
0.01425933837890625,
-0.01055145263671875,
-0.01186370849609375,
-0.024688720703125,
-0.0002313852310180664,
0.00514984130859375,
-0.04150390625,
0.01154327392578125,
-0.0006480216979980469,
0.0109100341796875,
-0.03167724609375,
-0.005916595458984375,
0.01538848876953125,
-0.0257568359375,
0.023651123046875,
0.00030994415283203125,
-0.0178375244140625,
-0.0055389404296875,
0.002368927001953125,
0.0305023193359375,
-0.01068115234375,
-0.010009765625,
0.034423828125,
0.0278472900390625,
0.0111236572265625,
-0.0211639404296875,
0.047943115234375,
-0.01338958740234375,
-0.00615692138671875,
0.0068359375,
0.0223388671875,
-0.03338623046875,
-0.019073486328125,
0.0152435302734375,
-0.012725830078125,
0.034515380859375,
0.0098114013671875,
-0.00978851318359375,
-0.0016069412231445312,
-0.044403076171875,
-0.046112060546875,
-0.01052093505859375,
0.037689208984375,
0.0153656005859375,
-0.013824462890625,
0.0164337158203125,
0.034698486328125,
-0.013336181640625,
-0.035980224609375,
-0.03912353515625,
0.03204345703125,
0.01079559326171875,
0.028045654296875,
-0.033599853515625,
-0.0723876953125,
-0.00693511962890625,
-0.07733154296875,
-0.0239410400390625,
0.02294921875,
0.0157928466796875,
0.0172882080078125,
0.00913238525390625,
0.002819061279296875,
0.004261016845703125,
-0.003749847412109375,
-0.0033359527587890625,
-0.01482391357421875,
0.0098419189453125,
0.034759521484375,
-0.0283660888671875,
-0.0280303955078125,
-0.01447296142578125,
0.03399658203125,
0.01325225830078125,
-0.0452880859375,
0.04754638671875,
0.025421142578125,
0.0625,
-0.0204010009765625,
0.01502227783203125,
0.042388916015625,
0.045806884765625,
0.005924224853515625,
0.00482940673828125,
-0.01666259765625,
-0.062042236328125,
0.004642486572265625,
-0.020050048828125,
-0.024993896484375,
0.06317138671875,
0.0799560546875,
0.0047149658203125,
0.002964019775390625,
-0.034088134765625,
-0.08740234375,
-0.0006556510925292969,
-0.0243988037109375,
0.031280517578125,
0.0152435302734375,
0.0055999755859375,
-0.005725860595703125,
-0.01094818115234375,
0.004917144775390625,
-0.0194091796875,
-0.01184844970703125,
0.0262603759765625,
-0.0303497314453125,
0.0731201171875,
0.0023136138916015625,
0.05224609375,
0.01189422607421875,
-0.0889892578125,
0.01268768310546875,
-0.0013256072998046875,
0.044586181640625,
0.00019490718841552734,
-0.005153656005859375,
-0.005023956298828125,
0.014068603515625,
0.016815185546875,
-0.033447265625,
0.01215362548828125,
0.036956787109375,
0.0254364013671875,
-0.041229248046875,
-0.01849365234375,
-0.0260009765625,
-0.060455322265625,
0.01439666748046875,
0.0650634765625,
0.01557159423828125,
0.0260009765625,
-0.01537322998046875,
0.0227203369140625,
-0.00726318359375,
-0.09564208984375,
-0.0082855224609375,
0.0198974609375,
-0.02191162109375,
0.00499725341796875,
-0.00177001953125,
0.03851318359375,
0.020599365234375,
0.0119171142578125,
0.01313018798828125,
0.033203125,
-0.05096435546875,
-0.005519866943359375,
-0.01206207275390625,
-0.03948974609375,
0.004199981689453125,
-0.0792236328125,
-0.0083465576171875,
-0.0343017578125,
-0.0008401870727539062,
-0.0174713134765625,
0.0096435546875,
0.0017671585083007812,
-0.0130157470703125,
-0.037994384765625,
0.0357666015625,
0.023773193359375,
-0.00231170654296875,
0.0145111083984375,
0.034912109375,
-0.04461669921875,
-0.0699462890625,
0.0177001953125,
0.03704833984375,
0.00339508056640625,
-0.0117950439453125,
0.004131317138671875,
-0.01509857177734375,
-0.01690673828125,
0.020782470703125,
-0.048126220703125,
0.011138916015625,
-0.00852203369140625,
0.055572509765625,
-0.0034999847412109375,
0.032958984375,
-0.038238525390625,
-0.0299072265625,
0.0400390625,
0.028411865234375,
-0.0604248046875,
-0.0264892578125,
-0.024993896484375,
0.03350830078125,
-0.02191162109375,
0.0634765625,
0.0689697265625,
-0.0159149169921875,
0.02850341796875,
-0.00331878662109375,
-0.0168304443359375,
0.01020050048828125,
0.006572723388671875,
-0.0114898681640625,
-0.0419921875,
-0.004360198974609375,
0.03607177734375,
0.03228759765625,
-0.0034236907958984375,
0.04345703125,
-0.00016188621520996094,
0.0036144256591796875,
0.008880615234375,
-0.0262908935546875,
-0.0229339599609375,
-0.045318603515625,
-0.054443359375,
0.016571044921875,
-0.0022716522216796875,
-0.0110931396484375,
0.0013990402221679688,
0.020904541015625,
0.0301971435546875,
-0.0609130859375,
0.0177459716796875,
-0.018890380859375,
-0.039825439453125,
-0.00379180908203125,
0.013397216796875,
-0.020751953125,
-0.007843017578125,
-0.000591278076171875,
0.056915283203125,
0.0005998611450195312,
-0.09033203125,
-0.032318115234375,
-0.01119232177734375,
-0.0218658447265625,
0.0032367706298828125,
-0.0316162109375,
-0.038330078125,
0.0245513916015625,
-0.00531768798828125,
0.01538848876953125,
-0.0190582275390625,
0.0290679931640625,
-0.019622802734375,
-0.0152587890625,
-0.033477783203125,
-0.0010833740234375,
0.0199737548828125,
0.0089874267578125,
0.00855255126953125,
0.044281005859375,
-0.0136566162109375,
0.01392364501953125,
-0.0191192626953125,
-0.0225830078125,
-0.00042057037353515625,
0.0007634162902832031,
-0.01953125,
0.03411865234375,
-0.0293121337890625,
0.044342041015625,
0.041107177734375,
-0.028472900390625,
0.018218994140625,
0.01873779296875,
0.01248931884765625,
0.049591064453125,
-0.0173187255859375,
-0.01468658447265625,
-0.035614013671875,
0.0214691162109375,
-0.0150909423828125,
-0.005077362060546875,
-0.0211639404296875,
0.0195465087890625,
-0.0236663818359375,
-0.03057861328125,
0.025238037109375,
-0.040924072265625,
0.004253387451171875,
-0.0185546875,
-0.004993438720703125,
-0.0046844482421875,
0.05487060546875,
-0.0258636474609375,
-0.004791259765625,
-0.038055419921875,
0.0031414031982421875,
-0.0230560302734375,
-0.0252227783203125,
-0.0267791748046875,
0.01371002197265625,
-0.074462890625,
-0.0191802978515625,
-0.030609130859375,
-0.022247314453125,
-0.0034046173095703125,
-0.0180206298828125,
-0.040252685546875,
-0.04852294921875,
0.043182373046875,
-0.045257568359375,
0.0244903564453125,
0.012176513671875,
0.0034332275390625,
-0.00690460205078125,
-0.033966064453125,
-0.009918212890625,
-0.11248779296875,
-0.02496337890625,
0.006275177001953125,
0.07080078125,
0.01421356201171875,
-0.031494140625,
-0.03546142578125,
0.035003662109375,
0.0019550323486328125,
-0.041412353515625,
-0.0007581710815429688,
0.00467681884765625,
0.009063720703125,
-0.0163421630859375,
-0.03851318359375,
-0.01029205322265625,
0.0006690025329589844,
0.0005588531494140625,
-0.027862548828125,
-0.004913330078125,
-0.04052734375,
-0.022735595703125,
-0.00623321533203125,
-0.042510986328125,
-0.10882568359375,
-0.041351318359375,
-0.027313232421875,
0.00685882568359375,
-0.0274810791015625,
0.0014200210571289062,
-0.0307769775390625,
-0.13134765625,
0.04815673828125,
-0.049224853515625,
0.003757476806640625,
-0.006381988525390625,
0.07354736328125,
0.01116180419921875,
0.000026524066925048828,
0.0164031982421875,
0.0096893310546875,
0.0369873046875,
-0.0193328857421875,
0.061614990234375,
0.0271148681640625,
-0.0263519287109375,
0.08404541015625,
0.007335662841796875,
0.02081298828125,
-0.03387451171875,
0.0289764404296875,
-0.0015888214111328125,
-0.0077972412109375,
0.0045623779296875,
0.002826690673828125,
0.01042938232421875,
-0.0030117034912109375,
-0.0269927978515625,
0.0213623046875,
-0.01076507568359375,
0.020660400390625,
-0.00008016824722290039,
0.00301361083984375,
-0.0232086181640625,
-0.019134521484375,
-0.00024271011352539062,
-0.0191802978515625,
0.0215606689453125,
0.0212860107421875,
0.0099639892578125,
0.00788116455078125,
0.0165252685546875,
-0.014495849609375,
0.0213165283203125,
0.0227813720703125,
-0.017822265625,
0.04937744140625,
-0.022186279296875,
-0.022979736328125,
0.0122528076171875,
-0.0199432373046875,
0.061981201171875,
-0.00844573974609375,
-0.06280517578125,
-0.016754150390625,
-0.035003662109375,
0.051055908203125,
0.017059326171875,
-0.0201873779296875,
0.0106964111328125,
0.033538818359375,
-0.03314208984375,
-0.0157928466796875,
0.025604248046875,
-0.03271484375,
-0.0374755859375,
0.06573486328125,
0.0302734375,
0.0135650634765625,
0.03497314453125,
0.04010009765625,
0.06207275390625,
0.0210113525390625,
-0.039520263671875,
0.065185546875,
0.039154052734375,
0.0030117034912109375,
-0.00662994384765625,
0.0489501953125,
-0.0033054351806640625,
-0.01433563232421875,
0.01187896728515625,
-0.034332275390625,
-0.0098419189453125,
0.013153076171875,
0.030303955078125,
0.0183258056640625,
-0.0043487548828125,
-0.0113372802734375,
-0.0268096923828125,
-0.0267791748046875,
0.06573486328125,
0.0283355712890625,
-0.08306884765625,
-0.0118560791015625,
0.035980224609375,
0.0137481689453125,
-0.0296478271484375,
-0.0052032470703125,
0.03485107421875,
-0.01442718505859375,
0.02691650390625,
0.00015151500701904297,
-0.0098114013671875,
-0.01183319091796875,
-0.0017862319946289062,
-0.043731689453125,
-0.01044464111328125,
0.004871368408203125,
-0.01274871826171875,
-0.0400390625,
-0.00044727325439453125,
-0.0205078125,
0.032501220703125,
0.033905029296875,
0.0291595458984375,
-0.047515869140625,
-0.00786590576171875,
-0.0114593505859375,
-0.03759765625,
0.07275390625,
0.0101165771484375,
-0.0614013671875,
-0.0069580078125,
-0.06195068359375,
-0.011383056640625,
-0.020416259765625,
-0.0211334228515625,
-0.0175933837890625,
0.000026881694793701172,
0.01535797119140625,
0.019561767578125,
0.014251708984375,
0.0027751922607421875,
-0.01277923583984375,
0.023223876953125,
0.0340576171875,
0.05767822265625,
-0.0020122528076171875,
0.09039306640625,
-0.018798828125,
0.032562255859375,
0.01053619384765625,
0.04412841796875,
-0.0301666259765625,
-0.0098419189453125,
-0.006595611572265625,
-0.038970947265625,
-0.0090789794921875,
0.0101165771484375,
0.0264434814453125,
0.030242919921875,
0.0274200439453125,
0.002391815185546875,
-0.0149383544921875,
0.015411376953125,
0.01029205322265625,
-0.03155517578125,
-0.0220489501953125,
0.0101470947265625,
-0.0003070831298828125,
-0.0311279296875,
0.00962066650390625,
0.0270538330078125,
-0.0275115966796875,
-0.052978515625,
0.041351318359375,
0.0199737548828125,
0.0107269287109375,
0.017242431640625,
-0.033050537109375,
0.057098388671875,
0.0975341796875,
0.01018524169921875,
0.05657958984375,
0.0271148681640625,
0.02783203125,
0.04010009765625,
0.00571441650390625,
-0.00921630859375,
-0.0005617141723632812,
0.0181732177734375,
-0.00844573974609375,
-0.0003693103790283203,
0.0163421630859375,
-0.0139312744140625,
0.01287078857421875,
0.09173583984375,
0.055450439453125,
-0.1085205078125,
0.0047607421875,
-0.01444244384765625,
-0.004985809326171875,
0.045501708984375,
-0.0197906494140625,
0.0213470458984375,
0.024261474609375,
0.056488037109375,
-0.0286407470703125,
-0.018463134765625,
0.0275421142578125,
-0.02325439453125,
-0.01806640625,
-0.0245513916015625,
0.0311431884765625,
0.0114288330078125,
0.00531768798828125,
-0.004138946533203125,
0.00396728515625,
-0.006992340087890625,
0.00917816162109375,
-0.0206146240234375,
-0.01392364501953125,
-0.044952392578125,
-0.0660400390625,
-0.03656005859375,
-0.03802490234375,
-0.01320648193359375,
0.02215576171875,
0.0001577138900756836,
0.0711669921875,
0.042510986328125,
0.00665283203125,
-0.003162384033203125,
0.0291595458984375,
-0.0028591156005859375,
-0.026214599609375,
-0.0256805419921875,
0.0041351318359375,
-0.0212554931640625,
-0.006710052490234375,
0.01461029052734375,
-0.0133819580078125,
-0.04522705078125,
0.0005321502685546875,
-0.0169219970703125,
0.043487548828125,
-0.0115966796875,
-0.0239715576171875,
0.0084075927734375,
-0.0205230712890625,
-0.013702392578125,
0.00714874267578125,
-0.0017366409301757812,
-0.0498046875,
-0.049468994140625,
-0.0172882080078125,
-0.083740234375,
0.020111083984375,
-0.003185272216796875,
-0.052032470703125,
0.08575439453125,
-0.0124359130859375,
0.032562255859375,
0.010498046875,
0.03082275390625,
-0.017364501953125,
0.022308349609375,
-0.03228759765625,
0.049407958984375,
0.04583740234375,
-0.00006496906280517578,
-0.0242156982421875,
-0.00858306884765625,
-0.0030117034912109375,
0.0204620361328125,
0.00836944580078125,
0.0234222412109375,
-0.034515380859375,
-0.01129150390625,
-0.0196533203125,
-0.00814056396484375,
-0.01364898681640625,
0.055023193359375,
0.0001817941665649414,
0.0350341796875,
0.0212249755859375,
-0.041961669921875,
0.026031494140625,
-0.037872314453125,
-0.016082763671875,
0.0223236083984375,
-0.0022602081298828125,
-0.01474761962890625,
-0.01450347900390625,
0.032440185546875,
-0.0511474609375,
-0.007221221923828125,
0.034149169921875,
-0.03961181640625,
-0.02911376953125,
0.004695892333984375,
0.005069732666015625,
-0.0087127685546875,
0.031097412109375,
-0.040130615234375,
0.03289794921875,
0.027984619140625,
-0.0299072265625,
0.0196380615234375,
0.0245361328125,
-0.032073974609375,
0.00506591796875,
-0.0033473968505859375,
0.044921875,
-0.02532958984375,
0.037841796875,
0.049346923828125,
0.0273895263671875,
-0.0027294158935546875,
-0.01776123046875,
0.059783935546875,
0.0562744140625,
-0.023895263671875,
-0.02703857421875,
0.0034923553466796875,
0.00013971328735351562,
0.0011692047119140625,
0.0267181396484375,
0.0306396484375,
0.07025146484375,
0.06927490234375,
-0.043792724609375,
0.004627227783203125,
0.004993438720703125,
0.0197906494140625,
-0.0167694091796875,
-0.00795745849609375,
-0.01020050048828125,
-0.00113677978515625,
-0.02117919921875,
-0.033447265625,
0.0102081298828125,
0.039764404296875,
0.037933349609375,
-0.007495880126953125,
-0.003936767578125,
-0.007686614990234375,
-0.026336669921875,
0.024566650390625,
-0.012908935546875,
0.047607421875,
-0.07867431640625,
-0.042327880859375,
0.01465606689453125,
0.07080078125,
0.0027370452880859375,
0.0289459228515625,
0.0050506591796875,
0.041290283203125,
0.0599365234375,
-0.0023021697998046875,
0.037109375,
0.003017425537109375,
0.01425933837890625,
-0.03326416015625,
0.01093292236328125,
-0.035736083984375,
-0.0248870849609375,
0.0016622543334960938,
0.0193023681640625,
-0.00960540771484375,
-0.034210205078125,
0.047149658203125,
-0.0101470947265625,
-0.0279693603515625,
0.01953125,
0.01146697998046875,
0.043121337890625,
0.006504058837890625,
-0.0225982666015625,
0.005222320556640625,
-0.01078033447265625,
-0.0751953125,
0.01210784912109375,
0.03228759765625,
-0.02239990234375,
0.0168914794921875,
0.0048675537109375,
-0.0210723876953125,
0.00679779052734375,
0.013427734375,
0.0081634521484375,
-0.0105133056640625,
0.0191497802734375,
-0.011199951171875,
0.00373077392578125,
0.01332855224609375,
0.00978851318359375,
0.03155517578125,
0.0111083984375,
0.053192138671875,
-0.036376953125,
0.0204010009765625,
-0.033203125,
0.01708984375,
-0.044097900390625,
-0.0118865966796875,
0.03533935546875,
0.0038166046142578125,
-0.020660400390625,
-0.00678253173828125,
-0.02032470703125,
0.032135009765625,
0.0166168212890625,
-0.0031642913818359375,
0.0240478515625,
-0.0154571533203125,
0.00547027587890625,
0.0029850006103515625,
0.04693603515625,
-0.0237274169921875,
-0.0517578125,
-0.0853271484375,
-0.02056884765625,
0.031982421875,
0.03375244140625,
-0.00024235248565673828,
0.0307769775390625,
-0.06622314453125,
-0.0002448558807373047,
-0.0204010009765625,
-0.017608642578125,
-0.07513427734375,
0.005615234375,
-0.06719970703125,
0.02154541015625,
0.043212890625,
0.006587982177734375,
0.0288543701171875,
0.02581787109375,
-0.0253143310546875,
0.050323486328125,
-0.02203369140625,
-0.0235595703125,
0.004547119140625,
0.0186309814453125,
-0.0167694091796875,
0.00194549560546875,
0.01490020751953125,
-0.0253448486328125,
-0.0203857421875,
0.0186920166015625,
-0.0283050537109375,
-0.0232086181640625,
-0.0152587890625,
0.00945281982421875,
-0.0182952880859375,
-0.09393310546875,
-0.09710693359375,
0.0303802490234375,
0.0230712890625,
-0.0007090568542480469,
-0.060089111328125,
0.02691650390625,
-0.035552978515625,
0.092041015625,
-0.0364990234375,
0.00299072265625,
-0.0027179718017578125,
0.0259552001953125,
-0.0208282470703125,
0.0219879150390625,
-0.026947021484375,
-0.019866943359375,
-0.004428863525390625,
-0.01031494140625,
0.0262603759765625,
0.005084991455078125,
-0.040771484375,
-0.027374267578125,
-0.039154052734375,
0.0276947021484375,
-0.03582763671875,
-0.0126190185546875,
0.00064849853515625,
0.0030612945556640625,
-0.00855255126953125,
-0.0235443115234375,
-0.00035834312438964844,
-0.01453399658203125,
-0.0195770263671875,
-0.0116424560546875,
-0.00475311279296875,
0.005420684814453125,
-0.03802490234375,
-0.05517578125,
0.06036376953125,
-0.0032329559326171875,
-0.0128631591796875,
-0.027496337890625,
0.01108551025390625,
0.0064849853515625,
0.0133209228515625,
-0.005428314208984375,
-0.04534912109375,
-0.038421630859375,
0.0047454833984375,
0.027801513671875,
-0.02435302734375,
0.04046630859375,
0.0029354095458984375,
-0.031890869140625,
0.0292205810546875,
0.032958984375,
0.02825927734375,
-0.01403045654296875,
-0.0029010772705078125,
0.058502197265625,
0.0595703125,
0.0206146240234375,
0.03265380859375,
0.02520751953125,
-0.060577392578125,
-0.0177764892578125,
-0.056304931640625,
-0.00913238525390625,
-0.024627685546875,
0.0400390625,
0.044921875,
-0.004726409912109375,
-0.00986480712890625,
-0.030487060546875,
-0.0528564453125,
-0.042144775390625,
-0.0147247314453125,
0.034759521484375,
-0.08331298828125,
0.018768310546875,
0.0169677734375,
0.00553131103515625,
-0.0079498291015625,
0.037628173828125,
-0.01398468017578125,
-0.010498046875,
0.035308837890625,
-0.0233306884765625,
-0.0418701171875,
-0.0017385482788085938,
0.07421875,
-0.054718017578125,
-0.0294189453125,
0.00516510009765625,
0.006542205810546875,
0.004001617431640625,
-0.0350341796875,
-0.0224761962890625,
0.0186309814453125,
-0.0297698974609375,
0.0129241943359375,
-0.0005879402160644531,
0.03936767578125,
-0.0289154052734375,
0.002780914306640625,
-0.00018203258514404297,
0.02313232421875,
-0.00760650634765625,
0.0257720947265625,
-0.0094451904296875,
0.0546875,
0.00946807861328125,
0.0259857177734375,
-0.0225067138671875,
0.01355743408203125,
-0.01947021484375,
0.001033782958984375,
0.0178070068359375,
0.009552001953125,
0.057159423828125,
0.002704620361328125,
0.01215362548828125,
0.017608642578125,
-0.0022296905517578125,
-0.0219268798828125,
0.0190582275390625,
0.01457977294921875,
0.019073486328125,
0.00655364990234375
] |
40d64e34bfb46a252db4a116e22e9395adc26e22 | Wordpress Stackexchange
Q: WP Asking for FTP Credentials with XAMPP Localhost Total newbie here. I'm a pretty good user of applications, but have never written a single line of code. Installed XAMPP and WP, purchased a template from Envato and plan on working on it over the weekend. Followed instructions for both WP and XAMPP, and all seems to be fine. Running solely on local machine, MAC running Mojave.
Go to install the .zip file on WP, and it asks for credentials for FTP. Not sure what I need to put in here, or what to do to change in order to install the .zip file for my template site.
Any suggestions or recommendations are appreciated in advance.
JVN
A: Congratulation Jon, welcome to the WordPress world!
To fix the issue, just add the following line of code in your installed WordPress's wp-config.php file. It's a PHP constant declaration which tells the WordPress to avoid the FTP. That's it.
define( 'FS_METHOD', 'direct' );
For more info: https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants
| Q: WP Asking for FTP Credentials with XAMPP Localhost Total newbie here. I'm a pretty good user of applications, but have never written a single line of code. Installed XAMPP and WP, purchased a template from Envato and plan on working on it over the weekend. Followed instructions for both WP and XAMPP, and all seems to be fine. Running solely on local machine, MAC running Mojave.
Go to install the .zip file on WP, and it asks for credentials for FTP. Not sure what I need to put in here, or what to do to change in order to install the .zip file for my template site.
Any suggestions or recommendations are appreciated in advance.
JVN
A: Congratulation Jon, welcome to the WordPress world!
To fix the issue, just add the following line of code in your installed WordPress's wp-config.php file. It's a PHP constant declaration which tells the WordPress to avoid the FTP. That's it.
define( 'FS_METHOD', 'direct' );
For more info: https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants
A: In my case Im using a Linux machine (Debian) and I reckon there must be an authorization step included into this process to get the update done.
So, this is what I got in the first trial:
Downloading update from https://downloads.wordpress.org/release/wordpress-5.7.1-no-content.zip…
The authenticity of wordpress-5.7.1-no-content.zip could not be verified as no signature was found.
Unpacking the update…
Could not create directory.
Installation failed.
Thanks in advance!
So my solution was Updating WP manually. Here the details to follow:
https://wordpress.org/support/article/updating-wordpress/#manual-update
A: In my case, only adding the 'define' line in my wp-config wasn't working.
I also had to give full permission to admin & everyone to read/write my xampp folder and its subfolder :
*
*right-click on the folder itself
*give permission to modify by clicking on the lock
*change admin & everyone permission to read and write in the 'sharing & permissions' menu
*click on the ... below (next to + and - buttons) and select (apply to enclosed items)
I don't know if this is related, but after this change, my MySql Database stopped working. I found this debug for that issue :
*
*open terminal and enter :
sudo /Applications/XAMPP/xamppfiles/bin/mysql.server start
Hope this helps.
| wordpress | {
"language": "en",
"length": 362,
"provenance": "stackexchange_00019.jsonl.gz:490472",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/318824"
} | [
-0.0005388259887695312,
0.03240966796875,
-0.0261688232421875,
0.02294921875,
0.003032684326171875,
-0.03533935546875,
0.01275634765625,
-0.053985595703125,
-0.0007534027099609375,
-0.003360748291015625,
-0.056121826171875,
0.002368927001953125,
-0.0261383056640625,
-0.016937255859375,
0.0169677734375,
-0.03741455078125,
0.01314544677734375,
0.0211944580078125,
0.0186767578125,
-0.0261993408203125,
0.0189208984375,
-0.0012264251708984375,
-0.01111602783203125,
0.04205322265625,
0.0124053955078125,
0.050506591796875,
0.108154296875,
-0.02618408203125,
0.035736083984375,
-0.0176239013671875,
0.015411376953125,
-0.053741455078125,
0.0262603759765625,
0.03741455078125,
-0.05157470703125,
0.02239990234375,
-0.039031982421875,
0.0303192138671875,
-0.017852783203125,
0.05059814453125,
0.0035343170166015625,
0.00925445556640625,
0.0129547119140625,
0.055572509765625,
-0.0259246826171875,
-0.05828857421875,
0.02728271484375,
-0.03192138671875,
0.0207366943359375,
0.01515960693359375,
-0.003292083740234375,
-0.006343841552734375,
-0.0036182403564453125,
-0.0194549560546875,
-0.018463134765625,
-0.035369873046875,
-0.0179901123046875,
0.020538330078125,
0.0167694091796875,
-0.032379150390625,
-0.0251922607421875,
0.007648468017578125,
0.0249176025390625,
0.0260467529296875,
-0.0281829833984375,
0.0084075927734375,
0.01042938232421875,
-0.0020694732666015625,
0.0049591064453125,
-0.0216522216796875,
-0.00597381591796875,
0.01232147216796875,
0.0007491111755371094,
-0.04498291015625,
-0.0020618438720703125,
0.01219940185546875,
0.0086212158203125,
-0.0259552001953125,
-0.0003635883331298828,
0.006740570068359375,
0.0209197998046875,
-0.01116180419921875,
-0.025970458984375,
-0.030670166015625,
0.0181427001953125,
-0.00865936279296875,
-0.0075836181640625,
-0.0163726806640625,
-0.0015592575073242188,
0.028656005859375,
-0.017547607421875,
0.0156097412109375,
0.035430908203125,
0.01387786865234375,
-0.027496337890625,
-0.0029048919677734375,
0.016448974609375,
0.052215576171875,
-0.04388427734375,
-0.0158233642578125,
-0.021728515625,
-0.0211029052734375,
0.0123138427734375,
-0.031890869140625,
-0.0125885009765625,
0.038482666015625,
-0.0069427490234375,
0.04217529296875,
0.0254364013671875,
0.0239715576171875,
0.0014057159423828125,
-0.029449462890625,
0.005035400390625,
-0.03314208984375,
-0.019744873046875,
0.04461669921875,
0.023193359375,
-0.018951416015625,
0.005977630615234375,
-0.01715087890625,
0.0215606689453125,
0.0303497314453125,
-0.035980224609375,
0.014923095703125,
-0.00897216796875,
-0.005580902099609375,
-0.0166778564453125,
-0.0106658935546875,
-0.042510986328125,
0.056640625,
-0.0309600830078125,
-0.013885498046875,
0.024749755859375,
0.047760009765625,
0.0052642822265625,
-0.02984619140625,
0.036346435546875,
0.03021240234375,
-0.0009150505065917969,
0.01715087890625,
0.0095062255859375,
-0.02374267578125,
-0.00434112548828125,
0.0006055831909179688,
0.015533447265625,
0.00493621826171875,
0.0279388427734375,
0.0341796875,
-0.00862884521484375,
-0.036041259765625,
0.036590576171875,
0.0243988037109375,
-0.00859832763671875,
0.042877197265625,
0.0089874267578125,
0.0372314453125,
0.0262298583984375,
0.004154205322265625,
-0.0305938720703125,
0.0036182403564453125,
-0.01157379150390625,
-0.009063720703125,
-0.00981903076171875,
-0.03668212890625,
-0.046661376953125,
0.0163726806640625,
0.0268707275390625,
-0.0006532669067382812,
0.007213592529296875,
-0.004779815673828125,
0.00202178955078125,
-0.03436279296875,
0.03515625,
-0.0012063980102539062,
-0.0191650390625,
0.0224151611328125,
0.041778564453125,
0.006885528564453125,
0.037872314453125,
0.05145263671875,
0.00499725341796875,
-0.0123291015625,
0.107421875,
-0.049774169921875,
-0.039398193359375,
-0.0035991668701171875,
0.028594970703125,
0.045074462890625,
0.0089263916015625,
0.0289306640625,
0.028289794921875,
-0.0007643699645996094,
-0.03668212890625,
0.0455322265625,
-0.0286712646484375,
-0.02215576171875,
0.0185546875,
0.034637451171875,
-0.0200347900390625,
-0.0274200439453125,
0.0220489501953125,
-0.023223876953125,
0.0081329345703125,
-0.033721923828125,
-0.044921875,
-0.02032470703125,
-0.01318359375,
0.018524169921875,
0.01065826416015625,
-0.0019893646240234375,
0.00701141357421875,
0.01250457763671875,
-0.00548553466796875,
-0.055023193359375,
-0.0509033203125,
0.004718780517578125,
-0.04119873046875,
0.0758056640625,
0.0010614395141601562,
0.08148193359375,
-0.03594970703125,
-0.046905517578125,
-0.0004143714904785156,
-0.048828125,
-0.0155792236328125,
-0.00337982177734375,
-0.024688720703125,
0.005237579345703125,
-0.038543701171875,
0.01110076904296875,
0.01013946533203125,
0.0230712890625,
-0.027862548828125,
-0.012908935546875,
-0.0286865234375,
0.0133209228515625,
-0.020111083984375,
-0.0191497802734375,
-0.001956939697265625,
0.042724609375,
0.042083740234375,
0.0064544677734375,
0.00534820556640625,
0.0135040283203125,
0.0255889892578125,
-0.0055694580078125,
0.033905029296875,
-0.032501220703125,
0.0062408447265625,
0.01168060302734375,
0.001415252685546875,
-0.01401519775390625,
0.01641845703125,
-0.038818359375,
0.0049896240234375,
0.0238037109375,
-0.021148681640625,
-0.0155792236328125,
0.0296478271484375,
-0.0308074951171875,
0.01410675048828125,
-0.048797607421875,
-0.031097412109375,
-0.0027027130126953125,
-0.00542449951171875,
0.0283050537109375,
0.00498199462890625,
0.01309967041015625,
-0.031524658203125,
0.0246429443359375,
0.0182647705078125,
-0.00008732080459594727,
-0.00569915771484375,
0.0135498046875,
0.01739501953125,
0.0010623931884765625,
-0.036285400390625,
0.016937255859375,
-0.004482269287109375,
0.003391265869140625,
-0.0164947509765625,
-0.02032470703125,
0.008392333984375,
0.01348114013671875,
-0.005298614501953125,
-0.07763671875,
0.05322265625,
0.06878662109375,
-0.005481719970703125,
-0.0214691162109375,
0.0100555419921875,
0.0259857177734375,
-0.035308837890625,
0.0394287109375,
-0.000972747802734375,
-0.01751708984375,
0.00904083251953125,
-0.03009033203125,
0.01824951171875,
-0.028564453125,
0.03118896484375,
0.052459716796875,
-0.0259552001953125,
0.02239990234375,
-0.0121307373046875,
0.032684326171875,
-0.017425537109375,
0.0174102783203125,
-0.0094451904296875,
-0.0178680419921875,
-0.03192138671875,
0.003986358642578125,
0.0008482933044433594,
-0.0086212158203125,
-0.023834228515625,
-0.055328369140625,
-0.0460205078125,
-0.01361846923828125,
-0.102294921875,
-0.05548095703125,
0.025146484375,
-0.0318603515625,
0.0237579345703125,
-0.005741119384765625,
-0.00676727294921875,
-0.034393310546875,
0.0216217041015625,
0.006710052490234375,
0.0172882080078125,
-0.03155517578125,
-0.06890869140625,
-0.06671142578125,
-0.0869140625,
-0.03399658203125,
-0.004222869873046875,
0.00403594970703125,
0.006038665771484375,
0.09014892578125,
0.00827789306640625,
-0.048919677734375,
-0.01549530029296875,
-0.0208587646484375,
-0.0238800048828125,
0.0008535385131835938,
-0.0018978118896484375,
-0.0460205078125,
0.03289794921875,
-0.0205841064453125,
0.00702667236328125,
0.0160369873046875,
0.025787353515625,
-0.01316070556640625,
0.00881195068359375,
-0.03790283203125,
-0.022857666015625,
0.036102294921875,
0.0088348388671875,
-0.0435791015625,
-0.02154541015625,
-0.08099365234375,
0.004261016845703125,
0.014251708984375,
-0.027801513671875,
0.0214080810546875,
0.00943756103515625,
-0.039459228515625,
0.01203155517578125,
-0.0145111083984375,
-0.01430511474609375,
-0.00868988037109375,
0.00785064697265625,
-0.0213775634765625,
0.03271484375,
-0.01107025146484375,
-0.0182037353515625,
-0.01264190673828125,
0.042755126953125,
-0.0245513916015625,
-0.004611968994140625,
0.016326904296875,
-0.023681640625,
0.01311492919921875,
-0.0518798828125,
-0.01372528076171875,
-0.10333251953125,
0.06866455078125,
-0.0159149169921875,
0.001049041748046875,
-0.0660400390625,
-0.047454833984375,
-0.004909515380859375,
0.13232421875,
0.0037441253662109375,
-0.0341796875,
-0.0078277587890625,
0.035491943359375,
-0.045806884765625,
-0.0416259765625,
0.0218353271484375,
-0.007526397705078125,
0.0099029541015625,
-0.018402099609375,
-0.0296478271484375,
-0.01201629638671875,
0.022216796875,
-0.099609375,
0.0305633544921875,
-0.0338134765625,
0.0054473876953125,
-0.021240234375,
0.0293121337890625,
-0.0261077880859375,
0.021728515625,
-0.041778564453125,
0.0322265625,
-0.0582275390625,
-0.07684326171875,
-0.027069091796875,
-0.0155792236328125,
0.07232666015625,
0.0034656524658203125,
0.00821685791015625,
-0.0200347900390625,
0.058319091796875,
-0.016387939453125,
0.024139404296875,
-0.0216064453125,
0.0203094482421875,
-0.0247802734375,
0.01113128662109375,
-0.0024051666259765625,
0.003726959228515625,
-0.01727294921875,
-0.03271484375,
-0.042877197265625,
-0.036773681640625,
-0.0128936767578125,
0.006534576416015625,
0.033477783203125,
-0.012542724609375,
-0.023956298828125,
-0.01403045654296875,
0.02593994140625,
0.0132598876953125,
-0.0086822509765625,
0.024810791015625,
-0.0095672607421875,
-0.01222991943359375,
0.07366943359375,
0.014068603515625,
-0.00464630126953125,
-0.0008001327514648438,
0.1043701171875,
0.0064544677734375,
-0.032501220703125,
-0.065185546875,
-0.0251922607421875,
0.042938232421875,
0.00931549072265625,
0.03643798828125,
0.047393798828125,
-0.007808685302734375,
0.00717926025390625,
0.0295867919921875,
0.003818511962890625,
0.00612640380859375,
0.0257110595703125,
0.000579833984375,
-0.0231475830078125,
0.0235443115234375,
-0.00960540771484375,
-0.007282257080078125,
-0.0037078857421875,
0.02606201171875,
-0.0021800994873046875,
0.0792236328125,
0.0112152099609375,
0.00466156005859375,
-0.054962158203125,
-0.0032825469970703125,
-0.050079345703125,
0.029388427734375,
-0.02398681640625,
-0.0264434814453125,
-0.00439453125,
0.005859375,
-0.03436279296875,
-0.05145263671875,
-0.0292205810546875,
0.0024852752685546875,
0.00691986083984375,
0.013214111328125,
0.0002875328063964844,
0.00377655029296875,
-0.033660888671875,
-0.0234527587890625,
-0.01824951171875,
0.05987548828125,
-0.0031261444091796875,
-0.0648193359375,
0.029327392578125,
0.0035953521728515625,
0.015380859375,
0.035919189453125,
-0.0295867919921875,
0.01535797119140625,
-0.0235137939453125,
-0.00905609130859375,
0.016143798828125,
-0.031982421875,
-0.059051513671875,
-0.0224456787109375,
-0.03326416015625,
0.0022640228271484375,
-0.0252685546875,
0.0275115966796875,
0.01036834716796875,
-0.030853271484375,
0.0225677490234375,
0.003711700439453125,
-0.0275115966796875,
0.0117950439453125,
0.01043701171875,
0.01354217529296875,
0.01076507568359375,
0.0012054443359375,
-0.0147552490234375,
0.05426025390625,
-0.0462646484375,
-0.01885986328125,
0.0155487060546875,
0.06939697265625,
-0.04681396484375,
-0.046234130859375,
0.037139892578125,
-0.0316162109375,
-0.00537109375,
0.0158538818359375,
0.017578125,
-0.005466461181640625,
-0.0196380615234375,
-0.005092620849609375,
0.031036376953125,
0.0031414031982421875,
-0.0148162841796875,
0.030975341796875,
-0.0238800048828125,
0.01708984375,
0.04718017578125,
-0.01367950439453125,
-0.01372528076171875,
-0.00930023193359375,
0.0305023193359375,
-0.0269927978515625,
-0.016326904296875,
-0.0037384033203125,
0.034332275390625,
-0.050506591796875,
-0.00432586669921875,
0.054656982421875,
-0.016876220703125,
0.016448974609375,
-0.026031494140625,
-0.004116058349609375,
0.0372314453125,
0.00273895263671875,
0.045867919921875,
0.016845703125,
-0.057037353515625,
-0.0252532958984375,
-0.02496337890625,
-0.03131103515625,
0.0154266357421875,
0.024871826171875,
-0.032012939453125,
0.0244903564453125,
0.013671875,
0.015167236328125,
-0.03546142578125,
-0.0300750732421875,
-0.0269012451171875,
0.044769287109375,
0.02911376953125,
0.061859130859375,
-0.01381683349609375,
0.000017821788787841797,
0.004848480224609375,
-0.014678955078125,
-0.029510498046875,
0.011077880859375,
0.032440185546875,
-0.01708984375,
0.0279693603515625,
-0.0567626953125,
-0.037811279296875,
-0.0008058547973632812,
-0.03753662109375,
-0.00856781005859375,
-0.0018434524536132812,
-0.01190948486328125,
-0.031829833984375,
0.00020003318786621094,
0.0187530517578125,
-0.0133514404296875,
0.05938720703125,
0.0223388671875,
-0.032867431640625,
0.0265960693359375,
-0.033538818359375,
0.022003173828125,
-0.006412506103515625,
-0.0137939453125,
0.0208587646484375,
-0.02435302734375,
0.01412200927734375,
0.041900634765625,
-0.0201416015625,
0.0546875,
0.11962890625,
0.01580810546875,
0.07159423828125,
0.050262451171875,
0.01129150390625,
0.01025390625,
0.01030731201171875,
-0.04644775390625,
0.0056304931640625,
0.032379150390625,
0.01287841796875,
-0.007419586181640625,
0.0195465087890625,
-0.01515960693359375,
0.018096923828125,
0.0343017578125,
0.088623046875,
-0.025543212890625,
-0.0005431175231933594,
0.039825439453125,
-0.060333251953125,
-0.0384521484375,
0.00431060791015625,
-0.0163421630859375,
-0.03143310546875,
0.03326416015625,
-0.0302276611328125,
-0.0192108154296875,
-0.0010080337524414062,
-0.0106201171875,
-0.0013856887817382812,
0.042083740234375,
0.06640625,
0.0126953125,
-0.055023193359375,
-0.03741455078125,
0.0243988037109375,
-0.0259857177734375,
0.0199127197265625,
-0.008453369140625,
-0.034088134765625,
-0.06787109375,
-0.045074462890625,
-0.064453125,
-0.0159149169921875,
-0.042236328125,
0.0202484130859375,
-0.0017547607421875,
0.04266357421875,
0.0200653076171875,
0.01385498046875,
-0.007396697998046875,
-0.0028095245361328125,
0.0188751220703125,
-0.02392578125,
-0.0181884765625,
0.00661468505859375,
0.04010009765625,
-0.05145263671875,
0.03460693359375,
-0.01470947265625,
0.01113128662109375,
-0.01812744140625,
-0.0033092498779296875,
0.07965087890625,
-0.007465362548828125,
-0.0188446044921875,
0.0634765625,
0.03521728515625,
-0.0494384765625,
0.01702880859375,
0.034759521484375,
-0.06903076171875,
-0.039520263671875,
0.039642333984375,
-0.023529052734375,
-0.004291534423828125,
0.034423828125,
0.0020389556884765625,
0.07244873046875,
0.0300750732421875,
-0.040557861328125,
0.03857421875,
0.042694091796875,
-0.05572509765625,
0.030731201171875,
-0.0039825439453125,
0.0304412841796875,
0.027496337890625,
0.03363037109375,
-0.0116729736328125,
-0.0129852294921875,
0.01971435546875,
0.056243896484375,
0.037109375,
0.01708984375,
-0.029693603515625,
-0.013946533203125,
0.04461669921875,
0.0543212890625,
0.0042572021484375,
0.0216827392578125,
-0.0195159912109375,
0.00861358642578125,
0.01678466796875,
-0.04638671875,
0.0230865478515625,
-0.024139404296875,
0.0049285888671875,
-0.004451751708984375,
0.0231781005859375,
0.027496337890625,
0.005092620849609375,
0.0187225341796875,
-0.0265045166015625,
-0.0005230903625488281,
0.0183563232421875,
0.04107666015625,
-0.01153564453125,
0.01038360595703125,
-0.0282745361328125,
-0.0311431884765625,
-0.00406646728515625,
-0.037384033203125,
0.034576416015625,
-0.033233642578125,
-0.0017242431640625,
0.025299072265625,
0.0133514404296875,
0.00370025634765625,
0.002597808837890625,
-0.005565643310546875,
0.035125732421875,
-0.00787353515625,
0.033233642578125,
0.0186767578125,
0.016876220703125,
-0.0281829833984375,
0.004741668701171875,
0.047119140625,
0.052581787109375,
-0.037506103515625,
-0.032867431640625,
-0.01506805419921875,
-0.0027313232421875,
0.034393310546875,
-0.0277862548828125,
0.031951904296875,
-0.007411956787109375,
-0.00806427001953125,
-0.00426483154296875,
0.007747650146484375,
0.0223388671875,
-0.0200347900390625,
0.0004031658172607422,
0.02105712890625,
-0.01509857177734375,
0.033538818359375,
0.0055694580078125,
-0.015472412109375,
-0.0007739067077636719,
0.0209808349609375,
0.0018262863159179688,
0.00922393798828125,
-0.02239990234375,
0.014312744140625,
0.033782958984375,
0.01541900634765625,
-0.019989013671875,
-0.040740966796875,
-0.020294189453125,
-0.08734130859375,
0.02020263671875,
0.040985107421875,
0.032012939453125,
-0.00978851318359375,
0.023956298828125,
-0.004505157470703125,
-0.049224853515625,
-0.00667572021484375,
0.020416259765625,
-0.0275726318359375,
-0.0026340484619140625,
-0.0394287109375,
0.0009531974792480469,
0.0152130126953125,
-0.01363372802734375,
0.0190582275390625,
-0.0123291015625,
0.058319091796875,
-0.033203125,
0.061859130859375,
-0.01331329345703125,
-0.017669677734375,
0.04559326171875,
-0.005115509033203125,
0.08074951171875,
0.0007328987121582031,
-0.06610107421875,
-0.0094451904296875,
0.036376953125,
-0.034912109375,
-0.007411956787109375,
0.028167724609375,
-0.022979736328125,
0.00739288330078125,
-0.01236724853515625,
-0.055694580078125,
0.031341552734375,
0.01922607421875,
0.002384185791015625,
0.01155853271484375,
-0.009918212890625,
-0.047271728515625,
-0.00516510009765625,
-0.01959228515625,
-0.028106689453125,
0.07574462890625,
0.0032444000244140625,
0.10174560546875,
-0.0498046875,
0.0299072265625,
0.0269622802734375,
0.0068206787109375,
0.00494384765625,
0.005672454833984375,
0.029052734375,
0.0038166046142578125,
-0.0011234283447265625,
-0.030487060546875,
-0.06292724609375,
0.0265045166015625,
-0.0011835098266601562,
-0.007358551025390625,
0.0181121826171875,
-0.0232696533203125,
0.0064697265625,
0.00865936279296875,
0.05584716796875,
-0.0299072265625,
-0.06256103515625,
-0.03656005859375,
0.0210723876953125,
0.0017099380493164062,
0.02294921875,
-0.01788330078125,
0.00873565673828125,
-0.00687408447265625,
-0.041656494140625,
0.02886962890625,
-0.0255889892578125,
0.037506103515625,
0.03265380859375,
-0.00771331787109375,
-0.03729248046875,
0.00301361083984375,
-0.004241943359375,
-0.0272216796875,
0.0035610198974609375,
0.026519775390625,
-0.00315093994140625,
-0.0215911865234375,
-0.026763916015625,
0.007381439208984375,
0.0248565673828125,
0.00778961181640625,
0.0146636962890625,
-0.002773284912109375,
-0.006984710693359375,
0.002094268798828125,
-0.051971435546875,
-0.0198822021484375,
-0.035980224609375,
-0.008148193359375,
0.051116943359375,
-0.0484619140625,
-0.0011510848999023438,
-0.0849609375,
0.0203094482421875,
0.031463623046875,
-0.0236968994140625,
0.003459930419921875,
-0.032501220703125,
-0.046417236328125,
0.084228515625,
-0.01444244384765625,
0.007049560546875,
-0.002498626708984375,
0.0289764404296875,
-0.0253143310546875,
-0.027099609375,
-0.02569580078125,
0.03509521484375,
-0.02447509765625,
0.0280303955078125,
0.0220489501953125,
-0.006740570068359375,
0.027008056640625,
0.0254058837890625,
0.006351470947265625,
0.07855224609375,
-0.0236053466796875,
-0.037994384765625,
-0.003139495849609375,
-0.026641845703125,
0.0086822509765625,
-0.02001953125,
0.01416015625,
-0.0775146484375,
-0.01529693603515625,
-0.0186920166015625,
0.00551605224609375,
-0.00628662109375,
-0.06402587890625,
-0.09423828125,
0.053009033203125,
-0.01751708984375,
-0.034637451171875,
-0.046783447265625,
-0.0137176513671875,
-0.0126953125,
0.0665283203125,
-0.0021648406982421875,
0.01392364501953125,
-0.026611328125,
0.023773193359375,
0.003559112548828125,
-0.0015544891357421875,
0.0307464599609375,
0.0304718017578125,
0.0023746490478515625,
0.048126220703125,
0.026519775390625,
-0.050201416015625,
0.00685882568359375,
-0.005847930908203125,
0.025787353515625,
0.07196044921875,
-0.0056610107421875,
-0.026824951171875,
-0.014404296875,
-0.04522705078125,
-0.00489044189453125,
0.003215789794921875,
0.01096343994140625,
0.0054473876953125,
0.0034694671630859375,
0.02203369140625,
-0.0073394775390625,
-0.0258636474609375,
-0.0303497314453125,
-0.0216522216796875,
-0.0004019737243652344,
-0.007053375244140625,
0.0101470947265625,
-0.04815673828125,
0.005950927734375,
-0.001834869384765625,
-0.006427764892578125,
-0.006839752197265625,
-0.0270233154296875,
-0.02093505859375,
-0.0186920166015625,
-0.0181732177734375,
-0.005657196044921875,
-0.0033740997314453125,
0.01403045654296875,
0.080078125,
-0.04656982421875,
-0.008453369140625,
0.0259857177734375,
0.01432037353515625,
0.0297088623046875,
0.00563812255859375,
0.0290679931640625,
-0.0151824951171875,
-0.048492431640625,
-0.00547027587890625,
-0.00537872314453125,
0.05181884765625,
-0.0286865234375,
-0.04681396484375,
0.011199951171875,
0.01229095458984375,
-0.00893402099609375,
0.0207061767578125,
-0.01264190673828125,
0.039276123046875,
-0.00713348388671875,
0.04327392578125,
-0.00843048095703125,
-0.026580810546875,
-0.0171661376953125,
0.0162200927734375,
-0.05731201171875,
0.023773193359375,
-0.053497314453125,
0.01280975341796875,
0.005023956298828125,
0.0217437744140625,
-0.0039043426513671875,
-0.037261962890625,
0.0106964111328125,
0.0017862319946289062,
0.024261474609375,
0.0091552734375
] |
063b5703ca185e9f7c08921cc93e7c8c1e4d0a0f | Wordpress Stackexchange
Q: WooCommerce changes lost password reset link When I activate WooCommerce plugin, the lost your password does not work and can't sent password reset email to users. But when I deactivate WooCommerce, the lost your password link at login page starts working.
Is it possible to not use WooCommerce link because it is not working and changes the reset link.
A: I hope think this may work.
Insert this code into php file or php insert plugin, WooCommerce will no longer change password reset link.
function reset_pass_url() {
$siteURL = get_option('siteurl');
return "{$siteURL}/wp-login.php?action=lostpassword";
}
add_filter( 'lostpassword_url', 'reset_pass_url', 11, 0 );
| Q: WooCommerce changes lost password reset link When I activate WooCommerce plugin, the lost your password does not work and can't sent password reset email to users. But when I deactivate WooCommerce, the lost your password link at login page starts working.
Is it possible to not use WooCommerce link because it is not working and changes the reset link.
A: I hope think this may work.
Insert this code into php file or php insert plugin, WooCommerce will no longer change password reset link.
function reset_pass_url() {
$siteURL = get_option('siteurl');
return "{$siteURL}/wp-login.php?action=lostpassword";
}
add_filter( 'lostpassword_url', 'reset_pass_url', 11, 0 );
A: If you'd like to do this without code, open the WordPress admin and then click "WooCommerce", "Settings", "Advanced". Under "Account Endpoints", delete "lost-password" from the "Lost password" field.
A: Another way to do this is to add this to your theme's functions.php file:
remove_filter('lostpassword_url', 'wc_lostpassword_url', 10, 1);
This removes the modification added by WooCommerce.
| wordpress | {
"language": "en",
"length": 155,
"provenance": "stackexchange_00019.jsonl.gz:490477",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/318853"
} | [
0.0289306640625,
-0.00445556640625,
-0.0084686279296875,
0.01436614990234375,
-0.00823974609375,
-0.039215087890625,
0.0211944580078125,
-0.04815673828125,
0.01025390625,
0.031707763671875,
0.005279541015625,
-0.022247314453125,
-0.00640869140625,
-0.025848388671875,
-0.02789306640625,
-0.03082275390625,
-0.00701141357421875,
0.05120849609375,
0.032501220703125,
-0.012054443359375,
-0.00615692138671875,
-0.0061798095703125,
0.0019159317016601562,
-0.0088043212890625,
-0.0006403923034667969,
0.050079345703125,
0.146728515625,
-0.0309600830078125,
0.0279693603515625,
-0.005344390869140625,
0.0208282470703125,
-0.07952880859375,
0.037109375,
-0.006671905517578125,
-0.0457763671875,
-0.06475830078125,
0.0006699562072753906,
-0.01544952392578125,
-0.057403564453125,
0.04742431640625,
0.021575927734375,
-0.00556182861328125,
-0.004474639892578125,
-0.011383056640625,
-0.018280029296875,
-0.03704833984375,
0.029937744140625,
-0.0225830078125,
0.034576416015625,
0.0251922607421875,
0.00945281982421875,
0.01068878173828125,
0.0079345703125,
0.02197265625,
-0.033721923828125,
-0.02911376953125,
-0.04742431640625,
0.0269012451171875,
0.005886077880859375,
0.043670654296875,
0.017578125,
0.01434326171875,
-0.02825927734375,
-0.031585693359375,
-0.006023406982421875,
0.0093231201171875,
0.006839752197265625,
0.01219940185546875,
-0.018585205078125,
-0.002384185791015625,
0.0188140869140625,
-0.034454345703125,
-0.014862060546875,
0.0176544189453125,
-0.0277099609375,
-0.01934814453125,
0.00023031234741210938,
-0.022705078125,
0.01476287841796875,
0.0265045166015625,
0.038330078125,
-0.00579071044921875,
-0.013458251953125,
-0.0172271728515625,
0.02349853515625,
0.003570556640625,
0.01312255859375,
-0.02392578125,
-0.037628173828125,
-0.0193634033203125,
-0.034393310546875,
0.004909515380859375,
-0.0648193359375,
-0.002490997314453125,
-0.0279388427734375,
-0.007808685302734375,
0.0289764404296875,
0.0330810546875,
0.00632476806640625,
-0.005859375,
0.0141754150390625,
-0.04376220703125,
-0.01690673828125,
-0.0223846435546875,
-0.018524169921875,
0.022308349609375,
0.04327392578125,
0.037567138671875,
0.0263671875,
0.01097869873046875,
-0.0235748291015625,
0.02703857421875,
-0.0316162109375,
-0.062164306640625,
0.0163421630859375,
0.0251312255859375,
-0.03973388671875,
0.0148468017578125,
0.0100250244140625,
-0.019256591796875,
-0.0382080078125,
-0.0135040283203125,
-0.01308441162109375,
0.0152130126953125,
-0.00579833984375,
-0.016265869140625,
-0.0012607574462890625,
0.0203399658203125,
0.0202484130859375,
-0.010894775390625,
-0.054229736328125,
0.01453399658203125,
0.08624267578125,
0.0304107666015625,
0.0283050537109375,
-0.021820068359375,
-0.003910064697265625,
0.044647216796875,
-0.00835418701171875,
0.00681304931640625,
0.006336212158203125,
-0.0273590087890625,
0.0012788772583007812,
0.005123138427734375,
0.01255035400390625,
0.001735687255859375,
-0.006778717041015625,
0.020172119140625,
0.0308685302734375,
-0.0258026123046875,
0.037261962890625,
-0.047821044921875,
-0.01061248779296875,
0.035919189453125,
0.047515869140625,
0.01551055908203125,
0.0648193359375,
-0.0205078125,
-0.005527496337890625,
-0.01332855224609375,
0.030670166015625,
-0.0250091552734375,
-0.01207733154296875,
0.0019550323486328125,
-0.04266357421875,
0.037811279296875,
-0.041015625,
-0.0129547119140625,
0.0285797119140625,
0.00675201416015625,
0.035491943359375,
-0.01471710205078125,
-0.0033740997314453125,
0.022491455078125,
0.0144500732421875,
0.0261993408203125,
-0.033721923828125,
0.0765380859375,
0.0322265625,
-0.00806427001953125,
0.0156707763671875,
-0.03985595703125,
0.11468505859375,
-0.021453857421875,
-0.00496673583984375,
-0.03460693359375,
0.0260009765625,
0.020233154296875,
0.0018186569213867188,
0.0369873046875,
0.01922607421875,
0.011688232421875,
-0.0102386474609375,
0.037506103515625,
-0.00643157958984375,
-0.033782958984375,
-0.00879669189453125,
0.0077972412109375,
-0.020721435546875,
-0.0272064208984375,
0.01239013671875,
-0.014404296875,
-0.009674072265625,
-0.0192718505859375,
-0.06195068359375,
-0.004535675048828125,
-0.01262664794921875,
0.0263671875,
-0.042388916015625,
0.03955078125,
0.041015625,
0.0197906494140625,
-0.0511474609375,
-0.0033893585205078125,
0.016510009765625,
-0.030731201171875,
-0.042633056640625,
0.08428955078125,
0.004619598388671875,
0.09375,
-0.01303863525390625,
-0.037628173828125,
0.0219573974609375,
-0.045440673828125,
0.004940032958984375,
-0.00466156005859375,
-0.0166473388671875,
-0.016998291015625,
-0.019287109375,
-0.01148223876953125,
-0.0128936767578125,
0.04534912109375,
0.001071929931640625,
-0.0185394287109375,
-0.072509765625,
-0.0160369873046875,
-0.06292724609375,
-0.045318603515625,
-0.0104827880859375,
0.07830810546875,
0.042022705078125,
0.0243072509765625,
-0.0297698974609375,
-0.054107666015625,
0.058197021484375,
-0.031951904296875,
0.01096343994140625,
-0.0196533203125,
-0.038848876953125,
0.0184783935546875,
0.0013437271118164062,
0.029388427734375,
0.013397216796875,
0.036956787109375,
-0.0592041015625,
0.05419921875,
-0.0230865478515625,
-0.003814697265625,
-0.0035114288330078125,
0.019989013671875,
-0.0243072509765625,
-0.036102294921875,
0.0222015380859375,
-0.040924072265625,
0.0136871337890625,
-0.00878143310546875,
0.019378662109375,
0.005840301513671875,
-0.0282440185546875,
-0.008941650390625,
0.0301971435546875,
-0.024810791015625,
-0.007259368896484375,
0.04742431640625,
0.0228118896484375,
-0.0140838623046875,
-0.018707275390625,
-0.032440185546875,
-0.0200653076171875,
0.02001953125,
-0.01250457763671875,
-0.0272216796875,
-0.0194091796875,
0.004459381103515625,
-0.0025768280029296875,
-0.01312255859375,
0.027130126953125,
0.044158935546875,
0.0019407272338867188,
-0.00566864013671875,
0.047027587890625,
-0.02392578125,
-0.03338623046875,
0.0289306640625,
-0.03521728515625,
-0.0430908203125,
-0.050628662109375,
-0.0166015625,
0.032745361328125,
-0.048126220703125,
0.0015850067138671875,
0.03802490234375,
-0.0015668869018554688,
0.002498626708984375,
-0.00008779764175415039,
-0.0017232894897460938,
0.005828857421875,
0.00432586669921875,
-0.0203094482421875,
0.01068115234375,
-0.07415771484375,
-0.01104736328125,
0.0146484375,
-0.00884246826171875,
-0.006664276123046875,
-0.030609130859375,
-0.0322265625,
-0.01139068603515625,
-0.0892333984375,
-0.06396484375,
-0.0928955078125,
-0.0506591796875,
-0.0162353515625,
0.01526641845703125,
-0.009246826171875,
0.02459716796875,
0.028961181640625,
0.029296875,
0.034637451171875,
-0.0234222412109375,
-0.0237884521484375,
-0.00888824462890625,
-0.046844482421875,
-0.0194854736328125,
0.00959014892578125,
-0.005443572998046875,
-0.01197052001953125,
0.031982421875,
-0.00823974609375,
-0.01383209228515625,
-0.004184722900390625,
0.0231781005859375,
0.01209259033203125,
-0.02923583984375,
-0.00896453857421875,
-0.0145721435546875,
-0.034088134765625,
0.0078887939453125,
0.0165863037109375,
-0.001857757568359375,
-0.00006383657455444336,
0.0045166015625,
0.025909423828125,
-0.01517486572265625,
0.03692626953125,
-0.0025272369384765625,
-0.04144287109375,
-0.01345062255859375,
-0.006923675537109375,
-0.052490234375,
-0.02783203125,
-0.019073486328125,
-0.031402587890625,
0.07440185546875,
0.0236968994140625,
-0.0191192626953125,
0.01204681396484375,
0.0295562744140625,
0.00833892822265625,
-0.0119171142578125,
0.002407073974609375,
-0.037353515625,
0.0245361328125,
0.003940582275390625,
0.007472991943359375,
-0.01105499267578125,
0.055572509765625,
-0.00611114501953125,
-0.02056884765625,
0.007617950439453125,
0.021728515625,
0.0338134765625,
-0.04559326171875,
0.00921630859375,
-0.045623779296875,
0.0266265869140625,
-0.0748291015625,
-0.002986907958984375,
-0.037811279296875,
-0.003292083740234375,
-0.00708770751953125,
0.092041015625,
-0.009674072265625,
-0.0518798828125,
0.019012451171875,
0.044097900390625,
-0.055023193359375,
0.007076263427734375,
0.00003546476364135742,
-0.0132293701171875,
-0.062164306640625,
-0.0162353515625,
-0.0260162353515625,
-0.027740478515625,
0.043487548828125,
-0.08544921875,
0.007541656494140625,
-0.054351806640625,
0.03436279296875,
-0.014678955078125,
0.00782012939453125,
0.0224609375,
-0.01363372802734375,
0.00656890869140625,
-0.0298004150390625,
-0.01287841796875,
0.00030875205993652344,
-0.02044677734375,
0.07305908203125,
0.00995635986328125,
-0.0034008026123046875,
-0.045196533203125,
-0.0205230712890625,
0.0267791748046875,
0.011749267578125,
0.0292205810546875,
0.0159912109375,
0.0011081695556640625,
-0.0009641647338867188,
0.007080078125,
0.025482177734375,
-0.01181793212890625,
-0.0016469955444335938,
-0.00958251953125,
-0.03997802734375,
-0.0079803466796875,
-0.005062103271484375,
0.009033203125,
0.054962158203125,
-0.033233642578125,
-0.08843994140625,
-0.03472900390625,
0.01348876953125,
-0.0220184326171875,
0.016998291015625,
-0.015869140625,
-0.0092010498046875,
-0.03814697265625,
0.047698974609375,
0.00492095947265625,
-0.0087127685546875,
-0.006378173828125,
0.0307769775390625,
0.0011301040649414062,
-0.0233612060546875,
0.041839599609375,
0.02923583984375,
0.0195465087890625,
0.03143310546875,
-0.005954742431640625,
-0.023895263671875,
-0.0060272216796875,
0.00107574462890625,
-0.0043487548828125,
0.00927734375,
0.006134033203125,
-0.0111236572265625,
0.0057525634765625,
-0.0235443115234375,
0.019805908203125,
-0.0016269683837890625,
0.0129547119140625,
0.043701171875,
0.01526641845703125,
-0.0104522705078125,
-0.007167816162109375,
-0.005443572998046875,
-0.01385498046875,
-0.00472259521484375,
0.00795745849609375,
-0.0263519287109375,
0.0199432373046875,
-0.02056884765625,
0.0303802490234375,
0.0255889892578125,
-0.00701904296875,
0.00553131103515625,
-0.01262664794921875,
-0.0209503173828125,
-0.046600341796875,
-0.0399169921875,
-0.016571044921875,
0.002140045166015625,
-0.039215087890625,
-0.01407623291015625,
-0.0230865478515625,
-0.019683837890625,
0.0860595703125,
0.0201263427734375,
-0.04302978515625,
0.01318359375,
-0.03265380859375,
-0.01506805419921875,
0.014678955078125,
-0.0253143310546875,
0.057769775390625,
-0.029327392578125,
-0.042510986328125,
0.00634765625,
-0.0560302734375,
-0.05169677734375,
-0.06756591796875,
0.06781005859375,
0.01910400390625,
0.011932373046875,
0.007843017578125,
0.08526611328125,
0.05322265625,
0.035888671875,
-0.0211944580078125,
0.0022144317626953125,
-0.00728607177734375,
0.0164947509765625,
0.018310546875,
0.0194549560546875,
-0.0083160400390625,
-0.0006008148193359375,
0.02691650390625,
-0.0288238525390625,
-0.0423583984375,
0.0058746337890625,
0.0163726806640625,
-0.004222869873046875,
0.0282135009765625,
0.01166534423828125,
0.016082763671875,
0.01325225830078125,
0.035003662109375,
-0.03826904296875,
-0.0638427734375,
-0.0102996826171875,
0.029693603515625,
0.027191162109375,
-0.06292724609375,
0.006374359130859375,
-0.046539306640625,
-0.0269927978515625,
-0.037689208984375,
-0.030181884765625,
-0.034027099609375,
-0.0084228515625,
0.005092620849609375,
0.0168914794921875,
-0.007534027099609375,
-0.0269775390625,
0.03802490234375,
0.0264892578125,
-0.038543701171875,
-0.021759033203125,
0.0626220703125,
-0.0244903564453125,
0.040924072265625,
-0.024078369140625,
-0.018707275390625,
0.00823211669921875,
0.005954742431640625,
0.03619384765625,
0.0260467529296875,
-0.06500244140625,
0.0176544189453125,
-0.0226287841796875,
-0.0158538818359375,
-0.0028934478759765625,
-0.0251007080078125,
-0.057891845703125,
-0.03387451171875,
0.01004791259765625,
0.0245819091796875,
-0.01152801513671875,
-0.0153656005859375,
-0.0170440673828125,
-0.0085906982421875,
0.0213623046875,
0.0284423828125,
0.015869140625,
0.0185699462890625,
0.031097412109375,
0.0293731689453125,
0.0477294921875,
0.007568359375,
-0.031951904296875,
-0.024688720703125,
0.0133209228515625,
0.0257415771484375,
-0.0205230712890625,
-0.05731201171875,
0.05194091796875,
0.0115509033203125,
0.0621337890625,
-0.00811004638671875,
-0.021636962890625,
-0.020233154296875,
0.01078033447265625,
-0.0281829833984375,
0.079345703125,
0.0017452239990234375,
-0.0287933349609375,
0.0126495361328125,
-0.036651611328125,
0.01334381103515625,
-0.0115203857421875,
0.0045166015625,
0.023345947265625,
-0.035614013671875,
0.0134124755859375,
0.03192138671875,
-0.03466796875,
0.056121826171875,
0.042144775390625,
-0.0170440673828125,
0.02752685546875,
-0.01111602783203125,
0.005374908447265625,
0.0026721954345703125,
-0.00904083251953125,
0.01256561279296875,
0.02093505859375,
0.0294952392578125,
-0.0162353515625,
-0.00249481201171875,
0.012115478515625,
-0.0202484130859375,
0.0206298828125,
0.06298828125,
0.049072265625,
-0.11920166015625,
0.007526397705078125,
-0.01009368896484375,
0.00591278076171875,
0.044189453125,
0.01165771484375,
0.00861358642578125,
-0.00798797607421875,
0.01507568359375,
-0.033843994140625,
-0.00769805908203125,
-0.0024871826171875,
-0.0257720947265625,
0.006008148193359375,
0.0028858184814453125,
0.032440185546875,
0.0078125,
-0.081787109375,
-0.0005784034729003906,
0.059234619140625,
-0.02728271484375,
-0.0445556640625,
-0.0288238525390625,
0.0187530517578125,
-0.01654052734375,
-0.07794189453125,
-0.0008821487426757812,
-0.01885986328125,
0.027984619140625,
0.012786865234375,
0.035064697265625,
0.00754547119140625,
0.035797119140625,
0.004047393798828125,
0.00269317626953125,
-0.01277923583984375,
0.0187835693359375,
0.0233917236328125,
-0.04443359375,
0.0132904052734375,
0.042236328125,
-0.07281494140625,
0.0229949951171875,
0.00677490234375,
-0.021514892578125,
-0.0122528076171875,
0.0230560302734375,
0.045074462890625,
-0.01480865478515625,
-0.0193328857421875,
0.026519775390625,
0.051910400390625,
-0.00484466552734375,
-0.01407623291015625,
0.04083251953125,
-0.0193634033203125,
0.0272369384765625,
0.004901885986328125,
0.002410888671875,
-0.03466796875,
-0.01525115966796875,
-0.05535888671875,
0.0980224609375,
-0.055572509765625,
0.02288818359375,
0.017333984375,
0.04254150390625,
0.007404327392578125,
0.040679931640625,
-0.0271148681640625,
0.042449951171875,
-0.031768798828125,
0.047760009765625,
-0.0017223358154296875,
0.0196990966796875,
0.014739990234375,
-0.0163421630859375,
0.01094818115234375,
0.00933837890625,
-0.01953125,
-0.010040283203125,
0.0306549072265625,
-0.0031185150146484375,
-0.003993988037109375,
0.045562744140625,
0.0093231201171875,
-0.00860595703125,
0.044281005859375,
-0.06256103515625,
0.0130615234375,
-0.033721923828125,
0.045928955078125,
0.0294342041015625,
-0.01067352294921875,
-0.06463623046875,
0.00449371337890625,
0.05609130859375,
-0.081298828125,
0.0209808349609375,
0.032623291015625,
0.00811004638671875,
0.0243377685546875,
0.0260162353515625,
0.01247406005859375,
0.0321044921875,
0.026336669921875,
-0.00946044921875,
0.038360595703125,
-0.01377105712890625,
0.0197601318359375,
0.01554107666015625,
0.018463134765625,
0.09503173828125,
-0.056121826171875,
-0.0009508132934570312,
-0.01309967041015625,
-0.0028553009033203125,
0.0445556640625,
0.0129241943359375,
0.016143798828125,
-0.025726318359375,
0.06884765625,
0.030059814453125,
0.04547119140625,
-0.05523681640625,
-0.038970947265625,
0.003124237060546875,
-0.0003483295440673828,
0.0377197265625,
-0.0005125999450683594,
0.048248291015625,
-0.0362548828125,
0.0012598037719726562,
0.003917694091796875,
0.00836181640625,
0.0207977294921875,
-0.01055145263671875,
0.009307861328125,
0.036773681640625,
-0.03271484375,
0.034820556640625,
-0.01433563232421875,
0.00605010986328125,
-0.0015811920166015625,
0.027618408203125,
-0.0205535888671875,
0.044158935546875,
-0.0443115234375,
0.00244140625,
-0.01213836669921875,
0.038421630859375,
-0.0205841064453125,
0.0135040283203125,
-0.037017822265625,
-0.05682373046875,
-0.0116729736328125,
0.037750244140625,
-0.008514404296875,
-0.00057220458984375,
0.042816162109375,
0.035675048828125,
-0.00909423828125,
-0.025299072265625,
-0.00238800048828125,
-0.01214599609375,
0.0438232421875,
0.015899658203125,
0.0002944469451904297,
-0.0288848876953125,
-0.034088134765625,
-0.051025390625,
0.04156494140625,
0.00269317626953125,
-0.002971649169921875,
0.0357666015625,
0.00775909423828125,
-0.0208740234375,
-0.01320648193359375,
0.038543701171875,
0.052490234375,
0.04205322265625,
-0.046600341796875,
-0.008209228515625,
-0.0166473388671875,
-0.0127105712890625,
-0.005451202392578125,
0.031707763671875,
-0.00565338134765625,
0.032867431640625,
-0.0021991729736328125,
-0.03436279296875,
0.01092529296875,
0.02899169921875,
-0.0221099853515625,
-0.032867431640625,
0.0066680908203125,
-0.05084228515625,
-0.0467529296875,
-0.0177154541015625,
-0.0207672119140625,
0.0173797607421875,
0.0099639892578125,
0.080322265625,
-0.002086639404296875,
0.0080413818359375,
-0.0157928466796875,
-0.0097503662109375,
-0.0094146728515625,
-0.0182037353515625,
-0.0005650520324707031,
-0.023651123046875,
-0.027618408203125,
0.01216888427734375,
-0.0126953125,
0.06951904296875,
0.007266998291015625,
0.0382080078125,
0.042449951171875,
-0.0445556640625,
0.013336181640625,
0.0268402099609375,
0.03704833984375,
-0.0252838134765625,
-0.048583984375,
-0.005504608154296875,
0.0270538330078125,
-0.0193023681640625,
-0.006458282470703125,
-0.00862884521484375,
0.035491943359375,
-0.035308837890625,
-0.007717132568359375,
0.0078277587890625,
-0.037506103515625,
-0.0125732421875,
0.018035888671875,
-0.036376953125,
-0.0064849853515625,
0.0030002593994140625,
-0.00994873046875,
-0.018402099609375,
0.017913818359375,
-0.0138092041015625,
0.01438140869140625,
-0.0606689453125,
0.01056671142578125,
0.067626953125,
0.03924560546875,
0.004878997802734375,
0.0205078125,
0.034332275390625,
-0.043731689453125,
0.0357666015625,
0.0038242340087890625,
-0.01055145263671875,
-0.02374267578125,
-0.024078369140625,
-0.0245208740234375,
-0.01348876953125,
-0.050048828125,
0.0165252685546875,
0.03173828125,
0.0384521484375,
0.0211639404296875,
-0.08660888671875,
0.035919189453125,
-0.006664276123046875,
0.086181640625,
0.004451751708984375,
-0.054290771484375,
0.0123443603515625,
0.033599853515625,
-0.0289459228515625,
-0.0300750732421875,
-0.0771484375,
-0.0169677734375,
-0.0887451171875,
-0.00016558170318603516,
0.03582763671875,
-0.0161895751953125,
-0.00629425048828125,
-0.018951416015625,
0.01488494873046875,
0.0156707763671875,
-0.05902099609375,
-0.04486083984375,
-0.01557159423828125,
0.0035457611083984375,
0.0311737060546875,
-0.0117034912109375,
-0.022186279296875,
-0.0279541015625,
0.0026531219482421875,
-0.003265380859375,
0.00009000301361083984,
0.0277099609375,
-0.0201263427734375,
-0.0312042236328125,
0.0335693359375,
0.00919342041015625,
-0.018707275390625,
-0.06787109375,
-0.01116180419921875,
-0.01309967041015625,
0.051483154296875,
-0.0184783935546875,
-0.0099029541015625,
-0.0445556640625,
0.05035400390625,
-0.0119476318359375,
0.027923583984375,
-0.005489349365234375,
-0.0043487548828125,
0.006885528564453125,
0.046630859375,
0.04522705078125,
0.002796173095703125,
0.009185791015625,
-0.0235748291015625,
0.0206298828125,
0.011962890625,
-0.036285400390625,
-0.04327392578125,
0.01351165771484375,
0.014190673828125,
-0.0010271072387695312,
0.00992584228515625,
0.04144287109375,
0.00505828857421875,
-0.005764007568359375,
0.0095672607421875,
-0.01322174072265625,
-0.005954742431640625,
-0.03448486328125,
-0.01453399658203125,
0.003143310546875,
-0.00774383544921875,
0.01320648193359375,
-0.0721435546875,
-0.005218505859375,
0.0034809112548828125,
-0.00858306884765625,
0.0003464221954345703,
-0.01421356201171875,
-0.039093017578125,
-0.0093841552734375,
0.0006685256958007812,
0.0117034912109375,
-0.0257110595703125,
-0.00804901123046875,
0.045654296875,
-0.0382080078125,
-0.005031585693359375,
0.014251708984375,
0.01195526123046875,
0.0296783447265625,
0.023406982421875,
0.0181427001953125,
0.0194854736328125,
-0.036865234375,
-0.005283355712890625,
0.01090240478515625,
0.017669677734375,
-0.01959228515625,
-0.0222320556640625,
-0.016143798828125,
0.017547607421875,
-0.01123809814453125,
-0.006938934326171875,
0.014495849609375,
0.054962158203125,
0.018463134765625,
0.048858642578125,
0.0008225440979003906,
-0.005336761474609375,
-0.0165252685546875,
0.037200927734375,
0.0130767822265625,
-0.01904296875,
0.03515625,
-0.0179595947265625,
0.0048828125,
0.005229949951171875,
0.0487060546875,
-0.051544189453125,
0.039276123046875,
-0.0251007080078125,
0.033782958984375,
0.022125244140625
] |
faa8da846009c6a291a2b59eecec0d57b4965a44 | Wordpress Stackexchange
Q: Sending POST Request from server I have to make a Post request to below and get the response . How can I do this in WordPress.
I have [CLIENT_ID] and [CLIENT_SECRET] - i can just change it.
[REFRESH_TOKEN] is $_GET('code');
POST https://api.envato.com/token
grant_type=refresh_token&
refresh_token=[REFRESH_TOKEN]&
client_id=[CLIENT_ID]&
client_secret=[CLIENT_SECRET]
Please help thanks
A: 'wp_remote_post' is the function you're searching for.
$response = wp_remote_post( $url, array(
'method' => 'POST',
'timeout' => 45,
'redirection' => 5,
'httpversion' => '1.0',
'blocking' => true,
'headers' => array(),
'body' => array( 'param1' => 'value1' ),
'cookies' => array()
)
);
if ( is_wp_error( $response ) ) {
$error_message = $response->get_error_message();
echo "Something went wrong: $error_message";
} else {
echo 'Response:<pre>';
print_r( $response );
echo '</pre>';
}
| Q: Sending POST Request from server I have to make a Post request to below and get the response . How can I do this in WordPress.
I have [CLIENT_ID] and [CLIENT_SECRET] - i can just change it.
[REFRESH_TOKEN] is $_GET('code');
POST https://api.envato.com/token
grant_type=refresh_token&
refresh_token=[REFRESH_TOKEN]&
client_id=[CLIENT_ID]&
client_secret=[CLIENT_SECRET]
Please help thanks
A: 'wp_remote_post' is the function you're searching for.
$response = wp_remote_post( $url, array(
'method' => 'POST',
'timeout' => 45,
'redirection' => 5,
'httpversion' => '1.0',
'blocking' => true,
'headers' => array(),
'body' => array( 'param1' => 'value1' ),
'cookies' => array()
)
);
if ( is_wp_error( $response ) ) {
$error_message = $response->get_error_message();
echo "Something went wrong: $error_message";
} else {
echo 'Response:<pre>';
print_r( $response );
echo '</pre>';
}
| wordpress | {
"language": "en",
"length": 119,
"provenance": "stackexchange_00019.jsonl.gz:490478",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/318854"
} | [
0.033782958984375,
-0.0015630722045898438,
-0.0184478759765625,
-0.00714111328125,
-0.006072998046875,
-0.038604736328125,
0.0246124267578125,
-0.02264404296875,
0.0233917236328125,
-0.0018625259399414062,
-0.025421142578125,
-0.0196990966796875,
-0.0275115966796875,
-0.031707763671875,
0.0009279251098632812,
-0.0419921875,
0.04052734375,
0.0007266998291015625,
0.0257110595703125,
0.00792694091796875,
-0.0051727294921875,
0.01233673095703125,
0.0209197998046875,
0.0014553070068359375,
0.0157318115234375,
0.04144287109375,
0.022003173828125,
-0.0018711090087890625,
-0.027679443359375,
-0.01514434814453125,
0.00585174560546875,
-0.007541656494140625,
0.01348114013671875,
0.06573486328125,
-0.080078125,
-0.01568603515625,
0.0282440185546875,
0.00235748291015625,
-0.0258026123046875,
0.058624267578125,
0.0361328125,
-0.01513671875,
0.0306549072265625,
0.0022602081298828125,
0.01253509521484375,
-0.01085662841796875,
0.042724609375,
-0.04620361328125,
-0.000015139579772949219,
0.05096435546875,
0.03179931640625,
0.00931549072265625,
0.0286102294921875,
0.038330078125,
-0.0121307373046875,
-0.01311492919921875,
0.03594970703125,
-0.032806396484375,
0.048126220703125,
0.00008273124694824219,
-0.052215576171875,
-0.0234527587890625,
0.024444580078125,
-0.050048828125,
-0.0274505615234375,
0.017852783203125,
0.0321044921875,
-0.004047393798828125,
-0.0004470348358154297,
-0.039794921875,
-0.01708984375,
0.017059326171875,
-0.0160064697265625,
-0.00868988037109375,
-0.047271728515625,
-0.0203704833984375,
0.03863525390625,
-0.0272674560546875,
-0.01114654541015625,
0.001781463623046875,
0.029998779296875,
0.01800537109375,
0.00589752197265625,
-0.051513671875,
0.038970947265625,
0.00949859619140625,
-0.00495147705078125,
-0.032623291015625,
-0.052642822265625,
-0.022430419921875,
-0.034027099609375,
-0.060028076171875,
-0.03460693359375,
0.0017728805541992188,
-0.0186767578125,
0.00341033935546875,
-0.01532745361328125,
-0.0190887451171875,
0.0194091796875,
0.021026611328125,
0.028594970703125,
-0.043853759765625,
0.06689453125,
-0.01551055908203125,
-0.00859832763671875,
0.00010907649993896484,
0.0012235641479492188,
-0.03509521484375,
0.0285491943359375,
0.01080322265625,
-0.022186279296875,
0.043487548828125,
0.00058746337890625,
0.007350921630859375,
-0.04351806640625,
-0.0244293212890625,
-0.0304718017578125,
-0.02667236328125,
-0.007080078125,
-0.030670166015625,
-0.0015249252319335938,
0.0164947509765625,
0.007686614990234375,
0.00826263427734375,
0.01561737060546875,
0.03515625,
-0.0008459091186523438,
-0.031494140625,
0.064208984375,
0.0296478271484375,
-0.0517578125,
-0.0167999267578125,
0.054656982421875,
0.007503509521484375,
0.032562255859375,
-0.02337646484375,
0.020233154296875,
0.007099151611328125,
0.0272674560546875,
0.0215301513671875,
-0.01561737060546875,
-0.054046630859375,
-0.01053619384765625,
0.0221405029296875,
0.0248260498046875,
0.0262298583984375,
0.0294189453125,
0.009918212890625,
-0.015869140625,
-0.004047393798828125,
-0.006679534912109375,
0.0177001953125,
0.003803253173828125,
0.0026073455810546875,
0.0635986328125,
0.0231475830078125,
0.0650634765625,
-0.01324462890625,
-0.03009033203125,
-0.0008559226989746094,
0.0149078369140625,
-0.007686614990234375,
0.03076171875,
-0.0063629150390625,
-0.03204345703125,
0.011932373046875,
-0.03253173828125,
-0.02325439453125,
0.0270843505859375,
0.080078125,
0.0092010498046875,
-0.037384033203125,
0.04510498046875,
0.014373779296875,
-0.024749755859375,
0.01473236083984375,
-0.0009694099426269531,
-0.017425537109375,
0.06597900390625,
0.008636474609375,
-0.01494598388671875,
-0.004215240478515625,
0.08502197265625,
-0.0162353515625,
-0.031890869140625,
0.05902099609375,
0.00348663330078125,
0.0701904296875,
-0.0171966552734375,
0.011627197265625,
-0.0185394287109375,
0.044189453125,
0.0180816650390625,
0.007213592529296875,
-0.030975341796875,
-0.040252685546875,
0.013275146484375,
0.015380859375,
-0.038421630859375,
0.03240966796875,
-0.0374755859375,
-0.0008835792541503906,
0.00624847412109375,
-0.0008325576782226562,
-0.0325927734375,
-0.01305389404296875,
-0.0239105224609375,
0.040802001953125,
0.0298919677734375,
0.0015716552734375,
0.006641387939453125,
0.02581787109375,
-0.027191162109375,
-0.040252685546875,
-0.053497314453125,
0.053680419921875,
-0.05621337890625,
0.032928466796875,
-0.03070068359375,
0.0823974609375,
-0.04901123046875,
-0.05169677734375,
-0.0382080078125,
-0.0236663818359375,
0.036773681640625,
-0.024505615234375,
0.005954742431640625,
-0.016632080078125,
0.06787109375,
-0.00699615478515625,
0.0213165283203125,
0.01161956787109375,
0.05267333984375,
0.0574951171875,
-0.01165771484375,
-0.004093170166015625,
-0.0035381317138671875,
-0.035369873046875,
0.0039520263671875,
0.0369873046875,
0.02313232421875,
0.01010894775390625,
-0.02587890625,
-0.001514434814453125,
0.0004258155822753906,
-0.040252685546875,
0.00949859619140625,
-0.0162506103515625,
-0.01102447509765625,
-0.0377197265625,
0.01373291015625,
-0.036346435546875,
0.0298004150390625,
-0.08929443359375,
0.0021419525146484375,
0.0252227783203125,
-0.034912109375,
-0.030670166015625,
-0.017608642578125,
-0.010101318359375,
0.01093292236328125,
-0.047210693359375,
-0.018829345703125,
-0.017974853515625,
-0.0125579833984375,
-0.02532958984375,
0.0035991668701171875,
-0.00446319580078125,
-0.0261383056640625,
-0.0214691162109375,
0.038360595703125,
0.0245208740234375,
0.004756927490234375,
0.043701171875,
0.0131988525390625,
0.01099395751953125,
-0.0235137939453125,
-0.0184783935546875,
-0.00496673583984375,
0.0243682861328125,
-0.013824462890625,
0.03570556640625,
-0.00432586669921875,
-0.0111083984375,
-0.014617919921875,
0.02288818359375,
0.0236358642578125,
0.01247406005859375,
0.08575439453125,
0.06512451171875,
0.050994873046875,
0.054718017578125,
0.03271484375,
0.048736572265625,
-0.00620269775390625,
-0.00032973289489746094,
0.035919189453125,
-0.03924560546875,
0.03485107421875,
-0.048095703125,
0.0302886962890625,
0.039154052734375,
-0.0059967041015625,
-0.017547607421875,
-0.005298614501953125,
0.009063720703125,
-0.0175933837890625,
0.030242919921875,
-0.0020999908447265625,
-0.029022216796875,
-0.01837158203125,
0.0073394775390625,
0.019378662109375,
0.0294952392578125,
-0.00830841064453125,
-0.0286407470703125,
-0.010955810546875,
0.02557373046875,
-0.10186767578125,
-0.10198974609375,
0.0179443359375,
-0.05810546875,
0.024871826171875,
-0.0118408203125,
-0.0191650390625,
-0.020843505859375,
0.00455474853515625,
-0.0008606910705566406,
0.01506805419921875,
-0.0103912353515625,
-0.01497650146484375,
-0.021270751953125,
-0.0574951171875,
-0.035064697265625,
-0.005512237548828125,
-0.007396697998046875,
0.007389068603515625,
0.054229736328125,
0.0011777877807617188,
-0.05035400390625,
-0.0204620361328125,
0.037506103515625,
-0.02459716796875,
-0.041015625,
-0.016815185546875,
-0.020904541015625,
-0.00637054443359375,
0.0023555755615234375,
0.007343292236328125,
-0.0096588134765625,
0.01071929931640625,
-0.01398468017578125,
-0.033843994140625,
-0.04168701171875,
-0.00853729248046875,
-0.044464111328125,
0.0246734619140625,
-0.0528564453125,
-0.029388427734375,
-0.059814453125,
-0.051422119140625,
-0.0017986297607421875,
-0.0618896484375,
-0.044158935546875,
0.04254150390625,
0.0014162063598632812,
-0.0244293212890625,
0.0030193328857421875,
-0.007007598876953125,
-0.015228271484375,
0.00437164306640625,
-0.0190887451171875,
0.02020263671875,
-0.006420135498046875,
-0.0030040740966796875,
0.00801849365234375,
0.0060577392578125,
-0.025665283203125,
0.043731689453125,
0.0009675025939941406,
-0.0003123283386230469,
-0.013580322265625,
0.0258636474609375,
-0.033843994140625,
-0.0352783203125,
0.05181884765625,
-0.0140838623046875,
-0.009857177734375,
-0.02972412109375,
-0.0143280029296875,
-0.0186614990234375,
0.041595458984375,
-0.004669189453125,
-0.047271728515625,
0.003879547119140625,
0.016510009765625,
-0.0233001708984375,
-0.0117950439453125,
0.024871826171875,
0.0006060600280761719,
0.032745361328125,
0.0108795166015625,
-0.032470703125,
0.002521514892578125,
0.007213592529296875,
-0.059112548828125,
0.0243988037109375,
-0.024627685546875,
0.050201416015625,
-0.06011962890625,
0.0338134765625,
-0.03472900390625,
0.0258331298828125,
-0.06890869140625,
-0.028045654296875,
-0.01377105712890625,
-0.0222625732421875,
-0.01849365234375,
-0.01480865478515625,
0.046600341796875,
0.044281005859375,
-0.043182373046875,
0.005950927734375,
0.046173095703125,
0.00276947021484375,
-0.01175689697265625,
-0.00623321533203125,
-0.024871826171875,
0.0108642578125,
0.038818359375,
-0.01910400390625,
0.003650665283203125,
-0.02178955078125,
0.002704620361328125,
0.0023326873779296875,
0.0173187255859375,
-0.0256805419921875,
-0.048126220703125,
-0.000030279159545898438,
-0.02606201171875,
-0.051971435546875,
-0.0220947265625,
0.009429931640625,
-0.024017333984375,
-0.016510009765625,
-0.0017070770263671875,
-0.0026702880859375,
-0.037872314453125,
0.01324462890625,
-0.01171112060546875,
-0.02252197265625,
0.0048065185546875,
0.020294189453125,
0.003292083740234375,
-0.025299072265625,
-0.0496826171875,
0.007785797119140625,
0.0267181396484375,
-0.014892578125,
0.021270751953125,
-0.004558563232421875,
-0.03680419921875,
0.08233642578125,
-0.01552581787109375,
0.0031833648681640625,
0.052978515625,
0.0159149169921875,
0.01502227783203125,
-0.01629638671875,
-0.0009274482727050781,
0.0252838134765625,
-0.058441162109375,
0.0055389404296875,
-0.037445068359375,
0.0287017822265625,
-0.01200103759765625,
0.00131988525390625,
-0.03863525390625,
0.035797119140625,
-0.00006181001663208008,
-0.055328369140625,
0.0322265625,
0.0008502006530761719,
0.00186920166015625,
0.01336669921875,
0.01018524169921875,
0.02215576171875,
-0.00994873046875,
-0.0132904052734375,
-0.0291595458984375,
0.0272369384765625,
-0.0177764892578125,
0.036865234375,
-0.045745849609375,
-0.03192138671875,
-0.03375244140625,
-0.01073455810546875,
0.041595458984375,
0.002010345458984375,
-0.037384033203125,
-0.0283660888671875,
-0.0016107559204101562,
0.03643798828125,
0.0078582763671875,
-0.04010009765625,
0.01438140869140625,
0.0307159423828125,
-0.0052642822265625,
0.004486083984375,
-0.02862548828125,
0.01090240478515625,
-0.034088134765625,
0.01366424560546875,
0.004497528076171875,
0.00989532470703125,
-0.004955291748046875,
0.112060546875,
-0.013153076171875,
0.061798095703125,
-0.0250396728515625,
0.0491943359375,
0.039459228515625,
0.0097198486328125,
0.042388916015625,
-0.018402099609375,
0.024932861328125,
-0.05126953125,
-0.04034423828125,
-0.01142120361328125,
-0.033477783203125,
0.0164642333984375,
0.032135009765625,
-0.0171356201171875,
-0.0007119178771972656,
0.027008056640625,
-0.01110076904296875,
-0.0019025802612304688,
0.0179290771484375,
0.032958984375,
0.0216522216796875,
-0.0268096923828125,
-0.04412841796875,
0.00908660888671875,
0.0249176025390625,
0.01206207275390625,
0.0335693359375,
0.0190887451171875,
0.039794921875,
-0.030517578125,
0.0280914306640625,
-0.0260772705078125,
-0.015777587890625,
0.0188446044921875,
-0.0185699462890625,
-0.00782012939453125,
-0.02239990234375,
0.000024080276489257812,
-0.022491455078125,
-0.012969970703125,
0.061279296875,
-0.05169677734375,
-0.033111572265625,
-0.01438140869140625,
0.05145263671875,
-0.0294342041015625,
0.012664794921875,
0.0518798828125,
0.0301513671875,
0.006000518798828125,
-0.0399169921875,
-0.01331329345703125,
-0.032257080078125,
0.0287322998046875,
0.0099639892578125,
0.0022754669189453125,
0.0011224746704101562,
0.02862548828125,
0.0283203125,
0.028167724609375,
-0.0034542083740234375,
-0.008758544921875,
-0.00856781005859375,
-0.00576019287109375,
0.0214385986328125,
-0.00542449951171875,
0.052215576171875,
-0.044403076171875,
0.042449951171875,
-0.006908416748046875,
0.0198211669921875,
0.011627197265625,
-0.0169830322265625,
-0.0132598876953125,
-0.024932861328125,
0.0012054443359375,
-0.0011510848999023438,
0.03216552734375,
0.0294189453125,
0.034881591796875,
0.00797271728515625,
-0.00098419189453125,
0.005645751953125,
0.006816864013671875,
-0.0098419189453125,
0.0214691162109375,
0.03448486328125,
-0.0044403076171875,
0.06292724609375,
0.0002244710922241211,
0.0220489501953125,
-0.01416015625,
0.008453369140625,
-0.0328369140625,
0.00762176513671875,
0.0014429092407226562,
-0.01983642578125,
-0.005535125732421875,
0.0215911865234375,
0.11370849609375,
0.0279541015625,
0.071533203125,
0.05023193359375,
0.03216552734375,
0.06268310546875,
0.0183258056640625,
-0.0450439453125,
-0.0293731689453125,
-0.012115478515625,
-0.004688262939453125,
-0.02001953125,
-0.015350341796875,
-0.008148193359375,
0.015838623046875,
0.041778564453125,
0.07879638671875,
-0.0631103515625,
0.01468658447265625,
0.0101318359375,
-0.04986572265625,
-0.00566864013671875,
-0.00384521484375,
-0.005680084228515625,
-0.037811279296875,
0.0601806640625,
0.00920867919921875,
0.011383056640625,
0.027435302734375,
-0.00949859619140625,
-0.002185821533203125,
-0.0116729736328125,
0.0489501953125,
0.006786346435546875,
-0.05419921875,
0.0212249755859375,
0.02618408203125,
-0.005893707275390625,
0.0034198760986328125,
0.04248046875,
-0.01568603515625,
-0.00937652587890625,
-0.06732177734375,
-0.023834228515625,
-0.0269775390625,
-0.044769287109375,
-0.031982421875,
0.00005650520324707031,
-0.0272369384765625,
0.029754638671875,
-0.0259857177734375,
-0.021575927734375,
0.0273590087890625,
-0.077880859375,
-0.02447509765625,
-0.039031982421875,
-0.018280029296875,
0.06158447265625,
-0.048065185546875,
0.033172607421875,
0.00022912025451660156,
0.0180511474609375,
-0.0124359130859375,
-0.055328369140625,
0.06549072265625,
-0.0236358642578125,
-0.0184326171875,
0.02569580078125,
-0.019805908203125,
-0.03021240234375,
-0.006069183349609375,
0.012176513671875,
-0.034759521484375,
0.004428863525390625,
-0.0024318695068359375,
-0.0163726806640625,
0.020843505859375,
-0.0013513565063476562,
-0.05963134765625,
0.0888671875,
0.0352783203125,
0.00992584228515625,
0.00024306774139404297,
0.036102294921875,
-0.061279296875,
-0.00360870361328125,
-0.02252197265625,
0.0472412109375,
0.0013513565063476562,
-0.0009198188781738281,
-0.048187255859375,
-0.01136016845703125,
0.009063720703125,
0.03924560546875,
0.0797119140625,
0.017181396484375,
-0.036773681640625,
-0.0019121170043945312,
0.035614013671875,
0.028778076171875,
-0.01122283935546875,
0.05670166015625,
0.02044677734375,
0.02203369140625,
0.0440673828125,
-0.046142578125,
0.01702880859375,
-0.0279541015625,
0.01251983642578125,
0.031341552734375,
0.004032135009765625,
-0.0168304443359375,
-0.0157928466796875,
0.043792724609375,
-0.0582275390625,
0.0021800994873046875,
0.0298309326171875,
0.036651611328125,
0.0034885406494140625,
0.018157958984375,
0.00023376941680908203,
0.00199127197265625,
-0.00250244140625,
-0.03179931640625,
0.0338134765625,
-0.01605224609375,
0.0085906982421875,
0.031707763671875,
0.01641845703125,
0.044281005859375,
-0.006748199462890625,
-0.0082550048828125,
0.005970001220703125,
0.0028629302978515625,
0.04730224609375,
0.0369873046875,
-0.00827789306640625,
-0.03118896484375,
0.04388427734375,
0.06591796875,
0.05596923828125,
-0.0675048828125,
0.00736236572265625,
-0.0039043426513671875,
0.017578125,
0.044677734375,
-0.03253173828125,
0.0919189453125,
-0.021453857421875,
-0.030487060546875,
-0.01409149169921875,
0.018035888671875,
0.00885772705078125,
0.019134521484375,
0.01013946533203125,
-0.001598358154296875,
-0.052978515625,
0.0007915496826171875,
-0.047698974609375,
0.0206146240234375,
0.036376953125,
0.0643310546875,
0.003810882568359375,
0.047027587890625,
-0.037750244140625,
-0.0182952880859375,
0.0056915283203125,
-0.0235748291015625,
0.005096435546875,
-0.010894775390625,
0.017822265625,
0.0032749176025390625,
0.0014581680297851562,
0.023834228515625,
0.01354217529296875,
0.0013790130615234375,
0.03875732421875,
0.0111846923828125,
-0.08392333984375,
-0.006591796875,
0.042816162109375,
-0.044189453125,
-0.00475311279296875,
-0.01161956787109375,
-0.022369384765625,
0.0213623046875,
-0.018829345703125,
0.007144927978515625,
-0.0022735595703125,
0.03466796875,
-0.047576904296875,
0.0997314453125,
-0.024749755859375,
-0.004230499267578125,
0.049896240234375,
-0.04107666015625,
0.07611083984375,
-0.051300048828125,
-0.055938720703125,
-0.00933837890625,
-0.018890380859375,
-0.0111541748046875,
0.0020046234130859375,
0.0214691162109375,
-0.00908660888671875,
0.0316162109375,
0.0019130706787109375,
-0.0292510986328125,
0.030975341796875,
-0.00048828125,
-0.01184844970703125,
0.022125244140625,
0.01276397705078125,
-0.0201416015625,
-0.036865234375,
-0.026885986328125,
-0.02423095703125,
0.05548095703125,
0.0239410400390625,
0.0450439453125,
-0.00402069091796875,
0.0241851806640625,
-0.0303192138671875,
0.0198211669921875,
-0.038787841796875,
-0.0242919921875,
0.045318603515625,
-0.005523681640625,
-0.016632080078125,
-0.0034942626953125,
-0.047454833984375,
0.042877197265625,
-0.01151275634765625,
0.027374267578125,
0.05816650390625,
-0.040435791015625,
0.0201873779296875,
0.033721923828125,
0.036590576171875,
-0.019622802734375,
-0.0155792236328125,
-0.0302734375,
0.00675201416015625,
0.01268768310546875,
0.0211639404296875,
-0.0197296142578125,
0.0161285400390625,
-0.035888671875,
-0.0301055908203125,
0.004932403564453125,
-0.01314544677734375,
-0.01070404052734375,
0.0270843505859375,
-0.03509521484375,
0.009033203125,
-0.040985107421875,
-0.027008056640625,
0.0012807846069335938,
0.01366424560546875,
-0.016326904296875,
-0.0222625732421875,
0.0791015625,
0.00420379638671875,
-0.0139312744140625,
0.0308990478515625,
0.01342010498046875,
0.00441741943359375,
-0.01580810546875,
-0.0009851455688476562,
-0.0251007080078125,
-0.0194549560546875,
-0.007659912109375,
-0.042022705078125,
0.0081024169921875,
0.005741119384765625,
0.0265655517578125,
-0.00803375244140625,
0.051239013671875,
0.00032520294189453125,
0.0037784576416015625,
-0.021575927734375,
0.0032901763916015625,
-0.0252532958984375,
-0.040283203125,
0.0247650146484375,
-0.036834716796875,
0.019195556640625,
-0.012359619140625,
0.0008449554443359375,
-0.0557861328125,
-0.0155029296875,
-0.0293731689453125,
0.00801849365234375,
-0.0075836181640625,
-0.0124359130859375,
0.0408935546875,
-0.0131072998046875,
-0.060516357421875,
-0.037322998046875,
-0.01413726806640625,
-0.006038665771484375,
-0.014373779296875,
-0.017547607421875,
-0.01070404052734375,
0.018218994140625,
-0.02471923828125,
-0.0645751953125,
0.00881195068359375,
-0.0455322265625,
0.01282501220703125,
-0.01513671875,
0.0295867919921875,
0.027099609375,
-0.0281829833984375,
-0.07794189453125,
0.021728515625,
-0.0196533203125,
-0.0238037109375,
-0.0552978515625,
-0.04119873046875,
0.0036602020263671875,
0.005725860595703125,
-0.0268707275390625,
-0.014312744140625,
-0.06658935546875,
0.05291748046875,
0.00007903575897216797,
-0.005123138427734375,
0.0147705078125,
-0.0211181640625,
-0.048248291015625,
-0.0060882568359375,
0.00545501708984375,
0.003475189208984375,
-0.03167724609375,
0.01580810546875,
0.035400390625,
0.005794525146484375,
-0.01317596435546875,
0.04010009765625,
0.04278564453125,
0.0287322998046875,
-0.031524658203125,
-0.020050048828125,
0.0122528076171875,
0.0207977294921875,
0.052703857421875,
0.03155517578125,
-0.00539398193359375,
-0.042510986328125,
-0.0204925537109375,
-0.01454925537109375,
-0.046600341796875,
-0.028778076171875,
0.03271484375,
-0.07244873046875,
-0.00864410400390625,
-0.024993896484375,
0.0350341796875,
-0.02044677734375,
-0.006999969482421875,
0.01531219482421875,
-0.058074951171875,
0.01282501220703125,
-0.0188446044921875,
0.037506103515625,
-0.05950927734375,
0.1031494140625,
-0.03277587890625,
0.0202178955078125,
-0.0034580230712890625,
0.0518798828125,
0.049072265625,
0.0012845993041992188,
-0.007274627685546875,
0.025360107421875,
-0.0330810546875,
0.0169219970703125,
0.01029205322265625,
-0.02142333984375,
-0.01357269287109375,
0.00875091552734375,
0.00975799560546875,
-0.00644683837890625,
0.0026683807373046875,
-0.03289794921875,
-0.034820556640625,
-0.01284027099609375,
-0.0269927978515625,
0.07318115234375,
-0.0251007080078125,
-0.0078887939453125,
-0.021087646484375,
0.023956298828125,
-0.00592041015625,
-0.008941650390625,
0.037322998046875,
-0.03497314453125,
0.0020885467529296875,
0.035980224609375,
0.00687408447265625,
-0.0236053466796875,
0.034423828125,
0.036285400390625,
0.01541900634765625,
0.017791748046875
] |
587252fd9ac744a1675eb04ec32edb7b12862ff1 | Wordpress Stackexchange
Q: Where i should not use if (!defined('ABSPATH')) { exit; }? I think this best way to prevent direct access..
<?php if (!defined('ABSPATH')) { exit; }?>
i have used this on all my php files..can it create problems?
any files on WordPress theme i should not use it?
A: The point of that code is to prevent any PHP inside the file from being executed if the file is accessed directly outside a WordPress context. ABSPATH is defined by WordPress, so if it's missing when the file is accessed you can tell that it's not running in a WordPress context.
So the only place you wouldn't use it is in any file that you did need to access directly. There probably shouldn't be any such files in a WordPress theme or plugin. The most common example might be a file for handling AJAX requests, but in WordPress you should be using admin-ajax.php or the REST API for that sort of thing.
| Q: Where i should not use if (!defined('ABSPATH')) { exit; }? I think this best way to prevent direct access..
<?php if (!defined('ABSPATH')) { exit; }?>
i have used this on all my php files..can it create problems?
any files on WordPress theme i should not use it?
A: The point of that code is to prevent any PHP inside the file from being executed if the file is accessed directly outside a WordPress context. ABSPATH is defined by WordPress, so if it's missing when the file is accessed you can tell that it's not running in a WordPress context.
So the only place you wouldn't use it is in any file that you did need to access directly. There probably shouldn't be any such files in a WordPress theme or plugin. The most common example might be a file for handling AJAX requests, but in WordPress you should be using admin-ajax.php or the REST API for that sort of thing.
| wordpress | {
"language": "en",
"length": 161,
"provenance": "stackexchange_00019.jsonl.gz:490626",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/319407"
} | [
0.07891845703125,
-0.0223846435546875,
0.0279693603515625,
-0.046630859375,
0.00878143310546875,
-0.0140380859375,
0.0303955078125,
-0.0104827880859375,
0.03875732421875,
-0.0250396728515625,
-0.0285797119140625,
-0.012969970703125,
-0.031158447265625,
-0.026641845703125,
0.00424957275390625,
-0.029571533203125,
0.038604736328125,
-0.0143890380859375,
0.039825439453125,
-0.0038318634033203125,
-0.013916015625,
0.00958251953125,
0.07470703125,
0.00536346435546875,
0.0033283233642578125,
-0.03277587890625,
0.07080078125,
-0.040679931640625,
0.0152740478515625,
-0.0279541015625,
0.00548553466796875,
0.00656890869140625,
0.0051422119140625,
0.0279998779296875,
-0.00824737548828125,
-0.03411865234375,
-0.0269775390625,
0.034698486328125,
0.0202484130859375,
-0.0218505859375,
0.00905609130859375,
-0.0100250244140625,
-0.00616455078125,
-0.0035190582275390625,
-0.032196044921875,
0.0018463134765625,
-0.030670166015625,
-0.016876220703125,
-0.0046844482421875,
0.0626220703125,
0.0117950439453125,
0.00960540771484375,
0.008026123046875,
0.059661865234375,
-0.0095367431640625,
-0.0261688232421875,
-0.0011148452758789062,
0.004039764404296875,
0.0361328125,
0.00659942626953125,
-0.033203125,
-0.0223846435546875,
0.00885009765625,
-0.039520263671875,
0.0276031494140625,
-0.0096893310546875,
-0.0187530517578125,
0.040771484375,
-0.0357666015625,
-0.0023860931396484375,
0.0202178955078125,
-0.0283050537109375,
-0.0006036758422851562,
-0.0178985595703125,
-0.0035076141357421875,
0.0202484130859375,
-0.0027713775634765625,
-0.007228851318359375,
0.0115509033203125,
0.020263671875,
-0.040863037109375,
-0.0259552001953125,
-0.054168701171875,
0.0017938613891601562,
-0.00039386749267578125,
0.050628662109375,
-0.01412200927734375,
-0.01232147216796875,
-0.031524658203125,
0.007274627685546875,
-0.040557861328125,
0.0249176025390625,
0.0219268798828125,
-0.01349639892578125,
-0.0596923828125,
0.0394287109375,
-0.0012311935424804688,
0.0294647216796875,
-0.02227783203125,
0.016876220703125,
0.000029385089874267578,
-0.0294342041015625,
0.0268402099609375,
-0.027801513671875,
0.006267547607421875,
0.08966064453125,
-0.002429962158203125,
-0.053619384765625,
-0.021087646484375,
-0.0072784423828125,
0.00921630859375,
-0.044219970703125,
-0.0130157470703125,
-0.045379638671875,
-0.00019931793212890625,
0.05267333984375,
-0.023773193359375,
0.015594482421875,
0.01366424560546875,
0.031524658203125,
-0.01031494140625,
-0.0305633544921875,
0.007266998291015625,
-0.0059051513671875,
0.01032257080078125,
-0.01296234130859375,
-0.0455322265625,
0.0482177734375,
-0.014862060546875,
0.031158447265625,
-0.00606536865234375,
-0.0207672119140625,
-0.0022220611572265625,
0.03826904296875,
0.0026454925537109375,
-0.0157623291015625,
0.033935546875,
0.038177490234375,
0.017822265625,
-0.0014104843139648438,
-0.0018968582153320312,
-0.040985107421875,
-0.0215911865234375,
0.0141143798828125,
-0.04595947265625,
0.01491546630859375,
0.01117706298828125,
0.0308685302734375,
-0.0062103271484375,
-0.064208984375,
0.020538330078125,
-0.06561279296875,
0.0155487060546875,
0.012359619140625,
-0.01497650146484375,
0.034332275390625,
0.0081024169921875,
-0.005771636962890625,
-0.05206298828125,
-0.0031337738037109375,
-0.0012979507446289062,
-0.007678985595703125,
0.0233917236328125,
-0.0557861328125,
-0.06463623046875,
-0.0163726806640625,
-0.045806884765625,
-0.002109527587890625,
0.01251220703125,
0.0423583984375,
0.0142669677734375,
-0.0440673828125,
-0.00760650634765625,
0.00884246826171875,
-0.01163482666015625,
0.0157470703125,
-0.0285186767578125,
0.008270263671875,
0.031585693359375,
0.0033321380615234375,
-0.032958984375,
-0.048095703125,
0.01702880859375,
-0.0114898681640625,
-0.059326171875,
0.045166015625,
-0.004253387451171875,
0.058624267578125,
0.0198822021484375,
0.00386810302734375,
0.0214385986328125,
0.00768280029296875,
-0.006656646728515625,
0.04205322265625,
-0.001644134521484375,
-0.07794189453125,
0.030853271484375,
-0.028411865234375,
-0.008087158203125,
0.01299285888671875,
0.039459228515625,
-0.0154266357421875,
-0.008636474609375,
-0.033660888671875,
-0.0811767578125,
-0.033599853515625,
-0.017791748046875,
0.00803375244140625,
0.0047454833984375,
0.007175445556640625,
0.02459716796875,
0.032012939453125,
-0.044647216796875,
-0.00937652587890625,
-0.031341552734375,
0.0206451416015625,
-0.039154052734375,
0.043304443359375,
-0.01837158203125,
0.04937744140625,
-0.03338623046875,
-0.047515869140625,
-0.0188446044921875,
-0.004566192626953125,
-0.0015926361083984375,
0.020599365234375,
-0.048248291015625,
0.006053924560546875,
-0.0195465087890625,
-0.0020275115966796875,
0.038360595703125,
0.050323486328125,
0.006439208984375,
0.01393890380859375,
-0.01276397705078125,
-0.0261077880859375,
-0.0226898193359375,
-0.10888671875,
0.020294189453125,
0.066162109375,
0.038055419921875,
0.0081024169921875,
-0.032562255859375,
-0.056427001953125,
0.0095062255859375,
-0.0921630859375,
-0.0023593902587890625,
-0.043487548828125,
-0.01131439208984375,
0.01158905029296875,
-0.0018758773803710938,
0.00983428955078125,
0.02813720703125,
-0.0260772705078125,
-0.0298309326171875,
0.06304931640625,
-0.035308837890625,
-0.045196533203125,
0.00417327880859375,
0.00630950927734375,
0.00789642333984375,
-0.03851318359375,
-0.0160980224609375,
-0.0048370361328125,
0.0164337158203125,
-0.022064208984375,
0.0302734375,
0.02301025390625,
0.0185089111328125,
-0.03106689453125,
-0.003139495849609375,
-0.01331329345703125,
-0.0199432373046875,
0.035186767578125,
0.060546875,
-0.0029811859130859375,
-0.03631591796875,
-0.0032863616943359375,
-0.02630615234375,
0.01261138916015625,
-0.026947021484375,
-0.0097198486328125,
-0.011993408203125,
-0.0200347900390625,
0.034759521484375,
0.0194091796875,
0.012176513671875,
-0.02825927734375,
0.0021152496337890625,
-0.003997802734375,
0.034698486328125,
0.003559112548828125,
0.00592803955078125,
-0.001201629638671875,
-0.0084686279296875,
-0.02252197265625,
0.0115203857421875,
0.02581787109375,
-0.04632568359375,
0.0189971923828125,
0.0223541259765625,
0.030181884765625,
0.0107574462890625,
-0.0233001708984375,
0.003009796142578125,
0.037933349609375,
0.03076171875,
0.0196075439453125,
0.0033512115478515625,
0.00942230224609375,
-0.054595947265625,
-0.0308074951171875,
0.01042938232421875,
0.033172607421875,
-0.01171875,
-0.058380126953125,
0.00030112266540527344,
0.0079345703125,
-0.0736083984375,
-0.04852294921875,
0.002452850341796875,
-0.0823974609375,
0.04974365234375,
0.0118865966796875,
-0.02734375,
-0.036712646484375,
0.0694580078125,
0.013153076171875,
-0.0196075439453125,
-0.017608642578125,
-0.0265045166015625,
-0.06475830078125,
-0.053802490234375,
0.03668212890625,
0.00768280029296875,
0.021942138671875,
-0.01055908203125,
0.10772705078125,
0.0181884765625,
-0.022491455078125,
-0.0070037841796875,
-0.016326904296875,
-0.036224365234375,
-0.0029811859130859375,
-0.0186614990234375,
-0.0092926025390625,
-0.00875091552734375,
-0.007717132568359375,
0.031463623046875,
-0.021881103515625,
0.003559112548828125,
-0.0104827880859375,
0.00814056396484375,
0.02874755859375,
0.0230255126953125,
0.01244354248046875,
-0.0115814208984375,
0.021881103515625,
-0.00032973289489746094,
-0.039276123046875,
-0.0152130126953125,
0.0126190185546875,
-0.0258636474609375,
0.05224609375,
0.0253753662109375,
-0.037506103515625,
0.048065185546875,
-0.0298004150390625,
0.0306396484375,
0.0474853515625,
-0.04388427734375,
0.01091766357421875,
0.058807373046875,
0.005893707275390625,
0.054962158203125,
-0.0051116943359375,
0.07318115234375,
-0.021484375,
-0.005420684814453125,
0.027801513671875,
-0.0169525146484375,
0.0049285888671875,
-0.041778564453125,
-0.018646240234375,
0.047515869140625,
0.00408935546875,
-0.0049285888671875,
0.022003173828125,
0.026458740234375,
0.0180511474609375,
-0.0114898681640625,
-0.018463134765625,
-0.0195159912109375,
-0.01071929931640625,
0.042205810546875,
0.0128021240234375,
-0.086669921875,
-0.0051116943359375,
-0.1029052734375,
0.0054931640625,
-0.01885986328125,
-0.00036025047302246094,
-0.00341033935546875,
-0.0294189453125,
-0.007770538330078125,
-0.01168060302734375,
-0.027496337890625,
-0.02349853515625,
0.0166015625,
-0.050506591796875,
0.043609619140625,
0.01251220703125,
0.0138092041015625,
-0.0027980804443359375,
0.001369476318359375,
-0.0599365234375,
-0.08880615234375,
-0.00725555419921875,
-0.051513671875,
0.06768798828125,
0.0011453628540039062,
0.024169921875,
-0.04248046875,
0.0208740234375,
-0.0225372314453125,
-0.0184326171875,
0.01396942138671875,
0.0211944580078125,
-0.0230560302734375,
0.033172607421875,
0.0191650390625,
-0.0070953369140625,
0.027069091796875,
0.024932861328125,
-0.05462646484375,
-0.0123748779296875,
-0.0169525146484375,
-0.042938232421875,
0.0462646484375,
-0.06878662109375,
-0.04144287109375,
-0.0291748046875,
-0.02166748046875,
0.0256195068359375,
-0.005588531494140625,
-0.023956298828125,
-0.049072265625,
-0.0406494140625,
0.0670166015625,
-0.00847625732421875,
-0.0016031265258789062,
-0.0138092041015625,
0.0740966796875,
0.01197052001953125,
-0.038482666015625,
-0.0218353271484375,
0.00872039794921875,
0.0355224609375,
-0.036376953125,
0.051116943359375,
-0.0042266845703125,
-0.041717529296875,
0.1168212890625,
-0.00409698486328125,
0.014617919921875,
-0.004741668701171875,
0.031280517578125,
0.0011157989501953125,
-0.01467132568359375,
0.0160980224609375,
0.007534027099609375,
-0.0136260986328125,
0.046234130859375,
0.012969970703125,
-0.03778076171875,
0.022796630859375,
0.0207366943359375,
-0.025787353515625,
0.0269927978515625,
0.003948211669921875,
-0.0030689239501953125,
-0.002323150634765625,
-0.0022792816162109375,
0.028533935546875,
0.047149658203125,
0.0029964447021484375,
0.0162200927734375,
0.0173492431640625,
0.0024089813232421875,
0.0251922607421875,
0.0255889892578125,
-0.0147705078125,
0.0251007080078125,
0.047821044921875,
0.0008029937744140625,
-0.010467529296875,
-0.0100555419921875,
0.035400390625,
-0.01544189453125,
-0.04388427734375,
-0.00836181640625,
-0.002719879150390625,
0.0025424957275390625,
0.0167694091796875,
-0.00843048095703125,
0.047576904296875,
-0.016204833984375,
-0.0477294921875,
0.0029621124267578125,
-0.0083465576171875,
-0.07830810546875,
-0.041046142578125,
0.0081634521484375,
0.01776123046875,
-0.017578125,
-0.021270751953125,
0.0219879150390625,
0.032257080078125,
-0.0278167724609375,
-0.01678466796875,
0.031585693359375,
0.01418304443359375,
0.0287322998046875,
-0.00968170166015625,
0.0222320556640625,
0.0096588134765625,
0.01015472412109375,
0.0279083251953125,
-0.036224365234375,
-0.045379638671875,
-0.00455474853515625,
0.04638671875,
-0.041015625,
-0.003696441650390625,
0.03851318359375,
0.0078277587890625,
-0.004665374755859375,
0.054595947265625,
-0.00970458984375,
-0.0548095703125,
-0.044525146484375,
-0.03363037109375,
0.04730224609375,
-0.02813720703125,
-0.009246826171875,
-0.00443267822265625,
-0.0122528076171875,
-0.0019407272338867188,
0.003292083740234375,
-0.04620361328125,
0.007678985595703125,
0.034423828125,
0.00850677490234375,
-0.0333251953125,
-0.00991058349609375,
0.007732391357421875,
0.04736328125,
-0.04766845703125,
-0.05364990234375,
0.031951904296875,
-0.035675048828125,
-0.03216552734375,
-0.00539398193359375,
0.0007886886596679688,
0.01264190673828125,
0.02349853515625,
0.0654296875,
0.0360107421875,
-0.08636474609375,
0.00872802734375,
-0.06634521484375,
-0.00518798828125,
-0.047882080078125,
-0.03936767578125,
-0.0450439453125,
0.0081634521484375,
-0.016326904296875,
-0.0054931640625,
-0.01070404052734375,
0.029052734375,
0.0167999267578125,
0.06707763671875,
-0.0083465576171875,
0.0689697265625,
-0.0604248046875,
0.0489501953125,
0.019073486328125,
0.01071929931640625,
-0.032928466796875,
0.021148681640625,
0.042449951171875,
-0.0006833076477050781,
0.0235443115234375,
-0.031890869140625,
-0.042755126953125,
-0.01763916015625,
0.016754150390625,
-0.0040283203125,
-0.0033168792724609375,
-0.0150604248046875,
0.0095672607421875,
-0.0028839111328125,
0.0087432861328125,
-0.0191802978515625,
0.01052093505859375,
-0.0147552490234375,
-0.0113372802734375,
-0.004314422607421875,
-0.00876617431640625,
0.0222015380859375,
-0.0157928466796875,
-0.045867919921875,
0.026031494140625,
0.007740020751953125,
0.0220947265625,
0.022064208984375,
-0.00020182132720947266,
0.043792724609375,
0.09722900390625,
-0.0291900634765625,
0.045135498046875,
0.032012939453125,
-0.0021686553955078125,
0.0265045166015625,
0.031829833984375,
-0.02069091796875,
-0.05633544921875,
0.023101806640625,
0.01441192626953125,
-0.0213165283203125,
0.0095977783203125,
-0.017669677734375,
0.0008974075317382812,
0.07073974609375,
0.05767822265625,
-0.057830810546875,
-0.018951416015625,
-0.0110931396484375,
-0.024749755859375,
0.0194854736328125,
-0.024322509765625,
0.00058746337890625,
-0.018768310546875,
0.046661376953125,
-0.00272369384765625,
-0.01163482666015625,
0.0080413818359375,
-0.0195465087890625,
0.01004791259765625,
-0.0360107421875,
0.050048828125,
0.016326904296875,
-0.0218963623046875,
-0.004734039306640625,
0.039825439453125,
0.0010213851928710938,
-0.006244659423828125,
-0.0172882080078125,
-0.01158905029296875,
-0.0419921875,
-0.036590576171875,
-0.027069091796875,
-0.0188446044921875,
-0.0224761962890625,
0.015045166015625,
-0.0067291259765625,
0.040924072265625,
0.051666259765625,
-0.0185089111328125,
0.056060791015625,
0.0139617919921875,
0.06610107421875,
-0.01512908935546875,
-0.022918701171875,
0.024383544921875,
0.053985595703125,
-0.046661376953125,
0.02215576171875,
-0.02178955078125,
-0.006549835205078125,
-0.0048980712890625,
0.0227203369140625,
0.07269287109375,
-0.0203094482421875,
-0.01605224609375,
0.056732177734375,
-0.008514404296875,
-0.043304443359375,
-0.0038051605224609375,
0.05072021484375,
-0.0269622802734375,
-0.007450103759765625,
0.0014944076538085938,
-0.0257720947265625,
-0.004535675048828125,
-0.033843994140625,
-0.00934600830078125,
0.053436279296875,
-0.018585205078125,
-0.0166168212890625,
0.016021728515625,
0.0338134765625,
-0.00830078125,
0.0310516357421875,
-0.055999755859375,
0.050537109375,
0.017578125,
0.02362060546875,
-0.0279998779296875,
0.006679534912109375,
-0.005825042724609375,
-0.01125335693359375,
-0.0194091796875,
-0.01267242431640625,
0.022552490234375,
-0.003894805908203125,
0.0009059906005859375,
0.0167999267578125,
-0.017486572265625,
0.00015819072723388672,
-0.004161834716796875,
-0.0262908935546875,
0.01316070556640625,
-0.039794921875,
0.006641387939453125,
-0.041107177734375,
0.02642822265625,
0.0033016204833984375,
0.02642822265625,
0.03839111328125,
-0.0169219970703125,
-0.01129913330078125,
-0.0386962890625,
0.007293701171875,
0.0238037109375,
0.026763916015625,
0.0204620361328125,
-0.00392913818359375,
-0.01181793212890625,
-0.042694091796875,
-0.0004963874816894531,
-0.018768310546875,
0.02117919921875,
-0.030792236328125,
0.0254058837890625,
0.0325927734375,
0.0165252685546875,
0.05328369140625,
-0.0006871223449707031,
0.00382232666015625,
0.0015058517456054688,
0.0094146728515625,
-0.004047393798828125,
0.048553466796875,
0.030670166015625,
0.036651611328125,
0.04296875,
0.0215606689453125,
-0.009063720703125,
-0.01314544677734375,
0.0008158683776855469,
0.0073089599609375,
-0.005336761474609375,
-0.0164642333984375,
-0.032012939453125,
-0.0069580078125,
0.05694580078125,
0.052978515625,
-0.0055389404296875,
0.035675048828125,
0.00390625,
-0.00936126708984375,
0.0027217864990234375,
0.01406097412109375,
-0.043792724609375,
0.048492431640625,
-0.01364898681640625,
-0.0537109375,
-0.0028705596923828125,
0.03326416015625,
0.0535888671875,
0.0050506591796875,
0.0280609130859375,
-0.01739501953125,
-0.03924560546875,
0.047637939453125,
-0.009857177734375,
0.05047607421875,
-0.06060791015625,
-0.034423828125,
0.03814697265625,
0.048248291015625,
-0.0035400390625,
0.06634521484375,
0.0219573974609375,
0.0059356689453125,
0.0164947509765625,
0.0116729736328125,
0.0625,
-0.02435302734375,
-0.0074920654296875,
-0.0245819091796875,
-0.0013599395751953125,
0.00972747802734375,
-0.01233673095703125,
-0.0005459785461425781,
0.01861572265625,
0.030487060546875,
-0.00727081298828125,
-0.0052490234375,
0.00844573974609375,
-0.037078857421875,
-0.034088134765625,
-0.00003129243850708008,
-0.0243682861328125,
0.015167236328125,
-0.0003871917724609375,
0.004119873046875,
0.03369140625,
-0.06304931640625,
-0.013916015625,
0.018310546875,
-0.036895751953125,
0.0389404296875,
0.0202789306640625,
0.0259552001953125,
-0.0022430419921875,
-0.02325439453125,
0.0194854736328125,
-0.038543701171875,
0.017364501953125,
0.00594329833984375,
0.0099334716796875,
-0.0053253173828125,
0.01189422607421875,
0.047027587890625,
0.01203155517578125,
0.06817626953125,
-0.03961181640625,
0.0171051025390625,
0.020294189453125,
-0.00382232666015625,
-0.005615234375,
0.0202178955078125,
-0.007781982421875,
0.01367950439453125,
0.00799560546875,
-0.0241546630859375,
-0.040740966796875,
0.047943115234375,
-0.0220947265625,
0.0025196075439453125,
0.0180206298828125,
-0.0096893310546875,
0.006908416748046875,
0.0270538330078125,
0.04290771484375,
-0.005062103271484375,
-0.058929443359375,
-0.041015625,
0.033721923828125,
0.034515380859375,
0.06646728515625,
-0.03741455078125,
0.007289886474609375,
0.010894775390625,
-0.0361328125,
0.023834228515625,
-0.023345947265625,
0.022705078125,
0.0179443359375,
-0.0027523040771484375,
-0.0299530029296875,
-0.0301055908203125,
-0.032073974609375,
-0.001796722412109375,
-0.01215362548828125,
0.05194091796875,
-0.036224365234375,
0.015869140625,
-0.03668212890625,
0.011566162109375,
0.0567626953125,
0.0302734375,
0.02642822265625,
-0.051055908203125,
-0.00399017333984375,
0.009765625,
-0.01104736328125,
-0.0245208740234375,
-0.031219482421875,
-0.007671356201171875,
0.00376129150390625,
-0.01016998291015625,
-0.00533294677734375,
0.017242431640625,
0.0117645263671875,
0.044830322265625,
0.002429962158203125,
-0.05035400390625,
-0.00972747802734375,
-0.03472900390625,
0.077880859375,
0.0024929046630859375,
0.04681396484375,
-0.046783447265625,
-0.0294342041015625,
-0.035064697265625,
-0.03399658203125,
-0.049407958984375,
0.07696533203125,
-0.0032253265380859375,
0.0271453857421875,
0.0372314453125,
-0.01727294921875,
-0.004436492919921875,
0.00868988037109375,
0.0016489028930664062,
0.047454833984375,
-0.02117919921875,
-0.023834228515625,
0.00951385498046875,
-0.007183074951171875,
-0.0159149169921875,
-0.01323699951171875,
0.0017671585083007812,
-0.0189208984375,
-0.007244110107421875,
-0.0052490234375,
0.01096343994140625,
0.01363372802734375,
-0.047760009765625,
-0.096923828125,
0.05206298828125,
-0.0143585205078125,
-0.032958984375,
-0.0155487060546875,
-0.00643157958984375,
-0.019805908203125,
0.031402587890625,
-0.01232147216796875,
-0.0009627342224121094,
0.004299163818359375,
0.03564453125,
0.027008056640625,
-0.018707275390625,
0.036163330078125,
0.0340576171875,
-0.0242156982421875,
0.038238525390625,
0.029083251953125,
-0.021148681640625,
-0.043670654296875,
0.0248870849609375,
0.0193634033203125,
0.04876708984375,
0.02252197265625,
0.05242919921875,
0.022064208984375,
-0.0311737060546875,
-0.0176544189453125,
0.0160980224609375,
-0.00933837890625,
0.025909423828125,
0.056182861328125,
0.056549072265625,
0.01361083984375,
-0.043426513671875,
-0.05999755859375,
-0.0229644775390625,
0.000029206275939941406,
-0.031036376953125,
0.0181121826171875,
-0.0894775390625,
-0.0012359619140625,
-0.00850677490234375,
-0.03375244140625,
0.0294952392578125,
-0.00313568115234375,
-0.0484619140625,
0.030303955078125,
0.0027713775634765625,
-0.03143310546875,
-0.0068817138671875,
-0.0712890625,
0.031951904296875,
0.00005745887756347656,
0.0247650146484375,
-0.0005526542663574219,
0.039642333984375,
0.0244293212890625,
0.05694580078125,
-0.0006742477416992188,
0.00539398193359375,
-0.0308685302734375,
0.0265960693359375,
-0.007373809814453125,
0.04608154296875,
-0.046478271484375,
-0.029052734375,
-0.046295166015625,
0.00885009765625,
0.01006317138671875,
0.006061553955078125,
0.00628662109375,
-0.000705718994140625,
0.031494140625,
0.01629638671875,
-0.01168060302734375,
0.073486328125,
-0.0089263916015625,
0.03594970703125,
0.00429534912109375,
-0.01885986328125,
0.0214996337890625,
-0.0117950439453125,
-0.00013375282287597656,
0.01384735107421875,
-0.034210205078125,
-0.0013446807861328125,
-0.032318115234375,
0.019989013671875,
-0.00812530517578125,
-0.019287109375
] |
032f852cc9fa369a9b0350edc3344fa46b1cc085 | Wordpress Stackexchange
Q: How can I change preview URL? How can I change the preview URL in Wordpress?
When creating a post in Wordpress, there is a Preview button which takes you to the draft view. Because I have a custom integration of Wordpress and don't use a theme, I would like to change the URL of the preview link. Is this possible? How?
Regarding the custom implementation, Wordpress posts are integrated in another framework. I do this by setting WP_USE_THEMES to false, loading wp-config.php and directly accessing the posts using WP_Query(). This means I am bypassing any Wordpress theme that is set.
A: You can do something like this, add to functions.php
add_filter( 'preview_post_link', 'the_preview_fix' );
function the_preview_fix() {
$slug = basename(get_permalink());
return "http://www.mywebsite.com/blog/p/$slug";
}
More info HERE and HERE.
| Q: How can I change preview URL? How can I change the preview URL in Wordpress?
When creating a post in Wordpress, there is a Preview button which takes you to the draft view. Because I have a custom integration of Wordpress and don't use a theme, I would like to change the URL of the preview link. Is this possible? How?
Regarding the custom implementation, Wordpress posts are integrated in another framework. I do this by setting WP_USE_THEMES to false, loading wp-config.php and directly accessing the posts using WP_Query(). This means I am bypassing any Wordpress theme that is set.
A: You can do something like this, add to functions.php
add_filter( 'preview_post_link', 'the_preview_fix' );
function the_preview_fix() {
$slug = basename(get_permalink());
return "http://www.mywebsite.com/blog/p/$slug";
}
More info HERE and HERE.
| wordpress | {
"language": "en",
"length": 129,
"provenance": "stackexchange_00019.jsonl.gz:490689",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/319663"
} | [
0.053009033203125,
-0.0113067626953125,
0.05560302734375,
-0.010101318359375,
-0.028656005859375,
-0.01531219482421875,
0.0217437744140625,
-0.07330322265625,
-0.0149688720703125,
0.0162506103515625,
-0.0034580230712890625,
-0.0195159912109375,
-0.005859375,
-0.04583740234375,
0.0062713623046875,
-0.0379638671875,
0.033538818359375,
-0.016693115234375,
0.03662109375,
-0.017913818359375,
0.0226593017578125,
0.00368499755859375,
0.047943115234375,
0.03912353515625,
0.0081329345703125,
0.02398681640625,
0.0452880859375,
-0.047821044921875,
0.003154754638671875,
-0.031829833984375,
0.0185089111328125,
-0.009246826171875,
0.02630615234375,
0.01024627685546875,
-0.0255279541015625,
-0.00855255126953125,
0.038238525390625,
-0.01268768310546875,
-0.01062774658203125,
0.034332275390625,
0.0239715576171875,
-0.005809783935546875,
-0.0521240234375,
0.0017261505126953125,
-0.04766845703125,
-0.01303863525390625,
-0.006732940673828125,
-0.038543701171875,
0.0150299072265625,
-0.0299835205078125,
0.0181427001953125,
0.0033893585205078125,
0.0273284912109375,
-0.0032329559326171875,
-0.033721923828125,
-0.01053619384765625,
-0.00717926025390625,
0.0301971435546875,
0.0047454833984375,
-0.02325439453125,
0.0006113052368164062,
0.059906005859375,
-0.00955963134765625,
0.03564453125,
-0.01378631591796875,
0.00414276123046875,
-0.0119781494140625,
0.0141448974609375,
0.01043701171875,
-0.01262664794921875,
0.00920867919921875,
-0.01001739501953125,
-0.01137542724609375,
-0.042236328125,
-0.0082550048828125,
0.01849365234375,
-0.0171966552734375,
-0.03778076171875,
0.006175994873046875,
0.00482940673828125,
0.035797119140625,
-0.0159759521484375,
-0.0028972625732421875,
-0.0264892578125,
0.046417236328125,
-0.0007104873657226562,
0.0004596710205078125,
-0.0239715576171875,
-0.006500244140625,
-0.01276397705078125,
-0.0207366943359375,
0.00493621826171875,
-0.0243682861328125,
0.00823211669921875,
-0.0191192626953125,
-0.0014743804931640625,
-0.0008931159973144531,
0.00131988525390625,
0.01513671875,
0.0021877288818359375,
0.0247039794921875,
-0.05035400390625,
0.03338623046875,
-0.0239715576171875,
-0.0196075439453125,
0.039459228515625,
0.034942626953125,
0.06500244140625,
0.032470703125,
0.02471923828125,
0.005893707275390625,
0.031341552734375,
-0.030670166015625,
0.00011605024337768555,
-0.04132080078125,
0.006175994873046875,
-0.07122802734375,
0.003612518310546875,
-0.0272369384765625,
0.02685546875,
0.02099609375,
0.03741455078125,
-0.0265655517578125,
0.034210205078125,
0.015289306640625,
0.020751953125,
0.004817962646484375,
-0.03155517578125,
-0.0230560302734375,
0.0189056396484375,
-0.038360595703125,
0.0050201416015625,
0.0924072265625,
0.0604248046875,
0.03350830078125,
-0.0245819091796875,
0.005138397216796875,
0.01238250732421875,
-0.034393310546875,
0.022796630859375,
-0.0177459716796875,
-0.007450103759765625,
0.01351165771484375,
-0.048431396484375,
0.01271820068359375,
0.036773681640625,
0.015045166015625,
0.004123687744140625,
0.019561767578125,
-0.003421783447265625,
-0.049224853515625,
0.0005044937133789062,
0.003604888916015625,
0.0295257568359375,
0.047149658203125,
-0.040679931640625,
0.07867431640625,
-0.060546875,
0.039276123046875,
-0.045379638671875,
0.0482177734375,
0.003650665283203125,
-0.00009363889694213867,
0.019775390625,
-0.021392822265625,
0.01064300537109375,
-0.05322265625,
-0.0084075927734375,
0.018829345703125,
0.036346435546875,
-0.01169586181640625,
-0.006031036376953125,
-0.023590087890625,
0.0159149169921875,
-0.0036754608154296875,
0.0028629302978515625,
0.04168701171875,
0.01480865478515625,
-0.01374053955078125,
0.070556640625,
0.01105499267578125,
-0.0222625732421875,
0.052886962890625,
-0.031768798828125,
-0.02508544921875,
0.0297698974609375,
0.006786346435546875,
0.03485107421875,
0.0037784576416015625,
0.0228118896484375,
-0.01161956787109375,
0.0294342041015625,
-0.02410888671875,
0.03875732421875,
0.006778717041015625,
-0.027313232421875,
-0.005191802978515625,
-0.0043792724609375,
-0.0063934326171875,
-0.00372314453125,
-0.003810882568359375,
0.033660888671875,
-0.001190185546875,
0.00437164306640625,
-0.0308837890625,
0.031463623046875,
-0.01207733154296875,
0.05657958984375,
-0.002750396728515625,
0.022552490234375,
0.01099395751953125,
0.0003762245178222656,
-0.0151214599609375,
-0.0283050537109375,
-0.023681640625,
0.0195159912109375,
0.0267791748046875,
-0.0007724761962890625,
0.004505157470703125,
-0.00891876220703125,
0.0003676414489746094,
0.0312347412109375,
-0.024627685546875,
0.0171661376953125,
0.051666259765625,
-0.0460205078125,
0.005519866943359375,
-0.04345703125,
0.031768798828125,
-0.01488494873046875,
-0.0382080078125,
0.041717529296875,
0.01898193359375,
-0.00525665283203125,
-0.023590087890625,
0.0206451416015625,
0.0277099609375,
-0.038726806640625,
-0.01155853271484375,
0.0426025390625,
0.020965576171875,
-0.0203704833984375,
-0.02960205078125,
-0.011932373046875,
0.0247955322265625,
-0.00826263427734375,
0.0214080810546875,
-0.0031948089599609375,
0.035400390625,
0.044158935546875,
-0.01953125,
-0.0120697021484375,
0.013153076171875,
-0.03778076171875,
0.039031982421875,
0.020477294921875,
-0.0007958412170410156,
-0.023773193359375,
-0.0032482147216796875,
0.031402587890625,
0.002727508544921875,
0.045074462890625,
-0.00313568115234375,
0.0110321044921875,
-0.00621795654296875,
0.0294189453125,
0.039154052734375,
0.0439453125,
0.0011110305786132812,
0.001132965087890625,
-0.01690673828125,
0.004222869873046875,
0.0127105712890625,
0.0301513671875,
-0.01555633544921875,
-0.014129638671875,
0.00838470458984375,
-0.007320404052734375,
0.00177001953125,
-0.00360870361328125,
-0.0294189453125,
0.053131103515625,
-0.0082244873046875,
-0.0250396728515625,
-0.04962158203125,
-0.07379150390625,
-0.006313323974609375,
-0.035614013671875,
0.0210723876953125,
0.00641632080078125,
0.0679931640625,
-0.033172607421875,
-0.0200347900390625,
0.00606536865234375,
-0.0232696533203125,
-0.04730224609375,
-0.0074920654296875,
-0.0772705078125,
0.03900146484375,
-0.029815673828125,
0.06298828125,
0.08978271484375,
0.00876617431640625,
0.0102996826171875,
0.003406524658203125,
0.0027866363525390625,
-0.0205535888671875,
0.01453399658203125,
-0.00885009765625,
0.005001068115234375,
-0.09832763671875,
-0.0185089111328125,
0.000044465065002441406,
-0.0163726806640625,
-0.0232086181640625,
-0.01318359375,
-0.01399993896484375,
-0.01727294921875,
-0.026885986328125,
0.03045654296875,
-0.03314208984375,
-0.057952880859375,
-0.007648468017578125,
-0.0020313262939453125,
-0.0248565673828125,
0.012176513671875,
0.0005440711975097656,
0.0184783935546875,
-0.0033054351806640625,
-0.035308837890625,
-0.051544189453125,
-0.050323486328125,
-0.058380126953125,
-0.01532745361328125,
0.0021800994873046875,
-0.00518798828125,
0.01629638671875,
-0.00959014892578125,
0.007320404052734375,
-0.0191192626953125,
0.0181884765625,
0.08740234375,
-0.010986328125,
-0.03778076171875,
0.03277587890625,
-0.023956298828125,
-0.0102081298828125,
-0.00496673583984375,
0.0677490234375,
0.031524658203125,
-0.04266357421875,
-0.00684356689453125,
-0.03900146484375,
0.00634765625,
0.00954437255859375,
0.0472412109375,
0.039520263671875,
-0.00965118408203125,
0.03253173828125,
-0.0390625,
0.0008454322814941406,
-0.02642822265625,
-0.05023193359375,
-0.003032684326171875,
0.03497314453125,
-0.0149078369140625,
-0.0391845703125,
-0.00414276123046875,
0.00818634033203125,
-0.026153564453125,
0.053558349609375,
-0.03411865234375,
0.060272216796875,
-0.00783538818359375,
0.006633758544921875,
-0.058349609375,
0.030670166015625,
0.0026836395263671875,
0.0153656005859375,
0.01290130615234375,
0.05609130859375,
0.024078369140625,
-0.020538330078125,
-0.039276123046875,
-0.0474853515625,
0.02044677734375,
-0.0906982421875,
0.01531219482421875,
-0.04638671875,
0.00011748075485229492,
-0.01438140869140625,
0.08856201171875,
-0.0325927734375,
-0.004253387451171875,
0.00463104248046875,
0.01253509521484375,
-0.023101806640625,
-0.047088623046875,
-0.060211181640625,
-0.0035800933837890625,
-0.0643310546875,
0.0177001953125,
-0.01238250732421875,
-0.0091705322265625,
-0.033172607421875,
0.0085601806640625,
-0.0282745361328125,
-0.02728271484375,
0.034088134765625,
0.01192474365234375,
-0.00955963134765625,
0.0197296142578125,
-0.01357269287109375,
-0.00598907470703125,
-0.03924560546875,
0.01233673095703125,
-0.050323486328125,
-0.022064208984375,
0.041168212890625,
0.02490234375,
0.00740814208984375,
-0.0576171875,
0.0152587890625,
0.055511474609375,
0.03143310546875,
0.056854248046875,
0.003871917724609375,
-0.0185699462890625,
-0.00927734375,
-0.0124969482421875,
0.016845703125,
-0.026885986328125,
0.0022449493408203125,
-0.0245361328125,
-0.0792236328125,
0.014556884765625,
-0.00412750244140625,
0.0594482421875,
0.031646728515625,
-0.031219482421875,
-0.0731201171875,
-0.0229644775390625,
0.016082763671875,
0.04388427734375,
-0.00917816162109375,
0.0017452239990234375,
-0.024200439453125,
-0.08837890625,
0.03887939453125,
-0.0226593017578125,
0.01079559326171875,
-0.01288604736328125,
0.053466796875,
0.01477813720703125,
-0.00836944580078125,
0.06353759765625,
0.0230560302734375,
0.044403076171875,
0.0206298828125,
0.021148681640625,
0.017181396484375,
-0.00794219970703125,
0.01806640625,
0.010772705078125,
-0.0241241455078125,
0.002109527587890625,
0.0262298583984375,
0.012237548828125,
-0.0211029052734375,
0.03253173828125,
-0.0021305084228515625,
0.0135498046875,
0.033447265625,
-0.0272979736328125,
-0.01444244384765625,
-0.007106781005859375,
0.04925537109375,
-0.02227783203125,
0.0293121337890625,
-0.03857421875,
-0.0182342529296875,
0.016937255859375,
0.0304718017578125,
0.0193634033203125,
0.016357421875,
0.00879669189453125,
0.0228424072265625,
0.02215576171875,
0.005886077880859375,
0.006435394287109375,
-0.01465606689453125,
-0.002105712890625,
0.0048980712890625,
0.034515380859375,
0.006633758544921875,
-0.0020599365234375,
-0.0206756591796875,
0.0738525390625,
0.0252227783203125,
-0.048126220703125,
0.00647735595703125,
-0.01293182373046875,
0.0138092041015625,
-0.018707275390625,
-0.0141754150390625,
0.039459228515625,
-0.004398345947265625,
0.005222320556640625,
0.0105133056640625,
-0.055694580078125,
-0.01271820068359375,
-0.037109375,
0.06353759765625,
0.005855560302734375,
0.005786895751953125,
0.040985107421875,
0.0303955078125,
0.0004086494445800781,
0.03204345703125,
-0.0089874267578125,
0.0183258056640625,
0.07373046875,
-0.01556396484375,
0.00786590576171875,
0.055755615234375,
-0.0264434814453125,
-0.023284912109375,
0.042449951171875,
-0.01073455810546875,
0.0113525390625,
-0.0030384063720703125,
0.0047760009765625,
-0.01497650146484375,
-0.02471923828125,
0.054901123046875,
-0.0186309814453125,
-0.009521484375,
0.00701904296875,
-0.017852783203125,
-0.038909912109375,
-0.005863189697265625,
0.023040771484375,
-0.0034427642822265625,
-0.0148162841796875,
-0.00919342041015625,
-0.032012939453125,
-0.004627227783203125,
0.007167816162109375,
-0.041168212890625,
-0.0224761962890625,
0.020233154296875,
0.0208282470703125,
0.012298583984375,
-0.01416015625,
-0.0037994384765625,
0.007785797119140625,
0.0232391357421875,
-0.04833984375,
-0.01488494873046875,
0.08953857421875,
-0.012481689453125,
0.0104522705078125,
-0.0015230178833007812,
-0.0333251953125,
0.00003552436828613281,
0.0139312744140625,
0.052947998046875,
0.00995635986328125,
-0.0391845703125,
-0.031646728515625,
-0.04034423828125,
-0.019683837890625,
-0.002506256103515625,
-0.01477813720703125,
-0.029998779296875,
0.0087432861328125,
0.0199432373046875,
0.0274810791015625,
-0.019927978515625,
-0.015960693359375,
-0.0142059326171875,
0.0286102294921875,
0.0264892578125,
0.071044921875,
0.01071929931640625,
0.037567138671875,
0.002346038818359375,
0.060546875,
0.01532745361328125,
-0.003993988037109375,
-0.041015625,
-0.038604736328125,
-0.005290985107421875,
-0.0224151611328125,
-0.00308990478515625,
0.0031757354736328125,
-0.003814697265625,
0.0054931640625,
0.02410888671875,
-0.005886077880859375,
0.003490447998046875,
-0.0288238525390625,
-0.0018901824951171875,
-0.035308837890625,
0.045989990234375,
-0.058929443359375,
-0.00313568115234375,
-0.0231475830078125,
0.016387939453125,
0.030853271484375,
-0.00293731689453125,
0.031494140625,
-0.030548095703125,
0.0016736984252929688,
-0.0123748779296875,
-0.0391845703125,
-0.061187744140625,
0.049285888671875,
0.08660888671875,
0.030426025390625,
0.061676025390625,
0.01277923583984375,
0.027801513671875,
0.030517578125,
-0.01195526123046875,
0.007312774658203125,
-0.01885986328125,
0.03424072265625,
-0.0006694793701171875,
-0.022003173828125,
0.01145172119140625,
-0.021697998046875,
0.0129547119140625,
0.055938720703125,
0.0277557373046875,
-0.10748291015625,
0.018646240234375,
-0.00848388671875,
0.0235137939453125,
0.06048583984375,
0.038177490234375,
-0.0114898681640625,
0.03216552734375,
0.00508880615234375,
-0.063720703125,
-0.01288604736328125,
0.0298004150390625,
0.0112457275390625,
0.0149688720703125,
-0.025390625,
0.045501708984375,
-0.010040283203125,
-0.0548095703125,
-0.02294921875,
0.031951904296875,
-0.0274200439453125,
-0.0187835693359375,
-0.017730712890625,
0.025787353515625,
-0.01253509521484375,
-0.03765869140625,
0.04986572265625,
-0.047943115234375,
0.0082855224609375,
0.00022983551025390625,
0.01459503173828125,
0.034515380859375,
0.04241943359375,
-0.00592041015625,
0.01654052734375,
0.004085540771484375,
0.01690673828125,
0.038421630859375,
0.007762908935546875,
-0.005069732666015625,
0.03680419921875,
-0.015106201171875,
0.01049041748046875,
-0.0227203369140625,
0.00746917724609375,
0.01568603515625,
0.0389404296875,
0.044708251953125,
-0.0188751220703125,
-0.031585693359375,
0.04486083984375,
-0.0260467529296875,
-0.0195465087890625,
-0.00849151611328125,
-0.028900146484375,
-0.03143310546875,
0.0037746429443359375,
-0.03155517578125,
-0.03521728515625,
0.004840850830078125,
-0.046173095703125,
-0.08233642578125,
0.08056640625,
-0.003932952880859375,
0.06707763671875,
0.029144287109375,
0.00724029541015625,
-0.032562255859375,
-0.01345062255859375,
-0.01558685302734375,
0.034576416015625,
0.037994384765625,
0.0180206298828125,
0.007724761962890625,
-0.0106964111328125,
0.006481170654296875,
0.0248565673828125,
0.06707763671875,
0.0230560302734375,
-0.01546478271484375,
-0.02490234375,
0.023406982421875,
0.04376220703125,
-0.00492095947265625,
0.01535797119140625,
0.007320404052734375,
0.047821044921875,
0.028839111328125,
-0.05389404296875,
0.015899658203125,
-0.0129241943359375,
-0.0015697479248046875,
0.036163330078125,
0.0269622802734375,
0.0401611328125,
0.02264404296875,
0.0118255615234375,
-0.06878662109375,
0.01898193359375,
0.0634765625,
-0.0100860595703125,
-0.01275634765625,
0.0175323486328125,
0.0115814208984375,
-0.022308349609375,
-0.0024852752685546875,
-0.026519775390625,
0.03680419921875,
0.016082763671875,
-0.0186767578125,
0.0225372314453125,
0.00431060791015625,
0.00379180908203125,
-0.01149749755859375,
-0.01393890380859375,
0.0186614990234375,
-0.005733489990234375,
0.06268310546875,
0.04962158203125,
0.01366424560546875,
-0.005107879638671875,
0.051849365234375,
0.05877685546875,
0.07220458984375,
-0.07275390625,
-0.0030460357666015625,
0.0167999267578125,
-0.0133209228515625,
-0.00035500526428222656,
-0.038299560546875,
0.017791748046875,
-0.008941650390625,
-0.047149658203125,
-0.010223388671875,
-0.01357269287109375,
0.029693603515625,
0.02532958984375,
-0.0007524490356445312,
0.0013113021850585938,
-0.025482177734375,
-0.01258087158203125,
-0.0282745361328125,
-0.007541656494140625,
0.00440216064453125,
0.0325927734375,
0.02117919921875,
0.03118896484375,
-0.006427764892578125,
-0.005680084228515625,
-0.0081939697265625,
0.0616455078125,
0.0184326171875,
-0.00901031494140625,
-0.005950927734375,
-0.048126220703125,
0.0191802978515625,
0.0160675048828125,
-0.004947662353515625,
0.00615692138671875,
0.03485107421875,
-0.02117919921875,
-0.0810546875,
-0.017242431640625,
0.01473236083984375,
-0.04730224609375,
0.01580810546875,
-0.08514404296875,
0.0210418701171875,
-0.021881103515625,
0.003162384033203125,
0.007625579833984375,
-0.0245361328125,
0.0182647705078125,
-0.0496826171875,
0.03704833984375,
-0.0219879150390625,
-0.01213836669921875,
0.06787109375,
-0.017669677734375,
0.0257110595703125,
-0.031982421875,
-0.04608154296875,
-0.0196075439453125,
-0.0249176025390625,
-0.0231475830078125,
0.025421142578125,
0.0361328125,
-0.019317626953125,
0.0310516357421875,
-0.00788116455078125,
0.01419830322265625,
0.0224456787109375,
-0.061431884765625,
0.01293182373046875,
0.020843505859375,
0.00415802001953125,
0.006855010986328125,
-0.048431396484375,
-0.040985107421875,
-0.0239410400390625,
0.055084228515625,
-0.023834228515625,
0.130615234375,
-0.0606689453125,
-0.004276275634765625,
0.0115509033203125,
0.041534423828125,
-0.037628173828125,
-0.0079498291015625,
0.0205841064453125,
-0.0219268798828125,
0.021636962890625,
-0.007511138916015625,
-0.005641937255859375,
0.0155792236328125,
0.0146484375,
-0.04412841796875,
0.0264434814453125,
-0.06085205078125,
0.0104827880859375,
-0.03216552734375,
0.0159912109375,
-0.0205535888671875,
-0.0258331298828125,
-0.0211944580078125,
0.00882720947265625,
0.02325439453125,
0.01517486572265625,
-0.04632568359375,
0.0433349609375,
0.021820068359375,
0.007717132568359375,
0.01824951171875,
-0.01107025146484375,
0.03692626953125,
0.0396728515625,
-0.0219879150390625,
0.013519287109375,
0.004299163818359375,
-0.0187530517578125,
0.000965118408203125,
0.020355224609375,
-0.02264404296875,
0.0103302001953125,
-0.026123046875,
-0.042449951171875,
-0.04510498046875,
-0.0135498046875,
-0.0418701171875,
0.0012197494506835938,
-0.00804901123046875,
0.006336212158203125,
-0.006229400634765625,
0.01317596435546875,
-0.0144805908203125,
-0.019134521484375,
-0.012420654296875,
0.0033397674560546875,
-0.02374267578125,
-0.019927978515625,
-0.036468505859375,
-0.0086517333984375,
0.029571533203125,
-0.0012807846069335938,
-0.04669189453125,
0.024078369140625,
-0.022186279296875,
0.02734375,
-0.035858154296875,
-0.017852783203125,
0.01062774658203125,
0.0374755859375,
-0.0235137939453125,
-0.053192138671875,
-0.031341552734375,
0.041046142578125,
-0.06512451171875,
0.028045654296875,
0.06927490234375,
-0.0279541015625,
-0.04364013671875,
-0.021392822265625,
0.017852783203125,
0.035430908203125,
-0.038482666015625,
-0.031707763671875,
-0.005123138427734375,
0.01483154296875,
0.01477813720703125,
-0.05108642578125,
-0.015228271484375,
-0.0253448486328125,
0.01678466796875,
-0.0127105712890625,
0.0031032562255859375,
0.023162841796875,
-0.0362548828125,
-0.07574462890625,
0.0157623291015625,
-0.018341064453125,
-0.044464111328125,
-0.03607177734375,
0.00769805908203125,
-0.0187835693359375,
0.05389404296875,
0.006069183349609375,
-0.00787353515625,
-0.0306396484375,
0.006534576416015625,
0.01153564453125,
0.074951171875,
-0.040985107421875,
0.0307159423828125,
0.0161590576171875,
0.06689453125,
0.051116943359375,
0.0121307373046875,
-0.022216796875,
-0.00522613525390625,
0.004085540771484375,
0.016326904296875,
-0.039031982421875,
-0.03631591796875,
0.0092620849609375,
0.01090240478515625,
-0.0018987655639648438,
-0.036468505859375,
-0.04779052734375,
-0.0217742919921875,
0.07269287109375,
0.041015625,
0.0206451416015625,
-0.019378662109375,
-0.004489898681640625,
-0.0198974609375,
-0.058380126953125,
-0.0292205810546875,
0.042572021484375,
-0.0809326171875,
-0.019989013671875,
0.0284271240234375,
0.0009198188781738281,
-0.01120758056640625,
-0.03436279296875,
-0.0323486328125,
-0.0250701904296875,
-0.041778564453125,
0.0266265869140625,
-0.0650634765625,
0.00951385498046875,
0.102783203125,
-0.057464599609375,
0.0213470458984375,
0.001491546630859375,
0.017578125,
0.057861328125,
-0.04547119140625,
0.0005068778991699219,
0.035919189453125,
-0.0245819091796875,
-0.00801849365234375,
0.0170440673828125,
0.0058441162109375,
-0.0097503662109375,
-0.004901885986328125,
-0.0180511474609375,
0.0161590576171875,
-0.01129913330078125,
-0.0007562637329101562,
0.01335906982421875,
0.024749755859375,
-0.0106964111328125,
0.0821533203125,
-0.01384735107421875,
0.0386962890625,
0.0134429931640625,
0.013885498046875,
-0.02978515625,
0.00969696044921875,
0.0259246826171875,
-0.05792236328125,
0.005069732666015625,
0.0070648193359375,
0.00868988037109375,
-0.01535797119140625,
-0.0079193115234375,
-0.0176239013671875,
-0.007175445556640625,
0.0032958984375
] |
23c72815612b7c04f51d2dda875a2994a9e0b950 | Wordpress Stackexchange
Q: Show or hide custom meta box not work with Gutenberg I’m on WordPress 5 beta 4,
the problem is that meta boxes can not hide them when selecting a specific template chosen by page attributes.
To make them appear or hide, you have to update the browser page or exit the created page and re-enter it.
This is not very nice for users.
This is my code:
<?php
function willer_custom_meta_portfolio_standar() {
global $post;
if(!empty($post))
{
$pageTemplate = get_post_meta($post->ID, '_wp_page_template', true);
if($pageTemplate == 'template-pages/page-portfolio-standar.php' )
{
add_meta_box(
'page-portfolio-standar-meta-box', // $id
esc_html__('Customize Portfolio Standar','willer'), // $title
'willer_portfolio_standar_meta_callback', // $callback
'page', // $page
'normal', // $context
'high'); // $priority
}
}
}
add_action( 'add_meta_boxes', 'willer_custom_meta_portfolio_standar' );
?>
The problem also occurs with WordPress 4.9.8 using Gutenberg,
using the classic editor the problem is not there.
I think it’s because Gutenberg uses Ajax to save the options.
Do you have any suggestions to solve the problem?
Thank yo
| Q: Show or hide custom meta box not work with Gutenberg I’m on WordPress 5 beta 4,
the problem is that meta boxes can not hide them when selecting a specific template chosen by page attributes.
To make them appear or hide, you have to update the browser page or exit the created page and re-enter it.
This is not very nice for users.
This is my code:
<?php
function willer_custom_meta_portfolio_standar() {
global $post;
if(!empty($post))
{
$pageTemplate = get_post_meta($post->ID, '_wp_page_template', true);
if($pageTemplate == 'template-pages/page-portfolio-standar.php' )
{
add_meta_box(
'page-portfolio-standar-meta-box', // $id
esc_html__('Customize Portfolio Standar','willer'), // $title
'willer_portfolio_standar_meta_callback', // $callback
'page', // $page
'normal', // $context
'high'); // $priority
}
}
}
add_action( 'add_meta_boxes', 'willer_custom_meta_portfolio_standar' );
?>
The problem also occurs with WordPress 4.9.8 using Gutenberg,
using the classic editor the problem is not there.
I think it’s because Gutenberg uses Ajax to save the options.
Do you have any suggestions to solve the problem?
Thank yo
| wordpress | {
"language": "en",
"length": 155,
"provenance": "stackexchange_00019.jsonl.gz:490702",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/319709"
} | [
0.017364501953125,
0.00284576416015625,
0.0211334228515625,
0.01064300537109375,
-0.0010118484497070312,
-0.00769805908203125,
0.038726806640625,
-0.04937744140625,
0.034942626953125,
0.035064697265625,
-0.017486572265625,
-0.0672607421875,
0.007221221923828125,
-0.0211334228515625,
-0.062042236328125,
-0.0428466796875,
0.0247039794921875,
0.0204315185546875,
0.04437255859375,
0.0025959014892578125,
0.009246826171875,
-0.0078582763671875,
0.004314422607421875,
0.0176239013671875,
0.033477783203125,
-0.048370361328125,
0.0310211181640625,
-0.0103607177734375,
0.0185394287109375,
-0.010101318359375,
0.0283355712890625,
0.00917816162109375,
-0.0201263427734375,
0.03076171875,
0.0020885467529296875,
0.0228118896484375,
0.0291900634765625,
0.0256195068359375,
0.0294647216796875,
0.0091400146484375,
0.0191497802734375,
-0.009674072265625,
-0.0203704833984375,
-0.03558349609375,
-0.0037250518798828125,
-0.0271453857421875,
0.00916290283203125,
-0.045013427734375,
0.013397216796875,
0.05621337890625,
-0.00403594970703125,
-0.0028228759765625,
-0.01177978515625,
0.032196044921875,
-0.00542449951171875,
-0.036529541015625,
-0.0579833984375,
0.07086181640625,
0.02362060546875,
0.056243896484375,
-0.01027679443359375,
0.0283050537109375,
-0.03564453125,
-0.0638427734375,
0.01451873779296875,
-0.0025806427001953125,
0.0054931640625,
0.0217132568359375,
-0.0186614990234375,
0.0119781494140625,
0.01511383056640625,
-0.0103912353515625,
0.0118408203125,
-0.0706787109375,
-0.0026226043701171875,
0.050262451171875,
-0.0206451416015625,
-0.00946044921875,
0.016693115234375,
-0.03326416015625,
0.0260162353515625,
0.024139404296875,
-0.020751953125,
-0.01277923583984375,
0.01505279541015625,
0.0176239013671875,
-0.008148193359375,
-0.0273284912109375,
-0.0227203369140625,
-0.0169677734375,
-0.01406097412109375,
-0.0921630859375,
-0.0126800537109375,
0.016387939453125,
0.027313232421875,
-0.04669189453125,
-0.0207366943359375,
0.01439666748046875,
-0.04266357421875,
-0.0197906494140625,
-0.0029315948486328125,
-0.01345062255859375,
0.006591796875,
-0.01056671142578125,
-0.01360321044921875,
0.0300445556640625,
0.0138702392578125,
0.03485107421875,
0.0284576416015625,
0.0253143310546875,
0.0160369873046875,
-0.022674560546875,
-0.019744873046875,
-0.0180206298828125,
-0.005626678466796875,
0.0135040283203125,
-0.04193115234375,
0.0161285400390625,
-0.01282501220703125,
0.0014600753784179688,
0.0014467239379882812,
0.024505615234375,
0.039520263671875,
-0.08978271484375,
0.010101318359375,
-0.0190582275390625,
-0.05499267578125,
-0.03350830078125,
-0.0018854141235351562,
0.0179443359375,
-0.051788330078125,
-0.00551605224609375,
0.06951904296875,
0.053466796875,
0.032012939453125,
-0.0295562744140625,
0.05926513671875,
-0.006313323974609375,
0.006488800048828125,
0.025146484375,
-0.0330810546875,
-0.036956787109375,
-0.0076446533203125,
-0.0279541015625,
-0.00775909423828125,
0.02667236328125,
0.041534423828125,
-0.007389068603515625,
-0.0266265869140625,
-0.07977294921875,
-0.004650115966796875,
0.003589630126953125,
0.05767822265625,
0.012969970703125,
-0.0082244873046875,
0.01534271240234375,
0.0865478515625,
-0.034759521484375,
-0.06378173828125,
-0.056060791015625,
-0.005420684814453125,
-0.0091094970703125,
0.01088714599609375,
-0.009033203125,
-0.01275634765625,
0.01050567626953125,
-0.0127105712890625,
0.004730224609375,
0.0219879150390625,
0.043243408203125,
0.0119171142578125,
0.0210418701171875,
0.01593017578125,
-0.0181121826171875,
-0.0257720947265625,
-0.0178375244140625,
-0.01215362548828125,
0.05499267578125,
0.03033447265625,
-0.0173797607421875,
-0.0234222412109375,
-0.0555419921875,
0.08428955078125,
-0.031890869140625,
-0.06298828125,
0.038665771484375,
-0.005855560302734375,
0.0185089111328125,
0.02020263671875,
-0.0123291015625,
0.06817626953125,
0.031158447265625,
-0.037933349609375,
-0.004589080810546875,
0.0144195556640625,
0.01352691650390625,
0.0008172988891601562,
0.0137786865234375,
0.01096343994140625,
-0.0202178955078125,
0.01186370849609375,
-0.01404571533203125,
0.038116455078125,
-0.00603485107421875,
-0.0277862548828125,
0.0186920166015625,
-0.0264129638671875,
0.0242919921875,
-0.0239715576171875,
-0.0126495361328125,
0.028961181640625,
-0.0294189453125,
-0.02740478515625,
0.029510498046875,
-0.01268768310546875,
-0.0193328857421875,
0.00795745849609375,
0.06634521484375,
0.0083770751953125,
0.0020656585693359375,
0.03521728515625,
-0.04107666015625,
0.0252532958984375,
0.031646728515625,
0.06787109375,
0.004543304443359375,
-0.0169830322265625,
-0.00933837890625,
0.042205810546875,
0.0372314453125,
-0.0758056640625,
-0.00022792816162109375,
-0.00566864013671875,
-0.003108978271484375,
-0.036285400390625,
-0.0226287841796875,
0.005084991455078125,
-0.051483154296875,
0.0166015625,
0.042388916015625,
0.0260467529296875,
0.0004527568817138672,
-0.02203369140625,
-0.01322174072265625,
0.029083251953125,
-0.02642822265625,
0.006778717041015625,
-0.009429931640625,
-0.0232391357421875,
-0.041351318359375,
-0.00489044189453125,
-0.019256591796875,
0.039764404296875,
-0.0150146484375,
0.0156707763671875,
0.03082275390625,
-0.01154327392578125,
0.03887939453125,
-0.0188140869140625,
-0.0283203125,
0.0017547607421875,
-0.0272674560546875,
-0.011627197265625,
-0.014068603515625,
0.05718994140625,
0.01715087890625,
0.053070068359375,
0.03814697265625,
-0.0241241455078125,
0.0240936279296875,
0.0001583099365234375,
-0.01357269287109375,
0.010101318359375,
-0.006450653076171875,
0.0333251953125,
0.0308837890625,
-0.061431884765625,
-0.0054931640625,
0.050872802734375,
0.0263519287109375,
0.01464080810546875,
0.0181732177734375,
-0.03826904296875,
0.00457763671875,
0.0274658203125,
-0.01056671142578125,
-0.01088714599609375,
0.0204620361328125,
0.0238189697265625,
-0.01351165771484375,
0.0289154052734375,
0.01486968994140625,
-0.00891876220703125,
0.031707763671875,
0.0052642822265625,
-0.033203125,
0.024078369140625,
-0.04534912109375,
0.04827880859375,
-0.037139892578125,
0.03997802734375,
0.05670166015625,
-0.04278564453125,
0.041839599609375,
-0.00823974609375,
0.0012159347534179688,
-0.0196990966796875,
0.01198577880859375,
-0.01332855224609375,
-0.042022705078125,
-0.0167083740234375,
0.0071868896484375,
0.032470703125,
-0.007419586181640625,
0.021881103515625,
-0.025421142578125,
-0.0035877227783203125,
0.017608642578125,
-0.0269317626953125,
0.0130462646484375,
0.01502227783203125,
-0.0286865234375,
-0.044891357421875,
-0.00946044921875,
-0.03076171875,
0.00963592529296875,
0.007381439208984375,
-0.00511932373046875,
-0.045257568359375,
-0.0022335052490234375,
-0.048309326171875,
-0.0643310546875,
-0.052337646484375,
-0.0009312629699707031,
-0.00577545166015625,
0.013824462890625,
-0.0027618408203125,
0.047821044921875,
-0.011810302734375,
-0.0665283203125,
-0.0098876953125,
0.00521087646484375,
0.0038280487060546875,
0.033111572265625,
0.03790283203125,
-0.036895751953125,
0.0029621124267578125,
0.0137939453125,
0.06451416015625,
0.0176544189453125,
-0.0285491943359375,
-0.01212310791015625,
-0.00836181640625,
-0.024749755859375,
0.0025634765625,
0.048126220703125,
0.00917816162109375,
-0.011138916015625,
0.047027587890625,
-0.030670166015625,
-0.0150909423828125,
-0.00447845458984375,
-0.0211334228515625,
0.01514434814453125,
-0.00534820556640625,
-0.003086090087890625,
-0.023040771484375,
0.04541015625,
0.01326751708984375,
0.031829833984375,
0.046661376953125,
-0.00466156005859375,
-0.0159759521484375,
-0.012939453125,
-0.0251617431640625,
-0.046966552734375,
0.0120391845703125,
-0.01441192626953125,
0.0305938720703125,
0.0024547576904296875,
0.024932861328125,
-0.002956390380859375,
0.0036373138427734375,
-0.040985107421875,
-0.04852294921875,
0.0491943359375,
-0.01483154296875,
-0.0450439453125,
-0.0146484375,
-0.0180511474609375,
0.016876220703125,
0.058197021484375,
-0.0286865234375,
0.01357269287109375,
0.0233001708984375,
-0.0006365776062011719,
-0.0119171142578125,
0.005954742431640625,
-0.09686279296875,
0.00740814208984375,
-0.10235595703125,
0.0246429443359375,
0.0084381103515625,
-0.0572509765625,
-0.00846099853515625,
-0.004337310791015625,
-0.0748291015625,
-0.0300445556640625,
0.0489501953125,
0.0022735595703125,
0.0188140869140625,
-0.015380859375,
0.021148681640625,
-0.03692626953125,
-0.0181884765625,
-0.0006966590881347656,
-0.0843505859375,
-0.0264892578125,
0.01885986328125,
0.058807373046875,
-0.040802001953125,
0.041656494140625,
-0.042816162109375,
0.06488037109375,
0.039581298828125,
0.0316162109375,
-0.0021209716796875,
-0.01172637939453125,
0.00945281982421875,
-0.021392822265625,
0.0066986083984375,
-0.01812744140625,
-0.011749267578125,
-0.0025691986083984375,
-0.0198211669921875,
0.0091705322265625,
-0.0113372802734375,
-0.04107666015625,
0.0230560302734375,
-0.029327392578125,
-0.006961822509765625,
-0.03167724609375,
-0.07305908203125,
0.005126953125,
-0.03350830078125,
-0.018890380859375,
-0.039520263671875,
-0.0498046875,
-0.009521484375,
-0.0338134765625,
0.01025390625,
0.0233154296875,
0.04156494140625,
0.02105712890625,
0.0010538101196289062,
-0.0302276611328125,
0.00627899169921875,
0.01416015625,
0.037994384765625,
0.040802001953125,
-0.00743865966796875,
-0.006565093994140625,
0.036346435546875,
-0.00464630126953125,
0.0089111328125,
-0.051361083984375,
0.0780029296875,
-0.032501220703125,
-0.06427001953125,
0.061065673828125,
-0.03802490234375,
0.005340576171875,
0.03070068359375,
-0.005916595458984375,
0.00646209716796875,
-0.0428466796875,
0.0035533905029296875,
0.036651611328125,
-0.04278564453125,
-0.049041748046875,
0.0024623870849609375,
-0.00888824462890625,
0.0038890838623046875,
0.08294677734375,
0.0259552001953125,
0.00493621826171875,
0.0361328125,
0.047271728515625,
0.0015354156494140625,
-0.006259918212890625,
-0.0203399658203125,
-0.0338134765625,
0.0137939453125,
0.0174407958984375,
-0.020843505859375,
0.022308349609375,
0.019256591796875,
0.0092010498046875,
-0.0129852294921875,
-0.0193634033203125,
-0.074462890625,
0.003204345703125,
0.03741455078125,
0.00217437744140625,
0.00891876220703125,
0.032806396484375,
0.0275726318359375,
-0.026153564453125,
-0.03741455078125,
0.0312042236328125,
0.00701904296875,
-0.0509033203125,
-0.0185394287109375,
0.018951416015625,
-0.0005807876586914062,
-0.011932373046875,
0.09344482421875,
0.0063323974609375,
0.03607177734375,
-0.0175933837890625,
0.01308441162109375,
-0.0156402587890625,
0.04437255859375,
0.0311737060546875,
-0.054718017578125,
0.0140533447265625,
0.000033855438232421875,
-0.013092041015625,
-0.032684326171875,
-0.03173828125,
0.01763916015625,
0.0283203125,
-0.0112457275390625,
-0.0003426074981689453,
0.01154327392578125,
0.00545501708984375,
-0.033050537109375,
0.029937744140625,
-0.015472412109375,
-0.049713134765625,
-0.03375244140625,
0.01169586181640625,
0.0275421142578125,
0.005950927734375,
-0.004730224609375,
-0.01690673828125,
-0.023590087890625,
0.006969451904296875,
-0.037872314453125,
-0.02447509765625,
0.0141754150390625,
0.0144805908203125,
-0.00513458251953125,
0.0187225341796875,
0.005035400390625,
-0.064697265625,
-0.0672607421875,
0.0036106109619140625,
-0.01132965087890625,
0.0423583984375,
-0.053375244140625,
-0.003276824951171875,
-0.01294708251953125,
0.032806396484375,
-0.00872802734375,
0.05401611328125,
0.006378173828125,
0.0004286766052246094,
0.00750732421875,
-0.0160980224609375,
-0.0161285400390625,
-0.0103912353515625,
-0.0009565353393554688,
-0.057220458984375,
-0.01026153564453125,
-0.0191497802734375,
0.00466156005859375,
0.04351806640625,
-0.00905609130859375,
-0.01434326171875,
-0.0227508544921875,
-0.0031681060791015625,
0.012481689453125,
0.106201171875,
0.002777099609375,
0.0284271240234375,
-0.020111083984375,
0.047027587890625,
0.00461578369140625,
0.0087432861328125,
0.007007598876953125,
-0.037567138671875,
0.0002434253692626953,
-0.0413818359375,
-0.0230865478515625,
-0.0120849609375,
-0.014801025390625,
0.036376953125,
0.052398681640625,
-0.00470733642578125,
0.00785064697265625,
-0.0007929801940917969,
0.00222015380859375,
-0.021697998046875,
0.018768310546875,
-0.0009379386901855469,
0.00933074951171875,
0.0091400146484375,
-0.029510498046875,
0.0109710693359375,
0.01995849609375,
-0.021820068359375,
0.07080078125,
-0.033905029296875,
0.056671142578125,
0.02197265625,
-0.0135955810546875,
0.03076171875,
0.0306243896484375,
0.008270263671875,
0.04241943359375,
-0.0028171539306640625,
0.01239776611328125,
0.0133819580078125,
-0.00554656982421875,
-0.01763916015625,
-0.0087127685546875,
0.035186767578125,
0.0076904296875,
0.01090240478515625,
0.061614990234375,
0.007595062255859375,
-0.0029392242431640625,
0.020965576171875,
0.032012939453125,
-0.03680419921875,
0.001087188720703125,
0.00592803955078125,
0.014495849609375,
0.02496337890625,
-0.01375579833984375,
0.00243377685546875,
-0.0286407470703125,
0.03253173828125,
-0.01052093505859375,
-0.01102447509765625,
0.01715087890625,
-0.0034122467041015625,
-0.019287109375,
-0.02520751953125,
0.00241851806640625,
0.0008482933044433594,
-0.007396697998046875,
0.0148468017578125,
0.01287841796875,
0.0057373046875,
0.0009617805480957031,
-0.01552581787109375,
0.0162353515625,
-0.049041748046875,
-0.057525634765625,
-0.01898193359375,
-0.0205841064453125,
-0.0283355712890625,
0.0767822265625,
0.04949951171875,
0.0189208984375,
0.05364990234375,
-0.0028095245361328125,
0.032257080078125,
-0.00817108154296875,
0.034912109375,
0.007175445556640625,
-0.03155517578125,
0.017059326171875,
-0.0009260177612304688,
-0.053955078125,
0.01461029052734375,
-0.00759124755859375,
-0.0222625732421875,
-0.012939453125,
0.039215087890625,
0.12249755859375,
0.0005397796630859375,
-0.05511474609375,
0.04425048828125,
-0.002986907958984375,
-0.052825927734375,
0.02252197265625,
0.0203399658203125,
-0.057342529296875,
-0.0335693359375,
0.03326416015625,
-0.041717529296875,
-0.01316070556640625,
0.042694091796875,
-0.06793212890625,
0.09698486328125,
-0.0262451171875,
0.031524658203125,
-0.007778167724609375,
0.04473876953125,
-0.01067352294921875,
0.015350341796875,
-0.0194854736328125,
0.0262298583984375,
-0.0235443115234375,
0.041534423828125,
-0.0384521484375,
0.007232666015625,
0.00838470458984375,
0.0247344970703125,
0.001094818115234375,
-0.006565093994140625,
-0.01207733154296875,
-0.02447509765625,
0.022735595703125,
0.06207275390625,
0.0207977294921875,
-0.0020198822021484375,
-0.025390625,
0.00814056396484375,
-0.010467529296875,
-0.055999755859375,
0.006805419921875,
-0.0399169921875,
-0.04296875,
0.0027751922607421875,
0.01959228515625,
0.0265350341796875,
-0.0150299072265625,
0.068115234375,
-0.01267242431640625,
-0.012603759765625,
0.02880859375,
-0.005580902099609375,
-0.03656005859375,
0.0263671875,
0.0264739990234375,
-0.0352783203125,
-0.0225677490234375,
-0.0206298828125,
0.0284576416015625,
0.02667236328125,
0.0156402587890625,
-0.00887298583984375,
0.0211639404296875,
-0.015716552734375,
-0.0374755859375,
-0.0003921985626220703,
0.02911376953125,
-0.075439453125,
-0.00438690185546875,
0.0106353759765625,
0.0144805908203125,
-0.000009775161743164062,
0.031158447265625,
0.028961181640625,
0.00037670135498046875,
-0.01593017578125,
-0.054107666015625,
-0.002613067626953125,
-0.004535675048828125,
0.0068359375,
0.004131317138671875,
0.0019006729125976562,
0.0284423828125,
0.042755126953125,
-0.0316162109375,
-0.0156402587890625,
-0.01502227783203125,
0.0199127197265625,
-0.0306854248046875,
-0.0270843505859375,
0.0306854248046875,
-0.003021240234375,
-0.07257080078125,
0.00875091552734375,
0.0198822021484375,
0.0643310546875,
0.032623291015625,
0.06671142578125,
0.01277923583984375,
-0.0335693359375,
-0.0390625,
0.035186767578125,
-0.032470703125,
0.061920166015625,
-0.08837890625,
-0.0406494140625,
0.03399658203125,
0.059844970703125,
0.019805908203125,
0.0784912109375,
0.05889892578125,
0.05975341796875,
0.063232421875,
0.007167816162109375,
0.05999755859375,
0.0010843276977539062,
-0.01016998291015625,
-0.022552490234375,
0.024810791015625,
0.00902557373046875,
0.00830078125,
0.0004074573516845703,
0.055572509765625,
0.016571044921875,
-0.031768798828125,
0.06500244140625,
-0.0009551048278808594,
-0.012786865234375,
0.0016498565673828125,
-0.005146026611328125,
0.05999755859375,
0.01300811767578125,
-0.017852783203125,
-0.006679534912109375,
-0.00666046142578125,
-0.037994384765625,
-0.0015087127685546875,
0.03326416015625,
-0.013336181640625,
0.01140594482421875,
-0.0312042236328125,
0.040069580078125,
-0.0100250244140625,
-0.028778076171875,
0.019195556640625,
0.050811767578125,
0.0167999267578125,
0.03973388671875,
-0.06378173828125,
-0.023956298828125,
0.004505157470703125,
0.032501220703125,
-0.053070068359375,
0.1209716796875,
-0.037353515625,
-0.0135498046875,
-0.0163726806640625,
-0.00896453857421875,
-0.00115203857421875,
-0.021392822265625,
0.028656005859375,
0.0222320556640625,
0.008758544921875,
-0.01412200927734375,
-0.05169677734375,
0.00818634033203125,
0.03106689453125,
-0.0019063949584960938,
0.0222930908203125,
0.00640106201171875,
0.007694244384765625,
-0.005519866943359375,
0.01238250732421875,
-0.0298004150390625,
-0.021820068359375,
-0.0487060546875,
-0.0230712890625,
0.0299072265625,
0.01117706298828125,
-0.003704071044921875,
0.0105438232421875,
-0.002269744873046875,
-0.0184326171875,
0.026153564453125,
-0.025054931640625,
0.0303955078125,
0.031219482421875,
-0.01361846923828125,
-0.007175445556640625,
-0.029632568359375,
-0.0160064697265625,
-0.007778167724609375,
0.009033203125,
-0.02264404296875,
-0.00373077392578125,
-0.0038471221923828125,
0.017547607421875,
0.0190887451171875,
-0.005855560302734375,
-0.036773681640625,
-0.00933074951171875,
0.06951904296875,
-0.0287322998046875,
-0.0174102783203125,
0.0396728515625,
-0.00003612041473388672,
-0.00472259521484375,
-0.0194244384765625,
0.0136566162109375,
-0.00968170166015625,
-0.03131103515625,
-0.08282470703125,
-0.01189422607421875,
0.030029296875,
0.0264129638671875,
-0.0872802734375,
0.051025390625,
-0.008697509765625,
0.0255889892578125,
0.001140594482421875,
0.010345458984375,
0.00919342041015625,
0.08294677734375,
0.0216522216796875,
0.034423828125,
-0.01092529296875,
-0.026153564453125,
0.0015020370483398438,
-0.004192352294921875,
-0.01163482666015625,
-0.0078125,
0.01297760009765625,
-0.01512908935546875,
0.0010957717895507812,
0.017059326171875,
0.034423828125,
-0.01291656494140625,
-0.0177001953125,
0.0054473876953125,
-0.006023406982421875,
-0.0208892822265625,
0.0175323486328125,
-0.019989013671875,
-0.0285491943359375,
0.0298614501953125,
-0.006694793701171875,
0.037628173828125,
-0.0254669189453125,
-0.07916259765625,
0.0189056396484375,
0.01214599609375,
-0.048187255859375,
0.013336181640625,
-0.005908966064453125,
-0.0070648193359375,
0.032073974609375,
0.01419830322265625,
-0.016204833984375,
-0.00659942626953125,
-0.0008230209350585938,
-0.020599365234375,
0.01385498046875,
0.0209503173828125,
-0.0207672119140625,
-0.013671875,
-0.0213775634765625,
-0.0121002197265625,
-0.055450439453125,
-0.037933349609375,
0.0027523040771484375,
0.01105499267578125,
-0.00229644775390625,
-0.03253173828125,
-0.01349639892578125,
0.040130615234375,
0.03564453125,
0.046783447265625,
-0.006195068359375,
-0.037322998046875,
-0.01983642578125,
0.005290985107421875,
-0.00229644775390625,
0.006977081298828125,
-0.0009121894836425781,
0.050506591796875,
-0.032196044921875,
-0.046844482421875,
0.0109405517578125,
0.02178955078125,
-0.06915283203125,
-0.0246124267578125,
0.05810546875,
0.00873565673828125,
0.00617218017578125,
-0.0000674128532409668,
0.0014820098876953125,
-0.01348114013671875,
0.0181884765625,
-0.0155792236328125,
-0.06988525390625,
0.0001538991928100586,
0.054443359375,
-0.026947021484375,
-0.0133209228515625,
0.0034923553466796875,
-0.00662994384765625,
0.020843505859375,
0.01367950439453125,
-0.018585205078125,
-0.04034423828125,
-0.006687164306640625,
0.032684326171875,
-0.0194244384765625,
0.04449462890625,
-0.0228729248046875,
-0.0205841064453125,
-0.0157928466796875,
-0.0010652542114257812,
-0.01346588134765625,
-0.0118865966796875,
0.0227203369140625,
0.0179290771484375,
0.00000762939453125,
0.045562744140625,
-0.0311431884765625,
0.054443359375,
-0.01247406005859375,
0.0073394775390625,
0.0261688232421875,
0.00963592529296875,
0.072021484375,
-0.02032470703125,
0.0120849609375,
-0.0195770263671875,
0.0182952880859375,
-0.0257415771484375,
-0.0085296630859375,
-0.003208160400390625,
-0.0038013458251953125,
0.014251708984375
] |
c3bc2fb2958579ce283cfa975df32720631dfa65 | Wordpress Stackexchange
Q: How to detect the usage of Gutenberg The new editor called Gutenberg is here as plugin in 4.9, and as core functionality called Block Editor, in 5.0. Regarding to it, it is often needed to determine programmatically which editor is used to edit post or page in the site console. How to do it?
Update: There are number of outdated answers to similar question:
*
*gutenberg_post_has_blocks() - this function exists only in Gutenberg plugin, and not in 5.0 Core
*is_gutenberg_page() - the same
*the_gutenberg_project() - the same
*has_blocks() - does not work (returns false) when Classic Editor is on and its option "Default editor for all users" = "Block Editor"
*answer simply produces fatal error Call to undefined function get_current_screen()
So, before commenting this question and answer, please take a work to check what do you propose. Check it now, with 4.9 and current version of WordPress, and all possible combinations of Classic Editor and Gutenberg/Block Editor. I will be happy to discuss tested solution, not links to something.
A: You can use
add_action( 'enqueue_block_editor_assets', 'your_function_name' );
which is only fired when editing content with Gutenberg.
| Q: How to detect the usage of Gutenberg The new editor called Gutenberg is here as plugin in 4.9, and as core functionality called Block Editor, in 5.0. Regarding to it, it is often needed to determine programmatically which editor is used to edit post or page in the site console. How to do it?
Update: There are number of outdated answers to similar question:
*
*gutenberg_post_has_blocks() - this function exists only in Gutenberg plugin, and not in 5.0 Core
*is_gutenberg_page() - the same
*the_gutenberg_project() - the same
*has_blocks() - does not work (returns false) when Classic Editor is on and its option "Default editor for all users" = "Block Editor"
*answer simply produces fatal error Call to undefined function get_current_screen()
So, before commenting this question and answer, please take a work to check what do you propose. Check it now, with 4.9 and current version of WordPress, and all possible combinations of Classic Editor and Gutenberg/Block Editor. I will be happy to discuss tested solution, not links to something.
A: You can use
add_action( 'enqueue_block_editor_assets', 'your_function_name' );
which is only fired when editing content with Gutenberg.
A: There are several variants:
*
*WordPress 4.9, Gutenberg plugin is not active
*WordPress 4.9, Gutenberg plugin is active
*WordPress 5.0, Block Editor by default
*WordPress 5.0, Classic Editor plugin is active
*WordPress 5.0, Classic Editor plugin is active, but in site console in “Settings > Writing” the option “Use the Block editor by default…” is selected
All the mentioned variants can be processed by the following code:
/**
* Check if Block Editor is active.
* Must only be used after plugins_loaded action is fired.
*
* @return bool
*/
function is_active() {
// Gutenberg plugin is installed and activated.
$gutenberg = ! ( false === has_filter( 'replace_editor', 'gutenberg_init' ) );
// Block editor since 5.0.
$block_editor = version_compare( $GLOBALS['wp_version'], '5.0-beta', '>' );
if ( ! $gutenberg && ! $block_editor ) {
return false;
}
if ( is_classic_editor_plugin_active() ) {
$editor_option = get_option( 'classic-editor-replace' );
$block_editor_active = array( 'no-replace', 'block' );
return in_array( $editor_option, $block_editor_active, true );
}
return true;
}
/**
* Check if Classic Editor plugin is active.
*
* @return bool
*/
function is_classic_editor_plugin_active() {
if ( ! function_exists( 'is_plugin_active' ) ) {
include_once ABSPATH . 'wp-admin/includes/plugin.php';
}
if ( is_plugin_active( 'classic-editor/classic-editor.php' ) ) {
return true;
}
return false;
}
Function returns true if block editor is active by any means, and false – in the case if classic editor is here. This function must only be used after plugins_loaded action is fired.
P.S. Due release of version 1.2 of Classic Editor plugin, code is updated, as classic-editor-replace options now takes values not replace and no-replace, but classic and block.
| wordpress | {
"language": "en",
"length": 452,
"provenance": "stackexchange_00019.jsonl.gz:490929",
"question_score": "9",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/320653"
} | [
-0.0280914306640625,
0.005771636962890625,
-0.027679443359375,
0.04400634765625,
-0.01050567626953125,
-0.027679443359375,
0.024322509765625,
-0.036865234375,
0.00905609130859375,
0.031982421875,
0.0239715576171875,
-0.0438232421875,
0.006084442138671875,
-0.046539306640625,
-0.036407470703125,
-0.00722503662109375,
0.031829833984375,
-0.01186370849609375,
0.020721435546875,
-0.004512786865234375,
-0.0028171539306640625,
0.0104522705078125,
-0.004222869873046875,
0.038360595703125,
0.0207977294921875,
-0.026397705078125,
0.06884765625,
-0.0006127357482910156,
0.03179931640625,
-0.008148193359375,
0.029937744140625,
-0.0308990478515625,
0.0183563232421875,
0.027801513671875,
-0.036712646484375,
0.024627685546875,
0.0014047622680664062,
0.0024662017822265625,
0.004680633544921875,
0.01506805419921875,
0.0201873779296875,
-0.0172119140625,
-0.037139892578125,
-0.03131103515625,
-0.039459228515625,
0.01708984375,
-0.004669189453125,
-0.0168914794921875,
0.01509857177734375,
0.036865234375,
-0.0457763671875,
-0.00045299530029296875,
-0.03851318359375,
0.038330078125,
0.0022373199462890625,
-0.042510986328125,
-0.034759521484375,
0.046905517578125,
-0.0019130706787109375,
0.057769775390625,
0.0052337646484375,
0.049468994140625,
-0.0214691162109375,
-0.042510986328125,
0.0258331298828125,
0.006900787353515625,
0.03369140625,
0.0223236083984375,
-0.00662994384765625,
0.0230865478515625,
-0.0002799034118652344,
-0.01348114013671875,
-0.001438140869140625,
-0.057769775390625,
0.0015096664428710938,
0.0028018951416015625,
-0.004547119140625,
-0.054779052734375,
0.0042877197265625,
-0.0010576248168945312,
-0.03057861328125,
0.0028972625732421875,
-0.05731201171875,
-0.0209503173828125,
0.00646209716796875,
0.00949859619140625,
-0.014404296875,
-0.00818634033203125,
-0.029815673828125,
-0.0294189453125,
-0.0182342529296875,
-0.043731689453125,
-0.040191650390625,
0.0102386474609375,
-0.005115509033203125,
-0.03118896484375,
0.005462646484375,
0.003559112548828125,
-0.007160186767578125,
-0.0297088623046875,
0.015228271484375,
-0.05010986328125,
0.01090240478515625,
-0.0086822509765625,
0.01203155517578125,
0.0576171875,
-0.031707763671875,
-0.0007500648498535156,
0.041168212890625,
0.01385498046875,
0.015838623046875,
-0.0301361083984375,
-0.01177215576171875,
-0.02020263671875,
-0.003910064697265625,
0.0189056396484375,
-0.036041259765625,
0.01220703125,
-0.0101776123046875,
0.0260009765625,
0.0126190185546875,
0.03594970703125,
0.036468505859375,
-0.045318603515625,
-0.0192108154296875,
-0.0284271240234375,
-0.027008056640625,
-0.05560302734375,
0.017120361328125,
-0.004917144775390625,
-0.014129638671875,
0.025726318359375,
0.04388427734375,
0.00897216796875,
-0.00832366943359375,
-0.0117034912109375,
-0.01493072509765625,
0.00431060791015625,
-0.0123443603515625,
-0.004058837890625,
-0.037811279296875,
0.013458251953125,
0.041046142578125,
-0.06231689453125,
0.0022335052490234375,
-0.005512237548828125,
0.03857421875,
0.0289459228515625,
-0.041351318359375,
-0.060455322265625,
0.0272369384765625,
0.007419586181640625,
0.024169921875,
0.0146942138671875,
0.046417236328125,
0.0094451904296875,
0.0562744140625,
-0.026123046875,
-0.0218963623046875,
-0.0203094482421875,
0.028472900390625,
-0.020172119140625,
0.0017499923706054688,
-0.01544189453125,
-0.048980712890625,
0.0231170654296875,
-0.032470703125,
-0.01206207275390625,
0.0250244140625,
-0.0254669189453125,
0.025360107421875,
-0.02203369140625,
0.0413818359375,
-0.022216796875,
-0.0211334228515625,
0.00836944580078125,
-0.04010009765625,
0.0095977783203125,
0.0340576171875,
0.029510498046875,
0.0187835693359375,
-0.00817108154296875,
0.04473876953125,
0.0023956298828125,
-0.056976318359375,
-0.0107574462890625,
-0.0004057884216308594,
0.0224609375,
0.058441162109375,
0.01171112060546875,
0.03668212890625,
-0.0276031494140625,
-0.03009033203125,
-0.0020904541015625,
0.0074310302734375,
0.0005927085876464844,
-0.001956939697265625,
0.01320648193359375,
0.00009757280349731445,
-0.0238800048828125,
0.07037353515625,
-0.03057861328125,
0.02886962890625,
-0.068359375,
-0.1341552734375,
-0.005207061767578125,
-0.047760009765625,
0.052520751953125,
0.031768798828125,
-0.02642822265625,
-0.01245880126953125,
-0.057891845703125,
0.005306243896484375,
-0.00133514404296875,
-0.045745849609375,
0.0281219482421875,
-0.018280029296875,
0.0247039794921875,
0.00885772705078125,
0.01323699951171875,
0.0188446044921875,
-0.01326751708984375,
-0.0081787109375,
-0.01442718505859375,
0.064208984375,
0.001873016357421875,
-0.007785797119140625,
-0.01206207275390625,
0.03216552734375,
0.03814697265625,
-0.0748291015625,
-0.0037899017333984375,
0.0269927978515625,
0.005771636962890625,
-0.0032062530517578125,
0.01009368896484375,
0.01541900634765625,
-0.07000732421875,
0.00592803955078125,
0.043426513671875,
0.0406494140625,
-0.0024166107177734375,
-0.036834716796875,
-0.064697265625,
0.0211944580078125,
-0.04058837890625,
0.01152801513671875,
-0.0306243896484375,
-0.00438690185546875,
0.045654296875,
-0.063720703125,
0.037933349609375,
0.0070343017578125,
0.00637054443359375,
-0.004238128662109375,
0.03802490234375,
0.01142120361328125,
0.003635406494140625,
-0.0105743408203125,
-0.006439208984375,
0.0029163360595703125,
-0.021881103515625,
-0.03802490234375,
0.0042724609375,
0.07977294921875,
0.021148681640625,
0.08721923828125,
0.06463623046875,
-0.052581787109375,
0.0159454345703125,
0.005908966064453125,
0.0452880859375,
0.003551483154296875,
0.023590087890625,
0.055389404296875,
0.043212890625,
-0.047271728515625,
-0.01357269287109375,
0.04736328125,
0.0401611328125,
-0.041107177734375,
-0.00919342041015625,
-0.043792724609375,
-0.01459503173828125,
-0.005580902099609375,
-0.0231475830078125,
0.0116424560546875,
-0.0222015380859375,
0.0149688720703125,
-0.01099395751953125,
0.0367431640625,
-0.024871826171875,
-0.036865234375,
0.0224151611328125,
0.0101470947265625,
-0.042327880859375,
0.05230712890625,
-0.03900146484375,
0.03411865234375,
-0.032196044921875,
0.050262451171875,
0.03802490234375,
-0.044952392578125,
0.021484375,
-0.0019741058349609375,
-0.016937255859375,
0.009185791015625,
-0.0080718994140625,
-0.0184783935546875,
0.01556396484375,
-0.07745361328125,
-0.006595611572265625,
0.018035888671875,
-0.0012187957763671875,
0.005413055419921875,
-0.02569580078125,
-0.0272979736328125,
0.00667572021484375,
-0.08428955078125,
-0.026458740234375,
-0.056915283203125,
-0.09027099609375,
-0.0128936767578125,
-0.0272674560546875,
-0.050384521484375,
0.02850341796875,
-0.0009112358093261719,
0.029022216796875,
-0.0212249755859375,
0.013092041015625,
-0.03656005859375,
-0.033416748046875,
-0.06256103515625,
-0.020172119140625,
-0.022216796875,
0.0157318115234375,
0.00482940673828125,
0.014923095703125,
-0.01263427734375,
-0.042083740234375,
-0.01224517822265625,
-0.0487060546875,
-0.0206298828125,
-0.01555633544921875,
0.0207977294921875,
-0.039276123046875,
0.0247039794921875,
0.02496337890625,
-0.053466796875,
-0.0034351348876953125,
0.0178070068359375,
-0.0300750732421875,
0.005466461181640625,
-0.00440216064453125,
0.02423095703125,
-0.00799560546875,
-0.0228118896484375,
-0.0129852294921875,
0.00970458984375,
-0.041961669921875,
0.0311431884765625,
0.01220703125,
0.004505157470703125,
0.04559326171875,
-0.0262451171875,
-0.0181427001953125,
0.04058837890625,
0.012969970703125,
0.030181884765625,
0.036102294921875,
0.0399169921875,
0.01441192626953125,
-0.00827789306640625,
-0.026519775390625,
-0.02642822265625,
-0.0565185546875,
-0.01312255859375,
-0.0273590087890625,
0.025115966796875,
-0.016021728515625,
0.03204345703125,
0.0034236907958984375,
0.0243377685546875,
-0.026947021484375,
-0.01087188720703125,
0.037017822265625,
-0.005176544189453125,
0.01519775390625,
-0.006725311279296875,
-0.005157470703125,
0.007595062255859375,
0.047210693359375,
-0.0141143798828125,
0.00168609619140625,
0.0340576171875,
0.001514434814453125,
-0.015869140625,
0.020599365234375,
-0.07989501953125,
-0.00003355741500854492,
-0.02978515625,
0.00756072998046875,
0.00788116455078125,
-0.04150390625,
-0.004817962646484375,
0.0150604248046875,
-0.026611328125,
-0.010650634765625,
0.0419921875,
-0.06878662109375,
0.02410888671875,
0.039703369140625,
-0.018096923828125,
-0.0023784637451171875,
-0.03155517578125,
-0.049713134765625,
-0.065185546875,
-0.0003504753112792969,
-0.058837890625,
0.042205810546875,
0.0054168701171875,
0.0217132568359375,
-0.0204315185546875,
0.045135498046875,
0.033111572265625,
0.044647216796875,
0.0193634033203125,
-0.0057830810546875,
0.06353759765625,
-0.03717041015625,
0.018798828125,
-0.034027099609375,
0.01959228515625,
0.0196075439453125,
-0.038238525390625,
0.0335693359375,
-0.040374755859375,
-0.03399658203125,
0.0020809173583984375,
-0.042144775390625,
-0.057525634765625,
-0.0289306640625,
-0.0208587646484375,
-0.007843017578125,
-0.01496124267578125,
-0.014404296875,
-0.0294189453125,
-0.0633544921875,
0.031585693359375,
-0.0249176025390625,
-0.00909423828125,
0.0179443359375,
0.07904052734375,
0.0179901123046875,
0.0022335052490234375,
-0.0233154296875,
0.007724761962890625,
0.01116943359375,
0.033935546875,
0.0850830078125,
0.0275726318359375,
0.01497650146484375,
0.0230712890625,
0.0047454833984375,
-0.016693115234375,
-0.058746337890625,
0.03765869140625,
-0.01273345947265625,
-0.01242828369140625,
-0.005313873291015625,
-0.045501708984375,
0.087158203125,
0.01019287109375,
-0.04461669921875,
0.016845703125,
-0.024139404296875,
0.01372528076171875,
-0.0250701904296875,
0.0345458984375,
-0.0173797607421875,
-0.006458282470703125,
-0.01422882080078125,
0.01123046875,
0.05352783203125,
0.055572509765625,
-0.0225982666015625,
0.03912353515625,
0.062744140625,
-0.0087890625,
0.00665283203125,
0.01503753662109375,
-0.0182342529296875,
0.030059814453125,
0.0014705657958984375,
-0.01509857177734375,
-0.00574493408203125,
0.0180816650390625,
0.0022373199462890625,
-0.04376220703125,
-0.056182861328125,
-0.047637939453125,
-0.0242156982421875,
0.006626129150390625,
0.0299530029296875,
-0.00034236907958984375,
0.049591064453125,
0.01276397705078125,
-0.055328369140625,
-0.01934814453125,
0.0268096923828125,
-0.054656982421875,
-0.0640869140625,
-0.0254364013671875,
-0.016876220703125,
-0.0182342529296875,
0.0012331008911132812,
0.0036830902099609375,
-0.0196075439453125,
-0.0020751953125,
0.005992889404296875,
0.007312774658203125,
-0.006404876708984375,
0.0186920166015625,
0.0265655517578125,
0.003604888916015625,
-0.00797271728515625,
-0.0156707763671875,
0.0025482177734375,
-0.024200439453125,
-0.032470703125,
0.0162353515625,
0.034881591796875,
-0.01025390625,
0.01371002197265625,
0.008331298828125,
-0.0043182373046875,
-0.021484375,
0.0108642578125,
-0.0209197998046875,
-0.0180511474609375,
-0.030487060546875,
0.0223236083984375,
0.044219970703125,
0.020660400390625,
-0.00795745849609375,
0.004390716552734375,
0.0086822509765625,
0.0281524658203125,
-0.01142120361328125,
-0.05352783203125,
0.0304718017578125,
0.03643798828125,
0.01371002197265625,
-0.0095672607421875,
0.004299163818359375,
-0.04803466796875,
-0.0007338523864746094,
-0.03662109375,
-0.01349639892578125,
0.07952880859375,
-0.0321044921875,
0.00759124755859375,
-0.006130218505859375,
0.01551055908203125,
-0.0258026123046875,
0.031707763671875,
0.0208740234375,
0.013397216796875,
-0.0213470458984375,
-0.048980712890625,
-0.0843505859375,
-0.019683837890625,
-0.02777099609375,
-0.04351806640625,
0.0079803466796875,
0.0293426513671875,
-0.0294036865234375,
0.01274871826171875,
-0.01263427734375,
0.0225677490234375,
0.0215911865234375,
0.045196533203125,
-0.0217132568359375,
0.078125,
-0.0038471221923828125,
0.06304931640625,
-0.0187225341796875,
0.035919189453125,
-0.0014772415161132812,
0.002613067626953125,
-0.01568603515625,
0.001003265380859375,
-0.0201568603515625,
-0.026275634765625,
0.0107421875,
-0.01218414306640625,
0.057464599609375,
0.013885498046875,
0.004787445068359375,
0.003704071044921875,
0.005481719970703125,
0.01055908203125,
0.01922607421875,
-0.032073974609375,
-0.021484375,
-0.0121307373046875,
-0.041778564453125,
0.007137298583984375,
-0.0225067138671875,
-0.003997802734375,
-0.01027679443359375,
-0.015228271484375,
0.056976318359375,
-0.010040283203125,
0.0176849365234375,
0.00826263427734375,
0.01641845703125,
0.032470703125,
0.05767822265625,
-0.006195068359375,
0.0306396484375,
0.0576171875,
0.01105499267578125,
-0.005367279052734375,
0.005126953125,
-0.0158843994140625,
0.0164031982421875,
0.0209808349609375,
0.004596710205078125,
0.037811279296875,
0.0264129638671875,
0.019927978515625,
0.0112152099609375,
0.0166473388671875,
0.061187744140625,
-0.038970947265625,
0.006793975830078125,
0.0321044921875,
-0.023040771484375,
-0.029022216796875,
-0.007755279541015625,
0.0102996826171875,
-0.049041748046875,
0.0595703125,
-0.0076751708984375,
0.0005593299865722656,
0.0233154296875,
-0.0379638671875,
0.005779266357421875,
-0.022918701171875,
0.05523681640625,
0.0070037841796875,
0.0236663818359375,
0.002529144287109375,
-0.0321044921875,
0.037139892578125,
-0.0212554931640625,
0.01044464111328125,
0.006458282470703125,
-0.00606536865234375,
-0.047210693359375,
0.0179290771484375,
-0.0299072265625,
-0.001552581787109375,
0.010223388671875,
0.03472900390625,
-0.00823211669921875,
0.058197021484375,
-0.022705078125,
0.01195526123046875,
0.036651611328125,
-0.02252197265625,
-0.05389404296875,
-0.0186614990234375,
0.041351318359375,
0.038482666015625,
-0.053314208984375,
0.0462646484375,
-0.01520538330078125,
-0.0207672119140625,
0.0157318115234375,
0.03912353515625,
0.07403564453125,
-0.021270751953125,
-0.033721923828125,
0.030120849609375,
-0.0097198486328125,
-0.005985260009765625,
0.00542449951171875,
0.05523681640625,
-0.0316162109375,
-0.0051727294921875,
0.007808685302734375,
-0.023040771484375,
-0.043548583984375,
-0.0025196075439453125,
-0.06317138671875,
0.09429931640625,
0.0196685791015625,
0.016815185546875,
-0.00678253173828125,
0.0390625,
-0.02490234375,
0.01230621337890625,
-0.039825439453125,
0.051513671875,
-0.03887939453125,
0.0531005859375,
-0.0682373046875,
0.019073486328125,
0.00592041015625,
0.011383056640625,
0.03216552734375,
0.0162811279296875,
-0.0299530029296875,
-0.0213165283203125,
-0.0196075439453125,
0.000032961368560791016,
-0.035125732421875,
0.04144287109375,
0.038604736328125,
0.0011644363403320312,
0.0246429443359375,
-0.0015411376953125,
0.044036865234375,
-0.07012939453125,
0.004474639892578125,
0.0330810546875,
0.00464630126953125,
-0.0021839141845703125,
-0.0116424560546875,
0.006740570068359375,
-0.01288604736328125,
-0.0072784423828125,
0.0196380615234375,
-0.043182373046875,
-0.05816650390625,
0.05078125,
0.0379638671875,
-0.048370361328125,
-0.03790283203125,
-0.051025390625,
0.044921875,
0.037506103515625,
-0.039581298828125,
0.01959228515625,
0.01448822021484375,
-0.057708740234375,
-0.00948333740234375,
-0.01300811767578125,
0.0215911865234375,
-0.0212249755859375,
0.020782470703125,
0.0091705322265625,
0.0029582977294921875,
-0.0157928466796875,
0.040985107421875,
0.037811279296875,
0.00730133056640625,
-0.03662109375,
-0.0221405029296875,
0.0018033981323242188,
0.0238189697265625,
0.043670654296875,
0.0019931793212890625,
0.039642333984375,
-0.004238128662109375,
0.026611328125,
-0.018707275390625,
-0.0225677490234375,
-0.030670166015625,
0.021331787109375,
-0.019622802734375,
-0.01554107666015625,
0.0264434814453125,
-0.0256195068359375,
-0.034698486328125,
0.01142120361328125,
0.0126495361328125,
0.01421356201171875,
-0.004291534423828125,
0.045501708984375,
0.03375244140625,
0.006900787353515625,
-0.0863037109375,
0.03125,
-0.0186767578125,
0.1124267578125,
-0.08367919921875,
0.0146942138671875,
0.012939453125,
0.057281494140625,
0.03106689453125,
0.033966064453125,
0.0254974365234375,
0.0037670135498046875,
0.03765869140625,
0.004283905029296875,
-0.0232391357421875,
-0.02130126953125,
-0.0280609130859375,
-0.02496337890625,
-0.0215911865234375,
-0.006195068359375,
0.003818511962890625,
0.0113067626953125,
0.040802001953125,
-0.00998687744140625,
-0.0242767333984375,
0.03759765625,
0.00946044921875,
-0.0264129638671875,
-0.01232147216796875,
0.0197601318359375,
0.036956787109375,
0.0247039794921875,
-0.048797607421875,
0.0010051727294921875,
-0.005008697509765625,
-0.0243988037109375,
-0.01033782958984375,
0.0245513916015625,
-0.027099609375,
0.039306640625,
0.0177154541015625,
0.01355743408203125,
0.04779052734375,
-0.0474853515625,
0.012908935546875,
0.05157470703125,
0.024505615234375,
0.026824951171875,
0.01258087158203125,
-0.006439208984375,
0.040069580078125,
0.030059814453125,
-0.01396942138671875,
0.04742431640625,
-0.017791748046875,
-0.01239776611328125,
0.0010747909545898438,
0.01654052734375,
-0.013824462890625,
-0.0013380050659179688,
-0.00702667236328125,
0.0247344970703125,
0.03546142578125,
-0.0142364501953125,
-0.0787353515625,
0.00015044212341308594,
0.04925537109375,
0.0316162109375,
-0.0102386474609375,
0.0360107421875,
0.0265350341796875,
0.01273345947265625,
0.009979248046875,
-0.0239105224609375,
-0.03369140625,
-0.0177001953125,
0.01456451416015625,
0.002857208251953125,
0.0287933349609375,
0.02545166015625,
0.0297088623046875,
0.00033926963806152344,
-0.0173797607421875,
0.0006804466247558594,
-0.0175933837890625,
-0.024169921875,
0.0191192626953125,
0.00823974609375,
0.0007367134094238281,
-0.0008492469787597656,
-0.0025997161865234375,
0.0192413330078125,
0.01788330078125,
-0.004520416259765625,
0.033233642578125,
0.0013990402221679688,
0.032196044921875,
0.011962890625,
0.037261962890625,
-0.020782470703125,
0.0022830963134765625,
0.03387451171875,
0.0011806488037109375,
-0.019439697265625,
-0.0037841796875,
-0.0027980804443359375,
-0.046173095703125,
-0.02349853515625,
-0.0028095245361328125,
-0.032440185546875,
-0.042572021484375,
-0.01727294921875,
0.00936126708984375,
-0.0157318115234375,
-0.00769805908203125,
-0.05426025390625,
0.08209228515625,
-0.022735595703125,
-0.0251617431640625,
-0.040771484375,
0.0195770263671875,
0.005615234375,
0.03265380859375,
-0.046234130859375,
0.012115478515625,
-0.028594970703125,
-0.005340576171875,
-0.019317626953125,
0.0159149169921875,
0.0282745361328125,
-0.0229034423828125,
-0.022979736328125,
-0.0008568763732910156,
0.0188751220703125,
0.0236663818359375,
-0.00499725341796875,
-0.0028553009033203125,
0.0129241943359375,
0.003604888916015625,
-0.03704833984375,
-0.036712646484375,
0.0292510986328125,
-0.0247039794921875,
-0.01137542724609375,
0.037506103515625,
-0.0204925537109375,
0.01367950439453125,
-0.053985595703125,
-0.1202392578125,
-0.0251617431640625,
0.0171051025390625,
-0.07501220703125,
-0.0036487579345703125,
0.0335693359375,
0.0020961761474609375,
-0.001300811767578125,
-0.0066986083984375,
0.01849365234375,
0.003147125244140625,
-0.01168060302734375,
-0.01739501953125,
0.016937255859375,
0.0296783447265625,
-0.047271728515625,
-0.01445770263671875,
-0.0181884765625,
0.0008420944213867188,
-0.0192108154296875,
-0.01114654541015625,
0.004116058349609375,
0.0192108154296875,
0.0184478759765625,
-0.0272674560546875,
0.0018558502197265625,
0.0113677978515625,
0.0223846435546875,
0.01325225830078125,
0.00254058837890625,
-0.047943115234375,
0.0013151168823242188,
0.08343505859375,
0.059600830078125,
0.0251617431640625,
-0.038482666015625,
0.001987457275390625,
-0.0276947021484375,
-0.050933837890625,
0.0189666748046875,
0.0131072998046875,
-0.0197906494140625,
0.029144287109375,
0.0128173828125,
-0.033203125,
-0.004840850830078125,
0.02783203125,
-0.04998779296875,
0.004222869873046875,
-0.0516357421875,
-0.03369140625,
-0.0625,
-0.018280029296875,
0.045654296875,
-0.031982421875,
0.00852203369140625,
-0.0013380050659179688,
0.01371002197265625,
0.01364898681640625,
0.01495361328125,
0.00875091552734375,
-0.01168060302734375,
-0.039703369140625,
0.01506805419921875,
-0.00823211669921875,
0.04034423828125,
-0.022125244140625,
-0.0249176025390625,
0.0025482177734375,
-0.02288818359375,
-0.023345947265625,
-0.053070068359375,
0.00948333740234375,
0.040130615234375,
-0.01898193359375,
0.087646484375,
0.01013946533203125,
-0.0209197998046875,
-0.00562286376953125,
0.023468017578125,
0.04022216796875,
-0.0435791015625,
0.0679931640625,
-0.063720703125,
0.0013217926025390625,
0.0305023193359375,
-0.01045989990234375,
-0.03875732421875,
-0.0186920166015625,
-0.00675201416015625,
0.0257568359375,
-0.01000213623046875
] |
15ece92273eea30ff76aa48f63b8b1f9d94a4d21 | Wordpress Stackexchange
Q: Home page with Polylang redirects to other page On my website : https://www.littleguestcollection.com/, the homepage is redirected to other page (this one : https://www.littleguestcollection.com/fr/hotels/lux-tamassa/).
I have no idea what is the problem, I updated my permalink settings to update the cache, I removed WP Rocket, I try some changes in PolyLang.
Does anyone know what can be the problem ? I don't know where to search.
| Q: Home page with Polylang redirects to other page On my website : https://www.littleguestcollection.com/, the homepage is redirected to other page (this one : https://www.littleguestcollection.com/fr/hotels/lux-tamassa/).
I have no idea what is the problem, I updated my permalink settings to update the cache, I removed WP Rocket, I try some changes in PolyLang.
Does anyone know what can be the problem ? I don't know where to search.
| wordpress | {
"language": "en",
"length": 67,
"provenance": "stackexchange_00019.jsonl.gz:491030",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/321055"
} | [
-0.01259613037109375,
-0.036346435546875,
0.0192108154296875,
0.0011396408081054688,
-0.02789306640625,
-0.0079193115234375,
0.0006198883056640625,
-0.033905029296875,
-0.0017061233520507812,
0.0211944580078125,
0.0201568603515625,
-0.0006756782531738281,
-0.01096343994140625,
-0.03656005859375,
0.01441192626953125,
-0.0037479400634765625,
0.06365966796875,
-0.0250396728515625,
0.0335693359375,
0.01427459716796875,
-0.01213836669921875,
0.050567626953125,
0.046844482421875,
0.0076446533203125,
0.03839111328125,
-0.02996826171875,
-0.0143280029296875,
-0.01629638671875,
-0.00855255126953125,
-0.0177764892578125,
0.0240936279296875,
0.02130126953125,
0.03692626953125,
-0.0015687942504882812,
-0.032073974609375,
-0.0587158203125,
-0.007266998291015625,
-0.01267242431640625,
-0.0288238525390625,
-0.00013339519500732422,
0.0216522216796875,
-0.0195770263671875,
-0.0645751953125,
0.01055145263671875,
-0.056060791015625,
-0.0197601318359375,
0.004817962646484375,
0.00829315185546875,
-0.0036754608154296875,
0.023681640625,
0.0251617431640625,
0.0160980224609375,
0.0022869110107421875,
0.0069580078125,
0.02435302734375,
0.052001953125,
0.00951385498046875,
0.0003669261932373047,
0.005542755126953125,
-0.0013074874877929688,
-0.009674072265625,
0.024749755859375,
0.0120697021484375,
0.007476806640625,
-0.07177734375,
0.00576019287109375,
-0.0322265625,
-0.0165863037109375,
-0.0265045166015625,
-0.07427978515625,
0.01561737060546875,
-0.0022907257080078125,
0.0101776123046875,
-0.022369384765625,
-0.0386962890625,
-0.007579803466796875,
0.0103607177734375,
-0.0312347412109375,
0.01361846923828125,
-0.007110595703125,
-0.005336761474609375,
-0.0214385986328125,
-0.044952392578125,
-0.06927490234375,
0.041473388671875,
-0.01232147216796875,
-0.00853729248046875,
-0.01201629638671875,
-0.038360595703125,
-0.00946807861328125,
-0.02728271484375,
-0.036590576171875,
-0.0308074951171875,
0.0305328369140625,
0.0135040283203125,
-0.01776123046875,
0.01268768310546875,
0.029693603515625,
-0.0028133392333984375,
-0.023834228515625,
0.009765625,
-0.0386962890625,
-0.0308074951171875,
-0.01116943359375,
0.01351165771484375,
-0.0097503662109375,
0.0245361328125,
-0.016937255859375,
0.03314208984375,
0.00905609130859375,
-0.017486572265625,
0.08197021484375,
-0.0224456787109375,
-0.011749267578125,
-0.01433563232421875,
0.011627197265625,
-0.06524658203125,
0.0150146484375,
-0.0089569091796875,
0.0200653076171875,
-0.0250701904296875,
-0.01324462890625,
0.041839599609375,
0.01323699951171875,
0.00693511962890625,
-0.00560760498046875,
-0.0020847320556640625,
-0.020721435546875,
0.006103515625,
0.006561279296875,
-0.01120758056640625,
0.033843994140625,
0.02374267578125,
0.01177978515625,
-0.0255889892578125,
-0.005405426025390625,
0.052215576171875,
-0.018280029296875,
-0.00963592529296875,
-0.0008349418640136719,
0.04119873046875,
-0.0014362335205078125,
-0.0234832763671875,
-0.0024261474609375,
-0.0521240234375,
0.01082611083984375,
0.00028967857360839844,
0.0219879150390625,
0.00142669677734375,
-0.053192138671875,
0.007183074951171875,
-0.051483154296875,
0.016754150390625,
-0.0164031982421875,
0.050048828125,
-0.03021240234375,
0.0289154052734375,
-0.01425933837890625,
0.0213165283203125,
0.016632080078125,
0.01611328125,
-0.0055694580078125,
-0.0090789794921875,
0.002017974853515625,
-0.0347900390625,
-0.00031447410583496094,
0.00518035888671875,
-0.0030384063720703125,
0.0213470458984375,
0.04486083984375,
0.0162353515625,
-0.01049041748046875,
-0.054595947265625,
-0.0109100341796875,
0.00814056396484375,
-0.0173492431640625,
-0.00926971435546875,
0.043487548828125,
-0.016571044921875,
0.06658935546875,
0.04876708984375,
-0.040283203125,
0.00817108154296875,
0.03778076171875,
-0.031524658203125,
0.0077972412109375,
0.0195465087890625,
0.07891845703125,
0.005680084228515625,
0.023895263671875,
0.01568603515625,
-0.0002796649932861328,
-0.0687255859375,
0.0284576416015625,
-0.009521484375,
0.003597259521484375,
0.00384521484375,
0.00444793701171875,
0.012664794921875,
-0.0283050537109375,
0.016326904296875,
0.022735595703125,
-0.03741455078125,
0.0165252685546875,
-0.04034423828125,
0.0009465217590332031,
-0.01367950439453125,
0.006610870361328125,
0.02227783203125,
0.025360107421875,
-0.01412200927734375,
0.0005064010620117188,
0.00769805908203125,
-0.04107666015625,
-0.0160064697265625,
0.037322998046875,
-0.017791748046875,
0.00952911376953125,
0.037689208984375,
-0.0124359130859375,
0.0731201171875,
-0.0035228729248046875,
0.03265380859375,
-0.012420654296875,
0.02679443359375,
0.0037784576416015625,
-0.045196533203125,
-0.01178741455078125,
-0.01641845703125,
-0.0013799667358398438,
-0.053192138671875,
0.0811767578125,
-0.009979248046875,
0.0027561187744140625,
-0.06976318359375,
-0.0035858154296875,
-0.0689697265625,
0.00021839141845703125,
-0.00919342041015625,
0.0540771484375,
0.01499176025390625,
0.0267333984375,
-0.03155517578125,
0.0277862548828125,
0.02117919921875,
-0.07891845703125,
-0.0222625732421875,
0.018890380859375,
0.0282745361328125,
0.0205535888671875,
-0.0280609130859375,
-0.058074951171875,
0.023345947265625,
-0.022491455078125,
-0.016082763671875,
0.022857666015625,
-0.036651611328125,
-0.03662109375,
-0.01113128662109375,
-0.015777587890625,
0.0275115966796875,
-0.02020263671875,
-0.038970947265625,
0.00896453857421875,
-0.0237579345703125,
-0.05487060546875,
-0.034515380859375,
-0.034423828125,
0.018646240234375,
-0.048736572265625,
0.037567138671875,
-0.01296234130859375,
-0.0014657974243164062,
0.047576904296875,
0.038543701171875,
-0.0535888671875,
-0.0095672607421875,
-0.00865936279296875,
-0.00656890869140625,
0.006855010986328125,
0.0073394775390625,
0.03509521484375,
-0.048675537109375,
-0.01004791259765625,
-0.0164337158203125,
-0.056671142578125,
-0.0087890625,
0.0518798828125,
0.028076171875,
0.0170135498046875,
0.020751953125,
0.0270233154296875,
-0.00798797607421875,
0.01427459716796875,
0.01537322998046875,
-0.028076171875,
0.038726806640625,
-0.02972412109375,
0.0167236328125,
-0.031951904296875,
0.0919189453125,
0.06732177734375,
-0.046783447265625,
0.0263519287109375,
-0.0010986328125,
0.039794921875,
0.011474609375,
0.0010290145874023438,
-0.0191802978515625,
-0.014801025390625,
-0.05364990234375,
-0.0433349609375,
0.017364501953125,
-0.0260467529296875,
0.009429931640625,
-0.014556884765625,
-0.0102691650390625,
-0.0009202957153320312,
-0.0574951171875,
-0.04779052734375,
-0.057769775390625,
0.00475311279296875,
0.0152587890625,
0.0210418701171875,
0.015899658203125,
-0.0003266334533691406,
0.0286102294921875,
0.0260162353515625,
0.047332763671875,
-0.0306396484375,
-0.0615234375,
-0.052703857421875,
-0.06268310546875,
-0.022369384765625,
-0.01131439208984375,
-0.001445770263671875,
0.0157470703125,
-0.006988525390625,
-0.005474090576171875,
-0.001194000244140625,
-0.005878448486328125,
0.06549072265625,
0.00027823448181152344,
-0.0294342041015625,
-0.060211181640625,
0.0005917549133300781,
0.0167083740234375,
-0.002498626708984375,
0.038482666015625,
-0.0206146240234375,
0.0213775634765625,
-0.01898193359375,
0.019866943359375,
0.00440216064453125,
0.0295867919921875,
-0.050018310546875,
-0.032867431640625,
0.047149658203125,
-0.008941650390625,
-0.0191650390625,
-0.0498046875,
-0.01171112060546875,
-0.057586669921875,
0.0197906494140625,
0.055877685546875,
-0.006702423095703125,
0.034637451171875,
-0.0220947265625,
-0.0013666152954101562,
-0.0011205673217773438,
0.0160064697265625,
-0.0222320556640625,
0.041900634765625,
-0.014068603515625,
-0.00926971435546875,
-0.034088134765625,
0.06689453125,
0.018157958984375,
-0.003025054931640625,
0.03863525390625,
0.00902557373046875,
-0.01849365234375,
0.042144775390625,
-0.035369873046875,
0.012908935546875,
0.0030059814453125,
-0.0029468536376953125,
-0.003421783447265625,
0.03759765625,
-0.010009765625,
0.0248870849609375,
0.0199432373046875,
-0.0509033203125,
-0.0009546279907226562,
0.036163330078125,
0.00722503662109375,
-0.0528564453125,
0.0179443359375,
-0.08392333984375,
-0.0069427490234375,
0.00972747802734375,
0.017669677734375,
0.00330352783203125,
0.028656005859375,
-0.05657958984375,
0.0677490234375,
-0.0298004150390625,
-0.0219268798828125,
0.032562255859375,
-0.033447265625,
-0.004398345947265625,
-0.0251922607421875,
-0.002689361572265625,
-0.033355712890625,
-0.0290679931640625,
-0.01715087890625,
-0.03155517578125,
-0.011871337890625,
0.05511474609375,
0.007343292236328125,
0.0036163330078125,
-0.0665283203125,
0.00310516357421875,
0.034027099609375,
-0.01438140869140625,
0.023773193359375,
-0.0552978515625,
-0.020355224609375,
0.014984130859375,
0.064697265625,
-0.0261077880859375,
0.055572509765625,
0.00933074951171875,
0.0299835205078125,
-0.041015625,
0.0194244384765625,
-0.0179901123046875,
-0.031463623046875,
0.044952392578125,
-0.06488037109375,
-0.053680419921875,
-0.03240966796875,
-0.033111572265625,
-0.01418304443359375,
-0.011627197265625,
-0.0226593017578125,
-0.01050567626953125,
-0.0263214111328125,
-0.0289764404296875,
0.00177001953125,
-0.038848876953125,
0.023590087890625,
0.002017974853515625,
0.027496337890625,
-0.01305389404296875,
-0.0186309814453125,
0.033203125,
0.035552978515625,
0.01377105712890625,
0.0736083984375,
0.033905029296875,
-0.004058837890625,
0.050567626953125,
0.0184173583984375,
0.005611419677734375,
0.03411865234375,
-0.005649566650390625,
0.043304443359375,
-0.024200439453125,
0.0010595321655273438,
0.052490234375,
-0.054229736328125,
0.03570556640625,
0.0174407958984375,
0.02569580078125,
0.033233642578125,
-0.03167724609375,
-0.002773284912109375,
-0.0604248046875,
0.006481170654296875,
-0.0210113525390625,
0.0146331787109375,
0.034820556640625,
0.01419830322265625,
-0.0199127197265625,
0.007518768310546875,
-0.0265350341796875,
-0.01204681396484375,
0.0030307769775390625,
0.038177490234375,
0.01416015625,
-0.0064239501953125,
0.042266845703125,
-0.006366729736328125,
-0.01134490966796875,
0.0131378173828125,
-0.004436492919921875,
0.034088134765625,
-0.0036106109619140625,
-0.046417236328125,
0.01280975341796875,
-0.0118408203125,
-0.01337432861328125,
0.00897216796875,
0.04901123046875,
-0.010650634765625,
-0.01528167724609375,
0.0419921875,
0.010711669921875,
0.0894775390625,
-0.02056884765625,
0.01177215576171875,
0.011260986328125,
-0.0139923095703125,
-0.0029277801513671875,
0.0391845703125,
0.0797119140625,
-0.01299285888671875,
0.067626953125,
-0.03204345703125,
-0.0894775390625,
-0.0176544189453125,
0.0290374755859375,
0.0269012451171875,
-0.01611328125,
0.0033245086669921875,
0.01432037353515625,
0.08929443359375,
-0.027587890625,
-0.056182861328125,
0.07080078125,
0.0250244140625,
-0.006595611572265625,
-0.0009303092956542969,
-0.028839111328125,
0.0362548828125,
0.00893402099609375,
0.019622802734375,
0.016815185546875,
-0.041015625,
-0.003662109375,
-0.0283203125,
-0.0036945343017578125,
-0.01033782958984375,
-0.0197601318359375,
-0.0171966552734375,
-0.0311279296875,
0.00946807861328125,
-0.0184326171875,
-0.0263671875,
0.0189056396484375,
0.0206451416015625,
-0.00003170967102050781,
-0.0248565673828125,
-0.017730712890625,
-0.0245513916015625,
0.00787353515625,
-0.01151275634765625,
-0.0016078948974609375,
0.01557159423828125,
-0.0018157958984375,
0.006763458251953125,
0.003597259521484375,
-0.0323486328125,
0.0033931732177734375,
0.008209228515625,
0.04461669921875,
0.00521087646484375,
-0.026092529296875,
-0.0085906982421875,
-0.0286102294921875,
-0.0009813308715820312,
0.03106689453125,
-0.005268096923828125,
-0.00466156005859375,
-0.015350341796875,
0.0218505859375,
0.01259613037109375,
-0.007404327392578125,
-0.041015625,
-0.030792236328125,
0.01081085205078125,
0.025848388671875,
0.021453857421875,
-0.0118408203125,
0.044769287109375,
-0.0180206298828125,
0.0634765625,
-0.0088653564453125,
0.018035888671875,
0.005218505859375,
-0.02423095703125,
0.0340576171875,
-0.0066680908203125,
-0.0284881591796875,
-0.040771484375,
-0.0164794921875,
-0.02606201171875,
0.041259765625,
-0.0138092041015625,
-0.026580810546875,
0.0099945068359375,
0.0187225341796875,
-0.0082244873046875,
0.02130126953125,
0.0013532638549804688,
-0.021026611328125,
0.042083740234375,
0.00035881996154785156,
0.01561737060546875,
-0.01983642578125,
-0.01384735107421875,
-0.003017425537109375,
0.00797271728515625,
-0.002994537353515625,
0.0091094970703125,
-0.018402099609375,
0.01171112060546875,
0.0200347900390625,
0.00618743896484375,
0.0312347412109375,
0.0016155242919921875,
0.019561767578125,
0.01116943359375,
0.0252227783203125,
-0.027618408203125,
-0.01554107666015625,
0.0092315673828125,
-0.00984954833984375,
-0.001712799072265625,
0.002979278564453125,
0.0008568763732910156,
-0.0193939208984375,
0.0751953125,
0.023468017578125,
-0.116943359375,
-0.0194549560546875,
-0.015045166015625,
-0.006572723388671875,
-0.0007176399230957031,
0.0394287109375,
-0.006072998046875,
0.0143585205078125,
-0.0198974609375,
-0.00418853759765625,
-0.00785064697265625,
0.0017271041870117188,
0.03570556640625,
-0.01102447509765625,
-0.0276031494140625,
0.0164947509765625,
-0.00942230224609375,
-0.051361083984375,
-0.015869140625,
0.059326171875,
-0.054046630859375,
-0.0184326171875,
-0.041229248046875,
0.0249481201171875,
-0.06317138671875,
-0.0701904296875,
-0.017730712890625,
-0.027618408203125,
-0.0228729248046875,
0.037841796875,
0.0032138824462890625,
-0.0135345458984375,
0.043487548828125,
-0.0255584716796875,
0.026947021484375,
-0.0055084228515625,
-0.043792724609375,
0.08355712890625,
0.0163421630859375,
0.00760650634765625,
-0.019989013671875,
-0.0318603515625,
-0.02679443359375,
-0.042266845703125,
0.0283203125,
-0.01096343994140625,
-0.00934600830078125,
0.049530029296875,
-0.029449462890625,
-0.01268768310546875,
0.0278778076171875,
-0.0212249755859375,
-0.0058135986328125,
-0.003749847412109375,
0.02056884765625,
-0.045867919921875,
-0.04449462890625,
-0.00223541259765625,
-0.05316162109375,
-0.0114898681640625,
-0.0380859375,
-0.0288848876953125,
0.033355712890625,
-0.004207611083984375,
0.0163421630859375,
0.01361846923828125,
0.02801513671875,
0.004425048828125,
0.01184844970703125,
-0.0034084320068359375,
0.046112060546875,
0.036041259765625,
0.00027823448181152344,
0.006511688232421875,
0.005931854248046875,
0.0204315185546875,
0.011749267578125,
0.0031604766845703125,
0.0223541259765625,
-0.06439208984375,
0.0009560585021972656,
-0.00328826904296875,
0.00530242919921875,
-0.0013742446899414062,
0.06976318359375,
-0.05322265625,
0.0297698974609375,
0.0066680908203125,
-0.07135009765625,
-0.00475311279296875,
0.0223236083984375,
-0.061126708984375,
-0.0193634033203125,
-0.0160369873046875,
-0.06689453125,
0.0015382766723632812,
0.00461578369140625,
-0.0894775390625,
0.0160675048828125,
0.0274505615234375,
-0.0059356689453125,
0.015228271484375,
-0.0399169921875,
-0.01027679443359375,
-0.08074951171875,
0.00600433349609375,
-0.027740478515625,
0.018280029296875,
0.005268096923828125,
0.0054931640625,
-0.00588226318359375,
0.01081085205078125,
0.0038356781005859375,
-0.0205230712890625,
-0.014007568359375,
0.050537109375,
-0.02496337890625,
0.0308380126953125,
0.0335693359375,
0.04736328125,
-0.0159912109375,
-0.016204833984375,
0.0032024383544921875,
0.045654296875,
-0.0117645263671875,
-0.01366424560546875,
0.03289794921875,
0.048980712890625,
0.005340576171875,
0.0138702392578125,
0.042724609375,
0.0146331787109375,
0.0498046875,
0.02557373046875,
-0.027252197265625,
-0.034637451171875,
0.0164947509765625,
0.00583648681640625,
0.00778961181640625,
0.02313232421875,
0.0036716461181640625,
-0.0396728515625,
0.006793975830078125,
0.015472412109375,
0.06494140625,
0.045928955078125,
0.031097412109375,
0.01403045654296875,
-0.0288848876953125,
-0.016815185546875,
0.03985595703125,
0.016632080078125,
0.036773681640625,
-0.08172607421875,
-0.05169677734375,
0.038787841796875,
0.0584716796875,
-0.017486572265625,
-0.0109710693359375,
-0.022216796875,
0.03912353515625,
0.02398681640625,
-0.015716552734375,
0.0694580078125,
-0.0025119781494140625,
0.054962158203125,
-0.0167236328125,
0.050567626953125,
-0.00202178955078125,
-0.01519012451171875,
-0.0528564453125,
0.06787109375,
0.02178955078125,
-0.0184478759765625,
0.040771484375,
-0.011993408203125,
-0.052825927734375,
-0.01068878173828125,
-0.02166748046875,
0.08184814453125,
-0.009735107421875,
-0.0223541259765625,
0.0028591156005859375,
-0.00424957275390625,
-0.02685546875,
0.0228729248046875,
0.03277587890625,
-0.00899505615234375,
0.0164337158203125,
0.0187530517578125,
-0.0247955322265625,
0.0185546875,
-0.01145172119140625,
0.024017333984375,
0.04376220703125,
0.0055084228515625,
0.0233001708984375,
-0.058074951171875,
-0.0150909423828125,
0.006282806396484375,
-0.010711669921875,
-0.0217132568359375,
0.06817626953125,
0.018585205078125,
-0.0002703666687011719,
0.0038928985595703125,
-0.031524658203125,
0.040771484375,
-0.044891357421875,
0.1002197265625,
0.0302886962890625,
-0.0099639892578125,
-0.046722412109375,
-0.12274169921875,
0.01617431640625,
-0.01227569580078125,
-0.02313232421875,
0.044158935546875,
-0.01904296875,
-0.004047393798828125,
0.0017490386962890625,
-0.01239776611328125,
-0.03125,
-0.0203094482421875,
-0.04693603515625,
-0.030059814453125,
0.042327880859375,
0.043487548828125,
-0.00839996337890625,
0.05731201171875,
-0.025482177734375,
-0.049591064453125,
0.037994384765625,
-0.12158203125,
0.01145172119140625,
0.0114288330078125,
0.056549072265625,
0.015960693359375,
0.01282501220703125,
-0.0106353759765625,
0.020904541015625,
0.014190673828125,
0.011566162109375,
0.0278778076171875,
0.041259765625,
-0.004344940185546875,
-0.03863525390625,
-0.0124053955078125,
-0.01032257080078125,
-0.034027099609375,
-0.01427459716796875,
-0.0147552490234375,
-0.007080078125,
0.031402587890625,
0.0025157928466796875,
-0.0199737548828125,
-0.01181793212890625,
-0.0038623809814453125,
0.00811004638671875,
0.01348114013671875,
0.00731658935546875,
0.0018968582153320312,
0.01073455810546875,
-0.01397705078125,
-0.0311126708984375,
0.027008056640625,
-0.02880859375,
0.0192108154296875,
-0.0239105224609375,
0.006137847900390625,
0.01349639892578125,
0.061065673828125,
-0.0606689453125,
0.0135498046875,
-0.016326904296875,
-0.048675537109375,
-0.039276123046875,
-0.0024013519287109375,
0.0340576171875,
0.00843048095703125,
0.02606201171875,
-0.03729248046875,
-0.0141448974609375,
0.031585693359375,
-0.048675537109375,
-0.00539398193359375,
0.025360107421875,
0.008819580078125,
-0.043792724609375,
-0.05267333984375,
0.01284027099609375,
0.004184722900390625,
-0.02569580078125,
0.039947509765625,
-0.04656982421875,
-0.034393310546875,
-0.0592041015625,
-0.049896240234375,
0.08673095703125,
0.020660400390625,
-0.01435089111328125,
-0.03826904296875,
0.0694580078125,
0.0091705322265625,
-0.04583740234375,
-0.0177001953125,
-0.01959228515625,
0.0160675048828125,
-0.00508880615234375,
0.02130126953125,
0.036773681640625,
0.021820068359375,
0.03814697265625,
0.0006208419799804688,
0.015655517578125,
-0.00475311279296875,
0.00890350341796875,
0.0006704330444335938,
-0.0215911865234375,
0.02508544921875,
0.0462646484375,
-0.036712646484375,
-0.049896240234375,
0.01441192626953125,
0.00727081298828125,
0.025054931640625,
-0.038482666015625,
0.001110076904296875,
-0.03216552734375,
-0.045684814453125,
-0.0270843505859375,
-0.01473236083984375,
0.016845703125,
-0.00989532470703125,
0.0013437271118164062,
0.01244354248046875,
-0.01322174072265625,
-0.00982666015625,
-0.033111572265625,
-0.01433563232421875,
-0.0308074951171875,
-0.01059722900390625,
0.0205078125,
0.00740814208984375,
-0.0214691162109375,
-0.002948760986328125,
0.0184478759765625,
-0.0316162109375,
-0.0026836395263671875,
-0.0285797119140625,
0.02166748046875,
-0.0007157325744628906,
0.00983428955078125,
-0.0238037109375,
0.033294677734375,
0.003696441650390625,
-0.0179290771484375,
0.0247344970703125,
0.00872802734375,
0.022735595703125,
-0.023590087890625,
0.050689697265625,
-0.0157318115234375,
0.052276611328125,
-0.027862548828125,
0.00569915771484375,
0.050628662109375,
0.00506591796875,
0.07440185546875,
-0.01258087158203125,
-0.02392578125,
-0.0193939208984375,
-0.006839752197265625,
0.0261077880859375,
-0.023468017578125,
-0.0109710693359375,
0.04010009765625,
-0.00762176513671875,
-0.0325927734375,
0.0030117034912109375,
-0.03485107421875,
0.0180206298828125,
0.037139892578125,
0.015289306640625,
0.057037353515625,
-0.04547119140625,
0.006862640380859375,
-0.01329803466796875,
-0.035797119140625
] |
8c13dd9f4c0bba462f1aba129a5b09f74893e3be | Wordpress Stackexchange
Q: Gutenberg moving core blocks between categories I've restricted a number of the default core Gutenberg blocks as many are unnecessary for my clients and will just add to the confusion of having the new editor.
The result of this is some core categories just have a single block inside them e.g. "formatting" only has a table.
Is it possible to edit/remove core block categories and move all blocks under a single category??
Limiting my blocks;
add_filter( 'allowed_block_types', 'res_allowed_block_types' );
function res_allowed_block_types( $allowed_blocks ) {
return array(
'core/image',
'core/paragraph',
'core/heading',
'core/list',
'core/quote',
'core/cover-image',
'core/file',
'core/video',
'core/table',
'core/separator',
);
}
A: Although I'm unsure on how to achieve this in php, within javascript you can change the category by hooking into the blocks.registerBlockType hook.
Here is a small example how it would work, although I'd recommend using lodash to deepClone the settings object to keep everything immutable.
const rearrangeBlockCategories = {
'core/table': 'common',
};
wp.hooks.addFilter('blocks.registerBlockType', '[namespace]', (settings, name) => {
if (rearrangeBlockCategories[name]) {
settings.category = rearrangeBlockCategories[name];
}
return settings;
});
| Q: Gutenberg moving core blocks between categories I've restricted a number of the default core Gutenberg blocks as many are unnecessary for my clients and will just add to the confusion of having the new editor.
The result of this is some core categories just have a single block inside them e.g. "formatting" only has a table.
Is it possible to edit/remove core block categories and move all blocks under a single category??
Limiting my blocks;
add_filter( 'allowed_block_types', 'res_allowed_block_types' );
function res_allowed_block_types( $allowed_blocks ) {
return array(
'core/image',
'core/paragraph',
'core/heading',
'core/list',
'core/quote',
'core/cover-image',
'core/file',
'core/video',
'core/table',
'core/separator',
);
}
A: Although I'm unsure on how to achieve this in php, within javascript you can change the category by hooking into the blocks.registerBlockType hook.
Here is a small example how it would work, although I'd recommend using lodash to deepClone the settings object to keep everything immutable.
const rearrangeBlockCategories = {
'core/table': 'common',
};
wp.hooks.addFilter('blocks.registerBlockType', '[namespace]', (settings, name) => {
if (rearrangeBlockCategories[name]) {
settings.category = rearrangeBlockCategories[name];
}
return settings;
});
| wordpress | {
"language": "en",
"length": 169,
"provenance": "stackexchange_00019.jsonl.gz:491084",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/321268"
} | [
-0.024658203125,
0.00033974647521972656,
-0.04632568359375,
-0.0016756057739257812,
0.01091766357421875,
-0.03533935546875,
0.042205810546875,
0.01654052734375,
-0.006069183349609375,
0.042816162109375,
0.029266357421875,
-0.0250701904296875,
0.050628662109375,
-0.048919677734375,
-0.0052947998046875,
0.006923675537109375,
0.0308074951171875,
-0.0007557868957519531,
0.0197906494140625,
-0.00917816162109375,
-0.006473541259765625,
0.01079559326171875,
0.004913330078125,
0.059173583984375,
0.00029277801513671875,
-0.0606689453125,
0.0662841796875,
-0.03131103515625,
0.0142669677734375,
-0.033599853515625,
0.0254364013671875,
0.0128173828125,
0.007740020751953125,
0.033203125,
-0.0294952392578125,
0.04608154296875,
0.0528564453125,
-0.005359649658203125,
-0.0002639293670654297,
0.051910400390625,
0.0194244384765625,
-0.01800537109375,
-0.0222015380859375,
0.006183624267578125,
-0.02130126953125,
-0.010986328125,
-0.006008148193359375,
-0.034027099609375,
0.047149658203125,
0.0008330345153808594,
0.0019741058349609375,
0.03497314453125,
0.0104827880859375,
-0.043792724609375,
-0.009979248046875,
-0.006320953369140625,
-0.0338134765625,
-0.0128173828125,
0.0042877197265625,
0.07073974609375,
0.01071929931640625,
0.0164642333984375,
-0.017578125,
-0.05059814453125,
0.0302886962890625,
-0.046539306640625,
0.017242431640625,
0.025177001953125,
-0.02850341796875,
0.0411376953125,
0.046600341796875,
0.0039215087890625,
0.004364013671875,
-0.04803466796875,
0.0284271240234375,
0.032470703125,
-0.04486083984375,
-0.017059326171875,
0.044586181640625,
-0.0022678375244140625,
-0.0284576416015625,
-0.0008220672607421875,
0.0009284019470214844,
-0.046600341796875,
0.0006132125854492188,
-0.005962371826171875,
-0.01244354248046875,
-0.0018529891967773438,
0.01119232177734375,
0.0133514404296875,
0.0103912353515625,
-0.03973388671875,
-0.0017595291137695312,
0.073974609375,
0.021575927734375,
-0.016265869140625,
0.001712799072265625,
-0.01087188720703125,
-0.003711700439453125,
-0.01038360595703125,
0.0151214599609375,
-0.04522705078125,
0.0262908935546875,
-0.007080078125,
0.0225372314453125,
0.034912109375,
-0.05255126953125,
-0.0170745849609375,
0.07440185546875,
0.03607177734375,
0.0181884765625,
0.04608154296875,
-0.003780364990234375,
0.00020313262939453125,
-0.013458251953125,
-0.0113067626953125,
-0.033203125,
0.025604248046875,
-0.018463134765625,
-0.0173187255859375,
0.0200653076171875,
0.040985107421875,
0.0104217529296875,
-0.00609588623046875,
-0.004344940185546875,
-0.0080718994140625,
-0.007598876953125,
-0.050506591796875,
-0.026397705078125,
-0.0245819091796875,
-0.01678466796875,
0.030181884765625,
0.054443359375,
0.053924560546875,
0.0265655517578125,
0.00913238525390625,
0.03594970703125,
-0.0124664306640625,
-0.0225372314453125,
0.0026683807373046875,
0.0396728515625,
-0.000762939453125,
-0.0305938720703125,
-0.0110626220703125,
0.0478515625,
-0.007556915283203125,
0.0175018310546875,
0.0234527587890625,
0.0080718994140625,
-0.020965576171875,
0.06451416015625,
-0.053192138671875,
0.06500244140625,
-0.0037364959716796875,
-0.042999267578125,
-0.0386962890625,
0.0609130859375,
-0.046356201171875,
-0.054229736328125,
-0.07861328125,
0.0192413330078125,
-0.0193939208984375,
0.00370025634765625,
-0.042388916015625,
-0.053314208984375,
0.013885498046875,
-0.05731201171875,
-0.01342010498046875,
0.010498046875,
0.0218963623046875,
-0.0440673828125,
0.025970458984375,
-0.0230865478515625,
-0.00798797607421875,
-0.015869140625,
-0.01259613037109375,
-0.01186370849609375,
-0.008209228515625,
-0.00005173683166503906,
0.06884765625,
-0.006946563720703125,
-0.04241943359375,
-0.03533935546875,
0.006229400634765625,
-0.052032470703125,
0.022552490234375,
-0.000003933906555175781,
0.040435791015625,
0.023681640625,
0.0014886856079101562,
0.0250396728515625,
-0.006877899169921875,
-0.07464599609375,
0.005580902099609375,
-0.0225830078125,
0.01385498046875,
-0.0013265609741210938,
0.0265655517578125,
-0.005748748779296875,
0.00595855712890625,
0.049407958984375,
-0.0321044921875,
0.04656982421875,
-0.0660400390625,
-0.0633544921875,
-0.020904541015625,
-0.023712158203125,
0.048736572265625,
-0.01213836669921875,
-0.033935546875,
0.017730712890625,
-0.0240325927734375,
-0.0175933837890625,
-0.0275115966796875,
-0.0325927734375,
0.03497314453125,
0.034393310546875,
0.0276031494140625,
0.0169677734375,
0.0203094482421875,
0.0188751220703125,
-0.003314971923828125,
-0.0078582763671875,
0.0335693359375,
0.09033203125,
0.0325927734375,
-0.033477783203125,
-0.021728515625,
0.0218505859375,
0.046905517578125,
-0.1470947265625,
0.02618408203125,
0.045196533203125,
0.046722412109375,
-0.0023899078369140625,
0.0272216796875,
0.03619384765625,
-0.01471710205078125,
-0.01263427734375,
0.01128387451171875,
0.031280517578125,
0.005889892578125,
-0.03106689453125,
-0.043060302734375,
0.034912109375,
-0.019378662109375,
0.01328277587890625,
-0.014862060546875,
-0.00884246826171875,
0.017303466796875,
-0.00785064697265625,
0.011444091796875,
0.032958984375,
0.0284576416015625,
0.0205078125,
0.023651123046875,
-0.0156707763671875,
-0.016632080078125,
-0.020477294921875,
-0.0128631591796875,
0.02337646484375,
-0.059814453125,
-0.061553955078125,
-0.0097198486328125,
0.07354736328125,
-0.021331787109375,
0.042144775390625,
0.0180206298828125,
-0.047515869140625,
0.002010345458984375,
0.0165863037109375,
0.001140594482421875,
-0.013153076171875,
0.03875732421875,
0.0282135009765625,
0.0142822265625,
-0.0364990234375,
-0.0089874267578125,
0.0310211181640625,
0.0233001708984375,
-0.0193634033203125,
0.044769287109375,
-0.03570556640625,
-0.012969970703125,
-0.0254058837890625,
-0.02056884765625,
-0.00780487060546875,
0.00296783447265625,
-0.040985107421875,
-0.032318115234375,
0.01788330078125,
0.00778961181640625,
-0.015625,
-0.0232391357421875,
0.0140838623046875,
-0.032958984375,
0.056610107421875,
-0.036285400390625,
0.02301025390625,
-0.0183563232421875,
0.060150146484375,
0.051971435546875,
-0.023223876953125,
0.0083160400390625,
-0.00853729248046875,
-0.010345458984375,
-0.00661468505859375,
-0.003368377685546875,
-0.0300140380859375,
-0.0232391357421875,
-0.01354217529296875,
0.035125732421875,
0.0158233642578125,
0.0211639404296875,
0.01142120361328125,
-0.0251922607421875,
0.0069580078125,
0.0166778564453125,
-0.01090240478515625,
-0.006046295166015625,
-0.014068603515625,
-0.0267333984375,
-0.0180206298828125,
0.0152587890625,
-0.0262298583984375,
-0.0065765380859375,
0.042083740234375,
-0.007350921630859375,
0.0090484619140625,
-0.0030536651611328125,
-0.049163818359375,
-0.00853729248046875,
-0.047607421875,
0.00039196014404296875,
-0.017669677734375,
0.005336761474609375,
-0.005817413330078125,
0.07330322265625,
0.006256103515625,
-0.06927490234375,
-0.0124053955078125,
0.017181396484375,
-0.0086517333984375,
0.00016891956329345703,
0.0265045166015625,
-0.0203704833984375,
0.006378173828125,
0.0223541259765625,
-0.03680419921875,
0.012359619140625,
-0.0227813720703125,
-0.0222015380859375,
-0.00923919677734375,
0.05096435546875,
-0.01544952392578125,
-0.005218505859375,
0.0247650146484375,
0.00026607513427734375,
-0.045928955078125,
-0.04071044921875,
-0.055084228515625,
0.033966064453125,
-0.015869140625,
0.0242462158203125,
-0.0100860595703125,
-0.0139007568359375,
0.01442718505859375,
0.0418701171875,
0.0144805908203125,
0.0281219482421875,
0.0100860595703125,
0.0016546249389648438,
-0.003032684326171875,
-0.03485107421875,
-0.0221099853515625,
-0.04119873046875,
0.01149749755859375,
-0.0213470458984375,
-0.00911712646484375,
-0.01251220703125,
0.031982421875,
0.01702880859375,
-0.0100250244140625,
-0.01300048828125,
-0.042205810546875,
0.026824951171875,
-0.059600830078125,
-0.0175323486328125,
-0.00995635986328125,
0.0023326873779296875,
0.03216552734375,
0.06817626953125,
-0.09014892578125,
-0.01241302490234375,
0.02862548828125,
0.020263671875,
-0.0007872581481933594,
-0.0181732177734375,
-0.054443359375,
-0.0227813720703125,
-0.016754150390625,
-0.0014934539794921875,
0.0142669677734375,
-0.060272216796875,
0.015655517578125,
-0.04296875,
-0.00470733642578125,
-0.008148193359375,
0.04193115234375,
-0.02935791015625,
0.039520263671875,
0.01654052734375,
0.016448974609375,
0.006744384765625,
-0.0286407470703125,
-0.015899658203125,
-0.10565185546875,
-0.012725830078125,
-0.0196685791015625,
0.05126953125,
0.005290985107421875,
-0.010467529296875,
-0.0088958740234375,
0.06298828125,
-0.0272216796875,
0.00823974609375,
0.008331298828125,
0.041107177734375,
0.0423583984375,
-0.0266876220703125,
-0.00820159912109375,
-0.02960205078125,
0.004840850830078125,
-0.0009150505065917969,
-0.0004487037658691406,
0.047515869140625,
-0.003612518310546875,
0.010101318359375,
0.01751708984375,
-0.0196380615234375,
-0.078125,
-0.041748046875,
-0.060302734375,
-0.036895751953125,
-0.021270751953125,
-0.033477783203125,
-0.0211029052734375,
-0.07659912109375,
0.060699462890625,
0.007568359375,
-0.005283355712890625,
0.01163482666015625,
0.07403564453125,
0.0077362060546875,
-0.026123046875,
-0.07171630859375,
-0.00852203369140625,
0.0177001953125,
-0.0361328125,
0.065185546875,
-0.006389617919921875,
0.005504608154296875,
0.0543212890625,
-0.0433349609375,
0.0013570785522460938,
-0.0355224609375,
0.06488037109375,
-0.011474609375,
0.00553131103515625,
-0.007572174072265625,
-0.029327392578125,
0.033477783203125,
0.003997802734375,
-0.037017822265625,
0.00450897216796875,
-0.0372314453125,
0.0244903564453125,
0.032470703125,
-0.004123687744140625,
-0.05267333984375,
0.005889892578125,
-0.01213836669921875,
0.0006690025329589844,
0.048919677734375,
0.03729248046875,
-0.00939178466796875,
-0.0011997222900390625,
0.032958984375,
0.0120086669921875,
-0.009185791015625,
-0.025115966796875,
-0.04180908203125,
0.036285400390625,
-0.032012939453125,
-0.0070037841796875,
0.01023101806640625,
0.005584716796875,
0.01371002197265625,
-0.0304718017578125,
-0.03369140625,
-0.043487548828125,
-0.007740020751953125,
0.0304107666015625,
0.04669189453125,
-0.046905517578125,
-0.028228759765625,
0.0295257568359375,
-0.01474761962890625,
0.042633056640625,
-0.0027141571044921875,
-0.0185699462890625,
-0.01806640625,
0.022430419921875,
-0.0031986236572265625,
-0.01153564453125,
0.01395416259765625,
0.0008168220520019531,
0.0007472038269042969,
-0.005512237548828125,
-0.0052947998046875,
0.03021240234375,
0.017608642578125,
-0.01558685302734375,
0.02484130859375,
0.0223388671875,
-0.003307342529296875,
-0.0377197265625,
-0.0118560791015625,
-0.0411376953125,
-0.023834228515625,
0.01355743408203125,
0.042877197265625,
-0.0013704299926757812,
-0.00687408447265625,
-0.005146026611328125,
-0.01108551025390625,
-0.009552001953125,
0.00775909423828125,
-0.037109375,
-0.0223388671875,
-0.040283203125,
-0.0291290283203125,
0.025665283203125,
-0.009490966796875,
0.0018186569213867188,
-0.034912109375,
-0.014556884765625,
-0.00601959228515625,
0.0022792816162109375,
-0.033966064453125,
0.00722503662109375,
0.004680633544921875,
-0.0626220703125,
-0.021697998046875,
0.01148223876953125,
-0.07513427734375,
-0.0450439453125,
-0.004016876220703125,
-0.0087890625,
0.04498291015625,
-0.01389312744140625,
0.03466796875,
-0.0308380126953125,
0.01184844970703125,
0.01454925537109375,
0.0008301734924316406,
0.06121826171875,
0.01983642578125,
-0.0085601806640625,
-0.0191192626953125,
-0.070068359375,
-0.024444580078125,
-0.045166015625,
-0.06256103515625,
-0.0099029541015625,
0.0301666259765625,
0.02020263671875,
0.01995849609375,
0.01224517822265625,
-0.0128326416015625,
0.0211181640625,
0.004703521728515625,
-0.006473541259765625,
0.009521484375,
-0.03875732421875,
0.045166015625,
0.0072021484375,
0.023468017578125,
-0.019683837890625,
-0.0293731689453125,
-0.0157012939453125,
0.0181884765625,
-0.0279541015625,
-0.050140380859375,
-0.01113128662109375,
0.0222930908203125,
-0.0274200439453125,
0.032928466796875,
0.016387939453125,
0.0183563232421875,
0.0052490234375,
-0.01824951171875,
-0.00289154052734375,
-0.05694580078125,
0.019012451171875,
-0.044769287109375,
0.0011854171752929688,
-0.036163330078125,
0.00782012939453125,
0.0264129638671875,
-0.04034423828125,
-0.03363037109375,
0.035675048828125,
0.0000069141387939453125,
0.01715087890625,
0.0216522216796875,
0.00618743896484375,
-0.0197296142578125,
0.025604248046875,
0.00833892822265625,
0.0218353271484375,
0.0186920166015625,
0.03131103515625,
0.0225372314453125,
-0.0251312255859375,
0.00926971435546875,
0.048492431640625,
0.0256805419921875,
-0.0082244873046875,
0.0029277801513671875,
0.030853271484375,
-0.0012807846069335938,
-0.0250396728515625,
0.05255126953125,
0.0270233154296875,
-0.086181640625,
0.01507568359375,
0.0242767333984375,
0.02294921875,
-0.024139404296875,
0.05145263671875,
-0.017120361328125,
0.01372528076171875,
-0.04718017578125,
-0.0167236328125,
-0.00785064697265625,
0.004253387451171875,
0.045074462890625,
0.00024962425231933594,
-0.042266845703125,
0.0065155029296875,
0.01084136962890625,
0.0181121826171875,
0.0093841552734375,
-0.0216827392578125,
0.01503753662109375,
0.0016851425170898438,
0.033843994140625,
-0.0218048095703125,
-0.0192413330078125,
-0.023284912109375,
0.0036907196044921875,
-0.0013341903686523438,
-0.01324462890625,
0.00196075439453125,
-0.03155517578125,
-0.006866455078125,
0.01203155517578125,
-0.0233612060546875,
-0.00644683837890625,
-0.0125885009765625,
-0.02740478515625,
-0.05487060546875,
-0.006572723388671875,
0.0118865966796875,
-0.012237548828125,
0.0016736984252929688,
0.026153564453125,
-0.03863525390625,
-0.0183868408203125,
-0.0012073516845703125,
0.01097869873046875,
0.039886474609375,
-0.006183624267578125,
-0.035675048828125,
0.0238800048828125,
0.00878143310546875,
0.0004317760467529297,
0.0582275390625,
0.057220458984375,
-0.00870513916015625,
-0.0394287109375,
0.057098388671875,
-0.03619384765625,
-0.0118865966796875,
0.06243896484375,
-0.038818359375,
0.058502197265625,
0.01776123046875,
0.00876617431640625,
0.0260467529296875,
0.028350830078125,
-0.040985107421875,
0.00287628173828125,
-0.00289154052734375,
0.030426025390625,
0.027984619140625,
0.00583648681640625,
-0.030303955078125,
-0.009979248046875,
-0.006786346435546875,
0.0288238525390625,
0.07061767578125,
0.0211181640625,
-0.00858306884765625,
-0.0159149169921875,
0.0167083740234375,
0.0164031982421875,
-0.039031982421875,
0.02520751953125,
-0.0026874542236328125,
-0.0270233154296875,
-0.03607177734375,
0.04827880859375,
0.038909912109375,
-0.056427001953125,
-0.08258056640625,
0.03302001953125,
0.017791748046875,
0.036590576171875,
-0.0269927978515625,
0.00865936279296875,
0.007755279541015625,
-0.02178955078125,
0.024322509765625,
-0.052520751953125,
-0.01360321044921875,
0.02825927734375,
0.0206298828125,
-0.03680419921875,
-0.0110931396484375,
-0.02728271484375,
0.043365478515625,
0.02618408203125,
0.022003173828125,
0.069580078125,
0.03662109375,
0.033355712890625,
-0.038665771484375,
0.016632080078125,
-0.0263671875,
-0.0095977783203125,
0.039459228515625,
0.00001341104507446289,
0.01503753662109375,
-0.01490020751953125,
0.05633544921875,
0.03521728515625,
0.03057861328125,
-0.041168212890625,
-0.061065673828125,
0.006134033203125,
0.017059326171875,
0.02862548828125,
0.025482177734375,
0.035186767578125,
-0.0189971923828125,
0.01953125,
-0.05267333984375,
-0.03826904296875,
0.007106781005859375,
0.039215087890625,
-0.0183563232421875,
-0.01200103759765625,
0.0207977294921875,
-0.0635986328125,
-0.07379150390625,
0.04278564453125,
0.032562255859375,
0.061920166015625,
0.0014286041259765625,
0.08221435546875,
0.02716064453125,
-0.022705078125,
-0.041015625,
0.034393310546875,
-0.007518768310546875,
0.057403564453125,
-0.05828857421875,
-0.029693603515625,
0.0199127197265625,
0.052520751953125,
0.0217742919921875,
0.023681640625,
0.0316162109375,
0.05560302734375,
0.01316070556640625,
-0.00284576416015625,
0.03619384765625,
-0.01216888427734375,
0.019439697265625,
-0.041717529296875,
0.03900146484375,
-0.0252532958984375,
-0.00681304931640625,
-0.0000673532485961914,
0.042999267578125,
0.00039887428283691406,
0.0073699951171875,
0.02294921875,
0.01038360595703125,
-0.0335693359375,
0.00811767578125,
0.02191162109375,
0.06695556640625,
0.054595947265625,
-0.032379150390625,
-0.009033203125,
-0.00690460205078125,
-0.067138671875,
0.03253173828125,
0.05633544921875,
-0.031036376953125,
0.0180511474609375,
0.0092315673828125,
-0.03814697265625,
0.0273895263671875,
0.0062103271484375,
0.023651123046875,
0.050384521484375,
0.00848388671875,
0.01361083984375,
-0.0255889892578125,
-0.009552001953125,
0.0278167724609375,
0.03717041015625,
-0.016937255859375,
0.06640625,
-0.02557373046875,
-0.0013933181762695312,
-0.010955810546875,
0.0222930908203125,
-0.0355224609375,
-0.004802703857421875,
0.0109100341796875,
0.02178955078125,
0.0028095245361328125,
-0.0177764892578125,
-0.017730712890625,
-0.02740478515625,
0.0623779296875,
-0.03863525390625,
-0.012115478515625,
-0.0030460357666015625,
0.0175933837890625,
-0.01514434814453125,
0.024749755859375,
-0.01617431640625,
-0.042022705078125,
-0.01085662841796875,
-0.00209808349609375,
-0.0033397674560546875,
0.03582763671875,
0.0300445556640625,
0.0513916015625,
0.003292083740234375,
-0.003711700439453125,
0.011322021484375,
-0.039703369140625,
0.0235595703125,
0.040191650390625,
-0.035552978515625,
-0.045745849609375,
0.0160675048828125,
-0.01342010498046875,
0.000873565673828125,
0.012481689453125,
0.043426513671875,
0.0175018310546875,
-0.0002218484878540039,
0.00647735595703125,
0.05419921875,
0.034759521484375,
-0.01413726806640625,
0.025177001953125,
0.041412353515625,
-0.035858154296875,
0.0033168792724609375,
0.0496826171875,
-0.032867431640625,
-0.0215606689453125,
-0.02130126953125,
-0.0158538818359375,
-0.0092315673828125,
-0.0927734375,
-0.0628662109375,
-0.0121002197265625,
0.051788330078125,
0.01366424560546875,
-0.07171630859375,
0.04083251953125,
-0.0169219970703125,
0.049591064453125,
0.0097503662109375,
0.00275421142578125,
-0.0264129638671875,
0.0094146728515625,
-0.05291748046875,
-0.022125244140625,
-0.06195068359375,
0.0005044937133789062,
-0.0628662109375,
-0.005634307861328125,
0.020599365234375,
-0.0235137939453125,
0.0167694091796875,
-0.03143310546875,
0.01076507568359375,
0.0237274169921875,
-0.01064300537109375,
-0.02325439453125,
-0.0075225830078125,
0.0148162841796875,
-0.031402587890625,
-0.0266265869140625,
0.0275421142578125,
-0.025604248046875,
-0.039703369140625,
-0.038970947265625,
0.0006093978881835938,
0.0021686553955078125,
-0.04571533203125,
-0.0440673828125,
-0.0104217529296875,
-0.001041412353515625,
-0.0328369140625,
-0.0289154052734375,
0.0400390625,
-0.015045166015625,
0.041259765625,
-0.003063201904296875,
0.00919342041015625,
0.0210723876953125,
0.019317626953125,
0.03179931640625,
-0.008544921875,
0.048675537109375,
-0.00960540771484375,
-0.0149383544921875,
0.022064208984375,
0.0215911865234375,
0.03497314453125,
-0.039581298828125,
0.01366424560546875,
0.0213623046875,
0.02593994140625,
-0.00860595703125,
0.0321044921875,
0.0228271484375,
0.006744384765625,
0.00981903076171875,
-0.0200347900390625,
-0.0655517578125,
-0.0304718017578125,
0.048858642578125,
0.05889892578125,
0.0223236083984375,
-0.0136566162109375,
-0.0149688720703125,
-0.0286865234375,
-0.035858154296875,
-0.002605438232421875,
0.0160064697265625,
-0.052734375,
0.0030689239501953125,
0.0184783935546875,
-0.017303466796875,
0.0291290283203125,
-0.016693115234375,
-0.01641845703125,
0.0134124755859375,
0.0025768280029296875,
-0.00894927978515625,
-0.07763671875,
0.015716552734375,
-0.034759521484375,
-0.01027679443359375,
-0.0294952392578125,
-0.0247039794921875,
0.0081329345703125,
-0.0548095703125,
-0.02789306640625,
-0.049285888671875,
-0.032012939453125,
0.0264892578125,
0.0167388916015625,
-0.0094146728515625,
0.0286865234375,
0.016326904296875,
0.0211029052734375,
0.0032787322998046875,
-0.0011911392211914062,
0.0101165771484375,
-0.00926971435546875,
-0.05908203125,
0.0777587890625,
-0.0010766983032226562,
0.042144775390625,
-0.002887725830078125,
-0.0203704833984375,
0.00482940673828125,
-0.012298583984375,
0.00618743896484375,
-0.0017518997192382812,
0.0206298828125,
-0.022369384765625,
0.0016088485717773438,
0.029296875,
-0.00405120849609375,
-0.04620361328125,
0.0159759521484375,
-0.0028820037841796875,
0.03204345703125,
0.0177764892578125
] |
4b5489f272668dbe895226f9637d6ace5c03adc6 | Wordpress Stackexchange
Q: What’s the difference between esc_html, esc_attr, esc_html_e, and so on? I got feedback from security guy and he pointed out that I should use proper escaping of user input in my code. So I've done some research and found escaping functions.
What’s the difference between them?
When should I use esc_html() and when esc_attr()?
And when should I use these functions with _e() at the end?
A: esc_html would be used inside of html for example between a <p> tag
<p><?php echo esc_html( $some_variable ); ?></p>
esc_attr would be used for escaping attribute values on html tags like so:
<p my-attribute="<?php echo esc_attr( $some_variable ); ?>"></p>
applying _e to the end is for using it with text domains and will automatically echo it for you e.g:
<p><?php esc_html_e( 'some-text', 'text-domain' ); ?></p>
<p my-attribute="<?php esc_attr_e( 'some-text', 'text-domain' ); ?>"></p>
in addition to _e there is also __ which does the same as _e but doesnt echo it so you can store it in a variable.
| Q: What’s the difference between esc_html, esc_attr, esc_html_e, and so on? I got feedback from security guy and he pointed out that I should use proper escaping of user input in my code. So I've done some research and found escaping functions.
What’s the difference between them?
When should I use esc_html() and when esc_attr()?
And when should I use these functions with _e() at the end?
A: esc_html would be used inside of html for example between a <p> tag
<p><?php echo esc_html( $some_variable ); ?></p>
esc_attr would be used for escaping attribute values on html tags like so:
<p my-attribute="<?php echo esc_attr( $some_variable ); ?>"></p>
applying _e to the end is for using it with text domains and will automatically echo it for you e.g:
<p><?php esc_html_e( 'some-text', 'text-domain' ); ?></p>
<p my-attribute="<?php esc_attr_e( 'some-text', 'text-domain' ); ?>"></p>
in addition to _e there is also __ which does the same as _e but doesnt echo it so you can store it in a variable.
A: esc_html() escapes a string so that it is not parsed as HTML. Characters like < are converted to <, for example. This will look the same to the reader, but it means that if the value being output is <script> then it won't be interpreted by the browser as an actual script tag.
Use this function whenever the value being output should not contain HTML.
esc_attr() escapes a string so that it's safe to use in an HTML attribute, like class="" for example. This prevents a value from breaking out of the HTML attribute. For example, if the value is "><script>alert();</script> and you tried to output it in an HTML attribute it would close the current HTML tag and open a script tag. This is unsafe. By escaping the value it won't be able to close the HTML attribute and tag and output unsafe HTML.
Use this function when outputting a value inside an HTML attribute.
esc_url() escapes a string to make sure that it's a valid URL.
Use this function when outputting a value inside an href="" or src="" attribute.
esc_textarea() escapes a value so that it's safe to use in a <textarea> element. By escaping a value with this function it prevents a value being output inside a <textarea< from closing the <textarea> element and outputting its own HTML.
Use this function when outputting a value inside a <textarea> element.
esc_html() and esc_attr() also have versions ending in __(), _e() and _x(). These are for outputting translatable strings.
WordPress has functions, __(), _e() and _x(), for outputting text that can be translated. __() returns a translatable string, _e() echoes a translatable string, and _x() returns a translatable string with a given context. You've probably seen them before.
Since you can't necessarily trust a translation file to contain safe values, using these functions when outputting a translatable string ensures that the strings being output can't cause the same issue described above.
Use these functions when outputting translatable strings.
| wordpress | {
"language": "en",
"length": 496,
"provenance": "stackexchange_00019.jsonl.gz:491098",
"question_score": "22",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/321307"
} | [
0.055572509765625,
-0.00917816162109375,
0.004535675048828125,
-0.0237274169921875,
0.0321044921875,
-0.007781982421875,
0.059112548828125,
-0.017242431640625,
0.032012939453125,
0.0244598388671875,
0.0284576416015625,
0.0180511474609375,
0.0197296142578125,
-0.0499267578125,
0.012542724609375,
0.0382080078125,
0.00933074951171875,
0.0098724365234375,
0.006427764892578125,
-0.0189208984375,
0.00449371337890625,
-0.0016603469848632812,
-0.01261138916015625,
-0.00031113624572753906,
0.04351806640625,
-0.09051513671875,
0.049163818359375,
0.01052093505859375,
0.015655517578125,
0.00078582763671875,
0.0182342529296875,
-0.009979248046875,
0.0419921875,
0.047454833984375,
-0.10577392578125,
0.038909912109375,
-0.0279693603515625,
0.03753662109375,
-0.0277862548828125,
0.0321044921875,
0.025634765625,
-0.0260772705078125,
0.0165557861328125,
0.021270751953125,
-0.001132965087890625,
-0.002544403076171875,
0.028350830078125,
-0.03839111328125,
0.0012226104736328125,
-0.00957489013671875,
0.02703857421875,
-0.01934814453125,
0.029815673828125,
0.01018524169921875,
-0.002513885498046875,
0.0276947021484375,
-0.0235595703125,
-0.042755126953125,
0.0147705078125,
0.062255859375,
0.0097198486328125,
-0.0184478759765625,
0.0035610198974609375,
-0.06231689453125,
-0.00673675537109375,
0.01474761962890625,
0.0139007568359375,
0.0198211669921875,
-0.04083251953125,
-0.03216552734375,
0.00611114501953125,
-0.029327392578125,
0.0095672607421875,
-0.06512451171875,
-0.0081634521484375,
0.07501220703125,
-0.00832366943359375,
0.0276947021484375,
-0.00008863210678100586,
-0.0152587890625,
-0.005889892578125,
0.040283203125,
-0.057830810546875,
-0.0682373046875,
0.023834228515625,
-0.04229736328125,
-0.0131378173828125,
-0.001117706298828125,
0.01226806640625,
-0.01751708984375,
0.002796173095703125,
0.0035457611083984375,
0.0267333984375,
0.003887176513671875,
-0.010955810546875,
-0.06109619140625,
-0.011932373046875,
0.004180908203125,
0.0027179718017578125,
0.01026153564453125,
0.0306243896484375,
-0.043060302734375,
0.0240325927734375,
-0.024749755859375,
0.007396697998046875,
0.0771484375,
-0.0012254714965820312,
-0.0088958740234375,
0.0149078369140625,
-0.0123138427734375,
0.016143798828125,
-0.006832122802734375,
-0.0304412841796875,
-0.031219482421875,
0.018951416015625,
0.031982421875,
-0.056549072265625,
0.058990478515625,
0.00275421142578125,
0.0518798828125,
0.0108184814453125,
0.007450103759765625,
0.06573486328125,
-0.05419921875,
0.017242431640625,
0.0027313232421875,
-0.03265380859375,
-0.0709228515625,
-0.0013904571533203125,
0.036407470703125,
-0.0200958251953125,
0.0028591156005859375,
0.032196044921875,
0.004791259765625,
-0.0229644775390625,
-0.032745361328125,
-0.03582763671875,
-0.03289794921875,
-0.0230255126953125,
0.0208282470703125,
-0.032379150390625,
-0.040069580078125,
0.0286712646484375,
-0.0308685302734375,
-0.05682373046875,
0.037322998046875,
0.01543426513671875,
-0.006153106689453125,
-0.034210205078125,
-0.09552001953125,
0.017578125,
-0.07794189453125,
0.056182861328125,
-0.031097412109375,
-0.0758056640625,
-0.06097412109375,
-0.04498291015625,
-0.0406494140625,
0.01236724853515625,
-0.050811767578125,
-0.0049896240234375,
-0.02691650390625,
0.021453857421875,
-0.00867462158203125,
-0.0260467529296875,
0.033905029296875,
-0.039154052734375,
-0.0080108642578125,
0.01959228515625,
0.01274871826171875,
0.0031452178955078125,
0.005054473876953125,
0.018798828125,
0.0214080810546875,
-0.00212860107421875,
0.022918701171875,
-0.029266357421875,
0.0191650390625,
0.0360107421875,
-0.0103912353515625,
-0.005367279052734375,
-0.0302734375,
0.04656982421875,
-0.006793975830078125,
-0.07562255859375,
0.003604888916015625,
0.0011205673217773438,
0.0423583984375,
0.04339599609375,
0.01020050048828125,
0.0478515625,
-0.00965118408203125,
0.00940704345703125,
0.0132293701171875,
0.01270294189453125,
-0.050811767578125,
-0.01473236083984375,
-0.00969696044921875,
-0.016143798828125,
-0.011871337890625,
0.065185546875,
-0.0225067138671875,
0.043243408203125,
-0.008514404296875,
-0.01348876953125,
-0.0030307769775390625,
0.0010366439819335938,
0.0099029541015625,
0.0038356781005859375,
0.0265960693359375,
0.0084381103515625,
-0.01320648193359375,
-0.0119476318359375,
0.006015777587890625,
-0.018280029296875,
-0.0094146728515625,
-0.007511138916015625,
0.0677490234375,
-0.00817108154296875,
0.038299560546875,
0.0022125244140625,
-0.043304443359375,
0.0054473876953125,
0.01036834716796875,
0.04180908203125,
-0.00711822509765625,
-0.01238250732421875,
-0.029632568359375,
0.01227569580078125,
0.003131866455078125,
-0.02166748046875,
0.034820556640625,
0.0762939453125,
0.052581787109375,
-0.01190948486328125,
-0.0010004043579101562,
-0.0018529891967773438,
-0.0865478515625,
-0.01959228515625,
0.0662841796875,
0.04779052734375,
0.054473876953125,
-0.01317596435546875,
-0.066650390625,
0.034576416015625,
-0.064697265625,
0.02557373046875,
-0.068115234375,
-0.0281219482421875,
-0.0190887451171875,
0.038787841796875,
-0.0233917236328125,
0.00820159912109375,
-0.0853271484375,
-0.0082855224609375,
0.035308837890625,
-0.048126220703125,
-0.00762176513671875,
-0.056610107421875,
0.01450347900390625,
0.0016107559204101562,
-0.06658935546875,
0.01016998291015625,
-0.045166015625,
0.03558349609375,
0.02197265625,
0.020843505859375,
0.0177764892578125,
-0.0225982666015625,
0.0161285400390625,
0.01224517822265625,
0.0016460418701171875,
-0.004978179931640625,
0.04583740234375,
-0.04583740234375,
0.03863525390625,
-0.033111572265625,
0.0194244384765625,
-0.0092926025390625,
0.00876617431640625,
-0.00904083251953125,
0.0133514404296875,
-0.004405975341796875,
-0.018310546875,
-0.0006279945373535156,
-0.0280609130859375,
0.011566162109375,
-0.007747650146484375,
0.0212860107421875,
-0.028961181640625,
0.01018524169921875,
0.006732940673828125,
-0.017181396484375,
0.041656494140625,
0.009552001953125,
-0.03466796875,
-0.01806640625,
-0.028717041015625,
0.00751495361328125,
0.006877899169921875,
0.03704833984375,
0.05755615234375,
0.0509033203125,
-0.02996826171875,
-0.00623321533203125,
-0.0189361572265625,
-0.0172882080078125,
-0.0098724365234375,
-0.03802490234375,
-0.0168914794921875,
-0.10272216796875,
-0.044281005859375,
0.0110321044921875,
-0.000010609626770019531,
0.0011043548583984375,
-0.022430419921875,
-0.03924560546875,
-0.0020618438720703125,
-0.08740234375,
-0.0697021484375,
0.05450439453125,
-0.08544921875,
0.0054931640625,
-0.020782470703125,
-0.040802001953125,
-0.0230712890625,
0.0176849365234375,
-0.0026035308837890625,
0.01427459716796875,
0.0017213821411132812,
-0.0217132568359375,
-0.005580902099609375,
-0.037567138671875,
0.037353515625,
-0.0005712509155273438,
0.01152801513671875,
-0.003810882568359375,
0.0156097412109375,
-0.0228271484375,
0.0240936279296875,
0.004848480224609375,
-0.042236328125,
-0.0009131431579589844,
-0.0218048095703125,
-0.049224853515625,
-0.027191162109375,
-0.0138397216796875,
-0.0055999755859375,
-0.0081329345703125,
-0.044891357421875,
0.06707763671875,
-0.004444122314453125,
0.005084991455078125,
0.004486083984375,
0.049652099609375,
0.00460052490234375,
-0.01186370849609375,
0.047393798828125,
0.053070068359375,
-0.01450347900390625,
-0.006687164306640625,
-0.0283355712890625,
-0.042205810546875,
0.049896240234375,
0.038238525390625,
0.007053375244140625,
0.00772857666015625,
0.00629425048828125,
-0.0195159912109375,
-0.0011119842529296875,
-0.006023406982421875,
-0.01340484619140625,
-0.0184783935546875,
-0.02142333984375,
-0.0236663818359375,
0.00769805908203125,
-0.0242462158203125,
-0.028839111328125,
0.02252197265625,
0.001392364501953125,
0.0190887451171875,
0.0008087158203125,
-0.00989532470703125,
-0.007293701171875,
-0.06292724609375,
0.059661865234375,
0.036895751953125,
0.0227203369140625,
-0.0267486572265625,
-0.05364990234375,
-0.0126495361328125,
0.0833740234375,
-0.00951385498046875,
-0.0244598388671875,
0.015869140625,
0.0141143798828125,
-0.0201263427734375,
0.015106201171875,
-0.032958984375,
0.0003552436828613281,
-0.027313232421875,
0.0204925537109375,
0.01290130615234375,
0.005252838134765625,
-0.021148681640625,
0.04119873046875,
-0.0286407470703125,
-0.00376129150390625,
0.01216888427734375,
-0.03411865234375,
0.01214599609375,
-0.036590576171875,
0.019805908203125,
-0.049072265625,
0.01641845703125,
-0.042144775390625,
-0.038818359375,
0.005096435546875,
-0.02642822265625,
0.01702880859375,
0.007007598876953125,
0.01177215576171875,
-0.034393310546875,
0.022705078125,
0.0180816650390625,
-0.00495147705078125,
0.034454345703125,
0.01104736328125,
-0.003345489501953125,
0.01015472412109375,
0.028717041015625,
-0.02532958984375,
-0.006664276123046875,
-0.0213775634765625,
-0.0467529296875,
-0.01181793212890625,
0.0244598388671875,
-0.001941680908203125,
0.040374755859375,
-0.0247955322265625,
-0.044708251953125,
-0.00972747802734375,
-0.0236358642578125,
-0.005321502685546875,
0.010711669921875,
-0.043121337890625,
0.00799560546875,
-0.051910400390625,
0.048095703125,
0.025634765625,
0.007007598876953125,
-0.02569580078125,
0.04083251953125,
0.0156707763671875,
-0.046356201171875,
0.04949951171875,
-0.056610107421875,
0.0285797119140625,
-0.017791748046875,
0.0216522216796875,
0.01290130615234375,
-0.02691650390625,
0.0572509765625,
-0.01806640625,
0.07666015625,
-0.0775146484375,
0.039703369140625,
-0.002307891845703125,
0.0185394287109375,
0.00948333740234375,
0.03106689453125,
-0.02099609375,
0.032684326171875,
0.006542205810546875,
-0.00852203369140625,
0.050201416015625,
-0.001857757568359375,
-0.0297393798828125,
0.00019443035125732422,
0.0101165771484375,
-0.0091552734375,
0.0012693405151367188,
0.025360107421875,
0.020904541015625,
0.068603515625,
-0.0036716461181640625,
0.01434326171875,
-0.000031054019927978516,
-0.01371002197265625,
-0.033721923828125,
-0.0081939697265625,
0.0006551742553710938,
0.0026397705078125,
-0.005893707275390625,
-0.02532958984375,
-0.046966552734375,
-0.005573272705078125,
0.018218994140625,
-0.0001628398895263672,
-0.0101165771484375,
-0.04730224609375,
0.013275146484375,
0.009063720703125,
-0.01338958740234375,
0.04925537109375,
0.0037841796875,
-0.00402069091796875,
0.0117950439453125,
0.000014185905456542969,
0.037384033203125,
0.002227783203125,
0.0007638931274414062,
-0.01166534423828125,
-0.01239776611328125,
-0.0002837181091308594,
-0.00868988037109375,
0.038330078125,
-0.0127716064453125,
0.0193939208984375,
-0.0182037353515625,
0.03656005859375,
0.01045989990234375,
0.037628173828125,
0.0172882080078125,
-0.0313720703125,
0.006000518798828125,
0.01372528076171875,
-0.0252532958984375,
-0.021484375,
-0.042510986328125,
0.02667236328125,
0.04962158203125,
-0.02227783203125,
0.0165557861328125,
-0.0153350830078125,
-0.00046443939208984375,
-0.00830841064453125,
0.0501708984375,
-0.01230621337890625,
-0.038177490234375,
-0.039276123046875,
-0.01071929931640625,
0.05535888671875,
-0.01287078857421875,
0.01537322998046875,
-0.0023136138916015625,
0.01483917236328125,
-0.0133514404296875,
-0.03997802734375,
-0.0386962890625,
-0.0198974609375,
0.0151214599609375,
-0.0019121170043945312,
0.0051727294921875,
-0.0143280029296875,
-0.0087890625,
-0.0206756591796875,
-0.024200439453125,
-0.03533935546875,
0.07879638671875,
-0.0308074951171875,
0.052154541015625,
-0.045501708984375,
-0.00926971435546875,
-0.031890869140625,
-0.001026153564453125,
0.069580078125,
0.042877197265625,
-0.0545654296875,
0.0008182525634765625,
-0.036407470703125,
-0.001987457275390625,
-0.0178375244140625,
-0.017974853515625,
-0.033416748046875,
0.0037746429443359375,
-0.003780364990234375,
0.04644775390625,
-0.0001819133758544922,
0.0050811767578125,
0.0211944580078125,
-0.01247406005859375,
-0.037078857421875,
0.06304931640625,
0.003170013427734375,
-0.0018768310546875,
0.007080078125,
0.021820068359375,
-0.004367828369140625,
-0.003726959228515625,
0.0203094482421875,
-0.0301513671875,
0.03778076171875,
-0.0330810546875,
-0.04901123046875,
-0.053253173828125,
0.0161285400390625,
0.0187530517578125,
0.042236328125,
-0.0207672119140625,
0.0430908203125,
0.0108642578125,
0.0075836181640625,
-0.003292083740234375,
-0.025115966796875,
-0.0004642009735107422,
0.0306549072265625,
0.046875,
-0.031524658203125,
-0.031341552734375,
0.032501220703125,
-0.0230560302734375,
0.07110595703125,
0.0036945343017578125,
0.050445556640625,
-0.0033721923828125,
0.0004355907440185547,
-0.00496673583984375,
0.0238494873046875,
-0.00461578369140625,
0.040069580078125,
0.0168304443359375,
0.026214599609375,
0.0227203369140625,
-0.00605010986328125,
0.0265045166015625,
0.0158843994140625,
0.032501220703125,
-0.0110015869140625,
0.00962066650390625,
0.01474761962890625,
-0.0196533203125,
0.0191650390625,
0.08563232421875,
0.08477783203125,
-0.07257080078125,
-0.0197601318359375,
0.01332855224609375,
-0.05548095703125,
-0.016357421875,
-0.0196685791015625,
-0.007808685302734375,
-0.05938720703125,
0.045745849609375,
-0.0010251998901367188,
-0.0208892822265625,
-0.004581451416015625,
-0.0160675048828125,
-0.0171356201171875,
-0.0182647705078125,
0.0017375946044921875,
0.019866943359375,
-0.0223236083984375,
0.0036163330078125,
0.016448974609375,
-0.01690673828125,
-0.015380859375,
0.0021209716796875,
-0.0117034912109375,
-0.044189453125,
-0.0775146484375,
-0.05096435546875,
0.008331298828125,
-0.037567138671875,
0.004047393798828125,
0.0229644775390625,
0.05865478515625,
0.0305938720703125,
0.0120391845703125,
-0.0003840923309326172,
-0.00628662109375,
0.04290771484375,
0.0056610107421875,
-0.01139068603515625,
-0.025848388671875,
-0.0009222030639648438,
-0.01126861572265625,
0.003185272216796875,
-0.0195159912109375,
0.004825592041015625,
0.0038204193115234375,
0.00099945068359375,
0.0036220550537109375,
0.037017822265625,
-0.048370361328125,
0.01042938232421875,
0.01861572265625,
-0.0002111196517944336,
-0.0178375244140625,
-0.0418701171875,
-0.059356689453125,
-0.016265869140625,
-0.0506591796875,
-0.059112548828125,
0.057037353515625,
-0.0482177734375,
-0.10296630859375,
0.07958984375,
0.08404541015625,
0.04254150390625,
-0.037841796875,
0.0211181640625,
-0.0333251953125,
-0.030853271484375,
-0.03466796875,
-0.01788330078125,
-0.0026531219482421875,
0.031494140625,
-0.0198211669921875,
0.00830841064453125,
-0.005115509033203125,
0.005645751953125,
0.027069091796875,
-0.01117706298828125,
0.00543975830078125,
0.046875,
0.09942626953125,
0.0235443115234375,
-0.0139007568359375,
-0.003021240234375,
0.029052734375,
0.03570556640625,
0.07281494140625,
-0.04608154296875,
0.0178375244140625,
-0.0299530029296875,
0.050018310546875,
0.04364013671875,
-0.0097198486328125,
-0.024688720703125,
-0.01236724853515625,
-0.028472900390625,
-0.03570556640625,
0.0036182403564453125,
-0.02252197265625,
0.04095458984375,
-0.034759521484375,
0.005008697509765625,
0.00543212890625,
-0.060089111328125,
-0.017608642578125,
-0.022674560546875,
0.027252197265625,
0.048797607421875,
0.043975830078125,
0.050689697265625,
0.01074981689453125,
0.0222930908203125,
0.044677734375,
0.0287933349609375,
0.0099334716796875,
0.0118560791015625,
-0.009368896484375,
-0.0070648193359375,
0.0235595703125,
-0.047882080078125,
0.0005092620849609375,
0.0384521484375,
0.0133819580078125,
-0.01500701904296875,
-0.02508544921875,
0.0047454833984375,
0.00804901123046875,
0.02252197265625,
0.01337432861328125,
0.048126220703125,
-0.03338623046875,
-0.0225677490234375,
-0.03680419921875,
0.023345947265625,
0.037872314453125,
0.0209808349609375,
0.0072479248046875,
0.028350830078125,
-0.06494140625,
-0.006862640380859375,
-0.02410888671875,
-0.034515380859375,
-0.00473785400390625,
0.01027679443359375,
0.036895751953125,
0.0200347900390625,
0.0167388916015625,
-0.0093536376953125,
-0.024658203125,
0.004764556884765625,
-0.0167236328125,
0.041839599609375,
-0.0259857177734375,
0.0153350830078125,
0.01910400390625,
0.0281524658203125,
0.0130157470703125,
0.01010894775390625,
0.050689697265625,
0.0307159423828125,
-0.04193115234375,
-0.006984710693359375,
0.03521728515625,
-0.0172271728515625,
0.032257080078125,
-0.0186614990234375,
0.057769775390625,
0.0241241455078125,
0.0116729736328125,
-0.040802001953125,
0.0206451416015625,
0.063232421875,
-0.032958984375,
0.046600341796875,
-0.0170135498046875,
-0.027801513671875,
-0.0246429443359375,
-0.0251312255859375,
0.064697265625,
-0.01464080810546875,
-0.005870819091796875,
0.005374908447265625,
-0.005138397216796875,
-0.0198822021484375,
0.027099609375,
0.037689208984375,
-0.0038814544677734375,
0.0156097412109375,
0.01435089111328125,
-0.041900634765625,
0.04296875,
0.048431396484375,
-0.039459228515625,
-0.01276397705078125,
0.04052734375,
-0.03399658203125,
0.0221405029296875,
0.006122589111328125,
0.04266357421875,
0.0209503173828125,
-0.0142059326171875,
-0.007080078125,
-0.0074462890625,
0.004161834716796875,
0.031829833984375,
0.02703857421875,
-0.0164642333984375,
0.00443267822265625,
0.040557861328125,
-0.01338958740234375,
0.0301055908203125,
-0.0238800048828125,
-0.053863525390625,
0.045074462890625,
0.01444244384765625,
0.01227569580078125,
0.0179290771484375,
0.0254058837890625,
0.0174560546875,
0.0228118896484375,
0.04681396484375,
-0.01708984375,
-0.038177490234375,
-0.026824951171875,
0.006916046142578125,
0.02569580078125,
0.031768798828125,
-0.0102691650390625,
-0.010101318359375,
0.030670166015625,
-0.01064300537109375,
0.0017309188842773438,
0.0182037353515625,
-0.01019287109375,
0.00885772705078125,
0.01151275634765625,
-0.00833892822265625,
0.0259857177734375,
-0.01239776611328125,
0.0037937164306640625,
0.002288818359375,
0.0309906005859375,
0.00489044189453125,
-0.03485107421875,
-0.032257080078125,
0.03564453125,
0.041656494140625,
0.004413604736328125,
0.0185394287109375,
0.0015897750854492188,
-0.0199737548828125,
-0.00647735595703125,
-0.0140838623046875,
0.00662994384765625,
-0.0224151611328125,
-0.01186370849609375,
0.019622802734375,
0.01062774658203125,
-0.0052337646484375,
-0.00418853759765625,
-0.04962158203125,
0.026153564453125,
0.0117645263671875,
-0.00405120849609375,
-0.059844970703125,
0.028411865234375,
0.00928497314453125,
-0.001438140869140625,
0.0125885009765625,
-0.0186004638671875,
0.0299835205078125,
-0.01548004150390625,
-0.010528564453125,
-0.04840087890625,
0.02484130859375,
-0.036224365234375,
0.032623291015625,
0.034332275390625,
-0.023468017578125,
-0.0037384033203125,
-0.0021839141845703125,
0.0022144317626953125,
0.043548583984375,
0.01493072509765625,
-0.028778076171875,
-0.026824951171875,
0.03680419921875,
-0.029022216796875,
-0.013885498046875,
0.0203399658203125,
-0.0067138671875,
-0.0242767333984375,
0.00238800048828125,
0.002780914306640625,
0.01363372802734375,
-0.0263519287109375,
-0.05230712890625,
0.058746337890625,
-0.0008044242858886719,
-0.023223876953125,
0.03253173828125,
-0.021575927734375,
-0.00551605224609375,
0.02642822265625,
0.01080322265625,
-0.0173187255859375,
-0.041839599609375,
-0.0157470703125,
0.05303955078125,
0.00804901123046875,
0.063232421875,
-0.0180511474609375,
-0.032135009765625,
-0.01070404052734375,
-0.0103607177734375,
0.03155517578125,
-0.024658203125,
0.00554656982421875,
0.020751953125,
0.04949951171875,
-0.00754547119140625,
-0.026611328125,
-0.006435394287109375,
-0.02740478515625,
-0.0287017822265625,
-0.045318603515625,
-0.001842498779296875,
0.00991058349609375,
0.07159423828125,
0.026092529296875,
0.004528045654296875,
-0.05535888671875,
-0.022186279296875,
-0.02117919921875,
0.0218963623046875,
-0.0264434814453125,
-0.005054473876953125,
-0.0723876953125,
-0.036346435546875,
0.003490447998046875,
-0.01548004150390625,
0.043701171875,
-0.01059722900390625,
-0.00783538818359375,
0.0120086669921875,
0.01953125,
-0.0045318603515625,
-0.0521240234375,
0.0029621124267578125,
0.041229248046875,
-0.041015625,
-0.005802154541015625,
0.0036602020263671875,
0.0127410888671875,
0.00933837890625,
-0.0017995834350585938,
0.021331787109375,
-0.00775146484375,
-0.0296783447265625,
-0.003849029541015625,
-0.00041174888610839844,
0.023223876953125,
-0.0226898193359375,
-0.037200927734375,
-0.01076507568359375,
0.031341552734375,
-0.00771331787109375,
0.032257080078125,
-0.0183563232421875,
0.0760498046875,
0.0251617431640625,
0.051544189453125,
-0.054962158203125,
0.004039764404296875,
-0.022491455078125,
-0.00152587890625,
-0.04412841796875,
0.045989990234375,
0.01373291015625,
-0.0089874267578125,
0.034576416015625,
-0.0252838134765625,
0.057159423828125,
0.01506805419921875,
0.01207733154296875,
0.0156707763671875,
-0.02606201171875,
0.0218048095703125
] |
3f0acdeacc53f82cdd449a9951e6f39364437171 | Wordpress Stackexchange
Q: How to check if current admin page is Gutenberg editor? Previously I could use is_gutenberg_page(), but this function seems to be gone after 5.0 release.
Any tips on how to check if current admin page is gutenberg editor?
A: In 5.0 new function was introduced (docs):
WP_Screen::is_block_editor( bool $set = null )
which sets or returns whether the block editor is loading on the current screen.
So you can do that check using this code:
global $current_screen;
$current_screen = get_current_screen();
if ( method_exists($current_screen, 'is_block_editor') && $current_screen->is_block_editor() ) {
// DO SOMETHING
}
You can also add to this condition
|| ( function_exists('is_gutenberg_page')) && is_gutenberg_page() )
to be compatible with older versions.
| Q: How to check if current admin page is Gutenberg editor? Previously I could use is_gutenberg_page(), but this function seems to be gone after 5.0 release.
Any tips on how to check if current admin page is gutenberg editor?
A: In 5.0 new function was introduced (docs):
WP_Screen::is_block_editor( bool $set = null )
which sets or returns whether the block editor is loading on the current screen.
So you can do that check using this code:
global $current_screen;
$current_screen = get_current_screen();
if ( method_exists($current_screen, 'is_block_editor') && $current_screen->is_block_editor() ) {
// DO SOMETHING
}
You can also add to this condition
|| ( function_exists('is_gutenberg_page')) && is_gutenberg_page() )
to be compatible with older versions.
| wordpress | {
"language": "en",
"length": 112,
"provenance": "stackexchange_00019.jsonl.gz:491115",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/321368"
} | [
-0.013702392578125,
0.00876617431640625,
-0.01268768310546875,
-0.0064849853515625,
-0.00962066650390625,
-0.007648468017578125,
-0.00033283233642578125,
-0.030181884765625,
0.01302337646484375,
0.042083740234375,
0.0178985595703125,
-0.016571044921875,
-0.0027027130126953125,
-0.03729248046875,
-0.03515625,
0.00482940673828125,
0.0355224609375,
-0.006549835205078125,
0.03729248046875,
0.010040283203125,
-0.0171051025390625,
0.022369384765625,
-0.005733489990234375,
-0.00872802734375,
0.004032135009765625,
-0.05078125,
0.059356689453125,
0.007965087890625,
-0.0036296844482421875,
-0.01971435546875,
0.024688720703125,
0.00881195068359375,
0.0083770751953125,
0.0227508544921875,
-0.01537322998046875,
-0.0071563720703125,
-0.0009784698486328125,
0.00829315185546875,
0.0134124755859375,
0.0019741058349609375,
0.028564453125,
-0.0163116455078125,
-0.05938720703125,
-0.005863189697265625,
-0.0556640625,
0.0030536651611328125,
-0.0014858245849609375,
-0.008026123046875,
0.0197601318359375,
0.033782958984375,
-0.023468017578125,
-0.0309295654296875,
-0.0283050537109375,
0.023406982421875,
0.001071929931640625,
-0.03619384765625,
-0.01458740234375,
0.01517486572265625,
0.0025787353515625,
0.0247802734375,
-0.0017118453979492188,
0.03546142578125,
-0.003673553466796875,
-0.0238189697265625,
0.016876220703125,
-0.0017414093017578125,
0.0445556640625,
0.023590087890625,
-0.0159454345703125,
-0.0022869110107421875,
-0.0004839897155761719,
-0.007678985595703125,
0.000029861927032470703,
-0.0300750732421875,
0.01375579833984375,
-0.014984130859375,
-0.021392822265625,
-0.0345458984375,
0.01416778564453125,
0.018524169921875,
-0.0180816650390625,
0.0208740234375,
-0.046722412109375,
-0.01265716552734375,
0.016754150390625,
0.02325439453125,
-0.0216522216796875,
-0.016845703125,
-0.0231170654296875,
-0.03240966796875,
-0.014007568359375,
-0.04730224609375,
-0.0274200439453125,
-0.00305938720703125,
-0.0111083984375,
-0.036773681640625,
0.0201873779296875,
0.045166015625,
-0.0226593017578125,
-0.0361328125,
-0.00568389892578125,
-0.038970947265625,
-0.01074981689453125,
-0.0189361572265625,
0.0186004638671875,
0.060089111328125,
-0.02056884765625,
-0.00411224365234375,
0.039337158203125,
0.0061798095703125,
0.0186767578125,
-0.0182037353515625,
-0.023223876953125,
-0.01800537109375,
-0.002666473388671875,
0.036346435546875,
-0.04339599609375,
0.0165557861328125,
-0.01374053955078125,
0.0234527587890625,
0.0004265308380126953,
0.0223236083984375,
0.040985107421875,
-0.0218353271484375,
0.01947021484375,
0.0179290771484375,
-0.032012939453125,
-0.039703369140625,
0.00745391845703125,
-0.0008749961853027344,
-0.02032470703125,
0.0278167724609375,
0.02587890625,
0.01294708251953125,
-0.007465362548828125,
-0.01464080810546875,
0.01428985595703125,
0.018707275390625,
-0.0016222000122070312,
-0.00337982177734375,
-0.025299072265625,
-0.006366729736328125,
0.016693115234375,
-0.0531005859375,
-0.025482177734375,
0.007724761962890625,
0.03692626953125,
0.0167999267578125,
-0.04815673828125,
-0.07830810546875,
0.0301361083984375,
-0.021728515625,
0.0224151611328125,
0.01227569580078125,
0.045196533203125,
0.01523590087890625,
0.05462646484375,
-0.01363372802734375,
-0.0229339599609375,
-0.0108642578125,
0.0268707275390625,
-0.018035888671875,
0.01154327392578125,
-0.0210723876953125,
-0.040130615234375,
0.0179595947265625,
-0.06488037109375,
-0.01000213623046875,
0.0233612060546875,
-0.0186767578125,
0.032745361328125,
-0.0142059326171875,
0.022003173828125,
-0.0259552001953125,
-0.0286102294921875,
-0.0080718994140625,
0.003406524658203125,
-0.01580810546875,
0.0236968994140625,
0.0285797119140625,
-0.027984619140625,
-0.0220489501953125,
0.018707275390625,
-0.030853271484375,
-0.053466796875,
0.00044918060302734375,
-0.002689361572265625,
0.029205322265625,
0.058502197265625,
0.00554656982421875,
0.0236968994140625,
-0.03399658203125,
-0.00222015380859375,
-0.030914306640625,
-0.006786346435546875,
0.0216827392578125,
-0.022186279296875,
0.036712646484375,
-0.0181732177734375,
-0.01125335693359375,
0.045684814453125,
-0.01071929931640625,
0.003101348876953125,
-0.051910400390625,
-0.10198974609375,
-0.0115203857421875,
-0.023712158203125,
0.05126953125,
0.05377197265625,
-0.0021495819091796875,
-0.018463134765625,
-0.0382080078125,
-0.0085601806640625,
0.0234222412109375,
-0.036651611328125,
0.03839111328125,
-0.01971435546875,
0.02838134765625,
-0.007602691650390625,
0.0159912109375,
-0.0126800537109375,
-0.0099639892578125,
-0.0213165283203125,
-0.0126190185546875,
0.05755615234375,
0.007396697998046875,
-0.0140228271484375,
-0.0099029541015625,
0.054840087890625,
0.0294342041015625,
-0.027801513671875,
-0.004665374755859375,
0.0061187744140625,
-0.0174713134765625,
-0.0231781005859375,
0.0102386474609375,
0.00734710693359375,
-0.06591796875,
-0.0021495819091796875,
0.054229736328125,
0.050323486328125,
0.01349639892578125,
0.0007905960083007812,
-0.034423828125,
0.0269622802734375,
-0.08111572265625,
0.0108184814453125,
-0.030426025390625,
-0.01049041748046875,
0.04400634765625,
-0.060546875,
0.031341552734375,
0.004962921142578125,
0.01276397705078125,
-0.0282440185546875,
0.038421630859375,
-0.00003451108932495117,
0.0189208984375,
-0.0207366943359375,
0.00630950927734375,
-0.0085601806640625,
0.027740478515625,
-0.0009908676147460938,
0.00756072998046875,
0.04119873046875,
0.035980224609375,
0.06927490234375,
0.075927734375,
-0.035888671875,
0.0051116943359375,
0.01226043701171875,
0.06561279296875,
-0.0015783309936523438,
0.039459228515625,
0.06109619140625,
0.0162506103515625,
-0.05218505859375,
-0.01055145263671875,
0.042694091796875,
0.04302978515625,
-0.044097900390625,
0.0005779266357421875,
-0.046875,
-0.00921630859375,
-0.01512908935546875,
-0.02020263671875,
0.021087646484375,
-0.011260986328125,
0.035308837890625,
0.00010353326797485352,
0.05572509765625,
-0.047210693359375,
-0.04888916015625,
0.038604736328125,
-0.007404327392578125,
-0.054595947265625,
0.051422119140625,
-0.042144775390625,
0.0292205810546875,
-0.02435302734375,
0.0679931640625,
0.04669189453125,
-0.0283660888671875,
0.0193634033203125,
-0.00921630859375,
-0.01806640625,
-0.010101318359375,
-0.0135040283203125,
-0.0309295654296875,
0.0080413818359375,
-0.07244873046875,
0.01554107666015625,
0.01009368896484375,
0.01018524169921875,
0.0000623464584350586,
-0.0303955078125,
-0.01221466064453125,
0.002269744873046875,
-0.0701904296875,
-0.039215087890625,
-0.07257080078125,
-0.046966552734375,
-0.029022216796875,
0.00299835205078125,
-0.0199737548828125,
0.0394287109375,
0.01325225830078125,
0.0179443359375,
-0.01995849609375,
-0.005329132080078125,
-0.04205322265625,
-0.03338623046875,
-0.046356201171875,
0.0017375946044921875,
-0.0171661376953125,
0.006134033203125,
-0.00021696090698242188,
0.0256500244140625,
-0.00719451904296875,
-0.0528564453125,
0.003143310546875,
-0.017181396484375,
-0.001544952392578125,
0.002231597900390625,
0.0029315948486328125,
-0.035888671875,
0.0372314453125,
0.0135650634765625,
-0.0240936279296875,
-0.0017328262329101562,
0.0283203125,
-0.028564453125,
-0.01323699951171875,
-0.0152740478515625,
0.012115478515625,
-0.01366424560546875,
-0.00844573974609375,
-0.0213165283203125,
-0.0012598037719726562,
-0.052337646484375,
-0.004077911376953125,
0.0189208984375,
-0.00547027587890625,
0.08160400390625,
-0.032501220703125,
-0.03155517578125,
0.078125,
0.00389862060546875,
0.01413726806640625,
0.018463134765625,
0.04815673828125,
-0.0089111328125,
-0.00672149658203125,
-0.00879669189453125,
-0.0185699462890625,
-0.03033447265625,
0.01263427734375,
-0.0177154541015625,
0.01201629638671875,
-0.01280975341796875,
0.010345458984375,
-0.002979278564453125,
0.01446533203125,
-0.0145416259765625,
-0.0170745849609375,
0.05145263671875,
-0.01097869873046875,
0.0307159423828125,
-0.0360107421875,
-0.0227813720703125,
-0.005550384521484375,
0.06793212890625,
0.0153350830078125,
-0.022491455078125,
-0.0007958412170410156,
-0.004673004150390625,
-0.0203857421875,
0.000148773193359375,
-0.033172607421875,
0.0083160400390625,
-0.044891357421875,
0.01294708251953125,
-0.005626678466796875,
-0.03900146484375,
-0.021820068359375,
0.0174102783203125,
-0.0516357421875,
-0.0145111083984375,
0.035186767578125,
-0.08160400390625,
0.0029144287109375,
0.0731201171875,
-0.032928466796875,
0.0294189453125,
-0.032440185546875,
-0.055908203125,
-0.09979248046875,
-0.00482940673828125,
-0.06005859375,
0.06121826171875,
0.0027790069580078125,
0.01491546630859375,
-0.033905029296875,
0.0328369140625,
0.01190185546875,
0.00925445556640625,
0.0294036865234375,
0.00007814168930053711,
0.064208984375,
-0.006622314453125,
0.0179290771484375,
-0.01715087890625,
0.0042572021484375,
-0.00876617431640625,
-0.025970458984375,
-0.00902557373046875,
-0.044281005859375,
-0.0555419921875,
-0.0017843246459960938,
-0.033203125,
-0.048858642578125,
-0.02093505859375,
-0.020050048828125,
-0.0084075927734375,
-0.0140533447265625,
-0.00405120849609375,
0.0001156926155090332,
-0.055572509765625,
0.030792236328125,
0.004642486572265625,
-0.0268707275390625,
0.01192474365234375,
0.0528564453125,
0.0164031982421875,
-0.01541900634765625,
-0.056884765625,
-0.0129547119140625,
0.0087738037109375,
-0.0176239013671875,
0.0931396484375,
0.035003662109375,
0.009521484375,
0.038238525390625,
-0.0161285400390625,
-0.032379150390625,
-0.0261077880859375,
0.040130615234375,
-0.00799560546875,
-0.0172882080078125,
-0.005390167236328125,
-0.042999267578125,
0.07525634765625,
0.025634765625,
-0.037750244140625,
-0.00614166259765625,
-0.02777099609375,
0.025390625,
-0.016754150390625,
0.0367431640625,
-0.021759033203125,
-0.0171051025390625,
-0.007205963134765625,
0.01544952392578125,
0.056182861328125,
0.064453125,
-0.026641845703125,
0.05914306640625,
0.07379150390625,
-0.0157012939453125,
0.035491943359375,
0.04595947265625,
-0.01348876953125,
0.03790283203125,
-0.007434844970703125,
-0.021697998046875,
0.0020656585693359375,
0.0083770751953125,
0.0198974609375,
-0.0210418701171875,
-0.04278564453125,
-0.026763916015625,
-0.0298919677734375,
-0.021942138671875,
0.0222015380859375,
0.01407623291015625,
0.03582763671875,
-0.005733489990234375,
-0.061431884765625,
-0.005458831787109375,
0.023773193359375,
-0.05914306640625,
-0.055938720703125,
-0.0278472900390625,
-0.031005859375,
-0.00771331787109375,
0.006732940673828125,
0.0338134765625,
-0.01995849609375,
0.0246734619140625,
-0.007061004638671875,
-0.007110595703125,
-0.0233154296875,
0.028717041015625,
0.03271484375,
-0.0279541015625,
0.0181732177734375,
-0.031768798828125,
0.02130126953125,
-0.0172271728515625,
-0.032470703125,
-0.00618743896484375,
0.01434326171875,
-0.018768310546875,
0.0088958740234375,
0.03179931640625,
0.0015802383422851562,
-0.0404052734375,
0.058563232421875,
0.0236053466796875,
-0.05059814453125,
-0.043914794921875,
0.0269622802734375,
0.049530029296875,
0.0234832763671875,
-0.032470703125,
0.00472259521484375,
-0.0301055908203125,
0.0185699462890625,
-0.0011186599731445312,
-0.039794921875,
0.031768798828125,
0.0158233642578125,
-0.006000518798828125,
-0.016510009765625,
0.00677490234375,
-0.06732177734375,
-0.01004791259765625,
-0.027862548828125,
-0.02374267578125,
0.07879638671875,
-0.018829345703125,
0.002529144287109375,
-0.03173828125,
0.01535797119140625,
-0.015625,
0.0288848876953125,
0.0146026611328125,
0.0116424560546875,
-0.036529541015625,
-0.04241943359375,
-0.0960693359375,
-0.022674560546875,
-0.036529541015625,
-0.034423828125,
0.0065765380859375,
0.03082275390625,
0.00743865966796875,
0.01207733154296875,
0.01503753662109375,
0.00695037841796875,
0.004726409912109375,
0.0413818359375,
0.0012569427490234375,
0.08740234375,
-0.0010814666748046875,
0.090087890625,
-0.020263671875,
0.0452880859375,
-0.00479888916015625,
0.0242156982421875,
-0.0264434814453125,
-0.006351470947265625,
-0.0037937164306640625,
0.00714874267578125,
0.004947662353515625,
-0.01837158203125,
0.052734375,
-0.0272979736328125,
-0.0009474754333496094,
-0.006076812744140625,
0.0097808837890625,
0.0007829666137695312,
0.01186370849609375,
-0.0213470458984375,
-0.016082763671875,
-0.01183319091796875,
-0.0172882080078125,
0.0025272369384765625,
-0.031524658203125,
-0.006214141845703125,
-0.000255584716796875,
-0.0245819091796875,
0.038482666015625,
-0.00589752197265625,
-0.0017843246459960938,
0.04052734375,
-0.0296478271484375,
0.058990478515625,
0.06982421875,
-0.002399444580078125,
0.04541015625,
0.026824951171875,
0.004108428955078125,
0.016876220703125,
0.0167083740234375,
0.0036029815673828125,
0.016754150390625,
0.032867431640625,
0.005809783935546875,
0.0325927734375,
0.022552490234375,
0.01136016845703125,
0.01427459716796875,
0.044036865234375,
0.060943603515625,
-0.060699462890625,
0.00844573974609375,
0.0265045166015625,
-0.0167388916015625,
-0.0208892822265625,
-0.01983642578125,
0.01204681396484375,
-0.08001708984375,
0.071533203125,
-0.015594482421875,
0.001926422119140625,
0.0186004638671875,
-0.0633544921875,
-0.01030731201171875,
-0.03778076171875,
0.0673828125,
0.0192413330078125,
0.0259857177734375,
0.0004425048828125,
-0.0430908203125,
0.017852783203125,
-0.00948333740234375,
0.0247650146484375,
-0.0330810546875,
0.01377105712890625,
-0.021820068359375,
0.001781463623046875,
-0.0220184326171875,
0.0009341239929199219,
0.02392578125,
0.046905517578125,
0.019989013671875,
0.072998046875,
-0.00838470458984375,
-0.0033054351806640625,
0.04107666015625,
-0.0015668869018554688,
-0.0609130859375,
-0.02392578125,
0.01336669921875,
0.004772186279296875,
-0.03564453125,
0.023101806640625,
-0.041595458984375,
-0.01409912109375,
0.0205078125,
0.052154541015625,
0.06536865234375,
-0.00894927978515625,
-0.048309326171875,
0.026031494140625,
-0.01453399658203125,
-0.0103759765625,
0.01361846923828125,
0.055206298828125,
-0.0204925537109375,
-0.002330780029296875,
0.0229339599609375,
-0.01611328125,
-0.04364013671875,
0.005138397216796875,
-0.056884765625,
0.08673095703125,
0.005168914794921875,
0.0276947021484375,
0.01468658447265625,
0.0345458984375,
-0.0220947265625,
0.0126190185546875,
-0.035125732421875,
0.0238037109375,
0.0111236572265625,
0.016357421875,
-0.045928955078125,
-0.00385284423828125,
-0.016357421875,
0.0202178955078125,
0.0180816650390625,
0.01140594482421875,
-0.0293731689453125,
0.0011472702026367188,
0.0171966552734375,
0.0018129348754882812,
-0.0168304443359375,
0.056976318359375,
0.01751708984375,
-0.0035686492919921875,
0.0207977294921875,
-0.0092620849609375,
0.03753662109375,
-0.07342529296875,
-0.0036411285400390625,
0.0259857177734375,
0.0098419189453125,
0.0083160400390625,
-0.00047469139099121094,
-0.0272369384765625,
-0.0057373046875,
-0.00344085693359375,
0.0171966552734375,
-0.058746337890625,
-0.0404052734375,
0.040283203125,
0.0055389404296875,
-0.0240325927734375,
0.0116424560546875,
-0.0439453125,
0.0305938720703125,
0.023681640625,
-0.04010009765625,
0.0091094970703125,
0.0124664306640625,
-0.068359375,
0.007114410400390625,
-0.0076446533203125,
0.03668212890625,
-0.0426025390625,
0.02557373046875,
0.025115966796875,
-0.0006227493286132812,
-0.0063018798828125,
0.04296875,
0.023223876953125,
0.01302337646484375,
-0.038330078125,
-0.046142578125,
0.01544952392578125,
0.00157928466796875,
0.0037899017333984375,
0.02032470703125,
-0.005199432373046875,
0.0361328125,
0.05242919921875,
-0.0193023681640625,
-0.034759521484375,
-0.0273284912109375,
0.0301361083984375,
-0.021392822265625,
-0.0178070068359375,
0.037933349609375,
-0.042694091796875,
-0.032257080078125,
-0.00383758544921875,
0.03173828125,
0.045501708984375,
0.0035305023193359375,
0.035980224609375,
0.007236480712890625,
-0.0015020370483398438,
-0.06854248046875,
0.0259552001953125,
-0.036163330078125,
0.0989990234375,
-0.08624267578125,
-0.00119781494140625,
0.009185791015625,
0.0660400390625,
0.02178955078125,
0.024993896484375,
-0.0033130645751953125,
-0.002532958984375,
0.05767822265625,
0.0085906982421875,
0.0187225341796875,
-0.0000902414321899414,
-0.0338134765625,
-0.043060302734375,
0.004150390625,
0.001773834228515625,
0.0188140869140625,
0.0033969879150390625,
0.033172607421875,
0.0201263427734375,
0.00458526611328125,
0.01531219482421875,
0.016326904296875,
-0.035675048828125,
-0.00948333740234375,
0.016998291015625,
0.04522705078125,
0.038818359375,
-0.0762939453125,
-0.00606536865234375,
-0.0023136138916015625,
-0.004535675048828125,
0.0026760101318359375,
0.032012939453125,
-0.0264892578125,
0.03912353515625,
0.031890869140625,
0.0206146240234375,
0.0160980224609375,
-0.02294921875,
0.012420654296875,
0.03363037109375,
0.031463623046875,
0.0285186767578125,
-0.007030487060546875,
0.002468109130859375,
0.04449462890625,
0.00435638427734375,
-0.0248260498046875,
0.06707763671875,
-0.0194854736328125,
-0.0195465087890625,
0.0136260986328125,
0.01274871826171875,
-0.027374267578125,
-0.01180267333984375,
0.0220184326171875,
-0.01141357421875,
0.019287109375,
-0.004688262939453125,
-0.10260009765625,
0.00757598876953125,
0.04052734375,
0.03228759765625,
0.006221771240234375,
0.015838623046875,
0.029571533203125,
0.012451171875,
-0.0168304443359375,
-0.03558349609375,
-0.05401611328125,
-0.00318145751953125,
0.0364990234375,
-0.022613525390625,
-0.006992340087890625,
-0.0112457275390625,
0.056304931640625,
-0.005706787109375,
-0.0227813720703125,
0.00370025634765625,
-0.049652099609375,
-0.00817108154296875,
0.03179931640625,
-0.006267547607421875,
-0.003265380859375,
-0.004268646240234375,
-0.002841949462890625,
0.0223236083984375,
0.0076904296875,
0.005565643310546875,
0.0190887451171875,
0.0103912353515625,
0.02978515625,
0.01129913330078125,
0.01134490966796875,
-0.04534912109375,
0.0002892017364501953,
0.0633544921875,
-0.004547119140625,
-0.0127105712890625,
-0.0268707275390625,
-0.0242919921875,
-0.061187744140625,
-0.005733489990234375,
0.01108551025390625,
-0.0273284912109375,
-0.0369873046875,
-0.0211944580078125,
0.0221099853515625,
0.0020751953125,
-0.0058746337890625,
-0.05401611328125,
0.069091796875,
-0.03765869140625,
0.0006427764892578125,
-0.01953125,
0.052581787109375,
-0.0067901611328125,
0.0209503173828125,
-0.04669189453125,
0.0227813720703125,
-0.0218963623046875,
-0.00913238525390625,
0.002895355224609375,
0.0183563232421875,
0.0274658203125,
-0.0303955078125,
-0.034515380859375,
-0.0041046142578125,
0.0175323486328125,
0.025726318359375,
0.0296783447265625,
0.0011959075927734375,
0.0246124267578125,
0.0187835693359375,
-0.036712646484375,
-0.04852294921875,
0.0129852294921875,
-0.01214599609375,
0.01114654541015625,
0.005268096923828125,
0.0024356842041015625,
0.032073974609375,
-0.038848876953125,
-0.1016845703125,
-0.039642333984375,
0.0134429931640625,
-0.06561279296875,
0.014404296875,
0.033966064453125,
-0.005126953125,
-0.01397705078125,
-0.00910186767578125,
0.0128021240234375,
0.029296875,
-0.00908660888671875,
0.00930023193359375,
0.03448486328125,
0.0452880859375,
-0.0015277862548828125,
-0.024993896484375,
-0.013275146484375,
-0.02984619140625,
0.0101165771484375,
0.0028476715087890625,
-0.0086669921875,
0.017425537109375,
0.026519775390625,
-0.0264739990234375,
-0.0281829833984375,
-0.0035190582275390625,
0.01053619384765625,
-0.00653839111328125,
-0.0224456787109375,
-0.0236053466796875,
-0.0009112358093261719,
0.07110595703125,
0.06719970703125,
0.0014209747314453125,
-0.029449462890625,
-0.0131683349609375,
-0.02008056640625,
-0.04913330078125,
-0.003833770751953125,
0.0226287841796875,
-0.060302734375,
0.00782012939453125,
0.00836944580078125,
-0.023681640625,
-0.0213775634765625,
0.0309600830078125,
-0.052490234375,
0.004352569580078125,
-0.036041259765625,
-0.0225830078125,
-0.05291748046875,
-0.01397705078125,
0.048675537109375,
-0.04248046875,
-0.004974365234375,
0.0086822509765625,
0.01113128662109375,
0.01438140869140625,
0.0135345458984375,
0.02435302734375,
-0.0014181137084960938,
-0.055938720703125,
0.0037708282470703125,
-0.0106658935546875,
0.03857421875,
-0.0246124267578125,
-0.0428466796875,
0.0211334228515625,
-0.0182342529296875,
-0.029754638671875,
-0.03985595703125,
0.01328277587890625,
0.0287322998046875,
-0.04412841796875,
0.08038330078125,
0.02587890625,
0.04718017578125,
0.0096435546875,
0.0335693359375,
0.048095703125,
-0.057098388671875,
0.0584716796875,
-0.0625,
-0.011260986328125,
0.030914306640625,
-0.0233612060546875,
-0.055267333984375,
-0.0005316734313964844,
-0.033843994140625,
0.03558349609375,
0.004253387451171875
] |
6485f7d5ac45737a6f8095aa3c7bc1df678ee6ea | Wordpress Stackexchange
Q: How to change text size of Gutenberg editor Is there a setting in WordPress Gutenberg editor to change the font size of the text we type while writing posts? I mean the text size inside the editor itself, not the published text that blog visitors view.
A: If you came here, like me, looking for how to adjust the available text size options within Gutenberg, you can add this code to your theme's functions.php file (you can add as many options as you like):
add_theme_support(
'editor-font-sizes',
array(
array(
'name' => __( 'Normal', 'your-theme-text-domain' ),
'shortName' => __( 'N', 'your-theme-text-domain' ),
'size' => 14,
'slug' => 'normal'
),
array(
'name' => __( 'Medium', 'your-theme-text-domain' ),
'shortName' => __( 'M', 'your-theme-text-domain' ),
'size' => 16,
'slug' => 'medium'
)
)
);
This gives the following result within the Gutenberg editor:
You can add add_theme_support( 'disable-custom-font-sizes' ); to your functions.php to remove the numerical input, although the "Custom" option will still be visible in the dropdown.
| Q: How to change text size of Gutenberg editor Is there a setting in WordPress Gutenberg editor to change the font size of the text we type while writing posts? I mean the text size inside the editor itself, not the published text that blog visitors view.
A: If you came here, like me, looking for how to adjust the available text size options within Gutenberg, you can add this code to your theme's functions.php file (you can add as many options as you like):
add_theme_support(
'editor-font-sizes',
array(
array(
'name' => __( 'Normal', 'your-theme-text-domain' ),
'shortName' => __( 'N', 'your-theme-text-domain' ),
'size' => 14,
'slug' => 'normal'
),
array(
'name' => __( 'Medium', 'your-theme-text-domain' ),
'shortName' => __( 'M', 'your-theme-text-domain' ),
'size' => 16,
'slug' => 'medium'
)
)
);
This gives the following result within the Gutenberg editor:
You can add add_theme_support( 'disable-custom-font-sizes' ); to your functions.php to remove the numerical input, although the "Custom" option will still be visible in the dropdown.
A: Just click on the settings/cog icon on the right hand side when you are editing paragraph. Then choose Block. You should then see the option to edit font size. You can choose from dropdown menu or type the font size you want.
Hope this helps. :)
A: When we change the paragraph font size in Gutenberg via the block text settings, it will be added inline like:
<p style="font-size:18px">Lorem Ipsum</p>
If we are frequently changing the font-size (or other formatting) like that, it's easy to imagine the state of the content in few years, where most of the content formatting is hard coded.
It could e.g. override the formatting from a new theme if we decide to switch to a new theme later on.
So I would suggest using it with care.
An alternative could be to target the formatting via unobtrusive CSS.
If that's not possible one could then consider adding custom target CSS classes via the Advanced Gutenberg block setting:
that will generate a class attribute like:
<p class="some__custom--class">Lorem Ipsum</p>
where we define the CSS class in the corresponding stylesheet.
A: I had same question how to change heading font size in Editor, just found myself:
PS: This is a generic solution for any WP customization:
*
*While in editor, using e.g. Firefox "inspect element", select the
element(any text or heading) you want to change;
*In the middle column, it will point to the setting css file, e.g.
editor-style.css, it gives also the line number;
*Go [SIDE MENU]Appearance => Theme Editor => select the css setting file, change the font size, and update the css setting file.
*That's it!
For your case, it is to change editor-blocks.css:
.edit-post-visual-editor .editor-block-list__block,
.edit-post-visual-editor .editor-block-list__block p,
.editor-default-block-appender textarea.editor-default-block-appender__content {
font-size: 16px; /* change to your font size */
}
| wordpress | {
"language": "en",
"length": 462,
"provenance": "stackexchange_00019.jsonl.gz:491116",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/321370"
} | [
-0.086181640625,
-0.022186279296875,
-0.013519287109375,
0.10357666015625,
-0.06817626953125,
-0.0129547119140625,
0.037994384765625,
-0.02850341796875,
-0.0220947265625,
0.0518798828125,
-0.006084442138671875,
0.01016998291015625,
0.01078033447265625,
-0.018402099609375,
-0.0158843994140625,
-0.017669677734375,
0.0282135009765625,
0.01136016845703125,
0.043853759765625,
0.00998687744140625,
-0.00323486328125,
0.0421142578125,
-0.004734039306640625,
0.07025146484375,
0.0002448558807373047,
-0.016998291015625,
0.1043701171875,
-0.023681640625,
0.007015228271484375,
-0.0355224609375,
0.0221710205078125,
-0.01019287109375,
0.0014333724975585938,
-0.00115203857421875,
0.017547607421875,
0.0226287841796875,
0.0330810546875,
-0.01239013671875,
0.01214599609375,
0.0292205810546875,
0.057861328125,
-0.0302276611328125,
-0.015716552734375,
0.0026760101318359375,
-0.0165252685546875,
-0.023651123046875,
0.045867919921875,
-0.04107666015625,
0.00927734375,
0.0097503662109375,
-0.032806396484375,
0.044677734375,
-0.004543304443359375,
-0.0271759033203125,
0.0004153251647949219,
-0.024566650390625,
-0.0389404296875,
0.0924072265625,
0.0083465576171875,
-0.014892578125,
-0.01346588134765625,
0.039093017578125,
0.007537841796875,
0.024017333984375,
0.0296173095703125,
-0.00818634033203125,
0.03375244140625,
0.0263671875,
0.011566162109375,
0.0254669189453125,
0.00005608797073364258,
-0.0025539398193359375,
0.001720428466796875,
-0.08721923828125,
-0.01160430908203125,
0.0517578125,
-0.040802001953125,
-0.053192138671875,
0.0259552001953125,
-0.05035400390625,
0.0318603515625,
0.009796142578125,
0.004505157470703125,
-0.01275634765625,
0.01261138916015625,
-0.0066680908203125,
-0.0047454833984375,
-0.016815185546875,
-0.0279541015625,
-0.0037841796875,
-0.0101776123046875,
-0.031951904296875,
-0.0367431640625,
0.04718017578125,
-0.007167816162109375,
-0.01280975341796875,
-0.0147247314453125,
-0.032379150390625,
0.03515625,
0.032440185546875,
0.0255279541015625,
-0.0684814453125,
0.0802001953125,
-0.023529052734375,
0.014678955078125,
0.031829833984375,
-0.0394287109375,
0.047027587890625,
0.0738525390625,
0.0311737060546875,
0.039794921875,
-0.0181427001953125,
-0.02349853515625,
-0.01267242431640625,
0.01477813720703125,
0.0034275054931640625,
-0.04571533203125,
0.033843994140625,
-0.00484466552734375,
0.0117950439453125,
0.00928497314453125,
0.044769287109375,
0.039825439453125,
-0.055572509765625,
-0.0274505615234375,
-0.0404052734375,
-0.0212554931640625,
-0.05029296875,
-0.0092010498046875,
0.01503753662109375,
-0.0271759033203125,
0.01544952392578125,
0.061187744140625,
0.057891845703125,
0.020416259765625,
-0.01502227783203125,
0.006256103515625,
-0.0175933837890625,
-0.022674560546875,
0.0286102294921875,
-0.038604736328125,
-0.023590087890625,
0.01039886474609375,
-0.058624267578125,
-0.0270843505859375,
0.0029468536376953125,
0.0195465087890625,
0.0200042724609375,
-0.034912109375,
-0.068359375,
0.024658203125,
-0.00736236572265625,
0.058074951171875,
0.0156402587890625,
-0.0550537109375,
-0.01082611083984375,
0.036407470703125,
-0.0350341796875,
-0.03955078125,
-0.06463623046875,
-0.01555633544921875,
-0.0215606689453125,
0.0137786865234375,
-0.0131683349609375,
-0.0291748046875,
0.019134521484375,
-0.00231170654296875,
0.0028438568115234375,
0.01751708984375,
-0.0489501953125,
0.01195526123046875,
0.0063629150390625,
0.0128936767578125,
-0.05145263671875,
-0.02886962890625,
-0.01837158203125,
-0.0240325927734375,
0.0236358642578125,
0.0152587890625,
0.0179443359375,
0.007724761962890625,
-0.016448974609375,
0.032958984375,
0.0020599365234375,
0.004852294921875,
-0.0279083251953125,
-0.0008082389831542969,
0.0263214111328125,
0.036712646484375,
0.045074462890625,
-0.06536865234375,
-0.0247802734375,
-0.0570068359375,
0.0009136199951171875,
-0.037353515625,
0.0244293212890625,
-0.0187835693359375,
0.0209503173828125,
-0.0200347900390625,
0.0213165283203125,
0.045440673828125,
-0.0252685546875,
0.035125732421875,
-0.039794921875,
-0.09326171875,
0.0193634033203125,
-0.03546142578125,
0.051300048828125,
0.003681182861328125,
-0.028045654296875,
-0.0004887580871582031,
-0.051177978515625,
0.007213592529296875,
-0.003635406494140625,
-0.041290283203125,
0.02215576171875,
0.00567626953125,
0.028045654296875,
-0.00262451171875,
0.01328277587890625,
0.0104522705078125,
-0.01629638671875,
-0.0059661865234375,
0.036865234375,
0.0274505615234375,
-0.0259246826171875,
-0.0019550323486328125,
-0.0292816162109375,
0.032562255859375,
0.00008124113082885742,
-0.01497650146484375,
0.0103302001953125,
0.01160430908203125,
0.00962066650390625,
-0.0016345977783203125,
0.0058135986328125,
0.0321044921875,
-0.0670166015625,
0.01480865478515625,
0.0254058837890625,
0.03424072265625,
0.0033626556396484375,
-0.00592803955078125,
-0.0192718505859375,
0.030120849609375,
0.02593994140625,
0.047027587890625,
-0.04681396484375,
0.01192474365234375,
0.0140228271484375,
-0.010650634765625,
-0.00250244140625,
0.0311279296875,
-0.0452880859375,
0.04046630859375,
0.03875732421875,
0.003253936767578125,
0.0026454925537109375,
-0.01373291015625,
0.02764892578125,
0.00021910667419433594,
0.051483154296875,
0.0012502670288085938,
0.00537872314453125,
0.0215606689453125,
0.0100250244140625,
0.0265350341796875,
0.0364990234375,
-0.045623779296875,
0.0160675048828125,
0.021240234375,
0.0247802734375,
0.00122833251953125,
-0.024322509765625,
-0.00838470458984375,
-0.0241546630859375,
-0.0268096923828125,
0.0232696533203125,
0.0143890380859375,
-0.04034423828125,
-0.041534423828125,
-0.018890380859375,
-0.08306884765625,
-0.0157318115234375,
0.01082611083984375,
-0.05023193359375,
-0.0046539306640625,
-0.0225372314453125,
0.016632080078125,
0.004650115966796875,
0.0182342529296875,
0.023681640625,
0.0020599365234375,
0.01058197021484375,
0.040069580078125,
-0.020050048828125,
0.0810546875,
-0.059478759765625,
0.05059814453125,
-0.01305389404296875,
0.08843994140625,
0.072509765625,
-0.032684326171875,
0.024749755859375,
0.0012302398681640625,
-0.025115966796875,
-0.021026611328125,
0.013397216796875,
-0.00992584228515625,
-0.00923919677734375,
-0.0533447265625,
0.018524169921875,
0.005184173583984375,
-0.042205810546875,
0.01172637939453125,
0.0057220458984375,
-0.033050537109375,
0.004119873046875,
-0.01222991943359375,
0.054351806640625,
-0.0280303955078125,
-0.08868408203125,
-0.05548095703125,
-0.0039825439453125,
-0.07073974609375,
0.0411376953125,
0.0127410888671875,
-0.006458282470703125,
0.0089569091796875,
-0.0236663818359375,
-0.0399169921875,
-0.031646728515625,
-0.05718994140625,
-0.0149688720703125,
0.0011749267578125,
-0.006591796875,
-0.001434326171875,
0.013336181640625,
-0.01081085205078125,
-0.021636962890625,
-0.0179443359375,
0.007289886474609375,
-0.0140838623046875,
-0.03900146484375,
0.058135986328125,
-0.0751953125,
0.00304412841796875,
0.00498199462890625,
0.037750244140625,
0.03118896484375,
-0.029022216796875,
-0.0027370452880859375,
-0.0035858154296875,
-0.02703857421875,
0.006572723388671875,
0.048248291015625,
-0.00801849365234375,
-0.0173492431640625,
0.0222320556640625,
-0.05389404296875,
-0.023193359375,
0.0100555419921875,
-0.022796630859375,
0.04852294921875,
-0.00922393798828125,
0.0082550048828125,
0.0006074905395507812,
0.061370849609375,
0.0136566162109375,
0.01226043701171875,
0.039886474609375,
-0.01079559326171875,
0.01019287109375,
0.0013418197631835938,
-0.01543426513671875,
-0.0469970703125,
-0.00316619873046875,
-0.0240478515625,
0.07952880859375,
0.0124359130859375,
0.04315185546875,
0.012786865234375,
0.006763458251953125,
-0.033538818359375,
-0.065673828125,
0.05255126953125,
-0.03955078125,
-0.0011568069458007812,
-0.01873779296875,
-0.04522705078125,
0.0380859375,
0.10015869140625,
-0.004062652587890625,
-0.019439697265625,
0.005035400390625,
0.019134521484375,
-0.0372314453125,
-0.0253753662109375,
-0.03228759765625,
0.00659942626953125,
-0.04095458984375,
0.04376220703125,
0.01214599609375,
-0.01102447509765625,
-0.03497314453125,
0.0479736328125,
-0.054351806640625,
-0.0036773681640625,
0.0213165283203125,
-0.03765869140625,
0.005084991455078125,
0.047882080078125,
-0.023834228515625,
0.0173797607421875,
-0.00833892822265625,
-0.059967041015625,
-0.0665283203125,
-0.01352691650390625,
-0.033447265625,
0.0687255859375,
0.01425933837890625,
-0.0007352828979492188,
-0.00450897216796875,
0.060638427734375,
0.035491943359375,
0.015106201171875,
0.034423828125,
-0.0231781005859375,
0.03717041015625,
0.017730712890625,
0.02947998046875,
-0.021636962890625,
0.017669677734375,
0.0031299591064453125,
-0.071044921875,
0.04388427734375,
0.00424957275390625,
0.0205230712890625,
0.0576171875,
-0.0447998046875,
-0.049072265625,
-0.033203125,
-0.06793212890625,
-0.006961822509765625,
-0.0216217041015625,
-0.0156707763671875,
-0.045318603515625,
-0.06658935546875,
0.06842041015625,
0.03363037109375,
0.00534820556640625,
-0.0016994476318359375,
0.06512451171875,
0.00041103363037109375,
-0.034698486328125,
-0.03570556640625,
-0.044097900390625,
0.0214385986328125,
0.052001953125,
0.003444671630859375,
-0.01071929931640625,
-0.0093994140625,
0.040191650390625,
0.01471710205078125,
-0.0069122314453125,
-0.037078857421875,
0.0919189453125,
-0.0184478759765625,
0.0009279251098632812,
0.006458282470703125,
-0.048736572265625,
0.025238037109375,
0.0113983154296875,
0.000713348388671875,
-0.01514434814453125,
0.02288818359375,
0.03240966796875,
-0.01074981689453125,
0.0178375244140625,
-0.01163482666015625,
-0.01052093505859375,
-0.0019044876098632812,
0.004840850830078125,
0.041717529296875,
0.0035076141357421875,
0.01004791259765625,
0.003978729248046875,
0.035003662109375,
-0.012725830078125,
0.00525665283203125,
-0.01209259033203125,
-0.01476287841796875,
0.0130462646484375,
-0.00821685791015625,
-0.02239990234375,
0.00803375244140625,
0.01116943359375,
0.0238037109375,
0.0010042190551757812,
-0.0296478271484375,
-0.052978515625,
-0.0069427490234375,
0.0172271728515625,
-0.01220703125,
0.006389617919921875,
0.033905029296875,
0.002834320068359375,
-0.0180511474609375,
-0.00531768798828125,
0.0128631591796875,
-0.036407470703125,
-0.047027587890625,
-0.03326416015625,
-0.0002968311309814453,
-0.034820556640625,
0.033477783203125,
-0.01422119140625,
0.0025634765625,
-0.001964569091796875,
-0.0019521713256835938,
0.01380157470703125,
0.007785797119140625,
-0.0013971328735351562,
0.0271453857421875,
0.022552490234375,
0.005184173583984375,
-0.040679931640625,
0.00434112548828125,
-0.006404876708984375,
-0.0307159423828125,
-0.0107421875,
0.005596160888671875,
-0.034271240234375,
0.004852294921875,
0.049468994140625,
0.01995849609375,
0.019256591796875,
0.0160369873046875,
0.0031261444091796875,
-0.042877197265625,
0.0006937980651855469,
0.01415252685546875,
0.0165252685546875,
-0.0258941650390625,
-0.018646240234375,
-0.0290679931640625,
-0.0458984375,
-0.0019588470458984375,
-0.018341064453125,
-0.0179290771484375,
-0.00926971435546875,
-0.035369873046875,
-0.0433349609375,
0.005474090576171875,
-0.0004489421844482422,
-0.072998046875,
-0.0728759765625,
0.0164031982421875,
-0.00763702392578125,
0.03350830078125,
-0.0218658447265625,
-0.0020999908447265625,
-0.0255126953125,
0.005893707275390625,
-0.02923583984375,
0.0278167724609375,
0.01270294189453125,
-0.003231048583984375,
-0.004085540771484375,
-0.0233917236328125,
-0.032928466796875,
-0.0169219970703125,
-0.013702392578125,
-0.028656005859375,
-0.003574371337890625,
-0.021331787109375,
0.00799560546875,
0.00803375244140625,
0.009124755859375,
-0.0306243896484375,
-0.027313232421875,
0.0308837890625,
0.0271148681640625,
0.036376953125,
-0.0195465087890625,
0.0137786865234375,
0.01143646240234375,
0.0235443115234375,
-0.0235595703125,
-0.0076446533203125,
0.0285186767578125,
-0.024169921875,
-0.00440216064453125,
0.01222991943359375,
-0.01146697998046875,
-0.00226593017578125,
0.00824737548828125,
-0.0022335052490234375,
0.023529052734375,
0.0030994415283203125,
0.006908416748046875,
-0.0166015625,
-0.006011962890625,
-0.032623291015625,
0.0477294921875,
-0.04010009765625,
0.004787445068359375,
-0.01268768310546875,
-0.03271484375,
0.00010967254638671875,
0.0238037109375,
-0.02337646484375,
0.0386962890625,
-0.00380706787109375,
0.0025806427001953125,
0.0426025390625,
-0.0176849365234375,
0.00658416748046875,
0.0263824462890625,
-0.008819580078125,
0.00443267822265625,
0.0169830322265625,
-0.00836181640625,
-0.0005421638488769531,
-0.0171051025390625,
-0.0350341796875,
0.043548583984375,
-0.00986480712890625,
-0.015716552734375,
0.027099609375,
-0.0033397674560546875,
0.0265960693359375,
0.0111236572265625,
0.0687255859375,
0.064697265625,
-0.1007080078125,
0.007717132568359375,
0.002086639404296875,
-0.0034732818603515625,
0.031646728515625,
-0.01074981689453125,
-0.01165008544921875,
-0.05682373046875,
0.07177734375,
-0.0198974609375,
-0.00716400146484375,
0.02435302734375,
-0.0005254745483398438,
-0.01332855224609375,
-0.0300140380859375,
0.0260162353515625,
0.007358551025390625,
-0.01505279541015625,
0.021453857421875,
-0.004787445068359375,
0.0238037109375,
-0.0291900634765625,
0.0087890625,
0.0025501251220703125,
-0.0004930496215820312,
-0.06201171875,
-0.00902557373046875,
-0.0129547119140625,
-0.0115203857421875,
-0.00640106201171875,
0.0166473388671875,
0.01113128662109375,
0.06085205078125,
-0.02899169921875,
0.004070281982421875,
0.036468505859375,
-0.00698089599609375,
0.0139923095703125,
-0.02716064453125,
0.01338958740234375,
0.009063720703125,
-0.037841796875,
0.01084136962890625,
-0.0165252685546875,
-0.00867462158203125,
0.005504608154296875,
0.04833984375,
0.08990478515625,
-0.0236663818359375,
-0.041168212890625,
0.05523681640625,
-0.0024127960205078125,
-0.027435302734375,
-0.034942626953125,
0.0281982421875,
-0.04718017578125,
-0.00812530517578125,
-0.0092315673828125,
-0.02093505859375,
-0.0071258544921875,
-0.0421142578125,
-0.039642333984375,
0.11834716796875,
-0.009246826171875,
-0.00753021240234375,
-0.005466461181640625,
0.059967041015625,
-0.024688720703125,
0.052154541015625,
-0.0173797607421875,
0.007171630859375,
-0.018341064453125,
-0.002010345458984375,
-0.0225677490234375,
0.01137542724609375,
-0.0184478759765625,
0.0022945404052734375,
0.010528564453125,
-0.0104217529296875,
-0.04705810546875,
0.0022411346435546875,
0.072509765625,
0.083984375,
0.040252685546875,
0.00666046142578125,
-0.013763427734375,
-0.01885986328125,
-0.00977325439453125,
0.010345458984375,
0.0287933349609375,
-0.016387939453125,
-0.057647705078125,
0.01287841796875,
0.003040313720703125,
0.01120758056640625,
0.0003256797790527344,
0.0038585662841796875,
0.03314208984375,
-0.0162506103515625,
-0.0018329620361328125,
-0.029052734375,
-0.0079193115234375,
0.056243896484375,
0.0654296875,
-0.052734375,
-0.01617431640625,
-0.02850341796875,
0.042449951171875,
0.02301025390625,
-0.015106201171875,
-0.00002205371856689453,
-0.0015096664428710938,
-0.00011289119720458984,
-0.007358551025390625,
-0.0053558349609375,
0.04217529296875,
-0.01357269287109375,
0.01318359375,
-0.036773681640625,
-0.023529052734375,
-0.049285888671875,
0.044189453125,
0.00009548664093017578,
-0.0003497600555419922,
-0.03765869140625,
-0.01190185546875,
-0.00409698486328125,
-0.0010538101196289062,
0.0087738037109375,
-0.051055908203125,
0.001132965087890625,
-0.003520965576171875,
0.00025391578674316406,
-0.01169586181640625,
-0.011627197265625,
-0.003688812255859375,
0.016265869140625,
-0.0197906494140625,
-0.0027256011962890625,
0.0192718505859375,
-0.0230712890625,
-0.055755615234375,
0.0010881423950195312,
0.007785797119140625,
0.036895751953125,
0.0272674560546875,
0.04833984375,
0.03912353515625,
-0.016571044921875,
-0.0513916015625,
0.0099029541015625,
-0.000013232231140136719,
0.05841064453125,
-0.0099029541015625,
0.052703857421875,
-0.00688934326171875,
0.031463623046875,
0.004795074462890625,
0.0297393798828125,
0.067626953125,
0.047515869140625,
-0.0239105224609375,
-0.0173187255859375,
0.0019512176513671875,
-0.0214996337890625,
-0.03192138671875,
-0.0361328125,
0.003818511962890625,
0.0311126708984375,
0.007404327392578125,
-0.00827789306640625,
0.035400390625,
0.0364990234375,
-0.00130462646484375,
0.00402069091796875,
0.013702392578125,
-0.0199432373046875,
-0.0188446044921875,
0.00629425048828125,
0.007415771484375,
0.03271484375,
-0.032928466796875,
-0.0023479461669921875,
-0.01424407958984375,
-0.0202484130859375,
-0.0034351348876953125,
0.039825439453125,
-0.00022602081298828125,
0.01470184326171875,
0.01154327392578125,
-0.0301971435546875,
0.04833984375,
-0.0168304443359375,
0.032745361328125,
0.06060791015625,
-0.00360107421875,
0.0252685546875,
-0.07080078125,
-0.039703369140625,
0.0161590576171875,
0.022705078125,
-0.04315185546875,
0.100341796875,
-0.01258087158203125,
-0.016265869140625,
0.00835418701171875,
0.00887298583984375,
-0.007656097412109375,
-0.025146484375,
0.047393798828125,
0.0054779052734375,
0.01476287841796875,
-0.027984619140625,
-0.0780029296875,
0.033477783203125,
-0.00006300210952758789,
0.0092315673828125,
0.0297088623046875,
-0.01934814453125,
0.013916015625,
0.00617218017578125,
-0.01094818115234375,
-0.018280029296875,
-0.03851318359375,
0.0118255615234375,
0.0268707275390625,
-0.01558685302734375,
-0.0016078948974609375,
0.0008149147033691406,
0.0650634765625,
-0.0094451904296875,
0.019012451171875,
0.01343536376953125,
-0.031707763671875,
0.033843994140625,
0.027801513671875,
-0.06878662109375,
-0.005237579345703125,
0.00945281982421875,
-0.00942230224609375,
0.0001628398895263672,
0.0208892822265625,
-0.00455474853515625,
0.0284271240234375,
-0.002532958984375,
0.024078369140625,
0.00495147705078125,
0.0350341796875,
-0.0216064453125,
0.0004131793975830078,
0.035736083984375,
-0.00018990039825439453,
-0.0313720703125,
0.03204345703125,
-0.0197601318359375,
-0.0340576171875,
0.0089874267578125,
0.004665374755859375,
0.006011962890625,
-0.022430419921875,
-0.03814697265625,
0.01263427734375,
0.01375579833984375,
-0.00605010986328125,
-0.05804443359375,
0.041229248046875,
-0.01367950439453125,
0.02215576171875,
-0.0002968311309814453,
-0.01241302490234375,
0.019683837890625,
0.049560546875,
-0.0063629150390625,
-0.0504150390625,
-0.030029296875,
0.040008544921875,
-0.04437255859375,
0.0325927734375,
0.0305633544921875,
-0.02435302734375,
0.0273590087890625,
0.0248870849609375,
0.02691650390625,
0.06988525390625,
-0.00910186767578125,
0.006053924560546875,
0.04595947265625,
0.02099609375,
-0.0325927734375,
-0.12274169921875,
-0.007068634033203125,
-0.04388427734375,
0.0528564453125,
-0.012786865234375,
0.0172271728515625,
0.016693115234375,
-0.04833984375,
-0.09765625,
-0.0186767578125,
-0.0106353759765625,
-0.0469970703125,
0.0106048583984375,
-0.0217132568359375,
-0.0230865478515625,
0.048858642578125,
0.011260986328125,
-0.0003058910369873047,
-0.02557373046875,
-0.002079010009765625,
-0.032470703125,
0.032257080078125,
0.006458282470703125,
-0.01007080078125,
-0.037322998046875,
-0.006511688232421875,
-0.0033512115478515625,
-0.0303192138671875,
0.030731201171875,
-0.02874755859375,
0.02685546875,
0.0352783203125,
-0.04498291015625,
-0.043487548828125,
-0.0187835693359375,
-0.0023632049560546875,
-0.0071868896484375,
-0.04400634765625,
-0.00023484230041503906,
0.0011749267578125,
0.044921875,
0.01074981689453125,
-0.01090240478515625,
-0.0311126708984375,
-0.0181427001953125,
0.0077667236328125,
0.0374755859375,
0.01515960693359375,
-0.0217132568359375,
-0.034698486328125,
-0.00894927978515625,
0.0102386474609375,
-0.018585205078125,
0.02374267578125,
-0.0029144287109375,
-0.0318603515625,
0.00415802001953125,
-0.03271484375,
-0.0107269287109375,
-0.06494140625,
-0.0164947509765625,
0.0379638671875,
-0.0274658203125,
-0.007080078125,
0.0098419189453125,
0.009185791015625,
0.009765625,
0.0103759765625,
-0.04193115234375,
-0.034637451171875,
-0.01041412353515625,
0.0428466796875,
-0.035980224609375,
0.0199127197265625,
-0.0318603515625,
0.01337432861328125,
-0.005870819091796875,
-0.0304107666015625,
0.003452301025390625,
-0.039886474609375,
0.0030498504638671875,
-0.018646240234375,
-0.017242431640625,
-0.00015604496002197266,
-0.0016260147094726562,
-0.01189422607421875,
-0.0185699462890625,
0.016815185546875,
-0.00676727294921875,
-0.004730224609375,
-0.01004791259765625,
-0.0232391357421875,
0.0144500732421875,
0.018768310546875,
-0.0030517578125,
-0.02728271484375,
0.0003724098205566406,
0.0206146240234375,
0.0150146484375,
0.006801605224609375
] |
370e570cdcfd2d375aeb640a22b12715a0afb2b5 | Wordpress Stackexchange
Q: How to add button to post page WordPress 5.x How can I add a button to a posts page? what hook can be used to add a custom button
I'd like to place it next to, or near, the "Publish/update" button, or modify the publish button for triggering Pre-publish changes and export content from The new Gutenberg editor Blocks.
other tried approach's.
add button to post edit page when post_status=publish
How to add a button to custom post type's posts-page
| Q: How to add button to post page WordPress 5.x How can I add a button to a posts page? what hook can be used to add a custom button
I'd like to place it next to, or near, the "Publish/update" button, or modify the publish button for triggering Pre-publish changes and export content from The new Gutenberg editor Blocks.
other tried approach's.
add button to post edit page when post_status=publish
How to add a button to custom post type's posts-page
| wordpress | {
"language": "en",
"length": 81,
"provenance": "stackexchange_00019.jsonl.gz:491160",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/321546"
} | [
0.033538818359375,
-0.0008535385131835938,
0.02655029296875,
0.0305023193359375,
0.00453948974609375,
-0.0229339599609375,
0.0592041015625,
-0.049072265625,
-0.0184783935546875,
0.00946807861328125,
0.0171051025390625,
0.0016489028930664062,
-0.0164947509765625,
-0.040679931640625,
0.01247406005859375,
-0.0196533203125,
0.059906005859375,
-0.01117706298828125,
0.07275390625,
0.002262115478515625,
0.01117706298828125,
0.033294677734375,
0.05804443359375,
0.0231170654296875,
0.0106048583984375,
0.01898193359375,
0.0362548828125,
-0.0242462158203125,
0.039306640625,
0.01445770263671875,
0.03662109375,
-0.04541015625,
0.0164031982421875,
0.020355224609375,
-0.0262451171875,
0.0007219314575195312,
-0.0156707763671875,
0.00965118408203125,
-0.01023101806640625,
0.0158538818359375,
0.02142333984375,
-0.0190277099609375,
0.0289459228515625,
0.005672454833984375,
-0.0012407302856445312,
-0.005260467529296875,
0.0133514404296875,
-0.046234130859375,
0.025909423828125,
-0.0176849365234375,
-0.01197052001953125,
0.0029888153076171875,
0.00006097555160522461,
-0.005619049072265625,
-0.006626129150390625,
0.007717132568359375,
-0.025177001953125,
0.0443115234375,
0.03497314453125,
0.029144287109375,
-0.02197265625,
0.00931549072265625,
-0.00748443603515625,
-0.033843994140625,
0.01812744140625,
-0.01183319091796875,
0.0338134765625,
0.00725555419921875,
-0.03436279296875,
0.018798828125,
0.032958984375,
-0.0251922607421875,
0.003429412841796875,
-0.0258941650390625,
0.0015783309936523438,
-0.0202789306640625,
0.0020084381103515625,
-0.0295257568359375,
0.001544952392578125,
0.0177154541015625,
-0.017822265625,
0.01108551025390625,
0.0126495361328125,
-0.048126220703125,
-0.006500244140625,
-0.04345703125,
-0.0195465087890625,
0.0133209228515625,
-0.0225982666015625,
-0.04083251953125,
-0.0199127197265625,
-0.04388427734375,
-0.044219970703125,
0.0234375,
-0.0024662017822265625,
-0.0146636962890625,
0.006458282470703125,
0.01149749755859375,
0.0033550262451171875,
0.01318359375,
0.01078033447265625,
-0.057342529296875,
0.058074951171875,
-0.03350830078125,
-0.002300262451171875,
-0.0032787322998046875,
-0.0007119178771972656,
0.03472900390625,
0.0494384765625,
0.03704833984375,
-0.017303466796875,
0.01360321044921875,
0.04119873046875,
-0.004657745361328125,
-0.05126953125,
-0.0298919677734375,
0.00047469139099121094,
0.0153656005859375,
0.02227783203125,
0.01220703125,
-0.0007123947143554688,
0.00624847412109375,
-0.01419830322265625,
-0.01824951171875,
0.0019702911376953125,
-0.01485443115234375,
-0.01476287841796875,
0.0003376007080078125,
0.0031185150146484375,
0.005947113037109375,
-0.0455322265625,
0.01422119140625,
0.0928955078125,
0.03680419921875,
0.02032470703125,
-0.0291748046875,
-0.0006361007690429688,
-0.027252197265625,
-0.0123748779296875,
0.01019287109375,
-0.0233001708984375,
-0.03594970703125,
0.0088348388671875,
-0.02093505859375,
0.00247955322265625,
0.004711151123046875,
0.01345062255859375,
0.032318115234375,
0.00159454345703125,
-0.060943603515625,
0.048187255859375,
-0.01580810546875,
0.0158538818359375,
0.006381988525390625,
0.024200439453125,
-0.01432037353515625,
0.0152130126953125,
-0.0129241943359375,
0.0144195556640625,
-0.01427459716796875,
0.032806396484375,
0.004024505615234375,
0.033111572265625,
-0.0035457611083984375,
-0.037445068359375,
0.0015115737915039062,
-0.051971435546875,
-0.00875091552734375,
0.0170135498046875,
0.062347412109375,
-0.00531005859375,
-0.007450103759765625,
-0.0005202293395996094,
-0.01175689697265625,
-0.0323486328125,
-0.01016998291015625,
0.0310211181640625,
-0.02020263671875,
0.01122283935546875,
0.032806396484375,
0.000835418701171875,
-0.0113372802734375,
0.028076171875,
-0.0228424072265625,
-0.06280517578125,
0.04656982421875,
0.0103607177734375,
0.06793212890625,
0.0052337646484375,
0.01085662841796875,
0.0072479248046875,
0.018157958984375,
-0.03192138671875,
0.01904296875,
-0.01422119140625,
-0.002086639404296875,
-0.029998779296875,
0.0037517547607421875,
-0.0212860107421875,
0.01415252685546875,
-0.046173095703125,
0.02423095703125,
-0.0175323486328125,
0.055389404296875,
-0.0027561187744140625,
0.0292816162109375,
-0.00734710693359375,
0.026458740234375,
0.06890869140625,
-0.029205322265625,
-0.0111541748046875,
-0.0256500244140625,
0.055389404296875,
-0.10455322265625,
-0.10302734375,
0.023162841796875,
-0.0161285400390625,
-0.0034885406494140625,
0.0188446044921875,
-0.005794525146484375,
0.0248260498046875,
-0.00995635986328125,
-0.0060577392578125,
-0.0038623809814453125,
0.06494140625,
-0.05438232421875,
-0.01212310791015625,
-0.062408447265625,
0.0022144317626953125,
-0.0021877288818359375,
-0.10028076171875,
0.0670166015625,
0.026336669921875,
-0.01531219482421875,
-0.0189361572265625,
0.02459716796875,
0.033447265625,
-0.0428466796875,
-0.0206756591796875,
0.037994384765625,
0.0185089111328125,
0.01470947265625,
0.012908935546875,
0.047149658203125,
-0.00922393798828125,
-0.00722503662109375,
0.030029296875,
0.0010671615600585938,
0.0231781005859375,
0.08319091796875,
-0.020355224609375,
0.0166473388671875,
0.0018100738525390625,
-0.051513671875,
0.015838623046875,
0.046661376953125,
-0.01313018798828125,
0.0305938720703125,
-0.052032470703125,
-0.01352691650390625,
0.0014495849609375,
-0.057220458984375,
-0.0247650146484375,
-0.036102294921875,
0.0302276611328125,
0.036224365234375,
0.0528564453125,
0.051788330078125,
-0.03515625,
0.013397216796875,
0.0005316734313964844,
-0.00205230712890625,
0.0016736984252929688,
0.004486083984375,
-0.011962890625,
0.030853271484375,
-0.0248260498046875,
0.0035915374755859375,
0.01096343994140625,
0.011383056640625,
-0.0211944580078125,
-0.0189208984375,
-0.01904296875,
-0.0011653900146484375,
0.031585693359375,
-0.053009033203125,
0.01258087158203125,
-0.00218963623046875,
0.019805908203125,
-0.042083740234375,
-0.00809478759765625,
0.007038116455078125,
-0.02716064453125,
0.03643798828125,
0.039764404296875,
-0.0487060546875,
-0.004383087158203125,
-0.06488037109375,
0.041717529296875,
-0.040008544921875,
0.0201416015625,
0.07611083984375,
0.0157623291015625,
0.003795623779296875,
0.015594482421875,
-0.01200103759765625,
-0.0164947509765625,
0.039794921875,
0.01708984375,
-0.014129638671875,
-0.0242767333984375,
0.043182373046875,
0.020233154296875,
0.045562744140625,
-0.035888671875,
-0.048431396484375,
-0.0210418701171875,
0.0001271963119506836,
-0.0980224609375,
-0.068115234375,
0.0125732421875,
-0.0548095703125,
0.019927978515625,
-0.02093505859375,
-0.018402099609375,
-0.0249176025390625,
0.016448974609375,
0.007625579833984375,
-0.091552734375,
0.01320648193359375,
0.024017333984375,
-0.02850341796875,
-0.01183319091796875,
0.01422882080078125,
-0.0036144256591796875,
0.021453857421875,
-0.00440216064453125,
0.0482177734375,
-0.00799560546875,
-0.052764892578125,
-0.0081787109375,
0.0034427642822265625,
-0.004573822021484375,
0.0079498291015625,
0.04815673828125,
-0.050506591796875,
0.01470184326171875,
0.00821685791015625,
0.05035400390625,
0.029022216796875,
-0.03009033203125,
-0.0191802978515625,
-0.04827880859375,
-0.03094482421875,
-0.002925872802734375,
0.01165771484375,
0.03155517578125,
-0.03570556640625,
0.007266998291015625,
-0.056060791015625,
0.00864410400390625,
-0.00008183717727661133,
-0.012359619140625,
-0.0012540817260742188,
-0.03253173828125,
-0.0098419189453125,
0.0142669677734375,
0.01751708984375,
0.031829833984375,
0.0177001953125,
0.03179931640625,
0.02252197265625,
-0.019805908203125,
-0.0026493072509765625,
0.0033931732177734375,
-0.0389404296875,
-0.038543701171875,
-0.0264129638671875,
0.04022216796875,
-0.0192718505859375,
0.020660400390625,
-0.0291595458984375,
0.05426025390625,
-0.037322998046875,
-0.050140380859375,
0.034576416015625,
-0.04266357421875,
-0.0007233619689941406,
-0.0517578125,
-0.0149993896484375,
-0.007732391357421875,
0.07379150390625,
-0.04620361328125,
-0.023193359375,
-0.03033447265625,
-0.0007276535034179688,
0.033721923828125,
-0.0274200439453125,
-0.0024394989013671875,
-0.022247314453125,
-0.006900787353515625,
0.0182342529296875,
-0.00323486328125,
0.019622802734375,
-0.05877685546875,
0.083984375,
-0.028900146484375,
0.001190185546875,
0.051422119140625,
-0.037567138671875,
0.005474090576171875,
0.0416259765625,
-0.015380859375,
0.02001953125,
-0.041595458984375,
-0.01131439208984375,
-0.059722900390625,
0.0054779052734375,
-0.015594482421875,
0.001312255859375,
-0.0037384033203125,
-0.0117645263671875,
-0.034393310546875,
0.0169525146484375,
0.0243072509765625,
0.036865234375,
0.009765625,
0.005046844482421875,
0.040924072265625,
-0.0262451171875,
0.0106048583984375,
-0.0244140625,
0.0199127197265625,
0.0309295654296875,
-0.01056671142578125,
0.058746337890625,
-0.052215576171875,
-0.02984619140625,
0.0010366439819335938,
-0.043975830078125,
-0.0289459228515625,
-0.027984619140625,
0.002384185791015625,
0.028778076171875,
-0.014251708984375,
0.005138397216796875,
-0.039581298828125,
-0.0294342041015625,
0.017425537109375,
0.00365447998046875,
0.00020301342010498047,
0.007350921630859375,
0.049041748046875,
0.00949859619140625,
-0.016632080078125,
-0.04547119140625,
0.00823974609375,
0.0152740478515625,
-0.00847625732421875,
0.03240966796875,
0.028900146484375,
0.01255035400390625,
-0.030242919921875,
-0.0194244384765625,
-0.019073486328125,
-0.049407958984375,
0.0899658203125,
-0.02545166015625,
-0.005977630615234375,
0.01129150390625,
-0.064208984375,
0.060943603515625,
0.002468109130859375,
-0.0416259765625,
0.00661468505859375,
-0.020416259765625,
0.0308685302734375,
-0.03277587890625,
0.0496826171875,
-0.022308349609375,
0.00504302978515625,
-0.001556396484375,
0.0281219482421875,
0.039337158203125,
0.0304107666015625,
0.0033855438232421875,
0.004119873046875,
0.00624847412109375,
-0.0014324188232421875,
0.00919342041015625,
0.01111602783203125,
0.0018558502197265625,
0.027099609375,
0.021331787109375,
-0.0012483596801757812,
-0.0283203125,
0.003108978271484375,
0.021240234375,
0.007843017578125,
-0.03936767578125,
-0.006877899169921875,
0.004512786865234375,
0.014923095703125,
0.001857757568359375,
0.0215911865234375,
0.01532745361328125,
0.01207733154296875,
-0.0157318115234375,
-0.00960540771484375,
0.025360107421875,
-0.01062774658203125,
-0.032867431640625,
-0.04290771484375,
0.0210418701171875,
-0.0290985107421875,
0.046783447265625,
0.00768280029296875,
0.011444091796875,
0.004161834716796875,
-0.01824951171875,
0.0643310546875,
0.043548583984375,
-0.0008826255798339844,
0.0296173095703125,
0.0244903564453125,
-0.01265716552734375,
-0.036041259765625,
-0.0504150390625,
0.003662109375,
-0.00646209716796875,
-0.03961181640625,
0.0025005340576171875,
-0.00664520263671875,
0.0205078125,
0.04803466796875,
-0.026092529296875,
-0.0288543701171875,
0.01465606689453125,
0.0275726318359375,
-0.0240936279296875,
-0.017852783203125,
0.0094146728515625,
0.0115814208984375,
0.03369140625,
-0.0041046142578125,
0.0181884765625,
-0.020294189453125,
0.017181396484375,
-0.0260162353515625,
0.0013322830200195312,
-0.009735107421875,
-0.01183319091796875,
0.0163116455078125,
-0.0134735107421875,
-0.013031005859375,
-0.031341552734375,
-0.0205078125,
-0.01300048828125,
0.0049285888671875,
0.03509521484375,
-0.0172271728515625,
-0.003185272216796875,
-0.0308074951171875,
0.022705078125,
-0.02801513671875,
0.0089874267578125,
0.0323486328125,
0.004856109619140625,
0.004795074462890625,
-0.03558349609375,
-0.0679931640625,
-0.03460693359375,
-0.0280303955078125,
-0.027191162109375,
-0.0256195068359375,
0.01444244384765625,
0.0292205810546875,
0.025604248046875,
-0.0253753662109375,
-0.056610107421875,
-0.049652099609375,
0.02252197265625,
0.057403564453125,
0.06146240234375,
0.024444580078125,
0.068359375,
-0.048919677734375,
0.0882568359375,
0.0170440673828125,
0.0272369384765625,
-0.03021240234375,
-0.038177490234375,
-0.0017442703247070312,
-0.017303466796875,
-0.019805908203125,
-0.00310516357421875,
0.019195556640625,
0.0025157928466796875,
0.01190948486328125,
-0.0037937164306640625,
0.03271484375,
-0.04534912109375,
-0.003070831298828125,
-0.01910400390625,
0.03387451171875,
-0.06793212890625,
-0.034271240234375,
0.07440185546875,
0.007526397705078125,
0.046783447265625,
0.0013227462768554688,
0.0198974609375,
-0.0321044921875,
-0.00616455078125,
-0.0100555419921875,
-0.0187530517578125,
-0.0362548828125,
0.034332275390625,
0.049163818359375,
0.027618408203125,
0.050201416015625,
0.0149993896484375,
0.031951904296875,
-0.0033245086669921875,
0.0208282470703125,
-0.062286376953125,
-0.0257415771484375,
0.04254150390625,
0.014984130859375,
-0.039703369140625,
0.04400634765625,
-0.0235748291015625,
0.01885986328125,
0.047119140625,
0.049407958984375,
-0.08111572265625,
0.01215362548828125,
-0.015625,
-0.018585205078125,
0.050933837890625,
-0.018646240234375,
0.021514892578125,
-0.0193328857421875,
0.0579833984375,
0.007236480712890625,
0.0015268325805664062,
0.0237274169921875,
-0.019439697265625,
-0.01435089111328125,
-0.016326904296875,
0.031280517578125,
0.0231781005859375,
-0.029449462890625,
0.02508544921875,
0.0269622802734375,
-0.0017538070678710938,
0.004482269287109375,
0.003536224365234375,
-0.0026645660400390625,
-0.029876708984375,
-0.04052734375,
0.007843017578125,
-0.04583740234375,
-0.016754150390625,
0.0521240234375,
0.010650634765625,
0.00860595703125,
0.02923583984375,
0.003383636474609375,
0.0263671875,
-0.00966644287109375,
-0.03692626953125,
-0.029083251953125,
-0.00836181640625,
0.0170135498046875,
0.007450103759765625,
-0.01467132568359375,
0.0116729736328125,
-0.0277099609375,
-0.0134735107421875,
-0.0072174072265625,
0.030059814453125,
0.10186767578125,
-0.056915283203125,
-0.0307464599609375,
0.0131988525390625,
-0.008331298828125,
0.0029506683349609375,
0.004215240478515625,
0.00147247314453125,
-0.0240478515625,
0.0209808349609375,
-0.022247314453125,
-0.0250701904296875,
-0.0121002197265625,
-0.01171875,
-0.076171875,
0.1153564453125,
-0.0165863037109375,
0.03143310546875,
-0.0144195556640625,
0.057861328125,
-0.01203155517578125,
0.021148681640625,
-0.035064697265625,
0.049835205078125,
0.0030956268310546875,
0.0143890380859375,
-0.05670166015625,
-0.010589599609375,
-0.0169525146484375,
0.0343017578125,
0.0994873046875,
0.01462554931640625,
-0.03265380859375,
-0.004360198974609375,
0.08392333984375,
0.06658935546875,
0.0205841064453125,
0.024444580078125,
0.015625,
-0.0084075927734375,
0.021087646484375,
0.016937255859375,
0.04901123046875,
-0.005252838134765625,
-0.0201568603515625,
0.0265655517578125,
0.00574493408203125,
-0.00411224365234375,
-0.00901031494140625,
0.0013027191162109375,
-0.0091400146484375,
0.0031585693359375,
0.0032482147216796875,
-0.001194000244140625,
-0.0108642578125,
0.025909423828125,
0.000644683837890625,
0.01122283935546875,
-0.007442474365234375,
-0.026153564453125,
0.020172119140625,
0.021148681640625,
0.03369140625,
-0.02069091796875,
0.01055145263671875,
0.00368499755859375,
0.00777435302734375,
0.01459503173828125,
0.058624267578125,
-0.03765869140625,
0.047088623046875,
0.009765625,
0.01520538330078125,
-0.045440673828125,
-0.003978729248046875,
0.034088134765625,
0.0550537109375,
-0.03607177734375,
0.0164337158203125,
0.01398468017578125,
0.011962890625,
-0.00862884521484375,
-0.0504150390625,
0.0107879638671875,
-0.00797271728515625,
0.0008325576782226562,
-0.0256500244140625,
0.0012035369873046875,
0.002414703369140625,
0.0465087890625,
-0.0038089752197265625,
0.0015096664428710938,
-0.038116455078125,
-0.018035888671875,
-0.019317626953125,
-0.04248046875,
-0.01073455810546875,
0.02728271484375,
0.0548095703125,
-0.00315093994140625,
0.0254364013671875,
-0.01076507568359375,
0.0006284713745117188,
0.00711822509765625,
0.0050048828125,
0.00400543212890625,
-0.01268768310546875,
-0.0307464599609375,
0.0170745849609375,
0.03216552734375,
0.0280609130859375,
0.0287628173828125,
0.03363037109375,
0.03070068359375,
0.003513336181640625,
-0.003314971923828125,
0.02056884765625,
-0.0142974853515625,
-0.012939453125,
-0.035064697265625,
0.0278472900390625,
0.005474090576171875,
0.00867462158203125,
-0.02410888671875,
0.032440185546875,
0.034393310546875,
-0.02081298828125,
0.0555419921875,
-0.0021820068359375,
-0.005886077880859375,
0.10076904296875,
0.00960540771484375,
0.10333251953125,
0.0236663818359375,
-0.05450439453125,
0.006679534912109375,
-0.0241241455078125,
-0.0535888671875,
0.007518768310546875,
0.0401611328125,
-0.0328369140625,
0.022796630859375,
0.004657745361328125,
0.0216217041015625,
0.01491546630859375,
-0.0234832763671875,
0.010345458984375,
0.045562744140625,
0.039886474609375,
0.04248046875,
-0.06158447265625,
-0.01395416259765625,
0.0034332275390625,
0.0100555419921875,
0.0008068084716796875,
0.04632568359375,
-0.006195068359375,
-0.0028820037841796875,
-0.01236724853515625,
-0.00023496150970458984,
0.005283355712890625,
-0.0114898681640625,
0.0333251953125,
0.039703369140625,
0.00843048095703125,
-0.029754638671875,
-0.0160980224609375,
0.00455474853515625,
0.0274505615234375,
-0.02166748046875,
-0.00757598876953125,
-0.017669677734375,
0.0186309814453125,
-0.0050506591796875,
-0.0042877197265625,
-0.0230560302734375,
0.001361846923828125,
-0.0284576416015625,
0.00782012939453125,
0.02325439453125,
-0.01117706298828125,
-0.043548583984375,
0.030792236328125,
0.0166015625,
0.0005908012390136719,
0.034912109375,
-0.019805908203125,
0.05291748046875,
0.028228759765625,
-0.032501220703125,
-0.0212860107421875,
-0.00855255126953125,
-0.01032257080078125,
-0.00823974609375,
-0.00396728515625,
0.00726318359375,
0.014984130859375,
-0.02703857421875,
-0.0259552001953125,
-0.004711151123046875,
0.0225372314453125,
-0.00574493408203125,
0.00295257568359375,
-0.035888671875,
-0.00988006591796875,
-0.01488494873046875,
0.059234619140625,
-0.024139404296875,
-0.016265869140625,
-0.01525115966796875,
-0.006671905517578125,
-0.0191650390625,
-0.028594970703125,
-0.06280517578125,
-0.00433349609375,
0.0233306884765625,
0.0033893585205078125,
-0.07208251953125,
0.0280303955078125,
0.0003209114074707031,
0.04608154296875,
-0.0287628173828125,
-0.03515625,
0.007965087890625,
0.038360595703125,
0.0020694732666015625,
0.01097869873046875,
-0.0228729248046875,
-0.0174713134765625,
0.00040149688720703125,
0.0282135009765625,
0.0245361328125,
-0.036956787109375,
0.0139312744140625,
0.038116455078125,
0.044281005859375,
0.07830810546875,
0.0328369140625,
-0.033843994140625,
0.0038204193115234375,
-0.02264404296875,
0.028717041015625,
-0.0465087890625,
0.0081787109375,
-0.09381103515625,
-0.023590087890625,
0.0036163330078125,
0.0251312255859375,
0.046356201171875,
-0.0257415771484375,
-0.09600830078125,
0.0291900634765625,
-0.00991058349609375,
-0.05010986328125,
-0.039764404296875,
0.039154052734375,
0.01727294921875,
-0.047882080078125,
-0.019317626953125,
-0.00560760498046875,
-0.01036834716796875,
-0.007602691650390625,
-0.01277923583984375,
0.0128936767578125,
0.0007038116455078125,
-0.012908935546875,
-0.051727294921875,
0.0020771026611328125,
-0.004962921142578125,
-0.0126800537109375,
0.047088623046875,
-0.03961181640625,
0.035888671875,
0.01068878173828125,
-0.07989501953125,
-0.0255584716796875,
-0.03057861328125,
0.047760009765625,
-0.0275726318359375,
-0.02032470703125,
0.006298065185546875,
-0.0026378631591796875,
0.06146240234375,
0.0209197998046875,
0.00031065940856933594,
-0.032318115234375,
0.054840087890625,
-0.0256500244140625,
-0.072021484375,
0.025482177734375,
0.0181427001953125,
-0.01041412353515625,
0.0171966552734375,
0.028106689453125,
-0.005645751953125,
-0.038665771484375,
-0.00342559814453125,
-0.032318115234375,
-0.017364501953125,
-0.018798828125,
-0.0003800392150878906,
-0.025390625,
0.006153106689453125,
0.076416015625,
-0.033416748046875,
0.031829833984375,
0.016815185546875,
-0.0041046142578125,
0.0640869140625,
0.04754638671875,
0.0088043212890625,
0.0234375,
-0.041015625,
0.0142059326171875,
-0.0053253173828125,
0.040374755859375,
-0.04876708984375,
-0.0015573501586914062,
-0.007389068603515625,
0.0280303955078125,
-0.01459503173828125,
0.0162811279296875,
-0.0210113525390625,
0.0789794921875,
-0.00766754150390625,
0.11767578125,
-0.010223388671875,
0.0374755859375,
-0.023162841796875,
0.04229736328125,
0.00647735595703125,
-0.020782470703125,
0.028961181640625,
-0.0212860107421875,
0.00621795654296875,
-0.004711151123046875,
-0.0193634033203125,
-0.01522064208984375,
0.00960540771484375,
0.033660888671875,
-0.0267486572265625,
0.0140228271484375
] |
23d540c3ba52304fc5207aa47d6aa4ea1be68901 | Wordpress Stackexchange
Q: How can I prevent users from creating new categories? I've set up some categories. I don't want users to add new ones.
How can I do this?
A: You should to remove a capability named 'manage_categories' from user role or roles, for example:
/**
* Don't let subscribers add/edit/remove categories.
*
* You should call the function once when your plugin or theme is activated.
*
* @uses WP_Role::remove_cap()
*/
function remove_subscribers_manage_categories() {
// get_role returns an instance of WP_Role.
$role = get_role( 'subscriber' );
$role->remove_cap( 'manage_categories' );
}
| Q: How can I prevent users from creating new categories? I've set up some categories. I don't want users to add new ones.
How can I do this?
A: You should to remove a capability named 'manage_categories' from user role or roles, for example:
/**
* Don't let subscribers add/edit/remove categories.
*
* You should call the function once when your plugin or theme is activated.
*
* @uses WP_Role::remove_cap()
*/
function remove_subscribers_manage_categories() {
// get_role returns an instance of WP_Role.
$role = get_role( 'subscriber' );
$role->remove_cap( 'manage_categories' );
}
| wordpress | {
"language": "en",
"length": 90,
"provenance": "stackexchange_00019.jsonl.gz:491175",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/321600"
} | [
0.06805419921875,
0.0211029052734375,
-0.0113983154296875,
-0.01611328125,
0.046844482421875,
-0.05413818359375,
0.055206298828125,
-0.035125732421875,
-0.026092529296875,
0.0244903564453125,
0.0260772705078125,
-0.0204010009765625,
0.002666473388671875,
-0.03912353515625,
-0.00836944580078125,
-0.035491943359375,
0.020751953125,
-0.0059814453125,
0.00907135009765625,
-0.0194549560546875,
0.02178955078125,
-0.0066070556640625,
-0.0020503997802734375,
0.06146240234375,
-0.0190582275390625,
-0.0127105712890625,
0.044097900390625,
-0.02679443359375,
-0.030120849609375,
-0.04974365234375,
0.0096893310546875,
0.025604248046875,
-0.0222930908203125,
0.047821044921875,
-0.01067352294921875,
0.013916015625,
0.0020847320556640625,
0.023834228515625,
0.046234130859375,
-0.01355743408203125,
0.0267486572265625,
-0.006206512451171875,
0.03900146484375,
-0.005039215087890625,
0.01207733154296875,
-0.047088623046875,
0.049560546875,
-0.024871826171875,
0.015472412109375,
-0.00958251953125,
0.0292205810546875,
0.01326751708984375,
0.0445556640625,
-0.016448974609375,
-0.024200439453125,
-0.0117340087890625,
-0.0198211669921875,
0.022308349609375,
0.0302886962890625,
0.02972412109375,
-0.02801513671875,
-0.00433349609375,
0.007122039794921875,
-0.056396484375,
0.00899505615234375,
-0.0212860107421875,
0.01348114013671875,
0.048797607421875,
-0.068115234375,
-0.018890380859375,
0.03631591796875,
-0.03192138671875,
0.0041961669921875,
-0.00873565673828125,
-0.014404296875,
-0.00803375244140625,
0.0020580291748046875,
-0.008392333984375,
0.0238494873046875,
0.007549285888671875,
0.006683349609375,
-0.031524658203125,
-0.008514404296875,
0.0005617141723632812,
0.00753021240234375,
0.02471923828125,
-0.01434326171875,
-0.013336181640625,
-0.01125335693359375,
0.00978851318359375,
-0.01418304443359375,
-0.01947021484375,
0.0015268325805664062,
0.024658203125,
-0.0005731582641601562,
-0.0160675048828125,
0.05364990234375,
0.0716552734375,
-0.01715087890625,
-0.041290283203125,
-0.0015134811401367188,
-0.035308837890625,
-0.0439453125,
-0.0140228271484375,
0.0295257568359375,
0.051910400390625,
-0.049102783203125,
-0.06524658203125,
0.0335693359375,
0.028656005859375,
0.0151824951171875,
0.0032596588134765625,
0.0002930164337158203,
-0.00684356689453125,
-0.018280029296875,
0.0205535888671875,
-0.0242156982421875,
0.036041259765625,
-0.0020351409912109375,
0.046234130859375,
-0.003749847412109375,
0.0148162841796875,
0.0066986083984375,
-0.03997802734375,
0.036285400390625,
0.01055908203125,
-0.04949951171875,
-0.0032939910888671875,
-0.01025390625,
-0.0211944580078125,
-0.0390625,
0.0220489501953125,
0.07171630859375,
0.051422119140625,
0.033905029296875,
-0.014312744140625,
0.0311737060546875,
-0.007843017578125,
-0.007785797119140625,
0.0167999267578125,
0.009796142578125,
-0.026336669921875,
-0.0165863037109375,
-0.023406982421875,
0.0159454345703125,
-0.0035343170166015625,
-0.0126495361328125,
0.0177764892578125,
0.04437255859375,
0.0255889892578125,
-0.01195526123046875,
-0.07281494140625,
0.03863525390625,
-0.005615234375,
-0.01157379150390625,
0.0121002197265625,
0.01224517822265625,
0.002727508544921875,
-0.055023193359375,
-0.01837158203125,
0.00843048095703125,
-0.007671356201171875,
0.007305145263671875,
-0.03076171875,
-0.05377197265625,
0.007305145263671875,
-0.043304443359375,
-0.00835418701171875,
0.015655517578125,
0.002376556396484375,
0.01506805419921875,
-0.0183563232421875,
-0.0262603759765625,
-0.009490966796875,
0.00045871734619140625,
0.016937255859375,
-0.004169464111328125,
-0.0038166046142578125,
-0.004451751708984375,
0.0257568359375,
-0.004802703857421875,
-0.038482666015625,
0.0141143798828125,
-0.00226593017578125,
-0.0501708984375,
0.0043487548828125,
-0.002902984619140625,
0.0362548828125,
0.0240478515625,
0.007617950439453125,
0.03668212890625,
0.0149078369140625,
-0.00702667236328125,
-0.050201416015625,
0.0213775634765625,
-0.026580810546875,
0.036041259765625,
-0.0215301513671875,
0.0165252685546875,
0.0177001953125,
0.037139892578125,
-0.00308990478515625,
0.004505157470703125,
-0.0460205078125,
-0.060791015625,
-0.012542724609375,
-0.0213775634765625,
0.04827880859375,
-0.0199127197265625,
0.01247406005859375,
0.005767822265625,
-0.00720977783203125,
-0.0003921985626220703,
-0.032135009765625,
0.0081634521484375,
0.02642822265625,
-0.0301971435546875,
0.0152587890625,
-0.001583099365234375,
0.01739501953125,
0.0011873245239257812,
-0.0195770263671875,
0.006908416748046875,
-0.014068603515625,
0.019317626953125,
-0.004360198974609375,
-0.01381683349609375,
-0.01224517822265625,
-0.0189361572265625,
0.0285186767578125,
-0.0628662109375,
0.007579803466796875,
0.055511474609375,
0.019439697265625,
-0.01149749755859375,
0.02239990234375,
0.03466796875,
-0.07208251953125,
-0.0191192626953125,
0.04486083984375,
0.034210205078125,
0.00411224365234375,
-0.02740478515625,
-0.0203704833984375,
0.016571044921875,
-0.07073974609375,
0.0016460418701171875,
0.006145477294921875,
-0.0004639625549316406,
0.0452880859375,
0.034912109375,
0.0217132568359375,
-0.0031757354736328125,
0.0031795501708984375,
0.016754150390625,
0.0183258056640625,
-0.0157928466796875,
-0.0236053466796875,
0.039520263671875,
-0.028167724609375,
0.0226593017578125,
-0.0309600830078125,
-0.031463623046875,
-0.00450897216796875,
0.000911712646484375,
-0.010467529296875,
0.0011758804321289062,
-0.00028204917907714844,
0.0191497802734375,
-0.0019159317016601562,
0.00022745132446289062,
-0.07696533203125,
-0.0053863525390625,
0.013336181640625,
0.0305938720703125,
0.028472900390625,
-0.0526123046875,
0.0063018798828125,
0.010345458984375,
0.0211639404296875,
-0.0158843994140625,
0.045257568359375,
0.03631591796875,
-0.0227508544921875,
-0.007671356201171875,
-0.024932861328125,
0.00972747802734375,
-0.058380126953125,
-0.04522705078125,
-0.041778564453125,
-0.0164337158203125,
0.0160675048828125,
-0.01261138916015625,
0.0121917724609375,
0.005645751953125,
-0.00577545166015625,
-0.03759765625,
-0.0340576171875,
0.01326751708984375,
-0.018310546875,
0.022369384765625,
0.06842041015625,
0.0308990478515625,
-0.0037479400634765625,
0.0185089111328125,
-0.0253448486328125,
0.039093017578125,
0.00702667236328125,
-0.0025691986083984375,
0.038726806640625,
-0.0748291015625,
0.0031261444091796875,
0.014617919921875,
-0.01494598388671875,
0.03887939453125,
-0.005401611328125,
0.019195556640625,
0.0118255615234375,
0.05572509765625,
0.0765380859375,
0.0140838623046875,
-0.0108795166015625,
0.0257568359375,
0.043365478515625,
0.007419586181640625,
-0.04315185546875,
0.0777587890625,
0.0016632080078125,
-0.01465606689453125,
-0.03179931640625,
-0.018524169921875,
-0.033416748046875,
-0.003204345703125,
0.03387451171875,
-0.0013551712036132812,
-0.01678466796875,
-0.00658416748046875,
0.10272216796875,
0.00395965576171875,
-0.054443359375,
-0.0090179443359375,
-0.050079345703125,
-0.0146636962890625,
0.0237274169921875,
0.0302886962890625,
0.00676727294921875,
0.0149383544921875,
0.0164947509765625,
0.017974853515625,
0.0308685302734375,
-0.035797119140625,
-0.0281829833984375,
0.01226806640625,
0.004772186279296875,
0.0272674560546875,
0.0203857421875,
-0.016357421875,
0.0205841064453125,
0.030181884765625,
-0.02850341796875,
0.0078582763671875,
0.0024356842041015625,
-0.0311431884765625,
-0.004669189453125,
0.01082611083984375,
-0.0223846435546875,
0.0158843994140625,
-0.0193328857421875,
0.03802490234375,
0.0294036865234375,
-0.029449462890625,
-0.0014858245849609375,
0.0246734619140625,
0.01181793212890625,
0.02838134765625,
0.0031986236572265625,
0.01517486572265625,
-0.029022216796875,
0.00030422210693359375,
-0.01534271240234375,
-0.016510009765625,
-0.0312347412109375,
0.01294708251953125,
-0.032318115234375,
-0.037506103515625,
0.01277923583984375,
-0.07379150390625,
0.0030536651611328125,
-0.0298309326171875,
0.01201629638671875,
0.0010137557983398438,
0.06109619140625,
-0.060882568359375,
-0.0096282958984375,
-0.00605010986328125,
0.00737762451171875,
-0.0051116943359375,
-0.0189361572265625,
-0.0531005859375,
-0.018341064453125,
-0.0233917236328125,
-0.018798828125,
-0.0179595947265625,
-0.0240020751953125,
-0.03814697265625,
-0.00861358642578125,
-0.031463623046875,
-0.0177154541015625,
0.060943603515625,
-0.068115234375,
0.02435302734375,
-0.001628875732421875,
0.0260772705078125,
-0.0657958984375,
-0.045166015625,
-0.00768280029296875,
-0.0709228515625,
-0.00536346435546875,
-0.039947509765625,
0.03662109375,
-0.0105438232421875,
0.041046142578125,
-0.0192108154296875,
0.03668212890625,
0.019317626953125,
-0.0279388427734375,
0.0041656494140625,
-0.005458831787109375,
0.0016117095947265625,
0.01434326171875,
0.0066986083984375,
-0.0209197998046875,
-0.005458831787109375,
-0.036956787109375,
0.0199127197265625,
0.047882080078125,
-0.043365478515625,
0.011322021484375,
-0.06072998046875,
0.01012420654296875,
-0.054473876953125,
-0.0537109375,
-0.031524658203125,
-0.01340484619140625,
-0.009307861328125,
-0.004932403564453125,
-0.046051025390625,
-0.061553955078125,
0.01126861572265625,
-0.0396728515625,
-0.0106964111328125,
0.01177978515625,
0.0994873046875,
0.02593994140625,
0.0165863037109375,
0.01102447509765625,
0.03375244140625,
0.040191650390625,
-0.0000019073486328125,
0.032073974609375,
0.00801849365234375,
-0.0335693359375,
0.054962158203125,
0.0074310302734375,
0.00872039794921875,
-0.0280609130859375,
0.050811767578125,
-0.01015472412109375,
-0.0251312255859375,
0.005527496337890625,
-0.0259246826171875,
0.01971435546875,
-0.032623291015625,
-0.0074462890625,
0.0095977783203125,
0.020477294921875,
0.00850677490234375,
0.007259368896484375,
0.0039825439453125,
0.0006427764892578125,
-0.0207061767578125,
0.023773193359375,
-0.01861572265625,
-0.0123748779296875,
0.0081329345703125,
-0.0004787445068359375,
-0.042022705078125,
-0.04913330078125,
-0.0060272216796875,
-0.04278564453125,
-0.0289764404296875,
-0.012176513671875,
0.034576416015625,
-0.0673828125,
-0.0063323974609375,
-0.023712158203125,
0.0007448196411132812,
0.016876220703125,
-0.0113983154296875,
-0.04315185546875,
-0.0172576904296875,
0.006122589111328125,
0.0443115234375,
0.033599853515625,
-0.0168914794921875,
0.037017822265625,
0.0210418701171875,
0.019012451171875,
0.0013933181762695312,
-0.02960205078125,
0.0097808837890625,
-0.0173797607421875,
-0.02581787109375,
0.004398345947265625,
-0.0278778076171875,
0.0311737060546875,
-0.0005340576171875,
0.0167999267578125,
0.015869140625,
-0.024658203125,
0.06756591796875,
0.0648193359375,
-0.0160369873046875,
-0.003566741943359375,
0.038299560546875,
-0.009735107421875,
-0.0400390625,
0.003326416015625,
-0.05572509765625,
-0.02984619140625,
0.036224365234375,
0.043975830078125,
-0.0010929107666015625,
-0.022430419921875,
0.0075225830078125,
0.00983428955078125,
0.0036182403564453125,
0.0157470703125,
-0.056365966796875,
-0.050262451171875,
-0.034515380859375,
0.005496978759765625,
0.03302001953125,
-0.035675048828125,
0.00452423095703125,
-0.019378662109375,
-0.02197265625,
-0.020294189453125,
0.01235198974609375,
-0.042205810546875,
-0.01111602783203125,
0.001720428466796875,
-0.1025390625,
-0.03741455078125,
0.03900146484375,
-0.013336181640625,
0.00666046142578125,
-0.021392822265625,
-0.06341552734375,
0.001918792724609375,
0.0133514404296875,
0.03070068359375,
-0.0270233154296875,
-0.02490234375,
-0.0445556640625,
-0.0029659271240234375,
0.04248046875,
0.0003800392150878906,
-0.0343017578125,
-0.028167724609375,
-0.052459716796875,
-0.01453399658203125,
-0.07647705078125,
-0.06719970703125,
-0.005401611328125,
0.0238800048828125,
0.019989013671875,
0.00850677490234375,
-0.0094146728515625,
-0.0499267578125,
-0.02374267578125,
0.01345062255859375,
0.046417236328125,
-0.008880615234375,
-0.037628173828125,
0.0251617431640625,
0.051361083984375,
0.0041656494140625,
-0.006816864013671875,
-0.00881195068359375,
0.0216827392578125,
-0.0136871337890625,
0.0014944076538085938,
-0.0205535888671875,
-0.01837158203125,
0.005603790283203125,
-0.046539306640625,
-0.004917144775390625,
0.057159423828125,
0.0006437301635742188,
0.035675048828125,
-0.026123046875,
0.01343536376953125,
-0.02099609375,
-0.03387451171875,
-0.0594482421875,
0.01502227783203125,
-0.0086669921875,
-0.04644775390625,
0.0584716796875,
0.01837158203125,
-0.00897216796875,
0.056121826171875,
-0.04913330078125,
0.0640869140625,
0.033355712890625,
-0.00494384765625,
0.02337646484375,
0.0017328262329101562,
-0.020721435546875,
0.0106201171875,
0.01137542724609375,
0.0240631103515625,
-0.01004791259765625,
0.0110626220703125,
0.006572723388671875,
0.011199951171875,
0.05511474609375,
0.01015472412109375,
0.015106201171875,
0.0443115234375,
-0.0174102783203125,
-0.00826263427734375,
0.0955810546875,
0.048675537109375,
-0.117431640625,
-0.002468109130859375,
-0.0023937225341796875,
0.0275115966796875,
0.02685546875,
0.001964569091796875,
0.0072174072265625,
-0.035675048828125,
0.0262298583984375,
-0.035430908203125,
-0.0176849365234375,
-0.01296234130859375,
-0.037933349609375,
-0.03411865234375,
0.020477294921875,
0.014892578125,
0.0416259765625,
0.0557861328125,
-0.02093505859375,
-0.031219482421875,
0.024688720703125,
-0.009185791015625,
-0.00183868408203125,
0.02972412109375,
-0.02978515625,
-0.06414794921875,
0.01959228515625,
0.01146697998046875,
-0.018585205078125,
0.0145111083984375,
-0.032135009765625,
0.0120086669921875,
0.038604736328125,
-0.0330810546875,
0.020355224609375,
0.0148162841796875,
-0.05364990234375,
-0.030548095703125,
-0.036590576171875,
0.0171661376953125,
-0.020660400390625,
-0.0293731689453125,
0.01326751708984375,
-0.017364501953125,
-0.0545654296875,
-0.0019330978393554688,
-0.0271759033203125,
0.0294189453125,
-0.0196075439453125,
-0.01416778564453125,
0.0186614990234375,
-0.00304412841796875,
0.0033321380615234375,
0.0115814208984375,
0.00027489662170410156,
0.01396942138671875,
0.03985595703125,
-0.004177093505859375,
0.01412200927734375,
0.044189453125,
0.035186767578125,
-0.07183837890625,
0.03369140625,
-0.0013494491577148438,
0.040496826171875,
-0.0036983489990234375,
0.00368499755859375,
-0.00007420778274536133,
-0.0146331787109375,
-0.05413818359375,
0.04473876953125,
0.0243072509765625,
0.040618896484375,
-0.03179931640625,
-0.0064849853515625,
0.0052947998046875,
0.0128326416015625,
0.08184814453125,
0.021484375,
0.01064300537109375,
-0.02105712890625,
0.022430419921875,
0.0084228515625,
-0.0584716796875,
0.022705078125,
-0.0157623291015625,
-0.02056884765625,
0.0193939208984375,
-0.0164794921875,
0.0302886962890625,
-0.012847900390625,
-0.01971435546875,
-0.0096588134765625,
0.00952911376953125,
0.004261016845703125,
0.0034427642822265625,
0.002109527587890625,
-0.0270233154296875,
0.0006546974182128906,
-0.003009796142578125,
0.03533935546875,
0.0093841552734375,
0.035186767578125,
0.033050537109375,
-0.01465606689453125,
0.051116943359375,
-0.04156494140625,
0.06488037109375,
0.00222015380859375,
0.0239715576171875,
0.0421142578125,
0.0225830078125,
-0.001117706298828125,
0.02532958984375,
0.0185546875,
0.0206756591796875,
-0.015045166015625,
0.01151275634765625,
0.046356201171875,
0.03228759765625,
-0.0220947265625,
-0.044708251953125,
0.0709228515625,
0.047119140625,
0.006153106689453125,
-0.051971435546875,
0.00821685791015625,
0.0275421142578125,
0.006641387939453125,
0.0325927734375,
0.0322265625,
-0.01090240478515625,
0.06561279296875,
-0.076904296875,
0.005645751953125,
0.034210205078125,
0.0413818359375,
-0.01219940185546875,
0.0029430389404296875,
-0.039398193359375,
-0.0258331298828125,
-0.0380859375,
-0.039947509765625,
0.01027679443359375,
0.045623779296875,
0.046783447265625,
0.0261383056640625,
0.0220489501953125,
-0.0262298583984375,
0.01229095458984375,
0.012725830078125,
0.00047469139099121094,
-0.030517578125,
-0.010528564453125,
-0.052825927734375,
0.035369873046875,
0.0224456787109375,
-0.0119171142578125,
-0.00750732421875,
0.00925445556640625,
0.055908203125,
0.0274200439453125,
-0.0115966796875,
0.03741455078125,
-0.0018596649169921875,
0.0019168853759765625,
-0.045745849609375,
-0.00780487060546875,
0.00029087066650390625,
-0.00710296630859375,
-0.0030803680419921875,
0.0006780624389648438,
0.0321044921875,
-0.0177154541015625,
0.0018930435180664062,
0.00246429443359375,
-0.03582763671875,
0.03656005859375,
-0.025299072265625,
0.040130615234375,
-0.0006804466247558594,
-0.0848388671875,
0.01430511474609375,
-0.08416748046875,
-0.05364990234375,
0.049468994140625,
0.030426025390625,
-0.05072021484375,
0.047149658203125,
-0.00522613525390625,
-0.0113983154296875,
0.00946807861328125,
-0.0038051605224609375,
-0.0180511474609375,
-0.04473876953125,
0.013397216796875,
-0.03955078125,
-0.0005841255187988281,
0.01094818115234375,
0.017486572265625,
0.01274871826171875,
0.0003437995910644531,
0.02996826171875,
-0.006702423095703125,
0.00604248046875,
-0.057891845703125,
0.019195556640625,
-0.040313720703125,
-0.06976318359375,
0.05230712890625,
0.02459716796875,
-0.012786865234375,
-0.00481414794921875,
-0.0173492431640625,
0.0018758773803710938,
0.0411376953125,
-0.0273284912109375,
-0.0170745849609375,
-0.003185272216796875,
0.0237274169921875,
-0.003376007080078125,
0.0200958251953125,
-0.023834228515625,
0.0028820037841796875,
-0.03961181640625,
-0.053619384765625,
0.047821044921875,
0.016204833984375,
0.00928497314453125,
0.0254974365234375,
-0.072021484375,
-0.0106964111328125,
-0.00843048095703125,
0.00812530517578125,
-0.07318115234375,
0.007640838623046875,
-0.043609619140625,
0.0078277587890625,
0.03131103515625,
-0.007598876953125,
-0.00585174560546875,
0.029266357421875,
-0.01393890380859375,
0.0284271240234375,
-0.06829833984375,
-0.0089569091796875,
0.0192718505859375,
0.037933349609375,
-0.016693115234375,
0.021820068359375,
-0.01531982421875,
-0.003887176513671875,
-0.0014581680297851562,
-0.023773193359375,
-0.047332763671875,
-0.045013427734375,
0.0010814666748046875,
0.0222625732421875,
-0.032684326171875,
-0.07080078125,
-0.07733154296875,
0.031524658203125,
0.07421875,
0.02227783203125,
-0.1279296875,
0.0650634765625,
-0.0206451416015625,
0.104248046875,
-0.00554656982421875,
-0.01242828369140625,
0.00432586669921875,
0.0016927719116210938,
-0.0726318359375,
-0.002323150634765625,
-0.041595458984375,
-0.0271148681640625,
-0.037933349609375,
-0.00936126708984375,
0.01328277587890625,
0.0029506683349609375,
-0.0014667510986328125,
-0.004375457763671875,
-0.021453857421875,
0.0430908203125,
-0.022430419921875,
-0.0012922286987304688,
-0.0006775856018066406,
0.0020580291748046875,
-0.0220489501953125,
-0.03314208984375,
0.0103302001953125,
-0.031280517578125,
-0.048065185546875,
-0.045745849609375,
0.0124664306640625,
0.010009765625,
-0.0290069580078125,
-0.039886474609375,
0.055328369140625,
-0.0253448486328125,
-0.02899169921875,
-0.0369873046875,
-0.0007495880126953125,
-0.009552001953125,
0.0222930908203125,
-0.0198974609375,
0.0033435821533203125,
-0.01473236083984375,
0.039520263671875,
0.036529541015625,
-0.038787841796875,
0.0411376953125,
-0.0260772705078125,
-0.052764892578125,
0.0265045166015625,
0.04705810546875,
0.0389404296875,
-0.0075531005859375,
0.0277862548828125,
-0.00010651350021362305,
0.04437255859375,
-0.0157928466796875,
-0.018218994140625,
-0.0189971923828125,
-0.021209716796875,
-0.0187530517578125,
-0.053314208984375,
-0.0200958251953125,
-0.035888671875,
0.0679931640625,
0.04412841796875,
0.01336669921875,
-0.0212860107421875,
-0.037139892578125,
-0.05242919921875,
-0.00418853759765625,
-0.005809783935546875,
0.00506591796875,
-0.051971435546875,
0.016998291015625,
0.01265716552734375,
-0.0009026527404785156,
-0.0093536376953125,
-0.01641845703125,
-0.0192413330078125,
-0.0234222412109375,
-0.01261138916015625,
0.012359619140625,
-0.025177001953125,
0.0252532958984375,
-0.037841796875,
-0.01398468017578125,
-0.046600341796875,
-0.0181427001953125,
-0.0014276504516601562,
-0.07080078125,
-0.02911376953125,
-0.028076171875,
-0.025848388671875,
-0.0284576416015625,
0.052825927734375,
-0.0260162353515625,
0.037628173828125,
-0.054351806640625,
-0.0014934539794921875,
0.00719451904296875,
0.036346435546875,
0.001739501953125,
0.035400390625,
-0.0119476318359375,
0.06805419921875,
0.015472412109375,
0.031768798828125,
0.0180511474609375,
-0.034149169921875,
-0.01177978515625,
0.033966064453125,
0.01068878173828125,
-0.034149169921875,
0.04376220703125,
-0.02081298828125,
0.005035400390625,
0.0070953369140625,
-0.0168609619140625,
-0.01934814453125,
0.00431060791015625,
-0.00763702392578125,
-0.004016876220703125,
0.00916290283203125
] |
3145f0a5e3de68c8f07fbf32f69684a424b607cd | Wordpress Stackexchange
Q: replace parent theme images in child theme My images are found in the parent theme in this folder directory structure:
public_html/wp-content/themes/listingpro/assets/images
I tried placing replacement images with the same name in the child theme under the same directory structure:
public_html/wp-content/themes/listingpro-child/assets/images
The images continue to follow the parent theme's files. Is there a way to replace the image files through the child theme? Am I doing this wrong?
I am having the same issue when I place PHP files in same folder paths on the child theme. Unless it is in the template folder, it doesn't affect the parent theme.
I imagine the two problems are related. Does this have something to do with the functions.php file? I am a bit new to all of this so please bear with me!
| Q: replace parent theme images in child theme My images are found in the parent theme in this folder directory structure:
public_html/wp-content/themes/listingpro/assets/images
I tried placing replacement images with the same name in the child theme under the same directory structure:
public_html/wp-content/themes/listingpro-child/assets/images
The images continue to follow the parent theme's files. Is there a way to replace the image files through the child theme? Am I doing this wrong?
I am having the same issue when I place PHP files in same folder paths on the child theme. Unless it is in the template folder, it doesn't affect the parent theme.
I imagine the two problems are related. Does this have something to do with the functions.php file? I am a bit new to all of this so please bear with me!
| wordpress | {
"language": "en",
"length": 131,
"provenance": "stackexchange_00019.jsonl.gz:491198",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/321710"
} | [
0.037933349609375,
-0.0008792877197265625,
0.0254364013671875,
-0.0139617919921875,
0.0036411285400390625,
-0.0245361328125,
0.0533447265625,
-0.053070068359375,
0.01702880859375,
0.0016393661499023438,
-0.027984619140625,
-0.007114410400390625,
-0.011688232421875,
-0.031524658203125,
-0.01255035400390625,
-0.019012451171875,
0.0290679931640625,
-0.0282440185546875,
0.031036376953125,
-0.003940582275390625,
-0.006366729736328125,
0.0152435302734375,
0.056732177734375,
0.0035877227783203125,
0.03271484375,
-0.0185546875,
0.036956787109375,
-0.033905029296875,
0.01055908203125,
-0.034454345703125,
0.018402099609375,
0.0247802734375,
0.00968170166015625,
-0.002254486083984375,
0.040496826171875,
0.02630615234375,
0.0280914306640625,
-0.0209808349609375,
0.0185394287109375,
0.01093292236328125,
0.01263427734375,
-0.01271820068359375,
0.050811767578125,
0.0240936279296875,
0.01390838623046875,
-0.0338134765625,
0.0176849365234375,
-0.0662841796875,
0.0210418701171875,
-0.02947998046875,
0.03594970703125,
-0.0034027099609375,
0.04730224609375,
-0.0192108154296875,
-0.0263671875,
-0.00799560546875,
-0.0325927734375,
0.0640869140625,
0.007610321044921875,
-0.022674560546875,
-0.0216217041015625,
0.048431396484375,
0.00853729248046875,
0.0290679931640625,
0.0178985595703125,
-0.01806640625,
-0.004878997802734375,
0.01446533203125,
-0.05670166015625,
-0.00380706787109375,
0.057159423828125,
-0.0182952880859375,
-0.0083160400390625,
-0.056488037109375,
0.0190887451171875,
0.030364990234375,
-0.0330810546875,
-0.029632568359375,
0.01422882080078125,
0.02386474609375,
-0.0035724639892578125,
-0.01538848876953125,
-0.028289794921875,
-0.0076904296875,
0.0079803466796875,
-0.005828857421875,
-0.004241943359375,
0.002105712890625,
-0.0491943359375,
0.036102294921875,
-0.041290283203125,
-0.02569580078125,
-0.01363372802734375,
0.03558349609375,
-0.0089874267578125,
0.04071044921875,
0.038055419921875,
0.058349609375,
-0.05078125,
0.0242156982421875,
-0.0311431884765625,
-0.0184326171875,
0.0377197265625,
-0.043304443359375,
0.01422882080078125,
0.01398468017578125,
-0.002620697021484375,
0.0164642333984375,
0.038787841796875,
0.0350341796875,
0.0018587112426757812,
0.0374755859375,
-0.0186004638671875,
-0.043670654296875,
-0.0231781005859375,
0.05572509765625,
-0.01323699951171875,
0.0018310546875,
0.0246429443359375,
0.0166778564453125,
0.01056671142578125,
0.01406097412109375,
0.0036869049072265625,
0.01242828369140625,
-0.00738525390625,
-0.0109405517578125,
-0.0391845703125,
-0.01158905029296875,
0.0230255126953125,
0.025787353515625,
-0.04046630859375,
-0.0089111328125,
0.08111572265625,
0.0343017578125,
0.0255584716796875,
-0.0231781005859375,
0.01187896728515625,
0.00063323974609375,
0.02239990234375,
-0.005458831787109375,
0.0323486328125,
-0.039794921875,
-0.006053924560546875,
0.0254669189453125,
0.0170440673828125,
0.014617919921875,
-0.0005960464477539062,
0.0210418701171875,
0.0113067626953125,
-0.052978515625,
0.045135498046875,
-0.032806396484375,
0.025421142578125,
0.01202392578125,
0.0625,
-0.03497314453125,
0.06329345703125,
-0.03936767578125,
0.0191192626953125,
-0.0293426513671875,
-0.01214599609375,
0.011749267578125,
0.046051025390625,
-0.0005407333374023438,
-0.00995635986328125,
-0.02020263671875,
-0.0352783203125,
-0.007366180419921875,
0.020355224609375,
-0.039581298828125,
0.060516357421875,
-0.0399169921875,
-0.059539794921875,
-0.014190673828125,
0.0234375,
0.0272216796875,
-0.002231597900390625,
0.01019287109375,
0.0249786376953125,
0.061798095703125,
0.01186370849609375,
-0.0279083251953125,
0.04302978515625,
0.00370025634765625,
-0.03509521484375,
-0.01971435546875,
-0.0012788772583007812,
-0.0293426513671875,
0.027679443359375,
0.00432586669921875,
0.036956787109375,
0.0207366943359375,
-0.042236328125,
0.005649566650390625,
0.0178375244140625,
0.01462554931640625,
-0.0191650390625,
0.01120758056640625,
-0.0015954971313476562,
-0.0238494873046875,
-0.036712646484375,
0.00774383544921875,
-0.0035877227783203125,
-0.005458831787109375,
-0.0015411376953125,
-0.01212310791015625,
-0.005336761474609375,
0.02984619140625,
-0.0026683807373046875,
0.0236358642578125,
0.0095672607421875,
0.031646728515625,
0.0037746429443359375,
-0.08349609375,
-0.0198974609375,
0.031524658203125,
-0.01727294921875,
-0.0032596588134765625,
0.017669677734375,
0.035186767578125,
0.011505126953125,
0.01806640625,
-0.02288818359375,
-0.0283660888671875,
0.041961669921875,
0.049774169921875,
-0.0615234375,
0.0063629150390625,
-0.0210113525390625,
0.034576416015625,
-0.0986328125,
0.053558349609375,
-0.02178955078125,
-0.001964569091796875,
-0.0289459228515625,
-0.021392822265625,
0.004150390625,
-0.017791748046875,
0.0171356201171875,
0.038238525390625,
0.0273895263671875,
0.049041748046875,
-0.0037078857421875,
-0.00505828857421875,
0.087158203125,
0.007747650146484375,
-0.0002512931823730469,
-0.0098114013671875,
0.01837158203125,
0.0016088485717773438,
0.001079559326171875,
-0.056640625,
0.04473876953125,
-0.06854248046875,
-0.0030040740966796875,
0.035675048828125,
-0.01021575927734375,
-0.032470703125,
0.001987457275390625,
0.0235137939453125,
0.0214996337890625,
-0.0022430419921875,
-0.03973388671875,
0.01042938232421875,
-0.0230865478515625,
0.0303955078125,
-0.0016765594482421875,
-0.00453948974609375,
-0.040130615234375,
0.021087646484375,
0.0258941650390625,
-0.0177764892578125,
0.018402099609375,
0.0176544189453125,
-0.037994384765625,
0.0245361328125,
-0.00745391845703125,
0.007450103759765625,
0.0119781494140625,
0.002613067626953125,
0.00949859619140625,
-0.00315093994140625,
0.0008711814880371094,
-0.007678985595703125,
0.0027065277099609375,
-0.047149658203125,
0.035614013671875,
0.0572509765625,
-0.003997802734375,
0.022979736328125,
0.016326904296875,
0.055877685546875,
0.0079498291015625,
0.01837158203125,
0.010162353515625,
0.0220184326171875,
0.015838623046875,
-0.0159912109375,
0.048980712890625,
-0.0244903564453125,
0.01232147216796875,
0.050933837890625,
-0.00778961181640625,
0.003810882568359375,
0.0041961669921875,
0.0109100341796875,
0.042266845703125,
0.003650665283203125,
-0.0013418197631835938,
-0.01983642578125,
-0.0243072509765625,
-0.022674560546875,
0.0266876220703125,
-0.01100921630859375,
0.005645751953125,
-0.00922393798828125,
-0.01016998291015625,
-0.0018825531005859375,
-0.0692138671875,
-0.0572509765625,
-0.0433349609375,
-0.00754547119140625,
-0.010833740234375,
0.0203399658203125,
0.01113128662109375,
0.0103607177734375,
0.002765655517578125,
0.0142059326171875,
-0.0027065277099609375,
-0.043182373046875,
-0.0056610107421875,
-0.0838623046875,
-0.05908203125,
-0.053497314453125,
0.00860595703125,
0.002765655517578125,
-0.0012149810791015625,
0.032073974609375,
0.0110626220703125,
-0.05419921875,
0.01200103759765625,
0.117919921875,
0.0110321044921875,
0.01212310791015625,
0.034149169921875,
-0.059417724609375,
0.01102447509765625,
0.0044708251953125,
0.037994384765625,
0.0200347900390625,
-0.0289306640625,
-0.01177978515625,
-0.0196533203125,
-0.0017986297607421875,
-0.018341064453125,
0.06500244140625,
0.035919189453125,
-0.0304412841796875,
0.0247650146484375,
-0.040191650390625,
-0.07135009765625,
-0.036163330078125,
-0.07379150390625,
0.0823974609375,
0.06805419921875,
0.0081024169921875,
-0.020111083984375,
0.025146484375,
0.02691650390625,
0.00603485107421875,
0.0209808349609375,
-0.0252685546875,
0.037750244140625,
0.00749969482421875,
0.01181793212890625,
-0.0426025390625,
0.01047515869140625,
-0.01424407958984375,
0.01214599609375,
-0.0088348388671875,
0.015625,
-0.048248291015625,
0.047210693359375,
-0.06671142578125,
-0.045196533203125,
0.0188446044921875,
-0.01519775390625,
0.03466796875,
-0.05023193359375,
-0.018157958984375,
-0.026153564453125,
0.07781982421875,
-0.0457763671875,
-0.0229034423828125,
0.0085601806640625,
0.0343017578125,
-0.041900634765625,
-0.037200927734375,
-0.032379150390625,
-0.01149749755859375,
-0.0595703125,
-0.004207611083984375,
0.01537322998046875,
-0.0458984375,
-0.0010862350463867188,
-0.009796142578125,
-0.05401611328125,
-0.022125244140625,
0.0207061767578125,
-0.00799560546875,
0.01169586181640625,
0.0148162841796875,
0.00820159912109375,
0.005096435546875,
-0.00827789306640625,
-0.0293426513671875,
-0.07208251953125,
-0.0164337158203125,
-0.07684326171875,
0.10601806640625,
0.05596923828125,
-0.02105712890625,
-0.02679443359375,
0.04669189453125,
0.016510009765625,
0.056365966796875,
0.0003750324249267578,
-0.005275726318359375,
-0.0165252685546875,
-0.01160430908203125,
0.0186614990234375,
-0.03204345703125,
-0.0343017578125,
-0.047607421875,
-0.0222015380859375,
0.01053619384765625,
0.0026092529296875,
0.0154571533203125,
0.009979248046875,
0.0023097991943359375,
-0.00910186767578125,
-0.0015239715576171875,
-0.028076171875,
0.00701141357421875,
0.0030765533447265625,
-0.040283203125,
-0.0157012939453125,
-0.020599365234375,
0.015960693359375,
-0.00890350341796875,
-0.0182647705078125,
0.01016998291015625,
0.0364990234375,
0.018218994140625,
-0.0162506103515625,
-0.025848388671875,
-0.042877197265625,
0.049102783203125,
0.02716064453125,
0.028656005859375,
0.0139617919921875,
-0.0234375,
0.0176239013671875,
0.0400390625,
-0.0037479400634765625,
0.0164642333984375,
0.0606689453125,
0.003986358642578125,
-0.0204315185546875,
0.017578125,
-0.00246429443359375,
-0.01499176025390625,
0.00907135009765625,
-0.0093994140625,
-0.016754150390625,
-0.027374267578125,
0.0364990234375,
0.00853729248046875,
-0.002918243408203125,
-0.049041748046875,
-0.046783447265625,
-0.007171630859375,
0.02166748046875,
0.060333251953125,
0.01013946533203125,
0.00044035911560058594,
0.05767822265625,
0.034515380859375,
0.008636474609375,
-0.01445770263671875,
0.0200347900390625,
-0.01036834716796875,
0.042449951171875,
-0.0142059326171875,
0.005268096923828125,
-0.02154541015625,
0.0009112358093261719,
0.00617218017578125,
0.01233673095703125,
-0.0028285980224609375,
-0.02587890625,
0.0022449493408203125,
0.022430419921875,
0.003017425537109375,
0.01464080810546875,
0.013275146484375,
-0.007289886474609375,
-0.000888824462890625,
-0.01611328125,
-0.0235137939453125,
-0.0001017451286315918,
-0.0301513671875,
-0.01263427734375,
0.0132598876953125,
-0.0258636474609375,
0.025390625,
-0.0231781005859375,
-0.013458251953125,
-0.005695343017578125,
0.003040313720703125,
-0.0200347900390625,
-0.01178741455078125,
0.0301666259765625,
0.03192138671875,
-0.028076171875,
0.00919342041015625,
-0.0023956298828125,
0.053253173828125,
-0.017913818359375,
0.00875091552734375,
0.00028586387634277344,
0.060150146484375,
-0.0205841064453125,
-0.026519775390625,
0.01300048828125,
-0.042022705078125,
-0.002498626708984375,
-0.005298614501953125,
-0.049774169921875,
-0.0251922607421875,
-0.0235595703125,
0.0009107589721679688,
0.047943115234375,
-0.005397796630859375,
-0.0421142578125,
0.0110015869140625,
-0.038543701171875,
-0.0041351318359375,
0.04364013671875,
-0.051666259765625,
0.0260772705078125,
0.031524658203125,
-0.053375244140625,
-0.0167999267578125,
-0.007015228271484375,
-0.0416259765625,
-0.034027099609375,
0.0059814453125,
0.0009341239929199219,
0.0226593017578125,
-0.046966552734375,
0.0162506103515625,
-0.01369476318359375,
0.0181732177734375,
-0.01971435546875,
0.0233612060546875,
0.037506103515625,
0.0250701904296875,
-0.0850830078125,
0.003009796142578125,
-0.047393798828125,
0.00536346435546875,
-0.004108428955078125,
-0.034210205078125,
-0.053009033203125,
0.0019893646240234375,
-0.025726318359375,
0.0102691650390625,
-0.021240234375,
-0.002208709716796875,
-0.01424407958984375,
0.034576416015625,
0.017364501953125,
0.01163482666015625,
-0.0048065185546875,
0.028594970703125,
-0.022369384765625,
0.006259918212890625,
-0.0108184814453125,
-0.0007739067077636719,
0.0160369873046875,
-0.01568603515625,
-0.01364898681640625,
-0.00626373291015625,
0.00528717041015625,
0.003002166748046875,
0.01371002197265625,
0.0307464599609375,
0.0704345703125,
0.01265716552734375,
0.021087646484375,
-0.035125732421875,
-0.00640869140625,
-0.016387939453125,
0.053955078125,
-0.06707763671875,
0.0159149169921875,
0.0009288787841796875,
-0.0185394287109375,
0.00024318695068359375,
0.01171875,
-0.0267181396484375,
0.027862548828125,
0.0126495361328125,
0.0010328292846679688,
0.042755126953125,
-0.07073974609375,
0.04962158203125,
0.05535888671875,
0.015411376953125,
0.0633544921875,
-0.016510009765625,
0.037261962890625,
0.045989990234375,
0.036865234375,
-0.01181793212890625,
-0.0080718994140625,
0.07525634765625,
0.0222625732421875,
-0.00908660888671875,
0.049957275390625,
-0.045745849609375,
-0.033782958984375,
0.003040313720703125,
0.0053253173828125,
-0.0047149658203125,
-0.01497650146484375,
-0.0241546630859375,
-0.005092620849609375,
0.0155792236328125,
0.0194244384765625,
-0.0094146728515625,
-0.0003447532653808594,
-0.0350341796875,
-0.008514404296875,
-0.02410888671875,
-0.0230255126953125,
0.0156097412109375,
-0.0103302001953125,
0.0183563232421875,
0.016357421875,
0.005489349365234375,
-0.05914306640625,
-0.0261077880859375,
0.0709228515625,
-0.0296173095703125,
-0.0078887939453125,
0.016876220703125,
0.002849578857421875,
-0.019927978515625,
-0.04705810546875,
0.0018768310546875,
-0.02655029296875,
-0.01284027099609375,
-0.005397796630859375,
0.0262451171875,
0.023773193359375,
0.053863525390625,
-0.004077911376953125,
0.0049896240234375,
0.0231170654296875,
-0.0228424072265625,
0.0172271728515625,
0.01053619384765625,
0.0035190582275390625,
0.01519012451171875,
-0.06640625,
-0.0114288330078125,
-0.0684814453125,
0.07733154296875,
-0.017913818359375,
-0.039215087890625,
0.04486083984375,
-0.0239105224609375,
-0.008880615234375,
0.02703857421875,
0.04339599609375,
-0.01522064208984375,
-0.00569915771484375,
0.0211334228515625,
-0.04058837890625,
-0.0242462158203125,
-0.0031528472900390625,
-0.0240020751953125,
0.006969451904296875,
-0.01184844970703125,
-0.061614990234375,
0.0836181640625,
-0.0274810791015625,
0.056732177734375,
0.040679931640625,
0.017425537109375,
-0.009765625,
-0.01366424560546875,
-0.0112152099609375,
0.032012939453125,
-0.01105499267578125,
0.0269622802734375,
-0.0238037109375,
0.015777587890625,
-0.0009517669677734375,
0.02093505859375,
0.0321044921875,
0.01392364501953125,
-0.041015625,
-0.0169677734375,
0.04638671875,
0.0182952880859375,
0.003780364990234375,
0.0635986328125,
-0.00499725341796875,
-0.0273284912109375,
0.00078582763671875,
0.022491455078125,
0.0304412841796875,
-0.0252685546875,
-0.03839111328125,
-0.00652313232421875,
0.0063934326171875,
-0.003635406494140625,
0.0019197463989257812,
-0.00786590576171875,
-0.0439453125,
0.00225067138671875,
0.050384521484375,
-0.06463623046875,
0.0212860107421875,
-0.0061187744140625,
-0.006290435791015625,
-0.0167083740234375,
-0.052825927734375,
0.00665283203125,
0.0229034423828125,
0.005123138427734375,
0.0325927734375,
0.0029850006103515625,
0.014984130859375,
0.009063720703125,
-0.003643035888671875,
0.00881195068359375,
0.0528564453125,
-0.046661376953125,
0.0016126632690429688,
0.0275726318359375,
0.01873779296875,
-0.00266265869140625,
0.047637939453125,
0.032135009765625,
0.01433563232421875,
-0.04486083984375,
-0.03070068359375,
0.01763916015625,
-0.00998687744140625,
-0.0117034912109375,
0.0001977682113647461,
-0.00861358642578125,
-0.06719970703125,
-0.03662109375,
-0.00917816162109375,
-0.0253753662109375,
0.02435302734375,
0.0305633544921875,
-0.0028057098388671875,
-0.01044464111328125,
0.01666259765625,
-0.03863525390625,
0.01204681396484375,
0.011260986328125,
0.0011615753173828125,
-0.0170135498046875,
-0.0299072265625,
0.03125,
0.000782012939453125,
0.0206756591796875,
-0.01947021484375,
0.014495849609375,
-0.018524169921875,
0.047149658203125,
-0.04632568359375,
-0.017059326171875,
0.0294952392578125,
0.043304443359375,
0.032073974609375,
0.0038604736328125,
0.020355224609375,
0.01959228515625,
-0.02618408203125,
-0.012847900390625,
0.00019311904907226562,
-0.01519775390625,
0.041046142578125,
-0.00811767578125,
0.018951416015625,
0.01373291015625,
-0.01702880859375,
-0.0298919677734375,
0.01496124267578125,
0.038055419921875,
-0.012725830078125,
0.038421630859375,
-0.002925872802734375,
-0.005641937255859375,
0.00846099853515625,
0.0138702392578125,
0.0289306640625,
0.0107879638671875,
-0.04541015625,
-0.04620361328125,
0.0192718505859375,
-0.0184478759765625,
0.0335693359375,
0.048370361328125,
-0.00722503662109375,
0.005229949951171875,
0.03167724609375,
-0.0204620361328125,
-0.032135009765625,
0.004817962646484375,
0.023529052734375,
-0.01351165771484375,
0.005390167236328125,
0.028656005859375,
0.007183074951171875,
-0.0024356842041015625,
0.006038665771484375,
0.037567138671875,
0.01953125,
0.07196044921875,
-0.030120849609375,
0.032318115234375,
-0.0177764892578125,
0.02325439453125,
-0.04437255859375,
-0.026885986328125,
0.05267333984375,
-0.042694091796875,
-0.0187835693359375,
-0.0014200210571289062,
-0.070556640625,
-0.00679779052734375,
0.042938232421875,
-0.0235137939453125,
0.0106048583984375,
0.0085601806640625,
0.01202392578125,
-0.01313018798828125,
0.022003173828125,
-0.0193328857421875,
-0.036468505859375,
-0.038818359375,
0.0003418922424316406,
0.016387939453125,
-0.01136016845703125,
-0.0462646484375,
0.0186004638671875,
0.058258056640625,
-0.00751495361328125,
0.059814453125,
-0.0221405029296875,
0.09771728515625,
0.053009033203125,
-0.0177459716796875,
-0.092529296875,
0.00860595703125,
0.005886077880859375,
-0.0257720947265625,
0.0012178421020507812,
0.08843994140625,
0.0010271072387695312,
-0.0273284912109375,
0.006206512451171875,
0.0185089111328125,
0.0156707763671875,
-0.041259765625,
-0.0018453598022460938,
0.0202484130859375,
-0.025360107421875,
0.032623291015625,
-0.00009435415267944336,
-0.0139923095703125,
-0.035552978515625,
0.007579803466796875,
0.0296783447265625,
0.00017404556274414062,
0.033111572265625,
-0.012054443359375,
0.0013885498046875,
0.0655517578125,
0.0638427734375,
-0.09698486328125,
0.04132080078125,
0.01023101806640625,
0.020660400390625,
0.02935791015625,
-0.012054443359375,
0.0081634521484375,
0.00930023193359375,
-0.05908203125,
-0.04010009765625,
-0.0287628173828125,
-0.0030040740966796875,
-0.05084228515625,
0.0208282470703125,
0.0386962890625,
-0.01154327392578125,
0.043792724609375,
0.034027099609375,
0.01384735107421875,
0.0850830078125,
-0.06146240234375,
-0.053131103515625,
-0.0218353271484375,
0.017486572265625,
0.006870269775390625,
0.01123809814453125,
0.03228759765625,
-0.01947021484375,
-0.0048065185546875,
-0.046722412109375,
0.0252685546875,
0.04107666015625,
-0.038238525390625,
-0.07696533203125,
0.1060791015625,
-0.032928466796875,
-0.0213623046875,
-0.01232147216796875,
-0.00970458984375,
-0.03179931640625,
0.0276947021484375,
0.007305145263671875,
-0.00420379638671875,
0.0352783203125,
0.0694580078125,
0.009674072265625,
0.018341064453125,
-0.017852783203125,
0.0242919921875,
-0.02215576171875,
0.0293731689453125,
0.013275146484375,
-0.0059051513671875,
0.00786590576171875,
0.00507354736328125,
0.033721923828125,
0.07171630859375,
-0.0024871826171875,
-0.004985809326171875,
0.0008859634399414062,
-0.06793212890625,
-0.001140594482421875,
-0.0187835693359375,
-0.0064849853515625,
-0.016326904296875,
0.034027099609375,
0.021087646484375,
0.0177001953125,
-0.0016622543334960938,
-0.007160186767578125,
-0.0172882080078125,
0.0214385986328125,
0.01551055908203125,
-0.001117706298828125,
-0.047332763671875,
-0.0115966796875,
0.04803466796875,
-0.0244598388671875,
-0.0310211181640625,
0.0074920654296875,
-0.06072998046875,
-0.02001953125,
-0.045135498046875,
-0.0250244140625,
-0.0199432373046875,
-0.0025615692138671875,
0.0733642578125,
-0.03985595703125,
0.034637451171875,
-0.0108489990234375,
0.0143280029296875,
0.0657958984375,
0.01031494140625,
0.041046142578125,
0.034423828125,
-0.018310546875,
0.00621795654296875,
0.0294189453125,
0.0225830078125,
-0.025909423828125,
-0.0357666015625,
-0.00018286705017089844,
0.014007568359375,
0.0004057884216308594,
-0.01141357421875,
-0.035797119140625,
0.0870361328125,
-0.00901031494140625,
0.10894775390625,
-0.01079559326171875,
0.0230560302734375,
-0.0175933837890625,
0.046600341796875,
-0.03228759765625,
-0.0010051727294921875,
-0.022216796875,
0.00039458274841308594,
0.0164031982421875,
-0.005401611328125,
-0.01142120361328125,
-0.01708984375,
-0.0029754638671875,
-0.0192718505859375,
-0.0201873779296875,
0.009368896484375
] |
de88d62566090b8e6b94b618374e9d71525e6f97 | Wordpress Stackexchange
Q: Changing user_nicename user_nicename has the same value with user_login. I want to change user_nicename value only by using code snippet into functions.php or wp-config.php. Is it possible without using phpmyadmin or any plugin?
A: Yes, you can use wp_update_user():
wp_update_user( array(
'ID' => 123,
'user_nicename' => 'value'
) );
Just replace 123 with the proper user ID, and value with the preferred user_nicename value.
The function also enables you to change the value of other fields in the WordPress users table (wp_users).
| Q: Changing user_nicename user_nicename has the same value with user_login. I want to change user_nicename value only by using code snippet into functions.php or wp-config.php. Is it possible without using phpmyadmin or any plugin?
A: Yes, you can use wp_update_user():
wp_update_user( array(
'ID' => 123,
'user_nicename' => 'value'
) );
Just replace 123 with the proper user ID, and value with the preferred user_nicename value.
The function also enables you to change the value of other fields in the WordPress users table (wp_users).
| wordpress | {
"language": "en",
"length": 83,
"provenance": "stackexchange_00019.jsonl.gz:491225",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/321794"
} | [
0.038330078125,
-0.01232147216796875,
-0.0263671875,
-0.0142822265625,
0.012908935546875,
-0.0516357421875,
0.058563232421875,
0.0092620849609375,
0.016357421875,
0.0511474609375,
0.0003790855407714844,
0.0242767333984375,
0.0198974609375,
-0.0086822509765625,
-0.0364990234375,
0.01357269287109375,
0.012939453125,
-0.01290130615234375,
-0.004436492919921875,
-0.04132080078125,
0.0029773712158203125,
-0.021484375,
0.001697540283203125,
0.01172637939453125,
0.02081298828125,
-0.04248046875,
0.0521240234375,
-0.00627899169921875,
0.0227508544921875,
0.0165557861328125,
0.018157958984375,
-0.0318603515625,
0.0155792236328125,
0.0287628173828125,
-0.037750244140625,
-0.0038852691650390625,
0.0196685791015625,
-0.005756378173828125,
-0.005901336669921875,
0.0277252197265625,
0.0229339599609375,
0.0014200210571289062,
-0.06182861328125,
-0.0241546630859375,
-0.033599853515625,
-0.055023193359375,
0.052581787109375,
0.01222991943359375,
0.0308380126953125,
-0.02740478515625,
0.0144195556640625,
0.021240234375,
0.018035888671875,
-0.003238677978515625,
-0.00775146484375,
0.03875732421875,
-0.07086181640625,
0.00897216796875,
0.028289794921875,
0.0280609130859375,
0.0078582763671875,
-0.02862548828125,
0.01412200927734375,
-0.02093505859375,
0.01070404052734375,
-0.01081085205078125,
0.002925872802734375,
0.02313232421875,
-0.032806396484375,
0.001781463623046875,
0.026275634765625,
-0.004985809326171875,
-0.01345062255859375,
-0.0379638671875,
0.0225677490234375,
0.0290374755859375,
-0.00295257568359375,
-0.0095672607421875,
-0.0074920654296875,
0.019744873046875,
-0.0026721954345703125,
0.00876617431640625,
-0.051177978515625,
0.013824462890625,
-0.021087646484375,
0.0269775390625,
-0.01459503173828125,
-0.025421142578125,
-0.0186004638671875,
-0.0091400146484375,
-0.01508331298828125,
-0.012298583984375,
-0.035247802734375,
0.0245819091796875,
-0.0007543563842773438,
0.003993988037109375,
-0.0025730133056640625,
0.03326416015625,
-0.01338958740234375,
0.0217437744140625,
0.0258026123046875,
-0.040679931640625,
0.05401611328125,
-0.041168212890625,
-0.0255279541015625,
0.0193023681640625,
0.070556640625,
0.078857421875,
-0.00833892822265625,
-0.00498199462890625,
-0.0333251953125,
-0.0006504058837890625,
-0.017242431640625,
0.00042557716369628906,
-0.0283050537109375,
0.0322265625,
-0.048675537109375,
0.009033203125,
-0.0333251953125,
0.0504150390625,
-0.0229949951171875,
-0.00635528564453125,
-0.001888275146484375,
0.01078033447265625,
0.0027790069580078125,
-0.0065460205078125,
-0.0171661376953125,
0.01354217529296875,
-0.037322998046875,
-0.001659393310546875,
-0.052398681640625,
0.0198974609375,
0.0906982421875,
0.0477294921875,
0.021392822265625,
-0.01294708251953125,
0.0162506103515625,
-0.01258087158203125,
0.01910400390625,
0.01149749755859375,
0.005466461181640625,
-0.046722412109375,
-0.012115478515625,
0.004642486572265625,
0.045135498046875,
0.0204315185546875,
0.0214080810546875,
0.0142669677734375,
-0.0119171142578125,
-0.0191192626953125,
0.029205322265625,
-0.003936767578125,
-0.04254150390625,
0.040069580078125,
0.057525634765625,
0.031524658203125,
0.015380859375,
-0.0037136077880859375,
0.032470703125,
0.0305328369140625,
0.0223541259765625,
-0.0189056396484375,
0.022735595703125,
0.0168609619140625,
-0.0240020751953125,
0.039093017578125,
-0.04376220703125,
-0.00643157958984375,
0.026641845703125,
-0.0148773193359375,
0.049835205078125,
0.032684326171875,
0.0357666015625,
0.036376953125,
0.0214691162109375,
-0.00543975830078125,
-0.050384521484375,
0.04034423828125,
0.0123748779296875,
-0.023956298828125,
-0.007266998291015625,
-0.040130615234375,
0.0171661376953125,
0.0301055908203125,
-0.029541015625,
-0.03594970703125,
0.0171661376953125,
0.0258026123046875,
0.0517578125,
0.01389312744140625,
0.0010089874267578125,
-0.0220794677734375,
-0.014068603515625,
0.0208892822265625,
-0.02203369140625,
-0.02227783203125,
0.00939178466796875,
0.0033702850341796875,
-0.021881103515625,
0.00708770751953125,
0.034515380859375,
-0.043243408203125,
0.0506591796875,
-0.0286712646484375,
-0.07550048828125,
0.006500244140625,
-0.0350341796875,
0.024444580078125,
0.0121307373046875,
0.0264892578125,
0.0005025863647460938,
-0.0141448974609375,
-0.0201416015625,
0.00858306884765625,
-0.0161590576171875,
-0.02081298828125,
-0.007434844970703125,
0.050445556640625,
-0.0254364013671875,
0.02410888671875,
-0.033447265625,
-0.03759765625,
-0.007190704345703125,
0.0262908935546875,
-0.01556396484375,
-0.01220703125,
-0.00994110107421875,
-0.00043082237243652344,
-0.023406982421875,
-0.0018367767333984375,
0.0185546875,
0.0238800048828125,
-0.0198974609375,
0.017822265625,
-0.0015468597412109375,
0.0098876953125,
-0.0211029052734375,
-0.07122802734375,
0.0102386474609375,
0.035736083984375,
0.0298614501953125,
-0.024017333984375,
-0.03802490234375,
-0.0115814208984375,
0.04229736328125,
0.0100555419921875,
0.00872039794921875,
0.0012683868408203125,
0.020263671875,
0.0545654296875,
-0.0399169921875,
-0.0069427490234375,
0.0182342529296875,
-0.0875244140625,
0.0016889572143554688,
0.046783447265625,
-0.003093719482421875,
0.0406494140625,
-0.0039520263671875,
0.0145263671875,
-0.041717529296875,
-0.0318603515625,
0.030120849609375,
-0.04852294921875,
0.01233673095703125,
-0.0089569091796875,
-0.0106201171875,
-0.021881103515625,
-0.034881591796875,
0.0236968994140625,
0.034088134765625,
-0.028045654296875,
-0.0003979206085205078,
0.0013856887817382812,
0.00952911376953125,
0.0159454345703125,
-0.0125579833984375,
0.0017957687377929688,
0.0080108642578125,
-0.0027828216552734375,
-0.01611328125,
-0.0223388671875,
-0.006103515625,
-0.003200531005859375,
0.009979248046875,
-0.025848388671875,
0.03216552734375,
0.038726806640625,
-0.03570556640625,
-0.04168701171875,
0.0116119384765625,
0.0238494873046875,
-0.033233642578125,
0.0301666259765625,
-0.0025691986083984375,
-0.018310546875,
0.04644775390625,
-0.032196044921875,
0.00568389892578125,
-0.007904052734375,
0.03411865234375,
0.05755615234375,
0.04315185546875,
-0.042449951171875,
0.0196075439453125,
-0.0166015625,
0.01390838623046875,
0.016845703125,
0.0105133056640625,
-0.01021575927734375,
-0.0121612548828125,
0.0318603515625,
0.0008034706115722656,
0.085205078125,
-0.056610107421875,
-0.065673828125,
-0.006870269775390625,
0.0210418701171875,
-0.03607177734375,
-0.021575927734375,
-0.07568359375,
-0.0254974365234375,
0.0141143798828125,
-0.00946044921875,
0.00540924072265625,
0.0218505859375,
-0.0162811279296875,
0.024688720703125,
-0.01366424560546875,
-0.0207061767578125,
-0.006649017333984375,
-0.054351806640625,
-0.027679443359375,
-0.0255279541015625,
0.007061004638671875,
-0.0031757354736328125,
-0.00008481740951538086,
-0.00007998943328857422,
-0.02960205078125,
-0.03497314453125,
-0.05322265625,
0.03143310546875,
0.0015172958374023438,
-0.059051513671875,
0.0201263427734375,
-0.06524658203125,
-0.004669189453125,
-0.005405426025390625,
0.056915283203125,
0.01070404052734375,
-0.01531219482421875,
0.003612518310546875,
0.0036182403564453125,
-0.02154541015625,
0.035400390625,
-0.014892578125,
-0.013702392578125,
0.040252685546875,
0.04302978515625,
-0.027984619140625,
0.007015228271484375,
-0.0112152099609375,
-0.024658203125,
0.052154541015625,
0.0251617431640625,
-0.0223388671875,
-0.01438140869140625,
0.0078582763671875,
-0.01438140869140625,
0.0161895751953125,
-0.0199127197265625,
-0.01319122314453125,
0.024688720703125,
-0.004241943359375,
-0.002033233642578125,
0.005786895751953125,
-0.01342010498046875,
-0.029266357421875,
-0.0249786376953125,
-0.0357666015625,
0.006687164306640625,
-0.017059326171875,
0.021820068359375,
-0.0192108154296875,
-0.04541015625,
0.034088134765625,
-0.0496826171875,
0.0203857421875,
-0.038299560546875,
-0.015655517578125,
-0.006504058837890625,
0.1031494140625,
-0.020477294921875,
-0.013519287109375,
0.0151824951171875,
0.037872314453125,
-0.08184814453125,
-0.048004150390625,
-0.05621337890625,
0.00356292724609375,
-0.03955078125,
-0.040313720703125,
-0.0154266357421875,
-0.02874755859375,
-0.0178375244140625,
0.065185546875,
-0.0309295654296875,
-0.011260986328125,
0.0228424072265625,
0.0036144256591796875,
0.032623291015625,
-0.01139068603515625,
-0.0089569091796875,
-0.0108489990234375,
-0.00920867919921875,
-0.01197052001953125,
-0.06689453125,
-0.0081024169921875,
-0.038726806640625,
0.06207275390625,
0.0229339599609375,
-0.00942230224609375,
0.003513336181640625,
0.0394287109375,
-0.0031528472900390625,
0.007411956787109375,
0.02398681640625,
0.007427215576171875,
0.01898193359375,
0.0128021240234375,
0.00855255126953125,
-0.007038116455078125,
-0.01279449462890625,
-0.05224609375,
-0.0457763671875,
-0.018157958984375,
-0.031890869140625,
0.04632568359375,
-0.01410675048828125,
0.0034389495849609375,
-0.051177978515625,
-0.0178985595703125,
-0.00843048095703125,
0.0087127685546875,
-0.0148773193359375,
0.0165252685546875,
-0.04022216796875,
-0.06658935546875,
0.08612060546875,
0.01207733154296875,
0.0141754150390625,
-0.0143585205078125,
0.0726318359375,
-0.002437591552734375,
-0.04052734375,
-0.036834716796875,
0.0343017578125,
0.04693603515625,
0.0267486572265625,
0.007274627685546875,
0.00995635986328125,
-0.034881591796875,
0.047760009765625,
0.03509521484375,
0.041748046875,
-0.0218963623046875,
0.0052337646484375,
-0.01385498046875,
-0.0098724365234375,
0.0289306640625,
0.02020263671875,
-0.0214691162109375,
0.02545166015625,
-0.0075836181640625,
0.005084991455078125,
-0.00023472309112548828,
-0.00628662109375,
0.0029659271240234375,
-0.0301055908203125,
-0.01418304443359375,
-0.057037353515625,
0.0241546630859375,
-0.032196044921875,
-0.049835205078125,
-0.028106689453125,
0.0010089874267578125,
-0.035858154296875,
-0.0234527587890625,
-0.00942230224609375,
-0.01617431640625,
-0.0352783203125,
0.0235595703125,
0.02099609375,
-0.0233917236328125,
0.004619598388671875,
-0.0162811279296875,
-0.0274658203125,
0.09576416015625,
0.032073974609375,
-0.034332275390625,
0.035858154296875,
-0.020843505859375,
0.02569580078125,
-0.0170745849609375,
0.00791168212890625,
0.051116943359375,
-0.0003807544708251953,
-0.0167388916015625,
-0.01506805419921875,
-0.03857421875,
-0.0104522705078125,
-0.05670166015625,
0.029998779296875,
0.00658416748046875,
-0.01416015625,
0.003509521484375,
0.0743408203125,
0.037872314453125,
0.0147247314453125,
-0.030426025390625,
0.0287628173828125,
0.03564453125,
-0.0286407470703125,
0.0177001953125,
0.037109375,
-0.01079559326171875,
-0.03668212890625,
0.009857177734375,
-0.00632476806640625,
0.0021915435791015625,
0.0263824462890625,
0.033447265625,
0.03167724609375,
0.01190185546875,
-0.0244293212890625,
-0.022613525390625,
0.011260986328125,
-0.0003352165222167969,
-0.0521240234375,
-0.0404052734375,
-0.007259368896484375,
0.0242919921875,
0.0185546875,
-0.056854248046875,
0.00833892822265625,
-0.08966064453125,
-0.09185791015625,
-0.08251953125,
0.007480621337890625,
-0.005401611328125,
-0.060577392578125,
-0.0828857421875,
-0.0212860107421875,
-0.01314544677734375,
-0.0257110595703125,
-0.01035308837890625,
-0.0006952285766601562,
-0.002170562744140625,
-0.0247650146484375,
0.0280609130859375,
0.0151214599609375,
0.01104736328125,
-0.035888671875,
-0.0019855499267578125,
-0.027252197265625,
-0.032562255859375,
0.0654296875,
0.0199737548828125,
-0.028594970703125,
0.0190887451171875,
-0.0086669921875,
0.0020427703857421875,
0.0119171142578125,
-0.02392578125,
-0.043853759765625,
-0.0279998779296875,
-0.00754547119140625,
0.03253173828125,
-0.0289764404296875,
-0.0017995834350585938,
-0.0045013427734375,
-0.0015974044799804688,
-0.0211029052734375,
0.0285186767578125,
-0.00910186767578125,
0.01496124267578125,
0.0031261444091796875,
0.0227508544921875,
0.0118255615234375,
-0.00519561767578125,
-0.01499176025390625,
-0.0243988037109375,
0.00785064697265625,
0.00527191162109375,
-0.023406982421875,
-0.05108642578125,
0.04571533203125,
-0.0218963623046875,
0.04364013671875,
-0.022979736328125,
0.035400390625,
-0.00525665283203125,
0.003871917724609375,
-0.019683837890625,
-0.0184478759765625,
-0.0274200439453125,
0.0015888214111328125,
0.023834228515625,
-0.0182342529296875,
0.01221466064453125,
-0.00530242919921875,
-0.0169677734375,
0.018218994140625,
-0.01067352294921875,
-0.0006046295166015625,
0.0279541015625,
-0.02349853515625,
0.03997802734375,
0.032470703125,
-0.02703857421875,
-0.004486083984375,
-0.0021266937255859375,
-0.0098419189453125,
0.0023097991943359375,
-0.0423583984375,
-0.036651611328125,
0.056549072265625,
0.0584716796875,
-0.0011539459228515625,
-0.01284027099609375,
0.043792724609375,
-0.0216827392578125,
0.04638671875,
0.0821533203125,
0.092529296875,
-0.12548828125,
0.032867431640625,
0.03839111328125,
0.0005927085876464844,
0.0401611328125,
0.0164947509765625,
-0.049163818359375,
-0.0577392578125,
0.048187255859375,
-0.0390625,
-0.0128173828125,
0.0247802734375,
0.0242156982421875,
0.000008702278137207031,
-0.048492431640625,
0.058929443359375,
0.01959228515625,
-0.0166168212890625,
0.017791748046875,
0.01430511474609375,
0.00872802734375,
0.0013742446899414062,
0.0103607177734375,
-0.003936767578125,
-0.043731689453125,
-0.08331298828125,
-0.0400390625,
-0.01141357421875,
-0.052978515625,
0.0016803741455078125,
0.028594970703125,
0.0714111328125,
0.04443359375,
0.021575927734375,
-0.03643798828125,
0.0189208984375,
0.0285186767578125,
0.038970947265625,
-0.0225677490234375,
-0.0182647705078125,
0.0131683349609375,
-0.02142333984375,
-0.00353240966796875,
-0.004184722900390625,
-0.004299163818359375,
-0.036102294921875,
-0.01922607421875,
0.1146240234375,
-0.0013637542724609375,
-0.035003662109375,
-0.0040283203125,
-0.0089111328125,
-0.006908416748046875,
0.0244293212890625,
0.007720947265625,
-0.01910400390625,
-0.0430908203125,
0.02960205078125,
-0.0714111328125,
0.0006232261657714844,
0.03265380859375,
-0.08734130859375,
0.09625244140625,
0.037994384765625,
0.0251312255859375,
-0.0134124755859375,
0.03118896484375,
-0.036529541015625,
-0.004581451416015625,
-0.04840087890625,
0.04376220703125,
0.0008463859558105469,
0.059326171875,
0.0106658935546875,
0.0237274169921875,
0.03582763671875,
-0.0191497802734375,
0.033966064453125,
0.0194854736328125,
-0.0330810546875,
-0.01708984375,
-0.016265869140625,
0.01323699951171875,
-0.0121917724609375,
0.032318115234375,
-0.0051116943359375,
0.027587890625,
0.06524658203125,
0.00984954833984375,
0.06256103515625,
-0.0243072509765625,
-0.0377197265625,
-0.001956939697265625,
0.0176239013671875,
0.0179290771484375,
-0.012786865234375,
0.0418701171875,
-0.008636474609375,
-0.00971221923828125,
0.00728607177734375,
-0.02410888671875,
-0.005035400390625,
0.055084228515625,
0.0190277099609375,
0.0161895751953125,
0.059967041015625,
-0.0408935546875,
0.04833984375,
0.003269195556640625,
-0.019866943359375,
0.0157928466796875,
-0.0141754150390625,
0.033843994140625,
0.0154571533203125,
-0.0124053955078125,
0.0217132568359375,
0.045379638671875,
0.050506591796875,
0.03143310546875,
0.03265380859375,
-0.01959228515625,
0.007244110107421875,
0.0160675048828125,
0.054473876953125,
-0.0341796875,
-0.02520751953125,
0.007282257080078125,
-0.0003745555877685547,
0.019622802734375,
-0.00518798828125,
0.03216552734375,
-0.06475830078125,
-0.023345947265625,
-0.047576904296875,
0.039520263671875,
0.066162109375,
-0.034088134765625,
0.00679779052734375,
0.05029296875,
-0.053619384765625,
0.056060791015625,
-0.0212860107421875,
0.00351715087890625,
-0.00446319580078125,
0.00038814544677734375,
0.00917816162109375,
0.029510498046875,
0.056915283203125,
0.004154205322265625,
0.0005979537963867188,
-0.03302001953125,
-0.006671905517578125,
0.0024242401123046875,
0.0045623779296875,
0.004886627197265625,
0.015106201171875,
0.02374267578125,
-0.033538818359375,
0.051361083984375,
0.034271240234375,
0.0219268798828125,
-0.0153656005859375,
-0.01983642578125,
0.044921875,
-0.035369873046875,
0.01351165771484375,
-0.01181793212890625,
0.02880859375,
0.0112762451171875,
-0.00432586669921875,
-0.0239715576171875,
0.048553466796875,
0.0102386474609375,
0.02423095703125,
0.04205322265625,
0.0078582763671875,
0.0042266845703125,
0.02899169921875,
0.01861572265625,
0.02545166015625,
0.060791015625,
0.01018524169921875,
0.00809478759765625,
-0.043182373046875,
-0.0037097930908203125,
0.0097198486328125,
0.0261993408203125,
0.019439697265625,
0.0224609375,
0.00629425048828125,
-0.000659942626953125,
0.04010009765625,
-0.017608642578125,
0.0180816650390625,
-0.0011186599731445312,
-0.0007481575012207031,
-0.00748443603515625,
-0.049896240234375,
-0.0142974853515625,
-0.01007843017578125,
0.0274658203125,
-0.0036106109619140625,
0.0205230712890625,
-0.0078582763671875,
0.0139007568359375,
-0.06866455078125,
0.0149688720703125,
-0.0294647216796875,
-0.055694580078125,
0.036712646484375,
0.040924072265625,
-0.00200653076171875,
-0.00839996337890625,
-0.01290130615234375,
0.06793212890625,
-0.01021575927734375,
0.006626129150390625,
0.051666259765625,
-0.050872802734375,
-0.002704620361328125,
0.0013408660888671875,
0.01526641845703125,
-0.020782470703125,
-0.03326416015625,
0.002422332763671875,
0.030120849609375,
0.01318359375,
0.00960540771484375,
-0.0033168792724609375,
0.01861572265625,
0.0220184326171875,
0.019989013671875,
0.011993408203125,
0.0191497802734375,
-0.006107330322265625,
0.006168365478515625,
-0.0193634033203125,
0.0107879638671875,
-0.02960205078125,
-0.0273895263671875,
0.006893157958984375,
-0.00860595703125,
-0.01210784912109375,
0.00908660888671875,
-0.0234375,
0.051239013671875,
-0.020111083984375,
0.046173095703125,
0.006694793701171875,
-0.003597259521484375,
-0.021697998046875,
0.034637451171875,
0.0203704833984375,
0.0024547576904296875,
-0.0223846435546875,
-0.02899169921875,
-0.01045989990234375,
0.01497650146484375,
-0.0215911865234375,
-0.0379638671875,
-0.0693359375,
0.0009226799011230469,
-0.0212554931640625,
-0.0028324127197265625,
-0.0819091796875,
0.0361328125,
0.0089569091796875,
0.032379150390625,
-0.06573486328125,
-0.0723876953125,
0.057708740234375,
0.054229736328125,
-0.03839111328125,
-0.011810302734375,
-0.002376556396484375,
-0.03558349609375,
-0.0258941650390625,
0.00836944580078125,
0.03717041015625,
0.017730712890625,
0.0015125274658203125,
0.036285400390625,
-0.0244598388671875,
0.07550048828125,
-0.0679931640625,
-0.03179931640625,
0.02777099609375,
-0.02313232421875,
0.0294647216796875,
-0.07403564453125,
-0.0307769775390625,
-0.06573486328125,
0.033355712890625,
-0.0384521484375,
-0.009857177734375,
-0.0180206298828125,
-0.061248779296875,
-0.064697265625,
0.02813720703125,
-0.005107879638671875,
-0.0382080078125,
0.03179931640625,
-0.025146484375,
-0.0263824462890625,
0.002277374267578125,
0.00823974609375,
-0.0241241455078125,
-0.01346588134765625,
0.0173492431640625,
0.016204833984375,
0.01123046875,
0.0042572021484375,
0.0257415771484375,
-0.0516357421875,
0.031494140625,
0.0038204193115234375,
0.01177215576171875,
0.0244293212890625,
-0.0180816650390625,
0.028167724609375,
0.032135009765625,
-0.031463623046875,
-0.0036983489990234375,
-0.00783538818359375,
-0.032867431640625,
-0.02197265625,
-0.017913818359375,
-0.03692626953125,
-0.018341064453125,
0.09765625,
0.037567138671875,
0.0243377685546875,
-0.01331329345703125,
-0.037689208984375,
-0.040496826171875,
-0.026947021484375,
0.004169464111328125,
0.0207366943359375,
-0.061279296875,
0.01519012451171875,
0.01165008544921875,
-0.0198211669921875,
0.0129241943359375,
-0.007415771484375,
-0.0071258544921875,
0.0068817138671875,
0.026214599609375,
-0.0450439453125,
0.058135986328125,
-0.004993438720703125,
0.0325927734375,
-0.02935791015625,
-0.03021240234375,
0.01055145263671875,
-0.002071380615234375,
-0.0214691162109375,
0.0141754150390625,
0.03497314453125,
0.00839996337890625,
-0.006214141845703125,
0.03668212890625,
0.020111083984375,
-0.007419586181640625,
-0.020172119140625,
-0.027862548828125,
-0.031982421875,
0.00823974609375,
0.003101348876953125,
0.00908660888671875,
-0.0012836456298828125,
0.00010311603546142578,
0.01959228515625,
0.0236968994140625,
-0.00978851318359375,
-0.01297760009765625,
-0.0162353515625,
0.02587890625,
0.00678253173828125,
-0.023468017578125,
0.028594970703125,
-0.0377197265625,
-0.00579071044921875,
0.0090484619140625,
-0.006366729736328125,
-0.048828125,
0.00478363037109375,
0.043914794921875,
0.0186614990234375,
0.017181396484375
] |
9de6f2d8a69ad91440e92d74ac3cb0b8443e04e6 | Wordpress Stackexchange
Q: Transfer Subdomain site to Multisite setup I have two live subdomains on a URL, let's call them sd1.mysite.com and sd2.mysite.com. I am looking to turn mysite.com into a Multisite environment, with both those subdomains being apart of it.
My question is, whilst I expect moving the files into the relevant Multisite folders to be fairly straightforward, is there anything special that needs to be done with the databases or are there any settings I may need to be aware of?
Thanks
A: Assuming sd1.mysite.com and sd2.mysite.com are single WordPress installs.
You can create mysite.com as a WordPress Multisite, you can then export the posts, users, etc and reimport to the new multisite version of sd1 or sd2 using: https://en-ca.wordpress.org/plugins/wordpress-importer/
You will need to include the themes, plugins as well in the new multisite install.
If sd1.mysite.com and sd2.mysite.com are not single WordPress installs and just subdomains, you just need to point the subdomains to mysite.com IP address.
Edit:
Export the posts and import using the importer listed above. The sd1 and sd2 databases will no longer be needed as mysite.com DB now holds everything.
| Q: Transfer Subdomain site to Multisite setup I have two live subdomains on a URL, let's call them sd1.mysite.com and sd2.mysite.com. I am looking to turn mysite.com into a Multisite environment, with both those subdomains being apart of it.
My question is, whilst I expect moving the files into the relevant Multisite folders to be fairly straightforward, is there anything special that needs to be done with the databases or are there any settings I may need to be aware of?
Thanks
A: Assuming sd1.mysite.com and sd2.mysite.com are single WordPress installs.
You can create mysite.com as a WordPress Multisite, you can then export the posts, users, etc and reimport to the new multisite version of sd1 or sd2 using: https://en-ca.wordpress.org/plugins/wordpress-importer/
You will need to include the themes, plugins as well in the new multisite install.
If sd1.mysite.com and sd2.mysite.com are not single WordPress installs and just subdomains, you just need to point the subdomains to mysite.com IP address.
Edit:
Export the posts and import using the importer listed above. The sd1 and sd2 databases will no longer be needed as mysite.com DB now holds everything.
A: I had pretty good experiences using WP-CLI and the WP-CLI plugin MU-Migration. You most certainly have to install the latter, depending on your environment the former too, consult the documentation on that.
Afterwards exporting can look like:
wp mu-migration export all site.zip --plugins --themes --uploads
And importing:
wp mu-migration import all site.zip
This is the most basic rundown, more parameters are available. The documentation, linked above, is informative and straightforward. Just to clarify, this works for migrating a single site to a multisite setup too, see the following article for this scenario and a general rundown, the article will be helpful to get started.
Obviously backups are mandatory for any crucial operation, so better be safe than sorry.
In my opinion those are great tools, which can make your life much easier, maybe you want to take a look at them.
A: There were two articles about how to migrate Single WP sites into MultiSite and Migrate Subdomains into MultiSite, which helped me much. The whole point is that if you are not going to use migrator plugins, then you have to do very accurate manual modifications with phpMyAdmin. If you are not familiar with that (or don't have anyone to work with that), then you can't simply do the process, and you will need a help of migration plugins (there exists commercial plugins, which do exactly what you want), or hire a programmer to do that.
A: Have you checked to ensure all your current plugins work in a multi-site setup? The last multi-site setup I worked on ran into a number of limitations because certain plugins didn't work multi-site the way you expect them to. We ended up having some plugins on the network, and others that had to be individually installed on each site in the network. Not a biggie, but when you multiply that hundreds of times, it can turn into a real hassle!
Adding to that, even plugins that do work multi-site can require basic setup steps repeated on each site in the network, so try and identify plugins that allow you to centralise as much as possible.
Also, this is an obvious one, but double-check, and then triple-check that you have the first two perfectly setup, before you clone them to the other sites in the network, because any manual functionality or setup can turn into a major chore.
| wordpress | {
"language": "en",
"length": 581,
"provenance": "stackexchange_00019.jsonl.gz:491332",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/323218"
} | [
0.050872802734375,
0.0025615692138671875,
-0.01377105712890625,
-0.007610321044921875,
-0.0035762786865234375,
-0.040130615234375,
0.0350341796875,
-0.040313720703125,
0.01293182373046875,
0.0190582275390625,
0.005161285400390625,
0.010223388671875,
-0.041168212890625,
-0.0298309326171875,
-0.0095672607421875,
-0.01485443115234375,
0.0347900390625,
-0.01085662841796875,
-0.007781982421875,
-0.005916595458984375,
-0.026702880859375,
0.037261962890625,
-0.00853729248046875,
0.060760498046875,
0.018218994140625,
-0.0423583984375,
0.042510986328125,
0.01227569580078125,
0.020355224609375,
-0.0010585784912109375,
0.0290985107421875,
-0.02362060546875,
0.019622802734375,
0.003620147705078125,
-0.0094146728515625,
-0.028472900390625,
0.0166015625,
-0.01202392578125,
-0.00945281982421875,
0.03570556640625,
0.020111083984375,
-0.004924774169921875,
0.07086181640625,
0.0234375,
0.0191497802734375,
-0.05126953125,
0.04888916015625,
-0.05511474609375,
0.01727294921875,
-0.0030517578125,
-0.0012540817260742188,
0.01003265380859375,
0.0168304443359375,
-0.0157012939453125,
-0.022491455078125,
-0.035400390625,
-0.020843505859375,
0.024688720703125,
0.034393310546875,
0.02606201171875,
-0.0040740966796875,
-0.004627227783203125,
-0.002544403076171875,
-0.01251220703125,
-0.055877685546875,
-0.0009446144104003906,
-0.05755615234375,
-0.01268768310546875,
-0.053436279296875,
-0.046600341796875,
0.048126220703125,
-0.0284576416015625,
0.0248260498046875,
-0.018798828125,
0.0236358642578125,
0.007236480712890625,
-0.04266357421875,
-0.00383758544921875,
0.041778564453125,
-0.01180267333984375,
-0.02117919921875,
-0.042205810546875,
-0.02252197265625,
-0.04144287109375,
0.0096282958984375,
-0.025146484375,
-0.00965118408203125,
0.0222015380859375,
-0.0110321044921875,
0.004947662353515625,
-0.0186004638671875,
-0.0206451416015625,
-0.038360595703125,
0.053924560546875,
0.01107025146484375,
0.0002200603485107422,
0.0079803466796875,
0.051361083984375,
-0.0169219970703125,
0.0165252685546875,
-0.0094146728515625,
-0.023651123046875,
0.0097198486328125,
-0.0389404296875,
0.0086517333984375,
0.05230712890625,
0.01488494873046875,
-0.038818359375,
0.01187896728515625,
0.0012445449829101562,
-0.00809478759765625,
0.038543701171875,
0.0031757354736328125,
-0.0156097412109375,
-0.033294677734375,
0.00830078125,
-0.00504302978515625,
0.004428863525390625,
-0.001995086669921875,
-0.0001901388168334961,
-0.027313232421875,
0.03179931640625,
-0.046722412109375,
-0.00225830078125,
0.003284454345703125,
-0.0047149658203125,
0.03704833984375,
-0.01276397705078125,
-0.04364013671875,
0.033935546875,
-0.01404571533203125,
0.0174407958984375,
0.03692626953125,
0.0277252197265625,
-0.01593017578125,
-0.012298583984375,
0.0111083984375,
0.0226593017578125,
0.0009560585021972656,
0.007213592529296875,
0.0162506103515625,
-0.060455322265625,
-0.0496826171875,
-0.0008673667907714844,
-0.0028324127197265625,
0.01105499267578125,
0.0243072509765625,
0.0171966552734375,
-0.028167724609375,
-0.035736083984375,
0.03485107421875,
-0.03143310546875,
0.040802001953125,
-0.0159149169921875,
-0.00553131103515625,
-0.07232666015625,
-0.00806427001953125,
-0.042816162109375,
0.0394287109375,
-0.03179931640625,
-0.0107269287109375,
-0.0002758502960205078,
0.0528564453125,
0.032379150390625,
-0.00554656982421875,
0.006557464599609375,
-0.00037550926208496094,
-0.004993438720703125,
0.0187835693359375,
-0.01403045654296875,
-0.04437255859375,
0.01506805419921875,
0.05322265625,
0.0265045166015625,
0.01361846923828125,
0.049713134765625,
0.0114593505859375,
-0.0126190185546875,
0.0267791748046875,
0.0478515625,
-0.0005693435668945312,
-0.004451751708984375,
0.0416259765625,
-0.00379180908203125,
-0.0297393798828125,
0.0207977294921875,
0.0079345703125,
0.02386474609375,
0.0065460205078125,
0.020782470703125,
-0.0045013427734375,
0.032379150390625,
-0.043365478515625,
-0.0168609619140625,
-0.00682830810546875,
0.01959228515625,
0.0294952392578125,
0.0221405029296875,
0.01340484619140625,
-0.0103912353515625,
-0.051544189453125,
0.00862884521484375,
-0.008148193359375,
0.054779052734375,
0.0416259765625,
-0.0177001953125,
0.01128387451171875,
0.00617218017578125,
0.04327392578125,
0.0192718505859375,
-0.0168304443359375,
0.01334381103515625,
-0.00489044189453125,
-0.0411376953125,
-0.03839111328125,
0.0111083984375,
-0.03497314453125,
0.03851318359375,
-0.007495880126953125,
0.03515625,
-0.0105438232421875,
-0.035675048828125,
-0.012542724609375,
-0.0272369384765625,
0.038055419921875,
-0.01526641845703125,
-0.00036525726318359375,
-0.032440185546875,
0.03070068359375,
0.020751953125,
-0.032958984375,
0.01331329345703125,
0.026580810546875,
0.0228118896484375,
-0.032806396484375,
0.004367828369140625,
0.017425537109375,
-0.0201263427734375,
0.00978851318359375,
0.03668212890625,
0.0019741058349609375,
0.01531982421875,
-0.00412750244140625,
0.0477294921875,
0.0167083740234375,
0.005222320556640625,
0.023590087890625,
0.02215576171875,
0.0273590087890625,
0.09393310546875,
-0.013702392578125,
0.0252685546875,
-0.005985260009765625,
-0.04766845703125,
0.005889892578125,
0.047332763671875,
-0.01580810546875,
-0.029449462890625,
0.0201568603515625,
-0.038848876953125,
0.0258026123046875,
-0.03863525390625,
-0.045166015625,
-0.01332855224609375,
0.031219482421875,
0.0084228515625,
0.038970947265625,
0.0301513671875,
-0.01395416259765625,
0.0196990966796875,
-0.0001571178436279297,
-0.05560302734375,
-0.00453948974609375,
0.051025390625,
0.050384521484375,
-0.0013971328735351562,
-0.037933349609375,
-0.0189971923828125,
-0.0050201416015625,
0.022369384765625,
-0.010223388671875,
0.0250396728515625,
-0.0243682861328125,
-0.00954437255859375,
-0.01922607421875,
-0.01910400390625,
0.0024890899658203125,
0.015869140625,
-0.006511688232421875,
-0.02838134765625,
0.0033206939697265625,
0.00481414794921875,
-0.051361083984375,
0.048583984375,
-0.01529693603515625,
-0.040802001953125,
0.10760498046875,
-0.073974609375,
0.0494384765625,
-0.035369873046875,
0.054840087890625,
0.05206298828125,
0.002292633056640625,
-0.0127410888671875,
-0.0191802978515625,
0.01080322265625,
0.004428863525390625,
-0.008544921875,
-0.00885772705078125,
-0.021636962890625,
-0.06231689453125,
-0.016845703125,
0.012054443359375,
-0.031280517578125,
0.00673675537109375,
-0.01551055908203125,
0.0029048919677734375,
-0.0090179443359375,
-0.02789306640625,
-0.00391387939453125,
-0.04571533203125,
-0.0252685546875,
-0.00452423095703125,
0.018585205078125,
-0.01282501220703125,
0.007015228271484375,
0.022796630859375,
0.01456451416015625,
-0.0047149658203125,
-0.06103515625,
-0.04248046875,
-0.0653076171875,
-0.0587158203125,
-0.0087738037109375,
0.01474761962890625,
0.00702667236328125,
0.0184326171875,
-0.0219268798828125,
0.003467559814453125,
0.0117034912109375,
0.036285400390625,
0.04364013671875,
0.005191802978515625,
-0.02728271484375,
-0.014556884765625,
-0.004215240478515625,
-0.00414276123046875,
0.002696990966796875,
0.01165008544921875,
0.0114288330078125,
-0.0153045654296875,
-0.018524169921875,
0.0238800048828125,
0.032745361328125,
0.00826263427734375,
-0.054443359375,
-0.009063720703125,
0.0278778076171875,
-0.060791015625,
-0.045440673828125,
0.029449462890625,
-0.03741455078125,
-0.00531005859375,
-0.0172119140625,
-0.00984954833984375,
-0.022979736328125,
-0.0038127899169921875,
-0.01568603515625,
-0.0016145706176757812,
0.0011806488037109375,
0.00185394287109375,
-0.0137481689453125,
-0.0017032623291015625,
-0.004364013671875,
-0.01873779296875,
0.0013828277587890625,
0.007640838623046875,
-0.0182037353515625,
-0.00440216064453125,
-0.00963592529296875,
-0.0088653564453125,
-0.0439453125,
0.038360595703125,
-0.0286865234375,
-0.0491943359375,
0.0443115234375,
-0.03851318359375,
0.01241302490234375,
-0.051971435546875,
-0.0296478271484375,
-0.015838623046875,
0.0936279296875,
-0.04052734375,
-0.0198974609375,
0.004016876220703125,
0.0007691383361816406,
0.0244140625,
-0.0247955322265625,
-0.040924072265625,
-0.01503753662109375,
-0.00612640380859375,
-0.040557861328125,
-0.0433349609375,
-0.00714874267578125,
0.0284423828125,
-0.049560546875,
0.0506591796875,
-0.0498046875,
0.0193023681640625,
-0.037841796875,
-0.002414703369140625,
-0.0145263671875,
0.0010995864868164062,
-0.04193115234375,
-0.0022373199462890625,
-0.02752685546875,
-0.041839599609375,
-0.0146942138671875,
0.01496124267578125,
0.0304107666015625,
-0.01611328125,
0.005626678466796875,
-0.0137481689453125,
0.02288818359375,
-0.05828857421875,
0.04449462890625,
-0.034332275390625,
0.050018310546875,
-0.0276641845703125,
-0.01551055908203125,
-0.0277557373046875,
-0.017822265625,
-0.02569580078125,
-0.0704345703125,
-0.023223876953125,
-0.0244598388671875,
-0.0173492431640625,
0.046783447265625,
-0.021820068359375,
0.021453857421875,
-0.0609130859375,
-0.0156707763671875,
0.00012600421905517578,
-0.030670166015625,
-0.0005340576171875,
-0.032073974609375,
0.01305389404296875,
-0.033843994140625,
0.036651611328125,
0.00220489501953125,
-0.007274627685546875,
-0.001354217529296875,
0.046905517578125,
0.0095977783203125,
-0.03155517578125,
-0.026611328125,
-0.02423095703125,
0.00628662109375,
-0.00978851318359375,
0.0494384765625,
0.041595458984375,
0.0264739990234375,
-0.033294677734375,
-0.022918701171875,
0.00904083251953125,
-0.01708984375,
-0.0171356201171875,
0.0050201416015625,
-0.0550537109375,
0.036773681640625,
0.0090179443359375,
0.0257720947265625,
0.0164337158203125,
0.004878997802734375,
-0.04827880859375,
-0.0163116455078125,
0.050933837890625,
0.017974853515625,
-0.01511383056640625,
-0.06695556640625,
-0.01043701171875,
-0.00047588348388671875,
0.00789642333984375,
0.008880615234375,
-0.0002911090850830078,
0.0035552978515625,
-0.020782470703125,
0.004032135009765625,
-0.0102996826171875,
0.0105438232421875,
-0.0016908645629882812,
0.0220184326171875,
0.003032684326171875,
0.034210205078125,
-0.00814056396484375,
-0.0012044906616210938,
-0.00262451171875,
0.04766845703125,
0.0100250244140625,
-0.0096893310546875,
-0.06976318359375,
0.0098724365234375,
0.005443572998046875,
-0.00803375244140625,
0.01073455810546875,
0.0257568359375,
0.02197265625,
-0.00916290283203125,
-0.006488800048828125,
0.0242462158203125,
-0.0204620361328125,
-0.033538818359375,
-0.052520751953125,
-0.0211944580078125,
-0.0293426513671875,
-0.024139404296875,
0.056854248046875,
-0.039794921875,
0.01366424560546875,
0.00823974609375,
0.0024471282958984375,
0.0294647216796875,
0.0199127197265625,
0.019744873046875,
-0.0017557144165039062,
-0.0005803108215332031,
-0.0019388198852539062,
0.015960693359375,
-0.01021575927734375,
0.04388427734375,
0.024139404296875,
0.047515869140625,
0.04034423828125,
-0.0264739990234375,
-0.0129852294921875,
-0.04205322265625,
-0.0155181884765625,
0.04522705078125,
0.006671905517578125,
-0.0706787109375,
0.006473541259765625,
0.040740966796875,
-0.0085601806640625,
-0.040679931640625,
-0.00537872314453125,
-0.036865234375,
-0.0277099609375,
-0.024627685546875,
0.004314422607421875,
-0.037689208984375,
-0.012420654296875,
0.004150390625,
-0.00312042236328125,
-0.0254974365234375,
-0.0157318115234375,
-0.015655517578125,
-0.0159454345703125,
-0.007232666015625,
-0.026031494140625,
0.0302581787109375,
0.00010699033737182617,
-0.0029468536376953125,
-0.02130126953125,
-0.00470733642578125,
-0.05914306640625,
0.0056304931640625,
0.03179931640625,
-0.005977630615234375,
-0.041656494140625,
-0.00301361083984375,
-0.045928955078125,
-0.0033550262451171875,
0.06048583984375,
0.00713348388671875,
-0.03924560546875,
-0.0185699462890625,
0.0181732177734375,
0.0254364013671875,
-0.022125244140625,
-0.07855224609375,
0.0018377304077148438,
-0.05035400390625,
0.0110015869140625,
-0.06597900390625,
-0.053131103515625,
0.097900390625,
0.0034122467041015625,
0.0634765625,
0.01068878173828125,
0.060516357421875,
0.039642333984375,
-0.0236053466796875,
-0.01184844970703125,
-0.051666259765625,
0.00673675537109375,
0.012054443359375,
0.018096923828125,
0.026458740234375,
0.0028076171875,
0.01186370849609375,
-0.013946533203125,
0.0015058517456054688,
0.0030536651611328125,
-0.042205810546875,
-0.01788330078125,
-0.01305389404296875,
0.004913330078125,
-0.0408935546875,
-0.0296478271484375,
0.0311431884765625,
-0.004344940185546875,
0.00200653076171875,
0.01082611083984375,
-0.0269622802734375,
-0.0073394775390625,
0.03271484375,
0.0082550048828125,
0.0064239501953125,
0.050567626953125,
-0.04107666015625,
0.0007233619689941406,
0.0249176025390625,
-0.014862060546875,
0.03466796875,
-0.01318359375,
-0.00855255126953125,
0.01398468017578125,
-0.0165863037109375,
-0.034881591796875,
-0.017974853515625,
-0.040313720703125,
-0.0161590576171875,
0.0171966552734375,
0.037200927734375,
0.046966552734375,
-0.060577392578125,
-0.004302978515625,
0.00994110107421875,
-0.04736328125,
-0.0305328369140625,
-0.0095062255859375,
0.008453369140625,
-0.0035495758056640625,
-0.004741668701171875,
0.03997802734375,
-0.0201416015625,
-0.01195526123046875,
0.027191162109375,
-0.01424407958984375,
-0.00748443603515625,
0.009674072265625,
0.02545166015625,
0.0097808837890625,
0.0249176025390625,
-0.0270538330078125,
0.06329345703125,
0.0128326416015625,
0.015228271484375,
-0.004444122314453125,
-0.0265350341796875,
-0.0328369140625,
-0.0081634521484375,
-0.039886474609375,
-0.0450439453125,
-0.06072998046875,
-0.0033359527587890625,
0.08880615234375,
0.0435791015625,
0.00638580322265625,
-0.047515869140625,
0.0281524658203125,
0.03570556640625,
0.02178955078125,
0.0008649826049804688,
0.017852783203125,
0.004451751708984375,
-0.0023326873779296875,
0.01416015625,
-0.005077362060546875,
-0.0345458984375,
-0.02337646484375,
-0.0360107421875,
0.03173828125,
-0.0016279220581054688,
-0.01343536376953125,
0.0179290771484375,
0.07958984375,
0.000850677490234375,
-0.0021514892578125,
0.047210693359375,
-0.0704345703125,
-0.0850830078125,
0.020843505859375,
-0.057525634765625,
-0.05316162109375,
-0.0252532958984375,
-0.0810546875,
0.0902099609375,
0.03070068359375,
0.03302001953125,
0.0163726806640625,
0.031982421875,
-0.057098388671875,
-0.01336669921875,
-0.00531768798828125,
0.016387939453125,
0.044586181640625,
-0.025482177734375,
-0.0017061233520507812,
-0.004230499267578125,
0.00029969215393066406,
0.03167724609375,
0.04693603515625,
0.0173797607421875,
-0.0670166015625,
0.01264190673828125,
0.032501220703125,
0.011199951171875,
0.0004646778106689453,
0.076416015625,
-0.043914794921875,
0.052398681640625,
0.0006628036499023438,
-0.07080078125,
0.0020580291748046875,
-0.004047393798828125,
-0.054931640625,
0.004146575927734375,
-0.0168914794921875,
-0.03509521484375,
0.009674072265625,
-0.0283355712890625,
0.0009975433349609375,
0.00946807861328125,
-0.002044677734375,
-0.019775390625,
0.026031494140625,
-0.006244659423828125,
-0.0168609619140625,
0.01523590087890625,
0.07000732421875,
-0.0273284912109375,
0.030792236328125,
-0.0178375244140625,
0.006221771240234375,
0.06805419921875,
0.016693115234375,
0.034637451171875,
0.043701171875,
0.006969451904296875,
0.01328277587890625,
0.0308685302734375,
0.03363037109375,
0.050323486328125,
0.03558349609375,
-0.0201263427734375,
-0.022796630859375,
0.07257080078125,
0.07110595703125,
-0.0305938720703125,
-0.004230499267578125,
0.017120361328125,
0.0017538070678710938,
-0.00893402099609375,
-0.027496337890625,
-0.0038547515869140625,
0.01399993896484375,
-0.0037937164306640625,
0.00954437255859375,
-0.0151519775390625,
-0.004486083984375,
-0.007305145263671875,
0.0095977783203125,
0.03448486328125,
0.01363372802734375,
0.0132598876953125,
-0.041015625,
0.0164947509765625,
0.0218963623046875,
0.0576171875,
0.00798797607421875,
0.050872802734375,
-0.0237274169921875,
-0.0120849609375,
-0.01678466796875,
0.04071044921875,
0.03387451171875,
0.01050567626953125,
-0.07354736328125,
-0.094482421875,
0.0682373046875,
0.0479736328125,
-0.00125885009765625,
0.0248565673828125,
0.0433349609375,
0.048614501953125,
-0.042572021484375,
-0.01459503173828125,
0.018463134765625,
-0.0161895751953125,
0.0014410018920898438,
-0.04388427734375,
-0.03155517578125,
-0.019073486328125,
-0.0285491943359375,
0.010498046875,
-0.037628173828125,
0.023406982421875,
-0.02166748046875,
0.0214080810546875,
-0.00464630126953125,
-0.018402099609375,
0.037567138671875,
-0.0009541511535644531,
0.05853271484375,
0.0007791519165039062,
-0.04351806640625,
-0.004703521728515625,
-0.0440673828125,
-0.005558013916015625,
-0.0100250244140625,
0.0277252197265625,
0.01568603515625,
-0.0147552490234375,
0.046234130859375,
-0.0227203369140625,
0.024139404296875,
0.0360107421875,
-0.016937255859375,
0.00830841064453125,
0.04840087890625,
0.0108642578125,
-0.04229736328125,
-0.03289794921875,
-0.031585693359375,
0.06671142578125,
-0.00487518310546875,
0.041961669921875,
-0.02911376953125,
0.0255584716796875,
0.0283355712890625,
0.007122039794921875,
0.01364898681640625,
-0.001659393310546875,
0.005878448486328125,
-0.01470947265625,
0.031494140625,
-0.003467559814453125,
-0.0287017822265625,
0.033294677734375,
0.005901336669921875,
-0.016265869140625,
0.01398468017578125,
-0.01708984375,
0.01727294921875,
0.0264129638671875,
0.060150146484375,
-0.0135040283203125,
-0.066162109375,
-0.05340576171875,
0.01062774658203125,
0.0275115966796875,
0.0635986328125,
-0.0200347900390625,
-0.0015773773193359375,
0.04052734375,
-0.03924560546875,
0.0232391357421875,
-0.017181396484375,
0.059295654296875,
0.04608154296875,
0.005462646484375,
-0.0433349609375,
0.04302978515625,
0.0025234222412109375,
-0.002960205078125,
0.01052093505859375,
0.086669921875,
0.035675048828125,
-0.021026611328125,
0.04364013671875,
0.05450439453125,
0.0440673828125,
-0.0167388916015625,
0.0184478759765625,
0.056976318359375,
-0.0203399658203125,
-0.002033233642578125,
-0.03167724609375,
-0.034149169921875,
-0.047607421875,
-0.005092620849609375,
0.02947998046875,
-0.03546142578125,
-0.0008606910705566406,
-0.08062744140625,
-0.01419830322265625,
0.0513916015625,
0.005924224853515625,
-0.0302886962890625,
0.0114593505859375,
-0.0321044921875,
0.034210205078125,
0.0036983489990234375,
-0.023162841796875,
-0.027374267578125,
0.01019287109375,
-0.00405120849609375,
-0.056182861328125,
-0.06329345703125,
0.04290771484375,
-0.059814453125,
0.00621795654296875,
0.007110595703125,
-0.0163421630859375,
0.057281494140625,
-0.01910400390625,
0.0015306472778320312,
0.033416748046875,
0.0019550323486328125,
-0.00984954833984375,
0.01436614990234375,
0.00841522216796875,
-0.02557373046875,
-0.04541015625,
0.0081939697265625,
-0.03173828125,
0.00154876708984375,
-0.02703857421875,
-0.0019512176513671875,
-0.006824493408203125,
-0.03173828125,
-0.0201568603515625,
0.08538818359375,
-0.0093231201171875,
-0.0083465576171875,
-0.07574462890625,
-0.032562255859375,
-0.0202178955078125,
0.056640625,
-0.0135498046875,
-0.01129150390625,
-0.0323486328125,
0.0731201171875,
0.018310546875,
0.04754638671875,
-0.0086822509765625,
0.017425537109375,
0.01502227783203125,
0.030426025390625,
0.01318359375,
-0.00010275840759277344,
0.015655517578125,
-0.040130615234375,
0.07135009765625,
0.06298828125,
-0.01885986328125,
-0.007396697998046875,
0.01995849609375,
-0.034271240234375,
-0.0224151611328125,
-0.020751953125,
-0.055816650390625,
-0.0280914306640625,
0.11346435546875,
0.091552734375,
0.034912109375,
-0.048828125,
-0.01416778564453125,
-0.050048828125,
-0.015533447265625,
-0.0271148681640625,
0.021240234375,
-0.0662841796875,
-0.01294708251953125,
0.0182342529296875,
-0.0201263427734375,
0.041015625,
-0.038848876953125,
-0.031005859375,
0.024169921875,
0.0019102096557617188,
-0.0005469322204589844,
-0.04046630859375,
0.03607177734375,
0.0164031982421875,
-0.03179931640625,
-0.0188140869140625,
-0.0097808837890625,
-0.0157623291015625,
-0.0185699462890625,
-0.0114593505859375,
-0.020751953125,
-0.038543701171875,
-0.0188140869140625,
0.01287078857421875,
-0.01393890380859375,
0.0110015869140625,
-0.01447296142578125,
-0.0128631591796875,
0.00787353515625,
-0.006359100341796875,
-0.005924224853515625,
-0.004467010498046875,
0.00823211669921875,
-0.0157928466796875,
-0.0213775634765625,
0.053985595703125,
-0.0029296875,
-0.0195465087890625,
-0.049530029296875,
0.06787109375,
-0.029571533203125,
-0.0194854736328125,
-0.016754150390625,
-0.00714111328125,
-0.0009737014770507812,
0.006771087646484375,
0.00182342529296875,
-0.041534423828125,
0.0097808837890625,
0.004283905029296875,
0.004302978515625,
0.01488494873046875
] |
953222aea2d9f6ff9a4508dc82a39bc9984d97ae | Wordpress Stackexchange
Q: Allowing WebP uploads? I've tried both of these, but I'm still getting the error message: "Sorry, this file type is not permitted for security reasons."
// add support for webp mime types
function webp_upload_mimes( $existing_mimes ) {
// add webp to the list of mime types
$existing_mimes['webp'] = 'image/webp';
// return the array back to the function with our added mime type
return $existing_mimes;
}
add_filter( 'mime_types', 'webp_upload_mimes' );
function my_custom_upload_mimes($mimes = array()) {
// add webp to the list of mime types
$existing_mimes['webp'] = 'image/webp';
return $mimes;
}
add_action('upload_mimes', 'my_custom_upload_mimes');
Any ideas?
A: Sometimes the uploads are limited by your host. Try and define the ALLOW_UNFILTERED_UPLOADS constant that allows upload for every file type:
define( 'ALLOW_UNFILTERED_UPLOADS', true );
Use this in your wp-config.php file for a moment, for testing purposes. Then re-upload your file, and if it still doesn't work, it's probable that the hosting has blocked that file type from being uploaded. Make sure you remove the constant as soon as possible, when you are done trying.
Additionally, You can use the get_allowed_mime_types() function to check the allowed upload mimes.
| Q: Allowing WebP uploads? I've tried both of these, but I'm still getting the error message: "Sorry, this file type is not permitted for security reasons."
// add support for webp mime types
function webp_upload_mimes( $existing_mimes ) {
// add webp to the list of mime types
$existing_mimes['webp'] = 'image/webp';
// return the array back to the function with our added mime type
return $existing_mimes;
}
add_filter( 'mime_types', 'webp_upload_mimes' );
function my_custom_upload_mimes($mimes = array()) {
// add webp to the list of mime types
$existing_mimes['webp'] = 'image/webp';
return $mimes;
}
add_action('upload_mimes', 'my_custom_upload_mimes');
Any ideas?
A: Sometimes the uploads are limited by your host. Try and define the ALLOW_UNFILTERED_UPLOADS constant that allows upload for every file type:
define( 'ALLOW_UNFILTERED_UPLOADS', true );
Use this in your wp-config.php file for a moment, for testing purposes. Then re-upload your file, and if it still doesn't work, it's probable that the hosting has blocked that file type from being uploaded. Make sure you remove the constant as soon as possible, when you are done trying.
Additionally, You can use the get_allowed_mime_types() function to check the allowed upload mimes.
A: It's necessary to use the wp_check_filetype_and_ext filter to set the mime type and extension for webp files in addition to using the upload_mimes filter to add the mime type to the list of uploadable mimes.
/**
* Sets the extension and mime type for .webp files.
*
* @param array $wp_check_filetype_and_ext File data array containing 'ext', 'type', and
* 'proper_filename' keys.
* @param string $file Full path to the file.
* @param string $filename The name of the file (may differ from $file due to
* $file being in a tmp directory).
* @param array $mimes Key is the file extension with value as the mime type.
*/
add_filter( 'wp_check_filetype_and_ext', 'wpse_file_and_ext_webp', 10, 4 );
function wpse_file_and_ext_webp( $types, $file, $filename, $mimes ) {
if ( false !== strpos( $filename, '.webp' ) ) {
$types['ext'] = 'webp';
$types['type'] = 'image/webp';
}
return $types;
}
/**
* Adds webp filetype to allowed mimes
*
* @see https://codex.wordpress.org/Plugin_API/Filter_Reference/upload_mimes
*
* @param array $mimes Mime types keyed by the file extension regex corresponding to
* those types. 'swf' and 'exe' removed from full list. 'htm|html' also
* removed depending on '$user' capabilities.
*
* @return array
*/
add_filter( 'upload_mimes', 'wpse_mime_types_webp' );
function wpse_mime_types_webp( $mimes ) {
$mimes['webp'] = 'image/webp';
return $mimes;
}
I tested this on WP v5.0.1 and was able to upload webp files after adding this code.
A: I was able to get it to work by creating the following plugin. (You just have to add this code to a new file in the /wp-content/plugins/ directory to create the plugin. Make sure you activate the plugin after creating it.)
<?php
/**
* Plugin Name: WPSE Allow Webp Uploads
*/
function webp_file_and_ext( $mime, $file, $filename, $mimes ) {
$wp_filetype = wp_check_filetype( $filename, $mimes );
if ( in_array( $wp_filetype['ext'], [ 'webp' ] ) ) {
$mime['ext'] = true;
$mime['type'] = true;
}
return $mime;
}
add_filter( 'wp_check_filetype_and_ext', 'webp_file_and_ext', 10, 4 );
function add_webp_mime_type( $mimes ) {
$mimes['webp'] = 'image/webp';
return $mimes;
}
add_filter( 'upload_mimes', 'add_webp_mime_type' );
| wordpress | {
"language": "en",
"length": 515,
"provenance": "stackexchange_00019.jsonl.gz:491334",
"question_score": "12",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/323221"
} | [
0.032806396484375,
0.0065765380859375,
-0.017669677734375,
0.0013952255249023438,
0.01251983642578125,
-0.046966552734375,
0.06964111328125,
-0.0190887451171875,
0.006984710693359375,
0.007106781005859375,
-0.0224456787109375,
0.01192474365234375,
-0.011077880859375,
-0.0188446044921875,
0.01338958740234375,
-0.0256805419921875,
0.027008056640625,
0.005924224853515625,
0.01412200927734375,
-0.0112762451171875,
0.01404571533203125,
0.0260162353515625,
0.0022487640380859375,
0.0003247261047363281,
-0.0101165771484375,
0.036895751953125,
0.06402587890625,
-0.03009033203125,
-0.034088134765625,
-0.035980224609375,
0.00435638427734375,
0.023956298828125,
-0.0010194778442382812,
0.07489013671875,
-0.045013427734375,
0.0205841064453125,
0.0290985107421875,
0.0196380615234375,
0.02386474609375,
0.0400390625,
-0.007015228271484375,
0.0074310302734375,
0.03765869140625,
0.0250701904296875,
-0.0153350830078125,
-0.0234832763671875,
-0.0011243820190429688,
-0.0298309326171875,
-0.016815185546875,
0.054351806640625,
0.004016876220703125,
-0.041534423828125,
0.0251922607421875,
-0.004230499267578125,
-0.0004544258117675781,
-0.03863525390625,
0.033050537109375,
0.00165557861328125,
0.02520751953125,
-0.0187225341796875,
-0.047943115234375,
0.030426025390625,
0.011810302734375,
-0.00524139404296875,
0.003818511962890625,
0.0017299652099609375,
0.035614013671875,
0.00004690885543823242,
-0.025360107421875,
0.005077362060546875,
0.031585693359375,
-0.0169830322265625,
0.0238800048828125,
-0.0053558349609375,
0.035003662109375,
-0.00629425048828125,
-0.0250091552734375,
0.0249176025390625,
0.03839111328125,
0.0161285400390625,
0.05426025390625,
-0.01551055908203125,
-0.0220947265625,
0.0154266357421875,
-0.0187835693359375,
0.00672149658203125,
0.006381988525390625,
-0.019256591796875,
0.01776123046875,
0.03314208984375,
-0.0142364501953125,
0.0537109375,
0.027557373046875,
0.022247314453125,
-0.009613037109375,
-0.002658843994140625,
-0.0051422119140625,
0.007549285888671875,
-0.0183563232421875,
-0.0026397705078125,
0.018035888671875,
-0.03887939453125,
0.052978515625,
-0.0408935546875,
0.020050048828125,
0.036285400390625,
-0.007701873779296875,
-0.00962066650390625,
0.044097900390625,
0.0301361083984375,
0.0190582275390625,
0.03155517578125,
0.007602691650390625,
-0.046600341796875,
-0.0038013458251953125,
0.0103302001953125,
-0.0016345977783203125,
0.017547607421875,
0.0225372314453125,
-0.0189361572265625,
0.007030487060546875,
0.04046630859375,
0.026580810546875,
-0.03448486328125,
0.016845703125,
0.0172119140625,
-0.002361297607421875,
-0.055877685546875,
-0.004283905029296875,
0.076416015625,
-0.0168609619140625,
-0.022308349609375,
-0.0186309814453125,
-0.00836181640625,
-0.0130157470703125,
-0.030029296875,
0.03204345703125,
-0.0274505615234375,
-0.0251617431640625,
0.04840087890625,
0.002391815185546875,
-0.047821044921875,
-0.004955291748046875,
-0.004268646240234375,
-0.0154266357421875,
0.01995849609375,
0.004180908203125,
0.01464080810546875,
-0.00977325439453125,
-0.052886962890625,
0.01293182373046875,
-0.048248291015625,
0.057220458984375,
-0.0074920654296875,
-0.0241851806640625,
-0.041046142578125,
0.0496826171875,
-0.04864501953125,
-0.0297393798828125,
-0.06427001953125,
0.0142822265625,
-0.0015411376953125,
0.055908203125,
-0.0172882080078125,
-0.00421905517578125,
-0.01093292236328125,
-0.08612060546875,
-0.016571044921875,
0.016021728515625,
0.04217529296875,
-0.0269317626953125,
-0.0123138427734375,
-0.01519012451171875,
0.0014352798461914062,
-0.012420654296875,
0.0152130126953125,
0.0169677734375,
0.04638671875,
0.00673675537109375,
0.05328369140625,
0.01154327392578125,
-0.035491943359375,
0.055389404296875,
-0.00569915771484375,
-0.051513671875,
0.027008056640625,
0.035430908203125,
0.0640869140625,
-0.01421356201171875,
0.01215362548828125,
0.05487060546875,
0.0301513671875,
-0.00691986083984375,
-0.004154205322265625,
-0.01140594482421875,
-0.043487548828125,
-0.0386962890625,
-0.032958984375,
-0.0173187255859375,
0.057037353515625,
0.004360198974609375,
-0.01027679443359375,
0.0074310302734375,
-0.0023136138916015625,
0.01053619384765625,
-0.0287933349609375,
0.01007843017578125,
0.01206207275390625,
0.01499176025390625,
0.0007028579711914062,
0.002239227294921875,
-0.0000591278076171875,
-0.0144805908203125,
-0.020660400390625,
-0.01551055908203125,
0.04351806640625,
-0.00150299072265625,
0.07037353515625,
-0.01050567626953125,
0.06683349609375,
-0.046539306640625,
-0.05926513671875,
-0.02899169921875,
-0.00485992431640625,
-0.01092529296875,
0.0360107421875,
-0.0218963623046875,
0.033843994140625,
0.01288604736328125,
0.0413818359375,
0.0175018310546875,
-0.0206146240234375,
-0.0562744140625,
-0.0236053466796875,
-0.0018939971923828125,
-0.01412200927734375,
-0.018646240234375,
-0.100830078125,
0.03436279296875,
0.04632568359375,
0.0238494873046875,
0.02117919921875,
0.0020427703857421875,
0.0242156982421875,
0.0214996337890625,
0.005847930908203125,
0.045440673828125,
-0.0288848876953125,
-0.020263671875,
-0.0212554931640625,
-0.0144195556640625,
-0.0242156982421875,
0.05438232421875,
-0.04083251953125,
-0.01409149169921875,
0.04937744140625,
0.00860595703125,
0.00804901123046875,
-0.0273590087890625,
0.014312744140625,
0.0028553009033203125,
0.007358551025390625,
-0.032379150390625,
0.016632080078125,
0.05224609375,
-0.00775146484375,
0.049285888671875,
0.031707763671875,
-0.01399993896484375,
-0.0249481201171875,
0.00536346435546875,
-0.017364501953125,
0.0028705596923828125,
0.043121337890625,
0.056854248046875,
0.03656005859375,
-0.0215301513671875,
-0.0287933349609375,
0.046112060546875,
0.0447998046875,
-0.036773681640625,
0.0011720657348632812,
-0.042877197265625,
-0.01358795166015625,
-0.022308349609375,
-0.0787353515625,
0.01352691650390625,
-0.008453369140625,
0.0101776123046875,
-0.006565093994140625,
0.026641845703125,
-0.0026302337646484375,
-0.0188140869140625,
0.0157623291015625,
0.0178070068359375,
-0.0279541015625,
0.0015811920166015625,
-0.0733642578125,
0.0518798828125,
-0.04364013671875,
0.0455322265625,
0.08197021484375,
-0.007366180419921875,
0.032318115234375,
0.0052947998046875,
0.004093170166015625,
0.0113067626953125,
0.03240966796875,
0.005615234375,
-0.0245513916015625,
-0.027801513671875,
-0.00757598876953125,
0.010833740234375,
-0.04827880859375,
0.0318603515625,
-0.008056640625,
-0.02679443359375,
-0.01328277587890625,
-0.05596923828125,
0.0015268325805664062,
0.036651611328125,
-0.0660400390625,
0.00513458251953125,
-0.025848388671875,
-0.032470703125,
-0.00435638427734375,
-0.0051727294921875,
0.00035381317138671875,
-0.01309967041015625,
-0.00220489501953125,
-0.0170745849609375,
-0.04925537109375,
-0.071044921875,
-0.0289459228515625,
0.01409149169921875,
0.0306549072265625,
0.000019609928131103516,
0.0675048828125,
0.0052032470703125,
-0.0217132568359375,
-0.00749969482421875,
0.0325927734375,
-0.001922607421875,
-0.023193359375,
0.0060577392578125,
-0.03118896484375,
0.041259765625,
-0.02569580078125,
0.01971435546875,
0.041412353515625,
-0.023284912109375,
-0.00847625732421875,
-0.010467529296875,
-0.023193359375,
-0.018585205078125,
0.059356689453125,
0.0203704833984375,
-0.0645751953125,
-0.007564544677734375,
-0.07855224609375,
-0.0013523101806640625,
0.0186614990234375,
0.004550933837890625,
0.01406097412109375,
-0.038177490234375,
-0.03204345703125,
-0.012725830078125,
0.0562744140625,
-0.00536346435546875,
0.029327392578125,
-0.01401519775390625,
-0.01824951171875,
0.058197021484375,
0.0058135986328125,
0.021881103515625,
0.0018987655639648438,
0.01186370849609375,
-0.01849365234375,
0.0188140869140625,
0.00882720947265625,
-0.0178375244140625,
-0.045562744140625,
0.0305023193359375,
-0.05975341796875,
-0.0584716796875,
0.047027587890625,
-0.056427001953125,
0.0097808837890625,
-0.056488037109375,
-0.0151824951171875,
-0.0186614990234375,
0.09759521484375,
0.006195068359375,
-0.0248870849609375,
-0.042144775390625,
0.0179595947265625,
-0.0168914794921875,
-0.05401611328125,
0.038360595703125,
0.0149078369140625,
0.007602691650390625,
-0.045501708984375,
-0.0247039794921875,
-0.0291595458984375,
0.048675537109375,
-0.0821533203125,
0.030731201171875,
-0.037567138671875,
0.0131072998046875,
-0.00289154052734375,
0.0310821533203125,
-0.0030078887939453125,
0.0261688232421875,
-0.0273590087890625,
0.00359344482421875,
-0.0216064453125,
-0.11981201171875,
-0.0159149169921875,
-0.013763427734375,
0.05810546875,
-0.01183319091796875,
0.02001953125,
-0.0173492431640625,
0.0701904296875,
0.0276031494140625,
-0.007167816162109375,
-0.0032196044921875,
-0.01546478271484375,
0.0222015380859375,
-0.004764556884765625,
-0.018768310546875,
-0.00891876220703125,
-0.01336669921875,
-0.00936126708984375,
-0.0282745361328125,
-0.0225372314453125,
-0.00861358642578125,
-0.035125732421875,
0.01435089111328125,
-0.035125732421875,
0.0120697021484375,
-0.03546142578125,
-0.06634521484375,
0.0176849365234375,
-0.00948333740234375,
-0.02435302734375,
-0.054443359375,
-0.0299530029296875,
0.0701904296875,
-0.011505126953125,
-0.005893707275390625,
-0.0018596649169921875,
0.09332275390625,
0.00018346309661865234,
-0.030426025390625,
-0.06585693359375,
0.00992584228515625,
0.035369873046875,
-0.0159759521484375,
0.0287322998046875,
0.02593994140625,
-0.00850677490234375,
0.0166015625,
-0.005420684814453125,
0.006366729736328125,
-0.006633758544921875,
0.027496337890625,
0.0110931396484375,
-0.010528564453125,
-0.0026721954345703125,
0.0257720947265625,
-0.0017023086547851562,
0.0020771026611328125,
-0.00855255126953125,
-0.007663726806640625,
0.005016326904296875,
0.033111572265625,
-0.01259613037109375,
-0.0036602020263671875,
-0.03515625,
-0.067626953125,
0.034423828125,
-0.071533203125,
0.0169219970703125,
-0.006626129150390625,
-0.002033233642578125,
0.01024627685546875,
-0.0122222900390625,
0.01244354248046875,
-0.0078582763671875,
0.0189666748046875,
-0.01067352294921875,
0.03228759765625,
0.0034046173095703125,
0.01140594482421875,
-0.0206146240234375,
0.0014820098876953125,
-0.01959228515625,
0.024383544921875,
0.0136260986328125,
-0.0550537109375,
0.000911712646484375,
-0.0081329345703125,
-0.039398193359375,
-0.0122833251953125,
-0.0092620849609375,
0.0162200927734375,
-0.02557373046875,
0.0213165283203125,
0.0115814208984375,
0.0015058517456054688,
-0.0179901123046875,
0.006916046142578125,
0.007686614990234375,
-0.0149688720703125,
-0.0120849609375,
0.0211334228515625,
-0.0048065185546875,
0.002101898193359375,
-0.00223541259765625,
0.0298919677734375,
0.07318115234375,
0.02374267578125,
0.0166778564453125,
-0.0238037109375,
-0.0266876220703125,
0.0005960464477539062,
-0.002452850341796875,
-0.054901123046875,
-0.01294708251953125,
0.00836944580078125,
0.03271484375,
-0.045440673828125,
-0.044403076171875,
0.054534912109375,
0.0012645721435546875,
-0.00919342041015625,
-0.018402099609375,
-0.05706787109375,
-0.0504150390625,
-0.0208282470703125,
0.01151275634765625,
0.00917816162109375,
-0.0133056640625,
-0.0195465087890625,
0.007549285888671875,
0.003078460693359375,
0.002231597900390625,
0.0231475830078125,
-0.050750732421875,
0.0036602020263671875,
0.03399658203125,
0.01203155517578125,
-0.04693603515625,
-0.0176849365234375,
-0.041778564453125,
0.01081085205078125,
-0.015869140625,
0.00438690185546875,
0.0109405517578125,
-0.01052093505859375,
0.003803253173828125,
-0.039398193359375,
0.018463134765625,
-0.0234832763671875,
0.011474609375,
0.00229644775390625,
-0.0276641845703125,
-0.0270843505859375,
-0.01849365234375,
-0.05718994140625,
-0.0241546630859375,
-0.0045013427734375,
-0.0103302001953125,
-0.0119781494140625,
-0.0010776519775390625,
-0.0010585784912109375,
0.020050048828125,
-0.01275634765625,
-0.00024259090423583984,
-0.009368896484375,
0.041656494140625,
0.0197296142578125,
0.0775146484375,
-0.0323486328125,
0.011383056640625,
0.0252685546875,
0.00318145751953125,
-0.0302886962890625,
-0.019256591796875,
-0.0017795562744140625,
-0.0020656585693359375,
-0.01128387451171875,
-0.06219482421875,
-0.0201873779296875,
-0.0007266998291015625,
-0.0002522468566894531,
0.046539306640625,
0.03167724609375,
0.01043701171875,
0.01421356201171875,
-0.02264404296875,
-0.002231597900390625,
-0.03790283203125,
0.018310546875,
-0.045928955078125,
-0.006969451904296875,
-0.01255035400390625,
-0.01346588134765625,
0.042388916015625,
-0.00765228271484375,
-0.0214385986328125,
0.032012939453125,
-0.018157958984375,
0.035308837890625,
0.0190277099609375,
-0.003814697265625,
0.02130126953125,
0.03985595703125,
-0.01171112060546875,
0.05352783203125,
0.024566650390625,
0.040557861328125,
0.063232421875,
0.052825927734375,
-0.0050506591796875,
-0.072509765625,
-0.00949859619140625,
-0.00406646728515625,
0.0030078887939453125,
-0.002216339111328125,
0.003910064697265625,
-0.000286102294921875,
0.07476806640625,
0.049163818359375,
-0.084228515625,
-0.0032100677490234375,
-0.00749969482421875,
-0.01459503173828125,
0.033843994140625,
-0.007232666015625,
0.00946807861328125,
0.004291534423828125,
0.04156494140625,
-0.0357666015625,
-0.013916015625,
0.0233917236328125,
-0.0177154541015625,
0.006000518798828125,
-0.01371002197265625,
0.05548095703125,
0.0166168212890625,
-0.007488250732421875,
-0.036712646484375,
0.01207733154296875,
-0.023223876953125,
0.02691650390625,
0.03289794921875,
-0.04620361328125,
-0.0159912109375,
-0.008087158203125,
-0.0081329345703125,
-0.0013761520385742188,
-0.033966064453125,
0.03704833984375,
-0.01416015625,
0.0726318359375,
0.0467529296875,
0.0002949237823486328,
0.031951904296875,
0.01020050048828125,
0.035247802734375,
0.0294952392578125,
-0.0284271240234375,
0.0009617805480957031,
0.03826904296875,
-0.0252838134765625,
0.0054473876953125,
0.0088043212890625,
-0.01207733154296875,
0.012237548828125,
-0.0011196136474609375,
-0.005687713623046875,
-0.021392822265625,
0.0084075927734375,
0.0872802734375,
-0.00040030479431152344,
-0.0526123046875,
-0.0014619827270507812,
-0.0138702392578125,
-0.06500244140625,
-0.034210205078125,
-0.0059814453125,
-0.046722412109375,
0.02264404296875,
0.0165863037109375,
-0.04180908203125,
0.08929443359375,
0.018341064453125,
0.020416259765625,
0.0274810791015625,
0.033782958984375,
-0.036407470703125,
0.00417327880859375,
-0.036529541015625,
0.04705810546875,
-0.0037994384765625,
0.02581787109375,
-0.075439453125,
-0.01047515869140625,
-0.0113677978515625,
0.0281982421875,
0.0138702392578125,
-0.0102691650390625,
-0.0003883838653564453,
0.0247802734375,
0.0806884765625,
0.06365966796875,
0.0192718505859375,
-0.01143646240234375,
-0.017181396484375,
-0.006931304931640625,
0.00004178285598754883,
-0.009368896484375,
0.0072784423828125,
0.0037822723388671875,
-0.0297393798828125,
0.016571044921875,
-0.007904052734375,
-0.002498626708984375,
-0.008270263671875,
-0.03179931640625,
-0.02587890625,
-0.00946807861328125,
-0.01434326171875,
0.042327880859375,
-0.000881195068359375,
0.004730224609375,
-0.0057830810546875,
-0.021392822265625,
-0.017669677734375,
-0.01568603515625,
0.028076171875,
-0.006031036376953125,
-0.004459381103515625,
0.025543212890625,
0.002986907958984375,
-0.00017130374908447266,
0.004695892333984375,
-0.01049041748046875,
0.0269775390625,
0.005496978759765625,
0.02288818359375,
-0.021636962890625,
-0.00525665283203125,
-0.07220458984375,
0.0382080078125,
0.05120849609375,
0.031280517578125,
-0.05224609375,
-0.034271240234375,
0.0148162841796875,
-0.003948211669921875,
-0.010894775390625,
0.0018463134765625,
0.003910064697265625,
-0.005046844482421875,
0.0012722015380859375,
0.00992584228515625,
0.01448822021484375,
0.02899169921875,
0.00885009765625,
0.02288818359375,
0.06475830078125,
-0.053070068359375,
0.021484375,
-0.06707763671875,
0.0277252197265625,
-0.019195556640625,
0.06390380859375,
0.0271148681640625,
0.042510986328125,
-0.002117156982421875,
-0.028167724609375,
-0.0038909912109375,
0.0272979736328125,
-0.038116455078125,
0.02593994140625,
-0.0313720703125,
-0.04620361328125,
0.0018157958984375,
0.049041748046875,
0.0080413818359375,
0.0028362274169921875,
0.027435302734375,
0.046112060546875,
0.00466156005859375,
-0.00437164306640625,
0.044464111328125,
-0.002323150634765625,
-0.03692626953125,
-0.042236328125,
-0.025054931640625,
-0.000667572021484375,
-0.0203094482421875,
0.04071044921875,
-0.036224365234375,
0.0309600830078125,
-0.005893707275390625,
0.00592803955078125,
-0.0014066696166992188,
-0.04632568359375,
0.055755615234375,
-0.01161956787109375,
0.08746337890625,
0.00024116039276123047,
-0.1021728515625,
-0.0289154052734375,
-0.0293121337890625,
0.0016984939575195312,
0.03533935546875,
0.031982421875,
-0.0013141632080078125,
0.01213836669921875,
0.0031452178955078125,
-0.03570556640625,
0.0015659332275390625,
0.0404052734375,
-0.00453948974609375,
0.035858154296875,
0.0299835205078125,
0.00801849365234375,
-0.0452880859375,
-0.0243682861328125,
-0.02484130859375,
0.044586181640625,
0.0095367431640625,
0.081298828125,
-0.028900146484375,
0.0184326171875,
0.00920867919921875,
0.0435791015625,
-0.03533935546875,
0.0128326416015625,
0.01486968994140625,
0.01305389404296875,
0.00638580322265625,
-0.029022216796875,
-0.007610321044921875,
0.04290771484375,
0.002109527587890625,
-0.0198974609375,
0.01337432861328125,
-0.0082855224609375,
0.0052490234375,
0.04150390625,
-0.0013151168823242188,
-0.048370361328125,
-0.037841796875,
-0.06622314453125,
-0.018096923828125,
0.0282135009765625,
-0.00875091552734375,
-0.01473236083984375,
0.029052734375,
-0.00714874267578125,
-0.045257568359375,
0.022247314453125,
-0.0653076171875,
0.0303802490234375,
0.027679443359375,
0.00911712646484375,
-0.0293121337890625,
-0.0011262893676757812,
-0.0190277099609375,
-0.0093536376953125,
-0.006282806396484375,
0.03875732421875,
-0.0296478271484375,
-0.0229644775390625,
-0.00566864013671875,
-0.027435302734375,
-0.026824951171875,
-0.07293701171875,
-0.045501708984375,
0.063720703125,
-0.0090789794921875,
-0.030914306640625,
-0.0179595947265625,
-0.00021719932556152344,
-0.0273590087890625,
-0.0087890625,
0.0198516845703125,
0.007442474365234375,
-0.0090484619140625,
0.0226898193359375,
0.0137481689453125,
0.045440673828125,
-0.00470733642578125,
-0.037994384765625,
0.028594970703125,
-0.044097900390625,
0.024627685546875,
0.0103912353515625,
0.0234527587890625,
-0.00998687744140625,
0.04302978515625,
-0.04254150390625,
-0.0665283203125,
-0.013275146484375,
0.05615234375,
-0.045562744140625,
-0.007289886474609375,
-0.005741119384765625,
-0.0037364959716796875,
0.0260009765625,
0.031341552734375,
0.0011081695556640625,
0.074951171875,
0.005367279052734375,
-0.02484130859375,
0.002704620361328125,
-0.018798828125,
-0.036224365234375,
-0.0229034423828125,
0.035980224609375,
-0.09735107421875,
-0.04278564453125,
-0.05242919921875,
0.0230560302734375,
0.008331298828125,
-0.050445556640625,
-0.1107177734375,
0.038543701171875,
-0.038299560546875,
-0.0435791015625,
-0.0170440673828125,
0.033416748046875,
-0.0126495361328125,
-0.005710601806640625,
-0.01435089111328125,
-0.0027942657470703125,
0.01305389404296875,
0.0170440673828125,
0.010162353515625,
0.0165863037109375,
0.032257080078125,
0.0124359130859375,
-0.0253753662109375,
0.006084442138671875,
-0.0109100341796875,
0.0033473968505859375,
0.0113067626953125,
-0.0421142578125,
0.06982421875,
0.039306640625,
0.007328033447265625,
0.032470703125,
0.032745361328125,
-0.058746337890625,
-0.0026836395263671875,
-0.0178375244140625,
-0.03558349609375,
-0.046295166015625,
0.0294342041015625,
0.03350830078125,
0.0009021759033203125,
0.02520751953125,
-0.0005750656127929688,
-0.049591064453125,
-0.015960693359375,
-0.0172119140625,
0.002758026123046875,
-0.058624267578125,
0.003997802734375,
0.00739288330078125,
0.01434326171875,
-0.00902557373046875,
0.00652313232421875,
-0.01433563232421875,
-0.02972412109375,
-0.0082244873046875,
-0.0211334228515625,
-0.037353515625,
0.038482666015625,
0.0604248046875,
-0.023406982421875,
0.03973388671875,
-0.014923095703125,
-0.006069183349609375,
0.061126708984375,
-0.006229400634765625,
0.006946563720703125,
0.004138946533203125,
0.0289459228515625,
-0.0115966796875,
0.045745849609375,
-0.0186767578125,
0.055419921875,
-0.01360321044921875,
-0.0010309219360351562,
0.019317626953125,
0.01103973388671875,
0.02325439453125,
-0.034759521484375,
0.0634765625,
0.025787353515625,
-0.0259857177734375,
-0.0020923614501953125,
-0.057830810546875,
-0.0352783203125,
0.0268402099609375,
-0.03338623046875,
-0.00978851318359375,
-0.00982666015625,
-0.005573272705078125,
0.01268768310546875,
0.006351470947265625,
-0.0227508544921875,
-0.00952911376953125,
-0.005584716796875,
-0.04107666015625,
-0.019073486328125,
-0.001972198486328125
] |
a3dbc9dce75460bc84c487645573b16e5d572601 | Wordpress Stackexchange
Q: wordpress wp-admin css not loading
previously its have SSL now don't have SSl
my word press admin dashboard css not loading but home page and other page are working perfect any one know how to fix this?
no ssl its just http
already some ask same question here but those answer not solve my problems
Wordpress wp-admin suddenly lost its style
Wordpress Admin Panel Completely Distorted, no css at all
the same question ask from some other stack exchange network
Wordpress admin not loading css/js
wordpress login page not getting load-styles.php?
Wordpress wp-admin suddenly lost its style
WP admin Screen Issue
Wordpress Dashboard Display error
the most common answer is
define( 'CONCATENATE_SCRIPTS', false );
add this line your wp-config,php
i try everything still not loading
A: I had the same issue a few months back I tried this and this works for me.
define('FORCE_SSL_LOGIN', false);
define('FORCE_SSL_ADMIN', false);
define( 'CONCATENATE_SCRIPTS', false );
define( 'SCRIPT_DEBUG', true );
try to load wp-admin with SSL.
After reloading it looks OK, maybe after re-login, set SCRIPT_DEBUG to false.
hope this help
| Q: wordpress wp-admin css not loading
previously its have SSL now don't have SSl
my word press admin dashboard css not loading but home page and other page are working perfect any one know how to fix this?
no ssl its just http
already some ask same question here but those answer not solve my problems
Wordpress wp-admin suddenly lost its style
Wordpress Admin Panel Completely Distorted, no css at all
the same question ask from some other stack exchange network
Wordpress admin not loading css/js
wordpress login page not getting load-styles.php?
Wordpress wp-admin suddenly lost its style
WP admin Screen Issue
Wordpress Dashboard Display error
the most common answer is
define( 'CONCATENATE_SCRIPTS', false );
add this line your wp-config,php
i try everything still not loading
A: I had the same issue a few months back I tried this and this works for me.
define('FORCE_SSL_LOGIN', false);
define('FORCE_SSL_ADMIN', false);
define( 'CONCATENATE_SCRIPTS', false );
define( 'SCRIPT_DEBUG', true );
try to load wp-admin with SSL.
After reloading it looks OK, maybe after re-login, set SCRIPT_DEBUG to false.
hope this help
| wordpress | {
"language": "en",
"length": 177,
"provenance": "stackexchange_00019.jsonl.gz:491342",
"question_score": "9",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/323250"
} | [
0.0238037109375,
-0.003021240234375,
-0.011688232421875,
-0.020477294921875,
-0.00655364990234375,
-0.0291900634765625,
0.0018796920776367188,
-0.020660400390625,
-0.042510986328125,
0.010986328125,
0.010894775390625,
0.01383209228515625,
-0.0258636474609375,
-0.030731201171875,
0.0183258056640625,
-0.04754638671875,
0.0207366943359375,
-0.005229949951171875,
0.0205230712890625,
0.00235748291015625,
-0.008819580078125,
0.02276611328125,
0.01403045654296875,
-0.0048370361328125,
0.01287078857421875,
-0.02093505859375,
0.06903076171875,
-0.01001739501953125,
0.01544189453125,
-0.003948211669921875,
0.0134735107421875,
-0.04034423828125,
-0.003269195556640625,
0.05181884765625,
-0.037994384765625,
-0.041839599609375,
-0.03472900390625,
0.036773681640625,
-0.0157928466796875,
0.019927978515625,
0.0074310302734375,
0.006122589111328125,
0.06884765625,
0.045684814453125,
0.000865936279296875,
-0.011474609375,
-0.005828857421875,
-0.0494384765625,
0.00441741943359375,
-0.0016965866088867188,
0.016937255859375,
0.00916290283203125,
0.0297698974609375,
-0.0281982421875,
-0.01360321044921875,
-0.0014562606811523438,
-0.0265350341796875,
0.033447265625,
0.00799560546875,
0.01464080810546875,
0.0029163360595703125,
0.005069732666015625,
-0.0033245086669921875,
-0.01525115966796875,
-0.0133209228515625,
0.004055023193359375,
0.0180816650390625,
-0.0088348388671875,
-0.058990478515625,
-0.00963592529296875,
0.0364990234375,
-0.035614013671875,
-0.004608154296875,
-0.00371551513671875,
0.00644683837890625,
0.00640106201171875,
-0.00162506103515625,
0.01506805419921875,
0.018402099609375,
0.0092315673828125,
0.03826904296875,
0.0212249755859375,
-0.034423828125,
0.0027980804443359375,
0.0114288330078125,
0.0242156982421875,
-0.00786590576171875,
-0.03594970703125,
0.005859375,
-0.003360748291015625,
-0.005680084228515625,
-0.00653076171875,
-0.002574920654296875,
0.01213836669921875,
-0.002750396728515625,
-0.03857421875,
-0.003147125244140625,
0.03912353515625,
-0.0032062530517578125,
0.00125885009765625,
-0.039337158203125,
-0.0081634521484375,
-0.02410888671875,
-0.020416259765625,
-0.00787353515625,
0.058135986328125,
0.00392913818359375,
0.036041259765625,
0.031402587890625,
0.01218414306640625,
0.01861572265625,
-0.001949310302734375,
-0.0206756591796875,
-0.0181427001953125,
-0.01392364501953125,
0.017608642578125,
-0.0223846435546875,
-0.021697998046875,
-0.0201873779296875,
-0.0178375244140625,
-0.0274505615234375,
0.01085662841796875,
-0.07073974609375,
0.00637054443359375,
-0.006072998046875,
-0.0298004150390625,
0.0220947265625,
0.032684326171875,
0.005481719970703125,
0.0015897750854492188,
-0.03271484375,
0.01068878173828125,
0.0682373046875,
0.039398193359375,
0.0295562744140625,
-0.01544952392578125,
0.015777587890625,
-0.02008056640625,
-0.02960205078125,
0.04071044921875,
-0.012969970703125,
-0.060516357421875,
-0.024261474609375,
-0.015472412109375,
0.01062774658203125,
0.0173797607421875,
0.01406097412109375,
0.0036144256591796875,
0.003002166748046875,
-0.07647705078125,
0.04656982421875,
-0.00885772705078125,
0.03857421875,
0.05828857421875,
0.0086822509765625,
-0.0024013519287109375,
0.11798095703125,
-0.059326171875,
-0.0452880859375,
-0.09027099609375,
-0.01538848876953125,
0.01190948486328125,
0.0300140380859375,
-0.038330078125,
-0.00731658935546875,
-0.039520263671875,
-0.01490020751953125,
0.003299713134765625,
0.035308837890625,
-0.005527496337890625,
0.0460205078125,
0.0038738250732421875,
0.044647216796875,
0.0195770263671875,
0.0159454345703125,
0.0087738037109375,
0.034210205078125,
0.0143890380859375,
0.026214599609375,
-0.005634307861328125,
-0.024505615234375,
-0.032562255859375,
0.08551025390625,
-0.050018310546875,
-0.02825927734375,
-0.0166015625,
0.01229095458984375,
0.030731201171875,
0.0249786376953125,
0.0232086181640625,
0.0030155181884765625,
-0.0131683349609375,
-0.00974273681640625,
0.00727081298828125,
-0.01312255859375,
-0.023284912109375,
-0.040130615234375,
0.0028018951416015625,
-0.03619384765625,
0.0229339599609375,
-0.0027217864990234375,
0.0121612548828125,
-0.02294921875,
-0.000499725341796875,
-0.012603759765625,
-0.033843994140625,
0.00336456298828125,
0.021697998046875,
0.0278167724609375,
0.031341552734375,
-0.006420135498046875,
0.0175933837890625,
-0.01290130615234375,
-0.04852294921875,
-0.0267181396484375,
0.0219573974609375,
-0.03265380859375,
0.07183837890625,
-0.0158843994140625,
0.0465087890625,
-0.01485443115234375,
-0.06170654296875,
0.0183563232421875,
0.003387451171875,
0.01666259765625,
0.010467529296875,
-0.0240936279296875,
0.005115509033203125,
0.06744384765625,
-0.014892578125,
0.08392333984375,
0.0175628662109375,
0.0117034912109375,
0.03955078125,
-0.047607421875,
-0.019989013671875,
-0.0416259765625,
-0.021514892578125,
0.01496124267578125,
0.038726806640625,
0.046905517578125,
-0.016357421875,
-0.01300048828125,
-0.01473236083984375,
0.040374755859375,
-0.055267333984375,
0.0023479461669921875,
-0.0172882080078125,
-0.03387451171875,
-0.018707275390625,
0.00493621826171875,
0.028594970703125,
0.0243988037109375,
-0.0263519287109375,
0.01580810546875,
0.04827880859375,
0.00928497314453125,
0.0208892822265625,
-0.0270233154296875,
-0.0008397102355957031,
0.005397796630859375,
-0.00823211669921875,
-0.0308990478515625,
-0.0184173583984375,
-0.06451416015625,
0.0259552001953125,
-0.01776123046875,
-0.0016689300537109375,
-0.0043792724609375,
0.0005578994750976562,
0.026214599609375,
-0.037689208984375,
-0.0249176025390625,
0.0289154052734375,
0.0784912109375,
-0.0244293212890625,
-0.043670654296875,
-0.004322052001953125,
-0.0031986236572265625,
0.0259246826171875,
-0.0024738311767578125,
0.0069732666015625,
-0.00951385498046875,
-0.0019626617431640625,
-0.02569580078125,
-0.059051513671875,
0.040283203125,
0.055999755859375,
0.070556640625,
0.033416748046875,
0.05389404296875,
-0.00949859619140625,
0.004535675048828125,
0.033843994140625,
0.0025806427001953125,
-0.031951904296875,
0.0137176513671875,
-0.004306793212890625,
0.01502227783203125,
0.005802154541015625,
0.0784912109375,
0.06048583984375,
0.01345062255859375,
0.022796630859375,
0.002048492431640625,
0.0165252685546875,
0.01435089111328125,
-0.0108795166015625,
-0.01500701904296875,
0.00991058349609375,
-0.032073974609375,
0.042633056640625,
0.048187255859375,
0.0173187255859375,
0.032684326171875,
-0.021331787109375,
-0.01422882080078125,
0.04766845703125,
-0.07843017578125,
-0.09210205078125,
-0.12078857421875,
-0.07818603515625,
0.006198883056640625,
0.00884246826171875,
-0.0268402099609375,
0.04840087890625,
0.0168914794921875,
0.0302734375,
0.048370361328125,
-0.036712646484375,
-0.06488037109375,
-0.0325927734375,
-0.08001708984375,
-0.0033283233642578125,
0.0019702911376953125,
0.001720428466796875,
0.006351470947265625,
0.042755126953125,
-0.0056610107421875,
-0.0504150390625,
-0.0016851425170898438,
-0.003238677978515625,
-0.0177001953125,
-0.000873565673828125,
-0.03106689453125,
-0.011688232421875,
0.0300445556640625,
-0.0110321044921875,
0.0008521080017089844,
0.00589752197265625,
0.015838623046875,
-0.01007843017578125,
-0.0292205810546875,
-0.0377197265625,
-0.032958984375,
0.0065460205078125,
0.04119873046875,
-0.04632568359375,
-0.0099029541015625,
-0.051727294921875,
-0.0046234130859375,
-0.02392578125,
-0.0303192138671875,
0.0284881591796875,
0.020111083984375,
-0.0175933837890625,
0.017578125,
-0.01389312744140625,
-0.0005812644958496094,
0.009490966796875,
0.000015437602996826172,
-0.01004791259765625,
0.036346435546875,
-0.020111083984375,
-0.0159149169921875,
-0.0228424072265625,
0.006988525390625,
-0.0419921875,
-0.037933349609375,
-0.0240478515625,
-0.0300140380859375,
-0.00567626953125,
-0.038818359375,
-0.0084228515625,
-0.0467529296875,
0.0528564453125,
-0.01739501953125,
0.0113067626953125,
-0.048370361328125,
-0.0235137939453125,
-0.0145721435546875,
0.07568359375,
-0.00948333740234375,
-0.0081939697265625,
0.04498291015625,
0.033599853515625,
-0.0819091796875,
-0.049835205078125,
-0.07891845703125,
-0.0032367706298828125,
-0.105712890625,
-0.01137542724609375,
-0.01678466796875,
-0.03973388671875,
0.020599365234375,
-0.0289764404296875,
-0.0307769775390625,
-0.0638427734375,
0.0209197998046875,
-0.0012292861938476562,
-0.01499176025390625,
0.0237274169921875,
-0.01357269287109375,
-0.0206756591796875,
0.003902435302734375,
-0.004322052001953125,
-0.10418701171875,
-0.0163726806640625,
-0.045684814453125,
0.09259033203125,
0.03070068359375,
-0.00667572021484375,
-0.004669189453125,
0.053802490234375,
0.0015277862548828125,
-0.0121917724609375,
0.01129913330078125,
-0.007068634033203125,
0.01038360595703125,
0.0157928466796875,
-0.01422119140625,
0.005374908447265625,
-0.0224609375,
-0.0231781005859375,
-0.031005859375,
-0.0038547515869140625,
-0.016082763671875,
-0.01259613037109375,
0.02813720703125,
-0.011627197265625,
-0.005367279052734375,
-0.0160675048828125,
-0.0175323486328125,
0.00635528564453125,
-0.0034465789794921875,
0.004032135009765625,
-0.01499176025390625,
0.00258636474609375,
0.0299530029296875,
0.01666259765625,
-0.0204010009765625,
0.0098114013671875,
0.0280609130859375,
0.022186279296875,
-0.0221405029296875,
-0.016265869140625,
-0.000640869140625,
0.0214996337890625,
0.0150909423828125,
0.06707763671875,
0.046234130859375,
-0.0077667236328125,
0.03094482421875,
0.0197906494140625,
0.0112152099609375,
0.0098419189453125,
0.0312042236328125,
0.0033664703369140625,
-0.038360595703125,
0.04327392578125,
0.011749267578125,
-0.04510498046875,
0.05096435546875,
0.02777099609375,
-0.0179443359375,
-0.0166168212890625,
0.00533294677734375,
0.02618408203125,
-0.060302734375,
-0.0191802978515625,
-0.043426513671875,
0.0137481689453125,
-0.060455322265625,
0.049163818359375,
0.027252197265625,
0.0018072128295898438,
0.035308837890625,
0.041961669921875,
-0.013336181640625,
-0.0171661376953125,
0.017547607421875,
-0.039093017578125,
0.015869140625,
0.004547119140625,
-0.035614013671875,
-0.0074615478515625,
-0.035552978515625,
0.0919189453125,
0.021697998046875,
-0.070556640625,
0.055267333984375,
-0.022918701171875,
0.0310211181640625,
0.03594970703125,
-0.006420135498046875,
0.0296783447265625,
-0.0228424072265625,
-0.01198577880859375,
-0.0298004150390625,
0.001605987548828125,
-0.0518798828125,
-0.03985595703125,
0.0271453857421875,
-0.02264404296875,
0.006450653076171875,
0.004802703857421875,
0.057861328125,
0.0285491943359375,
0.0239410400390625,
-0.021240234375,
-0.018341064453125,
-0.041351318359375,
0.0377197265625,
-0.01220703125,
0.00033664703369140625,
0.049072265625,
0.0035266876220703125,
0.064697265625,
-0.05242919921875,
-0.0211029052734375,
0.01038360595703125,
0.057525634765625,
-0.01245880126953125,
-0.0180511474609375,
0.0164337158203125,
-0.02001953125,
-0.040313720703125,
0.05682373046875,
-0.005130767822265625,
-0.0618896484375,
-0.032806396484375,
0.00955963134765625,
0.032196044921875,
0.0004208087921142578,
-0.0160675048828125,
0.0369873046875,
-0.0026073455810546875,
0.0487060546875,
0.0245361328125,
0.00007635354995727539,
0.0006976127624511719,
-0.0036296844482421875,
0.01702880859375,
-0.0245208740234375,
-0.015869140625,
-0.0238494873046875,
0.0171661376953125,
-0.0302276611328125,
-0.0242919921875,
0.0203704833984375,
-0.0122222900390625,
0.0330810546875,
-0.0162506103515625,
-0.02093505859375,
-0.01206207275390625,
0.022369384765625,
-0.0031833648681640625,
-0.0026340484619140625,
0.004856109619140625,
-0.017364501953125,
-0.044036865234375,
-0.032928466796875,
-0.0187225341796875,
-0.00792694091796875,
-0.043670654296875,
-0.004032135009765625,
0.016143798828125,
0.004375457763671875,
-0.02447509765625,
-0.0384521484375,
-0.057891845703125,
0.032745361328125,
0.061920166015625,
0.06427001953125,
-0.0118560791015625,
0.08892822265625,
-0.0153350830078125,
0.0300140380859375,
-0.004058837890625,
0.033355712890625,
-0.04461669921875,
0.02166748046875,
0.00803375244140625,
-0.00400543212890625,
-0.0340576171875,
-0.0161590576171875,
-0.006561279296875,
0.0194549560546875,
0.06549072265625,
-0.0205230712890625,
0.01280975341796875,
0.003047943115234375,
0.0018110275268554688,
-0.0111083984375,
-0.0007572174072265625,
0.02386474609375,
0.002536773681640625,
0.029754638671875,
0.01432037353515625,
0.005908966064453125,
-0.038116455078125,
-0.048431396484375,
0.027679443359375,
0.01248931884765625,
0.01467132568359375,
0.01084136962890625,
-0.0087738037109375,
0.020050048828125,
0.036712646484375,
0.0254058837890625,
0.0662841796875,
-0.004673004150390625,
0.0509033203125,
0.03228759765625,
0.01136016845703125,
-0.0297088623046875,
-0.014404296875,
0.01055145263671875,
-0.00746917724609375,
0.0001709461212158203,
0.0067138671875,
-0.01178741455078125,
0.007904052734375,
0.08514404296875,
0.07470703125,
-0.10284423828125,
-0.0117340087890625,
0.00868988037109375,
-0.006862640380859375,
0.02642822265625,
-0.00983428955078125,
-0.0268402099609375,
-0.040252685546875,
0.0289764404296875,
0.031280517578125,
-0.0175323486328125,
0.0164947509765625,
0.0386962890625,
-0.0085601806640625,
-0.0216827392578125,
0.022552490234375,
-0.00537109375,
-0.05364990234375,
0.0031909942626953125,
0.0285797119140625,
-0.00958251953125,
-0.0198516845703125,
0.003719329833984375,
0.020965576171875,
-0.04107666015625,
-0.093017578125,
-0.0169830322265625,
-0.0005502700805664062,
-0.043182373046875,
0.034088134765625,
0.023101806640625,
0.040496826171875,
0.0239105224609375,
0.0224151611328125,
0.007686614990234375,
-0.0259552001953125,
0.0303802490234375,
0.04632568359375,
-0.014312744140625,
0.0212554931640625,
0.01076507568359375,
-0.038299560546875,
0.009368896484375,
0.01146697998046875,
-0.03717041015625,
-0.01088714599609375,
-0.0205230712890625,
0.0631103515625,
-0.0076446533203125,
-0.013031005859375,
0.0078125,
0.01045989990234375,
0.001983642578125,
-0.00664520263671875,
0.032958984375,
-0.03277587890625,
0.0022487640380859375,
0.0037555694580078125,
-0.0232391357421875,
-0.03515625,
-0.036376953125,
-0.03564453125,
0.050628662109375,
-0.05255126953125,
0.026275634765625,
0.03778076171875,
0.0007662773132324219,
-0.0161895751953125,
-0.01494598388671875,
0.03009033203125,
0.052978515625,
0.0226898193359375,
-0.032257080078125,
-0.0166168212890625,
-0.01221466064453125,
-0.01141357421875,
0.057403564453125,
0.041900634765625,
0.00710296630859375,
-0.056396484375,
-0.006664276123046875,
0.07110595703125,
0.0755615234375,
0.054229736328125,
0.0297393798828125,
-0.02001953125,
0.0187225341796875,
-0.0040435791015625,
-0.02313232421875,
0.016143798828125,
-0.0030364990234375,
-0.05816650390625,
0.01513671875,
0.014801025390625,
0.00445556640625,
0.020782470703125,
0.020294189453125,
-0.0458984375,
0.03326416015625,
0.03277587890625,
-0.00792694091796875,
0.002841949462890625,
-0.0207977294921875,
-0.0223388671875,
0.00867462158203125,
-0.0030765533447265625,
0.0010728836059570312,
0.0083770751953125,
0.011566162109375,
-0.047607421875,
-0.0169830322265625,
0.005290985107421875,
-0.040771484375,
0.00415802001953125,
-0.025482177734375,
0.03997802734375,
-0.01788330078125,
0.0191497802734375,
0.00348663330078125,
0.034637451171875,
-0.01380157470703125,
0.017669677734375,
-0.0137939453125,
0.017974853515625,
-0.0298919677734375,
-0.04534912109375,
0.0107574462890625,
0.0111541748046875,
0.00975799560546875,
0.021026611328125,
0.026519775390625,
-0.01348876953125,
0.0243682861328125,
0.017547607421875,
0.00629425048828125,
0.003269195556640625,
-0.0198516845703125,
0.0010700225830078125,
0.0308837890625,
0.007160186767578125,
0.05902099609375,
-0.00016188621520996094,
-0.031829833984375,
0.0010738372802734375,
0.041900634765625,
0.040252685546875,
0.004795074462890625,
-0.04949951171875,
-0.00966644287109375,
-0.00252532958984375,
0.01300048828125,
-0.01363372802734375,
0.0028839111328125,
-0.02056884765625,
-0.031707763671875,
-0.0026702880859375,
0.03680419921875,
0.0038089752197265625,
-0.0026531219482421875,
0.04949951171875,
0.0528564453125,
-0.0251922607421875,
-0.0283355712890625,
0.0276031494140625,
-0.01485443115234375,
-0.0467529296875,
-0.032440185546875,
0.0017156600952148438,
0.0122833251953125,
0.0016851425170898438,
0.0303192138671875,
0.0267333984375,
0.00811004638671875,
0.00429534912109375,
0.018402099609375,
0.0037822723388671875,
0.00033092498779296875,
-0.0082244873046875,
0.008209228515625,
-0.035888671875,
0.03167724609375,
-0.037933349609375,
-0.013641357421875,
-0.00579833984375,
-0.0036869049072265625,
0.0033435821533203125,
0.0214996337890625,
-0.0070343017578125,
0.0250396728515625,
0.012359619140625,
-0.0355224609375,
-0.0054473876953125,
0.0261383056640625,
0.0298614501953125,
-0.04425048828125,
-0.0162506103515625,
-0.0159454345703125,
-0.056396484375,
-0.031890869140625,
-0.03955078125,
0.046905517578125,
-0.00763702392578125,
0.10382080078125,
-0.03582763671875,
0.015625,
-0.006134033203125,
0.0091400146484375,
-0.004180908203125,
0.01010894775390625,
-0.02667236328125,
0.007266998291015625,
-0.00023174285888671875,
-0.010955810546875,
-0.0579833984375,
0.05682373046875,
0.0056304931640625,
0.0019931793212890625,
0.03594970703125,
0.00421905517578125,
0.0045318603515625,
-0.0121917724609375,
-0.03436279296875,
-0.04937744140625,
-0.08172607421875,
-0.052001953125,
0.036468505859375,
-0.035858154296875,
-0.01751708984375,
-0.0087738037109375,
0.045654296875,
-0.033935546875,
-0.0004978179931640625,
0.01409149169921875,
-0.0634765625,
-0.0146942138671875,
0.01445770263671875,
-0.00955963134765625,
-0.0274505615234375,
-0.006755828857421875,
-0.00940704345703125,
0.00591278076171875,
0.005153656005859375,
0.037811279296875,
-0.004878997802734375,
0.032135009765625,
0.0002803802490234375,
0.05743408203125,
0.034393310546875,
-0.0149688720703125,
0.0181732177734375,
0.080810546875,
-0.04425048828125,
-0.00408172607421875,
-0.00276947021484375,
-0.0246734619140625,
-0.0160675048828125,
-0.0028018951416015625,
0.01055145263671875,
0.01078033447265625,
-0.042236328125,
-0.0350341796875,
0.02642822265625,
0.03228759765625,
-0.004852294921875,
-0.05377197265625,
0.056427001953125,
-0.070556640625,
0.0309906005859375,
-0.007450103759765625,
0.00888824462890625,
0.0255279541015625,
0.053466796875,
-0.0154266357421875,
-0.01568603515625,
-0.0019445419311523438,
0.01204681396484375,
-0.0277557373046875,
0.00768280029296875,
0.026702880859375,
0.002696990966796875,
0.022308349609375,
-0.0246734619140625,
-0.02886962890625,
0.0283966064453125,
-0.0266876220703125,
0.023834228515625,
0.026885986328125,
0.035400390625,
-0.0567626953125,
-0.080810546875,
0.0009946823120117188,
0.0020465850830078125,
0.01343536376953125,
-0.030792236328125,
0.0078125,
-0.00798797607421875,
-0.051788330078125,
-0.0819091796875,
0.00615692138671875,
0.0032062530517578125,
-0.0330810546875,
-0.038604736328125,
-0.00351715087890625,
-0.00321197509765625,
-0.01070404052734375,
-0.002197265625,
-0.05352783203125,
-0.00980377197265625,
0.04541015625,
0.015411376953125,
-0.0019550323486328125,
0.0311431884765625,
0.0174713134765625,
-0.058837890625,
0.00771331787109375,
0.0026912689208984375,
0.012115478515625,
-0.0194091796875,
0.0167694091796875,
0.0020923614501953125,
0.0236663818359375,
-0.020660400390625,
-0.0206451416015625,
0.01058197021484375,
-0.024993896484375,
0.01055145263671875,
-0.029571533203125,
0.011138916015625,
-0.0137786865234375,
0.0001938343048095703,
-0.007259368896484375,
-0.0083160400390625,
0.009918212890625,
-0.044921875,
-0.059112548828125,
-0.00167083740234375,
-0.043487548828125,
0.01271820068359375,
-0.0771484375,
-0.00731658935546875,
-0.00830078125,
0.004314422607421875,
0.00258636474609375,
0.0189056396484375,
-0.005702972412109375,
-0.0117950439453125,
0.0187225341796875,
-0.005992889404296875,
-0.02215576171875,
-0.01080322265625,
0.08123779296875,
-0.048736572265625,
0.007354736328125,
0.01131439208984375,
0.021148681640625,
0.042022705078125,
0.0041351318359375,
-0.005992889404296875,
0.0166473388671875,
-0.04736328125,
0.01104736328125,
-0.004596710205078125,
0.00835418701171875,
-0.045318603515625,
0.0009641647338867188,
0.00138092041015625,
-0.0015687942504882812,
-0.0198211669921875,
-0.007781982421875,
0.03131103515625,
-0.0164642333984375,
-0.0181121826171875,
0.05035400390625,
-0.015533447265625,
-0.00798797607421875,
-0.0204620361328125,
0.037109375,
0.01300811767578125,
-0.0260162353515625,
0.037628173828125,
-0.0197601318359375,
0.007381439208984375,
-0.0174560546875,
0.06231689453125,
-0.053253173828125,
0.03466796875,
-0.046875,
0.036102294921875,
0.0276641845703125
] |
ced313657e024ebd23ba9a09da5737c417c2a4d7 | Wordpress Stackexchange
Q: Problem accessing wp-load.php I'm writing a standalone script for Wordpress so I can display things like the username on a page outside of Wordpress.
My method so far is to try to include or require wp-load.php in my script directory. I've tried
chdir ( ".." );
include "wp-load.php";
as well as absolute paths to the web root where Wordpress is located for both the chdir and the include. I don't get any errors but wp_get_current_user() always returns empty.
If I move my script up a level to the same folder with Wordpress it works fine. How can I include wp-load.php and keep all of the files in my subfolder?
EDIT: file structure
*
*public_html (wordpress is installed here so wp-load.php is also here)
*
*myScript (directory)
*
*script.php
*This is where I try to use chdir ( ".." ) or include ( "../wp-load.php" ) without success
A: try this i hope this work.
$parse_uri = explode( 'wp-content', $_SERVER['SCRIPT_FILENAME'] );
require_once( $parse_uri[0] . 'wp-load.php' );
| Q: Problem accessing wp-load.php I'm writing a standalone script for Wordpress so I can display things like the username on a page outside of Wordpress.
My method so far is to try to include or require wp-load.php in my script directory. I've tried
chdir ( ".." );
include "wp-load.php";
as well as absolute paths to the web root where Wordpress is located for both the chdir and the include. I don't get any errors but wp_get_current_user() always returns empty.
If I move my script up a level to the same folder with Wordpress it works fine. How can I include wp-load.php and keep all of the files in my subfolder?
EDIT: file structure
*
*public_html (wordpress is installed here so wp-load.php is also here)
*
*myScript (directory)
*
*script.php
*This is where I try to use chdir ( ".." ) or include ( "../wp-load.php" ) without success
A: try this i hope this work.
$parse_uri = explode( 'wp-content', $_SERVER['SCRIPT_FILENAME'] );
require_once( $parse_uri[0] . 'wp-load.php' );
A: Use this to include
<?php include '../wp-load.php'; ?>
that will give you the wp-load.php file ../ is usually use for get path of last folder.
hope this helps you and also let me know the result.
| wordpress | {
"language": "en",
"length": 202,
"provenance": "stackexchange_00019.jsonl.gz:491345",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/323256"
} | [
0.07818603515625,
-0.0218048095703125,
-0.015106201171875,
-0.064453125,
0.01445770263671875,
-0.040924072265625,
0.0341796875,
0.0145111083984375,
-0.025726318359375,
0.0284576416015625,
-0.065185546875,
0.00862884521484375,
-0.035430908203125,
0.02044677734375,
-0.020721435546875,
-0.07391357421875,
0.0272979736328125,
-0.0185394287109375,
0.0264434814453125,
-0.004123687744140625,
-0.0172271728515625,
0.018524169921875,
0.0309295654296875,
0.014495849609375,
-0.003391265869140625,
0.01049041748046875,
0.06512451171875,
-0.01708984375,
0.0019159317016601562,
-0.01548004150390625,
0.00777435302734375,
-0.009765625,
0.0018987655639648438,
0.0355224609375,
-0.0111846923828125,
-0.00893402099609375,
0.00322723388671875,
0.017120361328125,
0.019256591796875,
0.024261474609375,
0.0194091796875,
-0.005954742431640625,
-0.0072479248046875,
0.01593017578125,
-0.01044464111328125,
-0.054656982421875,
0.04022216796875,
-0.01445770263671875,
0.01056671142578125,
0.0194244384765625,
0.0247039794921875,
0.023590087890625,
0.021148681640625,
-0.00679779052734375,
0.002960205078125,
0.0233917236328125,
0.016876220703125,
0.0201568603515625,
0.035675048828125,
-0.045166015625,
-0.049072265625,
-0.00911712646484375,
0.04669189453125,
0.0189666748046875,
0.003665924072265625,
-0.012542724609375,
-0.0053863525390625,
0.03680419921875,
-0.052337646484375,
-0.0018892288208007812,
0.026275634765625,
-0.033172607421875,
0.01326751708984375,
-0.01229095458984375,
-0.015655517578125,
-0.0273590087890625,
0.0121002197265625,
-0.042236328125,
0.01947021484375,
0.0066375732421875,
-0.0225982666015625,
0.0022182464599609375,
-0.08917236328125,
0.0149383544921875,
0.01026153564453125,
0.052581787109375,
-0.0164947509765625,
-0.03094482421875,
-0.0215911865234375,
-0.0033016204833984375,
-0.0279998779296875,
0.0246734619140625,
-0.0197296142578125,
-0.00609588623046875,
-0.04083251953125,
-0.002567291259765625,
0.003643035888671875,
0.0294342041015625,
-0.0149078369140625,
0.01885986328125,
0.007343292236328125,
-0.0227203369140625,
0.0306549072265625,
-0.02679443359375,
-0.01102447509765625,
0.0740966796875,
0.021392822265625,
0.031463623046875,
0.00879669189453125,
-0.00047278404235839844,
0.02313232421875,
-0.0184783935546875,
-0.0173797607421875,
-0.0223236083984375,
-0.038482666015625,
0.01001739501953125,
-0.02880859375,
-0.010955810546875,
0.0122833251953125,
0.0085906982421875,
-0.0048980712890625,
0.0271453857421875,
-0.033782958984375,
-0.00330352783203125,
-0.0162811279296875,
-0.03314208984375,
0.00847625732421875,
-0.0090789794921875,
-0.0011644363403320312,
0.04876708984375,
-0.0019083023071289062,
-0.01558685302734375,
0.0014715194702148438,
0.01543426513671875,
-0.0162353515625,
-0.035064697265625,
0.01201629638671875,
-0.0137786865234375,
-0.0038051605224609375,
0.00514984130859375,
0.0032634735107421875,
-0.0367431640625,
-0.0119781494140625,
-0.00966644287109375,
-0.00769805908203125,
0.01149749755859375,
0.0258636474609375,
0.016357421875,
-0.01294708251953125,
-0.048370361328125,
0.0041351318359375,
0.0225067138671875,
0.005352020263671875,
0.033416748046875,
0.039764404296875,
0.0009055137634277344,
0.06658935546875,
-0.042938232421875,
0.01065826416015625,
-0.025909423828125,
0.0298004150390625,
-0.01126861572265625,
-0.032135009765625,
-0.0234527587890625,
-0.051300048828125,
-0.004547119140625,
-0.01629638671875,
-0.006877899169921875,
0.0220489501953125,
0.0004551410675048828,
-0.012847900390625,
-0.012054443359375,
0.039276123046875,
0.0228729248046875,
-0.00217437744140625,
0.0200347900390625,
-0.01763916015625,
0.03863525390625,
0.00519561767578125,
0.03619384765625,
0.00506591796875,
-0.041168212890625,
0.02947998046875,
0.00412750244140625,
-0.051300048828125,
0.00820159912109375,
0.0157623291015625,
0.018707275390625,
0.020965576171875,
0.0096588134765625,
0.050201416015625,
0.0404052734375,
-0.003875732421875,
-0.004070281982421875,
-0.0214080810546875,
-0.0171356201171875,
0.00783538818359375,
0.0186767578125,
-0.02056884765625,
0.0002925395965576172,
0.01296234130859375,
-0.0408935546875,
0.0264434814453125,
-0.006805419921875,
-0.036376953125,
-0.0199432373046875,
-0.0036468505859375,
0.00783538818359375,
0.02337646484375,
-0.00972747802734375,
-0.006683349609375,
-0.00693511962890625,
0.0079803466796875,
-0.0457763671875,
-0.042633056640625,
0.049957275390625,
-0.01480865478515625,
0.08905029296875,
0.02276611328125,
0.060577392578125,
0.0081329345703125,
-0.0299835205078125,
0.00995635986328125,
-0.03509521484375,
0.01085662841796875,
-0.0085601806640625,
-0.0182952880859375,
-0.0241851806640625,
0.0163421630859375,
-0.00913238525390625,
0.0165863037109375,
0.035491943359375,
0.0203094482421875,
0.0374755859375,
-0.0300140380859375,
0.0008754730224609375,
-0.00010418891906738281,
-0.0018520355224609375,
-0.00420379638671875,
0.0293121337890625,
0.035369873046875,
0.0206298828125,
-0.005767822265625,
0.012115478515625,
0.0226593017578125,
-0.047271728515625,
0.00811767578125,
-0.01302337646484375,
-0.019683837890625,
0.00786590576171875,
-0.01045989990234375,
0.0083770751953125,
0.03277587890625,
-0.044921875,
-0.0301971435546875,
0.07720947265625,
0.0105438232421875,
0.0164337158203125,
-0.04266357421875,
0.0292510986328125,
-0.005950927734375,
-0.018096923828125,
-0.00585174560546875,
-0.0206298828125,
-0.00110626220703125,
0.0016508102416992188,
-0.0062103271484375,
0.00421142578125,
-0.0253143310546875,
-0.002079010009765625,
0.0248870849609375,
-0.021453857421875,
-0.00807952880859375,
-0.0032787322998046875,
0.01433563232421875,
-0.049163818359375,
-0.04522705078125,
0.00997161865234375,
0.0204620361328125,
-0.0223388671875,
0.005889892578125,
-0.0018987655639648438,
-0.0088043212890625,
0.007282257080078125,
0.006591796875,
-0.049774169921875,
0.033050537109375,
0.046661376953125,
0.031005859375,
0.009033203125,
0.02557373046875,
0.045257568359375,
0.01314544677734375,
0.04046630859375,
0.0035381317138671875,
-0.00830078125,
0.1116943359375,
-0.00873565673828125,
0.021392822265625,
0.00803375244140625,
0.05084228515625,
0.047943115234375,
0.01439666748046875,
-0.018463134765625,
-0.0086517333984375,
0.0197906494140625,
0.0040435791015625,
-0.02728271484375,
-0.0199737548828125,
-0.0181732177734375,
-0.03955078125,
0.0012845993041992188,
0.025054931640625,
0.045623779296875,
-0.0025634765625,
-0.046600341796875,
-0.01514434814453125,
0.0213165283203125,
-0.11419677734375,
-0.1163330078125,
-0.006328582763671875,
-0.07733154296875,
0.0128173828125,
-0.0209197998046875,
-0.050018310546875,
-0.01309967041015625,
0.00969696044921875,
0.00591278076171875,
-0.03369140625,
-0.052093505859375,
-0.067138671875,
-0.10760498046875,
-0.077392578125,
-0.004962921142578125,
-0.00801849365234375,
-0.0160369873046875,
0.0033855438232421875,
0.0225067138671875,
0.00807952880859375,
-0.038330078125,
-0.017791748046875,
0.09490966796875,
-0.0222625732421875,
-0.052337646484375,
-0.0174713134765625,
-0.007312774658203125,
0.041015625,
-0.005420684814453125,
0.00930023193359375,
0.01934814453125,
0.005023956298828125,
-0.025390625,
0.028778076171875,
-0.045928955078125,
0.007904052734375,
0.049774169921875,
-0.0350341796875,
-0.03594970703125,
0.02880859375,
-0.079345703125,
0.0023651123046875,
-0.0268096923828125,
-0.03759765625,
-0.005924224853515625,
0.01447296142578125,
-0.0166015625,
-0.006343841552734375,
-0.006473541259765625,
0.0193634033203125,
0.0294342041015625,
-0.005954742431640625,
0.0206146240234375,
0.01678466796875,
-0.017242431640625,
0.007434844970703125,
-0.0032634735107421875,
0.049041748046875,
-0.005924224853515625,
-0.017547607421875,
0.00702667236328125,
-0.0039005279541015625,
-0.0219268798828125,
-0.027618408203125,
-0.06048583984375,
-0.022979736328125,
0.06512451171875,
0.03466796875,
0.0058441162109375,
-0.034454345703125,
-0.0288238525390625,
-0.033843994140625,
0.048248291015625,
-0.0202178955078125,
-0.004451751708984375,
0.0207366943359375,
0.0184173583984375,
-0.08135986328125,
-0.0347900390625,
-0.06317138671875,
0.01018524169921875,
-0.020660400390625,
-0.023040771484375,
-0.040863037109375,
0.006565093994140625,
0.0037822723388671875,
-0.02911376953125,
0.018096923828125,
-0.049163818359375,
0.0313720703125,
-0.06695556640625,
0.020599365234375,
0.02667236328125,
-0.0036029815673828125,
-0.0228271484375,
-0.0175628662109375,
-0.03814697265625,
-0.09234619140625,
-0.004669189453125,
-0.036529541015625,
0.060089111328125,
0.01690673828125,
0.00397491455078125,
-0.010711669921875,
0.035797119140625,
-0.01357269287109375,
0.0112457275390625,
0.01422882080078125,
0.00467681884765625,
-0.00887298583984375,
0.01015472412109375,
0.023773193359375,
-0.01209259033203125,
-0.0178985595703125,
-0.0435791015625,
-0.0204315185546875,
-0.027862548828125,
-0.0355224609375,
-0.01092529296875,
-0.035125732421875,
-0.0071868896484375,
-0.00518798828125,
-0.01010894775390625,
0.00690460205078125,
0.0174713134765625,
-0.0055694580078125,
0.00510406494140625,
0.01482391357421875,
-0.016448974609375,
0.057403564453125,
0.035675048828125,
-0.007061004638671875,
-0.0165252685546875,
0.04425048828125,
0.0139312744140625,
-0.044586181640625,
-0.022735595703125,
0.006435394287109375,
0.033203125,
-0.046295166015625,
0.08538818359375,
0.0604248046875,
0.004543304443359375,
0.055694580078125,
0.011962890625,
0.045440673828125,
0.0247344970703125,
0.0017480850219726562,
-0.0028858184814453125,
-0.0310821533203125,
0.037139892578125,
0.03106689453125,
-0.07147216796875,
0.0186767578125,
-0.01416015625,
-0.02593994140625,
0.037384033203125,
0.029571533203125,
-0.057708740234375,
0.057769775390625,
-0.0031986236572265625,
-0.032562255859375,
-0.0026111602783203125,
-0.05047607421875,
0.05322265625,
0.03179931640625,
-0.00829315185546875,
0.039093017578125,
0.052703857421875,
-0.00798797607421875,
0.0143585205078125,
0.0064239501953125,
0.04791259765625,
0.02484130859375,
0.02423095703125,
0.034332275390625,
-0.0185394287109375,
-0.0194244384765625,
0.0731201171875,
0.020233154296875,
-0.03375244140625,
-0.00876617431640625,
0.0027599334716796875,
0.005123138427734375,
0.01454925537109375,
0.005157470703125,
0.031890869140625,
0.02264404296875,
-0.028076171875,
-0.0050048828125,
0.0285491943359375,
-0.0215301513671875,
-0.045440673828125,
0.03466796875,
0.004817962646484375,
0.0090789794921875,
-0.0041351318359375,
0.09295654296875,
0.0012483596801757812,
0.062042236328125,
-0.0239105224609375,
0.01377105712890625,
0.019256591796875,
0.0296630859375,
0.007678985595703125,
-0.007297515869140625,
0.005146026611328125,
0.01338958740234375,
0.0264739990234375,
-0.054595947265625,
0.003665924072265625,
0.01033782958984375,
0.052154541015625,
-0.06463623046875,
-0.0697021484375,
0.06536865234375,
-0.03717041015625,
-0.022918701171875,
0.045654296875,
-0.01397705078125,
-0.061798095703125,
-0.05377197265625,
-0.00870513916015625,
0.054656982421875,
-0.00847625732421875,
-0.00567626953125,
0.029022216796875,
-0.031768798828125,
-0.034088134765625,
0.059112548828125,
-0.044525146484375,
-0.040130615234375,
-0.019317626953125,
-0.00485992431640625,
-0.0175323486328125,
0.0028018951416015625,
0.0196990966796875,
0.01071929931640625,
-0.033966064453125,
-0.04107666015625,
0.093994140625,
-0.0019521713256835938,
0.0062255859375,
-0.05023193359375,
0.021209716796875,
-0.0008692741394042969,
-0.005558013916015625,
0.02606201171875,
-0.01239013671875,
-0.026123046875,
0.023040771484375,
-0.03778076171875,
-0.021392822265625,
0.0290069580078125,
-0.039306640625,
-0.047210693359375,
-0.045501708984375,
-0.0117340087890625,
0.01264190673828125,
0.003749847412109375,
0.0270843505859375,
-0.0275115966796875,
0.02093505859375,
-0.00264739990234375,
0.0290679931640625,
-0.03857421875,
0.10137939453125,
0.0017061233520507812,
0.042694091796875,
0.00769805908203125,
0.055267333984375,
0.0183258056640625,
-0.017425537109375,
0.00006031990051269531,
-0.04010009765625,
-0.015380859375,
0.01248931884765625,
-0.017181396484375,
0.0249786376953125,
0.02362060546875,
-0.0027904510498046875,
-0.0012140274047851562,
-0.0225372314453125,
-0.0022029876708984375,
-0.00897216796875,
0.0111083984375,
-0.00982666015625,
-0.0443115234375,
0.0146636962890625,
-0.00621795654296875,
-0.020416259765625,
0.006603240966796875,
-0.01308441162109375,
-0.005558013916015625,
0.020538330078125,
-0.034149169921875,
0.0179290771484375,
-0.06707763671875,
0.06451416015625,
0.0823974609375,
0.019622802734375,
0.061676025390625,
0.01345062255859375,
0.031005859375,
0.034698486328125,
0.023681640625,
0.01094818115234375,
-0.0050506591796875,
0.01335906982421875,
-0.005016326904296875,
0.00025963783264160156,
-0.004047393798828125,
-0.017242431640625,
0.00975799560546875,
0.040802001953125,
0.06622314453125,
-0.049896240234375,
-0.0057373046875,
0.01177215576171875,
-0.0323486328125,
0.0037899017333984375,
-0.037139892578125,
-0.0212554931640625,
-0.0435791015625,
0.05029296875,
0.0291748046875,
-0.03216552734375,
0.0113372802734375,
0.033660888671875,
-0.0083465576171875,
0.01377105712890625,
0.033843994140625,
0.0208740234375,
-0.037994384765625,
0.01470184326171875,
0.024871826171875,
0.027099609375,
-0.006252288818359375,
-0.004547119140625,
0.0014925003051757812,
-0.0211334228515625,
-0.04071044921875,
0.0155792236328125,
-0.035919189453125,
-0.008514404296875,
0.017333984375,
0.0155487060546875,
0.032073974609375,
0.04742431640625,
0.0026302337646484375,
-0.0019140243530273438,
0.00893402099609375,
0.0220489501953125,
0.05230712890625,
-0.0653076171875,
-0.0124664306640625,
0.043701171875,
-0.0687255859375,
0.00722503662109375,
0.0267791748046875,
-0.0229644775390625,
-0.005634307861328125,
-0.0487060546875,
0.05804443359375,
-0.03448486328125,
-0.0177154541015625,
0.00909423828125,
0.0008401870727539062,
-0.0030231475830078125,
0.01094818115234375,
0.033905029296875,
-0.043548583984375,
-0.0517578125,
0.0260772705078125,
-0.057403564453125,
-0.0239715576171875,
-0.00832366943359375,
-0.042816162109375,
0.10858154296875,
-0.03009033203125,
0.0482177734375,
0.05792236328125,
0.018341064453125,
-0.03887939453125,
0.004131317138671875,
-0.030120849609375,
0.07781982421875,
0.060150146484375,
0.045928955078125,
-0.045074462890625,
-0.024566650390625,
0.033599853515625,
0.043792724609375,
0.00771331787109375,
0.0086212158203125,
-0.01084136962890625,
-0.028106689453125,
0.02423095703125,
0.06707763671875,
0.0290374755859375,
-0.002361297607421875,
0.0170135498046875,
0.023468017578125,
-0.0137176513671875,
-0.0240631103515625,
0.0168609619140625,
-0.03985595703125,
-0.034149169921875,
0.045654296875,
0.03668212890625,
0.01015472412109375,
0.0159149169921875,
0.023590087890625,
-0.054473876953125,
0.0311126708984375,
0.0428466796875,
0.05181884765625,
-0.004230499267578125,
0.04913330078125,
0.00283050537109375,
0.015655517578125,
-0.0261993408203125,
-0.01531219482421875,
0.019439697265625,
0.0113067626953125,
0.00244140625,
0.0092620849609375,
0.004787445068359375,
0.039459228515625,
-0.0246124267578125,
-0.0178985595703125,
0.01245880126953125,
0.004566192626953125,
0.0458984375,
0.050506591796875,
0.03857421875,
-0.0191497802734375,
-0.008880615234375,
0.04412841796875,
0.05615234375,
-0.0251007080078125,
-0.03668212890625,
0.01537322998046875,
0.00036025047302246094,
-0.01291656494140625,
0.023101806640625,
-0.0004553794860839844,
-0.004154205322265625,
0.0233612060546875,
-0.002567291259765625,
-0.0170440673828125,
0.0179290771484375,
-0.00390625,
0.0225372314453125,
0.009429931640625,
-0.0000050067901611328125,
0.005298614501953125,
0.0032863616943359375,
-0.00792694091796875,
0.00191497802734375,
-0.00428009033203125,
-0.0230712890625,
0.02191162109375,
-0.019622802734375,
0.017364501953125,
0.01554107666015625,
0.04052734375,
0.02301025390625,
-0.0294647216796875,
-0.027679443359375,
-0.06658935546875,
0.028656005859375,
0.03216552734375,
-0.011505126953125,
0.01690673828125,
0.00011920928955078125,
-0.01081085205078125,
-0.0518798828125,
-0.00736236572265625,
0.045440673828125,
-0.0194549560546875,
-0.00836181640625,
0.004474639892578125,
0.0009555816650390625,
0.0143585205078125,
-0.00909423828125,
-0.010528564453125,
0.0300140380859375,
0.01824951171875,
-0.0440673828125,
0.045562744140625,
-0.01163482666015625,
-0.003875732421875,
0.01406097412109375,
-0.0168609619140625,
0.022369384765625,
-0.00498199462890625,
-0.07379150390625,
-0.00426483154296875,
-0.05108642578125,
0.01495361328125,
0.0253143310546875,
0.03338623046875,
0.036407470703125,
-0.002788543701171875,
0.03509521484375,
0.01296234130859375,
0.028564453125,
-0.0203094482421875,
0.0146942138671875,
-0.025299072265625,
0.034637451171875,
0.00788116455078125,
-0.035888671875,
-0.041839599609375,
-0.01056671142578125,
0.0465087890625,
0.0135498046875,
0.060821533203125,
-0.033355712890625,
0.01377105712890625,
-0.002254486083984375,
-0.0018644332885742188,
0.00482177734375,
-0.00634002685546875,
0.0185546875,
0.0082244873046875,
-0.0129241943359375,
-0.0192413330078125,
-0.02886962890625,
0.062042236328125,
-0.0038356781005859375,
0.01044464111328125,
0.035064697265625,
-0.0250091552734375,
0.014801025390625,
0.00933074951171875,
0.0036163330078125,
-0.0251617431640625,
-0.0474853515625,
-0.01378631591796875,
0.0272369384765625,
0.003040313720703125,
0.007076263427734375,
-0.0277252197265625,
0.00366973876953125,
0.022491455078125,
-0.030426025390625,
0.0127410888671875,
-0.0074005126953125,
-0.002216339111328125,
0.010223388671875,
0.0447998046875,
-0.0280303955078125,
-0.0120086669921875,
-0.026092529296875,
-0.0097503662109375,
-0.003566741943359375,
0.02191162109375,
-0.01267242431640625,
-0.04473876953125,
0.038787841796875,
0.031890869140625,
0.07037353515625,
0.027557373046875,
0.0224151611328125,
0.005550384521484375,
-0.00460052490234375,
0.00969696044921875,
-0.07568359375,
-0.0297088623046875,
-0.038482666015625,
-0.01557159423828125,
0.0258026123046875,
-0.023651123046875,
-0.02874755859375,
-0.0273590087890625,
-0.009368896484375,
0.009613037109375,
0.0011873245239257812,
-0.046173095703125,
0.035430908203125,
-0.017333984375,
0.0122833251953125,
-0.040069580078125,
0.02056884765625,
-0.011871337890625,
0.0229644775390625,
-0.024169921875,
0.002529144287109375,
-0.01385498046875,
0.0110931396484375,
0.008270263671875,
0.02764892578125,
0.0875244140625,
-0.020965576171875,
-0.035247802734375,
0.04180908203125,
-0.008026123046875,
0.0889892578125,
-0.09051513671875,
-0.01763916015625,
-0.010955810546875,
0.029632568359375,
0.003826141357421875,
-0.057159423828125,
-0.0021228790283203125,
-0.0120391845703125,
0.01654052734375,
-0.039947509765625,
0.01448822021484375,
0.013824462890625,
-0.056549072265625,
-0.08349609375,
0.05157470703125,
-0.01070404052734375,
-0.041839599609375,
-0.037506103515625,
0.0010480880737304688,
-0.009307861328125,
0.00260162353515625,
-0.001689910888671875,
-0.05999755859375,
-0.0155181884765625,
0.054962158203125,
0.0154876708984375,
-0.00015604496002197266,
0.0224609375,
0.0178375244140625,
-0.038909912109375,
0.0284881591796875,
0.0070037841796875,
-0.01261138916015625,
0.00681304931640625,
-0.0082855224609375,
0.03057861328125,
0.06488037109375,
-0.01494598388671875,
0.01511383056640625,
-0.001644134521484375,
-0.0350341796875,
-0.0129241943359375,
-0.06591796875,
-0.0016613006591796875,
-0.0106201171875,
0.0662841796875,
-0.016998291015625,
0.004955291748046875,
-0.01165771484375,
-0.01873779296875,
-0.033966064453125,
-0.0248870849609375,
-0.022216796875,
0.0167236328125,
-0.0609130859375,
0.0086669921875,
0.008514404296875,
-0.026123046875,
0.032012939453125,
-0.0091094970703125,
-0.041290283203125,
0.01195526123046875,
0.0006632804870605469,
-0.0182342529296875,
-0.0167388916015625,
-0.0289459228515625,
0.07696533203125,
-0.050018310546875,
-0.0235748291015625,
0.0318603515625,
0.01319122314453125,
0.012969970703125,
0.0016660690307617188,
-0.0012493133544921875,
0.0170135498046875,
-0.03076171875,
-0.00608062744140625,
0.00891876220703125,
0.0265045166015625,
-0.0013322830200195312,
-0.01282501220703125,
-0.00203704833984375,
0.00225067138671875,
-0.0233917236328125,
0.0030879974365234375,
0.0340576171875,
0.041168212890625,
-0.01043701171875,
0.03955078125,
-0.01007080078125,
-0.0007991790771484375,
-0.0204620361328125,
0.0200042724609375,
-0.0188140869140625,
-0.0055694580078125,
0.012725830078125,
-0.0001697540283203125,
-0.0146026611328125,
-0.01181793212890625,
-0.0229339599609375,
-0.0430908203125,
0.00345611572265625,
0.0027332305908203125,
-0.0141143798828125,
0.0035305023193359375
] |
db0dd9ad7d27658d4be03f3369e0879c040a1ce9 | Wordpress Stackexchange
Q: How to insert the number of posts from the category in wp _title? For example, the site has a category "News", in which there are 37 posts num.
How to insert into wp_title the number of records (37) in this category.
those, if we go to the "News" category, the title should be displayed:
<title>37 posts in News category | Site name</title>
Help me please,
Regards, Anna
A: If your theme supports WordPress adding the title tag using add_theme_support( 'title-tag' ); (it should!) you can use the document_title_parts filter to insert the post count in the right place without needing to parse the full title or modify existing elements that might have been customised, such as the separator:
function wpse_323260_document_title_category_count( $title ) {
if ( is_category() ) {
$category = get_queried_object();
$title['title'] = sprintf(
'%d posts in %s Category',
$category->count,
esc_html( single_cat_title( '', false ) )
);
}
return $title;
}
add_filter( 'document_title_parts', 'wpse_323260_document_title_category_count' );
| Q: How to insert the number of posts from the category in wp _title? For example, the site has a category "News", in which there are 37 posts num.
How to insert into wp_title the number of records (37) in this category.
those, if we go to the "News" category, the title should be displayed:
<title>37 posts in News category | Site name</title>
Help me please,
Regards, Anna
A: If your theme supports WordPress adding the title tag using add_theme_support( 'title-tag' ); (it should!) you can use the document_title_parts filter to insert the post count in the right place without needing to parse the full title or modify existing elements that might have been customised, such as the separator:
function wpse_323260_document_title_category_count( $title ) {
if ( is_category() ) {
$category = get_queried_object();
$title['title'] = sprintf(
'%d posts in %s Category',
$category->count,
esc_html( single_cat_title( '', false ) )
);
}
return $title;
}
add_filter( 'document_title_parts', 'wpse_323260_document_title_category_count' );
| wordpress | {
"language": "en",
"length": 156,
"provenance": "stackexchange_00019.jsonl.gz:491346",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/323260"
} | [
0.03350830078125,
0.003139495849609375,
-0.005084991455078125,
-0.018951416015625,
0.032623291015625,
-0.0222625732421875,
0.06951904296875,
-0.01462554931640625,
-0.00618743896484375,
-0.01401519775390625,
-0.0267486572265625,
0.0027618408203125,
-0.036163330078125,
-0.0307769775390625,
0.01531982421875,
-0.041656494140625,
0.0189361572265625,
0.00832366943359375,
0.03228759765625,
-0.00920867919921875,
-0.006198883056640625,
0.008331298828125,
0.0258941650390625,
-0.014251708984375,
-0.00969696044921875,
-0.038330078125,
0.0699462890625,
-0.0413818359375,
0.0041046142578125,
-0.0256195068359375,
0.0161590576171875,
0.018524169921875,
0.040191650390625,
-0.0170440673828125,
-0.004669189453125,
0.05963134765625,
0.04620361328125,
-0.026153564453125,
-0.0028839111328125,
0.03857421875,
0.0271148681640625,
-0.01499176025390625,
0.0838623046875,
0.0015106201171875,
0.046142578125,
-0.03643798828125,
0.057281494140625,
-0.050018310546875,
0.00684356689453125,
-0.0804443359375,
0.0256500244140625,
0.024566650390625,
0.0736083984375,
-0.0738525390625,
-0.02239990234375,
0.025909423828125,
-0.0049591064453125,
0.0229034423828125,
0.04852294921875,
-0.0234832763671875,
-0.0478515625,
-0.030242919921875,
0.03656005859375,
-0.044219970703125,
0.0010499954223632812,
0.0135040283203125,
0.0511474609375,
-0.0032558441162109375,
-0.016387939453125,
-0.01438140869140625,
0.01456451416015625,
-0.01337432861328125,
-0.0124969482421875,
-0.0004711151123046875,
-0.0133819580078125,
-0.011444091796875,
0.0145111083984375,
-0.0274810791015625,
0.01522064208984375,
0.021392822265625,
0.0240325927734375,
-0.0054473876953125,
0.032135009765625,
-0.0196990966796875,
0.01268768310546875,
0.004924774169921875,
-0.0181121826171875,
-0.0068511962890625,
-0.00896453857421875,
-0.023162841796875,
-0.0024662017822265625,
-0.0036525726318359375,
-0.03826904296875,
0.03509521484375,
0.0174102783203125,
-0.021026611328125,
-0.01666259765625,
0.058258056640625,
-0.03936767578125,
0.0022640228271484375,
-0.0270538330078125,
0.00872039794921875,
-0.0364990234375,
-0.031585693359375,
0.043487548828125,
0.04815673828125,
-0.041748046875,
-0.04864501953125,
0.04656982421875,
0.01433563232421875,
0.00957489013671875,
0.028594970703125,
-0.01190948486328125,
-0.001842498779296875,
-0.0244293212890625,
0.0384521484375,
-0.02789306640625,
0.008758544921875,
-0.003810882568359375,
0.0276641845703125,
-0.0399169921875,
-0.0154266357421875,
-0.030609130859375,
0.0086212158203125,
0.021759033203125,
-0.005634307861328125,
-0.0015726089477539062,
0.0257568359375,
-0.00922393798828125,
-0.0269622802734375,
-0.0140533447265625,
0.034149169921875,
0.04559326171875,
0.0212554931640625,
-0.01093292236328125,
0.00679779052734375,
-0.0043792724609375,
-0.032928466796875,
-0.0243377685546875,
-0.0165252685546875,
-0.012054443359375,
0.0173797607421875,
0.049835205078125,
-0.048065185546875,
0.051513671875,
0.01030731201171875,
-0.00484466552734375,
0.026641845703125,
0.042266845703125,
-0.036895751953125,
0.05108642578125,
-0.030059814453125,
0.031097412109375,
-0.0032138824462890625,
-0.054443359375,
-0.018585205078125,
-0.05755615234375,
0.00308990478515625,
-0.0014562606811523438,
-0.00948333740234375,
0.0281219482421875,
0.0276336669921875,
0.017578125,
-0.016448974609375,
-0.02166748046875,
-0.0163421630859375,
-0.048797607421875,
-0.003345489501953125,
0.01548004150390625,
0.01276397705078125,
0.004261016845703125,
0.0089569091796875,
-0.00421142578125,
-0.01239013671875,
-0.01338958740234375,
-0.01108551025390625,
-0.01087188720703125,
-0.01128387451171875,
0.00908660888671875,
0.062408447265625,
0.00954437255859375,
-0.0193328857421875,
0.0090789794921875,
-0.00289154052734375,
0.00426483154296875,
-0.00536346435546875,
0.01180267333984375,
-0.00045299530029296875,
-0.006832122802734375,
0.01522064208984375,
-0.00807952880859375,
0.0455322265625,
-0.002689361572265625,
-0.03924560546875,
-0.0240325927734375,
-0.0235748291015625,
0.0234832763671875,
-0.0094451904296875,
-0.0037384033203125,
0.048736572265625,
0.0117950439453125,
0.005615234375,
0.02447509765625,
0.0201263427734375,
0.0199127197265625,
0.0149993896484375,
0.006168365478515625,
0.020233154296875,
-0.022979736328125,
0.0267791748046875,
0.04046630859375,
0.005222320556640625,
-0.0163421630859375,
-0.07196044921875,
-0.050689697265625,
-0.04595947265625,
-0.0175018310546875,
-0.042236328125,
-0.03704833984375,
-0.00943756103515625,
-0.0491943359375,
0.01531219482421875,
-0.051605224609375,
0.036285400390625,
0.09527587890625,
-0.0055389404296875,
-0.029815673828125,
-0.0399169921875,
0.045928955078125,
0.0175933837890625,
-0.0953369140625,
0.055023193359375,
0.036895751953125,
0.032745361328125,
-0.045257568359375,
-0.01503753662109375,
-0.032135009765625,
-0.0232696533203125,
-0.0116729736328125,
0.07122802734375,
0.038726806640625,
0.00408935546875,
0.00775909423828125,
-0.0006732940673828125,
0.0242767333984375,
-0.05010986328125,
0.00782012939453125,
-0.0215301513671875,
0.006649017333984375,
0.057403564453125,
0.0286712646484375,
0.02191162109375,
-0.0020046234130859375,
-0.0455322265625,
-0.0023937225341796875,
0.03851318359375,
-0.01338958740234375,
-0.019195556640625,
-0.003063201904296875,
-0.0261993408203125,
0.03936767578125,
-0.030120849609375,
-0.05859375,
0.00991058349609375,
0.039093017578125,
0.0224609375,
0.0341796875,
0.037353515625,
-0.023651123046875,
0.0202484130859375,
0.00933837890625,
-0.022735595703125,
0.00791168212890625,
-0.00963592529296875,
-0.0379638671875,
0.0181884765625,
-0.053558349609375,
0.038665771484375,
0.01605224609375,
-0.030059814453125,
-0.005191802978515625,
0.06243896484375,
-0.001293182373046875,
-0.020263671875,
-0.048065185546875,
-0.087646484375,
0.006076812744140625,
0.01091766357421875,
-0.01020050048828125,
-0.0186614990234375,
-0.01390838623046875,
0.060211181640625,
-0.0106964111328125,
0.046051025390625,
-0.019317626953125,
0.00736236572265625,
0.030670166015625,
-0.061920166015625,
0.05194091796875,
-0.0237274169921875,
0.07415771484375,
0.07122802734375,
-0.01507568359375,
0.022125244140625,
-0.003948211669921875,
0.00849151611328125,
-0.007282257080078125,
0.003490447998046875,
-0.0167694091796875,
-0.0057525634765625,
-0.05902099609375,
0.03143310546875,
0.01061248779296875,
0.022430419921875,
0.01239013671875,
-0.0289154052734375,
0.038726806640625,
-0.006195068359375,
-0.06842041015625,
-0.08990478515625,
0.019927978515625,
-0.05670166015625,
0.00006240606307983398,
0.010589599609375,
-0.038665771484375,
-0.0279541015625,
0.032806396484375,
0.0007910728454589844,
-0.034912109375,
-0.0297393798828125,
-0.0087738037109375,
-0.053863525390625,
-0.052520751953125,
-0.02484130859375,
0.0191650390625,
0.021392822265625,
-0.004547119140625,
0.0943603515625,
0.0004696846008300781,
-0.06182861328125,
-0.0133819580078125,
0.0552978515625,
-0.009033203125,
-0.00443267822265625,
0.004123687744140625,
0.01305389404296875,
-0.021392822265625,
0.02337646484375,
-0.0126190185546875,
0.01085662841796875,
-0.007343292236328125,
-0.017730712890625,
-0.01200103759765625,
-0.005275726318359375,
0.009918212890625,
0.053619384765625,
0.022918701171875,
0.0191497802734375,
0.0269317626953125,
-0.02630615234375,
-0.0140533447265625,
0.00830078125,
-0.0245361328125,
-0.048309326171875,
-0.00920867919921875,
0.0015516281127929688,
-0.0032138824462890625,
-0.01019287109375,
-0.0213470458984375,
0.005680084228515625,
0.01059722900390625,
-0.024169921875,
0.00920867919921875,
-0.013214111328125,
-0.0158538818359375,
0.0005216598510742188,
-0.026611328125,
-0.03204345703125,
0.0540771484375,
-0.015228271484375,
0.008697509765625,
-0.0204925537109375,
0.0253753662109375,
-0.0262298583984375,
-0.053680419921875,
0.032623291015625,
-0.015625,
0.020660400390625,
-0.01242828369140625,
-0.0304412841796875,
0.021392822265625,
0.081298828125,
-0.0853271484375,
-0.04931640625,
-0.015899658203125,
0.04022216796875,
0.0021610260009765625,
-0.0709228515625,
0.037628173828125,
-0.049957275390625,
-0.051544189453125,
0.0183258056640625,
-0.014923095703125,
-0.01311492919921875,
-0.0233001708984375,
0.035614013671875,
-0.01739501953125,
-0.020355224609375,
0.023406982421875,
-0.03460693359375,
0.01009368896484375,
-0.00630950927734375,
-0.0163726806640625,
-0.007328033447265625,
-0.024322509765625,
-0.0248870849609375,
-0.05511474609375,
-0.00658416748046875,
-0.01727294921875,
0.0229644775390625,
-0.017333984375,
-0.0019702911376953125,
-0.0185089111328125,
0.0294036865234375,
0.004955291748046875,
0.042724609375,
-0.0068359375,
0.0131072998046875,
-0.002201080322265625,
-0.00475311279296875,
-0.0025882720947265625,
-0.0196990966796875,
-0.0093536376953125,
-0.03411865234375,
-0.021636962890625,
0.024688720703125,
-0.034332275390625,
0.061309814453125,
-0.036376953125,
0.0010557174682617188,
-0.0135498046875,
-0.016571044921875,
0.01021575927734375,
0.0201416015625,
0.00362396240234375,
-0.00536346435546875,
-0.01473236083984375,
-0.0206756591796875,
0.054595947265625,
0.02294921875,
0.0165252685546875,
0.00048828125,
0.08203125,
-0.0016508102416992188,
-0.032928466796875,
-0.04998779296875,
-0.0134124755859375,
0.0364990234375,
-0.01371002197265625,
0.0158233642578125,
0.0017490386962890625,
-0.043365478515625,
0.042449951171875,
0.0018968582153320312,
0.00799560546875,
-0.0130462646484375,
0.009307861328125,
0.0079345703125,
-0.004848480224609375,
-0.0012674331665039062,
-0.00241851806640625,
0.04193115234375,
0.01549530029296875,
-0.00022995471954345703,
-0.01861572265625,
0.004749298095703125,
0.00936126708984375,
-0.02178955078125,
0.05328369140625,
0.027923583984375,
-0.01128387451171875,
0.001506805419921875,
0.0297088623046875,
0.019012451171875,
0.0343017578125,
-0.004058837890625,
-0.01345062255859375,
-0.0325927734375,
-0.0099029541015625,
0.00843048095703125,
0.0292816162109375,
-0.002933502197265625,
0.0242767333984375,
0.0011758804321289062,
-0.035980224609375,
-0.0212554931640625,
-0.00397491455078125,
-0.017333984375,
-0.0223388671875,
-0.030364990234375,
-0.0254058837890625,
0.0006074905395507812,
0.04083251953125,
0.033477783203125,
0.0286102294921875,
0.0200347900390625,
0.0129852294921875,
0.020843505859375,
0.0009531974792480469,
-0.030975341796875,
0.027801513671875,
-0.011993408203125,
-0.0010776519775390625,
0.018310546875,
-0.03057861328125,
0.0202789306640625,
0.01519775390625,
-0.0236663818359375,
0.0197296142578125,
0.003391265869140625,
0.06298828125,
0.042510986328125,
0.05230712890625,
0.0102386474609375,
-0.057403564453125,
-0.01084136962890625,
0.03826904296875,
-0.03436279296875,
-0.036590576171875,
-0.002696990966796875,
0.0272216796875,
0.01560211181640625,
-0.004383087158203125,
-0.0182342529296875,
0.0120086669921875,
-0.002880096435546875,
-0.00238037109375,
-0.018646240234375,
-0.047119140625,
-0.005886077880859375,
-0.0279541015625,
-0.005126953125,
0.038909912109375,
0.0047607421875,
0.01751708984375,
-0.038421630859375,
-0.008392333984375,
0.00905609130859375,
0.00665283203125,
0.040252685546875,
-0.02728271484375,
-0.04217529296875,
-0.04656982421875,
-0.014801025390625,
0.016632080078125,
0.011138916015625,
-0.00641632080078125,
-0.006793975830078125,
-0.0367431640625,
0.005615234375,
-0.01187896728515625,
0.04302978515625,
-0.0259857177734375,
0.00144195556640625,
0.00876617431640625,
-0.00505828857421875,
0.048828125,
0.0171661376953125,
-0.00942230224609375,
-0.0305328369140625,
-0.0212249755859375,
-0.034210205078125,
0.0367431640625,
0.037384033203125,
-0.0207672119140625,
-0.00774383544921875,
0.0178985595703125,
0.0079498291015625,
0.008544921875,
-0.034210205078125,
-0.057952880859375,
0.019927978515625,
0.0518798828125,
0.00543212890625,
-0.001953125,
0.047271728515625,
0.02105712890625,
0.0145721435546875,
0.0160064697265625,
0.041839599609375,
0.004108428955078125,
-0.032562255859375,
0.0033473968505859375,
-0.01226806640625,
0.00737762451171875,
0.0125885009765625,
0.005107879638671875,
-0.042724609375,
0.00774383544921875,
0.0031604766845703125,
0.007465362548828125,
0.0036754608154296875,
0.007717132568359375,
0.002094268798828125,
-0.0452880859375,
0.038482666015625,
-0.04058837890625,
0.06512451171875,
-0.006237030029296875,
0.043060302734375,
-0.043060302734375,
0.0170745849609375,
0.0106658935546875,
-0.05023193359375,
0.005420684814453125,
0.041015625,
-0.03228759765625,
0.0455322265625,
0.06549072265625,
0.040130615234375,
0.04412841796875,
0.035186767578125,
0.0234527587890625,
-0.0294952392578125,
0.01004791259765625,
0.03485107421875,
0.01666259765625,
0.051116943359375,
-0.00830841064453125,
0.0033931732177734375,
0.01259613037109375,
-0.033233642578125,
-0.0193023681640625,
0.0247955322265625,
0.0121002197265625,
-0.009368896484375,
-0.01161956787109375,
-0.01424407958984375,
-0.01287841796875,
0.04022216796875,
0.006824493408203125,
0.0034122467041015625,
-0.0341796875,
0.05194091796875,
0.0048370361328125,
-0.003620147705078125,
0.0185699462890625,
-0.01312255859375,
-0.0236053466796875,
0.0034999847412109375,
-0.01372528076171875,
0.0195465087890625,
-0.0088043212890625,
-0.0114593505859375,
0.009002685546875,
-0.002346038818359375,
-0.049072265625,
0.0098876953125,
0.0262298583984375,
0.010711669921875,
-0.06549072265625,
0.06640625,
-0.0183868408203125,
0.0177001953125,
-0.0131378173828125,
0.020721435546875,
0.0283966064453125,
0.06292724609375,
-0.000705718994140625,
0.0107421875,
0.035614013671875,
-0.0171661376953125,
-0.01064300537109375,
0.0172576904296875,
0.008209228515625,
0.0168304443359375,
-0.021575927734375,
-0.004093170166015625,
-0.0458984375,
0.0305328369140625,
-0.009368896484375,
-0.0236968994140625,
0.03094482421875,
-0.0020160675048828125,
-0.01554107666015625,
0.0187225341796875,
0.0321044921875,
0.01119232177734375,
0.00628662109375,
0.05084228515625,
-0.026458740234375,
0.0077056884765625,
0.02886962890625,
0.0150146484375,
-0.01522064208984375,
0.0232086181640625,
-0.06341552734375,
0.115234375,
0.0096435546875,
0.032501220703125,
0.01219940185546875,
0.035736083984375,
-0.036468505859375,
0.010833740234375,
-0.0308685302734375,
0.045989990234375,
0.011138916015625,
0.01287841796875,
-0.040313720703125,
-0.007328033447265625,
0.00218963623046875,
0.0576171875,
0.07537841796875,
0.01092529296875,
-0.0264434814453125,
-0.0163726806640625,
0.026763916015625,
0.0721435546875,
0.00237274169921875,
0.0165252685546875,
0.00013327598571777344,
-0.0099945068359375,
0.033416748046875,
0.0068206787109375,
0.038818359375,
-0.015899658203125,
-0.0185089111328125,
0.01207733154296875,
0.018341064453125,
0.0169830322265625,
-0.013427734375,
-0.01097869873046875,
-0.00397491455078125,
-0.00952911376953125,
0.00043845176696777344,
0.019500732421875,
-0.01251983642578125,
0.0833740234375,
0.033355712890625,
-0.08233642578125,
-0.0211639404296875,
-0.05133056640625,
0.0592041015625,
-0.0195465087890625,
0.05450439453125,
0.0281524658203125,
0.01425933837890625,
0.1102294921875,
-0.0096282958984375,
0.0196533203125,
0.017303466796875,
-0.0124969482421875,
0.07403564453125,
0.025909423828125,
0.04058837890625,
-0.0264129638671875,
0.005916595458984375,
0.0361328125,
0.08587646484375,
-0.051910400390625,
-0.0194091796875,
0.02410888671875,
0.038177490234375,
-0.017486572265625,
0.01557159423828125,
0.00579833984375,
0.01568603515625,
0.06689453125,
-0.0208587646484375,
-0.033538818359375,
0.012542724609375,
0.0246124267578125,
0.018585205078125,
0.032684326171875,
-0.002471923828125,
-0.0633544921875,
-0.037139892578125,
0.0262908935546875,
0.016937255859375,
0.091796875,
0.004993438720703125,
0.056365966796875,
-0.06927490234375,
-0.04437255859375,
0.002593994140625,
0.01493072509765625,
0.0382080078125,
-0.0253448486328125,
0.0230712890625,
-0.0049896240234375,
0.038543701171875,
-0.01995849609375,
0.0206756591796875,
0.01108551025390625,
0.048858642578125,
0.06756591796875,
0.01995849609375,
-0.02978515625,
-0.0309906005859375,
-0.005878448486328125,
-0.03851318359375,
-0.033477783203125,
0.0180206298828125,
0.005046844482421875,
0.009033203125,
0.026824951171875,
0.05682373046875,
-0.00988006591796875,
-0.00731658935546875,
-0.0372314453125,
0.0151824951171875,
-0.05615234375,
0.0400390625,
0.0297393798828125,
0.055877685546875,
0.0204010009765625,
-0.10003662109375,
-0.019805908203125,
0.0109100341796875,
-0.053375244140625,
0.029296875,
0.044036865234375,
-0.04486083984375,
0.01259613037109375,
-0.01082611083984375,
-0.01541900634765625,
0.0238037109375,
-0.0038204193115234375,
0.01544189453125,
0.04803466796875,
0.0080413818359375,
0.01708984375,
-0.0389404296875,
-0.01904296875,
0.0158843994140625,
0.04376220703125,
0.004741668701171875,
0.011688232421875,
0.006282806396484375,
0.022705078125,
-0.053802490234375,
0.005496978759765625,
-0.0285797119140625,
-0.037017822265625,
-0.000713348388671875,
0.045562744140625,
0.0227508544921875,
-0.01039886474609375,
-0.03485107421875,
-0.041168212890625,
0.059051513671875,
-0.045745849609375,
-0.0020236968994140625,
-0.032470703125,
0.0300750732421875,
-0.037994384765625,
0.031585693359375,
-0.012542724609375,
0.035369873046875,
-0.00473785400390625,
-0.05303955078125,
0.06378173828125,
0.0158233642578125,
0.0139617919921875,
0.0210723876953125,
-0.022491455078125,
-0.005596160888671875,
0.0029888153076171875,
-0.0162506103515625,
-0.0017566680908203125,
0.0261993408203125,
-0.04449462890625,
-0.00530242919921875,
0.0210723876953125,
-0.0101318359375,
-0.0024051666259765625,
0.02337646484375,
-0.0048675537109375,
0.01169586181640625,
-0.03460693359375,
-0.041839599609375,
0.0096282958984375,
0.046417236328125,
-0.004871368408203125,
0.0484619140625,
-0.060546875,
0.003330230712890625,
0.052276611328125,
-0.005428314208984375,
-0.03485107421875,
-0.05438232421875,
0.005222320556640625,
0.02410888671875,
-0.02276611328125,
0.004596710205078125,
-0.044586181640625,
-0.012115478515625,
0.01302337646484375,
-0.0248565673828125,
0.0176849365234375,
-0.0028820037841796875,
-0.04339599609375,
0.00499725341796875,
-0.02862548828125,
-0.02880859375,
0.0229034423828125,
0.051239013671875,
-0.0621337890625,
0.0157012939453125,
-0.036773681640625,
-0.06195068359375,
-0.05438232421875,
0.00800323486328125,
0.0277252197265625,
-0.0176239013671875,
-0.00749969482421875,
0.00687408447265625,
0.003543853759765625,
0.042327880859375,
0.0089111328125,
-0.00229644775390625,
0.0021076202392578125,
0.02374267578125,
-0.052764892578125,
-0.052703857421875,
0.03802490234375,
-0.037078857421875,
-0.033782958984375,
-0.0364990234375,
0.0008721351623535156,
0.0011272430419921875,
-0.04132080078125,
-0.057708740234375,
0.02667236328125,
-0.0137481689453125,
-0.0311279296875,
-0.05908203125,
-0.01364898681640625,
-0.0237274169921875,
0.035919189453125,
-0.0092315673828125,
-0.02716064453125,
-0.0152740478515625,
0.05841064453125,
0.0123138427734375,
0.026153564453125,
0.0300750732421875,
-0.0117340087890625,
-0.05096435546875,
-0.00982666015625,
-0.01274871826171875,
0.005008697509765625,
0.047576904296875,
-0.0014085769653320312,
0.02130126953125,
0.037628173828125,
-0.06134033203125,
0.0297698974609375,
-0.048980712890625,
0.0028934478759765625,
-0.02093505859375,
-0.0643310546875,
-0.0304412841796875,
-0.0216217041015625,
0.06475830078125,
0.029205322265625,
0.01320648193359375,
-0.043548583984375,
-0.0021152496337890625,
-0.028717041015625,
0.000408172607421875,
-0.00519561767578125,
-0.02325439453125,
-0.0118560791015625,
-0.00499725341796875,
-0.014556884765625,
0.0028514862060546875,
-0.00003325939178466797,
-0.04193115234375,
-0.01398468017578125,
-0.030181884765625,
-0.03125,
0.00749969482421875,
-0.0251007080078125,
-0.006153106689453125,
0.02667236328125,
-0.037994384765625,
-0.06280517578125,
0.01192474365234375,
0.0132293701171875,
-0.050750732421875,
-0.01114654541015625,
-0.030487060546875,
-0.0211639404296875,
-0.01296234130859375,
0.0191497802734375,
-0.0201873779296875,
0.0357666015625,
-0.02899169921875,
0.006145477294921875,
0.0008711814880371094,
0.0229339599609375,
-0.0034084320068359375,
0.021087646484375,
-0.002819061279296875,
0.041229248046875,
0.0009026527404785156,
0.0711669921875,
-0.007274627685546875,
-0.0135345458984375,
-0.017181396484375,
0.0340576171875,
-0.03570556640625,
-0.007595062255859375,
-0.01140594482421875,
-0.0274200439453125,
-0.0007443428039550781,
0.0130157470703125,
-0.0178985595703125,
-0.0227813720703125,
0.003185272216796875,
-0.01641845703125,
0.0140838623046875,
0.0069732666015625
] |
ae0d9aff1974e6cee1cd7c76e4cdf740b9bc3479 | Wordpress Stackexchange
Q: WordPress 5.0 - publish page immediately without double-check I just installed WordPress 5.0 and I'm getting used to the new admin area for publishing posts and pages. I notice that when I press "Publish", I get a "Double-check your settings before publishing." message.
How can I disable that so I can just publish with one click, like WordPress 4.x?
A: I found the answer to this. There is a checkbox at the bottom of the publish sidebar, that says something like "Always perform check before publishing". I unchecked it and that solved the issue.
| Q: WordPress 5.0 - publish page immediately without double-check I just installed WordPress 5.0 and I'm getting used to the new admin area for publishing posts and pages. I notice that when I press "Publish", I get a "Double-check your settings before publishing." message.
How can I disable that so I can just publish with one click, like WordPress 4.x?
A: I found the answer to this. There is a checkbox at the bottom of the publish sidebar, that says something like "Always perform check before publishing". I unchecked it and that solved the issue.
| wordpress | {
"language": "en",
"length": 95,
"provenance": "stackexchange_00019.jsonl.gz:491361",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/323316"
} | [
0.04180908203125,
-0.0005183219909667969,
-0.0045928955078125,
-0.0184478759765625,
0.004802703857421875,
-0.0303802490234375,
0.0151824951171875,
-0.0186004638671875,
0.0113525390625,
0.00518035888671875,
0.0149078369140625,
-0.005016326904296875,
0.0167236328125,
-0.05084228515625,
0.02996826171875,
0.0017271041870117188,
0.0153045654296875,
0.01568603515625,
0.0206298828125,
-0.032745361328125,
-0.003856658935546875,
-0.033782958984375,
0.03179931640625,
0.029388427734375,
-0.009857177734375,
0.037078857421875,
0.0291290283203125,
-0.04058837890625,
0.0126953125,
-0.0291900634765625,
0.01059722900390625,
-0.0008349418640136719,
-0.0030670166015625,
0.03961181640625,
-0.0192718505859375,
0.01038360595703125,
-0.04620361328125,
0.041412353515625,
0.01146697998046875,
0.0040283203125,
0.0024871826171875,
0.001834869384765625,
0.043060302734375,
0.01328277587890625,
0.0091400146484375,
-0.042449951171875,
0.033477783203125,
-0.049407958984375,
0.05126953125,
-0.004306793212890625,
-0.02386474609375,
-0.0100555419921875,
-0.01134490966796875,
-0.056793212890625,
-0.025482177734375,
-0.0128631591796875,
0.00007367134094238281,
0.006378173828125,
0.030029296875,
0.039398193359375,
-0.031097412109375,
0.01250457763671875,
-0.0198822021484375,
-0.06536865234375,
0.018798828125,
0.0310821533203125,
0.003597259521484375,
0.005680084228515625,
-0.038726806640625,
0.024444580078125,
0.018310546875,
-0.06170654296875,
0.00994110107421875,
-0.02069091796875,
0.05242919921875,
-0.004978179931640625,
-0.01800537109375,
0.0117034912109375,
-0.0016088485717773438,
0.042449951171875,
0.023956298828125,
-0.006954193115234375,
-0.0667724609375,
-0.01189422607421875,
0.034423828125,
0.032257080078125,
-0.0040130615234375,
-0.02288818359375,
-0.039215087890625,
-0.034881591796875,
-0.0235595703125,
-0.0292816162109375,
-0.0277099609375,
-0.023773193359375,
-0.0146636962890625,
-0.02471923828125,
0.033416748046875,
0.06988525390625,
-0.00595855712890625,
0.0035190582275390625,
-0.0283355712890625,
-0.0186614990234375,
-0.014129638671875,
-0.036590576171875,
0.0134124755859375,
-0.01390838623046875,
-0.0137786865234375,
-0.0037860870361328125,
0.044525146484375,
0.040252685546875,
-0.0206298828125,
0.0015430450439453125,
0.0065765380859375,
-0.01503753662109375,
-0.0205535888671875,
0.0185394287109375,
-0.0091552734375,
0.01806640625,
0.012664794921875,
0.0188751220703125,
0.00691986083984375,
0.04443359375,
-0.019317626953125,
-0.046173095703125,
0.025177001953125,
0.0223846435546875,
-0.007965087890625,
-0.026580810546875,
-0.0161590576171875,
0.01155853271484375,
-0.006381988525390625,
0.016387939453125,
0.040557861328125,
0.0293426513671875,
-0.0224761962890625,
-0.01073455810546875,
-0.001697540283203125,
0.0266265869140625,
0.0125885009765625,
0.0267486572265625,
-0.07379150390625,
-0.044281005859375,
0.057586669921875,
-0.035003662109375,
-0.0272216796875,
0.0006103515625,
0.0265655517578125,
0.039093017578125,
-0.0372314453125,
-0.0308380126953125,
-0.0153045654296875,
0.01351165771484375,
0.00743865966796875,
0.0245208740234375,
0.00981903076171875,
-0.0145263671875,
0.003414154052734375,
-0.01274871826171875,
0.0203399658203125,
-0.016845703125,
0.0289306640625,
-0.001377105712890625,
0.0225830078125,
-0.0206298828125,
-0.028594970703125,
0.00585174560546875,
-0.06146240234375,
-0.008544921875,
0.01161956787109375,
-0.0169525146484375,
0.03564453125,
-0.016143798828125,
-0.040985107421875,
-0.025360107421875,
-0.0013275146484375,
0.001194000244140625,
0.034423828125,
-0.005504608154296875,
0.008544921875,
0.022369384765625,
-0.0184783935546875,
-0.03399658203125,
0.0229644775390625,
-0.043548583984375,
-0.058685302734375,
0.017730712890625,
0.0006861686706542969,
0.056427001953125,
0.04022216796875,
0.00849151611328125,
0.0187225341796875,
-0.01154327392578125,
-0.02069091796875,
0.045745849609375,
0.00894927978515625,
-0.0198974609375,
-0.016693115234375,
0.012115478515625,
-0.0137481689453125,
-0.04052734375,
0.030914306640625,
0.01195526123046875,
-0.0072784423828125,
0.00885009765625,
-0.06121826171875,
0.014495849609375,
-0.0191497802734375,
0.0218963623046875,
0.039825439453125,
0.0011186599731445312,
0.00021076202392578125,
0.0098876953125,
0.0079803466796875,
-0.053802490234375,
-0.07916259765625,
-0.0144805908203125,
-0.0227203369140625,
0.00270843505859375,
0.018218994140625,
-0.005443572998046875,
0.0160064697265625,
-0.0281219482421875,
-0.0016632080078125,
0.004688262939453125,
0.058837890625,
-0.0357666015625,
0.0010995864868164062,
-0.039398193359375,
0.056610107421875,
-0.0252532958984375,
0.01039886474609375,
0.05670166015625,
0.002338409423828125,
-0.0296630859375,
-0.0017833709716796875,
0.02679443359375,
0.0198516845703125,
-0.07891845703125,
-0.0177764892578125,
0.039337158203125,
0.04168701171875,
0.0068511962890625,
-0.0004591941833496094,
0.0141754150390625,
-0.0031223297119140625,
-0.06805419921875,
-0.0026149749755859375,
0.0016660690307617188,
0.037078857421875,
0.07708740234375,
-0.02099609375,
-0.038909912109375,
0.01654052734375,
-0.09234619140625,
0.0075225830078125,
0.027679443359375,
-0.005352020263671875,
0.01641845703125,
-0.03533935546875,
-0.00467681884765625,
0.016754150390625,
0.00004190206527709961,
-0.0277252197265625,
-0.00521087646484375,
-0.0180206298828125,
0.0158843994140625,
0.0081024169921875,
0.006481170654296875,
0.006877899169921875,
0.00585174560546875,
0.0025482177734375,
-0.049102783203125,
-0.006305694580078125,
0.0379638671875,
0.032562255859375,
-0.0007033348083496094,
-0.046630859375,
-0.017181396484375,
-0.0133819580078125,
0.01407623291015625,
-0.01428985595703125,
-0.0168304443359375,
0.01885986328125,
-0.002101898193359375,
0.038818359375,
0.001987457275390625,
0.03125,
-0.0234222412109375,
0.046173095703125,
-0.0067596435546875,
0.015869140625,
0.00894927978515625,
-0.046417236328125,
0.0816650390625,
-0.003662109375,
-0.039520263671875,
-0.01325225830078125,
-0.06597900390625,
0.0296478271484375,
-0.0260009765625,
0.04229736328125,
0.07073974609375,
0.00860595703125,
0.02410888671875,
0.01384735107421875,
-0.01371002197265625,
0.01248931884765625,
0.00971221923828125,
-0.004749298095703125,
0.028839111328125,
-0.07916259765625,
0.01331329345703125,
0.02679443359375,
0.00922393798828125,
0.019317626953125,
-0.03863525390625,
-0.0009322166442871094,
0.005275726318359375,
-0.0784912109375,
-0.0826416015625,
-0.056915283203125,
-0.0202484130859375,
0.015716552734375,
0.03656005859375,
0.0149993896484375,
-0.01314544677734375,
0.06494140625,
0.0203704833984375,
-0.0540771484375,
0.01560211181640625,
0.0184783935546875,
0.0002048015594482422,
-0.0174713134765625,
0.0113067626953125,
-0.004222869873046875,
0.0209503173828125,
0.0142364501953125,
0.07818603515625,
0.02716064453125,
-0.077880859375,
0.01444244384765625,
-0.01812744140625,
-0.037811279296875,
0.04669189453125,
-0.0296783447265625,
-0.00757598876953125,
0.01953125,
0.0014448165893554688,
0.03607177734375,
-0.002567291259765625,
-0.011932373046875,
-0.024200439453125,
0.0008540153503417969,
-0.00742340087890625,
0.018585205078125,
-0.0196990966796875,
-0.015899658203125,
0.0009183883666992188,
-0.0086212158203125,
-0.034820556640625,
0.01085662841796875,
0.0187225341796875,
-0.0196533203125,
-0.0267181396484375,
-0.0009698867797851562,
-0.030914306640625,
0.014892578125,
-0.01532745361328125,
0.0184326171875,
0.01140594482421875,
0.029510498046875,
0.00494384765625,
0.0005602836608886719,
-0.010772705078125,
-0.010406494140625,
-0.040069580078125,
0.01451873779296875,
-0.014404296875,
0.019378662109375,
0.01071929931640625,
0.0216064453125,
-0.01364898681640625,
0.04327392578125,
-0.034576416015625,
-0.05303955078125,
0.024932861328125,
-0.0836181640625,
-0.033966064453125,
-0.025909423828125,
0.019683837890625,
0.01047515869140625,
0.04705810546875,
-0.0247802734375,
-0.007415771484375,
0.0010843276977539062,
-0.0102081298828125,
-0.0191802978515625,
0.02392578125,
-0.0701904296875,
0.0005550384521484375,
-0.00954437255859375,
0.0178680419921875,
-0.0224761962890625,
-0.0004096031188964844,
-0.0189208984375,
-0.0094757080078125,
0.01336669921875,
-0.0218505859375,
0.029449462890625,
-0.0302886962890625,
0.00856781005859375,
0.03155517578125,
-0.0233612060546875,
0.01119232177734375,
-0.01251220703125,
-0.041748046875,
-0.07452392578125,
0.0003390312194824219,
-0.0151214599609375,
0.0140228271484375,
-0.0166168212890625,
0.049072265625,
0.00007855892181396484,
0.04901123046875,
-0.015167236328125,
0.01200103759765625,
-0.01094818115234375,
0.0040740966796875,
0.029937744140625,
0.01181793212890625,
-0.0180511474609375,
0.0018672943115234375,
0.010894775390625,
0.043487548828125,
-0.020721435546875,
0.0166473388671875,
-0.0264434814453125,
-0.06256103515625,
0.042236328125,
-0.05352783203125,
-0.0623779296875,
-0.019012451171875,
0.003170013427734375,
-0.010894775390625,
-0.0239105224609375,
0.0238037109375,
0.011474609375,
-0.04400634765625,
0.038055419921875,
-0.06475830078125,
0.0112457275390625,
-0.0034732818603515625,
0.0970458984375,
0.0118560791015625,
0.003826141357421875,
0.0179443359375,
-0.01152801513671875,
0.0283966064453125,
0.0234375,
0.03302001953125,
0.0194091796875,
-0.0099334716796875,
0.023712158203125,
0.01309967041015625,
-0.015960693359375,
-0.023590087890625,
0.07293701171875,
-0.0303802490234375,
-0.007053375244140625,
0.006519317626953125,
-0.06842041015625,
0.04876708984375,
0.00986480712890625,
0.04937744140625,
-0.0087432861328125,
0.0328369140625,
-0.0219268798828125,
0.0333251953125,
-0.055084228515625,
0.0121917724609375,
-0.00983428955078125,
0.00014722347259521484,
0.09326171875,
0.00894927978515625,
0.052947998046875,
-0.0021800994873046875,
0.03045654296875,
0.016876220703125,
-0.038970947265625,
0.03021240234375,
0.043212890625,
-0.004085540771484375,
0.01436614990234375,
-0.0282745361328125,
-0.057281494140625,
-0.0196990966796875,
-0.00650787353515625,
0.00733184814453125,
0.01285552978515625,
-0.0284423828125,
-0.007778167724609375,
-0.0033092498779296875,
-0.005413055419921875,
-0.01544189453125,
0.01256561279296875,
0.042877197265625,
0.0285186767578125,
0.0084381103515625,
-0.0018587112426757812,
-0.0103302001953125,
0.03411865234375,
-0.035552978515625,
-0.037353515625,
-0.01251220703125,
-0.01490020751953125,
0.09271240234375,
-0.04266357421875,
-0.01096343994140625,
0.0093994140625,
-0.0229339599609375,
0.04034423828125,
0.0677490234375,
-0.0567626953125,
0.03411865234375,
0.038665771484375,
-0.00553131103515625,
-0.103515625,
-0.00376129150390625,
-0.048431396484375,
-0.0264739990234375,
0.0285186767578125,
0.00714111328125,
0.0242919921875,
0.01220703125,
0.005527496337890625,
0.042938232421875,
-0.0265655517578125,
0.015350341796875,
0.005619049072265625,
-0.0228118896484375,
-0.02490234375,
0.004291534423828125,
0.01280975341796875,
0.01335906982421875,
-0.0169525146484375,
-0.00623321533203125,
-0.026153564453125,
0.006832122802734375,
-0.037567138671875,
-0.0255126953125,
0.0192413330078125,
0.014007568359375,
0.00986480712890625,
-0.05987548828125,
-0.0262603759765625,
-0.04486083984375,
0.039642333984375,
-0.0232391357421875,
-0.01104736328125,
0.0219268798828125,
-0.0352783203125,
-0.00042438507080078125,
-0.0313720703125,
0.0394287109375,
-0.047943115234375,
0.01232147216796875,
0.03302001953125,
0.024169921875,
0.023651123046875,
-0.058746337890625,
-0.0438232421875,
-0.0819091796875,
-0.0408935546875,
0.02996826171875,
-0.0357666015625,
0.0440673828125,
-0.001667022705078125,
-0.007579803466796875,
-0.0252227783203125,
-0.0784912109375,
-0.05389404296875,
0.022735595703125,
0.0743408203125,
-0.0040435791015625,
-0.004817962646484375,
0.038360595703125,
-0.01198577880859375,
0.043243408203125,
0.00122833251953125,
0.02020263671875,
0.01031494140625,
-0.034271240234375,
-0.004711151123046875,
-0.00732421875,
-0.003154754638671875,
0.001422882080078125,
0.007259368896484375,
-0.02117919921875,
0.017578125,
0.001857757568359375,
0.006412506103515625,
-0.00965118408203125,
0.008056640625,
-0.01273345947265625,
0.004665374755859375,
-0.023406982421875,
-0.025665283203125,
0.0273590087890625,
-0.029541015625,
0.0181732177734375,
0.005107879638671875,
-0.036895751953125,
0.0177764892578125,
-0.0023899078369140625,
-0.00019848346710205078,
0.0293121337890625,
0.002536773681640625,
0.007476806640625,
0.040863037109375,
-0.0048675537109375,
0.04473876953125,
0.0224609375,
0.028045654296875,
0.021881103515625,
-0.035400390625,
-0.05047607421875,
-0.0100555419921875,
0.009124755859375,
-0.004184722900390625,
0.0186309814453125,
0.0421142578125,
0.0102996826171875,
0.03863525390625,
0.08349609375,
0.0794677734375,
-0.0980224609375,
0.0038967132568359375,
0.0091705322265625,
-0.0477294921875,
0.03375244140625,
-0.0167999267578125,
0.01087188720703125,
-0.0156707763671875,
0.0604248046875,
0.0209197998046875,
-0.0064849853515625,
0.015380859375,
-0.0296630859375,
-0.0240631103515625,
0.00830078125,
0.0684814453125,
0.03948974609375,
-0.03875732421875,
0.053680419921875,
0.0062408447265625,
0.05328369140625,
0.020721435546875,
0.0399169921875,
-0.0247650146484375,
-0.018951416015625,
-0.0288238525390625,
-0.00995635986328125,
-0.020233154296875,
-0.03314208984375,
0.06927490234375,
0.0032215118408203125,
0.005725860595703125,
0.035797119140625,
0.0083770751953125,
0.003437042236328125,
-0.005359649658203125,
-0.00909423828125,
-0.0194549560546875,
0.02288818359375,
0.017547607421875,
0.0110931396484375,
-0.043365478515625,
0.0209197998046875,
-0.060943603515625,
0.0018758773803710938,
0.0157623291015625,
0.0229034423828125,
0.037322998046875,
-0.07708740234375,
0.00853729248046875,
0.021820068359375,
0.0098114013671875,
0.0262451171875,
-0.001209259033203125,
0.01416778564453125,
-0.021148681640625,
0.00865936279296875,
-0.006641387939453125,
-0.0266876220703125,
-0.041534423828125,
-0.037139892578125,
-0.044464111328125,
0.10919189453125,
-0.047943115234375,
0.00586700439453125,
0.0316162109375,
0.051055908203125,
-0.039031982421875,
0.0213775634765625,
-0.036590576171875,
0.031951904296875,
0.00030350685119628906,
0.058319091796875,
-0.06964111328125,
-0.0239715576171875,
-0.00307464599609375,
0.0399169921875,
0.09820556640625,
0.01512908935546875,
-0.0081787109375,
0.0015764236450195312,
0.085205078125,
0.0211944580078125,
-0.0152740478515625,
0.03448486328125,
-0.03759765625,
0.027557373046875,
0.027008056640625,
-0.061065673828125,
0.031341552734375,
-0.024383544921875,
-0.04412841796875,
-0.020782470703125,
0.002719879150390625,
0.0007305145263671875,
0.0265045166015625,
0.027435302734375,
0.0028591156005859375,
0.0073394775390625,
-0.0025920867919921875,
0.008758544921875,
0.01396942138671875,
-0.0128021240234375,
0.01119232177734375,
-0.025726318359375,
0.01898193359375,
-0.0189666748046875,
0.03857421875,
0.00920867919921875,
-0.005542755126953125,
0.004486083984375,
0.0009694099426269531,
0.0042877197265625,
0.013641357421875,
-0.005512237548828125,
0.02850341796875,
0.005146026611328125,
0.00019478797912597656,
-0.014739990234375,
0.01352691650390625,
-0.04803466796875,
0.016387939453125,
0.02374267578125,
0.00795745849609375,
-0.0130767822265625,
-0.00876617431640625,
0.0013828277587890625,
-0.0013780593872070312,
0.0144500732421875,
-0.04180908203125,
-0.0082244873046875,
0.0389404296875,
0.032073974609375,
0.008270263671875,
-0.00836944580078125,
-0.006496429443359375,
0.019683837890625,
-0.00006461143493652344,
0.03271484375,
0.0005383491516113281,
-0.01105499267578125,
-0.042510986328125,
-0.00826263427734375,
0.029876708984375,
0.051727294921875,
0.036651611328125,
0.03900146484375,
-0.0012578964233398438,
-0.024169921875,
-0.0206451416015625,
-0.005580902099609375,
-0.01491546630859375,
0.033782958984375,
-0.07373046875,
-0.041259765625,
0.04620361328125,
0.052520751953125,
-0.00798797607421875,
0.00039267539978027344,
0.043853759765625,
0.07232666015625,
-0.02374267578125,
-0.029571533203125,
0.0494384765625,
-0.01139068603515625,
-0.0252685546875,
-0.0008721351623535156,
-0.0222625732421875,
0.012908935546875,
-0.00441741943359375,
-0.018310546875,
0.032867431640625,
0.0272064208984375,
0.0039215087890625,
0.00225067138671875,
0.004016876220703125,
-0.0215606689453125,
0.025299072265625,
-0.006221771240234375,
0.035980224609375,
0.02301025390625,
-0.0565185546875,
0.004474639892578125,
-0.01629638671875,
-0.0321044921875,
0.008819580078125,
0.02490234375,
-0.0413818359375,
0.0438232421875,
-0.020111083984375,
0.03631591796875,
-0.0236358642578125,
-0.04803466796875,
0.02447509765625,
-0.0016393661499023438,
0.001972198486328125,
0.0162811279296875,
-0.033660888671875,
-0.02520751953125,
0.0034732818603515625,
0.041656494140625,
-0.0003046989440917969,
0.10516357421875,
-0.03314208984375,
0.01235198974609375,
0.0018606185913085938,
0.01276397705078125,
-0.00567626953125,
-0.02301025390625,
0.0251312255859375,
-0.00046706199645996094,
0.007598876953125,
-0.0171661376953125,
-0.023529052734375,
0.04058837890625,
0.00856781005859375,
-0.031158447265625,
0.038299560546875,
-0.0182037353515625,
-0.0013780593872070312,
-0.02386474609375,
0.0183868408203125,
-0.0345458984375,
-0.0340576171875,
-0.038421630859375,
0.03314208984375,
0.006526947021484375,
-0.0406494140625,
-0.07275390625,
0.010986328125,
0.0709228515625,
-0.053314208984375,
0.024566650390625,
-0.03778076171875,
0.052886962890625,
0.037445068359375,
0.09033203125,
0.0023250579833984375,
-0.0219268798828125,
-0.0202789306640625,
-0.002506256103515625,
0.01451873779296875,
-0.006031036376953125,
0.00786590576171875,
-0.0142822265625,
-0.048095703125,
-0.003742218017578125,
-0.01995849609375,
-0.0443115234375,
-0.01165008544921875,
0.0185699462890625,
-0.0231781005859375,
-0.0347900390625,
0.033111572265625,
0.0165557861328125,
0.0013751983642578125,
-0.0291290283203125,
-0.024444580078125,
-0.004405975341796875,
-0.01538848876953125,
0.0587158203125,
-0.0194091796875,
0.046875,
-0.0159912109375,
-0.028167724609375,
0.017730712890625,
-0.049774169921875,
0.022918701171875,
0.0005502700805664062,
0.03302001953125,
0.0012559890747070312,
0.027587890625,
-0.03924560546875,
0.00415802001953125,
-0.01934814453125,
0.002521514892578125,
-0.00617218017578125,
-0.01309967041015625,
-0.007274627685546875,
-0.005584716796875,
-0.02545166015625,
0.01153564453125,
-0.0031642913818359375,
0.05230712890625,
0.0443115234375,
-0.01096343994140625,
0.0151214599609375,
-0.003665924072265625,
-0.015777587890625,
-0.05810546875,
0.0082550048828125,
-0.056610107421875,
-0.016204833984375,
0.0233001708984375,
-0.01708984375,
0.02398681640625,
-0.0322265625,
-0.07476806640625,
-0.0005497932434082031,
0.018463134765625,
-0.046630859375,
0.02032470703125,
-0.0298919677734375,
0.0008521080017089844,
0.0038204193115234375,
-0.0053253173828125,
0.0012063980102539062,
-0.03680419921875,
-0.0018663406372070312,
-0.0147247314453125,
0.061767578125,
-0.002513885498046875,
-0.0225067138671875,
-0.0198516845703125,
-0.0088043212890625,
-0.01163482666015625,
0.01238250732421875,
-0.0020618438720703125,
0.004711151123046875,
0.01312255859375,
0.00766754150390625,
-0.0452880859375,
0.00008296966552734375,
0.0021724700927734375,
0.035888671875,
-0.022064208984375,
0.01377105712890625,
0.0095672607421875,
0.0256500244140625,
0.0484619140625,
0.041778564453125,
0.002147674560546875,
-0.033660888671875,
-0.0023345947265625,
-0.038818359375,
-0.043365478515625,
0.012481689453125,
0.02142333984375,
-0.04888916015625,
0.0169830322265625,
0.0419921875,
-0.0038318634033203125,
-0.0004792213439941406,
-0.0102386474609375,
-0.007465362548828125,
-0.0119476318359375,
0.004650115966796875,
0.0025787353515625,
-0.03814697265625,
-0.047088623046875,
0.032867431640625,
-0.0179290771484375,
-0.0267486572265625,
0.031402587890625,
0.01824951171875,
-0.026580810546875,
0.05670166015625,
0.016937255859375,
0.0660400390625,
-0.0714111328125,
-0.00212860107421875,
0.01293182373046875,
0.01010894775390625,
-0.04791259765625,
0.023834228515625,
0.053619384765625,
-0.0150604248046875,
-0.04815673828125,
-0.0300750732421875,
0.042938232421875,
0.007659912109375,
-0.07452392578125,
0.07928466796875,
-0.0118255615234375,
0.02880859375,
-0.049896240234375,
0.05718994140625,
0.039703369140625,
-0.0308380126953125,
0.06494140625,
-0.00992584228515625,
0.01751708984375,
0.0201416015625,
0.004055023193359375,
0.003658294677734375,
-0.0177154541015625,
-0.01788330078125,
-0.01169586181640625,
-0.005565643310546875
] |
5fb1d83134fca966c8f87358558154f79d0e4673 | Wordpress Stackexchange
Q: WooCommerce 'all' orders no longer being displayed - how may I debug/fix I've just noticed that we seem to have a bug with our store. The 'all' orders selection is showing as empty but the other sub catergories such as completed, on hold and pending etc are there.
I'm not sure what could've caused this, I presume a plugin or an update but I'm also not sure how to debug or get into the logs to check.
Any advice would be brilliant, thank you.
A: This is a know issue with WP Update 5.02.
View the topic HERE.
And the fix HERE.
| Q: WooCommerce 'all' orders no longer being displayed - how may I debug/fix I've just noticed that we seem to have a bug with our store. The 'all' orders selection is showing as empty but the other sub catergories such as completed, on hold and pending etc are there.
I'm not sure what could've caused this, I presume a plugin or an update but I'm also not sure how to debug or get into the logs to check.
Any advice would be brilliant, thank you.
A: This is a know issue with WP Update 5.02.
View the topic HERE.
And the fix HERE.
A: This was an issue with a change in WordPress 5.0.2. The issue has been fixed in WooCommerce 3.5.3, which was just released: https://woocommerce.wordpress.com/2018/12/20/woocommerce-3-5-3-release-notes/
A: If the issues persist after this type of test, then try updating the database by adding this link below after your site domain name.
/wp-admin/admin.php?page=wc-settings&do_update_woocommerce=true
A: I think that there is a conflict between your theme and another plugin. In other words, there are two parts of code that give conflicting signals. Try the following steps:
*
*Switch to a default WordPress theme.
*Temporarily deactivate all plugins except WooCommerce and the
WooCommerce extensions
*Reactivate the plugins one by one and detect the defective ones.
You can find more information about the steps here.
A: You can enable debugging in your wp-config.php file.
Add this:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
It enables debugging and will log any problems in a file "debug.log"
| wordpress | {
"language": "en",
"length": 250,
"provenance": "stackexchange_00019.jsonl.gz:491407",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/323498"
} | [
0.051727294921875,
-0.038299560546875,
0.031097412109375,
-0.0154876708984375,
-0.036590576171875,
-0.0170135498046875,
0.052032470703125,
-0.0129547119140625,
0.0645751953125,
0.0045166015625,
-0.041351318359375,
-0.03509521484375,
0.01331329345703125,
-0.03338623046875,
-0.0191192626953125,
-0.0212860107421875,
0.060394287109375,
-0.01227569580078125,
0.064208984375,
0.0275421142578125,
0.007122039794921875,
0.06890869140625,
0.0263671875,
0.040740966796875,
0.0005402565002441406,
0.009002685546875,
0.05987548828125,
-0.03399658203125,
0.0284423828125,
-0.01068115234375,
0.0179443359375,
-0.0208892822265625,
0.03228759765625,
-0.0199737548828125,
-0.0097503662109375,
0.00738525390625,
0.017303466796875,
-0.01322174072265625,
0.0016584396362304688,
0.005016326904296875,
0.053253173828125,
-0.03131103515625,
0.05279541015625,
0.020416259765625,
0.01605224609375,
-0.0248870849609375,
0.051055908203125,
-0.04071044921875,
0.0018949508666992188,
-0.04595947265625,
0.01206207275390625,
0.06787109375,
0.0179901123046875,
-0.01549530029296875,
-0.02911376953125,
-0.016387939453125,
-0.042938232421875,
0.0504150390625,
0.0162200927734375,
0.003261566162109375,
-0.0074615478515625,
0.005916595458984375,
0.0007109642028808594,
-0.02374267578125,
0.015289306640625,
0.003204345703125,
-0.006031036376953125,
0.0228271484375,
-0.02825927734375,
0.0399169921875,
0.038970947265625,
-0.0233612060546875,
0.01412200927734375,
0.00853729248046875,
0.027252197265625,
-0.045562744140625,
-0.0081024169921875,
0.00971221923828125,
0.031951904296875,
0.00833892822265625,
0.052032470703125,
-0.08038330078125,
-0.01312255859375,
0.0115203857421875,
0.0053558349609375,
-0.00031113624572753906,
0.0262298583984375,
-0.00644683837890625,
-0.01430511474609375,
-0.035919189453125,
-0.0200347900390625,
-0.01027679443359375,
-0.04449462890625,
0.021148681640625,
-0.0084686279296875,
-0.040863037109375,
0.036834716796875,
0.02752685546875,
-0.0203704833984375,
-0.017425537109375,
0.030426025390625,
-0.034149169921875,
0.00469970703125,
-0.00890350341796875,
-0.0106201171875,
-0.0186614990234375,
0.00804901123046875,
0.0290985107421875,
0.053558349609375,
0.0300140380859375,
0.0022487640380859375,
0.0869140625,
-0.0172576904296875,
-0.029754638671875,
0.0193023681640625,
0.013763427734375,
-0.057159423828125,
0.055633544921875,
-0.0004992485046386719,
0.018524169921875,
0.02996826171875,
0.0521240234375,
-0.0291290283203125,
-0.013458251953125,
-0.0290374755859375,
-0.036224365234375,
-0.00008958578109741211,
-0.040618896484375,
0.00812530517578125,
-0.00811004638671875,
-0.03326416015625,
0.02996826171875,
0.014251708984375,
0.018890380859375,
-0.0029697418212890625,
-0.00811004638671875,
-0.0148773193359375,
0.05535888671875,
0.0243072509765625,
-0.01053619384765625,
0.032012939453125,
-0.0224609375,
-0.0171356201171875,
0.048309326171875,
0.0291900634765625,
0.00044846534729003906,
0.0112457275390625,
0.01136016845703125,
0.0302886962890625,
0.031707763671875,
-0.0312347412109375,
0.00530242919921875,
0.0325927734375,
0.010528564453125,
0.0312042236328125,
0.00439453125,
0.090087890625,
-0.039947509765625,
-0.0506591796875,
-0.060089111328125,
-0.0217437744140625,
-0.0116729736328125,
0.03680419921875,
-0.039703369140625,
-0.0306854248046875,
0.018951416015625,
-0.0340576171875,
-0.0033416748046875,
0.035858154296875,
-0.0037822723388671875,
0.01294708251953125,
-0.01026153564453125,
0.041046142578125,
0.0265655517578125,
0.00444793701171875,
0.03204345703125,
-0.006465911865234375,
-0.007472991943359375,
0.0307769775390625,
-0.00965118408203125,
-0.03662109375,
-0.037353515625,
0.01447296142578125,
-0.018096923828125,
-0.052398681640625,
0.0015306472778320312,
0.017913818359375,
0.0294952392578125,
0.0274200439453125,
0.01023101806640625,
0.0699462890625,
0.006763458251953125,
-0.035919189453125,
0.0239410400390625,
0.039703369140625,
0.0117340087890625,
-0.039642333984375,
0.0019359588623046875,
0.00667572021484375,
-0.07513427734375,
-0.01012420654296875,
-0.011077880859375,
0.003566741943359375,
0.00865936279296875,
-0.01279449462890625,
0.0013227462768554688,
-0.000736236572265625,
0.0243682861328125,
0.0017948150634765625,
0.0003542900085449219,
0.015472412109375,
0.004505157470703125,
-0.06378173828125,
0.0477294921875,
-0.0101165771484375,
0.02099609375,
-0.037872314453125,
0.035491943359375,
-0.01119232177734375,
0.018463134765625,
-0.0222930908203125,
-0.042877197265625,
-0.0191802978515625,
0.01123046875,
0.038787841796875,
0.01739501953125,
-0.0198974609375,
-0.01219940185546875,
0.08416748046875,
0.0018815994262695312,
0.043243408203125,
-0.006656646728515625,
0.019775390625,
0.0152435302734375,
-0.0689697265625,
-0.01155853271484375,
-0.050018310546875,
-0.045501708984375,
0.0027313232421875,
0.05072021484375,
0.0160369873046875,
0.039794921875,
-0.01554107666015625,
0.025909423828125,
0.0869140625,
-0.004322052001953125,
0.01053619384765625,
0.015594482421875,
-0.038421630859375,
-0.030364990234375,
0.0113677978515625,
0.019317626953125,
0.052001953125,
0.055572509765625,
0.0082244873046875,
0.054962158203125,
-0.0015811920166015625,
0.0006852149963378906,
-0.046539306640625,
0.02984619140625,
-0.007404327392578125,
0.0036907196044921875,
0.0069732666015625,
-0.004695892333984375,
0.01229095458984375,
0.02337646484375,
0.05413818359375,
0.040924072265625,
-0.003997802734375,
-0.008514404296875,
0.006809234619140625,
-0.01335906982421875,
0.01285552978515625,
0.044525146484375,
0.0024261474609375,
0.0140228271484375,
-0.0484619140625,
-0.0160675048828125,
0.01087188720703125,
0.0198516845703125,
-0.0154876708984375,
-0.016082763671875,
0.0025348663330078125,
-0.0021991729736328125,
0.0171661376953125,
-0.09649658203125,
0.022369384765625,
0.005290985107421875,
-0.026641845703125,
0.01248931884765625,
0.022216796875,
0.041290283203125,
0.00148773193359375,
0.00836944580078125,
0.01503753662109375,
0.0045928955078125,
0.041900634765625,
-0.032562255859375,
0.039093017578125,
-0.0282745361328125,
0.006275177001953125,
0.06219482421875,
0.000949859619140625,
0.006317138671875,
0.0041351318359375,
-0.037200927734375,
-0.00539398193359375,
0.00490570068359375,
-0.0062713623046875,
0.004138946533203125,
-0.06512451171875,
0.01318359375,
0.0274658203125,
0.07318115234375,
-0.01428985595703125,
-0.06011962890625,
-0.004215240478515625,
0.03900146484375,
-0.06573486328125,
-0.10272216796875,
-0.07666015625,
-0.02618408203125,
-0.03704833984375,
-0.0174560546875,
-0.0024585723876953125,
0.049560546875,
-0.035675048828125,
0.022125244140625,
-0.0034999847412109375,
-0.01091766357421875,
-0.017120361328125,
-0.0306854248046875,
-0.0263214111328125,
0.0243072509765625,
0.0018682479858398438,
-0.0149078369140625,
-0.01200103759765625,
0.08477783203125,
0.0086517333984375,
-0.033660888671875,
-0.01306915283203125,
0.0025272369384765625,
0.0078582763671875,
0.00632476806640625,
0.0036296844482421875,
-0.03509521484375,
0.01436614990234375,
-0.01080322265625,
0.01226806640625,
0.01284027099609375,
0.003326416015625,
-0.00218963623046875,
-0.01314544677734375,
-0.00789642333984375,
-0.0257110595703125,
-0.00943756103515625,
0.034759521484375,
-0.005130767822265625,
-0.0297698974609375,
-0.038848876953125,
-0.01430511474609375,
-0.030303955078125,
-0.0455322265625,
0.051971435546875,
0.03509521484375,
-0.0006480216979980469,
-0.01085662841796875,
0.0096435546875,
0.0119781494140625,
0.005336761474609375,
0.0262298583984375,
-0.04278564453125,
-0.006114959716796875,
0.0027599334716796875,
-0.01128387451171875,
-0.0301513671875,
0.05413818359375,
-0.00032448768615722656,
0.012420654296875,
0.032958984375,
0.0039520263671875,
-0.0028476715087890625,
0.023773193359375,
-0.00785064697265625,
-0.043365478515625,
0.017822265625,
-0.0609130859375,
0.0038127899169921875,
-0.03985595703125,
-0.0051727294921875,
0.005496978759765625,
0.07073974609375,
0.01568603515625,
0.002593994140625,
0.01715087890625,
0.00823974609375,
-0.039337158203125,
-0.0235595703125,
-0.05096435546875,
0.0117034912109375,
-0.01436614990234375,
0.022918701171875,
-0.024993896484375,
0.005802154541015625,
-0.0018205642700195312,
-0.05145263671875,
0.01361083984375,
-0.036834716796875,
0.042633056640625,
-0.033782958984375,
-0.0036411285400390625,
0.007747650146484375,
0.0003190040588378906,
-0.0279998779296875,
-0.0289154052734375,
-0.01277923583984375,
-0.00249481201171875,
-0.0069732666015625,
0.01342010498046875,
-0.01556396484375,
-0.0150604248046875,
0.0343017578125,
-0.0031452178955078125,
0.0205535888671875,
-0.003772735595703125,
0.08282470703125,
-0.004390716552734375,
0.009368896484375,
0.002948760986328125,
-0.03717041015625,
0.01273345947265625,
-0.04248046875,
-0.028961181640625,
-0.032867431640625,
0.01212310791015625,
-0.0372314453125,
-0.0301971435546875,
-0.0389404296875,
0.004547119140625,
-0.0084991455078125,
-0.0389404296875,
-0.047576904296875,
-0.05914306640625,
0.00933074951171875,
-0.02117919921875,
-0.0128021240234375,
-0.059722900390625,
-0.0679931640625,
-0.0181732177734375,
-0.0726318359375,
-0.042938232421875,
0.033294677734375,
-0.004253387451171875,
0.026397705078125,
0.0179443359375,
0.0035724639892578125,
-0.0215301513671875,
0.037933349609375,
0.04107666015625,
0.002140045166015625,
0.0244293212890625,
-0.00688934326171875,
-0.06353759765625,
0.0305023193359375,
-0.005832672119140625,
-0.01114654541015625,
0.053375244140625,
-0.0194549560546875,
-0.029327392578125,
0.0160675048828125,
-0.03515625,
0.0270538330078125,
0.01013946533203125,
0.005100250244140625,
-0.027252197265625,
-0.022064208984375,
0.016754150390625,
0.01354217529296875,
0.01477813720703125,
0.01654052734375,
-0.037994384765625,
0.01311492919921875,
0.023406982421875,
0.04083251953125,
0.0156707763671875,
0.00566864013671875,
0.04412841796875,
0.055084228515625,
0.0089569091796875,
-0.005344390869140625,
0.01555633544921875,
-0.0374755859375,
0.032684326171875,
-0.038818359375,
-0.0135650634765625,
0.00025343894958496094,
-0.0150299072265625,
0.0345458984375,
-0.00978851318359375,
-0.076171875,
0.041717529296875,
-0.0055084228515625,
0.00278472900390625,
0.0113525390625,
-0.002452850341796875,
0.044708251953125,
0.0211029052734375,
0.017242431640625,
0.01438140869140625,
-0.051788330078125,
0.0130157470703125,
-0.033355712890625,
0.039886474609375,
-0.0014286041259765625,
-0.006435394287109375,
-0.001270294189453125,
0.065673828125,
-0.0193328857421875,
0.0264129638671875,
0.01213836669921875,
-0.027191162109375,
-0.0188140869140625,
0.04168701171875,
0.03338623046875,
-0.03192138671875,
0.0105133056640625,
-0.002002716064453125,
0.035675048828125,
-0.0004870891571044922,
-0.0313720703125,
0.0251312255859375,
-0.0027618408203125,
-0.00318145751953125,
0.0216217041015625,
0.005924224853515625,
0.016326904296875,
-0.03216552734375,
0.04071044921875,
-0.01073455810546875,
-0.0438232421875,
-0.04345703125,
-0.0015163421630859375,
0.03289794921875,
0.0039005279541015625,
0.01702880859375,
-0.00022077560424804688,
0.025421142578125,
-0.0074310302734375,
-0.0134429931640625,
-0.05078125,
0.0031070709228515625,
0.0109710693359375,
-0.042388916015625,
-0.0179290771484375,
-0.005344390869140625,
-0.057373046875,
-0.0264892578125,
0.0027294158935546875,
-0.02801513671875,
0.054534912109375,
-0.027496337890625,
0.0291900634765625,
0.00061798095703125,
-0.035980224609375,
-0.038330078125,
0.043487548828125,
0.00823211669921875,
0.016937255859375,
-0.035247802734375,
-0.01219940185546875,
-0.0338134765625,
-0.048309326171875,
-0.025360107421875,
-0.019744873046875,
-0.052154541015625,
-0.0032501220703125,
0.0294189453125,
0.0377197265625,
-0.007549285888671875,
-0.07415771484375,
-0.013153076171875,
-0.01476287841796875,
0.046783447265625,
0.0202789306640625,
0.0159454345703125,
0.044708251953125,
-0.027587890625,
0.01242828369140625,
-0.021697998046875,
-0.016845703125,
-0.034515380859375,
0.0106964111328125,
0.027130126953125,
0.0180206298828125,
-0.055999755859375,
-0.03326416015625,
-0.030029296875,
0.02044677734375,
0.0845947265625,
-0.0206756591796875,
0.019256591796875,
-0.007083892822265625,
0.007251739501953125,
-0.015960693359375,
-0.006824493408203125,
-0.011077880859375,
0.019775390625,
0.01137542724609375,
-0.0277252197265625,
-0.01534271240234375,
0.02423095703125,
0.005268096923828125,
0.0225677490234375,
-0.00939178466796875,
0.01247406005859375,
-0.018798828125,
-0.0094146728515625,
0.04339599609375,
0.041015625,
-0.012237548828125,
0.020172119140625,
0.00814056396484375,
-0.0022678375244140625,
-0.004192352294921875,
0.02587890625,
0.00931549072265625,
-0.046295166015625,
0.0269927978515625,
-0.00618743896484375,
-0.01299285888671875,
0.0189056396484375,
-0.00991058349609375,
0.0228271484375,
0.07208251953125,
0.06646728515625,
-0.1126708984375,
0.022369384765625,
0.0343017578125,
0.0283660888671875,
0.0045928955078125,
-0.0151214599609375,
0.005382537841796875,
-0.0290679931640625,
0.04437255859375,
0.011993408203125,
-0.0226287841796875,
0.00705718994140625,
-0.0124359130859375,
0.010009765625,
0.006320953369140625,
0.0188751220703125,
0.0116424560546875,
-0.06488037109375,
0.00786590576171875,
0.06634521484375,
0.0020694732666015625,
-0.0357666015625,
0.003650665283203125,
-0.0019254684448242188,
-0.01027679443359375,
-0.0263824462890625,
0.0229644775390625,
-0.039886474609375,
0.027618408203125,
0.018890380859375,
0.01983642578125,
-0.049163818359375,
0.040435791015625,
-0.044647216796875,
0.032379150390625,
0.0182037353515625,
-0.0694580078125,
-0.00044608116149902344,
-0.0304412841796875,
-0.0191497802734375,
0.0645751953125,
-0.0557861328125,
0.0127410888671875,
-0.0236358642578125,
0.04974365234375,
-0.004207611083984375,
-0.004154205322265625,
0.02423095703125,
-0.04632568359375,
-0.0062408447265625,
0.016571044921875,
0.0121917724609375,
0.01165771484375,
0.01291656494140625,
0.00829315185546875,
-0.01203155517578125,
0.047607421875,
0.030059814453125,
0.047760009765625,
-0.0243988037109375,
0.040740966796875,
-0.058929443359375,
0.0770263671875,
-0.06494140625,
0.021087646484375,
0.0228729248046875,
0.0212554931640625,
-0.0211181640625,
-0.0140838623046875,
-0.0423583984375,
0.06512451171875,
0.0197906494140625,
0.057098388671875,
0.004180908203125,
0.006214141845703125,
0.04498291015625,
0.00870513916015625,
0.01276397705078125,
-0.01433563232421875,
-0.01007843017578125,
0.0235137939453125,
0.066650390625,
-0.0003306865692138672,
-0.00399017333984375,
0.034027099609375,
-0.032867431640625,
-0.0361328125,
0.040252685546875,
-0.0229339599609375,
0.0153961181640625,
0.0016908645629882812,
-0.0038776397705078125,
-0.0231781005859375,
-0.0177764892578125,
-0.01751708984375,
-0.005176544189453125,
0.0175933837890625,
-0.01386260986328125,
-0.003704071044921875,
-0.0092010498046875,
-0.00025653839111328125,
0.0272216796875,
-0.01580810546875,
0.0226287841796875,
-0.0280303955078125,
0.00783538818359375,
0.00457000732421875,
0.047332763671875,
0.0160369873046875,
0.02191162109375,
-0.010101318359375,
-0.0012178421020507812,
0.044525146484375,
-0.040008544921875,
-0.01151275634765625,
-0.00016224384307861328,
-0.0274810791015625,
-0.0012273788452148438,
0.0269317626953125,
0.00904083251953125,
0.00359344482421875,
0.02423095703125,
0.06329345703125,
-0.002094268798828125,
-0.0271759033203125,
-0.0276336669921875,
0.0159149169921875,
-0.00152587890625,
-0.00745391845703125,
0.018035888671875,
0.01161956787109375,
-0.053924560546875,
0.00620269775390625,
-0.018798828125,
0.00677490234375,
0.007213592529296875,
0.058502197265625,
-0.000762939453125,
0.0036334991455078125,
-0.05621337890625,
-0.020751953125,
-0.03387451171875,
0.014190673828125,
0.050872802734375,
0.0408935546875,
-0.03509521484375,
0.05865478515625,
-0.0249786376953125,
0.0017566680908203125,
-0.0017843246459960938,
0.0204620361328125,
-0.0293426513671875,
-0.0023403167724609375,
-0.0577392578125,
-0.04595947265625,
-0.0019741058349609375,
0.053863525390625,
0.00806427001953125,
0.0160369873046875,
0.0303802490234375,
0.0141143798828125,
-0.0205535888671875,
0.007671356201171875,
0.055419921875,
-0.0305633544921875,
-0.0298004150390625,
-0.0206756591796875,
0.021209716796875,
0.046142578125,
0.01192474365234375,
0.01383209228515625,
0.044647216796875,
0.050933837890625,
-0.004100799560546875,
0.01422882080078125,
-0.0022830963134765625,
-0.02801513671875,
0.043304443359375,
-0.006732940673828125,
0.0574951171875,
0.01995849609375,
-0.06884765625,
-0.049713134765625,
-0.052001953125,
0.10675048828125,
0.0037860870361328125,
0.00855255126953125,
0.037841796875,
0.0380859375,
0.0117645263671875,
-0.013519287109375,
-0.0206298828125,
0.00823211669921875,
0.03851318359375,
-0.0028839111328125,
-0.0007038116455078125,
0.007411956787109375,
-0.1053466796875,
-0.043212890625,
-0.032867431640625,
-0.0026645660400390625,
-0.01348876953125,
0.039154052734375,
0.021148681640625,
-0.004581451416015625,
0.01751708984375,
-0.0033111572265625,
0.002170562744140625,
-0.019866943359375,
0.072021484375,
-0.01947021484375,
-0.0224151611328125,
-0.01033782958984375,
-0.021331787109375,
-0.0063018798828125,
0.05181884765625,
-0.060577392578125,
0.0211181640625,
-0.01160430908203125,
0.005725860595703125,
-0.054473876953125,
0.023223876953125,
-0.0109405517578125,
-0.0208740234375,
-0.0035305023193359375,
0.00946044921875,
0.0024089813232421875,
0.00013434886932373047,
-0.014129638671875,
-0.006175994873046875,
-0.00795745849609375,
-0.07000732421875,
0.0186309814453125,
-0.0291748046875,
0.0399169921875,
0.034332275390625,
-0.0022830963134765625,
0.041412353515625,
-0.0230865478515625,
-0.0215911865234375,
0.031646728515625,
0.0009584426879882812,
-0.03240966796875,
0.022247314453125,
-0.0164642333984375,
-0.0132598876953125,
0.047149658203125,
0.0036773681640625,
-0.049774169921875,
0.00342559814453125,
0.045654296875,
-0.035400390625,
-0.0048828125,
0.0222930908203125,
0.006374359130859375,
-0.0043182373046875,
-0.0163116455078125,
-0.0179443359375,
0.0416259765625,
-0.0006012916564941406,
0.06549072265625,
-0.036041259765625,
0.0102386474609375,
0.0009860992431640625,
-0.0127410888671875,
0.0015316009521484375,
0.00495147705078125,
-0.0291290283203125,
-0.004329681396484375,
-0.028289794921875,
0.02587890625,
0.07135009765625,
0.01715087890625,
-0.006938934326171875,
-0.0249786376953125,
0.0004191398620605469,
-0.0148773193359375,
0.0004940032958984375,
-0.007335662841796875,
-0.01354217529296875,
-0.00946807861328125,
-0.01210784912109375,
0.0255889892578125,
0.03338623046875,
0.0592041015625,
-0.0245513916015625,
-0.0270538330078125,
0.018524169921875,
-0.0204925537109375,
-0.05230712890625,
0.0364990234375,
-0.054656982421875,
-0.035675048828125,
-0.0244903564453125,
0.01393890380859375,
0.020233154296875,
-0.04180908203125,
-0.0880126953125,
0.031524658203125,
-0.01242828369140625,
-0.0299224853515625,
-0.05755615234375,
-0.018829345703125,
-0.0107879638671875,
0.0192108154296875,
-0.02703857421875,
-0.01081085205078125,
-0.053314208984375,
0.039886474609375,
-0.01397705078125,
0.043426513671875,
0.0175018310546875,
-0.0053558349609375,
0.02117919921875,
-0.0076751708984375,
-0.012908935546875,
-0.0228118896484375,
0.04071044921875,
-0.04168701171875,
0.029266357421875,
0.036468505859375,
-0.029052734375,
-0.082763671875,
0.002376556396484375,
-0.02392578125,
0.023529052734375,
0.015899658203125,
-0.0181732177734375,
-0.0234222412109375,
0.0301666259765625,
-0.0110015869140625,
0.006092071533203125,
0.0262451171875,
-0.02874755859375,
-0.03533935546875,
0.01300048828125,
-0.0009274482727050781,
-0.012481689453125,
-0.01479339599609375,
0.0177459716796875,
-0.0184478759765625,
-0.043060302734375,
0.0181121826171875,
0.0164794921875,
-0.0701904296875,
0.005401611328125,
-0.0426025390625,
-0.03375244140625,
-0.06036376953125,
-0.01117706298828125,
-0.00958251953125,
-0.016448974609375,
-0.015533447265625,
-0.01537322998046875,
0.0214996337890625,
-0.039337158203125,
-0.0288543701171875,
0.00981903076171875,
-0.01873779296875,
-0.027435302734375,
0.04150390625,
-0.006122589111328125,
0.03466796875,
-0.038482666015625,
-0.0220184326171875,
-0.01134490966796875,
0.0197296142578125,
-0.01922607421875,
0.0181427001953125,
0.0712890625,
0.01285552978515625,
0.007266998291015625,
0.05059814453125,
-0.0015840530395507812,
0.036834716796875,
-0.045135498046875,
0.0828857421875,
0.0174407958984375,
-0.0272674560546875,
0.0262603759765625,
-0.0210723876953125,
-0.0021762847900390625,
0.0341796875,
0.005443572998046875,
-0.060089111328125,
0.0303955078125,
0.014801025390625,
0.0295867919921875,
0.0231781005859375
] |
27aec007599f3216d6f1c6eb26eaa1caf773db0d | Wordpress Stackexchange
Q: Is it possible to set another language for debugging messages? The site language is defined as Hebrew. So I get translated error messages.
It's a terrible thing. It is difficult to understand, it is difficult to search on Google, the directions of the text are confused (because some part of the message is written in English /ltr/ and some in Hebrew /rtl/).
Is there any way to keep the site language as Hebrew, but to force the system to output error messages in English?
| Q: Is it possible to set another language for debugging messages? The site language is defined as Hebrew. So I get translated error messages.
It's a terrible thing. It is difficult to understand, it is difficult to search on Google, the directions of the text are confused (because some part of the message is written in English /ltr/ and some in Hebrew /rtl/).
Is there any way to keep the site language as Hebrew, but to force the system to output error messages in English?
| wordpress | {
"language": "en",
"length": 85,
"provenance": "stackexchange_00019.jsonl.gz:491524",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/323933"
} | [
-0.022491455078125,
-0.028411865234375,
0.00801849365234375,
0.00897216796875,
-0.031768798828125,
-0.004901885986328125,
-0.01995849609375,
-0.01421356201171875,
0.026336669921875,
0.007579803466796875,
0.02398681640625,
-0.0452880859375,
0.030120849609375,
-0.042083740234375,
-0.003261566162109375,
0.003818511962890625,
0.034515380859375,
-0.0027675628662109375,
0.020294189453125,
-0.002780914306640625,
-0.0174102783203125,
0.007213592529296875,
0.008148193359375,
0.0379638671875,
0.0085906982421875,
0.003566741943359375,
0.025390625,
-0.01666259765625,
-0.00373077392578125,
-0.0206146240234375,
0.0269317626953125,
0.0001767873764038086,
0.041656494140625,
-0.004566192626953125,
-0.0178985595703125,
0.0123748779296875,
0.05816650390625,
-0.0426025390625,
-0.0252532958984375,
0.08477783203125,
0.01165008544921875,
-0.00426483154296875,
0.07452392578125,
0.042633056640625,
0.00434112548828125,
-0.040618896484375,
0.0302734375,
-0.042633056640625,
0.0202789306640625,
0.00865936279296875,
0.0085906982421875,
0.03265380859375,
0.007137298583984375,
-0.0236663818359375,
-0.00444793701171875,
-0.0031566619873046875,
-0.00803375244140625,
0.01224517822265625,
0.01503753662109375,
0.01049041748046875,
-0.01363372802734375,
0.017486572265625,
0.0135650634765625,
-0.00991058349609375,
0.008331298828125,
-0.0026531219482421875,
0.0093231201171875,
0.0107879638671875,
-0.036834716796875,
-0.00254058837890625,
0.0260162353515625,
-0.033172607421875,
0.016815185546875,
-0.029205322265625,
-0.0081939697265625,
0.0104217529296875,
-0.025421142578125,
-0.00019812583923339844,
0.02093505859375,
-0.02056884765625,
0.0214996337890625,
-0.03424072265625,
-0.021759033203125,
0.003887176513671875,
-0.00897216796875,
0.01110076904296875,
-0.0031909942626953125,
-0.0079803466796875,
-0.0445556640625,
-0.024658203125,
-0.0220489501953125,
-0.0112762451171875,
-0.09002685546875,
0.0187835693359375,
0.0187530517578125,
-0.04388427734375,
-0.031829833984375,
0.0025577545166015625,
-0.044677734375,
-0.007358551025390625,
-0.04815673828125,
0.0035228729248046875,
-0.016937255859375,
-0.01047515869140625,
0.0125885009765625,
-0.029022216796875,
-0.044403076171875,
-0.0164337158203125,
0.0447998046875,
0.05706787109375,
-0.01629638671875,
0.018707275390625,
-0.0164642333984375,
-0.043975830078125,
0.0269012451171875,
0.060394287109375,
-0.0011730194091796875,
0.031982421875,
0.00927734375,
0.0258331298828125,
0.00632476806640625,
0.055633544921875,
-0.01338958740234375,
-0.048004150390625,
-0.03131103515625,
-0.059326171875,
-0.00922393798828125,
-0.0205535888671875,
0.035858154296875,
0.0023403167724609375,
-0.0126953125,
0.0169525146484375,
0.02734375,
0.005588531494140625,
-0.017974853515625,
-0.0027446746826171875,
0.0227813720703125,
-0.0190277099609375,
-0.007419586181640625,
0.0183868408203125,
0.0190887451171875,
-0.033111572265625,
-0.004985809326171875,
0.004314422607421875,
-0.058197021484375,
0.004947662353515625,
0.00921630859375,
0.00876617431640625,
-0.01120758056640625,
-0.08172607421875,
0.0070648193359375,
-0.00943756103515625,
0.0132598876953125,
0.001873016357421875,
0.027069091796875,
-0.044830322265625,
0.037933349609375,
-0.03399658203125,
0.035797119140625,
-0.032318115234375,
-0.02191162109375,
-0.0171966552734375,
0.01209259033203125,
-0.0116729736328125,
-0.0367431640625,
0.031768798828125,
-0.003082275390625,
0.00975799560546875,
0.01605224609375,
0.0010042190551757812,
0.006687164306640625,
0.01322174072265625,
0.025054931640625,
-0.0229644775390625,
-0.018798828125,
-0.01242828369140625,
-0.0809326171875,
0.0018129348754882812,
0.03076171875,
-0.0216217041015625,
0.01418304443359375,
-0.0212554931640625,
-0.0130767822265625,
0.0633544921875,
-0.0109405517578125,
0.005352020263671875,
0.02154541015625,
0.061126708984375,
0.0224761962890625,
0.0180816650390625,
-0.0212249755859375,
-0.0200347900390625,
0.0242462158203125,
0.0108184814453125,
-0.024749755859375,
-0.03173828125,
-0.0235443115234375,
0.01354217529296875,
-0.0293426513671875,
-0.016326904296875,
0.053192138671875,
0.0167694091796875,
-0.017364501953125,
0.006320953369140625,
-0.082763671875,
-0.004367828369140625,
-0.0237884521484375,
0.0182952880859375,
-0.002048492431640625,
0.0006499290466308594,
0.0078887939453125,
0.00833892822265625,
-0.0281982421875,
0.02972412109375,
-0.023345947265625,
0.0238037109375,
-0.0302886962890625,
0.023284912109375,
-0.0179443359375,
0.032684326171875,
0.0103759765625,
-0.03338623046875,
0.00939178466796875,
0.02447509765625,
-0.0174407958984375,
0.0081329345703125,
-0.01023101806640625,
0.0153350830078125,
0.04632568359375,
-0.01203155517578125,
0.099853515625,
-0.00034499168395996094,
-0.007221221923828125,
0.00795745849609375,
0.01023101806640625,
-0.01508331298828125,
0.0113983154296875,
-0.0838623046875,
0.033447265625,
0.037017822265625,
0.03302001953125,
0.004154205322265625,
-0.006801605224609375,
-0.039581298828125,
0.00713348388671875,
-0.036712646484375,
0.0232086181640625,
-0.034332275390625,
0.041015625,
0.034454345703125,
-0.028472900390625,
-0.0654296875,
0.033660888671875,
-0.06805419921875,
0.01270294189453125,
0.0193634033203125,
-0.0220794677734375,
-0.06744384765625,
0.0212860107421875,
-0.01690673828125,
0.033233642578125,
-0.00406646728515625,
-0.06427001953125,
0.0302734375,
0.00966644287109375,
-0.0222625732421875,
0.00040531158447265625,
-0.0033359527587890625,
0.006328582763671875,
0.005863189697265625,
0.01763916015625,
-0.068603515625,
0.0185546875,
0.068115234375,
-0.028106689453125,
0.042999267578125,
-0.02203369140625,
-0.013336181640625,
0.018157958984375,
0.05279541015625,
-0.00804901123046875,
0.037384033203125,
-0.002803802490234375,
-0.0152740478515625,
-0.00589752197265625,
-0.00937652587890625,
0.00814056396484375,
-0.0098419189453125,
0.01056671142578125,
0.0002505779266357422,
0.03045654296875,
0.017608642578125,
-0.02069091796875,
0.0418701171875,
-0.02252197265625,
-0.0236053466796875,
0.0285797119140625,
-0.0114288330078125,
0.00815582275390625,
-0.04095458984375,
-0.000598907470703125,
0.029083251953125,
-0.006076812744140625,
-0.01751708984375,
0.00016176700592041016,
-0.01468658447265625,
-0.00803375244140625,
0.002292633056640625,
-0.023193359375,
0.00897979736328125,
-0.07855224609375,
-0.0017185211181640625,
-0.0018777847290039062,
-0.0192108154296875,
-0.0190277099609375,
-0.03875732421875,
-0.03643798828125,
-0.0288848876953125,
-0.08929443359375,
-0.0723876953125,
-0.016510009765625,
-0.06097412109375,
0.03302001953125,
0.033782958984375,
-0.001613616943359375,
-0.0360107421875,
0.061920166015625,
0.01366424560546875,
0.036651611328125,
-0.051788330078125,
-0.010162353515625,
-0.025054931640625,
-0.0286407470703125,
0.0308685302734375,
0.0255889892578125,
-0.0139007568359375,
-0.0053558349609375,
-0.007598876953125,
-0.00760650634765625,
-0.041412353515625,
-0.00989532470703125,
0.05535888671875,
0.016845703125,
0.0045623779296875,
-0.035400390625,
-0.024169921875,
0.02459716796875,
-0.0077362060546875,
-0.041961669921875,
0.006343841552734375,
0.03680419921875,
0.0024242401123046875,
-0.035186767578125,
0.049896240234375,
-0.0146942138671875,
-0.1318359375,
0.042938232421875,
0.049346923828125,
-0.1082763671875,
-0.0182037353515625,
-0.06005859375,
0.025482177734375,
-0.0538330078125,
-0.0034732818603515625,
0.040008544921875,
-0.0187530517578125,
0.0107421875,
-0.006328582763671875,
0.0190277099609375,
0.0180511474609375,
0.0256195068359375,
-0.028106689453125,
0.034423828125,
-0.0010547637939453125,
-0.0016374588012695312,
-0.0362548828125,
0.0760498046875,
0.005184173583984375,
-0.03125,
0.03009033203125,
-0.004360198974609375,
0.0211029052734375,
0.001987457275390625,
0.026123046875,
0.01312255859375,
0.005115509033203125,
-0.0236663818359375,
0.035888671875,
0.01166534423828125,
-0.0094757080078125,
0.01090240478515625,
0.0277862548828125,
-0.0011444091796875,
-0.032684326171875,
-0.0252685546875,
0.0027523040771484375,
-0.027435302734375,
-0.016845703125,
0.0178985595703125,
-0.00743865966796875,
0.038787841796875,
0.00756072998046875,
0.00630950927734375,
0.0100860595703125,
-0.0643310546875,
0.06829833984375,
-0.003925323486328125,
0.027496337890625,
0.0494384765625,
-0.00574493408203125,
0.0112152099609375,
-0.0245513916015625,
0.015838623046875,
-0.041534423828125,
-0.028656005859375,
0.00673675537109375,
-0.1290283203125,
-0.035980224609375,
0.00807952880859375,
0.104736328125,
-0.03857421875,
-0.0060577392578125,
-0.037841796875,
0.0904541015625,
-0.00792694091796875,
0.0080718994140625,
0.033599853515625,
0.010498046875,
0.0648193359375,
0.0304412841796875,
0.027801513671875,
-0.015533447265625,
0.0034923553466796875,
0.032440185546875,
-0.033447265625,
0.06939697265625,
0.029052734375,
0.0156707763671875,
0.060211181640625,
-0.05206298828125,
-0.00870513916015625,
-0.01012420654296875,
-0.031036376953125,
0.04638671875,
0.0051422119140625,
-0.02325439453125,
-0.045745849609375,
-0.05279541015625,
0.0016984939575195312,
-0.004680633544921875,
-0.023895263671875,
0.01410675048828125,
-0.00656890869140625,
0.0071258544921875,
-0.013153076171875,
-0.00738525390625,
0.0219879150390625,
0.05035400390625,
0.0108489990234375,
0.04620361328125,
0.03594970703125,
-0.038909912109375,
0.0621337890625,
0.024932861328125,
0.0177459716796875,
0.0129241943359375,
-0.0214691162109375,
0.0180206298828125,
-0.0152587890625,
0.0174713134765625,
0.033660888671875,
-0.01715087890625,
0.007099151611328125,
-0.00423431396484375,
0.0283355712890625,
0.01322174072265625,
-0.00521087646484375,
-0.02685546875,
0.003841400146484375,
0.00457763671875,
-0.03594970703125,
0.024261474609375,
0.010345458984375,
-0.03656005859375,
-0.01690673828125,
0.01336669921875,
-0.02142333984375,
-0.0091094970703125,
-0.01468658447265625,
0.0195159912109375,
0.01561737060546875,
0.01507568359375,
0.019744873046875,
0.005275726318359375,
-0.01470947265625,
-0.03167724609375,
-0.01383209228515625,
0.04742431640625,
0.03558349609375,
-0.034332275390625,
0.032562255859375,
0.01097869873046875,
-0.0170745849609375,
-0.003856658935546875,
0.004863739013671875,
-0.00408935546875,
-0.0177764892578125,
0.00531768798828125,
0.0411376953125,
0.044281005859375,
-0.053619384765625,
0.01177215576171875,
0.035125732421875,
0.0013790130615234375,
0.0131378173828125,
0.018890380859375,
0.080078125,
-0.056182861328125,
0.057281494140625,
0.007564544677734375,
-0.0164031982421875,
-0.00864410400390625,
0.0367431640625,
0.022369384765625,
-0.055145263671875,
0.030120849609375,
0.0016078948974609375,
0.047576904296875,
0.027618408203125,
0.01076507568359375,
-0.00270843505859375,
0.003910064697265625,
-0.030548095703125,
0.0182037353515625,
0.0057830810546875,
-0.0419921875,
0.01485443115234375,
0.035186767578125,
-0.0224609375,
-0.04437255859375,
-0.031524658203125,
-0.045013427734375,
0.0259857177734375,
-0.04888916015625,
0.03826904296875,
0.02142333984375,
0.02752685546875,
0.0148162841796875,
0.0002722740173339844,
-0.01512908935546875,
-0.037506103515625,
-0.013946533203125,
0.024444580078125,
-0.029266357421875,
0.006969451904296875,
-0.06402587890625,
0.0219573974609375,
-0.02191162109375,
0.0114593505859375,
0.029327392578125,
0.0102691650390625,
-0.0031986236572265625,
-0.0102691650390625,
-0.0036773681640625,
0.02569580078125,
-0.00611114501953125,
0.034759521484375,
-0.037353515625,
-0.01546478271484375,
-0.0231170654296875,
-0.06195068359375,
-0.058258056640625,
-0.054779052734375,
-0.00366973876953125,
-0.055389404296875,
0.04266357421875,
0.02374267578125,
0.03851318359375,
-0.003856658935546875,
-0.0039215087890625,
-0.0160675048828125,
0.010650634765625,
0.00817108154296875,
0.06182861328125,
-0.03009033203125,
-0.000576019287109375,
0.0146636962890625,
-0.025421142578125,
-0.018280029296875,
-0.0015115737915039062,
0.02532958984375,
-0.0009675025939941406,
0.0149383544921875,
0.0369873046875,
0.0259857177734375,
-0.00959014892578125,
0.038482666015625,
-0.07159423828125,
0.0281829833984375,
0.0039043426513671875,
0.00647735595703125,
0.0023975372314453125,
0.01407623291015625,
-0.019256591796875,
-0.011749267578125,
-0.016632080078125,
0.00032711029052734375,
0.00867462158203125,
-0.03204345703125,
-0.0054931640625,
-0.00859832763671875,
0.0267791748046875,
0.0092010498046875,
-0.034454345703125,
-0.01425933837890625,
0.0269775390625,
0.0484619140625,
-0.0543212890625,
-0.01058197021484375,
-0.00824737548828125,
0.014373779296875,
0.0072479248046875,
0.0219573974609375,
0.01456451416015625,
0.0316162109375,
-0.0291595458984375,
-0.00202178955078125,
-0.0098419189453125,
-0.01605224609375,
-0.0017404556274414062,
-0.0587158203125,
-0.0026493072509765625,
0.0196075439453125,
0.0980224609375,
0.0963134765625,
-0.10858154296875,
-0.022125244140625,
0.00710296630859375,
-0.04473876953125,
-0.0070037841796875,
0.0012044906616210938,
-0.0002841949462890625,
-0.03497314453125,
0.0169219970703125,
-0.03704833984375,
-0.0285797119140625,
-0.01403045654296875,
-0.029144287109375,
-0.01320648193359375,
0.01629638671875,
0.026641845703125,
0.02069091796875,
0.0011129379272460938,
-0.0084381103515625,
-0.0014896392822265625,
0.004192352294921875,
-0.041595458984375,
-0.002132415771484375,
-0.0087738037109375,
-0.0162811279296875,
-0.06707763671875,
-0.00974273681640625,
-0.0310821533203125,
0.01519775390625,
-0.0521240234375,
-0.0140533447265625,
-0.00542449951171875,
0.042816162109375,
-0.052337646484375,
-0.01739501953125,
0.02215576171875,
-0.022735595703125,
0.058319091796875,
0.0182647705078125,
0.036102294921875,
-0.0280914306640625,
-0.025421142578125,
-0.0201568603515625,
-0.049957275390625,
-0.00638580322265625,
-0.00930023193359375,
0.01020050048828125,
0.041839599609375,
0.02520751953125,
-0.04656982421875,
0.03466796875,
0.00960540771484375,
-0.0281829833984375,
0.01003265380859375,
-0.0185394287109375,
-0.037841796875,
0.00409698486328125,
-0.0142059326171875,
-0.01238250732421875,
0.00682830810546875,
0.0183563232421875,
-0.05950927734375,
0.024444580078125,
0.000530242919921875,
0.022796630859375,
0.01154327392578125,
-0.0028095245361328125,
-0.015350341796875,
-0.034759521484375,
-0.006805419921875,
0.0102691650390625,
-0.0021820068359375,
0.012542724609375,
-0.031646728515625,
0.0091094970703125,
0.0088958740234375,
0.04052734375,
0.0017900466918945312,
-0.0017518997192382812,
0.016082763671875,
0.0266571044921875,
0.020355224609375,
0.0179443359375,
-0.010040283203125,
-0.00409698486328125,
-0.029083251953125,
-0.0087738037109375,
0.02069091796875,
-0.0032520294189453125,
0.02703857421875,
0.0251007080078125,
-0.04498291015625,
-0.0012912750244140625,
-0.00901031494140625,
-0.0548095703125,
0.039794921875,
0.00609588623046875,
-0.0465087890625,
0.034637451171875,
0.010467529296875,
0.0088348388671875,
0.0164947509765625,
0.01186370849609375,
0.03948974609375,
-0.05706787109375,
-0.0197906494140625,
-0.0301055908203125,
0.043914794921875,
0.015167236328125,
-0.00606536865234375,
0.01348114013671875,
0.00720977783203125,
0.0153656005859375,
-0.0182952880859375,
-0.0160369873046875,
0.0034809112548828125,
-0.0045013427734375,
0.023284912109375,
0.026214599609375,
-0.004558563232421875,
0.006946563720703125,
0.0771484375,
0.030426025390625,
0.0216064453125,
-0.044219970703125,
-0.03631591796875,
0.004009246826171875,
0.0165252685546875,
0.01332855224609375,
0.0229644775390625,
0.026336669921875,
0.01837158203125,
0.05126953125,
-0.00762176513671875,
-0.0009484291076660156,
0.003963470458984375,
0.03472900390625,
-0.01482391357421875,
-0.0322265625,
0.0006322860717773438,
0.000858306884765625,
-0.05548095703125,
-0.006778717041015625,
0.031829833984375,
0.08404541015625,
0.037872314453125,
0.0379638671875,
-0.0232391357421875,
-0.04473876953125,
0.00621795654296875,
0.0010309219360351562,
-0.0244903564453125,
-0.0088043212890625,
-0.0095367431640625,
-0.00963592529296875,
-0.05157470703125,
0.0340576171875,
-0.0023746490478515625,
-0.012451171875,
0.055206298828125,
0.08648681640625,
-0.0191497802734375,
-0.020751953125,
0.022552490234375,
-0.006122589111328125,
-0.0550537109375,
-0.042236328125,
0.0009436607360839844,
0.016510009765625,
-0.006580352783203125,
0.0538330078125,
0.056549072265625,
-0.035186767578125,
0.0213470458984375,
-0.01739501953125,
0.02349853515625,
-0.007144927978515625,
0.031585693359375,
0.016937255859375,
-0.0027256011962890625,
0.0340576171875,
-0.00183868408203125,
0.00016939640045166016,
-0.030731201171875,
-0.0187835693359375,
-0.0006456375122070312,
0.03741455078125,
0.042694091796875,
-0.0202789306640625,
0.01551055908203125,
-0.034027099609375,
-0.037628173828125,
0.0204315185546875,
0.0257110595703125,
-0.044525146484375,
0.003509521484375,
-0.0178680419921875,
-0.022613525390625,
-0.0187835693359375,
-0.007617950439453125,
0.032318115234375,
0.01702880859375,
0.0021038055419921875,
0.01430511474609375,
0.036376953125,
-0.060150146484375,
0.01416015625,
-0.0199737548828125,
-0.045745849609375,
0.0020465850830078125,
0.044281005859375,
0.025177001953125,
-0.0167694091796875,
-0.0697021484375,
0.0242462158203125,
-0.003620147705078125,
-0.024078369140625,
0.0545654296875,
-0.03192138671875,
0.005657196044921875,
-0.02886962890625,
0.032867431640625,
-0.0198822021484375,
-0.043792724609375,
-0.00013339519500732422,
0.0301361083984375,
0.00783538818359375,
0.0261077880859375,
-0.033721923828125,
0.060791015625,
-0.043182373046875,
0.0098876953125,
0.02178955078125,
-0.03802490234375,
-0.004291534423828125,
0.0121307373046875,
-0.058380126953125,
-0.019073486328125,
-0.051513671875,
-0.02801513671875,
0.00016629695892333984,
-0.01233673095703125,
0.040252685546875,
-0.041748046875,
0.07427978515625,
-0.0292510986328125,
0.0308074951171875,
0.01245880126953125,
-0.013580322265625,
-0.0021820068359375,
0.006397247314453125,
-0.023834228515625,
0.0014820098876953125,
0.044830322265625,
0.004978179931640625,
0.0187225341796875,
-0.022308349609375,
-0.0222320556640625,
0.030609130859375,
-0.020172119140625,
0.0697021484375,
-0.031982421875,
0.016845703125,
-0.0207061767578125,
0.01393890380859375,
-0.0225372314453125,
-0.02313232421875,
-0.03167724609375,
-0.021453857421875,
-0.06854248046875,
0.026611328125,
0.020843505859375,
-0.05059814453125,
-0.037017822265625,
-0.039276123046875,
-0.02557373046875,
-0.0460205078125,
0.00836181640625,
0.0018682479858398438,
-0.01000213623046875,
-0.0019483566284179688,
0.041595458984375,
0.03253173828125,
0.08935546875,
-0.009918212890625,
-0.006153106689453125,
0.00913238525390625,
0.01038360595703125,
-0.036773681640625,
-0.06500244140625,
0.033172607421875,
-0.0633544921875,
-0.0179901123046875,
0.042755126953125,
-0.03765869140625,
-0.0199432373046875,
-0.04376220703125,
-0.08074951171875,
0.04595947265625,
0.02215576171875,
-0.039306640625,
-0.002071380615234375,
0.0070648193359375,
-0.00463104248046875,
-0.0010423660278320312,
-0.0063018798828125,
-0.0269622802734375,
-0.0164947509765625,
0.016265869140625,
0.019439697265625,
0.002590179443359375,
0.039703369140625,
0.02734375,
-0.03106689453125,
0.01059722900390625,
-0.00707244873046875,
-0.012481689453125,
0.0176239013671875,
-0.019195556640625,
0.01824951171875,
0.004940032958984375,
-0.043060302734375,
-0.055877685546875,
0.0034275054931640625,
0.005977630615234375,
-0.01149749755859375,
-0.03399658203125,
-0.0122222900390625,
-0.037200927734375,
0.045135498046875,
0.0155792236328125,
-0.0029144287109375,
-0.00714111328125,
-0.0028400421142578125,
-0.036773681640625,
-0.01092529296875,
-0.0249786376953125,
0.00992584228515625,
-0.0458984375,
0.018524169921875,
-0.0103302001953125,
0.023681640625,
0.01012420654296875,
0.0167388916015625,
0.0005564689636230469,
-0.01727294921875,
0.0292510986328125,
-0.0139007568359375,
-0.0248260498046875,
-0.0458984375,
0.098876953125,
-0.033416748046875,
0.0194854736328125,
0.021026611328125,
0.0233917236328125,
0.07696533203125,
0.06024169921875,
-0.036346435546875,
-0.016754150390625,
-0.01020050048828125,
0.0372314453125,
-0.0175628662109375,
0.055267333984375,
-0.04083251953125,
-0.001392364501953125,
0.0175933837890625,
0.006988525390625,
0.01154327392578125,
0.038116455078125,
0.004955291748046875,
-0.020751953125,
-0.02960205078125,
-0.052276611328125,
-0.002941131591796875,
-0.047576904296875,
-0.0318603515625,
0.0323486328125,
-0.0282135009765625,
-0.0030040740966796875,
-0.0261993408203125,
-0.004329681396484375,
0.02606201171875,
0.030670166015625,
0.06268310546875,
-0.007534027099609375,
0.040771484375,
0.0243682861328125,
0.0277252197265625,
0.019073486328125
] |
d5aac4ecd784b45e7311a0287d8bb46421260c68 | Wordpress Stackexchange
Q: Is it possible to use Gutenberg on the front-end? Now that WordPress 5 has the new Gutenberg editor, I'm interested in the possibility of using it programmatically on the front-end (for example as as a rich-text editor for bbPress).
In the past I've used wp_editor but that still uses the old TinyMCE editor. I know there is a demo site using it on the front-end, but it doesn't go into how to actually save content.
Is it possible to programmatically use Gutenberg on the front-end or other places on the back-end? If not currently, is it on the roadmap?
A: Gutenberg editor is now on frontend. Here is the solution.
https://wordpress.org/plugins/frontrom/
| Q: Is it possible to use Gutenberg on the front-end? Now that WordPress 5 has the new Gutenberg editor, I'm interested in the possibility of using it programmatically on the front-end (for example as as a rich-text editor for bbPress).
In the past I've used wp_editor but that still uses the old TinyMCE editor. I know there is a demo site using it on the front-end, but it doesn't go into how to actually save content.
Is it possible to programmatically use Gutenberg on the front-end or other places on the back-end? If not currently, is it on the roadmap?
A: Gutenberg editor is now on frontend. Here is the solution.
https://wordpress.org/plugins/frontrom/
A: You can use Gutenberg Ramp plugin. You selectively activate Gutenberg on certain pages and posts, giving you greater control.
| wordpress | {
"language": "en",
"length": 132,
"provenance": "stackexchange_00019.jsonl.gz:491538",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/323998"
} | [
-0.007793426513671875,
-0.0187530517578125,
-0.016326904296875,
0.0121002197265625,
-0.0311431884765625,
-0.009033203125,
0.005489349365234375,
-0.01186370849609375,
0.05419921875,
0.03619384765625,
0.0012006759643554688,
-0.06005859375,
0.04437255859375,
-0.0251617431640625,
-0.06591796875,
-0.0223236083984375,
0.03948974609375,
0.00516510009765625,
0.059722900390625,
0.0220489501953125,
-0.003826141357421875,
0.0272064208984375,
0.0144195556640625,
0.017333984375,
0.0280609130859375,
0.04388427734375,
0.00653839111328125,
-0.0253753662109375,
0.01262664794921875,
-0.0116729736328125,
0.023345947265625,
0.01001739501953125,
0.00433349609375,
0.00557708740234375,
0.0038967132568359375,
0.0145263671875,
0.0235137939453125,
-0.0005860328674316406,
0.0138397216796875,
0.002780914306640625,
0.0293426513671875,
-0.0204315185546875,
-0.01471710205078125,
0.01392364501953125,
-0.01090240478515625,
-0.004673004150390625,
0.005237579345703125,
-0.053680419921875,
-0.01142120361328125,
0.00904083251953125,
-0.01395416259765625,
-0.0149383544921875,
-0.01018524169921875,
0.00981903076171875,
0.006683349609375,
-0.00995635986328125,
-0.03802490234375,
0.044952392578125,
0.015167236328125,
0.0088348388671875,
-0.002658843994140625,
0.0099945068359375,
-0.0019779205322265625,
-0.00876617431640625,
0.0280609130859375,
-0.005397796630859375,
-0.0289764404296875,
0.020263671875,
0.01568603515625,
0.037322998046875,
-0.01171112060546875,
-0.0234375,
0.01361846923828125,
-0.07275390625,
-0.031158447265625,
0.02081298828125,
-0.02252197265625,
-0.0611572265625,
0.01104736328125,
-0.037567138671875,
-0.030029296875,
0.036651611328125,
-0.059173583984375,
-0.037933349609375,
0.00562286376953125,
-0.01091766357421875,
-0.022247314453125,
0.0025310516357421875,
-0.044952392578125,
-0.01194000244140625,
-0.02191162109375,
-0.0299835205078125,
-0.076171875,
0.035430908203125,
0.0169830322265625,
-0.0035572052001953125,
-0.01287078857421875,
-0.0224761962890625,
0.01342010498046875,
-0.0036487579345703125,
0.052001953125,
-0.084228515625,
0.094970703125,
-0.02874755859375,
0.0004527568817138672,
0.022247314453125,
-0.02069091796875,
0.01806640625,
0.03253173828125,
0.01806640625,
-0.0136566162109375,
-0.006214141845703125,
-0.01007843017578125,
-0.03564453125,
0.026458740234375,
0.036773681640625,
-0.0309295654296875,
0.0535888671875,
0.0079498291015625,
0.04534912109375,
-0.013214111328125,
0.00983428955078125,
0.027587890625,
-0.024566650390625,
-0.02911376953125,
-0.0224761962890625,
-0.0132293701171875,
-0.02630615234375,
0.01580810546875,
0.0295257568359375,
-0.026031494140625,
0.003570556640625,
0.0379638671875,
0.01788330078125,
0.0037689208984375,
-0.02313232421875,
-0.0016527175903320312,
0.025390625,
0.00234222412109375,
0.006580352783203125,
-0.004650115966796875,
-0.023345947265625,
-0.00685882568359375,
-0.004405975341796875,
0.028533935546875,
-0.00482177734375,
0.056304931640625,
0.026763916015625,
-0.048858642578125,
-0.04046630859375,
0.03790283203125,
0.0250396728515625,
-0.00014650821685791016,
0.0208892822265625,
0.05804443359375,
-0.016876220703125,
0.0489501953125,
-0.0269317626953125,
0.0237579345703125,
-0.016845703125,
0.02215576171875,
-0.01541900634765625,
0.0157470703125,
-0.031463623046875,
-0.047027587890625,
0.00023126602172851562,
-0.0404052734375,
-0.0121917724609375,
0.0201873779296875,
-0.01385498046875,
0.005054473876953125,
-0.0264434814453125,
-0.002391815185546875,
-0.021331787109375,
-0.0215911865234375,
0.01111602783203125,
-0.040130615234375,
0.015838623046875,
0.024688720703125,
0.028656005859375,
0.0211944580078125,
-0.025848388671875,
0.0231781005859375,
0.0253753662109375,
-0.0261077880859375,
-0.0261688232421875,
0.00682830810546875,
0.054168701171875,
0.04266357421875,
0.034454345703125,
-0.038177490234375,
-0.03533935546875,
-0.0168609619140625,
0.01947021484375,
-0.01092529296875,
-0.04595947265625,
-0.007488250732421875,
-0.00669097900390625,
-0.02081298828125,
0.005184173583984375,
0.0467529296875,
-0.006565093994140625,
0.0262908935546875,
-0.053955078125,
-0.0921630859375,
0.006519317626953125,
-0.027191162109375,
0.049102783203125,
0.036041259765625,
-0.0227203369140625,
0.00250244140625,
-0.037689208984375,
0.0048980712890625,
-0.032867431640625,
-0.08612060546875,
0.004039764404296875,
0.0164337158203125,
0.042999267578125,
0.042938232421875,
0.013916015625,
0.052276611328125,
0.006427764892578125,
0.032257080078125,
0.004146575927734375,
0.04302978515625,
-0.034759521484375,
0.0047607421875,
-0.04132080078125,
0.02471923828125,
-0.0099334716796875,
-0.029266357421875,
0.01546478271484375,
0.010986328125,
0.01000213623046875,
0.0271148681640625,
0.005893707275390625,
0.027984619140625,
-0.09844970703125,
0.007465362548828125,
0.047149658203125,
0.042236328125,
0.031158447265625,
-0.00354766845703125,
-0.03680419921875,
0.0181427001953125,
-0.00887298583984375,
0.042022705078125,
-0.0487060546875,
0.01480865478515625,
0.04022216796875,
-0.07421875,
0.01093292236328125,
0.0251007080078125,
-0.0526123046875,
0.012939453125,
0.0460205078125,
0.0333251953125,
0.01666259765625,
-0.00936126708984375,
0.0015039443969726562,
0.004421234130859375,
-0.010406494140625,
-0.04901123046875,
0.004425048828125,
0.034515380859375,
0.020660400390625,
0.0684814453125,
0.057708740234375,
0.0020008087158203125,
-0.002506256103515625,
-0.006206512451171875,
0.0347900390625,
-0.00030803680419921875,
0.0305328369140625,
0.029388427734375,
0.0177154541015625,
-0.060302734375,
-0.004669189453125,
0.058685302734375,
0.0276031494140625,
-0.021087646484375,
-0.01065826416015625,
-0.027099609375,
-0.0038280487060546875,
0.010711669921875,
-0.04498291015625,
0.016387939453125,
0.01151275634765625,
0.014312744140625,
0.009429931640625,
0.037384033203125,
-0.0226287841796875,
-0.0292816162109375,
0.0007395744323730469,
-0.006114959716796875,
-0.024932861328125,
0.05242919921875,
-0.00930023193359375,
0.0177154541015625,
-0.004772186279296875,
0.040252685546875,
0.041839599609375,
-0.0362548828125,
0.0201873779296875,
-0.00888824462890625,
-0.006977081298828125,
-0.0185546875,
0.020111083984375,
-0.01413726806640625,
-0.0219268798828125,
-0.050933837890625,
-0.007114410400390625,
0.0245513916015625,
0.04266357421875,
0.0267486572265625,
-0.0193023681640625,
0.01415252685546875,
0.042694091796875,
-0.032684326171875,
-0.0257110595703125,
-0.03118896484375,
-0.072998046875,
-0.0196380615234375,
-0.003498077392578125,
-0.04559326171875,
0.0224456787109375,
0.019073486328125,
0.006366729736328125,
0.01910400390625,
-0.01406097412109375,
-0.03741455078125,
-0.0229949951171875,
-0.06072998046875,
-0.045013427734375,
0.000016808509826660156,
0.011688232421875,
-0.007213592529296875,
0.039031982421875,
-0.0020885467529296875,
-0.0240020751953125,
-0.01364898681640625,
-0.0077362060546875,
-0.0166473388671875,
-0.0360107421875,
0.045440673828125,
-0.0692138671875,
0.0007047653198242188,
0.0015611648559570312,
-0.01042938232421875,
0.0032138824462890625,
-0.0067901611328125,
-0.0024242401123046875,
-0.027923583984375,
-0.058624267578125,
-0.0197906494140625,
-0.005462646484375,
-0.0009670257568359375,
-0.030364990234375,
0.0070343017578125,
-0.0565185546875,
0.0231781005859375,
0.01375579833984375,
0.00034427642822265625,
-0.007022857666015625,
-0.0290679931640625,
-0.00878143310546875,
0.0187225341796875,
0.0009531974792480469,
0.05145263671875,
0.04803466796875,
0.007099151611328125,
0.0384521484375,
-0.0308074951171875,
-0.0311431884765625,
-0.02374267578125,
-0.033599853515625,
0.0285491943359375,
-0.01470184326171875,
0.0302734375,
0.01535797119140625,
0.03802490234375,
0.002407073974609375,
0.007495880126953125,
-0.040435791015625,
-0.0653076171875,
0.040069580078125,
-0.0261077880859375,
-0.0048370361328125,
-0.0142364501953125,
-0.0203399658203125,
0.027557373046875,
0.0831298828125,
0.00713348388671875,
-0.006923675537109375,
0.0185699462890625,
-0.022125244140625,
-0.00640869140625,
0.046844482421875,
-0.0792236328125,
0.01259613037109375,
-0.020751953125,
-0.0117340087890625,
-0.0014352798461914062,
-0.039703369140625,
0.004291534423828125,
-0.004199981689453125,
-0.0046539306640625,
-0.0214996337890625,
0.038421630859375,
-0.101806640625,
0.0221099853515625,
0.031158447265625,
-0.036041259765625,
-0.01338958740234375,
-0.032196044921875,
-0.06317138671875,
-0.068115234375,
-0.006557464599609375,
-0.03265380859375,
0.06573486328125,
0.01338958740234375,
0.0049896240234375,
0.0016145706176757812,
0.0643310546875,
0.006092071533203125,
0.048126220703125,
0.032135009765625,
0.033782958984375,
0.0404052734375,
-0.05908203125,
0.0218963623046875,
-0.047515869140625,
-0.005786895751953125,
-0.0116424560546875,
-0.0166473388671875,
0.03814697265625,
-0.015838623046875,
-0.026031494140625,
0.00823974609375,
-0.0229644775390625,
-0.041839599609375,
-0.0279998779296875,
-0.040008544921875,
-0.0161590576171875,
-0.005645751953125,
-0.043304443359375,
-0.025726318359375,
-0.039764404296875,
0.033416748046875,
0.0016965866088867188,
-0.0010890960693359375,
0.0160369873046875,
0.09893798828125,
0.0067901611328125,
-0.005573272705078125,
-0.047119140625,
-0.035003662109375,
0.037078857421875,
0.04327392578125,
0.025238037109375,
-0.002132415771484375,
-0.042236328125,
0.08795166015625,
0.020538330078125,
0.023651123046875,
-0.06182861328125,
0.02496337890625,
-0.0036411285400390625,
-0.00923919677734375,
0.019134521484375,
0.007183074951171875,
0.0440673828125,
-0.016387939453125,
-0.0537109375,
0.0333251953125,
-0.045989990234375,
0.01458740234375,
-0.0098419189453125,
0.0399169921875,
-0.0211334228515625,
-0.0021038055419921875,
-0.0201416015625,
-0.0333251953125,
0.057769775390625,
0.0489501953125,
-0.0051727294921875,
0.004619598388671875,
0.038360595703125,
-0.00418853759765625,
0.0247802734375,
-0.06988525390625,
0.01020050048828125,
0.0202789306640625,
-0.033477783203125,
-0.003978729248046875,
0.05914306640625,
0.0040283203125,
0.046051025390625,
-0.009246826171875,
-0.053009033203125,
-0.0280609130859375,
-0.01007843017578125,
-0.00623321533203125,
0.01397705078125,
0.001705169677734375,
0.041107177734375,
0.0159454345703125,
-0.06988525390625,
-0.04833984375,
0.03472900390625,
-0.045745849609375,
-0.07659912109375,
-0.032745361328125,
0.0008344650268554688,
-0.0221710205078125,
-0.010284423828125,
0.05438232421875,
-0.0258941650390625,
0.0159149169921875,
-0.00339508056640625,
0.037139892578125,
0.00867462158203125,
-0.007801055908203125,
0.01087188720703125,
0.04632568359375,
0.01148223876953125,
-0.05157470703125,
-0.01186370849609375,
-0.01357269287109375,
-0.0246734619140625,
0.022491455078125,
-0.0005946159362792969,
0.01145172119140625,
0.0249176025390625,
-0.01308441162109375,
0.01000213623046875,
-0.014801025390625,
0.020660400390625,
-0.018035888671875,
-0.006591796875,
-0.0280303955078125,
0.0013322830200195312,
0.0457763671875,
0.0169219970703125,
0.012603759765625,
-0.038970947265625,
0.019866943359375,
0.0243377685546875,
-0.028656005859375,
-0.007434844970703125,
0.02337646484375,
0.0010709762573242188,
0.00550079345703125,
-0.01568603515625,
0.01136016845703125,
-0.0255889892578125,
0.006778717041015625,
-0.038482666015625,
-0.032318115234375,
0.08355712890625,
-0.0238800048828125,
-0.0122222900390625,
-0.01378631591796875,
0.0210723876953125,
-0.042938232421875,
0.01334381103515625,
0.0302734375,
0.0184326171875,
0.012054443359375,
-0.046966552734375,
-0.0806884765625,
-0.04449462890625,
-0.0168914794921875,
-0.007572174072265625,
0.0045623779296875,
0.039031982421875,
0.004550933837890625,
0.03253173828125,
-0.0106201171875,
-0.0202484130859375,
0.05059814453125,
0.0251617431640625,
-0.0279541015625,
0.0989990234375,
-0.0210723876953125,
0.0675048828125,
-0.040679931640625,
0.07293701171875,
-0.028076171875,
-0.023468017578125,
-0.034637451171875,
0.006717681884765625,
-0.017547607421875,
-0.022613525390625,
-0.0041656494140625,
-0.0078887939453125,
0.041168212890625,
0.03948974609375,
0.0243988037109375,
0.00795745849609375,
0.0296630859375,
-0.00804901123046875,
0.0175933837890625,
-0.018310546875,
-0.00884246826171875,
-0.044677734375,
-0.0147247314453125,
0.00856781005859375,
-0.02813720703125,
-0.02276611328125,
0.01059722900390625,
-0.0241241455078125,
0.02313232421875,
0.00577545166015625,
-0.015167236328125,
0.00916290283203125,
-0.0003135204315185547,
0.02789306640625,
0.0714111328125,
0.0086212158203125,
0.0413818359375,
0.05072021484375,
0.0007190704345703125,
0.00008988380432128906,
0.037445068359375,
-0.037109375,
-0.005191802978515625,
-0.0196990966796875,
-0.0028076171875,
0.01438140869140625,
-0.02392578125,
0.0124664306640625,
0.0006146430969238281,
0.0426025390625,
0.049163818359375,
-0.07501220703125,
0.01230621337890625,
0.0289306640625,
-0.01342010498046875,
-0.047210693359375,
0.01470947265625,
-0.0038738250732421875,
-0.0287628173828125,
0.0391845703125,
-0.01251220703125,
0.005649566650390625,
0.0211029052734375,
-0.0142059326171875,
-0.00695037841796875,
-0.01312255859375,
0.045257568359375,
0.0051422119140625,
-0.0057373046875,
-0.017486572265625,
-0.0008392333984375,
0.0040740966796875,
-0.033660888671875,
0.0234527587890625,
-0.0052642822265625,
-0.005565643310546875,
-0.031982421875,
0.025787353515625,
0.0201568603515625,
0.0092620849609375,
0.03839111328125,
0.023345947265625,
0.01161956787109375,
0.06646728515625,
-0.018951416015625,
0.048919677734375,
0.01522064208984375,
0.052642822265625,
-0.01416015625,
-0.010284423828125,
0.0287322998046875,
-0.0029621124267578125,
-0.0760498046875,
0.017669677734375,
-0.04083251953125,
0.00714874267578125,
-0.007320404052734375,
0.038543701171875,
0.08258056640625,
0.0107879638671875,
-0.04437255859375,
0.043975830078125,
0.00995635986328125,
-0.016845703125,
-0.0238189697265625,
0.0195465087890625,
-0.059051513671875,
-0.005435943603515625,
0.0032176971435546875,
-0.00029158592224121094,
-0.0296478271484375,
-0.015472412109375,
-0.07220458984375,
0.1297607421875,
0.0017271041870117188,
0.0142059326171875,
-0.0217132568359375,
0.06463623046875,
-0.02362060546875,
0.03399658203125,
-0.032379150390625,
0.034942626953125,
-0.0291900634765625,
0.017608642578125,
-0.047821044921875,
0.00579833984375,
-0.0180816650390625,
0.0116424560546875,
0.007656097412109375,
0.00283050537109375,
-0.0400390625,
-8.940696716308594e-7,
0.040740966796875,
0.0225830078125,
-0.00832366943359375,
0.0401611328125,
-0.005405426025390625,
-0.041595458984375,
-0.01122283935546875,
-0.003055572509765625,
0.024139404296875,
-0.05828857421875,
-0.0090179443359375,
0.006664276123046875,
-0.0028171539306640625,
-0.0025653839111328125,
0.0212249755859375,
-0.0223388671875,
0.006649017333984375,
-0.011566162109375,
0.0016927719116210938,
-0.064208984375,
-0.08160400390625,
0.03900146484375,
-0.01971435546875,
-0.0469970703125,
-0.0077362060546875,
-0.046051025390625,
0.0262451171875,
0.0243988037109375,
0.004367828369140625,
-0.032867431640625,
0.009429931640625,
-0.0010204315185546875,
-0.00750732421875,
-0.0101776123046875,
0.05303955078125,
-0.039642333984375,
0.044281005859375,
-0.004581451416015625,
0.005832672119140625,
-0.055633544921875,
0.0003993511199951172,
0.040618896484375,
0.049407958984375,
-0.0394287109375,
-0.052459716796875,
-0.0145111083984375,
-0.022552490234375,
0.043914794921875,
0.0118408203125,
0.0187530517578125,
-0.0174560546875,
-0.0111541748046875,
0.0176849365234375,
-0.029571533203125,
-0.017822265625,
0.0230865478515625,
0.0031909942626953125,
0.0066986083984375,
0.02239990234375,
-0.03509521484375,
-0.0386962890625,
0.020294189453125,
-0.0148468017578125,
0.03228759765625,
0.028289794921875,
0.03265380859375,
0.0028667449951171875,
-0.0080413818359375,
-0.054443359375,
0.02374267578125,
-0.0192413330078125,
0.054473876953125,
-0.047882080078125,
-0.0012722015380859375,
-0.00833892822265625,
0.031768798828125,
-0.01070404052734375,
0.0780029296875,
0.04364013671875,
0.009796142578125,
0.0153045654296875,
-0.01169586181640625,
0.0170440673828125,
-0.0268707275390625,
-0.0259552001953125,
-0.0106201171875,
-0.007137298583984375,
0.020965576171875,
0.0128326416015625,
-0.033416748046875,
0.08416748046875,
-0.01528167724609375,
-0.0271453857421875,
0.040863037109375,
-0.004413604736328125,
-0.01995849609375,
0.0165863037109375,
-0.0251007080078125,
0.0330810546875,
-0.00493621826171875,
-0.041900634765625,
-0.01450347900390625,
0.0218353271484375,
-0.0204010009765625,
-0.0228118896484375,
0.024078369140625,
-0.0232086181640625,
0.029937744140625,
0.00646209716796875,
0.00943756103515625,
0.052520751953125,
-0.046875,
0.024505615234375,
0.030364990234375,
-0.003292083740234375,
0.00757598876953125,
-0.079345703125,
-0.033721923828125,
-0.00717926025390625,
0.0271759033203125,
-0.0200653076171875,
0.0943603515625,
-0.003116607666015625,
-0.0157928466796875,
0.0216064453125,
-0.00905609130859375,
0.043701171875,
-0.0020389556884765625,
-0.00835418701171875,
0.044921875,
0.039886474609375,
-0.0307159423828125,
-0.085205078125,
0.01220703125,
0.0227203369140625,
-0.01219940185546875,
0.03289794921875,
-0.0031986236572265625,
0.00832366943359375,
-0.0208740234375,
0.0158233642578125,
-0.01348876953125,
-0.0308074951171875,
-0.0215606689453125,
0.00794219970703125,
0.0084686279296875,
0.0194244384765625,
-0.0194549560546875,
0.037689208984375,
0.0214385986328125,
-0.022613525390625,
0.017303466796875,
-0.05291748046875,
0.028076171875,
0.0364990234375,
0.013427734375,
0.011474609375,
-0.018951416015625,
-0.01024627685546875,
0.0019159317016601562,
0.006622314453125,
-0.010467529296875,
0.02789306640625,
-0.019317626953125,
0.041748046875,
0.0251617431640625,
0.04705810546875,
-0.0272216796875,
0.015838623046875,
0.047760009765625,
0.003192901611328125,
-0.0003440380096435547,
-0.010040283203125,
-0.007476806640625,
-0.03631591796875,
-0.01296234130859375,
0.01434326171875,
-0.02996826171875,
-0.035308837890625,
-0.0361328125,
0.001323699951171875,
0.013946533203125,
-0.0086669921875,
-0.035369873046875,
0.020599365234375,
0.001094818115234375,
0.0167388916015625,
-0.01526641845703125,
-0.0153656005859375,
0.0014848709106445312,
0.038238525390625,
-0.0028247833251953125,
-0.02069091796875,
-0.026702880859375,
0.019012451171875,
-0.045562744140625,
0.033050537109375,
0.03240966796875,
-0.0254669189453125,
0.0253448486328125,
0.004039764404296875,
0.037109375,
0.04345703125,
0.021881103515625,
-0.007740020751953125,
0.0222015380859375,
0.00945281982421875,
-0.02557373046875,
-0.060699462890625,
-0.0033550262451171875,
-0.0242919921875,
-0.0018825531005859375,
0.00007605552673339844,
-0.01558685302734375,
0.00826263427734375,
-0.057464599609375,
-0.130859375,
-0.0260772705078125,
0.008331298828125,
-0.06463623046875,
0.01195526123046875,
0.0078582763671875,
-0.007686614990234375,
0.0003314018249511719,
-0.00855255126953125,
0.0174102783203125,
-0.0003364086151123047,
0.0006389617919921875,
-0.0065155029296875,
0.055023193359375,
0.01157379150390625,
-0.007610321044921875,
0.0106658935546875,
-0.004970550537109375,
-0.01172637939453125,
-0.00846099853515625,
0.00620269775390625,
0.00377655029296875,
0.0220947265625,
0.020904541015625,
-0.0255584716796875,
0.02716064453125,
-0.0022182464599609375,
0.007717132568359375,
-0.0054931640625,
0.006244659423828125,
-0.00890350341796875,
-0.002399444580078125,
0.048828125,
0.050445556640625,
0.005126953125,
-0.02496337890625,
-0.0147705078125,
-0.0106658935546875,
-0.041015625,
0.0252838134765625,
0.018310546875,
-0.03216552734375,
0.0273284912109375,
0.0196075439453125,
-0.024749755859375,
0.01157379150390625,
0.0139617919921875,
-0.019989013671875,
0.0163421630859375,
-0.0009360313415527344,
-0.04986572265625,
-0.0179290771484375,
-0.01873779296875,
0.101318359375,
-0.049835205078125,
-0.004974365234375,
0.0250244140625,
0.0090789794921875,
0.053253173828125,
0.025238037109375,
0.0189666748046875,
-0.01067352294921875,
-0.0278167724609375,
0.01210784912109375,
0.01276397705078125,
0.052642822265625,
-0.005279541015625,
-0.036773681640625,
-0.0194244384765625,
-0.004001617431640625,
-0.00516510009765625,
-0.00536346435546875,
0.0010766983032226562,
0.0283660888671875,
0.00736236572265625,
0.04718017578125,
-0.023529052734375,
-0.0288543701171875,
-0.0250091552734375,
0.015289306640625,
-0.00823974609375,
0.01067352294921875,
0.017913818359375,
-0.021484375,
0.01474761962890625,
-0.0003237724304199219,
-0.00726318359375,
-0.01511383056640625,
-0.036773681640625,
-0.035064697265625,
0.01213836669921875,
-0.00295257568359375
] |
6c6e13115bcd98ccd7c0022843e47493a746f42b | Wordpress Stackexchange
Q: Add classname to Gutenberg block wrapper in the editor? I'm trying to create custom columns block in Gutenberg.
Is it possible to add class to the wrapper of the element in the editor based on the attributes? I'd like to switch ??? to class based e.g. columns-4. Otherwise it's not possible to use flex.
<div id="..." class="wp-block editor-block-list__block ???" data-type="my-blocks/column" tabindex="0" aria-label="Block: Single Column">
<div>
<div class="this-can-be-set-in-edit-or-attributes">
...
</div>
</div>
</div>
A: Actually it can be done with the filter:
const { createHigherOrderComponent } = wp.compose;
const withCustomClassName = createHigherOrderComponent( ( BlockListBlock ) => {
return ( props ) => {
if(props.attributes.size) {
return <BlockListBlock { ...props } className={ "block-" + props.attributes.size } />;
} else {
return <BlockListBlock {...props} />
}
};
}, 'withClientIdClassName' );
wp.hooks.addFilter( 'editor.BlockListBlock', 'my-plugin/with-client-id-class-name', withCustomClassName );
| Q: Add classname to Gutenberg block wrapper in the editor? I'm trying to create custom columns block in Gutenberg.
Is it possible to add class to the wrapper of the element in the editor based on the attributes? I'd like to switch ??? to class based e.g. columns-4. Otherwise it's not possible to use flex.
<div id="..." class="wp-block editor-block-list__block ???" data-type="my-blocks/column" tabindex="0" aria-label="Block: Single Column">
<div>
<div class="this-can-be-set-in-edit-or-attributes">
...
</div>
</div>
</div>
A: Actually it can be done with the filter:
const { createHigherOrderComponent } = wp.compose;
const withCustomClassName = createHigherOrderComponent( ( BlockListBlock ) => {
return ( props ) => {
if(props.attributes.size) {
return <BlockListBlock { ...props } className={ "block-" + props.attributes.size } />;
} else {
return <BlockListBlock {...props} />
}
};
}, 'withClientIdClassName' );
wp.hooks.addFilter( 'editor.BlockListBlock', 'my-plugin/with-client-id-class-name', withCustomClassName );
A: I think is also possible to manage wrapper classes with useBlockProps.
I found this solution in the official Gutenberg doc, here
import { useBlockProps } from '@wordpress/block-editor';
// ...
const blockSettings = {
apiVersion: 2,
// ...
edit: () => {
const blockProps = useBlockProps( {
className: 'my-random-classname',
} );
return <div { ...blockProps }>Your block.</div>;
},
};
| wordpress | {
"language": "en",
"length": 191,
"provenance": "stackexchange_00019.jsonl.gz:491559",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/324091"
} | [
-0.040618896484375,
-0.0009441375732421875,
-0.034423828125,
-0.0140533447265625,
-0.007045745849609375,
-0.012725830078125,
-0.0242919921875,
-0.0036640167236328125,
0.00675201416015625,
-0.001190185546875,
-0.006801605224609375,
-0.0086212158203125,
0.0000013113021850585938,
-0.036590576171875,
0.01523590087890625,
-0.029388427734375,
0.022918701171875,
0.01149749755859375,
0.01401519775390625,
-0.006008148193359375,
0.0189361572265625,
-0.000015854835510253906,
-0.010711669921875,
0.026214599609375,
0.04339599609375,
-0.04888916015625,
0.096435546875,
-0.047088623046875,
0.07427978515625,
-0.004650115966796875,
0.0526123046875,
-0.0516357421875,
0.043914794921875,
0.007232666015625,
-0.039276123046875,
0.041229248046875,
0.023590087890625,
-0.015106201171875,
-0.017181396484375,
0.037994384765625,
0.040557861328125,
-0.032440185546875,
-0.069580078125,
0.045013427734375,
-0.06390380859375,
-0.0322265625,
0.0308990478515625,
0.007190704345703125,
0.0372314453125,
0.0045623779296875,
-0.0282440185546875,
0.0711669921875,
-0.0196380615234375,
-0.01113128662109375,
0.00971221923828125,
0.0248870849609375,
-0.051116943359375,
0.0382080078125,
-0.00814056396484375,
0.067626953125,
0.047637939453125,
0.04583740234375,
-0.0283050537109375,
-0.0184783935546875,
0.004489898681640625,
-0.0106964111328125,
0.0215606689453125,
0.007476806640625,
0.0191497802734375,
0.014923095703125,
0.0128631591796875,
0.00843048095703125,
-0.016998291015625,
-0.04437255859375,
-0.0222625732421875,
0.0259246826171875,
0.0017824172973632812,
-0.025848388671875,
0.00011712312698364258,
-0.0027313232421875,
0.037567138671875,
0.00884246826171875,
-0.0103302001953125,
-0.0240478515625,
0.026885986328125,
0.00926971435546875,
-0.005222320556640625,
-0.0159149169921875,
0.012939453125,
-0.0133056640625,
0.00290679931640625,
-0.031005859375,
0.0018129348754882812,
0.06085205078125,
-0.008453369140625,
-0.003200531005859375,
-0.0017633438110351562,
0.01099395751953125,
-0.00856781005859375,
0.01012420654296875,
0.0232086181640625,
-0.05218505859375,
0.06854248046875,
-0.060699462890625,
0.005725860595703125,
0.044769287109375,
-0.019500732421875,
0.06927490234375,
0.053192138671875,
0.0171356201171875,
0.018646240234375,
-0.0180206298828125,
0.0198974609375,
0.028717041015625,
-0.055145263671875,
-0.048583984375,
-0.036376953125,
-0.0011205673217773438,
-0.019195556640625,
-0.01087188720703125,
0.00994873046875,
0.027435302734375,
0.014984130859375,
-0.018310546875,
-0.0173187255859375,
-0.01641845703125,
-0.00820159912109375,
-0.033599853515625,
0.0191192626953125,
-0.062103271484375,
-0.02191162109375,
0.05322265625,
0.0623779296875,
0.05426025390625,
0.041473388671875,
0.00823974609375,
0.057708740234375,
-0.002735137939453125,
0.00431060791015625,
-0.02093505859375,
-0.0095977783203125,
0.007106781005859375,
-0.0005979537963867188,
-0.036376953125,
0.02227783203125,
0.024078369140625,
0.02593994140625,
-0.007537841796875,
-0.03265380859375,
-0.042083740234375,
0.02130126953125,
-0.01556396484375,
0.05126953125,
0.014923095703125,
-0.032989501953125,
-0.0088958740234375,
0.048370361328125,
-0.0267181396484375,
-0.048309326171875,
-0.062744140625,
0.04217529296875,
-0.019775390625,
-0.00807952880859375,
-0.030670166015625,
-0.044525146484375,
0.01145172119140625,
-0.0618896484375,
-0.0140228271484375,
0.0203399658203125,
-0.00002104043960571289,
0.0022029876708984375,
0.00909423828125,
0.01690673828125,
-0.0213165283203125,
-0.0236663818359375,
-0.00553131103515625,
-0.00904083251953125,
-0.0092315673828125,
0.036834716796875,
-0.021636962890625,
-0.0241241455078125,
-0.029144287109375,
0.046478271484375,
-0.0196533203125,
-0.0218505859375,
0.00112152099609375,
0.0014696121215820312,
0.029937744140625,
0.0182647705078125,
0.01215362548828125,
-0.01378631591796875,
0.01139068603515625,
-0.0836181640625,
-0.006023406982421875,
-0.0035305023193359375,
0.00917816162109375,
0.0126953125,
0.003925323486328125,
0.019561767578125,
0.0204925537109375,
0.0188446044921875,
-0.020660400390625,
0.03948974609375,
-0.06256103515625,
-0.040924072265625,
-0.00086212158203125,
-0.020172119140625,
0.05218505859375,
-0.0290374755859375,
-0.0220184326171875,
0.004505157470703125,
-0.053863525390625,
0.011322021484375,
-0.01004791259765625,
-0.01154327392578125,
0.0009365081787109375,
-0.00698089599609375,
-0.00232696533203125,
-0.02001953125,
-0.0111236572265625,
0.0036373138427734375,
-0.00835418701171875,
-0.01343536376953125,
0.02081298828125,
0.054840087890625,
0.01210784912109375,
-0.0185699462890625,
-0.00968170166015625,
0.024566650390625,
0.059814453125,
-0.07568359375,
-0.00937652587890625,
0.0072784423828125,
0.03997802734375,
-0.0086822509765625,
0.00514984130859375,
-0.009918212890625,
-0.0621337890625,
0.0248870849609375,
0.03369140625,
0.03326416015625,
-0.01432037353515625,
-0.0245208740234375,
-0.00890350341796875,
0.0030727386474609375,
0.01788330078125,
0.040252685546875,
-0.026763916015625,
-0.0220489501953125,
0.0150146484375,
0.002864837646484375,
0.0166473388671875,
0.01085662841796875,
0.0250091552734375,
0.018035888671875,
0.01055908203125,
0.0167694091796875,
0.0037212371826171875,
-0.023406982421875,
0.01363372802734375,
0.006443023681640625,
0.01078033447265625,
-0.0305328369140625,
0.007556915283203125,
0.07861328125,
-0.0087432861328125,
0.069580078125,
0.036834716796875,
-0.04547119140625,
0.0156402587890625,
0.02587890625,
0.028076171875,
0.0254058837890625,
0.03009033203125,
0.0179901123046875,
0.04864501953125,
-0.038665771484375,
-0.020416259765625,
0.0673828125,
0.04315185546875,
-0.01715087890625,
0.0167388916015625,
-0.04888916015625,
-0.0163421630859375,
0.003124237060546875,
-0.027557373046875,
-0.0134735107421875,
-0.003658294677734375,
-0.048675537109375,
-0.023529052734375,
0.014312744140625,
-0.0096588134765625,
-0.0157623291015625,
-0.01904296875,
0.0308990478515625,
-0.036865234375,
0.0406494140625,
-0.009033203125,
0.008880615234375,
-0.026031494140625,
0.05633544921875,
0.040679931640625,
-0.054229736328125,
0.0325927734375,
0.00860595703125,
-0.0291900634765625,
0.01300811767578125,
-0.006153106689453125,
-0.0186309814453125,
-0.046783447265625,
0.0089569091796875,
0.054046630859375,
0.021575927734375,
0.060943603515625,
-0.00038504600524902344,
-0.0155029296875,
-0.005023956298828125,
0.041900634765625,
-0.00457000732421875,
-0.00042819976806640625,
0.051361083984375,
-0.044403076171875,
-0.03179931640625,
-0.00148773193359375,
-0.06353759765625,
0.00453948974609375,
0.0157623291015625,
-0.0184783935546875,
0.0009241104125976562,
0.0160369873046875,
-0.0184173583984375,
0.01235198974609375,
-0.050567626953125,
0.03179931640625,
-0.00897216796875,
0.03009033203125,
-0.00034737586975097656,
0.0290374755859375,
-0.0144805908203125,
-0.0400390625,
-0.01422882080078125,
-0.05377197265625,
0.011627197265625,
0.004795074462890625,
0.0243682861328125,
-0.0599365234375,
0.0104827880859375,
0.009429931640625,
-0.009368896484375,
0.004573822021484375,
-0.01317596435546875,
-0.0159759521484375,
-0.0082855224609375,
0.01186370849609375,
0.0114593505859375,
0.027862548828125,
0.01739501953125,
0.02288818359375,
0.030975341796875,
-0.02484130859375,
-0.008148193359375,
0.026458740234375,
0.00531768798828125,
0.0291900634765625,
-0.0237274169921875,
-0.0162353515625,
0.004840850830078125,
0.044891357421875,
0.0007066726684570312,
0.0078582763671875,
0.04254150390625,
-0.0235595703125,
0.01253509521484375,
-0.0214691162109375,
-0.0009045600891113281,
-0.031341552734375,
0.0098876953125,
-0.007343292236328125,
-0.0103912353515625,
-0.01120758056640625,
0.024200439453125,
-0.01152801513671875,
0.059112548828125,
-0.043914794921875,
-0.026763916015625,
0.033416748046875,
-0.04925537109375,
0.0241546630859375,
-0.0239105224609375,
-0.005298614501953125,
0.028411865234375,
0.07635498046875,
-0.0302276611328125,
-0.0240020751953125,
0.024444580078125,
0.02532958984375,
-0.027374267578125,
0.0048370361328125,
-0.040771484375,
-0.01983642578125,
-0.04254150390625,
0.00682830810546875,
0.0102081298828125,
-0.0460205078125,
-0.017120361328125,
-0.004070281982421875,
-0.0439453125,
-0.002056121826171875,
0.03375244140625,
-0.029510498046875,
0.0017604827880859375,
0.0292205810546875,
-0.026702880859375,
0.019439697265625,
-0.04132080078125,
-0.013641357421875,
-0.09716796875,
-0.027496337890625,
-0.023162841796875,
0.09979248046875,
-0.0218963623046875,
0.062408447265625,
-0.046142578125,
0.0628662109375,
0.0123443603515625,
0.0108489990234375,
0.031494140625,
0.00844573974609375,
0.0303497314453125,
-0.0299072265625,
0.0179595947265625,
-0.033416748046875,
0.0068359375,
-0.0200958251953125,
-0.0198974609375,
0.038787841796875,
-0.036651611328125,
0.0034999847412109375,
-0.007656097412109375,
-0.010284423828125,
-0.010894775390625,
-0.0167388916015625,
-0.01129150390625,
0.0081787109375,
-0.01561737060546875,
0.00218963623046875,
-0.023406982421875,
0.0030536651611328125,
0.017791748046875,
0.00395965576171875,
0.0000026226043701171875,
0.01629638671875,
0.0693359375,
0.0217132568359375,
-0.0193939208984375,
-0.031585693359375,
0.0026454925537109375,
0.00995635986328125,
-0.039398193359375,
0.10028076171875,
0.051116943359375,
0.022735595703125,
0.052734375,
-0.035614013671875,
0.0117340087890625,
-0.035888671875,
0.056060791015625,
-0.0093231201171875,
-0.00905609130859375,
0.0206756591796875,
-0.01480865478515625,
0.029327392578125,
0.037689208984375,
-0.0225982666015625,
0.0030307769775390625,
-0.0101318359375,
0.01122283935546875,
-0.0233306884765625,
0.02490234375,
-0.00826263427734375,
-0.031982421875,
0.0083770751953125,
-0.047332763671875,
0.045745849609375,
0.03790283203125,
-0.0217742919921875,
0.0203704833984375,
0.01363372802734375,
-0.000194549560546875,
0.034332275390625,
-0.02801513671875,
-0.01222991943359375,
0.0158233642578125,
-0.00067901611328125,
-0.0255126953125,
0.03277587890625,
0.001621246337890625,
0.0758056640625,
-0.0042877197265625,
-0.038909912109375,
-0.035186767578125,
-0.0195159912109375,
-0.003673553466796875,
0.0160980224609375,
-0.0171051025390625,
0.047637939453125,
0.02435302734375,
-0.007373809814453125,
-0.0046234130859375,
-0.033447265625,
0.01506805419921875,
-0.046844482421875,
0.055389404296875,
0.021881103515625,
-0.01465606689453125,
-0.01538848876953125,
0.00612640380859375,
0.05718994140625,
-0.04180908203125,
-0.0116424560546875,
0.0201568603515625,
0.026580810546875,
0.019439697265625,
0.04541015625,
-0.062347412109375,
-0.004817962646484375,
-0.01383209228515625,
-0.0257720947265625,
-0.00951385498046875,
0.018157958984375,
-0.009124755859375,
0.0193328857421875,
0.01488494873046875,
0.0041351318359375,
0.0224609375,
-0.024749755859375,
-0.010711669921875,
-0.0188140869140625,
-0.0174560546875,
-0.0142974853515625,
-0.0102081298828125,
-0.00333404541015625,
-0.002613067626953125,
0.0265655517578125,
-0.016754150390625,
-0.0195159912109375,
-0.00818634033203125,
0.00722503662109375,
-0.0080718994140625,
-0.038604736328125,
0.0117645263671875,
0.013214111328125,
-0.0035495758056640625,
0.0191192626953125,
-0.002887725830078125,
-0.08245849609375,
-0.054168701171875,
0.00048089027404785156,
-0.0033359527587890625,
0.06671142578125,
-0.044830322265625,
0.0401611328125,
-0.02777099609375,
0.0106658935546875,
-0.039093017578125,
0.039459228515625,
-0.00835418701171875,
0.01293182373046875,
0.0202789306640625,
-0.06304931640625,
-0.06048583984375,
-0.036102294921875,
-0.040802001953125,
-0.0176239013671875,
0.0229644775390625,
0.04913330078125,
0.0165863037109375,
0.031951904296875,
-0.007251739501953125,
-0.03399658203125,
0.0004177093505859375,
-0.0135498046875,
0.019561767578125,
0.0243072509765625,
-0.0190887451171875,
0.0546875,
-0.0077056884765625,
0.0499267578125,
0.00469970703125,
0.0015544891357421875,
0.0112457275390625,
-0.00026226043701171875,
-0.01617431640625,
-0.0321044921875,
0.00537872314453125,
0.00997161865234375,
0.003997802734375,
0.017181396484375,
0.0263519287109375,
0.005306243896484375,
0.021728515625,
-0.021636962890625,
-0.0012369155883789062,
-0.03509521484375,
0.0098876953125,
-0.03704833984375,
0.01568603515625,
-0.01251983642578125,
0.01508331298828125,
0.0419921875,
-0.052886962890625,
-0.03515625,
0.0162353515625,
-0.0023193359375,
0.024139404296875,
-0.0032501220703125,
0.017974853515625,
-0.007007598876953125,
0.01068878173828125,
-0.0003483295440673828,
0.0237274169921875,
0.0211639404296875,
0.0279998779296875,
0.007450103759765625,
-0.007526397705078125,
0.0254058837890625,
0.0672607421875,
0.07281494140625,
0.002422332763671875,
0.003177642822265625,
0.0364990234375,
-0.017120361328125,
0.032501220703125,
0.0124664306640625,
0.0528564453125,
-0.052154541015625,
0.017669677734375,
0.00525665283203125,
-0.044647216796875,
0.01311492919921875,
0.006961822509765625,
0.00330352783203125,
0.0032501220703125,
0.013885498046875,
-0.0106964111328125,
-0.0211181640625,
0.0177764892578125,
0.0017833709716796875,
-0.010589599609375,
-0.02520751953125,
-0.0013189315795898438,
-0.0003628730773925781,
0.013275146484375,
-0.005878448486328125,
-0.01418304443359375,
0.01503753662109375,
0.0026683807373046875,
0.022216796875,
-0.013092041015625,
-0.0144500732421875,
-0.0135345458984375,
-0.0026149749755859375,
-0.0250091552734375,
-0.02069091796875,
0.00426483154296875,
0.026519775390625,
-0.005916595458984375,
0.0296783447265625,
-0.0010099411010742188,
-0.0236358642578125,
0.0085601806640625,
-0.01290130615234375,
-0.033966064453125,
-0.01230621337890625,
0.018524169921875,
0.01263427734375,
-0.0231170654296875,
0.020782470703125,
-0.02569580078125,
-0.02398681640625,
0.01296234130859375,
0.06866455078125,
0.035186767578125,
-0.0191802978515625,
-0.040374755859375,
0.047637939453125,
-0.0007205009460449219,
-0.0102081298828125,
0.006961822509765625,
0.025238037109375,
-0.03033447265625,
-0.013702392578125,
0.0031986236572265625,
-0.022857666015625,
-0.01535797119140625,
0.019500732421875,
-0.06756591796875,
0.07177734375,
0.0225677490234375,
0.0193939208984375,
-0.009033203125,
0.034423828125,
-0.0243682861328125,
0.006237030029296875,
-0.016815185546875,
0.01276397705078125,
-0.0242919921875,
0.01355743408203125,
-0.041412353515625,
0.00440216064453125,
-0.0003380775451660156,
0.04119873046875,
0.0270538330078125,
0.0033283233642578125,
-0.040863037109375,
-0.0299530029296875,
0.0008196830749511719,
0.040496826171875,
0.0021495819091796875,
0.0215606689453125,
0.030242919921875,
0.02655029296875,
-0.01251220703125,
0.00514984130859375,
0.0201416015625,
-0.05242919921875,
-0.04632568359375,
0.041473388671875,
0.0164031982421875,
0.03887939453125,
0.00901031494140625,
0.019805908203125,
-0.0308074951171875,
0.00115203857421875,
0.046295166015625,
-0.052337646484375,
-0.0258026123046875,
0.0601806640625,
0.029693603515625,
-0.03741455078125,
-0.06903076171875,
-0.0283050537109375,
0.031494140625,
0.005283355712890625,
-0.0005898475646972656,
0.031097412109375,
0.007228851318359375,
-0.0199737548828125,
0.04254150390625,
0.01593017578125,
0.03717041015625,
-0.0086517333984375,
0.029022216796875,
0.009002685546875,
-0.002132415771484375,
-0.009063720703125,
0.08026123046875,
0.01328277587890625,
0.0091400146484375,
-0.051055908203125,
-0.032562255859375,
0.0072021484375,
0.01119232177734375,
0.0211639404296875,
-0.0295867919921875,
-0.0057830810546875,
-0.06658935546875,
-0.0271148681640625,
-0.004421234130859375,
-0.015655517578125,
-0.0068206787109375,
0.0164642333984375,
0.006282806396484375,
0.01531219482421875,
0.0034332275390625,
-0.032440185546875,
-0.0618896484375,
0.03179931640625,
0.035247802734375,
0.05816650390625,
0.00739288330078125,
0.052520751953125,
0.0081634521484375,
-0.033203125,
-0.057830810546875,
0.00787353515625,
0.05474853515625,
0.046112060546875,
-0.01279449462890625,
0.06683349609375,
0.0229339599609375,
0.02374267578125,
0.02325439453125,
0.06280517578125,
0.02630615234375,
0.0183868408203125,
0.04144287109375,
0.0172271728515625,
-0.039398193359375,
-0.025360107421875,
0.01177215576171875,
-0.03778076171875,
0.044921875,
0.044891357421875,
0.00388336181640625,
0.0154876708984375,
-0.0136871337890625,
0.0806884765625,
-0.005031585693359375,
0.012451171875,
0.00927734375,
-0.033721923828125,
-0.0257720947265625,
-0.006191253662109375,
0.0234527587890625,
0.01544952392578125,
-0.0572509765625,
0.00027680397033691406,
-0.0121612548828125,
-0.0732421875,
0.032440185546875,
0.058746337890625,
-0.048065185546875,
0.0160064697265625,
0.0008945465087890625,
-0.0222625732421875,
0.0281219482421875,
-0.005702972412109375,
0.0210723876953125,
0.02880859375,
-0.008514404296875,
0.000667572021484375,
-0.061981201171875,
-0.040618896484375,
-0.01178741455078125,
0.03582763671875,
-0.0019159317016601562,
0.075439453125,
-0.01447296142578125,
0.0167236328125,
-0.00710296630859375,
0.0009751319885253906,
0.01312255859375,
-0.0013952255249023438,
0.0280303955078125,
0.043731689453125,
0.011688232421875,
-0.030792236328125,
-0.04754638671875,
-0.02044677734375,
0.051055908203125,
-0.0250396728515625,
-0.0302886962890625,
0.0135040283203125,
0.031097412109375,
-0.0029582977294921875,
0.0163726806640625,
-0.022552490234375,
-0.0435791015625,
-0.045745849609375,
0.0215606689453125,
0.00304412841796875,
0.02679443359375,
0.005970001220703125,
0.04345703125,
-0.0005450248718261719,
0.0028228759765625,
0.0168304443359375,
-0.03546142578125,
0.030487060546875,
0.0244903564453125,
-0.051361083984375,
-0.05450439453125,
0.031951904296875,
-0.0013217926025390625,
0.00434112548828125,
0.00768280029296875,
0.058807373046875,
0.038818359375,
-0.024139404296875,
0.07763671875,
0.09515380859375,
0.07098388671875,
-0.0194549560546875,
0.033172607421875,
0.0732421875,
-0.033660888671875,
0.026580810546875,
0.0174407958984375,
-0.035369873046875,
-0.037841796875,
-0.00986480712890625,
0.0128021240234375,
-0.04803466796875,
-0.06341552734375,
-0.13134765625,
0.0022525787353515625,
-0.020294189453125,
-0.007564544677734375,
-0.04925537109375,
0.057891845703125,
0.0009636878967285156,
-0.0057525634765625,
-0.0511474609375,
0.053741455078125,
-0.004207611083984375,
0.0182647705078125,
-0.05645751953125,
-0.03619384765625,
-0.01441192626953125,
0.046051025390625,
-0.028564453125,
0.005580902099609375,
0.01287078857421875,
-0.01094818115234375,
-0.0010061264038085938,
0.0022563934326171875,
0.01483154296875,
0.040313720703125,
-0.033355712890625,
-0.0101318359375,
0.0203399658203125,
0.012908935546875,
-0.0069427490234375,
-0.07177734375,
-0.00390625,
-0.039703369140625,
0.01009368896484375,
0.0235595703125,
-0.0280609130859375,
-0.005382537841796875,
-0.041015625,
-0.06488037109375,
0.04339599609375,
0.00406646728515625,
-0.039215087890625,
-0.025970458984375,
-0.0011692047119140625,
-0.0225982666015625,
-0.007167816162109375,
-0.024505615234375,
0.0176239013671875,
0.0168304443359375,
0.047210693359375,
-0.019378662109375,
-0.0082550048828125,
0.025634765625,
-0.036346435546875,
-0.034637451171875,
-0.0189056396484375,
0.0009517669677734375,
-0.0268707275390625,
-0.0239715576171875,
-0.021942138671875,
0.04815673828125,
0.0214996337890625,
-0.0167083740234375,
-0.01161956787109375,
0.046234130859375,
0.0159912109375,
0.030029296875,
-0.0240020751953125,
-0.058990478515625,
-0.05413818359375,
0.021881103515625,
0.0171051025390625,
0.01422119140625,
0.0234832763671875,
0.02117919921875,
-0.03424072265625,
-0.03961181640625,
0.0018110275268554688,
-0.00254058837890625,
-0.034332275390625,
0.002872467041015625,
0.017120361328125,
0.0095367431640625,
0.028228759765625,
0.01947021484375,
0.00447845458984375,
-0.0081939697265625,
0.0255889892578125,
-0.005290985107421875,
-0.09014892578125,
-0.003917694091796875,
0.0361328125,
-0.028656005859375,
-0.0014743804931640625,
-0.01020050048828125,
0.0194091796875,
0.025970458984375,
0.00719451904296875,
-0.03955078125,
-0.0789794921875,
0.0086822509765625,
0.0340576171875,
-0.0237579345703125,
0.05828857421875,
-0.0296478271484375,
-0.01328277587890625,
-0.01509857177734375,
-0.00978851318359375,
-0.0030384063720703125,
-0.051971435546875,
-0.0192413330078125,
0.0190582275390625,
-0.0223846435546875,
0.10101318359375,
0.0033721923828125,
0.0131988525390625,
0.01015472412109375,
0.018096923828125,
0.045562744140625,
-0.0155792236328125,
0.0628662109375,
-0.03631591796875,
-0.006328582763671875,
0.003162384033203125,
-0.0091552734375,
-0.0679931640625,
0.022735595703125,
-0.01074981689453125,
0.006877899169921875,
0.0187530517578125
] |
5b2ae1510c90f414b68a6231b0a05e65b0db4740 | Wordpress Stackexchange
Q: Showing error "Function create_function() is deprecated" we are getting a error after updating a php version to 7.2
Deprecated: Function create_function() is deprecated in
/customers/3/6/9/vakantiewoning-in-zuid-frankrijk.be/httpd.www/wp-content/themes/Tigerdesign/inc/init.php
on line 22
Warning: session_start(): Cannot start session when headers already
sent in
/customers/3/6/9/vakantiewoning-in-zuid-frankrijk.be/httpd.www/wp-content/plugins/unyson/framework/includes/hooks.php
on line 258
Notice: woocommerce_get_page_id is deprecated since version 3.0! Use
wc_get_page_id instead. in
/customers/3/6/9/vakantiewoning-in-zuid-frankrijk.be/httpd.www/wp-includes/functions.php
on line 3888
Notice: WC_Cart::get_cart_url is deprecated since version 2.5! Use
wc_get_cart_url instead. in
/customers/3/6/9/vakantiewoning-in-zuid-frankrijk.be/httpd.www/wp-includes/functions.php
on line 3888
A: Problem lies in your theme. It’s not compatible with PHP 7.2.
In this version the create_function is deprecated and you should use Anonymous Functions instead.
So for example instead of something like this:
$callback = create_function('', 'echo "'.str_replace('"', '\"', $section['desc']).'";');
You should use this:
$callback = function() {
echo str_replace('"', '\"', $section['desc']);
};
| Q: Showing error "Function create_function() is deprecated" we are getting a error after updating a php version to 7.2
Deprecated: Function create_function() is deprecated in
/customers/3/6/9/vakantiewoning-in-zuid-frankrijk.be/httpd.www/wp-content/themes/Tigerdesign/inc/init.php
on line 22
Warning: session_start(): Cannot start session when headers already
sent in
/customers/3/6/9/vakantiewoning-in-zuid-frankrijk.be/httpd.www/wp-content/plugins/unyson/framework/includes/hooks.php
on line 258
Notice: woocommerce_get_page_id is deprecated since version 3.0! Use
wc_get_page_id instead. in
/customers/3/6/9/vakantiewoning-in-zuid-frankrijk.be/httpd.www/wp-includes/functions.php
on line 3888
Notice: WC_Cart::get_cart_url is deprecated since version 2.5! Use
wc_get_cart_url instead. in
/customers/3/6/9/vakantiewoning-in-zuid-frankrijk.be/httpd.www/wp-includes/functions.php
on line 3888
A: Problem lies in your theme. It’s not compatible with PHP 7.2.
In this version the create_function is deprecated and you should use Anonymous Functions instead.
So for example instead of something like this:
$callback = create_function('', 'echo "'.str_replace('"', '\"', $section['desc']).'";');
You should use this:
$callback = function() {
echo str_replace('"', '\"', $section['desc']);
};
| wordpress | {
"language": "en",
"length": 127,
"provenance": "stackexchange_00019.jsonl.gz:491602",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/324273"
} | [
0.029388427734375,
0.0258026123046875,
-0.07159423828125,
-0.10009765625,
0.03851318359375,
-0.01059722900390625,
-0.045074462890625,
0.00424957275390625,
0.035186767578125,
-0.003116607666015625,
-0.036224365234375,
-0.004604339599609375,
-0.059600830078125,
-0.026947021484375,
-0.0025882720947265625,
-0.031494140625,
0.046112060546875,
0.006290435791015625,
0.054901123046875,
0.0199432373046875,
0.006443023681640625,
0.04962158203125,
0.0091552734375,
0.06134033203125,
-0.01070404052734375,
-0.045684814453125,
0.044830322265625,
-0.0121307373046875,
-0.0184173583984375,
-0.0088348388671875,
0.006435394287109375,
0.0280914306640625,
0.012542724609375,
0.03057861328125,
-0.048675537109375,
-0.0014896392822265625,
0.037353515625,
0.003032684326171875,
-0.017303466796875,
0.04998779296875,
0.035736083984375,
-0.017730712890625,
-0.033660888671875,
0.015594482421875,
-0.02764892578125,
-0.056640625,
0.037384033203125,
-0.025787353515625,
-0.0118255615234375,
0.0523681640625,
0.00994873046875,
-0.0003247261047363281,
-0.01444244384765625,
0.0128936767578125,
0.003841400146484375,
-0.0219573974609375,
-0.0264434814453125,
0.00998687744140625,
0.01152801513671875,
0.0355224609375,
-0.013916015625,
-0.002933502197265625,
0.0084228515625,
-0.0273590087890625,
0.009185791015625,
0.01739501953125,
0.047393798828125,
0.027069091796875,
-0.0404052734375,
0.00543212890625,
0.0140533447265625,
-0.015655517578125,
0.01245880126953125,
0.0389404296875,
-0.022979736328125,
-0.05633544921875,
0.00597381591796875,
-0.016326904296875,
0.031494140625,
0.010345458984375,
-0.0004215240478515625,
-0.05474853515625,
-0.0098724365234375,
-0.0188140869140625,
0.035797119140625,
0.02154541015625,
0.00994873046875,
-0.0008044242858886719,
-0.05908203125,
-0.0165557861328125,
-0.03277587890625,
-0.060333251953125,
-0.03955078125,
-0.00653839111328125,
0.0066680908203125,
-0.024261474609375,
0.006839752197265625,
0.0166015625,
0.05206298828125,
0.0462646484375,
0.0191802978515625,
-0.053924560546875,
0.038421630859375,
-0.03680419921875,
0.0005736351013183594,
0.06146240234375,
-0.0259552001953125,
0.002841949462890625,
0.03564453125,
0.0263519287109375,
0.0302276611328125,
-0.020050048828125,
-0.0186920166015625,
-0.04608154296875,
-0.011749267578125,
0.036590576171875,
-0.036102294921875,
0.0114898681640625,
0.015960693359375,
0.0157012939453125,
0.017364501953125,
0.047637939453125,
-0.0137786865234375,
0.01366424560546875,
-0.01702880859375,
-0.0035533905029296875,
0.0018405914306640625,
-0.03375244140625,
0.04937744140625,
-0.01465606689453125,
-0.03668212890625,
0.01947021484375,
0.06463623046875,
0.0232086181640625,
0.0113983154296875,
-0.00685882568359375,
0.056915283203125,
0.00899505615234375,
0.01062774658203125,
0.00435638427734375,
0.01262664794921875,
-0.01288604736328125,
-0.00942230224609375,
0.004032135009765625,
0.016815185546875,
-0.037322998046875,
0.01114654541015625,
0.04302978515625,
0.022918701171875,
0.018798828125,
0.0065155029296875,
0.0178070068359375,
0.0252532958984375,
-0.00946044921875,
-0.0205078125,
0.0087432861328125,
-0.042755126953125,
0.0028400421142578125,
-0.0009355545043945312,
0.00984954833984375,
0.00458526611328125,
-0.024688720703125,
-0.03533935546875,
-0.0457763671875,
-0.05645751953125,
0.019287109375,
-0.01715087890625,
0.0017528533935546875,
0.0167083740234375,
0.0731201171875,
0.0156097412109375,
-0.051788330078125,
0.01360321044921875,
0.04107666015625,
0.01171875,
0.030120849609375,
0.01485443115234375,
0.0428466796875,
0.03753662109375,
-0.001773834228515625,
0.0008001327514648438,
-0.01338958740234375,
0.1046142578125,
-0.0288848876953125,
-0.054718017578125,
0.03643798828125,
0.0156707763671875,
0.03363037109375,
0.0063629150390625,
-0.0012912750244140625,
0.043701171875,
0.0288543701171875,
-0.0011444091796875,
0.05615234375,
-0.0155487060546875,
-0.072265625,
-0.035064697265625,
-0.015228271484375,
-0.051666259765625,
0.0225372314453125,
0.020660400390625,
0.00844573974609375,
0.0016803741455078125,
-0.030181884765625,
-0.07110595703125,
0.0029087066650390625,
-0.03143310546875,
0.05767822265625,
0.005218505859375,
0.037261962890625,
0.01013946533203125,
0.0165252685546875,
-0.043792724609375,
0.040771484375,
0.0186309814453125,
-0.0013628005981445312,
-0.0273284912109375,
0.07000732421875,
-0.0012722015380859375,
0.0616455078125,
0.005462646484375,
-0.060699462890625,
0.00788116455078125,
-0.01399993896484375,
0.03704833984375,
0.0228118896484375,
-0.0177001953125,
0.006160736083984375,
0.0487060546875,
0.0184326171875,
0.0305938720703125,
0.01511383056640625,
0.0277252197265625,
0.039031982421875,
-0.022430419921875,
0.003955841064453125,
-0.0208587646484375,
-0.042236328125,
-0.0137176513671875,
0.048126220703125,
0.053924560546875,
0.0209503173828125,
0.01971435546875,
0.0013866424560546875,
0.0137176513671875,
-0.0703125,
0.0219573974609375,
-0.0255279541015625,
-0.015869140625,
-0.00618743896484375,
0.0233306884765625,
0.0113525390625,
0.018280029296875,
0.0109710693359375,
0.0220184326171875,
0.0215911865234375,
-0.06396484375,
-0.037139892578125,
0.04608154296875,
-0.046875,
0.0237884521484375,
-0.06927490234375,
-0.034393310546875,
-0.0251922607421875,
0.0027790069580078125,
0.0010690689086914062,
0.03173828125,
0.0235748291015625,
0.00888824462890625,
-0.01519775390625,
0.0023651123046875,
0.0025424957275390625,
-0.0294647216796875,
0.046295166015625,
0.0236663818359375,
0.029388427734375,
-0.061126708984375,
0.016510009765625,
-0.0285491943359375,
0.025390625,
0.005828857421875,
0.07110595703125,
-0.01812744140625,
-0.02716064453125,
-0.04541015625,
-0.034088134765625,
-0.0204620361328125,
0.0205535888671875,
0.042449951171875,
-0.02374267578125,
0.0099639892578125,
0.0180511474609375,
-0.0555419921875,
0.0966796875,
-0.0207977294921875,
-0.049530029296875,
0.054779052734375,
0.03375244140625,
-0.0157928466796875,
0.01470184326171875,
0.01451873779296875,
0.01898193359375,
-0.0143280029296875,
-0.005550384521484375,
0.018798828125,
-0.005039215087890625,
0.01496124267578125,
0.00130462646484375,
0.00894927978515625,
0.014373779296875,
-0.042999267578125,
0.011474609375,
0.0347900390625,
0.0589599609375,
-0.035186767578125,
-0.048583984375,
-0.048858642578125,
0.0426025390625,
-0.1007080078125,
-0.06744384765625,
-0.014862060546875,
-0.016021728515625,
-0.00772857666015625,
-0.00418853759765625,
-0.006282806396484375,
0.01325225830078125,
-0.00844573974609375,
0.00455474853515625,
-0.0185699462890625,
0.018035888671875,
-0.0301055908203125,
-0.058929443359375,
-0.0743408203125,
-0.0272369384765625,
-0.016754150390625,
0.0206756591796875,
-0.01519775390625,
0.022216796875,
-0.01212310791015625,
-0.003353118896484375,
-0.00726318359375,
0.04638671875,
-0.001277923583984375,
-0.03961181640625,
-0.0157928466796875,
0.0184173583984375,
0.01016998291015625,
-0.00209808349609375,
0.03997802734375,
0.0106353759765625,
-0.00830078125,
-0.01210784912109375,
-0.0234222412109375,
-0.0197601318359375,
-0.00788116455078125,
0.056549072265625,
0.03082275390625,
-0.04608154296875,
0.0210418701171875,
-0.064697265625,
-0.02459716796875,
0.0005345344543457031,
-0.040679931640625,
0.0426025390625,
0.044403076171875,
-0.037841796875,
0.003269195556640625,
-0.012969970703125,
0.008575439453125,
0.017913818359375,
-0.0014486312866210938,
-0.01904296875,
0.04522705078125,
-0.01322174072265625,
-0.00139617919921875,
-0.032073974609375,
0.07733154296875,
0.000026166439056396484,
0.02471923828125,
0.07366943359375,
0.0081024169921875,
0.05267333984375,
-0.08221435546875,
0.017120361328125,
-0.01294708251953125,
0.0246734619140625,
-0.06396484375,
-0.0142669677734375,
0.002071380615234375,
0.0261077880859375,
0.002094268798828125,
0.0187225341796875,
-0.01548004150390625,
0.007358551025390625,
0.0194244384765625,
0.0173797607421875,
-0.044830322265625,
-0.044158935546875,
-0.07244873046875,
-0.00286865234375,
-0.0238189697265625,
0.0016880035400390625,
-0.0179901123046875,
0.0014896392822265625,
-0.00865936279296875,
0.0181732177734375,
0.0009331703186035156,
-0.03875732421875,
0.01416015625,
0.00677490234375,
0.00738525390625,
0.05670166015625,
-0.00257110595703125,
0.0308074951171875,
-0.01195526123046875,
-0.0187225341796875,
-0.07257080078125,
-0.0010318756103515625,
-0.08001708984375,
0.0565185546875,
0.0248260498046875,
-0.00701904296875,
-0.017059326171875,
0.0203857421875,
0.0278778076171875,
0.0333251953125,
-0.001842498779296875,
-0.0296173095703125,
-0.0063018798828125,
-0.0020465850830078125,
0.0272216796875,
-0.011810302734375,
-0.0036869049072265625,
-0.05230712890625,
-0.0241241455078125,
-0.0279998779296875,
-0.03179931640625,
-0.00896453857421875,
-0.01158905029296875,
-0.0108489990234375,
-0.027679443359375,
-0.043243408203125,
-0.0249786376953125,
-0.0073699951171875,
-0.017486572265625,
-0.01277923583984375,
-0.02020263671875,
-0.023284912109375,
0.0300750732421875,
-0.035736083984375,
0.00432586669921875,
0.016143798828125,
0.0654296875,
0.00977325439453125,
-0.0007810592651367188,
-0.016143798828125,
0.0006809234619140625,
0.0209503173828125,
0.00788116455078125,
0.033233642578125,
-0.0011568069458007812,
-0.009918212890625,
0.032318115234375,
-0.0271759033203125,
0.024078369140625,
-0.05645751953125,
0.0499267578125,
-0.038604736328125,
-0.042205810546875,
0.05096435546875,
-0.06268310546875,
0.05047607421875,
0.03436279296875,
-0.0037078857421875,
0.0016193389892578125,
0.0186004638671875,
0.00024044513702392578,
-0.005889892578125,
-0.022857666015625,
-0.01427459716796875,
-0.0787353515625,
0.0416259765625,
-0.0191497802734375,
-0.0004813671112060547,
-0.01091766357421875,
0.006420135498046875,
0.0272064208984375,
-0.0190277099609375,
0.02227783203125,
0.01317596435546875,
0.0239105224609375,
-0.01605224609375,
0.0452880859375,
0.031951904296875,
0.0246429443359375,
-0.0163726806640625,
0.006313323974609375,
-0.0017642974853515625,
0.00720977783203125,
-0.0241241455078125,
-0.041717529296875,
-0.00676727294921875,
-0.02276611328125,
-0.01238250732421875,
0.011199951171875,
0.00263214111328125,
-0.0198822021484375,
0.0171966552734375,
0.01035308837890625,
-0.03045654296875,
0.009002685546875,
-0.0087432861328125,
0.003856658935546875,
0.00634765625,
-0.00958251953125,
0.01349639892578125,
0.021026611328125,
0.0013227462768554688,
0.02142333984375,
0.0010662078857421875,
0.01953125,
-0.0009751319885253906,
0.07086181640625,
0.026763916015625,
-0.027984619140625,
-0.0138397216796875,
0.049957275390625,
-0.02093505859375,
-0.0241851806640625,
-0.030059814453125,
0.033233642578125,
0.0188140869140625,
-0.0146636962890625,
0.02801513671875,
0.005916595458984375,
0.02215576171875,
-0.001613616943359375,
0.0014410018920898438,
-0.036651611328125,
-0.0278472900390625,
0.00901031494140625,
-0.0242462158203125,
-0.02337646484375,
-0.01313018798828125,
0.023193359375,
-0.048431396484375,
-0.0200347900390625,
-0.025238037109375,
-0.047882080078125,
-0.0205535888671875,
-0.0231781005859375,
-0.020599365234375,
0.00609588623046875,
-0.04608154296875,
-0.0185394287109375,
0.00766754150390625,
0.015777587890625,
-0.0272674560546875,
-0.0219268798828125,
0.04046630859375,
-0.041656494140625,
-0.0192108154296875,
-0.0067138671875,
0.00226593017578125,
0.004180908203125,
0.02569580078125,
0.032562255859375,
-0.01209259033203125,
0.0010929107666015625,
0.004467010498046875,
-0.067138671875,
-0.047149658203125,
0.0115966796875,
0.00461578369140625,
-0.040771484375,
-0.026702880859375,
0.0226593017578125,
0.016876220703125,
-0.00484466552734375,
-0.0321044921875,
-0.0011730194091796875,
0.0291900634765625,
0.0226593017578125,
0.058929443359375,
-0.00928497314453125,
-0.002964019775390625,
0.038604736328125,
-0.0033550262451171875,
0.008636474609375,
-0.007389068603515625,
0.0021381378173828125,
-0.02484130859375,
0.004730224609375,
-0.0192413330078125,
-0.0009288787841796875,
-0.051055908203125,
0.0197906494140625,
0.017822265625,
0.059967041015625,
-0.0019512176513671875,
0.007781982421875,
0.004795074462890625,
0.00733184814453125,
-0.01068115234375,
-0.004505157470703125,
0.005191802978515625,
0.004535675048828125,
-0.01482391357421875,
-0.029541015625,
0.06610107421875,
0.01739501953125,
-0.00933837890625,
0.053985595703125,
-0.06048583984375,
0.073974609375,
0.030029296875,
-0.0399169921875,
0.0272979736328125,
0.0445556640625,
-0.0056304931640625,
0.01202392578125,
-0.0236663818359375,
-0.029541015625,
0.0148468017578125,
0.0330810546875,
0.002216339111328125,
-0.027130126953125,
0.07232666015625,
0.01015472412109375,
-0.0141754150390625,
0.054962158203125,
-0.0201568603515625,
-0.0026836395263671875,
0.00885772705078125,
0.042083740234375,
-0.021026611328125,
0.0001239776611328125,
0.0169525146484375,
-0.0204925537109375,
-0.01220703125,
-0.0112762451171875,
-0.0198974609375,
-0.0155029296875,
0.07537841796875,
0.022125244140625,
0.01036834716796875,
0.044281005859375,
0.021728515625,
-0.004405975341796875,
-0.0032100677490234375,
0.042236328125,
0.017822265625,
-0.01551055908203125,
0.00968170166015625,
0.01039886474609375,
0.014617919921875,
-0.023162841796875,
0.032928466796875,
-0.0037403106689453125,
-0.0122528076171875,
-0.046295166015625,
0.0360107421875,
0.013824462890625,
-0.0005707740783691406,
-0.0105133056640625,
0.045684814453125,
0.00733184814453125,
0.034454345703125,
-0.003818511962890625,
-0.01435089111328125,
0.02191162109375,
0.00595855712890625,
0.0089874267578125,
-0.01534271240234375,
0.0433349609375,
0.0168304443359375,
-0.08062744140625,
0.023162841796875,
-0.039520263671875,
-0.0104522705078125,
-0.00029540061950683594,
0.06494140625,
0.072265625,
-0.01128387451171875,
-0.036376953125,
0.042816162109375,
-0.013336181640625,
-0.02587890625,
0.007175445556640625,
0.0218353271484375,
-0.07586669921875,
-0.0504150390625,
0.010345458984375,
-0.0509033203125,
-0.02288818359375,
0.001953125,
-0.0682373046875,
0.053802490234375,
-0.0137481689453125,
0.0264739990234375,
0.0115966796875,
0.01241302490234375,
-0.018951416015625,
-0.025177001953125,
-0.0172882080078125,
0.04638671875,
0.018524169921875,
0.037567138671875,
-0.007297515869140625,
0.00730133056640625,
0.026641845703125,
-0.003360748291015625,
-0.0309600830078125,
0.0010700225830078125,
-0.004421234130859375,
-0.0161285400390625,
-0.019317626953125,
-0.00925445556640625,
-0.0210723876953125,
0.0265350341796875,
-0.01080322265625,
-0.04254150390625,
-0.00852203369140625,
-0.01947021484375,
-0.0007071495056152344,
-0.0104522705078125,
0.0046234130859375,
0.0198516845703125,
0.0035877227783203125,
0.002666473388671875,
0.006229400634765625,
-0.031585693359375,
-0.0350341796875,
0.009979248046875,
0.0200042724609375,
0.004917144775390625,
0.00001728534698486328,
0.022705078125,
-0.007709503173828125,
-0.00989532470703125,
-0.01294708251953125,
-0.02850341796875,
0.032257080078125,
0.003772735595703125,
0.00783538818359375,
0.052734375,
0.036102294921875,
0.040771484375,
-0.046844482421875,
0.0057830810546875,
-0.006877899169921875,
-0.01751708984375,
0.0225067138671875,
0.02947998046875,
0.03826904296875,
0.01849365234375,
0.047454833984375,
0.02734375,
0.034271240234375,
-0.0361328125,
0.034271240234375,
0.005126953125,
0.008819580078125,
0.0166778564453125,
-0.03900146484375,
0.050811767578125,
0.0162506103515625,
-0.0160369873046875,
-0.0540771484375,
0.007015228271484375,
0.048431396484375,
0.0194244384765625,
-0.0031585693359375,
0.01324462890625,
-0.03363037109375,
0.0012416839599609375,
-0.02813720703125,
-0.027374267578125,
0.01482391357421875,
0.06829833984375,
0.036102294921875,
0.04583740234375,
-0.01436614990234375,
-0.0292205810546875,
0.007740020751953125,
0.00846099853515625,
0.002681732177734375,
-0.0194854736328125,
-0.02386474609375,
-0.04290771484375,
0.0250701904296875,
0.0369873046875,
-0.007534027099609375,
0.04925537109375,
0.026275634765625,
0.02099609375,
0.0138092041015625,
0.001125335693359375,
0.059326171875,
-0.026336669921875,
-0.0355224609375,
0.001422882080078125,
-0.039581298828125,
0.0224151611328125,
-0.0199432373046875,
0.00618743896484375,
-0.010284423828125,
0.0303955078125,
-0.0272674560546875,
0.0501708984375,
-0.00009620189666748047,
-0.01519012451171875,
0.00836181640625,
-0.036773681640625,
0.04962158203125,
0.00649261474609375,
-0.051788330078125,
-0.0033016204833984375,
-0.0194091796875,
-0.00804901123046875,
-0.00946044921875,
0.0214691162109375,
-0.01605224609375,
0.039703369140625,
0.028228759765625,
0.020263671875,
0.0426025390625,
-0.0012054443359375,
-0.058013916015625,
-0.0216064453125,
0.08721923828125,
-0.012359619140625,
-0.06005859375,
-0.02947998046875,
-0.019439697265625,
0.047393798828125,
-0.006114959716796875,
0.0743408203125,
-0.0298309326171875,
0.02728271484375,
0.00205230712890625,
-0.037109375,
-0.00980377197265625,
-0.0273590087890625,
0.0706787109375,
-0.06787109375,
-0.060882568359375,
0.00530242919921875,
-0.025238037109375,
-0.0133209228515625,
0.0045013427734375,
-0.04205322265625,
-0.021026611328125,
-0.0092926025390625,
0.0289764404296875,
0.01678466796875,
0.01532745361328125,
-0.0240631103515625,
-0.0386962890625,
0.0297698974609375,
0.03546142578125,
-0.0254364013671875,
0.0160980224609375,
0.011138916015625,
0.00891876220703125,
0.024017333984375,
-0.015411376953125,
-0.0029048919677734375,
-0.01520538330078125,
0.0231475830078125,
0.038421630859375,
-0.001556396484375,
0.046142578125,
-0.0293731689453125,
-0.040435791015625,
0.034271240234375,
0.0002999305725097656,
-0.0068817138671875,
-0.018218994140625,
0.0027751922607421875,
0.01207733154296875,
0.0689697265625,
0.024688720703125,
-0.0443115234375,
0.01708984375,
0.039398193359375,
-0.0264434814453125,
0.0188751220703125,
-0.01386260986328125,
-0.0004811286926269531,
-0.016143798828125,
-0.0093841552734375,
0.006381988525390625,
0.00023853778839111328,
-0.01015472412109375,
-0.00931549072265625,
0.043914794921875,
0.05902099609375,
0.032928466796875,
-0.09185791015625,
0.0552978515625,
-0.00876617431640625,
0.0714111328125,
0.02703857421875,
-0.002750396728515625,
-0.021453857421875,
0.004405975341796875,
-0.0321044921875,
-0.056915283203125,
-0.044036865234375,
0.043548583984375,
-0.03753662109375,
0.00852203369140625,
0.042510986328125,
-0.0183563232421875,
-0.067138671875,
0.01496124267578125,
0.0062713623046875,
0.05841064453125,
0.001491546630859375,
-0.036895751953125,
0.038665771484375,
-0.025390625,
-0.028167724609375,
-0.0523681640625,
0.01227569580078125,
-0.07879638671875,
0.0067291259765625,
0.0552978515625,
-0.0295562744140625,
0.01224517822265625,
-0.0224456787109375,
-0.0577392578125,
0.0233917236328125,
0.0259857177734375,
-0.040496826171875,
-0.0679931640625,
-0.01348876953125,
-0.00971221923828125,
0.0181732177734375,
-0.0295867919921875,
-0.00803375244140625,
-0.031951904296875,
0.048431396484375,
0.0027675628662109375,
0.0287017822265625,
0.0653076171875,
-0.02227783203125,
0.017913818359375,
-0.00444793701171875,
0.0023212432861328125,
0.018829345703125,
0.00028896331787109375,
-0.01464080810546875,
0.046295166015625,
0.0277862548828125,
-0.01358795166015625,
0.0009593963623046875,
0.01605224609375,
0.0022563934326171875,
-0.0029430389404296875,
-0.050506591796875,
0.0416259765625,
0.0003337860107421875,
0.0078277587890625,
-0.036346435546875,
-0.0157318115234375,
-0.00492095947265625,
-0.002964019775390625,
-0.047943115234375,
0.006443023681640625,
0.0081024169921875,
0.0006051063537597656,
-0.033447265625,
0.007472991943359375,
0.0274810791015625,
-0.0110626220703125,
-0.0107269287109375,
0.0204315185546875,
-0.03289794921875,
-0.0048065185546875,
-0.03131103515625,
-0.0570068359375,
-0.0142059326171875,
0.0029163360595703125,
0.046905517578125,
-0.02142333984375,
0.0240020751953125,
0.0042724609375,
0.0026416778564453125,
0.0279388427734375,
0.0230255126953125,
0.025909423828125,
0.0111083984375,
-0.01544952392578125,
0.007770538330078125,
0.0225372314453125,
0.042236328125,
-0.00966644287109375,
-0.040374755859375,
0.0139312744140625,
0.03240966796875,
-0.0193328857421875,
0.029754638671875,
-0.0260009765625,
0.06353759765625,
-0.0013370513916015625,
0.06903076171875,
-0.0270843505859375,
0.064697265625,
-0.033294677734375,
0.05010986328125,
-0.0053558349609375,
-0.0014934539794921875,
0.048736572265625,
-0.0093994140625,
0.012939453125,
0.0207061767578125,
-0.0097808837890625,
-0.039764404296875,
0.024871826171875,
0.047271728515625,
0.014129638671875,
0.0142364501953125
] |
eb1d690ca59a645b19e6b00eff9b3713a6fc946c | Wordpress Stackexchange
Q: load_plugin_textdomain in `plugins_loaded` or `init`? Which is the best/recommended way to hook load_plugin_textdomain within - plugins_loaded or init? and what are drawbacks using either.
A: Load translation files as late as possible for your plugin's use-case. This allows other plugins as much time as possible to fully initialise.
Why should you care about other plugins? Because they may be involved in the localisation process too. For example, changing the site language or filtering translation file paths. They can't do those things if you beat them to it.
From your two examples: plugins_loaded fires first, so init is the better of the two in most cases. However, it still runs the risk that your init code fires before another plugin's init code, so set a low priority in your add_action call. (larger number = lower priority).
If your translations are needed earlier then you'll have to load them earlier. However, if you need them earlier than init then your whole setup might be firing too early.
| Q: load_plugin_textdomain in `plugins_loaded` or `init`? Which is the best/recommended way to hook load_plugin_textdomain within - plugins_loaded or init? and what are drawbacks using either.
A: Load translation files as late as possible for your plugin's use-case. This allows other plugins as much time as possible to fully initialise.
Why should you care about other plugins? Because they may be involved in the localisation process too. For example, changing the site language or filtering translation file paths. They can't do those things if you beat them to it.
From your two examples: plugins_loaded fires first, so init is the better of the two in most cases. However, it still runs the risk that your init code fires before another plugin's init code, so set a low priority in your add_action call. (larger number = lower priority).
If your translations are needed earlier then you'll have to load them earlier. However, if you need them earlier than init then your whole setup might be firing too early.
| wordpress | {
"language": "en",
"length": 166,
"provenance": "stackexchange_00019.jsonl.gz:491626",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/324380"
} | [
0.02801513671875,
-0.04901123046875,
0.03680419921875,
-0.0300140380859375,
-0.04241943359375,
0.015350341796875,
0.01415252685546875,
0.00910186767578125,
-0.0229034423828125,
0.03302001953125,
-0.0109405517578125,
0.05096435546875,
-0.0287933349609375,
-0.0032482147216796875,
-0.01058197021484375,
-0.0252685546875,
0.022003173828125,
-0.038848876953125,
-0.0006875991821289062,
-0.0242156982421875,
0.01201629638671875,
-0.0071563720703125,
0.026275634765625,
0.0302734375,
0.048919677734375,
-0.08465576171875,
0.0594482421875,
-0.011566162109375,
0.0140838623046875,
-0.0323486328125,
0.0269775390625,
0.00676727294921875,
0.01064300537109375,
0.010009765625,
0.0038585662841796875,
-0.0194091796875,
-0.0014591217041015625,
0.007598876953125,
0.00750732421875,
0.026031494140625,
0.039031982421875,
-0.00930023193359375,
0.0021648406982421875,
0.09552001953125,
0.0167388916015625,
-0.0594482421875,
0.047454833984375,
-0.07208251953125,
-0.01255035400390625,
-0.055938720703125,
0.035064697265625,
0.0021209716796875,
0.054168701171875,
-0.0152587890625,
-0.010284423828125,
0.01910400390625,
-0.082763671875,
0.072998046875,
0.0124053955078125,
0.04638671875,
-0.01250457763671875,
0.01239013671875,
0.0009264945983886719,
-0.0194091796875,
0.00928497314453125,
0.00487518310546875,
-0.028564453125,
0.0214996337890625,
-0.025115966796875,
0.033843994140625,
0.018646240234375,
-0.04833984375,
-0.017578125,
-0.03973388671875,
-0.052398681640625,
0.04925537109375,
-0.0013475418090820312,
-0.02703857421875,
0.0178680419921875,
-0.027191162109375,
-0.0114898681640625,
-0.02081298828125,
-0.01204681396484375,
-0.00385284423828125,
-0.0059967041015625,
0.0185394287109375,
-0.022735595703125,
-0.0164947509765625,
-0.0299530029296875,
-0.027069091796875,
-0.0230255126953125,
0.0027523040771484375,
-0.024932861328125,
-0.0091705322265625,
-0.016021728515625,
-0.0166778564453125,
-0.007503509521484375,
-0.005641937255859375,
0.00006121397018432617,
-0.002223968505859375,
0.00638580322265625,
-0.0293426513671875,
0.0034389495849609375,
0.002361297607421875,
0.031768798828125,
0.0478515625,
-0.02081298828125,
-0.0289306640625,
0.054351806640625,
0.0195159912109375,
0.0184326171875,
0.06610107421875,
0.03216552734375,
-0.009124755859375,
-0.0160369873046875,
-0.0231475830078125,
0.0009622573852539062,
0.051971435546875,
0.0051727294921875,
0.025177001953125,
0.00695037841796875,
-0.0018510818481445312,
0.003917694091796875,
0.02313232421875,
-0.0281524658203125,
-0.0384521484375,
-0.01873779296875,
0.0009126663208007812,
-0.047027587890625,
0.0094757080078125,
-0.0027027130126953125,
0.03253173828125,
-0.001224517822265625,
-0.01055145263671875,
-0.0213623046875,
-0.00048804283142089844,
-0.0130462646484375,
0.01953125,
0.0189971923828125,
-0.0272369384765625,
0.0186767578125,
-0.01543426513671875,
0.003658294677734375,
0.0229949951171875,
-0.0199737548828125,
-0.007457733154296875,
-0.0035343170166015625,
0.0217437744140625,
-0.01032257080078125,
-0.04864501953125,
0.032318115234375,
-0.046295166015625,
0.042205810546875,
-0.0087127685546875,
0.0075836181640625,
-0.010833740234375,
0.030609130859375,
-0.0211334228515625,
-0.043548583984375,
-0.03375244140625,
-0.0176239013671875,
-0.0279388427734375,
-0.04632568359375,
-0.052215576171875,
-0.058197021484375,
0.01910400390625,
0.046356201171875,
0.01215362548828125,
0.0238189697265625,
0.0068817138671875,
0.0252685546875,
0.034759521484375,
0.0208892822265625,
0.0156402587890625,
0.0062103271484375,
0.002025604248046875,
0.003528594970703125,
0.033416748046875,
0.02044677734375,
-0.0017032623291015625,
-0.0158538818359375,
-0.028045654296875,
0.0816650390625,
-0.026947021484375,
-0.021759033203125,
-0.0020465850830078125,
-0.006679534912109375,
0.033233642578125,
0.0155029296875,
0.025421142578125,
-0.01488494873046875,
0.003032684326171875,
-0.04400634765625,
0.011444091796875,
-0.0182342529296875,
-0.0009555816650390625,
0.034881591796875,
0.0364990234375,
0.013031005859375,
-0.03485107421875,
0.0180816650390625,
-0.00565338134765625,
0.00931549072265625,
0.00366973876953125,
-0.042510986328125,
-0.004840850830078125,
-0.01056671142578125,
0.02557373046875,
0.04364013671875,
0.00269317626953125,
-0.009429931640625,
0.008392333984375,
0.01412200927734375,
-0.042205810546875,
-0.041961669921875,
0.06280517578125,
-0.02862548828125,
0.0224609375,
0.01218414306640625,
-0.0059967041015625,
0.05914306640625,
-0.0164031982421875,
0.04254150390625,
0.0107269287109375,
-0.046966552734375,
0.0294189453125,
-0.0091552734375,
0.02178955078125,
0.0163726806640625,
0.022308349609375,
0.068115234375,
-0.00783538818359375,
0.008026123046875,
0.035675048828125,
-0.027008056640625,
-0.010223388671875,
-0.03167724609375,
-0.0469970703125,
0.006198883056640625,
0.046783447265625,
0.0177764892578125,
0.0234222412109375,
-0.033477783203125,
0.005657196044921875,
0.004238128662109375,
-0.038238525390625,
-0.0003178119659423828,
0.0203857421875,
0.0294189453125,
0.043975830078125,
-0.01611328125,
-0.020355224609375,
0.0277099609375,
-0.0372314453125,
0.0180816650390625,
0.0288848876953125,
-0.037811279296875,
-0.08123779296875,
0.0226287841796875,
-0.00846099853515625,
0.0237884521484375,
-0.0217742919921875,
-0.023468017578125,
-0.0029315948486328125,
0.02349853515625,
-0.025848388671875,
-0.0162353515625,
-0.01495361328125,
-0.0335693359375,
0.01045989990234375,
0.04052734375,
-0.035552978515625,
-0.016357421875,
0.0160369873046875,
0.022430419921875,
-0.025115966796875,
-0.03497314453125,
0.0109100341796875,
-0.01629638671875,
0.0005860328674316406,
-0.02569580078125,
-0.0295257568359375,
-0.0289764404296875,
-0.007335662841796875,
0.006542205810546875,
-0.0265655517578125,
0.032135009765625,
0.015960693359375,
0.040679931640625,
0.01245880126953125,
0.031890869140625,
0.0046234130859375,
-0.0235748291015625,
0.04840087890625,
-0.0244598388671875,
-0.0305938720703125,
0.0313720703125,
-0.019012451171875,
0.012176513671875,
0.005977630615234375,
0.06353759765625,
0.058746337890625,
0.0126495361328125,
-0.0213775634765625,
0.005214691162109375,
-0.023956298828125,
0.031829833984375,
-0.0180206298828125,
-0.00759124755859375,
-0.0172119140625,
-0.051910400390625,
-0.003345489501953125,
0.01282501220703125,
0.0885009765625,
-0.0509033203125,
-0.062255859375,
-0.0194244384765625,
0.0196685791015625,
-0.08154296875,
-0.063232421875,
-0.0252838134765625,
-0.04986572265625,
0.03887939453125,
-0.0032806396484375,
-0.00811004638671875,
-0.0277862548828125,
0.021240234375,
0.0182342529296875,
0.030181884765625,
-0.044403076171875,
-0.037933349609375,
-0.035888671875,
-0.0428466796875,
-0.006031036376953125,
0.0051422119140625,
-0.0219268798828125,
0.006561279296875,
0.009246826171875,
0.002227783203125,
-0.0248565673828125,
0.00313568115234375,
0.021148681640625,
-0.0014801025390625,
-0.00621795654296875,
-0.00431060791015625,
0.017730712890625,
-0.006671905517578125,
0.01812744140625,
-0.004947662353515625,
0.0276336669921875,
-0.0283355712890625,
-0.018768310546875,
0.0173797607421875,
0.0030956268310546875,
0.035186767578125,
-0.00911712646484375,
-0.041046142578125,
0.0225982666015625,
0.003604888916015625,
-0.042816162109375,
0.02032470703125,
-0.010345458984375,
-0.01219940185546875,
-0.0006480216979980469,
-0.0092926025390625,
-0.00992584228515625,
0.01898193359375,
-0.020721435546875,
-0.0303192138671875,
0.00281524658203125,
0.03387451171875,
-0.03948974609375,
0.00678253173828125,
-0.01224517822265625,
-0.037109375,
-0.014556884765625,
0.05499267578125,
-0.0147857666015625,
-0.081787109375,
-0.01280975341796875,
-0.0116119384765625,
-0.022705078125,
-0.012908935546875,
-0.034423828125,
0.01551055908203125,
0.04510498046875,
0.0260162353515625,
0.022979736328125,
0.00020301342010498047,
-0.037261962890625,
-0.0196990966796875,
0.037841796875,
-0.019805908203125,
0.01006317138671875,
0.042999267578125,
0.0256195068359375,
-0.06182861328125,
-0.04766845703125,
-0.09063720703125,
-0.00009924173355102539,
-0.015655517578125,
0.0084075927734375,
0.007572174072265625,
0.0002498626708984375,
-0.038543701171875,
0.0278778076171875,
-0.01329803466796875,
-0.01354217529296875,
0.01384735107421875,
-0.022613525390625,
0.0013980865478515625,
0.0019626617431640625,
0.01029205322265625,
-0.01399993896484375,
0.0009975433349609375,
-0.036468505859375,
-0.08544921875,
-0.0032291412353515625,
-0.08770751953125,
0.068115234375,
0.05950927734375,
-0.048187255859375,
-0.00714111328125,
0.0162811279296875,
-0.01088714599609375,
0.0413818359375,
0.006855010986328125,
0.0128021240234375,
0.01546478271484375,
0.0262603759765625,
0.0281829833984375,
-0.00951385498046875,
0.011871337890625,
0.01096343994140625,
-0.053985595703125,
0.002376556396484375,
-0.0196380615234375,
-0.00262451171875,
0.005374908447265625,
-0.04400634765625,
-0.0435791015625,
-0.033111572265625,
-0.05419921875,
-0.0270843505859375,
-0.0091400146484375,
-0.011810302734375,
-0.015106201171875,
-0.06085205078125,
0.027252197265625,
-0.0140228271484375,
-0.006610870361328125,
-0.00722503662109375,
0.0919189453125,
0.037353515625,
-0.007732391357421875,
0.027801513671875,
-0.007785797119140625,
0.0302276611328125,
0.0197601318359375,
0.027740478515625,
0.0299835205078125,
-0.027984619140625,
0.049652099609375,
0.0239410400390625,
0.0261077880859375,
0.0170135498046875,
0.01474761962890625,
0.00466156005859375,
-0.01187896728515625,
0.0032405853271484375,
0.025604248046875,
-0.034942626953125,
0.0287322998046875,
-0.0277099609375,
-0.0026874542236328125,
-0.0047454833984375,
0.0084991455078125,
-0.046875,
0.04290771484375,
-0.0211181640625,
-0.01983642578125,
0.0072021484375,
0.0947265625,
-0.001491546630859375,
0.007965087890625,
0.0124664306640625,
-0.0237884521484375,
-0.0059051513671875,
0.0160064697265625,
0.041473388671875,
0.004405975341796875,
-0.0107879638671875,
-0.00740814208984375,
0.08990478515625,
-0.0010051727294921875,
0.01727294921875,
-0.0029296875,
0.04248046875,
-0.032562255859375,
-0.039031982421875,
-0.06109619140625,
-0.01143646240234375,
0.04754638671875,
0.040283203125,
0.037811279296875,
0.044769287109375,
-0.00827789306640625,
-0.00017154216766357422,
0.0014791488647460938,
0.0153350830078125,
-0.01412200927734375,
-0.0233917236328125,
-0.01605224609375,
-0.026947021484375,
-0.004558563232421875,
-0.0175933837890625,
0.04827880859375,
-0.06378173828125,
0.0280914306640625,
0.0035991668701171875,
0.01508331298828125,
-0.0222015380859375,
0.035736083984375,
0.0305633544921875,
-0.035552978515625,
0.01207733154296875,
0.00914764404296875,
0.0072174072265625,
-0.02374267578125,
0.038330078125,
-0.003948211669921875,
0.004180908203125,
-0.0743408203125,
-0.0712890625,
0.0750732421875,
-0.04541015625,
-0.0160675048828125,
0.0633544921875,
0.040679931640625,
-0.045379638671875,
-0.047698974609375,
0.01412200927734375,
0.06085205078125,
-0.003879547119140625,
0.0259552001953125,
0.025848388671875,
0.00748443603515625,
-0.004917144775390625,
-0.0215301513671875,
-0.038238525390625,
-0.014434814453125,
0.0194244384765625,
0.0170745849609375,
-0.0168609619140625,
-0.01947021484375,
-0.01409149169921875,
-0.0182647705078125,
0.0021724700927734375,
0.002719879150390625,
0.022979736328125,
-0.007137298583984375,
0.0035419464111328125,
-0.0108489990234375,
0.001285552978515625,
-0.032318115234375,
0.027557373046875,
-0.00411224365234375,
-0.0328369140625,
-0.033355712890625,
0.0092010498046875,
-0.04876708984375,
-0.0052947998046875,
-0.083984375,
-0.07232666015625,
-0.055419921875,
0.006237030029296875,
-0.0038166046142578125,
0.03448486328125,
-0.032928466796875,
-0.031646728515625,
0.00952911376953125,
-0.01885986328125,
-0.005519866943359375,
0.006931304931640625,
-0.02703857421875,
0.019805908203125,
0.030670166015625,
0.0165252685546875,
0.0183868408203125,
0.023162841796875,
0.004039764404296875,
-0.02838134765625,
-0.0140228271484375,
-0.04583740234375,
0.0005888938903808594,
0.014190673828125,
0.0308685302734375,
0.004669189453125,
0.00708770751953125,
0.005748748779296875,
0.028717041015625,
-0.00963592529296875,
0.003292083740234375,
-0.0047607421875,
0.021820068359375,
0.0026302337646484375,
0.020416259765625,
0.02447509765625,
-0.003002166748046875,
0.006053924560546875,
-0.0301666259765625,
-0.0158843994140625,
0.006336212158203125,
0.0009794235229492188,
-0.00867462158203125,
0.01186370849609375,
-0.0234222412109375,
0.0220794677734375,
-0.00002396106719970703,
0.00365447998046875,
0.0245513916015625,
0.006496429443359375,
0.03021240234375,
0.013031005859375,
0.0171356201171875,
-0.0215301513671875,
-0.022247314453125,
0.03753662109375,
0.02691650390625,
0.0005159378051757812,
0.0380859375,
-0.019805908203125,
0.001956939697265625,
0.049652099609375,
0.050506591796875,
-0.0892333984375,
0.0097198486328125,
0.01502227783203125,
0.004482269287109375,
-0.028076171875,
-0.0225067138671875,
-0.00667572021484375,
-0.0176239013671875,
0.075927734375,
-0.0195159912109375,
-0.02099609375,
0.035247802734375,
-0.0010385513305664062,
-0.023468017578125,
0.01071929931640625,
-0.01617431640625,
0.028594970703125,
-0.007251739501953125,
0.03424072265625,
-0.005207061767578125,
0.033538818359375,
-0.00881195068359375,
0.02752685546875,
0.0214385986328125,
-0.03155517578125,
-0.03643798828125,
0.0188140869140625,
0.00754547119140625,
-0.043792724609375,
0.03814697265625,
-0.03900146484375,
0.055694580078125,
0.04083251953125,
-0.02740478515625,
0.007282257080078125,
0.0049285888671875,
0.0001310110092163086,
-0.016448974609375,
-0.021881103515625,
-0.017547607421875,
0.049560546875,
-0.0016813278198242188,
0.0215911865234375,
-0.002124786376953125,
-0.0011882781982421875,
-0.0074615478515625,
-0.051513671875,
0.002910614013671875,
-0.0167388916015625,
-0.005481719970703125,
0.01436614990234375,
-0.0058441162109375,
-0.0028972625732421875,
-0.0296630859375,
0.003101348876953125,
-0.029052734375,
0.0009336471557617188,
-0.03155517578125,
-0.0295562744140625,
-0.006656646728515625,
-0.045135498046875,
-0.08758544921875,
0.1263427734375,
0.01242828369140625,
0.035247802734375,
-0.033905029296875,
0.052154541015625,
-0.0037708282470703125,
0.033294677734375,
-0.0022258758544921875,
0.022247314453125,
-0.017608642578125,
0.005878448486328125,
-0.0046539306640625,
0.0198516845703125,
0.005451202392578125,
-0.002696990966796875,
0.01904296875,
0.0056915283203125,
-0.03851318359375,
-0.008819580078125,
0.020172119140625,
0.016815185546875,
0.005611419677734375,
0.043060302734375,
0.027252197265625,
0.0269012451171875,
-0.01155853271484375,
0.01076507568359375,
0.041107177734375,
-0.05560302734375,
-0.036773681640625,
0.053955078125,
-0.0016145706176757812,
-0.01251220703125,
-0.016693115234375,
0.004489898681640625,
-0.062255859375,
-0.00811004638671875,
0.03759765625,
0.007904052734375,
0.012603759765625,
-0.013519287109375,
-0.0037174224853515625,
0.00543975830078125,
0.007572174072265625,
-0.003765106201171875,
0.0307464599609375,
-0.006137847900390625,
-0.007701873779296875,
0.0260772705078125,
0.004100799560546875,
0.01541900634765625,
-0.042144775390625,
-0.00836181640625,
-0.0016994476318359375,
-0.0264739990234375,
0.0220489501953125,
-0.0006322860717773438,
0.024505615234375,
-0.01056671142578125,
-0.01181793212890625,
-0.00466156005859375,
0.0216217041015625,
-0.004962921142578125,
-0.047607421875,
0.00576019287109375,
0.001674652099609375,
0.0077362060546875,
-0.00012099742889404297,
-0.00978851318359375,
-0.03436279296875,
0.0242156982421875,
0.00024580955505371094,
-0.029266357421875,
-0.0109710693359375,
0.0264129638671875,
-0.004459381103515625,
0.00399017333984375,
0.00574493408203125,
-0.033172607421875,
-0.033294677734375,
0.04193115234375,
0.0009641647338867188,
0.023101806640625,
-0.0301666259765625,
0.040191650390625,
-0.0157623291015625,
-0.006072998046875,
-0.006237030029296875,
0.00783538818359375,
0.007656097412109375,
-0.002536773681640625,
-0.0277557373046875,
-0.01800537109375,
-0.002788543701171875,
0.041534423828125,
0.053192138671875,
0.0175323486328125,
0.06884765625,
0.06939697265625,
-0.01004791259765625,
0.01123809814453125,
0.0567626953125,
0.00951385498046875,
0.00637054443359375,
-0.01422882080078125,
0.0175628662109375,
0.0017404556274414062,
-0.0087890625,
-0.00824737548828125,
0.030853271484375,
0.0028972625732421875,
-0.042572021484375,
0.0133056640625,
-0.01137542724609375,
-0.032989501953125,
0.03131103515625,
-0.00884246826171875,
0.06488037109375,
-0.0160369873046875,
-0.01557159423828125,
-0.0171051025390625,
-0.029937744140625,
-0.005458831787109375,
0.03656005859375,
0.049407958984375,
0.026336669921875,
0.0028743743896484375,
0.09002685546875,
-0.01047515869140625,
-0.0203399658203125,
-0.0105743408203125,
0.050048828125,
-0.051788330078125,
-0.002750396728515625,
0.032073974609375,
0.0092010498046875,
0.005596160888671875,
0.0211029052734375,
0.020599365234375,
0.0214385986328125,
0.0084075927734375,
0.0025348663330078125,
0.01267242431640625,
0.042236328125,
-0.0426025390625,
0.04052734375,
0.04058837890625,
-0.044403076171875,
-0.0175628662109375,
-0.0008082389831542969,
-0.00829315185546875,
-0.04925537109375,
0.025604248046875,
-0.00873565673828125,
0.00952911376953125,
0.0016260147094726562,
-0.017120361328125,
0.0278167724609375,
0.04217529296875,
0.049560546875,
-0.027587890625,
-0.06268310546875,
-0.0535888671875,
0.007717132568359375,
0.0183258056640625,
-0.003734588623046875,
-0.0523681640625,
-0.01202392578125,
-0.0152435302734375,
-0.01503753662109375,
-0.019866943359375,
0.042572021484375,
-0.0657958984375,
-0.006275177001953125,
0.01474761962890625,
-0.0162506103515625,
0.032928466796875,
-0.0166168212890625,
0.03387451171875,
-0.0099945068359375,
0.06488037109375,
0.0088958740234375,
-0.04559326171875,
0.0301055908203125,
-0.0111083984375,
0.056182861328125,
-0.0291595458984375,
0.0157928466796875,
-0.01491546630859375,
0.0377197265625,
0.02655029296875,
-0.043548583984375,
-0.017852783203125,
-0.04693603515625,
-0.0238800048828125,
-0.0025234222412109375,
-0.031158447265625,
-0.059539794921875,
0.0025348663330078125,
0.0120391845703125,
0.0172576904296875,
0.0024242401123046875,
-0.05206298828125,
0.0281219482421875,
-0.028656005859375,
0.0303955078125,
-0.0089874267578125,
-0.0033092498779296875,
-0.018829345703125,
-0.004154205322265625,
-0.01026153564453125,
-0.0655517578125,
-0.04949951171875,
0.0625,
-0.035125732421875,
0.037933349609375,
0.037353515625,
-0.030181884765625,
-0.00860595703125,
0.06475830078125,
0.024383544921875,
0.101806640625,
-0.0374755859375,
-0.005084991455078125,
0.072509765625,
-0.0299224853515625,
-0.057159423828125,
-0.0823974609375,
-0.002544403076171875,
-0.08917236328125,
0.00948333740234375,
-0.064208984375,
-0.00946044921875,
-0.0205078125,
-0.0533447265625,
-0.0278472900390625,
0.1138916015625,
-0.0231781005859375,
-0.00833892822265625,
-0.0614013671875,
0.0031795501708984375,
-0.009765625,
0.06781005859375,
0.006336212158203125,
-0.030487060546875,
-0.02386474609375,
0.02435302734375,
0.0024776458740234375,
0.035247802734375,
0.039886474609375,
-0.0304107666015625,
0.030364990234375,
0.006130218505859375,
0.01727294921875,
-0.0016613006591796875,
0.0100860595703125,
-0.00292205810546875,
0.030670166015625,
0.050628662109375,
-0.036407470703125,
0.045501708984375,
-0.016204833984375,
0.0161590576171875,
-0.04486083984375,
-0.07293701171875,
0.033203125,
0.0180206298828125,
0.07989501953125,
0.01885986328125,
-0.00991058349609375,
-0.0560302734375,
-0.00469207763671875,
-0.0242462158203125,
-0.01239776611328125,
-0.017120361328125,
0.0184783935546875,
-0.0799560546875,
-0.015777587890625,
0.027374267578125,
-0.01308441162109375,
0.0157470703125,
-0.00032591819763183594,
-0.035614013671875,
-0.0062713623046875,
-0.0034770965576171875,
-0.01242828369140625,
-0.056060791015625,
-0.0296783447265625,
0.08734130859375,
-0.032806396484375,
0.0008487701416015625,
0.0274200439453125,
0.0247802734375,
0.02490234375,
0.039947509765625,
0.0428466796875,
0.02484130859375,
-0.05377197265625,
0.0187530517578125,
0.018310546875,
0.00921630859375,
-0.023345947265625,
-0.045013427734375,
-0.006755828857421875,
0.0232086181640625,
-0.0044708251953125,
0.052703857421875,
0.0229644775390625,
0.01514434814453125,
0.0123138427734375,
0.0137786865234375,
-0.015869140625,
0.053497314453125,
-0.0135040283203125,
0.0103912353515625,
-0.0374755859375,
0.03155517578125,
-0.01213836669921875,
0.0032939910888671875,
0.00008422136306762695,
0.023284912109375,
-0.020050048828125,
-0.0237579345703125,
0.043304443359375,
-0.06573486328125,
0.000004470348358154297,
0.0161590576171875
] |
f038ce86b81fb2b8ecfc8c7525bb1e608a17ebb8 | Wordpress Stackexchange
Q: Access GutenBerg data with Javascript? I am trying to find out where does Gutenberg save changes/settings/options and how to access them? in Javascript object, variable or HTML-DOM?
for example, whenever we choose category checkboxes, tags or change this or that settings or options in Gutenberg blocks, where all those changes are saved in that moment?
A: All datas seems to be stored in JS objects, and not in HTML-DOM. We can use:
wp.data.select("core").getXXXXXXXXXXXX()
wp.data.select("core/editor").getXXXXXXXXXXXX()
...
There are many areas too, you can list them with: console.log(wp.blocks.getBlockTypes());
| Q: Access GutenBerg data with Javascript? I am trying to find out where does Gutenberg save changes/settings/options and how to access them? in Javascript object, variable or HTML-DOM?
for example, whenever we choose category checkboxes, tags or change this or that settings or options in Gutenberg blocks, where all those changes are saved in that moment?
A: All datas seems to be stored in JS objects, and not in HTML-DOM. We can use:
wp.data.select("core").getXXXXXXXXXXXX()
wp.data.select("core/editor").getXXXXXXXXXXXX()
...
There are many areas too, you can list them with: console.log(wp.blocks.getBlockTypes());
| wordpress | {
"language": "en",
"length": 87,
"provenance": "stackexchange_00019.jsonl.gz:491629",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/324387"
} | [
-0.027008056640625,
-0.01302337646484375,
-0.041717529296875,
-0.005039215087890625,
-0.0108642578125,
-0.032012939453125,
0.01036834716796875,
0.0201416015625,
0.0169830322265625,
0.043212890625,
-0.03271484375,
-0.025970458984375,
0.0222930908203125,
-0.0160369873046875,
-0.03289794921875,
-0.03424072265625,
0.059173583984375,
-0.0060272216796875,
0.06817626953125,
0.015869140625,
-0.00634765625,
0.043670654296875,
0.03973388671875,
0.07318115234375,
0.023834228515625,
-0.03363037109375,
0.030731201171875,
-0.005680084228515625,
0.03045654296875,
-0.013671875,
0.035186767578125,
-0.010009765625,
0.02557373046875,
-0.0007567405700683594,
-0.0157470703125,
0.023223876953125,
0.03802490234375,
-0.025909423828125,
0.01084136962890625,
0.022918701171875,
0.016082763671875,
-0.012054443359375,
-0.033538818359375,
-0.00801849365234375,
-0.0115966796875,
-0.036895751953125,
0.01317596435546875,
-0.04022216796875,
0.01184844970703125,
0.0516357421875,
0.00481414794921875,
-0.0116729736328125,
0.0075225830078125,
0.00441741943359375,
-0.003383636474609375,
-0.0018854141235351562,
-0.0044708251953125,
0.00946044921875,
0.0160064697265625,
0.0247650146484375,
-0.01288604736328125,
0.01351165771484375,
0.0016641616821289062,
-0.0113372802734375,
0.04156494140625,
-0.021728515625,
0.0335693359375,
0.033843994140625,
-0.042938232421875,
0.038055419921875,
0.0400390625,
-0.0218353271484375,
-0.0036525726318359375,
-0.07550048828125,
0.02667236328125,
0.0273895263671875,
-0.041778564453125,
-0.041656494140625,
0.0052337646484375,
0.002079010009765625,
0.004947662353515625,
-0.00458526611328125,
-0.0074615478515625,
-0.006916046142578125,
-0.01438140869140625,
0.0059661865234375,
-0.01116943359375,
-0.0154266357421875,
-0.0186920166015625,
0.0035114288330078125,
-0.0161285400390625,
-0.0168304443359375,
-0.003528594970703125,
0.02532958984375,
-0.028228759765625,
-0.0004761219024658203,
-0.02069091796875,
-0.00823211669921875,
-0.001148223876953125,
0.0006351470947265625,
-0.019866943359375,
-0.01904296875,
-0.002994537353515625,
0.00421142578125,
0.0017995834350585938,
0.0289154052734375,
-0.0147552490234375,
0.00945281982421875,
0.042633056640625,
0.0137786865234375,
-0.00849151611328125,
0.0003631114959716797,
0.01021575927734375,
-0.0011854171752929688,
0.01403045654296875,
-0.009490966796875,
-0.03790283203125,
0.04974365234375,
-0.0167236328125,
0.0126495361328125,
0.01171112060546875,
0.038543701171875,
-0.0276336669921875,
-0.0106964111328125,
-0.0092926025390625,
-0.032135009765625,
-0.02984619140625,
0.0181427001953125,
-0.048248291015625,
-0.0047454833984375,
-0.0035457611083984375,
0.00908660888671875,
0.0206298828125,
0.058868408203125,
0.01119232177734375,
0.001995086669921875,
0.041290283203125,
0.004093170166015625,
-0.005527496337890625,
-0.0035228729248046875,
0.033935546875,
-0.0129547119140625,
-0.025848388671875,
-0.0118865966796875,
-0.01177215576171875,
-0.0173187255859375,
0.005870819091796875,
0.03753662109375,
-0.0023956298828125,
-0.0264892578125,
0.0232391357421875,
0.0041351318359375,
0.050933837890625,
-0.016204833984375,
-0.0050506591796875,
-0.038421630859375,
0.057891845703125,
-0.046356201171875,
-0.018463134765625,
-0.0733642578125,
-0.0172576904296875,
-0.020751953125,
0.031890869140625,
-0.0032596588134765625,
-0.008758544921875,
0.01983642578125,
-0.026275634765625,
0.0006346702575683594,
0.0211334228515625,
0.032562255859375,
-0.0104827880859375,
-0.037750244140625,
-0.040008544921875,
-0.0029697418212890625,
-0.005039215087890625,
0.01317596435546875,
-0.027923583984375,
-0.039154052734375,
0.023162841796875,
0.0287628173828125,
-0.0027065277099609375,
-0.0213775634765625,
-0.025238037109375,
0.0252227783203125,
-0.00936126708984375,
0.0291595458984375,
-0.003997802734375,
0.050018310546875,
0.02032470703125,
0.0185699462890625,
-0.0269012451171875,
-0.008209228515625,
-0.0625,
0.0301971435546875,
-0.0088653564453125,
0.039794921875,
-0.0191650390625,
0.055938720703125,
-0.01195526123046875,
-0.061798095703125,
0.04180908203125,
-0.01050567626953125,
-0.0007872581481933594,
-0.039031982421875,
-0.069580078125,
-0.03369140625,
-0.0251007080078125,
0.0286102294921875,
-0.0298309326171875,
-0.026702880859375,
0.0229949951171875,
-0.0208282470703125,
-0.01210784912109375,
-0.0234832763671875,
-0.0221710205078125,
0.0299072265625,
0.005496978759765625,
0.08135986328125,
0.0211334228515625,
0.0379638671875,
0.0162200927734375,
-0.0195159912109375,
0.014068603515625,
0.0275726318359375,
0.046173095703125,
0.0238189697265625,
-0.00033283233642578125,
-0.010498046875,
0.033966064453125,
0.036529541015625,
-0.054107666015625,
-0.0206146240234375,
0.00818634033203125,
0.046112060546875,
0.032012939453125,
0.002651214599609375,
0.041168212890625,
-0.07037353515625,
0.033355712890625,
0.017181396484375,
0.019256591796875,
-0.004444122314453125,
-0.039154052734375,
-0.033111572265625,
0.01297760009765625,
-0.00501251220703125,
0.015289306640625,
-0.01690673828125,
0.017425537109375,
0.044586181640625,
-0.0268096923828125,
0.0011453628540039062,
0.03680419921875,
0.02801513671875,
0.00197601318359375,
0.02874755859375,
-0.0184173583984375,
0.035614013671875,
-0.026153564453125,
-0.00518035888671875,
-0.013153076171875,
-0.006626129150390625,
0.00576019287109375,
-0.022186279296875,
0.1182861328125,
-0.0040283203125,
0.061737060546875,
0.048828125,
-0.019073486328125,
0.0127716064453125,
-0.00821685791015625,
-0.0438232421875,
0.00795745849609375,
0.04400634765625,
0.0230560302734375,
-0.008148193359375,
-0.0285491943359375,
-0.0233917236328125,
0.042327880859375,
0.030303955078125,
-0.007434844970703125,
0.0164337158203125,
-0.0638427734375,
-0.0162353515625,
0.00652313232421875,
-0.0173187255859375,
-0.0206756591796875,
0.01189422607421875,
0.00322723388671875,
0.0157318115234375,
0.051788330078125,
0.00994873046875,
-0.002742767333984375,
-0.0036716461181640625,
0.009552001953125,
-0.02166748046875,
0.11041259765625,
-0.021331787109375,
0.0031032562255859375,
0.003162384033203125,
0.10821533203125,
0.055511474609375,
-0.0224609375,
0.0252685546875,
-0.00992584228515625,
-0.01378631591796875,
0.0081939697265625,
-0.020965576171875,
-0.029754638671875,
0.0026683807373046875,
-0.029937744140625,
0.044219970703125,
0.00885009765625,
-0.0178070068359375,
0.005603790283203125,
-0.02752685546875,
-0.0321044921875,
-0.0030498504638671875,
-0.09747314453125,
-0.049591064453125,
-0.032470703125,
-0.10089111328125,
-0.005435943603515625,
-0.0270538330078125,
-0.059600830078125,
0.024139404296875,
0.0135498046875,
0.01065826416015625,
-0.041534423828125,
-0.0164947509765625,
-0.052215576171875,
-0.06524658203125,
-0.050140380859375,
-0.00278472900390625,
-0.0247802734375,
0.00920867919921875,
-0.0001462697982788086,
-0.0250701904296875,
-0.03497314453125,
-0.04718017578125,
-0.05560302734375,
-0.00559234619140625,
-0.01177215576171875,
-0.052886962890625,
0.00695037841796875,
-0.040740966796875,
0.00261688232421875,
0.00362396240234375,
-0.01276397705078125,
0.0121917724609375,
0.007781982421875,
-0.0061492919921875,
0.00867462158203125,
0.038177490234375,
0.0196075439453125,
0.007411956787109375,
-0.01751708984375,
0.022705078125,
0.0174560546875,
-0.0264739990234375,
-0.03826904296875,
0.0099639892578125,
-0.0305023193359375,
0.0222930908203125,
0.0032939910888671875,
0.00936126708984375,
0.0102691650390625,
0.036163330078125,
0.031768798828125,
0.0202484130859375,
0.00943756103515625,
0.009674072265625,
-0.0156402587890625,
-0.0233612060546875,
-0.002552032470703125,
-0.019256591796875,
0.037689208984375,
0.0027561187744140625,
-0.0189666748046875,
-0.003307342529296875,
0.02532958984375,
0.0113677978515625,
-0.0170440673828125,
-0.0426025390625,
-0.033294677734375,
0.02728271484375,
-0.031402587890625,
0.00771331787109375,
-0.0130157470703125,
-0.008209228515625,
0.0175933837890625,
0.07037353515625,
0.017913818359375,
0.011627197265625,
0.01198577880859375,
-0.0105133056640625,
-0.050384521484375,
-0.01459503173828125,
-0.0816650390625,
0.0183868408203125,
-0.0352783203125,
0.0204315185546875,
-0.00005930662155151367,
-0.024627685546875,
-0.0255126953125,
0.017120361328125,
-0.033935546875,
-0.0167388916015625,
0.031280517578125,
-0.061248779296875,
0.03753662109375,
-0.0211029052734375,
0.0190277099609375,
-0.04315185546875,
-0.0018720626831054688,
-0.039337158203125,
-0.058380126953125,
-0.01192474365234375,
0.005283355712890625,
0.035308837890625,
0.01238250732421875,
-0.03057861328125,
0.001354217529296875,
0.053009033203125,
-0.0198516845703125,
0.03070068359375,
0.00618743896484375,
0.0550537109375,
-0.0034160614013671875,
-0.09820556640625,
-0.0065155029296875,
-0.0833740234375,
-0.00202178955078125,
-0.022064208984375,
-0.0193634033203125,
0.01302337646484375,
-0.01690673828125,
-0.01824951171875,
-0.007358551025390625,
-0.00730133056640625,
-0.04864501953125,
-0.0240631103515625,
-0.06951904296875,
-0.0186614990234375,
-0.03863525390625,
-0.0111541748046875,
-0.0147552490234375,
-0.06256103515625,
0.06512451171875,
0.03289794921875,
0.0005550384521484375,
-0.0053863525390625,
0.07293701171875,
0.007251739501953125,
-0.030670166015625,
-0.03338623046875,
-0.0302581787109375,
0.0233306884765625,
-0.0294036865234375,
0.0770263671875,
0.023040771484375,
-0.0231170654296875,
0.1268310546875,
-0.021759033203125,
0.020751953125,
-0.056640625,
0.08441162109375,
0.019256591796875,
0.0335693359375,
-0.01934814453125,
0.0272369384765625,
-0.0095977783203125,
0.004589080810546875,
-0.048736572265625,
-0.007678985595703125,
-0.0290679931640625,
0.045928955078125,
-0.055938720703125,
0.102294921875,
-0.019378662109375,
-0.012847900390625,
-0.00799560546875,
-0.04168701171875,
0.10797119140625,
0.06622314453125,
-0.0245513916015625,
0.05450439453125,
0.066162109375,
0.016998291015625,
0.0085601806640625,
-0.0095062255859375,
-0.01032257080078125,
0.0380859375,
0.0009002685546875,
0.0099334716796875,
-0.003582000732421875,
0.0004031658172607422,
0.014739990234375,
-0.0396728515625,
-0.0706787109375,
-0.00769805908203125,
-0.01409149169921875,
0.007556915283203125,
0.054351806640625,
-0.0155792236328125,
0.01690673828125,
0.0364990234375,
-0.036468505859375,
0.0037250518798828125,
0.025787353515625,
-0.0287017822265625,
-0.04315185546875,
0.0245513916015625,
0.01114654541015625,
-0.0211334228515625,
0.01116943359375,
0.022857666015625,
-0.01410675048828125,
0.001819610595703125,
-0.0010881423950195312,
0.03204345703125,
-0.0203399658203125,
0.0234832763671875,
0.0204010009765625,
0.0031147003173828125,
0.0273895263671875,
-0.0238189697265625,
-0.004375457763671875,
-0.01129913330078125,
-0.0290985107421875,
0.01617431640625,
0.00713348388671875,
-0.012176513671875,
0.0200958251953125,
0.01519012451171875,
0.0220489501953125,
0.0169525146484375,
-0.02008056640625,
-0.0377197265625,
-0.007701873779296875,
0.010040283203125,
0.0306396484375,
0.0148468017578125,
0.006683349609375,
0.0280303955078125,
-0.046783447265625,
-0.0061492919921875,
-0.0198516845703125,
0.0051727294921875,
-0.01250457763671875,
-0.02703857421875,
-0.02593994140625,
-0.057037353515625,
-0.0067596435546875,
0.02581787109375,
-0.09375,
-0.050537109375,
0.0030651092529296875,
-0.003833770751953125,
0.045562744140625,
-0.023284912109375,
-0.00495147705078125,
-0.03448486328125,
0.04803466796875,
0.0010881423950195312,
0.00774383544921875,
0.0518798828125,
0.015472412109375,
-0.00780487060546875,
-0.016876220703125,
-0.049896240234375,
-0.0276947021484375,
-0.033294677734375,
-0.0399169921875,
-0.0169677734375,
0.02227783203125,
-0.017242431640625,
0.01708984375,
-0.0220184326171875,
0.00923919677734375,
0.044952392578125,
0.029510498046875,
-0.0274810791015625,
0.05462646484375,
0.0034122467041015625,
0.084228515625,
-0.0653076171875,
0.06561279296875,
-0.0181732177734375,
-0.00821685791015625,
-0.05926513671875,
0.01410675048828125,
-0.006290435791015625,
-0.035614013671875,
-0.014251708984375,
-0.0254364013671875,
0.00141143798828125,
0.0282135009765625,
0.02850341796875,
0.00988006591796875,
0.028778076171875,
-0.004566192626953125,
0.004344940185546875,
-0.0197906494140625,
0.004730224609375,
-0.0259246826171875,
0.006916046142578125,
0.021881103515625,
0.003520965576171875,
-0.001270294189453125,
-0.0162353515625,
-0.042694091796875,
0.04620361328125,
0.0187225341796875,
0.0198211669921875,
-0.004520416259765625,
0.016143798828125,
-0.017059326171875,
0.0206451416015625,
-0.005214691162109375,
0.027252197265625,
0.027923583984375,
0.0186920166015625,
0.02484130859375,
0.046966552734375,
-0.01776123046875,
0.005245208740234375,
0.041717529296875,
0.0156707763671875,
-0.0205841064453125,
0.006801605224609375,
-0.0111846923828125,
0.016632080078125,
0.0174102783203125,
0.05560302734375,
-0.0589599609375,
0.0182647705078125,
0.014495849609375,
-0.029449462890625,
-0.01824951171875,
0.0254669189453125,
-0.03643798828125,
-0.05792236328125,
-0.03839111328125,
-0.00815582275390625,
-0.0190582275390625,
-0.01319122314453125,
0.0198974609375,
-0.006969451904296875,
-0.0257415771484375,
0.0008230209350585938,
0.0018453598022460938,
0.004055023193359375,
-0.01482391357421875,
0.00251007080078125,
-0.00704193115234375,
-0.017425537109375,
0.041351318359375,
0.0087890625,
-0.0174560546875,
-0.0799560546875,
0.001468658447265625,
0.029296875,
-0.06024169921875,
-0.03363037109375,
-0.00800323486328125,
0.042388916015625,
0.045623779296875,
-0.0169677734375,
-0.016876220703125,
0.0100860595703125,
0.0487060546875,
-0.0044097900390625,
-0.00966644287109375,
0.0258026123046875,
0.01171112060546875,
-0.06744384765625,
0.0219268798828125,
-0.046142578125,
0.00818634033203125,
0.005615234375,
0.049530029296875,
0.0182342529296875,
-0.0177154541015625,
-0.02691650390625,
0.050994873046875,
-0.0080108642578125,
-0.0300445556640625,
0.0053558349609375,
0.0271759033203125,
-0.005096435546875,
0.024566650390625,
0.00475311279296875,
0.008636474609375,
-0.01401519775390625,
0.004970550537109375,
-0.042083740234375,
0.0863037109375,
0.01018524169921875,
0.0009493827819824219,
0.006282806396484375,
0.040740966796875,
-0.0190277099609375,
0.02545166015625,
-0.043060302734375,
0.0469970703125,
0.01090240478515625,
0.0264739990234375,
-0.09051513671875,
-0.01015472412109375,
-0.0268707275390625,
0.0189208984375,
0.0283966064453125,
0.0037441253662109375,
-0.016448974609375,
-0.01739501953125,
0.0018768310546875,
0.0185394287109375,
-0.0210113525390625,
0.03656005859375,
0.0335693359375,
0.016998291015625,
0.0496826171875,
-0.03887939453125,
0.0242919921875,
-0.033905029296875,
0.006443023681640625,
0.03387451171875,
0.004390716552734375,
0.010528564453125,
-0.009979248046875,
0.042144775390625,
0.0013608932495117188,
-0.009002685546875,
0.0054931640625,
-0.042144775390625,
-0.0170745849609375,
0.05328369140625,
0.04302978515625,
-0.0217437744140625,
-0.06475830078125,
-0.0240936279296875,
0.025543212890625,
0.028045654296875,
0.00270843505859375,
0.004039764404296875,
0.01519012451171875,
-0.017242431640625,
-0.01050567626953125,
-0.00708770751953125,
0.0200042724609375,
-0.024444580078125,
0.049957275390625,
0.0020084381103515625,
0.0018796920776367188,
-0.06719970703125,
0.02691650390625,
0.055206298828125,
0.052154541015625,
-0.056304931640625,
-0.05230712890625,
-0.0086669921875,
0.0233154296875,
0.0372314453125,
0.00928497314453125,
0.05322265625,
0.02301025390625,
0.057525634765625,
-0.0089263916015625,
-0.038543701171875,
-0.007213592529296875,
0.0028324127197265625,
-0.003238677978515625,
0.024749755859375,
0.036224365234375,
-0.023712158203125,
-0.042236328125,
-0.0057525634765625,
-0.01776123046875,
0.020538330078125,
0.05499267578125,
0.02203369140625,
0.048980712890625,
-0.003398895263671875,
-0.0450439453125,
0.0302886962890625,
0.01318359375,
0.055206298828125,
-0.035614013671875,
0.0009641647338867188,
0.025238037109375,
0.038848876953125,
0.01433563232421875,
0.051910400390625,
0.040435791015625,
0.047760009765625,
0.01136016845703125,
-0.001708984375,
0.037200927734375,
-0.0244598388671875,
-0.005157470703125,
-0.0290985107421875,
0.051361083984375,
0.023162841796875,
0.01226043701171875,
-0.029327392578125,
0.05364990234375,
0.023773193359375,
-0.0400390625,
0.06610107421875,
-0.0115509033203125,
-0.0088043212890625,
0.0455322265625,
-0.00958251953125,
0.069580078125,
0.0011968612670898438,
-0.017181396484375,
-0.0172119140625,
0.01438140869140625,
-0.0268707275390625,
-0.0118255615234375,
0.03704833984375,
-0.0041961669921875,
0.00811767578125,
-0.0171966552734375,
-0.0189056396484375,
0.047332763671875,
-0.020660400390625,
0.029632568359375,
0.09027099609375,
0.003360748291015625,
0.015106201171875,
-0.049896240234375,
-0.0228424072265625,
0.035675048828125,
0.00800323486328125,
-0.03753662109375,
0.0243682861328125,
0.0261993408203125,
-0.00926971435546875,
0.0196075439453125,
0.0107421875,
-0.0019626617431640625,
0.01445770263671875,
0.004909515380859375,
0.00887298583984375,
0.02716064453125,
-0.00693511962890625,
-0.02789306640625,
0.038299560546875,
0.01340484619140625,
0.01389312744140625,
0.0413818359375,
-0.0273284912109375,
0.011932373046875,
0.01152801513671875,
0.02362060546875,
-0.01080322265625,
-0.045684814453125,
0.00954437255859375,
0.027099609375,
-0.01285552978515625,
0.03448486328125,
0.02532958984375,
0.04791259765625,
0.01168060302734375,
0.042388916015625,
-0.0028057098388671875,
-0.007549285888671875,
-0.0043182373046875,
0.037506103515625,
-0.051971435546875,
0.024261474609375,
0.00005173683166503906,
-0.0175628662109375,
0.026885986328125,
-0.01032257080078125,
-0.0003058910369873047,
0.014923095703125,
0.033416748046875,
0.006626129150390625,
0.0325927734375,
0.0416259765625,
0.01041412353515625,
0.024566650390625,
0.0198516845703125,
-0.0155487060546875,
-0.006793975830078125,
0.051361083984375,
-0.017333984375,
-0.040771484375,
-0.0002739429473876953,
0.007099151611328125,
-0.0214996337890625,
-0.037078857421875,
-0.049896240234375,
-0.0015211105346679688,
0.0097808837890625,
0.0020294189453125,
-0.060791015625,
0.03546142578125,
-0.013580322265625,
0.039276123046875,
-0.0223846435546875,
0.02008056640625,
-0.02423095703125,
0.009521484375,
-0.008392333984375,
0.006008148193359375,
-0.022674560546875,
0.023040771484375,
0.0158233642578125,
0.0391845703125,
0.0243377685546875,
-0.040924072265625,
0.0443115234375,
0.0157623291015625,
0.047515869140625,
0.07830810546875,
0.005298614501953125,
0.00617218017578125,
0.01271820068359375,
0.033111572265625,
-0.0288238525390625,
-0.054595947265625,
-0.00437164306640625,
0.04107666015625,
0.0170135498046875,
-0.040557861328125,
0.02117919921875,
0.006870269775390625,
-0.04833984375,
-0.0625,
0.0210113525390625,
-0.005565643310546875,
-0.0305328369140625,
-0.0099029541015625,
0.0054168701171875,
0.00960540771484375,
0.01023101806640625,
-0.0236968994140625,
0.030853271484375,
-0.0280914306640625,
-0.0084381103515625,
0.020965576171875,
-0.00555419921875,
0.034515380859375,
-0.015869140625,
-0.09771728515625,
-0.0116729736328125,
-0.036376953125,
0.039306640625,
0.0002143383026123047,
-0.020782470703125,
0.038055419921875,
0.0292816162109375,
-0.0286712646484375,
-0.0198822021484375,
0.0025882720947265625,
-0.0007290840148925781,
0.01113128662109375,
0.005725860595703125,
-0.0556640625,
0.0027523040771484375,
0.03546142578125,
0.0867919921875,
0.015472412109375,
-0.04425048828125,
0.02294921875,
0.0013437271118164062,
-0.045379638671875,
0.01140594482421875,
0.0023193359375,
-0.0225372314453125,
0.01236724853515625,
-0.014495849609375,
-0.01076507568359375,
-0.00724029541015625,
0.0200347900390625,
-0.02130126953125,
0.003444671630859375,
0.032196044921875,
-0.0233154296875,
-0.0166015625,
-0.00975799560546875,
0.01500701904296875,
-0.01025390625,
0.020355224609375,
0.0034198760986328125,
0.0100860595703125,
0.032073974609375,
0.051483154296875,
-0.0119781494140625,
0.000025510787963867188,
-0.019012451171875,
0.01505279541015625,
-0.0165863037109375,
0.04852294921875,
-0.034637451171875,
-0.01456451416015625,
0.01910400390625,
-0.00982666015625,
-0.008941650390625,
-0.0276031494140625,
-0.033538818359375,
0.0269622802734375,
-0.033782958984375,
0.00885772705078125,
-0.01161956787109375,
-0.0101776123046875,
-0.013427734375,
0.03326416015625,
0.0006213188171386719,
-0.0240936279296875,
0.0266876220703125,
-0.0372314453125,
-0.007724761962890625,
-0.0229034423828125,
-0.006122589111328125,
-0.076904296875,
-0.002101898193359375,
-0.018707275390625,
0.01007080078125,
0.0287017822265625
] |
855808465c3c77eae407b3f7e84bf2f14a8b337c | Wordpress Stackexchange
Q: Plugin "Add from server" not working when selection a large number of medias I am migrating my website to wordpress and I have the images organized in folders like wp. I already uploaded the folders and files into wp-content/uploads.
I try using "Add from server" plugin to add the images to the library, but noting happen when I select a large number at ones.
Is there any chance to get it work ? Or suggest another plugin that does the job.
Thanks
A: The Add From Server Plugin no longer works for the current version of WordPress. The Media Sync plugin works (as shown above) or use - WP-CLI Media Imports
There is a pretty awesome article I found - Bulk Upload WordPress Media
| Q: Plugin "Add from server" not working when selection a large number of medias I am migrating my website to wordpress and I have the images organized in folders like wp. I already uploaded the folders and files into wp-content/uploads.
I try using "Add from server" plugin to add the images to the library, but noting happen when I select a large number at ones.
Is there any chance to get it work ? Or suggest another plugin that does the job.
Thanks
A: The Add From Server Plugin no longer works for the current version of WordPress. The Media Sync plugin works (as shown above) or use - WP-CLI Media Imports
There is a pretty awesome article I found - Bulk Upload WordPress Media
A: As an alternative, you can try "Media Sync": https://wordpress.org/plugins/media-sync/.
A: As mentioned on the plugins website (https://wordpress.org/plugins/add-from-server/) it's NOT meant to be used for migrations or bulk uploads but to add a small number of files that exceed the maximum allowed upload file size.
Please Note: This plugin is not designed to replace the media uploader. This plugin is not designed to be used for migration of sites. This plugin is not designed to re-import your media upload history. This plugin is not designed to Batch import your media. Etc. This plugin is 8 years old and designed for importing singular large files which could not be uploaded through the administration interface.
I assume the script reaches the PHP max_execution_time. So, if you are still determined to use this plugin to accomplish the task, increasing it most likely will solve the issue.
As an alternative, you may want to try the Media from FTP (https://wordpress.org/plugins/media-from-ftp/) plugin as it's using AJAX and therefore won't cause any timeouts.
| wordpress | {
"language": "en",
"length": 292,
"provenance": "stackexchange_00019.jsonl.gz:491651",
"question_score": "6",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/324452"
} | [
0.041839599609375,
0.0084381103515625,
0.025238037109375,
0.010650634765625,
0.00733184814453125,
-0.019256591796875,
0.07537841796875,
-0.041748046875,
0.0311279296875,
-0.0036373138427734375,
-0.027740478515625,
0.003326416015625,
-0.0044708251953125,
-0.0305328369140625,
0.0032825469970703125,
-0.016632080078125,
0.02490234375,
-0.0162811279296875,
0.0269927978515625,
-0.008026123046875,
0.010223388671875,
0.0193634033203125,
0.01172637939453125,
0.044281005859375,
-0.0030727386474609375,
0.03485107421875,
0.0460205078125,
-0.00783538818359375,
-0.004398345947265625,
-0.0175933837890625,
0.01496124267578125,
0.005680084228515625,
0.0232696533203125,
0.01507568359375,
-0.050201416015625,
-0.0235595703125,
0.032684326171875,
-0.0135650634765625,
-0.026397705078125,
0.0313720703125,
0.0286865234375,
0.0007028579711914062,
0.05029296875,
0.004665374755859375,
0.0218505859375,
-0.024810791015625,
0.0228118896484375,
-0.056060791015625,
0.001972198486328125,
-0.0207672119140625,
-0.016265869140625,
-0.0230560302734375,
0.0123748779296875,
-0.004764556884765625,
-0.0083465576171875,
-0.01593017578125,
-0.03131103515625,
0.07879638671875,
0.019622802734375,
-0.0167999267578125,
-0.041961669921875,
0.01641845703125,
0.0067901611328125,
0.0002865791320800781,
0.02337646484375,
0.0011949539184570312,
-0.021453857421875,
0.02752685546875,
-0.043670654296875,
-0.0089874267578125,
0.0194244384765625,
-0.058135986328125,
-0.0082855224609375,
-0.032562255859375,
-0.0228729248046875,
0.030731201171875,
-0.00937652587890625,
-0.0396728515625,
0.018280029296875,
0.000621795654296875,
0.0377197265625,
0.0009784698486328125,
0.0008382797241210938,
-0.020416259765625,
0.006900787353515625,
-0.00238800048828125,
0.007732391357421875,
-0.0147247314453125,
-0.007549285888671875,
0.01763916015625,
-0.0102386474609375,
-0.0245819091796875,
0.0037555694580078125,
0.05126953125,
-0.0011682510375976562,
0.01380157470703125,
0.046142578125,
0.04608154296875,
0.00972747802734375,
0.0285491943359375,
0.00562286376953125,
-0.060089111328125,
0.048309326171875,
-0.0347900390625,
-0.00235748291015625,
-0.02911376953125,
-0.0283966064453125,
-0.054656982421875,
0.0303192138671875,
0.0458984375,
-0.032257080078125,
0.05108642578125,
0.0134124755859375,
0.016082763671875,
0.0162200927734375,
-0.020599365234375,
-0.04290771484375,
0.056549072265625,
-0.0196075439453125,
0.054412841796875,
-0.0030841827392578125,
0.0245361328125,
-0.0771484375,
-0.0100860595703125,
-0.001720428466796875,
-0.052947998046875,
-0.022430419921875,
0.047027587890625,
-0.00991058349609375,
-0.02423095703125,
-0.0190277099609375,
0.05548095703125,
0.04803466796875,
0.0029354095458984375,
-0.0237274169921875,
0.008087158203125,
0.00969696044921875,
0.01108551025390625,
0.01000213623046875,
-0.0065765380859375,
0.0210418701171875,
-0.0279083251953125,
-0.0201416015625,
0.017578125,
0.0171661376953125,
0.006031036376953125,
0.0019044876098632812,
0.025970458984375,
0.0243377685546875,
-0.023712158203125,
0.023406982421875,
-0.01190948486328125,
0.055419921875,
0.0002739429473876953,
0.00893402099609375,
-0.017578125,
0.06317138671875,
-0.0506591796875,
-0.0194549560546875,
-0.052337646484375,
0.03216552734375,
-0.0031566619873046875,
0.0196685791015625,
-0.0126495361328125,
-0.02618408203125,
-0.0025177001953125,
-0.0760498046875,
-0.0144500732421875,
0.03155517578125,
-0.00901031494140625,
-0.006732940673828125,
0.006694793701171875,
0.08416748046875,
0.028045654296875,
-0.0087432861328125,
0.0369873046875,
0.041961669921875,
0.034942626953125,
0.01396942138671875,
0.043609619140625,
0.006298065185546875,
-0.022552490234375,
0.1048583984375,
-0.0477294921875,
-0.049774169921875,
-0.0140228271484375,
0.01517486572265625,
0.03253173828125,
0.0224609375,
0.0194091796875,
0.0606689453125,
0.004512786865234375,
-0.0229644775390625,
-0.0186614990234375,
-0.0002396106719970703,
-0.004207611083984375,
0.0257415771484375,
0.019775390625,
0.005962371826171875,
-0.02392578125,
-0.0136871337890625,
-0.013946533203125,
0.019134521484375,
-0.00394439697265625,
0.001674652099609375,
-0.00611114501953125,
-0.0029735565185546875,
0.0230255126953125,
0.0190277099609375,
-0.0070953369140625,
0.0012559890747070312,
0.005939483642578125,
-0.01123809814453125,
-0.04241943359375,
-0.03704833984375,
0.0096893310546875,
-0.035430908203125,
0.033966064453125,
0.002079010009765625,
0.064208984375,
-0.0074462890625,
-0.042266845703125,
-0.01036834716796875,
-0.02777099609375,
-0.0086517333984375,
0.0289764404296875,
-0.051177978515625,
0.0196685791015625,
-0.0479736328125,
0.02215576171875,
-0.016571044921875,
0.039581298828125,
-0.004917144775390625,
0.0313720703125,
-0.003307342529296875,
-0.0184326171875,
-0.0216064453125,
-0.082763671875,
0.030059814453125,
0.051483154296875,
0.024139404296875,
0.0247344970703125,
0.01419830322265625,
0.046539306640625,
0.0169219970703125,
-0.03350830078125,
0.0166778564453125,
0.0137176513671875,
-0.0296630859375,
0.0019311904907226562,
-0.019866943359375,
0.003772735595703125,
0.0093994140625,
-0.08349609375,
-0.0030384063720703125,
0.0333251953125,
-0.0164337158203125,
-0.02142333984375,
-0.023193359375,
0.005035400390625,
0.01445770263671875,
-0.034088134765625,
-0.0264739990234375,
-0.0212554931640625,
-0.0232391357421875,
0.021240234375,
0.00888824462890625,
0.0081634521484375,
-0.00791168212890625,
0.0086822509765625,
0.01055908203125,
-0.03875732421875,
-0.00777435302734375,
-0.01032257080078125,
0.0233917236328125,
0.00986480712890625,
-0.06097412109375,
0.023101806640625,
0.019622802734375,
-0.007572174072265625,
-0.03778076171875,
-0.039520263671875,
0.0212554931640625,
-0.01776123046875,
-0.00420379638671875,
-0.0479736328125,
0.0438232421875,
-0.033416748046875,
-0.045196533203125,
-0.015869140625,
0.0201263427734375,
0.042510986328125,
-0.007213592529296875,
0.01151275634765625,
-0.0234527587890625,
0.0121917724609375,
0.0770263671875,
-0.0205841064453125,
0.019561767578125,
-0.0199432373046875,
0.08209228515625,
0.04925537109375,
-0.036834716796875,
0.003551483154296875,
-0.01433563232421875,
0.0638427734375,
0.007778167724609375,
-0.01337432861328125,
-0.03118896484375,
0.005527496337890625,
-0.068359375,
-0.047454833984375,
0.01241302490234375,
0.0022411346435546875,
-0.0087738037109375,
-0.05657958984375,
0.0095977783203125,
-0.024322509765625,
-0.09576416015625,
-0.0830078125,
0.0009050369262695312,
-0.04931640625,
-0.00421142578125,
-0.0096893310546875,
-0.022430419921875,
-0.0018072128295898438,
0.0164337158203125,
0.0030460357666015625,
-0.0203857421875,
-0.005649566650390625,
0.0155792236328125,
-0.02716064453125,
-0.033843994140625,
-0.0374755859375,
0.01214599609375,
0.01263427734375,
0.0009937286376953125,
0.04754638671875,
0.001251220703125,
-0.036224365234375,
-0.0155181884765625,
0.0203094482421875,
-0.00601959228515625,
-0.024749755859375,
0.04998779296875,
-0.040802001953125,
-0.0025501251220703125,
0.005306243896484375,
0.041961669921875,
0.04156494140625,
-0.0457763671875,
-0.0156707763671875,
-0.033233642578125,
-0.01261138916015625,
-0.024749755859375,
0.0194091796875,
0.054168701171875,
-0.025177001953125,
-0.0277099609375,
-0.05169677734375,
0.02679443359375,
-0.017547607421875,
-0.01123046875,
0.011199951171875,
-0.01055908203125,
-0.0118255615234375,
0.0036773681640625,
-0.0030231475830078125,
-0.00868988037109375,
0.01122283935546875,
0.01393890380859375,
-0.007080078125,
0.0001461505889892578,
-0.01983642578125,
-0.043701171875,
-0.01554107666015625,
0.0188751220703125,
-0.00878143310546875,
-0.0016622543334960938,
0.0007696151733398438,
0.0171356201171875,
-0.0125732421875,
0.025360107421875,
-0.04083251953125,
-0.037689208984375,
0.049224853515625,
-0.0096435546875,
0.01483154296875,
-0.033355712890625,
-0.0279998779296875,
0.004146575927734375,
0.08599853515625,
-0.041290283203125,
-0.033050537109375,
-0.0134429931640625,
0.018341064453125,
-0.00199127197265625,
-0.0288543701171875,
0.0157012939453125,
-0.033966064453125,
0.00984954833984375,
-0.0284881591796875,
-0.005413055419921875,
-0.0380859375,
0.0235748291015625,
-0.06396484375,
0.0099945068359375,
-0.005947113037109375,
0.023773193359375,
-0.033538818359375,
0.046966552734375,
-0.03717041015625,
0.0286102294921875,
-0.055511474609375,
0.0079803466796875,
-0.049591064453125,
-0.0960693359375,
-0.0197906494140625,
0.032623291015625,
0.058074951171875,
-0.03802490234375,
0.005008697509765625,
-0.0306854248046875,
0.041534423828125,
0.0239105224609375,
0.023345947265625,
0.0113525390625,
0.002902984619140625,
0.022369384765625,
-0.037506103515625,
0.01067352294921875,
-0.035675048828125,
-0.0300750732421875,
-0.0589599609375,
-0.03973388671875,
-0.022705078125,
-0.01279449462890625,
-0.0000317692756652832,
-0.005615234375,
-0.003009796142578125,
-0.01311492919921875,
-0.0258026123046875,
-0.0300140380859375,
0.0034503936767578125,
-0.0192718505859375,
-0.00745391845703125,
-0.043914794921875,
0.00405120849609375,
0.0167083740234375,
-0.040008544921875,
0.0161285400390625,
0.0209808349609375,
0.10211181640625,
0.00710296630859375,
0.0223541259765625,
-0.063720703125,
-0.0141754150390625,
0.0204010009765625,
0.03289794921875,
0.009521484375,
0.0032520294189453125,
-0.029571533203125,
0.034820556640625,
0.0164031982421875,
0.0095367431640625,
-0.026947021484375,
0.01467132568359375,
-0.00009763240814208984,
-0.026123046875,
0.0171356201171875,
0.014373779296875,
0.0176849365234375,
0.05450439453125,
-0.00347900390625,
-0.0175933837890625,
-0.035797119140625,
0.0305023193359375,
0.0156707763671875,
-0.0008716583251953125,
-0.033599853515625,
-0.0921630859375,
0.045928955078125,
-0.06304931640625,
0.005859375,
-0.0235595703125,
0.0036373138427734375,
0.04217529296875,
0.0068817138671875,
0.0211334228515625,
0.0207672119140625,
0.005340576171875,
-0.025177001953125,
0.031158447265625,
0.0140533447265625,
-0.004283905029296875,
0.015777587890625,
-0.0121917724609375,
0.0086822509765625,
-0.005229949951171875,
-0.027923583984375,
-0.0096282958984375,
-0.0107421875,
-0.0016584396362304688,
0.0240478515625,
0.0292205810546875,
0.045013427734375,
0.0034542083740234375,
0.01280975341796875,
-0.01158905029296875,
0.00720977783203125,
0.0024318695068359375,
-0.03399658203125,
0.021881103515625,
0.0032978057861328125,
-0.012939453125,
0.01061248779296875,
0.012664794921875,
-0.01457977294921875,
0.0054931640625,
0.01432037353515625,
0.0305938720703125,
0.0033206939697265625,
0.0293426513671875,
0.0127105712890625,
-0.00238800048828125,
0.003498077392578125,
0.005336761474609375,
0.01053619384765625,
-0.0418701171875,
0.0208892822265625,
0.01306915283203125,
0.035614013671875,
0.02264404296875,
-0.0257720947265625,
0.01340484619140625,
-0.0178375244140625,
-0.034271240234375,
0.059661865234375,
0.00824737548828125,
-0.04998779296875,
-0.040985107421875,
-0.007450103759765625,
0.055999755859375,
-0.014129638671875,
-0.0084075927734375,
-0.0033626556396484375,
0.0091705322265625,
0.0171661376953125,
0.055145263671875,
-0.04681396484375,
0.0272674560546875,
0.0224761962890625,
-0.0007500648498535156,
-0.0231781005859375,
-0.007312774658203125,
-0.0084075927734375,
0.0330810546875,
-0.0300750732421875,
-0.0248260498046875,
0.043731689453125,
-0.01488494873046875,
0.01146697998046875,
-0.004291534423828125,
-0.01343536376953125,
-0.068603515625,
0.03521728515625,
-0.0245361328125,
-0.0189208984375,
-0.0024261474609375,
-0.0140533447265625,
-0.0206756591796875,
-0.03985595703125,
0.02862548828125,
0.031524658203125,
-0.04632568359375,
-0.033843994140625,
0.0173187255859375,
0.003643035888671875,
-0.006275177001953125,
-0.0462646484375,
-0.003204345703125,
-0.004535675048828125,
0.0166778564453125,
-0.02044677734375,
0.00867462158203125,
0.019134521484375,
0.0267791748046875,
0.0036449432373046875,
0.019927978515625,
0.0260467529296875,
-0.004241943359375,
-0.0299072265625,
-0.0125274658203125,
-0.0673828125,
-0.0187225341796875,
0.0162353515625,
-0.02490234375,
0.05096435546875,
0.0279083251953125,
0.00591278076171875,
0.051116943359375,
-0.0198822021484375,
0.0034694671630859375,
-0.0156097412109375,
0.020751953125,
-0.048248291015625,
0.01544189453125,
0.049285888671875,
-0.0229034423828125,
0.0257415771484375,
-0.0006585121154785156,
0.01526641845703125,
-0.01381683349609375,
-0.01207733154296875,
-0.0193939208984375,
0.03033447265625,
0.00133514404296875,
0.017974853515625,
0.0190582275390625,
0.008270263671875,
0.03643798828125,
0.032073974609375,
0.0256500244140625,
0.01453399658203125,
-0.0135040283203125,
0.026885986328125,
-0.032562255859375,
0.008056640625,
-0.0229339599609375,
0.01447296142578125,
0.006282806396484375,
-0.01287078857421875,
0.0333251953125,
-0.0278472900390625,
0.03643798828125,
0.00397491455078125,
0.027496337890625,
0.01317596435546875,
-0.02410888671875,
0.0260162353515625,
-0.040313720703125,
0.01464080810546875,
0.01317596435546875,
0.0419921875,
0.0303497314453125,
-0.044891357421875,
-0.0004639625549316406,
0.00604248046875,
-0.002460479736328125,
-0.01007843017578125,
-0.0021572113037109375,
0.00588226318359375,
-0.0316162109375,
-0.032684326171875,
0.039276123046875,
-0.04486083984375,
0.01263427734375,
0.0323486328125,
-0.0340576171875,
-0.01119232177734375,
-0.034576416015625,
-0.0193634033203125,
-0.02777099609375,
-0.030029296875,
0.0233001708984375,
-0.01065826416015625,
0.05181884765625,
0.06396484375,
0.00878143310546875,
-0.01434326171875,
0.059295654296875,
-0.006114959716796875,
0.0247802734375,
-0.02783203125,
-0.0016956329345703125,
0.0172882080078125,
-0.035400390625,
0.014068603515625,
0.0168914794921875,
-0.017822265625,
0.01537322998046875,
0.00196075439453125,
0.0164031982421875,
-0.0345458984375,
0.0018377304077148438,
0.026123046875,
-0.00518798828125,
0.00688934326171875,
0.00634002685546875,
0.050567626953125,
-0.061767578125,
-0.03973388671875,
0.043914794921875,
-0.0129241943359375,
-0.01522064208984375,
0.035736083984375,
-0.07501220703125,
0.106201171875,
-0.027801513671875,
0.03594970703125,
0.01230621337890625,
0.044647216796875,
-0.02545166015625,
0.0036258697509765625,
-0.0419921875,
0.05670166015625,
-0.053192138671875,
0.0121917724609375,
-0.0809326171875,
0.02093505859375,
-0.033477783203125,
0.002513885498046875,
0.07391357421875,
0.01031494140625,
-0.036865234375,
-0.032440185546875,
0.04376220703125,
0.06011962890625,
0.0189056396484375,
0.0213165283203125,
-0.026336669921875,
-0.0217132568359375,
0.038543701171875,
-0.0114288330078125,
0.014617919921875,
0.0384521484375,
-0.01273345947265625,
0.001194000244140625,
-0.007598876953125,
-0.01177978515625,
-0.01509857177734375,
0.0284881591796875,
-0.01171875,
-0.0171661376953125,
0.01776123046875,
-0.032012939453125,
0.01108551025390625,
0.0203399658203125,
-0.00630950927734375,
0.0059814453125,
-0.02435302734375,
-0.005462646484375,
0.034271240234375,
-0.01425933837890625,
0.036346435546875,
0.0155181884765625,
0.00418853759765625,
0.026092529296875,
-0.00135040283203125,
0.01641845703125,
0.026702880859375,
-0.0136260986328125,
0.019287109375,
0.00020301342010498047,
0.0086517333984375,
-0.05645751953125,
-0.0421142578125,
0.077880859375,
0.04754638671875,
-0.0208740234375,
-0.059326171875,
0.0058441162109375,
-0.009002685546875,
0.0285491943359375,
0.00514984130859375,
0.01432037353515625,
-0.050323486328125,
-0.0015964508056640625,
0.00118255615234375,
-0.01035308837890625,
-0.00506591796875,
0.0211944580078125,
-0.0004973411560058594,
0.0184783935546875,
-0.00634002685546875,
-0.0196075439453125,
-0.029571533203125,
0.032470703125,
0.0249786376953125,
0.035125732421875,
-0.0288238525390625,
0.06573486328125,
-0.0205841064453125,
-0.006465911865234375,
-0.025909423828125,
0.033050537109375,
-0.005512237548828125,
0.0264739990234375,
-0.035919189453125,
-0.044586181640625,
0.03350830078125,
0.024017333984375,
0.02203369140625,
0.05126953125,
0.040283203125,
0.01409912109375,
-0.004627227783203125,
0.002391815185546875,
0.040618896484375,
-0.0289154052734375,
-0.005859375,
-0.04791259765625,
0.0209808349609375,
0.0328369140625,
-0.00530242919921875,
0.0236053466796875,
-0.0244598388671875,
0.0635986328125,
-0.0224151611328125,
0.002017974853515625,
-0.005619049072265625,
-0.066162109375,
0.0102081298828125,
-0.007778167724609375,
0.07830810546875,
0.01099395751953125,
-0.080078125,
0.0007772445678710938,
-0.0350341796875,
-0.0262451171875,
0.0110626220703125,
0.0286712646484375,
-0.04840087890625,
0.062469482421875,
-0.0147552490234375,
-0.0133819580078125,
0.014251708984375,
-0.007144927978515625,
0.0092010498046875,
0.02294921875,
0.0102691650390625,
0.00750732421875,
-0.0195465087890625,
-0.016510009765625,
-0.0278778076171875,
0.0457763671875,
0.04644775390625,
0.0662841796875,
-0.0195159912109375,
0.036773681640625,
0.0489501953125,
-0.031646728515625,
0.056640625,
0.06964111328125,
-0.041046142578125,
0.0207977294921875,
-0.004119873046875,
-0.044281005859375,
0.00550079345703125,
-0.007694244384765625,
0.0153961181640625,
-0.045867919921875,
-0.0533447265625,
-0.01142120361328125,
0.02496337890625,
0.06573486328125,
0.035308837890625,
-0.026123046875,
-0.0115966796875,
-0.0418701171875,
-0.0237274169921875,
0.037139892578125,
0.004032135009765625,
-0.0193023681640625,
0.006740570068359375,
-0.006443023681640625,
-0.03350830078125,
0.003582000732421875,
-0.0214385986328125,
-0.007297515869140625,
0.0251922607421875,
0.022735595703125,
-0.05596923828125,
0.007232666015625,
-0.00957489013671875,
-0.039794921875,
0.02606201171875,
0.0285186767578125,
0.013885498046875,
-0.072265625,
0.0182342529296875,
0.023834228515625,
0.032684326171875,
-0.0217742919921875,
-0.004482269287109375,
0.0235595703125,
-0.0157012939453125,
0.00379180908203125,
-0.040679931640625,
-0.0295257568359375,
-0.09173583984375,
0.030181884765625,
0.035614013671875,
-0.01934814453125,
0.017333984375,
-0.0274200439453125,
0.00804901123046875,
0.028564453125,
0.0159454345703125,
-0.0899658203125,
0.06195068359375,
-0.026153564453125,
0.01497650146484375,
-0.01410675048828125,
-0.0305328369140625,
-0.0009069442749023438,
-0.01117706298828125,
-0.034149169921875,
-0.05023193359375,
-0.058441162109375,
0.031097412109375,
-0.043701171875,
0.031494140625,
0.0325927734375,
-0.03668212890625,
0.001667022705078125,
0.014495849609375,
0.0220947265625,
0.06964111328125,
0.016815185546875,
-0.02813720703125,
-0.0027980804443359375,
-0.006977081298828125,
0.00342559814453125,
-0.0022144317626953125,
0.00650787353515625,
-0.01444244384765625,
-0.02197265625,
-0.041717529296875,
0.004085540771484375,
0.012847900390625,
-0.04913330078125,
-0.13525390625,
0.0283050537109375,
-0.03289794921875,
-0.050872802734375,
-0.07342529296875,
0.0036525726318359375,
0.003753662109375,
0.03253173828125,
-0.02447509765625,
-0.002620697021484375,
-0.032958984375,
0.047515869140625,
-0.01477813720703125,
0.0233306884765625,
0.01203155517578125,
-0.048095703125,
-0.0183868408203125,
-0.01183319091796875,
0.005229949951171875,
0.018768310546875,
0.01261138916015625,
-0.0174560546875,
0.0487060546875,
0.03814697265625,
-0.0083160400390625,
0.0723876953125,
0.0230255126953125,
-0.027862548828125,
-0.02581787109375,
-0.03167724609375,
-0.00986480712890625,
0.01035308837890625,
0.07818603515625,
0.039306640625,
0.016143798828125,
-0.047637939453125,
0.0175933837890625,
-0.01172637939453125,
0.0309906005859375,
-0.02032470703125,
-0.0086669921875,
-0.03521728515625,
-0.02459716796875,
-0.030181884765625,
0.0083160400390625,
-0.0026264190673828125,
-0.006313323974609375,
-0.0036525726318359375,
-0.024871826171875,
0.0160980224609375,
0.01261138916015625,
-0.031341552734375,
-0.00040650367736816406,
0.07427978515625,
-0.04193115234375,
-0.01259613037109375,
0.0176544189453125,
0.00894927978515625,
0.015655517578125,
0.0092926025390625,
0.0228424072265625,
-0.0203399658203125,
-0.006687164306640625,
0.05328369140625,
0.012939453125,
0.029022216796875,
-0.044647216796875,
-0.03271484375,
0.01824951171875,
0.0091705322265625,
-0.0279998779296875,
0.0001399517059326172,
0.034210205078125,
0.05303955078125,
-0.033416748046875,
0.096923828125,
-0.0019245147705078125,
-0.047332763671875,
-0.00971221923828125,
-0.0008935928344726562,
-0.0343017578125,
-0.0011758804321289062,
0.02398681640625,
-0.06451416015625,
-0.00919342041015625,
0.0226287841796875,
-0.0322265625,
-0.06512451171875,
0.0517578125,
-0.0064239501953125,
-0.0024738311767578125,
0.027252197265625
] |
49a85afb8241f51827f03449ed80cf237a771417 | Wordpress Stackexchange
Q: get selected categories or tags (using javascript) in GutenBerg? I was still unable to find out that in Gutenberg. Specifically, i used:
wp.data.select("core/editor").getPostEdits();
to find out how many categories were checked. But it missed already checked categories... So, which function should I use to access in sum, how many categories are select at this moment? where is that data stored?
A: To get the categories from inside the editor of a post you can make use of the following selectors:
The categories the post has in the published version:
wp.data.select("core/editor").getCurrentPostAttribute("categories")
The current categories of the edit (for example if the user has selected a new category but hasn't saved the post it will appear with this selector but not with the former):
wp.data.select("core/editor").getEditedPostAttribute("categories")
This will give you an array with the id of each category.
| Q: get selected categories or tags (using javascript) in GutenBerg? I was still unable to find out that in Gutenberg. Specifically, i used:
wp.data.select("core/editor").getPostEdits();
to find out how many categories were checked. But it missed already checked categories... So, which function should I use to access in sum, how many categories are select at this moment? where is that data stored?
A: To get the categories from inside the editor of a post you can make use of the following selectors:
The categories the post has in the published version:
wp.data.select("core/editor").getCurrentPostAttribute("categories")
The current categories of the edit (for example if the user has selected a new category but hasn't saved the post it will appear with this selector but not with the former):
wp.data.select("core/editor").getEditedPostAttribute("categories")
This will give you an array with the id of each category.
| wordpress | {
"language": "en",
"length": 136,
"provenance": "stackexchange_00019.jsonl.gz:491682",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/324557"
} | [
0.0135955810546875,
0.00418853759765625,
-0.030181884765625,
-0.012786865234375,
0.033966064453125,
-0.05078125,
0.043243408203125,
-0.002471923828125,
0.01041412353515625,
0.032562255859375,
-0.0312347412109375,
-0.0224609375,
0.01090240478515625,
-0.0301666259765625,
-0.032379150390625,
-0.0169677734375,
0.03021240234375,
-0.0008363723754882812,
0.0364990234375,
-0.003261566162109375,
0.00283050537109375,
0.02227783203125,
0.00875091552734375,
0.047576904296875,
0.023223876953125,
-0.00910186767578125,
0.02496337890625,
-0.03082275390625,
0.0086212158203125,
-0.0389404296875,
0.026458740234375,
0.01004791259765625,
0.03118896484375,
-0.0121307373046875,
-0.0174407958984375,
0.0211181640625,
0.030120849609375,
-0.021331787109375,
0.003124237060546875,
0.042510986328125,
0.042633056640625,
-0.025787353515625,
-0.0202789306640625,
-0.0025653839111328125,
0.0016469955444335938,
-0.0299530029296875,
0.0253143310546875,
-0.0657958984375,
0.00421142578125,
-0.0067596435546875,
0.00916290283203125,
0.002674102783203125,
0.0186309814453125,
-0.03289794921875,
-0.00446319580078125,
0.005329132080078125,
0.002681732177734375,
-0.00833892822265625,
0.03521728515625,
0.0027923583984375,
-0.02978515625,
-0.0021305084228515625,
0.0127410888671875,
-0.03228759765625,
0.0026760101318359375,
0.01288604736328125,
0.062744140625,
0.0207977294921875,
-0.00597381591796875,
-0.006183624267578125,
-0.0190277099609375,
0.00405120849609375,
-0.005489349365234375,
-0.028289794921875,
-0.00955963134765625,
0.007354736328125,
-0.0306396484375,
-0.035400390625,
0.023651123046875,
0.01230621337890625,
0.0001569986343383789,
0.0255126953125,
-0.026214599609375,
0.006549835205078125,
-0.0167999267578125,
0.0216064453125,
-0.0198211669921875,
-0.0187530517578125,
-0.04327392578125,
-0.01459503173828125,
-0.01360321044921875,
-0.0247039794921875,
-0.056549072265625,
0.03155517578125,
0.01430511474609375,
-0.0301513671875,
0.00695037841796875,
0.0305938720703125,
-0.01212310791015625,
-0.010528564453125,
-0.0180511474609375,
-0.0198516845703125,
-0.01309967041015625,
-0.01152801513671875,
0.0330810546875,
0.0194549560546875,
-0.035400390625,
0.0307464599609375,
0.08245849609375,
0.037139892578125,
0.01001739501953125,
0.0298919677734375,
-0.01221466064453125,
0.006374359130859375,
-0.0056915283203125,
0.004611968994140625,
-0.05267333984375,
0.0308685302734375,
-0.03125,
0.01788330078125,
0.0030422210693359375,
0.0240325927734375,
0.00814056396484375,
-0.0049896240234375,
-0.0028629302978515625,
0.0033779144287109375,
-0.0260467529296875,
-0.01158905029296875,
-0.01300048828125,
-0.0183868408203125,
-0.0165863037109375,
0.04522705078125,
0.028045654296875,
0.028717041015625,
-0.0162811279296875,
0.00447845458984375,
0.0255279541015625,
0.0244293212890625,
0.002117156982421875,
-0.01262664794921875,
-0.007381439208984375,
0.0007238388061523438,
0.02276611328125,
-0.051727294921875,
0.005832672119140625,
-0.00975799560546875,
0.0173797607421875,
0.0205535888671875,
0.005901336669921875,
0.0060577392578125,
-0.0006966590881347656,
-0.0049285888671875,
0.06329345703125,
-0.00787353515625,
-0.038299560546875,
-0.034515380859375,
0.028533935546875,
-0.032440185546875,
-0.03558349609375,
-0.0673828125,
0.036407470703125,
-0.0025806427001953125,
0.018280029296875,
-0.0207061767578125,
-0.043243408203125,
-0.0113983154296875,
-0.055694580078125,
-0.0139007568359375,
0.027374267578125,
0.018585205078125,
0.017608642578125,
-0.040985107421875,
0.0226593017578125,
-0.005306243896484375,
-0.0113677978515625,
0.01107025146484375,
-0.0277557373046875,
-0.036773681640625,
0.017120361328125,
0.0426025390625,
0.00433349609375,
-0.01084136962890625,
-0.01151275634765625,
0.0164031982421875,
-0.034149169921875,
0.0175628662109375,
0.01507568359375,
0.0865478515625,
0.0207061767578125,
0.033416748046875,
-0.01094818115234375,
-0.0251617431640625,
-0.057708740234375,
-0.0300445556640625,
-0.0016469955444335938,
0.043792724609375,
-0.00020563602447509766,
0.038848876953125,
0.0083465576171875,
-0.037750244140625,
0.0811767578125,
-0.02490234375,
0.0122833251953125,
-0.040496826171875,
-0.082275390625,
-0.0180816650390625,
-0.0171966552734375,
0.019012451171875,
-0.0106964111328125,
0.0252838134765625,
0.021453857421875,
-0.01190185546875,
-0.0191650390625,
0.0032978057861328125,
0.00017917156219482422,
0.0189208984375,
-0.003955841064453125,
0.00838470458984375,
-0.000926971435546875,
-0.01233673095703125,
0.006511688232421875,
0.02288818359375,
-0.00923919677734375,
0.0277557373046875,
0.04254150390625,
0.002727508544921875,
0.004268646240234375,
-0.013824462890625,
0.0335693359375,
0.042938232421875,
-0.051727294921875,
-0.042694091796875,
0.0150909423828125,
0.055419921875,
0.0247955322265625,
0.002986907958984375,
0.0491943359375,
-0.06365966796875,
0.0218505859375,
0.0134429931640625,
0.040283203125,
-0.002605438232421875,
-0.0265655517578125,
-0.0469970703125,
0.040130615234375,
-0.03692626953125,
0.0005426406860351562,
-0.025421142578125,
0.04150390625,
0.059326171875,
0.00525665283203125,
-0.00836944580078125,
0.034393310546875,
0.036376953125,
0.040863037109375,
0.0254669189453125,
0.0127105712890625,
0.016510009765625,
-0.0218658447265625,
-0.0065765380859375,
0.00710296630859375,
-0.0166015625,
-0.0517578125,
0.00012564659118652344,
0.084228515625,
0.008819580078125,
0.0848388671875,
0.07305908203125,
-0.006866455078125,
-0.00635528564453125,
-0.0150299072265625,
0.00791168212890625,
0.007434844970703125,
0.042510986328125,
0.0195770263671875,
0.00641632080078125,
-0.028594970703125,
-0.01448822021484375,
0.01535797119140625,
0.0261383056640625,
-0.01346588134765625,
0.03814697265625,
-0.00905609130859375,
-0.01317596435546875,
-0.010162353515625,
-0.031036376953125,
-0.00836944580078125,
-0.0140228271484375,
-0.032928466796875,
-0.00133514404296875,
0.04052734375,
0.01143646240234375,
-0.0029773712158203125,
-0.01381683349609375,
-0.0212249755859375,
0.0007352828979492188,
0.08294677734375,
-0.0198211669921875,
0.00293731689453125,
0.011505126953125,
0.09478759765625,
0.05364990234375,
-0.0103912353515625,
0.0095977783203125,
-0.00787353515625,
-0.0287017822265625,
0.0066070556640625,
-0.016876220703125,
-0.020660400390625,
-0.006725311279296875,
-0.031402587890625,
0.04547119140625,
0.02783203125,
0.02471923828125,
0.0005297660827636719,
-0.046173095703125,
-0.01538848876953125,
0.0200958251953125,
-0.08447265625,
-0.061187744140625,
0.0117034912109375,
-0.061614990234375,
-0.007068634033203125,
-0.027679443359375,
-0.042388916015625,
-0.00565338134765625,
-0.0044403076171875,
0.00469970703125,
-0.0305328369140625,
0.01515960693359375,
-0.039031982421875,
-0.0200042724609375,
-0.0341796875,
0.002338409423828125,
-0.032257080078125,
-0.00247955322265625,
0.0092926025390625,
0.0006132125854492188,
-0.01824951171875,
-0.057861328125,
-0.0294189453125,
-0.007732391357421875,
-0.0239105224609375,
-0.0296478271484375,
0.015045166015625,
-0.004669189453125,
0.004077911376953125,
0.0265655517578125,
-0.00804901123046875,
0.0106658935546875,
-0.0213775634765625,
-0.024658203125,
0.0007128715515136719,
0.043609619140625,
0.047607421875,
-0.0274505615234375,
-0.018157958984375,
0.0654296875,
0.033905029296875,
-0.0006818771362304688,
0.0257568359375,
0.0019350051879882812,
-0.0022869110107421875,
-0.0222625732421875,
-0.008697509765625,
-0.0079803466796875,
-0.004802703857421875,
-0.0002980232238769531,
0.01218414306640625,
0.02471923828125,
0.0205841064453125,
-0.0108795166015625,
0.033355712890625,
-0.0159912109375,
-0.00992584228515625,
-0.0313720703125,
-0.018890380859375,
-0.02886962890625,
0.03466796875,
-0.030242919921875,
0.0272369384765625,
0.00013828277587890625,
0.0233154296875,
-0.0166168212890625,
-0.02618408203125,
0.030120849609375,
-0.002094268798828125,
-0.028106689453125,
0.00014901161193847656,
-0.0184478759765625,
0.0245361328125,
0.053192138671875,
0.01043701171875,
-0.017364501953125,
-0.006137847900390625,
0.0025806427001953125,
-0.01479339599609375,
-0.013031005859375,
-0.040771484375,
-0.00986480712890625,
-0.08245849609375,
0.00908660888671875,
0.009124755859375,
-0.059722900390625,
-0.01055145263671875,
0.021728515625,
-0.07183837890625,
-0.022613525390625,
0.0438232421875,
-0.062347412109375,
0.045135498046875,
-0.0236968994140625,
0.031646728515625,
-0.04669189453125,
-0.0270843505859375,
-0.021026611328125,
-0.035980224609375,
0.0018138885498046875,
-0.005382537841796875,
0.0066070556640625,
-0.00927734375,
0.027923583984375,
0.003986358642578125,
0.0377197265625,
-0.010009765625,
0.03173828125,
-0.005809783935546875,
0.04473876953125,
-0.004730224609375,
-0.0341796875,
0.0145263671875,
-0.0499267578125,
-0.033935546875,
-0.04345703125,
0.00925445556640625,
-0.0150909423828125,
-0.03350830078125,
-0.054901123046875,
-0.0291900634765625,
0.008148193359375,
-0.057159423828125,
-0.03717041015625,
-0.040008544921875,
-0.0239410400390625,
-0.01360321044921875,
-0.01293182373046875,
-0.0121612548828125,
-0.051177978515625,
0.055938720703125,
0.0129547119140625,
0.00536346435546875,
-0.007598876953125,
0.07928466796875,
0.01226806640625,
-0.0288543701171875,
-0.0129852294921875,
-0.03997802734375,
0.03985595703125,
-0.0080413818359375,
0.07208251953125,
0.024871826171875,
-0.038848876953125,
0.13134765625,
0.0181427001953125,
0.00677490234375,
-0.06378173828125,
0.0772705078125,
0.00007587671279907227,
0.0170745849609375,
-0.00759124755859375,
-0.01160430908203125,
0.0243072509765625,
0.004116058349609375,
-0.031768798828125,
0.00437164306640625,
-0.0011034011840820312,
0.0175628662109375,
-0.038177490234375,
0.067626953125,
0.00949859619140625,
-0.022430419921875,
-0.0037059783935546875,
0.0265655517578125,
0.0771484375,
0.036468505859375,
-0.004848480224609375,
0.06414794921875,
0.07598876953125,
0.009307861328125,
0.0010471343994140625,
0.0009016990661621094,
-0.01003265380859375,
0.038421630859375,
-0.0206146240234375,
0.005298614501953125,
-0.01514434814453125,
0.0013666152954101562,
-0.037567138671875,
-0.05047607421875,
-0.057281494140625,
-0.00750732421875,
-0.008575439453125,
0.00820159912109375,
0.06732177734375,
-0.03326416015625,
0.042327880859375,
0.051361083984375,
-0.0572509765625,
0.0028285980224609375,
0.0017299652099609375,
-0.03802490234375,
-0.055206298828125,
-0.0144195556640625,
-0.027435302734375,
-0.0048980712890625,
0.044647216796875,
0.019989013671875,
-0.0180816650390625,
0.038665771484375,
-0.01141357421875,
0.0288543701171875,
-0.0088653564453125,
0.0263214111328125,
0.03448486328125,
-0.0292205810546875,
-0.0024509429931640625,
-0.0182647705078125,
-0.014190673828125,
-0.0382080078125,
-0.048126220703125,
0.00930023193359375,
0.028472900390625,
0.0108795166015625,
0.0264892578125,
0.01146697998046875,
0.034576416015625,
0.016632080078125,
0.0020427703857421875,
-0.0153045654296875,
0.01290130615234375,
-0.0284576416015625,
0.00284576416015625,
0.038238525390625,
0.0131378173828125,
-0.01433563232421875,
-0.0004572868347167969,
-0.0133819580078125,
0.01214599609375,
0.0220489501953125,
-0.0452880859375,
0.0144195556640625,
0.0234832763671875,
-0.0965576171875,
0.0144805908203125,
0.0374755859375,
-0.064697265625,
-0.0516357421875,
0.01715087890625,
-0.03900146484375,
0.050048828125,
-0.005802154541015625,
0.016143798828125,
-0.01509857177734375,
-0.0130615234375,
0.0008883476257324219,
0.00409698486328125,
0.051116943359375,
0.016571044921875,
0.0019207000732421875,
-0.031158447265625,
-0.0484619140625,
-0.0270843505859375,
0.0021686553955078125,
-0.01122283935546875,
-0.010284423828125,
0.0127105712890625,
0.0007791519165039062,
0.0117950439453125,
-0.0151824951171875,
-0.0130462646484375,
0.014892578125,
0.0236358642578125,
0.00882720947265625,
0.0469970703125,
-0.00881195068359375,
0.035491943359375,
-0.005687713623046875,
0.039398193359375,
-0.021728515625,
-0.03289794921875,
-0.037017822265625,
0.01105499267578125,
-0.028961181640625,
-0.0665283203125,
0.01369476318359375,
0.01294708251953125,
-0.001903533935546875,
0.013824462890625,
0.00418853759765625,
0.024627685546875,
0.0251007080078125,
-0.001697540283203125,
0.00836944580078125,
-0.01291656494140625,
-0.043365478515625,
0.004673004150390625,
-0.0106048583984375,
0.041778564453125,
-0.01560211181640625,
0.0003273487091064453,
-0.0295562744140625,
-0.0122833251953125,
0.04876708984375,
-0.0294342041015625,
0.021942138671875,
0.0279998779296875,
0.01544189453125,
-0.00408935546875,
0.043792724609375,
0.01387786865234375,
0.036651611328125,
0.0279693603515625,
0.0275726318359375,
0.0017766952514648438,
0.0120697021484375,
-0.0022068023681640625,
-0.019195556640625,
0.0225067138671875,
-0.003208160400390625,
0.019805908203125,
0.02056884765625,
-0.00067901611328125,
-0.014404296875,
-0.01052093505859375,
0.0189971923828125,
-0.03515625,
0.020904541015625,
0.00850677490234375,
-0.02288818359375,
-0.051116943359375,
0.020416259765625,
-0.042205810546875,
-0.05291748046875,
0.02215576171875,
-0.0455322265625,
-0.02154541015625,
0.0169219970703125,
-0.0012598037719726562,
-0.0172271728515625,
-0.01238250732421875,
0.030548095703125,
0.007053375244140625,
-0.0180511474609375,
-0.0124359130859375,
0.0022983551025390625,
-0.017364501953125,
-0.0133209228515625,
0.0330810546875,
0.0274658203125,
-0.010009765625,
-0.061981201171875,
0.0330810546875,
0.036163330078125,
-0.054595947265625,
-0.0190887451171875,
-0.01003265380859375,
0.0472412109375,
0.055999755859375,
-0.00841522216796875,
-0.02288818359375,
0.033172607421875,
-0.0216064453125,
0.0236663818359375,
0.002986907958984375,
0.01403045654296875,
0.0166015625,
-0.03070068359375,
0.006988525390625,
-0.031768798828125,
-0.0006203651428222656,
0.006946563720703125,
0.051422119140625,
0.033660888671875,
-0.010711669921875,
-0.033233642578125,
0.05145263671875,
0.009765625,
-0.0099029541015625,
-0.007053375244140625,
0.01158905029296875,
-0.0239410400390625,
0.0091400146484375,
-0.00452423095703125,
0.02069091796875,
0.01336669921875,
0.002132415771484375,
-0.050445556640625,
0.0714111328125,
0.036651611328125,
0.0064239501953125,
-0.00262451171875,
0.035919189453125,
-0.0205230712890625,
0.00943756103515625,
-0.0693359375,
0.054229736328125,
-0.0101776123046875,
0.043792724609375,
-0.09356689453125,
-0.015869140625,
-0.01493072509765625,
0.0335693359375,
0.0548095703125,
0.00734710693359375,
0.0029430389404296875,
-0.0142822265625,
0.0260772705078125,
0.048309326171875,
-0.015625,
-0.01025390625,
0.033843994140625,
0.0170745849609375,
0.05792236328125,
-0.0271453857421875,
0.03228759765625,
-0.0223541259765625,
0.01213836669921875,
0.04388427734375,
0.0013380050659179688,
0.0024967193603515625,
-0.0022182464599609375,
0.006053924560546875,
-0.01393890380859375,
-0.00789642333984375,
0.01399993896484375,
-0.0450439453125,
-0.0156402587890625,
0.0787353515625,
0.04364013671875,
-0.056060791015625,
-0.0531005859375,
-0.04046630859375,
0.0421142578125,
-0.007801055908203125,
0.0266571044921875,
0.0233612060546875,
0.0185546875,
0.04351806640625,
0.016082763671875,
0.0157318115234375,
0.0265655517578125,
-0.0124359130859375,
0.07342529296875,
-0.001346588134765625,
-0.010467529296875,
-0.044158935546875,
0.051910400390625,
0.036041259765625,
0.06201171875,
-0.063232421875,
-0.0572509765625,
0.0021800994873046875,
0.02899169921875,
0.03997802734375,
0.0244140625,
0.058441162109375,
0.04150390625,
0.093017578125,
-0.03900146484375,
-0.0335693359375,
0.003864288330078125,
0.025421142578125,
-0.009490966796875,
-0.0209503173828125,
0.021240234375,
-0.034912109375,
-0.0504150390625,
0.0206298828125,
0.00823974609375,
0.0411376953125,
0.0237884521484375,
0.046844482421875,
0.01186370849609375,
-0.0214996337890625,
-0.01406097412109375,
0.0186767578125,
0.0160675048828125,
0.017364501953125,
-0.0089263916015625,
-0.00807952880859375,
0.017486572265625,
0.024810791015625,
0.0075225830078125,
-0.0014057159423828125,
0.04351806640625,
0.0760498046875,
-0.0055389404296875,
-0.0208282470703125,
0.053955078125,
-0.0004940032958984375,
-0.022430419921875,
-0.03662109375,
0.05224609375,
0.028350830078125,
0.030120849609375,
0.00823211669921875,
0.047637939453125,
0.036163330078125,
-0.0211334228515625,
0.0205230712890625,
0.006069183349609375,
-0.02545166015625,
0.0102386474609375,
-0.0164794921875,
0.04107666015625,
0.012725830078125,
-0.0924072265625,
-0.034027099609375,
-0.01617431640625,
-0.034088134765625,
0.0430908203125,
0.04736328125,
-0.019073486328125,
0.00783538818359375,
-0.0076904296875,
-0.045654296875,
0.04443359375,
0.020843505859375,
0.0196990966796875,
0.0721435546875,
-0.007595062255859375,
0.00336456298828125,
-0.046600341796875,
-0.0145263671875,
0.024139404296875,
0.005512237548828125,
0.003101348876953125,
0.01360321044921875,
0.038543701171875,
-0.0010852813720703125,
0.00445556640625,
0.041595458984375,
-0.047454833984375,
-0.024566650390625,
0.0521240234375,
-0.0123138427734375,
0.0113525390625,
-0.0101470947265625,
-0.00591278076171875,
0.0013322830200195312,
0.047698974609375,
-0.01107025146484375,
-0.00685882568359375,
-0.0299835205078125,
0.031646728515625,
0.006793975830078125,
0.062469482421875,
0.0007410049438476562,
-0.0180816650390625,
-0.03216552734375,
-0.0270538330078125,
0.0457763671875,
0.07861328125,
0.033721923828125,
0.015960693359375,
0.004215240478515625,
0.0266571044921875,
-0.0199432373046875,
0.038116455078125,
-0.0256195068359375,
0.039764404296875,
-0.0572509765625,
0.04327392578125,
0.041259765625,
-0.00811767578125,
0.04327392578125,
0.0245513916015625,
-0.019622802734375,
0.05572509765625,
0.004734039306640625,
-0.001697540283203125,
0.07470703125,
0.059906005859375,
0.005275726318359375,
0.044952392578125,
0.03375244140625,
-0.0255126953125,
-0.0033817291259765625,
0.007114410400390625,
-0.02374267578125,
-0.029754638671875,
-0.00836181640625,
-0.01155853271484375,
-0.01922607421875,
-0.0428466796875,
-0.025726318359375,
-0.00931549072265625,
0.006687164306640625,
-0.01213836669921875,
-0.0232086181640625,
0.0213470458984375,
-0.01291656494140625,
0.032470703125,
-0.0287628173828125,
0.0181121826171875,
-0.005252838134765625,
0.00759124755859375,
-0.059356689453125,
0.014617919921875,
-0.0276641845703125,
-0.01396942138671875,
-0.0169525146484375,
0.035064697265625,
0.0202178955078125,
-0.049957275390625,
-0.01393890380859375,
0.025909423828125,
0.051910400390625,
0.0654296875,
0.05035400390625,
0.031158447265625,
0.01001739501953125,
0.04840087890625,
-0.07012939453125,
-0.0625,
0.0322265625,
0.0097503662109375,
-0.015838623046875,
-0.0201416015625,
0.022247314453125,
0.04473876953125,
-0.041046142578125,
-0.08197021484375,
0.05303955078125,
-0.0250091552734375,
-0.0416259765625,
-0.0205841064453125,
0.017730712890625,
0.0091552734375,
0.016448974609375,
-0.014373779296875,
0.01360321044921875,
-0.022979736328125,
-0.01506805419921875,
0.0307159423828125,
0.0122222900390625,
0.056304931640625,
-0.0198822021484375,
-0.09747314453125,
-0.030487060546875,
-0.05242919921875,
0.058990478515625,
0.003330230712890625,
0.01033782958984375,
0.00005811452865600586,
0.041778564453125,
-0.048065185546875,
-0.03594970703125,
-0.032745361328125,
0.0218505859375,
0.0152130126953125,
-0.061126708984375,
-0.054931640625,
-0.04473876953125,
0.03778076171875,
0.0226287841796875,
0.01349639892578125,
-0.005413055419921875,
0.003139495849609375,
0.0084381103515625,
-0.0248870849609375,
-0.0010786056518554688,
-0.0010194778442382812,
-0.0290374755859375,
0.002593994140625,
-0.0285186767578125,
-0.030792236328125,
-0.0022640228271484375,
0.004375457763671875,
-0.050445556640625,
0.00830078125,
-0.037689208984375,
-0.02081298828125,
-0.045257568359375,
-0.0099639892578125,
-0.020538330078125,
-0.01265716552734375,
-0.038818359375,
0.01366424560546875,
-0.0005822181701660156,
-0.0423583984375,
0.050079345703125,
-0.0160064697265625,
-0.0022525787353515625,
-0.0217742919921875,
0.0086517333984375,
-0.01097869873046875,
0.0177459716796875,
-0.01538848876953125,
0.0025615692138671875,
0.01309967041015625,
-0.0236663818359375,
-0.0300140380859375,
-0.037872314453125,
0.0310211181640625,
0.0022563934326171875,
-0.0286865234375,
0.0288238525390625,
0.006801605224609375,
0.03546142578125,
0.0080718994140625,
0.043121337890625,
0.0157012939453125,
-0.034088134765625,
0.0185699462890625,
-0.03497314453125,
-0.0093994140625,
0.0033416748046875,
-0.0017375946044921875,
-0.053619384765625,
0.020660400390625,
0.03271484375,
0.01922607421875,
0.021881103515625
] |
a1bd34a4c1e882b2df7f9432381bcb3875f2a632 | Wordpress Stackexchange
Q: How to edit the slug/permalink in Gutenberg? After updating to WordPress 5 and creating a new post, I can add a title, but how do I edit the slug or permalink?
A: To view and edit the slug, you need to be in the Code Editor view.
*
*Click on the Show more tools button on the upper right corner of the toolbar and click on Code Editor
*
*Click on the title and the slug/permalink will appear above.
In either Visual or Code Editor, clicking on the title also shows the permalink on the sidebar.
| Q: How to edit the slug/permalink in Gutenberg? After updating to WordPress 5 and creating a new post, I can add a title, but how do I edit the slug or permalink?
A: To view and edit the slug, you need to be in the Code Editor view.
*
*Click on the Show more tools button on the upper right corner of the toolbar and click on Code Editor
*
*Click on the title and the slug/permalink will appear above.
In either Visual or Code Editor, clicking on the title also shows the permalink on the sidebar.
| wordpress | {
"language": "en",
"length": 97,
"provenance": "stackexchange_00019.jsonl.gz:491689",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/324584"
} | [
0.046630859375,
-0.0183868408203125,
0.028228759765625,
0.00882720947265625,
-0.02593994140625,
-0.0201873779296875,
0.03692626953125,
-0.05023193359375,
0.0016317367553710938,
0.0129852294921875,
-0.01117706298828125,
-0.007236480712890625,
0.01172637939453125,
-0.038604736328125,
0.023956298828125,
0.003444671630859375,
0.0262603759765625,
-0.0185089111328125,
0.020782470703125,
-0.01528167724609375,
-0.0021190643310546875,
0.00855255126953125,
0.0161895751953125,
0.04010009765625,
0.00919342041015625,
-0.006412506103515625,
0.06622314453125,
-0.0545654296875,
0.00830841064453125,
-0.05218505859375,
0.0124359130859375,
0.0239715576171875,
0.0242462158203125,
-0.036895751953125,
0.049835205078125,
0.0258941650390625,
0.041534423828125,
-0.02606201171875,
0.0299835205078125,
-0.0175018310546875,
0.02813720703125,
-0.00899505615234375,
-0.027984619140625,
0.037384033203125,
-0.0246429443359375,
-0.0034580230712890625,
-0.003749847412109375,
-0.0574951171875,
0.0142364501953125,
-0.022064208984375,
-0.010467529296875,
0.026123046875,
0.00513458251953125,
0.0109710693359375,
-0.015899658203125,
-0.01102447509765625,
-0.0155792236328125,
0.0250091552734375,
0.0187530517578125,
-0.018157958984375,
-0.0157928466796875,
0.0268402099609375,
0.0177764892578125,
0.0083770751953125,
0.011688232421875,
-0.004718780517578125,
0.0025806427001953125,
0.0204925537109375,
-0.0109405517578125,
0.035614013671875,
0.01374053955078125,
-0.0185089111328125,
0.020599365234375,
-0.06915283203125,
0.00029778480529785156,
0.014129638671875,
-0.018798828125,
-0.0357666015625,
0.01617431640625,
-0.0232086181640625,
0.0390625,
-0.040771484375,
0.0280609130859375,
-0.018310546875,
0.040313720703125,
0.007381439208984375,
0.00928497314453125,
-0.0254974365234375,
-0.0228118896484375,
-0.0030765533447265625,
-0.0199432373046875,
0.01036834716796875,
-0.0361328125,
0.0231781005859375,
-0.00022780895233154297,
-0.0243072509765625,
0.0011081695556640625,
-0.0140228271484375,
0.0106658935546875,
0.0036449432373046875,
0.042449951171875,
-0.06268310546875,
0.038787841796875,
-0.0243072509765625,
-0.01617431640625,
-0.0028171539306640625,
0.00830841064453125,
0.054351806640625,
0.0274810791015625,
0.025848388671875,
-0.007755279541015625,
0.00870513916015625,
-0.006153106689453125,
-0.024200439453125,
-0.00739288330078125,
0.031768798828125,
-0.0203399658203125,
0.0265350341796875,
-0.00357818603515625,
0.031768798828125,
-0.035308837890625,
-0.00272369384765625,
0.0311431884765625,
-0.02227783203125,
0.003131866455078125,
0.0002219676971435547,
-0.005954742431640625,
-0.02899169921875,
0.010406494140625,
0.0019254684448242188,
-0.0255584716796875,
0.007114410400390625,
0.05535888671875,
0.076171875,
0.031494140625,
-0.00925445556640625,
-0.012542724609375,
-0.0081939697265625,
-0.0190277099609375,
0.0014219284057617188,
-0.04168701171875,
0.0208282470703125,
0.050384521484375,
-0.05328369140625,
0.039031982421875,
0.005889892578125,
0.016326904296875,
0.0240478515625,
0.01311492919921875,
0.00905609130859375,
-0.004009246826171875,
-0.0075225830078125,
0.0068817138671875,
0.022064208984375,
-0.01499176025390625,
-0.004566192626953125,
0.00209808349609375,
-0.00800323486328125,
0.01523590087890625,
-0.017791748046875,
0.01763916015625,
-0.01483154296875,
0.03375244140625,
-0.017120361328125,
-0.045928955078125,
0.04144287109375,
-0.070068359375,
-0.0108489990234375,
0.0231475830078125,
0.005657196044921875,
0.0263671875,
-0.008544921875,
-0.037384033203125,
-0.0274810791015625,
-0.0166473388671875,
-0.03680419921875,
-0.0333251953125,
0.01497650146484375,
-0.0034542083740234375,
0.05133056640625,
0.04962158203125,
-0.00978851318359375,
-0.01113128662109375,
0.036529541015625,
-0.04754638671875,
-0.0243682861328125,
0.018829345703125,
0.05230712890625,
0.033172607421875,
0.0232391357421875,
-0.00080108642578125,
-0.0230712890625,
-0.084716796875,
0.036468505859375,
-0.02203369140625,
-0.005390167236328125,
0.0052032470703125,
0.013824462890625,
-0.012542724609375,
-0.0007848739624023438,
-0.0294189453125,
0.01715087890625,
-0.00615692138671875,
0.0306549072265625,
-0.036895751953125,
0.0177459716796875,
-0.016937255859375,
0.032623291015625,
0.059600830078125,
0.0097808837890625,
-0.0189208984375,
-0.0296173095703125,
0.01200103759765625,
-0.045989990234375,
-0.0721435546875,
0.022216796875,
-0.006378173828125,
-0.007537841796875,
-0.026031494140625,
-0.012908935546875,
-0.00260162353515625,
-0.024017333984375,
-0.0300445556640625,
0.038909912109375,
0.05975341796875,
-0.05780029296875,
0.0169677734375,
-0.056671142578125,
0.00833892822265625,
0.00446319580078125,
-0.0992431640625,
0.03277587890625,
0.0254364013671875,
0.020355224609375,
-0.0178680419921875,
0.0152435302734375,
0.0168304443359375,
-0.00982666015625,
-0.00777435302734375,
0.0259857177734375,
0.0362548828125,
0.01898193359375,
0.0025501251220703125,
-0.03948974609375,
0.0400390625,
-0.001537322998046875,
0.0382080078125,
-0.0516357421875,
0.021820068359375,
0.031005859375,
-0.01861572265625,
0.00817108154296875,
0.034912109375,
-0.0073394775390625,
0.02783203125,
0.032501220703125,
-0.006793975830078125,
-0.004215240478515625,
-0.02410888671875,
0.00868988037109375,
0.0008993148803710938,
-0.02923583984375,
-0.02301025390625,
-0.0207672119140625,
0.018524169921875,
0.047698974609375,
0.05047607421875,
0.05419921875,
-0.0230712890625,
0.0231475830078125,
-0.0036220550537109375,
0.0234832763671875,
-0.005268096923828125,
0.0254669189453125,
0.04376220703125,
0.006938934326171875,
-0.036895751953125,
-0.005657196044921875,
0.0035343170166015625,
0.0135345458984375,
-0.038482666015625,
-0.01267242431640625,
0.0202484130859375,
-0.0133056640625,
-0.0022830963134765625,
-0.059112548828125,
0.02020263671875,
-0.045806884765625,
0.02032470703125,
-0.00695037841796875,
0.025970458984375,
-0.0139007568359375,
-0.031158447265625,
0.0199737548828125,
0.0126800537109375,
-0.04541015625,
0.0821533203125,
-0.0167999267578125,
0.02020263671875,
-0.01983642578125,
0.07659912109375,
0.04901123046875,
-0.035125732421875,
0.022003173828125,
0.005828857421875,
-0.052398681640625,
-0.047515869140625,
0.021240234375,
-0.0195159912109375,
-0.01058197021484375,
-0.061126708984375,
0.05096435546875,
0.00728607177734375,
-0.025177001953125,
-0.00550079345703125,
-0.03839111328125,
-0.0165557861328125,
-0.0115509033203125,
-0.0872802734375,
-0.049591064453125,
-0.043548583984375,
-0.0557861328125,
-0.0198211669921875,
0.025482177734375,
-0.0245208740234375,
0.005954742431640625,
0.0447998046875,
0.01081085205078125,
0.0030689239501953125,
-0.0169525146484375,
-0.036468505859375,
-0.0259857177734375,
-0.05902099609375,
-0.004261016845703125,
-0.0039825439453125,
0.00972747802734375,
-0.0060272216796875,
-0.0223236083984375,
-0.0277557373046875,
-0.01515960693359375,
-0.0038051605224609375,
-0.0096588134765625,
0.002109527587890625,
-0.035888671875,
0.003231048583984375,
-0.039947509765625,
0.0280303955078125,
0.004070281982421875,
0.05450439453125,
0.032745361328125,
-0.0281219482421875,
0.006504058837890625,
-0.0164642333984375,
-0.036346435546875,
0.0179290771484375,
0.0036945343017578125,
-0.00664520263671875,
-0.017913818359375,
0.0230560302734375,
-0.040496826171875,
-0.002490997314453125,
-0.014404296875,
-0.02020263671875,
0.0150604248046875,
-0.00978851318359375,
0.00795745849609375,
0.0011138916015625,
0.018218994140625,
0.048004150390625,
0.0433349609375,
0.043212890625,
-0.00014853477478027344,
-0.0110015869140625,
-0.0163116455078125,
-0.0015544891357421875,
-0.068115234375,
0.02838134765625,
-0.01207733154296875,
0.02752685546875,
0.01055145263671875,
0.03131103515625,
0.0011501312255859375,
0.03887939453125,
-0.0386962890625,
-0.0228118896484375,
0.0394287109375,
-0.061309814453125,
-0.001132965087890625,
-0.035064697265625,
-0.0164794921875,
-0.0098876953125,
0.05218505859375,
-0.00734710693359375,
-0.016448974609375,
0.02191162109375,
-0.01708984375,
0.0243072509765625,
0.06378173828125,
-0.057159423828125,
-0.0204620361328125,
-0.05560302734375,
0.024658203125,
0.011322021484375,
-0.0245361328125,
-0.01261138916015625,
0.05755615234375,
-0.026947021484375,
-0.017974853515625,
0.041961669921875,
-0.01239013671875,
-0.0203094482421875,
0.052642822265625,
-0.03887939453125,
0.0229644775390625,
-0.0665283203125,
0.0019702911376953125,
-0.08355712890625,
-0.01401519775390625,
0.0024547576904296875,
0.07000732421875,
-0.014129638671875,
0.002376556396484375,
-0.025634765625,
0.05914306640625,
-0.01067352294921875,
0.01287841796875,
0.0169830322265625,
0.00861358642578125,
0.0040283203125,
0.00684356689453125,
0.00438690185546875,
-0.01027679443359375,
0.006320953369140625,
-0.036224365234375,
-0.0718994140625,
0.005001068115234375,
-0.0200653076171875,
0.04559326171875,
0.0016613006591796875,
-0.0205230712890625,
-0.06549072265625,
-0.02960205078125,
-0.0208282470703125,
-0.0071563720703125,
-0.0268707275390625,
0.00927734375,
-0.0128173828125,
-0.08526611328125,
0.06707763671875,
-0.00952911376953125,
0.0172271728515625,
-0.006572723388671875,
0.10565185546875,
0.0004677772521972656,
-0.0153961181640625,
-0.0294647216796875,
-0.01235198974609375,
0.0187225341796875,
0.00926971435546875,
0.063232421875,
0.0267333984375,
0.009490966796875,
0.0239410400390625,
-0.01239013671875,
-0.023284912109375,
-0.026031494140625,
0.0210418701171875,
-0.0192108154296875,
-0.02471923828125,
0.01064300537109375,
-0.0482177734375,
0.08489990234375,
-0.01009368896484375,
-0.03173828125,
0.0177764892578125,
-0.04718017578125,
0.015350341796875,
0.00615692138671875,
0.044097900390625,
-0.0228424072265625,
-0.030731201171875,
0.0163726806640625,
-0.011566162109375,
0.052001953125,
0.023162841796875,
-0.0131378173828125,
0.035797119140625,
0.0182037353515625,
-0.007083892822265625,
-0.04193115234375,
-0.051849365234375,
-0.0205078125,
0.015777587890625,
-0.041839599609375,
-0.004772186279296875,
0.0005774497985839844,
-0.0116729736328125,
0.06011962890625,
0.0245513916015625,
-0.005069732666015625,
-0.006229400634765625,
-0.017242431640625,
0.0130615234375,
-0.0125274658203125,
0.048370361328125,
0.034393310546875,
0.0171051025390625,
-0.019073486328125,
-0.03509521484375,
0.013824462890625,
0.013092041015625,
-0.046417236328125,
0.007213592529296875,
-0.00461578369140625,
-0.017730712890625,
0.00279998779296875,
0.035125732421875,
0.015960693359375,
0.004669189453125,
-0.01324462890625,
-0.016571044921875,
-0.008453369140625,
-0.0030517578125,
0.03668212890625,
-0.0198974609375,
0.006748199462890625,
-0.0279388427734375,
0.0282745361328125,
-0.0183258056640625,
-0.0316162109375,
0.01372528076171875,
0.018280029296875,
-0.01611328125,
0.0103759765625,
0.01291656494140625,
0.0026035308837890625,
-0.00943756103515625,
0.02227783203125,
-0.023681640625,
-0.043426513671875,
-0.01395416259765625,
0.0297698974609375,
0.0291748046875,
-0.01358795166015625,
0.0161895751953125,
-0.01220703125,
0.01763916015625,
0.0244598388671875,
-0.0074920654296875,
-0.0027618408203125,
-0.01143646240234375,
-0.0238800048828125,
0.058563232421875,
0.005657196044921875,
-0.016998291015625,
-0.022705078125,
-0.0143280029296875,
-0.035369873046875,
0.002208709716796875,
0.09259033203125,
-0.0009136199951171875,
0.016754150390625,
-0.00966644287109375,
-0.010589599609375,
0.0229644775390625,
0.00446319580078125,
0.029754638671875,
-0.00641632080078125,
-0.045257568359375,
-0.00887298583984375,
-0.0445556640625,
-0.005779266357421875,
-0.0244140625,
-0.0164642333984375,
-0.019561767578125,
0.0008077621459960938,
-0.006927490234375,
0.01544189453125,
-0.01546478271484375,
0.0025043487548828125,
0.00978851318359375,
0.032257080078125,
0.0035419464111328125,
0.073974609375,
-0.0079803466796875,
0.044189453125,
-0.00588226318359375,
0.023284912109375,
0.00933837890625,
0.01395416259765625,
-0.006816864013671875,
-0.03399658203125,
-0.01129150390625,
-0.018585205078125,
-0.0296630859375,
0.018402099609375,
-0.012237548828125,
0.0406494140625,
0.07147216796875,
-0.0011320114135742188,
0.0093994140625,
-0.020050048828125,
0.01399993896484375,
-0.0186004638671875,
0.0015087127685546875,
-0.07086181640625,
-0.052093505859375,
0.033660888671875,
0.0021686553955078125,
0.051910400390625,
-0.0173187255859375,
-0.022064208984375,
0.0230560302734375,
-0.0257568359375,
0.017547607421875,
0.011474609375,
-0.023529052734375,
0.021514892578125,
0.0477294921875,
-0.0011663436889648438,
0.0149383544921875,
0.04278564453125,
0.00017750263214111328,
-0.01007843017578125,
-0.04736328125,
0.00435638427734375,
0.055908203125,
0.0208587646484375,
-0.01355743408203125,
0.0269927978515625,
0.0182647705078125,
0.0103607177734375,
-0.0238800048828125,
0.05706787109375,
0.035980224609375,
-0.05322265625,
-0.0197296142578125,
0.00968170166015625,
0.004276275634765625,
-0.01031494140625,
0.0265350341796875,
-0.0001226663589477539,
-0.005313873291015625,
0.0247039794921875,
-0.06829833984375,
-0.00502777099609375,
0.00812530517578125,
-0.0203399658203125,
-0.023345947265625,
-0.0002999305725097656,
0.061981201171875,
0.032012939453125,
-0.0283050537109375,
0.00983428955078125,
0.00943756103515625,
0.00988006591796875,
-0.01190948486328125,
-0.006465911865234375,
0.027587890625,
-0.0310211181640625,
-0.0212860107421875,
0.0494384765625,
-0.0125274658203125,
0.01526641845703125,
0.07269287109375,
0.0418701171875,
-0.003570556640625,
0.041748046875,
-0.00275421142578125,
0.0287628173828125,
0.00344085693359375,
-0.01514434814453125,
0.02178955078125,
-0.015228271484375,
-0.0266876220703125,
0.03692626953125,
-0.00041103363037109375,
0.006412506103515625,
0.00263214111328125,
0.01323699951171875,
0.00238037109375,
0.0161285400390625,
0.068359375,
-0.025604248046875,
-0.03302001953125,
0.0294952392578125,
-0.0122833251953125,
-0.00693511962890625,
-0.0008635520935058594,
0.021240234375,
-0.033172607421875,
0.00460052490234375,
0.00377655029296875,
-0.00652313232421875,
-0.0345458984375,
0.0010633468627929688,
-0.0843505859375,
0.1529541015625,
0.01071929931640625,
0.055145263671875,
-0.0036258697509765625,
0.06170654296875,
-0.03643798828125,
0.0251617431640625,
-0.0279541015625,
0.080810546875,
-0.0107879638671875,
0.0418701171875,
-0.06683349609375,
-0.013671875,
0.0283203125,
0.034454345703125,
0.0933837890625,
0.0136871337890625,
-0.059722900390625,
-0.0233612060546875,
0.06500244140625,
0.0244903564453125,
-0.00830841064453125,
0.0572509765625,
-0.01326751708984375,
0.02337646484375,
0.0301513671875,
-0.01171112060546875,
0.031768798828125,
-0.0024852752685546875,
-0.053314208984375,
0.016082763671875,
0.0142059326171875,
0.0266265869140625,
0.052978515625,
-0.0289306640625,
0.016265869140625,
0.0157623291015625,
0.01369476318359375,
-0.01287841796875,
-0.037872314453125,
0.0239410400390625,
-0.004566192626953125,
-0.046875,
-0.0279693603515625,
-0.03143310546875,
0.034271240234375,
0.01357269287109375,
-0.00807952880859375,
-0.005916595458984375,
0.0055999755859375,
-0.0256500244140625,
-0.0152740478515625,
-0.00466156005859375,
0.032379150390625,
-0.0283355712890625,
0.051513671875,
0.019439697265625,
0.0164642333984375,
-0.026214599609375,
0.029998779296875,
0.0634765625,
0.07318115234375,
-0.054779052734375,
-0.0000032186508178710938,
0.0106964111328125,
0.0009822845458984375,
-0.01372528076171875,
-0.042236328125,
-0.01253509521484375,
-0.01387786865234375,
-0.0020389556884765625,
-0.01776123046875,
-0.0223388671875,
0.013397216796875,
0.04925537109375,
-0.007740020751953125,
-0.0308837890625,
-0.002017974853515625,
-0.033111572265625,
-0.0369873046875,
0.031097412109375,
-0.013671875,
0.04351806640625,
0.012451171875,
0.051849365234375,
-0.025909423828125,
-0.008056640625,
-0.0506591796875,
0.0188751220703125,
-0.0291748046875,
0.059906005859375,
-0.07501220703125,
-0.0218658447265625,
0.02191162109375,
0.058197021484375,
0.041412353515625,
0.00934600830078125,
0.0345458984375,
-0.01306915283203125,
-0.02520751953125,
0.0006518363952636719,
-0.0173492431640625,
-0.02972412109375,
0.0628662109375,
-0.0251922607421875,
0.063232421875,
0.004436492919921875,
-0.00594329833984375,
-0.06793212890625,
0.041656494140625,
0.043426513671875,
-0.0439453125,
0.044586181640625,
-0.009735107421875,
-0.01081085205078125,
0.03875732421875,
-0.0105438232421875,
0.03515625,
-0.00811004638671875,
-0.0133514404296875,
0.0014505386352539062,
0.0109405517578125,
-0.06768798828125,
0.0137481689453125,
0.049468994140625,
0.0105438232421875,
-0.04290771484375,
-0.01438140869140625,
0.00754547119140625,
0.0137176513671875,
-0.0244293212890625,
0.0177001953125,
0.046875,
0.0126495361328125,
0.01983642578125,
-0.071044921875,
-0.034332275390625,
-0.0035114288330078125,
0.029693603515625,
-0.01351165771484375,
0.107177734375,
-0.024078369140625,
-0.01263427734375,
-0.034332275390625,
0.005401611328125,
-0.00827789306640625,
-0.0218048095703125,
0.0186614990234375,
0.031951904296875,
0.01457977294921875,
-0.01207733154296875,
-0.047760009765625,
0.01006317138671875,
0.0138702392578125,
-0.005184173583984375,
0.0229949951171875,
-0.047698974609375,
0.01528167724609375,
-0.00276947021484375,
0.0379638671875,
-0.01543426513671875,
-0.03533935546875,
-0.045257568359375,
0.006229400634765625,
0.0277252197265625,
0.027069091796875,
-0.0279083251953125,
0.021240234375,
-0.0104217529296875,
-0.0167388916015625,
-0.0022907257080078125,
-0.0142669677734375,
0.00914764404296875,
0.037261962890625,
-0.031402587890625,
0.037628173828125,
-0.00801849365234375,
-0.01483917236328125,
0.0244598388671875,
0.0169677734375,
-0.04718017578125,
0.024078369140625,
-0.0264129638671875,
0.0209503173828125,
-0.0396728515625,
-0.0193939208984375,
-0.048858642578125,
-0.0161895751953125,
-0.0003795623779296875,
0.0084075927734375,
0.0001093745231628418,
0.021575927734375,
-0.0214691162109375,
-0.050750732421875,
-0.0009474754333496094,
0.0119476318359375,
-0.034393310546875,
-0.0212860107421875,
-0.051849365234375,
0.00902557373046875,
0.022613525390625,
-0.0061798095703125,
-0.0241241455078125,
0.0308990478515625,
-0.0218963623046875,
0.0259857177734375,
-0.01407623291015625,
-0.0303802490234375,
0.013641357421875,
0.037017822265625,
-0.0265045166015625,
-0.01062774658203125,
-0.0251922607421875,
-0.00433349609375,
-0.025909423828125,
0.016845703125,
0.0364990234375,
-0.040740966796875,
-0.01485443115234375,
-0.0252685546875,
0.03717041015625,
0.0305938720703125,
0.039154052734375,
-0.004337310791015625,
0.04296875,
0.0200958251953125,
-0.025665283203125,
-0.0870361328125,
-0.0172119140625,
-0.01091766357421875,
0.032806396484375,
-0.002532958984375,
-0.0303192138671875,
-0.0175933837890625,
-0.06304931640625,
-0.0765380859375,
0.01238250732421875,
0.0015125274658203125,
-0.04449462890625,
-0.018707275390625,
0.01497650146484375,
-0.0023975372314453125,
0.03253173828125,
-0.00418853759765625,
-0.0004756450653076172,
-0.022125244140625,
0.00530242919921875,
-0.01203155517578125,
0.062744140625,
-0.014404296875,
0.017791748046875,
0.0374755859375,
0.047393798828125,
0.0382080078125,
-0.02447509765625,
0.03790283203125,
-0.0282440185546875,
0.0254364013671875,
0.0289306640625,
-0.064208984375,
-0.036376953125,
-0.0338134765625,
-0.0019130706787109375,
-0.0100860595703125,
-0.038818359375,
-0.053863525390625,
-0.030059814453125,
0.124267578125,
0.028167724609375,
0.026824951171875,
-0.018585205078125,
-0.002300262451171875,
-0.03680419921875,
-0.068115234375,
0.00862884521484375,
0.037841796875,
-0.046966552734375,
0.028533935546875,
0.029693603515625,
0.001758575439453125,
0.0095367431640625,
-0.0023708343505859375,
-0.004558563232421875,
-0.006877899169921875,
-0.0228118896484375,
-0.027313232421875,
-0.03436279296875,
-0.0134124755859375,
0.07403564453125,
-0.03515625,
0.0038013458251953125,
0.0074005126953125,
0.008544921875,
0.031005859375,
-0.0130615234375,
-0.0019273757934570312,
-0.053619384765625,
0.0085601806640625,
0.0228271484375,
0.0036220550537109375,
0.05126953125,
-0.0071868896484375,
-0.048370361328125,
-0.037261962890625,
-0.00495147705078125,
0.017333984375,
-0.022979736328125,
-0.01702880859375,
0.0203704833984375,
-0.0008020401000976562,
0.07879638671875,
-0.024200439453125,
0.04449462890625,
0.0012884140014648438,
0.021331787109375,
-0.0205841064453125,
0.0173187255859375,
0.013092041015625,
-0.0272674560546875,
0.006000518798828125,
-0.01345062255859375,
-0.0015201568603515625,
-0.039459228515625,
-0.0025959014892578125,
-0.0328369140625,
-0.005397796630859375,
0.020050048828125
] |
8db85342bfbd753164abea0fa5cf71a46ffeb421 | Wordpress Stackexchange
Q: Influence of WordPress functions on site speed We know, that wordpress has custom functions that create in wp-includes and etc... and its system has more includes and functions(without calling)...
My question is: Is abound of wordpress functions and includes, reducing site speed or no?
A: Functions and includes (itself) don't affect the site performance much. But...
The code inside a function can affect site speed. It all depends what exactly that function does.
For example function esc_attr won't affect site speed, because its code is simple and will run fast.
On the other hand, functions like get_posts can take a lot of time to execute, because it has to parse your arguments, query the DB, obtain results and create objects for every row. So if you query for a lot of posts, it can consume a lot of time.
Another example of time-consuming function will be wp_remote_get. It retrieve the raw response from the HTTP request using the GET method. So you'll have to wait for the requested server to generate answer and so on.
Also, some functions run filters/actions inside. So themes/plugins may affect speed of their execution.
| Q: Influence of WordPress functions on site speed We know, that wordpress has custom functions that create in wp-includes and etc... and its system has more includes and functions(without calling)...
My question is: Is abound of wordpress functions and includes, reducing site speed or no?
A: Functions and includes (itself) don't affect the site performance much. But...
The code inside a function can affect site speed. It all depends what exactly that function does.
For example function esc_attr won't affect site speed, because its code is simple and will run fast.
On the other hand, functions like get_posts can take a lot of time to execute, because it has to parse your arguments, query the DB, obtain results and create objects for every row. So if you query for a lot of posts, it can consume a lot of time.
Another example of time-consuming function will be wp_remote_get. It retrieve the raw response from the HTTP request using the GET method. So you'll have to wait for the requested server to generate answer and so on.
Also, some functions run filters/actions inside. So themes/plugins may affect speed of their execution.
A: It depends on the use of functions usually the functions which are called in the frontend may effect site speed but the functions effecting in backend will not. However in most of the case the functions which are used to call another 3rd party URL may effect performace of the website
| wordpress | {
"language": "en",
"length": 242,
"provenance": "stackexchange_00019.jsonl.gz:491707",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/324640"
} | [
0.0673828125,
0.0093994140625,
-0.004650115966796875,
-0.01551055908203125,
0.0195159912109375,
-0.034027099609375,
0.05377197265625,
-0.0284271240234375,
-0.03204345703125,
0.0169830322265625,
-0.004856109619140625,
0.0020351409912109375,
-0.00011277198791503906,
-0.037689208984375,
0.0112457275390625,
-0.03753662109375,
0.057098388671875,
0.0200347900390625,
0.05731201171875,
-0.0011911392211914062,
0.0193023681640625,
0.045013427734375,
0.006130218505859375,
0.11358642578125,
0.027923583984375,
-0.055816650390625,
0.046539306640625,
-0.02239990234375,
0.0210418701171875,
-0.01727294921875,
0.0162353515625,
0.00675201416015625,
0.01052093505859375,
0.0295562744140625,
-0.031768798828125,
0.0047760009765625,
-0.008331298828125,
0.0123138427734375,
0.01154327392578125,
0.02587890625,
0.017669677734375,
-0.0071258544921875,
0.00362396240234375,
0.0207672119140625,
-0.012908935546875,
-0.043243408203125,
0.01580810546875,
-0.059173583984375,
0.0157318115234375,
-0.03533935546875,
0.0140533447265625,
0.004512786865234375,
0.04132080078125,
-0.0219268798828125,
-0.02166748046875,
-0.01171112060546875,
0.005279541015625,
0.08270263671875,
0.0267333984375,
-0.07574462890625,
-0.07012939453125,
0.03125,
0.03369140625,
0.0295257568359375,
-0.01383209228515625,
0.005218505859375,
0.0174407958984375,
0.006183624267578125,
-0.027099609375,
-0.0221099853515625,
0.034698486328125,
-0.0167694091796875,
-0.0081329345703125,
0.0325927734375,
0.00551605224609375,
-0.06146240234375,
0.0213623046875,
-0.0228424072265625,
0.0132293701171875,
0.048187255859375,
-0.0227203369140625,
-0.01226806640625,
-0.025421142578125,
-0.045501708984375,
0.02862548828125,
-0.01114654541015625,
-0.01232147216796875,
0.001983642578125,
-0.034759521484375,
-0.0498046875,
-0.022369384765625,
-0.0246734619140625,
-0.061553955078125,
-0.000050067901611328125,
-0.02252197265625,
-0.0183868408203125,
0.002838134765625,
-0.01119232177734375,
0.015899658203125,
0.031005859375,
0.033660888671875,
-0.03717041015625,
0.05450439453125,
-0.01166534423828125,
0.0009255409240722656,
0.05072021484375,
0.008453369140625,
0.0199127197265625,
0.0292510986328125,
0.023040771484375,
0.0101470947265625,
0.0218658447265625,
-0.001796722412109375,
-0.00910186767578125,
-0.04400634765625,
0.0024738311767578125,
-0.025482177734375,
-0.01507568359375,
-0.00690460205078125,
-0.00351715087890625,
-0.0120849609375,
0.00830841064453125,
0.035980224609375,
-0.0228118896484375,
0.030731201171875,
0.0164794921875,
-0.032257080078125,
-0.0287322998046875,
-0.02008056640625,
0.04302978515625,
-0.0292510986328125,
0.0030612945556640625,
0.03631591796875,
0.0140380859375,
-0.00958251953125,
-0.032745361328125,
0.0090789794921875,
-0.04046630859375,
-0.0124969482421875,
0.03326416015625,
-0.01364898681640625,
-0.037689208984375,
-0.005123138427734375,
-0.012542724609375,
0.0302581787109375,
0.006900787353515625,
0.00021266937255859375,
0.0197906494140625,
0.01410675048828125,
-0.01953125,
0.02386474609375,
-0.0140533447265625,
0.0362548828125,
-0.04742431640625,
-0.0119476318359375,
-0.0438232421875,
-0.057403564453125,
-0.0125579833984375,
0.0173492431640625,
0.004116058349609375,
0.0263671875,
-0.01837158203125,
-0.0209197998046875,
0.0236053466796875,
-0.0268096923828125,
0.0377197265625,
0.00321197509765625,
-0.01003265380859375,
0.021636962890625,
-0.013580322265625,
0.00897979736328125,
-0.04486083984375,
0.007778167724609375,
0.036773681640625,
0.00812530517578125,
0.055267333984375,
0.0298004150390625,
0.0316162109375,
0.012115478515625,
-0.000030040740966796875,
-0.01160430908203125,
-0.03033447265625,
0.09271240234375,
-0.042205810546875,
-0.06695556640625,
0.0625,
0.0060272216796875,
0.07763671875,
0.018768310546875,
0.019256591796875,
0.01788330078125,
0.0166015625,
0.0003788471221923828,
-0.0166473388671875,
0.0006780624389648438,
-0.030303955078125,
-0.0102386474609375,
-0.00423431396484375,
-0.01137542724609375,
0.0070953369140625,
0.0399169921875,
-0.0037689208984375,
0.00782012939453125,
-0.010009765625,
-0.04327392578125,
-0.0125274658203125,
-0.01386260986328125,
0.0158233642578125,
0.0209808349609375,
0.052703857421875,
-0.0037860870361328125,
0.0173797607421875,
-0.0276336669921875,
0.0131378173828125,
0.0021190643310546875,
-0.00035381317138671875,
0.00769805908203125,
0.03955078125,
-0.0012235641479492188,
0.01218414306640625,
0.00428009033203125,
-0.015472412109375,
0.004100799560546875,
0.03863525390625,
-0.0117950439453125,
0.029541015625,
-0.026214599609375,
0.01309967041015625,
-0.01824951171875,
0.0282440185546875,
0.0134429931640625,
-0.00347900390625,
0.0709228515625,
0.06719970703125,
-0.016937255859375,
0.003894805908203125,
-0.0087432861328125,
-0.054168701171875,
-0.01479339599609375,
0.059539794921875,
0.0352783203125,
0.0213470458984375,
0.00847625732421875,
0.01151275634765625,
0.00949859619140625,
-0.0382080078125,
0.0249481201171875,
-0.0191650390625,
0.048370361328125,
0.03436279296875,
-0.036376953125,
-0.042510986328125,
0.0323486328125,
-0.059844970703125,
0.03680419921875,
0.0311126708984375,
-0.0155029296875,
-0.0011167526245117188,
-0.0016546249389648438,
-0.011993408203125,
0.01360321044921875,
0.0018091201782226562,
-0.024383544921875,
0.00516510009765625,
-0.04510498046875,
0.0201263427734375,
-0.022064208984375,
-0.009185791015625,
-0.0219268798828125,
0.0299072265625,
0.035858154296875,
-0.0184783935546875,
-0.0019359588623046875,
0.00893402099609375,
0.0021457672119140625,
-0.017669677734375,
-0.03985595703125,
0.01519012451171875,
0.0100555419921875,
-0.004558563232421875,
0.00231170654296875,
0.024017333984375,
-0.01678466796875,
-0.00754547119140625,
-0.028717041015625,
-0.01337432861328125,
0.023956298828125,
0.040557861328125,
0.01824951171875,
-0.01058197021484375,
0.01477813720703125,
0.00005418062210083008,
-0.058502197265625,
0.06549072265625,
-0.0016155242919921875,
-0.042205810546875,
0.057159423828125,
-0.03863525390625,
0.0216217041015625,
0.003932952880859375,
0.07269287109375,
0.07012939453125,
0.0157012939453125,
0.003963470458984375,
0.00534820556640625,
0.01708984375,
0.021240234375,
0.00872802734375,
-0.01849365234375,
0.016387939453125,
-0.096435546875,
-0.031585693359375,
0.0187225341796875,
0.03350830078125,
-0.0187530517578125,
-0.03936767578125,
-0.02630615234375,
-0.0051116943359375,
-0.0999755859375,
-0.10040283203125,
-0.06512451171875,
-0.039337158203125,
-0.036041259765625,
-0.0115814208984375,
-0.0106964111328125,
0.033538818359375,
-0.0254364013671875,
0.017333984375,
-0.03448486328125,
-0.006504058837890625,
-0.043548583984375,
-0.05780029296875,
-0.06591796875,
-0.014068603515625,
-0.0118408203125,
0.02325439453125,
-0.004596710205078125,
0.0972900390625,
0.0002968311309814453,
-0.104736328125,
-0.03619384765625,
-0.00897979736328125,
-0.0226898193359375,
0.02374267578125,
0.0191497802734375,
-0.037689208984375,
-0.0245819091796875,
-0.006038665771484375,
0.02001953125,
0.0167388916015625,
-0.00853729248046875,
-0.00455474853515625,
-0.01497650146484375,
-0.00974273681640625,
0.00823211669921875,
0.0552978515625,
0.00435638427734375,
0.0039043426513671875,
0.0523681640625,
-0.02783203125,
-0.0223388671875,
0.003326416015625,
-0.046966552734375,
-0.00676727294921875,
0.0279541015625,
-0.00919342041015625,
-0.01093292236328125,
-0.01407623291015625,
0.047393798828125,
0.01134490966796875,
-0.042694091796875,
-0.0218658447265625,
0.044464111328125,
0.03253173828125,
0.09393310546875,
-0.0035686492919921875,
0.026641845703125,
-0.0236663818359375,
0.035980224609375,
0.01245880126953125,
-0.005550384521484375,
-0.026519775390625,
-0.005489349365234375,
-0.052581787109375,
0.0227203369140625,
0.01236724853515625,
0.0120086669921875,
0.032867431640625,
0.001049041748046875,
-0.0191497802734375,
-0.011199951171875,
0.0328369140625,
0.019683837890625,
0.004421234130859375,
-0.016693115234375,
0.026580810546875,
-0.0751953125,
-0.0965576171875,
-0.0229644775390625,
0.01262664794921875,
0.0311279296875,
0.006061553955078125,
-0.0009627342224121094,
0.0149993896484375,
-0.0304718017578125,
0.07464599609375,
0.0020465850830078125,
0.002880096435546875,
0.00986480712890625,
0.00823211669921875,
0.0011272430419921875,
-0.01117706298828125,
-0.0081787109375,
-0.018707275390625,
-0.000263214111328125,
-0.03326416015625,
-0.0194549560546875,
-0.01233673095703125,
-0.0194244384765625,
0.043670654296875,
0.0221710205078125,
-0.0191192626953125,
-0.018798828125,
0.01727294921875,
0.00736236572265625,
0.004482269287109375,
0.0214080810546875,
-0.0115203857421875,
0.0186767578125,
0.023345947265625,
0.027862548828125,
-0.00803375244140625,
-0.024688720703125,
-0.004810333251953125,
-0.022308349609375,
0.0196685791015625,
0.01360321044921875,
-0.0035190582275390625,
0.037139892578125,
-0.0251312255859375,
-0.0238189697265625,
-0.046875,
-0.031829833984375,
0.017547607421875,
-0.03448486328125,
0.023223876953125,
-0.054779052734375,
-0.0279541015625,
0.0513916015625,
-0.0176849365234375,
0.0095062255859375,
0.0009489059448242188,
0.0955810546875,
0.004207611083984375,
-0.01313018798828125,
-0.02093505859375,
-0.0045013427734375,
0.0192718505859375,
-0.0277557373046875,
0.047332763671875,
-0.00070953369140625,
-0.00563812255859375,
0.058197021484375,
-0.020660400390625,
0.0369873046875,
-0.0239715576171875,
0.01496124267578125,
0.01186370849609375,
0.0018224716186523438,
0.0186309814453125,
0.02423095703125,
0.0015993118286132812,
0.061920166015625,
0.0022754669189453125,
-0.037200927734375,
0.01751708984375,
0.04791259765625,
-0.03326416015625,
0.004070281982421875,
-0.04046630859375,
-0.01241302490234375,
-0.0039825439453125,
0.04620361328125,
0.0107269287109375,
0.039337158203125,
-0.01197052001953125,
0.0243988037109375,
0.034576416015625,
-0.0008635520935058594,
0.031463623046875,
-0.004489898681640625,
0.0012845993041992188,
0.007232666015625,
0.03363037109375,
-0.00875091552734375,
0.009246826171875,
-0.00975799560546875,
0.036041259765625,
0.00701141357421875,
-0.043121337890625,
0.0013895034790039062,
0.00012069940567016602,
0.0225372314453125,
0.01287841796875,
-0.0130157470703125,
0.0340576171875,
0.0105438232421875,
-0.021331787109375,
-0.02362060546875,
-0.03607177734375,
-0.0191192626953125,
-0.046417236328125,
-0.0033130645751953125,
0.0046234130859375,
-0.023406982421875,
0.05902099609375,
-0.03533935546875,
0.00806427001953125,
-0.005199432373046875,
-0.00522613525390625,
0.04144287109375,
0.01041412353515625,
0.01110076904296875,
0.0120391845703125,
0.02532958984375,
0.00482177734375,
-0.02386474609375,
0.01666259765625,
-0.01171112060546875,
0.004566192626953125,
-0.006595611572265625,
-0.005096435546875,
0.0036449432373046875,
0.00917816162109375,
0.040283203125,
0.01404571533203125,
-0.020965576171875,
0.0254974365234375,
0.04107666015625,
0.00027489662170410156,
-0.0256805419921875,
-0.030975341796875,
0.032958984375,
0.03826904296875,
0.00612640380859375,
0.05145263671875,
0.02490234375,
0.044830322265625,
-0.0347900390625,
0.004703521728515625,
-0.00972747802734375,
0.00963592529296875,
0.023529052734375,
-0.0130615234375,
-0.031707763671875,
0.00852203369140625,
-0.0092315673828125,
-0.01030731201171875,
0.0119171142578125,
0.034210205078125,
0.002422332763671875,
-0.0171051025390625,
-0.016357421875,
-0.00276947021484375,
-0.01428985595703125,
-0.000025928020477294922,
0.034423828125,
-0.018463134765625,
-0.026763916015625,
-0.0347900390625,
-0.0487060546875,
-0.043792724609375,
-0.09197998046875,
-0.023712158203125,
-0.060150146484375,
0.04998779296875,
-0.013153076171875,
-0.0052337646484375,
-0.0142669677734375,
-0.004306793212890625,
0.01287078857421875,
0.0225372314453125,
-0.0093841552734375,
-0.04351806640625,
-0.0032024383544921875,
0.0152587890625,
0.0077362060546875,
0.016937255859375,
0.01324462890625,
0.0224761962890625,
0.0258331298828125,
-0.032867431640625,
0.037109375,
0.0079193115234375,
-0.047821044921875,
-0.07098388671875,
-0.0203857421875,
0.006824493408203125,
0.06756591796875,
-0.0302581787109375,
0.017120361328125,
-0.019378662109375,
0.00548553466796875,
-0.0171966552734375,
0.026092529296875,
-0.0099945068359375,
0.052642822265625,
-0.03741455078125,
-0.0009918212890625,
0.0008997917175292969,
-0.0094757080078125,
-0.056304931640625,
0.040771484375,
0.0260467529296875,
0.0299835205078125,
-0.019866943359375,
-0.039825439453125,
0.041107177734375,
0.05657958984375,
0.00960540771484375,
0.048675537109375,
0.005939483642578125,
0.0186767578125,
0.0248260498046875,
0.01071929931640625,
-0.006443023681640625,
-0.0162353515625,
0.029144287109375,
-0.007030487060546875,
-0.01751708984375,
-0.01136016845703125,
-0.03509521484375,
0.010589599609375,
0.05078125,
0.0701904296875,
-0.06939697265625,
0.0147247314453125,
0.0251922607421875,
-0.00888824462890625,
0.0105743408203125,
-0.04248046875,
0.00435638427734375,
-0.045257568359375,
0.0703125,
0.0184783935546875,
-0.0204315185546875,
0.0187835693359375,
-0.0255889892578125,
-0.0304412841796875,
-0.0318603515625,
-0.0080413818359375,
0.017486572265625,
-0.025482177734375,
0.0616455078125,
0.0241851806640625,
0.0180206298828125,
-0.045745849609375,
0.01556396484375,
-0.001247406005859375,
-0.0169219970703125,
-0.0745849609375,
0.0166778564453125,
0.0282440185546875,
0.0006251335144042969,
0.0367431640625,
-0.0089874267578125,
0.016448974609375,
0.061004638671875,
-0.0230255126953125,
0.032958984375,
0.0099945068359375,
0.0195159912109375,
0.006557464599609375,
-0.00646209716796875,
0.00872802734375,
0.02093505859375,
-0.0190887451171875,
0.006763458251953125,
-0.005229949951171875,
-0.00775146484375,
-0.0232391357421875,
-0.016143798828125,
0.08721923828125,
-0.014739990234375,
-0.0138702392578125,
0.04644775390625,
0.05364990234375,
-0.032318115234375,
-0.035247802734375,
0.04425048828125,
-0.045806884765625,
0.0008525848388671875,
-0.0016469955444335938,
0.00682830810546875,
-0.03594970703125,
-0.032440185546875,
-0.056427001953125,
0.06011962890625,
-0.003963470458984375,
0.0244293212890625,
0.0010595321655273438,
0.00864410400390625,
-0.0003020763397216797,
0.0007963180541992188,
-0.0167236328125,
0.05572509765625,
0.0225067138671875,
0.032745361328125,
-0.0198974609375,
-0.0010242462158203125,
0.01018524169921875,
0.0206451416015625,
0.00677490234375,
0.004154205322265625,
-0.0027866363525390625,
0.003551483154296875,
0.051422119140625,
0.06109619140625,
0.0325927734375,
-0.01043701171875,
-0.0189666748046875,
0.042510986328125,
0.03558349609375,
-0.04541015625,
0.004528045654296875,
0.023681640625,
-0.0299072265625,
0.01372528076171875,
0.014923095703125,
0.01450347900390625,
-0.0167236328125,
0.0312042236328125,
-0.0213623046875,
-0.00655364990234375,
0.023712158203125,
0.025909423828125,
-0.0157470703125,
0.04205322265625,
0.0207977294921875,
-0.041778564453125,
-0.0126800537109375,
-0.033721923828125,
0.044036865234375,
0.005023956298828125,
0.031982421875,
-0.000530242919921875,
0.007526397705078125,
0.01702880859375,
0.01605224609375,
0.0167999267578125,
0.042510986328125,
-0.02691650390625,
0.012847900390625,
0.022613525390625,
0.033203125,
-0.048309326171875,
-0.05419921875,
0.048095703125,
0.0506591796875,
-0.00682830810546875,
-0.0014371871948242188,
0.015716552734375,
0.005123138427734375,
0.005214691162109375,
-0.0197601318359375,
0.03302001953125,
-0.0013208389282226562,
-0.0199432373046875,
0.0084686279296875,
-0.01467132568359375,
-0.0022258758544921875,
-0.0092926025390625,
0.0025730133056640625,
0.0033168792724609375,
0.036865234375,
0.01251220703125,
-0.022735595703125,
0.00795745849609375,
0.0111083984375,
0.0079345703125,
-0.0006651878356933594,
0.0183868408203125,
0.0288543701171875,
0.0027313232421875,
-0.016937255859375,
0.05389404296875,
-0.033935546875,
0.0270538330078125,
-0.042755126953125,
-0.06024169921875,
-0.0253448486328125,
0.047576904296875,
0.00823211669921875,
0.045745849609375,
0.059051513671875,
0.03704833984375,
-0.0285797119140625,
-0.0011444091796875,
0.073486328125,
-0.018341064453125,
-0.039459228515625,
-0.032318115234375,
-0.005435943603515625,
0.042144775390625,
0.0011682510375976562,
0.0204620361328125,
-0.0001455545425415039,
0.035186767578125,
-0.01076507568359375,
0.004123687744140625,
0.00783538818359375,
-0.031890869140625,
0.0036182403564453125,
-0.01224517822265625,
0.02703857421875,
0.00847625732421875,
-0.07720947265625,
-0.0021209716796875,
-0.026824951171875,
-0.039520263671875,
0.0227508544921875,
0.034637451171875,
-0.039520263671875,
0.043212890625,
0.0225982666015625,
-0.037139892578125,
0.010101318359375,
0.0143585205078125,
0.019378662109375,
-0.0155792236328125,
0.01131439208984375,
-0.00998687744140625,
-0.0033016204833984375,
-0.002590179443359375,
0.01053619384765625,
0.023101806640625,
0.0036983489990234375,
0.11846923828125,
-0.0369873046875,
0.0052032470703125,
0.07562255859375,
-0.0689697265625,
0.09698486328125,
0.05279541015625,
0.0008797645568847656,
-0.0084686279296875,
-0.0144500732421875,
-0.04046630859375,
-0.038787841796875,
-0.01593017578125,
0.03997802734375,
-0.036834716796875,
-0.006988525390625,
0.0030918121337890625,
0.0290679931640625,
-0.0300750732421875,
-0.00542449951171875,
-0.041107177734375,
-0.01458740234375,
-0.007648468017578125,
-0.0303802490234375,
0.0019254684448242188,
-0.034637451171875,
0.018096923828125,
0.01318359375,
0.034637451171875,
-0.022430419921875,
-0.004177093505859375,
-0.00991058349609375,
0.01776123046875,
0.037139892578125,
0.0185699462890625,
-0.006076812744140625,
-0.02130126953125,
-0.0276641845703125,
0.01340484619140625,
-0.00804901123046875,
0.0217437744140625,
0.00909423828125,
-0.0082244873046875,
-0.02191162109375,
0.02520751953125,
0.0251922607421875,
-0.0034465789794921875,
0.0014629364013671875,
0.000804901123046875,
-0.021209716796875,
-0.033905029296875,
0.055145263671875,
-0.013671875,
-0.005290985107421875,
-0.02191162109375,
-0.0263824462890625,
-0.0034275054931640625,
-0.059967041015625,
-0.035980224609375,
-0.0243682861328125,
0.041168212890625,
0.0170135498046875,
-0.043182373046875,
0.0156402587890625,
-0.004566192626953125,
-0.02215576171875,
0.004169464111328125,
-0.0330810546875,
0.00017750263214111328,
0.06201171875,
0.01299285888671875,
-0.06805419921875,
-0.0338134765625,
0.049957275390625,
-0.05792236328125,
0.045013427734375,
0.08551025390625,
-0.04583740234375,
-0.048492431640625,
0.02911376953125,
0.0263214111328125,
0.074462890625,
-0.0229644775390625,
-0.02423095703125,
0.035888671875,
0.004611968994140625,
0.00038552284240722656,
-0.035369873046875,
-0.0171356201171875,
0.011444091796875,
0.0196533203125,
-0.0232086181640625,
0.00762176513671875,
0.01496124267578125,
-0.030914306640625,
-0.041595458984375,
0.0240936279296875,
-0.003925323486328125,
-0.020355224609375,
-0.09234619140625,
-0.020111083984375,
-0.01264190673828125,
0.022705078125,
-0.03375244140625,
-0.0109710693359375,
-0.038055419921875,
0.0826416015625,
0.039154052734375,
-0.0030689239501953125,
0.045135498046875,
0.0182952880859375,
-0.026824951171875,
0.031890869140625,
0.028076171875,
0.0232086181640625,
-0.024017333984375,
0.0200958251953125,
-0.0025997161865234375,
0.0283660888671875,
-0.0151519775390625,
0.0092010498046875,
0.0020961761474609375,
0.0157623291015625,
-0.0335693359375,
-0.043426513671875,
0.0098876953125,
0.00991058349609375,
0.05340576171875,
0.056304931640625,
0.008514404296875,
-0.050079345703125,
-0.0095977783203125,
0.0146484375,
0.0313720703125,
-0.005657196044921875,
-0.00832366943359375,
-0.04217529296875,
-0.01055908203125,
-0.0019159317016601562,
-0.0186767578125,
0.01531219482421875,
-0.049407958984375,
-0.028533935546875,
0.00628662109375,
-0.0134735107421875,
0.0056610107421875,
-0.01617431640625,
0.004253387451171875,
0.0005784034729003906,
-0.0098724365234375,
-0.0139617919921875,
0.0160675048828125,
0.0030422210693359375,
-0.016571044921875,
0.043609619140625,
0.00661468505859375,
-0.0239715576171875,
0.0013818740844726562,
0.0239715576171875,
-0.0014429092407226562,
0.024993896484375,
-0.002391815185546875,
-0.035369873046875,
-0.01139068603515625,
0.0138397216796875,
0.00698089599609375,
-0.00988006591796875,
-0.0234527587890625,
0.03839111328125,
-0.007198333740234375,
0.0777587890625,
-0.01187896728515625,
0.12469482421875,
0.0167999267578125,
0.035919189453125,
-0.0302276611328125,
0.0009908676147460938,
0.0290069580078125,
-0.0640869140625,
0.0093841552734375,
0.00884246826171875,
0.0006232261657714844,
0.00603485107421875,
-0.0137939453125,
-0.091552734375,
-0.01483154296875,
-0.0006084442138671875
] |
6e629814d0a8aa187850f7dbdcf9778496fa55f7 | Wordpress Stackexchange
Q: Gutenberg withInstanceId. When to use it? The WordPress block API for Gutenberg has a withInstanceId package.
They say,
Some components need to generate a unique id for each instance. This
could serve as suffixes to element ID's for example. Wrapping a
component with withInstanceId provides a unique instanceId to serve
this purpose.
and show an example:
/**
* WordPress dependencies
*/
import { withInstanceId } from '@wordpress/compose';
function MyCustomElement( { instanceId } ) {
return (
<div id={ `my-custom-element-${ instanceId }` }>
content
</div>
);
}
export default withInstanceId( MyCustomElement );
It seems like it is just being used for html ids? As to not have duplicate id names? Is there any other usage for it? If i just export my component using export default withInstanceId( MyCustomElement ) will the entire component have a unique id?
A: You could use clientId to uniquely identify the block. clientId is available in props.
Something like this..
export function EditBlock({clientId, setAttributes} ) {
// save clientId in attributes to make it available in Save
return (
<div id={ `my-custom-element-${ clientId }` }>
content
</div>
);
}
No need for HOC.
| Q: Gutenberg withInstanceId. When to use it? The WordPress block API for Gutenberg has a withInstanceId package.
They say,
Some components need to generate a unique id for each instance. This
could serve as suffixes to element ID's for example. Wrapping a
component with withInstanceId provides a unique instanceId to serve
this purpose.
and show an example:
/**
* WordPress dependencies
*/
import { withInstanceId } from '@wordpress/compose';
function MyCustomElement( { instanceId } ) {
return (
<div id={ `my-custom-element-${ instanceId }` }>
content
</div>
);
}
export default withInstanceId( MyCustomElement );
It seems like it is just being used for html ids? As to not have duplicate id names? Is there any other usage for it? If i just export my component using export default withInstanceId( MyCustomElement ) will the entire component have a unique id?
A: You could use clientId to uniquely identify the block. clientId is available in props.
Something like this..
export function EditBlock({clientId, setAttributes} ) {
// save clientId in attributes to make it available in Save
return (
<div id={ `my-custom-element-${ clientId }` }>
content
</div>
);
}
No need for HOC.
A: The generated id is added to the component's props. So it can be accessed through this.props.instanceId inside the component.
In the example you posted it is being used to assign a unique id attribute to the html element. However it can be used for custom logic inside react. Just as an example, you can assign each component an id and then save its data to the redux store, that way when you need to access the data from an element inside the store you can use its id to find it.
| wordpress | {
"language": "en",
"length": 280,
"provenance": "stackexchange_00019.jsonl.gz:491709",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/324643"
} | [
-0.0014734268188476562,
-0.00020503997802734375,
-0.041015625,
-0.0292816162109375,
-0.001125335693359375,
-0.0204620361328125,
-0.01551055908203125,
0.013153076171875,
0.03387451171875,
-0.0002884864807128906,
-0.017425537109375,
-0.039031982421875,
0.006671905517578125,
-0.04083251953125,
-0.00656890869140625,
-0.02490234375,
0.0223846435546875,
0.02874755859375,
0.0236968994140625,
0.00571441650390625,
-0.011962890625,
0.00832366943359375,
-0.004184722900390625,
0.023162841796875,
0.064453125,
-0.1072998046875,
0.057220458984375,
-0.044891357421875,
0.0479736328125,
-0.018402099609375,
0.04254150390625,
0.00841522216796875,
0.0086669921875,
0.00757598876953125,
-0.0114593505859375,
-0.013916015625,
-0.0074005126953125,
0.0132293701171875,
-0.00817108154296875,
0.02960205078125,
0.0201873779296875,
-0.027862548828125,
-0.00223541259765625,
-0.0318603515625,
-0.0137786865234375,
-0.00647735595703125,
-0.00266265869140625,
-0.0274810791015625,
0.03643798828125,
0.051727294921875,
-0.01690673828125,
0.0264892578125,
-0.016693115234375,
0.042083740234375,
-0.0073699951171875,
-0.0209197998046875,
-0.039520263671875,
-0.0225067138671875,
0.03143310546875,
0.08734130859375,
0.0272369384765625,
-0.010498046875,
-0.017852783203125,
-0.049896240234375,
0.0240936279296875,
-0.01461029052734375,
0.02294921875,
0.0280303955078125,
0.0208587646484375,
0.0261077880859375,
-0.0021686553955078125,
0.01324462890625,
0.006160736083984375,
-0.0450439453125,
-0.01371002197265625,
-0.009307861328125,
0.00862884521484375,
-0.05462646484375,
-0.01018524169921875,
0.00307464599609375,
-0.01479339599609375,
-0.0083160400390625,
-0.03277587890625,
-0.003093719482421875,
0.01065826416015625,
0.046356201171875,
-0.0117950439453125,
-0.0243682861328125,
-0.008636474609375,
0.0206451416015625,
-0.0237274169921875,
-0.002567291259765625,
0.04681396484375,
-0.00323486328125,
-0.058197021484375,
-0.0007824897766113281,
-0.0316162109375,
0.0248870849609375,
-0.0276031494140625,
0.02142333984375,
0.0032024383544921875,
-0.01629638671875,
0.037841796875,
-0.04852294921875,
-0.0182037353515625,
0.06195068359375,
0.015106201171875,
0.043212890625,
0.001728057861328125,
-0.0017299652099609375,
-0.01110076904296875,
-0.04034423828125,
0.022857666015625,
0.0135650634765625,
-0.06689453125,
-0.0186614990234375,
-0.01338958740234375,
-0.0268707275390625,
0.0010423660278320312,
0.002727508544921875,
-0.00563812255859375,
-0.0011491775512695312,
0.036773681640625,
-0.0012073516845703125,
0.02642822265625,
0.01534271240234375,
-0.0283050537109375,
-0.0236053466796875,
-0.005161285400390625,
-0.036712646484375,
-0.051116943359375,
0.01934814453125,
0.11334228515625,
0.07568359375,
0.0567626953125,
-0.0114593505859375,
0.031463623046875,
0.0236663818359375,
0.0189971923828125,
-0.01551055908203125,
0.023712158203125,
-0.0003437995910644531,
0.0018825531005859375,
0.018585205078125,
-0.002719879150390625,
0.0223388671875,
0.02435302734375,
0.01861572265625,
-0.033477783203125,
-0.050537109375,
0.0089111328125,
-0.02984619140625,
0.05548095703125,
-0.0268096923828125,
-0.04412841796875,
-0.04217529296875,
-0.00250244140625,
-0.0198822021484375,
-0.0172882080078125,
-0.04205322265625,
0.05908203125,
-0.0096435546875,
-0.03643798828125,
0.00937652587890625,
-0.035003662109375,
-0.0042266845703125,
-0.016326904296875,
-0.01013946533203125,
0.01270294189453125,
0.09344482421875,
-0.0208282470703125,
-0.044891357421875,
-0.07696533203125,
-0.0074310302734375,
-0.01067352294921875,
0.00572967529296875,
-0.0057373046875,
-0.0121612548828125,
0.042633056640625,
0.0020294189453125,
-0.0318603515625,
-0.03375244140625,
0.04901123046875,
-0.0161895751953125,
-0.0557861328125,
0.06854248046875,
-0.01068115234375,
0.10565185546875,
0.026275634765625,
0.00970458984375,
-0.0013265609741210938,
-0.01351165771484375,
-0.08154296875,
0.038482666015625,
-0.0260467529296875,
0.0216064453125,
0.0211334228515625,
0.044586181640625,
-0.01007080078125,
-0.0330810546875,
0.0218658447265625,
-0.02471923828125,
0.03997802734375,
-0.0060882568359375,
0.000029861927032470703,
0.00897216796875,
-0.006862640380859375,
0.006988525390625,
-0.034576416015625,
0.0181121826171875,
0.0257720947265625,
-0.033782958984375,
-0.0137939453125,
0.007160186767578125,
0.002628326416015625,
-0.0203399658203125,
0.002033233642578125,
0.00276947021484375,
-0.0274810791015625,
0.027374267578125,
-0.028289794921875,
-0.0052032470703125,
-0.0418701171875,
0.008575439453125,
0.058319091796875,
-0.00576019287109375,
-0.00994873046875,
-0.015869140625,
0.04193115234375,
0.038482666015625,
-0.06634521484375,
-0.00928497314453125,
0.0469970703125,
0.09100341796875,
0.0091705322265625,
0.007396697998046875,
0.01153564453125,
-0.0205078125,
0.006839752197265625,
0.00844573974609375,
0.035003662109375,
-0.0278167724609375,
-0.003875732421875,
0.019195556640625,
0.0316162109375,
-0.0118255615234375,
0.024017333984375,
-0.01971435546875,
-0.0099945068359375,
0.0090484619140625,
-0.01971435546875,
0.03857421875,
0.031494140625,
0.025543212890625,
0.00913238525390625,
0.03692626953125,
-0.004791259765625,
-0.0394287109375,
0.021148681640625,
0.0191192626953125,
-0.00966644287109375,
-0.01052093505859375,
-0.01165008544921875,
-0.01090240478515625,
0.0287933349609375,
0.0166015625,
0.054168701171875,
0.042877197265625,
-0.0259552001953125,
0.0089569091796875,
0.01959228515625,
0.0226898193359375,
0.005596160888671875,
0.046234130859375,
0.050750732421875,
0.041656494140625,
-0.03839111328125,
-0.0209197998046875,
0.0517578125,
0.051300048828125,
-0.024200439453125,
-0.0018777847290039062,
-0.04278564453125,
-0.005908966064453125,
-0.00005429983139038086,
-0.04901123046875,
-0.005062103271484375,
0.01264190673828125,
-0.0308837890625,
0.007404327392578125,
0.03350830078125,
0.01335906982421875,
-0.0049285888671875,
-0.018402099609375,
0.0245361328125,
-0.0205535888671875,
-0.0150909423828125,
-0.0296783447265625,
0.01629638671875,
-0.06756591796875,
0.0775146484375,
0.052825927734375,
-0.063720703125,
0.035003662109375,
0.010498046875,
-0.008544921875,
0.04693603515625,
0.0170135498046875,
-0.0002193450927734375,
-0.032989501953125,
0.0176544189453125,
0.0140838623046875,
0.0166473388671875,
0.0506591796875,
-0.0012416839599609375,
-0.038238525390625,
-0.0088043212890625,
0.017059326171875,
-0.0787353515625,
-0.09295654296875,
0.0267486572265625,
-0.01285552978515625,
-0.00028824806213378906,
-0.0288848876953125,
-0.0117034912109375,
-0.00942230224609375,
-0.045257568359375,
-0.015899658203125,
-0.01448822021484375,
-0.037017822265625,
-0.06146240234375,
-0.07049560546875,
-0.056854248046875,
0.02557373046875,
-0.0177001953125,
0.0216064453125,
0.0194854736328125,
-0.044525146484375,
0.01047515869140625,
0.00982666015625,
0.030303955078125,
-0.01490020751953125,
-0.00467681884765625,
-0.0421142578125,
0.00927734375,
-0.08203125,
-0.004711151123046875,
0.00628662109375,
0.0171966552734375,
-0.020751953125,
0.037445068359375,
0.01023101806640625,
-0.0114288330078125,
-0.0155181884765625,
0.0189666748046875,
0.022247314453125,
0.00030541419982910156,
0.038238525390625,
0.0806884765625,
-0.0170440673828125,
-0.03436279296875,
0.0025482177734375,
-0.0294647216796875,
0.01509857177734375,
-0.00780487060546875,
0.0007658004760742188,
0.0223846435546875,
0.0194854736328125,
0.0097198486328125,
0.0009565353393554688,
0.03173828125,
-0.0118255615234375,
0.003665924072265625,
-0.036376953125,
-0.0030612945556640625,
-0.038421630859375,
0.05096435546875,
-0.0014247894287109375,
-0.0191802978515625,
0.01788330078125,
0.01474761962890625,
0.0086212158203125,
-0.0142059326171875,
-0.052490234375,
-0.020599365234375,
0.0406494140625,
0.0104827880859375,
0.03228759765625,
-0.0059814453125,
-0.020416259765625,
0.006977081298828125,
0.0623779296875,
-0.0063018798828125,
-0.0142822265625,
0.047393798828125,
-0.00543212890625,
-0.004390716552734375,
0.06329345703125,
-0.0810546875,
-0.0213165283203125,
0.0142364501953125,
-0.0173492431640625,
-0.0040435791015625,
-0.0218505859375,
0.005641937255859375,
-0.0201416015625,
0.012786865234375,
-0.0068817138671875,
0.0186004638671875,
-0.03118896484375,
0.04339599609375,
-0.0015726089477539062,
0.014984130859375,
-0.00786590576171875,
-0.03570556640625,
-0.0238037109375,
-0.007068634033203125,
-0.0013322830200195312,
-0.0250701904296875,
0.0264129638671875,
0.00818634033203125,
0.0256500244140625,
-0.01885986328125,
0.03271484375,
-0.04376220703125,
0.0184326171875,
0.004169464111328125,
0.033447265625,
0.026153564453125,
-0.01342010498046875,
0.0054779052734375,
-0.0247039794921875,
-0.019439697265625,
-0.0059967041015625,
-0.0228729248046875,
0.03851318359375,
0.0131378173828125,
0.00461578369140625,
0.0343017578125,
-0.0269012451171875,
-0.0572509765625,
-0.0159759521484375,
0.0128631591796875,
0.0111541748046875,
-0.0018100738525390625,
0.00055694580078125,
-0.0288238525390625,
-0.03277587890625,
0.036712646484375,
0.02777099609375,
0.022064208984375,
-0.0038318634033203125,
0.059814453125,
0.006145477294921875,
-0.034088134765625,
0.0224609375,
-0.02783203125,
0.0109710693359375,
-0.022186279296875,
0.08355712890625,
0.0355224609375,
0.00868988037109375,
0.09149169921875,
-0.029449462890625,
-0.004650115966796875,
0.0131072998046875,
0.037017822265625,
-0.0185394287109375,
-0.038330078125,
0.028228759765625,
-0.0300445556640625,
-0.004848480224609375,
0.03253173828125,
-0.0509033203125,
0.036224365234375,
-0.0082550048828125,
0.00919342041015625,
-0.06964111328125,
0.042144775390625,
-0.0185394287109375,
0.0006647109985351562,
0.004772186279296875,
-0.0177764892578125,
0.03564453125,
0.01898193359375,
-0.01212310791015625,
0.0015201568603515625,
0.021148681640625,
-0.0171661376953125,
0.037628173828125,
-0.00977325439453125,
0.019500732421875,
0.012664794921875,
0.03192138671875,
-0.01348876953125,
-0.0052337646484375,
-0.00328826904296875,
0.08050537109375,
-0.00872039794921875,
-0.0187835693359375,
-0.0214385986328125,
-0.02630615234375,
-0.0253753662109375,
0.0222320556640625,
-0.005229949951171875,
0.0300445556640625,
0.020050048828125,
-0.029693603515625,
-0.0296783447265625,
0.01117706298828125,
-0.014434814453125,
-0.054534912109375,
-0.01629638671875,
-0.01556396484375,
-0.0114288330078125,
-0.02752685546875,
0.01270294189453125,
0.0013551712036132812,
-0.0265960693359375,
-0.0006809234619140625,
0.026947021484375,
-0.01220703125,
0.029632568359375,
0.04547119140625,
-0.044403076171875,
0.002197265625,
-0.006816864013671875,
-0.0343017578125,
-0.045745849609375,
-0.0169677734375,
0.036956787109375,
0.06500244140625,
-0.009796142578125,
-0.032623291015625,
0.0034542083740234375,
-0.03997802734375,
0.009002685546875,
0.0014858245849609375,
-0.047576904296875,
-0.035003662109375,
-0.00946044921875,
0.0082244873046875,
0.027557373046875,
-0.01413726806640625,
-0.007030487060546875,
-0.03717041015625,
-0.042755126953125,
-0.003143310546875,
-0.030731201171875,
-0.01448822021484375,
-0.007099151611328125,
-0.01509857177734375,
0.01261138916015625,
0.00872039794921875,
-0.045257568359375,
-0.023468017578125,
-0.02325439453125,
-0.00994873046875,
-0.0210723876953125,
0.06494140625,
-0.032501220703125,
0.04443359375,
-0.0116729736328125,
-0.0213623046875,
-0.0168914794921875,
0.0292816162109375,
0.006744384765625,
0.0005440711975097656,
0.0352783203125,
-0.04156494140625,
-0.03167724609375,
-0.017974853515625,
-0.004856109619140625,
-0.052093505859375,
0.01885986328125,
0.01152801513671875,
0.00603485107421875,
0.0312347412109375,
-0.023651123046875,
0.01070404052734375,
0.00789642333984375,
0.0248870849609375,
-0.014404296875,
0.08709716796875,
-0.017242431640625,
0.030487060546875,
0.0025501251220703125,
0.041107177734375,
0.007625579833984375,
0.0015344619750976562,
0.00974273681640625,
-0.032562255859375,
-0.02130126953125,
-0.0087127685546875,
0.0225067138671875,
-0.00258636474609375,
0.0537109375,
0.0179443359375,
0.032684326171875,
0.01061248779296875,
0.06890869140625,
-0.01071929931640625,
0.007720947265625,
-0.01244354248046875,
-0.017425537109375,
-0.040557861328125,
0.004268646240234375,
0.03375244140625,
-0.019805908203125,
-0.022186279296875,
0.004779815673828125,
-0.004180908203125,
-0.021697998046875,
0.00791168212890625,
-0.0286102294921875,
0.016571044921875,
0.018585205078125,
-0.00344085693359375,
-0.022552490234375,
-0.01297760009765625,
0.01776123046875,
-0.0033855438232421875,
0.0271148681640625,
0.0233612060546875,
0.033721923828125,
-0.033660888671875,
-0.0156707763671875,
0.01136016845703125,
0.0033111572265625,
-0.0149383544921875,
0.0005822181701660156,
-0.0125579833984375,
-0.0138702392578125,
-0.01187896728515625,
0.0084228515625,
-0.01560211181640625,
-0.00504302978515625,
-0.02850341796875,
-0.038299560546875,
-0.01436614990234375,
0.0141754150390625,
0.005779266357421875,
-0.05999755859375,
0.0085601806640625,
0.0204010009765625,
-0.0138092041015625,
-0.009765625,
-0.0207366943359375,
-0.0037899017333984375,
-0.015228271484375,
0.04473876953125,
0.0126495361328125,
0.058807373046875,
-0.03814697265625,
-0.0222625732421875,
0.02459716796875,
-0.00510406494140625,
0.0182647705078125,
0.00531768798828125,
-0.047637939453125,
-0.03875732421875,
-0.0094146728515625,
0.0254669189453125,
-0.046905517578125,
-0.00189208984375,
-0.0207672119140625,
0.03131103515625,
0.0447998046875,
-0.01036834716796875,
-0.013092041015625,
0.0100860595703125,
-0.032257080078125,
-0.015655517578125,
-0.0401611328125,
0.01023101806640625,
-0.01215362548828125,
-0.0222625732421875,
0.02227783203125,
-0.01357269287109375,
-0.054412841796875,
0.006763458251953125,
0.06689453125,
0.0860595703125,
-0.06036376953125,
-0.01404571533203125,
0.0531005859375,
0.00960540771484375,
-0.02716064453125,
-0.0025482177734375,
0.038330078125,
-0.068115234375,
-0.05517578125,
0.0228729248046875,
-0.0394287109375,
-0.019256591796875,
0.0209808349609375,
-0.10595703125,
0.12310791015625,
0.037567138671875,
0.041412353515625,
-0.0433349609375,
0.049468994140625,
-0.033843994140625,
0.00555419921875,
0.027435302734375,
0.0067138671875,
-0.01477813720703125,
-0.0191802978515625,
-0.00797271728515625,
-0.01377105712890625,
-0.007720947265625,
0.05474853515625,
0.047760009765625,
0.008453369140625,
-0.03375244140625,
-0.01236724853515625,
0.02716064453125,
-0.013885498046875,
-0.041473388671875,
0.048828125,
0.020050048828125,
0.0192413330078125,
-0.0113983154296875,
-0.024322509765625,
0.01129150390625,
-0.04913330078125,
-0.0223388671875,
0.03240966796875,
0.01751708984375,
0.0223236083984375,
-0.01351165771484375,
0.0016336441040039062,
-0.039398193359375,
0.00916290283203125,
0.0261688232421875,
0.01271820068359375,
-0.01212310791015625,
0.0301666259765625,
0.0300140380859375,
-0.0657958984375,
-0.0302581787109375,
-0.045989990234375,
0.03900146484375,
0.00547027587890625,
0.006565093994140625,
0.058380126953125,
0.0298919677734375,
-0.0190277099609375,
0.041656494140625,
0.03533935546875,
0.021697998046875,
-0.0229339599609375,
0.0091552734375,
0.019256591796875,
-0.0010309219360351562,
-0.03253173828125,
0.030303955078125,
0.06549072265625,
0.0216064453125,
-0.032379150390625,
-0.03253173828125,
-0.00391387939453125,
-0.00994873046875,
0.0299530029296875,
-0.02276611328125,
0.033172607421875,
-0.0003857612609863281,
-0.02252197265625,
0.044342041015625,
-0.0172119140625,
-0.00518035888671875,
-0.001331329345703125,
0.034149169921875,
0.059844970703125,
-0.029510498046875,
-0.00710296630859375,
-0.0699462890625,
0.03472900390625,
0.00849151611328125,
0.04632568359375,
0.0130462646484375,
0.08428955078125,
0.052886962890625,
-0.03729248046875,
-0.0462646484375,
0.0184478759765625,
0.08233642578125,
0.01271820068359375,
-0.0294189453125,
0.035797119140625,
0.08734130859375,
0.014984130859375,
-0.0021076202392578125,
0.09478759765625,
0.043182373046875,
0.004802703857421875,
0.00814056396484375,
0.00933837890625,
0.01194000244140625,
-0.048553466796875,
0.053314208984375,
-0.04010009765625,
0.04229736328125,
0.00012362003326416016,
-0.00894927978515625,
-0.0244598388671875,
0.01084136962890625,
0.04296875,
0.004802703857421875,
0.0601806640625,
-0.0015916824340820312,
-0.00926971435546875,
-0.01256561279296875,
-0.025146484375,
0.0577392578125,
0.0303955078125,
-0.0236663818359375,
-0.004917144775390625,
0.017578125,
-0.041839599609375,
-0.0003795623779296875,
0.04302978515625,
-0.0111541748046875,
0.01157379150390625,
0.0010747909545898438,
0.006526947021484375,
0.006107330322265625,
-0.0111541748046875,
0.0023365020751953125,
0.0115509033203125,
0.021087646484375,
0.0028972625732421875,
-0.035125732421875,
-0.02252197265625,
0.03033447265625,
0.007129669189453125,
-0.007080078125,
0.0687255859375,
-0.002445220947265625,
-0.01222991943359375,
-0.016143798828125,
0.01708984375,
-0.0069580078125,
-0.01316070556640625,
0.01043701171875,
0.037567138671875,
0.036895751953125,
-0.00933074951171875,
-0.05712890625,
-0.0020809173583984375,
0.00921630859375,
-0.009307861328125,
-0.0174713134765625,
-0.010986328125,
0.037994384765625,
0.03729248046875,
0.046234130859375,
-0.01265716552734375,
-0.035247802734375,
-0.0079498291015625,
0.040802001953125,
0.010284423828125,
0.03424072265625,
-0.011993408203125,
0.05035400390625,
-0.0226593017578125,
-0.01904296875,
0.02191162109375,
-0.0670166015625,
0.0001232624053955078,
0.00868988037109375,
0.01525115966796875,
-0.03125,
-0.050262451171875,
-0.03167724609375,
-0.043548583984375,
0.01177215576171875,
-0.01503753662109375,
-0.01540374755859375,
0.019073486328125,
0.038330078125,
0.0704345703125,
0.04833984375,
-0.0079498291015625,
0.0169677734375,
0.06597900390625,
-0.042938232421875,
0.00656890869140625,
0.0057525634765625,
-0.0158843994140625,
-0.038543701171875,
0.0014896392822265625,
0.0209503173828125,
-0.020416259765625,
-0.0080108642578125,
-0.044830322265625,
0.020172119140625,
0.0093994140625,
-0.005313873291015625,
-0.025238037109375,
0.050048828125,
-0.01375579833984375,
-0.01084136962890625,
0.007305145263671875,
0.07733154296875,
-0.04443359375,
-0.0170745849609375,
-0.0267333984375,
-0.0350341796875,
-0.02264404296875,
0.0899658203125,
-0.00679779052734375,
-0.0185089111328125,
-0.0158843994140625,
0.0017375946044921875,
-0.002910614013671875,
-0.03155517578125,
0.00563812255859375,
0.00934600830078125,
-0.020904541015625,
-0.0118865966796875,
0.023345947265625,
-0.0155792236328125,
-0.01495361328125,
-0.0146484375,
0.018218994140625,
-0.037872314453125,
-0.037628173828125,
-0.0179595947265625,
0.005096435546875,
0.0182952880859375,
-0.0249176025390625,
-0.0396728515625,
0.0052490234375,
0.0022182464599609375,
-0.033477783203125,
-0.0161590576171875,
-0.00201416015625,
-0.026397705078125,
-0.004474639892578125,
-0.01049041748046875,
-0.015655517578125,
0.015625,
0.042083740234375,
0.00909423828125,
-0.04364013671875,
0.06365966796875,
-0.0169677734375,
-0.06396484375,
-0.00860595703125,
0.0026760101318359375,
-0.00670623779296875,
0.0274810791015625,
-0.023681640625,
0.0223236083984375,
0.0006628036499023438,
-0.045074462890625,
-0.01258087158203125,
-0.01396942138671875,
0.007671356201171875,
-0.01496124267578125,
-0.00641632080078125,
-0.00511932373046875,
0.0097808837890625,
0.048980712890625,
0.056121826171875,
0.0048980712890625,
-0.037689208984375,
0.0169219970703125,
0.0006279945373535156,
-0.0191802978515625,
-0.0164337158203125,
0.0020427703857421875,
-0.053680419921875,
-0.024810791015625,
-0.002986907958984375,
-0.02587890625,
0.0252532958984375,
0.030548095703125,
-0.0252685546875,
0.007541656494140625,
0.00858306884765625,
-0.0289306640625,
-0.05364990234375,
0.0039520263671875,
0.046539306640625,
-0.036712646484375,
-0.0269317626953125,
0.0014095306396484375,
0.017547607421875,
0.01378631591796875,
-0.01435089111328125,
0.00821685791015625,
-0.01042938232421875,
-0.017333984375,
0.0217437744140625,
-0.0078582763671875,
0.041534423828125,
-0.051239013671875,
-0.03265380859375,
0.002819061279296875,
0.004451751708984375,
-0.014373779296875,
0.0029754638671875,
0.025970458984375,
-0.00305938720703125,
-0.0292816162109375,
0.0709228515625,
-0.050628662109375,
0.040618896484375,
-0.02056884765625,
0.007221221923828125,
-0.01073455810546875,
0.03887939453125,
0.056884765625,
-0.012176513671875,
-0.00958251953125,
-0.00473785400390625,
-0.0121002197265625,
-0.076171875,
0.023834228515625,
-0.007110595703125,
0.0022640228271484375,
0.0283660888671875
] |
e28d95232e8ac8bc9d6a29b3b6e105e1d3d6f55f | Wordpress Stackexchange
Q: Gutenberg extend core blocks How do I modify a core block, in my case gallery block to add extra markup to can fire some lightbox on created gallery. Is there a way to hook in on render of gallery on frontpage to adjust markup?
A: You need to use Block Filters to modify existing blocks. There are couple of handy hooks you need to use in place of edit and save function to wrap around core blocks into your desirable block structure.
For your purpose I guess, you need to use - blocks.getSaveElement and editor.BlockEdit
| Q: Gutenberg extend core blocks How do I modify a core block, in my case gallery block to add extra markup to can fire some lightbox on created gallery. Is there a way to hook in on render of gallery on frontpage to adjust markup?
A: You need to use Block Filters to modify existing blocks. There are couple of handy hooks you need to use in place of edit and save function to wrap around core blocks into your desirable block structure.
For your purpose I guess, you need to use - blocks.getSaveElement and editor.BlockEdit
| wordpress | {
"language": "en",
"length": 96,
"provenance": "stackexchange_00019.jsonl.gz:491733",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/324744"
} | [
-0.005619049072265625,
0.00759124755859375,
-0.053009033203125,
-0.02532958984375,
0.01078033447265625,
-0.0290069580078125,
0.0184783935546875,
0.0011987686157226562,
0.0127105712890625,
0.03216552734375,
-0.01111602783203125,
-0.0107269287109375,
0.019866943359375,
-0.0171661376953125,
-0.0168914794921875,
-0.01141357421875,
0.036468505859375,
-0.01258087158203125,
0.020111083984375,
-0.006374359130859375,
0.00341033935546875,
0.0235137939453125,
-0.00579833984375,
0.07440185546875,
0.01108551025390625,
-0.0318603515625,
0.0806884765625,
-0.003265380859375,
0.036376953125,
-0.0115203857421875,
0.03363037109375,
-0.036376953125,
0.044464111328125,
0.0161895751953125,
-0.07415771484375,
0.02325439453125,
0.0276031494140625,
-0.0201873779296875,
-0.040283203125,
0.05157470703125,
0.0236968994140625,
-0.00504302978515625,
-0.045379638671875,
-0.0116424560546875,
-0.035400390625,
-0.00970458984375,
-0.00696563720703125,
-0.034027099609375,
0.061767578125,
0.01206207275390625,
-0.0221405029296875,
0.04144287109375,
-0.0192718505859375,
-0.0243377685546875,
-0.0128173828125,
-0.032958984375,
-0.03753662109375,
0.01331329345703125,
0.0227813720703125,
0.0340576171875,
-0.003734588623046875,
0.01375579833984375,
-0.0006165504455566406,
-0.0218505859375,
0.05657958984375,
-0.0400390625,
-0.00920867919921875,
0.04205322265625,
-0.0389404296875,
0.052520751953125,
0.033172607421875,
-0.021240234375,
0.00957489013671875,
-0.033599853515625,
0.001163482666015625,
0.01837158203125,
-0.02374267578125,
-0.00563812255859375,
0.034912109375,
-0.0095672607421875,
-0.0215301513671875,
0.017852783203125,
0.028167724609375,
-0.054412841796875,
-0.0081787109375,
-0.036956787109375,
-0.014678955078125,
0.012054443359375,
0.004215240478515625,
0.018463134765625,
-0.007568359375,
-0.007904052734375,
-0.013275146484375,
0.045806884765625,
0.00814056396484375,
-0.0242462158203125,
-0.034637451171875,
-0.02178955078125,
0.00925445556640625,
0.0278167724609375,
-0.0010461807250976562,
-0.046966552734375,
0.035888671875,
-0.027801513671875,
0.007354736328125,
0.0181121826171875,
-0.020172119140625,
0.0307769775390625,
0.0604248046875,
0.0199432373046875,
-0.008056640625,
0.044281005859375,
-0.019989013671875,
0.0037784576416015625,
-0.006015777587890625,
0.03289794921875,
-0.0271759033203125,
0.0294036865234375,
-0.0325927734375,
0.0242919921875,
0.0038204193115234375,
0.025634765625,
0.0274658203125,
-0.0035762786865234375,
0.00257110595703125,
0.0218963623046875,
-0.01529693603515625,
-0.0546875,
0.0029621124267578125,
-0.02362060546875,
-0.033966064453125,
0.03277587890625,
0.1015625,
0.051544189453125,
0.036102294921875,
-0.007633209228515625,
0.0166778564453125,
-0.0286407470703125,
0.00772857666015625,
-0.01593017578125,
0.00188446044921875,
-0.001499176025390625,
0.015960693359375,
-0.015228271484375,
0.0799560546875,
-0.0121612548828125,
0.03131103515625,
0.0333251953125,
-0.00214385986328125,
-0.040557861328125,
0.10394287109375,
-0.00913238525390625,
0.018829345703125,
0.01490020751953125,
0.0401611328125,
-0.004543304443359375,
0.11102294921875,
-0.046966552734375,
-0.0298004150390625,
-0.051361083984375,
-0.0120391845703125,
-0.0009937286376953125,
0.0262908935546875,
-0.023345947265625,
-0.01593017578125,
-0.00815582275390625,
-0.033294677734375,
0.0006060600280761719,
0.0255584716796875,
0.019622802734375,
0.0301666259765625,
-0.027069091796875,
-0.019744873046875,
-0.007389068603515625,
-0.0222625732421875,
0.0009069442749023438,
-0.02490234375,
0.005645751953125,
0.0234527587890625,
0.03369140625,
-0.0003139972686767578,
-0.037445068359375,
0.0300140380859375,
-0.00843048095703125,
-0.021636962890625,
-0.0060272216796875,
0.007640838623046875,
0.03948974609375,
0.02691650390625,
0.017791748046875,
0.00214385986328125,
-0.0272674560546875,
-0.0888671875,
0.00597381591796875,
-0.012908935546875,
0.0374755859375,
0.0084381103515625,
0.044525146484375,
-0.0008373260498046875,
-0.0290374755859375,
0.049407958984375,
-0.0062713623046875,
0.0225677490234375,
-0.0132293701171875,
-0.006023406982421875,
-0.0128936767578125,
0.00028967857360839844,
0.00821685791015625,
0.00970458984375,
0.0130615234375,
0.00897979736328125,
-0.0051422119140625,
-0.01319122314453125,
-0.005542755126953125,
-0.02471923828125,
0.0003745555877685547,
0.01215362548828125,
0.0171051025390625,
0.0238037109375,
0.0003211498260498047,
0.037841796875,
0.01229095458984375,
0.012237548828125,
0.015838623046875,
0.06549072265625,
0.01161956787109375,
-0.034393310546875,
-0.0291748046875,
-0.038848876953125,
0.0587158203125,
-0.21044921875,
0.0216217041015625,
0.046844482421875,
0.0333251953125,
-0.01082611083984375,
-0.00537109375,
0.003215789794921875,
-0.057861328125,
0.0027103424072265625,
0.032073974609375,
0.015960693359375,
0.0004532337188720703,
-0.0204010009765625,
-0.0199127197265625,
0.0215911865234375,
0.0380859375,
0.040985107421875,
-0.01453399658203125,
0.007266998291015625,
0.02471923828125,
-0.0276947021484375,
-0.0119171142578125,
0.035614013671875,
0.004901885986328125,
0.012786865234375,
0.0258941650390625,
0.01482391357421875,
0.014892578125,
-0.0255126953125,
0.010345458984375,
0.002285003662109375,
-0.02227783203125,
-0.04876708984375,
-0.0002002716064453125,
0.06427001953125,
-0.005947113037109375,
0.04412841796875,
0.0294342041015625,
-0.0419921875,
0.01824951171875,
0.0266571044921875,
0.01544189453125,
0.0082855224609375,
0.0204315185546875,
-0.0565185546875,
0.0211029052734375,
-0.01824951171875,
0.01323699951171875,
0.0240631103515625,
-0.0005970001220703125,
-0.0153350830078125,
0.026458740234375,
-0.0273895263671875,
-0.00611114501953125,
0.005985260009765625,
-0.0171051025390625,
-0.00007355213165283203,
0.01123046875,
-0.0118255615234375,
-0.043365478515625,
0.0306549072265625,
-0.03973388671875,
-0.0299224853515625,
-0.006137847900390625,
-0.0087432861328125,
-0.0704345703125,
0.01519775390625,
-0.056884765625,
0.03985595703125,
-0.037750244140625,
0.096435546875,
0.0780029296875,
-0.03973388671875,
0.037872314453125,
0.00785064697265625,
-0.02264404296875,
-0.01096343994140625,
0.0079498291015625,
0.0035648345947265625,
-0.00476837158203125,
0.005863189697265625,
0.06329345703125,
0.01300811767578125,
0.0615234375,
-0.03472900390625,
-0.0292816162109375,
-0.024566650390625,
0.01308441162109375,
0.0104217529296875,
0.032989501953125,
-0.0229644775390625,
-0.059661865234375,
-0.0034236907958984375,
-0.0155487060546875,
-0.0239715576171875,
0.00807952880859375,
0.0125732421875,
0.005344390869140625,
-0.036773681640625,
-0.02099609375,
-0.042144775390625,
-0.07373046875,
-0.059661865234375,
-0.02166748046875,
-0.008819580078125,
0.010894775390625,
-0.01403045654296875,
0.045867919921875,
-0.01538848876953125,
-0.062286376953125,
-0.027740478515625,
-0.00664520263671875,
0.0008678436279296875,
-0.01190185546875,
0.039764404296875,
-0.031982421875,
-0.0211029052734375,
0.0289764404296875,
-0.036407470703125,
-0.00853729248046875,
-0.0088958740234375,
-0.024627685546875,
-0.022796630859375,
0.0007600784301757812,
-0.0006475448608398438,
0.001537322998046875,
0.0204620361328125,
-0.00621795654296875,
0.00853729248046875,
-0.04400634765625,
-0.0211639404296875,
0.0002187490463256836,
-0.03656005859375,
0.0010967254638671875,
0.0149383544921875,
0.00600433349609375,
-0.0124664306640625,
0.0227813720703125,
0.01415252685546875,
-0.0030841827392578125,
0.08758544921875,
-0.04241943359375,
-0.016357421875,
-0.0212860107421875,
-0.01464080810546875,
-0.0821533203125,
0.0206298828125,
-0.0081024169921875,
0.0221710205078125,
0.00298309326171875,
0.032684326171875,
-0.0003159046173095703,
0.019927978515625,
-0.0406494140625,
0.0045623779296875,
0.0226287841796875,
-0.031280517578125,
0.0246429443359375,
-0.01551055908203125,
0.00444793701171875,
0.0012292861938476562,
0.038665771484375,
-0.0191192626953125,
-0.0172271728515625,
0.0269317626953125,
0.009552001953125,
0.00533294677734375,
0.0098724365234375,
-0.048614501953125,
-0.032623291015625,
-0.060546875,
0.0215606689453125,
0.0207366943359375,
-0.04949951171875,
-0.001373291015625,
-0.01268768310546875,
-0.03753662109375,
-0.034332275390625,
0.019805908203125,
0.013671875,
-0.0007047653198242188,
0.006992340087890625,
-0.00838470458984375,
-0.004772186279296875,
-0.0001004338264465332,
0.01544952392578125,
-0.1015625,
-0.0126495361328125,
-0.0212249755859375,
0.0743408203125,
0.01081085205078125,
-0.0147247314453125,
-0.0242462158203125,
0.046844482421875,
-0.0117645263671875,
0.0097503662109375,
0.0188751220703125,
0.030731201171875,
0.07000732421875,
-0.042938232421875,
0.00027942657470703125,
-0.03460693359375,
-0.012115478515625,
-0.01549530029296875,
0.0177001953125,
0.033905029296875,
-0.022735595703125,
-0.0204925537109375,
-0.0023784637451171875,
-0.0024318695068359375,
-0.044403076171875,
-0.050384521484375,
-0.043548583984375,
-0.0077667236328125,
-0.008331298828125,
-0.01387786865234375,
-0.043060302734375,
-0.041778564453125,
0.0177001953125,
-0.00458526611328125,
-0.0273590087890625,
0.032073974609375,
0.049530029296875,
0.023162841796875,
-0.006504058837890625,
-0.0712890625,
-0.0003826618194580078,
0.0352783203125,
0.005184173583984375,
0.052947998046875,
0.02325439453125,
-0.02154541015625,
0.07012939453125,
-0.0006194114685058594,
-0.0021877288818359375,
-0.0657958984375,
0.0806884765625,
0.005352020263671875,
-0.0033245086669921875,
0.015655517578125,
-0.01468658447265625,
0.02642822265625,
-0.0311279296875,
-0.0667724609375,
0.054901123046875,
-0.052001953125,
0.004856109619140625,
0.01025390625,
0.0223388671875,
-0.03460693359375,
0.001110076904296875,
-0.00853729248046875,
0.04559326171875,
0.046173095703125,
0.024505615234375,
0.0021953582763671875,
-0.01049041748046875,
0.0223541259765625,
-0.01361846923828125,
-0.0123443603515625,
-0.036773681640625,
-0.0257568359375,
0.028076171875,
-0.0158843994140625,
-0.01197052001953125,
0.0103607177734375,
0.01029205322265625,
-0.00896453857421875,
-0.0245819091796875,
-0.02801513671875,
-0.060302734375,
0.0159759521484375,
0.0176544189453125,
0.023773193359375,
-0.007293701171875,
-0.0249481201171875,
0.0037441253662109375,
-0.0101165771484375,
-0.0086669921875,
0.0268096923828125,
-0.0275115966796875,
-0.01363372802734375,
-0.01214599609375,
-0.01273345947265625,
-0.0223846435546875,
0.0003979206085205078,
-0.006443023681640625,
0.01486968994140625,
-0.02838134765625,
-0.0101776123046875,
0.01617431640625,
-0.030426025390625,
-0.006450653076171875,
0.0200653076171875,
0.0270233154296875,
0.01953125,
-0.03240966796875,
0.0064239501953125,
0.01541900634765625,
-0.0002472400665283203,
0.0025787353515625,
0.0207672119140625,
0.026031494140625,
0.0185394287109375,
-0.0291595458984375,
-0.03826904296875,
0.012298583984375,
0.0076751708984375,
-0.0330810546875,
-0.006534576416015625,
-0.01383209228515625,
0.004383087158203125,
0.040191650390625,
-0.004184722900390625,
-0.0167388916015625,
-0.033721923828125,
-0.040802001953125,
0.01343536376953125,
-0.0248260498046875,
-0.00873565673828125,
0.0282440185546875,
0.006725311279296875,
-0.0097808837890625,
-0.01364898681640625,
0.006328582763671875,
-0.058319091796875,
-0.03875732421875,
-0.022735595703125,
0.007534027099609375,
0.07269287109375,
-0.03564453125,
0.006378173828125,
-0.03057861328125,
0.0361328125,
-0.00902557373046875,
0.032989501953125,
0.0198974609375,
0.006107330322265625,
0.0125579833984375,
-0.033905029296875,
-0.0498046875,
-0.049835205078125,
-0.055877685546875,
-0.0251617431640625,
-0.03631591796875,
0.036773681640625,
0.0237274169921875,
0.02935791015625,
-0.01180267333984375,
-0.054412841796875,
0.030303955078125,
-0.00473785400390625,
-0.0016069412231445312,
0.0341796875,
0.0115814208984375,
-0.005199432373046875,
-0.00864410400390625,
0.032684326171875,
-0.01094818115234375,
-0.045928955078125,
-0.0189666748046875,
-0.01465606689453125,
0.0010557174682617188,
-0.05255126953125,
-0.025482177734375,
0.0113067626953125,
-0.0298614501953125,
0.038116455078125,
0.0233001708984375,
0.0087890625,
0.019927978515625,
-0.0291290283203125,
-0.0004677772521972656,
-0.03887939453125,
0.0243377685546875,
-0.07879638671875,
-0.02618408203125,
-0.01250457763671875,
0.0013751983642578125,
0.0308990478515625,
-0.01349639892578125,
-0.05560302734375,
0.05621337890625,
0.01108551025390625,
0.04327392578125,
-0.0193023681640625,
0.0252838134765625,
0.0012750625610351562,
0.027435302734375,
-0.012298583984375,
0.0247955322265625,
0.04461669921875,
0.010162353515625,
-0.00016701221466064453,
-0.00885772705078125,
-0.01383209228515625,
0.035400390625,
0.05694580078125,
0.0111541748046875,
-0.004730224609375,
0.040618896484375,
-0.002384185791015625,
0.011016845703125,
0.0178985595703125,
0.050506591796875,
-0.058349609375,
0.037384033203125,
0.029327392578125,
0.02093505859375,
0.0267486572265625,
0.0213775634765625,
-0.0024814605712890625,
0.000025391578674316406,
-0.00864410400390625,
-0.0269012451171875,
0.006015777587890625,
0.016021728515625,
0.00888824462890625,
-0.0195159912109375,
-0.056304931640625,
0.0546875,
0.035919189453125,
0.0252685546875,
0.035675048828125,
-0.037445068359375,
0.0311737060546875,
0.00926971435546875,
0.0174560546875,
-0.01971435546875,
-0.0224609375,
-0.02081298828125,
-0.00672149658203125,
0.0016498565673828125,
-0.019989013671875,
0.0147247314453125,
0.0016622543334960938,
0.00937652587890625,
0.028228759765625,
-0.00986480712890625,
0.003894805908203125,
-0.0150299072265625,
0.00141143798828125,
-0.0119171142578125,
-0.00983428955078125,
-0.0033721923828125,
0.01824951171875,
-0.0108184814453125,
0.013092041015625,
-0.01678466796875,
-0.004650115966796875,
-0.014678955078125,
-0.01806640625,
0.07586669921875,
-0.009796142578125,
-0.0316162109375,
0.031036376953125,
-0.01019287109375,
-0.0289459228515625,
0.007007598876953125,
0.020172119140625,
-0.0025234222412109375,
0.006809234619140625,
0.007320404052734375,
-0.006694793701171875,
-0.0078582763671875,
0.00494384765625,
-0.0482177734375,
0.0799560546875,
0.0261383056640625,
0.01395416259765625,
0.0226287841796875,
0.04046630859375,
-0.053924560546875,
0.015716552734375,
-0.023223876953125,
0.04425048828125,
0.00667572021484375,
0.0259857177734375,
-0.042327880859375,
0.004608154296875,
-0.00789642333984375,
0.008056640625,
-0.0105438232421875,
0.01169586181640625,
-0.02117919921875,
-0.0455322265625,
-0.030731201171875,
0.0181427001953125,
-0.00257110595703125,
0.036102294921875,
-0.0127410888671875,
-0.0142059326171875,
-0.0550537109375,
0.00426483154296875,
0.02130126953125,
-0.06695556640625,
-0.07928466796875,
0.0180206298828125,
-0.0007448196411132812,
-0.0025482177734375,
0.023223876953125,
0.01549530029296875,
0.003398895263671875,
-0.002231597900390625,
0.01036834716796875,
-0.055267333984375,
-0.048187255859375,
0.04949951171875,
-0.0002655982971191406,
0.00467681884765625,
-0.01445770263671875,
-0.0239715576171875,
0.022186279296875,
0.0243072509765625,
0.00989532470703125,
0.02447509765625,
0.0240936279296875,
-0.0012760162353515625,
-0.016265869140625,
-0.0037136077880859375,
0.0211944580078125,
-0.02337646484375,
0.0265045166015625,
0.0196533203125,
0.0091552734375,
-0.0271148681640625,
0.0225372314453125,
0.0712890625,
0.044036865234375,
-0.033172607421875,
-0.0164031982421875,
0.00568389892578125,
-0.0032978057861328125,
0.01403045654296875,
-0.02978515625,
0.01029205322265625,
-0.0164947509765625,
-0.02203369140625,
-0.058197021484375,
-0.04833984375,
0.0163726806640625,
0.049713134765625,
-0.02557373046875,
-0.075927734375,
0.0457763671875,
-0.057708740234375,
-0.036956787109375,
0.0199432373046875,
-0.0086822509765625,
0.016143798828125,
0.0224761962890625,
0.037322998046875,
0.0404052734375,
-0.00006514787673950195,
-0.042083740234375,
0.0128326416015625,
-0.007404327392578125,
0.05096435546875,
-0.05560302734375,
0.007354736328125,
0.008453369140625,
0.049896240234375,
-0.006313323974609375,
0.04022216796875,
0.0254669189453125,
0.0570068359375,
0.00965118408203125,
-0.0211181640625,
0.027374267578125,
-0.02001953125,
0.0060577392578125,
-0.04669189453125,
0.043731689453125,
0.0176544189453125,
0.00798797607421875,
-0.00511932373046875,
0.010406494140625,
0.050018310546875,
-0.01346588134765625,
0.038360595703125,
0.003276824951171875,
-0.043487548828125,
0.01126861572265625,
-0.0007038116455078125,
0.09130859375,
0.0229644775390625,
-0.054901123046875,
-0.001140594482421875,
-0.024383544921875,
-0.11212158203125,
0.053314208984375,
0.06976318359375,
-0.047882080078125,
-0.0060272216796875,
-0.033172607421875,
-0.00125885009765625,
0.035552978515625,
-0.0257720947265625,
0.01861572265625,
0.027679443359375,
-0.0013246536254882812,
0.0010042190551757812,
-0.03485107421875,
-0.0142669677734375,
0.0095672607421875,
0.037109375,
-0.013671875,
0.07366943359375,
-0.0270233154296875,
0.0033588409423828125,
-0.0031948089599609375,
-0.0229949951171875,
0.0018987655639648438,
0.03363037109375,
-0.062255859375,
0.00811004638671875,
0.011383056640625,
-0.007061004638671875,
-0.043975830078125,
-0.0282440185546875,
0.056427001953125,
-0.021087646484375,
-0.0016193389892578125,
-0.00006651878356933594,
0.006381988525390625,
-0.031097412109375,
0.022796630859375,
-0.0084075927734375,
-0.0506591796875,
0.00015032291412353516,
0.01241302490234375,
-0.005413055419921875,
0.0251922607421875,
0.00782012939453125,
0.052215576171875,
0.0105438232421875,
0.016387939453125,
0.005664825439453125,
-0.040557861328125,
0.02392578125,
0.046661376953125,
-0.05718994140625,
-0.0406494140625,
-0.004638671875,
0.0008945465087890625,
-0.00042438507080078125,
0.007198333740234375,
0.0419921875,
-0.0015516281127929688,
-0.0296783447265625,
0.01132965087890625,
0.0250396728515625,
0.0306549072265625,
-0.0157928466796875,
0.0195159912109375,
0.0204620361328125,
-0.0206146240234375,
0.020294189453125,
0.0014934539794921875,
-0.01480865478515625,
-0.02362060546875,
-0.0218353271484375,
0.01678466796875,
-0.01465606689453125,
-0.040740966796875,
-0.06884765625,
-0.0228729248046875,
0.046783447265625,
0.0255889892578125,
-0.09527587890625,
0.036041259765625,
0.01361846923828125,
0.059326171875,
-0.011016845703125,
-0.0084075927734375,
-0.01171112060546875,
0.043670654296875,
-0.0221099853515625,
-0.023712158203125,
-0.0426025390625,
0.00286102294921875,
-0.050262451171875,
0.0297088623046875,
0.038360595703125,
-0.04595947265625,
-0.00446319580078125,
0.0260009765625,
0.04461669921875,
0.06756591796875,
0.012451171875,
-0.028472900390625,
0.00102996826171875,
-0.01108551025390625,
0.005084991455078125,
0.020843505859375,
0.0066070556640625,
0.0013523101806640625,
-0.0293121337890625,
-0.01074981689453125,
-0.01300048828125,
-0.006267547607421875,
-0.047760009765625,
-0.0546875,
-0.01448822021484375,
0.009246826171875,
-0.042938232421875,
-0.03131103515625,
0.0615234375,
-0.0200958251953125,
0.0361328125,
-0.009918212890625,
0.031036376953125,
0.04107666015625,
0.0149688720703125,
0.0211334228515625,
-0.0183563232421875,
0.0645751953125,
-0.01013946533203125,
0.00011223554611206055,
0.00835418701171875,
0.012420654296875,
0.02252197265625,
-0.01708984375,
-0.0093994140625,
0.0254669189453125,
0.005828857421875,
-0.050079345703125,
0.005687713623046875,
0.00653076171875,
0.03668212890625,
0.0158843994140625,
-0.03607177734375,
-0.03973388671875,
-0.037261962890625,
0.04254150390625,
0.0052337646484375,
0.011810302734375,
-0.00930023193359375,
0.03399658203125,
0.01904296875,
-0.0618896484375,
0.024017333984375,
0.01934814453125,
-0.036285400390625,
0.00039958953857421875,
0.006427764892578125,
-0.0266876220703125,
-0.0240020751953125,
0.042449951171875,
-0.03900146484375,
-0.00798797607421875,
-0.0367431640625,
-0.050994873046875,
-0.04034423828125,
0.00926971435546875,
0.0550537109375,
-0.0243072509765625,
0.004817962646484375,
0.0006628036499023438,
-0.0025119781494140625,
0.033599853515625,
-0.002452850341796875,
-0.0114288330078125,
-0.033843994140625,
0.01068878173828125,
0.01031494140625,
0.007617950439453125,
0.0100860595703125,
0.024993896484375,
-0.0265350341796875,
0.013397216796875,
0.01482391357421875,
-0.0027790069580078125,
0.008544921875,
-0.0400390625,
0.08709716796875,
-0.0194244384765625,
0.0821533203125,
-0.028594970703125,
0.008392333984375,
-0.006595611572265625,
-0.005489349365234375,
-0.0007467269897460938,
0.0030117034912109375,
0.04736328125,
-0.03045654296875,
0.004314422607421875,
0.0176239013671875,
-0.03741455078125,
-0.02435302734375,
-0.0087432861328125,
-0.006744384765625,
0.0037384033203125,
-0.00695037841796875
] |
417c20f6bff7a11cb8f78196b4b062812c0eebd6 | Wordpress Stackexchange
Q: how does wp.media javascript library work? I'm building a custom dashboard and I'd like to add a feature which allows a user to upload an image.
However, by calling wp.media() (with a title, button & multiple args) javascript throws an error this.activateMode is not a function - Shouldn't it pop-up the media view/modal?
For clarifying, I'm calling wp.media in a button's click event callback
function. And yes, I load all the necessary styles/scripts by calling wp_enqueue_media(); and I do see them in the page's source code. And wp.media is not undefined, so it is loaded.
WordPress has very limited dev docs overall, so I'm not sure what dependencies wp.media has/needs in order to work properly. I dove into the source code but couldn't find an answer. Seems like it should work properly by simply calling the wp.media
So.... What I'm missing?
Sure I could build my own modal for media CRUD actions by using WP REST API but it would be a time-consuming process.
A: To solve " TypeError: this.activateMode is not a function " error, add lodash as an external in your webpack config file.
externals: {
'lodash': 'lodash'
}
| Q: how does wp.media javascript library work? I'm building a custom dashboard and I'd like to add a feature which allows a user to upload an image.
However, by calling wp.media() (with a title, button & multiple args) javascript throws an error this.activateMode is not a function - Shouldn't it pop-up the media view/modal?
For clarifying, I'm calling wp.media in a button's click event callback
function. And yes, I load all the necessary styles/scripts by calling wp_enqueue_media(); and I do see them in the page's source code. And wp.media is not undefined, so it is loaded.
WordPress has very limited dev docs overall, so I'm not sure what dependencies wp.media has/needs in order to work properly. I dove into the source code but couldn't find an answer. Seems like it should work properly by simply calling the wp.media
So.... What I'm missing?
Sure I could build my own modal for media CRUD actions by using WP REST API but it would be a time-consuming process.
A: To solve " TypeError: this.activateMode is not a function " error, add lodash as an external in your webpack config file.
externals: {
'lodash': 'lodash'
}
| wordpress | {
"language": "en",
"length": 192,
"provenance": "stackexchange_00019.jsonl.gz:491771",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/324863"
} | [
0.037261962890625,
0.01253509521484375,
-0.0287017822265625,
-0.02838134765625,
0.03778076171875,
-0.0204620361328125,
0.020355224609375,
-0.01552581787109375,
-0.00386810302734375,
0.0217437744140625,
-0.054290771484375,
0.03216552734375,
0.00421142578125,
-0.00698089599609375,
0.01132965087890625,
-0.025421142578125,
0.02337646484375,
-0.007503509521484375,
0.01030731201171875,
-0.0055999755859375,
-0.0017423629760742188,
0.0079193115234375,
0.0207977294921875,
0.0217742919921875,
-0.01360321044921875,
0.0024871826171875,
0.058013916015625,
-0.0011148452758789062,
-0.006824493408203125,
-0.015838623046875,
0.00951385498046875,
-0.00794219970703125,
-0.002231597900390625,
0.040557861328125,
-0.0275421142578125,
-0.049591064453125,
-0.00598907470703125,
0.032073974609375,
0.0274200439453125,
-0.0009202957153320312,
0.01983642578125,
-0.0080413818359375,
0.0186920166015625,
0.039306640625,
-0.01146697998046875,
-0.04022216796875,
0.0157623291015625,
-0.0570068359375,
0.0117034912109375,
0.033843994140625,
-0.00916290283203125,
0.00997161865234375,
0.0008220672607421875,
-0.0144195556640625,
-0.023681640625,
-0.050201416015625,
-0.011016845703125,
0.0106964111328125,
0.00859832763671875,
0.0772705078125,
0.00463104248046875,
0.040313720703125,
-0.038543701171875,
-0.05548095703125,
0.0289154052734375,
-0.0129547119140625,
-0.0238494873046875,
0.05535888671875,
-0.04815673828125,
0.00475311279296875,
0.01450347900390625,
-0.05316162109375,
0.00843048095703125,
-0.000728607177734375,
-0.034515380859375,
-0.031219482421875,
0.0076904296875,
-0.051513671875,
0.0335693359375,
-0.0126495361328125,
0.03802490234375,
-0.014312744140625,
0.0008716583251953125,
-0.01910400390625,
0.04852294921875,
0.0290679931640625,
0.00878143310546875,
-0.031707763671875,
-0.029296875,
0.0145263671875,
-0.0271759033203125,
-0.06024169921875,
0.01187896728515625,
0.004299163818359375,
-0.00428009033203125,
0.0019435882568359375,
0.007656097412109375,
0.026641845703125,
-0.005825042724609375,
0.006183624267578125,
0.0306854248046875,
-0.041351318359375,
0.045501708984375,
-0.036865234375,
-0.00818634033203125,
0.0233001708984375,
-0.015167236328125,
-0.01416778564453125,
0.0176849365234375,
0.0277557373046875,
-0.02166748046875,
-0.0188446044921875,
0.01332855224609375,
0.00140380859375,
0.0120391845703125,
-0.01485443115234375,
-0.0240631103515625,
0.041229248046875,
0.002346038818359375,
0.0335693359375,
0.00778961181640625,
-0.01123046875,
0.0003714561462402344,
0.04290771484375,
0.00771331787109375,
0.00913238525390625,
-0.0224151611328125,
0.0076904296875,
-0.0009112358093261719,
0.006389617919921875,
-0.0215301513671875,
0.0264739990234375,
0.0345458984375,
-0.011260986328125,
-0.004688262939453125,
-0.00934600830078125,
0.0247344970703125,
0.0338134765625,
0.032745361328125,
-0.0144500732421875,
0.046356201171875,
-0.0421142578125,
-0.0196990966796875,
0.05255126953125,
0.00646209716796875,
0.01018524169921875,
0.0203399658203125,
-0.0070648193359375,
-0.00807952880859375,
0.013275146484375,
0.00450897216796875,
-0.0110015869140625,
0.04986572265625,
0.0150146484375,
0.0009860992431640625,
-0.0207672119140625,
0.09918212890625,
-0.070068359375,
-0.027069091796875,
-0.074951171875,
0.0171661376953125,
-0.0117034912109375,
0.025146484375,
-0.01084136962890625,
-0.0106201171875,
0.006183624267578125,
-0.07293701171875,
-0.009674072265625,
0.0316162109375,
0.1004638671875,
-0.03851318359375,
-0.0301513671875,
-0.02435302734375,
0.043304443359375,
0.01241302490234375,
0.0335693359375,
0.04022216796875,
0.0030994415283203125,
0.0161285400390625,
0.0289764404296875,
-0.00014400482177734375,
-0.01134490966796875,
0.09564208984375,
-0.042022705078125,
-0.039794921875,
0.0008401870727539062,
0.0285491943359375,
0.059234619140625,
0.01519775390625,
0.032958984375,
0.0208282470703125,
0.00048828125,
0.025634765625,
0.0010690689086914062,
-0.0264739990234375,
-0.0296630859375,
-0.025970458984375,
0.024871826171875,
-0.040191650390625,
0.02874755859375,
0.08160400390625,
0.0157470703125,
-0.01806640625,
-0.0116729736328125,
-0.089111328125,
0.0037174224853515625,
-0.02337646484375,
0.0168609619140625,
-0.006900787353515625,
-0.0013933181762695312,
0.0243072509765625,
0.0009632110595703125,
-0.045684814453125,
0.0191802978515625,
-0.0180511474609375,
-0.0016937255859375,
-0.043731689453125,
0.0430908203125,
-0.020599365234375,
0.0384521484375,
-0.0267181396484375,
-0.0740966796875,
-0.0037288665771484375,
0.0245819091796875,
0.01332855224609375,
0.0018758773803710938,
-0.0023956298828125,
-0.0143280029296875,
0.0238800048828125,
0.0217742919921875,
0.0170745849609375,
-0.0034542083740234375,
-0.0157470703125,
0.0084686279296875,
-0.017181396484375,
-0.0158843994140625,
-0.0035991668701171875,
-0.0648193359375,
0.037811279296875,
0.05517578125,
0.0097503662109375,
0.013641357421875,
0.0191497802734375,
0.0804443359375,
0.05169677734375,
0.05133056640625,
0.0347900390625,
0.0130767822265625,
-0.0005540847778320312,
0.02044677734375,
-0.0180511474609375,
-0.0190887451171875,
0.01983642578125,
-0.06427001953125,
-0.020355224609375,
0.035736083984375,
0.00882720947265625,
0.0172271728515625,
0.0010251998901367188,
-0.021484375,
0.00582122802734375,
-0.036865234375,
-0.0357666015625,
-0.0089874267578125,
-0.01271820068359375,
-0.01094818115234375,
-0.016326904296875,
0.0006380081176757812,
-0.00400543212890625,
-0.006443023681640625,
0.021453857421875,
-0.04937744140625,
0.0108489990234375,
0.039581298828125,
0.0239410400390625,
0.004543304443359375,
-0.0068359375,
-0.030853271484375,
-0.0035343170166015625,
0.01922607421875,
-0.00861358642578125,
0.003936767578125,
-0.026031494140625,
-0.0220184326171875,
0.0309906005859375,
-0.06060791015625,
-0.0201873779296875,
-0.0126190185546875,
-0.017578125,
-0.0183258056640625,
0.040740966796875,
0.0017004013061523438,
-0.01739501953125,
0.0033245086669921875,
-0.0099945068359375,
-0.0258941650390625,
-0.005756378173828125,
-0.005428314208984375,
0.030670166015625,
-0.04498291015625,
0.07196044921875,
0.047119140625,
-0.07257080078125,
0.060791015625,
-0.0074310302734375,
0.0494384765625,
0.01082611083984375,
0.01393890380859375,
-0.005229949951171875,
-0.0308837890625,
-0.016265869140625,
-0.00946807861328125,
0.0252532958984375,
-0.01263427734375,
0.0030918121337890625,
-0.04205322265625,
-0.0306243896484375,
-0.01410675048828125,
-0.11968994140625,
-0.09442138671875,
0.0248260498046875,
-0.09210205078125,
0.030303955078125,
-0.0008778572082519531,
-0.053131103515625,
-0.038482666015625,
0.0408935546875,
0.007411956787109375,
-0.0535888671875,
-0.00007474422454833984,
0.005329132080078125,
-0.028289794921875,
-0.032745361328125,
0.01383209228515625,
0.002101898193359375,
0.0211639404296875,
0.00766754150390625,
0.004116058349609375,
0.00974273681640625,
0.0114288330078125,
0.0302886962890625,
-0.006252288818359375,
0.013275146484375,
-0.01190948486328125,
0.021087646484375,
-0.01061248779296875,
-0.0209197998046875,
0.003997802734375,
0.0301055908203125,
0.0218963623046875,
-0.033355712890625,
-0.002826690673828125,
-0.0005469322204589844,
-0.006351470947265625,
-0.0246734619140625,
0.087890625,
0.02783203125,
-0.02044677734375,
0.0161895751953125,
-0.044586181640625,
-0.001644134521484375,
-0.02117919921875,
-0.0418701171875,
-0.01271820068359375,
0.0362548828125,
-0.0125274658203125,
-0.006053924560546875,
-0.035003662109375,
0.0311431884765625,
0.035552978515625,
-0.003696441650390625,
-0.0050811767578125,
0.032135009765625,
0.0009546279907226562,
0.0250244140625,
-0.0160980224609375,
0.03216552734375,
-0.003997802734375,
-0.0286712646484375,
0.005889892578125,
-0.01232147216796875,
-0.01366424560546875,
-0.004489898681640625,
-0.023284912109375,
0.004749298095703125,
0.0244598388671875,
0.01461029052734375,
0.0097503662109375,
0.0026874542236328125,
-0.0184173583984375,
0.010467529296875,
0.043701171875,
-0.0133819580078125,
-0.006378173828125,
0.02178955078125,
-0.005535125732421875,
-0.0472412109375,
0.015777587890625,
-0.06866455078125,
-0.004322052001953125,
-0.0190277099609375,
0.01446533203125,
0.0028781890869140625,
0.005084991455078125,
-0.03118896484375,
0.0155792236328125,
-0.0280609130859375,
-0.0208740234375,
0.038970947265625,
0.004512786865234375,
-0.0023403167724609375,
0.002155303955078125,
-0.0153045654296875,
-0.0129547119140625,
-0.0213165283203125,
0.00003147125244140625,
-0.09674072265625,
-0.00362396240234375,
-0.02203369140625,
0.035675048828125,
-0.03558349609375,
0.024444580078125,
-0.048553466796875,
0.0255279541015625,
0.038238525390625,
0.005191802978515625,
0.0145721435546875,
-0.01568603515625,
0.0445556640625,
-0.030792236328125,
-0.01186370849609375,
-0.0286865234375,
0.0017147064208984375,
-0.004360198974609375,
-0.041717529296875,
0.046630859375,
-0.021636962890625,
0.0127105712890625,
0.01190185546875,
-0.032684326171875,
-0.0200653076171875,
-0.0016231536865234375,
-0.026824951171875,
0.046478271484375,
-0.025726318359375,
0.00850677490234375,
-0.027099609375,
-0.03302001953125,
0.01800537109375,
-0.0303955078125,
0.0009250640869140625,
-0.00945281982421875,
0.04315185546875,
0.0231475830078125,
-0.006908416748046875,
0.04388427734375,
0.01152801513671875,
0.032135009765625,
0.026092529296875,
0.03704833984375,
-0.006992340087890625,
-0.0269012451171875,
0.07666015625,
0.009765625,
0.030853271484375,
-0.0006194114685058594,
0.0268096923828125,
0.02655029296875,
-0.01532745361328125,
0.0246734619140625,
0.06158447265625,
-0.0643310546875,
-0.0118255615234375,
-0.035369873046875,
0.040863037109375,
-0.00360107421875,
0.0009965896606445312,
-0.0254669189453125,
0.0186614990234375,
-0.003673553466796875,
-0.047149658203125,
0.0204315185546875,
-0.0863037109375,
0.056915283203125,
0.0028591156005859375,
-0.0031147003173828125,
0.0208892822265625,
0.02947998046875,
0.0253753662109375,
0.01971435546875,
0.04144287109375,
-0.03472900390625,
0.0465087890625,
0.0401611328125,
0.0026569366455078125,
-0.007762908935546875,
0.0119476318359375,
-0.007022857666015625,
-0.01727294921875,
-0.059326171875,
-0.0228424072265625,
0.0025501251220703125,
-0.006542205810546875,
0.0282745361328125,
0.00235748291015625,
0.045257568359375,
0.038299560546875,
-0.0030307769775390625,
0.0025691986083984375,
0.017547607421875,
-0.00009495019912719727,
-0.04376220703125,
-0.00024211406707763672,
-0.009124755859375,
-0.01221466064453125,
0.00215911865234375,
0.037384033203125,
0.0231170654296875,
0.0016469955444335938,
-0.00611114501953125,
0.034454345703125,
-0.01241302490234375,
0.062408447265625,
0.0183563232421875,
-0.043060302734375,
0.030517578125,
0.022430419921875,
-0.00421905517578125,
-0.057281494140625,
-0.01413726806640625,
0.040313720703125,
0.05511474609375,
0.01172637939453125,
-0.009490966796875,
-0.005512237548828125,
0.00402069091796875,
-0.0312347412109375,
0.033203125,
-0.006908416748046875,
-0.03900146484375,
-0.029510498046875,
0.004138946533203125,
0.024658203125,
0.0162353515625,
-0.012969970703125,
0.0211029052734375,
0.0007929801940917969,
0.0300445556640625,
0.0007758140563964844,
-0.02056884765625,
0.0289154052734375,
0.04144287109375,
-0.01488494873046875,
-0.0096435546875,
-0.0033359527587890625,
-0.01236724853515625,
-0.0034942626953125,
-0.0129852294921875,
-0.032806396484375,
0.045440673828125,
-0.0110931396484375,
-0.011322021484375,
-0.0357666015625,
0.032806396484375,
-0.06011962890625,
0.0124359130859375,
0.0229644775390625,
-0.01264190673828125,
-0.02294921875,
-0.018798828125,
-0.0245819091796875,
-0.033203125,
-0.01947021484375,
-0.0208740234375,
-0.04296875,
-0.004669189453125,
0.000438690185546875,
0.014251708984375,
0.0124969482421875,
0.01605224609375,
-0.0008606910705566406,
0.024810791015625,
0.005916595458984375,
0.03997802734375,
0.0044097900390625,
0.04681396484375,
0.012420654296875,
0.047821044921875,
0.03155517578125,
0.01055145263671875,
-0.048492431640625,
-0.0220947265625,
-0.0218048095703125,
-0.05242919921875,
-0.003082275390625,
0.0279998779296875,
-0.020843505859375,
0.0230712890625,
0.00954437255859375,
0.0037937164306640625,
0.060211181640625,
0.00881195068359375,
0.0126800537109375,
-0.0185089111328125,
-0.036376953125,
-0.026336669921875,
0.036773681640625,
0.01416778564453125,
-0.05133056640625,
-0.0021457672119140625,
-0.0225982666015625,
-0.00994110107421875,
0.050506591796875,
-0.04278564453125,
0.0322265625,
0.050201416015625,
-0.025421142578125,
0.03314208984375,
0.04833984375,
-0.0196990966796875,
0.0155792236328125,
0.017791748046875,
-0.0186309814453125,
0.007541656494140625,
0.06756591796875,
-0.0014638900756835938,
-0.08636474609375,
0.01036834716796875,
-0.01287078857421875,
-0.0350341796875,
-0.0279388427734375,
-0.0224761962890625,
0.0168304443359375,
0.0205078125,
0.04669189453125,
-0.0295562744140625,
-0.0078125,
-0.01392364501953125,
-0.046661376953125,
0.035919189453125,
-0.0146484375,
-0.01453399658203125,
0.00958251953125,
-0.0003809928894042969,
-0.0279083251953125,
-0.039215087890625,
0.01287078857421875,
0.01209259033203125,
-0.006046295166015625,
0.0343017578125,
-0.0185699462890625,
-0.002002716064453125,
-0.035491943359375,
-0.03558349609375,
0.035888671875,
-0.0008916854858398438,
0.0186920166015625,
0.048675537109375,
-0.033203125,
-0.0117034912109375,
-0.00908660888671875,
-0.0031890869140625,
-0.0135955810546875,
-0.06268310546875,
0.0213623046875,
-0.0280303955078125,
0.04150390625,
0.039459228515625,
-0.018463134765625,
0.0142822265625,
-0.0062713623046875,
0.0007615089416503906,
0.0261383056640625,
-0.0292205810546875,
0.01346588134765625,
-0.006771087646484375,
-0.06243896484375,
0.00395965576171875,
-0.02142333984375,
-0.00958251953125,
0.0022296905517578125,
-0.029815673828125,
0.00919342041015625,
-0.00838470458984375,
-0.01324462890625,
0.058319091796875,
-0.0140380859375,
-0.0279083251953125,
-0.006336212158203125,
0.035003662109375,
-0.057403564453125,
-0.020355224609375,
0.0072174072265625,
-0.0118255615234375,
-0.03167724609375,
-0.0303192138671875,
-0.0201568603515625,
0.11444091796875,
-0.01245880126953125,
0.00994873046875,
0.0775146484375,
0.032745361328125,
-0.07989501953125,
0.005596160888671875,
-0.01477813720703125,
0.03125,
-0.04095458984375,
-0.0022125244140625,
-0.05291748046875,
0.01446533203125,
-0.036712646484375,
0.005161285400390625,
0.004016876220703125,
-0.008056640625,
-0.016510009765625,
-0.024566650390625,
0.02203369140625,
0.017730712890625,
0.00678253173828125,
0.0218658447265625,
-0.0290679931640625,
-0.0029735565185546875,
-0.024993896484375,
-0.036651611328125,
0.01206207275390625,
-0.052764892578125,
-0.03961181640625,
-0.016357421875,
0.01580810546875,
0.014984130859375,
0.02105712890625,
0.0268402099609375,
-0.031280517578125,
0.024261474609375,
0.0272216796875,
-0.0036563873291015625,
-0.0174407958984375,
0.057037353515625,
-0.016693115234375,
0.043365478515625,
-0.0208282470703125,
-0.020233154296875,
0.0211334228515625,
-0.020172119140625,
-0.05487060546875,
-0.0107421875,
0.00818634033203125,
-0.06634521484375,
-0.026947021484375,
-0.0521240234375,
-0.003139495849609375,
0.01253509521484375,
0.045928955078125,
0.028656005859375,
0.03045654296875,
-0.042327880859375,
-0.017303466796875,
0.053985595703125,
0.07940673828125,
-0.02557373046875,
-0.03753662109375,
0.021270751953125,
0.0279998779296875,
-0.0113525390625,
0.00965118408203125,
0.021881103515625,
-0.00673675537109375,
0.0211181640625,
-0.005950927734375,
0.0211181640625,
0.01220703125,
0.025299072265625,
0.014373779296875,
0.04644775390625,
-0.06768798828125,
0.017608642578125,
-0.05419921875,
0.019775390625,
0.023773193359375,
0.07574462890625,
0.01727294921875,
0.058563232421875,
-0.05523681640625,
-0.033477783203125,
-0.0160064697265625,
0.06842041015625,
0.06884765625,
-0.01293182373046875,
0.00983428955078125,
-0.0147705078125,
0.049591064453125,
-0.007549285888671875,
0.0245513916015625,
0.06500244140625,
0.063232421875,
0.048797607421875,
0.0170440673828125,
0.0216827392578125,
0.06268310546875,
-0.0100250244140625,
-0.00995635986328125,
-0.0054931640625,
0.0126495361328125,
0.0040435791015625,
0.0021686553955078125,
0.002780914306640625,
0.06243896484375,
-0.0081939697265625,
-0.061614990234375,
0.043609619140625,
-0.01155853271484375,
-0.01413726806640625,
0.0654296875,
0.004154205322265625,
0.0775146484375,
-0.0285186767578125,
-0.04986572265625,
-0.013092041015625,
-0.00797271728515625,
-0.04962158203125,
0.031341552734375,
0.046875,
-0.053955078125,
0.03741455078125,
-0.045501708984375,
0.01137542724609375,
0.00007367134094238281,
0.0019626617431640625,
-0.012359619140625,
-0.028656005859375,
0.0169525146484375,
-0.01403045654296875,
-0.019256591796875,
-0.0137481689453125,
-0.01192474365234375,
0.02642822265625,
0.00804901123046875,
0.0771484375,
-0.0207366943359375,
0.0281524658203125,
0.01511383056640625,
-0.0031280517578125,
0.00418853759765625,
0.029022216796875,
-0.068359375,
0.006023406982421875,
0.033966064453125,
-0.0009188652038574219,
-0.008514404296875,
0.0211181640625,
0.0120849609375,
-0.00043463706970214844,
-0.0132904052734375,
0.006084442138671875,
0.01541900634765625,
0.034942626953125,
0.01800537109375,
-0.0276336669921875,
-0.023651123046875,
-0.01476287841796875,
0.0091400146484375,
0.01317596435546875,
-0.0020046234130859375,
-0.029815673828125,
-0.01287841796875,
-0.0108489990234375,
-0.06585693359375,
-0.00662994384765625,
-0.0195465087890625,
-0.04266357421875,
0.0030155181884765625,
0.0736083984375,
0.01690673828125,
0.010162353515625,
-0.02294921875,
0.0141143798828125,
0.0213775634765625,
-0.0163116455078125,
0.01715087890625,
-0.007625579833984375,
0.044647216796875,
0.05322265625,
-0.0033740997314453125,
-0.05560302734375,
-0.0264739990234375,
0.11175537109375,
-0.044677734375,
0.010284423828125,
-0.018096923828125,
-0.002155303955078125,
-0.007175445556640625,
-0.0229339599609375,
0.0252227783203125,
-0.0240325927734375,
0.01497650146484375,
-0.052886962890625,
0.0198822021484375,
0.0167388916015625,
0.00722503662109375,
-0.04241943359375,
0.0202484130859375,
-0.02886962890625,
0.035736083984375,
0.00022292137145996094,
0.02581787109375,
-0.016357421875,
-0.017242431640625,
-0.046630859375,
-0.046142578125,
-0.022918701171875,
0.050018310546875,
-0.00897216796875,
0.033966064453125,
0.0213470458984375,
-0.0250244140625,
0.032684326171875,
0.04840087890625,
0.015167236328125,
0.1058349609375,
0.0004799365997314453,
-0.0185546875,
-0.025238037109375,
0.0244598388671875,
0.01617431640625,
-0.0248870849609375,
-0.006252288818359375,
-0.006542205810546875,
-0.0025482177734375,
-0.001941680908203125,
-0.0017251968383789062,
0.0181121826171875,
-0.044647216796875,
-0.0892333984375,
-0.006275177001953125,
0.0000050067901611328125,
-0.03631591796875,
-0.052001953125,
-0.002651214599609375,
-0.0019130706787109375,
0.0089111328125,
-0.01715087890625,
-0.0189666748046875,
-0.0249786376953125,
0.042022705078125,
0.02288818359375,
-0.0015535354614257812,
0.0192718505859375,
0.036102294921875,
-0.04412841796875,
0.016082763671875,
-0.0198822021484375,
-0.007289886474609375,
-0.025787353515625,
0.015655517578125,
0.0118408203125,
0.030853271484375,
-0.01885986328125,
0.0097503662109375,
0.01007843017578125,
0.00896453857421875,
-0.032928466796875,
-0.042724609375,
0.00768280029296875,
-0.013885498046875,
0.040802001953125,
0.051544189453125,
-0.0011510848999023438,
-0.04498291015625,
0.0261688232421875,
-0.045257568359375,
-0.0083770751953125,
0.01215362548828125,
-0.0180206298828125,
0.001346588134765625,
0.0382080078125,
-0.00856781005859375,
0.00360107421875,
0.0010709762573242188,
-0.04144287109375,
-0.0122833251953125,
-0.0040130615234375,
-0.0054931640625,
0.032562255859375,
-0.00658416748046875,
-0.041473388671875,
0.10308837890625,
-0.05224609375,
-0.008636474609375,
0.038238525390625,
0.03460693359375,
0.05767822265625,
0.025054931640625,
0.004547119140625,
-0.01336669921875,
-0.01064300537109375,
0.0232696533203125,
0.0009560585021972656,
0.01229095458984375,
-0.0224456787109375,
-0.0265655517578125,
0.016357421875,
0.0161895751953125,
-0.0247650146484375,
0.0142974853515625,
0.030426025390625,
0.036407470703125,
-0.033599853515625,
0.03961181640625,
-0.03271484375,
0.059478759765625,
-0.0134429931640625,
0.0265655517578125,
-0.003925323486328125,
0.005992889404296875,
0.02685546875,
0.00493621826171875,
-0.020782470703125,
-0.01119232177734375,
-0.04376220703125,
-0.08306884765625,
0.0166168212890625,
0.04205322265625,
0.006229400634765625,
0.029144287109375
] |
7f1bb92ad4181a986524f130111e04c2502e0822 | Wordpress Stackexchange
Q: Custom action button in Gutenberg editor (post_submitbox_misc_actions - equivalent) On Classic Editor and Wordress 4.x i used 'post_submitbox_misc_actions' action to add custom control to submit box area. Is there a way to do this in Gutenberg editor? Some equivalent to old action?
Thanks for Your help.
A: wp_enqueue_script(
'some-slug',
'/path/to/script.js',
array( 'wp-edit-post', 'wp-plugins', 'wp-i18n', 'wp-element' ),
'0.1'
);
script.js:
var el = wp.element.createElement;
var __ = wp.i18n.__;
var registerPlugin = wp.plugins.registerPlugin;
var PluginPostStatusInfo = wp.editPost.PluginPostStatusInfo;
var TextControl = wp.components.TextControl;
function MyPostStatusInfoPlugin({}) {
return el(
PluginPostStatusInfo,
{
className: 'my-post-status-info'
},
el(
TextControl,
{
name: 'my_edit_summary',
label: __( 'Edit summary' ),
help: __( 'Briefly summarise your changes' )
}
)
);
}
registerPlugin( 'my-post-status-info-plugin', {
render: MyPostStatusInfoPlugin
} );
| Q: Custom action button in Gutenberg editor (post_submitbox_misc_actions - equivalent) On Classic Editor and Wordress 4.x i used 'post_submitbox_misc_actions' action to add custom control to submit box area. Is there a way to do this in Gutenberg editor? Some equivalent to old action?
Thanks for Your help.
A: wp_enqueue_script(
'some-slug',
'/path/to/script.js',
array( 'wp-edit-post', 'wp-plugins', 'wp-i18n', 'wp-element' ),
'0.1'
);
script.js:
var el = wp.element.createElement;
var __ = wp.i18n.__;
var registerPlugin = wp.plugins.registerPlugin;
var PluginPostStatusInfo = wp.editPost.PluginPostStatusInfo;
var TextControl = wp.components.TextControl;
function MyPostStatusInfoPlugin({}) {
return el(
PluginPostStatusInfo,
{
className: 'my-post-status-info'
},
el(
TextControl,
{
name: 'my_edit_summary',
label: __( 'Edit summary' ),
help: __( 'Briefly summarise your changes' )
}
)
);
}
registerPlugin( 'my-post-status-info-plugin', {
render: MyPostStatusInfoPlugin
} );
| wordpress | {
"language": "en",
"length": 118,
"provenance": "stackexchange_00019.jsonl.gz:491800",
"question_score": "8",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/324996"
} | [
0.03631591796875,
0.0031604766845703125,
0.0159759521484375,
-0.0186004638671875,
-0.0006818771362304688,
-0.0078887939453125,
0.034210205078125,
-0.0204925537109375,
-0.004848480224609375,
0.056365966796875,
0.0236358642578125,
-0.010986328125,
0.02716064453125,
-0.0303192138671875,
-0.01837158203125,
0.0086822509765625,
0.042083740234375,
0.0007042884826660156,
0.050384521484375,
0.005126953125,
-0.016815185546875,
0.020416259765625,
0.031646728515625,
0.0047760009765625,
0.005718231201171875,
0.002376556396484375,
0.059295654296875,
-0.017974853515625,
-0.0073089599609375,
-0.0288238525390625,
0.0238189697265625,
0.00763702392578125,
0.04473876953125,
0.0195465087890625,
-0.06378173828125,
0.0256805419921875,
0.02752685546875,
-0.0128326416015625,
-0.0292816162109375,
0.0445556640625,
0.036468505859375,
-0.040771484375,
-0.037872314453125,
-0.01922607421875,
-0.0283050537109375,
-0.033416748046875,
0.05096435546875,
-0.022491455078125,
0.03619384765625,
-0.0023059844970703125,
-0.01947021484375,
0.036895751953125,
-0.00991058349609375,
-0.060028076171875,
-0.0113525390625,
-0.0211029052734375,
-0.050445556640625,
0.0509033203125,
0.0152435302734375,
0.060302734375,
0.005985260009765625,
0.0257720947265625,
-0.0243988037109375,
-0.03662109375,
0.01372528076171875,
-0.01148223876953125,
0.018829345703125,
0.0007491111755371094,
0.014312744140625,
0.016387939453125,
0.0038585662841796875,
-0.0110321044921875,
0.00920867919921875,
-0.01358795166015625,
0.0056304931640625,
-0.035064697265625,
0.001377105712890625,
-0.03515625,
0.0179443359375,
0.007495880126953125,
-0.0222625732421875,
0.0015087127685546875,
-0.01025390625,
-0.038238525390625,
-0.0030536651611328125,
-0.023651123046875,
-0.01629638671875,
0.0082244873046875,
-0.0328369140625,
-0.048858642578125,
-0.0195770263671875,
-0.10101318359375,
-0.0283966064453125,
0.021392822265625,
0.0035610198974609375,
-0.01580810546875,
0.0274658203125,
-0.01486968994140625,
-0.0018558502197265625,
-0.0285797119140625,
0.052642822265625,
-0.061126708984375,
0.056915283203125,
0.0048370361328125,
0.00977325439453125,
0.05352783203125,
-0.010528564453125,
0.0469970703125,
0.04095458984375,
0.00742340087890625,
0.00594329833984375,
-0.0245513916015625,
-0.0101318359375,
-0.007110595703125,
-0.0134124755859375,
0.0018110275268554688,
-0.03900146484375,
0.007701873779296875,
-0.01331329345703125,
0.0016021728515625,
-0.00891876220703125,
-0.0175018310546875,
0.048248291015625,
-0.0239410400390625,
0.00591278076171875,
-0.0114593505859375,
-0.0238800048828125,
-0.0254058837890625,
0.03564453125,
-0.024383544921875,
-0.03131103515625,
0.0234222412109375,
0.07794189453125,
0.040618896484375,
0.01898193359375,
-0.00226593017578125,
0.05914306640625,
0.00580596923828125,
-0.0209503173828125,
0.00691986083984375,
-0.0203857421875,
0.0159912109375,
0.0113067626953125,
-0.048065185546875,
0.025970458984375,
0.0162811279296875,
0.02880859375,
0.0006570816040039062,
-0.00469970703125,
-0.050750732421875,
0.0058746337890625,
-0.005374908447265625,
0.04803466796875,
0.0061187744140625,
-0.0364990234375,
-0.0193328857421875,
0.016021728515625,
-0.0265350341796875,
-0.01238250732421875,
-0.043487548828125,
0.0158843994140625,
-0.0050506591796875,
-0.01494598388671875,
-0.05841064453125,
-0.07391357421875,
-0.01029205322265625,
0.0026340484619140625,
-0.003704071044921875,
0.024139404296875,
0.0105133056640625,
0.0107879638671875,
0.0272064208984375,
0.044952392578125,
-0.005779266357421875,
-0.0130157470703125,
-0.018341064453125,
-0.033416748046875,
0.013580322265625,
0.0193023681640625,
0.01629638671875,
0.013916015625,
-0.01522064208984375,
0.034271240234375,
0.0258331298828125,
-0.05767822265625,
0.012054443359375,
-0.00557708740234375,
0.048614501953125,
0.0284576416015625,
0.0006504058837890625,
0.01258087158203125,
-0.00614166259765625,
-0.032196044921875,
0.0124359130859375,
-0.0287628173828125,
-0.007312774658203125,
0.01114654541015625,
0.0252532958984375,
-0.012298583984375,
0.0177764892578125,
-0.0082244873046875,
0.004245758056640625,
0.013275146484375,
0.01525115966796875,
-0.0538330078125,
0.035186767578125,
-0.02020263671875,
0.039031982421875,
0.0200958251953125,
0.0040435791015625,
0.014801025390625,
0.0068206787109375,
-0.01016998291015625,
-0.032806396484375,
-0.036651611328125,
0.0220947265625,
-0.01303863525390625,
0.038543701171875,
0.0264434814453125,
0.0205230712890625,
0.043121337890625,
-0.008209228515625,
0.046966552734375,
0.01806640625,
0.0362548828125,
-0.04156494140625,
0.017242431640625,
-0.0305328369140625,
0.025054931640625,
-0.0015239715576171875,
-0.024932861328125,
0.007076263427734375,
0.00490570068359375,
-0.00177001953125,
-0.0191497802734375,
-0.0037899017333984375,
0.009490966796875,
-0.06597900390625,
0.0156097412109375,
0.04595947265625,
0.0107879638671875,
0.0030689239501953125,
-0.03839111328125,
0.0062713623046875,
0.01111602783203125,
-0.006031036376953125,
0.020660400390625,
0.0093994140625,
0.01253509521484375,
0.040802001953125,
-0.04327392578125,
0.008148193359375,
0.03436279296875,
-0.0290985107421875,
0.0197601318359375,
0.05255126953125,
0.007045745849609375,
-0.0174560546875,
-0.0286407470703125,
-0.004100799560546875,
0.023590087890625,
-0.042083740234375,
-0.06427001953125,
0.0039520263671875,
0.08795166015625,
-0.0009007453918457031,
0.09246826171875,
0.061004638671875,
-0.041961669921875,
0.0052337646484375,
-0.0019588470458984375,
0.01554107666015625,
0.00197601318359375,
0.0292816162109375,
0.0038127899169921875,
0.0018749237060546875,
-0.03973388671875,
0.01308441162109375,
0.014739990234375,
0.0119476318359375,
-0.01509857177734375,
-0.018310546875,
-0.052886962890625,
0.000035822391510009766,
0.032623291015625,
-0.07537841796875,
-0.0118255615234375,
-0.00458526611328125,
0.03631591796875,
-0.03692626953125,
0.021270751953125,
-0.024505615234375,
-0.037078857421875,
0.035980224609375,
0.01227569580078125,
-0.08154296875,
0.062469482421875,
-0.033935546875,
0.0281829833984375,
0.0002899169921875,
0.09423828125,
0.08270263671875,
-0.028045654296875,
0.04730224609375,
-0.0097808837890625,
-0.041748046875,
-0.039794921875,
0.0210418701171875,
-0.016143798828125,
-0.05975341796875,
-0.029052734375,
0.025787353515625,
0.0157928466796875,
0.0100555419921875,
-0.0207977294921875,
-0.031707763671875,
-0.02197265625,
0.006557464599609375,
-0.0582275390625,
-0.033111572265625,
-0.012664794921875,
-0.0897216796875,
0.0301666259765625,
-0.0195465087890625,
-0.042755126953125,
-0.00757598876953125,
0.0234222412109375,
0.0222625732421875,
-0.051025390625,
0.00492095947265625,
-0.007251739501953125,
-0.036865234375,
-0.045013427734375,
-0.01479339599609375,
-0.0016765594482421875,
0.03460693359375,
0.0005826950073242188,
0.03875732421875,
-0.005245208740234375,
-0.04754638671875,
0.00516510009765625,
-0.0000768899917602539,
0.00438690185546875,
0.022796630859375,
0.033782958984375,
-0.03240966796875,
-0.010589599609375,
0.021820068359375,
0.040008544921875,
0.005290985107421875,
-0.026947021484375,
-0.00402069091796875,
-0.0290374755859375,
-0.015533447265625,
0.01136016845703125,
0.027313232421875,
0.0267181396484375,
-0.0027179718017578125,
0.035064697265625,
-0.03594970703125,
-0.0028400421142578125,
0.0274658203125,
-0.0200653076171875,
-0.0210418701171875,
-0.0015869140625,
-0.024566650390625,
0.01274871826171875,
0.00754547119140625,
0.0139923095703125,
0.019989013671875,
0.060150146484375,
0.0096588134765625,
-0.04046630859375,
-0.041595458984375,
-0.03033447265625,
-0.0443115234375,
-0.007106781005859375,
-0.0298919677734375,
0.07769775390625,
0.0101776123046875,
0.028717041015625,
0.01104736328125,
0.005706787109375,
-0.0306243896484375,
-0.0029048919677734375,
0.0135040283203125,
-0.0506591796875,
0.0078582763671875,
-0.049072265625,
-0.00637054443359375,
-0.0156402587890625,
0.028228759765625,
-0.0292510986328125,
-0.00934600830078125,
0.01006317138671875,
0.01387786865234375,
-0.0037860870361328125,
-0.01103973388671875,
-0.044891357421875,
-0.0026092529296875,
-0.060943603515625,
-0.0026397705078125,
0.01169586181640625,
-0.056640625,
-0.00423431396484375,
0.02313232421875,
-0.061126708984375,
-0.024169921875,
0.047821044921875,
-0.06573486328125,
0.012969970703125,
0.030487060546875,
-0.00923919677734375,
-0.01861572265625,
-0.04052734375,
-0.0310211181640625,
-0.09466552734375,
-0.0100250244140625,
-0.027252197265625,
0.0660400390625,
-0.00272369384765625,
0.030426025390625,
-0.0296783447265625,
0.056182861328125,
0.024139404296875,
0.045196533203125,
0.041168212890625,
0.0169677734375,
0.01087188720703125,
-0.043121337890625,
0.037506103515625,
-0.0517578125,
0.00801849365234375,
-0.0161590576171875,
-0.017791748046875,
0.0203094482421875,
-0.036529541015625,
-0.014923095703125,
-0.0168914794921875,
-0.0229644775390625,
-0.04388427734375,
-0.045989990234375,
-0.05279541015625,
0.00640106201171875,
-0.002857208251953125,
-0.03289794921875,
-0.06512451171875,
-0.07122802734375,
-0.01259613037109375,
-0.032684326171875,
-0.0079345703125,
0.0364990234375,
0.045440673828125,
0.021392822265625,
0.0142364501953125,
-0.035919189453125,
-0.006214141845703125,
0.032073974609375,
-0.01024627685546875,
0.038482666015625,
0.0133819580078125,
-0.0218505859375,
0.0711669921875,
0.0014286041259765625,
-0.0166778564453125,
-0.029327392578125,
0.037322998046875,
0.0032958984375,
-0.0193023681640625,
0.00922393798828125,
-0.01019287109375,
0.047027587890625,
0.0152130126953125,
-0.027618408203125,
-0.0190887451171875,
-0.0333251953125,
0.0423583984375,
-0.029388427734375,
0.07122802734375,
-0.0192413330078125,
-0.0022792816162109375,
0.0017862319946289062,
-0.034515380859375,
0.042999267578125,
0.04241943359375,
0.0008997917175292969,
0.0036773681640625,
0.00974273681640625,
-0.023529052734375,
0.0161285400390625,
-0.02642822265625,
-0.0210113525390625,
-0.0093536376953125,
0.0239105224609375,
-0.036468505859375,
0.0295257568359375,
0.00899505615234375,
0.04315185546875,
-0.009613037109375,
-0.022064208984375,
-0.056854248046875,
-0.002620697021484375,
0.052642822265625,
0.002536773681640625,
0.01678466796875,
0.0220794677734375,
0.0509033203125,
-0.0199127197265625,
-0.021087646484375,
0.061370849609375,
0.0085296630859375,
-0.03607177734375,
-0.0236968994140625,
0.00849151611328125,
-0.02557373046875,
-0.005939483642578125,
0.0026531219482421875,
0.00922393798828125,
-0.0281219482421875,
0.0100860595703125,
0.0269775390625,
0.0005321502685546875,
0.02740478515625,
0.03668212890625,
-0.024871826171875,
0.01593017578125,
-0.0230255126953125,
-0.044525146484375,
-0.0250244140625,
-0.0032596588134765625,
0.0222015380859375,
0.01342010498046875,
-0.01020050048828125,
-0.01039886474609375,
0.024383544921875,
-0.0186004638671875,
-0.014251708984375,
0.0192413330078125,
0.0301666259765625,
-0.028778076171875,
-0.002025604248046875,
0.0316162109375,
0.01654052734375,
0.01238250732421875,
0.0012159347534179688,
-0.0361328125,
0.0003707408905029297,
0.01171875,
-0.05206298828125,
-0.0163116455078125,
0.01044464111328125,
0.00958251953125,
0.00954437255859375,
0.018524169921875,
-0.01141357421875,
-0.0537109375,
-0.0501708984375,
0.004230499267578125,
0.01401519775390625,
0.04290771484375,
-0.03692626953125,
-0.037445068359375,
0.00034928321838378906,
0.0280914306640625,
-0.04400634765625,
0.0273895263671875,
0.034332275390625,
0.01427459716796875,
0.00868988037109375,
-0.0263214111328125,
-0.048248291015625,
-0.026641845703125,
-0.022613525390625,
-0.034332275390625,
-0.0252227783203125,
-0.0004558563232421875,
0.00022423267364501953,
0.0128326416015625,
-0.00832366943359375,
0.021392822265625,
-0.0275115966796875,
0.03515625,
0.004467010498046875,
0.060546875,
0.0215606689453125,
0.052337646484375,
-0.0242462158203125,
0.0670166015625,
0.012939453125,
-0.0010223388671875,
-0.0245208740234375,
-0.0145721435546875,
-0.009368896484375,
-0.00508880615234375,
-0.0007681846618652344,
-0.0307159423828125,
0.0374755859375,
0.040771484375,
0.053680419921875,
0.0018033981323242188,
0.0027313232421875,
0.0016765594482421875,
0.001842498779296875,
-0.018310546875,
0.0347900390625,
0.0098724365234375,
-0.01122283935546875,
0.043548583984375,
-0.051513671875,
-0.007328033447265625,
0.008819580078125,
0.034271240234375,
0.019287109375,
-0.053802490234375,
-0.006435394287109375,
0.02569580078125,
-0.042236328125,
0.04742431640625,
0.04241943359375,
0.01263427734375,
0.0229339599609375,
-0.00921630859375,
0.01043701171875,
0.0196533203125,
0.0035724639892578125,
-0.023162841796875,
0.0026264190673828125,
0.052825927734375,
0.00659942626953125,
0.00597381591796875,
0.06268310546875,
0.0026416778564453125,
0.06585693359375,
0.04840087890625,
0.07830810546875,
-0.1058349609375,
0.039154052734375,
0.0188751220703125,
-0.040252685546875,
0.04278564453125,
-0.02239990234375,
0.02008056640625,
-0.0152130126953125,
0.0233154296875,
0.00864410400390625,
-0.0258026123046875,
-0.005168914794921875,
-0.01861572265625,
-0.0172882080078125,
-0.00879669189453125,
0.030487060546875,
0.01557159423828125,
0.0052032470703125,
-0.01010894775390625,
0.0164947509765625,
-0.00617218017578125,
-0.009124755859375,
0.0150299072265625,
0.0121612548828125,
-0.0213623046875,
-0.061431884765625,
0.0015850067138671875,
-0.0027370452880859375,
-0.03759765625,
0.0289154052734375,
0.005550384521484375,
0.03680419921875,
0.058990478515625,
-0.00922393798828125,
0.0100250244140625,
0.0301361083984375,
0.00356292724609375,
-0.046661376953125,
-0.021881103515625,
0.0027561187744140625,
0.058837890625,
0.0010099411010742188,
0.0304107666015625,
0.004840850830078125,
-0.0157928466796875,
0.0088653564453125,
0.017547607421875,
0.10455322265625,
-0.036865234375,
-0.03558349609375,
0.0301361083984375,
-0.027374267578125,
-0.0194244384765625,
-0.0130157470703125,
-0.032745361328125,
-0.09698486328125,
-0.0682373046875,
-0.03863525390625,
-0.086669921875,
0.0168304443359375,
-0.02911376953125,
-0.101806640625,
0.114501953125,
0.031768798828125,
0.042144775390625,
-0.051025390625,
0.0489501953125,
-0.0252227783203125,
0.022918701171875,
-0.0301055908203125,
0.0129241943359375,
-0.00812530517578125,
0.01506805419921875,
-0.0169219970703125,
0.0028514862060546875,
0.00014984607696533203,
0.0229949951171875,
0.04998779296875,
0.00931549072265625,
-0.051239013671875,
-0.010284423828125,
0.020233154296875,
0.039215087890625,
0.0037021636962890625,
0.024658203125,
0.0123748779296875,
0.00867462158203125,
0.04132080078125,
-0.0206451416015625,
0.018310546875,
-0.0148468017578125,
-0.0103607177734375,
0.0251312255859375,
-0.004852294921875,
-0.01515960693359375,
-0.03204345703125,
0.06060791015625,
-0.0174407958984375,
-0.0235137939453125,
0.006702423095703125,
0.033538818359375,
-0.03228759765625,
0.052886962890625,
0.01611328125,
-0.03399658203125,
-0.03778076171875,
-0.043060302734375,
0.0224609375,
-0.002002716064453125,
0.005405426025390625,
0.03167724609375,
0.0250244140625,
-0.02960205078125,
0.01369476318359375,
0.0184173583984375,
0.034698486328125,
-0.0195465087890625,
0.015289306640625,
-0.0236053466796875,
-0.0035076141357421875,
-0.01532745361328125,
0.08441162109375,
0.01352691650390625,
-0.00605010986328125,
-0.05145263671875,
-0.026214599609375,
-0.0005202293395996094,
-0.0023326873779296875,
0.00942230224609375,
-0.0259857177734375,
0.020965576171875,
-0.02618408203125,
-0.014129638671875,
-0.01290130615234375,
-0.02423095703125,
-0.01013946533203125,
0.022369384765625,
-0.0026702880859375,
-0.0057220458984375,
0.00982666015625,
-0.03680419921875,
-0.032440185546875,
-0.00799560546875,
0.011199951171875,
0.0340576171875,
0.01120758056640625,
0.06536865234375,
0.0004336833953857422,
-0.0100860595703125,
-0.036834716796875,
0.0169525146484375,
0.0175323486328125,
0.035552978515625,
-0.0224151611328125,
0.0264129638671875,
0.0160369873046875,
0.0178070068359375,
0.035980224609375,
0.0650634765625,
0.058319091796875,
0.041107177734375,
0.023284912109375,
0.006519317626953125,
0.00890350341796875,
-0.01690673828125,
-0.03753662109375,
-0.053741455078125,
0.0144805908203125,
0.033111572265625,
0.0137481689453125,
0.025970458984375,
0.0011911392211914062,
0.044158935546875,
-0.03143310546875,
0.021484375,
-0.00440216064453125,
-0.050689697265625,
0.0445556640625,
-0.0144500732421875,
0.06658935546875,
-0.005222320556640625,
-0.037628173828125,
-0.018402099609375,
0.01383209228515625,
-0.04656982421875,
0.01995849609375,
0.051055908203125,
-0.01126861572265625,
0.0089263916015625,
-0.013580322265625,
-0.00397491455078125,
0.016326904296875,
-0.01020050048828125,
0.0293426513671875,
0.07354736328125,
0.01111602783203125,
0.0192718505859375,
-0.0340576171875,
0.0003020763397216797,
-0.0026035308837890625,
0.0023040771484375,
0.004245758056640625,
0.046234130859375,
-0.0014095306396484375,
0.0018606185913085938,
0.00428009033203125,
0.0074005126953125,
-0.00737762451171875,
-0.00360870361328125,
0.00426483154296875,
0.00823211669921875,
0.0190887451171875,
-0.006526947021484375,
-0.045806884765625,
0.011505126953125,
0.0146636962890625,
-0.01430511474609375,
-0.00829315185546875,
0.01152801513671875,
0.019134521484375,
0.0013742446899414062,
0.037353515625,
-0.018463134765625,
-0.0186614990234375,
-0.0268096923828125,
-0.01000213623046875,
0.0256500244140625,
0.037811279296875,
0.0167083740234375,
0.06390380859375,
-0.0275726318359375,
0.0316162109375,
0.01062774658203125,
-0.03363037109375,
-0.007312774658203125,
0.025604248046875,
-0.057159423828125,
0.0247802734375,
0.00678253173828125,
-0.02203369140625,
0.0245513916015625,
0.0018167495727539062,
-0.017059326171875,
-0.0010528564453125,
-0.0240325927734375,
-0.0421142578125,
0.0213775634765625,
0.022491455078125,
-0.0157318115234375,
0.03619384765625,
-0.00931549072265625,
-0.0148468017578125,
-0.006114959716796875,
0.0180206298828125,
-0.017303466796875,
-0.041961669921875,
-0.0010728836059570312,
0.0032482147216796875,
-0.026580810546875,
-0.039886474609375,
-0.05926513671875,
-0.003326416015625,
-0.01551055908203125,
-0.01334381103515625,
-0.048675537109375,
0.0157928466796875,
0.01094818115234375,
0.0174560546875,
-0.0377197265625,
0.01073455810546875,
-0.01531219482421875,
0.03033447265625,
-0.007160186767578125,
-0.043975830078125,
-0.024322509765625,
0.057281494140625,
-0.035552978515625,
0.0167388916015625,
0.0079193115234375,
-0.028289794921875,
-0.0284576416015625,
-0.0016078948974609375,
0.0247039794921875,
0.035736083984375,
0.03076171875,
-0.019683837890625,
-0.0022449493408203125,
0.0134124755859375,
-0.004276275634765625,
-0.06158447265625,
-0.007293701171875,
-0.0272216796875,
-0.0119781494140625,
-0.0177154541015625,
-0.007106781005859375,
-0.004913330078125,
-0.04754638671875,
-0.065673828125,
-0.0171661376953125,
0.02032470703125,
-0.0426025390625,
-0.068359375,
0.047607421875,
0.039093017578125,
-0.0211639404296875,
-0.0391845703125,
0.00931549072265625,
-0.045989990234375,
-0.0140533447265625,
-0.0142974853515625,
-0.01163482666015625,
-0.00026798248291015625,
0.0032672882080078125,
-0.07257080078125,
0.0013513565063476562,
0.0094451904296875,
-0.03887939453125,
0.0133209228515625,
-0.02117919921875,
0.0256500244140625,
0.0005311965942382812,
-0.05535888671875,
-0.04998779296875,
-0.007030487060546875,
0.002681732177734375,
0.00914764404296875,
-0.033111572265625,
-0.031890869140625,
-0.0032958984375,
0.029296875,
0.049896240234375,
0.004703521728515625,
-0.0284881591796875,
0.037017822265625,
-0.0015316009521484375,
-0.007633209228515625,
0.01546478271484375,
0.004055023193359375,
-0.0229644775390625,
-0.01715087890625,
0.0294647216796875,
0.0182647705078125,
-0.01032257080078125,
0.03155517578125,
0.0015554428100585938,
-0.032562255859375,
0.00026226043701171875,
-0.037750244140625,
-0.051605224609375,
-0.0306549072265625,
0.0947265625,
-0.048980712890625,
-0.01910400390625,
0.036895751953125,
0.006877899169921875,
0.04541015625,
0.055816650390625,
-0.0204925537109375,
-0.0008625984191894531,
-0.01983642578125,
0.0142974853515625,
-0.004161834716796875,
0.0265045166015625,
-0.0240936279296875,
-0.013427734375,
-0.0213623046875,
-0.0165252685546875,
-0.018798828125,
-0.041748046875,
-0.004779815673828125,
0.016082763671875,
-0.0233001708984375,
0.102294921875,
-0.0264434814453125,
0.046630859375,
0.0051727294921875,
0.0033817291259765625,
0.031768798828125,
0.0003325939178466797,
0.075927734375,
-0.042633056640625,
0.0252838134765625,
-0.0003426074981689453,
0.058013916015625,
-0.032379150390625,
0.035491943359375,
0.004215240478515625,
-0.004993438720703125,
0.0262603759765625
] |
531ec47de39d12fae26780deedb5f4ae9fd8c00a | Wordpress Stackexchange
Q: Gutenberg "Add Block" button is not active (greyed out), cannot add new blocks I am currently using Wordpress version 5.0.2, i want to add news posts but the button "ADD BLOCK" is not active.
A: I think you have the visual editor disabled.
Go to Users > Your Profile and uncheck "Disable the visual editor when writing".
| Q: Gutenberg "Add Block" button is not active (greyed out), cannot add new blocks I am currently using Wordpress version 5.0.2, i want to add news posts but the button "ADD BLOCK" is not active.
A: I think you have the visual editor disabled.
Go to Users > Your Profile and uncheck "Disable the visual editor when writing".
A: I Had the same issue. Followed RiddleMeThis' suggestion but "Disable the visual editor when writing" was not checked.
I checked it, Updated my profile then unchecked it and updated my profile again and the issue was solved.
A: For others facing this issue, it occurred for me after adding a new user via phpMyAdmin but omitting the nickname field. Adding this field under my profile, and saving then enabled the block editor.
A: In my case this was caused by WordPress requiring User-Agent header present, which AWS CloudFront CDN by default do not pass (and in most cases due to performance reasons, should not).
My workaround for this, as described in AWS CloudFront Configuration for WordPress/WooCommerce - About Lovia:
WordPress/WooCommerce requires User-Agent header to be passed by CloudFront in order to enable the visual editor. There are several ways to work-around this, but our best practice is to add additional behavior for path pattern /wp-admin/*.
Note: "Disable the visual editor when writing" must be unchecked.
Additional info: https://wordpress.stackexchange.com/a/325234/184905.
| wordpress | {
"language": "en",
"length": 227,
"provenance": "stackexchange_00019.jsonl.gz:491819",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/325060"
} | [
0.0171356201171875,
-0.0032138824462890625,
-0.00566864013671875,
-0.0011968612670898438,
0.0034656524658203125,
-0.037078857421875,
0.047119140625,
-0.005191802978515625,
0.04400634765625,
0.050567626953125,
-0.01568603515625,
-0.01102447509765625,
0.029022216796875,
-0.0150604248046875,
-0.04888916015625,
0.0114288330078125,
0.035369873046875,
-0.00307464599609375,
0.0052947998046875,
-0.018585205078125,
-0.01904296875,
0.0091705322265625,
-0.00360107421875,
0.034423828125,
0.00429534912109375,
0.0142974853515625,
0.04388427734375,
-0.04864501953125,
0.0189361572265625,
-0.020477294921875,
0.028564453125,
0.0022945404052734375,
-0.00899505615234375,
0.0272064208984375,
-0.00380706787109375,
-0.0011615753173828125,
0.0204315185546875,
0.008697509765625,
0.01007843017578125,
0.01318359375,
0.001514434814453125,
-0.01409912109375,
0.00823974609375,
-0.0546875,
-0.00963592529296875,
0.0038738250732421875,
0.0026874542236328125,
-0.017791748046875,
0.04315185546875,
0.0208282470703125,
-0.03387451171875,
0.0169219970703125,
-0.0144805908203125,
-0.0157928466796875,
-0.0007739067077636719,
-0.03082275390625,
-0.04010009765625,
0.06494140625,
0.00875091552734375,
0.059783935546875,
0.002170562744140625,
0.0506591796875,
-0.025390625,
-0.04608154296875,
0.052032470703125,
0.015380859375,
0.07623291015625,
0.0194854736328125,
-0.07781982421875,
0.05499267578125,
0.05419921875,
-0.06390380859375,
0.0106048583984375,
-0.0218353271484375,
0.0208282470703125,
-0.0184478759765625,
-0.0345458984375,
-0.053802490234375,
0.043304443359375,
0.011260986328125,
-0.0200042724609375,
0.029144287109375,
-0.034942626953125,
-0.0384521484375,
0.004543304443359375,
-0.0161285400390625,
-0.02947998046875,
-0.01434326171875,
-0.04119873046875,
-0.05438232421875,
-0.029144287109375,
-0.05645751953125,
-0.04205322265625,
0.005401611328125,
-0.01031494140625,
-0.021697998046875,
-0.01029205322265625,
0.024932861328125,
0.0070037841796875,
0.01155853271484375,
-0.0239410400390625,
-0.0276947021484375,
0.02099609375,
-0.0380859375,
0.030731201171875,
0.017608642578125,
-0.051513671875,
0.0311431884765625,
0.08538818359375,
0.03485107421875,
0.0085906982421875,
0.01279449462890625,
0.044647216796875,
0.0102081298828125,
-0.01800537109375,
-0.011444091796875,
-0.02105712890625,
0.053558349609375,
-0.00304412841796875,
0.045806884765625,
0.0043487548828125,
0.0311279296875,
-0.03448486328125,
-0.035125732421875,
-0.01971435546875,
-0.027679443359375,
-0.00762939453125,
-0.003589630126953125,
0.04193115234375,
-0.016082763671875,
-0.023406982421875,
0.01190948486328125,
0.0117034912109375,
0.01430511474609375,
0.0025577545166015625,
-0.0014848709106445312,
0.002887725830078125,
-0.0257720947265625,
-0.01116180419921875,
-0.00588226318359375,
-0.01605224609375,
-0.0245819091796875,
0.00732421875,
-0.00559234619140625,
0.051300048828125,
0.01372528076171875,
0.04693603515625,
0.01154327392578125,
-0.022491455078125,
-0.051788330078125,
0.05072021484375,
-0.0011129379272460938,
0.025054931640625,
0.01364898681640625,
0.006801605224609375,
0.0053253173828125,
0.02960205078125,
-0.017303466796875,
-0.018096923828125,
-0.034027099609375,
0.06634521484375,
0.027801513671875,
0.0268096923828125,
-0.0299835205078125,
-0.033447265625,
-0.06439208984375,
-0.08441162109375,
-0.00982666015625,
0.0367431640625,
0.06793212890625,
-0.007282257080078125,
-0.012298583984375,
0.0540771484375,
-0.00798797607421875,
-0.053314208984375,
-0.004306793212890625,
0.01212310791015625,
0.01837158203125,
-0.0168609619140625,
0.032012939453125,
0.0219879150390625,
-0.01512908935546875,
0.030242919921875,
-0.005710601806640625,
-0.044830322265625,
0.0124359130859375,
-0.019775390625,
0.0236053466796875,
0.057403564453125,
-0.0013151168823242188,
0.016265869140625,
-0.00873565673828125,
0.013916015625,
-0.012054443359375,
0.027191162109375,
-0.03564453125,
-0.02008056640625,
-0.00983428955078125,
0.004913330078125,
-0.01503753662109375,
0.068603515625,
-0.01447296142578125,
0.015899658203125,
-0.044036865234375,
-0.037994384765625,
-0.023193359375,
-0.005405426025390625,
0.021636962890625,
0.027252197265625,
-0.041778564453125,
0.0040130615234375,
-0.06451416015625,
-0.0025348663330078125,
0.0175628662109375,
-0.060394287109375,
0.0306396484375,
-0.010040283203125,
0.0506591796875,
0.0230712890625,
0.0258026123046875,
0.0201263427734375,
-0.0181732177734375,
0.016021728515625,
0.004425048828125,
0.06890869140625,
-0.01910400390625,
-0.0101165771484375,
-0.033477783203125,
0.019927978515625,
0.01531982421875,
-0.07720947265625,
0.044036865234375,
0.002620697021484375,
-0.04058837890625,
-0.0299072265625,
0.02325439453125,
0.0191192626953125,
-0.0228271484375,
-0.005916595458984375,
0.033355712890625,
0.041778564453125,
-0.01273345947265625,
0.005954742431640625,
0.02197265625,
0.006195068359375,
-0.00786590576171875,
0.039459228515625,
-0.0131683349609375,
-0.002056121826171875,
0.032867431640625,
-0.0186309814453125,
0.04559326171875,
0.026123046875,
0.0262908935546875,
0.0199737548828125,
0.037628173828125,
-0.028350830078125,
0.00614166259765625,
-0.04620361328125,
-0.0003829002380371094,
0.012786865234375,
-0.01093292236328125,
-0.0159149169921875,
-0.01226043701171875,
0.06787109375,
0.02117919921875,
0.063720703125,
0.05438232421875,
-0.03875732421875,
0.01534271240234375,
0.00847625732421875,
0.00881195068359375,
0.004627227783203125,
0.04595947265625,
0.01496124267578125,
0.04156494140625,
-0.033721923828125,
-0.0200653076171875,
0.0170135498046875,
0.045928955078125,
-0.03936767578125,
-0.025115966796875,
-0.043731689453125,
-0.00823974609375,
0.0272216796875,
-0.048187255859375,
-0.0032520294189453125,
-0.028778076171875,
-0.006046295166015625,
-0.035736083984375,
0.024505615234375,
-0.0146942138671875,
-0.038360595703125,
0.0264739990234375,
0.01464080810546875,
-0.0416259765625,
0.042388916015625,
-0.032012939453125,
0.0191802978515625,
-0.0186309814453125,
0.051666259765625,
0.05535888671875,
-0.01514434814453125,
0.0018453598022460938,
0.009002685546875,
-0.06622314453125,
-0.0001430511474609375,
0.0231170654296875,
-0.0187835693359375,
-0.0253753662109375,
-0.052947998046875,
0.037445068359375,
0.0238800048828125,
0.007335662841796875,
0.00039839744567871094,
-0.028717041015625,
-0.0259857177734375,
0.0135498046875,
-0.064453125,
-0.0194244384765625,
-0.09259033203125,
-0.0438232421875,
-0.0073089599609375,
0.0024261474609375,
-0.01444244384765625,
0.01357269287109375,
0.0192108154296875,
0.0305023193359375,
-0.0618896484375,
0.0174560546875,
-0.043121337890625,
-0.05029296875,
-0.0330810546875,
0.0239410400390625,
-0.032379150390625,
0.041412353515625,
0.0149078369140625,
0.049530029296875,
-0.01357269287109375,
-0.036865234375,
0.0019664764404296875,
-0.11627197265625,
-0.018463134765625,
0.02606201171875,
0.01352691650390625,
-0.01102447509765625,
0.0163116455078125,
0.0116119384765625,
-0.0034580230712890625,
0.0089569091796875,
-0.011993408203125,
-0.0227203369140625,
0.01175689697265625,
-0.024932861328125,
0.015899658203125,
0.037689208984375,
-0.01392364501953125,
-0.03741455078125,
0.0126953125,
-0.058013916015625,
0.032684326171875,
0.007518768310546875,
-0.0008406639099121094,
0.0257415771484375,
-0.02996826171875,
-0.01313018798828125,
0.047760009765625,
-0.0012264251708984375,
0.01494598388671875,
0.0200958251953125,
0.03338623046875,
0.006534576416015625,
-0.01287841796875,
-0.033905029296875,
-0.03045654296875,
-0.051544189453125,
-0.011077880859375,
-0.0255126953125,
0.0341796875,
-0.0180816650390625,
0.01776123046875,
-0.01349639892578125,
0.044921875,
-0.038543701171875,
0.0191650390625,
0.002689361572265625,
-0.043365478515625,
-0.0138702392578125,
0.008056640625,
0.0198211669921875,
-0.0010576248168945312,
-0.0130157470703125,
-0.03961181640625,
-0.0145721435546875,
-0.00365447998046875,
0.01531982421875,
0.004505157470703125,
-0.023956298828125,
-0.0260772705078125,
-0.018829345703125,
0.0284271240234375,
0.00260162353515625,
-0.006443023681640625,
0.003971099853515625,
-0.0236663818359375,
0.019012451171875,
0.0223541259765625,
0.00160980224609375,
0.06048583984375,
-0.0238494873046875,
0.000007569789886474609,
0.07525634765625,
-0.030975341796875,
0.036895751953125,
-0.06707763671875,
-0.0005135536193847656,
-0.06939697265625,
-0.005947113037109375,
-0.01788330078125,
0.026031494140625,
-0.0240936279296875,
0.052032470703125,
-0.048126220703125,
0.0218353271484375,
0.0025081634521484375,
0.00664520263671875,
0.0225677490234375,
0.00136566162109375,
0.07489013671875,
-0.01413726806640625,
-0.0012111663818359375,
-0.01494598388671875,
-0.012115478515625,
-0.013946533203125,
0.0097808837890625,
0.0294036865234375,
-0.045379638671875,
-0.0310516357421875,
-0.0229034423828125,
-0.01253509521484375,
-0.018157958984375,
-0.0104827880859375,
-0.026947021484375,
-0.0012521743774414062,
-0.006504058837890625,
-0.0278167724609375,
-0.00786590576171875,
-0.025115966796875,
0.033538818359375,
-0.041290283203125,
0.017303466796875,
0.00862884521484375,
0.08966064453125,
0.00344085693359375,
-0.003997802734375,
-0.036346435546875,
0.01837158203125,
0.021270751953125,
0.034423828125,
0.0440673828125,
0.03582763671875,
0.0160369873046875,
-0.0199432373046875,
0.00543212890625,
0.0003757476806640625,
-0.0828857421875,
0.0538330078125,
-0.03125,
-0.032470703125,
0.031646728515625,
-0.055816650390625,
0.0841064453125,
-0.005527496337890625,
-0.0192108154296875,
0.01102447509765625,
-0.0197296142578125,
0.0236968994140625,
0.00022304058074951172,
0.00420379638671875,
-0.031524658203125,
-0.0008425712585449219,
0.0002791881561279297,
-0.032470703125,
0.052032470703125,
0.06817626953125,
-0.024566650390625,
0.0275421142578125,
0.006561279296875,
-0.0193328857421875,
0.005565643310546875,
0.006984710693359375,
-0.0227813720703125,
0.0141754150390625,
0.004177093505859375,
-0.03271484375,
-0.0052032470703125,
0.00167083740234375,
0.0241241455078125,
-0.009765625,
-0.046234130859375,
-0.0007467269897460938,
-0.0164337158203125,
0.020751953125,
0.01215362548828125,
0.0631103515625,
0.018310546875,
0.006366729736328125,
0.0112762451171875,
0.01160430908203125,
0.07086181640625,
0.0106201171875,
-0.01373291015625,
-0.028106689453125,
-0.03125,
-0.004550933837890625,
0.005290985107421875,
0.039764404296875,
0.02215576171875,
0.00424957275390625,
-0.03607177734375,
0.017730712890625,
-0.017181396484375,
0.00826263427734375,
0.0299835205078125,
-0.00402069091796875,
0.0188446044921875,
-0.042083740234375,
0.0172576904296875,
-0.027435302734375,
-0.056182861328125,
0.0066070556640625,
0.044342041015625,
0.035614013671875,
0.049713134765625,
-0.01953125,
-0.003021240234375,
-0.0115203857421875,
0.004436492919921875,
-0.0037860870361328125,
-0.00008130073547363281,
-0.0122222900390625,
0.0249176025390625,
0.02496337890625,
0.02020263671875,
0.0082550048828125,
-0.050567626953125,
-0.00948333740234375,
-0.004550933837890625,
-0.0080718994140625,
-0.020538330078125,
-0.005062103271484375,
-0.010528564453125,
0.01678466796875,
-0.021514892578125,
-0.003086090087890625,
-0.041961669921875,
0.0087890625,
-0.02618408203125,
-0.0214080810546875,
0.078857421875,
-0.047698974609375,
0.0178985595703125,
-0.024505615234375,
0.0230712890625,
-0.0311126708984375,
0.042999267578125,
-0.0030040740966796875,
0.009521484375,
0.0100250244140625,
-0.057647705078125,
-0.06451416015625,
-0.0498046875,
-0.0758056640625,
0.006992340087890625,
-0.022125244140625,
0.060272216796875,
0.007625579833984375,
0.0249481201171875,
-0.032867431640625,
-0.027557373046875,
-0.013458251953125,
0.037384033203125,
0.0254974365234375,
0.08251953125,
0.01922607421875,
0.02630615234375,
-0.01389312744140625,
0.06640625,
0.0221710205078125,
0.0019378662109375,
-0.03631591796875,
-0.0223388671875,
-0.006107330322265625,
-0.01629638671875,
-0.04302978515625,
0.020843505859375,
-0.0157623291015625,
0.03057861328125,
0.05511474609375,
-0.01485443115234375,
0.020477294921875,
-0.036773681640625,
0.01299285888671875,
-0.02911376953125,
-0.0038814544677734375,
-0.06341552734375,
-0.038970947265625,
-0.00434112548828125,
-0.025634765625,
0.017333984375,
-0.0010547637939453125,
-0.0135955810546875,
0.024261474609375,
-0.0192718505859375,
0.0181427001953125,
-0.004734039306640625,
-0.0103912353515625,
-0.0026378631591796875,
0.040679931640625,
0.030303955078125,
0.036865234375,
0.0206146240234375,
0.040679931640625,
-0.0009064674377441406,
0.006988525390625,
-0.04412841796875,
0.016021728515625,
0.039337158203125,
0.0191650390625,
-0.01441192626953125,
0.03265380859375,
-0.01214599609375,
0.016082763671875,
0.06475830078125,
0.0689697265625,
-0.06329345703125,
-0.00788116455078125,
0.006977081298828125,
-0.03363037109375,
0.0054931640625,
-0.0341796875,
0.0421142578125,
-0.022552490234375,
0.0672607421875,
0.07647705078125,
-0.0018711090087890625,
0.01812744140625,
-0.0252685546875,
-0.01189422607421875,
-0.0361328125,
0.0259857177734375,
0.0199127197265625,
-0.00797271728515625,
0.0302581787109375,
0.004039764404296875,
0.0175933837890625,
-0.0182647705078125,
-0.01502227783203125,
-0.0180206298828125,
-0.0203857421875,
-0.031341552734375,
-0.006591796875,
-0.04095458984375,
0.0174102783203125,
0.0648193359375,
-0.0009937286376953125,
0.007568359375,
0.041717529296875,
-0.0121612548828125,
0.037506103515625,
-0.0061492919921875,
-0.0007562637329101562,
-0.01279449462890625,
-0.0323486328125,
-0.005146026611328125,
0.0217742919921875,
0.002956390380859375,
0.0195465087890625,
0.01702880859375,
-0.031494140625,
0.031768798828125,
0.06536865234375,
0.0350341796875,
-0.036773681640625,
-0.038330078125,
0.040985107421875,
-0.05511474609375,
0.00930023193359375,
0.0200347900390625,
0.01099395751953125,
0.0013856887817382812,
0.027587890625,
0.006969451904296875,
0.0004954338073730469,
-0.005001068115234375,
0.04388427734375,
-0.06951904296875,
0.09246826171875,
0.0237884521484375,
0.023590087890625,
-0.00382232666015625,
0.048919677734375,
-0.06097412109375,
-0.01529693603515625,
-0.0501708984375,
0.053985595703125,
-0.0214996337890625,
0.0362548828125,
-0.042022705078125,
0.01727294921875,
-0.00013780593872070312,
-0.01042938232421875,
0.072265625,
0.004047393798828125,
-0.0157318115234375,
-0.018707275390625,
0.035888671875,
0.03985595703125,
-0.01323699951171875,
0.0079803466796875,
0.0034084320068359375,
-0.01348114013671875,
0.002227783203125,
0.0011348724365234375,
0.041595458984375,
-0.051177978515625,
-0.02581787109375,
0.01235198974609375,
-0.0199737548828125,
-0.026519775390625,
0.031646728515625,
0.03948974609375,
0.0272369384765625,
-0.006175994873046875,
-0.0178985595703125,
-0.03826904296875,
-0.039459228515625,
0.05950927734375,
0.01131439208984375,
0.00010770559310913086,
-0.00974273681640625,
-0.04052734375,
0.0333251953125,
0.0237274169921875,
-0.034515380859375,
0.00482940673828125,
0.0122528076171875,
-0.056396484375,
-0.0200958251953125,
-0.0188140869140625,
0.0119171142578125,
-0.0270233154296875,
0.0245513916015625,
0.036529541015625,
0.00897979736328125,
-0.03314208984375,
0.00600433349609375,
0.06396484375,
0.042266845703125,
-0.033721923828125,
-0.0302276611328125,
0.0199737548828125,
0.0235443115234375,
0.0221099853515625,
0.00411224365234375,
0.037750244140625,
0.01296234130859375,
0.05712890625,
-0.061859130859375,
-0.0062713623046875,
0.0169830322265625,
0.0225067138671875,
-0.01177215576171875,
0.007328033447265625,
0.0007023811340332031,
-0.03265380859375,
-0.00893402099609375,
-0.01023101806640625,
0.0130462646484375,
0.0215911865234375,
0.01152801513671875,
0.0168304443359375,
0.00414276123046875,
-0.00348663330078125,
-0.04962158203125,
0.0254974365234375,
-0.0245819091796875,
0.06805419921875,
-0.06640625,
-0.0218963623046875,
0.0274200439453125,
0.047760009765625,
-0.006988525390625,
0.039276123046875,
0.0443115234375,
0.035888671875,
-0.01309967041015625,
-0.01505279541015625,
0.04302978515625,
-0.0298004150390625,
-0.05548095703125,
-0.0188751220703125,
0.00501251220703125,
0.0215606689453125,
0.012115478515625,
0.0207977294921875,
0.03790283203125,
0.0250244140625,
-0.00078582763671875,
0.02984619140625,
0.0122833251953125,
-0.00885009765625,
0.0287017822265625,
0.0255889892578125,
0.033660888671875,
0.040740966796875,
-0.045806884765625,
0.0143280029296875,
-0.029754638671875,
-0.034576416015625,
0.0097808837890625,
0.0216827392578125,
-0.0377197265625,
0.04693603515625,
-0.011016845703125,
0.011810302734375,
0.0183258056640625,
-0.0215911865234375,
0.0196380615234375,
0.07830810546875,
0.0149383544921875,
0.033660888671875,
-0.0633544921875,
-0.005176544189453125,
0.01050567626953125,
0.00022459030151367188,
-0.004108428955078125,
0.09771728515625,
-0.006191253662109375,
-0.0205078125,
-0.00015270709991455078,
-0.00948333740234375,
0.011383056640625,
0.01512908935546875,
-0.04144287109375,
0.048828125,
0.03875732421875,
-0.02178955078125,
-0.0687255859375,
-0.0184478759765625,
0.0294952392578125,
0.00629425048828125,
0.0024204254150390625,
-0.0016841888427734375,
0.0202484130859375,
-0.0025348663330078125,
0.00450897216796875,
-0.03448486328125,
-0.035186767578125,
-0.03973388671875,
0.0011768341064453125,
0.0044708251953125,
0.022125244140625,
0.006366729736328125,
0.0013647079467773438,
-0.04913330078125,
-0.04266357421875,
0.0029201507568359375,
-0.0178985595703125,
-0.0297088623046875,
0.0081787109375,
-0.00788116455078125,
-0.0169830322265625,
0.025909423828125,
-0.005367279052734375,
0.0352783203125,
0.00998687744140625,
0.0005035400390625,
0.04815673828125,
-0.03948974609375,
0.0055084228515625,
-0.0115509033203125,
-0.006031036376953125,
-0.0479736328125,
-0.024932861328125,
0.048736572265625,
-0.026519775390625,
-0.02154541015625,
0.029876708984375,
0.00873565673828125,
0.005214691162109375,
-0.049560546875,
-0.01528167724609375,
-0.0136260986328125,
-0.04296875,
0.01082611083984375,
0.00922393798828125,
0.026153564453125,
0.00679779052734375,
-0.0576171875,
0.0782470703125,
-0.04150390625,
-0.0162200927734375,
-0.0012636184692382812,
0.0026187896728515625,
-0.0012617111206054688,
0.037872314453125,
-0.043548583984375,
0.00997161865234375,
-0.029327392578125,
-0.023193359375,
-0.023956298828125,
0.00366973876953125,
0.0025386810302734375,
-0.007358551025390625,
0.014892578125,
0.00843048095703125,
0.0186004638671875,
0.046722412109375,
0.0244293212890625,
-0.009979248046875,
0.0262603759765625,
-0.02667236328125,
-0.0229034423828125,
-0.0250244140625,
0.02862548828125,
-0.052398681640625,
-0.051605224609375,
-0.015838623046875,
-0.00232696533203125,
0.00627899169921875,
-0.05438232421875,
-0.1295166015625,
-0.04791259765625,
0.0009832382202148438,
-0.07305908203125,
-0.01396942138671875,
0.0230560302734375,
0.005828857421875,
-0.017608642578125,
-0.02215576171875,
0.0116424560546875,
0.005970001220703125,
0.0017032623291015625,
-0.004215240478515625,
0.041717529296875,
0.018768310546875,
0.006946563720703125,
-0.018585205078125,
0.0010929107666015625,
-0.00986480712890625,
-0.009979248046875,
0.0162811279296875,
-0.0238189697265625,
0.031524658203125,
0.0100250244140625,
-0.05841064453125,
0.0013761520385742188,
-0.01194000244140625,
0.033355712890625,
-0.002941131591796875,
-0.016357421875,
-0.053009033203125,
-0.032501220703125,
0.05810546875,
0.036865234375,
0.01349639892578125,
0.0003485679626464844,
0.0125732421875,
-0.0291748046875,
-0.046417236328125,
0.0105743408203125,
0.00701141357421875,
-0.01506805419921875,
0.017913818359375,
-0.003025054931640625,
0.0086822509765625,
-0.041015625,
0.0216217041015625,
-0.01812744140625,
-0.022979736328125,
-0.004627227783203125,
-0.007110595703125,
-0.03228759765625,
-0.008758544921875,
0.05816650390625,
-0.032958984375,
-0.01512908935546875,
0.023468017578125,
-0.001850128173828125,
0.0108642578125,
0.04205322265625,
0.00563812255859375,
-0.0259552001953125,
-0.02081298828125,
0.0193939208984375,
-0.000005304813385009766,
0.047760009765625,
-0.021392822265625,
-0.0289306640625,
0.032440185546875,
0.002338409423828125,
-0.015594482421875,
-0.017303466796875,
-0.01483917236328125,
0.0443115234375,
-0.03778076171875,
0.0865478515625,
0.0060882568359375,
0.00865936279296875,
-0.01541900634765625,
0.049224853515625,
0.011474609375,
-0.033538818359375,
0.0225677490234375,
-0.0240325927734375,
-0.006626129150390625,
0.0265655517578125,
0.004436492919921875,
-0.0223236083984375,
0.0061187744140625,
-0.0059661865234375,
0.009918212890625,
0.00075531005859375
] |
ab89259b406c9c533dc0841163612ce867fd4008 | Wordpress Stackexchange
Q: Lost password link redirects to my-account/lost-password/,how to fix it back to default lost password My lost password option in the wp login page redirect to woocommerce lost password page.How to set it back to the standard wp lost password option.?I want it to redirect to "wp-login.php?action=lostpassword".
I am using,woocommerce,paid membership pro,buddypress plugins.
I found this Lost password link is redirecting to /shop/my-account/lost-password/, but I couldn't understand it.
Thanks.
A: You can do this without code by going to the WooCommerce administration, Settings, Advanced, and removing the "lost-password" text from the Lost password field under Account Endpoints:
| Q: Lost password link redirects to my-account/lost-password/,how to fix it back to default lost password My lost password option in the wp login page redirect to woocommerce lost password page.How to set it back to the standard wp lost password option.?I want it to redirect to "wp-login.php?action=lostpassword".
I am using,woocommerce,paid membership pro,buddypress plugins.
I found this Lost password link is redirecting to /shop/my-account/lost-password/, but I couldn't understand it.
Thanks.
A: You can do this without code by going to the WooCommerce administration, Settings, Advanced, and removing the "lost-password" text from the Lost password field under Account Endpoints:
A: You can remove the filter that WooCommerce uses to replace the lost password URL like so:
remove_filter( 'lostpassword_url', 'wc_lostpassword_url', 10 );
A: Try to put below code into your theme functions.php file
remove_filter( 'lostpassword_url', 'wc_lostpassword_url', 10 );
OR
function reset_pass_url() {
$siteURL = get_option('siteurl');
return "{$siteURL}/wp-login.php?action=lostpassword";
}
add_filter( 'lostpassword_url', 'reset_pass_url', 10, 2 );
Please let me know if any query.
Hope it will help you.
A: You can try this code:
function wdm_lostpassword_url() {
return site_url( '/wp-login.php?action=lostpassword' );
}
add_filter( 'lostpassword_url', 'wdm_lostpassword_url', 10, 0 );
Add it to to your current active theme's functions.php file
| wordpress | {
"language": "en",
"length": 193,
"provenance": "stackexchange_00019.jsonl.gz:491896",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/325303"
} | [
0.009521484375,
-0.029937744140625,
0.01389312744140625,
0.030364990234375,
-0.031402587890625,
-0.0265960693359375,
0.06353759765625,
-0.035491943359375,
0.0011930465698242188,
0.02935791015625,
0.012603759765625,
-0.019195556640625,
-0.0161590576171875,
-0.0280609130859375,
-0.02899169921875,
-0.032135009765625,
0.00412750244140625,
0.030120849609375,
0.0292510986328125,
-0.00811767578125,
-0.01020050048828125,
0.020904541015625,
0.002109527587890625,
-0.02337646484375,
0.002162933349609375,
0.043243408203125,
0.1456298828125,
-0.032318115234375,
0.0234832763671875,
-0.004734039306640625,
0.019287109375,
-0.06915283203125,
0.0399169921875,
-0.033416748046875,
-0.003459930419921875,
-0.0633544921875,
-0.00928497314453125,
-0.0188446044921875,
-0.056243896484375,
0.038909912109375,
0.0193023681640625,
-0.016448974609375,
0.00325775146484375,
-0.0207672119140625,
-0.01145172119140625,
-0.038848876953125,
0.03857421875,
-0.0201263427734375,
0.0303192138671875,
0.038360595703125,
0.006946563720703125,
0.017120361328125,
-0.0033626556396484375,
-0.00885009765625,
-0.01898193359375,
-0.03533935546875,
-0.0082244873046875,
0.0080413818359375,
0.020843505859375,
0.0341796875,
0.0012407302856445312,
0.00250244140625,
-0.017669677734375,
-0.03997802734375,
-0.01678466796875,
0.0163726806640625,
0.025421142578125,
0.00995635986328125,
-0.002777099609375,
-0.01224517822265625,
-0.0114898681640625,
-0.0115814208984375,
0.00037598609924316406,
0.003032684326171875,
-0.0185089111328125,
-0.0149688720703125,
0.00595855712890625,
0.005992889404296875,
0.0174560546875,
0.005779266357421875,
-0.004131317138671875,
-0.007488250732421875,
0.006214141845703125,
-0.027130126953125,
0.02801513671875,
0.0127105712890625,
-0.00563812255859375,
-0.0250244140625,
-0.0190887451171875,
-0.0188140869140625,
-0.0235748291015625,
-0.0113067626953125,
-0.0261688232421875,
0.006259918212890625,
-0.03717041015625,
-0.007770538330078125,
0.01422882080078125,
0.0202178955078125,
0.0430908203125,
0.009765625,
-0.0011854171752929688,
-0.054595947265625,
-0.00830078125,
-0.0197906494140625,
-0.020172119140625,
0.035308837890625,
0.042022705078125,
0.027740478515625,
-0.00571441650390625,
-0.0058135986328125,
-0.00786590576171875,
-0.0196075439453125,
-0.04705810546875,
-0.0684814453125,
0.032012939453125,
0.025787353515625,
-0.05596923828125,
0.02593994140625,
0.019989013671875,
-0.0233306884765625,
-0.045257568359375,
-0.0285491943359375,
-0.0009603500366210938,
-0.01355743408203125,
-0.023468017578125,
-0.05743408203125,
-0.0205078125,
0.035919189453125,
0.022186279296875,
0.005092620849609375,
-0.045440673828125,
0.012481689453125,
0.061981201171875,
0.0162811279296875,
0.01983642578125,
-0.0139617919921875,
0.034149169921875,
0.0271759033203125,
-0.01520538330078125,
0.0164031982421875,
-0.0022716522216796875,
-0.0174407958984375,
-0.012542724609375,
-0.0005164146423339844,
0.029144287109375,
0.02862548828125,
0.0049896240234375,
0.0084991455078125,
0.01291656494140625,
-0.057159423828125,
0.04412841796875,
-0.037628173828125,
-0.0192108154296875,
0.0298004150390625,
0.042205810546875,
0.0131683349609375,
0.036529541015625,
-0.00826263427734375,
-0.00470733642578125,
0.00592803955078125,
-0.0023059844970703125,
-0.012420654296875,
-0.002826690673828125,
0.003719329833984375,
-0.03924560546875,
0.01244354248046875,
-0.01236724853515625,
-0.01446533203125,
0.017822265625,
0.008758544921875,
-0.0005331039428710938,
-0.00897216796875,
-0.041229248046875,
-0.00665283203125,
0.0042877197265625,
-0.0063018798828125,
-0.03045654296875,
0.0550537109375,
0.032867431640625,
0.023468017578125,
0.0265350341796875,
-0.0235595703125,
0.095947265625,
0.0026645660400390625,
-0.0133209228515625,
0.0002884864807128906,
0.01190948486328125,
0.030853271484375,
0.0119476318359375,
0.035614013671875,
0.005840301513671875,
0.002227783203125,
-0.048980712890625,
0.038360595703125,
-0.02166748046875,
-0.0263214111328125,
0.00025153160095214844,
-0.00218963623046875,
-0.0170135498046875,
0.010284423828125,
0.005084991455078125,
-0.01207733154296875,
-0.00870513916015625,
-0.0030841827392578125,
-0.04229736328125,
-0.005382537841796875,
-0.0108642578125,
0.01947021484375,
-0.0501708984375,
0.02020263671875,
0.03314208984375,
-0.022857666015625,
-0.032470703125,
-0.014251708984375,
0.0167388916015625,
-0.0179443359375,
-0.0531005859375,
0.06488037109375,
-0.007167816162109375,
0.07281494140625,
-0.0191497802734375,
-0.02886962890625,
-0.00568389892578125,
-0.055267333984375,
0.014190673828125,
-0.018890380859375,
-0.01190185546875,
-0.024993896484375,
-0.011260986328125,
-0.00865936279296875,
-0.0330810546875,
0.03753662109375,
0.0093994140625,
-0.025299072265625,
-0.07427978515625,
-0.006717681884765625,
-0.04327392578125,
-0.042083740234375,
-0.0012121200561523438,
0.0645751953125,
0.04296875,
0.06085205078125,
-0.019927978515625,
-0.0237884521484375,
0.056365966796875,
-0.063232421875,
0.0010471343994140625,
0.0002608299255371094,
-0.00685882568359375,
0.019500732421875,
-0.00594329833984375,
0.00046253204345703125,
0.01467132568359375,
0.01108551025390625,
-0.05047607421875,
0.05328369140625,
-0.0355224609375,
-0.0259552001953125,
-0.00589752197265625,
-0.0029888153076171875,
-0.00337982177734375,
-0.08172607421875,
-0.01397705078125,
-0.039031982421875,
-0.0112457275390625,
-0.023193359375,
-0.0030517578125,
-0.0161590576171875,
-0.017364501953125,
-0.012481689453125,
0.041717529296875,
-0.0296630859375,
-0.0103912353515625,
0.023712158203125,
0.047943115234375,
-0.03643798828125,
-0.018646240234375,
-0.029571533203125,
-0.003536224365234375,
0.0054473876953125,
-0.006381988525390625,
-0.01467132568359375,
-0.060821533203125,
-0.003017425537109375,
0.011474609375,
-0.0347900390625,
0.0034351348876953125,
0.05450439453125,
0.007659912109375,
-0.0152435302734375,
0.03216552734375,
-0.0033283233642578125,
-0.01027679443359375,
0.021636962890625,
-0.00678253173828125,
-0.036956787109375,
-0.032958984375,
-0.05145263671875,
0.051910400390625,
-0.0655517578125,
0.0093994140625,
0.0506591796875,
-0.0276947021484375,
0.01117706298828125,
-0.0030956268310546875,
-0.0007796287536621094,
-0.00832366943359375,
-0.004520416259765625,
-0.0247802734375,
0.00841522216796875,
-0.06298828125,
0.0018596649169921875,
0.01396942138671875,
-0.000030517578125,
-0.0160369873046875,
-0.0272979736328125,
-0.039031982421875,
-0.001178741455078125,
-0.08233642578125,
-0.06878662109375,
-0.08831787109375,
-0.09454345703125,
-0.0179901123046875,
0.03375244140625,
-0.0362548828125,
0.03411865234375,
0.076904296875,
0.033416748046875,
0.058319091796875,
-0.02386474609375,
-0.047637939453125,
-0.00927734375,
-0.059112548828125,
-0.0307464599609375,
-0.006290435791015625,
-0.01508331298828125,
-0.0024242401123046875,
0.04376220703125,
-0.0039005279541015625,
-0.009063720703125,
-0.0013628005981445312,
0.007801055908203125,
0.0050201416015625,
-0.0210723876953125,
-0.059417724609375,
-0.03466796875,
-0.0029582977294921875,
-0.0150299072265625,
0.016082763671875,
-0.025299072265625,
0.050140380859375,
0.0230255126953125,
-0.0019321441650390625,
-0.037384033203125,
0.01171112060546875,
-0.00206756591796875,
-0.0183868408203125,
-0.02423095703125,
-0.00641632080078125,
-0.05181884765625,
-0.031768798828125,
0.0076446533203125,
-0.03729248046875,
0.061859130859375,
0.0185089111328125,
-0.0184783935546875,
0.0294189453125,
0.014678955078125,
0.01690673828125,
0.021759033203125,
0.00015234947204589844,
-0.03668212890625,
0.03692626953125,
0.00705718994140625,
0.0262908935546875,
-0.018951416015625,
0.050048828125,
-0.02227783203125,
0.0024929046630859375,
0.017608642578125,
0.003437042236328125,
0.0276641845703125,
-0.0240478515625,
0.01178741455078125,
-0.077880859375,
0.0171356201171875,
-0.10186767578125,
-0.00637054443359375,
-0.06060791015625,
0.00649261474609375,
-0.0234832763671875,
0.0880126953125,
-0.01873779296875,
-0.027862548828125,
0.023223876953125,
0.03302001953125,
-0.030731201171875,
-0.004741668701171875,
-0.0178680419921875,
-0.020538330078125,
-0.07769775390625,
-0.01116180419921875,
-0.0134124755859375,
-0.025665283203125,
0.0233154296875,
-0.09375,
-0.016845703125,
-0.066162109375,
0.0298614501953125,
-0.032501220703125,
0.0198516845703125,
0.02508544921875,
-0.0235443115234375,
0.011138916015625,
-0.009429931640625,
-0.026458740234375,
-0.0548095703125,
-0.0163116455078125,
0.057159423828125,
0.03839111328125,
0.0146484375,
-0.055084228515625,
-0.00981903076171875,
0.042999267578125,
0.03045654296875,
0.015594482421875,
0.036224365234375,
-0.017242431640625,
0.028564453125,
-0.00659942626953125,
0.0218963623046875,
-0.0186309814453125,
0.00296783447265625,
-0.0231475830078125,
-0.07452392578125,
-0.03411865234375,
-0.0078277587890625,
0.0100860595703125,
0.053009033203125,
-0.037261962890625,
-0.0653076171875,
-0.0302581787109375,
0.0282440185546875,
0.0165252685546875,
0.01324462890625,
0.004364013671875,
-0.019317626953125,
-0.046112060546875,
0.05072021484375,
0.01313018798828125,
-0.0191192626953125,
-0.004322052001953125,
0.024566650390625,
0.00835418701171875,
-0.0284881591796875,
0.038848876953125,
0.0256500244140625,
0.0171356201171875,
0.023284912109375,
0.021697998046875,
-0.02264404296875,
0.0031108856201171875,
0.03875732421875,
-0.01496124267578125,
-0.0081787109375,
0.0002446174621582031,
0.0171051025390625,
-0.01117706298828125,
-0.034881591796875,
0.01303863525390625,
-0.03350830078125,
0.01885986328125,
0.059295654296875,
0.00832366943359375,
0.0099639892578125,
-0.01486968994140625,
-0.0196685791015625,
-0.0008406639099121094,
-0.041229248046875,
-0.00832366943359375,
-0.02392578125,
0.01367950439453125,
-0.004810333251953125,
0.01508331298828125,
0.0175933837890625,
-0.0079193115234375,
0.007106781005859375,
0.00037097930908203125,
-0.015716552734375,
-0.049591064453125,
-0.0748291015625,
-0.0144500732421875,
-0.002227783203125,
-0.036773681640625,
-0.006526947021484375,
0.011627197265625,
-0.01629638671875,
0.075439453125,
0.004680633544921875,
-0.0758056640625,
0.0263214111328125,
-0.050689697265625,
0.0029087066650390625,
0.033966064453125,
-0.03717041015625,
0.0303955078125,
-0.0167083740234375,
-0.061920166015625,
0.0031528472900390625,
-0.04901123046875,
-0.043548583984375,
-0.065673828125,
0.0721435546875,
0.0223541259765625,
0.0170440673828125,
0.0038204193115234375,
0.10748291015625,
0.0279388427734375,
0.052642822265625,
-0.01580810546875,
-0.018951416015625,
-0.025146484375,
0.04034423828125,
0.03607177734375,
-0.01776123046875,
0.0101318359375,
0.003795623779296875,
0.0333251953125,
-0.04852294921875,
-0.0352783203125,
-0.004627227783203125,
0.03253173828125,
0.005168914794921875,
0.00800323486328125,
0.024871826171875,
-0.0015878677368164062,
0.01320648193359375,
0.047576904296875,
-0.0260009765625,
-0.0848388671875,
-0.003910064697265625,
0.01363372802734375,
0.0232086181640625,
-0.05999755859375,
-0.005859375,
-0.03741455078125,
-0.02880859375,
-0.006870269775390625,
-0.0341796875,
-0.0239715576171875,
0.0007190704345703125,
-0.01270294189453125,
0.017578125,
-0.00702667236328125,
-0.01561737060546875,
-0.01092529296875,
0.0180206298828125,
-0.02374267578125,
-0.01233673095703125,
0.060150146484375,
-0.035736083984375,
0.0249176025390625,
-0.00200653076171875,
-0.0232086181640625,
0.027374267578125,
0.01291656494140625,
0.0276336669921875,
0.01708984375,
-0.0634765625,
0.01483917236328125,
-0.015350341796875,
-0.01454925537109375,
0.0307159423828125,
-0.01253509521484375,
-0.0545654296875,
-0.043365478515625,
-0.0069122314453125,
0.0147247314453125,
-0.013702392578125,
-0.022857666015625,
-0.0352783203125,
-0.00417327880859375,
0.016387939453125,
-0.01506805419921875,
0.0178070068359375,
0.0283660888671875,
-0.019500732421875,
0.0165863037109375,
0.016937255859375,
0.028076171875,
-0.005321502685546875,
-0.0261077880859375,
0.036865234375,
0.018096923828125,
-0.03131103515625,
-0.06903076171875,
0.023773193359375,
-0.00865936279296875,
0.050537109375,
-0.01103973388671875,
-0.0131683349609375,
0.004688262939453125,
0.002857208251953125,
-0.0224151611328125,
0.0457763671875,
0.0285797119140625,
0.005161285400390625,
0.0216827392578125,
-0.0183258056640625,
0.00945281982421875,
-0.0195465087890625,
0.002758026123046875,
0.007434844970703125,
-0.022003173828125,
0.0015707015991210938,
0.0220184326171875,
-0.052947998046875,
0.069091796875,
0.046783447265625,
-0.0013093948364257812,
0.02374267578125,
-0.01181793212890625,
0.003997802734375,
0.0014781951904296875,
-0.0144805908203125,
-0.022491455078125,
0.01837158203125,
0.040374755859375,
-0.0007205009460449219,
-0.01198577880859375,
0.035980224609375,
-0.0093536376953125,
-0.00946807861328125,
0.0540771484375,
0.040069580078125,
-0.09893798828125,
-0.002170562744140625,
0.00556182861328125,
0.01690673828125,
0.02691650390625,
0.0078582763671875,
0.01245880126953125,
0.01267242431640625,
0.017852783203125,
-0.0260162353515625,
-0.00921630859375,
0.0101165771484375,
0.0007410049438476562,
0.00791168212890625,
-0.0038204193115234375,
0.008575439453125,
0.006229400634765625,
-0.08465576171875,
0.0093536376953125,
0.06317138671875,
-0.0163421630859375,
-0.0316162109375,
-0.0184173583984375,
0.004833221435546875,
-0.0251007080078125,
-0.05572509765625,
-0.0059814453125,
-0.0340576171875,
0.02081298828125,
0.019500732421875,
-0.00958251953125,
0.01922607421875,
0.059051513671875,
-0.0293121337890625,
0.012847900390625,
0.006793975830078125,
-0.0107269287109375,
0.045989990234375,
-0.031585693359375,
0.0192413330078125,
-0.00122833251953125,
-0.0640869140625,
0.01294708251953125,
-0.00830078125,
-0.031951904296875,
-0.00689697265625,
0.006977081298828125,
0.046661376953125,
-0.03656005859375,
-0.006351470947265625,
0.0255279541015625,
0.052764892578125,
0.0044708251953125,
-0.0239410400390625,
0.057373046875,
-0.034423828125,
0.024932861328125,
-0.004398345947265625,
0.0221405029296875,
-0.004589080810546875,
-0.0294036865234375,
-0.0263214111328125,
0.05743408203125,
-0.051544189453125,
-0.004138946533203125,
0.033905029296875,
0.032867431640625,
0.007904052734375,
0.03765869140625,
-0.00897979736328125,
0.055694580078125,
-0.0207366943359375,
0.043609619140625,
-0.0002856254577636719,
0.0142974853515625,
0.0276641845703125,
-0.006591796875,
0.022003173828125,
0.0203704833984375,
-0.051055908203125,
0.004878997802734375,
0.03692626953125,
0.010406494140625,
0.001678466796875,
0.061492919921875,
0.026397705078125,
0.008544921875,
0.03411865234375,
-0.04931640625,
0.01094818115234375,
-0.0214691162109375,
0.0274810791015625,
0.035491943359375,
0.0002918243408203125,
-0.0401611328125,
0.0063323974609375,
0.0550537109375,
-0.07952880859375,
0.01371002197265625,
0.052947998046875,
-0.025543212890625,
0.0172119140625,
0.0229949951171875,
0.0330810546875,
-0.007190704345703125,
0.0289154052734375,
-0.022216796875,
0.041656494140625,
-0.00859832763671875,
0.00339508056640625,
0.024017333984375,
0.007843017578125,
0.050994873046875,
-0.027587890625,
-0.00853729248046875,
0.00014507770538330078,
0.01462554931640625,
0.0748291015625,
0.022796630859375,
0.0169830322265625,
-0.037841796875,
0.039520263671875,
0.047393798828125,
0.07818603515625,
-0.048248291015625,
-0.053253173828125,
0.0098114013671875,
0.003849029541015625,
0.035797119140625,
0.0020847320556640625,
0.048797607421875,
-0.0653076171875,
-0.00804901123046875,
-0.01517486572265625,
0.00011485815048217773,
0.0203704833984375,
-0.01168060302734375,
-0.006633758544921875,
0.01715087890625,
-0.0037784576416015625,
0.036529541015625,
0.01013946533203125,
-0.01387786865234375,
0.0117034912109375,
0.0233154296875,
-0.0380859375,
0.0311126708984375,
-0.0161285400390625,
0.021636962890625,
-0.0104827880859375,
0.0238800048828125,
-0.0072479248046875,
0.01190185546875,
-0.02203369140625,
-0.01375579833984375,
-0.01617431640625,
0.02777099609375,
0.01312255859375,
-0.03399658203125,
0.02459716796875,
0.032806396484375,
-0.0238037109375,
-0.0212249755859375,
-0.03265380859375,
-0.0195159912109375,
0.0465087890625,
0.0045318603515625,
0.004428863525390625,
-0.005352020263671875,
-0.034454345703125,
-0.041961669921875,
0.0167236328125,
0.03875732421875,
0.032135009765625,
0.0221405029296875,
0.015350341796875,
-0.007785797119140625,
-0.002349853515625,
0.0300140380859375,
0.03070068359375,
0.070068359375,
-0.0300750732421875,
-0.0153350830078125,
-0.010894775390625,
-0.0300445556640625,
0.018341064453125,
0.043304443359375,
0.004413604736328125,
0.0121307373046875,
-0.0161285400390625,
-0.02825927734375,
0.0274505615234375,
0.00021016597747802734,
0.0020465850830078125,
-0.0131072998046875,
-0.003810882568359375,
-0.037933349609375,
-0.08978271484375,
-0.035797119140625,
-0.052459716796875,
0.01082611083984375,
0.01959228515625,
0.07891845703125,
0.00919342041015625,
0.02447509765625,
-0.032501220703125,
-0.00763702392578125,
-0.0205230712890625,
-0.027618408203125,
0.0048370361328125,
-0.0023326873779296875,
-0.01263427734375,
0.00016999244689941406,
-0.044464111328125,
0.05084228515625,
-0.0022640228271484375,
0.05877685546875,
0.0299530029296875,
-0.04010009765625,
0.015960693359375,
0.037139892578125,
0.0238494873046875,
-0.0218505859375,
-0.058868408203125,
-0.0277099609375,
0.033233642578125,
-0.0070343017578125,
0.0244140625,
-0.00707244873046875,
0.038818359375,
-0.0202484130859375,
0.0018644332885742188,
0.015045166015625,
-0.03448486328125,
0.0240631103515625,
0.03192138671875,
-0.072021484375,
0.024932861328125,
0.0245819091796875,
-0.00844573974609375,
0.0166473388671875,
0.01470947265625,
-0.0240325927734375,
0.0136260986328125,
-0.0281219482421875,
0.00780487060546875,
0.009857177734375,
0.0055084228515625,
-0.006069183349609375,
-0.0109100341796875,
0.00397491455078125,
-0.039947509765625,
0.042724609375,
0.0242156982421875,
-0.0147247314453125,
-0.04205322265625,
-0.021484375,
-0.0235137939453125,
-0.01194000244140625,
-0.0234832763671875,
0.01288604736328125,
0.011474609375,
0.02264404296875,
-0.0061492919921875,
-0.042022705078125,
0.004856109619140625,
-0.0083465576171875,
0.05712890625,
-0.016632080078125,
-0.0748291015625,
0.0241851806640625,
0.04010009765625,
-0.01357269287109375,
-0.02734375,
-0.06927490234375,
-0.04376220703125,
-0.08636474609375,
-0.005748748779296875,
0.026123046875,
0.003856658935546875,
0.032562255859375,
-0.0355224609375,
-0.0252227783203125,
0.0244903564453125,
-0.08294677734375,
-0.0313720703125,
-0.0017347335815429688,
0.01241302490234375,
0.0032405853271484375,
-0.03887939453125,
-0.01513671875,
-0.0264129638671875,
0.016143798828125,
0.007602691650390625,
-0.024993896484375,
-0.0186004638671875,
-0.04730224609375,
-0.0364990234375,
0.052520751953125,
0.0073394775390625,
-0.0216064453125,
-0.036285400390625,
0.0131683349609375,
-0.019805908203125,
0.0469970703125,
-0.0038356781005859375,
0.0034732818603515625,
-0.02056884765625,
0.0108642578125,
-0.00489044189453125,
0.004425048828125,
0.0022830963134765625,
0.0164794921875,
0.010711669921875,
0.040435791015625,
0.042633056640625,
-0.023712158203125,
0.016448974609375,
-0.0240325927734375,
0.02001953125,
0.050262451171875,
-0.0271453857421875,
-0.04150390625,
-0.0155029296875,
-0.012115478515625,
0.0263519287109375,
-0.0207977294921875,
0.0096435546875,
-0.0176239013671875,
-0.041229248046875,
0.006267547607421875,
-0.01812744140625,
0.01027679443359375,
-0.061859130859375,
-0.04705810546875,
0.0014867782592773438,
-0.0203857421875,
0.0114288330078125,
-0.07373046875,
-0.0033416748046875,
0.0142669677734375,
-0.01244354248046875,
0.0209503173828125,
0.01007843017578125,
-0.028076171875,
0.0025539398193359375,
0.006114959716796875,
-0.01519775390625,
-0.039154052734375,
-0.016998291015625,
0.049652099609375,
-0.0340576171875,
-0.002079010009765625,
0.0162811279296875,
0.0195465087890625,
0.014617919921875,
0.01180267333984375,
0.01177215576171875,
0.028106689453125,
-0.03826904296875,
-0.0007085800170898438,
-0.003902435302734375,
0.014556884765625,
-0.0240936279296875,
-0.0191192626953125,
-0.0206298828125,
0.02972412109375,
-0.01322174072265625,
0.0277099609375,
0.019927978515625,
0.00531768798828125,
0.00952911376953125,
0.039886474609375,
-0.011199951171875,
0.002716064453125,
-0.01221466064453125,
0.0204620361328125,
-0.0009326934814453125,
-0.00870513916015625,
0.037628173828125,
-0.0172576904296875,
-0.001842498779296875,
0.0172271728515625,
0.05670166015625,
-0.037109375,
0.053070068359375,
-0.0156097412109375,
0.0489501953125,
0.0189971923828125
] |
2f6411030a3470a31c81fac4556f8d81f31cfb0c | Wordpress Stackexchange
Q: Allow excerpt for pages in Gutenberg? I'd like to utilize excerpt field on pages. How do I enable it?
Currently excerpt block only shows on posts in sidebar. But on pages it’s missing.
A: It's nothing new with the block editor, it's the same age-old way by putting the following code into your theme's functions.php:
add_action( 'init', 'wpse325327_add_excerpts_to_pages' );
function wpse325327_add_excerpts_to_pages() {
add_post_type_support( 'page', 'excerpt' );
}
Here's my screenshot in a fresh WordPress 5.0.3 install:
| Q: Allow excerpt for pages in Gutenberg? I'd like to utilize excerpt field on pages. How do I enable it?
Currently excerpt block only shows on posts in sidebar. But on pages it’s missing.
A: It's nothing new with the block editor, it's the same age-old way by putting the following code into your theme's functions.php:
add_action( 'init', 'wpse325327_add_excerpts_to_pages' );
function wpse325327_add_excerpts_to_pages() {
add_post_type_support( 'page', 'excerpt' );
}
Here's my screenshot in a fresh WordPress 5.0.3 install:
| wordpress | {
"language": "en",
"length": 77,
"provenance": "stackexchange_00019.jsonl.gz:491900",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/325327"
} | [
0.030670166015625,
-0.032867431640625,
-0.0026092529296875,
0.007350921630859375,
-0.021209716796875,
-0.04827880859375,
0.0298309326171875,
-0.00096893310546875,
-0.010528564453125,
0.0202484130859375,
-0.03680419921875,
-0.003173828125,
0.022003173828125,
-0.01416015625,
-0.002925872802734375,
-0.01910400390625,
0.03173828125,
0.004764556884765625,
0.037384033203125,
-0.00555419921875,
0.004261016845703125,
0.026458740234375,
-0.0161285400390625,
-0.004070281982421875,
0.013824462890625,
0.00798797607421875,
0.030548095703125,
-0.00905609130859375,
0.0301971435546875,
0.00020575523376464844,
0.03790283203125,
-0.03424072265625,
0.038330078125,
0.003173828125,
-0.04034423828125,
0.0027599334716796875,
-0.0301513671875,
-0.004119873046875,
-0.02789306640625,
0.0265350341796875,
0.02984619140625,
-0.0182342529296875,
-0.0227813720703125,
-0.0132904052734375,
-0.022491455078125,
-0.00415802001953125,
0.0181732177734375,
-0.0252685546875,
0.01103973388671875,
-0.0021209716796875,
-0.0018129348754882812,
0.008331298828125,
0.00508880615234375,
0.0269775390625,
-0.0164642333984375,
-0.0181121826171875,
-0.0106964111328125,
0.0220184326171875,
0.0105133056640625,
-0.01036834716796875,
-0.0080108642578125,
0.034332275390625,
0.01221466064453125,
0.019561767578125,
0.043670654296875,
-0.01336669921875,
0.023101806640625,
0.04656982421875,
-0.042510986328125,
0.01555633544921875,
0.02288818359375,
-0.041717529296875,
-0.0268402099609375,
-0.0772705078125,
-0.00646209716796875,
0.0654296875,
-0.03515625,
-0.034637451171875,
-0.006481170654296875,
0.00024211406707763672,
-0.0535888671875,
-0.016265869140625,
-0.0260009765625,
-0.042388916015625,
0.001598358154296875,
-0.0135040283203125,
-0.03570556640625,
0.0184478759765625,
-0.0283966064453125,
-0.00022482872009277344,
-0.019805908203125,
0.0004794597625732422,
-0.000133514404296875,
-0.006359100341796875,
-0.02630615234375,
-0.0121917724609375,
0.0230560302734375,
0.0277099609375,
-0.01983642578125,
-0.0043182373046875,
0.00012636184692382812,
-0.04766845703125,
0.061614990234375,
-0.0411376953125,
0.033966064453125,
0.0614013671875,
-0.0482177734375,
-0.0236053466796875,
0.05865478515625,
0.0241241455078125,
0.021270751953125,
-0.013519287109375,
0.0088348388671875,
-0.03851318359375,
-0.0177154541015625,
0.005706787109375,
-0.0255889892578125,
-0.010406494140625,
0.0247802734375,
-0.031768798828125,
0.01004791259765625,
0.041046142578125,
0.008453369140625,
-0.029632568359375,
-0.0093231201171875,
-0.0076446533203125,
-0.01549530029296875,
-0.049407958984375,
0.009857177734375,
-0.0035495758056640625,
-0.002704620361328125,
0.003116607666015625,
-0.017120361328125,
0.0225372314453125,
-0.0014009475708007812,
-0.01349639892578125,
0.03363037109375,
-0.00766754150390625,
0.0146331787109375,
-0.0015993118286132812,
-0.01088714599609375,
-0.00763702392578125,
0.01425933837890625,
-0.01363372802734375,
0.0006093978881835938,
-0.0007877349853515625,
0.02410888671875,
0.0228729248046875,
-0.006435394287109375,
-0.0179443359375,
0.00494384765625,
0.004444122314453125,
0.0291595458984375,
0.01007843017578125,
-0.01348876953125,
-0.035552978515625,
0.011199951171875,
-0.029541015625,
0.01009368896484375,
-0.03607177734375,
0.0687255859375,
0.00643157958984375,
-0.011016845703125,
0.00463104248046875,
-0.045867919921875,
-0.01548004150390625,
-0.02801513671875,
-0.0223388671875,
0.0186767578125,
0.047393798828125,
-0.01226806640625,
-0.04718017578125,
-0.02935791015625,
-0.0082244873046875,
-0.0295257568359375,
0.01513671875,
-0.01031494140625,
-0.033782958984375,
0.01068878173828125,
0.0546875,
-0.006259918212890625,
-0.00804901123046875,
-0.0020275115966796875,
0.0003116130828857422,
-0.0263519287109375,
0.0301361083984375,
0.004207611083984375,
0.03948974609375,
0.006561279296875,
0.026397705078125,
-0.04437255859375,
0.02239990234375,
-0.0227508544921875,
-0.0042266845703125,
0.007053375244140625,
-0.040802001953125,
0.026611328125,
-0.01357269287109375,
0.00540924072265625,
0.0121002197265625,
0.057403564453125,
-0.053863525390625,
0.0462646484375,
-0.01255035400390625,
-0.01270294189453125,
-0.0072479248046875,
-0.015869140625,
0.0030727386474609375,
0.03857421875,
-0.0065460205078125,
-0.0035724639892578125,
-0.03302001953125,
0.0027332305908203125,
-0.02313232421875,
-0.062103271484375,
0.024505615234375,
-0.00553131103515625,
0.0297088623046875,
0.0233917236328125,
0.0010766983032226562,
0.058013916015625,
-0.02581787109375,
0.040863037109375,
0.019927978515625,
0.0758056640625,
-0.041473388671875,
-0.0011148452758789062,
-0.0615234375,
0.0238800048828125,
0.0028285980224609375,
-0.07635498046875,
0.04205322265625,
0.044769287109375,
0.031524658203125,
-0.0219573974609375,
0.022064208984375,
0.02423095703125,
0.0010433197021484375,
-0.0157928466796875,
0.01953125,
0.05267333984375,
0.0091705322265625,
-0.0255126953125,
-0.07720947265625,
0.0230865478515625,
-0.037322998046875,
0.02545166015625,
-0.052825927734375,
-0.02490234375,
-0.01332855224609375,
0.007129669189453125,
0.0155487060546875,
0.01276397705078125,
-0.0149688720703125,
0.019439697265625,
0.017120361328125,
-0.00946807861328125,
0.0163421630859375,
-0.013336181640625,
-0.011871337890625,
0.00655364990234375,
-0.024688720703125,
-0.013519287109375,
-0.0236053466796875,
0.04150390625,
0.049285888671875,
0.0611572265625,
0.0565185546875,
-0.042755126953125,
0.025115966796875,
0.010223388671875,
0.040313720703125,
0.02239990234375,
0.02056884765625,
0.028106689453125,
0.00579071044921875,
-0.02978515625,
-0.018585205078125,
0.07684326171875,
0.014739990234375,
-0.0161285400390625,
-0.02313232421875,
-0.043609619140625,
-0.0018587112426757812,
-0.0009064674377441406,
-0.090087890625,
0.00592041015625,
0.0308990478515625,
0.00678253173828125,
-0.04681396484375,
0.01317596435546875,
-0.01361846923828125,
-0.0161590576171875,
-0.001514434814453125,
0.01538848876953125,
-0.04364013671875,
0.06640625,
-0.07684326171875,
0.05657958984375,
-0.0626220703125,
0.07977294921875,
0.050689697265625,
-0.05615234375,
0.01904296875,
0.0156097412109375,
-0.031585693359375,
0.02374267578125,
0.031494140625,
0.01387786865234375,
-0.00029397010803222656,
-0.043792724609375,
0.02178955078125,
0.0309600830078125,
0.0003368854522705078,
0.024505615234375,
-0.0085906982421875,
-0.005496978759765625,
0.032440185546875,
-0.049560546875,
-0.0229949951171875,
-0.0300140380859375,
-0.07098388671875,
-0.045562744140625,
0.00675201416015625,
-0.05755615234375,
0.030242919921875,
0.037811279296875,
0.00496673583984375,
-0.0121612548828125,
-0.0221710205078125,
-0.0675048828125,
-0.0589599609375,
-0.0823974609375,
-0.0242919921875,
-0.007537841796875,
0.0164642333984375,
-0.006679534912109375,
0.054962158203125,
-0.01055145263671875,
-0.06878662109375,
-0.0244140625,
-0.0309295654296875,
-0.0232391357421875,
-0.00766754150390625,
0.0018796920776367188,
-0.0162811279296875,
0.0218353271484375,
0.0100555419921875,
0.03216552734375,
0.021209716796875,
-0.021514892578125,
-0.01971435546875,
-0.0400390625,
0.032562255859375,
-0.0055084228515625,
-0.0147705078125,
0.036346435546875,
0.00469207763671875,
-0.0219573974609375,
-0.033782958984375,
-0.0145263671875,
-0.00611114501953125,
-0.05511474609375,
-0.037872314453125,
0.01088714599609375,
0.0118255615234375,
-0.0182342529296875,
0.0162506103515625,
0.017730712890625,
-0.0157470703125,
0.067626953125,
-0.02703857421875,
0.01105499267578125,
-0.0114898681640625,
-0.0014925003051757812,
-0.05377197265625,
-0.0022182464599609375,
-0.0065460205078125,
0.046142578125,
-0.00339508056640625,
0.06365966796875,
-0.0202178955078125,
0.0748291015625,
-0.09039306640625,
-0.02471923828125,
0.04205322265625,
-0.00925445556640625,
-0.003429412841796875,
0.006500244140625,
-0.0158538818359375,
0.017974853515625,
0.053436279296875,
-0.0186920166015625,
-0.036102294921875,
-0.005924224853515625,
0.0224609375,
-0.024993896484375,
-0.0419921875,
0.0202178955078125,
-0.0082244873046875,
0.0200347900390625,
0.0029048919677734375,
-0.00033664703369140625,
-0.0223388671875,
-0.0101318359375,
-0.01194000244140625,
0.015411376953125,
0.00269317626953125,
0.052093505859375,
-0.03131103515625,
-0.0272979736328125,
0.0653076171875,
-0.04962158203125,
0.006683349609375,
-0.06103515625,
0.0005884170532226562,
-0.11676025390625,
-0.004611968994140625,
-0.0224151611328125,
0.0682373046875,
0.00820159912109375,
-0.02838134765625,
-0.01432037353515625,
0.06365966796875,
0.04736328125,
-0.037994384765625,
0.045257568359375,
-0.0178375244140625,
0.040283203125,
-0.023895263671875,
0.018096923828125,
-0.0447998046875,
0.0045318603515625,
-0.0021724700927734375,
-0.007778167724609375,
0.042510986328125,
-0.0310211181640625,
-0.00893402099609375,
-0.0013360977172851562,
-0.0178070068359375,
-0.030364990234375,
-0.0147247314453125,
-0.01233673095703125,
0.00982666015625,
-0.007568359375,
-0.0088348388671875,
-0.0093536376953125,
-0.028839111328125,
0.037139892578125,
0.031494140625,
-0.01824951171875,
0.005397796630859375,
0.041534423828125,
0.0201263427734375,
-0.025390625,
-0.043212890625,
0.035888671875,
0.037353515625,
-0.0007615089416503906,
0.0894775390625,
0.029876708984375,
-0.01209259033203125,
0.085693359375,
0.00933837890625,
-0.032257080078125,
-0.053558349609375,
0.00804901123046875,
-0.0169219970703125,
-0.036865234375,
0.01422882080078125,
-0.047882080078125,
0.1268310546875,
-0.00437164306640625,
-0.0303802490234375,
-0.006072998046875,
-0.00191497802734375,
0.042144775390625,
-0.03253173828125,
0.050018310546875,
-0.0198822021484375,
0.01837158203125,
-0.0162200927734375,
0.039154052734375,
0.0528564453125,
0.061767578125,
-0.0111083984375,
0.020294189453125,
0.040679931640625,
-0.01233673095703125,
0.02923583984375,
-0.00894927978515625,
-0.007083892822265625,
0.0303802490234375,
-0.0207061767578125,
-0.0263671875,
0.04010009765625,
0.01261138916015625,
0.0166473388671875,
-0.02142333984375,
-0.0440673828125,
-0.035919189453125,
-0.0256195068359375,
0.025543212890625,
0.0224456787109375,
0.03131103515625,
0.025970458984375,
0.0005340576171875,
-0.0199127197265625,
0.0087127685546875,
0.01499176025390625,
-0.0002758502960205078,
-0.0496826171875,
0.00038933753967285156,
-0.00870513916015625,
-0.00142669677734375,
-0.004848480224609375,
0.07464599609375,
-0.046539306640625,
0.047607421875,
0.0019006729125976562,
0.0126953125,
0.01258087158203125,
0.0266876220703125,
0.029693603515625,
0.00766754150390625,
-0.0265655517578125,
0.0010251998901367188,
-0.0120086669921875,
-0.033294677734375,
-0.0307159423828125,
0.0076751708984375,
0.03167724609375,
-0.029510498046875,
-0.0098876953125,
0.024658203125,
-0.0237274169921875,
-0.01380157470703125,
0.04364013671875,
-0.00820159912109375,
-0.0292205810546875,
-0.04132080078125,
0.0006642341613769531,
0.06402587890625,
0.005340576171875,
-0.01885986328125,
-0.007678985595703125,
-0.026397705078125,
0.007556915283203125,
0.0005979537963867188,
-0.02734375,
0.007404327392578125,
-0.014984130859375,
0.032562255859375,
-0.01528167724609375,
-0.00928497314453125,
0.0129852294921875,
-0.015869140625,
-0.01035308837890625,
-0.006000518798828125,
0.0300445556640625,
-0.0222015380859375,
-0.00885009765625,
-0.0140838623046875,
0.030303955078125,
-0.03155517578125,
0.0214080810546875,
0.021270751953125,
0.0217742919921875,
-0.07684326171875,
-0.041290283203125,
-0.05682373046875,
-0.007843017578125,
-0.0255584716796875,
-0.02825927734375,
-0.0257568359375,
0.019500732421875,
0.005283355712890625,
0.02392578125,
-0.0193634033203125,
-0.045501708984375,
-0.0169677734375,
0.0172119140625,
0.01424407958984375,
0.044281005859375,
-0.00388336181640625,
0.060577392578125,
-0.0280303955078125,
0.058929443359375,
-0.0004649162292480469,
0.0220489501953125,
-0.004001617431640625,
-0.021881103515625,
-0.0243377685546875,
-0.03375244140625,
0.01055908203125,
0.0048980712890625,
-0.001964569091796875,
0.047332763671875,
0.06439208984375,
0.030181884765625,
-0.0047607421875,
-0.033477783203125,
-0.00334930419921875,
-0.0244140625,
0.047882080078125,
-0.036163330078125,
-0.03216552734375,
0.00360107421875,
-0.0107879638671875,
0.0233306884765625,
-0.00013971328735351562,
-0.0275726318359375,
0.045684814453125,
-0.006755828857421875,
0.04071044921875,
-0.016082763671875,
-0.015472412109375,
0.00696563720703125,
0.043487548828125,
0.005710601806640625,
0.04486083984375,
0.005710601806640625,
0.00913238525390625,
0.0242767333984375,
0.04888916015625,
-0.033843994140625,
0.0101318359375,
0.026123046875,
0.005153656005859375,
-0.012603759765625,
-0.0185546875,
-0.0090484619140625,
0.0119781494140625,
0.079345703125,
0.0706787109375,
-0.09320068359375,
-0.004608154296875,
0.005977630615234375,
-0.01300048828125,
0.030792236328125,
-0.003223419189453125,
0.0009212493896484375,
-0.040283203125,
0.0567626953125,
0.0117034912109375,
0.00592803955078125,
0.027984619140625,
-0.00795745849609375,
-0.0069427490234375,
-0.0261688232421875,
0.05328369140625,
0.029327392578125,
-0.0260009765625,
0.033599853515625,
0.009033203125,
0.03729248046875,
-0.01398468017578125,
-0.0006737709045410156,
0.007709503173828125,
-0.01024627685546875,
-0.0131072998046875,
0.044677734375,
-0.0386962890625,
0.023193359375,
0.052642822265625,
0.039581298828125,
0.011566162109375,
0.061309814453125,
0.0070953369140625,
0.0179901123046875,
0.0177154541015625,
0.0238494873046875,
-0.0389404296875,
-0.01117706298828125,
0.0039825439453125,
0.0286102294921875,
0.02239990234375,
0.0225982666015625,
-0.002033233642578125,
-0.0302276611328125,
-0.014251708984375,
0.032257080078125,
0.09771728515625,
-0.029815673828125,
-0.0411376953125,
0.0205841064453125,
0.01276397705078125,
-0.0015001296997070312,
-0.00385284423828125,
0.045989990234375,
-0.02996826171875,
0.024322509765625,
0.01392364501953125,
0.032867431640625,
-0.03326416015625,
0.0097198486328125,
-0.049163818359375,
0.100341796875,
0.01319122314453125,
0.006500244140625,
0.00946807861328125,
0.045166015625,
-0.05841064453125,
0.017120361328125,
-0.0243682861328125,
0.06597900390625,
0.01157379150390625,
0.0271453857421875,
-0.03515625,
-0.0094451904296875,
0.0025119781494140625,
0.035064697265625,
0.047210693359375,
0.008575439453125,
0.019439697265625,
-0.01302337646484375,
0.01204681396484375,
0.0257110595703125,
-0.0289764404296875,
0.00380706787109375,
0.007114410400390625,
0.0160980224609375,
0.017059326171875,
-0.03887939453125,
0.03680419921875,
-0.06317138671875,
0.0017137527465820312,
0.0223388671875,
0.0023250579833984375,
0.00667572021484375,
0.019805908203125,
-0.0032958984375,
-0.01099395751953125,
-0.003849029541015625,
0.01108551025390625,
-0.04248046875,
-0.042816162109375,
0.049957275390625,
0.017669677734375,
-0.0399169921875,
-0.04400634765625,
-0.03289794921875,
0.040985107421875,
0.025146484375,
0.06658935546875,
0.004055023193359375,
0.02154541015625,
0.042816162109375,
-0.0100555419921875,
0.040313720703125,
0.047637939453125,
-0.059326171875,
0.0159149169921875,
-0.0217742919921875,
0.00879669189453125,
-0.0654296875,
0.0181427001953125,
0.0281982421875,
0.015716552734375,
-0.035400390625,
-0.05865478515625,
-0.0019512176513671875,
0.0003676414489746094,
0.010406494140625,
0.01153564453125,
-0.0015048980712890625,
0.0157012939453125,
0.053009033203125,
0.03277587890625,
-0.0335693359375,
-0.0219268798828125,
0.03729248046875,
0.005352020263671875,
0.002750396728515625,
0.005401611328125,
-0.042724609375,
-0.02520751953125,
0.00537872314453125,
0.02801513671875,
0.015045166015625,
0.01358795166015625,
0.00962066650390625,
0.04193115234375,
0.01073455810546875,
-0.026885986328125,
0.04205322265625,
0.0005230903625488281,
0.034027099609375,
-0.0274658203125,
-0.012847900390625,
0.00434112548828125,
0.02618408203125,
-0.0186920166015625,
0.003963470458984375,
0.0010442733764648438,
0.01134490966796875,
-0.01093292236328125,
-0.0193328857421875,
0.0242156982421875,
-0.0220184326171875,
-0.007190704345703125,
-0.039215087890625,
0.029052734375,
0.03118896484375,
-0.0018720626831054688,
0.00586700439453125,
0.01015472412109375,
0.049896240234375,
0.016937255859375,
-0.005344390869140625,
0.0127410888671875,
-0.0269317626953125,
0.0191650390625,
0.01959228515625,
0.00812530517578125,
0.051422119140625,
-0.1031494140625,
-0.026275634765625,
-0.01207733154296875,
-0.03570556640625,
0.033660888671875,
0.057098388671875,
-0.0238800048828125,
0.0026149749755859375,
0.031341552734375,
0.0215301513671875,
0.0521240234375,
-0.06121826171875,
0.0079345703125,
0.02264404296875,
0.034088134765625,
0.010345458984375,
-0.08404541015625,
-0.02178955078125,
0.0118408203125,
-0.0126495361328125,
-0.01314544677734375,
0.10931396484375,
0.003467559814453125,
-0.018096923828125,
0.0178985595703125,
0.0229339599609375,
-0.00792694091796875,
0.004116058349609375,
0.003757476806640625,
0.031707763671875,
0.0294189453125,
-0.0297088623046875,
-0.0809326171875,
0.064697265625,
0.0121612548828125,
0.04864501953125,
0.049652099609375,
0.00008589029312133789,
-0.004581451416015625,
-0.002475738525390625,
0.00827789306640625,
-0.0181884765625,
-0.049896240234375,
-0.0168304443359375,
0.0281982421875,
-0.00786590576171875,
0.0293426513671875,
-0.00634765625,
0.017669677734375,
0.0276641845703125,
0.006099700927734375,
0.012603759765625,
-0.0034809112548828125,
0.023193359375,
0.0311279296875,
-0.003635406494140625,
-0.03521728515625,
0.019805908203125,
-0.0099639892578125,
0.011932373046875,
0.000751495361328125,
0.05145263671875,
0.03155517578125,
-0.02490234375,
0.0172576904296875,
-0.006038665771484375,
0.02081298828125,
-0.0292816162109375,
-0.0269775390625,
0.0225677490234375,
-0.0195770263671875,
0.00231170654296875,
0.012847900390625,
-0.0275726318359375,
-0.045013427734375,
-0.0008249282836914062,
0.022918701171875,
-0.040802001953125,
-0.0155181884765625,
-0.0836181640625,
0.014862060546875,
0.006336212158203125,
-0.0009660720825195312,
-0.082275390625,
0.0576171875,
-0.00041174888610839844,
0.05157470703125,
-0.035888671875,
-0.0009937286376953125,
0.00978851318359375,
0.058868408203125,
-0.041351318359375,
0.0085296630859375,
-0.0254974365234375,
-0.018096923828125,
-0.0308990478515625,
0.0298919677734375,
0.0694580078125,
-0.0330810546875,
-0.00327301025390625,
0.0445556640625,
0.0305023193359375,
0.09735107421875,
0.0021820068359375,
0.00730133056640625,
0.0260009765625,
0.0225067138671875,
-0.0200653076171875,
-0.06805419921875,
-0.005306243896484375,
-0.0010309219360351562,
0.0177764892578125,
-0.00555419921875,
-0.0018558502197265625,
-0.0006656646728515625,
-0.05035400390625,
-0.0631103515625,
-0.0042266845703125,
0.00901031494140625,
-0.043670654296875,
0.009002685546875,
0.009613037109375,
-0.00994110107421875,
0.004917144775390625,
0.003055572509765625,
-0.006740570068359375,
-0.0155029296875,
-0.0097503662109375,
0.0238494873046875,
0.040863037109375,
-0.0025081634521484375,
0.0279998779296875,
-0.0294342041015625,
0.0237274169921875,
0.007610321044921875,
0.0171661376953125,
-0.0102386474609375,
-0.01157379150390625,
0.00811004638671875,
0.03509521484375,
-0.042205810546875,
-0.03765869140625,
-0.00354766845703125,
0.0081024169921875,
0.005519866943359375,
-0.0196990966796875,
-0.033782958984375,
-0.02685546875,
0.0189666748046875,
0.047698974609375,
-0.000522613525390625,
-0.0117034912109375,
0.025299072265625,
-0.0188446044921875,
-0.042999267578125,
0.00968170166015625,
0.01568603515625,
-0.020233154296875,
0.0149383544921875,
0.0136566162109375,
0.01230621337890625,
0.01325225830078125,
-0.01299285888671875,
-0.01474761962890625,
-0.025726318359375,
-0.035736083984375,
0.0006132125854492188,
-0.08349609375,
0.0019311904907226562,
0.02777099609375,
-0.037628173828125,
-0.02972412109375,
-0.00799560546875,
0.005847930908203125,
-0.0247344970703125,
-0.0311126708984375,
-0.0303802490234375,
-0.0033397674560546875,
-0.0204010009765625,
0.0219268798828125,
-0.0107574462890625,
0.04022216796875,
-0.0197906494140625,
0.017791748046875,
0.01288604736328125,
0.0240936279296875,
-0.00501251220703125,
0.03009033203125,
-0.01477813720703125,
0.0484619140625,
-0.01326751708984375,
0.0036334991455078125,
-0.0035495758056640625,
0.01491546630859375,
-0.0149383544921875,
0.023834228515625,
0.00897979736328125,
-0.0149688720703125,
0.031494140625,
-0.0361328125,
0.00411224365234375,
0.0163421630859375,
-0.0281219482421875,
-0.005924224853515625,
-0.0272216796875,
-0.0457763671875,
0.00266265869140625,
-0.005237579345703125
] |
1fba04e194399a82daa61d7fc20fe154f828f1e4 | Wordpress Stackexchange
Q: How to create a WP_Query to search the Title or Tag? I have created a search using WP_Query, it seems like this query is looking for the queried term in title AND tags.
Is there a way to have this search the title OR tags?
$s = $request['s'];
$tags = str_replace(' ', '-', strtolower($request['s']));
$paged = $request['page'];
$posts_per_page = $request['per_page'];
$result = new WP_Query([
'post_type' => 'post',
'category__in' => 3060,
'posts_per_page' => $posts_per_page,
'paged' => $page,
'orderby' => 'date',
'order' => 'desc',
's' => $s,
'tag' => array($tags)
]);
A: Please use below code to show posts in texonomy and titles
$s = $request['s'];
$tags = str_replace(' ', '-', strtolower($request['s']));
$q1 = get_posts(array(
'fields' => 'id',
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => -1,
's' => $s
));
$q2 = get_posts(array(
'fields' => 'ids',
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => -1,
'tag' => array($tags)
));
$unique = array_unique( array_merge( $q1, $q2 ) );
$posts = get_posts(array(
'post_type' => 'post',
'post__in' => $unique,
'posts_per_page' => -1
));
if ($posts ) :
foreach( $posts as $post ) :
//show results
endforeach;
endif;
| Q: How to create a WP_Query to search the Title or Tag? I have created a search using WP_Query, it seems like this query is looking for the queried term in title AND tags.
Is there a way to have this search the title OR tags?
$s = $request['s'];
$tags = str_replace(' ', '-', strtolower($request['s']));
$paged = $request['page'];
$posts_per_page = $request['per_page'];
$result = new WP_Query([
'post_type' => 'post',
'category__in' => 3060,
'posts_per_page' => $posts_per_page,
'paged' => $page,
'orderby' => 'date',
'order' => 'desc',
's' => $s,
'tag' => array($tags)
]);
A: Please use below code to show posts in texonomy and titles
$s = $request['s'];
$tags = str_replace(' ', '-', strtolower($request['s']));
$q1 = get_posts(array(
'fields' => 'id',
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => -1,
's' => $s
));
$q2 = get_posts(array(
'fields' => 'ids',
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => -1,
'tag' => array($tags)
));
$unique = array_unique( array_merge( $q1, $q2 ) );
$posts = get_posts(array(
'post_type' => 'post',
'post__in' => $unique,
'posts_per_page' => -1
));
if ($posts ) :
foreach( $posts as $post ) :
//show results
endforeach;
endif;
A: You just need to add
'relation' => 'OR'
in your Query arguments.
add it and it will return the data with OR condition.
Hope it helps.
| wordpress | {
"language": "en",
"length": 211,
"provenance": "stackexchange_00019.jsonl.gz:492006",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/325672"
} | [
0.03997802734375,
0.0031452178955078125,
0.007534027099609375,
0.0199737548828125,
0.0044708251953125,
-0.044891357421875,
0.08160400390625,
-0.0305633544921875,
0.0199737548828125,
0.0268707275390625,
-0.0377197265625,
0.008056640625,
-0.04541015625,
-0.0094757080078125,
-0.038055419921875,
-0.030517578125,
0.0242156982421875,
-0.038238525390625,
0.03277587890625,
-0.0119171142578125,
0.0313720703125,
-0.0165557861328125,
0.0328369140625,
0.0003464221954345703,
0.006458282470703125,
-0.0164947509765625,
0.0343017578125,
-0.031707763671875,
0.0183258056640625,
-0.0138092041015625,
0.01102447509765625,
-0.002471923828125,
0.036590576171875,
-0.03375244140625,
0.0282135009765625,
0.0276641845703125,
0.0263671875,
-0.01401519775390625,
0.00911712646484375,
0.0187225341796875,
0.02911376953125,
-0.016204833984375,
0.01010894775390625,
0.0257415771484375,
0.00952911376953125,
-0.05902099609375,
0.06463623046875,
-0.045318603515625,
0.020904541015625,
0.0020046234130859375,
0.0128173828125,
0.0194549560546875,
0.01200103759765625,
-0.048126220703125,
-0.00876617431640625,
0.01432037353515625,
0.03045654296875,
-0.0217437744140625,
0.040985107421875,
-0.051177978515625,
-0.0546875,
-0.0214385986328125,
0.04052734375,
-0.005107879638671875,
-0.0286865234375,
-0.006893157958984375,
0.0433349609375,
-0.0019378662109375,
-0.036895751953125,
-0.041473388671875,
0.042083740234375,
0.0007753372192382812,
-0.0152740478515625,
-0.00301361083984375,
-0.0051727294921875,
-0.0297088623046875,
0.0181427001953125,
-0.028564453125,
-0.00626373291015625,
0.046661376953125,
0.01500701904296875,
-0.0178375244140625,
-0.0361328125,
0.0018224716186523438,
0.0081634521484375,
-0.002155303955078125,
-0.00380706787109375,
-0.001331329345703125,
-0.027923583984375,
-0.032501220703125,
-0.0166015625,
-0.062408447265625,
-0.034881591796875,
-0.01416778564453125,
0.0157623291015625,
-0.062469482421875,
0.015838623046875,
0.0426025390625,
-0.0034275054931640625,
0.04315185546875,
-0.037139892578125,
-0.03729248046875,
0.043212890625,
-0.05108642578125,
0.053466796875,
0.0587158203125,
-0.01776123046875,
0.0162811279296875,
0.06646728515625,
0.0010623931884765625,
0.01197052001953125,
0.026824951171875,
-0.00270843505859375,
-0.00576019287109375,
-0.042388916015625,
0.037750244140625,
-0.00013363361358642578,
-0.0265350341796875,
-0.01088714599609375,
0.0207061767578125,
0.021636962890625,
0.04351806640625,
-0.0019016265869140625,
0.004497528076171875,
-0.007755279541015625,
-0.00165557861328125,
0.010009765625,
-0.052001953125,
0.011749267578125,
-0.006565093994140625,
-0.01995849609375,
0.018890380859375,
0.05731201171875,
0.0104827880859375,
-0.01360321044921875,
-0.01151275634765625,
0.0057220458984375,
-0.035552978515625,
-0.027069091796875,
-0.002582550048828125,
0.01611328125,
-0.00812530517578125,
0.0355224609375,
-0.01023101806640625,
0.0263214111328125,
0.0007357597351074219,
0.034271240234375,
0.0217742919921875,
-0.01107025146484375,
-0.034149169921875,
0.03253173828125,
0.0184783935546875,
0.046112060546875,
-0.014862060546875,
-0.06988525390625,
-0.00484466552734375,
-0.02276611328125,
0.0039520263671875,
-0.027557373046875,
-0.033294677734375,
0.048065185546875,
0.0015697479248046875,
0.0101776123046875,
-0.018035888671875,
-0.03570556640625,
0.0007390975952148438,
-0.059112548828125,
-0.0124969482421875,
0.0167236328125,
0.002655029296875,
0.00911712646484375,
-0.0108184814453125,
0.041351318359375,
-0.00919342041015625,
-0.0295562744140625,
0.0008344650268554688,
0.0016145706176757812,
-0.01078033447265625,
0.0264434814453125,
0.0208587646484375,
-0.0169677734375,
-0.023773193359375,
0.03314208984375,
-0.0272979736328125,
-0.052734375,
0.059539794921875,
0.0268707275390625,
0.04254150390625,
-0.037109375,
0.017120361328125,
0.0433349609375,
0.06622314453125,
-0.06317138671875,
0.0546875,
0.00765228271484375,
-0.0243682861328125,
-0.031494140625,
0.0014047622680664062,
-0.0155792236328125,
-0.0087890625,
-0.006664276123046875,
0.022705078125,
-0.0056304931640625,
0.0226898193359375,
-0.057220458984375,
0.0125732421875,
-0.02642822265625,
0.034942626953125,
-0.0207366943359375,
0.016387939453125,
0.0229339599609375,
-0.01296234130859375,
-0.01534271240234375,
-0.0156707763671875,
0.00897979736328125,
0.0132598876953125,
-0.00945281982421875,
-0.039306640625,
0.0173492431640625,
-0.0257110595703125,
0.00936126708984375,
0.0172271728515625,
0.0001537799835205078,
0.0159759521484375,
0.06884765625,
-0.028106689453125,
0.015838623046875,
-0.0225372314453125,
0.06915283203125,
0.0111846923828125,
-0.0008130073547363281,
-0.0029773712158203125,
0.07757568359375,
0.09051513671875,
0.005344390869140625,
0.018157958984375,
0.04010009765625,
-0.023712158203125,
-0.0027313232421875,
0.0343017578125,
0.0150299072265625,
0.0294647216796875,
-0.01190185546875,
-0.01299285888671875,
0.050872802734375,
-0.029693603515625,
-0.0018215179443359375,
-0.007083892822265625,
0.01904296875,
0.0550537109375,
0.00336456298828125,
-0.00104522705078125,
0.0164794921875,
-0.0127716064453125,
0.01568603515625,
0.03643798828125,
-0.00997161865234375,
0.01009368896484375,
-0.007289886474609375,
-0.020050048828125,
-0.0092620849609375,
-0.045440673828125,
-0.01294708251953125,
-0.0132598876953125,
0.0279541015625,
0.045501708984375,
0.041900634765625,
0.038299560546875,
-0.0273895263671875,
0.036376953125,
-0.00806427001953125,
-0.01641845703125,
0.0048675537109375,
0.0188751220703125,
-0.050628662109375,
-0.0009126663208007812,
-0.027587890625,
0.022552490234375,
0.00521087646484375,
-0.0106201171875,
0.0133514404296875,
0.05517578125,
-0.0261688232421875,
-0.008148193359375,
-0.037139892578125,
-0.0521240234375,
-0.007320404052734375,
0.04876708984375,
0.022979736328125,
0.016693115234375,
0.01055145263671875,
0.03765869140625,
-0.0288543701171875,
0.07470703125,
-0.0043792724609375,
-0.001819610595703125,
0.0146636962890625,
-0.0653076171875,
0.04840087890625,
-0.0489501953125,
0.08282470703125,
0.082763671875,
-0.025726318359375,
0.0154266357421875,
0.00019025802612304688,
-0.0015087127685546875,
0.01213836669921875,
-0.00476837158203125,
-0.0254364013671875,
0.005825042724609375,
-0.041259765625,
0.04083251953125,
0.0238189697265625,
0.0109405517578125,
0.028167724609375,
-0.0184783935546875,
0.0002474784851074219,
0.016754150390625,
-0.07818603515625,
-0.09405517578125,
0.02569580078125,
-0.07000732421875,
-0.0286407470703125,
-0.0176239013671875,
-0.041015625,
0.015045166015625,
0.0050201416015625,
-0.0153350830078125,
-0.02972412109375,
-0.015960693359375,
-0.08807373046875,
-0.05633544921875,
-0.0740966796875,
0.0382080078125,
-0.0196533203125,
0.0234527587890625,
0.0021038055419921875,
0.073486328125,
0.037933349609375,
-0.035247802734375,
0.046875,
0.06854248046875,
-0.02642822265625,
0.0160675048828125,
-0.0027065277099609375,
0.005992889404296875,
0.01239013671875,
0.0036067962646484375,
0.0093231201171875,
0.02789306640625,
-0.01383209228515625,
-0.0092620849609375,
-0.0122222900390625,
0.006916046142578125,
0.040496826171875,
-0.03607177734375,
-0.015289306640625,
0.042236328125,
0.027435302734375,
-0.01396942138671875,
-0.031982421875,
0.0030727386474609375,
-0.042999267578125,
0.030914306640625,
0.032501220703125,
-0.0158843994140625,
0.0126800537109375,
-0.0038356781005859375,
0.00040221214294433594,
0.01531219482421875,
0.01910400390625,
-0.0301971435546875,
0.01464080810546875,
0.0017652511596679688,
-0.00733184814453125,
-0.006610870361328125,
0.0246734619140625,
-0.0199432373046875,
0.0263214111328125,
0.011383056640625,
-0.0154266357421875,
-0.0116729736328125,
0.009185791015625,
-0.0087738037109375,
-0.0287017822265625,
0.042449951171875,
-0.0013475418090820312,
0.0083465576171875,
-0.045257568359375,
-0.040252685546875,
-0.04229736328125,
0.052001953125,
-0.0294189453125,
-0.01145172119140625,
-0.0272064208984375,
0.01503753662109375,
-0.0260772705078125,
-0.08349609375,
-0.0005450248718261719,
0.0113525390625,
-0.07904052734375,
0.01366424560546875,
-0.03643798828125,
-0.0125885009765625,
-0.0279388427734375,
-0.00858306884765625,
-0.0287017822265625,
-0.05169677734375,
0.024993896484375,
-0.0245513916015625,
0.0239715576171875,
0.01194000244140625,
-0.00946807861328125,
0.014404296875,
-0.0202178955078125,
-0.031524658203125,
-0.051849365234375,
-0.0131683349609375,
0.01552581787109375,
0.013092041015625,
-0.0206451416015625,
-0.00017905235290527344,
-0.00203704833984375,
0.03729248046875,
0.02032470703125,
0.033111572265625,
-0.006862640380859375,
-0.01462554931640625,
0.00159454345703125,
0.00009739398956298828,
-0.0022983551025390625,
-0.01076507568359375,
-0.0092926025390625,
0.004482269287109375,
0.016021728515625,
0.050994873046875,
-0.03619384765625,
0.00467681884765625,
-0.03271484375,
-0.0140380859375,
-0.0036163330078125,
-0.02886962890625,
-0.027008056640625,
0.0120086669921875,
-0.045257568359375,
0.007701873779296875,
-0.0235748291015625,
-0.022613525390625,
0.09307861328125,
0.05157470703125,
-0.002490997314453125,
-0.0193023681640625,
0.0887451171875,
-0.0014791488647460938,
-0.06427001953125,
-0.07354736328125,
-0.013214111328125,
0.02020263671875,
0.0027370452880859375,
0.040283203125,
-0.0096435546875,
-0.020782470703125,
0.052886962890625,
-0.0106658935546875,
-0.045440673828125,
0.00711822509765625,
0.048431396484375,
-0.017364501953125,
-0.024261474609375,
0.005390167236328125,
-0.06439208984375,
0.048583984375,
0.044097900390625,
-0.00846099853515625,
-0.029449462890625,
0.006923675537109375,
0.056610107421875,
-0.036041259765625,
0.0477294921875,
-0.00913238525390625,
-0.0416259765625,
0.0190277099609375,
0.056671142578125,
-0.01203155517578125,
-0.002948760986328125,
0.002582550048828125,
0.00708770751953125,
-0.0107879638671875,
-0.0007190704345703125,
-0.0012235641479492188,
0.02264404296875,
-0.018646240234375,
0.017669677734375,
0.0147857666015625,
-0.0301971435546875,
-0.0160064697265625,
0.002597808837890625,
0.0253143310546875,
-0.006908416748046875,
-0.032623291015625,
-0.0065155029296875,
-0.0190582275390625,
-0.022613525390625,
0.030731201171875,
0.0230712890625,
0.009490966796875,
0.048492431640625,
0.0106658935546875,
-0.00576019287109375,
0.015899658203125,
0.0281982421875,
-0.0099334716796875,
-0.006542205810546875,
-0.00811767578125,
-0.0045623779296875,
0.0035076141357421875,
0.085693359375,
-0.05096435546875,
0.0621337890625,
0.0021457672119140625,
0.010894775390625,
0.0027904510498046875,
0.0170745849609375,
0.0001068115234375,
0.00449371337890625,
0.01263427734375,
0.0009722709655761719,
0.0240325927734375,
-0.0194091796875,
0.0023326873779296875,
-0.00594329833984375,
-0.0053253173828125,
-0.016448974609375,
-0.003772735595703125,
0.046142578125,
-0.0031185150146484375,
-0.047576904296875,
-0.005878448486328125,
0.0157623291015625,
0.0196990966796875,
-0.0416259765625,
-0.02783203125,
0.01690673828125,
0.051513671875,
-0.00199127197265625,
0.0143585205078125,
-0.02423095703125,
0.023345947265625,
-0.03857421875,
0.02880859375,
-0.0091552734375,
-0.0147857666015625,
-0.0129241943359375,
-0.02978515625,
-0.0038471221923828125,
0.0038738250732421875,
0.0171051025390625,
-0.0164947509765625,
-0.0179595947265625,
0.03131103515625,
-0.0362548828125,
0.0426025390625,
-0.0224761962890625,
-0.0042724609375,
0.007110595703125,
0.00539398193359375,
0.0306243896484375,
0.027252197265625,
-0.01200103759765625,
-0.00905609130859375,
-0.03143310546875,
-0.02490234375,
0.044281005859375,
0.00643157958984375,
-0.045654296875,
-0.02337646484375,
0.0321044921875,
0.025177001953125,
0.02532958984375,
-0.0540771484375,
-0.01043701171875,
-0.0419921875,
0.0211029052734375,
-0.0280303955078125,
-0.028228759765625,
0.10040283203125,
-0.0171966552734375,
0.03741455078125,
-0.0159912109375,
0.0182647705078125,
-0.039642333984375,
0.01515960693359375,
0.0038051605224609375,
-0.08258056640625,
-0.021148681640625,
-0.003986358642578125,
-0.0256500244140625,
0.050567626953125,
0.0221099853515625,
0.005474090576171875,
0.014434814453125,
0.0184478759765625,
0.0106658935546875,
-0.006214141845703125,
-0.0188446044921875,
-0.000995635986328125,
0.018096923828125,
0.048675537109375,
-0.0187530517578125,
-0.00799560546875,
-0.027587890625,
0.039520263671875,
-0.0111541748046875,
-0.040740966796875,
-0.023284912109375,
0.0290679931640625,
-0.026123046875,
0.026763916015625,
0.038665771484375,
0.01776123046875,
0.033599853515625,
-0.006755828857421875,
0.01189422607421875,
0.0165557861328125,
-0.0264129638671875,
-0.0163421630859375,
0.0372314453125,
0.079345703125,
0.003482818603515625,
0.0001690387725830078,
0.07525634765625,
-0.0338134765625,
-0.0238037109375,
0.01485443115234375,
0.00274658203125,
-0.01537322998046875,
-0.01110076904296875,
0.007274627685546875,
0.01001739501953125,
-0.01116180419921875,
0.0124664306640625,
0.00107574462890625,
-0.041015625,
0.0283966064453125,
-0.0220184326171875,
-0.005153656005859375,
-0.00989532470703125,
-0.0095367431640625,
0.0011501312255859375,
-0.022796630859375,
0.03851318359375,
-0.005786895751953125,
-0.026214599609375,
-0.0224456787109375,
0.0135650634765625,
-0.002750396728515625,
-0.004703521728515625,
0.03033447265625,
-0.0077972412109375,
-0.0179443359375,
-0.06085205078125,
0.01532745361328125,
0.004795074462890625,
-0.0201416015625,
0.022216796875,
-0.00891876220703125,
0.0245513916015625,
0.047454833984375,
-0.01445770263671875,
-0.007083892822265625,
0.034149169921875,
-0.0523681640625,
-0.059234619140625,
-0.007366180419921875,
-0.0098724365234375,
0.045989990234375,
-0.003032684326171875,
0.02105712890625,
-0.024566650390625,
0.01551055908203125,
-0.00803375244140625,
-0.038604736328125,
0.056854248046875,
-0.033660888671875,
-0.005748748779296875,
0.0202484130859375,
0.024810791015625,
0.00518798828125,
-0.0169219970703125,
-0.00006580352783203125,
-0.0623779296875,
-0.0219573974609375,
-0.005496978759765625,
-0.013458251953125,
0.0184326171875,
-0.0027484893798828125,
-0.050018310546875,
0.06463623046875,
0.004413604736328125,
0.00942230224609375,
0.0224456787109375,
0.0286712646484375,
-0.05078125,
-0.00028896331787109375,
-0.06256103515625,
0.060150146484375,
-0.0274200439453125,
0.0643310546875,
-0.063720703125,
-0.004791259765625,
0.032440185546875,
0.037109375,
0.073486328125,
0.0123291015625,
-0.0281982421875,
-0.040740966796875,
0.030242919921875,
0.06451416015625,
-0.002262115478515625,
0.01385498046875,
0.0158843994140625,
0.02239990234375,
0.056182861328125,
-0.035675048828125,
0.044708251953125,
-0.035369873046875,
0.0162353515625,
0.03997802734375,
0.0228424072265625,
0.0302276611328125,
-0.0156402587890625,
-0.031280517578125,
-0.037994384765625,
-0.0010118484497070312,
0.033721923828125,
0.004547119140625,
0.041015625,
0.00494384765625,
0.06085205078125,
-0.1143798828125,
-0.042266845703125,
-0.0250091552734375,
0.046295166015625,
0.01548004150390625,
0.03277587890625,
0.020843505859375,
0.005706787109375,
0.06585693359375,
-0.019439697265625,
0.018707275390625,
-0.0015087127685546875,
-0.005615234375,
0.05133056640625,
0.00963592529296875,
0.0211029052734375,
-0.04876708984375,
0.0008625984191894531,
0.057037353515625,
0.07611083984375,
-0.0433349609375,
-0.031768798828125,
-0.0030422210693359375,
0.01035308837890625,
0.0340576171875,
0.01117706298828125,
0.051177978515625,
0.05352783203125,
0.054656982421875,
0.004863739013671875,
0.0169219970703125,
0.006320953369140625,
-0.0053253173828125,
-0.0098114013671875,
-0.0192108154296875,
-0.013916015625,
0.037017822265625,
-0.049835205078125,
0.010406494140625,
0.01235198974609375,
0.054168701171875,
0.021148681640625,
0.042022705078125,
-0.0018682479858398438,
-0.0221710205078125,
-0.0037708282470703125,
0.0185089111328125,
0.003620147705078125,
0.009063720703125,
-0.02642822265625,
-0.04937744140625,
0.01308441162109375,
0.036712646484375,
0.027587890625,
-0.00797271728515625,
0.01502227783203125,
0.01081085205078125,
0.0003445148468017578,
-0.0033435821533203125,
-0.006816864013671875,
-0.0117034912109375,
-0.00390625,
-0.0137939453125,
-0.033538818359375,
0.0017995834350585938,
-0.0283966064453125,
0.00921630859375,
0.034912109375,
-0.01076507568359375,
0.0022792816162109375,
0.028717041015625,
-0.00324249267578125,
-0.022003173828125,
0.041778564453125,
-0.00916290283203125,
0.059814453125,
0.0283050537109375,
-0.09832763671875,
-0.00278472900390625,
-0.056304931640625,
-0.058502197265625,
0.048858642578125,
0.04327392578125,
-0.015899658203125,
-0.0003306865692138672,
0.033843994140625,
-0.021728515625,
0.017059326171875,
-0.0019626617431640625,
0.042633056640625,
0.06671142578125,
-0.008026123046875,
0.04571533203125,
-0.057159423828125,
-0.031524658203125,
0.006275177001953125,
0.0200958251953125,
-0.035125732421875,
0.0292510986328125,
0.002056121826171875,
0.00580596923828125,
-0.0101470947265625,
0.037933349609375,
-0.041534423828125,
-0.0296173095703125,
0.0753173828125,
-0.03326416015625,
-0.017852783203125,
0.001392364501953125,
0.018524169921875,
0.0135498046875,
0.0251007080078125,
-0.0238800048828125,
-0.0140533447265625,
-0.0240478515625,
0.0298004150390625,
0.007450103759765625,
0.018402099609375,
-0.018157958984375,
0.0278167724609375,
-0.0188446044921875,
-0.04290771484375,
0.05841064453125,
0.0065460205078125,
0.0177154541015625,
0.021209716796875,
0.005931854248046875,
-0.039276123046875,
0.043670654296875,
-0.0509033203125,
0.08099365234375,
0.0394287109375,
-0.0037937164306640625,
0.023834228515625,
0.00873565673828125,
-0.0176239013671875,
0.0013952255249023438,
0.034759521484375,
-0.01806640625,
-0.0063629150390625,
0.02838134765625,
-0.0262908935546875,
-0.0187225341796875,
0.035400390625,
-0.004993438720703125,
0.014068603515625,
-0.0273895263671875,
0.01396942138671875,
-0.0213470458984375,
-0.004150390625,
-0.0302276611328125,
0.001659393310546875,
-0.01433563232421875,
-0.0035877227783203125,
0.007167816162109375,
-0.049163818359375,
-0.034423828125,
-0.025115966796875,
0.0222320556640625,
-0.00047397613525390625,
0.0029544830322265625,
-0.0295562744140625,
-0.01267242431640625,
-0.0024166107177734375,
-0.00498199462890625,
-0.00408935546875,
0.002773284912109375,
0.005222320556640625,
-0.042572021484375,
0.01125335693359375,
-0.039947509765625,
-0.023101806640625,
-0.0153045654296875,
0.005706787109375,
0.0400390625,
-0.0330810546875,
-0.0496826171875,
-0.0053253173828125,
0.01340484619140625,
0.026031494140625,
0.01200103759765625,
-0.0054931640625,
0.0159912109375,
0.006160736083984375,
-0.0218048095703125,
-0.0657958984375,
0.00959014892578125,
-0.07415771484375,
-0.0113983154296875,
0.0201416015625,
-0.004833221435546875,
0.024871826171875,
-0.0191497802734375,
-0.07366943359375,
0.058349609375,
-0.017425537109375,
-0.02545166015625,
-0.0654296875,
-0.00299072265625,
0.020050048828125,
-0.01100921630859375,
-0.01189422607421875,
-0.019805908203125,
-0.06982421875,
0.0007777214050292969,
0.0038623809814453125,
0.038818359375,
0.01122283935546875,
-0.00447845458984375,
-0.053741455078125,
-0.0206756591796875,
-0.0253448486328125,
0.0109405517578125,
0.012664794921875,
-0.0082855224609375,
0.01508331298828125,
0.0207366943359375,
-0.053192138671875,
-0.0014562606811523438,
-0.024322509765625,
0.0240478515625,
0.01678466796875,
-0.00016129016876220703,
-0.035125732421875,
0.004611968994140625,
0.0419921875,
0.0249481201171875,
0.016204833984375,
-0.025543212890625,
0.01407623291015625,
-0.04461669921875,
-0.0570068359375,
-0.004779815673828125,
0.017242431640625,
-0.03936767578125,
-0.00482177734375,
0.0146636962890625,
0.0068359375,
-0.01073455810546875,
-0.044708251953125,
-0.0125579833984375,
-0.0284576416015625,
-0.028594970703125,
0.0232086181640625,
-0.012298583984375,
0.0286865234375,
0.0219573974609375,
-0.036285400390625,
-0.0357666015625,
-0.01503753662109375,
0.00421142578125,
-0.025238037109375,
-0.06170654296875,
-0.00653839111328125,
0.0207366943359375,
0.01398468017578125,
-0.024261474609375,
0.050048828125,
-0.021209716796875,
0.04931640625,
-0.0008273124694824219,
-0.0203704833984375,
0.01273345947265625,
0.0192718505859375,
-0.01331329345703125,
-0.08392333984375,
0.04510498046875,
-0.002422332763671875,
0.0924072265625,
0.0024013519287109375,
0.06304931640625,
0.00336456298828125,
0.04083251953125,
0.00621795654296875,
-0.0258636474609375,
0.018280029296875,
-0.01003265380859375,
0.00359344482421875,
-0.00801849365234375,
-0.025604248046875,
-0.04888916015625,
0.0109405517578125,
0.0052490234375,
-0.01507568359375,
0.022979736328125
] |
590e4d455fd869c20f9b661923f48569a76ff539 | Wordpress Stackexchange
Q: Can't get dynamic Gutenberg block to render on the frontend I tried everything I found online. The backend appears, including dynamic segments (withSelect, etc). But the simplest 'render-callback' doesn't appear on the frontend.
plugin.php
/**
* Plugin Name: My Dynamic Block
*/
function my_plugin_render_dynamic_block( ) {
return '<h1>Sample Block</h1>';
}
function register_dynamic_block() {
wp_register_script(
'dynamic-block',
plugins_url( '/dist/block.js ', __FILE__),
array( 'wp-blocks', 'wp-element', 'wp-editor' ),
filemtime( plugin_dir_path( __FILE__ ) . 'dist/block.js' )
);
register_block_type(
'my-plugin/dynamic-block',
[
'editor_script' => 'dynamic-block',
'render_callback' => 'my_plugin_render_dynamic_block',
]
);
}
add_action('init', 'register_dynamic_block');
block.js
const { __ } = wp.i18n;
const { registerBlockType } = wp.blocks;
registerBlockType( 'my-plugin/dynamic-block', {
title: 'My Dynamic Block',
icon: 'megaphone',
category: 'widgets',
edit({attributes}) {
return (
<div>Content</div>
);
},
save() {
return null;
},
} );
A: Even if you do manage to render frontend with null return, On the next page reload you'll get block validation error. Because your html structure on edit function will not be matching up with save function. So
Instead of
save() {
return null;
},
Try
save() {
return (
<div>Content</div>
);
},
I hope this helps.
| Q: Can't get dynamic Gutenberg block to render on the frontend I tried everything I found online. The backend appears, including dynamic segments (withSelect, etc). But the simplest 'render-callback' doesn't appear on the frontend.
plugin.php
/**
* Plugin Name: My Dynamic Block
*/
function my_plugin_render_dynamic_block( ) {
return '<h1>Sample Block</h1>';
}
function register_dynamic_block() {
wp_register_script(
'dynamic-block',
plugins_url( '/dist/block.js ', __FILE__),
array( 'wp-blocks', 'wp-element', 'wp-editor' ),
filemtime( plugin_dir_path( __FILE__ ) . 'dist/block.js' )
);
register_block_type(
'my-plugin/dynamic-block',
[
'editor_script' => 'dynamic-block',
'render_callback' => 'my_plugin_render_dynamic_block',
]
);
}
add_action('init', 'register_dynamic_block');
block.js
const { __ } = wp.i18n;
const { registerBlockType } = wp.blocks;
registerBlockType( 'my-plugin/dynamic-block', {
title: 'My Dynamic Block',
icon: 'megaphone',
category: 'widgets',
edit({attributes}) {
return (
<div>Content</div>
);
},
save() {
return null;
},
} );
A: Even if you do manage to render frontend with null return, On the next page reload you'll get block validation error. Because your html structure on edit function will not be matching up with save function. So
Instead of
save() {
return null;
},
Try
save() {
return (
<div>Content</div>
);
},
I hope this helps.
A: Since you're making a dynamic block you don't need to register the block in JavaScript. Take a look at the Latest Posts block in Core to see how they do it.
| wordpress | {
"language": "en",
"length": 214,
"provenance": "stackexchange_00019.jsonl.gz:492015",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/325720"
} | [
-0.0156097412109375,
-0.0012292861938476562,
-0.06915283203125,
-0.048858642578125,
0.01140594482421875,
-0.020660400390625,
-0.033416748046875,
0.002391815185546875,
0.0009813308715820312,
0.03253173828125,
-0.020477294921875,
-0.0238800048828125,
-0.004245758056640625,
-0.019195556640625,
-0.0286407470703125,
-0.029937744140625,
0.0440673828125,
0.0301055908203125,
0.0550537109375,
0.004238128662109375,
-0.0302734375,
0.032318115234375,
0.022125244140625,
0.1121826171875,
0.032806396484375,
-0.035552978515625,
0.068115234375,
-0.01522064208984375,
0.0186614990234375,
-0.0208892822265625,
0.043487548828125,
-0.00232696533203125,
0.01441192626953125,
0.02215576171875,
-0.022491455078125,
0.014373779296875,
0.0638427734375,
-0.01412200927734375,
-0.00803375244140625,
0.0297393798828125,
0.0386962890625,
-0.028839111328125,
-0.00482940673828125,
0.0011577606201171875,
-0.01146697998046875,
-0.03314208984375,
0.049163818359375,
-0.0284423828125,
0.01523590087890625,
0.0181427001953125,
-0.001422882080078125,
0.004817962646484375,
0.0041961669921875,
-0.004413604736328125,
-0.00041937828063964844,
-0.006252288818359375,
-0.06561279296875,
0.0197296142578125,
-0.006610870361328125,
0.09344482421875,
0.040008544921875,
0.028594970703125,
-0.0241241455078125,
-0.04486083984375,
0.016326904296875,
-0.02423095703125,
-0.020751953125,
0.03509521484375,
-0.0188446044921875,
0.038818359375,
0.035919189453125,
-0.036163330078125,
-0.00531768798828125,
-0.02264404296875,
-0.01690673828125,
0.01067352294921875,
-0.0186614990234375,
-0.0224761962890625,
0.023040771484375,
-0.0157012939453125,
-0.00292205810546875,
-0.0244598388671875,
-0.01418304443359375,
-0.0269622802734375,
0.00435638427734375,
-0.006683349609375,
-0.00615692138671875,
0.0019426345825195312,
-0.04486083984375,
-0.038116455078125,
-0.030242919921875,
-0.01436614990234375,
-0.06414794921875,
0.004421234130859375,
-0.0060882568359375,
-0.01560211181640625,
0.01412200927734375,
0.0018491744995117188,
0.00513458251953125,
0.01318359375,
0.0248870849609375,
-0.0615234375,
0.062225341796875,
-0.048126220703125,
0.007843017578125,
0.042877197265625,
-0.054107666015625,
0.019927978515625,
0.0435791015625,
0.050018310546875,
0.0286865234375,
-0.02142333984375,
0.00514984130859375,
-0.007289886474609375,
-0.02923583984375,
-0.0014209747314453125,
-0.038848876953125,
0.013519287109375,
0.01250457763671875,
0.01049041748046875,
0.0111236572265625,
0.0248260498046875,
0.0672607421875,
0.001117706298828125,
-0.00099945068359375,
0.02923583984375,
-0.0132598876953125,
-0.09521484375,
0.0240936279296875,
-0.0123748779296875,
-0.038604736328125,
0.031036376953125,
0.0758056640625,
0.019622802734375,
0.0160064697265625,
0.00077056884765625,
0.0276641845703125,
0.021575927734375,
-0.0009245872497558594,
-0.0250244140625,
0.0015230178833007812,
0.0009899139404296875,
-0.00794219970703125,
-0.0287628173828125,
0.034820556640625,
-0.0022182464599609375,
0.0276947021484375,
0.0100860595703125,
-0.01015472412109375,
-0.027099609375,
0.0367431640625,
-0.036407470703125,
0.0306243896484375,
0.025665283203125,
0.058837890625,
0.016937255859375,
0.08758544921875,
-0.04058837890625,
-0.0284271240234375,
-0.01346588134765625,
0.0289459228515625,
0.0096588134765625,
0.00821685791015625,
-0.016510009765625,
-0.039764404296875,
-0.022705078125,
-0.0193023681640625,
-0.00428009033203125,
0.032958984375,
0.080810546875,
0.01145172119140625,
-0.005176544189453125,
0.006175994873046875,
0.0149688720703125,
-0.0236663818359375,
-0.0031337738037109375,
-0.052154541015625,
-0.00321197509765625,
0.0224151611328125,
-0.01049041748046875,
-0.01265716552734375,
-0.0276031494140625,
-0.0014085769653320312,
0.03472900390625,
-0.04522705078125,
0.0186767578125,
0.0005054473876953125,
0.036163330078125,
0.0271453857421875,
0.005207061767578125,
0.0022602081298828125,
0.0028781890869140625,
-0.054046630859375,
0.01122283935546875,
-0.0019388198852539062,
0.01500701904296875,
-0.00539398193359375,
0.016143798828125,
-0.007335662841796875,
-0.012603759765625,
-0.0028858184814453125,
-0.0008072853088378906,
-0.005352020263671875,
-0.004116058349609375,
-0.04608154296875,
-0.0034942626953125,
-0.0237579345703125,
0.037384033203125,
0.050384521484375,
0.022735595703125,
-0.017364501953125,
-0.0308685302734375,
-0.02294921875,
0.039581298828125,
-0.038116455078125,
0.0020885467529296875,
-0.02581787109375,
0.0364990234375,
0.001186370849609375,
0.013885498046875,
0.0263824462890625,
-0.022430419921875,
0.01282501220703125,
-0.00556182861328125,
0.057037353515625,
0.0223541259765625,
-0.028533935546875,
-0.01483154296875,
0.0219573974609375,
0.056121826171875,
-0.10382080078125,
0.0274200439453125,
-0.004802703857421875,
-0.01062774658203125,
-0.033935546875,
-0.004352569580078125,
0.00669097900390625,
-0.032623291015625,
0.0043182373046875,
0.037078857421875,
0.037689208984375,
-0.00799560546875,
0.00696563720703125,
0.0024089813232421875,
0.003414154052734375,
-0.0302734375,
0.031707763671875,
-0.020050048828125,
-0.0217132568359375,
-0.01812744140625,
0.0034999847412109375,
0.007152557373046875,
0.0156402587890625,
-0.07666015625,
0.00608062744140625,
0.0391845703125,
0.013153076171875,
0.00107574462890625,
-0.02020263671875,
0.00865936279296875,
-0.0019817352294921875,
-0.00872039794921875,
-0.032928466796875,
-0.00789642333984375,
0.032135009765625,
0.0021877288818359375,
0.0183563232421875,
0.0200042724609375,
-0.0302734375,
0.022705078125,
0.031646728515625,
0.005641937255859375,
0.01239013671875,
0.0297393798828125,
0.04962158203125,
0.026611328125,
-0.026092529296875,
-0.0142059326171875,
0.049896240234375,
0.0301513671875,
-0.02490234375,
0.03167724609375,
-0.052520751953125,
-0.01535797119140625,
-0.0218963623046875,
-0.07623291015625,
-0.01461029052734375,
0.0124969482421875,
0.0204620361328125,
0.03436279296875,
0.0274810791015625,
0.04833984375,
-0.0016145706176757812,
0.03369140625,
0.002582550048828125,
0.0026836395263671875,
0.02886962890625,
-0.04278564453125,
0.0204010009765625,
-0.03887939453125,
0.10186767578125,
0.0643310546875,
-0.041778564453125,
0.01454925537109375,
-0.0022525787353515625,
-0.0198516845703125,
0.0176544189453125,
-0.00540924072265625,
-0.036041259765625,
-0.036834716796875,
-0.0406494140625,
-0.034210205078125,
0.008758544921875,
0.0345458984375,
-0.002773284912109375,
-0.034881591796875,
-0.021484375,
0.023773193359375,
-0.033050537109375,
-0.00833892822265625,
0.01325225830078125,
-0.049560546875,
0.010650634765625,
-0.030059814453125,
-0.0360107421875,
-0.01119232177734375,
-0.0171356201171875,
0.004299163818359375,
0.00238037109375,
-0.0207061767578125,
-0.068115234375,
-0.07177734375,
-0.09771728515625,
-0.032958984375,
-0.01480865478515625,
0.0194244384765625,
0.0010128021240234375,
0.07080078125,
0.005588531494140625,
-0.048004150390625,
-0.009796142578125,
0.016510009765625,
-0.013153076171875,
-0.0012845993041992188,
0.02545166015625,
-0.025360107421875,
0.006900787353515625,
0.004657745361328125,
-0.025604248046875,
0.0101165771484375,
-0.01039886474609375,
-0.0076141357421875,
-0.0217742919921875,
-0.043609619140625,
-0.0054779052734375,
0.0249786376953125,
0.031982421875,
-0.006916046142578125,
0.0230560302734375,
-0.04827880859375,
-0.034027099609375,
0.0274658203125,
-0.006778717041015625,
0.0188751220703125,
-0.01477813720703125,
-0.014923095703125,
0.011566162109375,
0.053924560546875,
0.000423431396484375,
0.006687164306640625,
0.0521240234375,
-0.01140594482421875,
-0.0140380859375,
-0.0469970703125,
-0.0264892578125,
-0.03973388671875,
0.03271484375,
0.006877899169921875,
0.014923095703125,
0.01303863525390625,
0.0406494140625,
0.01605224609375,
-0.0046234130859375,
-0.028961181640625,
-0.0048828125,
0.03729248046875,
-0.0310516357421875,
-0.004016876220703125,
-0.0036029815673828125,
-0.00868988037109375,
0.0099945068359375,
0.0335693359375,
0.0191497802734375,
-0.02166748046875,
0.0173492431640625,
0.0208282470703125,
-0.057464599609375,
-0.0343017578125,
-0.037628173828125,
0.00745391845703125,
-0.034423828125,
-0.005939483642578125,
-0.0029735565185546875,
-0.0289459228515625,
0.005496978759765625,
-0.0048828125,
-0.021087646484375,
-0.0233154296875,
0.03253173828125,
-0.047393798828125,
0.01174163818359375,
0.04248046875,
-0.0157318115234375,
-0.01555633544921875,
-0.022613525390625,
-0.0179901123046875,
-0.031005859375,
0.00907135009765625,
-0.042572021484375,
0.025421142578125,
0.01398468017578125,
0.0084686279296875,
-0.019500732421875,
0.020050048828125,
0.05462646484375,
0.035125732421875,
0.038330078125,
-0.01320648193359375,
0.030426025390625,
-0.06402587890625,
0.041015625,
-0.05316162109375,
-0.00788116455078125,
-0.02716064453125,
-0.03369140625,
0.057342529296875,
-0.0167083740234375,
0.0186004638671875,
-0.01410675048828125,
-0.0127105712890625,
-0.0228729248046875,
0.003856658935546875,
0.0005931854248046875,
-0.0055694580078125,
0.0268402099609375,
-0.043792724609375,
-0.01068115234375,
-0.01517486572265625,
-0.012298583984375,
-0.040435791015625,
-0.00565338134765625,
0.0302276611328125,
0.061553955078125,
0.0234527587890625,
0.0139617919921875,
-0.032989501953125,
0.0230865478515625,
0.041351318359375,
0.0021686553955078125,
0.044769287109375,
0.026397705078125,
-0.0190277099609375,
0.04913330078125,
0.0201873779296875,
0.0389404296875,
-0.040557861328125,
0.052642822265625,
-0.00403594970703125,
-0.0030422210693359375,
0.024627685546875,
0.0190277099609375,
-0.01061248779296875,
0.0382080078125,
-0.047027587890625,
0.0234832763671875,
-0.025970458984375,
0.0244140625,
-0.0250701904296875,
0.010040283203125,
-0.04730224609375,
-0.01067352294921875,
0.00757598876953125,
-0.01708984375,
0.04559326171875,
0.047210693359375,
-0.0192413330078125,
0.0190887451171875,
0.00785064697265625,
-0.0099639892578125,
0.004241943359375,
-0.0821533203125,
0.01806640625,
0.0027942657470703125,
-0.003936767578125,
0.005901336669921875,
0.046722412109375,
0.0240936279296875,
0.0020351409912109375,
-0.036468505859375,
-0.039581298828125,
-0.08990478515625,
-0.00675201416015625,
0.0179901123046875,
0.0066070556640625,
0.0244140625,
0.0003521442413330078,
0.0168914794921875,
-0.0057525634765625,
0.001354217529296875,
0.06390380859375,
-0.01183319091796875,
-0.01953125,
0.022857666015625,
-0.01195526123046875,
0.0060882568359375,
-0.043304443359375,
0.078369140625,
0.01387786865234375,
0.0045623779296875,
-0.006633758544921875,
0.060791015625,
0.024688720703125,
0.03900146484375,
0.00797271728515625,
-0.027862548828125,
0.01837158203125,
-0.01561737060546875,
-0.03564453125,
-0.033050537109375,
0.0077056884765625,
0.032623291015625,
0.059173583984375,
0.01369476318359375,
-0.03228759765625,
-0.0044708251953125,
-0.046356201171875,
-0.0013933181762695312,
0.036468505859375,
-0.0273895263671875,
-0.039306640625,
-0.01331329345703125,
-0.0004608631134033203,
0.051300048828125,
-0.02703857421875,
0.00463104248046875,
-0.0244293212890625,
0.0177764892578125,
0.027679443359375,
-0.0249786376953125,
-0.0202484130859375,
0.026611328125,
0.0206298828125,
-0.0204925537109375,
-0.01517486572265625,
0.0108642578125,
-0.04248046875,
-0.0202789306640625,
-0.0172882080078125,
-0.0192718505859375,
0.032318115234375,
-0.0694580078125,
0.010589599609375,
-0.0093994140625,
0.01090240478515625,
-0.0014057159423828125,
0.023895263671875,
0.0465087890625,
0.05316162109375,
-0.031982421875,
-0.024383544921875,
-0.05487060546875,
-0.010711669921875,
-0.020843505859375,
-0.01200103759765625,
-0.020355224609375,
0.006999969482421875,
-0.0031070709228515625,
0.038238525390625,
-0.019866943359375,
-0.00036597251892089844,
0.00714111328125,
-0.0094451904296875,
-0.021240234375,
0.06597900390625,
0.010772705078125,
0.018280029296875,
0.0007867813110351562,
0.009979248046875,
0.00916290283203125,
-0.0220794677734375,
-0.0162811279296875,
-0.0162353515625,
-0.00986480712890625,
-0.005802154541015625,
-0.0021820068359375,
-0.01132965087890625,
0.0169525146484375,
-0.0168609619140625,
0.034149169921875,
0.0035648345947265625,
0.01708984375,
-0.00363922119140625,
0.00048828125,
-0.0178680419921875,
0.022552490234375,
0.0026111602783203125,
-0.003993988037109375,
0.026763916015625,
-0.04217529296875,
-0.031585693359375,
-0.0002186298370361328,
-0.008270263671875,
0.049468994140625,
-0.0284576416015625,
0.0018701553344726562,
0.0136260986328125,
-0.034210205078125,
0.0304107666015625,
0.06500244140625,
0.0271148681640625,
0.049957275390625,
-0.013336181640625,
0.02978515625,
0.040313720703125,
0.04168701171875,
0.0015192031860351562,
-0.00162506103515625,
0.05816650390625,
0.0106048583984375,
-0.01910400390625,
0.02178955078125,
-0.01611328125,
0.01250457763671875,
0.044891357421875,
0.0611572265625,
-0.07489013671875,
0.005496978759765625,
0.0377197265625,
-0.033477783203125,
-0.03179931640625,
-0.0015411376953125,
-0.0008215904235839844,
-0.012664794921875,
-0.009735107421875,
0.047088623046875,
-0.0210113525390625,
-0.001995086669921875,
0.0286407470703125,
-0.00019371509552001953,
0.005283355712890625,
0.033935546875,
0.014801025390625,
0.008026123046875,
-0.0168914794921875,
-0.028167724609375,
0.03607177734375,
-0.012847900390625,
0.0160980224609375,
-0.0166778564453125,
-0.01163482666015625,
-0.01105499267578125,
0.01306915283203125,
-0.0045928955078125,
-0.0022335052490234375,
0.054901123046875,
0.01007080078125,
0.004669189453125,
0.06463623046875,
-0.01306915283203125,
0.014678955078125,
0.018585205078125,
-0.0099639892578125,
-0.00005358457565307617,
-0.006832122802734375,
0.03094482421875,
-0.00804901123046875,
-0.060699462890625,
0.01406097412109375,
-0.034912109375,
0.003864288330078125,
-0.0036411285400390625,
0.00516510009765625,
0.08209228515625,
0.00763702392578125,
-0.050018310546875,
0.0304718017578125,
-0.00830078125,
-0.0285186767578125,
-0.0066986083984375,
0.028228759765625,
-0.05511474609375,
-0.0107269287109375,
0.00991058349609375,
0.0174560546875,
-0.0252685546875,
0.01097869873046875,
-0.06585693359375,
0.0863037109375,
0.037445068359375,
0.0308380126953125,
0.0148773193359375,
0.0299072265625,
-0.041534423828125,
-0.00823974609375,
-0.02972412109375,
0.04351806640625,
0.0015764236450195312,
-0.002796173095703125,
-0.038543701171875,
0.01042938232421875,
-0.002651214599609375,
0.0017223358154296875,
-0.005146026611328125,
0.003604888916015625,
-0.01560211181640625,
-0.0176239013671875,
-0.0213470458984375,
-0.0235443115234375,
-0.0341796875,
0.03857421875,
0.020233154296875,
-0.0019779205322265625,
-0.0384521484375,
-0.01873779296875,
0.0166015625,
-0.08978271484375,
-0.03753662109375,
0.042327880859375,
0.002429962158203125,
0.005695343017578125,
0.01207733154296875,
-0.01079559326171875,
-0.006855010986328125,
0.006092071533203125,
0.00656890869140625,
-0.0037212371826171875,
-0.0249481201171875,
0.032440185546875,
0.018310546875,
-0.0271453857421875,
-0.0179901123046875,
-0.02935791015625,
0.034576416015625,
0.017059326171875,
-0.072998046875,
-0.00710296630859375,
-0.005947113037109375,
-0.08056640625,
-0.038177490234375,
-0.0556640625,
0.0025539398193359375,
0.00849151611328125,
0.03961181640625,
-0.0011854171752929688,
0.022705078125,
-0.054473876953125,
0.004795074462890625,
0.037750244140625,
0.04486083984375,
-0.03521728515625,
-0.09228515625,
0.0113067626953125,
0.01971435546875,
0.02703857421875,
0.053070068359375,
0.035400390625,
-0.040985107421875,
0.028350830078125,
-0.00091552734375,
-0.0684814453125,
-0.038818359375,
0.036529541015625,
-0.005611419677734375,
-0.0037670135498046875,
0.0633544921875,
-0.075439453125,
-0.07708740234375,
0.04034423828125,
0.053131103515625,
0.06561279296875,
0.0019664764404296875,
0.07379150390625,
0.02569580078125,
-0.0313720703125,
-0.03533935546875,
0.0511474609375,
0.00853729248046875,
0.026458740234375,
-0.0258026123046875,
-0.0182037353515625,
0.01031494140625,
0.0280609130859375,
-0.006252288818359375,
0.0391845703125,
0.01050567626953125,
0.0253753662109375,
0.0550537109375,
-0.010955810546875,
-0.015228271484375,
-0.0045318603515625,
-0.002452850341796875,
-0.023712158203125,
0.00652313232421875,
-0.0099639892578125,
-0.00457763671875,
-0.0012388229370117188,
0.0302581787109375,
0.003559112548828125,
-0.038543701171875,
0.0775146484375,
-0.0223388671875,
-0.0126495361328125,
0.0249176025390625,
-0.0267181396484375,
0.08843994140625,
-0.0169525146484375,
-0.0733642578125,
-0.005237579345703125,
-0.0103759765625,
-0.036224365234375,
0.0196533203125,
0.0318603515625,
-0.03759765625,
0.045166015625,
-0.01537322998046875,
-0.01354217529296875,
0.05889892578125,
-0.0341796875,
0.0185089111328125,
0.044921875,
0.0153961181640625,
0.00507354736328125,
-0.0599365234375,
-0.041595458984375,
-0.01093292236328125,
0.0248260498046875,
-0.031768798828125,
0.1326904296875,
-0.03424072265625,
-0.021575927734375,
-0.007083892822265625,
-0.006053924560546875,
0.0092620849609375,
0.0032501220703125,
-0.0045928955078125,
0.01505279541015625,
0.007068634033203125,
-0.0184326171875,
-0.06707763671875,
-0.00997161865234375,
0.02740478515625,
0.0135955810546875,
-0.01690673828125,
0.0173492431640625,
0.034759521484375,
0.01476287841796875,
0.0104827880859375,
-0.0205078125,
-0.0679931640625,
-0.0282440185546875,
0.06256103515625,
-0.01010894775390625,
0.05511474609375,
-0.048736572265625,
0.04052734375,
-0.00019598007202148438,
-0.0254669189453125,
0.0147857666015625,
-0.046234130859375,
0.030609130859375,
0.039794921875,
-0.01523590087890625,
-0.0282135009765625,
0.007610321044921875,
-0.0165252685546875,
0.043914794921875,
0.0010118484497070312,
0.06719970703125,
0.0094451904296875,
0.0201416015625,
0.036285400390625,
0.0229339599609375,
0.00984954833984375,
-0.07147216796875,
0.0009207725524902344,
0.05718994140625,
-0.00983428955078125,
0.0419921875,
0.03863525390625,
-0.02581787109375,
-0.046051025390625,
-0.01690673828125,
0.0056915283203125,
-0.0343017578125,
-0.034912109375,
-0.06353759765625,
0.0096435546875,
0.0152130126953125,
-0.015625,
-0.046417236328125,
0.0286712646484375,
-0.028289794921875,
0.040374755859375,
-0.0283203125,
0.0239410400390625,
-0.01366424560546875,
0.03924560546875,
-0.02362060546875,
-0.01983642578125,
-0.01488494873046875,
0.0390625,
-0.0187225341796875,
0.00914764404296875,
0.025146484375,
-0.00672149658203125,
0.006244659423828125,
0.002941131591796875,
0.00748443603515625,
0.043212890625,
-0.0118560791015625,
0.0096588134765625,
0.0157470703125,
0.02459716796875,
-0.05322265625,
-0.0697021484375,
0.0147247314453125,
0.004734039306640625,
-0.0169830322265625,
0.0120086669921875,
-0.0114288330078125,
-0.00021409988403320312,
-0.046844482421875,
-0.07952880859375,
0.0300445556640625,
0.01403045654296875,
-0.037750244140625,
-0.055450439453125,
0.059906005859375,
0.0028743743896484375,
0.01044464111328125,
-0.0226898193359375,
-0.001987457275390625,
0.006500244140625,
0.01373291015625,
0.0177459716796875,
-0.0016880035400390625,
0.045562744140625,
-0.007610321044921875,
-0.027130126953125,
-0.004665374755859375,
0.0006918907165527344,
0.00843048095703125,
-0.054168701171875,
-0.00760650634765625,
0.0248260498046875,
0.02301025390625,
-0.01018524169921875,
-0.0162506103515625,
0.03924560546875,
0.040191650390625,
0.0016078948974609375,
-0.042083740234375,
-0.005390167236328125,
-0.0144500732421875,
0.049591064453125,
-0.010986328125,
-0.002643585205078125,
-0.01050567626953125,
0.009735107421875,
-0.006053924560546875,
-0.069580078125,
-0.0012826919555664062,
0.03912353515625,
-0.06805419921875,
0.0016069412231445312,
0.015411376953125,
-0.0030384063720703125,
0.01496124267578125,
-0.00861358642578125,
0.0025615692138671875,
-0.0012388229370117188,
0.021240234375,
-0.006710052490234375,
-0.035369873046875,
-0.0157012939453125,
0.0285491943359375,
-0.0168914794921875,
-0.016021728515625,
-0.00909423828125,
0.01727294921875,
0.006153106689453125,
-0.017913818359375,
-0.020904541015625,
0.034271240234375,
-0.02740478515625,
-0.01262664794921875,
0.00787353515625,
0.0443115234375,
-0.0172271728515625,
0.0008144378662109375,
-0.0267486572265625,
-0.0005583763122558594,
-0.0010290145874023438,
-0.018646240234375,
-0.03240966796875,
0.05731201171875,
0.002254486083984375,
0.07696533203125,
-0.0010385513305664062,
0.01605224609375,
-0.0171661376953125,
0.0244903564453125,
0.005756378173828125,
-0.007904052734375,
0.0165557861328125,
0.0000019073486328125,
-0.0023345947265625,
0.0067291259765625,
-0.0196990966796875,
-0.034454345703125,
0.0002225637435913086,
-0.0017986297607421875,
0.00391387939453125,
0.01255035400390625
] |
9ad4d9b90dfeee437810f174fce7350dd32b4132 | Wordpress Stackexchange
Q: Integrate Gutenberg as a Standalone App I'm thinking about integrating the new awesome WordPress block editor (Gutenberg) outside of its environment (WordPress core), so is there any way to get just the text editor code and use it for example in another CMS or framework or just a simple HTML page?
A: Yes, You can use Gutenberg as a standalone app or CMS agnostic app. Drupal using Gutenberg as a npm module and then integrating in their own CMS. Drupal Gutenberg is decoupling Gutenberg from WordPress and using as JS editor Gutenberg JS. This way, developers can build block for Gutenberg and port it to two different CMS.
| Q: Integrate Gutenberg as a Standalone App I'm thinking about integrating the new awesome WordPress block editor (Gutenberg) outside of its environment (WordPress core), so is there any way to get just the text editor code and use it for example in another CMS or framework or just a simple HTML page?
A: Yes, You can use Gutenberg as a standalone app or CMS agnostic app. Drupal using Gutenberg as a npm module and then integrating in their own CMS. Drupal Gutenberg is decoupling Gutenberg from WordPress and using as JS editor Gutenberg JS. This way, developers can build block for Gutenberg and port it to two different CMS.
| wordpress | {
"language": "en",
"length": 109,
"provenance": "stackexchange_00019.jsonl.gz:492109",
"question_score": "8",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/326084"
} | [
-0.0223388671875,
-0.00412750244140625,
-0.027099609375,
-0.0031585693359375,
-0.0163726806640625,
-0.00540924072265625,
-0.0096282958984375,
-0.0124664306640625,
-0.00708770751953125,
0.05792236328125,
-0.006656646728515625,
-0.00981903076171875,
0.01232147216796875,
-0.017059326171875,
-0.0279388427734375,
-0.00943756103515625,
0.0159149169921875,
0.03466796875,
0.039764404296875,
0.01264190673828125,
-0.0078887939453125,
0.01268768310546875,
-0.025970458984375,
-0.0288848876953125,
0.0187530517578125,
0.0108795166015625,
-0.03607177734375,
0.0114288330078125,
0.0006933212280273438,
0.004528045654296875,
0.028289794921875,
0.003574371337890625,
0.0121002197265625,
0.006626129150390625,
-0.00992584228515625,
-0.024261474609375,
0.004932403564453125,
0.0031490325927734375,
0.0015897750854492188,
0.01317596435546875,
0.015960693359375,
-0.01030731201171875,
-0.0020542144775390625,
0.01654052734375,
-0.0224456787109375,
-0.033477783203125,
0.00522613525390625,
-0.037109375,
0.030426025390625,
0.019561767578125,
-0.0121002197265625,
0.0011205673217773438,
-0.0007352828979492188,
-0.0215606689453125,
-0.0031833648681640625,
-0.0223846435546875,
0.007434844970703125,
0.0257720947265625,
0.006435394287109375,
0.0185089111328125,
-0.0117340087890625,
0.041900634765625,
0.0024509429931640625,
-0.0133209228515625,
0.04766845703125,
-0.014190673828125,
-0.04217529296875,
0.029541015625,
0.01016998291015625,
0.055877685546875,
0.0036525726318359375,
-0.043243408203125,
-0.0032444000244140625,
-0.07366943359375,
-0.004878997802734375,
0.017730712890625,
-0.0218353271484375,
-0.07147216796875,
0.007770538330078125,
-0.0140228271484375,
-0.01035308837890625,
0.03521728515625,
-0.0280303955078125,
-0.08135986328125,
0.037261962890625,
-0.046875,
-0.01119232177734375,
0.003574371337890625,
-0.033111572265625,
-0.00780487060546875,
-0.02581787109375,
-0.02850341796875,
-0.054840087890625,
0.040557861328125,
-0.007038116455078125,
0.005168914794921875,
-0.0039215087890625,
-0.0292510986328125,
0.00835418701171875,
0.0276336669921875,
0.06256103515625,
-0.08416748046875,
0.1163330078125,
-0.02984619140625,
-0.0014219284057617188,
0.0914306640625,
-0.0214691162109375,
-0.0254669189453125,
0.0134735107421875,
0.002105712890625,
0.0189056396484375,
-0.050994873046875,
0.0189056396484375,
-0.0236663818359375,
0.0193939208984375,
0.012603759765625,
-0.0216827392578125,
0.065185546875,
0.005657196044921875,
0.042144775390625,
-0.01117706298828125,
0.01056671142578125,
0.019256591796875,
0.015655517578125,
-0.044708251953125,
-0.021148681640625,
0.016204833984375,
-0.0269317626953125,
0.01812744140625,
-0.0389404296875,
-0.00228118896484375,
0.0305633544921875,
0.0235595703125,
0.041015625,
-0.00531005859375,
-0.004375457763671875,
0.08050537109375,
0.046112060546875,
0.01904296875,
-0.008056640625,
0.0032501220703125,
0.004451751708984375,
-0.031585693359375,
-0.0213470458984375,
0.0165863037109375,
0.00433349609375,
0.0310821533203125,
0.0022602081298828125,
-0.02655029296875,
-0.025970458984375,
0.0165557861328125,
0.0081024169921875,
-0.004352569580078125,
0.0268707275390625,
0.0439453125,
-0.0161895751953125,
0.040283203125,
-0.0306243896484375,
0.03997802734375,
-0.0225677490234375,
0.00740814208984375,
-0.00463104248046875,
0.0274810791015625,
-0.005725860595703125,
-0.01375579833984375,
-0.01268768310546875,
-0.02838134765625,
-0.0008039474487304688,
0.0196075439453125,
-0.0235595703125,
-0.007747650146484375,
-0.036834716796875,
0.01068115234375,
-0.037994384765625,
-0.022064208984375,
0.0244598388671875,
0.00411224365234375,
0.005615234375,
0.0161285400390625,
0.032257080078125,
-0.0010194778442382812,
-0.037445068359375,
0.05194091796875,
-0.027740478515625,
-0.044281005859375,
0.046478271484375,
-0.0147705078125,
0.033935546875,
0.044219970703125,
-0.002696990966796875,
0.0188751220703125,
-0.0036945343017578125,
-0.01177215576171875,
0.005352020263671875,
-0.019775390625,
-0.0208892822265625,
-0.00986480712890625,
0.01885986328125,
-0.0144500732421875,
-0.0012655258178710938,
0.04022216796875,
-0.0135955810546875,
0.048675537109375,
-0.042236328125,
-0.048736572265625,
0.0173187255859375,
-0.0215606689453125,
0.04400634765625,
-0.007965087890625,
-0.02984619140625,
0.0196380615234375,
-0.04534912109375,
0.002368927001953125,
-0.0092010498046875,
-0.03948974609375,
0.0174560546875,
0.02349853515625,
0.0513916015625,
0.0285491943359375,
-0.0098114013671875,
0.03302001953125,
0.00658416748046875,
0.0160064697265625,
0.026641845703125,
0.0709228515625,
-0.0211029052734375,
0.0015392303466796875,
-0.037811279296875,
0.0242462158203125,
0.016143798828125,
-0.076171875,
0.0173187255859375,
0.00797271728515625,
0.01491546630859375,
0.0001989603042602539,
0.0169830322265625,
0.008026123046875,
-0.04132080078125,
-0.0017108917236328125,
0.0229034423828125,
0.02716064453125,
-0.004364013671875,
-0.04730224609375,
-0.06903076171875,
0.0254058837890625,
-0.027984619140625,
0.00875091552734375,
-0.0286102294921875,
0.006694793701171875,
0.035858154296875,
-0.055267333984375,
-0.0007762908935546875,
0.02239990234375,
-0.0204620361328125,
0.0009407997131347656,
0.0229949951171875,
0.01329803466796875,
-0.0029773712158203125,
-0.0252227783203125,
0.0222930908203125,
-0.00030422210693359375,
-0.00670623779296875,
-0.0269927978515625,
0.00449371337890625,
0.061248779296875,
-0.00811767578125,
0.055206298828125,
0.046112060546875,
-0.031280517578125,
-0.007549285888671875,
0.0222015380859375,
0.056671142578125,
-0.00203704833984375,
0.011962890625,
0.049468994140625,
0.0218353271484375,
-0.045196533203125,
-0.00801849365234375,
0.04888916015625,
0.02392578125,
-0.0121612548828125,
-0.005710601806640625,
-0.029144287109375,
0.006855010986328125,
-0.0115966796875,
-0.046173095703125,
0.032806396484375,
0.03680419921875,
0.03955078125,
0.00859832763671875,
0.049285888671875,
-0.040435791015625,
-0.022125244140625,
0.00897979736328125,
0.01486968994140625,
-0.051116943359375,
0.068359375,
-0.0294647216796875,
0.01177215576171875,
-0.010223388671875,
0.0479736328125,
0.03515625,
-0.0212554931640625,
0.004917144775390625,
-0.0025005340576171875,
-0.0293121337890625,
0.0033931732177734375,
-0.00910186767578125,
-0.0255126953125,
-0.009002685546875,
-0.059051513671875,
0.01287078857421875,
0.0150299072265625,
0.0173492431640625,
0.009765625,
-0.01462554931640625,
-0.01149749755859375,
0.0288543701171875,
-0.03009033203125,
-0.0142974853515625,
-0.02581787109375,
-0.053955078125,
-0.0271759033203125,
-0.0030536651611328125,
-0.048309326171875,
0.021514892578125,
0.00415802001953125,
0.0030803680419921875,
-0.0200347900390625,
-0.0114288330078125,
-0.042633056640625,
-0.06365966796875,
-0.0665283203125,
-0.0139007568359375,
-0.01192474365234375,
0.0262603759765625,
0.0007348060607910156,
-0.0166473388671875,
0.00011491775512695312,
0.018402099609375,
0.03338623046875,
-0.0030193328857421875,
-0.01061248779296875,
-0.0478515625,
-0.001552581787109375,
-0.017974853515625,
0.00580596923828125,
0.015380859375,
-0.0171661376953125,
-0.0016422271728515625,
-0.00139617919921875,
-0.0036773681640625,
0.005657196044921875,
0.0147247314453125,
0.00049591064453125,
-0.030364990234375,
-0.01092529296875,
0.0021305084228515625,
-0.024078369140625,
-0.045745849609375,
-0.0008411407470703125,
0.00946807861328125,
-0.01457977294921875,
0.006572723388671875,
-0.00421905517578125,
-0.01629638671875,
0.006195068359375,
0.003818511962890625,
0.00007534027099609375,
0.0311431884765625,
0.025177001953125,
-0.013092041015625,
-0.02362060546875,
-0.033050537109375,
-0.034637451171875,
-0.00916290283203125,
0.0311279296875,
-0.0290069580078125,
0.0274658203125,
0.00685882568359375,
-0.0011034011840820312,
-0.007045745849609375,
-0.009429931640625,
-0.05426025390625,
0.00859832763671875,
0.0445556640625,
0.01169586181640625,
0.0206451416015625,
0.0015583038330078125,
-0.02020263671875,
-0.004825592041015625,
0.036834716796875,
-0.0024394989013671875,
0.00792694091796875,
0.067138671875,
-0.0043792724609375,
-0.03118896484375,
0.0006465911865234375,
-0.11639404296875,
-0.00042247772216796875,
0.05419921875,
-0.0035858154296875,
0.0005688667297363281,
-0.00884246826171875,
0.01145172119140625,
-0.03057861328125,
0.031494140625,
-0.004444122314453125,
0.01213836669921875,
-0.047698974609375,
0.0243377685546875,
0.0234832763671875,
0.010589599609375,
-0.0082855224609375,
-0.00034809112548828125,
-0.059783935546875,
-0.060333251953125,
-0.001323699951171875,
-0.0167388916015625,
0.031707763671875,
-0.0120086669921875,
0.00974273681640625,
-0.0218963623046875,
0.03759765625,
-0.050384521484375,
0.0244293212890625,
0.016326904296875,
0.068115234375,
0.01397705078125,
-0.018951416015625,
0.0161895751953125,
-0.040924072265625,
0.00733184814453125,
-0.006610870361328125,
-0.037139892578125,
0.004451751708984375,
-0.0146942138671875,
-0.023284912109375,
0.013885498046875,
-0.038421630859375,
-0.05181884765625,
-0.034912109375,
-0.036865234375,
-0.01593017578125,
-0.0099334716796875,
-0.00946044921875,
-0.016448974609375,
-0.04119873046875,
0.057281494140625,
0.0372314453125,
0.006198883056640625,
0.006320953369140625,
0.062164306640625,
0.006542205810546875,
-0.040557861328125,
-0.050079345703125,
-0.003810882568359375,
0.01464080810546875,
-0.0023326873779296875,
0.06719970703125,
0.01128387451171875,
0.00954437255859375,
0.046234130859375,
-0.021209716796875,
0.0158843994140625,
-0.04510498046875,
0.0189361572265625,
-0.013580322265625,
-0.016357421875,
0.02276611328125,
-0.0120849609375,
0.040496826171875,
0.014617919921875,
-0.03173828125,
0.00563812255859375,
0.00371551513671875,
0.007640838623046875,
-0.04815673828125,
0.050750732421875,
-0.01348876953125,
-0.0241241455078125,
-0.0011396408081054688,
-0.02520751953125,
0.053863525390625,
0.03790283203125,
-0.0074310302734375,
0.0264434814453125,
0.046417236328125,
-0.020904541015625,
0.0259246826171875,
-0.01113128662109375,
-0.01111602783203125,
-0.001194000244140625,
0.00936126708984375,
-0.04217529296875,
0.020050048828125,
-0.00013637542724609375,
0.055206298828125,
0.00876617431640625,
-0.038543701171875,
-0.01316070556640625,
-0.012725830078125,
-0.01522064208984375,
0.0007567405700683594,
-0.01436614990234375,
0.0239715576171875,
0.0183563232421875,
-0.0333251953125,
0.007541656494140625,
0.0272216796875,
-0.0560302734375,
-0.033966064453125,
-0.03363037109375,
-0.0221099853515625,
-0.0217742919921875,
0.00524139404296875,
0.016845703125,
-0.05712890625,
0.0198974609375,
0.0104827880859375,
0.020660400390625,
0.003116607666015625,
0.01427459716796875,
0.004062652587890625,
0.0037670135498046875,
-0.0020122528076171875,
-0.0038280487060546875,
0.01032257080078125,
-0.022857666015625,
-0.015838623046875,
0.01983642578125,
0.035919189453125,
0.02410888671875,
0.007297515869140625,
-0.002410888671875,
0.00238037109375,
-0.01358795166015625,
-0.00102996826171875,
-0.02117919921875,
-0.0014200210571289062,
-0.00711822509765625,
-0.006862640380859375,
0.02130126953125,
0.037841796875,
0.013397216796875,
-0.041961669921875,
0.01959228515625,
-0.01151275634765625,
-0.005527496337890625,
-0.03436279296875,
-0.0006384849548339844,
-0.0002529621124267578,
0.039306640625,
-0.004486083984375,
-0.0162811279296875,
-0.0297698974609375,
-0.0005941390991210938,
-0.0285186767578125,
0.0028858184814453125,
0.07281494140625,
-0.021728515625,
-0.021514892578125,
-0.0193634033203125,
0.045501708984375,
-0.0098876953125,
-0.005401611328125,
0.0723876953125,
0.0287322998046875,
0.0022220611572265625,
-0.0231781005859375,
-0.06060791015625,
-0.043487548828125,
-0.01146697998046875,
-0.0260467529296875,
-0.03692626953125,
0.00879669189453125,
0.0160369873046875,
0.0250244140625,
0.0097198486328125,
0.00896453857421875,
0.0234832763671875,
0.02978515625,
-0.0155181884765625,
0.09259033203125,
-0.01044464111328125,
0.07281494140625,
-0.0287322998046875,
0.08026123046875,
0.010162353515625,
0.01139068603515625,
-0.0211334228515625,
-0.0171966552734375,
-0.027923583984375,
-0.05712890625,
0.01349639892578125,
-0.0164794921875,
0.06005859375,
0.050933837890625,
-0.00682830810546875,
0.0166015625,
0.01227569580078125,
-0.0207672119140625,
-0.0031280517578125,
-0.01971435546875,
0.0064697265625,
-0.022735595703125,
-0.023895263671875,
0.009613037109375,
-0.0303192138671875,
-0.0216522216796875,
0.0017871856689453125,
-0.0172576904296875,
0.01544952392578125,
-0.004154205322265625,
-0.035888671875,
0.030181884765625,
-0.003936767578125,
0.0305023193359375,
0.08172607421875,
0.006023406982421875,
0.01122283935546875,
0.060272216796875,
-0.0160980224609375,
-0.05865478515625,
0.03179931640625,
-0.0243072509765625,
0.027099609375,
-0.03240966796875,
-0.024871826171875,
0.0002865791320800781,
-0.06201171875,
0.0164337158203125,
0.042877197265625,
0.043731689453125,
0.08709716796875,
-0.056884765625,
0.0057525634765625,
0.020111083984375,
-0.062103271484375,
-0.0129547119140625,
0.00682830810546875,
0.004314422607421875,
-0.053985595703125,
0.027618408203125,
0.058868408203125,
0.00408172607421875,
0.0206298828125,
0.003131866455078125,
-0.017730712890625,
-0.04241943359375,
0.02392578125,
0.024017333984375,
-0.0018472671508789062,
0.033538818359375,
-0.01534271240234375,
0.04986572265625,
-0.03131103515625,
0.0188446044921875,
0.0036945343017578125,
0.00865936279296875,
-0.01287078857421875,
0.046844482421875,
-0.016845703125,
0.0288848876953125,
0.02178955078125,
0.03179931640625,
-0.006927490234375,
0.06610107421875,
-0.0222015380859375,
0.019073486328125,
0.041015625,
-0.01031494140625,
-0.020355224609375,
-0.025482177734375,
0.022308349609375,
0.027374267578125,
-0.0423583984375,
0.0313720703125,
-0.0182037353515625,
-0.010650634765625,
0.006999969482421875,
0.09326171875,
0.0931396484375,
-0.0025577545166015625,
-0.0618896484375,
0.056976318359375,
0.01111602783203125,
-0.0303192138671875,
0.003643035888671875,
0.0634765625,
-0.037078857421875,
-0.02349853515625,
0.024169921875,
-0.0245208740234375,
-0.03594970703125,
-0.0087738037109375,
-0.035980224609375,
0.148681640625,
0.0010089874267578125,
-0.0025920867919921875,
0.0198974609375,
0.07666015625,
-0.047332763671875,
0.05242919921875,
-0.043212890625,
0.05633544921875,
0.012969970703125,
0.011993408203125,
-0.04632568359375,
0.004962921142578125,
-0.01849365234375,
-0.00766754150390625,
-0.002574920654296875,
0.00331878662109375,
-0.041961669921875,
-0.024658203125,
-0.030792236328125,
0.0098419189453125,
-0.019012451171875,
0.0291595458984375,
0.0232696533203125,
-0.0196075439453125,
-0.0028514862060546875,
0.01983642578125,
0.02947998046875,
-0.07525634765625,
-0.0146636962890625,
0.022613525390625,
0.006092071533203125,
0.01534271240234375,
0.0101165771484375,
-0.0269775390625,
0.00453948974609375,
-0.0014295578002929688,
-0.00713348388671875,
-0.0240020751953125,
-0.0247039794921875,
0.00836944580078125,
-0.029510498046875,
-0.006420135498046875,
-0.007228851318359375,
-0.0211029052734375,
0.0180816650390625,
0.01445770263671875,
-0.0267181396484375,
-0.0080413818359375,
0.004062652587890625,
-0.0177459716796875,
0.0007319450378417969,
-0.0168914794921875,
0.046112060546875,
-0.027008056640625,
0.0235443115234375,
-0.01751708984375,
0.0085296630859375,
-0.049224853515625,
0.01849365234375,
0.0220184326171875,
0.0272216796875,
-0.037261962890625,
-0.05078125,
-0.00494384765625,
0.018829345703125,
0.050445556640625,
0.01477813720703125,
0.044921875,
0.0034637451171875,
0.03375244140625,
0.01540374755859375,
-0.017913818359375,
-0.0196533203125,
-0.01320648193359375,
0.004169464111328125,
0.05291748046875,
0.048492431640625,
-0.007720947265625,
-0.047882080078125,
0.0195159912109375,
0.006938934326171875,
0.043121337890625,
0.0161590576171875,
0.054412841796875,
0.024444580078125,
-0.009490966796875,
-0.08001708984375,
0.043365478515625,
0.038330078125,
0.0911865234375,
-0.07659912109375,
-0.0007610321044921875,
0.05816650390625,
0.046417236328125,
0.0192413330078125,
0.072998046875,
0.061248779296875,
0.048553466796875,
0.0309295654296875,
-0.0015926361083984375,
0.009490966796875,
-0.0157012939453125,
-0.0184173583984375,
-0.017608642578125,
-0.01654052734375,
-0.033416748046875,
-0.006145477294921875,
-0.005092620849609375,
0.07977294921875,
-0.05718994140625,
-0.0018224716186523438,
0.023223876953125,
0.0022411346435546875,
-0.0367431640625,
0.01506805419921875,
-0.0036773681640625,
0.07373046875,
0.0283203125,
-0.007297515869140625,
-0.0073089599609375,
0.004146575927734375,
-0.01152801513671875,
0.00519561767578125,
0.0321044921875,
0.0030307769775390625,
0.022186279296875,
0.041229248046875,
0.032623291015625,
0.0267333984375,
-0.07012939453125,
0.038909912109375,
-0.00736236572265625,
0.0121612548828125,
0.0154571533203125,
-0.005496978759765625,
-0.01146697998046875,
0.025665283203125,
0.039947509765625,
0.006866455078125,
0.08465576171875,
-0.035919189453125,
0.006153106689453125,
0.049774169921875,
-0.01300811767578125,
0.0291290283203125,
0.037628173828125,
-0.043701171875,
0.004535675048828125,
0.05419921875,
-0.01690673828125,
-0.04534912109375,
-0.0178985595703125,
0.0148162841796875,
-0.0233612060546875,
-0.0146636962890625,
-0.0161590576171875,
0.0219268798828125,
0.01727294921875,
0.01800537109375,
-0.01629638671875,
-0.0171356201171875,
-0.00292205810546875,
0.0024967193603515625,
0.0178375244140625,
0.0172882080078125,
0.002346038818359375,
0.049407958984375,
0.0005893707275390625,
0.008148193359375,
0.01259613037109375,
-0.04498291015625,
-0.01509857177734375,
0.0178680419921875,
0.016326904296875,
-0.0172271728515625,
-0.018890380859375,
-0.01235198974609375,
0.0030231475830078125,
0.0013599395751953125,
-0.004940032958984375,
0.0207977294921875,
-0.058990478515625,
0.036468505859375,
0.049102783203125,
0.043060302734375,
-0.0164337158203125,
0.01181793212890625,
0.05291748046875,
-0.0266876220703125,
0.006229400634765625,
0.01496124267578125,
-0.023529052734375,
-0.0489501953125,
-0.01806640625,
0.0105438232421875,
-0.06646728515625,
-0.06512451171875,
-0.1090087890625,
-0.00243377685546875,
0.037994384765625,
-0.0022335052490234375,
-0.0287933349609375,
0.038177490234375,
-0.0164337158203125,
0.00688934326171875,
0.02099609375,
-0.005786895751953125,
-0.00943756103515625,
0.00531768798828125,
-0.0421142578125,
-0.062225341796875,
-0.026397705078125,
0.04974365234375,
-0.041015625,
0.034423828125,
0.04608154296875,
-0.03350830078125,
-0.0013780593872070312,
0.012451171875,
0.052642822265625,
0.04278564453125,
-0.01151275634765625,
-0.0168304443359375,
-0.01505279541015625,
0.0104522705078125,
-0.00835418701171875,
-0.023406982421875,
0.0223846435546875,
-0.0169525146484375,
-0.02276611328125,
-0.006313323974609375,
0.0095977783203125,
0.0172271728515625,
-0.057342529296875,
-0.09765625,
-0.04473876953125,
0.00897979736328125,
-0.06256103515625,
-0.031341552734375,
0.047393798828125,
0.00849151611328125,
-0.03497314453125,
-0.031280517578125,
0.03302001953125,
0.00262451171875,
0.0157470703125,
-0.01010894775390625,
0.023468017578125,
0.031951904296875,
-0.00308990478515625,
0.0282135009765625,
0.004558563232421875,
0.0014019012451171875,
-0.0455322265625,
0.00798797607421875,
-0.0174102783203125,
0.033172607421875,
0.0113372802734375,
-0.056488037109375,
-0.028656005859375,
-0.0133209228515625,
0.01532745361328125,
-0.01275634765625,
-0.01507568359375,
-0.02752685546875,
-0.0132904052734375,
0.053680419921875,
0.04180908203125,
0.00019824504852294922,
-0.0203704833984375,
-0.0025882720947265625,
-0.0161285400390625,
-0.02734375,
-0.00571441650390625,
0.01261138916015625,
-0.055328369140625,
0.0037994384765625,
0.01309967041015625,
-0.0117950439453125,
0.032318115234375,
0.0013628005981445312,
-0.00601959228515625,
0.014007568359375,
-0.009002685546875,
-0.051605224609375,
-0.051422119140625,
-0.0416259765625,
0.0916748046875,
-0.04522705078125,
0.00659942626953125,
0.01885986328125,
0.018768310546875,
0.046356201171875,
0.0160064697265625,
0.01108551025390625,
-0.00566864013671875,
-0.02740478515625,
0.00037789344787597656,
0.0050201416015625,
0.06097412109375,
-0.00766754150390625,
-0.034881591796875,
-0.0193939208984375,
-0.00862884521484375,
0.00855255126953125,
-0.01263427734375,
-0.0192413330078125,
0.034759521484375,
0.0035762786865234375,
0.052093505859375,
0.01373291015625,
-0.0704345703125,
-0.0178680419921875,
0.040069580078125,
-0.01025390625,
-0.037200927734375,
-0.00726318359375,
-0.036773681640625,
-0.0133056640625,
0.0146026611328125,
-0.0438232421875,
-0.055694580078125,
-0.0005927085876464844,
0.01800537109375,
0.01739501953125,
0.01143646240234375
] |
71f61981b7bbf9a81c1424c17f3e6d884be85ce6 | Wordpress Stackexchange
Q: Wordpress Warning: preg_replace(): JIT compilation failed: no more memory I just have installed xampp with php 7.3.1 on mac with OS El capitan.
The problem that when i run a WordPress project will show:
Warning: preg_replace(): JIT compilation failed: no more memory in
/Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-includes/formatting.php
on line 2110 Warning: preg_match(): JIT compilation failed: no more
memory in
/Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-includes/functions.php
on line 4947 Warning: preg_replace(): JIT compilation failed: no more
memory in
/Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-includes/functions.php
on line 4843 Warning: preg_match(): JIT compilation failed: no more
memory in
/Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-includes/functions.php
on line 4947 Warning: preg_match(): JIT compilation failed: no more
memory in
/Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-includes/functions.php
on line 4947
A: I added the following line to the php.ini and restarted Apache and it worked (Xampp on macOS):
pcre.jit=0
This disables PCRE's just-in-time compilation.
Further information:
*
*http://php.net/manual/en/pcre.configuration.php#ini.pcre.jit
If you can't find the location of php.ini and are using Xampp, go to localhost and select the PHP information link and it is displayed there.
| Q: Wordpress Warning: preg_replace(): JIT compilation failed: no more memory I just have installed xampp with php 7.3.1 on mac with OS El capitan.
The problem that when i run a WordPress project will show:
Warning: preg_replace(): JIT compilation failed: no more memory in
/Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-includes/formatting.php
on line 2110 Warning: preg_match(): JIT compilation failed: no more
memory in
/Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-includes/functions.php
on line 4947 Warning: preg_replace(): JIT compilation failed: no more
memory in
/Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-includes/functions.php
on line 4843 Warning: preg_match(): JIT compilation failed: no more
memory in
/Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-includes/functions.php
on line 4947 Warning: preg_match(): JIT compilation failed: no more
memory in
/Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-includes/functions.php
on line 4947
A: I added the following line to the php.ini and restarted Apache and it worked (Xampp on macOS):
pcre.jit=0
This disables PCRE's just-in-time compilation.
Further information:
*
*http://php.net/manual/en/pcre.configuration.php#ini.pcre.jit
If you can't find the location of php.ini and are using Xampp, go to localhost and select the PHP information link and it is displayed there.
A: You need downgrade your php7.3 to php7.1 version. I have the same problem when trying to change php version to the upper.
| wordpress | {
"language": "en",
"length": 177,
"provenance": "stackexchange_00019.jsonl.gz:492174",
"question_score": "6",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/326345"
} | [
0.027618408203125,
-0.0274505615234375,
-0.030548095703125,
-0.10205078125,
0.0156097412109375,
-0.0187835693359375,
-0.01503753662109375,
0.05126953125,
-0.004886627197265625,
0.00949859619140625,
-0.01218414306640625,
-0.0112457275390625,
-0.0034770965576171875,
-0.0290679931640625,
0.02056884765625,
-0.013458251953125,
0.0175933837890625,
0.020904541015625,
0.022216796875,
-0.0089569091796875,
0.01401519775390625,
0.01092529296875,
-0.0312042236328125,
0.04620361328125,
-0.01171112060546875,
-0.0099029541015625,
0.030303955078125,
-0.0168609619140625,
-0.03802490234375,
-0.054718017578125,
-0.00890350341796875,
0.07122802734375,
0.0247344970703125,
0.04473876953125,
-0.06915283203125,
-0.020660400390625,
-0.035369873046875,
0.0214996337890625,
-0.018218994140625,
0.0164947509765625,
-0.024169921875,
0.029205322265625,
-0.00560760498046875,
-0.022064208984375,
-0.040313720703125,
-0.052581787109375,
-0.02166748046875,
-0.0070037841796875,
0.01013946533203125,
-0.041534423828125,
-0.010711669921875,
0.0675048828125,
0.01189422607421875,
-0.0210723876953125,
-0.0016384124755859375,
0.02532958984375,
-0.06695556640625,
0.03973388671875,
-0.0015268325805664062,
0.0673828125,
0.0256805419921875,
0.0382080078125,
-0.01922607421875,
-0.004245758056640625,
-0.0372314453125,
0.0034084320068359375,
0.005828857421875,
-0.005176544189453125,
0.0210418701171875,
-0.025177001953125,
-0.00421905517578125,
0.00942230224609375,
-0.00684356689453125,
-0.037994384765625,
0.031524658203125,
0.00522613525390625,
0.004596710205078125,
0.004032135009765625,
-0.005828857421875,
0.022674560546875,
0.00543975830078125,
-0.0275726318359375,
-0.017608642578125,
-0.0048675537109375,
-0.004566192626953125,
0.004329681396484375,
-0.0106048583984375,
-0.0037326812744140625,
-0.051788330078125,
-0.025909423828125,
-0.045989990234375,
-0.01538848876953125,
-0.059326171875,
-0.0330810546875,
-0.0110931396484375,
-0.0293731689453125,
0.00433349609375,
0.0003101825714111328,
-0.0178375244140625,
-0.0079498291015625,
0.0219268798828125,
-0.04974365234375,
0.0214080810546875,
-0.006832122802734375,
0.004215240478515625,
0.024749755859375,
-0.0022068023681640625,
0.041015625,
0.047027587890625,
0.031646728515625,
-0.0021648406982421875,
0.0148162841796875,
-0.040740966796875,
-0.0714111328125,
-0.035400390625,
0.06121826171875,
-0.0177764892578125,
0.004119873046875,
0.03564453125,
0.01080322265625,
-0.023651123046875,
0.01386260986328125,
0.004932403564453125,
-0.01026153564453125,
0.0005831718444824219,
-0.00537872314453125,
0.016143798828125,
-0.028594970703125,
-0.033935546875,
0.030364990234375,
0.0007963180541992188,
0.0170745849609375,
0.00040912628173828125,
-0.00691986083984375,
-0.0305023193359375,
-0.0110321044921875,
0.07159423828125,
0.00867462158203125,
-0.0113525390625,
0.030670166015625,
-0.01313018798828125,
-0.036102294921875,
-0.0225677490234375,
-0.01898193359375,
0.0083465576171875,
-0.01020050048828125,
0.0293731689453125,
0.024200439453125,
-0.01806640625,
-0.0182342529296875,
-0.00969696044921875,
0.0330810546875,
0.01502227783203125,
0.00402069091796875,
-0.027130126953125,
0.0025730133056640625,
-0.02520751953125,
0.005096435546875,
-0.011505126953125,
-0.01204681396484375,
0.0253143310546875,
-0.002017974853515625,
0.01491546630859375,
-0.0248870849609375,
-0.040557861328125,
0.015045166015625,
-0.056549072265625,
-0.0120086669921875,
0.0221405029296875,
0.01416778564453125,
0.0037326812744140625,
-0.028472900390625,
0.038360595703125,
0.0108642578125,
-0.01053619384765625,
0.016265869140625,
-0.007049560546875,
0.0119781494140625,
0.0246734619140625,
0.03558349609375,
0.014312744140625,
-0.0233154296875,
0.02923583984375,
0.01666259765625,
-0.038818359375,
-0.00572967529296875,
-0.000598907470703125,
0.040771484375,
0.04156494140625,
0.0171966552734375,
0.039825439453125,
-0.020263671875,
0.0191192626953125,
-0.0015497207641601562,
-0.01104736328125,
-0.07061767578125,
0.053253173828125,
-0.0028476715087890625,
-0.0002770423889160156,
0.0146636962890625,
-0.0052947998046875,
-0.0362548828125,
-0.00018918514251708984,
-0.042144775390625,
-0.1334228515625,
0.006938934326171875,
-0.0679931640625,
0.0545654296875,
-0.017242431640625,
0.0306549072265625,
0.0217132568359375,
0.05157470703125,
-0.026275634765625,
-0.0208892822265625,
-0.002895355224609375,
0.0177459716796875,
-0.033111572265625,
0.0682373046875,
0.0186920166015625,
0.06256103515625,
0.00763702392578125,
0.0016469955444335938,
0.0199127197265625,
-0.03460693359375,
0.0140533447265625,
0.0345458984375,
-0.032318115234375,
0.00992584228515625,
0.00102996826171875,
0.0284271240234375,
-0.0016775131225585938,
0.02215576171875,
0.01355743408203125,
-0.006500244140625,
-0.05133056640625,
-0.0016393661499023438,
-0.06744384765625,
-0.025726318359375,
-0.0164337158203125,
0.055999755859375,
0.042755126953125,
0.053863525390625,
-0.01332855224609375,
-0.033447265625,
0.069091796875,
-0.013763427734375,
0.027069091796875,
-0.044158935546875,
-0.0288848876953125,
-0.0241546630859375,
0.02581787109375,
-0.0110015869140625,
0.0115814208984375,
-0.01104736328125,
0.0138092041015625,
0.014801025390625,
-0.004756927490234375,
-0.0031185150146484375,
0.0164794921875,
-0.01641845703125,
0.01953125,
0.042755126953125,
-0.02581787109375,
0.033782958984375,
-0.00368499755859375,
0.034912109375,
0.01488494873046875,
0.013092041015625,
-0.024261474609375,
0.0225830078125,
0.0226593017578125,
-0.017791748046875,
-0.011962890625,
-0.0046844482421875,
-0.0340576171875,
0.0223236083984375,
-0.0382080078125,
0.027374267578125,
-0.0195770263671875,
-0.01338958740234375,
-0.0033855438232421875,
-0.006664276123046875,
0.0031375885009765625,
0.005481719970703125,
0.00884246826171875,
0.005084991455078125,
0.03192138671875,
0.031341552734375,
0.0010538101196289062,
0.006443023681640625,
0.006656646728515625,
0.09063720703125,
0.01383209228515625,
0.04400634765625,
0.00611114501953125,
0.024078369140625,
0.09234619140625,
0.018310546875,
-0.0205078125,
0.058197021484375,
0.0338134765625,
0.037628173828125,
0.03704833984375,
-0.02850341796875,
-0.011627197265625,
0.07611083984375,
0.03021240234375,
-0.00624847412109375,
-0.0157623291015625,
0.022796630859375,
-0.05242919921875,
-0.0321044921875,
0.02923583984375,
-0.031402587890625,
0.022491455078125,
-0.00811767578125,
-0.05169677734375,
0.01184844970703125,
-0.107177734375,
-0.0654296875,
0.00766754150390625,
0.01546478271484375,
0.00279998779296875,
0.0589599609375,
0.003936767578125,
-0.0345458984375,
0.08062744140625,
0.00014007091522216797,
0.0178070068359375,
-0.0287628173828125,
-0.07733154296875,
-0.07415771484375,
-0.08453369140625,
-0.03594970703125,
-0.0220489501953125,
0.00360870361328125,
0.006526947021484375,
0.04833984375,
0.0003314018249511719,
-0.04058837890625,
-0.010528564453125,
-0.0137176513671875,
-0.0350341796875,
-0.0143280029296875,
-0.0111541748046875,
-0.004924774169921875,
0.035247802734375,
0.0092010498046875,
-0.0014781951904296875,
0.0217742919921875,
-0.0085906982421875,
-0.034423828125,
0.0239410400390625,
0.005680084228515625,
0.0219879150390625,
0.05279541015625,
-0.032501220703125,
-0.0474853515625,
0.018463134765625,
-0.0693359375,
-0.0177459716796875,
0.01169586181640625,
-0.024749755859375,
0.0224456787109375,
0.033538818359375,
-0.034423828125,
0.0019664764404296875,
-0.0188751220703125,
-0.032501220703125,
0.0005002021789550781,
-0.005702972412109375,
-0.02777099609375,
0.042083740234375,
-0.0204315185546875,
-0.0165252685546875,
0.0007872581481933594,
0.0389404296875,
-0.0144805908203125,
-0.0364990234375,
0.01129913330078125,
-0.031829833984375,
-0.022430419921875,
-0.01702880859375,
-0.03167724609375,
0.056182861328125,
0.01154327392578125,
-0.02203369140625,
0.0282135009765625,
-0.005947113037109375,
0.00782012939453125,
-0.026702880859375,
0.023193359375,
-0.015625,
-0.037811279296875,
-0.033203125,
0.00321197509765625,
-0.04254150390625,
-0.0067138671875,
-0.00860595703125,
0.00653839111328125,
0.0298614501953125,
-0.02679443359375,
-0.029296875,
-0.004245758056640625,
-0.0019235610961914062,
0.006809234619140625,
0.0251922607421875,
-0.00278472900390625,
0.033721923828125,
-0.033355712890625,
0.0091705322265625,
0.01165008544921875,
0.00754547119140625,
-0.00954437255859375,
-0.01059722900390625,
-0.02239990234375,
-0.1083984375,
-0.0022106170654296875,
-0.0797119140625,
0.08172607421875,
0.02191162109375,
0.006877899169921875,
-0.052337646484375,
0.01470947265625,
0.017425537109375,
0.0352783203125,
-0.01003265380859375,
-0.00030875205993652344,
-0.0131683349609375,
-0.00408172607421875,
0.008026123046875,
-0.00841522216796875,
-0.0115203857421875,
-0.00676727294921875,
-0.017913818359375,
0.0008420944213867188,
-0.0019407272338867188,
0.004352569580078125,
0.032928466796875,
-0.022857666015625,
0.00217437744140625,
-0.0250091552734375,
-0.01776123046875,
0.035247802734375,
-0.01001739501953125,
0.00362396240234375,
-0.043426513671875,
0.004848480224609375,
0.0243072509765625,
-0.03790283203125,
-0.0201873779296875,
0.0136260986328125,
0.06494140625,
0.0206146240234375,
0.003238677978515625,
-0.0161895751953125,
-0.022857666015625,
0.0223236083984375,
0.03936767578125,
-0.0032405853271484375,
-0.01129150390625,
-0.0256195068359375,
0.025665283203125,
0.0086212158203125,
-0.01284027099609375,
0.0377197265625,
-0.034393310546875,
-0.0006041526794433594,
-0.042572021484375,
-0.007389068603515625,
-0.019287109375,
0.0299072265625,
-0.0199432373046875,
0.02313232421875,
0.006259918212890625,
0.06842041015625,
0.034881591796875,
-0.00865936279296875,
-0.0307159423828125,
-0.0146942138671875,
-0.0679931640625,
0.036590576171875,
0.03912353515625,
0.0041351318359375,
-0.0020122528076171875,
0.00008207559585571289,
0.033966064453125,
0.005096435546875,
-0.004009246826171875,
-0.013763427734375,
0.007495880126953125,
-0.0114288330078125,
0.034515380859375,
-0.0006589889526367188,
0.0011205673217773438,
-0.038665771484375,
0.0078277587890625,
-0.0166015625,
0.003139495849609375,
-0.037506103515625,
-0.037994384765625,
0.017547607421875,
-0.0215301513671875,
-0.025726318359375,
0.02166748046875,
-0.0009398460388183594,
-0.0206756591796875,
0.00927734375,
0.00940704345703125,
0.0005602836608886719,
0.004077911376953125,
-0.004749298095703125,
-0.007694244384765625,
-0.0197906494140625,
-0.026763916015625,
-0.02886962890625,
0.0058746337890625,
0.01898193359375,
-0.043060302734375,
-0.0005831718444824219,
0.0245513916015625,
-0.00506591796875,
0.056884765625,
0.015899658203125,
-0.0082550048828125,
-0.005428314208984375,
0.0291900634765625,
-0.0184783935546875,
-0.06744384765625,
-0.054779052734375,
0.0084991455078125,
0.0496826171875,
-0.0258331298828125,
-0.00897216796875,
0.046142578125,
0.027984619140625,
-0.0120849609375,
0.036041259765625,
-0.034912109375,
-0.064208984375,
-0.036346435546875,
-0.06292724609375,
0.0160369873046875,
-0.042755126953125,
-0.010772705078125,
0.039276123046875,
-0.032684326171875,
0.007755279541015625,
0.019256591796875,
-0.07049560546875,
0.01229095458984375,
0.039306640625,
0.009979248046875,
-0.056610107421875,
-0.0181427001953125,
-0.003017425537109375,
0.0235595703125,
-0.0257720947265625,
0.00839996337890625,
0.0062408447265625,
-0.03070068359375,
-0.0208892822265625,
-0.01297760009765625,
0.046356201171875,
0.006328582763671875,
0.0289764404296875,
0.0079498291015625,
-0.0023651123046875,
-0.007266998291015625,
0.01385498046875,
-0.043182373046875,
-0.0310211181640625,
0.00383758544921875,
-0.005336761474609375,
-0.060150146484375,
-0.0242767333984375,
0.01332855224609375,
0.00843048095703125,
-0.018798828125,
-0.01531982421875,
0.005161285400390625,
0.049896240234375,
0.024200439453125,
0.0999755859375,
-0.03338623046875,
-0.00557708740234375,
0.00775909423828125,
0.00908660888671875,
-0.0295257568359375,
0.0015573501586914062,
0.058197021484375,
-0.0338134765625,
0.01250457763671875,
-0.03326416015625,
-0.0258026123046875,
-0.0296173095703125,
0.002658843994140625,
-0.00917816162109375,
0.02685546875,
-0.0234222412109375,
-0.0111541748046875,
-0.004222869873046875,
0.0181884765625,
-0.024169921875,
0.046173095703125,
-0.005725860595703125,
-0.0257415771484375,
0.0023956298828125,
0.005523681640625,
0.05364990234375,
-0.007457733154296875,
-0.0262603759765625,
0.01617431640625,
-0.0013332366943359375,
0.034637451171875,
-0.0026454925537109375,
-0.0270843505859375,
0.0421142578125,
0.065185546875,
0.0224456787109375,
0.04754638671875,
0.0467529296875,
0.033935546875,
-0.002777099609375,
0.0177001953125,
-0.0160064697265625,
-0.0300140380859375,
0.0167388916015625,
0.00269317626953125,
-0.033905029296875,
0.008636474609375,
-0.026824951171875,
-0.005878448486328125,
0.03631591796875,
0.04168701171875,
-0.045501708984375,
0.0004658699035644531,
0.0227508544921875,
-0.0418701171875,
-0.034332275390625,
0.0006251335144042969,
-0.0126800537109375,
0.0090789794921875,
0.0039520263671875,
-0.0007829666137695312,
-0.042236328125,
0.00279998779296875,
0.034393310546875,
-0.009063720703125,
0.0224151611328125,
0.0267181396484375,
0.0255126953125,
-0.05560302734375,
0.0033397674560546875,
0.035491943359375,
0.005435943603515625,
0.002780914306640625,
0.043212890625,
-0.0218963623046875,
-0.0101165771484375,
-0.0297698974609375,
0.0088348388671875,
0.013214111328125,
-0.043304443359375,
0.0110321044921875,
-0.008392333984375,
0.038848876953125,
0.04327392578125,
0.002838134765625,
-0.005054473876953125,
0.019622802734375,
-0.04583740234375,
0.027099609375,
-0.0171966552734375,
0.0283966064453125,
0.05426025390625,
-0.03887939453125,
0.014678955078125,
0.0155792236328125,
-0.005779266357421875,
0.00418853759765625,
-0.0012140274047851562,
0.0382080078125,
-0.05828857421875,
-0.0002073049545288086,
0.05181884765625,
0.0072174072265625,
-0.03009033203125,
-0.01483154296875,
-0.004833221435546875,
-0.07489013671875,
-0.0195159912109375,
-0.0242919921875,
-0.034698486328125,
0.0380859375,
-0.01470947265625,
0.00112152099609375,
0.05450439453125,
0.01195526123046875,
-0.051025390625,
0.0112762451171875,
0.0372314453125,
-0.03338623046875,
0.0251922607421875,
-0.00005036592483520508,
0.046234130859375,
-0.044525146484375,
0.01617431640625,
-0.0335693359375,
0.007068634033203125,
0.0260162353515625,
0.026031494140625,
0.0025615692138671875,
0.0025730133056640625,
0.0023174285888671875,
0.0012865066528320312,
0.00992584228515625,
-0.0146636962890625,
-0.0152435302734375,
0.026641845703125,
-0.01629638671875,
-0.01534271240234375,
0.06158447265625,
-0.0194549560546875,
0.027679443359375,
0.026458740234375,
0.00030875205993652344,
0.0009937286376953125,
-0.002826690673828125,
-0.03192138671875,
-0.046875,
-0.0298614501953125,
-0.0150604248046875,
-0.021575927734375,
-0.021453857421875,
0.07421875,
-0.01522064208984375,
0.0521240234375,
0.05413818359375,
-0.07928466796875,
-0.0362548828125,
-0.036285400390625,
0.050018310546875,
0.00241851806640625,
0.00846099853515625,
0.005207061767578125,
0.01204681396484375,
0.021820068359375,
-0.0175323486328125,
0.002323150634765625,
0.03436279296875,
-0.0298919677734375,
-0.025787353515625,
0.028472900390625,
0.04754638671875,
0.04559326171875,
0.0284423828125,
0.012115478515625,
-0.02197265625,
-0.00853729248046875,
-0.056549072265625,
-0.0162811279296875,
-0.01214599609375,
0.040740966796875,
0.00841522216796875,
0.042877197265625,
0.0143585205078125,
0.005084991455078125,
0.040008544921875,
-0.029205322265625,
-0.0272369384765625,
-0.0076904296875,
0.0114288330078125,
0.0196380615234375,
0.056182861328125,
-0.00955963134765625,
-0.0318603515625,
0.0281524658203125,
0.016204833984375,
0.0239715576171875,
-0.0202178955078125,
0.044952392578125,
0.01007843017578125,
-0.004047393798828125,
-0.02496337890625,
0.02789306640625,
-0.0078582763671875,
0.0243377685546875,
-0.0557861328125,
-0.036956787109375,
0.0233917236328125,
0.059295654296875,
0.01270294189453125,
0.037445068359375,
0.0237579345703125,
-0.03271484375,
-0.03973388671875,
0.01428985595703125,
0.0152740478515625,
-0.039093017578125,
-0.024993896484375,
0.0009355545043945312,
-0.00331878662109375,
0.00461578369140625,
0.01580810546875,
0.02825927734375,
0.06060791015625,
-0.01552581787109375,
0.01103973388671875,
-0.020782470703125,
0.023345947265625,
0.0002810955047607422,
0.0311279296875,
0.0129852294921875,
-0.0265655517578125,
0.03900146484375,
0.0250701904296875,
0.01605224609375,
-0.035797119140625,
0.01526641845703125,
-0.0198211669921875,
0.00257110595703125,
0.016754150390625,
0.033050537109375,
0.036041259765625,
0.00984954833984375,
0.0216522216796875,
-0.0146026611328125,
-0.036590576171875,
-0.0271148681640625,
0.05218505859375,
-0.0125885009765625,
-0.0252532958984375,
-0.004520416259765625,
-0.006519317626953125,
0.00890350341796875,
0.0218505859375,
0.090576171875,
-0.0210418701171875,
0.02288818359375,
-0.0103607177734375,
-0.0037517547607421875,
-0.0016260147094726562,
-0.005115509033203125,
0.0021953582763671875,
0.0306549072265625,
0.00908660888671875,
-0.0286865234375,
-0.035003662109375,
0.01092529296875,
0.039825439453125,
-0.004917144775390625,
0.0343017578125,
-0.005107879638671875,
0.007305145263671875,
-0.041259765625,
0.00518798828125,
0.002994537353515625,
-0.032958984375,
0.0260009765625,
0.05145263671875,
0.006366729736328125,
0.060028076171875,
-0.0286407470703125,
0.00789642333984375,
0.078125,
-0.0241546630859375,
0.0318603515625,
-0.01471710205078125,
0.0604248046875,
0.0364990234375,
0.0283050537109375,
-0.03619384765625,
-0.0220489501953125,
-0.0252532958984375,
-0.011810302734375,
0.00447845458984375,
0.0200042724609375,
-0.0182342529296875,
-0.0030059814453125,
0.00992584228515625,
0.01125335693359375,
0.0092620849609375,
-0.0577392578125,
0.003406524658203125,
0.02490234375,
0.005947113037109375,
0.03277587890625,
0.0357666015625,
0.006420135498046875,
-0.002300262451171875,
-0.05438232421875,
-0.0177154541015625,
-0.033843994140625,
-0.0308837890625,
-0.009246826171875,
0.00823211669921875,
0.0202789306640625,
0.0262298583984375,
-0.050018310546875,
0.047576904296875,
-0.0098724365234375,
0.00809478759765625,
0.0143890380859375,
-0.008514404296875,
-0.0078887939453125,
0.0192718505859375,
-0.006931304931640625,
-0.08917236328125,
-0.040618896484375,
0.07196044921875,
-0.05908203125,
0.01421356201171875,
0.09014892578125,
-0.009002685546875,
-0.0703125,
-0.041412353515625,
-0.01617431640625,
0.0301971435546875,
-0.058563232421875,
-0.006809234619140625,
0.03924560546875,
0.002666473388671875,
-0.0498046875,
-0.101806640625,
0.0028667449951171875,
-0.0665283203125,
0.021392822265625,
-0.00811004638671875,
-0.01464080810546875,
-0.0085601806640625,
-0.03369140625,
-0.048797607421875,
0.0294189453125,
0.007598876953125,
-0.019195556640625,
-0.07659912109375,
-0.016937255859375,
-0.0038604736328125,
0.0645751953125,
-0.0028533935546875,
-0.026092529296875,
-0.0360107421875,
0.0513916015625,
0.0016412734985351562,
-0.004077911376953125,
0.00809478759765625,
-0.01302337646484375,
0.0296478271484375,
0.05633544921875,
0.0687255859375,
-0.0364990234375,
-0.01451873779296875,
0.03179931640625,
0.002651214599609375,
0.0740966796875,
0.00962066650390625,
-0.038909912109375,
-0.02105712890625,
-0.09283447265625,
-0.0155029296875,
-0.06500244140625,
-0.040863037109375,
-0.0286712646484375,
0.1351318359375,
-0.008880615234375,
0.033050537109375,
-0.036407470703125,
0.053955078125,
0.0227508544921875,
0.0210418701171875,
-0.00444793701171875,
-0.020477294921875,
-0.01477813720703125,
-0.03582763671875,
-0.02349853515625,
-0.015625,
-0.00922393798828125,
0.006610870361328125,
-0.042938232421875,
-0.0095977783203125,
-0.035888671875,
-0.037261962890625,
-0.00070953369140625,
0.00963592529296875,
-0.0105438232421875,
-0.0240325927734375,
-0.01442718505859375,
-0.0035877227783203125,
-0.0009379386901855469,
-0.028076171875,
0.0196075439453125,
0.0011930465698242188,
-0.0142974853515625,
-0.021728515625,
0.006450653076171875,
0.01360321044921875,
0.0297698974609375,
0.0001055598258972168,
-0.0328369140625,
-0.0030059814453125,
-0.006893157958984375,
0.0135040283203125,
-0.0005445480346679688,
0.014984130859375,
-0.0343017578125,
-0.0194091796875,
0.034881591796875,
-0.050872802734375,
0.054962158203125,
-0.011077880859375,
0.0196380615234375,
-0.04852294921875,
0.036407470703125,
0.00801849365234375,
-0.017913818359375,
0.006862640380859375,
0.03289794921875,
0.0054779052734375,
-0.019989013671875,
0.0138702392578125,
-0.01197052001953125,
0.017669677734375,
0.010406494140625
] |
5c3ada96f90ce745c04632032ae508a455a72201 | Wordpress Stackexchange
Q: wp_get_current_user in custom file returns 0 I need to access logged-in user data in a custom PHP file that I call in a WP page through an include.
The include file is:
require($_SERVER['DOCUMENT_ROOT'].'/wp-config.php');
require($_SERVER['DOCUMENT_ROOT'].'/wp-load.php');
$current_user = wp_get_current_user();
var_dump($current_user->ID);
var_dump($current_user->display_name);
And it outputs:
int(0) bool(false) int(0) bool(false)
However... In the very same page, I also call a function that I entered in function.php:
$current_user = wp_get_current_user();
var_dump($current_user->ID);
var_dump($current_user->display_name);
And this one outputs:
int(1) string(10) "antoine251"
It looks to me like WP functions called from my external php file are not working.
What am I missing?
(No pluggin is even installed, same results in twentynineteen theme than is my custom theme)
Thanks in advance for your help!
A: The problem with your code is that you want to get current user to early.
wp_get_current_user is using global current_user variable.
But this variable isn’t set from the beginning.
And if you want to use this function straight in the script file, then it’s to early.
You should wait for init action to get current user.
require($_SERVER['DOCUMENT_ROOT'].'/wp-config.php');
require($_SERVER['DOCUMENT_ROOT'].'/wp-load.php');
add_action( 'init', function() {
$current_user = wp_get_current_user();
var_dump($current_user->ID);
var_dump($current_user->display_name);
});
| Q: wp_get_current_user in custom file returns 0 I need to access logged-in user data in a custom PHP file that I call in a WP page through an include.
The include file is:
require($_SERVER['DOCUMENT_ROOT'].'/wp-config.php');
require($_SERVER['DOCUMENT_ROOT'].'/wp-load.php');
$current_user = wp_get_current_user();
var_dump($current_user->ID);
var_dump($current_user->display_name);
And it outputs:
int(0) bool(false) int(0) bool(false)
However... In the very same page, I also call a function that I entered in function.php:
$current_user = wp_get_current_user();
var_dump($current_user->ID);
var_dump($current_user->display_name);
And this one outputs:
int(1) string(10) "antoine251"
It looks to me like WP functions called from my external php file are not working.
What am I missing?
(No pluggin is even installed, same results in twentynineteen theme than is my custom theme)
Thanks in advance for your help!
A: The problem with your code is that you want to get current user to early.
wp_get_current_user is using global current_user variable.
But this variable isn’t set from the beginning.
And if you want to use this function straight in the script file, then it’s to early.
You should wait for init action to get current user.
require($_SERVER['DOCUMENT_ROOT'].'/wp-config.php');
require($_SERVER['DOCUMENT_ROOT'].'/wp-load.php');
add_action( 'init', function() {
$current_user = wp_get_current_user();
var_dump($current_user->ID);
var_dump($current_user->display_name);
});
| wordpress | {
"language": "en",
"length": 185,
"provenance": "stackexchange_00019.jsonl.gz:492309",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/326845"
} | [
0.06793212890625,
-0.0086212158203125,
-0.011383056640625,
-0.06951904296875,
0.01169586181640625,
-0.02667236328125,
0.022552490234375,
0.014434814453125,
0.0008702278137207031,
0.03369140625,
-0.01216888427734375,
-0.0030422210693359375,
-0.0203094482421875,
-0.01253509521484375,
-0.0179443359375,
-0.0261993408203125,
0.0287933349609375,
-0.019439697265625,
0.0272369384765625,
-0.00424957275390625,
-0.0134735107421875,
0.02008056640625,
0.037445068359375,
0.027099609375,
0.03173828125,
-0.060150146484375,
0.036102294921875,
0.0031986236572265625,
0.0172271728515625,
-0.0158538818359375,
0.01788330078125,
-0.0095672607421875,
0.00008231401443481445,
0.0472412109375,
-0.010589599609375,
0.016265869140625,
0.01557159423828125,
0.01287841796875,
0.03265380859375,
0.021820068359375,
0.0189361572265625,
0.00711822509765625,
-0.033477783203125,
0.043304443359375,
-0.037078857421875,
-0.0828857421875,
0.028045654296875,
-0.0024509429931640625,
0.002681732177734375,
0.053192138671875,
0.021240234375,
0.0203094482421875,
0.01995849609375,
-0.017425537109375,
0.00914764404296875,
0.01010894775390625,
0.005970001220703125,
0.004856109619140625,
0.049713134765625,
-0.0291748046875,
-0.042449951171875,
-0.03546142578125,
0.041412353515625,
-0.01885986328125,
0.00815582275390625,
-0.0029354095458984375,
0.030120849609375,
0.0295867919921875,
-0.0056304931640625,
-0.0153961181640625,
-0.007511138916015625,
0.00130462646484375,
-0.007526397705078125,
0.007404327392578125,
-0.04486083984375,
-0.02825927734375,
0.037322998046875,
-0.01336669921875,
-0.0023975372314453125,
0.007110595703125,
-0.07977294921875,
-0.01309967041015625,
-0.10772705078125,
0.0226593017578125,
-0.023040771484375,
0.0408935546875,
-0.034576416015625,
-0.01013946533203125,
-0.00643157958984375,
-0.01007080078125,
-0.018096923828125,
0.045623779296875,
0.006214141845703125,
-0.0340576171875,
-0.044677734375,
-0.03955078125,
0.033477783203125,
0.077880859375,
-0.0246429443359375,
-0.0105133056640625,
-0.022674560546875,
-0.0091705322265625,
-0.031890869140625,
-0.024627685546875,
0.0024127960205078125,
0.05279541015625,
-0.0021686553955078125,
0.029449462890625,
0.00974273681640625,
0.02264404296875,
0.0267333984375,
-0.0157470703125,
0.0098876953125,
-0.038665771484375,
-0.014190673828125,
0.03515625,
0.0027141571044921875,
-0.01229095458984375,
0.015838623046875,
0.003170013427734375,
-0.0013580322265625,
0.031829833984375,
-0.02166748046875,
-0.008209228515625,
0.0173492431640625,
-0.002941131591796875,
-0.007495880126953125,
-0.01442718505859375,
-0.04302978515625,
0.04534912109375,
-0.03594970703125,
0.0069122314453125,
0.05828857421875,
0.018218994140625,
-0.00688934326171875,
-0.0300140380859375,
0.0281219482421875,
-0.00848388671875,
0.0009870529174804688,
0.0254974365234375,
-0.01812744140625,
-0.04736328125,
-0.007503509521484375,
-0.016845703125,
-0.006206512451171875,
0.03692626953125,
0.01666259765625,
-0.01154327392578125,
-0.0151519775390625,
-0.041595458984375,
-0.0031681060791015625,
-0.0146942138671875,
-0.0253143310546875,
0.032684326171875,
0.06829833984375,
0.032135009765625,
0.0297393798828125,
-0.00836944580078125,
0.022216796875,
0.030426025390625,
0.038421630859375,
-0.0192108154296875,
-0.027923583984375,
-0.007965087890625,
-0.049346923828125,
0.00437164306640625,
-0.01678466796875,
-0.004669189453125,
0.023284912109375,
0.021514892578125,
-0.004222869873046875,
0.0106658935546875,
0.037811279296875,
0.047821044921875,
0.0139923095703125,
0.014434814453125,
-0.037506103515625,
0.04266357421875,
0.0408935546875,
0.0274658203125,
0.01107025146484375,
-0.022491455078125,
0.055450439453125,
0.005634307861328125,
-0.006595611572265625,
-0.01015472412109375,
-0.0020580291748046875,
0.00047135353088378906,
0.0224761962890625,
0.0094451904296875,
0.002307891845703125,
0.0222625732421875,
-0.04425048828125,
0.03399658203125,
-0.004955291748046875,
-0.010284423828125,
-0.01206207275390625,
0.0035610198974609375,
-0.02001953125,
0.009063720703125,
0.034759521484375,
-0.0276641845703125,
0.018707275390625,
-0.047760009765625,
-0.0947265625,
-0.0060272216796875,
-0.03778076171875,
0.046661376953125,
-0.0083770751953125,
-0.02191162109375,
0.00797271728515625,
-0.0288543701171875,
0.003917694091796875,
-0.02606201171875,
-0.0272674560546875,
0.027008056640625,
-0.0221099853515625,
0.084716796875,
0.004940032958984375,
0.06982421875,
-0.0024890899658203125,
-0.031768798828125,
0.00957489013671875,
-0.0196685791015625,
0.0194244384765625,
-0.004856109619140625,
-0.026123046875,
-0.0158538818359375,
0.0244598388671875,
-0.0104217529296875,
0.0330810546875,
0.0362548828125,
-0.015625,
-0.0023479461669921875,
-0.04217529296875,
-0.015289306640625,
-0.00817108154296875,
-0.016265869140625,
0.0022411346435546875,
0.033050537109375,
0.03692626953125,
0.029327392578125,
0.01047515869140625,
0.0119781494140625,
0.025634765625,
-0.048492431640625,
0.0195465087890625,
-0.0253448486328125,
0.0191497802734375,
0.0250091552734375,
0.01183319091796875,
-0.005840301513671875,
0.015869140625,
-0.057403564453125,
0.0299224853515625,
0.03509521484375,
-0.0199737548828125,
0.0018110275268554688,
-0.03472900390625,
0.011138916015625,
-0.008544921875,
-0.03857421875,
-0.00328826904296875,
-0.0256500244140625,
-0.0004987716674804688,
0.0020465850830078125,
0.0007872581481933594,
-0.004604339599609375,
-0.0235137939453125,
-0.010833740234375,
0.023162841796875,
0.0018434524536132812,
-0.014678955078125,
-0.0173492431640625,
-0.00827789306640625,
-0.006256103515625,
-0.0322265625,
0.030426025390625,
-0.003307342529296875,
-0.0287017822265625,
-0.007610321044921875,
-0.0024890899658203125,
-0.003170013427734375,
0.0078582763671875,
0.006717681884765625,
-0.0196380615234375,
0.0285797119140625,
0.0426025390625,
0.04473876953125,
-0.0033931732177734375,
0.031341552734375,
0.0020751953125,
-0.0452880859375,
0.0810546875,
-0.04718017578125,
-0.0245361328125,
0.022064208984375,
-0.0218048095703125,
0.017852783203125,
-0.0251312255859375,
0.0821533203125,
0.053070068359375,
-0.0006856918334960938,
0.002750396728515625,
-0.0006585121154785156,
-0.01526641845703125,
-0.0012187957763671875,
0.004314422607421875,
0.0074920654296875,
-0.027099609375,
-0.0012216567993164062,
0.0430908203125,
0.0207061767578125,
0.054443359375,
-0.0189208984375,
-0.03839111328125,
-0.0189056396484375,
0.012298583984375,
-0.0587158203125,
-0.0631103515625,
-0.0225372314453125,
-0.10125732421875,
0.0127105712890625,
-0.03778076171875,
-0.045562744140625,
0.001007080078125,
0.0015916824340820312,
0.00946044921875,
-0.00794219970703125,
-0.04473876953125,
-0.0310516357421875,
-0.04876708984375,
-0.0626220703125,
0.010406494140625,
0.00673675537109375,
0.0013408660888671875,
-0.0027599334716796875,
0.031341552734375,
0.0011529922485351562,
-0.032989501953125,
-0.0177001953125,
0.017242431640625,
-0.006397247314453125,
-0.038330078125,
0.01277923583984375,
-0.01422119140625,
0.0241241455078125,
0.00911712646484375,
-0.0124053955078125,
-0.000568389892578125,
-0.007053375244140625,
-0.04193115234375,
0.0118560791015625,
-0.036102294921875,
0.01161956787109375,
0.07635498046875,
-0.031494140625,
-0.014434814453125,
0.0594482421875,
-0.050018310546875,
0.00370025634765625,
-0.00298309326171875,
-0.013336181640625,
0.0501708984375,
0.007068634033203125,
-0.0372314453125,
0.0117645263671875,
0.00385284423828125,
-0.011322021484375,
-0.0033721923828125,
-0.01001739501953125,
-0.0153961181640625,
0.0286102294921875,
0.01001739501953125,
0.003276824951171875,
0.0159759521484375,
0.0263824462890625,
-0.0125732421875,
0.005062103271484375,
-0.0016984939575195312,
0.00916290283203125,
-0.006656646728515625,
-0.0252532958984375,
-0.04315185546875,
-0.0596923828125,
0.0709228515625,
0.0291900634765625,
0.0116119384765625,
-0.032806396484375,
-0.040283203125,
-0.00011354684829711914,
0.101318359375,
0.00152587890625,
-0.0130157470703125,
0.037628173828125,
0.01403045654296875,
-0.0711669921875,
0.00811004638671875,
-0.08953857421875,
-0.003082275390625,
-0.04058837890625,
-0.0006175041198730469,
-0.0126800537109375,
-0.0026950836181640625,
-0.00620269775390625,
0.0100555419921875,
-0.0203704833984375,
-0.02984619140625,
0.0256805419921875,
-0.04736328125,
0.02777099609375,
0.0088348388671875,
-0.003009796142578125,
-0.01363372802734375,
0.0032024383544921875,
-0.046630859375,
-0.060272216796875,
-0.003475189208984375,
-0.03887939453125,
0.0550537109375,
0.0296173095703125,
0.005016326904296875,
-0.0323486328125,
0.01934814453125,
0.00296783447265625,
-0.019378662109375,
0.0279693603515625,
-0.00180816650390625,
0.04925537109375,
0.010955810546875,
0.0032367706298828125,
-0.00685882568359375,
-0.0238037109375,
-0.01497650146484375,
-0.00881195068359375,
-0.0226898193359375,
-0.04669189453125,
-0.04693603515625,
-0.036529541015625,
-0.0174560546875,
-0.03924560546875,
-0.0247039794921875,
0.01369476318359375,
0.04644775390625,
-0.0045623779296875,
0.03973388671875,
-0.031158447265625,
-0.049652099609375,
0.049713134765625,
-0.0017108917236328125,
-0.02276611328125,
-0.013580322265625,
0.06695556640625,
0.026519775390625,
-0.0313720703125,
0.0224761962890625,
-0.0096588134765625,
0.032196044921875,
-0.017791748046875,
0.057098388671875,
0.03961181640625,
-0.0293121337890625,
0.048614501953125,
0.0225677490234375,
0.035736083984375,
0.0025539398193359375,
0.031097412109375,
-0.0015010833740234375,
-0.0189361572265625,
0.0277557373046875,
0.0243072509765625,
-0.055938720703125,
-0.015045166015625,
-0.0212249755859375,
-0.0204010009765625,
0.0323486328125,
0.033050537109375,
-0.0350341796875,
0.03326416015625,
-0.009033203125,
-0.054229736328125,
0.0117034912109375,
-0.04302978515625,
0.0335693359375,
0.008453369140625,
0.00824737548828125,
0.04010009765625,
0.02337646484375,
-0.0102691650390625,
-0.0026721954345703125,
-0.009918212890625,
0.009429931640625,
0.018951416015625,
-0.0147552490234375,
0.0014524459838867188,
0.00811767578125,
-0.0244903564453125,
0.09429931640625,
-0.001987457275390625,
-0.053680419921875,
0.02301025390625,
-0.0345458984375,
0.0167694091796875,
0.00946044921875,
-0.00760650634765625,
0.05224609375,
0.0291900634765625,
-0.039886474609375,
-0.01824951171875,
-0.0440673828125,
0.01194000244140625,
-0.056243896484375,
0.022705078125,
0.008514404296875,
0.00726318359375,
-0.0286712646484375,
0.09796142578125,
0.03900146484375,
0.036163330078125,
-0.030181884765625,
0.0116119384765625,
0.0219573974609375,
0.0175628662109375,
0.01971435546875,
0.00559234619140625,
0.004150390625,
-0.008148193359375,
0.0263671875,
-0.014556884765625,
-0.01629638671875,
0.01557159423828125,
0.0228424072265625,
-0.024810791015625,
-0.01169586181640625,
0.02471923828125,
-0.0020294189453125,
-0.010894775390625,
0.0623779296875,
0.0213775634765625,
-0.05548095703125,
-0.0340576171875,
0.01226043701171875,
0.0406494140625,
-0.02557373046875,
-0.0113677978515625,
0.01800537109375,
-0.04034423828125,
-0.00176239013671875,
0.007793426513671875,
-0.0160064697265625,
-0.023162841796875,
-0.025848388671875,
-0.04730224609375,
-0.026702880859375,
0.0137786865234375,
-0.0130462646484375,
-0.00830078125,
-0.032501220703125,
-0.0567626953125,
0.058349609375,
0.0155181884765625,
0.01093292236328125,
-0.06005859375,
0.006923675537109375,
-0.05908203125,
-0.0290679931640625,
0.059173583984375,
0.01110076904296875,
-0.035858154296875,
0.01715087890625,
-0.04669189453125,
0.006103515625,
0.02215576171875,
-0.042694091796875,
-0.00690460205078125,
-0.040008544921875,
0.0162353515625,
0.01824951171875,
0.0164794921875,
-0.00406646728515625,
-0.0212249755859375,
0.0184173583984375,
0.018707275390625,
0.07037353515625,
-0.00934600830078125,
0.06939697265625,
0.00876617431640625,
0.01471710205078125,
0.021881103515625,
0.059112548828125,
-0.0239715576171875,
-0.02679443359375,
0.034759521484375,
0.017486572265625,
-0.040985107421875,
-0.04510498046875,
0.0027523040771484375,
-0.04815673828125,
0.03973388671875,
-0.0242767333984375,
-0.003742218017578125,
0.034912109375,
0.021484375,
-0.00437164306640625,
-0.0421142578125,
0.07470703125,
-0.037994384765625,
0.040252685546875,
-0.0169830322265625,
-0.03326416015625,
-0.0089569091796875,
-0.0184326171875,
0.007549285888671875,
0.0257415771484375,
-0.0231781005859375,
0.0170135498046875,
-0.04571533203125,
0.049835205078125,
0.08917236328125,
-0.0013599395751953125,
0.052581787109375,
0.0160675048828125,
0.0221405029296875,
0.0433349609375,
0.047271728515625,
-0.0650634765625,
-0.045501708984375,
0.0340576171875,
0.02081298828125,
-0.03399658203125,
0.01168060302734375,
-0.0195770263671875,
0.0211029052734375,
0.061004638671875,
0.06878662109375,
-0.08416748046875,
0.0183563232421875,
0.004787445068359375,
-0.00945281982421875,
0.0241546630859375,
-0.0028839111328125,
-0.00397491455078125,
-0.0228424072265625,
0.060638427734375,
-0.022705078125,
-0.007236480712890625,
0.031982421875,
-0.0118560791015625,
-0.01053619384765625,
-0.023223876953125,
0.046600341796875,
-0.0010080337524414062,
0.0011749267578125,
0.008880615234375,
-0.0474853515625,
0.024169921875,
0.00882720947265625,
0.035888671875,
0.00412750244140625,
-0.01415252685546875,
-0.06085205078125,
0.00201416015625,
-0.0051422119140625,
-0.050689697265625,
0.032379150390625,
-0.0263824462890625,
0.049468994140625,
0.03961181640625,
-0.006916046142578125,
0.0162353515625,
-0.001552581787109375,
0.016082763671875,
-0.006084442138671875,
-0.046844482421875,
0.0109100341796875,
0.05596923828125,
-0.056488037109375,
0.0212249755859375,
0.007354736328125,
-0.0110321044921875,
-0.00884246826171875,
-0.025970458984375,
0.07537841796875,
-0.043853759765625,
-0.0112152099609375,
0.02716064453125,
0.003284454345703125,
-0.0234832763671875,
0.003376007080078125,
0.0180511474609375,
-0.057830810546875,
-0.040771484375,
0.0196685791015625,
-0.0350341796875,
0.0181427001953125,
0.01708984375,
-0.04241943359375,
0.06658935546875,
-0.052490234375,
0.0298004150390625,
0.0240631103515625,
0.021209716796875,
0.017242431640625,
0.01473236083984375,
-0.057159423828125,
0.06195068359375,
0.01178741455078125,
0.06353759765625,
-0.0767822265625,
-0.0188446044921875,
0.002628326416015625,
0.025848388671875,
0.020294189453125,
0.02020263671875,
-0.005321502685546875,
-0.02618408203125,
-0.01416015625,
-0.003726959228515625,
-0.0289764404296875,
0.041351318359375,
0.033111572265625,
0.034088134765625,
0.0113677978515625,
-0.014190673828125,
0.039031982421875,
-0.047210693359375,
-0.029144287109375,
0.047454833984375,
0.00513458251953125,
-0.0274505615234375,
-0.02239990234375,
0.031280517578125,
-0.0865478515625,
0.01103973388671875,
0.041351318359375,
0.020050048828125,
-0.0051727294921875,
0.043121337890625,
0.0301666259765625,
-0.009918212890625,
-0.014556884765625,
-0.0161590576171875,
0.03375244140625,
0.006908416748046875,
-0.019622802734375,
0.040924072265625,
0.0261383056640625,
-0.01776123046875,
-0.0200958251953125,
-0.00490570068359375,
-0.0004470348358154297,
-0.01558685302734375,
0.0440673828125,
0.04718017578125,
0.023773193359375,
-0.01055908203125,
0.0200347900390625,
0.046783447265625,
0.06396484375,
-0.046661376953125,
-0.02423095703125,
0.0080413818359375,
-0.005184173583984375,
0.00757598876953125,
0.0042266845703125,
0.031494140625,
0.03997802734375,
0.043243408203125,
-0.0350341796875,
0.00830841064453125,
0.0242919921875,
0.02215576171875,
-0.00554656982421875,
-0.00112152099609375,
-0.037933349609375,
0.005100250244140625,
-0.0248260498046875,
-0.00894927978515625,
-0.0046539306640625,
0.00420379638671875,
0.0036487579345703125,
0.0125274658203125,
0.034820556640625,
0.003025054931640625,
0.02032470703125,
-0.0014142990112304688,
-0.010650634765625,
-0.01499176025390625,
0.012481689453125,
-0.016815185546875,
-0.00826263427734375,
0.017822265625,
0.01436614990234375,
-0.0194549560546875,
0.0076904296875,
-0.01007843017578125,
-0.03387451171875,
-0.01568603515625,
0.0004334449768066406,
-0.016204833984375,
-0.0099334716796875,
0.005706787109375,
-0.00018310546875,
0.0055389404296875,
-0.00467681884765625,
-0.00811767578125,
0.032745361328125,
0.01442718505859375,
-0.04656982421875,
0.03692626953125,
-0.01512908935546875,
-0.01334381103515625,
0.0235443115234375,
-0.012939453125,
0.038787841796875,
-0.0100555419921875,
-0.054443359375,
0.0203094482421875,
-0.09539794921875,
-0.004741668701171875,
0.01898193359375,
0.022003173828125,
0.023101806640625,
0.00594329833984375,
0.0263671875,
-0.01177215576171875,
0.00890350341796875,
0.0025119781494140625,
0.01036834716796875,
-0.00921630859375,
0.022552490234375,
0.00447845458984375,
-0.0296630859375,
-0.0174713134765625,
-0.00910186767578125,
0.01438140869140625,
0.0513916015625,
0.0111083984375,
0.01184844970703125,
0.0284576416015625,
-0.018035888671875,
0.0128936767578125,
-0.0537109375,
-0.042266845703125,
0.044708251953125,
-0.025390625,
-0.0155792236328125,
0.0101776123046875,
-0.08447265625,
0.0338134765625,
-0.0027313232421875,
0.0277557373046875,
0.029754638671875,
-0.0146942138671875,
0.022857666015625,
0.031463623046875,
-0.0076904296875,
-0.0290985107421875,
-0.05181884765625,
-0.037750244140625,
0.0061798095703125,
0.018798828125,
0.0018901824951171875,
-0.0285491943359375,
0.006900787353515625,
0.0224456787109375,
-0.042327880859375,
-0.004955291748046875,
0.0138702392578125,
-0.01114654541015625,
0.026397705078125,
0.021148681640625,
-0.007568359375,
-0.038909912109375,
-0.035797119140625,
-0.0018205642700195312,
-0.0019969940185546875,
-0.01483154296875,
-0.02886962890625,
-0.001678466796875,
0.0220947265625,
0.0220489501953125,
0.05035400390625,
-0.00933837890625,
0.00988006591796875,
0.0254058837890625,
-0.005733489990234375,
0.002155303955078125,
-0.11846923828125,
-0.0240325927734375,
-0.049041748046875,
-0.0258636474609375,
0.04486083984375,
-0.052093505859375,
-0.019439697265625,
-0.05035400390625,
0.02203369140625,
0.007610321044921875,
0.0020904541015625,
-0.07171630859375,
0.03466796875,
-0.00933074951171875,
0.058197021484375,
-0.036346435546875,
-0.0180511474609375,
0.0030574798583984375,
0.033782958984375,
-0.0207061767578125,
0.0201263427734375,
-0.0257415771484375,
-0.0292510986328125,
-0.0032825469970703125,
0.01244354248046875,
0.0394287109375,
0.02191162109375,
-0.0401611328125,
0.03521728515625,
-0.048095703125,
0.0811767578125,
-0.0830078125,
-0.0108642578125,
0.0019683837890625,
-0.001506805419921875,
0.00794219970703125,
-0.017364501953125,
0.007720947265625,
-0.01418304443359375,
-0.0129241943359375,
-0.0250396728515625,
0.002300262451171875,
0.0203094482421875,
-0.038543701171875,
-0.058624267578125,
0.004535675048828125,
-0.00514984130859375,
-0.051300048828125,
-0.047698974609375,
0.026763916015625,
0.007335662841796875,
-0.017059326171875,
-0.00907135009765625,
-0.0596923828125,
-0.0207366943359375,
0.026641845703125,
0.0280609130859375,
0.0024166107177734375,
0.06201171875,
0.0226593017578125,
-0.056976318359375,
-0.00722503662109375,
-0.02874755859375,
0.00492095947265625,
-0.01470947265625,
0.0121917724609375,
0.0227203369140625,
0.0634765625,
-0.0012454986572265625,
0.02685546875,
-0.00428009033203125,
-0.01006317138671875,
-0.03179931640625,
-0.0513916015625,
-0.02105712890625,
-0.031646728515625,
0.071533203125,
0.02862548828125,
0.0018014907836914062,
-0.00984954833984375,
-0.0384521484375,
-0.0155487060546875,
-0.05352783203125,
0.005645751953125,
0.034210205078125,
-0.0689697265625,
0.0231781005859375,
0.0174407958984375,
-0.040496826171875,
-0.0229339599609375,
-0.0034236907958984375,
-0.07489013671875,
0.0249786376953125,
-0.01456451416015625,
0.005199432373046875,
-0.0256805419921875,
-0.0198516845703125,
0.0594482421875,
-0.046661376953125,
-0.033966064453125,
0.029266357421875,
0.003910064697265625,
0.00817108154296875,
0.0135650634765625,
-0.0205230712890625,
0.036865234375,
-0.02984619140625,
-0.00421905517578125,
0.01251220703125,
0.0271759033203125,
-0.0011358261108398438,
0.004932403564453125,
0.0050811767578125,
0.01213836669921875,
-0.03277587890625,
0.0184783935546875,
0.04412841796875,
0.043060302734375,
-0.004581451416015625,
0.053314208984375,
-0.00522613525390625,
0.007537841796875,
-0.0294342041015625,
0.056793212890625,
-0.0147857666015625,
-0.0224151611328125,
0.01140594482421875,
-0.03070068359375,
-0.01461029052734375,
0.0006651878356933594,
-0.029388427734375,
-0.04949951171875,
0.0167083740234375,
0.0016794204711914062,
0.0024814605712890625,
0.01641845703125
] |
63668e01cf7017fdb77b488a66ade66fb559f6fa | Wordpress Stackexchange
Q: How to find out what blocks are added by a plugin I am creating a plugin, which adds a number of blocks defined by JS/PHP as per Gutenberg documentation. I want to display these block names on an admin page.
Is there a hook or function I can use which will let me know which blocks are being defined in my plugin from the register_block_type function, or will I have to create list and update it manually?
I am currently looping through the below and looking for my my-block/in the list and then displaying, is there a better or more accurate way?
$block_types = WP_Block_Type_Registry::get_instance()->get_all_registered();
| Q: How to find out what blocks are added by a plugin I am creating a plugin, which adds a number of blocks defined by JS/PHP as per Gutenberg documentation. I want to display these block names on an admin page.
Is there a hook or function I can use which will let me know which blocks are being defined in my plugin from the register_block_type function, or will I have to create list and update it manually?
I am currently looping through the below and looking for my my-block/in the list and then displaying, is there a better or more accurate way?
$block_types = WP_Block_Type_Registry::get_instance()->get_all_registered();
| wordpress | {
"language": "en",
"length": 106,
"provenance": "stackexchange_00019.jsonl.gz:492337",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/326930"
} | [
-0.021270751953125,
0.030487060546875,
-0.0750732421875,
-0.0297393798828125,
0.025909423828125,
-0.0311431884765625,
-0.0288238525390625,
-0.002056121826171875,
-0.05450439453125,
0.0145111083984375,
-0.00768280029296875,
0.0025653839111328125,
-0.058563232421875,
-0.023956298828125,
-0.007106781005859375,
-0.06573486328125,
0.057952880859375,
-0.0180206298828125,
0.0335693359375,
0.0078582763671875,
-0.009429931640625,
0.0384521484375,
0.022064208984375,
0.0972900390625,
0.0246429443359375,
-0.080078125,
0.1058349609375,
-0.0291900634765625,
0.06427001953125,
-0.01161956787109375,
0.04547119140625,
-0.038818359375,
0.005397796630859375,
0.011383056640625,
0.01010894775390625,
-0.004825592041015625,
0.046600341796875,
-0.0147857666015625,
0.01358795166015625,
0.02679443359375,
0.0298004150390625,
-0.0222625732421875,
0.0174560546875,
-0.0260772705078125,
0.00597381591796875,
-0.03155517578125,
0.03851318359375,
-0.027374267578125,
0.006282806396484375,
0.0194244384765625,
0.01512908935546875,
-0.016387939453125,
0.030120849609375,
-0.0275421142578125,
-0.005584716796875,
-0.01220703125,
-0.0263214111328125,
0.05426025390625,
0.01275634765625,
0.0537109375,
-0.02227783203125,
0.039276123046875,
-0.0159454345703125,
-0.058319091796875,
-0.004596710205078125,
-0.006893157958984375,
0.0216522216796875,
0.0230560302734375,
-0.047515869140625,
-0.02581787109375,
0.0259857177734375,
-0.012603759765625,
-0.0173187255859375,
0.0165252685546875,
-0.0167999267578125,
-0.042633056640625,
0.0288238525390625,
-0.034210205078125,
0.006084442138671875,
0.0260162353515625,
0.0171966552734375,
-0.0256805419921875,
-0.007007598876953125,
0.034454345703125,
-0.0004088878631591797,
0.06439208984375,
-0.01422119140625,
-0.0284423828125,
-0.007354736328125,
-0.03131103515625,
-0.010650634765625,
-0.0003151893615722656,
-0.02001953125,
-0.000637054443359375,
-0.014434814453125,
-0.026123046875,
0.0296630859375,
0.01306915283203125,
-0.0075531005859375,
-0.011322021484375,
-0.0238800048828125,
-0.025421142578125,
-0.015411376953125,
-0.01139068603515625,
0.02215576171875,
0.055145263671875,
-0.03167724609375,
-0.00537109375,
0.05108642578125,
0.032012939453125,
0.019317626953125,
-0.0039825439453125,
-0.00835418701171875,
-0.00933074951171875,
-0.0190887451171875,
0.01386260986328125,
-0.035888671875,
0.0055999755859375,
-0.0156707763671875,
0.0062408447265625,
0.0296173095703125,
0.05572509765625,
0.021331787109375,
0.0053863525390625,
-0.040130615234375,
-0.00911712646484375,
-0.0032558441162109375,
-0.083984375,
-0.031402587890625,
-0.0027408599853515625,
-0.00909423828125,
0.028228759765625,
0.039306640625,
0.0147552490234375,
-0.0093841552734375,
-0.0058441162109375,
0.01509857177734375,
0.02459716796875,
-0.00011819601058959961,
-0.016845703125,
-0.01302337646484375,
-0.00913238525390625,
0.0025196075439453125,
-0.03350830078125,
0.03558349609375,
-0.0005393028259277344,
0.0048828125,
0.0169830322265625,
0.0090484619140625,
-0.039154052734375,
0.057037353515625,
-0.06103515625,
0.0347900390625,
0.0255279541015625,
0.024688720703125,
0.025543212890625,
0.07183837890625,
-0.0176544189453125,
-0.05999755859375,
-0.024017333984375,
0.0256805419921875,
-0.0147857666015625,
-0.019317626953125,
-0.0031223297119140625,
-0.02587890625,
0.0253143310546875,
-0.026580810546875,
0.007701873779296875,
0.020233154296875,
-0.0299530029296875,
0.0272369384765625,
-0.01094818115234375,
0.049560546875,
-0.005340576171875,
-0.0171661376953125,
0.0115203857421875,
0.0121612548828125,
0.00901031494140625,
0.011749267578125,
0.0238037109375,
-0.0154266357421875,
-0.0276336669921875,
0.03765869140625,
-0.02288818359375,
-0.06195068359375,
0.0311279296875,
-0.0103607177734375,
0.025909423828125,
0.03826904296875,
-0.01528167724609375,
0.02587890625,
0.007762908935546875,
-0.036163330078125,
0.0002834796905517578,
0.005584716796875,
0.0251617431640625,
-0.006252288818359375,
0.0295257568359375,
0.0007791519165039062,
-0.044219970703125,
0.003082275390625,
-0.0271453857421875,
0.0279998779296875,
-0.020965576171875,
-0.052886962890625,
-0.00876617431640625,
-0.0220184326171875,
0.030517578125,
0.0193023681640625,
0.0022258758544921875,
-0.00689697265625,
-0.01413726806640625,
-0.01316070556640625,
-0.02880859375,
-0.0211639404296875,
0.056640625,
-0.026275634765625,
0.0229339599609375,
0.005756378173828125,
0.023834228515625,
0.0278167724609375,
-0.0086822509765625,
0.01007080078125,
-0.0019893646240234375,
0.048370361328125,
0.05059814453125,
-0.0399169921875,
0.004192352294921875,
0.01302337646484375,
0.041778564453125,
-0.091552734375,
0.0268096923828125,
-0.0006289482116699219,
0.0335693359375,
0.00919342041015625,
-0.01100921630859375,
0.034820556640625,
-0.08770751953125,
0.033172607421875,
0.036895751953125,
0.03546142578125,
-0.003753662109375,
-0.0129547119140625,
-0.0190582275390625,
0.0290679931640625,
-0.044769287109375,
0.015716552734375,
-0.01140594482421875,
-0.0009369850158691406,
0.04376220703125,
-0.00473785400390625,
0.038177490234375,
0.01102447509765625,
0.017852783203125,
0.01513671875,
0.028717041015625,
0.005275726318359375,
0.0049285888671875,
-0.01226806640625,
0.0267791748046875,
-0.01537322998046875,
-0.01763916015625,
-0.0105438232421875,
-0.01340484619140625,
0.08062744140625,
0.011993408203125,
0.047821044921875,
0.034423828125,
-0.046600341796875,
0.034423828125,
0.00966644287109375,
-0.00021648406982421875,
-0.005458831787109375,
0.00826263427734375,
0.043182373046875,
0.018524169921875,
-0.07659912109375,
0.0171051025390625,
0.034759521484375,
0.01044464111328125,
-0.0350341796875,
-0.01153564453125,
-0.05194091796875,
-0.01397705078125,
-0.0277862548828125,
-0.05108642578125,
0.0121612548828125,
0.004337310791015625,
-0.039642333984375,
-0.0059051513671875,
0.01708984375,
0.0281982421875,
-0.0242919921875,
-0.0021038055419921875,
-0.005672454833984375,
-0.003940582275390625,
0.01126861572265625,
-0.04095458984375,
0.042449951171875,
-0.036956787109375,
0.045989990234375,
0.062347412109375,
-0.01187896728515625,
0.004009246826171875,
0.00640106201171875,
-0.0391845703125,
0.0205841064453125,
-0.01617431640625,
-0.0302886962890625,
-0.0126190185546875,
-0.057830810546875,
0.0174713134765625,
0.002376556396484375,
0.020355224609375,
-0.0198516845703125,
-0.056640625,
-0.013214111328125,
-0.00492095947265625,
-0.05413818359375,
0.007465362548828125,
-0.042266845703125,
-0.047637939453125,
-0.0176239013671875,
-0.0201263427734375,
-0.0333251953125,
0.021270751953125,
-0.0011262893676757812,
0.003170013427734375,
0.00017881393432617188,
-0.039886474609375,
-0.06793212890625,
-0.07501220703125,
-0.0733642578125,
0.005428314208984375,
-0.006992340087890625,
0.01267242431640625,
0.004901885986328125,
0.0828857421875,
0.0033111572265625,
-0.058685302734375,
-0.0109100341796875,
-0.052093505859375,
-0.0203704833984375,
0.0272979736328125,
0.004665374755859375,
-0.034149169921875,
0.014129638671875,
0.0181427001953125,
-0.069580078125,
-0.000339508056640625,
0.0313720703125,
-0.01837158203125,
0.0020618438720703125,
-0.00815582275390625,
0.0190887451171875,
-0.0245513916015625,
-0.0168609619140625,
-0.0216827392578125,
-0.01959228515625,
-0.061492919921875,
0.010284423828125,
0.0305328369140625,
0.0131988525390625,
0.0253143310546875,
-0.043609619140625,
-0.031494140625,
0.039398193359375,
0.01235198974609375,
0.0095367431640625,
0.005954742431640625,
0.003086090087890625,
-0.0265655517578125,
0.0284881591796875,
-0.01354217529296875,
0.00974273681640625,
-0.0233001708984375,
0.00815582275390625,
-0.007740020751953125,
-0.00984954833984375,
-0.0223236083984375,
0.0216522216796875,
-0.0005064010620117188,
0.018890380859375,
-0.032073974609375,
-0.01395416259765625,
0.020538330078125,
-0.0243988037109375,
0.0250396728515625,
-0.02362060546875,
-0.0131072998046875,
-0.01654052734375,
0.052978515625,
0.02655029296875,
-0.0210113525390625,
-0.002105712890625,
0.00652313232421875,
-0.029693603515625,
-0.023345947265625,
-0.0270233154296875,
-0.01397705078125,
-0.0667724609375,
0.01068115234375,
0.0020656585693359375,
-0.0438232421875,
-0.0209503173828125,
0.03155517578125,
-0.05926513671875,
-0.019378662109375,
0.034942626953125,
-0.057830810546875,
0.0161895751953125,
0.01459503173828125,
0.01248931884765625,
-0.042755126953125,
-0.02459716796875,
-0.0262451171875,
-0.051116943359375,
-0.004703521728515625,
-0.03607177734375,
0.060882568359375,
0.030181884765625,
-0.0309600830078125,
-0.0163116455078125,
0.0294036865234375,
0.0309906005859375,
0.0004982948303222656,
0.05462646484375,
0.0343017578125,
0.033447265625,
-0.0709228515625,
0.0178680419921875,
-0.07037353515625,
-0.0232696533203125,
-0.01593017578125,
-0.0215301513671875,
0.05487060546875,
0.005584716796875,
0.0159759521484375,
0.0279998779296875,
-0.0224609375,
-0.00208282470703125,
0.0031528472900390625,
-0.01221466064453125,
0.004352569580078125,
-0.0034694671630859375,
-0.00942230224609375,
0.01390838623046875,
-0.01117706298828125,
0.0224151611328125,
-0.01837158203125,
-0.00539398193359375,
0.0285186767578125,
0.0782470703125,
0.02032470703125,
-0.002689361572265625,
-0.07403564453125,
0.033111572265625,
0.03741455078125,
0.000058591365814208984,
0.052764892578125,
0.041748046875,
-0.0179901123046875,
0.0250701904296875,
0.019256591796875,
0.004756927490234375,
-0.0219879150390625,
0.02264404296875,
0.0140838623046875,
-0.0133209228515625,
-0.0006585121154785156,
0.0060882568359375,
0.0258026123046875,
0.004398345947265625,
-0.049713134765625,
0.005611419677734375,
-0.0234527587890625,
0.0267791748046875,
-0.0440673828125,
0.07952880859375,
-0.0186614990234375,
-0.0119476318359375,
0.004337310791015625,
-0.0106964111328125,
-0.003993988037109375,
0.05670166015625,
-0.0367431640625,
-0.0105743408203125,
-0.01041412353515625,
-0.009063720703125,
0.0308685302734375,
0.0301055908203125,
-0.0006570816040039062,
0.024383544921875,
0.0126800537109375,
-0.0109100341796875,
-0.007274627685546875,
0.007518768310546875,
0.00704193115234375,
-0.049957275390625,
-0.06707763671875,
-0.033203125,
-0.0260772705078125,
-0.0030231475830078125,
0.058929443359375,
0.0093994140625,
0.032196044921875,
0.04095458984375,
0.007617950439453125,
0.021514892578125,
0.0322265625,
0.003253936767578125,
-0.01549530029296875,
0.0220794677734375,
-0.019195556640625,
-0.004161834716796875,
-0.037322998046875,
0.0703125,
-0.03167724609375,
0.0154876708984375,
0.0142059326171875,
0.0169677734375,
0.0061798095703125,
0.03338623046875,
0.0224761962890625,
-0.00572967529296875,
0.007442474365234375,
-0.01126861572265625,
-0.01020050048828125,
-0.01556396484375,
0.009918212890625,
-0.016845703125,
0.0179290771484375,
-0.01317596435546875,
-0.0213623046875,
0.03973388671875,
-0.029144287109375,
-0.00942230224609375,
0.01556396484375,
-0.0257415771484375,
-0.0138397216796875,
-0.037628173828125,
-0.0018062591552734375,
0.0692138671875,
0.0010538101196289062,
-0.006900787353515625,
-0.01465606689453125,
-0.01099395751953125,
-0.0100555419921875,
-0.01320648193359375,
-0.0614013671875,
0.0116119384765625,
0.0283966064453125,
-0.0706787109375,
-0.0229644775390625,
0.012939453125,
-0.06396484375,
-0.0391845703125,
-0.00994110107421875,
-0.01477813720703125,
0.0222930908203125,
-0.040435791015625,
0.038330078125,
-0.0014867782592773438,
-0.00461578369140625,
-0.0215301513671875,
0.032470703125,
0.034332275390625,
0.03558349609375,
-0.05035400390625,
-0.031768798828125,
-0.049835205078125,
-0.0125732421875,
-0.0221405029296875,
-0.0261077880859375,
-0.00984954833984375,
0.035369873046875,
-0.001995086669921875,
0.0182342529296875,
-0.03424072265625,
-0.021209716796875,
0.048004150390625,
0.01065826416015625,
-0.022247314453125,
0.004947662353515625,
0.0250701904296875,
0.01412200927734375,
0.00812530517578125,
0.022705078125,
0.0189666748046875,
-0.0277557373046875,
-0.0350341796875,
-0.0192413330078125,
-0.00679779052734375,
0.01556396484375,
-0.00881195068359375,
-0.00324249267578125,
0.01104736328125,
-0.038848876953125,
0.0187835693359375,
-0.00406646728515625,
-0.0131072998046875,
0.0052490234375,
0.005954742431640625,
-0.03472900390625,
0.0201568603515625,
0.028594970703125,
-0.017425537109375,
-0.00753021240234375,
-0.020599365234375,
-0.01480865478515625,
-0.0019989013671875,
-0.0174407958984375,
0.043853759765625,
0.0037975311279296875,
0.022125244140625,
-0.02679443359375,
-0.015655517578125,
0.01763916015625,
0.0273284912109375,
0.037567138671875,
0.0430908203125,
0.01003265380859375,
0.045440673828125,
0.00875091552734375,
-0.01373291015625,
0.01033782958984375,
0.042755126953125,
0.06854248046875,
0.0194091796875,
0.004573822021484375,
0.051239013671875,
-0.01544189453125,
-0.007434844970703125,
0.022430419921875,
0.0235137939453125,
-0.0653076171875,
0.0167236328125,
0.0205535888671875,
0.031951904296875,
0.01447296142578125,
0.00787353515625,
-0.0318603515625,
-0.042694091796875,
0.02105712890625,
-0.01142120361328125,
-0.0322265625,
0.00743865966796875,
0.0260162353515625,
-0.01360321044921875,
-0.023651123046875,
0.0121002197265625,
0.0233917236328125,
0.04443359375,
0.012420654296875,
-0.046661376953125,
0.0268096923828125,
-0.01275634765625,
0.00855255126953125,
0.01203155517578125,
0.0095977783203125,
-0.0130157470703125,
0.061187744140625,
-0.04095458984375,
0.01190185546875,
0.0148468017578125,
0.011199951171875,
0.00836944580078125,
0.06024169921875,
-0.01284027099609375,
0.00881195068359375,
0.038360595703125,
-0.033050537109375,
-0.035736083984375,
-0.009552001953125,
0.01239013671875,
0.0283966064453125,
-0.05511474609375,
0.026397705078125,
-0.036224365234375,
0.004634857177734375,
0.0123748779296875,
0.03173828125,
0.04302978515625,
-0.01446533203125,
-0.0172576904296875,
0.038360595703125,
0.006542205810546875,
-0.008544921875,
0.006031036376953125,
0.04949951171875,
-0.01464080810546875,
0.0198516845703125,
0.0228118896484375,
0.033172607421875,
-0.007686614990234375,
0.0379638671875,
-0.06622314453125,
0.04803466796875,
0.018707275390625,
0.0199432373046875,
0.0145416259765625,
0.011566162109375,
-0.036865234375,
-0.0292510986328125,
-0.050628662109375,
0.06341552734375,
0.01263427734375,
0.024383544921875,
-0.0750732421875,
-0.0031986236572265625,
-0.00743865966796875,
0.0176544189453125,
0.07928466796875,
0.020355224609375,
0.01473236083984375,
-0.016998291015625,
-0.0121307373046875,
-0.00777435302734375,
-0.059112548828125,
0.0235137939453125,
0.042938232421875,
-0.0135955810546875,
0.041015625,
0.0167388916015625,
0.04107666015625,
-0.04254150390625,
0.0191802978515625,
0.057586669921875,
0.0012264251708984375,
0.022735595703125,
-0.01490020751953125,
-0.0279998779296875,
-0.0064849853515625,
-0.009124755859375,
0.012237548828125,
-0.057464599609375,
0.003360748291015625,
0.03564453125,
0.0223236083984375,
-0.0164031982421875,
0.004299163818359375,
-0.0192413330078125,
0.05230712890625,
-0.014404296875,
-0.0010232925415039062,
0.0106353759765625,
0.00995635986328125,
0.00864410400390625,
-0.028228759765625,
-0.01363372802734375,
0.0197601318359375,
-0.0303497314453125,
0.03106689453125,
0.0078277587890625,
0.01120758056640625,
-0.050384521484375,
-0.0172271728515625,
0.038055419921875,
0.043792724609375,
-0.032379150390625,
-0.10638427734375,
0.018402099609375,
0.031341552734375,
0.01491546630859375,
0.0780029296875,
0.03814697265625,
-0.056732177734375,
0.0596923828125,
-0.0132598876953125,
-0.07061767578125,
-0.0216522216796875,
0.029510498046875,
-0.0055389404296875,
-0.043731689453125,
0.06365966796875,
-0.08416748046875,
-0.0550537109375,
0.031524658203125,
0.0237274169921875,
0.041778564453125,
-0.006134033203125,
0.0635986328125,
0.031707763671875,
-0.006313323974609375,
-0.03326416015625,
0.0228424072265625,
0.006801605224609375,
0.0364990234375,
-0.01019287109375,
0.0219268798828125,
0.02923583984375,
0.018951416015625,
0.0240478515625,
0.00890350341796875,
0.025238037109375,
0.0225372314453125,
0.003513336181640625,
0.00251007080078125,
0.027252197265625,
-0.01091766357421875,
-0.0272369384765625,
-0.0623779296875,
0.032073974609375,
0.01348876953125,
0.01299285888671875,
0.042755126953125,
-0.01593017578125,
0.038482666015625,
-0.0064544677734375,
0.043182373046875,
0.00876617431640625,
-0.033233642578125,
0.03753662109375,
0.005584716796875,
0.058013916015625,
0.027618408203125,
-0.090087890625,
-0.0252227783203125,
-0.03131103515625,
-0.030731201171875,
0.0478515625,
0.03607177734375,
-0.033935546875,
0.047088623046875,
0.0304412841796875,
-0.0164031982421875,
0.041473388671875,
-0.01543426513671875,
0.01313018798828125,
0.0029392242431640625,
0.01080322265625,
-0.01338958740234375,
-0.010650634765625,
-0.0136260986328125,
0.0220184326171875,
0.0164031982421875,
0.0132904052734375,
0.020721435546875,
0.006275177001953125,
0.003326416015625,
-0.00565338134765625,
-0.02532958984375,
0.0054473876953125,
-0.0023860931396484375,
-0.00583648681640625,
0.0010700225830078125,
-0.00766754150390625,
-0.003269195556640625,
-0.0662841796875,
0.00971221923828125,
0.055328369140625,
-0.006351470947265625,
0.0051116943359375,
0.03265380859375,
0.017303466796875,
-0.0245513916015625,
0.050933837890625,
-0.019805908203125,
-0.06793212890625,
-0.01491546630859375,
0.02984619140625,
-0.0220794677734375,
0.03289794921875,
0.0369873046875,
-0.0011768341064453125,
-0.01108551025390625,
-0.0369873046875,
0.00939178466796875,
-0.01519775390625,
-0.007335662841796875,
0.02813720703125,
0.00450897216796875,
-0.08453369140625,
-0.020111083984375,
-0.0210723876953125,
0.0248260498046875,
-0.02392578125,
0.0986328125,
-0.00875091552734375,
0.001842498779296875,
-0.0025177001953125,
-0.0028553009033203125,
0.040802001953125,
-0.0224456787109375,
0.021270751953125,
-0.0119476318359375,
0.01407623291015625,
0.006671905517578125,
-0.010467529296875,
-0.04718017578125,
-0.069091796875,
0.0017480850219726562,
0.01319122314453125,
-0.0240325927734375,
-0.045654296875,
-0.058441162109375,
-0.007587432861328125,
0.025634765625,
-0.00640869140625,
-0.036224365234375,
0.03240966796875,
-0.056427001953125,
0.0149993896484375,
-0.0162353515625,
0.0037403106689453125,
0.00659942626953125,
0.034332275390625,
-0.0233612060546875,
0.0042266845703125,
-0.0196685791015625,
0.007720947265625,
0.004825592041015625,
0.0142364501953125,
0.0276336669921875,
-0.041290283203125,
0.01268768310546875,
-0.00015544891357421875,
0.0307159423828125,
0.05731201171875,
0.030548095703125,
-0.002201080322265625,
0.0228729248046875,
0.00452423095703125,
-0.044952392578125,
-0.055023193359375,
0.02838134765625,
-0.050933837890625,
-0.0177001953125,
-0.02191162109375,
0.01678466796875,
0.026031494140625,
-0.0408935546875,
-0.0887451171875,
0.057403564453125,
-0.028289794921875,
-0.03668212890625,
-0.0909423828125,
0.0439453125,
0.01186370849609375,
-0.023345947265625,
-0.041778564453125,
0.0173797607421875,
0.0025920867919921875,
0.04754638671875,
0.001552581787109375,
-0.041046142578125,
0.057830810546875,
-0.03448486328125,
-0.01837158203125,
0.00586700439453125,
0.041015625,
-0.0156707763671875,
-0.0087890625,
-0.01375579833984375,
0.023223876953125,
0.02508544921875,
-0.0277557373046875,
-0.004352569580078125,
0.0195159912109375,
0.0107269287109375,
0.0122528076171875,
-0.0399169921875,
-0.039276123046875,
-0.016571044921875,
0.0574951171875,
0.0194549560546875,
0.02783203125,
-0.0287933349609375,
0.034271240234375,
0.01336669921875,
-0.046661376953125,
0.007659912109375,
0.019256591796875,
-0.02496337890625,
-0.0047149658203125,
-0.00907135009765625,
-0.0128326416015625,
-0.0204315185546875,
0.02099609375,
-0.03399658203125,
-0.01461029052734375,
-0.01059722900390625,
-0.01122283935546875,
-0.057403564453125,
0.00466156005859375,
0.0079498291015625,
-0.01508331298828125,
-0.01230621337890625,
-0.0193634033203125,
0.01242828369140625,
-0.0220184326171875,
-0.0386962890625,
-0.017364501953125,
-0.023773193359375,
-0.01165771484375,
0.032562255859375,
-0.0203399658203125,
0.03631591796875,
-0.045562744140625,
-0.00698089599609375,
-0.0005621910095214844,
0.0152740478515625,
-0.01361083984375,
0.00010251998901367188,
-0.04254150390625,
0.095947265625,
-0.002376556396484375,
0.0711669921875,
0.03759765625,
-0.0117034912109375,
-0.001323699951171875,
0.059417724609375,
0.0130615234375,
-0.05535888671875,
0.0163421630859375,
-0.05072021484375,
-0.00492095947265625,
-0.0002930164337158203,
-0.01392364501953125,
-0.051177978515625,
0.005199432373046875,
0.006839752197265625,
0.012939453125,
0.02099609375
] |
7b84be1cfad04b19defb67ecd043f6d6fb35b370 | Wordpress Stackexchange
Q: Get array of posts from the current archive page loop Classic WordPress loop (for example in archive.php) looks like this:
if ( have_posts() ) :
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', get_post_format() );
endwhile;
endif;
I want to get an array of post objects on archive page without having to do this:
$my_posts = array();
while ( have_posts() ) {
the_post();
$my_posts[] = $post;
}
// $my_posts is array of post objects
Is there any simpler method to get it?
A: That’s pretty easy. All you need is this:
global $wp_query;
$my_posts = $wp_query->posts;
| Q: Get array of posts from the current archive page loop Classic WordPress loop (for example in archive.php) looks like this:
if ( have_posts() ) :
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', get_post_format() );
endwhile;
endif;
I want to get an array of post objects on archive page without having to do this:
$my_posts = array();
while ( have_posts() ) {
the_post();
$my_posts[] = $post;
}
// $my_posts is array of post objects
Is there any simpler method to get it?
A: That’s pretty easy. All you need is this:
global $wp_query;
$my_posts = $wp_query->posts;
| wordpress | {
"language": "en",
"length": 97,
"provenance": "stackexchange_00019.jsonl.gz:492399",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/327163"
} | [
0.03167724609375,
0.004146575927734375,
-0.00658416748046875,
0.03643798828125,
0.0196533203125,
-0.042633056640625,
0.0928955078125,
-0.0212860107421875,
0.039398193359375,
0.0171661376953125,
-0.0281219482421875,
-0.0160980224609375,
-0.01351165771484375,
-0.01389312744140625,
-0.0304412841796875,
-0.0213775634765625,
0.0595703125,
-0.058349609375,
0.03314208984375,
0.0121002197265625,
0.00861358642578125,
0.0540771484375,
0.042388916015625,
0.07476806640625,
0.016845703125,
0.025665283203125,
0.05712890625,
0.00955963134765625,
0.003482818603515625,
-0.0100555419921875,
0.0177459716796875,
-0.02618408203125,
0.018524169921875,
0.0030193328857421875,
-0.003665924072265625,
0.005107879638671875,
-0.00652313232421875,
0.004009246826171875,
0.0051727294921875,
0.01305389404296875,
-0.003635406494140625,
0.003940582275390625,
0.01241302490234375,
0.0034885406494140625,
-0.01515960693359375,
-0.014617919921875,
-0.004669189453125,
-0.02117919921875,
0.0209197998046875,
-0.00685882568359375,
0.016326904296875,
0.0283050537109375,
0.02386474609375,
-0.0109710693359375,
-0.0110626220703125,
-0.00395965576171875,
0.0253448486328125,
-0.016082763671875,
0.049285888671875,
-0.0706787109375,
-0.059967041015625,
-0.027130126953125,
0.0631103515625,
0.0129852294921875,
0.00014007091522216797,
0.014404296875,
0.04925537109375,
0.0149078369140625,
-0.08172607421875,
-0.0113983154296875,
0.05059814453125,
-0.039764404296875,
0.005390167236328125,
-0.0400390625,
0.01004791259765625,
-0.01885986328125,
-0.00742340087890625,
-0.042449951171875,
-0.01258087158203125,
0.0228424072265625,
-0.0460205078125,
0.01079559326171875,
-0.059967041015625,
-0.00800323486328125,
-0.0267181396484375,
-0.0184326171875,
-0.025054931640625,
0.00403594970703125,
-0.0233306884765625,
-0.039337158203125,
-0.007625579833984375,
-0.038787841796875,
-0.044342041015625,
0.0242767333984375,
0.0034732818603515625,
-0.0380859375,
0.0156097412109375,
0.03692626953125,
-0.013916015625,
-0.015838623046875,
-0.021392822265625,
-0.0220184326171875,
-0.00508880615234375,
-0.0296173095703125,
-0.00202178955078125,
-0.00843048095703125,
0.0270538330078125,
0.042938232421875,
0.03424072265625,
0.029205322265625,
-0.035919189453125,
0.047607421875,
-0.01450347900390625,
-0.0301055908203125,
-0.00855255126953125,
0.045166015625,
-0.0257720947265625,
-0.002468109130859375,
0.0167694091796875,
-0.0005240440368652344,
0.00576019287109375,
0.029052734375,
0.037384033203125,
0.0116424560546875,
0.01139068603515625,
0.03387451171875,
-0.0304107666015625,
-0.0611572265625,
0.025177001953125,
0.07244873046875,
-0.02313232421875,
-0.0192413330078125,
0.0072784423828125,
-0.0033092498779296875,
-0.0158538818359375,
-0.042022705078125,
-0.00428009033203125,
-0.03094482421875,
0.0200042724609375,
-0.01122283935546875,
0.027191162109375,
-0.0386962890625,
-0.012603759765625,
0.0237884521484375,
0.0164794921875,
0.011260986328125,
0.0168914794921875,
0.0128326416015625,
0.00970458984375,
-0.037506103515625,
0.01332855224609375,
0.01229095458984375,
-0.0021152496337890625,
0.0251617431640625,
0.046875,
-0.0221405029296875,
0.0297088623046875,
-0.04150390625,
0.03253173828125,
-0.0262603759765625,
0.0178680419921875,
0.0037593841552734375,
0.00806427001953125,
0.0004279613494873047,
-0.044952392578125,
0.01303863525390625,
-0.020233154296875,
-0.0233917236328125,
0.0262908935546875,
0.0064697265625,
0.020751953125,
-0.03570556640625,
0.044036865234375,
0.01311492919921875,
-0.0207366943359375,
0.0199127197265625,
-0.023834228515625,
-0.034393310546875,
0.019439697265625,
0.058990478515625,
-0.0190277099609375,
-0.03729248046875,
-0.044036865234375,
0.0215911865234375,
-0.0306854248046875,
0.01009368896484375,
0.004688262939453125,
0.00734710693359375,
0.00296783447265625,
0.0105743408203125,
0.0107421875,
0.0269775390625,
-0.056732177734375,
0.033905029296875,
-0.0016241073608398438,
-0.0028591156005859375,
-0.0058135986328125,
0.01407623291015625,
-0.0055999755859375,
-0.04400634765625,
0.033172607421875,
0.0173187255859375,
-0.02752685546875,
0.004123687744140625,
-0.05743408203125,
-0.018035888671875,
0.005817413330078125,
0.0186614990234375,
-0.01001739501953125,
0.02777099609375,
0.02667236328125,
0.0004382133483886719,
-0.034820556640625,
0.00891876220703125,
-0.0198822021484375,
0.00295257568359375,
-0.024749755859375,
-0.0096435546875,
-0.0156707763671875,
-0.007785797119140625,
-0.00276947021484375,
-0.007122039794921875,
-0.0133056640625,
0.0345458984375,
0.07464599609375,
-0.01629638671875,
-0.01045989990234375,
-0.041961669921875,
-0.00251007080078125,
0.031524658203125,
-0.1278076171875,
0.01971435546875,
-0.006740570068359375,
0.00010699033737182617,
-0.0262908935546875,
-0.02557373046875,
-0.004756927490234375,
-0.0289459228515625,
0.0283355712890625,
0.055084228515625,
0.034942626953125,
0.03546142578125,
0.016998291015625,
0.0059814453125,
0.08642578125,
-0.01436614990234375,
0.019256591796875,
-0.0211181640625,
0.040740966796875,
0.052825927734375,
-0.002880096435546875,
0.009796142578125,
0.01560211181640625,
0.01081085205078125,
0.005451202392578125,
0.0465087890625,
0.006153106689453125,
0.0406494140625,
-0.063720703125,
0.0286865234375,
-0.007526397705078125,
-0.004550933837890625,
-0.0093536376953125,
-0.015625,
0.026641845703125,
0.039794921875,
0.040496826171875,
0.03009033203125,
-0.0372314453125,
0.03717041015625,
-0.0026607513427734375,
-0.033111572265625,
0.0179290771484375,
0.004840850830078125,
-0.07745361328125,
0.020599365234375,
-0.031829833984375,
0.013763427734375,
0.034088134765625,
-0.01045989990234375,
-0.0125885009765625,
0.0246734619140625,
-0.01007080078125,
-0.01226043701171875,
-0.0222625732421875,
-0.044769287109375,
0.0116424560546875,
0.02545166015625,
-0.0147247314453125,
-0.01885986328125,
0.01837158203125,
0.034820556640625,
-0.041961669921875,
0.0379638671875,
-0.019989013671875,
-0.0029544830322265625,
0.0254364013671875,
-0.061126708984375,
0.0458984375,
-0.03216552734375,
0.0340576171875,
0.062103271484375,
-0.0172882080078125,
0.00909423828125,
0.0016775131225585938,
-0.00229644775390625,
0.0115203857421875,
0.0034084320068359375,
-0.017303466796875,
-0.0261688232421875,
-0.045257568359375,
-0.00763702392578125,
0.01415252685546875,
0.0596923828125,
0.0013256072998046875,
-0.04302978515625,
0.00685882568359375,
0.022796630859375,
-0.0830078125,
-0.10064697265625,
0.07440185546875,
-0.125,
-0.0167999267578125,
-0.0552978515625,
-0.0843505859375,
-0.025390625,
0.0041656494140625,
-0.0028095245361328125,
0.0038547515869140625,
-0.01184844970703125,
-0.05792236328125,
-0.04083251953125,
-0.0977783203125,
-0.033966064453125,
-0.00548553466796875,
0.01824951171875,
-0.0005502700805664062,
0.0498046875,
-0.0009512901306152344,
-0.04388427734375,
-0.024810791015625,
0.020660400390625,
-0.0312347412109375,
-0.017303466796875,
0.007579803466796875,
0.0260772705078125,
-0.0472412109375,
0.02166748046875,
-0.0012083053588867188,
0.01552581787109375,
-0.0311126708984375,
-0.01019287109375,
-0.00927734375,
0.007602691650390625,
0.040557861328125,
0.0103912353515625,
-0.005001068115234375,
0.03302001953125,
0.044281005859375,
-0.0220184326171875,
-0.046142578125,
0.006404876708984375,
-0.04229736328125,
-0.005626678466796875,
0.011260986328125,
-0.0019216537475585938,
-0.0252227783203125,
0.032440185546875,
-0.0246124267578125,
-0.0318603515625,
-0.0236053466796875,
-0.034820556640625,
0.063720703125,
0.0095672607421875,
0.0126190185546875,
0.0305023193359375,
0.0170440673828125,
-0.028900146484375,
0.0267181396484375,
0.01137542724609375,
-0.0258636474609375,
-0.0292205810546875,
0.00527191162109375,
-0.0163726806640625,
-0.07940673828125,
0.06341552734375,
0.004276275634765625,
0.015777587890625,
-0.035308837890625,
-0.040863037109375,
0.021148681640625,
0.1192626953125,
-0.0240631103515625,
-0.0277252197265625,
-0.0232391357421875,
0.007778167724609375,
-0.005115509033203125,
-0.049285888671875,
0.003017425537109375,
-0.037750244140625,
-0.03375244140625,
-0.0257415771484375,
-0.052825927734375,
-0.006866455078125,
-0.005535125732421875,
-0.00705718994140625,
-0.015380859375,
-0.041748046875,
0.01678466796875,
-0.058990478515625,
0.0196075439453125,
-0.0192413330078125,
0.00514984130859375,
-0.04998779296875,
0.0048828125,
-0.059295654296875,
-0.1253662109375,
-0.0159759521484375,
0.01461029052734375,
0.07080078125,
-0.0018310546875,
-0.0223541259765625,
-0.006984710693359375,
0.0657958984375,
-0.01461029052734375,
0.024658203125,
0.00081634521484375,
0.042999267578125,
-0.01015472412109375,
-0.0306243896484375,
-0.001148223876953125,
-0.03839111328125,
-0.004688262939453125,
-0.046783447265625,
0.0125274658203125,
-0.0265350341796875,
-0.07525634765625,
-0.024627685546875,
-0.0625,
0.0082550048828125,
-0.01287078857421875,
-0.0010833740234375,
0.016754150390625,
0.027618408203125,
-0.006778717041015625,
0.01560211181640625,
-0.0163116455078125,
-0.0253448486328125,
0.0268707275390625,
0.0518798828125,
-0.04681396484375,
0.019439697265625,
0.04425048828125,
0.018768310546875,
-0.039154052734375,
-0.10107421875,
-0.01264190673828125,
0.0220794677734375,
-0.03741455078125,
0.06805419921875,
0.0207672119140625,
-0.01763916015625,
0.0570068359375,
-0.00659942626953125,
-0.0155029296875,
0.0005583763122558594,
0.0208892822265625,
0.01812744140625,
-0.00901031494140625,
-0.01486968994140625,
0.00621795654296875,
0.0172576904296875,
0.00923919677734375,
-0.0109100341796875,
-0.0177001953125,
0.00817108154296875,
0.04931640625,
-0.00589752197265625,
0.02899169921875,
-0.040435791015625,
-0.0736083984375,
0.008026123046875,
0.0061492919921875,
0.02191162109375,
0.0345458984375,
-0.0082855224609375,
0.061309814453125,
0.0245208740234375,
-0.00447845458984375,
0.004428863525390625,
0.0445556640625,
0.01776123046875,
0.05511474609375,
-0.03717041015625,
0.0101318359375,
-0.028228759765625,
0.005603790283203125,
0.02349853515625,
-0.03497314453125,
-0.061492919921875,
-0.00797271728515625,
-0.016845703125,
0.018646240234375,
0.05084228515625,
-0.053985595703125,
0.05035400390625,
0.060516357421875,
-0.03216552734375,
0.002025604248046875,
-0.060882568359375,
-0.006103515625,
-0.053863525390625,
0.04302978515625,
0.02105712890625,
-0.0022983551025390625,
-0.009918212890625,
0.08233642578125,
-0.01751708984375,
0.03692626953125,
-0.00736236572265625,
-0.0010156631469726562,
-0.027923583984375,
0.07257080078125,
0.025482177734375,
-0.04327392578125,
0.00394439697265625,
0.04736328125,
-0.00334930419921875,
-0.0244140625,
0.0176239013671875,
-0.0236663818359375,
0.045135498046875,
0.0120849609375,
-0.020599365234375,
0.03411865234375,
-0.051788330078125,
0.00032401084899902344,
0.042938232421875,
0.00855255126953125,
-0.039520263671875,
-0.014556884765625,
0.004154205322265625,
0.029571533203125,
-0.00930023193359375,
-0.0092620849609375,
-0.002017974853515625,
-0.02294921875,
0.01381683349609375,
-0.0188140869140625,
-0.003391265869140625,
0.00018298625946044922,
-0.006130218505859375,
-0.025299072265625,
-0.0270843505859375,
-0.0254058837890625,
-0.0384521484375,
-0.0197601318359375,
-0.020538330078125,
-0.01012420654296875,
0.045989990234375,
0.014129638671875,
0.0206451416015625,
-0.033966064453125,
-0.02197265625,
-0.0225372314453125,
-0.00910186767578125,
0.052978515625,
0.01165008544921875,
-0.060821533203125,
0.0140380859375,
-0.0687255859375,
-0.007015228271484375,
-0.01580810546875,
-0.05108642578125,
-0.048675537109375,
-0.01021575927734375,
0.006923675537109375,
0.015960693359375,
0.032135009765625,
0.019683837890625,
-0.021209716796875,
0.0007801055908203125,
-0.01052093505859375,
0.03961181640625,
-0.001102447509765625,
0.0875244140625,
-0.010009765625,
0.0416259765625,
0.00738525390625,
0.039154052734375,
-0.0443115234375,
-0.0052642822265625,
0.00788116455078125,
-0.0601806640625,
0.0044403076171875,
0.017425537109375,
-0.041290283203125,
-0.0036640167236328125,
0.00994110107421875,
0.01544189453125,
-0.047027587890625,
-0.0254364013671875,
-0.0005879402160644531,
-0.0187530517578125,
0.07421875,
0.01329803466796875,
-0.036712646484375,
0.0153045654296875,
0.0013113021850585938,
-0.006267547607421875,
-0.0130462646484375,
-0.032684326171875,
0.004070281982421875,
0.0202789306640625,
-0.0029239654541015625,
-0.0236358642578125,
-0.03167724609375,
0.0640869140625,
0.07879638671875,
0.00893402099609375,
0.04486083984375,
0.0157318115234375,
0.0179443359375,
0.0009937286376953125,
0.04376220703125,
0.004497528076171875,
-0.024932861328125,
0.07391357421875,
0.020172119140625,
-0.0193023681640625,
0.043121337890625,
-0.05218505859375,
-0.0079498291015625,
-0.02703857421875,
0.04266357421875,
0.0121002197265625,
0.0189971923828125,
0.035675048828125,
-0.01065826416015625,
-0.0137939453125,
0.006931304931640625,
-0.00927734375,
-0.0142059326171875,
0.03839111328125,
-0.0108642578125,
-0.01666259765625,
0.018768310546875,
-0.0037136077880859375,
-0.0034732818603515625,
-0.0316162109375,
0.053253173828125,
0.016510009765625,
-0.060302734375,
0.041900634765625,
0.02337646484375,
0.0084075927734375,
-0.0254669189453125,
0.0284576416015625,
-0.03704833984375,
0.0213470458984375,
-0.04010009765625,
0.01262664794921875,
-0.037139892578125,
0.01361083984375,
-0.00936126708984375,
0.03192138671875,
0.0127410888671875,
0.045745849609375,
0.005229949951171875,
0.0017080307006835938,
0.02691650390625,
-0.023895263671875,
-0.05474853515625,
-0.0263519287109375,
0.00923919677734375,
0.04522705078125,
-0.0269012451171875,
0.031097412109375,
-0.00739288330078125,
-0.0084381103515625,
-0.0027370452880859375,
-0.0086669921875,
0.026092529296875,
-0.027130126953125,
-0.015716552734375,
0.03466796875,
0.0210723876953125,
-0.0236663818359375,
-0.0092620849609375,
0.01126861572265625,
-0.02276611328125,
0.0088958740234375,
0.002590179443359375,
0.0083770751953125,
-0.008514404296875,
-0.01611328125,
-0.044219970703125,
0.05902099609375,
-0.0112152099609375,
-0.014617919921875,
0.0289459228515625,
0.0283050537109375,
-0.0312042236328125,
0.0021686553955078125,
-0.03765869140625,
0.0212860107421875,
0.0058746337890625,
0.0450439453125,
-0.06439208984375,
-0.004547119140625,
-0.0042724609375,
0.052978515625,
0.034881591796875,
0.0031642913818359375,
0.003326416015625,
-0.0262451171875,
0.01342010498046875,
0.06689453125,
0.0121002197265625,
0.0033721923828125,
0.0175018310546875,
0.0556640625,
0.07305908203125,
-0.047332763671875,
0.0269622802734375,
0.027679443359375,
-0.0011310577392578125,
0.03778076171875,
0.000980377197265625,
0.00024962425231933594,
0.031463623046875,
0.0127105712890625,
-0.0011434555053710938,
-0.0018301010131835938,
0.00395965576171875,
-0.035430908203125,
-0.0084381103515625,
0.055419921875,
0.0309906005859375,
-0.0058746337890625,
-0.016998291015625,
-0.0238494873046875,
0.03240966796875,
0.00543975830078125,
0.0248565673828125,
0.04168701171875,
0.024658203125,
0.025177001953125,
-0.009552001953125,
0.0192413330078125,
0.0091705322265625,
-0.0220794677734375,
0.0282135009765625,
0.0208587646484375,
0.0286407470703125,
-0.054443359375,
-0.013153076171875,
0.064697265625,
0.064453125,
-0.0302581787109375,
-0.021575927734375,
0.0169830322265625,
-0.009796142578125,
-0.0086669921875,
-0.006946563720703125,
0.0111236572265625,
0.012237548828125,
0.033416748046875,
-0.0159149169921875,
-0.033538818359375,
-0.005764007568359375,
0.017547607421875,
-0.0098876953125,
-0.0220184326171875,
0.024261474609375,
-0.025238037109375,
-0.0181732177734375,
-0.0285186767578125,
-0.007720947265625,
0.038970947265625,
0.039825439453125,
0.002574920654296875,
-0.01251220703125,
-0.0035552978515625,
0.0114288330078125,
0.045440673828125,
-0.018707275390625,
0.0029163360595703125,
-0.0012998580932617188,
-0.02545166015625,
-0.041412353515625,
0.0177001953125,
0.03875732421875,
-0.03167724609375,
0.0439453125,
0.0213165283203125,
-0.0672607421875,
-0.01131439208984375,
0.033477783203125,
-0.0201263427734375,
-0.02520751953125,
-0.036712646484375,
-0.0088653564453125,
0.0240631103515625,
-0.003326416015625,
0.0156097412109375,
-0.00858306884765625,
0.04058837890625,
-0.00788116455078125,
0.03936767578125,
-0.0003528594970703125,
0.00518798828125,
0.0162811279296875,
-0.01187896728515625,
0.00559234619140625,
0.0157470703125,
-0.0634765625,
0.0035572052001953125,
-0.0567626953125,
-0.032623291015625,
0.0199127197265625,
0.034423828125,
-0.018524169921875,
0.0256195068359375,
0.00908660888671875,
-0.0280609130859375,
-0.0158843994140625,
0.01300048828125,
0.034393310546875,
0.03277587890625,
0.0153045654296875,
0.032318115234375,
-0.03753662109375,
-0.034027099609375,
-0.0273590087890625,
0.0330810546875,
0.03558349609375,
-0.0071258544921875,
0.025543212890625,
0.036865234375,
-0.0233917236328125,
0.019012451171875,
-0.051300048828125,
-0.006038665771484375,
0.007122039794921875,
0.002666473388671875,
-0.0012922286987304688,
-0.0139617919921875,
-0.00418853759765625,
0.01029205322265625,
0.062255859375,
-0.038299560546875,
-0.021820068359375,
0.001422882080078125,
0.0167236328125,
-0.0252532958984375,
0.01031494140625,
-0.0156097412109375,
-0.0147552490234375,
-0.004589080810546875,
0.007610321044921875,
0.0246124267578125,
0.028900146484375,
-0.0017442703247070312,
0.0134735107421875,
-0.00585174560546875,
-0.046600341796875,
0.0167083740234375,
-0.0243072509765625,
0.0124664306640625,
0.037689208984375,
0.01171112060546875,
0.0024585723876953125,
0.0024929046630859375,
-0.01910400390625,
0.0220947265625,
0.0041351318359375,
0.047698974609375,
-0.011932373046875,
0.021514892578125,
0.000690460205078125,
-0.01806640625,
0.042327880859375,
0.0008320808410644531,
0.0146942138671875,
-0.0284271240234375,
0.01427459716796875,
-0.0144805908203125,
-0.008148193359375,
-0.0248565673828125,
-0.051055908203125,
-0.007904052734375,
0.0137939453125,
-0.02117919921875,
-0.027618408203125,
-0.031829833984375,
-0.041717529296875,
-0.00850677490234375,
0.0047760009765625,
-0.023895263671875,
0.005466461181640625,
0.00433349609375,
-0.03179931640625,
-0.043243408203125,
-0.03570556640625,
0.01568603515625,
0.0267486572265625,
-0.00739288330078125,
0.00823974609375,
-0.0281829833984375,
-0.01219940185546875,
0.0005588531494140625,
0.011077880859375,
0.00048041343688964844,
-0.0188446044921875,
-0.0249481201171875,
0.03662109375,
0.01534271240234375,
0.0753173828125,
0.049072265625,
0.002056121826171875,
0.03326416015625,
0.006771087646484375,
-0.028778076171875,
-0.057952880859375,
0.01126861572265625,
-0.022247314453125,
-0.0004906654357910156,
0.0008516311645507812,
-0.0014982223510742188,
0.0232391357421875,
-0.023834228515625,
-0.05072021484375,
0.059906005859375,
-0.0201416015625,
-0.04156494140625,
-0.04150390625,
0.00913238525390625,
0.035247802734375,
-0.051239013671875,
-0.01367950439453125,
-0.01081085205078125,
-0.047454833984375,
0.007259368896484375,
0.0178680419921875,
0.03399658203125,
0.01035308837890625,
-0.004528045654296875,
-0.048797607421875,
0.01026153564453125,
-0.01201629638671875,
0.031646728515625,
-0.0209503173828125,
0.005367279052734375,
0.00920867919921875,
0.04583740234375,
-0.016998291015625,
0.02142333984375,
-0.004611968994140625,
0.009613037109375,
-0.00565338134765625,
0.0038604736328125,
-0.021087646484375,
-0.00623321533203125,
0.032012939453125,
0.04962158203125,
0.01177215576171875,
-0.0210418701171875,
0.0006017684936523438,
0.013153076171875,
-0.0457763671875,
-0.0181884765625,
0.037841796875,
-0.0648193359375,
-0.0281219482421875,
0.0006160736083984375,
-0.01016998291015625,
-0.0031719207763671875,
-0.06591796875,
-0.035797119140625,
-0.0124664306640625,
-0.0806884765625,
-0.0017976760864257812,
0.0207366943359375,
0.00562286376953125,
0.00897216796875,
0.000039637088775634766,
0.013336181640625,
-0.0377197265625,
0.022247314453125,
0.01099395751953125,
-0.00858306884765625,
-0.01727294921875,
0.0015115737915039062,
-0.004100799560546875,
-0.0086212158203125,
0.0109100341796875,
-0.0015516281127929688,
0.03204345703125,
0.0090484619140625,
0.007106781005859375,
0.0169219970703125,
-0.005401611328125,
-0.00617218017578125,
-0.00675201416015625,
0.03753662109375,
-0.01483917236328125,
0.07635498046875,
0.0012426376342773438,
0.05645751953125,
0.0013103485107421875,
0.052490234375,
-0.01983642578125,
-0.0268096923828125,
0.00902557373046875,
-0.06500244140625,
-0.0138092041015625,
-0.00397491455078125,
-0.040771484375,
-0.01042938232421875,
-0.024993896484375,
0.00046324729919433594,
-0.0097198486328125,
0.00495147705078125
] |
54e65257926db02768c558e9f7ac48c77e577e58 | Wordpress Stackexchange
Q: What to use: wp_is_post_autosave( $post_id ) or DOING_AUTOSAVE? I was doing some action on save_post hook, and noticed that there exists
wp_is_post_autosave( $post_id )
function.
How does it differ from DOING_AUTOSAVE constant?
If I want my action not to run on autosave should I do both
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
return;
}
and
if ( \wp_is_post_autosave( $post_id ) ) {
return;
}
Or is one enough?
The DOING_AUTOSAVE constant gets defined in wp-admin/includes/post.php, wp-includes/class-wp-customize-manager.php and wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php, whereas wp_is_post_autosave() checks if the post is revision and has autosave in it's name.
I'm a bit confused what to use, and if it's good idea to use both.
| Q: What to use: wp_is_post_autosave( $post_id ) or DOING_AUTOSAVE? I was doing some action on save_post hook, and noticed that there exists
wp_is_post_autosave( $post_id )
function.
How does it differ from DOING_AUTOSAVE constant?
If I want my action not to run on autosave should I do both
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
return;
}
and
if ( \wp_is_post_autosave( $post_id ) ) {
return;
}
Or is one enough?
The DOING_AUTOSAVE constant gets defined in wp-admin/includes/post.php, wp-includes/class-wp-customize-manager.php and wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php, whereas wp_is_post_autosave() checks if the post is revision and has autosave in it's name.
I'm a bit confused what to use, and if it's good idea to use both.
| wordpress | {
"language": "en",
"length": 111,
"provenance": "stackexchange_00019.jsonl.gz:492426",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/327245"
} | [
0.0210113525390625,
-0.01226806640625,
0.005420684814453125,
-0.0278778076171875,
-0.01146697998046875,
-0.007213592529296875,
0.01372528076171875,
-0.01995849609375,
-0.01053619384765625,
0.008636474609375,
-0.03851318359375,
0.01113128662109375,
0.0152587890625,
-0.0132904052734375,
0.007266998291015625,
-0.027587890625,
0.054931640625,
-0.058349609375,
0.01192474365234375,
-0.006855010986328125,
0.001445770263671875,
0.0157928466796875,
0.048492431640625,
0.03741455078125,
0.04022216796875,
-0.0179595947265625,
0.00778961181640625,
0.00016939640045166016,
0.03778076171875,
0.01529693603515625,
0.03265380859375,
-0.032806396484375,
0.0255889892578125,
0.0012998580932617188,
0.0011510848999023438,
0.0272064208984375,
0.021942138671875,
-0.0008502006530761719,
0.02398681640625,
0.007068634033203125,
-0.003009796142578125,
0.0014019012451171875,
0.0214996337890625,
-0.052276611328125,
-0.0086517333984375,
0.0166778564453125,
-0.03997802734375,
-0.04107666015625,
0.01549530029296875,
-0.00817108154296875,
0.01544952392578125,
0.02606201171875,
0.0247344970703125,
0.0168914794921875,
-0.00699615478515625,
0.0045013427734375,
-0.01136016845703125,
-0.007476806640625,
0.07086181640625,
0.0012569427490234375,
-0.052032470703125,
-0.07080078125,
0.031219482421875,
-0.06146240234375,
0.00174713134765625,
0.006397247314453125,
0.03338623046875,
0.018310546875,
-0.04974365234375,
-0.03131103515625,
0.0106353759765625,
-0.01174163818359375,
0.01416778564453125,
0.00595855712890625,
-0.01166534423828125,
-0.038360595703125,
0.048858642578125,
0.0177764892578125,
-0.0175018310546875,
0.03411865234375,
-0.025390625,
0.01496124267578125,
0.0162506103515625,
-0.0325927734375,
0.0185394287109375,
0.00919342041015625,
-0.0241241455078125,
-0.0081939697265625,
-0.03619384765625,
-0.04705810546875,
-0.02288818359375,
-0.04132080078125,
-0.05010986328125,
-0.0151519775390625,
-0.01045989990234375,
-0.036773681640625,
-0.0021820068359375,
0.0355224609375,
-0.02874755859375,
0.01374053955078125,
-0.0203399658203125,
-0.018035888671875,
0.0129241943359375,
-0.0249176025390625,
-0.0004279613494873047,
0.09490966796875,
0.01444244384765625,
-0.0150604248046875,
-0.0008559226989746094,
-0.004581451416015625,
0.017181396484375,
-0.038177490234375,
0.003662109375,
-0.02484130859375,
-0.03033447265625,
-0.0003142356872558594,
-0.041748046875,
0.0249176025390625,
0.00800323486328125,
-0.0010538101196289062,
0.0134429931640625,
0.0084228515625,
0.0178985595703125,
-0.01165008544921875,
0.01554107666015625,
0.005237579345703125,
-0.04620361328125,
-0.0124359130859375,
0.0107879638671875,
0.0283966064453125,
-0.0206756591796875,
-0.000025212764739990234,
0.07403564453125,
0.004901885986328125,
-0.005954742431640625,
-0.0207061767578125,
-0.0015048980712890625,
0.003513336181640625,
-0.01085662841796875,
0.0274200439453125,
0.0030765533447265625,
-0.053680419921875,
-0.020599365234375,
0.0007882118225097656,
0.00887298583984375,
0.01445770263671875,
0.0279083251953125,
0.0273590087890625,
-0.00605010986328125,
-0.0521240234375,
0.046112060546875,
-0.0218353271484375,
0.0128326416015625,
0.00811767578125,
0.0232391357421875,
-0.033721923828125,
0.003849029541015625,
-0.035980224609375,
0.0288848876953125,
-0.033538818359375,
-0.01418304443359375,
-0.030731201171875,
-0.0014181137084960938,
-0.047882080078125,
-0.07879638671875,
0.041412353515625,
-0.0345458984375,
-0.006244659423828125,
0.0247955322265625,
0.001129150390625,
0.03289794921875,
0.0294647216796875,
0.03466796875,
0.0163421630859375,
0.01442718505859375,
-0.006191253662109375,
-0.013336181640625,
-0.0164794921875,
0.028411865234375,
0.0278778076171875,
-0.0372314453125,
-0.038330078125,
-0.0036602020263671875,
-0.0003962516784667969,
-0.0297393798828125,
0.055908203125,
0.0111846923828125,
0.07403564453125,
-0.01251220703125,
0.0157623291015625,
-0.0008420944213867188,
0.0216064453125,
0.001190185546875,
0.03753662109375,
-0.0021152496337890625,
-0.06341552734375,
-0.009185791015625,
-0.021331787109375,
-0.0227508544921875,
0.00495147705078125,
-0.01074981689453125,
-0.02105712890625,
-0.0266876220703125,
0.003265380859375,
-0.140380859375,
-0.020172119140625,
-0.05718994140625,
0.03851318359375,
-0.0255584716796875,
0.029998779296875,
0.0194854736328125,
-0.0170745849609375,
0.002445220947265625,
-0.0202484130859375,
0.01338958740234375,
-0.0014057159423828125,
-0.0287322998046875,
-0.005908966064453125,
-0.0151519775390625,
0.031768798828125,
-0.0262603759765625,
0.01369476318359375,
-0.044403076171875,
-0.0109100341796875,
0.038238525390625,
-0.023345947265625,
-0.0181884765625,
-0.03167724609375,
-0.004322052001953125,
-0.013031005859375,
-0.022613525390625,
0.0584716796875,
0.036376953125,
0.0111541748046875,
-0.032928466796875,
-0.033050537109375,
-0.06500244140625,
-0.1302490234375,
0.0069580078125,
0.11273193359375,
0.024627685546875,
0.008819580078125,
-0.019073486328125,
-0.0007863044738769531,
-0.0168914794921875,
-0.02252197265625,
0.032012939453125,
-0.0187225341796875,
-0.01493072509765625,
0.025909423828125,
0.033782958984375,
0.016815185546875,
0.002674102783203125,
-0.06280517578125,
-0.015869140625,
0.036651611328125,
-0.04052734375,
-0.01267242431640625,
0.022064208984375,
-0.0171051025390625,
-0.0083465576171875,
-0.073974609375,
0.0135498046875,
-0.053619384765625,
0.0282440185546875,
-0.044097900390625,
0.04345703125,
0.0181732177734375,
-0.0003955364227294922,
-0.044464111328125,
0.02008056640625,
0.024169921875,
0.00539398193359375,
0.060760498046875,
0.0401611328125,
0.0208892822265625,
-0.0298614501953125,
-0.0276336669921875,
0.0303497314453125,
0.042877197265625,
-0.036346435546875,
0.017578125,
-0.03204345703125,
-0.018280029296875,
0.0011425018310546875,
-0.061431884765625,
-0.00229644775390625,
-0.033721923828125,
-0.0025539398193359375,
-0.0328369140625,
0.00998687744140625,
0.0020351409912109375,
-0.053253173828125,
0.040985107421875,
0.0249786376953125,
-0.03533935546875,
-0.0300445556640625,
-0.027618408203125,
0.0129852294921875,
-0.017181396484375,
0.02679443359375,
0.0618896484375,
0.0232391357421875,
-0.0055389404296875,
-0.0014886856079101562,
0.0474853515625,
0.01290130615234375,
-0.0183258056640625,
-0.03240966796875,
-0.018524169921875,
-0.055816650390625,
-0.0404052734375,
0.02459716796875,
0.0986328125,
-0.0296630859375,
-0.046783447265625,
0.0100860595703125,
0.020294189453125,
-0.037811279296875,
-0.07342529296875,
0.0168609619140625,
-0.0738525390625,
-0.01044464111328125,
-0.022003173828125,
-0.048980712890625,
-0.01080322265625,
-0.0097808837890625,
-0.0032958984375,
-0.0765380859375,
0.0028133392333984375,
-0.03759765625,
-0.06451416015625,
-0.049591064453125,
0.012725830078125,
-0.004344940185546875,
0.0238494873046875,
-0.0011653900146484375,
0.07550048828125,
0.0111083984375,
-0.015777587890625,
0.007568359375,
-0.046234130859375,
-0.021240234375,
-0.0003070831298828125,
-0.0176239013671875,
-0.0005512237548828125,
-0.042205810546875,
0.00937652587890625,
0.00992584228515625,
-0.0240936279296875,
0.008514404296875,
-0.01493072509765625,
-0.00931549072265625,
-0.0390625,
0.0276641845703125,
0.03955078125,
-0.00665283203125,
0.038299560546875,
0.08843994140625,
-0.01226806640625,
-0.031494140625,
-0.0186004638671875,
-0.0665283203125,
0.01318359375,
0.05352783203125,
-0.000812530517578125,
-0.003742218017578125,
-0.016082763671875,
0.01482391357421875,
0.01074981689453125,
0.01617431640625,
0.002803802490234375,
0.01317596435546875,
0.001483917236328125,
0.0219573974609375,
-0.01059722900390625,
0.047210693359375,
-0.007232666015625,
0.007129669189453125,
0.01372528076171875,
0.03472900390625,
0.021728515625,
-0.06304931640625,
-0.040252685546875,
-0.027191162109375,
0.00914764404296875,
-0.0421142578125,
0.0272674560546875,
-0.03045654296875,
0.01221466064453125,
-0.019256591796875,
0.05548095703125,
0.002002716064453125,
-0.004302978515625,
-0.0298309326171875,
0.00040531158447265625,
-0.0243072509765625,
-0.037017822265625,
-0.03277587890625,
0.01617431640625,
-0.019927978515625,
0.01236724853515625,
-0.00838470458984375,
0.0026798248291015625,
-0.03167724609375,
0.046661376953125,
-0.0114288330078125,
-0.0126800537109375,
0.027740478515625,
-0.07891845703125,
0.0142974853515625,
0.0248565673828125,
-0.005435943603515625,
-0.01512908935546875,
-0.0079345703125,
-0.062164306640625,
-0.10650634765625,
-0.00618743896484375,
-0.06280517578125,
0.078125,
0.0299072265625,
-0.00873565673828125,
-0.018524169921875,
0.032470703125,
0.03680419921875,
0.01666259765625,
0.00894927978515625,
-0.00818634033203125,
-0.012054443359375,
0.011444091796875,
0.045135498046875,
-0.020660400390625,
-0.007671356201171875,
-0.035064697265625,
-0.048736572265625,
-0.0141143798828125,
-0.03509521484375,
0.0190887451171875,
-0.0141754150390625,
-0.0263671875,
-0.043731689453125,
0.0048980712890625,
-0.0526123046875,
-0.0033168792724609375,
-0.035614013671875,
-0.00586700439453125,
-0.002597808837890625,
-0.0692138671875,
0.053955078125,
0.01148223876953125,
0.025115966796875,
0.006305694580078125,
0.095703125,
0.00830078125,
-0.0175018310546875,
-0.054168701171875,
-0.01198577880859375,
0.0156097412109375,
-0.0267791748046875,
0.01058197021484375,
-0.0131378173828125,
-0.023895263671875,
0.041900634765625,
-0.0235595703125,
-0.01538848876953125,
-0.0404052734375,
0.045440673828125,
-0.0245361328125,
-0.0106353759765625,
-0.0106658935546875,
-0.07012939453125,
0.08538818359375,
0.05499267578125,
-0.0198974609375,
0.00804901123046875,
0.0157928466796875,
0.0302734375,
-0.06671142578125,
0.023651123046875,
-0.0227203369140625,
-0.0125274658203125,
0.004459381103515625,
0.0010986328125,
0.0199737548828125,
0.05267333984375,
-0.0202789306640625,
0.023468017578125,
-0.0033245086669921875,
0.001392364501953125,
0.000518798828125,
0.0229034423828125,
0.005702972412109375,
0.007293701171875,
0.045196533203125,
0.0037975311279296875,
-0.037841796875,
0.003875732421875,
0.01019287109375,
-0.01158905029296875,
-0.04095458984375,
-0.039306640625,
0.00521087646484375,
0.0489501953125,
0.010040283203125,
-0.018341064453125,
0.036895751953125,
0.044769287109375,
-0.0305328369140625,
-0.02130126953125,
-0.0212554931640625,
0.0281524658203125,
-0.050567626953125,
-0.0106201171875,
0.016021728515625,
-0.020538330078125,
0.0323486328125,
0.033599853515625,
0.09674072265625,
-0.0011796951293945312,
-0.06365966796875,
0.045562744140625,
0.05853271484375,
0.01035308837890625,
0.0079345703125,
-0.00936126708984375,
0.0057220458984375,
-0.01401519775390625,
0.0021114349365234375,
-0.042266845703125,
-0.033416748046875,
0.00519561767578125,
0.0300140380859375,
-0.050750732421875,
-0.016571044921875,
0.0479736328125,
0.0174713134765625,
-0.03857421875,
0.0589599609375,
0.038726806640625,
-0.050262451171875,
-0.0261077880859375,
0.009490966796875,
0.0172576904296875,
0.01125335693359375,
0.017242431640625,
-0.0504150390625,
-0.0226593017578125,
-0.01194000244140625,
-0.0312347412109375,
-0.007610321044921875,
-0.02606201171875,
-0.01641845703125,
-0.01398468017578125,
-0.041015625,
-0.005950927734375,
0.044403076171875,
0.02862548828125,
-0.0323486328125,
-0.04840087890625,
0.035369873046875,
-0.0118408203125,
0.031951904296875,
-0.02197265625,
-0.0009393692016601562,
0.028472900390625,
0.0190582275390625,
0.035430908203125,
-0.0018892288208007812,
-0.016387939453125,
-0.0110626220703125,
-0.048919677734375,
-0.0155487060546875,
-0.022308349609375,
-0.044586181640625,
-0.0222015380859375,
0.01468658447265625,
-0.01082611083984375,
0.019287109375,
0.012054443359375,
0.03863525390625,
0.00084686279296875,
0.0175933837890625,
-0.0290985107421875,
0.02178955078125,
-0.0169525146484375,
0.0509033203125,
0.00952911376953125,
0.04254150390625,
0.0101470947265625,
0.0112762451171875,
-0.004535675048828125,
-0.0188446044921875,
-0.0237884521484375,
-0.006710052490234375,
0.01178741455078125,
0.00997161865234375,
0.019744873046875,
0.0181121826171875,
0.0548095703125,
0.006504058837890625,
0.01529693603515625,
-0.006938934326171875,
0.004791259765625,
-0.0099639892578125,
-0.00888824462890625,
-0.0033817291259765625,
-0.0157623291015625,
0.0256195068359375,
-0.019622802734375,
-0.0285186767578125,
0.006755828857421875,
-0.02191162109375,
0.026214599609375,
0.0025806427001953125,
0.00022852420806884766,
0.0006690025329589844,
-0.0194091796875,
0.0560302734375,
0.0811767578125,
0.0104827880859375,
0.051666259765625,
0.0201416015625,
0.013580322265625,
0.0265350341796875,
0.0213775634765625,
-0.03033447265625,
-0.0277862548828125,
0.04638671875,
0.029876708984375,
-0.036865234375,
0.0247802734375,
-0.0270233154296875,
0.03558349609375,
0.0303802490234375,
0.075927734375,
-0.040313720703125,
0.01410675048828125,
0.041473388671875,
-0.05303955078125,
-0.00592041015625,
-0.0163421630859375,
0.013580322265625,
0.0126800537109375,
0.0281829833984375,
-0.053314208984375,
-0.038604736328125,
0.00722503662109375,
-0.03277587890625,
-0.01027679443359375,
-0.0285797119140625,
0.020233154296875,
0.019775390625,
-0.01812744140625,
0.03643798828125,
0.0208587646484375,
0.012481689453125,
-0.0187225341796875,
0.0158843994140625,
-0.011383056640625,
-0.0298614501953125,
-0.0657958984375,
-0.00879669189453125,
-0.01055908203125,
-0.01491546630859375,
0.0144500732421875,
-0.006259918212890625,
0.032318115234375,
0.051910400390625,
-0.019989013671875,
0.0215301513671875,
0.004467010498046875,
0.02587890625,
-0.07843017578125,
-0.0102386474609375,
0.037841796875,
0.0231781005859375,
-0.06646728515625,
0.038330078125,
-0.06378173828125,
-0.00799560546875,
0.006404876708984375,
-0.021575927734375,
0.0787353515625,
-0.053009033203125,
0.006656646728515625,
0.0263824462890625,
0.0059051513671875,
-0.00763702392578125,
-0.021453857421875,
0.0538330078125,
-0.04632568359375,
-0.045440673828125,
-0.01364898681640625,
-0.05340576171875,
-0.0079498291015625,
-0.049835205078125,
-0.03851318359375,
0.093017578125,
0.021759033203125,
0.0226898193359375,
-0.0170135498046875,
0.035125732421875,
0.033111572265625,
0.07073974609375,
-0.048065185546875,
0.032501220703125,
0.0204010009765625,
0.01360321044921875,
-0.03778076171875,
0.017913818359375,
-0.025604248046875,
-0.008331298828125,
0.056121826171875,
0.0246124267578125,
-0.037078857421875,
0.01727294921875,
0.0311431884765625,
0.01038360595703125,
-0.01593017578125,
0.04986572265625,
0.00823211669921875,
0.0188751220703125,
0.0186767578125,
-0.033416748046875,
0.021575927734375,
-0.016754150390625,
-0.0024814605712890625,
0.034637451171875,
0.005970001220703125,
-0.0103912353515625,
-0.0252532958984375,
0.0035762786865234375,
-0.05059814453125,
-0.00954437255859375,
0.0245819091796875,
0.0261688232421875,
0.03240966796875,
0.00180816650390625,
0.05059814453125,
-0.0677490234375,
-0.01117706298828125,
-0.0285491943359375,
0.05450439453125,
0.021728515625,
-0.0027980804443359375,
0.036865234375,
0.00743865966796875,
-0.0204620361328125,
0.04949951171875,
0.004009246826171875,
0.030975341796875,
0.018341064453125,
0.038909912109375,
0.04449462890625,
0.0276336669921875,
-0.007022857666015625,
0.00594329833984375,
0.037994384765625,
0.043212890625,
-0.025970458984375,
-0.041107177734375,
-0.005428314208984375,
-0.017486572265625,
-0.0016870498657226562,
-0.0138702392578125,
0.007904052734375,
-0.035400390625,
-0.022186279296875,
-0.0064849853515625,
-0.002635955810546875,
0.038177490234375,
-0.0118560791015625,
0.0204315185546875,
0.048736572265625,
-0.01448822021484375,
0.004184722900390625,
-0.04864501953125,
-0.023468017578125,
0.0177001953125,
0.06512451171875,
0.054656982421875,
0.002521514892578125,
0.0014934539794921875,
-0.0266876220703125,
-0.004253387451171875,
0.03082275390625,
0.0208282470703125,
-0.004505157470703125,
-0.039459228515625,
-0.04681396484375,
0.03558349609375,
0.03717041015625,
0.01131439208984375,
0.0155487060546875,
0.0478515625,
0.05242919921875,
-0.0184326171875,
-0.017578125,
0.045013427734375,
-0.0197601318359375,
0.015838623046875,
-0.0095367431640625,
0.0093841552734375,
0.0251922607421875,
-0.00908660888671875,
-0.02471923828125,
0.01303863525390625,
0.0443115234375,
-0.0132598876953125,
0.022003173828125,
0.010162353515625,
-0.009002685546875,
0.006343841552734375,
0.01308441162109375,
0.0294036865234375,
0.031402587890625,
0.0162353515625,
0.01280975341796875,
0.019378662109375,
-0.01311492919921875,
-0.047271728515625,
-0.0071563720703125,
-0.01361846923828125,
0.062469482421875,
0.00333404541015625,
0.005313873291015625,
0.00136566162109375,
0.0122528076171875,
-0.00844573974609375,
-0.01617431640625,
0.0426025390625,
-0.005084991455078125,
-0.05548095703125,
-0.043304443359375,
-0.0259246826171875,
0.0426025390625,
0.0169525146484375,
0.007549285888671875,
0.00951385498046875,
0.0306243896484375,
-0.03460693359375,
0.01503753662109375,
-0.07586669921875,
-0.0382080078125,
-0.0079498291015625,
-0.03912353515625,
-0.00875091552734375,
0.02935791015625,
-0.034271240234375,
0.0428466796875,
0.0221099853515625,
0.016815185546875,
0.03851318359375,
-0.030792236328125,
0.0206451416015625,
-0.004558563232421875,
-0.0246124267578125,
-0.036956787109375,
-0.01561737060546875,
-0.0218505859375,
0.00780487060546875,
0.016204833984375,
-0.02484130859375,
-0.0404052734375,
0.0099945068359375,
-0.0082244873046875,
-0.0168914794921875,
0.021026611328125,
-0.0167236328125,
-0.0005693435668945312,
0.0065765380859375,
-0.0036830902099609375,
-0.002262115478515625,
-0.0033168792724609375,
-0.00862884521484375,
-0.0202484130859375,
0.0257720947265625,
-0.0216217041015625,
0.020751953125,
-0.0196380615234375,
-0.0210723876953125,
-0.0011739730834960938,
0.031219482421875,
-0.0262451171875,
0.000213623046875,
-0.021820068359375,
0.0185546875,
-0.003887176513671875,
-0.0121917724609375,
-0.01403045654296875,
-0.005016326904296875,
-0.0252838134765625,
0.0175628662109375,
-0.02471923828125,
-0.018646240234375,
-0.034454345703125,
-0.00800323486328125,
0.0276641845703125,
-0.0164337158203125,
-0.0041351318359375,
0.0284271240234375,
-0.046356201171875,
-0.01641845703125,
0.0033130645751953125,
-0.0168304443359375,
-0.01093292236328125,
0.039276123046875,
0.01457977294921875,
-0.0146484375,
-0.037689208984375,
0.03045654296875,
-0.02020263671875,
0.0162200927734375,
0.0295562744140625,
-0.023223876953125,
-0.054931640625,
0.0034694671630859375,
0.0045623779296875,
0.02825927734375,
0.029327392578125,
-0.037200927734375,
0.016937255859375,
0.024383544921875,
0.0171356201171875,
-0.0199432373046875,
-0.029693603515625,
0.025726318359375,
0.00948333740234375,
-0.00785064697265625,
0.033843994140625,
0.0546875,
0.0012826919555664062,
-0.031036376953125,
0.04486083984375,
-0.00812530517578125,
-0.0219573974609375,
-0.045623779296875,
-0.00872802734375,
-0.0084686279296875,
0.0312347412109375,
-0.01259613037109375,
-0.0271453857421875,
-0.027313232421875,
0.045074462890625,
0.00566864013671875,
0.035736083984375,
0.0047760009765625,
0.019439697265625,
-0.060699462890625,
-0.0014333724975585938,
-0.0242462158203125,
0.00379180908203125,
0.049560546875,
-0.03302001953125,
0.04034423828125,
0.04962158203125,
-0.04510498046875,
-0.0362548828125,
-0.021697998046875,
-0.0117950439453125,
-0.0173797607421875,
-0.011322021484375,
0.0012054443359375,
0.0033397674560546875,
0.06658935546875,
0.0296478271484375,
0.006298065185546875,
-0.049224853515625,
0.069091796875,
-0.01511383056640625,
-0.059295654296875,
0.0133514404296875,
0.00661468505859375,
-0.008575439453125,
-0.0040130615234375,
0.0296630859375,
-0.0028438568115234375,
-0.002651214599609375,
0.005229949951171875,
-0.0230255126953125,
-0.00908660888671875,
-0.0018892288208007812,
-0.018707275390625,
-0.051788330078125,
0.01502227783203125,
0.0230560302734375,
-0.017913818359375,
-0.001705169677734375,
0.027252197265625,
-0.006328582763671875,
0.007476806640625,
0.07635498046875,
0.04229736328125,
0.048126220703125,
-0.07281494140625,
-0.0238800048828125,
0.0220184326171875,
0.0159454345703125,
-0.02423095703125,
-0.030609130859375,
-0.00881195068359375,
0.01202392578125,
0.01389312744140625,
0.0234832763671875,
-0.007175445556640625,
0.005207061767578125,
-0.0024318695068359375,
-0.010528564453125,
-0.0198822021484375,
0.0634765625,
0.002056121826171875,
0.0240478515625,
-0.038330078125,
0.01122283935546875,
-0.0059967041015625,
-0.008026123046875,
0.001865386962890625,
0.0166473388671875,
0.009002685546875,
-0.03265380859375,
0.02716064453125,
0.0080413818359375,
0.003055572509765625,
0.014007568359375
] |
23ff578417f918c9745ea5f09065a2efb8dae6ea | Wordpress Stackexchange
Q: Set default image link target in Gutenberg image block I want to set the default target of the image block in Gutenberg to "Media File":
I've found solutions for the classic editor, and one that appears to work for Gutenberg galleries by editing the block's template, but I was under the impression that the intended way to modify the editor's behaviour is via JavaScript hooks in the block editor.
Is there a way to set the default target using a JavaScript hook in the block editor?
UPDATE: I made a pull request on the Gutenberg GitHub repository to try to implement the ability to override the default link target with a plugin. The latest version is here. As of writing, this has not yet been merged.
A: Using the filter blocks.registerBlockType we can alter block registration settings. We simply need to target the core/image block and modify the default value for the attribute linkDestination which is none by default.
function modifyLinkDestinationDefault(settings, name) {
if (name !== "core/image") {
return settings;
}
settings.attributes.linkDestination.default = "media";
return settings;
}
wp.hooks.addFilter(
"blocks.registerBlockType",
"my-plugin/modify-linkDestination-default",
modifyLinkDestinationDefault
);
| Q: Set default image link target in Gutenberg image block I want to set the default target of the image block in Gutenberg to "Media File":
I've found solutions for the classic editor, and one that appears to work for Gutenberg galleries by editing the block's template, but I was under the impression that the intended way to modify the editor's behaviour is via JavaScript hooks in the block editor.
Is there a way to set the default target using a JavaScript hook in the block editor?
UPDATE: I made a pull request on the Gutenberg GitHub repository to try to implement the ability to override the default link target with a plugin. The latest version is here. As of writing, this has not yet been merged.
A: Using the filter blocks.registerBlockType we can alter block registration settings. We simply need to target the core/image block and modify the default value for the attribute linkDestination which is none by default.
function modifyLinkDestinationDefault(settings, name) {
if (name !== "core/image") {
return settings;
}
settings.attributes.linkDestination.default = "media";
return settings;
}
wp.hooks.addFilter(
"blocks.registerBlockType",
"my-plugin/modify-linkDestination-default",
modifyLinkDestinationDefault
);
A: This was (finally) fixed to Gutenberg (and will be applicable for both the image and the gallery blocks); and will add an option to WordPress options' database table.
this was done in
https://github.com/WordPress/gutenberg/pull/25578 and https://github.com/WordPress/gutenberg/pull/25582
It'll be added to WordPress 5.6 but it's already available in the Gutenberg plugin.
To link the image to the file by default, issue the following in your theme or plugin:
add_action( 'after_setup_theme', function() {
update_option( 'image_default_link_type', 'file' );
});
Replace file with attachment if you want to link to the attachment page for some reason, or none if you don't want to the image to have a link.
As for javascript: modifying blocks so that they alter the site's options is possible in Gutenberg although I haven't gotten it to work yet, check out:
https://github.com/WordPress/gutenberg/issues/20731
Note that if you try do the image_default_link_type equivalent in javascript, don't use "file" and "post" as the options (as long as this ticket is open) - see https://github.com/WordPress/gutenberg/issues/25587
A: The correct default attributes for linkTo in core/gallery it's that :
settings.attributes.linkTo.default = 'file';
| wordpress | {
"language": "en",
"length": 359,
"provenance": "stackexchange_00019.jsonl.gz:492476",
"question_score": "11",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/327396"
} | [
-0.0031261444091796875,
-0.0123748779296875,
-0.0101165771484375,
0.027496337890625,
-0.0087432861328125,
-0.0233306884765625,
0.07421875,
-0.004451751708984375,
0.0178070068359375,
0.03472900390625,
0.026763916015625,
-0.0309295654296875,
0.039642333984375,
-0.04205322265625,
-0.00786590576171875,
0.010498046875,
0.033538818359375,
0.0018148422241210938,
0.0214385986328125,
-0.003704071044921875,
-0.017822265625,
0.013275146484375,
0.0284881591796875,
0.034912109375,
0.01186370849609375,
-0.0091094970703125,
0.06549072265625,
-0.0325927734375,
0.020782470703125,
-0.025848388671875,
0.0213165283203125,
-0.002330780029296875,
0.041107177734375,
-0.031707763671875,
-0.0100250244140625,
-0.007793426513671875,
0.0272369384765625,
-0.03326416015625,
-0.03985595703125,
0.043731689453125,
0.0096435546875,
-0.00397491455078125,
-0.0277557373046875,
-0.0142974853515625,
-0.03607177734375,
-0.0181121826171875,
-0.0167388916015625,
-0.0355224609375,
0.053619384765625,
0.038238525390625,
-0.031829833984375,
0.06719970703125,
-0.035736083984375,
0.0086822509765625,
-0.0013294219970703125,
-0.0258636474609375,
-0.0181427001953125,
0.0367431640625,
-0.0109405517578125,
0.0692138671875,
0.006809234619140625,
0.0631103515625,
-0.033477783203125,
-0.056427001953125,
0.044464111328125,
-0.033660888671875,
0.01326751708984375,
0.046142578125,
-0.01090240478515625,
0.0418701171875,
0.0159149169921875,
-0.012969970703125,
-0.007610321044921875,
-0.048675537109375,
0.00003725290298461914,
0.033538818359375,
-0.023101806640625,
-0.02362060546875,
0.032470703125,
-0.015289306640625,
0.0026226043701171875,
-0.036590576171875,
0.01340484619140625,
-0.023773193359375,
0.034271240234375,
0.0201416015625,
-0.0026798248291015625,
-0.0196380615234375,
-0.02642822265625,
-0.01175689697265625,
-0.017852783203125,
0.0037403106689453125,
-0.0145263671875,
-0.017791748046875,
-0.044158935546875,
-0.01300811767578125,
0.00757598876953125,
-0.00582122802734375,
-0.0025577545166015625,
0.00243377685546875,
-0.024078369140625,
-0.02691650390625,
-0.0105743408203125,
-0.0108489990234375,
0.0018901824951171875,
0.01166534423828125,
-0.0218353271484375,
0.0003910064697265625,
0.0253448486328125,
0.032318115234375,
-0.014556884765625,
-0.03173828125,
-0.01030731201171875,
0.043701171875,
-0.05609130859375,
-0.0289764404296875,
-0.06451416015625,
0.0217437744140625,
-0.033538818359375,
0.049591064453125,
0.00384521484375,
0.0211334228515625,
0.045501708984375,
-0.0053253173828125,
-0.00872802734375,
0.00870513916015625,
-0.0236053466796875,
-0.051910400390625,
-0.022003173828125,
-0.0347900390625,
-0.0247955322265625,
0.049957275390625,
0.08367919921875,
0.029296875,
0.028656005859375,
0.007686614990234375,
0.007183074951171875,
-0.014739990234375,
-0.0259246826171875,
0.005588531494140625,
-0.004291534423828125,
-0.0142822265625,
0.00476837158203125,
-0.032470703125,
0.022430419921875,
0.01861572265625,
0.029754638671875,
0.0024127960205078125,
-0.038421630859375,
-0.060821533203125,
0.037933349609375,
-0.04669189453125,
0.0284881591796875,
0.01012420654296875,
0.0189361572265625,
-0.039215087890625,
0.07220458984375,
-0.04638671875,
0.0140533447265625,
-0.069091796875,
0.01177978515625,
0.00928497314453125,
0.0258026123046875,
-0.033660888671875,
-0.04833984375,
-0.01959228515625,
-0.05377197265625,
-0.022369384765625,
0.0273895263671875,
0.0545654296875,
-0.007312774658203125,
-0.02740478515625,
-0.04315185546875,
-0.005584716796875,
-0.022674560546875,
0.00014126300811767578,
-0.0115966796875,
0.01320648193359375,
0.018402099609375,
0.0401611328125,
0.0029506683349609375,
-0.0294036865234375,
0.0457763671875,
0.0007352828979492188,
-0.01385498046875,
0.019775390625,
-0.0084075927734375,
0.03167724609375,
0.024139404296875,
0.02154541015625,
-0.0248870849609375,
-0.0033054351806640625,
-0.07562255859375,
0.0007119178771972656,
-0.0023441314697265625,
0.0214385986328125,
-0.0126800537109375,
0.0168609619140625,
-0.0001462697982788086,
-0.012847900390625,
0.041015625,
-0.01497650146484375,
0.01309967041015625,
-0.00478363037109375,
-0.0362548828125,
-0.01015472412109375,
-0.00997161865234375,
0.0235137939453125,
-0.02581787109375,
-0.01678466796875,
0.01438140869140625,
-0.046234130859375,
0.01352691650390625,
-0.0133209228515625,
0.00820159912109375,
0.014312744140625,
-0.01105499267578125,
0.0234222412109375,
-0.01161956787109375,
0.02471923828125,
-0.004802703857421875,
-0.0330810546875,
-0.00623321533203125,
0.03680419921875,
0.0830078125,
0.029449462890625,
-0.033477783203125,
-0.028839111328125,
0.0168914794921875,
0.044464111328125,
-0.13427734375,
0.0291290283203125,
-0.0182342529296875,
-0.02178955078125,
-0.01061248779296875,
0.0135955810546875,
0.0335693359375,
-0.05474853515625,
0.0238037109375,
0.0259552001953125,
0.0293121337890625,
-0.042449951171875,
-0.031280517578125,
-0.01580810546875,
0.007537841796875,
0.036956787109375,
0.045440673828125,
-0.0128326416015625,
0.0015172958374023438,
-0.010498046875,
-0.039520263671875,
-0.0108795166015625,
0.0276031494140625,
-0.0009984970092773438,
0.035614013671875,
0.015960693359375,
0.024200439453125,
-0.04595947265625,
-0.01081085205078125,
0.0265960693359375,
0.0191497802734375,
-0.00003826618194580078,
-0.055572509765625,
0.0309295654296875,
0.059326171875,
-0.0009617805480957031,
0.043914794921875,
0.0290374755859375,
-0.0565185546875,
0.03814697265625,
0.02166748046875,
-0.01161956787109375,
-0.01319122314453125,
0.02032470703125,
0.056671142578125,
-0.0247344970703125,
-0.0384521484375,
0.0052032470703125,
0.016448974609375,
0.019561767578125,
-0.0205535888671875,
0.00010603666305541992,
-0.00785064697265625,
-0.005016326904296875,
-0.0159454345703125,
-0.0228118896484375,
0.0216064453125,
0.00006282329559326172,
-0.0019588470458984375,
-0.011138916015625,
0.0411376953125,
-0.0165557861328125,
-0.00815582275390625,
-0.0155029296875,
-0.00027871131896972656,
-0.044952392578125,
0.0231475830078125,
-0.059906005859375,
0.04669189453125,
-0.06671142578125,
0.09332275390625,
0.0643310546875,
-0.0828857421875,
0.061553955078125,
-0.02252197265625,
0.0035037994384765625,
0.0080108642578125,
-0.0016145706176757812,
-0.03619384765625,
-0.059173583984375,
-0.005767822265625,
-0.034332275390625,
-0.0099334716796875,
-0.0260772705078125,
-0.037445068359375,
-0.024261474609375,
-0.0394287109375,
-0.0380859375,
-0.059661865234375,
0.01739501953125,
-0.044525146484375,
-0.041259765625,
0.002346038818359375,
0.01006317138671875,
-0.01556396484375,
-0.006866455078125,
0.04876708984375,
0.005657196044921875,
-0.0187530517578125,
0.01502227783203125,
-0.0312347412109375,
-0.018951416015625,
-0.034088134765625,
0.002521514892578125,
-0.0198822021484375,
0.0017347335815429688,
-0.006439208984375,
-0.003940582275390625,
-0.01277923583984375,
0.0009112358093261719,
0.01959228515625,
-0.007534027099609375,
0.0273895263671875,
-0.018585205078125,
0.03607177734375,
-0.037506103515625,
-0.00952911376953125,
0.019287109375,
0.0191650390625,
0.020355224609375,
-0.0257720947265625,
-0.00632476806640625,
-0.01837158203125,
-0.00473785400390625,
0.0093994140625,
0.0020904541015625,
0.0009493827819824219,
-0.006420135498046875,
0.007427215576171875,
-0.0289459228515625,
-0.01361083984375,
-0.0254058837890625,
-0.027740478515625,
0.06915283203125,
0.0208587646484375,
0.00482177734375,
-0.002536773681640625,
0.0335693359375,
0.006824493408203125,
0.006954193115234375,
0.055755615234375,
-0.02215576171875,
-0.035400390625,
-0.0311126708984375,
-0.046051025390625,
-0.0318603515625,
0.053131103515625,
0.002269744873046875,
-0.01354217529296875,
0.0022907257080078125,
0.036529541015625,
0.01128387451171875,
-0.004863739013671875,
-0.056121826171875,
-0.00641632080078125,
0.0281219482421875,
-0.0081787109375,
0.0460205078125,
-0.0251922607421875,
-0.01263427734375,
-0.01499176025390625,
0.0455322265625,
0.0036468505859375,
-0.021514892578125,
0.004253387451171875,
-0.00004982948303222656,
0.01253509521484375,
0.0004401206970214844,
-0.0142364501953125,
-0.0236358642578125,
-0.03839111328125,
0.0201568603515625,
0.018646240234375,
-0.043975830078125,
0.002231597900390625,
-0.0322265625,
-0.03692626953125,
-0.0290374755859375,
0.026397705078125,
0.0195159912109375,
-0.0019779205322265625,
0.052642822265625,
-0.035888671875,
0.0572509765625,
-0.0299835205078125,
-0.001926422119140625,
-0.07611083984375,
-0.0141143798828125,
-0.017578125,
0.057281494140625,
-0.01123809814453125,
0.018310546875,
-0.047027587890625,
0.03277587890625,
0.01812744140625,
0.023529052734375,
0.025848388671875,
-0.00005048513412475586,
0.06048583984375,
-0.027313232421875,
0.0278778076171875,
-0.03350830078125,
0.0006461143493652344,
-0.0389404296875,
-0.0594482421875,
0.036468505859375,
0.01031494140625,
0.07098388671875,
0.016510009765625,
-0.00748443603515625,
-0.0791015625,
-0.04632568359375,
-0.019378662109375,
0.00882720947265625,
0.02862548828125,
-0.031463623046875,
-0.0755615234375,
-0.0743408203125,
0.030792236328125,
-0.0021724700927734375,
-0.0002872943878173828,
-0.007427215576171875,
0.05267333984375,
0.0280303955078125,
-0.005306243896484375,
0.0175018310546875,
-0.006298065185546875,
0.004344940185546875,
0.007053375244140625,
0.0634765625,
0.0116424560546875,
0.0289306640625,
0.0345458984375,
-0.0158843994140625,
0.00849151611328125,
-0.05804443359375,
0.0692138671875,
-0.010650634765625,
-0.00855255126953125,
0.0161590576171875,
-0.019134521484375,
0.01032257080078125,
0.0103302001953125,
-0.018585205078125,
0.014984130859375,
-0.043212890625,
0.016571044921875,
0.01461029052734375,
-0.0014276504516601562,
-0.037200927734375,
0.031280517578125,
-0.0178680419921875,
0.0305633544921875,
0.060546875,
0.0406494140625,
-0.0140228271484375,
0.0032444000244140625,
0.065673828125,
0.00708770751953125,
0.02484130859375,
0.0005688667297363281,
-0.024810791015625,
0.04718017578125,
0.002635955810546875,
0.00046324729919433594,
0.0222015380859375,
0.019012451171875,
0.00847625732421875,
-0.0183563232421875,
-0.025482177734375,
-0.055023193359375,
-0.01421356201171875,
-0.0120849609375,
0.0185394287109375,
-0.006832122802734375,
0.06494140625,
0.033477783203125,
-0.03973388671875,
-0.00994110107421875,
-0.03314208984375,
-0.0188140869140625,
-0.077880859375,
0.0175933837890625,
-0.0012102127075195312,
0.0011873245239257812,
0.026824951171875,
0.04058837890625,
0.045257568359375,
0.0142669677734375,
-0.0330810546875,
0.0196685791015625,
-0.00836944580078125,
0.0272216796875,
0.0208282470703125,
-0.00045037269592285156,
-0.0126495361328125,
0.00615692138671875,
-0.0014524459838867188,
-0.0355224609375,
-0.00830078125,
0.003154754638671875,
0.033447265625,
-0.03082275390625,
-0.029571533203125,
0.0247955322265625,
-0.029937744140625,
0.007755279541015625,
0.0208587646484375,
-0.059967041015625,
-0.03863525390625,
-0.048736572265625,
-0.005344390869140625,
0.080078125,
-0.0189971923828125,
-0.029632568359375,
-0.032501220703125,
-0.030517578125,
0.018829345703125,
-0.0183258056640625,
-0.036346435546875,
0.04168701171875,
0.02325439453125,
0.0093841552734375,
-0.04095458984375,
-0.0284881591796875,
-0.02374267578125,
0.013671875,
-0.028228759765625,
0.009857177734375,
0.062286376953125,
-0.056793212890625,
0.0187835693359375,
-0.01131439208984375,
0.0094146728515625,
-0.0484619140625,
0.04583740234375,
0.0015935897827148438,
0.0239105224609375,
-0.01386260986328125,
-0.01263427734375,
-0.05096435546875,
-0.0030231475830078125,
0.00537109375,
-0.0277252197265625,
-0.016326904296875,
0.0014829635620117188,
0.029296875,
0.0190887451171875,
0.0014095306396484375,
-0.01861572265625,
0.005962371826171875,
0.0204315185546875,
0.010894775390625,
0.08038330078125,
0.006443023681640625,
-0.0170440673828125,
0.00506591796875,
0.0178070068359375,
-0.0282440185546875,
-0.06463623046875,
-0.015777587890625,
-0.00704193115234375,
-0.042999267578125,
-0.049835205078125,
0.03863525390625,
0.049163818359375,
0.0118255615234375,
0.027069091796875,
0.0196990966796875,
0.029693603515625,
-0.004730224609375,
-0.019256591796875,
-0.0150604248046875,
-0.041473388671875,
0.055816650390625,
-0.0189056396484375,
0.0157623291015625,
-0.041595458984375,
0.01444244384765625,
0.0577392578125,
-0.030059814453125,
-0.0225372314453125,
0.00356292724609375,
-0.006900787353515625,
0.0157470703125,
-0.0029773712158203125,
0.0025043487548828125,
-0.0106964111328125,
0.0277099609375,
-0.0243072509765625,
0.01561737060546875,
0.025238037109375,
-0.0008082389831542969,
0.0300750732421875,
0.0162506103515625,
-0.00083160400390625,
-0.0020580291748046875,
0.021484375,
0.0004100799560546875,
0.0157928466796875,
0.0128631591796875,
0.006183624267578125,
-0.0079498291015625,
-0.0254058837890625,
0.0226898193359375,
-0.0031261444091796875,
0.01403045654296875,
0.0187835693359375,
-0.0105743408203125,
-0.0115203857421875,
0.0129852294921875,
-0.00848388671875,
0.019073486328125,
-0.034332275390625,
-0.032318115234375,
-0.046966552734375,
-0.01026153564453125,
0.028533935546875,
0.006092071533203125,
0.01222991943359375,
-0.006275177001953125,
-0.005615234375,
-0.0175933837890625,
-0.06500244140625,
0.0245208740234375,
-0.042236328125,
0.015167236328125,
0.043975830078125,
-0.0269927978515625,
0.0079498291015625,
-0.02294921875,
-0.0075225830078125,
-0.019317626953125,
-0.033477783203125,
0.031951904296875,
0.0101776123046875,
0.038177490234375,
0.0195770263671875,
0.0201263427734375,
-0.0141143798828125,
-0.0193939208984375,
-0.02850341796875,
-0.0155792236328125,
-0.0164642333984375,
0.0245361328125,
0.0445556640625,
-0.01197052001953125,
0.023681640625,
0.001674652099609375,
-0.007480621337890625,
-0.00394439697265625,
0.01380157470703125,
0.0611572265625,
-0.0343017578125,
-0.03466796875,
0.0173492431640625,
0.016998291015625,
-0.0007643699645996094,
-0.006500244140625,
0.037628173828125,
-0.01419830322265625,
-0.01904296875,
-0.004886627197265625,
-0.0274505615234375,
-0.0216064453125,
-0.0128021240234375,
-0.02618408203125,
0.055084228515625,
-0.035552978515625,
0.0301055908203125,
0.01529693603515625,
0.0184783935546875,
0.0149078369140625,
0.018798828125,
-0.0201263427734375,
0.037933349609375,
-0.01474761962890625,
0.010009765625,
-0.0273895263671875,
0.01168060302734375,
-0.0090484619140625,
-0.002208709716796875,
0.07275390625,
0.0308837890625,
-0.0439453125,
-0.0285491943359375,
-0.0009870529174804688,
0.0167388916015625,
-0.025970458984375,
0.054840087890625,
-0.007045745849609375,
-0.039520263671875,
-0.0247955322265625,
0.005268096923828125,
0.012298583984375,
-0.049560546875,
-0.04217529296875,
0.0171051025390625,
0.00792694091796875,
0.0112762451171875,
0.0211944580078125,
0.041778564453125,
-0.04473876953125,
0.0019817352294921875,
0.06378173828125,
-0.10260009765625,
-0.004077911376953125,
0.07049560546875,
0.052001953125,
-0.01204681396484375,
0.0033016204833984375,
-0.03118896484375,
0.061370849609375,
0.00472259521484375,
-0.049896240234375,
0.053070068359375,
0.00719451904296875,
-0.01207733154296875,
-0.0201873779296875,
-0.019073486328125,
-0.017425537109375,
0.0145721435546875,
0.0384521484375,
-0.01346588134765625,
-0.004749298095703125,
-0.06787109375,
0.04144287109375,
0.0372314453125,
0.040802001953125,
-0.040130615234375,
-0.046295166015625,
0.00864410400390625,
0.0004401206970214844,
0.031524658203125,
-0.011749267578125,
0.0066680908203125,
-0.08319091796875,
-0.028900146484375,
-0.01535797119140625,
-0.0200042724609375,
-0.017364501953125,
0.027130126953125,
-0.025604248046875,
-0.0243377685546875,
0.019805908203125,
-0.0284423828125,
-0.0224609375,
0.031005859375,
0.0226287841796875,
-0.00098419189453125,
-0.0528564453125,
0.059814453125,
0.023681640625,
0.032073974609375,
-0.036041259765625,
0.0146484375,
-0.0253753662109375,
0.04949951171875,
-0.033905029296875,
0.004070281982421875,
-0.0172271728515625,
0.035125732421875,
0.034393310546875,
0.0316162109375,
0.041107177734375,
0.032318115234375,
0.01305389404296875,
0.00927734375,
0.0096893310546875,
-0.020263671875,
0.034698486328125,
-0.038299560546875,
0.027008056640625,
-0.0034084320068359375,
-0.024169921875,
0.008148193359375,
0.006195068359375,
0.037872314453125,
-0.02923583984375,
0.0489501953125,
0.00894927978515625,
-0.053009033203125,
-0.0129547119140625,
-0.0167388916015625,
0.09112548828125,
0.0156707763671875,
-0.023468017578125,
-0.0074462890625,
0.031768798828125,
-0.067138671875,
0.006587982177734375,
0.04364013671875,
-0.042938232421875,
0.04669189453125,
-0.01849365234375,
0.015350341796875,
0.04827880859375,
-0.07373046875,
0.0167083740234375,
0.018157958984375,
0.01056671142578125,
0.0028362274169921875,
0.009765625,
0.0150604248046875,
0.0259246826171875,
0.00444793701171875,
-0.02264404296875,
0.09820556640625,
-0.036102294921875,
-0.0090484619140625,
0.006114959716796875,
0.024139404296875,
-0.02410888671875,
0.034912109375,
-0.07025146484375,
0.0204010009765625,
0.036163330078125,
-0.005260467529296875,
-0.0252685546875,
-0.009063720703125,
0.0118408203125,
0.001220703125,
-0.0059051513671875,
-0.0308837890625,
0.02093505859375,
0.031494140625,
0.035797119140625,
-0.0261993408203125,
-0.08447265625,
-0.0804443359375,
0.0248870849609375,
0.003482818603515625,
0.03411865234375,
-0.020660400390625,
0.06329345703125,
-0.01018524169921875,
0.0062713623046875,
0.00914764404296875,
-0.06396484375,
0.0184478759765625,
0.032989501953125,
-0.035491943359375,
-0.022247314453125,
0.0037670135498046875,
-0.003849029541015625,
0.0188446044921875,
0.004482269287109375,
0.02783203125,
0.01678466796875,
0.0006580352783203125,
0.02960205078125,
0.0404052734375,
0.032073974609375,
-0.038330078125,
0.004528045654296875,
0.048370361328125,
-0.0186614990234375,
0.00896453857421875,
-0.002529144287109375,
-0.01837158203125,
-0.022552490234375,
-0.043182373046875,
-0.004474639892578125,
-0.0310821533203125,
-0.07470703125,
-0.05029296875,
0.01335906982421875,
0.01113128662109375,
0.01503753662109375,
-0.07293701171875,
0.0660400390625,
-0.0187225341796875,
0.015838623046875,
0.0014495849609375,
-0.00560760498046875,
-0.01800537109375,
-0.01052093505859375,
-0.046478271484375,
-0.06268310546875,
-0.050506591796875,
0.039764404296875,
-0.056976318359375,
0.02545166015625,
0.025238037109375,
-0.01482391357421875,
0.0257568359375,
0.01068115234375,
0.0163116455078125,
0.06744384765625,
-0.037109375,
-0.032806396484375,
-0.02264404296875,
0.02630615234375,
0.002170562744140625,
-0.032012939453125,
0.01288604736328125,
-0.0225830078125,
-0.006927490234375,
-0.020751953125,
-0.0047454833984375,
0.007110595703125,
-0.053680419921875,
-0.092041015625,
0.0205078125,
-0.0175018310546875,
-0.042022705078125,
-0.00762939453125,
0.05401611328125,
-0.0240631103515625,
0.0200653076171875,
0.01465606689453125,
-0.018707275390625,
0.038787841796875,
0.012176513671875,
-0.006378173828125,
0.00191497802734375,
0.00818634033203125,
-0.0018901824951171875,
0.0010652542114257812,
0.01049041748046875,
0.01387786865234375,
-0.0187225341796875,
0.0020618438720703125,
-0.0277557373046875,
0.04718017578125,
0.0120391845703125,
-0.04376220703125,
0.01270294189453125,
0.013916015625,
0.0260467529296875,
-0.0168304443359375,
-0.01076507568359375,
-0.033843994140625,
-0.0106353759765625,
0.0811767578125,
0.049163818359375,
0.01329803466796875,
-0.0311431884765625,
0.01349639892578125,
-0.021881103515625,
0.00704193115234375,
-0.0264739990234375,
0.0008454322814941406,
-0.04656982421875,
-0.0242919921875,
-0.0016078948974609375,
-0.032928466796875,
-0.01015472412109375,
0.01216888427734375,
-0.06671142578125,
0.01335906982421875,
-0.03985595703125,
-0.0073394775390625,
-0.0802001953125,
0.030731201171875,
0.04248046875,
-0.0234375,
0.0282440185546875,
-0.01093292236328125,
0.0008273124694824219,
0.048797607421875,
-0.01117706298828125,
0.00884246826171875,
0.0077362060546875,
-0.032745361328125,
0.00153350830078125,
0.001049041748046875,
-0.0189666748046875,
-0.003421783447265625,
-0.005855560302734375,
-0.01314544677734375,
0.0015716552734375,
-0.01209259033203125,
-0.003978729248046875,
0.014556884765625,
0.0265960693359375,
-0.01016998291015625,
0.04571533203125,
-0.019378662109375,
-0.032257080078125,
0.01129150390625,
-0.004329681396484375,
-0.031005859375,
0.004451751708984375,
0.0035991668701171875,
-0.0533447265625,
0.0229339599609375,
0.031951904296875,
0.0458984375,
-0.00028252601623535156,
-0.0002646446228027344,
-0.01320648193359375,
0.01953125,
0.00138092041015625
] |
5ea049850cb56da54358114bd3a1ad5ca059705d | Wordpress Stackexchange
Q: Add metabox to document tab in gutenberg
How can I add custom metabox in document tab in gutenberg?
There is documentation about adding plugin sidebar here, but I'm looking for adding custom metabox in existing document tab.
A: I took a look at Richard Tape's article which required you create your own Gutenberg React component (which is likely the best, most customisable way to do it). But I also have Advanced Custom Fields Pro installed (it has to be version 5.8.0-beta3). That provides a much easier method to add a custom meta field to the Gutenberg sidebar.
Create a new field in ACF Pro and in the Field group settings, ensure you have the following settings configured:
*
*Style: Standard (WP Metabox)
*Position: Side
This has worked for me ( added a Reading time field). Hope this helps.
| Q: Add metabox to document tab in gutenberg
How can I add custom metabox in document tab in gutenberg?
There is documentation about adding plugin sidebar here, but I'm looking for adding custom metabox in existing document tab.
A: I took a look at Richard Tape's article which required you create your own Gutenberg React component (which is likely the best, most customisable way to do it). But I also have Advanced Custom Fields Pro installed (it has to be version 5.8.0-beta3). That provides a much easier method to add a custom meta field to the Gutenberg sidebar.
Create a new field in ACF Pro and in the Field group settings, ensure you have the following settings configured:
*
*Style: Standard (WP Metabox)
*Position: Side
This has worked for me ( added a Reading time field). Hope this helps.
A: Here is the solution. Hope it will help you
const { registerPlugin } = wp.plugins;
const { PluginDocumentSettingPanel } = wp.editPost;
const MyDocumentSettingTest = () => (
<PluginDocumentSettingPanel className="my-document-setting-plugin" title="My Panel">
<p>My Document Setting Panel</p>
</PluginDocumentSettingPanel>
);
registerPlugin( 'document-setting-test', { render: MyDocumentSettingTest } );
https://github.com/WordPress/gutenberg/blob/master/packages/edit-post/src/components/sidebar/plugin-document-setting-panel/index.js#L86
A: https://wordpress.org/gutenberg/handbook/designers-developers/developers/backward-compatibility/meta-box/
and
https://developer.wordpress.org/reference/functions/add_meta_box/
use $context = 'side'
Example:
add_meta_box( 'my-meta-box', 'My Meta Box', 'my_meta_box_callback',
null, 'side', 'high',
array(
'__back_compat_meta_box' => true,
)
);
| wordpress | {
"language": "en",
"length": 209,
"provenance": "stackexchange_00019.jsonl.gz:492520",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/327538"
} | [
0.0150909423828125,
-0.033416748046875,
0.02191162109375,
-0.01678466796875,
-0.0338134765625,
0.003368377685546875,
-0.00637054443359375,
-0.0033416748046875,
-0.004833221435546875,
0.04302978515625,
-0.0007700920104980469,
-0.0019855499267578125,
0.014892578125,
-0.0238494873046875,
-0.0200958251953125,
-0.005687713623046875,
0.038909912109375,
0.0111083984375,
0.069580078125,
0.00778961181640625,
0.00778961181640625,
0.03533935546875,
0.03497314453125,
0.01544952392578125,
0.031097412109375,
-0.0377197265625,
0.04193115234375,
-0.0261688232421875,
0.040283203125,
-0.0117034912109375,
0.0272369384765625,
-0.006870269775390625,
0.03265380859375,
0.006313323974609375,
-0.0193939208984375,
0.03936767578125,
0.039306640625,
-0.0166473388671875,
-0.00684356689453125,
0.025146484375,
0.054290771484375,
-0.031524658203125,
-0.042205810546875,
0.0374755859375,
-0.0248260498046875,
-0.004779815673828125,
0.01885986328125,
-0.041168212890625,
0.02569580078125,
0.00896453857421875,
-0.021392822265625,
-0.01091766357421875,
-0.0162200927734375,
-0.01242828369140625,
-0.019439697265625,
-0.045562744140625,
0.0191497802734375,
-0.0021514892578125,
0.0067901611328125,
0.005474090576171875,
-0.01947021484375,
0.037078857421875,
0.005550384521484375,
0.0003876686096191406,
-0.0011577606201171875,
-0.0233154296875,
-0.034149169921875,
0.0207672119140625,
-0.01114654541015625,
0.0119171142578125,
0.02496337890625,
-0.03411865234375,
0.00768280029296875,
-0.07281494140625,
-0.01090240478515625,
0.0278167724609375,
-0.003986358642578125,
-0.040191650390625,
0.008331298828125,
-0.036712646484375,
-0.01506805419921875,
0.0295257568359375,
-0.0224761962890625,
-0.026458740234375,
0.007480621337890625,
-0.006877899169921875,
-0.028839111328125,
-0.00852203369140625,
-0.02056884765625,
-0.0167388916015625,
-0.002857208251953125,
-0.07135009765625,
-0.04620361328125,
0.02728271484375,
0.01568603515625,
-0.039825439453125,
0.00033092498779296875,
0.01056671142578125,
-0.01433563232421875,
0.0027446746826171875,
0.01971435546875,
-0.0377197265625,
0.0181884765625,
-0.01105499267578125,
0.0183258056640625,
0.05743408203125,
-0.050262451171875,
-0.0308380126953125,
0.0258636474609375,
0.025299072265625,
0.0104217529296875,
-0.054595947265625,
0.0180511474609375,
-0.00695037841796875,
-0.0249786376953125,
0.00023305416107177734,
0.0031337738037109375,
0.00496673583984375,
-0.000789642333984375,
0.0011034011840820312,
-0.0084381103515625,
0.0185699462890625,
0.0263671875,
-0.037872314453125,
0.01654052734375,
-0.0083465576171875,
-0.038543701171875,
-0.01145172119140625,
-0.0419921875,
-0.00640106201171875,
-0.0267486572265625,
0.004238128662109375,
0.045501708984375,
0.092041015625,
0.044891357421875,
0.0023975372314453125,
0.082763671875,
-0.00623321533203125,
0.008056640625,
0.005863189697265625,
-0.0106201171875,
-0.01239013671875,
-0.016937255859375,
-0.0289764404296875,
-0.04791259765625,
0.052642822265625,
0.0222625732421875,
-0.016754150390625,
-0.036773681640625,
-0.061737060546875,
-0.026336669921875,
-0.04150390625,
0.019012451171875,
0.028533935546875,
-0.004940032958984375,
0.0021457672119140625,
0.043792724609375,
-0.036865234375,
-0.001041412353515625,
-0.0303955078125,
0.00044536590576171875,
-0.005462646484375,
-0.0189361572265625,
-0.0257415771484375,
-0.0210723876953125,
-0.002445220947265625,
-0.00693511962890625,
0.0142364501953125,
0.0304718017578125,
0.01470947265625,
0.0131378173828125,
-0.0091705322265625,
0.010986328125,
0.00919342041015625,
-0.0014371871948242188,
0.007965087890625,
-0.0005173683166503906,
0.043701171875,
0.01309967041015625,
0.01280975341796875,
0.00687408447265625,
-0.031829833984375,
0.07623291015625,
-0.0204925537109375,
-0.01561737060546875,
0.0168914794921875,
-0.00856781005859375,
0.01473236083984375,
0.02618408203125,
0.01319122314453125,
-0.0340576171875,
0.002109527587890625,
-0.06536865234375,
-0.02337646484375,
0.0017175674438476562,
0.0169830322265625,
-0.00977325439453125,
0.0019178390502929688,
0.0030536651611328125,
0.0178680419921875,
-0.0229339599609375,
-0.03668212890625,
0.0160675048828125,
0.01401519775390625,
0.005565643310546875,
-0.01306915283203125,
-0.0007295608520507812,
0.01494598388671875,
0.017852783203125,
0.0016012191772460938,
-0.01041412353515625,
-0.040924072265625,
0.007678985595703125,
-0.005588531494140625,
-0.042755126953125,
-0.01445770263671875,
0.0173492431640625,
0.038177490234375,
0.015899658203125,
-0.004909515380859375,
0.0196990966796875,
0.008056640625,
0.0171051025390625,
0.00780487060546875,
0.042236328125,
-0.01470947265625,
-0.004146575927734375,
-0.0228271484375,
0.018096923828125,
0.031158447265625,
-0.0731201171875,
0.01238250732421875,
0.0163726806640625,
-0.0172576904296875,
-0.01983642578125,
0.006160736083984375,
0.0157623291015625,
-0.054473876953125,
0.002841949462890625,
0.02984619140625,
0.02996826171875,
0.00795745849609375,
0.001468658447265625,
0.0212249755859375,
0.0233001708984375,
-0.00839996337890625,
0.01155853271484375,
-0.002506256103515625,
-0.0164031982421875,
0.01256561279296875,
-0.051361083984375,
0.0261077880859375,
0.042388916015625,
-0.0162506103515625,
0.00719451904296875,
0.04156494140625,
-0.013580322265625,
-0.0184783935546875,
-0.0038623809814453125,
-0.004241943359375,
0.0138092041015625,
0.0267486572265625,
-0.0289154052734375,
0.0115203857421875,
0.0694580078125,
-0.00223541259765625,
0.084228515625,
0.07452392578125,
-0.007381439208984375,
-0.00798797607421875,
-0.01267242431640625,
0.0279541015625,
-0.01056671142578125,
0.0196075439453125,
0.03350830078125,
0.046234130859375,
-0.039520263671875,
-0.0186920166015625,
0.047393798828125,
0.02362060546875,
-0.00911712646484375,
-0.02044677734375,
-0.03558349609375,
0.00731658935546875,
0.038909912109375,
-0.031341552734375,
0.00836181640625,
-0.0011014938354492188,
-0.0090179443359375,
-0.052520751953125,
-0.001506805419921875,
-0.009765625,
-0.024566650390625,
0.0107421875,
0.036041259765625,
-0.0535888671875,
0.0213470458984375,
-0.07098388671875,
0.0614013671875,
-0.072021484375,
0.06280517578125,
0.058258056640625,
-0.066162109375,
0.033294677734375,
-0.00868988037109375,
0.00421905517578125,
-0.037139892578125,
0.0215911865234375,
0.00667572021484375,
-0.05267333984375,
-0.00652313232421875,
0.007312774658203125,
0.00684356689453125,
-0.038238525390625,
0.031768798828125,
0.0017528533935546875,
0.0151824951171875,
-0.0006117820739746094,
-0.0191192626953125,
-0.0244293212890625,
0.00722503662109375,
-0.05145263671875,
-0.05108642578125,
-0.0206146240234375,
-0.0499267578125,
0.0227203369140625,
-0.00791168212890625,
-0.0118865966796875,
-0.02911376953125,
-0.027008056640625,
-0.044586181640625,
-0.06158447265625,
-0.0704345703125,
-0.0223846435546875,
-0.0054473876953125,
0.0019664764404296875,
0.001361846923828125,
0.0299530029296875,
-0.005214691162109375,
-0.0181427001953125,
0.007526397705078125,
-0.0007805824279785156,
0.01055908203125,
-0.01438140869140625,
0.05908203125,
-0.06805419921875,
0.01187896728515625,
0.0033130645751953125,
0.030029296875,
0.045745849609375,
-0.04327392578125,
-0.0079803466796875,
-0.032745361328125,
-0.006763458251953125,
-0.0174407958984375,
-0.00916290283203125,
0.0212249755859375,
-0.01425933837890625,
-0.0166778564453125,
-0.057861328125,
0.0203399658203125,
0.05120849609375,
0.032928466796875,
-0.050079345703125,
-0.07244873046875,
-0.029296875,
-0.0171051025390625,
0.045196533203125,
0.0252685546875,
0.0275421142578125,
0.053955078125,
0.0218658447265625,
-0.053558349609375,
-0.0239105224609375,
-0.03619384765625,
-0.0413818359375,
0.03717041015625,
-0.01629638671875,
0.057403564453125,
0.01036834716796875,
0.032135009765625,
-0.01053619384765625,
0.0306396484375,
-0.047607421875,
-0.04388427734375,
0.0452880859375,
-0.0213623046875,
0.00879669189453125,
-0.0309906005859375,
-0.0261383056640625,
0.0143585205078125,
0.09088134765625,
-0.0254364013671875,
-0.0260772705078125,
0.0277252197265625,
0.01360321044921875,
-0.0020503997802734375,
0.01519012451171875,
-0.033203125,
-0.026214599609375,
-0.0303802490234375,
0.01540374755859375,
0.0235443115234375,
-0.033111572265625,
-0.0284881591796875,
0.035552978515625,
-0.045013427734375,
-0.0017213821411132812,
0.053924560546875,
-0.05084228515625,
0.010284423828125,
0.043060302734375,
0.003284454345703125,
-0.0186767578125,
-0.0341796875,
-0.0194854736328125,
-0.11016845703125,
-0.00490570068359375,
-0.05645751953125,
0.09124755859375,
0.026885986328125,
-0.0267791748046875,
-0.009033203125,
0.059112548828125,
0.02716064453125,
-0.01251220703125,
0.050933837890625,
-0.002445220947265625,
0.051239013671875,
-0.0018396377563476562,
0.041046142578125,
-0.03704833984375,
0.001125335693359375,
0.01267242431640625,
-0.00881195068359375,
0.0799560546875,
-0.0090484619140625,
-0.01386260986328125,
0.0167236328125,
-0.0255126953125,
0.0024261474609375,
-0.037017822265625,
-0.0654296875,
0.0006060600280761719,
-0.03204345703125,
-0.0163116455078125,
-0.0225067138671875,
-0.00011670589447021484,
0.011322021484375,
0.0302276611328125,
-0.0113372802734375,
0.042266845703125,
0.0465087890625,
0.0174407958984375,
-0.017364501953125,
-0.131591796875,
-0.025665283203125,
0.02496337890625,
-0.007038116455078125,
0.0134429931640625,
-0.01129150390625,
-0.0306396484375,
0.073486328125,
-0.025421142578125,
0.0195159912109375,
-0.04791259765625,
0.067138671875,
-0.0248870849609375,
-0.0163726806640625,
0.0283660888671875,
-0.041229248046875,
0.021270751953125,
-0.01206207275390625,
-0.0180206298828125,
-0.0014257431030273438,
-0.00860595703125,
0.028839111328125,
-0.01470184326171875,
0.0313720703125,
-0.0160064697265625,
-0.0089569091796875,
-0.0025959014892578125,
0.020477294921875,
0.0826416015625,
0.0221405029296875,
-0.003940582275390625,
0.033782958984375,
0.021820068359375,
-0.024658203125,
-0.0193023681640625,
-0.040496826171875,
-0.01568603515625,
-0.013214111328125,
0.0280914306640625,
-0.02813720703125,
0.00884246826171875,
0.00449371337890625,
0.06231689453125,
-0.0015354156494140625,
-0.04400634765625,
-0.01904296875,
-0.012359619140625,
0.0161895751953125,
0.00818634033203125,
0.0047607421875,
0.0215911865234375,
0.049224853515625,
-0.045989990234375,
-0.0150909423828125,
0.022552490234375,
0.002521514892578125,
-0.064697265625,
0.001434326171875,
0.003849029541015625,
-0.01116943359375,
-0.01708984375,
0.0718994140625,
-0.06170654296875,
0.046661376953125,
0.01319122314453125,
0.00705718994140625,
0.00353240966796875,
0.0333251953125,
0.047271728515625,
-0.047119140625,
-0.0013675689697265625,
-0.0035305023193359375,
-0.01071929931640625,
-0.022064208984375,
0.01210784912109375,
-0.00696563720703125,
0.022186279296875,
-0.0049896240234375,
-0.033599853515625,
0.034820556640625,
-0.046966552734375,
0.0015478134155273438,
-0.0360107421875,
-0.03851318359375,
0.004421234130859375,
0.0015163421630859375,
-0.0204010009765625,
-0.01427459716796875,
0.0006327629089355469,
0.0229339599609375,
0.0205535888671875,
0.006771087646484375,
0.049774169921875,
-0.03668212890625,
0.036163330078125,
-0.0201416015625,
-0.033905029296875,
-0.0152740478515625,
0.01568603515625,
-0.00800323486328125,
-0.018768310546875,
-0.07891845703125,
0.01128387451171875,
0.0119781494140625,
0.03021240234375,
-0.056365966796875,
0.01873779296875,
-0.03955078125,
0.04449462890625,
-0.045013427734375,
0.03173828125,
0.004993438720703125,
0.0284423828125,
0.0186309814453125,
-0.027069091796875,
-0.0219573974609375,
-0.015899658203125,
-0.014007568359375,
-0.033721923828125,
0.00508880615234375,
-0.00447845458984375,
0.0166473388671875,
0.047607421875,
-0.0096282958984375,
-0.037750244140625,
0.005096435546875,
-0.0148468017578125,
-0.0244293212890625,
0.035614013671875,
-0.004581451416015625,
0.039703369140625,
-0.00548553466796875,
0.044097900390625,
0.005542755126953125,
0.007587432861328125,
-0.012298583984375,
-0.022979736328125,
-0.0180816650390625,
-0.053955078125,
-0.0178680419921875,
-0.0121917724609375,
0.0115814208984375,
0.05499267578125,
0.044219970703125,
0.005889892578125,
0.027740478515625,
-0.0247802734375,
-0.01438140869140625,
-0.0143585205078125,
0.006443023681640625,
-0.015777587890625,
0.0283203125,
-0.0167236328125,
-0.0248565673828125,
0.04803466796875,
-0.017333984375,
-0.0166778564453125,
0.046295166015625,
-0.03369140625,
0.050872802734375,
0.035400390625,
-0.043670654296875,
0.034027099609375,
0.0159454345703125,
0.01496124267578125,
0.0390625,
-0.005626678466796875,
0.0246429443359375,
-0.0026912689208984375,
0.0276947021484375,
0.002742767333984375,
-0.01459503173828125,
0.04852294921875,
0.01317596435546875,
-0.035919189453125,
0.039337158203125,
-0.0293426513671875,
0.0101165771484375,
0.01461029052734375,
0.0325927734375,
-0.06268310546875,
0.0254669189453125,
-0.0088043212890625,
0.021942138671875,
0.051025390625,
-0.008575439453125,
-0.00033092498779296875,
-0.0301971435546875,
0.023193359375,
0.0007977485656738281,
-0.0206298828125,
0.01342010498046875,
-0.00109100341796875,
-0.021484375,
-0.04473876953125,
-0.0174560546875,
0.00836944580078125,
0.038055419921875,
0.00499725341796875,
-0.0296173095703125,
0.01111602783203125,
0.041229248046875,
0.02581787109375,
0.0020236968994140625,
-0.03448486328125,
-0.0251617431640625,
-0.01399993896484375,
-0.01091766357421875,
-0.0467529296875,
0.041412353515625,
0.0174560546875,
0.072998046875,
0.058380126953125,
0.007663726806640625,
0.01763916015625,
0.00013554096221923828,
0.04510498046875,
-0.0274505615234375,
-0.01284027099609375,
-0.0133514404296875,
-0.02386474609375,
0.0078887939453125,
0.01393890380859375,
-0.0172119140625,
-0.029296875,
-0.0087890625,
0.03179931640625,
0.0709228515625,
-0.0099945068359375,
-0.042724609375,
0.0225677490234375,
0.028594970703125,
-0.0019664764404296875,
0.0264434814453125,
0.04388427734375,
-0.051239013671875,
-0.0024471282958984375,
0.053070068359375,
0.00884246826171875,
-0.02777099609375,
0.0626220703125,
-0.0665283203125,
0.10089111328125,
0.0263519287109375,
0.0102691650390625,
-0.0299835205078125,
0.0513916015625,
-0.026702880859375,
0.0201263427734375,
-0.0191192626953125,
0.026641845703125,
0.0141448974609375,
0.033111572265625,
-0.05792236328125,
-0.046783447265625,
-0.006870269775390625,
0.097412109375,
0.018890380859375,
-0.002460479736328125,
-0.0289459228515625,
-0.0199127197265625,
0.033935546875,
0.05340576171875,
0.016998291015625,
0.017486572265625,
-0.0081024169921875,
0.0190887451171875,
-0.019317626953125,
-0.0112457275390625,
0.022918701171875,
-0.032379150390625,
-0.06689453125,
0.0201568603515625,
0.0090179443359375,
-0.0020389556884765625,
-0.03863525390625,
0.045928955078125,
0.0181427001953125,
-0.031768798828125,
-0.00959014892578125,
-0.0226593017578125,
-0.0268402099609375,
0.06427001953125,
0.00463104248046875,
-0.00550079345703125,
-0.014373779296875,
-0.032470703125,
0.03253173828125,
-0.006793975830078125,
0.034759521484375,
0.00811004638671875,
0.0283050537109375,
0.00968170166015625,
-0.006237030029296875,
0.03509521484375,
0.0513916015625,
-0.0682373046875,
0.0218353271484375,
-0.019744873046875,
-0.009246826171875,
-0.047882080078125,
0.059173583984375,
0.019805908203125,
0.0055084228515625,
-0.043304443359375,
-0.0267486572265625,
-0.0034046173095703125,
-0.01239013671875,
0.0275115966796875,
-0.0204620361328125,
0.01058197021484375,
0.0245208740234375,
-0.00228118896484375,
-0.0015172958374023438,
-0.004779815673828125,
-0.0341796875,
0.03936767578125,
-0.0177459716796875,
0.006893157958984375,
-0.01136016845703125,
-0.0249786376953125,
-0.046478271484375,
-0.00038552284240722656,
0.01070404052734375,
0.033599853515625,
0.048248291015625,
0.0299835205078125,
0.038726806640625,
-0.027557373046875,
-0.022003173828125,
0.018157958984375,
-0.0033321380615234375,
0.028167724609375,
-0.0215606689453125,
-0.023712158203125,
0.0312042236328125,
0.0338134765625,
0.0297393798828125,
0.0689697265625,
0.031524658203125,
0.03955078125,
0.064208984375,
0.0144195556640625,
0.0309906005859375,
-0.00135040283203125,
0.00032520294189453125,
-0.056182861328125,
0.07110595703125,
0.04510498046875,
0.03509521484375,
-0.0098876953125,
0.020843505859375,
0.06964111328125,
0.0009598731994628906,
0.00934600830078125,
0.0078277587890625,
-0.045135498046875,
0.035369873046875,
-0.01100921630859375,
0.070556640625,
0.01546478271484375,
-0.044952392578125,
-0.01096343994140625,
-0.001972198486328125,
-0.05682373046875,
0.022430419921875,
0.05865478515625,
-0.0123291015625,
-0.0013256072998046875,
-0.0087890625,
0.00994110107421875,
0.00934600830078125,
-0.023162841796875,
0.031646728515625,
0.0665283203125,
0.00777435302734375,
0.036224365234375,
-0.0858154296875,
-0.04168701171875,
0.0111236572265625,
0.01275634765625,
-0.034637451171875,
0.055999755859375,
0.015625,
-0.01346588134765625,
-0.0227203369140625,
-0.00295257568359375,
-0.007434844970703125,
-0.023895263671875,
0.0173492431640625,
0.0215301513671875,
-0.011077880859375,
-0.0103607177734375,
-0.0083160400390625,
0.0029354095458984375,
0.031707763671875,
-0.0226593017578125,
-0.00913238525390625,
-0.0243072509765625,
0.024078369140625,
-0.0055999755859375,
-0.005035400390625,
-0.035858154296875,
-0.036712646484375,
-0.052093505859375,
-0.01427459716796875,
0.0202484130859375,
-0.00878143310546875,
-0.01165771484375,
0.040618896484375,
0.046173095703125,
0.037811279296875,
0.00478363037109375,
0.005962371826171875,
0.0382080078125,
0.045135498046875,
-0.047088623046875,
-0.007793426513671875,
-0.026214599609375,
-0.0201568603515625,
0.0311126708984375,
-0.01145172119140625,
0.0194244384765625,
0.0174713134765625,
-0.0139007568359375,
0.029693603515625,
0.038726806640625,
0.0400390625,
-0.0233001708984375,
0.0036869049072265625,
0.046844482421875,
-0.019378662109375,
-0.007808685302734375,
0.054779052734375,
-0.0175323486328125,
-0.04864501953125,
-0.009368896484375,
0.01320648193359375,
-0.03887939453125,
-0.01070404052734375,
-0.080078125,
0.0189208984375,
0.0097503662109375,
0.0016965866088867188,
-0.053253173828125,
0.0288543701171875,
0.00958251953125,
0.0295562744140625,
-0.005687713623046875,
-0.0036067962646484375,
0.0032062530517578125,
0.062042236328125,
-0.016571044921875,
-0.0379638671875,
-0.0236968994140625,
0.0204010009765625,
-0.04632568359375,
0.00634765625,
-0.004322052001953125,
-0.017791748046875,
0.04351806640625,
-0.01654052734375,
0.0295257568359375,
0.019866943359375,
0.04180908203125,
-0.0226898193359375,
0.0065155029296875,
0.0139617919921875,
-0.004932403564453125,
-0.047821044921875,
-0.002735137939453125,
-0.0192413330078125,
0.01209259033203125,
-0.02642822265625,
0.003841400146484375,
0.018707275390625,
-0.0303955078125,
-0.053802490234375,
-0.0241851806640625,
0.00818634033203125,
-0.04351806640625,
-0.0423583984375,
-0.0023746490478515625,
0.006137847900390625,
0.06689453125,
-0.00933837890625,
0.002979278564453125,
-0.031585693359375,
0.0088958740234375,
0.0009222030639648438,
-0.0050506591796875,
0.0263671875,
0.0013475418090820312,
-0.040283203125,
-0.0099639892578125,
-0.003818511962890625,
-0.02398681640625,
0.0013189315795898438,
-0.031341552734375,
0.0205841064453125,
0.01557159423828125,
-0.06085205078125,
-0.042816162109375,
0.0049285888671875,
0.036102294921875,
-0.01227569580078125,
-0.061553955078125,
0.01340484619140625,
0.005146026611328125,
0.05706787109375,
0.0162811279296875,
0.004962921142578125,
-0.046905517578125,
0.03131103515625,
-0.0225982666015625,
-0.00887298583984375,
0.0128021240234375,
-0.004138946533203125,
-0.032867431640625,
-0.00458526611328125,
0.03729248046875,
-0.01499176025390625,
0.00627899169921875,
0.0229949951171875,
-0.021942138671875,
0.01442718505859375,
0.04217529296875,
-0.021240234375,
-0.0606689453125,
0.0215301513671875,
0.0823974609375,
-0.05926513671875,
-0.02777099609375,
0.040496826171875,
-0.0255889892578125,
0.0229949951171875,
0.02178955078125,
-0.002197265625,
-0.03289794921875,
-0.01800537109375,
0.034515380859375,
-0.016845703125,
0.05157470703125,
-0.0299224853515625,
-0.02899169921875,
-0.0009222030639648438,
-0.022308349609375,
-0.0185546875,
-0.0306549072265625,
-0.0033969879150390625,
0.0127716064453125,
-0.024871826171875,
0.05908203125,
-0.004253387451171875,
-0.031890869140625,
-0.00920867919921875,
0.0099639892578125,
0.00959014892578125,
-0.0081787109375,
0.0218505859375,
-0.0174713134765625,
0.01043701171875,
-0.023895263671875,
0.003673553466796875,
-0.03643798828125,
0.01087188720703125,
0.0169219970703125,
-0.0092010498046875,
0.0295867919921875
] |
3eb256b2551a3a7c84005fc77ea0d5f9f0f4da01 | Wordpress Stackexchange
Q: How to hide custom taxonomy archives same way as hiding custom post types? I'm trying to make it so my custom taxonomy terms don't have archive pages. I achieved something similar for a custom post type using "publicly_queryable' => false". I tried this from the docs inside the register_taxonomy function:
'public' => false,
'rewrite' => false,
Which works.. but it also removes the ability to view the taxonomy from anywhere in the dashboard.
A: If you set public to false, this taxonomy will get hidden in all places.
So if you want it to be visible in wp-admin, you’ll have to also set show_ui to true - it will show the admin interface to manage this taxonomy.
You can see the full list of params here:
https://developer.wordpress.org/reference/functions/register_taxonomy/
And here is a generator, that may be a nicer way to create code for registering taxonomies/posts:
https://generatewp.com/taxonomy/
| Q: How to hide custom taxonomy archives same way as hiding custom post types? I'm trying to make it so my custom taxonomy terms don't have archive pages. I achieved something similar for a custom post type using "publicly_queryable' => false". I tried this from the docs inside the register_taxonomy function:
'public' => false,
'rewrite' => false,
Which works.. but it also removes the ability to view the taxonomy from anywhere in the dashboard.
A: If you set public to false, this taxonomy will get hidden in all places.
So if you want it to be visible in wp-admin, you’ll have to also set show_ui to true - it will show the admin interface to manage this taxonomy.
You can see the full list of params here:
https://developer.wordpress.org/reference/functions/register_taxonomy/
And here is a generator, that may be a nicer way to create code for registering taxonomies/posts:
https://generatewp.com/taxonomy/
| wordpress | {
"language": "en",
"length": 146,
"provenance": "stackexchange_00019.jsonl.gz:492562",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/327666"
} | [
0.0716552734375,
0.01473236083984375,
0.018463134765625,
0.007274627685546875,
0.016754150390625,
-0.04339599609375,
0.060089111328125,
-0.0545654296875,
0.0001977682113647461,
-0.0006513595581054688,
-0.01004791259765625,
-0.03680419921875,
-0.01397705078125,
-0.032440185546875,
0.00339508056640625,
-0.058990478515625,
0.0185546875,
0.0150299072265625,
0.03936767578125,
-0.00675201416015625,
0.028167724609375,
0.004978179931640625,
0.023834228515625,
-0.0258636474609375,
0.0306243896484375,
-0.034423828125,
0.07196044921875,
-0.052886962890625,
0.039306640625,
-0.023101806640625,
0.0234527587890625,
-0.01507568359375,
-0.01226043701171875,
0.03472900390625,
0.00872802734375,
-0.0086822509765625,
-0.00873565673828125,
0.03326416015625,
0.034271240234375,
-0.0009045600891113281,
0.0238494873046875,
-0.0323486328125,
-0.0194549560546875,
-0.002445220947265625,
-0.00876617431640625,
-0.0176544189453125,
0.0021228790283203125,
-0.0494384765625,
0.01629638671875,
0.007129669189453125,
0.02362060546875,
0.031158447265625,
0.038116455078125,
-0.03363037109375,
-0.01085662841796875,
0.007068634033203125,
-0.001659393310546875,
-0.0202484130859375,
0.0307464599609375,
-0.0236053466796875,
-0.035675048828125,
-0.011627197265625,
0.03631591796875,
-0.012298583984375,
0.006877899169921875,
0.0179595947265625,
0.002437591552734375,
0.031005859375,
-0.1041259765625,
-0.018341064453125,
0.037078857421875,
-0.07281494140625,
0.0338134765625,
-0.0020542144775390625,
-0.0540771484375,
-0.0467529296875,
0.038482666015625,
-0.028839111328125,
0.003574371337890625,
-0.0269622802734375,
0.0244140625,
-0.01236724853515625,
-0.03936767578125,
0.02783203125,
-0.002788543701171875,
0.056976318359375,
-0.00533294677734375,
-0.0267791748046875,
0.014251708984375,
0.007266998291015625,
0.0048675537109375,
-0.041534423828125,
-0.0199432373046875,
0.075439453125,
0.032470703125,
-0.0238494873046875,
0.0271148681640625,
0.05169677734375,
-0.0297698974609375,
-0.0026645660400390625,
-0.0036983489990234375,
-0.0285491943359375,
0.014190673828125,
-0.03167724609375,
0.015350341796875,
0.045013427734375,
-0.002696990966796875,
0.011199951171875,
0.044586181640625,
0.005802154541015625,
0.011199951171875,
-0.00429534912109375,
-0.0135498046875,
-0.0230560302734375,
-0.00347137451171875,
0.0306396484375,
-0.00753021240234375,
-0.005619049072265625,
0.002582550048828125,
0.0115509033203125,
0.038665771484375,
0.03778076171875,
0.031341552734375,
0.0227508544921875,
-0.001750946044921875,
0.0193939208984375,
-0.0293426513671875,
-0.059234619140625,
0.0251007080078125,
0.057220458984375,
-0.04351806640625,
-0.01483917236328125,
0.042724609375,
0.01447296142578125,
0.01708984375,
-0.038177490234375,
0.025238037109375,
-0.01132965087890625,
-0.0029811859130859375,
0.007007598876953125,
0.0201873779296875,
-0.00830841064453125,
-0.004726409912109375,
-0.011016845703125,
-0.007503509521484375,
0.0146484375,
0.02777099609375,
0.01535797119140625,
-0.01131439208984375,
-0.0292205810546875,
-0.0198516845703125,
-0.003631591796875,
0.0792236328125,
0.00475311279296875,
-0.057861328125,
-0.005706787109375,
0.05255126953125,
-0.0251312255859375,
-0.07379150390625,
-0.060516357421875,
0.016143798828125,
-0.011810302734375,
-0.0248870849609375,
0.0184783935546875,
-0.00818634033203125,
0.03271484375,
-0.011871337890625,
0.004390716552734375,
0.033050537109375,
-0.0034046173095703125,
0.0655517578125,
-0.043792724609375,
0.0018787384033203125,
-0.00200653076171875,
-0.00601959228515625,
0.003093719482421875,
0.01251983642578125,
-0.007793426513671875,
0.0143585205078125,
0.033416748046875,
-0.0050201416015625,
-0.034942626953125,
0.039306640625,
-0.019683837890625,
-0.06439208984375,
0.045867919921875,
0.0254058837890625,
0.0474853515625,
0.006320953369140625,
0.01316070556640625,
0.0650634765625,
0.046630859375,
-0.0428466796875,
-0.003124237060546875,
0.0306549072265625,
0.024169921875,
-0.0280914306640625,
-0.002948760986328125,
0.01306915283203125,
-0.034149169921875,
-0.04931640625,
0.0217742919921875,
-0.0294189453125,
0.029388427734375,
-0.022186279296875,
0.012939453125,
-0.00807952880859375,
0.04144287109375,
-0.0147705078125,
0.0268096923828125,
0.0175628662109375,
0.005176544189453125,
-0.03851318359375,
0.00765228271484375,
-0.00682830810546875,
-0.0210418701171875,
-0.007701873779296875,
0.0238800048828125,
-0.027374267578125,
-0.00672149658203125,
-0.0219573974609375,
-0.03173828125,
-0.0010814666748046875,
0.04986572265625,
0.03607177734375,
0.0032939910888671875,
-0.023193359375,
-0.01444244384765625,
0.0186309814453125,
0.0161895751953125,
-0.0350341796875,
0.03240966796875,
0.036376953125,
0.021087646484375,
-0.0107574462890625,
-0.01192474365234375,
0.017181396484375,
-0.09326171875,
0.0214385986328125,
0.059844970703125,
0.01433563232421875,
0.00812530517578125,
-0.03741455078125,
0.0004787445068359375,
0.059295654296875,
-0.005809783935546875,
0.00482177734375,
0.0017805099487304688,
-0.00542449951171875,
-0.01629638671875,
0.00848388671875,
-0.01039886474609375,
0.04095458984375,
0.012115478515625,
0.03851318359375,
0.0197296142578125,
0.0006928443908691406,
0.0012264251708984375,
0.044769287109375,
-0.0244598388671875,
0.00881195068359375,
-0.01548004150390625,
-0.025177001953125,
0.0039215087890625,
0.00008386373519897461,
0.032989501953125,
0.01508331298828125,
0.0259552001953125,
-0.034088134765625,
0.01161956787109375,
0.01568603515625,
0.02301025390625,
0.004974365234375,
-0.0008058547973632812,
0.0389404296875,
-0.014678955078125,
-0.03125,
0.003173828125,
0.0369873046875,
-0.0024585723876953125,
-0.0035228729248046875,
0.01324462890625,
-0.058502197265625,
-0.005535125732421875,
-0.0047149658203125,
-0.0406494140625,
-0.00981903076171875,
0.04052734375,
-0.0565185546875,
-0.042144775390625,
-0.0233154296875,
0.0657958984375,
-0.000751495361328125,
0.0248565673828125,
0.00681304931640625,
0.014404296875,
-0.0389404296875,
-0.058319091796875,
0.05499267578125,
-0.042633056640625,
0.033477783203125,
0.08197021484375,
0.0119781494140625,
0.0207977294921875,
0.0234222412109375,
-0.0185699462890625,
0.00716400146484375,
0.0308685302734375,
0.017913818359375,
0.0128173828125,
-0.03106689453125,
0.033905029296875,
0.0097808837890625,
-0.0325927734375,
-0.0024547576904296875,
-0.036773681640625,
-0.01812744140625,
-0.005878448486328125,
-0.040283203125,
0.0234832763671875,
0.027130126953125,
-0.0623779296875,
0.016632080078125,
-0.01194000244140625,
-0.034759521484375,
-0.0293426513671875,
0.0243988037109375,
0.00705718994140625,
0.01708984375,
-0.054443359375,
-0.05609130859375,
-0.0731201171875,
-0.0679931640625,
-0.007755279541015625,
0.0148773193359375,
-0.00839996337890625,
0.01137542724609375,
0.1153564453125,
0.0236663818359375,
-0.07403564453125,
0.040252685546875,
-0.0280914306640625,
-0.0225982666015625,
0.08709716796875,
0.01302337646484375,
-0.037872314453125,
0.0015811920166015625,
0.0200958251953125,
0.0257720947265625,
0.0113525390625,
-0.00887298583984375,
-0.0273590087890625,
0.003086090087890625,
-0.007778167724609375,
0.0272216796875,
-0.0106964111328125,
-0.01364898681640625,
-0.0006847381591796875,
0.016876220703125,
-0.038116455078125,
-0.046173095703125,
-0.0006380081176757812,
-0.0247802734375,
0.0244140625,
-0.015777587890625,
0.00022494792938232422,
-0.01552581787109375,
0.060333251953125,
-0.0242767333984375,
0.0027980804443359375,
-0.0233612060546875,
-0.03729248046875,
0.038299560546875,
0.004970550537109375,
-0.0029430389404296875,
0.007030487060546875,
0.03717041015625,
-0.0178680419921875,
-0.01007843017578125,
0.01885986328125,
-0.011444091796875,
0.0019855499267578125,
0.010986328125,
0.004009246826171875,
-0.061187744140625,
0.0276641845703125,
-0.061004638671875,
-0.01345062255859375,
-0.03533935546875,
0.0050811767578125,
0.0009660720825195312,
0.071533203125,
-0.0457763671875,
0.0018558502197265625,
0.01079559326171875,
-0.0007677078247070312,
0.02325439453125,
-0.0171051025390625,
-0.06793212890625,
-0.0254058837890625,
-0.08160400390625,
0.01375579833984375,
-0.0025005340576171875,
-0.0318603515625,
-0.029022216796875,
-0.00933074951171875,
-0.05792236328125,
-0.047821044921875,
0.0198822021484375,
-0.015045166015625,
0.032928466796875,
-0.016082763671875,
0.0207672119140625,
-0.039886474609375,
0.0011129379272460938,
-0.0263824462890625,
-0.08087158203125,
0.00756072998046875,
-0.03948974609375,
0.0185394287109375,
-0.01096343994140625,
0.038543701171875,
-0.031707763671875,
0.0185394287109375,
0.024810791015625,
0.022552490234375,
-0.0157928466796875,
-0.014434814453125,
-0.0157470703125,
0.00835418701171875,
-0.005645751953125,
-0.01201629638671875,
-0.008819580078125,
-0.0137176513671875,
-0.01457977294921875,
0.00384521484375,
-0.0211639404296875,
-0.025848388671875,
0.01535797119140625,
-0.02410888671875,
-0.04132080078125,
-0.034942626953125,
-0.056549072265625,
-0.0185699462890625,
-0.02117919921875,
-0.0301361083984375,
-0.0144195556640625,
-0.042449951171875,
0.0022430419921875,
-0.0159759521484375,
-0.029083251953125,
0.0306396484375,
0.0438232421875,
0.02203369140625,
0.00339508056640625,
-0.0850830078125,
0.00618743896484375,
0.0212860107421875,
0.01629638671875,
0.033233642578125,
-0.0048828125,
-0.009033203125,
0.038818359375,
-0.004337310791015625,
-0.0186920166015625,
0.00630950927734375,
0.04638671875,
-0.0185394287109375,
-0.0584716796875,
0.03167724609375,
-0.06170654296875,
0.0093231201171875,
0.020355224609375,
0.01465606689453125,
-0.0704345703125,
0.0014829635620117188,
0.0738525390625,
-0.0032806396484375,
0.0226898193359375,
-0.0570068359375,
-0.013458251953125,
0.024383544921875,
-0.00405120849609375,
-0.01020050048828125,
-0.0233612060546875,
0.01010894775390625,
-0.034881591796875,
-0.045166015625,
-0.0033893585205078125,
0.0062255859375,
-0.01084136962890625,
-0.0179290771484375,
0.01690673828125,
0.01123809814453125,
-0.01239776611328125,
-0.0006084442138671875,
0.0022907257080078125,
0.00592041015625,
-0.0533447265625,
-0.08233642578125,
-0.03155517578125,
0.000690460205078125,
0.033203125,
0.0682373046875,
-0.03265380859375,
0.0611572265625,
0.036468505859375,
0.0036220550537109375,
0.0117340087890625,
-0.05145263671875,
0.004608154296875,
-0.03851318359375,
0.0206298828125,
0.02142333984375,
-0.01479339599609375,
0.01180267333984375,
0.034881591796875,
0.0018739700317382812,
0.01605224609375,
-0.0185699462890625,
0.018402099609375,
0.0219573974609375,
0.03106689453125,
0.0259552001953125,
-0.0338134765625,
0.01430511474609375,
-0.01253509521484375,
0.001155853271484375,
-0.036651611328125,
-0.0026416778564453125,
0.0245513916015625,
0.0246734619140625,
-0.006351470947265625,
-0.0313720703125,
0.0268096923828125,
0.0022125244140625,
-0.01367950439453125,
0.0202178955078125,
-0.01554107666015625,
-0.03082275390625,
-0.05462646484375,
-0.026092529296875,
0.048126220703125,
-0.0029201507568359375,
-0.0256195068359375,
0.0193023681640625,
-0.0254669189453125,
0.0080108642578125,
0.0222015380859375,
-0.038604736328125,
0.0185699462890625,
0.0239715576171875,
-0.024505615234375,
0.01361846923828125,
0.006496429443359375,
-0.0010585784912109375,
-0.03717041015625,
-0.0004353523254394531,
-0.025054931640625,
0.019073486328125,
-0.0075531005859375,
0.0116119384765625,
-0.00498199462890625,
-0.031280517578125,
0.0128936767578125,
0.0026454925537109375,
0.0606689453125,
0.02105712890625,
-0.06500244140625,
0.01190185546875,
-0.042236328125,
0.011444091796875,
-0.04461669921875,
-0.06866455078125,
-0.002521514892578125,
0.0006160736083984375,
0.0113067626953125,
0.002349853515625,
-0.004909515380859375,
-0.033660888671875,
-0.0003249645233154297,
0.0303497314453125,
0.0233306884765625,
0.0004496574401855469,
-0.0135955810546875,
0.03271484375,
-0.0013570785522460938,
0.053741455078125,
-0.000698089599609375,
-0.01155853271484375,
-0.033599853515625,
-0.0124664306640625,
-0.020172119140625,
-0.10528564453125,
-0.006862640380859375,
0.027587890625,
-0.043914794921875,
0.058258056640625,
0.0182952880859375,
0.0189666748046875,
0.007114410400390625,
-0.003662109375,
0.0068817138671875,
-0.0195159912109375,
0.0294952392578125,
-0.00543212890625,
0.006015777587890625,
0.0013332366943359375,
-0.016937255859375,
0.0178680419921875,
0.029388427734375,
-0.0270233154296875,
0.032623291015625,
-0.0015850067138671875,
0.03289794921875,
0.00505828857421875,
0.006175994873046875,
0.01352691650390625,
0.0030536651611328125,
-0.01102447509765625,
0.031280517578125,
-0.0154266357421875,
0.0234222412109375,
0.0223846435546875,
-0.0159912109375,
-0.06329345703125,
-0.01349639892578125,
0.042449951171875,
0.0205078125,
-0.00809478759765625,
0.0689697265625,
-0.0087890625,
-0.02447509765625,
0.033721923828125,
0.0244140625,
-0.07769775390625,
0.004756927490234375,
0.01401519775390625,
0.0174407958984375,
-0.0295562744140625,
0.043853759765625,
-0.03363037109375,
-0.03692626953125,
-0.03955078125,
-0.035888671875,
-0.0214080810546875,
-0.01132965087890625,
0.026580810546875,
-0.0074920654296875,
-0.0006732940673828125,
0.00536346435546875,
0.01485443115234375,
-0.00945281982421875,
-0.00626373291015625,
0.0035953521728515625,
0.00827789306640625,
0.0025310516357421875,
0.0134735107421875,
-0.0084228515625,
-0.01525115966796875,
-0.053863525390625,
0.00963592529296875,
-0.0260467529296875,
-0.0161590576171875,
0.04656982421875,
-0.007686614990234375,
0.00750732421875,
0.025787353515625,
-0.01471710205078125,
0.033660888671875,
-0.023773193359375,
-0.032806396484375,
-0.00812530517578125,
-0.02447509765625,
0.01558685302734375,
0.00717926025390625,
-0.0189056396484375,
0.020660400390625,
-0.0136260986328125,
-0.0268096923828125,
-0.0292205810546875,
-0.01262664794921875,
0.09765625,
-0.0302581787109375,
-0.01995849609375,
-0.0013837814331054688,
0.051910400390625,
-0.0011415481567382812,
0.007282257080078125,
0.033905029296875,
-0.03631591796875,
-0.0031490325927734375,
0.015533447265625,
-0.01010894775390625,
-0.030029296875,
-0.00896453857421875,
-0.0184173583984375,
0.0899658203125,
-0.031494140625,
-0.0215301513671875,
0.00921630859375,
0.046417236328125,
0.0067901611328125,
0.067626953125,
-0.013427734375,
0.01047515869140625,
0.006977081298828125,
0.0113677978515625,
-0.01253509521484375,
0.0032749176025390625,
-0.0083160400390625,
0.0168609619140625,
0.03997802734375,
0.00278472900390625,
0.01058197021484375,
-0.00007867813110351562,
0.042144775390625,
0.0352783203125,
-0.01325225830078125,
0.00449371337890625,
-0.0015935897827148438,
0.039642333984375,
0.0245361328125,
-0.0357666015625,
0.037078857421875,
-0.0130157470703125,
-0.037567138671875,
0.0213623046875,
0.02166748046875,
0.04656982421875,
0.005615234375,
-0.006542205810546875,
-0.0113372802734375,
-0.003231048583984375,
0.0310211181640625,
-0.0300750732421875,
-0.00868988037109375,
-0.01580810546875,
-0.00580596923828125,
-0.036376953125,
0.0093231201171875,
-0.0171051025390625,
0.025238037109375,
-0.001506805419921875,
0.03472900390625,
0.0274200439453125,
0.01485443115234375,
0.0408935546875,
-0.043487548828125,
0.0167388916015625,
0.007720947265625,
-0.038848876953125,
0.0101165771484375,
-0.02081298828125,
0.01837158203125,
-0.06060791015625,
-0.003719329833984375,
0.031005859375,
0.0266571044921875,
-0.019134521484375,
-0.052276611328125,
0.0245361328125,
0.004791259765625,
-0.0230712890625,
0.0374755859375,
-0.01141357421875,
0.0625,
0.08685302734375,
-0.050384521484375,
-0.001697540283203125,
0.01416015625,
0.045074462890625,
-0.0207366943359375,
-0.0253753662109375,
-0.0237579345703125,
-0.043670654296875,
-0.056671142578125,
-0.034698486328125,
0.024932861328125,
0.08636474609375,
0.07647705078125,
0.044219970703125,
0.0152130126953125,
-0.057647705078125,
-0.0244293212890625,
0.025543212890625,
-0.0157928466796875,
0.0277252197265625,
-0.06536865234375,
-0.0227508544921875,
0.036895751953125,
0.045623779296875,
-0.0038604736328125,
-0.00431060791015625,
0.05419921875,
0.052154541015625,
-0.0211181640625,
-0.0217132568359375,
0.0545654296875,
0.004665374755859375,
0.0129241943359375,
-0.03326416015625,
0.034759521484375,
0.021453857421875,
0.005279541015625,
-0.01806640625,
0.004650115966796875,
0.0635986328125,
-0.031036376953125,
0.021759033203125,
-0.004474639892578125,
-0.028167724609375,
0.037017822265625,
-0.07110595703125,
0.0318603515625,
-0.0186614990234375,
-0.078369140625,
-0.027435302734375,
-0.031402587890625,
-0.018341064453125,
0.024322509765625,
0.033905029296875,
-0.022491455078125,
0.02618408203125,
0.039947509765625,
0.00208282470703125,
-0.045989990234375,
-0.0010232925415039062,
0.04180908203125,
-0.0292816162109375,
-0.002086639404296875,
0.03118896484375,
-0.028717041015625,
-0.0233306884765625,
-0.019989013671875,
0.045989990234375,
-0.0038623809814453125,
0.09478759765625,
-0.03680419921875,
0.01287841796875,
-0.04510498046875,
0.037200927734375,
-0.084228515625,
-0.044281005859375,
0.0267791748046875,
-0.033843994140625,
0.00748443603515625,
0.0228271484375,
-0.052276611328125,
0.00957489013671875,
0.033538818359375,
-0.06268310546875,
0.0361328125,
-0.0207061767578125,
0.0004968643188476562,
-0.055084228515625,
0.0087738037109375,
-0.02166748046875,
-0.040191650390625,
-0.034881591796875,
0.0113372802734375,
0.0084686279296875,
0.01088714599609375,
-0.04443359375,
0.015838623046875,
0.0009183883666992188,
-0.05096435546875,
0.0261993408203125,
-0.04443359375,
0.05609130859375,
0.0435791015625,
0.00916290283203125,
-0.01189422607421875,
0.01617431640625,
-0.0146484375,
0.0180206298828125,
0.01206207275390625,
0.0239105224609375,
0.00116729736328125,
-0.0264892578125,
-0.032318115234375,
-0.00998687744140625,
0.007663726806640625,
-0.0308837890625,
0.0032253265380859375,
-0.0034542083740234375,
-0.00792694091796875,
-0.0026416778564453125,
0.00968170166015625,
-0.0206298828125,
-0.0150299072265625,
0.0007910728454589844,
0.0322265625,
0.0015316009521484375,
-0.01108551025390625,
-0.08172607421875,
-0.006183624267578125,
0.061676025390625,
0.0158538818359375,
-0.04876708984375,
0.00655364990234375,
-0.031982421875,
0.053131103515625,
0.0207061767578125,
0.012908935546875,
0.014892578125,
0.04376220703125,
-0.0127716064453125,
0.0123443603515625,
-0.0085906982421875,
-0.01029205322265625,
0.01314544677734375,
-0.0095977783203125,
-0.0024261474609375,
-0.003997802734375,
0.00021076202392578125,
-0.006622314453125,
-0.019866943359375,
0.044403076171875,
0.01331329345703125,
-0.0097808837890625,
-0.007350921630859375,
0.00634765625,
-0.0377197265625,
-0.045318603515625,
0.03009033203125,
-0.049224853515625,
-0.04736328125,
-0.025970458984375,
-0.00876617431640625,
-0.008148193359375,
-0.052001953125,
-0.0936279296875,
0.032958984375,
-0.019317626953125,
-0.033935546875,
-0.01154327392578125,
0.0311279296875,
-0.00655364990234375,
-0.0237579345703125,
0.002655029296875,
-0.024261474609375,
0.0193328857421875,
0.0210113525390625,
0.004520416259765625,
0.06292724609375,
0.00809478759765625,
0.0020618438720703125,
-0.02191162109375,
-0.01216888427734375,
-0.0251007080078125,
0.0122222900390625,
-0.034515380859375,
0.01520538330078125,
0.0162811279296875,
0.026397705078125,
-0.02783203125,
0.041595458984375,
0.03228759765625,
0.04937744140625,
0.0189208984375,
-0.032806396484375,
-0.02801513671875,
-0.047149658203125,
0.030059814453125,
-0.0203094482421875,
0.01224517822265625,
0.0220794677734375,
-0.050201416015625,
-0.0303955078125,
-0.006305694580078125,
-0.01023101806640625,
0.0265655517578125,
-0.0943603515625,
0.0021228790283203125,
0.043243408203125,
0.020477294921875,
-0.0033817291259765625,
-0.016937255859375,
-0.0099639892578125,
-0.031890869140625,
-0.01189422607421875,
0.01230621337890625,
-0.046356201171875,
0.050994873046875,
-0.046295166015625,
-0.00406646728515625,
-0.042877197265625,
-0.01395416259765625,
-0.0142669677734375,
-0.054962158203125,
-0.0224151611328125,
-0.0609130859375,
-0.042388916015625,
0.01580810546875,
0.036163330078125,
-0.027984619140625,
0.011810302734375,
-0.0010557174682617188,
0.0248565673828125,
-0.006305694580078125,
0.001399993896484375,
-0.004474639892578125,
-0.01458740234375,
-0.01806640625,
0.03912353515625,
0.0114593505859375,
0.0252227783203125,
-0.02105712890625,
0.021881103515625,
-0.0269775390625,
0.0284576416015625,
-0.043487548828125,
0.0219573974609375,
-0.02392578125,
0.016448974609375,
0.01166534423828125,
-0.006801605224609375,
0.00351715087890625,
-0.00432586669921875,
0.00397491455078125,
-0.062164306640625,
-0.01433563232421875,
0.00458526611328125
] |
bfec2870f37b7dbacf281b38547ad8ac9a3877e1 | Wordpress Stackexchange
Q: Hooking a callback into the code within a Gutenberg block I want to run some JavaScript when a user uploads an image or images using the core/image block or core/gallery block. Ideally I would run my own code when the onSelectImage function is called (and the equivalent for core/gallery). I've looked at hooks in Gutenberg but it seems that they're only available in a small number of places, and there are none directly for the core/image or core/gallery blocks.
I know the developers intend to make it easy to apply actions and filters in Gutenberg, but I'm not sure if they just haven't added any hooks/filters for the core/image block yet or if it's already possible but I'm not seeing how to do it.
| Q: Hooking a callback into the code within a Gutenberg block I want to run some JavaScript when a user uploads an image or images using the core/image block or core/gallery block. Ideally I would run my own code when the onSelectImage function is called (and the equivalent for core/gallery). I've looked at hooks in Gutenberg but it seems that they're only available in a small number of places, and there are none directly for the core/image or core/gallery blocks.
I know the developers intend to make it easy to apply actions and filters in Gutenberg, but I'm not sure if they just haven't added any hooks/filters for the core/image block yet or if it's already possible but I'm not seeing how to do it.
| wordpress | {
"language": "en",
"length": 125,
"provenance": "stackexchange_00019.jsonl.gz:492621",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/327873"
} | [
0.0103302001953125,
0.013092041015625,
-0.02734375,
-0.0032634735107421875,
0.00431060791015625,
-0.041259765625,
0.025604248046875,
-0.0207366943359375,
0.0180206298828125,
0.04083251953125,
-0.0152740478515625,
0.0019397735595703125,
0.021026611328125,
-0.0171966552734375,
-0.04010009765625,
-0.007221221923828125,
0.0499267578125,
-0.010345458984375,
0.03448486328125,
0.01537322998046875,
-0.0241546630859375,
0.06317138671875,
0.003307342529296875,
0.04962158203125,
0.006977081298828125,
-0.01019287109375,
0.047119140625,
-0.007678985595703125,
0.01016998291015625,
-0.01528167724609375,
0.0211944580078125,
-0.01201629638671875,
0.026275634765625,
0.023040771484375,
-0.05767822265625,
0.053314208984375,
0.018402099609375,
0.00010877847671508789,
-0.00968170166015625,
0.03497314453125,
0.034912109375,
-0.00539398193359375,
-0.03399658203125,
0.0165557861328125,
-0.032562255859375,
-0.0239410400390625,
0.0229034423828125,
-0.0163726806640625,
0.038909912109375,
0.031524658203125,
-0.00046896934509277344,
0.0237884521484375,
-0.01444244384765625,
0.024810791015625,
-0.004581451416015625,
-0.004566192626953125,
-0.06781005859375,
0.053985595703125,
0.0236358642578125,
0.0740966796875,
0.0101776123046875,
0.00945281982421875,
-0.0241546630859375,
-0.056915283203125,
0.032562255859375,
-0.00679779052734375,
-0.038482666015625,
0.0190582275390625,
-0.00580596923828125,
0.040496826171875,
0.007709503173828125,
-0.037872314453125,
0.005252838134765625,
-0.048583984375,
-0.016326904296875,
0.0022258758544921875,
-0.0104827880859375,
-0.04608154296875,
0.02105712890625,
-0.0193634033203125,
-0.01558685302734375,
-0.03082275390625,
-0.01458740234375,
-0.006763458251953125,
-0.0167999267578125,
0.0087738037109375,
-0.005939483642578125,
0.003688812255859375,
-0.025726318359375,
-0.0014858245849609375,
-0.024658203125,
0.01371002197265625,
-0.024078369140625,
0.0106201171875,
-0.0193939208984375,
-0.00627899169921875,
-0.002960205078125,
-0.0013332366943359375,
-0.0009183883666992188,
-0.0189361572265625,
0.011199951171875,
-0.037872314453125,
-0.006977081298828125,
-0.01125335693359375,
0.00586700439453125,
0.05657958984375,
-0.00977325439453125,
-0.02117919921875,
0.017059326171875,
0.00624847412109375,
0.003631591796875,
-0.049560546875,
0.0091552734375,
0.0236053466796875,
-0.0214385986328125,
-0.0291595458984375,
-0.045501708984375,
0.0196685791015625,
-0.019927978515625,
0.007076263427734375,
0.0236968994140625,
0.0243988037109375,
0.027618408203125,
-0.00010383129119873047,
0.0167388916015625,
0.0183258056640625,
-0.0290985107421875,
-0.053131103515625,
-0.0019483566284179688,
-0.044677734375,
-0.01593017578125,
0.043212890625,
0.057525634765625,
0.0218963623046875,
0.00713348388671875,
0.006679534912109375,
0.0477294921875,
0.0070953369140625,
0.01267242431640625,
-0.023590087890625,
0.0274658203125,
0.0017108917236328125,
-0.025634765625,
0.0020389556884765625,
0.042633056640625,
-0.0157623291015625,
-0.0006947517395019531,
0.03363037109375,
0.029266357421875,
-0.0204315185546875,
0.0667724609375,
-0.036346435546875,
0.02154541015625,
-0.0046539306640625,
0.022918701171875,
-0.036865234375,
0.04901123046875,
-0.031890869140625,
0.01247406005859375,
-0.041412353515625,
-0.0001423358917236328,
-0.00452423095703125,
0.0188140869140625,
-0.0280303955078125,
-0.0254058837890625,
-0.0019197463989257812,
-0.027618408203125,
0.007358551025390625,
0.03082275390625,
0.0233001708984375,
-0.018768310546875,
-0.022857666015625,
-0.012237548828125,
-0.00812530517578125,
-0.0156707763671875,
0.01444244384765625,
-0.002285003662109375,
0.0252227783203125,
0.032379150390625,
0.0039520263671875,
-0.01251220703125,
-0.039520263671875,
0.063232421875,
-0.0223541259765625,
-0.023193359375,
0.034576416015625,
0.0106353759765625,
0.07171630859375,
0.00972747802734375,
0.02288818359375,
0.004398345947265625,
0.005489349365234375,
-0.0599365234375,
0.0100860595703125,
-0.01464080810546875,
0.0009765625,
-0.0227508544921875,
0.0104217529296875,
-0.015777587890625,
0.001979827880859375,
0.06878662109375,
-0.016510009765625,
0.0166015625,
-0.050994873046875,
-0.0517578125,
-0.032806396484375,
-0.012115478515625,
0.0194549560546875,
0.0045928955078125,
-0.006397247314453125,
0.020751953125,
0.0002827644348144531,
-0.01509857177734375,
-0.0022068023681640625,
-0.019622802734375,
0.01107025146484375,
-0.0069580078125,
0.0237579345703125,
0.00572967529296875,
0.047637939453125,
-0.0167999267578125,
0.00946807861328125,
-0.029693603515625,
-0.0274200439453125,
0.04656982421875,
0.041656494140625,
-0.033905029296875,
0.002796173095703125,
-0.0222015380859375,
0.06439208984375,
-0.1285400390625,
0.01468658447265625,
-0.0167999267578125,
0.0350341796875,
0.00152587890625,
-0.00740814208984375,
0.0019140243530273438,
-0.0289154052734375,
0.029266357421875,
0.011199951171875,
0.00907135009765625,
0.0107269287109375,
0.01059722900390625,
0.014404296875,
0.0291290283203125,
0.06390380859375,
0.064453125,
-0.0287933349609375,
-0.021514892578125,
0.00005841255187988281,
-0.020843505859375,
0.019805908203125,
0.03033447265625,
-0.0236358642578125,
0.0165863037109375,
0.0382080078125,
0.0125732421875,
-0.015045166015625,
-0.02301025390625,
0.001461029052734375,
0.0210113525390625,
0.0023479461669921875,
-0.056884765625,
0.0037593841552734375,
0.05047607421875,
-0.014129638671875,
0.033538818359375,
0.01558685302734375,
-0.0295562744140625,
0.00971221923828125,
0.0206451416015625,
-0.028900146484375,
-0.0080718994140625,
0.043975830078125,
0.0419921875,
0.0097808837890625,
-0.02838134765625,
-0.023284912109375,
0.00963592529296875,
0.03509521484375,
-0.019317626953125,
-0.0030059814453125,
-0.045074462890625,
-0.00994873046875,
-0.0015363693237304688,
-0.0085906982421875,
0.017059326171875,
0.0157318115234375,
0.0004551410675048828,
0.0029392242431640625,
0.0550537109375,
-0.002391815185546875,
0.00411224365234375,
-0.01290130615234375,
-0.0013875961303710938,
-0.0268096923828125,
0.034515380859375,
-0.0257110595703125,
0.01238250732421875,
-0.0257568359375,
0.0711669921875,
0.0572509765625,
-0.039764404296875,
0.0220947265625,
0.005138397216796875,
-0.0360107421875,
-0.00032329559326171875,
0.006969451904296875,
-0.001800537109375,
-0.004825592041015625,
-0.01387786865234375,
0.05035400390625,
0.0164031982421875,
0.052520751953125,
-0.021820068359375,
-0.0243377685546875,
-0.022979736328125,
0.0067596435546875,
-0.03662109375,
-0.070556640625,
-0.03997802734375,
-0.06707763671875,
0.03326416015625,
-0.0161590576171875,
-0.017181396484375,
-0.01174163818359375,
0.0108795166015625,
0.00818634033203125,
-0.07720947265625,
-0.004856109619140625,
-0.039093017578125,
-0.05902099609375,
-0.0450439453125,
0.058349609375,
-0.01007080078125,
0.03302001953125,
0.0037784576416015625,
0.01248931884765625,
-0.0150604248046875,
-0.042388916015625,
-0.0104217529296875,
-0.014251708984375,
-0.0040740966796875,
-0.01922607421875,
0.026519775390625,
-0.0272979736328125,
-0.018310546875,
0.01125335693359375,
-0.062408447265625,
0.01178741455078125,
-0.006244659423828125,
-0.01399993896484375,
-0.0162506103515625,
-0.0312347412109375,
-0.01885986328125,
0.05462646484375,
0.0263519287109375,
-0.0200958251953125,
0.0176544189453125,
-0.04315185546875,
-0.0094146728515625,
-0.01361083984375,
-0.03118896484375,
-0.0178680419921875,
0.01495361328125,
-0.0010042190551757812,
-0.0242462158203125,
0.031951904296875,
0.0274505615234375,
0.030181884765625,
0.0125732421875,
-0.01320648193359375,
0.0207061767578125,
-0.01227569580078125,
0.007671356201171875,
-0.039276123046875,
0.0284881591796875,
0.011138916015625,
0.00370025634765625,
-0.0017528533935546875,
0.05255126953125,
0.002178192138671875,
0.02435302734375,
-0.070556640625,
0.0005006790161132812,
0.048126220703125,
0.06243896484375,
0.01451873779296875,
0.039642333984375,
-0.018157958984375,
0.037139892578125,
0.04632568359375,
0.01329803466796875,
0.0007472038269042969,
-0.007701873779296875,
-0.0142364501953125,
-0.0269012451171875,
0.00972747802734375,
-0.06976318359375,
0.0253753662109375,
-0.04962158203125,
0.0121917724609375,
0.01216888427734375,
-0.06402587890625,
0.00817108154296875,
-0.034454345703125,
-0.04339599609375,
-0.0311279296875,
0.02130126953125,
-0.04180908203125,
0.0204620361328125,
-0.0038013458251953125,
0.006664276123046875,
-0.017578125,
-0.0001691579818725586,
-0.048431396484375,
-0.1165771484375,
-0.021026611328125,
-0.0212860107421875,
0.07421875,
-0.0014524459838867188,
0.0159149169921875,
-0.031768798828125,
0.05731201171875,
-0.00894927978515625,
0.015533447265625,
0.00823974609375,
0.03765869140625,
0.0166168212890625,
-0.0504150390625,
-0.0020294189453125,
-0.051239013671875,
0.00725555419921875,
0.0036334991455078125,
-0.017486572265625,
0.0199127197265625,
-0.0159149169921875,
-0.030517578125,
-0.0007848739624023438,
-0.0218353271484375,
-0.035888671875,
-0.0255584716796875,
-0.04010009765625,
-0.031890869140625,
0.0008974075317382812,
-0.027008056640625,
-0.03125,
-0.0267333984375,
0.0091400146484375,
-0.0201263427734375,
0.0134429931640625,
0.01399993896484375,
0.0518798828125,
0.013946533203125,
0.004566192626953125,
-0.0085906982421875,
0.00081634521484375,
0.0128326416015625,
-0.012847900390625,
0.072021484375,
0.0031795501708984375,
-0.007312774658203125,
0.09295654296875,
-0.03253173828125,
0.0377197265625,
-0.0794677734375,
0.060302734375,
-0.00335693359375,
-0.006267547607421875,
0.022735595703125,
0.029266357421875,
0.0005421638488769531,
0.01074981689453125,
-0.059661865234375,
0.0206146240234375,
-0.035186767578125,
0.0227203369140625,
-0.0433349609375,
0.06256103515625,
-0.0291748046875,
0.0139617919921875,
-0.011749267578125,
0.0047607421875,
0.072265625,
-0.0055389404296875,
0.0102386474609375,
-0.01174163818359375,
0.03851318359375,
0.0369873046875,
-0.0092620849609375,
-0.0128936767578125,
-0.029571533203125,
0.07666015625,
-0.02093505859375,
0.033660888671875,
0.005420684814453125,
0.01727294921875,
-0.047149658203125,
-0.0109405517578125,
-0.02459716796875,
-0.057037353515625,
0.005321502685546875,
0.003208160400390625,
-0.01129913330078125,
-0.031494140625,
0.01263427734375,
0.048065185546875,
-0.055084228515625,
0.01488494873046875,
0.0205078125,
-0.01983642578125,
-0.05712890625,
-0.0239105224609375,
-0.0084381103515625,
-0.030731201171875,
0.00432586669921875,
-0.01556396484375,
-0.004955291748046875,
-0.0208587646484375,
0.01068878173828125,
0.031219482421875,
-0.01059722900390625,
0.00695037841796875,
0.0213623046875,
0.004001617431640625,
0.01280975341796875,
-0.0213775634765625,
0.00928497314453125,
-0.005268096923828125,
0.01416015625,
0.0009851455688476562,
0.015411376953125,
0.0218048095703125,
0.0023632049560546875,
0.00536346435546875,
-0.024169921875,
-0.010986328125,
0.006801605224609375,
-0.028289794921875,
0.01161956787109375,
-0.048797607421875,
-0.039947509765625,
0.030609130859375,
0.03216552734375,
-0.01454925537109375,
-0.0289306640625,
-0.0115966796875,
0.01326751708984375,
-0.026702880859375,
-0.025604248046875,
0.038604736328125,
0.031341552734375,
-0.01422119140625,
-0.0149688720703125,
-0.00197601318359375,
-0.032073974609375,
-0.0178070068359375,
-0.018341064453125,
-0.012969970703125,
0.06787109375,
-0.0233917236328125,
-0.01300048828125,
-0.039794921875,
0.039825439453125,
-0.0159454345703125,
0.005832672119140625,
0.049163818359375,
0.007534027099609375,
-0.010986328125,
-0.018798828125,
-0.060821533203125,
-0.01947021484375,
-0.0157928466796875,
-0.04644775390625,
0.0033588409423828125,
-0.005802154541015625,
-0.0032024383544921875,
0.038238525390625,
-0.0037517547607421875,
0.0161590576171875,
0.020477294921875,
0.00843048095703125,
-0.022552490234375,
0.07763671875,
-0.006587982177734375,
0.0050048828125,
-0.00872802734375,
0.0274200439453125,
-0.020111083984375,
-0.04144287109375,
-0.01006317138671875,
-0.0093841552734375,
-0.05322265625,
-0.06329345703125,
0.042999267578125,
0.0128936767578125,
0.041168212890625,
0.0665283203125,
0.03594970703125,
0.039093017578125,
0.0184173583984375,
-0.00482177734375,
0.005687713623046875,
-0.03466796875,
0.025665283203125,
-0.0218658447265625,
-0.01178741455078125,
0.01462554931640625,
-0.022979736328125,
-0.0172882080078125,
-0.00701141357421875,
-0.042327880859375,
0.06298828125,
-0.0009984970092773438,
0.02130126953125,
0.0162506103515625,
0.0181121826171875,
-0.01364898681640625,
0.0172576904296875,
-0.03533935546875,
-0.00782012939453125,
0.0292816162109375,
-0.010406494140625,
0.004573822021484375,
0.0338134765625,
-0.00983428955078125,
-0.0279083251953125,
0.011871337890625,
0.0011072158813476562,
0.01303863525390625,
0.017303466796875,
0.0094757080078125,
-0.00199127197265625,
-0.01531219482421875,
0.0284271240234375,
-0.00402069091796875,
0.0005083084106445312,
0.016448974609375,
-0.036224365234375,
-0.03948974609375,
-0.007701873779296875,
-0.0111846923828125,
-0.01560211181640625,
0.0197296142578125,
0.0116424560546875,
-0.018341064453125,
0.018829345703125,
0.0116729736328125,
-0.005550384521484375,
-0.0005812644958496094,
0.040618896484375,
0.021392822265625,
-0.03253173828125,
0.01311492919921875,
0.00867462158203125,
0.003040313720703125,
-0.00048232078552246094,
0.0305023193359375,
-0.018951416015625,
-0.00513458251953125,
-0.021209716796875,
0.0017490386962890625,
-0.015472412109375,
-0.018768310546875,
0.038909912109375,
0.0079498291015625,
0.0318603515625,
0.0266265869140625,
0.020263671875,
-0.02593994140625,
-0.0045318603515625,
-0.0189208984375,
-0.0269622802734375,
-0.002017974853515625,
0.0216522216796875,
-0.013427734375,
-0.045318603515625,
0.0175628662109375,
-0.06097412109375,
0.006015777587890625,
0.0037250518798828125,
0.0114593505859375,
0.05084228515625,
0.0031642913818359375,
-0.0386962890625,
0.042938232421875,
-0.01483917236328125,
-0.0160369873046875,
0.0225982666015625,
0.03466796875,
-0.03485107421875,
-0.04608154296875,
0.0182647705078125,
-0.047607421875,
-0.033843994140625,
0.004161834716796875,
-0.053253173828125,
0.0869140625,
0.023895263671875,
0.01204681396484375,
-0.0150909423828125,
0.047393798828125,
0.0105743408203125,
0.040496826171875,
-0.042572021484375,
0.06329345703125,
-0.0225830078125,
0.01454925537109375,
-0.06707763671875,
0.026275634765625,
-0.035308837890625,
-0.01212310791015625,
0.0191497802734375,
0.004444122314453125,
-0.006938934326171875,
-0.03997802734375,
-0.01273345947265625,
0.0220794677734375,
-0.01349639892578125,
0.0164031982421875,
0.0143890380859375,
-0.0106658935546875,
-0.006134033203125,
0.0114898681640625,
0.041229248046875,
-0.05023193359375,
-0.035675048828125,
0.03948974609375,
0.002414703369140625,
0.0209197998046875,
0.02337646484375,
0.042236328125,
-0.0220794677734375,
0.01412200927734375,
0.03668212890625,
-0.0399169921875,
-0.030792236328125,
0.037933349609375,
-0.00347900390625,
-0.003559112548828125,
-0.04345703125,
-0.02142333984375,
0.018218994140625,
0.007717132568359375,
-0.0001361370086669922,
0.00421905517578125,
0.0190277099609375,
-0.00213623046875,
-0.033111572265625,
-0.01068878173828125,
0.03326416015625,
-0.039215087890625,
0.052581787109375,
0.003265380859375,
0.0099334716796875,
-0.04730224609375,
0.0095367431640625,
0.0267181396484375,
0.0555419921875,
-0.04986572265625,
-0.033050537109375,
0.005039215087890625,
0.013397216796875,
0.023834228515625,
0.004558563232421875,
0.032928466796875,
-0.038055419921875,
-0.01788330078125,
-0.0018157958984375,
-0.0400390625,
-0.028228759765625,
0.0306854248046875,
-0.0010805130004882812,
0.020416259765625,
0.0211334228515625,
-0.03729248046875,
-0.02520751953125,
0.0146331787109375,
0.015960693359375,
0.01293182373046875,
-0.01367950439453125,
0.04327392578125,
-0.0017337799072265625,
0.01070404052734375,
-0.047943115234375,
0.02008056640625,
-0.0015077590942382812,
0.080078125,
-0.07147216796875,
0.0005550384521484375,
0.006122589111328125,
0.06256103515625,
0.030120849609375,
0.03985595703125,
0.0343017578125,
0.042327880859375,
0.0095977783203125,
-0.0005941390991210938,
0.0679931640625,
-0.01314544677734375,
-0.006076812744140625,
-0.0240936279296875,
0.033843994140625,
0.01282501220703125,
-0.0072174072265625,
0.015777587890625,
0.026702880859375,
0.03021240234375,
-0.044189453125,
0.050445556640625,
-0.02435302734375,
-0.0677490234375,
0.0253143310546875,
-0.039794921875,
0.1356201171875,
-0.028594970703125,
-0.02996826171875,
0.01390838623046875,
0.02001953125,
-0.12237548828125,
-0.00020253658294677734,
0.042388916015625,
-0.07635498046875,
0.031280517578125,
-0.01025390625,
-0.0131072998046875,
0.03155517578125,
-0.016387939453125,
0.0157623291015625,
0.021240234375,
0.01023101806640625,
-0.0101470947265625,
-0.021820068359375,
0.0049896240234375,
0.0199432373046875,
0.0128021240234375,
-0.0213470458984375,
0.0760498046875,
-0.01500701904296875,
-0.00812530517578125,
0.054443359375,
-0.025238037109375,
0.028472900390625,
0.0546875,
-0.0255889892578125,
0.00804901123046875,
0.00791168212890625,
-0.0235748291015625,
-0.053924560546875,
-0.00875091552734375,
0.0115509033203125,
0.017486572265625,
-0.009918212890625,
-0.006511688232421875,
0.020263671875,
0.07159423828125,
0.043701171875,
-0.017425537109375,
-0.038330078125,
-0.031402587890625,
0.01500701904296875,
0.01105499267578125,
0.03033447265625,
-0.0011568069458007812,
0.06719970703125,
-0.021881103515625,
0.00756072998046875,
-0.0169525146484375,
-0.060577392578125,
-0.00209808349609375,
0.03753662109375,
-0.0362548828125,
0.00916290283203125,
-0.0198211669921875,
-0.01119232177734375,
-0.01702880859375,
0.0015859603881835938,
-0.010650634765625,
0.0020294189453125,
-0.00823211669921875,
0.00717926025390625,
0.0204315185546875,
0.02557373046875,
-0.0252685546875,
0.005901336669921875,
0.0305938720703125,
-0.0174407958984375,
0.00986480712890625,
0.021453857421875,
-0.0110321044921875,
-0.022613525390625,
-0.014495849609375,
-0.0057830810546875,
-0.010528564453125,
-0.047882080078125,
-0.0340576171875,
-0.00910186767578125,
0.046844482421875,
0.032257080078125,
-0.0849609375,
0.047882080078125,
0.00714874267578125,
0.02447509765625,
0.036529541015625,
0.0172576904296875,
-0.01375579833984375,
0.0253143310546875,
-0.040679931640625,
-0.05645751953125,
-0.022491455078125,
0.05523681640625,
-0.039337158203125,
0.0511474609375,
0.04669189453125,
-0.0509033203125,
-0.00689697265625,
0.0574951171875,
0.05755615234375,
0.10272216796875,
0.00395965576171875,
-0.00420379638671875,
-0.007572174072265625,
0.045074462890625,
-0.043243408203125,
-0.015838623046875,
0.0304412841796875,
0.05303955078125,
-0.002964019775390625,
-0.028778076171875,
0.010894775390625,
0.0131683349609375,
-0.03607177734375,
-0.08514404296875,
0.016571044921875,
-0.0177764892578125,
-0.04254150390625,
-0.0142059326171875,
0.08441162109375,
0.0189361572265625,
-0.03961181640625,
-0.0262908935546875,
0.031158447265625,
0.0188140869140625,
-0.0180816650390625,
0.007259368896484375,
-0.054473876953125,
0.06353759765625,
-0.0272674560546875,
-0.04522705078125,
-0.0078125,
0.0126495361328125,
-0.0177459716796875,
0.0250091552734375,
-0.038665771484375,
0.051910400390625,
0.0088348388671875,
-0.0521240234375,
0.0208892822265625,
0.0036792755126953125,
0.0296783447265625,
-0.017120361328125,
-0.031402587890625,
-0.039093017578125,
-0.00904083251953125,
0.091796875,
0.040283203125,
0.0198211669921875,
-0.035400390625,
-0.0226287841796875,
-0.00994110107421875,
-0.0140533447265625,
-0.01092529296875,
0.0122833251953125,
-0.05810546875,
-0.006557464599609375,
0.0055694580078125,
-0.032623291015625,
-0.02447509765625,
0.0137786865234375,
-0.049591064453125,
-0.0109100341796875,
-0.05145263671875,
-0.0286865234375,
-0.038238525390625,
-0.04693603515625,
0.07080078125,
-0.017303466796875,
0.048248291015625,
0.0151519775390625,
0.0291290283203125,
0.07000732421875,
0.06103515625,
0.016815185546875,
0.0092010498046875,
-0.0093231201171875,
0.01523590087890625,
0.034698486328125,
0.0200958251953125,
0.000005841255187988281,
-0.0240325927734375,
0.0270233154296875,
0.00670623779296875,
-0.00943756103515625,
0.009185791015625,
0.00879669189453125,
0.041473388671875,
-0.038543701171875,
0.031402587890625,
-0.035980224609375,
-0.010040283203125,
-0.0107879638671875,
-0.0130615234375,
-0.01186370849609375,
0.0036602020263671875,
0.05511474609375,
-0.052032470703125,
-0.00815582275390625,
0.00809478759765625,
-0.0223236083984375,
-0.04425048828125,
0.03424072265625,
0.033233642578125,
0.006626129150390625,
0.01812744140625
] |
cf282f5383c9e5b99fce1bbf9196b37de4e57140 | Wordpress Stackexchange
Q: Is it possible to access Gutenbergs reusable blocks in CPT block templates? What I am trying to do is to use specific Reusable Blocks, that are editable by certain admins in the back end, within block templates for custom post types. So if you register a CTP or edit the capabilities of standard post types, you can use them like:
function create_add_post_types() {
register_post_type( 'product',
array(
'public' => true,
'capability_type' => 'page',
'show_in_rest' => true,
'template' => array(
array( 'core/heading', array(
'placeholder' => 'Füge eine Überschrift hinzu',
'content' => 'Projektname - Stadt, Land',
'level' => 1,
) ),
)
);
}
add_action( 'init', 'create_add_post_types' );
..except that insteadt of a core block like the heading here a reusable block is called.
A: I actually found a solution myself by following the way a reusable block is registered in this stackexchange thread:
Reusable blocks are all stored in/as core/block and this block has the attribute ref which carries the post id of that block.
So, you can use
array( 'core/block', array(
'ref' => [your block ID],
) ),
and the ID of every registered block is visible via the URL of that block at [your-wordpress]/wp-admin/edit.php?post_type=wp_block
| Q: Is it possible to access Gutenbergs reusable blocks in CPT block templates? What I am trying to do is to use specific Reusable Blocks, that are editable by certain admins in the back end, within block templates for custom post types. So if you register a CTP or edit the capabilities of standard post types, you can use them like:
function create_add_post_types() {
register_post_type( 'product',
array(
'public' => true,
'capability_type' => 'page',
'show_in_rest' => true,
'template' => array(
array( 'core/heading', array(
'placeholder' => 'Füge eine Überschrift hinzu',
'content' => 'Projektname - Stadt, Land',
'level' => 1,
) ),
)
);
}
add_action( 'init', 'create_add_post_types' );
..except that insteadt of a core block like the heading here a reusable block is called.
A: I actually found a solution myself by following the way a reusable block is registered in this stackexchange thread:
Reusable blocks are all stored in/as core/block and this block has the attribute ref which carries the post id of that block.
So, you can use
array( 'core/block', array(
'ref' => [your block ID],
) ),
and the ID of every registered block is visible via the URL of that block at [your-wordpress]/wp-admin/edit.php?post_type=wp_block
A: You can call a reusable block as you call to any post type:
$args = array(
'post_type' => 'wp_block',
...
OR
get_page_by_title( 'Your Title', OBJECT, 'wp_block' );
| wordpress | {
"language": "en",
"length": 223,
"provenance": "stackexchange_00019.jsonl.gz:492649",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/327966"
} | [
-0.016754150390625,
0.02032470703125,
-0.03594970703125,
-0.0032520294189453125,
0.00846099853515625,
-0.02410888671875,
0.01020050048828125,
-0.018096923828125,
0.007755279541015625,
0.03955078125,
-0.007167816162109375,
-0.029998779296875,
0.0169219970703125,
-0.019195556640625,
-0.0279541015625,
-0.01270294189453125,
0.03350830078125,
0.0030040740966796875,
0.0244598388671875,
-0.0014734268188476562,
-0.016510009765625,
0.0189361572265625,
0.002124786376953125,
0.06829833984375,
0.022705078125,
-0.06549072265625,
0.0611572265625,
-0.036712646484375,
0.042266845703125,
-0.0250091552734375,
0.04296875,
0.007198333740234375,
0.0162811279296875,
-0.01509857177734375,
0.0003218650817871094,
0.00142669677734375,
0.054718017578125,
-0.027130126953125,
-0.01509857177734375,
0.0345458984375,
0.008056640625,
-0.007610321044921875,
-0.0064697265625,
-0.048248291015625,
-0.01439666748046875,
0.00018727779388427734,
-0.006824493408203125,
-0.0198822021484375,
0.04681396484375,
0.0784912109375,
0.0072479248046875,
0.0390625,
0.0005402565002441406,
0.030731201171875,
0.007171630859375,
-0.005420684814453125,
-0.0238800048828125,
0.0021800994873046875,
0.025238037109375,
0.045257568359375,
-0.005512237548828125,
-0.00466156005859375,
0.00801849365234375,
-0.054443359375,
0.052032470703125,
0.00435638427734375,
0.05682373046875,
0.0250091552734375,
-0.0263671875,
0.0328369140625,
0.01267242431640625,
-0.004329681396484375,
-0.0027561187744140625,
-0.054290771484375,
0.0080413818359375,
-0.0208892822265625,
0.0034770965576171875,
-0.062225341796875,
-0.01873779296875,
0.019256591796875,
-0.042266845703125,
-0.0374755859375,
0.008087158203125,
-0.0016994476318359375,
-0.02154541015625,
0.0283660888671875,
-0.0298614501953125,
-0.0009541511535644531,
-0.0158233642578125,
-0.02557373046875,
-0.0098724365234375,
-0.02716064453125,
-0.0292510986328125,
0.0107269287109375,
-0.01084136962890625,
-0.03607177734375,
0.02294921875,
0.019805908203125,
-0.008331298828125,
-0.005100250244140625,
0.00586700439453125,
-0.0654296875,
0.0416259765625,
-0.0272216796875,
0.00649261474609375,
0.056365966796875,
-0.037078857421875,
0.0458984375,
0.059661865234375,
0.0263824462890625,
0.04718017578125,
-0.0128326416015625,
0.002849578857421875,
-0.01253509521484375,
-0.020355224609375,
0.0162353515625,
-0.0101470947265625,
-0.01525115966796875,
-0.007358551025390625,
-0.010284423828125,
0.021697998046875,
0.053436279296875,
0.0345458984375,
-0.00942230224609375,
0.006450653076171875,
0.0081939697265625,
-0.00467681884765625,
-0.07843017578125,
0.006641387939453125,
-0.001407623291015625,
-0.0228729248046875,
0.031097412109375,
0.064453125,
0.01446533203125,
0.00957489013671875,
-0.01739501953125,
0.0302734375,
0.01446533203125,
0.009857177734375,
-0.00972747802734375,
0.024688720703125,
-0.00965118408203125,
0.0006542205810546875,
0.006256103515625,
0.03265380859375,
0.004390716552734375,
0.03759765625,
0.0194549560546875,
-0.006011962890625,
-0.0364990234375,
0.0186767578125,
0.00189971923828125,
0.05230712890625,
0.0150909423828125,
-0.0039215087890625,
0.00168609619140625,
0.09246826171875,
-0.049591064453125,
-0.044525146484375,
-0.0718994140625,
0.0438232421875,
-0.00833892822265625,
-0.024169921875,
-0.0167694091796875,
-0.04620361328125,
0.016082763671875,
-0.050048828125,
-0.0014743804931640625,
0.0357666015625,
0.0361328125,
0.026397705078125,
-0.038177490234375,
-0.0038928985595703125,
0.009185791015625,
-0.01312255859375,
0.007232666015625,
0.01088714599609375,
-0.0164337158203125,
0.02606201171875,
0.053131103515625,
-0.006389617919921875,
-0.017181396484375,
0.039703369140625,
-0.02520751953125,
-0.060455322265625,
0.033966064453125,
-0.004222869873046875,
0.068359375,
0.0435791015625,
0.0132904052734375,
0.01035308837890625,
-0.0362548828125,
-0.040008544921875,
0.0247802734375,
-0.02655029296875,
0.007282257080078125,
-0.024932861328125,
0.0411376953125,
-0.0289764404296875,
-0.007289886474609375,
0.06451416015625,
-0.01531982421875,
0.046783447265625,
-0.044097900390625,
-0.0570068359375,
0.025909423828125,
-0.03021240234375,
0.039825439453125,
-0.034637451171875,
-0.00814056396484375,
0.0233001708984375,
-0.016510009765625,
-0.0279998779296875,
-0.007205963134765625,
0.004436492919921875,
0.053131103515625,
0.0190582275390625,
0.0297698974609375,
0.0255584716796875,
-0.0174102783203125,
0.040924072265625,
-0.0108184814453125,
0.01458740234375,
0.026153564453125,
0.08160400390625,
0.0360107421875,
-0.020172119140625,
-0.01239013671875,
0.031463623046875,
0.07489013671875,
-0.136474609375,
-0.025390625,
0.0298309326171875,
0.023193359375,
-0.00623321533203125,
0.009796142578125,
0.012847900390625,
-0.03118896484375,
0.007354736328125,
0.0302276611328125,
0.0172576904296875,
0.005802154541015625,
-0.0223846435546875,
-0.0172271728515625,
0.032623291015625,
0.01071929931640625,
0.015167236328125,
-0.0161590576171875,
-0.02423095703125,
0.0181427001953125,
-0.0267333984375,
0.040924072265625,
0.03326416015625,
0.04705810546875,
-0.007572174072265625,
0.039825439453125,
-0.0229949951171875,
-0.0175323486328125,
-0.022003173828125,
-0.005428314208984375,
-0.0019388198852539062,
-0.04803466796875,
-0.020263671875,
-0.0166015625,
0.120849609375,
0.0017862319946289062,
0.08050537109375,
0.048858642578125,
-0.0732421875,
0.0228424072265625,
0.01514434814453125,
0.028076171875,
-0.0141754150390625,
0.00775909423828125,
0.03228759765625,
0.00574493408203125,
-0.0272064208984375,
0.0108795166015625,
0.03369140625,
-0.0056915283203125,
-0.05352783203125,
0.003971099853515625,
-0.068603515625,
-0.0129241943359375,
-0.03759765625,
-0.04302978515625,
-0.005523681640625,
-0.00841522216796875,
0.00930023193359375,
-0.029296875,
0.01329803466796875,
0.01277923583984375,
-0.017547607421875,
0.0262451171875,
-0.0019273757934570312,
-0.0360107421875,
0.0302886962890625,
-0.053375244140625,
0.035369873046875,
-0.035308837890625,
0.055755615234375,
0.0694580078125,
-0.0306854248046875,
0.032257080078125,
0.00047969818115234375,
-0.0288543701171875,
0.01611328125,
0.0078582763671875,
-0.01386260986328125,
-0.038299560546875,
0.004154205322265625,
0.0243072509765625,
0.005084991455078125,
0.04547119140625,
-0.01763916015625,
-0.045166015625,
-0.0012226104736328125,
0.01268768310546875,
-0.037139892578125,
-0.028076171875,
-0.0170440673828125,
-0.056640625,
-0.0035533905029296875,
-0.029571533203125,
-0.0306854248046875,
0.01248931884765625,
-0.0092010498046875,
0.01229095458984375,
-0.00024330615997314453,
-0.003673553466796875,
-0.064697265625,
-0.059783935546875,
-0.0789794921875,
-0.046844482421875,
-0.0235137939453125,
0.006420135498046875,
0.0044097900390625,
-0.0014553070068359375,
-0.002109527587890625,
-0.004901885986328125,
-0.002197265625,
0.005451202392578125,
-0.0212860107421875,
-0.046478271484375,
0.0110321044921875,
-0.0361328125,
0.0074310302734375,
0.0180511474609375,
-0.0283966064453125,
-0.015655517578125,
0.01357269287109375,
-0.0280303955078125,
0.0301513671875,
-0.0030040740966796875,
0.0394287109375,
0.0139007568359375,
-0.0538330078125,
0.00791168212890625,
0.0302886962890625,
-0.0382080078125,
-0.05133056640625,
0.0148162841796875,
-0.049163818359375,
0.0206146240234375,
0.03192138671875,
0.0061798095703125,
0.0066986083984375,
0.0092315673828125,
0.0179290771484375,
0.00392913818359375,
0.030364990234375,
-0.02783203125,
0.0190582275390625,
-0.0123138427734375,
0.01531982421875,
-0.059539794921875,
0.038970947265625,
-0.00534820556640625,
0.00579833984375,
0.003997802734375,
0.0251617431640625,
0.0002313852310180664,
0.00518798828125,
-0.038818359375,
-0.061065673828125,
0.043975830078125,
-0.050811767578125,
-0.01160430908203125,
-0.0263519287109375,
0.00439453125,
0.0152587890625,
0.072509765625,
-0.0170745849609375,
-0.0089263916015625,
0.003276824951171875,
0.0125885009765625,
-0.0189971923828125,
-0.0269012451171875,
-0.0341796875,
-0.001537322998046875,
-0.01457977294921875,
-0.00330352783203125,
-0.0019044876098632812,
-0.048797607421875,
-0.00041174888610839844,
-0.0025653839111328125,
-0.008636474609375,
-0.01922607421875,
0.033660888671875,
-0.0105133056640625,
0.01155853271484375,
0.0298004150390625,
0.005168914794921875,
-0.0048828125,
-0.010772705078125,
-0.00887298583984375,
-0.06427001953125,
-0.01561737060546875,
0.01169586181640625,
0.052886962890625,
0.00922393798828125,
-0.031707763671875,
-0.03173828125,
0.0390625,
0.01212310791015625,
0.039581298828125,
0.00548553466796875,
0.0328369140625,
-0.0020351409912109375,
-0.063232421875,
0.00875091552734375,
-0.0452880859375,
0.0183868408203125,
-0.0012178421020507812,
-0.0290679931640625,
0.03839111328125,
-0.035858154296875,
0.00545501708984375,
-0.004367828369140625,
-0.020599365234375,
-0.03668212890625,
-0.0202789306640625,
-0.0191192626953125,
0.01229095458984375,
-0.0169525146484375,
-0.00943756103515625,
-0.0269622802734375,
-0.04833984375,
0.0279083251953125,
0.020355224609375,
-0.007144927978515625,
0.0160980224609375,
0.0263824462890625,
0.0203399658203125,
-0.028289794921875,
-0.043243408203125,
0.02349853515625,
0.0210113525390625,
0.01751708984375,
0.0902099609375,
0.041839599609375,
0.0287322998046875,
0.011627197265625,
-0.0034275054931640625,
-0.03265380859375,
-0.004779815673828125,
0.04449462890625,
0.0122528076171875,
-0.0254364013671875,
0.0036029815673828125,
-0.0306549072265625,
0.038543701171875,
0.01715087890625,
-0.042999267578125,
-0.0086212158203125,
-0.0401611328125,
0.06646728515625,
-0.007266998291015625,
0.0277557373046875,
-0.07598876953125,
-0.01641845703125,
0.01140594482421875,
-0.02850341796875,
0.056427001953125,
0.0160675048828125,
-0.01224517822265625,
0.01007843017578125,
0.01372528076171875,
0.00075531005859375,
0.0236968994140625,
0.0110626220703125,
-0.0014858245849609375,
0.02777099609375,
0.039215087890625,
-0.01038360595703125,
-0.01084136962890625,
0.005672454833984375,
0.01148223876953125,
-0.034698486328125,
-0.040771484375,
-0.045989990234375,
-0.00988006591796875,
0.04742431640625,
0.0288543701171875,
-0.02630615234375,
0.00013363361358642578,
0.049407958984375,
0.0164642333984375,
0.025299072265625,
0.0080108642578125,
0.01044464111328125,
-0.0012950897216796875,
0.020599365234375,
0.004863739013671875,
-0.024627685546875,
-0.03155517578125,
0.0465087890625,
-0.00879669189453125,
-0.0098724365234375,
-0.0015048980712890625,
0.0548095703125,
0.064697265625,
0.0171051025390625,
0.024993896484375,
-0.01235198974609375,
-0.002593994140625,
-0.0130157470703125,
-0.0280914306640625,
-0.045166015625,
0.0025081634521484375,
0.014923095703125,
0.058349609375,
0.0047149658203125,
-0.017822265625,
0.0037136077880859375,
-0.045440673828125,
0.01322174072265625,
0.029541015625,
-0.01375579833984375,
-0.03485107421875,
0.004306793212890625,
0.0208892822265625,
0.033599853515625,
-0.022430419921875,
-0.007476806640625,
-0.04437255859375,
-0.0484619140625,
-0.0016241073608398438,
-0.020721435546875,
-0.011077880859375,
0.01326751708984375,
-0.01192474365234375,
0.0164642333984375,
-0.0207366943359375,
0.00753021240234375,
-0.038665771484375,
0.007213592529296875,
-0.0411376953125,
-0.0151824951171875,
0.08349609375,
-0.0235443115234375,
0.01401519775390625,
-0.01543426513671875,
0.0131378173828125,
0.014678955078125,
0.015869140625,
0.070068359375,
0.037139892578125,
-0.01371002197265625,
-0.026123046875,
-0.0716552734375,
-0.016632080078125,
-0.0172882080078125,
-0.059173583984375,
0.0036678314208984375,
0.026123046875,
0.0018157958984375,
0.0291748046875,
-0.01355743408203125,
-0.00817108154296875,
0.038299560546875,
0.0220947265625,
-0.0229339599609375,
0.0672607421875,
0.00823211669921875,
0.05828857421875,
-0.0213623046875,
0.032806396484375,
0.004924774169921875,
0.01316070556640625,
-0.0131378173828125,
-0.00891876220703125,
-0.037506103515625,
-0.049102783203125,
0.00467681884765625,
-0.004161834716796875,
0.0218658447265625,
0.07391357421875,
0.04217529296875,
0.0226287841796875,
0.0262451171875,
0.00033402442932128906,
0.015533447265625,
-0.043487548828125,
0.013092041015625,
-0.034912109375,
0.00484466552734375,
-0.01535797119140625,
-0.00991058349609375,
0.009429931640625,
0.01126861572265625,
0.01503753662109375,
-0.0094451904296875,
-0.00989532470703125,
-0.0029888153076171875,
-0.00887298583984375,
-0.0040435791015625,
-0.00292205810546875,
0.0789794921875,
0.01458740234375,
0.044464111328125,
0.035552978515625,
0.013397216796875,
0.02813720703125,
-0.000021398067474365234,
0.028533935546875,
0.032012939453125,
0.03265380859375,
-0.003780364990234375,
0.00827789306640625,
0.01270294189453125,
0.002811431884765625,
-0.0267333984375,
0.007656097412109375,
0.004192352294921875,
-0.03228759765625,
0.0053253173828125,
0.00902557373046875,
0.0010576248168945312,
-0.042755126953125,
0.0179290771484375,
-0.021697998046875,
-0.026763916015625,
-0.0174407958984375,
0.005344390869140625,
-0.0296630859375,
-0.02069091796875,
0.0262298583984375,
0.01552581787109375,
-0.04925537109375,
0.0482177734375,
-0.005634307861328125,
-0.0108489990234375,
-0.00194549560546875,
-0.032257080078125,
0.002826690673828125,
-0.03717041015625,
0.0328369140625,
-0.01294708251953125,
0.0160064697265625,
-0.024749755859375,
0.04443359375,
-0.0162506103515625,
0.027801513671875,
-0.0089111328125,
0.0074310302734375,
0.028717041015625,
0.0264892578125,
0.0015516281127929688,
-0.017974853515625,
-0.00201416015625,
0.0008273124694824219,
-0.0364990234375,
-0.04229736328125,
0.00756072998046875,
0.0195159912109375,
-0.044769287109375,
0.0323486328125,
-0.0196685791015625,
-0.0286712646484375,
0.00951385498046875,
0.0731201171875,
0.05145263671875,
-0.0155792236328125,
-0.034393310546875,
0.049530029296875,
-0.0012226104736328125,
-0.0230560302734375,
0.037261962890625,
0.0269775390625,
-0.02703857421875,
-0.01438140869140625,
0.032440185546875,
-0.00991058349609375,
-0.0192413330078125,
0.0499267578125,
-0.057769775390625,
0.11212158203125,
0.035491943359375,
0.015899658203125,
0.040496826171875,
0.042999267578125,
-0.064697265625,
0.0172119140625,
-0.021026611328125,
0.057342529296875,
0.02154541015625,
-0.0028285980224609375,
-0.0423583984375,
-0.0031452178955078125,
-0.0179443359375,
0.0223388671875,
0.0972900390625,
0.03533935546875,
-0.0408935546875,
-0.0165252685546875,
0.005283355712890625,
-0.00036787986755371094,
-0.050872802734375,
0.06201171875,
0.0152130126953125,
0.0158843994140625,
0.0017137527465820312,
-0.0208587646484375,
0.028839111328125,
-0.04608154296875,
-0.0224456787109375,
0.032073974609375,
-0.004459381103515625,
0.0005211830139160156,
0.0216064453125,
-0.0279998779296875,
-0.037200927734375,
0.017303466796875,
0.0271148681640625,
-0.0212249755859375,
0.01334381103515625,
0.00518035888671875,
0.0535888671875,
-0.0369873046875,
-0.0225067138671875,
-0.021759033203125,
0.051055908203125,
0.0276336669921875,
0.004138946533203125,
0.0279998779296875,
0.01122283935546875,
0.0430908203125,
-0.020416259765625,
0.005229949951171875,
0.0215911865234375,
-0.01039886474609375,
0.032806396484375,
0.0109710693359375,
0.01338958740234375,
-0.045684814453125,
0.02056884765625,
0.07452392578125,
0.037353515625,
-0.041259765625,
-0.06793212890625,
0.00440216064453125,
0.025390625,
0.036468505859375,
0.023651123046875,
0.057220458984375,
-0.0380859375,
0.0079345703125,
-0.0157318115234375,
-0.032257080078125,
-0.011322021484375,
0.01490020751953125,
-0.0150146484375,
-0.0105743408203125,
0.0288543701171875,
-0.03857421875,
-0.05908203125,
-0.0017194747924804688,
0.020172119140625,
0.0819091796875,
0.038818359375,
0.056793212890625,
0.022857666015625,
-0.034759521484375,
-0.02850341796875,
0.03912353515625,
0.01290130615234375,
0.043609619140625,
-0.0269622802734375,
-0.0027408599853515625,
0.01123046875,
0.034210205078125,
0.043975830078125,
0.0160980224609375,
0.03729248046875,
0.03106689453125,
0.006320953369140625,
0.0007882118225097656,
0.0267486572265625,
-0.00859832763671875,
0.022003173828125,
-0.0638427734375,
-0.01430511474609375,
-0.052276611328125,
-0.02569580078125,
-0.0021800994873046875,
0.00478363037109375,
-0.0249481201171875,
-0.003963470458984375,
0.0660400390625,
-0.0003871917724609375,
-0.002105712890625,
0.0175323486328125,
-0.0282440185546875,
0.0469970703125,
0.024749755859375,
-0.055877685546875,
-0.0147705078125,
-0.016876220703125,
-0.05084228515625,
0.0276641845703125,
0.0313720703125,
-0.03302001953125,
0.0235443115234375,
-0.006336212158203125,
0.0184783935546875,
0.0154876708984375,
-0.03106689453125,
0.0300445556640625,
0.0165557861328125,
0.01275634765625,
0.02093505859375,
-0.03546142578125,
-0.00652313232421875,
0.0269317626953125,
-0.0009937286376953125,
-0.0211334228515625,
0.05804443359375,
0.0013265609741210938,
-0.005767822265625,
-0.029449462890625,
0.04248046875,
-0.057525634765625,
0.0080718994140625,
-0.0212249755859375,
0.039520263671875,
0.038330078125,
-0.0098419189453125,
-0.0251922607421875,
0.006031036376953125,
0.05096435546875,
-0.017608642578125,
0.0027103424072265625,
0.024322509765625,
0.0063018798828125,
-0.021575927734375,
-0.01398468017578125,
-0.010772705078125,
-0.04705810546875,
-0.0169830322265625,
0.0185699462890625,
0.002666473388671875,
0.06207275390625,
0.002086639404296875,
0.0706787109375,
-0.0166473388671875,
-0.004730224609375,
0.0218353271484375,
-0.09527587890625,
0.0232391357421875,
0.0249481201171875,
-0.00144195556640625,
-0.045745849609375,
0.000667572021484375,
-0.00470733642578125,
0.0019216537475585938,
0.00983428955078125,
0.061126708984375,
0.01039886474609375,
0.01328277587890625,
-0.0017690658569335938,
0.039398193359375,
0.036285400390625,
-0.00661468505859375,
0.0149688720703125,
0.0240631103515625,
-0.0270538330078125,
0.0014820098876953125,
-0.0088043212890625,
-0.01263427734375,
-0.05340576171875,
-0.0214385986328125,
0.015350341796875,
-0.0352783203125,
-0.02313232421875,
-0.04827880859375,
-0.022247314453125,
0.04150390625,
0.0133514404296875,
-0.0626220703125,
0.037567138671875,
-0.01216888427734375,
0.0308990478515625,
-0.007282257080078125,
0.0024280548095703125,
-0.0072784423828125,
0.02923583984375,
-0.03485107421875,
0.0032405853271484375,
-0.0430908203125,
-0.01220703125,
-0.0223236083984375,
0.0125274658203125,
0.01751708984375,
-0.04168701171875,
0.0064544677734375,
-0.00890350341796875,
0.0472412109375,
0.032470703125,
0.0249481201171875,
-0.029541015625,
0.01456451416015625,
-0.016510009765625,
-0.01268768310546875,
-0.050048828125,
0.0189666748046875,
-0.08184814453125,
-0.0172882080078125,
-0.046051025390625,
0.01512908935546875,
0.01088714599609375,
-0.030548095703125,
-0.0282135009765625,
0.0171661376953125,
-0.01120758056640625,
-0.018768310546875,
-0.05230712890625,
0.0158233642578125,
0.0059051513671875,
0.0163421630859375,
-0.020050048828125,
0.009552001953125,
-0.0364990234375,
0.0192413330078125,
-0.01367950439453125,
0.00965118408203125,
0.0472412109375,
-0.0207977294921875,
-0.0144195556640625,
-0.01641845703125,
-0.01261138916015625,
-0.0178070068359375,
-0.0233917236328125,
-0.0033893585205078125,
0.018951416015625,
0.0009264945983886719,
-0.02880859375,
0.006908416748046875,
0.0188140869140625,
0.045135498046875,
0.0203857421875,
-0.0117950439453125,
-0.06365966796875,
-0.0197601318359375,
0.033843994140625,
0.040863037109375,
0.0155487060546875,
-0.02496337890625,
0.055572509765625,
0.0122528076171875,
-0.09954833984375,
0.0109100341796875,
0.0301513671875,
-0.035675048828125,
-0.0027179718017578125,
-0.0023593902587890625,
-0.0129547119140625,
-0.017578125,
-0.0002722740173339844,
-0.041656494140625,
-0.01273345947265625,
-0.0360107421875,
-0.0108795166015625,
-0.053558349609375,
0.036407470703125,
-0.034423828125,
0.0026683807373046875,
-0.0277862548828125,
-0.02960205078125,
0.0037136077880859375,
-0.04815673828125,
-0.038818359375,
-0.0177154541015625,
-0.0226898193359375,
0.0089111328125,
0.033966064453125,
-0.0117645263671875,
0.0279083251953125,
-0.0247955322265625,
-0.00011658668518066406,
0.007122039794921875,
-0.000957489013671875,
-0.01111602783203125,
-0.01947021484375,
-0.052276611328125,
0.0848388671875,
-0.01509857177734375,
0.058990478515625,
0.0025539398193359375,
0.0565185546875,
0.0145721435546875,
0.018096923828125,
-0.00675201416015625,
-0.01873779296875,
0.01213836669921875,
-0.03424072265625,
0.0009832382202148438,
0.0172576904296875,
-0.03350830078125,
-0.01959228515625,
-0.020050048828125,
0.0078582763671875,
0.00702667236328125,
-0.00923919677734375
] |
ac34bdb7760d6659d4d9f449775421bddfba14ab | Wordpress Stackexchange
Q: is_page_template not working Hi trying this code below to get working, but no look so far.
Idea is simple if page template is page-47.php display <h1>Something</h1> else <h1>This will show on any other page</h1> .
<?php if ( is_page_template( 'page-47.php' ) ): ?>
<h1>Something</h1>
<?php else: ?>
<h1>This will show on any other page</h1>
<?php endif ?>
Thank You
A: is_page_template() will only tell you if the page is using a custom page template. Meaning a template that was created by adding the Template Name: comment to the file and selecting it from the Template dropdown, as described here. The function works by checking the post meta for which template was selected.
If you have created a page template using the slug or ID using the method described here, which you appear to have, then the template being used is not stored in meta, so won't be picked up by the is_page_template() function.
If you want to know the filename of the current template being used, regardless of whether it's a custom template or not, you can use the global $template variable:
global $template;
if ( basename( $template ) === 'page-47.php' ) {
}
| Q: is_page_template not working Hi trying this code below to get working, but no look so far.
Idea is simple if page template is page-47.php display <h1>Something</h1> else <h1>This will show on any other page</h1> .
<?php if ( is_page_template( 'page-47.php' ) ): ?>
<h1>Something</h1>
<?php else: ?>
<h1>This will show on any other page</h1>
<?php endif ?>
Thank You
A: is_page_template() will only tell you if the page is using a custom page template. Meaning a template that was created by adding the Template Name: comment to the file and selecting it from the Template dropdown, as described here. The function works by checking the post meta for which template was selected.
If you have created a page template using the slug or ID using the method described here, which you appear to have, then the template being used is not stored in meta, so won't be picked up by the is_page_template() function.
If you want to know the filename of the current template being used, regardless of whether it's a custom template or not, you can use the global $template variable:
global $template;
if ( basename( $template ) === 'page-47.php' ) {
}
A: Thanks to Jacob Peattie! This also solved my problem.
add_filter( 'woocommerce_currency_symbol', 'change_currency_symbol', 10, 2 );
function change_currency_symbol( $symbols, $currency ) {
global $template;
if ( basename( $template ) === 'archive-chiptuning.php' && ( 'EUR' === $currency )) {
return '';
}
return $symbols;
}
| wordpress | {
"language": "en",
"length": 239,
"provenance": "stackexchange_00019.jsonl.gz:492766",
"question_score": "7",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/328384"
} | [
-0.00588226318359375,
-0.0146026611328125,
-0.01380157470703125,
-0.015228271484375,
-0.01535797119140625,
-0.001155853271484375,
-0.007152557373046875,
-0.020050048828125,
0.004398345947265625,
-0.0017986297607421875,
-0.040313720703125,
0.0198211669921875,
-0.0219573974609375,
-0.0010862350463867188,
0.024017333984375,
-0.029266357421875,
0.03375244140625,
0.0028705596923828125,
0.0228424072265625,
-0.01136016845703125,
0.00785064697265625,
0.0031185150146484375,
-0.0156097412109375,
0.048797607421875,
0.027740478515625,
-0.08404541015625,
0.057281494140625,
-0.0007328987121582031,
0.026275634765625,
-0.024078369140625,
0.0227203369140625,
0.0269012451171875,
0.032379150390625,
0.0270843505859375,
-0.047149658203125,
-0.0231781005859375,
-0.0299224853515625,
0.01071929931640625,
-0.0110015869140625,
0.00983428955078125,
-0.007038116455078125,
0.0126190185546875,
0.01511383056640625,
-0.00278472900390625,
0.00627899169921875,
-0.0165252685546875,
-0.03143310546875,
-0.06982421875,
-0.0130157470703125,
0.054351806640625,
0.00862884521484375,
0.006999969482421875,
0.00017702579498291016,
0.07830810546875,
0.0042572021484375,
0.0038700103759765625,
-0.031829833984375,
0.03515625,
0.0171356201171875,
0.004337310791015625,
-0.0143280029296875,
0.01346588134765625,
-0.0060577392578125,
-0.0204010009765625,
-0.0045318603515625,
-0.0299530029296875,
-0.04034423828125,
0.046875,
-0.0182952880859375,
-0.02264404296875,
0.009674072265625,
0.0029811859130859375,
0.0196075439453125,
-0.01947021484375,
0.001239776611328125,
-0.045074462890625,
0.0117034912109375,
-0.04022216796875,
-0.0148468017578125,
0.0155792236328125,
-0.005664825439453125,
0.0374755859375,
-0.031646728515625,
-0.00003510713577270508,
-0.020477294921875,
0.0118255615234375,
-0.02545166015625,
-0.0194549560546875,
-0.0232086181640625,
0.004390716552734375,
-0.02587890625,
-0.01541900634765625,
0.035491943359375,
-0.03643798828125,
-0.034332275390625,
0.0034885406494140625,
0.01031494140625,
0.0745849609375,
-0.033599853515625,
0.0163726806640625,
-0.03790283203125,
-0.00824737548828125,
0.0169219970703125,
-0.050811767578125,
0.0219879150390625,
0.062225341796875,
-0.0123443603515625,
-0.01343536376953125,
0.046905517578125,
0.005901336669921875,
0.0265655517578125,
0.0032100677490234375,
-0.036834716796875,
-0.024810791015625,
-0.0162811279296875,
0.0244598388671875,
-0.06201171875,
-0.0101470947265625,
-0.002811431884765625,
-0.01140594482421875,
0.036956787109375,
0.04498291015625,
0.04193115234375,
-0.05157470703125,
0.028045654296875,
0.0246124267578125,
-0.042083740234375,
-0.061370849609375,
0.00629425048828125,
0.019744873046875,
-0.0285491943359375,
-0.00018477439880371094,
0.02667236328125,
0.004261016845703125,
-0.01377105712890625,
-0.0200653076171875,
-0.00472259521484375,
-0.0225677490234375,
0.00811004638671875,
-0.0025234222412109375,
-0.00608062744140625,
-0.02679443359375,
0.01459503173828125,
-0.00856781005859375,
-0.026641845703125,
0.0172882080078125,
0.043243408203125,
0.020599365234375,
-0.042236328125,
-0.0394287109375,
0.004238128662109375,
-0.007373809814453125,
0.0243377685546875,
0.00775909423828125,
-0.00905609130859375,
-0.063232421875,
-0.00919342041015625,
-0.03851318359375,
0.032135009765625,
-0.04766845703125,
-0.0125732421875,
-0.00962066650390625,
0.0258941650390625,
-0.052520751953125,
-0.042877197265625,
0.011444091796875,
-0.04815673828125,
-0.00423431396484375,
0.0119171142578125,
0.001583099365234375,
-0.006038665771484375,
-0.0013446807861328125,
-0.00855255126953125,
-0.005947113037109375,
-0.006381988525390625,
0.0028896331787109375,
0.00574493408203125,
0.00807952880859375,
0.01288604736328125,
0.0107269287109375,
-0.0295867919921875,
-0.0350341796875,
0.023681640625,
-0.012481689453125,
-0.0780029296875,
0.049346923828125,
0.00847625732421875,
0.037139892578125,
0.0014467239379882812,
-0.01345062255859375,
0.087890625,
0.0294342041015625,
-0.0234832763671875,
0.056488037109375,
0.01119232177734375,
-0.0177459716796875,
-0.02581787109375,
0.02093505859375,
-0.01219940185546875,
-0.0640869140625,
0.01023101806640625,
-0.021026611328125,
0.0225067138671875,
0.01544952392578125,
-0.07110595703125,
0.01245880126953125,
-0.035736083984375,
0.0290069580078125,
-0.012664794921875,
0.03131103515625,
0.029144287109375,
-0.01050567626953125,
-0.0227203369140625,
0.00745391845703125,
-0.01403045654296875,
-0.017852783203125,
0.0300750732421875,
0.0169830322265625,
-0.01146697998046875,
0.023681640625,
-0.0198211669921875,
-0.0137481689453125,
-0.0433349609375,
0.025238037109375,
0.016510009765625,
0.03070068359375,
-0.0626220703125,
0.00852203369140625,
-0.07147216796875,
0.038177490234375,
-0.0650634765625,
0.0665283203125,
-0.006927490234375,
0.007503509521484375,
-0.0205078125,
-0.007289886474609375,
0.0079193115234375,
-0.0341796875,
0.0186920166015625,
0.033172607421875,
0.040069580078125,
0.031524658203125,
-0.012237548828125,
-0.007572174072265625,
0.08233642578125,
-0.049224853515625,
-0.0192108154296875,
0.00572967529296875,
0.017364501953125,
0.053741455078125,
-0.028289794921875,
0.025482177734375,
0.0035037994384765625,
-0.03204345703125,
-0.0030364990234375,
0.038238525390625,
-0.007335662841796875,
0.033447265625,
0.0052490234375,
0.03948974609375,
-0.0367431640625,
0.053070068359375,
0.050079345703125,
-0.0071563720703125,
0.035491943359375,
-0.004772186279296875,
0.0168609619140625,
-0.0030670166015625,
-0.0183258056640625,
-0.0029659271240234375,
0.01416778564453125,
-0.00814056396484375,
0.0191497802734375,
0.0214996337890625,
0.030517578125,
0.042816162109375,
-0.0411376953125,
-0.02764892578125,
0.0416259765625,
0.027587890625,
-0.01334381103515625,
0.036590576171875,
-0.05364990234375,
-0.0132293701171875,
-0.0302276611328125,
-0.0516357421875,
-0.0146636962890625,
0.01490020751953125,
0.041534423828125,
0.0207061767578125,
0.0318603515625,
0.052276611328125,
-0.00351715087890625,
0.06573486328125,
-0.0006842613220214844,
0.0021457672119140625,
0.045867919921875,
-0.0241546630859375,
0.03424072265625,
-0.0222015380859375,
0.0236053466796875,
0.054412841796875,
-0.03045654296875,
0.018341064453125,
-0.0034351348876953125,
0.012054443359375,
0.01457977294921875,
-0.015655517578125,
-0.007358551025390625,
-0.0079498291015625,
0.007122039794921875,
0.03228759765625,
-0.005115509033203125,
0.0462646484375,
-0.0160980224609375,
-0.05279541015625,
0.0188140869140625,
-0.016998291015625,
-0.056640625,
-0.0640869140625,
0.0003459453582763672,
-0.006450653076171875,
-0.01885986328125,
-0.03424072265625,
-0.009002685546875,
0.003078460693359375,
-0.04144287109375,
-0.0105743408203125,
-0.0124664306640625,
-0.060333251953125,
-0.03912353515625,
-0.08917236328125,
-0.06341552734375,
-0.042083740234375,
0.0113372802734375,
-0.00858306884765625,
-0.0217132568359375,
0.0859375,
0.0047454833984375,
-0.033721923828125,
0.007244110107421875,
0.0264892578125,
0.01263427734375,
0.01479339599609375,
0.029571533203125,
-0.0440673828125,
0.0296478271484375,
0.01142120361328125,
-0.01294708251953125,
0.010406494140625,
0.0009398460388183594,
-0.0247955322265625,
-0.02056884765625,
-0.02655029296875,
0.00574493408203125,
-0.002490997314453125,
0.03704833984375,
-0.028076171875,
-0.00690460205078125,
-0.060821533203125,
-0.07977294921875,
-0.0008974075317382812,
-0.07244873046875,
0.10040283203125,
0.0543212890625,
0.0096893310546875,
0.01020050048828125,
0.030517578125,
-0.0045013427734375,
0.016754150390625,
0.0298614501953125,
-0.03515625,
0.004901885986328125,
0.0030670166015625,
-0.002109527587890625,
-0.005886077880859375,
-0.01377105712890625,
-0.032501220703125,
-0.00911712646484375,
-0.0247039794921875,
-0.0027790069580078125,
0.01025390625,
-0.008453369140625,
-0.0081939697265625,
-0.0290069580078125,
0.0162811279296875,
-0.00919342041015625,
0.020904541015625,
-0.02764892578125,
-0.00433349609375,
0.0032634735107421875,
0.0576171875,
-0.049041748046875,
-0.03204345703125,
0.0118255615234375,
0.004497528076171875,
0.004703521728515625,
0.005039215087890625,
0.005855560302734375,
-0.0255889892578125,
-0.044769287109375,
0.0220947265625,
-0.0032596588134765625,
-0.022216796875,
-0.022216796875,
0.004978179931640625,
-0.0283050537109375,
-0.03094482421875,
-0.0027256011962890625,
-0.0262451171875,
-0.005565643310546875,
0.033660888671875,
-0.039794921875,
0.03326416015625,
0.01293182373046875,
-0.07147216796875,
-0.0634765625,
-0.0133209228515625,
0.0012073516845703125,
0.046539306640625,
0.014068603515625,
-0.02227783203125,
-0.033935546875,
0.0268402099609375,
0.0283203125,
0.05078125,
-0.004123687744140625,
-0.015716552734375,
0.0055999755859375,
-0.020233154296875,
0.013427734375,
-0.01396942138671875,
0.00838470458984375,
0.0268707275390625,
-0.01177215576171875,
0.0233612060546875,
-0.01256561279296875,
-0.029022216796875,
0.047607421875,
-0.039306640625,
-0.0103912353515625,
0.0012531280517578125,
0.0225677490234375,
0.01165771484375,
0.006565093994140625,
-0.0189208984375,
-0.003570556640625,
-0.024688720703125,
0.03717041015625,
-0.005657196044921875,
-0.02703857421875,
0.012481689453125,
0.0369873046875,
0.0251922607421875,
-0.032470703125,
-0.034637451171875,
0.03875732421875,
0.02301025390625,
-0.002452850341796875,
0.031829833984375,
0.01021575927734375,
-0.0165557861328125,
0.01244354248046875,
0.0076141357421875,
-0.035888671875,
-0.00934600830078125,
0.0648193359375,
-0.01343536376953125,
-0.0556640625,
0.03375244140625,
-0.047393798828125,
0.0257568359375,
0.0245208740234375,
-0.0153045654296875,
-0.022430419921875,
-0.031402587890625,
0.06268310546875,
-0.01184844970703125,
0.0257415771484375,
-0.06854248046875,
-0.052001953125,
0.0016307830810546875,
0.01508331298828125,
0.019073486328125,
0.017669677734375,
-0.0023059844970703125,
0.034149169921875,
0.0135955810546875,
-0.00986480712890625,
0.04071044921875,
0.054443359375,
0.004779815673828125,
0.01320648193359375,
0.0408935546875,
-0.00997161865234375,
-0.025146484375,
0.0177001953125,
0.035614013671875,
0.005878448486328125,
-0.0164642333984375,
-0.050048828125,
0.0007853507995605469,
-0.031280517578125,
-0.0083465576171875,
0.03790283203125,
0.04547119140625,
-0.00873565673828125,
0.0019779205322265625,
0.004146575927734375,
-0.01386260986328125,
0.000324249267578125,
-0.031646728515625,
-0.03778076171875,
0.01885986328125,
-0.0433349609375,
-0.0156707763671875,
0.0159759521484375,
0.01430511474609375,
-0.019775390625,
-0.0247344970703125,
0.0014448165893554688,
0.01248931884765625,
0.006656646728515625,
0.0308685302734375,
0.01085662841796875,
-0.01593017578125,
-0.0180816650390625,
0.013031005859375,
-0.029632568359375,
-0.016693115234375,
-0.0021648406982421875,
0.0379638671875,
0.01715087890625,
0.009796142578125,
-0.0033721923828125,
-0.019561767578125,
-0.00868988037109375,
0.0208892822265625,
-0.011322021484375,
-0.0478515625,
-0.016876220703125,
0.013702392578125,
0.018341064453125,
-0.00896453857421875,
-0.002490997314453125,
0.0009446144104003906,
-0.033294677734375,
0.00128936767578125,
0.017791748046875,
-0.0283355712890625,
0.004528045654296875,
0.0030155181884765625,
-0.0296478271484375,
-0.02508544921875,
-0.007701873779296875,
-0.0248260498046875,
-0.005443572998046875,
-0.014801025390625,
-0.016448974609375,
-0.003162384033203125,
-0.0229949951171875,
0.019073486328125,
-0.00818634033203125,
-0.004741668701171875,
-0.0042572021484375,
0.0223236083984375,
0.0265045166015625,
0.0176239013671875,
-0.085693359375,
0.024627685546875,
-0.051025390625,
-0.00763702392578125,
-0.026763916015625,
-0.0810546875,
-0.05035400390625,
0.0037403106689453125,
0.0006318092346191406,
0.01102447509765625,
0.0019779205322265625,
0.0149993896484375,
-0.004268646240234375,
0.053863525390625,
0.0036258697509765625,
0.07666015625,
-0.01971435546875,
0.0718994140625,
0.0110321044921875,
0.028564453125,
0.0221710205078125,
0.051727294921875,
0.00717926025390625,
-0.0248870849609375,
-0.00891876220703125,
-0.0220184326171875,
0.0290679931640625,
-0.01678466796875,
0.01197052001953125,
0.002262115478515625,
0.07403564453125,
0.0167236328125,
0.00774383544921875,
-0.0174407958984375,
0.0005588531494140625,
-0.0247344970703125,
0.01495361328125,
-0.0189208984375,
-0.03546142578125,
0.0294036865234375,
-0.01110076904296875,
0.008758544921875,
-0.0195770263671875,
-0.01861572265625,
0.01104736328125,
0.0068817138671875,
0.001232147216796875,
0.0220184326171875,
-0.0712890625,
0.073486328125,
0.07952880859375,
0.0245208740234375,
0.050506591796875,
-0.01467132568359375,
0.0193634033203125,
0.0194244384765625,
0.033660888671875,
-0.0003807544708251953,
-0.042877197265625,
0.043731689453125,
0.01387786865234375,
-0.0035915374755859375,
0.034637451171875,
-0.0251922607421875,
0.017059326171875,
0.06781005859375,
0.04156494140625,
-0.09246826171875,
-0.00724029541015625,
0.00344085693359375,
-0.00429534912109375,
0.033294677734375,
-0.045928955078125,
0.006748199462890625,
-0.023712158203125,
0.0897216796875,
0.00215911865234375,
-0.0256805419921875,
0.031341552734375,
-0.0269622802734375,
-0.01428985595703125,
-0.0237274169921875,
0.07568359375,
0.032501220703125,
-0.0039520263671875,
0.0138702392578125,
0.040374755859375,
0.00777435302734375,
-0.051422119140625,
0.01995849609375,
-0.0223236083984375,
0.0064239501953125,
-0.0242156982421875,
0.028717041015625,
-0.0171966552734375,
0.0278778076171875,
0.0188140869140625,
0.027130126953125,
0.005481719970703125,
0.024658203125,
-0.0131072998046875,
0.019866943359375,
0.005462646484375,
-0.01727294921875,
-0.036376953125,
-0.0035114288330078125,
-0.014495849609375,
-0.004894256591796875,
0.042327880859375,
0.01427459716796875,
-0.022216796875,
-0.0279998779296875,
-0.0165557861328125,
0.023162841796875,
0.0911865234375,
0.018310546875,
-0.049591064453125,
0.007633209228515625,
0.02227783203125,
-0.01027679443359375,
0.0097503662109375,
0.02801513671875,
-0.036773681640625,
-0.02618408203125,
0.0218505859375,
-0.031494140625,
-0.0261383056640625,
0.00799560546875,
-0.07745361328125,
0.077880859375,
0.0236663818359375,
0.049224853515625,
0.00875091552734375,
0.01226806640625,
-0.039794921875,
-0.0033969879150390625,
-0.039520263671875,
0.04608154296875,
0.0226287841796875,
0.083251953125,
-0.007122039794921875,
-0.0013780593872070312,
0.0501708984375,
0.035186767578125,
0.0211029052734375,
-0.0011911392211914062,
0.0005941390991210938,
0.0167236328125,
0.054412841796875,
0.037811279296875,
0.007717132568359375,
0.0030841827392578125,
-0.029571533203125,
-0.0096282958984375,
-0.01105499267578125,
-0.055816650390625,
0.0060272216796875,
-0.04559326171875,
-0.01317596435546875,
-0.01207733154296875,
0.00708770751953125,
0.004909515380859375,
-0.0270538330078125,
0.00820159912109375,
-0.051544189453125,
-0.0143280029296875,
0.033721923828125,
-0.0160369873046875,
-0.007503509521484375,
-0.0098876953125,
-0.0172271728515625,
-0.047210693359375,
-0.061920166015625,
-0.01073455810546875,
0.0215301513671875,
0.0105438232421875,
-0.0077667236328125,
-0.00205230712890625,
0.022979736328125,
-0.0006756782531738281,
-0.036407470703125,
-0.00928497314453125,
0.00942230224609375,
-0.0258331298828125,
0.059783935546875,
0.0157318115234375,
0.0226287841796875,
-0.0276947021484375,
-0.002651214599609375,
-0.00891876220703125,
0.043365478515625,
-0.037445068359375,
-0.031646728515625,
0.003612518310546875,
-0.0023250579833984375,
-0.024749755859375,
0.01149749755859375,
-0.01611328125,
0.03387451171875,
0.041717529296875,
-0.040771484375,
-0.0003452301025390625,
0.01137542724609375,
0.00795745849609375,
-0.023162841796875,
-0.0188751220703125,
0.01050567626953125,
0.00005841255187988281,
-0.051727294921875,
0.0162811279296875,
0.021026611328125,
0.059356689453125,
0.00873565673828125,
0.0655517578125,
0.0012912750244140625,
-0.024932861328125,
-0.039642333984375,
0.0202789306640625,
-0.030364990234375,
0.05413818359375,
-0.06561279296875,
-0.006023406982421875,
-0.00628662109375,
0.047698974609375,
0.03009033203125,
0.0112152099609375,
-0.005641937255859375,
-0.0280303955078125,
0.01219940185546875,
0.00928497314453125,
-0.005229949951171875,
-0.030303955078125,
0.05889892578125,
-0.04266357421875,
-0.007511138916015625,
-0.043121337890625,
-0.05535888671875,
-0.004817962646484375,
0.004428863525390625,
-0.0027618408203125,
-0.01727294921875,
0.0123291015625,
0.006439208984375,
-0.0372314453125,
0.0212554931640625,
0.01849365234375,
0.0628662109375,
0.026123046875,
-0.05645751953125,
-0.0005464553833007812,
-0.01495361328125,
-0.050384521484375,
0.0070343017578125,
0.03887939453125,
-0.02313232421875,
0.01261138916015625,
0.03643798828125,
0.03619384765625,
0.01506805419921875,
-0.046966552734375,
0.0109405517578125,
-0.0002465248107910156,
0.037078857421875,
0.0275726318359375,
-0.000736236572265625,
-0.0180206298828125,
0.00093841552734375,
0.055511474609375,
-0.01922607421875,
0.0784912109375,
-0.059417724609375,
0.019927978515625,
-0.0067901611328125,
0.02764892578125,
-0.039825439453125,
-0.02386474609375,
0.054473876953125,
0.01309967041015625,
-0.00124359130859375,
-0.021148681640625,
-0.06414794921875,
0.0275726318359375,
0.0190582275390625,
-0.0006895065307617188,
0.0391845703125,
-0.05279541015625,
0.00849151611328125,
0.00478363037109375,
-0.0237274169921875,
-0.002521514892578125,
-0.004123687744140625,
0.0294036865234375,
0.0205078125,
0.0210113525390625,
0.033447265625,
-0.007602691650390625,
0.0274810791015625,
-0.0263824462890625,
-0.0438232421875,
0.004322052001953125,
-0.037353515625,
-0.021148681640625,
0.0172271728515625,
0.039886474609375,
-0.03631591796875,
0.007602691650390625,
-0.00569915771484375,
-0.01267242431640625,
0.0191192626953125,
0.01268768310546875,
0.01247406005859375,
-0.005645751953125,
0.0030574798583984375,
-0.0142059326171875,
-0.0009546279907226562,
-0.0838623046875,
-0.01061248779296875,
0.0345458984375,
0.0238189697265625,
0.048370361328125,
-0.05804443359375,
-0.022674560546875,
-0.0181732177734375,
0.0082244873046875,
0.0462646484375,
0.01221466064453125,
0.0158538818359375,
-0.01007080078125,
-0.0308074951171875,
0.0117950439453125,
-0.005176544189453125,
-0.00485992431640625,
-0.020599365234375,
-0.017547607421875,
0.0019407272338867188,
-0.0036602020263671875,
0.00933074951171875,
0.00004363059997558594,
0.0032062530517578125,
-0.035980224609375,
0.08203125,
-0.00740814208984375,
-0.062164306640625,
0.066162109375,
0.0182342529296875,
0.038330078125,
-0.0114898681640625,
-0.015350341796875,
0.03448486328125,
0.0185699462890625,
0.06793212890625,
-0.023529052734375,
-0.0263519287109375,
0.033172607421875,
-0.018402099609375,
-0.012054443359375,
-0.0447998046875,
-0.0027065277099609375,
-0.07147216796875,
0.003643035888671875,
0.040283203125,
0.01371002197265625,
0.038421630859375,
-0.028533935546875,
-0.09307861328125,
0.01511383056640625,
0.00681304931640625,
-0.056060791015625,
-0.0080108642578125,
-0.010101318359375,
-0.0000355839729309082,
-0.00562286376953125,
-0.01739501953125,
-0.009857177734375,
-0.0203399658203125,
0.025634765625,
0.0213623046875,
-0.00008696317672729492,
0.0362548828125,
0.033233642578125,
-0.049530029296875,
0.0032062530517578125,
-0.03668212890625,
-0.01690673828125,
0.00620269775390625,
-0.0278778076171875,
0.0174407958984375,
0.001983642578125,
-0.05462646484375,
-0.051025390625,
0.005908966064453125,
0.04193115234375,
0.0264892578125,
0.0205841064453125,
-0.057464599609375,
0.0010175704956054688,
0.057464599609375,
0.05108642578125,
0.035919189453125,
-0.037353515625,
0.00241851806640625,
-0.06329345703125,
-0.11199951171875,
0.005519866943359375,
0.054931640625,
-0.0740966796875,
0.03778076171875,
0.04315185546875,
-0.0237579345703125,
-0.0035037994384765625,
-0.01552581787109375,
-0.056671142578125,
0.01611328125,
-0.027618408203125,
-0.01300811767578125,
-0.0027923583984375,
-0.032379150390625,
0.06390380859375,
-0.03759765625,
-0.018585205078125,
-0.00725555419921875,
0.037109375,
0.003131866455078125,
-0.0256805419921875,
0.01515960693359375,
0.04345703125,
-0.066650390625,
-0.016876220703125,
0.0160369873046875,
0.00907135009765625,
-0.0214691162109375,
-0.0005784034729003906,
0.01543426513671875,
0.0284881591796875,
-0.0201568603515625,
0.0170440673828125,
-0.0225677490234375,
0.0350341796875,
-0.032806396484375,
0.07177734375,
-0.0081329345703125,
0.02264404296875,
0.0020275115966796875,
0.036224365234375,
0.00669097900390625,
-0.0245208740234375,
0.00754547119140625,
-0.0294189453125,
-0.006435394287109375,
-0.01386260986328125,
-0.05242919921875,
-0.076171875,
0.036712646484375,
-0.0092315673828125,
-0.00749969482421875,
0.037017822265625
] |
0d1a7e6ee731a5795fcb43eae2727b0dad0e135c | Wordpress Stackexchange
Q: Custom CSS for viewing a draft page on the frontend? When viewing a draft page on the frontend, I'd like to see that status right away on the page itself. Currently, there is zero indication. Is there any way to have draft-specific CSS (or even just a header message?)
A: There is probably a better way but you could add the following CSS to your stylesheet, which will add a little banner when viewing a page that has a status of draft.
.status-draft.hentry:before {
content: "Previewing a Draft";
background: #87C5D6 !important;
display: block;
text-align: center;
}
You could also use these classes for the different statuses.
.status-pending
.status-publish
.status-future
.status-private
Works for me.
| Q: Custom CSS for viewing a draft page on the frontend? When viewing a draft page on the frontend, I'd like to see that status right away on the page itself. Currently, there is zero indication. Is there any way to have draft-specific CSS (or even just a header message?)
A: There is probably a better way but you could add the following CSS to your stylesheet, which will add a little banner when viewing a page that has a status of draft.
.status-draft.hentry:before {
content: "Previewing a Draft";
background: #87C5D6 !important;
display: block;
text-align: center;
}
You could also use these classes for the different statuses.
.status-pending
.status-publish
.status-future
.status-private
Works for me.
A: OP here. If the homepage is set to draft, the CSS class used in the chosen answer is not available. Here's what I'm using now to place a diagonal DRAFT watermark, using "CSS and Javascript Toolbox" plugin:
CSS
.draft-watermark{
position:absolute;
background:clear;
display:block;
min-height:50%;
min-width:50%;
color:lightgrey;
font-size:500%;
transform:rotate(310deg);
-webkit-transform:rotate(310deg);
z-index: 100;
}
.draft-watermark:before {
content: "DRAFT DRAFT DRAFT DRAFT";
}
Script in CJToolbox, set to be included on all pages:
<?php if (get_post_status(get_the_ID()) == 'draft'): ?>
<script>
jQuery(document).ready(function() {
jQuery('<div class="draft-watermark"></div>').insertBefore(jQuery('div:first'));
});
</script>
<?php endif; ?>
| wordpress | {
"language": "en",
"length": 200,
"provenance": "stackexchange_00019.jsonl.gz:492779",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/328408"
} | [
0.049957275390625,
0.0010862350463867188,
-0.021087646484375,
-0.06768798828125,
0.0015783309936523438,
-0.0306396484375,
-0.0224761962890625,
-0.004085540771484375,
0.0394287109375,
-0.01204681396484375,
-0.05853271484375,
-0.001132965087890625,
-0.032318115234375,
-0.0196990966796875,
0.0010004043579101562,
-0.05120849609375,
0.053466796875,
-0.0421142578125,
0.055328369140625,
0.005657196044921875,
-0.007610321044921875,
0.029571533203125,
0.06805419921875,
0.023406982421875,
0.0277252197265625,
0.002140045166015625,
0.01171875,
-0.005645751953125,
0.01285552978515625,
-0.007293701171875,
0.0162811279296875,
-0.0141754150390625,
0.0270538330078125,
-0.0294647216796875,
0.0276641845703125,
0.03399658203125,
0.021331787109375,
-0.0140228271484375,
-0.00634002685546875,
0.01837158203125,
0.04034423828125,
-0.022857666015625,
-0.025360107421875,
-0.0142059326171875,
-0.0238800048828125,
-0.021728515625,
0.0252227783203125,
-0.0251312255859375,
0.0131988525390625,
-0.00795745849609375,
0.0220947265625,
-0.0421142578125,
0.0284271240234375,
0.010101318359375,
-0.035308837890625,
-0.027008056640625,
-0.0310516357421875,
0.04156494140625,
0.027130126953125,
-0.0269317626953125,
-0.00992584228515625,
0.0198211669921875,
0.012298583984375,
0.02545166015625,
-0.0187225341796875,
0.0123748779296875,
0.011199951171875,
0.022674560546875,
-0.00009626150131225586,
-0.0482177734375,
-0.0257415771484375,
0.001583099365234375,
0.0218505859375,
-0.03759765625,
-0.07318115234375,
0.024566650390625,
-0.0041046142578125,
-0.005126953125,
0.0318603515625,
-0.056060791015625,
-0.0284576416015625,
0.00019037723541259766,
-0.039581298828125,
-0.04949951171875,
0.029754638671875,
-0.004787445068359375,
-0.026153564453125,
-0.01113128662109375,
0.003814697265625,
0.0311126708984375,
-0.01268768310546875,
0.001209259033203125,
0.01401519775390625,
0.0254974365234375,
-0.0139007568359375,
0.0106201171875,
-0.0131378173828125,
0.052520751953125,
-0.0019092559814453125,
0.007083892822265625,
-0.018341064453125,
-0.009033203125,
-0.033172607421875,
-0.03466796875,
-0.0004792213439941406,
0.053253173828125,
0.007045745849609375,
0.0210113525390625,
0.0019741058349609375,
0.0015048980712890625,
0.0015277862548828125,
-0.02490234375,
-0.0190582275390625,
-0.0121307373046875,
-0.04132080078125,
0.01016998291015625,
-0.01690673828125,
-0.01509857177734375,
0.002666473388671875,
-0.01557159423828125,
0.029693603515625,
0.056732177734375,
-0.002979278564453125,
0.00516510009765625,
0.0092620849609375,
0.041595458984375,
0.0204315185546875,
-0.0682373046875,
-0.0012159347534179688,
0.0021915435791015625,
-0.044677734375,
0.032928466796875,
0.037078857421875,
-0.00942230224609375,
-0.01074981689453125,
-0.0009813308715820312,
0.03656005859375,
0.033294677734375,
-0.0227813720703125,
0.03472900390625,
-0.0124359130859375,
-0.012542724609375,
0.01715087890625,
-0.0267791748046875,
-0.05401611328125,
0.0291595458984375,
0.027191162109375,
-0.008056640625,
-0.0276336669921875,
-0.07586669921875,
-0.048614501953125,
0.00531768798828125,
0.02423095703125,
0.004505157470703125,
-0.0164947509765625,
-0.0028228759765625,
0.006267547607421875,
-0.004322052001953125,
-0.00428009033203125,
-0.016021728515625,
0.060150146484375,
0.007762908935546875,
-0.00801849365234375,
0.0013990402221679688,
-0.0008358955383300781,
-0.026153564453125,
-0.0362548828125,
0.0034923553466796875,
0.024261474609375,
-0.0234832763671875,
-0.0250701904296875,
-0.048431396484375,
0.01474761962890625,
0.007770538330078125,
-0.0079803466796875,
0.07122802734375,
0.06365966796875,
0.0156402587890625,
-0.0009059906005859375,
0.006805419921875,
-0.037933349609375,
-0.046875,
0.04595947265625,
-0.03717041015625,
-0.035308837890625,
0.00901031494140625,
0.0070037841796875,
0.057037353515625,
0.024078369140625,
0.01806640625,
-0.02362060546875,
-0.00431060791015625,
-0.0281829833984375,
0.021575927734375,
-0.0240020751953125,
-0.025482177734375,
-0.028961181640625,
-0.00452423095703125,
-0.0181884765625,
0.01690673828125,
-0.01161956787109375,
0.0026950836181640625,
0.0115203857421875,
0.02069091796875,
0.0159149169921875,
0.0187225341796875,
-0.00676727294921875,
0.024688720703125,
-0.0271453857421875,
-0.007053375244140625,
0.03143310546875,
-0.0234832763671875,
-0.0239715576171875,
-0.0257415771484375,
-0.04034423828125,
-0.00977325439453125,
0.00890350341796875,
0.0126495361328125,
0.024017333984375,
0.01300811767578125,
0.0232086181640625,
0.017181396484375,
0.0023555755615234375,
-0.01517486572265625,
0.00567626953125,
-0.00010520219802856445,
0.001941680908203125,
-0.0032958984375,
0.055999755859375,
0.0107574462890625,
0.034271240234375,
-0.0236358642578125,
0.0240478515625,
0.05780029296875,
0.0264739990234375,
-0.00379180908203125,
0.031036376953125,
-0.1072998046875,
0.0179595947265625,
0.03277587890625,
0.0222930908203125,
-0.000049054622650146484,
-0.005466461181640625,
0.00888824462890625,
0.07940673828125,
0.039825439453125,
0.0212554931640625,
0.0006256103515625,
0.005306243896484375,
0.024749755859375,
-0.0182647705078125,
-0.0144500732421875,
0.01212310791015625,
-0.036041259765625,
-0.00957489013671875,
0.0474853515625,
-0.0197296142578125,
-0.01326751708984375,
0.0294952392578125,
-0.0101165771484375,
0.01157379150390625,
0.0220489501953125,
-0.0016946792602539062,
0.005397796630859375,
0.00844573974609375,
0.0118255615234375,
0.0517578125,
0.033477783203125,
-0.0145416259765625,
0.0019216537475585938,
0.009796142578125,
-0.01038360595703125,
0.01534271240234375,
0.0292510986328125,
0.0194091796875,
-0.0162353515625,
-0.002777099609375,
-0.032318115234375,
0.037933349609375,
0.011749267578125,
-0.01214599609375,
0.0330810546875,
-0.05352783203125,
-0.0196533203125,
0.01247406005859375,
-0.061614990234375,
-0.0243682861328125,
0.0022449493408203125,
0.0274810791015625,
0.0498046875,
0.048980712890625,
0.051513671875,
0.0285797119140625,
-0.00218963623046875,
0.01085662841796875,
0.012939453125,
0.0020961761474609375,
-0.0281219482421875,
0.04962158203125,
-0.0302581787109375,
0.014923095703125,
0.07220458984375,
-0.01471710205078125,
0.029541015625,
-0.0203399658203125,
0.005977630615234375,
-0.0103607177734375,
-0.02294921875,
-0.03326416015625,
-0.0523681640625,
-0.005100250244140625,
-0.005809783935546875,
0.0175018310546875,
0.001499176025390625,
0.0200653076171875,
0.0018529891967773438,
-0.00868988037109375,
0.0258941650390625,
0.01702880859375,
0.0386962890625,
-0.003551483154296875,
-0.04541015625,
-0.020599365234375,
-0.0256805419921875,
-0.0215606689453125,
0.008544921875,
-0.01873779296875,
0.0055694580078125,
-0.060089111328125,
-0.017333984375,
-0.047943115234375,
-0.081298828125,
-0.0631103515625,
0.01015472412109375,
0.00531768798828125,
0.029876708984375,
-0.0051116943359375,
0.06878662109375,
0.0080413818359375,
-0.044921875,
-0.01375579833984375,
0.066162109375,
-0.01172637939453125,
-0.01922607421875,
0.021728515625,
-0.02789306640625,
-0.02447509765625,
0.0188446044921875,
0.0294189453125,
0.00444793701171875,
-0.0197601318359375,
-0.01047515869140625,
-0.068603515625,
-0.039520263671875,
-0.068603515625,
0.06170654296875,
0.0869140625,
-0.059295654296875,
-0.0137176513671875,
-0.06890869140625,
0.007781982421875,
0.029449462890625,
-0.02032470703125,
-0.0828857421875,
0.0133056640625,
-0.0271148681640625,
-0.0227508544921875,
-0.021026611328125,
0.019073486328125,
0.01018524169921875,
0.04217529296875,
0.0162506103515625,
-0.040191650390625,
-0.02789306640625,
-0.0229034423828125,
-0.034698486328125,
0.021820068359375,
-0.00759124755859375,
0.05072021484375,
0.01523590087890625,
0.03778076171875,
-0.00606536865234375,
0.0423583984375,
-0.051727294921875,
-0.0823974609375,
0.02191162109375,
-0.10601806640625,
-0.0113983154296875,
-0.05303955078125,
0.0144500732421875,
0.0038776397705078125,
0.09912109375,
-0.0131378173828125,
-0.0013284683227539062,
0.0021915435791015625,
0.0213470458984375,
-0.0606689453125,
-0.05908203125,
-0.049774169921875,
0.013519287109375,
-0.08721923828125,
0.00879669189453125,
-0.0037860870361328125,
-0.045440673828125,
-0.0259552001953125,
-0.02813720703125,
-0.06610107421875,
-0.0469970703125,
0.000032067298889160156,
0.0238494873046875,
-0.0014209747314453125,
-0.0275115966796875,
-0.02398681640625,
-0.0247039794921875,
0.0256805419921875,
-0.03466796875,
-0.043701171875,
-0.00489044189453125,
-0.0002372264862060547,
0.023651123046875,
0.02044677734375,
-0.0302276611328125,
0.04437255859375,
0.0701904296875,
0.00458526611328125,
0.06500244140625,
-0.024169921875,
-0.0196990966796875,
0.0285797119140625,
0.029266357421875,
0.01306915283203125,
0.0017547607421875,
-0.0009245872497558594,
-0.01139068603515625,
-0.01416778564453125,
0.005390167236328125,
-0.031463623046875,
0.0119476318359375,
-0.0038127899169921875,
-0.0259857177734375,
-0.039306640625,
-0.047637939453125,
0.003078460693359375,
0.02996826171875,
-0.006603240966796875,
0.0152435302734375,
-0.040863037109375,
-0.0225677490234375,
-0.01224517822265625,
0.019317626953125,
-0.053924560546875,
0.0020275115966796875,
-0.0035839080810546875,
0.03826904296875,
-0.0168304443359375,
0.033111572265625,
-0.024444580078125,
0.051971435546875,
-0.0081939697265625,
0.03533935546875,
0.039093017578125,
-0.038055419921875,
0.07550048828125,
0.01267242431640625,
-0.023590087890625,
0.06036376953125,
-0.036834716796875,
0.022552490234375,
-0.0426025390625,
0.01275634765625,
0.032257080078125,
-0.00833892822265625,
-0.02935791015625,
-0.033966064453125,
0.0245819091796875,
-0.00009614229202270508,
0.0122222900390625,
-0.03375244140625,
0.049957275390625,
0.01355743408203125,
-0.0070343017578125,
-0.01020050048828125,
-0.025146484375,
0.056427001953125,
0.045562744140625,
-0.0035419464111328125,
0.0131988525390625,
0.017578125,
-0.00389862060546875,
-0.0149078369140625,
-0.058868408203125,
-0.01255035400390625,
-0.00839996337890625,
-0.002513885498046875,
-0.016937255859375,
0.020172119140625,
-0.01342010498046875,
0.0814208984375,
0.0165252685546875,
-0.051544189453125,
0.0104522705078125,
-0.026458740234375,
-0.049468994140625,
0.00791168212890625,
0.036376953125,
0.01203155517578125,
-0.0050048828125,
0.0201568603515625,
-0.0079498291015625,
0.04248046875,
0.0012950897216796875,
-0.0168609619140625,
0.029022216796875,
0.01534271240234375,
-0.0216522216796875,
0.005001068115234375,
0.02130126953125,
0.007045745849609375,
0.007965087890625,
-0.0014333724975585938,
0.005649566650390625,
-0.0028476715087890625,
-0.01509857177734375,
0.00748443603515625,
0.048126220703125,
0.03851318359375,
-0.061370849609375,
0.0633544921875,
-0.016510009765625,
-0.0004763603210449219,
-0.0133056640625,
-0.00395965576171875,
-0.0275115966796875,
-0.0090484619140625,
0.06756591796875,
0.00881195068359375,
-0.0194091796875,
0.027496337890625,
0.0254364013671875,
-0.01319122314453125,
-0.01340484619140625,
0.0047760009765625,
0.0010356903076171875,
0.0196075439453125,
-0.005466461181640625,
-0.01806640625,
0.033599853515625,
0.038360595703125,
-0.0235443115234375,
-0.020599365234375,
0.020263671875,
0.03448486328125,
-0.022430419921875,
-0.0218505859375,
0.0177459716796875,
-0.07403564453125,
-0.011016845703125,
-0.0208892822265625,
0.01464080810546875,
0.042938232421875,
-0.035369873046875,
0.021881103515625,
-0.03564453125,
0.00524139404296875,
-0.0521240234375,
0.0310516357421875,
-0.0159149169921875,
-0.0218963623046875,
0.019744873046875,
-0.050567626953125,
-0.054962158203125,
-0.05224609375,
-0.026702880859375,
-0.021087646484375,
-0.01202392578125,
0.0078887939453125,
0.037078857421875,
0.034698486328125,
-0.0011348724365234375,
-0.064697265625,
-0.01099395751953125,
0.01012420654296875,
0.0496826171875,
0.074462890625,
0.019256591796875,
0.03021240234375,
-0.033843994140625,
0.06219482421875,
0.017730712890625,
0.00428009033203125,
-0.01532745361328125,
-0.03656005859375,
0.0104217529296875,
-0.0216064453125,
-0.00494384765625,
-0.0091400146484375,
-0.002002716064453125,
0.01345062255859375,
0.0458984375,
0.00862884521484375,
0.01143646240234375,
0.0124664306640625,
0.0270233154296875,
-0.00873565673828125,
-0.0186309814453125,
-0.015899658203125,
-0.04486083984375,
0.051361083984375,
0.01232147216796875,
0.00095367431640625,
0.005859375,
-0.0092010498046875,
-0.00992584228515625,
0.00420379638671875,
0.00453948974609375,
-0.040283203125,
-0.0181121826171875,
0.01068115234375,
0.048828125,
0.0031147003173828125,
0.039306640625,
0.00616455078125,
0.0207366943359375,
0.037567138671875,
0.00920867919921875,
-0.0298919677734375,
-0.037200927734375,
0.06048583984375,
0.0263824462890625,
-0.0102691650390625,
0.073486328125,
-0.0189056396484375,
0.023223876953125,
0.077392578125,
0.057281494140625,
-0.09527587890625,
0.00484466552734375,
0.00562286376953125,
-0.031341552734375,
0.032440185546875,
0.007030487060546875,
-0.0100555419921875,
-0.0323486328125,
0.0322265625,
-0.0008521080017089844,
0.002262115478515625,
0.027191162109375,
0.0069732666015625,
0.023651123046875,
-0.0030994415283203125,
0.0531005859375,
-0.0125579833984375,
-0.09576416015625,
-0.0298919677734375,
0.064697265625,
-0.045867919921875,
-0.0224151611328125,
0.045928955078125,
-0.0286865234375,
0.01003265380859375,
0.00901031494140625,
0.043060302734375,
-0.00635528564453125,
-0.00046563148498535156,
0.0654296875,
0.038330078125,
-0.023193359375,
0.031585693359375,
-0.007244110107421875,
0.045196533203125,
0.002689361572265625,
-0.03485107421875,
0.00583648681640625,
0.020111083984375,
0.0236663818359375,
-0.0143585205078125,
-0.0216064453125,
0.0098876953125,
-0.044403076171875,
0.004451751708984375,
-0.00684356689453125,
-0.0073699951171875,
0.0772705078125,
-0.053375244140625,
-0.0077362060546875,
0.03082275390625,
0.01131439208984375,
-0.0092010498046875,
0.0046844482421875,
-0.01020050048828125,
-0.0335693359375,
-0.00738525390625,
-0.0163726806640625,
-0.049041748046875,
0.015594482421875,
-0.0169830322265625,
-0.06768798828125,
0.0022792816162109375,
0.006008148193359375,
0.036712646484375,
-0.0035686492919921875,
-0.01027679443359375,
-0.0113067626953125,
-0.027618408203125,
-0.0435791015625,
0.044891357421875,
-0.0019350051879882812,
0.046112060546875,
-0.054473876953125,
-0.01360321044921875,
0.0167236328125,
0.0276336669921875,
0.03826904296875,
0.00856781005859375,
0.0273590087890625,
0.0169525146484375,
0.08837890625,
0.0219573974609375,
-0.0130767822265625,
-0.00691986083984375,
-0.00951385498046875,
0.002460479736328125,
-0.0087432861328125,
-0.018035888671875,
0.02227783203125,
-0.049835205078125,
-0.030487060546875,
0.00959014892578125,
0.0215606689453125,
0.014556884765625,
0.0143890380859375,
0.058013916015625,
-0.11724853515625,
0.0249176025390625,
0.0875244140625,
0.023773193359375,
-0.012969970703125,
0.0253143310546875,
0.004619598388671875,
-0.046783447265625,
-0.03973388671875,
-0.017791748046875,
0.0257110595703125,
-0.0101470947265625,
0.0257110595703125,
0.01406097412109375,
0.0181884765625,
-0.002838134765625,
0.04718017578125,
0.03338623046875,
0.06231689453125,
-0.033294677734375,
0.0030269622802734375,
0.0001163482666015625,
0.03668212890625,
-0.00014650821685791016,
-0.0074005126953125,
-0.00945281982421875,
0.0030040740966796875,
-0.016876220703125,
0.006412506103515625,
0.02093505859375,
-0.022979736328125,
-0.0078277587890625,
-0.0185546875,
0.0028896331787109375,
-0.041229248046875,
-0.05047607421875,
-0.007732391357421875,
-0.0302886962890625,
-0.010528564453125,
0.04644775390625,
-0.0153656005859375,
-0.057830810546875,
0.01666259765625,
-0.033538818359375,
-0.015716552734375,
-0.000614166259765625,
-0.0036449432373046875,
0.0165863037109375,
0.0223236083984375,
0.003650665283203125,
0.02520751953125,
0.0006914138793945312,
-0.032928466796875,
0.026702880859375,
0.037811279296875,
0.0206451416015625,
0.00030875205993652344,
0.04278564453125,
0.0021419525146484375,
0.007354736328125,
-0.01447296142578125,
0.0087738037109375,
0.01055145263671875,
-0.00392913818359375,
-0.00826263427734375,
-0.020904541015625,
0.005672454833984375,
-0.034942626953125,
-0.0184478759765625,
-0.0831298828125,
0.030059814453125,
0.039459228515625,
0.013519287109375,
0.0276641845703125,
-0.055938720703125,
0.0712890625,
-0.007633209228515625,
0.03350830078125,
-0.008331298828125,
-0.0247650146484375,
0.01067352294921875,
-0.03228759765625,
0.027069091796875,
-0.002422332763671875,
-0.013092041015625,
-0.0025882720947265625,
-0.014068603515625,
-0.0178070068359375,
-0.01052093505859375,
0.0217742919921875,
0.0021228790283203125,
0.032684326171875,
0.006000518798828125,
-0.005947113037109375,
-0.00830841064453125,
-0.01335906982421875,
0.045623779296875,
0.0584716796875,
-0.0164031982421875,
0.0384521484375,
-0.044036865234375,
-0.0302886962890625,
-0.0134735107421875,
0.037506103515625,
-0.01352691650390625,
0.057220458984375,
-0.01073455810546875,
0.00658416748046875,
0.01425933837890625,
0.035614013671875,
-0.02459716796875,
-0.021636962890625,
0.062042236328125,
-0.0208587646484375,
0.005092620849609375,
-0.0016946792602539062,
-0.05926513671875,
0.038604736328125,
-0.0057525634765625,
-0.0316162109375,
0.020416259765625,
-0.0034427642822265625,
-0.0092010498046875,
-0.01137542724609375,
-0.014251708984375,
-0.0228424072265625,
-0.00678253173828125,
0.022979736328125,
0.00038504600524902344,
-0.00003361701965332031,
-0.036651611328125,
-0.01517486572265625,
0.043182373046875,
0.01097869873046875,
-0.0233917236328125,
0.041259765625,
-0.062347412109375,
0.06939697265625,
0.033111572265625,
0.013031005859375,
0.0258026123046875,
-0.005260467529296875,
-0.0093841552734375,
0.01308441162109375,
0.01531982421875,
-0.0189971923828125,
0.0205078125,
0.050140380859375,
0.0419921875,
-0.0153045654296875,
0.020538330078125,
-0.044097900390625,
-0.0118865966796875,
0.012359619140625,
0.0310821533203125,
0.023895263671875,
-0.0275726318359375,
-0.01087188720703125,
-0.013214111328125,
-0.00508880615234375,
0.0328369140625,
0.0009250640869140625,
0.00434112548828125,
-0.04052734375,
-0.030059814453125,
0.031402587890625,
-0.01837158203125,
0.0160369873046875,
-0.022979736328125,
-0.0233917236328125,
0.0030422210693359375,
-0.0005211830139160156,
0.016326904296875,
-0.0192718505859375,
-0.0169677734375,
-0.037689208984375,
-0.029052734375,
-0.01091766357421875,
0.0635986328125,
-0.0033969879150390625,
-0.01154327392578125,
0.026458740234375,
-0.01438140869140625,
0.0088043212890625,
-0.0716552734375,
0.0027484893798828125,
-0.024017333984375,
0.0206451416015625,
-0.045989990234375,
-0.018798828125,
0.0180816650390625,
0.02099609375,
-0.00778961181640625,
-0.0222320556640625,
0.04010009765625,
-0.003910064697265625,
-0.0263214111328125,
0.0232391357421875,
0.03521728515625,
-0.032623291015625,
-0.1007080078125,
-0.0291595458984375,
-0.01373291015625,
-0.054779052734375,
0.0070953369140625,
0.01052093505859375,
-0.0244293212890625,
-0.00711822509765625,
0.00689697265625,
-0.01032257080078125,
0.01541900634765625,
0.0157928466796875,
0.01898193359375,
0.041839599609375,
0.00978851318359375,
0.035400390625,
-0.044097900390625,
0.01206207275390625,
0.0076141357421875,
0.003719329833984375,
-0.0304412841796875,
0.00531768798828125,
-0.03082275390625,
0.01541900634765625,
-0.032989501953125,
-0.115478515625,
-0.0123291015625,
-0.01285552978515625,
0.021728515625,
0.0098114013671875,
-0.039031982421875,
-0.04638671875,
0.0208740234375,
-0.01000213623046875,
0.00357818603515625,
0.03399658203125,
0.033447265625,
-0.017669677734375,
-0.054840087890625,
0.0021648406982421875,
0.0227508544921875,
-0.0501708984375,
-0.016387939453125,
0.0278167724609375,
-0.0134429931640625,
0.018585205078125,
-0.006259918212890625,
-0.04052734375,
0.00640106201171875,
-0.01073455810546875,
0.00814056396484375,
-0.064453125,
-0.0256195068359375,
0.07421875,
-0.040313720703125,
-0.0095062255859375,
0.0267181396484375,
0.0052490234375,
0.0305938720703125,
0.042816162109375,
0.0063018798828125,
0.0164794921875,
-0.03228759765625,
0.01355743408203125,
0.0074615478515625,
-0.00809478759765625,
-0.0374755859375,
-0.0093231201171875,
-0.0290374755859375,
-0.0132598876953125,
0.0016765594482421875,
-0.035186767578125,
-0.0139617919921875,
0.024810791015625,
-0.0228118896484375,
0.07110595703125,
-0.024810791015625,
-0.003520965576171875,
-0.013946533203125,
0.00988006591796875,
-0.01861572265625,
0.01499176025390625,
0.007232666015625,
-0.025146484375,
0.006649017333984375,
-0.030242919921875,
-0.0034694671630859375,
-0.054840087890625,
0.026123046875,
-0.025726318359375,
-0.0137786865234375,
0.03326416015625
] |
07be36a309d2725a1635f912a70bfaba8b561284 | Wordpress Stackexchange
Q: RSS feed with specific keyword I am able to get articles as RSS feed from below url
http://wordpress_site/blog/feed
I am also able to get articles from BlogSpot with specific keywords as below
https://www.yourblogname.blogspot.com/feeds/posts/default?q=KEYWORD
I have tried to get articles from filtering with specific KEYWORD in wordpress blog but I am not able to get. What can be the URL.
I am very much newbie to wordpress.
A: Here's how we can use the builtin public query parameters on feeds:
Query parameter: s
We can use the s query parameter on the feed:
https://example.com/feed/?s=KEYWORD
This will generate a feed for the keyword on all searchable post types.
Query parameter: post_type
We can restrict it to a given post type with:
https://example.com/feed/?s=KEYWORD&post_type=post
Query parameter: exact
We can also use the exact query search parameter to exactly match the search keyword (no wildcard):
https://example.com/feed/?s=hello+world&post_type=post&exact=1
Query parameter: sentence
The sentence query search parameter can be used to match the whole keyword sentence (no word split):
https://example.com/feed/?s=hello+world&post_type=post&sentence=1
All together:
https://example.com/feed/?s=hello+world&post_type=post&exact=1&sentence=1
| Q: RSS feed with specific keyword I am able to get articles as RSS feed from below url
http://wordpress_site/blog/feed
I am also able to get articles from BlogSpot with specific keywords as below
https://www.yourblogname.blogspot.com/feeds/posts/default?q=KEYWORD
I have tried to get articles from filtering with specific KEYWORD in wordpress blog but I am not able to get. What can be the URL.
I am very much newbie to wordpress.
A: Here's how we can use the builtin public query parameters on feeds:
Query parameter: s
We can use the s query parameter on the feed:
https://example.com/feed/?s=KEYWORD
This will generate a feed for the keyword on all searchable post types.
Query parameter: post_type
We can restrict it to a given post type with:
https://example.com/feed/?s=KEYWORD&post_type=post
Query parameter: exact
We can also use the exact query search parameter to exactly match the search keyword (no wildcard):
https://example.com/feed/?s=hello+world&post_type=post&exact=1
Query parameter: sentence
The sentence query search parameter can be used to match the whole keyword sentence (no word split):
https://example.com/feed/?s=hello+world&post_type=post&sentence=1
All together:
https://example.com/feed/?s=hello+world&post_type=post&exact=1&sentence=1
A: You can modify the list of posts displayed in feed using pre_get_posts action. And to target only feeds, you can use is_feed conditional tag.
So such code can look like this:
add_action( 'pre_get_posts', function ( $query ) {
if ( ! is_admin() && is_feed() && $query->is_main_query() ) {
if ( isset($_GET['q']) && trim($_GET['q']) ) {
$query->set( 's', trim($_GET['q']) );
}
}
} );
This way you can go to example.com/feed/?q=KEYWORD and you'll get filtered feed (be careful - most browsers are caching feeds, so you'll have to force them to refresh it).
| wordpress | {
"language": "en",
"length": 259,
"provenance": "stackexchange_00019.jsonl.gz:492789",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/328449"
} | [
0.03021240234375,
0.01003265380859375,
0.0316162109375,
0.05120849609375,
-0.0013561248779296875,
-0.00807952880859375,
0.08697509765625,
-0.0633544921875,
0.01522064208984375,
0.0144195556640625,
-0.0574951171875,
0.0200958251953125,
-0.0204620361328125,
-0.0002130270004272461,
0.0078125,
-0.043487548828125,
0.0147705078125,
-0.0029697418212890625,
0.00739288330078125,
-0.01554107666015625,
0.0036106109619140625,
-0.004810333251953125,
0.006786346435546875,
0.0010585784912109375,
0.040008544921875,
-0.0007615089416503906,
0.08148193359375,
0.0019626617431640625,
0.0287322998046875,
0.0019350051879882812,
0.04010009765625,
-0.06585693359375,
0.032745361328125,
0.00125885009765625,
-0.0223541259765625,
-0.0240936279296875,
-0.00548553466796875,
0.01242828369140625,
-0.03057861328125,
0.033538818359375,
0.0165557861328125,
-0.0145263671875,
0.045257568359375,
0.044830322265625,
0.0078582763671875,
-0.036651611328125,
0.048797607421875,
-0.041290283203125,
0.01401519775390625,
0.0038433074951171875,
0.005474090576171875,
0.01678466796875,
0.0054473876953125,
-0.01407623291015625,
0.00035834312438964844,
-0.0013065338134765625,
-0.0029010772705078125,
-0.0095977783203125,
-0.0012083053588867188,
-0.028045654296875,
0.0017919540405273438,
0.037017822265625,
0.00902557373046875,
0.06414794921875,
0.0021762847900390625,
0.0017681121826171875,
0.08355712890625,
0.01541900634765625,
-0.0298919677734375,
-0.02105712890625,
0.0233612060546875,
-0.0029697418212890625,
-0.0083160400390625,
0.01290130615234375,
-0.058441162109375,
0.0087127685546875,
0.0191192626953125,
-0.004642486572265625,
-0.0021800994873046875,
0.010894775390625,
-0.0202484130859375,
0.00156402587890625,
-0.06268310546875,
-0.032470703125,
0.007244110107421875,
-0.00873565673828125,
-0.01197052001953125,
-0.005382537841796875,
-0.03009033203125,
-0.0172119140625,
-0.021026611328125,
-0.0155029296875,
-0.065185546875,
-0.0010175704956054688,
0.01175689697265625,
-0.040618896484375,
-0.0167694091796875,
0.034149169921875,
0.0007843971252441406,
0.03302001953125,
-0.0247955322265625,
-0.01849365234375,
0.0014009475708007812,
-0.040283203125,
0.0288238525390625,
0.060272216796875,
-0.0019083023071289062,
0.044952392578125,
0.07269287109375,
0.00617218017578125,
0.0213165283203125,
0.047607421875,
-0.007232666015625,
0.0090484619140625,
-0.033233642578125,
-0.003719329833984375,
-0.0211029052734375,
-0.011383056640625,
-0.012847900390625,
-0.0080718994140625,
0.0138092041015625,
0.044464111328125,
-0.01477813720703125,
-0.0203399658203125,
0.01263427734375,
-0.0149078369140625,
-0.0143585205078125,
0.000766754150390625,
-0.017486572265625,
0.01168060302734375,
0.00775146484375,
0.028900146484375,
0.0025196075439453125,
0.031707763671875,
-0.01439666748046875,
-0.0015411376953125,
0.040985107421875,
-0.04632568359375,
-0.0162506103515625,
0.0019063949584960938,
0.0241241455078125,
-0.01202392578125,
-0.01708984375,
-0.006317138671875,
0.04449462890625,
0.0173797607421875,
0.025421142578125,
0.007785797119140625,
0.01910400390625,
0.039581298828125,
-0.043304443359375,
0.025909423828125,
0.06488037109375,
0.000059485435485839844,
-0.0648193359375,
-0.039398193359375,
0.0276641845703125,
-0.03790283203125,
-0.0207672119140625,
-0.07867431640625,
0.035736083984375,
-0.01287078857421875,
0.0186767578125,
-0.0265960693359375,
-0.0240631103515625,
-0.0096893310546875,
-0.0670166015625,
-0.007266998291015625,
0.01360321044921875,
-0.008544921875,
0.0245208740234375,
-0.0070037841796875,
0.01947021484375,
0.005512237548828125,
0.002490997314453125,
-0.0124053955078125,
-0.026092529296875,
0.0014181137084960938,
0.0225982666015625,
0.0206146240234375,
-0.0162353515625,
-0.038421630859375,
0.032745361328125,
0.004169464111328125,
-0.058349609375,
0.0281219482421875,
0.0273284912109375,
0.060882568359375,
0.003292083740234375,
0.01763916015625,
0.041168212890625,
0.01525115966796875,
-0.003910064697265625,
0.046600341796875,
-0.01364898681640625,
-0.0711669921875,
-0.006641387939453125,
-0.022796630859375,
-0.030975341796875,
-0.0007014274597167969,
0.0435791015625,
0.0018091201782226562,
0.003810882568359375,
0.03424072265625,
-0.0273590087890625,
0.0189666748046875,
-0.01218414306640625,
0.014434814453125,
-0.0240325927734375,
0.01479339599609375,
0.00620269775390625,
-0.01358795166015625,
0.01450347900390625,
-0.0684814453125,
-0.0140228271484375,
-0.01308441162109375,
-0.01236724853515625,
0.022064208984375,
-0.0196533203125,
0.0187835693359375,
-0.00228118896484375,
-0.035736083984375,
-0.0090789794921875,
0.026123046875,
0.064453125,
0.004192352294921875,
-0.006855010986328125,
-0.0103912353515625,
0.05145263671875,
0.030914306640625,
-0.06427001953125,
-0.008026123046875,
-0.00586700439453125,
0.0010852813720703125,
-0.036468505859375,
0.01422119140625,
0.037811279296875,
0.0283203125,
0.01012420654296875,
0.0158538818359375,
0.0243377685546875,
0.035430908203125,
-0.0159454345703125,
-0.0293426513671875,
0.0594482421875,
-0.0207366943359375,
0.004436492919921875,
-0.0226898193359375,
0.020233154296875,
0.0802001953125,
0.0008502006530761719,
-0.02056884765625,
0.00434112548828125,
-0.0279693603515625,
-0.02862548828125,
0.04779052734375,
0.00435638427734375,
0.021240234375,
-0.0302886962890625,
0.0207061767578125,
-0.0169830322265625,
0.06683349609375,
0.031768798828125,
0.023162841796875,
0.040802001953125,
0.02178955078125,
0.06512451171875,
0.060546875,
-0.01214599609375,
-0.005313873291015625,
-0.00524139404296875,
0.01276397705078125,
-0.00286102294921875,
0.06524658203125,
0.04156494140625,
-0.056060791015625,
0.0140228271484375,
-0.0200042724609375,
-0.0086212158203125,
0.0173187255859375,
0.0213623046875,
0.042816162109375,
-0.034759521484375,
-0.0095062255859375,
-0.03558349609375,
-0.039886474609375,
0.00366973876953125,
0.0498046875,
-0.00162506103515625,
0.044189453125,
0.0313720703125,
0.044403076171875,
-0.0007634162902832031,
0.03814697265625,
0.0170745849609375,
0.02239990234375,
0.045623779296875,
-0.08734130859375,
0.060394287109375,
-0.029693603515625,
0.0535888671875,
0.0679931640625,
-0.01120758056640625,
0.02093505859375,
0.00998687744140625,
0.0208282470703125,
0.0021953582763671875,
-0.003997802734375,
-0.0146942138671875,
0.02880859375,
-0.10638427734375,
-0.0184478759765625,
0.016510009765625,
0.025604248046875,
-0.00007069110870361328,
-0.007312774658203125,
-0.0033416748046875,
0.0283355712890625,
-0.041290283203125,
-0.0291595458984375,
0.056854248046875,
-0.038970947265625,
-0.01406097412109375,
-0.00246429443359375,
-0.036712646484375,
-0.0168914794921875,
0.022796630859375,
-0.034088134765625,
-0.0015497207641601562,
-0.01439666748046875,
-0.07952880859375,
-0.0268402099609375,
-0.0838623046875,
0.045989990234375,
-0.0178985595703125,
0.0121917724609375,
0.01983642578125,
-0.023223876953125,
0.0122528076171875,
-0.01551055908203125,
0.0731201171875,
0.08245849609375,
-0.0092926025390625,
0.01043701171875,
0.0050048828125,
-0.0185546875,
-0.01155853271484375,
-0.0225677490234375,
0.09307861328125,
0.054962158203125,
-0.043731689453125,
0.03558349609375,
-0.033050537109375,
0.023162841796875,
-0.00040721893310546875,
-0.031463623046875,
0.0206756591796875,
0.016845703125,
-0.007068634033203125,
-0.02685546875,
-0.0182037353515625,
-0.0182647705078125,
-0.05029296875,
-0.010009765625,
0.051788330078125,
-0.00005125999450683594,
-0.057403564453125,
0.034515380859375,
-0.0419921875,
-0.003040313720703125,
0.043365478515625,
-0.041473388671875,
-0.00879669189453125,
-0.0287322998046875,
-0.0701904296875,
0.00801849365234375,
0.0020751953125,
-0.0291900634765625,
0.05078125,
0.0231475830078125,
0.01267242431640625,
-0.00875091552734375,
0.0176849365234375,
-0.031951904296875,
0.018035888671875,
0.0139312744140625,
-0.0258941650390625,
0.0164794921875,
-0.019317626953125,
-0.00836944580078125,
-0.02789306640625,
0.022125244140625,
-0.00444793701171875,
-0.01342010498046875,
-0.007038116455078125,
0.0246429443359375,
-0.0036602020263671875,
-0.08306884765625,
0.0019521713256835938,
-0.02899169921875,
-0.06475830078125,
0.0008826255798339844,
-0.0235443115234375,
-0.01262664794921875,
-0.005664825439453125,
-0.06634521484375,
-0.0142059326171875,
-0.034088134765625,
0.052398681640625,
-0.0232391357421875,
0.03338623046875,
0.00693511962890625,
0.00848388671875,
-0.0008511543273925781,
-0.035003662109375,
0.0081024169921875,
-0.033355712890625,
-0.017852783203125,
0.0413818359375,
0.00479888916015625,
0.0022487640380859375,
-0.057830810546875,
-0.004283905029296875,
0.025543212890625,
0.015960693359375,
0.028533935546875,
0.0244903564453125,
-0.0177459716796875,
0.042633056640625,
0.035980224609375,
0.03277587890625,
-0.0198974609375,
-0.006877899169921875,
-0.00928497314453125,
-0.015045166015625,
0.0059814453125,
-0.01194000244140625,
0.005123138427734375,
0.01248931884765625,
-0.0179901123046875,
-0.07952880859375,
-0.06842041015625,
0.004886627197265625,
-0.006427764892578125,
0.00536346435546875,
-0.0003261566162109375,
-0.0465087890625,
-0.04974365234375,
0.045623779296875,
0.00653839111328125,
-0.01541900634765625,
-0.00121307373046875,
0.00910186767578125,
-0.0013113021850585938,
-0.0382080078125,
-0.034576416015625,
-0.0299530029296875,
-0.007495880126953125,
0.02825927734375,
0.061004638671875,
0.020751953125,
0.042022705078125,
-0.0290679931640625,
-0.0323486328125,
0.0084991455078125,
-0.030548095703125,
0.072021484375,
0.004238128662109375,
-0.004367828369140625,
0.0201568603515625,
0.002532958984375,
-0.0245819091796875,
0.0633544921875,
-0.0115203857421875,
-0.049468994140625,
0.025726318359375,
0.05242919921875,
-0.06231689453125,
0.056365966796875,
-0.006885528564453125,
-0.0251007080078125,
0.03131103515625,
0.01611328125,
-0.018768310546875,
-0.0189208984375,
-0.0082550048828125,
-0.01318359375,
-0.024871826171875,
-0.0016622543334960938,
0.009307861328125,
0.028778076171875,
0.0029010772705078125,
0.032318115234375,
-0.0081939697265625,
-0.0164794921875,
-0.0303192138671875,
-0.0007023811340332031,
-0.0219268798828125,
-0.02874755859375,
-0.0738525390625,
0.04571533203125,
0.0079345703125,
-0.0017452239990234375,
0.08721923828125,
0.0098419189453125,
0.036376953125,
0.054718017578125,
-0.0213470458984375,
-0.001148223876953125,
0.0032939910888671875,
0.0153350830078125,
-0.0528564453125,
0.035125732421875,
-0.0267791748046875,
0.0249786376953125,
-0.0080718994140625,
0.07049560546875,
-0.040802001953125,
0.055633544921875,
-0.00199127197265625,
0.0292816162109375,
0.03875732421875,
0.0019140243530273438,
0.00618743896484375,
0.04150390625,
-0.020111083984375,
-0.005260467529296875,
0.01125335693359375,
0.0036945343017578125,
-0.03216552734375,
-0.007049560546875,
-0.01763916015625,
-0.00902557373046875,
0.00823211669921875,
0.017303466796875,
0.0128631591796875,
-0.028411865234375,
-0.001125335693359375,
0.0256195068359375,
0.0261077880859375,
-0.0303955078125,
-0.048675537109375,
0.0238189697265625,
0.0513916015625,
-0.0191650390625,
-0.0034923553466796875,
0.0294342041015625,
0.051055908203125,
0.0023746490478515625,
-0.01117706298828125,
0.0421142578125,
0.021484375,
0.0268402099609375,
-0.01378631591796875,
-0.01200103759765625,
-0.0166015625,
0.0003745555877685547,
-0.0228729248046875,
-0.013092041015625,
0.07989501953125,
-0.03289794921875,
0.047210693359375,
-0.02569580078125,
-0.0036163330078125,
0.0086212158203125,
0.0225067138671875,
-0.0011491775512695312,
-0.006786346435546875,
-0.0308380126953125,
-0.0177154541015625,
-0.022796630859375,
-0.02667236328125,
0.0017518997192382812,
0.026580810546875,
-0.035430908203125,
-0.003108978271484375,
-0.00753021240234375,
0.0225067138671875,
-0.00458526611328125,
0.0164642333984375,
0.006656646728515625,
0.010406494140625,
-0.01043701171875,
0.031463623046875,
-0.012847900390625,
0.04931640625,
-0.026397705078125,
0.05120849609375,
-0.01029205322265625,
0.020965576171875,
-0.04241943359375,
-0.010528564453125,
-0.0093994140625,
-0.07012939453125,
-0.024810791015625,
0.020538330078125,
-0.01495361328125,
0.044769287109375,
0.026275634765625,
0.00611114501953125,
-0.0195159912109375,
-0.00891876220703125,
0.01299285888671875,
-0.016143798828125,
0.01451873779296875,
0.003559112548828125,
-0.0285797119140625,
0.005489349365234375,
-0.024627685546875,
-0.007358551025390625,
-0.00554656982421875,
0.030731201171875,
-0.0221099853515625,
-0.0142974853515625,
-0.0294189453125,
0.02691650390625,
-0.049713134765625,
0.04681396484375,
0.07696533203125,
-0.00804901123046875,
0.04833984375,
0.0114898681640625,
0.0002911090850830078,
0.040313720703125,
0.0126953125,
-0.0245513916015625,
0.01483917236328125,
0.021026611328125,
-0.005489349365234375,
-0.036407470703125,
0.0025310516357421875,
-0.039276123046875,
-0.028411865234375,
-0.0004608631134033203,
0.01309967041015625,
-0.0220947265625,
-0.0015964508056640625,
0.034820556640625,
-0.0182342529296875,
-0.0694580078125,
0.033416748046875,
0.005222320556640625,
-0.01090240478515625,
-0.03619384765625,
0.016265869140625,
-0.005504608154296875,
0.005847930908203125,
0.0041046142578125,
0.01325225830078125,
-0.0213623046875,
0.021240234375,
-0.0205078125,
-0.03472900390625,
-0.062103271484375,
0.00336456298828125,
-0.049591064453125,
-0.003406524658203125,
-0.0127716064453125,
0.01444244384765625,
-0.033172607421875,
-0.065673828125,
-0.007904052734375,
-0.01274871826171875,
-0.010101318359375,
-0.0005145072937011719,
0.01209259033203125,
0.0220794677734375,
0.06854248046875,
-0.0081939697265625,
0.01291656494140625,
0.039520263671875,
-0.0270843505859375,
0.0037097930908203125,
-0.0286865234375,
-0.0210723876953125,
0.0187835693359375,
-0.00849151611328125,
0.00849151611328125,
-0.009796142578125,
-0.0011043548583984375,
-0.0224761962890625,
-0.044952392578125,
0.07666015625,
-0.0263519287109375,
-0.0246124267578125,
-0.01824951171875,
0.019744873046875,
0.03021240234375,
0.00447845458984375,
0.019683837890625,
-0.09661865234375,
-0.032257080078125,
-0.0032711029052734375,
-0.031494140625,
0.0200347900390625,
0.003448486328125,
-0.0635986328125,
0.07415771484375,
-0.0177001953125,
0.032440185546875,
0.03863525390625,
0.023345947265625,
-0.02984619140625,
0.003299713134765625,
-0.034515380859375,
0.0220947265625,
-0.0129241943359375,
0.0234832763671875,
-0.03680419921875,
0.0103607177734375,
-0.0191650390625,
0.006855010986328125,
0.050994873046875,
0.00916290283203125,
-0.0171356201171875,
-0.016693115234375,
0.0278167724609375,
0.050018310546875,
0.002735137939453125,
0.024139404296875,
-0.004299163818359375,
0.046234130859375,
0.04290771484375,
-0.0587158203125,
0.003452301025390625,
0.0165252685546875,
0.0026531219482421875,
0.020416259765625,
0.0007672309875488281,
-0.007434844970703125,
-0.0045623779296875,
-0.00485992431640625,
-0.001567840576171875,
-0.00859832763671875,
-0.00211334228515625,
-0.0206146240234375,
-0.01244354248046875,
0.053680419921875,
0.061065673828125,
-0.07269287109375,
-0.0279388427734375,
-0.035614013671875,
0.0477294921875,
0.00681304931640625,
0.042510986328125,
0.0654296875,
0.038482666015625,
0.078125,
-0.03179931640625,
0.0440673828125,
-0.01074981689453125,
-0.015777587890625,
0.058837890625,
-0.0131378173828125,
0.014190673828125,
-0.0758056640625,
-0.006305694580078125,
0.015655517578125,
0.05487060546875,
-0.040130615234375,
-0.0517578125,
-0.01161956787109375,
-0.00927734375,
0.039642333984375,
-0.019073486328125,
0.0128936767578125,
0.043243408203125,
0.03558349609375,
-0.09124755859375,
0.015289306640625,
0.055999755859375,
0.0244140625,
-0.03094482421875,
-0.01354217529296875,
-0.043792724609375,
0.0019359588623046875,
-0.03033447265625,
0.0035762786865234375,
0.0228729248046875,
0.03936767578125,
-0.01580810546875,
0.0621337890625,
-0.0125274658203125,
-0.0204010009765625,
0.01021575927734375,
0.0205841064453125,
-0.0038242340087890625,
-0.0162811279296875,
0.012939453125,
-0.0338134765625,
0.045013427734375,
0.0160064697265625,
0.0271759033203125,
-0.030426025390625,
0.02728271484375,
0.0030269622802734375,
-0.0606689453125,
-0.0076904296875,
0.005496978759765625,
-0.014923095703125,
-0.0308685302734375,
0.008331298828125,
-0.0543212890625,
0.01067352294921875,
-0.02642822265625,
0.0167694091796875,
0.0177154541015625,
-0.006168365478515625,
0.016143798828125,
0.015960693359375,
0.0203094482421875,
-0.006748199462890625,
0.0021209716796875,
0.0022754669189453125,
-0.0222930908203125,
0.0272674560546875,
-0.09344482421875,
-0.01361083984375,
-0.036773681640625,
-0.07757568359375,
0.047119140625,
0.0565185546875,
-0.0205841064453125,
-0.004581451416015625,
-0.034149169921875,
0.032867431640625,
0.0220184326171875,
-0.046356201171875,
0.004344940185546875,
0.038330078125,
0.00849151611328125,
0.0254058837890625,
-0.019287109375,
0.001636505126953125,
0.007801055908203125,
0.013336181640625,
0.0193023681640625,
0.04779052734375,
-0.004245758056640625,
0.0019197463989257812,
0.0078277587890625,
0.012847900390625,
-0.01392364501953125,
-0.0024700164794921875,
-0.015869140625,
0.01220703125,
0.0236663818359375,
-0.0189666748046875,
-0.01020050048828125,
0.028717041015625,
0.0384521484375,
-0.0238494873046875,
0.0296783447265625,
-0.023681640625,
-0.00022125244140625,
-0.0352783203125,
-0.022857666015625,
-0.0430908203125,
-0.0021648406982421875,
-0.016876220703125,
-0.034759521484375,
0.040863037109375,
-0.00203704833984375,
-0.01177978515625,
0.039031982421875,
0.004093170166015625,
-0.0172271728515625,
0.030487060546875,
-0.047882080078125,
0.045806884765625,
0.0259857177734375,
0.008026123046875,
0.0287017822265625,
0.033935546875,
-0.0086212158203125,
0.026824951171875,
0.007083892822265625,
0.008758544921875,
0.00171661376953125,
0.033905029296875,
0.01995849609375,
-0.00537872314453125,
0.0482177734375,
-0.00238800048828125,
-0.0018558502197265625,
-0.0002903938293457031,
0.007389068603515625,
-0.005702972412109375,
-0.0166473388671875,
-0.01873779296875,
-0.007808685302734375,
-0.0232391357421875,
0.003688812255859375,
0.003658294677734375,
-0.06207275390625,
-0.0205230712890625,
-0.00716400146484375,
0.026885986328125,
-0.037841796875,
0.024078369140625,
-0.01117706298828125,
-0.061614990234375,
0.020721435546875,
-0.006298065185546875,
-0.039642333984375,
0.0295562744140625,
0.060760498046875,
-0.001300811767578125,
-0.012115478515625,
-0.0161285400390625,
-0.01202392578125,
-0.0186614990234375,
0.020111083984375,
0.03582763671875,
-0.0310211181640625,
0.00981903076171875,
-0.0205230712890625,
0.0066375732421875,
0.03460693359375,
0.0133056640625,
-0.01078033447265625,
0.0142059326171875,
0.011383056640625,
-0.036712646484375,
-0.0648193359375,
0.027740478515625,
-0.0771484375,
-0.00681304931640625,
0.0217742919921875,
-0.040740966796875,
-0.0231781005859375,
-0.05328369140625,
-0.10052490234375,
0.0205535888671875,
-0.01357269287109375,
-0.0626220703125,
-0.048248291015625,
0.0199432373046875,
0.034698486328125,
-0.03167724609375,
-0.0280609130859375,
0.0299224853515625,
-0.06573486328125,
-0.0215911865234375,
0.01134490966796875,
0.03790283203125,
0.001712799072265625,
0.037353515625,
-0.02008056640625,
0.037567138671875,
-0.00504302978515625,
-0.02264404296875,
-0.0132598876953125,
0.001796722412109375,
0.00826263427734375,
0.0252685546875,
-0.0328369140625,
0.040496826171875,
0.0011081695556640625,
-0.00415802001953125,
-0.007808685302734375,
0.007343292236328125,
-0.032958984375,
-0.0102996826171875,
0.031768798828125,
0.08416748046875,
0.0121612548828125,
-0.045745849609375,
-0.01448822021484375,
0.0216827392578125,
-0.0259857177734375,
-0.0094757080078125,
0.03387451171875,
-0.058380126953125,
-0.02178955078125,
-0.016265869140625,
0.0169830322265625,
-0.027435302734375,
-0.039642333984375,
-0.027191162109375,
-0.034210205078125,
-0.03985595703125,
0.006313323974609375,
0.01477813720703125,
0.02850341796875,
0.033111572265625,
-0.036346435546875,
-0.0110931396484375,
-0.0013151168823242188,
0.001171112060546875,
-0.002964019775390625,
-0.038726806640625,
-0.0147552490234375,
-0.007038116455078125,
0.020416259765625,
0.006168365478515625,
0.0125885009765625,
0.01104736328125,
0.020355224609375,
-0.0023593902587890625,
-0.037445068359375,
-0.0024471282958984375,
0.034576416015625,
-0.01055908203125,
-0.043670654296875,
-0.01375579833984375,
0.00240325927734375,
0.0225982666015625,
0.0286712646484375,
-0.0112152099609375,
-0.026885986328125,
0.044403076171875,
0.0026950836181640625,
-0.041412353515625,
0.0163116455078125,
-0.021728515625,
-0.00441741943359375,
0.005641937255859375,
-0.03900146484375,
-0.04443359375,
0.01087188720703125,
-0.01412200927734375,
-0.0228118896484375,
0.007617950439453125
] |
57f6e805d82de67ee09be780da921eec799638a8 | Wordpress Stackexchange
Q: Load CSS/Javascript in frontend conditionally if block is used Assuming I have no infinite scroll or anything else going on in my theme:
Is there a way to enqueue my custom Gutenberg block styles and scripts so they are only (lazy) loaded in the front-end when the block is really used? Something like is_active_widget, just for blocks?
If I enqueue them inside a enqueue_block_assets function they're added to any site.
On github, I found this https://github.com/WordPress/gutenberg/issues/5445 , but it sounds like it's more on bundling than conditional load, so I still hope they didn't leave that optimization opportunity out - otherwise any other site will soon be junked with 20 additional scripts from numerous Gutenberg block plugins people install and only use once on a page (think of large image gallery block scripts for example).
Thanks & Regards!
A: Another way is to enqueue them inside the block's render_callback() function.
register_block_type( 'mkaz/test-block', array(
'editor_script' => 'mkaz-test-block-script',
'render_callback' => function( $attribs, $content ) {
wp_enqueue_script( 'mkaz-test-block-client-asset' );
return $content;
}
) );
In the past it was invalid to enqueue stylesheets outside of <head>, but that's supported by the spec now.
x-ref: https://github.com/WordPress/gutenberg/issues/21838
| Q: Load CSS/Javascript in frontend conditionally if block is used Assuming I have no infinite scroll or anything else going on in my theme:
Is there a way to enqueue my custom Gutenberg block styles and scripts so they are only (lazy) loaded in the front-end when the block is really used? Something like is_active_widget, just for blocks?
If I enqueue them inside a enqueue_block_assets function they're added to any site.
On github, I found this https://github.com/WordPress/gutenberg/issues/5445 , but it sounds like it's more on bundling than conditional load, so I still hope they didn't leave that optimization opportunity out - otherwise any other site will soon be junked with 20 additional scripts from numerous Gutenberg block plugins people install and only use once on a page (think of large image gallery block scripts for example).
Thanks & Regards!
A: Another way is to enqueue them inside the block's render_callback() function.
register_block_type( 'mkaz/test-block', array(
'editor_script' => 'mkaz-test-block-script',
'render_callback' => function( $attribs, $content ) {
wp_enqueue_script( 'mkaz-test-block-client-asset' );
return $content;
}
) );
In the past it was invalid to enqueue stylesheets outside of <head>, but that's supported by the spec now.
x-ref: https://github.com/WordPress/gutenberg/issues/21838
A: Thanks @kuchenundkakao for pointing me into the right direction. I'm still answering my own question as I want to give some more context for others that may stumble upon this.
So, there are several ways to load your custom blocks, mainly:
*
*add_action('enqueue_block_assets','xy_function') / add_action('enqueue_block_editor_assets','xy_function'), which at the
moment is the default when creating a block with
"create_guten_block". This is what I was using. It might change, see
https://github.com/ahmadawais/create-guten-block/issues/21
*register_block_type as per the handbook, see https://wordpress.org/gutenberg/handbook/designers-developers/developers/tutorials/block-tutorial/writing-your-first-block-type/#enqueuing-block-scripts
While registering the block in PHP (like described in the handbook) is the default method and future proof, the enqueue_block_assets variant can load multiple blocks without the need to split your blocks into seperate files and define them again in PHP. "create_guten_block" for example merges any number of blocks into three files by default (blocks.build.js, blocks.editor.build.css and block.style.build.css).
Both ways do not conditionally load styles (yet).
When using the create_guten_block method, enqueue_block_assets, and only having a single block defined (or set up to split the files per block), the conditional loading can be added using has_block:
function my_awesome_blocks_cgb_block_assets() {
if (is_singular()) {
$id = get_the_ID();
if (has_block('my-awesome/block-type', $id)) {
wp_enqueue_style(
'my-awesome_blocks-cgb-style-css',
plugins_url( 'blocks/dist/blocks.style.build.css', __FILE__ ),
);
}
}
}
add_action( 'enqueue_block_assets', 'my_awesome_blocks_cgb_block_assets' );
You can combine register and conditional loading by leaving out the style / script parts in the register and load the according fontend files with enqueue_block_assets as in the code above.
The future proof method will be using register_block_type, as the script and style fields of it will most likely be used if conditional loading is ever implemented natively (see comment here).
A: Well, the styles and scripts you register in your php register_block_type call should only be loaded when the block is in use if i recall correctly.
If you want to load additional scripts or styles to be enqueued only if there is a block of type "my-awesome/block-type", you can use the has_block function in your wp_enqueue_scripts function like this:
add_action('wp_enqueue_scripts','enqueue_if_block_is_present');
function enqueue_if_block_is_present(){
if(is_singular()){
//We only want the script if it's a singular page
$id = get_the_ID();
if(has_block('my-awesome/block-type',$id)){
wp_enqueue_script('my-awesome-script',$path_of_script,$needed_scripts,$version_of_script,$load_in_footer);
}
}
}
If you also want the script to be loaded on multiple views as well (like category archive or the blog page), you can hook into the the_content filter and enqueue the script there:
add_filter('the_content','enqueue_my_awesome_script_if_there_is_block');
function enqueue_my_awesome_script_if_there_is_block($content = ""){
if(has_block('my-awesome/block-type')){
wp_enqueue_script('my-awesome-script',$path_of_script,$needed_scripts,$version_of_script,true);
//Be aware that for this to work, the load_in_footer MUST be set to true, as
//the scripts for the header are already echoed out at this point
}
return $content;
}
Happy Coding!
| wordpress | {
"language": "en",
"length": 610,
"provenance": "stackexchange_00019.jsonl.gz:492812",
"question_score": "18",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/328536"
} | [
-0.00494384765625,
-0.003997802734375,
-0.036834716796875,
-0.027130126953125,
0.006351470947265625,
-0.040008544921875,
-0.01476287841796875,
0.0157623291015625,
0.00957489013671875,
0.0300445556640625,
-0.046112060546875,
-0.01371002197265625,
-0.01259613037109375,
0.00038051605224609375,
-0.029083251953125,
-0.054840087890625,
0.057373046875,
0.00015783309936523438,
0.006793975830078125,
-0.0002586841583251953,
-0.01418304443359375,
0.03656005859375,
-0.0078277587890625,
0.09637451171875,
0.0219573974609375,
-0.05596923828125,
0.09344482421875,
-0.006595611572265625,
0.015777587890625,
-0.008941650390625,
0.032958984375,
-0.0189971923828125,
0.01727294921875,
0.018768310546875,
-0.025421142578125,
0.03729248046875,
0.04437255859375,
-0.00725555419921875,
-0.0064239501953125,
0.041900634765625,
0.055755615234375,
-0.040191650390625,
-0.033660888671875,
0.00922393798828125,
-0.020477294921875,
-0.0093231201171875,
0.01049041748046875,
-0.03594970703125,
0.0034160614013671875,
0.04449462890625,
0.0174560546875,
0.01189422607421875,
0.01507568359375,
0.0152130126953125,
0.00232696533203125,
-0.01548004150390625,
-0.04925537109375,
-0.015777587890625,
0.0120697021484375,
0.08099365234375,
0.030242919921875,
0.01361846923828125,
-0.0161895751953125,
-0.042694091796875,
0.0094451904296875,
-0.009368896484375,
-0.0016155242919921875,
0.0290679931640625,
-0.053863525390625,
-0.0129241943359375,
0.02886962890625,
-0.0300750732421875,
-0.00164794921875,
-0.0743408203125,
-0.06854248046875,
0.053955078125,
0.004917144775390625,
-0.0171051025390625,
-0.0043792724609375,
-0.058319091796875,
-0.01129913330078125,
-0.0174407958984375,
-0.027923583984375,
-0.042266845703125,
0.0305023193359375,
-0.00011080503463745117,
-0.01213836669921875,
0.0004367828369140625,
0.000812530517578125,
-0.00823974609375,
-0.016632080078125,
0.0156707763671875,
-0.0142059326171875,
-0.01264190673828125,
-0.0254974365234375,
-0.018646240234375,
0.0308380126953125,
0.004055023193359375,
0.0267486572265625,
0.021575927734375,
0.01259613037109375,
-0.05126953125,
0.043853759765625,
-0.02471923828125,
0.0011043548583984375,
0.07843017578125,
-0.035736083984375,
0.032958984375,
0.05413818359375,
0.0164947509765625,
0.0382080078125,
-0.026763916015625,
0.004184722900390625,
0.012847900390625,
-0.027008056640625,
-0.013397216796875,
-0.0423583984375,
0.01212310791015625,
-0.01055908203125,
0.032196044921875,
0.0274658203125,
0.048248291015625,
0.0229339599609375,
-0.00824737548828125,
-0.02581787109375,
0.001361846923828125,
-0.00635528564453125,
-0.06805419921875,
-0.0008730888366699219,
0.0139617919921875,
-0.004817962646484375,
0.006336212158203125,
0.0184173583984375,
0.031585693359375,
0.0013666152954101562,
-0.0164337158203125,
0.04559326171875,
0.003993988037109375,
0.0032978057861328125,
-0.01236724853515625,
-0.0216522216796875,
-0.004825592041015625,
0.005062103271484375,
-0.0400390625,
0.0002741813659667969,
0.00992584228515625,
0.022735595703125,
0.014434814453125,
-0.040985107421875,
-0.06927490234375,
0.058868408203125,
-0.0309295654296875,
0.039337158203125,
0.01168060302734375,
0.0136871337890625,
-0.0004744529724121094,
0.0654296875,
-0.022735595703125,
-0.0285797119140625,
-0.034698486328125,
0.0033588409423828125,
0.00873565673828125,
-0.00342559814453125,
-0.0247650146484375,
-0.0296478271484375,
-0.0310516357421875,
-0.0028057098388671875,
-0.003093719482421875,
0.023223876953125,
0.025360107421875,
-0.05401611328125,
-0.047607421875,
0.0264129638671875,
-0.0098114013671875,
-0.0426025390625,
0.05499267578125,
0.007198333740234375,
0.035125732421875,
0.032135009765625,
0.002742767333984375,
-0.015960693359375,
-0.048431396484375,
0.09613037109375,
-0.056060791015625,
-0.03631591796875,
0.01055908203125,
-0.012420654296875,
0.0200653076171875,
0.041229248046875,
0.0033321380615234375,
0.011322021484375,
-0.0020465850830078125,
-0.05389404296875,
-0.0199737548828125,
0.00725555419921875,
0.0255126953125,
0.0301361083984375,
0.0230712890625,
0.0172271728515625,
-0.0238800048828125,
0.051422119140625,
-0.049591064453125,
0.057373046875,
-0.058074951171875,
-0.0275421142578125,
-0.006931304931640625,
-0.016754150390625,
0.0261077880859375,
-0.0303497314453125,
0.0020275115966796875,
-0.0020656585693359375,
-0.04541015625,
-0.0004343986511230469,
0.00421142578125,
-0.001438140869140625,
0.003452301025390625,
0.004665374755859375,
0.0877685546875,
0.02032470703125,
0.01459503173828125,
0.041168212890625,
-0.0288238525390625,
0.044586181640625,
-0.00603485107421875,
0.0479736328125,
0.02923583984375,
-0.03924560546875,
0.004138946533203125,
0.01085662841796875,
0.052764892578125,
-0.05914306640625,
0.005390167236328125,
0.037994384765625,
0.06915283203125,
0.0034770965576171875,
-0.005207061767578125,
0.004497528076171875,
-0.03668212890625,
0.0134429931640625,
0.0244293212890625,
0.02142333984375,
-0.01349639892578125,
-0.02947998046875,
-0.0148773193359375,
0.0133209228515625,
-0.01392364501953125,
0.021453857421875,
-0.0108489990234375,
-0.017425537109375,
-0.035247802734375,
-0.0504150390625,
0.012237548828125,
0.058990478515625,
-0.033477783203125,
0.01163482666015625,
0.051116943359375,
-0.0260162353515625,
0.00041961669921875,
-0.01003265380859375,
-0.0125274658203125,
0.024322509765625,
0.0279541015625,
-0.009429931640625,
0.00667572021484375,
0.05950927734375,
-0.0268402099609375,
0.021087646484375,
-0.0052947998046875,
-0.02880859375,
0.007778167724609375,
0.0226898193359375,
-0.031280517578125,
0.0008807182312011719,
0.033782958984375,
0.05169677734375,
-0.0181427001953125,
-0.0372314453125,
-0.0135345458984375,
0.04095458984375,
0.0285491943359375,
-0.00814056396484375,
0.0213470458984375,
-0.051513671875,
-0.0032253265380859375,
-0.015716552734375,
-0.0623779296875,
-0.0036182403564453125,
0.041656494140625,
0.0157928466796875,
0.016845703125,
0.0411376953125,
0.031982421875,
0.028656005859375,
0.00958251953125,
0.006427764892578125,
-0.01303863525390625,
0.06005859375,
-0.004169464111328125,
0.0111083984375,
-0.0268707275390625,
0.055877685546875,
0.048492431640625,
-0.050628662109375,
0.031463623046875,
0.0160369873046875,
-0.019256591796875,
0.02972412109375,
0.005146026611328125,
-0.014923095703125,
-0.01276397705078125,
-0.035614013671875,
-0.0008339881896972656,
0.0302276611328125,
0.030609130859375,
0.01123809814453125,
-0.0101165771484375,
-0.0038356781005859375,
0.03070068359375,
-0.045623779296875,
-0.06707763671875,
0.00701904296875,
-0.062255859375,
0.01079559326171875,
-0.0333251953125,
-0.0204620361328125,
-0.00923919677734375,
-0.024810791015625,
0.01251983642578125,
-0.0246429443359375,
-0.03314208984375,
-0.07244873046875,
-0.06866455078125,
-0.0797119140625,
0.0255584716796875,
-0.01324462890625,
0.0192718505859375,
0.016876220703125,
0.06195068359375,
0.014495849609375,
-0.06396484375,
-0.00728607177734375,
-0.0118865966796875,
-0.0273590087890625,
-0.006328582763671875,
0.04693603515625,
-0.07562255859375,
-0.0186004638671875,
0.0244598388671875,
-0.05316162109375,
-0.024261474609375,
0.02471923828125,
-0.0132904052734375,
-0.00568389892578125,
-0.0005793571472167969,
0.016632080078125,
0.036102294921875,
0.000354766845703125,
0.007572174072265625,
0.0311737060546875,
-0.031494140625,
-0.04437255859375,
0.03924560546875,
-0.015655517578125,
-0.00792694091796875,
0.0009684562683105469,
-0.0267791748046875,
0.01422119140625,
0.015411376953125,
0.038330078125,
-0.0164947509765625,
0.0261077880859375,
0.005992889404296875,
0.0231781005859375,
-0.024169921875,
0.00855255126953125,
-0.061798095703125,
0.0577392578125,
-0.01329803466796875,
0.0310821533203125,
0.0201416015625,
0.01195526123046875,
-0.0017309188842773438,
-0.01904296875,
-0.0830078125,
0.0107421875,
0.0063323974609375,
-0.0284576416015625,
0.04290771484375,
-0.013702392578125,
0.0126800537109375,
0.01280975341796875,
0.042938232421875,
-0.00830078125,
-0.00872802734375,
0.0251312255859375,
0.024017333984375,
-0.06646728515625,
-0.0012922286987304688,
-0.06158447265625,
0.0045166015625,
-0.043853759765625,
0.01776123046875,
-0.0180206298828125,
-0.042633056640625,
-0.0211639404296875,
-0.060699462890625,
-0.0469970703125,
-0.027923583984375,
0.04052734375,
-0.04974365234375,
0.01071929931640625,
0.0226898193359375,
-0.033782958984375,
-0.0029697418212890625,
-0.0318603515625,
-0.0297088623046875,
-0.07000732421875,
0.0004520416259765625,
-0.041473388671875,
0.070068359375,
0.008056640625,
0.036712646484375,
-0.00608062744140625,
0.07452392578125,
0.00884246826171875,
0.0207672119140625,
0.0364990234375,
-0.0009450912475585938,
0.04461669921875,
-0.005405426025390625,
0.03363037109375,
-0.0254669189453125,
-0.0120697021484375,
0.007137298583984375,
-0.046356201171875,
0.027496337890625,
0.017547607421875,
-0.0220184326171875,
0.058319091796875,
-0.0311126708984375,
-0.027984619140625,
-0.0018033981323242188,
-0.0026950836181640625,
-0.019561767578125,
0.0038890838623046875,
-0.028228759765625,
-0.0117340087890625,
-0.01154327392578125,
0.0283050537109375,
-0.0097198486328125,
-0.00952911376953125,
-0.00016927719116210938,
0.022979736328125,
0.019134521484375,
-0.0278778076171875,
0.003612518310546875,
-0.003101348876953125,
0.01372528076171875,
0.00021767616271972656,
0.082275390625,
0.0189208984375,
0.006351470947265625,
0.07696533203125,
-0.00957489013671875,
0.0100250244140625,
-0.0033168792724609375,
0.07183837890625,
0.005153656005859375,
0.01226806640625,
-0.002979278564453125,
0.007503509521484375,
-0.0173797607421875,
0.03125,
-0.0215606689453125,
0.0208587646484375,
-0.013031005859375,
0.001415252685546875,
-0.01085662841796875,
-0.0281982421875,
-0.041168212890625,
0.0163421630859375,
-0.01554107666015625,
0.000009000301361083984,
0.0924072265625,
0.05224609375,
-0.0285491943359375,
0.047332763671875,
0.0936279296875,
0.00583648681640625,
0.021575927734375,
0.0010232925415039062,
-0.01190948486328125,
0.046295166015625,
-0.00519561767578125,
0.0179901123046875,
0.0016965866088867188,
0.015960693359375,
-0.01336669921875,
-0.0181884765625,
-0.0384521484375,
-0.06353759765625,
0.01556396484375,
0.052459716796875,
0.0136566162109375,
-0.00911712646484375,
0.039459228515625,
0.0135955810546875,
-0.02508544921875,
-0.0038776397705078125,
0.022705078125,
-0.0259552001953125,
-0.04779052734375,
0.0372314453125,
-0.02655029296875,
-0.00426483154296875,
-0.034393310546875,
0.0408935546875,
-0.035491943359375,
0.00547027587890625,
0.01509857177734375,
0.03497314453125,
-0.0109100341796875,
0.04461669921875,
0.008697509765625,
-0.00942230224609375,
0.0054931640625,
0.0308685302734375,
-0.0024242401123046875,
-0.032562255859375,
0.0005135536193847656,
0.00847625732421875,
0.038726806640625,
-0.00955963134765625,
-0.01190185546875,
0.019866943359375,
-0.0257110595703125,
-0.02276611328125,
0.016754150390625,
-0.04046630859375,
-0.0118255615234375,
-0.0653076171875,
-0.0660400390625,
0.036285400390625,
0.031829833984375,
-0.01495361328125,
0.005008697509765625,
-0.0108489990234375,
0.020294189453125,
-0.00850677490234375,
-0.0195159912109375,
0.0217437744140625,
0.01275634765625,
0.012969970703125,
-0.0004532337188720703,
0.006320953369140625,
-0.047149658203125,
-0.020172119140625,
-0.015228271484375,
-0.012969970703125,
0.03985595703125,
-0.0169677734375,
0.0005474090576171875,
-0.017333984375,
0.0007710456848144531,
-0.002216339111328125,
0.036865234375,
0.01337432861328125,
-0.0006914138793945312,
-0.005367279052734375,
-0.05810546875,
-0.07232666015625,
-0.0261688232421875,
-0.05694580078125,
-0.06280517578125,
0.023590087890625,
0.0282745361328125,
0.036712646484375,
0.017730712890625,
-0.031036376953125,
-0.07818603515625,
0.0023975372314453125,
0.02392578125,
0.052032470703125,
0.05535888671875,
-0.038848876953125,
0.05670166015625,
0.027923583984375,
0.00443267822265625,
0.0007610321044921875,
0.00125885009765625,
0.0016489028930664062,
0.0045623779296875,
-0.0426025390625,
-0.06524658203125,
0.0278472900390625,
0.0250091552734375,
0.00957489013671875,
0.04888916015625,
0.0263519287109375,
0.029632568359375,
0.038116455078125,
0.023193359375,
0.01549530029296875,
-0.022552490234375,
-0.003627777099609375,
0.0237884521484375,
0.0020503997802734375,
0.041748046875,
0.01528167724609375,
0.0156402587890625,
-0.016632080078125,
-0.033935546875,
0.038299560546875,
-0.0030956268310546875,
0.04290771484375,
-0.034149169921875,
-0.046722412109375,
0.040130615234375,
0.0287933349609375,
0.0136260986328125,
0.016326904296875,
-0.019134521484375,
0.01456451416015625,
0.010406494140625,
0.0162353515625,
-0.015960693359375,
-0.0019855499267578125,
0.0194854736328125,
-0.01552581787109375,
0.0029354095458984375,
-0.005100250244140625,
0.006969451904296875,
-0.0170440673828125,
0.019256591796875,
0.02764892578125,
-0.037322998046875,
0.0013065338134765625,
-0.007480621337890625,
-0.01430511474609375,
-0.034332275390625,
-0.0214996337890625,
0.0126800537109375,
-0.03399658203125,
0.036712646484375,
0.062744140625,
-0.007965087890625,
0.0054473876953125,
-0.0026264190673828125,
0.002079010009765625,
-0.040740966796875,
0.012481689453125,
-0.005313873291015625,
-0.026580810546875,
0.00640106201171875,
0.0159454345703125,
-0.006870269775390625,
-0.0207061767578125,
-0.0112457275390625,
-0.007656097412109375,
-0.005016326904296875,
-0.01617431640625,
0.028076171875,
-0.032684326171875,
0.0138092041015625,
-0.003055572509765625,
0.0004553794860839844,
0.04339599609375,
0.034942626953125,
0.0011539459228515625,
-0.0140533447265625,
0.0012531280517578125,
0.01093292236328125,
-0.043426513671875,
-0.0340576171875,
0.04718017578125,
0.0193023681640625,
-0.056243896484375,
0.03485107421875,
-0.0013408660888671875,
-0.040313720703125,
-0.005435943603515625,
-0.0057830810546875,
0.047607421875,
-0.022613525390625,
-0.02325439453125,
0.0295562744140625,
0.0014925003051757812,
-0.005008697509765625,
-0.004680633544921875,
0.084228515625,
-0.07159423828125,
-0.040740966796875,
0.04345703125,
-0.03173828125,
-0.08746337890625,
-0.0260162353515625,
-0.040130615234375,
0.088134765625,
-0.01192474365234375,
0.0170745849609375,
0.0216064453125,
0.042755126953125,
-0.019287109375,
0.018035888671875,
0.017608642578125,
0.037109375,
0.00341796875,
-0.0086669921875,
-0.032440185546875,
-0.01224517822265625,
-0.0058135986328125,
0.034698486328125,
0.002590179443359375,
0.00708770751953125,
-0.020050048828125,
-0.01366424560546875,
-0.00928497314453125,
0.041259765625,
0.0019245147705078125,
0.006374359130859375,
-0.018646240234375,
-0.0007867813110351562,
-0.0236968994140625,
-0.0232391357421875,
0.018341064453125,
-0.06903076171875,
-0.05364990234375,
-0.00501251220703125,
0.0203857421875,
0.039031982421875,
-0.0017681121826171875,
-0.00821685791015625,
-0.031707763671875,
0.00505828857421875,
0.032745361328125,
-0.0161590576171875,
-0.0198822021484375,
0.040557861328125,
0.0173797607421875,
-0.031585693359375,
-0.09161376953125,
-0.01163482666015625,
0.01161956787109375,
0.00699615478515625,
-0.02447509765625,
-0.0109405517578125,
0.0015048980712890625,
-0.0262603759765625,
-0.0235443115234375,
-0.0133056640625,
0.02294921875,
-0.04931640625,
0.0254364013671875,
0.0287933349609375,
0.02496337890625,
-0.011016845703125,
0.005931854248046875,
-0.0130767822265625,
0.005428314208984375,
-0.023895263671875,
-0.0253448486328125,
0.01183319091796875,
0.01477813720703125,
0.0149993896484375,
-0.0038967132568359375,
0.03094482421875,
-0.0154571533203125,
-0.0164031982421875,
0.00992584228515625,
-0.0258941650390625,
-0.0364990234375,
-0.00439453125,
-0.0110931396484375,
0.0100555419921875,
0.057098388671875,
-0.003017425537109375,
-0.0625,
0.0297088623046875,
0.0250701904296875,
0.0526123046875,
0.0146636962890625,
0.040557861328125,
0.00385284423828125,
-0.0136566162109375,
-0.062225341796875,
0.037567138671875,
-0.001987457275390625,
0.06866455078125,
-0.0576171875,
0.0291595458984375,
-0.004364013671875,
0.056793212890625,
0.0217132568359375,
0.01122283935546875,
0.0465087890625,
0.027008056640625,
0.0154876708984375,
-0.007472991943359375,
0.0256500244140625,
-0.0012998580932617188,
0.020050048828125,
0.01198577880859375,
0.0126953125,
0.032806396484375,
-0.01189422607421875,
-0.01457977294921875,
0.054595947265625,
0.041473388671875,
-0.022979736328125,
0.04693603515625,
0.008056640625,
-0.017608642578125,
-0.0033416748046875,
0.01161956787109375,
0.0323486328125,
0.017822265625,
-0.011077880859375,
-0.00469970703125,
-0.00170135498046875,
0.0004954338073730469,
-0.01457977294921875,
0.023345947265625,
0.002201080322265625,
0.042938232421875,
0.049774169921875,
-0.027862548828125,
0.0188751220703125,
0.0036144256591796875,
0.03826904296875,
0.0227508544921875,
0.00366973876953125,
0.0218048095703125,
-0.03900146484375,
-0.02813720703125,
0.00572967529296875,
0.03955078125,
-0.003833770751953125,
0.0242462158203125,
-0.0066070556640625,
0.00362396240234375,
0.05810546875,
-0.0263824462890625,
0.05572509765625,
0.0570068359375,
-0.04510498046875,
0.02386474609375,
0.0386962890625,
-0.0283966064453125,
-0.03466796875,
-0.0190277099609375,
0.040557861328125,
-0.00823974609375,
-0.04144287109375,
0.018310546875,
0.0357666015625,
0.01348114013671875,
0.01226043701171875,
-0.045196533203125,
-0.048980712890625,
-0.019927978515625,
0.0264892578125,
-0.0252227783203125,
-0.014556884765625,
0.004669189453125,
0.019805908203125,
0.0207366943359375,
-0.0218658447265625,
0.0165557861328125,
-0.0219573974609375,
0.02850341796875,
0.0274505615234375,
0.004146575927734375,
-0.015716552734375,
0.000965118408203125,
-0.0231475830078125,
0.023773193359375,
0.002979278564453125,
0.0439453125,
0.012176513671875,
0.0157623291015625,
0.05169677734375,
0.0799560546875,
0.056976318359375,
-0.0034542083740234375,
0.02142333984375,
0.082763671875,
-0.054534912109375,
-0.0161590576171875,
-0.0072784423828125,
-0.0179595947265625,
-0.031036376953125,
-0.0234222412109375,
0.00612640380859375,
-0.0275115966796875,
-0.041900634765625,
-0.036651611328125,
0.020233154296875,
0.0219879150390625,
0.0163421630859375,
-0.09259033203125,
0.08734130859375,
-0.038360595703125,
0.0364990234375,
-0.018585205078125,
0.031768798828125,
-0.0203399658203125,
0.004962921142578125,
-0.05609130859375,
-0.0168304443359375,
-0.032867431640625,
0.0240631103515625,
-0.0201263427734375,
-0.00823974609375,
0.0142669677734375,
-0.0024051666259765625,
0.0177154541015625,
-0.01325225830078125,
0.004901885986328125,
0.03570556640625,
-0.019866943359375,
0.020721435546875,
0.0207061767578125,
0.029754638671875,
-0.05084228515625,
-0.080322265625,
-0.0005230903625488281,
0.00992584228515625,
0.031951904296875,
-0.01142120361328125,
-0.00525665283203125,
0.0021209716796875,
-0.031036376953125,
-0.047515869140625,
0.024566650390625,
0.0080718994140625,
-0.039398193359375,
-0.03387451171875,
0.034698486328125,
-0.004001617431640625,
-0.01485443115234375,
-0.01483917236328125,
-0.0130615234375,
0.0125274658203125,
0.0219268798828125,
-0.006443023681640625,
-0.0030841827392578125,
0.054290771484375,
-0.0249176025390625,
-0.0653076171875,
-0.035491943359375,
-0.036041259765625,
-0.0091094970703125,
-0.047210693359375,
0.00652313232421875,
0.015899658203125,
0.01477813720703125,
0.0269927978515625,
0.028411865234375,
0.057891845703125,
-0.032867431640625,
0.005069732666015625,
0.01548004150390625,
-0.0193328857421875,
0.0163726806640625,
0.076904296875,
0.01323699951171875,
0.024078369140625,
-0.0197906494140625,
-0.0155792236328125,
0.0031261444091796875,
-0.0089263916015625,
0.000016629695892333984,
0.00911712646484375,
-0.044830322265625,
0.0131378173828125,
-0.0034313201904296875,
-0.0079498291015625,
0.0025653839111328125,
-0.01462554931640625,
-0.0299835205078125,
-0.00981903076171875,
-0.00981903076171875,
0.0034465789794921875,
-0.053619384765625,
-0.01666259765625,
0.037445068359375,
-0.007114410400390625,
0.0167694091796875,
0.0048675537109375,
0.0212249755859375,
0.03460693359375,
0.041534423828125,
-0.0259246826171875,
-0.024871826171875,
-0.01102447509765625,
0.01554107666015625,
-0.02142333984375,
0.0095062255859375,
-0.0197906494140625,
0.0007076263427734375,
0.002696990966796875,
-0.00878143310546875,
-0.01111602783203125,
-0.0267486572265625,
-0.0253753662109375,
0.004062652587890625,
-0.0318603515625,
0.07159423828125,
-0.032470703125,
0.0068206787109375,
-0.01116943359375,
-0.015838623046875,
0.006816864013671875,
0.0144805908203125,
0.061187744140625,
-0.011444091796875,
-0.016632080078125,
-0.0009450912475585938,
-0.020721435546875,
-0.043182373046875,
0.004283905029296875,
-0.05694580078125,
-0.00334930419921875,
0.007526397705078125
] |
4b3dbb2ae13c97bacc9431af3a7ad87139663cf3 | Wordpress Stackexchange
Q: Get the current block ID Is there a way to get the current block id? I would like to add it in the html generated in the save function (registerBlockType).
The save portion of my block:
save: props => {
const {
attributes: { images, isCropped },
className,
} = props;
return (
<div className={ `${className} ${isCropped ? 'is-cropped' : ''}` }>
<div className={`grid`}>
{ images.map( img => (
<div className={ `grid-item` }
<img src={ img.src } />
</div>
))}
</div>
</div>
);
}
Thx!
A: The block id is saved in the clientId field. It's regenerated at each save of the post and is only available in props in the edit function. In order to use this field as unique id in the save function, it needs to be saved as attribute in the edit section. It will be then available in the save function via props.attributes.
| Q: Get the current block ID Is there a way to get the current block id? I would like to add it in the html generated in the save function (registerBlockType).
The save portion of my block:
save: props => {
const {
attributes: { images, isCropped },
className,
} = props;
return (
<div className={ `${className} ${isCropped ? 'is-cropped' : ''}` }>
<div className={`grid`}>
{ images.map( img => (
<div className={ `grid-item` }
<img src={ img.src } />
</div>
))}
</div>
</div>
);
}
Thx!
A: The block id is saved in the clientId field. It's regenerated at each save of the post and is only available in props in the edit function. In order to use this field as unique id in the save function, it needs to be saved as attribute in the edit section. It will be then available in the save function via props.attributes.
| wordpress | {
"language": "en",
"length": 149,
"provenance": "stackexchange_00019.jsonl.gz:492976",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/329108"
} | [
0.0034961700439453125,
-0.016937255859375,
-0.03692626953125,
-0.04510498046875,
0.003917694091796875,
-0.0264892578125,
-0.00843048095703125,
0.0193328857421875,
0.03228759765625,
0.0194854736328125,
-0.017425537109375,
-0.0256805419921875,
0.01004791259765625,
-0.026580810546875,
-0.02447509765625,
-0.01629638671875,
0.052001953125,
-0.02691650390625,
0.0102691650390625,
0.004100799560546875,
-0.03265380859375,
0.03778076171875,
0.015655517578125,
0.08111572265625,
0.0465087890625,
-0.08184814453125,
0.0848388671875,
-0.02960205078125,
0.043487548828125,
-0.01206207275390625,
0.037322998046875,
-0.0005168914794921875,
0.0228271484375,
-0.0162353515625,
0.0184478759765625,
0.02545166015625,
0.04931640625,
-0.0117340087890625,
0.0209503173828125,
0.01515960693359375,
0.022369384765625,
-0.0220489501953125,
-0.04205322265625,
-0.01357269287109375,
-0.035797119140625,
-0.03717041015625,
0.021240234375,
-0.00392913818359375,
0.0178680419921875,
0.08709716796875,
0.004764556884765625,
0.027984619140625,
-0.0111236572265625,
0.050201416015625,
0.0008754730224609375,
-0.0200653076171875,
-0.0406494140625,
-0.0023345947265625,
0.03143310546875,
0.06134033203125,
0.0160369873046875,
-0.0010728836059570312,
0.00018584728240966797,
-0.0687255859375,
0.0214691162109375,
-0.01535797119140625,
0.043548583984375,
0.02569580078125,
-0.007358551025390625,
-0.006061553955078125,
0.0016012191772460938,
0.0102691650390625,
-0.0033721923828125,
-0.00994110107421875,
-0.0004639625549316406,
-0.0191650390625,
0.0227203369140625,
-0.01280975341796875,
-0.026458740234375,
0.04052734375,
0.019927978515625,
-0.0230255126953125,
-0.063232421875,
0.035369873046875,
0.004779815673828125,
0.05364990234375,
-0.00955963134765625,
-0.0271148681640625,
-0.015411376953125,
-0.00499725341796875,
-0.0282135009765625,
-0.0196533203125,
0.0076446533203125,
0.0017442703247070312,
-0.037811279296875,
-0.02508544921875,
0.038055419921875,
0.03125,
-0.04193115234375,
-0.025238037109375,
-0.01763916015625,
-0.020660400390625,
-0.0191192626953125,
-0.0178070068359375,
0.0016336441040039062,
0.05810546875,
0.008880615234375,
-0.026763916015625,
0.004138946533203125,
-0.01477813720703125,
-0.0027904510498046875,
-0.0296173095703125,
0.01104736328125,
0.023895263671875,
-0.08135986328125,
-0.003765106201171875,
-0.0130462646484375,
-0.034454345703125,
-0.01250457763671875,
-0.0081329345703125,
0.043426513671875,
0.04998779296875,
0.0271453857421875,
0.0016498565673828125,
0.0069580078125,
0.01296234130859375,
-0.031707763671875,
-0.06658935546875,
0.00682830810546875,
-0.034149169921875,
-0.041961669921875,
0.031982421875,
0.06488037109375,
0.026519775390625,
0.018341064453125,
0.0057525634765625,
-0.006336212158203125,
-0.0245361328125,
0.0132293701171875,
-0.01210784912109375,
-0.010589599609375,
0.004978179931640625,
0.034637451171875,
-0.0254058837890625,
0.00662994384765625,
0.0116119384765625,
0.007503509521484375,
0.017364501953125,
0.0133819580078125,
-0.05731201171875,
0.0303955078125,
-0.05712890625,
0.027496337890625,
0.01456451416015625,
0.0205535888671875,
0.00951385498046875,
0.05511474609375,
-0.0301513671875,
-0.022186279296875,
-0.03802490234375,
0.0712890625,
-0.0029010772705078125,
0.0024394989013671875,
0.040313720703125,
-0.0055999755859375,
0.00618743896484375,
-0.07525634765625,
-0.014892578125,
0.02337646484375,
0.0694580078125,
0.01393890380859375,
0.011566162109375,
0.0072784423828125,
0.0030460357666015625,
-0.028961181640625,
-0.0236053466796875,
0.00662994384765625,
-0.059295654296875,
0.034393310546875,
0.0217742919921875,
-0.03863525390625,
-0.0187225341796875,
0.00970458984375,
-0.020294189453125,
-0.02239990234375,
0.060211181640625,
-0.017578125,
0.0509033203125,
0.013092041015625,
-0.00467681884765625,
-0.0236053466796875,
0.01445770263671875,
-0.0965576171875,
0.0298919677734375,
0.0042877197265625,
0.03961181640625,
-0.037384033203125,
0.0133514404296875,
-0.0003991127014160156,
-0.043212890625,
-0.01053619384765625,
-0.044647216796875,
0.031341552734375,
-0.0225067138671875,
-0.003726959228515625,
-0.033660888671875,
-0.009490966796875,
0.024932861328125,
-0.0287933349609375,
-0.01708984375,
0.0202178955078125,
-0.0755615234375,
0.00701141357421875,
0.0177154541015625,
0.00231170654296875,
0.0010480880737304688,
-0.0297088623046875,
-0.0191497802734375,
-0.01629638671875,
0.0172882080078125,
-0.033599853515625,
0.018341064453125,
-0.046295166015625,
-0.02935791015625,
0.0139007568359375,
0.04180908203125,
-0.037017822265625,
0.004550933837890625,
-0.017578125,
0.0582275390625,
-0.07470703125,
-0.003086090087890625,
-0.01021575927734375,
0.0244293212890625,
-0.033172607421875,
-0.022216796875,
-0.0220489501953125,
-0.050018310546875,
0.0174560546875,
0.05340576171875,
0.010833740234375,
-0.0134735107421875,
-0.0019369125366210938,
0.0469970703125,
0.0018777847290039062,
0.00926971435546875,
0.0296478271484375,
0.00506591796875,
-0.00867462158203125,
0.006626129150390625,
0.014373779296875,
0.00341033935546875,
0.01531982421875,
-0.00623321533203125,
0.0222015380859375,
0.022064208984375,
-0.0389404296875,
-0.01242828369140625,
-0.0241546630859375,
0.0188751220703125,
-0.0092620849609375,
-0.026336669921875,
0.0238494873046875,
-0.035858154296875,
0.050079345703125,
0.0224761962890625,
0.055023193359375,
0.03265380859375,
-0.053497314453125,
0.027313232421875,
0.032073974609375,
0.025238037109375,
0.00823974609375,
0.038909912109375,
0.03338623046875,
0.05450439453125,
-0.04388427734375,
-0.028564453125,
0.044708251953125,
0.056732177734375,
-0.0247039794921875,
0.006626129150390625,
-0.06060791015625,
-0.0243072509765625,
-0.0024623870849609375,
-0.048431396484375,
-0.01067352294921875,
-0.0203399658203125,
-0.01160430908203125,
0.0117034912109375,
0.035064697265625,
0.0291290283203125,
-0.001491546630859375,
0.01032257080078125,
0.0007557868957519531,
-0.0063018798828125,
0.003322601318359375,
-0.042144775390625,
0.03021240234375,
-0.04925537109375,
0.10284423828125,
0.055450439453125,
-0.060638427734375,
0.054412841796875,
-0.0078582763671875,
-0.034881591796875,
0.0308837890625,
-0.029052734375,
-0.0242919921875,
-0.0184173583984375,
-0.0036487579345703125,
0.044219970703125,
0.004840850830078125,
0.0626220703125,
-0.032806396484375,
-0.05645751953125,
-0.00841522216796875,
-0.001262664794921875,
-0.0675048828125,
-0.079833984375,
-0.00724029541015625,
-0.031707763671875,
-0.0266876220703125,
-0.0188140869140625,
-0.038116455078125,
0.0068511962890625,
-0.007904052734375,
0.0011234283447265625,
-0.0074615478515625,
-0.0292205810546875,
-0.0731201171875,
-0.050262451171875,
-0.073974609375,
0.023406982421875,
-0.00380706787109375,
0.0154571533203125,
0.0010614395141601562,
0.032196044921875,
0.0005803108215332031,
-0.0184173583984375,
-0.0209808349609375,
-0.048492431640625,
0.00005137920379638672,
-0.01953125,
-0.0013074874877929688,
-0.055450439453125,
0.0362548828125,
0.01215362548828125,
-0.05712890625,
0.006855010986328125,
0.0301971435546875,
-0.01026153564453125,
-0.0239715576171875,
-0.032470703125,
-0.0033664703369140625,
0.04022216796875,
0.01386260986328125,
0.0038661956787109375,
0.062042236328125,
-0.034027099609375,
-0.04620361328125,
0.00963592529296875,
-0.0350341796875,
0.0157318115234375,
0.0246734619140625,
-0.0227813720703125,
-0.0138702392578125,
0.0236663818359375,
0.01351165771484375,
-0.0139007568359375,
0.0306854248046875,
-0.0273895263671875,
0.03912353515625,
-0.0073394775390625,
0.004802703857421875,
-0.036041259765625,
0.0377197265625,
0.0013971328735351562,
0.0157012939453125,
0.01497650146484375,
0.01525115966796875,
0.0016298294067382812,
-0.01200103759765625,
-0.0222015380859375,
-0.0222015380859375,
0.03924560546875,
0.0250091552734375,
0.036834716796875,
-0.00418853759765625,
-0.03326416015625,
0.01377105712890625,
0.07470703125,
-0.0097198486328125,
-0.03021240234375,
0.00662994384765625,
0.02484130859375,
-0.0382080078125,
-0.00923919677734375,
-0.01519012451171875,
-0.01523590087890625,
-0.0235595703125,
-0.01226806640625,
-0.00647735595703125,
-0.0154266357421875,
0.0095672607421875,
0.019378662109375,
0.01593017578125,
-0.0206298828125,
0.04705810546875,
-0.0377197265625,
-0.0107269287109375,
0.03277587890625,
-0.00928497314453125,
0.0131378173828125,
-0.04791259765625,
0.0027103424072265625,
-0.020904541015625,
-0.004428863525390625,
-0.034820556640625,
0.050018310546875,
0.006168365478515625,
0.038970947265625,
-0.043731689453125,
0.01482391357421875,
0.00251007080078125,
0.0300750732421875,
0.020172119140625,
0.0275115966796875,
0.043060302734375,
-0.051055908203125,
0.021514892578125,
-0.05108642578125,
-0.0182037353515625,
-0.017059326171875,
-0.017730712890625,
-0.0135345458984375,
-0.0124359130859375,
-0.032623291015625,
0.018463134765625,
-0.0140838623046875,
-0.05999755859375,
-0.018951416015625,
0.0237884521484375,
0.04022216796875,
0.0003116130828857422,
0.006744384765625,
-0.00597381591796875,
-0.043304443359375,
0.039459228515625,
-0.006011962890625,
0.00848388671875,
-0.004207611083984375,
0.08251953125,
0.0183563232421875,
-0.0055999755859375,
0.00501251220703125,
0.0374755859375,
0.05133056640625,
-0.03802490234375,
0.059051513671875,
0.06353759765625,
-0.0117950439453125,
0.016571044921875,
0.0195465087890625,
-0.0188446044921875,
-0.035980224609375,
0.0450439453125,
0.00736236572265625,
0.0074310302734375,
-0.03875732421875,
-0.01541900634765625,
0.06854248046875,
0.0124969482421875,
-0.04840087890625,
0.0027637481689453125,
-0.045654296875,
0.0338134765625,
-0.03570556640625,
0.0731201171875,
-0.032135009765625,
-0.033538818359375,
0.001800537109375,
0.004116058349609375,
-0.005535125732421875,
0.043121337890625,
-0.0228271484375,
0.0447998046875,
0.046600341796875,
-0.0006704330444335938,
0.006237030029296875,
-0.0039520263671875,
0.0089111328125,
0.0311279296875,
-0.0046539306640625,
0.006439208984375,
0.0018463134765625,
0.013275146484375,
0.005641937255859375,
-0.036285400390625,
-0.0625,
-0.031829833984375,
0.00012540817260742188,
-0.0183868408203125,
0.0308990478515625,
0.01197052001953125,
0.001224517822265625,
0.018585205078125,
0.029632568359375,
0.01026153564453125,
0.00469207763671875,
0.0347900390625,
0.0014791488647460938,
-0.0133819580078125,
-0.0245819091796875,
-0.0008187294006347656,
-0.0133056640625,
0.015106201171875,
0.017120361328125,
-0.0077667236328125,
-0.01708984375,
0.045074462890625,
0.03448486328125,
0.0012788772583007812,
0.0191192626953125,
0.0077972412109375,
-0.0035839080810546875,
-0.0267181396484375,
-0.0181427001953125,
-0.031646728515625,
0.045684814453125,
0.0179290771484375,
0.0430908203125,
0.0214080810546875,
-0.036712646484375,
0.0084991455078125,
-0.05096435546875,
0.01287078857421875,
-0.00940704345703125,
-0.019622802734375,
-0.0318603515625,
0.0175628662109375,
0.05120849609375,
0.006557464599609375,
-0.01479339599609375,
-0.0033664703369140625,
-0.03729248046875,
-0.01229095458984375,
0.006420135498046875,
-0.0174102783203125,
-0.00835418701171875,
-0.0007634162902832031,
-0.00411224365234375,
-0.0252227783203125,
-0.0160064697265625,
-0.0134124755859375,
0.0157470703125,
0.00383758544921875,
-0.028076171875,
-0.04180908203125,
0.06658935546875,
-0.01030731201171875,
0.03887939453125,
-0.03631591796875,
-0.0227203369140625,
-0.0082855224609375,
0.005535125732421875,
0.0244598388671875,
-0.0021114349365234375,
0.004550933837890625,
-0.0284881591796875,
-0.06268310546875,
-0.030670166015625,
0.0226287841796875,
-0.01305389404296875,
0.023193359375,
-0.0042877197265625,
-0.009552001953125,
0.050872802734375,
-0.017059326171875,
0.00458526611328125,
0.04071044921875,
-0.0173187255859375,
-0.044158935546875,
0.05804443359375,
0.01275634765625,
0.059112548828125,
0.01013946533203125,
0.060577392578125,
0.022247314453125,
0.00437164306640625,
-0.057403564453125,
-0.0131378173828125,
-0.0189361572265625,
-0.0005407333374023438,
0.0096893310546875,
-0.0106658935546875,
0.0281829833984375,
-0.0002033710479736328,
0.029052734375,
0.004802703857421875,
0.019378662109375,
0.00640106201171875,
0.0159912109375,
-0.0194854736328125,
-0.036590576171875,
0.0243988037109375,
-0.0163116455078125,
0.02947998046875,
-0.017822265625,
-0.0157470703125,
-0.00717926025390625,
0.039031982421875,
-0.01136016845703125,
-0.01025390625,
-0.034515380859375,
0.015106201171875,
0.0299530029296875,
-0.0335693359375,
0.037933349609375,
0.0041656494140625,
0.0499267578125,
0.0186614990234375,
0.025665283203125,
0.044189453125,
0.0244903564453125,
-0.0008873939514160156,
0.027862548828125,
0.07733154296875,
0.01357269287109375,
-0.027557373046875,
0.027435302734375,
-0.025421142578125,
0.016448974609375,
0.011505126953125,
0.055877685546875,
-0.02166748046875,
0.00940704345703125,
0.005786895751953125,
-0.0253143310546875,
0.024261474609375,
0.0177459716796875,
0.0066986083984375,
-0.007419586181640625,
-0.0208892822265625,
0.0212554931640625,
-0.0189056396484375,
-0.01149749755859375,
0.004486083984375,
-0.01015472412109375,
-0.0285186767578125,
0.0004382133483886719,
-0.0217742919921875,
0.00620269775390625,
-0.0474853515625,
-0.017059326171875,
-0.035003662109375,
-0.017181396484375,
0.02117919921875,
-0.00762176513671875,
0.01462554931640625,
-0.0246429443359375,
0.03955078125,
-0.01261138916015625,
0.019012451171875,
-0.015899658203125,
-0.0014286041259765625,
0.027618408203125,
0.04656982421875,
-0.0095977783203125,
-0.021820068359375,
0.0174560546875,
-0.01444244384765625,
0.0009493827819824219,
-0.01464080810546875,
0.006221771240234375,
0.002796173095703125,
-0.040924072265625,
-0.00244903564453125,
-0.03436279296875,
0.00801849365234375,
0.004299163818359375,
0.0106353759765625,
0.04486083984375,
-0.041473388671875,
-0.00650787353515625,
0.0504150390625,
0.008148193359375,
-0.03973388671875,
0.004940032958984375,
-0.007015228271484375,
-0.0104217529296875,
0.0175628662109375,
-0.007537841796875,
0.0082244873046875,
0.00594329833984375,
0.0083770751953125,
-0.046295166015625,
0.065185546875,
0.041748046875,
0.0139007568359375,
0.0216217041015625,
0.03314208984375,
-0.04168701171875,
0.004848480224609375,
-0.015655517578125,
0.00934600830078125,
-0.01959228515625,
0.00782012939453125,
-0.04296875,
-0.005207061767578125,
-0.0094146728515625,
0.028289794921875,
0.129638671875,
0.03814697265625,
-0.0031490325927734375,
-0.0191802978515625,
0.00672149658203125,
0.00011831521987915039,
-0.0699462890625,
0.04827880859375,
0.025115966796875,
0.0157470703125,
0.0026912689208984375,
-0.003246307373046875,
0.012359619140625,
-0.0328369140625,
-0.021575927734375,
0.0654296875,
-0.0005970001220703125,
0.01239013671875,
0.010589599609375,
-0.0416259765625,
-0.0513916015625,
0.017425537109375,
0.039306640625,
-0.041839599609375,
0.006427764892578125,
0.047271728515625,
0.053436279296875,
-0.04937744140625,
-0.009857177734375,
-0.0276641845703125,
0.05584716796875,
0.00458526611328125,
-0.0017547607421875,
0.03326416015625,
0.0185089111328125,
-0.018585205078125,
0.0295257568359375,
0.00005739927291870117,
0.00951385498046875,
0.0024738311767578125,
0.0316162109375,
0.033843994140625,
0.01398468017578125,
-0.031097412109375,
0.02496337890625,
0.0906982421875,
0.05877685546875,
-0.049774169921875,
-0.02044677734375,
0.034332275390625,
0.0173492431640625,
0.00270843505859375,
0.01107025146484375,
0.035736083984375,
-0.044281005859375,
-0.0292816162109375,
0.021820068359375,
-0.039154052734375,
-0.01505279541015625,
0.0234832763671875,
0.02825927734375,
0.0367431640625,
-0.01195526123046875,
-0.06341552734375,
-0.08837890625,
0.0263214111328125,
0.0299072265625,
0.0618896484375,
0.03692626953125,
0.044921875,
0.0723876953125,
-0.032470703125,
-0.032867431640625,
0.036407470703125,
0.041351318359375,
0.01496124267578125,
0.00592041015625,
0.034942626953125,
0.01177215576171875,
0.001522064208984375,
0.027984619140625,
0.033050537109375,
0.0203857421875,
-0.015411376953125,
-0.02740478515625,
0.016448974609375,
0.0239715576171875,
-0.027008056640625,
0.06427001953125,
-0.0360107421875,
0.06829833984375,
0.017547607421875,
-0.00823974609375,
0.00009363889694213867,
-0.0243682861328125,
0.09454345703125,
-0.0257110595703125,
0.08746337890625,
-0.0106964111328125,
0.00287628173828125,
-0.0133209228515625,
-0.0160675048828125,
0.05029296875,
0.0055084228515625,
-0.06854248046875,
-0.01031494140625,
-0.03173828125,
-0.02239990234375,
0.027679443359375,
0.0261383056640625,
-0.049072265625,
0.057403564453125,
-0.021575927734375,
-0.016357421875,
0.00565338134765625,
0.0006651878356933594,
0.0049285888671875,
0.026824951171875,
0.0029544830322265625,
0.00958251953125,
-0.0347900390625,
0.00537109375,
0.021636962890625,
-0.028167724609375,
-0.002742767333984375,
0.0185699462890625,
0.0289154052734375,
-0.0028324127197265625,
-0.0173492431640625,
0.042694091796875,
-0.057373046875,
-0.0085296630859375,
0.00821685791015625,
0.02490234375,
0.0294342041015625,
-0.009002685546875,
-0.054718017578125,
-0.0253143310546875,
0.044097900390625,
0.003841400146484375,
-0.009765625,
-0.01552581787109375,
0.031890869140625,
0.0121917724609375,
0.0274505615234375,
-0.01025390625,
-0.05938720703125,
0.0063018798828125,
0.044921875,
-0.004486083984375,
0.034942626953125,
-0.01522064208984375,
0.03369140625,
0.026641845703125,
0.0002963542938232422,
0.003215789794921875,
-0.00812530517578125,
0.019256591796875,
0.03173828125,
-0.0249176025390625,
-0.030487060546875,
0.0285797119140625,
-0.0067291259765625,
0.0168914794921875,
-0.0014514923095703125,
0.05816650390625,
0.0182647705078125,
-0.00479888916015625,
0.05908203125,
0.046417236328125,
0.07440185546875,
-0.00820159912109375,
0.0208587646484375,
0.03131103515625,
-0.007610321044921875,
0.0286102294921875,
-0.031707763671875,
-0.018585205078125,
-0.0272216796875,
-0.0189361572265625,
0.0220794677734375,
-0.0293121337890625,
-0.037078857421875,
-0.058258056640625,
0.0019083023071289062,
-0.032989501953125,
0.001995086669921875,
-0.02044677734375,
0.049163818359375,
0.01151275634765625,
-0.0187225341796875,
-0.04608154296875,
0.02557373046875,
-0.012725830078125,
0.0107879638671875,
-0.042633056640625,
-0.03167724609375,
-0.015655517578125,
0.04510498046875,
-0.0035686492919921875,
-0.006778717041015625,
-0.02386474609375,
-0.00223541259765625,
-0.0026531219482421875,
0.01145172119140625,
0.020599365234375,
0.0535888671875,
0.007297515869140625,
-0.033935546875,
0.0006833076477050781,
-0.005420684814453125,
-0.010009765625,
-0.01093292236328125,
0.0182342529296875,
-0.045867919921875,
-0.00727081298828125,
-0.07794189453125,
0.043548583984375,
0.035614013671875,
-0.027435302734375,
-0.073974609375,
0.0155029296875,
-0.0406494140625,
-0.0307159423828125,
0.00821685791015625,
0.031585693359375,
-0.00684356689453125,
-0.053009033203125,
-0.0161895751953125,
-0.022247314453125,
0.02032470703125,
0.02020263671875,
0.016387939453125,
0.0023021697998046875,
0.031890869140625,
-0.007785797119140625,
-0.0474853515625,
0.01068878173828125,
-0.002872467041015625,
0.0255584716796875,
-0.0159454345703125,
-0.004734039306640625,
0.0188140869140625,
0.020416259765625,
-0.0435791015625,
0.014068603515625,
0.005077362060546875,
0.056793212890625,
-0.0211944580078125,
0.0017919540405273438,
-0.02899169921875,
0.00724029541015625,
0.065673828125,
0.06903076171875,
0.0091705322265625,
-0.04437255859375,
0.0186920166015625,
0.00394439697265625,
-0.07708740234375,
0.00099945068359375,
0.03271484375,
-0.062408447265625,
-0.005794525146484375,
0.004947662353515625,
0.0003833770751953125,
-0.0144195556640625,
0.0169219970703125,
-0.04193115234375,
0.0014276504516601562,
-0.01224517822265625,
-0.001068115234375,
-0.10577392578125,
0.041778564453125,
0.033294677734375,
-0.0253448486328125,
-0.006839752197265625,
-0.035369873046875,
-0.004001617431640625,
0.0181427001953125,
-0.0440673828125,
0.00276947021484375,
0.00022161006927490234,
-0.0198211669921875,
0.004444122314453125,
0.0062255859375,
0.039031982421875,
0.01343536376953125,
-0.01419830322265625,
0.0102386474609375,
-0.005611419677734375,
0.007740020751953125,
-0.0251617431640625,
-0.0333251953125,
0.02191162109375,
-0.034820556640625,
0.068359375,
-0.0188751220703125,
0.023284912109375,
-0.01349639892578125,
0.04400634765625,
-0.019134521484375,
0.003925323486328125,
0.0223388671875,
-0.03350830078125,
0.0010747909545898438,
0.00820159912109375,
0.0110931396484375,
-0.0220184326171875,
0.0223388671875,
-0.003971099853515625,
-0.0048980712890625,
0.0191497802734375
] |
f2edb071b0dbd143b1116e0b8e73f4643d1d268b | Wordpress Stackexchange
Q: Proper, exhaustive documentation for wp.editor etc There exist the following :
*
*wp.editor.PanelColorSettings
*wp.editor.InspectorControls
*wp.editor.RichText
*wp.editor.BlockControls
*etc.
Where is the documentation that shows the full list of available 'components' in wp.editor?
Also, where is the equivelent documentation for
wp.element and wp.components?
Yours, frustratedly
A: I have gone through the implementation of all Gutenberg core blocks in start, so now if I have to know how to use something then I first find the closest core component which is implementing that and then looks at the documentation of that particular block via https://github.com/WordPress/gutenberg/tree/master/packages/block-library/src
This process is solving problems for me up until now.
| Q: Proper, exhaustive documentation for wp.editor etc There exist the following :
*
*wp.editor.PanelColorSettings
*wp.editor.InspectorControls
*wp.editor.RichText
*wp.editor.BlockControls
*etc.
Where is the documentation that shows the full list of available 'components' in wp.editor?
Also, where is the equivelent documentation for
wp.element and wp.components?
Yours, frustratedly
A: I have gone through the implementation of all Gutenberg core blocks in start, so now if I have to know how to use something then I first find the closest core component which is implementing that and then looks at the documentation of that particular block via https://github.com/WordPress/gutenberg/tree/master/packages/block-library/src
This process is solving problems for me up until now.
A: You can find documentation for the various packages in the Gutenberg Github repo in the readme for each package.
For example, the "data" module docs are here: https://github.com/WordPress/gutenberg/tree/master/packages/data
I will search a term in the Gutenberg repo, and show just the Markdown files to quickly find any related documentation.
As far as seeing what objects or functions are available for any given package, I use the browser console to explore things. Open an admin page with the Block editor, open your console, and type "wp."
It will show you a list of all the apis. as you select each object, you can then type another "." to see the methods or properties it contains. This is really helpful in understanding how things work and what methods are available.
I'm often looking around in wp.data.select( 'core/block-editor' ) for methods to use when building my blocks. So I type wp.data.select( 'core/block-editor' ). in the console, and it shows a list of everything that's available. If I need to know more about a method, I'll then search the gutenberg repo for it to find more details.
Hope that helps!
| wordpress | {
"language": "en",
"length": 290,
"provenance": "stackexchange_00019.jsonl.gz:493256",
"question_score": "6",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/330145"
} | [
-0.05224609375,
-0.0252838134765625,
-0.049285888671875,
0.01898193359375,
-0.03961181640625,
-0.0369873046875,
-0.004917144775390625,
0.0036773681640625,
0.007724761962890625,
0.061004638671875,
0.01605224609375,
-0.051788330078125,
0.033050537109375,
-0.0281829833984375,
-0.0538330078125,
-0.022613525390625,
0.0203857421875,
0.000032067298889160156,
0.02337646484375,
-0.0005879402160644531,
-0.00395965576171875,
0.001964569091796875,
0.0026760101318359375,
-0.00698089599609375,
0.039703369140625,
-0.07928466796875,
0.05377197265625,
0.004047393798828125,
0.0302886962890625,
-0.020050048828125,
0.029937744140625,
0.0046844482421875,
0.00882720947265625,
0.03643798828125,
-0.06951904296875,
-0.00702667236328125,
-0.0012674331665039062,
-0.00102996826171875,
-0.0010881423950195312,
0.01435089111328125,
0.0233306884765625,
-0.00733184814453125,
0.002490997314453125,
-0.02716064453125,
-0.01898193359375,
-0.006771087646484375,
0.00466156005859375,
-0.02630615234375,
0.0271453857421875,
0.0096435546875,
-0.0090179443359375,
0.03118896484375,
0.0013179779052734375,
0.0011415481567382812,
-0.0003147125244140625,
-0.0235443115234375,
0.009918212890625,
-0.00835418701171875,
0.0240631103515625,
0.0014247894287109375,
-0.0129852294921875,
0.0215301513671875,
0.01079559326171875,
-0.00797271728515625,
0.0140380859375,
0.004535675048828125,
0.03411865234375,
0.0302276611328125,
0.01003265380859375,
0.0010967254638671875,
-0.021209716796875,
-0.0007653236389160156,
-0.0156707763671875,
-0.0699462890625,
0.023193359375,
0.048980712890625,
-0.014556884765625,
-0.0303802490234375,
0.0015821456909179688,
0.0152740478515625,
-0.004123687744140625,
0.0296783447265625,
-0.008148193359375,
-0.064208984375,
0.02996826171875,
-0.04901123046875,
-0.006931304931640625,
0.0036869049072265625,
0.005023956298828125,
-0.03509521484375,
-0.0026531219482421875,
-0.025299072265625,
-0.04217529296875,
0.029632568359375,
0.00466156005859375,
-0.03814697265625,
0.0005278587341308594,
0.002227783203125,
0.00002002716064453125,
0.00246429443359375,
0.05096435546875,
-0.06878662109375,
0.0753173828125,
-0.034393310546875,
-0.0015363693237304688,
0.0218658447265625,
-0.0270843505859375,
0.03216552734375,
0.059356689453125,
0.0292816162109375,
-0.003021240234375,
0.007053375244140625,
0.00786590576171875,
-0.041229248046875,
0.0150909423828125,
0.0092315673828125,
-0.01390838623046875,
0.0411376953125,
0.007080078125,
0.00991058349609375,
0.009613037109375,
0.0174407958984375,
0.017791748046875,
-0.0030651092529296875,
-0.044891357421875,
-0.028289794921875,
-0.006923675537109375,
-0.043426513671875,
0.057373046875,
0.002613067626953125,
-0.0294952392578125,
0.0216827392578125,
0.047027587890625,
-0.0142364501953125,
0.00191497802734375,
-0.027618408203125,
0.01042938232421875,
-0.01081085205078125,
0.01279449462890625,
0.0016069412231445312,
-0.034820556640625,
-0.0010843276977539062,
0.04638671875,
-0.019683837890625,
0.0093536376953125,
0.00035071372985839844,
0.035552978515625,
0.01033782958984375,
-0.0218353271484375,
-0.026947021484375,
-0.00926971435546875,
0.0275421142578125,
0.044219970703125,
0.0291595458984375,
-0.0036182403564453125,
-0.037353515625,
0.053070068359375,
-0.04638671875,
-0.006847381591796875,
-0.05792236328125,
0.0263671875,
-0.00617218017578125,
0.00952911376953125,
-0.0038318634033203125,
-0.030029296875,
-0.00445556640625,
-0.0318603515625,
-0.00907135009765625,
0.0254364013671875,
0.005809783935546875,
-0.0235137939453125,
-0.05230712890625,
-0.0066680908203125,
-0.04132080078125,
-0.043975830078125,
0.039886474609375,
-0.024139404296875,
-0.03631591796875,
0.018463134765625,
0.06634521484375,
0.0146942138671875,
-0.0120086669921875,
0.01024627685546875,
0.01166534423828125,
-0.035369873046875,
0.0002932548522949219,
-0.003353118896484375,
0.042633056640625,
0.031890869140625,
0.0226287841796875,
0.0116729736328125,
-0.023834228515625,
-0.0306854248046875,
0.01007080078125,
-0.0361328125,
0.00937652587890625,
-0.04248046875,
0.047607421875,
-0.039031982421875,
-0.03082275390625,
0.0025920867919921875,
-0.0011606216430664062,
0.0309906005859375,
-0.028167724609375,
-0.00922393798828125,
0.007778167724609375,
-0.0026454925537109375,
0.036041259765625,
0.020233154296875,
0.00970458984375,
0.001338958740234375,
-0.03729248046875,
-0.011566162109375,
-0.004474639892578125,
-0.0255279541015625,
0.01428985595703125,
-0.01114654541015625,
0.03839111328125,
0.0185699462890625,
0.0167083740234375,
0.03411865234375,
-0.0219573974609375,
0.025665283203125,
0.00923919677734375,
0.05615234375,
0.0218048095703125,
-0.00823974609375,
0.0000864267349243164,
0.053497314453125,
0.055755615234375,
-0.03704833984375,
-0.032196044921875,
0.055816650390625,
0.065673828125,
-0.003101348876953125,
0.0100860595703125,
0.0163726806640625,
-0.0435791015625,
0.002960205078125,
0.0201873779296875,
0.025238037109375,
0.037811279296875,
0.00402069091796875,
0.004974365234375,
0.07000732421875,
-0.043548583984375,
0.004550933837890625,
-0.01580810546875,
-0.0274810791015625,
0.0599365234375,
-0.01447296142578125,
0.0283203125,
-0.0126800537109375,
0.0049285888671875,
-0.055816650390625,
0.039825439453125,
0.039398193359375,
0.0286407470703125,
-0.0215301513671875,
0.009490966796875,
0.01239776611328125,
-0.01374053955078125,
-0.045013427734375,
-0.00623321533203125,
0.049285888671875,
0.0300750732421875,
0.0748291015625,
0.058013916015625,
-0.05108642578125,
0.0214691162109375,
0.016754150390625,
0.07989501953125,
0.0032405853271484375,
0.01342010498046875,
0.01092529296875,
0.01285552978515625,
0.01213836669921875,
-0.003635406494140625,
-0.0322265625,
0.0106964111328125,
-0.0212554931640625,
0.0158233642578125,
0.00312042236328125,
-0.006923675537109375,
0.00616455078125,
-0.056243896484375,
0.010650634765625,
-0.0100555419921875,
-0.01042938232421875,
-0.01727294921875,
0.0215301513671875,
-0.0141754150390625,
-0.0255279541015625,
-0.006465911865234375,
0.0260162353515625,
-0.0297393798828125,
0.01837158203125,
-0.036468505859375,
0.0252532958984375,
-0.0044097900390625,
0.056884765625,
0.06591796875,
0.00841522216796875,
-0.005771636962890625,
0.0025920867919921875,
-0.035614013671875,
0.0299530029296875,
-0.0235137939453125,
-0.029296875,
0.01416778564453125,
-0.06591796875,
0.025238037109375,
0.02362060546875,
0.01128387451171875,
0.002197265625,
-0.025421142578125,
-0.03228759765625,
0.02777099609375,
-0.06414794921875,
-0.0379638671875,
-0.0223846435546875,
-0.10052490234375,
0.0217132568359375,
-0.041168212890625,
-0.050445556640625,
-0.0014095306396484375,
-0.0062713623046875,
0.017120361328125,
-0.0902099609375,
-0.010040283203125,
-0.0538330078125,
-0.079833984375,
-0.07794189453125,
0.01242828369140625,
-0.011688232421875,
0.0543212890625,
0.0021343231201171875,
0.0129241943359375,
-0.0273284912109375,
-0.05145263671875,
-0.037261962890625,
-0.0733642578125,
-0.00345611572265625,
-0.023162841796875,
0.0083160400390625,
-0.0146026611328125,
-0.03131103515625,
0.03564453125,
-0.018310546875,
-0.0213623046875,
-0.00888824462890625,
-0.02276611328125,
0.005657196044921875,
0.005588531494140625,
0.0169525146484375,
0.01776123046875,
-0.009429931640625,
-0.01207733154296875,
0.01432037353515625,
-0.057586669921875,
0.0004558563232421875,
0.0377197265625,
0.004032135009765625,
-0.021148681640625,
-0.04241943359375,
-0.019866943359375,
0.031005859375,
0.01137542724609375,
0.005611419677734375,
0.0264434814453125,
0.023345947265625,
0.0126190185546875,
0.04473876953125,
-0.0279998779296875,
-0.043365478515625,
-0.03985595703125,
0.005779266357421875,
-0.037353515625,
-0.05023193359375,
-0.03155517578125,
-0.0257568359375,
-0.01548004150390625,
-0.01186370849609375,
-0.022491455078125,
-0.03411865234375,
0.030120849609375,
-0.01456451416015625,
0.021209716796875,
-0.032867431640625,
-0.00994110107421875,
-0.0038318634033203125,
0.044586181640625,
-0.007579803466796875,
0.00421905517578125,
0.01324462890625,
0.005214691162109375,
-0.01446533203125,
-0.003173828125,
-0.0751953125,
0.01343536376953125,
-0.07293701171875,
0.031524658203125,
0.006458282470703125,
-0.044647216796875,
-0.0136871337890625,
-0.0044097900390625,
-0.06378173828125,
-0.033416748046875,
0.01508331298828125,
0.0169525146484375,
-0.00597381591796875,
-0.0015954971313476562,
-0.0027523040771484375,
-0.023468017578125,
-0.0024394989013671875,
-0.007282257080078125,
-0.1060791015625,
-0.0132904052734375,
-0.05120849609375,
0.066650390625,
0.0254669189453125,
-0.0007143020629882812,
-0.011016845703125,
0.058258056640625,
-0.009918212890625,
0.0546875,
0.0154266357421875,
0.032989501953125,
0.03778076171875,
-0.03021240234375,
0.0257568359375,
-0.03302001953125,
0.006542205810546875,
-0.00714874267578125,
-0.003955841064453125,
0.01422882080078125,
-0.01522064208984375,
-0.0027370452880859375,
0.0168304443359375,
-0.01387786865234375,
0.0182342529296875,
-0.0121002197265625,
-0.062347412109375,
0.009979248046875,
-0.034454345703125,
-0.0138397216796875,
-0.005603790283203125,
-0.0188446044921875,
0.019775390625,
0.00504302978515625,
-0.027313232421875,
0.0153656005859375,
0.056427001953125,
0.018096923828125,
-0.00905609130859375,
-0.037506103515625,
-0.0157470703125,
0.0189208984375,
-0.0204010009765625,
0.048095703125,
0.002986907958984375,
0.0013189315795898438,
0.04156494140625,
-0.0240020751953125,
0.007549285888671875,
-0.0116729736328125,
0.0008835792541503906,
-0.01202392578125,
-0.025848388671875,
0.00759124755859375,
-0.0300750732421875,
0.06427001953125,
-0.0022640228271484375,
-0.025115966796875,
0.0247344970703125,
-0.01081085205078125,
0.0010576248168945312,
-0.03741455078125,
0.05389404296875,
0.002475738525390625,
0.039276123046875,
-0.02947998046875,
0.054351806640625,
0.064208984375,
0.06341552734375,
-0.01078033447265625,
0.00323486328125,
0.04376220703125,
-0.016571044921875,
0.062347412109375,
-0.0029048919677734375,
0.0153350830078125,
0.0059356689453125,
0.051513671875,
-0.019561767578125,
0.034271240234375,
-0.00586700439453125,
0.08172607421875,
0.005405426025390625,
-0.034912109375,
-0.0010967254638671875,
-0.0124969482421875,
0.0142974853515625,
0.048919677734375,
-0.0002474784851074219,
0.02337646484375,
0.060333251953125,
-0.029022216796875,
-0.003597259521484375,
0.04986572265625,
-0.004047393798828125,
-0.041229248046875,
0.026519775390625,
-0.023223876953125,
0.007526397705078125,
0.0122833251953125,
0.038818359375,
-0.06317138671875,
0.03143310546875,
0.015899658203125,
-0.0095367431640625,
-0.00714874267578125,
0.04925537109375,
0.030548095703125,
-0.048980712890625,
-0.007152557373046875,
0.0218963623046875,
0.0025730133056640625,
-0.0406494140625,
-0.0396728515625,
0.023040771484375,
0.03955078125,
-0.0234375,
-0.01100921630859375,
0.0022296905517578125,
-0.002895355224609375,
0.019073486328125,
-0.0063323974609375,
-0.0465087890625,
-0.023773193359375,
0.023345947265625,
0.055328369140625,
0.0274658203125,
-0.0216064453125,
-0.0297088623046875,
0.0005278587341308594,
-0.0316162109375,
0.01523590087890625,
-0.00551605224609375,
-0.048858642578125,
0.01377105712890625,
0.005443572998046875,
-0.0142822265625,
0.007343292236328125,
0.0267486572265625,
-0.09075927734375,
-0.053924560546875,
-0.01226043701171875,
0.00991058349609375,
0.08319091796875,
-0.0122528076171875,
0.0025920867919921875,
-0.0249786376953125,
0.002727508544921875,
-0.0927734375,
0.0211029052734375,
0.0335693359375,
0.04241943359375,
0.01451873779296875,
-0.042236328125,
-0.0458984375,
-0.03253173828125,
-0.08349609375,
-0.04742431640625,
-0.02972412109375,
0.0517578125,
-0.015289306640625,
-0.007152557373046875,
0.03265380859375,
0.063720703125,
-0.01230621337890625,
0.059539794921875,
-0.01910400390625,
0.065673828125,
0.027313232421875,
0.044097900390625,
-0.03155517578125,
0.057403564453125,
0.0152587890625,
-0.00415802001953125,
-0.029327392578125,
-0.0249786376953125,
0.021728515625,
-0.01641845703125,
-0.025177001953125,
-0.048980712890625,
0.0218353271484375,
0.0007681846618652344,
0.01384735107421875,
-0.0160980224609375,
-0.007663726806640625,
-0.038177490234375,
-0.004344940185546875,
-0.032440185546875,
0.0706787109375,
-0.06378173828125,
-0.021820068359375,
-0.0268707275390625,
-0.0177764892578125,
0.0215911865234375,
-0.01100921630859375,
-0.0301513671875,
0.0237884521484375,
-0.0010623931884765625,
0.01532745361328125,
0.0212860107421875,
-0.006984710693359375,
-0.001827239990234375,
0.048583984375,
-0.004154205322265625,
0.022796630859375,
0.019989013671875,
0.007091522216796875,
0.01114654541015625,
0.02685546875,
-0.01119232177734375,
0.01033782958984375,
0.047149658203125,
0.025543212890625,
0.014892578125,
0.0504150390625,
-0.005115509033203125,
0.0059356689453125,
0.0149383544921875,
0.03985595703125,
-0.046051025390625,
0.0070953369140625,
-0.00452423095703125,
-0.03460693359375,
0.0027828216552734375,
-0.0210113525390625,
0.0282440185546875,
-0.022979736328125,
0.01404571533203125,
0.02581787109375,
-0.016845703125,
-0.013397216796875,
-0.0282440185546875,
-0.00571441650390625,
-0.033294677734375,
0.0299530029296875,
0.003749847412109375,
-0.00751495361328125,
0.016143798828125,
0.0009813308715820312,
0.01947021484375,
-0.017181396484375,
0.004657745361328125,
-0.0173187255859375,
-0.01302337646484375,
-0.038177490234375,
-0.0086212158203125,
-0.019287109375,
-0.0077056884765625,
0.00403594970703125,
-0.0107574462890625,
0.0010480880737304688,
0.03729248046875,
-0.04443359375,
0.03466796875,
0.001461029052734375,
-0.0003275871276855469,
-0.035980224609375,
0.019256591796875,
0.037139892578125,
0.0211334228515625,
-0.026702880859375,
0.0268402099609375,
-0.046630859375,
-0.00014328956604003906,
-0.00009608268737792969,
0.01934814453125,
0.0958251953125,
-0.033050537109375,
-0.032958984375,
0.04986572265625,
-0.018280029296875,
-0.0279541015625,
0.00032448768615722656,
-0.017578125,
-0.05718994140625,
-0.03131103515625,
0.00904083251953125,
-0.01519775390625,
0.0274505615234375,
0.039276123046875,
-0.051239013671875,
0.0496826171875,
0.054351806640625,
-0.006427764892578125,
0.0291748046875,
0.019439697265625,
-0.09716796875,
-0.0253448486328125,
-0.029541015625,
0.036376953125,
-0.00594329833984375,
0.004451751708984375,
-0.06304931640625,
-0.00025463104248046875,
-0.034027099609375,
0.030487060546875,
0.015899658203125,
0.00041484832763671875,
-0.045684814453125,
0.006481170654296875,
0.03448486328125,
-0.0027103424072265625,
-0.0240936279296875,
0.07061767578125,
0.021087646484375,
-0.0175933837890625,
-0.00463104248046875,
-0.00005137920379638672,
0.0231170654296875,
-0.05548095703125,
-0.00920867919921875,
0.0557861328125,
0.0023746490478515625,
0.0034351348876953125,
0.017791748046875,
-0.02239990234375,
-0.0099639892578125,
-0.00007802248001098633,
0.0167388916015625,
-0.032745361328125,
-0.040008544921875,
0.0304412841796875,
-0.0303192138671875,
-0.039215087890625,
-0.00164031982421875,
-0.03521728515625,
0.01177215576171875,
-0.022308349609375,
-0.00390625,
0.036224365234375,
0.033111572265625,
-0.03076171875,
0.00911712646484375,
0.009490966796875,
0.0296173095703125,
-0.039306640625,
-0.0118255615234375,
-0.036468505859375,
0.004352569580078125,
-0.058502197265625,
0.025848388671875,
0.00832366943359375,
-0.022918701171875,
-0.006992340087890625,
-0.043212890625,
0.01050567626953125,
0.0160369873046875,
0.039215087890625,
0.006107330322265625,
0.0455322265625,
-0.036346435546875,
-0.0015573501586914062,
-0.0423583984375,
-0.06170654296875,
-0.00551605224609375,
0.038848876953125,
-0.0068817138671875,
-0.0059051513671875,
0.064697265625,
-0.075927734375,
-0.0195159912109375,
-0.0030460357666015625,
0.021697998046875,
0.01031494140625,
0.005954742431640625,
0.07373046875,
0.033935546875,
0.006443023681640625,
-0.0207061767578125,
0.0479736328125,
0.02313232421875,
0.0084381103515625,
-0.0159912109375,
-0.038330078125,
0.0255126953125,
0.0232391357421875,
0.04888916015625,
0.0290374755859375,
0.022857666015625,
0.0157318115234375,
0.01381683349609375,
0.0152740478515625,
0.01265716552734375,
-0.01499176025390625,
-0.02313232421875,
-0.044464111328125,
0.041839599609375,
0.0271759033203125,
0.01488494873046875,
0.006378173828125,
0.0254669189453125,
0.049713134765625,
-0.007579803466796875,
-0.00469207763671875,
0.0108795166015625,
-0.04034423828125,
0.0362548828125,
-0.0281219482421875,
0.04425048828125,
0.01338958740234375,
-0.0721435546875,
-0.00157928466796875,
-0.0096893310546875,
-0.0169525146484375,
0.01273345947265625,
0.03497314453125,
-0.0183868408203125,
0.0270843505859375,
0.009857177734375,
0.0153350830078125,
0.0290069580078125,
-0.0188751220703125,
-0.005229949951171875,
0.0166778564453125,
0.037261962890625,
-0.00640106201171875,
-0.03851318359375,
-0.0182037353515625,
-0.007381439208984375,
0.01375579833984375,
0.006252288818359375,
0.08038330078125,
-0.0024356842041015625,
0.0068817138671875,
0.006805419921875,
0.0029354095458984375,
0.01953125,
-0.0004627704620361328,
0.017242431640625,
0.048431396484375,
0.034210205078125,
-0.035675048828125,
-0.03912353515625,
0.040771484375,
0.032196044921875,
0.01922607421875,
0.0386962890625,
-0.0179901123046875,
0.00769805908203125,
-0.022918701171875,
-0.0190582275390625,
-0.012847900390625,
-0.0295867919921875,
-0.0002313852310180664,
0.00688934326171875,
0.010345458984375,
0.041595458984375,
0.018218994140625,
-0.00797271728515625,
0.003391265869140625,
-0.0126800537109375,
-0.00494384765625,
0.0265045166015625,
-0.0130767822265625,
0.0154571533203125,
0.0216217041015625,
-0.04632568359375,
-0.0011930465698242188,
-0.0169830322265625,
-0.0009255409240722656,
-0.01087188720703125,
0.04644775390625,
-0.00936126708984375,
-0.026824951171875,
-0.0038814544677734375,
0.0310516357421875,
0.06317138671875,
-0.002101898193359375,
0.032806396484375,
0.0037174224853515625,
-0.01454925537109375,
-0.0020904541015625,
0.026611328125,
-0.0134429931640625,
-0.0265655517578125,
-0.0350341796875,
-0.01093292236328125,
-0.037933349609375,
-0.0562744140625,
-0.04254150390625,
-0.01348114013671875,
0.0286102294921875,
-0.006343841552734375,
-0.00354766845703125,
-0.0027179718017578125,
-0.0127105712890625,
0.017059326171875,
-0.01488494873046875,
0.04046630859375,
-0.01326751708984375,
-0.0033111572265625,
-0.044952392578125,
-0.0005025863647460938,
-0.0121612548828125,
0.019500732421875,
0.01934814453125,
0.02899169921875,
0.051666259765625,
-0.04376220703125,
-0.01824951171875,
0.0447998046875,
0.0609130859375,
0.08026123046875,
0.0265045166015625,
0.006420135498046875,
0.006702423095703125,
0.000029265880584716797,
-0.0157928466796875,
-0.0582275390625,
0.00838470458984375,
-0.052215576171875,
-0.007488250732421875,
0.0107269287109375,
-0.02972412109375,
-0.014312744140625,
-0.06561279296875,
-0.11199951171875,
0.043609619140625,
-0.01123809814453125,
-0.06201171875,
-0.021728515625,
0.0184478759765625,
-0.0134124755859375,
0.0154266357421875,
-0.0075836181640625,
0.0175323486328125,
0.0023670196533203125,
0.0213470458984375,
0.0006642341613769531,
-0.006622314453125,
0.038482666015625,
-0.039337158203125,
-0.0297088623046875,
-0.01751708984375,
0.00710296630859375,
0.0024318695068359375,
0.0187530517578125,
-0.0055694580078125,
0.005954742431640625,
0.022918701171875,
-0.056182861328125,
-0.0712890625,
-0.032196044921875,
-0.01306915283203125,
-0.0008378028869628906,
0.0018434524536132812,
-0.01934814453125,
-0.00800323486328125,
0.0104217529296875,
0.03814697265625,
0.003021240234375,
-0.01119232177734375,
0.10357666015625,
0.0604248046875,
-0.048980712890625,
-0.001556396484375,
-0.0014677047729492188,
0.02215576171875,
-0.03558349609375,
-0.03314208984375,
-0.015716552734375,
-0.0037288665771484375,
-0.0178070068359375,
-0.022613525390625,
-0.00870513916015625,
-0.052337646484375,
-0.0250244140625,
-0.01436614990234375,
-0.0390625,
0.0308074951171875,
-0.022918701171875,
0.005031585693359375,
0.02008056640625,
0.0181884765625,
0.00807952880859375,
0.056976318359375,
-0.039337158203125,
-0.033843994140625,
-0.00664520263671875,
0.00893402099609375,
-0.0209503173828125,
0.045257568359375,
-0.01358795166015625,
0.004146575927734375,
0.0099029541015625,
-0.005756378173828125,
-0.013671875,
-0.037200927734375,
-0.03729248046875,
0.057891845703125,
-0.03131103515625,
0.08721923828125,
-0.01111602783203125,
0.023040771484375,
-0.0209197998046875,
0.03546142578125,
0.01055908203125,
-0.01328277587890625,
0.03173828125,
-0.0234375,
0.0009675025939941406,
0.03228759765625,
0.00881195068359375,
-0.000858306884765625,
-0.0221710205078125,
0.0355224609375,
0.0155792236328125,
-0.00722503662109375
] |
e513cb459c697aead0e2f1582d2bf7cb7f8bc46f | Wordpress Stackexchange
Q: How to display only 3 main categories, separated by commas, since they are marked in the post? I want to display only 3 categories (Ex: horses, dogs, birds), names only and comma separated, in my Post, since one of them, two or all tree are marked in the post.
<span><?php
if ( 'in_category('horses') ) {
echo "horses";
} ?></span><span><?php
if ( in_category('dogs') ) {
echo "dogs";
} ?></span><span><?php
if ( in_category('birds') ) {
echo "birds";
}
?></span>
A: It should be enough using a single <span> for all categories and add some logic.:
<span><?php
$categories = ['horses','dogs','birds'];
$string = "";
foreach ($categories as $category){ //iterate over the categories to check
if(has_category($category))
$string .= $category.", "; //if in_category add to the output
}
$string = trim($string); //remove extra space from end
$string = rtrim($string, ','); //remove extra comma from end
echo $string; //result example: <span>horses, dogs</span>
?></span>
| Q: How to display only 3 main categories, separated by commas, since they are marked in the post? I want to display only 3 categories (Ex: horses, dogs, birds), names only and comma separated, in my Post, since one of them, two or all tree are marked in the post.
<span><?php
if ( 'in_category('horses') ) {
echo "horses";
} ?></span><span><?php
if ( in_category('dogs') ) {
echo "dogs";
} ?></span><span><?php
if ( in_category('birds') ) {
echo "birds";
}
?></span>
A: It should be enough using a single <span> for all categories and add some logic.:
<span><?php
$categories = ['horses','dogs','birds'];
$string = "";
foreach ($categories as $category){ //iterate over the categories to check
if(has_category($category))
$string .= $category.", "; //if in_category add to the output
}
$string = trim($string); //remove extra space from end
$string = rtrim($string, ','); //remove extra comma from end
echo $string; //result example: <span>horses, dogs</span>
?></span>
A: I'm not sure, if I understand it correctly, because it doesn't sound like very common problem, but...
If you want to check only for the existence of given three categories and output them separated with commas, then this is the code you can use (based on yours, but I've fixed the empty spans problem):
<?php $cats_printed = 0; ?>
<?php if ( in_category('horses') ) : $cats_printed++; ?><span>horses</span><?php endif; ?>
<?php if ( in_category('dogs') ) : if ( $cats_printed++ ) echo ', '; ?><span>dogs</span><?php endif; ?>
<?php if ( in_category('birds') ) : if ( $cats_printed++ ) echo ', '; ?><span>birds</span><?php endif; ?>
A: Here's a simplified version of Fabrizo's code:
<span><?php
$categories = [ 'horses', 'dogs', 'birds' ];
echo implode( ', ', array_filter( $categories, 'has_category' ) );
?></span>
A: You can use get_the_terms( int|WP_Post $post, string $taxonomy ) . See Codex detail here.
// put IDs of your selected three categories e.g. 15, 18, 20 here in this array
$my_cats = array(15, 18, 20);
$my_terms = get_the_terms( get_the_id(), 'category' );
if ( ! empty( $my_terms ) ) {
if ( ! is_wp_error( $my_terms ) ) {
foreach( $my_terms as $term ) {
if(in_array($term->term_id, $my_cats){
// Display them as you want
echo '<span>' . esc_html( $term->name ) . '</span>' ;
}
}
}
}
| wordpress | {
"language": "en",
"length": 360,
"provenance": "stackexchange_00019.jsonl.gz:493259",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/330156"
} | [
0.0296478271484375,
0.004833221435546875,
-0.062164306640625,
-0.05419921875,
0.052001953125,
-0.04193115234375,
0.033477783203125,
0.0238189697265625,
0.015106201171875,
0.0209808349609375,
-0.038818359375,
-0.0021572113037109375,
-0.0247344970703125,
-0.01776123046875,
-0.03570556640625,
-0.04742431640625,
0.01493072509765625,
0.01468658447265625,
0.027862548828125,
0.0045318603515625,
0.00455474853515625,
0.00464630126953125,
-0.012237548828125,
0.0217437744140625,
-0.0174407958984375,
-0.032318115234375,
0.06304931640625,
0.0023193359375,
-0.05242919921875,
-0.04833984375,
0.01042938232421875,
0.04443359375,
0.03076171875,
-0.0142822265625,
0.023834228515625,
0.091796875,
0.02679443359375,
-0.0137786865234375,
0.03802490234375,
0.00836181640625,
-0.003192901611328125,
0.0003085136413574219,
0.033935546875,
-0.031494140625,
-0.00004285573959350586,
0.0178680419921875,
-0.0089874267578125,
-0.03411865234375,
0.0301513671875,
-0.041748046875,
0.035064697265625,
0.035797119140625,
0.04254150390625,
-0.0082244873046875,
-0.0153961181640625,
0.050445556640625,
-0.02880859375,
0.00824737548828125,
0.040771484375,
0.0283966064453125,
-0.0229034423828125,
-0.021026611328125,
0.020599365234375,
-0.03741455078125,
-0.033233642578125,
0.00014841556549072266,
0.018646240234375,
0.0105133056640625,
-0.0286102294921875,
-0.052093505859375,
0.03240966796875,
0.0004558563232421875,
0.00711822509765625,
-0.06817626953125,
0.0025310516357421875,
0.0294342041015625,
-0.048614501953125,
-0.03131103515625,
0.03253173828125,
-0.0283203125,
0.00855255126953125,
0.042236328125,
-0.021240234375,
-0.015380859375,
0.0202178955078125,
0.024444580078125,
-0.0242156982421875,
-0.0283355712890625,
-0.028564453125,
-0.0237579345703125,
-0.02276611328125,
0.0037136077880859375,
-0.06768798828125,
-0.0032711029052734375,
0.002147674560546875,
-0.01910400390625,
-0.0301361083984375,
-0.0110931396484375,
-0.026885986328125,
-0.0192718505859375,
0.007320404052734375,
-0.01415252685546875,
-0.036529541015625,
-0.005306243896484375,
0.01244354248046875,
0.0430908203125,
-0.029296875,
-0.00797271728515625,
0.052093505859375,
0.034637451171875,
0.0268096923828125,
0.00841522216796875,
-0.01212310791015625,
-0.0265350341796875,
-0.0282135009765625,
0.028839111328125,
-0.004047393798828125,
-0.01422882080078125,
0.01739501953125,
-0.0020313262939453125,
-0.0076751708984375,
0.029388427734375,
-0.0150146484375,
-0.046478271484375,
0.051971435546875,
0.03204345703125,
-0.00676727294921875,
-0.0032596588134765625,
0.034210205078125,
0.00014710426330566406,
-0.0202789306640625,
0.0118560791015625,
-0.005619049072265625,
-0.0025424957275390625,
-0.01128387451171875,
-0.0044708251953125,
0.0131988525390625,
-0.0169219970703125,
-0.02642822265625,
0.0478515625,
-0.047271728515625,
-0.0251312255859375,
0.03271484375,
-0.041046142578125,
0.0197906494140625,
0.0079345703125,
0.01062774658203125,
0.0030517578125,
0.0229339599609375,
0.003353118896484375,
-0.0067596435546875,
-0.0243988037109375,
0.070556640625,
-0.0190887451171875,
-0.09991455078125,
-0.023956298828125,
-0.01025390625,
-0.026947021484375,
-0.058135986328125,
-0.07232666015625,
0.0298614501953125,
0.0267181396484375,
0.0325927734375,
-0.04046630859375,
-0.041839599609375,
-0.041595458984375,
-0.072265625,
-0.00890350341796875,
0.025299072265625,
-0.02178955078125,
0.036102294921875,
0.0423583984375,
0.029388427734375,
0.01258087158203125,
0.018218994140625,
-0.0210113525390625,
-0.036102294921875,
-0.033050537109375,
0.028472900390625,
0.0127105712890625,
-0.00675201416015625,
-0.01629638671875,
-0.03948974609375,
0.03582763671875,
-0.06884765625,
0.013702392578125,
0.0125732421875,
0.08660888671875,
0.0239105224609375,
0.022064208984375,
0.048309326171875,
-0.023590087890625,
-0.0284423828125,
-0.0095062255859375,
-0.00759124755859375,
-0.0228424072265625,
0.0037555694580078125,
-0.006805419921875,
0.0033855438232421875,
0.01259613037109375,
0.0101165771484375,
0.061859130859375,
-0.0263671875,
0.049713134765625,
0.0016117095947265625,
0.04632568359375,
0.004337310791015625,
0.0286865234375,
-0.0789794921875,
0.02142333984375,
0.03973388671875,
-0.0116424560546875,
-0.04205322265625,
0.026275634765625,
0.04931640625,
0.028533935546875,
0.0150299072265625,
0.04248046875,
-0.01221466064453125,
0.01529693603515625,
-0.013458251953125,
-0.038299560546875,
0.0025005340576171875,
0.05145263671875,
0.0216522216796875,
0.009796142578125,
-0.040802001953125,
-0.013336181640625,
-0.00787353515625,
0.034454345703125,
-0.07049560546875,
0.0220947265625,
0.0247039794921875,
0.054473876953125,
-0.0211639404296875,
0.01458740234375,
0.03594970703125,
0.01390838623046875,
0.0004973411560058594,
0.0115814208984375,
0.025543212890625,
-0.00020515918731689453,
-0.05224609375,
-0.08245849609375,
0.062744140625,
-0.0421142578125,
-0.0017347335815429688,
-0.034698486328125,
0.018035888671875,
0.03411865234375,
-0.0082244873046875,
0.01340484619140625,
0.0222015380859375,
0.008575439453125,
0.0040130615234375,
0.03466796875,
-0.016632080078125,
0.041229248046875,
-0.008758544921875,
-0.0272369384765625,
-0.0177459716796875,
-0.054595947265625,
-0.0040130615234375,
-0.036163330078125,
-0.0038700103759765625,
0.0250701904296875,
0.0238189697265625,
0.040679931640625,
-0.007747650146484375,
0.01023101806640625,
0.00737762451171875,
0.004657745361328125,
-0.01094818115234375,
0.049591064453125,
-0.041015625,
-0.005214691162109375,
-0.0030536651611328125,
0.01219940185546875,
-0.029144287109375,
-0.006206512451171875,
0.0254669189453125,
0.0733642578125,
0.04840087890625,
-0.01078033447265625,
-0.0013742446899414062,
-0.0034351348876953125,
0.0002906322479248047,
0.000034809112548828125,
-0.0343017578125,
-0.00841522216796875,
0.0026416778564453125,
0.061798095703125,
-0.029205322265625,
0.045654296875,
-0.051544189453125,
0.010101318359375,
-0.0302276611328125,
-0.0021915435791015625,
0.0017213821411132812,
-0.02142333984375,
0.01250457763671875,
0.044677734375,
0.00412750244140625,
-0.01018524169921875,
0.003047943115234375,
-0.01094818115234375,
0.008453369140625,
-0.0015325546264648438,
-0.0175018310546875,
0.01519775390625,
-0.075927734375,
0.01490020751953125,
0.01371002197265625,
0.05084228515625,
-0.0160369873046875,
-0.058441162109375,
0.024200439453125,
0.0282135009765625,
-0.046905517578125,
-0.056671142578125,
0.003925323486328125,
-0.0031223297119140625,
-0.028472900390625,
0.039306640625,
-0.01812744140625,
-0.002414703369140625,
0.0316162109375,
-0.01209259033203125,
0.0169677734375,
-0.01105499267578125,
-0.04180908203125,
-0.016265869140625,
-0.041595458984375,
0.01251983642578125,
0.0015926361083984375,
0.00264739990234375,
0.0167388916015625,
0.0802001953125,
0.0406494140625,
-0.016845703125,
0.053802490234375,
-0.0023956298828125,
-0.044403076171875,
0.0283050537109375,
-0.019927978515625,
0.0082855224609375,
-0.0229339599609375,
-0.0014410018920898438,
0.033050537109375,
-0.00853729248046875,
-0.004329681396484375,
0.00507354736328125,
0.01336669921875,
0.0183563232421875,
0.0173492431640625,
-0.0218963623046875,
-0.006229400634765625,
0.048187255859375,
-0.01201629638671875,
-0.0169677734375,
-0.035614013671875,
0.0005822181701660156,
-0.0430908203125,
0.0020885467529296875,
0.024169921875,
0.00226593017578125,
-0.02032470703125,
-0.007747650146484375,
-0.0198211669921875,
-0.01195526123046875,
-0.032196044921875,
-0.0261688232421875,
0.025482177734375,
-0.0013484954833984375,
0.01172637939453125,
0.0272369384765625,
-0.0181427001953125,
-0.03704833984375,
0.04315185546875,
-0.0191192626953125,
-0.008087158203125,
-0.0223541259765625,
0.03485107421875,
-0.038177490234375,
0.009521484375,
0.006862640380859375,
-0.01541900634765625,
0.020355224609375,
0.00897979736328125,
-0.0025081634521484375,
-0.01198577880859375,
0.03411865234375,
-0.10284423828125,
-0.0213623046875,
-0.0108642578125,
0.0006804466247558594,
0.006351470947265625,
-0.02911376953125,
-0.057830810546875,
-0.026824951171875,
-0.038055419921875,
0.0164947509765625,
-0.004558563232421875,
-0.0038356781005859375,
-0.031982421875,
0.0218048095703125,
-0.0394287109375,
-0.0198211669921875,
0.0357666015625,
-0.048919677734375,
0.006221771240234375,
-0.0784912109375,
0.02947998046875,
-0.1187744140625,
0.022369384765625,
-0.03350830078125,
-0.03271484375,
-0.00609588623046875,
0.03411865234375,
0.0013093948364257812,
-0.036834716796875,
0.0219268798828125,
-0.008575439453125,
0.04132080078125,
0.0023708343505859375,
-0.045074462890625,
-0.0004248619079589844,
0.0100555419921875,
-0.0430908203125,
0.024993896484375,
-0.0255889892578125,
-0.0169830322265625,
-0.0193634033203125,
-0.04425048828125,
-0.0026302337646484375,
0.0008454322814941406,
-0.032562255859375,
-0.00211334228515625,
-0.034759521484375,
0.01055145263671875,
-0.0615234375,
-0.036224365234375,
-0.037322998046875,
0.002773284912109375,
-0.0262451171875,
-0.00572967529296875,
-0.040130615234375,
-0.067138671875,
0.01509857177734375,
0.00879669189453125,
-0.023101806640625,
0.0145263671875,
0.043975830078125,
0.004917144775390625,
-0.0202789306640625,
-0.061981201171875,
-0.025543212890625,
0.034149169921875,
-0.0160369873046875,
-0.0019931793212890625,
-0.0256805419921875,
-0.056793212890625,
0.1112060546875,
-0.0170440673828125,
0.033355712890625,
-0.042510986328125,
0.024749755859375,
0.0089874267578125,
0.01085662841796875,
-0.0062408447265625,
0.007110595703125,
0.0242156982421875,
0.00750732421875,
0.01544189453125,
0.01001739501953125,
0.044036865234375,
-0.0014362335205078125,
0.0188446044921875,
-0.046661376953125,
0.00397491455078125,
-0.0211639404296875,
0.005886077880859375,
0.0250091552734375,
0.04144287109375,
0.0252532958984375,
-0.002056121826171875,
0.01180267333984375,
0.0292205810546875,
-0.00574493408203125,
0.045745849609375,
0.0135955810546875,
-0.003635406494140625,
0.0181121826171875,
0.0167999267578125,
-0.0162200927734375,
0.020477294921875,
0.01129913330078125,
-0.0321044921875,
-0.0219879150390625,
-0.0299835205078125,
-0.051055908203125,
0.01110076904296875,
0.05877685546875,
0.0214080810546875,
0.0144805908203125,
0.019622802734375,
0.0034923553466796875,
0.0158843994140625,
0.009552001953125,
-0.0121917724609375,
0.0182647705078125,
-0.011322021484375,
-0.0165863037109375,
-0.01305389404296875,
-0.027984619140625,
0.0234222412109375,
0.005840301513671875,
-0.028045654296875,
0.029205322265625,
0.0021533966064453125,
0.0110321044921875,
-0.01396942138671875,
0.0513916015625,
0.0033893585205078125,
-0.0031585693359375,
-0.0087127685546875,
0.04205322265625,
0.00830841064453125,
-0.034027099609375,
-0.047607421875,
0.007411956787109375,
0.019775390625,
-0.0435791015625,
-0.012115478515625,
0.039215087890625,
0.034271240234375,
-0.0305328369140625,
0.035980224609375,
0.0035343170166015625,
-0.01198577880859375,
-0.050018310546875,
-0.04058837890625,
0.0313720703125,
0.01319122314453125,
-0.008758544921875,
-0.0024700164794921875,
-0.04815673828125,
0.00043702125549316406,
0.0073699951171875,
-0.0203399658203125,
-0.00511932373046875,
0.0159912109375,
-0.06787109375,
-0.01366424560546875,
0.051177978515625,
-0.038604736328125,
-0.03546142578125,
0.0034160614013671875,
-0.0265350341796875,
-0.0138702392578125,
-0.0171051025390625,
0.01160430908203125,
-0.029144287109375,
-0.01445770263671875,
-0.03436279296875,
0.006145477294921875,
0.05413818359375,
0.041656494140625,
-0.05987548828125,
-0.01145172119140625,
-0.0140533447265625,
-0.00695037841796875,
0.0200653076171875,
-0.0285491943359375,
-0.01558685302734375,
-0.005313873291015625,
0.0015888214111328125,
0.0196685791015625,
0.00997161865234375,
0.0369873046875,
-0.0126953125,
0.02557373046875,
0.00030994415283203125,
0.05792236328125,
-0.0189666748046875,
0.01776123046875,
-0.0018033981323242188,
0.02197265625,
-0.01129150390625,
0.004894256591796875,
0.0006937980651855469,
-0.022796630859375,
-0.0027790069580078125,
-0.07177734375,
-0.01546478271484375,
0.03759765625,
-0.044464111328125,
-0.002227783203125,
0.00982666015625,
-0.004711151123046875,
-0.019622802734375,
-0.005138397216796875,
0.0052490234375,
-0.011566162109375,
0.0199432373046875,
0.006992340087890625,
-0.0171661376953125,
0.017120361328125,
0.005489349365234375,
0.034454345703125,
-0.0293731689453125,
-0.031707763671875,
0.0338134765625,
0.0027980804443359375,
0.031524658203125,
0.00957489013671875,
-0.00012946128845214844,
-0.0118408203125,
-0.0005245208740234375,
0.01178741455078125,
0.0305938720703125,
0.0216827392578125,
0.0213775634765625,
-0.0182037353515625,
-0.017303466796875,
0.028167724609375,
0.0163116455078125,
0.03558349609375,
0.00800323486328125,
0.017730712890625,
0.035797119140625,
-0.017974853515625,
-0.026580810546875,
0.046905517578125,
0.04595947265625,
-0.048583984375,
-0.004779815673828125,
0.0142059326171875,
-0.00007432699203491211,
-0.0323486328125,
0.0309295654296875,
-0.0287628173828125,
0.006801605224609375,
-0.0199432373046875,
0.001018524169921875,
-0.0242462158203125,
-0.0018396377563476562,
0.037841796875,
0.019134521484375,
0.0040130615234375,
0.056427001953125,
0.0116424560546875,
-0.057830810546875,
-0.0272216796875,
0.03851318359375,
-0.016357421875,
-0.0299224853515625,
0.00897216796875,
0.0083770751953125,
-0.009002685546875,
-0.068603515625,
0.0027313232421875,
-0.0087738037109375,
-0.001285552978515625,
0.005615234375,
-0.037109375,
0.00835418701171875,
0.02752685546875,
-0.0258331298828125,
0.00928497314453125,
0.0152130126953125,
-0.05657958984375,
0.0146942138671875,
-0.01403045654296875,
0.004486083984375,
0.0596923828125,
-0.04449462890625,
0.00804901123046875,
0.002048492431640625,
0.01172637939453125,
-0.01149749755859375,
-0.019317626953125,
0.0501708984375,
-0.0018463134765625,
-0.0305633544921875,
0.01947021484375,
-0.0088653564453125,
-0.01319122314453125,
0.0203399658203125,
0.012603759765625,
-0.043853759765625,
-0.057769775390625,
0.007904052734375,
-0.0911865234375,
-0.0079345703125,
-0.0247039794921875,
-0.09954833984375,
0.0689697265625,
-0.040924072265625,
0.07940673828125,
-0.00579833984375,
0.0001004338264465332,
0.0100555419921875,
-0.020965576171875,
-0.06854248046875,
0.045745849609375,
-0.00525665283203125,
0.0762939453125,
-0.060302734375,
-0.0206146240234375,
0.036834716796875,
0.0189361572265625,
-0.0189666748046875,
-0.0255889892578125,
0.033660888671875,
0.01158905029296875,
0.0283355712890625,
0.017791748046875,
-0.02288818359375,
-0.023193359375,
0.00531768798828125,
-0.0167694091796875,
0.03350830078125,
0.00980377197265625,
0.03662109375,
0.0002448558807373047,
-0.0169525146484375,
0.0301971435546875,
0.0160675048828125,
0.0390625,
-0.00664520263671875,
0.0198211669921875,
-0.0009794235229492188,
-0.021240234375,
0.018035888671875,
-0.05322265625,
0.01251220703125,
0.050689697265625,
0.047271728515625,
-0.04278564453125,
-0.0430908203125,
-0.00988006591796875,
0.03363037109375,
0.01062774658203125,
0.055999755859375,
0.058685302734375,
0.004146575927734375,
0.086669921875,
0.0205230712890625,
0.024078369140625,
0.01123046875,
0.008209228515625,
0.01934814453125,
0.011077880859375,
0.01983642578125,
-0.00928497314453125,
0.0216217041015625,
0.04608154296875,
0.0244293212890625,
-0.0308685302734375,
-0.05609130859375,
-0.0030078887939453125,
0.0180816650390625,
0.01462554931640625,
0.033416748046875,
0.0305633544921875,
0.0301361083984375,
0.094970703125,
-0.052978515625,
-0.0002589225769042969,
0.0179901123046875,
0.0040740966796875,
-0.0030670166015625,
-0.017791748046875,
0.004730224609375,
-0.0162353515625,
-0.043853759765625,
0.002040863037109375,
0.019561767578125,
0.053375244140625,
0.01617431640625,
0.0218658447265625,
-0.0130157470703125,
-0.026153564453125,
0.034576416015625,
-0.014862060546875,
0.0019235610961914062,
-0.0413818359375,
0.0382080078125,
0.00848388671875,
-0.0281524658203125,
-0.004772186279296875,
-0.028656005859375,
0.0103607177734375,
0.050537109375,
0.052825927734375,
-0.035797119140625,
-0.02783203125,
0.04852294921875,
-0.0201873779296875,
-0.037353515625,
-0.046844482421875,
-0.01065826416015625,
0.027374267578125,
0.00914764404296875,
0.007778167724609375,
0.0119781494140625,
0.042694091796875,
-0.00978851318359375,
0.00640106201171875,
0.0095672607421875,
-0.023590087890625,
0.0247802734375,
-0.00717926025390625,
0.028656005859375,
0.0131378173828125,
-0.060302734375,
-0.0065460205078125,
-0.0180511474609375,
-0.06597900390625,
0.03314208984375,
0.04571533203125,
-0.0269775390625,
0.01450347900390625,
0.0053558349609375,
-0.0186309814453125,
-0.0009632110595703125,
0.019683837890625,
-0.0228424072265625,
-0.038482666015625,
0.022979736328125,
-0.019439697265625,
-0.004150390625,
0.007114410400390625,
0.024993896484375,
-0.0142364501953125,
0.032989501953125,
0.007061004638671875,
0.033233642578125,
0.01226043701171875,
-0.049072265625,
0.004852294921875,
-0.049530029296875,
-0.0540771484375,
0.03546142578125,
-0.00388336181640625,
-0.005062103271484375,
0.00232696533203125,
0.038543701171875,
0.0227508544921875,
0.0308990478515625,
-0.0648193359375,
-0.0017881393432617188,
0.006282806396484375,
0.0007486343383789062,
-0.022705078125,
0.081298828125,
0.01318359375,
-0.03802490234375,
-0.087890625,
-0.010284423828125,
0.06689453125,
0.131591796875,
-0.0108489990234375,
0.00937652587890625,
0.0241241455078125,
-0.045562744140625,
0.0552978515625,
-0.037017822265625,
0.08551025390625,
0.042572021484375,
-0.0027446746826171875,
-0.0025787353515625,
0.038116455078125,
-0.01641845703125,
0.0273590087890625,
0.00930023193359375,
0.046875,
0.01702880859375,
0.009979248046875,
-0.002597808837890625,
0.033294677734375,
0.0261993408203125,
-0.00458526611328125,
0.01000213623046875,
0.01422882080078125,
-0.03131103515625,
-0.014862060546875,
0.0218658447265625,
-0.01453399658203125,
-0.0205841064453125,
-0.038909912109375,
0.0107879638671875,
-0.044525146484375,
-0.046722412109375,
-0.059722900390625,
-0.0174102783203125,
-0.002079010009765625,
-0.0002644062042236328,
-0.00856781005859375,
0.00870513916015625,
0.0099639892578125,
-0.002613067626953125,
-0.0171661376953125,
-0.0447998046875,
0.01110076904296875,
0.044036865234375,
-0.021942138671875,
-0.0164947509765625,
-0.01849365234375,
0.008087158203125,
-0.033721923828125,
-0.0187835693359375,
-0.004451751708984375,
-0.00930023193359375,
-0.01983642578125,
-0.0278472900390625,
0.00627899169921875,
0.00231170654296875,
0.05303955078125,
-0.005802154541015625,
0.0013875961303710938,
0.009490966796875,
-0.048919677734375,
-0.016510009765625,
0.035125732421875,
-0.0411376953125,
-0.033966064453125,
0.01117706298828125,
-0.007427215576171875,
0.01387786865234375,
-0.0207672119140625,
-0.051605224609375,
0.059844970703125,
-0.012359619140625,
-0.0200347900390625,
0.0083465576171875,
-0.034576416015625,
-0.033721923828125,
0.042938232421875,
0.0157623291015625,
-0.036590576171875,
-0.0187530517578125,
0.02789306640625,
0.01849365234375,
0.02081298828125,
0.007289886474609375,
0.014404296875,
-0.0244140625,
0.0399169921875,
0.0237579345703125,
0.005825042724609375,
-0.01213836669921875,
0.02764892578125,
0.0251312255859375,
0.0521240234375,
-0.01230621337890625,
0.0604248046875,
-0.005496978759765625,
0.0048370361328125,
0.026885986328125,
-0.03887939453125,
-0.0675048828125,
-0.05218505859375,
0.02484130859375,
0.01470184326171875,
0.012176513671875,
0.0033206939697265625,
-0.07635498046875,
-0.032623291015625,
0.037109375,
-0.0016965866088867188,
0.0201263427734375,
-0.072021484375,
0.00734710693359375,
0.0244903564453125,
-0.0024662017822265625,
0.02032470703125,
0.01526641845703125,
-0.00800323486328125,
-0.002025604248046875,
0.0347900390625,
0.0061492919921875,
-0.0614013671875,
0.005695343017578125,
-0.042633056640625,
-0.01119232177734375,
-0.045684814453125,
-0.025146484375,
0.004322052001953125,
-0.058929443359375,
-0.01043701171875,
-0.0179901123046875,
-0.0295562744140625,
0.01047515869140625,
0.03350830078125,
0.0032253265380859375,
0.07379150390625,
-0.0147247314453125,
-0.005588531494140625,
-0.02734375,
0.02276611328125,
0.0179901123046875,
0.045745849609375,
-0.040802001953125,
-0.0026302337646484375,
0.03289794921875,
-0.03631591796875,
-0.02947998046875,
0.0126953125,
-0.00740814208984375,
0.015655517578125,
-0.028961181640625,
0.00580596923828125,
0.00469970703125,
-0.0168304443359375,
-0.006816864013671875,
0.01470184326171875,
-0.0239715576171875,
-0.05364990234375,
0.0178680419921875,
0.0108795166015625,
0.016357421875,
0.0209808349609375
] |
3b751809905ff90f73b89d8a7c89acb9155a5b2a | Wordpress Stackexchange
Q: Modify Core Block Default Attributes I have a client that wants images to automatically be centered. This used to be possible with the image_default_align option for the old editor. Is there a simple way to change the default attributes for core blocks?
| Q: Modify Core Block Default Attributes I have a client that wants images to automatically be centered. This used to be possible with the image_default_align option for the old editor. Is there a simple way to change the default attributes for core blocks?
| wordpress | {
"language": "en",
"length": 43,
"provenance": "stackexchange_00019.jsonl.gz:493589",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/331357"
} | [
-0.02557373046875,
-0.003734588623046875,
-0.02880859375,
0.0280609130859375,
-0.00554656982421875,
-0.0289306640625,
0.049560546875,
-0.0085906982421875,
0.061279296875,
0.0406494140625,
-0.059173583984375,
-0.036285400390625,
0.04681396484375,
-0.0006594657897949219,
-0.0545654296875,
-0.02423095703125,
0.046630859375,
-0.033935546875,
0.011627197265625,
-0.01385498046875,
0.0282135009765625,
0.022979736328125,
-0.002193450927734375,
0.096923828125,
0.01947021484375,
-0.03570556640625,
0.0194549560546875,
-0.01375579833984375,
0.015106201171875,
0.005645751953125,
0.0266876220703125,
-0.01149749755859375,
0.031463623046875,
0.0194091796875,
-0.0267181396484375,
0.059234619140625,
0.005138397216796875,
0.0153961181640625,
-0.004852294921875,
0.0364990234375,
0.016937255859375,
0.0015573501586914062,
0.01491546630859375,
0.00044035911560058594,
-0.0177001953125,
0.0023040771484375,
-0.00635528564453125,
-0.04083251953125,
0.05047607421875,
-0.047149658203125,
-0.0267333984375,
0.0478515625,
-0.003475189208984375,
-0.07916259765625,
-0.0215606689453125,
-0.0159912109375,
-0.04534912109375,
0.015167236328125,
0.021209716796875,
0.0072021484375,
0.0089569091796875,
-0.00696563720703125,
0.016815185546875,
0.004718780517578125,
0.0487060546875,
-0.0237884521484375,
0.01178741455078125,
0.03985595703125,
-0.017425537109375,
0.053680419921875,
0.03131103515625,
-0.016448974609375,
0.007419586181640625,
-0.0230712890625,
0.024383544921875,
-0.0087127685546875,
-0.0046234130859375,
0.0013685226440429688,
0.0192108154296875,
0.01922607421875,
-0.0224456787109375,
-0.0230865478515625,
0.0171356201171875,
-0.04840087890625,
0.024993896484375,
-0.0184478759765625,
-0.01284027099609375,
0.01291656494140625,
0.007328033447265625,
-0.013031005859375,
0.01007843017578125,
-0.01282501220703125,
-0.054901123046875,
0.049835205078125,
0.013336181640625,
-0.039306640625,
0.0085906982421875,
-0.00960540771484375,
-0.0012788772583007812,
0.0014410018920898438,
0.0090484619140625,
-0.049560546875,
0.03765869140625,
-0.0206146240234375,
-0.005275726318359375,
0.01418304443359375,
-0.0216827392578125,
-0.04400634765625,
0.0115966796875,
0.0377197265625,
-0.017852783203125,
0.00260162353515625,
0.0178985595703125,
0.022613525390625,
-0.039520263671875,
0.01641845703125,
-0.00511932373046875,
-0.00563812255859375,
-0.035797119140625,
0.031402587890625,
0.02215576171875,
0.043487548828125,
0.031707763671875,
-0.0212249755859375,
0.016204833984375,
0.01006317138671875,
-0.025299072265625,
-0.06439208984375,
-0.035552978515625,
-0.001293182373046875,
-0.023834228515625,
0.0269775390625,
0.0833740234375,
0.035430908203125,
0.012359619140625,
-0.0132293701171875,
-0.002201080322265625,
-0.040985107421875,
-0.01523590087890625,
0.0272674560546875,
-0.00039076805114746094,
-0.04559326171875,
0.0069122314453125,
-0.0019216537475585938,
0.04296875,
-0.00524139404296875,
0.01416015625,
0.032867431640625,
-0.01202392578125,
-0.08514404296875,
0.10772705078125,
-0.0258941650390625,
0.004367828369140625,
0.0111541748046875,
0.067626953125,
-0.004642486572265625,
0.084228515625,
-0.035491943359375,
-0.0192718505859375,
-0.00704193115234375,
-0.01568603515625,
-0.0146484375,
0.035064697265625,
-0.0164947509765625,
-0.044158935546875,
0.026458740234375,
-0.03399658203125,
-0.0171356201171875,
0.02386474609375,
0.006381988525390625,
-0.035552978515625,
0.0128173828125,
0.042572021484375,
0.00736236572265625,
-0.00873565673828125,
0.02740478515625,
0.016082763671875,
-0.0008206367492675781,
-0.0014591217041015625,
0.0278472900390625,
-0.008514404296875,
-0.0341796875,
0.0142364501953125,
-0.0098419189453125,
-0.00550079345703125,
-0.0218505859375,
-0.01409149169921875,
0.01806640625,
0.043731689453125,
0.0189208984375,
-0.038299560546875,
-0.03118896484375,
-0.10693359375,
0.03851318359375,
-0.0001857280731201172,
0.0250091552734375,
-0.02569580078125,
0.01078033447265625,
-0.011962890625,
-0.0302886962890625,
0.007476806640625,
-0.0439453125,
-0.001068115234375,
-0.0289306640625,
-0.0120086669921875,
-0.06353759765625,
0.00525665283203125,
0.0084228515625,
-0.0158843994140625,
-0.01157379150390625,
0.003612518310546875,
-0.055267333984375,
0.0254974365234375,
-0.05230712890625,
-0.0287322998046875,
-0.03143310546875,
0.021331787109375,
-0.0031909942626953125,
0.0090789794921875,
0.0255584716796875,
-0.01134490966796875,
-0.0017404556274414062,
-0.0287017822265625,
0.0207366943359375,
0.038818359375,
0.0361328125,
-0.0312042236328125,
0.0012845993041992188,
0.027130126953125,
0.03387451171875,
-0.039703369140625,
0.01140594482421875,
-0.0009613037109375,
0.021575927734375,
-0.02716064453125,
-0.024444580078125,
-0.0345458984375,
-0.04766845703125,
0.0148773193359375,
0.050811767578125,
0.0118560791015625,
0.00951385498046875,
-0.0010862350463867188,
0.002895355224609375,
0.06390380859375,
0.049591064453125,
0.035003662109375,
-0.0034313201904296875,
0.006805419921875,
-0.0144195556640625,
-0.0019502639770507812,
-0.0240020751953125,
0.042327880859375,
-0.07171630859375,
0.0289459228515625,
0.03631591796875,
-0.0223236083984375,
-0.019256591796875,
-0.037872314453125,
0.0166778564453125,
0.017791748046875,
-0.0225830078125,
-0.0193634033203125,
-0.0060577392578125,
0.0711669921875,
0.0015306472778320312,
0.04681396484375,
0.00738525390625,
-0.07208251953125,
0.06500244140625,
0.0180816650390625,
-0.0312347412109375,
-0.0180206298828125,
0.0296783447265625,
-0.0151824951171875,
-0.008087158203125,
-0.0228729248046875,
0.028167724609375,
-0.0194091796875,
0.00042748451232910156,
-0.0202178955078125,
0.00968170166015625,
-0.04937744140625,
-0.01904296875,
0.005115509033203125,
-0.0259246826171875,
-0.01043701171875,
-0.004421234130859375,
-0.02020263671875,
-0.0634765625,
-0.01126861572265625,
0.0077362060546875,
-0.0208587646484375,
0.0175018310546875,
0.0282135009765625,
-0.048492431640625,
-0.0223541259765625,
-0.0609130859375,
0.044952392578125,
-0.056365966796875,
0.040252685546875,
0.06341552734375,
-0.0193634033203125,
0.03216552734375,
0.00905609130859375,
0.0204315185546875,
0.0068511962890625,
0.01171875,
0.0055389404296875,
0.0077056884765625,
-0.0130157470703125,
0.042999267578125,
0.0111541748046875,
0.07623291015625,
-0.076416015625,
-0.06988525390625,
-0.03515625,
0.01220703125,
-0.032562255859375,
0.007564544677734375,
0.0155181884765625,
-0.0262451171875,
-0.051605224609375,
0.00873565673828125,
-0.0225677490234375,
0.00656890869140625,
0.0257568359375,
-0.0243377685546875,
0.0123138427734375,
-0.0181121826171875,
-0.0191650390625,
-0.03399658203125,
-0.04937744140625,
-0.0372314453125,
-0.0011434555053710938,
-0.0024166107177734375,
-0.0014467239379882812,
0.055023193359375,
-0.01244354248046875,
-0.039764404296875,
-0.00492095947265625,
-0.048919677734375,
0.0013360977172851562,
-0.0079498291015625,
0.037689208984375,
-0.01029205322265625,
-0.01245880126953125,
0.026092529296875,
-0.0216064453125,
0.0173187255859375,
-0.031494140625,
-0.037200927734375,
-0.01381683349609375,
-0.0162506103515625,
0.005428314208984375,
0.0233306884765625,
0.0176544189453125,
-0.008026123046875,
0.03155517578125,
-0.03167724609375,
-0.0426025390625,
0.0268707275390625,
-0.028167724609375,
0.00885772705078125,
0.0088348388671875,
-0.0209197998046875,
-0.018035888671875,
0.033966064453125,
-0.01367950439453125,
-0.04595947265625,
0.0782470703125,
-0.063720703125,
0.009124755859375,
-0.0286712646484375,
-0.026763916015625,
-0.050689697265625,
0.02587890625,
-0.0159759521484375,
0.029266357421875,
0.00775909423828125,
0.03948974609375,
0.02288818359375,
-0.0232696533203125,
-0.01331329345703125,
-0.0079498291015625,
0.0210723876953125,
-0.02294921875,
0.024658203125,
-0.00783538818359375,
0.00542449951171875,
0.0099945068359375,
0.03985595703125,
-0.03778076171875,
-0.0196685791015625,
0.034423828125,
0.0245361328125,
-0.040191650390625,
0.0170440673828125,
-0.06524658203125,
-0.00911712646484375,
-0.059661865234375,
-0.01470947265625,
0.0211334228515625,
-0.055877685546875,
-0.0200958251953125,
0.0301361083984375,
-0.0499267578125,
-0.013336181640625,
0.0218353271484375,
0.016693115234375,
-0.00909423828125,
0.01264190673828125,
0.001270294189453125,
-0.0067901611328125,
0.016571044921875,
0.0041046142578125,
-0.123046875,
-0.022247314453125,
-0.035247802734375,
0.0985107421875,
-0.0014829635620117188,
0.049224853515625,
-0.033721923828125,
0.06256103515625,
-0.0364990234375,
-0.038330078125,
-0.015380859375,
0.05218505859375,
-0.01898193359375,
-0.005092620849609375,
-0.025482177734375,
-0.0303802490234375,
-0.0152130126953125,
-0.047393798828125,
-0.042236328125,
-0.023193359375,
0.00782012939453125,
0.035736083984375,
0.0175018310546875,
-0.006183624267578125,
-0.035980224609375,
-0.050506591796875,
-0.0267791748046875,
0.032196044921875,
-0.037078857421875,
0.025115966796875,
-0.07684326171875,
-0.042755126953125,
0.04058837890625,
0.006717681884765625,
-0.002414703369140625,
0.00608062744140625,
0.032470703125,
0.0197601318359375,
-0.01708984375,
-0.004283905029296875,
0.023193359375,
0.0303802490234375,
0.00580596923828125,
0.005100250244140625,
0.00411224365234375,
-0.0030727386474609375,
0.004428863525390625,
0.00905609130859375,
0.0377197265625,
-0.06988525390625,
0.05126953125,
-0.0161590576171875,
0.00481414794921875,
0.01430511474609375,
-0.022064208984375,
0.0304107666015625,
0.0176849365234375,
-0.00759124755859375,
0.0244903564453125,
-0.031524658203125,
-0.0128173828125,
0.0220184326171875,
-0.048736572265625,
-0.030181884765625,
-0.003147125244140625,
-0.0006113052368164062,
0.10601806640625,
-0.036773681640625,
0.0031261444091796875,
0.0028820037841796875,
-0.054534912109375,
-0.0246734619140625,
0.027496337890625,
-0.021148681640625,
-0.031402587890625,
-0.031402587890625,
0.041839599609375,
-0.006946563720703125,
0.0277557373046875,
-0.006420135498046875,
-0.00955963134765625,
0.035369873046875,
-0.018585205078125,
-0.043304443359375,
-0.0247802734375,
-0.00719451904296875,
0.0382080078125,
0.035614013671875,
-0.0265045166015625,
0.01434326171875,
0.0303955078125,
0.00836181640625,
0.0035247802734375,
-0.034027099609375,
0.0328369140625,
-0.0211181640625,
0.011627197265625,
0.0182952880859375,
-0.016632080078125,
0.027313232421875,
0.01708984375,
0.037200927734375,
0.004627227783203125,
-0.022796630859375,
0.0064544677734375,
-0.00258636474609375,
0.00582122802734375,
0.01317596435546875,
0.034881591796875,
-0.0007853507995605469,
-0.0006008148193359375,
0.016021728515625,
0.01788330078125,
0.03009033203125,
-0.010467529296875,
0.045257568359375,
-0.0023708343505859375,
-0.01910400390625,
0.007709503173828125,
-0.0894775390625,
0.03302001953125,
0.0218048095703125,
-0.06951904296875,
-0.06939697265625,
-0.01277923583984375,
0.035369873046875,
0.041473388671875,
-0.06951904296875,
-0.04046630859375,
-0.0283355712890625,
-0.06732177734375,
-0.0196075439453125,
0.0196990966796875,
-0.050262451171875,
0.02685546875,
0.0184478759765625,
0.01311492919921875,
-0.0157470703125,
-0.046722412109375,
-0.0206451416015625,
-0.004291534423828125,
-0.018341064453125,
0.00482940673828125,
0.070068359375,
-0.03338623046875,
-0.01560211181640625,
-0.0113677978515625,
0.03082275390625,
-0.019073486328125,
0.029144287109375,
0.0248870849609375,
-0.0127410888671875,
0.0113525390625,
-0.0274810791015625,
-0.07220458984375,
-0.043304443359375,
-0.06634521484375,
-0.032135009765625,
-0.0203094482421875,
0.042572021484375,
0.051239013671875,
0.049468994140625,
-0.0078125,
-0.057220458984375,
0.039825439453125,
0.002307891845703125,
0.003391265869140625,
0.07916259765625,
-0.0239105224609375,
-0.015533447265625,
0.0175018310546875,
0.028839111328125,
-0.008270263671875,
-0.037506103515625,
-0.0009212493896484375,
-0.01568603515625,
-0.016937255859375,
-0.03765869140625,
-0.0169219970703125,
0.0221710205078125,
-0.0404052734375,
0.037506103515625,
0.044647216796875,
0.01361083984375,
0.0018739700317382812,
-0.037384033203125,
-0.00934600830078125,
-0.040679931640625,
0.045562744140625,
-0.054779052734375,
0.0260772705078125,
-0.055633544921875,
0.0189666748046875,
0.0311737060546875,
-0.0265045166015625,
-0.04315185546875,
0.024017333984375,
0.01496124267578125,
0.0099029541015625,
0.0008902549743652344,
0.00982666015625,
0.0021610260009765625,
0.03106689453125,
-0.03729248046875,
0.0023899078369140625,
0.03369140625,
-0.02435302734375,
0.0115966796875,
-0.003650665283203125,
-0.0257720947265625,
0.0213165283203125,
0.048797607421875,
0.0155487060546875,
-0.01056671142578125,
0.044281005859375,
-0.01300048828125,
0.018035888671875,
0.0163421630859375,
0.0626220703125,
-0.032684326171875,
0.0294952392578125,
0.01629638671875,
0.00101470947265625,
0.048797607421875,
0.0201568603515625,
0.02838134765625,
0.048736572265625,
-0.048095703125,
-0.023345947265625,
-0.01401519775390625,
-0.01959228515625,
0.0036869049072265625,
-0.0166015625,
-0.0160675048828125,
0.05615234375,
0.0239410400390625,
0.00543212890625,
-0.01239776611328125,
-0.0031757354736328125,
-0.016693115234375,
-0.017669677734375,
0.04327392578125,
-0.0797119140625,
0.01531219482421875,
-0.017852783203125,
-0.0235748291015625,
-0.015655517578125,
0.006900787353515625,
-0.016204833984375,
-0.00930023193359375,
0.03253173828125,
0.02191162109375,
0.006587982177734375,
-0.01348876953125,
-0.005466461181640625,
-0.01837158203125,
-0.01479339599609375,
-0.0192108154296875,
0.016448974609375,
0.01447296142578125,
-0.0189971923828125,
0.0139617919921875,
-0.017974853515625,
-0.0209197998046875,
0.0160675048828125,
0.029693603515625,
0.020355224609375,
-0.00980377197265625,
-0.0236968994140625,
0.0478515625,
-0.005138397216796875,
-0.02825927734375,
0.006412506103515625,
-0.0031108856201171875,
-0.0236358642578125,
-0.00016951560974121094,
-0.026611328125,
-0.022705078125,
0.0300445556640625,
-0.00841522216796875,
-0.0087432861328125,
0.05218505859375,
0.015625,
-0.0305328369140625,
0.0028476715087890625,
0.0276641845703125,
-0.006977081298828125,
0.036407470703125,
0.0185546875,
0.0213775634765625,
-0.019927978515625,
-0.006061553955078125,
0.004390716552734375,
0.0106964111328125,
0.00708770751953125,
0.023773193359375,
0.031463623046875,
0.01453399658203125,
-0.007472991943359375,
-0.033447265625,
-0.003849029541015625,
0.048095703125,
0.00034999847412109375,
0.01453399658203125,
0.01476287841796875,
-0.01207733154296875,
-0.0023937225341796875,
0.01192474365234375,
0.0198822021484375,
-0.03448486328125,
-0.0204010009765625,
0.045135498046875,
0.0270233154296875,
0.047576904296875,
-0.0155792236328125,
-0.00007832050323486328,
-0.043609619140625,
-0.004505157470703125,
0.049957275390625,
-0.038330078125,
0.01317596435546875,
0.0494384765625,
0.0217742919921875,
0.0035228729248046875,
-0.030517578125,
-0.005191802978515625,
0.035003662109375,
-0.0124359130859375,
-0.007965087890625,
0.047210693359375,
0.0221405029296875,
-0.045013427734375,
0.0006098747253417969,
-0.005558013916015625,
0.01107025146484375,
-0.01467132568359375,
-0.040771484375,
-0.0188446044921875,
0.033721923828125,
-0.0413818359375,
-0.0048828125,
0.009857177734375,
-0.00698089599609375,
-0.0006890296936035156,
0.030609130859375,
0.005863189697265625,
-0.010101318359375,
0.01541900634765625,
-0.06298828125,
0.039276123046875,
-0.07611083984375,
-0.101806640625,
-0.046234130859375,
-0.0214691162109375,
0.033172607421875,
0.00598907470703125,
-0.00872039794921875,
-0.0341796875,
0.0228729248046875,
-0.0465087890625,
-0.006153106689453125,
0.0032444000244140625,
0.018585205078125,
-0.008270263671875,
-0.01142120361328125,
0.035125732421875,
0.041351318359375,
0.0143280029296875,
-0.032257080078125,
0.05224609375,
0.0076904296875,
0.0231475830078125,
-0.01885986328125,
-0.009979248046875,
-0.016998291015625,
0.021728515625,
0.003910064697265625,
0.005847930908203125,
0.042388916015625,
0.03912353515625,
-0.06219482421875,
-0.01139068603515625,
0.040557861328125,
-0.029266357421875,
0.03887939453125,
-0.030303955078125,
0.06219482421875,
0.054534912109375,
-0.002105712890625,
-0.02130126953125,
0.001094818115234375,
0.10296630859375,
-0.003879547119140625,
0.032806396484375,
0.0019426345825195312,
0.004268646240234375,
-0.00754547119140625,
0.00479888916015625,
0.0034027099609375,
0.021697998046875,
-0.004322052001953125,
-0.00762939453125,
-0.007022857666015625,
-0.02996826171875,
0.01910400390625,
0.03717041015625,
-0.01023101806640625,
0.0078277587890625,
-0.03582763671875,
0.010009765625,
-0.011505126953125,
-0.023834228515625,
0.0092010498046875,
-0.005779266357421875,
0.0104217529296875,
0.00006031990051269531,
0.0225372314453125,
0.00634002685546875,
0.0248260498046875,
0.03631591796875,
0.005859375,
0.027740478515625,
-0.0256805419921875,
0.01959228515625,
0.00943756103515625,
0.01300048828125,
-0.01548004150390625,
0.0236663818359375,
-0.031707763671875,
-0.004108428955078125,
0.0180206298828125,
-0.00897979736328125,
-0.00270843505859375,
-0.0007534027099609375,
0.0440673828125,
-0.03973388671875,
-0.00827789306640625,
-0.00550079345703125,
0.019195556640625,
-0.017913818359375,
0.021392822265625,
-0.0247039794921875,
-0.0648193359375,
-0.06103515625,
0.0166168212890625,
0.00682830810546875,
0.006687164306640625,
-0.016815185546875,
0.028778076171875,
-0.005290985107421875,
0.0125274658203125,
0.017242431640625,
-0.0285491943359375,
0.036468505859375,
0.026763916015625,
-0.056121826171875,
-0.05120849609375,
-0.009307861328125,
-0.01427459716796875,
-0.0018291473388671875,
0.005580902099609375,
0.052520751953125,
-0.01151275634765625,
0.030609130859375,
0.0229034423828125,
0.025726318359375,
0.049102783203125,
-0.035858154296875,
0.0183868408203125,
-0.0037937164306640625,
0.0173797607421875,
0.05194091796875,
-0.0009222030639648438,
-0.0149383544921875,
-0.023956298828125,
-0.03387451171875,
-0.01360321044921875,
-0.0072479248046875,
-0.052337646484375,
-0.003520965576171875,
-0.00208282470703125,
0.03045654296875,
0.01107025146484375,
-0.03631591796875,
0.01047515869140625,
-0.0014438629150390625,
0.033538818359375,
0.008880615234375,
-0.058624267578125,
0.0005636215209960938,
0.027191162109375,
-0.02496337890625,
-0.0274658203125,
-0.050445556640625,
-0.0212554931640625,
-0.057037353515625,
0.034759521484375,
0.037689208984375,
-0.033966064453125,
0.00942230224609375,
0.03875732421875,
0.037200927734375,
0.088623046875,
-0.0134735107421875,
-0.0196380615234375,
-0.007175445556640625,
0.0010862350463867188,
-0.01091766357421875,
-0.0015659332275390625,
0.0275115966796875,
-0.056854248046875,
-0.0433349609375,
-0.07830810546875,
0.041046142578125,
0.0364990234375,
-0.030364990234375,
-0.07403564453125,
0.0024623870849609375,
-0.0287628173828125,
-0.0294342041015625,
0.004047393798828125,
0.042816162109375,
-0.0330810546875,
0.0010471343994140625,
0.01020050048828125,
0.00945281982421875,
0.059478759765625,
0.0123748779296875,
0.0094757080078125,
0.00630950927734375,
0.0650634765625,
-0.0272369384765625,
0.01007843017578125,
-0.00392913818359375,
0.0094451904296875,
0.0026378631591796875,
0.040802001953125,
0.005157470703125,
-0.006084442138671875,
0.0231475830078125,
-0.0557861328125,
-0.055267333984375,
-0.060638427734375,
-0.024658203125,
-0.0084686279296875,
-0.021331787109375,
-0.00342559814453125,
0.0032958984375,
0.02490234375,
0.046356201171875,
0.006855010986328125,
-0.0430908203125,
0.048919677734375,
0.00418853759765625,
-0.00960540771484375,
-0.018280029296875,
0.002246856689453125,
-0.050018310546875,
-0.043243408203125,
0.0016489028930664062,
-0.0166473388671875,
-0.0128173828125,
0.0182647705078125,
-0.04217529296875,
-0.0005869865417480469,
-0.00177001953125,
-0.016021728515625,
-0.0675048828125,
0.035491943359375,
-0.043121337890625,
0.0152587890625,
0.032562255859375,
-0.03955078125,
-0.0037059783935546875,
-0.01806640625,
0.0157470703125,
0.0179901123046875,
0.0013914108276367188,
-0.034881591796875,
-0.01392364501953125,
0.0035076141357421875,
-0.016754150390625,
-0.0025081634521484375,
-0.02001953125,
0.01155853271484375,
0.03936767578125,
-0.00395965576171875,
0.05584716796875,
-0.029327392578125,
0.0423583984375,
0.005039215087890625,
0.006259918212890625,
-0.00830078125,
-0.0462646484375,
-0.0162200927734375,
0.0220794677734375,
-0.058746337890625,
-0.00612640380859375,
-0.0169677734375,
-0.0640869140625,
0.0031375885009765625,
0.05303955078125,
-0.0148773193359375,
-0.00867462158203125,
-0.00501251220703125,
0.0149993896484375,
0.0254669189453125,
-0.01128387451171875
] |
94e12c6acfb044473c738128290c2186dca38a1d | Wordpress Stackexchange
Q: How to edit the properties of a page programmatically? I know that I can programmatically create a new page via wp_insert_post setting 'post-type' to 'page.'
How do I go about editing that page programmatically? (title, content, slug, etc.)
Also, if I wanted to set the template for that page programmatically, how would I do that?
A: If you look at the documentation, you can insert title, content, slug, etc. using wp_insert_post then use update_post_meta to assign the template to that post.
You can write like this
$post_arr = array(
'post_title'=>'My title goes here',
'post_content'=>'This is my long content.',
'post_excerpt' => 'My Excerpt',
'post_status' => 'publish',
);
$new_post_id = wp_insert_post($post_arr);
Then set template like this.
update_post_meta( $new_post_id, '_wp_page_template', 'template-file.php' );
To see more options for wp_insert_post, you can check it's documentation page.
| Q: How to edit the properties of a page programmatically? I know that I can programmatically create a new page via wp_insert_post setting 'post-type' to 'page.'
How do I go about editing that page programmatically? (title, content, slug, etc.)
Also, if I wanted to set the template for that page programmatically, how would I do that?
A: If you look at the documentation, you can insert title, content, slug, etc. using wp_insert_post then use update_post_meta to assign the template to that post.
You can write like this
$post_arr = array(
'post_title'=>'My title goes here',
'post_content'=>'This is my long content.',
'post_excerpt' => 'My Excerpt',
'post_status' => 'publish',
);
$new_post_id = wp_insert_post($post_arr);
Then set template like this.
update_post_meta( $new_post_id, '_wp_page_template', 'template-file.php' );
To see more options for wp_insert_post, you can check it's documentation page.
| wordpress | {
"language": "en",
"length": 132,
"provenance": "stackexchange_00019.jsonl.gz:493621",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/331455"
} | [
0.02032470703125,
-0.0203704833984375,
0.014617919921875,
-0.0020503997802734375,
-0.026092529296875,
-0.020904541015625,
0.0305633544921875,
-0.0240020751953125,
-0.0162506103515625,
-0.0159759521484375,
-0.01161956787109375,
-0.004150390625,
-0.00653839111328125,
-0.040557861328125,
0.048248291015625,
-0.03369140625,
0.0220184326171875,
-0.0263519287109375,
0.00830078125,
-0.01165008544921875,
0.016204833984375,
-0.01386260986328125,
0.020782470703125,
0.0288238525390625,
-0.00206756591796875,
-0.022003173828125,
0.04559326171875,
-0.013458251953125,
0.01111602783203125,
-0.011322021484375,
0.0147552490234375,
0.01459503173828125,
0.03472900390625,
-0.0133056640625,
-0.02001953125,
0.028045654296875,
0.00998687744140625,
-0.007404327392578125,
-0.003063201904296875,
0.0102691650390625,
0.013458251953125,
0.0154571533203125,
-0.0021457672119140625,
0.0458984375,
-0.006603240966796875,
-0.044525146484375,
-0.0007185935974121094,
-0.05413818359375,
0.0144500732421875,
-0.0152587890625,
-0.00931549072265625,
0.009857177734375,
0.003559112548828125,
0.0010595321655273438,
-0.0004589557647705078,
0.0036258697509765625,
0.0083465576171875,
-0.0150146484375,
0.0364990234375,
-0.0277557373046875,
-0.031341552734375,
-0.0169219970703125,
0.0228424072265625,
-0.015655517578125,
0.0328369140625,
-0.006610870361328125,
0.019439697265625,
0.036834716796875,
-0.039306640625,
0.0194091796875,
0.019317626953125,
-0.03424072265625,
-0.0003407001495361328,
-0.03326416015625,
0.021209716796875,
0.029815673828125,
-0.0090484619140625,
-0.01007080078125,
0.007686614990234375,
0.022674560546875,
0.09722900390625,
0.0170135498046875,
0.025848388671875,
-0.0477294921875,
0.06695556640625,
-0.0033416748046875,
0.0150146484375,
-0.033203125,
-0.0278167724609375,
-0.0012369155883789062,
-0.027740478515625,
0.0160980224609375,
-0.006008148193359375,
-0.020904541015625,
-0.01183319091796875,
-0.01528167724609375,
-0.01105499267578125,
0.05322265625,
0.00186920166015625,
0.0677490234375,
0.00510406494140625,
-0.04815673828125,
0.1214599609375,
-0.06768798828125,
-0.00695037841796875,
0.028961181640625,
-0.007640838623046875,
-0.038330078125,
-0.00403594970703125,
0.026611328125,
0.0018224716186523438,
-0.015533447265625,
-0.009033203125,
-0.0005497932434082031,
-0.051055908203125,
0.040740966796875,
-0.002765655517578125,
-0.04351806640625,
-0.0220947265625,
0.0033626556396484375,
-0.018646240234375,
-0.0017833709716796875,
0.034698486328125,
0.015472412109375,
-0.0019502639770507812,
0.01068878173828125,
-0.01136016845703125,
-0.035308837890625,
-0.0075836181640625,
-0.0188446044921875,
-0.04254150390625,
0.0240936279296875,
0.09637451171875,
0.044830322265625,
0.0164337158203125,
-0.00859832763671875,
-0.0017366409301757812,
-0.05328369140625,
-0.01971435546875,
0.020660400390625,
0.0032958984375,
-0.01427459716796875,
0.027252197265625,
-0.0177459716796875,
-0.01070404052734375,
0.0185089111328125,
0.005889892578125,
0.028289794921875,
0.0200347900390625,
-0.0227203369140625,
0.0104217529296875,
-0.02655029296875,
-0.019775390625,
0.0247650146484375,
0.0273284912109375,
-0.025115966796875,
0.0088043212890625,
-0.01413726806640625,
0.05767822265625,
-0.01861572265625,
0.01512908935546875,
0.01236724853515625,
0.054229736328125,
0.009918212890625,
0.005374908447265625,
-0.0119171142578125,
-0.04541015625,
-0.007183074951171875,
0.01494598388671875,
0.036834716796875,
0.0036468505859375,
-0.0253753662109375,
-0.0137939453125,
-0.01416015625,
-0.0216827392578125,
-0.006557464599609375,
-0.026702880859375,
0.00998687744140625,
0.0126495361328125,
0.04443359375,
0.004100799560546875,
-0.016754150390625,
0.024871826171875,
0.01197052001953125,
-0.061767578125,
0.0341796875,
0.007526397705078125,
0.060821533203125,
0.0078277587890625,
0.01488494873046875,
0.041015625,
0.0076751708984375,
-0.0275115966796875,
0.01080322265625,
0.028961181640625,
-0.0052032470703125,
-0.038848876953125,
0.0080718994140625,
-0.005001068115234375,
-0.03472900390625,
-0.04840087890625,
0.021820068359375,
-0.004299163818359375,
0.045806884765625,
0.00820159912109375,
0.01087188720703125,
-0.014678955078125,
0.0308380126953125,
-0.01337432861328125,
0.005977630615234375,
0.0088043212890625,
-0.035430908203125,
0.0220947265625,
-0.0595703125,
-0.04833984375,
-0.0193939208984375,
0.006610870361328125,
-0.0175323486328125,
-0.004383087158203125,
0.004375457763671875,
-0.00711822509765625,
0.006130218505859375,
-0.0247802734375,
0.0259246826171875,
0.05743408203125,
-0.033782958984375,
-0.00540924072265625,
-0.038330078125,
0.019500732421875,
0.01003265380859375,
-0.045928955078125,
0.0252227783203125,
0.0034923553466796875,
0.009552001953125,
-0.027069091796875,
-0.0108184814453125,
-0.032135009765625,
-0.066650390625,
0.0036144256591796875,
0.054351806640625,
0.038818359375,
0.021575927734375,
-0.004180908203125,
-0.001834869384765625,
0.07391357421875,
-0.01433563232421875,
0.014434814453125,
-0.0009326934814453125,
0.03826904296875,
0.0987548828125,
-0.033477783203125,
0.014556884765625,
-0.0033664703369140625,
-0.0670166015625,
0.0199127197265625,
0.0394287109375,
-0.016632080078125,
0.0263519287109375,
-0.00574493408203125,
-0.005008697509765625,
-0.01214599609375,
-0.0161285400390625,
0.01873779296875,
-0.0281829833984375,
0.06939697265625,
0.0267181396484375,
0.06402587890625,
0.039825439453125,
-0.0237579345703125,
0.0180206298828125,
0.00444793701171875,
-0.022064208984375,
0.017791748046875,
-0.00289154052734375,
-0.057952880859375,
0.009002685546875,
-0.0418701171875,
0.0260162353515625,
0.0140533447265625,
-0.0100250244140625,
-0.017333984375,
0.0250091552734375,
-0.00841522216796875,
-0.01378631591796875,
-0.016326904296875,
-0.061126708984375,
-0.00601959228515625,
-0.00774383544921875,
0.040130615234375,
0.00351715087890625,
0.03515625,
-0.0038661956787109375,
-0.03790283203125,
0.053497314453125,
-0.00824737548828125,
-0.04608154296875,
0.0684814453125,
-0.0460205078125,
0.042633056640625,
-0.0275726318359375,
0.034210205078125,
0.050933837890625,
-0.04022216796875,
0.037261962890625,
0.004924774169921875,
0.006992340087890625,
0.002384185791015625,
0.0139617919921875,
0.00025773048400878906,
-0.013275146484375,
-0.01502227783203125,
0.035064697265625,
0.0227813720703125,
0.02386474609375,
0.009002685546875,
-0.036651611328125,
0.009246826171875,
0.0244903564453125,
-0.0648193359375,
-0.08148193359375,
-0.01427459716796875,
-0.03961181640625,
-0.015899658203125,
-0.0035305023193359375,
-0.02972412109375,
0.004444122314453125,
0.02001953125,
0.0060272216796875,
0.014678955078125,
-0.049072265625,
-0.027801513671875,
-0.035247802734375,
-0.0308685302734375,
-0.00911712646484375,
0.01007843017578125,
-0.0197296142578125,
-0.0013217926025390625,
0.060943603515625,
-0.0014181137084960938,
-0.032440185546875,
-0.0147857666015625,
0.019775390625,
-0.024658203125,
-0.0110321044921875,
0.0229949951171875,
-0.0295867919921875,
0.056304931640625,
-0.003208160400390625,
0.001953125,
0.05230712890625,
-0.0220184326171875,
-0.01424407958984375,
-0.03448486328125,
-0.007965087890625,
-0.019683837890625,
-0.002231597900390625,
0.050811767578125,
-0.00455474853515625,
-0.02618408203125,
-0.0400390625,
-0.0667724609375,
-0.001888275146484375,
-0.076904296875,
0.0089263916015625,
0.033721923828125,
0.0174560546875,
0.000637054443359375,
0.0154266357421875,
-0.00010317564010620117,
0.0011272430419921875,
0.03778076171875,
-0.0091400146484375,
0.0178985595703125,
-0.0269775390625,
-0.045013427734375,
-0.038360595703125,
0.032623291015625,
0.00516510009765625,
0.00878143310546875,
0.0266265869140625,
0.04644775390625,
0.0226287841796875,
0.0017642974853515625,
-0.02618408203125,
-0.0517578125,
0.01751708984375,
-0.056732177734375,
0.03668212890625,
-0.03521728515625,
-0.0155029296875,
0.01441192626953125,
0.08917236328125,
-0.0205535888671875,
-0.01531219482421875,
0.0177001953125,
0.016876220703125,
-0.05181884765625,
-0.039306640625,
-0.04742431640625,
-0.0006546974182128906,
-0.004711151123046875,
0.023406982421875,
0.00652313232421875,
-0.021820068359375,
-0.0267486572265625,
0.034149169921875,
-0.020355224609375,
0.002895355224609375,
0.044097900390625,
0.0205230712890625,
-0.0006732940673828125,
0.02490234375,
-0.01318359375,
0.007709503173828125,
-0.03363037109375,
0.01244354248046875,
-0.11993408203125,
-0.01178741455078125,
-0.00077056884765625,
0.07147216796875,
-0.004817962646484375,
-0.0133056640625,
-0.05682373046875,
0.016998291015625,
-0.0184173583984375,
0.019439697265625,
0.01386260986328125,
0.0269317626953125,
0.00569915771484375,
-0.002964019775390625,
0.01267242431640625,
-0.0240631103515625,
0.00574493408203125,
-0.022613525390625,
-0.01493072509765625,
0.0190887451171875,
-0.0284576416015625,
0.024017333984375,
-0.01165771484375,
-0.00891876220703125,
-0.028411865234375,
-0.0272064208984375,
0.01122283935546875,
0.038909912109375,
0.0167694091796875,
0.00027871131896972656,
-0.045013427734375,
-0.0455322265625,
0.0672607421875,
-0.03533935546875,
-0.0118560791015625,
-0.0094451904296875,
0.1146240234375,
0.024444580078125,
-0.009735107421875,
-0.037994384765625,
0.019866943359375,
0.011688232421875,
0.048065185546875,
0.040557861328125,
-0.0123748779296875,
-0.0036487579345703125,
0.057342529296875,
0.00916290283203125,
-0.031585693359375,
0.000002205371856689453,
0.042449951171875,
0.0050048828125,
-0.030059814453125,
0.01346588134765625,
-0.01073455810546875,
0.00429534912109375,
-0.004520416259765625,
-0.0433349609375,
0.01280975341796875,
-0.00959014892578125,
0.04364013671875,
-0.0170440673828125,
0.026336669921875,
-0.046875,
-0.0232086181640625,
0.01059722900390625,
0.042022705078125,
-0.0270233154296875,
0.000148773193359375,
0.005840301513671875,
-0.0413818359375,
-0.06695556640625,
-0.0005445480346679688,
0.0262451171875,
-0.0189971923828125,
0.039703369140625,
0.014923095703125,
0.018524169921875,
0.0175628662109375,
0.004718780517578125,
-0.0009918212890625,
0.01195526123046875,
-0.001880645751953125,
-0.0284881591796875,
-0.047027587890625,
0.006420135498046875,
0.05157470703125,
0.01528167724609375,
0.016082763671875,
0.0413818359375,
0.0242767333984375,
0.0261993408203125,
-0.019378662109375,
-0.0006661415100097656,
0.0279693603515625,
-0.0343017578125,
-0.01349639892578125,
0.031768798828125,
-0.0269927978515625,
0.005916595458984375,
0.0389404296875,
0.0294952392578125,
0.00220489501953125,
-0.0303955078125,
0.05718994140625,
0.06817626953125,
0.0013399124145507812,
0.003021240234375,
0.005672454833984375,
0.006023406982421875,
-0.03466796875,
-0.0116119384765625,
-0.016204833984375,
0.0114593505859375,
0.04681396484375,
0.0278167724609375,
-0.03082275390625,
-0.03436279296875,
0.0083160400390625,
-0.020904541015625,
0.011474609375,
-0.007144927978515625,
-0.0304718017578125,
-0.0261077880859375,
0.0005517005920410156,
0.028106689453125,
0.0227203369140625,
-0.0236663818359375,
0.026763916015625,
-0.0289764404296875,
-0.0079193115234375,
0.0009140968322753906,
-0.0164031982421875,
0.009613037109375,
-0.038421630859375,
-0.0445556640625,
-0.023529052734375,
-0.0178985595703125,
0.005191802978515625,
-0.043426513671875,
0.00746917724609375,
-0.0308990478515625,
-0.02606201171875,
0.048492431640625,
-0.0186614990234375,
0.02337646484375,
-0.03912353515625,
0.0140228271484375,
-0.01068115234375,
0.003963470458984375,
0.037506103515625,
0.007602691650390625,
0.021575927734375,
-0.0253753662109375,
-0.035003662109375,
-0.03839111328125,
-0.047027587890625,
-0.017059326171875,
-0.039337158203125,
0.0196075439453125,
0.00826263427734375,
0.0263519287109375,
-0.031829833984375,
-0.048004150390625,
0.0111236572265625,
0.005401611328125,
0.00896453857421875,
0.04095458984375,
0.0052947998046875,
0.07763671875,
-0.0308837890625,
0.058929443359375,
0.0137176513671875,
0.0311737060546875,
-0.032501220703125,
-0.0210418701171875,
0.0030536651611328125,
-0.017242431640625,
-0.0189056396484375,
-0.0024394989013671875,
-0.02447509765625,
0.03204345703125,
0.06573486328125,
-0.004261016845703125,
0.0182647705078125,
-0.0458984375,
0.0035247802734375,
-0.04034423828125,
0.03741455078125,
-0.08160400390625,
-0.0279388427734375,
0.006336212158203125,
-0.018646240234375,
-0.004863739013671875,
0.0252838134765625,
0.00321197509765625,
0.0174560546875,
-0.00839996337890625,
0.016021728515625,
-0.01134490966796875,
-0.0304412841796875,
0.02716064453125,
0.021575927734375,
-0.0161285400390625,
0.0362548828125,
-0.0181121826171875,
0.007083892822265625,
0.04779052734375,
-0.0021209716796875,
-0.007068634033203125,
0.0126800537109375,
0.0657958984375,
0.00435638427734375,
-0.0233306884765625,
0.04278564453125,
-0.0428466796875,
0.043212890625,
0.08062744140625,
0.0733642578125,
-0.09674072265625,
0.01287078857421875,
0.006870269775390625,
-0.04534912109375,
0.0311126708984375,
0.00846099853515625,
0.00043272972106933594,
0.0016765594482421875,
0.0247802734375,
-0.005290985107421875,
0.00531005859375,
0.0273284912109375,
0.000728607177734375,
-0.0115203857421875,
-0.0107574462890625,
0.050750732421875,
0.021636962890625,
-0.00780487060546875,
0.0287933349609375,
0.01016998291015625,
0.0494384765625,
-0.027130126953125,
0.0031795501708984375,
0.0034656524658203125,
-0.0175628662109375,
-0.024200439453125,
0.03814697265625,
-0.01416015625,
-0.00231170654296875,
0.048309326171875,
0.0506591796875,
0.0157012939453125,
0.04315185546875,
0.0196533203125,
0.015106201171875,
0.00679779052734375,
-0.0017023086547851562,
-0.04254150390625,
-0.01238250732421875,
0.0110321044921875,
0.007564544677734375,
-0.0291290283203125,
0.018585205078125,
-0.047393798828125,
0.0013418197631835938,
-0.00980377197265625,
-0.00814056396484375,
0.0814208984375,
-0.005859375,
-0.03759765625,
0.01043701171875,
0.0008463859558105469,
-0.0075225830078125,
-0.0158233642578125,
0.0160980224609375,
-0.04815673828125,
-0.0267181396484375,
0.0006589889526367188,
-0.03887939453125,
-0.0264129638671875,
-0.023590087890625,
-0.08642578125,
0.12200927734375,
0.0477294921875,
0.0289154052734375,
-0.0038318634033203125,
0.053924560546875,
-0.059906005859375,
0.005619049072265625,
-0.028839111328125,
0.0584716796875,
0.032135009765625,
0.04095458984375,
-0.0157318115234375,
-0.01329803466796875,
0.0301361083984375,
0.041351318359375,
0.064453125,
0.0062103271484375,
-0.0201416015625,
-0.0207061767578125,
0.046234130859375,
0.01261138916015625,
-0.015625,
0.03594970703125,
-0.0241241455078125,
0.0295257568359375,
-0.01256561279296875,
-0.074462890625,
-0.0023212432861328125,
-0.032928466796875,
-0.0305023193359375,
-0.001865386962890625,
0.009918212890625,
0.018157958984375,
0.0257110595703125,
-0.037200927734375,
-0.044586181640625,
0.01422119140625,
0.0389404296875,
-0.01220703125,
-0.0022735595703125,
0.02276611328125,
0.01506805419921875,
-0.022430419921875,
-0.0226593017578125,
-0.0231781005859375,
0.038665771484375,
0.0186614990234375,
0.016326904296875,
-0.037078857421875,
-0.0005993843078613281,
0.030487060546875,
0.0012254714965820312,
-0.007305145263671875,
0.049072265625,
-0.011016845703125,
0.0810546875,
0.0093994140625,
0.00713348388671875,
-0.050384521484375,
0.04351806640625,
0.0238800048828125,
0.06988525390625,
-0.07080078125,
0.0015764236450195312,
0.0174560546875,
0.021209716796875,
-0.0276336669921875,
-0.0271148681640625,
0.00897979736328125,
-0.00914764404296875,
0.01447296142578125,
-0.024871826171875,
-0.0275421142578125,
0.006824493408203125,
-0.009429931640625,
-0.0037555694580078125,
0.0156402587890625,
0.0254364013671875,
-0.0226593017578125,
-0.0396728515625,
0.00894927978515625,
0.00476837158203125,
0.0462646484375,
0.01715087890625,
0.06719970703125,
-0.008514404296875,
-0.032318115234375,
-0.021026611328125,
-0.007511138916015625,
0.023223876953125,
0.020233154296875,
-0.0168914794921875,
0.003986358642578125,
0.01224517822265625,
0.0191497802734375,
-0.0021114349365234375,
0.03570556640625,
0.0260467529296875,
-0.003986358642578125,
-0.0257720947265625,
-0.014892578125,
-0.020294189453125,
-0.042572021484375,
0.0193328857421875,
-0.03656005859375,
0.0216217041015625,
-0.0202789306640625,
-0.0167083740234375,
-0.0271759033203125,
0.053680419921875,
-0.01287841796875,
-0.0133819580078125,
0.015655517578125,
-0.0022182464599609375,
-0.01021575927734375,
0.0718994140625,
0.01120758056640625,
0.040252685546875,
0.0125885009765625,
-0.091552734375,
-0.00439453125,
-0.028533935546875,
-0.07330322265625,
0.049163818359375,
0.043182373046875,
-0.0396728515625,
0.0162506103515625,
-0.02374267578125,
0.0207366943359375,
0.0187225341796875,
-0.02520751953125,
-0.002574920654296875,
0.0183258056640625,
0.025146484375,
0.00496673583984375,
-0.07220458984375,
-0.0193328857421875,
-0.054290771484375,
0.035888671875,
0.00231170654296875,
0.09136962890625,
-0.02435302734375,
0.0244140625,
-0.03289794921875,
0.027618408203125,
-0.0300445556640625,
-0.034942626953125,
0.044219970703125,
0.03570556640625,
0.01678466796875,
-0.0218505859375,
-0.0193634033203125,
0.00839996337890625,
0.026123046875,
-0.01364898681640625,
0.0123748779296875,
-0.036376953125,
0.0200653076171875,
-0.0169830322265625,
0.01280975341796875,
-0.03070068359375,
0.01446533203125,
-0.035552978515625,
-0.035858154296875,
0.034271240234375,
-0.0106048583984375,
0.0078887939453125,
0.0562744140625,
-0.007007598876953125,
-0.01971435546875,
0.02618408203125,
-0.053466796875,
0.05084228515625,
0.042510986328125,
-0.01904296875,
-0.0261688232421875,
0.0260467529296875,
-0.00946044921875,
0.003833770751953125,
0.004901885986328125,
0.037567138671875,
0.0177764892578125,
-0.045166015625,
0.00011587142944335938,
-0.0275726318359375,
0.016082763671875,
-0.0311431884765625,
0.0033550262451171875,
-0.01861572265625,
0.0112762451171875,
0.033660888671875,
-0.00928497314453125,
-0.0218963623046875,
-0.0279998779296875,
0.00783538818359375,
0.0160980224609375,
0.0026378631591796875,
-0.0263214111328125,
-0.03662109375,
-0.02911376953125,
0.00031304359436035156,
-0.00592041015625,
-0.030029296875,
0.000004172325134277344,
-0.01123809814453125,
0.0155029296875,
-0.036163330078125,
0.00714111328125,
0.00311279296875,
0.01485443115234375,
-0.0616455078125,
0.0078277587890625,
-0.0256195068359375,
-0.0254364013671875,
-0.00536346435546875,
0.0239410400390625,
0.07574462890625,
-0.0261993408203125,
-0.02130126953125,
-0.00968170166015625,
0.0195159912109375,
0.050628662109375,
-0.032928466796875,
0.005115509033203125,
0.0496826171875,
-0.00832366943359375,
-0.030120849609375,
-0.07855224609375,
-0.0009665489196777344,
-0.06707763671875,
0.0223388671875,
0.042694091796875,
-0.0015869140625,
0.038665771484375,
-0.00843048095703125,
-0.050140380859375,
-0.022430419921875,
0.01540374755859375,
-0.04766845703125,
-0.0142974853515625,
0.0240936279296875,
-0.0164031982421875,
0.0045318603515625,
-0.0108489990234375,
-0.0186767578125,
0.0205078125,
0.018218994140625,
0.00327301025390625,
0.0653076171875,
0.0269622802734375,
-0.01068878173828125,
-0.02484130859375,
-0.009765625,
-0.028656005859375,
0.018035888671875,
0.0246429443359375,
-0.031097412109375,
0.037506103515625,
0.007152557373046875,
-0.05169677734375,
-0.0312042236328125,
0.0005717277526855469,
-0.002964019775390625,
-0.0245361328125,
-0.0079803466796875,
-0.0220184326171875,
0.014434814453125,
0.12109375,
0.044097900390625,
0.0273284912109375,
-0.050537109375,
-0.00391387939453125,
-0.021270751953125,
-0.04510498046875,
0.0008015632629394531,
0.031036376953125,
-0.049346923828125,
0.004093170166015625,
0.0147705078125,
0.004444122314453125,
0.0105743408203125,
-0.046173095703125,
-0.01277923583984375,
-0.002063751220703125,
-0.01224517822265625,
-0.0013580322265625,
-0.019500732421875,
-0.0268707275390625,
0.07391357421875,
-0.03704833984375,
0.0093536376953125,
-0.00821685791015625,
0.034942626953125,
0.0323486328125,
-0.0068359375,
0.00018084049224853516,
0.04168701171875,
-0.072998046875,
0.00827789306640625,
-0.0128326416015625,
0.0279693603515625,
-0.05322265625,
0.0057525634765625,
0.006725311279296875,
0.0311126708984375,
-0.00981903076171875,
0.0272369384765625,
-0.02178955078125,
0.06292724609375,
-0.0113372802734375,
0.06561279296875,
-0.00963592529296875,
-0.0019130706787109375,
-0.0213165283203125,
0.033966064453125,
-0.00232696533203125,
-0.009490966796875,
0.00824737548828125,
0.007049560546875,
-0.00836181640625,
-0.012542724609375,
-0.044158935546875,
-0.049224853515625,
0.013946533203125,
-0.035552978515625,
-0.0287628173828125,
0.024139404296875
] |
4b3d3bade2642cb3f22f2e2a217a77a08eb4362a | Wordpress Stackexchange
Q: WP-CLI How to generate a list of posts with corresponding meta values I created this SQL query to generate a list of posts (which I will use for a CSV Sheet)
SELECT p.ID, p.post_content, p.post_title, pm1.meta_value as 'Amazon.com', pm2.meta_value as 'Amazon.co.uk'
FROM wp_posts p
LEFT JOIN wp_postmeta pm1 ON p.ID = pm1.post_id AND pm1.meta_key = 'Amazon.com'
LEFT JOIN wp_postmeta pm2 ON p.ID = pm2.post_id AND pm2.meta_key = 'Amazon.co.uk'
WHERE post_type = 'post' AND post_status = 'publish'
I'm trying to accomplish the same using WP-CLI, using 'wp list' and such, but I haven't been able to find a way list all posts with their meta fields in one row.
How can I accomplish this using WP-CLI ?
A: Just figured it out. This isn't clearly or explicitly documented at https://developer.wordpress.org/cli/commands/post/list/ or elsewhere.
wp post list --fields=ID,post_title,Amazon.com,Amazon.co.uk --meta_key=Amazon.com --meta_key=Amazon.co.uk
| Q: WP-CLI How to generate a list of posts with corresponding meta values I created this SQL query to generate a list of posts (which I will use for a CSV Sheet)
SELECT p.ID, p.post_content, p.post_title, pm1.meta_value as 'Amazon.com', pm2.meta_value as 'Amazon.co.uk'
FROM wp_posts p
LEFT JOIN wp_postmeta pm1 ON p.ID = pm1.post_id AND pm1.meta_key = 'Amazon.com'
LEFT JOIN wp_postmeta pm2 ON p.ID = pm2.post_id AND pm2.meta_key = 'Amazon.co.uk'
WHERE post_type = 'post' AND post_status = 'publish'
I'm trying to accomplish the same using WP-CLI, using 'wp list' and such, but I haven't been able to find a way list all posts with their meta fields in one row.
How can I accomplish this using WP-CLI ?
A: Just figured it out. This isn't clearly or explicitly documented at https://developer.wordpress.org/cli/commands/post/list/ or elsewhere.
wp post list --fields=ID,post_title,Amazon.com,Amazon.co.uk --meta_key=Amazon.com --meta_key=Amazon.co.uk
| wordpress | {
"language": "en",
"length": 138,
"provenance": "stackexchange_00019.jsonl.gz:493670",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/331621"
} | [
-0.0252838134765625,
-0.027984619140625,
-0.00850677490234375,
0.052764892578125,
-0.044219970703125,
-0.02105712890625,
0.022796630859375,
-0.039215087890625,
0.0070953369140625,
0.02142333984375,
0.026275634765625,
0.00638580322265625,
-0.0218353271484375,
-0.029815673828125,
0.00197601318359375,
-0.0208740234375,
0.052703857421875,
0.0021076202392578125,
0.0615234375,
0.0187225341796875,
0.0025157928466796875,
0.056976318359375,
0.027435302734375,
-0.021759033203125,
0.05303955078125,
-0.05322265625,
0.0687255859375,
-0.00864410400390625,
0.037872314453125,
0.00266265869140625,
0.03277587890625,
-0.0311126708984375,
0.0237884521484375,
-0.05712890625,
0.039215087890625,
-0.0174560546875,
0.046173095703125,
-0.025970458984375,
-0.0038909912109375,
0.01412200927734375,
0.005390167236328125,
-0.006500244140625,
0.00853729248046875,
-0.0193023681640625,
-0.0164031982421875,
-0.017913818359375,
0.0159759521484375,
-0.0199432373046875,
0.056671142578125,
0.02716064453125,
-0.03515625,
0.0582275390625,
-0.049591064453125,
0.05096435546875,
-0.0038051605224609375,
-0.00502777099609375,
0.01464080810546875,
-0.0230865478515625,
0.044219970703125,
-0.0294342041015625,
-0.032684326171875,
-0.00536346435546875,
0.0289154052734375,
-0.003673553466796875,
-0.0312042236328125,
-0.0017786026000976562,
-0.01123046875,
0.0032482147216796875,
-0.012481689453125,
-0.024017333984375,
0.0131072998046875,
-0.0221405029296875,
-0.0057525634765625,
0.0144500732421875,
-0.034210205078125,
-0.030242919921875,
0.05804443359375,
-0.0265350341796875,
-0.026885986328125,
0.016845703125,
0.034149169921875,
0.03564453125,
-0.002216339111328125,
-0.026031494140625,
0.011016845703125,
-0.0147705078125,
-0.0011587142944335938,
-0.0250091552734375,
-0.0164947509765625,
-0.05999755859375,
-0.017486572265625,
-0.0780029296875,
-0.048492431640625,
-0.00887298583984375,
0.0016126632690429688,
-0.0645751953125,
0.015167236328125,
0.005706787109375,
-0.01200103759765625,
-0.0205535888671875,
0.034942626953125,
-0.0535888671875,
0.0017709732055664062,
-0.0024013519287109375,
0.01016998291015625,
0.034149169921875,
-0.0096435546875,
0.0117645263671875,
0.041778564453125,
0.032745361328125,
0.00580596923828125,
0.030242919921875,
-0.006824493408203125,
-0.0015583038330078125,
-0.006450653076171875,
-0.004634857177734375,
-0.03814697265625,
0.03277587890625,
-0.004848480224609375,
0.019927978515625,
0.02044677734375,
0.054840087890625,
0.0430908203125,
-0.0489501953125,
0.01080322265625,
0.047882080078125,
-0.00215911865234375,
-0.10198974609375,
-0.034423828125,
0.017181396484375,
-0.004428863525390625,
0.006175994873046875,
0.0186920166015625,
0.039306640625,
-0.01163482666015625,
-0.01153564453125,
-0.04974365234375,
-0.037506103515625,
-0.01277923583984375,
0.004665374755859375,
-0.0000037550926208496094,
-0.038726806640625,
0.0281982421875,
0.007965087890625,
-0.010009765625,
0.021636962890625,
-0.002826690673828125,
0.00710296630859375,
0.01398468017578125,
0.0024547576904296875,
-0.0653076171875,
-0.0088653564453125,
0.03948974609375,
0.00469207763671875,
0.007015228271484375,
-0.034820556640625,
0.05487060546875,
-0.052947998046875,
-0.01250457763671875,
-0.07073974609375,
-0.013214111328125,
-0.0082550048828125,
0.004871368408203125,
-0.061126708984375,
-0.073486328125,
0.01361083984375,
-0.0007624626159667969,
-0.013763427734375,
0.02691650390625,
0.01346588134765625,
0.0051116943359375,
-0.0018835067749023438,
0.0266876220703125,
-0.00916290283203125,
-0.012603759765625,
-0.0096588134765625,
0.01074981689453125,
-0.03485107421875,
0.0276947021484375,
0.0194549560546875,
-0.0251922607421875,
-0.026123046875,
0.0108489990234375,
0.00033402442932128906,
-0.06280517578125,
0.05462646484375,
0.0250244140625,
0.090087890625,
0.0077667236328125,
0.0179290771484375,
0.0599365234375,
-0.00431060791015625,
-0.0413818359375,
0.01103973388671875,
0.005802154541015625,
-0.004795074462890625,
-0.0225677490234375,
-0.0016069412231445312,
-0.0003819465637207031,
0.006946563720703125,
0.00897216796875,
-0.006893157958984375,
-0.01125335693359375,
0.03228759765625,
-0.05340576171875,
-0.0032176971435546875,
-0.01123809814453125,
0.0068817138671875,
-0.0305023193359375,
-0.0166473388671875,
0.02423095703125,
-0.025543212890625,
0.00583648681640625,
-0.0430908203125,
-0.02777099609375,
-0.019500732421875,
-0.0046844482421875,
0.01361083984375,
-0.01010894775390625,
0.005794525146484375,
-0.00917816162109375,
-0.0147857666015625,
-0.024261474609375,
0.0097503662109375,
0.03875732421875,
0.0125885009765625,
-0.019134521484375,
0.0005140304565429688,
0.058502197265625,
-0.0010700225830078125,
0.032257080078125,
0.0025424957275390625,
0.0272216796875,
0.0018224716186523438,
-0.04583740234375,
0.01557159423828125,
-0.00881195068359375,
-0.0009407997131347656,
-0.01459503173828125,
0.04425048828125,
0.039306640625,
0.0227813720703125,
-0.0013751983642578125,
0.00374603271484375,
0.05413818359375,
0.0030651092529296875,
0.026336669921875,
-0.01209259033203125,
0.0167999267578125,
0.07611083984375,
-0.0160369873046875,
0.02191162109375,
-0.00884246826171875,
-0.0240020751953125,
0.0002734661102294922,
0.035888671875,
-0.0250701904296875,
-0.01027679443359375,
0.011962890625,
-0.00798797607421875,
-0.0009436607360839844,
-0.0146331787109375,
-0.007503509521484375,
-0.00811004638671875,
0.037353515625,
0.018096923828125,
0.04168701171875,
0.030120849609375,
-0.0185089111328125,
0.01303863525390625,
0.007549285888671875,
-0.01505279541015625,
0.0034046173095703125,
0.028472900390625,
-0.0002715587615966797,
0.0198974609375,
-0.032989501953125,
-0.0058746337890625,
0.0294189453125,
0.0173187255859375,
-0.00586700439453125,
0.0013628005981445312,
-0.01959228515625,
-0.003894805908203125,
0.01324462890625,
-0.041717529296875,
0.0010766983032226562,
0.01207733154296875,
-0.0117950439453125,
0.005573272705078125,
0.0171661376953125,
0.0364990234375,
0.015869140625,
0.00457000732421875,
0.00592803955078125,
0.005519866943359375,
0.0419921875,
-0.054901123046875,
0.0458984375,
-0.0350341796875,
0.047088623046875,
0.046478271484375,
-0.02166748046875,
0.0082244873046875,
-0.0204925537109375,
0.03924560546875,
-0.004428863525390625,
-0.0004744529724121094,
-0.007686614990234375,
-0.063232421875,
0.02728271484375,
0.004032135009765625,
0.0224609375,
0.021575927734375,
0.0165252685546875,
-0.03253173828125,
0.01152801513671875,
0.0121307373046875,
-0.10357666015625,
-0.115966796875,
0.08172607421875,
-0.00020444393157958984,
0.02520751953125,
-0.0430908203125,
-0.0029163360595703125,
-0.044921875,
-0.0137939453125,
-0.0166473388671875,
-0.0016908645629882812,
-0.0206451416015625,
-0.07232666015625,
-0.062744140625,
-0.07855224609375,
-0.018463134765625,
-0.0028705596923828125,
0.02117919921875,
0.01186370849609375,
0.07373046875,
0.0211944580078125,
-0.07025146484375,
-0.0060882568359375,
0.1138916015625,
-0.049774169921875,
-0.0110626220703125,
0.015655517578125,
-0.0253143310546875,
-0.01332855224609375,
-0.0129852294921875,
0.05059814453125,
0.03704833984375,
-0.04034423828125,
0.01483917236328125,
0.01259613037109375,
-0.00926971435546875,
0.043731689453125,
0.00562286376953125,
-0.03082275390625,
0.033599853515625,
0.03875732421875,
-0.0207366943359375,
0.008453369140625,
-0.0261993408203125,
-0.0116119384765625,
0.0267181396484375,
-0.0196075439453125,
0.004085540771484375,
0.0025196075439453125,
0.034149169921875,
0.031280517578125,
0.005916595458984375,
0.0294036865234375,
0.01076507568359375,
-0.004032135009765625,
-0.004650115966796875,
0.006687164306640625,
-0.0211334228515625,
0.0303497314453125,
-0.0251617431640625,
-0.054443359375,
-0.0105133056640625,
0.0008544921875,
-0.0028553009033203125,
-0.034881591796875,
-0.031890869140625,
-0.044464111328125,
0.07415771484375,
0.0439453125,
0.051666259765625,
-0.0579833984375,
-0.07049560546875,
-0.049072265625,
0.1077880859375,
-0.02020263671875,
-0.04473876953125,
-0.005977630615234375,
0.0279388427734375,
-0.039794921875,
-0.03961181640625,
0.005222320556640625,
-0.01505279541015625,
-0.03741455078125,
0.0097503662109375,
0.005802154541015625,
-0.025390625,
-0.0046539306640625,
-0.020294189453125,
-0.02606201171875,
-0.0212249755859375,
0.0443115234375,
-0.01209259033203125,
0.003368377685546875,
0.042633056640625,
0.0145111083984375,
0.01348876953125,
-0.058441162109375,
0.024749755859375,
-0.0731201171875,
-0.00757598876953125,
-0.0033092498779296875,
0.04132080078125,
0.00011676549911499023,
-0.0225830078125,
0.00626373291015625,
0.0550537109375,
-0.0193328857421875,
0.05389404296875,
-0.031341552734375,
0.0124664306640625,
0.040496826171875,
-0.041595458984375,
-0.036651611328125,
-0.01019287109375,
-0.005764007568359375,
-0.0428466796875,
-0.039093017578125,
-0.0242462158203125,
-0.027099609375,
0.0036563873291015625,
0.004077911376953125,
-0.01526641845703125,
-0.065673828125,
-0.017547607421875,
0.01183319091796875,
0.01053619384765625,
0.0007872581481933594,
0.0038127899169921875,
-0.024017333984375,
-0.05303955078125,
0.029541015625,
-0.00823974609375,
0.004734039306640625,
0.008819580078125,
0.057647705078125,
-0.0024127960205078125,
-0.012359619140625,
-0.0484619140625,
-0.005523681640625,
0.00438690185546875,
-0.0019292831420898438,
0.037445068359375,
0.0184326171875,
0.0174102783203125,
-0.02593994140625,
-0.01438140869140625,
-0.00522613525390625,
0.002044677734375,
0.034088134765625,
0.01387786865234375,
0.0020160675048828125,
0.0009055137634277344,
0.00014400482177734375,
-0.0081329345703125,
0.033905029296875,
0.0022830963134765625,
-0.00963592529296875,
-0.0207672119140625,
0.029815673828125,
0.0272369384765625,
-0.04339599609375,
-0.05364990234375,
-0.013092041015625,
0.0046844482421875,
-0.011932373046875,
0.0280914306640625,
0.0177764892578125,
-0.0020694732666015625,
-0.0077056884765625,
-0.00811004638671875,
0.004962921142578125,
-0.00405120849609375,
0.00021195411682128906,
-0.0102386474609375,
0.0110015869140625,
0.0117645263671875,
-0.0187835693359375,
-0.026641845703125,
-0.009246826171875,
0.0145416259765625,
-0.0162200927734375,
-0.080322265625,
0.0286865234375,
-0.007965087890625,
0.0162200927734375,
0.036956787109375,
-0.005649566650390625,
0.0377197265625,
0.032684326171875,
-0.0228424072265625,
-0.01459503173828125,
-0.0290985107421875,
-0.01517486572265625,
-0.067626953125,
0.031219482421875,
0.0197601318359375,
-0.0011529922485351562,
0.00518798828125,
0.064697265625,
-0.0008549690246582031,
0.037750244140625,
-0.026123046875,
0.0615234375,
0.036651611328125,
0.03631591796875,
0.026336669921875,
-0.0389404296875,
-0.016143798828125,
0.03375244140625,
-0.051544189453125,
-0.022430419921875,
0.0226898193359375,
0.0133514404296875,
0.035064697265625,
0.04034423828125,
-0.007434844970703125,
-0.00655364990234375,
-0.0498046875,
-0.01088714599609375,
-0.007354736328125,
-0.0202178955078125,
0.00011551380157470703,
-0.015838623046875,
-0.0257415771484375,
0.002475738525390625,
0.004543304443359375,
0.01367950439453125,
-0.0111846923828125,
-0.01049041748046875,
0.0478515625,
-0.042144775390625,
0.0506591796875,
-0.019989013671875,
-0.038787841796875,
-0.01849365234375,
-0.01143646240234375,
-0.005245208740234375,
-0.04095458984375,
-0.049713134765625,
0.0096282958984375,
-0.00567626953125,
0.03887939453125,
0.00917816162109375,
-0.02288818359375,
-0.01332855224609375,
0.023529052734375,
-0.0274200439453125,
0.00273895263671875,
0.002979278564453125,
-0.0316162109375,
0.004913330078125,
-0.007549285888671875,
-0.0338134765625,
0.001773834228515625,
0.1038818359375,
0.01904296875,
0.00470733642578125,
-0.031341552734375,
0.0406494140625,
0.046295166015625,
-0.0099029541015625,
-0.0704345703125,
-0.0273284912109375,
-0.0200042724609375,
0.03704833984375,
0.048431396484375,
-0.03857421875,
0.0306549072265625,
0.032684326171875,
-0.0271759033203125,
-0.009796142578125,
0.0310211181640625,
0.035736083984375,
0.0019407272338867188,
-0.01666259765625,
-0.0853271484375,
0.01097869873046875,
0.0235137939453125,
-0.00547027587890625,
0.038665771484375,
0.0034084320068359375,
0.01922607421875,
0.0276641845703125,
-0.01129150390625,
0.005641937255859375,
-0.00910186767578125,
0.002811431884765625,
0.00130462646484375,
0.022430419921875,
0.05035400390625,
-0.0241241455078125,
0.017547607421875,
-0.004940032958984375,
-0.00916290283203125,
0.0200347900390625,
-0.03204345703125,
0.01116180419921875,
0.038818359375,
-0.043182373046875,
0.051239013671875,
0.0748291015625,
0.038604736328125,
0.059844970703125,
0.025787353515625,
0.009552001953125,
0.032501220703125,
-0.034027099609375,
0.0242462158203125,
0.015106201171875,
0.08551025390625,
0.005069732666015625,
-0.01061248779296875,
0.071533203125,
-0.042236328125,
0.0015039443969726562,
0.033905029296875,
0.05908203125,
-0.042694091796875,
-0.0009746551513671875,
0.0267791748046875,
-0.024688720703125,
-0.0131378173828125,
0.03289794921875,
-0.021881103515625,
-0.0213775634765625,
-0.0189971923828125,
0.00023818016052246094,
-0.005878448486328125,
-0.0030727386474609375,
0.02874755859375,
-0.0119171142578125,
-0.0010881423950195312,
-0.025543212890625,
-0.01145172119140625,
-0.03955078125,
-0.003536224365234375,
0.034088134765625,
-0.01412200927734375,
-0.04833984375,
-0.01215362548828125,
0.0013217926025390625,
-0.0133209228515625,
-0.0989990234375,
-0.00020396709442138672,
-0.021240234375,
0.0157012939453125,
-0.00801849365234375,
0.0655517578125,
0.0016040802001953125,
0.061798095703125,
0.006778717041015625,
-0.016632080078125,
0.053314208984375,
-0.0192108154296875,
-0.0256195068359375,
-0.009033203125,
-0.0107879638671875,
0.0093231201171875,
-0.052337646484375,
0.012359619140625,
-0.050537109375,
0.0270843505859375,
0.006305694580078125,
-0.0009455680847167969,
0.031280517578125,
-0.053985595703125,
-0.00434112548828125,
0.0226287841796875,
0.0118255615234375,
0.01287841796875,
0.0235595703125,
0.059814453125,
-0.0484619140625,
-0.0200653076171875,
0.04541015625,
-0.0023345947265625,
-0.039703369140625,
0.034912109375,
-0.045806884765625,
0.048370361328125,
-0.02313232421875,
0.003238677978515625,
-0.0077056884765625,
0.01776123046875,
0.013031005859375,
0.01580810546875,
-0.039794921875,
0.07293701171875,
0.038909912109375,
0.0465087890625,
-0.028961181640625,
-0.0205078125,
0.03387451171875,
0.042572021484375,
0.0203399658203125,
0.00760650634765625,
-0.045745849609375,
-0.0305633544921875,
-0.0025997161865234375,
0.0205078125,
0.0011463165283203125,
0.036224365234375,
-0.0239715576171875,
0.061309814453125,
0.07159423828125,
-0.09295654296875,
0.020751953125,
-0.026153564453125,
-0.01039886474609375,
-0.0082244873046875,
-0.0034618377685546875,
-0.0014238357543945312,
-0.0047607421875,
0.045135498046875,
0.044281005859375,
-0.0282440185546875,
-0.0188751220703125,
-0.0275421142578125,
0.0236358642578125,
0.0226287841796875,
0.025970458984375,
-0.02520751953125,
-0.0166473388671875,
-0.0278472900390625,
0.032623291015625,
-0.0177764892578125,
-0.0272369384765625,
0.0010232925415039062,
0.00939178466796875,
0.00177764892578125,
-0.0058441162109375,
-0.01393890380859375,
0.032928466796875,
-0.01102447509765625,
0.04150390625,
0.0147552490234375,
0.0028972625732421875,
-0.03070068359375,
0.057525634765625,
0.03668212890625,
0.033447265625,
-0.058746337890625,
-0.030364990234375,
0.0175628662109375,
0.01348876953125,
0.012542724609375,
-0.01123046875,
0.00740814208984375,
-0.03570556640625,
-0.0015096664428710938,
-0.03826904296875,
-0.0080718994140625,
0.01404571533203125,
0.0298614501953125,
0.0017795562744140625,
0.01407623291015625,
-0.0443115234375,
-0.03228759765625,
-0.03485107421875,
-0.007114410400390625,
0.0199127197265625,
0.06182861328125,
0.04443359375,
0.0237579345703125,
-0.016510009765625,
-0.03204345703125,
-0.027435302734375,
0.01371002197265625,
0.061248779296875,
0.00716400146484375,
0.00496673583984375,
0.035858154296875,
0.052825927734375,
0.00443267822265625,
0.0258941650390625,
0.0245513916015625,
0.0654296875,
0.0198822021484375,
-0.051116943359375,
-0.01432037353515625,
0.0264892578125,
-0.0311126708984375,
-0.02874755859375,
-0.01465606689453125,
-0.0166473388671875,
0.0011777877807617188,
-0.01522064208984375,
-0.00396728515625,
0.02899169921875,
-0.0170440673828125,
-0.028717041015625,
0.039825439453125,
-0.0024871826171875,
-0.016571044921875,
0.01512908935546875,
-0.0089263916015625,
0.0209808349609375,
-0.0148162841796875,
-0.07012939453125,
-0.004795074462890625,
-0.0154266357421875,
-0.0290374755859375,
-0.004337310791015625,
0.01788330078125,
-0.033111572265625,
0.0467529296875,
0.005710601806640625,
-0.01390838623046875,
-0.0084381103515625,
0.0140533447265625,
0.0269622802734375,
0.0377197265625,
0.01438140869140625,
0.01800537109375,
-0.031768798828125,
-0.028717041015625,
-0.0247650146484375,
0.038482666015625,
0.0293426513671875,
-0.0148162841796875,
0.025634765625,
0.048583984375,
-0.039703369140625,
0.0129547119140625,
-0.0240936279296875,
-0.0297088623046875,
0.034820556640625,
0.01383209228515625,
-0.00688934326171875,
-0.0157012939453125,
0.048004150390625,
0.0175323486328125,
0.035675048828125,
-0.03155517578125,
-0.019561767578125,
-0.0191802978515625,
0.0208892822265625,
-0.00267791748046875,
-0.0081024169921875,
-0.0311279296875,
0.0236358642578125,
-0.017791748046875,
-0.05023193359375,
0.0543212890625,
0.0159149169921875,
0.031890869140625,
-0.002498626708984375,
0.03125,
-0.024871826171875,
0.03680419921875,
-0.00443267822265625,
0.08349609375,
0.047637939453125,
-0.0235595703125,
0.0560302734375,
0.007595062255859375,
-0.0168609619140625,
0.04132080078125,
0.0141754150390625,
-0.0183868408203125,
0.0029621124267578125,
0.00616455078125,
0.0118255615234375,
0.04986572265625,
0.0298004150390625,
-0.0203857421875,
0.00177001953125,
0.039031982421875,
-0.032806396484375,
0.006031036376953125,
0.01068115234375,
-0.027862548828125,
-0.050201416015625,
0.0026073455810546875,
0.00753021240234375,
-0.03961181640625,
-0.0469970703125,
-0.046295166015625,
-0.0013799667358398438,
0.0036468505859375,
-0.0173187255859375,
0.004596710205078125,
0.00846099853515625,
-0.02532958984375,
-0.01468658447265625,
-0.01512908935546875,
-0.003673553466796875,
-0.0225067138671875,
0.01311492919921875,
0.0178070068359375,
-0.049957275390625,
-0.033905029296875,
0.06964111328125,
-0.021331787109375,
-0.0013599395751953125,
0.0156707763671875,
-0.0056304931640625,
-0.05108642578125,
-0.021331787109375,
-0.004329681396484375,
0.01197052001953125,
0.03173828125,
-0.0159759521484375,
-0.00267791748046875,
0.021240234375,
-0.042327880859375,
-0.07232666015625,
0.01338958740234375,
-0.0560302734375,
-0.0113525390625,
-0.02752685546875,
0.04241943359375,
0.053436279296875,
-0.008941650390625,
-0.058197021484375,
0.040313720703125,
-0.0229949951171875,
-0.0175628662109375,
-0.046966552734375,
-0.0701904296875,
0.01513671875,
0.025177001953125,
-0.0211944580078125,
-0.006717681884765625,
-0.08392333984375,
0.04656982421875,
-0.006103515625,
0.02374267578125,
-0.0158843994140625,
-0.0223236083984375,
-0.0153961181640625,
0.03875732421875,
0.03680419921875,
-0.0026760101318359375,
-0.041961669921875,
0.048553466796875,
-0.02020263671875,
0.0214691162109375,
-0.03155517578125,
0.023681640625,
-0.014312744140625,
0.0221710205078125,
0.0142059326171875,
-0.0290679931640625,
-0.040863037109375,
-0.002124786376953125,
0.0272979736328125,
0.057281494140625,
0.0177001953125,
-0.050933837890625,
-0.0017843246459960938,
-0.037200927734375,
0.01226806640625,
-0.0233154296875,
-0.0018873214721679688,
-0.060516357421875,
-0.033203125,
0.01544952392578125,
0.00438690185546875,
-0.015167236328125,
-0.047210693359375,
-0.0146942138671875,
-0.019287109375,
-0.0201416015625,
-0.0067596435546875,
0.032470703125,
0.01354217529296875,
0.0003008842468261719,
-0.0182952880859375,
-0.0218658447265625,
-0.02398681640625,
0.0213623046875,
-0.02545166015625,
-0.046966552734375,
-0.023895263671875,
-0.046600341796875,
0.038360595703125,
0.03363037109375,
0.0010900497436523438,
-0.0091400146484375,
0.005519866943359375,
0.006805419921875,
-0.00980377197265625,
0.01216888427734375,
-0.0001043081283569336,
0.002529144287109375,
-0.0156402587890625,
0.047821044921875,
0.01152801513671875,
0.009613037109375,
-0.012451171875,
-0.01519012451171875,
-0.02520751953125,
0.03240966796875,
-0.0160369873046875,
0.0022068023681640625,
0.01123809814453125,
0.01058197021484375,
0.01800537109375,
-0.0191497802734375,
0.0254974365234375,
-0.01556396484375,
0.012115478515625,
0.04974365234375,
-0.0235595703125,
0.01763916015625
] |
ac5756adcd98fc47dfcbc24240c340231418f820 | Wordpress Stackexchange
Q: How to hide specific Gutenberg blocks settings from users Is there any way to hide specific Gutenberg block settings from users?
For example: "Crop Images", "Link To", and "Additional CSS Class"
A: As far as I know, as of right now there isn't a built-in way of removing unwanted inspector controls.
You can read THIS POST, but the gist is that there are proposed solutions out there and devs are aware but they have bigger fish to fry atm, apparently.
With that said, I guess you are left with 2 options.
1 - Copy the block in question and remake it without the options
This could be difficult, especially if you don't have any JS and/or block editor dev experience.
2 - Use some crazy CSS selector to add display:none to the options
This is probably easier but you still have to figure out the right CSS selector, which is difficult due to no IDs or classes on the option elements.
Neither of these solutions are great but I think thats what we have, for now...
| Q: How to hide specific Gutenberg blocks settings from users Is there any way to hide specific Gutenberg block settings from users?
For example: "Crop Images", "Link To", and "Additional CSS Class"
A: As far as I know, as of right now there isn't a built-in way of removing unwanted inspector controls.
You can read THIS POST, but the gist is that there are proposed solutions out there and devs are aware but they have bigger fish to fry atm, apparently.
With that said, I guess you are left with 2 options.
1 - Copy the block in question and remake it without the options
This could be difficult, especially if you don't have any JS and/or block editor dev experience.
2 - Use some crazy CSS selector to add display:none to the options
This is probably easier but you still have to figure out the right CSS selector, which is difficult due to no IDs or classes on the option elements.
Neither of these solutions are great but I think thats what we have, for now...
| wordpress | {
"language": "en",
"length": 177,
"provenance": "stackexchange_00019.jsonl.gz:493687",
"question_score": "10",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/331677"
} | [
0.0214996337890625,
0.01361083984375,
0.0217742919921875,
0.076416015625,
-0.0072479248046875,
-0.04803466796875,
0.051239013671875,
-0.08245849609375,
0.02142333984375,
0.040008544921875,
0.0225982666015625,
-0.0253143310546875,
0.016876220703125,
-0.038299560546875,
-0.0343017578125,
-0.0139923095703125,
0.01885986328125,
0.0238037109375,
0.0299072265625,
0.00148773193359375,
-0.00379180908203125,
0.0150604248046875,
-0.0256195068359375,
0.029876708984375,
0.00588226318359375,
-0.041015625,
0.08837890625,
-0.006561279296875,
0.032989501953125,
-0.01849365234375,
0.03228759765625,
-0.02264404296875,
0.0045166015625,
0.007442474365234375,
-0.0070953369140625,
0.01396942138671875,
0.0240020751953125,
-0.016632080078125,
0.001995086669921875,
0.020843505859375,
0.025299072265625,
-0.0176239013671875,
-0.06561279296875,
-0.02923583984375,
-0.0443115234375,
0.006412506103515625,
0.0011796951293945312,
-0.00634002685546875,
0.0212249755859375,
0.04901123046875,
-0.00919342041015625,
0.0052947998046875,
-0.00801849365234375,
0.032318115234375,
-0.010711669921875,
-0.02899169921875,
-0.00036406517028808594,
0.05755615234375,
0.0213775634765625,
0.0191192626953125,
-0.0252838134765625,
0.04229736328125,
-0.0090484619140625,
-0.05145263671875,
0.049774169921875,
0.0017118453979492188,
0.025604248046875,
0.041351318359375,
-0.0577392578125,
0.03509521484375,
0.02960205078125,
-0.04156494140625,
0.009796142578125,
-0.06231689453125,
-0.02178955078125,
0.036712646484375,
-0.0301666259765625,
-0.03424072265625,
0.035675048828125,
-0.036041259765625,
-0.004276275634765625,
-0.000009655952453613281,
-0.06146240234375,
-0.01342010498046875,
0.0230255126953125,
0.0169219970703125,
-0.00839996337890625,
-0.0150299072265625,
0.0208892822265625,
0.003376007080078125,
0.007495880126953125,
-0.021270751953125,
-0.005645751953125,
0.0731201171875,
-0.0018024444580078125,
-0.0263214111328125,
0.019775390625,
0.007526397705078125,
-0.0185699462890625,
-0.0440673828125,
-0.003143310546875,
-0.013031005859375,
-0.034454345703125,
0.019012451171875,
-0.007781982421875,
0.0506591796875,
0.0002474784851074219,
0.06365966796875,
0.048828125,
0.0169525146484375,
0.01611328125,
-0.00982666015625,
-0.005161285400390625,
0.0159759521484375,
-0.031341552734375,
-0.006591796875,
-0.03460693359375,
0.0132904052734375,
-0.016937255859375,
0.0205078125,
0.013885498046875,
0.032623291015625,
0.006481170654296875,
0.03436279296875,
-0.0136260986328125,
0.00838470458984375,
-0.0193023681640625,
-0.039337158203125,
0.01151275634765625,
-0.0163726806640625,
-0.04736328125,
0.01837158203125,
0.06781005859375,
0.05560302734375,
0.041595458984375,
-0.009613037109375,
0.028167724609375,
0.0078887939453125,
-0.01381683349609375,
0.00986480712890625,
-0.004669189453125,
-0.0237579345703125,
-0.0191192626953125,
-0.040008544921875,
-0.01326751708984375,
-0.00934600830078125,
0.038299560546875,
0.022613525390625,
-0.03643798828125,
-0.07269287109375,
0.0155487060546875,
0.00481414794921875,
0.0635986328125,
0.004791259765625,
-0.0195159912109375,
0.005420684814453125,
0.055206298828125,
-0.016265869140625,
-0.055755615234375,
-0.055633544921875,
0.00670623779296875,
0.0006117820739746094,
0.022430419921875,
0.016326904296875,
-0.006221771240234375,
0.01371002197265625,
-0.0170135498046875,
-0.0110015869140625,
0.0219879150390625,
0.00705718994140625,
-0.031097412109375,
-0.03765869140625,
0.0133056640625,
-0.0260009765625,
-0.037811279296875,
0.032135009765625,
0.01172637939453125,
0.0276336669921875,
-0.00030422210693359375,
0.0173187255859375,
-0.0146942138671875,
-0.052520751953125,
0.03564453125,
-0.01715087890625,
-0.0460205078125,
0.0360107421875,
-0.0204620361328125,
0.036346435546875,
0.039581298828125,
0.0025730133056640625,
0.0178680419921875,
0.016387939453125,
-0.047027587890625,
-0.0287628173828125,
0.0169525146484375,
0.0224151611328125,
-0.01343536376953125,
0.0079193115234375,
0.011627197265625,
-0.011199951171875,
0.040557861328125,
-0.0203704833984375,
0.0352783203125,
-0.032623291015625,
-0.0072021484375,
-0.0117645263671875,
-0.010711669921875,
0.03961181640625,
-0.04632568359375,
-0.01776123046875,
0.01727294921875,
-0.048858642578125,
-0.0243377685546875,
0.03662109375,
0.0026340484619140625,
-0.0200653076171875,
-0.00010967254638671875,
0.048736572265625,
0.013885498046875,
-0.007488250732421875,
0.054840087890625,
-0.0252227783203125,
0.041473388671875,
0.029052734375,
0.05169677734375,
0.0195159912109375,
-0.0055694580078125,
-0.01033782958984375,
0.044677734375,
0.033538818359375,
-0.0538330078125,
-0.01739501953125,
0.034423828125,
0.0565185546875,
0.006946563720703125,
0.01256561279296875,
0.04437255859375,
-0.050750732421875,
0.002498626708984375,
0.0149383544921875,
0.016143798828125,
-0.0203399658203125,
-0.037994384765625,
-0.03125,
0.007472991943359375,
-0.0200347900390625,
0.0191802978515625,
-0.00823974609375,
-0.025146484375,
-0.04583740234375,
0.01393890380859375,
-0.0208740234375,
0.040802001953125,
0.0008449554443359375,
0.033233642578125,
0.00605010986328125,
-0.00960540771484375,
-0.0068817138671875,
0.01381683349609375,
-0.004871368408203125,
0.007671356201171875,
0.0164031982421875,
0.00004982948303222656,
-0.00234222412109375,
0.07415771484375,
-0.030609130859375,
0.033172607421875,
0.018341064453125,
-0.032562255859375,
0.0070953369140625,
0.0256500244140625,
-0.003894805908203125,
-0.01165771484375,
0.0083465576171875,
0.0372314453125,
0.032867431640625,
-0.022125244140625,
-0.00739288330078125,
0.0177764892578125,
0.0244140625,
-0.01175689697265625,
-0.006183624267578125,
-0.02166748046875,
0.0003924369812011719,
0.0108795166015625,
-0.0019989013671875,
0.02996826171875,
0.01100921630859375,
-0.01116943359375,
0.005939483642578125,
0.026763916015625,
0.0174713134765625,
0.00954437255859375,
-0.0100250244140625,
0.00830841064453125,
-0.0126190185546875,
0.0097198486328125,
-0.07000732421875,
0.0291290283203125,
-0.04730224609375,
0.1068115234375,
0.06842041015625,
-0.0243682861328125,
0.03350830078125,
0.007793426513671875,
-0.030059814453125,
0.021026611328125,
-0.004730224609375,
-0.01303863525390625,
0.0031185150146484375,
-0.037750244140625,
0.018218994140625,
0.0027294158935546875,
-0.0156402587890625,
-0.0214385986328125,
-0.01071929931640625,
-0.035064697265625,
-0.007755279541015625,
0.0054779052734375,
0.06243896484375,
-0.0222625732421875,
-0.051025390625,
-0.024383544921875,
-0.0022983551025390625,
-0.0455322265625,
0.0218658447265625,
0.0274200439453125,
0.004581451416015625,
-0.040618896484375,
-0.03033447265625,
-0.059417724609375,
-0.05511474609375,
-0.0292816162109375,
0.04937744140625,
-0.004673004150390625,
-0.0092620849609375,
-0.0037860870361328125,
0.00707244873046875,
-0.02655029296875,
-0.049163818359375,
-0.0274658203125,
-0.037078857421875,
0.00948333740234375,
-0.01065826416015625,
0.00936126708984375,
0.001415252685546875,
-0.0207061767578125,
0.035064697265625,
-0.0195465087890625,
-0.0100555419921875,
-0.000021219253540039062,
-0.030181884765625,
-0.0005092620849609375,
0.0176544189453125,
-0.0045318603515625,
0.004558563232421875,
0.0033092498779296875,
0.0041656494140625,
-0.035980224609375,
-0.04278564453125,
-0.0228271484375,
0.0007715225219726562,
-0.0237579345703125,
0.0178680419921875,
-0.004749298095703125,
0.005157470703125,
-0.005588531494140625,
0.03192138671875,
0.0638427734375,
0.0230560302734375,
0.038726806640625,
0.004852294921875,
0.0206756591796875,
-0.009796142578125,
0.01457977294921875,
-0.0770263671875,
0.0216064453125,
-0.0186309814453125,
0.00920867919921875,
-0.00846099853515625,
-0.016571044921875,
-0.017852783203125,
0.004970550537109375,
-0.0267333984375,
-0.0186004638671875,
0.038970947265625,
-0.0161895751953125,
0.019134521484375,
-0.022491455078125,
-0.00626373291015625,
0.007904052734375,
0.06292724609375,
-0.01122283935546875,
-0.0179290771484375,
0.03125,
0.0145416259765625,
-0.0272064208984375,
-0.00901031494140625,
-0.039886474609375,
0.0004076957702636719,
-0.0889892578125,
0.0079803466796875,
0.004306793212890625,
-0.06640625,
-0.0205230712890625,
-0.07867431640625,
-0.07232666015625,
-0.0396728515625,
0.0285491943359375,
0.033660888671875,
0.0149078369140625,
-0.021820068359375,
0.03021240234375,
-0.038665771484375,
0.0034046173095703125,
-0.00525665283203125,
-0.0562744140625,
-0.0172119140625,
-0.007904052734375,
0.039459228515625,
-0.03717041015625,
0.058837890625,
-0.0139312744140625,
0.054473876953125,
-0.01409149169921875,
0.022613525390625,
0.0160064697265625,
0.0093994140625,
0.045074462890625,
0.0133209228515625,
0.0238037109375,
-0.0260009765625,
0.0185089111328125,
0.0070953369140625,
-0.042572021484375,
0.0242156982421875,
-0.026824951171875,
-0.0018253326416015625,
0.01041412353515625,
-0.0297698974609375,
-0.04962158203125,
-0.037322998046875,
-0.07867431640625,
-0.00031566619873046875,
-0.0088958740234375,
-0.0228424072265625,
-0.039794921875,
-0.08062744140625,
-0.0006437301635742188,
-0.01535797119140625,
0.007801055908203125,
0.01537322998046875,
0.04205322265625,
0.0189056396484375,
0.0014009475708007812,
0.0027904510498046875,
0.020721435546875,
0.0147705078125,
0.0009417533874511719,
0.0706787109375,
0.00530242919921875,
0.00762939453125,
0.06378173828125,
-0.028717041015625,
-0.031402587890625,
-0.04150390625,
0.084716796875,
-0.02923583984375,
-0.03228759765625,
0.007354736328125,
-0.05712890625,
0.057098388671875,
0.01013946533203125,
-0.0154266357421875,
0.0052032470703125,
-0.005794525146484375,
0.010711669921875,
-0.006076812744140625,
-0.00780487060546875,
-0.0136260986328125,
0.0119171142578125,
-0.00957489013671875,
0.00620269775390625,
0.0283203125,
0.029083251953125,
-0.0110931396484375,
-0.0089874267578125,
0.0301666259765625,
-0.01264190673828125,
-0.00908660888671875,
0.0025348663330078125,
-0.039947509765625,
0.04681396484375,
-0.038360595703125,
-0.0296478271484375,
0.0027637481689453125,
0.010162353515625,
0.036865234375,
-0.01146697998046875,
-0.0560302734375,
-0.0379638671875,
-0.0030384063720703125,
-0.0083770751953125,
0.0098876953125,
-0.0006651878356933594,
0.03045654296875,
0.0006785392761230469,
-0.0179443359375,
0.0067291259765625,
0.0209503173828125,
-0.037078857421875,
-0.0309906005859375,
-0.001117706298828125,
0.0035114288330078125,
-0.01389312744140625,
0.04205322265625,
0.0011415481567382812,
-0.0274505615234375,
0.028167724609375,
-0.0072479248046875,
0.01141357421875,
0.00620269775390625,
-0.023345947265625,
0.01399993896484375,
0.034271240234375,
0.008544921875,
-0.056671142578125,
0.02752685546875,
-0.026336669921875,
-0.0186767578125,
0.0479736328125,
0.03515625,
-0.0184326171875,
-0.0175323486328125,
-0.01012420654296875,
-0.0148773193359375,
-0.0186920166015625,
0.017974853515625,
-0.0009713172912597656,
0.0043182373046875,
-0.04705810546875,
-0.01617431640625,
0.04364013671875,
0.0273895263671875,
-0.0029811859130859375,
-0.061370849609375,
-0.019073486328125,
-0.049072265625,
0.055450439453125,
-0.11590576171875,
0.0254058837890625,
0.03387451171875,
-0.0182952880859375,
-0.005489349365234375,
-0.0081634521484375,
-0.084716796875,
-0.042694091796875,
-0.005016326904296875,
-0.004703521728515625,
0.045257568359375,
-0.0352783203125,
0.0187530517578125,
-0.03240966796875,
0.024200439453125,
-0.0122833251953125,
0.0235443115234375,
0.04449462890625,
0.030914306640625,
-0.0304412841796875,
-0.011260986328125,
-0.071044921875,
-0.0123748779296875,
-0.0875244140625,
-0.07611083984375,
-0.006591796875,
0.02349853515625,
-0.005767822265625,
0.028045654296875,
-0.029327392578125,
-0.0245819091796875,
0.02252197265625,
0.0218048095703125,
-0.005046844482421875,
0.04534912109375,
-0.0036907196044921875,
0.02667236328125,
0.00040459632873535156,
0.04400634765625,
0.0159454345703125,
-0.00710296630859375,
0.008331298828125,
-0.026947021484375,
-0.005802154541015625,
-0.007617950439453125,
-0.0201873779296875,
-0.005924224853515625,
0.0035724639892578125,
0.0078887939453125,
0.033172607421875,
-0.0033092498779296875,
0.01157379150390625,
-0.0137481689453125,
0.0013799667358398438,
-0.042572021484375,
0.03411865234375,
-0.047760009765625,
-0.00476837158203125,
-0.0246734619140625,
-0.00397491455078125,
0.01398468017578125,
-0.0003478527069091797,
-0.00545501708984375,
0.0161895751953125,
0.0048980712890625,
0.008697509765625,
0.0029754638671875,
0.034515380859375,
0.0027008056640625,
0.037933349609375,
-0.00868988037109375,
0.0091094970703125,
0.02618408203125,
-0.0006618499755859375,
0.004886627197265625,
-0.008392333984375,
-0.0156402587890625,
0.030975341796875,
0.036651611328125,
0.01172637939453125,
0.01204681396484375,
0.03924560546875,
-0.0020008087158203125,
0.0273590087890625,
0.085205078125,
0.061920166015625,
-0.123779296875,
-0.00019657611846923828,
0.0153350830078125,
-0.0027561187744140625,
-0.005764007568359375,
0.04193115234375,
-0.029998779296875,
-0.08172607421875,
-0.00991058349609375,
-0.038360595703125,
0.013092041015625,
-0.0084228515625,
-0.006259918212890625,
-0.00832366943359375,
-0.01154327392578125,
0.0189361572265625,
0.006778717041015625,
-0.018463134765625,
-0.0218505859375,
0.0083160400390625,
-0.0177001953125,
-0.00443267822265625,
0.0206451416015625,
0.01090240478515625,
-0.0251312255859375,
-0.0469970703125,
0.004302978515625,
0.00011926889419555664,
-0.04217529296875,
0.033355712890625,
0.01479339599609375,
0.02569580078125,
0.047882080078125,
-0.01049041748046875,
0.0035228729248046875,
0.01256561279296875,
-0.0166473388671875,
-0.007144927978515625,
-0.0229644775390625,
-0.005809783935546875,
-0.019012451171875,
-0.01047515869140625,
0.0135345458984375,
-0.015106201171875,
-0.0241546630859375,
-0.0112762451171875,
0.041961669921875,
0.113037109375,
0.0062408447265625,
-0.0657958984375,
0.03411865234375,
0.007328033447265625,
-0.0312347412109375,
0.01369476318359375,
0.0728759765625,
-0.01165771484375,
-0.00562286376953125,
0.02642822265625,
0.00844573974609375,
-0.01885986328125,
0.0191497802734375,
-0.044677734375,
0.038787841796875,
0.00870513916015625,
0.026275634765625,
-0.0031871795654296875,
0.016815185546875,
0.0005116462707519531,
0.00925445556640625,
-0.033050537109375,
0.040008544921875,
-0.004459381103515625,
0.026458740234375,
-0.044677734375,
-0.0010633468627929688,
-0.0166778564453125,
0.0046844482421875,
0.0216064453125,
0.0031452178955078125,
-0.0210113525390625,
-0.0038394927978515625,
0.037353515625,
0.049957275390625,
0.00592041015625,
0.023406982421875,
0.0018978118896484375,
0.025909423828125,
-0.0078277587890625,
-0.03179931640625,
0.01959228515625,
-0.043243408203125,
-0.03460693359375,
0.022430419921875,
0.00861358642578125,
0.0135040283203125,
0.010345458984375,
0.06927490234375,
-0.0265350341796875,
-0.000591278076171875,
0.043792724609375,
-0.040802001953125,
-0.018768310546875,
0.019775390625,
0.008026123046875,
-0.0523681640625,
-0.042449951171875,
-0.020172119140625,
0.025238037109375,
0.02777099609375,
-0.00017881393432617188,
0.0192413330078125,
0.0176849365234375,
-0.03125,
-0.003986358642578125,
-0.0005779266357421875,
0.025482177734375,
-0.049591064453125,
-0.0292205810546875,
-0.01715087890625,
0.0035400390625,
-0.031005859375,
0.034332275390625,
0.005157470703125,
-0.034332275390625,
-0.01065826416015625,
-0.05963134765625,
0.0139312744140625,
0.004901885986328125,
0.0243377685546875,
-0.007678985595703125,
0.007678985595703125,
-0.05194091796875,
0.0098724365234375,
-0.026611328125,
-0.024932861328125,
-0.0183563232421875,
0.03369140625,
-0.0103302001953125,
0.0204620361328125,
0.0059814453125,
-0.061279296875,
-0.021026611328125,
-0.039825439453125,
0.0186309814453125,
0.025726318359375,
0.05230712890625,
0.0048980712890625,
0.037384033203125,
-0.00913238525390625,
-0.055511474609375,
0.0118560791015625,
0.00783538818359375,
0.045867919921875,
-0.0281524658203125,
0.046722412109375,
-0.0025119781494140625,
0.0265960693359375,
0.0017747879028320312,
0.03228759765625,
0.0295562744140625,
0.032196044921875,
0.01425933837890625,
-0.014495849609375,
-0.0162200927734375,
-0.0159149169921875,
-0.01216888427734375,
-0.0262451171875,
0.01377105712890625,
0.01016998291015625,
-0.005313873291015625,
-0.0023365020751953125,
0.02630615234375,
0.033203125,
-0.01145172119140625,
0.0478515625,
0.00960540771484375,
-0.0239410400390625,
-0.0283203125,
-0.01593017578125,
0.0323486328125,
0.0254669189453125,
-0.033843994140625,
-0.00015091896057128906,
-0.0020751953125,
-0.0189361572265625,
-0.0155181884765625,
0.021270751953125,
-0.024627685546875,
0.04150390625,
0.02508544921875,
0.001331329345703125,
0.0191802978515625,
-0.04473876953125,
0.0528564453125,
0.03900146484375,
-0.0166015625,
0.0225830078125,
-0.06097412109375,
-0.0280303955078125,
0.005908966064453125,
0.0218963623046875,
-0.042083740234375,
0.071044921875,
-0.0010213851928710938,
-0.01110076904296875,
-0.002147674560546875,
0.0242156982421875,
-0.0240325927734375,
-0.005344390869140625,
0.017852783203125,
0.030914306640625,
0.035247802734375,
-0.00754547119140625,
-0.08154296875,
0.0178070068359375,
0.016571044921875,
0.0252532958984375,
0.038421630859375,
0.00543975830078125,
0.0093994140625,
0.0005068778991699219,
0.006351470947265625,
-0.027679443359375,
-0.057891845703125,
-0.038238525390625,
0.0159454345703125,
-0.01049041748046875,
0.0216522216796875,
0.0034694671630859375,
0.035888671875,
0.039398193359375,
0.0552978515625,
0.0009136199951171875,
0.045989990234375,
0.0281524658203125,
0.039520263671875,
-0.064208984375,
-0.029693603515625,
-0.0085601806640625,
-0.01128387451171875,
-0.004970550537109375,
0.0125579833984375,
0.0031986236572265625,
0.019134521484375,
0.01021575927734375,
-0.00157928466796875,
0.0010509490966796875,
0.023681640625,
-0.01165771484375,
-0.003204345703125,
0.0155029296875,
-0.026092529296875,
-0.02862548828125,
0.034942626953125,
-0.0201568603515625,
0.014739990234375,
-0.0193939208984375,
0.006145477294921875,
0.00676727294921875,
-0.05023193359375,
-0.061767578125,
-0.009307861328125,
0.03131103515625,
0.0228424072265625,
-0.10650634765625,
0.08660888671875,
0.0008254051208496094,
0.03753662109375,
-0.02154541015625,
0.07269287109375,
-0.0176849365234375,
-0.0073699951171875,
-0.0548095703125,
-0.021942138671875,
-0.011566162109375,
0.051971435546875,
-0.00424957275390625,
0.024078369140625,
0.0138702392578125,
-0.0228271484375,
0.030670166015625,
0.0165252685546875,
0.0237579345703125,
0.049774169921875,
-0.0115966796875,
-0.0098114013671875,
-0.01995849609375,
0.023712158203125,
-0.01495361328125,
-0.049285888671875,
0.0290679931640625,
-0.039459228515625,
-0.032440185546875,
0.01202392578125,
-0.039276123046875,
-0.024627685546875,
-0.052947998046875,
-0.05047607421875,
0.0347900390625,
0.015960693359375,
-0.040618896484375,
0.0259857177734375,
0.0609130859375,
-0.0251007080078125,
0.010162353515625,
0.01285552978515625,
0.0250701904296875,
0.051849365234375,
-0.0167694091796875,
-0.01186370849609375,
0.007480621337890625,
0.006610870361328125,
-0.0153045654296875,
-0.036285400390625,
0.0102691650390625,
0.0184783935546875,
-0.00795745849609375,
-0.01410675048828125,
-0.026336669921875,
0.029144287109375,
0.017059326171875,
-0.03228759765625,
-0.010009765625,
0.020172119140625,
0.0604248046875,
0.0161285400390625,
-0.004070281982421875,
-0.08868408203125,
-0.032470703125,
0.0771484375,
0.07427978515625,
0.0382080078125,
-0.020721435546875,
-0.01074981689453125,
0.00220489501953125,
0.0079193115234375,
-0.015960693359375,
0.01462554931640625,
-0.07110595703125,
-0.0299835205078125,
0.013427734375,
-0.0382080078125,
0.0230560302734375,
0.007671356201171875,
-0.05999755859375,
0.0044403076171875,
-0.0548095703125,
-0.015838623046875,
-0.099609375,
0.023406982421875,
-0.00875091552734375,
-0.022216796875,
-0.0235137939453125,
-0.0207672119140625,
0.00345611572265625,
-0.0183258056640625,
-0.035736083984375,
-0.0447998046875,
-0.054107666015625,
0.006145477294921875,
0.0797119140625,
-0.03759765625,
0.05169677734375,
-0.06805419921875,
0.003444671630859375,
-0.004138946533203125,
-0.0188140869140625,
0.0029296875,
-0.03814697265625,
-0.036590576171875,
0.05767822265625,
-0.01045989990234375,
0.05072021484375,
-0.0196990966796875,
0.01309967041015625,
-0.0123138427734375,
0.01274871826171875,
0.033660888671875,
-0.022552490234375,
0.08544921875,
-0.04534912109375,
-0.006244659423828125,
0.002429962158203125,
0.0148773193359375,
-0.0251007080078125,
-0.00969696044921875,
-0.012237548828125,
0.00209808349609375,
0.0028247833251953125
] |
3ff7ad498c083fc597d0bfa16df9ea40728ef270 | Wordpress Stackexchange
Q: WooCommerce Subscriptions: Show monthly Price for annual Product Using WooCommerce Subscriptions, is there a way to show a monthly price as well as a "total duration" price?
On my site I have subscriptions for a month and others for a year. Those for a year look very expensive (because the price for the whole year is shown), even though their monthly price would actually be cheaper. Would be great to show them as "€10 / months (€120 / year)".
| Q: WooCommerce Subscriptions: Show monthly Price for annual Product Using WooCommerce Subscriptions, is there a way to show a monthly price as well as a "total duration" price?
On my site I have subscriptions for a month and others for a year. Those for a year look very expensive (because the price for the whole year is shown), even though their monthly price would actually be cheaper. Would be great to show them as "€10 / months (€120 / year)".
| wordpress | {
"language": "en",
"length": 80,
"provenance": "stackexchange_00019.jsonl.gz:493750",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/331891"
} | [
-0.01242828369140625,
-0.0253143310546875,
-0.03790283203125,
-0.020599365234375,
-0.032135009765625,
0.0036334991455078125,
-0.0167999267578125,
-0.0003972053527832031,
0.052642822265625,
0.035003662109375,
-0.021026611328125,
-0.05511474609375,
0.015716552734375,
-0.0127716064453125,
-0.0650634765625,
-0.0251007080078125,
0.048431396484375,
-0.0238494873046875,
0.01226043701171875,
-0.00213623046875,
-0.0391845703125,
0.01611328125,
0.039581298828125,
0.03240966796875,
0.005596160888671875,
0.009124755859375,
0.07977294921875,
-0.0168304443359375,
0.02374267578125,
-0.0103607177734375,
0.033935546875,
-0.042572021484375,
0.0028591156005859375,
-0.03265380859375,
0.08056640625,
0.04083251953125,
0.03802490234375,
0.0102691650390625,
0.04656982421875,
-0.0220184326171875,
0.0261383056640625,
-0.0166168212890625,
0.00852203369140625,
-0.03375244140625,
0.00021076202392578125,
-0.01922607421875,
0.01018524169921875,
-0.0521240234375,
-0.0067901611328125,
0.00400543212890625,
0.0284576416015625,
0.0183563232421875,
0.03265380859375,
-0.0055694580078125,
-0.004962921142578125,
-0.0100860595703125,
-0.001888275146484375,
0.01629638671875,
0.0303802490234375,
-0.052215576171875,
-0.035675048828125,
-0.0064849853515625,
0.0171966552734375,
0.02386474609375,
0.00505828857421875,
0.01074981689453125,
-0.0145721435546875,
0.012542724609375,
-0.0188446044921875,
0.004795074462890625,
0.006107330322265625,
-0.0191192626953125,
0.027099609375,
0.0142822265625,
-0.012603759765625,
-0.050140380859375,
0.003753662109375,
-0.044403076171875,
0.04656982421875,
0.013153076171875,
-0.018585205078125,
-0.0002422332763671875,
-0.028289794921875,
-0.00591278076171875,
-0.006801605224609375,
-0.00803375244140625,
-0.016143798828125,
0.0005078315734863281,
-0.0294189453125,
-0.06689453125,
-0.02484130859375,
-0.01110076904296875,
-0.08026123046875,
-0.01654052734375,
-0.0148162841796875,
-0.031402587890625,
0.0006542205810546875,
0.0401611328125,
0.01146697998046875,
-0.00762939453125,
-0.0193939208984375,
-0.01146697998046875,
-0.05120849609375,
-0.015106201171875,
-0.0024051666259765625,
0.0142822265625,
-0.005340576171875,
0.08203125,
0.065185546875,
0.035614013671875,
0.00724029541015625,
0.021453857421875,
-0.0013360977172851562,
-0.04339599609375,
0.01142120361328125,
-0.005687713623046875,
-0.036163330078125,
0.04541015625,
0.034912109375,
-0.0107879638671875,
-0.00435638427734375,
0.0482177734375,
-0.004108428955078125,
-0.0187835693359375,
-0.00489044189453125,
0.004192352294921875,
0.01384735107421875,
-0.045989990234375,
-0.0411376953125,
0.0160980224609375,
-0.0218963623046875,
0.010406494140625,
0.04833984375,
0.037261962890625,
-0.0004169940948486328,
-0.0099945068359375,
0.056976318359375,
0.0033740997314453125,
-0.0283050537109375,
0.024383544921875,
0.0007090568542480469,
0.0130462646484375,
0.00440216064453125,
-0.0266265869140625,
0.0166168212890625,
-0.01374053955078125,
0.006114959716796875,
0.0307464599609375,
0.0037975311279296875,
0.0171051025390625,
0.005367279052734375,
0.0186614990234375,
0.00897216796875,
0.0034999847412109375,
-0.01505279541015625,
0.037322998046875,
-0.0223236083984375,
0.0247955322265625,
-0.021270751953125,
0.01224517822265625,
-0.034149169921875,
-0.04925537109375,
-0.036834716796875,
-0.08050537109375,
-0.0792236328125,
0.05133056640625,
-0.0128173828125,
0.0038928985595703125,
0.01219940185546875,
-0.01105499267578125,
0.00623321533203125,
-0.0010442733764648438,
0.0097198486328125,
-0.02764892578125,
-0.0191650390625,
-0.01483917236328125,
-0.002490997314453125,
0.059234619140625,
0.040771484375,
-0.0479736328125,
-0.0214385986328125,
-0.039154052734375,
0.12310791015625,
-0.0306396484375,
0.0147552490234375,
-0.0657958984375,
0.01214599609375,
-0.048095703125,
-0.01088714599609375,
0.0171966552734375,
0.031890869140625,
0.03277587890625,
-0.0308837890625,
0.019622802734375,
0.00955963134765625,
-0.01934814453125,
-0.0285186767578125,
-0.015838623046875,
-0.018280029296875,
-0.0005373954772949219,
-0.0025768280029296875,
0.0236053466796875,
-0.001983642578125,
0.00907135009765625,
0.0023822784423828125,
0.0092926025390625,
0.005859375,
0.0215606689453125,
-0.06292724609375,
0.01384735107421875,
0.049774169921875,
0.0224761962890625,
-0.04278564453125,
-0.0206298828125,
0.019622802734375,
-0.01078033447265625,
-0.0191650390625,
0.044525146484375,
0.0153656005859375,
0.020843505859375,
0.01546478271484375,
0.00730133056640625,
0.009124755859375,
0.007488250732421875,
0.033294677734375,
-0.0151824951171875,
-0.000934600830078125,
-0.013458251953125,
0.045623779296875,
0.037353515625,
-0.04180908203125,
-0.0268096923828125,
-0.0236968994140625,
-0.00896453857421875,
-0.0227508544921875,
-0.0005617141723632812,
0.03363037109375,
-0.0213623046875,
0.0081024169921875,
0.03399658203125,
0.0333251953125,
0.0555419921875,
0.0117034912109375,
0.0111083984375,
0.1043701171875,
-0.024993896484375,
0.0020122528076171875,
-0.0033702850341796875,
-0.0019083023071289062,
0.054931640625,
0.005687713623046875,
-0.0024356842041015625,
-0.007537841796875,
-0.025115966796875,
-0.034637451171875,
0.0252532958984375,
0.0030231475830078125,
0.039276123046875,
0.0000432133674621582,
0.034210205078125,
-0.030181884765625,
0.0606689453125,
0.047943115234375,
-0.01080322265625,
-0.0059051513671875,
0.005069732666015625,
0.0019989013671875,
0.01360321044921875,
-0.025238037109375,
-0.015899658203125,
0.032257080078125,
0.041259765625,
-0.00153350830078125,
0.0014677047729492188,
-0.0240020751953125,
-0.059112548828125,
-0.0184326171875,
0.01318359375,
0.0078125,
-0.0364990234375,
0.0229644775390625,
0.049102783203125,
0.002262115478515625,
-0.0089874267578125,
-0.01751708984375,
-0.036529541015625,
0.0013256072998046875,
0.0282135009765625,
-0.0292510986328125,
-0.007476806640625,
0.027435302734375,
0.004608154296875,
-0.041900634765625,
0.01177215576171875,
-0.041961669921875,
-0.0313720703125,
0.00490570068359375,
-0.0191802978515625,
0.0277099609375,
-0.0325927734375,
-0.0229644775390625,
0.0400390625,
0.0199737548828125,
-0.008636474609375,
0.01140594482421875,
-0.01904296875,
0.01526641845703125,
0.005336761474609375,
-0.03228759765625,
0.0404052734375,
-0.1259765625,
-0.035888671875,
0.0046234130859375,
-0.010711669921875,
-0.0408935546875,
-0.0088653564453125,
-0.048919677734375,
-0.0369873046875,
-0.057708740234375,
-0.031463623046875,
-0.049774169921875,
-0.05877685546875,
-0.01073455810546875,
0.00502777099609375,
-0.0203857421875,
0.00551605224609375,
0.016143798828125,
0.01154327392578125,
-0.0753173828125,
-0.0288848876953125,
-0.03216552734375,
-0.08062744140625,
-0.04119873046875,
0.002140045166015625,
0.000858306884765625,
0.01399993896484375,
-0.01007843017578125,
0.0301055908203125,
-0.01531219482421875,
-0.057830810546875,
-0.00640106201171875,
0.04669189453125,
0.0003256797790527344,
0.0155487060546875,
0.0089874267578125,
-0.013427734375,
-0.0167694091796875,
-0.006351470947265625,
-0.019500732421875,
0.0193634033203125,
-0.01885986328125,
0.0027523040771484375,
-0.01541900634765625,
-0.016632080078125,
0.02587890625,
0.007656097412109375,
-0.013275146484375,
0.01302337646484375,
0.027862548828125,
-0.0269622802734375,
-0.0122833251953125,
-0.01050567626953125,
-0.031341552734375,
0.01074981689453125,
0.0070343017578125,
-0.0031681060791015625,
0.01441192626953125,
0.0037517547607421875,
-0.039794921875,
-0.037200927734375,
0.02813720703125,
-0.0833740234375,
0.031280517578125,
-0.00731658935546875,
-0.045379638671875,
-0.0036716461181640625,
0.0153350830078125,
-0.029083251953125,
0.04827880859375,
0.018707275390625,
0.03546142578125,
-0.0026702880859375,
0.032470703125,
-0.032989501953125,
-0.061279296875,
0.056549072265625,
0.0020904541015625,
0.0300445556640625,
-0.05078125,
-0.050689697265625,
-0.0104827880859375,
0.11004638671875,
-0.05267333984375,
-0.0227508544921875,
0.00995635986328125,
0.016387939453125,
-0.0178680419921875,
-0.0114288330078125,
-0.03363037109375,
-0.02984619140625,
0.00182342529296875,
0.01319122314453125,
-0.024627685546875,
0.00814056396484375,
0.009124755859375,
-0.056365966796875,
0.02288818359375,
-0.038909912109375,
0.036041259765625,
-0.0460205078125,
0.0212249755859375,
0.0019588470458984375,
-0.0206451416015625,
0.0016202926635742188,
-0.030548095703125,
-0.052093505859375,
-0.01470947265625,
-0.033660888671875,
0.052978515625,
0.01390838623046875,
-0.00007033348083496094,
-0.044158935546875,
0.0052490234375,
0.047454833984375,
0.01934814453125,
0.059234619140625,
-0.00826263427734375,
0.006000518798828125,
0.0265045166015625,
-0.049285888671875,
0.0086517333984375,
-0.0288238525390625,
-0.0199127197265625,
-0.09881591796875,
-0.0192108154296875,
0.00994873046875,
-0.007526397705078125,
0.11181640625,
-0.048004150390625,
0.04901123046875,
-0.05322265625,
-0.044525146484375,
-0.01227569580078125,
0.02325439453125,
-0.0323486328125,
0.018035888671875,
-0.040374755859375,
-0.04241943359375,
0.0260009765625,
0.031463623046875,
-0.044952392578125,
0.0142059326171875,
0.031494140625,
0.015899658203125,
-0.02490234375,
-0.048828125,
0.05548095703125,
0.0280914306640625,
-0.041961669921875,
0.06011962890625,
0.007320404052734375,
-0.01348114013671875,
0.06683349609375,
-0.0295562744140625,
0.0129852294921875,
-0.007366180419921875,
0.043426513671875,
-0.005924224853515625,
-0.026824951171875,
0.041168212890625,
0.00162506103515625,
-0.0110931396484375,
0.0285797119140625,
-0.016998291015625,
0.0235137939453125,
0.002826690673828125,
-0.0017004013061523438,
-0.0450439453125,
0.03399658203125,
0.025482177734375,
0.00848388671875,
-0.00041961669921875,
0.0160064697265625,
0.00609588623046875,
0.0197296142578125,
0.01531982421875,
-0.022247314453125,
0.005107879638671875,
0.0148773193359375,
-0.0089263916015625,
-0.0184326171875,
-0.020965576171875,
0.0345458984375,
-0.0213165283203125,
-0.003063201904296875,
0.00664520263671875,
0.005954742431640625,
-0.0005702972412109375,
-0.0165557861328125,
-0.039337158203125,
-0.0531005859375,
-0.01873779296875,
0.040740966796875,
0.0211334228515625,
-0.07037353515625,
0.0516357421875,
0.0894775390625,
-0.019805908203125,
0.00823211669921875,
-0.06597900390625,
-0.004451751708984375,
-0.058868408203125,
-0.01197052001953125,
0.00234222412109375,
-0.003391265869140625,
0.02099609375,
0.060791015625,
-0.03179931640625,
0.051971435546875,
0.01131439208984375,
0.031341552734375,
0.037811279296875,
0.012054443359375,
0.04864501953125,
-0.05645751953125,
0.01271820068359375,
-0.05267333984375,
-0.01444244384765625,
-0.002468109130859375,
-0.00008934736251831055,
0.01788330078125,
-0.010589599609375,
-0.0199127197265625,
-0.01052093505859375,
0.02569580078125,
0.007732391357421875,
-0.014373779296875,
-0.0024242401123046875,
-0.014862060546875,
0.00815582275390625,
-0.0236358642578125,
0.00238800048828125,
0.034820556640625,
0.0302886962890625,
-0.00031185150146484375,
-0.01270294189453125,
-0.01377105712890625,
-0.0003349781036376953,
-0.0176544189453125,
-0.0091400146484375,
-0.01558685302734375,
-0.00981903076171875,
-0.006103515625,
-0.0243072509765625,
0.0171661376953125,
-0.0369873046875,
-0.018218994140625,
-0.034423828125,
0.0101318359375,
0.06231689453125,
-0.005512237548828125,
0.05731201171875,
-0.01383209228515625,
-0.035888671875,
-0.01332855224609375,
0.0196685791015625,
0.01861572265625,
0.0205078125,
-0.042938232421875,
-0.0143585205078125,
-0.036346435546875,
-0.056182861328125,
-0.071044921875,
-0.0029087066650390625,
-0.061126708984375,
0.0302581787109375,
0.00806427001953125,
0.016693115234375,
-0.03228759765625,
-0.042724609375,
-0.0207977294921875,
0.032257080078125,
0.037078857421875,
0.0556640625,
0.058258056640625,
-0.02130126953125,
-0.016357421875,
0.02801513671875,
0.0328369140625,
-0.025360107421875,
-0.031219482421875,
-0.041595458984375,
0.045166015625,
0.041961669921875,
-0.04266357421875,
-0.03875732421875,
-0.01837158203125,
-0.05364990234375,
0.019439697265625,
-0.038482666015625,
-0.004642486572265625,
-0.018798828125,
0.007488250732421875,
-0.028045654296875,
0.04742431640625,
-0.0208587646484375,
0.0128021240234375,
-0.028961181640625,
-0.01070404052734375,
0.0217437744140625,
0.0167694091796875,
-0.0075836181640625,
0.0251922607421875,
-0.0183563232421875,
0.0225067138671875,
-0.0212249755859375,
0.0003635883331298828,
0.011993408203125,
0.032623291015625,
-0.0018205642700195312,
0.034576416015625,
0.022918701171875,
0.022491455078125,
0.032501220703125,
0.00519561767578125,
-0.049591064453125,
-0.0318603515625,
-0.0174713134765625,
-0.0182342529296875,
-0.01265716552734375,
0.005039215087890625,
0.007213592529296875,
0.022247314453125,
0.047637939453125,
0.0751953125,
-0.08270263671875,
0.007610321044921875,
0.006725311279296875,
0.004627227783203125,
0.0509033203125,
-0.00754547119140625,
-0.0099334716796875,
-0.04949951171875,
0.025665283203125,
0.00376129150390625,
-0.0034465789794921875,
-0.01255035400390625,
-0.015625,
-0.0029926300048828125,
0.0233612060546875,
0.0234222412109375,
0.0048370361328125,
-0.064453125,
-0.040374755859375,
0.04376220703125,
-0.0222930908203125,
-0.0288543701171875,
0.0075225830078125,
0.005924224853515625,
0.0236968994140625,
-0.01348876953125,
0.062286376953125,
-0.058319091796875,
0.0699462890625,
0.040802001953125,
-0.020599365234375,
-0.040618896484375,
0.05548095703125,
-0.04461669921875,
0.047393798828125,
0.006618499755859375,
-0.059783935546875,
0.019561767578125,
0.01251220703125,
-0.0167083740234375,
0.045989990234375,
-0.0762939453125,
-0.007053375244140625,
-0.06976318359375,
0.0982666015625,
0.0207977294921875,
0.041259765625,
0.0269775390625,
-0.00202178955078125,
-0.036956787109375,
0.0418701171875,
-0.010772705078125,
-0.0212554931640625,
-0.01274871826171875,
0.0031795501708984375,
-0.032623291015625,
0.0391845703125,
-0.0027103424072265625,
0.0171661376953125,
-0.014373779296875,
-0.01168060302734375,
-0.02655029296875,
0.03143310546875,
-0.0548095703125,
-0.0243988037109375,
0.0139617919921875,
0.022796630859375,
0.0286712646484375,
0.01517486572265625,
-0.018096923828125,
0.026580810546875,
0.01529693603515625,
0.006069183349609375,
0.0017004013061523438,
0.0005736351013183594,
-0.003993988037109375,
0.0030193328857421875,
0.044281005859375,
0.00041961669921875,
-0.01503753662109375,
0.00897979736328125,
0.07440185546875,
0.00927734375,
-0.0205535888671875,
0.052276611328125,
0.007495880126953125,
-0.0299072265625,
0.051910400390625,
-0.0233154296875,
0.01904296875,
-0.027679443359375,
0.033538818359375,
0.0229644775390625,
-0.0090179443359375,
-0.020843505859375,
0.03240966796875,
-0.01174163818359375,
0.01904296875,
0.00464630126953125,
-0.0250244140625,
-0.0217742919921875,
0.0538330078125,
-0.021759033203125,
0.0014743804931640625,
0.015411376953125,
0.03515625,
0.0010461807250976562,
0.034454345703125,
-0.0190277099609375,
0.01126861572265625,
0.031707763671875,
0.03668212890625,
-0.01021575927734375,
-0.0278472900390625,
0.00011533498764038086,
0.0027751922607421875,
-0.043365478515625,
-0.00600433349609375,
0.0133514404296875,
0.01837158203125,
-0.03375244140625,
-0.019012451171875,
0.0533447265625,
0.0188140869140625,
-0.005710601806640625,
-0.0482177734375,
0.0042877197265625,
0.0007805824279785156,
0.0024509429931640625,
0.0173187255859375,
0.01212310791015625,
-0.009918212890625,
0.0119476318359375,
-0.0238494873046875,
-0.0132598876953125,
0.0204315185546875,
0.048828125,
0.0183563232421875,
0.0278472900390625,
-0.046661376953125,
-0.04254150390625,
-0.0758056640625,
0.052581787109375,
0.0207061767578125,
0.0753173828125,
0.006343841552734375,
0.04840087890625,
0.00864410400390625,
-0.02264404296875,
0.0209197998046875,
0.0029449462890625,
0.0017576217651367188,
-0.048828125,
-0.01433563232421875,
-0.038543701171875,
-0.00965118408203125,
0.043975830078125,
0.00040149688720703125,
0.00838470458984375,
0.0115509033203125,
0.0135040283203125,
-0.0180511474609375,
-0.0247802734375,
0.0352783203125,
-0.029205322265625,
0.01971435546875,
-0.0246734619140625,
0.042755126953125,
0.00794219970703125,
-0.003894805908203125,
-0.0423583984375,
0.037811279296875,
0.020782470703125,
0.02056884765625,
0.0302734375,
-0.00551605224609375,
-0.0099945068359375,
-0.000008165836334228516,
0.0003192424774169922,
0.041107177734375,
0.0188446044921875,
-0.061370849609375,
0.01393890380859375,
-0.053131103515625,
-0.02984619140625,
0.0017185211181640625,
0.024932861328125,
-0.017059326171875,
0.038787841796875,
-0.011444091796875,
0.024810791015625,
-0.0027008056640625,
-0.022552490234375,
0.0156707763671875,
-0.0191650390625,
0.0231475830078125,
0.0021457672119140625,
-0.01216888427734375,
0.0031909942626953125,
-0.01169586181640625,
-0.0010929107666015625,
-0.010223388671875,
0.12005615234375,
-0.031951904296875,
0.0098419189453125,
0.007843017578125,
0.0010786056518554688,
0.003185272216796875,
-0.0163116455078125,
0.061676025390625,
-0.001560211181640625,
-0.0204620361328125,
-0.02374267578125,
-0.0170135498046875,
0.0171356201171875,
0.0101318359375,
-0.0133056640625,
-0.0287017822265625,
-0.00007051229476928711,
0.03955078125,
0.040740966796875,
0.0313720703125,
-0.01468658447265625,
-0.01282501220703125,
-0.0035915374755859375,
-0.020172119140625,
0.015625,
0.03289794921875,
0.01149749755859375,
0.017578125,
0.0218353271484375,
-0.0257415771484375,
-0.0037384033203125,
-0.0070343017578125,
0.01141357421875,
0.0290679931640625,
0.032623291015625,
0.0218353271484375,
0.0056304931640625,
-0.013214111328125,
0.0243682861328125,
0.0015592575073242188,
-0.0051422119140625,
0.03253173828125,
-0.00968170166015625,
0.021148681640625,
0.0289154052734375,
0.0244140625,
-0.026275634765625,
0.0125274658203125,
0.03326416015625,
-0.033935546875,
-0.00237274169921875,
-0.042633056640625,
-0.055877685546875,
-0.04364013671875,
0.049102783203125,
0.0297393798828125,
-0.0007781982421875,
-0.034210205078125,
-0.06817626953125,
-0.01012420654296875,
0.021697998046875,
0.004772186279296875,
-0.043548583984375,
0.008544921875,
-0.002155303955078125,
0.06439208984375,
-0.0175018310546875,
-0.03546142578125,
0.00623321533203125,
0.0182037353515625,
-0.0013532638549804688,
0.007541656494140625,
-0.037261962890625,
-0.00978851318359375,
-0.00015592575073242188,
-0.0026187896728515625,
0.0160369873046875,
-0.01398468017578125,
-0.00405120849609375,
-0.02154541015625,
0.007595062255859375,
0.0288848876953125,
-0.00653839111328125,
-0.04241943359375,
-0.00693511962890625,
-0.0009474754333496094,
0.0291595458984375,
-0.026123046875,
-0.006603240966796875,
-0.029998779296875,
-0.007518768310546875,
-0.009063720703125,
-0.017822265625,
-0.0165863037109375,
-0.0216217041015625,
-0.033233642578125,
0.052093505859375,
-0.0006680488586425781,
-0.0163726806640625,
-0.00443267822265625,
0.0116119384765625,
-0.028717041015625,
0.0274200439453125,
0.00098419189453125,
0.0275726318359375,
0.026702880859375,
0.0170440673828125,
-0.012939453125,
-0.0413818359375,
0.0187835693359375,
-0.0199127197265625,
-0.019744873046875,
0.0307464599609375,
0.060302734375,
-0.036407470703125,
0.041168212890625,
-0.03753662109375,
0.0216217041015625,
0.0195465087890625,
-0.039306640625,
-0.0794677734375,
-0.0197296142578125,
-0.017333984375,
0.0104522705078125,
-0.025054931640625,
-0.0127105712890625,
-0.0325927734375,
0.0325927734375,
-0.0033054351806640625,
0.00026535987854003906,
0.01137542724609375,
0.04522705078125,
0.01806640625,
-0.0003514289855957031,
-0.00901031494140625,
0.004230499267578125,
-0.053741455078125,
-0.02923583984375,
0.0020694732666015625,
-0.022125244140625,
-0.007518768310546875,
0.01128387451171875,
-0.0584716796875,
0.00531005859375,
-0.0182647705078125,
-0.010589599609375,
-0.0650634765625,
0.0261383056640625,
0.006099700927734375,
-0.0316162109375,
-0.03741455078125,
0.0099334716796875,
-0.01593017578125,
-0.0238494873046875,
-0.0019073486328125,
-0.04840087890625,
-0.01558685302734375,
0.0108184814453125,
0.00980377197265625,
-0.006526947021484375,
0.0246429443359375,
-0.0310821533203125,
0.03472900390625,
-0.01142120361328125,
0.03173828125,
-0.004192352294921875,
0.046295166015625,
-0.003513336181640625,
0.044769287109375,
0.017730712890625,
0.0338134765625,
-0.00006383657455444336,
0.1170654296875,
-0.0030345916748046875,
0.056488037109375,
-0.033905029296875,
-0.0191650390625,
-0.0224151611328125,
-0.023956298828125,
0.0164642333984375,
-0.007595062255859375,
-0.00910186767578125,
-0.0090179443359375,
-0.022064208984375,
-0.047882080078125,
-0.0253448486328125,
0.0041656494140625
] |
45eea4891cfb601360c14ffcc05f1972450b2f62 | Wordpress Stackexchange
Q: How to show more posts on an archive page? I'd like to show more posts on my custom archive page, but can't seem to figure out the right way to do it. Currently it displays 10, which is the number set in WP Settings and the number I'd like on my homepage. But on archives I'd like more.
Right now the call for posts is super simple:
<?php if ( have_posts() ) : ?>
<?php
// Start the loop.
while ( have_posts() ) : the_post(); ?>
This works nicely and works with my pagination. Is there a way to modify that to 100 posts? Is this where pre_get_posts would work? Thank you.
A: You can use pre_get_posts action to achieve that:
add_action( 'pre_get_posts', function ($query) {
if ( ! is_admin() && is_archive() && $query->is_main_query() ) {
$query->set( 'posts_per_page', 100 );
}
});
In the code above I use is_archive(), but you can use other conditional tags in there...
| Q: How to show more posts on an archive page? I'd like to show more posts on my custom archive page, but can't seem to figure out the right way to do it. Currently it displays 10, which is the number set in WP Settings and the number I'd like on my homepage. But on archives I'd like more.
Right now the call for posts is super simple:
<?php if ( have_posts() ) : ?>
<?php
// Start the loop.
while ( have_posts() ) : the_post(); ?>
This works nicely and works with my pagination. Is there a way to modify that to 100 posts? Is this where pre_get_posts would work? Thank you.
A: You can use pre_get_posts action to achieve that:
add_action( 'pre_get_posts', function ($query) {
if ( ! is_admin() && is_archive() && $query->is_main_query() ) {
$query->set( 'posts_per_page', 100 );
}
});
In the code above I use is_archive(), but you can use other conditional tags in there...
| wordpress | {
"language": "en",
"length": 159,
"provenance": "stackexchange_00019.jsonl.gz:493756",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/331906"
} | [
0.09979248046875,
0.039764404296875,
0.00582122802734375,
-0.00792694091796875,
0.055023193359375,
-0.050567626953125,
0.09307861328125,
-0.0655517578125,
-0.0005383491516113281,
-0.00495147705078125,
-0.046173095703125,
-0.0229339599609375,
-0.023773193359375,
-0.025146484375,
0.0122222900390625,
-0.06195068359375,
0.0662841796875,
-0.053955078125,
0.01947021484375,
-0.00809478759765625,
0.00955963134765625,
0.032745361328125,
0.0394287109375,
0.08740234375,
0.013153076171875,
0.01727294921875,
0.062164306640625,
-0.015350341796875,
0.0030422210693359375,
-0.024444580078125,
0.0213775634765625,
-0.003955841064453125,
0.043548583984375,
-0.0190887451171875,
0.00606536865234375,
0.031494140625,
-0.000682830810546875,
0.0001430511474609375,
-0.006069183349609375,
0.01453399658203125,
0.0111541748046875,
0.00023317337036132812,
0.03399658203125,
-0.0121917724609375,
0.0183868408203125,
-0.01515960693359375,
0.0026092529296875,
-0.059234619140625,
-0.0290374755859375,
-0.020599365234375,
0.0158843994140625,
0.015045166015625,
0.02740478515625,
-0.0115203857421875,
0.005535125732421875,
0.0190277099609375,
0.020751953125,
-0.01983642578125,
0.0699462890625,
-0.0733642578125,
-0.06781005859375,
-0.054962158203125,
0.062744140625,
-0.00738525390625,
-0.02313232421875,
0.00821685791015625,
0.0169525146484375,
0.004505157470703125,
-0.054351806640625,
-0.043548583984375,
0.0250701904296875,
-0.0224761962890625,
0.0295562744140625,
-0.0295867919921875,
-0.0460205078125,
0.012786865234375,
-0.0199127197265625,
0.0019445419311523438,
0.0382080078125,
-0.053863525390625,
-0.007099151611328125,
0.0077667236328125,
-0.033905029296875,
0.0013561248779296875,
-0.0123138427734375,
0.004482269287109375,
-0.023223876953125,
-0.0110015869140625,
-0.00331878662109375,
0.00421905517578125,
-0.00673675537109375,
-0.062103271484375,
-0.007785797119140625,
0.051605224609375,
0.043701171875,
-0.03790283203125,
0.01287078857421875,
0.0318603515625,
-0.0165557861328125,
-0.007659912109375,
-0.027130126953125,
-0.0202484130859375,
-0.002044677734375,
-0.01806640625,
-0.0020885467529296875,
-0.01097869873046875,
0.023468017578125,
0.045257568359375,
0.043975830078125,
0.049102783203125,
-0.0092315673828125,
0.056396484375,
-0.02239990234375,
-0.0132293701171875,
-0.0272216796875,
0.0031337738037109375,
-0.044403076171875,
-0.01471710205078125,
-0.004978179931640625,
-0.0103912353515625,
0.00405120849609375,
0.037261962890625,
0.00524139404296875,
-0.040557861328125,
-0.01284027099609375,
-0.0157928466796875,
-0.005107879638671875,
-0.053741455078125,
0.04046630859375,
0.06805419921875,
-0.0308837890625,
-0.0161285400390625,
-0.0182647705078125,
-0.04266357421875,
-0.0236663818359375,
-0.029083251953125,
0.0170745849609375,
-0.01538848876953125,
-0.0127410888671875,
0.0142822265625,
-0.005084991455078125,
-0.0333251953125,
-0.01541900634765625,
-0.0040283203125,
0.01611328125,
0.034912109375,
0.030792236328125,
0.0030498504638671875,
-0.0141754150390625,
-0.04754638671875,
0.008819580078125,
-0.0008378028869628906,
0.02484130859375,
-0.003925323486328125,
-0.0194549560546875,
-0.0159912109375,
-0.0236053466796875,
-0.01329803466796875,
0.00927734375,
-0.00438690185546875,
0.03759765625,
-0.01081085205078125,
-0.007488250732421875,
-0.041961669921875,
-0.059417724609375,
0.0110626220703125,
-0.060150146484375,
-0.0202484130859375,
0.0240325927734375,
0.032196044921875,
0.0262908935546875,
-0.03271484375,
0.0309600830078125,
-0.013763427734375,
-0.0303802490234375,
0.00685882568359375,
-0.01499176025390625,
0.01268768310546875,
0.018768310546875,
0.042572021484375,
0.01427459716796875,
-0.027618408203125,
0.03656005859375,
0.006748199462890625,
-0.04278564453125,
0.0133056640625,
0.0193023681640625,
0.04827880859375,
-0.0009407997131347656,
0.0263824462890625,
0.01276397705078125,
0.036102294921875,
-0.047821044921875,
0.00901031494140625,
-0.01021575927734375,
-0.0003769397735595703,
-0.016082763671875,
-0.00943756103515625,
-0.00887298583984375,
0.0157928466796875,
0.00452423095703125,
0.0004169940948486328,
-0.0192718505859375,
0.01242828369140625,
-0.043060302734375,
-0.0023670196533203125,
-0.0180206298828125,
0.024383544921875,
0.01062774658203125,
0.0489501953125,
-0.00029015541076660156,
0.0121917724609375,
-0.01546478271484375,
-0.03466796875,
-0.0111083984375,
-0.0098724365234375,
-0.01493072509765625,
-0.003925323486328125,
-0.034332275390625,
-0.00730133056640625,
0.0016307830810546875,
-0.02947998046875,
-0.019073486328125,
0.049774169921875,
0.085693359375,
-0.051025390625,
-0.01357269287109375,
-0.06005859375,
0.01012420654296875,
0.004459381103515625,
-0.121826171875,
0.077392578125,
0.0518798828125,
0.038818359375,
-0.018951416015625,
-0.0244293212890625,
-0.00472259521484375,
-0.07244873046875,
0.0213165283203125,
0.06280517578125,
0.0311737060546875,
0.0029239654541015625,
-0.003482818603515625,
0.0048065185546875,
0.0306854248046875,
-0.01806640625,
0.0245361328125,
-0.01354217529296875,
-0.004093170166015625,
0.014434814453125,
-0.009307861328125,
-0.01065826416015625,
0.011962890625,
-0.033294677734375,
0.01177978515625,
0.0170440673828125,
0.030853271484375,
0.052459716796875,
-0.0430908203125,
-0.0028743743896484375,
0.015777587890625,
0.0176544189453125,
-0.04241943359375,
0.014678955078125,
-0.00009310245513916016,
0.0204925537109375,
0.0092620849609375,
0.00782012939453125,
-0.0267791748046875,
0.031036376953125,
0.00389862060546875,
-0.020751953125,
0.0092010498046875,
-0.054595947265625,
-0.07110595703125,
-0.00116729736328125,
-0.03033447265625,
0.0447998046875,
0.017852783203125,
-0.05328369140625,
-0.0175323486328125,
0.0228118896484375,
-0.0208892822265625,
-0.008575439453125,
-0.01401519775390625,
-0.0574951171875,
0.003448486328125,
0.0283203125,
-0.043060302734375,
0.00234222412109375,
0.02716064453125,
0.037811279296875,
-0.021240234375,
0.0177459716796875,
-0.05242919921875,
0.01523590087890625,
0.024169921875,
-0.11370849609375,
0.08642578125,
-0.056121826171875,
0.0926513671875,
0.098388671875,
-0.024932861328125,
0.0484619140625,
0.0012674331665039062,
0.0171661376953125,
-0.01312255859375,
0.032745361328125,
-0.0021686553955078125,
-0.043182373046875,
-0.0260162353515625,
0.000591278076171875,
0.029144287109375,
0.049652099609375,
0.0241241455078125,
-0.0266876220703125,
0.012908935546875,
0.048095703125,
-0.035064697265625,
-0.06170654296875,
0.036224365234375,
-0.1181640625,
-0.00421905517578125,
-0.0237274169921875,
-0.0677490234375,
-0.026641845703125,
0.0322265625,
0.00921630859375,
-0.0355224609375,
-0.0257415771484375,
0.009368896484375,
-0.04461669921875,
-0.037353515625,
-0.010986328125,
0.029510498046875,
-0.0022220611572265625,
-0.0034351348876953125,
0.087890625,
-0.00881195068359375,
-0.09613037109375,
-0.02490234375,
0.00376129150390625,
-0.033203125,
0.0192413330078125,
0.039764404296875,
-0.0217437744140625,
-0.007537841796875,
0.0114898681640625,
0.03369140625,
0.033660888671875,
-0.039520263671875,
-0.01116180419921875,
-0.0190277099609375,
0.01296234130859375,
0.0118560791015625,
0.007442474365234375,
0.0166473388671875,
0.03314208984375,
0.00103759765625,
-0.01800537109375,
-0.004314422607421875,
-0.015838623046875,
-0.038787841796875,
-0.037689208984375,
0.0124969482421875,
0.0181732177734375,
-0.032684326171875,
-0.007259368896484375,
-0.032257080078125,
-0.0180816650390625,
0.038726806640625,
-0.047607421875,
0.041259765625,
-0.01474761962890625,
-0.0175323486328125,
-0.0056915283203125,
0.0137786865234375,
-0.024139404296875,
0.0175018310546875,
0.0020656585693359375,
-0.004688262939453125,
0.0005521774291992188,
0.0017528533935546875,
-0.00376129150390625,
-0.057586669921875,
0.043975830078125,
0.001186370849609375,
0.02294921875,
-0.0401611328125,
-0.0362548828125,
-0.00888824462890625,
0.0947265625,
-0.056671142578125,
-0.031982421875,
0.00732421875,
0.0161590576171875,
-0.00615692138671875,
-0.0106048583984375,
-0.012847900390625,
-0.02911376953125,
-0.049560546875,
0.01166534423828125,
-0.0291748046875,
-0.004558563232421875,
-0.031524658203125,
-0.0150909423828125,
-0.03631591796875,
-0.039581298828125,
0.0140228271484375,
-0.003986358642578125,
-0.006336212158203125,
-0.0228729248046875,
0.0030727386474609375,
-0.043487548828125,
0.0008420944213867188,
-0.00893402099609375,
-0.1204833984375,
-0.0280303955078125,
0.0190887451171875,
0.060394287109375,
0.0006170272827148438,
-0.04754638671875,
-0.017364501953125,
0.05950927734375,
0.040283203125,
0.05255126953125,
0.0029850006103515625,
-0.010955810546875,
-0.0175628662109375,
-0.051727294921875,
0.021331787109375,
-0.0543212890625,
-0.003025054931640625,
-0.041473388671875,
-0.0006337165832519531,
-0.02166748046875,
-0.0721435546875,
-0.01483917236328125,
-0.060760498046875,
0.00013518333435058594,
-0.046234130859375,
-0.0224151611328125,
-0.0107879638671875,
0.010833740234375,
0.00844573974609375,
-0.0297698974609375,
-0.02301025390625,
-0.05914306640625,
-0.0148162841796875,
0.0272064208984375,
-0.036346435546875,
0.0240020751953125,
0.0579833984375,
0.0241851806640625,
-0.00824737548828125,
-0.08782958984375,
0.01287841796875,
0.01457977294921875,
-0.0149993896484375,
0.03192138671875,
0.0018777847290039062,
-0.004146575927734375,
0.02923583984375,
-0.027923583984375,
-0.0128936767578125,
0.0130462646484375,
0.00431060791015625,
-0.00476837158203125,
-0.01030731201171875,
-0.0029926300048828125,
-0.01384735107421875,
0.04034423828125,
-0.0257110595703125,
-0.006801605224609375,
-0.023223876953125,
0.019561767578125,
0.0660400390625,
-0.006481170654296875,
0.0328369140625,
-0.04974365234375,
-0.00847625732421875,
0.005218505859375,
0.0209197998046875,
0.04248046875,
-0.00528717041015625,
0.0160369873046875,
0.0048980712890625,
0.0032558441162109375,
0.007579803466796875,
0.0100250244140625,
0.0300445556640625,
-0.004215240478515625,
0.054412841796875,
-0.0206298828125,
0.0001647472381591797,
-0.00890350341796875,
-0.0008826255798339844,
0.022613525390625,
-0.0253143310546875,
-0.05914306640625,
-0.0278472900390625,
0.007091522216796875,
0.014251708984375,
0.044189453125,
-0.036163330078125,
0.0281982421875,
0.03814697265625,
-0.0300140380859375,
0.004886627197265625,
-0.01383209228515625,
-0.037139892578125,
-0.05389404296875,
0.005542755126953125,
0.0253753662109375,
-0.008819580078125,
0.01020050048828125,
0.08123779296875,
-0.0037670135498046875,
0.05340576171875,
-0.0285186767578125,
0.0006389617919921875,
0.017242431640625,
0.0390625,
0.036529541015625,
-0.028289794921875,
-0.0220794677734375,
0.0240020751953125,
-0.009185791015625,
-0.003704071044921875,
0.0038890838623046875,
0.005046844482421875,
0.0241546630859375,
0.03240966796875,
0.00888824462890625,
-0.0006318092346191406,
-0.025390625,
-0.029296875,
0.028289794921875,
0.0060882568359375,
-0.01241302490234375,
-0.0328369140625,
0.000797271728515625,
0.0306396484375,
0.01377105712890625,
-0.0128326416015625,
0.0223846435546875,
-0.011260986328125,
0.036895751953125,
-0.034698486328125,
0.0012350082397460938,
0.0037841796875,
0.002353668212890625,
-0.01751708984375,
-0.0278472900390625,
-0.012054443359375,
-0.0123748779296875,
-0.0285797119140625,
-0.01446533203125,
-0.01187896728515625,
0.029632568359375,
-0.019683837890625,
0.006237030029296875,
-0.0021648406982421875,
-0.0235443115234375,
-0.0189056396484375,
0.03448486328125,
0.0169677734375,
-0.01132965087890625,
-0.07489013671875,
0.0209197998046875,
-0.06365966796875,
-0.00691986083984375,
-0.019866943359375,
-0.01551055908203125,
-0.051177978515625,
-0.00839996337890625,
0.048919677734375,
0.030059814453125,
0.005588531494140625,
-0.055023193359375,
-0.04278564453125,
0.01593017578125,
0.053680419921875,
0.0848388671875,
-0.011566162109375,
0.047332763671875,
0.006671905517578125,
0.053741455078125,
0.01424407958984375,
0.005123138427734375,
-0.0066680908203125,
-0.0258026123046875,
0.032623291015625,
-0.0472412109375,
-0.03497314453125,
0.018524169921875,
-0.017669677734375,
-0.0259246826171875,
-0.0272369384765625,
-0.01538848876953125,
-0.0093231201171875,
-0.022369384765625,
0.007904052734375,
-0.0102386474609375,
0.0528564453125,
-0.0147857666015625,
-0.010101318359375,
0.02386474609375,
-0.0003457069396972656,
0.0394287109375,
0.01363372802734375,
-0.03240966796875,
0.033843994140625,
0.0037021636962890625,
0.035369873046875,
-0.0277557373046875,
-0.028411865234375,
0.04034423828125,
0.04620361328125,
0.009063720703125,
0.040802001953125,
0.009429931640625,
0.0135040283203125,
0.0064849853515625,
-0.0057525634765625,
-0.014068603515625,
0.016845703125,
0.042388916015625,
-0.0005426406860351562,
-0.0078582763671875,
0.026031494140625,
-0.015899658203125,
0.0005173683166503906,
-0.017578125,
0.0009708404541015625,
-0.003978729248046875,
0.01177978515625,
-0.0120391845703125,
-0.0162353515625,
0.0294647216796875,
-0.00267791748046875,
0.003692626953125,
-0.00014579296112060547,
0.079833984375,
-0.0212860107421875,
0.00925445556640625,
0.04461669921875,
-0.009185791015625,
0.00557708740234375,
-0.03839111328125,
0.005115509033203125,
0.004974365234375,
-0.0180816650390625,
0.03729248046875,
0.0169677734375,
0.0126190185546875,
-0.0008969306945800781,
-0.0063629150390625,
-0.0186767578125,
-0.0240478515625,
-0.0372314453125,
-0.0025768280029296875,
-0.050201416015625,
0.00548553466796875,
0.0199432373046875,
0.035400390625,
0.01258087158203125,
0.0361328125,
0.0007348060607910156,
0.0226287841796875,
0.00032711029052734375,
-0.0193634033203125,
-0.039520263671875,
-0.040191650390625,
0.009429931640625,
-0.00017189979553222656,
-0.03643798828125,
0.023529052734375,
-0.010894775390625,
-0.046905517578125,
-0.0207672119140625,
-0.0255584716796875,
0.0765380859375,
-0.0191650390625,
-0.020416259765625,
0.041534423828125,
0.016143798828125,
-0.04962158203125,
0.0022335052490234375,
0.032012939453125,
-0.05462646484375,
-0.00806427001953125,
0.022125244140625,
-0.01128387451171875,
-0.0072784423828125,
0.017974853515625,
-0.022430419921875,
0.06402587890625,
-0.01195526123046875,
-0.0159912109375,
-0.019866943359375,
0.04888916015625,
0.027008056640625,
0.06243896484375,
-0.031951904296875,
0.0290374755859375,
-0.0192413330078125,
0.017822265625,
-0.08294677734375,
-0.002231597900390625,
-0.024627685546875,
0.04022216796875,
0.039031982421875,
0.008026123046875,
-0.018829345703125,
-0.02117919921875,
0.0293731689453125,
0.060394287109375,
0.018646240234375,
0.01922607421875,
0.01200103759765625,
0.03472900390625,
0.07257080078125,
-0.0318603515625,
0.0231170654296875,
0.042449951171875,
-0.00666046142578125,
0.038665771484375,
0.006885528564453125,
0.01189422607421875,
-0.00484466552734375,
0.01580810546875,
-0.0168914794921875,
0.000036835670471191406,
0.0150604248046875,
-0.01493072509765625,
-0.00595855712890625,
0.07080078125,
0.054718017578125,
-0.036712646484375,
-0.0185546875,
-0.036224365234375,
0.04315185546875,
-0.006500244140625,
0.0262908935546875,
0.03778076171875,
0.007732391357421875,
0.041229248046875,
0.0024509429931640625,
0.01410675048828125,
0.0157012939453125,
-0.0187835693359375,
0.033233642578125,
0.0298919677734375,
0.020172119140625,
-0.0246124267578125,
-0.013763427734375,
0.040618896484375,
0.05828857421875,
-0.034393310546875,
-0.0251922607421875,
0.0283660888671875,
0.00519561767578125,
-0.024505615234375,
-0.003780364990234375,
-0.013092041015625,
0.0186614990234375,
0.042816162109375,
-0.028106689453125,
-0.023162841796875,
-0.01372528076171875,
0.042144775390625,
-0.00667572021484375,
-0.0199127197265625,
0.003986358642578125,
-0.04913330078125,
-0.006679534912109375,
-0.024200439453125,
-0.00675201416015625,
0.0295867919921875,
0.042755126953125,
0.00296783447265625,
-0.009307861328125,
0.004673004150390625,
0.00966644287109375,
0.038299560546875,
-0.01560211181640625,
-0.0130157470703125,
-0.023590087890625,
-0.036895751953125,
-0.0225982666015625,
0.0272064208984375,
0.023681640625,
-0.028411865234375,
0.01477813720703125,
0.029266357421875,
-0.0002586841583251953,
-0.0152435302734375,
0.054779052734375,
0.0061798095703125,
0.021881103515625,
-0.0377197265625,
0.0185699462890625,
0.007068634033203125,
-0.0048065185546875,
-0.0030536651611328125,
-0.003231048583984375,
0.04949951171875,
0.010711669921875,
-0.0015821456909179688,
0.01029205322265625,
-0.029449462890625,
0.028076171875,
-0.00921630859375,
0.038177490234375,
0.0197906494140625,
-0.06591796875,
-0.019805908203125,
-0.033843994140625,
-0.037445068359375,
0.0225067138671875,
0.041839599609375,
-0.0126495361328125,
0.0113067626953125,
0.044281005859375,
-0.01480865478515625,
-0.000213623046875,
0.009429931640625,
0.0182037353515625,
0.039215087890625,
0.03265380859375,
0.038116455078125,
-0.050750732421875,
-0.04132080078125,
-0.0076751708984375,
0.04498291015625,
0.00934600830078125,
0.01001739501953125,
0.00963592529296875,
0.0223388671875,
0.0196990966796875,
0.01385498046875,
-0.0012521743774414062,
0.0158233642578125,
0.0284271240234375,
0.006561279296875,
0.0140838623046875,
-0.02313232421875,
-0.0328369140625,
0.01282501220703125,
0.034942626953125,
-0.0465087890625,
0.036712646484375,
-0.041290283203125,
0.00604248046875,
-0.041656494140625,
-0.006313323974609375,
-0.0289459228515625,
-0.01192474365234375,
-0.035003662109375,
-0.006122589111328125,
0.03228759765625,
-0.034149169921875,
-0.0625,
0.0445556640625,
0.03839111328125,
-0.008758544921875,
0.006984710693359375,
-0.0177764892578125,
0.0183258056640625,
0.0293731689453125,
0.04107666015625,
0.000026106834411621094,
0.020416259765625,
-0.023651123046875,
0.03271484375,
0.004764556884765625,
0.029998779296875,
0.0175933837890625,
-0.0039825439453125,
-0.006343841552734375,
-0.009246826171875,
0.0298919677734375,
-0.018096923828125,
0.00653839111328125,
-0.020172119140625,
0.006244659423828125,
0.0189056396484375,
0.0094757080078125,
-0.024658203125,
-0.03289794921875,
-0.0008463859558105469,
0.0057373046875,
-0.00637054443359375,
-0.0240478515625,
-0.0257415771484375,
-0.01678466796875,
0.03204345703125,
0.02288818359375,
-0.07489013671875,
0.050018310546875,
0.0012998580932617188,
0.0244293212890625,
-0.037841796875,
-0.04180908203125,
0.0065765380859375,
0.015716552734375,
0.0018053054809570312,
-0.0024967193603515625,
-0.046417236328125,
0.00266265869140625,
-0.018829345703125,
-0.0015544891357421875,
0.007030487060546875,
-0.0231475830078125,
-0.0145111083984375,
-0.0281982421875,
0.004024505615234375,
0.00936126708984375,
0.045562744140625,
0.01219940185546875,
0.023345947265625,
0.01078033447265625,
-0.035980224609375,
-0.0958251953125,
0.01457977294921875,
-0.0494384765625,
-0.0222320556640625,
-0.0038604736328125,
0.0207366943359375,
0.045806884765625,
-0.01534271240234375,
-0.062469482421875,
0.06585693359375,
-0.025787353515625,
-0.0335693359375,
-0.034576416015625,
0.027587890625,
-0.006969451904296875,
-0.012451171875,
0.00452423095703125,
-0.006923675537109375,
-0.0023632049560546875,
-0.005336761474609375,
0.0184326171875,
0.022613525390625,
0.0195159912109375,
0.01192474365234375,
-0.029754638671875,
0.000980377197265625,
-0.0034618377685546875,
0.0120697021484375,
0.00733184814453125,
0.00002950429916381836,
0.019439697265625,
0.038055419921875,
-0.04364013671875,
0.01042938232421875,
-0.0018987655639648438,
0.031494140625,
0.020233154296875,
-0.0304718017578125,
-0.054931640625,
-0.05511474609375,
0.0271148681640625,
0.017608642578125,
0.0206298828125,
0.0023517608642578125,
0.0274810791015625,
-0.0023174285888671875,
-0.0367431640625,
-0.0240325927734375,
0.0007314682006835938,
-0.026885986328125,
-0.01788330078125,
-0.033477783203125,
-0.0136871337890625,
0.0206756591796875,
-0.0273284912109375,
-0.038665771484375,
-0.006622314453125,
-0.04931640625,
-0.006366729736328125,
-0.045989990234375,
-0.0025196075439453125,
0.058258056640625,
-0.0345458984375,
-0.0137176513671875,
-0.00637054443359375,
0.0066680908203125,
0.005268096923828125,
-0.004802703857421875,
-0.044952392578125,
-0.021148681640625,
-0.002681732177734375,
0.0308990478515625,
-0.019500732421875,
0.0163116455078125,
-0.0220489501953125,
0.02471923828125,
0.031402587890625,
0.01617431640625,
-0.017913818359375,
-0.0010356903076171875,
0.0088043212890625,
-0.0004799365997314453,
-0.052093505859375,
0.0721435546875,
0.0128326416015625,
0.035614013671875,
0.01097869873046875,
0.023162841796875,
-0.050567626953125,
0.001102447509765625,
-0.056488037109375,
-0.036346435546875,
0.00348663330078125,
-0.0205230712890625,
-0.015838623046875,
-0.028076171875,
0.00800323486328125,
0.0241241455078125,
-0.007190704345703125,
0.02276611328125
] |
a3af6f79dd07a7471e8b3ca528360cf36a09751a | Wordpress Stackexchange
Q: Woocommerce get selected shipping zone id for the current user How can I get the selected shipping zone id based on current user in WooCommerce?
I tried the code below, but I didn't get the zone id from the cart page:
$bh_packages = $cart->get_shipping_packages();
$shipping_zone = wc_get_shipping_zone( $bh_packages );
$zone = $shipping_zone->get_zone_name();
var_dump($zone);
A: The problem is that WC_Cart get_shipping_packages() method gives an array of shipping packages and the function wc_get_shipping_zone( $package ) expect to have as argument a unique package.
So you need to get only one package, using for example php reset() function like:
// Get cart shipping packages
$shipping_packages = WC()->cart->get_shipping_packages();
// Get the WC_Shipping_Zones instance object for the first package
$shipping_zone = wc_get_shipping_zone( reset( $shipping_packages ) );
$zone_id = $shipping_zone->get_id(); // Get the zone ID
$zone_name = $shipping_zone->get_zone_name(); // Get the zone name
// Testing output
echo '<p>Zone id: ' . $zone_id . ' | Zone name: ' . $zone_name . '</p>';
Tested and works.
| Q: Woocommerce get selected shipping zone id for the current user How can I get the selected shipping zone id based on current user in WooCommerce?
I tried the code below, but I didn't get the zone id from the cart page:
$bh_packages = $cart->get_shipping_packages();
$shipping_zone = wc_get_shipping_zone( $bh_packages );
$zone = $shipping_zone->get_zone_name();
var_dump($zone);
A: The problem is that WC_Cart get_shipping_packages() method gives an array of shipping packages and the function wc_get_shipping_zone( $package ) expect to have as argument a unique package.
So you need to get only one package, using for example php reset() function like:
// Get cart shipping packages
$shipping_packages = WC()->cart->get_shipping_packages();
// Get the WC_Shipping_Zones instance object for the first package
$shipping_zone = wc_get_shipping_zone( reset( $shipping_packages ) );
$zone_id = $shipping_zone->get_id(); // Get the zone ID
$zone_name = $shipping_zone->get_zone_name(); // Get the zone name
// Testing output
echo '<p>Zone id: ' . $zone_id . ' | Zone name: ' . $zone_name . '</p>';
Tested and works.
| wordpress | {
"language": "en",
"length": 160,
"provenance": "stackexchange_00019.jsonl.gz:494016",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/332811"
} | [
0.018402099609375,
-0.0089874267578125,
0.001697540283203125,
-0.006591796875,
-0.01488494873046875,
-0.0238037109375,
0.01678466796875,
-0.0219268798828125,
0.0022754669189453125,
0.057861328125,
-0.030517578125,
0.0253143310546875,
-0.0128021240234375,
0.00936126708984375,
-0.05975341796875,
-0.0307769775390625,
0.02435302734375,
0.00029540061950683594,
-0.0178985595703125,
-0.0198211669921875,
-0.0184326171875,
0.01497650146484375,
-0.045013427734375,
0.11065673828125,
0.0433349609375,
-0.0352783203125,
0.073974609375,
-0.003482818603515625,
0.05096435546875,
-0.0008478164672851562,
0.037261962890625,
-0.055450439453125,
0.0135650634765625,
-0.03570556640625,
0.03765869140625,
-0.032958984375,
0.01351165771484375,
-0.0119171142578125,
0.0289764404296875,
-0.0011472702026367188,
0.046661376953125,
-0.024200439453125,
-0.0302886962890625,
0.025360107421875,
-0.03192138671875,
-0.04180908203125,
0.047821044921875,
-0.013885498046875,
0.015228271484375,
0.01442718505859375,
0.032806396484375,
0.005771636962890625,
0.0278472900390625,
0.0273895263671875,
-0.02264404296875,
0.004940032958984375,
-0.061859130859375,
0.0589599609375,
0.0247802734375,
-0.00342559814453125,
-0.00412750244140625,
-0.01202392578125,
0.0236358642578125,
0.0012311935424804688,
0.0018520355224609375,
0.015899658203125,
0.005184173583984375,
0.01241302490234375,
-0.0205078125,
0.0006537437438964844,
0.01019287109375,
-0.0264739990234375,
0.01177978515625,
0.02606201171875,
-0.021636962890625,
-0.0343017578125,
0.00797271728515625,
-0.016510009765625,
0.02606201171875,
0.0173492431640625,
0.040252685546875,
-0.0266571044921875,
-0.038909912109375,
0.05438232421875,
-0.0088958740234375,
0.0369873046875,
0.00766754150390625,
-0.03155517578125,
-0.0224151611328125,
-0.0006394386291503906,
-0.023651123046875,
-0.0146026611328125,
-0.0144195556640625,
0.02947998046875,
-0.0288238525390625,
-0.01132965087890625,
0.004032135009765625,
0.0181884765625,
-0.0313720703125,
-0.017425537109375,
0.035888671875,
-0.0428466796875,
0.0223846435546875,
-0.023345947265625,
0.0012073516845703125,
-0.0014781951904296875,
0.0176239013671875,
-0.0008769035339355469,
0.011016845703125,
0.006885528564453125,
-0.031524658203125,
0.01311492919921875,
0.02838134765625,
-0.0187530517578125,
-0.025146484375,
-0.035797119140625,
-0.03302001953125,
0.0243072509765625,
0.016448974609375,
-0.050201416015625,
0.0025386810302734375,
0.01168060302734375,
-0.017364501953125,
-0.00701904296875,
0.035736083984375,
0.01308441162109375,
-0.0174713134765625,
0.0021610260009765625,
0.00424957275390625,
0.003353118896484375,
-0.024627685546875,
0.007549285888671875,
0.02117919921875,
0.03765869140625,
0.0034122467041015625,
-0.00972747802734375,
0.01099395751953125,
0.00833892822265625,
0.00531768798828125,
-0.00896453857421875,
0.0443115234375,
0.0022983551025390625,
-0.0168304443359375,
0.01275634765625,
0.0201873779296875,
-0.0113372802734375,
0.0081634521484375,
0.024993896484375,
0.017730712890625,
0.0276947021484375,
-0.0147705078125,
0.00913238525390625,
-0.0041656494140625,
0.0379638671875,
0.03277587890625,
0.04962158203125,
0.054901123046875,
-0.01438140869140625,
-0.043121337890625,
-0.0102996826171875,
0.036468505859375,
-0.0186767578125,
-0.0148773193359375,
-0.0170135498046875,
-0.06719970703125,
0.03533935546875,
-0.02484130859375,
-0.01531219482421875,
0.0313720703125,
-0.0016689300537109375,
0.0286712646484375,
-0.00846099853515625,
0.04510498046875,
0.0204620361328125,
-0.0018301010131835938,
0.011810302734375,
0.033935546875,
0.032379150390625,
0.0179443359375,
0.0008883476257324219,
-0.020965576171875,
-0.028778076171875,
0.0772705078125,
-0.0307159423828125,
-0.007106781005859375,
-0.01800537109375,
0.04974365234375,
0.0248260498046875,
-0.03326416015625,
0.03778076171875,
0.01131439208984375,
0.043975830078125,
-0.06268310546875,
-0.03607177734375,
-0.003475189208984375,
0.024078369140625,
0.02471923828125,
0.0093841552734375,
0.01763916015625,
0.002346038818359375,
0.029571533203125,
-0.042205810546875,
0.07427978515625,
-0.036468505859375,
0.049560546875,
-0.01190948486328125,
0.025604248046875,
0.00518035888671875,
0.006488800048828125,
-0.000324249267578125,
0.015899658203125,
0.0006327629089355469,
-0.01233673095703125,
-0.037933349609375,
-0.036865234375,
-0.0093841552734375,
-0.04107666015625,
0.055999755859375,
-0.0148468017578125,
0.043975830078125,
-0.034088134765625,
-0.04559326171875,
-0.0195465087890625,
-0.043548583984375,
-0.0273284912109375,
0.009246826171875,
-0.0080718994140625,
0.00464630126953125,
0.0251922607421875,
0.01149749755859375,
0.0469970703125,
-0.03094482421875,
-0.0015239715576171875,
0.034149169921875,
-0.01360321044921875,
-0.0136566162109375,
0.0027980804443359375,
-0.055999755859375,
0.0295562744140625,
0.03497314453125,
0.0273284912109375,
0.035980224609375,
0.00373077392578125,
-0.004009246826171875,
0.04705810546875,
-0.061920166015625,
0.00011962652206420898,
0.005275726318359375,
0.0236663818359375,
0.06787109375,
-0.0172119140625,
0.0111236572265625,
0.006816864013671875,
0.015716552734375,
-0.0031566619873046875,
0.0423583984375,
-0.035552978515625,
-0.001995086669921875,
-0.006290435791015625,
0.024139404296875,
-0.01399993896484375,
-0.0214385986328125,
0.0254669189453125,
-0.036468505859375,
0.0266876220703125,
0.019500732421875,
0.0340576171875,
0.026336669921875,
-0.0305938720703125,
0.0241241455078125,
0.006404876708984375,
-0.024078369140625,
-0.003021240234375,
0.0198516845703125,
-0.005859375,
0.00771331787109375,
-0.0291748046875,
-0.01477813720703125,
0.017364501953125,
0.004077911376953125,
-0.0026493072509765625,
-0.020660400390625,
-0.021820068359375,
0.0016450881958007812,
0.035797119140625,
-0.026611328125,
0.01849365234375,
0.040191650390625,
-0.038848876953125,
-0.01361846923828125,
-0.0089111328125,
0.0300750732421875,
-0.06903076171875,
0.048858642578125,
-0.0233917236328125,
-0.01462554931640625,
0.0276031494140625,
0.0282745361328125,
-0.0011234283447265625,
0.0025119781494140625,
0.013519287109375,
0.02764892578125,
0.01169586181640625,
-0.0175018310546875,
0.0224456787109375,
-0.06695556640625,
0.024505615234375,
0.0048370361328125,
-0.0038967132568359375,
0.014251708984375,
-0.08331298828125,
0.0416259765625,
0.0210418701171875,
0.00983428955078125,
-0.007770538330078125,
-0.02783203125,
-0.0279388427734375,
0.00933837890625,
-0.06671142578125,
-0.0379638671875,
-0.0151519775390625,
-0.03759765625,
0.006473541259765625,
-0.0164794921875,
-0.00823211669921875,
-0.0013475418090820312,
-0.00937652587890625,
-0.005710601806640625,
-0.017791748046875,
-0.04180908203125,
-0.070556640625,
-0.07080078125,
-0.059051513671875,
0.0266571044921875,
-0.01318359375,
-0.0002396106719970703,
-0.0036163330078125,
-0.01303863525390625,
-0.0426025390625,
-0.05120849609375,
-0.040985107421875,
0.00588226318359375,
0.0095977783203125,
-0.038543701171875,
-0.022064208984375,
-0.005764007568359375,
0.01751708984375,
0.005565643310546875,
-0.028656005859375,
-0.0002758502960205078,
0.01163482666015625,
-0.0226898193359375,
0.022003173828125,
-0.01451873779296875,
0.03216552734375,
0.01010894775390625,
-0.04302978515625,
0.005584716796875,
0.03668212890625,
-0.0460205078125,
0.0005159378051757812,
-0.03515625,
-0.025787353515625,
0.0240325927734375,
0.01428985595703125,
0.004680633544921875,
-0.0019855499267578125,
0.009185791015625,
0.041717529296875,
0.031005859375,
-0.01042938232421875,
0.0118560791015625,
0.0202178955078125,
0.019927978515625,
0.042266845703125,
-0.01174163818359375,
0.046356201171875,
0.0067291259765625,
-0.0391845703125,
0.0025730133056640625,
0.026702880859375,
-0.02093505859375,
0.0009756088256835938,
-0.0634765625,
-0.0850830078125,
0.055511474609375,
-0.0192413330078125,
-0.01508331298828125,
-0.051605224609375,
-0.029052734375,
-0.006961822509765625,
0.0987548828125,
0.0066375732421875,
-0.032257080078125,
0.0277862548828125,
0.0212554931640625,
-0.046112060546875,
-0.01222991943359375,
-0.0435791015625,
-0.01053619384765625,
-0.06719970703125,
0.0094451904296875,
-0.0235443115234375,
-0.0197906494140625,
0.00799560546875,
-0.042999267578125,
-0.033172607421875,
-0.05352783203125,
0.0374755859375,
-0.046966552734375,
0.003780364990234375,
0.04949951171875,
-0.025634765625,
0.038909912109375,
-0.0288848876953125,
-0.040130615234375,
-0.0361328125,
-0.01523590087890625,
0.02752685546875,
0.03509521484375,
-0.01177215576171875,
0.025482177734375,
-0.050201416015625,
0.006977081298828125,
0.01352691650390625,
0.0310211181640625,
-0.0033168792724609375,
0.0007987022399902344,
0.034942626953125,
-0.03143310546875,
-0.00635528564453125,
-0.028350830078125,
0.004241943359375,
-0.0085906982421875,
-0.0401611328125,
-0.0291290283203125,
-0.03759765625,
0.00627899169921875,
0.00789642333984375,
-0.045928955078125,
-0.10272216796875,
-0.05792236328125,
0.0061492919921875,
-0.00811004638671875,
-0.040618896484375,
0.03253173828125,
-0.0287628173828125,
-0.069580078125,
0.06787109375,
-0.0048065185546875,
-0.0182647705078125,
-0.003582000732421875,
0.0860595703125,
0.0172882080078125,
-0.0264129638671875,
-0.0094146728515625,
-0.0020599365234375,
0.0294189453125,
0.039581298828125,
0.01326751708984375,
0.0063018798828125,
-0.0260467529296875,
-0.00038170814514160156,
0.03759765625,
-0.0191192626953125,
-0.015777587890625,
0.05682373046875,
0.005481719970703125,
0.002429962158203125,
-0.024871826171875,
-0.03546142578125,
0.03826904296875,
0.0015630722045898438,
-0.04486083984375,
-0.0203094482421875,
-0.040069580078125,
0.07196044921875,
-0.018035888671875,
0.0582275390625,
-0.06854248046875,
-0.058135986328125,
0.011383056640625,
0.0120697021484375,
-0.00424957275390625,
-0.005733489990234375,
0.00791168212890625,
0.0020618438720703125,
0.01898193359375,
-0.0182952880859375,
0.031341552734375,
-0.0099029541015625,
0.033599853515625,
-0.00559234619140625,
0.046844482421875,
0.0037174224853515625,
0.008544921875,
-0.0102691650390625,
0.0460205078125,
0.01087188720703125,
-0.03802490234375,
0.01275634765625,
-0.0160064697265625,
-0.031005859375,
0.005641937255859375,
-0.05352783203125,
0.054412841796875,
0.052764892578125,
0.0006761550903320312,
-0.00809478759765625,
-0.09368896484375,
0.027374267578125,
-0.06890869140625,
0.018585205078125,
0.005290985107421875,
0.00505828857421875,
0.005401611328125,
0.10223388671875,
0.0119781494140625,
0.061370849609375,
-0.0170745849609375,
0.0235137939453125,
0.005115509033203125,
0.0677490234375,
0.02813720703125,
-0.037322998046875,
-0.00782012939453125,
0.023223876953125,
-0.0291900634765625,
-0.00858306884765625,
0.01230621337890625,
0.0079345703125,
0.010894775390625,
0.0103759765625,
-0.010467529296875,
0.03082275390625,
-0.0303497314453125,
-0.001308441162109375,
0.01515960693359375,
-0.01013946533203125,
-0.0225372314453125,
-0.01064300537109375,
0.046142578125,
0.036224365234375,
-0.00341796875,
-0.0025844573974609375,
0.00336456298828125,
-0.03564453125,
-0.0126495361328125,
-0.020172119140625,
-0.01043701171875,
-0.00797271728515625,
0.0020599365234375,
-0.04864501953125,
-0.0308685302734375,
0.03350830078125,
-0.048370361328125,
0.00507354736328125,
-0.0380859375,
-0.031646728515625,
0.0750732421875,
-0.0021305084228515625,
0.052642822265625,
-0.0411376953125,
-0.0283050537109375,
-0.0838623046875,
0.00372314453125,
0.0278167724609375,
0.0241546630859375,
-0.0274810791015625,
0.0034942626953125,
-0.055633544921875,
-0.0162506103515625,
0.0017147064208984375,
-0.03338623046875,
-0.017181396484375,
-0.0119781494140625,
0.0160675048828125,
0.032867431640625,
0.010009765625,
-0.0021820068359375,
0.042449951171875,
-0.0213470458984375,
-0.045440673828125,
0.0245513916015625,
-0.005893707275390625,
-0.006561279296875,
0.0413818359375,
0.0226287841796875,
0.011016845703125,
-0.033660888671875,
-0.03863525390625,
-0.022491455078125,
-0.01372528076171875,
0.0145263671875,
-0.006397247314453125,
-0.023590087890625,
0.0004954338073730469,
0.0121002197265625,
0.08660888671875,
-0.00493621826171875,
0.01678466796875,
-0.020721435546875,
0.0095672607421875,
-0.0277252197265625,
-0.03094482421875,
-0.02740478515625,
-0.044036865234375,
0.012786865234375,
-0.038909912109375,
0.005840301513671875,
0.0225982666015625,
0.03399658203125,
-0.0191650390625,
-0.037994384765625,
-0.00005614757537841797,
0.03253173828125,
-0.00444793701171875,
0.0389404296875,
0.07958984375,
0.0089569091796875,
0.05206298828125,
0.01410675048828125,
0.007053375244140625,
0.01739501953125,
0.035736083984375,
-0.0132904052734375,
-0.00872802734375,
0.072265625,
0.0235595703125,
-0.026580810546875,
0.04278564453125,
-0.027801513671875,
-0.0024871826171875,
0.0218048095703125,
0.043182373046875,
-0.06939697265625,
0.0005469322204589844,
0.0138397216796875,
-0.0020771026611328125,
-0.0214385986328125,
0.0128936767578125,
-0.0084381103515625,
-0.0396728515625,
0.060699462890625,
-0.042694091796875,
-0.0032176971435546875,
0.02685546875,
-0.03155517578125,
-0.023834228515625,
-0.0016651153564453125,
0.05035400390625,
0.004364013671875,
-0.04052734375,
-0.0157928466796875,
-0.0035552978515625,
-0.0238494873046875,
-0.0487060546875,
-0.00618743896484375,
0.0160064697265625,
0.017608642578125,
-0.07159423828125,
0.035247802734375,
-0.0279998779296875,
0.02642822265625,
-0.038116455078125,
0.0026988983154296875,
0.023712158203125,
0.058258056640625,
-0.013427734375,
-0.031097412109375,
0.050018310546875,
-0.033416748046875,
-0.020263671875,
0.01387786865234375,
0.00922393798828125,
0.0143280029296875,
-0.05963134765625,
0.0090484619140625,
-0.06695556640625,
0.037109375,
0.004039764404296875,
0.03912353515625,
0.0115509033203125,
-0.00806427001953125,
-0.0270538330078125,
0.053253173828125,
0.02496337890625,
-0.006320953369140625,
0.018035888671875,
0.0177154541015625,
0.000013768672943115234,
0.008636474609375,
0.0034732818603515625,
-0.02911376953125,
-0.0399169921875,
-0.01085662841796875,
-0.080810546875,
0.039459228515625,
-0.01383209228515625,
0.037567138671875,
-0.00534820556640625,
-0.005802154541015625,
0.01451873779296875,
-0.0240478515625,
-0.0262298583984375,
0.03546142578125,
0.01476287841796875,
0.039398193359375,
-0.034912109375,
-0.018768310546875,
0.010406494140625,
0.056884765625,
0.0245819091796875,
0.00286865234375,
0.0188446044921875,
-0.002445220947265625,
0.04150390625,
-0.004459381103515625,
-0.01812744140625,
0.00997161865234375,
0.01220703125,
0.014068603515625,
0.089111328125,
-0.0233001708984375,
0.0276947021484375,
-0.00527191162109375,
0.03619384765625,
0.0189208984375,
-0.0027637481689453125,
-0.0169525146484375,
-0.020904541015625,
0.0215606689453125,
-0.025054931640625,
-0.0049591064453125,
0.0167999267578125,
-0.036285400390625,
-0.01541900634765625,
0.025299072265625,
0.021759033203125,
-0.0175323486328125,
0.0214691162109375,
-0.03369140625,
0.035919189453125,
0.0175933837890625,
0.006359100341796875,
0.050445556640625,
0.031280517578125,
0.0264434814453125,
-0.0099334716796875,
0.00847625732421875,
-0.027923583984375,
0.0042877197265625,
0.0218963623046875,
-0.00012814998626708984,
0.0015497207641601562,
-0.02703857421875,
0.0299072265625,
0.03411865234375,
0.006328582763671875,
-0.0267333984375,
-0.00923919677734375,
0.017303466796875,
-0.030059814453125,
-0.017974853515625,
-0.01275634765625,
0.003993988037109375,
-0.03289794921875,
-0.05511474609375,
-0.041229248046875,
0.0097808837890625,
0.03759765625,
0.0777587890625,
0.005889892578125,
-0.006519317626953125,
-0.1103515625,
-0.048431396484375,
-0.026702880859375,
0.01120758056640625,
0.002796173095703125,
0.034332275390625,
-0.01947021484375,
0.06927490234375,
-0.05877685546875,
-0.0159454345703125,
0.0200958251953125,
-0.01800537109375,
0.031585693359375,
-0.053192138671875,
0.03680419921875,
0.018035888671875,
0.02410888671875,
0.00597381591796875,
0.0229949951171875,
0.025543212890625,
0.0372314453125,
0.03375244140625,
0.0040283203125,
0.00389862060546875,
0.037628173828125,
-0.00273895263671875,
0.0171051025390625,
-0.01448822021484375,
0.0285797119140625,
0.012420654296875,
-0.01415252685546875,
-0.01543426513671875,
-0.00978851318359375,
0.060089111328125,
-0.032073974609375,
0.046600341796875,
-0.0189361572265625,
-0.003055572509765625,
0.0012235641479492188,
-0.05401611328125,
0.00469207763671875,
-0.03924560546875,
-0.0309906005859375,
-0.0183258056640625,
-0.036468505859375,
0.06787109375,
-0.02630615234375,
0.0005507469177246094,
0.0205841064453125,
0.037994384765625,
0.0086517333984375,
-0.0202789306640625,
0.0167083740234375,
0.028717041015625,
-0.005207061767578125,
0.0090484619140625,
0.02978515625,
0.0040130615234375,
-0.0299835205078125,
-0.037841796875,
-0.002490997314453125,
0.05096435546875,
0.034820556640625,
-0.047698974609375,
0.038482666015625,
0.042938232421875,
0.009185791015625,
0.01178741455078125,
-0.022430419921875,
-0.0482177734375,
0.10906982421875,
-0.0261383056640625,
-0.039276123046875,
0.00116729736328125,
-0.01971435546875,
0.013397216796875,
0.0362548828125,
-0.014404296875,
-0.0279693603515625,
0.0357666015625,
0.027191162109375,
0.0230560302734375,
0.0264434814453125,
-0.010986328125,
-0.046905517578125,
-0.002826690673828125,
0.03131103515625,
0.0040435791015625,
0.0361328125,
-0.0224609375,
0.0205230712890625,
-0.00788116455078125,
-0.0406494140625,
0.035369873046875,
-0.044708251953125,
0.07073974609375,
0.0304412841796875,
-0.0167388916015625,
-0.03692626953125,
-0.0021343231201171875,
-0.0183563232421875,
0.005275726318359375,
-0.0099639892578125,
0.047607421875,
0.0052947998046875,
-0.0411376953125,
0.0274505615234375,
0.016693115234375,
0.017730712890625,
-0.00617218017578125,
-0.00418853759765625,
0.04046630859375,
-0.0226593017578125,
0.00023889541625976562,
-0.084228515625,
-0.035064697265625,
-0.050048828125,
0.02435302734375,
0.04107666015625,
0.0003647804260253906,
0.021484375,
-0.016143798828125,
-0.03253173828125,
-0.006824493408203125,
-0.021240234375,
0.035614013671875,
-0.038848876953125,
0.0018749237060546875,
0.003108978271484375,
-0.02532958984375,
0.007724761962890625,
-0.005237579345703125,
0.002750396728515625,
-0.0264739990234375,
-0.0244140625,
-0.04217529296875,
0.04119873046875,
-0.01207733154296875,
-0.01125335693359375,
0.01065826416015625,
-0.006343841552734375,
-0.04791259765625,
0.004169464111328125,
-0.01200103759765625,
0.027008056640625,
0.0028476715087890625,
-0.050323486328125,
0.01149749755859375,
-0.0220184326171875,
0.0377197265625,
-0.042633056640625,
-0.018463134765625,
-0.06842041015625,
0.0024127960205078125,
-0.0089874267578125,
-0.020111083984375,
-0.0015392303466796875,
-0.035797119140625,
-0.003108978271484375,
0.052642822265625,
0.012939453125,
-0.015838623046875,
-0.038299560546875,
0.023406982421875,
0.004642486572265625,
0.01134490966796875,
-0.0165252685546875,
-0.034423828125,
-0.0208282470703125,
0.0147552490234375,
-0.00475311279296875,
0.03802490234375,
-0.00284576416015625,
0.0015954971313476562,
-0.0240020751953125,
0.01226806640625,
0.005817413330078125,
0.01047515869140625,
0.046905517578125,
-0.034149169921875,
0.043853759765625,
0.042724609375,
-0.04339599609375,
-0.029815673828125,
-0.01224517822265625,
0.004184722900390625,
-0.0260772705078125,
-0.022308349609375,
-0.010009765625,
-0.0275726318359375,
0.06170654296875,
0.0128936767578125,
0.0072021484375,
-0.004230499267578125,
-0.046112060546875,
0.006626129150390625,
0.00432586669921875,
-0.0109100341796875,
0.032928466796875,
-0.0740966796875,
-0.001331329345703125,
-0.005313873291015625,
-0.0345458984375,
-0.0014591217041015625,
0.04339599609375,
-0.07989501953125,
0.0226898193359375,
-0.006046295166015625,
-0.00930023193359375,
-0.0853271484375,
-0.026641845703125,
0.00736236572265625,
-0.01166534423828125,
-0.00148773193359375,
-0.01108551025390625,
0.022613525390625,
-0.0019779205322265625,
0.020111083984375,
0.000385284423828125,
0.015625,
-0.038421630859375,
0.005489349365234375,
0.009307861328125,
0.025726318359375,
-0.0199432373046875,
0.0015926361083984375,
-0.01446533203125,
-0.033905029296875,
-0.0008754730224609375,
-0.04296875,
0.0296630859375,
-0.0104827880859375,
-0.008148193359375,
0.0220947265625,
0.02337646484375,
0.044219970703125,
0.006450653076171875,
0.056121826171875,
0.01297760009765625,
-0.035919189453125,
0.0173797607421875,
-0.054931640625,
-0.00982666015625,
0.00551605224609375,
0.0171661376953125,
-0.08648681640625,
0.04486083984375,
0.0509033203125,
0.0224151611328125,
0.03704833984375
] |
d6880aa44fe5073a1e10b54dc2e2d59e6c80f833 | Wordpress Stackexchange
Q: Why wp_update_post() does not update GUID? Trying to update GUID on a attachment using the wp_update_post() function but its not updating GUID nor its throwing any error.
Example code:
$post = [
'ID' => 45,
'guid' => 'https://example.com/foo.png'
];
wp_update_post($post);
A: Turns out WordPress do not recommend updating GUID thus its disallowed.
But we can update it using sql query:
global $wpdb;
$wpdb->update($wpdb->posts, ['guid' => $newGUID], ['ID' => $postID]);
| Q: Why wp_update_post() does not update GUID? Trying to update GUID on a attachment using the wp_update_post() function but its not updating GUID nor its throwing any error.
Example code:
$post = [
'ID' => 45,
'guid' => 'https://example.com/foo.png'
];
wp_update_post($post);
A: Turns out WordPress do not recommend updating GUID thus its disallowed.
But we can update it using sql query:
global $wpdb;
$wpdb->update($wpdb->posts, ['guid' => $newGUID], ['ID' => $postID]);
| wordpress | {
"language": "en",
"length": 70,
"provenance": "stackexchange_00019.jsonl.gz:494047",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/332902"
} | [
0.050994873046875,
0.0133514404296875,
0.0011320114135742188,
0.0162200927734375,
0.032958984375,
-0.04949951171875,
0.09063720703125,
-0.050933837890625,
0.03387451171875,
0.05029296875,
-0.0140380859375,
-0.0240020751953125,
0.043426513671875,
-0.0192718505859375,
-0.057098388671875,
-0.00815582275390625,
0.030853271484375,
0.0125579833984375,
0.036590576171875,
0.017242431640625,
-0.015045166015625,
0.04461669921875,
-0.01303863525390625,
-0.03619384765625,
0.01401519775390625,
0.01261138916015625,
0.0294647216796875,
-0.024139404296875,
0.01009368896484375,
0.00514984130859375,
0.0229034423828125,
-0.011138916015625,
0.01291656494140625,
0.0196990966796875,
-0.0187225341796875,
-0.00299835205078125,
0.0102691650390625,
-0.002216339111328125,
-0.003841400146484375,
0.03741455078125,
0.00563812255859375,
-0.0027313232421875,
0.02972412109375,
0.002056121826171875,
-0.010772705078125,
-0.00525665283203125,
-0.0054473876953125,
-0.034271240234375,
0.019683837890625,
0.03143310546875,
0.0025234222412109375,
0.020660400390625,
0.004802703857421875,
0.01107025146484375,
0.0026378631591796875,
-0.00479888916015625,
-0.04132080078125,
0.04571533203125,
0.03076171875,
0.007289886474609375,
-0.018646240234375,
0.002193450927734375,
0.0037326812744140625,
-0.020294189453125,
0.0128936767578125,
-0.0159759521484375,
0.055816650390625,
0.01209259033203125,
-0.0806884765625,
0.0017337799072265625,
0.0665283203125,
-0.01163482666015625,
-0.04510498046875,
-0.01284027099609375,
0.00443267822265625,
-0.01393890380859375,
0.00014460086822509766,
-0.045074462890625,
-0.0185089111328125,
0.056793212890625,
0.0232086181640625,
0.020751953125,
0.00954437255859375,
0.0091552734375,
-0.018524169921875,
0.0216522216796875,
-0.01279449462890625,
-0.037811279296875,
-0.0285186767578125,
-0.0036411285400390625,
-0.0255584716796875,
-0.033355712890625,
-0.006011962890625,
-0.0028476715087890625,
-0.028289794921875,
-0.01493072509765625,
0.00572967529296875,
0.029571533203125,
-0.02911376953125,
0.023529052734375,
0.0003254413604736328,
-0.048065185546875,
0.06536865234375,
-0.0440673828125,
-0.00696563720703125,
0.036529541015625,
0.03729248046875,
0.0218963623046875,
0.002288818359375,
-0.006206512451171875,
-0.01300811767578125,
0.01373291015625,
-0.00209808349609375,
-0.0401611328125,
-0.0208740234375,
0.021820068359375,
-0.0209197998046875,
-0.00838470458984375,
0.021209716796875,
-0.0313720703125,
0.0074462890625,
0.017364501953125,
-0.0168914794921875,
0.0303192138671875,
0.021392822265625,
0.025238037109375,
0.01059722900390625,
-0.0202484130859375,
0.022705078125,
0.00910186767578125,
-0.0728759765625,
-0.0029850006103515625,
0.10504150390625,
0.041259765625,
0.058258056640625,
-0.0281829833984375,
-0.0141448974609375,
-0.006137847900390625,
-0.027435302734375,
-0.003101348876953125,
0.0075836181640625,
-0.00844573974609375,
-0.004344940185546875,
-0.033203125,
-0.004184722900390625,
0.033172607421875,
0.03173828125,
0.00823211669921875,
-0.035858154296875,
-0.058197021484375,
0.0157623291015625,
-0.01078033447265625,
-0.00011229515075683594,
-0.005931854248046875,
0.03729248046875,
-0.036956787109375,
0.01059722900390625,
-0.031890869140625,
0.0416259765625,
-0.01470947265625,
0.04254150390625,
-0.0124053955078125,
0.012603759765625,
0.007747650146484375,
-0.0277862548828125,
0.00951385498046875,
-0.0703125,
-0.0193939208984375,
0.0283050537109375,
0.06201171875,
0.01666259765625,
-0.0296173095703125,
0.036529541015625,
0.00836181640625,
-0.019989013671875,
-0.00875091552734375,
-0.00382232666015625,
-0.026092529296875,
0.051177978515625,
-0.01331329345703125,
-0.04620361328125,
-0.0246734619140625,
0.051788330078125,
-0.0252838134765625,
-0.05889892578125,
0.041748046875,
0.01525115966796875,
0.09259033203125,
0.01396942138671875,
0.0152740478515625,
0.0294647216796875,
0.006256103515625,
-0.038055419921875,
0.0110626220703125,
-0.032135009765625,
0.0128631591796875,
-0.0204315185546875,
0.039215087890625,
-0.0228424072265625,
-0.00537872314453125,
-0.037384033203125,
0.004497528076171875,
0.027679443359375,
0.01505279541015625,
0.0280303955078125,
0.0059051513671875,
0.0001537799835205078,
0.03240966796875,
0.0231781005859375,
0.0352783203125,
0.006595611572265625,
0.0103912353515625,
-0.034332275390625,
0.0030651092529296875,
-0.0251617431640625,
-0.0132598876953125,
-0.001461029052734375,
0.031524658203125,
-0.020111083984375,
0.035980224609375,
-0.05364990234375,
-0.032928466796875,
-0.049652099609375,
0.013214111328125,
0.030242919921875,
0.003993988037109375,
-0.0021152496337890625,
0.0033779144287109375,
0.060516357421875,
0.0036773681640625,
0.0207366943359375,
0.003215789794921875,
-0.04400634765625,
-0.05706787109375,
-0.032562255859375,
-0.0162200927734375,
-0.0487060546875,
-0.11907958984375,
0.0209808349609375,
0.0906982421875,
0.045135498046875,
0.01009368896484375,
-0.0007128715515136719,
0.0011911392211914062,
0.050689697265625,
0.0034809112548828125,
0.02227783203125,
-0.008758544921875,
-0.0256195068359375,
0.0095977783203125,
-0.0157012939453125,
0.0163116455078125,
0.02392578125,
-0.035064697265625,
0.0010004043579101562,
0.05511474609375,
0.0153656005859375,
0.016754150390625,
-0.02008056640625,
0.006137847900390625,
-0.0187225341796875,
-0.0543212890625,
-0.012725830078125,
-0.023773193359375,
0.0274505615234375,
0.0021915435791015625,
0.038299560546875,
0.0299224853515625,
-0.0266265869140625,
0.0065155029296875,
0.01424407958984375,
0.01123046875,
-0.0008435249328613281,
0.055419921875,
0.013885498046875,
0.0027294158935546875,
-0.01476287841796875,
-0.0176544189453125,
0.0223541259765625,
0.032440185546875,
-0.014556884765625,
-0.0088348388671875,
0.0121002197265625,
-0.003757476806640625,
0.0191497802734375,
-0.01335906982421875,
0.033599853515625,
-0.0079803466796875,
0.005474090576171875,
-0.025238037109375,
0.003002166748046875,
0.033966064453125,
-0.011932373046875,
0.04205322265625,
0.0300140380859375,
-0.016571044921875,
-0.0276336669921875,
-0.01529693603515625,
0.01275634765625,
-0.027069091796875,
0.038543701171875,
0.0614013671875,
-0.004390716552734375,
0.01502227783203125,
-0.00128173828125,
0.0209503173828125,
0.01160430908203125,
0.01113128662109375,
-0.010528564453125,
-0.02947998046875,
-0.01059722900390625,
0.00472259521484375,
0.005657196044921875,
0.0221710205078125,
-0.03826904296875,
-0.0535888671875,
-0.031005859375,
-0.01177215576171875,
-0.160400390625,
-0.08355712890625,
-0.0251007080078125,
-0.052764892578125,
-0.0232391357421875,
-0.0185394287109375,
-0.0228118896484375,
0.026947021484375,
-0.0164031982421875,
0.0001609325408935547,
-0.032623291015625,
0.0279693603515625,
-0.052764892578125,
-0.051116943359375,
-0.0675048828125,
-0.040313720703125,
-0.0193328857421875,
0.039276123046875,
0.01007843017578125,
0.0247955322265625,
-0.0024852752685546875,
-0.023468017578125,
-0.00839996337890625,
0.03106689453125,
-0.01483917236328125,
-0.02703857421875,
0.00913238525390625,
-0.021820068359375,
0.0038166046142578125,
-0.003787994384765625,
0.058349609375,
0.0017518997192382812,
-0.0081634521484375,
-0.00807952880859375,
-0.0015316009521484375,
-0.01849365234375,
0.02734375,
-0.0321044921875,
-0.028289794921875,
-0.007717132568359375,
0.004024505615234375,
-0.069091796875,
0.020294189453125,
-0.023223876953125,
-0.006343841552734375,
0.028564453125,
-0.00968170166015625,
0.003620147705078125,
-0.012176513671875,
0.0266265869140625,
-0.033966064453125,
-0.00662994384765625,
-0.002109527587890625,
-0.027862548828125,
0.04986572265625,
-0.02130126953125,
-0.031982421875,
0.003147125244140625,
0.0039215087890625,
-0.0160369873046875,
0.0016031265258789062,
-0.0128936767578125,
0.01496124267578125,
-0.0288238525390625,
0.026519775390625,
-0.06756591796875,
0.00888824462890625,
0.0274200439453125,
-0.044952392578125,
0.0217742919921875,
-0.0479736328125,
-0.01519775390625,
-0.045135498046875,
0.041595458984375,
0.0014066696166992188,
-0.0345458984375,
-0.0212249755859375,
0.0217437744140625,
-0.0220794677734375,
-0.06719970703125,
0.0401611328125,
0.0018262863159179688,
-0.006885528564453125,
-0.0274505615234375,
-0.01174163818359375,
-0.019012451171875,
-0.01161956787109375,
0.035858154296875,
-0.007122039794921875,
-0.0034656524658203125,
0.03680419921875,
-0.015167236328125,
0.03515625,
0.02197265625,
0.025970458984375,
0.0013866424560546875,
-0.010589599609375,
-0.01477813720703125,
-0.0654296875,
-0.00809478759765625,
0.01531982421875,
0.03631591796875,
-0.01081085205078125,
-0.0007562637329101562,
-0.035888671875,
0.0233306884765625,
-0.01055145263671875,
-0.004779815673828125,
-0.01070404052734375,
0.00270843505859375,
-0.0106201171875,
0.023895263671875,
0.00745391845703125,
0.00458526611328125,
-0.00591278076171875,
-0.0294647216796875,
-0.036590576171875,
-0.058502197265625,
-0.03179931640625,
-0.03460693359375,
0.0024242401123046875,
-0.02294921875,
-0.03900146484375,
-0.0252227783203125,
-0.043731689453125,
0.0115203857421875,
-0.0207061767578125,
0.003124237060546875,
-0.040985107421875,
-0.06317138671875,
0.09735107421875,
-0.0080718994140625,
0.01457977294921875,
-0.01465606689453125,
0.07196044921875,
0.003627777099609375,
-0.04412841796875,
-0.041839599609375,
-0.0023365020751953125,
0.036163330078125,
0.0283203125,
-0.0129241943359375,
-0.01311492919921875,
-0.034332275390625,
0.03753662109375,
0.01448822021484375,
-0.005443572998046875,
-0.0081787109375,
0.01202392578125,
0.005855560302734375,
-0.023712158203125,
0.01270294189453125,
-0.00540924072265625,
0.0256500244140625,
0.01064300537109375,
-0.025421142578125,
-0.007781982421875,
-0.0009226799011230469,
0.029327392578125,
-0.01399993896484375,
0.00986480712890625,
-0.05224609375,
-0.043609619140625,
0.026031494140625,
-0.0252685546875,
0.0015821456909179688,
-0.01024627685546875,
-0.0006608963012695312,
-0.002685546875,
-0.01220703125,
0.008148193359375,
0.01464080810546875,
0.0157928466796875,
0.019775390625,
0.05792236328125,
0.0083160400390625,
0.0241241455078125,
-0.01396942138671875,
-0.0191192626953125,
0.07659912109375,
0.000457763671875,
-0.044189453125,
0.0186309814453125,
-0.0273895263671875,
0.00978851318359375,
0.034271240234375,
0.0096588134765625,
0.017120361328125,
0.004352569580078125,
-0.0259246826171875,
-0.011199951171875,
0.031707763671875,
-0.028167724609375,
-0.044403076171875,
-0.00628662109375,
0.055419921875,
-0.04266357421875,
0.04132080078125,
-0.0267486572265625,
0.05718994140625,
-0.0304107666015625,
-0.03472900390625,
0.0721435546875,
0.056121826171875,
0.010650634765625,
0.005645751953125,
0.00920867919921875,
-0.005847930908203125,
-0.0072021484375,
-0.026947021484375,
-0.050811767578125,
-0.03228759765625,
0.0034351348876953125,
0.054412841796875,
-0.0430908203125,
-0.0211944580078125,
0.048095703125,
-0.01971435546875,
-0.01861572265625,
0.002155303955078125,
-0.0012149810791015625,
-0.0269622802734375,
-0.0003821849822998047,
0.01132965087890625,
0.009124755859375,
-0.0021991729736328125,
0.0177154541015625,
-0.045318603515625,
-0.056671142578125,
-0.032073974609375,
-0.03619384765625,
0.01934814453125,
-0.053253173828125,
-0.056182861328125,
-0.001110076904296875,
-0.038726806640625,
-0.0282135009765625,
0.05926513671875,
0.0211639404296875,
-0.03118896484375,
-0.03265380859375,
0.0675048828125,
0.006305694580078125,
0.01239776611328125,
-0.0302734375,
0.006378173828125,
0.0056304931640625,
-0.0096893310546875,
0.0511474609375,
-0.00818634033203125,
-0.004283905029296875,
-0.0400390625,
-0.0183563232421875,
0.006072998046875,
0.0443115234375,
-0.00415802001953125,
0.0012378692626953125,
-0.0123443603515625,
0.0238800048828125,
0.032745361328125,
0.0059661865234375,
0.0021686553955078125,
-0.0250244140625,
0.0200653076171875,
0.01702880859375,
0.0877685546875,
0.03741455078125,
0.04217529296875,
-0.0352783203125,
0.051177978515625,
0.0269927978515625,
0.0243988037109375,
-0.0386962890625,
-0.035552978515625,
-0.013153076171875,
-0.0460205078125,
0.019287109375,
-0.00847625732421875,
0.006092071533203125,
-0.0109405517578125,
0.005626678466796875,
0.00234222412109375,
0.043060302734375,
-0.058258056640625,
0.005229949951171875,
-0.0243072509765625,
0.01323699951171875,
-0.109619140625,
-0.046112060546875,
0.040740966796875,
-0.0141143798828125,
-0.00545501708984375,
-0.0030956268310546875,
0.033233642578125,
-0.0294952392578125,
-0.01261138916015625,
-0.029937744140625,
0.02374267578125,
-0.005573272705078125,
0.01605224609375,
0.0172271728515625,
0.006961822509765625,
0.00949859619140625,
-0.02044677734375,
-0.00036644935607910156,
-0.022216796875,
0.01457977294921875,
-0.01242828369140625,
-0.007694244384765625,
0.05572509765625,
0.01983642578125,
-0.0042266845703125,
0.051544189453125,
-0.020660400390625,
0.050018310546875,
0.043243408203125,
0.08251953125,
-0.0755615234375,
0.03228759765625,
0.016021728515625,
-0.03289794921875,
0.03826904296875,
0.016571044921875,
-0.02227783203125,
0.003997802734375,
0.05523681640625,
-0.050537109375,
-0.0000845193862915039,
0.04168701171875,
0.00855255126953125,
-0.0007410049438476562,
-0.0086669921875,
0.01297760009765625,
-0.00754547119140625,
-0.045654296875,
-0.01519775390625,
0.032501220703125,
-0.034271240234375,
-0.0095062255859375,
-0.023101806640625,
0.0241241455078125,
-0.050811767578125,
-0.1094970703125,
-0.03619384765625,
-0.043487548828125,
-0.017486572265625,
0.0173492431640625,
0.0352783203125,
0.088134765625,
0.046844482421875,
0.05206298828125,
-0.03167724609375,
0.01241302490234375,
0.056182861328125,
-0.005733489990234375,
-0.04541015625,
0.002918243408203125,
0.1033935546875,
-0.047454833984375,
0.038818359375,
0.020782470703125,
0.0127105712890625,
-0.0027923583984375,
-0.0012865066528320312,
0.04095458984375,
-0.0760498046875,
0.0225677490234375,
0.03509521484375,
0.052520751953125,
-0.00150299072265625,
0.0311279296875,
0.0352783203125,
-0.0219879150390625,
-0.02862548828125,
0.014678955078125,
-0.07354736328125,
-0.03045654296875,
0.00354766845703125,
-0.057861328125,
0.1256103515625,
0.0509033203125,
0.026611328125,
-0.00689697265625,
0.0455322265625,
-0.04803466796875,
0.0178680419921875,
-0.048370361328125,
0.066650390625,
-0.03515625,
0.0250244140625,
-0.019927978515625,
0.0261383056640625,
0.0007238388061523438,
-0.031158447265625,
0.058624267578125,
0.026763916015625,
-0.0748291015625,
-0.020111083984375,
-0.002201080322265625,
0.030242919921875,
-0.0064849853515625,
0.059844970703125,
-0.0010805130004882812,
0.006450653076171875,
0.0167694091796875,
-0.021392822265625,
0.02606201171875,
-0.03692626953125,
-0.014068603515625,
0.005832672119140625,
0.0254058837890625,
0.024444580078125,
0.0206298828125,
0.034759521484375,
-0.0032444000244140625,
0.01416778564453125,
0.018707275390625,
-0.005603790283203125,
-0.008270263671875,
0.0248565673828125,
0.0094451904296875,
-0.0032958984375,
0.010589599609375,
-0.02642822265625,
0.036285400390625,
0.0013475418090820312,
0.005405426025390625,
0.016387939453125,
0.014617919921875,
0.01171112060546875,
0.005649566650390625,
0.007770538330078125,
0.0426025390625,
-0.0187835693359375,
0.04656982421875,
0.034332275390625,
0.05303955078125,
0.0053558349609375,
-0.0171661376953125,
0.01068878173828125,
0.039337158203125,
-0.025848388671875,
-0.003421783447265625,
0.011688232421875,
-0.0184783935546875,
-0.01026153564453125,
-0.0462646484375,
-0.01023101806640625,
-0.0166473388671875,
-0.0374755859375,
-0.00399017333984375,
0.0222930908203125,
0.01433563232421875,
0.03192138671875,
-0.0010309219360351562,
0.0173187255859375,
-0.0830078125,
0.0170745849609375,
-0.02874755859375,
0.00995635986328125,
0.022613525390625,
0.03466796875,
-0.005401611328125,
0.03521728515625,
-0.00797271728515625,
-0.01116180419921875,
-0.00495147705078125,
0.0703125,
-0.0198974609375,
0.0170745849609375,
-0.022491455078125,
-0.08447265625,
-0.00247955322265625,
0.02838134765625,
0.00991058349609375,
0.008453369140625,
0.034088134765625,
0.0355224609375,
-0.036712646484375,
-0.0158538818359375,
0.0300750732421875,
-0.01898193359375,
0.01471710205078125,
-0.01140594482421875,
0.048309326171875,
0.019134521484375,
0.0165252685546875,
-0.0303802490234375,
0.06024169921875,
0.0233306884765625,
0.000274658203125,
0.04193115234375,
0.007030487060546875,
-0.006954193115234375,
0.041046142578125,
0.01346588134765625,
0.040435791015625,
0.031219482421875,
0.01015472412109375,
-0.0209197998046875,
0.01093292236328125,
0.0045166015625,
-0.01103973388671875,
0.0187225341796875,
0.007110595703125,
0.02569580078125,
-0.06005859375,
0.010894775390625,
0.01611328125,
-0.0297393798828125,
-0.0187225341796875,
0.0557861328125,
0.034515380859375,
0.0028533935546875,
-0.039581298828125,
-0.0208282470703125,
-0.0201416015625,
0.02581787109375,
0.0009407997131347656,
0.0256805419921875,
-0.00490570068359375,
0.02642822265625,
-0.041656494140625,
0.0232086181640625,
-0.063232421875,
-0.040863037109375,
-0.0018091201782226562,
-0.0219879150390625,
0.0037670135498046875,
0.01259613037109375,
-0.022979736328125,
0.0212860107421875,
0.008544921875,
0.003055572509765625,
0.0255126953125,
-0.03875732421875,
0.018524169921875,
0.0160980224609375,
0.01416015625,
-0.0205230712890625,
-0.0233001708984375,
0.0051422119140625,
0.0192108154296875,
0.01049041748046875,
0.0156707763671875,
-0.0128021240234375,
0.035400390625,
0.023895263671875,
0.026824951171875,
0.008514404296875,
0.00518798828125,
0.0117645263671875,
0.0172882080078125,
-0.0294036865234375,
-0.00323486328125,
-0.0107269287109375,
-0.0196075439453125,
-0.00788116455078125,
0.00202178955078125,
0.0147705078125,
0.01519775390625,
0.00797271728515625,
-0.03143310546875,
0.016387939453125,
0.030120849609375,
-0.0032958984375,
0.003269195556640625,
-0.0198822021484375,
-0.01125335693359375,
0.0027942657470703125,
0.0167694091796875,
0.01331329345703125,
-0.042236328125,
-0.0293121337890625,
-0.0022296905517578125,
-0.041778564453125,
0.0003452301025390625,
0.00014150142669677734,
-0.017669677734375,
0.01380157470703125,
0.0210113525390625,
-0.085205078125,
0.03656005859375,
0.017669677734375,
0.0271453857421875,
-0.0242156982421875,
0.009246826171875,
-0.00786590576171875,
0.047454833984375,
-0.02374267578125,
-0.056854248046875,
-0.033447265625,
0.043243408203125,
-0.056060791015625,
0.01568603515625,
0.01090240478515625,
-0.019683837890625,
-0.03643798828125,
-0.0017957687377929688,
0.004199981689453125,
0.04718017578125,
0.0513916015625,
-0.047760009765625,
0.00799560546875,
-0.02874755859375,
0.02288818359375,
-0.04437255859375,
-0.01015472412109375,
-0.085693359375,
-0.00891876220703125,
-0.03558349609375,
0.039520263671875,
0.03717041015625,
-0.02496337890625,
-0.07977294921875,
0.015960693359375,
-0.0297088623046875,
-0.033538818359375,
-0.003292083740234375,
-0.003993988037109375,
0.0009784698486328125,
-0.01514434814453125,
-0.01080322265625,
-0.0132293701171875,
-0.0260772705078125,
0.0101318359375,
-0.00516510009765625,
0.04595947265625,
0.0131683349609375,
-0.013580322265625,
-0.0266265869140625,
-0.0038051605224609375,
-0.0175018310546875,
0.0098114013671875,
0.0196533203125,
-0.0438232421875,
0.0697021484375,
0.03985595703125,
-0.025421142578125,
0.0478515625,
0.034088134765625,
-0.01242828369140625,
0.0211029052734375,
-0.00818634033203125,
-0.055816650390625,
-0.0399169921875,
0.045745849609375,
0.0271453857421875,
0.0244598388671875,
0.00035953521728515625,
0.0352783203125,
-0.01200103759765625,
-0.02398681640625,
0.0352783203125,
-0.0023040771484375,
0.004077911376953125,
0.019805908203125,
0.016998291015625,
0.0024662017822265625,
-0.0145263671875,
0.005680084228515625,
-0.01242828369140625,
-0.018951416015625,
0.00026488304138183594,
-0.022735595703125,
-0.01372528076171875,
0.0113372802734375,
0.06640625,
-0.0259246826171875,
0.02392578125,
0.0025081634521484375,
0.008270263671875,
0.046295166015625,
0.033843994140625,
-0.00211334228515625,
0.00942230224609375,
-0.01200103759765625,
0.0252685546875,
0.0012912750244140625,
0.01361083984375,
-0.00623321533203125,
-0.005382537841796875,
-0.026824951171875,
0.01043701171875,
0.0018777847290039062,
0.002689361572265625,
-0.005771636962890625,
0.039031982421875,
0.004825592041015625,
0.06329345703125,
-0.00435638427734375,
-0.002033233642578125,
0.0030498504638671875,
-0.004894256591796875,
-0.005168914794921875,
-0.0189971923828125,
0.01192474365234375,
-0.0303497314453125,
0.0164947509765625,
0.01175689697265625,
0.02459716796875,
-0.0126495361328125,
-0.007213592529296875,
-0.046142578125,
0.0183258056640625,
-0.0014734268188476562
] |
e3c3180c05af58407b7b0b2c6c88cee995c3c7fa | Wordpress Stackexchange
Q: Contact Form 7 - Delay auto responds I'm looking for a way to delay the auto response (mail_2) from Contact Form 7 for 2 days. But I have no clue how to tackle it. I hope you have an idea.
I'm using the following code in functions.php
add_action( 'wpcf7_before_send_mail', 'send_custom_respond' );
function send_custom_respond($WPCF7_ContactForm) {
$submission = WPCF7_Submission::get_instance();
$posted_data = $submission->get_posted_data();
$contact_name = $posted_data['your-name'];
$contact_email = $posted_data['your-email'];
$mail_2 = $WPCF7_ContactForm->prop('mail_2') ;
$mail_2['subject'] = "Enjoying the trial?";
$mail_2['body'] = "Hi ". $contact_name . ",\n how's the trial? Let us know if you need some assistance.";
$WPCF7_ContactForm->set_properties(array("mail_2" => $mail_2));
return $WPCF7_ContactForm;
}
| Q: Contact Form 7 - Delay auto responds I'm looking for a way to delay the auto response (mail_2) from Contact Form 7 for 2 days. But I have no clue how to tackle it. I hope you have an idea.
I'm using the following code in functions.php
add_action( 'wpcf7_before_send_mail', 'send_custom_respond' );
function send_custom_respond($WPCF7_ContactForm) {
$submission = WPCF7_Submission::get_instance();
$posted_data = $submission->get_posted_data();
$contact_name = $posted_data['your-name'];
$contact_email = $posted_data['your-email'];
$mail_2 = $WPCF7_ContactForm->prop('mail_2') ;
$mail_2['subject'] = "Enjoying the trial?";
$mail_2['body'] = "Hi ". $contact_name . ",\n how's the trial? Let us know if you need some assistance.";
$WPCF7_ContactForm->set_properties(array("mail_2" => $mail_2));
return $WPCF7_ContactForm;
}
| wordpress | {
"language": "en",
"length": 100,
"provenance": "stackexchange_00019.jsonl.gz:494186",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/333369"
} | [
-0.00896453857421875,
-0.023406982421875,
-0.042938232421875,
-0.0367431640625,
-0.0188140869140625,
-0.01226043701171875,
-0.021148681640625,
0.02947998046875,
0.010589599609375,
-0.0065765380859375,
0.011932373046875,
-0.0007886886596679688,
0.002655029296875,
-0.04718017578125,
0.03369140625,
-0.006122589111328125,
0.01751708984375,
0.0137939453125,
0.038848876953125,
-0.01044464111328125,
0.038818359375,
0.0009303092956542969,
-0.000858306884765625,
0.00016939640045166016,
-0.0008592605590820312,
-0.004425048828125,
0.04571533203125,
-0.014556884765625,
-0.0093536376953125,
-0.005100250244140625,
0.0085296630859375,
-0.0046234130859375,
0.0243377685546875,
0.041015625,
-0.07666015625,
-0.021728515625,
0.00696563720703125,
-0.00860595703125,
-0.039703369140625,
0.056732177734375,
0.00826263427734375,
0.0018987655639648438,
0.035064697265625,
0.005947113037109375,
0.0025119781494140625,
-0.042999267578125,
0.005176544189453125,
-0.058135986328125,
0.01470947265625,
0.01934814453125,
0.0186004638671875,
0.0220794677734375,
0.014251708984375,
0.0222930908203125,
0.004802703857421875,
0.035614013671875,
-0.0258331298828125,
0.062164306640625,
0.01027679443359375,
0.01220703125,
0.002620697021484375,
0.05072021484375,
-0.009857177734375,
-0.01092529296875,
-0.00983428955078125,
-0.005290985107421875,
-0.001071929931640625,
0.011138916015625,
0.03662109375,
-0.01348114013671875,
-0.00792694091796875,
-0.00528717041015625,
0.01128387451171875,
0.01067352294921875,
-0.0025501251220703125,
-0.012451171875,
-0.00818634033203125,
0.0152130126953125,
0.0301361083984375,
0.0058746337890625,
-0.020599365234375,
-0.038360595703125,
-0.00571441650390625,
-0.0149078369140625,
0.0232696533203125,
0.034637451171875,
-0.02850341796875,
0.000537872314453125,
-0.0271453857421875,
-0.0595703125,
-0.0251007080078125,
-0.0640869140625,
-0.00726318359375,
-0.030303955078125,
-0.018280029296875,
-0.063232421875,
0.0001252889633178711,
-0.0009531974792480469,
-0.0166168212890625,
-0.0169219970703125,
-0.00707244873046875,
-0.00940704345703125,
-0.01776123046875,
-0.00565338134765625,
-0.0092010498046875,
0.049957275390625,
-0.01355743408203125,
-0.0014581680297851562,
0.013580322265625,
0.00890350341796875,
0.0225677490234375,
-0.0303192138671875,
-0.000415802001953125,
0.0015621185302734375,
-0.0150299072265625,
-0.038421630859375,
-0.0450439453125,
0.012908935546875,
-0.0002543926239013672,
-0.01294708251953125,
-0.00959014892578125,
0.0114593505859375,
0.0164794921875,
-0.0391845703125,
0.034332275390625,
0.0008764266967773438,
-0.0183258056640625,
-0.01493072509765625,
0.0821533203125,
-0.0223236083984375,
-0.040985107421875,
-0.0033626556396484375,
0.08148193359375,
0.055755615234375,
0.0654296875,
-0.015899658203125,
0.009857177734375,
-0.0034236907958984375,
-0.009979248046875,
0.0279998779296875,
0.01549530029296875,
-0.083251953125,
-0.04638671875,
0.04022216796875,
-0.0181732177734375,
0.0267181396484375,
0.0251007080078125,
-0.004436492919921875,
-0.033233642578125,
-0.048614501953125,
0.0007171630859375,
-0.01390838623046875,
0.04595947265625,
0.0173492431640625,
-0.06866455078125,
0.035858154296875,
-0.0106048583984375,
-0.003154754638671875,
-0.058258056640625,
-0.02789306640625,
-0.02960205078125,
-0.0205841064453125,
0.034271240234375,
-0.0276031494140625,
-0.01053619384765625,
0.018524169921875,
-0.059967041015625,
0.0009016990661621094,
-0.000637054443359375,
-0.01338958740234375,
-0.04339599609375,
0.04345703125,
0.02117919921875,
-0.0088348388671875,
0.002445220947265625,
0.005191802978515625,
0.00717926025390625,
0.0223388671875,
0.0238494873046875,
-0.032470703125,
-0.037628173828125,
-0.03680419921875,
0.0838623046875,
-0.050384521484375,
0.0009784698486328125,
0.061004638671875,
0.0085906982421875,
0.0221710205078125,
-0.035308837890625,
0.0115814208984375,
-0.0347900390625,
0.0704345703125,
-0.025115966796875,
0.04083251953125,
-0.0225372314453125,
-0.0535888671875,
0.0264129638671875,
0.0151214599609375,
-0.01450347900390625,
0.008392333984375,
-0.003787994384765625,
-0.0279541015625,
0.020233154296875,
-0.0133819580078125,
-0.03619384765625,
0.0029048919677734375,
-0.03924560546875,
0.0233306884765625,
-0.0008554458618164062,
0.0345458984375,
0.011627197265625,
-0.00400543212890625,
-0.00899505615234375,
-0.01007080078125,
0.01141357421875,
-0.0198211669921875,
-0.0225067138671875,
0.0255279541015625,
-0.01139068603515625,
0.06817626953125,
-0.033966064453125,
-0.02716064453125,
-0.040374755859375,
-0.0112152099609375,
0.00347900390625,
0.0009937286376953125,
-0.0325927734375,
-0.01401519775390625,
-0.0008897781372070312,
0.0023326873779296875,
-0.00972747802734375,
0.05718994140625,
0.0129547119140625,
0.0176239013671875,
-0.0241851806640625,
-0.00014519691467285156,
0.0269317626953125,
-0.044830322265625,
0.00720977783203125,
0.034423828125,
0.00946044921875,
-0.01068878173828125,
-0.01216888427734375,
0.0670166015625,
0.031585693359375,
0.024658203125,
0.02056884765625,
0.035186767578125,
0.0028839111328125,
-0.00780487060546875,
-0.008636474609375,
-0.00937652587890625,
0.053741455078125,
-0.0657958984375,
0.0179443359375,
0.0537109375,
-0.039764404296875,
-0.0562744140625,
0.035552978515625,
-0.0419921875,
0.036163330078125,
-0.03741455078125,
-0.05126953125,
-0.00240325927734375,
0.0095062255859375,
-0.005336761474609375,
0.037567138671875,
0.0167083740234375,
0.011627197265625,
-0.026275634765625,
0.0098724365234375,
-0.0045623779296875,
-0.007381439208984375,
0.004291534423828125,
-0.0110626220703125,
-0.0013446807861328125,
0.0009179115295410156,
0.0052490234375,
-0.00614166259765625,
-0.0111236572265625,
0.0226287841796875,
0.0816650390625,
0.04156494140625,
-0.0129547119140625,
-0.00823974609375,
-0.02899169921875,
-0.017730712890625,
-0.00908660888671875,
0.034698486328125,
0.0168304443359375,
0.0240020751953125,
0.0183563232421875,
-0.023773193359375,
0.05694580078125,
-0.0149993896484375,
-0.0203094482421875,
-0.0211334228515625,
-0.00399017333984375,
0.034332275390625,
-0.0611572265625,
-0.0026149749755859375,
0.04046630859375,
-0.03021240234375,
0.0018053054809570312,
-0.004726409912109375,
-0.031768798828125,
-0.00966644287109375,
0.025238037109375,
-0.0059661865234375,
-0.040435791015625,
0.0015420913696289062,
0.052764892578125,
0.020294189453125,
0.06353759765625,
-0.046722412109375,
-0.056243896484375,
0.00432586669921875,
0.00952911376953125,
-0.045318603515625,
-0.06634521484375,
0.02392578125,
-0.0223236083984375,
-0.023712158203125,
-0.0220184326171875,
-0.00829315185546875,
-0.0031375885009765625,
-0.021148681640625,
-0.007358551025390625,
-0.048431396484375,
-0.050994873046875,
-0.06280517578125,
-0.073486328125,
-0.044403076171875,
0.0268402099609375,
-0.00995635986328125,
-0.01049041748046875,
0.00030803680419921875,
0.06646728515625,
-0.00701141357421875,
-0.0849609375,
-0.0328369140625,
-0.01242828369140625,
-0.0083770751953125,
0.018585205078125,
-0.06512451171875,
0.046661376953125,
0.0050811767578125,
0.01369476318359375,
-0.035614013671875,
-0.00887298583984375,
0.007495880126953125,
-0.0291748046875,
-0.031585693359375,
-0.03680419921875,
0.0186614990234375,
-0.0009336471557617188,
0.0128021240234375,
0.016204833984375,
0.04400634765625,
-0.022857666015625,
0.0204010009765625,
0.0247344970703125,
0.003936767578125,
-0.08050537109375,
-0.0291900634765625,
-0.017578125,
-0.0209808349609375,
0.00911712646484375,
-0.045074462890625,
-0.046661376953125,
-0.004741668701171875,
-0.058929443359375,
0.059112548828125,
0.0014467239379882812,
-0.0097198486328125,
0.01528167724609375,
0.01502227783203125,
-0.01081085205078125,
0.034454345703125,
0.01013946533203125,
0.022064208984375,
-0.01453399658203125,
0.0028629302978515625,
-0.059478759765625,
-0.07659912109375,
0.06890869140625,
-0.03692626953125,
-0.0222320556640625,
-0.03155517578125,
-0.040679931640625,
0.004390716552734375,
0.10430908203125,
-0.03216552734375,
-0.0301666259765625,
0.007076263427734375,
0.03619384765625,
-0.02374267578125,
-0.055389404296875,
-0.002471923828125,
-0.01439666748046875,
-0.08251953125,
0.0256805419921875,
-0.0140380859375,
-0.005504608154296875,
0.006221771240234375,
-0.039031982421875,
-0.01052093505859375,
-0.0692138671875,
-0.005279541015625,
-0.0188751220703125,
-0.0020656585693359375,
0.01116180419921875,
-0.02020263671875,
-0.01326751708984375,
0.03155517578125,
-0.050994873046875,
-0.0556640625,
-0.0061187744140625,
-0.005863189697265625,
0.031494140625,
0.007183074951171875,
0.01146697998046875,
-0.020416259765625,
0.025299072265625,
0.037841796875,
0.002346038818359375,
-0.01107025146484375,
-0.03570556640625,
-0.017913818359375,
0.0450439453125,
0.028717041015625,
-0.00455474853515625,
0.00765228271484375,
-0.022003173828125,
-0.0108795166015625,
0.0225830078125,
-0.0242462158203125,
0.012908935546875,
-0.0093841552734375,
-0.0194854736328125,
-0.036865234375,
-0.0276031494140625,
-0.03173828125,
0.0013475418090820312,
-0.009124755859375,
-0.0176239013671875,
-0.0226593017578125,
-0.045166015625,
-0.03851318359375,
-0.018890380859375,
-0.0157928466796875,
0.0115509033203125,
-0.0092620849609375,
0.046051025390625,
0.0018682479858398438,
0.0482177734375,
0.0107269287109375,
0.07244873046875,
0.041778564453125,
-0.049652099609375,
-0.006572723388671875,
-0.0755615234375,
0.052398681640625,
0.06805419921875,
0.01406097412109375,
-0.01143646240234375,
0.08209228515625,
-0.0024890899658203125,
-0.0184173583984375,
0.0172576904296875,
-0.02313232421875,
-0.0223541259765625,
-0.0128021240234375,
-0.0121307373046875,
-0.0305633544921875,
-0.00962066650390625,
0.06243896484375,
-0.004398345947265625,
0.050323486328125,
-0.03265380859375,
-0.055419921875,
0.03289794921875,
-0.0158538818359375,
-0.01129913330078125,
-0.0117645263671875,
0.006404876708984375,
-0.004734039306640625,
-0.0225982666015625,
-0.0031719207763671875,
0.0113525390625,
-0.025970458984375,
0.01200103759765625,
0.0024547576904296875,
0.0321044921875,
-0.001018524169921875,
0.0171051025390625,
0.004131317138671875,
-0.01654052734375,
0.0276641845703125,
0.018463134765625,
-0.08465576171875,
0.01153564453125,
-0.0135345458984375,
-0.05950927734375,
0.00846099853515625,
-0.0188751220703125,
0.039276123046875,
0.046661376953125,
0.03936767578125,
0.026702880859375,
0.072265625,
0.0236968994140625,
-0.04962158203125,
0.01068878173828125,
-0.031219482421875,
0.004817962646484375,
0.045074462890625,
0.0090179443359375,
0.0176239013671875,
-0.0224609375,
0.026763916015625,
0.04254150390625,
-0.005748748779296875,
0.025787353515625,
0.02667236328125,
-0.0109100341796875,
-0.03045654296875,
0.0197906494140625,
-0.01751708984375,
-0.018646240234375,
0.0233612060546875,
0.01145172119140625,
0.0112457275390625,
0.0193328857421875,
-0.01507568359375,
0.00499725341796875,
-0.0036449432373046875,
0.021575927734375,
0.055389404296875,
0.00286102294921875,
-0.016204833984375,
-0.0216522216796875,
-0.009765625,
0.01503753662109375,
0.005718231201171875,
0.0201873779296875,
-0.0240631103515625,
0.0037860870361328125,
0.00641632080078125,
0.02008056640625,
-0.0496826171875,
-0.04779052734375,
0.0343017578125,
-0.0019969940185546875,
-0.01180267333984375,
-0.039276123046875,
-0.021453857421875,
0.0030975341796875,
0.0018329620361328125,
0.03594970703125,
-0.06365966796875,
-0.0004787445068359375,
-0.0288238525390625,
0.036651611328125,
-0.10150146484375,
0.0281829833984375,
0.033905029296875,
0.054718017578125,
-0.0277099609375,
-0.01373291015625,
-0.0345458984375,
-0.029052734375,
-0.0489501953125,
-0.051177978515625,
-0.02880859375,
0.0163116455078125,
0.0247039794921875,
0.0174560546875,
-0.01045989990234375,
-0.0662841796875,
-0.0017337799072265625,
-0.020233154296875,
0.0280609130859375,
-0.01424407958984375,
0.0113372802734375,
0.01184844970703125,
-0.033203125,
0.0556640625,
0.0098419189453125,
-0.0223541259765625,
-0.04241943359375,
-0.016510009765625,
-0.030487060546875,
-0.05255126953125,
0.01111602783203125,
0.02667236328125,
-0.0203094482421875,
0.0208892822265625,
0.0288543701171875,
0.003604888916015625,
0.01274871826171875,
-0.0224456787109375,
-0.006687164306640625,
-0.0190582275390625,
0.0180816650390625,
-0.0255889892578125,
-0.006603240966796875,
0.00481414794921875,
-0.0250244140625,
0.01296234130859375,
0.02264404296875,
-0.0041046142578125,
0.04351806640625,
-0.019500732421875,
0.04119873046875,
0.004444122314453125,
-0.0207672119140625,
0.04388427734375,
0.054840087890625,
0.0014162063598632812,
0.042633056640625,
0.0399169921875,
0.0261077880859375,
0.0218048095703125,
0.061859130859375,
-0.03009033203125,
-0.10577392578125,
0.0261688232421875,
0.01763916015625,
-0.046417236328125,
0.01276397705078125,
-0.028167724609375,
0.011810302734375,
0.0300750732421875,
0.05377197265625,
-0.066650390625,
0.0140533447265625,
0.013702392578125,
0.00261688232421875,
0.0245513916015625,
-0.02978515625,
-0.02044677734375,
-0.02764892578125,
0.08868408203125,
-0.0116119384765625,
-0.005359649658203125,
0.04345703125,
-0.00937652587890625,
-0.0160980224609375,
0.00848388671875,
-0.001377105712890625,
0.0181884765625,
-0.0078582763671875,
0.00201416015625,
-0.02203369140625,
0.0198974609375,
0.01311492919921875,
0.017578125,
-0.006290435791015625,
-0.043670654296875,
-0.05352783203125,
-0.0182342529296875,
-0.01265716552734375,
-0.0499267578125,
-0.037811279296875,
0.0236663818359375,
0.0167388916015625,
0.02947998046875,
-0.0017919540405273438,
-0.028106689453125,
-0.00243377685546875,
0.01105499267578125,
0.0190277099609375,
-0.0350341796875,
0.00604248046875,
0.0229034423828125,
-0.0523681640625,
0.018035888671875,
0.007625579833984375,
-0.0190277099609375,
-0.003597259521484375,
0.0199737548828125,
0.08843994140625,
-0.0010595321655273438,
-0.0450439453125,
0.043060302734375,
-0.0293426513671875,
-0.044464111328125,
-0.022003173828125,
0.01306915283203125,
-0.0269622802734375,
0.004955291748046875,
-0.015869140625,
-0.01125335693359375,
-0.0003840923309326172,
-0.049835205078125,
-0.027130126953125,
0.047760009765625,
-0.020843505859375,
0.008697509765625,
0.047210693359375,
0.007266998291015625,
-0.0199127197265625,
0.017425537109375,
0.0134124755859375,
0.040069580078125,
0.007083892822265625,
-0.0284576416015625,
-0.00946044921875,
-0.0069732666015625,
-0.01873779296875,
0.031402587890625,
0.00615692138671875,
0.01062774658203125,
-0.045684814453125,
0.0124053955078125,
0.042510986328125,
0.04107666015625,
0.016082763671875,
0.036773681640625,
-0.03826904296875,
0.029754638671875,
0.00914764404296875,
-0.0280609130859375,
0.0200042724609375,
0.004726409912109375,
-0.06890869140625,
0.00399017333984375,
0.007106781005859375,
0.01465606689453125,
-0.05816650390625,
0.0765380859375,
0.0016508102416992188,
-0.04754638671875,
0.024688720703125,
-0.055511474609375,
-0.0113067626953125,
-0.0011119842529296875,
-0.011505126953125,
-0.0193328857421875,
0.00690460205078125,
-0.0228729248046875,
0.0226287841796875,
-0.007266998291015625,
0.00936126708984375,
0.056640625,
0.0225982666015625,
0.020050048828125,
0.0133056640625,
0.0194091796875,
0.0099639892578125,
-0.00284576416015625,
0.0025272369384765625,
-0.01464080810546875,
0.0291595458984375,
-0.03509521484375,
0.00504302978515625,
-0.0035190582275390625,
0.0050201416015625,
-0.01519012451171875,
-0.03546142578125,
0.008148193359375,
-0.0007328987121582031,
-0.00351715087890625,
-0.0236968994140625,
-0.0101318359375,
-0.043487548828125,
-0.027587890625,
0.00438690185546875,
-0.006946563720703125,
-0.0015354156494140625,
0.0040740966796875,
-0.0067596435546875,
0.00608062744140625,
0.0081634521484375,
0.004062652587890625,
-0.011810302734375,
-0.00746917724609375,
0.002979278564453125,
0.034332275390625,
0.0103302001953125,
0.031005859375,
-0.0177001953125,
0.004772186279296875,
0.0281524658203125,
-0.01035308837890625,
0.00971221923828125,
-0.04388427734375,
0.035888671875,
-0.005397796630859375,
0.007129669189453125,
0.007381439208984375,
-0.029449462890625,
0.0159454345703125,
0.03466796875,
0.04364013671875,
0.0020923614501953125,
-0.02947998046875,
0.0105743408203125,
-0.0217742919921875,
0.041778564453125,
-0.037811279296875,
0.003063201904296875,
0.008941650390625,
-0.00759124755859375,
-0.00901031494140625,
-0.035003662109375,
0.05987548828125,
-0.0276947021484375,
-0.0056304931640625,
-0.00006866455078125,
-0.0499267578125,
0.00835418701171875,
-0.0153350830078125,
0.053131103515625,
0.00568389892578125,
-0.04443359375,
-0.02777099609375,
-0.0181732177734375,
-0.0007615089416503906,
0.0225067138671875,
0.0411376953125,
0.0077362060546875,
0.0095062255859375,
0.0205078125,
-0.025909423828125,
0.0056610107421875,
0.032745361328125,
-0.03363037109375,
-0.0007467269897460938,
0.04400634765625,
-0.01447296142578125,
-0.07269287109375,
-0.041717529296875,
-0.018310546875,
0.0241851806640625,
-0.011444091796875,
0.056915283203125,
-0.004451751708984375,
0.0115509033203125,
-0.06951904296875,
0.025299072265625,
-0.06256103515625,
-0.069580078125,
0.0203399658203125,
-0.01013946533203125,
-0.0192413330078125,
0.0322265625,
0.00949859619140625,
0.043243408203125,
0.01334381103515625,
-0.00928497314453125,
0.055450439453125,
-0.030426025390625,
0.00004369020462036133,
-0.0164642333984375,
-0.022369384765625,
-0.0308380126953125,
-0.046173095703125,
-0.029693603515625,
-0.0024204254150390625,
0.007266998291015625,
0.0226898193359375,
-0.0101470947265625,
0.048126220703125,
-0.014373779296875,
0.025634765625,
0.02490234375,
-0.0154571533203125,
0.0560302734375,
0.03240966796875,
-0.08966064453125,
0.0183868408203125,
-0.034576416015625,
-0.035858154296875,
0.0293426513671875,
-0.0171356201171875,
-0.0010194778442382812,
-0.007488250732421875,
0.013946533203125,
0.0142822265625,
-0.0242919921875,
0.01538848876953125,
-0.036346435546875,
-0.00885009765625,
-0.00983428955078125,
0.0106964111328125,
0.005046844482421875,
-0.026031494140625,
0.0027027130126953125,
-0.0228424072265625,
0.0186309814453125,
0.023223876953125,
0.043182373046875,
0.05975341796875,
0.0946044921875,
0.002613067626953125,
0.01253509521484375,
0.005992889404296875,
-0.0235595703125,
0.0239105224609375,
-0.023773193359375,
0.0087890625,
0.0089263916015625,
0.007678985595703125,
-0.018218994140625,
-0.0102691650390625,
-0.0122222900390625,
-0.04132080078125,
-0.04864501953125,
0.0732421875,
-0.0010204315185546875,
-0.048858642578125,
-0.004337310791015625,
0.0178070068359375,
-0.064208984375,
-0.0670166015625,
-0.045318603515625,
-0.0188751220703125,
0.00370025634765625,
-0.02783203125,
0.0090484619140625,
-0.00438690185546875,
0.024261474609375,
-0.042938232421875,
-0.0278472900390625,
-0.0145416259765625,
0.024566650390625,
-0.0069732666015625,
-0.0031833648681640625,
-0.0002384185791015625,
-0.01294708251953125,
0.001773834228515625,
0.01114654541015625,
0.0228271484375,
-0.01239776611328125,
-0.06170654296875,
0.0374755859375,
0.016204833984375,
-0.016937255859375,
-0.029205322265625,
-0.0005311965942382812,
-0.0199127197265625,
0.011505126953125,
-0.01094818115234375,
0.11376953125,
-0.00799560546875,
0.01540374755859375,
-0.0382080078125,
-0.03167724609375,
-0.05194091796875,
0.00806427001953125,
-0.007045745849609375,
0.01934814453125,
0.00916290283203125,
0.05767822265625,
-0.003997802734375,
-0.042877197265625,
-0.0185394287109375,
-0.07891845703125,
-0.019622802734375,
-0.0262603759765625,
-0.039154052734375,
-0.0229644775390625,
0.10540771484375,
0.0435791015625,
0.0254364013671875,
-0.021514892578125,
0.0689697265625,
0.08245849609375,
0.01387786865234375,
0.0257568359375,
-0.01366424560546875,
0.0214691162109375,
-0.03125,
-0.018707275390625,
-0.0257568359375,
0.033660888671875,
-0.046234130859375,
-0.024169921875,
0.027252197265625,
-0.01419830322265625,
-0.00982666015625,
-0.023681640625,
0.0273284912109375,
0.0213775634765625,
-0.01108551025390625,
0.0254364013671875,
-0.004619598388671875,
-0.007762908935546875,
0.0380859375,
0.0458984375,
0.01349639892578125,
0.010650634765625,
-0.0125274658203125,
-0.002216339111328125,
0.0212249755859375,
-0.01763916015625,
0.00296783447265625,
-0.008544921875,
-0.01314544677734375,
-0.0077056884765625,
-0.0237274169921875,
-0.032196044921875,
0.0007472038269042969,
0.034698486328125,
-0.0098114013671875,
0.0894775390625,
-0.0115814208984375,
0.00815582275390625,
0.0038909912109375,
0.0207061767578125,
-0.023956298828125,
-0.002086639404296875,
0.0247955322265625,
-0.05291748046875,
0.018035888671875,
0.0335693359375,
0.0236968994140625,
0.00414276123046875,
-0.010406494140625,
0.0283355712890625,
0.021728515625,
-0.0009512901306152344
] |
5995303b561b83258e5ed922ea10bafb8745628c | Wordpress Stackexchange
Q: WP-CLI Process Killed I have around 1200 large images which I'd like to regenerate. I'm using the WP-CLI command wp media regenerate. After around 61 images are generated, the terminal shows the message Killed.
Why is this happening and how can I fix it?
A: Which version of WP-CLI are you using? What is wp --version returning you?
Seems a little bit that you may be running out of memory as this is quite a large amount of images and there doesn't seem some proper batch processing implemented in version 1 of WP-CLI. At least, that's how I'd understand this issue WP-CLI issue Clear WP object cache periodically on media regenerate/import which I found in the WP-CLI v2.0.0 Release Notes.
Is upgrading WP-CLI an option for you? If not you could also install it as a project-local dependency using Composer. Maybe you need to init a bare bone Composer project with composer init in your WordPress folder first.
$ cd /path/to/wordpress
$ composer require wp-cli/wp-cli-bundle:^2
$ vendor/bin/wp media regenerate
| Q: WP-CLI Process Killed I have around 1200 large images which I'd like to regenerate. I'm using the WP-CLI command wp media regenerate. After around 61 images are generated, the terminal shows the message Killed.
Why is this happening and how can I fix it?
A: Which version of WP-CLI are you using? What is wp --version returning you?
Seems a little bit that you may be running out of memory as this is quite a large amount of images and there doesn't seem some proper batch processing implemented in version 1 of WP-CLI. At least, that's how I'd understand this issue WP-CLI issue Clear WP object cache periodically on media regenerate/import which I found in the WP-CLI v2.0.0 Release Notes.
Is upgrading WP-CLI an option for you? If not you could also install it as a project-local dependency using Composer. Maybe you need to init a bare bone Composer project with composer init in your WordPress folder first.
$ cd /path/to/wordpress
$ composer require wp-cli/wp-cli-bundle:^2
$ vendor/bin/wp media regenerate
A: Had the same problem. wp media regenerate would always get stuck at the same point with the Killed message, even with the --only-missing option.
In my case it was always after ID 571, so I tried wp media regenerate 570, which was the next one, and it also failed with the same message. So I deleted this image from the media library and now it's working.
By the way, adding --debug wouldn't give any hint about the problem. I also couldn't find any PHP logs about it.
| wordpress | {
"language": "en",
"length": 258,
"provenance": "stackexchange_00019.jsonl.gz:494302",
"question_score": "7",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/333752"
} | [
-0.04901123046875,
-0.01580810546875,
-0.058746337890625,
0.004611968994140625,
-0.028564453125,
-0.0230560302734375,
-0.0172119140625,
0.006763458251953125,
0.0235443115234375,
0.0175323486328125,
0.002231597900390625,
-0.0020599365234375,
0.0223846435546875,
-0.0299530029296875,
-0.01505279541015625,
0.0037136077880859375,
0.04754638671875,
0.0137786865234375,
0.06903076171875,
0.024932861328125,
0.00452423095703125,
0.06634521484375,
0.0293121337890625,
0.0623779296875,
-0.0129241943359375,
-0.0082244873046875,
0.0689697265625,
-0.031982421875,
-0.01430511474609375,
-0.04296875,
0.0026454925537109375,
0.0531005859375,
0.0107421875,
0.006099700927734375,
-0.008544921875,
0.0011119842529296875,
-0.0172119140625,
0.0031833648681640625,
-0.005664825439453125,
-0.01142120361328125,
-0.015869140625,
0.025360107421875,
0.040924072265625,
-0.0229949951171875,
-0.00797271728515625,
0.01154327392578125,
-0.05841064453125,
-0.0526123046875,
-0.0029144287109375,
0.0189208984375,
0.0212860107421875,
-0.0017986297607421875,
0.0261383056640625,
0.00792694091796875,
-0.017120361328125,
-0.016204833984375,
-0.00974273681640625,
0.0186614990234375,
0.0399169921875,
-0.0030918121337890625,
-0.030364990234375,
-0.0006151199340820312,
0.02069091796875,
-0.022491455078125,
-0.0166168212890625,
0.007450103759765625,
-0.006992340087890625,
-0.00982666015625,
-0.0484619140625,
-0.0118408203125,
0.058807373046875,
-0.056182861328125,
-0.004863739013671875,
-0.0068817138671875,
0.03863525390625,
-0.0029506683349609375,
-0.0036182403564453125,
-0.0006499290466308594,
0.01335906982421875,
0.034210205078125,
0.07855224609375,
0.01120758056640625,
0.044464111328125,
0.0024356842041015625,
-0.0020923614501953125,
-0.014190673828125,
0.0106964111328125,
-0.0177764892578125,
-0.02996826171875,
-0.04400634765625,
-0.0302886962890625,
-0.06414794921875,
-0.0251617431640625,
-0.01275634765625,
-0.0213165283203125,
-0.025970458984375,
-0.004917144775390625,
-0.05865478515625,
0.0108795166015625,
0.0124664306640625,
0.0216522216796875,
-0.046417236328125,
0.02374267578125,
0.01071929931640625,
0.0136566162109375,
0.050811767578125,
0.0004382133483886719,
-0.04644775390625,
0.005046844482421875,
-0.005153656005859375,
-0.01116943359375,
0.007106781005859375,
-0.00838470458984375,
-0.03631591796875,
-0.00704193115234375,
0.015625,
-0.03399658203125,
0.05438232421875,
0.0277557373046875,
0.05657958984375,
-0.0113372802734375,
-0.00537872314453125,
0.037750244140625,
0.0048065185546875,
0.02691650390625,
0.02484130859375,
-0.0302734375,
-0.0277862548828125,
-0.029571533203125,
0.03955078125,
0.008636474609375,
0.00479888916015625,
-0.006580352783203125,
0.0017728805541992188,
-0.0283050537109375,
-0.021636962890625,
-0.0060882568359375,
0.003139495849609375,
0.01096343994140625,
0.0183563232421875,
0.00708770751953125,
-0.053558349609375,
-0.005157470703125,
0.028167724609375,
0.055694580078125,
-0.0034542083740234375,
-0.0012083053588867188,
0.01763916015625,
0.04022216796875,
-0.0022296905517578125,
0.0298919677734375,
-0.00604248046875,
0.035064697265625,
0.00940704345703125,
0.0235137939453125,
-0.04058837890625,
0.088134765625,
-0.05548095703125,
0.02020263671875,
-0.070068359375,
-0.01291656494140625,
0.0160980224609375,
0.06317138671875,
-0.0400390625,
-0.034759521484375,
-0.007305145263671875,
-0.07257080078125,
-0.01073455810546875,
0.045196533203125,
0.00250244140625,
0.04498291015625,
-0.033477783203125,
0.046844482421875,
0.0279998779296875,
0.004512786865234375,
0.0307464599609375,
0.024505615234375,
-0.032073974609375,
0.027801513671875,
0.0232391357421875,
-0.035430908203125,
-0.0289306640625,
0.04364013671875,
-0.0386962890625,
-0.00482940673828125,
-0.032958984375,
0.00838470458984375,
0.0161895751953125,
0.03338623046875,
0.036346435546875,
-0.0026760101318359375,
-0.0360107421875,
-0.0259246826171875,
0.0285186767578125,
0.0040435791015625,
-0.0177001953125,
-0.043975830078125,
-0.00862884521484375,
-0.02398681640625,
-0.004364013671875,
0.039886474609375,
-0.0201568603515625,
0.0037174224853515625,
-0.036468505859375,
-0.14208984375,
0.0134124755859375,
-0.0572509765625,
0.029205322265625,
-0.04437255859375,
-0.004428863525390625,
0.038665771484375,
-0.009979248046875,
-0.029052734375,
-0.005397796630859375,
-0.0063323974609375,
-0.01593017578125,
-0.030975341796875,
-0.005046844482421875,
-0.01262664794921875,
0.0272369384765625,
-0.0140533447265625,
0.000492095947265625,
-0.0322265625,
-0.0017671585083007812,
0.00815582275390625,
0.0177764892578125,
-0.0307159423828125,
0.0198822021484375,
0.00646209716796875,
0.02679443359375,
0.00946807861328125,
0.01398468017578125,
0.0214385986328125,
0.0416259765625,
-0.016082763671875,
-0.0286102294921875,
-0.00921630859375,
-0.0753173828125,
0.0271453857421875,
0.05596923828125,
0.031341552734375,
0.00818634033203125,
0.01525115966796875,
-0.0009374618530273438,
0.0653076171875,
0.02825927734375,
0.0294647216796875,
-0.034271240234375,
0.00688934326171875,
0.0197296142578125,
-0.03497314453125,
-0.0113983154296875,
0.02081298828125,
-0.0177459716796875,
0.005084991455078125,
0.04095458984375,
0.0110626220703125,
0.0010890960693359375,
-0.024749755859375,
0.009979248046875,
0.016021728515625,
-0.0214385986328125,
-0.0631103515625,
0.0065765380859375,
-0.051605224609375,
-0.0013074874877929688,
-0.0311737060546875,
-0.022979736328125,
-0.010498046875,
0.0214385986328125,
0.042572021484375,
-0.0745849609375,
0.008575439453125,
-0.023468017578125,
-0.0030460357666015625,
0.03863525390625,
-0.03564453125,
0.00945281982421875,
0.028839111328125,
-0.0021190643310546875,
-0.02154541015625,
0.040557861328125,
-0.00640106201171875,
-0.02423095703125,
-0.0136260986328125,
-0.02496337890625,
-0.00434112548828125,
-0.0148468017578125,
-0.01251983642578125,
-0.006351470947265625,
0.01163482666015625,
0.056854248046875,
0.021697998046875,
0.0225677490234375,
-0.0070037841796875,
0.009307861328125,
0.066650390625,
-0.00658416748046875,
0.018890380859375,
0.005428314208984375,
0.0872802734375,
0.058349609375,
-0.006717681884765625,
0.01715087890625,
-0.0192108154296875,
0.056976318359375,
0.0269317626953125,
-0.01094818115234375,
-0.0206756591796875,
-0.020111083984375,
-0.034149169921875,
-0.0499267578125,
0.0190582275390625,
0.059051513671875,
-0.004520416259765625,
-0.0428466796875,
0.024505615234375,
0.020660400390625,
-0.0748291015625,
-0.10357666015625,
-0.0015535354614257812,
-0.0164337158203125,
-0.0003402233123779297,
0.0018262863159179688,
-0.0018253326416015625,
-0.00907135009765625,
0.0181732177734375,
0.0004405975341796875,
0.0033397674560546875,
-0.0194244384765625,
-0.01287078857421875,
-0.047088623046875,
-0.026824951171875,
-0.037200927734375,
0.0021114349365234375,
-0.0127410888671875,
0.00225830078125,
0.051605224609375,
0.0017366409301757812,
-0.037994384765625,
0.0111083984375,
-0.01358795166015625,
0.00371551513671875,
0.013519287109375,
-0.0203704833984375,
-0.0265045166015625,
0.038909912109375,
-0.016632080078125,
0.051788330078125,
0.027496337890625,
-0.0005855560302734375,
0.004360198974609375,
-0.017120361328125,
-0.07415771484375,
-0.0025882720947265625,
0.041748046875,
0.0058135986328125,
-0.051116943359375,
0.044036865234375,
-0.0650634765625,
-0.004779815673828125,
-0.0269622802734375,
-0.0276641845703125,
0.0360107421875,
0.043121337890625,
-0.01666259765625,
-0.02618408203125,
0.0028228759765625,
-0.0265960693359375,
-0.0244903564453125,
0.0042877197265625,
-0.047271728515625,
0.07379150390625,
-0.00537872314453125,
-0.004589080810546875,
-0.004253387451171875,
0.0406494140625,
-0.005069732666015625,
-0.04937744140625,
0.0024814605712890625,
0.0006504058837890625,
-0.01568603515625,
-0.0157470703125,
-0.048828125,
-0.007049560546875,
0.0298004150390625,
-0.0051116943359375,
0.0224151611328125,
0.0025768280029296875,
-0.01471710205078125,
0.005916595458984375,
0.04998779296875,
-0.01432037353515625,
-0.0462646484375,
0.0088043212890625,
0.03057861328125,
0.01427459716796875,
-0.0447998046875,
0.028533935546875,
-0.05059814453125,
-0.08087158203125,
0.0074615478515625,
0.00766754150390625,
-0.047332763671875,
0.0037097930908203125,
-0.0276641845703125,
-0.05340576171875,
-0.04266357421875,
0.0247955322265625,
-0.0460205078125,
0.032196044921875,
0.01715087890625,
0.01287078857421875,
0.0018224716186523438,
-0.010406494140625,
-0.046875,
-0.1280517578125,
-0.0097808837890625,
-0.0291595458984375,
0.06256103515625,
-0.0277252197265625,
0.03765869140625,
-0.055908203125,
0.0288543701171875,
0.051513671875,
0.05145263671875,
0.0002796649932861328,
-0.030029296875,
0.03192138671875,
-0.0338134765625,
0.0256805419921875,
-0.0169830322265625,
-0.011810302734375,
-0.009002685546875,
0.0098419189453125,
0.01445770263671875,
-0.004047393798828125,
-0.0041961669921875,
-0.0032558441162109375,
-0.0084228515625,
-0.00983428955078125,
-0.0149078369140625,
-0.0462646484375,
-0.01027679443359375,
-0.02447509765625,
-0.0141448974609375,
-0.03704833984375,
-0.01519775390625,
0.0199127197265625,
-0.00202178955078125,
0.03778076171875,
0.006969451904296875,
0.096435546875,
0.01219940185546875,
-0.01116943359375,
-0.03778076171875,
-0.01529693603515625,
0.02166748046875,
0.052337646484375,
0.04840087890625,
0.01172637939453125,
-0.0020809173583984375,
0.01148223876953125,
0.03045654296875,
-0.031890869140625,
0.00403594970703125,
0.016448974609375,
0.016510009765625,
-0.0062103271484375,
-0.0283966064453125,
-0.01256561279296875,
0.032928466796875,
0.02685546875,
-0.01276397705078125,
-0.006366729736328125,
0.005237579345703125,
0.040802001953125,
0.0030670166015625,
-0.041473388671875,
-0.06494140625,
-0.0740966796875,
0.01383209228515625,
-0.07843017578125,
0.056121826171875,
-0.007236480712890625,
-0.007328033447265625,
0.07318115234375,
0.042266845703125,
0.011077880859375,
0.0085296630859375,
0.019439697265625,
-0.042633056640625,
0.035247802734375,
0.007556915283203125,
-0.02264404296875,
0.01302337646484375,
0.0111236572265625,
-0.0258636474609375,
0.024871826171875,
-0.00794219970703125,
-0.055999755859375,
0.0237274169921875,
-0.040802001953125,
-0.0286102294921875,
0.0101165771484375,
0.03717041015625,
0.006862640380859375,
-0.01593017578125,
-0.00998687744140625,
-0.03265380859375,
0.007480621337890625,
-0.05841064453125,
-0.0185089111328125,
-0.0153961181640625,
-0.0147857666015625,
0.0288543701171875,
-0.021636962890625,
0.005016326904296875,
-0.0205078125,
-0.00402069091796875,
0.0474853515625,
0.022979736328125,
0.0338134765625,
-0.004833221435546875,
-0.0038852691650390625,
0.0008368492126464844,
0.0164031982421875,
0.0028133392333984375,
-0.01971435546875,
0.05120849609375,
0.0169525146484375,
0.025848388671875,
0.043975830078125,
-0.0308837890625,
-0.00019490718841552734,
-0.037322998046875,
-0.004131317138671875,
0.0272369384765625,
-0.01410675048828125,
-0.044342041015625,
-0.0028667449951171875,
-0.00728607177734375,
0.020355224609375,
-0.0280609130859375,
-0.0141448974609375,
0.01446533203125,
0.0009832382202148438,
0.00591278076171875,
0.053680419921875,
-0.0614013671875,
0.0251922607421875,
0.03411865234375,
-0.0261383056640625,
-0.033935546875,
0.01311492919921875,
0.016021728515625,
0.034149169921875,
-0.035308837890625,
-0.054901123046875,
0.06475830078125,
-0.0167999267578125,
-0.04351806640625,
0.00629425048828125,
0.014923095703125,
0.0005245208740234375,
0.0307769775390625,
-0.0276947021484375,
-0.05218505859375,
0.023956298828125,
-0.007289886474609375,
-0.035003662109375,
-0.037353515625,
0.0321044921875,
-0.0013685226440429688,
-0.0340576171875,
-0.016143798828125,
0.0230712890625,
0.01263427734375,
0.011688232421875,
-0.01178741455078125,
-0.0172271728515625,
0.02838134765625,
0.031982421875,
0.054901123046875,
-0.003269195556640625,
-0.03558349609375,
0.03863525390625,
-0.003948211669921875,
-0.01409912109375,
-0.04266357421875,
-0.00183868408203125,
-0.0146484375,
-0.01221466064453125,
-0.015380859375,
0.0299530029296875,
-0.00548553466796875,
0.0472412109375,
-0.0161895751953125,
0.01470184326171875,
0.0156402587890625,
0.02960205078125,
-0.0032939910888671875,
-0.00380706787109375,
-0.021209716796875,
-0.0007700920104980469,
-0.01230621337890625,
0.033721923828125,
0.0187835693359375,
-0.0546875,
0.0084228515625,
0.0110015869140625,
0.03521728515625,
0.002361297607421875,
-0.03759765625,
-0.0240936279296875,
0.046875,
0.010955810546875,
0.01629638671875,
0.0323486328125,
-0.01273345947265625,
0.033935546875,
0.003002166748046875,
0.0164337158203125,
0.00048160552978515625,
0.0201568603515625,
0.057220458984375,
-0.037567138671875,
0.07110595703125,
-0.005035400390625,
-0.01904296875,
0.025115966796875,
-0.0574951171875,
-0.00046825408935546875,
0.01459503173828125,
0.0230255126953125,
0.00701904296875,
-0.01557159423828125,
-0.0184783935546875,
-0.04583740234375,
0.0171966552734375,
-0.02105712890625,
0.0162200927734375,
-0.027862548828125,
0.053558349609375,
0.00418853759765625,
-0.027008056640625,
-0.004138946533203125,
-0.02923583984375,
-0.0223541259765625,
0.005458831787109375,
-0.048309326171875,
0.0058746337890625,
-0.0219268798828125,
0.00962066650390625,
0.0302581787109375,
-0.0108642578125,
0.0141754150390625,
0.0263214111328125,
-0.0357666015625,
0.0026607513427734375,
0.005268096923828125,
0.020111083984375,
-0.04766845703125,
0.006893157958984375,
0.0035400390625,
0.005657196044921875,
0.0296478271484375,
0.052154541015625,
-0.005016326904296875,
-0.011810302734375,
0.0279541015625,
-0.035980224609375,
-0.050262451171875,
-0.0199737548828125,
0.039031982421875,
0.0227203369140625,
-0.1092529296875,
0.0203857421875,
-0.0704345703125,
0.0185546875,
-0.0155181884765625,
-0.000396728515625,
0.059814453125,
-0.00975799560546875,
-0.006618499755859375,
0.07537841796875,
0.0230712890625,
-0.06890869140625,
-0.0110321044921875,
0.0236053466796875,
-0.03924560546875,
-0.01424407958984375,
0.0131988525390625,
0.0016889572143554688,
-0.0024127960205078125,
0.0287017822265625,
-0.0139617919921875,
0.07611083984375,
0.0283355712890625,
-0.0274810791015625,
0.0228271484375,
0.04095458984375,
-0.051513671875,
0.0292816162109375,
-0.011962890625,
0.0235137939453125,
-0.04107666015625,
0.0310516357421875,
-0.036529541015625,
0.00927734375,
0.01172637939453125,
0.0472412109375,
0.04913330078125,
0.01525115966796875,
0.007450103759765625,
-0.043853759765625,
-0.004550933837890625,
-0.01483154296875,
-0.040069580078125,
0.0367431640625,
-0.024932861328125,
-0.00876617431640625,
-0.02447509765625,
-0.038330078125,
0.02154541015625,
-0.051483154296875,
-0.043853759765625,
-0.01195526123046875,
0.005870819091796875,
0.021026611328125,
0.0011587142944335938,
0.0212249755859375,
-0.0290985107421875,
0.002407073974609375,
0.026702880859375,
-0.00606536865234375,
0.00872039794921875,
0.023223876953125,
-0.0025386810302734375,
0.0304107666015625,
0.002899169921875,
-0.00969696044921875,
0.0234527587890625,
-0.0168609619140625,
0.0120086669921875,
0.024200439453125,
0.0095977783203125,
0.033172607421875,
-0.02490234375,
0.00830078125,
0.009368896484375,
-0.01242828369140625,
0.011932373046875,
0.0012311935424804688,
0.0156097412109375,
-0.03375244140625,
0.018341064453125,
0.044281005859375,
0.0148468017578125,
-0.0300445556640625,
-0.08416748046875,
0.004245758056640625,
0.0255126953125,
0.043243408203125,
0.0255889892578125,
0.02783203125,
-0.033050537109375,
0.06500244140625,
-0.0236663818359375,
0.01194000244140625,
0.00775146484375,
-0.0035648345947265625,
-0.01263427734375,
0.011077880859375,
-0.0023212432861328125,
0.037689208984375,
-0.0211944580078125,
0.01202392578125,
0.034271240234375,
-0.0030612945556640625,
-0.0236968994140625,
0.0207061767578125,
0.0419921875,
0.0142364501953125,
-0.01544189453125,
0.01030731201171875,
0.0220947265625,
0.00919342041015625,
-0.02264404296875,
-0.00949859619140625,
0.052978515625,
0.0144195556640625,
-0.01971435546875,
0.027191162109375,
0.0262908935546875,
0.03515625,
-0.031524658203125,
-0.01183319091796875,
0.09259033203125,
-0.02789306640625,
0.00766754150390625,
0.00641632080078125,
-0.03497314453125,
0.0028591156005859375,
-0.043212890625,
-0.0052337646484375,
0.0245208740234375,
0.0036106109619140625,
0.0005097389221191406,
0.0229644775390625,
0.01337432861328125,
0.0080413818359375,
0.032073974609375,
0.01434326171875,
0.042694091796875,
0.052978515625,
-0.055938720703125,
-0.0254058837890625,
-0.01245880126953125,
0.0301513671875,
-0.00566864013671875,
0.010467529296875,
-0.011383056640625,
0.0474853515625,
-0.0016336441040039062,
-0.041717529296875,
-0.007320404052734375,
0.042449951171875,
-0.0037250518798828125,
0.00013136863708496094,
0.016448974609375,
-0.01265716552734375,
-0.06427001953125,
-0.018341064453125,
-0.042266845703125,
0.021209716796875,
-0.0159454345703125,
0.103515625,
-0.032958984375,
0.014251708984375,
-0.0121917724609375,
-0.010772705078125,
0.0012912750244140625,
0.0139312744140625,
-0.041351318359375,
0.0094757080078125,
0.010101318359375,
-0.021148681640625,
-0.007549285888671875,
0.0159759521484375,
0.03338623046875,
-0.01129913330078125,
-0.0002703666687011719,
-0.01947021484375,
0.0159149169921875,
0.0181732177734375,
0.00824737548828125,
-0.035797119140625,
-0.0191497802734375,
-0.031219482421875,
-0.00910186767578125,
0.035919189453125,
-0.01282501220703125,
-0.040374755859375,
-0.0089569091796875,
0.03997802734375,
-0.018798828125,
0.0132598876953125,
0.007427215576171875,
0.03436279296875,
0.03851318359375,
0.005260467529296875,
-0.049652099609375,
-0.056060791015625,
-0.023712158203125,
-0.0419921875,
-0.004985809326171875,
0.0097808837890625,
-0.031524658203125,
-0.0279998779296875,
-0.01213836669921875,
-0.0041046142578125,
0.0193328857421875,
-0.00994110107421875,
-0.0206756591796875,
-0.02349853515625,
-0.0034465789794921875,
0.01140594482421875,
-0.064208984375,
-0.00859832763671875,
-0.06744384765625,
-0.0006947517395019531,
0.02685546875,
-0.0399169921875,
0.0014019012451171875,
-0.001293182373046875,
0.0035724639892578125,
0.0546875,
0.0211181640625,
-0.0298919677734375,
0.051605224609375,
-0.0303802490234375,
-0.053741455078125,
0.06048583984375,
-0.00302886962890625,
-0.034637451171875,
-0.026580810546875,
-0.006988525390625,
-0.0772705078125,
-0.043609619140625,
0.09857177734375,
-0.0236358642578125,
-0.01448822021484375,
0.0255126953125,
0.0207366943359375,
0.0158843994140625,
-0.03643798828125,
-0.0330810546875,
0.00882720947265625,
-0.053863525390625,
-0.00957489013671875,
-0.0239105224609375,
0.03662109375,
-0.01432037353515625,
-0.03753662109375,
0.0159149169921875,
0.01511383056640625,
-0.0139007568359375,
-0.059173583984375,
0.0352783203125,
0.033782958984375,
-0.0243988037109375,
-0.03363037109375,
0.028472900390625,
-0.01245880126953125,
0.0018377304077148438,
-0.06341552734375,
-0.0240936279296875,
-0.01006317138671875,
0.05950927734375,
-0.006793975830078125,
-0.0447998046875,
-0.0271759033203125,
0.06866455078125,
-0.00926971435546875,
0.008392333984375,
-0.004093170166015625,
-0.021881103515625,
-0.025482177734375,
0.02581787109375,
0.04400634765625,
0.01210784912109375,
-0.01448822021484375,
0.0274658203125,
0.01318359375,
0.0439453125,
-0.003376007080078125,
0.01499176025390625,
0.0163116455078125,
-0.032958984375,
-0.033416748046875,
0.004734039306640625,
-0.008087158203125,
-0.01019287109375,
0.02423095703125,
0.049896240234375,
-0.0038547515869140625,
-0.0183563232421875,
0.0494384765625,
0.006519317626953125,
0.0197601318359375,
-0.00479888916015625,
-0.007434844970703125,
-0.0252532958984375,
-0.045379638671875,
0.01425933837890625,
0.017822265625,
0.0225982666015625,
-0.00659942626953125,
0.01499176025390625,
-0.027587890625,
0.018310546875,
-0.0128326416015625,
-0.0258941650390625,
-0.022125244140625,
0.032470703125,
-0.017059326171875,
0.0207977294921875,
-0.016143798828125,
0.037109375,
0.022552490234375,
0.0041961669921875,
-0.056854248046875,
0.01116180419921875,
-0.0299530029296875,
0.037506103515625,
-0.043243408203125,
0.0153350830078125,
-0.053466796875,
0.047332763671875,
-0.006580352783203125,
-0.01378631591796875,
-0.01201629638671875,
-0.0153961181640625,
0.054412841796875,
-0.003841400146484375,
-0.0089874267578125,
0.010589599609375,
-0.031280517578125,
-0.036865234375,
-0.0322265625,
0.007129669189453125,
-0.03240966796875,
0.0233001708984375,
0.034088134765625,
-0.0207061767578125,
0.006961822509765625,
0.038848876953125,
-0.07391357421875,
-0.0361328125,
0.01873779296875,
0.072509765625,
0.002277374267578125,
0.006256103515625
] |
c5e4d8e5712c3029f12d4978eedb42e8ff192fd9 | Wordpress Stackexchange
Q: Adding pre-publish checks with Gutenberg Before publishing an unpublished article pre-publish checks are shown.
How can I extend this programmatically, and disable the publish button if the checks are not passed?
A: This got me started.
Set up the block with create-guten-block Gitub
Update block.js to something like:
import './style.scss';
import './editor.scss';
var PluginPrePublishPanel = wp.editPost.PluginPrePublishPanel;
var registerPlugin = wp.plugins.registerPlugin;
function Component() {
wp.data.dispatch('core/editor').lockPostSaving()
//do stuff
//wp.data.dispatch('core/editor').unlockPostSaving()
return wp.element.createElement(
PluginPrePublishPanel,
{
className: 'my-plugin-publish-panel',
title: 'Panel title',
initialOpen: true,
},
'Panel content'
);
}
registerPlugin( 'my-plugin', {
render: Component,
});
| Q: Adding pre-publish checks with Gutenberg Before publishing an unpublished article pre-publish checks are shown.
How can I extend this programmatically, and disable the publish button if the checks are not passed?
A: This got me started.
Set up the block with create-guten-block Gitub
Update block.js to something like:
import './style.scss';
import './editor.scss';
var PluginPrePublishPanel = wp.editPost.PluginPrePublishPanel;
var registerPlugin = wp.plugins.registerPlugin;
function Component() {
wp.data.dispatch('core/editor').lockPostSaving()
//do stuff
//wp.data.dispatch('core/editor').unlockPostSaving()
return wp.element.createElement(
PluginPrePublishPanel,
{
className: 'my-plugin-publish-panel',
title: 'Panel title',
initialOpen: true,
},
'Panel content'
);
}
registerPlugin( 'my-plugin', {
render: Component,
});
| wordpress | {
"language": "en",
"length": 90,
"provenance": "stackexchange_00019.jsonl.gz:494414",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/334100"
} | [
0.0194244384765625,
0.0290679931640625,
-0.05047607421875,
-0.0219879150390625,
0.0244598388671875,
-0.02813720703125,
-0.0297698974609375,
-0.017059326171875,
0.00487518310546875,
0.034942626953125,
0.0070037841796875,
-0.0175933837890625,
0.0299530029296875,
-0.0360107421875,
0.01276397705078125,
0.00550079345703125,
0.01605224609375,
0.0615234375,
0.06072998046875,
-0.0088043212890625,
-0.0183258056640625,
-0.0004565715789794922,
0.0258636474609375,
0.0200347900390625,
0.013214111328125,
-0.005619049072265625,
0.062164306640625,
0.0007534027099609375,
0.025787353515625,
-0.009002685546875,
0.034942626953125,
-0.04071044921875,
0.005321502685546875,
0.04833984375,
-0.05224609375,
0.029449462890625,
0.03369140625,
0.0212554931640625,
0.01454925537109375,
0.0214691162109375,
0.03167724609375,
-0.021942138671875,
-0.0242156982421875,
0.007480621337890625,
-0.008331298828125,
-0.024017333984375,
0.01288604736328125,
-0.04144287109375,
0.03436279296875,
0.08782958984375,
-0.0179290771484375,
0.0191650390625,
-0.020965576171875,
0.00936126708984375,
0.007328033447265625,
-0.019500732421875,
-0.03448486328125,
0.01381683349609375,
0.036529541015625,
0.08355712890625,
-0.0025424957275390625,
-0.00606536865234375,
-0.037841796875,
-0.09130859375,
0.025848388671875,
-0.016876220703125,
0.0230712890625,
0.03173828125,
-0.07122802734375,
0.017730712890625,
0.06427001953125,
-0.036224365234375,
0.00140380859375,
-0.0270538330078125,
-0.0091094970703125,
0.033721923828125,
-0.01209259033203125,
0.00507354736328125,
0.0166473388671875,
-0.0031890869140625,
0.0251007080078125,
-0.0036678314208984375,
0.015960693359375,
-0.02227783203125,
0.0189666748046875,
-0.0022068023681640625,
-0.00534820556640625,
0.0006313323974609375,
-0.0238037109375,
-0.030029296875,
-0.0193634033203125,
-0.006988525390625,
-0.0523681640625,
0.0233154296875,
0.00696563720703125,
-0.0128326416015625,
0.0207061767578125,
0.05413818359375,
-0.0194244384765625,
0.0250701904296875,
-0.026214599609375,
-0.01508331298828125,
0.026275634765625,
-0.03277587890625,
-0.0025634765625,
0.03167724609375,
-0.052978515625,
0.0247039794921875,
0.057220458984375,
0.051788330078125,
0.020660400390625,
-0.03045654296875,
-0.01287841796875,
-0.00548553466796875,
-0.041046142578125,
0.0220489501953125,
-0.0255126953125,
0.005016326904296875,
-0.00258636474609375,
0.036834716796875,
0.018798828125,
0.035308837890625,
-0.0037384033203125,
-0.038482666015625,
-0.00902557373046875,
-0.0107269287109375,
-0.03021240234375,
-0.01084136962890625,
-0.0257415771484375,
0.0169830322265625,
-0.0240631103515625,
0.02703857421875,
0.091064453125,
0.024566650390625,
0.002277374267578125,
-0.0230865478515625,
0.040283203125,
0.033966064453125,
0.005405426025390625,
0.00971221923828125,
-0.06256103515625,
-0.01229095458984375,
0.0182952880859375,
-0.04974365234375,
0.003910064697265625,
0.0252685546875,
0.046478271484375,
-0.004650115966796875,
-0.045196533203125,
-0.06744384765625,
0.00904083251953125,
-0.0115203857421875,
0.03485107421875,
0.0030727386474609375,
-0.0226593017578125,
-0.0169677734375,
-0.00620269775390625,
-0.00783538818359375,
-0.019012451171875,
-0.019012451171875,
0.0187225341796875,
-0.012786865234375,
0.027923583984375,
-0.030181884765625,
-0.034393310546875,
0.01105499267578125,
-0.04541015625,
-0.01439666748046875,
0.0198211669921875,
0.0743408203125,
0.00792694091796875,
-0.01824951171875,
-0.006252288818359375,
-0.025482177734375,
-0.038360595703125,
-0.00862884521484375,
-0.00836944580078125,
-0.01171875,
0.03350830078125,
0.00391387939453125,
-0.020355224609375,
-0.0295562744140625,
0.05657958984375,
-0.0328369140625,
-0.072021484375,
0.0185394287109375,
-0.01090240478515625,
0.05230712890625,
0.048583984375,
-0.005931854248046875,
0.0200958251953125,
-0.01477813720703125,
-0.0819091796875,
0.018890380859375,
-0.023834228515625,
0.00475311279296875,
0.059600830078125,
0.03302001953125,
0.007160186767578125,
-0.0210113525390625,
0.063232421875,
-0.021484375,
0.02166748046875,
-0.0172576904296875,
-0.041412353515625,
-0.00907135009765625,
-0.006931304931640625,
0.0109710693359375,
-0.0078125,
0.0127105712890625,
0.0221405029296875,
-0.0084228515625,
-0.020599365234375,
0.006122589111328125,
-0.0153045654296875,
-0.037933349609375,
-0.0203857421875,
0.0574951171875,
0.02655029296875,
0.01535797119140625,
0.041412353515625,
-0.0002887248992919922,
0.055450439453125,
-0.0134735107421875,
0.065673828125,
-0.01340484619140625,
-0.01047515869140625,
-0.025115966796875,
0.044097900390625,
0.006008148193359375,
-0.034332275390625,
0.023345947265625,
0.040252685546875,
0.025360107421875,
0.006450653076171875,
0.0357666015625,
0.04730224609375,
-0.0546875,
-0.0203094482421875,
0.02685546875,
0.02850341796875,
-0.0271453857421875,
-0.039031982421875,
-0.03375244140625,
0.0179595947265625,
-0.054931640625,
-0.00983428955078125,
0.00034499168395996094,
0.034332275390625,
0.033355712890625,
-0.0703125,
-0.02362060546875,
0.060821533203125,
0.005306243896484375,
0.032012939453125,
0.03399658203125,
-0.0126190185546875,
0.013916015625,
-0.024139404296875,
-0.03179931640625,
0.0184326171875,
-0.006458282470703125,
-0.0287322998046875,
-0.01200103759765625,
0.0386962890625,
-0.03179931640625,
0.03173828125,
0.021240234375,
0.0105438232421875,
-0.0260162353515625,
0.01995849609375,
-0.039337158203125,
0.00811004638671875,
0.0174102783203125,
0.0244903564453125,
0.0258331298828125,
-0.050689697265625,
-0.00482177734375,
0.0214385986328125,
0.0311279296875,
-0.0261077880859375,
0.003753662109375,
-0.0118560791015625,
0.0010156631469726562,
-0.00904083251953125,
-0.042388916015625,
0.0210418701171875,
-0.01464080810546875,
0.00862884521484375,
-0.0251922607421875,
0.02325439453125,
-0.0296783447265625,
-0.031829833984375,
0.0274200439453125,
0.0174102783203125,
-0.04852294921875,
-0.0048370361328125,
-0.0623779296875,
0.039581298828125,
-0.047576904296875,
0.05889892578125,
0.05145263671875,
-0.031036376953125,
0.0011968612670898438,
0.007843017578125,
-0.019317626953125,
-0.0177459716796875,
0.0292816162109375,
-0.01458740234375,
-0.01502227783203125,
-0.0645751953125,
0.0311279296875,
0.0318603515625,
-0.0161590576171875,
0.031646728515625,
0.002674102783203125,
-0.02557373046875,
0.0090789794921875,
-0.0138397216796875,
-0.0161285400390625,
-0.0265045166015625,
-0.044464111328125,
0.000476837158203125,
-0.00769805908203125,
-0.021697998046875,
0.0010633468627929688,
0.01806640625,
0.00743865966796875,
-0.08941650390625,
-0.0002989768981933594,
-0.00244903564453125,
-0.071533203125,
-0.01012420654296875,
0.037933349609375,
-0.005344390869140625,
0.03167724609375,
-0.001392364501953125,
0.05029296875,
-0.0018768310546875,
-0.0516357421875,
-0.013519287109375,
-0.0241546630859375,
0.00894927978515625,
0.0120849609375,
-0.014312744140625,
-0.0022602081298828125,
-0.00360107421875,
0.017120361328125,
0.0025081634521484375,
-0.0191650390625,
0.0037174224853515625,
-0.013336181640625,
0.0126190185546875,
0.00788116455078125,
0.0156402587890625,
0.027740478515625,
-0.01114654541015625,
-0.0086669921875,
0.0118865966796875,
-0.0458984375,
0.021148681640625,
0.025054931640625,
0.01125335693359375,
-0.0019426345825195312,
-0.020294189453125,
-0.0198516845703125,
0.020721435546875,
0.00006258487701416016,
0.008453369140625,
0.0222320556640625,
0.07342529296875,
0.0101318359375,
-0.043426513671875,
-0.049346923828125,
-0.0684814453125,
-0.051116943359375,
0.0274200439453125,
-0.00711822509765625,
0.02459716796875,
0.01111602783203125,
0.0279083251953125,
-0.007144927978515625,
0.0416259765625,
-0.04327392578125,
0.019378662109375,
0.02044677734375,
-0.062103271484375,
-0.01910400390625,
-0.0258941650390625,
0.00757598876953125,
-0.015106201171875,
0.00872039794921875,
0.007099151611328125,
-0.01227569580078125,
-0.00301361083984375,
-0.01282501220703125,
-0.011566162109375,
0.022552490234375,
-0.03570556640625,
0.0005559921264648438,
-0.018341064453125,
0.01322174072265625,
-0.0176544189453125,
0.00852203369140625,
0.0055694580078125,
-0.04534912109375,
0.0269927978515625,
-0.0419921875,
0.03924560546875,
-0.043182373046875,
0.0134124755859375,
0.0181427001953125,
-0.01800537109375,
-0.00659942626953125,
-0.0316162109375,
-0.0159912109375,
-0.06024169921875,
0.019805908203125,
-0.046356201171875,
-0.0045623779296875,
-0.01073455810546875,
0.056976318359375,
-0.037322998046875,
0.00189971923828125,
-0.01256561279296875,
0.004459381103515625,
0.0216522216796875,
0.0284423828125,
-0.0006651878356933594,
0.01068115234375,
0.02459716796875,
-0.027099609375,
0.01108551025390625,
0.044769287109375,
-0.00821685791015625,
0.0634765625,
-0.019134521484375,
-0.06121826171875,
0.03570556640625,
-0.054290771484375,
-0.05615234375,
-0.048309326171875,
-0.02374267578125,
-0.0037899017333984375,
-0.0087432861328125,
-0.01165771484375,
-0.04351806640625,
-0.040435791015625,
0.0262298583984375,
-0.02947998046875,
0.0129241943359375,
0.007740020751953125,
0.053955078125,
0.0087738037109375,
-0.014190673828125,
-0.0191497802734375,
0.0211944580078125,
0.0223541259765625,
0.00435638427734375,
0.0159454345703125,
-0.007213592529296875,
-0.014068603515625,
0.053009033203125,
-0.0311279296875,
-0.03594970703125,
0.000988006591796875,
0.01385498046875,
-0.01494598388671875,
-0.02685546875,
-0.004352569580078125,
-0.035614013671875,
0.06707763671875,
0.000904083251953125,
-0.006694793701171875,
0.0110321044921875,
0.01727294921875,
-0.01447296142578125,
-0.006420135498046875,
0.0009427070617675781,
0.02032470703125,
-0.0185699462890625,
0.0095062255859375,
0.0435791015625,
0.0184326171875,
0.0275421142578125,
0.004467010498046875,
0.023895263671875,
0.013519287109375,
-0.04296875,
-0.028656005859375,
-0.01885986328125,
-0.01108551025390625,
-0.007328033447265625,
-0.024566650390625,
-0.03338623046875,
-0.0274200439453125,
0.0021991729736328125,
0.004852294921875,
-0.0292510986328125,
-0.050689697265625,
-0.047088623046875,
0.006298065185546875,
-0.01103973388671875,
0.0099639892578125,
-0.0110321044921875,
0.04254150390625,
0.017364501953125,
-0.045379638671875,
-0.015533447265625,
0.0046234130859375,
-0.02471923828125,
-0.0650634765625,
-0.044219970703125,
0.0031375885009765625,
-0.0280609130859375,
0.04150390625,
-0.0193328857421875,
0.02227783203125,
-0.0310821533203125,
-0.0133209228515625,
0.0579833984375,
0.05609130859375,
-0.0249481201171875,
0.0201873779296875,
0.027740478515625,
-0.01247406005859375,
-0.05072021484375,
-0.021392822265625,
-0.0191802978515625,
-0.032989501953125,
-0.0164642333984375,
0.001270294189453125,
-0.020477294921875,
0.008819580078125,
0.04559326171875,
0.00919342041015625,
-0.0091400146484375,
-0.007366180419921875,
0.03204345703125,
0.0122833251953125,
0.00493621826171875,
-0.0187530517578125,
-0.0275421142578125,
0.041046142578125,
-0.00624847412109375,
0.003444671630859375,
-0.0235137939453125,
-0.01421356201171875,
0.00988006591796875,
-0.038330078125,
-0.0191497802734375,
-0.00110626220703125,
0.0030059814453125,
-0.0230865478515625,
-0.01922607421875,
-0.01078033447265625,
-0.005401611328125,
-0.01537322998046875,
0.0034542083740234375,
0.04205322265625,
-0.059173583984375,
-0.0140380859375,
-0.04388427734375,
0.041229248046875,
-0.0263671875,
0.0268402099609375,
0.038482666015625,
0.031494140625,
-0.001018524169921875,
-0.058746337890625,
-0.046539306640625,
-0.035491943359375,
-0.05560302734375,
-0.005771636962890625,
-0.0231475830078125,
0.054718017578125,
0.034881591796875,
0.0270843505859375,
-0.03076171875,
-0.06866455078125,
0.018768310546875,
0.01995849609375,
0.039154052734375,
0.060821533203125,
0.024505615234375,
0.059906005859375,
-0.050872802734375,
0.09429931640625,
0.01934814453125,
0.00634002685546875,
-0.0391845703125,
-0.03131103515625,
-0.035003662109375,
-0.04034423828125,
0.0159149169921875,
0.0143280029296875,
0.03369140625,
0.0298309326171875,
-0.001018524169921875,
0.0188751220703125,
0.00449371337890625,
0.01175689697265625,
0.0118408203125,
-0.0250396728515625,
0.0022430419921875,
0.00238037109375,
-0.01409912109375,
0.020538330078125,
-0.01009368896484375,
0.01308441162109375,
-0.0177154541015625,
0.0025081634521484375,
0.01229095458984375,
-0.006977081298828125,
-0.0068817138671875,
-0.01081085205078125,
-0.0273590087890625,
0.0484619140625,
0.0291595458984375,
0.002689361572265625,
0.0330810546875,
0.00855255126953125,
0.0277099609375,
-0.004955291748046875,
-0.0250091552734375,
0.004299163818359375,
-0.0033435821533203125,
0.041473388671875,
0.01473236083984375,
0.0161895751953125,
0.082275390625,
-0.0028533935546875,
0.0170440673828125,
0.048431396484375,
0.0294036865234375,
-0.06414794921875,
-0.007183074951171875,
-0.01522064208984375,
-0.03924560546875,
0.017822265625,
-0.01245880126953125,
-0.00565338134765625,
-0.053314208984375,
0.0679931640625,
0.01482391357421875,
-0.0086212158203125,
0.019012451171875,
-0.01605224609375,
-0.0304718017578125,
-0.0177001953125,
0.01299285888671875,
0.028045654296875,
-0.027099609375,
0.0443115234375,
0.02947998046875,
0.0131072998046875,
-0.0003719329833984375,
0.036651611328125,
-0.0157470703125,
-0.0246429443359375,
-0.019317626953125,
0.009765625,
-0.00400543212890625,
-0.03973388671875,
0.035858154296875,
0.022308349609375,
-0.006221771240234375,
0.03277587890625,
-0.0001398324966430664,
0.005706787109375,
-0.002750396728515625,
-0.010833740234375,
-0.0364990234375,
-0.00109100341796875,
0.045257568359375,
0.00750732421875,
-0.039276123046875,
0.02813720703125,
-0.03851318359375,
-0.02716064453125,
0.006641387939453125,
0.032867431640625,
0.050445556640625,
-0.00408935546875,
-0.042633056640625,
0.036651611328125,
-0.023834228515625,
-0.01369476318359375,
-0.004138946533203125,
0.019927978515625,
-0.038238525390625,
-0.0147247314453125,
-0.0037994384765625,
-0.02197265625,
-0.0201873779296875,
-0.002719879150390625,
-0.07598876953125,
0.11883544921875,
0.0159149169921875,
0.0286407470703125,
-0.004993438720703125,
0.0567626953125,
-0.04754638671875,
0.0165557861328125,
-0.05194091796875,
0.0491943359375,
-0.04034423828125,
0.057220458984375,
-0.09417724609375,
-0.0189056396484375,
-0.0125274658203125,
0.0341796875,
0.0804443359375,
0.01397705078125,
-0.057708740234375,
-0.048248291015625,
-0.00713348388671875,
0.02423095703125,
-0.022705078125,
0.04925537109375,
0.00615692138671875,
0.040283203125,
-0.0011167526245117188,
-0.037261962890625,
0.033447265625,
-0.0697021484375,
-0.045989990234375,
0.0295562744140625,
-0.002689361572265625,
-0.006458282470703125,
-0.0124359130859375,
0.03851318359375,
-0.003787994384765625,
-0.0100860595703125,
0.004276275634765625,
-0.014556884765625,
0.00936126708984375,
0.034271240234375,
0.032867431640625,
0.0081787109375,
-0.038238525390625,
-0.0039825439453125,
0.033966064453125,
0.0180206298828125,
0.020477294921875,
0.0186767578125,
0.0156707763671875,
-0.0311126708984375,
0.046173095703125,
0.0184173583984375,
0.0513916015625,
-0.0234832763671875,
0.00841522216796875,
-0.0256500244140625,
0.01116943359375,
-0.04095458984375,
0.031982421875,
0.01557159423828125,
-0.004985809326171875,
-0.025177001953125,
-0.033782958984375,
0.00604248046875,
0.0251617431640625,
0.016876220703125,
-0.0234375,
0.0166473388671875,
-0.012786865234375,
0.026824951171875,
0.0227508544921875,
-0.0333251953125,
-0.046722412109375,
0.01062774658203125,
-0.0211029052734375,
0.003604888916015625,
0.05596923828125,
-0.0230712890625,
-0.07220458984375,
0.017181396484375,
-0.0098724365234375,
0.07208251953125,
0.045074462890625,
0.060699462890625,
0.003971099853515625,
-0.028289794921875,
-0.03973388671875,
-0.0030269622802734375,
0.03350830078125,
0.047332763671875,
-0.045928955078125,
0.0029201507568359375,
0.058685302734375,
0.035614013671875,
0.0264892578125,
0.05108642578125,
0.04974365234375,
0.05010986328125,
0.0188446044921875,
0.0025348663330078125,
0.0419921875,
-0.00494384765625,
-0.039642333984375,
-0.016143798828125,
0.019317626953125,
0.01044464111328125,
0.0125885009765625,
0.01495361328125,
0.0867919921875,
-0.029693603515625,
-0.0272064208984375,
0.0330810546875,
-0.00540924072265625,
-0.0384521484375,
0.04742431640625,
0.0181884765625,
0.08837890625,
0.01375579833984375,
-0.051239013671875,
0.0300445556640625,
-0.0421142578125,
-0.0560302734375,
0.004180908203125,
0.0254058837890625,
-0.04095458984375,
0.054840087890625,
0.0220947265625,
0.0164337158203125,
0.059722900390625,
-0.060089111328125,
0.024017333984375,
0.029632568359375,
0.00853729248046875,
0.01910400390625,
-0.052459716796875,
-0.03057861328125,
-0.01611328125,
0.049224853515625,
-0.00028967857360839844,
0.060638427734375,
-0.01355743408203125,
0.00176239013671875,
-0.0004677772521972656,
0.00036215782165527344,
-0.0013685226440429688,
0.006656646728515625,
-0.01549530029296875,
0.006412506103515625,
0.0199127197265625,
0.00524139404296875,
-0.03887939453125,
0.0200042724609375,
0.01422882080078125,
0.00800323486328125,
0.03289794921875,
-0.057342529296875,
0.034759521484375,
0.0195159912109375,
0.0223846435546875,
-0.03204345703125,
-0.036102294921875,
-0.025146484375,
0.0176544189453125,
0.008697509765625,
0.00533294677734375,
-0.01464080810546875,
0.03375244140625,
0.031829833984375,
-0.0141754150390625,
0.00937652587890625,
-0.02093505859375,
0.0158843994140625,
0.038116455078125,
0.002529144287109375,
-0.01407623291015625,
-0.02313232421875,
-0.0164642333984375,
0.00551605224609375,
0.0111541748046875,
-0.005352020263671875,
0.0082855224609375,
0.0029697418212890625,
-0.042205810546875,
0.0202178955078125,
0.015045166015625,
-0.037872314453125,
0.0203857421875,
0.0167694091796875,
-0.011566162109375,
-0.0210723876953125,
0.03277587890625,
0.0130462646484375,
0.007640838623046875,
-0.045440673828125,
-0.0258941650390625,
-0.01085662841796875,
-0.07501220703125,
0.0007905960083007812,
0.007793426513671875,
0.018798828125,
-0.0180511474609375,
-0.050567626953125,
0.0261993408203125,
-0.0253753662109375,
0.052490234375,
-0.0300445556640625,
0.0806884765625,
-0.0318603515625,
-0.0140228271484375,
-0.0163116455078125,
-0.004680633544921875,
-0.00850677490234375,
0.05810546875,
0.01520538330078125,
-0.01444244384765625,
0.00475311279296875,
-0.007709503173828125,
-0.036346435546875,
-0.033233642578125,
-0.004062652587890625,
0.0025730133056640625,
-0.0156707763671875,
-0.01629638671875,
0.003772735595703125,
-0.003978729248046875,
-0.001148223876953125,
-0.068359375,
0.010406494140625,
-0.0760498046875,
-0.0295257568359375,
-0.0238189697265625,
0.0204620361328125,
0.038116455078125,
-0.0275421142578125,
-0.05181884765625,
-0.0217132568359375,
0.01396942138671875,
-0.0367431640625,
-0.0167694091796875,
0.0276641845703125,
-0.021514892578125,
-0.0052337646484375,
-0.0094146728515625,
0.024200439453125,
0.01200103759765625,
0.0067138671875,
-0.0248260498046875,
0.01715087890625,
-0.00449371337890625,
-0.031585693359375,
-0.046966552734375,
-0.0188751220703125,
-0.0159454345703125,
-0.00281524658203125,
-0.01666259765625,
-0.024017333984375,
0.03192138671875,
0.0024356842041015625,
-0.034942626953125,
0.01442718505859375,
0.0318603515625,
0.033355712890625,
-0.047698974609375,
-0.038604736328125,
0.01012420654296875,
0.00739288330078125,
0.0843505859375,
0.049468994140625,
0.0130615234375,
-0.045867919921875,
0.0609130859375,
-0.00543212890625,
-0.057220458984375,
0.006839752197265625,
0.017486572265625,
-0.0200042724609375,
-0.01229095458984375,
0.0008611679077148438,
-0.005733489990234375,
-0.04632568359375,
-0.0201416015625,
-0.0399169921875,
-0.01458740234375,
-0.047515869140625,
-0.01328277587890625,
-0.0088653564453125,
-0.01038360595703125,
0.039520263671875,
-0.0242462158203125,
-0.00714111328125,
0.00005501508712768555,
0.01556396484375,
0.01654052734375,
0.0208740234375,
-0.025177001953125,
0.0252532958984375,
-0.0428466796875,
-0.0009608268737792969,
-0.0182342529296875,
0.0129852294921875,
-0.0379638671875,
0.04364013671875,
0.0205535888671875,
-0.038116455078125,
-0.034210205078125,
-0.071044921875,
0.0015125274658203125,
0.0203704833984375,
-0.0650634765625,
0.12310791015625,
-0.0029201507568359375,
0.0171661376953125,
-0.0167999267578125,
0.023712158203125,
0.0022296905517578125,
0.0022563934326171875,
0.005428314208984375,
-0.00750732421875,
0.00884246826171875,
0.0009517669677734375,
-0.01149749755859375,
-0.028106689453125,
-0.0099639892578125,
-0.035430908203125,
0.0008959770202636719,
0.003475189208984375
] |
dc06151e7d3de5bd2458f83b15d7ac45607e90ac | Wordpress Stackexchange
Q: Can I define multiple callback methods depending on the call method? He is my current custom API:
add_action( 'rest_api_init', function () {
register_rest_route('my-project/v1/form', '/get', array(
'methods' => WP_REST_Server::READABLE,
'callback' => 'get_form'
));
});
add_action( 'rest_api_init', function () {
register_rest_route('my-project/v1/form', '/post', array(
'methods' => 'POST',
'callback' => 'post_form'
));
});
Here is something I would like to write, but I'm not sure if it is possible.
What I'm sure is that this syntax i
add_action( 'rest_api_init', function () {
register_rest_route('my-project/v1/', '/form',
array(
'methods' => 'GET',
'callback' => 'GET_form',
), array(
'methods' => 'POST',
'callback' => 'post_form',
), );
});
A: Check if your code looks like this because in the question you pass each method as separate function arguments (I have overlooked it earlier)
add_action( 'rest_api_init', function () {
register_rest_route('my-project/v1/', '/form',
array(
array('methods' => 'GET',
'callback' => 'GET_form',
),
array('methods' => 'POST',
'callback' => 'post_form'
)
)
);
});
As you can read in documentation:
Parameters #
$args - (array) (Optional)
Either an array of options for the endpoint, or an array of arrays for multiple methods.
Default value: array()
| Q: Can I define multiple callback methods depending on the call method? He is my current custom API:
add_action( 'rest_api_init', function () {
register_rest_route('my-project/v1/form', '/get', array(
'methods' => WP_REST_Server::READABLE,
'callback' => 'get_form'
));
});
add_action( 'rest_api_init', function () {
register_rest_route('my-project/v1/form', '/post', array(
'methods' => 'POST',
'callback' => 'post_form'
));
});
Here is something I would like to write, but I'm not sure if it is possible.
What I'm sure is that this syntax i
add_action( 'rest_api_init', function () {
register_rest_route('my-project/v1/', '/form',
array(
'methods' => 'GET',
'callback' => 'GET_form',
), array(
'methods' => 'POST',
'callback' => 'post_form',
), );
});
A: Check if your code looks like this because in the question you pass each method as separate function arguments (I have overlooked it earlier)
add_action( 'rest_api_init', function () {
register_rest_route('my-project/v1/', '/form',
array(
array('methods' => 'GET',
'callback' => 'GET_form',
),
array('methods' => 'POST',
'callback' => 'post_form'
)
)
);
});
As you can read in documentation:
Parameters #
$args - (array) (Optional)
Either an array of options for the endpoint, or an array of arrays for multiple methods.
Default value: array()
| wordpress | {
"language": "en",
"length": 180,
"provenance": "stackexchange_00019.jsonl.gz:494447",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/334221"
} | [
0.038787841796875,
-0.025787353515625,
-0.0214996337890625,
-0.05340576171875,
-0.0010423660278320312,
-0.0146026611328125,
0.0194854736328125,
0.0280303955078125,
-0.0301513671875,
0.006481170654296875,
-0.0153961181640625,
0.0254364013671875,
-0.044677734375,
-0.0213470458984375,
0.009368896484375,
-0.0408935546875,
0.03924560546875,
0.0152587890625,
0.03466796875,
-0.021759033203125,
0.030181884765625,
0.00603485107421875,
0.0053253173828125,
0.1273193359375,
0.0034885406494140625,
0.01438140869140625,
0.0056304931640625,
-0.003910064697265625,
-0.0241546630859375,
-0.00762939453125,
-0.006587982177734375,
-0.0000947713851928711,
0.011962890625,
0.039276123046875,
-0.03515625,
-0.00263214111328125,
0.0149383544921875,
0.01053619384765625,
-0.014862060546875,
0.05950927734375,
0.0211181640625,
-0.02496337890625,
-0.01146697998046875,
-0.006023406982421875,
-0.0249176025390625,
-0.00412750244140625,
0.054443359375,
0.006927490234375,
-0.00011563301086425781,
0.0175628662109375,
0.00275421142578125,
-0.006938934326171875,
0.0009088516235351562,
0.0044097900390625,
-0.0025691986083984375,
-0.017547607421875,
0.0078125,
-0.0270538330078125,
0.046234130859375,
0.01097869873046875,
-0.040252685546875,
-0.0252838134765625,
0.0198974609375,
-0.03729248046875,
0.007434844970703125,
-0.000804901123046875,
0.031707763671875,
0.009185791015625,
-0.0126495361328125,
0.0180206298828125,
0.019378662109375,
-0.021942138671875,
-0.00914764404296875,
-0.0114898681640625,
-0.0253143310546875,
-0.0100555419921875,
0.02490234375,
-0.019378662109375,
0.00560760498046875,
0.0012874603271484375,
-0.0009150505065917969,
-0.033416748046875,
0.0167083740234375,
-0.000995635986328125,
0.0093994140625,
0.0289306640625,
-0.008819580078125,
-0.007556915283203125,
-0.048797607421875,
-0.026611328125,
-0.022064208984375,
-0.1075439453125,
-0.029449462890625,
0.029327392578125,
0.02105712890625,
-0.0303497314453125,
-0.0087432861328125,
-0.047821044921875,
0.03875732421875,
0.0024929046630859375,
0.072265625,
-0.07080078125,
0.065185546875,
-0.006122589111328125,
-0.0037689208984375,
0.048553466796875,
0.0254669189453125,
0.0129852294921875,
0.0233154296875,
0.00806427001953125,
-0.00200653076171875,
0.052490234375,
0.0279541015625,
-0.0000762939453125,
-0.01287841796875,
-0.0372314453125,
-0.0272064208984375,
0.020050048828125,
0.003322601318359375,
-0.007617950439453125,
-0.004398345947265625,
0.00933074951171875,
0.032318115234375,
-0.0016660690307617188,
-0.0098419189453125,
-0.0130157470703125,
-0.00545501708984375,
-0.041595458984375,
0.03863525390625,
0.011688232421875,
-0.012054443359375,
0.030975341796875,
0.0207061767578125,
-0.018402099609375,
-0.0296173095703125,
0.003322601318359375,
0.0276336669921875,
0.047943115234375,
0.0110626220703125,
0.023895263671875,
0.004486083984375,
-0.05767822265625,
-0.026763916015625,
0.038543701171875,
0.00485992431640625,
-0.0253143310546875,
0.02227783203125,
0.045166015625,
-0.0100250244140625,
-0.03125,
0.039093017578125,
0.00679779052734375,
-0.003582000732421875,
0.033599853515625,
0.0080718994140625,
0.042327880859375,
-0.0007724761962890625,
0.0080108642578125,
-0.007354736328125,
0.0206756591796875,
-0.00792694091796875,
-0.023681640625,
-0.0136260986328125,
-0.0694580078125,
-0.08538818359375,
0.01183319091796875,
-0.012603759765625,
-0.01151275634765625,
0.01082611083984375,
0.036102294921875,
0.0043792724609375,
0.0099029541015625,
0.0092315673828125,
0.0163116455078125,
-0.0038547515869140625,
-0.0022430419921875,
0.013824462890625,
0.0546875,
-0.001827239990234375,
-0.0245208740234375,
-0.02197265625,
-0.047271728515625,
0.060150146484375,
-0.0141754150390625,
-0.0953369140625,
0.10064697265625,
0.010955810546875,
0.09588623046875,
-0.00568389892578125,
0.0012798309326171875,
0.05450439453125,
0.05865478515625,
0.0098419189453125,
-0.01012420654296875,
-0.00708770751953125,
-0.043426513671875,
-0.004993438720703125,
-0.02392578125,
-0.0239105224609375,
0.041046142578125,
-0.0053863525390625,
0.00341033935546875,
-0.00482177734375,
0.0350341796875,
-0.026763916015625,
0.017913818359375,
-0.017486572265625,
0.012420654296875,
-0.043182373046875,
0.0198516845703125,
0.0204010009765625,
0.021209716796875,
-0.0439453125,
0.03216552734375,
0.0188140869140625,
0.005237579345703125,
-0.037261962890625,
0.01812744140625,
-0.0196380615234375,
0.00614166259765625,
-0.03131103515625,
0.0035228729248046875,
-0.0228729248046875,
0.025665283203125,
0.06689453125,
-0.026611328125,
0.0011377334594726562,
-0.050140380859375,
0.059356689453125,
-0.0160369873046875,
-0.0263824462890625,
0.053436279296875,
0.0293121337890625,
0.02398681640625,
-0.022918701171875,
-0.00951385498046875,
0.0017871856689453125,
-0.03662109375,
0.00153350830078125,
0.038299560546875,
0.037841796875,
-0.0211944580078125,
0.0200653076171875,
0.03497314453125,
0.044525146484375,
-0.0124053955078125,
0.01446533203125,
-0.004558563232421875,
-0.0264892578125,
0.01043701171875,
-0.0095672607421875,
0.0164337158203125,
0.01177978515625,
-0.05047607421875,
-0.0062103271484375,
0.04388427734375,
-0.0628662109375,
-0.09246826171875,
0.0292205810546875,
-0.029571533203125,
0.033050537109375,
-0.1253662109375,
-0.0623779296875,
-0.03570556640625,
-0.03753662109375,
0.0106048583984375,
0.00042176246643066406,
0.020721435546875,
-0.0273284912109375,
-0.0095977783203125,
0.0290069580078125,
0.04803466796875,
-0.01154327392578125,
0.036651611328125,
0.028289794921875,
-0.0183258056640625,
0.0191497802734375,
-0.003314971923828125,
-0.06500244140625,
0.004123687744140625,
-0.018096923828125,
0.0372314453125,
-0.00942230224609375,
-0.01428985595703125,
-0.0164642333984375,
-0.043426513671875,
0.0082244873046875,
-0.002490997314453125,
0.032470703125,
-0.009033203125,
0.044464111328125,
-0.01428985595703125,
-0.028839111328125,
0.029693603515625,
-0.0125274658203125,
-0.057464599609375,
-0.01337432861328125,
0.0158538818359375,
0.0166168212890625,
-0.01904296875,
-0.03594970703125,
0.022918701171875,
-0.01397705078125,
-0.003528594970703125,
-0.0028533935546875,
-0.0183563232421875,
-0.004703521728515625,
0.0160980224609375,
-0.005947113037109375,
-0.07061767578125,
0.025482177734375,
0.027618408203125,
0.0243682861328125,
0.005504608154296875,
0.0197601318359375,
-0.02227783203125,
-0.01153564453125,
0.007427215576171875,
-0.04541015625,
-0.035797119140625,
0.10076904296875,
-0.053863525390625,
0.04144287109375,
-0.003536224365234375,
-0.035491943359375,
-0.08184814453125,
0.022369384765625,
-0.00337982177734375,
-0.0203857421875,
0.00201416015625,
-0.0179443359375,
-0.0131072998046875,
-0.05126953125,
0.0285797119140625,
0.00521087646484375,
0.00882720947265625,
0.01168060302734375,
0.0638427734375,
0.024169921875,
-0.0266571044921875,
0.022674560546875,
-0.00653076171875,
-0.0236053466796875,
0.016937255859375,
0.02734375,
-0.0200958251953125,
0.0115966796875,
-0.00738525390625,
0.039337158203125,
0.050262451171875,
-0.035003662109375,
0.00002586841583251953,
-0.0047760009765625,
0.02545166015625,
0.01088714599609375,
0.03436279296875,
0.0194854736328125,
0.02459716796875,
0.0157318115234375,
-0.03253173828125,
-0.005733489990234375,
0.0143585205078125,
-0.033538818359375,
-0.048797607421875,
0.043121337890625,
-0.03814697265625,
-0.02459716796875,
-0.0006341934204101562,
0.0038909912109375,
0.006450653076171875,
0.0277557373046875,
-0.00013303756713867188,
0.02978515625,
-0.0119476318359375,
-0.007617950439453125,
-0.035552978515625,
0.06854248046875,
0.01152801513671875,
-0.03240966796875,
0.0251312255859375,
0.0240478515625,
-0.00360107421875,
-0.031768798828125,
-0.0653076171875,
0.004955291748046875,
0.038482666015625,
-0.00592803955078125,
-0.00229644775390625,
0.0157012939453125,
-0.0079803466796875,
0.019805908203125,
0.03857421875,
-0.025146484375,
-0.00977325439453125,
-0.0035305023193359375,
0.023345947265625,
-0.035552978515625,
-0.0477294921875,
-0.01800537109375,
-0.007678985595703125,
0.049285888671875,
-0.0269622802734375,
-0.0233612060546875,
-0.003292083740234375,
-0.01218414306640625,
-0.02398681640625,
0.02484130859375,
-0.0156402587890625,
0.016082763671875,
-0.035247802734375,
0.01398468017578125,
-0.01222991943359375,
0.025665283203125,
-0.0635986328125,
-0.0013427734375,
-0.0198211669921875,
-0.0899658203125,
-0.01465606689453125,
-0.04071044921875,
0.07000732421875,
0.05279541015625,
-0.048736572265625,
0.0162811279296875,
0.0672607421875,
0.02032470703125,
0.01000213623046875,
0.02642822265625,
-0.004047393798828125,
0.012847900390625,
-0.00975799560546875,
0.0059814453125,
-0.0243988037109375,
-0.0038433074951171875,
0.0083160400390625,
-0.0338134765625,
0.03240966796875,
-0.020111083984375,
0.00850677490234375,
0.0155792236328125,
-0.038543701171875,
-0.045013427734375,
-0.0276641845703125,
-0.030303955078125,
0.03302001953125,
-0.017364501953125,
-0.0025081634521484375,
-0.043914794921875,
-0.06854248046875,
-0.0018749237060546875,
-0.05712890625,
-0.0036296844482421875,
0.0235137939453125,
0.036956787109375,
0.01486968994140625,
0.007793426513671875,
-0.017059326171875,
0.00569915771484375,
0.0053863525390625,
0.0111846923828125,
0.0343017578125,
-0.03021240234375,
-0.0229339599609375,
0.08428955078125,
-0.0223388671875,
0.018035888671875,
0.0299072265625,
-0.00363922119140625,
0.01983642578125,
-0.00885009765625,
-0.001064300537109375,
0.02789306640625,
-0.04473876953125,
0.0250244140625,
-0.0099029541015625,
-0.004070281982421875,
0.0183868408203125,
0.0195159912109375,
-0.0665283203125,
0.027801513671875,
-0.0097198486328125,
-0.0341796875,
0.0193023681640625,
-0.04248046875,
0.051483154296875,
-0.00012612342834472656,
-0.00188446044921875,
0.023773193359375,
-0.01068878173828125,
0.007709503173828125,
0.0147247314453125,
0.033050537109375,
-0.01458740234375,
0.040618896484375,
0.0037021636962890625,
-0.00992584228515625,
-0.0172119140625,
-0.004302978515625,
0.040069580078125,
0.01375579833984375,
-0.02508544921875,
-0.0273590087890625,
-0.0139312744140625,
0.050506591796875,
-0.0264434814453125,
0.0041046142578125,
0.038665771484375,
-0.00031566619873046875,
-0.0100555419921875,
-0.0004661083221435547,
-0.0186004638671875,
-0.01502227783203125,
-0.021270751953125,
0.045135498046875,
0.007404327392578125,
0.0136566162109375,
-0.0304107666015625,
0.06982421875,
0.0089111328125,
0.0222625732421875,
-0.021636962890625,
0.04046630859375,
0.00565338134765625,
0.0343017578125,
0.011474609375,
-0.0118865966796875,
0.007320404052734375,
0.0168914794921875,
0.004276275634765625,
-0.020843505859375,
0.0050506591796875,
0.03887939453125,
0.044158935546875,
0.01406097412109375,
-0.0033550262451171875,
-0.0224761962890625,
-0.03253173828125,
-0.040924072265625,
-0.008056640625,
0.0003561973571777344,
-0.029144287109375,
-0.004180908203125,
0.0205841064453125,
-0.005084991455078125,
0.0233306884765625,
0.027740478515625,
-0.008331298828125,
0.0731201171875,
0.04486083984375,
-0.066650390625,
-0.0172576904296875,
0.0184326171875,
0.041015625,
0.0177154541015625,
-0.016998291015625,
-0.016143798828125,
-0.0297088623046875,
-0.0098876953125,
-0.015838623046875,
-0.0155487060546875,
0.0565185546875,
-0.0268402099609375,
0.001483917236328125,
-0.0165557861328125,
0.006870269775390625,
-0.045623779296875,
0.01434326171875,
0.05377197265625,
0.033966064453125,
-0.018341064453125,
0.01180267333984375,
-0.04119873046875,
-0.0196380615234375,
-0.0252685546875,
-0.03765869140625,
-0.02264404296875,
-0.028167724609375,
-0.01153564453125,
0.00464630126953125,
0.01488494873046875,
0.042236328125,
0.0226287841796875,
0.01488494873046875,
-0.03369140625,
0.0034770965576171875,
-0.0040130615234375,
0.052032470703125,
-0.0125885009765625,
0.06573486328125,
0.012420654296875,
0.005084991455078125,
-0.031646728515625,
-0.0254364013671875,
-0.00138092041015625,
-0.102783203125,
-0.004329681396484375,
-0.024658203125,
-0.036773681640625,
0.0614013671875,
0.050994873046875,
0.00864410400390625,
-0.0181427001953125,
-0.002750396728515625,
0.009368896484375,
-0.0145263671875,
0.052703857421875,
0.016845703125,
-0.00579071044921875,
-0.024169921875,
0.0016851425170898438,
0.00836944580078125,
-0.04095458984375,
-0.01294708251953125,
0.040771484375,
-0.003543853759765625,
0.0298004150390625,
-0.006816864013671875,
-0.068603515625,
0.0220947265625,
0.1143798828125,
0.040740966796875,
0.08892822265625,
-0.021331787109375,
0.027069091796875,
0.112548828125,
0.006145477294921875,
0.00717926025390625,
-0.0280303955078125,
0.01409149169921875,
-0.0011119842529296875,
0.0212554931640625,
0.033538818359375,
-0.00611114501953125,
0.03485107421875,
0.006885528564453125,
0.057647705078125,
-0.039764404296875,
0.039093017578125,
0.00673675537109375,
-0.01094818115234375,
0.06109619140625,
-0.0168914794921875,
-0.007366180419921875,
-0.0182952880859375,
0.00263214111328125,
0.02276611328125,
-0.05316162109375,
-0.0028285980224609375,
0.0228118896484375,
0.00588226318359375,
0.003383636474609375,
-0.0265655517578125,
-0.003360748291015625,
0.01204681396484375,
0.00872039794921875,
-0.004985809326171875,
0.050384521484375,
0.00162506103515625,
0.0202789306640625,
-0.004924774169921875,
-0.0156402587890625,
-0.04058837890625,
0.00824737548828125,
-0.0191497802734375,
-0.040191650390625,
0.01096343994140625,
-0.0225830078125,
0.0296630859375,
0.0494384765625,
-0.026336669921875,
0.01514434814453125,
0.025848388671875,
-0.008087158203125,
-0.0479736328125,
-0.0189208984375,
0.02056884765625,
-0.0059967041015625,
-0.025604248046875,
0.029266357421875,
-0.033294677734375,
-0.03131103515625,
0.0156707763671875,
0.031890869140625,
0.047393798828125,
-0.0127410888671875,
-0.0406494140625,
0.0155181884765625,
-0.023162841796875,
0.0049285888671875,
-0.0017566680908203125,
-0.00335693359375,
-0.0623779296875,
-0.058929443359375,
-0.002681732177734375,
-0.080322265625,
0.00783538818359375,
-0.0157623291015625,
-0.043304443359375,
0.14306640625,
-0.01666259765625,
0.01453399658203125,
-0.0032596588134765625,
0.06573486328125,
-0.0135345458984375,
0.0550537109375,
-0.03369140625,
0.03533935546875,
0.0306549072265625,
-0.01666259765625,
-0.021728515625,
0.018890380859375,
-0.03204345703125,
-0.01221466064453125,
0.06219482421875,
0.01401519775390625,
-0.01349639892578125,
-0.0144195556640625,
0.0128936767578125,
0.01482391357421875,
-0.042236328125,
0.027069091796875,
0.0243682861328125,
0.03570556640625,
0.05999755859375,
-0.001537322998046875,
0.047332763671875,
-0.00458526611328125,
-0.0119781494140625,
0.031494140625,
-0.01314544677734375,
-0.03350830078125,
0.0165252685546875,
0.037078857421875,
-0.030853271484375,
0.005046844482421875,
0.017333984375,
0.00936126708984375,
-0.0261383056640625,
0.034515380859375,
-0.0236663818359375,
0.00794219970703125,
0.054107666015625,
-0.046295166015625,
0.033905029296875,
-0.024322509765625,
-0.01079559326171875,
0.03411865234375,
0.01090240478515625,
0.0039215087890625,
0.017059326171875,
0.0018873214721679688,
0.0325927734375,
-0.005252838134765625,
0.06341552734375,
0.0204010009765625,
0.038299560546875,
-0.01483917236328125,
-0.006137847900390625,
-0.026580810546875,
0.05908203125,
-0.03863525390625,
-0.01137542724609375,
0.0136260986328125,
0.014892578125,
0.017364501953125,
-0.009063720703125,
0.03997802734375,
-0.032470703125,
-0.00913238525390625,
-0.0254974365234375,
0.014862060546875,
-0.0021038055419921875,
-0.007045745849609375,
-0.0114593505859375,
-0.01763916015625,
0.0015172958374023438,
0.0301971435546875,
-0.04052734375,
0.01922607421875,
0.0203857421875,
0.061370849609375,
0.0118560791015625,
0.0501708984375,
-0.03277587890625,
-0.037933349609375,
0.01023101806640625,
0.00495147705078125,
0.007843017578125,
-0.0253143310546875,
0.01172637939453125,
-0.0264129638671875,
-0.00188446044921875,
0.01348876953125,
0.0293731689453125,
0.0218658447265625,
0.02850341796875,
0.039031982421875,
0.00777435302734375,
0.00994110107421875,
0.075439453125,
0.004428863525390625,
-0.0014524459838867188,
-0.040069580078125,
-0.07342529296875,
-0.0545654296875,
-0.034637451171875,
0.026641845703125,
-0.0213623046875,
-0.0276641845703125,
-0.0081329345703125,
0.0001271963119506836,
0.002552032470703125,
-0.031005859375,
0.0206298828125,
-0.01910400390625,
0.049163818359375,
-0.00293731689453125,
-0.01043701171875,
0.0184783935546875,
0.0006551742553710938,
-0.071044921875,
0.019378662109375,
0.0325927734375,
-0.0390625,
0.04400634765625,
-0.010101318359375,
-0.0038318634033203125,
0.00833892822265625,
0.00897979736328125,
-0.01776123046875,
0.0074005126953125,
0.0518798828125,
0.006488800048828125,
-0.06219482421875,
-0.035858154296875,
-0.0131683349609375,
0.0257415771484375,
-0.0017871856689453125,
0.0740966796875,
-0.01087188720703125,
0.0073699951171875,
0.0133209228515625,
0.004535675048828125,
0.0147705078125,
-0.0033740997314453125,
-0.0012292861938476562,
0.01174163818359375,
0.0386962890625,
-0.00400543212890625,
-0.0047454833984375,
0.006252288818359375,
0.026031494140625,
-0.00799560546875,
0.0239105224609375,
-0.0261993408203125,
0.0184326171875,
-0.01297760009765625,
0.054443359375,
-0.020965576171875,
-0.027587890625,
-0.045562744140625,
-0.0003001689910888672,
0.042724609375,
0.05206298828125,
-0.00403594970703125,
-0.0041046142578125,
0.01561737060546875,
-0.0177459716796875,
0.0200958251953125,
0.019866943359375,
0.03466796875,
0.027435302734375,
-0.0189361572265625,
-0.01039886474609375,
-0.035369873046875,
-0.0264739990234375,
0.01080322265625,
0.004039764404296875,
-0.00684356689453125,
-0.01340484619140625,
0.03173828125,
-0.0122222900390625,
0.0203704833984375,
0.01375579833984375,
-0.031982421875,
0.00006514787673950195,
0.0205078125,
-0.028350830078125,
-0.0022983551025390625,
0.0015306472778320312,
-0.01395416259765625,
-0.044403076171875,
0.0031604766845703125,
-0.013397216796875,
0.0027637481689453125,
-0.036041259765625,
0.0009565353393554688,
-0.005275726318359375,
0.0231475830078125,
-0.01837158203125,
-0.00873565673828125,
-0.01428985595703125,
-0.049591064453125,
0.048095703125,
-0.02734375,
-0.0160064697265625,
0.031890869140625,
0.053131103515625,
-0.0460205078125,
-0.0115203857421875,
-0.007305145263671875,
-0.0159912109375,
0.0014133453369140625,
-0.00702667236328125,
-0.00804901123046875,
0.01239013671875,
-0.0089874267578125,
0.0283050537109375,
-0.007755279541015625,
0.06378173828125,
-0.0055389404296875,
-0.01129150390625,
0.01036834716796875,
0.0164794921875,
-0.041748046875,
-0.052032470703125,
0.01468658447265625,
-0.0265350341796875,
0.006084442138671875,
0.0135955810546875,
0.02996826171875,
0.033935546875,
-0.014068603515625,
-0.057586669921875,
0.0714111328125,
-0.0187225341796875,
-0.023895263671875,
-0.0968017578125,
-0.0045318603515625,
0.001850128173828125,
0.05523681640625,
-0.036712646484375,
-0.003200531005859375,
-0.02740478515625,
0.049652099609375,
-0.0026416778564453125,
0.058837890625,
0.0162811279296875,
-0.0009851455688476562,
0.0148773193359375,
0.0185699462890625,
-0.004314422607421875,
-0.01007843017578125,
0.036651611328125,
0.002655029296875,
0.062255859375,
0.06146240234375,
-0.00933837890625,
0.023712158203125,
-0.026123046875,
-0.03790283203125,
-0.01232147216796875,
-0.0693359375,
-0.0001398324966430664,
0.01824951171875,
0.054168701171875,
0.050872802734375,
-0.000698089599609375,
-0.07135009765625,
-0.00231170654296875,
-0.028778076171875,
-0.00885772705078125,
0.001377105712890625,
-0.006927490234375,
-0.0139617919921875,
0.01332855224609375,
-0.01202392578125,
0.018402099609375,
-0.016387939453125,
-0.00591278076171875,
0.019195556640625,
-0.03521728515625,
0.031707763671875,
-0.006389617919921875,
0.024932861328125,
-0.017730712890625,
0.025909423828125,
-0.015655517578125,
0.0012559890747070312,
0.006683349609375,
0.018035888671875,
0.005107879638671875,
0.021484375,
0.0034847259521484375,
0.0196533203125,
-0.017364501953125,
0.01305389404296875,
0.020477294921875,
-0.00029206275939941406,
-0.0089263916015625,
-0.013671875,
-0.01739501953125,
0.0275115966796875,
0.01303863525390625,
0.028594970703125,
-0.01100921630859375,
0.035400390625,
0.006671905517578125,
0.04107666015625,
-0.015869140625,
0.052154541015625,
0.00726318359375,
-0.003688812255859375,
-0.012847900390625,
0.01078033447265625,
0.03369140625,
-0.024993896484375,
-0.01432037353515625,
0.01308441162109375,
-0.0287017822265625,
-0.06268310546875,
0.040618896484375,
0.07916259765625,
0.01430511474609375,
0.0277252197265625
] |
1dce10c02a33a543582cc7da813d1af8cae9a406 | Wordpress Stackexchange
Q: WordPress and VueJS routing problem I am testing the integration of a VueJS app in WordPress.
It actually works (no styles yet).
BUT
If I access a URL like https://example.com/my-vue-route/about, the .htaccess URL rewriting redirects any incoming HTTPS request to the index.php of WordPress. So I actually never land on /my-vue-route/about but on the /about page, as WordPress thinks I made a typo.
Is it somehow possible to keep the vue routes out of this URL rewriting?
A: This is the default WordPress .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Please add add the following line to it to prevent the default behavior for your custom route.
RewriteCond %{REQUEST_URI} !^/my-vue-route/(.+)
Like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/my-vue-route/(.+)
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
| Q: WordPress and VueJS routing problem I am testing the integration of a VueJS app in WordPress.
It actually works (no styles yet).
BUT
If I access a URL like https://example.com/my-vue-route/about, the .htaccess URL rewriting redirects any incoming HTTPS request to the index.php of WordPress. So I actually never land on /my-vue-route/about but on the /about page, as WordPress thinks I made a typo.
Is it somehow possible to keep the vue routes out of this URL rewriting?
A: This is the default WordPress .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Please add add the following line to it to prevent the default behavior for your custom route.
RewriteCond %{REQUEST_URI} !^/my-vue-route/(.+)
Like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/my-vue-route/(.+)
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
| wordpress | {
"language": "en",
"length": 164,
"provenance": "stackexchange_00019.jsonl.gz:494488",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/334342"
} | [
0.0164337158203125,
-0.005107879638671875,
-0.04730224609375,
-0.0281982421875,
0.02984619140625,
-0.0200958251953125,
0.04315185546875,
0.0157623291015625,
-0.04345703125,
-0.007007598876953125,
-0.04193115234375,
0.054443359375,
-0.0435791015625,
-0.015625,
0.07183837890625,
-0.0135345458984375,
0.01371002197265625,
-0.0182647705078125,
0.0038127899169921875,
-0.00492095947265625,
0.006534576416015625,
0.00667572021484375,
0.0259552001953125,
-0.0100250244140625,
-0.00923919677734375,
-0.049591064453125,
0.09185791015625,
-0.0273590087890625,
-0.0025501251220703125,
-0.040771484375,
0.0152740478515625,
-0.0084991455078125,
0.0189361572265625,
0.031494140625,
-0.060272216796875,
-0.07470703125,
-0.029022216796875,
0.01560211181640625,
-0.01326751708984375,
0.020416259765625,
0.032623291015625,
-0.049072265625,
0.06884765625,
-0.004245758056640625,
0.031494140625,
-0.0413818359375,
0.07476806640625,
-0.04913330078125,
0.030853271484375,
0.021697998046875,
0.004604339599609375,
0.03497314453125,
0.0038909912109375,
0.00782012939453125,
-0.003948211669921875,
0.00778961181640625,
-0.04150390625,
-0.0013141632080078125,
0.0019216537475585938,
0.04559326171875,
0.026824951171875,
0.00615692138671875,
-0.0024356842041015625,
-0.006336212158203125,
-0.0253753662109375,
-0.0008592605590820312,
-0.0278778076171875,
0.01074981689453125,
-0.025299072265625,
-0.0302734375,
0.01471710205078125,
-0.0169677734375,
-0.01922607421875,
-0.02752685546875,
-0.0220794677734375,
-0.004314422607421875,
-0.0035247802734375,
-0.028045654296875,
-0.007022857666015625,
0.012725830078125,
-0.006984710693359375,
-0.0257720947265625,
-0.0190582275390625,
-0.039398193359375,
-0.00720977783203125,
-0.0287933349609375,
-0.004024505615234375,
0.006381988525390625,
-0.04815673828125,
0.0112152099609375,
-0.027740478515625,
-0.03668212890625,
0.0074310302734375,
-0.0194244384765625,
-0.004428863525390625,
-0.0127410888671875,
0.007648468017578125,
0.009185791015625,
0.019866943359375,
0.002964019775390625,
0.037506103515625,
-0.06463623046875,
0.043487548828125,
-0.0328369140625,
0.0004553794860839844,
0.07147216796875,
0.0307159423828125,
0.09423828125,
0.0560302734375,
0.0017805099487304688,
0.0457763671875,
0.06158447265625,
-0.01052093505859375,
0.0038661956787109375,
-0.035888671875,
-0.00726318359375,
-0.056396484375,
-0.0494384765625,
-0.0143890380859375,
-0.046600341796875,
-0.01959228515625,
-0.0014448165893554688,
-0.0017538070678710938,
0.0263824462890625,
-0.0155487060546875,
-0.031951904296875,
-0.00988006591796875,
-0.005001068115234375,
0.0005359649658203125,
0.0289306640625,
-0.029876708984375,
-0.0043487548828125,
0.042999267578125,
0.055694580078125,
0.01763916015625,
-0.025543212890625,
0.045562744140625,
-0.0281524658203125,
0.0020999908447265625,
0.021759033203125,
-0.007495880126953125,
-0.036712646484375,
-0.0037994384765625,
-0.01201629638671875,
-0.01409149169921875,
0.040924072265625,
0.00560760498046875,
0.00634002685546875,
-0.0013284683227539062,
-0.046478271484375,
-0.0107269287109375,
-0.049530029296875,
0.029022216796875,
0.0226593017578125,
0.01209259033203125,
0.01001739501953125,
0.056976318359375,
-0.028045654296875,
-0.04052734375,
-0.027801513671875,
0.007129669189453125,
-0.01271820068359375,
-0.006572723388671875,
-0.038970947265625,
-0.036102294921875,
-0.005939483642578125,
-0.054290771484375,
-0.005130767822265625,
0.0100250244140625,
0.02972412109375,
-0.0073699951171875,
-0.007183074951171875,
-0.050689697265625,
-0.01776123046875,
-0.0019931793212890625,
0.00617218017578125,
0.01715087890625,
-0.01641845703125,
0.023345947265625,
0.07464599609375,
0.0390625,
-0.014068603515625,
0.04840087890625,
-0.0085601806640625,
-0.03375244140625,
0.027069091796875,
-0.006053924560546875,
0.033447265625,
0.016845703125,
0.006923675537109375,
0.0081024169921875,
0.01201629638671875,
0.0081024169921875,
0.011962890625,
-0.006343841552734375,
-0.048187255859375,
-0.0122528076171875,
-0.027008056640625,
-0.014739990234375,
0.01885986328125,
-0.005001068115234375,
0.004512786865234375,
0.011322021484375,
0.00632476806640625,
-0.02252197265625,
0.026519775390625,
-0.0201416015625,
0.037994384765625,
-0.0167236328125,
0.027130126953125,
0.0206756591796875,
0.0296783447265625,
-0.052978515625,
0.019989013671875,
-0.0008983612060546875,
0.025299072265625,
0.0156707763671875,
0.03253173828125,
-0.0290069580078125,
0.027679443359375,
-0.0170745849609375,
-0.0228424072265625,
-0.01212310791015625,
0.033050537109375,
0.004703521728515625,
-0.005435943603515625,
-0.0208740234375,
-0.005199432373046875,
-0.0105133056640625,
0.0070037841796875,
-0.037933349609375,
0.0205078125,
-0.0029125213623046875,
0.0024394989013671875,
-0.0599365234375,
0.004764556884765625,
-0.01035308837890625,
0.0209197998046875,
0.0012521743774414062,
0.03887939453125,
0.038726806640625,
0.0224761962890625,
-0.01335906982421875,
-0.0162200927734375,
0.031036376953125,
-0.039093017578125,
0.003490447998046875,
-0.018096923828125,
-0.01216888427734375,
0.0146331787109375,
0.03240966796875,
0.01505279541015625,
0.015655517578125,
0.0034637451171875,
0.00263214111328125,
0.01052093505859375,
-0.0009489059448242188,
-0.0028209686279296875,
-0.03558349609375,
0.00157928466796875,
0.02447509765625,
0.00974273681640625,
-0.05316162109375,
0.015625,
-0.006656646728515625,
-0.018402099609375,
0.002254486083984375,
0.0219573974609375,
0.0255279541015625,
-0.050262451171875,
0.0018930435180664062,
-0.006317138671875,
-0.01468658447265625,
0.076416015625,
0.062744140625,
-0.0185699462890625,
-0.02752685546875,
-0.017669677734375,
-0.001708984375,
0.047760009765625,
-0.005695343017578125,
0.005126953125,
-0.01261138916015625,
-0.01654052734375,
-0.0089111328125,
-0.0504150390625,
0.003387451171875,
0.0018863677978515625,
-0.0012054443359375,
0.0247802734375,
0.037811279296875,
0.01416778564453125,
-0.0135955810546875,
0.0209197998046875,
-0.007701873779296875,
-0.005100250244140625,
0.048828125,
-0.051422119140625,
0.0772705078125,
-0.06866455078125,
0.0229644775390625,
0.046539306640625,
-0.048797607421875,
0.0221405029296875,
-0.00397491455078125,
0.0107269287109375,
-0.0018177032470703125,
0.0103302001953125,
-0.0091552734375,
-0.035003662109375,
-0.0609130859375,
-0.0712890625,
0.0267791748046875,
0.0096588134765625,
0.0173187255859375,
-0.0014629364013671875,
0.00897979736328125,
0.03985595703125,
-0.029388427734375,
-0.041961669921875,
0.00424957275390625,
-0.027923583984375,
-0.0151824951171875,
0.00957489013671875,
-0.00981903076171875,
-0.01073455810546875,
0.0137176513671875,
0.0026454925537109375,
-0.0033397674560546875,
-0.005100250244140625,
-0.021331787109375,
-0.0268707275390625,
-0.068603515625,
-0.00762939453125,
0.00507354736328125,
0.0227203369140625,
0.00780487060546875,
-0.0321044921875,
-0.0055389404296875,
-0.005886077880859375,
0.0093841552734375,
0.0232086181640625,
0.009674072265625,
-0.0281829833984375,
-0.009521484375,
-0.037933349609375,
0.01263427734375,
0.0002655982971191406,
-0.01045989990234375,
0.0010833740234375,
0.0254058837890625,
-0.005031585693359375,
0.010162353515625,
-0.047943115234375,
0.003505706787109375,
-0.0035533905029296875,
-0.0031299591064453125,
-0.0290985107421875,
0.024749755859375,
-0.045989990234375,
-0.048828125,
0.0008511543273925781,
-0.038543701171875,
-0.0099945068359375,
0.051300048828125,
-0.0136871337890625,
-0.0269622802734375,
0.00406646728515625,
0.009613037109375,
0.0024890899658203125,
0.03302001953125,
-0.047943115234375,
0.047088623046875,
-0.01038360595703125,
0.00717926025390625,
-0.04840087890625,
0.042327880859375,
-0.0015201568603515625,
0.01180267333984375,
0.0137939453125,
-0.006496429443359375,
-0.01303863525390625,
-0.003528594970703125,
-0.053314208984375,
-0.0245513916015625,
0.037689208984375,
-0.030487060546875,
-0.0030956268310546875,
-0.005184173583984375,
-0.0091400146484375,
0.0015888214111328125,
0.056121826171875,
0.0305938720703125,
-0.0149078369140625,
0.0007257461547851562,
-0.0010633468627929688,
-0.0186309814453125,
0.035491943359375,
-0.037078857421875,
-0.007053375244140625,
-0.063232421875,
-0.01947021484375,
-0.0022106170654296875,
-0.056182861328125,
0.0313720703125,
-0.043060302734375,
-0.025054931640625,
-0.040863037109375,
0.0238494873046875,
-0.01042938232421875,
0.0244140625,
0.032562255859375,
0.01617431640625,
0.004383087158203125,
-0.01091766357421875,
-0.03448486328125,
-0.0657958984375,
-0.008819580078125,
0.008209228515625,
0.0335693359375,
-0.0286712646484375,
0.0151214599609375,
-0.0118408203125,
0.0545654296875,
-0.0168609619140625,
0.0286407470703125,
0.0226287841796875,
0.036712646484375,
0.0201873779296875,
0.003772735595703125,
0.03656005859375,
-0.01702880859375,
0.005481719970703125,
0.0203704833984375,
-0.00577545166015625,
-0.007465362548828125,
-0.0325927734375,
-0.06988525390625,
0.048004150390625,
-0.05914306640625,
-0.05389404296875,
-0.0193328857421875,
-0.0247039794921875,
0.0196533203125,
-0.0165863037109375,
-0.0108489990234375,
-0.0114593505859375,
-0.0435791015625,
0.07122802734375,
-0.005405426025390625,
-0.0020236968994140625,
-0.0268707275390625,
0.060760498046875,
0.0084991455078125,
-0.044219970703125,
0.05029296875,
-0.00719451904296875,
0.01300811767578125,
-0.004222869873046875,
0.0572509765625,
0.01267242431640625,
0.00984954833984375,
0.056396484375,
-0.01290130615234375,
0.02789306640625,
-0.0181427001953125,
-0.019989013671875,
-0.0117034912109375,
-0.026519775390625,
0.0092315673828125,
-0.00882720947265625,
0.00928497314453125,
0.005947113037109375,
-0.0128631591796875,
0.0196075439453125,
0.03741455078125,
-0.0127105712890625,
-0.0259552001953125,
0.0233001708984375,
0.023590087890625,
-0.041351318359375,
0.0198516845703125,
-0.043212890625,
0.083251953125,
0.00887298583984375,
-0.002079010009765625,
0.06591796875,
0.06573486328125,
-0.0269012451171875,
0.0233917236328125,
0.01163482666015625,
0.0107421875,
0.0121612548828125,
-0.002887725830078125,
-0.037994384765625,
-0.016937255859375,
-0.006011962890625,
0.046630859375,
-0.000476837158203125,
-0.0401611328125,
-0.004383087158203125,
-0.00560760498046875,
-0.0088958740234375,
0.02105712890625,
-0.003597259521484375,
0.032073974609375,
0.04412841796875,
-0.0193023681640625,
0.0022792816162109375,
0.033111572265625,
-0.0266876220703125,
-0.044403076171875,
0.0171051025390625,
0.004009246826171875,
-0.0079498291015625,
-0.00508880615234375,
0.08123779296875,
0.004009246826171875,
0.032684326171875,
0.0010900497436523438,
0.0067138671875,
-0.00942230224609375,
0.037689208984375,
0.0214996337890625,
-0.0194854736328125,
0.0274658203125,
-0.00030732154846191406,
0.0020084381103515625,
-0.01983642578125,
0.0019931793212890625,
0.0401611328125,
0.027679443359375,
0.01739501953125,
-0.0074462890625,
-0.0003571510314941406,
0.0031890869140625,
-0.009124755859375,
-0.0276336669921875,
-0.0016508102416992188,
0.00501251220703125,
0.0043792724609375,
-0.003871917724609375,
0.0071868896484375,
0.0212554931640625,
-0.0274810791015625,
0.00445556640625,
-0.0223236083984375,
0.0208587646484375,
0.0298919677734375,
0.007671356201171875,
0.003673553466796875,
-0.0124664306640625,
0.0011377334594726562,
-0.003978729248046875,
0.04412841796875,
-0.08001708984375,
0.00533294677734375,
-0.044891357421875,
-0.0286712646484375,
0.056121826171875,
-0.0206146240234375,
0.01329803466796875,
0.005096435546875,
-0.009490966796875,
0.033966064453125,
0.027862548828125,
-0.0296173095703125,
-0.04296875,
-0.02191162109375,
-0.006298065185546875,
-0.037200927734375,
-0.01715087890625,
0.021942138671875,
-0.0012035369873046875,
-0.0513916015625,
-0.01438140869140625,
-0.0138397216796875,
0.00334930419921875,
-0.006267547607421875,
0.038818359375,
-0.03277587890625,
0.0270538330078125,
-0.00543975830078125,
0.024078369140625,
-0.01451873779296875,
0.0916748046875,
-0.021759033203125,
0.0845947265625,
-0.0175628662109375,
0.01556396484375,
-0.0408935546875,
-0.008148193359375,
-0.006748199462890625,
-0.031585693359375,
0.015228271484375,
-0.030029296875,
-0.01129913330078125,
0.0224456787109375,
0.0693359375,
0.00897216796875,
0.004543304443359375,
0.025054931640625,
0.0034694671630859375,
-0.0174713134765625,
-0.0193328857421875,
0.0316162109375,
0.031707763671875,
0.00357818603515625,
0.033935546875,
0.047760009765625,
-0.0374755859375,
-0.0249176025390625,
-0.031585693359375,
0.0287933349609375,
-0.00585174560546875,
-0.01058197021484375,
-0.0257110595703125,
0.0224609375,
0.0570068359375,
0.0229644775390625,
0.05426025390625,
0.01395416259765625,
0.0271453857421875,
0.01107025146484375,
0.0220794677734375,
-0.01129913330078125,
-0.032470703125,
0.00983428955078125,
0.0006680488586425781,
0.0007410049438476562,
0.0081024169921875,
-0.006687164306640625,
-0.0059356689453125,
0.0665283203125,
0.05718994140625,
-0.07110595703125,
-0.03131103515625,
0.00690460205078125,
-0.052825927734375,
-0.03204345703125,
-0.011810302734375,
0.01219940185546875,
-0.0202789306640625,
0.02099609375,
0.007595062255859375,
-0.01898193359375,
-0.00279998779296875,
-0.0092926025390625,
-0.00037360191345214844,
-0.00445556640625,
0.033477783203125,
0.0127410888671875,
-0.0362548828125,
-0.00582122802734375,
-0.0076446533203125,
0.006916046142578125,
0.004894256591796875,
-0.0177154541015625,
0.030487060546875,
-0.044342041015625,
-0.052734375,
0.0041351318359375,
-0.0115509033203125,
-0.02313232421875,
0.0198822021484375,
0.0238037109375,
-0.00482177734375,
0.07635498046875,
-0.0191650390625,
0.0019464492797851562,
0.05133056640625,
-0.0193023681640625,
0.0736083984375,
-0.01219940185546875,
-0.00873565673828125,
-0.004093170166015625,
-0.0197906494140625,
-0.0225372314453125,
-0.0005774497985839844,
0.00689697265625,
-0.018280029296875,
0.01049041748046875,
0.0328369140625,
-0.00896453857421875,
-0.0226898193359375,
0.002941131591796875,
0.043975830078125,
0.021148681640625,
0.00949859619140625,
-0.0254364013671875,
-0.035675048828125,
-0.004207611083984375,
-0.00841522216796875,
-0.0220184326171875,
0.0216522216796875,
0.00010162591934204102,
-0.0660400390625,
0.09454345703125,
0.029510498046875,
0.023834228515625,
-0.0003256797790527344,
0.03619384765625,
-0.0207366943359375,
-0.0017614364624023438,
-0.003021240234375,
0.038421630859375,
0.031951904296875,
-0.0032100677490234375,
-0.0134735107421875,
-0.00713348388671875,
0.00039386749267578125,
0.049072265625,
0.09942626953125,
0.027862548828125,
-0.07244873046875,
-0.00273895263671875,
0.0855712890625,
0.0635986328125,
0.033538818359375,
0.03594970703125,
-0.0169677734375,
-0.036590576171875,
0.00296783447265625,
-0.04803466796875,
-0.007488250732421875,
-0.01226043701171875,
-0.0028591156005859375,
-0.01165771484375,
0.004199981689453125,
-0.01445770263671875,
0.0166778564453125,
0.02294921875,
-0.036712646484375,
0.0291290283203125,
0.01136016845703125,
0.00753021240234375,
0.021881103515625,
0.0200042724609375,
0.04827880859375,
-0.01534271240234375,
-0.01629638671875,
-0.0191802978515625,
0.059844970703125,
0.00754547119140625,
-0.0152587890625,
0.0242767333984375,
0.01055145263671875,
-0.006885528564453125,
0.0030155181884765625,
-0.011383056640625,
0.02044677734375,
0.006404876708984375,
0.00811767578125,
0.0322265625,
0.01319122314453125,
-0.004520416259765625,
-0.004161834716796875,
0.04193115234375,
0.0197296142578125,
-0.0281524658203125,
-0.038665771484375,
-0.004848480224609375,
-0.0174560546875,
-0.0010356903076171875,
-0.037933349609375,
-0.0276641845703125,
-0.032958984375,
-0.00551605224609375,
-0.0019369125366210938,
0.0176849365234375,
0.002658843994140625,
-0.0010652542114257812,
-0.009674072265625,
-0.007289886474609375,
-0.002689361572265625,
0.041168212890625,
-0.034912109375,
0.0280914306640625,
0.013427734375,
0.026092529296875,
-0.00014388561248779297,
0.03192138671875,
0.0310821533203125,
-0.0025310516357421875,
0.028045654296875,
0.04791259765625,
-0.032012939453125,
-0.038177490234375,
-0.021209716796875,
-0.08135986328125,
0.007236480712890625,
0.04522705078125,
0.0275726318359375,
0.020294189453125,
0.050323486328125,
-0.004787445068359375,
-0.0254669189453125,
-0.00513458251953125,
0.0179290771484375,
-0.0298614501953125,
0.06512451171875,
-0.02642822265625,
0.0199127197265625,
-0.016021728515625,
-0.01255035400390625,
-0.04327392578125,
-0.004734039306640625,
0.0333251953125,
0.027313232421875,
0.04742431640625,
0.0102081298828125,
0.0030384063720703125,
0.0197601318359375,
-0.022125244140625,
0.040985107421875,
0.0271148681640625,
0.0247039794921875,
-0.00464630126953125,
0.023284912109375,
0.007015228271484375,
-0.052215576171875,
0.0072174072265625,
0.03411865234375,
0.004974365234375,
0.0278167724609375,
-0.0390625,
0.033782958984375,
0.0116729736328125,
0.0027751922607421875,
-0.0197296142578125,
-0.00392913818359375,
-0.013214111328125,
-0.0643310546875,
-0.02978515625,
-0.01898193359375,
0.0274505615234375,
-0.021728515625,
0.1466064453125,
-0.06524658203125,
0.0025615692138671875,
-0.0174407958984375,
-0.0223388671875,
0.01428985595703125,
-0.0003180503845214844,
-0.0196685791015625,
0.01143646240234375,
0.00897216796875,
-0.0016031265258789062,
-0.077880859375,
-0.0209197998046875,
0.035491943359375,
-0.056915283203125,
0.01032257080078125,
-0.01172637939453125,
0.01483154296875,
-0.058319091796875,
0.01297760009765625,
-0.032501220703125,
-0.1085205078125,
-0.0498046875,
0.058013916015625,
-0.026947021484375,
0.041351318359375,
-0.0248260498046875,
0.06683349609375,
-0.01320648193359375,
0.00047135353088378906,
-0.0175933837890625,
-0.055511474609375,
-0.04901123046875,
0.00630950927734375,
0.01012420654296875,
0.0116119384765625,
-0.004177093505859375,
-0.0247650146484375,
0.00699615478515625,
-0.004009246826171875,
-0.0018949508666992188,
-0.005886077880859375,
-0.01496124267578125,
-0.0460205078125,
-0.0256500244140625,
0.003551483154296875,
0.0156402587890625,
-0.0065460205078125,
-0.05926513671875,
-0.006175994873046875,
0.00518035888671875,
-0.047698974609375,
-0.018890380859375,
-0.01493072509765625,
-0.01496124267578125,
0.03900146484375,
-0.0075836181640625,
-0.01922607421875,
-0.0472412109375,
-0.003093719482421875,
0.0235137939453125,
-0.0189361572265625,
-0.0377197265625,
-0.022247314453125,
-0.02685546875,
0.1065673828125,
-0.04510498046875,
0.00504302978515625,
0.0128173828125,
-0.00914764404296875,
-0.060333251953125,
-0.001049041748046875,
0.0052947998046875,
0.008331298828125,
-0.0032863616943359375,
0.026397705078125,
0.03875732421875,
-0.005046844482421875,
0.01543426513671875,
-0.04473876953125,
-0.029296875,
0.028839111328125,
-0.07550048828125,
-0.01444244384765625,
0.01512908935546875,
0.018768310546875,
-0.045379638671875,
-0.0404052734375,
0.007091522216796875,
-0.04644775390625,
0.0014314651489257812,
0.07928466796875,
-0.0328369140625,
0.025909423828125,
-0.03228759765625,
-0.11761474609375,
0.0416259765625,
0.017425537109375,
-0.05841064453125,
-0.053558349609375,
-0.000629425048828125,
0.0018138885498046875,
0.0128631591796875,
-0.03289794921875,
0.007720947265625,
-0.0235443115234375,
0.0484619140625,
0.031982421875,
0.09283447265625,
-0.0338134765625,
0.05078125,
0.01264190673828125,
0.04693603515625,
0.007328033447265625,
0.0236053466796875,
0.0244293212890625,
0.016357421875,
0.04925537109375,
0.060760498046875,
0.01251220703125,
0.07421875,
-0.007289886474609375,
-0.09649658203125,
0.01500701904296875,
-0.00696563720703125,
-0.03076171875,
-0.0196990966796875,
0.0258331298828125,
0.0305938720703125,
0.006488800048828125,
-0.0040283203125,
-0.011444091796875,
-0.06488037109375,
-0.0171356201171875,
-0.0016145706176757812,
0.01611328125,
-0.057403564453125,
0.002288818359375,
0.037811279296875,
0.01073455810546875,
0.0007877349853515625,
-0.002437591552734375,
-0.028472900390625,
-0.01081085205078125,
-0.001033782958984375,
-0.01277923583984375,
-0.0029354095458984375,
0.017913818359375,
0.09375,
-0.06390380859375,
-0.002895355224609375,
0.03594970703125,
0.006038665771484375,
0.03997802734375,
0.00443267822265625,
0.036834716796875,
0.0113983154296875,
0.034637451171875,
0.01499176025390625,
0.037811279296875,
0.0142822265625,
-0.0003478527069091797,
-0.040771484375,
-0.004375457763671875,
0.033935546875,
0.00717926025390625,
0.0290679931640625,
-0.04595947265625,
0.0682373046875,
0.003398895263671875,
0.0360107421875,
-0.0067138671875,
0.0212249755859375,
0.007266998291015625,
0.029815673828125,
-0.02423095703125,
0.0032501220703125,
0.0188140869140625,
-0.0479736328125,
-0.004680633544921875,
0.064208984375,
-0.0178375244140625,
0.0298004150390625,
-0.0209503173828125,
-0.0633544921875,
-0.0018377304077148438,
-0.033355712890625
] |
87e1cbccf0300b625ce05d2c5744e109fdf2a25d | Wordpress Stackexchange
Q: How to disable Woocommerce password recovery and use the default WordPress password reset page? On my website: https://sciencehook.com/ when I request for password reset, it is redirecting to Woocommerce's reset page: https://sciencehook.com/my-account/lost-password, but I want default WordPress password reset page: https://sciencehook.com/wp-login.php?action=lostpassword
How to do this?
I tried disabling "Reset Password" in Woocommerce settings "Emails" page but it didn't work.
A: I found the solution in WP forum. Here it is:
To remove the WooCommerce redirect for the “Lost Password” link, you’ll want to remove the “Lost Password” endpoint setting as found under **WooCommerce > Settings > Advanced > Account endpoints**.
By simply leaving that blank, the user will be forced to use the default WordPress login password reset form
| Q: How to disable Woocommerce password recovery and use the default WordPress password reset page? On my website: https://sciencehook.com/ when I request for password reset, it is redirecting to Woocommerce's reset page: https://sciencehook.com/my-account/lost-password, but I want default WordPress password reset page: https://sciencehook.com/wp-login.php?action=lostpassword
How to do this?
I tried disabling "Reset Password" in Woocommerce settings "Emails" page but it didn't work.
A: I found the solution in WP forum. Here it is:
To remove the WooCommerce redirect for the “Lost Password” link, you’ll want to remove the “Lost Password” endpoint setting as found under **WooCommerce > Settings > Advanced > Account endpoints**.
By simply leaving that blank, the user will be forced to use the default WordPress login password reset form
| wordpress | {
"language": "en",
"length": 120,
"provenance": "stackexchange_00019.jsonl.gz:494525",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/334470"
} | [
0.0487060546875,
-0.0180816650390625,
0.004268646240234375,
0.00724029541015625,
-0.01593017578125,
-0.036865234375,
0.05255126953125,
-0.0294036865234375,
-0.00543212890625,
0.0209503173828125,
-0.0096435546875,
-0.00627899169921875,
0.007320404052734375,
-0.022247314453125,
-0.0005183219909667969,
-0.022857666015625,
0.00226593017578125,
0.0511474609375,
0.036407470703125,
-0.007602691650390625,
-0.002582550048828125,
0.006755828857421875,
-0.0009927749633789062,
0.00269317626953125,
-0.0191650390625,
0.05670166015625,
0.1341552734375,
-0.03076171875,
0.0156402587890625,
-0.011077880859375,
0.0115509033203125,
-0.05987548828125,
0.03253173828125,
0.00034236907958984375,
-0.029144287109375,
-0.05084228515625,
-0.005382537841796875,
-0.003993988037109375,
-0.031524658203125,
0.036468505859375,
0.03314208984375,
-0.017303466796875,
-0.00421142578125,
-0.0318603515625,
-0.01959228515625,
-0.029632568359375,
0.0305023193359375,
-0.00855255126953125,
0.0214385986328125,
0.044219970703125,
-0.0016880035400390625,
0.0302734375,
-0.0009284019470214844,
0.0241851806640625,
-0.02313232421875,
-0.0555419921875,
-0.0229644775390625,
-0.009521484375,
0.01366424560546875,
0.04510498046875,
0.0135345458984375,
0.00359344482421875,
-0.0130157470703125,
-0.028839111328125,
-0.00931549072265625,
-0.0063323974609375,
-0.008026123046875,
0.0364990234375,
-0.035675048828125,
-0.01264190673828125,
0.03045654296875,
-0.033447265625,
0.0160675048828125,
0.0083465576171875,
-0.0265655517578125,
-0.0237274169921875,
0.0043792724609375,
0.0001537799835205078,
0.027374267578125,
0.0035419464111328125,
0.005146026611328125,
-0.02215576171875,
-0.0316162109375,
-0.0180816650390625,
0.01934814453125,
0.01324462890625,
-0.0041046142578125,
-0.01123809814453125,
-0.01519775390625,
-0.007114410400390625,
-0.0239410400390625,
-0.0045013427734375,
-0.0565185546875,
0.026214599609375,
-0.01280975341796875,
0.0044097900390625,
0.0034637451171875,
0.01552581787109375,
0.015625,
0.006450653076171875,
0.0164337158203125,
-0.051055908203125,
0.00873565673828125,
-0.0203704833984375,
-0.00983428955078125,
0.0523681640625,
0.0276947021484375,
0.0035915374755859375,
0.01161956787109375,
0.002758026123046875,
-0.0012121200561523438,
-0.0179443359375,
-0.04547119140625,
-0.06817626953125,
0.01090240478515625,
0.047119140625,
-0.036376953125,
0.014404296875,
0.016876220703125,
-0.01340484619140625,
-0.037994384765625,
-0.01331329345703125,
-0.0093231201171875,
-0.001773834228515625,
-0.006435394287109375,
-0.02935791015625,
-0.00638580322265625,
0.019012451171875,
-0.0004949569702148438,
-0.00983428955078125,
-0.05084228515625,
0.0007190704345703125,
0.07757568359375,
0.06683349609375,
0.04254150390625,
-0.0108795166015625,
0.045623779296875,
0.0577392578125,
-0.0044097900390625,
0.0147552490234375,
-0.0135955810546875,
-0.025970458984375,
-0.006740570068359375,
-0.0153350830078125,
0.0273895263671875,
0.0105743408203125,
-0.00623321533203125,
0.0241546630859375,
0.032379150390625,
-0.017486572265625,
0.01529693603515625,
-0.0116424560546875,
-0.01129913330078125,
0.026031494140625,
0.04718017578125,
0.024871826171875,
0.0438232421875,
0.01047515869140625,
-0.037200927734375,
0.0022754669189453125,
0.030548095703125,
-0.0187225341796875,
-0.012939453125,
0.038604736328125,
-0.03765869140625,
0.04498291015625,
0.00007772445678710938,
-0.018035888671875,
0.019927978515625,
-0.0005440711975097656,
0.0252227783203125,
-0.0260772705078125,
-0.020477294921875,
0.00836944580078125,
0.010345458984375,
0.0231781005859375,
-0.0127105712890625,
0.033355712890625,
0.014923095703125,
0.0234527587890625,
0.020416259765625,
-0.0278472900390625,
0.060272216796875,
-0.00670623779296875,
-0.01116180419921875,
-0.0264129638671875,
0.0264892578125,
0.033843994140625,
-0.01354217529296875,
0.04437255859375,
0.0174560546875,
0.00818634033203125,
-0.031494140625,
0.04632568359375,
-0.005123138427734375,
-0.05029296875,
-0.007110595703125,
-0.0108489990234375,
-0.01082611083984375,
0.0027923583984375,
0.022491455078125,
0.00022280216217041016,
-0.0208587646484375,
-0.0279541015625,
-0.0872802734375,
-0.008636474609375,
-0.0190887451171875,
0.034881591796875,
-0.061065673828125,
0.023681640625,
0.044952392578125,
-0.008209228515625,
-0.04443359375,
0.00585174560546875,
0.0168304443359375,
-0.0223236083984375,
-0.042877197265625,
0.0914306640625,
0.0031528472900390625,
0.0860595703125,
-0.00661468505859375,
-0.054412841796875,
0.0235137939453125,
-0.038970947265625,
0.0247802734375,
-0.0279693603515625,
0.00045680999755859375,
-0.03704833984375,
0.0372314453125,
-0.027587890625,
0.0175933837890625,
0.037139892578125,
-0.01515960693359375,
-0.0200347900390625,
-0.058624267578125,
0.0024051666259765625,
-0.0234527587890625,
-0.005603790283203125,
-0.0102081298828125,
0.05010986328125,
0.036163330078125,
0.03900146484375,
-0.041015625,
-0.053497314453125,
0.046112060546875,
-0.052398681640625,
-0.004817962646484375,
-0.01299285888671875,
0.001434326171875,
0.03955078125,
-0.00580596923828125,
0.0212249755859375,
-0.0024509429931640625,
0.0196075439453125,
-0.0149688720703125,
0.0283966064453125,
-0.058837890625,
-0.0310516357421875,
0.019744873046875,
-0.0084381103515625,
-0.0022125244140625,
-0.06634521484375,
0.019622802734375,
-0.0460205078125,
0.007747650146484375,
-0.0240325927734375,
0.001178741455078125,
-0.00766754150390625,
-0.0226898193359375,
-0.01290130615234375,
0.035614013671875,
-0.03741455078125,
-0.0023365020751953125,
0.01279449462890625,
0.04266357421875,
-0.05242919921875,
-0.01023101806640625,
-0.0178680419921875,
-0.00577545166015625,
-0.004878997802734375,
0.0007619857788085938,
-0.020904541015625,
-0.058624267578125,
0.00010001659393310547,
0.002613067626953125,
-0.0626220703125,
0.0091400146484375,
0.07830810546875,
0.00412750244140625,
-0.0000775456428527832,
0.0369873046875,
-0.01143646240234375,
-0.0316162109375,
0.0149383544921875,
-0.009368896484375,
-0.038116455078125,
-0.06072998046875,
-0.03387451171875,
0.040496826171875,
-0.055877685546875,
0.00516510009765625,
0.056610107421875,
-0.01430511474609375,
0.0293731689453125,
0.01357269287109375,
-0.038360595703125,
0.0165557861328125,
0.0104217529296875,
-0.01482391357421875,
0.01580810546875,
-0.09722900390625,
-0.0074310302734375,
0.0142669677734375,
0.019500732421875,
-0.01364898681640625,
-0.031402587890625,
-0.0127716064453125,
-0.000988006591796875,
-0.0748291015625,
-0.07598876953125,
-0.0477294921875,
-0.051849365234375,
-0.0007610321044921875,
-0.0020122528076171875,
-0.006443023681640625,
0.007129669189453125,
0.0249786376953125,
0.021087646484375,
0.0233917236328125,
-0.028076171875,
-0.029266357421875,
-0.029541015625,
-0.059722900390625,
-0.046478271484375,
0.004642486572265625,
0.0016374588012695312,
-0.0076904296875,
0.055450439453125,
-0.0130462646484375,
-0.0043487548828125,
0.00788116455078125,
0.0014734268188476562,
0.0104827880859375,
-0.02618408203125,
-0.0440673828125,
-0.0175018310546875,
0.014190673828125,
0.0020160675048828125,
-0.01104736328125,
-0.0205841064453125,
0.046295166015625,
-0.01446533203125,
0.02154541015625,
-0.0257110595703125,
-0.0112457275390625,
0.026580810546875,
-0.02496337890625,
-0.047698974609375,
-0.0391845703125,
-0.06622314453125,
-0.0528564453125,
-0.004741668701171875,
-0.055206298828125,
0.04925537109375,
0.0226898193359375,
-0.003337860107421875,
0.01381683349609375,
0.019989013671875,
0.007476806640625,
0.0005440711975097656,
0.01190948486328125,
-0.042327880859375,
0.0325927734375,
-0.001495361328125,
0.0105438232421875,
-0.0196533203125,
0.05322265625,
-0.016815185546875,
0.01593017578125,
0.0335693359375,
0.01319122314453125,
0.024139404296875,
-0.02734375,
0.00463104248046875,
-0.07183837890625,
0.0299072265625,
-0.08538818359375,
-0.02130126953125,
-0.04559326171875,
0.0032596588134765625,
-0.00585174560546875,
0.09954833984375,
-0.02874755859375,
-0.0292510986328125,
0.014251708984375,
0.0163726806640625,
-0.03607177734375,
0.00440216064453125,
-0.034759521484375,
-0.0184173583984375,
-0.071533203125,
-0.01418304443359375,
-0.032012939453125,
-0.0215606689453125,
0.04095458984375,
-0.13623046875,
-0.0015497207641601562,
-0.0811767578125,
0.022003173828125,
-0.0380859375,
0.01369476318359375,
0.004638671875,
-0.0244903564453125,
-0.0019330978393554688,
-0.01235198974609375,
-0.041778564453125,
-0.047698974609375,
-0.0196533203125,
0.06280517578125,
0.02142333984375,
-0.022430419921875,
-0.0260009765625,
-0.03863525390625,
0.016204833984375,
0.0173492431640625,
0.003459930419921875,
0.021697998046875,
-0.0087127685546875,
0.0162353515625,
0.0203704833984375,
0.016387939453125,
-0.00943756103515625,
0.003437042236328125,
0.00942230224609375,
-0.0227508544921875,
0.008697509765625,
-0.0182952880859375,
-0.020599365234375,
0.0362548828125,
-0.03948974609375,
-0.0877685546875,
-0.05035400390625,
-0.0201263427734375,
-0.0164794921875,
-0.0157928466796875,
0.00142669677734375,
-0.021240234375,
-0.06219482421875,
0.06573486328125,
0.01396942138671875,
-0.0195465087890625,
-0.006313323974609375,
0.03668212890625,
-0.002166748046875,
-0.0379638671875,
0.0243988037109375,
0.0131683349609375,
0.0171661376953125,
0.011199951171875,
0.0081329345703125,
-0.030517578125,
0.001018524169921875,
0.028961181640625,
-0.0249786376953125,
0.0009317398071289062,
-0.0216827392578125,
0.0148468017578125,
-0.007965087890625,
-0.01812744140625,
0.00957489013671875,
-0.02978515625,
0.038787841796875,
0.051544189453125,
0.0262908935546875,
0.00310516357421875,
0.033233642578125,
-0.0210723876953125,
-0.010772705078125,
-0.03863525390625,
0.0277862548828125,
-0.0222320556640625,
0.0150146484375,
0.003360748291015625,
-0.0007290840148925781,
0.01336669921875,
0.000008106231689453125,
-0.00850677490234375,
0.00576019287109375,
-0.0254669189453125,
-0.0303497314453125,
-0.06805419921875,
0.00540924072265625,
-0.01218414306640625,
-0.02032470703125,
-0.00972747802734375,
0.00536346435546875,
-0.016998291015625,
0.071533203125,
-0.002262115478515625,
-0.05462646484375,
0.00986480712890625,
-0.036346435546875,
0.0164794921875,
0.0293121337890625,
-0.03021240234375,
0.06182861328125,
-0.00850677490234375,
-0.05010986328125,
-0.0004706382751464844,
-0.06378173828125,
-0.0400390625,
-0.07769775390625,
0.05914306640625,
0.0234832763671875,
-0.0007348060607910156,
0.016143798828125,
0.07916259765625,
0.0271148681640625,
0.043060302734375,
-0.0078277587890625,
-0.00981903076171875,
-0.01448822021484375,
0.0003814697265625,
0.0278778076171875,
0.022125244140625,
-0.0068511962890625,
-0.021148681640625,
0.022918701171875,
-0.06170654296875,
-0.0435791015625,
-0.005161285400390625,
0.0511474609375,
-0.0167999267578125,
-0.0118408203125,
0.03765869140625,
-0.0009150505065917969,
0.0149383544921875,
0.02410888671875,
-0.037445068359375,
-0.04766845703125,
-0.0156097412109375,
-0.0017728805541992188,
0.0218353271484375,
-0.04913330078125,
0.00908660888671875,
-0.0249481201171875,
-0.029083251953125,
-0.025604248046875,
0.020050048828125,
-0.03515625,
-0.013641357421875,
-0.004688262939453125,
0.00974273681640625,
-0.0037364959716796875,
-0.01580810546875,
-0.0056915283203125,
0.0045623779296875,
-0.022216796875,
-0.0006694793701171875,
0.049102783203125,
-0.0306854248046875,
0.0298004150390625,
0.0075225830078125,
-0.0217437744140625,
0.01320648193359375,
0.0228271484375,
0.020416259765625,
0.019622802734375,
-0.04998779296875,
-0.0007004737854003906,
-0.03802490234375,
-0.0301361083984375,
0.0107879638671875,
0.0025310516357421875,
-0.0285491943359375,
-0.011138916015625,
0.0091400146484375,
0.035980224609375,
-0.0155029296875,
-0.01971435546875,
-0.0360107421875,
-0.0162811279296875,
0.015289306640625,
0.0268707275390625,
-0.00699615478515625,
0.0266571044921875,
0.005359649658203125,
0.0416259765625,
0.01354217529296875,
0.020111083984375,
-0.00656890869140625,
-0.0287322998046875,
0.037353515625,
0.0011606216430664062,
-0.055572509765625,
-0.054534912109375,
0.0024318695068359375,
0.020904541015625,
0.05706787109375,
-0.02593994140625,
-0.0289154052734375,
-0.0210418701171875,
0.0185089111328125,
-0.0246429443359375,
0.06341552734375,
-0.0100860595703125,
-0.0322265625,
0.0168609619140625,
-0.0014171600341796875,
0.05914306640625,
-0.01898193359375,
-0.043365478515625,
0.033111572265625,
-0.0225067138671875,
0.03863525390625,
0.031005859375,
-0.034881591796875,
0.048309326171875,
0.0439453125,
-0.0237274169921875,
0.01418304443359375,
0.0084075927734375,
-0.00957489013671875,
-0.00637054443359375,
0.0115203857421875,
-0.04278564453125,
0.0215301513671875,
0.020660400390625,
0.0013227462768554688,
-0.0032196044921875,
0.002590179443359375,
-0.0038299560546875,
-0.007488250732421875,
0.054718017578125,
0.06060791015625,
-0.09771728515625,
-0.005390167236328125,
0.009368896484375,
0.0096893310546875,
0.0164031982421875,
-0.00995635986328125,
0.0054779052734375,
-0.03143310546875,
0.037506103515625,
-0.040069580078125,
-0.02276611328125,
-0.00922393798828125,
-0.0308685302734375,
0.006317138671875,
0.00568389892578125,
0.0316162109375,
0.0142364501953125,
-0.0562744140625,
-0.01445770263671875,
0.051849365234375,
-0.03521728515625,
-0.033477783203125,
-0.022064208984375,
0.003017425537109375,
-0.035125732421875,
-0.08624267578125,
-0.0186614990234375,
-0.031158447265625,
0.0193328857421875,
0.05169677734375,
0.00019109249114990234,
-0.0047760009765625,
0.05474853515625,
-0.032073974609375,
0.04510498046875,
-0.00881195068359375,
-0.016571044921875,
0.004810333251953125,
-0.03314208984375,
0.01151275634765625,
0.0030841827392578125,
-0.0760498046875,
0.0200347900390625,
-0.0234375,
-0.0174407958984375,
-0.00743865966796875,
0.01462554931640625,
0.0304412841796875,
0.0036373138427734375,
-0.02288818359375,
0.029998779296875,
0.05810546875,
0.00147247314453125,
-0.028350830078125,
0.061065673828125,
-0.013916015625,
0.04974365234375,
0.0012636184692382812,
0.04132080078125,
-0.03680419921875,
-0.0193328857421875,
-0.033599853515625,
0.0631103515625,
-0.0423583984375,
-0.00009626150131225586,
0.032562255859375,
0.038360595703125,
0.01326751708984375,
0.03607177734375,
0.0028076171875,
0.031524658203125,
-0.005523681640625,
0.029327392578125,
0.004489898681640625,
-0.004673004150390625,
0.0138702392578125,
0.0250701904296875,
0.026092529296875,
0.004566192626953125,
-0.0182342529296875,
0.005184173583984375,
0.065673828125,
0.00566864013671875,
-0.0025653839111328125,
0.0445556640625,
0.0101470947265625,
-0.007556915283203125,
0.0276031494140625,
-0.06402587890625,
0.0089874267578125,
-0.033935546875,
0.0350341796875,
0.0193939208984375,
-0.004093170166015625,
-0.040679931640625,
0.00734710693359375,
0.08404541015625,
-0.067626953125,
0.013916015625,
0.043701171875,
-0.0212860107421875,
0.00255584716796875,
0.026519775390625,
0.0220184326171875,
-0.0021114349365234375,
0.028289794921875,
-0.029571533203125,
0.045623779296875,
-0.0022716522216796875,
0.024169921875,
0.036224365234375,
0.02191162109375,
0.059326171875,
-0.02886962890625,
0.01369476318359375,
-0.0183258056640625,
-0.0019378662109375,
0.03912353515625,
-0.0030975341796875,
0.01105499267578125,
-0.020233154296875,
0.06695556640625,
-0.0008955001831054688,
0.0148468017578125,
-0.05072021484375,
-0.04388427734375,
0.006549835205078125,
-0.005580902099609375,
0.0372314453125,
-0.0051422119140625,
0.04754638671875,
-0.0225677490234375,
0.0022983551025390625,
-0.00522613525390625,
0.0213165283203125,
-0.00832366943359375,
-0.005908966064453125,
-0.0164947509765625,
0.0312042236328125,
-0.028594970703125,
0.049072265625,
0.0072174072265625,
-0.00469207763671875,
0.0005102157592773438,
0.0196380615234375,
-0.018341064453125,
0.0309295654296875,
-0.020843505859375,
0.01264190673828125,
-0.033355712890625,
0.03314208984375,
0.0030574798583984375,
0.040557861328125,
-0.037017822265625,
0.005939483642578125,
-0.004634857177734375,
0.049652099609375,
-0.009033203125,
0.0017042160034179688,
0.045257568359375,
0.045318603515625,
-0.0279083251953125,
-0.0243682861328125,
0.0031490325927734375,
-0.0198974609375,
0.044158935546875,
0.00797271728515625,
-0.01042938232421875,
-0.032958984375,
-0.035125732421875,
-0.054107666015625,
0.033721923828125,
0.01023101806640625,
0.004734039306640625,
0.0217132568359375,
0.0098724365234375,
-0.008514404296875,
0.01776123046875,
0.023040771484375,
0.034942626953125,
0.04302978515625,
-0.051177978515625,
-0.011199951171875,
-0.007183074951171875,
-0.031402587890625,
-0.00016319751739501953,
0.0399169921875,
-0.01103973388671875,
0.01641845703125,
-0.016143798828125,
-0.03350830078125,
0.0031299591064453125,
0.0206298828125,
-0.0121612548828125,
-0.044219970703125,
-0.01464080810546875,
-0.05059814453125,
-0.07098388671875,
-0.02154541015625,
-0.028656005859375,
-0.0012598037719726562,
0.01459503173828125,
0.08306884765625,
0.0094451904296875,
0.0019073486328125,
-0.0211944580078125,
0.0186767578125,
-0.024688720703125,
-0.0316162109375,
-0.0024280548095703125,
-0.0035457611083984375,
0.006011962890625,
0.0088653564453125,
-0.041259765625,
0.08837890625,
-0.01251983642578125,
0.044952392578125,
0.048858642578125,
-0.0303497314453125,
0.0001760721206665039,
0.0295562744140625,
-0.010101318359375,
-0.032684326171875,
-0.06683349609375,
-0.00679779052734375,
0.05792236328125,
-0.0367431640625,
-0.01165008544921875,
-0.0271148681640625,
0.0171661376953125,
-0.0229339599609375,
-0.01187896728515625,
0.00006216764450073242,
-0.00910186767578125,
-0.0036296844482421875,
0.029693603515625,
-0.034515380859375,
-0.001220703125,
0.003948211669921875,
0.004100799560546875,
-0.0240936279296875,
0.025543212890625,
-0.03363037109375,
0.023345947265625,
-0.054443359375,
-0.0024394989013671875,
0.047088623046875,
0.028717041015625,
0.00115203857421875,
0.0059661865234375,
0.012176513671875,
-0.044464111328125,
0.017059326171875,
-0.00908660888671875,
-0.002773284912109375,
-0.00876617431640625,
-0.033416748046875,
-0.01128387451171875,
-0.012176513671875,
-0.02947998046875,
0.028228759765625,
0.032257080078125,
0.0237884521484375,
-0.005039215087890625,
-0.0445556640625,
0.0418701171875,
-0.033050537109375,
0.0263519287109375,
-0.003192901611328125,
-0.05401611328125,
0.0084228515625,
0.005706787109375,
-0.02496337890625,
-0.034027099609375,
-0.0755615234375,
-0.00392913818359375,
-0.08758544921875,
-0.006366729736328125,
0.039398193359375,
-0.001689910888671875,
0.0003502368927001953,
-0.0323486328125,
-0.0211944580078125,
0.0199737548828125,
-0.08782958984375,
-0.0316162109375,
-0.003910064697265625,
0.01153564453125,
0.013153076171875,
-0.038177490234375,
-0.0165557861328125,
-0.03948974609375,
0.0101318359375,
-0.0072479248046875,
0.0028209686279296875,
0.0239410400390625,
-0.021942138671875,
-0.0347900390625,
0.0196533203125,
0.0018901824951171875,
-0.01409912109375,
-0.0306396484375,
-0.01148223876953125,
-0.0182647705078125,
0.04388427734375,
-0.01110076904296875,
-0.005352020263671875,
-0.0261383056640625,
0.0293426513671875,
0.0021839141845703125,
-0.004726409912109375,
0.01068115234375,
0.0053863525390625,
0.01519012451171875,
0.055419921875,
0.060760498046875,
-0.0252227783203125,
0.024200439453125,
-0.028167724609375,
0.0308685302734375,
0.036834716796875,
-0.03497314453125,
-0.0222625732421875,
0.00629425048828125,
0.0056610107421875,
-0.003612518310546875,
0.030792236328125,
0.01233673095703125,
-0.004852294921875,
-0.0175628662109375,
0.05731201171875,
-0.016632080078125,
0.0004112720489501953,
-0.076171875,
-0.030487060546875,
0.033966064453125,
-0.0202789306640625,
0.0156707763671875,
-0.09515380859375,
-0.01074981689453125,
0.0013942718505859375,
0.0021762847900390625,
0.0217437744140625,
-0.0318603515625,
-0.0257720947265625,
-0.0074462890625,
-0.002910614013671875,
0.0174407958984375,
-0.042449951171875,
0.0240631103515625,
0.0198822021484375,
-0.0301971435546875,
-0.0011119842529296875,
-0.00750732421875,
0.0018291473388671875,
0.00368499755859375,
-0.01136016845703125,
-0.013031005859375,
0.0201568603515625,
-0.0303192138671875,
0.0146026611328125,
-0.01062774658203125,
0.0165252685546875,
-0.03759765625,
0.01226806640625,
-0.024658203125,
0.01375579833984375,
-0.004299163818359375,
0.01242828369140625,
-0.005847930908203125,
0.014556884765625,
0.0208892822265625,
0.0272369384765625,
0.004848480224609375,
-0.016693115234375,
-0.0231170654296875,
0.04998779296875,
0.019073486328125,
-0.0305938720703125,
0.03851318359375,
-0.032501220703125,
0.0135498046875,
0.0177764892578125,
0.06549072265625,
-0.0411376953125,
0.0635986328125,
-0.01169586181640625,
0.04705810546875,
0.0162200927734375
] |
ae27f8d771261da3eafa3c0cd0c05f2adac2eacc | Wordpress Stackexchange
Q: Deactivate Gutenberg tips forever - not Gutenberg I like Gutenberg a lot, however, the tips at the beginning of each page load
drives me mad. I would like to disable the nagging tips forever and ever via code.
Please don't post "Disable Gutenberg" plugin, I've already seen that. I want to do it via a couple of lines of code in my theme.
There must be a hook, but I couldn't find it.
Thanks for a hint.
A: As @nmr found out this seems to be stored browser-wise only. Though I found a workaround to simply hide it via CSS. Quick and dirty.
functions.php:
// Add backend styles for Gutenberg.
add_action('enqueue_block_editor_assets', 'gutenberg_editor_assets');
function gutenberg_editor_assets() {
// Load the theme styles within Gutenberg.
wp_enqueue_style('my-gutenberg-editor-styles', get_theme_file_uri('/assets/gutenberg-editor-styles.css'), FALSE);
}
assets/gutenberg-editor-styles.css:
.components-popover.nux-dot-tip {
display: none !important;
}
Source: Creating theme editor styles for Gutenberg
| Q: Deactivate Gutenberg tips forever - not Gutenberg I like Gutenberg a lot, however, the tips at the beginning of each page load
drives me mad. I would like to disable the nagging tips forever and ever via code.
Please don't post "Disable Gutenberg" plugin, I've already seen that. I want to do it via a couple of lines of code in my theme.
There must be a hook, but I couldn't find it.
Thanks for a hint.
A: As @nmr found out this seems to be stored browser-wise only. Though I found a workaround to simply hide it via CSS. Quick and dirty.
functions.php:
// Add backend styles for Gutenberg.
add_action('enqueue_block_editor_assets', 'gutenberg_editor_assets');
function gutenberg_editor_assets() {
// Load the theme styles within Gutenberg.
wp_enqueue_style('my-gutenberg-editor-styles', get_theme_file_uri('/assets/gutenberg-editor-styles.css'), FALSE);
}
assets/gutenberg-editor-styles.css:
.components-popover.nux-dot-tip {
display: none !important;
}
Source: Creating theme editor styles for Gutenberg
A: Small plugin that should fix it: https://wordpress.org/plugins/disable-welcome-messages-and-tips/
The relevant part of the code is:
<style>
/* disable tips */
.wp-admin .components-popover.nux-dot-tip {
display: none !important;
}
</style>
<script>
/* disable welcome message */
window.onload = function(){
wp.data && wp.data.select( 'core/edit-post' ).isFeatureActive( 'welcomeGuide' ) && wp.data.dispatch( 'core/edit-post' ).toggleFeature( 'welcomeGuide' );
};
</script>
A:
Update #1:
After asking from @leymannx I checked how these settings are stored.
It turned out that settings are not permanent, they are saved in the browser as localStorage.
key: WP_DATA_USER_{id}:
value: {
"core/nux":{
"preferences":{
"areTipsEnabled":false,
"dismissedTips":{}
}
},
//"core/edit-post"
//...
Update #2:
Gutenberg tips can be disabled by using dispatch('core/nux').disableTips() (NUX package) and action hook enqueue_block_editor_assets.
file functions.php:
function se334561_editor_tips() {
wp_enqueue_script(
'se334561-js',
// --- to use in plugin ---
// plugins_url('/disable-tips.js', __FILE__),
get_stylesheet_directory_uri() . '/disable-tips.js',
array('wp-blocks')
);
}
add_action('enqueue_block_editor_assets', 'se334561_editor_tips');
file disable-tips.js:
jQuery(document).ready(function(){
var isVisible = wp.data.select('core/nux').areTipsEnabled()
if (isVisible) {
wp.data.dispatch('core/nux').disableTips();
}
});
| wordpress | {
"language": "en",
"length": 289,
"provenance": "stackexchange_00019.jsonl.gz:494556",
"question_score": "11",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/334559"
} | [
0.0200958251953125,
0.005847930908203125,
0.001262664794921875,
0.034881591796875,
-0.0138702392578125,
-0.032257080078125,
0.032318115234375,
-0.05078125,
0.0166015625,
0.06256103515625,
0.0177154541015625,
-0.01849365234375,
0.055999755859375,
-0.0338134765625,
-0.0078277587890625,
0.016571044921875,
0.0048065185546875,
0.01197052001953125,
0.03466796875,
-0.00038552284240722656,
-0.01195526123046875,
0.0056304931640625,
0.007678985595703125,
-0.00855255126953125,
-0.0025310516357421875,
-0.0185699462890625,
0.04840087890625,
-0.0103607177734375,
0.006549835205078125,
-0.0250701904296875,
0.0230255126953125,
0.005970001220703125,
-0.022796630859375,
0.07958984375,
-0.08282470703125,
-0.0219879150390625,
-0.042633056640625,
0.045501708984375,
0.008544921875,
0.00406646728515625,
0.0196380615234375,
0.0011072158813476562,
-0.0950927734375,
0.00394439697265625,
-0.08062744140625,
-0.01491546630859375,
-0.0240478515625,
0.01229095458984375,
0.055511474609375,
0.04058837890625,
-0.01142120361328125,
0.00405120849609375,
-0.0089263916015625,
0.011260986328125,
-0.01168060302734375,
-0.0401611328125,
-0.01535797119140625,
0.0136566162109375,
0.008544921875,
0.0286865234375,
0.0017690658569335938,
0.0275421142578125,
-0.006153106689453125,
-0.0085601806640625,
0.037628173828125,
-0.0120697021484375,
-0.0040740966796875,
0.0309906005859375,
-0.0169677734375,
0.050750732421875,
0.019683837890625,
-0.036224365234375,
0.01209259033203125,
-0.06512451171875,
-0.022918701171875,
0.0270843505859375,
-0.0221710205078125,
-0.048553466796875,
0.0322265625,
-0.051483154296875,
-0.003452301025390625,
0.00885772705078125,
-0.03826904296875,
-0.024566650390625,
0.00740814208984375,
-0.00629425048828125,
-0.006633758544921875,
0.0032138824462890625,
-0.0287933349609375,
-0.0084228515625,
-0.01117706298828125,
-0.021820068359375,
-0.04107666015625,
0.0115966796875,
0.017364501953125,
-0.0382080078125,
-0.00988006591796875,
-0.01212310791015625,
0.01218414306640625,
-0.0181427001953125,
-0.0213623046875,
-0.0204010009765625,
-0.0221405029296875,
0.005306243896484375,
0.00469970703125,
0.05242919921875,
-0.0240936279296875,
-0.0171661376953125,
0.037841796875,
0.0191497802734375,
0.0251617431640625,
-0.0305023193359375,
-0.003818511962890625,
0.0014753341674804688,
0.0000438690185546875,
-0.002162933349609375,
-0.039642333984375,
0.049713134765625,
-0.00685882568359375,
0.03656005859375,
0.012237548828125,
0.021240234375,
0.0161285400390625,
-0.042694091796875,
-0.00933837890625,
-0.025115966796875,
-0.032196044921875,
-0.02447509765625,
0.00960540771484375,
-0.01457977294921875,
-0.038116455078125,
0.016876220703125,
0.06396484375,
0.0452880859375,
0.0027637481689453125,
-0.0166015625,
0.03277587890625,
0.021881103515625,
0.01146697998046875,
-0.003459930419921875,
-0.0124664306640625,
-0.015167236328125,
0.0164947509765625,
-0.00975799560546875,
-0.0190582275390625,
-0.0093231201171875,
0.036285400390625,
0.0267791748046875,
-0.036376953125,
-0.0272064208984375,
-0.0098876953125,
0.01444244384765625,
0.06463623046875,
-0.0007648468017578125,
-0.0382080078125,
-0.03155517578125,
0.0277557373046875,
-0.027587890625,
-0.0242156982421875,
-0.051055908203125,
-0.033660888671875,
-0.030426025390625,
0.0172576904296875,
-0.044281005859375,
-0.048797607421875,
0.021881103515625,
0.0173187255859375,
-0.007740020751953125,
0.0192413330078125,
0.037506103515625,
0.0141143798828125,
-0.0648193359375,
-0.022064208984375,
-0.0133514404296875,
-0.020263671875,
0.0247955322265625,
0.007656097412109375,
0.0081329345703125,
0.025177001953125,
-0.0171051025390625,
-0.03253173828125,
-0.044403076171875,
0.0491943359375,
-0.031036376953125,
-0.053619384765625,
0.0172119140625,
-0.00423431396484375,
0.0279998779296875,
0.04803466796875,
-0.0007677078247070312,
0.0345458984375,
-0.0167083740234375,
0.0017747879028320312,
-0.005992889404296875,
-0.031402587890625,
-0.0135650634765625,
-0.031158447265625,
0.03277587890625,
-0.016998291015625,
0.004390716552734375,
0.045135498046875,
-0.01849365234375,
0.005218505859375,
-0.0287322998046875,
-0.08660888671875,
-0.01605224609375,
-0.0201873779296875,
0.033721923828125,
-0.0110015869140625,
-0.0024013519287109375,
0.01544952392578125,
-0.023406982421875,
-0.023284912109375,
0.03399658203125,
0.006656646728515625,
0.020355224609375,
-0.0038394927978515625,
0.05450439453125,
0.0169219970703125,
0.00559234619140625,
0.04705810546875,
-0.00885772705078125,
0.05987548828125,
0.00160980224609375,
0.013763427734375,
-0.0269012451171875,
0.00412750244140625,
-0.0218353271484375,
0.01036834716796875,
-0.002132415771484375,
-0.0081024169921875,
0.00757598876953125,
-0.001842498779296875,
0.010955810546875,
0.00650787353515625,
0.0031147003173828125,
0.0277252197265625,
-0.08184814453125,
0.0182952880859375,
0.02459716796875,
0.045989990234375,
-0.0123443603515625,
-0.03521728515625,
-0.047332763671875,
0.03375244140625,
-0.02532958984375,
0.01325225830078125,
-0.02386474609375,
0.0013227462768554688,
-0.010528564453125,
-0.04205322265625,
0.002895355224609375,
0.050445556640625,
0.037841796875,
0.0177154541015625,
0.037689208984375,
-0.007434844970703125,
-0.01432037353515625,
0.00470733642578125,
0.02105712890625,
0.00920867919921875,
0.06939697265625,
0.01293182373046875,
0.0200653076171875,
0.06500244140625,
-0.0175628662109375,
0.057525634765625,
0.041168212890625,
0.0036182403564453125,
-0.00885009765625,
0.0018930435180664062,
-0.004032135009765625,
-0.0036792755126953125,
0.0277099609375,
0.07421875,
-0.05023193359375,
-0.035980224609375,
-0.02313232421875,
0.037353515625,
0.018310546875,
-0.032440185546875,
-0.01302337646484375,
0.017578125,
-0.0068206787109375,
0.032684326171875,
-0.016082763671875,
0.021331787109375,
-0.0440673828125,
-0.027557373046875,
0.011566162109375,
0.0272979736328125,
0.006893157958984375,
-0.0279693603515625,
0.002796173095703125,
-0.0029087066650390625,
-0.00640106201171875,
0.01070404052734375,
-0.06903076171875,
0.041900634765625,
-0.025115966796875,
0.037689208984375,
0.07537841796875,
0.0112762451171875,
-0.0017595291137695312,
0.002147674560546875,
-0.01311492919921875,
0.01131439208984375,
-0.002841949462890625,
-0.013641357421875,
-0.0182342529296875,
-0.031524658203125,
-0.0017223358154296875,
0.0205841064453125,
0.0005164146423339844,
0.037445068359375,
-0.01030731201171875,
0.00688934326171875,
0.02862548828125,
-0.0240020751953125,
-0.003917694091796875,
-0.0011434555053710938,
-0.017120361328125,
-0.0228271484375,
0.0113677978515625,
-0.02093505859375,
-0.0010671615600585938,
0.0135040283203125,
-0.0061492919921875,
-0.016387939453125,
-0.0085906982421875,
-0.029632568359375,
-0.0360107421875,
-0.0217742919921875,
-0.01375579833984375,
-0.00762176513671875,
-0.004932403564453125,
0.0108642578125,
-0.0038967132568359375,
-0.0218658447265625,
-0.0216522216796875,
-0.0113525390625,
-0.0244140625,
-0.00823974609375,
-0.0266265869140625,
0.03131103515625,
-0.0160980224609375,
0.015869140625,
0.013519287109375,
-0.0340576171875,
0.01551055908203125,
-0.0152740478515625,
-0.02484130859375,
0.018951416015625,
0.02374267578125,
0.044830322265625,
0.018798828125,
-0.033538818359375,
0.0242767333984375,
0.0100250244140625,
-0.03662109375,
-0.0308380126953125,
0.0003921985626220703,
-0.041839599609375,
0.044769287109375,
0.0191802978515625,
-0.006900787353515625,
0.01434326171875,
0.0248870849609375,
0.01203155517578125,
0.01129150390625,
0.0255584716796875,
-0.0008406639099121094,
-0.020172119140625,
-0.01611328125,
-0.015777587890625,
-0.0157318115234375,
0.01062774658203125,
-0.0231781005859375,
0.06524658203125,
0.00934600830078125,
0.0220184326171875,
0.005870819091796875,
-0.01099395751953125,
-0.05810546875,
-0.0245819091796875,
0.01239776611328125,
-0.0343017578125,
-0.01361846923828125,
0.01226043701171875,
0.00260162353515625,
0.0216064453125,
0.0364990234375,
-0.032867431640625,
-0.01259613037109375,
0.0250244140625,
0.002689361572265625,
-0.021148681640625,
0.00942230224609375,
-0.051605224609375,
0.001861572265625,
-0.11395263671875,
0.02069091796875,
0.007038116455078125,
-0.0513916015625,
-0.0218963623046875,
-0.03216552734375,
-0.08642578125,
-0.039764404296875,
0.0038051605224609375,
-0.0188140869140625,
-0.006336212158203125,
0.04998779296875,
-0.043792724609375,
0.0261993408203125,
0.0013036727905273438,
-0.044403076171875,
-0.09808349609375,
-0.022857666015625,
0.0076751708984375,
0.049041748046875,
-0.028106689453125,
0.0263519287109375,
-0.021240234375,
0.067626953125,
0.006961822509765625,
-0.00930023193359375,
0.03338623046875,
0.001003265380859375,
0.00616455078125,
0.01459503173828125,
0.02301025390625,
-0.030029296875,
-0.005809783935546875,
-0.002475738525390625,
-0.048675537109375,
0.03436279296875,
-0.01593017578125,
0.005207061767578125,
0.03143310546875,
-0.0270538330078125,
-0.04852294921875,
-0.04150390625,
-0.061767578125,
0.01146697998046875,
-0.005603790283203125,
-0.0163116455078125,
-0.06585693359375,
-0.063232421875,
0.02813720703125,
-0.013916015625,
-0.007320404052734375,
0.0105743408203125,
0.04443359375,
0.0174560546875,
-0.01126861572265625,
0.01097869873046875,
0.0098114013671875,
0.02520751953125,
-0.0013265609741210938,
0.03900146484375,
-0.0112152099609375,
-0.0213165283203125,
0.0858154296875,
-0.0168914794921875,
-0.0053558349609375,
-0.05450439453125,
0.0716552734375,
-0.039215087890625,
-0.01523590087890625,
0.01800537109375,
-0.056732177734375,
0.06689453125,
-0.00021827220916748047,
-0.01184844970703125,
-0.010345458984375,
-0.0233917236328125,
0.0224609375,
0.0121612548828125,
0.0090484619140625,
-0.03192138671875,
-0.0162200927734375,
0.000988006591796875,
0.0295257568359375,
0.043304443359375,
0.031341552734375,
0.007526397705078125,
0.0204010009765625,
0.031524658203125,
-0.0211181640625,
-0.005035400390625,
0.0224151611328125,
-0.06640625,
0.023406982421875,
-0.022369384765625,
-0.05682373046875,
0.0025539398193359375,
-0.007205963134765625,
0.06634521484375,
-0.01806640625,
-0.035064697265625,
-0.044952392578125,
-0.03509521484375,
0.00669097900390625,
0.0181427001953125,
0.0006756782531738281,
0.05059814453125,
0.015960693359375,
-0.052825927734375,
-0.00914764404296875,
0.0025482177734375,
-0.034027099609375,
-0.06292724609375,
-0.017181396484375,
-0.0051727294921875,
-0.02130126953125,
0.01947021484375,
0.017242431640625,
-0.005847930908203125,
0.023040771484375,
-0.0041351318359375,
-0.037200927734375,
-0.07965087890625,
0.036102294921875,
0.0298614501953125,
0.00036215782165527344,
-0.0089111328125,
0.003551483154296875,
0.032501220703125,
-0.026947021484375,
-0.0030517578125,
0.035736083984375,
0.052825927734375,
-0.037322998046875,
-0.0411376953125,
0.005527496337890625,
-0.038818359375,
-0.00022423267364501953,
0.00930023193359375,
0.024078369140625,
0.00830078125,
-0.007293701171875,
-0.0030956268310546875,
-0.00992584228515625,
0.0286712646484375,
-0.004180908203125,
-0.031036376953125,
-0.02191162109375,
-0.038299560546875,
0.04437255859375,
-0.054840087890625,
-0.018035888671875,
-0.0037364959716796875,
-0.0152130126953125,
-0.007781982421875,
-0.00244140625,
-0.08856201171875,
-0.04736328125,
0.01580810546875,
0.003124237060546875,
-0.0038814544677734375,
-0.0462646484375,
0.0054168701171875,
-0.0213470458984375,
0.0238189697265625,
-0.029510498046875,
0.02484130859375,
0.0260467529296875,
0.0237274169921875,
-0.03973388671875,
-0.021270751953125,
-0.060546875,
0.004817962646484375,
-0.0264739990234375,
-0.06610107421875,
-0.00847625732421875,
-0.0135955810546875,
-0.00013065338134765625,
0.009735107421875,
-0.0258636474609375,
-0.037322998046875,
0.00600433349609375,
0.036376953125,
0.0242919921875,
0.08050537109375,
-0.02996826171875,
0.021331787109375,
0.02496337890625,
0.0204010009765625,
0.011444091796875,
-0.006130218505859375,
0.0233001708984375,
-0.01123046875,
0.0167236328125,
-0.028228759765625,
-0.02325439453125,
-0.044403076171875,
-0.00008869171142578125,
0.02587890625,
0.058807373046875,
-0.00696563720703125,
0.039520263671875,
0.0035190582275390625,
0.00939178466796875,
-0.02783203125,
-0.023681640625,
-0.032318115234375,
0.02581787109375,
0.0024585723876953125,
-0.0001424551010131836,
0.048248291015625,
-0.00321197509765625,
-0.046630859375,
0.04351806640625,
0.0084381103515625,
0.034637451171875,
-0.0003190040588378906,
0.00763702392578125,
0.011871337890625,
0.0257415771484375,
0.0029277801513671875,
0.008880615234375,
0.01059722900390625,
0.0201873779296875,
-0.0179901123046875,
0.0269927978515625,
-0.0124969482421875,
-0.00992584228515625,
0.03680419921875,
0.01227569580078125,
-0.001232147216796875,
0.020111083984375,
-0.0101165771484375,
0.0005922317504882812,
0.0015811920166015625,
0.0253143310546875,
-0.037872314453125,
-0.0056915283203125,
-0.004322052001953125,
-0.0010461807250976562,
0.032623291015625,
-0.04443359375,
0.0198822021484375,
-0.08355712890625,
0.040374755859375,
0.026641845703125,
-0.0285491943359375,
-0.0221405029296875,
-0.053253173828125,
-0.0024509429931640625,
-0.0341796875,
0.03631591796875,
-0.01318359375,
-0.070556640625,
-0.014923095703125,
0.05474853515625,
-0.06011962890625,
-0.01450347900390625,
0.004291534423828125,
-0.00775146484375,
-0.040802001953125,
-0.0633544921875,
-0.024017333984375,
0.01953125,
-0.0626220703125,
0.0816650390625,
0.0005755424499511719,
0.0050201416015625,
0.04010009765625,
-0.0137481689453125,
0.045928955078125,
-0.01290130615234375,
-0.0165252685546875,
-0.0213470458984375,
-0.0262298583984375,
-0.0023784637451171875,
-0.0030803680419921875,
0.02490234375,
0.01873779296875,
0.00995635986328125,
-0.038543701171875,
0.00209808349609375,
0.078369140625,
0.09332275390625,
0.01413726806640625,
-0.06671142578125,
0.054718017578125,
-0.00939178466796875,
-0.0352783203125,
-0.05108642578125,
0.07159423828125,
-0.0450439453125,
0.005352020263671875,
-0.0027141571044921875,
0.01183319091796875,
-0.0634765625,
-0.073974609375,
-0.06451416015625,
0.1051025390625,
0.00714874267578125,
0.01560211181640625,
-0.0267333984375,
0.058807373046875,
-0.02557373046875,
0.024017333984375,
-0.01568603515625,
0.01027679443359375,
-0.005161285400390625,
0.00803375244140625,
-0.024688720703125,
-0.005962371826171875,
-0.0294189453125,
0.04010009765625,
-0.0106964111328125,
-0.0227813720703125,
0.023223876953125,
-0.006046295166015625,
0.025421142578125,
-0.004825592041015625,
-0.033355712890625,
0.005130767822265625,
-0.0055084228515625,
-0.018768310546875,
-0.0005674362182617188,
-0.004497528076171875,
0.034912109375,
-0.05987548828125,
-0.0287933349609375,
0.00618743896484375,
-0.003711700439453125,
-0.0018901824951171875,
0.02166748046875,
0.0180816650390625,
0.024078369140625,
-0.0146636962890625,
-0.01371002197265625,
-0.025238037109375,
-0.0234375,
0.0270843505859375,
0.0277862548828125,
-0.052093505859375,
-0.035369873046875,
-0.030853271484375,
0.041473388671875,
0.0289154052734375,
-0.01708984375,
-0.0094757080078125,
0.00955963134765625,
-0.0382080078125,
0.01361846923828125,
0.0053558349609375,
0.037567138671875,
-0.026641845703125,
0.00011134147644042969,
-0.0106964111328125,
-0.003589630126953125,
-0.0345458984375,
0.0033168792724609375,
-0.0091552734375,
-0.01493072509765625,
-0.00028896331787109375,
-0.0163421630859375,
0.004405975341796875,
0.0011501312255859375,
0.0309600830078125,
-0.040252685546875,
0.004131317138671875,
-0.0270843505859375,
-0.01525115966796875,
0.022308349609375,
-0.0009207725524902344,
-0.0222015380859375,
0.0004372596740722656,
0.022735595703125,
0.059051513671875,
-0.017425537109375,
0.00811767578125,
-0.0146484375,
-0.006526947021484375,
-0.00818634033203125,
0.004146575927734375,
0.005916595458984375,
0.0263671875,
0.033599853515625,
0.01145172119140625,
-0.0694580078125,
0.01053619384765625,
0.02935791015625,
0.0755615234375,
-0.04254150390625,
0.04901123046875,
0.035430908203125,
0.029144287109375,
0.01430511474609375,
0.095458984375,
0.0699462890625,
0.01371002197265625,
-0.0135345458984375,
0.0125579833984375,
0.026031494140625,
-0.048828125,
-0.007328033447265625,
-0.0281982421875,
0.0263519287109375,
0.01229095458984375,
0.01276397705078125,
0.002918243408203125,
0.05322265625,
0.00565338134765625,
-0.0049285888671875,
0.0171661376953125,
0.01629638671875,
-0.0227508544921875,
-0.016357421875,
0.0133056640625,
-0.003082275390625,
0.0265655517578125,
0.019500732421875,
-0.02392578125,
0.00861358642578125,
0.056610107421875,
-0.040679931640625,
0.01416778564453125,
0.0408935546875,
0.01274871826171875,
0.0016841888427734375,
0.017120361328125,
0.01267242431640625,
-0.04571533203125,
0.03814697265625,
0.047637939453125,
-0.0014238357543945312,
0.035736083984375,
-0.06707763671875,
-0.025421142578125,
-0.003536224365234375,
0.00498199462890625,
-0.0306854248046875,
0.05499267578125,
0.02105712890625,
-0.004116058349609375,
-0.004573822021484375,
-0.0196990966796875,
0.0184173583984375,
-0.0108795166015625,
-0.0162811279296875,
0.026947021484375,
0.032501220703125,
-0.01477813720703125,
-0.072021484375,
0.036529541015625,
0.00899505615234375,
0.0164947509765625,
0.04632568359375,
0.0023193359375,
-0.00222015380859375,
-0.0094451904296875,
0.01515960693359375,
-0.0303192138671875,
-0.042816162109375,
-0.036041259765625,
0.018524169921875,
-0.0050811767578125,
-0.002628326416015625,
-0.0292510986328125,
0.040008544921875,
0.049713134765625,
0.03436279296875,
0.00992584228515625,
0.010101318359375,
0.024566650390625,
0.03466796875,
-0.0218048095703125,
-0.002330780029296875,
-0.0242462158203125,
-0.020660400390625,
0.0013761520385742188,
0.00563812255859375,
-0.0250244140625,
0.0170440673828125,
0.005641937255859375,
0.038238525390625,
0.051666259765625,
0.045196533203125,
-0.0198974609375,
0.00330352783203125,
0.08697509765625,
-0.03302001953125,
-0.0253448486328125,
0.00833892822265625,
0.00017178058624267578,
-0.032928466796875,
-0.01361083984375,
0.030792236328125,
-0.057891845703125,
-0.00414276123046875,
-0.0682373046875,
0.034088134765625,
0.0401611328125,
0.00576019287109375,
-0.09771728515625,
0.04608154296875,
-0.01947021484375,
0.10394287109375,
-0.016876220703125,
0.0117645263671875,
-0.0225372314453125,
-0.0166778564453125,
-0.02081298828125,
-0.04296875,
-0.044158935546875,
0.06207275390625,
-0.038665771484375,
-0.00812530517578125,
0.01274871826171875,
0.004489898681640625,
0.0257720947265625,
-0.0089569091796875,
0.005401611328125,
0.026336669921875,
-0.05340576171875,
-0.01351165771484375,
0.047119140625,
-0.0008015632629394531,
-0.02166748046875,
-0.091064453125,
-0.0111846923828125,
-0.05511474609375,
0.044830322265625,
-0.01358795166015625,
-0.016448974609375,
-0.01198577880859375,
-0.061737060546875,
-0.054168701171875,
-0.018310546875,
0.0206298828125,
-0.039947509765625,
0.030242919921875,
-0.0276947021484375,
-0.020172119140625,
0.03631591796875,
0.0189056396484375,
0.017059326171875,
-0.0196075439453125,
0.00156402587890625,
-0.0148468017578125,
0.06890869140625,
-0.0025730133056640625,
-0.0183258056640625,
0.0131072998046875,
0.0016412734985351562,
-0.0020236968994140625,
-0.0028324127197265625,
-0.01384735107421875,
-0.022064208984375,
0.038330078125,
0.0200042724609375,
-0.03314208984375,
0.01898193359375,
0.0197296142578125,
0.0129547119140625,
-0.0330810546875,
-0.020721435546875,
-0.029815673828125,
-0.004009246826171875,
0.1087646484375,
0.05816650390625,
0.019805908203125,
-0.03546142578125,
0.0159454345703125,
-0.035003662109375,
-0.023193359375,
0.0018520355224609375,
-0.004634857177734375,
-0.0258941650390625,
0.0085906982421875,
0.00925445556640625,
-0.00923919677734375,
-0.006259918212890625,
-0.0089874267578125,
-0.028289794921875,
-0.0168609619140625,
-0.0423583984375,
-0.0282745361328125,
-0.0232391357421875,
0.00392913818359375,
0.02056884765625,
-0.02191162109375,
0.004871368408203125,
-0.002536773681640625,
0.007694244384765625,
0.0192413330078125,
0.03955078125,
-0.0289764404296875,
-0.026702880859375,
-0.0304107666015625,
0.05029296875,
-0.043609619140625,
0.0255584716796875,
-0.05682373046875,
0.00374603271484375,
0.00396728515625,
-0.041046142578125,
-0.0125579833984375,
-0.0633544921875,
0.0167999267578125,
-0.0185394287109375,
-0.036834716796875,
0.034637451171875,
0.0024662017822265625,
0.0238037109375,
-0.014678955078125,
0.0290374755859375,
0.004894256591796875,
-0.01788330078125,
-0.0075836181640625,
0.00025081634521484375,
0.025115966796875,
0.02880859375,
0.07659912109375,
-0.00518798828125,
0.01519775390625,
-0.0205535888671875,
0.0262298583984375,
0.005863189697265625
] |
8846bdc91cbcf4de831113f64be269412aad8ccc | Wordpress Stackexchange
Q: Create custom tab in WordPress 5 media upload Can someone help me create custom tab in WordPress media library. With WordPress version 4 i used to media_upload_tabs function to build that nice work. But now, in WordPress version 5 the function is not working.
A: The only way I could get this to work in WP 5 was to install the Classic Editor.
Then I could use media_view_settings to add the tab.
add_filter('media_view_settings', 'addMediaTab');
function addMediaTab($settings) {
$settings['tabs'] = array('mymediatab' => 'My Media Tab');
return $settings;
}
BUT it appears the new UI doesn't include those sections in Gutenberg, you will end up with something like this if you use the Classic Editor.
You can also do this with JS.
var Library = wp.media.controller.Library;
var oldMediaFrame = wp.media.view.MediaFrame.Post;
wp.media.view.MediaFrame.Post = oldMediaFrame.extend({
initialize: function () {
oldMediaFrame.prototype.initialize.apply(this, arguments);
var options = this.options;
this.states.add([
new Library({
id: 'inserts',
title: 'My New Tab',
priority: 20,
toolbar: 'main-insert',
filterable: 'all',
library: wp.media.query(options.library),
multiple: false,
editable: false,
library: wp.media.query(_.defaults({
newtab: 'newtab',
}, options.library)),
displaySettings: true,
displayUserSettings: true
}),
]);
},
});
More Info
Ticket with more info about Media_upload_tabs & WP5
JS Demo Example
| Q: Create custom tab in WordPress 5 media upload Can someone help me create custom tab in WordPress media library. With WordPress version 4 i used to media_upload_tabs function to build that nice work. But now, in WordPress version 5 the function is not working.
A: The only way I could get this to work in WP 5 was to install the Classic Editor.
Then I could use media_view_settings to add the tab.
add_filter('media_view_settings', 'addMediaTab');
function addMediaTab($settings) {
$settings['tabs'] = array('mymediatab' => 'My Media Tab');
return $settings;
}
BUT it appears the new UI doesn't include those sections in Gutenberg, you will end up with something like this if you use the Classic Editor.
You can also do this with JS.
var Library = wp.media.controller.Library;
var oldMediaFrame = wp.media.view.MediaFrame.Post;
wp.media.view.MediaFrame.Post = oldMediaFrame.extend({
initialize: function () {
oldMediaFrame.prototype.initialize.apply(this, arguments);
var options = this.options;
this.states.add([
new Library({
id: 'inserts',
title: 'My New Tab',
priority: 20,
toolbar: 'main-insert',
filterable: 'all',
library: wp.media.query(options.library),
multiple: false,
editable: false,
library: wp.media.query(_.defaults({
newtab: 'newtab',
}, options.library)),
displaySettings: true,
displayUserSettings: true
}),
]);
},
});
More Info
Ticket with more info about Media_upload_tabs & WP5
JS Demo Example
| wordpress | {
"language": "en",
"length": 190,
"provenance": "stackexchange_00019.jsonl.gz:494614",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/334787"
} | [
0.037261962890625,
-0.04229736328125,
0.0531005859375,
0.00395965576171875,
-0.0308990478515625,
-0.01242828369140625,
0.04327392578125,
-0.0260772705078125,
0.002407073974609375,
0.0147705078125,
0.0164642333984375,
-0.007030487060546875,
-0.00803375244140625,
-0.0513916015625,
0.01090240478515625,
-0.019073486328125,
0.050445556640625,
-0.042999267578125,
0.0293731689453125,
-0.01200103759765625,
0.01183319091796875,
0.0001169443130493164,
0.048553466796875,
0.0948486328125,
0.00079345703125,
0.01383209228515625,
0.0032863616943359375,
-0.0232391357421875,
-0.01039886474609375,
-0.024627685546875,
0.008270263671875,
0.0285491943359375,
0.0072784423828125,
0.028106689453125,
-0.018829345703125,
0.01739501953125,
0.04144287109375,
0.0025310516357421875,
0.04534912109375,
-0.004924774169921875,
0.03076171875,
-0.007747650146484375,
-0.01366424560546875,
-0.00679779052734375,
-0.0012311935424804688,
-0.0310211181640625,
0.0144500732421875,
-0.042449951171875,
0.036468505859375,
0.0231781005859375,
-0.0170440673828125,
-0.0096435546875,
-0.0220489501953125,
-0.034942626953125,
-0.004924774169921875,
-0.0250701904296875,
0.0216522216796875,
-0.01214599609375,
0.001277923583984375,
0.020416259765625,
-0.00637054443359375,
0.03594970703125,
0.000025391578674316406,
-0.0021820068359375,
0.0029277801513671875,
0.0076141357421875,
0.062042236328125,
0.006866455078125,
-0.00537109375,
-0.003963470458984375,
0.0026912689208984375,
0.002147674560546875,
0.0090789794921875,
-0.0179443359375,
-0.00811767578125,
-0.0009918212890625,
0.00872802734375,
-0.0247039794921875,
0.005702972412109375,
0.00036144256591796875,
0.0237274169921875,
-0.00878143310546875,
-0.03472900390625,
-0.038818359375,
0.06427001953125,
0.01654052734375,
0.00450897216796875,
-0.034210205078125,
-0.009613037109375,
0.0156402587890625,
-0.0167083740234375,
-0.05743408203125,
-0.012420654296875,
0.046234130859375,
0.018035888671875,
-0.01279449462890625,
0.0134429931640625,
0.016082763671875,
-0.0091705322265625,
0.0178680419921875,
0.061859130859375,
-0.070556640625,
0.05633544921875,
-0.030792236328125,
0.036346435546875,
0.0200958251953125,
-0.0477294921875,
-0.072021484375,
0.0281524658203125,
0.026611328125,
-0.0223541259765625,
0.0136260986328125,
0.04498291015625,
-0.01204681396484375,
-0.0009098052978515625,
-0.0268707275390625,
0.0071563720703125,
0.015411376953125,
0.00962066650390625,
-0.04510498046875,
0.0018968582153320312,
0.025787353515625,
-0.0455322265625,
0.010589599609375,
-0.0025787353515625,
-0.00650787353515625,
0.0109100341796875,
0.00618743896484375,
-0.048004150390625,
0.0059967041015625,
-0.01084136962890625,
0.034942626953125,
0.04205322265625,
0.043060302734375,
-0.007282257080078125,
-0.01169586181640625,
0.052276611328125,
-0.01381683349609375,
0.0061492919921875,
0.02227783203125,
0.0008044242858886719,
-0.0033016204833984375,
0.0027256011962890625,
-0.01016998291015625,
0.016876220703125,
0.0285186767578125,
0.029510498046875,
0.007274627685546875,
-0.006595611572265625,
-0.049041748046875,
0.0171966552734375,
-0.0008287429809570312,
0.023651123046875,
0.0161590576171875,
0.01174163818359375,
-0.020477294921875,
0.024505615234375,
-0.0242767333984375,
0.002681732177734375,
-0.0251312255859375,
0.058685302734375,
-0.01044464111328125,
0.0029048919677734375,
-0.0228729248046875,
-0.042694091796875,
0.002292633056640625,
-0.0767822265625,
-0.023040771484375,
0.03082275390625,
0.08563232421875,
-0.0055389404296875,
-0.041717529296875,
0.024932861328125,
0.030792236328125,
-0.0190277099609375,
0.01364898681640625,
0.035430908203125,
0.0156707763671875,
0.0149688720703125,
0.034210205078125,
0.01009368896484375,
-0.017547607421875,
0.07427978515625,
-0.037261962890625,
-0.052459716796875,
0.0244293212890625,
-0.01078033447265625,
0.066650390625,
0.05364990234375,
0.0126495361328125,
-0.026031494140625,
-0.04559326171875,
-0.01552581787109375,
-0.0163726806640625,
-0.01385498046875,
-0.014556884765625,
-0.00905609130859375,
0.006145477294921875,
-0.019195556640625,
0.049163818359375,
0.0257720947265625,
0.01537322998046875,
-0.0063323974609375,
0.00603485107421875,
-0.039886474609375,
0.0132598876953125,
-0.01256561279296875,
0.0299072265625,
0.005802154541015625,
0.001678466796875,
0.0159759521484375,
-0.0202789306640625,
-0.010528564453125,
0.0017671585083007812,
-0.035400390625,
-0.02532958984375,
-0.0009236335754394531,
0.06439208984375,
0.00325775146484375,
0.0338134765625,
0.0031948089599609375,
-0.0184478759765625,
0.026336669921875,
0.01477813720703125,
0.025054931640625,
-0.046417236328125,
0.002414703369140625,
-0.0408935546875,
0.01497650146484375,
-0.00499725341796875,
-0.0265960693359375,
0.036834716796875,
0.040985107421875,
-0.03155517578125,
-0.046630859375,
0.004116058349609375,
-0.0149383544921875,
-0.0809326171875,
-0.028900146484375,
0.0689697265625,
0.03912353515625,
0.0269775390625,
0.0160675048828125,
0.00907135009765625,
0.0164031982421875,
-0.00018143653869628906,
0.04266357421875,
-0.0260772705078125,
0.006610870361328125,
0.0179595947265625,
-0.0204925537109375,
-0.0025482177734375,
0.0206756591796875,
-0.033660888671875,
0.037139892578125,
0.0163421630859375,
-0.030242919921875,
-0.007171630859375,
0.007343292236328125,
-0.0036678314208984375,
-0.00600433349609375,
-0.010833740234375,
0.006561279296875,
-0.0204010009765625,
0.04205322265625,
0.05322265625,
0.04840087890625,
0.05426025390625,
-0.0263671875,
0.042816162109375,
-0.009765625,
-0.045867919921875,
0.0009188652038574219,
-0.0001894235610961914,
0.049224853515625,
-0.0008029937744140625,
-0.060150146484375,
0.00951385498046875,
0.041778564453125,
0.0012035369873046875,
-0.00917816162109375,
0.0311126708984375,
-0.030059814453125,
-0.01123046875,
0.01319122314453125,
-0.033355712890625,
-0.0095672607421875,
-0.0167083740234375,
-0.0166015625,
-0.08038330078125,
-0.0210723876953125,
0.0205535888671875,
-0.05438232421875,
0.04278564453125,
0.035064697265625,
-0.040374755859375,
0.027008056640625,
-0.0467529296875,
0.0374755859375,
-0.0246429443359375,
0.08746337890625,
0.07635498046875,
-0.026885986328125,
0.0296173095703125,
0.01035308837890625,
-0.0241546630859375,
-0.022369384765625,
0.044219970703125,
0.006633758544921875,
-0.033203125,
-0.00366973876953125,
0.014434814453125,
0.0168609619140625,
-0.0204010009765625,
0.004425048828125,
-0.015716552734375,
-0.0272979736328125,
-0.006916046142578125,
-0.03375244140625,
0.007110595703125,
0.01195526123046875,
-0.06304931640625,
0.0190887451171875,
-0.0038318634033203125,
-0.036163330078125,
-0.027740478515625,
0.03704833984375,
0.006473541259765625,
-0.0275726318359375,
0.031005859375,
0.0083160400390625,
-0.00371551513671875,
-0.03619384765625,
-0.0267181396484375,
0.0117340087890625,
0.0253448486328125,
0.00547027587890625,
0.0408935546875,
0.00263214111328125,
-0.01552581787109375,
0.040679931640625,
-0.048126220703125,
-0.0099945068359375,
0.01084136962890625,
0.0452880859375,
-0.05413818359375,
0.013671875,
-0.00684356689453125,
0.06329345703125,
0.06329345703125,
-0.03857421875,
0.0127105712890625,
-0.001766204833984375,
-0.030120849609375,
-0.01605224609375,
0.041290283203125,
0.0044097900390625,
-0.043060302734375,
-0.01342010498046875,
-0.06610107421875,
0.03985595703125,
0.00507354736328125,
0.0217742919921875,
0.02069091796875,
-0.060516357421875,
-0.01451873779296875,
0.01206207275390625,
0.0251312255859375,
0.019683837890625,
0.019866943359375,
0.0228424072265625,
-0.04217529296875,
0.0169219970703125,
0.01235198974609375,
0.00742340087890625,
-0.01629638671875,
0.056640625,
0.0005564689636230469,
-0.0350341796875,
0.023956298828125,
-0.002124786376953125,
0.0023193359375,
-0.0447998046875,
-0.03546142578125,
-0.047088623046875,
0.0208740234375,
-0.037200927734375,
-0.017181396484375,
-0.0085601806640625,
-0.0026264190673828125,
0.0196990966796875,
0.050628662109375,
-0.049224853515625,
-0.005725860595703125,
-0.021026611328125,
0.01169586181640625,
0.0208587646484375,
-0.0648193359375,
-0.0191192626953125,
-0.0209503173828125,
-0.01074981689453125,
0.01314544677734375,
0.0088043212890625,
-0.023406982421875,
-0.025848388671875,
0.00646209716796875,
-0.0182037353515625,
-0.00417327880859375,
0.049285888671875,
-0.0111846923828125,
0.0128173828125,
0.01474761962890625,
0.0004699230194091797,
-0.0166778564453125,
-0.04412841796875,
0.00876617431640625,
-0.1138916015625,
-0.01165771484375,
-0.033416748046875,
0.07708740234375,
0.007320404052734375,
0.00028514862060546875,
-0.0293121337890625,
0.0640869140625,
0.045684814453125,
0.0222625732421875,
0.034149169921875,
-0.01861572265625,
0.060699462890625,
-0.004520416259765625,
0.02642822265625,
-0.0220794677734375,
-0.01258087158203125,
-0.061614990234375,
-0.0209503173828125,
0.04638671875,
-0.010467529296875,
0.047454833984375,
-0.03448486328125,
0.01271820068359375,
-0.06292724609375,
-0.03643798828125,
-0.04083251953125,
-0.0223236083984375,
-0.010894775390625,
-0.0218505859375,
-0.00794219970703125,
-0.0599365234375,
0.034210205078125,
0.0219268798828125,
-0.00533294677734375,
0.005924224853515625,
0.067626953125,
0.0162506103515625,
-0.023956298828125,
-0.08697509765625,
-0.0085906982421875,
0.0222320556640625,
0.031005859375,
0.0141754150390625,
-0.01294708251953125,
-0.027374267578125,
0.025665283203125,
-0.010406494140625,
0.0237274169921875,
-0.002490997314453125,
-0.00400543212890625,
0.00647735595703125,
-0.00588226318359375,
0.00022792816162109375,
0.022216796875,
-0.00922393798828125,
-0.042724609375,
-0.0214385986328125,
0.01190185546875,
-0.022125244140625,
0.01462554931640625,
0.034759521484375,
0.00893402099609375,
-0.0158843994140625,
-0.0506591796875,
0.0070953369140625,
-0.0219268798828125,
0.04217529296875,
-0.005939483642578125,
0.002471923828125,
0.03033447265625,
0.0276031494140625,
0.0246429443359375,
0.00923919677734375,
0.0428466796875,
-0.05426025390625,
0.0303192138671875,
0.043426513671875,
-0.0166778564453125,
-0.017364501953125,
0.01302337646484375,
-0.0181732177734375,
-0.018310546875,
-0.041534423828125,
-0.021240234375,
-0.004261016845703125,
0.020660400390625,
0.0166168212890625,
-0.005828857421875,
0.025054931640625,
0.0487060546875,
-0.005313873291015625,
0.002933502197265625,
0.0030651092529296875,
0.0113677978515625,
-0.036895751953125,
0.02685546875,
0.001369476318359375,
0.00200653076171875,
-0.01200103759765625,
0.06414794921875,
-0.0214996337890625,
0.0235595703125,
0.01015472412109375,
0.0222625732421875,
-0.00959014892578125,
0.023895263671875,
0.0249176025390625,
-0.00881195068359375,
0.0101470947265625,
-0.0161590576171875,
-0.00836944580078125,
-0.0285491943359375,
0.01398468017578125,
0.0156097412109375,
0.027801513671875,
-0.01561737060546875,
-0.04010009765625,
0.0135040283203125,
-0.062103271484375,
-0.0041351318359375,
-0.00722503662109375,
-0.0975341796875,
-0.03057861328125,
-0.05279541015625,
-0.00908660888671875,
0.06536865234375,
-0.0293426513671875,
0.00750732421875,
-0.01264190673828125,
0.00042891502380371094,
0.0197296142578125,
-0.0041656494140625,
0.00027871131896972656,
0.006793975830078125,
-0.0012674331665039062,
0.049835205078125,
0.007587432861328125,
-0.0212860107421875,
-0.0338134765625,
-0.04339599609375,
-0.012847900390625,
-0.00543975830078125,
0.05877685546875,
-0.04473876953125,
0.03009033203125,
-0.0225372314453125,
0.00324249267578125,
-0.06396484375,
0.03125,
0.02093505859375,
0.032989501953125,
0.0281524658203125,
-0.02130126953125,
-0.042236328125,
-0.0380859375,
-0.027862548828125,
-0.0281219482421875,
-0.006595611572265625,
-0.007537841796875,
-0.0046234130859375,
0.0014390945434570312,
0.004344940185546875,
-0.02978515625,
-0.016021728515625,
0.0323486328125,
0.01611328125,
-0.0032329559326171875,
0.01403045654296875,
0.0572509765625,
0.005756378173828125,
0.043975830078125,
0.033843994140625,
0.045166015625,
-0.0307464599609375,
-0.0360107421875,
-0.010772705078125,
-0.0491943359375,
-0.0193939208984375,
-0.0014524459838867188,
-0.0283660888671875,
0.055450439453125,
0.067138671875,
0.0089874267578125,
0.05780029296875,
-0.0034809112548828125,
0.006847381591796875,
-0.00930023193359375,
-0.033416748046875,
-0.030029296875,
0.02532958984375,
0.027618408203125,
-0.018798828125,
0.051513671875,
-0.008453369140625,
-0.0310516357421875,
0.05047607421875,
-0.033538818359375,
0.0560302734375,
0.0267791748046875,
-0.038604736328125,
0.052886962890625,
0.06976318359375,
0.0137481689453125,
0.05615234375,
0.0220184326171875,
0.00399017333984375,
0.01441192626953125,
0.0234222412109375,
0.01557159423828125,
-0.0160980224609375,
0.04034423828125,
0.00287628173828125,
-0.0036678314208984375,
0.033843994140625,
-0.024993896484375,
-0.001270294189453125,
0.0210418701171875,
0.0256195068359375,
-0.040313720703125,
0.0008687973022460938,
-0.008880615234375,
-0.00021827220916748047,
0.0289154052734375,
-0.02532958984375,
0.017059326171875,
-0.030975341796875,
0.027496337890625,
-0.007083892822265625,
-0.038238525390625,
-0.0095367431640625,
-0.033538818359375,
-0.01036834716796875,
-0.006954193115234375,
0.032196044921875,
0.016021728515625,
0.0147705078125,
-0.0333251953125,
-0.020751953125,
-0.00034689903259277344,
0.036224365234375,
0.045166015625,
-0.040283203125,
0.0008516311645507812,
-0.007106781005859375,
0.0005693435668945312,
-0.045501708984375,
-0.03997802734375,
0.03289794921875,
0.005245208740234375,
0.033660888671875,
0.052001953125,
-0.01019287109375,
0.0292205810546875,
0.0220489501953125,
0.01157379150390625,
0.0073699951171875,
0.01467132568359375,
0.0115814208984375,
0.003753662109375,
-0.03021240234375,
-0.0013589859008789062,
-0.036590576171875,
0.028350830078125,
0.019744873046875,
0.02227783203125,
0.03509521484375,
-0.04034423828125,
-0.006839752197265625,
0.03839111328125,
-0.0025005340576171875,
0.014404296875,
-0.001705169677734375,
0.019561767578125,
-0.0594482421875,
-0.041778564453125,
0.01369476318359375,
-0.062255859375,
-0.03350830078125,
-0.01551055908203125,
-0.039794921875,
0.11920166015625,
-0.026641845703125,
0.0230560302734375,
0.038482666015625,
0.041534423828125,
-0.0482177734375,
0.01343536376953125,
-0.0213470458984375,
0.007129669189453125,
-0.0018701553344726562,
0.03192138671875,
-0.049957275390625,
-0.0280303955078125,
0.005771636962890625,
0.055419921875,
0.054473876953125,
-0.000040590763092041016,
-0.0462646484375,
-0.01461029052734375,
0.036407470703125,
0.050201416015625,
0.0175628662109375,
0.035247802734375,
-0.024200439453125,
-0.01248931884765625,
0.044647216796875,
-0.0142059326171875,
0.0283966064453125,
0.004718780517578125,
-0.0369873046875,
0.0014181137084960938,
0.01215362548828125,
0.021728515625,
-0.004558563232421875,
0.039093017578125,
0.01549530029296875,
-0.023529052734375,
0.005138397216796875,
-0.066162109375,
-0.006237030029296875,
0.030242919921875,
-0.00833892822265625,
-0.023223876953125,
-0.0086669921875,
-0.032928466796875,
0.03155517578125,
-0.02459716796875,
-0.032318115234375,
0.02001953125,
0.0130157470703125,
-0.04730224609375,
-0.0139617919921875,
-0.03204345703125,
-0.01123046875,
0.01049041748046875,
0.0181121826171875,
-0.0150604248046875,
-0.00785064697265625,
-0.064697265625,
0.0173492431640625,
0.0513916015625,
0.0413818359375,
-0.03668212890625,
-0.032684326171875,
0.006153106689453125,
0.00261688232421875,
-0.0028533935546875,
0.005405426025390625,
0.0292816162109375,
-0.0188751220703125,
0.006195068359375,
-0.01206207275390625,
-0.0013866424560546875,
0.0062713623046875,
0.045135498046875,
0.0022144317626953125,
0.030914306640625,
-0.04449462890625,
-0.0252838134765625,
-0.0301513671875,
-0.0341796875,
-0.008453369140625,
0.04754638671875,
0.0577392578125,
0.0253753662109375,
-0.0014104843139648438,
-0.0270233154296875,
-0.0025310516357421875,
0.03582763671875,
-0.0300750732421875,
-0.0015964508056640625,
-0.02410888671875,
-0.064697265625,
0.017822265625,
0.025543212890625,
0.045989990234375,
0.0309906005859375,
0.042877197265625,
0.00946807861328125,
-0.0047149658203125,
0.00864410400390625,
0.0268402099609375,
-0.016143798828125,
-0.01983642578125,
-0.04473876953125,
0.025634765625,
0.0222625732421875,
0.0117034912109375,
0.01406097412109375,
0.0092315673828125,
0.04156494140625,
0.0005245208740234375,
0.034881591796875,
0.0029582977294921875,
-0.04119873046875,
-0.00907135009765625,
0.0003249645233154297,
0.08929443359375,
0.0259246826171875,
-0.062347412109375,
-0.007415771484375,
-0.0290679931640625,
-0.04205322265625,
0.0252838134765625,
0.048583984375,
0.005451202392578125,
-0.003662109375,
-0.02020263671875,
-0.0017957687377929688,
0.00988006591796875,
-0.03363037109375,
0.0289306640625,
0.00568389892578125,
-0.012847900390625,
0.00977325439453125,
-0.0916748046875,
-0.0225067138671875,
-0.0040435791015625,
0.0016527175903320312,
-0.0204925537109375,
0.04644775390625,
0.007503509521484375,
-0.007152557373046875,
0.0038166046142578125,
0.01033782958984375,
-0.0137481689453125,
-0.0028285980224609375,
0.0221710205078125,
0.017974853515625,
0.0002562999725341797,
-0.0235748291015625,
0.0031642913818359375,
-0.00989532470703125,
0.031524658203125,
-0.028839111328125,
-0.04388427734375,
-0.018890380859375,
0.03631591796875,
0.035064697265625,
0.0084228515625,
-0.01358795166015625,
-0.00978851318359375,
-0.035308837890625,
0.00568389892578125,
0.0380859375,
-0.0069122314453125,
-0.07794189453125,
0.033447265625,
0.0168609619140625,
-0.027923583984375,
0.01012420654296875,
-0.015045166015625,
0.038177490234375,
0.046630859375,
-0.0190582275390625,
-0.034515380859375,
-0.0254058837890625,
-0.018585205078125,
-0.0243072509765625,
0.0079803466796875,
0.0011529922485351562,
-0.0010404586791992188,
-0.03790283203125,
0.049041748046875,
0.048919677734375,
0.0078582763671875,
-0.07891845703125,
-0.019866943359375,
0.10137939453125,
-0.02105712890625,
0.00435638427734375,
-0.0290069580078125,
-0.0276947021484375,
-0.06524658203125,
-0.00960540771484375,
0.031707763671875,
-0.043731689453125,
-0.02374267578125,
-0.07415771484375,
0.025390625,
0.009490966796875,
-0.004535675048828125,
-0.07916259765625,
0.058349609375,
-0.0260162353515625,
0.06695556640625,
-0.044769287109375,
0.03997802734375,
-0.0111846923828125,
0.0215911865234375,
-0.022247314453125,
-0.050811767578125,
-0.009552001953125,
0.055145263671875,
-0.00832366943359375,
-0.00467681884765625,
0.0235443115234375,
-0.023590087890625,
-0.0248260498046875,
0.001796722412109375,
0.017608642578125,
0.0406494140625,
0.0224456787109375,
-0.0233917236328125,
0.00748443603515625,
-0.0058135986328125,
-0.033935546875,
-0.0221099853515625,
0.019744873046875,
-0.0482177734375,
0.0000788569450378418,
0.03851318359375,
-0.03594970703125,
-0.01355743408203125,
-0.046051025390625,
-0.07525634765625,
-0.0290985107421875,
0.028411865234375,
-0.0601806640625,
0.00043845176696777344,
0.023956298828125,
-0.005847930908203125,
0.0248870849609375,
0.0032806396484375,
-0.01403045654296875,
0.005931854248046875,
-0.01546478271484375,
-0.0245513916015625,
0.051025390625,
-0.0043182373046875,
-0.00867462158203125,
-0.0299530029296875,
-0.0207672119140625,
-0.026763916015625,
-0.0230255126953125,
0.031463623046875,
-0.0288848876953125,
0.018096923828125,
0.0157318115234375,
-0.061248779296875,
-0.07135009765625,
-0.0401611328125,
0.008697509765625,
-0.0283203125,
-0.0279693603515625,
-0.0167694091796875,
-0.0110626220703125,
0.06689453125,
0.07763671875,
0.003070831298828125,
-0.03460693359375,
0.01177978515625,
-0.0200042724609375,
-0.0258331298828125,
0.0061187744140625,
0.01629638671875,
-0.052642822265625,
-0.000017344951629638672,
0.03350830078125,
0.039459228515625,
-0.033447265625,
-0.005283355712890625,
0.0106201171875,
-0.04962158203125,
0.015289306640625,
0.0259552001953125,
-0.03399658203125,
0.004962921142578125,
0.08770751953125,
-0.048614501953125,
-0.0138092041015625,
0.020050048828125,
0.00609588623046875,
0.0297088623046875,
0.00902557373046875,
0.03076171875,
-0.016754150390625,
-0.037628173828125,
0.027984619140625,
0.005641937255859375,
0.02532958984375,
-0.034423828125,
-0.0452880859375,
-0.00801849365234375,
-0.01457977294921875,
-0.0237579345703125,
-0.021392822265625,
0.0157470703125,
0.015960693359375,
-0.0255126953125,
0.08697509765625,
-0.038238525390625,
0.0035228729248046875,
-0.0333251953125,
0.0003609657287597656,
0.0245513916015625,
0.0143585205078125,
0.0625,
0.004566192626953125,
0.0220947265625,
-0.00878143310546875,
0.01776123046875,
-0.0230865478515625,
0.007747650146484375,
-0.015716552734375,
-0.0133514404296875,
0.0140380859375
] |
0163afcca464c6bb29c96a16b47eee91bacc3efe | Wordpress Stackexchange
Q: What's the difference between the capability remove_users and delete_users? In the list of capabilities, I found there's both remove_users and delete_users. It's not clear to me what remove_users is supposed to do, the Codex documentation just says it was introduced in version 3.0 (https://wordpress.org/support/article/roles-and-capabilities/).
A: The difference is really no difference in regular (single install) WordPress. It's in a multisite install (network) where there is a difference.
In multisite, only a Super Admin (who can manage everything on the network) has delete_users capability, while an "admin" (who would own/manage a single site) can remove_users from their site, but cannot delete them from the network.
Hope that helps clarify.
| Q: What's the difference between the capability remove_users and delete_users? In the list of capabilities, I found there's both remove_users and delete_users. It's not clear to me what remove_users is supposed to do, the Codex documentation just says it was introduced in version 3.0 (https://wordpress.org/support/article/roles-and-capabilities/).
A: The difference is really no difference in regular (single install) WordPress. It's in a multisite install (network) where there is a difference.
In multisite, only a Super Admin (who can manage everything on the network) has delete_users capability, while an "admin" (who would own/manage a single site) can remove_users from their site, but cannot delete them from the network.
Hope that helps clarify.
A: remove_users is no more used.
Source: https://wpfront.com/wordpress-plugins/user-role-editor-plugin/wordpress-capabilities/#remove_users
Use delete_users instead both in a multisite install (network) or a single install.
We also can read some mistakes on the web like here:
Even with the delete_users permission you can not delete users with
more permissions that you.
That's wrong, an editor user with delete_users (and list_users) capability can delete an administrator with following code:
function add_editor_delete_users_cap() {
if ( $role = get_role( 'editor' ) ) {
if( !$role->has_cap( 'list_users' ) ) $role->add_cap( 'list_users' );
if( !$role->has_cap( 'delete_users' ) ) $role->add_cap( 'delete_users' );
}
}
add_action( 'admin_init', 'add_editor_delete_users_cap' );
| wordpress | {
"language": "en",
"length": 207,
"provenance": "stackexchange_00019.jsonl.gz:494631",
"question_score": "8",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/334837"
} | [
0.06536865234375,
-0.00524139404296875,
-0.021087646484375,
-0.0165557861328125,
0.01690673828125,
-0.054656982421875,
0.059539794921875,
-0.0018100738525390625,
0.028228759765625,
0.037139892578125,
0.0020275115966796875,
-0.0193328857421875,
0.0194549560546875,
-0.026123046875,
-0.0258636474609375,
-0.0082855224609375,
0.027862548828125,
-0.00627899169921875,
0.0036411285400390625,
-0.024658203125,
-0.0199127197265625,
-0.01145172119140625,
-0.002017974853515625,
0.034088134765625,
0.0022678375244140625,
-0.048065185546875,
0.0215606689453125,
-0.0304107666015625,
0.007045745849609375,
-0.029205322265625,
0.0034580230712890625,
0.0484619140625,
-0.005367279052734375,
0.041412353515625,
-0.03948974609375,
-0.048126220703125,
-0.017578125,
0.0240936279296875,
-0.0038509368896484375,
-0.00452423095703125,
0.01113128662109375,
0.00548553466796875,
0.016571044921875,
-0.0197906494140625,
-0.0078582763671875,
-0.044952392578125,
0.0308990478515625,
-0.0119781494140625,
0.0252227783203125,
-0.017303466796875,
0.01352691650390625,
-0.013916015625,
0.038055419921875,
-0.0189971923828125,
-0.0248870849609375,
-0.00011020898818969727,
-0.03759765625,
0.035675048828125,
0.0297088623046875,
0.008392333984375,
-0.0240936279296875,
0.0099639892578125,
0.008758544921875,
-0.029052734375,
-0.0038547515869140625,
-0.006473541259765625,
0.00958251953125,
0.01483154296875,
-0.0452880859375,
-0.033905029296875,
0.0157470703125,
-0.00994873046875,
0.0034122467041015625,
-0.0076904296875,
-0.0086669921875,
0.005443572998046875,
0.0013589859008789062,
-0.0005307197570800781,
0.0141448974609375,
0.00807952880859375,
-0.01328277587890625,
0.02044677734375,
-0.09271240234375,
0.0361328125,
-0.031005859375,
0.041473388671875,
-0.01113128662109375,
-0.0260009765625,
-0.007282257080078125,
0.01236724853515625,
-0.013641357421875,
-0.0755615234375,
0.022064208984375,
0.049285888671875,
-0.004352569580078125,
-0.0088958740234375,
0.039215087890625,
0.046234130859375,
0.00725555419921875,
-0.04241943359375,
0.0229644775390625,
-0.040191650390625,
-0.039520263671875,
-0.0087432861328125,
0.0028476715087890625,
0.0238800048828125,
-0.0022373199462890625,
-0.0180511474609375,
0.00856781005859375,
0.01556396484375,
-0.009796142578125,
-0.018524169921875,
0.011688232421875,
-0.05889892578125,
0.0223846435546875,
0.0012941360473632812,
-0.021759033203125,
0.0633544921875,
0.0223388671875,
0.00933837890625,
-0.01525115966796875,
0.006183624267578125,
-0.00878143310546875,
-0.00923919677734375,
0.002956390380859375,
-0.004703521728515625,
-0.004543304443359375,
-0.00298309326171875,
0.00666046142578125,
0.01218414306640625,
-0.037841796875,
0.0274810791015625,
0.042205810546875,
-0.022918701171875,
-0.02606201171875,
-0.00887298583984375,
0.0030918121337890625,
-0.010772705078125,
0.00579833984375,
0.0290069580078125,
0.025177001953125,
-0.0684814453125,
-0.02947998046875,
0.0300750732421875,
-0.006702423095703125,
0.035888671875,
0.00850677490234375,
-0.0008182525634765625,
0.00980377197265625,
-0.03387451171875,
-0.03253173828125,
-0.0286102294921875,
0.0035037994384765625,
0.01214599609375,
0.020233154296875,
-0.0106658935546875,
0.018402099609375,
-0.036712646484375,
0.00823974609375,
-0.036773681640625,
0.042083740234375,
-0.01082611083984375,
-0.01113128662109375,
-0.019805908203125,
-0.06134033203125,
0.006282806396484375,
-0.04571533203125,
-0.0169219970703125,
0.0279541015625,
-0.026153564453125,
0.01522064208984375,
-0.024627685546875,
0.02667236328125,
0.01399993896484375,
0.0045013427734375,
0.050994873046875,
-0.007007598876953125,
0.0306396484375,
-0.007366180419921875,
0.01446533203125,
-0.00229644775390625,
-0.046142578125,
0.0237884521484375,
0.0029163360595703125,
-0.0211639404296875,
-0.0496826171875,
0.017578125,
0.0005869865417480469,
0.0062713623046875,
0.0261993408203125,
0.03582763671875,
0.0224456787109375,
0.0660400390625,
0.01259613037109375,
0.0311279296875,
-0.0999755859375,
-0.01580810546875,
-0.05059814453125,
-0.0181732177734375,
0.0084686279296875,
0.0621337890625,
0.00513458251953125,
0.0312347412109375,
-0.037445068359375,
-0.09423828125,
0.041015625,
-0.0501708984375,
0.048828125,
-0.03619384765625,
-0.0023059844970703125,
0.026153564453125,
-0.005359649658203125,
-0.01013946533203125,
-0.0204315185546875,
-0.005950927734375,
-0.00939178466796875,
-0.018768310546875,
0.044036865234375,
0.0226287841796875,
0.04425048828125,
0.0069732666015625,
0.0002987384796142578,
0.0027618408203125,
-0.056396484375,
0.056121826171875,
-0.0091552734375,
0.00885772705078125,
-0.023529052734375,
0.08782958984375,
-0.00439453125,
0.049163818359375,
0.006793975830078125,
0.04315185546875,
0.061004638671875,
0.0022563934326171875,
0.01033782958984375,
0.00873565673828125,
-0.07745361328125,
0.003498077392578125,
0.037017822265625,
0.03656005859375,
0.02423095703125,
-0.0293426513671875,
-0.0253143310546875,
0.0310821533203125,
-0.007656097412109375,
0.01538848876953125,
-0.0089874267578125,
-0.01204681396484375,
0.046875,
0.042266845703125,
0.013275146484375,
-0.015380859375,
-0.0001226663589477539,
0.0005040168762207031,
0.006137847900390625,
-0.03314208984375,
-0.00868988037109375,
0.0016832351684570312,
-0.0184173583984375,
0.019073486328125,
-0.0555419921875,
-0.02984619140625,
-0.021881103515625,
-0.020294189453125,
-0.037445068359375,
0.00290679931640625,
-0.00698089599609375,
0.016937255859375,
-0.037567138671875,
0.03009033203125,
-0.0182647705078125,
-0.004467010498046875,
0.043609619140625,
0.033599853515625,
0.031402587890625,
-0.032196044921875,
-0.00746917724609375,
-0.01087188720703125,
0.0148773193359375,
-0.0308074951171875,
-0.0189056396484375,
-0.00655364990234375,
-0.006847381591796875,
0.0172882080078125,
-0.0250396728515625,
0.0277862548828125,
0.00569915771484375,
-0.0157012939453125,
-0.0245819091796875,
0.0133209228515625,
0.00359344482421875,
-0.0193634033203125,
0.01430511474609375,
-0.005199432373046875,
-0.017852783203125,
0.0035343170166015625,
-0.03515625,
0.0026454925537109375,
-0.010528564453125,
0.02178955078125,
0.06890869140625,
0.0305938720703125,
-0.03887939453125,
0.0165557861328125,
0.017486572265625,
0.0396728515625,
-0.0194549560546875,
0.0007829666137695312,
0.0234527587890625,
-0.03594970703125,
0.028594970703125,
0.001110076904296875,
-0.029632568359375,
0.0086669921875,
-0.01348876953125,
-0.00984954833984375,
-0.01433563232421875,
-0.0232391357421875,
0.028106689453125,
-0.0171356201171875,
-0.0567626953125,
0.0309906005859375,
0.00041556358337402344,
-0.005832672119140625,
-0.0213165283203125,
0.0389404296875,
0.0283966064453125,
-0.046630859375,
0.0297698974609375,
0.041656494140625,
0.02899169921875,
0.0186767578125,
0.006122589111328125,
-0.0110321044921875,
-0.01861572265625,
-0.002361297607421875,
0.068115234375,
0.00299835205078125,
-0.04364013671875,
-0.029754638671875,
-0.00910186767578125,
-0.0188446044921875,
-0.0157623291015625,
0.0279998779296875,
0.0176544189453125,
-0.003391265869140625,
0.0343017578125,
-0.0086669921875,
0.019287109375,
-0.042266845703125,
-0.05731201171875,
0.0141448974609375,
0.003162384033203125,
0.037506103515625,
-0.030731201171875,
-0.037811279296875,
0.0230560302734375,
-0.00980377197265625,
-0.03460693359375,
-0.032073974609375,
-0.0005898475646972656,
-0.048919677734375,
0.0413818359375,
0.0289154052734375,
-0.0023708343505859375,
0.0255584716796875,
0.004169464111328125,
0.01062774658203125,
0.017730712890625,
-0.0241241455078125,
-0.001224517822265625,
-0.01904296875,
0.0004398822784423828,
0.00748443603515625,
0.0234527587890625,
0.024200439453125,
-0.029205322265625,
0.0169525146484375,
-0.0006384849548339844,
0.00249481201171875,
-0.0119171142578125,
0.003383636474609375,
-0.0190582275390625,
-0.07366943359375,
0.058502197265625,
0.002689361572265625,
-0.0179901123046875,
-0.017425537109375,
-0.0286407470703125,
0.01873779296875,
0.10302734375,
-0.021240234375,
-0.017791748046875,
0.0012960433959960938,
0.00910186767578125,
-0.007030487060546875,
0.01308441162109375,
-0.04400634765625,
-0.0088043212890625,
-0.06219482421875,
-0.003345489501953125,
-0.0010499954223632812,
-0.00864410400390625,
-0.045928955078125,
0.0540771484375,
-0.048553466796875,
-0.0285186767578125,
0.01219940185546875,
0.0098114013671875,
0.0236053466796875,
-0.045562744140625,
0.00800323486328125,
-0.04290771484375,
0.01007843017578125,
-0.031951904296875,
0.01271820068359375,
0.00482940673828125,
-0.028472900390625,
0.00597381591796875,
0.0281982421875,
0.01422119140625,
-0.0090484619140625,
0.0248565673828125,
0.0199127197265625,
-0.02838134765625,
-0.01216888427734375,
-0.044342041015625,
0.0069732666015625,
0.0253143310546875,
-0.0341796875,
0.005584716796875,
-0.00624847412109375,
-0.044219970703125,
-0.035675048828125,
-0.0389404296875,
-0.027008056640625,
0.043426513671875,
-0.00916290283203125,
-0.0210113525390625,
-0.060791015625,
-0.0247650146484375,
-0.048980712890625,
-0.0242919921875,
-0.01666259765625,
-0.0222930908203125,
-0.01293182373046875,
-0.046966552734375,
0.0197601318359375,
-0.004547119140625,
0.0025806427001953125,
-0.0074310302734375,
0.06396484375,
0.0284881591796875,
-0.003452301025390625,
0.06866455078125,
-0.0384521484375,
0.0215301513671875,
-0.038330078125,
0.039306640625,
0.053192138671875,
-0.004009246826171875,
-0.00502777099609375,
-0.00533294677734375,
0.0275421142578125,
-0.02081298828125,
0.01513671875,
-0.0013914108276367188,
-0.01317596435546875,
0.02545166015625,
0.00365447998046875,
0.007457733154296875,
-0.0098419189453125,
0.0058746337890625,
0.014923095703125,
0.048858642578125,
0.01157379150390625,
0.00963592529296875,
-0.06011962890625,
-0.0279083251953125,
-0.05108642578125,
0.017730712890625,
-0.07928466796875,
0.006351470947265625,
-0.0102996826171875,
0.01198577880859375,
-0.01094818115234375,
-0.01136016845703125,
-0.005573272705078125,
-0.0408935546875,
-0.026824951171875,
-0.040374755859375,
0.0180206298828125,
-0.0548095703125,
-0.00971221923828125,
-0.01171875,
-0.021270751953125,
0.1209716796875,
-0.0023441314697265625,
-0.0631103515625,
0.0027179718017578125,
-0.023956298828125,
0.08026123046875,
0.033538818359375,
0.023956298828125,
0.043914794921875,
0.0231170654296875,
-0.004146575927734375,
-0.0126190185546875,
0.002071380615234375,
0.00266265869140625,
-0.03851318359375,
-0.005046844482421875,
-0.02362060546875,
0.005069732666015625,
0.025970458984375,
0.041595458984375,
-0.029296875,
0.036041259765625,
-0.00815582275390625,
0.0665283203125,
0.056488037109375,
-0.0206756591796875,
-0.003978729248046875,
0.06689453125,
-0.0270538330078125,
-0.018646240234375,
-0.01171112060546875,
0.00836181640625,
0.007068634033203125,
0.05584716796875,
0.004459381103515625,
0.032073974609375,
0.026702880859375,
-0.055084228515625,
-0.013275146484375,
-0.015594482421875,
0.054412841796875,
0.0160369873046875,
-0.06695556640625,
-0.0140533447265625,
0.0211029052734375,
0.0090179443359375,
-0.045745849609375,
-0.0281524658203125,
0.00757598876953125,
-0.05255126953125,
-0.01274871826171875,
0.0211639404296875,
-0.0290374755859375,
-0.0227203369140625,
-0.018157958984375,
-0.0298614501953125,
-0.0165557861328125,
0.0165252685546875,
0.01435089111328125,
-0.006275177001953125,
-0.001544952392578125,
-0.034027099609375,
0.003154754638671875,
0.0145416259765625,
-0.004131317138671875,
-0.0518798828125,
0.0196380615234375,
-0.0751953125,
-0.0252227783203125,
0.06939697265625,
0.0224151611328125,
-0.05841064453125,
-0.01302337646484375,
-0.03704833984375,
-0.0194091796875,
-0.057525634765625,
-0.0257415771484375,
-0.0439453125,
0.03277587890625,
-0.01361846923828125,
-0.01067352294921875,
0.01308441162109375,
0.030548095703125,
-0.0193328857421875,
0.055999755859375,
0.011138916015625,
-0.005313873291015625,
0.003475189208984375,
0.0024127960205078125,
-0.007152557373046875,
0.01214599609375,
0.0238494873046875,
0.046875,
0.0439453125,
-0.054656982421875,
0.036865234375,
-0.016265869140625,
-0.035919189453125,
-0.05816650390625,
-0.0103607177734375,
-0.024383544921875,
0.02325439453125,
-0.0157012939453125,
-0.020294189453125,
0.0292510986328125,
0.0017852783203125,
-0.0261688232421875,
-0.002086639404296875,
0.048736572265625,
0.0297088623046875,
-0.0701904296875,
-0.0245513916015625,
0.04461669921875,
-0.01194000244140625,
-0.0283660888671875,
0.0152130126953125,
-0.0260772705078125,
0.0161895751953125,
0.053131103515625,
-0.00612640380859375,
0.0207977294921875,
-0.0023670196533203125,
-0.05078125,
-0.0027484893798828125,
0.031829833984375,
0.00015461444854736328,
-0.00015461444854736328,
-0.0030651092529296875,
-0.027374267578125,
-0.0033664703369140625,
0.0026302337646484375,
-0.01045989990234375,
0.0024242401123046875,
-0.00687408447265625,
-0.01392364501953125,
0.0241546630859375,
0.06549072265625,
0.0631103515625,
-0.08270263671875,
0.007747650146484375,
-0.002498626708984375,
-0.01361846923828125,
0.0567626953125,
-0.009979248046875,
0.011932373046875,
-0.0262451171875,
0.04632568359375,
0.008514404296875,
-0.0069732666015625,
0.01526641845703125,
-0.0128936767578125,
-0.0261077880859375,
-0.011688232421875,
-0.021392822265625,
0.01299285888671875,
0.055816650390625,
0.014801025390625,
-0.052276611328125,
0.050445556640625,
-0.01375579833984375,
0.006317138671875,
0.0026683807373046875,
-0.01873779296875,
-0.055267333984375,
-0.00699615478515625,
-0.014312744140625,
-0.02899169921875,
0.0116119384765625,
0.0085601806640625,
0.03369140625,
0.0474853515625,
-0.01483917236328125,
0.005893707275390625,
0.0215606689453125,
-0.031463623046875,
-0.0880126953125,
-0.028717041015625,
0.047882080078125,
0.00009191036224365234,
-0.07025146484375,
0.048919677734375,
-0.063232421875,
-0.040374755859375,
-0.019561767578125,
-0.016632080078125,
0.055267333984375,
0.0013866424560546875,
-0.01544952392578125,
0.0269012451171875,
0.03765869140625,
-0.01491546630859375,
-0.0038623809814453125,
-0.008819580078125,
-0.053070068359375,
-0.02496337890625,
-0.006023406982421875,
-0.04248046875,
0.031982421875,
0.0252532958984375,
-0.0657958984375,
0.0543212890625,
0.0362548828125,
0.0270843505859375,
-0.00848388671875,
0.01012420654296875,
-0.0217742919921875,
-0.003231048583984375,
-0.0302886962890625,
0.03900146484375,
-0.0184478759765625,
0.01617431640625,
-0.007049560546875,
0.0283966064453125,
0.0034313201904296875,
-0.0213623046875,
0.06768798828125,
0.025299072265625,
0.007053375244140625,
-0.0265960693359375,
0.0133209228515625,
0.0023250579833984375,
-0.034271240234375,
0.0201568603515625,
0.0061798095703125,
0.04132080078125,
0.02044677734375,
-0.0243682861328125,
0.0369873046875,
-0.031768798828125,
-0.040985107421875,
0.0202484130859375,
-0.009002685546875,
-0.011566162109375,
0.0027294158935546875,
0.0107421875,
-0.0364990234375,
-0.006900787353515625,
0.013336181640625,
-0.01322174072265625,
-0.006381988525390625,
0.034759521484375,
0.01494598388671875,
-0.02850341796875,
0.009857177734375,
-0.035400390625,
0.05059814453125,
-0.0011873245239257812,
0.046051025390625,
0.07415771484375,
0.04022216796875,
0.01153564453125,
0.00966644287109375,
0.048004150390625,
0.00981903076171875,
-0.04010009765625,
0.04364013671875,
0.033294677734375,
0.029449462890625,
-0.0108642578125,
0.01531982421875,
0.04656982421875,
0.06573486328125,
-0.0364990234375,
-0.06646728515625,
0.00366973876953125,
0.0185394287109375,
0.033203125,
0.034881591796875,
0.03662109375,
-0.049285888671875,
0.0182342529296875,
-0.05462646484375,
0.01184844970703125,
0.0223846435546875,
-0.010101318359375,
-0.003078460693359375,
0.02935791015625,
0.0023937225341796875,
0.00592803955078125,
-0.033172607421875,
0.0190277099609375,
0.00921630859375,
-0.030853271484375,
0.0034999847412109375,
-0.007053375244140625,
0.08319091796875,
0.0189361572265625,
0.0109710693359375,
0.01910400390625,
-0.0253753662109375,
-0.0002872943878173828,
-0.0543212890625,
-0.0880126953125,
0.03857421875,
0.046966552734375,
-0.0290374755859375,
-0.01251983642578125,
0.00958251953125,
0.038848876953125,
0.006229400634765625,
-0.0249786376953125,
0.03070068359375,
-0.01035308837890625,
-0.00786590576171875,
-0.0162811279296875,
-0.0217437744140625,
-0.0115814208984375,
-0.023956298828125,
-0.017120361328125,
0.0235748291015625,
0.007038116455078125,
0.004322052001953125,
0.01806640625,
-0.0004642009735107422,
-0.0095977783203125,
0.0219879150390625,
-0.0033054351806640625,
0.02435302734375,
0.02734375,
0.003337860107421875,
-0.006580352783203125,
-0.0200653076171875,
0.00762176513671875,
-0.0103912353515625,
0.025482177734375,
0.017913818359375,
0.0059814453125,
0.040435791015625,
-0.053741455078125,
0.0301055908203125,
0.050323486328125,
-0.01053619384765625,
-0.0208282470703125,
0.025054931640625,
-0.034088134765625,
-0.0175628662109375,
0.0103759765625,
0.0533447265625,
-0.0150909423828125,
-0.03790283203125,
0.03314208984375,
0.0022563934326171875,
-0.0246429443359375,
-0.032562255859375,
0.05023193359375,
-0.050201416015625,
-0.04571533203125,
0.03973388671875,
0.0191497802734375,
-0.01338958740234375,
-0.00897216796875,
-0.036376953125,
0.0291748046875,
0.03900146484375,
-0.0286865234375,
-0.00499725341796875,
0.02752685546875,
0.0008025169372558594,
-0.010101318359375,
-0.0175628662109375,
-0.03253173828125,
-0.0059356689453125,
-0.0287628173828125,
-0.015960693359375,
0.037139892578125,
-0.00435638427734375,
-0.04364013671875,
-0.011932373046875,
-0.006137847900390625,
-0.07183837890625,
0.0028171539306640625,
-0.0179443359375,
-0.0251312255859375,
0.01145172119140625,
0.072998046875,
-0.00992584228515625,
0.036773681640625,
-0.010009765625,
-0.00457763671875,
0.01849365234375,
0.013580322265625,
0.04046630859375,
-0.047149658203125,
-0.00150299072265625,
-0.0472412109375,
0.004364013671875,
-0.01348114013671875,
-0.01425933837890625,
-0.034881591796875,
0.014007568359375,
-0.00815582275390625,
-0.00048828125,
-0.017242431640625,
-0.01213836669921875,
-0.03265380859375,
0.0174407958984375,
-0.0335693359375,
-0.0301513671875,
-0.06689453125,
0.00424957275390625,
0.0190277099609375,
0.046295166015625,
-0.1044921875,
0.08428955078125,
0.005359649658203125,
-0.037506103515625,
-0.0020885467529296875,
-0.032012939453125,
-0.01096343994140625,
-0.0139312744140625,
-0.032318115234375,
-0.0249481201171875,
-0.05670166015625,
0.007694244384765625,
-0.0291595458984375,
0.03125,
0.0206146240234375,
-0.0218048095703125,
0.024444580078125,
0.038360595703125,
0.0291748046875,
0.080078125,
0.0153656005859375,
-0.0026531219482421875,
-0.00704193115234375,
0.01192474365234375,
-0.00830841064453125,
-0.0283203125,
0.0016384124755859375,
0.005977630615234375,
-0.049713134765625,
0.00489044189453125,
0.0189666748046875,
0.05072021484375,
-0.0186004638671875,
-0.0557861328125,
0.03924560546875,
0.0005292892456054688,
-0.035858154296875,
0.035430908203125,
-0.017303466796875,
0.0006270408630371094,
0.006954193115234375,
0.00759124755859375,
0.004650115966796875,
-0.04498291015625,
-0.034423828125,
0.0082244873046875,
0.0302276611328125,
-0.0284576416015625,
0.0186004638671875,
-0.0232391357421875,
0.046722412109375,
0.0360107421875,
0.0012836456298828125,
0.016387939453125,
-0.01396942138671875,
0.04833984375,
0.078125,
0.006587982177734375,
-0.00394439697265625,
-0.0021190643310546875,
-0.0538330078125,
-0.0433349609375,
0.004749298095703125,
0.0202178955078125,
0.015838623046875,
0.06890869140625,
0.062255859375,
-0.0010051727294921875,
-0.03759765625,
-0.0169677734375,
-0.029754638671875,
0.00327301025390625,
-0.004482269287109375,
0.01204681396484375,
-0.0635986328125,
-0.0025768280029296875,
0.0249176025390625,
-0.0372314453125,
0.0226898193359375,
-0.007022857666015625,
-0.055267333984375,
0.021392822265625,
-0.0201263427734375,
-0.020355224609375,
-0.04052734375,
0.0143890380859375,
0.0156707763671875,
-0.0137939453125,
-0.016632080078125,
-0.0311279296875,
0.0134124755859375,
-0.0288238525390625,
-0.0419921875,
-0.01041412353515625,
-0.01374053955078125,
-0.0447998046875,
0.033782958984375,
-0.0201873779296875,
0.0250244140625,
-0.0419921875,
-0.0006709098815917969,
0.0396728515625,
0.046112060546875,
-0.020233154296875,
0.061370849609375,
0.011566162109375,
0.0770263671875,
0.00394439697265625,
-0.0049285888671875,
0.0225830078125,
0.0517578125,
-0.022705078125,
0.055419921875,
0.009552001953125,
-0.033905029296875,
0.00997161865234375,
0.0014934539794921875,
-0.01140594482421875,
0.0037746429443359375,
-0.0111083984375,
-0.09246826171875,
0.08544921875,
0.07025146484375,
0.030120849609375,
0.051025390625
] |
a301343e4711534b92feb74792719b7196c5e875 | Wordpress Stackexchange
Q: post_type_link filter causes 404 on the CPT page it's used on When i change the permalink of my CPT using filters it gives a 404. I clicked save in the permalinks settings and switched and saved, but there's still a 404. Is there some kind of hooking up i need to do with a rewrite to make this work?
function my_permalinks($permalink, $post, $leavename) {
$post_id = $post->ID;
if($post->post_type != 'model-list' || empty($permalink) || in_array($post->post_status, array('draft', 'pending', 'auto-draft')))
return $permalink;
$parent = $post->post_parent;
$parent_post = get_post( $parent );
$permalink = str_replace('model-list/', '', $permalink);
return $permalink;
}
add_filter('post_type_link', 'my_permalinks', 10, 3);
the url is looking correct, but it gives a 404
A: post_type_link is a filter that is applied to the URL for a post before it’s returned by get_post_permalink.
So it doesn’t change any rewrite rules and the structure of permalinks is still the same.
So yeah - if you use it to change the structure of links, you have also to change the rewrite rules in such way, that the new link is matched and processed correctly.
| Q: post_type_link filter causes 404 on the CPT page it's used on When i change the permalink of my CPT using filters it gives a 404. I clicked save in the permalinks settings and switched and saved, but there's still a 404. Is there some kind of hooking up i need to do with a rewrite to make this work?
function my_permalinks($permalink, $post, $leavename) {
$post_id = $post->ID;
if($post->post_type != 'model-list' || empty($permalink) || in_array($post->post_status, array('draft', 'pending', 'auto-draft')))
return $permalink;
$parent = $post->post_parent;
$parent_post = get_post( $parent );
$permalink = str_replace('model-list/', '', $permalink);
return $permalink;
}
add_filter('post_type_link', 'my_permalinks', 10, 3);
the url is looking correct, but it gives a 404
A: post_type_link is a filter that is applied to the URL for a post before it’s returned by get_post_permalink.
So it doesn’t change any rewrite rules and the structure of permalinks is still the same.
So yeah - if you use it to change the structure of links, you have also to change the rewrite rules in such way, that the new link is matched and processed correctly.
| wordpress | {
"language": "en",
"length": 178,
"provenance": "stackexchange_00019.jsonl.gz:494645",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/334898"
} | [
0.07611083984375,
0.005992889404296875,
0.031280517578125,
-0.05615234375,
0.0038127899169921875,
-0.01056671142578125,
0.0209808349609375,
-0.040374755859375,
-0.0186920166015625,
0.00949859619140625,
0.0126190185546875,
-0.0005459785461425781,
-0.024200439453125,
-0.048095703125,
0.023284912109375,
0.001026153564453125,
-0.00024819374084472656,
-0.01297760009765625,
0.002056121826171875,
-0.032623291015625,
-0.01178741455078125,
-0.03533935546875,
0.036407470703125,
-0.021209716796875,
0.01482391357421875,
-0.0121612548828125,
0.04461669921875,
-0.0308380126953125,
0.01007843017578125,
-0.018218994140625,
-0.0013103485107421875,
-0.00470733642578125,
0.0258331298828125,
-0.001499176025390625,
0.01076507568359375,
0.0266876220703125,
0.01317596435546875,
-0.007007598876953125,
-0.007198333740234375,
0.02996826171875,
0.01137542724609375,
0.0050048828125,
0.0207672119140625,
0.0135040283203125,
-0.01448822021484375,
-0.00852203369140625,
-0.01255035400390625,
-0.0579833984375,
0.0032405853271484375,
-0.033111572265625,
0.0228271484375,
0.01264190673828125,
0.035797119140625,
0.0121307373046875,
-0.0112762451171875,
0.0166778564453125,
0.020782470703125,
-0.0294952392578125,
0.005596160888671875,
-0.004505157470703125,
-0.0062255859375,
0.0224609375,
0.004215240478515625,
-0.0036754608154296875,
-0.0251617431640625,
-0.00884246826171875,
-0.0300750732421875,
0.0020694732666015625,
-0.0101470947265625,
-0.0210418701171875,
0.0167083740234375,
-0.005512237548828125,
-0.0017099380493164062,
-0.0184326171875,
-0.01142120361328125,
-0.037994384765625,
0.009521484375,
-0.03363037109375,
0.0029888153076171875,
0.0191192626953125,
0.04449462890625,
-0.0245513916015625,
-0.02764892578125,
0.006320953369140625,
0.01052093505859375,
0.021575927734375,
0.005443572998046875,
-0.0228271484375,
-0.026519775390625,
-0.02447509765625,
-0.0266571044921875,
-0.034698486328125,
-0.0036525726318359375,
-0.01160430908203125,
-0.0253143310546875,
-0.029815673828125,
0.041595458984375,
0.058868408203125,
0.0005669593811035156,
0.013031005859375,
0.030364990234375,
-0.06976318359375,
0.062347412109375,
-0.05621337890625,
0.00612640380859375,
0.00893402099609375,
0.007160186767578125,
0.0531005859375,
0.06689453125,
0.02374267578125,
0.0010805130004882812,
0.08563232421875,
-0.03717041015625,
0.0186614990234375,
-0.03179931640625,
0.02703857421875,
-0.058746337890625,
-0.0280609130859375,
-0.041961669921875,
0.0191650390625,
-0.015869140625,
0.01068878173828125,
0.00440216064453125,
0.016448974609375,
0.00820159912109375,
0.006992340087890625,
0.008636474609375,
-0.0440673828125,
0.056365966796875,
0.0194091796875,
-0.0295562744140625,
-0.00670623779296875,
0.0272216796875,
0.019775390625,
0.0204620361328125,
-0.0204010009765625,
0.0297698974609375,
-0.035491943359375,
-0.01036834716796875,
0.0268096923828125,
0.0174560546875,
-0.03253173828125,
-0.01239013671875,
0.006267547607421875,
0.0113372802734375,
0.0377197265625,
0.0232391357421875,
-0.0058746337890625,
-0.0237884521484375,
-0.0261383056640625,
-0.0231170654296875,
-0.01788330078125,
0.074462890625,
-0.014434814453125,
-0.061798095703125,
-0.0654296875,
0.023040771484375,
-0.061279296875,
-0.0088348388671875,
-0.1011962890625,
0.038482666015625,
-0.0128173828125,
-0.0023899078369140625,
-0.034210205078125,
-0.04730224609375,
0.003360748291015625,
-0.056854248046875,
-0.01479339599609375,
0.016357421875,
0.043701171875,
0.0013446807861328125,
-0.0225067138671875,
-0.045623779296875,
-0.004985809326171875,
-0.0104827880859375,
0.004566192626953125,
0.0057830810546875,
0.022125244140625,
0.020751953125,
0.042938232421875,
0.005382537841796875,
-0.0282135009765625,
0.05291748046875,
-0.015960693359375,
-0.048248291015625,
0.05413818359375,
0.03106689453125,
0.08062744140625,
-0.0296478271484375,
0.03179931640625,
-0.0012559890747070312,
0.05816650390625,
-0.032196044921875,
0.007244110107421875,
-0.00894927978515625,
-0.036590576171875,
0.00067901611328125,
-0.02337646484375,
-0.02655029296875,
0.052459716796875,
-0.033172607421875,
0.02093505859375,
-0.01229095458984375,
0.042449951171875,
-0.046966552734375,
0.04486083984375,
-0.0280914306640625,
0.035247802734375,
-0.0094757080078125,
0.033660888671875,
0.0236968994140625,
0.023040771484375,
-0.0521240234375,
0.0007781982421875,
0.03717041015625,
0.07763671875,
0.015716552734375,
-0.0161895751953125,
-0.021636962890625,
-0.0067291259765625,
-0.02655029296875,
-0.010101318359375,
-0.038116455078125,
0.0538330078125,
0.0352783203125,
0.0069580078125,
-0.01812744140625,
-0.00186920166015625,
-0.007442474365234375,
0.023712158203125,
-0.06500244140625,
0.02618408203125,
0.0286407470703125,
0.022216796875,
-0.040618896484375,
0.001556396484375,
-0.0234222412109375,
-0.04644775390625,
-0.0106048583984375,
0.050872802734375,
0.032623291015625,
0.040283203125,
-0.01041412353515625,
-0.022613525390625,
0.042694091796875,
-0.029144287109375,
0.0204315185546875,
-0.021087646484375,
0.0166473388671875,
0.0218658447265625,
0.01425933837890625,
-0.017303466796875,
0.03094482421875,
-0.0236663818359375,
0.00586700439453125,
0.039520263671875,
-0.004489898681640625,
0.018524169921875,
-0.0058441162109375,
0.00482940673828125,
-0.0020847320556640625,
0.00435638427734375,
-0.010467529296875,
-0.0026378631591796875,
0.00991058349609375,
0.01190948486328125,
0.02325439453125,
0.017608642578125,
-0.005558013916015625,
-0.005096435546875,
0.00847625732421875,
0.0030918121337890625,
-0.0037689208984375,
0.036224365234375,
0.04443359375,
0.00311279296875,
-0.01319122314453125,
-0.019073486328125,
0.013427734375,
0.0250701904296875,
-0.0141754150390625,
0.0259552001953125,
0.004131317138671875,
-0.002330780029296875,
-0.005001068115234375,
0.00030732154846191406,
0.018310546875,
-0.0080413818359375,
0.02703857421875,
0.0225982666015625,
0.041046142578125,
0.005802154541015625,
-0.00672149658203125,
0.01529693603515625,
-0.0008754730224609375,
-0.0252227783203125,
0.01068115234375,
-0.036651611328125,
0.03863525390625,
-0.047088623046875,
0.03271484375,
0.035736083984375,
-0.022430419921875,
-0.0029735565185546875,
0.0023651123046875,
-0.0228118896484375,
0.007038116455078125,
0.0086822509765625,
-0.024261474609375,
-0.0293121337890625,
-0.0513916015625,
-0.004009246826171875,
0.01708984375,
0.047698974609375,
-0.0054779052734375,
-0.0298919677734375,
-0.0039520263671875,
0.03009033203125,
-0.043670654296875,
-0.040496826171875,
-0.0419921875,
-0.0286865234375,
0.02105712890625,
0.0269775390625,
0.01049041748046875,
-0.01129913330078125,
0.0252685546875,
0.0170745849609375,
0.02972412109375,
-0.01837158203125,
-0.0736083984375,
-0.0246124267578125,
-0.06988525390625,
0.0237274169921875,
-0.01029205322265625,
0.006656646728515625,
0.01050567626953125,
-0.006954193115234375,
0.0030460357666015625,
-0.03741455078125,
0.032196044921875,
0.0149078369140625,
-0.0188140869140625,
-0.0009102821350097656,
0.004680633544921875,
-0.00710296630859375,
0.0173187255859375,
-0.0009107589721679688,
0.055511474609375,
0.034759521484375,
-0.03924560546875,
-0.00301361083984375,
-0.004909515380859375,
0.006374359130859375,
0.042877197265625,
-0.003509521484375,
-0.01335906982421875,
0.0100555419921875,
0.039703369140625,
-0.0426025390625,
-0.0433349609375,
-0.04730224609375,
-0.065185546875,
0.03240966796875,
0.025054931640625,
0.03594970703125,
-0.0294647216796875,
0.047119140625,
0.0289154052734375,
0.01493072509765625,
0.05743408203125,
-0.038482666015625,
0.038970947265625,
0.01348114013671875,
0.01374053955078125,
-0.0614013671875,
0.037261962890625,
-0.00724029541015625,
-0.003765106201171875,
0.00962066650390625,
0.01320648193359375,
-0.0007987022399902344,
-0.015899658203125,
-0.043701171875,
-0.06304931640625,
0.04449462890625,
-0.09576416015625,
-0.0175018310546875,
-0.06304931640625,
-0.01012420654296875,
-0.00982666015625,
0.09820556640625,
0.0033779144287109375,
-0.0296783447265625,
-0.05133056640625,
-0.003986358642578125,
0.01215362548828125,
-0.0816650390625,
0.0458984375,
0.0017385482788085938,
-0.0303497314453125,
-0.027130126953125,
-0.005950927734375,
-0.045562744140625,
0.022186279296875,
-0.0020046234130859375,
-0.015899658203125,
-0.0186309814453125,
0.049468994140625,
0.022216796875,
-0.0122222900390625,
0.0305023193359375,
-0.009063720703125,
0.0095672607421875,
-0.05035400390625,
0.0165863037109375,
-0.031341552734375,
-0.035858154296875,
0.0418701171875,
0.061553955078125,
0.014068603515625,
-0.03460693359375,
-0.01023101806640625,
0.047332763671875,
0.0206756591796875,
-0.012786865234375,
-0.010040283203125,
-0.042144775390625,
0.0157928466796875,
0.03271484375,
-0.015106201171875,
0.0157928466796875,
-0.00258636474609375,
0.005035400390625,
-0.05438232421875,
-0.0090789794921875,
-0.01219940185546875,
-0.002246856689453125,
0.041717529296875,
-0.04522705078125,
-0.0926513671875,
-0.028411865234375,
-0.0256805419921875,
0.0261688232421875,
0.00136566162109375,
-0.028472900390625,
-0.04132080078125,
-0.1103515625,
-0.0020923614501953125,
-0.0299530029296875,
-0.013153076171875,
-0.00016570091247558594,
0.029296875,
0.0205535888671875,
0.0020732879638671875,
0.064453125,
0.007526397705078125,
0.0168609619140625,
-0.01904296875,
0.05975341796875,
0.0243377685546875,
0.023406982421875,
0.0099029541015625,
-0.0242156982421875,
-0.024139404296875,
0.0016641616821289062,
0.05487060546875,
0.019073486328125,
-0.000789642333984375,
0.004695892333984375,
-0.0046234130859375,
0.025177001953125,
0.0199127197265625,
-0.01287078857421875,
-0.016387939453125,
0.0047149658203125,
0.055419921875,
-0.0075225830078125,
0.01256561279296875,
-0.049591064453125,
-0.03961181640625,
0.037384033203125,
0.0066680908203125,
0.053558349609375,
-0.00015461444854736328,
0.00797271728515625,
0.02056884765625,
-0.01337432861328125,
0.010528564453125,
-0.02606201171875,
0.039520263671875,
0.01311492919921875,
0.048309326171875,
0.0007734298706054688,
0.0162506103515625,
-0.06494140625,
-0.00748443603515625,
0.0236358642578125,
0.01157379150390625,
0.0037517547607421875,
0.0194244384765625,
-0.025634765625,
-0.019439697265625,
0.0172271728515625,
0.0123748779296875,
0.020233154296875,
0.0242919921875,
-0.005939483642578125,
0.00615692138671875,
0.020751953125,
0.0155792236328125,
-0.0214996337890625,
0.036376953125,
0.0083160400390625,
0.00823211669921875,
0.00452423095703125,
0.04937744140625,
0.06475830078125,
0.0038394927978515625,
-0.02069091796875,
-0.00959014892578125,
0.019317626953125,
0.029693603515625,
0.0230865478515625,
-0.03997802734375,
0.01837158203125,
0.003337860107421875,
0.047393798828125,
-0.061737060546875,
-0.053466796875,
0.050018310546875,
0.0736083984375,
-0.0160369873046875,
0.000530242919921875,
-0.00174713134765625,
0.0198211669921875,
-0.03253173828125,
0.029205322265625,
-0.01125335693359375,
-0.049713134765625,
-0.0330810546875,
0.0138092041015625,
0.0200958251953125,
-0.005191802978515625,
-0.036102294921875,
0.02020263671875,
-0.029327392578125,
0.01261138916015625,
-0.0113525390625,
-0.03289794921875,
0.0299835205078125,
0.03985595703125,
0.02093505859375,
-0.04547119140625,
-0.003902435302734375,
0.010223388671875,
0.04461669921875,
-0.035736083984375,
-0.00931549072265625,
0.041900634765625,
0.0189208984375,
0.04083251953125,
-0.01029205322265625,
-0.0302734375,
0.05712890625,
-0.0173187255859375,
0.047027587890625,
0.00553131103515625,
-0.01885986328125,
-0.00868988037109375,
-0.0206146240234375,
-0.01152801513671875,
-0.0330810546875,
-0.01357269287109375,
-0.0186920166015625,
0.0163421630859375,
-0.0128631591796875,
0.0107879638671875,
0.0003311634063720703,
0.0044403076171875,
0.00873565673828125,
0.006801605224609375,
-0.0009312629699707031,
-0.0063323974609375,
-0.0203094482421875,
0.09442138671875,
-0.034027099609375,
0.0217132568359375,
-0.007091522216796875,
0.0308685302734375,
-0.015625,
0.01239013671875,
-0.0035247802734375,
-0.0416259765625,
-0.017120361328125,
-0.00899505615234375,
-0.035125732421875,
0.0214385986328125,
0.06219482421875,
0.0032367706298828125,
0.00897216796875,
-0.0139923095703125,
-0.00765228271484375,
-0.03363037109375,
0.018768310546875,
-0.0269927978515625,
0.024444580078125,
-0.0022029876708984375,
0.02630615234375,
0.05224609375,
-0.010345458984375,
0.0106353759765625,
-0.045318603515625,
0.00563812255859375,
-0.00936126708984375,
-0.022857666015625,
-0.031524658203125,
0.033447265625,
0.080810546875,
0.01560211181640625,
0.060211181640625,
0.0093994140625,
0.017852783203125,
0.04888916015625,
0.01474761962890625,
0.0372314453125,
0.0042724609375,
0.045989990234375,
-0.007678985595703125,
0.004611968994140625,
0.033416748046875,
-0.0183563232421875,
-0.01305389404296875,
0.032196044921875,
0.0166015625,
-0.07421875,
0.0022869110107421875,
-0.00234222412109375,
0.007904052734375,
-0.007415771484375,
0.0224151611328125,
0.0007758140563964844,
0.031829833984375,
-0.0297088623046875,
-0.0292205810546875,
-0.0249481201171875,
-0.0245208740234375,
0.0028018951416015625,
-0.00936126708984375,
0.01190948486328125,
0.052886962890625,
-0.004795074462890625,
-0.0155792236328125,
-0.0445556640625,
-0.0020542144775390625,
-0.016815185546875,
0.006931304931640625,
0.0173492431640625,
-0.027435302734375,
0.0026035308837890625,
-0.006153106689453125,
0.01123046875,
-0.03204345703125,
0.0175018310546875,
0.0169525146484375,
-0.00351715087890625,
0.0152130126953125,
0.018707275390625,
-0.01043701171875,
-0.002960205078125,
0.000007092952728271484,
-0.0390625,
-0.0014972686767578125,
-0.044952392578125,
-0.0241851806640625,
0.021331787109375,
0.0219879150390625,
-0.0008840560913085938,
0.021636962890625,
-0.02740478515625,
-0.0102386474609375,
-0.061798095703125,
0.048004150390625,
-0.0374755859375,
-0.00905609130859375,
0.01593017578125,
0.01393890380859375,
0.0022830963134765625,
0.0013799667358398438,
-0.0234375,
-0.022918701171875,
-0.01715087890625,
-0.020111083984375,
-0.03192138671875,
0.0283660888671875,
-0.01580810546875,
-0.0433349609375,
0.08856201171875,
-0.001560211181640625,
0.044097900390625,
0.047637939453125,
0.0250244140625,
-0.033355712890625,
-0.0018186569213867188,
-0.021270751953125,
0.0640869140625,
-0.01261138916015625,
0.03472900390625,
-0.043304443359375,
-0.00988006591796875,
0.019683837890625,
0.04412841796875,
0.07830810546875,
0.0241241455078125,
-0.0941162109375,
-0.01812744140625,
0.062347412109375,
0.02679443359375,
0.01036834716796875,
0.06878662109375,
-0.0219268798828125,
0.047210693359375,
0.016143798828125,
-0.06121826171875,
0.0020580291748046875,
-0.0036106109619140625,
-0.05609130859375,
0.01763916015625,
0.007144927978515625,
0.004802703857421875,
-0.01177215576171875,
-0.04034423828125,
-0.03997802734375,
-0.0037250518798828125,
0.029876708984375,
-0.010498046875,
0.040618896484375,
0.0167999267578125,
0.06536865234375,
-0.072021484375,
-0.0038967132568359375,
-0.0304718017578125,
0.058746337890625,
0.01348114013671875,
0.0028591156005859375,
-0.0295257568359375,
0.002269744873046875,
0.04803466796875,
-0.0369873046875,
-0.0216064453125,
0.0297088623046875,
-0.0149383544921875,
0.021270751953125,
0.040985107421875,
0.0231781005859375,
-0.00583648681640625,
0.0169525146484375,
0.05426025390625,
0.039886474609375,
-0.0478515625,
-0.0418701171875,
0.0192108154296875,
0.0175933837890625,
0.00496673583984375,
0.0145111083984375,
0.03790283203125,
-0.0274810791015625,
0.02496337890625,
-0.0196380615234375,
-0.00003933906555175781,
-0.00824737548828125,
0.0543212890625,
-0.0185394287109375,
-0.06207275390625,
-0.007030487060546875,
0.0029277801513671875,
-0.06622314453125,
0.00733184814453125,
0.0305633544921875,
0.09930419921875,
0.032928466796875,
0.057098388671875,
-0.02825927734375,
-0.056793212890625,
0.00952911376953125,
-0.0029449462890625,
-0.051025390625,
0.013885498046875,
-0.028961181640625,
-0.0372314453125,
-0.01812744140625,
0.0447998046875,
0.053466796875,
0.02252197265625,
0.0238800048828125,
-0.02008056640625,
0.007419586181640625,
0.0239410400390625,
0.0247039794921875,
-0.0197906494140625,
0.029541015625,
-0.0298004150390625,
0.01546478271484375,
0.002841949462890625,
-0.00472259521484375,
-0.01451873779296875,
-0.0008282661437988281,
0.028594970703125,
0.0010251998901367188,
0.05096435546875,
-0.007720947265625,
-0.0176239013671875,
0.03790283203125,
-0.005611419677734375,
0.07977294921875,
0.024505615234375,
-0.023284912109375,
0.001354217529296875,
-0.00861358642578125,
-0.057830810546875,
0.0131683349609375,
0.036041259765625,
0.0008053779602050781,
-0.01476287841796875,
0.005161285400390625,
-0.01500701904296875,
0.001369476318359375,
0.004962921142578125,
0.004154205322265625,
0.0187225341796875,
0.00701904296875,
0.0031375885009765625,
-0.036712646484375,
-0.01148223876953125,
-0.013214111328125,
0.00669097900390625,
0.007549285888671875,
0.158447265625,
-0.05078125,
-0.0038738250732421875,
0.006771087646484375,
0.0318603515625,
-0.0298004150390625,
-0.0081939697265625,
0.03472900390625,
-0.0157318115234375,
-0.01220703125,
-0.0063629150390625,
-0.01230621337890625,
0.011932373046875,
0.0584716796875,
-0.02496337890625,
-0.0020771026611328125,
0.001857757568359375,
0.020660400390625,
-0.0308837890625,
0.023681640625,
-0.03955078125,
-0.044586181640625,
-0.051239013671875,
-0.022735595703125,
0.0125579833984375,
0.0149383544921875,
0.0145111083984375,
0.03753662109375,
0.004611968994140625,
-0.0301666259765625,
0.030029296875,
-0.04022216796875,
0.054779052734375,
0.03814697265625,
-0.0178985595703125,
-0.0123748779296875,
0.0174407958984375,
-0.01503753662109375,
0.00013875961303710938,
0.0027484893798828125,
0.035308837890625,
-0.0011320114135742188,
-0.0185699462890625,
-0.0258941650390625,
-0.032135009765625,
-0.01404571533203125,
-0.045928955078125,
-0.00507354736328125,
0.0004520416259765625,
-0.006359100341796875,
0.0012798309326171875,
-0.0015439987182617188,
-0.0139923095703125,
0.01172637939453125,
-0.0256805419921875,
-0.002170562744140625,
0.01983642578125,
-0.04925537109375,
-0.00916290283203125,
0.00614166259765625,
0.04327392578125,
0.00797271728515625,
-0.059906005859375,
0.0292816162109375,
-0.0301971435546875,
0.052734375,
-0.01324462890625,
-0.0160980224609375,
0.005706787109375,
0.0487060546875,
-0.0151824951171875,
0.008575439453125,
-0.03460693359375,
-0.0256805419921875,
-0.0247802734375,
0.01678466796875,
0.043212890625,
-0.031402587890625,
-0.019439697265625,
-0.004547119140625,
-0.01404571533203125,
0.053863525390625,
-0.02935791015625,
-0.03564453125,
-0.01267242431640625,
0.01532745361328125,
0.0183258056640625,
-0.037872314453125,
-0.01000213623046875,
-0.05487060546875,
0.00330352783203125,
-0.01702880859375,
-0.01409912109375,
-0.003307342529296875,
-0.035919189453125,
-0.0209503173828125,
0.0599365234375,
0.00298309326171875,
-0.01061248779296875,
-0.07489013671875,
-0.01258087158203125,
-0.006103515625,
0.064208984375,
-0.002529144287109375,
-0.06158447265625,
-0.06298828125,
0.03424072265625,
-0.011474609375,
0.052215576171875,
-0.0133056640625,
-0.00445556640625,
-0.0099029541015625,
0.0212860107421875,
0.0291290283203125,
-0.0069732666015625,
0.006160736083984375,
-0.006557464599609375,
0.03460693359375,
0.039642333984375,
-0.031005859375,
0.012298583984375,
-0.007801055908203125,
-0.001285552978515625,
0.022064208984375,
-0.07122802734375,
-0.01419830322265625,
-0.04119873046875,
0.06268310546875,
-0.035491943359375,
0.00702667236328125,
-0.00009292364120483398,
0.00316619873046875,
-0.03363037109375,
-0.042449951171875,
-0.0364990234375,
0.0372314453125,
-0.08697509765625,
-0.03582763671875,
0.0171661376953125,
0.02001953125,
0.01898193359375,
-0.0195159912109375,
0.01476287841796875,
-0.01352691650390625,
0.04376220703125,
-0.01178741455078125,
-0.0031566619873046875,
0.03497314453125,
0.0011920928955078125,
-0.0135040283203125,
-0.01111602783203125,
-0.0146026611328125,
-0.004337310791015625,
-0.0219268798828125,
-0.0247344970703125,
-0.00390625,
0.040924072265625,
-0.01265716552734375,
-0.01446533203125,
0.02484130859375,
0.00698089599609375,
0.01244354248046875,
-0.0013980865478515625,
-0.0279541015625,
-0.0154266357421875,
0.01279449462890625,
-0.0467529296875,
-0.0333251953125,
0.0272979736328125,
0.0041351318359375,
0.1048583984375,
0.003696441650390625,
0.061279296875,
0.0239410400390625,
0.037750244140625,
-0.00827789306640625,
-0.00740814208984375,
0.006404876708984375,
-0.04022216796875,
0.005939483642578125,
-0.00574493408203125,
-0.04315185546875,
-0.0222930908203125,
0.004146575927734375,
-0.047576904296875,
-0.0243072509765625,
0.020599365234375
] |
7714c0b37fc114cc826e54202ed733f41049d925 | Wordpress Stackexchange
Q: Counting number of posts with Category B in Category A I'm currently building my own backlog tracker and have gotten to a point where I just have no idea how I'm going to do this.
I have multiple status categories (for example; beaten and completed) and categories for the consoles (for example PS4 and Nintendo Switch). Now I want to display how many games(posts) I have beaten (Category A) for the Nintendo Switch (Category B)
For Example; I have 66 games, 34 from those are from the Nintendo Switch.
From those 34 Switch games, I have actually beaten 24. I want to display this "24".
can anyone give me an idea of where to go and how to fix this problem?
A: Make use of the WP_Query class, namely the tax_query and fields parameters. Get the count from the $found_posts property. Please note, this is exemplary code.
$query = new WP_Query( [
'post_type' => 'games',
'tax_query' = [
'relation' => 'AND',
[
'taxonomy' => 'game_status',
'field' => 'slug',
'terms' => [ 'beaten' ],
],
[
'taxonomy' => 'console',
'field' => 'slug',
'terms' => [ 'switch' ],
]
],
'fields' => 'ids',
] );
$count = $query->found_posts;
| Q: Counting number of posts with Category B in Category A I'm currently building my own backlog tracker and have gotten to a point where I just have no idea how I'm going to do this.
I have multiple status categories (for example; beaten and completed) and categories for the consoles (for example PS4 and Nintendo Switch). Now I want to display how many games(posts) I have beaten (Category A) for the Nintendo Switch (Category B)
For Example; I have 66 games, 34 from those are from the Nintendo Switch.
From those 34 Switch games, I have actually beaten 24. I want to display this "24".
can anyone give me an idea of where to go and how to fix this problem?
A: Make use of the WP_Query class, namely the tax_query and fields parameters. Get the count from the $found_posts property. Please note, this is exemplary code.
$query = new WP_Query( [
'post_type' => 'games',
'tax_query' = [
'relation' => 'AND',
[
'taxonomy' => 'game_status',
'field' => 'slug',
'terms' => [ 'beaten' ],
],
[
'taxonomy' => 'console',
'field' => 'slug',
'terms' => [ 'switch' ],
]
],
'fields' => 'ids',
] );
$count = $query->found_posts;
| wordpress | {
"language": "en",
"length": 197,
"provenance": "stackexchange_00019.jsonl.gz:494713",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/335132"
} | [
0.0594482421875,
0.0218048095703125,
0.023956298828125,
0.00576019287109375,
0.030181884765625,
-0.0278472900390625,
0.059112548828125,
-0.05218505859375,
0.0065460205078125,
-0.002292633056640625,
-0.039642333984375,
0.01265716552734375,
-0.058074951171875,
-0.029266357421875,
0.0162200927734375,
-0.042816162109375,
0.004486083984375,
-0.03253173828125,
0.002460479736328125,
-0.0067291259765625,
-0.004718780517578125,
-0.0040435791015625,
0.016204833984375,
-0.0176544189453125,
0.00583648681640625,
-0.0217132568359375,
0.0182037353515625,
-0.0265960693359375,
-0.0003502368927001953,
-0.0166778564453125,
0.006744384765625,
0.01291656494140625,
0.04193115234375,
-0.043548583984375,
0.018951416015625,
0.036102294921875,
0.06268310546875,
-0.036712646484375,
-0.01403045654296875,
0.0278472900390625,
0.013214111328125,
-0.01166534423828125,
0.02679443359375,
-0.04620361328125,
0.0221405029296875,
-0.0266571044921875,
0.048095703125,
-0.03485107421875,
0.0638427734375,
-0.0013408660888671875,
-0.0260467529296875,
0.046417236328125,
-0.042816162109375,
0.0305938720703125,
-0.003093719482421875,
0.00884246826171875,
0.044097900390625,
-0.005573272705078125,
0.042633056640625,
-0.03094482421875,
-0.0418701171875,
0.01154327392578125,
0.027313232421875,
-0.0158538818359375,
-0.009521484375,
0.01407623291015625,
0.040069580078125,
0.024810791015625,
0.00605010986328125,
-0.03790283203125,
-0.0222320556640625,
-0.0145416259765625,
0.0002052783966064453,
0.0263824462890625,
-0.007648468017578125,
-0.057342529296875,
0.0173492431640625,
-0.021484375,
-0.00022459030151367188,
0.04046630859375,
-0.022430419921875,
-0.0298004150390625,
-0.044952392578125,
0.01788330078125,
-0.0002263784408569336,
0.05706787109375,
-0.0142822265625,
-0.00635528564453125,
-0.0181884765625,
-0.0070037841796875,
-0.0005345344543457031,
-0.047332763671875,
-0.0250396728515625,
0.0276031494140625,
0.0169830322265625,
-0.032012939453125,
0.0257568359375,
0.0175323486328125,
-0.00023996829986572266,
-0.041412353515625,
-0.005191802978515625,
-0.0235137939453125,
-0.09521484375,
0.02081298828125,
0.050933837890625,
0.042724609375,
-0.037017822265625,
-0.0489501953125,
0.06134033203125,
0.0252685546875,
0.0030059814453125,
0.05908203125,
-0.019256591796875,
-0.0007953643798828125,
-0.04730224609375,
-0.01678466796875,
-0.043487548828125,
-0.02471923828125,
-0.0178680419921875,
-0.066162109375,
-0.0234222412109375,
-0.003467559814453125,
-0.021026611328125,
0.0377197265625,
0.01123809814453125,
-0.00030541419982910156,
-0.0022678375244140625,
0.021240234375,
0.02093505859375,
0.055694580078125,
-0.0350341796875,
0.01119232177734375,
0.018035888671875,
-0.0328369140625,
-0.027618408203125,
-0.0238800048828125,
0.00669097900390625,
-0.024993896484375,
-0.0193328857421875,
0.0195770263671875,
-0.0061492919921875,
-0.03155517578125,
0.028472900390625,
-0.0182647705078125,
0.05438232421875,
-0.006435394287109375,
0.0076446533203125,
0.018218994140625,
0.0309906005859375,
0.01305389404296875,
0.061187744140625,
-0.03302001953125,
0.03216552734375,
0.018463134765625,
-0.08331298828125,
0.01800537109375,
-0.04681396484375,
0.004093170166015625,
-0.047576904296875,
-0.0117034912109375,
0.033935546875,
0.021087646484375,
0.01409912109375,
-0.00406646728515625,
-0.0276336669921875,
-0.02447509765625,
-0.019134521484375,
-0.00738525390625,
0.0286407470703125,
-0.0207061767578125,
0.0012140274047851562,
0.003063201904296875,
0.035308837890625,
-0.00836944580078125,
0.00049591064453125,
0.017120361328125,
0.005489349365234375,
0.00027680397033691406,
0.01430511474609375,
0.034332275390625,
-0.0171051025390625,
-0.034027099609375,
0.0196990966796875,
-0.0079803466796875,
-0.00505828857421875,
0.006557464599609375,
0.0045928955078125,
0.0008387565612792969,
0.0036678314208984375,
0.0198974609375,
-0.01468658447265625,
0.0296783447265625,
-0.00299835205078125,
0.022247314453125,
-0.0135345458984375,
-0.03387451171875,
-0.00901031494140625,
-0.008026123046875,
0.0007672309875488281,
0.0068206787109375,
-0.0023403167724609375,
0.0024509429931640625,
-0.010040283203125,
0.0256805419921875,
-0.040435791015625,
0.0237274169921875,
-0.0230712890625,
0.0176544189453125,
-0.0687255859375,
0.0188446044921875,
0.06201171875,
0.0275726318359375,
-0.0751953125,
0.0141143798828125,
0.0235443115234375,
-0.0246429443359375,
0.0008072853088378906,
-0.0182952880859375,
-0.01293182373046875,
-0.045867919921875,
-0.0255889892578125,
-0.003753662109375,
-0.0235748291015625,
0.04766845703125,
0.058929443359375,
-0.026763916015625,
0.0185699462890625,
-0.031982421875,
0.052459716796875,
0.0194549560546875,
-0.037445068359375,
-0.0019588470458984375,
0.07550048828125,
0.04034423828125,
-0.0413818359375,
0.0165252685546875,
0.0268402099609375,
-0.016082763671875,
-0.0238800048828125,
0.04248046875,
0.03228759765625,
-0.0160675048828125,
-0.0292816162109375,
-0.0276947021484375,
-0.0246429443359375,
-0.076904296875,
-0.006587982177734375,
-0.01548004150390625,
0.0062103271484375,
0.044769287109375,
-0.0171966552734375,
0.0115966796875,
0.03955078125,
-0.0005521774291992188,
0.0034942626953125,
0.05389404296875,
0.00806427001953125,
0.00855255126953125,
-0.0278778076171875,
0.0196685791015625,
0.01461029052734375,
-0.0214996337890625,
-0.04071044921875,
-0.006175994873046875,
0.005619049072265625,
-0.004482269287109375,
-0.00684356689453125,
-0.01151275634765625,
-0.0289459228515625,
0.01210784912109375,
0.021636962890625,
-0.0228424072265625,
-0.00859832763671875,
-0.0023517608642578125,
-0.038604736328125,
0.0692138671875,
-0.052459716796875,
0.015625,
0.0259857177734375,
0.00555419921875,
-0.0223388671875,
0.034942626953125,
-0.048065185546875,
-0.02178955078125,
-0.053497314453125,
-0.06378173828125,
-0.000621795654296875,
0.01276397705078125,
-0.0191650390625,
0.004634857177734375,
0.00547027587890625,
0.0516357421875,
-0.0182342529296875,
0.0350341796875,
-0.03692626953125,
0.0089569091796875,
-0.0029582977294921875,
-0.040313720703125,
0.0296173095703125,
-0.0238189697265625,
0.04473876953125,
0.056365966796875,
-0.002574920654296875,
0.006816864013671875,
0.0007567405700683594,
0.0301513671875,
0.0192718505859375,
0.01100921630859375,
-0.003307342529296875,
-0.01085662841796875,
-0.029815673828125,
0.002193450927734375,
0.05029296875,
0.04541015625,
0.019317626953125,
-0.0257415771484375,
0.0033779144287109375,
0.0229644775390625,
-0.11468505859375,
-0.1331787109375,
-0.0168914794921875,
-0.054656982421875,
-0.0167999267578125,
0.0316162109375,
-0.03936767578125,
0.0081329345703125,
0.06280517578125,
0.00730133056640625,
-0.032867431640625,
-0.0010433197021484375,
-0.0258026123046875,
-0.0382080078125,
-0.038482666015625,
-0.0072784423828125,
0.007904052734375,
-0.004940032958984375,
0.02081298828125,
0.053558349609375,
0.01335906982421875,
-0.06500244140625,
-0.0005698204040527344,
0.05389404296875,
-0.0274658203125,
0.0081787109375,
-0.0269622802734375,
0.006412506103515625,
-0.040008544921875,
0.006153106689453125,
-0.029876708984375,
0.0025653839111328125,
0.00827789306640625,
-0.00325775146484375,
-0.003681182861328125,
0.00356292724609375,
0.032867431640625,
-0.0191192626953125,
-0.0218048095703125,
0.0616455078125,
0.0433349609375,
0.004638671875,
-0.0128631591796875,
-0.007190704345703125,
-0.0100250244140625,
-0.0055084228515625,
-0.0116424560546875,
0.001964569091796875,
-0.01261138916015625,
0.0127105712890625,
0.01503753662109375,
0.025390625,
-0.0278167724609375,
-0.02093505859375,
0.0516357421875,
0.0177764892578125,
0.034271240234375,
0.01092529296875,
-0.0288238525390625,
-0.02301025390625,
-0.004215240478515625,
-0.032501220703125,
0.0269622802734375,
-0.01175689697265625,
0.05560302734375,
-0.01007843017578125,
0.003082275390625,
0.034423828125,
-0.032196044921875,
-0.00897216796875,
-0.03961181640625,
0.005939483642578125,
-0.033721923828125,
0.0282135009765625,
-0.00931549072265625,
-0.0413818359375,
-0.0273590087890625,
0.000576019287109375,
0.0066680908203125,
-0.00177764892578125,
0.02752685546875,
-0.006103515625,
-0.0222320556640625,
0.00021648406982421875,
0.00048804283142089844,
-0.025238037109375,
-0.037261962890625,
0.017242431640625,
-0.027923583984375,
0.005340576171875,
0.034210205078125,
-0.004241943359375,
0.0088348388671875,
-0.03741455078125,
-0.0228729248046875,
-0.0142059326171875,
-0.0211944580078125,
-0.02435302734375,
-0.010223388671875,
-0.01837158203125,
0.028900146484375,
0.005733489990234375,
-0.014434814453125,
-0.005367279052734375,
0.036834716796875,
0.059478759765625,
0.0186614990234375,
0.027435302734375,
-0.00594329833984375,
0.0032215118408203125,
0.005893707275390625,
-0.01284027099609375,
0.007511138916015625,
-0.0204315185546875,
-0.005825042724609375,
-0.0175628662109375,
-0.0028533935546875,
0.0352783203125,
-0.04248046875,
0.013092041015625,
-0.044769287109375,
-0.0086212158203125,
-0.0237579345703125,
-0.034271240234375,
-0.0029754638671875,
-0.0023555755615234375,
-0.025115966796875,
0.00673675537109375,
-0.015716552734375,
-0.00775146484375,
0.044647216796875,
0.031890869140625,
-0.027374267578125,
0.0076751708984375,
0.04193115234375,
0.00696563720703125,
-0.033477783203125,
-0.06378173828125,
-0.0128631591796875,
0.0167694091796875,
0.004535675048828125,
-0.00891876220703125,
-0.0186004638671875,
-0.0204620361328125,
0.006069183349609375,
-0.01369476318359375,
-0.029388427734375,
0.0121307373046875,
-0.0160675048828125,
-0.0106048583984375,
-0.04522705078125,
0.0021305084228515625,
-0.03387451171875,
0.0584716796875,
0.0220489501953125,
-0.036865234375,
0.0244903564453125,
-0.018035888671875,
0.02667236328125,
-0.028289794921875,
-0.0014925003051757812,
-0.03033447265625,
0.003482818603515625,
0.0098419189453125,
-0.0015230178833007812,
0.028778076171875,
0.01318359375,
0.00372314453125,
-0.01398468017578125,
0.01384735107421875,
-0.0219879150390625,
0.0016756057739257812,
0.0021419525146484375,
-0.0018701553344726562,
0.00039696693420410156,
0.04296875,
-0.03704833984375,
-0.0161895751953125,
0.01116943359375,
-0.0235748291015625,
-0.046112060546875,
-0.06768798828125,
0.00882720947265625,
-0.0018444061279296875,
-0.045196533203125,
0.04669189453125,
-0.0125885009765625,
0.032501220703125,
0.0134124755859375,
-0.0133209228515625,
0.01448822021484375,
0.0023651123046875,
-0.0195770263671875,
-0.017578125,
0.0084228515625,
0.0237274169921875,
-0.01776123046875,
0.03155517578125,
0.016357421875,
0.0149383544921875,
0.0249481201171875,
-0.005931854248046875,
0.05450439453125,
-0.01158905029296875,
0.047332763671875,
0.01087188720703125,
-0.02801513671875,
0.00832366943359375,
0.031524658203125,
-0.0322265625,
-0.0225677490234375,
-0.01229095458984375,
0.012420654296875,
0.0023193359375,
0.008575439453125,
0.00980377197265625,
0.012298583984375,
0.0172882080078125,
-0.0169677734375,
-0.036956787109375,
-0.017486572265625,
0.0506591796875,
-0.036163330078125,
-0.0377197265625,
-0.00133514404296875,
0.055877685546875,
-0.00423431396484375,
-0.0036411285400390625,
-0.0207061767578125,
0.03936767578125,
-0.043304443359375,
0.02978515625,
-0.01251983642578125,
-0.0173187255859375,
-0.053314208984375,
-0.045806884765625,
0.0079345703125,
0.023895263671875,
-0.0049896240234375,
0.0097198486328125,
-0.025360107421875,
-0.03399658203125,
-0.0174713134765625,
0.0164794921875,
-0.0226593017578125,
0.004306793212890625,
-0.0233917236328125,
-0.0013599395751953125,
0.0472412109375,
0.0347900390625,
-0.029388427734375,
0.0024394989013671875,
-0.040008544921875,
-0.02716064453125,
0.06353759765625,
-0.00353240966796875,
-0.00559234619140625,
-0.0321044921875,
-0.0224761962890625,
0.02032470703125,
0.0008034706115722656,
-0.0012140274047851562,
-0.001705169677734375,
0.008270263671875,
0.01052093505859375,
0.0196075439453125,
-0.007442474365234375,
0.0555419921875,
0.005023956298828125,
0.026336669921875,
0.023284912109375,
0.01617431640625,
-0.038818359375,
-0.0157623291015625,
-0.01526641845703125,
-0.0758056640625,
0.0241241455078125,
-0.0218963623046875,
0.038787841796875,
0.0088653564453125,
0.002475738525390625,
0.0229339599609375,
0.031951904296875,
-0.011260986328125,
0.00696563720703125,
-0.0089263916015625,
-0.03192138671875,
-0.0037288665771484375,
0.03167724609375,
0.0167083740234375,
-0.005527496337890625,
-0.028106689453125,
-0.0225830078125,
0.01416778564453125,
-0.04400634765625,
0.01381683349609375,
-0.0618896484375,
0.00388336181640625,
-0.054718017578125,
0.0648193359375,
0.07275390625,
0.006626129150390625,
0.0171966552734375,
0.0249481201171875,
-0.0149993896484375,
-0.0279388427734375,
-0.004024505615234375,
0.0357666015625,
0.0219268798828125,
0.0775146484375,
-0.0006685256958007812,
-0.01232147216796875,
0.043609619140625,
-0.03436279296875,
-0.032440185546875,
-0.01776123046875,
-0.0007977485656738281,
0.0288543701171875,
-0.022186279296875,
-0.006305694580078125,
-0.02667236328125,
-0.0135040283203125,
-0.0029926300048828125,
0.007480621337890625,
-0.039306640625,
0.0035457611083984375,
0.01500701904296875,
-0.0361328125,
-0.0201568603515625,
0.004558563232421875,
-0.0097198486328125,
0.01331329345703125,
0.00738525390625,
0.0012121200561523438,
-0.040618896484375,
0.0026378631591796875,
0.0169677734375,
-0.01052093505859375,
-0.01016998291015625,
-0.029937744140625,
0.0240936279296875,
-0.017791748046875,
-0.052886962890625,
0.01751708984375,
-0.029449462890625,
0.0133819580078125,
-0.0233306884765625,
-0.0047149658203125,
0.04864501953125,
0.045196533203125,
-0.004421234130859375,
-0.008453369140625,
0.0362548828125,
-0.0219573974609375,
-0.01421356201171875,
0.036346435546875,
0.01885986328125,
0.00630950927734375,
-0.044952392578125,
0.001407623291015625,
-0.069580078125,
0.04852294921875,
-0.0229339599609375,
-0.0011873245239257812,
0.0772705078125,
-0.052978515625,
0.0018682479858398438,
0.025970458984375,
0.07666015625,
-0.001495361328125,
-0.010894775390625,
0.02728271484375,
-0.05743408203125,
-0.03094482421875,
0.010040283203125,
-0.01154327392578125,
-0.0244293212890625,
-0.0110931396484375,
-0.0244293212890625,
0.045562744140625,
-0.0218963623046875,
0.004001617431640625,
0.03948974609375,
0.0262298583984375,
-0.007476806640625,
0.00948333740234375,
-0.041015625,
0.045806884765625,
0.0252227783203125,
0.034820556640625,
-0.038818359375,
-0.0153961181640625,
0.010406494140625,
0.030731201171875,
0.0623779296875,
-0.00553131103515625,
-0.00164794921875,
-0.00333404541015625,
0.021270751953125,
0.00513458251953125,
-0.03582763671875,
0.030517578125,
0.0245513916015625,
0.01398468017578125,
0.034881591796875,
-0.0168304443359375,
0.037078857421875,
-0.044036865234375,
0.00799560546875,
0.0162506103515625,
0.01593017578125,
0.0167388916015625,
0.00945281982421875,
0.04229736328125,
-0.034393310546875,
-0.00836944580078125,
0.03680419921875,
-0.001644134521484375,
0.019622802734375,
0.04193115234375,
0.0400390625,
-0.06768798828125,
-0.00537109375,
-0.04180908203125,
0.057281494140625,
-0.01800537109375,
0.060546875,
0.01983642578125,
0.0214385986328125,
0.07818603515625,
-0.042755126953125,
0.01036834716796875,
0.0081939697265625,
-0.03662109375,
0.0809326171875,
0.04534912109375,
0.06072998046875,
-0.015289306640625,
-0.0244598388671875,
0.01149749755859375,
0.0897216796875,
-0.040283203125,
-0.0650634765625,
0.0200347900390625,
0.045928955078125,
0.0257720947265625,
0.0401611328125,
0.049346923828125,
0.06573486328125,
0.11322021484375,
-0.040252685546875,
-0.0268096923828125,
0.01331329345703125,
0.0015249252319335938,
0.0012693405151367188,
-0.0165557861328125,
0.041778564453125,
-0.0285797119140625,
-0.03668212890625,
-0.0038738250732421875,
0.041473388671875,
0.07891845703125,
0.00118255615234375,
0.04351806640625,
-0.04974365234375,
-0.036041259765625,
-0.0013246536254882812,
0.0164337158203125,
0.0216217041015625,
-0.005527496337890625,
-0.0016508102416992188,
-0.003734588623046875,
0.01041412353515625,
0.006793975830078125,
0.023345947265625,
0.0074310302734375,
0.04095458984375,
0.06109619140625,
0.0088348388671875,
-0.004405975341796875,
0.03302001953125,
-0.0151214599609375,
-0.031707763671875,
-0.019287109375,
0.00734710693359375,
0.035736083984375,
0.007312774658203125,
0.0133209228515625,
0.038360595703125,
0.032257080078125,
0.03424072265625,
-0.040740966796875,
0.026580810546875,
-0.053802490234375,
0.0086822509765625,
0.00948333740234375,
0.0233917236328125,
0.043701171875,
-0.08197021484375,
0.0024814605712890625,
-0.005496978759765625,
-0.06585693359375,
0.030853271484375,
0.03814697265625,
-0.0282440185546875,
0.0100860595703125,
0.027923583984375,
-0.055877685546875,
-0.004047393798828125,
0.03173828125,
0.037689208984375,
-0.0017261505126953125,
-0.01849365234375,
0.002872467041015625,
-0.0300140380859375,
-0.04827880859375,
0.03057861328125,
0.04888916015625,
0.016937255859375,
-0.0108184814453125,
0.0109710693359375,
0.024322509765625,
-0.046783447265625,
0.0148162841796875,
-0.0362548828125,
-0.006587982177734375,
-0.0002396106719970703,
0.037353515625,
0.002986907958984375,
-0.018951416015625,
-0.04156494140625,
-0.0017805099487304688,
0.04278564453125,
-0.0528564453125,
0.0355224609375,
0.00244903564453125,
-0.013031005859375,
-0.048431396484375,
-0.0036029815673828125,
-0.034332275390625,
0.0228729248046875,
-0.031982421875,
-0.07073974609375,
0.057403564453125,
0.0034923553466796875,
0.030120849609375,
0.00862884521484375,
0.0013751983642578125,
-0.006809234619140625,
0.02740478515625,
0.0100860595703125,
0.044708251953125,
0.027252197265625,
-0.05645751953125,
0.03533935546875,
0.0574951171875,
-0.00318145751953125,
0.00618743896484375,
0.03497314453125,
-0.0015163421630859375,
0.0255126953125,
-0.03369140625,
0.026031494140625,
0.051239013671875,
0.06964111328125,
-0.0087890625,
0.0273284912109375,
0.0234832763671875,
0.0006313323974609375,
0.038360595703125,
0.0364990234375,
-0.0054473876953125,
-0.0153656005859375,
0.00609588623046875,
-0.0009388923645019531,
0.02752685546875,
0.01535797119140625,
0.0296478271484375,
-0.020904541015625,
0.01052093505859375,
-0.0036067962646484375,
-0.004306793212890625,
0.0212249755859375,
-0.018768310546875,
-0.00897979736328125,
-0.01898193359375,
-0.02886962890625,
0.0272369384765625,
0.0203094482421875,
-0.033599853515625,
0.040863037109375,
-0.03680419921875,
-0.059783935546875,
-0.017120361328125,
-0.002368927001953125,
0.0095977783203125,
-0.042083740234375,
-0.0001430511474609375,
-0.01166534423828125,
0.0240631103515625,
0.016876220703125,
0.057342529296875,
-0.00738525390625,
0.0191192626953125,
0.00013971328735351562,
-0.041900634765625,
-0.066162109375,
0.02618408203125,
-0.06793212890625,
-0.006412506103515625,
-0.00848388671875,
0.006744384765625,
0.0007171630859375,
-0.03460693359375,
-0.062255859375,
0.036102294921875,
-0.01812744140625,
-0.0304718017578125,
-0.097900390625,
0.001811981201171875,
0.0242462158203125,
0.0151519775390625,
-0.041107177734375,
0.0014629364013671875,
-0.0662841796875,
0.0167236328125,
0.010101318359375,
-0.004978179931640625,
0.02935791015625,
-0.0191192626953125,
-0.1187744140625,
-0.0163421630859375,
-0.03363037109375,
0.035064697265625,
0.0216217041015625,
-0.01105499267578125,
0.01270294189453125,
0.01488494873046875,
-0.055145263671875,
0.00933074951171875,
-0.0223846435546875,
0.024627685546875,
0.0260772705078125,
-0.0423583984375,
-0.06787109375,
-0.058441162109375,
0.040496826171875,
0.0206451416015625,
0.02459716796875,
0.00582122802734375,
-0.0721435546875,
-0.055084228515625,
0.0121002197265625,
-0.04400634765625,
0.0011157989501953125,
-0.0867919921875,
-0.007659912109375,
-0.0141448974609375,
0.028564453125,
0.0098114013671875,
-0.031158447265625,
0.016510009765625,
-0.046722412109375,
-0.016998291015625,
0.00041556358337402344,
-0.0087127685546875,
-0.0113067626953125,
-0.038909912109375,
-0.0014543533325195312,
-0.04248046875,
-0.014556884765625,
0.01549530029296875,
-0.07293701171875,
-0.0026988983154296875,
-0.04888916015625,
0.0235595703125,
-0.005340576171875,
0.035308837890625,
-0.0038356781005859375,
-0.0006117820739746094,
-0.034149169921875,
0.043914794921875,
-0.022430419921875,
0.00724029541015625,
0.0005521774291992188,
-0.0042877197265625,
-0.020782470703125,
0.0178680419921875,
0.00821685791015625,
0.0997314453125,
0.011505126953125,
0.0184478759765625,
-0.0162811279296875,
0.025604248046875,
0.0172882080078125,
-0.017852783203125,
0.032562255859375,
0.0020771026611328125,
-0.00910186767578125,
0.00634765625,
-0.032562255859375,
-0.055145263671875,
0.021026611328125,
-0.00958251953125,
0.00984954833984375,
0.0228271484375
] |
5278328ace1645b168de14e66414cfdcb6e6dd8b | Wordpress Stackexchange
Q: How can I make my custom shortcode work in a Custom HTML Widget? I created a plugin and tried to use its shortcode in a Custom HTML Widget, but for some reason it's outputting [my_shortcode_name] instead of executing the shortcode.
The shortcode works fine if I place it on the page or in a Text Widget.
How can I make it work in a Custom HTML Widget?
A: I was able to make it work by adding these two lines to my theme's functions.php file:
add_filter( 'widget_text', 'shortcode_unautop');
add_filter( 'widget_text', 'do_shortcode');
The Custom HTML Widget now correctly executes the shortcode function and outputs the result.
| Q: How can I make my custom shortcode work in a Custom HTML Widget? I created a plugin and tried to use its shortcode in a Custom HTML Widget, but for some reason it's outputting [my_shortcode_name] instead of executing the shortcode.
The shortcode works fine if I place it on the page or in a Text Widget.
How can I make it work in a Custom HTML Widget?
A: I was able to make it work by adding these two lines to my theme's functions.php file:
add_filter( 'widget_text', 'shortcode_unautop');
add_filter( 'widget_text', 'do_shortcode');
The Custom HTML Widget now correctly executes the shortcode function and outputs the result.
| wordpress | {
"language": "en",
"length": 106,
"provenance": "stackexchange_00019.jsonl.gz:494834",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/336530"
} | [
0.03900146484375,
-0.0241241455078125,
0.0086669921875,
-0.0017690658569335938,
-0.037841796875,
-0.0214080810546875,
0.01183319091796875,
-0.03302001953125,
-0.0166778564453125,
0.04559326171875,
-0.0017251968383789062,
-0.013702392578125,
-0.01342010498046875,
-0.01751708984375,
-0.030029296875,
-0.031646728515625,
0.019287109375,
0.0352783203125,
0.029266357421875,
-0.02447509765625,
-0.00087738037109375,
0.000016689300537109375,
-0.0304412841796875,
0.052825927734375,
0.0152740478515625,
-0.04730224609375,
0.084228515625,
0.004116058349609375,
-0.0025691986083984375,
-0.0271759033203125,
0.0251922607421875,
0.019866943359375,
0.0513916015625,
0.038970947265625,
-0.0823974609375,
0.045257568359375,
-0.009735107421875,
0.00699615478515625,
-0.025146484375,
0.041900634765625,
0.0341796875,
-0.03033447265625,
0.056884765625,
-0.0181732177734375,
0.01245880126953125,
-0.01549530029296875,
0.0509033203125,
-0.03546142578125,
-0.01934814453125,
-0.0229339599609375,
0.0258636474609375,
0.0221710205078125,
0.046112060546875,
-0.0672607421875,
-0.007663726806640625,
-0.00963592529296875,
-0.035430908203125,
-0.01129150390625,
0.03167724609375,
0.00824737548828125,
-0.0160675048828125,
-0.031494140625,
0.02301025390625,
-0.00962066650390625,
0.035919189453125,
-0.0171966552734375,
0.006885528564453125,
0.0280914306640625,
0.0181121826171875,
0.048614501953125,
0.024139404296875,
-0.01056671142578125,
0.00439453125,
-0.00434112548828125,
-0.0108489990234375,
-0.02423095703125,
0.0294342041015625,
-0.01438140869140625,
0.0016117095947265625,
0.00909423828125,
0.045684814453125,
-0.004840850830078125,
-0.0247802734375,
0.0015621185302734375,
-0.002437591552734375,
0.01140594482421875,
-0.0022754669189453125,
-0.023834228515625,
0.0282745361328125,
0.0160675048828125,
-0.0015306472778320312,
0.0222930908203125,
0.009185791015625,
0.0196685791015625,
-0.00011348724365234375,
-0.01033782958984375,
-0.0061492919921875,
0.043426513671875,
-0.01861572265625,
0.054534912109375,
-0.0011816024780273438,
-0.039764404296875,
0.101318359375,
-0.076416015625,
-0.0034008026123046875,
0.02972412109375,
0.01464080810546875,
0.032745361328125,
0.050323486328125,
0.01403045654296875,
0.01322174072265625,
0.016204833984375,
-0.0124053955078125,
-0.023529052734375,
-0.005603790283203125,
0.01308441162109375,
-0.032257080078125,
0.0086517333984375,
0.0083465576171875,
0.00223541259765625,
0.0164031982421875,
0.033538818359375,
0.028900146484375,
-0.0209808349609375,
-0.0400390625,
-0.0221710205078125,
-0.006275177001953125,
-0.07012939453125,
0.05712890625,
-0.045135498046875,
-0.03839111328125,
0.03546142578125,
0.061737060546875,
0.0287017822265625,
0.024444580078125,
0.006290435791015625,
0.032135009765625,
-0.0208892822265625,
0.001163482666015625,
0.0155181884765625,
-0.00302886962890625,
-0.0189208984375,
-0.0176239013671875,
-0.01342010498046875,
-0.00649261474609375,
0.0265655517578125,
0.0200653076171875,
0.0125274658203125,
-0.024871826171875,
-0.078125,
0.0469970703125,
-0.036285400390625,
0.00717926025390625,
0.025543212890625,
0.06524658203125,
-0.0230255126953125,
0.06005859375,
-0.043365478515625,
0.0243377685546875,
-0.016571044921875,
0.016510009765625,
-0.004985809326171875,
-0.0137939453125,
-0.047607421875,
-0.059417724609375,
-0.010101318359375,
-0.02691650390625,
-0.000885009765625,
0.007175445556640625,
0.0208587646484375,
-0.0233001708984375,
0.00803375244140625,
-0.0298919677734375,
0.01251983642578125,
0.001972198486328125,
0.01538848876953125,
-0.0489501953125,
0.00826263427734375,
0.050079345703125,
-0.0225982666015625,
-0.0250091552734375,
-0.041412353515625,
0.048187255859375,
0.00829315185546875,
-0.07733154296875,
0.011962890625,
0.03326416015625,
0.11004638671875,
-0.0013628005981445312,
0.038970947265625,
0.0311431884765625,
-0.00251007080078125,
0.00966644287109375,
-0.00589752197265625,
0.03717041015625,
-0.0247344970703125,
-0.0472412109375,
-0.03497314453125,
-0.0014095306396484375,
0.0036182403564453125,
0.0115203857421875,
-0.036285400390625,
0.03558349609375,
-0.03271484375,
-0.02862548828125,
-0.011199951171875,
-0.035064697265625,
0.0307769775390625,
0.03143310546875,
-0.03765869140625,
0.0014142990112304688,
-0.02349853515625,
-0.006984710693359375,
-0.0024852752685546875,
-0.06243896484375,
0.01485443115234375,
-0.010589599609375,
0.062286376953125,
0.0185089111328125,
0.019134521484375,
0.044952392578125,
-0.0648193359375,
0.030029296875,
0.03802490234375,
0.0171051025390625,
0.0105438232421875,
-0.0341796875,
-0.0205078125,
-0.043182373046875,
0.0203094482421875,
-0.099365234375,
0.051910400390625,
-0.016937255859375,
-0.0026493072509765625,
-0.040435791015625,
-0.026763916015625,
-0.036865234375,
-0.0007414817810058594,
0.0089874267578125,
0.040679931640625,
0.04345703125,
0.0304718017578125,
0.004688262939453125,
-0.00428009033203125,
0.04486083984375,
-0.046875,
0.00623321533203125,
-0.0018129348754882812,
0.0204925537109375,
0.025787353515625,
-0.0140533447265625,
-0.01412200927734375,
0.0179901123046875,
-0.08453369140625,
-0.00030541419982910156,
0.04400634765625,
-0.01055145263671875,
0.005443572998046875,
0.004413604736328125,
-0.00940704345703125,
0.006500244140625,
-0.01410675048828125,
-0.0133819580078125,
-0.015716552734375,
0.037139892578125,
0.026580810546875,
0.039306640625,
0.02801513671875,
-0.0389404296875,
0.034210205078125,
0.00258636474609375,
-0.031585693359375,
-0.0168914794921875,
0.021392822265625,
0.0721435546875,
-0.007045745849609375,
-0.058441162109375,
-0.01131439208984375,
0.0030307769775390625,
0.02081298828125,
0.0014581680297851562,
0.022064208984375,
-0.026580810546875,
-0.0113983154296875,
0.0087432861328125,
-0.016693115234375,
0.009033203125,
0.0248260498046875,
0.021453857421875,
0.0006318092346191406,
-0.004787445068359375,
0.0721435546875,
-0.0055999755859375,
0.05377197265625,
0.041900634765625,
-0.0025997161865234375,
0.042633056640625,
-0.037750244140625,
0.039886474609375,
-0.041290283203125,
0.023895263671875,
0.06134033203125,
-0.0293426513671875,
0.0222015380859375,
0.01491546630859375,
0.0039520263671875,
-0.01068878173828125,
0.01279449462890625,
0.01381683349609375,
0.00896453857421875,
-0.041595458984375,
0.049652099609375,
0.02728271484375,
0.0819091796875,
0.0001595020294189453,
-0.050506591796875,
0.0261383056640625,
0.050018310546875,
-0.016326904296875,
-0.04736328125,
0.030853271484375,
-0.0301361083984375,
-0.00548553466796875,
-0.006519317626953125,
-0.007358551025390625,
-0.014251708984375,
0.00792694091796875,
-0.01010894775390625,
-0.00197601318359375,
-0.0224151611328125,
-0.0177459716796875,
-0.0201416015625,
-0.0416259765625,
0.0303955078125,
0.0213165283203125,
0.02056884765625,
-0.008697509765625,
0.0428466796875,
0.01407623291015625,
-0.0190582275390625,
0.00516510009765625,
0.00879669189453125,
-0.0009603500366210938,
0.01100921630859375,
0.055023193359375,
-0.0601806640625,
-0.006237030029296875,
0.0026493072509765625,
0.01158905029296875,
0.036376953125,
-0.041534423828125,
-0.011383056640625,
0.010040283203125,
0.00222015380859375,
0.0308685302734375,
0.0030536651611328125,
-0.03009033203125,
-0.00368499755859375,
0.034820556640625,
-0.0313720703125,
0.0171966552734375,
-0.015411376953125,
-0.023712158203125,
-0.02069091796875,
-0.022705078125,
0.004608154296875,
-0.01039886474609375,
0.005504608154296875,
0.0187835693359375,
0.0222320556640625,
0.0298614501953125,
-0.006221771240234375,
-0.0098114013671875,
0.01128387451171875,
0.0136260986328125,
-0.0158233642578125,
0.016448974609375,
-0.0316162109375,
0.01097869873046875,
-0.00830841064453125,
0.011199951171875,
-0.00583648681640625,
0.014862060546875,
-0.034210205078125,
-0.03143310546875,
0.04364013671875,
-0.0165252685546875,
0.006099700927734375,
-0.0178070068359375,
-0.02191162109375,
0.0180511474609375,
0.07501220703125,
-0.058319091796875,
-0.002490997314453125,
0.0064849853515625,
-0.00354766845703125,
0.007030487060546875,
-0.0205078125,
-0.06304931640625,
-0.0357666015625,
-0.09124755859375,
0.0030307769775390625,
-0.004322052001953125,
-0.0239715576171875,
-0.0081787109375,
0.001789093017578125,
-0.049713134765625,
-0.0382080078125,
0.027130126953125,
-0.032684326171875,
0.037811279296875,
-0.048492431640625,
0.00850677490234375,
-0.048919677734375,
-0.0048065185546875,
-0.035980224609375,
-0.0184326171875,
0.0034542083740234375,
-0.03729248046875,
0.0264434814453125,
0.036956787109375,
-0.0311126708984375,
-0.0274658203125,
0.0091552734375,
-0.00765228271484375,
0.053558349609375,
-0.0026702880859375,
0.0131683349609375,
-0.0006070137023925781,
0.0259857177734375,
0.0243988037109375,
-0.0057525634765625,
0.01422119140625,
0.050872802734375,
-0.0242462158203125,
0.07598876953125,
-0.00589752197265625,
-0.041473388671875,
0.04132080078125,
-0.07171630859375,
-0.027191162109375,
-0.0247955322265625,
-0.035736083984375,
0.0206756591796875,
-0.03375244140625,
0.004974365234375,
-0.032806396484375,
-0.04266357421875,
0.01433563232421875,
-0.0272216796875,
0.006649017333984375,
0.00919342041015625,
0.067138671875,
0.01508331298828125,
-0.00901031494140625,
-0.0291900634765625,
-0.007472991943359375,
0.055755615234375,
0.01513671875,
-0.0021419525146484375,
0.02972412109375,
-0.049163818359375,
0.028961181640625,
0.028961181640625,
0.0147552490234375,
-0.005298614501953125,
0.052490234375,
0.01088714599609375,
0.0280609130859375,
-0.0166015625,
0.033966064453125,
-0.044525146484375,
0.041351318359375,
-0.01097869873046875,
0.00783538818359375,
0.0040283203125,
0.005718231201171875,
-0.01355743408203125,
-0.0235595703125,
-0.01284027099609375,
-0.0126953125,
0.005390167236328125,
-0.021331787109375,
0.0290985107421875,
0.01474761962890625,
-0.0015239715576171875,
-0.0213470458984375,
-0.00531768798828125,
0.005146026611328125,
0.012939453125,
-0.0015954971313476562,
-0.0302734375,
0.013824462890625,
0.00011968612670898438,
-0.020660400390625,
0.0256500244140625,
-0.005474090576171875,
0.09112548828125,
0.0221099853515625,
-0.004482269287109375,
-0.024444580078125,
-0.0238494873046875,
-0.043182373046875,
-0.0189361572265625,
0.00453948974609375,
-0.002349853515625,
0.043365478515625,
-0.01045989990234375,
0.0257415771484375,
0.01512908935546875,
0.04119873046875,
-0.0269012451171875,
-0.05853271484375,
-0.0156402587890625,
-0.0225067138671875,
-0.021575927734375,
0.0238037109375,
-0.03814697265625,
0.0006270408630371094,
0.005878448486328125,
0.0633544921875,
0.0294342041015625,
0.0171356201171875,
0.019500732421875,
-0.002025604248046875,
0.0213165283203125,
-0.032928466796875,
-0.040924072265625,
-0.02435302734375,
-0.0221405029296875,
-0.007015228271484375,
0.031402587890625,
-0.02911376953125,
-0.0003142356872558594,
0.03485107421875,
-0.01354217529296875,
-0.01453399658203125,
0.01239013671875,
-0.0113067626953125,
-0.0132598876953125,
-0.038970947265625,
-0.0166168212890625,
0.045623779296875,
0.01488494873046875,
-0.0186309814453125,
0.004589080810546875,
-0.0562744140625,
0.0279998779296875,
-0.0194244384765625,
0.02801513671875,
-0.00574493408203125,
-0.0296783447265625,
0.0158538818359375,
0.009979248046875,
-0.0280609130859375,
-0.007144927978515625,
-0.05133056640625,
-0.0006570816040039062,
0.0103912353515625,
0.031341552734375,
-0.044677734375,
0.018157958984375,
-0.0230560302734375,
0.01244354248046875,
-0.042999267578125,
0.0195465087890625,
0.05181884765625,
0.047149658203125,
-0.100830078125,
0.015869140625,
-0.025909423828125,
0.00244903564453125,
-0.003459930419921875,
-0.0150146484375,
-0.070556640625,
-0.021148681640625,
0.0027980804443359375,
0.03472900390625,
-0.0333251953125,
-0.0418701171875,
-0.023223876953125,
-0.00428009033203125,
0.01471710205078125,
0.049163818359375,
-0.0177154541015625,
0.0418701171875,
0.0030765533447265625,
0.06756591796875,
-0.015625,
-0.01328277587890625,
-0.00612640380859375,
-0.0210113525390625,
0.049407958984375,
0.00353240966796875,
-0.07293701171875,
-0.024078369140625,
-0.049407958984375,
-0.0090789794921875,
0.0312042236328125,
-0.035858154296875,
0.0262451171875,
-0.006046295166015625,
-0.01311492919921875,
-0.00948333740234375,
0.0156097412109375,
-0.007167816162109375,
0.0243988037109375,
0.01476287841796875,
-0.0631103515625,
-0.0699462890625,
0.00496673583984375,
0.006565093994140625,
0.0430908203125,
-0.0226287841796875,
0.00237274169921875,
0.004619598388671875,
-0.035369873046875,
0.0777587890625,
0.057281494140625,
-0.01435089111328125,
0.026947021484375,
0.0330810546875,
0.00624847412109375,
-0.01003265380859375,
0.037689208984375,
0.01519775390625,
-0.0226287841796875,
0.052825927734375,
-0.01206207275390625,
-0.0253448486328125,
0.014312744140625,
-0.026458740234375,
0.028717041015625,
0.06842041015625,
0.07269287109375,
-0.1053466796875,
0.024627685546875,
0.0296783447265625,
-0.00574493408203125,
0.002368927001953125,
-0.01451873779296875,
0.023468017578125,
-0.006351470947265625,
0.04205322265625,
0.0399169921875,
-0.0116729736328125,
0.03179931640625,
0.0034427642822265625,
0.0013017654418945312,
-0.021209716796875,
0.05450439453125,
0.01096343994140625,
-0.032440185546875,
-0.0204925537109375,
0.0272369384765625,
-0.0166015625,
-0.00753021240234375,
0.0086212158203125,
0.006015777587890625,
-0.0292510986328125,
-0.04510498046875,
0.015869140625,
-0.0261993408203125,
-0.0190582275390625,
0.032012939453125,
-0.004772186279296875,
0.053680419921875,
0.054290771484375,
-0.0106658935546875,
0.049224853515625,
0.006198883056640625,
0.042694091796875,
0.03515625,
-0.0035724639892578125,
-0.01132965087890625,
0.03143310546875,
-0.046600341796875,
-0.0034770965576171875,
-0.0149688720703125,
0.0299072265625,
-0.0216827392578125,
-0.028778076171875,
0.0950927734375,
-0.01078033447265625,
-0.0261383056640625,
-0.00237274169921875,
0.00189208984375,
-0.01065826416015625,
0.0004642009735107422,
-0.021392822265625,
-0.00699615478515625,
0.034820556640625,
-0.0252685546875,
-0.0267333984375,
-0.006290435791015625,
-0.0243377685546875,
-0.08563232421875,
0.1119384765625,
0.00946807861328125,
0.033416748046875,
-0.012969970703125,
0.053192138671875,
-0.020233154296875,
0.0155792236328125,
-0.033355712890625,
-0.002307891845703125,
-0.0240020751953125,
0.042205810546875,
-0.03778076171875,
0.0008754730224609375,
-0.001064300537109375,
0.0167083740234375,
-0.00860595703125,
-0.0150909423828125,
0.00119781494140625,
0.0180816650390625,
0.0494384765625,
0.004451751708984375,
-0.007305145263671875,
0.0226593017578125,
0.005840301513671875,
0.0138397216796875,
-0.00379180908203125,
0.0267486572265625,
0.042694091796875,
-0.03759765625,
-0.045379638671875,
0.038055419921875,
-0.0010461807250976562,
-0.0248565673828125,
-0.01436614990234375,
-0.0010671615600585938,
-0.0200347900390625,
-0.00832366943359375,
-0.006927490234375,
0.01290130615234375,
-0.04705810546875,
0.079345703125,
0.026824951171875,
-0.067626953125,
-0.06341552734375,
-0.034881591796875,
0.03515625,
-0.00290679931640625,
0.031768798828125,
-0.017852783203125,
0.006153106689453125,
0.0108184814453125,
-0.0174560546875,
0.004619598388671875,
0.04351806640625,
-0.04443359375,
0.0262908935546875,
0.00431060791015625,
0.01214599609375,
-0.02557373046875,
0.0184478759765625,
0.02978515625,
0.044189453125,
-0.041015625,
-0.00882720947265625,
0.0179290771484375,
0.010528564453125,
-0.019195556640625,
-0.0084228515625,
0.0024394989013671875,
-0.006984710693359375,
-0.0019664764404296875,
-0.02337646484375,
0.001773834228515625,
0.006572723388671875,
0.05145263671875,
-0.011688232421875,
-0.0015926361083984375,
-0.0433349609375,
-0.03460693359375,
-0.0465087890625,
0.01096343994140625,
0.00661468505859375,
0.06695556640625,
0.019622802734375,
0.050262451171875,
-0.059326171875,
-0.032958984375,
-0.00647735595703125,
0.02886962890625,
-0.02783203125,
0.01812744140625,
-0.05517578125,
-0.049652099609375,
0.0195465087890625,
0.05316162109375,
0.01532745361328125,
0.0369873046875,
0.00678253173828125,
-0.0019588470458984375,
0.01361846923828125,
0.0027065277099609375,
0.032470703125,
-0.013336181640625,
-0.00446319580078125,
-0.037353515625,
0.00026106834411621094,
-0.019866943359375,
-0.01413726806640625,
-0.0291290283203125,
0.032958984375,
0.0013885498046875,
-0.032135009765625,
0.05706787109375,
-0.015533447265625,
-0.0316162109375,
0.037384033203125,
-0.02984619140625,
0.10986328125,
-0.0147705078125,
-0.031768798828125,
-0.01497650146484375,
0.0063934326171875,
-0.0699462890625,
0.017333984375,
0.05816650390625,
-0.01092529296875,
-0.0097503662109375,
0.01250457763671875,
-0.0283660888671875,
-0.0188140869140625,
0.03948974609375,
0.03033447265625,
-0.0160064697265625,
-0.007587432861328125,
-0.0121002197265625,
-0.024993896484375,
-0.01535797119140625,
-0.0255279541015625,
0.054595947265625,
0.041259765625,
0.030426025390625,
-0.0189208984375,
0.056243896484375,
0.005157470703125,
-0.015625,
0.00385284423828125,
-0.02252197265625,
0.06610107421875,
-0.0081634521484375,
-0.041107177734375,
-0.0249786376953125,
-0.021331787109375,
0.0112762451171875,
0.0231475830078125,
-0.025726318359375,
-0.0182952880859375,
-0.00922393798828125,
0.01262664794921875,
0.019927978515625,
0.02423095703125,
-0.019378662109375,
-0.00670623779296875,
-0.0173187255859375,
-0.0201263427734375,
0.0264129638671875,
-0.0075225830078125,
-0.007686614990234375,
0.0205230712890625,
0.019866943359375,
-0.025146484375,
0.0267333984375,
-0.0261077880859375,
0.031768798828125,
0.03662109375,
0.0259857177734375,
-0.037017822265625,
-0.001163482666015625,
-0.019744873046875,
-0.00287628173828125,
-0.0008158683776855469,
0.03521728515625,
0.002323150634765625,
-0.061492919921875,
0.0014867782592773438,
0.02557373046875,
0.02484130859375,
-0.046966552734375,
0.030670166015625,
0.0323486328125,
-0.011383056640625,
0.0098876953125,
-0.01554107666015625,
-0.0194091796875,
-0.0477294921875,
0.0037994384765625,
0.0296478271484375,
-0.033966064453125,
-0.0024051666259765625,
-0.07012939453125,
0.00004208087921142578,
0.032257080078125,
0.021087646484375,
-0.06201171875,
0.0120086669921875,
-0.00995635986328125,
0.0038852691650390625,
0.013671875,
0.01055145263671875,
-0.0002460479736328125,
0.0293731689453125,
-0.0185699462890625,
-0.027313232421875,
-0.0251312255859375,
0.02349853515625,
-0.005878448486328125,
0.037689208984375,
0.054046630859375,
-0.030548095703125,
-0.029205322265625,
0.061309814453125,
0.0232086181640625,
0.10089111328125,
0.01326751708984375,
-0.013092041015625,
0.006893157958984375,
0.0008764266967773438,
-0.0249481201171875,
-0.03533935546875,
0.0307464599609375,
-0.0469970703125,
-0.009674072265625,
0.0027904510498046875,
-0.00820159912109375,
-0.0002104043960571289,
-0.049468994140625,
-0.0816650390625,
-0.0214080810546875,
0.0116119384765625,
-0.04156494140625,
-0.039215087890625,
-0.004734039306640625,
0.01397705078125,
-0.03155517578125,
-0.0191650390625,
-0.035919189453125,
-0.05267333984375,
0.0233306884765625,
0.004352569580078125,
0.0406494140625,
-0.00226593017578125,
0.01629638671875,
-0.041534423828125,
-0.0035228729248046875,
-0.033355712890625,
0.0012645721435546875,
0.00397491455078125,
-0.01806640625,
-0.0033416748046875,
0.01371002197265625,
-0.04681396484375,
-0.0711669921875,
-0.006725311279296875,
0.01136016845703125,
0.0100555419921875,
-0.06109619140625,
-0.032073974609375,
-0.024139404296875,
0.025177001953125,
0.033599853515625,
0.01035308837890625,
-0.018402099609375,
-0.0189361572265625,
-0.014373779296875,
0.0033016204833984375,
-0.01280975341796875,
0.005443572998046875,
-0.050567626953125,
-0.00461578369140625,
-0.0030059814453125,
-0.007266998291015625,
0.0207977294921875,
-0.0181732177734375,
-0.0266876220703125,
0.001346588134765625,
0.005863189697265625,
0.00798797607421875,
-0.05914306640625,
-0.0201873779296875,
0.07183837890625,
-0.03143310546875,
0.02960205078125,
-0.0052490234375,
0.0264434814453125,
0.054656982421875,
-0.0062255859375,
0.0024433135986328125,
0.00780487060546875,
-0.0082855224609375,
-0.0022373199462890625,
0.0205078125,
0.0073394775390625,
0.0155181884765625,
-0.01016998291015625,
-0.0073089599609375,
0.01520538330078125,
-0.015960693359375,
0.00881195068359375,
0.007312774658203125,
0.033050537109375,
0.00662994384765625,
0.017852783203125,
-0.024017333984375,
0.00799560546875,
-0.0288543701171875,
0.0272979736328125,
-0.0034503936767578125,
0.01284027099609375,
0.0173187255859375,
-0.014495849609375,
0.029815673828125,
0.00276947021484375,
0.08099365234375,
-0.0022983551025390625,
0.01042938232421875,
-0.0306549072265625,
0.0288238525390625,
0.00189208984375
] |
eae1c6ef963ee6f72180ec8ae88c280abefc22c1 | Wordpress Stackexchange
Q: Wordpress 5 / Gutenberg - theme doesn't have featured image option showing up I have a custom theme. I've deactivated every plugin. I can't get the Featured Image block on the right sidebar of editing a post to show up so that the user can set the featured image.
I have this in my functions.php file:
add_theme_support( 'post-thumbnails' );
Note that this worked fine before Wordpress 5 / Gutenberg update.
What am I missing?
A: The function with the add_theme_support( 'post-thumbnails' ); wasn't being called for some reason. Once I fixed that, everything works now.
| Q: Wordpress 5 / Gutenberg - theme doesn't have featured image option showing up I have a custom theme. I've deactivated every plugin. I can't get the Featured Image block on the right sidebar of editing a post to show up so that the user can set the featured image.
I have this in my functions.php file:
add_theme_support( 'post-thumbnails' );
Note that this worked fine before Wordpress 5 / Gutenberg update.
What am I missing?
A: The function with the add_theme_support( 'post-thumbnails' ); wasn't being called for some reason. Once I fixed that, everything works now.
A: I'm facing the same issue. I also can't see the thumbnail meta box in Gutenberg editor.
I tried different ways but unfortunately, still, the same issue exists.
In the below code, you can see I enable the post-thumbnails for post and page.
add_theme_support('post-thumbnails', array('post', 'page'));
When I found the above code was not working then I tried the below code
add_action('after_setup_theme', function () {
remove_theme_support('post-thumbnails');
add_theme_support('post-thumbnails', array('post', 'page', 'hero', 'event', 'video'));
});
But still, the same issue exists.
Note: If I disable the Gutenberg editor by using this code then I can see the thumbnail image meta box
add_filter('use_block_editor_for_post', '__return_false', 10);
Waiting for your help!
Thanks!
| wordpress | {
"language": "en",
"length": 203,
"provenance": "stackexchange_00019.jsonl.gz:495061",
"question_score": "6",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/337196"
} | [
0.02838134765625,
-0.021484375,
0.0231475830078125,
0.0057830810546875,
0.003948211669921875,
-0.031951904296875,
0.08404541015625,
-0.037628173828125,
0.0271148681640625,
0.0284576416015625,
0.0038242340087890625,
-0.030059814453125,
-0.0008845329284667969,
-0.031890869140625,
-0.03790283203125,
-0.023529052734375,
0.04156494140625,
-0.01210784912109375,
0.048553466796875,
0.0140533447265625,
-0.0101318359375,
0.04168701171875,
0.004848480224609375,
0.039459228515625,
0.0128173828125,
0.010009765625,
0.05035400390625,
-0.031707763671875,
0.015228271484375,
-0.007305145263671875,
0.0293426513671875,
0.00047206878662109375,
0.002422332763671875,
-0.0025119781494140625,
0.0124359130859375,
-0.01367950439453125,
0.00868988037109375,
-0.00955963134765625,
-0.006206512451171875,
0.0012083053588867188,
0.01418304443359375,
0.0012559890747070312,
-0.006855010986328125,
-0.021636962890625,
-0.0228271484375,
0.003849029541015625,
-0.014617919921875,
-0.0308990478515625,
0.027191162109375,
0.005664825439453125,
-0.02056884765625,
0.0244598388671875,
-0.0128631591796875,
-0.0201568603515625,
-0.013916015625,
-0.0341796875,
-0.04296875,
0.07269287109375,
0.01885986328125,
0.0037059783935546875,
-0.029632568359375,
0.032196044921875,
-0.00153350830078125,
-0.016937255859375,
0.01239013671875,
0.00672149658203125,
0.0110626220703125,
0.0157012939453125,
-0.030303955078125,
0.017730712890625,
0.009552001953125,
-0.0330810546875,
0.013092041015625,
-0.051666259765625,
-0.004718780517578125,
0.0162200927734375,
-0.035980224609375,
-0.0308074951171875,
0.0204620361328125,
-0.01910400390625,
-0.0187835693359375,
-0.019775390625,
-0.053131103515625,
0.00859832763671875,
0.0186767578125,
0.044189453125,
-0.0151824951171875,
-0.01325225830078125,
-0.05792236328125,
0.006134033203125,
-0.032806396484375,
-0.0731201171875,
-0.076171875,
0.0699462890625,
0.045166015625,
-0.01094818115234375,
0.044464111328125,
0.03643798828125,
-0.005207061767578125,
0.0000311732292175293,
0.003932952880859375,
-0.052825927734375,
0.05059814453125,
-0.042266845703125,
0.01107025146484375,
-0.004589080810546875,
-0.023193359375,
0.0015134811401367188,
0.032958984375,
0.044525146484375,
-0.01202392578125,
-0.0283203125,
0.0404052734375,
-0.022369384765625,
-0.01467132568359375,
-0.0068359375,
-0.00177001953125,
0.02740478515625,
0.0233612060546875,
-0.003204345703125,
0.0219268798828125,
0.037689208984375,
0.0167083740234375,
-0.061065673828125,
0.007549285888671875,
-0.009246826171875,
-0.0526123046875,
-0.03326416015625,
-0.0171356201171875,
0.043548583984375,
-0.0308837890625,
0.00437164306640625,
0.0418701171875,
0.023223876953125,
0.0016918182373046875,
-0.0301971435546875,
0.03729248046875,
-0.01313018798828125,
-0.0029201507568359375,
-0.005931854248046875,
-0.02294921875,
0.01593017578125,
0.033050537109375,
-0.058441162109375,
0.038909912109375,
0.0008502006530761719,
0.0361328125,
0.029327392578125,
-0.014556884765625,
-0.04937744140625,
0.0506591796875,
-0.00397491455078125,
0.0193023681640625,
0.02130126953125,
0.053253173828125,
-0.005523681640625,
0.058929443359375,
-0.0294647216796875,
0.0123748779296875,
-0.021209716796875,
0.0501708984375,
-0.016021728515625,
-0.0230560302734375,
-0.007686614990234375,
-0.05340576171875,
0.0050048828125,
-0.034210205078125,
-0.007442474365234375,
0.0298309326171875,
0.007659912109375,
0.0181427001953125,
-0.03106689453125,
0.007808685302734375,
-0.006069183349609375,
-0.02081298828125,
0.0230560302734375,
0.01502227783203125,
0.0286865234375,
-0.005184173583984375,
0.055084228515625,
0.01715087890625,
-0.0202484130859375,
0.043121337890625,
-0.0156402587890625,
-0.0445556640625,
0.0162353515625,
-0.00618743896484375,
0.049346923828125,
0.03765869140625,
0.019866943359375,
-0.004833221435546875,
-0.01552581787109375,
-0.05023193359375,
0.012908935546875,
-0.003284454345703125,
-0.0009784698486328125,
-0.018096923828125,
-0.0017576217651367188,
-0.01497650146484375,
-0.0029010772705078125,
0.0240631103515625,
-0.0189056396484375,
0.039337158203125,
-0.0321044921875,
-0.025054931640625,
-0.0026912689208984375,
-0.0208282470703125,
0.038238525390625,
0.043365478515625,
0.014007568359375,
-0.0081939697265625,
0.001667022705078125,
-0.015869140625,
-0.002685546875,
-0.036407470703125,
0.02490234375,
-0.0007562637329101562,
0.0408935546875,
0.00885772705078125,
0.045501708984375,
0.0036983489990234375,
-0.015838623046875,
-0.0162811279296875,
0.00384521484375,
0.0689697265625,
0.033966064453125,
-0.037628173828125,
-0.0252838134765625,
0.021270751953125,
0.037933349609375,
-0.11370849609375,
0.03350830078125,
-0.01342010498046875,
-0.0323486328125,
-0.041259765625,
-0.005542755126953125,
0.02069091796875,
-0.0218658447265625,
0.016326904296875,
0.035858154296875,
0.033538818359375,
0.036163330078125,
-0.011627197265625,
-0.033355712890625,
0.053619384765625,
0.0097808837890625,
0.038421630859375,
-0.03924560546875,
0.00864410400390625,
-0.018798828125,
0.017059326171875,
-0.01971435546875,
0.03961181640625,
-0.0552978515625,
0.039306640625,
0.0310211181640625,
-0.006305694580078125,
0.00424957275390625,
-0.049652099609375,
0.0190887451171875,
0.0140838623046875,
0.00897216796875,
-0.023162841796875,
0.0006117820739746094,
0.05499267578125,
0.043121337890625,
0.051910400390625,
0.041229248046875,
-0.0548095703125,
0.031951904296875,
0.0120391845703125,
0.0181884765625,
0.003986358642578125,
0.0242462158203125,
0.0394287109375,
0.03131103515625,
-0.0233154296875,
-0.013641357421875,
0.02899169921875,
0.026885986328125,
-0.0234222412109375,
-0.0467529296875,
-0.034454345703125,
0.006137847900390625,
0.01435089111328125,
-0.051544189453125,
0.035125732421875,
0.048187255859375,
0.02008056640625,
-0.00170135498046875,
0.025238037109375,
0.01287078857421875,
-0.0009522438049316406,
0.019683837890625,
-0.00048661231994628906,
-0.01654052734375,
0.002849578857421875,
-0.0614013671875,
0.036376953125,
-0.0533447265625,
0.0443115234375,
0.045654296875,
-0.023529052734375,
0.01026153564453125,
0.012969970703125,
-0.0313720703125,
0.00664520263671875,
0.037689208984375,
0.01300811767578125,
-0.013916015625,
-0.03814697265625,
0.004852294921875,
0.0293121337890625,
0.03369140625,
-0.001964569091796875,
-0.0284423828125,
0.0009751319885253906,
0.0281982421875,
-0.0372314453125,
-0.0401611328125,
-0.059906005859375,
-0.05047607421875,
-0.024505615234375,
0.0009150505065917969,
-0.019439697265625,
0.0198822021484375,
0.00921630859375,
0.006031036376953125,
-0.04302978515625,
-0.00771331787109375,
-0.04656982421875,
-0.057586669921875,
-0.05780029296875,
-0.00823211669921875,
-0.0129547119140625,
0.0277557373046875,
0.00237274169921875,
0.0562744140625,
-0.01326751708984375,
-0.065185546875,
-0.01184844970703125,
-0.0180816650390625,
-0.01434326171875,
0.0089263916015625,
0.0243682861328125,
-0.01445770263671875,
-0.0203399658203125,
0.0225372314453125,
0.022491455078125,
0.011932373046875,
-0.053192138671875,
-0.0107574462890625,
-0.04034423828125,
-0.046630859375,
-0.0263519287109375,
0.0250244140625,
0.0350341796875,
-0.0372314453125,
0.01493072509765625,
-0.05950927734375,
-0.001056671142578125,
-0.046844482421875,
-0.038665771484375,
0.0294647216796875,
0.002071380615234375,
0.031463623046875,
-0.0215301513671875,
0.0341796875,
0.014892578125,
-0.006938934326171875,
0.00632476806640625,
-0.03448486328125,
0.0311126708984375,
0.007549285888671875,
0.01131439208984375,
-0.038238525390625,
-0.01436614990234375,
-0.0067901611328125,
0.0474853515625,
-0.00860595703125,
0.058624267578125,
-0.025299072265625,
0.06243896484375,
-0.07666015625,
-0.029327392578125,
0.04034423828125,
-0.0009064674377441406,
-0.020294189453125,
0.01355743408203125,
-0.020599365234375,
0.0300140380859375,
0.048065185546875,
-0.0235595703125,
-0.0225830078125,
0.005771636962890625,
0.010345458984375,
-0.0201873779296875,
0.0222015380859375,
-0.049102783203125,
0.0025119781494140625,
-0.06402587890625,
0.006256103515625,
0.0007376670837402344,
-0.059051513671875,
-0.00012314319610595703,
-0.005260467529296875,
-0.05340576171875,
-0.0247344970703125,
0.053314208984375,
-0.0391845703125,
0.0233917236328125,
0.044281005859375,
-0.020111083984375,
0.0161285400390625,
-0.04058837890625,
-0.031982421875,
-0.0789794921875,
-0.00818634033203125,
-0.0151824951171875,
0.0638427734375,
-0.0085601806640625,
0.0161895751953125,
-0.035308837890625,
0.056488037109375,
0.046600341796875,
0.004077911376953125,
0.0259857177734375,
-0.0311737060546875,
0.05352783203125,
-0.0211181640625,
0.02496337890625,
-0.035400390625,
-0.0162200927734375,
-0.03839111328125,
-0.056915283203125,
-0.006725311279296875,
-0.01184844970703125,
0.00646209716796875,
0.00458526611328125,
-0.01451873779296875,
-0.01143646240234375,
0.0157623291015625,
0.01255035400390625,
0.01556396484375,
0.0273590087890625,
-0.0250701904296875,
-0.004512786865234375,
-0.006427764892578125,
0.046875,
-0.042938232421875,
0.012969970703125,
0.0175018310546875,
0.1099853515625,
0.006134033203125,
-0.006969451904296875,
-0.06658935546875,
0.007640838623046875,
0.033660888671875,
0.039947509765625,
0.044403076171875,
0.030181884765625,
-0.00803375244140625,
0.00982666015625,
0.033721923828125,
0.00977325439453125,
-0.042816162109375,
0.04791259765625,
-0.0209808349609375,
-0.0301513671875,
0.0226898193359375,
-0.030029296875,
0.04119873046875,
0.001979827880859375,
-0.0169219970703125,
-0.006137847900390625,
-0.0297088623046875,
0.017303466796875,
-0.011810302734375,
0.0272216796875,
-0.0270843505859375,
-0.00020039081573486328,
-0.01177215576171875,
-0.01043701171875,
0.0809326171875,
0.03631591796875,
-0.017547607421875,
0.0360107421875,
0.050933837890625,
0.00011438131332397461,
0.0180816650390625,
-0.04669189453125,
-0.0064849853515625,
0.032806396484375,
-0.01224517822265625,
0.007221221923828125,
0.04644775390625,
-0.0046234130859375,
0.03924560546875,
0.009063720703125,
-0.004848480224609375,
-0.04034423828125,
-0.0188751220703125,
0.0024852752685546875,
-0.0250244140625,
-0.0027942657470703125,
0.0204925537109375,
0.0264739990234375,
-0.0212249755859375,
-0.023284912109375,
-0.0012073516845703125,
0.01166534423828125,
-0.043853759765625,
-0.0079498291015625,
-0.0175628662109375,
-0.0008554458618164062,
0.016876220703125,
0.05340576171875,
-0.0177459716796875,
0.03802490234375,
-0.020660400390625,
-0.0180206298828125,
-0.01678466796875,
0.029510498046875,
0.033355712890625,
0.007083892822265625,
-0.01910400390625,
0.0023517608642578125,
0.0293731689453125,
-0.0308685302734375,
-0.022918701171875,
-0.004840850830078125,
0.04498291015625,
-0.024017333984375,
-0.0005712509155273438,
0.0279541015625,
-0.0120086669921875,
-0.01953125,
0.0304718017578125,
-0.0443115234375,
-0.048980712890625,
-0.0258636474609375,
0.03753662109375,
0.05133056640625,
-0.007293701171875,
-0.03704833984375,
-0.0211334228515625,
-0.02288818359375,
0.0020771026611328125,
-0.02777099609375,
-0.056396484375,
0.0472412109375,
0.03167724609375,
-0.01451873779296875,
0.007564544677734375,
0.0008535385131835938,
-0.01666259765625,
-0.0439453125,
-0.007152557373046875,
-0.0177154541015625,
0.0692138671875,
-0.07122802734375,
0.0006337165832519531,
0.01128387451171875,
0.0033931732177734375,
-0.034149169921875,
0.039093017578125,
0.0235137939453125,
0.040283203125,
-0.0474853515625,
-0.006717681884765625,
-0.045562744140625,
-0.0012302398681640625,
0.0173492431640625,
-0.0276336669921875,
-0.0204620361328125,
-0.038665771484375,
0.01480865478515625,
0.020721435546875,
-0.0223541259765625,
-0.039520263671875,
-0.0189971923828125,
0.03228759765625,
0.050445556640625,
0.105224609375,
0.00927734375,
0.01256561279296875,
-0.006473541259765625,
0.0279998779296875,
0.005649566650390625,
-0.0129852294921875,
0.00504302978515625,
-0.0309295654296875,
-0.043426513671875,
-0.044219970703125,
0.0202178955078125,
0.034637451171875,
0.0104522705078125,
0.031463623046875,
0.04376220703125,
0.02093505859375,
0.01593017578125,
-0.01953125,
0.004520416259765625,
-0.025146484375,
0.0271759033203125,
-0.0350341796875,
-0.01386260986328125,
0.00728607177734375,
-0.04547119140625,
-0.01398468017578125,
0.018157958984375,
-0.02227783203125,
0.040740966796875,
-0.0204010009765625,
0.0002665519714355469,
0.04290771484375,
-0.031890869140625,
0.0394287109375,
0.063720703125,
-0.006633758544921875,
0.034271240234375,
0.03375244140625,
0.0037784576416015625,
-0.0109710693359375,
0.0230712890625,
-0.046875,
-0.03570556640625,
0.023284912109375,
0.0113067626953125,
-0.003986358642578125,
0.017608642578125,
-0.00047898292541503906,
0.004276275634765625,
0.0111236572265625,
0.043365478515625,
-0.025543212890625,
0.006435394287109375,
-0.005397796630859375,
-0.0217742919921875,
0.00759124755859375,
0.011444091796875,
0.0159149169921875,
0.0049591064453125,
0.013153076171875,
-0.0208282470703125,
-0.00653076171875,
0.003200531005859375,
-0.006061553955078125,
-0.0110015869140625,
-0.0005140304565429688,
0.029693603515625,
0.026702880859375,
-0.04632568359375,
-0.0081329345703125,
0.035552978515625,
-0.01273345947265625,
0.018829345703125,
0.045074462890625,
-0.028656005859375,
0.01727294921875,
-0.0205841064453125,
-0.00954437255859375,
-0.0250091552734375,
-0.03955078125,
0.09210205078125,
0.0188751220703125,
0.009979248046875,
0.05828857421875,
0.0025234222412109375,
0.0477294921875,
0.00334930419921875,
-0.0172576904296875,
0.040008544921875,
-0.01303863525390625,
-0.005321502685546875,
0.002712249755859375,
-0.0160980224609375,
0.0037994384765625,
-0.01009368896484375,
-0.001811981201171875,
-0.0152130126953125,
-0.0008673667907714844,
0.0908203125,
-0.02972412109375,
-0.0247039794921875,
0.0279693603515625,
0.037322998046875,
-0.01849365234375,
-0.005619049072265625,
0.071044921875,
-0.0447998046875,
-0.01036834716796875,
0.0103607177734375,
-0.0033817291259765625,
-0.0223846435546875,
0.0188140869140625,
-0.047821044921875,
0.10174560546875,
-0.01442718505859375,
0.0173797607421875,
-0.004474639892578125,
0.0567626953125,
-0.0003337860107421875,
0.0257568359375,
0.00167083740234375,
0.031494140625,
-0.0689697265625,
0.0133819580078125,
-0.0178680419921875,
0.035919189453125,
-0.0093994140625,
-0.0010166168212890625,
0.08831787109375,
0.0183258056640625,
-0.034027099609375,
-0.022491455078125,
0.0440673828125,
0.047149658203125,
-0.01015472412109375,
0.034454345703125,
-0.038970947265625,
-0.0174102783203125,
-0.0099029541015625,
-0.0194244384765625,
0.0211639404296875,
-0.0247802734375,
-0.0565185546875,
-0.01464080810546875,
0.005825042724609375,
0.025360107421875,
0.0246124267578125,
0.05291748046875,
-0.010467529296875,
-0.0014066696166992188,
0.048919677734375,
-0.0848388671875,
-0.04010009765625,
0.03436279296875,
0.00632476806640625,
-0.01922607421875,
-0.0232086181640625,
-0.02288818359375,
0.0323486328125,
0.00836944580078125,
0.01416778564453125,
-0.021270751953125,
0.0160675048828125,
-0.0220794677734375,
-0.041717529296875,
-0.004627227783203125,
0.0379638671875,
-0.0721435546875,
0.019439697265625,
0.0142669677734375,
0.0066070556640625,
-0.03680419921875,
0.0214691162109375,
0.035675048828125,
0.032867431640625,
-0.040191650390625,
-0.024169921875,
0.01261138916015625,
0.01044464111328125,
0.005832672119140625,
-0.018035888671875,
-0.024078369140625,
-0.0219879150390625,
0.0228118896484375,
-0.0229339599609375,
-0.0084075927734375,
0.0148162841796875,
0.032440185546875,
-0.010650634765625,
-0.02606201171875,
-0.0025768280029296875,
-0.0271453857421875,
-0.007442474365234375,
0.01788330078125,
0.0029163360595703125,
0.004795074462890625,
-0.013671875,
0.01739501953125,
-0.015960693359375,
0.0257568359375,
-0.045989990234375,
0.0352783203125,
-0.0305633544921875,
0.055816650390625,
-0.06439208984375,
-0.04864501953125,
0.0103759765625,
0.048736572265625,
0.0022983551025390625,
-0.007061004638671875,
0.033935546875,
0.040069580078125,
-0.052215576171875,
-0.01800537109375,
0.06439208984375,
-0.01207733154296875,
-0.025482177734375,
-0.041778564453125,
0.0293731689453125,
0.035064697265625,
0.019683837890625,
0.01055145263671875,
0.006439208984375,
0.063720703125,
-0.0184173583984375,
0.037322998046875,
-0.005237579345703125,
-0.033966064453125,
-0.005558013916015625,
-0.01554107666015625,
0.073974609375,
0.0026092529296875,
-0.059326171875,
-0.01544952392578125,
-0.01904296875,
-0.03216552734375,
0.007152557373046875,
0.025482177734375,
-0.026153564453125,
0.033233642578125,
0.0165252685546875,
0.007251739501953125,
0.003253936767578125,
-0.047119140625,
0.03936767578125,
0.0135650634765625,
0.00273895263671875,
0.0267791748046875,
-0.05865478515625,
-0.042205810546875,
0.006969451904296875,
0.039337158203125,
-0.0289306640625,
0.0638427734375,
0.00032067298889160156,
-0.01262664794921875,
-0.0202484130859375,
0.0167388916015625,
-0.02862548828125,
-0.00997161865234375,
0.0086822509765625,
0.01058197021484375,
0.01532745361328125,
-0.0099639892578125,
-0.0770263671875,
-0.0291595458984375,
0.040496826171875,
-0.0064239501953125,
-0.0220794677734375,
0.01520538330078125,
0.02685546875,
0.0110321044921875,
0.0304412841796875,
-0.028717041015625,
-0.043365478515625,
-0.06201171875,
-0.000995635986328125,
0.006755828857421875,
0.001407623291015625,
-0.0120086669921875,
0.0223541259765625,
0.0191497802734375,
-0.009124755859375,
0.040863037109375,
-0.03607177734375,
0.05615234375,
0.0325927734375,
-0.0218353271484375,
-0.01416015625,
-0.0263214111328125,
-0.008270263671875,
0.002765655517578125,
0.0008521080017089844,
0.01806640625,
0.01873779296875,
0.0011339187622070312,
0.0219879150390625,
-0.0012197494506835938,
0.007350921630859375,
-0.048980712890625,
-0.014434814453125,
0.04827880859375,
-0.01375579833984375,
-0.0282745361328125,
0.028961181640625,
0.0024318695068359375,
-0.0546875,
-0.0187835693359375,
0.005382537841796875,
-0.0325927734375,
0.007167816162109375,
-0.0219268798828125,
0.022308349609375,
0.01413726806640625,
0.021240234375,
-0.0860595703125,
0.0804443359375,
0.00493621826171875,
0.007694244384765625,
-0.01233673095703125,
-0.0450439453125,
0.040985107421875,
0.08343505859375,
-0.0241546630859375,
-0.013031005859375,
-0.0008296966552734375,
-0.047088623046875,
-0.0290679931640625,
0.01134490966796875,
-0.0005269050598144531,
-0.015869140625,
0.0179901123046875,
0.030914306640625,
0.00775146484375,
0.0731201171875,
-0.00626373291015625,
-0.02557373046875,
-0.0015316009521484375,
0.0022258758544921875,
-0.0238494873046875,
-0.035400390625,
0.038421630859375,
-0.04547119140625,
-0.036407470703125,
-0.00463104248046875,
-0.004604339599609375,
0.0109100341796875,
-0.055908203125,
-0.11053466796875,
-0.0106353759765625,
-0.00408172607421875,
-0.0552978515625,
-0.0241546630859375,
0.0194854736328125,
-0.0159454345703125,
0.0262451171875,
0.0017423629760742188,
-0.0088958740234375,
0.001293182373046875,
0.021759033203125,
-0.0030460357666015625,
-0.0082855224609375,
0.052001953125,
-0.0211944580078125,
-0.00543212890625,
-0.00826263427734375,
0.005481719970703125,
-0.0199127197265625,
0.01995849609375,
-0.03253173828125,
0.0423583984375,
0.027374267578125,
-0.047271728515625,
-0.064697265625,
-0.0152130126953125,
-0.0023822784423828125,
-0.003742218017578125,
-0.0204925537109375,
-0.0297088623046875,
-0.03143310546875,
0.064697265625,
0.007404327392578125,
0.01390838623046875,
0.01174163818359375,
-0.00490570068359375,
-0.0848388671875,
-0.0360107421875,
0.004302978515625,
0.017364501953125,
-0.057373046875,
0.0230255126953125,
0.056610107421875,
-0.035797119140625,
0.004581451416015625,
0.015533447265625,
-0.05157470703125,
0.0026702880859375,
-0.040740966796875,
-0.0240478515625,
-0.06451416015625,
-0.001148223876953125,
0.0517578125,
-0.030517578125,
0.01027679443359375,
-0.0168609619140625,
0.018585205078125,
0.024444580078125,
-0.0031795501708984375,
0.0261688232421875,
0.029327392578125,
-0.033294677734375,
0.017822265625,
0.0210418701171875,
0.01018524169921875,
-0.0220947265625,
-0.007114410400390625,
0.01050567626953125,
-0.019500732421875,
-0.0234832763671875,
-0.04229736328125,
0.02850341796875,
0.02069091796875,
-0.03350830078125,
0.0556640625,
-0.004772186279296875,
0.0087890625,
-0.005786895751953125,
0.020050048828125,
-0.006816864013671875,
-0.0200347900390625,
0.007419586181640625,
-0.03582763671875,
0.01268768310546875,
0.005645751953125,
0.032806396484375,
0.0004439353942871094,
-0.038787841796875,
-0.01145172119140625,
0.002170562744140625,
-0.00827789306640625
] |
0cc6322e9cac6905ea08c81f1a58abd9637bd49e | Wordpress Stackexchange
Q: When does WordPress.org notify sites of new version? I have a plugin in the wordpress.org repository and I have updated the plugin to a new version and that new version is reflected in the listing but my sites have the previous version. How long does it take before my new version is available to wp sites as an upgrade available?
Thank you guys!
A:
I have a plugin in the wordpress.org repository and I have updated the plugin to a new version and that new version is reflected in the listing
Congrats!
but my sites have the previous version. How long does it take before my new version is available to wp sites as an upgrade available?
It should be immediate, but, .org doesn't notify your site. Instead, your site checks .org for updates. You can force it by going to the updates page and checking again:
| Q: When does WordPress.org notify sites of new version? I have a plugin in the wordpress.org repository and I have updated the plugin to a new version and that new version is reflected in the listing but my sites have the previous version. How long does it take before my new version is available to wp sites as an upgrade available?
Thank you guys!
A:
I have a plugin in the wordpress.org repository and I have updated the plugin to a new version and that new version is reflected in the listing
Congrats!
but my sites have the previous version. How long does it take before my new version is available to wp sites as an upgrade available?
It should be immediate, but, .org doesn't notify your site. Instead, your site checks .org for updates. You can force it by going to the updates page and checking again:
A: according to the wordpress developer FAQ:
https://developer.wordpress.org/plugins/wordpress-org/plugin-developer-faq/
How long does it take for the Plugin Directory to reflect my changes?
The WordPress.org Plugin Directory updates every few minutes. However,
it may take longer for your changes to appear depending on the size of
the update queue. Please give it at least 6 hours before contacting
us.
| wordpress | {
"language": "en",
"length": 205,
"provenance": "stackexchange_00019.jsonl.gz:495074",
"question_score": "7",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/337225"
} | [
0.02685546875,
0.0062255859375,
-0.003978729248046875,
-0.0172119140625,
0.01654052734375,
-0.0003781318664550781,
0.0179595947265625,
-0.00809478759765625,
0.006320953369140625,
0.01611328125,
-0.040985107421875,
0.0219573974609375,
0.003948211669921875,
-0.01338958740234375,
-0.0013914108276367188,
-0.0251922607421875,
0.04046630859375,
-0.0273590087890625,
0.0224456787109375,
-0.0087738037109375,
0.007350921630859375,
0.0254974365234375,
0.022857666015625,
0.06390380859375,
0.04736328125,
-0.031158447265625,
0.08209228515625,
0.007549285888671875,
0.04620361328125,
-0.01666259765625,
0.036865234375,
-0.0472412109375,
0.0128326416015625,
0.019439697265625,
-0.02093505859375,
-0.0176239013671875,
0.053863525390625,
-0.02984619140625,
-0.020721435546875,
0.0740966796875,
0.027587890625,
-0.00904083251953125,
0.03643798828125,
-0.010101318359375,
0.027008056640625,
-0.055633544921875,
0.046600341796875,
-0.047454833984375,
-0.0217742919921875,
-0.03656005859375,
0.00852203369140625,
-0.004688262939453125,
0.0250701904296875,
0.00891876220703125,
0.00786590576171875,
0.03643798828125,
-0.037506103515625,
0.12939453125,
0.006847381591796875,
-0.010345458984375,
-0.019561767578125,
0.0616455078125,
0.004119873046875,
0.0226287841796875,
-0.01012420654296875,
0.0194549560546875,
0.03948974609375,
0.0022563934326171875,
-0.016326904296875,
-0.0286407470703125,
0.003936767578125,
-0.021697998046875,
-0.01314544677734375,
-0.00177764892578125,
-0.01128387451171875,
-0.014892578125,
0.0079498291015625,
-0.029571533203125,
0.019500732421875,
0.016326904296875,
0.0360107421875,
0.01290130615234375,
0.0002913475036621094,
-0.0179443359375,
0.0174560546875,
0.007598876953125,
-0.006557464599609375,
-0.022979736328125,
-0.03814697265625,
0.021636962890625,
-0.038726806640625,
0.01358795166015625,
-0.00208282470703125,
0.0030460357666015625,
-0.04571533203125,
0.034149169921875,
0.0059356689453125,
0.06500244140625,
-0.045501708984375,
0.022552490234375,
-0.0299530029296875,
-0.02398681640625,
0.026611328125,
-0.04052734375,
-0.01531219482421875,
-0.01629638671875,
0.0179290771484375,
-0.0191192626953125,
-0.005615234375,
0.02874755859375,
-0.0300140380859375,
0.002899169921875,
0.0032863616943359375,
-0.0277862548828125,
0.0124053955078125,
-0.0142669677734375,
-0.032867431640625,
0.047760009765625,
0.003326416015625,
0.00943756103515625,
-0.0105438232421875,
0.03326416015625,
-0.015167236328125,
-0.020721435546875,
-0.0196990966796875,
-0.01898193359375,
0.002105712890625,
-0.0457763671875,
-0.02044677734375,
-0.0204925537109375,
-0.028228759765625,
0.026214599609375,
0.00926971435546875,
0.0243682861328125,
-0.0183563232421875,
-0.002368927001953125,
0.031585693359375,
0.01102447509765625,
-0.03076171875,
0.034576416015625,
-0.036468505859375,
-0.0179443359375,
0.01013946533203125,
-0.07135009765625,
0.004974365234375,
0.0210113525390625,
-0.0113067626953125,
0.006168365478515625,
0.0236663818359375,
-0.00305938720703125,
-0.0229034423828125,
-0.03778076171875,
0.058868408203125,
-0.040313720703125,
-0.0144195556640625,
-0.091064453125,
0.0200347900390625,
-0.060455322265625,
0.0265045166015625,
-0.0743408203125,
-0.0155487060546875,
-0.0142669677734375,
0.022216796875,
0.019622802734375,
0.01537322998046875,
0.0286865234375,
-0.008758544921875,
0.017333984375,
0.0322265625,
0.0261077880859375,
0.01396942138671875,
-0.03228759765625,
0.060302734375,
0.0345458984375,
-0.01311492919921875,
0.031524658203125,
-0.0178680419921875,
0.03826904296875,
0.0271148681640625,
-0.027679443359375,
-0.02484130859375,
-0.033721923828125,
0.07733154296875,
-0.0185699462890625,
-0.0108795166015625,
-0.01800537109375,
-0.010162353515625,
0.0021514892578125,
0.008636474609375,
0.006561279296875,
0.01031494140625,
0.0014448165893554688,
-0.00908660888671875,
0.0157012939453125,
-0.0175628662109375,
-0.0009469985961914062,
0.01015472412109375,
0.056884765625,
-0.01318359375,
-0.061920166015625,
-0.037322998046875,
0.042724609375,
-0.0328369140625,
0.0000985264778137207,
-0.05169677734375,
0.022705078125,
-0.02581787109375,
0.05633544921875,
0.059661865234375,
0.0273590087890625,
-0.025848388671875,
0.004566192626953125,
0.000347137451171875,
0.00012743473052978516,
-0.0340576171875,
0.0005550384521484375,
0.0011205673217773438,
0.0013055801391601562,
0.0092010498046875,
0.006984710693359375,
-0.0124053955078125,
0.036651611328125,
-0.0200347900390625,
-0.004100799560546875,
0.009674072265625,
-0.0023441314697265625,
-0.0185394287109375,
-0.0022258758544921875,
0.0206451416015625,
0.02105712890625,
-0.012237548828125,
0.00614166259765625,
-0.0026607513427734375,
0.0270538330078125,
0.01800537109375,
0.001922607421875,
0.0279693603515625,
-0.0792236328125,
0.03448486328125,
0.022857666015625,
0.013702392578125,
0.0055694580078125,
-0.017333984375,
0.02728271484375,
0.00783538818359375,
-0.00971221923828125,
0.00582122802734375,
-0.0003695487976074219,
-0.0037631988525390625,
-0.005359649658203125,
0.03558349609375,
-0.025543212890625,
0.018707275390625,
-0.0078277587890625,
-0.0019683837890625,
0.01471710205078125,
0.01380157470703125,
-0.00043320655822753906,
-0.0302276611328125,
0.016571044921875,
0.004459381103515625,
-0.0123291015625,
-0.0228424072265625,
-0.001857757568359375,
0.0211944580078125,
-0.0010700225830078125,
0.0278778076171875,
0.03106689453125,
-0.0182037353515625,
-0.009429931640625,
0.0173797607421875,
0.048004150390625,
0.022796630859375,
0.037200927734375,
-0.0152587890625,
0.0137939453125,
0.019561767578125,
-0.019683837890625,
0.0206451416015625,
0.0216217041015625,
-0.0389404296875,
-0.0499267578125,
0.01407623291015625,
-0.0052490234375,
0.026031494140625,
-0.0018978118896484375,
0.0565185546875,
-0.0108795166015625,
-0.0174407958984375,
0.018829345703125,
0.049163818359375,
-0.045928955078125,
-0.038299560546875,
0.0027751922607421875,
-0.01605224609375,
-0.031707763671875,
0.0079345703125,
-0.04833984375,
0.033203125,
-0.03521728515625,
0.005237579345703125,
0.062164306640625,
0.0265655517578125,
-0.034332275390625,
0.014434814453125,
-0.007358551025390625,
0.007720947265625,
0.006557464599609375,
-0.010467529296875,
0.0335693359375,
-0.08721923828125,
0.0012569427490234375,
0.0150604248046875,
-0.01047515869140625,
-0.006183624267578125,
-0.033294677734375,
-0.0283355712890625,
-0.01535797119140625,
-0.1302490234375,
-0.06719970703125,
-0.0765380859375,
-0.034027099609375,
0.0281829833984375,
0.0029582977294921875,
0.01129150390625,
-0.00799560546875,
0.0067901611328125,
0.04150390625,
-0.007289886474609375,
-0.033721923828125,
-0.06573486328125,
-0.08184814453125,
-0.087890625,
-0.004138946533203125,
0.004886627197265625,
0.0254669189453125,
-0.00479888916015625,
0.035614013671875,
-0.01239776611328125,
-0.041473388671875,
-0.0303497314453125,
0.01629638671875,
-0.0121612548828125,
-0.032196044921875,
0.0033245086669921875,
0.001384735107421875,
-0.00595855712890625,
0.01517486572265625,
0.056793212890625,
0.05706787109375,
-0.056610107421875,
0.001983642578125,
-0.01424407958984375,
-0.04833984375,
0.00439453125,
-0.0200347900390625,
-0.0085601806640625,
-0.01702880859375,
0.0189056396484375,
-0.050262451171875,
0.040740966796875,
0.0248870849609375,
0.007305145263671875,
-0.02294921875,
-0.0287322998046875,
-0.035400390625,
-0.0012140274047851562,
-0.0003731250762939453,
-0.0640869140625,
-0.011627197265625,
0.07537841796875,
-0.05755615234375,
-0.0162200927734375,
-0.04168701171875,
-0.09881591796875,
-0.00911712646484375,
0.01471710205078125,
-0.0164031982421875,
0.016876220703125,
-0.00991058349609375,
0.006687164306640625,
-0.040435791015625,
0.040130615234375,
-0.07147216796875,
-0.0321044921875,
0.03521728515625,
-0.01441192626953125,
0.04266357421875,
-0.043731689453125,
-0.03460693359375,
-0.0074005126953125,
0.10736083984375,
0.0024471282958984375,
-0.020599365234375,
-0.0007619857788085938,
0.0012187957763671875,
-0.04144287109375,
-0.019622802734375,
-0.0260009765625,
-0.00766754150390625,
-0.0828857421875,
0.00939178466796875,
-0.0140533447265625,
0.0142974853515625,
-0.0191497802734375,
0.05963134765625,
-0.031524658203125,
-0.048309326171875,
0.0310516357421875,
-0.04168701171875,
-0.004108428955078125,
0.0276031494140625,
-0.0017271041870117188,
-0.0283050537109375,
-0.0193634033203125,
-0.0206756591796875,
-0.0509033203125,
0.0022144317626953125,
-0.036224365234375,
-0.01039886474609375,
0.018798828125,
-0.0218353271484375,
-0.020294189453125,
-0.0093841552734375,
0.01221466064453125,
0.0433349609375,
-0.040191650390625,
-0.0343017578125,
0.0033626556396484375,
0.0011310577392578125,
-0.00627899169921875,
-0.007556915283203125,
0.02935791015625,
-0.016357421875,
-0.052734375,
-0.01346588134765625,
-0.0242919921875,
0.017822265625,
0.007232666015625,
-0.03619384765625,
-0.0024089813232421875,
-0.0268707275390625,
-0.032745361328125,
-0.004791259765625,
-0.0089569091796875,
-0.0159759521484375,
-0.0270538330078125,
0.0014972686767578125,
0.019683837890625,
-0.01541900634765625,
-0.01739501953125,
0.016326904296875,
0.0595703125,
0.01861572265625,
-0.00415802001953125,
-0.0050201416015625,
0.0032939910888671875,
0.0202484130859375,
0.044769287109375,
0.047271728515625,
0.04412841796875,
0.01245880126953125,
-0.01271820068359375,
0.033660888671875,
0.018463134765625,
0.004451751708984375,
-0.015533447265625,
0.0214080810546875,
-0.027557373046875,
0.017791748046875,
0.046356201171875,
-0.01216888427734375,
0.02911376953125,
-0.02972412109375,
-0.0031795501708984375,
-0.0287628173828125,
-0.000270843505859375,
-0.0284423828125,
0.056427001953125,
0.01052093505859375,
-0.057403564453125,
0.034759521484375,
-0.01486968994140625,
0.0191192626953125,
0.00890350341796875,
-0.005523681640625,
0.0400390625,
-0.0029735565185546875,
-0.007366180419921875,
-0.032470703125,
-0.022735595703125,
-0.01629638671875,
0.0224151611328125,
-0.055145263671875,
-0.0278472900390625,
-0.01465606689453125,
-0.006134033203125,
0.0894775390625,
0.013275146484375,
-0.042449951171875,
0.0020313262939453125,
-0.0062255859375,
0.0302581787109375,
0.006221771240234375,
0.004474639892578125,
0.03448486328125,
0.04107666015625,
-0.0290069580078125,
-0.039764404296875,
-0.019073486328125,
0.030670166015625,
-0.057891845703125,
-0.014892578125,
-0.03759765625,
-0.007106781005859375,
0.011474609375,
-0.004703521728515625,
-0.03729248046875,
0.02142333984375,
-0.004924774169921875,
0.048858642578125,
0.072509765625,
-0.04534912109375,
-0.0013532638549804688,
0.0188446044921875,
0.0012340545654296875,
-0.05999755859375,
0.025146484375,
-0.00794219970703125,
-0.024566650390625,
-0.0026397705078125,
0.00836181640625,
0.001399993896484375,
0.01474761962890625,
0.03546142578125,
0.0224609375,
-0.00811004638671875,
-0.00431060791015625,
0.0250396728515625,
-0.0078277587890625,
0.0108795166015625,
0.031494140625,
0.0160980224609375,
0.015472412109375,
-0.017669677734375,
-0.021209716796875,
-0.0236968994140625,
0.00745391845703125,
-0.03143310546875,
-0.0184173583984375,
0.023193359375,
0.0137939453125,
0.00824737548828125,
-0.02374267578125,
-0.01922607421875,
0.0168914794921875,
0.0335693359375,
-0.028778076171875,
-0.018524169921875,
0.0240478515625,
0.006465911865234375,
0.021514892578125,
-0.03857421875,
-0.00638580322265625,
-0.039398193359375,
-0.0113067626953125,
0.0614013671875,
0.0220184326171875,
-0.07586669921875,
-0.007015228271484375,
-0.028411865234375,
-0.01085662841796875,
-0.0112457275390625,
-0.015838623046875,
-0.04705810546875,
0.0207977294921875,
0.01183319091796875,
0.0035610198974609375,
-0.02471923828125,
-0.0682373046875,
-0.01345062255859375,
-0.00007814168930053711,
0.037109375,
-0.0264434814453125,
0.016021728515625,
0.00917816162109375,
0.003444671630859375,
0.03955078125,
0.01125335693359375,
-0.0129852294921875,
-0.0302581787109375,
-0.01378631591796875,
0.02325439453125,
-0.001064300537109375,
-0.007328033447265625,
-0.041046142578125,
0.008697509765625,
-0.037811279296875,
0.0170135498046875,
-0.0026416778564453125,
0.01007080078125,
-0.018585205078125,
0.0026416778564453125,
-0.0030689239501953125,
0.032379150390625,
0.00020229816436767578,
-0.01212310791015625,
0.0310211181640625,
-0.07684326171875,
-0.02734375,
0.038330078125,
0.0213470458984375,
0.0386962890625,
-0.052642822265625,
0.01340484619140625,
0.04803466796875,
-0.002696990966796875,
0.0294036865234375,
0.0298309326171875,
-0.0078125,
0.042572021484375,
0.019256591796875,
0.0243072509765625,
-0.0007653236389160156,
-0.01448822021484375,
0.003986358642578125,
0.0018224716186523438,
0.0299224853515625,
-0.01097869873046875,
0.005615234375,
0.03240966796875,
-0.0189361572265625,
0.0279693603515625,
-0.0303497314453125,
0.051788330078125,
0.004032135009765625,
0.043212890625,
0.036376953125,
0.0009002685546875,
0.051544189453125,
0.00128173828125,
-0.032806396484375,
-0.080078125,
0.057525634765625,
-0.041290283203125,
-0.01261138916015625,
-0.00724029541015625,
-0.01473236083984375,
-0.0138397216796875,
-0.00817108154296875,
0.030975341796875,
0.03369140625,
-0.0350341796875,
0.016387939453125,
0.00897979736328125,
0.0202789306640625,
-0.02935791015625,
0.016265869140625,
0.029266357421875,
-0.01306915283203125,
-0.035064697265625,
0.06256103515625,
0.011444091796875,
-0.00431060791015625,
0.05291748046875,
0.00844573974609375,
-0.03155517578125,
0.040557861328125,
-0.0227508544921875,
0.02252197265625,
0.0176849365234375,
-0.05035400390625,
0.026611328125,
0.004749298095703125,
-0.0055084228515625,
0.0408935546875,
-0.0179595947265625,
-0.00353240966796875,
-0.01044464111328125,
0.0328369140625,
-0.003055572509765625,
0.01413726806640625,
0.0867919921875,
-0.05902099609375,
-0.00557708740234375,
0.045013427734375,
0.01523590087890625,
-0.03570556640625,
0.00392913818359375,
-0.0027713775634765625,
-0.010650634765625,
0.0345458984375,
-0.0014677047729492188,
0.027069091796875,
0.00634002685546875,
0.02447509765625,
-0.044830322265625,
0.07574462890625,
0.04473876953125,
0.00437164306640625,
0.00435638427734375,
0.02569580078125,
-0.0391845703125,
0.00830078125,
-0.0196990966796875,
0.026214599609375,
-0.06201171875,
0.04736328125,
-0.028900146484375,
0.0089874267578125,
0.017974853515625,
0.0142059326171875,
0.0201568603515625,
0.005382537841796875,
-0.05682373046875,
-0.0034694671630859375,
0.0293731689453125,
0.0277862548828125,
0.01806640625,
0.061553955078125,
-0.0158538818359375,
-0.002582550048828125,
0.0197906494140625,
-0.02923583984375,
0.0257720947265625,
-0.01233673095703125,
-0.015838623046875,
0.003871917724609375,
-0.007640838623046875,
-0.01165008544921875,
-0.019256591796875,
0.05712890625,
-0.007465362548828125,
-0.0120697021484375,
-0.006175994873046875,
0.0445556640625,
0.007465362548828125,
0.01221466064453125,
-0.01302337646484375,
0.05780029296875,
0.04681396484375,
-0.01209259033203125,
0.03173828125,
-0.0037250518798828125,
0.0287017822265625,
0.01345062255859375,
0.01061248779296875,
0.0384521484375,
0.013946533203125,
0.0237884521484375,
0.04217529296875,
-0.028839111328125,
0.055206298828125,
0.026458740234375,
0.03173828125,
-0.040435791015625,
-0.03955078125,
0.03521728515625,
0.0733642578125,
-0.0218048095703125,
-0.03912353515625,
-0.0054931640625,
-0.0079803466796875,
0.02587890625,
-0.0164642333984375,
0.006443023681640625,
-0.0220794677734375,
-0.004817962646484375,
-0.00368499755859375,
-0.0214385986328125,
0.0022125244140625,
0.0023784637451171875,
0.00008970499038696289,
-0.0014886856079101562,
0.0228271484375,
-0.018768310546875,
-0.023040771484375,
0.01123809814453125,
-0.0006084442138671875,
0.030548095703125,
0.018341064453125,
0.009490966796875,
-0.007904052734375,
-0.01316070556640625,
-0.00629425048828125,
0.0274200439453125,
0.006683349609375,
-0.007335662841796875,
-0.0214691162109375,
-0.033050537109375,
-0.0017871856689453125,
0.03302001953125,
0.00923919677734375,
-0.0229949951171875,
0.0174560546875,
0.045989990234375,
-0.031524658203125,
-0.015380859375,
0.034393310546875,
-0.003620147705078125,
0.045379638671875,
-0.0009908676147460938,
0.05072021484375,
0.0506591796875,
-0.0164947509765625,
-0.01309967041015625,
-0.0007982254028320312,
0.09552001953125,
-0.046295166015625,
0.0222930908203125,
-0.00749969482421875,
-0.048553466796875,
0.0560302734375,
-0.0194244384765625,
0.0721435546875,
-0.0189361572265625,
0.00940704345703125,
-0.0035190582275390625,
-0.0169677734375,
0.047454833984375,
-0.0118865966796875,
0.004791259765625,
0.0019855499267578125,
0.0537109375,
0.02264404296875,
0.00504302978515625,
0.01015472412109375,
-0.02789306640625,
0.02874755859375,
0.00859832763671875,
0.0215606689453125,
0.024383544921875,
-0.0233917236328125,
-0.0257568359375,
-0.03179931640625,
0.039306640625,
0.037872314453125,
0.07501220703125,
-0.016876220703125,
0.03802490234375,
0.006656646728515625,
-0.027587890625,
-0.002422332763671875,
-0.0411376953125,
0.07598876953125,
-0.02752685546875,
-0.034088134765625,
-0.005954742431640625,
-0.0780029296875,
0.04986572265625,
0.00421142578125,
0.006549835205078125,
0.04388427734375,
-0.0279083251953125,
0.01073455810546875,
0.020538330078125,
-0.01470184326171875,
-0.03759765625,
-0.0694580078125,
-0.04443359375,
0.033721923828125,
-0.0209197998046875,
-0.0172576904296875,
-0.05926513671875,
0.032470703125,
-0.02630615234375,
0.00438690185546875,
-0.045684814453125,
-0.005725860595703125,
-0.0933837890625,
0.01381683349609375,
0.0074615478515625,
0.01134490966796875,
-0.036102294921875,
-0.029693603515625,
0.0146484375,
-0.0189971923828125,
0.0083465576171875,
-0.01678466796875,
0.0276641845703125,
-0.0027370452880859375,
-0.0216522216796875,
-0.00225067138671875,
-0.032257080078125,
-0.014007568359375,
0.0054931640625,
0.00890350341796875,
-0.020751953125,
-0.0282745361328125,
-0.0093994140625,
-0.052276611328125,
0.0017614364624023438,
0.01837158203125,
-0.0104217529296875,
0.008453369140625,
0.007266998291015625,
0.0226593017578125,
0.033660888671875,
0.0181427001953125,
-0.0855712890625,
0.0347900390625,
0.003021240234375,
0.05224609375,
0.00812530517578125,
-0.037353515625,
0.0036182403564453125,
0.00899505615234375,
-0.01039886474609375,
-0.0257720947265625,
-0.040557861328125,
0.00897979736328125,
-0.0209197998046875,
-0.0235443115234375,
-0.01073455810546875,
-0.005199432373046875,
-0.0203857421875,
-0.0732421875,
-0.007129669189453125,
-0.0278167724609375,
0.050933837890625,
0.018280029296875,
0.042510986328125,
-0.0255126953125,
-0.0328369140625,
-0.029052734375,
0.029205322265625,
-0.0445556640625,
-0.050079345703125,
-0.00611114501953125,
-0.00638580322265625,
0.004199981689453125,
-0.034332275390625,
-0.04705810546875,
0.06060791015625,
-0.004787445068359375,
-0.032562255859375,
-0.06689453125,
-0.0296630859375,
-0.0026073455810546875,
0.0287017822265625,
-0.0164794921875,
-0.0179901123046875,
-0.054168701171875,
0.05145263671875,
-0.0101776123046875,
0.0924072265625,
-0.06170654296875,
0.0142669677734375,
-0.0058746337890625,
0.0377197265625,
0.0261993408203125,
0.01061248779296875,
-0.02618408203125,
-0.0144500732421875,
0.0182952880859375,
0.0179901123046875,
-0.0187530517578125,
-0.01849365234375,
0.035369873046875,
0.0170440673828125,
-0.019317626953125,
-0.007648468017578125,
-0.04595947265625,
-0.032073974609375,
0.10235595703125,
0.0552978515625,
0.029449462890625,
-0.016632080078125,
0.0477294921875,
0.0221099853515625,
-0.057891845703125,
-0.0210418701171875,
0.02838134765625,
-0.055267333984375,
-0.032257080078125,
-0.002552032470703125,
-0.0195770263671875,
-0.00284576416015625,
-0.01556396484375,
-0.04022216796875,
-0.00537109375,
0.004947662353515625,
0.0015211105346679688,
-0.005580902099609375,
-0.03375244140625,
-0.0167694091796875,
0.0194854736328125,
0.044921875,
-0.009918212890625,
0.025909423828125,
0.021331787109375,
0.0863037109375,
0.01058197021484375,
0.0169219970703125,
-0.0294952392578125,
0.005359649658203125,
0.015289306640625,
0.02838134765625,
-0.00972747802734375,
-0.02557373046875,
0.0156707763671875,
0.01451873779296875,
-0.01018524169921875,
0.01282501220703125,
-0.01148223876953125,
0.05694580078125,
-0.01457977294921875,
0.0704345703125,
0.007724761962890625,
-0.0148468017578125,
-0.0264434814453125,
0.043121337890625,
-0.03021240234375,
-0.00894927978515625,
-0.0284576416015625,
-0.0089263916015625,
0.0194091796875,
0.0225677490234375,
0.05291748046875,
0.005031585693359375,
0.02545166015625,
-0.046234130859375,
0.005138397216796875,
0.004482269287109375
] |