id
stringlengths
40
40
text
stringlengths
29
2.03k
original_text
stringlengths
3
154k
subdomain
stringclasses
20 values
metadata
dict
emb
listlengths
1.02k
1.02k
9cf12674305b9c23c0e0e8590e7df008b0be6f51
Wordpress Stackexchange Q: stop blog page from using index.php? I have a static homepage with a custom template I.E hompage.php the blog loop is set to a static page named blogg, it uses the index.php page as a template, there a collection of other pages using the index.php as the default template so i am reluctant to change it. is there anyway to stop the blogg page from using index.php and give the blog page it's own template page such as blogg-template.php? kind regards Chris A: You need to refer to the Template Hierarchy to understand what you need to do. Specifically, you need the "Home Page Template" section. To modify the blog page (aka "Page for Posts) (which is the "home" page, even if it's not set as your "front page"), you should use the home.php template. The blog will automatically use it. index.php is only used for your blog if home.php is not present in your theme's folder. If you try to select a Custom Page Template on the page set to the "Page For Posts" setting on Settings > Reading, it will be ignored. You have to use home.php.
Q: stop blog page from using index.php? I have a static homepage with a custom template I.E hompage.php the blog loop is set to a static page named blogg, it uses the index.php page as a template, there a collection of other pages using the index.php as the default template so i am reluctant to change it. is there anyway to stop the blogg page from using index.php and give the blog page it's own template page such as blogg-template.php? kind regards Chris A: You need to refer to the Template Hierarchy to understand what you need to do. Specifically, you need the "Home Page Template" section. To modify the blog page (aka "Page for Posts) (which is the "home" page, even if it's not set as your "front page"), you should use the home.php template. The blog will automatically use it. index.php is only used for your blog if home.php is not present in your theme's folder. If you try to select a Custom Page Template on the page set to the "Page For Posts" setting on Settings > Reading, it will be ignored. You have to use home.php. A: Please consult the Template Hierarchy, and ensure that you are using the correct names for template files. * *index.php should be left as the default fallback for all other template files *The site front page template file name is front-page.php. You need to rename your homepage.php as front-page.php *The blog posts index page template file name is home.php. WordPress will always and only ever use either home.php or index.php for the blog posts index (unless the blog posts index is set to display on the site front page, and front-page.php exists). No other template files will be used, regardless of what you name them, or whether or not you assign them as custom page templates to the page used to render the blog posts index. Step-by-step: * *Create front-page.php as your custom front-page template *Create home.php as your blog posts index page template *Leave index.php alone *Create two static pages, of any name; e.g. "Front Page" and "Blog" *Go to Dashboard -> Settings -> Reading *Set Front Page Displays to a static page *Set Front page dropdown to "Front Page" static page created in step 4 *Set Posts page dropdown to "Blog" static page created in step 4
wordpress
{ "language": "en", "length": 389, "provenance": "stackexchange_00019.jsonl.gz:431315", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/95902" }
[ 0.0181121826171875, -0.0033092498779296875, 0.0122222900390625, 0.032318115234375, 0.000370025634765625, -0.0307769775390625, 0.069091796875, -0.052276611328125, 0.0156707763671875, -0.0060577392578125, -0.0238037109375, 0.004055023193359375, -0.025360107421875, -0.031341552734375, 0.0296478271484375, -0.023040771484375, 0.049835205078125, -0.05255126953125, 0.0099334716796875, -0.0021190643310546875, 0.0014867782592773438, 0.005580902099609375, 0.03338623046875, 0.061859130859375, 0.006221771240234375, -0.0212860107421875, 0.06170654296875, -0.0202789306640625, -0.01904296875, -0.034759521484375, 0.017242431640625, 0.0235137939453125, 0.031341552734375, 0.041900634765625, -0.0660400390625, -0.0017681121826171875, -0.007228851318359375, 0.02679443359375, -0.0182037353515625, 0.033233642578125, -0.02520751953125, 0.02044677734375, 0.024566650390625, 0.032745361328125, -0.0282745361328125, -0.018768310546875, -0.01523590087890625, -0.03253173828125, 0.020751953125, -0.01531982421875, 0.0095977783203125, -0.0048370361328125, 0.0087890625, -0.0006542205810546875, -0.02728271484375, -0.027252197265625, 0.00537109375, -0.02349853515625, 0.020263671875, -0.046112060546875, -0.0163421630859375, 0.00856781005859375, 0.022308349609375, 0.039154052734375, 0.008087158203125, -0.03558349609375, -0.039276123046875, 0.02197265625, -0.05816650390625, 0.01511383056640625, 0.054595947265625, -0.049774169921875, 0.0180511474609375, -0.054412841796875, -0.0228118896484375, 0.0211029052734375, -0.020050048828125, -0.03509521484375, 0.01934814453125, -0.0192108154296875, -0.020233154296875, -0.017669677734375, -0.02410888671875, -0.04949951171875, 0.0006756782531738281, -0.039459228515625, -0.00579071044921875, 0.00989532470703125, 0.004001617431640625, -0.031402587890625, -0.00997161865234375, 0.018951416015625, -0.027496337890625, -0.0239715576171875, -0.0171966552734375, -0.025299072265625, -0.00783538818359375, 0.0188140869140625, -0.0196380615234375, -0.01413726806640625, -0.02264404296875, -0.0148773193359375, 0.00702667236328125, -0.019622802734375, 0.0024852752685546875, 0.0645751953125, 0.0189361572265625, 0.04156494140625, 0.037750244140625, 0.0138397216796875, 0.034576416015625, 0.0186309814453125, -0.0279693603515625, -0.059051513671875, -0.00988006591796875, 0.0170745849609375, -0.042327880859375, -0.0236358642578125, 0.01499176025390625, -0.0638427734375, 0.003692626953125, 0.04803466796875, 0.0127410888671875, -0.053131103515625, 0.0209808349609375, 0.005626678466796875, -0.00055694580078125, -0.061248779296875, 0.00708770751953125, 0.00942230224609375, -0.022003173828125, -0.000537872314453125, 0.0108184814453125, 0.039459228515625, 0.01201629638671875, -0.021209716796875, 0.01070404052734375, -0.0187835693359375, -0.020721435546875, 0.0038585662841796875, 0.0042724609375, -0.047576904296875, -0.035003662109375, -0.0147857666015625, -0.0266571044921875, 0.006015777587890625, 0.0214080810546875, 0.026702880859375, -0.0164947509765625, -0.021148681640625, -0.032135009765625, 0.0081024169921875, 0.02813720703125, 0.0197906494140625, 0.0299224853515625, -0.0465087890625, 0.036163330078125, -0.03692626953125, 0.020904541015625, -0.0404052734375, -0.0006108283996582031, 0.00567626953125, 0.01496124267578125, -0.068115234375, -0.04962158203125, -0.03515625, -0.0215301513671875, -0.00830841064453125, 0.0285797119140625, -0.016632080078125, 0.044921875, -0.0093231201171875, 0.0205535888671875, 0.0157928466796875, 0.019500732421875, 0.004058837890625, -0.0132904052734375, 0.00696563720703125, 0.0267791748046875, 0.05560302734375, 0.02227783203125, -0.01461029052734375, 0.032928466796875, 0.00710296630859375, -0.07281494140625, 0.0109710693359375, 0.034698486328125, 0.05145263671875, -0.0006532669067382812, 0.021087646484375, 0.0943603515625, 0.0039825439453125, -0.04583740234375, 0.0758056640625, 0.03350830078125, -0.0343017578125, -0.04443359375, -0.018096923828125, -0.0034847259521484375, -0.052764892578125, 0.002323150634765625, 0.0233306884765625, 0.0003781318664550781, -0.0148162841796875, -0.0257568359375, -0.0226287841796875, -0.006412506103515625, 0.042266845703125, 0.01267242431640625, 0.0423583984375, 0.002071380615234375, 0.00179290771484375, -0.01898193359375, -0.017303466796875, -0.01995849609375, 0.00433349609375, 0.00799560546875, 0.0670166015625, 0.01139068603515625, 0.0030345916748046875, 0.00864410400390625, -0.054473876953125, 0.005428314208984375, 0.0068511962890625, 0.05877685546875, -0.054718017578125, -0.0160980224609375, -0.06573486328125, -0.044952392578125, -0.003536224365234375, -0.1494140625, 0.08380126953125, -0.00827789306640625, -0.0137481689453125, -0.04278564453125, 0.0083770751953125, -0.0167388916015625, -0.02911376953125, 0.00229644775390625, 0.061431884765625, 0.014190673828125, -0.000023543834686279297, -0.0223846435546875, 0.00992584228515625, 0.0019168853759765625, -0.0220184326171875, 0.0150299072265625, -0.0023212432861328125, 0.01067352294921875, 0.031951904296875, -0.04998779296875, -0.01390838623046875, 0.028778076171875, -0.05859375, -0.0153350830078125, 0.0251312255859375, 0.01380157470703125, -0.0113525390625, -0.0001329183578491211, 0.00855255126953125, 0.009429931640625, 0.0438232421875, -0.030914306640625, 0.02728271484375, 0.0292816162109375, 0.007904052734375, 0.044921875, 0.041473388671875, -0.0304718017578125, -0.0114898681640625, 0.0118255615234375, 0.038330078125, 0.0037841796875, 0.0016736984252929688, 0.01285552978515625, 0.00928497314453125, -0.034393310546875, -0.006595611572265625, 0.0245819091796875, 0.0034885406494140625, -0.0235748291015625, 0.023040771484375, -0.030670166015625, -0.01361083984375, -0.039764404296875, -0.0703125, 0.007488250732421875, 0.03839111328125, -0.006992340087890625, -0.0081787109375, -0.00543212890625, 0.0261077880859375, -0.0340576171875, 0.03839111328125, 0.03424072265625, -0.0306243896484375, -0.040313720703125, -0.051971435546875, 0.038909912109375, -0.0224456787109375, 0.066162109375, 0.08447265625, 0.01129913330078125, 0.0198516845703125, 0.00502777099609375, -0.0029010772705078125, 0.004482269287109375, 0.0028705596923828125, -0.00897979736328125, 0.0223846435546875, -0.060546875, 0.0218963623046875, 0.0201416015625, 0.05316162109375, 0.00641632080078125, -0.0097198486328125, 0.01143646240234375, 0.0280303955078125, -0.033050537109375, -0.06512451171875, 0.041107177734375, -0.0269317626953125, 0.016204833984375, -0.037841796875, -0.0033664703369140625, -0.03741455078125, -0.0206451416015625, -0.0033397674560546875, -0.02081298828125, -0.04058837890625, -0.0732421875, -0.1004638671875, -0.0867919921875, -0.038543701171875, -0.01154327392578125, 0.008392333984375, 0.0009317398071289062, 0.0269622802734375, -0.00789642333984375, -0.045135498046875, -0.00023698806762695312, -0.036285400390625, -0.01383209228515625, -0.014007568359375, 0.0194854736328125, -0.054229736328125, 0.0079803466796875, 0.003986358642578125, 0.00547027587890625, 0.007205963134765625, -0.0039043426513671875, -0.011749267578125, -0.061248779296875, -0.045806884765625, -0.03875732421875, 0.040252685546875, 0.07611083984375, -0.0198974609375, 0.00978851318359375, -0.0379638671875, -0.06524658203125, -0.00908660888671875, -0.08349609375, -0.017547607421875, 0.061279296875, 0.0167388916015625, -0.0216217041015625, -0.017608642578125, 0.00455474853515625, 0.015350341796875, -0.01313018798828125, -0.013092041015625, 0.051727294921875, -0.0025119781494140625, 0.006610870361328125, -0.01047515869140625, 0.019561767578125, -0.0219573974609375, 0.01348876953125, 0.0100860595703125, -0.0092010498046875, -0.00951385498046875, -0.01568603515625, -0.04833984375, -0.0233612060546875, 0.01480865478515625, -0.0164642333984375, 0.0265045166015625, -0.0007777214050292969, -0.00005614757537841797, 0.02960205078125, 0.0560302734375, -0.05181884765625, -0.0111541748046875, 0.013275146484375, -0.0038700103759765625, -0.006626129150390625, 0.0020503997802734375, -0.06854248046875, -0.01102447509765625, -0.00872039794921875, 0.0086822509765625, -0.0277252197265625, -0.005893707275390625, 0.0017538070678710938, -0.005329132080078125, 0.020660400390625, -0.034881591796875, 0.019561767578125, 0.0267333984375, -0.02532958984375, 0.028167724609375, -0.0157623291015625, -0.005825042724609375, 0.009033203125, -0.0018815994262695312, -0.07672119140625, -0.01220703125, -0.007183074951171875, 0.0322265625, 0.0093994140625, -0.0291595458984375, -0.012847900390625, 0.04498291015625, 0.01136016845703125, 0.01544189453125, 0.004650115966796875, -0.0160980224609375, 0.031524658203125, 0.017730712890625, 0.0025920867919921875, -0.0035037994384765625, 0.0224456787109375, 0.028411865234375, -0.043975830078125, 0.03521728515625, -0.0268096923828125, -0.0180511474609375, 0.030120849609375, -0.037628173828125, -0.07562255859375, -0.03985595703125, -0.00970458984375, 0.00974273681640625, 0.01495361328125, -0.005031585693359375, -0.049346923828125, -0.058135986328125, 0.04144287109375, 0.005584716796875, 0.0015306472778320312, -0.00717926025390625, 0.09710693359375, 0.0264892578125, -0.0230560302734375, -0.0015420913696289062, 0.0157012939453125, 0.034088134765625, 0.017059326171875, 0.0767822265625, 0.020355224609375, -0.0144195556640625, 0.07098388671875, 0.006824493408203125, -0.04150390625, -0.018280029296875, 0.0528564453125, -0.01464080810546875, -0.058197021484375, 0.034576416015625, -0.038299560546875, 0.048187255859375, 0.032562255859375, -0.008697509765625, 0.003261566162109375, 0.01296234130859375, 0.01404571533203125, -0.0302581787109375, 0.0142669677734375, -0.0283966064453125, -0.0335693359375, 0.004222869873046875, -0.01509857177734375, 0.0112457275390625, 0.003467559814453125, 0.01184844970703125, 0.00948333740234375, 0.0289306640625, -0.00571441650390625, 0.049468994140625, 0.01154327392578125, 0.039886474609375, 0.01617431640625, 0.049835205078125, -0.0086517333984375, 0.01131439208984375, 0.005035400390625, -0.037384033203125, 0.00978851318359375, -0.0582275390625, 0.01513671875, 0.021209716796875, -0.0159149169921875, -0.0069732666015625, -0.0024967193603515625, 0.0174560546875, -0.0008087158203125, -0.00557708740234375, 0.0021820068359375, -0.0012216567993164062, -0.030059814453125, -0.0255279541015625, -0.00798797607421875, 0.03363037109375, -0.0269927978515625, 0.02044677734375, 0.0288238525390625, 0.0276031494140625, 0.00591278076171875, -0.0295257568359375, 0.016571044921875, 0.01412200927734375, 0.020538330078125, -0.00432586669921875, 0.0372314453125, 0.00882720947265625, -0.015350341796875, 0.04058837890625, -0.0207366943359375, -0.01493072509765625, -0.004123687744140625, 0.043060302734375, 0.0139312744140625, -0.0094146728515625, -0.016387939453125, -0.039154052734375, 0.0160675048828125, 0.0188140869140625, -0.046356201171875, -0.021484375, -0.03021240234375, -0.0242462158203125, 0.034912109375, -0.016754150390625, -0.00949859619140625, -0.004100799560546875, -0.0133209228515625, 0.02587890625, -0.02178955078125, -0.02362060546875, 0.00704193115234375, 0.01125335693359375, -0.01003265380859375, -0.0158233642578125, 0.037750244140625, -0.10760498046875, -0.00852203369140625, -0.0297088623046875, 0.005817413330078125, 0.0275115966796875, -0.004192352294921875, 0.04736328125, -0.013641357421875, -0.044281005859375, -0.0021419525146484375, 0.02349853515625, 0.0204925537109375, 0.0087890625, -0.09564208984375, 0.023895263671875, -0.09271240234375, -0.018951416015625, -0.058074951171875, -0.041229248046875, -0.07342529296875, 0.0008859634399414062, 0.0194854736328125, 0.007266998291015625, 0.0094757080078125, 0.0012359619140625, -0.0457763671875, 0.0270538330078125, 0.0189666748046875, 0.055633544921875, -0.046722412109375, 0.053924560546875, 0.01534271240234375, 0.0146026611328125, -0.0018415451049804688, 0.03643798828125, 0.0280914306640625, -0.021697998046875, 0.0131683349609375, -0.0172271728515625, -0.02520751953125, -0.00617218017578125, -0.053466796875, 0.0208740234375, 0.09466552734375, -0.006023406982421875, -0.0216827392578125, -0.006832122802734375, 0.01468658447265625, -0.048004150390625, 0.0029296875, -0.03497314453125, -0.053955078125, -0.0082855224609375, -0.0021686553955078125, -0.005870819091796875, 0.01328277587890625, -0.0131683349609375, 0.01425933837890625, 0.020355224609375, -0.0016927719116210938, -0.03662109375, -0.047576904296875, 0.06109619140625, 0.0809326171875, 0.0053558349609375, 0.055450439453125, 0.01110076904296875, 0.01641845703125, 0.0182952880859375, 0.04229736328125, -0.036376953125, -0.042694091796875, 0.01220703125, 0.001995086669921875, -0.021270751953125, 0.01079559326171875, -0.01401519775390625, 0.01194000244140625, 0.072265625, 0.0546875, -0.10137939453125, -0.0008449554443359375, 0.0108642578125, 0.01119232177734375, 0.032012939453125, 0.008331298828125, 0.01036834716796875, -0.0201263427734375, 0.017547607421875, 0.0042877197265625, -0.01012420654296875, -0.004390716552734375, -0.01171875, 0.002979278564453125, -0.006397247314453125, 0.046539306640625, 0.01119232177734375, -0.0176849365234375, -0.003017425537109375, 0.0161285400390625, -0.003086090087890625, 0.0114898681640625, 0.02294921875, -0.01885986328125, -0.0242919921875, -0.02923583984375, -0.00482940673828125, -0.0155181884765625, -0.036102294921875, 0.034027099609375, 0.0007886886596679688, -0.0106658935546875, 0.0245361328125, -0.023406982421875, 0.04681396484375, -0.0239410400390625, -0.0140380859375, 0.0004558563232421875, -0.0011262893676757812, 0.005886077880859375, -0.024383544921875, -0.0146942138671875, 0.00470733642578125, -0.0233917236328125, -0.0278472900390625, -0.0182342529296875, -0.029144287109375, 0.08868408203125, 0.005176544189453125, -0.0499267578125, 0.0048675537109375, -0.011566162109375, -0.010284423828125, -0.0303802490234375, 0.00469207763671875, -0.05413818359375, -0.0126190185546875, -0.01522064208984375, -0.02105712890625, -0.035064697265625, -0.048248291015625, -0.0295257568359375, 0.07476806640625, -0.056182861328125, 0.017364501953125, 0.026763916015625, 0.04071044921875, 0.0204925537109375, 0.036651611328125, -0.018951416015625, 0.041473388671875, -0.0309295654296875, 0.05596923828125, -0.05657958984375, -0.00170135498046875, 0.0159912109375, 0.0382080078125, 0.035888671875, 0.01186370849609375, -0.0074615478515625, -0.025970458984375, 0.00977325439453125, -0.0027561187744140625, -0.03399658203125, 0.03509521484375, -0.0286865234375, 0.03033447265625, -0.0161590576171875, -0.059844970703125, 0.01049041748046875, -0.008819580078125, -0.04046630859375, 0.004360198974609375, 0.012115478515625, -0.0091400146484375, 0.028045654296875, -0.006748199462890625, -0.047149658203125, 0.01904296875, 0.0239715576171875, -0.016204833984375, -0.0214385986328125, 0.051116943359375, 0.058013916015625, -0.0465087890625, -0.039398193359375, -0.0303802490234375, 0.051666259765625, 0.02587890625, -0.00563812255859375, -0.01323699951171875, 0.012969970703125, -0.00421905517578125, -0.022125244140625, -0.0237579345703125, 0.046783447265625, -0.035308837890625, 0.017730712890625, 0.03912353515625, 0.02679443359375, -0.004604339599609375, 0.011444091796875, 0.0117645263671875, 0.01430511474609375, -0.0308380126953125, -0.01116943359375, 0.00405120849609375, -0.0299835205078125, -0.018218994140625, -0.03778076171875, -0.036224365234375, 0.0107879638671875, 0.002185821533203125, -0.00577545166015625, 0.021026611328125, 0.0157470703125, -0.0168609619140625, 0.013031005859375, 0.0299072265625, -0.018280029296875, 0.043060302734375, 0.00586700439453125, -0.0047454833984375, -0.01049041748046875, 0.0083770751953125, 0.00098419189453125, 0.0311126708984375, -0.036376953125, 0.0126953125, -0.04132080078125, 0.052215576171875, -0.022613525390625, 0.059356689453125, -0.09222412109375, -0.048736572265625, 0.0036869049072265625, 0.04827880859375, 0.0059051513671875, 0.039703369140625, 0.024932861328125, -0.0019931793212890625, 0.0019407272338867188, 0.00640869140625, 0.04559326171875, -0.0236663818359375, -0.004058837890625, -0.0296783447265625, -0.0179443359375, -0.0293426513671875, -0.01727294921875, 0.0027408599853515625, 0.011932373046875, 0.0023136138916015625, 0.004817962646484375, 0.01300811767578125, 0.00109100341796875, -0.042083740234375, 0.0477294921875, 0.00844573974609375, 0.06939697265625, 0.0256805419921875, -0.0178375244140625, -0.01285552978515625, -0.024139404296875, -0.00395965576171875, 0.00566864013671875, 0.02728271484375, 0.0024776458740234375, 0.01537322998046875, 0.01006317138671875, 0.0213775634765625, -0.020416259765625, -0.037017822265625, 0.0256195068359375, 0.0231475830078125, 0.029876708984375, 0.03912353515625, -0.052642822265625, -0.0465087890625, -0.0163116455078125, 0.0543212890625, -0.0035915374755859375, 0.11297607421875, -0.044921875, 0.008148193359375, -0.0211639404296875, 0.007625579833984375, -0.01397705078125, -0.00942230224609375, -0.0316162109375, 0.00786590576171875, 0.0166168212890625, 0.0010395050048828125, -0.07647705078125, 0.0260772705078125, 0.044586181640625, -0.0159454345703125, 0.041778564453125, -0.0010347366333007812, -0.005069732666015625, -0.05023193359375, 0.0031871795654296875, -0.028472900390625, -0.0150604248046875, -0.0136871337890625, 0.002094268798828125, 0.02032470703125, -0.01322174072265625, -0.01983642578125, 0.0672607421875, -0.04632568359375, -0.021484375, 0.0195159912109375, -0.06097412109375, 0.01195526123046875, 0.0159912109375, 0.01343536376953125, -0.0390625, 0.0208282470703125, -0.0035076141357421875, 0.00212860107421875, 0.01511383056640625, 0.04425048828125, 0.036712646484375, -0.036163330078125, 0.032440185546875, 0.0007543563842773438, 0.042144775390625, -0.01812744140625, 0.00946807861328125, 0.0126953125, 0.004344940185546875, 0.0184326171875, -0.00875091552734375, -0.018951416015625, -0.0034027099609375, 0.006702423095703125, 0.029571533203125, -0.02398681640625, -0.0207061767578125, -0.08203125, -0.01715087890625, 0.007076263427734375, -0.021270751953125, -0.015899658203125, 0.019134521484375, -0.047149658203125, 0.0231170654296875, -0.034576416015625, 0.03448486328125, -0.00553131103515625, 0.01629638671875, -0.048675537109375, 0.021087646484375, -0.019317626953125, -0.009490966796875, 0.004375457763671875, 0.018524169921875, 0.046539306640625, -0.0016574859619140625, -0.0019550323486328125, -0.0068206787109375, -0.0338134765625, 0.048095703125, -0.0692138671875, -0.00360870361328125, 0.027496337890625, 0.004215240478515625, -0.0164337158203125, -0.0740966796875, -0.0083770751953125, -0.0457763671875, 0.01213836669921875, 0.0282440185546875, -0.050872802734375, -0.0257720947265625, -0.055145263671875, -0.0657958984375, 0.031219482421875, 0.00809478759765625, -0.042999267578125, -0.036651611328125, 0.0193023681640625, -0.005947113037109375, 0.0083160400390625, -0.00972747802734375, -0.0209808349609375, -0.0034694671630859375, 0.034271240234375, 0.006923675537109375, 0.01348876953125, 0.037322998046875, -0.011260986328125, 0.006984710693359375, 0.01535797119140625, 0.015167236328125, -0.0196380615234375, -0.0081024169921875, 0.006366729736328125, 0.025543212890625, 0.023895263671875, -0.0194091796875, 0.046844482421875, 0.0197601318359375, 0.006961822509765625, -0.002307891845703125, -0.0271148681640625, -0.021453857421875, -0.00787353515625, 0.05047607421875, 0.035614013671875, 0.0185699462890625, -0.02899169921875, -0.009735107421875, -0.041656494140625, -0.037261962890625, -0.00867462158203125, 0.0218658447265625, -0.054595947265625, 0.019989013671875, 0.0194854736328125, -0.045623779296875, -0.0188140869140625, -0.011749267578125, -0.06842041015625, 0.0161285400390625, -0.01296234130859375, -0.001987457275390625, 0.006290435791015625, -0.025726318359375, 0.031585693359375, -0.009857177734375, 0.05352783203125, -0.042755126953125, 0.03350830078125, 0.034881591796875, -0.00844573974609375, 0.005237579345703125, -0.00504302978515625, -0.005889892578125, 0.00821685791015625, 0.0206298828125, -0.00833892822265625, -0.0012264251708984375, -0.02252197265625, 0.0088653564453125, 0.00391387939453125, -0.007747650146484375, -0.002918243408203125, -0.00667572021484375, 0.016448974609375, -0.03448486328125, 0.05438232421875, 0.0189056396484375, 0.0081634521484375, 0.001499176025390625, 0.0241241455078125, -0.0192413330078125, -0.0183868408203125, -0.0017490386962890625, -0.037872314453125, 0.0035114288330078125, -0.0300140380859375, 0.00131988525390625, -0.0247039794921875, 0.0034084320068359375, -0.042694091796875, -0.0313720703125, 0.0044708251953125 ]
0264e34ca789fb7b6d173f82ffd748a1b6498b37
Wordpress Stackexchange Q: display specific custom fields I have few custom field assigned for each post, like: "Club" with value "club1" "Date" with value "date1" and so on... Now, I want to display from all the custom fields just those 2 " club" and "date". This is my markup : <div class="meta-container"><?php the_meta(); ?></div> The problem with this, is that is retrieving all the custom fields and I don't want this. I was thinking to add css psedoselector like nth:child(n) but I'm sure that I can do this with this function. Thank you! A: You should use get_post_meta() twice (Ref to your other question): <?php echo get_post_meta( get_the_ID(), 'club', true ); echo '<br />'; echo get_post_meta( get_the_ID(), 'date', true ); ?>
Q: display specific custom fields I have few custom field assigned for each post, like: "Club" with value "club1" "Date" with value "date1" and so on... Now, I want to display from all the custom fields just those 2 " club" and "date". This is my markup : <div class="meta-container"><?php the_meta(); ?></div> The problem with this, is that is retrieving all the custom fields and I don't want this. I was thinking to add css psedoselector like nth:child(n) but I'm sure that I can do this with this function. Thank you! A: You should use get_post_meta() twice (Ref to your other question): <?php echo get_post_meta( get_the_ID(), 'club', true ); echo '<br />'; echo get_post_meta( get_the_ID(), 'date', true ); ?> A: Oddly enough, one of your tags is exactly what you need! You're looking for WordPress' get_post_meta function: http://codex.wordpress.org/Function_Reference/get_post_meta Within the loop, it would look something like this: <?php echo get_post_meta(get_the_ID(), 'Club', true); ?>
wordpress
{ "language": "en", "length": 153, "provenance": "stackexchange_00019.jsonl.gz:431328", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/95958" }
[ 0.0316162109375, -0.0013532638549804688, 0.016448974609375, -0.0188751220703125, -0.032073974609375, -0.00428009033203125, 0.00548553466796875, -0.03839111328125, 0.009307861328125, 0.0071258544921875, -0.009552001953125, -0.004108428955078125, -0.061187744140625, -0.038482666015625, -0.003566741943359375, -0.048858642578125, 0.03582763671875, -0.0259552001953125, 0.02618408203125, -0.0089263916015625, 0.045440673828125, 0.00867462158203125, 0.0074462890625, 0.02508544921875, 0.04718017578125, -0.0782470703125, 0.0103302001953125, 0.006679534912109375, 0.03302001953125, 0.0015430450439453125, 0.02471923828125, -0.0121612548828125, 0.0187835693359375, -0.0021820068359375, 0.01313018798828125, 0.0161285400390625, 0.0300140380859375, -0.00867462158203125, 0.0114593505859375, 0.0310211181640625, 0.0067138671875, -0.004840850830078125, -0.01084136962890625, -0.0261993408203125, -0.0127105712890625, -0.023284912109375, 0.0298919677734375, -0.01404571533203125, 0.0002579689025878906, -0.0057525634765625, -0.01024627685546875, 0.01132965087890625, -0.003971099853515625, -0.0167236328125, 0.0024871826171875, -0.00894927978515625, -0.019439697265625, -0.04833984375, 0.0181884765625, 0.02423095703125, 0.00817108154296875, -0.0268096923828125, 0.024505615234375, -0.0009088516235351562, -0.01497650146484375, -0.0238494873046875, -0.0236968994140625, 0.019439697265625, -0.0374755859375, -0.03173828125, 0.043853759765625, -0.028228759765625, 0.006290435791015625, -0.03375244140625, -0.036163330078125, -0.0014848709106445312, -0.016998291015625, -0.04290771484375, 0.01255035400390625, -0.0264892578125, -0.01085662841796875, 0.005496978759765625, -0.07080078125, -0.0034160614013671875, 0.0197601318359375, 0.0274658203125, -0.0191497802734375, -0.0204620361328125, 0.01053619384765625, -0.0338134765625, -0.0005297660827636719, -0.05694580078125, -0.032989501953125, 0.0164642333984375, 0.0175018310546875, -0.052001953125, 0.00023984909057617188, 0.04205322265625, -0.0238037109375, -0.041412353515625, 0.00998687744140625, -0.0168914794921875, -0.03802490234375, -0.0171661376953125, 0.024444580078125, 0.032470703125, -0.0162200927734375, -0.013214111328125, 0.050628662109375, 0.016265869140625, 0.00939178466796875, 0.0292816162109375, -0.010833740234375, 0.01300048828125, -0.043701171875, -0.00543975830078125, -0.0292510986328125, -0.033843994140625, -0.02825927734375, -0.032196044921875, 0.040618896484375, 0.0240936279296875, 0.02471923828125, -0.06396484375, -0.019378662109375, -0.03570556640625, -0.07550048828125, -0.005245208740234375, 0.0302276611328125, -0.0033740997314453125, -0.053070068359375, -0.0096588134765625, 0.07708740234375, 0.06494140625, 0.0545654296875, -0.003429412841796875, 0.02337646484375, -0.052001953125, -0.0036334991455078125, 0.045562744140625, -0.0517578125, -0.03668212890625, 0.03863525390625, -0.02496337890625, -0.0301055908203125, 0.01068115234375, 0.0155792236328125, 0.0139007568359375, -0.01404571533203125, -0.045654296875, -0.0439453125, 0.0283050537109375, 0.02166748046875, 0.022674560546875, -0.005367279052734375, 0.027679443359375, 0.08758544921875, -0.041717529296875, -0.0587158203125, -0.049346923828125, 0.023193359375, -0.016143798828125, -0.00597381591796875, -0.01082611083984375, -0.0207977294921875, -0.0009388923645019531, -0.038848876953125, 0.00011724233627319336, 0.027008056640625, -0.023651123046875, 0.0265350341796875, -0.01032257080078125, 0.039154052734375, 0.00936126708984375, -0.003429412841796875, 0.036102294921875, -0.0016155242919921875, 0.029815673828125, 0.018951416015625, -0.0131072998046875, -0.02606201171875, -0.04296875, 0.046905517578125, -0.02459716796875, -0.09246826171875, 0.03533935546875, -0.0304718017578125, 0.0270843505859375, 0.07794189453125, -0.0195465087890625, 0.0673828125, -0.015533447265625, -0.0019283294677734375, -0.00943756103515625, 0.0001017451286315918, 0.004673004150390625, 0.0083465576171875, 0.01629638671875, -0.00260162353515625, -0.024139404296875, -0.0269927978515625, 0.0086517333984375, -0.014923095703125, 0.03466796875, -0.007781982421875, 0.002437591552734375, -0.002597808837890625, 0.0157623291015625, -0.0248565673828125, 0.014190673828125, 0.0306396484375, 0.0001952648162841797, -0.03680419921875, 0.00458526611328125, -0.00852203369140625, 0.00719451904296875, 0.0006775856018066406, 0.0153350830078125, -0.00864410400390625, 0.0017604827880859375, 0.00689697265625, -0.039215087890625, -0.013214111328125, 0.048065185546875, 0.0706787109375, -0.01454925537109375, 0.00445556640625, -0.0289306640625, 0.09075927734375, 0.004566192626953125, 0.00498199462890625, -0.0003266334533691406, 0.0033512115478515625, 0.0055389404296875, -0.0511474609375, -0.0003886222839355469, 0.00711822509765625, -0.00939178466796875, 0.006084442138671875, 0.038818359375, 0.007213592529296875, 0.0248565673828125, -0.0306549072265625, 0.01242828369140625, 0.0784912109375, 0.02972412109375, 0.00875091552734375, 0.0004596710205078125, 0.0258331298828125, 0.041046142578125, -0.028533935546875, -0.0006632804870605469, 0.028900146484375, -0.017486572265625, 0.01690673828125, 0.040435791015625, -0.040130615234375, -0.0147705078125, -0.012786865234375, -0.0052337646484375, 0.005191802978515625, -0.0279693603515625, 0.0038928985595703125, -0.024749755859375, 0.02996826171875, 0.0267181396484375, 0.04534912109375, 0.0265350341796875, -0.03759765625, 0.030792236328125, 0.00818634033203125, 0.0275726318359375, 0.00014078617095947266, -0.007049560546875, -0.038177490234375, -0.0115509033203125, -0.0172882080078125, 0.01393890380859375, -0.005123138427734375, -0.027496337890625, 0.007598876953125, 0.038299560546875, -0.031890869140625, -0.00687408447265625, 0.0125274658203125, -0.038116455078125, -0.02593994140625, 0.0245361328125, 0.0198211669921875, 0.002422332763671875, 0.0311431884765625, 0.022247314453125, -0.010894775390625, 0.028472900390625, -0.007007598876953125, -0.0218658447265625, -0.00794219970703125, -0.044281005859375, 0.0494384765625, -0.04132080078125, -0.0263824462890625, 0.04473876953125, -0.01248931884765625, 0.0033206939697265625, -0.0173492431640625, -0.009735107421875, -0.0282135009765625, 0.0233001708984375, -0.00815582275390625, -0.03631591796875, -0.042144775390625, -0.01641845703125, 0.04815673828125, 0.1044921875, -0.005279541015625, -0.0499267578125, 0.008392333984375, 0.0740966796875, -0.07867431640625, -0.10699462890625, -0.0037288665771484375, -0.0196380615234375, -0.0589599609375, -0.0189666748046875, -0.01800537109375, 0.03668212890625, -0.03570556640625, 0.0004911422729492188, 0.0020923614501953125, -0.01042938232421875, -0.0335693359375, -0.036895751953125, -0.0618896484375, -0.007007598876953125, 0.0003025531768798828, 0.0053253173828125, 0.0007214546203613281, 0.0849609375, 0.0018138885498046875, -0.06671142578125, -0.02325439453125, 0.035125732421875, -0.018524169921875, 0.004993438720703125, 0.0009613037109375, -0.036834716796875, 0.0117950439453125, 0.0006461143493652344, -0.0012331008911132812, 0.0003085136413574219, 0.0013132095336914062, -0.0256195068359375, 0.01537322998046875, 0.021453857421875, 0.02972412109375, -0.0132904052734375, -0.0199127197265625, 0.062744140625, 0.018951416015625, -0.008331298828125, -0.014312744140625, 0.006885528564453125, -0.0142974853515625, 0.005886077880859375, -0.017120361328125, -0.006504058837890625, -0.0258941650390625, 0.04705810546875, 0.01363372802734375, -0.00353240966796875, 0.0238189697265625, -0.0147552490234375, 0.015380859375, 0.01629638671875, 0.03253173828125, -0.029754638671875, -0.00856781005859375, -0.0271453857421875, 0.048919677734375, -0.0017986297607421875, 0.0037860870361328125, -0.0153350830078125, 0.055145263671875, -0.00714111328125, -0.06329345703125, 0.06365966796875, -0.010772705078125, 0.0278472900390625, -0.06756591796875, -0.044158935546875, -0.0302886962890625, 0.102294921875, -0.0457763671875, -0.007144927978515625, 0.00330352783203125, -0.0030193328857421875, -0.01605224609375, -0.0227508544921875, -0.05670166015625, -0.0027942657470703125, -0.10650634765625, 0.0121002197265625, -0.005725860595703125, -0.039093017578125, -0.01227569580078125, 0.0215911865234375, -0.0633544921875, -0.041351318359375, 0.0124969482421875, 0.045135498046875, -0.0156707763671875, -0.0009775161743164062, -0.01065826416015625, 0.01230621337890625, 0.004169464111328125, 0.0026760101318359375, -0.0543212890625, -0.0262603759765625, 0.024078369140625, 0.042877197265625, -0.00231170654296875, -0.0245819091796875, 0.009765625, 0.060150146484375, -0.0019216537475585938, 0.0139617919921875, -0.005344390869140625, -0.00008702278137207031, -0.0028629302978515625, -0.005924224853515625, -0.00396728515625, -0.01123046875, -0.03277587890625, -0.0268402099609375, 0.00765228271484375, 0.0185546875, -0.0216827392578125, 0.003780364990234375, -0.01259613037109375, -0.0007963180541992188, 0.0467529296875, 0.01332855224609375, -0.055084228515625, 0.0233612060546875, -0.042266845703125, 0.0011806488037109375, -0.0002543926239013672, -0.005680084228515625, -0.01421356201171875, 0.00597381591796875, -0.0247955322265625, 0.03155517578125, 0.07928466796875, 0.0300445556640625, 0.0164794921875, -0.06378173828125, 0.01050567626953125, 0.03485107421875, -0.017242431640625, 0.030487060546875, 0.0038089752197265625, -0.040283203125, 0.09552001953125, -0.0292816162109375, 0.04180908203125, -0.040557861328125, 0.0306243896484375, -0.018035888671875, -0.01088714599609375, 0.03076171875, -0.00025916099548339844, -0.005046844482421875, 0.035888671875, 0.00004416704177856445, -0.00881195068359375, 0.0256805419921875, 0.028839111328125, -0.008514404296875, -0.03350830078125, -0.033966064453125, -0.0276336669921875, -0.00823211669921875, 0.041961669921875, 0.0048675537109375, 0.043792724609375, -0.01479339599609375, 0.023529052734375, 0.0294952392578125, 0.0216827392578125, 0.01349639892578125, -0.0158233642578125, -0.00543212890625, 0.00704193115234375, 0.0462646484375, 0.0146026611328125, 0.0101318359375, -0.00894927978515625, 0.056304931640625, 0.0018453598022460938, -0.046783447265625, 0.022857666015625, -0.0217132568359375, 0.0219879150390625, 0.006755828857421875, -0.005916595458984375, 0.0173187255859375, 0.03155517578125, 0.0086669921875, 0.0194549560546875, 0.00792694091796875, 0.0196380615234375, -0.0045318603515625, 0.0068511962890625, 0.036712646484375, -0.0181732177734375, -0.014251708984375, 0.0732421875, 0.024566650390625, 0.027191162109375, -0.03387451171875, 0.038482666015625, 0.0149078369140625, 0.06939697265625, 0.05084228515625, -0.06011962890625, -0.047454833984375, 0.048553466796875, -0.06463623046875, -0.031707763671875, 0.0018701553344726562, 0.00952911376953125, 0.0265350341796875, 0.032806396484375, -0.0035533905029296875, 0.013671875, -0.00441741943359375, -0.01428985595703125, 0.01326751708984375, -0.006885528564453125, -0.004222869873046875, -0.01194000244140625, 0.005420684814453125, 0.01548004150390625, 0.0212860107421875, 0.0268707275390625, 0.0015211105346679688, 0.0240020751953125, 0.0259857177734375, -0.03302001953125, -0.0017156600952148438, -0.0164031982421875, 0.0038509368896484375, -0.0281982421875, -0.00440216064453125, 0.00536346435546875, -0.0545654296875, -0.059173583984375, 0.009735107421875, 0.003688812255859375, 0.00897216796875, -0.0498046875, 0.05560302734375, -0.0472412109375, 0.0052642822265625, -0.0404052734375, 0.0214080810546875, 0.0263671875, 0.035980224609375, -0.0687255859375, 0.00670623779296875, -0.0364990234375, 0.01277923583984375, -0.0221099853515625, -0.04571533203125, -0.01032257080078125, -0.01375579833984375, 0.0271759033203125, 0.04083251953125, 0.0185394287109375, -0.01039886474609375, 0.006168365478515625, -0.0079193115234375, -0.00794219970703125, 0.05694580078125, -0.0115814208984375, 0.032623291015625, 0.016082763671875, 0.0655517578125, 0.0013952255249023438, 0.002727508544921875, -0.031280517578125, -0.025390625, 0.0006628036499023438, -0.04254150390625, -0.033172607421875, -0.002079010009765625, -0.00778961181640625, 0.0146636962890625, 0.01236724853515625, 0.0010128021240234375, -0.00904083251953125, -0.01175689697265625, -0.004108428955078125, -0.00702667236328125, 0.0222625732421875, 0.0126190185546875, 0.0016489028930664062, 0.021728515625, 0.01342010498046875, 0.030029296875, -0.00908660888671875, -0.040679931640625, 0.03790283203125, 0.01457977294921875, 0.048858642578125, -0.0028858184814453125, 0.01056671142578125, 0.01361083984375, 0.0210723876953125, 0.007320404052734375, 0.03509521484375, 0.032135009765625, 0.04144287109375, 0.01393890380859375, 0.007350921630859375, -0.0027599334716796875, 0.00316619873046875, 0.04205322265625, 0.00806427001953125, -0.0217437744140625, 0.02349853515625, -0.0201263427734375, 0.0263824462890625, 0.0198974609375, 0.0689697265625, -0.053558349609375, 0.03546142578125, 0.035186767578125, 0.006439208984375, 0.0322265625, 0.0096435546875, 0.01222991943359375, 0.01279449462890625, -0.022979736328125, 0.00893402099609375, -0.033599853515625, -0.0125274658203125, 0.01386260986328125, 0.0037994384765625, 0.01345062255859375, 0.01560211181640625, -0.01433563232421875, 0.0036602020263671875, -0.0413818359375, 0.012786865234375, -0.0109100341796875, -0.01953125, 0.0010967254638671875, -0.0139923095703125, -0.037750244140625, -0.0673828125, -0.037322998046875, -0.0006918907165527344, -0.019073486328125, 0.035491943359375, 0.03582763671875, 0.0207672119140625, 0.05902099609375, -0.00838470458984375, 0.024200439453125, 0.00844573974609375, -0.0288238525390625, -0.06439208984375, -0.048919677734375, -0.024566650390625, 0.042877197265625, -0.012481689453125, 0.03106689453125, 0.02178955078125, -0.0369873046875, -0.00933074951171875, 0.005947113037109375, 0.10614013671875, -0.006103515625, -0.06011962890625, -0.00010699033737182617, 0.006191253662109375, -0.01165771484375, -0.00815582275390625, 0.002208709716796875, -0.036407470703125, 0.005619049072265625, -0.01233673095703125, -0.01509857177734375, 0.00014793872833251953, -0.0137939453125, -0.0689697265625, 0.057861328125, 0.0187835693359375, 0.03790283203125, 0.0052490234375, 0.00972747802734375, -0.0271148681640625, -0.005939483642578125, -0.039276123046875, 0.056182861328125, 0.01369476318359375, 0.05322265625, -0.06390380859375, -0.023162841796875, 0.022003173828125, 0.0509033203125, 0.0181884765625, 0.007472991943359375, -0.0203704833984375, -0.00826263427734375, 0.03228759765625, 0.05499267578125, 0.005054473876953125, 0.00882720947265625, -0.0229644775390625, 0.051483154296875, 0.0491943359375, -0.04278564453125, 0.01959228515625, 0.0244293212890625, -0.033203125, 0.0204620361328125, 0.0026035308837890625, -0.0010013580322265625, -0.01470184326171875, 0.033477783203125, -0.02740478515625, -0.0289306640625, 0.0153961181640625, 0.0072784423828125, 0.008819580078125, 0.0304412841796875, 0.06817626953125, -0.0618896484375, 0.0032215118408203125, -0.02783203125, 0.051422119140625, 0.02593994140625, 0.0343017578125, 0.01763916015625, 0.01459503173828125, 0.036651611328125, 0.018310546875, 0.0263519287109375, 0.017578125, -0.01032257080078125, 0.05010986328125, 0.0089569091796875, -0.00493621826171875, -0.0628662109375, 0.019439697265625, 0.0289154052734375, 0.0469970703125, -0.0662841796875, -0.0264739990234375, 0.01776123046875, -0.0216217041015625, 0.01003265380859375, -0.024444580078125, -0.0168609619140625, -0.0251922607421875, -0.00939178466796875, -0.037322998046875, 0.004390716552734375, 0.00914764404296875, 0.0252227783203125, 0.0022430419921875, 0.021392822265625, -0.0556640625, -0.0162353515625, -0.04071044921875, 0.0006022453308105469, 0.0171356201171875, 0.0364990234375, 0.046173095703125, 0.032562255859375, 0.02813720703125, -0.02227783203125, -0.0033512115478515625, 0.007625579833984375, 0.0292205810546875, -0.018585205078125, 0.0005736351013183594, 0.00921630859375, 0.001987457275390625, 0.0037078857421875, 0.02392578125, 0.013275146484375, 0.060302734375, 0.035888671875, -0.03289794921875, -0.0025081634521484375, 0.0168914794921875, -0.0197906494140625, -0.007160186767578125, -0.03363037109375, -0.038330078125, 0.005672454833984375, -0.01535797119140625, 0.0284881591796875, -0.03900146484375, 0.052337646484375, -0.0258941650390625, 0.0338134765625, 0.0011968612670898438, -0.01177215576171875, 0.0235443115234375, 0.0032405853271484375, 0.051300048828125, 0.00991058349609375, -0.0706787109375, -0.002666473388671875, -0.051666259765625, -0.061004638671875, 0.04046630859375, 0.050872802734375, -0.006923675537109375, 0.004352569580078125, 0.0162506103515625, -0.00661468505859375, 0.0203399658203125, -0.0109405517578125, 0.01248931884765625, 0.0003581047058105469, -0.004547119140625, -0.0020503997802734375, -0.08355712890625, -0.048248291015625, -0.015411376953125, 0.00428009033203125, -0.013763427734375, 0.039947509765625, 0.0236053466796875, -0.0041961669921875, -0.035369873046875, -0.01056671142578125, -0.00988006591796875, -0.025115966796875, 0.042388916015625, 0.028167724609375, -0.01143646240234375, -0.02691650390625, -0.0001042485237121582, 0.0270538330078125, 0.03582763671875, -0.045257568359375, 0.017333984375, 0.0167694091796875, 0.0003764629364013672, -0.03564453125, -0.01404571533203125, -0.0201568603515625, -0.028167724609375, -0.035125732421875, -0.00600433349609375, 0.03271484375, 0.0261688232421875, 0.0125579833984375, -0.01328277587890625, 0.08245849609375, -0.041900634765625, 0.036712646484375, 0.001819610595703125, 0.06549072265625, 0.04339599609375, 0.06719970703125, -0.0164947509765625, 0.0059967041015625, -0.0240478515625, 0.02142333984375, 0.01153564453125, 0.00978851318359375, 0.0076904296875, -0.00830841064453125, 0.01861572265625, 0.019622802734375, 0.029937744140625, -0.02667236328125, -0.0034027099609375, 0.045989990234375, -0.00469207763671875, -0.00634765625, -0.040924072265625, -0.0224761962890625, -0.07574462890625, 0.0035419464111328125, 0.033172607421875, -0.03472900390625, -0.0277099609375, -0.0487060546875, -0.01300048828125, 0.0223388671875, 0.02105712890625, -0.0421142578125, 0.00994110107421875, 0.006504058837890625, 0.0014543533325195312, -0.002246856689453125, 0.00597381591796875, 0.006526947021484375, 0.059967041015625, -0.0012302398681640625, -0.00690460205078125, -0.00560760498046875, 0.032928466796875, 0.0258331298828125, 0.03997802734375, 0.044464111328125, -0.0297088623046875, -0.0049285888671875, 0.029266357421875, 0.0286865234375, 0.06549072265625, 0.033447265625, -0.0216064453125, 0.0031108856201171875, -0.00777435302734375, -0.0250396728515625, -0.0235137939453125, 0.035919189453125, -0.0382080078125, -0.0408935546875, -0.034515380859375, 0.03424072265625, 0.04144287109375, -0.0203704833984375, -0.0943603515625, 0.08892822265625, -0.039093017578125, -0.0213165283203125, -0.0205535888671875, -0.00724029541015625, -0.01042938232421875, 0.0153656005859375, 0.0025482177734375, -0.04095458984375, -0.02105712890625, 0.0122222900390625, 0.0242156982421875, -0.00930023193359375, 0.0670166015625, 0.024444580078125, -0.0270843505859375, -0.0047607421875, -0.020233154296875, -0.004547119140625, -0.015655517578125, 0.012786865234375, -0.002658843994140625, 0.0050048828125, -0.04315185546875, -0.054534912109375, 0.0002536773681640625, 0.035552978515625, 0.004550933837890625, -0.03985595703125, -0.06524658203125, -0.044769287109375, 0.06500244140625, 0.037017822265625, 0.02142333984375, -0.0212249755859375, 0.00276947021484375, -0.012054443359375, -0.027587890625, -0.0298004150390625, 0.0176544189453125, -0.072265625, -0.0400390625, -0.0032291412353515625, -0.032745361328125, 0.01473236083984375, 0.00972747802734375, -0.044647216796875, 0.0283660888671875, 0.045013427734375, 0.0244140625, -0.0721435546875, 0.05377197265625, 0.050079345703125, -0.04864501953125, -0.006145477294921875, 0.00722503662109375, -0.032196044921875, 0.0250244140625, 0.006542205810546875, -0.00994110107421875, -0.045867919921875, 0.00045013427734375, 0.03338623046875, -0.01392364501953125, 0.07159423828125, -0.0189208984375, -0.014007568359375, -0.03607177734375, 0.02325439453125, 0.01540374755859375, 0.00762176513671875, -0.019378662109375, 0.01140594482421875, 0.0279693603515625, 0.047454833984375, -0.0286712646484375, 0.044677734375, -0.03955078125, 0.03155517578125, -0.002071380615234375, 0.0063323974609375, 0.0156402587890625, 0.01177978515625, -0.0091094970703125, -0.00951385498046875, -0.0511474609375, -0.044342041015625, 0.01117706298828125, 0.056915283203125, -0.0205535888671875, 0.0287017822265625 ]
af7fa06444a96b2250207b961003615b7d30bf25
Wordpress Stackexchange Q: Automatically add this attribute to the gallery shortcode When inserting a gallery it adds the following shortcode: [gallery columns="6" ids="18,150,146,23,147,17,21,20,22"] I would like it to automatically add link="file" as the last attribute, whenever a shortcode is added. Like so: [gallery columns="6" ids="18,150,146,23,147,17,21,20,22" link="file"] A: There is a new shortcode_atts_{$shortcode} filter in WordPress 3.6 according to Mark Jaquith. You could use the shortcode_atts_gallery filter to force the link='file' attribute: add_filter('shortcode_atts_gallery','overwrite_gallery_atts_wpse_95965',10,3); function overwrite_gallery_atts_wpse_95965($out, $pairs, $atts){ // force the link='file' gallery shortcode attribute: $out['link']='file'; return $out; } when you have upgraded to 3.6. You can check it out in /wp-includes/shortcodes.php from the Core-Trac-Trunk: http://core.trac.wordpress.org/browser/trunk/wp-includes/shortcodes.php#L316
Q: Automatically add this attribute to the gallery shortcode When inserting a gallery it adds the following shortcode: [gallery columns="6" ids="18,150,146,23,147,17,21,20,22"] I would like it to automatically add link="file" as the last attribute, whenever a shortcode is added. Like so: [gallery columns="6" ids="18,150,146,23,147,17,21,20,22" link="file"] A: There is a new shortcode_atts_{$shortcode} filter in WordPress 3.6 according to Mark Jaquith. You could use the shortcode_atts_gallery filter to force the link='file' attribute: add_filter('shortcode_atts_gallery','overwrite_gallery_atts_wpse_95965',10,3); function overwrite_gallery_atts_wpse_95965($out, $pairs, $atts){ // force the link='file' gallery shortcode attribute: $out['link']='file'; return $out; } when you have upgraded to 3.6. You can check it out in /wp-includes/shortcodes.php from the Core-Trac-Trunk: http://core.trac.wordpress.org/browser/trunk/wp-includes/shortcodes.php#L316 A: You can hijack the shortcode handler and set the attribute to a value of your choice. Then call the native callback for this shortcode. add_shortcode( 'gallery', 'file_gallery_shortcode' ); function file_gallery_shortcode( $atts ) { $atts['link'] = 'file'; return gallery_shortcode( $atts ); }
wordpress
{ "language": "en", "length": 144, "provenance": "stackexchange_00019.jsonl.gz:431332", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/95965" }
[ 0.055877685546875, -0.003345489501953125, 0.006702423095703125, -0.034698486328125, 0.013153076171875, -0.0259246826171875, 0.05084228515625, -0.01456451416015625, 0.0132293701171875, 0.02093505859375, -0.01396942138671875, 0.0000928044319152832, -0.01129913330078125, -0.02032470703125, -0.0006346702575683594, -0.0152435302734375, 0.0210418701171875, -0.012359619140625, 0.0150604248046875, 0.003360748291015625, 0.0059356689453125, 0.01558685302734375, -0.010162353515625, 0.00788116455078125, -0.0218353271484375, 0.0068511962890625, 0.087890625, -0.01751708984375, -0.00254058837890625, -0.0174560546875, -0.0018548965454101562, 0.0133056640625, 0.056182861328125, 0.016082763671875, -0.080810546875, 0.049468994140625, 0.0236358642578125, -0.01314544677734375, -0.041412353515625, 0.05047607421875, 0.02532958984375, -0.00838470458984375, 0.013397216796875, -0.00994873046875, -0.04052734375, 0.0204315185546875, -0.0161590576171875, -0.0037250518798828125, 0.007781982421875, 0.0095367431640625, 0.015228271484375, 0.037689208984375, 0.0218658447265625, -0.0271453857421875, -0.0035858154296875, 0.0173797607421875, -0.022857666015625, -0.0198516845703125, 0.0248870849609375, 0.00039577484130859375, -0.01338958740234375, -0.0255126953125, 0.0198516845703125, -0.0244903564453125, -0.0195159912109375, 0.0010709762573242188, 0.00493621826171875, 0.0011930465698242188, 0.01003265380859375, -0.020050048828125, 0.0141448974609375, 0.0019283294677734375, -0.010955810546875, -0.0218658447265625, -0.028411865234375, 0.0550537109375, -0.00811004638671875, 0.0160369873046875, 0.01788330078125, -0.013336181640625, 0.0133514404296875, -0.0264739990234375, -0.0021038055419921875, 0.00916290283203125, 0.0138702392578125, 0.032470703125, 0.00438690185546875, -0.0192718505859375, 0.017578125, -0.034576416015625, -0.00801849365234375, 0.03204345703125, 0.00312042236328125, -0.01453399658203125, -0.047119140625, -0.043914794921875, -0.0233306884765625, 0.04400634765625, 0.0094757080078125, 0.054931640625, -0.0301361083984375, -0.00858306884765625, 0.0211029052734375, -0.050323486328125, -0.0144500732421875, 0.02117919921875, 0.009490966796875, -0.00791168212890625, 0.0107879638671875, 0.0164337158203125, -0.0140533447265625, 0.01157379150390625, 0.00397491455078125, 0.041900634765625, -0.0362548828125, -0.0279693603515625, -0.06292724609375, 0.034820556640625, -0.04827880859375, 0.041717529296875, -0.00644683837890625, -0.0095672607421875, 0.006237030029296875, 0.0201416015625, 0.0009446144104003906, -0.003337860107421875, -0.035675048828125, 0.01020050048828125, 0.038421630859375, -0.0096588134765625, -0.01343536376953125, 0.0271453857421875, 0.02777099609375, -0.0005145072937011719, 0.004589080810546875, 0.0079193115234375, 0.0079803466796875, -0.058380126953125, -0.0010366439819335938, 0.0143890380859375, -0.0044403076171875, -0.01334381103515625, 0.0291900634765625, -0.0095062255859375, 0.01959228515625, 0.0218353271484375, 0.0238494873046875, 0.01395416259765625, -0.020782470703125, -0.061798095703125, 0.065673828125, -0.0200958251953125, 0.07061767578125, -0.00193023681640625, -0.060272216796875, -0.0236053466796875, 0.041961669921875, -0.042816162109375, -0.03240966796875, -0.07147216796875, -0.0186309814453125, -0.01430511474609375, -0.01519012451171875, -0.09088134765625, -0.079345703125, -0.007007598876953125, -0.021636962890625, -0.00592803955078125, 0.0260467529296875, 0.088623046875, -0.0225677490234375, -0.039886474609375, -0.02276611328125, 0.03717041015625, -0.01236724853515625, 0.034149169921875, 0.0289306640625, 0.02886962890625, 0.0369873046875, 0.004093170166015625, -0.0132598876953125, -0.0308837890625, 0.10174560546875, -0.04168701171875, -0.036956787109375, 0.026580810546875, 0.0222320556640625, 0.09063720703125, -0.020111083984375, 0.0264434814453125, 0.02081298828125, 0.039703369140625, -0.02398681640625, -0.0174407958984375, 0.00439453125, -0.006114959716796875, -0.00982666015625, 0.0037021636962890625, -0.00719451904296875, 0.00807952880859375, -0.00847625732421875, -0.006557464599609375, 0.0311431884765625, 0.00959014892578125, 0.007480621337890625, 0.012451171875, -0.018463134765625, 0.03485107421875, -0.06341552734375, -0.0297698974609375, 0.04803466796875, -0.032928466796875, -0.01477813720703125, 0.027008056640625, 0.0278778076171875, 0.0179595947265625, -0.04290771484375, 0.01342010498046875, -0.00278472900390625, 0.033660888671875, -0.003948211669921875, -0.0276031494140625, 0.0006995201110839844, -0.00672149658203125, 0.006786346435546875, 0.0087890625, -0.046783447265625, -0.0162353515625, -0.04364013671875, 0.02777099609375, -0.0758056640625, 0.0243377685546875, 0.004608154296875, -0.0261383056640625, -0.07366943359375, -0.0252532958984375, -0.055755615234375, -0.035125732421875, 0.004520416259765625, 0.06439208984375, 0.02996826171875, 0.01082611083984375, 0.0081329345703125, -0.008941650390625, 0.042755126953125, 0.040618896484375, 0.04986572265625, -0.040802001953125, -0.0087738037109375, 0.047943115234375, 0.0177764892578125, 0.05523681640625, -0.006839752197265625, -0.019866943359375, 0.005207061767578125, 0.04815673828125, -0.019378662109375, -0.026214599609375, 0.0136260986328125, 0.00827789306640625, 0.00539398193359375, -0.034210205078125, -0.005035400390625, -0.017120361328125, 0.062225341796875, 0.033599853515625, 0.06097412109375, 0.052337646484375, -0.05352783203125, 0.048431396484375, -0.0016012191772460938, 0.007843017578125, -0.01331329345703125, 0.02789306640625, 0.021697998046875, 0.01000213623046875, -0.0168609619140625, 0.002716064453125, -0.0015420913696289062, 0.01477813720703125, -0.034912109375, -0.01352691650390625, -0.006526947021484375, -0.00824737548828125, 0.0021495819091796875, -0.02484130859375, 0.025634765625, -0.00937652587890625, -0.0237884521484375, -0.04852294921875, -0.00811767578125, 0.047271728515625, -0.004558563232421875, 0.01508331298828125, 0.022247314453125, -0.01210784912109375, 0.016082763671875, -0.005573272705078125, 0.02197265625, -0.03582763671875, 0.03790283203125, 0.046600341796875, -0.06011962890625, 0.043609619140625, -0.01319122314453125, 0.0085601806640625, -0.04083251953125, -0.0008249282836914062, -0.017822265625, -0.03558349609375, -0.0090179443359375, 0.031524658203125, 0.019195556640625, 0.0300140380859375, -0.0292510986328125, -0.03662109375, -0.0290374755859375, 0.006011962890625, -0.0638427734375, -0.04510498046875, 0.060546875, -0.04779052734375, -0.018951416015625, 0.0169677734375, -0.04156494140625, -0.0269317626953125, 0.067626953125, -0.0192413330078125, -0.0293731689453125, 0.0299224853515625, -0.0121002197265625, 0.003940582275390625, -0.01294708251953125, 0.0172576904296875, -0.0078887939453125, -0.0006508827209472656, -0.0034637451171875, 0.041717529296875, -0.0011358261108398438, -0.034759521484375, -0.002960205078125, -0.0175018310546875, -0.01145172119140625, -0.0089569091796875, 0.04461669921875, -0.0501708984375, -0.01406097412109375, 0.00658416748046875, 0.01248931884765625, 0.031097412109375, -0.0210418701171875, -0.0004754066467285156, -0.01593017578125, 0.01580810546875, 0.0560302734375, 0.000514984130859375, -0.0111541748046875, 0.043243408203125, 0.06866455078125, -0.0104217529296875, -0.0159149169921875, 0.00467681884765625, -0.029205322265625, -0.021881103515625, 0.01445770263671875, -0.00566864013671875, -0.0178680419921875, 0.0135650634765625, -0.0236663818359375, -0.01020050048828125, 0.048431396484375, -0.0323486328125, -0.01148223876953125, -0.030670166015625, -0.04266357421875, -0.039886474609375, 0.059844970703125, 0.005092620849609375, -0.0266876220703125, 0.0126800537109375, 0.0285491943359375, 0.0176849365234375, -0.007396697998046875, -0.0205230712890625, -0.016754150390625, 0.046600341796875, -0.03662109375, 0.04541015625, -0.08294677734375, -0.030914306640625, -0.037384033203125, 0.07281494140625, -0.044097900390625, -0.0247955322265625, 0.020965576171875, 0.0198516845703125, 0.01418304443359375, -0.001186370849609375, -0.02545166015625, -0.042816162109375, -0.01039886474609375, 0.0157318115234375, -0.00705718994140625, -0.0023403167724609375, -0.0041351318359375, -0.042877197265625, 0.005741119384765625, -0.033599853515625, 0.0379638671875, -0.0004291534423828125, 0.01465606689453125, 0.0218963623046875, -0.025146484375, 0.036468505859375, -0.03057861328125, -0.00937652587890625, -0.11578369140625, -0.023773193359375, -0.016998291015625, 0.0897216796875, 0.01256561279296875, -0.0482177734375, -0.01007080078125, 0.07550048828125, 0.0071563720703125, -0.044830322265625, 0.031097412109375, 0.01275634765625, -0.044464111328125, 0.057464599609375, 0.0173797607421875, -0.01316070556640625, 0.029266357421875, -0.0006585121154785156, -0.033294677734375, 0.0013837814331054688, -0.035064697265625, -0.006561279296875, -0.0009436607360839844, -0.035430908203125, -0.0017061233520507812, -0.057708740234375, 0.005413055419921875, 0.0460205078125, 0.01044464111328125, 0.01377105712890625, -0.08441162109375, 0.0035266876220703125, -0.007747650146484375, -0.0455322265625, -0.0200958251953125, 0.01824951171875, 0.04461669921875, 0.03033447265625, 0.01473236083984375, -0.03240966796875, 0.030242919921875, 0.04254150390625, -0.00757598876953125, 0.046630859375, 0.0232391357421875, -0.0257110595703125, 0.03607177734375, 0.006282806396484375, 0.0037860870361328125, -0.03973388671875, 0.03204345703125, 0.01525115966796875, 0.00911712646484375, -0.0008592605590820312, 0.013885498046875, 0.0282135009765625, -0.0294189453125, -0.025909423828125, 0.0260009765625, 0.0069732666015625, 0.0192718505859375, 0.0221710205078125, -0.004352569580078125, -0.02252197265625, 0.0032405853271484375, -0.01416015625, 0.0909423828125, 0.032928466796875, 0.0386962890625, -0.0032024383544921875, -0.01012420654296875, 0.01413726806640625, -0.01065826416015625, 0.01314544677734375, 0.0177459716796875, -0.004974365234375, 0.052520751953125, -0.0214385986328125, -0.014862060546875, -0.007030487060546875, -0.0007462501525878906, -0.007335662841796875, 0.002674102783203125, 0.012725830078125, -0.048828125, -0.0018301010131835938, -0.005496978759765625, -0.0256500244140625, -0.0313720703125, 0.051361083984375, 0.03277587890625, -0.031951904296875, -0.02667236328125, -0.0673828125, 0.01287841796875, -0.06805419921875, 0.002628326416015625, -0.0111541748046875, -0.0006265640258789062, 0.017120361328125, -0.00826263427734375, -0.01983642578125, 0.0086212158203125, 0.0111083984375, -0.012908935546875, 0.028961181640625, 0.0162506103515625, 0.0236663818359375, -0.00453948974609375, -0.018402099609375, 0.029052734375, 0.0261688232421875, -0.0369873046875, 0.0089569091796875, 0.044647216796875, 0.06396484375, 0.024139404296875, -0.026702880859375, -0.0418701171875, -0.03900146484375, 0.00994110107421875, -0.02423095703125, -0.0258941650390625, 0.005496978759765625, -0.01302337646484375, 0.007526397705078125, 0.0176239013671875, 0.005855560302734375, -0.019012451171875, 0.03173828125, -0.025726318359375, 0.005329132080078125, 0.0439453125, -0.03924560546875, -0.0190582275390625, -0.0229644775390625, 0.0264434814453125, -0.027069091796875, -0.0250244140625, -0.015625, 0.0024738311767578125, -0.018798828125, -0.00592041015625, 0.01849365234375, -0.01534271240234375, 0.022308349609375, -0.038818359375, 0.0084991455078125, 0.01045989990234375, 0.005825042724609375, 0.028533935546875, -0.01384735107421875, 0.009857177734375, -0.0004911422729492188, -0.035552978515625, -0.036865234375, 0.059326171875, 0.0121917724609375, -0.0268402099609375, -0.0482177734375, 0.0030040740966796875, 0.05389404296875, -0.018096923828125, -0.0280914306640625, 0.01084136962890625, -0.02484130859375, -0.02349853515625, 0.0428466796875, 0.031829833984375, -0.037353515625, -0.00644683837890625, 0.01800537109375, 0.01263427734375, -0.02606201171875, -0.0085296630859375, -0.040008544921875, 0.02587890625, -0.0060882568359375, -0.03997802734375, -0.0010194778442382812, -0.049652099609375, -0.01136016845703125, 0.06292724609375, -0.020904541015625, 0.015472412109375, 0.0115203857421875, 0.0019359588623046875, -0.006168365478515625, -0.00701141357421875, 0.017425537109375, 0.01275634765625, 0.00955963134765625, -0.0138397216796875, 0.0126953125, -0.024322509765625, -0.05157470703125, 0.03607177734375, 0.0017118453979492188, 0.0224609375, 0.02691650390625, -0.02398681640625, 0.073974609375, 0.06170654296875, -0.030426025390625, 0.037139892578125, 0.0322265625, -0.006725311279296875, 0.01155853271484375, 0.024688720703125, 0.061920166015625, -0.00862884521484375, 0.07281494140625, -0.0008373260498046875, -0.0257110595703125, 0.0270233154296875, -0.042388916015625, 0.0256805419921875, -0.0272369384765625, 0.02667236328125, 0.0355224609375, 0.007274627685546875, -0.03094482421875, -0.043243408203125, 0.06805419921875, -0.0216522216796875, -0.00882720947265625, -0.01334381103515625, 0.030731201171875, -0.0103302001953125, -0.02679443359375, 0.001453399658203125, 0.0108795166015625, 0.0019741058349609375, 0.01337432861328125, 0.004016876220703125, -0.01500701904296875, -0.01050567626953125, -0.07330322265625, -0.0048980712890625, -0.048187255859375, 0.02880859375, 0.0128936767578125, -0.02203369140625, -0.044403076171875, -0.007602691650390625, -0.02899169921875, -0.01317596435546875, -0.033355712890625, -0.00991058349609375, -0.0147247314453125, 0.05517578125, 0.0099334716796875, 0.00439453125, -0.020721435546875, -0.00659942626953125, 0.0076751708984375, 0.00537109375, -0.034759521484375, -0.00958251953125, 0.0347900390625, -0.0160369873046875, 0.0190887451171875, 0.015350341796875, -0.01560211181640625, -0.01861572265625, -0.005382537841796875, 0.101806640625, -0.060821533203125, -0.0088348388671875, 0.0282135009765625, -0.0008172988891601562, -0.0277862548828125, 0.0159149169921875, -0.0007252693176269531, -0.05865478515625, -0.07708740234375, 0.0272369384765625, -0.10504150390625, -0.01403045654296875, 0.00563812255859375, -0.06927490234375, 0.058990478515625, -0.004711151123046875, 0.016357421875, -0.0231170654296875, 0.0318603515625, -0.01294708251953125, 0.0026836395263671875, -0.0118408203125, 0.039642333984375, -0.0096893310546875, 0.0234527587890625, -0.0294647216796875, 0.0033779144287109375, 0.021575927734375, 0.033172607421875, 0.02569580078125, 0.002460479736328125, -0.0245361328125, 0.0217742919921875, 0.090576171875, 0.0177154541015625, 0.00909423828125, 0.041015625, -0.01557159423828125, -0.01312255859375, 0.0157623291015625, 0.00002956390380859375, 0.032623291015625, -0.031524658203125, -0.03643798828125, -0.01212310791015625, 0.0054168701171875, 0.007099151611328125, 0.01427459716796875, 0.0283203125, -0.0191497802734375, -0.00531005859375, 0.0241851806640625, -0.012847900390625, -0.023345947265625, 0.042236328125, 0.01036834716796875, -0.050079345703125, -0.04510498046875, -0.0166778564453125, 0.036834716796875, -0.007205963134765625, 0.0308685302734375, 0.043670654296875, 0.017486572265625, 0.07257080078125, -0.00832366943359375, 0.01198577880859375, 0.02752685546875, -0.0005359649658203125, 0.0144805908203125, 0.01117706298828125, 0.01381683349609375, -0.00952911376953125, 0.042510986328125, 0.0440673828125, 0.0206451416015625, -0.029327392578125, -0.0130767822265625, 0.0105133056640625, -0.0134124755859375, -0.013397216796875, -0.0002586841583251953, 0.00963592529296875, -0.0452880859375, -0.036285400390625, -0.028289794921875, -0.00536346435546875, 0.040557861328125, 0.04010009765625, 0.0107574462890625, 0.039947509765625, -0.05206298828125, -0.0360107421875, -0.020782470703125, 0.03607177734375, 0.01371002197265625, 0.01428985595703125, -0.039642333984375, 0.07049560546875, -0.019683837890625, 0.01363372802734375, -0.034149169921875, 0.026336669921875, -0.0298309326171875, 0.0286407470703125, -0.07281494140625, -0.044097900390625, -0.00626373291015625, 0.06787109375, 0.00457000732421875, 0.03204345703125, 0.04925537109375, 0.0211181640625, -0.04168701171875, -0.0025787353515625, 0.039642333984375, -0.036834716796875, 0.00977325439453125, -0.028289794921875, 0.047210693359375, 0.04229736328125, 0.0196380615234375, -0.00939178466796875, -0.006732940673828125, 0.08013916015625, -0.0556640625, 0.0159149169921875, -0.007038116455078125, -0.0430908203125, 0.0195770263671875, -0.00560760498046875, 0.05511474609375, -0.011810302734375, -0.06390380859375, 0.0014133453369140625, -0.01544189453125, -0.0540771484375, 0.0394287109375, 0.047119140625, -0.05133056640625, 0.0401611328125, -0.01995849609375, -0.0482177734375, 0.003170013427734375, 0.034698486328125, -0.0025501251220703125, 0.0411376953125, 0.00868988037109375, -0.02178955078125, -0.0289306640625, 0.0004622936248779297, -0.021575927734375, 0.023834228515625, 0.042144775390625, 0.044708251953125, -0.005855560302734375, 0.03369140625, 0.0009098052978515625, 0.0109100341796875, -0.00952911376953125, 0.015960693359375, -0.0035076141357421875, 0.016815185546875, 0.01509857177734375, -0.01959228515625, 0.01520538330078125, 0.0007476806640625, 0.03546142578125, -0.03961181640625, 0.01290130615234375, -0.02056884765625, 0.01096343994140625, -0.030548095703125, 0.049713134765625, -0.03302001953125, -0.061553955078125, -0.08160400390625, -0.01544189453125, 0.0189056396484375, -0.0032062530517578125, -0.04229736328125, 0.004764556884765625, 0.030059814453125, -0.004856109619140625, 0.05902099609375, 0.00412750244140625, 0.08642578125, 0.0292510986328125, -0.00978851318359375, 0.020660400390625, -0.010894775390625, -0.0207366943359375, 0.0203399658203125, 0.0025539398193359375, -0.019744873046875, 0.0121612548828125, -0.04864501953125, 0.01215362548828125, 0.062103271484375, 0.053009033203125, -0.0201873779296875, 0.035430908203125, 0.02716064453125, -0.024322509765625, 0.01146697998046875, -0.038177490234375, -0.01171112060546875, -0.0340576171875, -0.0139312744140625, 0.01015472412109375, -0.019439697265625, -0.038177490234375, -0.05133056640625, -0.0107269287109375, 0.045318603515625, 0.04901123046875, -0.1041259765625, 0.0633544921875, 0.0143585205078125, 0.018768310546875, 0.01445770263671875, 0.02056884765625, -0.02862548828125, -0.0232696533203125, -0.0426025390625, -0.028564453125, -0.050262451171875, 0.054443359375, -0.018463134765625, 0.002140045166015625, 0.02752685546875, -0.0175628662109375, -0.020355224609375, -0.0030689239501953125, 0.00782012939453125, 0.0360107421875, -0.00409698486328125, -0.05072021484375, 0.0240325927734375, -0.035858154296875, 0.0259857177734375, -0.01296234130859375, -0.032623291015625, -0.0262298583984375, 0.01181793212890625, 0.00170135498046875, -0.023712158203125, -0.00832366943359375, -0.035675048828125, -0.050537109375, 0.0240936279296875, -0.00019788742065429688, -0.040435791015625, -0.0209197998046875, 0.00762176513671875, -0.0098419189453125, 0.054107666015625, 0.00949859619140625, -0.0221405029296875, -0.00707244873046875, -0.0018720626831054688, 0.010772705078125, 0.043670654296875, 0.0011339187622070312, -0.01038360595703125, 0.0005850791931152344, 0.02105712890625, 0.0168914794921875, 0.0100555419921875, 0.046356201171875, -0.0242462158203125, 0.0455322265625, 0.0194244384765625, -0.0616455078125, 0.009246826171875, -0.0151824951171875, -0.006023406982421875, 0.0251617431640625, -0.05389404296875, -0.036407470703125, -0.04425048828125, 0.049072265625, -0.01342010498046875, 0.01258087158203125, 0.0117034912109375, 0.0021572113037109375, 0.0206756591796875, 0.0266265869140625, 0.00353240966796875, -0.003448486328125, -0.022308349609375, -0.025482177734375, -0.019287109375, 0.00036025047302246094, -0.059539794921875, 0.00433349609375, -0.04443359375, -0.007358551025390625, 0.003017425537109375, 0.0005602836608886719, -0.003551483154296875, 0.0419921875, 0.04534912109375, -0.0272064208984375, 0.0143585205078125, -0.0207366943359375, -0.007053375244140625, 0.0357666015625, -0.032196044921875, 0.0016870498657226562, 0.029632568359375, -0.0288543701171875, 0.008544921875, 0.021881103515625, 0.02325439453125, -0.0157623291015625, -0.0030918121337890625, -0.002384185791015625, 0.01265716552734375, -0.0007052421569824219, 0.00559234619140625, -0.00475311279296875, 0.03424072265625, -0.01082611083984375, 0.076171875, -0.036529541015625, 0.0111846923828125, 0.0176544189453125, -0.005725860595703125, -0.031829833984375, 0.0205078125, 0.03302001953125, -0.062408447265625, 0.00566864013671875, 0.039764404296875, 0.0283966064453125, -0.0125885009765625, 0.01068115234375, -0.0126800537109375, 0.0277252197265625, -0.0020351409912109375 ]
a3ed8af2b7f7081f8add07dd896b926f07a8473c
Wordpress Stackexchange Q: Programmatically set page_on_front I am trying to programmatically set the 'page_on_front' option with the id value retrieved from the get_page_by_title command... $homepage = get_page_by_title( 'Front Page' ); update_option('page_on_front', $homepage); update_option('show_on_front', 'page'); This isn't working, can anyone help? A: get_page_by_title() returns an object. Use $homepage->ID. You should also check if you really got a usable return value: $homepage = get_page_by_title( 'Front Page' ); if ( $homepage ) { update_option( 'page_on_front', $homepage->ID ); update_option( 'show_on_front', 'page' ); }
Q: Programmatically set page_on_front I am trying to programmatically set the 'page_on_front' option with the id value retrieved from the get_page_by_title command... $homepage = get_page_by_title( 'Front Page' ); update_option('page_on_front', $homepage); update_option('show_on_front', 'page'); This isn't working, can anyone help? A: get_page_by_title() returns an object. Use $homepage->ID. You should also check if you really got a usable return value: $homepage = get_page_by_title( 'Front Page' ); if ( $homepage ) { update_option( 'page_on_front', $homepage->ID ); update_option( 'show_on_front', 'page' ); }
wordpress
{ "language": "en", "length": 77, "provenance": "stackexchange_00019.jsonl.gz:431359", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/96066" }
[ 0.00693511962890625, -0.0171051025390625, 0.001384735107421875, -0.00033783912658691406, -0.00988006591796875, -0.0163116455078125, 0.03448486328125, -0.0016231536865234375, 0.02825927734375, -0.031829833984375, -0.04779052734375, -0.0251312255859375, -0.0270233154296875, -0.0262298583984375, 0.017974853515625, -0.052276611328125, 0.047454833984375, -0.03216552734375, 0.02691650390625, 0.006435394287109375, 0.020751953125, 0.0201568603515625, 0.0116729736328125, 0.042205810546875, 0.038116455078125, -0.06634521484375, -0.005657196044921875, -0.0262451171875, 0.024566650390625, -0.0193939208984375, 0.00785064697265625, 0.03375244140625, 0.020965576171875, -0.039520263671875, 0.0280914306640625, 0.00977325439453125, 0.0283966064453125, -0.021728515625, -0.021759033203125, 0.03826904296875, 0.004512786865234375, 0.03546142578125, -0.033050537109375, 0.05682373046875, -0.053070068359375, -0.05047607421875, -0.002262115478515625, -0.0135955810546875, -0.029754638671875, 0.006633758544921875, 0.0031585693359375, 0.00463104248046875, -0.0084991455078125, 0.0489501953125, 0.0178375244140625, -0.00778961181640625, 0.028076171875, 0.0001285076141357422, 0.028472900390625, -0.00978851318359375, -0.02984619140625, 0.01043701171875, 0.0202178955078125, -0.0297393798828125, 0.0238037109375, -0.019500732421875, -0.0070037841796875, 0.0281219482421875, -0.013153076171875, 0.0191192626953125, 0.0217437744140625, -0.0085601806640625, 0.0036830902099609375, -0.033447265625, -0.03411865234375, 0.01346588134765625, 0.0230255126953125, -0.0165557861328125, -0.006328582763671875, -0.016326904296875, -0.006252288818359375, -0.0023021697998046875, -0.06744384765625, 0.0038204193115234375, 0.01177978515625, 0.03369140625, -0.0198974609375, -0.0183868408203125, -0.0086669921875, -0.021026611328125, -0.009185791015625, 0.0242462158203125, -0.00347900390625, -0.0272216796875, -0.04498291015625, -0.0206146240234375, 0.0309295654296875, 0.08203125, -0.00384521484375, 0.0222930908203125, -0.0073089599609375, -0.03851318359375, 0.045684814453125, -0.057342529296875, -0.0157623291015625, -0.003604888916015625, 0.0284423828125, 0.025543212890625, -0.0103302001953125, 0.0061187744140625, -0.041168212890625, 0.00885009765625, 0.007659912109375, 0.0178375244140625, -0.025604248046875, -0.024810791015625, -0.04559326171875, -0.01015472412109375, -0.02008056640625, 0.003444671630859375, -0.003086090087890625, 0.02520751953125, -0.00579833984375, -0.018524169921875, -0.00936126708984375, -0.00777435302734375, -0.007625579833984375, -0.038665771484375, 0.007282257080078125, 0.052490234375, -0.07086181640625, -0.0014629364013671875, 0.10638427734375, 0.012176513671875, 0.0241546630859375, -0.04461669921875, -0.0277862548828125, -0.05218505859375, -0.0194244384765625, 0.0280303955078125, 0.02880859375, -0.026611328125, 0.0207366943359375, 0.0035991668701171875, 0.018646240234375, 0.010833740234375, 0.0430908203125, 0.012542724609375, -0.0284881591796875, -0.0265045166015625, 0.04547119140625, -0.0205841064453125, -0.026580810546875, 0.031158447265625, 0.056365966796875, 0.01629638671875, 0.0312042236328125, -0.00821685791015625, 0.03863525390625, 0.0113067626953125, 0.0093841552734375, -0.0145263671875, 0.01001739501953125, -0.033294677734375, -0.0281219482421875, -0.0044097900390625, -0.032379150390625, -0.005428314208984375, 0.0154571533203125, 0.0709228515625, 0.00884246826171875, -0.0187225341796875, -0.0214385986328125, -0.00174713134765625, -0.0233306884765625, -0.0129547119140625, -0.0310516357421875, -0.00011771917343139648, 0.054718017578125, -0.0167694091796875, -0.0196990966796875, -0.0199737548828125, 0.05615234375, 0.00856781005859375, -0.04547119140625, 0.0274505615234375, -0.0038661956787109375, 0.043670654296875, 0.01033782958984375, 0.005825042724609375, 0.0142669677734375, 0.0007495880126953125, -0.046661376953125, 0.0109710693359375, 0.01031494140625, 0.00762939453125, -0.04339599609375, -0.0006475448608398438, -0.017578125, -0.01409149169921875, -0.0053253173828125, 0.005435943603515625, 0.005245208740234375, 0.0127716064453125, -0.01016998291015625, -0.0091552734375, 0.0033092498779296875, 0.020263671875, 0.024261474609375, -0.0013904571533203125, 0.0187530517578125, 0.00010281801223754883, 0.003498077392578125, -0.05267333984375, -0.071044921875, 0.0196990966796875, -0.013916015625, -0.0020771026611328125, -0.005802154541015625, 0.023681640625, -0.0015306472778320312, -0.00783538818359375, -0.00213623046875, 0.02606201171875, 0.0635986328125, -0.03961181640625, 0.01529693603515625, -0.047119140625, 0.05938720703125, -0.0263824462890625, -0.0260772705078125, 0.0294952392578125, 0.0670166015625, 0.007720947265625, -0.03558349609375, -0.0013055801391601562, -0.01404571533203125, -0.0943603515625, -0.00951385498046875, 0.08221435546875, 0.0273895263671875, 0.012786865234375, -0.0107879638671875, -0.00481414794921875, 0.049774169921875, 0.021514892578125, 0.01425933837890625, 0.006229400634765625, 0.0082550048828125, 0.044097900390625, -0.033172607421875, 0.00344085693359375, 0.01690673828125, -0.080322265625, -0.006816864013671875, 0.056060791015625, -0.0110626220703125, 0.01468658447265625, 0.0143890380859375, -0.024993896484375, -0.0178375244140625, -0.033477783203125, 0.00823211669921875, -0.0200653076171875, 0.036529541015625, 0.0023021697998046875, 0.01438140869140625, 0.0082855224609375, -0.033111572265625, 0.0193328857421875, 0.0182037353515625, -0.0223846435546875, 0.005992889404296875, 0.0174407958984375, -0.0196685791015625, -0.07830810546875, -0.0052947998046875, -0.00029087066650390625, -0.010284423828125, -0.034454345703125, -0.0010271072387695312, -0.00965118408203125, -0.0158843994140625, -0.00933837890625, 0.0290374755859375, -0.064208984375, 0.0060577392578125, 0.0282745361328125, 0.0208892822265625, 0.00844573974609375, 0.007537841796875, 0.025970458984375, -0.049407958984375, 0.0687255859375, -0.01375579833984375, -0.0214691162109375, 0.055908203125, -0.0232086181640625, 0.0308074951171875, -0.01751708984375, 0.055938720703125, 0.05853271484375, -0.0127716064453125, 0.010009765625, 0.01012420654296875, 0.01262664794921875, 0.01187896728515625, 0.001026153564453125, 0.005279541015625, 0.006954193115234375, -0.0309600830078125, 0.0208587646484375, 0.02252197265625, 0.08245849609375, -0.01068115234375, -0.048553466796875, -0.0011157989501953125, 0.05426025390625, -0.0731201171875, -0.09136962890625, 0.04827880859375, -0.06097412109375, 0.009429931640625, -0.019989013671875, -0.0413818359375, -0.01448822021484375, 0.02374267578125, -0.00737762451171875, 0.0085601806640625, -0.033966064453125, -0.06927490234375, -0.058807373046875, -0.059967041015625, -0.006870269775390625, -0.01294708251953125, 0.0161285400390625, -0.0196075439453125, 0.06085205078125, -0.0098419189453125, -0.0341796875, -0.003879547119140625, 0.04034423828125, 0.0036525726318359375, -0.01354217529296875, 0.05426025390625, -0.0361328125, -0.0148468017578125, 0.007595062255859375, -0.031646728515625, 0.04534912109375, -0.02197265625, -0.0036449432373046875, -0.0703125, -0.0234527587890625, -0.035736083984375, 0.0036220550537109375, 0.07708740234375, 0.033599853515625, 0.00734710693359375, -0.0190887451171875, -0.0171966552734375, 0.0145416259765625, -0.034027099609375, 0.004669189453125, 0.02618408203125, -0.0109405517578125, 0.01334381103515625, -0.0010051727294921875, 0.0014505386352539062, -0.005096435546875, 0.0221405029296875, -0.0133514404296875, -0.0233001708984375, -0.013336181640625, -0.01788330078125, -0.01435089111328125, 0.0426025390625, 0.0203094482421875, 0.003772735595703125, 0.04046630859375, 0.05853271484375, 0.00959014892578125, 0.0287628173828125, -0.033782958984375, -0.062469482421875, 0.04925537109375, -0.035064697265625, -0.0355224609375, -0.0079498291015625, -0.0207366943359375, 0.02777099609375, 0.06585693359375, -0.00179290771484375, -0.01451873779296875, 0.0097503662109375, 0.004344940185546875, -0.019744873046875, -0.030303955078125, -0.0310516357421875, -0.004642486572265625, -0.046875, 0.01560211181640625, 0.0033416748046875, -0.02685546875, -0.0386962890625, 0.039215087890625, -0.06005859375, -0.00913238525390625, 0.0273895263671875, -0.00016045570373535156, -0.0455322265625, 0.04071044921875, -0.060791015625, 0.0172882080078125, -0.0350341796875, 0.01458740234375, -0.11322021484375, -0.0127410888671875, 0.04144287109375, 0.035675048828125, -0.0032558441162109375, -0.043212890625, -0.0283050537109375, 0.039276123046875, 0.009613037109375, -0.01258087158203125, 0.06475830078125, 0.0343017578125, 0.0217437744140625, -0.02532958984375, 0.0211944580078125, -0.0552978515625, -0.013031005859375, -0.009521484375, -0.014739990234375, 0.0253753662109375, -0.00847625732421875, 0.01293182373046875, 0.023895263671875, -0.0167694091796875, -0.03778076171875, -0.00681304931640625, -0.0347900390625, 0.000637054443359375, -0.0013189315795898438, -0.030059814453125, -0.0237579345703125, -0.070068359375, 0.04302978515625, -0.01194000244140625, -0.02728271484375, -0.0113372802734375, 0.0806884765625, 0.0298309326171875, -0.024169921875, 0.0202178955078125, -0.0192413330078125, 0.028533935546875, 0.0439453125, 0.0147857666015625, -0.0221710205078125, -0.049835205078125, 0.1064453125, 0.00493621826171875, -0.01837158203125, 0.01439666748046875, 0.049285888671875, 0.014312744140625, -0.0162811279296875, 0.00519561767578125, 0.0041961669921875, -0.03277587890625, -0.0140838623046875, -0.045196533203125, 0.036407470703125, -0.05712890625, -0.00614166259765625, -0.010223388671875, 0.045562744140625, 0.005130767822265625, -0.004566192626953125, -0.0018987655639648438, 0.04620361328125, 0.0266876220703125, 0.0124053955078125, 0.0069427490234375, -0.01328277587890625, -0.02520751953125, 0.0018110275268554688, 0.0645751953125, 0.0047607421875, 0.033782958984375, 0.046966552734375, -0.0168304443359375, 0.01100921630859375, 0.028564453125, 0.004833221435546875, 0.06329345703125, -0.034332275390625, -0.0460205078125, -0.046661376953125, -0.01007080078125, 0.015869140625, 0.0277252197265625, -0.0015707015991210938, 0.033294677734375, 0.0189666748046875, -0.0289154052734375, -0.0177001953125, -0.006458282470703125, -0.01277923583984375, -0.056610107421875, 0.0241241455078125, 0.0129547119140625, 0.00444793701171875, -0.003925323486328125, 0.0731201171875, 0.0396728515625, 0.0221710205078125, -0.04327392578125, 0.0099334716796875, 0.036865234375, 0.00853729248046875, 0.01355743408203125, 0.0098876953125, 0.027618408203125, -0.032440185546875, 0.030731201171875, 0.0105438232421875, -0.003879547119140625, 0.028533935546875, 0.0164947509765625, 0.0168609619140625, 0.01441192626953125, -0.0198516845703125, -0.005603790283203125, -0.0086517333984375, 0.045654296875, -0.0037631988525390625, -0.049530029296875, -0.034271240234375, 0.00469207763671875, 0.0302886962890625, -0.0291290283203125, 0.0272979736328125, -0.030517578125, -0.00402069091796875, 0.01187896728515625, 0.019805908203125, -0.0026721954345703125, -0.0059051513671875, -0.0163421630859375, 0.0100555419921875, -0.0190582275390625, -0.007720947265625, -0.05499267578125, -0.00739288330078125, -0.0303955078125, -0.009063720703125, 0.054107666015625, -0.0155487060546875, 0.0648193359375, -0.036651611328125, -0.0274810791015625, 0.0013284683227539062, 0.0004892349243164062, 0.0313720703125, 0.03155517578125, -0.0209503173828125, -0.0021686553955078125, -0.056854248046875, -0.01849365234375, -0.0257568359375, -0.043212890625, -0.0352783203125, 0.001285552978515625, 0.02532958984375, 0.037445068359375, -0.01168060302734375, -0.044097900390625, -0.0186309814453125, -0.0122528076171875, 0.01207733154296875, 0.062744140625, 0.006885528564453125, 0.033203125, -0.0122222900390625, 0.029632568359375, 0.00832366943359375, -0.00296783447265625, -0.009490966796875, -0.0275115966796875, -0.0176849365234375, -0.0164794921875, 0.03582763671875, 0.0246429443359375, 0.0292816162109375, -0.0270843505859375, 0.00684356689453125, 0.00453948974609375, 0.01528167724609375, -0.013397216796875, -0.0015087127685546875, -0.036865234375, -0.01837158203125, -0.034881591796875, -0.041778564453125, 0.0298919677734375, -0.0283355712890625, -0.045166015625, 0.01352691650390625, 0.0227203369140625, -0.00516510009765625, 0.0026340484619140625, -0.0032520294189453125, -0.02001953125, -0.0592041015625, 0.058380126953125, 0.1259765625, 0.0229339599609375, 0.06573486328125, 0.0104827880859375, 0.0021419525146484375, 0.049957275390625, 0.037078857421875, -0.051513671875, -0.02642822265625, 0.0313720703125, 0.0150604248046875, -0.0128936767578125, 0.04339599609375, -0.0165252685546875, 0.018768310546875, 0.020843505859375, 0.06085205078125, -0.050201416015625, 0.0143890380859375, 0.021514892578125, -0.01531982421875, 0.01611328125, 0.048614501953125, -0.01399993896484375, 0.0246124267578125, 0.01849365234375, -0.029083251953125, 0.0153350830078125, 0.053863525390625, 0.03485107421875, -0.027801513671875, -0.0287628173828125, 0.0203857421875, 0.017608642578125, -0.002864837646484375, 0.0243377685546875, -0.01178741455078125, 0.017120361328125, -0.022979736328125, 0.0214996337890625, 0.01552581787109375, -0.0350341796875, -0.06744384765625, 0.0215301513671875, 0.0236968994140625, -0.035247802734375, 0.0582275390625, 0.0203094482421875, -0.028717041015625, 0.0219573974609375, -0.0014562606811523438, 0.0209503173828125, -0.0200347900390625, -0.0155487060546875, -0.0101165771484375, -0.00846099853515625, 0.0477294921875, -0.0189971923828125, -0.07037353515625, 0.004608154296875, -0.07293701171875, 0.00982666015625, -0.02655029296875, -0.056732177734375, 0.08001708984375, -0.01226043701171875, -0.0217742919921875, -0.01287078857421875, 0.026153564453125, 0.005123138427734375, -0.04034423828125, 0.018035888671875, -0.05670166015625, 0.0019407272338867188, -0.008270263671875, -0.00658416748046875, -0.0301971435546875, -0.03790283203125, -0.06494140625, 0.11663818359375, -0.04730224609375, 0.0184173583984375, -0.0084228515625, 0.045867919921875, -0.02734375, 0.0148162841796875, -0.03680419921875, 0.040863037109375, -0.028533935546875, 0.0267486572265625, -0.04150390625, 0.0005879402160644531, -0.0019893646240234375, 0.001674652099609375, 0.01284027099609375, 0.002349853515625, -0.0015010833740234375, -0.01334381103515625, 0.02789306640625, 0.039276123046875, 0.0089569091796875, 0.00838470458984375, -0.0199737548828125, 0.0250396728515625, 0.005779266357421875, -0.068359375, 0.0012674331665039062, -0.04443359375, -0.0148162841796875, 0.01209259033203125, 0.0236968994140625, 0.040679931640625, 0.0246429443359375, -0.0306549072265625, -0.058837890625, 0.0147247314453125, 0.049774169921875, -0.0184783935546875, -0.0277862548828125, 0.04632568359375, 0.0152587890625, 0.01406097412109375, 0.0011606216430664062, -0.0199127197265625, 0.03350830078125, 0.0095062255859375, 0.00972747802734375, 0.00301361083984375, 0.01082611083984375, 0.0261993408203125, 0.0088043212890625, -0.0019073486328125, 0.03509521484375, -0.002613067626953125, 0.0892333984375, 0.035736083984375, 0.03509521484375, -0.0184783935546875, 0.0193328857421875, -0.01544952392578125, 0.07928466796875, -0.056671142578125, -0.005001068115234375, 0.006671905517578125, -0.019073486328125, -0.00818634033203125, -0.04132080078125, -0.0223388671875, 0.003536224365234375, 0.0236053466796875, -0.045135498046875, 0.0109100341796875, 0.06036376953125, 0.00899505615234375, -0.0033626556396484375, -0.01154327392578125, -0.053436279296875, 0.00490570068359375, -0.04229736328125, 0.0097503662109375, -0.03155517578125, 0.029327392578125, 0.03350830078125, 0.044647216796875, 0.0004558563232421875, -0.007785797119140625, -0.0262298583984375, 0.0157623291015625, -0.019561767578125, 0.0418701171875, -0.02239990234375, -0.023040771484375, -0.0247650146484375, 0.01528167724609375, 0.021148681640625, 0.03350830078125, 0.01276397705078125, -0.01419830322265625, 0.010498046875, 0.00719451904296875, 0.001743316650390625, -0.03179931640625, 0.004116058349609375, 0.002105712890625, -0.002490997314453125, -0.001331329345703125, -0.0109100341796875, -0.0218353271484375, 0.06597900390625, -0.020538330078125, 0.006137847900390625, 0.038116455078125, 0.007781982421875, 0.0087738037109375, 0.053619384765625, 0.0302734375, 0.04437255859375, 0.0306549072265625, -0.0753173828125, -0.0193634033203125, -0.0189666748046875, -0.039276123046875, 0.0155792236328125, 0.037261962890625, -0.0105743408203125, 0.004268646240234375, -0.06402587890625, 0.035186767578125, 0.03326416015625, -0.06842041015625, 0.013214111328125, 0.052520751953125, 0.01129913330078125, 0.0132293701171875, -0.04364013671875, -0.018157958984375, -0.0048980712890625, 0.0038909912109375, 0.0030269622802734375, 0.04608154296875, 0.01274871826171875, 0.0039520263671875, 0.00994110107421875, 0.02703857421875, -0.031707763671875, -0.031768798828125, 0.03997802734375, -0.0107879638671875, 0.01708984375, -0.013214111328125, -0.0175018310546875, 0.04345703125, 0.0279083251953125, 0.005290985107421875, 0.0699462890625, -0.046478271484375, 0.00713348388671875, -0.033966064453125, -0.0208587646484375, -0.00673675537109375, 0.0038604736328125, -0.021087646484375, -0.02691650390625, 0.0411376953125, 0.034149169921875, -0.0141754150390625, 0.040863037109375, 0.0219879150390625, 0.005496978759765625, 0.0362548828125, -0.019439697265625, 0.076416015625, 0.029571533203125, -0.046783447265625, 0.002635955810546875, -0.035736083984375, -0.0160675048828125, 0.023406982421875, -0.007099151611328125, -0.0092315673828125, -0.003902435302734375, 0.0238037109375, -0.01073455810546875, -0.0218658447265625, -0.0168914794921875, -0.05621337890625, -0.00850677490234375, 0.016998291015625, -0.0082244873046875, 0.0003185272216796875, -0.0428466796875, -0.0030345916748046875, -0.043701171875, -0.004894256591796875, 0.0277252197265625, -0.00902557373046875, -0.0216064453125, -0.025054931640625, 0.0060577392578125, -0.03173828125, -0.0189666748046875, -0.018646240234375, 0.01215362548828125, -0.01013946533203125, 0.0046539306640625, -0.047760009765625, 0.0173187255859375, 0.0025272369384765625, 0.0074920654296875, -0.052459716796875, 0.01471710205078125, -0.0347900390625, -0.0274658203125, -0.001018524169921875, 0.015228271484375, 0.05419921875, -0.01068878173828125, -0.03570556640625, -0.0022430419921875, 0.01303863525390625, 0.033905029296875, -0.0285491943359375, -0.0377197265625, 0.003437042236328125, -0.0007205009460449219, -0.00037670135498046875, -0.05987548828125, 0.01383209228515625, -0.085693359375, -0.0034275054931640625, 0.005519866943359375, -0.01372528076171875, 0.005283355712890625, -0.0323486328125, -0.021209716796875, 0.0038661956787109375, 0.0164642333984375, -0.03955078125, 0.009002685546875, 0.0123443603515625, -0.01416015625, 0.03985595703125, 0.035400390625, -0.047271728515625, -0.004657745361328125, -0.004764556884765625, 0.003116607666015625, 0.0740966796875, 0.0040130615234375, 0.01425933837890625, -0.00860595703125, 0.0024204254150390625, -0.02642822265625, -0.00015401840209960938, 0.0335693359375, -0.03338623046875, 0.040008544921875, 0.00711822509765625, -0.047149658203125, 0.0082855224609375, -0.00222015380859375, -0.00433349609375, 0.01471710205078125, -0.0018024444580078125, -0.0263214111328125, 0.01103973388671875, 0.0305328369140625, 0.026397705078125, 0.02264404296875, -0.025421142578125, -0.0584716796875, -0.030548095703125, -0.00017595291137695312, 0.0258026123046875, 0.02166748046875, -0.0623779296875, 0.03582763671875, 0.0278167724609375, -0.057769775390625, -0.0189208984375, 0.01096343994140625, -0.0648193359375, 0.033966064453125, 0.00897216796875, -0.006099700927734375, -0.04052734375, 0.01708984375, 0.028045654296875, -0.036590576171875, -0.02294921875, -0.01654052734375, 0.004608154296875, 0.0011949539184570312, -0.0228118896484375, 0.01302337646484375, 0.06622314453125, -0.057281494140625, -0.018341064453125, 0.0221405029296875, 0.027862548828125, 0.0119781494140625, 0.00839996337890625, -0.0100555419921875, 0.0216064453125, -0.013214111328125, 0.00623321533203125, -0.0008921623229980469, 0.0455322265625, 0.0011930465698242188, 0.04150390625, -0.01255035400390625, 0.0389404296875, 0.0024127960205078125, 0.016448974609375, -0.02056884765625, 0.0017232894897460938, 0.01190948486328125, -0.0310821533203125, -0.007259368896484375, -0.0116119384765625, -0.0242767333984375, -0.048736572265625, 0.00909423828125, -0.025665283203125, -0.0200042724609375, 0.0266265869140625 ]
43da0c8c41c6f63c923d24faa2daf3b5f18cb6f3
Wordpress Stackexchange Q: How to enqueue style before style.css How do I enqueue a .css file before style.css is loaded? Or make the default style.css dependant on another .css file? I'm trying to load a .css reset, which style.css would overwrite. Here's what I have: add_action('wp_enqueue_scripts', 'load_css_files'); function load_css_files() { wp_register_style( 'normalize', get_template_directory_uri() . '/css/normalize.css'); wp_enqueue_style( 'normalize' ); } However this is loaded after style.css. A: Enqueue the style.css too, and set normalize as dependency: if ( ! is_admin() ) { // Register early, so no on else can reserve that handle add_action( 'wp_loaded', function() { wp_register_style( 'normalize', // parent theme get_template_directory_uri() . '/css/normalize.css' ); wp_register_style( 'theme_name', // current theme, might be the child theme get_stylesheet_uri(), [ 'normalize' ] ); }); add_action( 'wp_enqueue_scripts', function() { wp_enqueue_style( 'theme_name' ); }); } WordPress will load the dependencies now first automatically when theme_name is printed.
Q: How to enqueue style before style.css How do I enqueue a .css file before style.css is loaded? Or make the default style.css dependant on another .css file? I'm trying to load a .css reset, which style.css would overwrite. Here's what I have: add_action('wp_enqueue_scripts', 'load_css_files'); function load_css_files() { wp_register_style( 'normalize', get_template_directory_uri() . '/css/normalize.css'); wp_enqueue_style( 'normalize' ); } However this is loaded after style.css. A: Enqueue the style.css too, and set normalize as dependency: if ( ! is_admin() ) { // Register early, so no on else can reserve that handle add_action( 'wp_loaded', function() { wp_register_style( 'normalize', // parent theme get_template_directory_uri() . '/css/normalize.css' ); wp_register_style( 'theme_name', // current theme, might be the child theme get_stylesheet_uri(), [ 'normalize' ] ); }); add_action( 'wp_enqueue_scripts', function() { wp_enqueue_style( 'theme_name' ); }); } WordPress will load the dependencies now first automatically when theme_name is printed.
wordpress
{ "language": "en", "length": 140, "provenance": "stackexchange_00019.jsonl.gz:431391", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/96161" }
[ 0.007328033447265625, 0.0090484619140625, -0.04754638671875, -0.06964111328125, 0.004894256591796875, -0.0154571533203125, -0.028228759765625, 0.0189361572265625, -0.0443115234375, 0.00848388671875, -0.06732177734375, 0.035888671875, -0.019073486328125, 0.00893402099609375, 0.0306854248046875, -0.044586181640625, 0.05792236328125, -0.051055908203125, 0.023040771484375, 0.00347137451171875, 0.006011962890625, 0.0350341796875, 0.043060302734375, 0.07293701171875, 0.018096923828125, -0.0465087890625, 0.09521484375, -0.0010662078857421875, 0.01580810546875, -0.0039825439453125, 0.0265960693359375, -0.032012939453125, 0.023468017578125, 0.022125244140625, -0.008392333984375, 0.00873565673828125, 0.032318115234375, -0.0120697021484375, 0.0109710693359375, 0.034576416015625, 0.035064697265625, -0.01555633544921875, -0.009002685546875, 0.052947998046875, -0.0167236328125, -0.051605224609375, 0.03399658203125, -0.021759033203125, -0.01189422607421875, -0.00362396240234375, 0.022247314453125, -0.005901336669921875, 0.030731201171875, -0.01375579833984375, -0.0139312744140625, -0.0132598876953125, -0.0177001953125, 0.0223388671875, 0.021728515625, 0.0182342529296875, -0.00742340087890625, 0.01511383056640625, 0.00946807861328125, -0.034820556640625, -0.0215606689453125, 0.0160980224609375, -0.0204620361328125, -0.01107025146484375, -0.044830322265625, -0.01039886474609375, 0.03240966796875, -0.044708251953125, -0.0065765380859375, -0.0142822265625, -0.03204345703125, 0.023193359375, 0.00351715087890625, 0.00397491455078125, 0.036712646484375, -0.015716552734375, 0.029815673828125, -0.00946807861328125, -0.00742340087890625, -0.0240478515625, 0.0189208984375, -0.011199951171875, -0.008544921875, -0.01300811767578125, -0.02008056640625, -0.0318603515625, -0.01776123046875, 0.0180511474609375, -0.024505615234375, -0.020782470703125, -0.0178680419921875, -0.0251312255859375, 0.058380126953125, 0.08782958984375, 0.0120697021484375, 0.0264892578125, -0.006072998046875, -0.052886962890625, 0.0277099609375, -0.0400390625, -0.0011873245239257812, 0.044891357421875, -0.01116180419921875, 0.00817108154296875, 0.02978515625, 0.0247650146484375, 0.0149993896484375, -0.01212310791015625, 0.0253753662109375, 0.017059326171875, -0.0229034423828125, -0.045196533203125, -0.030181884765625, 0.0206451416015625, -0.00939178466796875, 0.00995635986328125, 0.001644134521484375, 0.0316162109375, -0.004177093505859375, -0.045806884765625, 0.00090789794921875, -0.024078369140625, -0.0130767822265625, -0.0311737060546875, 0.0289306640625, 0.04241943359375, -0.0165557861328125, -0.0148162841796875, 0.052978515625, 0.0220489501953125, 0.004085540771484375, -0.025054931640625, 0.03570556640625, -0.0218505859375, -0.00981903076171875, 0.0003604888916015625, 0.014862060546875, -0.043212890625, -0.0310821533203125, 0.00595855712890625, 0.003917694091796875, 0.0250244140625, 0.01727294921875, 0.0004737377166748047, -0.008453369140625, -0.04486083984375, 0.039031982421875, -0.042755126953125, 0.044525146484375, 0.013671875, -0.03656005859375, -0.01483917236328125, 0.034271240234375, -0.02374267578125, -0.028594970703125, -0.0574951171875, -0.03778076171875, 0.006519317626953125, 0.01152801513671875, -0.027069091796875, -0.00830841064453125, -0.0166778564453125, 0.01372528076171875, 0.0150299072265625, 0.03594970703125, -0.01016998291015625, -0.0076141357421875, -0.0177154541015625, 0.052520751953125, 0.018890380859375, -0.0031528472900390625, 0.054107666015625, -0.005279541015625, 0.01177215576171875, 0.00994110107421875, 0.026580810546875, -0.000171661376953125, -0.036712646484375, 0.04571533203125, -0.0261383056640625, -0.0239410400390625, -0.026153564453125, 0.0102081298828125, 0.01617431640625, 0.01303863525390625, 0.0302886962890625, 0.03387451171875, -0.01126861572265625, -0.06158447265625, 0.017669677734375, -0.0158538818359375, -0.0064544677734375, 0.0323486328125, 0.01305389404296875, 0.00695037841796875, 0.003086090087890625, 0.003780364990234375, 0.0039005279541015625, 0.0217437744140625, -0.0288543701171875, -0.052947998046875, 0.0165557861328125, -0.0280303955078125, 0.04254150390625, -0.0241546630859375, 0.0025653839111328125, 0.013946533203125, 0.00263214111328125, 0.00580596923828125, -0.07415771484375, -0.03118896484375, 0.0207366943359375, 0.00684356689453125, 0.043212890625, 0.018707275390625, 0.0295257568359375, 0.0259246826171875, -0.0184326171875, 0.020477294921875, 0.01294708251953125, -0.01035308837890625, 0.006229400634765625, -0.0355224609375, -0.0036563873291015625, -0.006496429443359375, -0.006298065185546875, 0.0396728515625, 0.057037353515625, 0.04547119140625, 0.059600830078125, -0.00872802734375, -0.01318359375, 0.022735595703125, -0.038360595703125, 0.01806640625, 0.033538818359375, 0.034210205078125, 0.024688720703125, -0.00063323974609375, 0.00688934326171875, 0.034698486328125, -0.006710052490234375, 0.0196380615234375, -0.0158233642578125, 0.0015544891357421875, -0.007747650146484375, 0.00380706787109375, 0.005039215087890625, 0.034759521484375, -0.06689453125, 0.03302001953125, 0.034393310546875, -0.037353515625, -0.0443115234375, -0.008087158203125, 0.036041259765625, 0.00820159912109375, 0.003955841064453125, -0.0138397216796875, 0.00556182861328125, 0.023681640625, 0.004009246826171875, -0.00611114501953125, -0.03094482421875, -0.027008056640625, 0.019012451171875, 0.043701171875, -0.06182861328125, 0.0014743804931640625, 0.0169677734375, -0.01464080810546875, -0.04840087890625, -0.0106353759765625, 0.004817962646484375, -0.0097198486328125, -0.012420654296875, -0.0031719207763671875, 0.02032470703125, -0.057525634765625, -0.00705718994140625, -0.0091705322265625, -0.070556640625, -0.01061248779296875, 0.027587890625, 0.0128936767578125, 0.0118560791015625, 0.034027099609375, 0.035980224609375, 0.01470184326171875, 0.01126861572265625, 0.0237579345703125, -0.01102447509765625, 0.008331298828125, 0.040985107421875, -0.004955291748046875, -0.01146697998046875, -0.0171966552734375, 0.01554107666015625, -0.01519775390625, -0.007129669189453125, 0.01898193359375, -0.003322601318359375, 0.05096435546875, -0.00928497314453125, -0.011444091796875, -0.0149688720703125, -0.04949951171875, -0.01534271240234375, 0.0386962890625, 0.022125244140625, 0.0287933349609375, -0.0174560546875, 0.010833740234375, 0.0295562744140625, -0.046173095703125, -0.08819580078125, -0.05047607421875, -0.0552978515625, 0.004962921142578125, -0.027496337890625, -0.0202178955078125, 0.01085662841796875, -0.04119873046875, 0.021575927734375, -0.0228118896484375, -0.038238525390625, -0.0504150390625, -0.09063720703125, -0.074951171875, -0.0173187255859375, 0.00251007080078125, 0.0141448974609375, 0.00823974609375, 0.05084228515625, 0.01177978515625, -0.0178375244140625, 0.0293731689453125, -0.0109405517578125, -0.022979736328125, -0.01036834716796875, 0.03204345703125, -0.037384033203125, -0.01824951171875, 0.00640106201171875, -0.007312774658203125, 0.01171112060546875, -0.0130157470703125, -0.00817108154296875, -0.02227783203125, -0.022796630859375, -0.0155792236328125, 0.05706787109375, 0.03466796875, -0.052154541015625, 0.0235748291015625, -0.06292724609375, -0.034576416015625, 0.001789093017578125, -0.0460205078125, 0.0352783203125, 0.0347900390625, -0.0169525146484375, 0.0032634735107421875, 0.00966644287109375, -0.004734039306640625, -0.03924560546875, 0.045166015625, -0.0294952392578125, 0.040740966796875, -0.0227203369140625, -0.022979736328125, -0.044586181640625, 0.06317138671875, -0.00882720947265625, 0.0067901611328125, 0.03173828125, 0.011016845703125, -0.00397491455078125, -0.038787841796875, -0.0645751953125, -0.02520751953125, 0.0194244384765625, -0.0184173583984375, 0.062286376953125, -0.049041748046875, -0.0212860107421875, -0.018524169921875, 0.09234619140625, -0.048126220703125, -0.01361083984375, 0.0321044921875, 0.0305023193359375, -0.0599365234375, -0.047454833984375, -0.05126953125, -0.005046844482421875, -0.09814453125, 0.002918243408203125, -0.0390625, -0.0308837890625, 0.017822265625, -0.03521728515625, -0.0277252197265625, -0.06439208984375, 0.0283966064453125, 0.0013780593872070312, -0.008331298828125, 0.03704833984375, -0.03900146484375, 0.0223388671875, -0.01580810546875, -0.01424407958984375, -0.126953125, -0.02935791015625, -0.01204681396484375, 0.09722900390625, 0.00974273681640625, 0.021026611328125, -0.007541656494140625, 0.08685302734375, -0.00341796875, 0.006595611572265625, 0.031280517578125, 0.030364990234375, 0.004077911376953125, -0.0124664306640625, 0.020782470703125, -0.04290771484375, 0.0019893646240234375, 0.0207366943359375, -0.057830810546875, 0.02191162109375, -0.01163482666015625, -0.0175323486328125, 0.05792236328125, -0.04534912109375, -0.024932861328125, 0.00911712646484375, -0.004177093505859375, -0.0305023193359375, 0.008209228515625, -0.0360107421875, 0.0204010009765625, -0.018646240234375, 0.00667572021484375, -0.0199432373046875, 0.0146026611328125, -0.00907135009765625, 0.0257568359375, 0.035125732421875, -0.0302581787109375, 0.046295166015625, 0.03399658203125, 0.01374053955078125, 0.039306640625, 0.01525115966796875, -0.027923583984375, -0.00925445556640625, 0.01373291015625, 0.01020050048828125, -0.0165557861328125, 0.026153564453125, 0.05352783203125, 0.0179595947265625, -0.026458740234375, 0.01212310791015625, -0.00206756591796875, -0.031463623046875, 0.03631591796875, 0.0168609619140625, -0.005138397216796875, 0.018524169921875, -0.0050201416015625, 0.01357269287109375, -0.03900146484375, -0.01146697998046875, -0.00449371337890625, -0.0135498046875, 0.01245880126953125, 0.03924560546875, 0.02972412109375, -0.0140228271484375, 0.00244140625, 0.027069091796875, -0.006145477294921875, 0.0181732177734375, 0.034820556640625, -0.01244354248046875, 0.0210113525390625, 0.017333984375, -0.01708984375, -0.004543304443359375, -0.013641357421875, 0.0745849609375, -0.00888824462890625, -0.04864501953125, -0.03057861328125, -0.002429962158203125, 0.05902099609375, 0.02337646484375, 0.0109710693359375, 0.054443359375, -0.00913238525390625, -0.047943115234375, -0.036651611328125, -0.0146636962890625, -0.031951904296875, -0.077880859375, 0.05853271484375, -0.01180267333984375, -0.004528045654296875, 0.0120697021484375, 0.0186614990234375, 0.0216827392578125, 0.0011968612670898438, -0.0024890899658203125, -0.0131378173828125, -0.035919189453125, 0.02325439453125, 0.0136566162109375, 0.006191253662109375, 0.032684326171875, -0.0033779144287109375, 0.076171875, -0.04351806640625, -0.00893402099609375, 0.02679443359375, 0.0638427734375, -0.059295654296875, -0.04278564453125, 0.044219970703125, -0.01690673828125, -0.02862548828125, 0.0261688232421875, 0.005558013916015625, -0.0350341796875, -0.020782470703125, -0.014739990234375, 0.018646240234375, 0.0083770751953125, 0.006298065185546875, 0.036041259765625, 0.01003265380859375, 0.02752685546875, 0.0090484619140625, -0.007289886474609375, -0.01226043701171875, -0.014068603515625, -0.00896453857421875, 0.00608062744140625, 0.0018854141235351562, -0.01169586181640625, -0.044189453125, -0.01232147216796875, -0.0145263671875, 0.023651123046875, -0.0283966064453125, 0.01334381103515625, -0.03759765625, 0.0238800048828125, -0.058074951171875, 0.0250244140625, 0.0218505859375, 0.005031585693359375, 0.0168914794921875, -0.0162811279296875, -0.031951904296875, -0.032623291015625, -0.0282745361328125, -0.04217529296875, -0.023193359375, -0.0021533966064453125, -0.0220489501953125, -0.0012063980102539062, -0.03277587890625, -0.0182037353515625, -0.0245208740234375, 0.0277557373046875, 0.0294036865234375, 0.016693115234375, -0.048065185546875, 0.06268310546875, 0.0406494140625, -0.005184173583984375, 0.016204833984375, 0.0225982666015625, -0.004405975341796875, 0.0084991455078125, -0.03643798828125, -0.0310516357421875, 0.0159912109375, 0.0022945404052734375, -0.01265716552734375, 0.04443359375, 0.10888671875, 0.01806640625, 0.03631591796875, -0.004955291748046875, -0.005702972412109375, -0.01496124267578125, -0.0246429443359375, -0.01300811767578125, 0.01537322998046875, 0.01959228515625, 0.01922607421875, 0.04827880859375, -0.036529541015625, -0.00015354156494140625, 0.0087432861328125, -0.0204010009765625, 0.037811279296875, -0.0240936279296875, -0.0657958984375, 0.050140380859375, 0.02044677734375, 0.0302734375, 0.038330078125, -0.0203094482421875, 0.02545166015625, -0.00865936279296875, 0.002674102783203125, -0.02685546875, 0.018035888671875, 0.034820556640625, -0.01262664794921875, 0.009857177734375, 0.0000623464584350586, -0.00794219970703125, -0.0033283233642578125, 0.0254669189453125, 0.055084228515625, -0.0458984375, 0.0027027130126953125, 0.0194091796875, -0.0019063949584960938, 0.0157623291015625, -0.0121307373046875, 0.01099395751953125, 0.0044403076171875, 0.0693359375, 0.006160736083984375, 0.00606536865234375, 0.05291748046875, -0.01904296875, -0.0055389404296875, -0.03680419921875, -0.0091705322265625, -0.008148193359375, -0.03668212890625, 0.004016876220703125, 0.0126190185546875, -0.0199432373046875, -0.041046142578125, 0.0155487060546875, -0.0208892822265625, 0.002872467041015625, -0.02435302734375, 0.027191162109375, -0.026458740234375, 0.0156707763671875, 0.015655517578125, -0.035125732421875, 0.012298583984375, 0.002834320068359375, -0.0254364013671875, 0.0201568603515625, -0.036834716796875, 0.0145263671875, 0.01009368896484375, -0.033782958984375, 0.01036834716796875, 0.004062652587890625, -0.035736083984375, 0.0262298583984375, 0.00011467933654785156, -0.040313720703125, -0.01264190673828125, -0.004425048828125, 0.08489990234375, -0.05865478515625, -0.00765228271484375, -0.0027980804443359375, 0.029083251953125, 0.0196075439453125, -0.044219970703125, 0.0211334228515625, -0.052154541015625, -0.0311279296875, -0.0053253173828125, -0.041778564453125, -0.043609619140625, -0.05999755859375, -0.0254974365234375, 0.0751953125, -0.052276611328125, 0.030242919921875, 0.055450439453125, 0.0270538330078125, -0.022369384765625, 0.00873565673828125, -0.0018062591552734375, 0.02020263671875, -0.005680084228515625, 0.018402099609375, -0.031402587890625, -0.01336669921875, 0.003604888916015625, 0.061737060546875, 0.041229248046875, 0.004283905029296875, -0.022918701171875, 0.009429931640625, 0.06854248046875, 0.041534423828125, 0.001682281494140625, 0.01419830322265625, -0.0156402587890625, -0.003055572509765625, -0.0272216796875, -0.02020263671875, 0.020263671875, -0.06365966796875, -0.052032470703125, 0.0007462501525878906, -0.003902435302734375, -0.01355743408203125, -0.0093841552734375, 0.051605224609375, -0.0548095703125, 0.0159454345703125, 0.0384521484375, 0.0229644775390625, 0.006244659423828125, 0.0265350341796875, 0.0225372314453125, 0.0149383544921875, 0.0011587142944335938, -0.0243377685546875, 0.048736572265625, -0.01526641845703125, -0.035919189453125, -0.01033782958984375, -0.0072479248046875, -0.0088043212890625, 0.00814056396484375, -0.022857666015625, 0.033416748046875, 0.0002522468566894531, 0.03594970703125, 0.01177215576171875, 0.03985595703125, -0.00838470458984375, -0.0391845703125, -0.05926513671875, 0.01276397705078125, -0.00968170166015625, 0.0023059844970703125, 0.0181427001953125, 0.009185791015625, -0.0114288330078125, -0.042633056640625, -0.006740570068359375, -0.09320068359375, -0.06005859375, -0.01546478271484375, -0.00809478759765625, 0.0189666748046875, 0.0017337799072265625, -0.00202178955078125, -0.0004050731658935547, -0.01190948486328125, 0.0075836181640625, -0.025390625, 0.035675048828125, 0.022979736328125, 0.02752685546875, -0.0235595703125, 0.050140380859375, 0.00400543212890625, -0.0007572174072265625, -0.035552978515625, 0.0297088623046875, 0.02471923828125, 0.0289764404296875, 0.0053863525390625, 0.05218505859375, -0.02880859375, 0.0150909423828125, 0.054534912109375, 0.00440216064453125, 0.07403564453125, 0.032257080078125, -0.05340576171875, -0.0005216598510742188, 0.0177764892578125, -0.02301025390625, 0.038818359375, -0.01800537109375, 0.048614501953125, 0.01216888427734375, -0.00736236572265625, -0.0196380615234375, 0.0283355712890625, 0.040191650390625, -0.026336669921875, 0.0161895751953125, 0.00039696693420410156, 0.0235137939453125, 0.022491455078125, -0.004547119140625, -0.02850341796875, 0.00762176513671875, -0.041717529296875, -0.0166015625, -0.01416015625, 0.0111846923828125, 0.0220184326171875, 0.033782958984375, -0.00800323486328125, 0.035797119140625, 0.043731689453125, -0.0413818359375, -0.0194549560546875, 0.053192138671875, -0.001598358154296875, 0.0234832763671875, 0.030548095703125, 0.0284576416015625, -0.07427978515625, -0.042236328125, -0.0341796875, 0.040802001953125, 0.01248931884765625, 0.0418701171875, -0.0113067626953125, 0.03070068359375, 0.033905029296875, -0.004299163818359375, 0.012603759765625, 0.0031147003173828125, 0.01503753662109375, -0.0255889892578125, 0.0066375732421875, -0.00746917724609375, -0.01148223876953125, 0.0269775390625, 0.0206451416015625, -0.006183624267578125, 0.0026645660400390625, -0.00807952880859375, 0.0216522216796875, 0.0119171142578125, 0.0019359588623046875, -0.043609619140625, -0.0517578125, -0.07305908203125, 0.00959014892578125, -0.0035800933837890625, -0.05047607421875, -0.031280517578125, -0.00959014892578125, 0.024078369140625, -0.0296630859375, 0.0355224609375, 0.01392364501953125, 0.042724609375, 0.021759033203125, 0.00635528564453125, -0.03448486328125, 0.0180511474609375, -0.0119781494140625, 0.00901031494140625, 0.0225830078125, 0.0309906005859375, 0.01043701171875, -0.037261962890625, 0.0362548828125, 0.0693359375, 0.086181640625, 0.0233306884765625, 0.032867431640625, 0.03216552734375, -0.036285400390625, -0.0171966552734375, -0.0615234375, -0.029022216796875, -0.06610107421875, 0.0010557174682617188, 0.0135650634765625, -0.0272369384765625, -0.03143310546875, 0.0106201171875, 0.0299835205078125, 0.032196044921875, 0.00823974609375, -0.06597900390625, 0.0599365234375, -0.0537109375, 0.046783447265625, -0.0001779794692993164, 0.01479339599609375, -0.006549835205078125, -0.004444122314453125, -0.04132080078125, -0.023040771484375, -0.03973388671875, 0.0309600830078125, -0.041900634765625, -0.005748748779296875, 0.0220947265625, 0.0089263916015625, 0.0302886962890625, 0.0007042884826660156, -0.013946533203125, 0.051300048828125, -0.091552734375, 0.003635406494140625, 0.0517578125, 0.0137481689453125, -0.034027099609375, -0.1171875, -0.0240020751953125, -0.039703369140625, 0.0552978515625, -0.0200958251953125, -0.002422332763671875, 0.01531219482421875, -0.031951904296875, -0.06500244140625, 0.04266357421875, -0.004779815673828125, -0.028717041015625, -0.02923583984375, 0.0198211669921875, -0.00022363662719726562, -0.0157623291015625, -0.00908660888671875, -0.0193023681640625, 0.00080108642578125, 0.0232696533203125, -0.0029239654541015625, 0.057159423828125, 0.0246734619140625, -0.01849365234375, -0.0252227783203125, -0.0104217529296875, -0.01270294189453125, 0.0287628173828125, -0.0192413330078125, -0.0011444091796875, 0.043792724609375, 0.033355712890625, 0.007709503173828125, 0.0006175041198730469, 0.04248046875, -0.028839111328125, -0.0206146240234375, -0.01305389404296875, -0.016387939453125, -0.00211334228515625, 0.0750732421875, 0.00704193115234375, 0.0130157470703125, -0.01250457763671875, -0.0249481201171875, -0.03009033203125, -0.009429931640625, -0.039520263671875, 0.020233154296875, -0.0797119140625, -0.027557373046875, -0.0012769699096679688, -0.01409912109375, -0.034332275390625, -0.032928466796875, -0.051788330078125, -0.01068115234375, -0.032379150390625, 0.0235595703125, -0.023193359375, -0.0270538330078125, 0.056884765625, -0.0105743408203125, 0.0245208740234375, 0.0049591064453125, 0.035797119140625, 0.031341552734375, 0.045257568359375, 0.00749969482421875, 0.05560302734375, -0.07220458984375, -0.0171051025390625, 0.007472991943359375, -0.028228759765625, -0.019775390625, 0.007801055908203125, -0.006816864013671875, -0.0158233642578125, -0.01262664794921875, -0.0239410400390625, 0.0306854248046875, 0.0244293212890625, -0.007076263427734375, 0.049530029296875, -0.0135345458984375, 0.0167236328125, 0.01248931884765625, 0.01477813720703125, -0.01036834716796875, 0.006671905517578125, 0.0248870849609375, -0.0295867919921875, 0.0007472038269042969, -0.018463134765625, -0.011077880859375, -0.04986572265625, 0.023773193359375, -0.035003662109375, -0.010009765625, 0.01532745361328125 ]
46e5ab28b8ea6eeda5e7a6fbc8fe9c7836dc1386
Wordpress Stackexchange Q: Disable /wp-admin/plugin-install.php How can I disable plugin upload and installation via Wordpress Admin? Should still be able to activate/deactivate plugins in admin. A: There is a constant you can define in wp-config.php to do this. It will also disable the theme edit, however. <?php // somewhere in wp-config.php define('DISALLOW_FILE_MODS', true); That will remove the plugin and theme file editor (which are a terrible idea anyway) and remove the ability to install plugins and themes from the admin area.
Q: Disable /wp-admin/plugin-install.php How can I disable plugin upload and installation via Wordpress Admin? Should still be able to activate/deactivate plugins in admin. A: There is a constant you can define in wp-config.php to do this. It will also disable the theme edit, however. <?php // somewhere in wp-config.php define('DISALLOW_FILE_MODS', true); That will remove the plugin and theme file editor (which are a terrible idea anyway) and remove the ability to install plugins and themes from the admin area.
wordpress
{ "language": "en", "length": 79, "provenance": "stackexchange_00019.jsonl.gz:431412", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/96229" }
[ 0.0810546875, 0.00872802734375, 0.0302581787109375, -0.0218658447265625, 0.01100921630859375, -0.03564453125, 0.05072021484375, -0.0394287109375, 0.0028743743896484375, 0.017578125, 0.0170745849609375, -0.0072479248046875, -0.00004744529724121094, -0.0465087890625, -0.0005326271057128906, -0.01019287109375, -0.00632476806640625, 0.041412353515625, 0.0231781005859375, -0.0208892822265625, 0.01241302490234375, 0.004344940185546875, -0.022216796875, 0.01384735107421875, -0.0262603759765625, 0.04400634765625, 0.043182373046875, -0.030059814453125, -0.00655364990234375, -0.028076171875, 0.005889892578125, 0.000423431396484375, 0.004261016845703125, 0.0390625, -0.022796630859375, -0.057952880859375, -0.0095062255859375, 0.01885986328125, 0.02227783203125, -0.0206756591796875, 0.044586181640625, -0.0170135498046875, -0.0011949539184570312, 0.0299072265625, -0.0178070068359375, -0.040130615234375, 0.047515869140625, -0.01800537109375, 0.0253753662109375, -0.017913818359375, -0.005718231201171875, 0.0180816650390625, 0.0182952880859375, -0.084716796875, -0.016387939453125, -0.014801025390625, -0.00206756591796875, 0.05230712890625, 0.0266876220703125, 0.00505828857421875, -0.041778564453125, 0.01175689697265625, -0.002033233642578125, -0.036712646484375, 0.041717529296875, -0.0234527587890625, -0.0210723876953125, 0.03863525390625, -0.0899658203125, 0.057342529296875, 0.076416015625, -0.0728759765625, 0.0224151611328125, -0.01525115966796875, 0.0166015625, -0.0175628662109375, 0.01090240478515625, 0.0029392242431640625, 0.0121002197265625, 0.003795623779296875, 0.030426025390625, -0.00598907470703125, 0.01898193359375, -0.0265655517578125, 0.03973388671875, 0.024017333984375, 0.01291656494140625, -0.018341064453125, -0.0110626220703125, 0.00974273681640625, -0.0225067138671875, 0.032440185546875, -0.007598876953125, 0.01172637939453125, -0.0253448486328125, 0.0021915435791015625, 0.05767822265625, 0.034759521484375, -0.0005297660827636719, -0.027679443359375, 0.0202789306640625, -0.050537109375, 0.009002685546875, -0.0093994140625, -0.004985809326171875, 0.0225067138671875, -0.017608642578125, -0.01611328125, 0.021697998046875, 0.034027099609375, -0.005767822265625, -0.006984710693359375, -0.03350830078125, -0.043914794921875, 0.004138946533203125, 0.035980224609375, -0.047607421875, 0.042327880859375, 0.0196990966796875, 0.036163330078125, -0.024261474609375, 0.009979248046875, -0.0330810546875, -0.0140838623046875, -0.0025177001953125, -0.0298919677734375, -0.007419586181640625, 0.0215911865234375, -0.035491943359375, 0.019256591796875, -0.028656005859375, 0.0126495361328125, 0.07952880859375, 0.0347900390625, 0.009796142578125, -0.01160430908203125, 0.00528717041015625, 0.029510498046875, -0.0009794235229492188, 0.00493621826171875, 0.0018835067749023438, -0.023193359375, 0.015716552734375, -0.02398681640625, -0.01091766357421875, 0.0195465087890625, 0.004405975341796875, 0.00818634033203125, 0.001983642578125, -0.00774383544921875, -0.01068878173828125, -0.042205810546875, 0.01922607421875, 0.03125, 0.00399017333984375, 0.00885009765625, 0.031951904296875, -0.009674072265625, -0.022064208984375, -0.03155517578125, -0.0098419189453125, -0.00009113550186157227, 0.043731689453125, 0.00588226318359375, -0.01032257080078125, 0.01055908203125, -0.003711700439453125, -0.004032135009765625, 0.0207366943359375, -0.0118865966796875, 0.026275634765625, -0.046478271484375, 0.0184326171875, 0.01531982421875, 0.00949859619140625, 0.044342041015625, 0.0232696533203125, -0.00421142578125, 0.00638580322265625, 0.057037353515625, 0.009552001953125, -0.007617950439453125, 0.0290374755859375, 0.00940704345703125, -0.06512451171875, 0.01462554931640625, 0.007167816162109375, 0.01090240478515625, 0.0218658447265625, -0.005435943603515625, 0.0872802734375, 0.01537322998046875, -0.00005894899368286133, 0.0015497207641601562, -0.0130767822265625, -0.035491943359375, -0.0248870849609375, 0.0015382766723632812, -0.021942138671875, -0.0007443428039550781, 0.01467132568359375, -0.005535125732421875, -0.0013017654418945312, -0.0180816650390625, -0.0489501953125, -0.02239990234375, -0.003204345703125, 0.0136260986328125, 0.00431060791015625, 0.038330078125, 0.01148223876953125, 0.015167236328125, -0.0189056396484375, -0.0174102783203125, -0.0117034912109375, -0.015960693359375, -0.0272064208984375, 0.06329345703125, 0.0022602081298828125, 0.06890869140625, -0.0151214599609375, -0.0307159423828125, 0.00962066650390625, -0.034912109375, 0.00905609130859375, 0.0119781494140625, 0.0036773681640625, 0.0014734268188476562, 0.039093017578125, -0.0001327991485595703, 0.0572509765625, 0.0034236907958984375, -0.01230621337890625, -0.001552581787109375, -0.0209808349609375, -0.016387939453125, 0.001220703125, -0.09832763671875, 0.0202178955078125, 0.056915283203125, 0.0291900634765625, 0.036773681640625, -0.021026611328125, -0.001308441162109375, 0.037567138671875, -0.060943603515625, -0.01053619384765625, 0.009307861328125, 0.050872802734375, 0.0487060546875, -0.01471710205078125, -0.014862060546875, 0.03179931640625, 0.012939453125, 0.035491943359375, 0.025543212890625, -0.0213623046875, -0.02984619140625, 0.026885986328125, -0.00797271728515625, 0.0088043212890625, 0.00826263427734375, -0.0096588134765625, -0.0002014636993408203, 0.0164794921875, 0.01092529296875, 0.021820068359375, 0.0181121826171875, -0.035552978515625, 0.00461578369140625, 0.0228118896484375, 0.0066375732421875, -0.0133209228515625, 0.00997161865234375, 0.03887939453125, -0.033660888671875, -0.03704833984375, 0.0006718635559082031, 0.01181793212890625, -0.01355743408203125, -0.04071044921875, -0.029754638671875, -0.0004355907440185547, -0.0009174346923828125, -0.0239105224609375, -0.106201171875, 0.054168701171875, 0.0191650390625, -0.027862548828125, -0.02264404296875, 0.01111602783203125, -0.01019287109375, -0.04803466796875, 0.0209808349609375, 0.002918243408203125, -0.03265380859375, -0.0263671875, -0.030914306640625, 0.004528045654296875, -0.00907135009765625, 0.051971435546875, 0.064453125, 0.0198822021484375, 0.01137542724609375, 0.0274505615234375, -0.0275115966796875, 0.03424072265625, 0.0179443359375, -0.00246429443359375, 0.04864501953125, -0.096923828125, -0.00899505615234375, 0.0124053955078125, -0.0063323974609375, -0.00666046142578125, -0.045684814453125, -0.0170440673828125, 0.00669097900390625, -0.059173583984375, -0.00444793701171875, -0.0487060546875, -0.06353759765625, 0.04376220703125, 0.0095977783203125, -0.017425537109375, -0.01439666748046875, 0.0478515625, 0.021942138671875, -0.012908935546875, -0.015380859375, 0.0188751220703125, -0.01262664794921875, -0.0303802490234375, -0.030029296875, 0.01287841796875, 0.0019969940185546875, 0.0004954338073730469, 0.1129150390625, 0.0077056884765625, -0.07110595703125, 0.0012445449829101562, -0.048675537109375, -0.004985809326171875, 0.05474853515625, 0.0142822265625, -0.0032176971435546875, 0.0124053955078125, 0.0069427490234375, -0.0034236907958984375, 0.0203399658203125, -0.0218658447265625, -0.032073974609375, 0.0122222900390625, -0.01428985595703125, -0.0007467269897460938, -0.00020885467529296875, -0.0028858184814453125, -0.043609619140625, -0.05816650390625, -0.08856201171875, -0.0006532669067382812, -0.0156707763671875, -0.03680419921875, 0.01244354248046875, -0.01519775390625, 0.004993438720703125, 0.02691650390625, 0.0017652511596679688, 0.030426025390625, 0.003620147705078125, -0.024688720703125, -0.032745361328125, 0.057586669921875, 0.0095977783203125, 0.05865478515625, 0.0017480850219726562, 0.01436614990234375, -0.02789306640625, 0.042816162109375, 0.007228851318359375, 0.0006256103515625, -0.0254669189453125, 0.01174163818359375, -0.045074462890625, -0.051971435546875, 0.049102783203125, -0.034759521484375, -0.005817413330078125, -0.03985595703125, -0.0161285400390625, -0.00945281982421875, 0.08966064453125, -0.07147216796875, -0.0030765533447265625, -0.0037670135498046875, 0.0199127197265625, -0.036773681640625, -0.04791259765625, -0.062408447265625, -0.00252532958984375, -0.0767822265625, -0.0005431175231933594, -0.006664276123046875, -0.037139892578125, -0.00007551908493041992, -0.0255584716796875, -0.06829833984375, -0.03369140625, 0.044464111328125, -0.017333984375, 0.01751708984375, 0.01372528076171875, -0.012542724609375, -0.01605224609375, -0.03619384765625, -0.0009489059448242188, -0.07855224609375, -0.005352020263671875, -0.0291290283203125, 0.036041259765625, -0.01285552978515625, 0.05194091796875, -0.05145263671875, 0.016937255859375, 0.0013065338134765625, 0.0015106201171875, -0.0006113052368164062, 0.010162353515625, -0.0194244384765625, -0.0157470703125, -0.00704193115234375, -0.02508544921875, -0.00931549072265625, -0.00551605224609375, -0.01552581787109375, 0.0170440673828125, -0.0167236328125, -0.00951385498046875, 0.0276031494140625, -0.0266571044921875, -0.0215911865234375, -0.024017333984375, -0.058746337890625, 0.0004260540008544922, -0.037261962890625, 0.0075225830078125, -0.016204833984375, -0.0270843505859375, 0.060791015625, -0.04376220703125, 0.0202789306640625, -0.0020465850830078125, 0.09881591796875, 0.0082855224609375, 0.006320953369140625, -0.038543701171875, 0.03228759765625, 0.040252685546875, 0.016693115234375, 0.03582763671875, 0.032379150390625, -0.0167694091796875, -0.0013599395751953125, 0.027313232421875, -0.00577545166015625, -0.041900634765625, 0.061798095703125, -0.0083770751953125, -0.0380859375, 0.0307464599609375, -0.0282745361328125, 0.052398681640625, 0.007671356201171875, 0.00745391845703125, -0.0209503173828125, -0.0026378631591796875, 0.007843017578125, 0.0006890296936035156, 0.015777587890625, -0.01070404052734375, -0.050018310546875, 0.034820556640625, -0.01023101806640625, -0.03668212890625, 0.004276275634765625, -0.002803802490234375, -0.01178741455078125, -0.0172119140625, -0.00928497314453125, 0.017822265625, 0.046478271484375, -0.0186767578125, 0.0364990234375, -0.01751708984375, -0.03314208984375, -0.0196380615234375, -0.0105743408203125, 0.0330810546875, -0.0130767822265625, -0.0272674560546875, -0.045135498046875, -0.00823974609375, 0.053497314453125, 0.0224456787109375, -0.017608642578125, 0.04473876953125, 0.034576416015625, -0.019073486328125, -0.0036449432373046875, -0.0032520294189453125, -0.021453857421875, -0.034454345703125, -0.00836944580078125, 0.0092620849609375, -0.0209808349609375, 0.03619384765625, 0.01421356201171875, 0.0010709762573242188, 0.0083465576171875, -0.01123809814453125, 0.03900146484375, 0.0372314453125, 0.00798797607421875, 0.0167083740234375, -0.00046324729919433594, 0.0146484375, -0.04974365234375, 0.014495849609375, -0.03082275390625, 0.0005750656127929688, 0.018310546875, 0.031494140625, 0.001819610595703125, -0.0098876953125, 0.0200653076171875, -0.022857666015625, -0.006168365478515625, 0.044647216796875, -0.011932373046875, -0.06011962890625, -0.0294036865234375, 0.029754638671875, 0.04962158203125, -0.040283203125, -0.01357269287109375, 0.0160369873046875, -0.035980224609375, -0.033172607421875, 0.0244903564453125, -0.0770263671875, -0.008270263671875, 0.027313232421875, -0.00797271728515625, -0.0018243789672851562, -0.01531219482421875, -0.0557861328125, -0.04833984375, -0.00013959407806396484, 0.007572174072265625, 0.037506103515625, -0.01218414306640625, -0.0059814453125, -0.0189056396484375, 0.01043701171875, 0.0002579689025878906, 0.00466156005859375, 0.04815673828125, 0.01102447509765625, -0.0638427734375, -0.0031948089599609375, -0.054962158203125, -0.0269012451171875, -0.07794189453125, -0.049102783203125, -0.06195068359375, 0.0012044906616210938, 0.0110321044921875, 0.006931304931640625, -0.0009012222290039062, -0.011199951171875, -0.0003345012664794922, 0.024505615234375, 0.0160675048828125, 0.03643798828125, 0.00078582763671875, 0.050140380859375, 0.00034046173095703125, 0.046844482421875, 0.0279998779296875, 0.043243408203125, 0.004734039306640625, -0.041961669921875, 0.0218048095703125, -0.024261474609375, -0.03955078125, -0.003864288330078125, -0.0126190185546875, -0.0119171142578125, 0.024383544921875, -0.0164031982421875, -0.0167083740234375, 0.00799560546875, 0.0034847259521484375, -0.0271759033203125, 0.00749969482421875, -0.00777435302734375, -0.0157623291015625, -0.04058837890625, -0.040374755859375, -0.01544189453125, 0.006740570068359375, -0.0357666015625, 0.04833984375, -0.00847625732421875, 0.0104522705078125, 0.0440673828125, -0.01165771484375, 0.0304718017578125, 0.045562744140625, 0.0273590087890625, 0.061767578125, 0.00909423828125, 0.056549072265625, 0.00433349609375, 0.03973388671875, -0.019805908203125, -0.03387451171875, 0.049041748046875, 0.03131103515625, -0.003154754638671875, 0.052734375, -0.018157958984375, 0.038177490234375, 0.0732421875, 0.07904052734375, -0.10064697265625, 0.0126800537109375, -0.0004551410675048828, -0.004589080810546875, 0.062042236328125, -0.033233642578125, 0.00830078125, -0.02923583984375, 0.021392822265625, 0.01092529296875, -0.0223388671875, -0.0187530517578125, -0.02978515625, -0.0291748046875, 0.00724029541015625, 0.0216522216796875, 0.033905029296875, -0.001239776611328125, 0.01158905029296875, 0.0017414093017578125, 0.018096923828125, -0.01453399658203125, 0.0004360675811767578, 0.00278472900390625, -0.0204925537109375, -0.06658935546875, 0.00196075439453125, -0.00843048095703125, -0.0190582275390625, 0.03326416015625, 0.007266998291015625, 0.017974853515625, 0.0654296875, -0.00959014892578125, 0.013031005859375, 0.038909912109375, -0.0101165771484375, -0.025848388671875, -0.03350830078125, -0.0122222900390625, 0.0212249755859375, -0.016632080078125, 0.01641845703125, -0.00904083251953125, -0.041168212890625, 0.004489898681640625, 0.021240234375, 0.057891845703125, -0.027801513671875, -0.02960205078125, 0.03955078125, -0.02191162109375, -0.0167694091796875, -0.037933349609375, 0.0299072265625, -0.035308837890625, 0.039337158203125, -0.0293731689453125, 0.042694091796875, 0.008148193359375, -0.030731201171875, -0.058868408203125, 0.1490478515625, -0.01371002197265625, 0.0091552734375, 0.01255035400390625, 0.06787109375, -0.032562255859375, 0.0293731689453125, -0.0090179443359375, 0.0484619140625, -0.021575927734375, 0.01433563232421875, -0.012664794921875, 0.0170135498046875, 0.0005130767822265625, 0.0160980224609375, 0.035430908203125, 0.005374908447265625, -0.00434112548828125, 0.00589752197265625, 0.0650634765625, 0.0460205078125, 0.00910186767578125, 0.016937255859375, 0.0006375312805175781, 0.0285797119140625, 0.02459716796875, -0.03271484375, 0.0290679931640625, -0.0233917236328125, -0.0108184814453125, 0.02703857421875, 0.0178985595703125, 0.019744873046875, 0.006656646728515625, 0.040130615234375, -0.016204833984375, 0.0057373046875, 0.0151214599609375, 0.002899169921875, -0.0150299072265625, 0.007129669189453125, -0.022003173828125, 0.0024890899658203125, 0.0252532958984375, -0.021514892578125, 0.03570556640625, -0.0019550323486328125, -0.007518768310546875, -0.0175323486328125, 0.0118560791015625, -0.059967041015625, -0.027099609375, -0.01160430908203125, 0.041290283203125, -0.06695556640625, -0.0233154296875, -0.0164947509765625, 0.01031494140625, -0.031341552734375, 0.016021728515625, 0.004276275634765625, -0.023468017578125, -0.00551605224609375, -0.05340576171875, 0.0185546875, 0.001758575439453125, -0.021148681640625, 0.006710052490234375, -0.0255889892578125, -0.02215576171875, 0.031158447265625, -0.0167694091796875, 0.00386810302734375, 0.042083740234375, 0.0008077621459960938, 0.010345458984375, 0.0247802734375, -0.01346588134765625, 0.005878448486328125, -0.0031566619873046875, -0.01300048828125, -0.01023101806640625, 0.0236968994140625, 0.0213165283203125, 0.015045166015625, -0.0335693359375, -0.0064239501953125, -0.0285491943359375, 0.061676025390625, -0.02301025390625, 0.040771484375, -0.0849609375, -0.07879638671875, 0.0012941360473632812, 0.05743408203125, -0.016357421875, 0.046661376953125, 0.060791015625, 0.07769775390625, -0.01290130615234375, -0.01446533203125, 0.08270263671875, -0.00437164306640625, -0.018768310546875, -0.01666259765625, 0.0116729736328125, 0.01303863525390625, 0.0053558349609375, -0.0228729248046875, 0.0390625, 0.02801513671875, -0.00914764404296875, -0.0020160675048828125, 0.01236724853515625, -0.0225830078125, -0.0107879638671875, -0.00481414794921875, 0.00586700439453125, 0.01035308837890625, -0.05999755859375, -0.0102996826171875, -0.02587890625, -0.023223876953125, 0.02935791015625, 0.02386474609375, -0.045684814453125, 0.05841064453125, -0.006275177001953125, -0.007160186767578125, -0.0139312744140625, -0.0052032470703125, 0.01580810546875, -0.002567291259765625, 0.01548004150390625, 0.0006418228149414062, -0.0177001953125, -0.00650787353515625, -0.0223846435546875, 0.056365966796875, 0.01529693603515625, 0.0828857421875, -0.037994384765625, 0.018310546875, -0.0204620361328125, -0.0196075439453125, -0.00537872314453125, 0.0035762786865234375, -0.0172271728515625, 0.01093292236328125, -0.0287628173828125, -0.01233673095703125, -0.03167724609375, 0.036590576171875, 0.0033779144287109375, -0.0101318359375, 0.012451171875, -0.007656097412109375, 0.021209716796875, 0.01522064208984375, 0.02325439453125, -0.020843505859375, -0.034881591796875, -0.03363037109375, 0.0178680419921875, 0.0034275054931640625, 0.0204010009765625, -0.01273345947265625, -0.01361083984375, 0.02069091796875, -0.0036029815673828125, 0.0009908676147460938, 0.047698974609375, -0.006038665771484375, 0.031951904296875, -0.01837158203125, -0.0703125, 0.006305694580078125, -0.01043701171875, -0.023529052734375, 0.031219482421875, 0.0291900634765625, 0.0171356201171875, -0.08123779296875, -0.0215911865234375, 0.02044677734375, 0.03570556640625, 0.001102447509765625, 0.01361846923828125, -0.0013074874877929688, 0.000020205974578857422, -0.0220947265625, -0.0273284912109375, -0.019439697265625, -0.050506591796875, -0.0014057159423828125, 0.030548095703125, -0.040802001953125, -0.03704833984375, -0.05908203125, 0.041656494140625, 0.045196533203125, -0.00135040283203125, -0.07098388671875, 0.03460693359375, -0.04034423828125, 0.075927734375, -0.01027679443359375, 0.005451202392578125, -0.014984130859375, 0.029205322265625, -0.038116455078125, -0.0604248046875, -0.037567138671875, 0.056610107421875, -0.04364013671875, 0.015960693359375, 0.0286407470703125, -0.0321044921875, 0.0102691650390625, 0.049713134765625, 0.0196685791015625, 0.08587646484375, 0.01183319091796875, -0.00397491455078125, 0.0148468017578125, 0.00850677490234375, -0.01708984375, -0.058074951171875, -0.0038700103759765625, -0.03900146484375, -0.0070953369140625, -0.034210205078125, 0.0030841827392578125, 0.013671875, -0.050384521484375, -0.0916748046875, 0.01000213623046875, -0.016876220703125, -0.050445556640625, -0.007564544677734375, -0.024139404296875, -0.01499176025390625, -0.001468658447265625, -0.00252532958984375, -0.037811279296875, -0.037750244140625, 0.0264434814453125, 0.0091705322265625, 0.0158233642578125, 0.003902435302734375, 0.0243072509765625, 0.005451202392578125, 0.037353515625, 0.0225830078125, -0.0235595703125, 0.027313232421875, -0.0179443359375, 0.042083740234375, 0.052001953125, -0.015350341796875, 0.037811279296875, 0.0002968311309814453, -0.045867919921875, -0.0401611328125, -0.041107177734375, 0.0007529258728027344, 0.0088958740234375, 0.07745361328125, 0.07928466796875, 0.00836944580078125, -0.037017822265625, -0.023223876953125, -0.061309814453125, 0.0284881591796875, -0.016998291015625, 0.002727508544921875, -0.06903076171875, -0.0055694580078125, 0.0335693359375, 0.0024013519287109375, 0.0067138671875, 0.0013647079467773438, -0.007556915283203125, -0.0210418701171875, 0.005619049072265625, -0.01190948486328125, -0.023101806640625, -0.0225982666015625, 0.036895751953125, -0.0164642333984375, 0.02001953125, -0.024322509765625, 0.0260772705078125, 0.023101806640625, -0.01140594482421875, -0.01873779296875, 0.00359344482421875, -0.04400634765625, 0.03472900390625, -0.015655517578125, 0.025970458984375, -0.048675537109375, 0.004596710205078125, -0.006683349609375, 0.0214996337890625, -0.00811004638671875, 0.02264404296875, -0.0182647705078125, 0.0247802734375, -0.006885528564453125, 0.056365966796875, 0.006725311279296875, -0.01282501220703125, -0.02490234375, 0.041748046875, -0.0246124267578125, -0.0274658203125, -0.004039764404296875, -0.036468505859375, 0.0075225830078125, 0.010955810546875, 0.0137481689453125, -0.0198822021484375, 0.0283050537109375, -0.037261962890625, 0.0002655982971191406, 0.0099029541015625 ]
f0b5c14d51bb151a60bd905058df8ea0fc2e9e54
Wordpress Stackexchange Q: Removing an action from an external plugin class I am using a plugin that has this line of code to add an action from the Eazyest_Frontend class: add_action( 'eazyest_gallery_thumbnails', 'ezg_thumbnails',5); I want to remove that and do something a bit different without editing the plugin. I thought this added to my functions.php file might work: global $eazyest_frontend; remove_action( 'eazyest_gallery_thumbnails', array($eazyest_frontend,'ezg_thumbnails'), 1, 1 ); I have maybe tried a hundred variations where I altered the priority etc but nothing works yet. If I comment out the original add action line in the plugin, it does have the effect I am seeking so I seem to have identified the correct action. I'm new to removing actions, how is it done? A: Maybe I got you wrong, but why don't you just put the following line in your functions.php: remove_action('eazyest_gallery_thumbnails', 'ezg_thumbnails'); If you have a class function hooked to an action, you can use the class name instead of the class object: remove_action( 'eazyest_gallery_thumbnails', array('EazyestFrontendClassName', 'ezg_thumbnails') ); Right now, I don't see why this wouldn't be working. Just tried with an action from one of my plugins.
Q: Removing an action from an external plugin class I am using a plugin that has this line of code to add an action from the Eazyest_Frontend class: add_action( 'eazyest_gallery_thumbnails', 'ezg_thumbnails',5); I want to remove that and do something a bit different without editing the plugin. I thought this added to my functions.php file might work: global $eazyest_frontend; remove_action( 'eazyest_gallery_thumbnails', array($eazyest_frontend,'ezg_thumbnails'), 1, 1 ); I have maybe tried a hundred variations where I altered the priority etc but nothing works yet. If I comment out the original add action line in the plugin, it does have the effect I am seeking so I seem to have identified the correct action. I'm new to removing actions, how is it done? A: Maybe I got you wrong, but why don't you just put the following line in your functions.php: remove_action('eazyest_gallery_thumbnails', 'ezg_thumbnails'); If you have a class function hooked to an action, you can use the class name instead of the class object: remove_action( 'eazyest_gallery_thumbnails', array('EazyestFrontendClassName', 'ezg_thumbnails') ); Right now, I don't see why this wouldn't be working. Just tried with an action from one of my plugins. A: Similar technique can be used to hide unwanted admin notices. Find the name of the function creating the notice you want to remove, then add the following line to your child theme's functions.php file: remove_action( 'admin_notices', 'offending_function_that_is_creating_the_notice' ); Now, only that specific nag will be hidden while other (potentially important) notices from that plugin still get through. This will remain effective through future updates unless the plugin developer modifies the name of the function creating the nag (unlikely). A: Thanks for all comments and answers - I just solved this: function remove_eazyest_gallery() { remove_action('eazyest_gallery_thumbnails', 'ezg_thumbnails', 5); } add_action( 'eazyest_gallery_ready', 'remove_eazyest_gallery', 1 );
wordpress
{ "language": "en", "length": 288, "provenance": "stackexchange_00019.jsonl.gz:431433", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/96300" }
[ 0.07757568359375, 0.0098876953125, -0.030303955078125, -0.0084228515625, 0.054595947265625, -0.0701904296875, 0.07373046875, -0.020263671875, 0.0120849609375, 0.008636474609375, 0.0035305023193359375, -0.0201568603515625, -0.00274658203125, -0.0309295654296875, -0.0020809173583984375, -0.0183258056640625, 0.0462646484375, 0.011627197265625, 0.068603515625, 0.0157012939453125, -0.01171112060546875, 0.03851318359375, 0.051971435546875, 0.009765625, 0.004913330078125, -0.01279449462890625, 0.0633544921875, 0.004703521728515625, -0.0012865066528320312, -0.020782470703125, 0.00257110595703125, 0.006900787353515625, -0.01184844970703125, 0.04730224609375, -0.0166015625, -0.032440185546875, 0.014678955078125, 0.010467529296875, -0.017364501953125, 0.039581298828125, 0.05877685546875, -0.016937255859375, -0.058807373046875, -0.00962066650390625, -0.0269927978515625, -0.053955078125, 0.0762939453125, -0.0031833648681640625, 0.032440185546875, -0.0179443359375, 0.00258636474609375, -0.01031494140625, 0.0206146240234375, -0.016265869140625, -0.0345458984375, -0.018524169921875, -0.07025146484375, 0.0272979736328125, 0.0244140625, 0.114013671875, 0.016265869140625, 0.0123138427734375, -0.038726806640625, -0.103515625, 0.01313018798828125, 0.005535125732421875, -0.009063720703125, 0.0164031982421875, -0.0179595947265625, 0.01558685302734375, 0.0216827392578125, -0.02044677734375, -0.0025005340576171875, -0.0084686279296875, -0.03692626953125, 0.00995635986328125, -0.00008726119995117188, 0.01462554931640625, 0.0245819091796875, -0.0289459228515625, 0.01537322998046875, -0.00691986083984375, 0.002559661865234375, 0.01079559326171875, 0.005847930908203125, 0.0379638671875, -0.005588531494140625, -0.021484375, -0.0134124755859375, 0.0235595703125, -0.01383209228515625, -0.0599365234375, -0.0113372802734375, 0.04571533203125, 0.021514892578125, -0.0135955810546875, 0.0273590087890625, 0.0265045166015625, -0.0018768310546875, 0.0005984306335449219, -0.0023784637451171875, -0.055419921875, 0.00661468505859375, -0.0340576171875, -0.0158843994140625, -0.0199127197265625, -0.00400543212890625, -0.0020771026611328125, 0.004238128662109375, 0.04632568359375, -0.03375244140625, -0.021484375, -0.01580810546875, 0.0090484619140625, 0.0002243518829345703, -0.007381439208984375, -0.058258056640625, 0.033538818359375, -0.00921630859375, 0.005481719970703125, 0.005611419677734375, -0.0024089813232421875, 0.0101470947265625, -0.023193359375, 0.039764404296875, 0.034149169921875, -0.033905029296875, -0.00809478759765625, 0.08758544921875, -0.018402099609375, -0.05242919921875, 0.042755126953125, 0.063720703125, -0.04302978515625, -0.0196075439453125, -0.005512237548828125, 0.002964019775390625, 0.0189971923828125, -0.0011224746704101562, 0.0228424072265625, 0.0120391845703125, -0.0462646484375, -0.00601959228515625, 0.0271453857421875, 0.063720703125, -0.0049285888671875, 0.0135955810546875, 0.01995849609375, 0.023956298828125, 0.0129852294921875, 0.056396484375, -0.033721923828125, 0.0273284912109375, 0.007701873779296875, 0.017730712890625, 0.0270538330078125, 0.060882568359375, -0.024017333984375, -0.035308837890625, -0.0095367431640625, -0.00958251953125, -0.00623321533203125, -0.0128173828125, -0.06988525390625, -0.0819091796875, -0.002933502197265625, 0.027130126953125, -0.0159759521484375, 0.041107177734375, 0.03564453125, -0.0099029541015625, -0.017791748046875, 0.07763671875, 0.0662841796875, 0.0036334991455078125, 0.05511474609375, 0.01263427734375, 0.044921875, 0.00412750244140625, 0.01085662841796875, -0.016693115234375, -0.0684814453125, 0.0311279296875, -0.01898193359375, -0.04315185546875, -0.01910400390625, 0.0183563232421875, 0.0127105712890625, 0.00806427001953125, 0.01558685302734375, 0.022064208984375, 0.026397705078125, -0.0181884765625, 0.0033283233642578125, 0.032623291015625, -0.00962066650390625, -0.0215911865234375, -0.004169464111328125, 0.012908935546875, -0.020843505859375, 0.024505615234375, 0.0005445480346679688, 0.0250701904296875, -0.003925323486328125, -0.054962158203125, 0.0243072509765625, -0.033721923828125, 0.0347900390625, -0.0023174285888671875, 0.03790283203125, 0.0306854248046875, 0.04364013671875, -0.06878662109375, 0.027923583984375, -0.007511138916015625, 0.01331329345703125, -0.0286712646484375, 0.018951416015625, -0.003208160400390625, 0.049346923828125, -0.0258941650390625, -0.03765869140625, -0.0204315185546875, -0.046356201171875, 0.030792236328125, -0.028167724609375, -0.040130615234375, -0.035614013671875, -0.042388916015625, -0.007843017578125, -0.059234619140625, 0.0843505859375, 0.00617218017578125, -0.004108428955078125, -0.002105712890625, -0.00765228271484375, 0.00495147705078125, -0.11273193359375, 0.01195526123046875, 0.05364990234375, 0.024383544921875, 0.039215087890625, 0.0172271728515625, 0.007476806640625, 0.04168701171875, -0.012451171875, 0.02777099609375, -0.0158538818359375, -0.032562255859375, -0.034454345703125, -0.0262451171875, -0.008819580078125, 0.041351318359375, -0.0183258056640625, 0.006717681884765625, 0.04595947265625, -0.01129913330078125, -0.0506591796875, -0.0015163421630859375, 0.0298004150390625, 0.010894775390625, -0.046234130859375, -0.051055908203125, -0.002887725830078125, 0.05059814453125, -0.0228271484375, 0.0196533203125, -0.0011816024780273438, -0.0149383544921875, 0.00606536865234375, 0.0246734619140625, -0.006198883056640625, -0.0202484130859375, 0.046478271484375, -0.00007104873657226562, -0.044097900390625, -0.048095703125, 0.00989532470703125, -0.026275634765625, -0.0010976791381835938, 0.00467681884765625, 0.0362548828125, 0.028411865234375, 0.0019483566284179688, -0.01165008544921875, -0.003673553466796875, 0.0297088623046875, 0.0207977294921875, -0.038177490234375, -0.051177978515625, -0.00884246826171875, 0.0169677734375, -0.0135345458984375, 0.012176513671875, -0.0016031265258789062, -0.02105712890625, 0.04791259765625, 0.004123687744140625, 0.015533447265625, 0.005970001220703125, 0.043060302734375, 0.05950927734375, -0.00027251243591308594, 0.0022430419921875, -0.0019588470458984375, -0.04034423828125, -0.0214996337890625, 0.01317596435546875, -0.005779266357421875, -0.003086090087890625, -0.05841064453125, 0.0278778076171875, 0.0272369384765625, 0.062255859375, -0.022918701171875, -0.06475830078125, 0.00872802734375, 0.035980224609375, -0.05010986328125, -0.04638671875, 0.047760009765625, -0.0753173828125, 0.03192138671875, 0.006275177001953125, -0.04296875, -0.0511474609375, 0.0743408203125, 0.0126800537109375, 0.038818359375, -0.0195770263671875, 0.034454345703125, 0.0087127685546875, -0.01898193359375, -0.032318115234375, 0.028778076171875, -0.007755279541015625, 0.01108551025390625, 0.054412841796875, -0.00914764404296875, -0.06060791015625, -0.0082550048828125, -0.08221435546875, -0.00966644287109375, 0.040191650390625, 0.0203399658203125, -0.01409912109375, -0.04534912109375, 0.0155487060546875, 0.05328369140625, -0.017333984375, -0.025634765625, -0.0099639892578125, -0.024627685546875, 0.007495880126953125, 0.005573272705078125, 0.0190887451171875, 0.01496124267578125, 0.0253143310546875, 0.01059722900390625, -0.037841796875, -0.0271453857421875, 0.006069183349609375, -0.0364990234375, 0.01007843017578125, 0.02423095703125, -0.0071868896484375, -0.0146942138671875, 0.0222015380859375, 0.01227569580078125, 0.0274810791015625, 0.00887298583984375, 0.008453369140625, 0.0191192626953125, -0.0197601318359375, -0.00278472900390625, -0.031829833984375, 0.0347900390625, 0.011749267578125, 0.005245208740234375, 0.01043701171875, 0.02252197265625, -0.006130218505859375, 0.02093505859375, -0.04443359375, -0.01152801513671875, 0.0218505859375, -0.0411376953125, -0.0016527175903320312, -0.0262603759765625, 0.0033321380615234375, 0.0057830810546875, 0.044342041015625, -0.06451416015625, -0.031890869140625, 0.00846099853515625, 0.0242919921875, -0.006061553955078125, -0.01568603515625, -0.0036525726318359375, -0.03460693359375, -0.10369873046875, -0.035186767578125, -0.0181732177734375, -0.06134033203125, 0.0132904052734375, 0.001796722412109375, -0.06719970703125, -0.053680419921875, 0.0167999267578125, 0.016998291015625, 0.0017404556274414062, 0.031829833984375, -0.0006899833679199219, 0.01424407958984375, -0.004840850830078125, -0.01300048828125, -0.08502197265625, -0.0005125999450683594, -0.058380126953125, 0.0679931640625, 0.0267791748046875, 0.010528564453125, -0.01007843017578125, 0.040740966796875, -0.0032787322998046875, 0.018890380859375, 0.0179901123046875, 0.013763427734375, 0.0195770263671875, 0.01134490966796875, 0.0119476318359375, -0.00930023193359375, 0.013427734375, 0.0151519775390625, -0.0382080078125, -0.005893707275390625, -0.022308349609375, -0.0411376953125, 0.0201263427734375, -0.046142578125, -0.03460693359375, -0.0181121826171875, 0.025421142578125, 0.02105712890625, 0.00168609619140625, -0.006366729736328125, -0.01067352294921875, -0.0162353515625, 0.006622314453125, -0.018829345703125, 0.00005245208740234375, 0.0159454345703125, 0.07623291015625, 0.021942138671875, -0.0036029815673828125, -0.01751708984375, 0.02630615234375, 0.0277252197265625, -0.0120697021484375, 0.0247955322265625, -0.007537841796875, -0.016082763671875, 0.028167724609375, -0.008270263671875, 0.046783447265625, -0.04998779296875, 0.0992431640625, 0.006259918212890625, 0.028533935546875, 0.0012140274047851562, -0.0016736984252929688, -0.024749755859375, -0.046417236328125, -0.00478363037109375, -0.0166168212890625, 0.020904541015625, 0.03057861328125, 0.011016845703125, 0.0266265869140625, -0.002483367919921875, 0.03271484375, -0.0177001953125, -0.034515380859375, 0.03729248046875, 0.047454833984375, -0.0211334228515625, -0.0201873779296875, -0.00821685791015625, -0.0033435821533203125, 0.004291534423828125, 0.005832672119140625, -0.0164337158203125, 0.02117919921875, 0.0138702392578125, -0.01861572265625, 0.00066375732421875, 0.00878143310546875, 0.0211334228515625, -0.01708984375, -0.0225830078125, -0.09033203125, 0.02734375, 0.029693603515625, -0.00685882568359375, -0.011016845703125, 0.04150390625, 0.01837158203125, -0.00806427001953125, -0.0165252685546875, -0.0287017822265625, 0.005702972412109375, -0.04742431640625, 0.006031036376953125, -0.007152557373046875, -0.018096923828125, 0.035308837890625, -0.0219573974609375, 0.01140594482421875, -0.003925323486328125, -0.01432037353515625, 0.028106689453125, -0.053009033203125, 0.050628662109375, -0.00875091552734375, -0.0211334228515625, 0.05517578125, -0.01184844970703125, 0.01123809814453125, 0.01131439208984375, -0.029083251953125, 0.031646728515625, 0.00774383544921875, 0.01041412353515625, 0.047698974609375, -0.0180206298828125, 0.0134429931640625, -0.033538818359375, 0.027557373046875, 0.024200439453125, -0.0078582763671875, -0.022247314453125, 0.01160430908203125, 0.04296875, 0.021392822265625, -0.02337646484375, 0.0170440673828125, 0.0013246536254882812, 0.000009417533874511719, 0.0284881591796875, -0.0557861328125, 0.0166473388671875, 0.04058837890625, -0.03778076171875, -0.0258026123046875, -0.00574493408203125, -0.0711669921875, -0.01031494140625, -0.0199127197265625, -0.01953125, 0.055908203125, -0.019805908203125, 0.033355712890625, -0.037811279296875, 0.00046253204345703125, -0.06134033203125, -0.00676727294921875, 0.06463623046875, 0.049652099609375, -0.025543212890625, -0.03643798828125, -0.00374603271484375, -0.022125244140625, -0.0216064453125, -0.0030727386474609375, -0.0167236328125, 0.018280029296875, -0.022796630859375, 0.01273345947265625, 0.0011987686157226562, 0.06964111328125, 0.04339599609375, 0.0367431640625, -0.04864501953125, 0.041839599609375, -0.0219268798828125, 0.00986480712890625, -0.000457763671875, 0.0298614501953125, 0.0088653564453125, -0.004085540771484375, -0.0003485679626464844, -0.0252838134765625, 0.00563812255859375, -0.045806884765625, 0.00412750244140625, -0.0032176971435546875, -0.0362548828125, -0.0167694091796875, 0.027557373046875, -0.0050201416015625, -0.037567138671875, 0.018310546875, 0.0040740966796875, -0.0266876220703125, 0.0528564453125, 0.026031494140625, 0.004337310791015625, -0.0131683349609375, -0.049407958984375, 0.003559112548828125, -0.00882720947265625, 0.015625, 0.0176849365234375, -0.0499267578125, 0.015228271484375, 0.0306854248046875, 0.00841522216796875, 0.00922393798828125, 0.041748046875, -0.00986480712890625, 0.037445068359375, 0.037384033203125, 0.00995635986328125, 0.0187835693359375, 0.0226593017578125, 0.01403045654296875, -0.00484466552734375, 0.06634521484375, 0.005756378173828125, -0.038909912109375, 0.0113677978515625, -0.038421630859375, 0.052001953125, 0.0259857177734375, 0.05572509765625, -0.07135009765625, 0.037109375, 0.00885009765625, -0.01190185546875, 0.083984375, -0.00727081298828125, 0.03546142578125, 0.04461669921875, 0.0042877197265625, 0.0098724365234375, -0.01556396484375, 0.00772857666015625, 0.0052947998046875, -0.0034923553466796875, 0.0180206298828125, -0.0648193359375, -0.006988525390625, -0.0521240234375, 0.004901885986328125, 0.0665283203125, -0.016204833984375, -0.014801025390625, -0.0038166046142578125, 0.032073974609375, -0.0311431884765625, -0.054107666015625, 0.013458251953125, -0.008148193359375, -0.0140228271484375, 0.01120758056640625, -0.0280609130859375, 0.033782958984375, 0.002407073974609375, 0.004634857177734375, -0.00543212890625, -0.03179931640625, -0.0165557861328125, -0.032135009765625, -0.02374267578125, 0.0131378173828125, 0.0175323486328125, -0.0887451171875, 0.02532958984375, -0.05157470703125, 0.0133209228515625, -0.00920867919921875, -0.024017333984375, 0.053680419921875, -0.03369140625, -0.019317626953125, 0.010467529296875, -0.0026683807373046875, 0.01702880859375, 0.0003058910369873047, -0.00530242919921875, -0.037811279296875, -0.006195068359375, 0.0020160675048828125, -0.017791748046875, 0.032440185546875, 0.0024509429931640625, -0.08123779296875, 0.10546875, -0.0101318359375, 0.04876708984375, -0.0148773193359375, 0.03564453125, -0.01288604736328125, 0.0134735107421875, 0.01303863525390625, 0.0377197265625, -0.0308990478515625, 0.00699615478515625, 0.024993896484375, 0.00301361083984375, 0.0252685546875, 0.01788330078125, 0.0628662109375, 0.0139007568359375, -0.0081024169921875, -0.0223236083984375, 0.0141143798828125, 0.01171875, -0.03656005859375, 0.01445770263671875, -0.00574493408203125, -0.05487060546875, -0.00684356689453125, 0.005889892578125, 0.0290985107421875, -0.036102294921875, -0.01172637939453125, 0.00960540771484375, 0.003894805908203125, 0.00856781005859375, 0.0043182373046875, 0.06512451171875, -0.037384033203125, -0.0025310516357421875, 0.0283966064453125, -0.032379150390625, -0.0091094970703125, 0.034637451171875, -0.0009760856628417969, 0.0318603515625, -0.0386962890625, -0.0006570816040039062, 0.03125, 0.009674072265625, -0.00757598876953125, 0.0196533203125, 0.006061553955078125, 0.004116058349609375, -0.0035076141357421875, -0.00457763671875, 0.024383544921875, -0.0052642822265625, 0.0240325927734375, 0.04998779296875, 0.0224151611328125, 0.0296783447265625, 0.05657958984375, 0.01499176025390625, 0.016876220703125, -0.042449951171875, -0.0287017822265625, 0.00862884521484375, -0.01134490966796875, 0.006290435791015625, -0.01195526123046875, -0.00519561767578125, -0.060821533203125, -0.0287322998046875, -0.044281005859375, 0.00493621826171875, 0.017669677734375, 0.042816162109375, -0.005443572998046875, -0.01227569580078125, -0.0489501953125, -0.02587890625, -0.041656494140625, 0.01131439208984375, 0.011962890625, 0.06170654296875, 0.0100250244140625, 0.035125732421875, -0.037109375, -0.0213165283203125, -0.0589599609375, 0.054656982421875, -0.0474853515625, 0.09375, -0.0775146484375, -0.0298919677734375, -0.0178680419921875, 0.055755615234375, 0.0176239013671875, 0.023529052734375, 0.016693115234375, 0.0164947509765625, 0.062225341796875, 0.0057830810546875, -0.01412200927734375, -0.00432586669921875, -0.01025390625, -0.01245880126953125, 0.00730133056640625, 0.020965576171875, -0.00916290283203125, 0.00824737548828125, 0.0031871795654296875, 0.0355224609375, -0.0260467529296875, -0.0095367431640625, -0.0030975341796875, -0.034393310546875, 0.07293701171875, -0.0164947509765625, 0.03216552734375, -0.018585205078125, 0.0014514923095703125, -0.0197296142578125, 0.0194549560546875, -0.006328582763671875, 0.020233154296875, 0.0283355712890625, -0.014617919921875, 0.036102294921875, 0.01392364501953125, 0.0021820068359375, 0.0008602142333984375, -0.0124664306640625, 0.010498046875, 0.0282135009765625, 0.0208892822265625, 0.02337646484375, 0.049713134765625, -0.01104736328125, 0.0305023193359375, 0.06451416015625, 0.0181884765625, 0.0239410400390625, -0.042938232421875, 0.03436279296875, 0.01384735107421875, -0.0218048095703125, 0.026885986328125, -0.002971649169921875, 0.0311279296875, -0.005214691162109375, -0.0108489990234375, -0.01181793212890625, -0.0199737548828125, 0.0094146728515625, 0.05059814453125, -0.03399658203125, -0.031494140625, 0.049285888671875, 0.0112152099609375, -0.00525665283203125, 0.041900634765625, -0.01313018798828125, -0.016326904296875, -0.0087738037109375, -0.022705078125, 0.022857666015625, 0.0254974365234375, 0.0140228271484375, -0.008148193359375, 0.00983428955078125, -0.0259246826171875, 0.005512237548828125, -0.006256103515625, 0.03021240234375, 0.032257080078125, -0.005489349365234375, -0.044830322265625, -0.03173828125, -0.013458251953125, 0.00440216064453125, 0.0035037994384765625, 0.0217132568359375, 0.0268707275390625, -0.025726318359375, -0.0207366943359375, -0.0065765380859375, 0.0098724365234375, -0.0030517578125, 0.0034961700439453125, 0.007205963134765625, -0.0169219970703125, -0.0487060546875, -0.04888916015625, -0.026519775390625, -0.06976318359375, -0.0166778564453125, 0.021148681640625, -0.0572509765625, -0.02362060546875, -0.031341552734375, 0.0013666152954101562, 0.01522064208984375, 0.042999267578125, -0.09454345703125, 0.06854248046875, 0.0288238525390625, -0.0196685791015625, 0.004909515380859375, 0.00632476806640625, -0.0325927734375, -0.004024505615234375, -0.018035888671875, -0.0491943359375, -0.041534423828125, 0.062744140625, -0.04705810546875, 0.01415252685546875, 0.038299560546875, -0.0240631103515625, -0.0029582977294921875, -0.01226806640625, 0.0186920166015625, 0.0248870849609375, -0.00543212890625, -0.0272216796875, 0.01488494873046875, 0.00994110107421875, -0.01129913330078125, -0.0222015380859375, -0.00438690185546875, -0.01210784912109375, -0.015289306640625, 0.0294647216796875, -0.0290069580078125, -0.0007181167602539062, -0.021636962890625, -0.033447265625, 0.06988525390625, 0.003787994384765625, -0.0245819091796875, -0.01224517822265625, 0.052459716796875, -0.00034117698669433594, 0.005611419677734375, -0.004894256591796875, 0.0150909423828125, 0.01009368896484375, -0.02960205078125, -0.0199737548828125, 0.015716552734375, 0.01287841796875, -0.02447509765625, 0.017242431640625, 0.012115478515625, 0.035614013671875, -0.0267181396484375, -0.006259918212890625, -0.0008692741394042969, 0.043426513671875, 0.03753662109375, -0.0088348388671875, 0.0435791015625, 0.0182037353515625, -0.0162353515625, 0.00757598876953125, -0.01491546630859375, -0.033233642578125, -0.00943756103515625, 0.06793212890625, 0.0085906982421875, 0.02764892578125, -0.0197601318359375, 0.00653839111328125, -0.007080078125, -0.00608062744140625, -0.0243988037109375, 0.01203155517578125, -0.0660400390625, -0.032989501953125, 0.0004699230194091797, 0.00018036365509033203, 0.01177978515625, -0.0068511962890625, -0.022430419921875, -0.0036602020263671875, 0.022491455078125, 0.00936126708984375, -0.028778076171875, 0.0273590087890625, 0.03936767578125, -0.033721923828125, 0.00536346435546875, -0.01184844970703125, -0.0138702392578125, 0.01666259765625, 0.0018243789672851562, 0.005832672119140625, -0.033782958984375, 0.001750946044921875, 0.05499267578125, 0.00568389892578125, 0.015655517578125, -0.0217742919921875, -0.022674560546875, -0.01361846923828125, 0.00600433349609375, -0.0027141571044921875, 0.0170745849609375, 0.0032176971435546875, -0.00579833984375, -0.0111541748046875, 0.050811767578125, 0.0238494873046875, 0.0238494873046875, 0.01416015625, 0.03656005859375, 0.044525146484375, -0.055633544921875, 0.07135009765625, -0.051605224609375, -0.01105499267578125, 0.0186309814453125, -0.01873779296875, -0.0687255859375, 0.051239013671875, -0.00760650634765625, 0.033905029296875, 0.03607177734375 ]
0bc75db5865831d4163005652b66489d4b67e1ef
Wordpress Stackexchange Q: $wpdb->insert Database Error Duplicate Entry Error Logging Is there an equivalent to INSERT IGNORE in the wpdb class? As I'm fetching and inserting a twitter feed and the field in which I store the tweet ID is keyed UNIQUE, I am aware that duplicates are going to occur and do not need Wordpress informing me of them in my PHP error log. (Note, I would write the query I need and $wpdb->prepare it, but for whatever reason, that throws a bunch of other errors [that I'd be happy to share though don't consider them relevant to this question]). A: To answer the question directly, there is $wpdb->update but nothing that will strictly duplicate INSERT IGNORE that I know of. If $wpdb->update, does not work I am fairly sure that you will need to write your own query and use $wpdb->query and $wpdb->prepare.
Q: $wpdb->insert Database Error Duplicate Entry Error Logging Is there an equivalent to INSERT IGNORE in the wpdb class? As I'm fetching and inserting a twitter feed and the field in which I store the tweet ID is keyed UNIQUE, I am aware that duplicates are going to occur and do not need Wordpress informing me of them in my PHP error log. (Note, I would write the query I need and $wpdb->prepare it, but for whatever reason, that throws a bunch of other errors [that I'd be happy to share though don't consider them relevant to this question]). A: To answer the question directly, there is $wpdb->update but nothing that will strictly duplicate INSERT IGNORE that I know of. If $wpdb->update, does not work I am fairly sure that you will need to write your own query and use $wpdb->query and $wpdb->prepare.
wordpress
{ "language": "en", "length": 143, "provenance": "stackexchange_00019.jsonl.gz:431437", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/96321" }
[ 0.103759765625, 0.01450347900390625, 0.0080718994140625, -0.072265625, 0.04437255859375, -0.0452880859375, 0.074951171875, -0.0149078369140625, 0.04071044921875, 0.026702880859375, -0.0672607421875, -0.0243377685546875, 0.01175689697265625, 0.002666473388671875, -0.039886474609375, -0.04669189453125, -0.0023937225341796875, -0.0138092041015625, -0.01507568359375, -0.0223236083984375, 0.0157012939453125, -0.026092529296875, -0.01922607421875, -0.031707763671875, -0.00466156005859375, -0.031585693359375, 0.06298828125, 0.01503753662109375, 0.0007252693176269531, -0.0034942626953125, 0.0037250518798828125, -0.0220794677734375, 0.012115478515625, 0.059112548828125, -0.058685302734375, -0.0022068023681640625, 0.049407958984375, -0.003002166748046875, -0.00677490234375, 0.07025146484375, 0.0028972625732421875, 0.0149688720703125, 0.07122802734375, -0.0293121337890625, -0.0003991127014160156, -0.0271453857421875, 0.036285400390625, -0.0054168701171875, 0.0251312255859375, 0.018707275390625, 0.0123748779296875, -0.02593994140625, 0.0288238525390625, 0.0221710205078125, -0.02093505859375, -0.01270294189453125, 0.0015277862548828125, 0.0167083740234375, 0.01322174072265625, 0.0203857421875, 0.00666046142578125, 0.026641845703125, -0.0008859634399414062, -0.01776123046875, 0.011871337890625, 0.006313323974609375, 0.055999755859375, 0.029693603515625, -0.03900146484375, -0.007488250732421875, 0.00940704345703125, -0.0102691650390625, -0.01336669921875, 0.0201416015625, -0.04150390625, -0.010284423828125, 0.045166015625, -0.0130767822265625, -0.0010690689086914062, 0.0247650146484375, 0.0088043212890625, -0.006687164306640625, -0.0157470703125, -0.0419921875, 0.0263519287109375, -0.00839996337890625, -0.008087158203125, -0.00824737548828125, -0.03045654296875, -0.00011599063873291016, -0.0164337158203125, -0.06378173828125, -0.021728515625, 0.04644775390625, -0.000518798828125, -0.0006256103515625, -0.018798828125, 0.05706787109375, -0.068603515625, -0.0027294158935546875, -0.0618896484375, 0.0252532958984375, -0.045257568359375, -0.0262603759765625, 0.022064208984375, -0.0041656494140625, -0.034515380859375, -0.061737060546875, 0.035400390625, 0.0307464599609375, -0.0226898193359375, 0.021575927734375, -0.00279998779296875, -0.0465087890625, -0.00926971435546875, 0.033843994140625, 0.004352569580078125, 0.0007457733154296875, 0.01390838623046875, -0.00021588802337646484, -0.0142974853515625, 0.039520263671875, -0.0631103515625, -0.0145416259765625, -0.0007615089416503906, -0.0180511474609375, -0.0017147064208984375, 0.036346435546875, -0.00832366943359375, -0.027252197265625, -0.012481689453125, 0.036285400390625, 0.0826416015625, 0.0347900390625, -0.003490447998046875, 0.0098724365234375, 0.005401611328125, -0.039398193359375, 0.0045928955078125, 0.02044677734375, -0.00960540771484375, -0.029449462890625, 0.002140045166015625, -0.017486572265625, 0.0155487060546875, 0.03216552734375, 0.016754150390625, -0.00351715087890625, -0.004047393798828125, -0.01323699951171875, -0.024139404296875, 0.0013589859008789062, -0.001529693603515625, 0.0101165771484375, 0.008697509765625, -0.02496337890625, -0.0092010498046875, -0.01543426513671875, 0.026947021484375, -0.009185791015625, 0.03271484375, -0.0204620361328125, -0.011322021484375, -0.0298919677734375, -0.042816162109375, 0.0014181137084960938, -0.06787109375, -0.002017974853515625, 0.018829345703125, 0.0224761962890625, -0.0299224853515625, 0.017303466796875, 0.0172882080078125, -0.00359344482421875, -0.0251922607421875, 0.00632476806640625, -0.01580810546875, -0.0313720703125, 0.02716064453125, -0.00045800209045410156, -0.0278778076171875, -0.0283660888671875, 0.01355743408203125, 0.00565338134765625, -0.052978515625, 0.0299530029296875, -0.00146484375, 0.06317138671875, 0.01885986328125, 0.0168914794921875, 0.036865234375, 0.00377655029296875, 0.0070343017578125, 0.0147705078125, -0.041534423828125, -0.03863525390625, 0.008941650390625, 0.026123046875, -0.03948974609375, 0.008331298828125, -0.044525146484375, 0.051116943359375, -0.0489501953125, 0.0207672119140625, -0.05810546875, 0.005046844482421875, -0.01131439208984375, 0.04620361328125, -0.028106689453125, 0.038909912109375, 0.0277862548828125, -0.0015649795532226562, -0.03717041015625, 0.0118865966796875, -0.004474639892578125, -0.048187255859375, -0.059356689453125, 0.007720947265625, -0.0261077880859375, 0.051605224609375, -0.0576171875, 0.01183319091796875, -0.0537109375, -0.06842041015625, 0.0047454833984375, -0.021453857421875, -0.01401519775390625, -0.02020263671875, 0.0074615478515625, -0.0151824951171875, 0.0230712890625, 0.03448486328125, 0.0101318359375, 0.034576416015625, -0.00977325439453125, -0.0037746429443359375, -0.003124237060546875, -0.0653076171875, 0.00875091552734375, 0.03692626953125, 0.038238525390625, -0.034088134765625, 0.00919342041015625, 0.038848876953125, -0.018157958984375, -0.029083251953125, 0.02783203125, -0.01239776611328125, 0.0169677734375, 0.0706787109375, -0.024169921875, -0.0189666748046875, -0.0042724609375, -0.058837890625, -0.0032672882080078125, 0.03216552734375, -0.0246734619140625, 0.0207366943359375, -0.0168304443359375, -0.01474761962890625, -0.0135498046875, -0.03070068359375, 0.01885986328125, -0.032196044921875, 0.06500244140625, -0.0128326416015625, 0.040374755859375, 0.014404296875, 0.0069580078125, -0.0011091232299804688, -0.01189422607421875, -0.0557861328125, 0.032928466796875, 0.0257110595703125, -0.045684814453125, 0.072021484375, -0.0007867813110351562, -0.03131103515625, 0.0236663818359375, 0.02655029296875, -0.0194854736328125, 0.0635986328125, 0.020660400390625, -0.0275421142578125, -0.0262603759765625, 0.004360198974609375, 0.007663726806640625, -0.0631103515625, -0.0182952880859375, -0.050933837890625, -0.01861572265625, 0.05291748046875, -0.0200958251953125, 0.05072021484375, 0.0216217041015625, -0.01494598388671875, 0.034027099609375, -0.041351318359375, 0.04449462890625, -0.033233642578125, 0.016693115234375, 0.05059814453125, -0.005359649658203125, -0.023193359375, -0.01064300537109375, -0.0197906494140625, -0.024932861328125, -0.0013761520385742188, -0.0151824951171875, -0.002521514892578125, -0.053253173828125, 0.0374755859375, 0.050994873046875, 0.08148193359375, 0.038543701171875, -0.0182037353515625, 0.032318115234375, 0.071044921875, -0.0175628662109375, -0.126953125, -0.0478515625, -0.049285888671875, 0.031341552734375, -0.00799560546875, -0.031097412109375, -0.0091400146484375, 0.0010614395141601562, 0.041107177734375, 0.00937652587890625, -0.0207366943359375, -0.0280609130859375, -0.054229736328125, -0.07073974609375, -0.027862548828125, 0.0101776123046875, 0.01416778564453125, 0.0004131793975830078, 0.06494140625, 0.0147552490234375, -0.02838134765625, 0.00908660888671875, 0.00684356689453125, -0.021697998046875, 0.0128021240234375, -0.0060882568359375, -0.000034749507904052734, 0.0202484130859375, 0.0035247802734375, -0.0257415771484375, 0.022735595703125, 0.0004551410675048828, -0.0166168212890625, 0.031402587890625, -0.046783447265625, 0.044708251953125, 0.0192108154296875, -0.05157470703125, 0.0100555419921875, 0.08123779296875, -0.018310546875, -0.032989501953125, -0.0009860992431640625, -0.0283660888671875, -0.022308349609375, -0.0245819091796875, 0.0216827392578125, -0.0009355545043945312, 0.0232696533203125, 0.0171966552734375, 0.035186767578125, 0.0235137939453125, 0.005832672119140625, 0.0322265625, -0.0220794677734375, -0.0321044921875, -0.047210693359375, -0.017486572265625, -0.0286102294921875, 0.0123748779296875, -0.032257080078125, -0.01568603515625, -0.0419921875, 0.052001953125, -0.042938232421875, -0.029052734375, 0.006855010986328125, -0.045806884765625, 0.047271728515625, -0.054168701171875, 0.01013946533203125, -0.0284881591796875, 0.052032470703125, -0.00629425048828125, -0.0260467529296875, 0.0108795166015625, 0.022674560546875, -0.028656005859375, -0.0478515625, 0.00028061866760253906, -0.00580596923828125, 0.0281829833984375, 0.0096282958984375, -0.004055023193359375, 0.01071929931640625, -0.0265045166015625, -0.006641387939453125, 0.0105743408203125, -0.006946563720703125, 0.038055419921875, -0.0723876953125, 0.036834716796875, 0.02752685546875, 0.02886962890625, -0.017486572265625, -0.002712249755859375, -0.0670166015625, -0.054443359375, 0.0080413818359375, -0.06744384765625, 0.04718017578125, 0.0012340545654296875, 0.04473876953125, -0.018646240234375, 0.0198516845703125, -0.03997802734375, -0.0174713134765625, -0.00711822509765625, 0.0384521484375, -0.029388427734375, -0.00634765625, -0.022186279296875, -0.0191802978515625, -0.00685882568359375, -0.02947998046875, -0.0238037109375, 0.0215301513671875, -0.0195465087890625, 0.046661376953125, -0.004856109619140625, 0.00397491455078125, 0.0036067962646484375, -0.041656494140625, -0.0226898193359375, 0.044219970703125, 0.0114593505859375, -0.0186767578125, -0.052490234375, -0.035919189453125, 0.0202789306640625, 0.00199127197265625, -0.0198211669921875, 0.0172576904296875, 0.0789794921875, 0.0243072509765625, -0.005229949951171875, -0.05926513671875, -0.02777099609375, 0.0250091552734375, -0.00421905517578125, 0.04840087890625, 0.05450439453125, 0.005218505859375, 0.001171112060546875, 0.00205230712890625, -0.0194091796875, 0.00153350830078125, 0.04058837890625, 0.01708984375, -0.0020809173583984375, -0.01555633544921875, -0.022674560546875, 0.00868988037109375, 0.042816162109375, -0.011688232421875, 0.015777587890625, 0.0248565673828125, 0.0027256011962890625, -0.036529541015625, -0.00604248046875, -0.01336669921875, -0.017974853515625, -0.0014972686767578125, -0.0212554931640625, -0.016571044921875, -0.026824951171875, 0.01418304443359375, -0.03729248046875, -0.021484375, -0.0108184814453125, 0.0308685302734375, 0.07049560546875, 0.0264739990234375, 0.0511474609375, 0.00738525390625, 0.0004596710205078125, -0.0675048828125, -0.018035888671875, 0.030517578125, 0.03369140625, -0.04656982421875, 0.03912353515625, -0.0137786865234375, -0.036590576171875, -0.00191497802734375, 0.00777435302734375, -0.01279449462890625, -0.00429534912109375, -0.036041259765625, 0.01323699951171875, 0.0229339599609375, -0.0101165771484375, -0.0074920654296875, 0.0282440185546875, 0.005706787109375, -0.004268646240234375, 0.0214080810546875, -0.00933074951171875, -0.007083892822265625, -0.0003597736358642578, -0.006870269775390625, 0.04888916015625, 0.05889892578125, 0.05535888671875, 0.01203155517578125, -0.034271240234375, -0.0206756591796875, 0.03643798828125, -0.0289459228515625, -0.033538818359375, -0.00902557373046875, 0.00574493408203125, 0.039520263671875, -0.0189208984375, -0.0168609619140625, 0.03521728515625, -0.0163726806640625, -0.01363372802734375, 0.0100250244140625, -0.0015344619750976562, -0.04229736328125, -0.001079559326171875, 0.004909515380859375, -0.00637054443359375, -0.0170440673828125, 0.00821685791015625, -0.0127105712890625, -0.023345947265625, 0.020843505859375, -0.01312255859375, 0.021087646484375, -0.03143310546875, -0.041351318359375, 0.006549835205078125, -0.057769775390625, -0.07171630859375, -0.00015604496002197266, 0.03338623046875, -0.0140533447265625, -0.0005254745483398438, 0.01331329345703125, 0.00021731853485107422, 0.030517578125, -0.059844970703125, 0.01012420654296875, -0.00090789794921875, -0.016845703125, 0.04473876953125, 0.0184478759765625, 0.073974609375, -0.0310516357421875, -0.016632080078125, -0.037567138671875, 0.003124237060546875, -0.01093292236328125, 0.0045318603515625, -0.01511383056640625, -0.004566192626953125, -0.00901031494140625, 0.0092926025390625, -0.00466156005859375, -0.021636962890625, 0.018646240234375, 0.01290130615234375, -0.040008544921875, -0.017913818359375, 0.033477783203125, 0.0219573974609375, -0.0288238525390625, 0.01568603515625, 0.039825439453125, 0.047454833984375, -0.0248565673828125, -0.0159912109375, -0.0382080078125, 0.01512908935546875, -0.02813720703125, 0.042022705078125, 0.033599853515625, -0.00009202957153320312, 0.01287078857421875, 0.02642822265625, -0.01312255859375, 0.0026874542236328125, 0.0007710456848144531, 0.0084228515625, -0.0167083740234375, -0.057830810546875, 0.102783203125, -0.006412506103515625, 0.006114959716796875, -0.00949859619140625, 0.0186004638671875, -0.019775390625, -0.0145111083984375, -0.012451171875, -0.00864410400390625, -0.0204620361328125, 0.032470703125, 0.0265655517578125, -0.007648468017578125, 0.0183563232421875, -0.007396697998046875, 0.004405975341796875, 0.0019588470458984375, 0.00963592529296875, -0.01100921630859375, -0.0017671585083007812, 0.05340576171875, -0.0036258697509765625, -0.03167724609375, 0.01358795166015625, -0.038726806640625, 0.023345947265625, 0.0254364013671875, 0.0716552734375, -0.032562255859375, 0.00811767578125, 0.049072265625, -0.040985107421875, -0.0496826171875, 0.0245513916015625, -0.00557708740234375, -0.01155853271484375, -0.011260986328125, -0.031890869140625, -0.017913818359375, -0.005138397216796875, -0.0300445556640625, -0.0198516845703125, -0.010772705078125, 0.01123046875, -0.001651763916015625, 0.01082611083984375, -0.0162811279296875, 0.00244903564453125, -0.0122528076171875, -0.0008196830749511719, -0.001491546630859375, 0.01032257080078125, -0.03436279296875, -0.04022216796875, -0.00013208389282226562, -0.020111083984375, 0.0022373199462890625, -0.0081787109375, 0.037384033203125, 0.06683349609375, 0.04266357421875, 0.027923583984375, -0.05413818359375, 0.0299224853515625, 0.032501220703125, 0.034423828125, -0.039947509765625, 0.00746917724609375, 0.0338134765625, -0.051025390625, 0.01029205322265625, 0.0032024383544921875, -0.015625, 0.0198211669921875, -0.03265380859375, 0.027069091796875, -0.0482177734375, 0.00716400146484375, 0.031402587890625, -0.0316162109375, -0.0016918182373046875, -0.0178375244140625, 0.0328369140625, -0.080810546875, -0.051422119140625, 0.00830841064453125, -0.039581298828125, 0.00847625732421875, -0.003841400146484375, -0.07476806640625, 0.11248779296875, 0.031585693359375, 0.035308837890625, 0.0186614990234375, 0.0292205810546875, -0.06427001953125, -0.00251007080078125, -0.0305328369140625, 0.034942626953125, -0.0133514404296875, 0.028839111328125, -0.0555419921875, -0.0166473388671875, 0.01129150390625, 0.037139892578125, 0.054534912109375, 0.01340484619140625, -0.044921875, -0.016143798828125, 0.0279388427734375, -0.00682830810546875, -0.017730712890625, 0.07781982421875, -0.00934600830078125, 0.0089569091796875, 0.04541015625, -0.048583984375, 0.03143310546875, -0.0299072265625, 0.0002884864807128906, -0.00789642333984375, -0.00283050537109375, -0.01331329345703125, 0.0007753372192382812, 0.00705718994140625, 0.0592041015625, -0.0276641845703125, -0.031402587890625, -0.01436614990234375, 0.019683837890625, 0.0377197265625, 0.029571533203125, -0.021636962890625, -0.01406097412109375, -0.024658203125, 0.02947998046875, -0.00402069091796875, -0.006824493408203125, 0.043792724609375, 0.0078277587890625, 0.060028076171875, -0.00032591819763183594, -0.0126800537109375, -0.00861358642578125, 0.031524658203125, 0.039306640625, 0.004199981689453125, 0.03948974609375, -0.0301361083984375, 0.0038318634033203125, 0.0517578125, 0.056365966796875, -0.0264892578125, -0.0220184326171875, 0.01776123046875, 0.0081787109375, 0.0021076202392578125, -0.0195465087890625, 0.00676727294921875, -0.0584716796875, -0.0023632049560546875, -0.002246856689453125, -0.023345947265625, 0.007663726806640625, 0.013427734375, -0.002574920654296875, 0.006153106689453125, 0.020111083984375, -0.0229339599609375, -0.028289794921875, 0.017364501953125, 0.005374908447265625, 0.055450439453125, 0.004638671875, 0.0289154052734375, -0.021636962890625, -0.01267242431640625, -0.04229736328125, 0.0148468017578125, 0.0223541259765625, 0.052001953125, -0.0540771484375, 0.009033203125, 0.0379638671875, 0.01983642578125, -0.004543304443359375, 0.06488037109375, 0.05224609375, 0.0496826171875, -0.0211944580078125, -0.0029048919677734375, 0.031280517578125, -0.0309295654296875, -0.03607177734375, -0.04229736328125, -0.00836944580078125, 0.006687164306640625, 0.01006317138671875, 0.0132598876953125, 0.0101776123046875, -0.0018062591552734375, 0.01265716552734375, 0.00991058349609375, 0.004619598388671875, -0.00724029541015625, 0.01763916015625, -0.01445770263671875, 0.005626678466796875, 0.0251312255859375, -0.07354736328125, -0.0111236572265625, -0.013275146484375, -0.034637451171875, 0.004657745361328125, 0.0360107421875, -0.0225372314453125, 0.023651123046875, 0.04718017578125, 0.01172637939453125, -0.03448486328125, -0.0318603515625, 0.0565185546875, -0.0260009765625, -0.00913238525390625, 0.032440185546875, -0.043121337890625, -0.0165252685546875, -0.0036220550537109375, 0.00408172607421875, 0.0208740234375, 0.03289794921875, 0.0263214111328125, 0.0174560546875, -0.006237030029296875, 0.0270233154296875, -0.044464111328125, 0.00799560546875, -0.01018524169921875, -0.0252838134765625, 0.00945281982421875, 0.00205230712890625, -0.07586669921875, 0.001445770263671875, 0.01137542724609375, 0.003955841064453125, 0.031524658203125, -0.0504150390625, 0.039825439453125, -0.00429534912109375, 0.029815673828125, -0.0196685791015625, -0.0208587646484375, -0.011505126953125, 0.015228271484375, 0.004657745361328125, 0.01922607421875, -0.00063323974609375, 0.047515869140625, -0.0096435546875, -0.038055419921875, 0.0160064697265625, -0.0672607421875, 0.01512908935546875, 0.01763916015625, 0.00846099853515625, 0.007350921630859375, -0.03387451171875, -0.03961181640625, -0.00841522216796875, -0.00806427001953125, 0.01149749755859375, -0.031768798828125, -0.0537109375, -0.01006317138671875, 0.01519012451171875, 0.00833892822265625, -0.0162811279296875, 0.007137298583984375, 0.0260162353515625, -0.0225067138671875, -0.0207366943359375, 0.01195526123046875, -0.003002166748046875, -0.0016307830810546875, -0.01885986328125, 0.001003265380859375, 0.007965087890625, -0.01273345947265625, -0.026458740234375, 0.005584716796875, 0.0304718017578125, 0.0012912750244140625, -0.032928466796875, 0.03277587890625, -0.0235748291015625, 0.0127410888671875, -0.0021343231201171875, -0.01371002197265625, 0.014251708984375, 0.03448486328125, -0.027679443359375, -0.0484619140625, -0.003566741943359375, 0.0307159423828125, -0.031524658203125, 0.00859832763671875, 0.0215606689453125, -0.0297088623046875, -0.04205322265625, -0.0380859375, 0.0101470947265625, 0.0032100677490234375, 0.032623291015625, -0.01409149169921875, -0.0124053955078125, -0.004390716552734375, 0.01384735107421875, -0.039794921875, 0.01275634765625, -0.061767578125, -0.01282501220703125, -0.02764892578125, -0.023651123046875, -0.024810791015625, -0.0655517578125, -0.12164306640625, 0.06427001953125, -0.018463134765625, -0.048370361328125, 0.0153045654296875, -0.031890869140625, -0.029266357421875, 0.031646728515625, 0.00177001953125, -0.00823974609375, -0.0073394775390625, 0.0396728515625, -0.007549285888671875, -0.0262451171875, 0.04254150390625, -0.041259765625, -0.0546875, -0.0248565673828125, -0.002269744873046875, -0.0253143310546875, -0.0001932382583618164, 0.010284423828125, 0.0308990478515625, 0.05499267578125, -0.00409698486328125, 0.02093505859375, 0.0085296630859375, -0.050201416015625, -0.0061798095703125, 0.007843017578125, -0.025238037109375, 0.01464080810546875, 0.0885009765625, 0.07562255859375, 0.0309600830078125, -0.054901123046875, -0.04339599609375, -0.02093505859375, -0.0124664306640625, -0.01459503173828125, 0.0162506103515625, -0.07574462890625, -0.00690460205078125, 0.002620697021484375, -0.0020313262939453125, 0.02740478515625, 0.042236328125, 0.01224517822265625, -0.01042938232421875, 0.0633544921875, -0.0189361572265625, -0.053619384765625, 0.0012769699096679688, 0.0269927978515625, -0.021087646484375, 0.00946807861328125, -0.02764892578125, 0.01338958740234375, 0.0156097412109375, -0.036376953125, -0.0367431640625, -0.01026153564453125, -0.0066070556640625, 0.02679443359375, -0.0196533203125, 0.0174102783203125, -0.019683837890625, 0.00937652587890625, -0.0087432861328125, -0.01377105712890625, -0.006679534912109375, -0.0194091796875, 0.0229034423828125, -0.040679931640625, -0.0322265625, 0.07843017578125, -0.042755126953125, -0.00208282470703125, -0.04730224609375, 0.0311431884765625, -0.0150299072265625, 0.01837158203125, 0.04119873046875, -0.01355743408203125, -0.0037746429443359375, 0.067138671875, -0.00392913818359375, -0.048126220703125, 0.026031494140625, 0.044708251953125, 0.057037353515625, 0.00940704345703125 ]
b11f38fd04c57ae6077825bd013f04dcdfc0ec1b
Wordpress Stackexchange Q: How to remove file versions from the file source links in wp_head? I observed the inside the wp_head function in the source links of every .css, .js files a ?ver=1 (or other number based on the file's/library version) is added. How can I overwrite them, to remove them? This issue I think is causing problems on the cache manifest part. A: You can hook into style_loader_src and script_loader_src and run remove_query_arg( 'ver', $url ) on the URL: <?php /* Plugin Name: Remove version parameter for scripts and styles */ add_filter( 'style_loader_src', 't5_remove_version' ); add_filter( 'script_loader_src', 't5_remove_version' ); function t5_remove_version( $url ) { return remove_query_arg( 'ver', $url ); } Without this plugin: After plugin activation: There is one case where that will fail: When someone didn’t use the script/style API, but added a hard coded string to the header.
Q: How to remove file versions from the file source links in wp_head? I observed the inside the wp_head function in the source links of every .css, .js files a ?ver=1 (or other number based on the file's/library version) is added. How can I overwrite them, to remove them? This issue I think is causing problems on the cache manifest part. A: You can hook into style_loader_src and script_loader_src and run remove_query_arg( 'ver', $url ) on the URL: <?php /* Plugin Name: Remove version parameter for scripts and styles */ add_filter( 'style_loader_src', 't5_remove_version' ); add_filter( 'script_loader_src', 't5_remove_version' ); function t5_remove_version( $url ) { return remove_query_arg( 'ver', $url ); } Without this plugin: After plugin activation: There is one case where that will fail: When someone didn’t use the script/style API, but added a hard coded string to the header. A: This worked for me when I still had to load a stylesheet from Google Fonts. <?php add_filter( 'script_loader_src', 'wpse130419_remove_script_version', 15, 1 ); add_filter( 'style_loader_src', 'wpse130419_remove_script_version', 15, 1 ); function wpse130419_remove_script_version( $src ) { $url = explode( '?', $src ); if ( $url[0] === 'http://fonts.googleapis.com/css' ) : $version = explode( '&ver=', $url[1] ); $url[1] = $version[0]; endif; return ( $url[0] === 'http://fonts.googleapis.com/css' ) ? "{$url[0]}?{$url[1]}" : $url[0] ; }
wordpress
{ "language": "en", "length": 208, "provenance": "stackexchange_00019.jsonl.gz:431438", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/96324" }
[ 0.033416748046875, 0.004909515380859375, -0.08062744140625, -0.057220458984375, 0.0167999267578125, -0.05364990234375, 0.01189422607421875, 0.047332763671875, 0.00818634033203125, -0.0124053955078125, 0.0002123117446899414, -0.004123687744140625, -0.050506591796875, -0.039764404296875, 0.0153656005859375, -0.0298309326171875, 0.053619384765625, -0.0167388916015625, 0.0231475830078125, 0.013671875, -0.037139892578125, 0.04876708984375, 0.05389404296875, 0.082763671875, 0.0223846435546875, -0.03515625, 0.0223236083984375, -0.03204345703125, 0.0018711090087890625, -0.041107177734375, 0.009918212890625, 0.05145263671875, 0.0079345703125, 0.0304412841796875, -0.01546478271484375, -0.028106689453125, 0.0273590087890625, -0.006839752197265625, 0.0113372802734375, 0.0038909912109375, 0.032745361328125, -0.032562255859375, 0.041259765625, -0.0045623779296875, -0.01355743408203125, -0.0062713623046875, 0.047027587890625, 0.00655364990234375, 0.01123809814453125, -0.0006251335144042969, -0.00832366943359375, -0.0144500732421875, 0.005138397216796875, 0.01113128662109375, -0.02740478515625, -0.024261474609375, -0.0128631591796875, 0.051422119140625, 0.022125244140625, -0.0132293701171875, -0.0276641845703125, 0.0218048095703125, 0.0084686279296875, -0.002628326416015625, -0.0297393798828125, 0.006618499755859375, 0.04681396484375, -0.0098724365234375, -0.04949951171875, -0.03424072265625, 0.0279541015625, -0.0173797607421875, -0.0086212158203125, -0.01922607421875, 0.005977630615234375, 0.0196685791015625, -0.0400390625, 0.00263214111328125, 0.044830322265625, -0.007068634033203125, 0.03497314453125, -0.033966064453125, 0.0212860107421875, 0.02020263671875, 0.005950927734375, 0.050567626953125, 0.0021610260009765625, -0.0308380126953125, -0.0443115234375, 0.01326751708984375, -0.034454345703125, -0.024383544921875, 0.005290985107421875, -0.01342010498046875, -0.019378662109375, 0.0048370361328125, 0.01078033447265625, 0.047607421875, -0.00272369384765625, 0.005863189697265625, -0.005290985107421875, -0.0099029541015625, -0.04266357421875, -0.03375244140625, 0.00470733642578125, 0.046356201171875, -0.0103759765625, 0.0267181396484375, 0.0399169921875, 0.023468017578125, 0.023529052734375, -0.01187896728515625, 0.0049285888671875, 0.00833892822265625, -0.00662994384765625, -0.000045359134674072266, -0.03424072265625, 0.03155517578125, -0.0243072509765625, 0.02557373046875, 0.005908966064453125, 0.0233612060546875, -0.0241241455078125, -0.0120391845703125, 0.031890869140625, -0.00011199712753295898, -0.035400390625, 0.00867462158203125, -0.0302581787109375, 0.0162200927734375, -0.028228759765625, 0.003719329833984375, 0.0684814453125, 0.034881591796875, 0.02008056640625, -0.0166473388671875, 0.033599853515625, -0.0081634521484375, -0.0180816650390625, 0.021240234375, -0.036468505859375, -0.015289306640625, 0.0137786865234375, -0.033111572265625, 0.0290069580078125, -0.01995849609375, -0.0065155029296875, 0.046173095703125, 0.02752685546875, 0.0158843994140625, 0.0416259765625, -0.048980712890625, 0.055816650390625, -0.0126800537109375, -0.0280914306640625, -0.06622314453125, 0.052032470703125, -0.0760498046875, 0.006214141845703125, -0.09027099609375, -0.017669677734375, -0.031646728515625, -0.01157379150390625, -0.002655029296875, -0.0253753662109375, 0.05230712890625, 0.01470184326171875, 0.0009393692016601562, 0.0197601318359375, 0.016265869140625, -0.0000426173210144043, -0.07159423828125, 0.0148162841796875, 0.013031005859375, -0.02093505859375, 0.04864501953125, 0.00344085693359375, 0.0161285400390625, 0.0006775856018066406, 0.026214599609375, -0.0029659271240234375, -0.0325927734375, 0.0400390625, -0.00893402099609375, -0.06671142578125, 0.005275726318359375, -0.007389068603515625, 0.0243988037109375, 0.031707763671875, 0.00005173683166503906, 0.072021484375, 0.002513885498046875, -0.026702880859375, 0.0117034912109375, -0.04376220703125, -0.01593017578125, 0.0282135009765625, 0.016357421875, -0.018768310546875, 0.03289794921875, -0.006275177001953125, 0.009246826171875, 0.00919342041015625, -0.0171356201171875, -0.10308837890625, 0.0268402099609375, -0.060821533203125, 0.06719970703125, -0.0220947265625, 0.054168701171875, 0.0294189453125, 0.02398681640625, -0.045135498046875, 0.01690673828125, 0.033294677734375, 0.0032062530517578125, 0.009185791015625, 0.0224456787109375, -0.005863189697265625, 0.0139312744140625, -0.004344940185546875, -0.0161895751953125, -0.007312774658203125, 0.005123138427734375, 0.004085540771484375, -0.014373779296875, -0.0185546875, -0.01096343994140625, 0.018890380859375, -0.00653076171875, 0.03509521484375, 0.035247802734375, -0.015960693359375, 0.0308990478515625, -0.009765625, -0.0245361328125, -0.020294189453125, -0.0869140625, 0.016448974609375, 0.049835205078125, 0.047821044921875, 0.0377197265625, -0.003101348876953125, -0.01494598388671875, 0.057586669921875, -0.006526947021484375, 0.027313232421875, -0.041168212890625, 0.00464630126953125, 0.01215362548828125, 0.033111572265625, -0.0228424072265625, 0.0208282470703125, -0.033721923828125, 0.0084228515625, 0.01678466796875, -0.01480865478515625, -0.0012989044189453125, -0.01318359375, -0.00563812255859375, 0.01018524169921875, -0.024169921875, -0.033233642578125, 0.0008955001831054688, 0.0250701904296875, -0.0006985664367675781, 0.038787841796875, 0.03228759765625, 0.00516510009765625, -0.01486968994140625, 0.0180206298828125, -0.0108642578125, -0.01082611083984375, 0.00640106201171875, -0.003688812255859375, 0.00650787353515625, 0.005767822265625, 0.005336761474609375, -0.0300140380859375, -0.00861358642578125, -0.02001953125, -0.0117340087890625, -0.003086090087890625, -0.00323486328125, 0.0257568359375, -0.0159454345703125, 0.0181427001953125, -0.01654052734375, 0.025390625, 0.02838134765625, 0.0465087890625, -0.0185089111328125, -0.0177154541015625, 0.014007568359375, 0.01033782958984375, -0.035247802734375, 0.0650634765625, -0.029144287109375, 0.01277923583984375, -0.01148223876953125, 0.07879638671875, 0.06048583984375, 0.006732940673828125, -0.017791748046875, 0.01178741455078125, 0.0198211669921875, 0.04620361328125, -0.0026187896728515625, 0.005359649658203125, -0.0008072853088378906, -0.059356689453125, -0.04595947265625, 0.0328369140625, -0.0283966064453125, 0.035125732421875, -0.014892578125, 0.006618499755859375, 0.006038665771484375, -0.134033203125, -0.10174560546875, 0.01641845703125, -0.015777587890625, -0.01155853271484375, 0.04754638671875, -0.0264129638671875, -0.025360107421875, 0.08294677734375, -0.0012035369873046875, 0.0011959075927734375, -0.0428466796875, -0.014923095703125, -0.02685546875, -0.042022705078125, 0.00624847412109375, 0.022735595703125, -0.01142120361328125, -0.014617919921875, 0.06793212890625, -0.002292633056640625, -0.05078125, -0.0010385513305664062, 0.0142364501953125, 0.017333984375, -0.00542449951171875, 0.01373291015625, -0.019805908203125, -0.0209197998046875, -0.00957489013671875, 0.01378631591796875, 0.032806396484375, -0.0250091552734375, 0.01483917236328125, -0.0020542144775390625, -0.0252532958984375, 0.0165863037109375, 0.038818359375, -0.0091705322265625, -0.0269012451171875, 0.0247802734375, -0.06103515625, -0.046142578125, 0.034332275390625, -0.0215911865234375, 0.0271759033203125, 0.001804351806640625, -0.040771484375, 0.009979248046875, 0.032501220703125, 0.05145263671875, 0.00817108154296875, 0.039581298828125, -0.00782012939453125, 0.0177001953125, 0.004405975341796875, 0.01514434814453125, -0.0638427734375, 0.08380126953125, 0.0196533203125, -0.006351470947265625, 0.042388916015625, 0.0162200927734375, 0.00533294677734375, -0.0072479248046875, -0.03436279296875, 0.0007152557373046875, 0.0295867919921875, -0.04693603515625, 0.0650634765625, -0.06805419921875, -0.0159454345703125, -0.05877685546875, 0.073486328125, 0.0029144287109375, -0.033050537109375, -0.001476287841796875, 0.02655029296875, -0.0645751953125, -0.046875, -0.00415802001953125, 0.009979248046875, -0.12066650390625, 0.01739501953125, 0.0204315185546875, -0.03656005859375, -0.025970458984375, 0.02410888671875, -0.07568359375, -0.045318603515625, 0.028228759765625, -0.005870819091796875, -0.019378662109375, 0.032470703125, -0.0283660888671875, 0.01390838623046875, -0.037811279296875, -0.01230621337890625, -0.0831298828125, -0.0276336669921875, -0.032501220703125, 0.09619140625, 0.02093505859375, -0.020172119140625, -0.0177459716796875, 0.054656982421875, 0.00923919677734375, 0.020477294921875, 0.007091522216796875, -0.019683837890625, -0.00356292724609375, 0.0208282470703125, 0.0118865966796875, -0.0187530517578125, 0.004852294921875, -0.003284454345703125, -0.07220458984375, -0.0278778076171875, -0.021636962890625, -0.002101898193359375, 0.04400634765625, -0.054473876953125, -0.042083740234375, -0.046600341796875, 0.00858306884765625, -0.03009033203125, -0.00304412841796875, 0.0077972412109375, -0.0220184326171875, 0.00347900390625, 0.060455322265625, 0.025665283203125, 0.0012845993041992188, -0.0234222412109375, 0.02386474609375, 0.014801025390625, -0.053192138671875, 0.010711669921875, 0.03973388671875, 0.02325439453125, -0.035430908203125, 0.060699462890625, 0.00301361083984375, -0.0068817138671875, 0.06298828125, -0.0307464599609375, 0.01419830322265625, 0.0011339187622070312, 0.033966064453125, 0.0018157958984375, -0.0313720703125, 0.040557861328125, 0.0201416015625, -0.048309326171875, -0.0231475830078125, 0.019561767578125, 0.012969970703125, 0.049530029296875, -0.00754547119140625, 0.038726806640625, -0.052215576171875, -0.015869140625, -0.0243377685546875, -0.0057830810546875, -0.021728515625, 0.05230712890625, 0.028472900390625, -0.00800323486328125, 0.0294036865234375, 0.04901123046875, 0.02032470703125, -0.045623779296875, 0.042388916015625, -0.0784912109375, 0.051666259765625, -0.040802001953125, -0.028778076171875, -0.0277099609375, -0.00726318359375, 0.01230621337890625, 0.018798828125, -0.0241851806640625, 0.014129638671875, -0.0017194747924804688, 0.0018930435180664062, -0.00656890869140625, 0.0419921875, 0.0357666015625, -0.0229949951171875, -0.03106689453125, -0.0273590087890625, -0.011810302734375, -0.0250091552734375, -0.0489501953125, -0.01316070556640625, 0.0028228759765625, -0.0150299072265625, 0.03594970703125, -0.016754150390625, 0.0209503173828125, -0.0018415451049804688, -0.01465606689453125, 0.015625, 0.004947662353515625, -0.01256561279296875, 0.0006604194641113281, 0.00930023193359375, 0.049774169921875, -0.0548095703125, 0.054931640625, -0.04315185546875, -0.039825439453125, 0.03375244140625, 0.045440673828125, -0.047088623046875, -0.0273284912109375, 0.0223236083984375, -0.017547607421875, -0.01171875, 0.0006051063537597656, -0.034423828125, -0.013916015625, -0.0235137939453125, -0.022125244140625, 0.034576416015625, -0.00562286376953125, -0.01007080078125, -0.0117034912109375, -0.00879669189453125, -0.00890350341796875, 0.032257080078125, -0.066650390625, 0.01117706298828125, 0.03509521484375, 0.01690673828125, -0.023651123046875, -0.014312744140625, -0.06890869140625, -0.00626373291015625, -0.032958984375, 0.0002453327178955078, 0.03302001953125, -0.026641845703125, 0.0233154296875, -0.0103302001953125, -0.02593994140625, 0.03363037109375, 0.0010881423950195312, 0.04949951171875, 0.042816162109375, -0.048614501953125, -0.017425537109375, -0.0213470458984375, -0.01361083984375, -0.03717041015625, -0.0384521484375, -0.037506103515625, 0.01387786865234375, -0.026947021484375, 0.032501220703125, -0.0268707275390625, 0.0210723876953125, 0.020477294921875, 0.0306854248046875, -0.0115509033203125, 0.06414794921875, -0.01549530029296875, 0.044281005859375, -0.01611328125, 0.034210205078125, 0.0014591217041015625, 0.0139923095703125, -0.0167236328125, -0.0112762451171875, 0.015869140625, -0.0168914794921875, -0.0248870849609375, -0.043670654296875, 0.01544189453125, 0.0149993896484375, 0.043548583984375, -0.0079803466796875, 0.01494598388671875, -0.0130462646484375, -0.001827239990234375, -0.0306396484375, 0.01213836669921875, -0.01593017578125, 0.0014820098876953125, -0.0182342529296875, -0.0006432533264160156, 0.0440673828125, -0.01739501953125, 0.00406646728515625, 0.00736236572265625, -0.0191802978515625, 0.02447509765625, 0.0006160736083984375, -0.003810882568359375, 0.002246856689453125, 0.03851318359375, 0.006938934326171875, 0.058380126953125, 0.0032444000244140625, 0.039215087890625, 0.07568359375, -0.0025501251220703125, -0.00921630859375, 0.0197296142578125, 0.0251007080078125, -0.006313323974609375, 0.043792724609375, 0.028717041015625, 0.0120086669921875, 0.002635955810546875, 0.0126190185546875, 0.0209503173828125, -0.0110931396484375, -0.0018329620361328125, -0.0174102783203125, 0.004451751708984375, 0.07403564453125, 0.0126495361328125, 0.00461578369140625, -0.0198822021484375, -0.0009174346923828125, 0.00835418701171875, -0.01064300537109375, 0.002410888671875, 0.0274810791015625, -0.0156097412109375, -0.0302581787109375, -0.037109375, -0.000015020370483398438, -0.045379638671875, 0.00701141357421875, 0.042236328125, -0.039337158203125, -0.0299835205078125, 0.00608062744140625, 0.019744873046875, -0.035400390625, -0.06475830078125, 0.0012941360473632812, 0.0032596588134765625, -0.021087646484375, 0.0225067138671875, 0.0139312744140625, 0.042144775390625, 0.035308837890625, 0.01067352294921875, -0.00991058349609375, 0.002170562744140625, -0.01251220703125, 0.01453399658203125, -0.02471923828125, 0.017669677734375, -0.0144805908203125, -0.022552490234375, 0.005039215087890625, -0.0201568603515625, -0.025390625, -0.0158843994140625, -0.01093292236328125, 0.0718994140625, -0.037139892578125, -0.021392822265625, 0.015777587890625, 0.027587890625, -0.0048675537109375, -0.031982421875, 0.0458984375, -0.07659912109375, -0.040924072265625, 0.0011434555053710938, -0.031707763671875, -0.00948333740234375, -0.0274658203125, -0.04400634765625, 0.0953369140625, -0.02838134765625, 0.044403076171875, 0.0214996337890625, 0.035919189453125, -0.00789642333984375, 0.01406097412109375, -0.035736083984375, 0.035186767578125, 0.0211029052734375, 0.02398681640625, -0.032958984375, -0.01296234130859375, 0.0191802978515625, 0.03271484375, 0.035614013671875, -0.0088653564453125, 0.01314544677734375, -0.0048980712890625, 0.0872802734375, 0.07659912109375, 0.041473388671875, -0.00971221923828125, -0.016998291015625, -0.0255126953125, 0.003276824951171875, 0.00464630126953125, 0.0343017578125, -0.0096588134765625, -0.039947509765625, 0.00884246826171875, 0.0299072265625, 0.025146484375, 0.0034847259521484375, 0.0616455078125, -0.048828125, 0.0161285400390625, 0.041900634765625, 0.03863525390625, 0.0217437744140625, 0.00527191162109375, 0.0007758140563964844, 0.0357666015625, -0.024932861328125, 0.015289306640625, 0.031219482421875, 0.01163482666015625, 0.0110015869140625, -0.005695343017578125, -0.0016527175903320312, 0.015350341796875, -0.01202392578125, -0.0179901123046875, 0.018218994140625, -0.0038928985595703125, 0.061248779296875, 0.0335693359375, 0.035919189453125, 0.0105743408203125, 0.0516357421875, -0.0287322998046875, 0.037261962890625, -0.048675537109375, -0.03839111328125, 0.001293182373046875, -0.0160675048828125, 0.0030612945556640625, -0.02392578125, -0.012603759765625, -0.0770263671875, -0.0386962890625, -0.0224151611328125, 0.0146331787109375, 0.0298919677734375, 0.01079559326171875, 0.019378662109375, 0.046112060546875, -0.050323486328125, 0.001972198486328125, -0.029876708984375, 0.0028228759765625, -0.01540374755859375, 0.033843994140625, 0.03369140625, 0.0024242401123046875, -0.006549835205078125, -0.0163421630859375, -0.006946563720703125, 0.047576904296875, -0.0113067626953125, 0.006938934326171875, -0.023773193359375, -0.037261962890625, -0.01033782958984375, 0.020782470703125, 0.0201568603515625, 0.0065460205078125, 0.048370361328125, 0.0198974609375, -0.0474853515625, -0.0005974769592285156, 0.006134033203125, -0.030303955078125, 0.0262451171875, -0.017913818359375, 0.0294189453125, 0.01081085205078125, -0.007568359375, -0.0201263427734375, 0.0285186767578125, 0.0280303955078125, -0.029998779296875, 0.0295257568359375, -0.014434814453125, -0.01406097412109375, -0.009979248046875, -0.035888671875, 0.006526947021484375, -0.003253936767578125, 0.0247955322265625, 0.00977325439453125, -0.01898193359375, -0.00342559814453125, -0.006511688232421875, 0.0128631591796875, -0.0103302001953125, 0.053863525390625, 0.0153045654296875, -0.0032958984375, 0.03814697265625, -0.05230712890625, 0.0185089111328125, -0.0121002197265625, 0.007534027099609375, 0.0037708282470703125, -0.0282135009765625, -0.00571441650390625, -0.0012178421020507812, 0.013702392578125, 0.0034618377685546875, 0.04315185546875, -0.0007128715515136719, 0.015960693359375, 0.0222625732421875, 0.004772186279296875, 0.00344085693359375, 0.0215301513671875, -0.013763427734375, -0.0018444061279296875, 0.0207061767578125, -0.0138397216796875, -0.07696533203125, 0.00984954833984375, 0.024261474609375, -0.016326904296875, 0.0267181396484375, -0.006389617919921875, 0.01004791259765625, -0.01531982421875, -0.027557373046875, -0.06365966796875, -0.055419921875, -0.02587890625, 0.004547119140625, -0.0178680419921875, -0.035980224609375, -0.00850677490234375, -0.0158538818359375, 0.037811279296875, -0.027069091796875, 0.036895751953125, 0.01270294189453125, 0.04595947265625, 0.0303192138671875, 0.0261993408203125, -0.017364501953125, 0.02081298828125, -0.0260162353515625, 0.006923675537109375, 0.01450347900390625, 0.01287078857421875, -0.0084075927734375, -0.0035152435302734375, 0.030181884765625, 0.0218505859375, 0.04241943359375, -0.0150299072265625, 0.0161285400390625, 0.0303497314453125, -0.004444122314453125, -0.00989532470703125, 0.0198974609375, 0.00002002716064453125, -0.00763702392578125, -0.0146026611328125, 0.0209808349609375, 0.01369476318359375, 0.0089263916015625, 0.00928497314453125, 0.038299560546875, 0.0158233642578125, 0.0276031494140625, -0.07373046875, 0.05517578125, -0.017059326171875, 0.05645751953125, 0.01280975341796875, 0.02923583984375, -0.05609130859375, -0.04388427734375, -0.0087432861328125, -0.06390380859375, -0.064697265625, 0.11962890625, -0.0260162353515625, -0.0017251968383789062, 0.011810302734375, 0.0075531005859375, 0.05352783203125, -0.00041937828063964844, 0.0038738250732421875, 0.054962158203125, -0.024169921875, 0.00020599365234375, 0.035797119140625, 0.0011005401611328125, -0.0237579345703125, -0.0726318359375, -0.0195770263671875, -0.0447998046875, 0.0031871795654296875, 0.01885986328125, -0.018280029296875, -0.0118560791015625, -0.0301055908203125, -0.0687255859375, 0.0287017822265625, 0.0032749176025390625, -0.046295166015625, -0.039886474609375, -0.00470733642578125, 0.0010929107666015625, 0.0019855499267578125, -0.01215362548828125, -0.01425933837890625, -0.021026611328125, 0.00983428955078125, -0.00036263465881347656, 0.07720947265625, 0.0012559890747070312, 0.0208892822265625, 0.0218658447265625, 0.034149169921875, 0.0025177001953125, 0.0033664703369140625, -0.01666259765625, -0.0031147003173828125, 0.03192138671875, 0.02899169921875, -0.01160430908203125, 0.037384033203125, 0.022003173828125, -0.0197601318359375, 0.0125579833984375, -0.00665283203125, -0.05621337890625, -0.0175323486328125, 0.04315185546875, 0.082275390625, 0.030364990234375, -0.0258636474609375, 0.01479339599609375, 0.03265380859375, -0.018890380859375, 0.004871368408203125, 0.01751708984375, -0.032745361328125, -0.0118865966796875, 0.0056915283203125, -0.025177001953125, 0.010467529296875, -0.053741455078125, -0.049652099609375, 0.0059661865234375, -0.01421356201171875, 0.0163421630859375, 0.003993988037109375, 0.0156707763671875, 0.0239410400390625, -0.00914764404296875, 0.056488037109375, -0.006229400634765625, 0.00021660327911376953, 0.065185546875, 0.04376220703125, 0.016387939453125, -0.006893157958984375, -0.01131439208984375, 0.032684326171875, 0.004177093505859375, -0.0005602836608886719, -0.017364501953125, -0.03472900390625, -0.008880615234375, -0.001628875732421875, 0.0104522705078125, -0.024322509765625, -0.0248260498046875, 0.0207977294921875, -0.0250396728515625, 0.0682373046875, -0.0247344970703125, -0.017913818359375, -0.03076171875, 0.0146636962890625, -0.0112762451171875, 0.01230621337890625, 0.027984619140625, -0.0008635520935058594, -0.005008697509765625, -0.0162811279296875, -0.0262298583984375, -0.07861328125, 0.03192138671875, -0.038421630859375, 0.0032062530517578125, 0.0321044921875 ]
37fba38149a3d73965d5052354dec6fb967c8887
Wordpress Stackexchange Q: Woocommerce price including tax with formatting from options Af first, I'm not a programmer. In Woocommerce I need to display both product prices, including tax and excluding tax. Code in price.php <?php if ( $price_html = $product->get_price_html() ) : ?> is showing default price we entered as product price (this price is excluding tax). I have a problem with displaying price including tax - I'm using this code I found at stackoverflow: <?php echo $product->get_price_including_tax(); ?> But the price this code is showing is without formatting and currency I set in Woocommerce settings. Can you help me with this? How to display price_including_tax with proper formatting and currency? I will use this code in some woocommerce template pages, I'd like to avoid editing functions or classes if possible. A: Try: <?php echo woocommerce_price($product->get_price_including_tax()); ?>
Q: Woocommerce price including tax with formatting from options Af first, I'm not a programmer. In Woocommerce I need to display both product prices, including tax and excluding tax. Code in price.php <?php if ( $price_html = $product->get_price_html() ) : ?> is showing default price we entered as product price (this price is excluding tax). I have a problem with displaying price including tax - I'm using this code I found at stackoverflow: <?php echo $product->get_price_including_tax(); ?> But the price this code is showing is without formatting and currency I set in Woocommerce settings. Can you help me with this? How to display price_including_tax with proper formatting and currency? I will use this code in some woocommerce template pages, I'd like to avoid editing functions or classes if possible. A: Try: <?php echo woocommerce_price($product->get_price_including_tax()); ?> A: woocommerce_price() is deprecated since version 3.0. You can use wc_price() instead : <?php echo wc_price($product->get_price_including_tax()); ?>
wordpress
{ "language": "en", "length": 152, "provenance": "stackexchange_00019.jsonl.gz:431470", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/96410" }
[ 0.031341552734375, 0.0099639892578125, -0.0027217864990234375, -0.01274871826171875, 0.002948760986328125, -0.01739501953125, 0.039215087890625, -0.029815673828125, 0.0012140274047851562, 0.017181396484375, -0.02313232421875, -0.0236663818359375, -0.01543426513671875, -0.0200958251953125, 0.0011892318725585938, -0.0305023193359375, 0.032867431640625, -0.0021190643310546875, 0.022430419921875, -0.0107879638671875, -0.02557373046875, 0.01076507568359375, 0.037200927734375, 0.064697265625, 0.025665283203125, -0.05047607421875, 0.1258544921875, -0.022216796875, 0.055572509765625, -0.006656646728515625, 0.042724609375, -0.0546875, -0.0032520294189453125, 0.0296478271484375, -0.0013723373413085938, 0.05291748046875, -0.007175445556640625, 0.0338134765625, 0.04632568359375, -0.014068603515625, 0.0266265869140625, 0.0030765533447265625, -0.022216796875, -0.00569915771484375, -0.0487060546875, -0.03045654296875, -0.01390838623046875, -0.0028514862060546875, 0.027618408203125, 0.0137939453125, -0.0014009475708007812, 0.00826263427734375, 0.000046193599700927734, 0.016448974609375, -0.01030731201171875, -0.003376007080078125, 0.0160064697265625, -0.0059661865234375, 0.0214385986328125, -0.0192413330078125, -0.03369140625, 0.0014886856079101562, 0.01165771484375, -0.0287322998046875, 0.0134429931640625, 0.01751708984375, 0.035797119140625, 0.0125274658203125, -0.03778076171875, 0.0176544189453125, 0.034088134765625, -0.05291748046875, 0.01398468017578125, 0.0138092041015625, -0.023590087890625, -0.059234619140625, 0.0007534027099609375, -0.0543212890625, 0.032012939453125, 0.01322174072265625, 0.042144775390625, -0.00437164306640625, -0.03277587890625, -0.061553955078125, 0.06304931640625, -0.032684326171875, 0.01611328125, -0.00777435302734375, -0.04669189453125, -0.0411376953125, -0.031494140625, -0.022186279296875, -0.0745849609375, -0.002368927001953125, -0.0087127685546875, -0.0188751220703125, -0.018280029296875, 0.02069091796875, -0.01390838623046875, -0.01180267333984375, 0.004486083984375, -0.03363037109375, 0.009521484375, -0.0307769775390625, 0.00624847412109375, 0.0245361328125, -0.01042938232421875, 0.038909912109375, 0.05426025390625, 0.03179931640625, 0.0176544189453125, 0.00847625732421875, -0.0260467529296875, -0.067626953125, 0.009246826171875, 0.033294677734375, -0.03448486328125, 0.0211029052734375, 0.018463134765625, -0.030670166015625, 0.044036865234375, 0.083251953125, 0.02081298828125, -0.06475830078125, -0.043670654296875, -0.016082763671875, -0.02294921875, -0.09466552734375, -0.033538818359375, 0.00997161865234375, -0.019134521484375, -0.00353240966796875, 0.04986572265625, 0.04742431640625, 0.0033588409423828125, -0.0236663818359375, 0.031494140625, 0.0181427001953125, -0.018310546875, 0.01473236083984375, -0.00582122802734375, -0.005016326904296875, 0.0008068084716796875, -0.0286712646484375, 0.01507568359375, 0.02496337890625, 0.01433563232421875, 0.0007672309875488281, 0.0008392333984375, -0.0159149169921875, 0.0109405517578125, 0.00400543212890625, 0.02545166015625, 0.00201416015625, -0.0228729248046875, 0.026092529296875, 0.00209808349609375, 0.00998687744140625, -0.050018310546875, -0.007129669189453125, -0.025146484375, -0.045928955078125, -0.0131683349609375, -0.0645751953125, -0.0885009765625, 0.049224853515625, -0.028167724609375, -0.0260162353515625, 0.0175933837890625, 0.0037326812744140625, 0.00977325439453125, 0.001735687255859375, 0.00983428955078125, 0.00016832351684570312, -0.0012531280517578125, 0.0061187744140625, -0.0211944580078125, 0.005859375, 0.043365478515625, -0.00005626678466796875, -0.01190948486328125, -0.031402587890625, 0.06097412109375, -0.010650634765625, -0.036468505859375, -0.0030517578125, 0.0184326171875, 0.00830841064453125, -0.01393890380859375, 0.007022857666015625, 0.046173095703125, 0.036102294921875, -0.0328369140625, 0.023284912109375, 0.00061798095703125, -0.0228118896484375, -0.024566650390625, -0.0174713134765625, -0.018402099609375, 0.0028285980224609375, -0.0247955322265625, -0.00994110107421875, -0.0116424560546875, 0.0150146484375, -0.019195556640625, -0.0114288330078125, -0.0025157928466796875, 0.0186309814453125, -0.1146240234375, 0.0013570785522460938, 0.06365966796875, -0.0145263671875, -0.056732177734375, 0.027191162109375, 0.047821044921875, -0.0223236083984375, -0.0254974365234375, 0.09393310546875, 0.02459716796875, 0.06390380859375, 0.04949951171875, -0.047576904296875, 0.07525634765625, 0.007099151611328125, 0.0124969482421875, 0.017303466796875, -0.0173492431640625, -0.005260467529296875, 0.036407470703125, 0.032806396484375, -0.0110015869140625, -0.024810791015625, 0.0085906982421875, -0.020843505859375, -0.06451416015625, -0.00804901123046875, -0.024749755859375, -0.05194091796875, -0.0060882568359375, 0.07373046875, 0.03314208984375, 0.0201263427734375, 0.00623321533203125, 0.01143646240234375, 0.10015869140625, -0.00856781005859375, -0.0157318115234375, 0.0024261474609375, -0.00396728515625, 0.0467529296875, 0.0023193359375, -0.015625, -0.00424957275390625, -0.0660400390625, -0.026214599609375, 0.018798828125, -0.0474853515625, 0.01236724853515625, -0.00689697265625, 0.009979248046875, -0.0214691162109375, -0.0212554931640625, 0.049591064453125, -0.05975341796875, 0.00897216796875, -0.00450897216796875, 0.01256561279296875, 0.016448974609375, -0.0295562744140625, -0.0167388916015625, 0.0310821533203125, 0.041351318359375, -0.01041412353515625, 0.0056610107421875, -0.059051513671875, -0.043914794921875, -0.02142333984375, 0.023834228515625, -0.0189056396484375, -0.02874755859375, 0.021514892578125, 0.0380859375, 0.00928497314453125, 0.00007784366607666016, 0.021026611328125, -0.043487548828125, 0.0034008026123046875, 0.0350341796875, -0.0156707763671875, -0.05767822265625, -0.0163421630859375, 0.0186767578125, -0.049468994140625, 0.042266845703125, -0.0097198486328125, -0.03204345703125, -0.00371551513671875, -0.0243377685546875, 0.031402587890625, -0.0325927734375, 0.0158233642578125, 0.04718017578125, -0.00994110107421875, -0.007083892822265625, 0.002361297607421875, -0.0445556640625, 0.0215301513671875, -0.006664276123046875, -0.0299835205078125, 0.017303466796875, -0.083251953125, 0.0129547119140625, -0.002101898193359375, 0.0164031982421875, -0.05792236328125, -0.0670166015625, -0.040496826171875, -0.043426513671875, -0.11309814453125, -0.056304931640625, -0.056060791015625, -0.0511474609375, -0.052581787109375, 0.0135040283203125, -0.0247955322265625, 0.037506103515625, -0.00031828880310058594, -0.001857757568359375, -0.01136016845703125, -0.021026611328125, -0.0204925537109375, -0.051513671875, -0.03472900390625, -0.038299560546875, 0.003814697265625, 0.001285552978515625, 0.00042629241943359375, 0.023193359375, -0.0123291015625, -0.035552978515625, -0.002811431884765625, 0.00998687744140625, 0.000518798828125, 0.002262115478515625, 0.0029239654541015625, -0.042144775390625, 0.027374267578125, -0.01198577880859375, 0.005645751953125, 0.016357421875, 0.0008563995361328125, -0.00958251953125, 0.005016326904296875, -0.0745849609375, 0.011749267578125, 0.0274505615234375, -0.0194091796875, -0.042633056640625, 0.0227813720703125, -0.068359375, -0.03009033203125, -0.015167236328125, -0.049530029296875, 0.04010009765625, 0.019989013671875, -0.0027408599853515625, 0.00867462158203125, 0.0160064697265625, -0.01043701171875, -0.008697509765625, 0.0389404296875, -0.038787841796875, -0.003704071044921875, -0.005344390869140625, -0.027313232421875, -0.025390625, -0.00778961181640625, -0.033447265625, 0.006504058837890625, -0.0174407958984375, 0.0150146484375, -0.00942230224609375, 0.0288848876953125, -0.035247802734375, -0.047454833984375, 0.07568359375, 0.0276947021484375, 0.00047707557678222656, -0.0169677734375, -0.052947998046875, 0.00492095947265625, 0.10009765625, 0.0268402099609375, -0.04132080078125, -0.0205841064453125, -0.0010623931884765625, -0.0198822021484375, -0.0085601806640625, 0.0070953369140625, -0.0193634033203125, -0.034149169921875, 0.0059814453125, -0.01471710205078125, 0.00592803955078125, -0.0045166015625, -0.00720977783203125, -0.0019207000732421875, -0.02716064453125, 0.0290069580078125, -0.01175689697265625, 0.0141143798828125, 0.0005335807800292969, -0.0114898681640625, -0.00982666015625, -0.01617431640625, -0.02081298828125, 0.023773193359375, -0.0113525390625, 0.0174407958984375, -0.005397796630859375, 0.0260772705078125, -0.02740478515625, -0.0033245086669921875, 0.0188751220703125, 0.0018434524536132812, 0.04302978515625, 0.00025391578674316406, 0.028839111328125, -0.01107025146484375, -0.02667236328125, 0.01084136962890625, -0.0361328125, -0.01259613037109375, -0.005077362060546875, -0.005275726318359375, 0.06072998046875, -0.00262451171875, 0.0401611328125, 0.013153076171875, -0.01119232177734375, -0.10516357421875, -0.0027866363525390625, -0.00013744831085205078, -0.0310211181640625, 0.0103759765625, -0.01776123046875, 0.02325439453125, -0.06500244140625, 0.0770263671875, 0.0083465576171875, -0.0191497802734375, 0.0076141357421875, 0.08245849609375, 0.0020294189453125, -0.0322265625, -0.0692138671875, -0.0012798309326171875, 0.030914306640625, 0.0221099853515625, -0.01384735107421875, -0.03125, -0.030548095703125, 0.038665771484375, -0.0017337799072265625, 0.0246429443359375, -0.00994110107421875, 0.044525146484375, -0.0175018310546875, -0.018646240234375, 0.0235443115234375, -0.023193359375, 0.00009351968765258789, 0.0278472900390625, 0.00780487060546875, 0.006343841552734375, 0.0257720947265625, -0.01837158203125, -0.0048828125, -0.01515960693359375, 0.00879669189453125, 0.0032329559326171875, -0.024383544921875, 0.01177215576171875, 0.017578125, 0.050506591796875, 0.0007281303405761719, -0.00418853759765625, 0.00605010986328125, 0.0245819091796875, -0.0096893310546875, 0.02301025390625, -0.0445556640625, 0.049652099609375, -0.03131103515625, -0.0092315673828125, -0.00640869140625, 0.0006079673767089844, -0.0233001708984375, -0.00299835205078125, -0.0305633544921875, -0.02569580078125, 0.00540924072265625, 0.0011310577392578125, 0.0157928466796875, 0.01158905029296875, 0.0288848876953125, 0.051116943359375, 0.0107269287109375, 0.0017023086547851562, -0.0146636962890625, 0.04296875, -0.031402587890625, 0.01273345947265625, 0.0223541259765625, -0.003665924072265625, 0.017242431640625, 0.07763671875, 0.0266571044921875, 0.049072265625, -0.01303863525390625, -0.007808685302734375, -0.017608642578125, 0.055816650390625, 0.03228759765625, -0.0640869140625, -0.0085906982421875, 0.039642333984375, 0.0027179718017578125, -0.00707244873046875, -0.018310546875, 0.01480865478515625, 0.0225067138671875, -0.058258056640625, -0.030853271484375, 0.030242919921875, -0.0139617919921875, -0.0115509033203125, -0.01419830322265625, 0.00528717041015625, -0.0021953582763671875, 0.0096893310546875, 0.0408935546875, 0.004711151123046875, 0.0189361572265625, -0.0116119384765625, 0.0230560302734375, -0.028350830078125, 0.013885498046875, -0.020782470703125, 0.007732391357421875, -0.01169586181640625, -0.0101318359375, 0.0576171875, -0.0177764892578125, -0.02069091796875, -0.043487548828125, -0.0118560791015625, -0.033172607421875, 0.0299072265625, 0.0634765625, -0.045562744140625, 0.038909912109375, -0.018310546875, -0.0213470458984375, -0.027862548828125, 0.0248260498046875, 0.045623779296875, 0.06280517578125, -0.02996826171875, 0.00902557373046875, -0.0771484375, -0.039642333984375, -0.0200653076171875, -0.01343536376953125, -0.0286407470703125, -0.004802703857421875, 0.019287109375, 0.011199951171875, -0.031646728515625, -0.0618896484375, -0.040985107421875, 0.032196044921875, 0.052825927734375, 0.05322265625, 0.003978729248046875, 0.04534912109375, -0.00936126708984375, 0.023895263671875, 0.00658416748046875, 0.0033111572265625, -0.047027587890625, -0.005390167236328125, 0.0277862548828125, -0.036102294921875, -0.0430908203125, -0.02008056640625, -0.01062774658203125, 0.018890380859375, -0.00754547119140625, -0.01523590087890625, -0.0136566162109375, -0.006572723388671875, -0.0006775856018066406, -0.0367431640625, 0.0244903564453125, 0.01071929931640625, 0.00014019012451171875, -0.0216827392578125, 0.00392913818359375, 0.02313232421875, -0.006622314453125, -0.0222320556640625, 0.0080718994140625, 0.00746917724609375, 0.0261383056640625, -0.012664794921875, -0.01284027099609375, 0.037811279296875, 0.0227813720703125, 0.006195068359375, 0.039825439453125, 0.004810333251953125, 0.0275421142578125, -0.0004069805145263672, 0.00159454345703125, 0.023101806640625, -0.01053619384765625, 0.004970550537109375, -0.01617431640625, 0.006855010986328125, -0.0011587142944335938, -0.0024852752685546875, 0.054412841796875, 0.079833984375, 0.107177734375, -0.1256103515625, 0.01763916015625, 0.050445556640625, -0.02276611328125, 0.011627197265625, 0.01873779296875, -0.01305389404296875, -0.03680419921875, -0.006587982177734375, -0.007411956787109375, -0.01346588134765625, 0.001895904541015625, -0.0034809112548828125, -0.0137176513671875, 0.0184173583984375, 0.03955078125, 0.0146942138671875, -0.09503173828125, 0.014984130859375, 0.053985595703125, -0.03216552734375, -0.011016845703125, 0.0137176513671875, -0.0201263427734375, -0.01027679443359375, -0.053436279296875, -0.0183563232421875, -0.0177154541015625, -0.022247314453125, 0.025543212890625, -0.0017557144165039062, -0.015167236328125, 0.0406494140625, -0.00934600830078125, 0.0005946159362792969, 0.0082244873046875, -0.044952392578125, 0.02728271484375, 0.004985809326171875, 0.00534820556640625, 0.03436279296875, -0.07220458984375, -0.014556884765625, -0.057525634765625, 0.04998779296875, 0.005535125732421875, 0.02398681640625, 0.019195556640625, 0.0261077880859375, -0.040618896484375, 0.0254364013671875, 0.033843994140625, 0.00740814208984375, -0.0258026123046875, 0.00809478759765625, -0.006259918212890625, 0.0452880859375, -0.01885986328125, 0.032806396484375, -0.005924224853515625, -0.042510986328125, -0.05645751953125, 0.049652099609375, -0.0260162353515625, 0.036468505859375, 0.006404876708984375, 0.00461578369140625, 0.01690673828125, -0.005313873291015625, -0.0199432373046875, 0.04644775390625, 0.029937744140625, -0.002777099609375, -0.0152435302734375, -0.007564544677734375, -0.0147857666015625, 0.032928466796875, 0.024871826171875, 0.003032684326171875, -0.0157928466796875, 0.0322265625, 0.08160400390625, 0.022796630859375, -0.009857177734375, 0.02386474609375, 0.03460693359375, -0.02093505859375, 0.048309326171875, 0.0011377334594726562, 0.0250244140625, -0.03143310546875, 0.037506103515625, 0.05999755859375, -0.003070831298828125, -0.01180267333984375, 0.0013332366943359375, 0.001735687255859375, 0.026031494140625, -0.008026123046875, -0.0213775634765625, -0.045928955078125, 0.0158843994140625, 0.00666046142578125, 0.0059051513671875, -0.019866943359375, 0.0039520263671875, -0.0224609375, 0.037872314453125, 0.0103912353515625, -0.01502227783203125, 0.020111083984375, -0.0016078948974609375, 0.00907135009765625, -0.01432037353515625, -0.0142364501953125, -0.004150390625, 0.013214111328125, 0.00536346435546875, 0.00872802734375, 0.01116180419921875, -0.005954742431640625, 0.0484619140625, 0.0235137939453125, -0.004940032958984375, -0.02362060546875, -0.0110321044921875, 0.0146026611328125, -0.0103607177734375, -0.01058197021484375, -0.027740478515625, -0.0140228271484375, -0.01861572265625, -0.01172637939453125, -0.05572509765625, -0.00113677978515625, 0.017822265625, 0.046661376953125, -0.005340576171875, 0.00275421142578125, -0.04364013671875, -0.04248046875, -0.046417236328125, -0.0116424560546875, 0.02593994140625, 0.0867919921875, 0.018707275390625, 0.0672607421875, -0.031402587890625, -0.054168701171875, 0.01517486572265625, 0.00772857666015625, -0.02880859375, -0.0252227783203125, 0.005001068115234375, -0.0119476318359375, -0.05828857421875, 0.0202789306640625, 0.01143646240234375, 0.0191802978515625, 0.038116455078125, 0.021331787109375, -0.01439666748046875, -0.0102386474609375, 0.029266357421875, -0.0238189697265625, -0.0162811279296875, -0.034942626953125, 0.0211181640625, 0.0164031982421875, 0.0223541259765625, 0.0135498046875, 0.027099609375, 0.01508331298828125, -0.0399169921875, 0.052581787109375, -0.017730712890625, -0.005863189697265625, 0.0278472900390625, -0.0130615234375, 0.056671142578125, 0.0013017654418945312, -0.0230712890625, -0.00019466876983642578, -0.02044677734375, 0.0260467529296875, -0.0343017578125, -0.002719879150390625, -0.0218658447265625, 0.079833984375, 0.00022017955780029297, -0.00974273681640625, 0.035186767578125, -0.025299072265625, 0.01678466796875, -0.01593017578125, 0.0003268718719482422, -0.00228118896484375, 0.0231781005859375, 0.003444671630859375, 0.020721435546875, 0.048492431640625, 0.027862548828125, 0.03985595703125, -0.0284271240234375, 0.016448974609375, 0.004535675048828125, 0.027557373046875, -0.0274658203125, -0.0228729248046875, 0.032684326171875, -0.031707763671875, -0.00791168212890625, -0.00846099853515625, 0.015777587890625, 0.004222869873046875, 0.044464111328125, -0.021636962890625, -0.01073455810546875, -0.03289794921875, 0.044464111328125, 0.002780914306640625, 0.08135986328125, -0.0084228515625, -0.064453125, -0.059326171875, 0.01849365234375, 0.00717926025390625, 0.043792724609375, -0.0148468017578125, -0.005889892578125, 0.03619384765625, -0.0113525390625, 0.0264739990234375, 0.0037670135498046875, 0.0626220703125, 0.04083251953125, -0.0178680419921875, 0.0201416015625, 0.01103973388671875, -0.01910400390625, -0.0019073486328125, 0.0057830810546875, -0.00702667236328125, -0.0003573894500732422, -0.054840087890625, -0.029388427734375, 0.0250091552734375, 0.0163116455078125, -0.0261383056640625, 0.00637054443359375, 0.041656494140625, -0.028656005859375, -0.0210723876953125, -0.024017333984375, -0.0279083251953125, -0.01236724853515625, -0.00685882568359375, 0.003963470458984375, 0.003833770751953125, -0.0540771484375, -0.0253753662109375, -0.00933837890625, 0.006832122802734375, -0.0292205810546875, -0.0008635520935058594, -0.0528564453125, -0.012115478515625, 0.0838623046875, -0.0469970703125, -0.039947509765625, 0.0109405517578125, 0.00902557373046875, -0.0008630752563476562, 0.00887298583984375, -0.018951416015625, -0.0211029052734375, 0.005764007568359375, 0.03753662109375, 0.0294342041015625, -0.0478515625, 0.0028362274169921875, 0.027679443359375, 0.04345703125, 0.060638427734375, 0.02484130859375, -0.032135009765625, -0.01256561279296875, 0.017822265625, 0.0006914138793945312, -0.044677734375, 0.00867462158203125, -0.042083740234375, -0.0054473876953125, 0.040008544921875, -0.032440185546875, 0.00034546852111816406, -0.046417236328125, -0.072509765625, 0.06622314453125, 0.0089569091796875, -0.033843994140625, 0.01110076904296875, -0.0009489059448242188, -0.0262451171875, 0.03509521484375, 0.006206512451171875, -0.0152130126953125, -0.0026836395263671875, 0.019287109375, 0.0005545616149902344, -0.0301666259765625, 0.0224456787109375, -0.048858642578125, -0.0303497314453125, 0.00339508056640625, 0.02899169921875, 0.0036716461181640625, 0.00774383544921875, -0.0239715576171875, -0.0037937164306640625, 0.0006127357482910156, -0.0462646484375, -0.0574951171875, -0.012542724609375, 0.0362548828125, 0.0210723876953125, -0.049041748046875, -0.01023101806640625, -0.0574951171875, 0.0291595458984375, -0.0206756591796875, 0.00211334228515625, 0.00762176513671875, 0.0036144256591796875, -0.02099609375, -0.03369140625, -0.0089874267578125, 0.00983428955078125, -0.04425048828125, -0.006595611572265625, -0.01061248779296875, -0.016876220703125, 0.05035400390625, 0.01168060302734375, -0.035308837890625, 0.01045989990234375, -0.0211181640625, -0.0157928466796875, -0.08551025390625, 0.01264190673828125, -0.002841949462890625, -0.0067291259765625, -0.015899658203125, -0.02484130859375, 0.00955963134765625, -0.0041351318359375, -0.01403045654296875, -0.03521728515625, 0.0212249755859375, -0.0281524658203125, 0.01232147216796875, -0.0125732421875, 0.03399658203125, -0.0179595947265625, 0.036376953125, -0.028900146484375, 0.016571044921875, 0.01424407958984375, 0.01122283935546875, -0.0035953521728515625, 0.02874755859375, 0.0281982421875, 0.050506591796875, -0.01120758056640625, 0.11383056640625, 0.0024280548095703125, 0.041290283203125, -0.0079193115234375, -0.005016326904296875, 0.005512237548828125, -0.0088043212890625, 0.0088043212890625, 0.002109527587890625, -0.006435394287109375, -0.0283966064453125, 0.0131378173828125, -0.0096435546875, 0.0011501312255859375, 0.01398468017578125 ]
a70276e8078706d1567997e4dd9ee76bf8dbe166
Wordpress Stackexchange Q: Using MathJax in text I have installed a Mathjax plugin on my local wordpress installation, and the plugin works fine. However, I can't get it to show Latex in-text; it creates an own line for every latex formula. I end up with pages like this (this is an extreme example to get my point across better :)): How can I make it work to show Latex in-text? I've tried multiple plugins and they all seem to have this issue, with no option to resolve this. A: To create an inline formula in LaTeX we can use single dollar signs $: This formula $x=y+z$ is inline. To display math on its own line, we can use double dollar signs $$: $$ a = b + c $$ Here is an example with Simple Mathjax installed: This will be displayed like this:
Q: Using MathJax in text I have installed a Mathjax plugin on my local wordpress installation, and the plugin works fine. However, I can't get it to show Latex in-text; it creates an own line for every latex formula. I end up with pages like this (this is an extreme example to get my point across better :)): How can I make it work to show Latex in-text? I've tried multiple plugins and they all seem to have this issue, with no option to resolve this. A: To create an inline formula in LaTeX we can use single dollar signs $: This formula $x=y+z$ is inline. To display math on its own line, we can use double dollar signs $$: $$ a = b + c $$ Here is an example with Simple Mathjax installed: This will be displayed like this:
wordpress
{ "language": "en", "length": 141, "provenance": "stackexchange_00019.jsonl.gz:431498", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/96500" }
[ 0.0013065338134765625, 0.01157379150390625, -0.032623291015625, -0.0139312744140625, 0.006290435791015625, -0.0221099853515625, 0.01580810546875, 0.01160430908203125, -0.0433349609375, 0.0262908935546875, -0.027587890625, 0.0504150390625, -0.032440185546875, 0.004749298095703125, 0.0297088623046875, -0.027984619140625, 0.045135498046875, -0.027252197265625, 0.006168365478515625, -0.007579803466796875, -0.0196380615234375, 0.01285552978515625, 0.032928466796875, 0.054718017578125, 0.0243682861328125, 0.01465606689453125, 0.11669921875, -0.04547119140625, 0.03564453125, -0.031219482421875, 0.021270751953125, -0.04376220703125, 0.01474761962890625, 0.041656494140625, -0.032501220703125, 0.0246734619140625, -0.04022216796875, 0.04058837890625, 0.017486572265625, -0.002513885498046875, 0.043182373046875, -0.007183074951171875, -0.051910400390625, 0.039886474609375, -0.053955078125, -0.050201416015625, 0.045440673828125, -0.004901885986328125, 0.00969696044921875, 0.0124359130859375, 0.00911712646484375, 0.02978515625, 0.0171966552734375, 0.056915283203125, 0.004566192626953125, 0.03851318359375, -0.0163116455078125, -0.0115814208984375, 0.006252288818359375, 0.048126220703125, 0.0290679931640625, 0.0192108154296875, -0.016021728515625, -0.0167999267578125, 0.03070068359375, -0.03546142578125, -0.0665283203125, 0.030426025390625, 0.00444793701171875, 0.0306854248046875, 0.01375579833984375, -0.036102294921875, 0.038909912109375, -0.0374755859375, 0.006435394287109375, 0.006015777587890625, -0.00736236572265625, -0.00527191162109375, 0.00826263427734375, -0.0242156982421875, 0.071044921875, -0.0255279541015625, -0.00879669189453125, 0.019073486328125, 0.01502227783203125, 0.0322265625, 0.0226593017578125, -0.034149169921875, -0.0241851806640625, -0.051422119140625, -0.021240234375, -0.051513671875, -0.07366943359375, 0.0174102783203125, 0.016754150390625, -0.058868408203125, -0.037445068359375, -0.0297698974609375, 0.0007529258728027344, 0.0310211181640625, 0.01727294921875, -0.05010986328125, 0.06573486328125, -0.0161590576171875, -0.0271148681640625, 0.014190673828125, 0.0118865966796875, 0.0151214599609375, 0.007396697998046875, 0.02783203125, -0.0117034912109375, -0.046966552734375, 0.00855255126953125, -0.02313232421875, 0.01016998291015625, 0.0171966552734375, -0.016876220703125, 0.055999755859375, 0.0052490234375, 0.0121002197265625, 0.006443023681640625, 0.0528564453125, -0.01416778564453125, 0.005512237548828125, -0.01507568359375, 0.00614166259765625, 0.033538818359375, -0.056549072265625, 0.0004165172576904297, -0.017669677734375, -0.016632080078125, 0.024871826171875, 0.031646728515625, 0.056610107421875, -0.0008444786071777344, 0.019775390625, 0.054473876953125, 0.02642822265625, -0.02032470703125, 0.0029754638671875, -0.02801513671875, 0.0091705322265625, 0.0197296142578125, -0.06182861328125, -0.0506591796875, 0.04083251953125, 0.0206146240234375, -0.00020432472229003906, -0.020050048828125, -0.10302734375, 0.00054931640625, -0.043426513671875, 0.045806884765625, -0.0013179779052734375, -0.0609130859375, -0.00827789306640625, -0.007259368896484375, -0.00991058349609375, -0.0279693603515625, -0.02801513671875, 0.0015306472778320312, -0.005970001220703125, 0.004268646240234375, -0.03564453125, -0.038665771484375, -0.003063201904296875, -0.0162353515625, 0.0080413818359375, 0.0263519287109375, -0.039886474609375, -0.0161590576171875, 0.00801849365234375, 0.031463623046875, -0.0004031658172607422, -0.0027256011962890625, 0.0165557861328125, -0.048126220703125, 0.01523590087890625, 0.0224609375, 0.0625, 0.037445068359375, -0.0182952880859375, 0.0097808837890625, 0.043853759765625, 0.0258331298828125, -0.060394287109375, 0.02117919921875, -0.0180511474609375, 0.00783538818359375, 0.0268707275390625, -0.011993408203125, 0.016510009765625, -0.02691650390625, 0.0275421142578125, -0.024169921875, -0.0237884521484375, -0.009674072265625, 0.004741668701171875, -0.0187225341796875, -0.006008148193359375, -0.015655517578125, 0.0176239013671875, -0.01464080810546875, 0.0025615692138671875, -0.06475830078125, 0.030181884765625, -0.0254669189453125, 0.04962158203125, -0.006603240966796875, 0.0061187744140625, 0.00122833251953125, -0.0151824951171875, -0.006256103515625, -0.019287109375, -0.021575927734375, -0.016357421875, 0.00478363037109375, 0.0273895263671875, 0.033294677734375, 0.0037631988525390625, 0.0787353515625, -0.003253936767578125, 0.056884765625, 0.0216217041015625, -0.052154541015625, -0.0369873046875, -0.028411865234375, -0.003910064697265625, -0.07733154296875, -0.032958984375, 0.030517578125, 0.06842041015625, 0.0545654296875, 0.08868408203125, -0.01427459716796875, 0.0202484130859375, 0.021636962890625, 0.0129241943359375, -0.0089111328125, 0.0035190582275390625, 0.024932861328125, 0.0189666748046875, -0.009552001953125, -0.01236724853515625, 0.03289794921875, 0.0184173583984375, 0.041900634765625, -0.034576416015625, -0.019073486328125, 0.004306793212890625, -0.03143310546875, -0.0204315185546875, 0.0280303955078125, -0.066162109375, -0.003513336181640625, 0.04559326171875, 0.031280517578125, 0.034332275390625, -0.03314208984375, 0.021942138671875, 0.005664825439453125, 0.0738525390625, 0.007274627685546875, 0.01434326171875, 0.0290985107421875, -0.056915283203125, 0.024932861328125, 0.0186309814453125, 0.0154876708984375, -0.047576904296875, 0.0006709098815917969, -0.00856781005859375, -0.01251220703125, -0.0211639404296875, -0.03717041015625, -0.01116943359375, -0.0255584716796875, 0.021636962890625, -0.0053558349609375, -0.032806396484375, 0.002170562744140625, -0.05096435546875, 0.033538818359375, 0.006107330322265625, 0.045196533203125, 0.00585174560546875, 0.06707763671875, 0.00850677490234375, -0.00978851318359375, 0.01456451416015625, 0.024627685546875, 0.04400634765625, -0.0163421630859375, 0.033050537109375, -0.00833892822265625, 0.010101318359375, 0.03802490234375, -0.04132080078125, 0.0517578125, -0.034149169921875, 0.0455322265625, 0.058502197265625, -0.038360595703125, 0.0187530517578125, -0.003116607666015625, 0.03485107421875, -0.0002770423889160156, 0.016387939453125, 0.0086517333984375, -0.01511383056640625, -0.045440673828125, -0.035430908203125, 0.006587982177734375, 0.0170745849609375, -0.0167388916015625, -0.0560302734375, -0.031158447265625, -0.00434112548828125, -0.130859375, -0.11572265625, 0.049163818359375, -0.085693359375, -0.0139923095703125, 0.01502227783203125, -0.06500244140625, -0.0182037353515625, 0.0980224609375, -0.0157318115234375, 0.00782012939453125, -0.056427001953125, -0.08087158203125, -0.07904052734375, -0.0999755859375, 0.0185699462890625, 0.0026721954345703125, 0.024993896484375, 0.0135040283203125, -0.0169677734375, -0.0119171142578125, -0.05377197265625, -0.01629638671875, 0.008056640625, -0.0184326171875, -0.0008459091186523438, 0.0390625, -0.052520751953125, -0.01477813720703125, 0.00606536865234375, 0.03662109375, 0.021514892578125, -0.0291595458984375, 0.003734588623046875, -0.0058441162109375, 0.005245208740234375, 0.0159759521484375, 0.001232147216796875, 0.0026702880859375, 0.0177764892578125, 0.01323699951171875, -0.037200927734375, -0.0268096923828125, 0.0216522216796875, -0.0088958740234375, 0.0229644775390625, -0.0245819091796875, -0.0146331787109375, -0.0202789306640625, 0.07958984375, -0.01270294189453125, -0.009979248046875, 0.0268707275390625, -0.05572509765625, 0.03375244140625, 0.007755279541015625, 0.0156707763671875, -0.01456451416015625, -0.00836944580078125, -0.02703857421875, 0.03668212890625, -0.01538848876953125, 0.0180206298828125, -0.0152740478515625, 0.0183258056640625, -0.01971435546875, 0.0213470458984375, -0.01361846923828125, -0.032470703125, 0.0171966552734375, 0.01374053955078125, 0.008880615234375, -0.0160064697265625, 0.025115966796875, 0.03460693359375, -0.02740478515625, 0.0114898681640625, 0.0152435302734375, -0.05487060546875, -0.0014600753784179688, -0.017669677734375, 0.0027332305908203125, 0.0032444000244140625, 0.047454833984375, 0.020416259765625, 0.01166534423828125, -0.0382080078125, 0.03594970703125, -0.0218353271484375, -0.00728607177734375, 0.0304107666015625, -0.04693603515625, 0.00379180908203125, 0.0467529296875, -0.006053924560546875, 0.01328277587890625, -0.030181884765625, -0.030792236328125, -0.051177978515625, -0.0220794677734375, -0.01441192626953125, 0.08233642578125, 0.032623291015625, -0.029632568359375, -0.01094818115234375, 0.0518798828125, -0.0190582275390625, 0.01446533203125, 0.00820159912109375, 0.033538818359375, -0.022674560546875, 0.009857177734375, 0.00452423095703125, -0.04669189453125, 0.0018310546875, 0.0250244140625, 0.005855560302734375, 0.0816650390625, -0.0340576171875, -0.0091552734375, -0.0023326873779296875, -0.018707275390625, 0.0085296630859375, -0.0172882080078125, -0.03961181640625, 0.0266571044921875, -0.042388916015625, 0.007190704345703125, -0.0162200927734375, -0.004482269287109375, 0.0030879974365234375, -0.0450439453125, 0.01348876953125, 0.024322509765625, 0.0016012191772460938, 0.006908416748046875, 0.01617431640625, -0.0226898193359375, 0.0173187255859375, 0.03326416015625, -0.0132293701171875, 0.01800537109375, -0.01548004150390625, -0.0289306640625, 0.07550048828125, 0.0037136077880859375, 0.046722412109375, -0.044677734375, 0.0491943359375, 0.0010499954223632812, 0.0022525787353515625, 0.01898193359375, 0.0296173095703125, -0.0194091796875, 0.042694091796875, 0.01090240478515625, 0.011322021484375, 0.021453857421875, -0.0093994140625, -0.02239990234375, 0.004024505615234375, 0.0211029052734375, -0.02935791015625, 0.01953125, 0.01322174072265625, 0.01468658447265625, 0.03350830078125, -0.01561737060546875, 0.00539398193359375, -0.024566650390625, -0.0168304443359375, 0.049957275390625, 0.006145477294921875, 0.006237030029296875, -0.0296478271484375, 0.09588623046875, -0.04547119140625, 0.0012798309326171875, -0.0261383056640625, 0.08160400390625, 0.00760650634765625, -0.03265380859375, -0.0149078369140625, -0.023895263671875, 0.06463623046875, -0.005950927734375, 0.0384521484375, -0.0184326171875, 0.01209259033203125, 0.00739288330078125, 0.0143890380859375, 0.057159423828125, 0.0025043487548828125, -0.00821685791015625, -0.01187896728515625, -0.0107574462890625, -0.01413726806640625, -0.0248565673828125, 0.0845947265625, -0.0377197265625, 0.030731201171875, -0.00606536865234375, 0.0030879974365234375, -0.0241241455078125, 0.030242919921875, -0.0019893646240234375, 0.0019817352294921875, 0.01280975341796875, 0.00273895263671875, 0.0224761962890625, -0.030364990234375, -0.006961822509765625, 0.0191192626953125, 0.00852203369140625, 0.004962921142578125, -0.004230499267578125, 0.0152587890625, -0.004962921142578125, -0.0234375, -0.0338134765625, -0.0008358955383300781, 0.05267333984375, -0.01617431640625, -0.051666259765625, -0.005680084228515625, 0.07159423828125, 0.00766754150390625, 0.00804901123046875, 0.007076263427734375, 0.04180908203125, -0.023406982421875, 0.01629638671875, -0.005268096923828125, -0.01483917236328125, 0.018280029296875, -0.00888824462890625, -0.058837890625, -0.04638671875, -0.0408935546875, -0.00051116943359375, 0.03363037109375, 0.031829833984375, -0.00921630859375, 0.016448974609375, -0.0083465576171875, -0.0128326416015625, -0.03924560546875, 0.01033782958984375, 0.050323486328125, 0.01548004150390625, -0.033905029296875, 0.0006780624389648438, -0.01520538330078125, -0.02032470703125, 0.0279388427734375, 0.00308990478515625, -0.041595458984375, -0.0245208740234375, 0.051025390625, 0.04510498046875, -0.024200439453125, -0.0806884765625, -0.02593994140625, 0.00431060791015625, 0.048919677734375, 0.085693359375, -0.0080108642578125, 0.0016756057739257812, 0.0170745849609375, 0.02789306640625, 0.0009660720825195312, -0.003635406494140625, -0.01020050048828125, -0.02716064453125, 0.009857177734375, -0.031585693359375, -0.01114654541015625, 0.0004930496215820312, 0.0208587646484375, -0.0203094482421875, -0.027587890625, 0.0031375885009765625, 0.0220947265625, 0.03143310546875, 0.0157470703125, -0.0013332366943359375, -0.00913238525390625, 0.027008056640625, 0.0013494491577148438, 0.047149658203125, -0.034027099609375, 0.0009284019470214844, -0.028411865234375, -0.00420379638671875, 0.043243408203125, -0.0282440185546875, 0.006717681884765625, 0.039337158203125, -0.006969451904296875, 0.012481689453125, 0.006805419921875, 0.0015077590942382812, 0.0174407958984375, 0.0262298583984375, 0.021240234375, -0.0189971923828125, -0.034881591796875, 0.021514892578125, 0.04443359375, 0.018829345703125, -0.032989501953125, -0.004085540771484375, -0.0162200927734375, -0.01477813720703125, -0.0137481689453125, 0.029296875, 0.00968170166015625, -0.05926513671875, -0.0014171600341796875, -0.03021240234375, -0.00829315185546875, 0.03717041015625, 0.00208282470703125, 0.0163421630859375, 0.0261077880859375, 0.0130157470703125, 0.036376953125, -0.011688232421875, 0.0237579345703125, 0.0172882080078125, -0.003353118896484375, -0.025482177734375, 0.0254364013671875, 0.00679779052734375, -0.035430908203125, 0.015777587890625, 0.01776123046875, 0.00902557373046875, -0.034454345703125, -0.039520263671875, 0.036163330078125, -0.0264434814453125, -0.060394287109375, 0.035491943359375, -0.0433349609375, 0.039306640625, -0.00931549072265625, 0.0223541259765625, 0.0081634521484375, 0.06097412109375, -0.033721923828125, 0.02362060546875, 0.02783203125, -0.0214691162109375, 0.0499267578125, -0.01471710205078125, -0.00873565673828125, 0.026275634765625, -0.06756591796875, -0.00006407499313354492, -0.024993896484375, 0.042755126953125, -0.014739990234375, 0.0295867919921875, 0.0322265625, 0.0311126708984375, -0.045928955078125, 0.034423828125, 0.016021728515625, -0.006595611572265625, -0.0282745361328125, -0.009765625, -0.0077362060546875, 0.046173095703125, -0.027923583984375, 0.0229644775390625, 0.034820556640625, -0.01812744140625, -0.035003662109375, 0.050048828125, 0.033966064453125, -0.0226898193359375, -0.03277587890625, 0.03607177734375, 0.0122528076171875, 0.042938232421875, 0.00775909423828125, 0.0240936279296875, -0.0167999267578125, 0.00914764404296875, -0.0062103271484375, -0.01513671875, 0.0290679931640625, 0.05572509765625, -0.01052093505859375, -0.0134124755859375, -0.0071563720703125, -0.0249786376953125, 0.0229339599609375, 0.05010986328125, 0.0340576171875, -0.0054779052734375, 0.0012598037719726562, -0.034393310546875, 0.0298004150390625, 0.02374267578125, 0.028900146484375, 0.0009655952453613281, -0.0182037353515625, 0.0151214599609375, 0.0268707275390625, 0.03704833984375, -0.0014085769653320312, -0.0006785392761230469, -0.001934051513671875, 0.006626129150390625, 0.017974853515625, -0.0205078125, 0.01454925537109375, 0.03765869140625, -0.0034618377685546875, -0.018157958984375, 0.01013946533203125, -0.02374267578125, 0.0266876220703125, -0.031005859375, -0.005382537841796875, -0.0166778564453125, -0.00676727294921875, 0.01220703125, -0.02618408203125, -0.011260986328125, 0.027679443359375, -0.00027871131896972656, -0.0504150390625, 0.01629638671875, 0.00896453857421875, -0.0007715225219726562, -0.01702880859375, 0.047882080078125, -0.015625, 0.015380859375, -0.0322265625, 0.007251739501953125, 0.0074005126953125, 0.00983428955078125, -0.017547607421875, -0.0019588470458984375, 0.0218963623046875, 0.06884765625, -0.004913330078125, -0.0197296142578125, -0.00041222572326660156, 0.01070404052734375, -0.0133514404296875, -0.03399658203125, 0.01318359375, -0.0116424560546875, -0.07659912109375, 0.0343017578125, 0.01532745361328125, 0.0576171875, 0.036346435546875, 0.034423828125, -0.00112152099609375, -0.034027099609375, -0.043853759765625, 0.032257080078125, 0.0024166107177734375, 0.042877197265625, -0.0214080810546875, 0.0028247833251953125, -0.0016031265258789062, 0.02471923828125, -0.0004105567932128906, 0.00754547119140625, 0.017730712890625, 0.0030231475830078125, -0.0251007080078125, -0.00553131103515625, 0.0243682861328125, -0.0165863037109375, -0.0160675048828125, -0.0154266357421875, 0.00464630126953125, -0.008636474609375, -0.007022857666015625, 0.003047943115234375, 0.053741455078125, -0.010162353515625, -0.0447998046875, 0.064697265625, -0.0089111328125, -0.02496337890625, 0.0245819091796875, -0.0303955078125, 0.0716552734375, -0.02093505859375, -0.0687255859375, -0.057525634765625, 0.016998291015625, 0.0445556640625, 0.01311492919921875, 0.0396728515625, 0.019744873046875, -0.00580596923828125, 0.0189971923828125, 0.00628662109375, 0.00638580322265625, -0.025543212890625, 0.043701171875, -0.00897216796875, -0.00666046142578125, 0.01386260986328125, -0.01467132568359375, 0.0023956298828125, -0.0050506591796875, 0.031646728515625, 0.004913330078125, 0.03765869140625, -0.019012451171875, 0.0298309326171875, 0.0094146728515625, -0.0070648193359375, -0.01143646240234375, 0.0026569366455078125, 0.011474609375, -0.0251617431640625, -0.006389617919921875, -0.001613616943359375, -0.0181121826171875, 0.022491455078125, -0.01184844970703125, -0.0207672119140625, -0.0173187255859375, -0.0268707275390625, 0.02752685546875, 0.042266845703125, 0.06011962890625, -0.007625579833984375, -0.05450439453125, -0.07720947265625, -0.0208282470703125, 0.05108642578125, 0.10040283203125, 0.01026153564453125, 0.0523681640625, 0.0177154541015625, -0.037445068359375, 0.0233612060546875, -0.064453125, 0.027374267578125, 0.01953125, 0.03533935546875, 0.0322265625, 0.00945281982421875, -0.0160675048828125, 0.00812530517578125, 0.0286102294921875, -0.03448486328125, 0.01580810546875, 0.005687713623046875, 0.01480865478515625, 0.05438232421875, 0.03314208984375, -0.016876220703125, 0.0213165283203125, 0.037506103515625, -0.01172637939453125, 0.0135345458984375, -0.00489044189453125, -0.0222625732421875, -0.05242919921875, -0.0091705322265625, 0.005344390869140625, -0.0213623046875, -0.01013946533203125, -0.0328369140625, -0.015289306640625, 0.045989990234375, -0.031829833984375, 0.01342010498046875, -0.036376953125, -0.058074951171875, 0.04864501953125, 0.007328033447265625, -0.06439208984375, 0.0022449493408203125, -0.00901031494140625, 0.004741668701171875, -0.058380126953125, -0.058837890625, 0.04510498046875, -0.0269927978515625, 0.0167236328125, 0.003368377685546875, -0.0188140869140625, 0.032745361328125, 0.0433349609375, 0.047821044921875, 0.08184814453125, 0.01959228515625, -0.0006594657897949219, 0.01354217529296875, 0.0012159347534179688, -0.046173095703125, -0.029388427734375, 0.0302734375, -0.02508544921875, -0.048736572265625, -0.03887939453125, 0.03216552734375, 0.009307861328125, -0.03802490234375, -0.072509765625, -0.00626373291015625, -0.0217742919921875, -0.025726318359375, -0.00014507770538330078, -0.03594970703125, -0.0135498046875, 0.0302734375, -0.01233673095703125, 0.034912109375, -0.03387451171875, 0.017303466796875, -0.017730712890625, 0.0247955322265625, 0.0202484130859375, -0.01427459716796875, -0.032440185546875, -0.00948333740234375, -0.014068603515625, -0.00982666015625, 0.02349853515625, 0.00713348388671875, 0.00917816162109375, 0.040496826171875, -0.03851318359375, -0.005458831787109375, -0.02960205078125, -0.02740478515625, -0.01036834716796875, -0.05694580078125, 0.01141357421875, 0.005290985107421875, 0.0309906005859375, -0.0081634521484375, -0.01030731201171875, -0.0271148681640625, 0.0413818359375, 0.0096588134765625, -0.004993438720703125, 0.03118896484375, -0.0255889892578125, 0.045166015625, 0.032196044921875, -0.04425048828125, -0.0180206298828125, 0.006114959716796875, -0.0244598388671875, -0.04608154296875, -0.006130218505859375, -0.0264129638671875, 0.0009760856628417969, -0.05059814453125, -0.016937255859375, 0.0294189453125, -0.035247802734375, -0.045654296875, 0.026641845703125, 0.0008749961853027344, -0.0294342041015625, 0.034912109375, 0.00989532470703125, -0.0030498504638671875, -0.03619384765625, 0.030914306640625, -0.00025844573974609375, 0.043304443359375, -0.0355224609375, -0.0247955322265625, 0.01303863525390625, 0.0270538330078125, -0.0182952880859375, 0.0341796875, 0.0133056640625, 0.0186309814453125, -0.0159912109375, 0.007678985595703125, -0.006748199462890625, 0.006832122802734375, -0.0413818359375, 0.034027099609375, -0.0167083740234375, 0.012847900390625, -0.03179931640625, 0.00994873046875, 0.00848388671875, -0.01346588134765625, -0.018341064453125, 0.00140380859375, -0.01187896728515625, -0.06915283203125, -0.03704833984375, 0.01039886474609375 ]
50e71c50df9f53c38544a58c6480e86108a2da18
Wordpress Stackexchange Q: Displaying a WooCommerce product via PHP Having a hard time composing a searchable query, so I apologize in advance if this has been covered. I know you can add WooCommerce products to a page or post via short code, but I have one section of my site where it's displaying from theme settings and PHP template only. So my question is, how can I display a product on this section via PHP? A: Use do_shortcode(). For example, in a template, if you were wanting to display products specifically by ID: <?php echo do_shortcode('[products ids="1, 2, 3, 4, 5"]'); ?> WooCommerce comes with several shortcodes which can be used to insert content inside posts and pages: http://docs.woothemes.com/document/woocommerce-shortcodes/ You can add shortcodes to a post or page easily via the shortcode shortcut button in the post editor:
Q: Displaying a WooCommerce product via PHP Having a hard time composing a searchable query, so I apologize in advance if this has been covered. I know you can add WooCommerce products to a page or post via short code, but I have one section of my site where it's displaying from theme settings and PHP template only. So my question is, how can I display a product on this section via PHP? A: Use do_shortcode(). For example, in a template, if you were wanting to display products specifically by ID: <?php echo do_shortcode('[products ids="1, 2, 3, 4, 5"]'); ?> WooCommerce comes with several shortcodes which can be used to insert content inside posts and pages: http://docs.woothemes.com/document/woocommerce-shortcodes/ You can add shortcodes to a post or page easily via the shortcode shortcut button in the post editor:
wordpress
{ "language": "en", "length": 136, "provenance": "stackexchange_00019.jsonl.gz:431500", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/96502" }
[ 0.04840087890625, 0.006855010986328125, -0.0038814544677734375, -0.0183563232421875, 0.01219940185546875, -0.0264129638671875, 0.054351806640625, -0.021392822265625, -0.011566162109375, 0.0189361572265625, -0.0543212890625, -0.00782012939453125, -0.065673828125, 0.0085296630859375, -0.0295867919921875, -0.06390380859375, 0.0195770263671875, 0.01580810546875, 0.054351806640625, 0.0132293701171875, -0.023529052734375, 0.04669189453125, 0.033935546875, 0.015625, 0.00499725341796875, -0.051483154296875, 0.1007080078125, -0.0278167724609375, 0.032440185546875, -0.010955810546875, 0.0201263427734375, -0.005126953125, 0.05224609375, -0.0195465087890625, 0.0004265308380126953, 0.05670166015625, 0.021636962890625, -0.015716552734375, 0.01480865478515625, 0.01013946533203125, 0.038665771484375, -0.0269775390625, 0.0440673828125, -0.024688720703125, 0.02191162109375, -0.00797271728515625, 0.012298583984375, -0.05792236328125, -0.007183074951171875, -0.021820068359375, 0.0183868408203125, 0.022979736328125, 0.0421142578125, -0.034881591796875, -0.010406494140625, 0.0014867782592773438, -0.056732177734375, 0.0182342529296875, 0.0248565673828125, 0.004970550537109375, -0.01248931884765625, -0.0340576171875, 0.020904541015625, -0.006557464599609375, 0.0258636474609375, 0.025604248046875, 0.0316162109375, 0.022308349609375, -0.040496826171875, 0.0158843994140625, 0.0156707763671875, -0.043121337890625, -0.004436492919921875, -0.00598907470703125, 0.0020236968994140625, -0.00789642333984375, -0.0030651092529296875, -0.01422119140625, 0.0095062255859375, 0.0294952392578125, -0.002452850341796875, -0.0153045654296875, 0.009307861328125, -0.04656982421875, 0.00823211669921875, -0.0198211669921875, -0.00656890869140625, 0.006191253662109375, -0.00247955322265625, -0.03192138671875, -0.012969970703125, -0.01181793212890625, -0.038848876953125, 0.0257720947265625, -0.01056671142578125, -0.0206451416015625, -0.0159149169921875, 0.0009603500366210938, 0.0167236328125, 0.03631591796875, 0.0233306884765625, -0.06463623046875, 0.067138671875, -0.039306640625, -0.0298309326171875, 0.009002685546875, 0.021392822265625, 0.0308380126953125, 0.0037136077880859375, 0.035186767578125, 0.005367279052734375, 0.00797271728515625, -0.0302276611328125, -0.045867919921875, -0.01067352294921875, 0.0364990234375, -0.0518798828125, 0.01137542724609375, 0.01519012451171875, -0.0027217864990234375, -0.0005884170532226562, 0.0396728515625, 0.035980224609375, -0.01555633544921875, -0.0147705078125, 0.004749298095703125, 0.0006475448608398438, -0.0780029296875, 0.017486572265625, -0.002429962158203125, -0.0341796875, 0.0172576904296875, 0.04754638671875, 0.03472900390625, 0.0191802978515625, -0.007080078125, 0.01410675048828125, 0.033477783203125, 0.0215301513671875, -0.0057830810546875, 0.0207061767578125, 0.01137542724609375, 0.00774383544921875, 0.00560760498046875, 0.03118896484375, 0.01268768310546875, 0.005115509033203125, 0.020416259765625, 0.020233154296875, -0.0311431884765625, 0.0286712646484375, 0.006763458251953125, -0.01995849609375, 0.041748046875, 0.0513916015625, 0.056060791015625, 0.060546875, -0.00101470947265625, -0.00804901123046875, 0.0030879974365234375, -0.0155487060546875, -0.0098114013671875, 0.0416259765625, -0.0386962890625, -0.040374755859375, 0.01212310791015625, -0.051788330078125, -0.00988006591796875, 0.0311737060546875, 0.052734375, -0.005268096923828125, -0.0389404296875, 0.01436614990234375, 0.01152801513671875, -0.021759033203125, 0.0171661376953125, 0.00873565673828125, 0.017333984375, 0.054229736328125, 0.0023441314697265625, -0.0240936279296875, -0.027618408203125, 0.09381103515625, -0.0321044921875, -0.053131103515625, 0.054595947265625, 0.009552001953125, 0.05157470703125, -0.00479888916015625, 0.0175018310546875, 0.044769287109375, 0.048492431640625, -0.0191497802734375, 0.0019664764404296875, -0.005123138427734375, -0.047943115234375, 0.0022487640380859375, -0.00870513916015625, -0.0120391845703125, 0.0196075439453125, -0.0192718505859375, 0.0065460205078125, 0.029876708984375, 0.0275726318359375, -0.004520416259765625, 0.0297393798828125, -0.0178375244140625, 0.0276336669921875, -0.0139617919921875, -0.01209259033203125, 0.00812530517578125, -0.007015228271484375, -0.0167083740234375, -0.0284576416015625, -0.0189666748046875, 0.023345947265625, -0.03912353515625, 0.09710693359375, 0.0140533447265625, 0.051177978515625, 0.0290374755859375, -0.061187744140625, 0.033172607421875, -0.0175933837890625, 0.0374755859375, -0.0027713775634765625, -0.007381439208984375, -0.0229339599609375, 0.027740478515625, 0.0183563232421875, -0.017608642578125, -0.004436492919921875, -0.0068206787109375, -0.0240325927734375, -0.0396728515625, 0.0036487579345703125, -0.01158905029296875, -0.044830322265625, 0.0025844573974609375, 0.042755126953125, 0.038848876953125, 0.042999267578125, 0.0232696533203125, 0.0080718994140625, 0.07391357421875, 0.01082611083984375, 0.0217437744140625, -0.036407470703125, -0.01038360595703125, 0.035888671875, 0.0267333984375, 0.017822265625, -0.00838470458984375, -0.0295257568359375, 0.0024871826171875, 0.0318603515625, 0.004638671875, 0.037689208984375, -0.0222930908203125, 0.0267181396484375, -0.030792236328125, -0.01177978515625, 0.0194244384765625, -0.02740478515625, 0.052337646484375, 0.0187835693359375, 0.041961669921875, 0.0123138427734375, -0.043060302734375, 0.008880615234375, 0.003726959228515625, -0.01678466796875, -0.004608154296875, 0.0125732421875, -0.00965118408203125, -0.0484619140625, -0.05047607421875, 0.023590087890625, 0.017425537109375, -0.0269927978515625, 0.0115509033203125, 0.0357666015625, 0.0128936767578125, -0.00832366943359375, -0.006435394287109375, -0.05035400390625, 0.004192352294921875, 0.037139892578125, -0.0041656494140625, -0.031646728515625, -0.0085601806640625, 0.05889892578125, -0.030487060546875, 0.0472412109375, 0.01352691650390625, -0.00351715087890625, 0.03363037109375, -0.046905517578125, 0.06072998046875, -0.0286407470703125, 0.0076446533203125, 0.059600830078125, -0.019256591796875, 0.031463623046875, 0.0176849365234375, 0.01092529296875, 0.0282745361328125, 0.01142120361328125, 0.0031261444091796875, 0.019287109375, -0.058013916015625, -0.00624847412109375, 0.0308837890625, 0.04376220703125, -0.0012378692626953125, -0.038848876953125, 0.0028858184814453125, 0.042236328125, -0.0714111328125, -0.0830078125, -0.0185394287109375, -0.03936767578125, -0.00009083747863769531, -0.007686614990234375, -0.02099609375, 0.00897216796875, 0.00798797607421875, 0.009857177734375, -0.035980224609375, -0.017364501953125, -0.003688812255859375, -0.044097900390625, -0.031707763671875, 0.0196990966796875, 0.005321502685546875, 0.0128021240234375, 0.0022735595703125, 0.00003522634506225586, -0.01163482666015625, -0.0263519287109375, 0.009796142578125, 0.060211181640625, -0.004421234130859375, -0.01525115966796875, 0.036163330078125, -0.0750732421875, -0.0318603515625, 0.002658843994140625, -0.00859832763671875, -0.01155853271484375, 0.005657196044921875, -0.004425048828125, 0.01055908203125, 0.01313018798828125, 0.0082855224609375, -0.00521087646484375, -0.004665374755859375, -0.00904083251953125, -0.0111236572265625, -0.055816650390625, -0.033203125, -0.01507568359375, -0.04339599609375, -0.01885986328125, 0.02069091796875, 0.007450103759765625, -0.0265655517578125, 0.00878143310546875, 0.031402587890625, 0.002597808837890625, -0.0008568763732910156, -0.0257415771484375, 0.005199432373046875, 0.0185699462890625, 0.041595458984375, -0.0233917236328125, 0.0091400146484375, -0.020294189453125, 0.023468017578125, 0.013214111328125, 0.035247802734375, 0.00402069091796875, 0.0212554931640625, -0.0418701171875, -0.059326171875, 0.0662841796875, -0.005519866943359375, 0.036590576171875, -0.046112060546875, -0.044952392578125, -0.004093170166015625, 0.1307373046875, -0.007389068603515625, -0.01436614990234375, -0.01219940185546875, 0.00025343894958496094, -0.0203704833984375, -0.0308990478515625, -0.037506103515625, -0.01473236083984375, -0.031402587890625, 0.0303192138671875, 0.00408935546875, 0.0009899139404296875, -0.003055572509765625, -0.0106048583984375, -0.0195770263671875, -0.0186767578125, 0.02630615234375, -0.007076263427734375, 0.0235748291015625, 0.04901123046875, -0.01904296875, 0.03857421875, -0.0303955078125, -0.021331787109375, -0.04010009765625, -0.021575927734375, 0.05145263671875, 0.0440673828125, 0.01222991943359375, -0.07080078125, -0.027496337890625, 0.0257720947265625, -0.0031147003173828125, 0.040618896484375, 0.01629638671875, 0.047119140625, -0.019744873046875, -0.047393798828125, 0.020782470703125, -0.054168701171875, -0.002002716064453125, -0.0018463134765625, 0.0302886962890625, 0.047454833984375, -0.0239715576171875, 0.0155792236328125, -0.0177459716796875, -0.003040313720703125, -0.056365966796875, -0.027557373046875, 0.037872314453125, 0.0239105224609375, -0.0168914794921875, 0.029449462890625, -0.02606201171875, -0.03729248046875, 0.0285491943359375, -0.01275634765625, -0.01409149169921875, 0.0089263916015625, 0.068115234375, 0.0235748291015625, -0.00841522216796875, -0.0251007080078125, 0.01324462890625, 0.045440673828125, 0.0178375244140625, 0.01357269287109375, -0.009033203125, -0.0318603515625, 0.038421630859375, 0.01435089111328125, 0.004848480224609375, 0.01153564453125, 0.04254150390625, -0.006244659423828125, -0.01416015625, 0.024688720703125, -0.01806640625, -0.0158538818359375, -0.002758026123046875, -0.0323486328125, -0.0035305023193359375, -0.008880615234375, 0.016998291015625, -0.018798828125, 0.04388427734375, -0.0225372314453125, -0.038848876953125, 0.003314971923828125, 0.0083160400390625, 0.0163116455078125, 0.02685546875, 0.00865936279296875, 0.01235198974609375, -0.004161834716796875, 0.01505279541015625, 0.0010709762573242188, -0.032867431640625, -0.0135955810546875, 0.0158843994140625, -0.01068115234375, -0.00762176513671875, 0.02984619140625, -0.00131988525390625, 0.0249481201171875, 0.01107025146484375, -0.01430511474609375, -0.046783447265625, -0.00994110107421875, -0.007480621337890625, 0.00146484375, 0.004177093505859375, 0.0274658203125, 0.0242156982421875, -0.0131072998046875, 0.007030487060546875, -0.0263214111328125, 0.02056884765625, -0.038360595703125, 0.000762939453125, -0.00478363037109375, -0.00484466552734375, 0.0075225830078125, 0.045806884765625, -0.0235137939453125, 0.041259765625, 0.006618499755859375, 0.04766845703125, 0.049835205078125, 0.023223876953125, 0.0292816162109375, -0.031402587890625, 0.0114898681640625, -0.031707763671875, -0.0223236083984375, -0.0181121826171875, -0.0245513916015625, -0.00627899169921875, 0.00812530517578125, -0.044403076171875, -0.00885772705078125, 0.04638671875, 0.0054168701171875, -0.017364501953125, -0.0101776123046875, -0.0288543701171875, -0.005889892578125, -0.043426513671875, -0.0016298294067382812, 0.045562744140625, 0.034820556640625, 0.00775909423828125, -0.028076171875, -0.03314208984375, -0.0002446174621582031, -0.01053619384765625, 0.00507354736328125, -0.021759033203125, -0.043365478515625, -0.005352020263671875, -0.021820068359375, 0.004871368408203125, -0.04608154296875, -0.01117706298828125, -0.033355712890625, -0.028778076171875, 0.048492431640625, -0.02447509765625, 0.030517578125, -0.02178955078125, -0.0121612548828125, -0.01009368896484375, 0.00548553466796875, 0.04736328125, 0.036407470703125, -0.06463623046875, 0.0006852149963378906, -0.009521484375, -0.00647735595703125, 0.030853271484375, -0.0017261505126953125, -0.04052734375, -0.01885986328125, -0.0171661376953125, 0.03363037109375, -0.034454345703125, -0.05279541015625, -0.0229644775390625, -0.0156402587890625, -0.006504058837890625, 0.0266876220703125, 0.018707275390625, 0.01149749755859375, -0.01537322998046875, 0.057830810546875, 0.025970458984375, -0.0006814002990722656, -0.005176544189453125, -0.042327880859375, 0.0164642333984375, -0.017333984375, -0.0517578125, -0.0067291259765625, -0.03387451171875, 0.015655517578125, 0.051361083984375, -0.01325225830078125, 0.0120391845703125, -0.01995849609375, 0.002613067626953125, -0.0250396728515625, 0.02325439453125, -0.0443115234375, -0.036712646484375, 0.031341552734375, -0.044769287109375, -0.02764892578125, 0.041778564453125, -0.005367279052734375, 0.043182373046875, -0.00951385498046875, 0.0222930908203125, 0.0010852813720703125, -0.02294921875, 0.07525634765625, 0.07427978515625, -0.0026035308837890625, 0.035675048828125, 0.006481170654296875, -0.00499725341796875, 0.00859832763671875, 0.043243408203125, -0.036651611328125, -0.0285797119140625, 0.02557373046875, -0.004058837890625, -0.024749755859375, 0.00386810302734375, -0.02117919921875, 0.009521484375, 0.0478515625, 0.0609130859375, -0.090576171875, 0.0105133056640625, 0.00838470458984375, -0.00891876220703125, 0.006519317626953125, -0.0165557861328125, 0.00949859619140625, -0.04779052734375, 0.06878662109375, 0.0423583984375, 0.01410675048828125, 0.035614013671875, -0.0173187255859375, 0.0254974365234375, 0.0266876220703125, 0.06146240234375, 0.004718780517578125, -0.07183837890625, -0.02520751953125, 0.03900146484375, 0.0007228851318359375, -0.0308685302734375, -0.0128326416015625, 0.0240631103515625, -0.0161285400390625, -0.039886474609375, 0.050628662109375, -0.033660888671875, 0.050689697265625, 0.045318603515625, -0.001659393310546875, 0.006305694580078125, 0.067138671875, -0.017242431640625, 0.04241943359375, 0.0280609130859375, -0.016143798828125, 0.00896453857421875, -0.01358795166015625, -0.004749298095703125, 0.039703369140625, -0.08843994140625, -0.0012445449829101562, -0.038726806640625, 0.05230712890625, -0.0003066062927246094, 0.043304443359375, 0.0655517578125, -0.0286712646484375, -0.0305938720703125, 0.023956298828125, 0.027099609375, 0.0014638900756835938, -0.00689697265625, 0.032073974609375, -0.0161895751953125, 0.0266265869140625, 0.0129241943359375, 0.007198333740234375, -0.025848388671875, -0.018463134765625, -0.09637451171875, 0.03778076171875, -0.005096435546875, 0.040130615234375, 0.00801849365234375, 0.007080078125, -0.0074005126953125, -0.03546142578125, -0.032623291015625, 0.044830322265625, 0.03204345703125, 0.0640869140625, -0.0285797119140625, -0.02349853515625, 0.043060302734375, 0.048492431640625, 0.0389404296875, 0.00403594970703125, -0.008148193359375, 0.02557373046875, 0.08294677734375, 0.00818634033203125, -0.0226898193359375, 0.0300140380859375, -0.009002685546875, -0.0450439453125, 0.05426025390625, -0.025726318359375, 0.01751708984375, -0.002323150634765625, 0.0219268798828125, -0.0010271072387695312, -0.001316070556640625, -0.00927734375, 0.0096893310546875, 0.007541656494140625, 0.0116729736328125, -0.0020160675048828125, -0.006954193115234375, -0.029937744140625, -0.004764556884765625, 0.019195556640625, -0.0220794677734375, -0.00490570068359375, -0.0262451171875, -0.0158843994140625, 0.01334381103515625, -0.005115509033203125, 0.0615234375, 0.03173828125, 0.020599365234375, 0.08880615234375, -0.0015048980712890625, 0.041900634765625, 0.032073974609375, -0.0496826171875, 0.0204315185546875, -0.00023984909057617188, 0.01006317138671875, -0.04351806640625, 0.0117034912109375, 0.03240966796875, 0.0164031982421875, -0.030181884765625, -0.018157958984375, 0.0175933837890625, 0.01102447509765625, -0.0021381378173828125, -0.0157012939453125, -0.006465911865234375, -0.050689697265625, -0.0074005126953125, -0.0248870849609375, -0.00022864341735839844, 0.038360595703125, 0.021759033203125, 0.017913818359375, 0.03912353515625, -0.05780029296875, -0.0264892578125, -0.059661865234375, 0.05609130859375, -0.016510009765625, 0.08056640625, 0.01067352294921875, 0.07965087890625, -0.07098388671875, -0.056793212890625, 0.00478363037109375, 0.025634765625, -0.0020694732666015625, -0.00701904296875, -0.03790283203125, -0.0269012451171875, -0.0207977294921875, 0.0401611328125, -0.0024242401123046875, 0.045501708984375, 0.018951416015625, 0.03973388671875, 0.033172607421875, -0.0138092041015625, 0.04962158203125, -0.004306793212890625, 0.004299163818359375, -0.021728515625, 0.03497314453125, 0.00576019287109375, 0.007293701171875, -0.0297393798828125, 0.04595947265625, 0.0179290771484375, -0.055267333984375, 0.05615234375, -0.029998779296875, -0.0290985107421875, 0.041259765625, -0.029144287109375, 0.0767822265625, -0.0174407958984375, -0.07763671875, -0.00960540771484375, -0.04559326171875, -0.035400390625, 0.008056640625, 0.02862548828125, -0.03466796875, 0.05938720703125, 0.040069580078125, -0.0162200927734375, 0.019683837890625, 0.0226898193359375, 0.00765228271484375, -0.02056884765625, 0.0286712646484375, -0.00902557373046875, -0.055328369140625, -0.0230865478515625, -0.04461669921875, 0.0293731689453125, 0.0308685302734375, 0.0284423828125, 0.0011644363403320312, 0.03668212890625, -0.045806884765625, -0.0037746429443359375, -0.0106658935546875, -0.047760009765625, 0.08477783203125, -0.0037136077880859375, -0.05010986328125, -0.0153045654296875, 0.031036376953125, 0.018096923828125, 0.05389404296875, -0.0253448486328125, -0.007450103759765625, -0.0177001953125, 0.033843994140625, -0.01284027099609375, 0.060516357421875, -0.0097808837890625, -0.040191650390625, -0.05322265625, 0.01309967041015625, 0.01032257080078125, 0.0170745849609375, -0.017974853515625, -0.005290985107421875, 0.0283966064453125, -0.056060791015625, 0.038970947265625, -0.0297393798828125, 0.07147216796875, 0.036285400390625, 0.032012939453125, 0.00921630859375, -0.00193023681640625, -0.01306915283203125, 0.0098876953125, 0.0080413818359375, -0.0043792724609375, 0.023193359375, -0.07672119140625, 0.0212860107421875, 0.0653076171875, 0.042083740234375, 0.0167388916015625, 0.0141448974609375, 0.053955078125, -0.05230712890625, -0.01071929931640625, 0.01377105712890625, -0.031585693359375, -0.03668212890625, 0.0214080810546875, 0.00714874267578125, 0.01105499267578125, -0.0033721923828125, -0.03692626953125, -0.01495361328125, 0.0236968994140625, 0.007640838623046875, -0.035369873046875, -0.031005859375, 0.020782470703125, 0.04376220703125, 0.00020062923431396484, -0.0251617431640625, 0.01358795166015625, 0.0160064697265625, -0.027740478515625, 0.0097808837890625, -0.038238525390625, -0.028900146484375, -0.0300140380859375, 0.004276275634765625, 0.0227508544921875, -0.026153564453125, -0.006259918212890625, 0.0150299072265625, 0.0111541748046875, 0.06024169921875, 0.0142974853515625, -0.039947509765625, 0.0301666259765625, -0.0038909912109375, 0.0032024383544921875, -0.066650390625, -0.002948760986328125, -0.073486328125, 0.0302734375, 0.00885772705078125, 0.0099945068359375, 0.049896240234375, -0.022705078125, -0.06121826171875, 0.065185546875, -0.00888824462890625, -0.033782958984375, -0.0194549560546875, -0.0102691650390625, -0.0312042236328125, 0.03985595703125, -0.003997802734375, -0.041778564453125, -0.014404296875, 0.048553466796875, -0.030853271484375, 0.00917816162109375, 0.02288818359375, -0.027374267578125, -0.002033233642578125, -0.00531768798828125, -0.00292205810546875, -0.037689208984375, 0.03887939453125, -0.043212890625, 0.047637939453125, 0.027191162109375, -0.04351806640625, -0.00975799560546875, 0.014617919921875, 0.01180267333984375, 0.0120086669921875, -0.047607421875, -0.01898193359375, -0.06329345703125, 0.0262451171875, -0.01538848876953125, 0.006866455078125, 0.037841796875, 0.023223876953125, 0.006839752197265625, -0.0294342041015625, 0.0198516845703125, 0.0085906982421875, -0.01007843017578125, 0.0042877197265625, -0.01617431640625, -0.0021076202392578125, 0.02081298828125, 0.0251312255859375, -0.036376953125, -0.013031005859375, -0.017364501953125, -0.0114593505859375, -0.08258056640625, -0.022918701171875, 0.051177978515625, -0.036041259765625, -0.0254364013671875, 0.00048351287841796875, 0.01398468017578125, -0.00872039794921875, -0.02386474609375, 0.0238494873046875, 0.001964569091796875, -0.01396942138671875, 0.004150390625, 0.01183319091796875, 0.03167724609375, -0.01375579833984375, -0.00293731689453125, -0.01007080078125, 0.04736328125, -0.00946044921875, 0.0487060546875, 0.011383056640625, 0.06719970703125, 0.01047515869140625, 0.06756591796875, -0.009124755859375, 0.005069732666015625, -0.01007843017578125, 0.041290283203125, -0.0160980224609375, -0.001361846923828125, 0.0099639892578125, -0.0401611328125, 0.007080078125, -0.019927978515625, -0.008331298828125, -0.027008056640625, 0.0011835098266601562, 0.0012121200561523438, -0.0225067138671875, 0.01284027099609375 ]
a82c93c3b177847f5a2cce6e9606c71da6f5a7fe
Wordpress Stackexchange Q: How to make “Upload files”selected by default in Insert Media? I am frustrated having to click on the "Upload Files" constantly instead of the first choice being Upload Files in posts editor....How can i make “Upload files” selected by default instead of "Media library"? A: If some one it's still looking for a solution, this solution worked for me for all upload images in any post types and on featured images as well: function upload_media_manager_by_default() { if ( did_action( 'wp_enqueue_media' ) ) { ?> <script type="text/javascript"> jQuery( document ).ready( function ( $ ) { wp.media.controller.Library.prototype.defaults.contentUserSetting = false; wp.media.controller.FeaturedImage.prototype.defaults.contentUserSetting = false; }); </script> <?php } } add_action( 'admin_footer', 'upload_media_manager_by_default' );
Q: How to make “Upload files”selected by default in Insert Media? I am frustrated having to click on the "Upload Files" constantly instead of the first choice being Upload Files in posts editor....How can i make “Upload files” selected by default instead of "Media library"? A: If some one it's still looking for a solution, this solution worked for me for all upload images in any post types and on featured images as well: function upload_media_manager_by_default() { if ( did_action( 'wp_enqueue_media' ) ) { ?> <script type="text/javascript"> jQuery( document ).ready( function ( $ ) { wp.media.controller.Library.prototype.defaults.contentUserSetting = false; wp.media.controller.FeaturedImage.prototype.defaults.contentUserSetting = false; }); </script> <?php } } add_action( 'admin_footer', 'upload_media_manager_by_default' ); A: Add this to your functions.php, or preferably a functionality plugin. add_action( 'admin_footer-post-new.php', 'media_manager_default' ); add_action( 'admin_footer-post.php', 'media_manager_default' ); function media_manager_default() { ?> <script type="text/javascript"> jQuery(document).ready(function($){ wp.media.controller.Library.prototype.defaults.contentUserSetting=false; }); </script> <?php }
wordpress
{ "language": "en", "length": 141, "provenance": "stackexchange_00019.jsonl.gz:431505", "question_score": "16", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/96513" }
[ 0.021270751953125, -0.0023822784423828125, 0.040252685546875, 0.0256500244140625, -0.005558013916015625, -0.011474609375, 0.08367919921875, -0.05938720703125, 0.01084136962890625, -0.0011587142944335938, -0.03167724609375, 0.007221221923828125, -0.0106353759765625, -0.0265350341796875, 0.00516510009765625, -0.0299224853515625, 0.0157012939453125, 0.00789642333984375, 0.0288238525390625, -0.01641845703125, 0.022430419921875, 0.004070281982421875, 0.020721435546875, 0.0135345458984375, -0.0174713134765625, 0.0223388671875, 0.00017964839935302734, 0.01412200927734375, -0.035125732421875, -0.0185699462890625, 0.00038051605224609375, 0.0299224853515625, 0.026702880859375, -0.03607177734375, 0.0241241455078125, 0.0203094482421875, 0.0280609130859375, -0.0083160400390625, 0.02691650390625, 0.004993438720703125, 0.0153045654296875, 0.004657745361328125, 0.0036907196044921875, 0.006008148193359375, -0.0228271484375, -0.031646728515625, -0.006961822509765625, -0.024505615234375, 0.0163421630859375, -0.032623291015625, -0.006374359130859375, 0.005741119384765625, 0.017425537109375, -0.058563232421875, -0.02105712890625, -0.026519775390625, -0.01270294189453125, 0.024566650390625, 0.01715087890625, 0.0236968994140625, -0.0263671875, 0.010986328125, -0.000014543533325195312, -0.036956787109375, -0.0222930908203125, -0.0059661865234375, -0.00936126708984375, 0.0107574462890625, -0.034454345703125, -0.037384033203125, 0.030487060546875, -0.032989501953125, 0.021575927734375, -0.031951904296875, -0.00762176513671875, 0.0567626953125, -0.0148162841796875, 0.0279388427734375, 0.04248046875, -0.04522705078125, 0.03924560546875, 0.00260162353515625, 0.0056610107421875, -0.030731201171875, 0.0562744140625, 0.022491455078125, 0.004482269287109375, -0.044464111328125, 0.00812530517578125, 0.03265380859375, -0.002223968505859375, 0.018096923828125, 0.0274200439453125, 0.0170745849609375, -0.022674560546875, -0.00783538818359375, 0.0094451904296875, 0.016845703125, 0.0193634033203125, -0.00001424551010131836, 0.01326751708984375, -0.053802490234375, 0.00992584228515625, -0.026580810546875, 0.03656005859375, 0.0123443603515625, -0.04132080078125, -0.0941162109375, 0.013336181640625, 0.02801513671875, -0.0169677734375, 0.0244598388671875, 0.0191802978515625, 0.017578125, -0.0277557373046875, -0.0252227783203125, -0.0340576171875, 0.0230712890625, -0.02557373046875, -0.01113128662109375, -0.00768280029296875, 0.00457000732421875, -0.01027679443359375, -0.04376220703125, 0.003635406494140625, -0.02325439453125, -0.04278564453125, 0.009979248046875, -0.056854248046875, 0.0283203125, -0.0271453857421875, 0.01374053955078125, 0.0751953125, 0.026092529296875, 0.0006451606750488281, -0.01470184326171875, -0.0029392242431640625, -0.0033245086669921875, 0.0121002197265625, -0.01084136962890625, 0.036041259765625, -0.030120849609375, -0.0022430419921875, 0.039093017578125, -0.00582122802734375, 0.052490234375, 0.0255126953125, -0.0157318115234375, -0.0224456787109375, -0.0546875, -0.006500244140625, -0.02288818359375, 0.013702392578125, 0.0164947509765625, -0.0021572113037109375, -0.035247802734375, 0.03863525390625, -0.0243377685546875, 0.00449371337890625, -0.05322265625, 0.022308349609375, -0.004589080810546875, 0.0015859603881835938, -0.038330078125, -0.03955078125, -0.00925445556640625, -0.03802490234375, -0.015838623046875, 0.0219268798828125, 0.0151214599609375, -0.01549530029296875, -0.0227203369140625, 0.00823211669921875, 0.017364501953125, 0.00499725341796875, 0.0224456787109375, 0.045867919921875, 0.01554107666015625, -0.013916015625, 0.0570068359375, 0.020782470703125, -0.0206756591796875, 0.051788330078125, -0.020050048828125, -0.0430908203125, 0.036956787109375, -0.0021800994873046875, 0.031463623046875, 0.004817962646484375, -0.0018262863159179688, 0.041961669921875, 0.03973388671875, -0.0311431884765625, -0.0289764404296875, -0.01025390625, 0.0038967132568359375, -0.0312042236328125, 0.003437042236328125, -0.017333984375, 0.018768310546875, 0.03076171875, -0.0012445449829101562, 0.0043182373046875, 0.01091766357421875, 0.01361083984375, -0.020660400390625, 0.005031585693359375, 0.00026106834411621094, -0.01549530029296875, -0.032440185546875, 0.01190948486328125, -0.017852783203125, 0.0115966796875, -0.07598876953125, -0.054718017578125, 0.0287322998046875, -0.026153564453125, 0.006748199462890625, -0.0042724609375, 0.046356201171875, -0.03460693359375, 0.01021575927734375, -0.027679443359375, 0.000537872314453125, 0.00495147705078125, 0.016693115234375, -0.0208282470703125, -0.0005269050598144531, 0.048736572265625, 0.006343841552734375, 0.039947509765625, 0.0056915283203125, -0.0192718505859375, -0.018646240234375, -0.036468505859375, -0.0212860107421875, -0.0236053466796875, -0.0711669921875, 0.0244293212890625, 0.059600830078125, 0.005275726318359375, 0.021820068359375, 0.01148223876953125, 0.0740966796875, 0.059661865234375, 0.040130615234375, 0.034149169921875, 0.019256591796875, 0.038238525390625, 0.03765869140625, -0.02789306640625, -0.0230865478515625, 0.022735595703125, -0.07086181640625, 0.034149169921875, 0.009063720703125, -0.032501220703125, -0.061737060546875, 0.016998291015625, 0.00754547119140625, 0.022308349609375, -0.041229248046875, -0.034698486328125, -0.0021839141845703125, 0.035614013671875, 0.0220947265625, 0.031890869140625, 0.032867431640625, -0.0194244384765625, 0.0287017822265625, -0.00266265869140625, -0.047271728515625, -0.01457977294921875, 0.069580078125, 0.0780029296875, -0.0186309814453125, -0.034942626953125, -0.04425048828125, 0.00415802001953125, 0.03857421875, -0.0183868408203125, 0.004062652587890625, -0.04803466796875, -0.01177978515625, 0.0031871795654296875, -0.0712890625, 0.00807952880859375, 0.01593017578125, -0.036163330078125, -0.0239105224609375, 0.020538330078125, 0.024871826171875, -0.018280029296875, 0.0062103271484375, -0.0172271728515625, -0.00818634033203125, 0.0082550048828125, -0.034149169921875, 0.0330810546875, -0.0212249755859375, 0.053985595703125, 0.06793212890625, -0.03399658203125, 0.04144287109375, -0.002765655517578125, 0.019012451171875, 0.0200347900390625, 0.0002872943878173828, -0.017578125, -0.01096343994140625, -0.04840087890625, -0.0460205078125, 0.0098876953125, -0.028594970703125, -0.01708984375, -0.01227569580078125, -0.02734375, -0.0240478515625, -0.055694580078125, -0.0193328857421875, -0.0137786865234375, -0.09600830078125, 0.0291748046875, -0.01474761962890625, -0.0421142578125, -0.021636962890625, 0.039703369140625, 0.01378631591796875, -0.0281829833984375, -0.004322052001953125, 0.031463623046875, -0.0026912689208984375, 0.0011692047119140625, -0.01129150390625, 0.0098114013671875, -0.0035877227783203125, 0.01140594482421875, 0.04022216796875, -0.003620147705078125, -0.04473876953125, 0.01617431640625, -0.03851318359375, 0.000027418136596679688, 0.012847900390625, 0.04541015625, -0.0309600830078125, 0.0008339881896972656, 0.0011949539184570312, 0.034423828125, 0.06085205078125, -0.05914306640625, -0.01200103759765625, -0.0096588134765625, -0.037872314453125, -0.0223236083984375, 0.07568359375, 0.0230560302734375, -0.053863525390625, -0.004131317138671875, -0.07427978515625, 0.0408935546875, -0.0297698974609375, -0.0081024169921875, -0.0056915283203125, -0.021026611328125, -0.006561279296875, -0.029449462890625, 0.0224609375, -0.010467529296875, 0.004489898681640625, -0.0160980224609375, -0.033782958984375, 0.0028858184814453125, 0.00390625, 0.015533447265625, 0.0244598388671875, 0.0313720703125, -0.00858306884765625, 0.01004791259765625, 0.01251983642578125, 0.04998779296875, 0.032012939453125, 0.004039764404296875, -0.0128631591796875, -0.0640869140625, 0.02447509765625, -0.0853271484375, 0.015106201171875, -0.0718994140625, 0.0005879402160644531, -0.0220794677734375, 0.0826416015625, -0.045013427734375, 0.004852294921875, -0.01444244384765625, 0.01343536376953125, -0.02520751953125, -0.05023193359375, -0.052642822265625, -0.0025920867919921875, -0.014404296875, 0.009307861328125, -0.0027599334716796875, -0.0231781005859375, -0.0026416778564453125, -0.0391845703125, -0.007732391357421875, -0.034149169921875, 0.0285491943359375, -0.03741455078125, 0.0131988525390625, 0.0251617431640625, 0.00623321533203125, -0.0031223297119140625, 0.00677490234375, -0.05908203125, -0.1358642578125, -0.0309600830078125, 0.0007762908935546875, 0.073974609375, -0.0185699462890625, 0.0087127685546875, -0.0303955078125, 0.07257080078125, 0.01183319091796875, -0.005313873291015625, 0.0051727294921875, -0.00670623779296875, 0.0189666748046875, -0.0143585205078125, -0.0028896331787109375, -0.0288238525390625, 0.0031147003173828125, -0.06512451171875, -0.052520751953125, -0.0238037109375, -0.01047515869140625, 0.04559326171875, -0.004734039306640625, -0.0077056884765625, -0.0540771484375, -0.05462646484375, -0.050201416015625, -0.0010747909545898438, -0.0220794677734375, 0.0022182464599609375, -0.07061767578125, -0.05938720703125, 0.026336669921875, -0.047821044921875, 0.015045166015625, 0.01122283935546875, 0.0909423828125, 0.01129150390625, 0.0133514404296875, -0.042144775390625, -0.0164337158203125, 0.0009217262268066406, 0.0101318359375, 0.0301666259765625, 0.005359649658203125, 0.00806427001953125, 0.018310546875, -0.01187896728515625, 0.038848876953125, -0.062255859375, 0.05267333984375, -0.005237579345703125, -0.007442474365234375, 0.0341796875, 0.008392333984375, -0.01435089111328125, -0.0110321044921875, -0.0173492431640625, -0.001056671142578125, -0.034027099609375, 0.0204620361328125, 0.037017822265625, -0.0018520355224609375, -0.04119873046875, -0.05084228515625, 0.0060577392578125, -0.0301055908203125, 0.037750244140625, -0.006916046142578125, 0.01494598388671875, 0.030120849609375, 0.06243896484375, 0.015228271484375, 0.03155517578125, 0.038482666015625, -0.00850677490234375, 0.042633056640625, 0.037139892578125, 0.0126800537109375, -0.00458526611328125, 0.004039764404296875, -0.032135009765625, -0.010528564453125, -0.029205322265625, -0.039215087890625, 0.007083892822265625, 0.03875732421875, 0.006351470947265625, -0.004665374755859375, 0.0286407470703125, 0.035919189453125, 0.0087127685546875, -0.001773834228515625, -0.04498291015625, 0.0460205078125, -0.039306640625, 0.042236328125, 0.022735595703125, -0.005519866943359375, 0.0325927734375, 0.031463623046875, -0.0010671615600585938, 0.0251617431640625, -0.0030689239501953125, 0.023345947265625, 0.01580810546875, 0.02154541015625, 0.0171661376953125, 0.0164794921875, -0.0062713623046875, -0.006801605224609375, 0.002147674560546875, -0.0210723876953125, 0.03802490234375, -0.01220703125, 0.0093536376953125, -0.0172271728515625, -0.046173095703125, 0.041290283203125, -0.07147216796875, -0.002471923828125, -0.0119476318359375, -0.051513671875, -0.04693603515625, 0.00856781005859375, 0.014129638671875, 0.0235443115234375, -0.0287017822265625, -0.02777099609375, 0.024169921875, -0.01953125, 0.0213775634765625, 0.022125244140625, -0.0662841796875, 0.0394287109375, 0.05108642578125, 0.033660888671875, 0.0126953125, -0.0029277801513671875, -0.10552978515625, -0.05474853515625, -0.01488494873046875, 0.021942138671875, 0.077392578125, -0.003849029541015625, -0.000865936279296875, -0.0005316734313964844, -0.011322021484375, -0.0340576171875, 0.032867431640625, 0.002445220947265625, -0.0196990966796875, 0.035400390625, -0.0202789306640625, -0.052581787109375, -0.045562744140625, -0.03887939453125, 0.002704620361328125, -0.03411865234375, -0.0011491775512695312, -0.013641357421875, 0.015899658203125, -0.0188446044921875, -0.0164794921875, 0.016510009765625, 0.0250396728515625, -0.016143798828125, 0.029388427734375, 0.01157379150390625, 0.0018253326416015625, 0.01538848876953125, -0.0180511474609375, -0.00522613525390625, -0.0268402099609375, -0.052337646484375, -0.0011701583862304688, -0.045989990234375, -0.06536865234375, 0.02496337890625, 0.04437255859375, -0.03369140625, 0.05010986328125, 0.066650390625, 0.033966064453125, 0.0301361083984375, -0.0131378173828125, -0.005344390869140625, -0.0154266357421875, -0.012664794921875, -0.036956787109375, 0.0193023681640625, -0.0235595703125, 0.00681304931640625, 0.044525146484375, -0.024627685546875, -0.034454345703125, 0.0160675048828125, -0.0160064697265625, 0.027130126953125, 0.00830841064453125, -0.038330078125, 0.05401611328125, 0.057159423828125, -0.0124664306640625, 0.034698486328125, 0.0210418701171875, 0.0002968311309814453, 0.019622802734375, 0.033416748046875, 0.00464630126953125, -0.041412353515625, 0.0311431884765625, 0.01210784912109375, 0.00522613525390625, 0.01279449462890625, -0.006389617919921875, 0.01641845703125, 0.0307769775390625, 0.0418701171875, -0.046142578125, 0.007503509521484375, -0.00634765625, -0.01922607421875, 0.0081787109375, 0.001377105712890625, -0.0176239013671875, -0.031158447265625, 0.039459228515625, -0.02850341796875, -0.029998779296875, 0.003025054931640625, -0.0079803466796875, -0.0018682479858398438, 0.0227203369140625, -0.0030117034912109375, -0.003612518310546875, 0.0006947517395019531, -0.08056640625, -0.00879669189453125, -0.05303955078125, -0.005886077880859375, 0.048248291015625, -0.050506591796875, 0.0092315673828125, -0.05767822265625, -0.0244598388671875, -0.0085296630859375, -0.0176849365234375, 0.01387786865234375, -0.001499176025390625, 0.0452880859375, 0.05419921875, -0.007808685302734375, -0.019775390625, 0.026641845703125, -0.0206298828125, -0.0157318115234375, 0.0007519721984863281, 0.02960205078125, -0.006969451904296875, -0.018646240234375, 0.01128387451171875, -0.0418701171875, -0.028778076171875, 0.0191650390625, -0.0094146728515625, 0.034576416015625, -0.064208984375, 0.00121307373046875, 0.0138397216796875, 0.01110076904296875, 0.01849365234375, -0.038726806640625, 0.007171630859375, -0.072998046875, -0.037841796875, -0.0303955078125, -0.044036865234375, -0.006500244140625, -0.058563232421875, -0.0394287109375, 0.08685302734375, 0.006130218505859375, 0.0180206298828125, 0.0194549560546875, 0.0343017578125, -0.030731201171875, 0.01116180419921875, -0.041351318359375, 0.034332275390625, -0.00817108154296875, 0.0213165283203125, -0.049957275390625, 0.004547119140625, -0.00656890869140625, 0.017578125, 0.05096435546875, -0.0048370361328125, -0.007381439208984375, 0.00959014892578125, 0.079345703125, 0.0732421875, 0.020904541015625, -0.004436492919921875, 0.00537872314453125, -0.0002944469451904297, 0.0294647216796875, -0.009979248046875, 0.007610321044921875, 0.020965576171875, -0.0203094482421875, 0.033599853515625, 0.0160064697265625, 0.038360595703125, 0.00565338134765625, 0.0084991455078125, -0.0203704833984375, -0.00719451904296875, 0.028411865234375, -0.042755126953125, 0.0089263916015625, 0.07196044921875, 0.036468505859375, -0.00504302978515625, -0.006969451904296875, -0.036041259765625, 0.05157470703125, -0.01654052734375, -0.01496124267578125, 0.033416748046875, -0.004070281982421875, -0.01361083984375, -0.00537109375, -0.01059722900390625, -0.007617950439453125, 0.006343841552734375, 0.03375244140625, -0.0009822845458984375, 0.0042877197265625, -0.053253173828125, 0.019195556640625, 0.02490234375, 0.040863037109375, -0.0367431640625, -0.0188751220703125, 0.016326904296875, 0.0028095245361328125, -0.00887298583984375, -0.032257080078125, -0.015625, -0.08984375, -0.036712646484375, -0.0280609130859375, -0.0031719207763671875, 0.0167236328125, 0.01363372802734375, -0.01253509521484375, -0.00945281982421875, 0.00260162353515625, -0.00958251953125, -0.008087158203125, 0.024658203125, 0.007686614990234375, 0.001461029052734375, -0.0234375, 0.04754638671875, -0.030670166015625, 0.0151824951171875, -0.0184478759765625, 0.04095458984375, -0.0215911865234375, 0.0271453857421875, -0.02923583984375, -0.03668212890625, -0.006290435791015625, 0.0223236083984375, 0.06353759765625, 0.0802001953125, 0.07025146484375, 0.0080718994140625, -0.00283050537109375, 0.03662109375, 0.0289764404296875, -0.022369384765625, -0.016937255859375, -0.035308837890625, 0.01496124267578125, 0.0350341796875, 0.006072998046875, 0.010406494140625, -0.020538330078125, 0.08245849609375, -0.033966064453125, 0.0123138427734375, -0.007678985595703125, -0.06439208984375, 0.0135650634765625, -0.0236663818359375, 0.08831787109375, -0.0206146240234375, -0.059234619140625, -0.0016908645629882812, -0.0095672607421875, -0.043182373046875, 0.0222930908203125, 0.029510498046875, -0.04876708984375, 0.04937744140625, -0.004825592041015625, 0.0089263916015625, 0.008697509765625, -0.0254669189453125, 0.02203369140625, 0.01309967041015625, 0.0123443603515625, 0.01288604736328125, -0.0262451171875, -0.0034637451171875, -0.007904052734375, 0.015960693359375, 0.0166168212890625, 0.053497314453125, -0.008575439453125, 0.0218658447265625, 0.0097808837890625, 0.01132965087890625, -0.017120361328125, 0.018829345703125, -0.035736083984375, -0.007068634033203125, 0.01288604736328125, -0.011260986328125, 0.024322509765625, 0.0304718017578125, 0.01390838623046875, -0.025360107421875, -0.01219940185546875, -0.0263824462890625, 0.0166778564453125, 0.042999267578125, 0.0241546630859375, -0.00789642333984375, -0.0174560546875, -0.016998291015625, -0.00786590576171875, 0.03912353515625, 0.0291595458984375, -0.0369873046875, 0.0050048828125, -0.044342041015625, -0.0323486328125, 0.010528564453125, -0.01102447509765625, 0.004085540771484375, 0.022491455078125, -0.04205322265625, -0.0263519287109375, 0.00412750244140625, -0.002407073974609375, -0.01000213623046875, 0.0220489501953125, -0.01062774658203125, 0.00994873046875, -0.0579833984375, 0.0006995201110839844, 0.0178070068359375, 0.02734375, -0.030120849609375, -0.0047149658203125, 0.017333984375, 0.0030269622802734375, 0.01434326171875, -0.06378173828125, -0.0006732940673828125, -0.040771484375, -0.020111083984375, 0.0411376953125, -0.021636962890625, 0.0034847259521484375, -0.016082763671875, 0.0198974609375, 0.015716552734375, -0.01325225830078125, -0.0291290283203125, 0.0361328125, -0.047943115234375, 0.0330810546875, -0.034759521484375, 0.0227508544921875, -0.020660400390625, 0.004497528076171875, -0.048004150390625, -0.05950927734375, -0.04669189453125, 0.043182373046875, -0.051025390625, 0.0255889892578125, 0.0195465087890625, -0.0216217041015625, 0.00916290283203125, 0.03460693359375, 0.0240631103515625, 0.0938720703125, 0.00540924072265625, -0.039825439453125, -0.0223541259765625, 0.008514404296875, -0.00739288330078125, -0.0200347900390625, 0.0079193115234375, -0.046539306640625, -0.0280609130859375, 0.008819580078125, 0.0014123916625976562, 0.02655029296875, -0.03387451171875, -0.10015869140625, 0.049072265625, -0.01381683349609375, -0.04400634765625, 0.00716400146484375, 0.02813720703125, -0.032379150390625, 0.044830322265625, 0.0247039794921875, -0.0303497314453125, 0.034149169921875, 0.01117706298828125, -0.0035076141357421875, 0.018768310546875, 0.0244293212890625, -0.01020050048828125, -0.020477294921875, -0.0236358642578125, -0.0285186767578125, -0.0072479248046875, 0.055633544921875, -0.0236968994140625, 0.051605224609375, 0.036651611328125, -0.037689208984375, 0.0238189697265625, -0.035400390625, -0.03924560546875, -0.0227813720703125, -0.02557373046875, -0.05780029296875, -0.0135345458984375, 0.0814208984375, 0.08740234375, 0.0191192626953125, -0.039215087890625, -0.0153961181640625, -0.028350830078125, 0.0225067138671875, -0.01384735107421875, 0.000010371208190917969, -0.03857421875, -0.00445556640625, -0.007320404052734375, -0.0027561187744140625, -0.064208984375, -0.001995086669921875, -0.056976318359375, -0.0089263916015625, -0.023590087890625, 0.010101318359375, -0.023101806640625, -0.007793426513671875, 0.059295654296875, -0.0311431884765625, 0.01177978515625, -0.01248931884765625, 0.0281524658203125, 0.034088134765625, 0.0002720355987548828, 0.0168304443359375, 0.039581298828125, -0.029632568359375, 0.0017061233520507812, 0.03619384765625, -0.03265380859375, 0.0076141357421875, 0.01250457763671875, 0.002147674560546875, 0.01300811767578125, -0.01273345947265625, 0.0192718505859375, 0.0203094482421875, 0.0297088623046875, -0.01336669921875, 0.0242462158203125, -0.0179595947265625, -0.0262603759765625, -0.0172882080078125, 0.0024013519287109375, -0.0308685302734375, 0.0174407958984375, 0.0219573974609375, -0.037109375, 0.0137481689453125, 0.048614501953125, -0.010345458984375, -0.01413726806640625, 0.0158843994140625, 0.008544921875, 0.01055908203125, 0.0018215179443359375 ]
3abc80407b6d5619d2ca7dbe4fbbd92e0355190f
Wordpress Stackexchange Q: How can I add a custom script to footer of login page? I need to add this: <script> jQuery(window).load(function() { jQuery('.janrainContent').css('border','0px');jQuery('.janrainContent').css('width','252px');jQuery('#janrainAuthReturnExperience').css('width','252px'); }); </script> Right before the closing tag of the Wordpress login page's </body> tag. How do you do it? Would I use a combination of login_enqueue_scripts and wp_enqueue_scripts and set $in_footer to true? I'm not entirely sure how I would do that either... A: This is what ended up working for me: Put your script into a .js file and then: add_action( 'login_enqueue_scripts', 'enqueue_my_script' ); function enqueue_my_script( $page ) { wp_enqueue_script( 'my-script', 'http://domain.com/path/myjs-file.js', null, null, true ); }
Q: How can I add a custom script to footer of login page? I need to add this: <script> jQuery(window).load(function() { jQuery('.janrainContent').css('border','0px');jQuery('.janrainContent').css('width','252px');jQuery('#janrainAuthReturnExperience').css('width','252px'); }); </script> Right before the closing tag of the Wordpress login page's </body> tag. How do you do it? Would I use a combination of login_enqueue_scripts and wp_enqueue_scripts and set $in_footer to true? I'm not entirely sure how I would do that either... A: This is what ended up working for me: Put your script into a .js file and then: add_action( 'login_enqueue_scripts', 'enqueue_my_script' ); function enqueue_my_script( $page ) { wp_enqueue_script( 'my-script', 'http://domain.com/path/myjs-file.js', null, null, true ); }
wordpress
{ "language": "en", "length": 100, "provenance": "stackexchange_00019.jsonl.gz:431509", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/96524" }
[ 0.037353515625, 0.00943756103515625, -0.038299560546875, -0.04388427734375, 0.0157623291015625, -0.04949951171875, 0.0175018310546875, 0.0190887451171875, -0.0745849609375, -0.0095672607421875, -0.006404876708984375, 0.047882080078125, -0.0823974609375, -0.018096923828125, 0.0491943359375, -0.06597900390625, 0.044158935546875, -0.012939453125, 0.035308837890625, -0.014129638671875, 0.03057861328125, 0.01375579833984375, 0.0301361083984375, 0.08624267578125, 0.0126800537109375, -0.027801513671875, 0.1435546875, -0.0023860931396484375, 0.0255126953125, -0.005863189697265625, 0.032073974609375, -0.06585693359375, 0.02069091796875, 0.0197296142578125, -0.007251739501953125, 0.0082244873046875, 0.01024627685546875, 0.0052947998046875, 0.0171661376953125, 0.0244903564453125, 0.04425048828125, -0.0310516357421875, -0.0193634033203125, 0.028106689453125, -0.013671875, -0.046173095703125, 0.042572021484375, -0.03497314453125, 0.0276641845703125, -0.0012273788452148438, -0.0084381103515625, 0.0128936767578125, 0.001911163330078125, -0.0001373291015625, -0.0186004638671875, 0.015594482421875, -0.032135009765625, -0.0163116455078125, 0.01238250732421875, 0.08111572265625, 0.0284271240234375, 0.01305389404296875, -0.0220489501953125, -0.042144775390625, -0.0462646484375, -0.0260162353515625, -0.0565185546875, -0.00232696533203125, 0.01788330078125, -0.031982421875, 0.0156707763671875, 0.0064239501953125, 0.01165771484375, -0.0167388916015625, -0.0250091552734375, 0.01250457763671875, 0.006267547607421875, 0.01369476318359375, 0.013397216796875, -0.00981903076171875, -0.0269775390625, -0.0188751220703125, -0.0477294921875, -0.01032257080078125, -0.01495361328125, 0.007724761962890625, -0.0259246826171875, -0.005107879638671875, -0.030609130859375, -0.0355224609375, -0.023529052734375, -0.031158447265625, -0.0270233154296875, -0.00403594970703125, -0.0186767578125, -0.00774383544921875, 0.0117340087890625, 0.03192138671875, 0.008056640625, 0.0236053466796875, 0.018646240234375, -0.047515869140625, 0.04229736328125, -0.0377197265625, -0.0161895751953125, 0.050811767578125, 0.037384033203125, 0.01447296142578125, -0.0258941650390625, -0.0193328857421875, -0.0065460205078125, -0.04022216796875, -0.005462646484375, 0.01387786865234375, -0.038604736328125, -0.0008535385131835938, -0.015167236328125, -0.019805908203125, -0.0130462646484375, 0.0198516845703125, -0.015869140625, 0.02886962890625, -0.0196533203125, -0.005367279052734375, -0.004817962646484375, -0.0269317626953125, 0.016204833984375, -0.0147247314453125, 0.004390716552734375, 0.0233917236328125, -0.0265960693359375, 0.0174560546875, 0.05987548828125, 0.0218505859375, 0.004558563232421875, -0.0200347900390625, 0.0655517578125, -0.026031494140625, -0.0216064453125, 0.004505157470703125, 0.00876617431640625, -0.0149688720703125, -0.00823974609375, -0.020355224609375, -0.037078857421875, 0.0100250244140625, 0.01171875, 0.0236053466796875, -0.0116424560546875, -0.0286712646484375, 0.0186004638671875, -0.044769287109375, 0.004638671875, 0.017364501953125, -0.004467010498046875, 0.02496337890625, -0.002044677734375, 0.0026569366455078125, -0.01605224609375, 0.00861358642578125, -0.01361083984375, 0.0276336669921875, 0.0147857666015625, -0.044219970703125, -0.0281982421875, -0.06988525390625, 0.011688232421875, 0.00672149658203125, 0.0271759033203125, 0.061431884765625, -0.0217437744140625, -0.01097869873046875, 0.007579803466796875, 0.018798828125, -0.005924224853515625, 0.01030731201171875, -0.0049591064453125, 0.072509765625, 0.03857421875, -0.042694091796875, -0.0203399658203125, -0.05670166015625, 0.07635498046875, -0.0306549072265625, -0.0308380126953125, -0.025543212890625, 0.041961669921875, 0.0458984375, -0.018280029296875, 0.0268096923828125, 0.05316162109375, 0.008544921875, -0.03839111328125, 0.0020999908447265625, -0.0002970695495605469, -0.0175018310546875, -0.0313720703125, -0.0174102783203125, -0.0020046234130859375, 0.035247802734375, 0.00759124755859375, -0.032684326171875, 0.0176239013671875, -0.0008459091186523438, -0.00913238525390625, -0.014404296875, -0.008758544921875, 0.0160369873046875, 0.0038051605224609375, -0.01220703125, -0.01146697998046875, 0.018585205078125, 0.0014142990112304688, -0.05377197265625, -0.041473388671875, 0.0215911865234375, -0.0182342529296875, 0.08453369140625, -0.0024662017822265625, 0.027740478515625, 0.01349639892578125, -0.039764404296875, 0.035308837890625, 0.0067138671875, 0.0024318695068359375, -0.004100799560546875, -0.03375244140625, -0.01490020751953125, -0.004108428955078125, -0.002773284912109375, 0.007198333740234375, 0.07122802734375, 0.0161590576171875, 0.0377197265625, -0.048675537109375, -0.033538818359375, -0.037567138671875, -0.0103302001953125, 0.01548004150390625, 0.02984619140625, 0.026702880859375, 0.056304931640625, -0.0177001953125, 0.00937652587890625, 0.03179931640625, -0.03460693359375, 0.0079803466796875, 0.009674072265625, 0.020599365234375, 0.0287322998046875, -0.0106201171875, 0.00237274169921875, 0.01947021484375, -0.03631591796875, 0.0250396728515625, 0.039337158203125, -0.004238128662109375, 0.00341796875, -0.01421356201171875, 0.015777587890625, -0.008941650390625, -0.017669677734375, -0.01397705078125, -0.01776123046875, 0.00045299530029296875, -0.00948333740234375, 0.01390838623046875, 0.00525665283203125, -0.0166015625, 0.0002722740173339844, 0.013671875, -0.021148681640625, -0.0241546630859375, -0.01485443115234375, 0.03228759765625, -0.0285186767578125, -0.032073974609375, 0.0184478759765625, -0.00943756103515625, -0.01113128662109375, 0.0025348663330078125, 0.00659942626953125, -0.07733154296875, -0.0097808837890625, 0.029022216796875, -0.007404327392578125, -0.027557373046875, 0.040374755859375, 0.016815185546875, -0.0002295970916748047, 0.039154052734375, 0.0234832763671875, 0.006404876708984375, 0.0144195556640625, 0.01441192626953125, -0.033660888671875, 0.06341552734375, -0.0154876708984375, 0.03228759765625, -0.0167236328125, 0.037017822265625, 0.050384521484375, 0.0018377304077148438, 0.0000035762786865234375, 0.0024814605712890625, 0.0022296905517578125, -0.0034313201904296875, 0.005718231201171875, -0.0010709762573242188, -0.018035888671875, 0.004253387451171875, 0.04742431640625, 0.0194549560546875, 0.014129638671875, 0.0220947265625, -0.01198577880859375, -0.0014867782592773438, 0.0157470703125, -0.056640625, -0.07330322265625, -0.01268768310546875, -0.1385498046875, 0.052886962890625, -0.0145721435546875, -0.058685302734375, -0.029937744140625, 0.057708740234375, 0.0341796875, -0.036895751953125, -0.0229644775390625, -0.01116943359375, -0.0290985107421875, -0.0391845703125, 0.048065185546875, 0.017791748046875, 0.007080078125, 0.01380157470703125, 0.005588531494140625, 0.00617218017578125, -0.033721923828125, 0.01073455810546875, 0.0180511474609375, -0.0128631591796875, -0.0220794677734375, 0.019683837890625, -0.05340576171875, 0.000843048095703125, -0.004497528076171875, -0.046783447265625, -0.00658416748046875, 0.0226593017578125, -0.01824951171875, -0.049041748046875, -0.045928955078125, -0.0196685791015625, 0.043487548828125, 0.031768798828125, -0.03466796875, 0.0167083740234375, -0.06683349609375, 0.019683837890625, 0.01800537109375, 0.006053924560546875, -0.006229400634765625, 0.01364898681640625, -0.0555419921875, 0.0012302398681640625, -0.01409912109375, 0.0338134765625, 0.00010156631469726562, 0.00971221923828125, -0.00016880035400390625, 0.0219268798828125, -0.004062652587890625, 0.0170745849609375, -0.0284576416015625, 0.0462646484375, -0.02386474609375, 0.006443023681640625, 0.003513336181640625, 0.000514984130859375, -0.0096282958984375, -0.022918701171875, -0.032196044921875, -0.032806396484375, 0.025390625, -0.0019683837890625, 0.01557159423828125, -0.017822265625, -0.010772705078125, -0.0030803680419921875, 0.06951904296875, -0.021728515625, 0.0032634735107421875, 0.00998687744140625, 0.007785797119140625, -0.0509033203125, -0.03887939453125, -0.057647705078125, 0.005084991455078125, -0.063720703125, 0.0009832382202148438, -0.036346435546875, 0.002593994140625, -0.0237274169921875, 0.0038127899169921875, -0.0311126708984375, -0.061126708984375, 0.038970947265625, -0.0120849609375, -0.0117034912109375, 0.01531982421875, -0.02984619140625, -0.01212310791015625, -0.019073486328125, -0.00958251953125, -0.0665283203125, -0.00933074951171875, -0.0489501953125, 0.08685302734375, 0.047088623046875, -0.024169921875, 0.0012884140014648438, 0.04986572265625, -0.007137298583984375, 0.0006279945373535156, 0.026947021484375, 0.0208282470703125, 0.016845703125, -0.006343841552734375, 0.003917694091796875, -0.037506103515625, -0.01934814453125, -0.00013315677642822266, -0.03424072265625, -0.0081024169921875, 0.00785064697265625, -0.028839111328125, 0.0594482421875, -0.03204345703125, -0.01012420654296875, -0.0222625732421875, 0.02069091796875, 0.0022373199462890625, 0.019073486328125, -0.0167236328125, -0.0193023681640625, 0.012664794921875, -0.0037593841552734375, -0.00951385498046875, 0.0013856887817382812, 0.00971221923828125, 0.0308074951171875, 0.0223236083984375, -0.0005183219909667969, -0.0200347900390625, 0.05224609375, 0.038421630859375, -0.0218963623046875, 0.05859375, 0.0081939697265625, -0.0361328125, 0.1092529296875, 0.01119232177734375, 0.021087646484375, -0.01324462890625, 0.09124755859375, 0.0096282958984375, 0.0007963180541992188, 0.020233154296875, 0.013336181640625, -0.06707763671875, -0.01337432861328125, -0.018768310546875, 0.0271148681640625, 0.00152587890625, -0.0254974365234375, -0.019256591796875, 0.0186614990234375, 0.0202789306640625, -0.037261962890625, 0.00470733642578125, -0.032073974609375, 0.034820556640625, 0.0247344970703125, -0.003963470458984375, 0.01324462890625, 0.038299560546875, -0.01568603515625, -0.0036449432373046875, 0.00200653076171875, 0.01059722900390625, 0.00862884521484375, 0.037689208984375, 0.00238037109375, -0.02496337890625, -0.014068603515625, 0.07867431640625, 0.01300811767578125, -0.0301513671875, -0.0117034912109375, -0.0239105224609375, 0.03973388671875, -0.01052093505859375, 0.047637939453125, 0.047576904296875, -0.0165252685546875, -0.003559112548828125, -0.0287933349609375, 0.00974273681640625, 0.006504058837890625, -0.035797119140625, 0.0192108154296875, 0.0211334228515625, -0.0280609130859375, -0.054107666015625, 0.03619384765625, 0.0177001953125, -0.02532958984375, -0.00044798851013183594, 0.021331787109375, -0.0119476318359375, 0.0728759765625, 0.01560211181640625, -0.022918701171875, -0.01383209228515625, 0.0625, -0.02032470703125, -0.018890380859375, 0.01183319091796875, -0.009521484375, 0.01702880859375, -0.006397247314453125, -0.0039520263671875, 0.0400390625, -0.0165557861328125, -0.01068878173828125, 0.0089111328125, -0.017852783203125, -0.029388427734375, -0.0203399658203125, -0.042449951171875, -0.0020236968994140625, -0.00020110607147216797, 0.02459716796875, -0.00925445556640625, -0.01535797119140625, -0.00794219970703125, 0.0340576171875, -0.0139007568359375, -0.034332275390625, -0.0306243896484375, -0.01849365234375, -0.00507354736328125, -0.0110931396484375, -0.070068359375, -0.03564453125, 0.0015668869018554688, -0.003856658935546875, -0.0015106201171875, -0.004726409912109375, -0.002796173095703125, -0.019927978515625, 0.0015459060668945312, 0.02044677734375, 0.01282501220703125, 0.01493072509765625, -0.027252197265625, 0.0016145706176757812, -0.023223876953125, -0.0312042236328125, -0.037628173828125, -0.03289794921875, -0.01123046875, -0.0233917236328125, 0.006313323974609375, -0.00507354736328125, 0.014373779296875, -0.019866943359375, -0.032257080078125, 0.0025787353515625, 0.00865936279296875, 0.01080322265625, 0.040740966796875, -0.030120849609375, 0.056243896484375, 0.017913818359375, 0.01340484619140625, 0.00850677490234375, 0.050689697265625, 0.0200653076171875, -0.0232696533203125, 0.00670623779296875, -0.047760009765625, 0.0159454345703125, -0.0200958251953125, 0.0001895427703857422, 0.028839111328125, 0.0462646484375, 0.01444244384765625, 0.008697509765625, 0.011383056640625, 0.01067352294921875, -0.01085662841796875, 0.0147552490234375, 0.031890869140625, -0.008575439453125, 0.0723876953125, 0.0186767578125, 0.062744140625, -0.00847625732421875, -0.0038127899169921875, 0.0207366943359375, -0.0267181396484375, 0.04302978515625, -0.0208587646484375, -0.03558349609375, 0.04144287109375, 0.0595703125, 0.0116424560546875, 0.03631591796875, 0.0222930908203125, 0.0181121826171875, -0.003582000732421875, 0.01532745361328125, -0.0030956268310546875, -0.03680419921875, 0.0089263916015625, -0.0224761962890625, -0.0252532958984375, -0.024169921875, -0.0155029296875, -0.005794525146484375, 0.043060302734375, 0.0262298583984375, -0.08782958984375, 0.0244598388671875, -0.02703857421875, 0.0067138671875, 0.038726806640625, -0.0157012939453125, 0.023101806640625, 0.03448486328125, 0.0457763671875, 0.0253448486328125, 0.0004315376281738281, 0.042877197265625, 0.00421905517578125, -0.0126953125, -0.011871337890625, -0.031219482421875, 0.00844573974609375, -0.0389404296875, 0.03466796875, 0.03607177734375, 0.045745849609375, -0.004703521728515625, -0.005268096923828125, -0.0016117095947265625, -0.0172271728515625, -0.0181732177734375, 0.003467559814453125, -0.044281005859375, -0.010772705078125, 0.0121612548828125, -0.003139495849609375, 0.07049560546875, 0.0400390625, 0.0031147003173828125, -0.013031005859375, -0.0017786026000976562, 0.0404052734375, 0.01258087158203125, -0.0252838134765625, 0.03564453125, -0.0121917724609375, -0.03521728515625, 0.00916290283203125, -0.0019330978393554688, -0.046417236328125, -0.01216888427734375, -0.08111572265625, 0.0428466796875, -0.024444580078125, -0.0041656494140625, -0.00839996337890625, 0.0206756591796875, 0.0160980224609375, -0.01995849609375, 0.033477783203125, -0.09051513671875, -0.06427001953125, 0.008575439453125, -0.08203125, -0.038787841796875, -0.03643798828125, -0.0068359375, 0.11285400390625, -0.011322021484375, -0.0199127197265625, 0.01045989990234375, 0.07513427734375, -0.019561767578125, 0.07415771484375, -0.0117645263671875, 0.01446533203125, -0.01398468017578125, 0.0263671875, -0.00809478759765625, -0.011566162109375, 0.0266571044921875, 0.03228759765625, 0.01461029052734375, -0.0002963542938232422, -0.01026153564453125, -0.0303802490234375, 0.00933837890625, 0.06829833984375, 0.03173828125, -0.018707275390625, 0.01165771484375, 0.012969970703125, 0.003955841064453125, -0.0297698974609375, 0.014739990234375, -0.0283355712890625, -0.0352783203125, 0.024627685546875, -0.00438690185546875, -0.01343536376953125, -0.01041412353515625, 0.00777435302734375, -0.07708740234375, 0.02362060546875, 0.02581787109375, 0.0640869140625, 0.008941650390625, 0.051300048828125, 0.01166534423828125, -0.0025920867919921875, -0.06964111328125, -0.013031005859375, 0.0043487548828125, -0.0380859375, 0.00324249267578125, 0.004795074462890625, 0.0151214599609375, -0.000934600830078125, 0.00301361083984375, 0.005786895751953125, 0.0235137939453125, -0.00634765625, 0.0286865234375, 0.006687164306640625, 0.0281982421875, -0.037353515625, 0.0047760009765625, 0.0235443115234375, 0.03875732421875, -0.0343017578125, 0.00930023193359375, 0.007053375244140625, -0.00659942626953125, 0.024932861328125, -0.039886474609375, 0.040679931640625, -0.005367279052734375, -0.02276611328125, 0.01552581787109375, -0.0111236572265625, 0.00782012939453125, -0.003131866455078125, 0.0091400146484375, 0.0301666259765625, -0.01134490966796875, 0.0205078125, -0.02691650390625, 0.015777587890625, -0.0091705322265625, 0.0095367431640625, 0.025177001953125, 0.0221099853515625, 0.037750244140625, 0.0017747879028320312, -0.0154266357421875, 0.044464111328125, -0.0124359130859375, 0.0264434814453125, -0.01340484619140625, -0.002750396728515625, -0.0389404296875, 0.0272216796875, 0.0013942718505859375, 0.0079803466796875, 0.0237274169921875, -0.0030364990234375, -0.049530029296875, -0.0113677978515625, 0.01012420654296875, -0.034332275390625, 0.0254974365234375, 0.0261993408203125, 0.026092529296875, 0.039398193359375, -0.004909515380859375, -0.0221710205078125, 0.07574462890625, 0.04669189453125, -0.019439697265625, -0.01666259765625, 0.01480865478515625, -0.046630859375, 0.00513458251953125, 0.046600341796875, 0.057037353515625, 0.023223876953125, -0.01507568359375, 0.0093994140625, -0.02789306640625, -0.052703857421875, 0.034393310546875, 0.0460205078125, -0.01422119140625, 0.0071563720703125, 0.07257080078125, -0.0192718505859375, 0.00887298583984375, -0.0007023811340332031, 0.031097412109375, -0.023651123046875, 0.023590087890625, 0.019805908203125, -0.058746337890625, -0.0174102783203125, -0.00847625732421875, -0.00734710693359375, 0.0036334991455078125, 0.007389068603515625, 0.022735595703125, 0.006870269775390625, 0.031494140625, 0.0025386810302734375, 0.020538330078125, 0.015472412109375, 0.00955963134765625, -0.013031005859375, 0.00870513916015625, -0.0103302001953125, -0.05902099609375, 0.06646728515625, -0.01509857177734375, 0.047515869140625, 0.04058837890625, -0.0020961761474609375, -0.0026607513427734375, 0.0230865478515625, -0.03204345703125, -0.049591064453125, -0.05224609375, -0.0158233642578125, 0.01084136962890625, -0.03094482421875, -0.037628173828125, -0.006427764892578125, 0.0237274169921875, 0.00870513916015625, -0.019805908203125, 0.019287109375, -0.0228271484375, 0.024139404296875, 0.03350830078125, 0.01401519775390625, 0.01006317138671875, -0.0012073516845703125, -0.00849151611328125, 0.017669677734375, 0.0123291015625, -0.02337646484375, 0.031158447265625, -0.04022216796875, 0.048614501953125, 0.0836181640625, 0.07318115234375, 0.012939453125, 0.027313232421875, 0.040130615234375, -0.034881591796875, 0.03076171875, -0.04132080078125, -0.033905029296875, -0.0265655517578125, -0.00862884521484375, 0.0144500732421875, -0.006404876708984375, -0.032318115234375, -0.03387451171875, 0.04034423828125, 0.0179595947265625, 0.01273345947265625, -0.09771728515625, 0.051483154296875, -0.033721923828125, 0.0760498046875, -0.031494140625, 0.045166015625, -0.020233154296875, -0.0258636474609375, -0.033203125, 0.012451171875, -0.037628173828125, 0.0299224853515625, 0.015869140625, -0.015380859375, 0.0262451171875, 0.0036716461181640625, 0.0290985107421875, -0.0269775390625, 0.00479888916015625, 0.0235595703125, -0.06121826171875, -0.0185546875, 0.00872802734375, 0.027679443359375, -0.0162353515625, -0.046173095703125, -0.01552581787109375, 0.005306243896484375, 0.04034423828125, 0.0160675048828125, -0.0021533966064453125, 0.0174102783203125, -0.0213470458984375, -0.0809326171875, 0.04083251953125, -0.006710052490234375, -0.03631591796875, -0.05352783203125, 0.0088653564453125, 0.028900146484375, -0.01389312744140625, -0.038909912109375, -0.027984619140625, -0.033416748046875, 0.0111236572265625, 0.0207672119140625, 0.0231781005859375, 0.037445068359375, 0.00791168212890625, -0.0616455078125, 0.0037517547607421875, -0.001171112060546875, 0.023773193359375, -0.0249481201171875, 0.022247314453125, 0.011749267578125, 0.036651611328125, 0.0035247802734375, 0.00315093994140625, 0.0005054473876953125, -0.038970947265625, 0.007320404052734375, -0.011962890625, -0.007373809814453125, -0.012786865234375, 0.07940673828125, -0.034027099609375, 0.0005016326904296875, 0.01523590087890625, -0.059722900390625, -0.06475830078125, 0.006977081298828125, -0.02862548828125, -0.0004336833953857422, -0.0560302734375, 0.0266876220703125, -0.00891876220703125, 0.0049285888671875, -0.02581787109375, -0.0095977783203125, -0.02410888671875, -0.0111541748046875, 0.024658203125, 0.01453399658203125, -0.00310516357421875, 0.01544189453125, 0.13037109375, -0.05999755859375, 0.02264404296875, 0.0245361328125, 0.009979248046875, 0.0987548828125, -0.00395965576171875, -0.0213165283203125, 0.0291900634765625, -0.044464111328125, 0.007022857666015625, -0.0089263916015625, 0.030487060546875, -0.04351806640625, 0.008575439453125, 0.004009246826171875, 0.0224456787109375, -0.01352691650390625, 0.03900146484375, -0.0028858184814453125, 0.0009813308715820312, -0.01300811767578125, 0.025634765625, -0.076171875, -0.0357666015625, -0.043731689453125, -0.01401519775390625, 0.019500732421875, 0.0238189697265625, 0.091552734375, 0.00026154518127441406, -0.01110076904296875, -0.0230865478515625, -0.023284912109375, -0.0693359375, 0.02056884765625, -0.02020263671875, -0.00289154052734375, 0.0255279541015625 ]
6858bfc19e18dab1631d3d9e15b8db2c53860a9a
Wordpress Stackexchange Q: Wordpress Export Import Site Navigation Menu When I do an export and import the menus get transferred but I have to set the Site Navigation Menu manualy. Obviously it's only a small detail but can I ask is this a bug or expected behaviour and is there any way to include the site navigation menu selection in the export file. The same thing is the case for custom menu widgets. A: The data for Currently Active Menus is not included in the exports (by default). This is because there is no guarantee the importing site will have the same theme (or same named menus). If changing the menus was a big deal, you could export/import all the data straight out of the database. (This option is strongly discouraged!)
Q: Wordpress Export Import Site Navigation Menu When I do an export and import the menus get transferred but I have to set the Site Navigation Menu manualy. Obviously it's only a small detail but can I ask is this a bug or expected behaviour and is there any way to include the site navigation menu selection in the export file. The same thing is the case for custom menu widgets. A: The data for Currently Active Menus is not included in the exports (by default). This is because there is no guarantee the importing site will have the same theme (or same named menus). If changing the menus was a big deal, you could export/import all the data straight out of the database. (This option is strongly discouraged!)
wordpress
{ "language": "en", "length": 129, "provenance": "stackexchange_00019.jsonl.gz:431526", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/96575" }
[ 0.0273895263671875, 0.005214691162109375, 0.04425048828125, 0.07757568359375, 0.0024738311767578125, -0.037933349609375, 0.1180419921875, -0.07879638671875, 0.021697998046875, -0.0249786376953125, -0.03338623046875, -0.00719451904296875, -0.06036376953125, -0.034942626953125, -0.0002968311309814453, -0.05084228515625, 0.0187225341796875, -0.002483367919921875, 0.0009241104125976562, -0.010406494140625, -0.0108489990234375, 0.0124969482421875, -0.0084686279296875, 0.00995635986328125, 0.053009033203125, 0.004241943359375, -0.060821533203125, 0.0210418701171875, 0.017333984375, 0.0177764892578125, 0.025360107421875, -0.02532958984375, -0.00020635128021240234, 0.0035858154296875, 0.0214691162109375, 0.0009112358093261719, 0.0170135498046875, 0.007663726806640625, 0.0191650390625, 0.00954437255859375, 0.0004763603210449219, 0.0003330707550048828, 0.02685546875, -0.031890869140625, 0.0016326904296875, -0.032958984375, 0.00742340087890625, -0.052825927734375, -0.003955841064453125, -0.01123809814453125, 0.02362060546875, -0.014068603515625, 0.041412353515625, 0.00469207763671875, -0.0212860107421875, -0.01316070556640625, -0.048858642578125, 0.041534423828125, 0.029266357421875, 0.03167724609375, -0.0217742919921875, -0.0038814544677734375, -0.007183074951171875, -0.04876708984375, 0.0113525390625, 0.0031681060791015625, 0.01016998291015625, -0.0006513595581054688, -0.085205078125, 0.01177978515625, 0.067626953125, -0.04669189453125, 0.005229949951171875, 0.039276123046875, -0.03704833984375, -0.0278778076171875, 0.01020050048828125, -0.0203399658203125, 0.037139892578125, 0.01349639892578125, -0.0255584716796875, 0.04644775390625, -0.059844970703125, -0.06793212890625, 0.039276123046875, -0.017822265625, -0.01372528076171875, -0.0146942138671875, 0.01346588134765625, -0.0070953369140625, 0.0010833740234375, 0.0214996337890625, -0.0303802490234375, 0.0555419921875, 0.0101776123046875, -0.0170135498046875, -0.0262298583984375, 0.036773681640625, 0.0005478858947753906, 0.0693359375, -0.031829833984375, -0.01910400390625, 0.053466796875, -0.05401611328125, 0.0096435546875, 0.032989501953125, -0.0122528076171875, -0.0252838134765625, 0.04949951171875, 0.0255126953125, 0.0012292861938476562, 0.048858642578125, 0.0235595703125, -0.0290374755859375, -0.010101318359375, 0.0015888214111328125, 0.0153350830078125, 0.0059661865234375, 0.01116943359375, -0.009735107421875, -0.004730224609375, 0.03424072265625, -0.06805419921875, -0.001529693603515625, -0.0199432373046875, -0.0309600830078125, 0.0157623291015625, 0.02490234375, -0.035919189453125, 0.0280609130859375, -0.0145111083984375, 0.0007200241088867188, 0.026611328125, 0.050323486328125, 0.0015325546264648438, -0.0195465087890625, 0.04150390625, -0.007320404052734375, -0.01108551025390625, 0.0198516845703125, -0.0157470703125, -0.00907135009765625, -0.018035888671875, -0.042388916015625, 0.036834716796875, -0.0205078125, 0.01303863525390625, 0.034820556640625, 0.024139404296875, 0.01739501953125, 0.005001068115234375, 0.0011720657348632812, 0.0182037353515625, 0.017791748046875, -0.0179595947265625, -0.041015625, 0.0005412101745605469, -0.032745361328125, 0.032073974609375, -0.04058837890625, -0.036590576171875, -0.00952911376953125, 0.020416259765625, -0.06689453125, -0.055938720703125, 0.0016984939575195312, -0.023529052734375, -0.005100250244140625, 0.0208282470703125, 0.03564453125, -0.045928955078125, -0.04583740234375, 0.00007575750350952148, 0.0266876220703125, -0.01251983642578125, 0.058319091796875, 0.0158233642578125, -0.043243408203125, 0.01291656494140625, 0.042510986328125, -0.0092315673828125, -0.0238800048828125, 0.00809478759765625, -0.005268096923828125, -0.051971435546875, 0.0098419189453125, -0.0009236335754394531, 0.054046630859375, 0.042083740234375, 0.0268402099609375, 0.0004439353942871094, -0.0352783203125, -0.020538330078125, -0.045135498046875, -0.004077911376953125, 0.01203155517578125, 0.0240936279296875, 0.01297760009765625, 0.00782012939453125, 0.01019287109375, -0.02374267578125, -0.0064544677734375, -0.0037822723388671875, 0.00887298583984375, -0.02471923828125, -0.006023406982421875, -0.01171875, 0.0283203125, 0.039794921875, 0.022552490234375, -0.011260986328125, 0.0227813720703125, -0.021575927734375, 0.00838470458984375, -0.0312042236328125, 0.0282440185546875, 0.003936767578125, 0.025421142578125, 0.00384521484375, -0.0104217529296875, -0.00417327880859375, -0.00333404541015625, -0.002384185791015625, 0.0430908203125, -0.004673004150390625, -0.006923675537109375, -0.028778076171875, -0.01517486572265625, -0.0208282470703125, -0.01409912109375, 0.035888671875, 0.05023193359375, -0.0013408660888671875, 0.0267181396484375, -0.0190277099609375, -0.0023593902587890625, 0.0005769729614257812, -0.014678955078125, 0.01309967041015625, 0.02783203125, 0.033355712890625, 0.0439453125, -0.002658843994140625, -0.0015783309936523438, 0.037750244140625, -0.0177154541015625, 0.0267181396484375, -0.00472259521484375, -0.01255035400390625, 0.03558349609375, 0.013153076171875, 0.0010833740234375, 0.01534271240234375, -0.0157928466796875, -0.006801605224609375, 0.0279388427734375, -0.0280303955078125, -0.04412841796875, 0.0125732421875, -0.0144195556640625, 0.0168609619140625, -0.0174407958984375, -0.01194000244140625, -0.0012750625610351562, 0.00946044921875, 0.01319122314453125, 0.01522064208984375, 0.002681732177734375, -0.02276611328125, -0.000408172607421875, 0.0290679931640625, 0.006229400634765625, 0.001178741455078125, 0.04254150390625, 0.0491943359375, 0.04296875, -0.003772735595703125, -0.04718017578125, -0.00931549072265625, 0.04461669921875, -0.025787353515625, -0.0135040283203125, 0.035675048828125, -0.002651214599609375, -0.0002391338348388672, -0.051544189453125, 0.0517578125, -0.0169830322265625, -0.035247802734375, -0.01093292236328125, 0.0310516357421875, 0.0033817291259765625, -0.032318115234375, 0.00713348388671875, -0.0335693359375, -0.009307861328125, 0.068603515625, -0.003681182861328125, -0.0059814453125, 0.018798828125, 0.05841064453125, 0.04656982421875, 0.005069732666015625, -0.0004286766052246094, -0.005504608154296875, 0.00839996337890625, 0.01172637939453125, 0.0008168220520019531, -0.00673675537109375, -0.01953125, -0.040863037109375, 0.0005898475646972656, 0.003986358642578125, -0.01580810546875, -0.047027587890625, -0.0404052734375, -0.05023193359375, -0.05084228515625, -0.08770751953125, -0.0300445556640625, -0.0224456787109375, -0.034454345703125, 0.01617431640625, 0.007228851318359375, -0.0015459060668945312, -0.020538330078125, 0.0304107666015625, 0.0229339599609375, 0.04296875, -0.04150390625, -0.06903076171875, -0.0701904296875, -0.10650634765625, -0.046417236328125, -0.00028228759765625, 0.0036258697509765625, -0.003376007080078125, 0.0188751220703125, -0.0020160675048828125, -0.045318603515625, -0.0225982666015625, 0.036041259765625, -0.0200347900390625, -0.0352783203125, 0.0269622802734375, -0.0279998779296875, -0.0010175704956054688, 0.006465911865234375, 0.04132080078125, 0.0280914306640625, -0.03192138671875, -0.005847930908203125, 0.0088958740234375, 0.0269775390625, 0.012237548828125, 0.01371002197265625, 0.00017178058624267578, 0.017852783203125, -0.002338409423828125, -0.02410888671875, -0.01210784912109375, 0.0273895263671875, -0.0245819091796875, -0.021636962890625, 0.0188751220703125, -0.035736083984375, -0.003009796142578125, -0.01126861572265625, 0.0092926025390625, 0.00528717041015625, 0.0030231475830078125, -0.01006317138671875, -0.0004825592041015625, -0.01513671875, -0.0112762451171875, -0.0141754150390625, 0.060882568359375, -0.0067291259765625, 0.0494384765625, 0.038787841796875, 0.017852783203125, -0.0044097900390625, 0.0118255615234375, -0.0294342041015625, -0.040863037109375, 0.032440185546875, -0.02392578125, 0.005645751953125, -0.0116729736328125, -0.0159149169921875, 0.0302581787109375, 0.09625244140625, -0.0389404296875, -0.023773193359375, 0.0031261444091796875, 0.0196075439453125, 0.0134735107421875, -0.024993896484375, 0.004001617431640625, -0.033660888671875, -0.058624267578125, 0.00244903564453125, -0.0160064697265625, -0.03460693359375, 0.00968170166015625, -0.07159423828125, -0.019134521484375, -0.0494384765625, 0.0285491943359375, 0.0286102294921875, 0.046051025390625, -0.0129547119140625, 0.01316070556640625, -0.0224151611328125, -0.00756072998046875, -0.0029735565185546875, -0.051605224609375, 0.0020427703857421875, -0.054229736328125, 0.039093017578125, 0.0243072509765625, 0.01074981689453125, -0.0245513916015625, 0.01058197021484375, -0.005390167236328125, 0.0026836395263671875, 0.01145172119140625, 0.0052032470703125, 0.018096923828125, 0.0203704833984375, 0.004619598388671875, -0.0178680419921875, 0.004032135009765625, -0.0272369384765625, -0.086669921875, -0.0270538330078125, -0.006992340087890625, 0.0159912109375, 0.036041259765625, -0.038177490234375, -0.053436279296875, -0.019866943359375, 0.0242919921875, 0.0107421875, 0.035552978515625, -0.0231170654296875, -0.021759033203125, -0.045562744140625, -0.0146331787109375, -0.022430419921875, -0.0160675048828125, 0.0301513671875, 0.04229736328125, 0.016082763671875, 0.0132904052734375, -0.03045654296875, -0.0059356689453125, 0.018707275390625, -0.01678466796875, 0.0335693359375, 0.0234527587890625, 0.003711700439453125, 0.0034027099609375, -0.005596160888671875, 0.022430419921875, -0.038909912109375, 0.01297760009765625, -0.00103759765625, 0.00209808349609375, 0.001605987548828125, -0.0030612945556640625, 0.027313232421875, 0.05389404296875, 0.02734375, -0.049591064453125, -0.023773193359375, 0.049468994140625, 0.023712158203125, -0.02679443359375, -0.05291748046875, 0.0400390625, -0.0273895263671875, 0.022674560546875, 0.04376220703125, 0.01788330078125, 0.0003199577331542969, -0.0258636474609375, 0.032318115234375, 0.001514434814453125, 0.01023101806640625, 0.0012760162353515625, -0.005886077880859375, 0.01444244384765625, 0.030517578125, -0.00650787353515625, 0.007595062255859375, -0.00511932373046875, 0.03564453125, 0.0300445556640625, -0.0178985595703125, -0.053009033203125, 0.007167816162109375, 0.042144775390625, -0.0110931396484375, 0.0214385986328125, 0.0426025390625, 0.006992340087890625, -0.03521728515625, -0.0157928466796875, -0.004364013671875, -0.01309967041015625, -0.049468994140625, -0.0200958251953125, -0.0028324127197265625, -0.0113983154296875, 0.03106689453125, 0.020721435546875, -0.03778076171875, 0.0386962890625, -0.0031871795654296875, -0.005847930908203125, -0.02008056640625, 0.032562255859375, 0.00826263427734375, -0.00861358642578125, 0.01261138916015625, 0.0208282470703125, 0.034881591796875, -0.011810302734375, 0.0433349609375, -0.0195159912109375, 0.0178375244140625, 0.00724029541015625, -0.01526641845703125, 0.02490234375, -0.06268310546875, -0.01003265380859375, 0.061309814453125, -0.0367431640625, -0.09228515625, -0.037353515625, -0.008148193359375, 0.021575927734375, -0.0555419921875, -0.005367279052734375, 0.006351470947265625, -0.002796173095703125, -0.0213775634765625, 0.0223541259765625, -0.060882568359375, 0.0010852813720703125, 0.0186004638671875, -0.01763916015625, -0.0187225341796875, 0.0262603759765625, -0.0906982421875, 0.00942230224609375, -0.04010009765625, -0.0251007080078125, 0.07293701171875, 0.0007081031799316406, 0.007251739501953125, -0.035980224609375, -0.01003265380859375, -0.042388916015625, -0.016143798828125, 0.04412841796875, -0.0022430419921875, 0.00650787353515625, 0.0036830902099609375, -0.044219970703125, -0.0182647705078125, 0.02618408203125, -0.0167388916015625, -0.0218658447265625, -0.0445556640625, 0.0232696533203125, 0.0207061767578125, 0.0263824462890625, -0.0106201171875, 0.011993408203125, 0.0041656494140625, -0.00014483928680419922, -0.01221466064453125, -0.020782470703125, 0.07574462890625, 0.0232696533203125, 0.032623291015625, 0.0178070068359375, 0.0184478759765625, -0.043182373046875, 0.010101318359375, -0.007457733154296875, 0.0123748779296875, -0.01435089111328125, -0.0166778564453125, 0.05120849609375, 0.03802490234375, 0.074951171875, -0.0030574798583984375, 0.040008544921875, -0.017303466796875, 0.01407623291015625, -0.0194091796875, -0.0025768280029296875, -0.04248046875, -0.030548095703125, 0.06396484375, -0.007770538330078125, 0.0120086669921875, -0.016571044921875, 0.001461029052734375, 0.002887725830078125, -0.00943756103515625, 0.005130767822265625, -0.0157928466796875, -0.055908203125, 0.04364013671875, 0.06268310546875, -0.0086517333984375, 0.02777099609375, 0.0069427490234375, 0.0030117034912109375, 0.0182647705078125, 0.007785797119140625, -0.0135345458984375, 0.0154266357421875, -0.0224151611328125, -0.0322265625, 0.0100860595703125, -0.042327880859375, -0.008636474609375, 0.036163330078125, 0.07244873046875, 0.1009521484375, -0.09100341796875, 0.00824737548828125, 0.048004150390625, -0.0189361572265625, -0.0013303756713867188, -0.0002180337905883789, -0.0279998779296875, -0.057098388671875, -0.0002048015594482422, 0.01593017578125, -0.0236968994140625, -0.00859832763671875, 0.003681182861328125, -0.00308990478515625, -0.00444793701171875, 0.0122222900390625, 0.0003981590270996094, -0.0155029296875, -0.036163330078125, 0.0004940032958984375, -0.0178985595703125, -0.026123046875, 0.02099609375, -0.027984619140625, 0.0220184326171875, -0.02252197265625, 0.025970458984375, -0.054718017578125, 0.0305023193359375, -0.0038661956787109375, 0.00959014892578125, 0.036529541015625, 0.0283660888671875, -0.00518035888671875, 0.0029582977294921875, -0.0094146728515625, 0.05230712890625, 0.048095703125, 0.01297760009765625, 0.042755126953125, 0.0015935897827148438, 0.019287109375, -0.0015621185302734375, 0.0169677734375, -0.049560546875, -0.02642822265625, -0.0156707763671875, 0.1021728515625, -0.042816162109375, -0.034210205078125, 0.01236724853515625, 0.01177215576171875, -0.0023136138916015625, 0.0013856887817382812, 0.10205078125, -0.0382080078125, -0.0156707763671875, 0.033843994140625, 0.0013856887817382812, -0.0731201171875, -0.019500732421875, -0.039886474609375, 0.09661865234375, -0.0096282958984375, 0.0087127685546875, 0.0160980224609375, 0.048095703125, -0.0188751220703125, 0.04461669921875, -0.0299224853515625, 0.06781005859375, 0.07830810546875, 0.00763702392578125, -0.034454345703125, -0.016510009765625, -0.0156097412109375, 0.03009033203125, -0.042388916015625, -0.0107879638671875, 0.0106201171875, 0.030303955078125, 0.06976318359375, 0.039581298828125, 0.0386962890625, 0.0006461143493652344, -0.0211639404296875, 0.01557159423828125, 0.03961181640625, -0.045318603515625, 0.01354217529296875, 0.002376556396484375, -0.02435302734375, -0.017913818359375, -0.01461029052734375, -0.02777099609375, -0.00786590576171875, -0.001678466796875, 0.04034423828125, -0.0254364013671875, -0.04791259765625, -0.00534820556640625, -0.0010118484497070312, -0.005611419677734375, -0.0034542083740234375, -0.04888916015625, 0.006053924560546875, -0.02862548828125, 0.031341552734375, -0.0037822723388671875, 0.01512908935546875, 0.023345947265625, 0.01291656494140625, 0.039794921875, -0.02178955078125, 0.007843017578125, 0.009033203125, -0.00785064697265625, 0.03143310546875, 0.025360107421875, 0.049407958984375, 0.0001747608184814453, -0.0188446044921875, -0.00262451171875, 0.03924560546875, -0.00215911865234375, -0.045440673828125, 0.0174102783203125, 0.0177764892578125, -0.00025534629821777344, 0.02642822265625, 0.0292205810546875, -0.021240234375, 0.029022216796875, 0.032135009765625, -0.004161834716796875, 0.01442718505859375, -0.0194549560546875, 0.0262451171875, 0.07965087890625, -0.0019626617431640625, 0.02191162109375, -0.0460205078125, 0.0631103515625, 0.031890869140625, 0.0301971435546875, -0.04437255859375, 0.07781982421875, -0.026702880859375, 0.005023956298828125, -0.005634307861328125, 0.01361083984375, -0.01306915283203125, 0.0106353759765625, -0.04339599609375, -0.035552978515625, -0.0033206939697265625, 0.043212890625, -0.01268768310546875, 0.0296478271484375, 0.056854248046875, 0.041961669921875, -0.05499267578125, -0.0276031494140625, 0.0300445556640625, -0.03424072265625, -0.028167724609375, -0.032470703125, 0.058807373046875, 0.07843017578125, 0.0372314453125, 0.0094451904296875, 0.0267791748046875, 0.0845947265625, -0.0457763671875, 0.063232421875, -0.0235748291015625, -0.0209503173828125, 0.0472412109375, 0.00887298583984375, 0.1080322265625, 0.011688232421875, -0.07452392578125, -0.037811279296875, -0.004528045654296875, 0.03143310546875, -0.0104522705078125, 0.0224456787109375, 0.0202178955078125, 0.0177001953125, 0.054229736328125, -0.00963592529296875, 0.00347900390625, 0.00949859619140625, 0.012725830078125, 0.042205810546875, 0.036041259765625, 0.0421142578125, -0.051910400390625, -0.0361328125, -0.0276336669921875, 0.042266845703125, 0.04803466796875, -0.01531219482421875, 0.04620361328125, 0.039337158203125, 0.035736083984375, -0.0015468597412109375, -0.0011196136474609375, 0.0070037841796875, -0.00881195068359375, -0.026123046875, 0.01540374755859375, -0.016937255859375, -0.0738525390625, -0.0188140869140625, 0.0472412109375, -0.019561767578125, -0.01010894775390625, -0.002796173095703125, 0.019500732421875, -0.024627685546875, 0.00914764404296875, -0.023162841796875, -0.0007491111755371094, 0.0298614501953125, -0.0203704833984375, 0.00836944580078125, -0.00707244873046875, 0.0281982421875, 0.00966644287109375, 0.0202789306640625, -0.033294677734375, 0.0102081298828125, -0.0014801025390625, 0.007755279541015625, 0.0206451416015625, 0.031829833984375, -0.024139404296875, 0.032318115234375, -0.0078887939453125, -0.0017328262329101562, 0.02423095703125, 0.035736083984375, 0.0173797607421875, -0.036346435546875, 0.0246124267578125, 0.039794921875, 0.0430908203125, -0.0290374755859375, 0.0175018310546875, 0.031829833984375, 0.00045680999755859375, -0.00022220611572265625, -0.0333251953125, -0.0328369140625, -0.03656005859375, -0.0006351470947265625, 0.027923583984375, -0.0307464599609375, -0.01375579833984375, -0.06561279296875, -0.0030727386474609375, 0.0267333984375, 0.0172882080078125, -0.051025390625, 0.0364990234375, -0.005504608154296875, 0.0143585205078125, -0.0196533203125, 0.0008897781372070312, -0.01488494873046875, -0.032684326171875, -0.0217132568359375, -0.014801025390625, -0.0233154296875, 0.045135498046875, -0.002979278564453125, 0.006343841552734375, 0.039276123046875, -0.03155517578125, 0.0082855224609375, 0.0009927749633789062, 0.0113983154296875, 0.03826904296875, 0.019012451171875, -0.058074951171875, -0.0285186767578125, -0.01253509521484375, 0.05194091796875, 0.0182647705078125, 0.001964569091796875, -0.025787353515625, -0.0141754150390625, 0.01342010498046875, -0.042572021484375, -0.034088134765625, -0.06329345703125, -0.09246826171875, 0.046722412109375, 0.0081024169921875, -0.048126220703125, 0.01381683349609375, 0.00066375732421875, -0.0148468017578125, -0.021392822265625, -0.0014009475708007812, -0.01238250732421875, 0.027587890625, 0.034332275390625, 0.0127410888671875, 0.0679931640625, -0.01093292236328125, -0.002655029296875, -0.03997802734375, 0.0026950836181640625, -0.0098724365234375, 0.0294952392578125, 0.00698089599609375, -0.0173797607421875, 0.0283660888671875, 0.042633056640625, -0.035430908203125, -0.06304931640625, -0.0024776458740234375, 0.00495147705078125, -0.01473236083984375, 0.0296783447265625, -0.04522705078125, 0.01421356201171875, 0.074951171875, 0.089111328125, 0.0137939453125, -0.043212890625, -0.0024967193603515625, 0.005802154541015625, 0.025787353515625, -0.029083251953125, -0.0082550048828125, -0.05792236328125, -0.0435791015625, 0.0015363693237304688, -0.00794219970703125, 0.00011408329010009766, -0.0145416259765625, -0.0296173095703125, 0.00018668174743652344, 0.014495849609375, 0.021240234375, -0.058837890625, -0.034942626953125, 0.0238800048828125, -0.0182952880859375, -0.012054443359375, 0.0112762451171875, 0.015228271484375, -0.0017290115356445312, 0.043304443359375, -0.034454345703125, 0.006137847900390625, -0.035552978515625, -0.01183319091796875, -0.0242462158203125, 0.06158447265625, -0.00969696044921875, 0.01302337646484375, 0.015960693359375, 0.0021648406982421875, 0.0033512115478515625, 0.015716552734375, -0.023162841796875, 0.03515625, -0.0174102783203125, 0.002696990966796875, -0.00904083251953125, 0.046539306640625, -0.006404876708984375, 0.054168701171875, -0.0374755859375, -0.00008064508438110352, -0.0038852691650390625, -0.039276123046875, 0.0041656494140625, 0.0155792236328125, 0.002773284912109375, -0.0289764404296875, 0.0146026611328125, 0.0081634521484375, -0.0031681060791015625, 0.0114288330078125 ]
b92bd17de5bb16be2a4c0146ab75ee3686e9e680
Wordpress Stackexchange Q: Move WordPress from /blog folder to root but leave post at /blog I am working on a WordPress blog for a client. Currently they have around 3,000 posts. The WordPress is installed at /blog/ I need to move the WordPress install to the Root directory but still have the Blog posts show up at /blog/ so after I move the blog, all the Post URLs will remain the same. I have to do this regardless of how I do it this has to be the outcome. I'm hoping for an easier method though. Any ideas? A: * *Create an empty page with the slug blog. *Go to Settings/Reading and set that page as Posts page. *Go to Settings/Permalinks and set the URL pattern to /blog/%postname%/. That should do it.
Q: Move WordPress from /blog folder to root but leave post at /blog I am working on a WordPress blog for a client. Currently they have around 3,000 posts. The WordPress is installed at /blog/ I need to move the WordPress install to the Root directory but still have the Blog posts show up at /blog/ so after I move the blog, all the Post URLs will remain the same. I have to do this regardless of how I do it this has to be the outcome. I'm hoping for an easier method though. Any ideas? A: * *Create an empty page with the slug blog. *Go to Settings/Reading and set that page as Posts page. *Go to Settings/Permalinks and set the URL pattern to /blog/%postname%/. That should do it.
wordpress
{ "language": "en", "length": 130, "provenance": "stackexchange_00019.jsonl.gz:431535", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/96597" }
[ 0.029937744140625, 0.01264190673828125, 0.0175323486328125, 0.05572509765625, -0.00435638427734375, -0.03460693359375, 0.058807373046875, -0.08685302734375, 0.001232147216796875, 0.00250244140625, 0.004436492919921875, 0.0027790069580078125, -0.0193328857421875, -0.04547119140625, 0.0141754150390625, -0.0204620361328125, 0.0421142578125, -0.0180511474609375, 0.037200927734375, -0.005863189697265625, 0.022430419921875, 0.018035888671875, 0.0546875, 0.024383544921875, 0.01311492919921875, -0.004791259765625, 0.045654296875, -0.027618408203125, -0.0099029541015625, -0.04296875, 0.006999969482421875, 0.0299530029296875, 0.00798797607421875, 0.0098114013671875, 0.00247955322265625, -0.03460693359375, 0.0197296142578125, 0.0009670257568359375, -0.00559234619140625, 0.0267333984375, 0.01953125, -0.01436614990234375, -0.0018968582153320312, 0.033538818359375, 0.00311279296875, -0.0518798828125, 0.032379150390625, -0.060882568359375, 0.016326904296875, -0.06378173828125, 0.007354736328125, 0.04681396484375, 0.028411865234375, -0.0328369140625, -0.02520751953125, 0.00826263427734375, 0.01568603515625, 0.0117645263671875, 0.01021575927734375, -0.035064697265625, -0.0255279541015625, 0.0355224609375, 0.017303466796875, 0.0268096923828125, -0.00106048583984375, 0.001453399658203125, 0.036651611328125, 0.0247344970703125, -0.10791015625, -0.020294189453125, 0.060150146484375, -0.04840087890625, -0.00954437255859375, -0.03350830078125, -0.0008044242858886719, -0.006435394287109375, 0.0030422210693359375, -0.03515625, 0.0003199577331542969, 0.0191650390625, -0.038421630859375, 0.0006508827209472656, 0.03253173828125, -0.072265625, 0.0110321044921875, -0.031890869140625, -0.0215301513671875, 0.006008148193359375, -0.021942138671875, -0.032562255859375, -0.021453857421875, 0.01849365234375, -0.07196044921875, 0.0312042236328125, -0.0105133056640625, 0.0092926025390625, -0.027618408203125, 0.00391387939453125, -0.00983428955078125, 0.029998779296875, -0.037750244140625, -0.00009590387344360352, 0.0018053054809570312, -0.025543212890625, -0.010162353515625, 0.039306640625, 0.00556182861328125, 0.0226287841796875, 0.047149658203125, 0.01947021484375, -0.00040030479431152344, 0.01541900634765625, -0.02532958984375, -0.02447509765625, -0.0274505615234375, 0.051055908203125, -0.0310211181640625, -0.0008816719055175781, 0.0022830963134765625, 0.016510009765625, -0.01325225830078125, 0.0207366943359375, -0.051422119140625, 0.00555419921875, -0.01325225830078125, -0.03399658203125, -0.009857177734375, 0.0247955322265625, -0.017578125, 0.041015625, -0.02496337890625, 0.01308441162109375, 0.0234222412109375, 0.003627777099609375, -0.014129638671875, -0.034515380859375, 0.002246856689453125, -0.021026611328125, -0.010955810546875, 0.0102386474609375, 0.02886962890625, -0.05035400390625, -0.0302886962890625, 0.01568603515625, 0.0335693359375, 0.039947509765625, 0.0188140869140625, -0.00423431396484375, -0.0053863525390625, -0.037200927734375, 0.0013952255249023438, -0.01274871826171875, 0.047027587890625, -0.01120758056640625, 0.01490020751953125, -0.0731201171875, 0.021697998046875, -0.07037353515625, 0.037628173828125, -0.0545654296875, 0.01171875, 0.018280029296875, 0.048583984375, -0.02728271484375, -0.055267333984375, -0.0172119140625, -0.050262451171875, -0.0165252685546875, 0.0010328292846679688, -0.02728271484375, -0.03948974609375, 0.0105438232421875, 0.01299285888671875, -0.031524658203125, 0.004024505615234375, 0.015960693359375, 0.015411376953125, -0.0196533203125, 0.00437164306640625, 0.0865478515625, 0.01824951171875, -0.0170440673828125, -0.0088958740234375, 0.0184326171875, -0.01412200927734375, 0.01477813720703125, 0.03070068359375, 0.0160369873046875, -0.0308074951171875, 0.021240234375, 0.037078857421875, 0.054534912109375, -0.0310821533203125, 0.0418701171875, -0.01483154296875, -0.0250091552734375, 0.01099395751953125, 0.0207366943359375, -0.006755828857421875, -0.026031494140625, -0.038787841796875, 0.034637451171875, -0.012298583984375, 0.04638671875, 0.0275726318359375, 0.0200653076171875, 0.0037288665771484375, 0.0216217041015625, 0.01558685302734375, 0.00960540771484375, 0.0104522705078125, 0.0183258056640625, -0.00836181640625, -0.07232666015625, -0.0509033203125, 0.0178985595703125, -0.0180206298828125, -0.011749267578125, -0.02490234375, 0.019927978515625, -0.04193115234375, 0.00046324729919433594, -0.06671142578125, -0.01332855224609375, 0.041961669921875, -0.053009033203125, -0.01200103759765625, -0.049713134765625, -0.036041259765625, 0.002292633056640625, -0.126708984375, 0.064208984375, 0.0040283203125, -0.009490966796875, -0.041168212890625, 0.0089874267578125, -0.007354736328125, -0.01177978515625, -0.00005239248275756836, 0.039886474609375, 0.00952911376953125, 0.0218048095703125, 0.0007953643798828125, 0.03814697265625, 0.0168914794921875, -0.031158447265625, 0.0182037353515625, 0.017181396484375, 0.0026149749755859375, 0.042938232421875, 0.032135009765625, 0.003910064697265625, -0.0048065185546875, -0.0633544921875, 0.01113128662109375, 0.0297698974609375, -0.0087127685546875, 0.004566192626953125, -0.002635955810546875, -0.00128173828125, 0.0018787384033203125, -0.01491546630859375, -0.0221405029296875, -0.01251220703125, -0.00952911376953125, 0.0135345458984375, 0.0018548965454101562, 0.0193328857421875, -0.055633544921875, 0.00457763671875, 0.036956787109375, 0.059844970703125, -0.0032672882080078125, 0.0299224853515625, 0.018524169921875, -0.007808685302734375, -0.0159912109375, -0.0014829635620117188, -0.00408935546875, 0.0159454345703125, -0.02410888671875, 0.0067901611328125, -0.0121917724609375, -0.00797271728515625, -0.0303497314453125, -0.034759521484375, 0.030059814453125, 0.041290283203125, -0.031219482421875, -0.0008435249328613281, 0.0010595321655273438, 0.041961669921875, -0.00960540771484375, 0.0205230712890625, 0.04412841796875, -0.0007176399230957031, 0.06494140625, -0.055633544921875, 0.042999267578125, -0.014984130859375, 0.050262451171875, 0.059234619140625, 0.038360595703125, -0.01483154296875, 0.00624847412109375, 0.052825927734375, 0.0272979736328125, -0.011993408203125, -0.00580596923828125, 0.00405120849609375, -0.047210693359375, -0.0233001708984375, 0.0182037353515625, 0.0210113525390625, -0.0157470703125, -0.025970458984375, -0.007770538330078125, -0.00479888916015625, -0.065185546875, -0.072998046875, -0.04132080078125, -0.06109619140625, -0.00267791748046875, 0.007556915283203125, -0.030303955078125, -0.00473785400390625, 0.03106689453125, 0.0165557861328125, -0.0201873779296875, -0.0067138671875, -0.03662109375, -0.034576416015625, -0.04400634765625, 0.005462646484375, -0.00933074951171875, 0.002872467041015625, 0.00872039794921875, 0.0352783203125, -0.009307861328125, -0.08050537109375, -0.0308837890625, 0.072265625, -0.012298583984375, -0.006580352783203125, 0.020416259765625, -0.033905029296875, -0.007656097412109375, -0.0034465789794921875, 0.05975341796875, 0.028411865234375, -0.036224365234375, 0.01415252685546875, -0.02301025390625, -0.010284423828125, -0.025146484375, -0.0474853515625, 0.0302276611328125, -0.0290069580078125, -0.0743408203125, -0.076171875, -0.040130615234375, -0.0030422210693359375, -0.03179931640625, 0.0245208740234375, 0.0093841552734375, -0.00037479400634765625, -0.01406097412109375, 0.040374755859375, -0.0011587142944335938, 0.01406097412109375, 0.024810791015625, 0.0014581680297851562, 0.0037899017333984375, -0.021026611328125, -0.01934814453125, -0.0340576171875, 0.01531982421875, -0.0253753662109375, 0.0017852783203125, -0.00046539306640625, -0.004932403564453125, -0.0165252685546875, -0.00601959228515625, -0.027740478515625, -0.05224609375, 0.046478271484375, -0.028533935546875, -0.0213623046875, 0.0012359619140625, -0.0204925537109375, 0.033966064453125, 0.0794677734375, -0.08245849609375, -0.008819580078125, 0.0157012939453125, 0.002407073974609375, 0.00638580322265625, -0.0007266998291015625, -0.073974609375, -0.03009033203125, -0.025604248046875, -0.01544952392578125, -0.00402069091796875, -0.0232391357421875, -0.00237274169921875, -0.0265960693359375, -0.000705718994140625, -0.03253173828125, 0.03546142578125, 0.00146484375, 0.05487060546875, -0.03839111328125, 0.03759765625, -0.012847900390625, -0.01053619384765625, -0.01291656494140625, -0.07391357421875, -0.0239715576171875, 0.0250091552734375, 0.038330078125, -0.0367431640625, 0.0213623046875, -0.01477813720703125, 0.0439453125, -0.05389404296875, 0.031982421875, -0.028961181640625, 0.03887939453125, -0.04180908203125, -0.01331329345703125, -0.03302001953125, -0.026763916015625, -0.0156707763671875, -0.049041748046875, -0.025238037109375, -0.0031299591064453125, -0.00913238525390625, 0.029541015625, 0.0079345703125, -0.0037097930908203125, -0.02166748046875, -0.0167388916015625, -0.0085906982421875, 0.036895751953125, -0.0160980224609375, 0.0107269287109375, -0.02423095703125, -0.0318603515625, 0.0225372314453125, -0.034881591796875, 0.0175323486328125, 0.00286865234375, 0.09423828125, 0.00878143310546875, 0.0114593505859375, 0.001255035400390625, 0.016387939453125, 0.0120391845703125, 0.03314208984375, 0.059814453125, 0.018402099609375, 0.01519012451171875, 0.01861572265625, -0.014312744140625, -0.007640838623046875, -0.00333404541015625, 0.016143798828125, 0.006298065185546875, -0.00145721435546875, -0.006587982177734375, 0.00524139404296875, 0.0224609375, 0.0234222412109375, -0.0242462158203125, -0.016326904296875, -0.052001953125, 0.04718017578125, -0.01085662841796875, 0.034637451171875, -0.061614990234375, -0.08447265625, 0.0341796875, -0.0364990234375, -0.0006847381591796875, -0.0238189697265625, 0.00757598876953125, 0.06146240234375, 0.0258941650390625, -0.00434112548828125, 0.043701171875, 0.0171966552734375, 0.03564453125, 0.041473388671875, 0.01016998291015625, -0.0013217926025390625, 0.00670623779296875, -0.005550384521484375, 0.027130126953125, 0.027618408203125, -0.0300445556640625, 0.006786346435546875, -0.003047943115234375, 0.01462554931640625, -0.0003914833068847656, -0.0452880859375, 0.04736328125, 0.026214599609375, -0.01525115966796875, 0.0028858184814453125, -0.06231689453125, -0.02667236328125, -0.0618896484375, -0.007770538330078125, -0.020904541015625, -0.004467010498046875, 0.0478515625, -0.00901031494140625, -0.004238128662109375, 0.0143585205078125, -0.020233154296875, -0.001735687255859375, -0.0058441162109375, 0.0221710205078125, 0.01824951171875, 0.0034332275390625, -0.00762176513671875, 0.007724761962890625, 0.01517486572265625, -0.01165771484375, 0.017608642578125, 0.01184844970703125, 0.036956787109375, 0.024658203125, -0.0172271728515625, 0.0031948089599609375, -0.0340576171875, 0.007568359375, 0.027923583984375, -0.01904296875, -0.058380126953125, 0.004299163818359375, 0.0135955810546875, 0.02374267578125, -0.048492431640625, 0.002048492431640625, -0.05145263671875, -0.0301055908203125, -0.02301025390625, 0.0303955078125, -0.0220184326171875, -0.01174163818359375, -0.0247802734375, -0.032928466796875, 0.0025634765625, 0.0014286041259765625, -0.0038890838623046875, -0.024139404296875, 0.005367279052734375, -0.01161956787109375, 0.0291748046875, 0.023834228515625, 0.03045654296875, -0.0268402099609375, -0.0263519287109375, 0.011627197265625, -0.0008764266967773438, 0.035247802734375, -0.0127105712890625, -0.05810546875, 0.0142974853515625, -0.040802001953125, -0.006992340087890625, -0.00411224365234375, -0.0443115234375, -0.049713134765625, -0.03045654296875, 0.0128173828125, 0.0084381103515625, -0.0027599334716796875, -0.037872314453125, -0.0133056640625, -0.0018262863159179688, 0.0178985595703125, -0.0333251953125, -0.032501220703125, 0.048980712890625, 0.0019702911376953125, 0.0242919921875, -0.0027866363525390625, 0.0257415771484375, 0.004535675048828125, -0.006999969482421875, 0.0293426513671875, -0.0159759521484375, -0.0220184326171875, -0.0182342529296875, -0.01467132568359375, -0.00350189208984375, 0.038665771484375, -0.01910400390625, -0.0107879638671875, 0.0006709098815917969, 0.00878143310546875, -0.0170135498046875, 0.0009303092956542969, 0.004756927490234375, 0.0195770263671875, -0.02313232421875, 0.00643157958984375, 0.052825927734375, -0.0207366943359375, 0.00846099853515625, -0.0252532958984375, -0.00261688232421875, -0.0189361572265625, 0.0159454345703125, -0.0194549560546875, 0.02606201171875, 0.0694580078125, 0.018310546875, 0.050872802734375, 0.0396728515625, 0.0321044921875, 0.006977081298828125, -0.02154541015625, 0.024383544921875, 0.0125885009765625, 0.03631591796875, -0.001743316650390625, -0.0157928466796875, 0.027313232421875, -0.037261962890625, 0.0181427001953125, 0.05078125, 0.051910400390625, -0.06671142578125, -0.00605010986328125, -0.005298614501953125, -0.0218353271484375, 0.03631591796875, -0.01309967041015625, -0.0082244873046875, -0.02685546875, -0.01226043701171875, 0.0024204254150390625, -0.047271728515625, -0.028656005859375, -0.004703521728515625, 0.000293731689453125, 0.0230865478515625, 0.0251007080078125, 0.004833221435546875, -0.037628173828125, -0.01213836669921875, 0.020751953125, -0.0028476715087890625, 0.009857177734375, 0.002960205078125, 0.0135650634765625, -0.01611328125, -0.047271728515625, 0.014495849609375, -0.0684814453125, -0.016204833984375, 0.00836181640625, -0.005634307861328125, 0.036163330078125, 0.037750244140625, -0.01128387451171875, -0.0012369155883789062, -0.00511932373046875, 0.003383636474609375, -0.019317626953125, 0.0002753734588623047, 0.039764404296875, -0.01038360595703125, -0.00853729248046875, 0.01904296875, -0.024566650390625, -0.056854248046875, -0.0111541748046875, -0.041015625, 0.050506591796875, -0.031707763671875, -0.0151519775390625, 0.019439697265625, 0.014251708984375, -0.00836181640625, 0.0014972686767578125, 0.0469970703125, -0.049407958984375, -0.01371002197265625, 0.01397705078125, 0.00731658935546875, -0.019287109375, -0.00738525390625, -0.048675537109375, 0.10345458984375, -0.0178070068359375, 0.0237884521484375, -0.00036525726318359375, 0.044769287109375, -0.007640838623046875, 0.04559326171875, -0.034820556640625, 0.04864501953125, 0.029083251953125, 0.0235748291015625, -0.02423095703125, 0.00855255126953125, 0.0022792816162109375, -0.005191802978515625, 0.074951171875, 0.01373291015625, -0.0506591796875, -0.00868988037109375, 0.059967041015625, 0.0633544921875, 0.0246429443359375, 0.0343017578125, 0.0005927085876464844, 0.05413818359375, 0.0221405029296875, -0.02081298828125, 0.03704833984375, -0.0034313201904296875, -0.058624267578125, 0.01519012451171875, 0.006866455078125, 0.002117156982421875, -0.0187530517578125, -0.0233612060546875, -0.024871826171875, -0.002635955810546875, 0.01209259033203125, -0.0265655517578125, 0.026519775390625, 0.01270294189453125, 0.024200439453125, -0.0287933349609375, 0.005889892578125, -0.01230621337890625, 0.043426513671875, -0.0025501251220703125, 0.044647216796875, 0.00563812255859375, 0.0226593017578125, 0.050048828125, -0.033782958984375, 0.017578125, 0.0172576904296875, -0.061920166015625, 0.065185546875, 0.0836181640625, 0.035675048828125, 0.0251312255859375, 0.035064697265625, 0.01438140869140625, 0.05718994140625, -0.051666259765625, 0.0311431884765625, 0.0108489990234375, 0.01476287841796875, -0.005039215087890625, -0.0638427734375, -0.0212554931640625, -0.03338623046875, -0.028900146484375, -0.02667236328125, -0.0128326416015625, -0.00731658935546875, 0.0199127197265625, -0.0189361572265625, -0.00019037723541259766, -0.0028591156005859375, -0.016021728515625, 0.01439666748046875, -0.010345458984375, 0.01727294921875, -0.0038433074951171875, -0.017547607421875, 0.01447296142578125, -0.00624847412109375, 0.02020263671875, 0.0006642341613769531, 0.0250091552734375, 0.004245758056640625, -0.003997802734375, -0.0262908935546875, -0.0518798828125, 0.038177490234375, 0.035980224609375, 0.01421356201171875, 0.040985107421875, 0.035858154296875, 0.0265960693359375, 0.0004725456237792969, -0.00504302978515625, 0.0194244384765625, -0.0177459716796875, 0.028045654296875, -0.0053863525390625, 0.035491943359375, 0.0026035308837890625, -0.0153961181640625, -0.03973388671875, 0.022979736328125, 0.04107666015625, 0.004688262939453125, 0.01415252685546875, 0.0111083984375, 0.01329803466796875, 0.055877685546875, 0.0284881591796875, 0.01076507568359375, 0.04095458984375, -0.00481414794921875, -0.0175933837890625, 0.0060882568359375, -0.0162811279296875, -0.0017442703247070312, 0.033447265625, 0.007556915283203125, 0.00513458251953125, 0.02734375, -0.0207061767578125, -0.01367950439453125, 0.0308990478515625, 0.0081787109375, 0.047637939453125, 0.045135498046875, 0.038482666015625, -0.070556640625, -0.0723876953125, -0.060577392578125, 0.0892333984375, 0.0239105224609375, 0.11920166015625, -0.0300750732421875, 0.037628173828125, -0.0296630859375, -0.0036163330078125, 0.00665283203125, -0.004543304443359375, -0.041839599609375, 0.024322509765625, 0.0178680419921875, -0.00524139404296875, -0.06146240234375, -0.01396942138671875, 0.034271240234375, -0.0241851806640625, 0.0076141357421875, -0.045318603515625, 0.03277587890625, -0.016143798828125, -0.0037479400634765625, -0.03936767578125, -0.058441162109375, -0.0626220703125, -0.0000019669532775878906, 0.006526947021484375, -0.02130126953125, -0.0440673828125, 0.053985595703125, 0.033416748046875, -0.0172882080078125, 0.036590576171875, -0.054046630859375, 0.060882568359375, 0.0328369140625, 0.0306243896484375, -0.057830810546875, 0.0245513916015625, -0.01551055908203125, 0.00005424022674560547, 0.0084991455078125, 0.0673828125, 0.0128631591796875, -0.021575927734375, -0.0567626953125, -0.0308380126953125, 0.0137176513671875, 0.00011396408081054688, 0.00997161865234375, -0.0631103515625, 0.00782012939453125, -0.01325225830078125, 0.006542205810546875, -0.0196685791015625, 0.00466156005859375, -0.0249176025390625, 0.007465362548828125, -0.0239715576171875, -0.04931640625, -0.06817626953125, -0.00850677490234375, 0.0260009765625, 0.00006258487701416016, -0.033721923828125, 0.0167236328125, -0.021636962890625, -0.0000985264778137207, -0.02056884765625, -0.0138702392578125, 0.005847930908203125, 0.029754638671875, -0.018280029296875, -0.0174713134765625, -0.0283050537109375, 0.00970458984375, -0.0196075439453125, 0.037445068359375, 0.04461669921875, -0.031341552734375, 0.024017333984375, 0.01561737060546875, 0.0202178955078125, 0.06475830078125, -0.00589752197265625, -0.037506103515625, -0.0234375, 0.006771087646484375, 0.0050201416015625, -0.039520263671875, 0.01377105712890625, -0.055084228515625, -0.020233154296875, -0.050811767578125, -0.005657196044921875, -0.01141357421875, -0.050201416015625, -0.0679931640625, 0.00982666015625, -0.0106201171875, -0.031524658203125, -0.02874755859375, -0.01427459716796875, -0.0142822265625, 0.06768798828125, 0.0076446533203125, -0.043182373046875, -0.02227783203125, 0.0237274169921875, 0.011077880859375, 0.050262451171875, -0.00234222412109375, 0.0263214111328125, 0.046875, 0.050079345703125, 0.035797119140625, -0.011199951171875, 0.021728515625, -0.0033893585205078125, 0.04510498046875, 0.082275390625, -0.0019626617431640625, 0.0452880859375, -0.003841400146484375, -0.060791015625, -0.0218963623046875, -0.0167388916015625, -0.027496337890625, 0.003204345703125, 0.09393310546875, 0.061309814453125, 0.02484130859375, -0.04241943359375, -0.04986572265625, -0.03326416015625, -0.0233001708984375, -0.004119873046875, 0.0239410400390625, -0.05694580078125, 0.034576416015625, 0.00045490264892578125, -0.005481719970703125, 0.00634002685546875, -0.03363037109375, -0.011627197265625, -0.00487518310546875, 0.0240325927734375, 0.0228424072265625, -0.020721435546875, -0.03802490234375, 0.042724609375, -0.005092620849609375, 0.045257568359375, -0.01177215576171875, 0.034759521484375, 0.0545654296875, 0.0307159423828125, -0.0122833251953125, -0.009307861328125, -0.007843017578125, 0.02734375, -0.0003180503845214844, 0.03424072265625, -0.0184326171875, -0.00494384765625, 0.0071563720703125, 0.008392333984375, -0.006378173828125, -0.001705169677734375, 0.006805419921875, 0.0300445556640625, -0.0209503173828125, 0.06817626953125, 0.01430511474609375, 0.0021915435791015625, -0.00629425048828125, 0.0672607421875, -0.053436279296875, -0.018218994140625, -0.03045654296875, -0.044525146484375, -0.01187896728515625, -0.0132293701171875, -0.0175018310546875, -0.050872802734375, 0.01079559326171875, 0.005168914794921875, -0.004978179931640625, 0.0168304443359375 ]
7991a99cde6271d9e25ffe08932838b0bd0ecc91
Wordpress Stackexchange Q: Should I remove install.php and install-helper.php? Is keeping wp-admin/install.php and wp-admin/install-helper.php a security leak on the newer versions of wordpress? By default file permission on those files are 644. If there is any leak, what kind of please? A: No, there is no security risk. Both files do sanity checks before anything happens. If WordPress is already installed: * *install-helper.php returns just a blank page. *install.php says WordPress is installed and you should log in: You can forbid access to both files with a simple rule in your .htaccess above the permalink rules: RedirectMatch Permanent wp-admin/install(-helper)?\.php / This will redirect all requests to these files to the home page.
Q: Should I remove install.php and install-helper.php? Is keeping wp-admin/install.php and wp-admin/install-helper.php a security leak on the newer versions of wordpress? By default file permission on those files are 644. If there is any leak, what kind of please? A: No, there is no security risk. Both files do sanity checks before anything happens. If WordPress is already installed: * *install-helper.php returns just a blank page. *install.php says WordPress is installed and you should log in: You can forbid access to both files with a simple rule in your .htaccess above the permalink rules: RedirectMatch Permanent wp-admin/install(-helper)?\.php / This will redirect all requests to these files to the home page. A: # nginx configuration location ~ wp-admin/install(-helper)?\.php { rewrite ^(.*)$ / redirect; }
wordpress
{ "language": "en", "length": 123, "provenance": "stackexchange_00019.jsonl.gz:431543", "question_score": "16", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/96620" }
[ 0.056060791015625, 0.0104827880859375, 0.0032672882080078125, -0.040863037109375, 0.0207672119140625, -0.032318115234375, 0.036590576171875, -0.03387451171875, -0.01250457763671875, 0.005279541015625, 0.00954437255859375, -0.0025844573974609375, -0.0194549560546875, -0.0372314453125, 0.0134429931640625, -0.0274810791015625, 0.030731201171875, 0.00432586669921875, 0.053802490234375, 0.009002685546875, 0.02294921875, 0.03936767578125, 0.035491943359375, 0.0286712646484375, -0.017486572265625, 0.03271484375, 0.045257568359375, -0.0180816650390625, -0.03521728515625, -0.040985107421875, -0.0158538818359375, 0.032928466796875, -0.01264190673828125, 0.059326171875, -0.033905029296875, -0.055450439453125, -0.0086212158203125, 0.0401611328125, 0.00473785400390625, 0.0118560791015625, 0.001476287841796875, 0.00934600830078125, 0.0225372314453125, -0.0032253265380859375, -0.0235595703125, -0.03314208984375, 0.022216796875, -0.0016126632690429688, 0.016204833984375, -0.0236053466796875, 0.00830078125, -0.0203704833984375, 0.0246734619140625, -0.03973388671875, -0.02691650390625, -0.016571044921875, 0.0276641845703125, 0.0254058837890625, 0.0271453857421875, -0.0274505615234375, -0.046173095703125, 0.0214080810546875, 0.0173187255859375, -0.0216522216796875, -0.0016231536865234375, -0.010894775390625, -0.01128387451171875, 0.0165252685546875, -0.08892822265625, -0.0032138824462890625, 0.05609130859375, -0.050079345703125, 0.002490997314453125, -0.05126953125, 0.0223541259765625, 0.025146484375, -0.0150909423828125, 0.0027179718017578125, 0.0017795562744140625, 0.00641632080078125, -0.0147552490234375, -0.01009368896484375, 0.000141143798828125, -0.02349853515625, 0.01531982421875, 0.018585205078125, -0.0078125, -0.007137298583984375, 0.04931640625, -0.026031494140625, 0.00804901123046875, -0.045623779296875, 0.0513916015625, 0.036590576171875, -0.0313720703125, -0.0382080078125, 0.0382080078125, 0.054229736328125, -0.01235198974609375, -0.0100555419921875, 0.0037097930908203125, -0.03448486328125, -0.0175323486328125, -0.015380859375, 0.00946044921875, 0.058197021484375, -0.016632080078125, -0.025177001953125, 0.014862060546875, 0.0180511474609375, 0.0036945343017578125, -0.004932403564453125, -0.034210205078125, -0.08502197265625, 0.01522064208984375, 0.086669921875, -0.004100799560546875, 0.020660400390625, 0.0301971435546875, 0.04150390625, -0.0286712646484375, 0.0038089752197265625, -0.018951416015625, -0.05267333984375, 0.007171630859375, -0.0222625732421875, -0.01326751708984375, 0.0061492919921875, -0.041259765625, 0.0552978515625, -0.01824951171875, -0.0247650146484375, 0.0216827392578125, 0.0258941650390625, -0.0021953582763671875, -0.030731201171875, -0.01055908203125, 0.047698974609375, 0.01557159423828125, -0.0022373199462890625, -0.00394439697265625, -0.03814697265625, 0.00608062744140625, 0.0020923614501953125, 0.000029921531677246094, 0.0154571533203125, 0.0010051727294921875, 0.0322265625, 0.0162506103515625, -0.0306549072265625, 0.01441192626953125, -0.039154052734375, 0.01503753662109375, 0.002696990966796875, -0.00624847412109375, 0.0029010772705078125, -0.03570556640625, 0.00966644287109375, -0.00914764404296875, 0.007457733154296875, -0.004138946533203125, -0.01519775390625, -0.0149383544921875, -0.02227783203125, -0.030975341796875, 0.004150390625, -0.0037059783935546875, 0.01200103759765625, 0.016693115234375, -0.0018815994262695312, 0.01300811767578125, -0.06939697265625, -0.01023101806640625, 0.0176239013671875, 0.01302337646484375, 0.057220458984375, 0.05029296875, -0.0030803680419921875, 0.0071258544921875, 0.0263214111328125, -0.024810791015625, -0.02508544921875, 0.061614990234375, -0.05023193359375, -0.070556640625, -0.0104217529296875, 0.0066375732421875, 0.01320648193359375, 0.049560546875, 0.00418853759765625, 0.08331298828125, -0.006656646728515625, -0.0008006095886230469, 0.00811004638671875, -0.018646240234375, 0.005126953125, -0.01454925537109375, 0.01306915283203125, -0.0159149169921875, -0.0106658935546875, 0.0144500732421875, -0.0034351348876953125, -0.0261993408203125, 0.004001617431640625, -0.024200439453125, -0.0196990966796875, -0.005817413330078125, 0.0101470947265625, -0.05511474609375, 0.0089263916015625, 0.02880859375, -0.01483154296875, -0.037506103515625, 0.02349853515625, -0.00461578369140625, -0.02655029296875, -0.033203125, 0.08111572265625, -0.007740020751953125, 0.06439208984375, -0.0171661376953125, -0.06622314453125, 0.0176239013671875, -0.01154327392578125, 0.0028705596923828125, 0.00485992431640625, -0.01166534423828125, 0.0036945343017578125, 0.040618896484375, -0.0104827880859375, 0.078857421875, 0.01425933837890625, 0.0016012191772460938, 0.0083770751953125, -0.018829345703125, -0.01477813720703125, -0.0015516281127929688, -0.1259765625, 0.0280914306640625, 0.0682373046875, 0.033203125, 0.07037353515625, -0.0080108642578125, -0.019622802734375, 0.038055419921875, -0.039215087890625, 0.023193359375, -0.04364013671875, -0.0036602020263671875, 0.041839599609375, 0.022857666015625, 0.0234222412109375, -0.00644683837890625, 0.006099700927734375, -0.00406646728515625, 0.0186767578125, -0.049896240234375, -0.047454833984375, 0.0006575584411621094, -0.002941131591796875, 0.01739501953125, -0.052947998046875, -0.002895355224609375, -0.0185394287109375, -0.034423828125, -0.01702880859375, -0.0000832676887512207, 0.005733489990234375, 0.0003573894500732422, -0.048797607421875, 0.01468658447265625, 0.0250701904296875, -0.013031005859375, 0.0080718994140625, 0.046600341796875, -0.043121337890625, -0.039306640625, -0.0025177001953125, 0.0175323486328125, -0.006862640380859375, 0.0033588409423828125, 0.00873565673828125, -0.0195159912109375, -0.004550933837890625, -0.0012111663818359375, -0.04156494140625, 0.01500701904296875, 0.03955078125, 0.0073089599609375, 0.0284881591796875, 0.038970947265625, 0.0247650146484375, -0.00983428955078125, 0.0224609375, -0.004657745361328125, 0.0012693405151367188, 0.040130615234375, -0.0112762451171875, -0.00030803680419921875, 0.0022106170654296875, 0.0653076171875, 0.05340576171875, 0.042144775390625, -0.0241851806640625, 0.0004868507385253906, 0.0081939697265625, 0.00925445556640625, -0.00003439188003540039, -0.016387939453125, -0.0002982616424560547, -0.049957275390625, -0.0133056640625, 0.0066986083984375, 0.0391845703125, -0.031585693359375, -0.044891357421875, -0.0197906494140625, 0.001308441162109375, -0.054443359375, -0.033050537109375, -0.0628662109375, -0.045257568359375, 0.0122833251953125, 0.035491943359375, -0.0171356201171875, 0.00061798095703125, 0.044403076171875, 0.02423095703125, 0.0098724365234375, -0.021392822265625, -0.01270294189453125, -0.03155517578125, -0.057769775390625, -0.0208892822265625, 0.01483154296875, 0.00463104248046875, -0.0117950439453125, 0.056304931640625, -0.0169677734375, -0.0584716796875, -0.043914794921875, -0.0215606689453125, 0.00559234619140625, 0.00681304931640625, -0.01442718505859375, -0.01033782958984375, 0.040863037109375, 0.007122039794921875, 0.012298583984375, 0.0013179779052734375, 0.01558685302734375, -0.048919677734375, -0.006526947021484375, -0.01515960693359375, 0.0066680908203125, -0.007049560546875, -0.0128326416015625, -0.0271759033203125, -0.034576416015625, -0.0736083984375, 0.019989013671875, 0.00785064697265625, -0.00801849365234375, 0.054931640625, 0.006633758544921875, -0.051177978515625, 0.0645751953125, -0.047576904296875, 0.0263824462890625, 0.0259857177734375, -0.0015668869018554688, -0.006641387939453125, 0.03363037109375, 0.005939483642578125, 0.025726318359375, -0.0153045654296875, 0.0014591217041015625, -0.0396728515625, 0.045135498046875, 0.00385284423828125, -0.001422882080078125, 0.0139923095703125, -0.0296173095703125, -0.00408172607421875, -0.07086181640625, 0.05804443359375, 0.00263214111328125, 0.03143310546875, -0.045074462890625, -0.035430908203125, -0.005252838134765625, 0.1123046875, -0.039306640625, -0.00968170166015625, 0.0074615478515625, 0.01358795166015625, -0.0694580078125, -0.0161285400390625, -0.05706787109375, 0.005619049072265625, -0.045074462890625, 0.01161956787109375, 0.006725311279296875, -0.0210418701171875, -0.01490020751953125, 0.0131072998046875, -0.0196380615234375, -0.031341552734375, 0.0164337158203125, -0.004802703857421875, 0.018341064453125, 0.006977081298828125, 0.0285797119140625, -0.01513671875, 0.020904541015625, -0.041046142578125, -0.0784912109375, -0.032928466796875, 0.0225677490234375, 0.0640869140625, -0.034576416015625, 0.0465087890625, -0.048492431640625, 0.033294677734375, -0.045745849609375, -0.005634307861328125, -0.007965087890625, 0.037567138671875, -0.044097900390625, 0.0011758804321289062, -0.0029735565185546875, -0.0189361572265625, -0.0148468017578125, -0.0245208740234375, -0.04400634765625, -0.04473876953125, -0.0279388427734375, -0.00412750244140625, 0.032562255859375, -0.0174560546875, -0.031341552734375, -0.013336181640625, -0.0167999267578125, -0.01885986328125, -0.02130126953125, 0.004802703857421875, 0.006107330322265625, -0.00951385498046875, 0.0120391845703125, -0.02984619140625, -0.0092620849609375, 0.0083465576171875, 0.04345703125, 0.016510009765625, 0.000032007694244384766, -0.0210723876953125, 0.032257080078125, 0.03717041015625, -0.00937652587890625, 0.08746337890625, 0.0810546875, 0.0060577392578125, -0.001995086669921875, 0.0273284912109375, 0.002864837646484375, -0.0318603515625, 0.03826904296875, 0.01421356201171875, -0.0211029052734375, 0.040557861328125, 0.01302337646484375, 0.037628173828125, 0.00390625, -0.00013959407806396484, -0.006870269775390625, -0.02911376953125, 0.004116058349609375, -0.0146636962890625, 0.029541015625, -0.005950927734375, -0.0284423828125, 0.0204315185546875, -0.03375244140625, 0.0162811279296875, -0.02008056640625, 0.0169525146484375, -0.008514404296875, 0.00106048583984375, 0.003086090087890625, -0.00047588348388671875, -0.004390716552734375, 0.0016508102416992188, 0.0192108154296875, 0.01227569580078125, 0.0010347366333007812, -0.01549530029296875, -0.0056915283203125, 0.038055419921875, -0.0037288665771484375, -0.0389404296875, -0.019256591796875, -0.00472259521484375, 0.043548583984375, 0.019775390625, 0.0008602142333984375, 0.04144287109375, 0.0199432373046875, -0.045562744140625, -0.034454345703125, -0.033782958984375, -0.00887298583984375, -0.053192138671875, -0.02276611328125, 0.004974365234375, -0.0245361328125, 0.00992584228515625, -0.007415771484375, -0.03753662109375, 0.0008816719055175781, 0.0145416259765625, 0.034332275390625, 0.03338623046875, -0.0003161430358886719, -0.028228759765625, 0.0382080078125, 0.04095458984375, -0.041107177734375, 0.061981201171875, -0.0032367706298828125, -0.00909423828125, 0.01436614990234375, 0.0189666748046875, -0.040191650390625, -0.02313232421875, 0.02117919921875, -0.033111572265625, 0.00048470497131347656, 0.056884765625, 0.0084686279296875, -0.08624267578125, -0.0064239501953125, 0.036865234375, 0.0214691162109375, -0.053497314453125, -0.01297760009765625, 0.03631591796875, -0.042388916015625, -0.00830841064453125, 0.043182373046875, -0.07073974609375, -0.014801025390625, 0.0002682209014892578, 0.0120697021484375, -0.00527191162109375, -0.0369873046875, -0.024169921875, -0.007266998291015625, -0.01343536376953125, -0.006725311279296875, 0.04248046875, 0.011749267578125, 0.0209503173828125, -0.0010366439819335938, -0.0335693359375, 0.00669097900390625, 0.01253509521484375, 0.028045654296875, 0.00930023193359375, -0.0740966796875, -0.0133514404296875, -0.031585693359375, -0.018524169921875, -0.011260986328125, -0.0151214599609375, -0.05499267578125, 0.0006461143493652344, 0.0305938720703125, 0.00556182861328125, 0.01201629638671875, -0.0316162109375, -0.015869140625, 0.020263671875, 0.0288238525390625, 0.0487060546875, -0.03472900390625, 0.04193115234375, 0.032440185546875, 0.0152130126953125, 0.01538848876953125, 0.049346923828125, 0.04803466796875, -0.034149169921875, 0.03729248046875, 0.00318145751953125, -0.02752685546875, -0.0350341796875, 0.017181396484375, -0.049468994140625, 0.01323699951171875, -0.031524658203125, -0.0130157470703125, 0.02825927734375, 0.02044677734375, -0.01471710205078125, -0.01690673828125, 0.0229339599609375, -0.03704833984375, 0.019622802734375, -0.0116424560546875, 0.016693115234375, -0.004222869873046875, -0.00936126708984375, 0.011016845703125, -0.018218994140625, -0.0033855438232421875, 0.041412353515625, -0.0266265869140625, 0.031585693359375, 0.10919189453125, 0.0301055908203125, 0.089599609375, 0.01503753662109375, 0.046234130859375, 0.0780029296875, 0.0035190582275390625, 0.007762908935546875, -0.052154541015625, 0.021026611328125, 0.00543212890625, 0.0254364013671875, 0.056610107421875, -0.0021610260009765625, 0.037322998046875, 0.0293731689453125, 0.0643310546875, -0.037689208984375, -0.0057525634765625, -0.01158905029296875, -0.058135986328125, 0.043212890625, 0.0008730888366699219, -0.020660400390625, -0.05535888671875, 0.05145263671875, 0.004398345947265625, 0.01042938232421875, 0.0272064208984375, 0.0008835792541503906, -0.01007080078125, 0.00005412101745605469, 0.01445770263671875, 0.01399993896484375, 0.0194091796875, 0.0003871917724609375, -0.024932861328125, 0.032806396484375, -0.0131378173828125, 0.0168304443359375, -0.0220794677734375, -0.040679931640625, -0.07080078125, -0.047088623046875, 0.002468109130859375, -0.0438232421875, 0.0102081298828125, 0.006412506103515625, 0.0238800048828125, 0.047332763671875, -0.0130615234375, 0.0116729736328125, -0.0059661865234375, 0.051239013671875, -0.038238525390625, -0.04766845703125, 0.0164642333984375, -0.004978179931640625, -0.025543212890625, 0.031097412109375, -0.0187835693359375, -0.07861328125, 0.0020046234130859375, 0.01476287841796875, 0.0263671875, -0.0269622802734375, -0.01947021484375, 0.0263824462890625, 0.0056610107421875, 0.00445556640625, -0.0014057159423828125, 0.08697509765625, -0.045135498046875, -0.037445068359375, 0.02655029296875, -0.0273284912109375, -0.0231475830078125, -0.0036296844482421875, -0.0517578125, 0.1365966796875, 0.0269622802734375, -0.005096435546875, 0.0016450881958007812, 0.06182861328125, -0.041046142578125, 0.040771484375, 0.00505828857421875, 0.0245208740234375, 0.040283203125, -0.0194244384765625, 0.0299530029296875, 0.00414276123046875, -0.01214599609375, 0.0143280029296875, -0.0245513916015625, -0.006992340087890625, 0.01277923583984375, 0.00237274169921875, 0.0245819091796875, 0.0238494873046875, 0.00688934326171875, 0.01085662841796875, 0.019561767578125, 0.017578125, 0.0115509033203125, -0.01019287109375, 0.036376953125, -0.044525146484375, -0.0147705078125, 0.026611328125, 0.004169464111328125, -0.01132965087890625, 0.006214141845703125, 0.037841796875, -0.045013427734375, 0.00432586669921875, 0.0168304443359375, 0.030120849609375, 0.004924774169921875, -0.016510009765625, -0.043853759765625, -0.006206512451171875, 0.0604248046875, -0.028564453125, 0.03546142578125, -0.01739501953125, 0.033538818359375, -0.01611328125, 0.00946044921875, -0.0248870849609375, 0.0139617919921875, 0.019561767578125, 0.078125, -0.054168701171875, -0.00605010986328125, 0.033721923828125, 0.0263214111328125, 0.020111083984375, 0.03131103515625, 0.017059326171875, 0.00032210350036621094, -0.01482391357421875, -0.0197601318359375, -0.0006308555603027344, -0.0184478759765625, -0.01204681396484375, -0.03399658203125, -0.061614990234375, 0.01165008544921875, 0.038970947265625, -0.039642333984375, -0.003688812255859375, 0.02618408203125, -0.0181884765625, -0.00789642333984375, 0.006908416748046875, 0.0238037109375, 0.01369476318359375, 0.00440216064453125, -0.050750732421875, 0.0003638267517089844, 0.018402099609375, 0.039764404296875, -0.0157318115234375, 0.005367279052734375, -0.00567626953125, -0.0189361572265625, 0.06390380859375, -0.0211181640625, 0.01486968994140625, -0.05828857421875, -0.06781005859375, -0.0158538818359375, 0.0433349609375, -0.00772857666015625, 0.06585693359375, 0.01708984375, 0.01153564453125, 0.01534271240234375, 0.00325775146484375, 0.031646728515625, -0.035675048828125, -0.0017728805541992188, -0.027618408203125, 0.0139007568359375, 0.00809478759765625, 0.0008091926574707031, -0.00434112548828125, 0.017822265625, 0.023468017578125, 0.00980377197265625, 0.00919342041015625, -0.0003974437713623047, -0.0077362060546875, 0.015777587890625, -0.01256561279296875, 0.0255279541015625, 0.0258331298828125, 0.0249481201171875, 0.00432586669921875, -0.020294189453125, 0.00901031494140625, 0.01580810546875, 0.01277923583984375, -0.0007677078247070312, 0.04144287109375, 0.0206146240234375, 0.002429962158203125, -0.015411376953125, 0.003662109375, 0.00385284423828125, -0.0187225341796875, 0.03131103515625, -0.0024852752685546875, -0.038116455078125, -0.023651123046875, -0.005527496337890625, 0.041046142578125, -0.00701904296875, 0.049713134765625, -0.0080718994140625, 0.005084991455078125, -0.0165557861328125, 0.004772186279296875, -0.030181884765625, -0.0148162841796875, 0.022308349609375, -0.0035858154296875, -0.025360107421875, -0.01849365234375, -0.065185546875, 0.01039886474609375, 0.0030803680419921875, -0.0260009765625, 0.03729248046875, -0.0311737060546875, 0.011627197265625, -0.019927978515625, 0.0203094482421875, -0.021820068359375, -0.0732421875, -0.055023193359375, 0.029693603515625, -0.0004410743713378906, 0.025909423828125, -0.022552490234375, -0.0053253173828125, 0.01593017578125, -0.0052642822265625, 0.0218353271484375, 0.034027099609375, 0.019805908203125, 0.01727294921875, -0.0275115966796875, -0.035369873046875, -0.00902557373046875, -0.01534271240234375, -0.00921630859375, 0.022186279296875, 0.0148468017578125, -0.0003790855407714844, -0.0110931396484375, -0.0299072265625, 0.026153564453125, 0.04718017578125, -0.0037822723388671875, 0.0126190185546875, -0.0162353515625, -0.0065460205078125, 0.0141448974609375, 0.0083770751953125, -0.007297515869140625, 0.0223846435546875, -0.041046142578125, 0.004070281982421875, -0.019561767578125, -0.0721435546875, -0.07183837890625, 0.061309814453125, 0.051025390625, -0.0027484893798828125, -0.06298828125, 0.0704345703125, -0.06158447265625, 0.07373046875, 0.020172119140625, 0.02734375, -0.0259552001953125, 0.00518798828125, -0.032562255859375, -0.038787841796875, -0.047393798828125, 0.05743408203125, -0.031829833984375, 0.0165252685546875, 0.0247344970703125, -0.032806396484375, 0.01222991943359375, 0.0173797607421875, 0.0391845703125, 0.041015625, 0.00696563720703125, -0.003147125244140625, -0.00537109375, 0.0023975372314453125, -0.038421630859375, -0.07623291015625, 0.0252532958984375, -0.07977294921875, -0.030120849609375, -0.045562744140625, 0.05816650390625, 0.04876708984375, -0.02691650390625, -0.079345703125, 0.033447265625, -0.03875732421875, -0.0254364013671875, -0.0084075927734375, -0.007129669189453125, -0.02044677734375, 0.0271453857421875, 0.0014219284057617188, -0.021026611328125, -0.01104736328125, 0.0244293212890625, -0.004245758056640625, -0.004253387451171875, 0.033050537109375, -0.02099609375, 0.01204681396484375, 0.0163421630859375, 0.019683837890625, -0.026824951171875, 0.027069091796875, 0.0037479400634765625, 0.050048828125, 0.08111572265625, 0.017791748046875, 0.047515869140625, 0.0016336441040039062, -0.0716552734375, -0.02642822265625, -0.02923583984375, 0.0103759765625, -0.0011749267578125, 0.0293731689453125, 0.054229736328125, -0.00688934326171875, -0.026641845703125, -0.035125732421875, -0.0731201171875, 0.024169921875, -0.0281982421875, -0.00431060791015625, -0.068603515625, -0.00031566619873046875, 0.035400390625, -0.0084686279296875, 0.0196990966796875, 0.004901885986328125, -0.03759765625, -0.0007939338684082031, 0.0081787109375, 0.010833740234375, -0.06536865234375, -0.00753021240234375, 0.038299560546875, -0.018035888671875, 0.00982666015625, 0.00453948974609375, 0.0063323974609375, 0.0362548828125, 0.054931640625, 0.0206756591796875, 0.004425048828125, -0.02423095703125, 0.01214599609375, 0.0226593017578125, 0.004241943359375, -0.0303497314453125, -0.0279388427734375, 0.0266265869140625, 0.020751953125, -0.0116119384765625, 0.03369140625, 0.0011539459228515625, 0.02020263671875, -0.0280914306640625, 0.025970458984375, -0.034423828125, -0.0029315948486328125, -0.04107666015625, 0.029815673828125, 0.01468658447265625, -0.0178985595703125, 0.0762939453125, -0.01678466796875, -0.0111236572265625, 0.00847625732421875, -0.0142669677734375, -0.028961181640625, -0.0277862548828125, -0.00672149658203125, 0.0012159347534179688, -0.00012612342834472656 ]
54621d3fb18f98905607d76aa526d014f989c8fa
Wordpress Stackexchange Q: HTML5, WordPress and Tiny MCE issue - wrapping anchor tag around div results in funky output So I'm using HTML5 on a website and am trying to wrap a div in an anchor tag, which is supposedly acceptable in HTML5 websites. But when I do this... <a href="#mylink"><div class="some_class">Some content</div></a> ...through the WordPress Tiny MCE editor, I get this output: <p><a href="#mylink">&nbsp;</a></p> <a href="#mylink"><div class="some_class">Some content</div></a> <p><a href="#mylink"></a></p> All kinds of messed up. If I flip to the visual editor and back to Text in Tiny MCE, it has changed the code to this: <a href="#mylink"> </a> <div class="some_class">Some content</div> &nbsp; Does anyone know how to force Tiny MCE to allow this? (ideally without resorting to the advanced plugin version of Tiny MCE) Thanks for any advice. A: You need to modify the TinyMCE settings, specifically the valid_children setting. To accomplish this in Wordpress, use the tiny_mce_before_init filter reference. Something like this (untested): add_filter('tiny_mce_before_init', 'modify_valid_children'); function modify_valid_children($settings){ $settings['valid_children']="+a[div|p|ul|ol|li|h1|h2|h3|h4|h5|h5|h6]"; return $settings; } You may be able to use +a[*] to capture all elements, but you'll want to take care to avoid nested anchor tags.
Q: HTML5, WordPress and Tiny MCE issue - wrapping anchor tag around div results in funky output So I'm using HTML5 on a website and am trying to wrap a div in an anchor tag, which is supposedly acceptable in HTML5 websites. But when I do this... <a href="#mylink"><div class="some_class">Some content</div></a> ...through the WordPress Tiny MCE editor, I get this output: <p><a href="#mylink">&nbsp;</a></p> <a href="#mylink"><div class="some_class">Some content</div></a> <p><a href="#mylink"></a></p> All kinds of messed up. If I flip to the visual editor and back to Text in Tiny MCE, it has changed the code to this: <a href="#mylink"> </a> <div class="some_class">Some content</div> &nbsp; Does anyone know how to force Tiny MCE to allow this? (ideally without resorting to the advanced plugin version of Tiny MCE) Thanks for any advice. A: You need to modify the TinyMCE settings, specifically the valid_children setting. To accomplish this in Wordpress, use the tiny_mce_before_init filter reference. Something like this (untested): add_filter('tiny_mce_before_init', 'modify_valid_children'); function modify_valid_children($settings){ $settings['valid_children']="+a[div|p|ul|ol|li|h1|h2|h3|h4|h5|h5|h6]"; return $settings; } You may be able to use +a[*] to capture all elements, but you'll want to take care to avoid nested anchor tags.
wordpress
{ "language": "en", "length": 184, "provenance": "stackexchange_00019.jsonl.gz:431573", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/96725" }
[ 0.0274810791015625, -0.003261566162109375, -0.010772705078125, -0.032623291015625, 0.015411376953125, -0.0106964111328125, 0.0224151611328125, -0.011749267578125, -0.01409912109375, 0.0263671875, 0.004177093505859375, 0.01006317138671875, 0.005008697509765625, -0.038177490234375, 0.0127105712890625, -0.0103759765625, 0.01910400390625, -0.01216888427734375, 0.02105712890625, -0.01666259765625, -0.0064849853515625, -0.0016355514526367188, 0.04296875, -0.01175689697265625, 0.0229644775390625, -0.046356201171875, 0.0653076171875, -0.049041748046875, 0.0024776458740234375, -0.0394287109375, 0.008544921875, 0.01244354248046875, 0.044036865234375, 0.0589599609375, -0.0888671875, 0.036346435546875, 0.0108184814453125, 0.007537841796875, -0.0289459228515625, 0.062286376953125, 0.0174713134765625, -0.0112152099609375, 0.035400390625, 0.0205230712890625, -0.020751953125, -0.0084686279296875, 0.0236358642578125, -0.01715087890625, 0.0205078125, -0.06134033203125, 0.002841949462890625, 0.00832366943359375, 0.0259246826171875, -0.06494140625, -0.0227508544921875, 0.0309295654296875, -0.04144287109375, -0.03997802734375, -0.014404296875, 0.061767578125, 0.060333251953125, 0.00838470458984375, -0.0122833251953125, 0.0016937255859375, 0.0175628662109375, -0.0394287109375, -0.002227783203125, 0.04986572265625, 0.0175018310546875, 0.03131103515625, 0.009521484375, -0.00023949146270751953, -0.0202484130859375, -0.06591796875, 0.01556396484375, 0.031951904296875, -0.01934814453125, -0.052490234375, -0.00469207763671875, 0.0196685791015625, 0.0108642578125, -0.03125, -0.01103973388671875, 0.01934814453125, -0.007232666015625, 0.0266265869140625, -0.00029659271240234375, -0.01482391357421875, -0.0180816650390625, 0.00922393798828125, -0.0195159912109375, -0.0010938644409179688, -0.0029964447021484375, 0.002590179443359375, -0.0217437744140625, -0.005313873291015625, 0.03497314453125, 0.0380859375, -0.0251617431640625, 0.0206451416015625, 0.0242462158203125, -0.0533447265625, 0.05767822265625, -0.046478271484375, 0.0149383544921875, 0.0028705596923828125, 0.0137786865234375, -0.000049114227294921875, 0.05755615234375, 0.01502227783203125, -0.01322174072265625, 0.0966796875, 0.0017795562744140625, -0.0003490447998046875, -0.00959014892578125, -0.000244140625, -0.025848388671875, 0.03509521484375, 0.01219940185546875, 0.042633056640625, 0.00018537044525146484, 0.0245513916015625, 0.01096343994140625, 0.0030975341796875, -0.0263519287109375, -0.034210205078125, -0.01132965087890625, -0.0266265869140625, 0.0182037353515625, 0.0197906494140625, -0.0197601318359375, -0.01068878173828125, 0.0247039794921875, 0.034576416015625, 0.0109710693359375, -0.0066680908203125, 0.01375579833984375, 0.012237548828125, -0.017120361328125, 0.01297760009765625, 0.0017080307006835938, -0.005615234375, -0.0036163330078125, -0.016754150390625, -0.07159423828125, 0.0191650390625, 0.028350830078125, 0.005725860595703125, -0.056121826171875, -0.113525390625, 0.0389404296875, -0.034027099609375, 0.080810546875, -0.019439697265625, -0.0628662109375, -0.07269287109375, 0.0189361572265625, -0.05120849609375, -0.0186920166015625, -0.08233642578125, -0.006969451904296875, 0.00862884521484375, 0.0704345703125, -0.039337158203125, -0.041412353515625, -0.0212249755859375, -0.070068359375, -0.0218658447265625, 0.02362060546875, 0.06353759765625, -0.004314422607421875, -0.039764404296875, -0.046783447265625, 0.01502227783203125, -0.00013840198516845703, 0.0238494873046875, 0.004642486572265625, 0.038238525390625, 0.031707763671875, 0.0128326416015625, 0.0103759765625, -0.0399169921875, 0.093017578125, -0.0222930908203125, -0.0240936279296875, -0.0005192756652832031, -0.004367828369140625, 0.040313720703125, 0.0270233154296875, 0.0203399658203125, -0.021026611328125, -0.01313018798828125, -0.06707763671875, 0.010345458984375, 0.00919342041015625, -0.007568359375, -0.02606201171875, -0.0189056396484375, -0.002567291259765625, 0.003734588623046875, -0.0175628662109375, -0.019805908203125, 0.023651123046875, -0.01059722900390625, -0.0235137939453125, -0.0062713623046875, -0.01032257080078125, 0.036346435546875, -0.0018491744995117188, -0.0112762451171875, 0.0095977783203125, -0.01537322998046875, 0.0072174072265625, -0.055633544921875, -0.00568389892578125, 0.028564453125, 0.024749755859375, 0.06158447265625, 0.0021991729736328125, 0.01715087890625, 0.0311126708984375, -0.0213470458984375, 0.0428466796875, 0.044647216796875, 0.054046630859375, -0.044769287109375, 0.01496124267578125, -0.045989990234375, 0.03155517578125, -0.007167816162109375, -0.044281005859375, 0.03729248046875, 0.012847900390625, 0.044921875, -0.0635986328125, -0.049957275390625, -0.0784912109375, -0.05218505859375, 0.01666259765625, 0.0711669921875, 0.021942138671875, 0.021514892578125, -0.033782958984375, 0.007038116455078125, 0.0186920166015625, -0.047393798828125, 0.0025424957275390625, 0.01387786865234375, 0.007678985595703125, 0.0271453857421875, 0.04718017578125, -0.0234832763671875, 0.0030975341796875, -0.01410675048828125, 0.03607177734375, -0.01019287109375, 0.022613525390625, 0.0018482208251953125, -0.0180511474609375, 0.025634765625, 0.004497528076171875, 0.01187896728515625, -0.053466796875, 0.00887298583984375, 0.0628662109375, 0.016082763671875, 0.0452880859375, 0.028045654296875, -0.01342010498046875, 0.0230560302734375, -0.0017452239990234375, -0.0318603515625, -0.00864410400390625, 0.038970947265625, 0.0288848876953125, -0.0106353759765625, -0.05084228515625, 0.007358551025390625, -0.0003693103790283203, 0.0223541259765625, 0.004486083984375, 0.02880859375, 0.034149169921875, -0.00978851318359375, -0.0019817352294921875, -0.00399017333984375, 0.0167694091796875, 0.0074615478515625, 0.0484619140625, 0.0087890625, 0.0236358642578125, 0.01378631591796875, -0.018585205078125, 0.04278564453125, 0.006908416748046875, -0.03564453125, 0.0024776458740234375, -0.0288848876953125, 0.044342041015625, -0.04827880859375, 0.0396728515625, 0.047393798828125, -0.043609619140625, 0.019775390625, 0.01157379150390625, 0.0287933349609375, 0.02276611328125, 0.021575927734375, 0.0199737548828125, -0.017669677734375, 0.026397705078125, 0.01380157470703125, 0.01380157470703125, 0.045806884765625, -0.0036449432373046875, -0.03564453125, -0.0171966552734375, 0.02972412109375, -0.0062103271484375, -0.01044464111328125, 0.032257080078125, -0.041290283203125, -0.027191162109375, 0.0249786376953125, -0.040740966796875, -0.0091705322265625, 0.060302734375, -0.0034236907958984375, -0.026275634765625, -0.00798797607421875, -0.0225677490234375, -0.032135009765625, -0.041259765625, 0.040313720703125, 0.00034546852111816406, 0.0045623779296875, 0.012969970703125, 0.023651123046875, 0.0205841064453125, -0.0216217041015625, 0.025421142578125, -0.01800537109375, -0.017791748046875, -0.00188446044921875, -0.03424072265625, -0.014251708984375, 0.001201629638671875, -0.00023436546325683594, -0.00644683837890625, -0.02685546875, 0.0379638671875, -0.0097198486328125, 0.0138702392578125, 0.036102294921875, 0.040985107421875, 0.0259246826171875, -0.0133056640625, 0.057098388671875, 0.0491943359375, -0.01271820068359375, -0.038818359375, 0.01061248779296875, -0.043121337890625, 0.040008544921875, 0.022796630859375, -0.0157623291015625, 0.00395965576171875, 0.013519287109375, 0.03143310546875, 0.00029277801513671875, 0.0701904296875, -0.0284271240234375, 0.051300048828125, -0.016143798828125, 0.0013332366943359375, -0.0758056640625, 0.04937744140625, 0.012054443359375, -0.005580902099609375, 0.017913818359375, 0.02508544921875, 0.002735137939453125, -0.01378631591796875, -0.034942626953125, 0.006397247314453125, 0.006893157958984375, -0.05035400390625, 0.030609130859375, -0.0241851806640625, 0.00804901123046875, -0.0220947265625, 0.04925537109375, -0.02471923828125, -0.01229095458984375, 0.00824737548828125, 0.0014677047729492188, 0.03558349609375, -0.0003743171691894531, -0.034912109375, -0.03173828125, -0.0447998046875, 0.01129913330078125, 0.0021686553955078125, -0.013885498046875, -0.0248260498046875, 0.036346435546875, -0.04107666015625, -0.0262603759765625, 0.01212310791015625, 0.03460693359375, -0.03369140625, 0.010101318359375, -0.052215576171875, 0.018463134765625, -0.0181121826171875, 0.0103912353515625, -0.0726318359375, -0.0224609375, -0.0125274658203125, 0.07061767578125, 0.0169677734375, -0.00848388671875, -0.0230255126953125, 0.061004638671875, -0.037506103515625, -0.004947662353515625, 0.0394287109375, 0.046051025390625, 0.011749267578125, 0.0161895751953125, 0.0262908935546875, -0.0302734375, -0.018524169921875, 0.0189971923828125, -0.047027587890625, -0.013031005859375, 0.0002446174621582031, -0.054351806640625, 0.06597900390625, -0.039276123046875, -0.09716796875, -0.03875732421875, -0.0161285400390625, 0.0018167495727539062, 0.018310546875, -0.0166168212890625, -0.037841796875, -0.09356689453125, 0.06536865234375, -0.016571044921875, -0.01331329345703125, -0.0172271728515625, 0.0684814453125, 0.024200439453125, -0.0194091796875, 0.044189453125, 0.0013418197631835938, 0.004360198974609375, -0.01522064208984375, 0.040191650390625, 0.0214080810546875, 0.0227203369140625, -0.01261138916015625, -0.029571533203125, 0.019317626953125, -0.01715087890625, 0.06048583984375, 0.0099945068359375, 0.005245208740234375, 0.0107879638671875, 0.02972412109375, -0.020355224609375, -0.01016998291015625, -0.01214599609375, 0.0367431640625, 0.01285552978515625, -0.0194549560546875, 0.006496429443359375, -0.0193023681640625, -0.0101470947265625, -0.0023860931396484375, -0.01180267333984375, 0.042022705078125, 0.023406982421875, 0.05816650390625, -0.005001068115234375, -0.01096343994140625, 0.017303466796875, -0.040374755859375, -0.0042572021484375, -0.004878997802734375, 0.0182647705078125, 0.034759521484375, -0.06298828125, -0.032684326171875, -0.0291290283203125, -0.01300811767578125, 0.03192138671875, 0.03887939453125, -0.007350921630859375, -0.01018524169921875, 0.0010986328125, 0.00888824462890625, -0.0452880859375, 0.038848876953125, 0.01377105712890625, -0.043975830078125, -0.050537109375, -0.0076751708984375, 0.0224761962890625, -0.0506591796875, -0.04400634765625, -0.0223236083984375, -0.012847900390625, -0.0087432861328125, -0.00435638427734375, -0.005374908447265625, 0.0001996755599975586, -0.01509857177734375, -0.0081939697265625, -0.01136016845703125, 0.0025386810302734375, 0.0182037353515625, 0.035736083984375, 0.005611419677734375, -0.030853271484375, 0.0193023681640625, 0.01248931884765625, -0.027069091796875, -0.0264739990234375, 0.070556640625, 0.031219482421875, 0.007572174072265625, 0.0162200927734375, -0.04156494140625, 0.0132598876953125, -0.019683837890625, 0.036407470703125, -0.0233001708984375, -0.057525634765625, -0.0092010498046875, 0.0113677978515625, 0.0119476318359375, -0.0192108154296875, -0.01385498046875, -0.0168304443359375, -0.032073974609375, -0.0250396728515625, 0.008636474609375, -0.05780029296875, 0.004955291748046875, 0.0161895751953125, 0.0142364501953125, 0.0116729736328125, -0.056304931640625, -0.047393798828125, -0.056243896484375, 0.0012636184692382812, 0.0191192626953125, 0.056610107421875, -0.044342041015625, 0.032562255859375, -0.039398193359375, 0.024688720703125, -0.040374755859375, 0.00603485107421875, -0.005748748779296875, -0.004192352294921875, 0.0021514892578125, -0.0229644775390625, -0.03350830078125, -0.042938232421875, -0.0372314453125, -0.01454925537109375, -0.02606201171875, 0.0248870849609375, 0.0291900634765625, 0.0430908203125, 0.0033092498779296875, -0.03460693359375, -0.001544952392578125, -0.0299224853515625, 0.00428009033203125, 0.0178680419921875, -0.00887298583984375, 0.0211334228515625, 0.01061248779296875, 0.04254150390625, 0.020904541015625, -0.00881195068359375, 0.0018758773803710938, -0.01904296875, 0.0010738372802734375, -0.0662841796875, 0.00010478496551513672, 0.005298614501953125, -0.0279693603515625, 0.011199951171875, 0.0011501312255859375, 0.005863189697265625, 0.050537109375, -0.0064849853515625, -0.0019407272338867188, -0.0155487060546875, 0.0017900466918945312, -0.03485107421875, 0.022064208984375, 0.01531219482421875, -0.0174560546875, -0.01300048828125, -0.0019435882568359375, 0.0121307373046875, 0.00362396240234375, 0.0028171539306640625, -0.005222320556640625, -0.025360107421875, 0.037750244140625, 0.01739501953125, 0.01140594482421875, -0.0253448486328125, -0.00496673583984375, 0.0260467529296875, -0.01497650146484375, -0.032318115234375, 0.000942230224609375, 0.01427459716796875, 0.036376953125, 0.0509033203125, -0.0018053054809570312, 0.005184173583984375, 0.03961181640625, -0.0186004638671875, -0.0201873779296875, 0.030487060546875, 0.03692626953125, -0.031524658203125, -0.0136871337890625, 0.003292083740234375, -0.028656005859375, -0.0188751220703125, 0.01436614990234375, -0.006244659423828125, 0.00014352798461914062, -0.0055084228515625, 0.0018463134765625, -0.021636962890625, -0.0011835098266601562, 0.01329803466796875, -0.012939453125, -0.00814056396484375, 0.044586181640625, 0.0150299072265625, -0.0116729736328125, -0.0022640228271484375, -0.0108184814453125, 0.023681640625, 0.0222930908203125, 0.006443023681640625, -0.02044677734375, -0.061309814453125, -0.041259765625, -0.041046142578125, -0.0021381378173828125, -0.057891845703125, 0.0014352798461914062, 0.0006270408630371094, -0.01045989990234375, 0.02850341796875, -0.02618408203125, 0.01458740234375, 0.01299285888671875, -0.037017822265625, 0.024169921875, 0.0024318695068359375, 0.0128173828125, -0.0273895263671875, -0.01505279541015625, -0.001041412353515625, -0.034332275390625, -0.0093536376953125, 0.01715087890625, 0.013946533203125, -0.026031494140625, 0.01629638671875, -0.02386474609375, 0.036468505859375, -0.0244598388671875, 0.003787994384765625, -0.036041259765625, 0.019805908203125, -0.0625, -0.0271759033203125, -0.02227783203125, -0.031951904296875, -0.0067596435546875, -0.06390380859375, -0.06201171875, 0.1187744140625, -0.0236968994140625, 0.02801513671875, -0.0011615753173828125, 0.06048583984375, -0.0297088623046875, 0.0244140625, -0.0124359130859375, 0.0270233154296875, 0.01096343994140625, -0.00774383544921875, -0.035400390625, -0.019775390625, -0.007183074951171875, 0.041961669921875, -0.033599853515625, -0.007801055908203125, -0.053436279296875, -0.001155853271484375, 0.02655029296875, 0.0275421142578125, 0.032562255859375, 0.033233642578125, -0.01312255859375, -0.02996826171875, -0.0130157470703125, -0.00962066650390625, 0.0185546875, -0.048675537109375, -0.0251312255859375, 0.0163421630859375, -0.01055908203125, -0.0274658203125, 0.03887939453125, 0.0081787109375, -0.04345703125, 0.0234375, 0.0134124755859375, -0.055419921875, -0.04302978515625, 0.07305908203125, 0.016754150390625, -0.050537109375, -0.038726806640625, -0.0506591796875, 0.0297088623046875, -0.006725311279296875, -0.005191802978515625, -0.00290679931640625, -0.00006777048110961914, 0.00749969482421875, 0.01416015625, -0.0075836181640625, 0.043914794921875, -0.005435943603515625, -0.039703369140625, -0.006458282470703125, 0.022430419921875, -0.0208282470703125, 0.009796142578125, 0.047210693359375, -0.008758544921875, -0.00435638427734375, -0.018951416015625, 0.0014505386352539062, -0.00399017333984375, -0.0077972412109375, -0.0249481201171875, 0.01067352294921875, 0.01454925537109375, 0.0127105712890625, -0.0205078125, -0.03973388671875, -0.0018529891967773438, 0.026214599609375, 0.00582122802734375, 0.017486572265625, 0.0173187255859375, -0.05096435546875, -0.04620361328125, -0.03485107421875, -0.0308685302734375, 0.061370849609375, 0.0780029296875, 0.004276275634765625, -0.005626678466796875, -0.044219970703125, -0.010650634765625, -0.0191497802734375, 0.01546478271484375, 0.00400543212890625, -0.00919342041015625, -0.0033168792724609375, 0.047698974609375, 0.0236358642578125, -0.0145416259765625, -0.016632080078125, 0.02728271484375, 0.01837158203125, -0.0460205078125, -0.0211029052734375, -0.0013055801391601562, -0.034271240234375, 0.01055908203125, -0.047088623046875, -0.0090179443359375, -0.01102447509765625, -0.01251983642578125, 0.00616455078125, -0.02142333984375, 0.032958984375, 0.01499176025390625, 0.06304931640625, 0.0027008056640625, 0.025421142578125, -0.046722412109375, -0.0330810546875, -0.007503509521484375, 0.028778076171875, -0.0240478515625, -0.01337432861328125, -0.0042266845703125, -0.03399658203125, 0.0224609375, 0.047119140625, 0.0130767822265625, -0.0258026123046875, -0.0138092041015625, -0.031646728515625, -0.003208160400390625, 0.025787353515625, 0.00730133056640625, 0.041839599609375, 0.00354766845703125, -0.0015325546264648438, -0.00655364990234375, -0.01192474365234375, 0.0037021636962890625, 0.043792724609375, -0.002712249755859375, 0.07708740234375, -0.041351318359375, 0.0162353515625, -0.040802001953125, 0.0025653839111328125, -0.01898193359375, -0.0200347900390625, 0.006999969482421875, 0.025299072265625, -0.0014019012451171875, -0.015228271484375, -0.01560211181640625, 0.034423828125, 0.0135345458984375, -0.0318603515625, 0.000972747802734375, -0.003536224365234375, 0.01580810546875, 0.00833892822265625, 0.005306243896484375, -0.024932861328125, -0.05010986328125, -0.046051025390625, -0.0103912353515625, 0.022857666015625, 0.05377197265625, 0.0288848876953125, 0.049591064453125, 0.0560302734375, 0.00748443603515625, 0.0205230712890625, -0.030181884765625, 0.05413818359375, 0.0499267578125, 0.004058837890625, -0.01641845703125, 0.01041412353515625, -0.0186614990234375, 0.0165863037109375, 0.0107574462890625, 0.01187896728515625, 0.03692626953125, -0.07501220703125, 0.0780029296875, 0.0736083984375, 0.045867919921875, -0.050933837890625, 0.012115478515625, 0.096923828125, -0.014373779296875, 0.035552978515625, -0.003265380859375, -0.0270233154296875, -0.03271484375, 0.00008499622344970703, 0.015777587890625, -0.0194854736328125, -0.02081298828125, -0.06414794921875, -0.0389404296875, 0.051239013671875, 0.0369873046875, -0.0635986328125, 0.01314544677734375, 0.01079559326171875, 0.019012451171875, 0.02191162109375, 0.0364990234375, -0.0207366943359375, -0.007381439208984375, -0.0164642333984375, -0.028076171875, -0.029541015625, 0.06561279296875, -0.01091766357421875, 0.0158538818359375, 0.04132080078125, -0.018402099609375, -0.0048980712890625, -0.0182647705078125, 0.00933837890625, 0.058258056640625, -0.0250701904296875, -0.01406097412109375, 0.047088623046875, -0.03863525390625, -0.0209503173828125, -0.01522064208984375, 0.023529052734375, -0.08502197265625, -0.032257080078125, 0.0296783447265625, -0.05865478515625, -0.042938232421875, -0.07708740234375, -0.107421875, 0.06878662109375, 0.0010700225830078125, -0.043365478515625, 0.010223388671875, 0.0051116943359375, -0.014190673828125, -0.0029201507568359375, 0.0035457611083984375, 0.00685882568359375, 0.01294708251953125, 0.01194000244140625, -0.0183868408203125, 0.04473876953125, -0.0007410049438476562, -0.042724609375, -0.033660888671875, -0.005405426025390625, 0.006656646728515625, 0.02203369140625, -0.01324462890625, 0.02471923828125, 0.011627197265625, 0.037078857421875, -0.004779815673828125, -0.01702880859375, -0.0140228271484375, -0.044189453125, 0.01503753662109375, -0.0367431640625, -0.054443359375, -0.04156494140625, 0.0556640625, 0.0289306640625, 0.015838623046875, -0.00930023193359375, -0.0277862548828125, -0.00743865966796875, -0.0248565673828125, -0.008697509765625, 0.043487548828125, -0.09735107421875, -0.016754150390625, 0.0244140625, 0.03680419921875, -0.033416748046875, 0.027130126953125, 0.01544952392578125, -0.04852294921875, 0.045379638671875, -0.0174560546875, -0.01290130615234375, 0.04156494140625, 0.0645751953125, -0.04571533203125, -0.0247650146484375, 0.03240966796875, -0.025787353515625, 0.01727294921875, 0.021881103515625, -0.004833221435546875, 0.004940032958984375, -0.052703857421875, 0.01146697998046875, -0.01678466796875, 0.03900146484375, -0.04949951171875, -0.0132904052734375, -0.0293121337890625, -0.00592041015625, 0.0010156631469726562, -0.01462554931640625, 0.005016326904296875, -0.0224761962890625, 0.006465911865234375, 0.0259246826171875, -0.023529052734375, 0.018646240234375, -0.0122528076171875, 0.00921630859375, -0.00957489013671875, 0.00772857666015625, 0.034423828125, -0.0176544189453125, 0.01824951171875, -0.034027099609375, 0.003627777099609375, -0.0225982666015625, 0.0028629302978515625, -0.035675048828125, -0.02490234375, 0.0142974853515625 ]
64bedffa4c46c45abadf46eaf40fb6c0cf822a53
Wordpress Stackexchange Q: Edit specific nodes in WP_Admin_Bar Is it easily possible to edit links in the WP_Admin_Bar global $wp_admin_bar instance? A: Yes I recently ran into the situation where I wanted to change the profile link in the user-info section of the admin bar. The problem is that you can only get all nodes, add and remove them. Not edit. And you also cannot modify the $wp_admin_bar->nodes property due it is private. When easily removing and adding them, you'll lose your order and the whole thing looks horrible. Now here is my solution: // void jw_edit_admin_bar ( mixed $id , string $property , string $value ) if(!function_exists('jw_edit_admin_bar')) { function jw_edit_admin_bar($id, $property, $value) { global $wp_admin_bar; if(!is_array($id)) { $id = array($id); } $all_nodes = $wp_admin_bar->get_nodes(); foreach($all_nodes as $key => $val) { $current_node = $all_nodes[$key]; $wp_admin_bar->remove_node($key); if(in_array($key, $id)) { $current_node->$property = $value; } $wp_admin_bar->add_node($current_node); } } } add_action('admin_bar_menu', function() { jw_edit_admin_bar(array('user-info', 'my-account'), 'href', 'http://www.nyan.cat'); });
Q: Edit specific nodes in WP_Admin_Bar Is it easily possible to edit links in the WP_Admin_Bar global $wp_admin_bar instance? A: Yes I recently ran into the situation where I wanted to change the profile link in the user-info section of the admin bar. The problem is that you can only get all nodes, add and remove them. Not edit. And you also cannot modify the $wp_admin_bar->nodes property due it is private. When easily removing and adding them, you'll lose your order and the whole thing looks horrible. Now here is my solution: // void jw_edit_admin_bar ( mixed $id , string $property , string $value ) if(!function_exists('jw_edit_admin_bar')) { function jw_edit_admin_bar($id, $property, $value) { global $wp_admin_bar; if(!is_array($id)) { $id = array($id); } $all_nodes = $wp_admin_bar->get_nodes(); foreach($all_nodes as $key => $val) { $current_node = $all_nodes[$key]; $wp_admin_bar->remove_node($key); if(in_array($key, $id)) { $current_node->$property = $value; } $wp_admin_bar->add_node($current_node); } } } add_action('admin_bar_menu', function() { jw_edit_admin_bar(array('user-info', 'my-account'), 'href', 'http://www.nyan.cat'); }); A: Ok, so I recently ran into an issue trying to create a custom Holiday/Time of Day Greeting for the Wordpress Admin Toolbar and ran across this answer, which led me down a path of hours of wasted time since it is actually completely unnecessary. You don't need to destroy and rebuild the admin toolbar to edit a node. The simple solution for Julien's issue is a 5 line addition to your functions.php file that replaces the desired url: //----------------------------------------------------------------------------- /* change location of user profile page in admin toolbar */ add_filter( 'edit_profile_url', 'update_admin_bar_user_profile_url', 10, 3 ); function update_admin_bar_user_profile_url( $url, $user_id, $scheme ) { $url = site_url( '/edit-user-profile/' ); return $url; } //----------------------------------------------------------------------------- Now if you want to get a bit deeper into editing/manipulating the the Admin Toolbar - you can do something like this, which adds the website url of the user, if they entered one in their profile page, as a node to the Users Profile Panel (aka a link in the "sub-menu"): /* --- add the user website link node in the admin toolbar --- */ add_action( 'admin_bar_menu', 'update_admin_bar_user_node', 250 ); function update_admin_bar_user_node( $wp_admin_bar ) { $user_id = get_current_user_id(); $current_user = wp_get_current_user(); $profile_url = get_edit_profile_url( $user_id ); if ( ! $user_id ) return; if ( current_user_can( 'read' ) ) { $profile_url = get_edit_profile_url( $user_id ); } elseif ( is_multisite() ) { $profile_url = get_dashboard_url( $user_id, 'profile.php' ); } else { $profile_url = false; } // Add the users website/link to the user-actions sub-menu if they have one $my_account = $wp_admin_bar->get_node( 'my-account' ); if( ! empty( $current_user->user_url ) && $my_account ){ $wp_admin_bar->add_node( array( 'parent' => 'user-actions', 'id' => 'user-url', 'title' => '<span class="user-url">' . __( 'My Website' ) . '</span>', 'href' => esc_url( $current_user->user_url ) ) ); } } Here is a screenshot of how that change looks in the "my-account" "user-actions" menu:
wordpress
{ "language": "en", "length": 457, "provenance": "stackexchange_00019.jsonl.gz:431622", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/96869" }
[ 0.0292816162109375, -0.025115966796875, -0.007686614990234375, 0.0054473876953125, -0.013336181640625, -0.049652099609375, 0.0227508544921875, -0.016815185546875, -0.00403594970703125, 0.00824737548828125, 0.042755126953125, -0.048553466796875, 0.0253753662109375, -0.062225341796875, 0.0026149749755859375, -0.012481689453125, 0.01084136962890625, 0.01385498046875, 0.0160980224609375, -0.00881195068359375, -0.0051727294921875, -0.0012311935424804688, 0.005504608154296875, 0.0499267578125, 0.00897216796875, -0.05462646484375, 0.06976318359375, -0.0008730888366699219, 0.04052734375, 0.0025177001953125, 0.019805908203125, -0.0350341796875, 0.0095367431640625, -0.005157470703125, 0.03460693359375, -0.0187225341796875, -0.00875091552734375, 0.006622314453125, 0.038238525390625, -0.0214385986328125, 0.0304107666015625, -0.0037899017333984375, 0.006862640380859375, 0.04937744140625, -0.01403045654296875, -0.05035400390625, 0.04046630859375, -0.0229644775390625, 0.028106689453125, -0.037933349609375, 0.0116424560546875, 0.01934814453125, 0.034088134765625, -0.0301666259765625, -0.0153656005859375, 0.032379150390625, 0.01476287841796875, -0.06878662109375, 0.032318115234375, 0.06842041015625, -0.004669189453125, -0.01226806640625, -0.005603790283203125, -0.08880615234375, -0.0022983551025390625, -0.00283050537109375, 0.0290679931640625, -0.0014696121215820312, -0.042022705078125, -0.00787353515625, 0.042449951171875, -0.011505126953125, -0.0084991455078125, 0.014373779296875, -0.004840850830078125, -0.04107666015625, -0.0013742446899414062, -0.02685546875, 0.00269317626953125, 0.047760009765625, 0.0196380615234375, 0.05718994140625, -0.037017822265625, 0.005672454833984375, 0.01100921630859375, 0.0264892578125, -0.024139404296875, -0.0355224609375, -0.04058837890625, -0.01084136962890625, -0.0259552001953125, -0.033721923828125, -0.031951904296875, -0.01232147216796875, -0.007076263427734375, -0.01532745361328125, 0.0081787109375, -0.01263427734375, 0.0113067626953125, -0.0005221366882324219, 0.035552978515625, -0.0367431640625, 0.01311492919921875, -0.0104827880859375, -0.007747650146484375, 0.034515380859375, -0.0256195068359375, 0.00708770751953125, 0.021575927734375, 0.038909912109375, 0.00931549072265625, -0.013092041015625, -0.0013990402221679688, -0.007244110107421875, -0.0253143310546875, 0.0233917236328125, -0.0193023681640625, 0.01297760009765625, -0.01178741455078125, 0.053192138671875, -0.0224456787109375, -0.00862884521484375, -0.0146331787109375, 0.0295257568359375, 0.0167999267578125, 0.0010471343994140625, -0.04144287109375, 0.04730224609375, -0.005825042724609375, -0.01446533203125, -0.050628662109375, 0.03936767578125, 0.0970458984375, 0.025848388671875, 0.0288848876953125, -0.00888824462890625, -0.0155029296875, -0.035980224609375, -0.01068878173828125, 0.002445220947265625, 0.01020050048828125, -0.027008056640625, 0.00896453857421875, -0.007293701171875, 0.0045318603515625, 0.005939483642578125, 0.00537872314453125, 0.0131988525390625, 0.03668212890625, -0.007045745849609375, -0.01812744140625, -0.0132904052734375, 0.03387451171875, 0.0267791748046875, 0.00124359130859375, 0.01386260986328125, 0.09783935546875, -0.04193115234375, -0.055389404296875, -0.05523681640625, 0.004489898681640625, -0.0008702278137207031, 0.016876220703125, -0.0364990234375, -0.046539306640625, 0.01000213623046875, -0.03875732421875, -0.0055999755859375, 0.023101806640625, 0.038482666015625, 0.0311279296875, -0.033355712890625, -0.004241943359375, 0.026824951171875, 0.01038360595703125, 0.0229339599609375, 0.02423095703125, -0.004489898681640625, 0.001033782958984375, 0.057281494140625, -0.0100555419921875, -0.040435791015625, 0.00701904296875, -0.0229949951171875, -0.051849365234375, 0.0311126708984375, -0.00972747802734375, 0.042236328125, 0.05023193359375, 0.000024199485778808594, 0.0201263427734375, 0.0036640167236328125, -0.0172119140625, -0.0077972412109375, -0.004352569580078125, -0.0009026527404785156, 0.006313323974609375, 0.0135955810546875, -0.00785064697265625, -0.0142364501953125, -0.01274871826171875, -0.014678955078125, 0.004638671875, 0.009735107421875, -0.0589599609375, 0.004383087158203125, -0.024261474609375, 0.037506103515625, -0.01309967041015625, 0.0108795166015625, 0.0087738037109375, -0.01029205322265625, -0.0073394775390625, -0.0194244384765625, 0.002735137939453125, -0.01087188720703125, 0.006866455078125, 0.04693603515625, -0.00200653076171875, 0.0286865234375, -0.0203094482421875, -0.0271759033203125, -0.010345458984375, -0.00039267539978027344, 0.0355224609375, 0.006622314453125, -0.0287628173828125, -0.020538330078125, -0.0131988525390625, 0.007793426513671875, -0.0531005859375, 0.050994873046875, 0.01123809814453125, 0.0198822021484375, -0.030303955078125, -0.03387451171875, -0.01212310791015625, -0.0740966796875, 0.02484130859375, 0.059417724609375, 0.0350341796875, -0.0140228271484375, -0.0088653564453125, -0.0086212158203125, -0.0102081298828125, -0.01287841796875, 0.04638671875, -0.039520263671875, -0.02166748046875, -0.00641632080078125, 0.011077880859375, -0.0014019012451171875, 0.035430908203125, -0.0023593902587890625, 0.0123748779296875, 0.03253173828125, 0.000782012939453125, 0.0009522438049316406, -0.048126220703125, 0.039520263671875, -0.00478363037109375, -0.0148162841796875, -0.00998687744140625, -0.01142120361328125, 0.07012939453125, -0.030120849609375, 0.062469482421875, 0.036376953125, -0.01059722900390625, -0.0234375, 0.01041412353515625, 0.0361328125, -0.00572967529296875, -0.00897979736328125, -0.0299530029296875, -0.02001953125, -0.043426513671875, 0.0301361083984375, -0.011474609375, -0.0399169921875, -0.012054443359375, 0.005474090576171875, 0.0213623046875, -0.01322174072265625, 0.005321502685546875, -0.01116180419921875, 0.03045654296875, -0.008148193359375, -0.01160430908203125, -0.0260772705078125, 0.01123809814453125, 0.0129852294921875, -0.044891357421875, 0.045684814453125, -0.026641845703125, -0.02398681640625, 0.0438232421875, -0.01611328125, 0.0026569366455078125, 0.01004791259765625, 0.08465576171875, 0.0692138671875, 0.00440216064453125, 0.022918701171875, 0.0164947509765625, -0.04510498046875, 0.0019550323486328125, 0.00868988037109375, -0.0036563873291015625, -0.019866943359375, -0.023529052734375, 0.052459716796875, 0.00830078125, -0.0645751953125, 0.05047607421875, -0.0038661956787109375, -0.00431060791015625, -0.00446319580078125, -0.04058837890625, -0.01020050048828125, -0.00466156005859375, -0.025390625, -0.021392822265625, 0.023284912109375, -0.0232086181640625, 0.016021728515625, 0.0478515625, 0.0127105712890625, 0.00945281982421875, 0.0001342296600341797, -0.0421142578125, -0.0131683349609375, -0.0458984375, 0.0004570484161376953, -0.0166015625, -0.00881195068359375, 0.00904083251953125, 0.0138702392578125, 0.0033779144287109375, -0.006656646728515625, 0.0221405029296875, 0.0165252685546875, -0.00774383544921875, -0.013031005859375, 0.02008056640625, 0.016143798828125, 0.0192108154296875, 0.0192413330078125, 0.0245208740234375, 0.0355224609375, -0.047607421875, -0.01416778564453125, 0.0160064697265625, 0.0169525146484375, 0.050994873046875, -0.075927734375, -0.0284576416015625, 0.056365966796875, 0.00452423095703125, -0.0013570785522460938, -0.00908660888671875, -0.00621795654296875, -0.01186370849609375, 0.057159423828125, 0.0021419525146484375, -0.014007568359375, 0.01074981689453125, 0.0239105224609375, 0.01116943359375, 0.004085540771484375, 0.01294708251953125, 0.006038665771484375, 0.0013418197631835938, -0.0289764404296875, -0.0301513671875, -0.0210418701171875, 0.041717529296875, -0.00943756103515625, -0.008514404296875, 0.01458740234375, 0.00054168701171875, 0.0253448486328125, -0.0240631103515625, 0.0182952880859375, 0.00223541259765625, 0.035003662109375, -0.02215576171875, 0.025909423828125, -0.034759521484375, -0.0141754150390625, -0.03253173828125, 0.053436279296875, 0.00574493408203125, -0.0213775634765625, -0.01715087890625, 0.031341552734375, -0.07098388671875, -0.05828857421875, -0.0147552490234375, 0.011505126953125, -0.099609375, -0.0127716064453125, -0.001102447509765625, -0.0260772705078125, -0.02685546875, 0.054443359375, -0.0721435546875, -0.025390625, 0.0233612060546875, 0.0208282470703125, -0.015716552734375, 0.046905517578125, -0.0078582763671875, 0.02490234375, -0.0197601318359375, 0.0079498291015625, -0.07464599609375, -0.00968170166015625, -0.02392578125, 0.0648193359375, 0.005218505859375, 0.034820556640625, -0.0411376953125, 0.021942138671875, 0.01456451416015625, -0.03253173828125, 0.01535797119140625, -0.0008130073547363281, -0.01202392578125, -0.01338958740234375, -0.02593994140625, -0.0255584716796875, -0.017242431640625, 0.0018253326416015625, -0.033355712890625, 0.0228271484375, -0.0058135986328125, -0.0313720703125, 0.035980224609375, -0.040313720703125, -0.08502197265625, -0.022979736328125, -0.021759033203125, 0.0086212158203125, -0.02685546875, 0.01386260986328125, -0.0171356201171875, -0.08819580078125, 0.0198516845703125, -0.056884765625, -0.0158843994140625, 0.0021343231201171875, 0.0794677734375, 0.0236968994140625, 0.0144195556640625, 0.016815185546875, 0.01229095458984375, 0.0302734375, -0.028228759765625, 0.07525634765625, 0.044891357421875, -0.01154327392578125, 0.0721435546875, 0.0087432861328125, 0.003398895263671875, 0.0007638931274414062, 0.0117645263671875, 0.043792724609375, -0.00408935546875, 0.007564544677734375, 0.06182861328125, -0.017547607421875, -0.00384521484375, -0.0106201171875, 0.0033931732177734375, -0.036956787109375, 0.01837158203125, 0.015045166015625, -0.0125885009765625, -0.0229949951171875, 0.0280303955078125, -0.0173797607421875, 0.002902984619140625, 0.033050537109375, 0.033203125, 0.005527496337890625, -0.051666259765625, 0.01143646240234375, -0.0012025833129882812, 0.01016998291015625, -0.00543975830078125, -0.035247802734375, 0.01369476318359375, -0.025177001953125, -0.02734375, 0.0260772705078125, -0.0180816650390625, 0.1014404296875, 0.0255279541015625, -0.02838134765625, -0.00424957275390625, -0.006786346435546875, 0.0288848876953125, -0.027435302734375, 0.00818634033203125, 0.0294952392578125, 0.03021240234375, 0.0278167724609375, -0.035552978515625, -0.00916290283203125, 0.013824462890625, -0.02520751953125, 0.055755615234375, 0.04840087890625, -0.0199127197265625, 0.0189971923828125, 0.046875, 0.0254364013671875, 0.0196533203125, -0.0230712890625, 0.06268310546875, 0.071044921875, -0.0198516845703125, -0.011077880859375, 0.062408447265625, -0.0229949951171875, -0.0196075439453125, -0.004489898681640625, 0.01434326171875, 0.0082244873046875, 0.039703369140625, 0.0007576942443847656, 0.055755615234375, 0.032135009765625, -0.055267333984375, -0.009674072265625, -0.01959228515625, 0.07171630859375, -0.0166473388671875, -0.10418701171875, -0.0013332366943359375, 0.06585693359375, 0.01454925537109375, -0.0682373046875, 0.0168609619140625, -0.0031452178955078125, -0.027191162109375, -0.036407470703125, -0.0171966552734375, -0.025146484375, -0.051177978515625, -0.0288848876953125, -0.0238189697265625, -0.0276031494140625, 0.0192718505859375, -0.059478759765625, -0.0003190040588378906, -0.040496826171875, -0.021240234375, 0.05584716796875, 0.00240325927734375, 0.0190582275390625, -0.054229736328125, 0.002902984619140625, -0.0401611328125, -0.0224456787109375, 0.08013916015625, 0.043670654296875, -0.0188140869140625, 0.0184173583984375, -0.031829833984375, -0.00916290283203125, -0.044189453125, -0.06402587890625, -0.036590576171875, -0.013641357421875, -0.0267486572265625, 0.010467529296875, 0.0201568603515625, 0.0594482421875, -0.01049041748046875, 0.0257415771484375, -0.0037841796875, 0.02960205078125, 0.00705718994140625, 0.0380859375, -0.03350830078125, 0.044189453125, -0.0060882568359375, 0.012969970703125, -0.0186614990234375, -0.0233306884765625, -0.0028591156005859375, 0.0208740234375, -0.006084442138671875, -0.01873779296875, 0.0036468505859375, 0.0031280517578125, 0.07244873046875, 0.00263214111328125, 0.015838623046875, 0.014984130859375, 0.0177764892578125, -0.034454345703125, -0.0210418701171875, -0.01317596435546875, -0.0007843971252441406, 0.005767822265625, 0.02227783203125, 0.03277587890625, -0.02752685546875, -0.03131103515625, -0.00719451904296875, 0.02471923828125, 0.0166168212890625, -0.0240020751953125, -0.01050567626953125, 0.042205810546875, 0.045440673828125, -0.0270538330078125, 0.01342010498046875, 0.00376129150390625, 0.0095062255859375, 0.0146636962890625, -0.02484130859375, 0.0118560791015625, 0.04595947265625, 0.0321044921875, -0.0189208984375, 0.031402587890625, 0.0350341796875, -0.0073089599609375, -0.0036411285400390625, 0.047515869140625, 0.052978515625, -0.0511474609375, -0.006862640380859375, 0.0072784423828125, -0.008331298828125, 0.043731689453125, 0.023529052734375, -0.0110015869140625, -0.013580322265625, -0.01479339599609375, -0.01090240478515625, -0.027984619140625, -0.01329803466796875, 0.0195159912109375, -0.01078033447265625, -0.00554656982421875, 0.0028629302978515625, -0.000988006591796875, 0.043670654296875, -0.03564453125, -0.038818359375, 0.0170745849609375, -0.0267791748046875, -0.0045928955078125, -0.01953125, 0.001293182373046875, -0.06201171875, -0.00640106201171875, -0.0276336669921875, 0.01163482666015625, 0.0298309326171875, -0.01113128662109375, 0.039154052734375, 0.04168701171875, -0.0095672607421875, 0.004566192626953125, 0.01222991943359375, 0.0015935897827148438, -0.0081329345703125, -0.0291290283203125, -0.0133514404296875, -0.0156707763671875, -0.019378662109375, 0.0077362060546875, -0.007720947265625, -0.037261962890625, -0.02081298828125, 0.004146575927734375, 0.09442138671875, -0.0236053466796875, -0.0232696533203125, 0.0237884521484375, -0.005550384521484375, -0.0226287841796875, 0.0213165283203125, 0.01458740234375, -0.07489013671875, -0.06658935546875, 0.0304718017578125, -0.07403564453125, -0.004444122314453125, 0.03424072265625, -0.041168212890625, 0.09136962890625, -0.007640838623046875, 0.01397705078125, -0.0037670135498046875, 0.036865234375, 0.0023059844970703125, 0.0297088623046875, -0.05865478515625, 0.07049560546875, 0.044830322265625, -0.006710052490234375, -0.04693603515625, 0.0025730133056640625, -0.012115478515625, -0.0226287841796875, 0.028167724609375, 0.019561767578125, -0.01513671875, -0.0157623291015625, -0.0303497314453125, -0.015625, -0.035491943359375, 0.047760009765625, 0.0034580230712890625, -0.0129241943359375, 0.0191650390625, -0.018157958984375, 0.014556884765625, -0.0042877197265625, -0.007587432861328125, 0.0292816162109375, 0.019500732421875, 0.049072265625, -0.0018396377563476562, 0.04718017578125, -0.004749298095703125, -0.00890350341796875, 0.01302337646484375, -0.05694580078125, -0.00806427001953125, 0.0177764892578125, -0.016571044921875, 0.03643798828125, -0.037384033203125, -0.0152435302734375, 0.01055145263671875, 0.00772857666015625, 0.024810791015625, 0.0271148681640625, 0.031829833984375, -0.005725860595703125, -0.0027256011962890625, 0.01300048828125, 0.01708984375, -0.035980224609375, 0.04864501953125, 0.00827789306640625, 0.0177154541015625, -0.046142578125, 0.050201416015625, 0.05426025390625, 0.0693359375, -0.06622314453125, -0.0694580078125, 0.0129547119140625, 0.00969696044921875, 0.010528564453125, 0.064697265625, 0.051239013671875, -0.03826904296875, 0.0300140380859375, -0.0196380615234375, -0.0006070137023925781, 0.0219879150390625, 0.004177093505859375, 0.0037670135498046875, 0.0312042236328125, -0.01235198974609375, 0.01033782958984375, -0.032562255859375, 0.0218048095703125, -0.00566864013671875, -0.0029392242431640625, -0.0119171142578125, 0.0572509765625, 0.022247314453125, 0.00275421142578125, -0.00426483154296875, 0.01375579833984375, -0.0377197265625, -0.0154266357421875, -0.048797607421875, -0.07940673828125, -0.031707763671875, 0.044830322265625, -0.0102386474609375, 0.0288543701171875, 0.021881103515625, 0.005817413330078125, -0.01507568359375, -0.01239776611328125, 0.02850341796875, -0.0284271240234375, 0.016143798828125, -0.053009033203125, 0.0269012451171875, -0.03778076171875, 0.005828857421875, -0.0030364990234375, 0.0374755859375, -0.0283050537109375, -0.0059051513671875, -0.00302886962890625, 0.01102447509765625, -0.0068206787109375, 0.042694091796875, 0.03216552734375, 0.00389862060546875, 0.032135009765625, -0.06890869140625, -0.024261474609375, -0.0162506103515625, 0.00789642333984375, 0.0216827392578125, 0.0260009765625, -0.02862548828125, 0.05157470703125, -0.011688232421875, 0.0025959014892578125, 0.009185791015625, 0.01169586181640625, -0.0204620361328125, 0.01029205322265625, 0.053009033203125, 0.0017576217651367188, -0.00382232666015625, 0.01262664794921875, 0.019287109375, -0.00864410400390625, 0.036376953125, 0.01007080078125, 0.0181732177734375, 0.0224761962890625, -0.021026611328125, 0.007648468017578125, -0.023345947265625, 0.01837158203125, -0.050811767578125, 0.0174560546875, 0.0121002197265625, 0.00531005859375, -0.0003566741943359375, 0.0256195068359375, 0.040771484375, -0.024261474609375, 0.01544189453125, 0.0251312255859375, 0.00688934326171875, -0.0276641845703125, 0.060760498046875, -0.006084442138671875, -0.0280914306640625, -0.0347900390625, -0.00885009765625, 0.03790283203125, 0.064453125, 0.030975341796875, 0.0018825531005859375, -0.0092315673828125, -0.0205841064453125, 0.01500701904296875, 0.003360748291015625, 0.0119171142578125, 0.030975341796875, -0.034210205078125, 0.04229736328125, 0.0189666748046875, -0.01910400390625, 0.0111846923828125, 0.020751953125, -0.00719451904296875, 0.0034332275390625, 0.00408935546875, 0.0260009765625, 0.007343292236328125, 0.04046630859375, -0.0047454833984375, 0.01407623291015625, 0.004024505615234375, -0.0030612945556640625, -0.00827789306640625, 0.0159759521484375, -0.033843994140625, -0.06109619140625, -0.03436279296875, 0.0010919570922851562, -0.05926513671875, -0.0679931640625, -0.07568359375, 0.0257110595703125, 0.044769287109375, 0.0214996337890625, -0.071044921875, 0.07550048828125, -0.046875, 0.02996826171875, 0.0110321044921875, -0.018096923828125, 0.0008940696716308594, 0.0231170654296875, -0.0248260498046875, 0.00049591064453125, -0.04925537109375, -0.00691986083984375, -0.011932373046875, -0.0306243896484375, -0.0118255615234375, 0.017242431640625, 0.0038013458251953125, -0.046356201171875, -0.0215606689453125, -0.011077880859375, 0.0129547119140625, -0.01039886474609375, -0.00902557373046875, 0.0160675048828125, -0.0153350830078125, -0.019439697265625, -0.0131378173828125, -0.007625579833984375, -0.0156707763671875, -0.009796142578125, 0.007282257080078125, 0.023162841796875, -0.04095458984375, -0.09124755859375, 0.01444244384765625, -0.01593017578125, -0.04693603515625, 0.01132965087890625, -0.035003662109375, -0.03265380859375, 0.04290771484375, 0.003543853759765625, -0.0203857421875, -0.0163726806640625, 0.0104827880859375, 0.004077911376953125, 0.06292724609375, -0.016021728515625, 0.01293182373046875, -0.050506591796875, -0.005924224853515625, -0.04296875, 0.0147705078125, 0.00928497314453125, -0.004062652587890625, 0.01546478271484375, 0.0251007080078125, -0.0289764404296875, -0.0183868408203125, -0.01447296142578125, -0.00753021240234375, -0.00493621826171875, -0.00846099853515625, -0.07275390625, -0.03955078125, 0.0838623046875, 0.0706787109375, 0.04034423828125, 0.0025482177734375, -0.0081024169921875, -0.053497314453125, -0.0174102783203125, -0.032135009765625, 0.0100555419921875, -0.075439453125, -0.01111602783203125, 0.0251007080078125, -0.009124755859375, -0.012451171875, 0.00650787353515625, -0.0252532958984375, 0.006534576416015625, 0.0257568359375, -0.01457977294921875, 0.01287078857421875, -0.0046844482421875, 0.0606689453125, -0.041748046875, -0.02435302734375, -0.007781982421875, 0.00579833984375, 0.004093170166015625, -0.0007252693176269531, -0.007488250732421875, -0.06414794921875, -0.0631103515625, 0.04205322265625, -0.040771484375, 0.095703125, -0.08111572265625, -0.06683349609375, -0.019500732421875, 0.0100860595703125, 0.0155029296875, 0.01397705078125, -0.0213470458984375, 0.01444244384765625, 0.01352691650390625, 0.0460205078125, 0.011505126953125, 0.07537841796875, -0.01139068603515625, 0.046539306640625, -0.0205535888671875, -0.01537322998046875, -0.0037517547607421875, -0.019500732421875, -0.01450347900390625, -0.00931549072265625, -0.0038433074951171875, -0.086181640625, 0.02764892578125, -0.0241241455078125, 0.038482666015625, 0.0362548828125 ]
8db355eb4a453de05e2bf0ecbcf44b5aafea4665
Wordpress Stackexchange Q: Is there an action for when permalinks are rebuilt? In my plugin, I have a list of titles and permalinks in the options table. It's updated every time my custom post type is saved. Since I'm saving permalinks the option data can become bad if the user changes their permalink structure. I need a action that I can hook into that happens whenever the permalink structure is updated. Is there one? A: The action is update_option_permalink_structure. You get the old and the new value as parameters. add_action( 'update_option_permalink_structure' , 'my_custom_function', 10, 2 ); function my_custom_function( $oldvalue, $_newvalue ) { // do something } There are also the actions update_option_category_base and update_option_tag_base.
Q: Is there an action for when permalinks are rebuilt? In my plugin, I have a list of titles and permalinks in the options table. It's updated every time my custom post type is saved. Since I'm saving permalinks the option data can become bad if the user changes their permalink structure. I need a action that I can hook into that happens whenever the permalink structure is updated. Is there one? A: The action is update_option_permalink_structure. You get the old and the new value as parameters. add_action( 'update_option_permalink_structure' , 'my_custom_function', 10, 2 ); function my_custom_function( $oldvalue, $_newvalue ) { // do something } There are also the actions update_option_category_base and update_option_tag_base.
wordpress
{ "language": "en", "length": 112, "provenance": "stackexchange_00019.jsonl.gz:431658", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/96988" }
[ 0.07098388671875, 0.005985260009765625, -0.006320953369140625, -0.043701171875, 0.0181427001953125, -0.032989501953125, 0.0302276611328125, -0.0086517333984375, -0.006031036376953125, 0.0025424957275390625, -0.0160369873046875, 0.0120697021484375, 0.0013570785522460938, -0.038848876953125, 0.039581298828125, -0.00693511962890625, 0.054779052734375, -0.040069580078125, 0.036224365234375, -0.0032863616943359375, -0.00003212690353393555, 0.0274810791015625, 0.038421630859375, 0.044769287109375, 0.017974853515625, -0.00397491455078125, 0.06402587890625, -0.03521728515625, 0.0283355712890625, -0.0161590576171875, 0.00684356689453125, -0.0202484130859375, 0.01080322265625, -0.0145416259765625, 0.0526123046875, 0.0237579345703125, 0.06982421875, -0.032928466796875, 0.0173187255859375, 0.040740966796875, 0.0406494140625, -0.0078887939453125, 0.036651611328125, 0.012786865234375, 0.01007080078125, -0.01543426513671875, 0.045074462890625, -0.0633544921875, 0.012786865234375, 0.0001398324966430664, -0.01439666748046875, -0.00540924072265625, -0.0095977783203125, -0.004314422607421875, -0.0196685791015625, -0.03179931640625, -0.060760498046875, 0.0159454345703125, 0.01522064208984375, 0.04498291015625, 0.010589599609375, 0.004909515380859375, -0.006092071533203125, -0.0192413330078125, -0.018798828125, -0.001972198486328125, 0.0183868408203125, 0.006679534912109375, -0.0253753662109375, 0.0007309913635253906, 0.0347900390625, -0.018096923828125, -0.00439453125, -0.01364898681640625, -0.012481689453125, -0.0228729248046875, -0.00811767578125, -0.0447998046875, 0.004917144775390625, 0.023406982421875, 0.06781005859375, 0.0105743408203125, 0.06298828125, -0.04742431640625, 0.039459228515625, -0.01438140869140625, 0.01153564453125, -0.01727294921875, -0.0489501953125, -0.017059326171875, -0.028411865234375, -0.049835205078125, -0.01337432861328125, -0.00191497802734375, -0.01497650146484375, -0.0134429931640625, 0.017242431640625, 0.05767822265625, -0.026519775390625, 0.0237274169921875, 0.0172119140625, -0.04443359375, 0.06646728515625, -0.057647705078125, -0.00347137451171875, -0.02923583984375, 0.032867431640625, -0.00543212890625, 0.029937744140625, 0.0103912353515625, -0.03741455078125, 0.0767822265625, -0.0281829833984375, -0.00867462158203125, -0.0161285400390625, -0.003082275390625, -0.0751953125, 0.038726806640625, -0.0131683349609375, 0.045013427734375, -0.016082763671875, 0.0106353759765625, -0.024322509765625, -0.0193939208984375, 0.01861572265625, -0.01397705078125, -0.00782012939453125, 0.0144500732421875, -0.00566864013671875, 0.0215911865234375, -0.0227203369140625, 0.0029544830322265625, 0.0692138671875, 0.0345458984375, 0.00739288330078125, -0.0188446044921875, 0.03387451171875, -0.0144195556640625, -0.0158233642578125, 0.0026645660400390625, 0.0240478515625, -0.01163482666015625, -0.01483917236328125, -0.01457977294921875, 0.03363037109375, 0.00576019287109375, 0.0094146728515625, 0.0179443359375, 0.01251220703125, 0.0063323974609375, 0.01410675048828125, -0.0165863037109375, 0.046783447265625, -0.0063018798828125, -0.0199737548828125, -0.0204010009765625, 0.04302978515625, -0.032257080078125, -0.024505615234375, -0.064453125, 0.025299072265625, -0.01351165771484375, 0.005496978759765625, -0.01959228515625, -0.04388427734375, 0.01543426513671875, -0.043609619140625, -0.0036983489990234375, 0.026641845703125, 0.0257415771484375, 0.0020751953125, -0.0127105712890625, 0.02276611328125, -0.0138702392578125, -0.0214691162109375, -0.0031108856201171875, -0.039306640625, 0.01519775390625, 0.0189666748046875, 0.01183319091796875, 0.0020809173583984375, -0.025848388671875, 0.0338134765625, 0.00852203369140625, -0.047943115234375, 0.033782958984375, 0.00901031494140625, 0.06689453125, -0.00007736682891845703, 0.024017333984375, 0.004108428955078125, 0.023956298828125, -0.061004638671875, 0.033203125, 0.005611419677734375, 0.026336669921875, -0.01294708251953125, 0.022003173828125, -0.006977081298828125, -0.036163330078125, -0.041717529296875, 0.03302001953125, -0.0198822021484375, 0.0435791015625, -0.050689697265625, 0.0498046875, -0.030364990234375, 0.042755126953125, 0.0002027750015258789, 0.04644775390625, 0.020965576171875, 0.0277557373046875, -0.053558349609375, 0.018829345703125, 0.002323150634765625, 0.01171875, -0.0187225341796875, -0.0157318115234375, -0.02685546875, -0.0024051666259765625, -0.0152435302734375, -0.0153350830078125, -0.037567138671875, 0.0401611328125, 0.0079345703125, -0.031890869140625, -0.01126861572265625, -0.025299072265625, -0.0293121337890625, -0.0036945343017578125, -0.0462646484375, 0.060394287109375, 0.049285888671875, 0.043914794921875, -0.0170135498046875, -0.025360107421875, -0.0263214111328125, -0.0904541015625, -0.0007100105285644531, 0.06292724609375, 0.0223236083984375, 0.01334381103515625, 0.00931549072265625, 0.052581787109375, 0.0167236328125, 0.0263671875, 0.052825927734375, 0.00830841064453125, -0.002529144287109375, 0.042022705078125, -0.0197906494140625, 0.018035888671875, 0.0209808349609375, -0.0168914794921875, -0.0062408447265625, 0.040557861328125, -0.0169677734375, -0.01806640625, 0.005840301513671875, -0.005893707275390625, 0.0159149169921875, -0.02593994140625, -0.033599853515625, -0.00409698486328125, 0.060882568359375, -0.023101806640625, 0.0304412841796875, 0.00914764404296875, -0.0239715576171875, 0.0052490234375, 0.014739990234375, -0.01477813720703125, -0.0097503662109375, 0.0301513671875, -0.0146331787109375, 0.005462646484375, 0.0007796287536621094, 0.0012331008911132812, -0.041961669921875, 0.016845703125, -0.038482666015625, 0.001300811767578125, -0.042755126953125, -0.0187225341796875, -0.0199737548828125, -0.04522705078125, 0.00914764404296875, -0.0138092041015625, 0.00690460205078125, 0.00202178955078125, 0.03741455078125, 0.0023632049560546875, -0.01568603515625, 0.009033203125, 0.0218353271484375, -0.03485107421875, 0.026275634765625, -0.0230712890625, 0.02545166015625, -0.015411376953125, 0.05780029296875, 0.07305908203125, 0.0017213821411132812, 0.001377105712890625, -0.003986358642578125, -0.00579833984375, -0.0279693603515625, 0.0308837890625, -0.006259918212890625, -0.037567138671875, -0.032196044921875, 0.00960540771484375, 0.0222625732421875, 0.060272216796875, 0.0030803680419921875, -0.036773681640625, 0.003925323486328125, 0.043670654296875, -0.0293731689453125, -0.0518798828125, -0.0017452239990234375, -0.059722900390625, 0.0274810791015625, -0.02423095703125, -0.005420684814453125, -0.0255584716796875, 0.0009293556213378906, 0.01125335693359375, 0.0294952392578125, -0.02301025390625, -0.05889892578125, -0.032073974609375, -0.078369140625, -0.0185394287109375, 0.0125885009765625, 0.016357421875, -0.00374603271484375, 0.015045166015625, -0.0132904052734375, -0.0311279296875, 0.00643157958984375, -0.051544189453125, 0.006198883056640625, 0.01451873779296875, 0.0290374755859375, -0.039306640625, 0.01126861572265625, 0.0007314682006835938, 0.0654296875, 0.0653076171875, -0.05975341796875, 0.014312744140625, -0.019989013671875, -0.00804901123046875, 0.01233673095703125, -0.002918243408203125, 0.0174407958984375, 0.01947021484375, 0.018890380859375, -0.04913330078125, -0.040496826171875, -0.00847625732421875, -0.05267333984375, 0.01151275634765625, 0.033294677734375, 0.00007462501525878906, -0.0228729248046875, 0.0311431884765625, 0.022308349609375, 0.0263519287109375, 0.06787109375, -0.0165557861328125, 0.002208709716796875, -0.017913818359375, -0.0210418701171875, -0.06207275390625, 0.04461669921875, -0.0216522216796875, 0.03173828125, 0.0212249755859375, -0.01337432861328125, -0.003421783447265625, -0.019195556640625, -0.040008544921875, -0.03900146484375, 0.0246124267578125, -0.096435546875, 0.025299072265625, -0.07379150390625, -0.003398895263671875, -0.031219482421875, 0.07257080078125, 0.0035552978515625, -0.02166748046875, 0.007568359375, 0.003326416015625, -0.022613525390625, -0.01105499267578125, -0.033599853515625, -0.007686614990234375, -0.10107421875, -0.01055145263671875, 0.010650634765625, -0.060211181640625, -0.01611328125, 0.0430908203125, -0.0758056640625, -0.0250396728515625, 0.01061248779296875, 0.01268768310546875, -0.0411376953125, 0.0025348663330078125, -0.022247314453125, -0.03253173828125, 0.003414154052734375, -0.002162933349609375, -0.0826416015625, -0.0131072998046875, -0.0278778076171875, 0.052001953125, 0.0199432373046875, -0.01190185546875, -0.0330810546875, 0.031402587890625, -0.003963470458984375, 0.0369873046875, 0.00957489013671875, 0.013916015625, 0.02301025390625, -0.031829833984375, 0.0123138427734375, -0.035430908203125, 0.018646240234375, 0.0193939208984375, -0.01116180419921875, -0.0098114013671875, -0.0445556640625, -0.036224365234375, 0.0026988983154296875, -0.05682373046875, -0.07000732421875, -0.006740570068359375, -0.044403076171875, -0.01342010498046875, -0.032623291015625, -0.0027446746826171875, -0.007350921630859375, -0.08758544921875, 0.033355712890625, -0.054718017578125, 0.0249481201171875, 0.0032958984375, 0.056304931640625, 0.00305938720703125, -0.006801605224609375, 0.0261688232421875, 0.0048370361328125, 0.02935791015625, -0.007465362548828125, 0.0158538818359375, 0.0301361083984375, -0.0048370361328125, -0.016387939453125, -0.00628662109375, -0.032501220703125, -0.030914306640625, 0.0191650390625, 0.0174560546875, 0.0014934539794921875, -0.0183258056640625, -0.027496337890625, 0.08197021484375, 0.037353515625, -0.008758544921875, 0.0024051666259765625, -0.052398681640625, 0.0227203369140625, -0.01654052734375, 0.0345458984375, -0.0253143310546875, -0.003643035888671875, 0.00946807861328125, 0.007190704345703125, 0.05499267578125, 0.042724609375, -0.0185394287109375, 0.0196533203125, -0.030364990234375, 0.010528564453125, -0.02813720703125, -0.006099700927734375, -0.025665283203125, 0.044403076171875, -0.022735595703125, 0.00719451904296875, -0.01318359375, 0.0031299591064453125, 0.0086822509765625, 0.009063720703125, -0.01788330078125, -0.033233642578125, -0.005176544189453125, 0.03179931640625, 0.00388336181640625, 0.033538818359375, 0.031097412109375, 0.028167724609375, 0.0138397216796875, -0.0018911361694335938, 0.0194244384765625, 0.048736572265625, -0.0203704833984375, 0.01250457763671875, 0.011627197265625, -0.0172576904296875, -0.0191497802734375, 0.03668212890625, 0.05511474609375, -0.0152130126953125, -0.0279083251953125, 0.024505615234375, 0.045867919921875, -0.0023174285888671875, 0.0101470947265625, -0.00542449951171875, 0.01200103759765625, -0.024383544921875, 0.020233154296875, -0.035675048828125, -0.004558563232421875, 0.021942138671875, 0.056060791015625, -0.01043701171875, -0.01558685302734375, 0.0215606689453125, -0.019287109375, -0.024261474609375, 0.077880859375, 0.01479339599609375, -0.0645751953125, -0.03240966796875, 0.03631591796875, 0.04254150390625, -0.024658203125, -0.013580322265625, -0.00028252601623535156, -0.044464111328125, -0.00606536865234375, -0.0047760009765625, -0.0189361572265625, -0.0027027130126953125, -0.0163726806640625, 0.00954437255859375, -0.023681640625, 0.007076263427734375, -0.004329681396484375, 0.0138092041015625, -0.0217132568359375, 0.00753021240234375, 0.0195770263671875, 0.01947021484375, 0.04595947265625, -0.024749755859375, -0.04315185546875, 0.044921875, -0.0166473388671875, 0.036712646484375, -0.0171966552734375, -0.06341552734375, 0.0088958740234375, -0.00543212890625, 0.01313018798828125, -0.0467529296875, -0.046478271484375, -0.036895751953125, -0.00714874267578125, -0.0020618438720703125, -0.00048613548278808594, 0.0002460479736328125, 0.00835418701171875, 0.013671875, 0.0264434814453125, 0.00540924072265625, 0.02435302734375, -0.01477813720703125, 0.08984375, -0.0116729736328125, 0.06292724609375, 0.012969970703125, 0.04339599609375, -0.0218658447265625, -0.0196533203125, -0.01464080810546875, -0.0007076263427734375, -0.0008282661437988281, 0.02178955078125, 0.0004444122314453125, 0.0115966796875, 0.07537841796875, 0.006664276123046875, -0.01180267333984375, -0.01387786865234375, 0.0039043426513671875, -0.032806396484375, 0.020294189453125, -0.05389404296875, -0.03399658203125, -0.0084075927734375, -0.01525115966796875, 0.0210723876953125, -0.003383636474609375, 0.0120391845703125, 0.024871826171875, -0.03961181640625, 0.01081085205078125, 0.0173492431640625, -0.04840087890625, 0.03875732421875, 0.0213623046875, 0.027740478515625, 0.0301513671875, -0.0097503662109375, 0.032928466796875, 0.01511383056640625, -0.022857666015625, 0.043243408203125, 0.0350341796875, 0.06683349609375, -0.003932952880859375, 0.00814056396484375, 0.0517578125, -0.0228729248046875, 0.02203369140625, 0.01245880126953125, 0.0626220703125, -0.052734375, 0.0242462158203125, 0.0215301513671875, 0.0201416015625, 0.0654296875, -0.00879669189453125, 0.0211029052734375, 0.0066986083984375, -0.007556915283203125, -0.0003037452697753906, -0.03668212890625, -0.0232391357421875, -0.00627899169921875, -0.0123443603515625, -0.0174102783203125, 0.0205230712890625, 0.0088348388671875, 0.047454833984375, -0.017364501953125, -0.023284912109375, 0.010101318359375, -0.01473236083984375, -0.0012369155883789062, 0.00827789306640625, -0.0223388671875, -0.0115203857421875, 0.04638671875, -0.009765625, 0.01494598388671875, -0.02471923828125, 0.0174560546875, 0.032440185546875, 0.037628173828125, -0.01502227783203125, -0.0193939208984375, 0.0249786376953125, -0.0171661376953125, -0.041229248046875, -0.040008544921875, 0.005008697509765625, 0.022430419921875, -0.0022525787353515625, 0.034423828125, 0.0027618408203125, -0.04132080078125, 0.0034732818603515625, -0.026214599609375, 0.0728759765625, -0.06280517578125, -0.0038394927978515625, 0.0189971923828125, -0.0107879638671875, 0.0016613006591796875, -0.0217437744140625, -0.004852294921875, -0.054595947265625, -0.037200927734375, -0.0265655517578125, -0.05413818359375, 0.0018024444580078125, -0.03253173828125, -0.0654296875, 0.1387939453125, 0.01270294189453125, 0.02899169921875, -0.002597808837890625, 0.05377197265625, -0.03857421875, 0.035064697265625, -0.02447509765625, 0.0711669921875, -0.0213775634765625, -0.0010623931884765625, -0.045013427734375, 0.004901885986328125, -0.00592803955078125, 0.005340576171875, 0.0251922607421875, 0.0162506103515625, -0.056304931640625, 0.0007596015930175781, 0.0311431884765625, -0.0017948150634765625, -0.0016536712646484375, 0.05584716796875, -0.005779266357421875, 0.043121337890625, 0.04547119140625, -0.0204010009765625, 0.03179931640625, 0.0156707763671875, -0.0458984375, 0.0132598876953125, 0.02899169921875, 0.05462646484375, -0.01091766357421875, -0.00969696044921875, -0.00017130374908447266, -0.00934600830078125, 0.01549530029296875, 0.016265869140625, -0.0091705322265625, 0.016387939453125, -0.003078460693359375, -0.0212249755859375, 0.0180816650390625, -0.0251617431640625, 0.0291748046875, -0.01395416259765625, -0.0006756782531738281, 0.0205078125, 0.002323150634765625, -0.008941650390625, 0.0218048095703125, -0.00009572505950927734, 0.0263824462890625, -0.0036525726318359375, 0.0867919921875, 0.040557861328125, 0.0228271484375, 0.001987457275390625, 0.0236053466796875, 0.01519012451171875, 0.09979248046875, -0.059478759765625, -0.05023193359375, 0.0050201416015625, 0.01380157470703125, 0.018157958984375, 0.0160064697265625, 0.0222625732421875, -0.00841522216796875, 0.055084228515625, 0.0117950439453125, -0.0190582275390625, 0.0033245086669921875, 0.04327392578125, 0.00972747802734375, -0.01751708984375, -0.031097412109375, -0.0243072509765625, -0.0275115966796875, 0.0015592575073242188, -0.01157379150390625, 0.04180908203125, 0.0298309326171875, 0.04827880859375, -0.0104522705078125, -0.0262298583984375, 0.004627227783203125, 0.0260772705078125, -0.047027587890625, 0.01125335693359375, -0.0262603759765625, -0.05816650390625, -0.0350341796875, 0.046356201171875, 0.0517578125, 0.051239013671875, 0.047821044921875, -0.0003304481506347656, 0.0010271072387695312, 0.03997802734375, 0.045623779296875, -0.0206298828125, 0.0290679931640625, -0.043975830078125, 0.06695556640625, 0.019012451171875, 0.006587982177734375, -0.033905029296875, 0.01947021484375, 0.02923583984375, -0.02947998046875, 0.01229095458984375, -0.0025424957275390625, -0.0165252685546875, 0.06353759765625, 0.0089263916015625, 0.0467529296875, 0.005901336669921875, 0.038299560546875, 0.0015630722045898438, -0.023040771484375, -0.0433349609375, 0.006137847900390625, 0.044281005859375, 0.0224456787109375, -0.02252197265625, -0.025115966796875, -0.002017974853515625, 0.01416778564453125, -0.0210113525390625, 0.0020580291748046875, 0.0760498046875, 0.021484375, 0.01983642578125, -0.0300445556640625, -0.01294708251953125, 0.01293182373046875, 0.0194091796875, -0.003658294677734375, 0.07647705078125, -0.0194244384765625, 0.0006227493286132812, 0.00829315185546875, 0.017730712890625, -0.0157012939453125, -0.00487518310546875, 0.038726806640625, -0.032318115234375, 0.007228851318359375, 0.0021610260009765625, -0.00980377197265625, -0.006420135498046875, 0.048065185546875, -0.0325927734375, -0.0222930908203125, -0.0092010498046875, 0.040740966796875, -0.002162933349609375, 0.03631591796875, -0.0252685546875, -0.046356201171875, -0.0008211135864257812, -0.004283905029296875, -0.00737762451171875, 0.0188751220703125, 0.041748046875, 0.0239410400390625, 0.0020694732666015625, 0.035736083984375, -0.0024967193603515625, 0.019287109375, -0.005046844482421875, 0.0225677490234375, -0.041534423828125, 0.049346923828125, 0.0040130615234375, -0.0233612060546875, 0.04571533203125, -0.0010557174682617188, -0.0145416259765625, 0.0223388671875, 0.00490570068359375, -0.0258026123046875, -0.046630859375, 0.0019140243530273438, -0.013702392578125, 0.00531768798828125, -0.0477294921875, 0.0212860107421875, -0.00896453857421875, -0.0148773193359375, -0.0179901123046875, -0.03948974609375, -0.007587432861328125, 0.0006079673767089844, -0.022430419921875, -0.03167724609375, 0.0033435821533203125, 0.006923675537109375, 0.005794525146484375, 0.016815185546875, -0.08489990234375, 0.08038330078125, -0.01446533203125, -0.006839752197265625, -0.02850341796875, -0.06988525390625, 0.027801513671875, 0.052459716796875, -0.03277587890625, -0.042877197265625, -0.038116455078125, -0.01436614990234375, -0.06085205078125, 0.007114410400390625, 0.04241943359375, -0.0269317626953125, -0.07904052734375, 0.006320953369140625, 0.00897979736328125, 0.05194091796875, 0.00933074951171875, -0.01004791259765625, 0.0230255126953125, 0.016448974609375, -0.0088348388671875, -0.058929443359375, -0.0190277099609375, -0.007732391357421875, 0.030059814453125, -0.028778076171875, -0.0184326171875, -0.0112152099609375, -0.03594970703125, -0.0215606689453125, 0.0546875, -0.00026869773864746094, -0.01180267333984375, -0.03802490234375, -0.024383544921875, -0.019378662109375, 0.060302734375, -0.0022640228271484375, -0.01477813720703125, -0.031829833984375, 0.041351318359375, 0.00814056396484375, 0.036346435546875, -0.0033283233642578125, 0.0179290771484375, -0.0296783447265625, 0.0325927734375, 0.019805908203125, 0.01314544677734375, 0.042999267578125, -0.0462646484375, 0.0572509765625, 0.035308837890625, -0.0438232421875, -0.02294921875, -0.00733184814453125, -0.0159759521484375, 0.01275634765625, -0.04083251953125, -0.046112060546875, -0.023712158203125, 0.081787109375, 0.01480865478515625, 0.0266571044921875, -0.0232696533203125, 0.00028204917907714844, -0.0021076202392578125, -0.012847900390625, 0.0016393661499023438, 0.017669677734375, -0.044586181640625, -0.0027065277099609375, -0.00589752197265625, 0.01763916015625, -0.02020263671875, -0.00878143310546875, 0.00376129150390625, -0.0153656005859375, 0.042938232421875, 0.006237030029296875, 0.0012159347534179688, 0.0181427001953125, 0.041778564453125, -0.03326416015625, -0.01800537109375, 0.0178985595703125, -0.00971221923828125, 0.0008878707885742188, 0.0017595291137695312, 0.0115203857421875, 0.034881591796875, -0.006282806396484375, -0.00748443603515625, 0.03753662109375, 0.0293731689453125, 0.0189666748046875, -0.0160980224609375, -0.0244140625, 0.0108795166015625, 0.00415802001953125, -0.004917144775390625, -0.045623779296875, 0.058837890625, 0.015777587890625, 0.07293701171875, -0.0163726806640625, 0.03436279296875, -0.00914764404296875, 0.036773681640625, -0.0276947021484375, 0.00809478759765625, 0.00943756103515625, -0.040863037109375, -0.006420135498046875, -0.0125579833984375, 0.004749298095703125, -0.0987548828125, 0.039154052734375, -0.035675048828125, 0.0253753662109375, 0.044830322265625 ]
0d727c67d9ae1b8c71100e8862a4483c8fbb1007
Wordpress Stackexchange Q: Changing image URLs in media library On a default wordpress install, the media library is located at: /wp-admin/upload.php. I am trying to update the image URL to point to my CDN, not my local server. This filter add_filter('admin_post_thumbnail_html', 'my-function', 1000, 5); will update the featured image URLs in the admin, but not the images in the media library list table. Is there a filter or action I am missing?
Q: Changing image URLs in media library On a default wordpress install, the media library is located at: /wp-admin/upload.php. I am trying to update the image URL to point to my CDN, not my local server. This filter add_filter('admin_post_thumbnail_html', 'my-function', 1000, 5); will update the featured image URLs in the admin, but not the images in the media library list table. Is there a filter or action I am missing?
wordpress
{ "language": "en", "length": 70, "provenance": "stackexchange_00019.jsonl.gz:431691", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/97107" }
[ 0.05267333984375, -0.0004901885986328125, 0.045440673828125, 0.0012063980102539062, 0.01517486572265625, -0.0222015380859375, 0.07958984375, -0.041656494140625, 0.01424407958984375, 0.0217742919921875, 0.04119873046875, -0.04986572265625, 0.0157928466796875, -0.0650634765625, -0.034332275390625, -0.01377105712890625, 0.024566650390625, -0.01401519775390625, 0.00733184814453125, -0.0024547576904296875, -0.004352569580078125, 0.023681640625, 0.00823974609375, 0.028900146484375, -0.0227508544921875, 0.004070281982421875, 0.04815673828125, -0.026641845703125, -0.0261688232421875, -0.042510986328125, 0.0006036758422851562, 0.035614013671875, 0.01003265380859375, -0.010711669921875, -0.0006670951843261719, -0.05572509765625, -0.0005726814270019531, -0.0080108642578125, -0.005523681640625, -0.00896453857421875, 0.01229095458984375, 0.0008530616760253906, 0.01201629638671875, 0.00823211669921875, -0.0097808837890625, -0.026611328125, -0.008636474609375, -0.051055908203125, 0.011993408203125, 0.033905029296875, -0.0018968582153320312, -0.0084228515625, 0.0015039443969726562, -0.0237274169921875, -0.0038623809814453125, -0.02020263671875, -0.0019006729125976562, 0.0170440673828125, 0.0229949951171875, -0.0154266357421875, -0.0390625, 0.01253509521484375, 0.01335906982421875, -0.006572723388671875, -0.00826263427734375, -0.00814056396484375, 0.006378173828125, 0.0193328857421875, -0.0733642578125, -0.034454345703125, 0.04901123046875, -0.042327880859375, 0.004085540771484375, -0.043731689453125, 0.0291900634765625, 0.0306396484375, -0.00920867919921875, -0.00530242919921875, 0.01605224609375, -0.006923675537109375, 0.04052734375, -0.00955963134765625, -0.0268707275390625, 0.01479339599609375, 0.0111541748046875, 0.032379150390625, -0.00034308433532714844, -0.03277587890625, -0.0238189697265625, 0.0289306640625, -0.0322265625, -0.0177001953125, 0.0177459716796875, 0.01219940185546875, -0.0096435546875, 0.0204315185546875, 0.061798095703125, 0.0374755859375, 0.02288818359375, -0.005641937255859375, -0.0020275115966796875, -0.048431396484375, -0.006755828857421875, -0.0140228271484375, 0.0240936279296875, 0.0168304443359375, -0.004573822021484375, 0.01690673828125, 0.0567626953125, 0.0217437744140625, -0.00485992431640625, 0.04559326171875, -0.00946807861328125, 0.001239776611328125, -0.00141143798828125, -0.007564544677734375, -0.049896240234375, 0.0160675048828125, -0.02423095703125, 0.01494598388671875, -0.004077911376953125, 0.0274658203125, -0.037750244140625, -0.0279541015625, 0.031982421875, -0.0075225830078125, -0.0269927978515625, 0.015869140625, -0.0364990234375, 0.0243682861328125, -0.037445068359375, 0.02435302734375, 0.063232421875, 0.002796173095703125, -0.00682830810546875, -0.01178741455078125, -0.0035724639892578125, -0.0010156631469726562, 0.007488250732421875, -0.0002129077911376953, 0.0082855224609375, -0.0022678375244140625, 0.020416259765625, 0.004512786865234375, 0.035858154296875, 0.033599853515625, 0.0015392303466796875, 0.0008912086486816406, -0.0036029815673828125, -0.037261962890625, 0.01328277587890625, -0.006786346435546875, 0.0193939208984375, 0.0306854248046875, 0.0498046875, -0.0338134765625, 0.09423828125, -0.04638671875, 0.00870513916015625, -0.054718017578125, 0.006763458251953125, 0.02032470703125, 0.0399169921875, 0.00879669189453125, 0.006038665771484375, -0.0198822021484375, -0.03277587890625, -0.005107879638671875, 0.0190887451171875, 0.01560211181640625, -0.01467132568359375, -0.0012226104736328125, 0.01393890380859375, 0.01180267333984375, 0.0028476715087890625, 0.013214111328125, 0.011016845703125, 0.037109375, 0.0010652542114257812, 0.0765380859375, 0.049224853515625, -0.0037136077880859375, 0.06573486328125, -0.004535675048828125, -0.039886474609375, 0.00274658203125, 0.0006885528564453125, 0.0323486328125, 0.03509521484375, 0.0204010009765625, 0.017578125, -0.00780487060546875, -0.00963592529296875, 0.005207061767578125, -0.035186767578125, -0.010772705078125, -0.014984130859375, 0.0166015625, -0.0232391357421875, 0.012115478515625, 0.03326416015625, 0.048248291015625, -0.00432586669921875, 0.037261962890625, 0.0177764892578125, 0.0213165283203125, 0.004497528076171875, 0.01374053955078125, 0.023681640625, 0.0177154541015625, -0.004764556884765625, 0.0007114410400390625, -0.0053863525390625, -0.0382080078125, -0.0355224609375, -0.001850128173828125, -0.025634765625, 0.01556396484375, -0.01432037353515625, 0.051483154296875, -0.0302581787109375, -0.0067291259765625, -0.03375244140625, -0.01372528076171875, 0.0251312255859375, 0.002315521240234375, -0.01812744140625, -0.01445770263671875, 0.01412200927734375, 0.0171356201171875, -0.04876708984375, 0.0304718017578125, -0.01076507568359375, -0.015838623046875, -0.0264434814453125, -0.0153961181640625, 0.02337646484375, -0.0758056640625, 0.0288238525390625, 0.057220458984375, 0.03717041015625, 0.025909423828125, 0.018768310546875, 0.04058837890625, 0.09271240234375, 0.028961181640625, 0.03485107421875, -0.0026226043701171875, -0.01102447509765625, 0.005764007568359375, -0.0221710205078125, -0.0225372314453125, 0.0211639404296875, -0.10186767578125, -0.00476837158203125, 0.048858642578125, 0.00919342041015625, -0.01407623291015625, -0.009857177734375, 0.0147247314453125, 0.010223388671875, 0.00946044921875, -0.035400390625, 0.01399993896484375, -0.001544952392578125, 0.038238525390625, 0.016693115234375, 0.022674560546875, -0.0408935546875, 0.0249481201171875, 0.0208282470703125, -0.00856781005859375, -0.0083770751953125, 0.0350341796875, 0.0085296630859375, -0.027679443359375, -0.018280029296875, 0.0068511962890625, -0.0231170654296875, -0.0005574226379394531, -0.03692626953125, -0.025726318359375, -0.06884765625, -0.003353118896484375, -0.028564453125, -0.06793212890625, 0.03277587890625, 0.03497314453125, -0.0162353515625, -0.0130157470703125, 0.028106689453125, 0.011505126953125, -0.003124237060546875, 0.0181121826171875, -0.0160369873046875, -0.0248565673828125, 0.046875, -0.016754150390625, 0.0155029296875, -0.0207366943359375, 0.08929443359375, 0.05584716796875, -0.03216552734375, 0.03802490234375, -0.0009927749633789062, 0.01462554931640625, 0.0083160400390625, 0.0225830078125, -0.006237030029296875, -0.0112457275390625, -0.0428466796875, -0.035003662109375, -0.00551605224609375, -0.055328369140625, -0.02313232421875, -0.031951904296875, -0.04052734375, -0.062042236328125, -0.12548828125, -0.047698974609375, -0.09478759765625, -0.02667236328125, 0.0180816650390625, 0.022705078125, 0.01174163818359375, 0.006195068359375, 0.035858154296875, 0.022705078125, -0.00920867919921875, 0.0199737548828125, -0.04254150390625, -0.02728271484375, -0.053924560546875, -0.02911376953125, -0.0202789306640625, 0.0152435302734375, 0.00827789306640625, 0.031829833984375, 0.00807952880859375, -0.032562255859375, 0.030487060546875, 0.0408935546875, -0.00262451171875, 0.00606536865234375, 0.0244140625, -0.0158233642578125, -0.0202178955078125, -0.0005712509155273438, 0.06585693359375, 0.059722900390625, -0.0650634765625, 0.01296234130859375, -0.0277099609375, -0.033416748046875, -0.00542449951171875, -0.0103912353515625, 0.031768798828125, -0.03216552734375, -0.01238250732421875, -0.050872802734375, -0.0204620361328125, -0.03314208984375, -0.0258331298828125, 0.07623291015625, -0.007396697998046875, -0.0017080307006835938, 0.003307342529296875, 0.0518798828125, -0.007495880126953125, 0.01094818115234375, 0.0226287841796875, -0.045013427734375, 0.0246124267578125, -0.0154571533203125, -0.016387939453125, -0.01274871826171875, 0.03753662109375, -0.0027370452880859375, -0.0203704833984375, 0.0148468017578125, 0.0301971435546875, 0.005859375, -0.01251983642578125, -0.033935546875, -0.051239013671875, 0.04010009765625, -0.03369140625, 0.0196075439453125, -0.0546875, -0.0174407958984375, -0.028106689453125, 0.07891845703125, -0.056304931640625, 0.00757598876953125, -0.029541015625, 0.003063201904296875, -0.008697509765625, -0.057769775390625, -0.0380859375, 0.0030574798583984375, -0.0654296875, -0.017547607421875, -0.01299285888671875, -0.019866943359375, 0.0027790069580078125, 0.031646728515625, -0.0221710205078125, -0.04852294921875, 0.0217132568359375, 0.0047149658203125, -0.003108978271484375, 0.01070404052734375, -0.0240936279296875, -0.0039043426513671875, -0.01271820068359375, -0.0227813720703125, -0.1025390625, -0.0301361083984375, -0.0012178421020507812, 0.09014892578125, 0.0095672607421875, -0.013641357421875, -0.03216552734375, 0.053375244140625, 0.0037097930908203125, 0.008056640625, -0.0229949951171875, -0.0077362060546875, 0.01207733154296875, -0.042083740234375, -0.040069580078125, -0.0172882080078125, -0.0172882080078125, -0.067626953125, -0.0780029296875, -0.0318603515625, 0.0012655258178710938, 0.066650390625, 0.0145416259765625, 0.0002522468566894531, -0.08721923828125, -0.0090179443359375, 0.00927734375, -0.00319671630859375, 0.0033664703369140625, -0.00958251953125, -0.01522064208984375, -0.05865478515625, 0.033599853515625, -0.00984954833984375, 0.00669097900390625, 0.01556396484375, 0.042266845703125, 0.0034198760986328125, -0.01361083984375, -0.047027587890625, -0.004375457763671875, 0.03155517578125, 0.0050811767578125, 0.060546875, 0.0460205078125, 0.00626373291015625, 0.0105438232421875, 0.022430419921875, 0.0283966064453125, -0.01496124267578125, 0.0154266357421875, 0.0149383544921875, -0.0155487060546875, 0.02703857421875, 0.00757598876953125, -0.0185394287109375, 0.0003020763397216797, -0.0182037353515625, -0.0006604194641113281, -0.0322265625, 0.00847625732421875, 0.01354217529296875, 0.00719451904296875, -0.030303955078125, -0.056549072265625, 0.026641845703125, -0.02276611328125, 0.0310821533203125, -0.01049041748046875, -0.00160980224609375, 0.018463134765625, 0.026702880859375, 0.028900146484375, 0.01751708984375, 0.01465606689453125, -0.00217437744140625, 0.053131103515625, 0.01064300537109375, 0.010955810546875, -0.0010881423950195312, -0.009246826171875, 0.0269775390625, -0.005489349365234375, -0.030731201171875, 0.0037174224853515625, -0.0180816650390625, 0.0258636474609375, 0.015655517578125, -0.0186309814453125, 0.031829833984375, -0.0009851455688476562, -0.020782470703125, -0.01328277587890625, -0.04901123046875, -0.014007568359375, -0.050262451171875, 0.0458984375, 0.0160369873046875, -0.0002923011779785156, 0.040740966796875, 0.037841796875, 0.0217132568359375, 0.017364501953125, -0.0207977294921875, 0.0218658447265625, 0.017120361328125, 0.023895263671875, 0.013580322265625, 0.03607177734375, -0.032196044921875, 0.021087646484375, 0.01079559326171875, -0.0056610107421875, 0.01580810546875, 0.0137786865234375, 0.045745849609375, 0.0168304443359375, 0.006504058837890625, -0.021240234375, -0.052642822265625, -0.0126953125, 0.035736083984375, -0.062225341796875, -0.08563232421875, -0.025238037109375, 0.01421356201171875, 0.059600830078125, -0.06805419921875, -0.03619384765625, -0.0225982666015625, -0.029144287109375, 0.009979248046875, -0.008270263671875, -0.0394287109375, 0.033477783203125, 0.0284576416015625, 0.0038700103759765625, -0.0255279541015625, -0.05133056640625, 0.013671875, -0.0017957687377929688, -0.00875091552734375, 0.0039825439453125, 0.067626953125, -0.04156494140625, -0.00446319580078125, 0.03265380859375, -0.02252197265625, -0.0214691162109375, 0.0310211181640625, 0.044219970703125, 0.0245208740234375, -0.0246124267578125, -0.003997802734375, -0.050323486328125, -0.0091094970703125, 0.0482177734375, 0.0011348724365234375, -0.002994537353515625, -0.032562255859375, 0.0066986083984375, 0.029083251953125, -0.0017862319946289062, -0.004016876220703125, -0.00435638427734375, -0.0190887451171875, 0.00780487060546875, 0.01959228515625, 0.00946044921875, 0.033294677734375, -0.0062713623046875, 0.048736572265625, 0.015655517578125, -0.0228271484375, -0.06402587890625, -0.00691986083984375, -0.037384033203125, -0.06317138671875, 0.022186279296875, 0.03558349609375, -0.048492431640625, 0.04278564453125, 0.044219970703125, 0.0299224853515625, 0.018280029296875, -0.0251007080078125, -0.0208892822265625, -0.03155517578125, 0.0294036865234375, -0.05401611328125, 0.03155517578125, -0.00774383544921875, 0.0012769699096679688, 0.047393798828125, -0.031524658203125, -0.018218994140625, 0.005275726318359375, -0.0219268798828125, 0.0017824172973632812, 0.0506591796875, -0.027801513671875, 0.041717529296875, 0.08099365234375, -0.005828857421875, 0.03369140625, 0.041717529296875, -0.0087127685546875, 0.01047515869140625, 0.00016248226165771484, 0.001888275146484375, -0.0159912109375, 0.044189453125, -0.002681732177734375, -0.0236968994140625, 0.04034423828125, -0.032470703125, 0.00916290283203125, -0.00499725341796875, 0.0309295654296875, 0.01337432861328125, -0.00205230712890625, -0.00902557373046875, -0.032318115234375, 0.0263824462890625, 0.0092926025390625, -0.036346435546875, -0.02618408203125, 0.018310546875, -0.07403564453125, -0.0262451171875, -0.01529693603515625, -0.0004665851593017578, -0.017059326171875, 0.007167816162109375, 0.0325927734375, 0.005706787109375, -0.0240936279296875, -0.059112548828125, 0.032318115234375, -0.06201171875, 0.0033740997314453125, 0.023468017578125, -0.027069091796875, -0.004184722900390625, -0.0053253173828125, 0.0247344970703125, -0.009674072265625, 0.00951385498046875, 0.0089111328125, 0.02825927734375, 0.016571044921875, 0.038970947265625, -0.0027904510498046875, 0.0139312744140625, 0.0200347900390625, -0.033782958984375, 0.0455322265625, -0.006633758544921875, -0.0008015632629394531, 0.00917816162109375, -0.035675048828125, -0.00879669189453125, -0.037994384765625, 0.0220947265625, -0.0025234222412109375, -0.047821044921875, 0.02838134765625, -0.02899169921875, 0.00653076171875, 0.0231475830078125, 0.0247650146484375, 0.004993438720703125, 0.005550384521484375, 0.02947998046875, -0.0352783203125, -0.0275726318359375, -0.0094757080078125, -0.058929443359375, -0.006023406982421875, -0.0264434814453125, -0.051025390625, 0.068115234375, -0.0288543701171875, 0.03759765625, 0.032379150390625, 0.0197601318359375, -0.002170562744140625, -0.0001741647720336914, 0.0018892288208007812, -0.0195465087890625, -0.0169525146484375, -0.0091552734375, -0.018157958984375, 0.01232147216796875, -0.0247344970703125, 0.0213623046875, 0.046112060546875, 0.0262451171875, -0.050262451171875, -0.034210205078125, 0.01030731201171875, 0.044342041015625, 0.01464080810546875, 0.036834716796875, -0.005016326904296875, 0.0284576416015625, 0.019744873046875, -0.0124664306640625, 0.043212890625, -0.02716064453125, -0.041961669921875, 0.0284576416015625, 0.03326416015625, 0.05413818359375, -0.000881195068359375, 0.03704833984375, -0.0279083251953125, -0.0029850006103515625, 0.0634765625, -0.06866455078125, -0.006931304931640625, 0.04278564453125, -0.0131988525390625, 0.033660888671875, -0.0288238525390625, 0.00007534027099609375, 0.026153564453125, -0.01995849609375, 0.0179901123046875, 0.02032470703125, 0.00890350341796875, 0.0229644775390625, -0.007904052734375, -0.0082244873046875, 0.0155792236328125, -0.0115966796875, 0.05255126953125, 0.0134429931640625, 0.019439697265625, -0.04144287109375, 0.036224365234375, 0.03704833984375, 0.060760498046875, -0.060882568359375, -0.0162200927734375, 0.01128387451171875, 0.0257110595703125, 0.0005578994750976562, -0.023773193359375, 0.0048370361328125, -0.073974609375, -0.020904541015625, -0.0207061767578125, -0.0177459716796875, 0.040313720703125, 0.03271484375, -0.0050506591796875, -0.0032062530517578125, -0.01468658447265625, -0.0286102294921875, -0.00798797607421875, 0.006046295166015625, 0.01505279541015625, 0.036285400390625, -0.013397216796875, 0.0180511474609375, -0.046142578125, -0.0013742446899414062, -0.04052734375, 0.055450439453125, -0.0236358642578125, 0.06341552734375, -0.0794677734375, -0.0628662109375, 0.0257568359375, 0.050537109375, 0.032379150390625, 0.030303955078125, 0.04107666015625, 0.0301971435546875, -0.0133209228515625, 0.00708770751953125, 0.03875732421875, -0.0196685791015625, 0.052093505859375, -0.049835205078125, 0.072021484375, 0.002086639404296875, -0.005558013916015625, -0.0278472900390625, -0.01493072509765625, 0.06646728515625, -0.0217742919921875, 0.0228729248046875, -0.0037403106689453125, -0.05169677734375, 0.00797271728515625, -0.0037631988525390625, 0.0938720703125, -0.004802703857421875, -0.01629638671875, -0.0078277587890625, 0.0188140869140625, -0.056884765625, 0.020782470703125, 0.04998779296875, -0.0301666259765625, 0.011505126953125, -0.005710601806640625, 0.0015544891357421875, -0.01099395751953125, -0.0239715576171875, 0.023162841796875, -0.0193939208984375, -0.0011758804321289062, 0.006389617919921875, 0.01264190673828125, 0.01654052734375, 0.0036792755126953125, 0.02532958984375, 0.018798828125, 0.07269287109375, -0.038238525390625, 0.03460693359375, 0.023284912109375, -0.00019443035125732422, -0.0239105224609375, 0.0457763671875, -0.0574951171875, -0.04046630859375, -0.0006198883056640625, 0.0009307861328125, 0.0260009765625, 0.0237884521484375, 0.0310516357421875, -0.03900146484375, -0.007297515869140625, -0.01708984375, 0.01020050048828125, 0.0214691162109375, 0.0060577392578125, -0.016815185546875, -0.0347900390625, -0.0211334228515625, 0.033843994140625, 0.02044677734375, 0.0462646484375, -0.02020263671875, 0.028106689453125, 0.00807952880859375, 0.004718780517578125, 0.031951904296875, -0.0129852294921875, 0.0732421875, 0.0531005859375, -0.084716796875, -0.006023406982421875, -0.003803253173828125, -0.00949859619140625, -0.0272064208984375, 0.0208587646484375, 0.003185272216796875, -0.01053619384765625, 0.0203399658203125, -0.01116180419921875, -0.0182037353515625, -0.0117645263671875, -0.0457763671875, -0.01210784912109375, 0.016571044921875, -0.007266998291015625, -0.01971435546875, 0.0208740234375, -0.008697509765625, -0.031005859375, -0.027801513671875, -0.0008363723754882812, -0.0298309326171875, -0.036163330078125, -0.044677734375, 0.041778564453125, 0.0396728515625, 0.022064208984375, -0.09259033203125, 0.0631103515625, -0.0245513916015625, 0.053009033203125, 0.0050048828125, -0.006046295166015625, 0.00890350341796875, 0.05401611328125, -0.04833984375, -0.049041748046875, -0.037628173828125, 0.0023899078369140625, -0.05487060546875, 0.0100860595703125, 0.040557861328125, -0.01056671142578125, 0.0015859603881835938, 0.0249786376953125, 0.00885009765625, 0.0816650390625, -0.0867919921875, -0.0469970703125, -0.0020427703857421875, 0.00016105175018310547, 0.0161285400390625, -0.0008602142333984375, -0.0062713623046875, -0.0088958740234375, 0.01561737060546875, -0.007678985595703125, -0.01312255859375, 0.0020313262939453125, -0.048065185546875, -0.09246826171875, 0.026824951171875, -0.01204681396484375, -0.033447265625, -0.0238037109375, -0.0027751922607421875, -0.0259246826171875, 0.042572021484375, -0.0059051513671875, -0.019500732421875, -0.003963470458984375, 0.032684326171875, -0.0004870891571044922, 0.0145416259765625, -0.0029850006103515625, -0.00402069091796875, -0.048553466796875, 0.0005106925964355469, 0.00673675537109375, 0.008880615234375, 0.0294342041015625, -0.0174713134765625, 0.03680419921875, 0.016937255859375, -0.042510986328125, -0.0216217041015625, -0.0126953125, -0.0185394287109375, -0.03631591796875, -0.061737060546875, -0.022979736328125, -0.017822265625, 0.10113525390625, 0.0540771484375, 0.014556884765625, -0.030426025390625, 0.020355224609375, -0.01131439208984375, 0.0164337158203125, -0.00946044921875, -0.0055084228515625, -0.03753662109375, -0.0260467529296875, 0.007709503173828125, -0.01166534423828125, -0.02435302734375, 0.00011682510375976562, -0.0278778076171875, -0.0107421875, -0.00557708740234375, -0.0169525146484375, 0.0074462890625, -0.005420684814453125, 0.06231689453125, -0.035003662109375, 0.037322998046875, -0.01348114013671875, 0.033721923828125, 0.043243408203125, -0.02459716796875, 0.005603790283203125, -0.005878448486328125, -0.000865936279296875, 0.01531219482421875, 0.02056884765625, -0.0149078369140625, -0.00440216064453125, -0.01555633544921875, -0.01357269287109375, 0.0005645751953125, -0.0084075927734375, -0.01128387451171875, 0.0011196136474609375, 0.041595458984375, 0.0023956298828125, 0.07733154296875, -0.01393890380859375, 0.0117950439453125, -0.00537872314453125, 0.0090179443359375, -0.041778564453125, 0.0096893310546875, 0.00666046142578125, -0.028472900390625, 0.005970001220703125, 0.0302276611328125, -0.0335693359375, -0.0206298828125, -0.0147705078125, -0.0782470703125, -0.01369476318359375, -0.004894256591796875 ]
7f722585cf3d7f9b68fd6170042ec32440f6da3f
Wordpress Stackexchange Q: Show User Their Password I've got a few automated scripts that run to notify users of certain updates to the application, etc... and for one in particular, I need to be able to display the users user_login and their password. How do I show the user their password if it's encrypted? A: User passwords are stored in the database as what is called a hash. hashes are not reversible even if you know the hash and the mechanism used to create it. The only way to "decrypt" a hash is to take a password, hash it, compare it against the target hash, and try again... over and over until you get a match. If you think about that, you aren't really decrypting at all. It is just brute force trail and error. The plain text password is never saved and you should not attempt to save it as that undermines the security of the site, and as people tend to reuse passwords the security of a lot of other sites as well.
Q: Show User Their Password I've got a few automated scripts that run to notify users of certain updates to the application, etc... and for one in particular, I need to be able to display the users user_login and their password. How do I show the user their password if it's encrypted? A: User passwords are stored in the database as what is called a hash. hashes are not reversible even if you know the hash and the mechanism used to create it. The only way to "decrypt" a hash is to take a password, hash it, compare it against the target hash, and try again... over and over until you get a match. If you think about that, you aren't really decrypting at all. It is just brute force trail and error. The plain text password is never saved and you should not attempt to save it as that undermines the security of the site, and as people tend to reuse passwords the security of a lot of other sites as well. A: Theoretically, this could be achieved by saving a user's password elsewhere, when he or she updates it. Note that this sort of thing is hardly ever recommendable. In almost all cases, there is a better architectural approach that renders having to be able to show plain-text passwords unnecessary. That being said, if you absolutely must do it, this is how it could be done: funtion wpse_97127_save_passes( $errors, $update, $user ) { if ( empty( $errors->errors ) && ! empty ( $_POST['pass1'] ) ) { /* if you must save it in reversible form, at least don't save it in plain-text */ $pass = base64_encode( mcrypt_encrypt( MCRYPT_RIJNDAEL_256, md5(AUTH_KEY), $_POST['pass1'], MCRYPT_MODE_CBC, md5(md5(AUTH_KEY)) ) ); // do something with $pass, i.e. save it somewhere } } add_action( 'user_profile_update_errors', 'wpse_97127_save_passes', 0, 3 ); The above can be reversed like so: $pass_from_db = $wpdb->get_results( /* retrieve encrypted, but reversible pass from db*/ ); $pass = rtrim( mcrypt_decrypt( MCRYPT_RIJNDAEL_256, md5(AUTH_KEY), base64_decode($pass_from_db), MCRYPT_MODE_CBC, md5(md5(AUTH_KEY)) ), "\0" ); Please do not do this in production environments with user accounts of individual entities without their consent or knowledge. That would not only constitute bad practice, but also be an unethical deed. I do the above in exactly one case with one specific user role, the capabilities of which are limited , new users of which are always set up by an admin or other higher level role, and the password of which is shared with multiple people in the first place. And still I do not feel good about it.
wordpress
{ "language": "en", "length": 425, "provenance": "stackexchange_00019.jsonl.gz:431701", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/97127" }
[ 0.00015604496002197266, -0.002475738525390625, -0.00887298583984375, 0.0305633544921875, -0.01324462890625, -0.03338623046875, 0.02764892578125, -0.025604248046875, 0.01092529296875, 0.032073974609375, -0.0183868408203125, -0.03302001953125, -0.03515625, -0.01171112060546875, -0.07830810546875, -0.0634765625, 0.036407470703125, -0.0227508544921875, 0.0265045166015625, -0.0014171600341796875, 0.00882720947265625, 0.035980224609375, 0.013671875, -0.019439697265625, 0.0029087066650390625, 0.010040283203125, 0.1114501953125, -0.0033416748046875, 0.0460205078125, 0.0257415771484375, 0.0364990234375, -0.08966064453125, 0.01084136962890625, 0.0249786376953125, 0.0026454925537109375, -0.005512237548828125, -0.01483154296875, 0.0225372314453125, 0.01076507568359375, 0.00748443603515625, 0.00882720947265625, -0.006725311279296875, -0.0032520294189453125, -0.0279541015625, -0.004482269287109375, -0.025634765625, 0.01132965087890625, -0.0254974365234375, -0.0257720947265625, 0.02685546875, 0.05169677734375, 0.0283050537109375, 0.055511474609375, 0.01108551025390625, 0.0014362335205078125, 0.024017333984375, -0.01494598388671875, -0.01154327392578125, 0.0360107421875, 0.03814697265625, -0.01198577880859375, -0.0279388427734375, 0.00989532470703125, -0.061126708984375, -0.005550384521484375, -0.007205963134765625, 0.0555419921875, 0.00955963134765625, -0.01461029052734375, -0.0119476318359375, 0.0164794921875, 0.0159149169921875, 0.0013017654418945312, -0.0711669921875, -0.02685546875, 0.0743408203125, -0.0224609375, 0.0229949951171875, 0.0110321044921875, -0.04998779296875, -0.01178741455078125, 0.0245361328125, -0.033050537109375, -0.025146484375, -0.016815185546875, -0.027191162109375, -0.0242462158203125, -0.0016841888427734375, 0.0126495361328125, 0.004390716552734375, -0.01065826416015625, 0.0301971435546875, 0.00016105175018310547, 0.03472900390625, -0.0282135009765625, -0.0093841552734375, -0.00347900390625, 0.02752685546875, -0.0122833251953125, 0.00652313232421875, -0.034637451171875, -0.0148773193359375, -0.021331787109375, -0.0174102783203125, -0.02667236328125, 0.023773193359375, 0.01180267333984375, -0.0029449462890625, -0.0224761962890625, 0.0157318115234375, -0.0157928466796875, -0.04296875, -0.06927490234375, -0.09600830078125, 0.025115966796875, 0.10894775390625, -0.03155517578125, 0.01187896728515625, 0.032989501953125, 0.01715087890625, -0.012939453125, 0.030670166015625, -0.0029239654541015625, -0.0243377685546875, -0.046905517578125, -0.046661376953125, 0.00492095947265625, -0.0200042724609375, 0.00673675537109375, 0.042327880859375, -0.036895751953125, -0.01506805419921875, 0.0239410400390625, 0.0241851806640625, 0.005146026611328125, -0.034942626953125, -0.0031147003173828125, -0.037078857421875, -0.0266571044921875, 0.044189453125, -0.03887939453125, -0.03533935546875, 0.0391845703125, -0.045135498046875, -0.0131072998046875, 0.016204833984375, -0.00890350341796875, 0.0015115737915039062, 0.0196533203125, -0.047210693359375, -0.0163116455078125, -0.01153564453125, -0.043212890625, 0.0338134765625, 0.035614013671875, 0.072265625, 0.0121002197265625, 0.029144287109375, -0.004364013671875, 0.03436279296875, 0.0196380615234375, 0.010467529296875, 0.0233306884765625, 0.048858642578125, 0.034759521484375, -0.024871826171875, -0.0026836395263671875, 0.0152435302734375, 0.035552978515625, -0.01244354248046875, 0.0231781005859375, -0.020751953125, 0.0767822265625, 0.0072479248046875, -0.00836944580078125, 0.033416748046875, 0.0184173583984375, 0.041015625, -0.0024967193603515625, 0.0836181640625, 0.040374755859375, -0.0169219970703125, 0.06298828125, -0.01383209228515625, -0.0240631103515625, 0.02593994140625, -0.0092620849609375, 0.03759765625, 0.02203369140625, 0.0160369873046875, -0.035980224609375, 0.0345458984375, 0.0185699462890625, 0.00586700439453125, 0.00214385986328125, -0.039459228515625, 0.00774383544921875, 0.006298065185546875, -0.007740020751953125, -0.0183563232421875, 0.0086822509765625, -0.033416748046875, 0.0163421630859375, -0.00803375244140625, -0.04150390625, -0.01482391357421875, -0.0256500244140625, 0.0227813720703125, -0.0221405029296875, 0.018890380859375, 0.010589599609375, -0.019805908203125, -0.0120391845703125, 0.0058441162109375, 0.006206512451171875, -0.0162200927734375, -0.05621337890625, 0.04693603515625, -0.01236724853515625, 0.06195068359375, -0.0203857421875, -0.01824951171875, -0.00681304931640625, -0.0328369140625, -0.00811004638671875, -0.0202789306640625, -0.00922393798828125, -0.01021575927734375, 0.01018524169921875, -0.00368499755859375, 0.0286407470703125, 0.01023101806640625, 0.0246734619140625, 0.05682373046875, -0.022735595703125, -0.013702392578125, -0.0343017578125, -0.032562255859375, 0.003734588623046875, 0.03436279296875, 0.033233642578125, 0.0271453857421875, -0.00579833984375, -0.0093536376953125, 0.03997802734375, 0.01401519775390625, 0.03961181640625, -0.01361846923828125, -0.00229644775390625, 0.0202178955078125, 0.030975341796875, -0.015655517578125, -0.012908935546875, -0.049774169921875, 0.00585174560546875, 0.0283660888671875, -0.0153045654296875, 0.054656982421875, -0.007663726806640625, -0.01125335693359375, -0.0233001708984375, -0.019683837890625, 0.02880859375, -0.030792236328125, 0.005306243896484375, -0.037322998046875, -0.01093292236328125, -0.025146484375, -0.0152740478515625, -0.01206207275390625, 0.039825439453125, -0.02496337890625, -0.01885986328125, 0.0158233642578125, 0.041961669921875, 0.0007314682006835938, -0.0294647216796875, -0.00982666015625, 0.0023632049560546875, 0.02667236328125, 0.01065826416015625, 0.00464630126953125, -0.047149658203125, -0.0019350051879882812, 0.021697998046875, -0.00897216796875, -0.006229400634765625, 0.0601806640625, -0.025054931640625, 0.00978851318359375, 0.041046142578125, 0.05865478515625, 0.01404571533203125, 0.0203857421875, -0.060577392578125, 0.030731201171875, -0.059173583984375, -0.005950927734375, 0.030517578125, -0.051055908203125, -0.0172576904296875, 0.050018310546875, -0.0113525390625, 0.007015228271484375, -0.0016317367553710938, 0.00743865966796875, -0.0009222030639648438, 0.001468658447265625, -0.01114654541015625, -0.0027217864990234375, -0.055023193359375, -0.0123291015625, 0.0245513916015625, 0.01451873779296875, -0.006336212158203125, -0.037261962890625, -0.0209197998046875, 0.0079803466796875, -0.05303955078125, -0.05047607421875, -0.08929443359375, -0.07781982421875, -0.01209259033203125, 0.0092926025390625, -0.03582763671875, 0.029083251953125, 0.044097900390625, 0.026824951171875, -0.0022258758544921875, -0.035369873046875, -0.04022216796875, -0.058441162109375, -0.0391845703125, 0.027191162109375, -0.0033817291259765625, -0.0085296630859375, -0.0168914794921875, 0.029388427734375, -0.0191802978515625, -0.03070068359375, -0.03485107421875, -0.01255035400390625, -0.0008544921875, -0.031829833984375, -0.00801849365234375, -0.0286712646484375, 0.009735107421875, 0.00963592529296875, -0.040985107421875, -0.03167724609375, 0.047515869140625, -0.04547119140625, 0.032562255859375, -0.04510498046875, 0.03558349609375, -0.0251922607421875, -0.064697265625, -0.004703521728515625, 0.015106201171875, -0.05169677734375, -0.0093231201171875, 0.0186614990234375, -0.0307769775390625, -0.01320648193359375, 0.0340576171875, -0.033538818359375, -0.01381683349609375, -0.01342010498046875, 0.009796142578125, 0.0177459716796875, -0.04046630859375, 0.00971221923828125, 0.0296173095703125, -0.004817962646484375, 0.017608642578125, 0.0003731250762939453, 0.04296875, -0.0244140625, -0.01380157470703125, 0.0072784423828125, -0.00276947021484375, 0.0020084381103515625, -0.01425933837890625, -0.00689697265625, -0.07159423828125, 0.047637939453125, 0.0022830963134765625, 0.01311492919921875, -0.032867431640625, -0.03662109375, 0.007171630859375, 0.1279296875, -0.007274627685546875, -0.0103912353515625, -0.0028476715087890625, 0.0261688232421875, -0.08447265625, -0.035491943359375, -0.0260772705078125, 0.01128387451171875, -0.0782470703125, -0.04693603515625, -0.03924560546875, -0.04827880859375, 0.0302886962890625, -0.072998046875, -0.01398468017578125, -0.06280517578125, 0.0105743408203125, 0.012237548828125, 0.01442718505859375, -0.0328369140625, 0.0088958740234375, -0.040313720703125, 0.021209716796875, -0.0258026123046875, -0.03759765625, 0.0017938613891601562, 0.01352691650390625, 0.019622802734375, 0.0214080810546875, -0.05047607421875, 0.017120361328125, 0.04315185546875, 0.027008056640625, 0.0269927978515625, 0.01280975341796875, -0.0243072509765625, 0.05560302734375, -0.0004787445068359375, 0.00624847412109375, -0.01189422607421875, -0.0065460205078125, -0.0372314453125, -0.0153656005859375, -0.0111846923828125, -0.0313720703125, 0.0254669189453125, -0.0184173583984375, 0.004581451416015625, 0.00249481201171875, -0.027374267578125, -0.0276947021484375, 0.0253448486328125, -0.028411865234375, 0.01824951171875, -0.028961181640625, -0.01448822021484375, 0.00506591796875, 0.0168304443359375, -0.019866943359375, 0.00954437255859375, -0.00949859619140625, 0.01506805419921875, -0.0255889892578125, -0.008392333984375, 0.048858642578125, 0.0445556640625, 0.025726318359375, 0.0227508544921875, 0.02606201171875, -0.0212249755859375, 0.00970458984375, 0.03436279296875, 0.0248260498046875, -0.006076812744140625, 0.031982421875, -0.004215240478515625, -0.0172882080078125, 0.0253448486328125, 0.0113677978515625, -0.0264129638671875, -0.0128021240234375, -0.0012874603271484375, 0.011749267578125, 0.00039839744567871094, -0.0178375244140625, 0.012451171875, -0.01543426513671875, 0.00746917724609375, -0.06365966796875, 0.0277099609375, -0.0093841552734375, -0.04815673828125, -0.0305328369140625, 0.0132293701171875, -0.0274810791015625, -0.0103607177734375, -0.01511383056640625, -0.041259765625, -0.0634765625, 0.0033779144287109375, 0.035675048828125, -0.08123779296875, 0.023834228515625, -0.0026874542236328125, -0.0340576171875, 0.1358642578125, 0.011322021484375, -0.061981201171875, 0.02435302734375, -0.0245513916015625, 0.054107666015625, 0.046295166015625, 0.0134735107421875, 0.0098419189453125, -0.02734375, 0.01419830322265625, 0.006046295166015625, 0.0029850006103515625, 0.012359619140625, -0.01189422607421875, 0.0140838623046875, 0.006114959716796875, -0.0178375244140625, 0.0340576171875, 0.03216552734375, -0.0462646484375, 0.045318603515625, 0.0183258056640625, 0.017974853515625, 0.0345458984375, -0.05987548828125, 0.0017824172973632812, 0.08843994140625, 0.00827789306640625, -0.0648193359375, 0.051666259765625, -0.0277557373046875, -0.01195526123046875, 0.0249786376953125, 0.017120361328125, 0.0433349609375, 0.019378662109375, -0.0070037841796875, 0.006374359130859375, 0.000025033950805664062, 0.062255859375, -0.05328369140625, -0.059539794921875, -0.058563232421875, -0.0200347900390625, 0.06463623046875, -0.029266357421875, 0.02886962890625, -0.0341796875, -0.0098724365234375, -0.01031494140625, -0.006603240966796875, -0.001750946044921875, -0.03765869140625, -0.042694091796875, 0.0218963623046875, -0.02764892578125, -0.034912109375, 0.0219879150390625, 0.035491943359375, -0.022186279296875, 0.0019702911376953125, 0.0225830078125, 0.00942230224609375, 0.0233917236328125, -0.0163421630859375, -0.0276947021484375, 0.0352783203125, 0.005741119384765625, 0.0223236083984375, -0.028839111328125, -0.0533447265625, -0.00677490234375, -0.030517578125, -0.0178375244140625, 0.0228271484375, -0.00873565673828125, -0.03240966796875, -0.01264190673828125, -0.005580902099609375, 0.0007243156433105469, -0.01503753662109375, -0.004703521728515625, -0.0037994384765625, 0.02435302734375, -0.001560211181640625, 0.0020351409912109375, 0.004985809326171875, 0.05035400390625, 0.0250244140625, 0.0452880859375, 0.050201416015625, 0.0433349609375, -0.0282745361328125, -0.0341796875, 0.031219482421875, -0.02337646484375, -0.0217132568359375, -0.03558349609375, 0.025054931640625, -0.042816162109375, -0.0160980224609375, -0.005802154541015625, -0.0268707275390625, 0.017852783203125, 0.015380859375, -0.00881195068359375, 0.0440673828125, 0.0528564453125, -0.0216522216796875, 0.0295867919921875, -0.02166748046875, -0.00283050537109375, 0.0042266845703125, -0.02752685546875, 0.05133056640625, -0.01343536376953125, 0.04144287109375, 0.006748199462890625, -0.01169586181640625, 0.044586181640625, 0.0499267578125, 0.0023174285888671875, 0.041656494140625, 0.04638671875, 0.0262298583984375, 0.00482177734375, -0.043121337890625, -0.064208984375, 0.027740478515625, 0.0020885467529296875, 0.0013561248779296875, -0.01468658447265625, 0.01371002197265625, -0.01175689697265625, 0.00907135009765625, 0.05010986328125, 0.05706787109375, -0.07183837890625, 0.01450347900390625, 0.0016193389892578125, -0.0156707763671875, 0.0002455711364746094, 0.03173828125, 0.014404296875, -0.005168914794921875, 0.00959014892578125, -0.005985260009765625, 0.0176239013671875, 0.0234527587890625, -0.01488494873046875, 0.007350921630859375, -0.00841522216796875, -0.00893402099609375, -0.0134735107421875, -0.0252227783203125, -0.0158843994140625, 0.037567138671875, -0.0011701583862304688, -0.03271484375, -0.0164794921875, 0.0186767578125, -0.044189453125, -0.057586669921875, 0.006824493408203125, -0.01334381103515625, -0.006877899169921875, 0.021759033203125, -0.00177764892578125, 0.04156494140625, 0.04656982421875, -0.00478363037109375, -0.010589599609375, 0.00555419921875, 0.0160064697265625, 0.0360107421875, -0.01824951171875, -0.02740478515625, -0.005298614501953125, -0.0221405029296875, -0.0117645263671875, -0.0184783935546875, 0.0188140869140625, -0.0222930908203125, -0.007282257080078125, 0.07623291015625, 0.004436492919921875, -0.027252197265625, 0.032318115234375, 0.0293121337890625, -0.003025054931640625, -0.0280609130859375, 0.01258087158203125, -0.0269317626953125, 0.05853271484375, -0.031494140625, 0.04437255859375, -0.0003383159637451172, -0.0232086181640625, -0.03857421875, 0.03228759765625, -0.017822265625, -0.0196380615234375, -0.0191192626953125, 0.0158233642578125, 0.03167724609375, 0.01702880859375, -0.0142059326171875, 0.04168701171875, -0.00353240966796875, 0.051422119140625, -0.005069732666015625, 0.00873565673828125, 0.0439453125, 0.0198516845703125, 0.03289794921875, 0.01509857177734375, -0.037841796875, -0.04107666015625, -0.04736328125, 0.01678466796875, -0.0164337158203125, 0.037628173828125, 0.016082763671875, 0.0496826171875, 0.0592041015625, -0.042999267578125, 0.02459716796875, -0.0009775161743164062, -0.0161590576171875, 0.038665771484375, -0.0063934326171875, -0.017822265625, 0.041778564453125, 0.0014066696166992188, -0.06982421875, 0.0352783203125, 0.03564453125, 0.03271484375, 0.0173797607421875, 0.0215606689453125, 0.055572509765625, -0.03167724609375, -0.020416259765625, -0.01190948486328125, 0.04931640625, 0.00637054443359375, 0.00667572021484375, 0.02032470703125, 0.01226806640625, -0.035491943359375, 0.04193115234375, 0.018341064453125, 0.0243377685546875, -0.0026569366455078125, 0.03533935546875, 0.037200927734375, 0.0051116943359375, -0.0201416015625, 0.036102294921875, 0.0567626953125, 0.060150146484375, -0.0560302734375, -0.01554107666015625, 0.022735595703125, 0.029541015625, 0.0160675048828125, 0.0167236328125, 0.060455322265625, -0.0034885406494140625, 0.015655517578125, 0.00032401084899902344, -0.0159912109375, -0.0031909942626953125, 0.00910186767578125, 0.012481689453125, 0.0279541015625, 0.00782012939453125, -0.0170745849609375, -0.0506591796875, 0.04205322265625, -0.00782012939453125, -0.0107421875, 0.00411224365234375, 0.0308380126953125, 0.06549072265625, -0.0012292861938476562, -0.01383209228515625, 0.0015363693237304688, 0.0208282470703125, 0.022003173828125, 0.005664825439453125, 0.0350341796875, -0.021820068359375, 0.0302276611328125, -0.011016845703125, -0.041168212890625, -0.005298614501953125, 0.009735107421875, -0.031524658203125, -0.034027099609375, 0.0108184814453125, -0.01373291015625, 0.0272674560546875, -0.01116180419921875, 0.0196533203125, 0.0086517333984375, -0.01088714599609375, -0.03863525390625, 0.0225677490234375, 0.040008544921875, -0.01837158203125, 0.06451416015625, -0.01256561279296875, 0.0194091796875, 0.004955291748046875, -0.04638671875, -0.0145721435546875, -0.01910400390625, -0.0151519775390625, 0.0026874542236328125, -0.0062255859375, -0.04779052734375, 0.01137542724609375, 0.0274505615234375, -0.023590087890625, 0.0260467529296875, 0.0115966796875, -0.01824951171875, 0.0267181396484375, 0.0230865478515625, -0.0206146240234375, -0.045318603515625, 0.022735595703125, -0.044952392578125, -0.08544921875, -0.041900634765625, 0.00856781005859375, -0.003070831298828125, -0.039703369140625, 0.03314208984375, 0.024566650390625, -0.0208282470703125, -0.01947021484375, 0.0119476318359375, -0.03558349609375, -0.0224456787109375, 0.036773681640625, -0.0148162841796875, -0.0003669261932373047, 0.0005240440368652344, -0.0504150390625, 0.09088134765625, -0.00838470458984375, 0.05255126953125, 0.06591796875, -0.0018033981323242188, -0.01404571533203125, 0.01180267333984375, 0.007038116455078125, -0.0234222412109375, -0.06304931640625, 0.004032135009765625, 0.059356689453125, -0.037384033203125, -0.00341796875, -0.0416259765625, 0.0270538330078125, 0.004764556884765625, -0.01087188720703125, -0.00189971923828125, -0.0171356201171875, -0.009735107421875, 0.01800537109375, 0.01224517822265625, 0.033294677734375, 0.0022678375244140625, -0.030853271484375, 0.0291748046875, -0.00191497802734375, -0.020294189453125, 0.0159454345703125, -0.006244659423828125, 0.015625, 0.07098388671875, 0.085205078125, 0.047149658203125, 0.040863037109375, 0.0181732177734375, -0.0172271728515625, 0.005733489990234375, -0.022430419921875, -0.050262451171875, -0.0362548828125, 0.00506591796875, 0.0060272216796875, -0.0015964508056640625, -0.04443359375, -0.054534912109375, 0.0198822021484375, 0.0293731689453125, -0.031585693359375, -0.0300750732421875, 0.0049896240234375, -0.04510498046875, 0.058502197265625, -0.03515625, 0.0002543926239013672, -0.0019512176513671875, 0.0296783447265625, -0.01165771484375, -0.004459381103515625, -0.030426025390625, -0.01273345947265625, -0.00763702392578125, -0.0082550048828125, -0.0198974609375, 0.0116729736328125, 0.059417724609375, -0.0035381317138671875, 0.0155487060546875, 0.03509521484375, -0.0222015380859375, -0.0067291259765625, -0.017059326171875, 0.020599365234375, -0.004558563232421875, -0.04742431640625, 0.00942230224609375, -0.0221099853515625, -0.0160675048828125, -0.0190582275390625, 0.0213623046875, 0.0184173583984375, -0.040374755859375, -0.039947509765625, 0.0293731689453125, 0.004138946533203125, -0.019927978515625, -0.040679931640625, 0.0195770263671875, -0.0223541259765625, 0.0246124267578125, -0.00620269775390625, -0.036041259765625, 0.005828857421875, 0.0308685302734375, 0.02734375, -0.0102081298828125, 0.0254058837890625, 0.029541015625, -0.0465087890625, 0.037933349609375, 0.0254669189453125, -0.00710296630859375, 0.005924224853515625, -0.004001617431640625, 0.0384521484375, 0.0635986328125, 0.00183868408203125, 0.01910400390625, -0.0012445449829101562, -0.06243896484375, 0.0011348724365234375, -0.01001739501953125, 0.0205841064453125, 0.028778076171875, 0.01216888427734375, 0.00665283203125, -0.0206451416015625, -0.0362548828125, -0.034027099609375, -0.0482177734375, 0.0020122528076171875, 0.020111083984375, 0.0160369873046875, -0.0457763671875, 0.0260467529296875, 0.02606201171875, 0.0014257431030273438, -0.0201416015625, -0.0205841064453125, -0.0207672119140625, -0.0159149169921875, -0.006572723388671875, -0.0007596015930175781, 0.0185394287109375, -0.07684326171875, 0.08367919921875, -0.03802490234375, -0.0284423828125, 0.0196685791015625, 0.044158935546875, 0.01438140869140625, 0.024383544921875, -0.0186614990234375, -0.00033020973205566406, 0.027587890625, 0.02142333984375, 0.020355224609375, 0.0013914108276367188, 0.00244903564453125, 0.0150146484375, -0.02099609375, 0.039886474609375, 0.021026611328125, 0.032196044921875, -0.0210418701171875, 0.033843994140625, 0.033966064453125, 0.021881103515625, -0.044189453125, -0.0999755859375, -0.039306640625, 0.003299713134765625, -0.00560760498046875, 0.01279449462890625, 0.056243896484375, -0.03851318359375, 0.01451873779296875, -0.03228759765625, 0.04803466796875, 0.01181793212890625, 0.01239776611328125, -0.07244873046875, -0.01715087890625, 0.019317626953125 ]
fccb30d2e389d4481709fb0128bd1ed443778477
Wordpress Stackexchange Q: How do I use inline SVG in WordPress I am trying to put in an SVG inside my post, but it seems WordPress removes the content. e.g. <svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="190"> <polygon points="100,10 40,180 190,60 10,60 160,180" style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;"> </svg> Gets rendered to <svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="190"></svg> Is it possible to do this without a plugin like raw_plugin A: According to this post, if you put all the svg block in one line, it will be rendered. This should work: <svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="190"> <polygon points="100,10 40,180 190,60 10,60 160,180" style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;"> </svg>
Q: How do I use inline SVG in WordPress I am trying to put in an SVG inside my post, but it seems WordPress removes the content. e.g. <svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="190"> <polygon points="100,10 40,180 190,60 10,60 160,180" style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;"> </svg> Gets rendered to <svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="190"></svg> Is it possible to do this without a plugin like raw_plugin A: According to this post, if you put all the svg block in one line, it will be rendered. This should work: <svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="190"> <polygon points="100,10 40,180 190,60 10,60 160,180" style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;"> </svg>
wordpress
{ "language": "en", "length": 92, "provenance": "stackexchange_00019.jsonl.gz:431712", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/97161" }
[ 0.05145263671875, -0.0254364013671875, 0.0177764892578125, -0.0018072128295898438, 0.006793975830078125, -0.0300445556640625, 0.05682373046875, -0.0288238525390625, -0.0142364501953125, 0.0192413330078125, -0.067626953125, 0.035797119140625, -0.01282501220703125, 0.004848480224609375, -0.0007176399230957031, -0.0509033203125, 0.06463623046875, -0.0047607421875, 0.05389404296875, 0.004802703857421875, -0.00469970703125, 0.05267333984375, 0.024932861328125, 0.11676025390625, -0.0008196830749511719, -0.04638671875, 0.11279296875, -0.039031982421875, -0.004192352294921875, -0.05322265625, 0.025970458984375, 0.0159912109375, 0.009063720703125, 0.032257080078125, -0.05352783203125, 0.01263427734375, -0.019927978515625, 0.0163421630859375, 0.01500701904296875, -0.00572967529296875, 0.0267791748046875, -0.0162811279296875, 0.036834716796875, -0.003314971923828125, 0.007434844970703125, -0.0226898193359375, 0.01284027099609375, -0.061187744140625, 0.008544921875, 0.04376220703125, 0.03839111328125, 0.04315185546875, 0.0310821533203125, 0.07696533203125, 0.006244659423828125, 0.02667236328125, -0.0135955810546875, -0.0066375732421875, 0.0222320556640625, 0.006900787353515625, -0.01013946533203125, -0.0097198486328125, 0.020843505859375, -0.0217742919921875, 0.0008101463317871094, -0.0109100341796875, 0.039306640625, 0.0071868896484375, -0.029815673828125, 0.005947113037109375, 0.0389404296875, -0.0102081298828125, 0.017730712890625, -0.0266265869140625, 0.0221710205078125, -0.006900787353515625, -0.01287841796875, 0.0003535747528076172, 0.0217132568359375, -0.003566741943359375, 0.031707763671875, 0.02996826171875, -0.0572509765625, -0.0021152496337890625, 0.023040771484375, 0.0136871337890625, -0.0044403076171875, -0.03338623046875, -0.0268707275390625, -0.0294189453125, -0.011627197265625, -0.04254150390625, -0.0382080078125, -0.00803375244140625, -0.01568603515625, -0.0338134765625, -0.014068603515625, -0.037689208984375, 0.0078887939453125, 0.0389404296875, 0.0521240234375, -0.059234619140625, 0.10211181640625, -0.0322265625, 0.009765625, 0.052154541015625, -0.022216796875, -0.01561737060546875, 0.0167236328125, 0.0179443359375, 0.00911712646484375, -0.04345703125, 0.03857421875, -0.0137786865234375, -0.037078857421875, -0.00582122802734375, 0.01216888427734375, 0.0163116455078125, 0.0276947021484375, -0.0080718994140625, 0.0148468017578125, 0.037933349609375, -0.009979248046875, 0.004863739013671875, 0.0284881591796875, 0.0265960693359375, 0.00983428955078125, -0.022125244140625, 0.013397216796875, -0.003009796142578125, -0.04754638671875, 0.0251922607421875, 0.041900634765625, 0.025390625, 0.0114288330078125, -0.019927978515625, 0.007511138916015625, 0.0232391357421875, 0.01099395751953125, 0.005306243896484375, 0.02166748046875, -0.047576904296875, -0.007434844970703125, 0.034027099609375, -0.009307861328125, 0.00024271011352539062, 0.00534820556640625, 0.0261993408203125, -0.004695892333984375, -0.03216552734375, 0.042449951171875, -0.0189208984375, 0.00980377197265625, 0.0036563873291015625, 0.06585693359375, -0.058563232421875, 0.04119873046875, -0.035308837890625, 0.051849365234375, -0.03912353515625, -0.02655029296875, 0.01371002197265625, 0.059356689453125, -0.018035888671875, -0.0234832763671875, -0.0030498504638671875, -0.011199951171875, -0.006992340087890625, 0.033966064453125, 0.0611572265625, -0.016326904296875, -0.0092926025390625, 0.0184326171875, 0.01264190673828125, -0.0237274169921875, 0.020782470703125, 0.017364501953125, -0.003391265869140625, 0.004650115966796875, 0.04669189453125, 0.006175994873046875, -0.01494598388671875, 0.051116943359375, -0.0081634521484375, -0.006366729736328125, -0.0068206787109375, -0.009063720703125, 0.0106201171875, 0.0220489501953125, 0.00847625732421875, -0.004886627197265625, 0.003246307373046875, 0.03253173828125, 0.0222320556640625, 0.01085662841796875, -0.07464599609375, -0.0171051025390625, -0.041839599609375, -0.00566864013671875, -0.03057861328125, 0.03369140625, -0.01268768310546875, 0.01454925537109375, 0.003475189208984375, -0.0196685791015625, -0.0057525634765625, -0.0102386474609375, 0.006954193115234375, -0.01264190673828125, -0.0169525146484375, 0.0228118896484375, -0.0186309814453125, -0.0166473388671875, -0.0299835205078125, -0.0311737060546875, 0.01263427734375, 0.01534271240234375, -0.0040740966796875, 0.01456451416015625, -0.0294342041015625, 0.039398193359375, 0.004199981689453125, 0.0271148681640625, 0.042510986328125, 0.0225982666015625, -0.0024566650390625, -0.01398468017578125, -0.0160675048828125, -0.0015773773193359375, 0.01322174072265625, -0.031494140625, 0.024383544921875, 0.036590576171875, 0.0660400390625, -0.01285552978515625, 0.0002751350402832031, -0.011505126953125, -0.01153564453125, -0.0148162841796875, 0.029052734375, 0.044830322265625, 0.0266265869140625, 0.00417327880859375, -0.00592803955078125, 0.061798095703125, 0.006320953369140625, 0.040191650390625, -0.04498291015625, -0.044830322265625, -0.0117034912109375, 0.01399993896484375, 0.0019006729125976562, 0.0216827392578125, -0.055999755859375, -0.00710296630859375, 0.027587890625, 0.00887298583984375, -0.0173492431640625, -0.0162811279296875, 0.0301513671875, 0.0155029296875, 0.028411865234375, -0.0287628173828125, -0.0014667510986328125, -0.007663726806640625, -0.027801513671875, 0.0060882568359375, 0.01352691650390625, -0.01007843017578125, -0.03289794921875, 0.0364990234375, 0.04937744140625, -0.0025997161865234375, 0.0175933837890625, 0.032501220703125, -0.034454345703125, -0.0401611328125, 0.006114959716796875, 0.0195159912109375, -0.00972747802734375, -0.01039886474609375, -0.04119873046875, 0.0552978515625, 0.018341064453125, 0.02935791015625, -0.0457763671875, 0.06597900390625, -0.00232696533203125, -0.01861572265625, 0.0190277099609375, -0.01047515869140625, 0.06719970703125, -0.018890380859375, 0.04571533203125, 0.007495880126953125, 0.02490234375, 0.055450439453125, -0.04327392578125, 0.0487060546875, -0.0209503173828125, 0.0833740234375, 0.06903076171875, -0.025115966796875, 0.040802001953125, -0.01038360595703125, -0.0026264190673828125, -0.0309600830078125, 0.03271484375, -0.002292633056640625, -0.08392333984375, 0.025909423828125, -0.003173828125, 0.0225982666015625, -0.005161285400390625, 0.0014743804931640625, -0.036407470703125, -0.02606201171875, 0.0263214111328125, -0.08624267578125, -0.034210205078125, 0.043670654296875, -0.07379150390625, -0.006038665771484375, 0.000576019287109375, -0.04620361328125, -0.0160064697265625, 0.03424072265625, -0.0214996337890625, -0.0185546875, -0.042633056640625, -0.0771484375, -0.08929443359375, -0.09307861328125, 0.008087158203125, -0.00496673583984375, 0.033050537109375, 0.0276641845703125, 0.0184173583984375, 0.0136260986328125, -0.048797607421875, 0.007747650146484375, 0.03924560546875, -0.029144287109375, 0.01032257080078125, -0.0177154541015625, -0.03076171875, -0.03204345703125, -0.01446533203125, 0.00878143310546875, 0.012603759765625, -0.00550079345703125, 0.034698486328125, -0.035858154296875, -0.030670166015625, 0.0032176971435546875, -0.00200653076171875, 0.01849365234375, 0.0113372802734375, 0.0224456787109375, -0.044097900390625, 0.00855255126953125, 0.005496978759765625, -0.006214141845703125, 0.004398345947265625, -0.0276641845703125, -0.035675048828125, 0.0079803466796875, 0.01555633544921875, -0.0098419189453125, -0.00004547834396362305, 0.02490234375, -0.022979736328125, 0.048309326171875, -0.007518768310546875, -0.01207733154296875, -0.0343017578125, -0.00771331787109375, -0.022857666015625, 0.042724609375, -0.00635528564453125, 0.012908935546875, -0.0164947509765625, 0.00905609130859375, -0.0239410400390625, 0.0042724609375, 0.0269012451171875, 0.00815582275390625, 0.0185699462890625, 0.00321197509765625, -0.03009033203125, -0.02667236328125, 0.028717041015625, 0.0031604766845703125, -0.0184326171875, -0.00836944580078125, 0.0171356201171875, -0.03778076171875, -0.01271820068359375, -0.035797119140625, 0.005756378173828125, -0.020111083984375, 0.0343017578125, 0.012908935546875, -0.0008549690246582031, -0.036041259765625, -0.0100555419921875, -0.0389404296875, -0.0022449493408203125, 0.0258636474609375, 0.023956298828125, -0.0156097412109375, -0.0018358230590820312, -0.0230255126953125, -0.00611114501953125, -0.0018310546875, -0.00855255126953125, -0.0609130859375, -0.01035308837890625, -0.0789794921875, 0.08465576171875, 0.01143646240234375, 0.0411376953125, -0.006374359130859375, 0.0491943359375, -0.00980377197265625, -0.0250244140625, 0.0084381103515625, 0.0200347900390625, -0.037445068359375, -0.016845703125, -0.03143310546875, -0.04132080078125, -0.036224365234375, 0.007808685302734375, 0.01024627685546875, 0.0506591796875, 0.0124664306640625, -0.0230712890625, 0.043182373046875, 0.0001779794692993164, -0.03924560546875, -0.03704833984375, -0.032440185546875, 0.0170745849609375, -0.042022705078125, 0.029754638671875, -0.03466796875, -0.0433349609375, 0.0625, 0.043304443359375, 0.01514434814453125, -0.0084075927734375, 0.039031982421875, -0.00627899169921875, -0.051513671875, -0.042144775390625, 0.01338958740234375, 0.058074951171875, -0.0004329681396484375, 0.0460205078125, 0.031219482421875, -0.02679443359375, 0.07135009765625, 0.04754638671875, 0.0155487060546875, -0.0176544189453125, 0.025177001953125, 0.01666259765625, -0.01519012451171875, 0.0257720947265625, 0.0185089111328125, 0.005901336669921875, 0.060882568359375, -0.004108428955078125, -0.029815673828125, -0.00646209716796875, 0.0321044921875, -0.01113128662109375, -0.00335693359375, -0.03973388671875, -0.0189971923828125, -0.016693115234375, 0.008392333984375, 0.08612060546875, 0.06097412109375, -0.030120849609375, 0.0689697265625, 0.06695556640625, 0.00785064697265625, 0.050537109375, 0.01122283935546875, 0.004344940185546875, 0.0196685791015625, 0.04803466796875, -0.008392333984375, 0.014129638671875, -0.015716552734375, 0.05242919921875, 0.02911376953125, -0.042205810546875, 0.0195465087890625, -0.008453369140625, 0.007183074951171875, -0.01580810546875, 0.0289306640625, -0.01776123046875, 0.011566162109375, 0.006252288818359375, 0.0179595947265625, 0.05322265625, 0.01291656494140625, -0.01422119140625, 0.03472900390625, 0.0174560546875, -0.0153045654296875, -0.0125579833984375, 0.023468017578125, 0.0618896484375, -0.03167724609375, -0.0163726806640625, 0.04443359375, 0.034393310546875, 0.038787841796875, 0.0181884765625, -0.01483917236328125, -0.0033664703369140625, 0.0033359527587890625, -0.0208282470703125, -0.0245513916015625, 0.00846099853515625, -0.0159759521484375, 0.037841796875, -0.033203125, -0.029876708984375, 0.051422119140625, -0.04620361328125, 0.0006494522094726562, -0.029937744140625, -0.01209259033203125, -0.0064544677734375, 0.034423828125, 0.055145263671875, -0.01338958740234375, -0.01387786865234375, -0.00839996337890625, -0.00807952880859375, -0.01078033447265625, 0.01366424560546875, -0.0220947265625, -0.01226043701171875, 0.004764556884765625, 0.0124664306640625, -0.041259765625, -0.03369140625, -0.00937652587890625, -0.049041748046875, 0.004230499267578125, -0.00829315185546875, -0.0214080810546875, -0.00809478759765625, -0.035614013671875, 0.006008148193359375, -0.029510498046875, 0.0197296142578125, -0.005218505859375, 0.017303466796875, 0.046844482421875, 0.025421142578125, -0.038299560546875, -0.01306915283203125, -0.0227203369140625, -0.0215606689453125, 0.0438232421875, 0.0048065185546875, -0.032684326171875, -0.0204620361328125, -0.0068817138671875, 0.02911376953125, -0.005786895751953125, 0.0237884521484375, 0.00665283203125, 0.0479736328125, -0.00754547119140625, 0.0750732421875, -0.00901031494140625, 0.0157318115234375, 0.006317138671875, 0.0179595947265625, -0.017059326171875, 0.0005507469177246094, 0.0237884521484375, -0.0248565673828125, 0.04473876953125, -0.05084228515625, -0.04949951171875, -0.019805908203125, -0.035430908203125, -0.0183868408203125, -0.01200103759765625, -0.0165863037109375, 0.027191162109375, -0.0108795166015625, 0.006954193115234375, -0.01468658447265625, -0.0004868507385253906, -0.039306640625, 0.0026035308837890625, 0.033538818359375, 0.03173828125, -0.0176849365234375, -0.01528167724609375, -0.08575439453125, 0.0243682861328125, 0.07818603515625, -0.013031005859375, -0.022705078125, 0.03173828125, -0.030670166015625, -0.0088348388671875, 0.0054931640625, 0.0248870849609375, 0.032012939453125, 0.045196533203125, 0.0167388916015625, 0.0166473388671875, 0.0182647705078125, 0.0251007080078125, -0.0022335052490234375, -0.0238494873046875, -0.0011796951293945312, -0.032806396484375, -0.028289794921875, 0.00934600830078125, 0.043670654296875, 0.023101806640625, -0.06390380859375, 0.0136566162109375, -0.01212310791015625, -0.0214080810546875, 0.06939697265625, -0.00949859619140625, 0.0059661865234375, -0.0177001953125, 0.0809326171875, 0.0086517333984375, 0.004627227783203125, 0.05181884765625, -0.02130126953125, 0.016571044921875, -0.0023040771484375, 0.018829345703125, -0.0028553009033203125, -0.0010194778442382812, -0.0305633544921875, 0.004955291748046875, 0.00792694091796875, -0.0285797119140625, -0.004062652587890625, 0.0124053955078125, -0.007183074951171875, -0.041839599609375, 0.0267791748046875, -0.029510498046875, 0.005847930908203125, 0.01473236083984375, -0.02587890625, 0.0009717941284179688, 0.0280609130859375, -0.031524658203125, 0.0037937164306640625, 0.0022125244140625, -0.0180816650390625, 0.0760498046875, 0.00975799560546875, 0.006534576416015625, 0.0294342041015625, -0.0394287109375, -0.012451171875, -0.0282745361328125, 0.041015625, 0.01500701904296875, 0.11053466796875, 0.06378173828125, -0.020477294921875, -0.033416748046875, 0.061370849609375, -0.0039825439453125, -0.01335906982421875, -0.023040771484375, 0.0078887939453125, -0.01332855224609375, 0.020721435546875, -0.02691650390625, 0.0038585662841796875, -0.016265869140625, -0.05950927734375, -0.08843994140625, 0.1029052734375, -0.00434112548828125, 0.06298828125, -0.0022792816162109375, 0.01505279541015625, -0.02880859375, -0.01496124267578125, -0.01166534423828125, 0.018890380859375, -0.036407470703125, -0.02471923828125, -0.0135498046875, 0.00823974609375, -0.026702880859375, 0.01873779296875, 0.04095458984375, 0.0144500732421875, -0.08026123046875, 0.0013256072998046875, 0.07586669921875, 0.03717041015625, 0.037872314453125, 0.059661865234375, 0.020355224609375, 0.0265045166015625, 0.0199432373046875, -0.037841796875, 0.026611328125, -0.0291900634765625, 0.01143646240234375, 0.03497314453125, -0.005214691162109375, -0.00960540771484375, 0.043731689453125, -0.022369384765625, -0.047454833984375, 0.03192138671875, 0.01849365234375, 0.01258087158203125, -0.00843048095703125, 0.00971221923828125, -0.03656005859375, -0.0034275054931640625, -0.06512451171875, -0.005100250244140625, -0.0018606185913085938, -0.009552001953125, -0.044189453125, 0.0196075439453125, 0.01177215576171875, -0.025360107421875, -0.018707275390625, -0.0257568359375, 0.01490020751953125, -0.001270294189453125, -0.032958984375, 0.016021728515625, 0.016448974609375, 0.0037975311279296875, -0.015625, 0.0266265869140625, -0.027587890625, 0.00439453125, 0.0037784576416015625, 0.018707275390625, 0.0099945068359375, 0.0107421875, -0.03411865234375, 0.017242431640625, -0.0736083984375, -0.0380859375, -0.0164794921875, 0.0095062255859375, 0.00687408447265625, 0.01556396484375, -0.0087738037109375, 0.0233917236328125, -0.042816162109375, 0.0190887451171875, -0.0302734375, 0.02239990234375, -0.0034160614013671875, 0.0460205078125, 0.0086822509765625, 0.047454833984375, -0.0227508544921875, -0.01467132568359375, 0.007171630859375, 0.0105438232421875, 0.06268310546875, -0.042236328125, 0.054779052734375, 0.005950927734375, 0.04498291015625, -0.0079193115234375, 0.01410675048828125, 0.020477294921875, 0.040863037109375, -0.013458251953125, -0.0447998046875, -0.0178680419921875, -0.0205078125, -0.03802490234375, -0.042205810546875, -0.0325927734375, -0.0124053955078125, 0.0280609130859375, -0.0024967193603515625, 0.016357421875, 0.0135040283203125, 0.0274658203125, -0.0477294921875, 0.08306884765625, -0.00537109375, 0.0142822265625, -0.01273345947265625, -0.043182373046875, 0.01467132568359375, -0.0286102294921875, -0.01467132568359375, -0.0113525390625, -0.00623321533203125, 0.012359619140625, -0.00917816162109375, 0.023956298828125, -0.0068206787109375, 0.034515380859375, 0.00884246826171875, -0.0201416015625, 0.00913238525390625, 0.00019669532775878906, 0.053466796875, 0.035247802734375, -0.00875091552734375, 0.0257415771484375, -0.04266357421875, -0.0219879150390625, -0.0193634033203125, 0.041107177734375, -0.00490570068359375, 0.07000732421875, -0.0181121826171875, 0.022216796875, 0.002300262451171875, -0.043731689453125, 0.014923095703125, -0.013458251953125, 0.0273284912109375, -0.050018310546875, -0.04998779296875, 0.00909423828125, -0.006168365478515625, 0.0599365234375, -0.01015472412109375, 0.0061798095703125, 0.0123443603515625, -0.03936767578125, 0.0066070556640625, 0.0300140380859375, 0.0211944580078125, -0.02008056640625, -0.04986572265625, -0.061279296875, -0.0103302001953125, 0.01763916015625, 0.0140228271484375, -0.022430419921875, 0.052947998046875, 0.01007843017578125, -0.021514892578125, 0.040771484375, -0.0677490234375, 0.060821533203125, 0.028656005859375, 0.01708984375, -0.07037353515625, 0.0004551410675048828, -0.020050048828125, -0.01739501953125, 0.00213623046875, 0.0382080078125, 0.00608062744140625, -0.0634765625, 0.01953125, 0.01360321044921875, 0.01122283935546875, -0.05596923828125, 0.00299835205078125, 0.0301055908203125, 0.005340576171875, 0.00751495361328125, 0.018157958984375, -0.0173187255859375, -0.039886474609375, -0.018768310546875, 0.0178985595703125, -0.037261962890625, -0.020050048828125, -0.069091796875, -0.0037288665771484375, 0.0290374755859375, -0.0209503173828125, -0.0144500732421875, -0.004177093505859375, -0.035003662109375, 0.059967041015625, -0.032470703125, 0.01493072509765625, -0.00601959228515625, 0.03076171875, -0.03759765625, -0.0419921875, -0.01113128662109375, 0.038055419921875, -0.0209503173828125, 0.02349853515625, 0.029937744140625, -0.00848388671875, 0.03399658203125, -0.0080108642578125, 0.006336212158203125, 0.052642822265625, -0.032867431640625, 0.01055908203125, -0.002460479736328125, 0.00971221923828125, -0.04071044921875, -0.0281829833984375, 0.041473388671875, -0.0237274169921875, -0.068603515625, -0.06787109375, 0.03564453125, 0.008575439453125, -0.0460205078125, -0.076416015625, 0.0179595947265625, -0.03515625, -0.022064208984375, 0.00571441650390625, -0.0171051025390625, -0.008941650390625, 0.0190277099609375, 0.005474090576171875, -0.0176544189453125, -0.022674560546875, 0.00592803955078125, -0.00614166259765625, 0.04541015625, -0.00811004638671875, 0.0176239013671875, 0.001255035400390625, 0.02935791015625, 0.006195068359375, -0.0179290771484375, -0.03973388671875, 0.012420654296875, -0.01158905029296875, 0.026336669921875, -0.02899169921875, -0.0350341796875, 0.0011739730834960938, 0.0167999267578125, -0.00188446044921875, 0.003414154052734375, -0.0567626953125, -0.00844573974609375, 0.0902099609375, 0.04034423828125, 0.031219482421875, -0.0296783447265625, 0.0166168212890625, -0.01523590087890625, -0.0401611328125, 0.0010347366333007812, 0.00421142578125, -0.0240325927734375, 0.00638580322265625, -0.013824462890625, -0.0011196136474609375, 0.028564453125, -0.0377197265625, -0.0027065277099609375, -0.011016845703125, 0.0093536376953125, 0.01470184326171875, -0.04119873046875, 0.045501708984375, 0.044158935546875, -0.02880859375, 0.02398681640625, -0.0101776123046875, -0.016815185546875, 0.040374755859375, 0.009063720703125, 0.055877685546875, 0.0151214599609375, -0.0606689453125, 0.0013151168823242188, 0.0274810791015625, 0.00736236572265625, -0.049560546875, -0.058837890625, -0.007419586181640625, 0.007518768310546875, -0.007114410400390625, -0.00257110595703125, 0.0110321044921875, -0.01092529296875, -0.01922607421875, 0.020904541015625, 0.014129638671875, -0.01067352294921875, -0.02532958984375, 0.025726318359375, -0.02001953125, -0.00868988037109375, -0.027252197265625, 0.0093994140625, 0.0115509033203125, 0.0258026123046875, -0.00275421142578125, -0.005184173583984375, 0.00864410400390625, -0.04193115234375, 0.0020694732666015625, -0.00450897216796875 ]
0992b343f8d9f92246135a08459099f34dc2a4f9
Wordpress Stackexchange Q: Get Product id from order id in Woocommerce I am having trouble with Woocommerce product details and order details relationship. I'm not able to find the product ID of a related order ID on the View Orders page of the Woocommerce theme. I simply want to get the product content and permalink etc on View Orders page. I tried searching in wp_postmeta but had no luck. A: WooCommerce 3.0+ you can get the order items of an order by $order = wc_get_order( $order_id ); $items = $order->get_items(); then if you loop through the items, you can get all the relevant data: foreach ( $items as $item ) { $product_name = $item->get_name(); $product_id = $item->get_product_id(); $product_variation_id = $item->get_variation_id(); } a good tip is to check how the admin order pages get the data, you'll find many answers there! Pre-WooCommerce 3.0 $order = new WC_Order( $order_id ); $items = $order->get_items(); foreach ( $items as $item ) { $product_name = $item['name']; $product_id = $item['product_id']; $product_variation_id = $item['variation_id']; }
Q: Get Product id from order id in Woocommerce I am having trouble with Woocommerce product details and order details relationship. I'm not able to find the product ID of a related order ID on the View Orders page of the Woocommerce theme. I simply want to get the product content and permalink etc on View Orders page. I tried searching in wp_postmeta but had no luck. A: WooCommerce 3.0+ you can get the order items of an order by $order = wc_get_order( $order_id ); $items = $order->get_items(); then if you loop through the items, you can get all the relevant data: foreach ( $items as $item ) { $product_name = $item->get_name(); $product_id = $item->get_product_id(); $product_variation_id = $item->get_variation_id(); } a good tip is to check how the admin order pages get the data, you'll find many answers there! Pre-WooCommerce 3.0 $order = new WC_Order( $order_id ); $items = $order->get_items(); foreach ( $items as $item ) { $product_name = $item['name']; $product_id = $item['product_id']; $product_variation_id = $item['variation_id']; } A: I worked on it and achieved something. That I would like to share to other developers. This is not preferred way to do it, but for knowledge I am posting my answer. global $wpdb; $result = $wpdb->get_results('select t1.order_item_id, t2.* FROM wp_woocommerce_order_items as t1 JOIN wp_woocommerce_order_itemmeta as t2 ON t1.order_item_id = t2.order_item_id where t1.order_id='.$order->ID); echo '<pre>'; print_r($result); echo '</pre>'; hope will help someone. Additionally: Better to use wordpress table prefix to avoid problems in multiple website or in migration etc. global $wpdb; $table_name = $wpdb->prefix . 'table_name';
wordpress
{ "language": "en", "length": 253, "provenance": "stackexchange_00019.jsonl.gz:431718", "question_score": "44", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/97176" }
[ 0.0092620849609375, -0.04180908203125, -0.0199127197265625, -0.03948974609375, -0.0123443603515625, -0.01483917236328125, 0.01202392578125, 0.0316162109375, 0.022705078125, 0.031707763671875, -0.0275115966796875, -0.0195770263671875, -0.0209197998046875, -0.007537841796875, -0.0479736328125, -0.045501708984375, 0.048675537109375, -0.001605987548828125, 0.048583984375, 0.01508331298828125, -0.01336669921875, 0.050750732421875, 0.01373291015625, 0.0298309326171875, 0.0545654296875, -0.04541015625, 0.072265625, -0.03546142578125, 0.037689208984375, -0.0235443115234375, 0.037445068359375, -0.01727294921875, 0.0225677490234375, -0.04827880859375, 0.06024169921875, 0.01082611083984375, 0.0264129638671875, -0.0214385986328125, 0.0318603515625, -0.001613616943359375, 0.04339599609375, -0.03125, 0.02294921875, 0.0036449432373046875, 0.014739990234375, -0.0305938720703125, 0.031890869140625, -0.051055908203125, 0.007175445556640625, 0.055633544921875, 0.024200439453125, 0.0310211181640625, 0.000016391277313232422, 0.06787109375, 0.0015134811401367188, 0.00038170814514160156, -0.011016845703125, 0.0096435546875, 0.022857666015625, -0.00763702392578125, -0.0301055908203125, 0.0019550323486328125, 0.0178070068359375, -0.024261474609375, 0.01342010498046875, 0.000885009765625, 0.039520263671875, 0.031280517578125, -0.022796630859375, 0.00502777099609375, 0.032684326171875, 0.00003153085708618164, 0.01436614990234375, 0.0015687942504882812, -0.00934600830078125, -0.061126708984375, 0.041595458984375, -0.0298004150390625, -0.01316070556640625, 0.0235595703125, -0.0034275054931640625, -0.01308441162109375, -0.045623779296875, -0.0175018310546875, 0.00434112548828125, 0.00977325439453125, -0.0146636962890625, -0.012664794921875, -0.03350830078125, -0.042388916015625, -0.03076171875, -0.035552978515625, -0.0120391845703125, 0.007434844970703125, -0.06634521484375, -0.00946807861328125, 0.003917694091796875, 0.034027099609375, -0.01209259033203125, 0.0195465087890625, 0.040740966796875, -0.055145263671875, 0.05462646484375, -0.044097900390625, -0.0345458984375, -0.00827789306640625, 0.0745849609375, 0.06817626953125, 0.00853729248046875, 0.002597808837890625, -0.032012939453125, 0.055999755859375, -0.01062774658203125, -0.0458984375, 0.01213836669921875, 0.054595947265625, -0.0271453857421875, 0.0262603759765625, 0.0165252685546875, 0.0170135498046875, -0.002170562744140625, 0.019744873046875, 0.04400634765625, 0.00060272216796875, -0.0034656524658203125, 0.0012969970703125, -0.015777587890625, -0.054168701171875, -0.01812744140625, 0.0013208389282226562, -0.049041748046875, 0.022552490234375, 0.08038330078125, 0.0310211181640625, -0.003963470458984375, -0.005260467529296875, 0.01213836669921875, 0.0275115966796875, 0.0184478759765625, -0.02294921875, 0.0211029052734375, 0.03314208984375, 0.03790283203125, -0.005558013916015625, 0.0006155967712402344, 0.0084991455078125, 0.023590087890625, 0.01898193359375, -0.01471710205078125, -0.007537841796875, -0.01047515869140625, 0.011871337890625, -0.0086517333984375, 0.03656005859375, 0.039947509765625, 0.0124053955078125, 0.050628662109375, -0.0247650146484375, -0.0004558563232421875, -0.0369873046875, -0.0008029937744140625, -0.005401611328125, 0.01544952392578125, -0.0295257568359375, -0.057220458984375, 0.021575927734375, -0.0230865478515625, -0.0159912109375, 0.0188751220703125, 0.07598876953125, 0.01303863525390625, -0.030120849609375, -0.00910186767578125, 0.00841522216796875, -0.0251007080078125, -0.0159149169921875, 0.004119873046875, -0.0052642822265625, 0.031768798828125, -0.0014581680297851562, -0.054412841796875, -0.0689697265625, 0.007366180419921875, -0.006191253662109375, -0.0225372314453125, 0.05987548828125, 0.02093505859375, 0.048675537109375, -0.0261077880859375, 0.00888824462890625, 0.0201263427734375, 0.039520263671875, -0.080322265625, 0.04376220703125, -0.036956787109375, -0.005092620849609375, -0.004917144775390625, 0.0184326171875, -0.02667236328125, 0.00839996337890625, 0.01520538330078125, -0.008087158203125, 0.0231475830078125, -0.00443267822265625, -0.0055389404296875, -0.01439666748046875, 0.00618743896484375, 0.02044677734375, -0.01351165771484375, 0.01678466796875, 0.039886474609375, 0.0151214599609375, -0.044647216796875, 0.00344085693359375, 0.00004667043685913086, -0.002201080322265625, -0.0361328125, 0.03643798828125, -0.0256195068359375, 0.04345703125, -0.0195770263671875, -0.05889892578125, -0.0009326934814453125, 0.0279083251953125, 0.0128936767578125, 0.023406982421875, -0.0090484619140625, 0.008453369140625, 0.0643310546875, 0.021453857421875, 0.01026153564453125, -0.043487548828125, 0.019317626953125, 0.018157958984375, -0.0095367431640625, 0.0032806396484375, 0.00775909423828125, -0.09686279296875, 0.00899505615234375, 0.05340576171875, 0.041046142578125, 0.051971435546875, 0.004558563232421875, -0.01041412353515625, 0.0816650390625, -0.0201568603515625, 0.0018701553344726562, -0.0222625732421875, -0.0102386474609375, 0.0254058837890625, 0.012237548828125, 0.029083251953125, 0.0064849853515625, 0.0222930908203125, -0.00026988983154296875, 0.046417236328125, -0.03759765625, 0.0190582275390625, -0.0135040283203125, 0.0209503173828125, -0.0267333984375, -0.01190185546875, 0.038330078125, -0.0275726318359375, 0.0042572021484375, 0.032745361328125, 0.046844482421875, 0.044036865234375, -0.0158538818359375, -0.00608062744140625, -0.004863739013671875, 0.014373779296875, -0.00878143310546875, 0.0186614990234375, -0.02532958984375, -0.01812744140625, -0.0225830078125, 0.020477294921875, -0.00925445556640625, -0.0207977294921875, 0.00817108154296875, 0.034576416015625, 0.040618896484375, -0.002246856689453125, 0.0004220008850097656, -0.04248046875, 0.023040771484375, 0.012847900390625, -0.0243988037109375, -0.007755279541015625, 0.0059814453125, 0.057830810546875, -0.0202789306640625, 0.029754638671875, -0.01922607421875, 0.002910614013671875, 0.0401611328125, -0.0154876708984375, 0.046600341796875, -0.03570556640625, 0.040283203125, 0.05267333984375, -0.049774169921875, 0.045135498046875, 0.0001780986785888672, -0.013580322265625, 0.00920867919921875, 0.0038661956787109375, -0.0011529922485351562, 0.023284912109375, -0.09100341796875, 0.00823974609375, 0.016021728515625, 0.07098388671875, -0.00888824462890625, -0.03204345703125, 0.022552490234375, 0.0297088623046875, -0.059295654296875, -0.1114501953125, 0.00885009765625, -0.037322998046875, -0.011444091796875, -0.037994384765625, -0.020172119140625, -0.005168914794921875, -0.034576416015625, -0.0176239013671875, -0.0005917549133300781, -0.0128021240234375, -0.058929443359375, -0.0169219970703125, -0.057525634765625, 0.028594970703125, -0.0214996337890625, 0.0157623291015625, 0.00016617774963378906, -0.039337158203125, -0.020660400390625, -0.0201416015625, -0.004486083984375, 0.033050537109375, -0.0156402587890625, -0.024261474609375, -0.0238037109375, -0.035247802734375, -0.0404052734375, 0.0016527175903320312, 0.00688934326171875, -0.0193939208984375, 0.0313720703125, 0.01232147216796875, 0.004322052001953125, 0.0070953369140625, 0.048553466796875, 0.01546478271484375, -0.02166748046875, 0.032623291015625, 0.0634765625, -0.0235748291015625, -0.045166015625, -0.01934814453125, -0.052276611328125, 0.031951904296875, 0.016357421875, 0.01715087890625, 0.0060882568359375, 0.031646728515625, 0.050201416015625, 0.0161285400390625, 0.0246429443359375, -0.0245513916015625, 0.0141143798828125, 0.0248260498046875, 0.038055419921875, -0.03826904296875, 0.041900634765625, -0.00551605224609375, -0.0115203857421875, 0.012603759765625, -0.0022125244140625, -0.023895263671875, 0.01543426513671875, -0.044097900390625, -0.0190887451171875, 0.024017333984375, -0.0157318115234375, 0.0178985595703125, -0.0089263916015625, -0.025665283203125, 0.006011962890625, 0.081298828125, 0.0751953125, -0.03277587890625, -0.040374755859375, -0.010009765625, -0.0166015625, -0.03424072265625, 0.0227508544921875, 0.004703521728515625, -0.02557373046875, -0.00762939453125, -0.01947021484375, 0.00002372264862060547, -0.0193023681640625, 0.0222625732421875, -0.0191650390625, -0.020477294921875, 0.0233154296875, 0.0012865066528320312, 0.00882720947265625, 0.0809326171875, -0.022705078125, 0.0909423828125, -0.03668212890625, -0.01032257080078125, 0.02557373046875, -0.01398468017578125, 0.039642333984375, -0.00675201416015625, 0.00797271728515625, -0.00408172607421875, -0.01561737060546875, 0.01230621337890625, -0.00971221923828125, 0.05712890625, -0.003780364990234375, 0.052154541015625, -0.0257415771484375, -0.0650634765625, 0.003368377685546875, -0.06707763671875, -0.0272064208984375, -0.041015625, -0.0421142578125, 0.002349853515625, -0.00762176513671875, 0.0306243896484375, 0.006183624267578125, -0.018035888671875, -0.10791015625, -0.0262451171875, 0.0248260498046875, 0.0171661376953125, -0.00811004638671875, 0.01415252685546875, -0.0245361328125, -0.0970458984375, 0.0242156982421875, -0.026702880859375, -0.0181884765625, 0.0087738037109375, 0.01035308837890625, 0.0211944580078125, -0.01525115966796875, 0.007404327392578125, -0.020294189453125, 0.03399658203125, 0.02435302734375, 0.0270538330078125, 0.0222625732421875, -0.032073974609375, 0.043792724609375, 0.041351318359375, -0.01617431640625, 0.028564453125, 0.0187225341796875, -0.01523590087890625, -0.02471923828125, -0.00017821788787841797, -0.04730224609375, 0.0160369873046875, -0.0195770263671875, -0.03375244140625, -0.0102081298828125, -0.0107574462890625, 0.049407958984375, -0.0298004150390625, 0.06884765625, -0.00980377197265625, -0.052032470703125, 0.014495849609375, -0.0034847259521484375, 0.022216796875, -0.0032501220703125, 0.0153045654296875, 0.0143585205078125, -0.011199951171875, 0.01025390625, 0.004520416259765625, 0.0105438232421875, -0.01055145263671875, 0.005229949951171875, 0.0301513671875, -0.01517486572265625, -0.00873565673828125, -0.009765625, 0.0445556640625, -0.0115203857421875, -0.0266876220703125, 0.00365447998046875, -0.0204925537109375, -0.011749267578125, 0.035003662109375, -0.040740966796875, 0.023193359375, 0.0736083984375, -0.01309967041015625, -0.0005259513854980469, -0.04058837890625, 0.0209808349609375, -0.0391845703125, 0.03338623046875, -0.02288818359375, 0.019500732421875, -0.01148223876953125, 0.08380126953125, -0.020538330078125, 0.0406494140625, -0.000008881092071533203, 0.037689208984375, 0.00690460205078125, 0.058868408203125, 0.012603759765625, -0.051605224609375, 0.01192474365234375, 0.017303466796875, -0.0168304443359375, -0.037017822265625, 0.0145263671875, 0.01261138916015625, 0.05255126953125, -0.01226806640625, -0.044891357421875, 0.016571044921875, -0.053985595703125, -0.020294189453125, 0.00998687744140625, -0.00521087646484375, -0.0218505859375, -0.023406982421875, 0.00428009033203125, 0.016632080078125, 0.0091094970703125, -0.01140594482421875, 0.0180206298828125, -0.04412841796875, -0.01641845703125, 0.005428314208984375, -0.014801025390625, -0.0179595947265625, -0.001949310302734375, -0.0281982421875, -0.01309967041015625, -0.01154327392578125, -0.0163726806640625, -0.01364898681640625, 0.01128387451171875, -0.00693511962890625, 0.02471923828125, -0.01351165771484375, 0.0596923828125, -0.01068115234375, -0.052398681640625, -0.047698974609375, 0.00839996337890625, 0.042022705078125, 0.04180908203125, -0.01416015625, -0.017822265625, -0.01396942138671875, -0.0121612548828125, 0.044189453125, -0.00864410400390625, -0.005092620849609375, -0.00940704345703125, -0.039276123046875, 0.0085601806640625, -0.0214691162109375, 0.02178955078125, -0.0227508544921875, 0.0175323486328125, -0.0118408203125, -0.026763916015625, -0.0128326416015625, 0.02984619140625, 0.007465362548828125, 0.032470703125, -0.0008463859558105469, -0.0114593505859375, -0.03466796875, -0.0127716064453125, -0.017303466796875, 0.0120391845703125, 0.0016193389892578125, -0.0153350830078125, 0.00463104248046875, 0.0008130073547363281, 0.064453125, 0.0016107559204101562, 0.02435302734375, -0.042755126953125, -0.00757598876953125, -0.018310546875, 0.0018777847290039062, -0.0467529296875, -0.036712646484375, 0.0304107666015625, -0.07806396484375, -0.05328369140625, 0.03546142578125, 0.052825927734375, -0.0176239013671875, -0.034423828125, -0.0281524658203125, 0.041351318359375, -0.039459228515625, 0.061981201171875, 0.06304931640625, 0.0272216796875, 0.0268096923828125, -0.005855560302734375, -0.00536346435546875, -0.03131103515625, 0.060333251953125, -0.006488800048828125, -0.038848876953125, 0.0821533203125, 0.018798828125, -0.04083251953125, 0.056976318359375, -0.055023193359375, 0.02001953125, -0.007648468017578125, 0.049896240234375, -0.0256500244140625, 0.01039886474609375, 0.0289459228515625, -0.0219573974609375, 0.0072784423828125, 0.0196533203125, -0.0279541015625, -0.07244873046875, 0.049468994140625, -0.029052734375, -0.0022563934326171875, 0.0191497802734375, -0.035003662109375, 0.00615692138671875, 0.00511932373046875, 0.027313232421875, -0.010009765625, -0.03314208984375, -0.057830810546875, 0.02288818359375, -0.0294036865234375, -0.048095703125, 0.01241302490234375, 0.02557373046875, 0.0133819580078125, -0.053009033203125, 0.08087158203125, -0.00879669189453125, 0.0291290283203125, 0.011566162109375, -0.01629638671875, 0.00817108154296875, 0.0306549072265625, -0.01059722900390625, -0.00811767578125, -0.0007948875427246094, -0.0184173583984375, 0.0182952880859375, -0.00635528564453125, -0.0016345977783203125, 0.00865936279296875, -0.069580078125, -0.00606536865234375, -0.036041259765625, 0.02496337890625, -0.00583648681640625, 0.025115966796875, 0.0455322265625, -0.031005859375, -0.0084991455078125, 0.054473876953125, 0.049713134765625, -0.0214080810546875, 0.0117950439453125, 0.03515625, -0.007076263427734375, 0.0189208984375, 0.0242462158203125, 0.02203369140625, -0.02655029296875, 0.018646240234375, -0.08319091796875, 0.033966064453125, -0.01020050048828125, 0.0278778076171875, -0.0038242340087890625, -0.0034332275390625, 0.0008139610290527344, -0.0218048095703125, -0.027191162109375, -0.01082611083984375, -0.0204315185546875, 0.041259765625, -0.02410888671875, -0.0222015380859375, -0.0029964447021484375, 0.057403564453125, 0.06243896484375, 0.0120086669921875, -0.05712890625, -0.019073486328125, 0.0343017578125, 0.01059722900390625, -0.0024700164794921875, 0.06304931640625, 0.027069091796875, 0.0004248619079589844, 0.0880126953125, -0.032623291015625, 0.0296173095703125, -0.02227783203125, 0.0621337890625, 0.030975341796875, 0.0211181640625, 0.01544189453125, -0.01020050048828125, 0.0194244384765625, -0.00397491455078125, -0.007602691650390625, 0.010833740234375, -0.03790283203125, 0.021484375, 0.0086212158203125, 0.038787841796875, -0.023895263671875, 0.00970458984375, -0.0223846435546875, 0.044036865234375, 0.0285491943359375, -0.01006317138671875, -0.004169464111328125, 0.00629425048828125, 0.053436279296875, 0.0036163330078125, -0.00972747802734375, 0.0185546875, 0.0116424560546875, -0.012939453125, 0.01605224609375, 0.007297515869140625, -0.0247344970703125, 0.0015478134155273438, 0.036224365234375, -0.00174713134765625, -0.0012149810791015625, 0.012847900390625, 0.01268768310546875, -0.005283355712890625, 0.00470733642578125, -0.03985595703125, 0.022125244140625, -0.024261474609375, -0.035400390625, -0.0181732177734375, 0.017547607421875, 0.041748046875, 0.026153564453125, 0.0240631103515625, 0.042236328125, -0.11151123046875, -0.01384735107421875, -0.06915283203125, 0.07037353515625, 0.018157958984375, 0.047271728515625, -0.0279388427734375, 0.09271240234375, -0.01145172119140625, -0.0306549072265625, 0.01320648193359375, 0.026824951171875, -0.0020847320556640625, -0.016387939453125, -0.014739990234375, -0.0278167724609375, -0.0173797607421875, 0.04095458984375, 0.00012481212615966797, 0.07086181640625, 0.0282440185546875, 0.00795745849609375, 0.01177215576171875, -0.004634857177734375, 0.01367950439453125, -0.026397705078125, 0.016510009765625, -0.014373779296875, 0.0114898681640625, 0.0013475418090820312, -0.0117950439453125, -0.00821685791015625, 0.024932861328125, 0.018280029296875, -0.0238800048828125, 0.055755615234375, -0.002063751220703125, -0.0006208419799804688, -0.004367828369140625, -0.0127716064453125, 0.01544952392578125, -0.003749847412109375, -0.03204345703125, -0.0207366943359375, -0.0077667236328125, 0.05377197265625, -0.038787841796875, 0.0007123947143554688, 0.0218505859375, 0.037994384765625, -0.006458282470703125, 0.005886077880859375, 0.005558013916015625, 0.00897979736328125, 0.01544952392578125, 0.0172119140625, 0.022064208984375, 0.027008056640625, -0.058441162109375, -0.0396728515625, 0.00506591796875, 0.0032444000244140625, 0.0277252197265625, -0.0239105224609375, 0.050933837890625, 0.022857666015625, -0.022796630859375, 0.035400390625, -0.0621337890625, -0.05499267578125, 0.0955810546875, -0.03643798828125, -0.0361328125, 0.015045166015625, 0.0063934326171875, 0.0035686492919921875, 0.07269287109375, -0.00433349609375, -0.01120758056640625, -0.024566650390625, 0.0384521484375, -0.022247314453125, 0.059844970703125, -0.00693511962890625, -0.0390625, -0.0187835693359375, 0.01445770263671875, 0.0253448486328125, 0.049957275390625, -0.0168304443359375, 0.0196533203125, 0.007472991943359375, -0.011383056640625, 0.021881103515625, 0.0034427642822265625, 0.0333251953125, 0.0322265625, -0.01064300537109375, -0.017791748046875, 0.0074310302734375, -0.007534027099609375, 0.033447265625, -0.00807952880859375, 0.0352783203125, 0.01299285888671875, -0.02398681640625, 0.042877197265625, 0.044830322265625, 0.041046142578125, -0.005847930908203125, 0.004932403564453125, 0.060394287109375, -0.02252197265625, -0.0185546875, -0.0195770263671875, -0.019378662109375, -0.013092041015625, 0.003269195556640625, 0.00855255126953125, 0.029541015625, 0.0142974853515625, 0.019683837890625, -0.0144195556640625, -0.01153564453125, 0.0048675537109375, -0.01383209228515625, 0.00568389892578125, 0.00955963134765625, -0.01235198974609375, -0.024383544921875, -0.014556884765625, 0.01470947265625, 0.0070648193359375, -0.0247039794921875, 0.004390716552734375, -0.02825927734375, -0.023773193359375, -0.00519561767578125, 0.01311492919921875, 0.0195465087890625, -0.0105438232421875, -0.028350830078125, 0.004131317138671875, 0.00408935546875, 0.03887939453125, -0.006923675537109375, -0.039794921875, 0.01096343994140625, 0.0142822265625, 0.002750396728515625, -0.0672607421875, -0.005954742431640625, -0.0732421875, 0.0195465087890625, -0.026702880859375, 0.01342010498046875, 0.0260162353515625, -0.03619384765625, -0.039520263671875, 0.045440673828125, -0.0078277587890625, -0.022613525390625, -0.054443359375, -0.035797119140625, -0.0238494873046875, 0.03662109375, -0.02838134765625, -0.023406982421875, -0.037994384765625, 0.058563232421875, -0.01666259765625, 0.027587890625, 0.0182037353515625, -0.029388427734375, -0.0046844482421875, 0.00029587745666503906, 0.00022661685943603516, -0.004486083984375, 0.0106964111328125, -0.02374267578125, 0.01788330078125, 0.036285400390625, -0.0303802490234375, -0.055389404296875, -0.003116607666015625, -0.00876617431640625, 0.00727081298828125, -0.018798828125, -0.0193634033203125, -0.015380859375, 0.025360107421875, 0.04345703125, 0.008270263671875, -0.0099945068359375, 0.00765228271484375, 0.0013265609741210938, -0.046417236328125, 0.00019979476928710938, 0.034454345703125, -0.06884765625, -0.01280975341796875, 0.01348114013671875, -0.03936767578125, 0.00980377197265625, 0.0248870849609375, -0.08099365234375, 0.021270751953125, -0.042266845703125, -0.03167724609375, -0.05816650390625, 0.006893157958984375, -0.0208740234375, -0.018646240234375, -0.0439453125, -0.0244140625, 0.009765625, -0.046417236328125, -0.06488037109375, 0.00948333740234375, -0.0173492431640625, 0.0118255615234375, 0.01486968994140625, 0.02178955078125, 0.0198516845703125, 0.005558013916015625, -0.01776123046875, -0.01491546630859375, 0.005489349365234375, -0.01073455810546875, -0.0262908935546875, 0.0010976791381835938, 0.01055145263671875, -0.00899505615234375, 0.100341796875, -0.01522064208984375, 0.038299560546875, 0.008270263671875, 0.03399658203125, -0.0167083740234375, 0.00203704833984375, 0.030792236328125, -0.0523681640625, 0.004589080810546875, -0.0008730888366699219, -0.0215301513671875, -0.021881103515625, -0.01800537109375, 0.059295654296875, -0.0223846435546875, -0.007190704345703125 ]
bf7fc7c9bef52635249daae7ded323e66dbedeb6
Wordpress Stackexchange Q: How to show a under construction page for a domain but still be able to work on index.php? I installed a WordPress for a domain name. When I use this domain name will point to index.php in my template. I want show a under construction page for this domain name, but the other hand I still want work on index.php in my template. A: You can filter template_include and include a special file for users who are not logged in: /* Plugin Name: T5 Under Construction */ add_filter( 'template_include', 't5_uc_template' ); function t5_uc_template( $template ) { $uc_template = dirname( __FILE__ ) . '/under-construction.php'; if ( ! is_user_logged_in() ) return $uc_template; if ( ! current_user_can( 'administrator' ) ) return $uc_template; return $template; } The file under-construction.php could be a plain HTML file; it doesn’t have to be a PHP file.
Q: How to show a under construction page for a domain but still be able to work on index.php? I installed a WordPress for a domain name. When I use this domain name will point to index.php in my template. I want show a under construction page for this domain name, but the other hand I still want work on index.php in my template. A: You can filter template_include and include a special file for users who are not logged in: /* Plugin Name: T5 Under Construction */ add_filter( 'template_include', 't5_uc_template' ); function t5_uc_template( $template ) { $uc_template = dirname( __FILE__ ) . '/under-construction.php'; if ( ! is_user_logged_in() ) return $uc_template; if ( ! current_user_can( 'administrator' ) ) return $uc_template; return $template; } The file under-construction.php could be a plain HTML file; it doesn’t have to be a PHP file. A: The simplest workaround would be to just add the static content in a new index.html file in the root, and the server should read the .html before the .php A: You can restrict depending on the IP address and Htaccess file. <Files index.php> Order Deny,Allow Deny from all Allow from 12.34.56.78 </Files> where 12.34.56.78 is your ip address. A: Use maintenance mode plugin. Activate it. Once activate login as admin and you can only view your site. Other users can see maintenance message. A: The simplest way would be using an maintenance or coming soon plugin. It will take a minute or 2 to setup the plugin and you're good to go. http://wordpress.org/extend/plugins/wp-maintenance-mode/
wordpress
{ "language": "en", "length": 254, "provenance": "stackexchange_00019.jsonl.gz:431719", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/97177" }
[ 0.045074462890625, 0.0013723373413085938, -0.01441192626953125, -0.0288238525390625, -0.00811767578125, -0.05853271484375, -0.0010881423950195312, -0.0266876220703125, 0.00024378299713134766, -0.04443359375, -0.038116455078125, 0.02911376953125, -0.05841064453125, -0.03564453125, 0.05438232421875, -0.04107666015625, 0.0038852691650390625, -0.014007568359375, -0.00988006591796875, -0.02618408203125, 0.0029296875, -0.036865234375, 0.004673004150390625, 0.003124237060546875, -0.0013208389282226562, -0.060028076171875, 0.13134765625, -0.0018520355224609375, -0.0035247802734375, -0.02252197265625, 0.01126861572265625, -0.018890380859375, 0.013275146484375, 0.0282440185546875, 0.005985260009765625, 0.0210723876953125, 0.022705078125, 0.004840850830078125, 0.0098724365234375, 0.031524658203125, 0.0160980224609375, 0.005092620849609375, 0.0577392578125, 0.006877899169921875, 0.020721435546875, -0.0521240234375, 0.03765869140625, -0.0699462890625, 0.047760009765625, 0.00377655029296875, -0.00860595703125, 0.047576904296875, -0.0070037841796875, 0.0276031494140625, -0.0059814453125, 0.0211334228515625, -0.0460205078125, -0.00039196014404296875, 0.033905029296875, 0.0009832382202148438, -0.0047149658203125, -0.038482666015625, 0.0209503173828125, 0.0006518363952636719, -0.0233154296875, -0.035369873046875, -0.00588226318359375, 0.004638671875, -0.035247802734375, -0.01216888427734375, 0.05511474609375, -0.00475311279296875, 0.028045654296875, 0.0008935928344726562, -0.0093841552734375, -0.0223541259765625, 0.01486968994140625, -0.00266265869140625, 0.0194091796875, 0.0016832351684570312, 0.01261138916015625, 0.018890380859375, -0.03753662109375, -0.023468017578125, 0.0218658447265625, 0.0263214111328125, -0.00630950927734375, -0.0246734619140625, -0.031219482421875, 0.029083251953125, -0.031005859375, 0.0184783935546875, -0.00592041015625, -0.00806427001953125, -0.02490234375, -0.005764007568359375, 0.01181793212890625, 0.0293426513671875, -0.02142333984375, 0.0153350830078125, -0.0258026123046875, -0.0301666259765625, 0.020599365234375, -0.045318603515625, -0.0306396484375, 0.0213470458984375, -0.01087188720703125, 0.037017822265625, 0.030029296875, 0.047332763671875, 0.01105499267578125, -0.037567138671875, -0.0452880859375, -0.052276611328125, 0.0038852691650390625, 0.042266845703125, -0.0426025390625, -0.0122222900390625, 0.01898193359375, -0.0101776123046875, -0.01148223876953125, 0.036895751953125, -0.0151519775390625, -0.029266357421875, 0.0178985595703125, 0.0009131431579589844, 0.00025010108947753906, -0.022796630859375, 0.015869140625, -0.049896240234375, 0.011383056640625, 0.04351806640625, -0.004871368408203125, -0.00811004638671875, -0.0299835205078125, 0.0201568603515625, 0.0021228790283203125, 0.0153961181640625, 0.00890350341796875, 0.0224609375, -0.033355712890625, -0.05670166015625, -0.01032257080078125, -0.0093231201171875, -0.06689453125, 0.02386474609375, 0.036834716796875, 0.0229949951171875, -0.04248046875, -0.08099365234375, -0.00644683837890625, -0.002536773681640625, 0.0228729248046875, -0.006702423095703125, 0.048675537109375, -0.043792724609375, 0.057342529296875, -0.04632568359375, 0.0167388916015625, -0.036468505859375, 0.03173828125, 0.00901031494140625, 0.03765869140625, -0.0257110595703125, -0.034149169921875, -0.01580810546875, -0.081298828125, -0.006626129150390625, 0.02789306640625, -0.03729248046875, 0.059600830078125, -0.0283050537109375, 0.024017333984375, 0.0083770751953125, 0.003154754638671875, 0.0280914306640625, 0.031524658203125, 0.09130859375, -0.02532958984375, 0.03143310546875, 0.010711669921875, -0.04595947265625, 0.0811767578125, -0.035308837890625, -0.031036376953125, 0.019378662109375, -0.0146484375, -0.00728607177734375, 0.0192108154296875, 0.01093292236328125, 0.0242462158203125, 0.035430908203125, -0.048980712890625, 0.035308837890625, -0.00521087646484375, -0.00812530517578125, -0.0095367431640625, 0.002689361572265625, -0.012847900390625, -0.016693115234375, -0.0229949951171875, -0.0177001953125, 0.0283660888671875, -0.0194244384765625, 0.0014963150024414062, 0.002071380615234375, -0.008453369140625, 0.035064697265625, 0.016387939453125, 0.032379150390625, -0.0032196044921875, -0.016998291015625, -0.0113525390625, -0.01294708251953125, -0.030853271484375, -0.032623291015625, -0.0004191398620605469, 0.058563232421875, 0.03460693359375, 0.03399658203125, 0.03900146484375, -0.01442718505859375, 0.031829833984375, -0.02783203125, 0.04656982421875, -0.0036563873291015625, -0.007843017578125, -0.01039886474609375, 0.01554107666015625, 0.0153656005859375, -0.032806396484375, 0.0196075439453125, -0.006450653076171875, -0.0198516845703125, -0.054443359375, 0.0012664794921875, -0.0207366943359375, -0.0171661376953125, -0.00487518310546875, 0.047760009765625, 0.0274200439453125, 0.051910400390625, 0.00969696044921875, 0.041351318359375, 0.07000732421875, -0.0548095703125, -0.006195068359375, 0.016357421875, -0.0156402587890625, 0.00811004638671875, -0.007427215576171875, -0.002361297607421875, 0.030609130859375, -0.033905029296875, -0.043914794921875, 0.043731689453125, -0.00554656982421875, -0.00951385498046875, 0.0141754150390625, -0.0201873779296875, 0.00945281982421875, -0.0325927734375, -0.02581787109375, -0.0196685791015625, -0.0120086669921875, 0.0259857177734375, 0.022979736328125, 0.0175323486328125, -0.033203125, -0.0011663436889648438, 0.026031494140625, 0.0302276611328125, -0.00536346435546875, 0.03643798828125, 0.038909912109375, 0.0162811279296875, -0.0609130859375, -0.0015048980712890625, 0.01904296875, 0.0257568359375, -0.0462646484375, 0.004024505615234375, -0.01111602783203125, -0.0108795166015625, -0.0310211181640625, -0.05999755859375, 0.0367431640625, -0.0107421875, 0.034759521484375, 0.0036525726318359375, 0.028961181640625, 0.0277862548828125, -0.0288238525390625, 0.07110595703125, -0.0260009765625, -0.021728515625, -0.008514404296875, -0.040283203125, 0.037872314453125, -0.043243408203125, 0.00673675537109375, 0.06329345703125, -0.0126800537109375, 0.0171661376953125, -0.01419830322265625, -0.00982666015625, 0.0092620849609375, -0.002819061279296875, -0.0182037353515625, -0.052032470703125, 0.0155792236328125, 0.019317626953125, 0.031280517578125, 0.01320648193359375, 0.033355712890625, -0.0009927749633789062, 0.0190277099609375, 0.0289154052734375, -0.0204925537109375, -0.04571533203125, -0.0287017822265625, -0.038543701171875, -0.036346435546875, -0.00339508056640625, -0.0252532958984375, 0.0257110595703125, -0.01222991943359375, 0.0027446746826171875, -0.018341064453125, -0.0229339599609375, -0.07940673828125, -0.061767578125, -0.06573486328125, -0.01470947265625, -0.009307861328125, -0.01024627685546875, -0.00337982177734375, 0.023406982421875, 0.0104217529296875, -0.0241851806640625, 0.0176239013671875, 0.07806396484375, -0.00411224365234375, -0.0139312744140625, 0.019927978515625, -0.017333984375, 0.0123138427734375, 0.025634765625, 0.00901031494140625, 0.0014085769653320312, -0.00743865966796875, -0.0234222412109375, 0.0106201171875, -0.053497314453125, 0.0010662078857421875, 0.00505828857421875, -0.00518798828125, -0.031158447265625, 0.0072479248046875, -0.06219482421875, -0.020660400390625, -0.0019054412841796875, -0.05181884765625, 0.0123138427734375, 0.05572509765625, -0.04693603515625, -0.006771087646484375, -0.03271484375, -0.004108428955078125, -0.002758026123046875, -0.00015914440155029297, -0.001354217529296875, 0.00875091552734375, -0.007518768310546875, -0.0164642333984375, -0.00611114501953125, 0.044464111328125, 0.0009284019470214844, -0.049896240234375, -0.00870513916015625, -0.01270294189453125, -0.03936767578125, 0.02911376953125, -0.0667724609375, -0.059844970703125, 0.0160064697265625, -0.0794677734375, -0.0010004043579101562, -0.07562255859375, -0.0007853507995605469, -0.024627685546875, 0.07080078125, -0.062042236328125, 0.00478363037109375, 0.037933349609375, 0.0260772705078125, -0.02337646484375, -0.0092620849609375, -0.09698486328125, -0.005840301513671875, -0.06463623046875, 0.00362396240234375, -0.00543212890625, -0.02899169921875, -0.002490997314453125, -0.0035991668701171875, -0.0252838134765625, -0.034393310546875, 0.0115509033203125, 0.03192138671875, -0.033172607421875, 0.0013208389282226562, -0.027618408203125, -0.00989532470703125, 0.0140533447265625, -0.007724761962890625, -0.036956787109375, -0.0016546249389648438, 0.00567626953125, 0.0169677734375, 0.018402099609375, -0.036224365234375, -0.0191192626953125, 0.0189361572265625, -0.01177215576171875, 0.034942626953125, -0.0177459716796875, -0.0100250244140625, 0.038299560546875, -0.00472259521484375, -0.0018148422241210938, -0.0010404586791992188, -0.00783538818359375, 0.0159149169921875, 0.0075225830078125, 0.019500732421875, -0.03857421875, -0.040008544921875, 0.0117645263671875, -0.0300140380859375, -0.00072479248046875, -0.013519287109375, 0.023956298828125, -0.032012939453125, -0.0207061767578125, 0.015655517578125, 0.02984619140625, 0.05047607421875, 0.05145263671875, 0.018402099609375, -0.0133514404296875, -0.015777587890625, 0.004001617431640625, 0.00949859619140625, -0.053741455078125, 0.04791259765625, 0.0211639404296875, 0.0472412109375, -0.0196533203125, 0.041015625, 0.049102783203125, -0.028228759765625, 0.02996826171875, 0.0208282470703125, 0.0012102127075195312, 0.04132080078125, -0.026214599609375, -0.00039005279541015625, -0.062347412109375, 0.04229736328125, 0.0261688232421875, -0.0222015380859375, -0.01389312744140625, -0.021087646484375, 0.0276641845703125, -0.03240966796875, -0.00283050537109375, 0.014190673828125, 0.014007568359375, -0.01392364501953125, -0.01934814453125, -0.0002865791320800781, -0.01155853271484375, 0.028076171875, 0.0227508544921875, 0.00664520263671875, 0.0064239501953125, 0.0318603515625, 0.002635955810546875, 0.021331787109375, -0.0048065185546875, -0.021270751953125, 0.0295867919921875, 0.016357421875, 0.006916046142578125, 0.028167724609375, -0.005481719970703125, 0.0347900390625, 0.007015228271484375, -0.054443359375, -0.0015764236450195312, 0.00738525390625, -0.00537872314453125, 0.050750732421875, 0.0240936279296875, -0.0014600753784179688, -0.00429534912109375, 0.00762176513671875, -0.002239227294921875, 0.045196533203125, -0.013702392578125, -0.01418304443359375, -0.01371002197265625, -0.002094268798828125, -0.01922607421875, -0.038909912109375, 0.04547119140625, 0.0187835693359375, -0.00443267822265625, -0.01332855224609375, 0.0201416015625, 0.0263214111328125, -0.009857177734375, 0.01132965087890625, 0.03753662109375, -0.010894775390625, -0.0172576904296875, 0.0160064697265625, 0.01006317138671875, -0.002460479736328125, 0.032867431640625, 0.025115966796875, -0.01113128662109375, -0.01027679443359375, 0.00930023193359375, -0.01507568359375, -0.005401611328125, 0.04290771484375, 0.01190185546875, -0.008514404296875, -0.0276641845703125, -0.0059661865234375, 0.02740478515625, 0.0055084228515625, 0.00373077392578125, -0.04180908203125, -0.015655517578125, 0.004608154296875, -0.029754638671875, -0.0229034423828125, -0.0024929046630859375, -0.01397705078125, 0.00888824462890625, -0.0208282470703125, -0.0225372314453125, -0.03912353515625, -0.014312744140625, -0.01474761962890625, -0.01486968994140625, 0.02764892578125, -0.034576416015625, 0.0019664764404296875, -0.0263214111328125, 0.0172119140625, -0.0200347900390625, 0.02301025390625, 0.011016845703125, 0.00722503662109375, -0.0672607421875, 0.0264129638671875, -0.050689697265625, -0.01049041748046875, -0.079345703125, -0.046722412109375, -0.050262451171875, 0.0103912353515625, -0.003284454345703125, 0.00409698486328125, -0.036956787109375, -0.033233642578125, -0.0123443603515625, 0.0276641845703125, 0.01268768310546875, 0.025482177734375, -0.0090179443359375, 0.076904296875, -0.022735595703125, 0.051910400390625, 0.0085601806640625, 0.07257080078125, 0.046051025390625, -0.039154052734375, 0.024444580078125, -0.044097900390625, -0.0258331298828125, -0.0487060546875, -0.0190887451171875, 0.047454833984375, 0.07061767578125, -0.0012416839599609375, -0.00450897216796875, -0.0199127197265625, 0.0012998580932617188, -0.0465087890625, 0.060455322265625, -0.04156494140625, -0.0182647705078125, -0.036224365234375, -0.0034027099609375, 0.0213470458984375, -0.019378662109375, -0.03436279296875, 0.03533935546875, -0.0007281303405761719, 0.0313720703125, -0.0272674560546875, -0.010223388671875, 0.07843017578125, 0.08685302734375, -0.01142120361328125, 0.0310821533203125, 0.050811767578125, 0.0073699951171875, -0.0096435546875, -0.00020825862884521484, -0.0526123046875, -0.03271484375, 0.042755126953125, 0.01450347900390625, 0.00009620189666748047, 0.07421875, -0.012237548828125, 0.00768280029296875, 0.058807373046875, 0.0396728515625, -0.06817626953125, -0.020263671875, -0.012115478515625, -0.051727294921875, -0.023101806640625, -0.031829833984375, 0.039459228515625, 0.0099029541015625, 0.02618408203125, 0.060943603515625, -0.0222625732421875, 0.0051422119140625, 0.01242828369140625, -0.004726409912109375, -0.01346588134765625, 0.0972900390625, 0.030517578125, -0.0171356201171875, 0.0058746337890625, -0.00319671630859375, 0.032135009765625, -0.00494384765625, 0.00505828857421875, 0.01458740234375, 0.0005679130554199219, -0.00110626220703125, 0.046783447265625, -0.0316162109375, 0.005458831787109375, -0.0198516845703125, -0.006565093994140625, 0.0295562744140625, 0.03173828125, -0.0262451171875, -0.01076507568359375, 0.019012451171875, 0.01519012451171875, 0.05523681640625, -0.0140228271484375, -0.00774383544921875, -0.036285400390625, -0.0294342041015625, -0.0217132568359375, -0.02728271484375, 0.0006384849548339844, -0.009307861328125, 0.0279083251953125, 0.060333251953125, 0.0084991455078125, -0.055023193359375, 0.01898193359375, 0.00484466552734375, -0.00835418701171875, 0.00006192922592163086, 0.04425048828125, -0.0005631446838378906, -0.00035119056701660156, 0.032684326171875, -0.01078033447265625, -0.0379638671875, -0.023529052734375, -0.044769287109375, 0.0955810546875, 0.0095062255859375, 0.03900146484375, 0.0193939208984375, 0.0307464599609375, -0.03076171875, 0.01678466796875, -0.0260009765625, 0.02191162109375, -0.0248260498046875, 0.06475830078125, -0.054229736328125, -0.0206756591796875, 0.016448974609375, 0.052093505859375, -0.018951416015625, 0.0064544677734375, -0.0472412109375, -0.00945281982421875, 0.005672454833984375, -0.0009412765502929688, 0.0032596588134765625, 0.0709228515625, -0.0143585205078125, 0.018218994140625, -0.0009164810180664062, -0.0223388671875, 0.0218353271484375, -0.027069091796875, -0.043701171875, 0.017333984375, 0.0100555419921875, -0.01361083984375, 0.0017528533935546875, -0.00769805908203125, -0.081298828125, 0.024871826171875, 0.045623779296875, 0.004638671875, -0.01239776611328125, 0.053802490234375, 0.0290985107421875, -0.0279388427734375, 0.0170745849609375, -0.04656982421875, 0.05450439453125, 0.004085540771484375, 0.00498199462890625, -0.0175628662109375, 0.00982666015625, -0.016387939453125, 0.002872467041015625, -0.0027370452880859375, 0.061767578125, -0.041778564453125, -0.01180267333984375, 0.0279083251953125, 0.0190582275390625, 0.01157379150390625, 0.010223388671875, 0.035430908203125, 0.00490570068359375, -0.0062713623046875, -0.0084381103515625, 0.0033855438232421875, -0.008544921875, 0.01181793212890625, -0.005382537841796875, 0.025970458984375, -0.0014123916625976562, 0.003063201904296875, 0.0153045654296875, -0.01389312744140625, 0.0016241073608398438, -0.02374267578125, 0.01849365234375, 0.0267333984375, 0.034698486328125, 0.0181427001953125, -0.050872802734375, 0.0229034423828125, 0.0171356201171875, 0.061004638671875, 0.004970550537109375, 0.0310821533203125, -0.0272369384765625, -0.02862548828125, 0.001995086669921875, 0.01349639892578125, -0.021240234375, -0.00647735595703125, -0.015838623046875, -0.029541015625, 0.00574493408203125, 0.013885498046875, 0.03143310546875, 0.04241943359375, 0.044586181640625, 0.0310211181640625, 0.00766754150390625, 0.005268096923828125, 0.04217529296875, -0.0183258056640625, 0.051483154296875, -0.04083251953125, 0.0200958251953125, 0.00839996337890625, -0.01453399658203125, -0.03564453125, -0.01448822021484375, 0.051971435546875, -0.035552978515625, 0.02130126953125, -0.0106658935546875, -0.038330078125, -0.002368927001953125, -0.0435791015625, 0.040924072265625, -0.0216217041015625, 0.0340576171875, 0.0008392333984375, -0.02593994140625, -0.0198974609375, -0.0087127685546875, 0.04412841796875, 0.0229034423828125, 0.00646209716796875, 0.073486328125, -0.01134490966796875, 0.0011377334594726562, 0.0199432373046875, 0.00868988037109375, 0.00461578369140625, 0.037567138671875, 0.0163726806640625, 0.004627227783203125, -0.0109100341796875, 0.024871826171875, 0.041656494140625, -0.0262451171875, 0.096435546875, -0.06292724609375, -0.0049285888671875, 0.0192413330078125, -0.006519317626953125, 0.033355712890625, -0.00940704345703125, 0.040924072265625, 0.022186279296875, -0.00490570068359375, -0.037261962890625, -0.0296783447265625, 0.01447296142578125, 0.0311279296875, -0.05694580078125, 0.026275634765625, -0.004177093505859375, 0.00800323486328125, -0.0526123046875, 0.0181427001953125, -0.024505615234375, -0.04949951171875, -0.0284576416015625, 0.0251617431640625, -0.0008873939514160156, 0.0024433135986328125, -0.014068603515625, 0.0301361083984375, -0.047271728515625, -0.036102294921875, 0.00881195068359375, -0.045318603515625, -0.0271759033203125, 0.006076812744140625, 0.015625, 0.009307861328125, 0.0101165771484375, -0.022186279296875, 0.041595458984375, -0.0060577392578125, 0.0214080810546875, 0.01239776611328125, -0.01123809814453125, -0.021453857421875, -0.030426025390625, -0.01271820068359375, -0.043701171875, -0.006195068359375, -0.000518798828125, -0.0189208984375, 0.0106048583984375, 0.0023593902587890625, -0.0301055908203125, 0.00682830810546875, 0.0015621185302734375, 0.00989532470703125, 0.0243988037109375, -0.037872314453125, -0.01806640625, -0.0294647216796875, 0.034149169921875, 0.0188751220703125, -0.042205810546875, 0.031890869140625, -0.03656005859375, -0.002414703369140625, 0.007114410400390625, 0.02947998046875, -0.00872802734375, 0.00939178466796875, -0.053558349609375, 0.01190948486328125, -0.007755279541015625, 0.00452423095703125, 0.025238037109375, -0.000002086162567138672, 0.035858154296875, -0.0024089813232421875, -0.0113067626953125, 0.007415771484375, -0.001232147216796875, 0.055450439453125, -0.059234619140625, -0.0020427703857421875, 0.037139892578125, -0.039093017578125, -0.0276031494140625, -0.035675048828125, 0.016143798828125, -0.0794677734375, -0.01123809814453125, 0.04974365234375, -0.042572021484375, -0.002918243408203125, -0.050628662109375, -0.11224365234375, 0.0131988525390625, 0.014404296875, -0.0672607421875, -0.016021728515625, -0.015869140625, -0.03271484375, 0.07080078125, -0.0099029541015625, -0.00970458984375, 0.0117950439453125, 0.054473876953125, 0.018646240234375, 0.01392364501953125, 0.0394287109375, 0.0014600753784179688, -0.0206298828125, 0.006366729736328125, -0.0011997222900390625, -0.015838623046875, -0.017303466796875, -0.017852783203125, 0.032440185546875, 0.03875732421875, -0.003894805908203125, 0.00960540771484375, 0.04241943359375, -0.01207733154296875, -0.011138916015625, -0.04034423828125, -0.035736083984375, -0.0209503173828125, 0.0960693359375, 0.041656494140625, 0.03955078125, -0.03192138671875, -0.046112060546875, -0.06353759765625, -0.0601806640625, 0.0039520263671875, 0.058807373046875, -0.1163330078125, 0.033843994140625, 0.081298828125, -0.035888671875, -0.00640106201171875, -0.01245880126953125, -0.052581787109375, 0.0031757354736328125, -0.0094451904296875, -0.003833770751953125, -0.0021457672119140625, -0.030364990234375, 0.0631103515625, -0.06036376953125, -0.031097412109375, 0.00782012939453125, 0.0291290283203125, 0.0002791881561279297, -0.0194091796875, 0.0148773193359375, 0.017669677734375, -0.00469970703125, 0.018157958984375, 0.01442718505859375, 0.01279449462890625, -0.0127410888671875, -0.0225982666015625, -0.0079803466796875, 0.022613525390625, 0.0018663406372070312, 0.0066680908203125, -0.0290069580078125, 0.057952880859375, 0.00003314018249511719, 0.08111572265625, -0.00023055076599121094, 0.046630859375, -0.0293731689453125, 0.0511474609375, -0.0030117034912109375, -0.01515960693359375, 0.0136871337890625, -0.01084136962890625, -0.0109100341796875, 0.0102081298828125, -0.0030155181884765625, -0.03369140625, -0.0001404285430908203, -0.07080078125, -0.00020635128021240234, -0.0024547576904296875 ]
0cfc51ddeaa02bf9afe6c4332f3a2ced184af9e6
Wordpress Stackexchange Q: Changing the post date and time with function What function can be used to update a post's post date and time to the current date & time? A: Call wp_update_post() with a special value for 'post_date' and 'post_date_gmt': $time = current_time('mysql'); wp_update_post( array ( 'ID' => 123, // ID of the post to update 'post_date' => $time, 'post_date_gmt' => get_gmt_from_date( $time ) ) );
Q: Changing the post date and time with function What function can be used to update a post's post date and time to the current date & time? A: Call wp_update_post() with a special value for 'post_date' and 'post_date_gmt': $time = current_time('mysql'); wp_update_post( array ( 'ID' => 123, // ID of the post to update 'post_date' => $time, 'post_date_gmt' => get_gmt_from_date( $time ) ) ); A: The selected answer is perfect for modifying the "publish date", but in my case I wanted to change the "last modified" date (post_modified and post_modified_gmt in the db). The following is sufficient for that: wp_update_post( [ 'ID' => $id ] );
wordpress
{ "language": "en", "length": 107, "provenance": "stackexchange_00019.jsonl.gz:431737", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/97227" }
[ 0.06982421875, -0.0050048828125, -0.01605224609375, -0.03118896484375, 0.037811279296875, -0.04644775390625, 0.052276611328125, -0.0120849609375, -0.007564544677734375, 0.0102996826171875, -0.002712249755859375, -0.01432037353515625, -0.0189361572265625, -0.03302001953125, -0.02105712890625, -0.028594970703125, 0.04803466796875, -0.043792724609375, 0.01374053955078125, -0.0169677734375, 0.0165252685546875, 0.0211029052734375, 0.029205322265625, 0.09564208984375, 0.047576904296875, -0.0034542083740234375, 0.0227508544921875, -0.0095977783203125, 0.051177978515625, 0.0108642578125, 0.035247802734375, -0.04150390625, 0.0176849365234375, 0.0240478515625, 0.0007929801940917969, 0.034759521484375, 0.0251922607421875, -0.0010709762573242188, 0.001232147216796875, 0.0626220703125, 0.0247344970703125, -0.01549530029296875, -0.0245513916015625, 0.045166015625, -0.037841796875, -0.042022705078125, 0.0268096923828125, -0.0161590576171875, 0.02276611328125, 0.01251220703125, 0.00975799560546875, 0.00818634033203125, 0.021759033203125, -0.0163421630859375, -0.014556884765625, -0.0211639404296875, -0.01473236083984375, 0.0435791015625, 0.0584716796875, -0.0270233154296875, -0.055328369140625, -0.035400390625, 0.0333251953125, -0.0120697021484375, 0.004611968994140625, 0.013427734375, 0.07720947265625, 0.00881195068359375, -0.094482421875, -0.00481414794921875, 0.073486328125, -0.029937744140625, -0.0084991455078125, 0.0021514892578125, -0.006443023681640625, -0.01458740234375, 0.0084075927734375, -0.0037689208984375, 0.003582000732421875, 0.0306549072265625, 0.01015472412109375, 0.0236358642578125, 0.00832366943359375, -0.0479736328125, 0.01558685302734375, -0.023345947265625, -0.0186004638671875, -0.01285552978515625, -0.0732421875, -0.056854248046875, -0.04278564453125, -0.00396728515625, -0.09088134765625, -0.046905517578125, -0.016845703125, -0.0273284912109375, 0.010589599609375, 0.05120849609375, -0.046478271484375, -0.027313232421875, -0.0152587890625, 0.0006709098815917969, -0.054779052734375, -0.0022125244140625, -0.02197265625, 0.03057861328125, 0.05084228515625, 0.0367431640625, -0.0001518726348876953, 0.0042877197265625, -0.0214385986328125, 0.014739990234375, -0.01367950439453125, -0.01346588134765625, -0.03515625, 0.0070343017578125, -0.034576416015625, -0.00397491455078125, -0.007659912109375, -0.0037975311279296875, 0.01210784912109375, 0.03765869140625, 0.0031719207763671875, -0.058929443359375, 0.0283050537109375, -0.008880615234375, -0.053070068359375, 0.0005974769592285156, 0.01383209228515625, 0.015899658203125, -0.042633056640625, -0.00031256675720214844, 0.085693359375, 0.042816162109375, 0.026702880859375, -0.02459716796875, 0.026947021484375, -0.0283203125, -0.005840301513671875, 0.0215911865234375, 0.0013265609741210938, -0.04534912109375, -0.01355743408203125, -0.0165557861328125, 0.019195556640625, 0.011016845703125, 0.017913818359375, 0.01488494873046875, 0.005615234375, -0.036712646484375, 0.0178680419921875, -0.00875091552734375, 0.00044083595275878906, 0.026153564453125, 0.0496826171875, -0.01934814453125, 0.047393798828125, -0.02783203125, 0.0270843505859375, -0.00672149658203125, 0.018402099609375, -0.00457763671875, 0.019775390625, 0.019805908203125, -0.0298004150390625, 0.0228729248046875, -0.04266357421875, -0.01282501220703125, 0.03009033203125, -0.0071258544921875, 0.0251312255859375, -0.0171051025390625, 0.03387451171875, 0.00907135009765625, -0.00489044189453125, 0.0200958251953125, -0.0243988037109375, -0.034576416015625, 0.025299072265625, 0.0390625, -0.0029697418212890625, -0.0220489501953125, -0.00919342041015625, 0.022735595703125, 0.006404876708984375, -0.0226593017578125, 0.020355224609375, 0.01348876953125, 0.002521514892578125, 0.0106658935546875, 0.0167388916015625, -0.0037250518798828125, -0.037567138671875, 0.0270843505859375, 0.017425537109375, 0.0054168701171875, -0.07049560546875, -0.00830078125, -0.0172119140625, -0.0435791015625, -0.0264892578125, 0.038055419921875, -0.0531005859375, 0.04541015625, -0.055816650390625, 0.0168609619140625, -0.02935791015625, 0.03558349609375, 0.01329803466796875, 0.012908935546875, -0.007720947265625, -0.01071929931640625, 0.01033782958984375, -0.06402587890625, -0.042022705078125, 0.024627685546875, -0.028045654296875, 0.0421142578125, -0.0164337158203125, 0.039825439453125, -0.043487548828125, -0.046051025390625, -0.028533935546875, -0.0149078369140625, 0.01025390625, -0.0115814208984375, -0.0004210472106933594, -0.006298065185546875, 0.0072174072265625, 0.0228424072265625, -0.038970947265625, -0.010498046875, -0.020843505859375, -0.024444580078125, -0.040863037109375, -0.02130126953125, -0.0160675048828125, -0.042236328125, 0.01030731201171875, 0.0614013671875, 0.0189208984375, 0.0191802978515625, 0.0188446044921875, 0.042999267578125, 0.05621337890625, 0.01806640625, 0.03411865234375, 0.00714874267578125, 0.01546478271484375, 0.03399658203125, -0.017059326171875, -0.0164642333984375, 0.0208740234375, -0.08502197265625, 0.015472412109375, 0.049468994140625, -0.01224517822265625, -0.00035262107849121094, -0.01447296142578125, 0.0021533966064453125, -0.0096282958984375, -0.0643310546875, -0.0079803466796875, -0.03070068359375, 0.0517578125, -0.0179443359375, 0.0408935546875, 0.01605224609375, -0.0173797607421875, -0.005458831787109375, 0.0133056640625, -0.0223388671875, 0.0082550048828125, 0.03009033203125, -0.07208251953125, 0.0276947021484375, -0.003742218017578125, 0.0093536376953125, -0.00392913818359375, 0.002872467041015625, -0.0230560302734375, -0.0157012939453125, -0.004058837890625, 0.00482177734375, -0.0077056884765625, -0.0174407958984375, 0.04937744140625, 0.02496337890625, 0.0247344970703125, 0.0009822845458984375, 0.048980712890625, -0.02606201171875, -0.03497314453125, 0.055084228515625, -0.0287933349609375, -0.043548583984375, -0.0389404296875, -0.01044464111328125, 0.00970458984375, -0.025177001953125, -0.0171966552734375, 0.03656005859375, 0.0160064697265625, -0.016815185546875, 0.020416259765625, 0.01715087890625, 0.02691650390625, 0.019561767578125, 0.0120697021484375, 0.0182952880859375, -0.0247802734375, 0.02825927734375, -0.0007266998291015625, 0.0330810546875, -0.057403564453125, -0.066162109375, -0.045257568359375, -0.01308441162109375, -0.12939453125, -0.076904296875, -0.069091796875, -0.0799560546875, -0.0005602836608886719, -0.0047760009765625, -0.032379150390625, 0.03448486328125, 0.006977081298828125, 0.0266571044921875, 0.00521087646484375, 0.008941650390625, -0.037139892578125, -0.0181427001953125, -0.059051513671875, -0.0262298583984375, 0.00492095947265625, 0.024200439453125, -0.005962371826171875, 0.0814208984375, 0.0025577545166015625, -0.091796875, -0.06304931640625, 0.035491943359375, -0.038482666015625, 0.0009255409240722656, 0.0335693359375, -0.02178955078125, 0.0172271728515625, 0.0043792724609375, 0.03253173828125, 0.0247039794921875, -0.043670654296875, -0.02618408203125, 0.00368499755859375, -0.0015516281127929688, 0.02056884765625, -0.013153076171875, -0.01047515869140625, 0.038238525390625, 0.0246734619140625, -0.0272979736328125, 0.003231048583984375, -0.02984619140625, -0.036895751953125, -0.0204620361328125, 0.0272216796875, -0.0068817138671875, -0.044036865234375, 0.007434844970703125, -0.00601959228515625, 0.00260162353515625, 0.06024169921875, -0.0163726806640625, 0.0199127197265625, -0.020751953125, -0.035797119140625, -0.044158935546875, -0.038299560546875, -0.047332763671875, 0.05145263671875, -0.0168609619140625, -0.0018091201782226562, -0.026611328125, 0.017181396484375, -0.03192138671875, -0.06854248046875, 0.052001953125, -0.0183868408203125, -0.005146026611328125, -0.035003662109375, -0.027801513671875, -0.000896453857421875, 0.09552001953125, -0.0243988037109375, -0.01549530029296875, -0.000728607177734375, 0.0079193115234375, -0.03887939453125, -0.0195159912109375, -0.03558349609375, -0.0022182464599609375, -0.0204010009765625, 0.0048370361328125, -0.0216827392578125, 0.022857666015625, -0.06134033203125, 0.0654296875, -0.045135498046875, -0.0087127685546875, 0.041015625, 0.014007568359375, -0.0137481689453125, 0.040740966796875, -0.016693115234375, 0.018096923828125, -0.04443359375, 0.02032470703125, -0.05584716796875, -0.017120361328125, -0.0023784637451171875, 0.047393798828125, 0.037567138671875, -0.076171875, -0.0107421875, 0.01403045654296875, 0.035186767578125, 0.015716552734375, -0.0093231201171875, -0.031829833984375, 0.0275726318359375, 0.0164794921875, 0.02032470703125, 0.007167816162109375, -0.0117950439453125, -0.014801025390625, -0.0016889572143554688, 0.017303466796875, -0.0166168212890625, 0.006397247314453125, 0.01242828369140625, -0.0182037353515625, -0.00214385986328125, -0.006023406982421875, -0.0018091201782226562, 0.04034423828125, -0.026947021484375, 0.0202789306640625, -0.019561767578125, -0.03521728515625, 0.0999755859375, 0.0011224746704101562, -0.0204620361328125, -0.0097808837890625, 0.07110595703125, 0.00405120849609375, -0.046112060546875, -0.06256103515625, -0.002231597900390625, 0.0450439453125, 0.024932861328125, 0.0158538818359375, 0.00269317626953125, -0.03369140625, 0.040435791015625, 0.00896453857421875, -0.021240234375, -0.031890869140625, 0.04815673828125, 0.0189208984375, 0.00414276123046875, -0.01329803466796875, -0.036407470703125, 0.057098388671875, -0.0169677734375, -0.0200347900390625, 0.01678466796875, -0.00864410400390625, 0.0216064453125, -0.00852203369140625, 0.0208282470703125, -0.02581787109375, -0.0244140625, 0.0207977294921875, 0.005191802978515625, -0.0203857421875, 0.021453857421875, -0.00916290283203125, -0.0197906494140625, -0.0291748046875, -0.0033473968505859375, -0.0379638671875, -0.021270751953125, -0.0135345458984375, 0.0204925537109375, -0.0065765380859375, 0.0029201507568359375, -0.0218963623046875, -0.002643585205078125, 0.06805419921875, 0.0199737548828125, -0.0298919677734375, 0.0167388916015625, 0.00909423828125, -0.001758575439453125, 0.00888824462890625, 0.00021314620971679688, 0.028472900390625, 0.036163330078125, -0.01555633544921875, -0.02825927734375, -0.00699615478515625, 0.024444580078125, -0.04180908203125, 0.007625579833984375, 0.04095458984375, -0.027984619140625, 0.038116455078125, 0.041259765625, 0.0550537109375, 0.017425537109375, -0.05108642578125, 0.06744384765625, 0.040771484375, 0.02703857421875, 0.0130615234375, -0.0084075927734375, -0.016876220703125, -0.00457000732421875, -0.049774169921875, -0.0062103271484375, -0.01300048828125, 0.01605224609375, -0.004802703857421875, -0.0159759521484375, 0.017578125, 0.0088043212890625, 0.00972747802734375, -0.01415252685546875, 0.00946044921875, 0.06536865234375, -0.010223388671875, 0.00839996337890625, 0.0220489501953125, -0.010894775390625, 0.02728271484375, 0.0100250244140625, 0.0198211669921875, -0.0097808837890625, 0.059814453125, -0.06787109375, 0.06689453125, -0.047119140625, -0.051025390625, -0.01129150390625, -0.016754150390625, -0.006656646728515625, 0.03399658203125, 0.003131866455078125, -0.0252532958984375, -0.021636962890625, 0.036590576171875, -0.0030956268310546875, 0.0017442703247070312, -0.0176544189453125, 0.00637054443359375, -0.0156707763671875, -0.01064300537109375, 0.07080078125, 0.0208282470703125, -0.0313720703125, -0.021026611328125, -0.0577392578125, -0.007434844970703125, -0.059051513671875, -0.038726806640625, -0.0404052734375, 0.01087188720703125, 0.03472900390625, 0.038055419921875, -0.00107574462890625, -0.03729248046875, 0.0075225830078125, -0.0131378173828125, 0.0136871337890625, 0.06292724609375, 0.01812744140625, 0.056121826171875, 0.0174102783203125, 0.059722900390625, 0.048095703125, 0.035430908203125, -0.033935546875, -0.0394287109375, 0.00177001953125, -0.01751708984375, -0.01016998291015625, 0.01282501220703125, -0.0022487640380859375, -0.0269775390625, -0.01129150390625, -0.004253387451171875, 0.016021728515625, -0.0312347412109375, -0.0080108642578125, -0.045867919921875, 0.05438232421875, -0.07342529296875, 0.0245361328125, -0.03570556640625, -0.0026092529296875, 0.024444580078125, -0.016876220703125, 0.0400390625, -0.0092620849609375, -0.035186767578125, -0.007022857666015625, 0.005428314208984375, 0.00687408447265625, 0.020599365234375, 0.06884765625, -0.0086212158203125, 0.03704833984375, 0.028839111328125, 0.0207061767578125, 0.0406494140625, -0.00841522216796875, -0.041015625, 0.006847381591796875, 0.0404052734375, 0.005992889404296875, -0.0263519287109375, 0.0221405029296875, -0.0157928466796875, 0.0391845703125, 0.025238037109375, 0.0711669921875, -0.055023193359375, 0.033172607421875, 0.0303802490234375, -0.0186920166015625, 0.057464599609375, 0.0008063316345214844, -0.004932403564453125, 0.01374053955078125, 0.01702880859375, -0.031341552734375, -0.0264892578125, 0.0184478759765625, 0.00423431396484375, -0.013946533203125, -0.0271148681640625, 0.0545654296875, 0.023406982421875, -0.048309326171875, 0.033355712890625, 0.037841796875, 0.0018796920776367188, -0.035003662109375, -0.002536773681640625, 0.00832366943359375, -0.016998291015625, -0.07977294921875, 0.0215911865234375, -0.0232086181640625, 0.01367950439453125, -0.004425048828125, 0.0222320556640625, 0.07318115234375, 0.047271728515625, 0.0099029541015625, -0.0264739990234375, 0.0286865234375, 0.0293731689453125, -0.0284576416015625, -0.0341796875, 0.0240631103515625, 0.041778564453125, -0.0171966552734375, 0.0301971435546875, -0.0108642578125, -0.039886474609375, 0.0041351318359375, -0.0204925537109375, 0.06866455078125, -0.050018310546875, -0.01153564453125, 0.0167388916015625, -0.0078125, -0.004261016845703125, -0.005184173583984375, 0.0014181137084960938, -0.027740478515625, 0.00548553466796875, -0.005680084228515625, -0.00353240966796875, -0.003582000732421875, -0.006969451904296875, -0.04705810546875, 0.10980224609375, 0.007122039794921875, 0.00836181640625, -0.0011529922485351562, 0.052398681640625, -0.03289794921875, 0.0296630859375, -0.029693603515625, 0.04229736328125, -0.022674560546875, 0.0015888214111328125, -0.038421630859375, 0.0191497802734375, -0.02557373046875, -0.0145721435546875, 0.0007214546203613281, 0.0013895034790039062, -0.014129638671875, -0.0017852783203125, 0.048675537109375, 0.0654296875, 0.033203125, -0.009185791015625, -0.0242767333984375, 0.0021648406982421875, 0.0048675537109375, -0.034271240234375, 0.0169677734375, -0.00927734375, -0.0294952392578125, 0.01306915283203125, 0.01044464111328125, 0.0004153251647949219, -0.01446533203125, -0.0150299072265625, -0.010162353515625, -0.00531005859375, -0.0019321441650390625, 0.00421142578125, -0.01329803466796875, 0.0416259765625, 0.0230255126953125, -0.05743408203125, -0.0025157928466796875, -0.0374755859375, 0.045440673828125, -0.01080322265625, 0.0024852752685546875, 0.01541900634765625, -0.0006022453308105469, 0.0196380615234375, 0.020263671875, -0.00789642333984375, 0.017181396484375, 0.02020263671875, 0.060760498046875, 0.032470703125, 0.01959228515625, -0.0286102294921875, 0.01861572265625, 0.05096435546875, 0.0751953125, -0.052398681640625, 0.039154052734375, 0.0106353759765625, -0.0080413818359375, -0.01251983642578125, -0.0699462890625, -0.0127105712890625, -0.03436279296875, -0.047943115234375, -0.0010442733764648438, -0.01007843017578125, 0.044403076171875, 0.0148468017578125, 0.0290374755859375, 0.042083740234375, -0.053375244140625, -0.0100250244140625, -0.0538330078125, 0.016265869140625, 0.01483154296875, 0.057373046875, 0.005123138427734375, 0.07440185546875, -0.00699615478515625, -0.0138397216796875, 0.0181732177734375, 0.0206451416015625, 0.0164947509765625, -0.0225830078125, 0.01837158203125, -0.00989532470703125, -0.0237274169921875, 0.00557708740234375, 0.01715087890625, 0.0482177734375, 0.06494140625, 0.041015625, -0.04193115234375, -0.01410675048828125, 0.0308990478515625, -0.0275421142578125, -0.0205841064453125, -0.00988006591796875, -0.007106781005859375, -0.0029582977294921875, -0.008270263671875, 0.002620697021484375, 0.04986572265625, -0.0095062255859375, -0.037628173828125, 0.046630859375, -0.004657745361328125, 0.016143798828125, 0.05987548828125, -0.005100250244140625, 0.042816162109375, -0.006504058837890625, 0.019622802734375, 0.02471923828125, -0.0212860107421875, -0.047760009765625, 0.004978179931640625, 0.02276611328125, -0.014495849609375, 0.01461029052734375, -0.01319122314453125, 0.00273895263671875, 0.017608642578125, -0.00534820556640625, -0.010498046875, 0.0011892318725585938, 0.035400390625, -0.0007257461547851562, -0.045806884765625, -0.034027099609375, -0.01166534423828125, 0.04437255859375, 0.009307861328125, -0.0011615753173828125, 0.002803802490234375, 0.030059814453125, 0.0010099411010742188, 0.00832366943359375, -0.02703857421875, -0.0010042190551757812, 0.0263824462890625, -0.00716400146484375, 0.0032444000244140625, -0.00356292724609375, -0.0010528564453125, 0.0380859375, 0.047760009765625, -0.00980377197265625, 0.038055419921875, -0.029144287109375, 0.0203857421875, -0.0248870849609375, -0.01306915283203125, -0.0069122314453125, 0.024810791015625, 0.07745361328125, 0.00659942626953125, 0.01910400390625, -0.005992889404296875, 0.01140594482421875, 0.00682830810546875, 0.02435302734375, -0.0036029815673828125, 0.033447265625, -0.0124053955078125, 0.042877197265625, 0.031707763671875, -0.0472412109375, -0.007080078125, -0.0167999267578125, -0.02117919921875, -0.0181121826171875, 0.0167083740234375, -0.00042247772216796875, -0.0185089111328125, 0.01415252685546875, -0.0134429931640625, 0.001026153564453125, -0.008148193359375, -0.0303802490234375, -0.01190185546875, 0.01099395751953125, -0.015777587890625, -0.044952392578125, 0.01293182373046875, -0.0227813720703125, -0.039276123046875, 0.005077362060546875, 0.0179443359375, -0.03082275390625, -0.035003662109375, -0.059417724609375, -0.004497528076171875, -0.01503753662109375, -0.030059814453125, -0.00839996337890625, 0.01062774658203125, -0.00860595703125, 0.004940032958984375, -0.03253173828125, -0.05810546875, 0.00942230224609375, 0.045745849609375, 0.006832122802734375, -0.03082275390625, -0.051422119140625, 0.01070404052734375, -0.053619384765625, 0.0133056640625, 0.0231170654296875, -0.01568603515625, -0.024200439453125, 0.037078857421875, 0.014373779296875, 0.07489013671875, -0.0193328857421875, -0.03167724609375, 0.045501708984375, -0.017608642578125, 0.0012454986572265625, -0.044464111328125, -0.00984954833984375, -0.061004638671875, 0.024871826171875, 0.00377655029296875, -0.008697509765625, 0.0081024169921875, -0.025115966796875, -0.0491943359375, 0.03125, -0.0030460357666015625, -0.0310516357421875, -0.053192138671875, -0.0031147003173828125, -0.0073699951171875, 0.04345703125, -0.0067596435546875, -0.043731689453125, -0.038970947265625, 0.0215911865234375, 0.010833740234375, 0.058197021484375, 0.0087127685546875, -0.0036983489990234375, -0.02703857421875, -0.0119476318359375, -0.043243408203125, 0.0212249755859375, 0.0169830322265625, -0.0038166046142578125, 0.004268646240234375, 0.0266571044921875, -0.039764404296875, -0.03582763671875, -0.0130157470703125, -0.01096343994140625, -0.02349853515625, -0.04583740234375, -0.04205322265625, -0.0008158683776855469, 0.087890625, 0.078857421875, 0.02801513671875, -0.056915283203125, 0.00899505615234375, -0.0484619140625, -0.025390625, -0.01251983642578125, 0.0019989013671875, -0.041046142578125, -0.005382537841796875, 0.023712158203125, 0.0017175674438476562, -0.0024585723876953125, -0.0017347335815429688, 0.0015459060668945312, -0.01415252685546875, 0.018310546875, -0.0384521484375, 0.0258331298828125, 0.053741455078125, 0.0209197998046875, -0.026885986328125, 0.0255279541015625, -0.020477294921875, -0.01390838623046875, 0.02618408203125, -0.00429534912109375, 0.00621795654296875, 0.041412353515625, 0.00753021240234375, -0.032135009765625, 0.042083740234375, 0.0023174285888671875, 0.041778564453125, -0.002349853515625, -0.001995086669921875, 0.0007348060607910156, 0.00048232078552246094, -0.01210784912109375, -0.014892578125, 0.0248260498046875, -0.009796142578125, 0.03955078125, -0.00458526611328125, 0.0194549560546875, -0.00893402099609375, 0.0257568359375, -0.03369140625, -0.00681304931640625, -0.0018224716186523438, -0.032958984375, 0.0093841552734375, -0.005584716796875, -0.000039696693420410156, -0.001117706298828125, 0.0011587142944335938, -0.05364990234375, -0.01230621337890625, 0.007656097412109375 ]
cf8b185c15a50e34048a77a0d50453a0a012dc53
Wordpress Stackexchange Q: Trouble understanding apply_filters() In apply_filters() apply_filters( $tag, $value, $var ... ); I'm having trouble wrapping my head around the $value and $var. I read the codex and it sounds like the $value can be modified, $var not, but I haven't found any examples of this in the wild. It seems to be used as a way to pass a variable. In which case, what's the difference between that and the $var? A: Try to see the function with better names: apply_filters( $filter_name, // used for add_filter( $filter_name, 'callback' ); $value_to_change, // the only variable whose value you can change $context_1, // context $context_2 // more context ); So when that function is called as: // wp-login.php line 94 apply_filters( 'login_body_class', $classes, $action ); You can use … add_filter( 'login_body_class', 'function_to_change_login_body_class', 10, 2 ); … and get two variables passed to that function. You return the first, the second provides just more context: function function_to_change_login_body_class( $classes, $action ) { if ( 'login' === $action ) $classes[] = 'foo'; if ( 'postpass' === $action ) $classes[] = 'bar'; return $classes; } The additional variables are there to make your decisions easier, not to change those too.
Q: Trouble understanding apply_filters() In apply_filters() apply_filters( $tag, $value, $var ... ); I'm having trouble wrapping my head around the $value and $var. I read the codex and it sounds like the $value can be modified, $var not, but I haven't found any examples of this in the wild. It seems to be used as a way to pass a variable. In which case, what's the difference between that and the $var? A: Try to see the function with better names: apply_filters( $filter_name, // used for add_filter( $filter_name, 'callback' ); $value_to_change, // the only variable whose value you can change $context_1, // context $context_2 // more context ); So when that function is called as: // wp-login.php line 94 apply_filters( 'login_body_class', $classes, $action ); You can use … add_filter( 'login_body_class', 'function_to_change_login_body_class', 10, 2 ); … and get two variables passed to that function. You return the first, the second provides just more context: function function_to_change_login_body_class( $classes, $action ) { if ( 'login' === $action ) $classes[] = 'foo'; if ( 'postpass' === $action ) $classes[] = 'bar'; return $classes; } The additional variables are there to make your decisions easier, not to change those too. A: What are Filters? Filters are functions that WordPress passes data through, at certain points in execution, just before taking some action with the data (such as adding it to the database or sending it to the browser screen). Filters sit between the database and the browser (when WordPress is generating pages), and between the browser and the database (when WordPress is adding new posts and comments to the database); most input and output in WordPress passes through at least one filter. WordPress does some filtering by default, and your plugin can add its own filtering. Hooking into a Filter In order to let users change some specific data (a value, the output of a function etc.) filter hooks are provided via apply_filters functions. These filter hooks include the name (or tag) of the filter and at least the function name that is to be used to filter (i.e., alter in some way) the data. To alter the title of a post, you can use the the_title filter hook, which is defined as follows: apply_filters( 'the_title', $title, $id ); This means, the filter has the tag/name the_title, the first parameter $title is the data that is to be changed (i.e, the post title) and the second parameter $id is extra information (in this case the post ID). To display the title of every post in UPPERCASE, for example, you can use the following line: add_filter('the_title', 'strtoupper'); If we take a look at the add_filter function, we see it is defined as follows: add_filter( $tag, $function_to_add, $priority, $accepted_args ); We only specified the first and second (required) parameter, while the third and fourth paramter is set to its respective default value (i.e., 10 and 1). A More Complex Filter If you want to filter only a certain post, you can use the extra information (in case of this filter: the ID). In order to do so, you have to specify the number of parameters (which is 2 in this case), and in order to do this again, you have to specify the priority parameter (which comes before the number of arguments). Suppose we want to affect only the title of the post with the ID 42, then it looks like this: add_filter('the_title', 'my_strtoupper', 10, 2); function my_strtoupper($title, $id) { if (42 === $id) return strtoupper($title); return $title; } // function my_strtoupper In this case, we have to specify all four available parameters. What Parameters Do I Have? To identify the (number of) available parameters of a certain filter, you have to look up where it is defined (in this case: here). References: * *Plugin API: Filters *apply_filters function *add_filter function
wordpress
{ "language": "en", "length": 634, "provenance": "stackexchange_00019.jsonl.gz:431778", "question_score": "21", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/97356" }
[ 0.024200439453125, 0.00429534912109375, -0.004192352294921875, -0.03350830078125, 0.0243682861328125, -0.03546142578125, 0.028564453125, 0.0011472702026367188, 0.016632080078125, 0.00908660888671875, -0.01441192626953125, -0.01067352294921875, -0.01200103759765625, -0.0278778076171875, -0.002376556396484375, -0.031951904296875, 0.006481170654296875, -0.007396697998046875, -0.00316619873046875, -0.02545166015625, 0.00628662109375, -0.032623291015625, 0.005329132080078125, 0.01215362548828125, 0.0277252197265625, -0.034210205078125, 0.0389404296875, -0.01471710205078125, 0.028106689453125, 0.00445556640625, 0.0173492431640625, -0.03369140625, 0.02618408203125, 0.02813720703125, -0.0362548828125, 0.042205810546875, -0.001796722412109375, 0.015533447265625, 0.00658416748046875, 0.0181884765625, 0.0270233154296875, -0.01474761962890625, 0.011627197265625, 0.0007915496826171875, -0.00429534912109375, -0.00728607177734375, 0.021942138671875, -0.032470703125, 0.0224151611328125, -0.006343841552734375, -0.01494598388671875, 0.04241943359375, -0.00585174560546875, -0.01082611083984375, -0.01213836669921875, 0.0142059326171875, -0.0264434814453125, -0.01800537109375, 0.0192718505859375, 0.051513671875, 0.00988006591796875, -0.004161834716796875, -0.00005614757537841797, -0.0435791015625, 0.0046539306640625, -0.01019287109375, -0.0006518363952636719, 0.028594970703125, -0.015777587890625, -0.0084075927734375, 0.0189666748046875, -0.01256561279296875, -0.01312255859375, -0.0298919677734375, -0.009368896484375, 0.00780487060546875, 0.00983428955078125, -0.0128021240234375, -0.003627777099609375, 0.007781982421875, 0.0171356201171875, 0.0029430389404296875, -0.01251220703125, 0.028472900390625, -0.033416748046875, 0.0303192138671875, -0.01190185546875, -0.02532958984375, -0.01806640625, -0.031494140625, -0.01309967041015625, -0.03411865234375, -0.031829833984375, -0.009735107421875, 0.00107574462890625, -0.06317138671875, -0.0023441314697265625, 0.0181884765625, 0.02056884765625, 0.0196990966796875, 0.00980377197265625, -0.040313720703125, 0.0176849365234375, -0.033966064453125, -0.01129913330078125, 0.06243896484375, 0.047576904296875, 0.09002685546875, 0.020111083984375, 0.0009775161743164062, 0.006946563720703125, -0.01380157470703125, -0.0237579345703125, -0.0015583038330078125, -0.04248046875, -0.01141357421875, -0.04534912109375, -0.043487548828125, -0.02685546875, -0.040863037109375, -0.023101806640625, -0.00601959228515625, 0.0628662109375, -0.03009033203125, 0.0027980804443359375, -0.0048828125, -0.031982421875, -0.0416259765625, 0.0222015380859375, 0.026824951171875, -0.0189666748046875, 0.0028400421142578125, 0.01425933837890625, -0.007648468017578125, -0.020599365234375, -0.01412200927734375, 0.041046142578125, -0.013275146484375, 0.0022983551025390625, 0.04205322265625, -0.01690673828125, -0.0458984375, 0.00023615360260009766, -0.0013332366943359375, -0.0235748291015625, 0.0031223297119140625, 0.03314208984375, 0.02880859375, -0.048065185546875, -0.077392578125, 0.07391357421875, -0.03106689453125, 0.0009388923645019531, 0.03424072265625, 0.0016279220581054688, 0.07342529296875, -0.0019893646240234375, 0.0325927734375, -0.061309814453125, 0.0256500244140625, 0.0184478759765625, -0.00788116455078125, 0.0026264190673828125, -0.013214111328125, 0.006610870361328125, 0.0023593902587890625, -0.037322998046875, 0.00690460205078125, 0.021697998046875, -0.01021575927734375, 0.029052734375, 0.040802001953125, 0.032135009765625, 0.030487060546875, 0.020538330078125, -0.00930023193359375, -0.0340576171875, 0.062286376953125, 0.032440185546875, -0.06988525390625, -0.041595458984375, -0.06231689453125, 0.04193115234375, -0.0118865966796875, -0.0228271484375, -0.011993408203125, 0.0077972412109375, -0.00453948974609375, 0.003963470458984375, 0.01065826416015625, 0.023101806640625, 0.0139312744140625, -0.0277099609375, -0.01186370849609375, -0.0024662017822265625, 0.0069122314453125, 0.007297515869140625, 0.02630615234375, -0.00783538818359375, 0.0038814544677734375, 0.08160400390625, -0.00356292724609375, 0.025543212890625, -0.035552978515625, -0.03802490234375, -0.0058746337890625, -0.017791748046875, 0.032073974609375, -0.023284912109375, 0.027496337890625, 0.01471710205078125, 0.0231781005859375, -0.0165863037109375, -0.0174713134765625, 0.0014963150024414062, 0.019744873046875, -0.01129913330078125, 0.01605224609375, -0.034820556640625, 0.011627197265625, -0.040679931640625, -0.032318115234375, -0.04266357421875, 0.028717041015625, 0.0421142578125, 0.00936126708984375, -0.014678955078125, -0.01021575927734375, 0.024505615234375, 0.0131072998046875, 0.01490020751953125, 0.0274200439453125, 0.0123291015625, 0.0156707763671875, -0.0462646484375, -0.03741455078125, -0.052093505859375, -0.057586669921875, -0.004604339599609375, 0.0638427734375, 0.039337158203125, 0.01708984375, -0.037139892578125, -0.0538330078125, 0.059661865234375, 0.0106353759765625, 0.0127410888671875, -0.032958984375, 0.0014562606811523438, 0.004467010498046875, -0.0191650390625, -0.020050048828125, 0.035125732421875, -0.08026123046875, 0.02838134765625, 0.023040771484375, -0.0291748046875, -0.039154052734375, -0.0206451416015625, 0.0173797607421875, -0.001453399658203125, -0.044677734375, -0.0270538330078125, -0.00699615478515625, 0.007671356201171875, -0.04998779296875, -0.02056884765625, -0.039154052734375, -0.0126190185546875, -0.028472900390625, 0.038848876953125, -0.046112060546875, -0.0200958251953125, -0.006053924560546875, -0.045013427734375, -0.00243377685546875, -0.0000030994415283203125, 0.024383544921875, -0.06500244140625, -0.0423583984375, -0.022430419921875, 0.054046630859375, -0.0122528076171875, -0.029632568359375, -0.00925445556640625, 0.040985107421875, -0.00217437744140625, -0.036468505859375, 0.03692626953125, -0.04180908203125, 0.0186309814453125, -0.0285491943359375, -0.031982421875, 0.033355712890625, 0.0113372802734375, -0.082763671875, 0.03045654296875, 0.047882080078125, -0.0191192626953125, 0.001617431640625, -0.0006341934204101562, 0.0006275177001953125, -0.02001953125, -0.004726409912109375, -0.01074981689453125, 0.0167694091796875, 0.01016998291015625, -0.01548004150390625, -0.012847900390625, -0.01727294921875, 0.00926971435546875, 0.039154052734375, 0.0285186767578125, 0.006404876708984375, 0.0259857177734375, -0.033294677734375, -0.0030002593994140625, 0.0151519775390625, -0.04815673828125, -0.0225677490234375, -0.00909423828125, -0.060791015625, 0.0027065277099609375, -0.0146026611328125, -0.042938232421875, 0.01091766357421875, 0.0024566650390625, 0.004642486572265625, 0.0213775634765625, 0.003025054931640625, -0.044891357421875, -0.02239990234375, -0.06005859375, -0.0162506103515625, -0.00008416175842285156, 0.0003495216369628906, -0.0124359130859375, 0.09381103515625, 0.012237548828125, -0.03717041015625, 0.0017061233520507812, -0.0255126953125, -0.01128387451171875, 0.0020084381103515625, -0.004436492919921875, -0.035064697265625, -0.0308685302734375, -0.00994873046875, 0.02099609375, 0.0010824203491210938, 0.0021514892578125, 0.0179901123046875, -0.0019588470458984375, 0.0186920166015625, 0.024505615234375, 0.037567138671875, -0.007526397705078125, 0.0008401870727539062, 0.022857666015625, -0.0491943359375, -0.00004887580871582031, 0.00661468505859375, -0.0280609130859375, 0.0289459228515625, 0.038665771484375, -0.042938232421875, 0.0223846435546875, -0.0158538818359375, -0.039825439453125, -0.01348114013671875, -0.0289459228515625, -0.041717529296875, 0.047943115234375, -0.002788543701171875, 0.0009236335754394531, 0.036712646484375, 0.004795074462890625, -0.03814697265625, 0.019866943359375, 0.0021228790283203125, -0.01401519775390625, 0.00957489013671875, -0.0203704833984375, 0.0171661376953125, -0.047271728515625, 0.06451416015625, -0.004787445068359375, 0.002391815185546875, -0.0462646484375, -0.03814697265625, -0.00443267822265625, 0.0986328125, -0.031829833984375, -0.01288604736328125, 0.0159149169921875, 0.0228424072265625, -0.040252685546875, -0.0517578125, -0.03887939453125, 0.0011692047119140625, -0.0760498046875, -0.019073486328125, -0.0220489501953125, -0.03717041015625, -0.019989013671875, -0.0171661376953125, -0.04595947265625, -0.03448486328125, 0.0146942138671875, 0.043975830078125, 0.017181396484375, -0.0036468505859375, 0.03167724609375, -0.0231170654296875, 0.0197601318359375, -0.0023212432861328125, -0.0234222412109375, -0.01412200927734375, -0.01971435546875, 0.07696533203125, 0.0384521484375, -0.029083251953125, -0.00469970703125, 0.029388427734375, 0.0216217041015625, -0.0238494873046875, 0.0286407470703125, -0.0033969879150390625, 0.0256805419921875, 0.0071868896484375, 0.00037384033203125, -0.0104827880859375, -0.0052947998046875, -0.025665283203125, -0.05865478515625, -0.0328369140625, -0.020721435546875, -0.02044677734375, 0.0308685302734375, -0.035125732421875, -0.04449462890625, -0.0213470458984375, -0.0035858154296875, 0.0187530517578125, 0.0010232925415039062, 0.0018606185913085938, -0.0193939208984375, -0.0391845703125, 0.050933837890625, 0.00904083251953125, -0.037750244140625, 0.004802703857421875, 0.0689697265625, 0.022430419921875, -0.030975341796875, -0.03924560546875, 0.028289794921875, 0.0222320556640625, -0.01166534423828125, 0.050689697265625, -0.02276611328125, -0.0242156982421875, 0.0712890625, -0.0296173095703125, 0.0240936279296875, -0.039276123046875, 0.10418701171875, 0.0045623779296875, 0.017486572265625, 0.00579071044921875, 0.0150299072265625, -0.020294189453125, -0.035308837890625, -0.0133819580078125, -0.006908416748046875, 0.0361328125, 0.03167724609375, -0.02423095703125, 0.0489501953125, -0.005176544189453125, -0.00922393798828125, 0.007503509521484375, -0.0212554931640625, 0.048553466796875, 0.041168212890625, -0.0081329345703125, -0.00939178466796875, -0.02276611328125, 0.0207672119140625, -0.0247955322265625, 0.0030460357666015625, -0.04425048828125, 0.0283966064453125, -0.006488800048828125, -0.01525115966796875, -0.012969970703125, -0.01000213623046875, 0.06793212890625, -0.02642822265625, -0.057281494140625, 0.005153656005859375, -0.008758544921875, 0.0274658203125, 0.04290771484375, -0.036346435546875, 0.024871826171875, 0.004001617431640625, -0.037109375, 0.00853729248046875, -0.00545501708984375, -0.0482177734375, -0.0443115234375, 0.04150390625, 0.01397705078125, -0.0081787109375, 0.004894256591796875, 0.0104827880859375, 0.016204833984375, -0.01165771484375, -0.01091766357421875, 0.0141143798828125, 0.0362548828125, -0.002811431884765625, 0.017974853515625, -0.0125579833984375, -0.0102386474609375, -0.0008120536804199219, 0.0369873046875, -0.022216796875, -0.00948333740234375, 0.0303192138671875, 0.01861572265625, 0.034759521484375, 0.0278167724609375, -0.0217132568359375, 0.0105438232421875, -0.0206756591796875, 0.043792724609375, 0.0200347900390625, -0.0413818359375, -0.0034084320068359375, -0.00405120849609375, -0.00792694091796875, -0.02520751953125, 0.0003986358642578125, -0.02667236328125, 0.00513458251953125, 0.0176239013671875, -0.031829833984375, -0.0030040740966796875, -0.00926971435546875, -0.0029926300048828125, -0.0360107421875, -0.007717132568359375, 0.00208282470703125, -0.035919189453125, -0.0303955078125, -0.0162811279296875, -0.03546142578125, 0.03851318359375, -0.0257568359375, 0.04229736328125, -0.01332855224609375, -0.036773681640625, -0.0117034912109375, 0.007904052734375, 0.0386962890625, 0.0281219482421875, -0.0498046875, 0.0008864402770996094, -0.033233642578125, -0.00998687744140625, -0.102294921875, -0.07086181640625, -0.018829345703125, 0.01058197021484375, -0.0321044921875, 0.0082855224609375, 0.00838470458984375, 0.046905517578125, 0.0020122528076171875, 0.01322174072265625, -0.0479736328125, 0.005092620849609375, -0.033660888671875, 0.0853271484375, 0.0054168701171875, 0.02783203125, 0.0024623870849609375, 0.03668212890625, -0.0117340087890625, 0.00787353515625, 0.00769805908203125, -0.043426513671875, -0.01497650146484375, -0.0152740478515625, -0.04144287109375, 0.0213165283203125, 0.07330322265625, -0.0037136077880859375, 0.010406494140625, -0.0038967132568359375, -0.01111602783203125, -0.0110931396484375, 0.000774383544921875, 0.019683837890625, 0.0240936279296875, 0.0090179443359375, 0.0013666152954101562, 0.00896453857421875, -0.0266265869140625, -0.0168609619140625, 0.0253753662109375, -0.004180908203125, 0.0232696533203125, 0.002044677734375, -0.0372314453125, -0.00664520263671875, 0.038848876953125, 0.007511138916015625, 0.03497314453125, -0.0199737548828125, 0.0204010009765625, 0.038360595703125, -0.01611328125, 0.033660888671875, 0.03546142578125, 0.09912109375, 0.0034122467041015625, -0.033172607421875, 0.05609130859375, -0.051910400390625, 0.04742431640625, 0.06292724609375, 0.06494140625, -0.1046142578125, 0.0252838134765625, 0.0207977294921875, 0.01555633544921875, 0.056121826171875, 0.0550537109375, -0.0262603759765625, 0.00801849365234375, -0.0361328125, -0.028228759765625, -0.00408172607421875, 0.020660400390625, 0.05487060546875, 0.00478363037109375, -0.01324462890625, -0.018310546875, -0.00910186767578125, 0.01328277587890625, -0.00833892822265625, -0.0122528076171875, 0.01287078857421875, 0.004314422607421875, 0.0054473876953125, 0.03839111328125, -0.06085205078125, -0.083251953125, -0.027740478515625, 0.002071380615234375, -0.060089111328125, -0.04278564453125, 0.00489044189453125, 0.0802001953125, 0.00673675537109375, 0.0088043212890625, -0.040557861328125, -0.023223876953125, 0.043853759765625, -0.0254058837890625, -0.004314422607421875, -0.0071563720703125, 0.041290283203125, -0.0234832763671875, 0.0298004150390625, -0.0111236572265625, -0.00244140625, 0.001621246337890625, -0.052093505859375, 0.01123046875, 0.011016845703125, -0.0175628662109375, 0.018310546875, -0.0283050537109375, -0.004062652587890625, 0.025604248046875, 0.007419586181640625, -0.05316162109375, -0.056427001953125, 0.018402099609375, -0.08843994140625, 0.00023889541625976562, 0.004669189453125, -0.0496826171875, 0.054046630859375, 0.01192474365234375, 0.03656005859375, 0.00628662109375, 0.0115203857421875, -0.007579803466796875, 0.00882720947265625, -0.037689208984375, 0.035919189453125, 0.035064697265625, 0.0299072265625, 0.0157012939453125, 0.0189361572265625, 0.024444580078125, -0.0214996337890625, -0.02642822265625, -0.0103607177734375, -0.041778564453125, -0.0174102783203125, -0.0023174285888671875, 0.017120361328125, 0.01169586181640625, 0.033905029296875, 0.0096588134765625, 0.0673828125, 0.055938720703125, -0.08026123046875, 0.019287109375, -0.03594970703125, 0.015380859375, 0.0240478515625, -0.003231048583984375, -0.017547607421875, -0.016357421875, 0.04736328125, -0.045684814453125, -0.0066070556640625, 0.031951904296875, -0.018707275390625, 0.01367950439453125, 0.026885986328125, 0.0131072998046875, 0.0021877288818359375, -0.0265655517578125, -0.0171966552734375, 0.031585693359375, -0.00069427490234375, 0.01248931884765625, 0.051483154296875, 0.01113128662109375, 0.047943115234375, 0.00162506103515625, 0.01233673095703125, 0.007144927978515625, 0.036590576171875, 0.03271484375, 0.0160980224609375, 0.005680084228515625, -0.043060302734375, 0.05035400390625, 0.037109375, 0.037811279296875, -0.05194091796875, -0.006984710693359375, 0.0042572021484375, 0.007801055908203125, 0.019500732421875, -0.024200439453125, 0.050811767578125, -0.06378173828125, -0.04913330078125, -0.040069580078125, 0.0296630859375, 0.048370361328125, -0.0205535888671875, 0.0037517547607421875, 0.0184783935546875, -0.032135009765625, 0.059844970703125, -0.0491943359375, 0.0233154296875, -0.0025844573974609375, 0.056060791015625, 0.0181884765625, 0.0634765625, -0.0267791748046875, -0.038665771484375, -0.039703369140625, 0.028564453125, -0.03125, 0.04840087890625, -0.04364013671875, -0.0025539398193359375, -0.03021240234375, 0.040374755859375, 0.0186309814453125, -0.0310516357421875, -0.005615234375, 0.0020542144775390625, -0.005306243896484375, 0.0025005340576171875, 0.0125579833984375, -0.01494598388671875, 0.01386260986328125, -0.0010700225830078125, -0.0308380126953125, -0.03570556640625, -0.047760009765625, -0.003360748291015625, 0.0294342041015625, -0.01111602783203125, -0.0061187744140625, -0.0229034423828125, 0.013519287109375, -0.062408447265625, 0.00027632713317871094, 0.03546142578125, 0.0777587890625, 0.0258026123046875, -0.0008497238159179688, 0.0237884521484375, -0.03216552734375, -0.07989501953125, 0.01479339599609375, 0.037017822265625, -0.0158538818359375, 0.0031280517578125, -0.00437164306640625, -0.042510986328125, -0.0034580230712890625, 0.048431396484375, -0.010955810546875, 0.0015125274658203125, 0.0163726806640625, -0.025299072265625, -0.031707763671875, -0.006198883056640625, -0.040008544921875, 0.0391845703125, 0.06439208984375, 0.03509521484375, -0.00005173683166503906, 0.048370361328125, -0.01280975341796875, 0.01357269287109375, -0.0440673828125, -0.022979736328125, 0.03521728515625, -0.037628173828125, -0.0089874267578125, 0.0185394287109375, -0.0081024169921875, 0.0894775390625, 0.0104522705078125, 0.0118255615234375, 0.0421142578125, 0.03131103515625, -0.0113067626953125, -0.003894805908203125, 0.064453125, 0.005764007568359375, -0.03857421875, -0.042938232421875, -0.0024700164794921875, 0.0538330078125, 0.1014404296875, 0.039886474609375, 0.01194000244140625, 0.0009555816650390625, 0.02044677734375, -0.0161590576171875, 0.0283660888671875, -0.05035400390625, 0.010345458984375, -0.01419830322265625, -0.033782958984375, -0.011077880859375, -0.01502227783203125, -0.005275726318359375, 0.0129852294921875, 0.0279541015625, -0.01129913330078125, -0.01019287109375, -0.006450653076171875, 0.03338623046875, 0.06744384765625, 0.02392578125, 0.03314208984375, -0.009033203125, -0.0009069442749023438, -0.00868988037109375, -0.032562255859375, -0.0294952392578125, -0.032958984375, -0.0201263427734375, 0.01448822021484375, -0.023040771484375, -0.06402587890625, -0.0474853515625, 0.0104827880859375, 0.0357666015625, -0.0027446746826171875, -0.031341552734375, 0.0078582763671875, -0.035430908203125, 0.0215911865234375, 0.01226043701171875, -0.0280303955078125, 0.0014324188232421875, 0.016357421875, -0.0269622802734375, -0.005962371826171875, -0.054168701171875, -0.00354766845703125, -0.0173797607421875, 0.031951904296875, 0.043060302734375, -0.0169219970703125, 0.020050048828125, 0.01412200927734375, 0.00872802734375, 0.0521240234375, -0.05078125, -0.0224609375, 0.0130157470703125, -0.007843017578125, -0.0009946823120117188, -0.0084686279296875, -0.006504058837890625, 0.0010061264038085938, -0.019683837890625, 0.02020263671875, -0.0277862548828125, -0.01050567626953125, -0.051544189453125, -0.107666015625, 0.049835205078125, -0.006587982177734375, -0.04486083984375, -0.045013427734375, 0.01271820068359375, -0.00714111328125, 0.02801513671875, -0.0243072509765625, -0.027313232421875, -0.011749267578125, 0.01348876953125, 0.01288604736328125, 0.000591278076171875, 0.03851318359375, -0.0030155181884765625, -0.07330322265625, -0.0179901123046875, -0.0396728515625, 0.01224517822265625, -0.0345458984375, 0.0302734375, 0.0155029296875, 0.042572021484375, 0.003749847412109375, 0.0364990234375, 0.0239715576171875, 0.00821685791015625, 0.0318603515625, -0.0626220703125, -0.03265380859375, -0.042572021484375, 0.040130615234375, -0.004009246826171875, 0.015533447265625, -0.0008873939514160156, 0.001407623291015625, 0.0011415481567382812, -0.05322265625, 0.0032901763916015625, 0.01354217529296875, -0.039306640625, -0.0026912689208984375, -0.01213836669921875, -0.01389312744140625, 0.005970001220703125, -0.015869140625, -0.0204315185546875, -0.0024738311767578125, 0.009674072265625, 0.0130462646484375, -0.006877899169921875, -0.051025390625, 0.0285797119140625, -0.0144805908203125, 0.00014328956604003906, 0.02874755859375, 0.0166778564453125, 0.01232147216796875, 0.10748291015625, -0.0091400146484375, -0.020751953125, -0.016021728515625, -0.004909515380859375, 0.0131378173828125, 0.0272064208984375, 0.0174560546875, -0.02960205078125, -0.0251312255859375, -0.003021240234375, -0.0017251968383789062, -0.007289886474609375, -0.01433563232421875, 0.003387451171875, -0.00804901123046875, 0.06634521484375, -0.01165008544921875, 0.04852294921875, 0.0093994140625, 0.016571044921875, 0.039398193359375, -0.0272216796875, 0.0648193359375, -0.03692626953125, -0.0172576904296875, 0.0016508102416992188, 0.005886077880859375, -0.08599853515625, 0.056396484375, 0.02569580078125, 0.044189453125, 0.05242919921875 ]
79f3096683373fce90fd9868e9d6edf68edbee96
Wordpress Stackexchange Q: How to properly sanitize strings without $wpdb->prepare? I'm working on an advanced search (which uses custom sql queries), and the query string is formed using variables. For example, if the person checks some options, only those conditions get added to the WHERE clause. I can't use $wpdb->prepare, since I want to be able to add variables to my query string that look something like: $var = "AND pm.meta_value = '%$_POST['val']%'"; I looked at like_escape(), but the documentation says: Sanitizes $string for use in a LIKE expression of a SQL query. Will still need to be SQL escaped (with one of the above functions). What would be an appropriate way to escape $val? A: Use mysqli_real_escape_string(). The core uses still the deprecated mysql_real_escape_string() or add_slashes() in wpdb::_real_escape() … /** * Real escape, using mysql_real_escape_string() or addslashes() * * @see mysql_real_escape_string() * @see addslashes() * @since 2.8.0 * @access private * * @param string $string to escape * @return string escaped */ function _real_escape( $string ) { if ( $this->dbh && $this->real_escape ) return mysql_real_escape_string( $string, $this->dbh ); else return addslashes( $string ); } … but you shouldn’t use that anymore.
Q: How to properly sanitize strings without $wpdb->prepare? I'm working on an advanced search (which uses custom sql queries), and the query string is formed using variables. For example, if the person checks some options, only those conditions get added to the WHERE clause. I can't use $wpdb->prepare, since I want to be able to add variables to my query string that look something like: $var = "AND pm.meta_value = '%$_POST['val']%'"; I looked at like_escape(), but the documentation says: Sanitizes $string for use in a LIKE expression of a SQL query. Will still need to be SQL escaped (with one of the above functions). What would be an appropriate way to escape $val? A: Use mysqli_real_escape_string(). The core uses still the deprecated mysql_real_escape_string() or add_slashes() in wpdb::_real_escape() … /** * Real escape, using mysql_real_escape_string() or addslashes() * * @see mysql_real_escape_string() * @see addslashes() * @since 2.8.0 * @access private * * @param string $string to escape * @return string escaped */ function _real_escape( $string ) { if ( $this->dbh && $this->real_escape ) return mysql_real_escape_string( $string, $this->dbh ); else return addslashes( $string ); } … but you shouldn’t use that anymore. A: I can't use $wpdb->prepare, since I want to be able to add variables to my query string that look something like: $var = "AND pm.meta_value = '%$_POST['val']%'"; To get a literal % to pass through $wpdb->prepare just double it. You don't need to be avoiding $wpdb->prepare. Proof of concept: var_dump($wpdb->prepare('SELECT * FROM {$wpdb->posts} WHERE post_title LIKE "%%%s%%"','Hello')); A comment below suggests something a bit more complicated might be in order: $var[] = 'post_title LIKE "%%%s%%"'; $var_data[] = 'Hello'; $var[] = 'post_name LIKE "%%%s%%"'; $var_data[] = 'Hi'; $var[] = 'post_date LIKE "%%%s%%"'; $var_data[] = 'Howdy'; var_dump($wpdb->prepare('SELECT * FROM {$wpdb->posts} WHERE post_title '.implode(' AND ',$var),$var_data)); Of course, in practice you would probably create $var and $var_data in some kind of loop such as: foreach ($_POST as $k=>$v) { if ('abc' == $k) { $var[] = 'post_title LIKE "%%%s%%"'; $var_data[] = $v; // should probably validate a bit } elseif(...) { // ... } else { // ... } } It is always possible to run prepare on each item as well: $var[] = $wpdb->prepare('post_title LIKE "%%%s%%"','Hello'); But the method using the array strikes me as more elegant and only runs $wpdb->prepare once, for what that is worth.
wordpress
{ "language": "en", "length": 386, "provenance": "stackexchange_00019.jsonl.gz:431786", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/97384" }
[ 0.0762939453125, -0.001354217529296875, -0.0093536376953125, -0.0703125, 0.04412841796875, -0.0193023681640625, 0.049346923828125, 0.00004178285598754883, -0.0080718994140625, 0.05517578125, 0.02490234375, -0.0018205642700195312, 0.0204315185546875, -0.034820556640625, -0.025787353515625, -0.005706787109375, 0.0058746337890625, -0.0291748046875, -0.017852783203125, -0.040924072265625, 0.027862548828125, -0.051361083984375, 0.029083251953125, 0.0050048828125, 0.0263824462890625, -0.0293731689453125, 0.1214599609375, -0.0310821533203125, 0.052642822265625, 0.0016584396362304688, 0.032806396484375, -0.059600830078125, 0.031707763671875, 0.037506103515625, -0.032989501953125, 0.052459716796875, 0.04083251953125, 0.00518035888671875, 0.0139007568359375, 0.031280517578125, 0.006450653076171875, -0.0015134811401367188, 0.005481719970703125, 0.01751708984375, -0.0166473388671875, -0.050048828125, 0.047515869140625, 0.00856781005859375, 0.0017910003662109375, -0.007343292236328125, -0.00606536865234375, 0.0176239013671875, -0.0009431838989257812, -0.004901885986328125, -0.0162811279296875, -0.0012731552124023438, -0.036529541015625, -0.01375579833984375, 0.01419830322265625, 0.0396728515625, 0.01151275634765625, -0.0051422119140625, -0.01009368896484375, -0.019012451171875, 0.0160369873046875, 0.0041351318359375, 0.0089569091796875, 0.03363037109375, -0.038543701171875, -0.0037403106689453125, 0.017578125, -0.0217742919921875, 0.00852203369140625, -0.008453369140625, -0.035003662109375, 0.039276123046875, -0.01342010498046875, 0.0183258056640625, 0.0299835205078125, -0.0274658203125, -0.0163726806640625, -0.03668212890625, -0.040679931640625, 0.0006775856018066406, 0.01251983642578125, 0.017852783203125, -0.0205230712890625, 0.007160186767578125, -0.009613037109375, -0.002925872802734375, -0.0219879150390625, 0.00981903076171875, -0.002056121826171875, 0.0016279220581054688, -0.0035076141357421875, -0.033843994140625, -0.0204315185546875, 0.007190704345703125, -0.02679443359375, 0.0276947021484375, 0.0250244140625, -0.0271759033203125, 0.05792236328125, -0.042266845703125, 0.004062652587890625, 0.0263519287109375, 0.0216064453125, 0.027008056640625, 0.0257110595703125, 0.00806427001953125, 0.019134521484375, -0.0006756782531738281, -0.044281005859375, -0.0286712646484375, -0.0221710205078125, 0.0689697265625, -0.006725311279296875, -0.03875732421875, -0.005718231201171875, -0.008880615234375, -0.01385498046875, 0.00930023193359375, -0.0223846435546875, -0.0262298583984375, -0.01419830322265625, -0.05523681640625, -0.01268768310546875, 0.0198974609375, -0.01290130615234375, 0.068115234375, -0.0335693359375, -0.0256805419921875, 0.0396728515625, 0.029388427734375, 0.00183868408203125, -0.048126220703125, 0.034576416015625, -0.0298614501953125, -0.00713348388671875, 0.032684326171875, -0.01727294921875, -0.032684326171875, -0.00551605224609375, -0.030242919921875, -0.002246856689453125, -0.0004608631134033203, 0.01361083984375, 0.016326904296875, -0.0037708282470703125, -0.0226898193359375, 0.0049896240234375, -0.01495361328125, 0.04937744140625, -0.012054443359375, -0.05975341796875, -0.019500732421875, -0.0236663818359375, -0.0215301513671875, -0.029388427734375, -0.0367431640625, -0.00899505615234375, -0.01529693603515625, 0.0228424072265625, -0.006153106689453125, -0.033477783203125, 0.006870269775390625, -0.0161895751953125, -0.0173797607421875, 0.00289154052734375, 0.0244140625, 0.00983428955078125, -0.0175018310546875, -0.03509521484375, -0.0155029296875, -0.01715087890625, -0.004634857177734375, -0.0277862548828125, 0.03558349609375, 0.029876708984375, -0.005031585693359375, 0.0086669921875, -0.0195465087890625, 0.056488037109375, 0.0001537799835205078, -0.059783935546875, 0.047088623046875, 0.0006809234619140625, 0.080322265625, 0.020172119140625, 0.0125732421875, 0.0160980224609375, -0.0017299652099609375, -0.020965576171875, 0.06329345703125, -0.0053558349609375, -0.06683349609375, 0.034912109375, -0.0029659271240234375, -0.0162353515625, -0.00147247314453125, 0.04144287109375, 0.0170135498046875, 0.00923919677734375, 0.01326751708984375, -0.02935791015625, 0.002899169921875, -0.018096923828125, 0.01001739501953125, 0.00443267822265625, 0.051361083984375, 0.019744873046875, 0.01334381103515625, -0.050201416015625, 0.042755126953125, -0.00559234619140625, -0.023284912109375, 0.0260009765625, 0.06793212890625, -0.00482177734375, 0.05462646484375, 0.022216796875, -0.058380126953125, 0.01194000244140625, 0.0322265625, 0.0240020751953125, -0.017669677734375, -0.00390625, -0.01525115966796875, 0.053802490234375, 0.0026302337646484375, 0.0278167724609375, 0.01441192626953125, 0.0577392578125, 0.020233154296875, -0.025146484375, 0.006389617919921875, -0.0202789306640625, -0.06744384765625, -0.02227783203125, 0.05511474609375, 0.030731201171875, 0.036865234375, -0.047454833984375, -0.07470703125, 0.01415252685546875, -0.05572509765625, 0.010162353515625, -0.0460205078125, 0.038421630859375, 0.063720703125, -0.0338134765625, -0.03173828125, 0.005626678466796875, -0.09283447265625, 0.00713348388671875, 0.02496337890625, -0.013275146484375, 0.0089111328125, -0.0006227493286132812, 0.011993408203125, -0.01049041748046875, 0.034515380859375, 0.023834228515625, 0.00696563720703125, 0.005893707275390625, -0.0124359130859375, 0.002780914306640625, 0.0052642822265625, 0.016510009765625, -0.0289459228515625, 0.0106048583984375, -0.035003662109375, -0.01146697998046875, 0.0274200439453125, -0.04498291015625, -0.0022735595703125, -0.0243072509765625, 0.020294189453125, -0.016265869140625, 0.014556884765625, 0.01019287109375, 0.050079345703125, 0.0014619827270507812, -0.020965576171875, 0.005153656005859375, 0.0116424560546875, 0.003173828125, -0.0069732666015625, 0.04913330078125, -0.01073455810546875, -0.0026149749755859375, 0.048614501953125, 0.004901885986328125, 0.06494140625, 0.017425537109375, -0.035797119140625, 0.0227508544921875, 0.0101318359375, 0.012451171875, -0.01049041748046875, 0.0109100341796875, 0.03717041015625, 0.004764556884765625, -0.0021114349365234375, 0.0000400543212890625, 0.024993896484375, 0.0192108154296875, 0.0165252685546875, -0.00855255126953125, -0.048919677734375, -0.03759765625, -0.059326171875, 0.0280914306640625, 0.03912353515625, -0.01776123046875, -0.056640625, -0.013885498046875, 0.00469207763671875, -0.07366943359375, -0.061431884765625, 0.0154571533203125, 0.004833221435546875, -0.045562744140625, 0.0007967948913574219, 0.00739288330078125, 0.01468658447265625, -0.0260009765625, -0.0308380126953125, -0.0009279251098632812, -0.044708251953125, -0.045654296875, -0.067626953125, -0.049530029296875, -0.00432586669921875, 0.006473541259765625, -0.01030731201171875, -0.0002880096435546875, 0.0294952392578125, 0.006992340087890625, -0.03924560546875, 0.01508331298828125, 0.00629425048828125, 0.005771636962890625, 0.013671875, -0.026458740234375, 0.0299224853515625, 0.032928466796875, -0.0174713134765625, 0.037506103515625, 0.031402587890625, -0.0200347900390625, 0.00445556640625, 0.030548095703125, 0.03387451171875, 0.053741455078125, -0.010101318359375, -0.036163330078125, 0.024627685546875, 0.01451873779296875, -0.03448486328125, -0.010650634765625, 0.00910186767578125, -0.009857177734375, 0.002948760986328125, -0.004505157470703125, -0.029266357421875, -0.006534576416015625, 0.033966064453125, 0.05487060546875, 0.03680419921875, -0.00598907470703125, 0.0006885528564453125, 0.02532958984375, 0.00991058349609375, 0.053680419921875, -0.035614013671875, -0.0287628173828125, -0.043182373046875, 0.036224365234375, -0.00528717041015625, 0.006984710693359375, 0.0272216796875, -0.004425048828125, 0.035400390625, -0.0266571044921875, 0.04095458984375, 0.0011835098266601562, 0.038818359375, -0.048126220703125, -0.021636962890625, -0.0279693603515625, 0.05487060546875, -0.0379638671875, -0.0105438232421875, -0.0240478515625, 0.0115966796875, -0.04754638671875, -0.037078857421875, -0.028411865234375, 0.0011739730834960938, -0.057952880859375, -0.017242431640625, -0.053497314453125, -0.022247314453125, 0.0026073455810546875, -0.041839599609375, -0.01354217529296875, -0.061737060546875, 0.0230255126953125, -0.02850341796875, 0.026275634765625, 0.0167083740234375, 0.018218994140625, -0.0178985595703125, 0.003993988037109375, -0.040130615234375, -0.06744384765625, -0.02252197265625, -0.0086517333984375, 0.058929443359375, 0.01873779296875, -0.0186920166015625, -0.0248260498046875, 0.04840087890625, -0.00580596923828125, -0.0245208740234375, 0.0175933837890625, 0.005634307861328125, 0.00909423828125, 0.0347900390625, 0.0095062255859375, -0.0115966796875, -0.01953125, 0.00004374980926513672, 0.002017974853515625, 0.006580352783203125, 0.00473785400390625, -0.04058837890625, 0.0267181396484375, -0.01904296875, -0.016571044921875, 0.0029659271240234375, 0.0125732421875, 0.047027587890625, -0.000919342041015625, -0.0033397674560546875, -0.0005702972412109375, -0.0262603759765625, 0.07769775390625, 0.006465911865234375, 0.00350189208984375, -0.0290679931640625, 0.094970703125, 0.00533294677734375, -0.044677734375, -0.00879669189453125, -0.0084075927734375, 0.00567626953125, 0.019012451171875, 0.04400634765625, -0.025146484375, -0.023712158203125, 0.04949951171875, -0.00656890869140625, 0.018096923828125, -0.031707763671875, 0.05560302734375, -0.014984130859375, 0.00008958578109741211, 0.0123443603515625, -0.01470947265625, 0.01425933837890625, 0.0092010498046875, -0.005725860595703125, 0.001972198486328125, 0.01471710205078125, 0.0117340087890625, -0.007160186767578125, -0.0173187255859375, -0.015655517578125, -0.03204345703125, 0.0281219482421875, -0.0084228515625, 0.01043701171875, -0.001674652099609375, 0.0016803741455078125, -0.00360107421875, -0.0263214111328125, 0.00885772705078125, -0.00461578369140625, -0.01035308837890625, -0.0216827392578125, 0.034698486328125, -0.04681396484375, -0.03704833984375, 0.0287628173828125, 0.0048828125, 0.0064239501953125, -0.010009765625, -0.0151519775390625, -0.051483154296875, 0.00757598876953125, 0.028717041015625, 0.0023021697998046875, 0.0233001708984375, -0.0022125244140625, 0.0038776397705078125, -0.01447296142578125, 0.0211944580078125, 0.01715087890625, 0.01061248779296875, -0.018798828125, 0.070068359375, 0.0233001708984375, 0.0056304931640625, 0.0243072509765625, 0.05322265625, -0.00634002685546875, 0.0333251953125, -0.009185791015625, 0.0284271240234375, 0.0086669921875, 0.0408935546875, 0.015228271484375, -0.0274810791015625, 0.016632080078125, -0.0000622868537902832, -0.021759033203125, -0.0310821533203125, -0.0269012451171875, 0.0250244140625, 0.0263214111328125, -0.040863037109375, -0.00135040283203125, 0.03778076171875, 0.0162811279296875, -0.018218994140625, 0.037445068359375, 0.0357666015625, -0.031585693359375, -0.044525146484375, -0.0272979736328125, 0.019317626953125, 0.020538330078125, 0.003398895263671875, 0.007320404052734375, -0.0186614990234375, 0.024169921875, -0.00617218017578125, 0.035491943359375, -0.047332763671875, -0.03814697265625, 0.03533935546875, -0.020660400390625, -0.0281524658203125, 0.038726806640625, 0.02496337890625, -0.031036376953125, -0.0413818359375, 0.06329345703125, -0.0245361328125, 0.048919677734375, 0.005504608154296875, -0.041595458984375, 0.0411376953125, -0.01194000244140625, 0.0887451171875, 0.04046630859375, -0.001636505126953125, -0.0261077880859375, -0.0762939453125, -0.0271453857421875, 0.007106781005859375, -0.0256805419921875, -0.01531982421875, 0.0003554821014404297, 0.03729248046875, 0.0252838134765625, 0.0118865966796875, -0.04827880859375, -0.039215087890625, 0.007781982421875, 0.03448486328125, 0.043792724609375, -0.042449951171875, -0.0022182464599609375, 0.00798797607421875, -0.0006551742553710938, -0.032196044921875, -0.0232696533203125, 0.067626953125, -0.00751495361328125, -0.0160369873046875, -0.0219573974609375, 0.004108428955078125, -0.02777099609375, 0.04559326171875, 0.02001953125, 0.0258941650390625, 0.00835418701171875, 0.0281524658203125, -0.00588226318359375, -0.00920867919921875, -0.0206756591796875, 0.0169525146484375, -0.027496337890625, 0.026397705078125, 0.02618408203125, -0.0034160614013671875, 0.0419921875, 0.0146636962890625, 0.0111541748046875, -0.006526947021484375, -0.0032100677490234375, 0.0227508544921875, -0.012786865234375, -0.0323486328125, 0.044464111328125, 0.05596923828125, -0.01727294921875, 0.0274505615234375, -0.0210418701171875, -0.00543975830078125, 0.0122833251953125, -0.0009469985961914062, -0.002109527587890625, 0.01531982421875, 0.043060302734375, -0.005039215087890625, 0.0023784637451171875, 0.02337646484375, -0.0066680908203125, 0.039703369140625, 0.0948486328125, 0.09771728515625, -0.115234375, -0.00908660888671875, 0.02197265625, -0.03729248046875, 0.004451751708984375, 0.0305633544921875, -0.003231048583984375, -0.0234375, -0.0263824462890625, 0.0020275115966796875, 0.01123046875, 0.007717132568359375, 0.0290679931640625, -0.01593017578125, -0.039398193359375, 0.038818359375, 0.00807952880859375, -0.038299560546875, 0.040008544921875, 0.00201416015625, 0.01824951171875, -0.0027599334716796875, 0.01068878173828125, -0.021240234375, -0.00283050537109375, -0.053131103515625, -0.01427459716796875, -0.040496826171875, -0.004161834716796875, 0.01120758056640625, 0.05670166015625, 0.038299560546875, 0.04351806640625, 0.039215087890625, -0.06085205078125, 0.003856658935546875, -0.0110626220703125, 0.040435791015625, -0.0157318115234375, -0.00311279296875, 0.044769287109375, -0.032379150390625, 0.009613037109375, 0.004711151123046875, -0.0055694580078125, -0.01094818115234375, -0.0186920166015625, 0.034637451171875, -0.023895263671875, -0.004375457763671875, 0.02032470703125, 0.044647216796875, 0.0055694580078125, -0.0137481689453125, -0.02630615234375, -0.049407958984375, -0.0138702392578125, -0.03314208984375, -0.0428466796875, 0.006000518798828125, -0.03375244140625, -0.052490234375, 0.0386962890625, 0.0011606216430664062, 0.0386962890625, 0.06573486328125, -0.004444122314453125, -0.0499267578125, -0.037689208984375, -0.0174560546875, 0.064453125, -0.005908966064453125, 0.0079345703125, -0.03594970703125, 0.01282501220703125, 0.007904052734375, 0.01233673095703125, -0.008636474609375, 0.003414154052734375, 0.01153564453125, 0.0168914794921875, 0.034271240234375, 0.0031642913818359375, -0.0256500244140625, 0.00585174560546875, 0.0016374588012695312, 0.02337646484375, 0.06695556640625, -0.039764404296875, 0.0200042724609375, 0.0244903564453125, 0.0032901763916015625, 0.03741455078125, 0.0164947509765625, 0.011993408203125, -0.044921875, -0.0028076171875, 0.006710052490234375, -0.0244598388671875, -0.00824737548828125, -0.0149078369140625, -0.010650634765625, 0.0394287109375, 0.0131683349609375, -0.0662841796875, -0.0284576416015625, -0.0306396484375, 0.03765869140625, 0.0002567768096923828, 0.02392578125, 0.10308837890625, 0.0231781005859375, 0.0657958984375, 0.031829833984375, 0.01052093505859375, -0.0168914794921875, 0.057159423828125, 0.06561279296875, 0.00814056396484375, 0.00640869140625, -0.06280517578125, 0.0225372314453125, 0.0570068359375, 0.076416015625, -0.05548095703125, -0.02716064453125, 0.0026493072509765625, 0.01140594482421875, -0.0193634033203125, -0.03411865234375, -0.0209503173828125, 0.02996826171875, 0.05316162109375, -0.021392822265625, 0.040985107421875, 0.037078857421875, -0.001628875732421875, -0.00487518310546875, 0.00997161865234375, -0.03173828125, 0.052001953125, -0.033599853515625, -0.030853271484375, 0.030303955078125, 0.059783935546875, 0.034088134765625, 0.0045166015625, -0.00493621826171875, -0.0231475830078125, -0.02899169921875, 0.06915283203125, 0.04730224609375, 0.01038360595703125, -0.035430908203125, -0.0352783203125, 0.05462646484375, 0.01323699951171875, -0.00731658935546875, 0.01580810546875, 0.04150390625, 0.017303466796875, -0.033233642578125, -0.0020751953125, -0.00036072731018066406, -0.0304412841796875, -0.00670623779296875, -0.0178985595703125, 0.014739990234375, 0.00754547119140625, 0.005767822265625, -0.0288238525390625, 0.045623779296875, -0.0024204254150390625, 0.0240478515625, 0.037017822265625, -0.0031280517578125, 0.031951904296875, 0.0145263671875, -0.033111572265625, 0.00165557861328125, 0.02264404296875, -0.023223876953125, 0.0016469955444335938, -0.007110595703125, -0.06243896484375, -0.00695037841796875, 0.02783203125, -0.014617919921875, 0.0261688232421875, 0.004764556884765625, -0.0021457672119140625, 0.00501251220703125, 0.0039825439453125, -0.0009374618530273438, -0.052154541015625, 0.023284912109375, -0.0101318359375, -0.01137542724609375, 0.0027980804443359375, 0.0258026123046875, 0.0178680419921875, -0.0043792724609375, 0.044952392578125, -0.03594970703125, 0.004352569580078125, -0.0201263427734375, 0.036651611328125, -0.03704833984375, 0.0114288330078125, -0.01812744140625, -0.0009441375732421875, 0.0207672119140625, 0.0029277801513671875, -0.0248260498046875, 0.033966064453125, 0.0203399658203125, -0.0357666015625, 0.032012939453125, -0.0144500732421875, 0.015167236328125, -0.0288543701171875, 0.04449462890625, -0.026214599609375, -0.022491455078125, -0.03515625, -0.0186004638671875, 0.047576904296875, 0.0675048828125, 0.0195465087890625, 0.0419921875, 0.012603759765625, 0.006145477294921875, 0.027008056640625, -0.05712890625, 0.07611083984375, 0.05499267578125, -0.044464111328125, -0.003002166748046875, -0.005828857421875, -0.035552978515625, 0.01203155517578125, 0.0003361701965332031, 0.01763916015625, -0.00018775463104248047, -0.0005669593811035156, -0.045654296875, 0.01898193359375, 0.0545654296875, 0.045257568359375, 0.0305938720703125, -0.05780029296875, -0.0262908935546875, 0.0152435302734375, 0.00499725341796875, -0.0173492431640625, -0.047760009765625, -0.024383544921875, 0.005283355712890625, -0.041229248046875, -0.028411865234375, -0.0479736328125, 0.0087738037109375, -0.001495361328125, -0.00678253173828125, -0.0440673828125, -0.005588531494140625, -0.0033359527587890625, 0.04412841796875, -0.0238189697265625, 0.01314544677734375, 0.0102996826171875, 0.06976318359375, -0.0233001708984375, -0.048828125, 0.004215240478515625, 0.046630859375, -0.0193328857421875, 0.0250396728515625, 0.0281524658203125, 0.0021953582763671875, 0.004840850830078125, -0.0010595321655273438, 0.002777099609375, 0.0426025390625, -0.024627685546875, -0.0206146240234375, 0.01983642578125, 0.01117706298828125, -0.0245208740234375, -0.0577392578125, -0.003337860107421875, -0.03253173828125, 0.034881591796875, 0.053802490234375, -0.0165557861328125, 0.01357269287109375, -0.0294342041015625, -0.089599609375, 0.10015869140625, -0.0031185150146484375, -0.035858154296875, 0.0002765655517578125, 0.0188446044921875, -0.0024089813232421875, -0.0364990234375, -0.0025997161865234375, -0.03826904296875, -0.01465606689453125, -0.0008387565612792969, 0.02197265625, 0.00246429443359375, 0.03363037109375, -0.00865936279296875, -0.06072998046875, -0.0034770965576171875, -0.01050567626953125, 0.0013370513916015625, -0.0386962890625, 0.0061492919921875, 0.042327880859375, 0.04364013671875, 0.003704071044921875, 0.0205230712890625, 0.0360107421875, -0.021026611328125, -0.0137786865234375, -0.0540771484375, -0.01372528076171875, -0.00321197509765625, 0.0504150390625, 0.03472900390625, 0.00893402099609375, -0.0452880859375, -0.02520751953125, 0.006427764892578125, 0.040618896484375, 0.021759033203125, -0.0015058517456054688, -0.044525146484375, -0.0253143310546875, 0.028350830078125, 0.00847625732421875, 0.00971221923828125, 0.00791168212890625, 0.0084075927734375, -0.009490966796875, 0.050872802734375, -0.02960205078125, 0.01483917236328125, -0.06768798828125, 0.105712890625, -0.0714111328125, -0.04510498046875, 0.01385498046875, 0.056365966796875, 0.008819580078125, -0.050323486328125, 0.01087188720703125, -0.0294952392578125, 0.035064697265625, 0.005889892578125, 0.0211639404296875, -0.037994384765625, 0.0062408447265625, -0.0250091552734375, -0.0250701904296875, 0.01306915283203125, 0.01068115234375, 0.0192413330078125, -0.06427001953125, 0.07696533203125, 0.024627685546875, 0.0009703636169433594, -0.0341796875, 0.0294647216796875, -0.01224517822265625, 0.020263671875, 0.04815673828125, -0.0063629150390625, 0.08837890625, 0.0107879638671875, 0.0157928466796875, -0.023101806640625, -0.0032444000244140625, -0.0266571044921875, -0.0214080810546875, 0.0110626220703125, -0.007965087890625, 0.01044464111328125 ]
38684660a8e10c26af0884bddf8ae37891b550d7
Wordpress Stackexchange Q: Code for Recent Posts Widget I want to make changes to code of the Recent Posts widget – could anyone please tell me where that code is located? Thank you in advance! A: The default Recent Posts Widget code is in includes/default-widgets.php but you should not be hacking Core code. Copy that function to your theme's functions.php, rename it, and create your own customized widget.
Q: Code for Recent Posts Widget I want to make changes to code of the Recent Posts widget – could anyone please tell me where that code is located? Thank you in advance! A: The default Recent Posts Widget code is in includes/default-widgets.php but you should not be hacking Core code. Copy that function to your theme's functions.php, rename it, and create your own customized widget. A: Have a look in wp-includes\default-widgets.php. /** * Recent_Posts widget class * * @since 2.8.0 */ class WP_Widget_Recent_Posts extends WP_Widget { function __construct() { $widget_ops = array('classname' => 'widget_recent_entries', 'description' => __( "The most recent posts on your site") ); parent::__construct('recent-posts', __('Recent Posts'), $widget_ops); $this->alt_option_name = 'widget_recent_entries'; add_action( 'save_post', array($this, 'flush_widget_cache') ); add_action( 'deleted_post', array($this, 'flush_widget_cache') ); add_action( 'switch_theme', array($this, 'flush_widget_cache') ); } function widget($args, $instance) { $cache = wp_cache_get('widget_recent_posts', 'widget'); if ( !is_array($cache) ) $cache = array(); if ( ! isset( $args['widget_id'] ) ) $args['widget_id'] = $this->id; if ( isset( $cache[ $args['widget_id'] ] ) ) { echo $cache[ $args['widget_id'] ]; return; } ob_start(); extract($args); $title = ( ! empty( $instance['title'] ) ) ? $instance['title'] : __( 'Recent Posts' ); $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); $number = ( ! empty( $instance['number'] ) ) ? absint( $instance['number'] ) : 10; if ( ! $number ) $number = 10; $show_date = isset( $instance['show_date'] ) ? $instance['show_date'] : false; $r = new WP_Query( apply_filters( 'widget_posts_args', array( 'posts_per_page' => $number, 'no_found_rows' => true, 'post_status' => 'publish', 'ignore_sticky_posts' => true ) ) ); if ($r->have_posts()) : ?> <?php echo $before_widget; ?> <?php if ( $title ) echo $before_title . $title . $after_title; ?> <ul> <?php while ( $r->have_posts() ) : $r->the_post(); ?> <li> <a href="<?php the_permalink() ?>" title="<?php echo esc_attr( get_the_title() ? get_the_title() : get_the_ID() ); ?>"><?php if ( get_the_title() ) the_title(); else the_ID(); ?></a> <?php if ( $show_date ) : ?> <span class="post-date"><?php echo get_the_date(); ?></span> <?php endif; ?> </li> <?php endwhile; ?> </ul> <?php echo $after_widget; ?> <?php // Reset the global $the_post as this query will have stomped on it wp_reset_postdata(); endif; $cache[$args['widget_id']] = ob_get_flush(); wp_cache_set('widget_recent_posts', $cache, 'widget'); } function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance['title'] = strip_tags($new_instance['title']); $instance['number'] = (int) $new_instance['number']; $instance['show_date'] = (bool) $new_instance['show_date']; $this->flush_widget_cache(); $alloptions = wp_cache_get( 'alloptions', 'options' ); if ( isset($alloptions['widget_recent_entries']) ) delete_option('widget_recent_entries'); return $instance; } function flush_widget_cache() { wp_cache_delete('widget_recent_posts', 'widget'); } function form( $instance ) { $title = isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : ''; $number = isset( $instance['number'] ) ? absint( $instance['number'] ) : 5; $show_date = isset( $instance['show_date'] ) ? (bool) $instance['show_date'] : false; ?> <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" /></p> <p><label for="<?php echo $this->get_field_id( 'number' ); ?>"><?php _e( 'Number of posts to show:' ); ?></label> <input id="<?php echo $this->get_field_id( 'number' ); ?>" name="<?php echo $this->get_field_name( 'number' ); ?>" type="text" value="<?php echo $number; ?>" size="3" /></p> <p><input class="checkbox" type="checkbox" <?php checked( $show_date ); ?> id="<?php echo $this->get_field_id( 'show_date' ); ?>" name="<?php echo $this->get_field_name( 'show_date' ); ?>" /> <label for="<?php echo $this->get_field_id( 'show_date' ); ?>"><?php _e( 'Display post date?' ); ?></label></p> <?php } } If you modify this Widget, be sure to fork it, and register your forked Widget as a new Widget. Edit How to fork a core Widget Start with the Codex entry on the Widgets API. * *Rename the Widget Change this: class WP_Widget_Recent_Posts extends WP_Widget {} ...to this: class wpse97411_Widget_Recent_Posts extends WP_Widget {} *Modify the Widget class to suit your needs *Register your Widget: function wpse97413_register_custom_widgets() { register_widget( 'wpse97411_Widget_Recent_Posts' ); } add_action( 'widgets_init', 'wpse97413_register_custom_widgets' );
wordpress
{ "language": "en", "length": 603, "provenance": "stackexchange_00019.jsonl.gz:431794", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/97411" }
[ 0.04217529296875, -0.05194091796875, 0.03265380859375, 0.0044708251953125, -0.03546142578125, -0.0158843994140625, 0.06103515625, 0.0036220550537109375, 0.03326416015625, 0.0318603515625, -0.0165252685546875, -0.029876708984375, -0.0017442703247070312, -0.020050048828125, -0.0323486328125, -0.019866943359375, 0.0616455078125, -0.0062103271484375, 0.05084228515625, -0.00959014892578125, -0.00971221923828125, 0.0196533203125, 0.07611083984375, 0.11944580078125, -0.003566741943359375, 0.01287078857421875, 0.0809326171875, -0.0254364013671875, -0.01226043701171875, -0.0277252197265625, 0.0194854736328125, 0.0183563232421875, 0.0195465087890625, 0.01537322998046875, -0.033203125, 0.00759124755859375, -0.01361083984375, 0.0024127960205078125, -0.0043792724609375, 0.00991058349609375, 0.004291534423828125, -0.0093841552734375, -0.01751708984375, 0.0031375885009765625, -0.037933349609375, -0.0168914794921875, -0.0083770751953125, -0.0244903564453125, 0.05902099609375, -0.0215606689453125, -0.01335906982421875, -0.0020751953125, -0.0120391845703125, -0.046844482421875, -0.0269775390625, -0.0261077880859375, 0.017181396484375, -0.06585693359375, 0.058135986328125, -0.01351165771484375, -0.0267486572265625, -0.064697265625, 0.04473876953125, -0.0102691650390625, -0.0150299072265625, -0.015106201171875, 0.0009965896606445312, 0.01299285888671875, -0.03472900390625, -0.0301513671875, 0.033721923828125, -0.01273345947265625, 0.0089263916015625, -0.035369873046875, 0.0152435302734375, -0.0184326171875, 0.0007386207580566406, -0.03448486328125, 0.003662109375, 0.00930023193359375, 0.010467529296875, 0.042938232421875, 0.00540924072265625, -0.051025390625, -0.0069427490234375, -0.060791015625, -0.006885528564453125, -0.0007839202880859375, -0.023773193359375, -0.00835418701171875, -0.006374359130859375, -0.046356201171875, -0.03125, 0.017669677734375, 0.004428863525390625, -0.027984619140625, 0.028778076171875, 0.050933837890625, -0.01538848876953125, -0.01284027099609375, 0.0084381103515625, -0.03521728515625, -0.004512786865234375, -0.024261474609375, 0.01203155517578125, 0.0167694091796875, -0.032928466796875, -0.00919342041015625, 0.0457763671875, 0.046600341796875, -0.0009613037109375, -0.004375457763671875, 0.0143585205078125, -0.02227783203125, -0.0333251953125, 0.0016984939575195312, -0.01218414306640625, 0.01166534423828125, 0.031494140625, 0.0209808349609375, 0.00769805908203125, 0.004795074462890625, 0.058349609375, -0.0322265625, 0.0123138427734375, -0.0010976791381835938, -0.057403564453125, -0.042144775390625, 0.0251617431640625, 0.0291290283203125, -0.04132080078125, -0.0286865234375, 0.06683349609375, 0.062469482421875, 0.035675048828125, -0.0303497314453125, 0.03912353515625, -0.01177978515625, 0.005565643310546875, 0.0264129638671875, -0.032470703125, -0.042999267578125, -0.0160980224609375, -0.0279541015625, 0.056488037109375, 0.0305328369140625, 0.005451202392578125, -0.01194000244140625, 0.020355224609375, 0.00897216796875, -0.0103302001953125, -0.0093231201171875, 0.003498077392578125, 0.015625, 0.05908203125, 0.00731658935546875, 0.0946044921875, -0.0306549072265625, -0.0274810791015625, -0.0241851806640625, 0.033294677734375, -0.0237274169921875, -0.0175628662109375, -0.0079193115234375, -0.046600341796875, 0.0248565673828125, -0.02056884765625, 0.004810333251953125, 0.025146484375, 0.0289459228515625, -0.004932403564453125, -0.03155517578125, 0.020751953125, 0.036163330078125, -0.0038700103759765625, 0.04595947265625, -0.037445068359375, -0.0268402099609375, 0.0291748046875, 0.0237274169921875, -0.0177001953125, -0.035736083984375, -0.01995849609375, 0.020111083984375, -0.01430511474609375, -0.01198577880859375, 0.034637451171875, 0.032806396484375, -0.0003104209899902344, 0.04052734375, 0.0172576904296875, 0.006893157958984375, -0.053314208984375, -0.0271148681640625, -0.006931304931640625, 0.02227783203125, -0.005496978759765625, -0.004241943359375, -0.0014734268188476562, 0.0206451416015625, -0.05291748046875, 0.0026149749755859375, -0.007537841796875, 0.040435791015625, -0.0170135498046875, 0.0092620849609375, -0.0170135498046875, 0.032928466796875, 0.026275634765625, -0.02783203125, -0.0028228759765625, -0.0251007080078125, 0.006298065185546875, -0.034393310546875, -0.0758056640625, 0.0237579345703125, -0.03460693359375, 0.05511474609375, 0.0004134178161621094, 0.05096435546875, -0.01374053955078125, -0.027740478515625, -0.00952911376953125, -0.0233612060546875, 0.051361083984375, 0.0098114013671875, -0.0309906005859375, -0.0240325927734375, 0.01416015625, 0.00443267822265625, -0.04425048828125, 0.031951904296875, -0.0169830322265625, -0.031829833984375, -0.052642822265625, -0.009002685546875, -0.01416015625, 0.00865936279296875, 0.005596160888671875, 0.044891357421875, 0.0316162109375, 0.0287322998046875, 0.01326751708984375, 0.032501220703125, 0.05413818359375, -0.0309906005859375, 0.01448822021484375, -0.00304412841796875, 0.034210205078125, 0.06427001953125, -0.0059051513671875, -0.0157470703125, 0.01471710205078125, -0.0660400390625, 0.0200042724609375, 0.0237884521484375, -0.00475311279296875, 0.01837158203125, -0.0092010498046875, -0.0188446044921875, -0.0100860595703125, -0.06707763671875, -0.024932861328125, -0.032684326171875, 0.042510986328125, -0.00273895263671875, 0.05279541015625, 0.033905029296875, -0.0224761962890625, -0.01282501220703125, -0.0002231597900390625, 0.0187530517578125, 0.005725860595703125, 0.027923583984375, 0.02606201171875, 0.02099609375, -0.023040771484375, -0.031005859375, 0.038238525390625, 0.0164947509765625, -0.0177154541015625, 0.03778076171875, -0.0426025390625, -0.007633209228515625, -0.0188446044921875, -0.051239013671875, -0.003208160400390625, -0.004505157470703125, 0.0288848876953125, -0.0194091796875, -0.006610870361328125, 0.033843994140625, -0.03955078125, 0.07379150390625, -0.0021686553955078125, -0.0266876220703125, 0.04302978515625, -0.007633209228515625, 0.0189361572265625, -0.0249176025390625, 0.0224456787109375, 0.043212890625, -0.01253509521484375, 0.0037136077880859375, 0.00262451171875, 0.01763916015625, 0.0310211181640625, -0.002399444580078125, -0.0117034912109375, 0.00365447998046875, -0.0369873046875, -0.011566162109375, 0.01503753662109375, 0.049560546875, -0.05828857421875, -0.050811767578125, -0.0239715576171875, 0.0028133392333984375, -0.11260986328125, -0.08013916015625, -0.025482177734375, -0.0039520263671875, -0.0174560546875, -0.010772705078125, -0.0018682479858398438, 0.01375579833984375, -0.01287078857421875, 0.01132965087890625, -0.03765869140625, -0.006702423095703125, -0.059051513671875, -0.050994873046875, -0.0537109375, 0.031585693359375, -0.01444244384765625, 0.0204620361328125, -0.0052947998046875, 0.06768798828125, -0.0268707275390625, -0.0693359375, -0.0823974609375, -0.039794921875, -0.00189208984375, -0.03173828125, 0.016387939453125, -0.03955078125, 0.0031223297119140625, -0.00835418701171875, 0.00785064697265625, 0.02337646484375, -0.01983642578125, -0.006145477294921875, -0.0207061767578125, 0.003192901611328125, -0.0215911865234375, 0.056915283203125, 0.044097900390625, -0.03533935546875, -0.002582550048828125, -0.041168212890625, -0.021392822265625, 0.0014104843139648438, -0.035614013671875, 0.0158538818359375, -0.0443115234375, 0.00042724609375, 0.032562255859375, 0.031036376953125, 0.0056610107421875, -0.0253143310546875, 0.029937744140625, -0.064697265625, 0.06439208984375, 0.01546478271484375, 0.0335693359375, -0.0113067626953125, -0.029632568359375, -0.034759521484375, 0.0283355712890625, -0.0233306884765625, 0.030242919921875, 0.00014269351959228516, 0.053985595703125, -0.024200439453125, -0.032440185546875, 0.02166748046875, -0.035736083984375, 0.005832672119140625, -0.010772705078125, 0.0059051513671875, 0.00647735595703125, 0.05340576171875, -0.06610107421875, -0.00798797607421875, 0.0213470458984375, 0.0087890625, -0.00785064697265625, -0.0233917236328125, -0.06561279296875, -0.0221099853515625, -0.058074951171875, 0.02044677734375, 0.0264739990234375, -0.0162811279296875, -0.022247314453125, 0.047454833984375, -0.03228759765625, -0.0083160400390625, 0.046875, -0.051971435546875, 0.0118560791015625, 0.0289154052734375, 0.006862640380859375, 0.0016536712646484375, -0.0258331298828125, -0.0301513671875, -0.07098388671875, 0.00754547119140625, -0.08306884765625, 0.07110595703125, 0.0682373046875, -0.046722412109375, -0.038482666015625, 0.0090789794921875, 0.005443572998046875, -0.034149169921875, 0.021026611328125, 0.0011663436889648438, 0.0102996826171875, 0.021453857421875, -0.0055389404296875, -0.01479339599609375, -0.0031490325927734375, 0.01262664794921875, -0.06549072265625, 0.02996826171875, -0.0238037109375, 0.00672149658203125, 0.0159912109375, -0.04864501953125, -0.055633544921875, -0.041229248046875, -0.0152435302734375, 0.00853729248046875, -0.045806884765625, 0.036376953125, -0.0251922607421875, -0.0543212890625, 0.054229736328125, 0.00641632080078125, -0.032073974609375, 0.0022220611572265625, 0.051727294921875, 0.01788330078125, -0.035247802734375, -0.039031982421875, -0.004467010498046875, 0.061279296875, -0.01291656494140625, -0.012603759765625, 0.028076171875, -0.03851318359375, 0.021575927734375, 0.0225372314453125, -0.00675201416015625, -0.005939483642578125, 0.016143798828125, 0.025177001953125, 0.0283966064453125, -0.0279083251953125, -0.0004982948303222656, 0.037933349609375, 0.014373779296875, -0.031158447265625, -0.01500701904296875, -0.006511688232421875, 0.04541015625, -0.0176239013671875, 0.01488494873046875, -0.049102783203125, 0.01031494140625, -0.01432037353515625, 0.038543701171875, 0.002166748046875, 0.00975799560546875, 0.0171966552734375, -0.0305938720703125, 0.00750732421875, 0.01023101806640625, 0.005359649658203125, -0.003322601318359375, 0.0063323974609375, 0.021331787109375, 0.019500732421875, 0.00795745849609375, 0.0109405517578125, -0.0025844573974609375, 0.029022216796875, 0.00868988037109375, -0.03253173828125, 0.006786346435546875, 0.009613037109375, 0.027130126953125, 0.0139617919921875, 0.006011962890625, 0.04718017578125, 0.0248565673828125, -0.040008544921875, -0.00922393798828125, -0.0303955078125, 0.01030731201171875, -0.063232421875, -0.033599853515625, -0.010040283203125, -0.002689361572265625, -0.0001437664031982422, 0.03009033203125, 0.01088714599609375, 0.0183258056640625, -0.040863037109375, 0.04144287109375, 0.0009188652038574219, 0.01285552978515625, 0.0027675628662109375, 0.033538818359375, 0.01593017578125, -0.0167999267578125, 0.0129852294921875, -0.0022716522216796875, -0.01110076904296875, -0.01506805419921875, 0.00943756103515625, -0.02105712890625, 0.01416778564453125, 0.036376953125, 0.0074615478515625, -0.003383636474609375, 0.0377197265625, 0.035736083984375, -0.04119873046875, 0.0154266357421875, 0.017578125, -0.0090179443359375, -0.0237579345703125, -0.0188446044921875, 0.015045166015625, -0.054534912109375, 0.032135009765625, 0.009765625, 0.0172119140625, -0.0206146240234375, -0.037872314453125, 0.001049041748046875, -0.0159912109375, -0.0031948089599609375, -0.03546142578125, -0.0173797607421875, -0.00782012939453125, 0.00809478759765625, 0.0214080810546875, -0.0005288124084472656, 0.033203125, -0.00446319580078125, -0.031951904296875, 0.0263214111328125, 0.0013418197631835938, 0.025848388671875, -0.01641845703125, -0.08184814453125, -0.003795623779296875, -0.064453125, -0.016571044921875, 0.00797271728515625, -0.036163330078125, -0.0430908203125, -0.0293426513671875, 0.0162200927734375, 0.0268096923828125, 0.01432037353515625, 0.01045989990234375, -0.028839111328125, 0.00548553466796875, 0.00856781005859375, 0.052703857421875, -0.00624847412109375, 0.07379150390625, -0.012115478515625, 0.072021484375, 0.015228271484375, 0.01302337646484375, -0.06201171875, -0.007190704345703125, 0.032989501953125, -0.006870269775390625, -0.018646240234375, -0.0215606689453125, -0.03265380859375, -0.04461669921875, 0.0226898193359375, -0.0228729248046875, 0.0168609619140625, -0.006343841552734375, 0.0024566650390625, -0.0120849609375, -0.01068878173828125, -0.006134033203125, -0.007610321044921875, 0.0208892822265625, -0.01332855224609375, -0.03460693359375, -0.0013027191162109375, -0.002346038818359375, -0.0166015625, 0.0052337646484375, -0.041839599609375, 0.007965087890625, -0.06658935546875, 0.07623291015625, 0.056610107421875, 0.016021728515625, 0.03973388671875, -0.01025390625, 0.0233917236328125, 0.01259613037109375, -0.014373779296875, -0.0300750732421875, 0.01776123046875, 0.049652099609375, 0.0023632049560546875, -0.0164794921875, 0.03314208984375, -0.0257720947265625, 0.009185791015625, 0.022186279296875, 0.05181884765625, -0.0494384765625, 0.023651123046875, 0.0189666748046875, -0.0035228729248046875, 0.0224761962890625, 0.034027099609375, -0.0384521484375, -0.0265960693359375, 0.03045654296875, -0.0526123046875, -0.004974365234375, 0.025848388671875, 0.01568603515625, 0.0004799365997314453, -0.0272216796875, 0.042205810546875, 0.002544403076171875, -0.056640625, 0.01145172119140625, 0.032989501953125, -0.019561767578125, -0.0122833251953125, 0.029266357421875, -0.00463104248046875, -0.01044464111328125, -0.065185546875, 0.0148773193359375, -0.000530242919921875, -0.031951904296875, -0.01513671875, -0.05255126953125, 0.0440673828125, 0.06695556640625, -0.047454833984375, 0.031646728515625, 0.025604248046875, 0.0225830078125, -0.0277557373046875, -0.0114288330078125, 0.029754638671875, 0.068115234375, -0.034393310546875, 0.0262603759765625, -0.0036754608154296875, -0.01482391357421875, -0.022308349609375, -0.0423583984375, 0.1121826171875, -0.045013427734375, -0.0230560302734375, 0.0020847320556640625, 0.031005859375, 0.002948760986328125, 0.0013055801391601562, -0.017181396484375, -0.0030059814453125, 0.042694091796875, -0.037567138671875, -0.00951385498046875, 0.01294708251953125, -0.038238525390625, -0.04180908203125, 0.056854248046875, 0.016021728515625, 0.01358795166015625, 0.01427459716796875, 0.0220184326171875, -0.0256195068359375, 0.00986480712890625, -0.031646728515625, 0.02972412109375, -0.019805908203125, 0.03558349609375, -0.01873779296875, 0.00811767578125, 0.005359649658203125, -0.005954742431640625, 0.030059814453125, 0.005878448486328125, 0.00360107421875, -0.0200347900390625, 0.0234222412109375, 0.052154541015625, -0.0025482177734375, 0.0016946792602539062, -0.015838623046875, 0.019073486328125, -0.018798828125, -0.005702972412109375, 0.038360595703125, -0.0288238525390625, -0.053558349609375, 0.01052093505859375, 0.02203369140625, 0.0266265869140625, -0.0263671875, 0.00435638427734375, 0.005947113037109375, -0.01332855224609375, 0.007022857666015625, 0.0002808570861816406, -0.0297393798828125, 0.0819091796875, 0.048492431640625, -0.0457763671875, -0.0219573974609375, -0.04327392578125, 0.0472412109375, 0.0289764404296875, 0.046722412109375, 0.042816162109375, 0.03875732421875, -0.016357421875, -0.01154327392578125, 0.036590576171875, 0.0169830322265625, -0.06048583984375, 0.06036376953125, 0.0655517578125, 0.006519317626953125, -0.0251007080078125, 0.04669189453125, 0.05712890625, 0.07208251953125, -0.06671142578125, 0.01406097412109375, 0.02789306640625, 0.01316070556640625, -0.00617218017578125, -0.0419921875, 0.00542449951171875, -0.038330078125, -0.03338623046875, -0.0242156982421875, -0.0243682861328125, 0.0159454345703125, 0.038818359375, -0.005523681640625, -0.03814697265625, -0.0026397705078125, -0.03717041015625, -0.0146942138671875, -0.0126800537109375, -0.004833221435546875, 0.046173095703125, 0.0159759521484375, 0.0117034912109375, -0.045501708984375, 0.0023593902587890625, 0.00112152099609375, 0.023040771484375, 0.002704620361328125, 0.01523590087890625, -0.0479736328125, -0.04412841796875, 0.0347900390625, 0.03778076171875, 0.010650634765625, 0.0266876220703125, 0.0230865478515625, -0.034454345703125, -0.048919677734375, 0.00046372413635253906, 0.00524139404296875, -0.0469970703125, 0.01568603515625, -0.03045654296875, -0.0180816650390625, 0.006855010986328125, -0.021270751953125, -0.0002834796905517578, -0.03582763671875, 0.06353759765625, -0.04815673828125, 0.06793212890625, -0.003940582275390625, 0.034271240234375, 0.06170654296875, 0.0162506103515625, 0.005252838134765625, -0.00411224365234375, -0.049896240234375, -0.001644134521484375, 0.0034046173095703125, -0.06884765625, -0.00275421142578125, 0.03369140625, -0.0309295654296875, 0.0082855224609375, 0.007465362548828125, -0.00791168212890625, 0.01983642578125, -0.0219573974609375, 0.014434814453125, 0.0193328857421875, 0.004486083984375, 0.004901885986328125, -0.00818634033203125, -0.011016845703125, 0.006031036376953125, 0.04229736328125, 0.07037353515625, -0.00759124755859375, 0.0200042724609375, 0.04364013671875, -0.033416748046875, -0.00969696044921875, -0.033233642578125, -0.02410888671875, 0.0262451171875, -0.025909423828125, -0.0274505615234375, 0.007251739501953125, -0.028717041015625, 0.00045108795166015625, 0.0217132568359375, -0.01898193359375, 0.01285552978515625, -0.04241943359375, 0.019561767578125, -0.01197052001953125, 0.01416015625, -0.0247955322265625, 0.0261077880859375, -0.0092315673828125, -0.0226593017578125, 0.035614013671875, -0.04376220703125, -0.053680419921875, -0.0245819091796875, 0.017181396484375, -0.026947021484375, 0.0206298828125, 0.040130615234375, 0.031707763671875, 0.042816162109375, -0.044403076171875, 0.001972198486328125, -0.025634765625, -0.024078369140625, -0.01325225830078125, 0.0198974609375, -0.01163482666015625, -0.0174407958984375, -0.018646240234375, 0.00563812255859375, -0.009124755859375, 0.0111083984375, -0.07733154296875, -0.0160675048828125, 0.01690673828125, -0.0006527900695800781, 0.0171051025390625, -0.005367279052734375, 0.0010004043579101562, -0.0380859375, -0.01104736328125, 0.01061248779296875, -0.038726806640625, -0.0110015869140625, -0.019805908203125, 0.0099029541015625, 0.024993896484375, 0.00518035888671875, -0.050537109375, 0.011383056640625, -0.01222991943359375, 0.061004638671875, -0.01360321044921875, -0.0180206298828125, -0.01296234130859375, 0.0406494140625, -0.00839996337890625, 0.0093994140625, -0.0372314453125, -0.028045654296875, -0.0189361572265625, 0.0238037109375, 0.043548583984375, -0.0233154296875, -0.0227203369140625, 0.034759521484375, 0.006824493408203125, 0.08953857421875, -0.0008339881896972656, 0.01059722900390625, 0.037994384765625, 0.00434112548828125, -0.04376220703125, -0.0765380859375, 0.0008587837219238281, -0.03424072265625, 0.00925445556640625, -0.0017566680908203125, -0.033905029296875, -0.028289794921875, -0.054351806640625, -0.10284423828125, 0.036468505859375, -0.01282501220703125, -0.048583984375, -0.0166168212890625, 0.0018138885498046875, 0.002292633056640625, -0.0113983154296875, -0.002208709716796875, -0.0576171875, -0.031463623046875, 0.01050567626953125, 0.02703857421875, 0.06451416015625, 0.0184173583984375, 0.0035648345947265625, -0.0276947021484375, 0.005573272705078125, -0.0267791748046875, 0.044219970703125, 0.0029468536376953125, -0.012908935546875, 0.004734039306640625, 0.04156494140625, -0.043365478515625, -0.050933837890625, -0.0192718505859375, 0.011505126953125, -0.005985260009765625, -0.04266357421875, -0.03472900390625, -0.02569580078125, 0.0511474609375, 0.042816162109375, 0.00879669189453125, -0.020233154296875, 0.0269317626953125, -0.0024776458740234375, -0.02593994140625, -0.005817413330078125, 0.002002716064453125, -0.0246124267578125, -0.0159912109375, -0.0022754669189453125, -0.00975799560546875, 0.017486572265625, -0.0157012939453125, -0.011016845703125, 0.002040863037109375, 0.0303497314453125, -0.0038509368896484375, -0.0170745849609375, 0.00585174560546875, 0.044219970703125, -0.006103515625, 0.08148193359375, -0.01324462890625, -0.00096893310546875, 0.07513427734375, 0.042236328125, -0.0105133056640625, -0.0186004638671875, 0.006244659423828125, -0.003948211669921875, 0.0089263916015625, 0.0169525146484375, 0.0234222412109375, -0.007904052734375, -0.0240478515625, -0.00521087646484375, 0.006313323974609375, -0.026824951171875, 0.0159149169921875, -0.005512237548828125, 0.003910064697265625, 0.07049560546875, 0.003337860107421875, 0.0200347900390625, -0.030487060546875, 0.0631103515625, -0.001712799072265625, -0.0212860107421875, 0.030181884765625, -0.01464080810546875, 0.0120391845703125, 0.013916015625, 0.04681396484375, -0.005706787109375, 0.00807952880859375, 0.021759033203125, 0.0028667449951171875, -0.0024471282958984375 ]
73d265eeaec6677b2f4cd91d7e4cf22e23951748
Wordpress Stackexchange Q: Multi user site and image captions On multi user sites when authors select images from the media library they can choose images that other authors have uploaded. The problem is that they can edit the caption and it changes it for both the post they're making and any previous posts that have the same image and caption, this doesn't make any sense. Is there a way to stop authors from user images uploaded by other authors or fixing the image caption problem? A: I've tested this in WP 4.5 with the default author role and this issue doesn't seem to exist anymore. My findings: 1 As an author you cannot edit media properties directly. 2 As an author you can edit media properties when you are inserting an image in a post. This will cause the image to be included with an alt tag containing the edit, but the edit will not be stored in the database.
Q: Multi user site and image captions On multi user sites when authors select images from the media library they can choose images that other authors have uploaded. The problem is that they can edit the caption and it changes it for both the post they're making and any previous posts that have the same image and caption, this doesn't make any sense. Is there a way to stop authors from user images uploaded by other authors or fixing the image caption problem? A: I've tested this in WP 4.5 with the default author role and this issue doesn't seem to exist anymore. My findings: 1 As an author you cannot edit media properties directly. 2 As an author you can edit media properties when you are inserting an image in a post. This will cause the image to be included with an alt tag containing the edit, but the edit will not be stored in the database.
wordpress
{ "language": "en", "length": 158, "provenance": "stackexchange_00019.jsonl.gz:431807", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/97441" }
[ 0.0751953125, 0.0072174072265625, 0.045745849609375, 0.0204315185546875, 0.004642486572265625, -0.0253753662109375, 0.0689697265625, -0.0758056640625, 0.02935791015625, 0.037200927734375, -0.006763458251953125, 0.01605224609375, -0.00927734375, -0.01294708251953125, -0.049713134765625, 0.00655364990234375, -0.00586700439453125, 0.0121612548828125, 0.00272369384765625, -0.00911712646484375, -0.006244659423828125, -0.0167083740234375, -0.0010089874267578125, -0.0283203125, -0.0016956329345703125, 0.0207366943359375, 0.0236968994140625, -0.018218994140625, 0.00537872314453125, -0.008148193359375, 0.017669677734375, -0.0165863037109375, 0.0251922607421875, 0.0087127685546875, -0.0474853515625, 0.0157318115234375, -0.003658294677734375, 0.004528045654296875, 0.007175445556640625, 0.00115203857421875, 0.01499176025390625, 0.0010995864868164062, 0.008819580078125, 0.022796630859375, -0.01465606689453125, -0.0438232421875, 0.054962158203125, -0.019683837890625, 0.044921875, -0.01215362548828125, 0.01192474365234375, -0.01013946533203125, 0.01611328125, -0.0227203369140625, -0.04705810546875, -0.04010009765625, 0.0308685302734375, 0.0167083740234375, 0.0550537109375, -0.033843994140625, -0.0675048828125, -0.02191162109375, 0.0232696533203125, -0.046173095703125, 0.03289794921875, -0.00885772705078125, 0.023651123046875, 0.03057861328125, -0.005706787109375, 0.0283050537109375, 0.004016876220703125, -0.0159912109375, 0.016265869140625, -0.073486328125, 0.00896453857421875, 0.053985595703125, -0.045928955078125, -0.0179443359375, 0.029998779296875, -0.0323486328125, 0.03192138671875, -0.02215576171875, -0.012481689453125, 0.0025272369384765625, 0.0035991668701171875, 0.0235595703125, 0.01702880859375, -0.0082244873046875, -0.032745361328125, 0.04168701171875, -0.01898193359375, -0.047210693359375, -0.0113677978515625, 0.05975341796875, 0.01413726806640625, 0.017181396484375, 0.042449951171875, 0.0648193359375, 0.004611968994140625, -0.00408172607421875, -0.033447265625, -0.021087646484375, -0.021697998046875, -0.0218963623046875, 0.018218994140625, -0.0139923095703125, 0.007137298583984375, -0.0221405029296875, 0.03759765625, 0.028350830078125, -0.037078857421875, 0.060821533203125, 0.007526397705078125, -0.005306243896484375, -0.020294189453125, 0.006866455078125, -0.01244354248046875, 0.02545166015625, 0.00553131103515625, 0.0287322998046875, -0.017364501953125, -0.0004057884216308594, 0.00923919677734375, -0.006320953369140625, 0.0282135009765625, 0.00384521484375, -0.0276336669921875, 0.0008134841918945312, -0.028289794921875, -0.01082611083984375, -0.045135498046875, 0.019989013671875, 0.0843505859375, 0.04888916015625, 0.02105712890625, -0.0081024169921875, -0.0232696533203125, -0.00859832763671875, -0.0109710693359375, 0.01467132568359375, 0.00765228271484375, -0.035308837890625, 0.01532745361328125, -0.005245208740234375, -0.0159912109375, 0.04156494140625, -0.00521087646484375, 0.004749298095703125, -0.00064849853515625, -0.06414794921875, -0.00215911865234375, -0.06402587890625, 0.0008420944213867188, -0.0013036727905273438, 0.08544921875, -0.08251953125, 0.0633544921875, -0.06036376953125, 0.06402587890625, -0.0265655517578125, 0.0311431884765625, -0.000705718994140625, 0.0269622802734375, 0.046630859375, 0.00632476806640625, -0.004764556884765625, -0.00984954833984375, -0.0136260986328125, 0.01898193359375, 0.024810791015625, -0.0657958984375, -0.037811279296875, 0.0258026123046875, 0.038604736328125, -0.007579803466796875, 0.05230712890625, -0.0037441253662109375, 0.00679779052734375, 0.0113677978515625, 0.0760498046875, 0.03265380859375, -0.01983642578125, 0.04486083984375, -0.022613525390625, -0.0438232421875, -0.00002872943878173828, -0.00637054443359375, 0.056732177734375, 0.0386962890625, 0.024871826171875, -0.0092926025390625, -0.01454925537109375, 0.00879669189453125, -0.0122222900390625, 0.02655029296875, -0.01076507568359375, -0.0236053466796875, -0.001911163330078125, -0.0017576217651367188, -0.03875732421875, 0.03564453125, -0.0208587646484375, 0.0173797607421875, -0.019012451171875, -0.049163818359375, -0.0139923095703125, -0.009124755859375, 0.006183624267578125, -0.0168914794921875, 0.0198211669921875, 0.0268096923828125, -0.0093841552734375, -0.022369384765625, 0.00954437255859375, -0.0035686492919921875, -0.0187225341796875, -0.01276397705078125, 0.0472412109375, 0.0278778076171875, 0.01019287109375, 0.045196533203125, -0.04547119140625, 0.03533935546875, 0.0025348663330078125, 0.03216552734375, 0.0014629364013671875, -0.0269775390625, -0.0125274658203125, 0.019805908203125, 0.01145172119140625, -0.004970550537109375, 0.039459228515625, 0.0082550048828125, 0.0057830810546875, -0.03192138671875, -0.026702880859375, -0.02117919921875, -0.06622314453125, 0.01349639892578125, 0.05523681640625, 0.0309295654296875, -0.014190673828125, 0.0253143310546875, 0.04132080078125, 0.007808685302734375, 0.020660400390625, 0.052337646484375, -0.0210418701171875, 0.036041259765625, 0.02801513671875, -0.0220184326171875, -0.026031494140625, 0.0212860107421875, -0.08380126953125, 0.051605224609375, 0.0266571044921875, -0.010162353515625, -0.0201263427734375, -0.00527191162109375, 0.002132415771484375, 0.0080413818359375, -0.0282745361328125, -0.03802490234375, 0.0018606185913085938, -0.009521484375, -0.0234832763671875, 0.00514984130859375, 0.0005741119384765625, -0.02313232421875, -0.0187530517578125, 0.0221710205078125, -0.0291748046875, 0.003688812255859375, 0.040557861328125, 0.015533447265625, 0.033111572265625, -0.012969970703125, -0.0157318115234375, -0.006134033203125, 0.0296630859375, -0.0250396728515625, -0.018157958984375, -0.058349609375, -0.006984710693359375, 0.003406524658203125, -0.03643798828125, -0.0024547576904296875, 0.021636962890625, -0.0478515625, -0.04278564453125, -0.0054473876953125, 0.0228729248046875, 0.0063018798828125, -0.003925323486328125, 0.01131439208984375, -0.00937652587890625, -0.026397705078125, -0.08929443359375, 0.07464599609375, -0.05194091796875, 0.05914306640625, 0.1019287109375, -0.0020008087158203125, 0.042266845703125, -0.0029354095458984375, 0.0005221366882324219, 0.0207061767578125, -0.00844573974609375, -0.0052642822265625, 0.00543212890625, -0.038604736328125, 0.0027332305908203125, 0.014862060546875, 0.00022017955780029297, -0.010528564453125, -0.0148162841796875, -0.01953125, -0.0037288665771484375, -0.045654296875, -0.0181427001953125, 0.013397216796875, -0.039581298828125, -0.005603790283203125, -0.00028228759765625, -0.0186920166015625, -0.02197265625, 0.034881591796875, -0.01104736328125, -0.0203399658203125, -0.0249176025390625, -0.01568603515625, -0.04559326171875, -0.0465087890625, -0.0117645263671875, -0.0064697265625, 0.0084075927734375, -0.0144500732421875, 0.0726318359375, -0.0120391845703125, -0.0274505615234375, -0.002994537353515625, -0.01348876953125, 0.023773193359375, -0.013580322265625, 0.0231475830078125, -0.0309295654296875, -0.0008139610290527344, -0.0034046173095703125, 0.036224365234375, 0.033721923828125, -0.0286865234375, 0.007404327392578125, 0.01727294921875, -0.013824462890625, 0.039031982421875, 0.03179931640625, -0.036346435546875, 0.02349853515625, 0.051910400390625, -0.0240478515625, -0.01666259765625, -0.031890869140625, -0.033233642578125, 0.05621337890625, 0.0240631103515625, 0.004222869873046875, -0.0245361328125, 0.045074462890625, 0.04644775390625, 0.032379150390625, -0.01508331298828125, -0.0193328857421875, 0.04022216796875, 0.018310546875, 0.051483154296875, -0.031524658203125, -0.00467681884765625, -0.0236663818359375, 0.0115509033203125, -0.0296630859375, 0.0269012451171875, -0.047515869140625, 0.048248291015625, -0.090576171875, 0.0102386474609375, 0.01175689697265625, -0.0293731689453125, 0.049530029296875, -0.046661376953125, -0.01141357421875, -0.040008544921875, 0.047027587890625, -0.026702880859375, -0.0294647216796875, 0.025054931640625, 0.0243682861328125, -0.0298004150390625, 0.00701141357421875, -0.019073486328125, -0.0187835693359375, 0.022216796875, -0.03021240234375, -0.0163726806640625, -0.0121917724609375, -0.0215301513671875, 0.044097900390625, 0.0211334228515625, -0.00514984130859375, 0.02593994140625, 0.01500701904296875, 0.0211181640625, 0.01151275634765625, -0.00792694091796875, 0.018798828125, -0.018585205078125, -0.02825927734375, -0.13720703125, -0.03533935546875, -0.01641845703125, 0.10595703125, -0.042755126953125, 0.06005859375, -0.05194091796875, 0.07574462890625, -0.0008063316345214844, 0.04681396484375, -0.030914306640625, -0.0148162841796875, 0.0205078125, -0.0029544830322265625, -0.01385498046875, -0.01432037353515625, 0.013641357421875, -0.0256500244140625, -0.0372314453125, -0.018768310546875, -0.051971435546875, -0.0284881591796875, -0.040924072265625, -0.017730712890625, -0.060699462890625, -0.01403045654296875, 0.01041412353515625, 0.00864410400390625, 0.0005121231079101562, -0.0020618438720703125, -0.0284576416015625, -0.0576171875, 0.00934600830078125, 0.0034465789794921875, 0.006114959716796875, 0.00830078125, 0.047698974609375, 0.007808685302734375, -0.01139068603515625, -0.032562255859375, -0.02154541015625, 0.010223388671875, -0.00829315185546875, 0.0235443115234375, 0.0116424560546875, 0.01184844970703125, -0.006511688232421875, -0.034393310546875, -0.0275421142578125, -0.0307464599609375, 0.03961181640625, -0.00020384788513183594, -0.0236663818359375, 0.00978851318359375, -0.0301361083984375, 0.047607421875, 0.00739288330078125, -0.01557159423828125, 0.0296173095703125, -0.020233154296875, -0.005706787109375, 0.0119171142578125, -0.0157318115234375, -0.0177154541015625, -0.05078125, 0.017333984375, -0.04620361328125, -0.003643035888671875, -0.01282501220703125, 0.00360107421875, -0.0104827880859375, -0.00244140625, 0.0034656524658203125, -0.036468505859375, -0.046661376953125, -0.0301055908203125, 0.047576904296875, -0.06982421875, 0.00030684471130371094, 0.0215301513671875, -0.01165771484375, 0.04388427734375, -0.00667572021484375, -0.036865234375, 0.0018243789672851562, -0.004367828369140625, 0.051849365234375, 0.0182952880859375, 0.01861572265625, 0.00970458984375, -0.00390625, 0.00922393798828125, -0.01617431640625, -0.0258026123046875, 0.00801849365234375, -0.037567138671875, 0.018646240234375, -0.0034084320068359375, 0.0010271072387695312, 0.05755615234375, 0.005008697509765625, -0.028472900390625, 0.032928466796875, -0.0118865966796875, 0.03662109375, 0.05419921875, -0.0070953369140625, 0.01132965087890625, 0.05596923828125, -0.0278472900390625, 0.006221771240234375, -0.002841949462890625, -0.016937255859375, 0.0225677490234375, 0.0226593017578125, 0.05169677734375, 0.032135009765625, -0.025787353515625, -0.0217437744140625, -0.0799560546875, -0.0484619140625, 0.041839599609375, -0.0302276611328125, -0.094970703125, -0.041412353515625, 0.011016845703125, 0.0256195068359375, -0.0178680419921875, -0.0109710693359375, -0.043853759765625, -0.0242462158203125, -0.01200103759765625, -0.0192413330078125, -0.04449462890625, 0.0144805908203125, 0.022125244140625, -0.015350341796875, -0.00432586669921875, -0.02276611328125, 0.0212554931640625, -0.0030193328857421875, -0.0146636962890625, -0.0211639404296875, 0.06158447265625, -0.050506591796875, -0.0191497802734375, -0.03192138671875, 0.0496826171875, -0.071044921875, 0.0207672119140625, 0.024139404296875, 0.023040771484375, 0.0322265625, -0.006717681884765625, -0.037750244140625, -0.0279998779296875, -0.003482818603515625, -0.043670654296875, -0.004131317138671875, -0.0302276611328125, 0.006580352783203125, 0.0290374755859375, -0.0278778076171875, -0.0284576416015625, -0.01279449462890625, 0.00853729248046875, 0.00240325927734375, 0.03619384765625, -0.03515625, 0.00911712646484375, 0.03656005859375, 0.0198974609375, -0.0008420944213867188, 0.01248931884765625, 0.0167694091796875, -0.03070068359375, -0.020172119140625, -0.099609375, -0.01097869873046875, 0.0244293212890625, -0.014190673828125, 0.06597900390625, 0.014678955078125, 0.0194091796875, 0.0162811279296875, -0.0411376953125, -0.00036263465881347656, -0.01824951171875, 0.0309295654296875, -0.031524658203125, -0.0179290771484375, 0.0188751220703125, -0.010345458984375, 0.0806884765625, -0.0101165771484375, -0.011749267578125, 0.0144195556640625, -0.0292205810546875, 0.029632568359375, 0.02899169921875, -0.00385284423828125, -0.0477294921875, 0.0037670135498046875, -0.031463623046875, 0.0152587890625, 0.01385498046875, 0.0023555755615234375, 0.07000732421875, -0.002964019775390625, -0.0206756591796875, -0.0223388671875, -0.01264190673828125, -0.0157470703125, 0.0045623779296875, 0.0012121200561523438, -0.018798828125, 0.0239105224609375, 0.0214080810546875, 0.0699462890625, -0.021697998046875, -0.0018491744995117188, 0.01788330078125, -0.04010009765625, 0.007747650146484375, -0.007480621337890625, -0.0189208984375, -0.01296234130859375, 0.03790283203125, -0.06268310546875, -0.024871826171875, 0.01470947265625, -0.0212860107421875, 0.0016574859619140625, 0.017333984375, 0.037109375, 0.019805908203125, -0.0170440673828125, -0.020050048828125, 0.040283203125, -0.00390625, -0.01169586181640625, -0.00567626953125, -0.0006017684936523438, -0.028594970703125, -0.037811279296875, 0.0041656494140625, -0.01087188720703125, 0.01031494140625, -0.022613525390625, 0.015869140625, 0.01462554931640625, 0.0565185546875, -0.0168304443359375, -0.0158843994140625, 0.054595947265625, -0.0567626953125, -0.01032257080078125, -0.01398468017578125, -0.0008525848388671875, 0.043182373046875, -0.01352691650390625, 0.0209808349609375, 0.0024776458740234375, -0.0048675537109375, -0.0101318359375, -0.0288238525390625, 0.028350830078125, -0.028900146484375, -0.0051422119140625, 0.047210693359375, 0.025970458984375, -0.0160980224609375, 0.0272979736328125, -0.00823211669921875, -0.0849609375, -0.0919189453125, 0.01525115966796875, -0.09674072265625, 0.00910186767578125, 0.039520263671875, -0.073486328125, 0.048004150390625, 0.0017919540405273438, 0.052703857421875, -0.00806427001953125, 0.01042938232421875, 0.0198822021484375, -0.0076446533203125, -0.030120849609375, 0.021087646484375, -0.04034423828125, 0.070556640625, -0.07366943359375, -0.01537322998046875, 0.004383087158203125, 0.06646728515625, 0.069091796875, 0.023345947265625, -0.050750732421875, -0.01373291015625, 0.0200042724609375, 0.0046539306640625, -0.0183868408203125, 0.0693359375, 0.01396942138671875, -0.013946533203125, 0.019866943359375, 0.010772705078125, 0.034088134765625, -0.020355224609375, -0.0027618408203125, 0.04217529296875, 0.0033779144287109375, 0.0008373260498046875, 0.006317138671875, 0.044525146484375, -0.056396484375, 0.00652313232421875, 0.04852294921875, -0.049407958984375, -0.01385498046875, 0.02886962890625, 0.012420654296875, -0.0004456043243408203, 0.06683349609375, -0.04071044921875, 0.055328369140625, -0.0015697479248046875, 0.015899658203125, 0.038604736328125, 0.018157958984375, 0.00001329183578491211, 0.05206298828125, 0.0257720947265625, 0.0577392578125, -0.005275726318359375, 0.01235198974609375, -0.0101776123046875, 0.0190887451171875, -0.07391357421875, 0.01104736328125, 0.038665771484375, 0.046417236328125, -0.0299835205078125, 0.0113525390625, 0.01666259765625, 0.01117706298828125, -0.0144500732421875, -0.03961181640625, -0.0078277587890625, -0.038116455078125, -0.0203399658203125, -0.0279541015625, 0.007640838623046875, 0.029083251953125, 0.007717132568359375, 0.004001617431640625, 0.015411376953125, -0.0196990966796875, 0.006511688232421875, -0.054840087890625, 0.01293182373046875, 0.0019702911376953125, 0.0301055908203125, 0.014373779296875, 0.0604248046875, 0.01568603515625, -0.0182647705078125, -0.032623291015625, 0.031036376953125, 0.00004488229751586914, 0.0172576904296875, -0.04315185546875, -0.04541015625, 0.02825927734375, 0.0274658203125, 0.00899505615234375, -0.00019693374633789062, 0.0234832763671875, 0.03961181640625, -0.033721923828125, -0.006725311279296875, 0.0614013671875, -0.013031005859375, 0.03192138671875, -0.035797119140625, 0.0638427734375, 0.02044677734375, -0.0007605552673339844, -0.0271453857421875, 0.022247314453125, 0.07904052734375, -0.0272979736328125, 0.0218963623046875, 0.004100799560546875, -0.01294708251953125, -0.005558013916015625, -0.01451873779296875, 0.0032558441162109375, -0.007068634033203125, -0.055419921875, 0.0033168792724609375, -0.0207977294921875, -0.046630859375, 0.01131439208984375, 0.037017822265625, -0.040618896484375, 0.019012451171875, -0.0474853515625, -0.009368896484375, 0.00487518310546875, -0.0258331298828125, 0.00322723388671875, -0.005096435546875, -0.0006933212280273438, -0.0133819580078125, -0.01216888427734375, 0.0023040771484375, 0.03497314453125, 0.00995635986328125, 0.00008940696716308594, 0.03985595703125, 0.005329132080078125, 0.003360748291015625, 0.0170745849609375, 0.01263427734375, -0.025970458984375, -0.0238037109375, 0.00952911376953125, -0.0390625, 0.006805419921875, 0.0031795501708984375, -0.01018524169921875, 0.08807373046875, 0.014312744140625, 0.021759033203125, 0.056884765625, 0.0030193328857421875, -0.013275146484375, 0.0028476715087890625, 0.0187835693359375, -0.0261077880859375, 0.027618408203125, -0.033355712890625, -0.03839111328125, 0.06072998046875, -0.01161956787109375, -0.0103607177734375, 0.0355224609375, 0.01531982421875, -0.0188446044921875, 0.0167999267578125, -0.020965576171875, 0.02545166015625, 0.032257080078125, -0.005931854248046875, -0.01678466796875, 0.024749755859375, -0.0005974769592285156, -0.00798797607421875, 0.032440185546875, 0.0014190673828125, 0.034423828125, -0.036865234375, 0.038238525390625, -0.00009489059448242188, 0.033935546875, -0.0159149169921875, -0.015838623046875, 0.011322021484375, 0.001117706298828125, -0.0158538818359375, 0.0225677490234375, -0.031707763671875, -0.066162109375, 0.0155181884765625, 0.006725311279296875, -0.0176849365234375, -0.003116607666015625, -0.037139892578125, -0.0170135498046875, 0.04571533203125, -0.0012598037719726562, -0.02996826171875, 0.0202178955078125, -0.038818359375, -0.0093994140625, 0.019805908203125, -0.069580078125, 0.01430511474609375, 0.037506103515625, -0.04864501953125, -0.045257568359375, -0.04400634765625, -0.02313232421875, -0.0614013671875, 0.027740478515625, 0.0213470458984375, -0.006160736083984375, -0.00934600830078125, 0.0692138671875, 0.025482177734375, 0.11126708984375, -0.03961181640625, -0.0333251953125, -0.044036865234375, 0.0227508544921875, 0.021728515625, -0.0164642333984375, -0.0094146728515625, -0.00048065185546875, -0.02838134765625, 0.0097808837890625, 0.00966644287109375, 0.01119232177734375, -0.03759765625, -0.06463623046875, 0.027069091796875, -0.0012569427490234375, -0.055450439453125, 0.01605224609375, -0.0132904052734375, -0.03619384765625, 0.0176544189453125, 0.01806640625, -0.052154541015625, 0.01153564453125, 0.03729248046875, -0.0009632110595703125, 0.0139007568359375, 0.006439208984375, -0.01227569580078125, -0.022125244140625, 0.003025054931640625, 0.006786346435546875, -0.0185699462890625, 0.044464111328125, -0.0189971923828125, 0.0197296142578125, 0.0316162109375, -0.045684814453125, -0.0419921875, -0.0308074951171875, -0.0107421875, -0.03778076171875, -0.01082611083984375, 0.015472412109375, 0.01406097412109375, 0.044891357421875, 0.060546875, -0.0084381103515625, -0.039581298828125, 0.04534912109375, 0.0026073455810546875, -0.00038552284240722656, 0.0179290771484375, -0.0167694091796875, -0.007350921630859375, -0.0019626617431640625, 0.0209808349609375, -0.0307464599609375, 0.0011682510375976562, 0.0239105224609375, -0.0570068359375, 0.016448974609375, -0.004459381103515625, -0.0227203369140625, -0.0439453125, -0.0015811920166015625, 0.024322509765625, -0.02294921875, 0.007328033447265625, -0.0240631103515625, 0.01093292236328125, 0.002071380615234375, -0.00588226318359375, 0.01000213623046875, -0.0171661376953125, -0.012298583984375, 0.03662109375, 0.00919342041015625, 0.0126495361328125, -0.024871826171875, -0.019775390625, -0.0192413330078125, 0.0194091796875, -0.00604248046875, 0.0308074951171875, 0.01953125, 0.0017595291137695312, 0.00853729248046875, -0.0012025833129882812, -0.039764404296875, -0.0175628662109375, -0.0277252197265625, 0.0141754150390625, 0.00168609619140625, 0.005035400390625, 0.055694580078125, -0.0240631103515625, 0.0048980712890625, 0.0005369186401367188, -0.0197906494140625, -0.0105133056640625, -0.0262603759765625, -0.035491943359375, -0.018585205078125, 0.01325225830078125 ]
4fdf7819317e26cebb25a691d2d7f8da1c6f60e0
Wordpress Stackexchange Q: Which files get updated in a plugin update? When a user updates a plugin from the WordPress admin panel, does every plugin file get overwritten, or just the ones that have changed from the previous version? For example, let's say that a plugin has 3 files: a.php, b.php, and c.php Version 2.0 has changes to a.php and b.php; c.php was unchanged. However, the user made a change to c.php before updating to 2.0. Does the user lose his changes? A: When you update a plugin you just get a new Zip-file containing the whole plugin. You don't get the information which files in that archive changed. That's the reason why all files are overwritten.
Q: Which files get updated in a plugin update? When a user updates a plugin from the WordPress admin panel, does every plugin file get overwritten, or just the ones that have changed from the previous version? For example, let's say that a plugin has 3 files: a.php, b.php, and c.php Version 2.0 has changes to a.php and b.php; c.php was unchanged. However, the user made a change to c.php before updating to 2.0. Does the user lose his changes? A: When you update a plugin you just get a new Zip-file containing the whole plugin. You don't get the information which files in that archive changed. That's the reason why all files are overwritten.
wordpress
{ "language": "en", "length": 115, "provenance": "stackexchange_00019.jsonl.gz:431819", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/97474" }
[ 0.046539306640625, -0.000629425048828125, -0.026885986328125, -0.044647216796875, 0.00939178466796875, -0.0169219970703125, -0.004810333251953125, -0.00542449951171875, -0.011077880859375, 0.002368927001953125, -0.00702667236328125, 0.01074981689453125, -0.01023101806640625, -0.028900146484375, 0.01690673828125, -0.0322265625, 0.04449462890625, -0.017303466796875, 0.01702880859375, 0.0095672607421875, -0.00011545419692993164, 0.055511474609375, 0.0045928955078125, 0.0810546875, 0.01155853271484375, -0.004291534423828125, 0.02484130859375, 0.005832672119140625, -0.01369476318359375, -0.011322021484375, 0.002040863037109375, 0.016876220703125, 0.01593017578125, 0.037261962890625, -0.06036376953125, -0.039581298828125, -0.003032684326171875, 0.003818511962890625, -0.006389617919921875, 0.0201263427734375, 0.050262451171875, -0.02423095703125, 0.0545654296875, 0.0364990234375, 0.0295867919921875, -0.047515869140625, 0.0645751953125, -0.058929443359375, 0.019378662109375, -0.03326416015625, 0.007053375244140625, -0.0057373046875, 0.01439666748046875, 0.0009717941284179688, -0.00727081298828125, 0.03851318359375, -0.04022216796875, 0.05780029296875, 0.021881103515625, -0.024627685546875, -0.022674560546875, 0.01032257080078125, 0.027618408203125, 0.01328277587890625, -0.0281829833984375, -0.0155181884765625, 0.016876220703125, 0.00972747802734375, -0.0635986328125, -0.033477783203125, 0.05560302734375, -0.01214599609375, 0.01027679443359375, 0.002197265625, 0.018798828125, 0.023529052734375, -0.00750732421875, 0.03961181640625, 0.0222625732421875, 0.007366180419921875, 0.04937744140625, -0.0097198486328125, 0.0440673828125, -0.001735687255859375, 0.01337432861328125, 0.04296875, 0.013427734375, -0.036712646484375, -0.01363372802734375, 0.0237274169921875, -0.0218353271484375, 0.021270751953125, -0.0149688720703125, 0.03558349609375, -0.011962890625, 0.0135955810546875, -0.0006666183471679688, 0.045654296875, -0.00940704345703125, 0.03045654296875, -0.01416778564453125, -0.027099609375, 0.0187530517578125, -0.0355224609375, -0.01273345947265625, -0.020263671875, 0.018402099609375, 0.0205078125, 0.015472412109375, 0.0343017578125, -0.03338623046875, 0.0560302734375, -0.0313720703125, -0.0489501953125, 0.032135009765625, 0.031280517578125, -0.0653076171875, 0.07904052734375, 0.006427764892578125, 0.0621337890625, -0.00366973876953125, 0.0188140869140625, -0.054107666015625, -0.0244903564453125, -0.0106353759765625, -0.0545654296875, -0.01305389404296875, 0.036468505859375, -0.03668212890625, 0.0242462158203125, -0.0180206298828125, -0.0009174346923828125, 0.0211639404296875, 0.037109375, 0.007427215576171875, -0.00910186767578125, 0.01558685302734375, -0.0276947021484375, -0.04534912109375, 0.056549072265625, -0.0726318359375, -0.046356201171875, 0.005519866943359375, -0.053314208984375, 0.01702880859375, -0.00389862060546875, -0.0163421630859375, 0.0258636474609375, 0.0226898193359375, 0.00661468505859375, 0.03326416015625, -0.080322265625, 0.032623291015625, -0.01381683349609375, 0.0281829833984375, -0.02923583984375, 0.04278564453125, -0.032470703125, -0.006427764892578125, -0.0298614501953125, -0.00034165382385253906, -0.00406646728515625, 0.0034313201904296875, -0.01499176025390625, -0.00763702392578125, 0.0081329345703125, -0.02764892578125, 0.0179901123046875, 0.024688720703125, -0.04254150390625, 0.01271820068359375, -0.044464111328125, 0.060089111328125, 0.0318603515625, 0.002277374267578125, 0.061492919921875, -0.0198211669921875, 0.01323699951171875, 0.0191497802734375, 0.033111572265625, 0.0033550262451171875, -0.021575927734375, 0.04510498046875, -0.00032401084899902344, -0.029388427734375, -0.0263671875, -0.0115966796875, -0.002887725830078125, 0.052276611328125, 0.0024852752685546875, 0.019012451171875, -0.0264434814453125, -0.0340576171875, 0.0133209228515625, -0.01788330078125, 0.049713134765625, 0.010955810546875, 0.07000732421875, -0.0188140869140625, -0.0689697265625, -0.024505615234375, 0.01194000244140625, 0.0011005401611328125, 0.0193023681640625, -0.056854248046875, 0.02447509765625, -0.04193115234375, 0.040802001953125, 0.059417724609375, 0.07861328125, -0.004070281982421875, 0.048553466796875, -0.045989990234375, 0.0191192626953125, -0.0171661376953125, -0.009613037109375, -0.027618408203125, 0.0307159423828125, 0.006221771240234375, 0.0419921875, 0.01446533203125, -0.012542724609375, 0.00913238525390625, -0.01947021484375, 0.006893157958984375, 0.00319671630859375, -0.015960693359375, -0.00933074951171875, 0.0214691162109375, 0.0020465850830078125, 0.02484130859375, 0.02471923828125, 0.0211639404296875, 0.0423583984375, -0.01885986328125, -0.038299560546875, -0.010284423828125, -0.0977783203125, 0.0236053466796875, 0.0584716796875, 0.0191497802734375, 0.0037517547607421875, -0.006988525390625, 0.050933837890625, 0.0386962890625, -0.0023193359375, 0.0158233642578125, 0.0186004638671875, 0.037933349609375, 0.06890869140625, -0.0136566162109375, 0.0146636962890625, 0.018951416015625, -0.0247344970703125, 0.0267791748046875, 0.04632568359375, 0.01320648193359375, -0.00033783912658691406, -0.05303955078125, 0.0265655517578125, 0.00732421875, -0.0301361083984375, -0.041717529296875, 0.0023193359375, 0.005313873291015625, 0.0136871337890625, 0.0255584716796875, 0.033721923828125, -0.021331787109375, -0.015777587890625, 0.0234222412109375, 0.043060302734375, 0.00525665283203125, 0.054779052734375, -0.0165863037109375, 0.027862548828125, -0.01410675048828125, -0.00650787353515625, -0.0090179443359375, 0.0276947021484375, -0.027435302734375, -0.0689697265625, -0.0035915374755859375, -0.01056671142578125, 0.04364013671875, -0.01541900634765625, 0.035888671875, -0.0269012451171875, -0.0160064697265625, 0.005794525146484375, 0.0282135009765625, 0.01464080810546875, -0.0020923614501953125, 0.0057373046875, 0.0009431838989257812, -0.00968170166015625, 0.0010814666748046875, -0.00954437255859375, 0.0018520355224609375, -0.003803253173828125, 0.0260467529296875, 0.06396484375, 0.033477783203125, -0.0272369384765625, 0.005626678466796875, 0.0005159378051757812, -0.00632476806640625, 0.007190704345703125, -0.02130126953125, 0.0011472702026367188, -0.07904052734375, -0.01016998291015625, 0.009246826171875, 0.0249176025390625, -0.02880859375, -0.059295654296875, -0.037109375, 0.0008406639099121094, -0.1129150390625, -0.06707763671875, -0.05206298828125, -0.07257080078125, 0.0234527587890625, -0.01003265380859375, -0.028472900390625, -0.0006117820739746094, 0.00936126708984375, 0.041015625, 0.004791259765625, -0.026458740234375, -0.0071868896484375, -0.021453857421875, -0.0357666015625, -0.0049896240234375, 0.0189208984375, 0.0090179443359375, -0.007465362548828125, 0.0643310546875, -0.010528564453125, -0.09527587890625, -0.04132080078125, 0.031951904296875, -0.0194854736328125, -0.002025604248046875, 0.03277587890625, -0.032257080078125, -0.01128387451171875, 0.0077362060546875, 0.03131103515625, 0.033111572265625, -0.0487060546875, 0.003742218017578125, 0.0236663818359375, -0.04644775390625, 0.0135650634765625, -0.05029296875, -0.05615234375, -0.023193359375, -0.02850341796875, -0.072509765625, 0.04595947265625, 0.01155853271484375, 0.0252685546875, 0.0200042724609375, -0.03369140625, -0.038421630859375, 0.01428985595703125, 0.0008707046508789062, -0.00861358642578125, 0.0081787109375, -0.052734375, -0.01244354248046875, 0.0272369384765625, -0.003509521484375, 0.01432037353515625, 0.01171875, 0.046783447265625, -0.012481689453125, -0.01129913330078125, 0.0012826919555664062, -0.0089874267578125, -0.0037860870361328125, 0.01213836669921875, -0.0244598388671875, 0.011322021484375, 0.015899658203125, -0.047271728515625, 0.021026611328125, -0.04705810546875, -0.001697540283203125, -0.049957275390625, 0.037139892578125, 0.004505157470703125, 0.001003265380859375, -0.007068634033203125, 0.00017440319061279297, -0.0699462890625, -0.002307891845703125, -0.06805419921875, 0.0234527587890625, -0.0276947021484375, -0.0009503364562988281, 0.001026153564453125, -0.01020050048828125, -0.01629638671875, 0.052093505859375, -0.01371002197265625, -0.0110015869140625, 0.01172637939453125, -0.03265380859375, 0.0192413330078125, -0.0263214111328125, 0.034210205078125, -0.0635986328125, 0.0185699462890625, -0.049835205078125, -0.07440185546875, -0.00281524658203125, -0.040985107421875, 0.047088623046875, 0.0169219970703125, 0.004131317138671875, -0.0176849365234375, 0.0311279296875, -0.01200103759765625, 0.051483154296875, -0.020751953125, 0.00299835205078125, -0.00888824462890625, -0.01036834716796875, 0.01093292236328125, -0.008056640625, 0.0017366409301757812, -0.0206146240234375, -0.0224609375, -0.0281982421875, -0.03704833984375, -0.03216552734375, -0.0013751983642578125, -0.031494140625, -0.0256195068359375, -0.0301361083984375, -0.04608154296875, -0.037750244140625, -0.01995849609375, -0.00968170166015625, -0.0126190185546875, -0.00881195068359375, 0.0205841064453125, -0.025177001953125, -0.0105438232421875, 0.028076171875, 0.058074951171875, 0.005275726318359375, -0.006694793701171875, -0.10162353515625, 0.0229339599609375, 0.0265655517578125, 0.05303955078125, 0.0161590576171875, 0.00714111328125, -0.018829345703125, 0.01708984375, 0.0248870849609375, -0.0051422119140625, -0.006465911865234375, 0.06024169921875, -0.00801849365234375, -0.03338623046875, 0.034332275390625, -0.0129852294921875, -0.0232391357421875, 0.0103912353515625, -0.0293426513671875, 0.01947021484375, -0.0638427734375, 0.0013494491577148438, 0.0019626617431640625, 0.020263671875, -0.0149993896484375, -0.05279541015625, 0.009613037109375, 0.01065826416015625, 0.0173187255859375, 0.01531982421875, -0.018798828125, 0.03924560546875, 0.032562255859375, -0.025909423828125, 0.01446533203125, 0.03271484375, -0.00047326087951660156, -0.0013933181762695312, 0.039703369140625, -0.036102294921875, -0.037078857421875, -0.003353118896484375, 0.0496826171875, 0.004360198974609375, -0.053985595703125, 0.0003173351287841797, -0.0011358261108398438, -0.0018548965454101562, 0.023406982421875, 0.0013246536254882812, 0.0182647705078125, 0.003376007080078125, -0.0134429931640625, -0.0171051025390625, -0.00727081298828125, -0.004604339599609375, -0.020233154296875, 0.0027923583984375, 0.017791748046875, -0.0345458984375, 0.026519775390625, -0.0269317626953125, 0.037109375, -0.027191162109375, -0.01268768310546875, 0.0184478759765625, 0.00629425048828125, -0.0030517578125, 0.0159149169921875, 0.0136871337890625, 0.01378631591796875, -0.042449951171875, 0.01373291015625, -0.034454345703125, 0.0008788108825683594, 0.0033855438232421875, 0.01348876953125, 0.019134521484375, -0.01157379150390625, 0.023651123046875, -0.004222869873046875, 0.00948333740234375, 0.0379638671875, -0.0133056640625, -0.031494140625, -0.00888824462890625, -0.0171966552734375, 0.047210693359375, -0.05419921875, -0.0028095245361328125, -0.0171966552734375, -0.0274658203125, -0.03314208984375, -0.005035400390625, -0.07977294921875, 0.0025882720947265625, 0.047393798828125, 0.007579803466796875, 0.00388336181640625, 0.0052490234375, -0.0648193359375, -0.03875732421875, -0.0218658447265625, 0.00623321533203125, 0.0692138671875, -0.0203704833984375, 0.040069580078125, -0.0191497802734375, -0.020843505859375, 0.0193634033203125, 0.01039886474609375, 0.04168701171875, 0.019866943359375, -0.051971435546875, -0.0211334228515625, -0.0093231201171875, -0.01311492919921875, -0.025543212890625, -0.036376953125, -0.030426025390625, 0.00966644287109375, 0.0009579658508300781, 0.0264129638671875, -0.01522064208984375, -0.0145721435546875, 0.0140838623046875, -0.00905609130859375, -0.0035495758056640625, 0.03857421875, -0.0016460418701171875, 0.04833984375, -0.00804901123046875, 0.0275115966796875, 0.0018701553344726562, 0.00905609130859375, -0.055633544921875, 0.003940582275390625, 0.0050506591796875, 0.0226593017578125, -0.01165771484375, -0.0030517578125, 0.01210784912109375, -0.055999755859375, 0.024505615234375, -0.00970458984375, -0.02545166015625, 0.0029468536376953125, 0.0128173828125, -0.005084991455078125, 0.07373046875, 0.036895751953125, -0.033477783203125, 0.050537109375, -0.0261993408203125, -0.023101806640625, -0.01258087158203125, -0.002483367919921875, -0.0031147003173828125, 0.004077911376953125, -0.0273590087890625, 0.02032470703125, 0.003475189208984375, 0.025360107421875, -0.00817108154296875, -0.030975341796875, 0.0288848876953125, 0.0037078857421875, 0.0215301513671875, 0.021514892578125, -0.056549072265625, 0.04595947265625, 0.0648193359375, 0.0675048828125, -0.0257110595703125, -0.0123138427734375, 0.030670166015625, -0.03704833984375, 0.01137542724609375, 0.0290679931640625, 0.044158935546875, -0.04840087890625, 0.00010734796524047852, -0.021209716796875, 0.0043182373046875, 0.06988525390625, 0.04144287109375, -0.029144287109375, -0.03912353515625, -0.0016002655029296875, -0.02685546875, -0.0011234283447265625, 0.0102996826171875, 0.0131378173828125, -0.032257080078125, -0.0027027130126953125, 0.0252838134765625, 0.0304412841796875, -0.0005950927734375, 0.00868988037109375, -0.01128387451171875, 0.0174407958984375, 0.0205078125, -0.0261993408203125, 0.056915283203125, -0.048065185546875, -0.025177001953125, 0.0478515625, -0.0299072265625, -0.00865936279296875, -0.0019311904907226562, -0.00318145751953125, 0.042236328125, 0.0635986328125, -0.0168304443359375, -0.002155303955078125, 0.0288848876953125, 0.039093017578125, -0.051177978515625, -0.0435791015625, -0.02301025390625, 0.050537109375, -0.0287322998046875, 0.0228271484375, -0.008514404296875, 0.0036411285400390625, -0.0113525390625, -0.00400543212890625, 0.08026123046875, -0.05352783203125, -0.00959014892578125, 0.0100555419921875, 0.005130767822265625, -0.00032520294189453125, 0.0041961669921875, 0.0015707015991210938, -0.037841796875, -0.01030731201171875, 0.00830841064453125, -0.018585205078125, 0.0020923614501953125, 0.0404052734375, -0.0782470703125, 0.10198974609375, 0.028839111328125, 0.028076171875, 0.004497528076171875, 0.0264739990234375, -0.047515869140625, -0.0247955322265625, -0.0300445556640625, 0.038116455078125, -0.01407623291015625, 0.044219970703125, -0.04571533203125, 0.0033855438232421875, 0.0017957687377929688, 0.032470703125, 0.061767578125, 0.00539398193359375, -0.042510986328125, -0.01059722900390625, 0.0494384765625, 0.0243377685546875, 0.0024471282958984375, 0.05133056640625, 0.0277252197265625, 0.00420379638671875, 0.0467529296875, 0.0003178119659423828, 0.0654296875, -0.06585693359375, 0.0209808349609375, 0.023040771484375, 0.01245880126953125, 0.0224609375, -0.048675537109375, 0.0228424072265625, 0.02630615234375, -0.035614013671875, -0.01528167724609375, -0.00005459785461425781, -0.0032672882080078125, 0.005889892578125, 0.0122222900390625, 0.03656005859375, 0.0404052734375, -0.00742340087890625, 0.04046630859375, 0.01361083984375, -0.007049560546875, -0.001373291015625, -0.0046539306640625, 0.022979736328125, -0.00643157958984375, -0.0189971923828125, 0.03680419921875, -0.0075836181640625, 0.044158935546875, 0.032440185546875, 0.0305328369140625, 0.00513458251953125, 0.039306640625, 0.001522064208984375, 0.038055419921875, -0.04437255859375, -0.05474853515625, 0.0023860931396484375, -0.00812530517578125, 0.0031604766845703125, 0.041961669921875, 0.01190948486328125, -0.049835205078125, -0.001926422119140625, -0.00881195068359375, -0.0199432373046875, 0.01641845703125, -0.0175628662109375, 0.01496124267578125, 0.00577545166015625, 0.043060302734375, 0.003574371337890625, -0.0234222412109375, 0.03717041015625, 0.0157623291015625, -0.01300048828125, -0.04150390625, 0.037322998046875, 0.02984619140625, 0.0116119384765625, 0.007076263427734375, 0.0311126708984375, -0.0283203125, -0.005229949951171875, -0.050567626953125, -0.0992431640625, 0.0229339599609375, 0.05718994140625, 0.0306243896484375, 0.00411224365234375, 0.03564453125, 0.0211639404296875, -0.032958984375, 0.0119476318359375, 0.03485107421875, -0.018463134765625, 0.03375244140625, -0.03692626953125, 0.03802490234375, 0.016326904296875, -0.0038394927978515625, -0.0173797607421875, -0.00928497314453125, 0.055206298828125, -0.01690673828125, 0.039642333984375, -0.0033588409423828125, -0.0162353515625, 0.034759521484375, -0.00783538818359375, 0.056427001953125, 0.018218994140625, -0.00888824462890625, -0.0005431175231933594, -0.0306396484375, -0.0004353523254394531, -0.005107879638671875, 0.0150146484375, -0.00978851318359375, 0.04315185546875, 0.004688262939453125, -0.02490234375, 0.00908660888671875, 0.0111846923828125, 0.0040130615234375, 0.00534820556640625, 0.0147247314453125, -0.00616455078125, -0.01238250732421875, -0.006763458251953125, -0.01154327392578125, 0.0438232421875, 0.03961181640625, 0.033111572265625, -0.00893402099609375, 0.042877197265625, 0.0225982666015625, -0.0201263427734375, -0.013519287109375, -0.003173828125, 0.0253143310546875, -0.06207275390625, -0.0242767333984375, 0.01236724853515625, -0.033966064453125, 0.01837158203125, 0.04119873046875, -0.0235443115234375, -0.007755279541015625, 0.01702880859375, 0.01436614990234375, -0.00983428955078125, 0.026214599609375, -0.022857666015625, -0.03790283203125, -0.01288604736328125, 0.00409698486328125, 0.0097503662109375, 0.006011962890625, -0.0027751922607421875, -0.0033664703369140625, 0.060211181640625, 0.009613037109375, 0.00534820556640625, 0.0419921875, 0.0231781005859375, 0.043426513671875, 0.00255584716796875, -0.03875732421875, -0.0252227783203125, -0.0218353271484375, 0.019744873046875, -0.0214691162109375, 0.076904296875, -0.023406982421875, 0.026611328125, 0.00199127197265625, 0.0159454345703125, 0.036285400390625, -0.024993896484375, 0.01015472412109375, 0.0003516674041748047, 0.0006241798400878906, 0.0265350341796875, -0.00917816162109375, -0.028900146484375, -0.0247344970703125, -0.0053558349609375, 0.00736236572265625, -0.0009140968322753906, -0.033294677734375, -0.017120361328125, 0.0156707763671875, 0.017120361328125, 0.0074920654296875, -0.0787353515625, 0.03857421875, -0.015655517578125, 0.04473876953125, -0.0191497802734375, -0.0276336669921875, -0.0124359130859375, 0.00908660888671875, -0.031768798828125, -0.05487060546875, -0.06219482421875, 0.04388427734375, -0.0557861328125, 0.0091094970703125, 0.003993988037109375, -0.01445770263671875, 0.004787445068359375, 0.01189422607421875, 0.02264404296875, 0.05377197265625, -0.004169464111328125, -0.0231475830078125, 0.045166015625, -0.01629638671875, 0.014007568359375, -0.043304443359375, -0.03997802734375, -0.0220794677734375, 0.0232696533203125, 0.004253387451171875, -0.0252227783203125, -0.0212860107421875, -0.04779052734375, -0.0557861328125, 0.034912109375, 0.003452301025390625, -0.0389404296875, -0.030609130859375, -0.015869140625, -0.002872467041015625, 0.00984954833984375, -0.0171051025390625, 0.0060577392578125, -0.032440185546875, 0.028411865234375, -0.0032176971435546875, 0.0404052734375, -0.01413726806640625, 0.00830078125, -0.0193939208984375, 0.0216522216796875, 0.006496429443359375, -0.013824462890625, -0.021392822265625, -0.01042938232421875, 0.04833984375, 0.04205322265625, 0.012908935546875, 0.034698486328125, 0.049102783203125, -0.035247802734375, 0.00872039794921875, -0.029266357421875, -0.07086181640625, -0.01049041748046875, 0.0916748046875, 0.07440185546875, 0.04443359375, -0.046112060546875, 0.034271240234375, -0.0008420944213867188, 0.007801055908203125, -0.005954742431640625, -0.011383056640625, -0.017913818359375, -0.0009264945983886719, 0.00005459785461425781, -0.042022705078125, -0.02734375, 0.0237579345703125, -0.0628662109375, 0.005786895751953125, 0.0008678436279296875, -0.0125885009765625, 0.0067901611328125, -0.0701904296875, 0.042633056640625, 0.01190185546875, 0.07818603515625, -0.01409912109375, 0.048675537109375, 0.0650634765625, 0.0816650390625, 0.0296478271484375, 0.034088134765625, -0.053497314453125, 0.018646240234375, 0.012908935546875, 0.0238800048828125, -0.050628662109375, -0.03692626953125, -0.004730224609375, 0.0021038055419921875, 0.00543212890625, -0.0235748291015625, -0.0160675048828125, 0.0477294921875, 0.00006955862045288086, 0.06439208984375, 0.0232086181640625, -0.040008544921875, -0.0251007080078125, 0.054443359375, -0.0280303955078125, -0.03009033203125, -0.0310211181640625, -0.0404052734375, 0.00518035888671875, 0.013031005859375, -0.0009336471557617188, -0.03155517578125, 0.003353118896484375, -0.034759521484375, -0.0055389404296875, 0.0155487060546875 ]
da31c98985e8fb455c4b4d1a9f810a2594a2b7d4
Wordpress Stackexchange Q: Display products from specific category in shop page I know many people asked for this question but I didn't find a proper way to do it. How to add a simple meta_query (product_cat) before the execution of the shop page's query. Maybe by using a filter ? Regards, Adrien A: This worked for me: [product_category category="YOUR CATEGORY" per_page="8" columns="3" orderby="date" order="desc"]
Q: Display products from specific category in shop page I know many people asked for this question but I didn't find a proper way to do it. How to add a simple meta_query (product_cat) before the execution of the shop page's query. Maybe by using a filter ? Regards, Adrien A: This worked for me: [product_category category="YOUR CATEGORY" per_page="8" columns="3" orderby="date" order="desc"] A: The shop page is actually an archive page for posts of type 'product'. Its template is in woocommerce/archive-product.php. You need to use the pre_get_posts action to preprocess the query before the loop, conditional_tags to recognize that you are in the product archive page, and a taxonomy query to filter the product categories, which belong to the taxonomy 'product_cat'. For example, the following (placed in your theme's functions.php or in a plugin) will display only products with product category 'type-1': add_action('pre_get_posts','shop_filter_cat'); function shop_filter_cat($query) { if (!is_admin() && is_post_type_archive( 'product' ) && $query->is_main_query()) { $query->set('tax_query', array( array ('taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => 'type-1' ) ) ); } } You can also exclude categories by using 'operator' => NOT IN, and 'terms' can be an array of product category slugs. A good introduction to query customization is http://www.billerickson.net/customize-the-wordpress-query/ A: If you want to show products from a specific category on your shop page you can insert the below code in your themes function.php file. // Execute before the loop starte add_action( 'woocommerce_before_shop_loop', 'techlyse_before_action', 15 ); function techlyse_before_action() { //To ensure Shop Page if ( is_shop() ) { $query_args['tax_query'] = array( array( 'taxonomy' => 'product_cat', 'field' => 'id', //If you want the category slug you pass slug instead of id and 1330 instead of category slug. 'terms' => 1330 ) ); //print_r($query_args); query_posts( $query_args ); } } // Execute after the loop ends add_action( 'woocommerce_after_shop_loop', 'techlyse_after_action', 15 ); function techlyse_after_action() { //To ensure Shop Page if ( is_shop() ) { //Reset the Query after Loop wp_reset_query(); } }
wordpress
{ "language": "en", "length": 320, "provenance": "stackexchange_00019.jsonl.gz:431850", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/97564" }
[ 0.0175018310546875, 0.00008356571197509766, -0.028289794921875, -0.0341796875, 0.020355224609375, -0.0305328369140625, 0.00469970703125, -0.0151824951171875, -0.01264190673828125, 0.0007853507995605469, -0.03900146484375, -0.0230255126953125, -0.02496337890625, -0.0318603515625, -0.005889892578125, -0.06671142578125, 0.0367431640625, 0.0014820098876953125, 0.041778564453125, 0.0194244384765625, -0.0183563232421875, 0.05499267578125, 0.038543701171875, 0.02508544921875, 0.0380859375, -0.048095703125, 0.058197021484375, -0.036773681640625, 0.0286712646484375, -0.0142669677734375, 0.034027099609375, -0.00988006591796875, 0.011627197265625, -0.0266265869140625, 0.085205078125, 0.056304931640625, 0.031768798828125, 0.0024547576904296875, 0.058990478515625, -0.01328277587890625, 0.035614013671875, -0.032440185546875, 0.04547119140625, -0.0091552734375, 0.035491943359375, -0.01554107666015625, 0.0193939208984375, -0.06988525390625, 0.0225982666015625, -0.05926513671875, 0.0181121826171875, 0.017364501953125, 0.0340576171875, -0.0491943359375, -0.02874755859375, 0.0196533203125, -0.006778717041015625, -0.00966644287109375, 0.0284423828125, -0.00579833984375, -0.0169525146484375, -0.01476287841796875, 0.020355224609375, -0.026641845703125, 0.00975799560546875, -0.004718780517578125, 0.0343017578125, 0.0372314453125, -0.0360107421875, -0.0192413330078125, 0.02508544921875, -0.00510406494140625, 0.006641387939453125, 0.01290130615234375, -0.0205535888671875, -0.012969970703125, 0.0250244140625, 0.00850677490234375, 0.0255584716796875, 0.00917816162109375, -0.0238494873046875, -0.0022258758544921875, -0.005443572998046875, -0.0751953125, 0.01270294189453125, -0.049041748046875, -0.027618408203125, 0.01837158203125, -0.0297698974609375, -0.058502197265625, -0.020599365234375, -0.0272064208984375, -0.049530029296875, -0.034820556640625, -0.01123046875, -0.054473876953125, -0.021881103515625, 0.01125335693359375, -0.01151275634765625, 0.01024627685546875, -0.00920867919921875, -0.0184326171875, -0.0111236572265625, -0.0253448486328125, 0.025787353515625, 0.022705078125, -0.02978515625, 0.035003662109375, 0.074462890625, 0.04132080078125, 0.0246429443359375, 0.035064697265625, -0.02911376953125, -0.01263427734375, -0.0291290283203125, 0.042510986328125, -0.033721923828125, -0.0032787322998046875, 0.00037598609924316406, 0.003330230712890625, 0.0178070068359375, 0.05517578125, 0.041778564453125, -0.055511474609375, 0.003017425537109375, 0.0024776458740234375, -0.03240966796875, -0.07208251953125, 0.02862548828125, -0.0277252197265625, -0.0275421142578125, 0.02618408203125, 0.0413818359375, 0.041778564453125, 0.006591796875, 0.0163421630859375, 0.05511474609375, -0.020751953125, 0.03466796875, 0.0134429931640625, -0.021881103515625, -0.00196075439453125, 0.026763916015625, -0.0110626220703125, 0.00701904296875, -0.014923095703125, -0.0085296630859375, 0.0257720947265625, 0.0254364013671875, 0.0241546630859375, 0.0014286041259765625, -0.0174102783203125, -0.010528564453125, 0.0246429443359375, 0.025726318359375, 0.0328369140625, 0.003696441650390625, 0.01776123046875, -0.01690673828125, 0.0272979736328125, -0.00441741943359375, 0.022918701171875, 0.053955078125, -0.046417236328125, -0.03375244140625, -0.046661376953125, -0.05419921875, -0.01158905029296875, 0.00605010986328125, 0.01302337646484375, -0.0145416259765625, 0.01525115966796875, 0.037933349609375, -0.01457977294921875, -0.03265380859375, -0.004058837890625, -0.00848388671875, 0.031219482421875, 0.0152435302734375, -0.0194549560546875, -0.03240966796875, -0.052581787109375, 0.0260009765625, -0.01035308837890625, -0.049224853515625, 0.01313018798828125, 0.0224609375, 0.06231689453125, -0.0182647705078125, 0.0203094482421875, 0.060455322265625, 0.0157623291015625, -0.035369873046875, 0.0161285400390625, -0.00890350341796875, -0.050384521484375, 0.046051025390625, -0.0042724609375, 0.005443572998046875, -0.017181396484375, -0.01494598388671875, 0.03369140625, -0.01021575927734375, 0.0202484130859375, -0.02880859375, 0.023681640625, -0.007236480712890625, 0.043182373046875, 0.014556884765625, 0.019866943359375, 0.01049041748046875, 0.01232147216796875, -0.0045623779296875, -0.056793212890625, -0.0227203369140625, 0.030181884765625, -0.0166778564453125, 0.0316162109375, 0.019866943359375, -0.0018367767333984375, 0.019683837890625, -0.01268768310546875, 0.019927978515625, 0.01555633544921875, 0.02593994140625, 0.0205535888671875, -0.03253173828125, -0.010986328125, 0.017425537109375, 0.0379638671875, -0.053619384765625, 0.004680633544921875, 0.01331329345703125, 0.0556640625, -0.0008554458618164062, 0.0272979736328125, 0.02227783203125, -0.01041412353515625, -0.00032591819763183594, -0.001819610595703125, 0.0279998779296875, 0.017852783203125, 0.0009489059448242188, 0.0178375244140625, 0.060546875, -0.02288818359375, -0.0035381317138671875, 0.007701873779296875, 0.02069091796875, 0.0303955078125, 0.00856781005859375, -0.037445068359375, 0.0206451416015625, -0.048187255859375, 0.0081634521484375, 0.0160369873046875, 0.0167236328125, 0.01751708984375, -0.024322509765625, 0.01611328125, -0.007511138916015625, 0.0311126708984375, -0.022430419921875, 0.0286102294921875, 0.07354736328125, 0.01033782958984375, 0.06304931640625, 0.03472900390625, -0.00894927978515625, 0.0023021697998046875, -0.000583648681640625, -0.027587890625, -0.00597381591796875, 0.0035114288330078125, -0.0165557861328125, -0.0103302001953125, -0.04437255859375, 0.0238037109375, 0.0013418197631835938, -0.00829315185546875, -0.00659942626953125, 0.0176544189453125, 0.0040740966796875, -0.01319122314453125, -0.017913818359375, -0.061187744140625, 0.01091766357421875, 0.0172882080078125, -0.0235137939453125, -0.0006389617919921875, 0.027496337890625, 0.0120697021484375, -0.0264739990234375, 0.0183868408203125, -0.04339599609375, -0.00646209716796875, 0.028778076171875, -0.03826904296875, 0.048980712890625, -0.058807373046875, 0.058868408203125, 0.0467529296875, -0.07257080078125, 0.0404052734375, 0.0220794677734375, 0.0012712478637695312, 0.048614501953125, 0.01374053955078125, 0.003124237060546875, 0.0264129638671875, -0.06341552734375, 0.000025570392608642578, 0.032501220703125, 0.03619384765625, 0.0118255615234375, -0.0307464599609375, 0.032440185546875, 0.0250396728515625, -0.04534912109375, -0.0738525390625, 0.01169586181640625, -0.0362548828125, 0.0111846923828125, 0.001346588134765625, 0.0017108917236328125, -0.02471923828125, 0.0216827392578125, 0.0096588134765625, 0.006320953369140625, -0.02581787109375, -0.035247802734375, -0.049102783203125, -0.040130615234375, -0.013519287109375, -0.004428863525390625, -0.0157012939453125, -0.0034656524658203125, 0.08953857421875, 0.005840301513671875, -0.060577392578125, -0.009033203125, -0.0164642333984375, -0.01220703125, 0.03955078125, 0.0107574462890625, -0.043670654296875, 0.0168914794921875, 0.0025119781494140625, 0.003238677978515625, 0.034454345703125, -0.01244354248046875, -0.00531768798828125, 0.0028247833251953125, -0.0018091201782226562, 0.016448974609375, -0.017242431640625, 0.0006098747253417969, 0.02093505859375, 0.01348114013671875, -0.02435302734375, -0.03582763671875, 0.0113067626953125, -0.039306640625, -0.0287933349609375, 0.001461029052734375, 0.00516510009765625, -0.0201416015625, 0.01739501953125, -0.0006532669067382812, -0.0105743408203125, 0.0211029052734375, -0.060089111328125, 0.01031494140625, -0.00617218017578125, 0.007175445556640625, -0.0202789306640625, 0.00714111328125, -0.03033447265625, 0.031402587890625, -0.00152587890625, 0.00971221923828125, -0.00429534912109375, 0.033843994140625, -0.0125274658203125, -0.042205810546875, 0.04888916015625, 0.00807952880859375, 0.038604736328125, -0.062042236328125, -0.051361083984375, -0.0465087890625, 0.09796142578125, -0.010955810546875, -0.021636962890625, -0.01148223876953125, -0.0030059814453125, -0.016326904296875, -0.0144805908203125, -0.026763916015625, -0.01218414306640625, -0.089111328125, -0.00543975830078125, -0.0247955322265625, -0.0452880859375, -0.002391815185546875, -0.040924072265625, -0.055145263671875, -0.05126953125, 0.03631591796875, -0.02032470703125, 0.00580596923828125, 0.0035114288330078125, -0.023162841796875, 0.00829315185546875, -0.0224761962890625, -0.01551055908203125, -0.05474853515625, -0.0053558349609375, -0.01546478271484375, 0.0535888671875, 0.005596160888671875, 0.003932952880859375, -0.0020694732666015625, 0.054168701171875, -0.000507354736328125, 0.0213775634765625, 0.014892578125, 0.0203094482421875, -0.0032787322998046875, -0.007137298583984375, 0.0033397674560546875, -0.03424072265625, -0.00778961181640625, -0.03887939453125, 0.0076141357421875, 0.00908660888671875, -0.0467529296875, 0.001445770263671875, -0.033905029296875, 0.0029354095458984375, -0.0645751953125, -0.0260467529296875, 0.0098419189453125, 0.0218963623046875, -0.006031036376953125, 0.0005822181701660156, -0.04730224609375, -0.044342041015625, -0.0008559226989746094, 0.0026454925537109375, -0.0116424560546875, 0.012176513671875, 0.0323486328125, 0.015655517578125, -0.01328277587890625, -0.0220794677734375, 0.0231475830078125, 0.0243072509765625, 0.01413726806640625, 0.0278472900390625, -0.0280303955078125, -0.01447296142578125, 0.0609130859375, -0.0019359588623046875, 0.00708770751953125, -0.0438232421875, 0.05902099609375, -0.0290985107421875, -0.0182952880859375, 0.033294677734375, -0.066650390625, 0.063232421875, 0.0268707275390625, -0.00258636474609375, -0.0095672607421875, -0.0016374588012695312, 0.00786590576171875, -0.0007123947143554688, -0.0102386474609375, -0.014068603515625, 0.02557373046875, -0.026611328125, 0.061004638671875, 0.04302978515625, 0.06414794921875, -0.0162811279296875, -0.00817108154296875, 0.024139404296875, 0.0032196044921875, -0.02056884765625, -0.0032482147216796875, -0.04425048828125, 0.009918212890625, -0.026336669921875, -0.030670166015625, 0.006748199462890625, -0.0055389404296875, 0.0153045654296875, -0.0163421630859375, -0.0296478271484375, -0.0042877197265625, -0.010101318359375, 0.03472900390625, 0.039031982421875, -0.0207061767578125, -0.0022068023681640625, -0.0171966552734375, -0.008819580078125, 0.0221405029296875, -0.0372314453125, -0.017852783203125, -0.0181884765625, 0.0125732421875, -0.01092529296875, -0.0006127357482910156, 0.035003662109375, 0.0479736328125, -0.07373046875, 0.05426025390625, 0.019073486328125, 0.01207733154296875, 0.0038280487060546875, 0.01708984375, 0.0149688720703125, -0.010528564453125, 0.006237030029296875, -0.01409149169921875, 0.0190887451171875, 0.012847900390625, 0.0159912109375, 0.0070037841796875, -0.005645751953125, -0.0509033203125, -0.006244659423828125, 0.035400390625, -0.0109710693359375, -0.0168304443359375, 0.00505828857421875, -0.0145263671875, -0.0161590576171875, -0.0272979736328125, -0.05010986328125, -0.004016876220703125, -0.0019311904907226562, -0.017242431640625, 0.0340576171875, -0.00966644287109375, 0.060455322265625, 0.00962066650390625, 0.0271453857421875, -0.0014400482177734375, -0.0109710693359375, -0.01407623291015625, -0.02886962890625, 0.002696990966796875, -0.0270843505859375, 0.024322509765625, -0.0189056396484375, -0.0222930908203125, 0.0110321044921875, -0.005321502685546875, 0.0660400390625, -0.04962158203125, -0.00907135009765625, -0.02398681640625, 0.0009541511535644531, 0.02239990234375, 0.01540374755859375, -0.032257080078125, -0.007793426513671875, -0.04278564453125, -0.045166015625, -0.01593017578125, -0.026824951171875, -0.0258331298828125, -0.01094818115234375, -0.0117950439453125, 0.04522705078125, -0.04754638671875, -0.080322265625, -0.0338134765625, -0.0165557861328125, 0.021209716796875, -0.0029087066650390625, -0.0042266845703125, 0.039825439453125, -0.0184326171875, 0.047882080078125, -0.0036754608154296875, -0.006885528564453125, -0.0301513671875, -0.00823211669921875, -0.0039825439453125, -0.031829833984375, -0.02197265625, 0.0155792236328125, -0.06146240234375, 0.018585205078125, 0.0689697265625, 0.01154327392578125, 0.0021839141845703125, -0.01140594482421875, -0.0129547119140625, -0.022247314453125, 0.0247344970703125, -0.01259613037109375, -0.005558013916015625, 0.03143310546875, -0.01511383056640625, 0.01776123046875, -0.0268096923828125, -0.01934814453125, 0.022613525390625, -0.026458740234375, 0.0238037109375, 0.036346435546875, -0.07794189453125, 0.09112548828125, 0.09442138671875, 0.006195068359375, 0.046142578125, -0.002574920654296875, 0.0100250244140625, 0.0031280517578125, 0.018402099609375, -0.0024280548095703125, 0.0016632080078125, 0.0360107421875, -0.01080322265625, -0.01123046875, 0.01332855224609375, -0.0189361572265625, -0.0038814544677734375, 0.0465087890625, 0.046966552734375, -0.0782470703125, 0.023284912109375, 0.01349639892578125, 0.004150390625, -0.00519561767578125, 0.01910400390625, -0.00251007080078125, 0.0080108642578125, 0.0195159912109375, -0.008819580078125, 0.00432586669921875, 0.028167724609375, 0.0038852691650390625, 0.0094451904296875, 0.0225067138671875, 0.01519012451171875, 0.002124786376953125, -0.0019550323486328125, -0.059478759765625, -0.0036716461181640625, -0.00733184814453125, -0.0628662109375, -0.003326416015625, 0.044647216796875, 0.01189422607421875, -0.037139892578125, 0.0849609375, -0.003139495849609375, 0.0654296875, 0.013427734375, 0.0161895751953125, 0.016571044921875, 0.042999267578125, 0.005462646484375, 0.002410888671875, 0.00896453857421875, -0.0390625, 0.00780487060546875, -0.0155792236328125, 0.01047515869140625, -0.00797271728515625, -0.052032470703125, -0.0051727294921875, -0.03790283203125, 0.0017223358154296875, -0.0223541259765625, 0.0058746337890625, 0.06903076171875, -0.011627197265625, -0.027801513671875, 0.0257568359375, 0.035125732421875, -0.0265350341796875, 0.0251007080078125, -0.00586700439453125, 0.0257415771484375, 0.062744140625, 0.0110321044921875, 0.0416259765625, 0.004451751708984375, 0.03173828125, -0.060028076171875, -0.00275421142578125, -0.0380859375, 0.039764404296875, 0.0226898193359375, -0.021881103515625, 0.01076507568359375, -0.042327880859375, -0.0421142578125, 0.048583984375, 0.0218048095703125, 0.0821533203125, -0.06573486328125, -0.042327880859375, 0.041046142578125, 0.07470703125, 0.003875732421875, 0.00826263427734375, -0.038299560546875, 0.00034618377685546875, 0.031341552734375, 0.03167724609375, 0.0010118484497070312, 0.032806396484375, -0.0267791748046875, 0.00600433349609375, 0.031585693359375, -0.01461029052734375, 0.03363037109375, 0.00910186767578125, -0.060791015625, -0.005207061767578125, 0.016876220703125, 0.03448486328125, -0.0172882080078125, 0.038970947265625, 0.01059722900390625, -0.0212249755859375, 0.01354217529296875, -0.0263214111328125, 0.016143798828125, 0.048797607421875, 0.0287933349609375, -0.04803466796875, -0.041168212890625, -0.01251220703125, 0.043853759765625, 0.00350189208984375, 0.05474853515625, 0.052337646484375, 0.0188446044921875, 0.09381103515625, 0.01055145263671875, 0.0439453125, 0.032318115234375, -0.0261077880859375, 0.0550537109375, 0.014892578125, 0.041229248046875, -0.005908966064453125, 0.0115966796875, 0.00640869140625, 0.053497314453125, -0.031585693359375, -0.034515380859375, -0.0010786056518554688, -0.0026683807373046875, 0.0160064697265625, -0.0033397674560546875, 0.005523681640625, 0.01444244384765625, 0.0219268798828125, -0.06707763671875, 0.008758544921875, 0.0296783447265625, 0.0195465087890625, -0.015411376953125, -0.00921630859375, -0.0263519287109375, 0.0016622543334960938, -0.0504150390625, 0.0345458984375, 0.0130615234375, 0.060821533203125, 0.01116943359375, 0.05853271484375, -0.022064208984375, -0.040283203125, -0.019378662109375, 0.0235137939453125, -0.0019683837890625, 0.0173492431640625, -0.0394287109375, -0.015228271484375, -0.004199981689453125, 0.0285491943359375, 0.0121307373046875, 0.029449462890625, 0.037872314453125, 0.07647705078125, 0.03485107421875, -0.0088043212890625, 0.00689697265625, -0.0065765380859375, -0.0007882118225097656, -0.0296173095703125, 0.071044921875, 0.0484619140625, 0.037811279296875, -0.016937255859375, 0.057159423828125, 0.06298828125, -0.03033447265625, 0.03460693359375, -0.0083465576171875, -0.04144287109375, 0.04034423828125, -0.01305389404296875, 0.10418701171875, -0.0124969482421875, -0.058746337890625, -0.00406646728515625, -0.042999267578125, -0.04254150390625, 0.0413818359375, 0.05023193359375, -0.003032684326171875, -0.0016527175903320312, -0.007251739501953125, -0.00727081298828125, 0.0276031494140625, -0.0262451171875, 0.006793975830078125, 0.0029754638671875, 0.0114288330078125, -0.003414154052734375, -0.044281005859375, -0.021636962890625, -0.003520965576171875, 0.018035888671875, 0.033843994140625, -0.0084075927734375, 0.049163818359375, 0.0261993408203125, -0.01398468017578125, 0.0063018798828125, -0.0020694732666015625, -0.035430908203125, 0.087646484375, 0.004657745361328125, -0.030975341796875, -0.0195159912109375, 0.01215362548828125, -0.0291900634765625, 0.056365966796875, -0.061004638671875, -0.036224365234375, -0.0263671875, 0.0335693359375, -0.019805908203125, 0.021087646484375, -0.012451171875, 0.0000546574592590332, -0.03387451171875, -0.039306640625, 0.06158447265625, 0.024627685546875, -0.015106201171875, -0.0265960693359375, 0.005901336669921875, -0.00788116455078125, 0.0118255615234375, 0.04638671875, 0.0225982666015625, 0.032958984375, -0.040771484375, 0.036285400390625, 0.0237274169921875, -0.020477294921875, 0.042144775390625, 0.0073394775390625, 0.00749969482421875, 0.009185791015625, 0.003971099853515625, -0.01428985595703125, 0.039764404296875, 0.032012939453125, -0.00787353515625, 0.0103759765625, 0.0178680419921875, -0.03656005859375, 0.01049041748046875, -0.00638580322265625, -0.035675048828125, -0.0277099609375, -0.00693511962890625, 0.003787994384765625, -0.0198211669921875, -0.035125732421875, -0.056732177734375, 0.0116119384765625, 0.043365478515625, -0.004009246826171875, -0.047576904296875, 0.00785064697265625, -0.02545166015625, 0.057891845703125, -0.01016998291015625, -0.044403076171875, 0.0108489990234375, 0.035003662109375, -0.017822265625, 0.058563232421875, -0.0309600830078125, -0.06964111328125, -0.008575439453125, 0.010772705078125, 0.027587890625, -0.0249176025390625, 0.004108428955078125, 0.024566650390625, 0.0263214111328125, 0.06390380859375, 0.008636474609375, -0.018310546875, 0.0153350830078125, 0.0206298828125, -0.01708984375, -0.0755615234375, -0.006786346435546875, -0.0308837890625, 0.0267791748046875, -0.00034332275390625, 0.001972198486328125, 0.016448974609375, -0.03717041015625, -0.08258056640625, 0.08551025390625, -0.019744873046875, -0.034423828125, -0.0082550048828125, 0.0131683349609375, -0.0234222412109375, 0.003787994384765625, -0.008544921875, -0.00878143310546875, 0.00772857666015625, 0.0170135498046875, 0.02880859375, -0.01021575927734375, 0.034423828125, -0.01055908203125, -0.052520751953125, -0.005825042724609375, -0.02679443359375, 0.028411865234375, -0.018096923828125, 0.006877899169921875, -0.004436492919921875, 0.015838623046875, -0.04254150390625, -0.00800323486328125, 0.005420684814453125, 0.0299530029296875, 0.037200927734375, 0.005199432373046875, -0.0626220703125, -0.0594482421875, 0.0234527587890625, -0.0029010772705078125, 0.0096893310546875, 0.03204345703125, -0.0086212158203125, -0.00891876220703125, 0.004222869873046875, 0.0004954338073730469, 0.0084228515625, -0.046478271484375, -0.008941650390625, 0.00133514404296875, -0.01552581787109375, 0.032379150390625, -0.0021381378173828125, -0.037109375, 0.01116180419921875, 0.013275146484375, 0.0184783935546875, -0.10467529296875, 0.011444091796875, 0.0158233642578125, -0.028289794921875, -0.06396484375, 0.012298583984375, 0.0001957416534423828, -0.045562744140625, -0.049652099609375, 0.0225982666015625, 0.014068603515625, 0.0038700103759765625, -0.00429534912109375, 0.0223846435546875, -0.01995849609375, 0.0091094970703125, -0.007396697998046875, -0.0245513916015625, 0.04339599609375, 0.00986480712890625, 0.036956787109375, -0.03179931640625, 0.06976318359375, 0.045684814453125, 0.0584716796875, 0.01090240478515625, -0.025054931640625, -0.004459381103515625, 0.03375244140625, 0.0108795166015625, -0.02105712890625, 0.0357666015625, -0.044708251953125, -0.0032787322998046875, -0.03985595703125, -0.03216552734375, -0.035430908203125, -0.0032482147216796875, -0.0007877349853515625, -0.049163818359375, 0.025634765625 ]
d978bef4a298261615771af6259c3b3148c869ac
Wordpress Stackexchange Q: How do I add a custom body class for a specific page ID? I have added this code to my child theme's functions.php file and use the new class but it styles the entire site, not the page I added to the code. What am I doing wrong? add_filter('body_class','custom_body_class'); function custom_body_class($classes) { if( is_page('38034') ) { $classes[] = 'new-class'; return $classes; } } A: The ID can/should be given without quotes (otherwise if you a page with '38034' as slug/post_name, this will be used instead of the page with the ID 38034). And you want to return $classes no matter if you added your own or not. add_filter('body_class', 'custom_body_class'); function custom_body_class($classes) { if (is_page(38034)) $classes[] = 'new-class'; return $classes; }
Q: How do I add a custom body class for a specific page ID? I have added this code to my child theme's functions.php file and use the new class but it styles the entire site, not the page I added to the code. What am I doing wrong? add_filter('body_class','custom_body_class'); function custom_body_class($classes) { if( is_page('38034') ) { $classes[] = 'new-class'; return $classes; } } A: The ID can/should be given without quotes (otherwise if you a page with '38034' as slug/post_name, this will be used instead of the page with the ID 38034). And you want to return $classes no matter if you added your own or not. add_filter('body_class', 'custom_body_class'); function custom_body_class($classes) { if (is_page(38034)) $classes[] = 'new-class'; return $classes; } A: Your function name does not match. Try this.. add_filter( 'body_class', 'custom_body_class' ); function custom_body_class( $classes ) { if ( is_page( '38034' ) ) { $classes[] = 'new-class'; return $classes; } }
wordpress
{ "language": "en", "length": 153, "provenance": "stackexchange_00019.jsonl.gz:431900", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/97765" }
[ 0.036468505859375, -0.0157623291015625, 0.01305389404296875, -0.023284912109375, -0.00930023193359375, -0.02001953125, 0.01175689697265625, -0.0171051025390625, -0.02947998046875, -0.0064849853515625, -0.034332275390625, 0.03863525390625, -0.0243072509765625, -0.0255889892578125, 0.03033447265625, -0.035736083984375, 0.04736328125, -0.0246429443359375, 0.04052734375, -0.006313323974609375, 0.0259246826171875, 0.01259613037109375, 0.03192138671875, 0.06524658203125, 0.0245208740234375, -0.0291595458984375, 0.018402099609375, -0.0079803466796875, 0.0108184814453125, -0.00043272972106933594, 0.007598876953125, 0.006633758544921875, 0.021881103515625, 0.01739501953125, -0.005741119384765625, 0.0176544189453125, 0.0028533935546875, -0.0009655952453613281, 0.01050567626953125, 0.0192413330078125, 0.0164642333984375, 0.006641387939453125, 0.0125579833984375, 0.0240020751953125, -0.036163330078125, -0.01399993896484375, -0.01236724853515625, -0.0308990478515625, -0.00261688232421875, -0.020843505859375, 0.00856781005859375, 0.0206756591796875, 0.0219573974609375, 0.01239013671875, -0.014434814453125, 0.0008001327514648438, -0.0181121826171875, 0.0250701904296875, 0.031036376953125, 0.0034999847412109375, -0.0284271240234375, -0.002460479736328125, 0.0035877227783203125, -0.022216796875, -0.002246856689453125, -0.005641937255859375, -0.0161590576171875, 0.0240020751953125, -0.01483154296875, -0.033966064453125, -0.003856658935546875, -0.006069183349609375, -0.0053253173828125, -0.035888671875, -0.0270233154296875, -0.001598358154296875, 0.00986480712890625, -0.030487060546875, -0.00972747802734375, 0.0182037353515625, 0.005340576171875, 0.0016508102416992188, -0.035247802734375, -0.0335693359375, 0.01273345947265625, -0.01216888427734375, -0.02825927734375, -0.0079345703125, -0.00850677490234375, -0.01922607421875, -0.0169830322265625, -0.052001953125, 0.03936767578125, -0.0068206787109375, -0.0340576171875, -0.0240478515625, 0.005718231201171875, 0.07867431640625, -0.0215911865234375, 0.0631103515625, 0.0399169921875, -0.060821533203125, 0.1400146484375, -0.10516357421875, 0.0179443359375, 0.041961669921875, 0.0097503662109375, -0.0099334716796875, 0.020660400390625, 0.01183319091796875, 0.011322021484375, 0.01398468017578125, 0.0110931396484375, 0.011444091796875, -0.05859375, -0.02264404296875, -0.0287322998046875, -0.0249786376953125, -0.00423431396484375, -0.035003662109375, 0.042266845703125, 0.042205810546875, 0.06024169921875, -0.0611572265625, 0.012542724609375, 0.0104522705078125, -0.0531005859375, -0.08306884765625, 0.03924560546875, -0.054718017578125, -0.029205322265625, 0.041412353515625, 0.0882568359375, 0.03729248046875, 0.0244140625, 0.01287841796875, 0.049285888671875, -0.053375244140625, -0.0301666259765625, 0.03314208984375, 0.00606536865234375, -0.02880859375, -0.019317626953125, -0.0213775634765625, -0.0311737060546875, 0.024688720703125, 0.008636474609375, 0.0228424072265625, -0.01154327392578125, -0.08184814453125, 0.033203125, -0.04339599609375, 0.01763916015625, 0.00949859619140625, -0.027130126953125, -0.006622314453125, -0.01021575927734375, -0.00946044921875, -0.005458831787109375, -0.026397705078125, 0.031341552734375, 0.006015777587890625, 0.002826690673828125, -0.0101165771484375, -0.01432037353515625, -0.032196044921875, -0.045623779296875, -0.004058837890625, 0.022216796875, -0.019439697265625, 0.026275634765625, -0.019134521484375, -0.0028896331787109375, 0.000017404556274414062, -0.000591278076171875, 0.0289154052734375, -0.0104522705078125, 0.040618896484375, 0.044769287109375, -0.02215576171875, -0.0277252197265625, -0.0450439453125, 0.085205078125, -0.0199432373046875, -0.046722412109375, 0.004039764404296875, 0.038330078125, 0.0625, -0.0107269287109375, 0.02655029296875, 0.0208587646484375, 0.012847900390625, -0.04669189453125, -0.0018367767333984375, 0.006359100341796875, -0.0079803466796875, -0.020416259765625, -0.00727081298828125, 0.0036411285400390625, 0.016387939453125, -0.0203399658203125, -0.005641937255859375, 0.02587890625, 0.00978851318359375, 0.0031642913818359375, 0.0145111083984375, -0.01157379150390625, 0.034942626953125, -0.0196075439453125, -0.0287933349609375, 0.0002789497375488281, -0.044677734375, 0.005794525146484375, -0.0303802490234375, -0.022857666015625, 0.03363037109375, 0.0115203857421875, -0.016387939453125, -0.043243408203125, -0.0025081634521484375, -0.06134033203125, -0.0098876953125, -0.057891845703125, 0.045928955078125, 0.03436279296875, 0.0059661865234375, -0.03173828125, -0.01824951171875, 0.006801605224609375, 0.01593017578125, -0.05743408203125, 0.04034423828125, 0.037750244140625, 0.057037353515625, -0.04827880859375, -0.024261474609375, -0.03765869140625, -0.0270538330078125, -0.00820159912109375, 0.04010009765625, 0.051483154296875, 0.0176849365234375, 0.0094757080078125, -0.01678466796875, 0.0309600830078125, -0.032684326171875, 0.0301055908203125, -0.0294036865234375, 0.0033626556396484375, 0.0280303955078125, 0.01531982421875, -0.004817962646484375, 0.0188140869140625, -0.043548583984375, 0.0190277099609375, 0.030487060546875, -0.0150299072265625, -0.0287322998046875, 0.0084686279296875, -0.01062774658203125, 0.020965576171875, 0.00891876220703125, -0.037994384765625, 0.00859832763671875, -0.003635406494140625, 0.03045654296875, 0.0295257568359375, 0.0144500732421875, -0.012420654296875, 0.002246856689453125, 0.0055084228515625, -0.01261138916015625, -0.0003170967102050781, -0.0017795562744140625, -0.0096282958984375, 0.0285797119140625, 0.00153350830078125, 0.0003924369812011719, 0.0035572052001953125, -0.0037441253662109375, -0.0095977783203125, 0.0266571044921875, -0.01128387451171875, -0.0195159912109375, -0.01171112060546875, -0.048583984375, 0.0167388916015625, 0.010528564453125, -0.006969451904296875, -0.04443359375, -0.01922607421875, 0.04339599609375, -0.03021240234375, 0.049560546875, 0.0240936279296875, -0.0277862548828125, 0.056488037109375, 0.005809783935546875, 0.00766754150390625, -0.0231475830078125, 0.0269622802734375, 0.03204345703125, -0.04193115234375, 0.0211639404296875, 0.000850677490234375, -0.01532745361328125, 0.00756072998046875, 0.0101776123046875, -0.003162384033203125, -0.047088623046875, 0.01505279541015625, 0.034942626953125, 0.041046142578125, 0.050628662109375, 0.005718231201171875, -0.03619384765625, 0.0129852294921875, 0.026031494140625, -0.037139892578125, -0.048919677734375, 0.019317626953125, -0.038970947265625, -0.02801513671875, -0.0240631103515625, -0.0184173583984375, 0.01605224609375, -0.007587432861328125, -0.01435089111328125, 0.01303863525390625, -0.004062652587890625, -0.03765869140625, -0.019500732421875, -0.0526123046875, -0.0299224853515625, 0.000873565673828125, 0.00801849365234375, -0.01126861572265625, 0.049652099609375, -0.006664276123046875, -0.0298919677734375, 0.0020618438720703125, 0.0159759521484375, 0.006481170654296875, 0.00023376941680908203, 0.0204315185546875, -0.0572509765625, -0.0201873779296875, -0.010528564453125, -0.0012845993041992188, 0.0125885009765625, -0.00675201416015625, 0.006076812744140625, -0.049530029296875, 0.017913818359375, -0.05511474609375, 0.07122802734375, 0.08160400390625, 0.0015354156494140625, 0.00414276123046875, -0.037628173828125, -0.056488037109375, 0.0175933837890625, -0.03125, 0.023406982421875, 0.004650115966796875, -0.0124969482421875, -0.01678466796875, 0.05377197265625, 0.01227569580078125, -0.011810302734375, 0.01108551025390625, -0.00957489013671875, 0.03521728515625, 0.0018167495727539062, 0.0083770751953125, -0.0204925537109375, 0.0159149169921875, -0.0076141357421875, 0.0215911865234375, 0.007511138916015625, 0.033203125, -0.0135345458984375, 0.01080322265625, -0.07781982421875, -0.09765625, 0.04522705078125, -0.01316070556640625, 0.026824951171875, -0.042755126953125, -0.036224365234375, 0.0313720703125, 0.139892578125, -0.061248779296875, -0.0122222900390625, 0.0025196075439453125, 0.0022182464599609375, -0.0115509033203125, 0.01605224609375, -0.04901123046875, -0.0177001953125, -0.07470703125, 0.0187530517578125, -0.01177215576171875, -0.025360107421875, -0.02642822265625, -0.01372528076171875, -0.046234130859375, -0.037933349609375, 0.02471923828125, 0.005268096923828125, -0.00215911865234375, 0.04833984375, -0.01180267333984375, 0.02899169921875, 0.0004749298095703125, -0.007083892822265625, -0.1005859375, -0.005382537841796875, -0.050537109375, 0.062225341796875, 0.0149993896484375, 0.0038967132568359375, -0.0164337158203125, 0.04736328125, 0.043121337890625, 0.02386474609375, 0.006473541259765625, -0.030120849609375, 0.0199127197265625, 0.01209259033203125, 0.01812744140625, -0.012451171875, 0.0076141357421875, 0.0107879638671875, -0.0450439453125, -0.00864410400390625, -0.03558349609375, -0.0170745849609375, 0.0225372314453125, -0.049468994140625, -0.000347137451171875, -0.0361328125, -0.0085296630859375, 0.0030231475830078125, -0.006931304931640625, -0.01152801513671875, -0.025054931640625, -0.001987457275390625, 0.033843994140625, -0.0148162841796875, -0.034576416015625, 0.013153076171875, 0.057403564453125, 0.0262603759765625, -0.026824951171875, -0.0533447265625, 0.034271240234375, 0.02679443359375, -0.0152130126953125, 0.034210205078125, -0.01477813720703125, -0.0274505615234375, 0.060791015625, -0.019622802734375, -0.0219879150390625, -0.00472259521484375, 0.123046875, -0.0170440673828125, -0.02984619140625, 0.0248565673828125, -0.050323486328125, -0.00592041015625, -0.037109375, -0.038055419921875, -0.0093536376953125, 0.050262451171875, 0.049713134765625, -0.03662109375, 0.041778564453125, -0.024139404296875, -0.0187530517578125, 0.01282501220703125, -0.008087158203125, 0.0270538330078125, 0.0276336669921875, -0.01026153564453125, 0.0018215179443359375, -0.01424407958984375, 0.0176239013671875, 0.0251922607421875, 0.0251922607421875, -0.0114593505859375, 0.049072265625, 0.020050048828125, 0.00467681884765625, -0.004253387451171875, -0.014862060546875, 0.0965576171875, 0.01076507568359375, -0.03887939453125, 0.00672149658203125, -0.021270751953125, -0.020721435546875, 0.005584716796875, -0.01102447509765625, 0.048919677734375, 0.01531219482421875, -0.0133819580078125, -0.01953125, -0.051666259765625, 0.00884246826171875, -0.0604248046875, 0.0279083251953125, 0.032958984375, -0.03631591796875, 0.0249481201171875, -0.03839111328125, 0.0282745361328125, -0.0242767333984375, -0.0118865966796875, 0.02008056640625, 0.0218505859375, 0.050201416015625, 0.006549835205078125, -0.0254669189453125, 0.00421905517578125, 0.03656005859375, 0.00286865234375, -0.0092010498046875, -0.03033447265625, 0.01385498046875, 0.043060302734375, -0.014495849609375, 0.024322509765625, -0.00897979736328125, -0.01238250732421875, -0.0178680419921875, 0.004528045654296875, 0.0439453125, 0.0226898193359375, -0.0187225341796875, -0.01531219482421875, 0.003940582275390625, 0.03912353515625, -0.00801849365234375, -0.0002522468566894531, -0.00910186767578125, -0.005130767822265625, -0.004070281982421875, -0.03399658203125, 0.001003265380859375, 0.009490966796875, -0.027496337890625, 0.00264739990234375, 0.0022430419921875, -0.0870361328125, -0.0537109375, -0.00601959228515625, -0.0005698204040527344, 0.0183868408203125, -0.03955078125, 0.06640625, -0.0224609375, -0.0379638671875, -0.039306640625, 0.0273895263671875, 0.0137176513671875, 0.0181884765625, 0.0089569091796875, -0.0162353515625, -0.041107177734375, -0.02099609375, -0.0423583984375, -0.031494140625, -0.019195556640625, 0.0040740966796875, 0.006916046142578125, 0.024688720703125, -0.02069091796875, -0.033966064453125, -0.030120849609375, 0.0183563232421875, 0.0271759033203125, 0.0268402099609375, -0.036712646484375, 0.08306884765625, 0.0133819580078125, 0.0445556640625, 0.00787353515625, 0.041961669921875, 0.0013246536254882812, -0.015899658203125, 0.00482177734375, -0.005756378173828125, -0.03228759765625, -0.006328582763671875, -0.03948974609375, 0.0296173095703125, 0.10003662109375, -0.0073394775390625, 0.01367950439453125, -0.038177490234375, -0.01312255859375, -0.03289794921875, 0.01285552978515625, -0.04022216796875, 0.01181793212890625, -0.0158538818359375, -0.0023174285888671875, 0.007030487060546875, -0.01010894775390625, -0.006072998046875, -0.00024890899658203125, 0.0122222900390625, 0.0281219482421875, -0.0236358642578125, -0.037384033203125, 0.069580078125, 0.045135498046875, -0.021148681640625, 0.0401611328125, -0.005207061767578125, 0.0055389404296875, 0.04022216796875, 0.0186920166015625, 0.01611328125, -0.026763916015625, 0.0775146484375, 0.0163421630859375, -0.0251617431640625, 0.042236328125, -0.03216552734375, 0.00821685791015625, 0.027862548828125, 0.042144775390625, -0.07037353515625, 0.03582763671875, -0.00591278076171875, 0.02685546875, 0.079345703125, 0.0126495361328125, -0.004795074462890625, 0.00719451904296875, 0.015777587890625, -0.01462554931640625, -0.0144500732421875, 0.0175628662109375, 0.0039215087890625, -0.005977630615234375, -0.032440185546875, -0.0098419189453125, -0.004184722900390625, 0.035888671875, -0.01221466064453125, -0.035186767578125, 0.01389312744140625, -0.0214080810546875, -0.0264739990234375, 0.0115203857421875, -0.021820068359375, -0.03326416015625, 0.016998291015625, -0.0570068359375, 0.03839111328125, 0.026580810546875, 0.0096282958984375, 0.02130126953125, 0.02471923828125, -0.00421905517578125, 0.019287109375, -0.00955963134765625, -0.01007843017578125, -0.018341064453125, -0.02215576171875, 0.052520751953125, -0.01654052734375, -0.048583984375, 0.0185394287109375, -0.01381683349609375, -0.063720703125, -0.0106964111328125, -0.049591064453125, 0.04107666015625, -0.052276611328125, 0.004024505615234375, 0.013153076171875, 0.0174713134765625, -0.0019388198852539062, 0.0039043426513671875, 0.013946533203125, -0.033294677734375, -0.00655364990234375, 0.003971099853515625, -0.02301025390625, 0.003276824951171875, 0.0016069412231445312, -0.0633544921875, 0.0888671875, -0.00464630126953125, 0.01953125, 0.0018033981323242188, 0.044219970703125, -0.04052734375, 0.01178741455078125, -0.022918701171875, 0.016021728515625, -0.0188446044921875, 0.034637451171875, -0.0229034423828125, -0.005413055419921875, 0.00984954833984375, 0.034912109375, 0.006103515625, -0.0020122528076171875, -0.0213623046875, 0.01580810546875, 0.043609619140625, 0.0390625, 0.0220489501953125, 0.0165252685546875, -0.037689208984375, 0.020111083984375, 0.0225067138671875, -0.0360107421875, 0.0084686279296875, 0.007259368896484375, -0.03277587890625, 0.0013341903686523438, 0.00492095947265625, 0.01200103759765625, 0.00730133056640625, 0.006195068359375, -0.037628173828125, 0.01273345947265625, 0.0205841064453125, -0.032989501953125, 0.0034732818603515625, 0.032379150390625, 0.046661376953125, -0.07684326171875, -0.0670166015625, -0.01812744140625, 0.049530029296875, 0.00833892822265625, 0.0380859375, -0.0070648193359375, 0.0133819580078125, 0.01320648193359375, 0.02471923828125, 0.0134124755859375, 0.054962158203125, -0.02685546875, 0.06329345703125, 0.0220489501953125, 0.033721923828125, -0.03851318359375, -0.027008056640625, 0.00286102294921875, 0.0677490234375, -0.03924560546875, 0.01593017578125, 0.00899505615234375, -0.016510009765625, 0.01314544677734375, -0.0523681640625, 0.0296783447265625, -0.0131988525390625, -0.048187255859375, -0.026214599609375, 0.0201263427734375, 0.0255889892578125, 0.0006051063537597656, -0.0039825439453125, 0.01409912109375, -0.04510498046875, 0.032318115234375, -0.04327392578125, -0.005970001220703125, 0.01422119140625, 0.02935791015625, 0.034759521484375, 0.0416259765625, 0.028900146484375, -0.01238250732421875, -0.0037593841552734375, -0.01445770263671875, 0.02911376953125, -0.012481689453125, 0.01074981689453125, 0.043182373046875, -0.01013946533203125, 0.024383544921875, -0.01175689697265625, -0.0263824462890625, 0.016021728515625, -0.004261016845703125, -0.0205078125, -0.030242919921875, -0.023590087890625, -0.032012939453125, 0.006744384765625, -0.0007185935974121094, -0.021575927734375, 0.01507568359375, -0.0222625732421875, 0.0147705078125, 0.007129669189453125, 0.05230712890625, 0.018524169921875, -0.023956298828125, 0.02056884765625, -0.039947509765625, 0.0026149749755859375, 0.0684814453125, 0.03656005859375, 0.07135009765625, -0.09466552734375, -0.0071563720703125, -0.037384033203125, -0.057952880859375, 0.041015625, 0.060028076171875, 0.00766754150390625, -0.029937744140625, 0.03558349609375, -0.0123443603515625, -0.006076812744140625, 0.0015392303466796875, 0.0024089813232421875, 0.013824462890625, 0.022918701171875, 0.025054931640625, -0.07177734375, -0.037353515625, -0.0386962890625, 0.0252685546875, 0.0228271484375, 0.0579833984375, 0.0013866424560546875, 0.02325439453125, -0.03118896484375, 0.0199432373046875, -0.0467529296875, -0.056060791015625, 0.07647705078125, 0.00019240379333496094, -0.00962066650390625, -0.001232147216796875, -0.0439453125, 0.0404052734375, 0.02374267578125, 0.0096282958984375, 0.04351806640625, -0.00794219970703125, 0.006412506103515625, 0.0019254684448242188, -0.01303863525390625, -0.034271240234375, -0.00009250640869140625, -0.037139892578125, -0.0136566162109375, 0.0242156982421875, -0.0270538330078125, -0.03277587890625, 0.01361083984375, 0.029815673828125, -0.0195770263671875, 0.03887939453125, -0.0210418701171875, 0.06353759765625, 0.029693603515625, -0.02392578125, -0.06903076171875, 0.0195770263671875, -0.0005359649658203125, -0.0224761962890625, 0.0127716064453125, 0.05462646484375, 0.012054443359375, -0.035369873046875, 0.0225830078125, 0.03472900390625, 0.040985107421875, -0.0205230712890625, 0.01259613037109375, 0.03204345703125, -0.01861572265625, 0.02728271484375, -0.0810546875, -0.0240631103515625, -0.039215087890625, 0.014739990234375, 0.046905517578125, 0.00839996337890625, -0.004657745361328125, -0.039886474609375, 0.0183258056640625, 0.0280914306640625, 0.00946807861328125, -0.0654296875, 0.04449462890625, -0.042236328125, 0.040496826171875, -0.0011081695556640625, 0.0440673828125, 0.0073394775390625, 0.026763916015625, -0.033660888671875, -0.005420684814453125, -0.0115509033203125, 0.0191497802734375, -0.004016876220703125, -0.0010223388671875, 0.0290985107421875, -0.016082763671875, 0.021636962890625, 0.0204315185546875, 0.0030384063720703125, 0.067138671875, -0.063720703125, -0.026275634765625, 0.031707763671875, -0.0192413330078125, -0.001705169677734375, -0.038482666015625, 0.0120391845703125, -0.048309326171875, -0.0059814453125, 0.024322509765625, -0.0213775634765625, 0.005092620849609375, -0.0285491943359375, -0.051849365234375, 0.064208984375, 0.009613037109375, -0.030792236328125, -0.06500244140625, 0.038299560546875, -0.00322723388671875, -0.0078887939453125, -0.0199432373046875, -0.0238494873046875, 0.0143585205078125, 0.043182373046875, 0.0003368854522705078, 0.0303192138671875, 0.00412750244140625, 0.020477294921875, -0.059356689453125, -0.00341796875, -0.0270538330078125, 0.001739501953125, 0.0036563873291015625, -0.0295867919921875, 0.03192138671875, 0.0279998779296875, -0.032379150390625, -0.00911712646484375, 0.024169921875, -0.0080413818359375, -0.010833740234375, -0.012939453125, -0.00479888916015625, -0.013763427734375, 0.0777587890625, -0.0009226799011230469, 0.014434814453125, -0.0017728805541992188, -0.01165771484375, -0.025177001953125, -0.0386962890625, 0.0136566162109375, 0.0227508544921875, -0.0399169921875, 0.01488494873046875, 0.0170745849609375, -0.0061187744140625, 0.037567138671875, -0.021331787109375, -0.006805419921875, -0.00024580955505371094, -0.00495147705078125, -0.0008578300476074219, -0.060150146484375, 0.0028533935546875, 0.031982421875, -0.0245513916015625, 0.022857666015625, -0.00019109249114990234, 0.006496429443359375, 0.0297088623046875, 0.037384033203125, -0.035247802734375, -0.0224761962890625, -0.01351165771484375, 0.0166778564453125, -0.0171356201171875, 0.036895751953125, -0.017059326171875, 0.0092315673828125, -0.027496337890625, 0.011016845703125, 0.01485443115234375, 0.00717926025390625, -0.0118255615234375, 0.005603790283203125, 0.00927734375, 0.04217529296875, -0.00635528564453125, 0.0157012939453125, -0.005329132080078125, 0.01409149169921875, 0.031494140625, -0.014801025390625, 0.05633544921875, -0.042327880859375, -0.00760650634765625, -0.0087890625, 0.0035037994384765625, -0.05517578125, 0.0177001953125, -0.04803466796875, -0.004974365234375, 0.025848388671875 ]
70f9b4252720e16141b9eb0704c1da5e1c711f9a
Wordpress Stackexchange Q: Modify search function in WordPress (TwentyTwelve) I want to remove "Search for" text from search form in TwentyTwelve, to wrap in in a div for styling, and probably to play with php a bit – and I'd appreciate some advice on how to do that best. My "sub-questions within a question": 1) Where is the main search function is located? 2) Should I create a separate custom file, add code to functions.php - or is it okay in this case to just edit the original search function? Thank you in advance for your help! A: Modify the searchform.php, or create one in a child theme (recommended), and you should be able to modify the form all you want. This is the file that get_search_form looks for and is the file used by the default search widget, though it is not listed in the Template Hierarchy. Reference: http://codex.wordpress.org/Function_Reference/get_search_form
Q: Modify search function in WordPress (TwentyTwelve) I want to remove "Search for" text from search form in TwentyTwelve, to wrap in in a div for styling, and probably to play with php a bit – and I'd appreciate some advice on how to do that best. My "sub-questions within a question": 1) Where is the main search function is located? 2) Should I create a separate custom file, add code to functions.php - or is it okay in this case to just edit the original search function? Thank you in advance for your help! A: Modify the searchform.php, or create one in a child theme (recommended), and you should be able to modify the form all you want. This is the file that get_search_form looks for and is the file used by the default search widget, though it is not listed in the Template Hierarchy. Reference: http://codex.wordpress.org/Function_Reference/get_search_form
wordpress
{ "language": "en", "length": 148, "provenance": "stackexchange_00019.jsonl.gz:431927", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/97849" }
[ 0.034881591796875, -0.035369873046875, 0.0111236572265625, 0.00647735595703125, -0.01447296142578125, -0.0271453857421875, 0.08685302734375, 0.00399017333984375, 0.0234375, 0.02301025390625, -0.006938934326171875, -0.02850341796875, 0.0027618408203125, -0.029266357421875, -0.0308685302734375, -0.02362060546875, 0.005950927734375, -0.038970947265625, -0.0212249755859375, -0.04534912109375, 0.017547607421875, -0.042633056640625, 0.026092529296875, 0.0345458984375, 0.02191162109375, -0.052032470703125, 0.09820556640625, -0.0088653564453125, 0.035614013671875, -0.01320648193359375, 0.02130126953125, -0.019805908203125, 0.04925537109375, 0.0019168853759765625, -0.038482666015625, 0.037109375, -0.01189422607421875, -0.005329132080078125, -0.01427459716796875, 0.02423095703125, 0.02587890625, 0.00806427001953125, -0.061859130859375, 0.017486572265625, -0.039398193359375, -0.0997314453125, 0.08807373046875, 0.00959014892578125, 0.0245208740234375, 0.00839996337890625, 0.0160369873046875, 0.06585693359375, 0.02923583984375, -0.06597900390625, -0.01107025146484375, -0.00782012939453125, -0.002162933349609375, -0.0228424072265625, 0.0138092041015625, 0.00896453857421875, 0.0104522705078125, 0.00008875131607055664, 0.005367279052734375, -0.0003063678741455078, -0.0014553070068359375, -0.01702880859375, 0.0100860595703125, 0.0089111328125, -0.08380126953125, -0.0078125, 0.06268310546875, -0.03729248046875, -0.006107330322265625, -0.0016994476318359375, 0.022003173828125, -0.0200042724609375, -0.0147705078125, -0.004787445068359375, 0.00963592529296875, 0.034759521484375, -0.0131072998046875, -0.044097900390625, -0.0450439453125, 0.0001462697982788086, 0.020660400390625, 0.01035308837890625, -0.0007572174072265625, -0.011962890625, -0.037567138671875, -0.0165863037109375, -0.0199432373046875, -0.048187255859375, -0.04473876953125, 0.002185821533203125, -0.00437164306640625, -0.0340576171875, 0.0228271484375, 0.016021728515625, 0.01145172119140625, 0.041290283203125, 0.006725311279296875, -0.05303955078125, 0.048553466796875, -0.02899169921875, 0.0012140274047851562, 0.04083251953125, -0.0115203857421875, 0.0232391357421875, 0.028564453125, 0.0283050537109375, 0.014312744140625, 0.0018434524536132812, -0.00170135498046875, -0.0025844573974609375, -0.061187744140625, 0.0300750732421875, 0.0121612548828125, -0.020477294921875, -0.0153656005859375, 0.04449462890625, 0.01523590087890625, 0.0208740234375, 0.009735107421875, -0.0251007080078125, -0.00957489013671875, -0.033203125, -0.029296875, -0.0230560302734375, 0.0204010009765625, -0.02276611328125, -0.03790283203125, -0.0006861686706542969, 0.0455322265625, 0.061981201171875, 0.0340576171875, -0.011016845703125, -0.014556884765625, 0.0166015625, 0.00380706787109375, 0.0134429931640625, 0.01145172119140625, -0.053924560546875, 0.00923919677734375, 0.0274505615234375, 0.0036067962646484375, -0.0278472900390625, 0.03106689453125, 0.051910400390625, -0.004482269287109375, -0.022796630859375, 0.018585205078125, 0.0638427734375, 0.05816650390625, -0.004810333251953125, -0.046356201171875, -0.01161956787109375, 0.0484619140625, -0.040924072265625, -0.043426513671875, -0.051300048828125, -0.0194091796875, -0.00434112548828125, 0.044403076171875, -0.01409912109375, 0.007232666015625, -0.01357269287109375, -0.02215576171875, -0.0055389404296875, 0.0186920166015625, -0.017822265625, -0.011749267578125, -0.00366973876953125, -0.01044464111328125, 0.023101806640625, 0.025177001953125, 0.02740478515625, 0.01311492919921875, 0.021881103515625, 0.022613525390625, 0.032379150390625, 0.00927734375, -0.0275421142578125, 0.085693359375, -0.03656005859375, -0.060394287109375, 0.06378173828125, 0.0244598388671875, 0.06805419921875, -0.02093505859375, 0.01093292236328125, 0.05322265625, 0.05389404296875, -0.045013427734375, 0.0196685791015625, -0.002155303955078125, -0.0018053054809570312, -0.00505828857421875, 0.01110076904296875, -0.00780487060546875, -0.00933837890625, -0.00756072998046875, 0.039947509765625, -0.024993896484375, 0.00811004638671875, -0.0699462890625, 0.02606201171875, -0.02117919921875, 0.039703369140625, -0.06097412109375, 0.04876708984375, 0.0296630859375, 0.0190277099609375, -0.027679443359375, -0.0227508544921875, 0.0270843505859375, -0.02191162109375, 0.030792236328125, 0.056182861328125, 0.01629638671875, 0.0164794921875, 0.0231475830078125, -0.014251708984375, 0.02691650390625, 0.02532958984375, 0.048248291015625, -0.00113677978515625, -0.0262603759765625, -0.0177764892578125, 0.03350830078125, -0.01371002197265625, -0.01519775390625, 0.07318115234375, 0.07122802734375, 0.05364990234375, -0.025238037109375, 0.0027256011962890625, 0.00449371337890625, -0.053619384765625, 0.0002994537353515625, 0.03619384765625, 0.0307464599609375, 0.03143310546875, 0.01123809814453125, 0.02105712890625, 0.06671142578125, -0.01898193359375, 0.0160369873046875, -0.0017938613891601562, 0.035919189453125, 0.0723876953125, 0.0014753341674804688, -0.0164337158203125, 0.0005588531494140625, -0.040679931640625, 0.027313232421875, 0.01419830322265625, 0.0007543563842773438, -0.01154327392578125, 0.00644683837890625, -0.0227508544921875, 0.01031494140625, -0.03570556640625, -0.045806884765625, -0.0020313262939453125, 0.029052734375, 0.0160064697265625, 0.0228424072265625, 0.02532958984375, -0.042877197265625, 0.0163421630859375, 0.02392578125, 0.018035888671875, -0.0390625, 0.01273345947265625, -0.00981903076171875, -0.007266998291015625, -0.041229248046875, 0.0426025390625, -0.0709228515625, -0.00839996337890625, -0.00069427490234375, 0.023834228515625, -0.02740478515625, -0.003551483154296875, -0.0167999267578125, -0.04852294921875, 0.006561279296875, 0.027557373046875, 0.0261383056640625, 0.0260467529296875, 0.04156494140625, -0.00860595703125, -0.0171966552734375, 0.0245819091796875, -0.00637054443359375, -0.0225982666015625, 0.0028400421142578125, -0.00592041015625, 0.011627197265625, -0.01213836669921875, 0.06170654296875, 0.05364990234375, -0.04034423828125, 0.0224456787109375, 0.0111236572265625, 0.016632080078125, 0.004001617431640625, 0.0025577545166015625, 0.00589752197265625, 0.0183258056640625, -0.0655517578125, -0.0149993896484375, 0.006824493408203125, 0.004974365234375, 0.0017852783203125, -0.031768798828125, 0.0030670166015625, 0.01274871826171875, -0.05517578125, -0.0615234375, -0.0299224853515625, -0.0173187255859375, -0.0408935546875, 0.035858154296875, -0.0215301513671875, 0.020721435546875, 0.028778076171875, 0.0028171539306640625, 0.02130126953125, -0.01055908203125, -0.07122802734375, -0.016448974609375, -0.0675048828125, 0.023529052734375, -0.0157470703125, 0.0108795166015625, 0.01103973388671875, 0.0655517578125, 0.0185546875, -0.0179443359375, 0.0200653076171875, 0.062286376953125, -0.00228118896484375, -0.004169464111328125, 0.03912353515625, -0.1195068359375, 0.005340576171875, -0.0214691162109375, 0.038238525390625, -0.0047454833984375, 0.0285491943359375, 0.01541900634765625, 0.0078582763671875, 0.0032196044921875, 0.007747650146484375, 0.004261016845703125, -0.007205963134765625, -0.0015001296997070312, 0.005126953125, -0.048980712890625, 0.0045623779296875, -0.0156707763671875, -0.0244903564453125, 0.0215911865234375, -0.005771636962890625, -0.0025043487548828125, -0.00017881393432617188, 0.0238037109375, 0.04827880859375, 0.00494384765625, 0.03192138671875, -0.02972412109375, 0.039031982421875, 0.01666259765625, 0.039764404296875, -0.06646728515625, 0.046478271484375, -0.0189208984375, 0.0254974365234375, 0.0262603759765625, 0.032989501953125, 0.0572509765625, -0.05059814453125, 0.02044677734375, -0.05609130859375, 0.0394287109375, 0.0004181861877441406, -0.003780364990234375, 0.00473785400390625, -0.0214691162109375, 0.026458740234375, 0.09368896484375, -0.058837890625, -0.011138916015625, -0.0015344619750976562, 0.00853729248046875, 0.007518768310546875, -0.038604736328125, -0.00921630859375, -0.03460693359375, -0.10662841796875, -0.0100250244140625, -0.03094482421875, -0.0227203369140625, -0.005870819091796875, 0.0175933837890625, -0.0550537109375, -0.048187255859375, 0.0176544189453125, 0.0012960433959960938, 0.00249481201171875, 0.01149749755859375, 0.0061492919921875, -0.0152740478515625, 0.0063934326171875, -0.0308990478515625, -0.031951904296875, -0.00788116455078125, -0.01544189453125, 0.0419921875, 0.03204345703125, -0.01535797119140625, 0.004543304443359375, 0.054779052734375, 0.041534423828125, -0.0029811859130859375, 0.0280303955078125, -0.05133056640625, 0.05462646484375, 0.0587158203125, 0.010101318359375, 0.01279449462890625, -0.02978515625, -0.00958251953125, -0.0081787109375, 0.0223236083984375, -0.0040740966796875, -0.0178375244140625, 0.0227813720703125, -0.0161895751953125, -0.020233154296875, -0.0521240234375, -0.032745361328125, 0.00882720947265625, -0.055633544921875, 0.0369873046875, -0.039703369140625, -0.0177154541015625, 0.06396484375, 0.03656005859375, -0.0241241455078125, -0.014495849609375, 0.031951904296875, 0.005390167236328125, -0.06427001953125, -0.0179443359375, -0.04949951171875, 0.01512908935546875, 0.028106689453125, -0.02874755859375, -0.05291748046875, -0.037353515625, 0.04443359375, -0.0192413330078125, 0.01373291015625, -0.0163116455078125, 0.02459716796875, 0.01203155517578125, -0.01322174072265625, 0.01434326171875, 0.0092010498046875, 0.0007834434509277344, 0.0019044876098632812, -0.015899658203125, 0.00623321533203125, 0.0240478515625, 0.006183624267578125, -0.01273345947265625, 0.01776123046875, 0.001041412353515625, -0.022491455078125, 0.002231597900390625, -0.024871826171875, 0.0546875, 0.0028553009033203125, 0.0006542205810546875, 0.025360107421875, 0.0167999267578125, 0.007648468017578125, -0.023956298828125, 0.0027484893798828125, -0.041046142578125, 0.037567138671875, -0.019378662109375, -0.01102447509765625, -0.0168914794921875, -0.01033782958984375, 0.041290283203125, 0.00490570068359375, -0.02703857421875, -0.00014400482177734375, -0.01070404052734375, 0.043487548828125, -0.00473785400390625, 0.02142333984375, -0.024688720703125, -0.017333984375, 0.020843505859375, 0.02789306640625, 0.029998779296875, 0.0116729736328125, 0.01512908935546875, -0.00592803955078125, 0.0005507469177246094, -0.0185089111328125, 0.0059356689453125, 0.036773681640625, -0.005115509033203125, 0.03436279296875, -0.026397705078125, -0.040252685546875, -0.045562744140625, 0.0027027130126953125, 0.0010528564453125, 0.0310516357421875, 0.0268707275390625, -0.031463623046875, 0.09429931640625, 0.0168304443359375, 0.00696563720703125, -0.011810302734375, -0.033782958984375, -0.01116943359375, 0.0187835693359375, 0.03985595703125, 0.01091766357421875, 0.00656890869140625, -0.0010404586791992188, 0.005664825439453125, -0.0158233642578125, 0.007335662841796875, 0.006229400634765625, -0.01216888427734375, -0.00821685791015625, -0.00785064697265625, -0.049224853515625, -0.050628662109375, -0.040557861328125, 0.040557861328125, -0.0262908935546875, -0.017791748046875, -0.02294921875, -0.0260467529296875, -0.01727294921875, -0.0019311904907226562, -0.07196044921875, -0.048492431640625, 0.0037078857421875, -0.00534820556640625, 0.0203857421875, -0.00787353515625, 0.0088958740234375, -0.0105133056640625, -0.007724761962890625, -0.006320953369140625, 0.004970550537109375, 0.046234130859375, -0.006084442138671875, -0.047576904296875, -0.015380859375, -0.0210418701171875, -0.010162353515625, -0.042694091796875, -0.0135650634765625, -0.02435302734375, 0.01442718505859375, 0.00682830810546875, -0.001422882080078125, 0.0134124755859375, -0.0146636962890625, 0.0084228515625, 0.0228424072265625, 0.031707763671875, -0.0047149658203125, -0.0066680908203125, 0.0217437744140625, -0.013092041015625, -0.0031490325927734375, -0.0018053054809570312, 0.022491455078125, 0.03704833984375, -0.01398468017578125, 0.035369873046875, -0.0218658447265625, -0.037841796875, -0.0184478759765625, -0.0682373046875, 0.01222991943359375, 0.07525634765625, -0.02191162109375, 0.0122833251953125, -0.003948211669921875, -0.0013971328735351562, -0.034912109375, 0.062469482421875, -0.0167236328125, 0.03668212890625, -0.00667572021484375, -0.0182037353515625, -0.033538818359375, -0.0047454833984375, -0.00986480712890625, 0.022857666015625, 0.001071929931640625, -0.0012073516845703125, 0.005115509033203125, -0.015869140625, 0.03826904296875, 0.04705810546875, -0.002872467041015625, 0.03680419921875, 0.013519287109375, 0.0165557861328125, -0.005817413330078125, 0.0014171600341796875, -0.051513671875, 0.058441162109375, 0.07110595703125, 0.01219940185546875, -0.05340576171875, 0.0194549560546875, -0.05511474609375, -0.0238800048828125, 0.047332763671875, 0.047821044921875, -0.050018310546875, -0.033203125, -0.0036907196044921875, -0.004161834716796875, -0.0066070556640625, 0.01800537109375, -0.022918701171875, -0.04901123046875, -0.0023040771484375, -0.01154327392578125, -0.0200347900390625, -0.0012645721435546875, 0.0030841827392578125, -0.0296478271484375, -0.044403076171875, 0.066162109375, 0.0198211669921875, -0.0254058837890625, 0.0306549072265625, 0.01190185546875, -0.0010690689086914062, -0.033538818359375, 0.0221099853515625, 0.0215301513671875, -0.03363037109375, -0.09527587890625, -0.021087646484375, 0.0380859375, -0.044036865234375, -0.01861572265625, 0.006191253662109375, 0.0606689453125, 0.04150390625, -0.0228118896484375, 0.002838134765625, 0.01690673828125, 0.00859832763671875, 0.02227783203125, 0.0019378662109375, 0.030120849609375, -0.01535797119140625, -0.040069580078125, 0.0244903564453125, -0.050048828125, -0.00016570091247558594, -0.022064208984375, -0.05865478515625, 0.050689697265625, -0.00499725341796875, -0.0082855224609375, 0.0168609619140625, 0.015411376953125, -0.005260467529296875, -0.036651611328125, 0.00656890869140625, -0.056365966796875, -0.02447509765625, -0.0200958251953125, -0.043365478515625, 0.01245880126953125, -0.055816650390625, -0.055450439453125, 0.08935546875, 0.01385498046875, 0.0199737548828125, 0.0087432861328125, 0.04180908203125, -0.018035888671875, 0.0228271484375, -0.0155029296875, 0.03875732421875, -0.03192138671875, 0.03948974609375, -0.015533447265625, 0.01110076904296875, 0.00018930435180664062, 0.01119232177734375, 0.005413055419921875, -0.008514404296875, 0.0113372802734375, 0.0080413818359375, 0.0718994140625, 0.046539306640625, 0.00226593017578125, -0.00830841064453125, 0.020904541015625, 0.041961669921875, 0.000667572021484375, -0.031280517578125, 0.0303497314453125, -0.031280517578125, -0.0216522216796875, 0.04339599609375, 0.01361083984375, 0.0305023193359375, -0.0006461143493652344, 0.03692626953125, -0.0303802490234375, 0.0016727447509765625, 0.0200958251953125, -0.01213836669921875, -0.0073089599609375, 0.035980224609375, 0.0284881591796875, -0.0677490234375, -0.04547119140625, -0.025970458984375, 0.03076171875, 0.0208587646484375, 0.0194549560546875, 0.038238525390625, 0.0118560791015625, 0.0740966796875, -0.0026950836181640625, 0.0123138427734375, 0.0000546574592590332, 0.0129852294921875, 0.0021228790283203125, 0.01181793212890625, -0.006587982177734375, -0.0247039794921875, 0.051849365234375, 0.055816650390625, 0.01177978515625, -0.047027587890625, -0.0187530517578125, -0.0080413818359375, -0.01285552978515625, 0.01258087158203125, -0.028717041015625, -0.00223541259765625, 0.038970947265625, 0.03021240234375, -0.01416015625, -0.00811004638671875, 0.00939178466796875, 0.011322021484375, -0.01189422607421875, -0.0054168701171875, 0.0159149169921875, 0.01094818115234375, -0.016754150390625, 0.015869140625, -0.0103912353515625, 0.0211639404296875, -0.004791259765625, 0.030487060546875, -0.021820068359375, 0.00577545166015625, -0.0179290771484375, -0.025726318359375, -0.0235595703125, 0.036712646484375, -0.0189208984375, 0.006183624267578125, -0.044677734375, 0.0341796875, 0.039276123046875, 0.0306854248046875, 0.0222320556640625, -0.005168914794921875, -0.016510009765625, 0.014434814453125, 0.0205230712890625, -0.0313720703125, 0.0287017822265625, -0.0276031494140625, 0.04327392578125, 0.0284881591796875, 0.0150604248046875, -0.0361328125, 0.0186920166015625, 0.037109375, 0.0102081298828125, -0.0048828125, 0.0204010009765625, -0.05279541015625, 0.009185791015625, -0.00724029541015625, 0.0643310546875, 0.0248260498046875, -0.05291748046875, -0.0035495758056640625, -0.0088043212890625, -0.07415771484375, 0.035064697265625, 0.045379638671875, -0.03955078125, 0.006900787353515625, 0.0052337646484375, -0.01361083984375, -0.0055999755859375, -0.01390838623046875, 0.023223876953125, 0.0111236572265625, -0.01074981689453125, 0.003467559814453125, -0.0550537109375, -0.01806640625, -0.00011080503463745117, 0.003704071044921875, -0.016876220703125, 0.085205078125, -0.0069580078125, -0.01861572265625, 0.01299285888671875, -0.0023250579833984375, 0.00614166259765625, -0.028106689453125, 0.057830810546875, -0.02734375, -0.0002505779266357422, -0.01184844970703125, -0.0296783447265625, -0.029388427734375, 0.051239013671875, -0.049346923828125, 0.0089874267578125, -0.004550933837890625, 0.0230560302734375, -0.05548095703125, -0.040130615234375, -0.025177001953125, 0.0110015869140625, 0.028411865234375, -0.026336669921875, 0.019439697265625, -0.00203704833984375, -0.004871368408203125, 0.00389862060546875, 0.046295166015625, 0.0016965866088867188, 0.0230255126953125, 0.00254058837890625, 0.06201171875, 0.03564453125, -0.010406494140625, -0.01444244384765625, -0.035675048828125, -0.0164794921875, -0.01535797119140625, 0.01056671142578125, -0.0276336669921875, -0.00205230712890625, -0.024261474609375, -0.050567626953125, -0.046142578125, -0.0185089111328125, -0.0360107421875, -0.0017480850219726562, -0.037628173828125, -0.018341064453125, -0.006809234619140625, -0.0018320083618164062, -0.01047515869140625, -0.043670654296875, -0.03204345703125, -0.01036834716796875, -0.032501220703125, -0.0286102294921875, -0.0012807846069335938, -0.022308349609375, 0.0556640625, 0.0094757080078125, -0.08453369140625, 0.0212554931640625, 0.002201080322265625, 0.03350830078125, 0.0130615234375, 0.004383087158203125, -0.00977325439453125, 0.02935791015625, -0.03643798828125, -0.02349853515625, -0.04937744140625, 0.000058591365814208984, -0.04718017578125, 0.01116180419921875, 0.06158447265625, -0.0128021240234375, -0.017974853515625, -0.005390167236328125, -0.0129241943359375, 0.05816650390625, -0.08648681640625, -0.0216522216796875, 0.0225982666015625, -0.00858306884765625, 0.025909423828125, -0.024688720703125, -0.025787353515625, -0.0007739067077636719, 0.009124755859375, 0.039703369140625, -0.00592803955078125, 0.02337646484375, -0.03546142578125, -0.124755859375, 0.0004239082336425781, -0.00705718994140625, -0.068115234375, -0.0428466796875, -0.00836181640625, -0.0036067962646484375, 0.0008306503295898438, -0.005565643310546875, -0.01446533203125, -0.03912353515625, 0.029632568359375, 0.00024366378784179688, 0.03973388671875, 0.007244110107421875, 0.031494140625, -0.07574462890625, -0.002239227294921875, -0.03753662109375, 0.016204833984375, 0.004329681396484375, -0.026092529296875, 0.033355712890625, 0.0276031494140625, -0.04876708984375, -0.00846099853515625, -0.004425048828125, -0.0005750656127929688, -0.0145111083984375, -0.0028438568115234375, -0.01629638671875, -0.0080718994140625, 0.032318115234375, 0.0284271240234375, 0.0076141357421875, -0.00795745849609375, -0.058258056640625, 0.0079803466796875, 0.0029296875, -0.01322174072265625, 0.0183258056640625, -0.0540771484375, 0.0009164810180664062, -0.0098419189453125, -0.045562744140625, -0.0192718505859375, 0.013519287109375, -0.07501220703125, 0.01145172119140625, -0.02825927734375, -0.0179443359375, -0.0266876220703125, 0.0184783935546875, 0.0718994140625, -0.0513916015625, -0.0283050537109375, -0.002162933349609375, -0.0009093284606933594, 0.0007882118225097656, -0.052459716796875, 0.0013036727905273438, 0.0020656585693359375, -0.0154571533203125, 0.001842498779296875, 0.0182952880859375, -0.0031414031982421875, 0.0002512931823730469, -0.0007085800170898438, -0.0408935546875, 0.0109710693359375, 0.025909423828125, -0.0013170242309570312, -0.0582275390625, 0.042144775390625, 0.00574493408203125, 0.07781982421875, -0.0200958251953125, 0.04522705078125, -0.003875732421875, 0.047882080078125, -0.00891876220703125, -0.0169677734375, 0.0299072265625, -0.03143310546875, 0.0095977783203125, -0.004291534423828125, 0.035675048828125, -0.004547119140625, 0.03070068359375, -0.01291656494140625, -0.00890350341796875, 0.02728271484375 ]
7b23d6c9025d0d755f27c59864c97ca796474042
Wordpress Stackexchange Q: How to remove a metabox from menu editor page? I am not sure if it is much different for any page but I am wondering how to remove a metabox from the appearance>menu page without having to go into the wordpress core files and remove it. Is there something I can do to override it so it doesn't appear both on the page and on the screen options menu? A: By inspecting the file /wp-admin/nav-menus.php we can see that these meta-boxes: are rendered with: <?php do_meta_boxes( 'nav-menus', 'side', null ); ?> The file /wp-admin/includes/nav-menu.php contains the corresponding add_meta_box() calls and from that we can construct the relevant removal code: function custom_remove() { remove_meta_box('nav-menu-theme-locations', 'nav-menus', 'side'); remove_meta_box('add-custom-links', 'nav-menus', 'side'); remove_meta_box('add-post', 'nav-menus', 'side'); remove_meta_box('add-page', 'nav-menus', 'side'); remove_meta_box('add-category', 'nav-menus', 'side'); } add_action('admin_head-nav-menus.php', 'custom_remove'); where we can use for example the admin_head-nav-menus.php action since it is called before these meta-boxes are rendered. If you have a custom post type (or a custom taxonomy) then you can remove it's meta-box with remove_meta_box( 'add-xxx' , 'nav-menus' , 'side' ); where xxx is the corresponding name. You can further check out the functions wp_nav_menu_setup(), wp_nav_menu_post_type_meta_boxes() and wp_nav_menu_taxonomy_meta_boxes() to see how the meta-boxes are added.
Q: How to remove a metabox from menu editor page? I am not sure if it is much different for any page but I am wondering how to remove a metabox from the appearance>menu page without having to go into the wordpress core files and remove it. Is there something I can do to override it so it doesn't appear both on the page and on the screen options menu? A: By inspecting the file /wp-admin/nav-menus.php we can see that these meta-boxes: are rendered with: <?php do_meta_boxes( 'nav-menus', 'side', null ); ?> The file /wp-admin/includes/nav-menu.php contains the corresponding add_meta_box() calls and from that we can construct the relevant removal code: function custom_remove() { remove_meta_box('nav-menu-theme-locations', 'nav-menus', 'side'); remove_meta_box('add-custom-links', 'nav-menus', 'side'); remove_meta_box('add-post', 'nav-menus', 'side'); remove_meta_box('add-page', 'nav-menus', 'side'); remove_meta_box('add-category', 'nav-menus', 'side'); } add_action('admin_head-nav-menus.php', 'custom_remove'); where we can use for example the admin_head-nav-menus.php action since it is called before these meta-boxes are rendered. If you have a custom post type (or a custom taxonomy) then you can remove it's meta-box with remove_meta_box( 'add-xxx' , 'nav-menus' , 'side' ); where xxx is the corresponding name. You can further check out the functions wp_nav_menu_setup(), wp_nav_menu_post_type_meta_boxes() and wp_nav_menu_taxonomy_meta_boxes() to see how the meta-boxes are added. A: if (!is_admin()) return; // See https://developer.wordpress.org/reference/functions/wp_nav_menu_taxonomy_meta_boxes/ // $taxonomy_object is of type WP_Post_Type add_filter('nav_menu_meta_box_object', function ($taxonomy_object) { if (in_array($taxonomy_object->name, ['page', 'post', 'category'] )) { return null; } return $taxonomy_object;
wordpress
{ "language": "en", "length": 227, "provenance": "stackexchange_00019.jsonl.gz:431944", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/97890" }
[ 0.07073974609375, -0.001476287841796875, 0.033416748046875, 0.01507568359375, 0.0267791748046875, -0.037994384765625, 0.08770751953125, -0.058380126953125, -0.01422882080078125, 0.0268402099609375, -0.0031375885009765625, -0.0273284912109375, -0.029205322265625, -0.0258941650390625, -0.030487060546875, -0.036407470703125, 0.011505126953125, 0.026702880859375, 0.0478515625, -0.0093841552734375, 0.01309967041015625, -0.00676727294921875, 0.0219573974609375, 0.0288848876953125, 0.0247344970703125, -0.058929443359375, -0.00894927978515625, 0.006984710693359375, -0.003925323486328125, -0.0111541748046875, 0.01226806640625, 0.03973388671875, -0.0012941360473632812, 0.025177001953125, 0.005218505859375, 0.0245819091796875, -0.027618408203125, 0.033905029296875, 0.030120849609375, -0.026153564453125, 0.0291595458984375, -0.0243072509765625, 0.0104827880859375, 0.0000718832015991211, 0.0003714561462402344, -0.01338958740234375, 0.005859375, -0.0523681640625, 0.03875732421875, -0.04925537109375, 0.0188446044921875, -0.022705078125, 0.046722412109375, -0.032135009765625, -0.05426025390625, -0.04998779296875, -0.01416015625, -0.0250091552734375, 0.0224456787109375, 0.05810546875, 0.01053619384765625, 0.00955963134765625, -0.004886627197265625, -0.054168701171875, -0.0084686279296875, 0.00974273681640625, -0.0058135986328125, 0.001850128173828125, -0.07159423828125, 0.0024013519287109375, 0.044647216796875, -0.056549072265625, -0.01373291015625, -0.00833892822265625, -0.0240325927734375, -0.01212310791015625, 0.004901885986328125, -0.0261077880859375, 0.0228118896484375, -0.003936767578125, 0.034210205078125, 0.033416748046875, -0.0271759033203125, -0.0028514862060546875, 0.026031494140625, 0.04644775390625, -0.0134124755859375, -0.050537109375, -0.01500701904296875, -0.027923583984375, -0.01554107666015625, -0.079833984375, 0.0058746337890625, 0.0081939697265625, 0.0024929046630859375, -0.0360107421875, 0.0177001953125, 0.054290771484375, -0.0253448486328125, 0.00830841064453125, -0.00212860107421875, -0.031402587890625, 0.028656005859375, -0.0465087890625, 0.004734039306640625, 0.034759521484375, -0.045562744140625, -0.02069091796875, 0.050872802734375, 0.05535888671875, 0.01397705078125, -0.022216796875, -0.0224761962890625, -0.01421356201171875, -0.0179901123046875, 0.0416259765625, -0.0236663818359375, -0.005229949951171875, -0.0150299072265625, 0.004756927490234375, 0.0011720657348632812, 0.0174560546875, 0.0029392242431640625, -0.043212890625, 0.028839111328125, 0.00247955322265625, -0.045440673828125, -0.0007152557373046875, -0.0304412841796875, 0.0185394287109375, -0.046905517578125, -0.023651123046875, 0.08636474609375, 0.10260009765625, 0.06439208984375, -0.035400390625, 0.028106689453125, -0.0150146484375, 0.0092926025390625, 0.0081939697265625, 0.008941650390625, -0.0276031494140625, -0.0015230178833007812, -0.007411956787109375, -0.0228424072265625, 0.018218994140625, 0.0070037841796875, -0.004138946533203125, 0.019073486328125, -0.0288848876953125, -0.02801513671875, -0.046173095703125, 0.050201416015625, 0.0226898193359375, -0.01132965087890625, 0.0183258056640625, 0.1072998046875, -0.053863525390625, -0.0772705078125, -0.07135009765625, -0.019256591796875, -0.0110931396484375, 0.0170745849609375, -0.0305328369140625, -0.025634765625, 0.0182342529296875, -0.0246429443359375, 0.004390716552734375, 0.01438140869140625, 0.006206512451171875, 0.01239013671875, -0.01262664794921875, -0.0183868408203125, 0.00933837890625, 0.0015039443969726562, 0.0275115966796875, 0.0290679931640625, 0.044769287109375, -0.01326751708984375, 0.04241943359375, -0.003692626953125, -0.062347412109375, 0.0206298828125, -0.0273284912109375, -0.074462890625, 0.0296630859375, 0.007781982421875, 0.0399169921875, 0.0261688232421875, 0.012176513671875, 0.08050537109375, -0.00681304931640625, -0.03466796875, -0.00939178466796875, 0.0268402099609375, 0.004489898681640625, -0.00946044921875, -0.01236724853515625, 0.015716552734375, 0.00026226043701171875, -0.0225067138671875, 0.01532745361328125, -0.001708984375, 0.00859832763671875, -0.08502197265625, 0.035919189453125, -0.05279541015625, 0.07135009765625, -0.01206207275390625, 0.0144805908203125, 0.009521484375, -0.01314544677734375, -0.005031585693359375, -0.0258331298828125, -0.0196075439453125, 0.01148223876953125, 0.006008148193359375, 0.036102294921875, -0.00754547119140625, 0.0223541259765625, -0.0167083740234375, -0.02032470703125, -0.026336669921875, 0.0027008056640625, 0.055511474609375, 0.000576019287109375, -0.02911376953125, -0.01458740234375, 0.024169921875, 0.018310546875, -0.052978515625, 0.0390625, 0.0281219482421875, -0.00897979736328125, -0.035369873046875, 0.0009508132934570312, 0.0236968994140625, -0.059967041015625, -0.013153076171875, 0.042694091796875, 0.029693603515625, 0.04254150390625, 0.006061553955078125, 0.0192718505859375, 0.0227203369140625, -0.0740966796875, -0.0126190185546875, 0.0089569091796875, -0.01800537109375, -0.01099395751953125, 0.01157379150390625, -0.00582122802734375, 0.038970947265625, 0.0217742919921875, 0.0247955322265625, 0.01447296142578125, -0.0191802978515625, -0.045166015625, 0.0357666015625, -0.0182952880859375, 0.016693115234375, -0.006221771240234375, -0.033538818359375, 0.01690673828125, 0.043060302734375, -0.00662994384765625, 0.0341796875, 0.0253143310546875, -0.0036334991455078125, -0.0280914306640625, 0.0238800048828125, 0.0233001708984375, -0.0138702392578125, -0.004009246826171875, 0.0367431640625, 0.001148223876953125, -0.0301666259765625, 0.002788543701171875, 0.001628875732421875, -0.0005731582641601562, -0.0260162353515625, 0.0280609130859375, 0.0247650146484375, -0.0058135986328125, -0.004852294921875, -0.051971435546875, 0.0161590576171875, -0.02685546875, -0.01198577880859375, -0.00862884521484375, 0.0195159912109375, -0.0023059844970703125, -0.021728515625, 0.0186004638671875, -0.005283355712890625, -0.0145416259765625, 0.0316162109375, 0.0088653564453125, 0.0187835693359375, -0.01222991943359375, 0.044189453125, 0.034698486328125, -0.0251312255859375, 0.005340576171875, -0.01406097412109375, -0.0002636909484863281, -0.0201263427734375, 0.02197265625, -0.0068359375, -0.0213470458984375, -0.031585693359375, 0.01064300537109375, -0.0014162063598632812, -0.046875, 0.0045623779296875, -0.034027099609375, 0.002117156982421875, -0.03179931640625, -0.050201416015625, 0.00690460205078125, 0.07244873046875, 0.0024871826171875, -0.006923675537109375, 0.015899658203125, -0.01068878173828125, -0.036865234375, 0.04193115234375, -0.014190673828125, 0.0173187255859375, -0.035614013671875, -0.00476837158203125, -0.02410888671875, -0.039947509765625, -0.046539306640625, 0.0140838623046875, -0.00969696044921875, -0.00385284423828125, 0.088134765625, 0.0086517333984375, -0.08148193359375, 0.01177978515625, -0.007587432861328125, -0.0110626220703125, 0.046875, 0.039703369140625, -0.0305328369140625, 0.0052032470703125, 0.0038471221923828125, 0.001621246337890625, 0.009857177734375, -0.0166015625, -0.021575927734375, -0.03326416015625, 0.0149383544921875, 0.01181793212890625, 0.0045318603515625, 0.029266357421875, 0.0245513916015625, 0.0237579345703125, -0.0131988525390625, -0.016448974609375, 0.013885498046875, -0.0167388916015625, 0.0228424072265625, -0.016204833984375, 0.0009202957153320312, 0.01427459716796875, 0.032958984375, 0.0377197265625, 0.024627685546875, 0.026031494140625, 0.0237579345703125, -0.006031036376953125, -0.013763427734375, 0.00237274169921875, -0.04571533203125, 0.0298614501953125, -0.0152740478515625, 0.035552978515625, 0.006809234619140625, 0.0014886856079101562, -0.017669677734375, 0.014556884765625, -0.034423828125, -0.03985595703125, 0.05389404296875, -0.01885986328125, 0.00981903076171875, -0.0192413330078125, -0.0185699462890625, 0.00722503662109375, 0.0841064453125, -0.0335693359375, -0.031890869140625, 0.00974273681640625, 0.00616455078125, 0.01666259765625, 0.019195556640625, -0.0214691162109375, -0.0304107666015625, -0.1724853515625, 0.0236358642578125, 0.0163726806640625, -0.06939697265625, -0.028533935546875, 0.0499267578125, -0.1282958984375, -0.04608154296875, 0.055816650390625, -0.0562744140625, -0.00447845458984375, 0.03045654296875, -0.0005636215209960938, -0.0550537109375, -0.040618896484375, -0.0017805099487304688, -0.06646728515625, -0.01236724853515625, -0.047698974609375, 0.06353759765625, 0.00574493408203125, 0.0361328125, -0.0190277099609375, 0.03875732421875, 0.043609619140625, -0.004177093505859375, 0.0322265625, -0.0023632049560546875, 0.02337646484375, -0.0250701904296875, 0.0286102294921875, -0.03778076171875, 0.0063018798828125, 0.0216827392578125, -0.01265716552734375, 0.0340576171875, -0.004146575927734375, -0.0074005126953125, 0.042755126953125, -0.037567138671875, -0.0270538330078125, -0.06927490234375, -0.07000732421875, -0.02362060546875, -0.012115478515625, -0.01611328125, -0.04937744140625, -0.0360107421875, -0.0189971923828125, -0.00897979736328125, -0.032684326171875, 0.028778076171875, 0.0064697265625, 0.031219482421875, -0.01433563232421875, -0.01434326171875, 0.0098724365234375, 0.0335693359375, -0.01151275634765625, 0.03472900390625, 0.016632080078125, -0.00911712646484375, 0.017913818359375, -0.003391265869140625, 0.015960693359375, -0.039703369140625, 0.07568359375, -0.0019817352294921875, -0.0059051513671875, 0.0208740234375, -0.020233154296875, 0.00028204917907714844, -0.0012674331665039062, 0.0139617919921875, -0.027435302734375, -0.0179290771484375, 0.0173797607421875, 0.0372314453125, -0.01287841796875, -0.023101806640625, 0.0230865478515625, -0.0161285400390625, 0.0285797119140625, 0.0662841796875, 0.045074462890625, -0.00728607177734375, -0.006191253662109375, 0.01428985595703125, -0.006732940673828125, -0.03765869140625, -0.013031005859375, -0.053619384765625, 0.011138916015625, -0.019256591796875, -0.0430908203125, 0.012603759765625, 0.0108642578125, 0.01262664794921875, 0.002117156982421875, -0.01070404052734375, -0.0635986328125, 0.0246124267578125, 0.063232421875, -0.0032444000244140625, 0.01425933837890625, 0.037109375, -0.000392913818359375, -0.00991058349609375, -0.0240325927734375, 0.0017175674438476562, -0.03912353515625, -0.0418701171875, -0.005306243896484375, 0.01099395751953125, -0.01519775390625, 0.033782958984375, 0.0202789306640625, -0.01702880859375, 0.035736083984375, -0.0033931732177734375, 0.003452301025390625, -0.0290679931640625, 0.0372314453125, 0.0130157470703125, -0.029754638671875, 0.040130615234375, -0.014312744140625, 0.023193359375, -0.0300750732421875, -0.0401611328125, 0.022918701171875, 0.022735595703125, -0.01470184326171875, 0.00759124755859375, -0.0017547607421875, 0.007843017578125, -0.016998291015625, 0.039093017578125, -0.0277252197265625, -0.068603515625, -0.017730712890625, -0.0066986083984375, 0.0045318603515625, -0.041473388671875, -0.00759124755859375, 0.03924560546875, 0.006900787353515625, 0.026763916015625, -0.01313018798828125, -0.02056884765625, 0.0024356842041015625, 0.0250091552734375, -0.048553466796875, -0.007518768310546875, 0.022796630859375, -0.10211181640625, -0.0484619140625, 0.000011265277862548828, -0.008392333984375, 0.024200439453125, -0.035400390625, 0.02679443359375, -0.02056884765625, 0.004825592041015625, -0.00518798828125, 0.0158538818359375, 0.02984619140625, 0.01776123046875, -0.0233154296875, -0.007022857666015625, -0.0262603759765625, -0.005916595458984375, -0.0134429931640625, -0.04925537109375, -0.0062103271484375, -0.01342010498046875, -0.00067138671875, 0.0145263671875, 0.00244140625, 0.019287109375, 0.023895263671875, 0.005130767822265625, -0.02777099609375, 0.016510009765625, -0.03509521484375, 0.044952392578125, 0.006282806396484375, 0.03369140625, 0.0018472671508789062, 0.0197296142578125, 0.0185394287109375, -0.0205230712890625, 0.015625, -0.0242919921875, -0.0268402099609375, -0.0455322265625, -0.007633209228515625, 0.018341064453125, 0.0677490234375, -0.0189361572265625, 0.018798828125, -0.0166168212890625, -0.005466461181640625, -0.031524658203125, 0.012451171875, -0.0418701171875, -0.00333404541015625, 0.0210418701171875, -0.02581787109375, 0.02301025390625, -0.002117156982421875, 0.00814056396484375, 0.03680419921875, -0.035797119140625, 0.0472412109375, 0.022491455078125, -0.0657958984375, 0.07061767578125, 0.0740966796875, 0.03167724609375, 0.06805419921875, 0.0051727294921875, 0.02618408203125, 0.01568603515625, -0.01432037353515625, -0.01517486572265625, 0.036956787109375, 0.059722900390625, 0.005886077880859375, 0.007770538330078125, 0.0672607421875, -0.01386260986328125, 0.0158233642578125, 0.05859375, 0.06854248046875, -0.07708740234375, 0.01953125, 0.0310821533203125, 0.028045654296875, 0.0660400390625, -0.01013946533203125, -0.0062713623046875, -0.016082763671875, 0.00797271728515625, 0.007015228271484375, -0.035552978515625, -0.00247955322265625, 0.0134735107421875, -0.02435302734375, -0.032958984375, -0.0170745849609375, 0.0003902912139892578, 0.01204681396484375, 0.015716552734375, -0.019683837890625, 0.007137298583984375, -0.0089569091796875, -0.0138702392578125, 0.018890380859375, -0.031463623046875, -0.046417236328125, 0.010711669921875, -0.03057861328125, 0.0103302001953125, 0.0489501953125, 0.004413604736328125, -0.00765228271484375, 0.034820556640625, -0.03497314453125, 0.037811279296875, -0.0312347412109375, -0.0157928466796875, -0.0176544189453125, -0.021636962890625, 0.012420654296875, -0.0191802978515625, -0.02783203125, 0.0088653564453125, -0.0208740234375, -0.036651611328125, -0.0035228729248046875, -0.00336456298828125, 0.09820556640625, -0.037811279296875, -0.037017822265625, -0.000017821788787841797, -0.00693511962890625, 0.00284576416015625, 0.017913818359375, 0.049530029296875, -0.0289306640625, 0.0021114349365234375, 0.0292205810546875, -0.008392333984375, -0.0296478271484375, 0.015625, -0.06231689453125, 0.07220458984375, -0.006038665771484375, 0.0196075439453125, -0.01334381103515625, 0.033477783203125, -0.0200653076171875, 0.00380706787109375, -0.01261138916015625, 0.041473388671875, 0.053497314453125, -0.0005426406860351562, -0.0061798095703125, -0.0156707763671875, -0.00737762451171875, 0.040863037109375, -0.0021762847900390625, 0.006134033203125, 0.0012149810791015625, -0.017852783203125, 0.0214385986328125, 0.066162109375, 0.028472900390625, -0.00543212890625, -0.0276336669921875, -0.004627227783203125, -0.0068206787109375, -0.045013427734375, 0.0227813720703125, -0.043212890625, -0.041473388671875, -0.0162200927734375, 0.0280303955078125, 0.0256805419921875, -0.00616455078125, 0.028656005859375, 0.0213470458984375, -0.0073394775390625, -0.01947021484375, 0.0046539306640625, -0.01428985595703125, 0.00939178466796875, -0.0208587646484375, -0.01450347900390625, -0.0276641845703125, -0.00948333740234375, 0.01552581787109375, 0.0023021697998046875, 0.0262298583984375, 0.0178375244140625, 0.0258941650390625, -0.002655029296875, 0.00823211669921875, 0.029876708984375, 0.045440673828125, -0.045745849609375, 0.0210113525390625, -0.00180816650390625, 0.02276611328125, -0.056365966796875, -0.0028514862060546875, 0.016693115234375, 0.0322265625, -0.0208740234375, -0.056976318359375, 0.0098724365234375, -0.01416778564453125, -0.00034117698669433594, 0.0204925537109375, 0.022796630859375, 0.0045928955078125, 0.01384735107421875, -0.03515625, 0.004230499267578125, 0.01055145263671875, 0.01514434814453125, -0.005859375, 0.02374267578125, -0.005615234375, 0.006824493408203125, -0.07025146484375, 0.0233612060546875, 0.01654052734375, 0.07659912109375, 0.03546142578125, 0.05126953125, 0.00970458984375, -0.036346435546875, -0.006824493408203125, 0.031402587890625, -0.042022705078125, 0.0204315185546875, -0.0498046875, -0.051513671875, -0.01519012451171875, 0.03546142578125, 0.036041259765625, 0.0294342041015625, 0.051300048828125, 0.0210113525390625, 0.003963470458984375, 0.00792694091796875, 0.02618408203125, -0.0190582275390625, -0.041656494140625, -0.038177490234375, 0.0205841064453125, 0.03851318359375, 0.030975341796875, 0.004467010498046875, 0.0276031494140625, 0.03192138671875, 0.005290985107421875, -0.01116180419921875, 0.005535125732421875, -0.0201263427734375, 0.034332275390625, -0.0120849609375, 0.01531219482421875, 0.0224151611328125, -0.062408447265625, -0.023651123046875, -0.01309967041015625, -0.002796173095703125, 0.0309295654296875, 0.0281219482421875, -0.03314208984375, 0.044219970703125, 0.0163421630859375, -0.01000213623046875, 0.0098724365234375, -0.00640869140625, 0.006633758544921875, 0.03759765625, 0.0289459228515625, 0.0283966064453125, -0.0308074951171875, -0.0233001708984375, 0.019439697265625, 0.032684326171875, 0.0037384033203125, 0.018798828125, 0.00687408447265625, 0.007396697998046875, -0.04486083984375, 0.0016307830810546875, -0.03350830078125, -0.028594970703125, -0.0047454833984375, 0.0180816650390625, -0.009063720703125, -0.0020294189453125, -0.034881591796875, 0.021728515625, 0.06561279296875, -0.0260009765625, 0.0215606689453125, 0.0210418701171875, 0.002216339111328125, -0.0673828125, -0.00020682811737060547, -0.02447509765625, 0.01409912109375, -0.0163116455078125, -0.032318115234375, 0.04766845703125, 0.031982421875, 0.00970458984375, 0.00684356689453125, 0.0283355712890625, -0.00998687744140625, 0.0233306884765625, 0.00909423828125, 0.0293731689453125, 0.037689208984375, -0.0141448974609375, 0.00614166259765625, 0.01256561279296875, -0.004543304443359375, 0.025726318359375, 0.0180511474609375, -0.013671875, 0.043365478515625, -0.06414794921875, 0.0265655517578125, 0.018280029296875, 0.038177490234375, -0.01110076904296875, -0.00829315185546875, 0.0205535888671875, -0.0011157989501953125, -0.0177154541015625, 0.0071563720703125, -0.0153350830078125, -0.043212890625, -0.014801025390625, 0.044586181640625, -0.037200927734375, 0.0019550323486328125, -0.095947265625, 0.017303466796875, 0.01497650146484375, 0.01910400390625, -0.07391357421875, 0.06158447265625, -0.00811767578125, 0.037506103515625, -0.0130615234375, 0.0242919921875, -0.0232086181640625, 0.017425537109375, -0.0166473388671875, -0.01458740234375, -0.0308837890625, 0.055206298828125, -0.03277587890625, -0.0074310302734375, 0.0055084228515625, -0.0218353271484375, 0.013946533203125, -0.0205535888671875, 0.0103759765625, 0.01526641845703125, 0.0469970703125, -0.0251922607421875, -0.039886474609375, 0.040557861328125, 0.01372528076171875, -0.01300048828125, -0.01515960693359375, 0.01509857177734375, -0.006458282470703125, 0.0201416015625, -0.0027370452880859375, 0.0211029052734375, -0.02264404296875, -0.06976318359375, 0.0220947265625, 0.001850128173828125, -0.0472412109375, -0.0109710693359375, 0.00237274169921875, -0.01383209228515625, 0.021331787109375, -0.0033893585205078125, -0.0093231201171875, 0.0018482208251953125, 0.00850677490234375, 0.020904541015625, 0.0377197265625, 0.0192718505859375, -0.00650787353515625, -0.02606201171875, 0.0088958740234375, 0.00519561767578125, 0.030181884765625, -0.038299560546875, 0.00616455078125, 0.005649566650390625, 0.0251617431640625, -0.01953125, -0.0357666015625, 0.02154541015625, 0.01338958740234375, 0.00656890869140625, -0.034698486328125, -0.0217132568359375, -0.00839996337890625, 0.056640625, 0.026519775390625, 0.0230560302734375, -0.0236358642578125, -0.00850677490234375, -0.043304443359375, -0.0146484375, -0.046905517578125, 0.0029773712158203125, -0.07598876953125, -0.0247955322265625, 0.01523590087890625, -0.0391845703125, 0.001499176025390625, -0.0018625259399414062, -0.049072265625, 0.026824951171875, 0.031707763671875, 0.0160980224609375, -0.053680419921875, -0.0035190582275390625, 0.0053558349609375, -0.025909423828125, -0.00629425048828125, -0.00952911376953125, 0.0038318634033203125, -0.004703521728515625, 0.005130767822265625, -0.03863525390625, -0.0308074951171875, -0.037567138671875, 0.050811767578125, -0.061676025390625, 0.08538818359375, -0.07373046875, -0.011749267578125, -0.0216827392578125, 0.0231475830078125, 0.004467010498046875, 0.03240966796875, -0.033050537109375, 0.0286865234375, 0.0157012939453125, 0.019927978515625, -0.0209808349609375, 0.030609130859375, 0.0028362274169921875, 0.0100860595703125, 0.03472900390625, -0.0112152099609375, 0.087646484375, -0.036956787109375, -0.005950927734375, -0.036865234375, -0.017547607421875, -0.07958984375, 0.0276641845703125, 0.0343017578125, -0.0027065277099609375, 0.049407958984375 ]
c459ab2d3b24267ab4c50ba6a34b7125b3019616
Wordpress Stackexchange Q: Settings API vs Theme Customizer When would it be appropriate to use the settings API, and when would it be better to use the theme customizer? Having Googled around all morning, I haven't been able to find any well considered and recent guidance on this matter. While it's still early to say, I feel that the theme customizer is a suggestive first step towards bringing in more Squarespace-like editing features. Does anyone know of any plans to sunset the settings API in favour of the theme customizer? Should we all slowly be moving towards it, or would we be better off sticking to the settings API? Can they live side-by-side, and if so, where would the division of responsibilities lay? A: As simple as things can sometimes be: The Settings API is not the Theme Customizer. Both are different things for different tasks. Settings API You're either writing a plugin or have a theme that doesn't have options that won't need any visual feedback? Go with this option. Theme Customizer You need to have options that have a visual impact that the user should be able to see? Go with this option.
Q: Settings API vs Theme Customizer When would it be appropriate to use the settings API, and when would it be better to use the theme customizer? Having Googled around all morning, I haven't been able to find any well considered and recent guidance on this matter. While it's still early to say, I feel that the theme customizer is a suggestive first step towards bringing in more Squarespace-like editing features. Does anyone know of any plans to sunset the settings API in favour of the theme customizer? Should we all slowly be moving towards it, or would we be better off sticking to the settings API? Can they live side-by-side, and if so, where would the division of responsibilities lay? A: As simple as things can sometimes be: The Settings API is not the Theme Customizer. Both are different things for different tasks. Settings API You're either writing a plugin or have a theme that doesn't have options that won't need any visual feedback? Go with this option. Theme Customizer You need to have options that have a visual impact that the user should be able to see? Go with this option. A: The premise of the question is flawed. The Customizer API is not an options API, but rather an options preview API. The Customizer API relies on either the Settings API or the Theme Mods API to register controls for existing settings added via either of the two APIs. The Customizer does not - and cannot - define/register new settings that have not already been registered via either the Settings API or the Theme Mods API. Said a different way: The Customizer API is not an API to add settings directly to or to retrieve settings directly from the database; rather, the Customizer API uses either the Settings API or the Theme Mods API to save settings to, or to retrieve settings from, the database. Thus, the Customizer API isn't an alternative to one of the existing options APIs; rather, it is an alternative for a settings page. The Customizer doesn't care whether a setting is registered via the Settings API or the Theme Mods API, and such settings can be mixed and matched in the Customzer. In fact, in most cases, such settings are mixed and matched: custom header and custom background are Theme Mods, and Site Title and Description are Settings API. To understand exactly how settings and controls are registered via the Customizer API, I recommend reading Otto's excellent tutorials: * *How to leverage the Theme Customizer in your own themes *Theme Customizer Part Deux: Getting rid of Options pages *Making a custom control for the Theme Customizer So, the question isn't either/or with respect to the specified APIs. Appropriate either/or questions would be: * *Use either the Settings API or the Theme Mods API to register existing settings to preview via the Customizer API *Use either the Customizer API or a custom Theme settings page to allow the user to configure Theme options.
wordpress
{ "language": "en", "length": 500, "provenance": "stackexchange_00019.jsonl.gz:431960", "question_score": "21", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/97929" }
[ -0.0006518363952636719, -0.04095458984375, 0.0286865234375, 0.0116424560546875, -0.0413818359375, 0.01751708984375, 0.000522613525390625, -0.024017333984375, -0.01947021484375, 0.01483154296875, 0.002864837646484375, 0.02069091796875, -0.025726318359375, -0.020538330078125, -0.001983642578125, -0.0304718017578125, 0.0271453857421875, -0.024322509765625, 0.0014019012451171875, -0.043365478515625, -0.006488800048828125, -0.03082275390625, 0.030975341796875, 0.102294921875, 0.040252685546875, -0.06634521484375, -0.01103973388671875, 0.005237579345703125, 0.004390716552734375, -0.00766754150390625, 0.01525115966796875, 0.01441192626953125, 0.0190277099609375, 0.00698089599609375, 0.052764892578125, 0.07049560546875, 0.020477294921875, 0.0029048919677734375, 0.0523681640625, -0.01049041748046875, 0.044891357421875, -0.0230712890625, -0.041351318359375, -0.0041046142578125, -0.0260162353515625, -0.0235595703125, 0.047027587890625, -0.006305694580078125, -0.0165252685546875, 0.01346588134765625, 0.017120361328125, -0.039093017578125, 0.031402587890625, -0.030364990234375, -0.0175933837890625, -0.03875732421875, 0.043792724609375, -0.01068878173828125, 0.056793212890625, -0.060211181640625, -0.06842041015625, -0.0242156982421875, 0.054168701171875, -0.008087158203125, 0.006237030029296875, -0.01267242431640625, -0.01561737060546875, 0.039825439453125, -0.056182861328125, -0.00937652587890625, 0.02581787109375, -0.03118896484375, 0.013153076171875, -0.021728515625, -0.0163116455078125, -0.01361083984375, 0.00885772705078125, -0.00704193115234375, 0.0139312744140625, -0.015380859375, 0.0217132568359375, 0.017120361328125, 0.0285491943359375, -0.04150390625, 0.00984954833984375, -0.0207672119140625, -0.005168914794921875, -0.02264404296875, 0.005870819091796875, -0.0230865478515625, 0.00025391578674316406, -0.056915283203125, -0.01461029052734375, 0.08349609375, 0.0229339599609375, -0.00923919677734375, 0.0155792236328125, -0.004856109619140625, -0.010467529296875, -0.0148162841796875, 0.046905517578125, -0.056304931640625, 0.037994384765625, -0.007747650146484375, -0.01425933837890625, 0.0125274658203125, 0.019561767578125, -0.0302581787109375, -0.0057373046875, 0.01529693603515625, -0.0290985107421875, 0.0021533966064453125, 0.043731689453125, -0.01036834716796875, 0.00421142578125, -0.0299072265625, 0.00649261474609375, 0.021636962890625, 0.000823974609375, -0.0560302734375, -0.0213623046875, -0.01812744140625, 0.030731201171875, -0.000024080276489257812, -0.01198577880859375, -0.005634307861328125, -0.043792724609375, -0.004913330078125, -0.019989013671875, 0.0159759521484375, -0.006465911865234375, 0.0002543926239013672, 0.02569580078125, 0.036956787109375, 0.005115509033203125, -0.0199737548828125, 0.03240966796875, -0.0005555152893066406, -0.006710052490234375, -0.007190704345703125, 0.05224609375, -0.0025157928466796875, -0.036407470703125, 0.003154754638671875, -0.022369384765625, 0.0258636474609375, 0.0113983154296875, 0.0245361328125, -0.0023937225341796875, -0.08526611328125, 0.05255126953125, -0.04681396484375, -0.0029048919677734375, 0.017578125, 0.01165008544921875, -0.0095367431640625, -0.0075531005859375, -0.005519866943359375, 0.0229644775390625, -0.0008697509765625, -0.0210113525390625, -0.009521484375, 0.00687408447265625, 0.019561767578125, 0.0157318115234375, 0.025146484375, 0.025909423828125, 0.016448974609375, 0.0077362060546875, -0.00891876220703125, 0.0101318359375, 0.0263519287109375, -0.00830078125, -0.01110076904296875, 0.013031005859375, -0.02606201171875, 0.0203704833984375, 0.0279083251953125, -0.0016040802001953125, 0.0183563232421875, 0.00339508056640625, -0.05126953125, 0.0113983154296875, -0.0021915435791015625, -0.045867919921875, 0.0760498046875, 0.0095977783203125, 0.07183837890625, -0.0155792236328125, 0.0113983154296875, 0.0217132568359375, 0.0289764404296875, -0.00974273681640625, 0.0212860107421875, -0.023223876953125, -0.045867919921875, -0.0018024444580078125, -0.002178192138671875, -0.02337646484375, 0.0172119140625, -0.04266357421875, 0.0024394989013671875, 0.004245758056640625, 0.004993438720703125, -0.032989501953125, 0.01497650146484375, -0.0265960693359375, 0.045074462890625, -0.018646240234375, -0.00402069091796875, -0.0024471282958984375, -0.0294647216796875, -0.0158843994140625, 0.0168914794921875, -0.017364501953125, -0.005985260009765625, -0.006069183349609375, 0.0187835693359375, -0.002239227294921875, 0.006725311279296875, 0.03143310546875, 0.00484466552734375, 0.0262908935546875, 0.04852294921875, 0.034637451171875, -0.019134521484375, -0.011810302734375, -0.036163330078125, 0.054290771484375, -0.01690673828125, 0.039031982421875, 0.039642333984375, 0.025665283203125, 0.075439453125, 0.0022640228271484375, -0.010040283203125, 0.027618408203125, -0.045013427734375, 0.01549530029296875, 0.025543212890625, 0.0146636962890625, 0.0224456787109375, -0.0284423828125, -0.00946044921875, 0.03900146484375, -0.00894927978515625, 0.00726318359375, -0.007259368896484375, 0.042449951171875, 0.0479736328125, -0.018157958984375, -0.07635498046875, 0.015106201171875, -0.071533203125, 0.021514892578125, -0.0040740966796875, -0.02691650390625, -0.0305938720703125, 0.046966552734375, -0.01849365234375, 0.005401611328125, -0.00528717041015625, -0.00896453857421875, -0.01348114013671875, 0.02166748046875, 0.0145416259765625, 0.01555633544921875, 0.0013399124145507812, -0.03155517578125, 0.0285186767578125, 0.018829345703125, -0.031890869140625, -0.0133819580078125, 0.057220458984375, 0.055267333984375, -0.0275421142578125, -0.0308380126953125, -0.0242767333984375, 0.0022563934326171875, 0.0261077880859375, -0.024810791015625, -0.0196380615234375, -0.084716796875, -0.0140533447265625, 0.051025390625, -0.052215576171875, -0.0300750732421875, 0.01739501953125, 0.02783203125, 0.043701171875, 0.0498046875, 0.0228729248046875, -0.0129547119140625, 0.0177459716796875, 0.00685882568359375, -0.00804901123046875, -0.025054931640625, -0.02264404296875, 0.0231781005859375, -0.03338623046875, 0.000027179718017578125, 0.0552978515625, -0.00586700439453125, 0.00725555419921875, 0.0185394287109375, 0.027618408203125, 0.055450439453125, 0.0033550262451171875, 0.0289306640625, -0.005756378173828125, -0.007213592529296875, -0.004711151123046875, 0.0152740478515625, 0.031585693359375, -0.016571044921875, -0.0411376953125, -0.025299072265625, 0.009368896484375, -0.06658935546875, -0.048126220703125, 0.047607421875, -0.059326171875, 0.00319671630859375, -0.0270233154296875, -0.04351806640625, -0.01284027099609375, -0.00464630126953125, -0.0092315673828125, 0.027862548828125, -0.04583740234375, -0.00421905517578125, -0.050567626953125, -0.06304931640625, -0.0660400390625, 0.016387939453125, -0.00562286376953125, -0.00017523765563964844, 0.0726318359375, -0.00850677490234375, -0.072021484375, -0.03314208984375, -0.0474853515625, 0.002399444580078125, 0.01464080810546875, 0.054534912109375, 0.00919342041015625, 0.007808685302734375, 0.0206756591796875, 0.01021575927734375, 0.052001953125, -0.06573486328125, -0.046630859375, -0.040374755859375, 0.01279449462890625, -0.059967041015625, 0.052734375, 0.074462890625, 0.0029544830322265625, -0.0207366943359375, -0.050201416015625, -0.02752685546875, 0.01324462890625, -0.04852294921875, 0.03570556640625, 0.033447265625, -0.0183868408203125, 0.03216552734375, -0.004337310791015625, -0.02105712890625, -0.0220489501953125, 0.006443023681640625, -0.042083740234375, 0.06573486328125, -0.00022339820861816406, -0.0114288330078125, -0.005947113037109375, -0.025848388671875, -0.05126953125, 0.0178070068359375, -0.0226898193359375, -0.029937744140625, -0.01216888427734375, -0.042327880859375, -0.003879547119140625, -0.049591064453125, 0.04229736328125, 0.0023212432861328125, 0.050994873046875, -0.03997802734375, -0.0308074951171875, -0.0157470703125, 0.09735107421875, -0.0227813720703125, 0.0030612945556640625, 0.023651123046875, 0.0111541748046875, -0.0250396728515625, 0.00418853759765625, -0.07879638671875, 0.004638671875, -0.050811767578125, -0.0122528076171875, -0.0155029296875, -0.0268096923828125, -0.005710601806640625, 0.03564453125, -0.01024627685546875, -0.0262298583984375, 0.0116424560546875, -0.018524169921875, -0.007144927978515625, 0.017547607421875, -0.0098114013671875, -0.01065826416015625, 0.01458740234375, -0.044891357421875, -0.04266357421875, -0.0092010498046875, 0.0099639892578125, -0.01493072509765625, 0.017242431640625, -0.08648681640625, 0.00836944580078125, 0.023834228515625, -0.00890350341796875, 0.01102447509765625, -0.00243377685546875, 0.0191192626953125, -0.00782012939453125, 0.0035495758056640625, -0.01537322998046875, -0.03033447265625, -0.0158843994140625, 0.015594482421875, -0.042083740234375, 0.039276123046875, 0.004314422607421875, 0.036285400390625, 0.032684326171875, -0.039398193359375, -0.0736083984375, -0.0088348388671875, -0.0273590087890625, -0.021759033203125, -0.03375244140625, -0.003444671630859375, 0.0211029052734375, -0.054046630859375, 0.0401611328125, 0.0098876953125, 0.00957489013671875, -0.0108642578125, 0.0780029296875, 0.01513671875, -0.02215576171875, -0.022918701171875, -0.03790283203125, 0.03985595703125, 0.0199737548828125, -0.00017559528350830078, -0.01042938232421875, -0.05572509765625, 0.0504150390625, 0.02191162109375, -0.004512786865234375, -0.027435302734375, 0.03955078125, -0.013031005859375, -0.0009584426879882812, -0.0000527501106262207, -0.01386260986328125, 0.0501708984375, -0.005535125732421875, -0.0220947265625, -0.00168609619140625, 0.0084686279296875, 0.01165008544921875, -0.031463623046875, 0.0283966064453125, -0.019012451171875, -0.01036834716796875, 0.0018787384033203125, 0.044342041015625, 0.03472900390625, 0.00475311279296875, 0.00731658935546875, -0.0144195556640625, -0.013916015625, 0.026123046875, 0.002895355224609375, 0.04498291015625, -0.0343017578125, 0.03887939453125, 0.00823974609375, -0.0015840530395507812, -0.0252685546875, -0.0103912353515625, 0.0623779296875, -0.0129241943359375, -0.032958984375, -0.0335693359375, -0.0195465087890625, 0.0092315673828125, 0.01482391357421875, 0.03485107421875, 0.06781005859375, -0.003955841064453125, -0.03424072265625, -0.025909423828125, 0.01404571533203125, -0.044830322265625, -0.0657958984375, 0.01340484619140625, 0.01024627685546875, -0.036773681640625, -0.0273284912109375, -0.0029811859130859375, -0.035888671875, -0.01508331298828125, 0.0177154541015625, -0.0176544189453125, -0.0029163360595703125, -0.0271148681640625, 0.0139007568359375, 0.0526123046875, 0.0181427001953125, -0.05828857421875, 0.045318603515625, 0.0020503997802734375, -0.00870513916015625, 0.01219940185546875, 0.006771087646484375, -0.02154541015625, -0.008941650390625, 0.024566650390625, 0.00234222412109375, -0.042022705078125, 0.00626373291015625, -0.02093505859375, -0.040863037109375, -0.0269012451171875, 0.030853271484375, 0.0202789306640625, 0.0133056640625, -0.0022029876708984375, 0.04486083984375, 0.0009236335754394531, -0.01251220703125, 0.01540374755859375, -0.05615234375, -0.00125885009765625, 0.0280914306640625, -0.0521240234375, -0.023284912109375, -0.021484375, -0.061065673828125, -0.04901123046875, 0.015167236328125, -0.00930023193359375, 0.00765228271484375, -0.012176513671875, 0.0185089111328125, -0.0207977294921875, 0.01299285888671875, -0.004070281982421875, 0.0118560791015625, 0.01317596435546875, -0.019317626953125, -0.08453369140625, 0.0238494873046875, -0.055328369140625, 0.0113372802734375, -0.0548095703125, -0.0714111328125, -0.05926513671875, -0.004451751708984375, 0.029144287109375, 0.03997802734375, 0.0031452178955078125, -0.0165863037109375, -0.021636962890625, 0.013641357421875, 0.007965087890625, 0.048187255859375, -0.04339599609375, 0.005084991455078125, -0.0196533203125, 0.0213623046875, -0.0377197265625, -0.034515380859375, 0.0232086181640625, 0.0010156631469726562, 0.008148193359375, -0.00824737548828125, -0.043304443359375, -0.037841796875, -0.01245880126953125, 0.036468505859375, 0.0738525390625, -0.01453399658203125, 0.05206298828125, -0.052154541015625, -0.0002906322479248047, -0.01001739501953125, 0.01325225830078125, -0.06536865234375, -0.0186767578125, 0.0587158203125, 0.0103607177734375, -0.007503509521484375, -0.0286102294921875, -0.0576171875, 0.0157928466796875, 0.036834716796875, 0.004306793212890625, -0.00022554397583007812, -0.01381683349609375, 0.03814697265625, 0.03460693359375, -0.0180511474609375, 0.029693603515625, 0.01364898681640625, 0.0033283233642578125, 0.01113128662109375, 0.01474761962890625, -0.07257080078125, 0.01580810546875, 0.00026726722717285156, 0.0107879638671875, 0.0021381378173828125, -0.01322174072265625, -0.0019664764404296875, 0.020111083984375, 0.072998046875, 0.0875244140625, -0.10052490234375, 0.005901336669921875, 0.033172607421875, 0.0091705322265625, 0.0228118896484375, -0.0011730194091796875, -0.00814056396484375, -0.0238189697265625, 0.08416748046875, -0.0596923828125, 0.00959014892578125, 0.0394287109375, -0.046600341796875, -0.00969696044921875, -0.0159759521484375, 0.0023975372314453125, 0.0081634521484375, 0.0011911392211914062, 0.0214385986328125, -0.007556915283203125, 0.0206451416015625, -0.0159759521484375, -0.00800323486328125, 0.015960693359375, -0.053955078125, -0.07464599609375, 0.00347900390625, -0.004970550537109375, -0.0249176025390625, -0.026092529296875, -0.0169525146484375, 0.0062713623046875, 0.037506103515625, -0.05364990234375, 0.0200347900390625, 0.003849029541015625, 0.0128631591796875, -0.009307861328125, 0.00510406494140625, 0.0188446044921875, 0.05889892578125, -0.0517578125, 0.0189361572265625, -0.0233306884765625, 0.019500732421875, -0.008819580078125, 0.0276641845703125, 0.10052490234375, -0.056182861328125, -0.01299285888671875, 0.04095458984375, 0.0158843994140625, -0.024566650390625, -0.00910186767578125, 0.013580322265625, -0.0611572265625, -0.039459228515625, -0.009246826171875, -0.045562744140625, 0.01102447509765625, -0.0146484375, 0.020263671875, 0.063720703125, -0.030670166015625, -0.019989013671875, 0.03265380859375, 0.03857421875, -0.0015439987182617188, 0.04034423828125, 0.01959228515625, 0.031280517578125, -0.033447265625, -0.007244110107421875, 0.0120391845703125, 0.019378662109375, -0.006954193115234375, 0.0290374755859375, 0.03570556640625, 0.00640869140625, -0.007678985595703125, -0.014495849609375, -0.0023822784423828125, -0.0207672119140625, -0.03851318359375, 0.056243896484375, -0.02618408203125, -0.04498291015625, -0.01090240478515625, 0.0094757080078125, 0.0179290771484375, 0.0122222900390625, -0.034423828125, 0.0008845329284667969, 0.004123687744140625, 0.02532958984375, -0.00569915771484375, 0.0237274169921875, -0.016815185546875, -0.0167694091796875, 0.0113525390625, -0.05560302734375, -0.030120849609375, -0.0121002197265625, -0.0165863037109375, -0.04931640625, 0.007114410400390625, -0.02154541015625, 0.0296478271484375, 0.0177764892578125, 0.0384521484375, -0.00447845458984375, 0.01200103759765625, -0.0099029541015625, -0.0094451904296875, 0.0226593017578125, 0.049041748046875, -0.05633544921875, 0.029022216796875, -0.01447296142578125, 0.040618896484375, -0.048828125, -0.03436279296875, -0.0310516357421875, 0.0318603515625, -0.0151519775390625, -0.0302276611328125, 0.0151824951171875, 0.020751953125, 0.01776123046875, -0.00011730194091796875, 0.04156494140625, -0.043701171875, -0.00450897216796875, -0.037872314453125, 0.03814697265625, 0.04278564453125, 0.0036773681640625, 0.017547607421875, 0.054534912109375, -0.1065673828125, 0.020599365234375, -0.002544403076171875, -0.0215911865234375, -0.00439453125, 0.01557159423828125, 0.0243988037109375, 0.0124359130859375, -0.035858154296875, -0.0114898681640625, -0.0328369140625, 0.03643798828125, 0.0240478515625, 0.0280914306640625, -0.033447265625, -0.00641632080078125, 0.006839752197265625, 0.0323486328125, -0.005084991455078125, -0.02349853515625, -0.00891876220703125, 0.0180206298828125, 0.020721435546875, -0.00710296630859375, 0.0206298828125, -0.0046539306640625, -0.0199432373046875, -0.00446319580078125, -0.01727294921875, 0.033935546875, -0.005626678466796875, 0.01361083984375, -0.0029544830322265625, 0.04180908203125, -0.003238677978515625, 0.0321044921875, 0.005115509033203125, -0.0156402587890625, 0.0179595947265625, 0.0213165283203125, 0.06036376953125, 0.037689208984375, -0.0204620361328125, 0.0007543563842773438, -0.00615692138671875, -0.0469970703125, -0.0035343170166015625, 0.02935791015625, -0.015350341796875, 0.029541015625, -0.003818511962890625, -0.04315185546875, 0.0219573974609375, 0.0210113525390625, -0.0070648193359375, -0.00774383544921875, 0.00255584716796875, -0.0308837890625, -0.04595947265625, -0.050689697265625, -0.033355712890625, 0.0911865234375, 0.006500244140625, 0.0426025390625, -0.0274810791015625, 0.044525146484375, 0.00386810302734375, -0.0126953125, -0.0099334716796875, -0.00612640380859375, 0.050384521484375, 0.007320404052734375, -0.019927978515625, -0.007045745849609375, -0.04486083984375, 0.0247650146484375, 0.03594970703125, -0.0277099609375, 0.024871826171875, 0.0193634033203125, 0.0101776123046875, -0.0277862548828125, -0.005401611328125, -0.0308990478515625, -0.053314208984375, 0.0022945404052734375, 0.037872314453125, -0.03912353515625, -0.0227508544921875, -0.02105712890625, 0.0100250244140625, -0.01044464111328125, 0.021759033203125, -0.016845703125, 0.038299560546875, -0.03680419921875, 0.0181732177734375, -0.04473876953125, -0.0003044605255126953, -0.006748199462890625, -0.0205078125, -0.0174407958984375, 0.01242828369140625, 0.0013065338134765625, -0.00623321533203125, 0.01068115234375, 0.01364898681640625, 0.04888916015625, 0.0703125, 0.0108795166015625, 0.020263671875, 0.01947021484375, 0.00882720947265625, 0.0032825469970703125, -0.01361083984375, 0.005970001220703125, -0.007171630859375, -0.00897979736328125, 0.0311279296875, -0.00545501708984375, 0.013092041015625, -0.038330078125, 0.00937652587890625, 0.028564453125, -0.019500732421875, -0.0248260498046875, 0.03216552734375, -0.050994873046875, 0.00649261474609375, -0.0179290771484375, -0.0294342041015625, -0.00746917724609375, 0.01445770263671875, 0.0144805908203125, -0.0213470458984375, -0.04840087890625, 0.0125732421875, -0.0071258544921875, 0.0228118896484375, 0.04425048828125, -0.0189666748046875, -0.026580810546875, 0.0638427734375, 0.00890350341796875, 0.10205078125, -0.04925537109375, 0.0021343231201171875, 0.0276641845703125, 0.0149688720703125, -0.035430908203125, -0.01363372802734375, -0.00514984130859375, 0.041351318359375, 0.006500244140625, -0.0614013671875, -0.01456451416015625, -0.0156097412109375, -0.0589599609375, -0.08343505859375, 0.0309600830078125, -0.0197906494140625, -0.03314208984375, 0.007419586181640625, 0.0234375, 0.021636962890625, -0.026275634765625, -0.01239776611328125, 0.0107574462890625, -0.01451873779296875, -0.032135009765625, -0.00652313232421875, 0.050506591796875, 0.0023250579833984375, -0.0012826919555664062, -0.0399169921875, 0.00812530517578125, -0.021820068359375, -0.00807952880859375, -0.0002014636993408203, -0.002902984619140625, -0.008819580078125, 0.014984130859375, -0.05145263671875, -0.029327392578125, -0.0231475830078125, 0.06512451171875, -0.039764404296875, 0.0078582763671875, -0.0059814453125, 0.02252197265625, 0.0897216796875, 0.09796142578125, 0.0279083251953125, -0.06561279296875, -0.005687713623046875, 0.0019292831420898438, -0.0106353759765625, -0.017669677734375, 0.01023101806640625, -0.03753662109375, 0.003116607666015625, -0.00928497314453125, 0.01065826416015625, 0.035797119140625, -0.025970458984375, 0.006011962890625, 0.0026340484619140625, 0.0263671875, -0.005878448486328125, -0.039459228515625, -0.034423828125, 0.01690673828125, -0.01136016845703125, 0.0146636962890625, -0.006244659423828125, 0.0362548828125, -0.003665924072265625, 0.053466796875, 0.0282135009765625, 0.0197906494140625, -0.056671142578125, 0.022552490234375, 0.004825592041015625, 0.045318603515625, -0.059295654296875, -0.03662109375, 0.01629638671875, 0.01242828369140625, -0.0024051666259765625, 0.01062774658203125, -0.03948974609375, 0.04425048828125, 0.0030879974365234375, 0.01385498046875, 0.0007443428039550781, 0.0237579345703125, -0.05169677734375, 0.06390380859375, 0.0088958740234375, -0.01401519775390625, 0.0096435546875, -0.00627899169921875, 0.01374053955078125, -0.01021575927734375, 0.0531005859375, -0.02484130859375, 0.037078857421875, -0.00435638427734375, -0.0081024169921875, 0.032928466796875 ]
c04d9d12545a1d8f844de12831194275da5d7940
Wordpress Stackexchange Q: One Child Functions.php for Multiple Child Themes I have a wordpress setup that I use for clients with around 30 or so child themes that they can choose from. Each child theme has it's own functions.php file currently. Is it possible to setup just one child functions.php and call it from all the separate child themes? My reason for wanting this functionality is I find myself continually making changes to the functions.php and I have to do it to all 30+ themes every time. A: Use a plugin for that. Hook into after_setup_theme and check if the current theme is the correct child theme: add_action( 'after_setup_theme', 'common_child_theme_functions' ); function common_child_theme_functions() { if ( 'Twenty Twelve' !== wp_get_theme()->parent() ) return; // do your work } wp_get_theme() returns a WP_Theme instance, and parent() either the parent theme name or FALSE. I do not recommend a mu-plugin. Real plugins can be deactivated, and you can enable or disable them for each site separately. Adjust the capabilities for the clients instead; this is a much cleaner approach.
Q: One Child Functions.php for Multiple Child Themes I have a wordpress setup that I use for clients with around 30 or so child themes that they can choose from. Each child theme has it's own functions.php file currently. Is it possible to setup just one child functions.php and call it from all the separate child themes? My reason for wanting this functionality is I find myself continually making changes to the functions.php and I have to do it to all 30+ themes every time. A: Use a plugin for that. Hook into after_setup_theme and check if the current theme is the correct child theme: add_action( 'after_setup_theme', 'common_child_theme_functions' ); function common_child_theme_functions() { if ( 'Twenty Twelve' !== wp_get_theme()->parent() ) return; // do your work } wp_get_theme() returns a WP_Theme instance, and parent() either the parent theme name or FALSE. I do not recommend a mu-plugin. Real plugins can be deactivated, and you can enable or disable them for each site separately. Adjust the capabilities for the clients instead; this is a much cleaner approach. A: Well, I'd say that you need a custom plugin. All the rationale is in this Q&A: Where to put my code: plugin or functions.php? Also related: * *Where do I put the code snippets I found here or somewhere else on the web? *Create a Functionality Plugin Instead of Using Functions.php And answering to the Question, create the following file /wp-content/themes/common-functions.php, and paste what you need in it. And inside the child theme functions.php use: require_once ( TEMPLATEPATH . '/../common-functions.php' ); or require_once ( WP_CONTENT_DIR . '/themes/common-functions.php' ); A: I'd use a must use plugin. The code will apply across the network while your clients won't have access to it so they won't be able to disable or modify it. To proceed you just have to put your code in one single file and put it in /wp-content/mu-plugins/ Hope this will help :) A: You can include just about any file you want from any of the child themes, but there is little known feature to WordPress called Must Use plugins. I think I would lean towards that. * *Create a directory called mu-plugins in wp-content *Create a file in that directory and add your functions to it. Unlike ordinary plugins, must-use plugins do not show up in the plugin list and cannot be deactivated, other than deleting the mu-plugin file, so they can serve as a kind-of global functions.php.
wordpress
{ "language": "en", "length": 405, "provenance": "stackexchange_00019.jsonl.gz:431976", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/97993" }
[ 0.054290771484375, -0.029876708984375, 0.00547027587890625, -0.0684814453125, -0.006038665771484375, -0.0025634765625, 0.0095367431640625, 0.01165771484375, -0.03216552734375, 0.0038166046142578125, -0.0017795562744140625, 0.00737762451171875, -0.0450439453125, -0.04022216796875, -0.0002620220184326172, -0.04534912109375, 0.04278564453125, -0.01328277587890625, 0.0084686279296875, -0.00931549072265625, 0.001804351806640625, 0.0272674560546875, -0.0023193359375, 0.0965576171875, 0.052215576171875, -0.05303955078125, 0.00386810302734375, -0.01007843017578125, 0.01361846923828125, -0.0230255126953125, 0.01424407958984375, 0.01971435546875, -0.0023593902587890625, 0.037017822265625, -0.007198333740234375, -0.02685546875, 0.01111602783203125, 0.0115966796875, 0.0025463104248046875, 0.050994873046875, 0.0219879150390625, -0.01093292236328125, 0.008514404296875, 0.06951904296875, -0.018768310546875, -0.0794677734375, 0.060028076171875, -0.0191802978515625, -0.0032863616943359375, -0.0233001708984375, 0.04425048828125, -0.009124755859375, 0.058624267578125, -0.043701171875, -0.0218048095703125, -0.0036411285400390625, 0.005523681640625, 0.01422882080078125, 0.0310516357421875, -0.0095367431640625, -0.04815673828125, 0.0038852691650390625, 0.0194854736328125, -0.00904083251953125, -0.0111236572265625, -0.01146697998046875, -0.07135009765625, 0.0209503173828125, -0.0421142578125, -0.0103759765625, 0.03607177734375, -0.050048828125, 0.025421142578125, -0.019134521484375, 0.003719329833984375, -0.025421142578125, -0.0030803680419921875, -0.0211029052734375, 0.0164794921875, -0.0019388198852539062, -0.0142669677734375, -0.0380859375, -0.062347412109375, -0.0272979736328125, 0.0247650146484375, 0.01062774658203125, -0.0034275054931640625, -0.000911712646484375, -0.0714111328125, -0.005535125732421875, -0.05450439453125, -0.0288543701171875, -0.06195068359375, -0.0028133392333984375, 0.0107421875, 0.00894927978515625, 0.055511474609375, 0.02703857421875, -0.0190277099609375, -0.025299072265625, 0.035369873046875, -0.048980712890625, 0.006378173828125, -0.0139007568359375, 0.004688262939453125, 0.050506591796875, 0.0019168853759765625, -0.0282135009765625, 0.0183563232421875, 0.0272979736328125, 0.0155792236328125, 0.024261474609375, 0.01345062255859375, -0.03558349609375, -0.00685882568359375, -0.001041412353515625, -0.0281982421875, 0.0186309814453125, 0.0190887451171875, -0.00800323486328125, 0.00006073713302612305, 0.0299072265625, 0.01192474365234375, 0.0200653076171875, -0.01471710205078125, 0.0091094970703125, -0.012420654296875, -0.046630859375, -0.01145172119140625, -0.0216217041015625, -0.049407958984375, 0.01885986328125, 0.08245849609375, 0.036834716796875, 0.00919342041015625, -0.001041412353515625, 0.04364013671875, 0.0214080810546875, 0.02227783203125, -0.0124969482421875, 0.0396728515625, -0.037445068359375, -0.044769287109375, 0.056976318359375, -0.01763916015625, -0.00208282470703125, 0.0166473388671875, 0.021392822265625, 0.0107269287109375, -0.0168914794921875, -0.0003266334533691406, 0.01287078857421875, 0.00653839111328125, 0.0009713172912597656, -0.0033550262451171875, -0.0219879150390625, -0.038787841796875, 0.01171875, 0.0286712646484375, 0.0087432861328125, -0.00036597251892089844, -0.0189208984375, 0.0184326171875, 0.0093536376953125, -0.029693603515625, 0.029296875, -0.0218048095703125, -0.005809783935546875, 0.0015153884887695312, -0.054840087890625, -0.01454925537109375, -0.0170135498046875, -0.008636474609375, 0.00946807861328125, 0.01480865478515625, 0.0428466796875, -0.02886962890625, 0.048370361328125, 0.025054931640625, 0.005489349365234375, 0.0014247894287109375, -0.0438232421875, 0.05133056640625, -0.00646209716796875, -0.0699462890625, 0.0294342041015625, -0.00911712646484375, 0.022430419921875, 0.038543701171875, -0.0005159378051757812, 0.02899169921875, 0.02008056640625, -0.0217742919921875, -0.0035343170166015625, 0.006977081298828125, -0.017059326171875, -0.036224365234375, -0.01016998291015625, -0.0221405029296875, 0.01377105712890625, -0.00787353515625, -0.033905029296875, 0.047698974609375, -0.02801513671875, -0.007602691650390625, -0.014312744140625, -0.00954437255859375, 0.034454345703125, -0.0030040740966796875, 0.0157623291015625, 0.0076141357421875, -0.0135498046875, -0.00501251220703125, -0.033050537109375, -0.015777587890625, 0.0185394287109375, -0.0160675048828125, 0.046783447265625, -0.0030155181884765625, 0.021453857421875, 0.013427734375, -0.03070068359375, 0.007781982421875, 0.007717132568359375, 0.0460205078125, -0.01396942138671875, -0.0197296142578125, -0.024261474609375, -0.00513458251953125, 0.0005803108215332031, -0.050262451171875, 0.06353759765625, 0.0189666748046875, 0.0181427001953125, -0.018463134765625, 0.00667572021484375, 0.009368896484375, -0.0291290283203125, -0.0129547119140625, 0.0263671875, 0.03399658203125, 0.04583740234375, -0.01430511474609375, -0.01535797119140625, 0.04803466796875, -0.059906005859375, -0.00563812255859375, -0.00504302978515625, 0.0192413330078125, 0.0452880859375, -0.00211334228515625, 0.01125335693359375, 0.0201568603515625, -0.06170654296875, 0.0272216796875, 0.04510498046875, -0.005039215087890625, -0.044158935546875, 0.01195526123046875, -0.017913818359375, 0.050537109375, -0.036407470703125, -0.08544921875, 0.00927734375, 0.037994384765625, -0.0124664306640625, 0.0086669921875, -0.003658294677734375, -0.014923095703125, 0.003986358642578125, 0.003330230712890625, -0.03387451171875, -0.0027065277099609375, 0.0278167724609375, -0.0186920166015625, 0.00681304931640625, -0.003711700439453125, -0.00545501708984375, -0.0233917236328125, 0.0045318603515625, -0.00864410400390625, 0.01424407958984375, -0.036773681640625, -0.01403045654296875, 0.007068634033203125, 0.0043182373046875, -0.006931304931640625, 0.0216827392578125, 0.01029205322265625, 0.003986358642578125, 0.01128387451171875, 0.0548095703125, -0.0228729248046875, 0.055572509765625, -0.00907135009765625, -0.0021266937255859375, 0.0102081298828125, -0.046844482421875, 0.029327392578125, -0.037506103515625, 0.042877197265625, 0.04119873046875, 0.00910186767578125, -0.006195068359375, -0.00403594970703125, -0.006389617919921875, 0.006175994873046875, 0.004581451416015625, -0.00986480712890625, -0.0278778076171875, -0.0142364501953125, -0.007171630859375, 0.01184844970703125, 0.07415771484375, -0.0210113525390625, -0.06707763671875, 0.00537109375, 0.023162841796875, -0.04638671875, -0.0447998046875, 0.00008183717727661133, -0.053680419921875, 0.01715087890625, -0.041595458984375, -0.0248565673828125, -0.01739501953125, -0.03753662109375, 0.01279449462890625, 0.024932861328125, -0.0300445556640625, -0.04315185546875, -0.0197601318359375, -0.073974609375, 0.023834228515625, 0.0167999267578125, 0.011932373046875, -0.011322021484375, 0.0625, 0.0037937164306640625, -0.03424072265625, -0.028106689453125, 0.04840087890625, -0.0023651123046875, -0.0445556640625, 0.0225830078125, -0.04583740234375, 0.00534820556640625, 0.0190582275390625, -0.0216217041015625, -0.0079345703125, -0.004352569580078125, -0.042999267578125, -0.03131103515625, -0.01323699951171875, -0.004222869873046875, 0.038543701171875, 0.03179931640625, -0.0178680419921875, 0.029083251953125, -0.045379638671875, -0.036865234375, 0.02386474609375, -0.034881591796875, 0.01904296875, 0.0142822265625, -0.031890869140625, 0.003429412841796875, -0.004993438720703125, 0.02630615234375, -0.00868988037109375, -0.006832122802734375, -0.007106781005859375, 0.0692138671875, 0.00469970703125, 0.034820556640625, -0.01395416259765625, 0.0194854736328125, -0.0206298828125, -0.00020432472229003906, -0.0037250518798828125, 0.0096282958984375, 0.004383087158203125, -0.015472412109375, -0.041778564453125, -0.0196380615234375, 0.0294342041015625, -0.00792694091796875, 0.0380859375, -0.036346435546875, -0.0138397216796875, -0.0248870849609375, 0.0791015625, -0.049163818359375, -0.0169525146484375, 0.014251708984375, 0.01528167724609375, -0.0499267578125, 0.00244903564453125, -0.06951904296875, -0.0066680908203125, -0.05828857421875, -0.022064208984375, -0.02239990234375, -0.02294921875, 0.01021575927734375, 0.0217437744140625, -0.010955810546875, -0.034820556640625, 0.01910400390625, 0.01357269287109375, 0.001922607421875, -0.0037136077880859375, 0.005207061767578125, -0.0108489990234375, -0.000033736228942871094, -0.01285552978515625, -0.065673828125, -0.0194854736328125, -0.042144775390625, 0.06463623046875, 0.052703857421875, -0.07928466796875, 0.00574493408203125, 0.045684814453125, 0.0092315673828125, 0.053619384765625, -0.006381988525390625, -0.006290435791015625, 0.017486572265625, -0.0269775390625, 0.01105499267578125, -0.0186767578125, -0.0292816162109375, -0.0252227783203125, -0.02252197265625, -0.0140228271484375, -0.01194000244140625, -0.03802490234375, 0.01430511474609375, -0.01161956787109375, -0.0020389556884765625, 0.00872039794921875, -0.02734375, -0.01375579833984375, 0.0033855438232421875, -0.0223846435546875, 0.01239013671875, -0.020843505859375, 0.002536773681640625, -0.031036376953125, -0.040374755859375, 0.0203704833984375, 0.0277557373046875, 0.02471923828125, -0.0216522216796875, -0.04144287109375, -0.0146331787109375, 0.030120849609375, 0.004261016845703125, 0.0000019073486328125, -0.0165863037109375, -0.03131103515625, 0.026885986328125, 0.005924224853515625, 0.00246429443359375, 0.024810791015625, 0.041351318359375, 0.0003459453582763672, -0.045257568359375, 0.040679931640625, 0.01425933837890625, -0.032562255859375, 0.0024051666259765625, -0.0255279541015625, -0.01552581787109375, -0.01526641845703125, 0.0439453125, -0.0015163421630859375, 0.008056640625, -0.06317138671875, -0.03656005859375, 0.00220489501953125, -0.01444244384765625, 0.02105712890625, 0.028289794921875, -0.0028057098388671875, 0.0357666015625, 0.0114593505859375, 0.00534820556640625, 0.0552978515625, 0.10198974609375, 0.007720947265625, 0.058135986328125, 0.031280517578125, -0.015045166015625, -0.029144287109375, -0.01947021484375, 0.059356689453125, 0.031982421875, -0.0243377685546875, 0.00875091552734375, -0.00916290283203125, 0.024383544921875, -0.03765869140625, -0.044189453125, 0.051116943359375, 0.03564453125, -0.0306549072265625, -0.0197906494140625, -0.04632568359375, -0.017791748046875, -0.057525634765625, -0.012908935546875, 0.01500701904296875, -0.032440185546875, 0.00795745849609375, -0.01486968994140625, 0.0123138427734375, -0.0130462646484375, -0.0121307373046875, -0.00405120849609375, -0.01568603515625, 0.03125, 0.0192413330078125, -0.0202178955078125, 0.038604736328125, -0.0218963623046875, 0.041839599609375, -0.007720947265625, -0.01898193359375, 0.0355224609375, 0.03973388671875, 0.036224365234375, 0.0303497314453125, -0.026702880859375, 0.0030765533447265625, -0.023193359375, 0.01221466064453125, 0.0282135009765625, 0.006175994873046875, -0.0156402587890625, -0.0057830810546875, 0.0186920166015625, 0.037506103515625, -0.0171966552734375, 0.00879669189453125, -0.02587890625, -0.005016326904296875, 0.01502227783203125, -0.041259765625, 0.01351165771484375, 0.0189056396484375, -0.039276123046875, 0.0245513916015625, 0.01464080810546875, -0.09228515625, -0.0792236328125, 0.005298614501953125, -0.02734375, 0.043548583984375, -0.0177154541015625, 0.0286865234375, -0.0245361328125, -0.013946533203125, -0.01270294189453125, -0.01332855224609375, 0.09698486328125, 0.0382080078125, -0.09698486328125, -0.0012617111206054688, -0.050445556640625, -0.00736236572265625, -0.060028076171875, -0.0755615234375, -0.06396484375, 0.01042938232421875, 0.003917694091796875, 0.02264404296875, -0.003353118896484375, -0.0014848709106445312, 0.00251007080078125, 0.0032405853271484375, -0.02410888671875, 0.0120086669921875, -0.0207977294921875, 0.04119873046875, 0.005512237548828125, 0.024871826171875, 0.00881195068359375, 0.039825439453125, 0.0185699462890625, -0.0302734375, 0.00661468505859375, 0.0018787384033203125, 0.012359619140625, -0.0203857421875, 0.004940032958984375, -0.042327880859375, 0.041351318359375, 0.00159454345703125, 0.026519775390625, -0.037811279296875, -0.0062255859375, -0.0112152099609375, 0.0261383056640625, -0.03704833984375, -0.0103759765625, 0.01013946533203125, -0.0273284912109375, -0.0195465087890625, 0.007328033447265625, -0.0148773193359375, 0.037200927734375, -0.00287628173828125, 0.0182342529296875, 0.01386260986328125, -0.06500244140625, 0.06439208984375, 0.045501708984375, -0.006378173828125, 0.027740478515625, -0.022705078125, 0.01071929931640625, 0.01448822021484375, 0.022430419921875, -0.0034618377685546875, -0.0225830078125, 0.055694580078125, 0.0157318115234375, -0.0005903244018554688, 0.032806396484375, -0.0222015380859375, -0.035736083984375, 0.0271453857421875, 0.01727294921875, -0.058441162109375, 0.00977325439453125, -0.0010442733764648438, 0.022430419921875, -0.0008554458618164062, 0.0003609657287597656, -0.00458526611328125, -0.0204010009765625, 0.0229644775390625, 0.025665283203125, -0.007152557373046875, 0.0207977294921875, -0.00312042236328125, 0.003932952880859375, -0.02105712890625, 0.035186767578125, 0.0153350830078125, -0.0036449432373046875, 0.0208892822265625, 0.0062255859375, 0.0244293212890625, -0.03131103515625, 0.00304412841796875, 0.004337310791015625, -0.0242919921875, -0.0479736328125, 0.0113372802734375, -0.00440216064453125, 0.009552001953125, -0.0416259765625, -0.0250091552734375, -0.0232696533203125, 0.058563232421875, -0.0648193359375, 0.021728515625, 0.03204345703125, -0.04217529296875, -0.06707763671875, -0.00856781005859375, 0.028472900390625, -0.0240325927734375, -0.057647705078125, 0.02703857421875, -0.07501220703125, -0.005619049072265625, 0.003803253173828125, 0.0027217864990234375, 0.0262298583984375, -0.00008475780487060547, -0.0106353759765625, 0.062225341796875, -0.01507568359375, -0.04217529296875, 0.026336669921875, 0.05511474609375, -0.061553955078125, -0.0660400390625, 0.04901123046875, -0.056396484375, -0.0233612060546875, 0.00988006591796875, -0.057586669921875, 0.158203125, -0.02410888671875, 0.0301513671875, 0.0411376953125, 0.070068359375, -0.0723876953125, 0.0225372314453125, -0.0263671875, 0.033172607421875, 0.04302978515625, 0.007244110107421875, -0.0209808349609375, -0.00312042236328125, -0.0223236083984375, 0.006866455078125, 0.012054443359375, -0.00537109375, 0.000048220157623291016, 0.008392333984375, 0.0526123046875, 0.04046630859375, 0.0001436471939086914, 0.0036792755126953125, -0.006927490234375, -0.02105712890625, 0.00479888916015625, 0.01629638671875, 0.0362548828125, -0.0182037353515625, -0.0233917236328125, 0.02386474609375, 0.016357421875, -0.006008148193359375, -0.012054443359375, -0.0237579345703125, -0.044342041015625, 0.0047149658203125, 0.0112457275390625, 0.049560546875, 0.0144805908203125, 0.0030651092529296875, 0.00536346435546875, -0.0111541748046875, 0.02978515625, -0.01325225830078125, 0.0357666015625, -0.01385498046875, -0.007686614990234375, 0.008056640625, 0.0200347900390625, -0.042633056640625, -0.0098724365234375, -0.005756378173828125, 0.0211639404296875, -0.027496337890625, 0.032623291015625, 0.00855255126953125, 0.025054931640625, -0.024169921875, 0.029510498046875, -0.00566864013671875, 0.0198211669921875, -0.03485107421875, -0.05511474609375, 0.014129638671875, -0.006999969482421875, -0.0015020370483398438, 0.01519012451171875, 0.01302337646484375, 0.0152435302734375, 0.034149169921875, -0.0087127685546875, -0.0308990478515625, 0.007610321044921875, 0.01119232177734375, 0.023040771484375, 0.056427001953125, -0.00931549072265625, -0.030181884765625, -0.031829833984375, 0.00034117698669433594, 0.022857666015625, 0.050262451171875, 0.001079559326171875, 0.08551025390625, -0.029815673828125, -0.02545166015625, -0.0004031658172607422, 0.016387939453125, 0.0123443603515625, -0.0302276611328125, 0.00007557868957519531, -0.034149169921875, 0.0309600830078125, 0.025543212890625, 0.027130126953125, 0.0055999755859375, 0.03704833984375, 0.035614013671875, -0.0192108154296875, -0.00774383544921875, 0.03509521484375, -0.002468109130859375, -0.007778167724609375, 0.0012340545654296875, -0.0352783203125, -0.002658843994140625, -0.01641845703125, -0.01375579833984375, 0.0243377685546875, 0.00498199462890625, 0.013427734375, 0.0300140380859375, 0.0035877227783203125, 0.011566162109375, 0.00962066650390625, 0.014862060546875, 0.03839111328125, 0.039154052734375, -0.10693359375, -0.032073974609375, -0.006931304931640625, -0.02685546875, 0.03851318359375, 0.049652099609375, -0.00865936279296875, -0.00376129150390625, 0.01209259033203125, -0.01251220703125, 0.00899505615234375, 0.00658416748046875, -0.00649261474609375, 0.0032482147216796875, 0.016021728515625, 0.007228851318359375, -0.027069091796875, -0.0177001953125, 0.0014657974243164062, 0.032928466796875, 0.0180511474609375, 0.08148193359375, -0.035430908203125, 0.00958251953125, 0.0265350341796875, 0.00862884521484375, 0.0238800048828125, 0.0078277587890625, 0.0300445556640625, -0.0147552490234375, 0.00408935546875, -0.0166473388671875, -0.04425048828125, 0.01727294921875, 0.0258636474609375, -0.0277557373046875, 0.00391387939453125, 0.003993988037109375, 0.01322174072265625, -0.015869140625, 0.03131103515625, -0.00036597251892089844, -0.00049591064453125, -0.053802490234375, -0.03973388671875, 0.07855224609375, 0.0753173828125, -0.0021839141845703125, -0.0157012939453125, 0.04949951171875, -0.01406097412109375, 0.0029850006103515625, 0.049713134765625, -0.0275115966796875, 0.0203857421875, 0.030609130859375, -0.09771728515625, 0.00823211669921875, -0.00762939453125, -0.0120391845703125, 0.01155853271484375, 0.07568359375, 0.0098724365234375, -0.0396728515625, 0.038726806640625, 0.0750732421875, 0.0292816162109375, -0.056060791015625, 0.01448822021484375, 0.088134765625, -0.034027099609375, 0.03582763671875, -0.04400634765625, -0.01363372802734375, -0.03204345703125, 0.0082550048828125, 0.0161285400390625, -0.00971221923828125, -0.0258941650390625, 0.0020427703857421875, 0.036956787109375, 0.057586669921875, 0.01409149169921875, -0.04913330078125, 0.0294647216796875, -0.039825439453125, 0.041412353515625, 0.0189971923828125, -0.003223419189453125, 0.002735137939453125, 0.0111541748046875, -0.02880859375, -0.019805908203125, -0.032470703125, 0.022308349609375, -0.0228424072265625, 0.044952392578125, 0.046295166015625, -0.0287017822265625, 0.0264892578125, 0.071044921875, 0.0457763671875, 0.1246337890625, -0.0205841064453125, -0.0260162353515625, -0.016510009765625, 0.0164337158203125, -0.0002522468566894531, -0.0263214111328125, 0.03216552734375, -0.06964111328125, -0.0295867919921875, -0.03717041015625, 0.0152435302734375, 0.03265380859375, -0.046051025390625, -0.07965087890625, 0.068115234375, -0.038848876953125, -0.033966064453125, -0.03948974609375, 0.005306243896484375, -0.012451171875, 0.00405120849609375, -0.01739501953125, 0.0165252685546875, 0.0150604248046875, 0.06103515625, 0.019195556640625, 0.00787353515625, 0.0250091552734375, 0.028228759765625, -0.0258026123046875, 0.0228271484375, 0.020843505859375, -0.01290130615234375, 0.026031494140625, -0.02471923828125, 0.0450439453125, 0.061004638671875, -0.0237884521484375, -0.00873565673828125, 0.01180267333984375, -0.020843505859375, -0.01238250732421875, -0.0260467529296875, -0.004238128662109375, 0.00031495094299316406, 0.0151214599609375, 0.03033447265625, 0.001842498779296875, -0.0210418701171875, -0.0291900634765625, -0.0226898193359375, -0.0311431884765625, 0.00695037841796875, 0.0211334228515625, -0.068603515625, 0.01212310791015625, 0.0222015380859375, -0.0207977294921875, 0.01812744140625, -0.0092315673828125, -0.034210205078125, 0.004489898681640625, -0.0013370513916015625, 0.0018053054809570312, -0.050811767578125, -0.029327392578125, 0.0196990966796875, -0.00452423095703125, 0.0205078125, -0.01377105712890625, 0.0223541259765625, 0.007781982421875, 0.0214080810546875, 0.035003662109375, 0.046722412109375, -0.04058837890625, -0.0037708282470703125, 0.0309600830078125, 0.01482391357421875, -0.01125335693359375, -0.0256805419921875, -0.0333251953125, 0.014892578125, 0.007568359375, 0.01142120361328125, -0.005870819091796875, 0.0616455078125, 0.02874755859375, 0.044647216796875, 0.01239776611328125, 0.0667724609375, -0.0152740478515625, 0.050811767578125, -0.0239715576171875, -0.004100799560546875, -0.011199951171875, -0.02142333984375, 0.021728515625, -0.01534271240234375, 0.044189453125, -0.0159454345703125, 0.0257568359375, 0.0027256011962890625, -0.01519012451171875, 0.0193023681640625 ]
5631c29c8508ad2978db9af8bd0fd41239cfd0d0
Wordpress Stackexchange Q: Is there a quick way to view the wp-cron schedule I'm trying to work which plugin is triggering wp-cron. I know about the code: http://codex.wordpress.org/Function_Reference/wp_get_schedules , but I'd prefer to do something in the sql backend rather than write a plugin. A: Why don't you just create a cron job, make a database dump and look where the info about the cron job is kept? That's what I did. As suspected, WordPress 3.5.1 keeps its cron jobs in the {wp}_options table under the name 'cron'. SELECT * FROM `wp_options` WHERE `option_name` LIKE '%cron%' Or through functions.php: $cron_jobs = get_option( 'cron' ); var_dump($cron_jobs);
Q: Is there a quick way to view the wp-cron schedule I'm trying to work which plugin is triggering wp-cron. I know about the code: http://codex.wordpress.org/Function_Reference/wp_get_schedules , but I'd prefer to do something in the sql backend rather than write a plugin. A: Why don't you just create a cron job, make a database dump and look where the info about the cron job is kept? That's what I did. As suspected, WordPress 3.5.1 keeps its cron jobs in the {wp}_options table under the name 'cron'. SELECT * FROM `wp_options` WHERE `option_name` LIKE '%cron%' Or through functions.php: $cron_jobs = get_option( 'cron' ); var_dump($cron_jobs); A: WordPress has an undocumented function, _get_cron_array(), that returns an array of all currently scheduled tasks. We are going to use a crude but effective method to dump out all the tasks using var_dump(). For ease of use place the following code in the plugin: echo '<pre>'; print_r( _get_cron_array() ); echo '</pre>'; For more info: https://developer.wordpress.org/plugins/cron/simple-testing/ A: You can use the WP-CLI. From the command line, you can run the following command from the directory of your WordPress installation: wp cron event list It will display a table of the scheduled events, when it's set to run, and how often it's rescheduled. Here is what was returned to me when I ran the command: https://kinsta.com/knowledgebase/wordpress-cron-job/
wordpress
{ "language": "en", "length": 218, "provenance": "stackexchange_00019.jsonl.gz:431988", "question_score": "29", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/98032" }
[ 0.060272216796875, -0.0017309188842773438, 0.005420684814453125, -0.002063751220703125, 0.0071563720703125, -0.044891357421875, 0.04046630859375, -0.049896240234375, 0.01029205322265625, -0.0077056884765625, -0.045501708984375, 0.0263214111328125, -0.043609619140625, -0.00609588623046875, -0.004489898681640625, -0.0323486328125, 0.07666015625, -0.032196044921875, 0.0205841064453125, 0.00994873046875, -0.029144287109375, 0.0699462890625, 0.00037288665771484375, 0.09344482421875, 0.023834228515625, 0.021514892578125, 0.059539794921875, -0.022735595703125, 0.041046142578125, 0.01552581787109375, 0.03204345703125, -0.080078125, 0.0105438232421875, -0.01282501220703125, 0.035736083984375, 0.0026569366455078125, -0.01187896728515625, 0.008697509765625, 0.0191802978515625, -0.0081329345703125, -0.00463104248046875, 0.001567840576171875, 0.01496124267578125, -0.0109710693359375, -0.002735137939453125, -0.0179443359375, -0.0027484893798828125, -0.04559326171875, -0.007221221923828125, 0.00897979736328125, 0.030059814453125, -0.00948333740234375, 0.053466796875, 0.0018815994262695312, -0.01450347900390625, -0.0187530517578125, -0.055755615234375, 0.054229736328125, 0.01580810546875, -0.0182647705078125, -0.00820159912109375, -0.01519012451171875, 0.02166748046875, 0.032928466796875, 0.011505126953125, -0.01349639892578125, 0.01480865478515625, 0.031402587890625, -0.0210113525390625, -0.0038909912109375, 0.014862060546875, 0.002872467041015625, 0.003276824951171875, -0.00504302978515625, -0.031707763671875, -0.014892578125, 0.015045166015625, -0.03887939453125, 0.021575927734375, -0.00897216796875, 0.0303802490234375, 0.0034847259521484375, -0.0200653076171875, 0.01035308837890625, 0.00801849365234375, 0.020751953125, 0.0009684562683105469, -0.0292816162109375, -0.04852294921875, -0.0167999267578125, -0.038726806640625, 0.025634765625, -0.05029296875, -0.03948974609375, -0.01239776611328125, -0.0274505615234375, 0.01446533203125, 0.0246124267578125, -0.03662109375, -0.025482177734375, -0.0178375244140625, -0.00836944580078125, -0.039794921875, 0.003200531005859375, -0.04083251953125, 0.034423828125, 0.078369140625, 0.08392333984375, -0.0151824951171875, 0.0181427001953125, -0.00811767578125, -0.02044677734375, 0.0169677734375, -0.0189361572265625, 0.01010894775390625, -0.03082275390625, -0.0255279541015625, 0.056243896484375, 0.01270294189453125, 0.0089874267578125, -0.0308990478515625, 0.01161956787109375, -0.0261077880859375, -0.037445068359375, 0.00397491455078125, -0.043121337890625, 0.00033736228942871094, 0.004444122314453125, -0.048828125, 0.0107879638671875, -0.0224151611328125, 0.0132904052734375, 0.045318603515625, 0.03900146484375, -0.0036792755126953125, -0.01198577880859375, 0.017425537109375, -0.01026153564453125, 0.0195465087890625, -0.01470947265625, -0.0013027191162109375, 0.01082611083984375, 0.02081298828125, -0.016937255859375, 0.0107421875, 0.019439697265625, 0.02276611328125, -0.003711700439453125, -0.01314544677734375, -0.0010509490966796875, -0.038055419921875, 0.007740020751953125, -0.006313323974609375, 0.05426025390625, 0.03948974609375, 0.0161285400390625, 0.078369140625, -0.03515625, 0.00818634033203125, -0.023956298828125, -0.02947998046875, -0.0034885406494140625, 0.0298309326171875, -0.039459228515625, -0.038116455078125, 0.0183258056640625, -0.024261474609375, -0.005645751953125, 0.0291748046875, -0.0243682861328125, 0.0323486328125, -0.01515960693359375, 0.03338623046875, 0.01387786865234375, 0.004238128662109375, 0.02069091796875, 0.011505126953125, -0.0171051025390625, 0.0176849365234375, 0.04864501953125, -0.01248931884765625, -0.035064697265625, 0.026275634765625, -0.0220184326171875, -0.016876220703125, -0.0379638671875, 0.0254974365234375, 0.0262298583984375, 0.015838623046875, 0.033538818359375, 0.0002453327178955078, -0.006496429443359375, -0.0245361328125, 0.058685302734375, -0.00415802001953125, -0.006587982177734375, -0.06951904296875, 0.0215911865234375, -0.036651611328125, -0.040740966796875, 0.0017414093017578125, 0.05902099609375, -0.0223236083984375, 0.0060272216796875, -0.09991455078125, 0.07464599609375, -0.047271728515625, 0.06707763671875, 0.0303497314453125, -0.0005536079406738281, -0.0005025863647460938, 0.0287628173828125, -0.0104827880859375, -0.07733154296875, -0.056793212890625, 0.06756591796875, -0.047637939453125, 0.057159423828125, -0.0265960693359375, 0.0604248046875, -0.032318115234375, -0.0643310546875, -0.0159759521484375, -0.012786865234375, -0.0010538101196289062, -0.0184478759765625, -0.015625, -0.015350341796875, 0.006832122802734375, -0.01335906982421875, 0.016204833984375, 0.01477813720703125, 0.0223236083984375, 0.075439453125, -0.0020351409912109375, 0.002765655517578125, 0.038848876953125, 0.00893402099609375, 0.01052093505859375, 0.0111846923828125, 0.048187255859375, 0.032562255859375, 0.006130218505859375, -0.02423095703125, 0.035552978515625, -0.047393798828125, 0.017913818359375, -0.040252685546875, 0.001285552978515625, 0.0238037109375, -0.005191802978515625, 0.006450653076171875, 0.0177764892578125, -0.032867431640625, -0.007228851318359375, 0.04443359375, 0.01323699951171875, 0.0178070068359375, 0.0026302337646484375, 0.01369476318359375, -0.0038700103759765625, -0.00324249267578125, -0.005092620849609375, -0.005657196044921875, -0.02362060546875, 0.0077667236328125, 0.0014333724975585938, 0.00954437255859375, -0.0005168914794921875, -0.0006265640258789062, 0.01824951171875, -0.022308349609375, -0.00774383544921875, 0.0386962890625, 0.0009613037109375, 0.01445770263671875, -0.04754638671875, 0.00621795654296875, -0.0043182373046875, 0.0105133056640625, -0.0103302001953125, 0.0347900390625, -0.044097900390625, -0.0190582275390625, -0.02362060546875, -0.0082855224609375, -0.0189056396484375, -0.00518798828125, -0.0118255615234375, 0.033660888671875, 0.049285888671875, 0.04583740234375, -0.006412506103515625, 0.01331329345703125, -0.004100799560546875, 0.0174713134765625, 0.0582275390625, -0.038818359375, 0.0394287109375, -0.050567626953125, 0.0130157470703125, 0.03338623046875, -0.0252838134765625, 0.0025348663330078125, 0.01021575927734375, -0.0245819091796875, 0.019378662109375, 0.001705169677734375, -0.0152435302734375, 0.03955078125, -0.124267578125, -0.00977325439453125, 0.0157012939453125, 0.05419921875, -0.04638671875, -0.060699462890625, -0.033203125, 0.00580596923828125, -0.08538818359375, -0.063232421875, -0.0728759765625, -0.064453125, -0.023956298828125, -0.00606536865234375, -0.0277557373046875, 0.033935546875, 0.00991058349609375, 0.024139404296875, -0.023529052734375, 0.00441741943359375, -0.034515380859375, -0.019561767578125, -0.050384521484375, 0.021453857421875, -0.0003867149353027344, 0.03179931640625, -0.005382537841796875, 0.09210205078125, 0.01430511474609375, -0.0892333984375, -0.0306549072265625, 0.0445556640625, -0.041900634765625, 0.00592803955078125, 0.004669189453125, -0.019805908203125, -0.0029621124267578125, -0.0123138427734375, 0.0225677490234375, 0.03271484375, -0.023223876953125, 0.001621246337890625, 0.0209808349609375, 0.007534027099609375, 0.02178955078125, 0.0382080078125, -0.02081298828125, -0.0246124267578125, 0.019866943359375, -0.045745849609375, 0.01389312744140625, -0.0074615478515625, -0.0059814453125, 0.0113677978515625, -0.007080078125, -0.0201873779296875, -0.0034198760986328125, -0.0089569091796875, 0.016693115234375, 0.013427734375, 0.00970458984375, -0.004268646240234375, 0.01947021484375, 0.00574493408203125, 0.01385498046875, -0.0225067138671875, 0.0177764892578125, -0.0242919921875, 0.01198577880859375, -0.005229949951171875, -0.03143310546875, -0.04736328125, 0.02044677734375, -0.0675048828125, -0.054351806640625, 0.056243896484375, -0.0531005859375, -0.0277099609375, -0.043304443359375, -0.022247314453125, 0.0095367431640625, 0.091796875, 0.005031585693359375, -0.0294647216796875, -0.00754547119140625, 0.01342010498046875, -0.040618896484375, -0.0110931396484375, -0.0141448974609375, -0.01519012451171875, -0.1468505859375, 0.036407470703125, -0.0095672607421875, -0.0205535888671875, -0.0253143310546875, 0.0225677490234375, -0.0933837890625, -0.05621337890625, 0.0206756591796875, -0.0188140869140625, -0.00484466552734375, -0.01318359375, -0.008392333984375, -0.03619384765625, -0.00643157958984375, -0.0155487060546875, -0.09112548828125, -0.01824951171875, -0.035308837890625, 0.052886962890625, 0.040313720703125, -0.039154052734375, -0.01003265380859375, 0.03472900390625, 0.048858642578125, 0.052825927734375, 0.0246124267578125, -0.0194244384765625, 0.01531982421875, 0.00653076171875, 0.054595947265625, -0.0071868896484375, -0.0019025802612304688, -0.037445068359375, -0.03759765625, 0.006572723388671875, -0.019378662109375, 0.04681396484375, -0.024200439453125, -0.0048370361328125, -0.000568389892578125, -0.020233154296875, -0.0222930908203125, 0.00665283203125, -0.039031982421875, 0.006195068359375, -0.016143798828125, -0.0162811279296875, 0.04010009765625, -0.02203369140625, 0.006999969482421875, 0.0085906982421875, 0.0919189453125, 0.0147857666015625, -0.0181732177734375, -0.027191162109375, 0.0225982666015625, 0.046783447265625, 0.0275421142578125, 0.0280609130859375, 0.0198211669921875, -0.02215576171875, 0.0357666015625, 0.0294189453125, -0.01116180419921875, -0.005687713623046875, 0.018707275390625, 0.021209716796875, -0.01314544677734375, 0.0003123283386230469, 0.00342559814453125, 0.0272674560546875, 0.0217742919921875, 0.0037937164306640625, -0.029388427734375, 0.056243896484375, 0.029876708984375, -0.040863037109375, 0.0255126953125, -0.012054443359375, -0.035064697265625, 0.01507568359375, 0.028717041015625, 0.03521728515625, 0.0404052734375, -0.0124969482421875, 0.036712646484375, 0.0296173095703125, 0.007167816162109375, 0.0172576904296875, 0.043853759765625, 0.0100860595703125, 0.046600341796875, 0.00548553466796875, 0.001621246337890625, -0.0467529296875, -0.0079803466796875, 0.06329345703125, -0.00665283203125, -0.03314208984375, -0.02581787109375, -0.005382537841796875, 0.0219879150390625, 0.025238037109375, -0.062255859375, 0.032012939453125, 0.05157470703125, -0.005157470703125, 0.0120086669921875, -0.064208984375, 0.01495361328125, -0.043182373046875, -0.0093231201171875, -0.0167083740234375, -0.005344390869140625, 0.0146942138671875, 0.0298309326171875, -0.03216552734375, 0.033721923828125, -0.00011974573135375977, 0.043914794921875, 0.0191192626953125, 0.0121917724609375, -0.006591796875, 0.00925445556640625, 0.0153656005859375, -0.023681640625, 0.00501251220703125, -0.02490234375, -0.0297698974609375, 0.0217437744140625, 0.03253173828125, -0.0235595703125, -0.01207733154296875, 0.0255126953125, 0.00269317626953125, -0.04644775390625, 0.00803375244140625, 0.0257415771484375, 0.00555419921875, -0.032684326171875, -0.004207611083984375, 0.048614501953125, 0.05487060546875, 0.00394439697265625, 0.0196380615234375, -0.0008373260498046875, -0.0052032470703125, -0.01363372802734375, -0.013580322265625, -0.02886962890625, -0.01030731201171875, 0.0009365081787109375, -0.004230499267578125, 0.02850341796875, -0.07110595703125, -0.0216217041015625, -0.0185546875, -0.0180206298828125, 0.05145263671875, -0.028106689453125, 0.0498046875, -0.021881103515625, -0.018951416015625, -0.06390380859375, 0.0138092041015625, 0.07086181640625, 0.062744140625, -0.041473388671875, -0.002468109130859375, -0.0386962890625, -0.0239715576171875, -0.0767822265625, -0.040191650390625, -0.04931640625, 0.0291748046875, -0.0200347900390625, 0.007781982421875, -0.0292205810546875, -0.0016775131225585938, -0.02313232421875, 0.02508544921875, -0.004100799560546875, 0.006916046142578125, 0.0117340087890625, 0.0821533203125, -0.0235137939453125, 0.0699462890625, 0.0242462158203125, 0.034088134765625, -0.0301666259765625, -0.0287322998046875, 0.015625, -0.0204315185546875, -0.0246429443359375, -0.0235748291015625, -0.00957489013671875, -0.00681304931640625, 0.0219573974609375, -0.01261138916015625, -0.00733184814453125, -0.027435302734375, 0.0015869140625, -0.00812530517578125, 0.03656005859375, -0.009674072265625, -0.028961181640625, 0.024810791015625, -0.0248870849609375, 0.00249481201171875, -0.0164947509765625, 0.029876708984375, 0.0025043487548828125, -0.0286102294921875, -0.01416778564453125, 0.018280029296875, -0.0751953125, 0.1041259765625, 0.1278076171875, 0.020843505859375, 0.050872802734375, 0.022308349609375, -0.01526641845703125, -0.0179443359375, -0.00838470458984375, -0.0097198486328125, -0.0163116455078125, 0.037109375, 0.0031566619873046875, 0.0034351348876953125, 0.029022216796875, -0.01010894775390625, -0.0009179115295410156, 0.042999267578125, 0.0189056396484375, -0.058319091796875, -0.004344940185546875, -0.01166534423828125, -0.01551055908203125, 0.0053558349609375, 0.0151214599609375, -0.027435302734375, -0.055206298828125, 0.029754638671875, -0.0058135986328125, -0.004024505615234375, 0.005840301513671875, 0.0111541748046875, 0.0168914794921875, 0.0203857421875, 0.044097900390625, 0.02294921875, -0.03936767578125, 0.00821685791015625, 0.0294647216796875, 0.04541015625, -0.0732421875, 0.0151824951171875, 0.0252532958984375, 0.017242431640625, -0.0458984375, 0.09014892578125, 0.01384735107421875, 0.0572509765625, -0.01528167724609375, -0.00116729736328125, 0.0092620849609375, 0.061676025390625, -0.033050537109375, 0.0146026611328125, 0.052154541015625, -0.038482666015625, 0.0134124755859375, -0.01445770263671875, 0.0228118896484375, 0.0235595703125, -0.0821533203125, 0.00360870361328125, -0.0443115234375, 0.0014448165893554688, 0.00771331787109375, 0.004863739013671875, 0.031982421875, -0.026885986328125, -0.01163482666015625, 0.024505615234375, -0.0160064697265625, 0.0021839141845703125, -0.0014238357543945312, 0.043548583984375, -0.044036865234375, -0.0202178955078125, 0.0279083251953125, -0.013946533203125, -0.015899658203125, 0.006656646728515625, -0.01212310791015625, 0.07696533203125, 0.00537872314453125, -0.060089111328125, 0.0019664764404296875, 0.04693603515625, -0.030609130859375, 0.033111572265625, -0.03485107421875, 0.02227783203125, -0.01165771484375, 0.065673828125, -0.04034423828125, -0.01409912109375, 0.025390625, 0.039398193359375, 0.04345703125, 0.0110321044921875, 0.0107269287109375, -0.0261077880859375, -0.007740020751953125, 0.04388427734375, -0.006938934326171875, -0.003200531005859375, 0.0033359527587890625, 0.0728759765625, 0.04071044921875, -0.049346923828125, 0.0276947021484375, -0.0072784423828125, -0.0211334228515625, 0.037109375, 0.00995635986328125, 0.012237548828125, 0.0028076171875, -0.0038471221923828125, 0.0343017578125, -0.0115509033203125, -0.024017333984375, -0.024658203125, 0.04949951171875, 0.021148681640625, 0.0750732421875, -0.04132080078125, -0.01947021484375, -0.01139068603515625, 0.061126708984375, 0.005023956298828125, -0.013336181640625, 0.0107421875, 0.0130157470703125, 0.0272064208984375, -0.064453125, -0.0193328857421875, -0.0086212158203125, -0.0171051025390625, 0.003330230712890625, 0.01177215576171875, 0.0218963623046875, -0.01065826416015625, -0.0023403167724609375, 0.0264892578125, -0.0018606185913085938, -0.017059326171875, -0.03350830078125, 0.01247406005859375, 0.01042938232421875, 0.0141143798828125, 0.00621795654296875, 0.01393890380859375, -0.022552490234375, -0.007110595703125, 0.011474609375, -0.01983642578125, 0.001888275146484375, -0.0023250579833984375, 0.002910614013671875, -0.0002262592315673828, 0.02362060546875, 0.005077362060546875, -0.0230255126953125, 0.0160980224609375, -0.0211334228515625, 0.01007843017578125, 0.0177154541015625, 0.01459503173828125, 0.005340576171875, 0.0005102157592773438, 0.035491943359375, 0.004791259765625, -0.0111236572265625, -0.060760498046875, 0.0017347335815429688, -0.05255126953125, -0.0002598762512207031, 0.02313232421875, -0.002574920654296875, 0.00801849365234375, 0.0355224609375, 0.02972412109375, -0.02239990234375, -0.02197265625, 0.034576416015625, -0.0241851806640625, -0.0509033203125, -0.029815673828125, 0.0092926025390625, 0.0186920166015625, 0.025054931640625, 0.01177215576171875, 0.0660400390625, -0.007617950439453125, -0.04766845703125, 0.048583984375, -0.0198974609375, 0.0028896331787109375, 0.021697998046875, -0.042449951171875, 0.006763458251953125, -0.035552978515625, -0.01027679443359375, 0.017364501953125, -0.021514892578125, -0.036346435546875, -0.016510009765625, 0.0174560546875, -0.012939453125, 0.03143310546875, 0.03173828125, -0.0162506103515625, -0.0090789794921875, 0.0234527587890625, 0.01812744140625, -0.025360107421875, 0.01491546630859375, -0.0011320114135742188, -0.08184814453125, -0.05718994140625, -0.0231781005859375, 0.0321044921875, 0.01922607421875, 0.038604736328125, 0.011322021484375, 0.01494598388671875, 0.00519561767578125, -0.0190582275390625, -0.01025390625, 0.0049896240234375, 0.0081787109375, -0.01303863525390625, -0.02197265625, -0.0031490325927734375, -0.0262298583984375, 0.033477783203125, 0.0361328125, 0.0030975341796875, 0.0079803466796875, -0.006206512451171875, 0.01904296875, -0.004657745361328125, 0.030670166015625, -0.0237579345703125, -0.0129547119140625, -0.03338623046875, -0.01959228515625, 0.03765869140625, 0.0182037353515625, 0.0014162063598632812, -0.00988006591796875, 0.060546875, -0.01276397705078125, 0.01190948486328125, 0.01190948486328125, 0.061370849609375, 0.03753662109375, -0.00972747802734375, 0.0010156631469726562, 0.01461029052734375, -0.008697509765625, 0.029815673828125, 0.0017976760864257812, 0.0338134765625, 0.0025482177734375, 0.0168914794921875, 0.004364013671875, -0.0052490234375, -0.00408935546875, -0.03173828125, -0.007259368896484375, 0.0015287399291992188, -0.003246307373046875, -0.0005044937133789062, -0.043670654296875, -0.0155029296875, -0.04461669921875, -0.0252838134765625, 0.0178070068359375, -0.0400390625, -0.026702880859375, -0.04742431640625, -0.0184173583984375, 0.02154541015625, 0.013427734375, -0.03570556640625, 0.04083251953125, -0.024627685546875, 0.004184722900390625, -0.01332855224609375, 0.035186767578125, -0.005123138427734375, 0.02935791015625, -0.006378173828125, 0.0037517547607421875, -0.016845703125, 0.00978851318359375, -0.00006711483001708984, -0.0233001708984375, -0.0021572113037109375, -0.0031337738037109375, -0.01477813720703125, -0.034912109375, -0.0270843505859375, 0.004688262939453125, 0.02154541015625, -0.01009368896484375, 0.0012502670288085938, 0.0014133453369140625, -0.019866943359375, -0.00547027587890625, 0.0186614990234375, -0.0262908935546875, -0.039093017578125, -0.034698486328125, -0.0010519027709960938, -0.004825592041015625, -0.0416259765625, -0.0482177734375, 0.0804443359375, -0.020416259765625, -0.018218994140625, -0.031005859375, 0.016021728515625, -0.002101898193359375, -0.0191802978515625, -0.0084686279296875, -0.0123443603515625, 0.007354736328125, 0.0445556640625, 0.0168304443359375, 0.0073699951171875, 0.0035552978515625, 0.0122222900390625, -0.0364990234375, 0.032623291015625, 0.024200439453125, -0.00408935546875, 0.025665283203125, -0.0133209228515625, 0.02447509765625, 0.0343017578125, -0.02593994140625, -0.01201629638671875, -0.0106658935546875, -0.01357269287109375, -0.018829345703125, -0.01435089111328125, -0.040771484375, -0.006175994873046875, 0.08795166015625, 0.09478759765625, 0.021087646484375, -0.06793212890625, -0.0208740234375, -0.02313232421875, -0.01739501953125, -0.0077362060546875, 0.0153350830078125, -0.055694580078125, 0.00832366943359375, -0.005695343017578125, 0.0036468505859375, -0.0254974365234375, 0.05462646484375, -0.0235595703125, -0.029205322265625, -0.0159149169921875, -0.0411376953125, -0.048553466796875, -0.0008745193481445312, 0.018890380859375, -0.0178985595703125, 0.0258026123046875, -0.0175628662109375, 0.01114654541015625, 0.00933074951171875, 0.006214141845703125, 0.0137481689453125, 0.021697998046875, 0.006175994873046875, 0.019317626953125, 0.01108551025390625, -0.023834228515625, -0.042266845703125, -0.00254058837890625, 0.01372528076171875, -0.004058837890625, -0.01236724853515625, -0.003360748291015625, 0.0227813720703125, -0.011199951171875, -0.0250701904296875, 0.0015192031860351562, 0.0228118896484375, 0.0226287841796875, -0.002574920654296875, 0.054718017578125, -0.021270751953125, -0.032379150390625, -0.01045989990234375, -0.041961669921875, 0.00878143310546875, -0.01236724853515625, -0.00788116455078125, -0.033294677734375, -0.0081329345703125, -0.046112060546875, -0.0235748291015625, 0.0032024383544921875 ]
8500e77f8006c3aac950606382af8591a6aafe70
Wordpress Stackexchange Q: How to Handle CSS Organization I notice not many people have downloaded the plugin Combine CSS. Without it, I don't know of a better way to automatically combine CSS files. I was wondering, are 99% of the developers using WordPress just working in a single stylesheet? Is there some other way to combine CSS without the Combine CSS plugin? A: If you have shell access to an Apache server, Google's Mod Pagespeed is a great way to do so automatically at the server level. It has really powerful options for doing much more than just combining CSS and speeding up your sites. mod_pagespeed mod_pagespeed speeds up your site and reduces page load time. This open-source Apache HTTP server module automatically applies web performance best practices to pages, and associated assets (CSS, JavaScript, images) without requiring that you modify your existing content or workflow.
Q: How to Handle CSS Organization I notice not many people have downloaded the plugin Combine CSS. Without it, I don't know of a better way to automatically combine CSS files. I was wondering, are 99% of the developers using WordPress just working in a single stylesheet? Is there some other way to combine CSS without the Combine CSS plugin? A: If you have shell access to an Apache server, Google's Mod Pagespeed is a great way to do so automatically at the server level. It has really powerful options for doing much more than just combining CSS and speeding up your sites. mod_pagespeed mod_pagespeed speeds up your site and reduces page load time. This open-source Apache HTTP server module automatically applies web performance best practices to pages, and associated assets (CSS, JavaScript, images) without requiring that you modify your existing content or workflow. A: Several constants are used to manage the loading, concatenating and compression of scripts and CSS: define('SCRIPT_DEBUG', true); loads the development (non-minified) versions of all scripts and CSS, and disables compression and concatenation, define('CONCATENATE_SCRIPTS', false); disables compression and concatenation of scripts and CSS, define('COMPRESS_SCRIPTS', false); disables compression of scripts, define('COMPRESS_CSS', false); disables compression of CSS, define('ENFORCE_GZIP', true); forces gzip for compression (default is deflate). Is this the answer you are looking for? WordPress has a build-in concaternating of scripts and css. But you have to activate it by yourself with define( 'CONCATENATE_SCRIPTS', true );. It seems most of the blog owner doesn't know this or simply doesn't care. A: I agree with you that some of the restrictions on what you can/can't answer on a site titled "WordPress Answers" are a tad ridiculous. That aside, I will actually provide you with an answer rather than argue the point. * *Sometimes we have CSS which is only necessary for a single page. This is often the case with things like contact form or archive pages. To handle this we can incorporate some of the answers found here: http://wordpress.org/support/topic/different-css-on-one-page This type of solution will keep you from loading unnecessary CSS on pages that do not require it, very helpful. *Many theme developers will put their CSS in a single stylesheet but this is not always the case. I suggest calling CSS for things like plugins or options panels internally in your theme's files, rather than having them in the stylesheet for a potential novice to fiddle with. *If you want to compress the CSS you can use any number of free CSS compressors. One I use is Styleneat: http://www.styleneat.com/ *I personally find it somewhat pointless to use the plugin you've mentioned. It doesn't take much to move the appropriate CSS to the appropriate stylesheet. A: I'm a big fan of CodeKit: http://incident57.com/codekit/ I work with LESS, so I organize my CSS into multiple .less files: reset.less, webfonts.less, forms.less, style.less, etc. Every time I make a change on my local computer to one of these files, CodeKit automatically compiles the whole thing down to the main style.css. That way my code is nicely organized but the site only needs to load a single, compressed stylesheet. A: I use Sass and Compass, which offer numerous benefits beside CSS combining and compression. LESS is another great option, as mentioned by @Dalton above. It's not necessary to purchase CodeKit to use Sass or LESS (though it is a great app), as both are open-source.
wordpress
{ "language": "en", "length": 562, "provenance": "stackexchange_00019.jsonl.gz:432024", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/98147" }
[ 0.033050537109375, 0.01397705078125, -0.07318115234375, -0.07452392578125, 0.01611328125, -0.0089569091796875, -0.0254669189453125, 0.041229248046875, -0.026214599609375, 0.0172882080078125, -0.0169525146484375, 0.035003662109375, -0.013946533203125, -0.0197296142578125, 0.027923583984375, -0.022552490234375, 0.04638671875, -0.033172607421875, 0.0008096694946289062, -0.005367279052734375, -0.00473785400390625, 0.01824951171875, 0.0186767578125, 0.034576416015625, 0.039947509765625, -0.024932861328125, -0.0113372802734375, 0.0061492919921875, 0.01041412353515625, -0.002666473388671875, 0.017425537109375, -0.004878997802734375, 0.0280303955078125, 0.0172119140625, -0.0179595947265625, -0.006542205810546875, 0.01226043701171875, -0.00571441650390625, -0.00807952880859375, 0.03875732421875, 0.01523590087890625, -0.0034580230712890625, 0.035125732421875, 0.04644775390625, 0.0180206298828125, -0.056976318359375, 0.02008056640625, -0.07684326171875, -0.00005710124969482422, -0.06451416015625, -0.0159912109375, 0.0205230712890625, 0.01491546630859375, -0.048187255859375, -0.0133209228515625, 0.01053619384765625, 0.0193328857421875, 0.032073974609375, 0.0239410400390625, -0.06365966796875, -0.06353759765625, 0.00135040283203125, 0.03369140625, 0.00666046142578125, -0.00850677490234375, 0.00971221923828125, -0.0168304443359375, 0.0003783702850341797, -0.00974273681640625, -0.00801849365234375, 0.001392364501953125, -0.0305328369140625, -0.0005941390991210938, -0.007503509521484375, 0.004413604736328125, 0.0095062255859375, -0.03759765625, -0.015960693359375, 0.047393798828125, 0.005184173583984375, 0.01470947265625, 0.026031494140625, -0.002346038818359375, -0.056732177734375, 0.0175933837890625, -0.03985595703125, -0.0014514923095703125, -0.0016736984252929688, -0.040924072265625, 0.0055389404296875, -0.032196044921875, -0.019805908203125, -0.0186767578125, 0.003566741943359375, -0.005474090576171875, -0.00762939453125, 0.0242462158203125, 0.05810546875, -0.011505126953125, 0.0282135009765625, -0.007678985595703125, -0.036224365234375, 0.03741455078125, -0.03973388671875, -0.0023479461669921875, 0.046051025390625, 0.00841522216796875, 0.01116180419921875, 0.0235748291015625, 0.004791259765625, 0.0036907196044921875, -0.00640869140625, -0.013580322265625, -0.01345062255859375, 0.0284271240234375, -0.0022602081298828125, -0.04595947265625, 0.061614990234375, -0.02203369140625, 0.019927978515625, 0.0009937286376953125, 0.025634765625, -0.030792236328125, 0.038177490234375, -0.0244293212890625, -0.0016489028930664062, 0.0245361328125, -0.034423828125, 0.005268096923828125, -0.043701171875, -0.01090240478515625, 0.037078857421875, 0.03704833984375, 0.0142669677734375, -0.00569915771484375, 0.0080108642578125, 0.04852294921875, 0.00858306884765625, -0.0245513916015625, 0.0222320556640625, -0.0217132568359375, -0.040374755859375, -0.0210723876953125, -0.01959228515625, -0.00830841064453125, 0.002307891845703125, 0.01345062255859375, 0.017822265625, -0.0096282958984375, -0.02349853515625, 0.005359649658203125, -0.026275634765625, 0.0088043212890625, 0.00408172607421875, -0.01287841796875, -0.036163330078125, -0.0068206787109375, -0.035552978515625, 0.034820556640625, -0.0224609375, 0.0028095245361328125, 0.0069580078125, 0.05450439453125, 0.0124664306640625, 0.021881103515625, -0.004619598388671875, -0.045074462890625, 0.0084991455078125, 0.022430419921875, -0.0301513671875, -0.0199432373046875, -0.02227783203125, 0.046051025390625, 0.0014772415161132812, -0.00646209716796875, 0.051177978515625, 0.047393798828125, 0.01971435546875, -0.0014505386352539062, 0.019805908203125, -0.01163482666015625, -0.0258636474609375, 0.087158203125, -0.05389404296875, -0.05010986328125, 0.00409698486328125, -0.0237579345703125, 0.024322509765625, 0.057281494140625, 0.00554656982421875, 0.024322509765625, -0.0222015380859375, -0.044586181640625, 0.0095367431640625, -0.0008044242858886719, 0.0008244514465332031, -0.003505706787109375, 0.01132965087890625, 0.00557708740234375, -0.0267486572265625, -0.01287841796875, 0.0174102783203125, -0.0078125, 0.0180206298828125, 0.00917816162109375, 0.01155853271484375, 0.0055084228515625, 0.02325439453125, -0.02264404296875, 0.016998291015625, 0.00039696693420410156, -0.0206298828125, 0.0205078125, -0.041748046875, 0.0083770751953125, 0.0029697418212890625, -0.007755279541015625, 0.0113525390625, -0.00402069091796875, 0.01297760009765625, 0.0123748779296875, -0.0216217041015625, -0.003082275390625, 0.01071929931640625, -0.0049285888671875, 0.0173797607421875, -0.0311737060546875, 0.0030307769775390625, -0.02130126953125, -0.0014286041259765625, 0.0159759521484375, 0.039306640625, 0.036163330078125, 0.064453125, 0.025238037109375, 0.01105499267578125, 0.0269012451171875, -0.0931396484375, 0.013336181640625, 0.023590087890625, 0.01995849609375, 0.034820556640625, -0.0212554931640625, 0.028533935546875, 0.08319091796875, 0.0030879974365234375, -0.006137847900390625, 0.03216552734375, -0.005947113037109375, -0.0011110305786132812, 0.0024967193603515625, -0.043487548828125, 0.0364990234375, -0.060546875, 0.008453369140625, 0.0208892822265625, -0.05499267578125, -0.06536865234375, 0.01220703125, 0.01131439208984375, 0.0175628662109375, -0.0469970703125, -0.0018138885498046875, -0.0231170654296875, 0.011627197265625, 0.0006871223449707031, 0.034515380859375, 0.006011962890625, 0.006649017333984375, 0.006740570068359375, -0.000926971435546875, -0.062744140625, 0.016326904296875, 0.01116943359375, -0.013580322265625, -0.01666259765625, -0.00884246826171875, -0.00800323486328125, 0.01233673095703125, -0.00257110595703125, -0.0159759521484375, -0.0012006759643554688, -0.047760009765625, -0.01435089111328125, 0.00921630859375, -0.032745361328125, -0.006397247314453125, -0.005092620849609375, 0.0067291259765625, -0.0006704330444335938, 0.017242431640625, 0.024658203125, -0.01971435546875, 0.035552978515625, -0.006168365478515625, -0.0141448974609375, 0.0992431640625, -0.009918212890625, 0.000003337860107421875, -0.0023670196533203125, 0.06939697265625, 0.03741455078125, -0.0241546630859375, 0.0071258544921875, -0.0021266937255859375, 0.035858154296875, 0.043304443359375, -0.042388916015625, -0.0340576171875, 0.013031005859375, -0.048583984375, -0.004364013671875, 0.0085601806640625, 0.0357666015625, -0.03192138671875, -0.06005859375, -0.029876708984375, -0.01468658447265625, -0.0841064453125, -0.0955810546875, -0.030059814453125, -0.09710693359375, -0.0142822265625, 0.0149688720703125, -0.0537109375, 0.0153045654296875, 0.0548095703125, 0.01479339599609375, -0.0189971923828125, -0.050445556640625, -0.0618896484375, -0.0921630859375, -0.08026123046875, 0.01947021484375, 0.00424957275390625, 0.006237030029296875, 0.0008435249328613281, 0.038848876953125, -0.003833770751953125, -0.029510498046875, -0.01094818115234375, 0.0184478759765625, 0.00262451171875, -0.005832672119140625, 0.026763916015625, -0.04180908203125, 0.015228271484375, 0.0027484893798828125, -0.0003390312194824219, 0.024261474609375, -0.025390625, -0.018280029296875, -0.0338134765625, -0.00856781005859375, -0.0258026123046875, 0.04656982421875, 0.04998779296875, -0.01049041748046875, 0.0081634521484375, -0.03936767578125, -0.00672149658203125, -0.012786865234375, -0.041290283203125, -0.027740478515625, 0.046630859375, -0.024200439453125, -0.027313232421875, -0.01776123046875, 0.035003662109375, 0.02569580078125, 0.01318359375, -0.006160736083984375, 0.0216827392578125, 0.0113525390625, 0.0272369384765625, -0.05133056640625, 0.0285797119140625, -0.0274810791015625, 0.02325439453125, 0.0071563720703125, 0.005695343017578125, 0.01629638671875, -0.0157012939453125, -0.01995849609375, -0.023284912109375, 0.027862548828125, 0.0007557868957519531, 0.052642822265625, -0.050872802734375, -0.0239715576171875, -0.0377197265625, 0.07574462890625, -0.050933837890625, -0.007091522216796875, 0.004016876220703125, 0.0421142578125, -0.06158447265625, -0.08526611328125, -0.039947509765625, -0.0033588409423828125, -0.035736083984375, -0.00919342041015625, 0.0004432201385498047, -0.0278472900390625, -0.0058441162109375, -0.02044677734375, -0.031768798828125, -0.035552978515625, 0.026123046875, 0.03997802734375, -0.014404296875, 0.0323486328125, -0.01509857177734375, 0.019256591796875, -0.01348876953125, -0.0011806488037109375, -0.1083984375, -0.0191650390625, -0.034027099609375, 0.0714111328125, 0.01195526123046875, 0.002895355224609375, -0.0025997161865234375, 0.05926513671875, -0.0261077880859375, 0.039794921875, -0.005374908447265625, 0.025482177734375, -0.01050567626953125, 0.006168365478515625, 0.00295257568359375, -0.020355224609375, 0.02520751953125, -0.012847900390625, -0.0643310546875, -0.01318359375, -0.0179443359375, 0.0227813720703125, 0.032745361328125, -0.04876708984375, -0.0020694732666015625, -0.02618408203125, -0.027496337890625, 0.005237579345703125, -0.025787353515625, 0.00672149658203125, -0.031524658203125, -0.01371002197265625, 0.013031005859375, -0.02044677734375, 0.0188751220703125, 0.0085296630859375, 0.044281005859375, 0.0288848876953125, -0.0099945068359375, -0.01421356201171875, 0.05096435546875, 0.024200439453125, 0.01438140869140625, 0.03863525390625, 0.00485992431640625, -0.0026721954345703125, 0.006500244140625, 0.011383056640625, -0.0247802734375, 0.035552978515625, -0.00023257732391357422, -0.006710052490234375, -0.0430908203125, 0.0166473388671875, -0.02874755859375, 0.00453948974609375, 0.04827880859375, 0.006683349609375, -0.02044677734375, 0.005062103271484375, 0.040435791015625, 0.0167388916015625, -0.058349609375, -0.06658935546875, -0.029815673828125, -0.0006613731384277344, -0.0017299652099609375, 0.05780029296875, 0.050201416015625, -0.0199737548828125, 0.0390625, 0.0172882080078125, -0.021148681640625, -0.0026760101318359375, 0.034210205078125, -0.015380859375, 0.0258026123046875, -0.01904296875, -0.030242919921875, -0.0311279296875, -0.014404296875, 0.0791015625, 0.034149169921875, 0.00002014636993408203, -0.0162200927734375, -0.00812530517578125, 0.0206756591796875, -0.0115509033203125, 0.021026611328125, 0.0631103515625, 0.0058746337890625, -0.031707763671875, -0.0323486328125, 0.00997161865234375, -0.02459716796875, -0.07373046875, -0.0305938720703125, -0.0141448974609375, -0.0323486328125, -0.006893157958984375, -0.0157470703125, 0.00843048095703125, -0.0304412841796875, -0.00672149658203125, -0.002777099609375, 0.007396697998046875, -0.002803802490234375, -0.007793426513671875, 0.01303863525390625, 0.03619384765625, -0.0384521484375, 0.06793212890625, -0.0595703125, -0.04241943359375, 0.04302978515625, 0.0684814453125, 0.02569580078125, 0.0145721435546875, -0.01262664794921875, 0.01422119140625, -0.0239105224609375, 0.02313232421875, 0.004852294921875, -0.015716552734375, -0.035736083984375, -0.0135345458984375, 0.044952392578125, 0.0224456787109375, 0.005504608154296875, -0.00814056396484375, 0.056304931640625, 0.05010986328125, -0.0140838623046875, -0.0220794677734375, 0.03564453125, 0.051849365234375, 0.019317626953125, -0.0028057098388671875, -0.0290374755859375, -0.028167724609375, -0.0231475830078125, -0.00598907470703125, -0.00980377197265625, 0.01904296875, -0.019378662109375, 0.006855010986328125, -0.00543212890625, -0.014984130859375, -0.033355712890625, 0.0215911865234375, 0.01483154296875, -0.006992340087890625, -0.006450653076171875, -0.0192413330078125, -0.05535888671875, -0.034271240234375, -0.0217742919921875, 0.0036754608154296875, -0.0247650146484375, 0.020843505859375, -0.03643798828125, -0.0261077880859375, -0.0005517005920410156, 0.0419921875, -0.052947998046875, 0.060577392578125, 0.024932861328125, -0.0233306884765625, -0.031341552734375, 0.042999267578125, 0.00689697265625, 0.01401519775390625, -0.0006394386291503906, 0.00394439697265625, -0.0036029815673828125, 0.00907135009765625, 0.020782470703125, -0.061920166015625, -0.067626953125, -0.01355743408203125, -0.043731689453125, 0.06610107421875, 0.045928955078125, -0.005138397216796875, 0.033721923828125, -0.0164947509765625, 0.017425537109375, -0.0164794921875, 0.0034351348876953125, -0.037384033203125, -0.0200653076171875, 0.0482177734375, 0.01849365234375, 0.040008544921875, -0.0340576171875, -0.05322265625, 0.0273895263671875, -0.007640838623046875, 0.038116455078125, -0.009063720703125, -0.00023472309112548828, 0.0191650390625, 0.01092529296875, 0.002178192138671875, 0.0220947265625, 0.00681304931640625, 0.0211334228515625, 0.0089263916015625, -0.0289306640625, 0.0282440185546875, -0.01415252685546875, -0.01434326171875, -0.043487548828125, 0.02783203125, 0.002227783203125, 0.0018930435180664062, 0.0203399658203125, 0.056304931640625, 0.0518798828125, -0.09356689453125, 0.01175689697265625, -0.0229339599609375, -0.020263671875, 0.04046630859375, 0.01092529296875, -0.00727081298828125, -0.0134735107421875, -0.0059051513671875, 0.021942138671875, -0.0263671875, -0.002796173095703125, 0.018218994140625, 0.01364898681640625, 0.0024509429931640625, 0.031982421875, 0.001216888427734375, -0.0283660888671875, -0.04656982421875, 0.0445556640625, -0.021087646484375, -0.01409149169921875, 0.0300750732421875, -0.01800537109375, -0.01171875, -0.00965118408203125, 0.026092529296875, 0.003902435302734375, -0.0110931396484375, 0.002071380615234375, 0.03759765625, 0.019012451171875, 0.040985107421875, -0.0112152099609375, -0.00428009033203125, 0.03277587890625, -0.006145477294921875, 0.020233154296875, -0.0244140625, 0.023040771484375, -0.031463623046875, 0.0117950439453125, 0.017059326171875, 0.00665283203125, -0.05279541015625, -0.01154327392578125, -0.0024871826171875, 0.07293701171875, -0.0528564453125, 0.003459930419921875, 0.036895751953125, 0.0213775634765625, -0.024322509765625, 0.01099395751953125, 0.034088134765625, -0.029296875, -0.03704833984375, 0.01715087890625, -0.03887939453125, -0.0197906494140625, -0.028350830078125, -0.008575439453125, 0.041168212890625, -0.01025390625, -0.0240631103515625, 0.03399658203125, 0.024993896484375, -0.01983642578125, 0.010833740234375, -0.0251922607421875, 0.05023193359375, -0.0201263427734375, 0.00904083251953125, -0.053802490234375, -0.00029587745666503906, -0.009765625, 0.0222625732421875, 0.07550048828125, 0.023193359375, -0.083740234375, -0.0245819091796875, 0.040496826171875, 0.046356201171875, 0.017333984375, 0.06402587890625, -0.0071258544921875, 0.016265869140625, 0.0014162063598632812, -0.024444580078125, 0.015960693359375, -0.001438140869140625, -0.04736328125, 0.0360107421875, 0.0007481575012207031, -0.0159912109375, -0.01152801513671875, 0.034698486328125, -0.06903076171875, 0.00099945068359375, 0.0382080078125, 0.0439453125, 0.06756591796875, 0.0093536376953125, 0.043182373046875, -0.007476806640625, -0.0003719329833984375, 0.0036907196044921875, 0.05084228515625, -0.01812744140625, -0.0088653564453125, 0.005123138427734375, 0.007598876953125, 0.01322174072265625, 0.02874755859375, 0.003078460693359375, 0.056640625, -0.01334381103515625, -0.030029296875, -0.01436614990234375, 0.033660888671875, -0.042510986328125, -0.06976318359375, 0.0195770263671875, -0.00121307373046875, 0.03369140625, -0.028045654296875, 0.00885009765625, -0.00881195068359375, 0.00344085693359375, -0.0134735107421875, 0.022491455078125, -0.06842041015625, -0.042449951171875, 0.00325775146484375, 0.00585174560546875, 0.0177459716796875, -0.027740478515625, 0.0118560791015625, 0.049652099609375, -0.0107421875, 0.03546142578125, -0.031768798828125, 0.0250091552734375, 0.01511383056640625, 0.04742431640625, -0.0012826919555664062, 0.06982421875, -0.027862548828125, -0.03173828125, -0.0287628173828125, 0.01348876953125, 0.04266357421875, 0.027099609375, -0.01180267333984375, 0.026031494140625, 0.0281829833984375, 0.018768310546875, -0.0190887451171875, 0.01336669921875, 0.0517578125, 0.06640625, -0.03857421875, -0.02490234375, 0.058685302734375, -0.0230560302734375, 0.0009860992431640625, -0.01806640625, 0.037261962890625, 0.03167724609375, 0.00263214111328125, -0.025299072265625, 0.004978179931640625, 0.059783935546875, -0.025787353515625, -0.01203155517578125, 0.007419586181640625, -0.036773681640625, -0.01094818115234375, 0.0038967132568359375, -0.037109375, -0.01107025146484375, -0.038848876953125, -0.0019464492797851562, -0.0276031494140625, -0.0244293212890625, 0.0221405029296875, 0.029632568359375, -0.0198822021484375, 0.041656494140625, -0.021514892578125, -0.0076751708984375, -0.02301025390625, 0.004974365234375, 0.0152740478515625, -0.006252288818359375, -0.00780487060546875, 0.0006513595581054688, -0.052001953125, -0.036102294921875, -0.051666259765625, 0.0751953125, 0.028350830078125, 0.100830078125, -0.060302734375, 0.052520751953125, 0.072265625, -0.046722412109375, 0.05938720703125, 0.05303955078125, -0.0203399658203125, -0.02215576171875, 0.00270843505859375, -0.013580322265625, -0.01366424560546875, -0.037994384765625, 0.053070068359375, -0.057525634765625, -0.04547119140625, 0.0178070068359375, 0.032745361328125, -0.02691650390625, -0.000004291534423828125, -0.047119140625, -0.06243896484375, -0.044189453125, 0.01702880859375, -0.0171051025390625, -0.0257568359375, -0.01187896728515625, -0.020416259765625, 0.0265960693359375, -0.0236053466796875, 0.021026611328125, 0.0241241455078125, 0.0379638671875, 0.0245513916015625, -0.00853729248046875, -0.0628662109375, 0.0181732177734375, -0.00537872314453125, -0.028411865234375, 0.02667236328125, 0.0340576171875, 0.00992584228515625, -0.04681396484375, 0.042816162109375, 0.0888671875, 0.0679931640625, -0.0164337158203125, 0.04119873046875, 0.055023193359375, -0.0209197998046875, 0.0170135498046875, 0.014862060546875, -0.0380859375, -0.035888671875, -0.00263214111328125, 0.00629425048828125, -0.01342010498046875, -0.0406494140625, -0.06890869140625, -0.01554107666015625, 0.0163421630859375, -0.031280517578125, 0.016357421875, -0.004604339599609375, -0.0335693359375, -0.003719329833984375, -0.004730224609375, -0.0225372314453125, -0.01806640625, 0.00554656982421875, -0.00878143310546875, -0.038299560546875, -0.058685302734375, 0.038360595703125, -0.052459716796875, 0.004459381103515625, 0.0257568359375, -0.0141448974609375, 0.036895751953125, -0.018280029296875, 0.0230712890625, 0.03424072265625, -0.0250701904296875, -0.02459716796875, 0.022430419921875, 0.00926971435546875, 0.013763427734375, -0.044952392578125, -0.032501220703125, 0.0114288330078125, 0.01763916015625, -0.02630615234375, 0.0193023681640625, 0.0189208984375, -0.030029296875, -0.049102783203125, 0.0260162353515625, -0.0002694129943847656, -0.033203125, -0.07122802734375, 0.018798828125, 0.01397705078125, -0.02911376953125, -0.036376953125, 0.00799560546875, -0.016021728515625, 0.03936767578125, -0.0177001953125, 0.07958984375, -0.00836181640625, 0.01108551025390625, -0.0179443359375, 0.00449371337890625, -0.005096435546875, -0.00811767578125, -0.039825439453125, 0.047119140625, -0.0115203857421875, 0.036956787109375, 0.007030487060546875, -0.012603759765625, 0.019866943359375, -0.03155517578125, 0.0128631591796875, 0.01027679443359375, -0.029937744140625, -0.005184173583984375, 0.0219268798828125, 0.04815673828125, 0.011993408203125, -0.01528167724609375, 0.003971099853515625, -0.01441192626953125, -0.0276947021484375, 0.01224517822265625, 0.0220947265625, -0.044097900390625, -0.007232666015625, 0.0167083740234375, -0.0082855224609375, 0.025665283203125, 0.0236663818359375, -0.0166778564453125, 0.00449371337890625, 0.029998779296875, -0.0188140869140625, -0.0723876953125, 0.042327880859375, 0.002506256103515625, -0.01264190673828125, -0.01045989990234375, 0.0006833076477050781, -0.0191497802734375, -0.01093292236328125, 0.0087127685546875, 0.05224609375, 0.0452880859375, -0.05328369140625, 0.0146636962890625, 0.0238037109375, 0.017669677734375, -0.03497314453125, -0.03839111328125, -0.0156097412109375, 0.0158843994140625, 0.00897216796875, 0.0017337799072265625, -0.0279388427734375, 0.04754638671875, 0.01180267333984375, 0.053680419921875, -0.0143585205078125, -0.027496337890625, -0.0054931640625, 0.01898193359375, 0.0021419525146484375, -0.004150390625, 0.04443359375, -0.059356689453125, -0.00560760498046875, -0.00864410400390625, 0.01299285888671875, -0.06964111328125, 0.044586181640625, -0.0279998779296875, 0.0158538818359375, 0.030548095703125 ]
3fea4265606806a796ff14c77b394c236cdbe12f
Wordpress Stackexchange Q: Reverse chronology of post listing I"m working on modifying a theme that is based on 2010. I want to make the posts on this blog display earliest to oldest, but I don't see how to do this in the theme: I understand I need to add . "&order=ASC" to a wp_get_posts query, but I can't find any. Just index.php: get_template_part( 'loop', 'index' ); and loop.php it seems to have the posts already: while ( have_posts() ) : the_post(); Where should I look? A: You can add code below to the beginning of loop.php add_action('pre_get_posts', 'wpse_change_post_order'); function wpse_change_post_order($query){ $query->set('order','ASC'); $query->set('orderby','date'); } the oldest posts will be in the home page.
Q: Reverse chronology of post listing I"m working on modifying a theme that is based on 2010. I want to make the posts on this blog display earliest to oldest, but I don't see how to do this in the theme: I understand I need to add . "&order=ASC" to a wp_get_posts query, but I can't find any. Just index.php: get_template_part( 'loop', 'index' ); and loop.php it seems to have the posts already: while ( have_posts() ) : the_post(); Where should I look? A: You can add code below to the beginning of loop.php add_action('pre_get_posts', 'wpse_change_post_order'); function wpse_change_post_order($query){ $query->set('order','ASC'); $query->set('orderby','date'); } the oldest posts will be in the home page.
wordpress
{ "language": "en", "length": 110, "provenance": "stackexchange_00019.jsonl.gz:432111", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/98443" }
[ 0.038726806640625, 0.00885772705078125, 0.01184844970703125, 0.0305023193359375, 0.0157012939453125, -0.037261962890625, 0.09197998046875, -0.04180908203125, 0.040130615234375, 0.0009212493896484375, -0.0513916015625, -0.04254150390625, -0.023040771484375, -0.0179290771484375, -0.0285797119140625, -0.050994873046875, 0.071044921875, -0.0474853515625, 0.037353515625, 0.0160369873046875, 0.0007443428039550781, 0.05462646484375, 0.05426025390625, 0.039825439453125, 0.01534271240234375, 0.01141357421875, 0.11029052734375, -0.02386474609375, 0.052734375, -0.00794219970703125, 0.034912109375, -0.06280517578125, 0.0171051025390625, -0.016845703125, 0.0201568603515625, 0.02239990234375, -0.019256591796875, -0.0007839202880859375, 0.00910186767578125, 0.00031876564025878906, -0.0014925003051757812, 0.004596710205078125, -0.002353668212890625, -0.0205535888671875, -0.0234375, -0.0258026123046875, 0.0021915435791015625, -0.00783538818359375, -0.0018873214721679688, -0.0103759765625, 0.031219482421875, -0.038543701171875, 0.05712890625, -0.049591064453125, -0.033782958984375, -0.013946533203125, -0.0223236083984375, 0.008544921875, 0.0276031494140625, -0.056243896484375, -0.022430419921875, -0.00775146484375, 0.042724609375, 0.0362548828125, -0.024658203125, 0.006450653076171875, 0.07269287109375, 0.002166748046875, -0.06903076171875, -0.041717529296875, 0.0455322265625, -0.004177093505859375, -0.0248565673828125, -0.02471923828125, 0.0298004150390625, 0.01168060302734375, -0.037384033203125, -0.0352783203125, 0.0299072265625, 0.040924072265625, -0.0088348388671875, 0.004222869873046875, -0.0418701171875, -0.07568359375, 0.034820556640625, -0.0498046875, -0.01666259765625, 0.004436492919921875, -0.06671142578125, -0.02740478515625, -0.045654296875, -0.007045745849609375, -0.049896240234375, -0.0233917236328125, -0.034698486328125, 0.0201568603515625, 0.0204315185546875, 0.051055908203125, -0.040771484375, -0.0169677734375, -0.04937744140625, -0.002391815185546875, -0.0501708984375, -0.0039043426513671875, -0.01177978515625, -0.0216064453125, 0.01251220703125, 0.033599853515625, 0.0423583984375, 0.048187255859375, -0.010467529296875, 0.06982421875, 0.006999969482421875, -0.026947021484375, -0.0205230712890625, 0.01244354248046875, -0.0135498046875, 0.00751495361328125, 0.00931549072265625, -0.00116729736328125, 0.01425933837890625, 0.02490234375, 0.002674102783203125, -0.05206298828125, -0.025177001953125, -0.04010009765625, -0.040435791015625, -0.022918701171875, 0.012542724609375, 0.045654296875, -0.0244293212890625, -0.00928497314453125, 0.0175323486328125, 0.008697509765625, -0.007785797119140625, -0.0215301513671875, 0.026824951171875, -0.034423828125, -0.0300445556640625, 0.0501708984375, -0.02850341796875, -0.043182373046875, -0.006011962890625, -0.025299072265625, -0.00695037841796875, -0.002361297607421875, 0.0039825439453125, 0.031494140625, 0.006641387939453125, -0.02984619140625, 0.0245819091796875, -0.021636962890625, 0.033477783203125, 0.01082611083984375, -0.02276611328125, -0.002483367919921875, 0.0005650520324707031, -0.016387939453125, -0.01123809814453125, -0.0176544189453125, 0.005290985107421875, -0.020843505859375, -0.0014171600341796875, -0.034576416015625, -0.05615234375, 0.032318115234375, -0.0215606689453125, -0.01526641845703125, 0.028228759765625, -0.00839996337890625, 0.002223968505859375, -0.0367431640625, 0.0230865478515625, 0.00847625732421875, -0.0105743408203125, 0.04254150390625, -0.03985595703125, -0.0161895751953125, 0.01055908203125, 0.044525146484375, 0.0034313201904296875, -0.044189453125, -0.0305023193359375, 0.037139892578125, -0.0439453125, 0.017730712890625, -0.01444244384765625, -0.0009698867797851562, 0.02874755859375, 0.0009918212890625, 0.007293701171875, 0.02264404296875, -0.033935546875, 0.026519775390625, -0.01035308837890625, -0.0200347900390625, -0.0095062255859375, 0.00024116039276123047, -0.005756378173828125, -0.0215301513671875, -0.01120758056640625, 0.01303863525390625, -0.03729248046875, 0.02569580078125, -0.036773681640625, -0.0194854736328125, -0.00279998779296875, 0.017791748046875, 0.04852294921875, 0.033477783203125, 0.0024890899658203125, 0.0298004150390625, -0.00804901123046875, -0.04852294921875, -0.06341552734375, 0.005977630615234375, -0.0304107666015625, 0.028411865234375, -0.0169219970703125, 0.004947662353515625, -0.036468505859375, -0.043853759765625, -0.036468505859375, 0.01556396484375, 0.060546875, -0.00577545166015625, -0.0295867919921875, -0.0288848876953125, 0.0243988037109375, 0.009002685546875, -0.05877685546875, 0.029296875, 0.0128021240234375, -0.02130126953125, -0.060699462890625, -0.00785064697265625, -0.01102447509765625, -0.024322509765625, 0.004520416259765625, 0.049835205078125, 0.035980224609375, 0.01294708251953125, 0.0277557373046875, 0.0560302734375, 0.0223846435546875, -0.0391845703125, 0.01428985595703125, 0.0201568603515625, 0.00225830078125, 0.039947509765625, 0.01690673828125, 0.03228759765625, 0.004703521728515625, -0.0034618377685546875, 0.02001953125, 0.0208587646484375, 0.0180511474609375, 0.0209808349609375, -0.01244354248046875, -0.0017032623291015625, 0.006175994873046875, -0.044281005859375, -0.060699462890625, 0.0012359619140625, 0.04144287109375, -0.0218505859375, 0.035614013671875, 0.00942230224609375, -0.033203125, -0.004726409912109375, 0.022064208984375, 0.0148773193359375, 0.01319122314453125, 0.004058837890625, -0.08795166015625, 0.022430419921875, -0.022796630859375, 0.0245513916015625, -0.009490966796875, -0.02825927734375, 0.004131317138671875, 0.037200927734375, 0.0242767333984375, -0.01324462890625, -0.0274505615234375, -0.062347412109375, 0.0279998779296875, 0.03594970703125, -0.0015897750854492188, -0.0226593017578125, 0.01453399658203125, -0.009765625, -0.051727294921875, 0.037200927734375, -0.0072784423828125, -0.0294342041015625, -0.0743408203125, -0.0595703125, 0.0306854248046875, -0.0374755859375, 0.028472900390625, 0.07440185546875, 0.01904296875, 0.0106353759765625, -0.0016803741455078125, -0.0167083740234375, 0.0037784576416015625, 0.0119781494140625, -0.003284454345703125, -0.0010175704956054688, -0.0518798828125, 0.0184783935546875, 0.058563232421875, 0.05419921875, 0.0570068359375, -0.018585205078125, 0.021575927734375, 0.0623779296875, -0.054168701171875, -0.088623046875, -0.0261077880859375, -0.09033203125, -0.0268096923828125, -0.0015039443969726562, -0.0447998046875, 0.0168609619140625, 0.003162384033203125, 0.0166473388671875, 0.03253173828125, 0.0032978057861328125, -0.0379638671875, -0.02203369140625, -0.0648193359375, -0.037872314453125, -0.004077911376953125, 0.0218048095703125, -0.0084991455078125, 0.1072998046875, 0.00989532470703125, -0.0760498046875, -0.04443359375, 0.0274658203125, -0.026123046875, 0.0004150867462158203, 0.0277557373046875, -0.00391387939453125, -0.017791748046875, 0.016815185546875, 0.004093170166015625, 0.02880859375, -0.040924072265625, -0.003040313720703125, -0.029632568359375, -0.01502227783203125, -0.0102081298828125, 0.03912353515625, 0.045989990234375, 0.01204681396484375, 0.04052734375, -0.0169677734375, -0.0236968994140625, -0.00939178466796875, -0.03948974609375, -0.00862884521484375, 0.011627197265625, 0.016571044921875, -0.027069091796875, 0.00904083251953125, -0.01032257080078125, -0.00896453857421875, 0.0160675048828125, -0.02008056640625, 0.0152740478515625, 0.00386810302734375, 0.0049285888671875, -0.01206207275390625, 0.0194091796875, -0.01143646240234375, -0.01177978515625, 0.004589080810546875, -0.006053924560546875, -0.00687408447265625, 0.01204681396484375, -0.0079193115234375, -0.035430908203125, 0.0247955322265625, -0.028076171875, 0.005401611328125, -0.0273895263671875, -0.0094451904296875, -0.006107330322265625, 0.06671142578125, -0.041168212890625, -0.0219879150390625, 0.0108795166015625, 0.01983642578125, -0.00936126708984375, -0.002788543701171875, -0.047027587890625, -0.027191162109375, -0.07794189453125, 0.0172882080078125, -0.009002685546875, -0.00726318359375, -0.035736083984375, 0.02984619140625, -0.040557861328125, -0.040740966796875, 0.046295166015625, -0.006267547607421875, -0.019256591796875, 0.036163330078125, -0.028656005859375, -0.0006346702575683594, -0.04010009765625, 0.0270538330078125, -0.09710693359375, -0.031494140625, -0.0236053466796875, 0.06903076171875, 0.01328277587890625, -0.033172607421875, -0.02691650390625, 0.047119140625, 0.008056640625, -0.004604339599609375, 0.03094482421875, 0.025482177734375, -0.011199951171875, -0.007778167724609375, 0.00269317626953125, -0.04168701171875, -0.0190582275390625, -0.042388916015625, 0.020294189453125, 0.024871826171875, -0.0369873046875, 0.0247344970703125, -0.048858642578125, 0.013824462890625, -0.0202789306640625, -0.0264739990234375, -0.01050567626953125, 0.067138671875, 0.002529144287109375, 0.011016845703125, -0.07427978515625, -0.065673828125, 0.01279449462890625, 0.009765625, 0.005828857421875, 0.01125335693359375, 0.056549072265625, 0.012451171875, -0.01264190673828125, -0.014129638671875, 0.0211181640625, 0.00035572052001953125, 0.014312744140625, 0.052886962890625, 0.0017328262329101562, -0.0011835098266601562, 0.040771484375, -0.0281829833984375, -0.005367279052734375, -0.0060272216796875, 0.01280975341796875, 0.00972747802734375, -0.00821685791015625, 0.00962066650390625, 0.007678985595703125, 0.0213470458984375, 0.0287322998046875, 0.002925872802734375, -0.037322998046875, 0.0088958740234375, 0.06207275390625, -0.0175628662109375, 0.016998291015625, -0.048065185546875, -0.0186920166015625, 0.00521087646484375, 0.006591796875, 0.00313568115234375, 0.01059722900390625, 0.01168060302734375, -0.025665283203125, 0.01302337646484375, 0.0015630722045898438, -0.056640625, -0.01004791259765625, -0.05731201171875, 0.01898193359375, -0.058197021484375, -0.0362548828125, 0.00424957275390625, -0.006439208984375, 0.0233154296875, -0.01197052001953125, -0.07183837890625, 0.004848480224609375, -0.0031414031982421875, 0.024139404296875, 0.023284912109375, -0.0141448974609375, 0.03369140625, 0.029754638671875, -0.01027679443359375, -0.018218994140625, -0.03985595703125, 0.030609130859375, -0.037384033203125, 0.029022216796875, 0.0328369140625, -0.01313018798828125, 0.0267791748046875, 0.028656005859375, 0.00044274330139160156, 0.019775390625, -0.0176544189453125, 0.0005545616149902344, 0.02972412109375, 0.0005340576171875, 0.0302886962890625, 0.009368896484375, -0.0296630859375, 0.00626373291015625, 0.0246124267578125, -0.0265655517578125, -0.00664520263671875, 0.0050048828125, 0.01305389404296875, -0.0350341796875, -0.0196990966796875, 0.033843994140625, 0.00800323486328125, -0.0181884765625, 0.00981903076171875, 0.03643798828125, 0.0306396484375, -0.00946044921875, -0.01329803466796875, 0.01020050048828125, 0.04022216796875, 0.0072784423828125, 0.011260986328125, -0.01200103759765625, 0.032867431640625, -0.0235137939453125, 0.0218658447265625, -0.006744384765625, -0.02630615234375, -0.0253753662109375, -0.00814056396484375, -0.006702423095703125, 0.037139892578125, -0.01605224609375, 0.00006574392318725586, -0.0361328125, 0.035125732421875, -0.0160980224609375, 0.062042236328125, -0.023345947265625, -0.051239013671875, -0.021728515625, 0.0286407470703125, 0.033294677734375, 0.031585693359375, -0.053924560546875, 0.0250244140625, -0.07061767578125, -0.0265045166015625, -0.0626220703125, -0.0406494140625, -0.077392578125, -0.005615234375, 0.0029735565185546875, 0.0325927734375, -0.01544189453125, -0.0526123046875, -0.004238128662109375, -0.0286407470703125, 0.003231048583984375, 0.005748748779296875, 0.0019521713256835938, 0.1375732421875, -0.0290069580078125, 0.06964111328125, 0.041595458984375, 0.0770263671875, -0.04876708984375, -0.019989013671875, 0.01535797119140625, -0.041259765625, -0.03021240234375, 0.00304412841796875, -0.0313720703125, 0.00159454345703125, 0.0255126953125, -0.006481170654296875, 0.0256805419921875, -0.003345489501953125, 0.018218994140625, -0.0130615234375, -0.023468017578125, -0.0372314453125, -0.00897979736328125, 0.042327880859375, 0.005023956298828125, 0.004611968994140625, -0.029815673828125, -0.01080322265625, 0.002349853515625, -0.004657745361328125, -0.00809478759765625, -0.00981903076171875, -0.03314208984375, 0.01763916015625, 0.03179931640625, 0.04803466796875, 0.05682373046875, -0.0175323486328125, 0.050994873046875, 0.0048980712890625, -0.01953125, 0.0029201507568359375, -0.004638671875, 0.03924560546875, -0.00997161865234375, -0.0014791488647460938, 0.021484375, -0.032012939453125, -0.0218658447265625, -0.0147247314453125, -0.0141143798828125, 0.00864410400390625, -0.00490570068359375, -0.0198211669921875, -0.013336181640625, 0.02801513671875, -0.005584716796875, 0.01751708984375, 0.0106201171875, 0.07061767578125, -0.04833984375, 0.00197601318359375, 0.02410888671875, -0.050323486328125, -0.0233917236328125, -0.0173492431640625, 0.0063934326171875, 0.01007843017578125, -0.03070068359375, 0.03546142578125, 0.0012083053588867188, 0.02996826171875, -0.03662109375, 0.0003609657287597656, 0.005146026611328125, -0.01226806640625, -0.07513427734375, 0.013580322265625, -0.0036907196044921875, 0.005695343017578125, 0.0307769775390625, -0.0188751220703125, 0.0071258544921875, 0.03863525390625, -0.013427734375, 0.01763916015625, 0.007442474365234375, -0.0291595458984375, 0.0170135498046875, -0.0293121337890625, 0.0302734375, 0.0162200927734375, -0.01495361328125, 0.0241546630859375, 0.03814697265625, -0.06390380859375, -0.01461029052734375, -0.0435791015625, 0.0860595703125, -0.023956298828125, -0.0268402099609375, 0.00909423828125, -0.00144195556640625, -0.0177154541015625, -0.0200653076171875, 0.0340576171875, -0.01824951171875, 0.019805908203125, 0.0099029541015625, 0.021087646484375, -0.01259613037109375, -0.0118560791015625, -0.05145263671875, 0.07562255859375, -0.04071044921875, 0.033416748046875, 0.005733489990234375, 0.02301025390625, 0.01187896728515625, 0.033599853515625, -0.0450439453125, 0.05694580078125, -0.024810791015625, 0.061859130859375, -0.0904541015625, -0.01114654541015625, 0.00011986494064331055, 0.0428466796875, 0.0264434814453125, 0.0006742477416992188, -0.03900146484375, -0.004123687744140625, 0.0548095703125, 0.061126708984375, 0.026397705078125, 0.04119873046875, 0.0035648345947265625, 0.01580810546875, -0.01239776611328125, -0.0069427490234375, 0.032958984375, -0.023040771484375, -0.0511474609375, 0.041748046875, 0.033111572265625, 0.03338623046875, -0.00370025634765625, -0.034149169921875, -0.041473388671875, -0.0019130706787109375, 0.04339599609375, -0.01387786865234375, 0.00262451171875, 0.0556640625, 0.036590576171875, -0.004638671875, -0.036529541015625, -0.01375579833984375, 0.0394287109375, 0.01019287109375, 0.0220489501953125, 0.043243408203125, 0.02508544921875, -0.00284576416015625, -0.022857666015625, 0.01235198974609375, -0.0105438232421875, -0.04107666015625, 0.03497314453125, 0.059844970703125, 0.043426513671875, -0.0036144256591796875, -0.0118865966796875, 0.047454833984375, 0.060791015625, -0.0284881591796875, 0.01483917236328125, 0.0222015380859375, 0.005046844482421875, -0.00799560546875, -0.050628662109375, -0.0178375244140625, -0.03619384765625, -0.0213470458984375, -0.0215301513671875, -0.0182647705078125, 0.0033931732177734375, 0.05322265625, -0.00482940673828125, -0.0008931159973144531, -0.0158233642578125, -0.05389404296875, -0.0214691162109375, 0.020233154296875, -0.001983642578125, 0.0205841064453125, -0.00653076171875, 0.050018310546875, -0.00910186767578125, 0.0096282958984375, -0.006717681884765625, 0.0455322265625, 0.00995635986328125, -0.0005269050598144531, -0.0168304443359375, -0.00027298927307128906, -0.02447509765625, 0.0203857421875, 0.021820068359375, 0.01096343994140625, 0.05322265625, 0.050750732421875, -0.0584716796875, -0.017303466796875, 0.043548583984375, -0.0239105224609375, -0.0279693603515625, -0.02642822265625, 0.0031642913818359375, 0.031951904296875, -0.0019474029541015625, 0.020355224609375, 0.01873779296875, 0.01922607421875, -0.016265869140625, 0.03265380859375, -0.0021953582763671875, -0.01092529296875, 0.0277862548828125, 0.012969970703125, 0.0284576416015625, 0.001384735107421875, -0.03314208984375, -0.0037994384765625, -0.045867919921875, -0.0013647079467773438, 0.01371002197265625, 0.0276031494140625, -0.003208160400390625, 0.023284912109375, 0.0094146728515625, -0.0474853515625, 0.0258941650390625, 0.0006418228149414062, 0.0291595458984375, 0.0159149169921875, -0.010223388671875, 0.0034732818603515625, -0.072509765625, -0.047454833984375, -0.0272979736328125, 0.017120361328125, -0.00020444393157958984, 0.01186370849609375, 0.035308837890625, 0.02935791015625, 0.01384735107421875, 0.007781982421875, -0.0254974365234375, -0.00493621826171875, 0.0338134765625, -0.03826904296875, -0.00609588623046875, 0.0057525634765625, -0.0655517578125, -0.033294677734375, 0.073974609375, -0.040191650390625, 0.0211944580078125, -0.006397247314453125, 0.0113372802734375, -0.08172607421875, -0.006961822509765625, -0.023895263671875, 0.005527496337890625, 0.0289154052734375, -0.0079498291015625, 0.0194091796875, -0.01544189453125, -0.0026340484619140625, 0.03192138671875, 0.03033447265625, -0.020477294921875, 0.0406494140625, -0.040191650390625, 0.08990478515625, 0.041015625, -0.0122222900390625, 0.021392822265625, 0.01493072509765625, -0.014495849609375, 0.006740570068359375, 0.03131103515625, -0.021728515625, 0.00959014892578125, -0.01248931884765625, -0.01052093505859375, -0.00394439697265625, 0.042266845703125, 0.0174102783203125, 0.0021514892578125, -0.0068511962890625, -0.0044403076171875, -0.042816162109375, -0.0203857421875, -0.0299835205078125, -0.0117645263671875, -0.0015954971313476562, 0.0289459228515625, -0.00336456298828125, -0.005512237548828125, -0.05047607421875, -0.0230560302734375, 0.0009617805480957031, -0.01169586181640625, 0.0026569366455078125, -0.004604339599609375, -0.01044464111328125, -0.0208892822265625, -0.0242919921875, -0.013153076171875, 0.008697509765625, 0.025543212890625, -0.02239990234375, -0.03369140625, -0.0367431640625, 0.01554107666015625, -0.037841796875, -0.03546142578125, -0.015594482421875, 0.0271453857421875, -0.004413604736328125, -0.0399169921875, -0.050262451171875, 0.002685546875, -0.015106201171875, 0.004550933837890625, 0.03741455078125, 0.0157470703125, -0.0770263671875, -0.08416748046875, 0.0284881591796875, -0.034942626953125, 0.00606536865234375, -0.00861358642578125, -0.00902557373046875, 0.0011415481567382812, -0.0340576171875, -0.03839111328125, 0.06243896484375, -0.00777435302734375, -0.01031494140625, -0.036773681640625, 0.0060882568359375, -0.01515960693359375, 0.0166778564453125, 0.0216522216796875, -0.0491943359375, -0.0035572052001953125, 0.02880859375, 0.0007219314575195312, 0.041015625, -0.0022373199462890625, 0.021759033203125, -0.05169677734375, 0.01308441162109375, -0.019195556640625, 0.00835418701171875, 0.00836181640625, -0.017669677734375, 0.035064697265625, 0.0282135009765625, -0.0284576416015625, 0.0023212432861328125, 0.0126190185546875, -0.01788330078125, 0.012054443359375, -0.0292510986328125, -0.061676025390625, -0.041015625, 0.056640625, 0.062255859375, 0.034637451171875, -0.0279998779296875, 0.005222320556640625, -0.00920867919921875, -0.00865936279296875, -0.01236724853515625, 0.00876617431640625, -0.052398681640625, -0.0284881591796875, 0.0050048828125, -0.01514434814453125, 0.022796630859375, -0.020660400390625, -0.030975341796875, -0.006259918212890625, -0.041351318359375, -0.005947113037109375, -0.0550537109375, 0.03863525390625, 0.0260009765625, -0.037872314453125, -0.01378631591796875, -0.025360107421875, -0.00685882568359375, -0.005462646484375, -0.051849365234375, -0.01273345947265625, 0.0158843994140625, 0.03240966796875, -0.00868988037109375, 0.034454345703125, -0.0174407958984375, 0.045623779296875, 0.0162506103515625, 0.0065460205078125, -0.010009765625, 0.01393890380859375, -0.0192108154296875, -0.00389862060546875, -0.003337860107421875, -0.032379150390625, 0.05596923828125, -0.012451171875, 0.072021484375, 0.0013227462768554688, 0.0199737548828125, -0.0196685791015625, 0.0103912353515625, 0.0223846435546875, -0.0230255126953125, 0.01116943359375, 0.0205841064453125, -0.0238800048828125, 0.0021114349365234375, -0.00782012939453125, -0.012359619140625, -0.0110931396484375, -0.0175628662109375 ]
6d980170e4e5f7ade28974e8250c3afefdbfbfb7
Wordpress Stackexchange Q: shortcode for logo image I have the following code for showing images using the shortcode image but the shortcode is [image name=logo] to load an image from /uploads/ directory called logo.png; changing the name I can load different images just like dog.png bullet.png etc. writting after name= the name file. So my question is how to make the function to write on shortcode [logo] and I can get the image logo.png function image_shortcode($atts, $content = null) { extract( shortcode_atts( array( 'name' => '', 'align' => 'right', 'ext' => 'png', 'path' => '/wp-content/uploads/', 'url' => '' ), $atts ) ); $file=ABSPATH."$path$name.$ext"; if (file_exists($file)) { $size=getimagesize($file); if ($size!==false) $size=$size[3]; $output = "<img src='".get_option('siteurl')."$path$name.$ext' alt='$name' $size align='$align' class='align$align' />"; if ($url) $output = "<a href='$url' title='$name'>".$output.'</a>'; return $output; } else { trigger_error("'$path$name.$ext' image not found", E_USER_WARNING); return ''; } } add_shortcode('image','image_shortcode'); A: Change 'name' => '', to 'name' => 'logo', Then when there is no name field passed to the shortcode, it will default to logo, which will load logo.png.
Q: shortcode for logo image I have the following code for showing images using the shortcode image but the shortcode is [image name=logo] to load an image from /uploads/ directory called logo.png; changing the name I can load different images just like dog.png bullet.png etc. writting after name= the name file. So my question is how to make the function to write on shortcode [logo] and I can get the image logo.png function image_shortcode($atts, $content = null) { extract( shortcode_atts( array( 'name' => '', 'align' => 'right', 'ext' => 'png', 'path' => '/wp-content/uploads/', 'url' => '' ), $atts ) ); $file=ABSPATH."$path$name.$ext"; if (file_exists($file)) { $size=getimagesize($file); if ($size!==false) $size=$size[3]; $output = "<img src='".get_option('siteurl')."$path$name.$ext' alt='$name' $size align='$align' class='align$align' />"; if ($url) $output = "<a href='$url' title='$name'>".$output.'</a>'; return $output; } else { trigger_error("'$path$name.$ext' image not found", E_USER_WARNING); return ''; } } add_shortcode('image','image_shortcode'); A: Change 'name' => '', to 'name' => 'logo', Then when there is no name field passed to the shortcode, it will default to logo, which will load logo.png.
wordpress
{ "language": "en", "length": 168, "provenance": "stackexchange_00019.jsonl.gz:432140", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/98520" }
[ 0.025421142578125, -0.01427459716796875, 0.0032138824462890625, -0.0042572021484375, -0.0104217529296875, 0.00016808509826660156, 0.0182342529296875, -0.027801513671875, 0.007259368896484375, -0.0009112358093261719, -0.034759521484375, 0.00080108642578125, -0.046783447265625, -0.0172119140625, -0.0225830078125, -0.040924072265625, 0.0489501953125, -0.01641845703125, 0.0256195068359375, 0.00679779052734375, -0.018310546875, 0.046875, 0.00269317626953125, 0.038482666015625, -0.005985260009765625, -0.0198211669921875, 0.09521484375, -0.0129241943359375, -0.01320648193359375, -0.023712158203125, 0.01409149169921875, 0.00948333740234375, 0.03204345703125, 0.048797607421875, -0.048309326171875, 0.09228515625, -0.0038852691650390625, 0.0191497802734375, 0.0176849365234375, 0.01959228515625, 0.0252227783203125, -0.007122039794921875, 0.06195068359375, -0.0149383544921875, 0.0255126953125, -0.025360107421875, 0.0210723876953125, -0.06463623046875, 0.010467529296875, 0.03643798828125, 0.04693603515625, 0.048187255859375, 0.033172607421875, 0.02532958984375, -0.0035343170166015625, 0.0209503173828125, -0.0565185546875, 0.0309600830078125, 0.020751953125, 0.0041351318359375, -0.02874755859375, -0.03082275390625, 0.0304107666015625, -0.0038051605224609375, -0.00554656982421875, 0.015838623046875, 0.0084991455078125, 0.00494384765625, -0.007160186767578125, 0.0157012939453125, 0.0253448486328125, -0.0214080810546875, -0.02288818359375, -0.0229949951171875, -0.0257415771484375, 0.040863037109375, -0.00853729248046875, 0.007083892822265625, 0.02825927734375, -0.0095977783203125, 0.01418304443359375, -0.0276336669921875, -0.059356689453125, 0.0216217041015625, 0.0185089111328125, 0.044464111328125, 0.0014219284057617188, -0.032623291015625, 0.00624847412109375, 0.01128387451171875, -0.00638580322265625, 0.046356201171875, -0.009552001953125, 0.033355712890625, -0.01708984375, -0.00687408447265625, -0.007778167724609375, 0.0296630859375, -0.0152130126953125, 0.0274658203125, -0.038116455078125, -0.024810791015625, 0.0263214111328125, -0.05126953125, 0.002788543701171875, 0.00093841552734375, -0.01082611083984375, -0.03997802734375, 0.016876220703125, 0.0245361328125, -0.0171051025390625, -0.00112152099609375, -0.0535888671875, -0.003459930419921875, -0.041351318359375, 0.044403076171875, -0.076171875, -0.006591796875, -0.0195159912109375, 0.0357666015625, 0.0168914794921875, 0.0394287109375, 0.035400390625, -0.049407958984375, -0.0294952392578125, -0.01325225830078125, -0.01277923583984375, -0.07318115234375, 0.050506591796875, -0.039398193359375, -0.052032470703125, 0.0205535888671875, 0.0794677734375, 0.022552490234375, 0.039093017578125, 0.0013570785522460938, -0.0239410400390625, -0.0093536376953125, -0.01123046875, 0.01104736328125, -0.00377655029296875, -0.00620269775390625, 0.0309295654296875, -0.00452423095703125, 0.00859832763671875, 0.00870513916015625, 0.004486083984375, 0.032684326171875, 0.0059967041015625, -0.07696533203125, 0.061370849609375, -0.02972412109375, 0.022247314453125, 0.0038299560546875, 0.0110015869140625, -0.006641387939453125, 0.043182373046875, -0.045989990234375, -0.0049591064453125, -0.03302001953125, 0.0127410888671875, 0.01067352294921875, 0.0194091796875, -0.039886474609375, -0.03564453125, -0.037567138671875, -0.0540771484375, -0.0008139610290527344, 0.0185394287109375, 0.0382080078125, -0.00811767578125, -0.00372314453125, -0.042999267578125, 0.01324462890625, 0.01100921630859375, 0.00498199462890625, -0.023895263671875, 0.0170135498046875, 0.033599853515625, -0.0075531005859375, -0.007152557373046875, -0.01959228515625, 0.044586181640625, 0.01235198974609375, -0.025115966796875, 0.0018701553344726562, 0.01386260986328125, 0.0294036865234375, 0.002445220947265625, 0.01312255859375, 0.023712158203125, 0.01546478271484375, -0.042877197265625, 0.0146636962890625, -0.026092529296875, -0.006473541259765625, -0.0164337158203125, -0.0009822845458984375, -0.0165557861328125, 0.02301025390625, -0.003452301025390625, -0.00566864013671875, -0.019500732421875, -0.027923583984375, -0.051727294921875, -0.0176239013671875, -0.0220794677734375, 0.028167724609375, -0.023101806640625, -0.003173828125, 0.018768310546875, -0.0142364501953125, -0.029693603515625, 0.01001739501953125, 0.006927490234375, 0.0416259765625, -0.03839111328125, 0.0140838623046875, -0.0034542083740234375, 0.053466796875, -0.0159454345703125, -0.01055145263671875, -0.021453857421875, -0.00617218017578125, 0.0313720703125, -0.0005087852478027344, -0.02642822265625, -0.029510498046875, -0.01074981689453125, -0.004283905029296875, -0.041778564453125, 0.060760498046875, -0.0173492431640625, 0.007167816162109375, -0.0260162353515625, -0.01763916015625, 0.0011501312255859375, -0.0263824462890625, 0.02606201171875, 0.034271240234375, 0.053070068359375, 0.000606536865234375, 0.002834320068359375, -0.028656005859375, 0.1009521484375, 0.049896240234375, 0.03985595703125, -0.051483154296875, -0.00374603271484375, -0.00882720947265625, 0.03070068359375, -0.0006761550903320312, 0.00867462158203125, -0.0859375, 0.0290374755859375, 0.0293426513671875, -0.0408935546875, -0.0197906494140625, 0.012359619140625, -0.01094818115234375, 0.0150604248046875, 0.0043487548828125, 0.0132293701171875, -0.0114593505859375, 0.01084136962890625, 0.052764892578125, 0.01172637939453125, 0.00934600830078125, -0.09320068359375, 0.076171875, 0.02996826171875, -0.0096282958984375, -0.0214996337890625, 0.032562255859375, 0.080322265625, -0.02728271484375, -0.01409912109375, -0.026519775390625, 0.0047149658203125, 0.0019435882568359375, -0.036041259765625, -0.01399993896484375, -0.0070343017578125, 0.002521514892578125, -0.013336181640625, -0.0089874267578125, 0.04718017578125, 0.022186279296875, -0.0098876953125, 0.00348663330078125, 0.00998687744140625, 0.04931640625, -0.0081939697265625, 0.02850341796875, 0.042327880859375, -0.0053863525390625, 0.031829833984375, -0.0396728515625, 0.04229736328125, -0.039764404296875, 0.02410888671875, 0.06683349609375, -0.0287933349609375, 0.0352783203125, -0.005321502685546875, 0.00589752197265625, -0.0308685302734375, -0.00783538818359375, -0.01163482666015625, -0.0121917724609375, -0.03240966796875, 0.04461669921875, 0.01499176025390625, 0.051849365234375, -0.0258636474609375, -0.04150390625, -0.0080413818359375, 0.03057861328125, -0.05242919921875, -0.06390380859375, -0.030029296875, -0.0394287109375, 0.0211639404296875, 0.0019140243530273438, 0.0003311634063720703, -0.0096588134765625, 0.0031719207763671875, 0.0207672119140625, -0.0118865966796875, -0.028167724609375, -0.004329681396484375, -0.047698974609375, -0.04656982421875, -0.00937652587890625, 0.01029205322265625, 0.004482269287109375, 0.005706787109375, -0.00063323974609375, 0.00951385498046875, -0.000579833984375, 0.029266357421875, 0.061065673828125, -0.0060272216796875, -0.003261566162109375, 0.003200531005859375, -0.04998779296875, -0.05438232421875, -0.0240936279296875, 0.0689697265625, 0.00897216796875, -0.00405120849609375, 0.0362548828125, -0.01568603515625, -0.016387939453125, 0.00704193115234375, 0.039520263671875, 0.0227508544921875, -0.0286102294921875, 0.04119873046875, -0.0439453125, -0.0274810791015625, -0.0458984375, -0.0625, 0.035247802734375, 0.04412841796875, 0.0093841552734375, -0.024505615234375, 0.03289794921875, 0.01174163818359375, 0.037384033203125, 0.0121307373046875, -0.0248260498046875, 0.0191497802734375, -0.0121612548828125, -0.0007963180541992188, -0.02423095703125, 0.05682373046875, 0.00733184814453125, -0.0262908935546875, 0.010284423828125, 0.048583984375, 0.0023746490478515625, -0.0111083984375, -0.052215576171875, -0.019989013671875, 0.05548095703125, -0.02203369140625, 0.021240234375, -0.053924560546875, -0.021209716796875, -0.0528564453125, 0.04449462890625, -0.042816162109375, -0.0205841064453125, -0.0233612060546875, 0.0007114410400390625, -0.0214080810546875, 0.01119232177734375, -0.038330078125, 0.007701873779296875, -0.09326171875, 0.002780914306640625, -0.005077362060546875, -0.0411376953125, -0.007659912109375, -0.02239990234375, -0.06683349609375, -0.061248779296875, 0.0098876953125, 0.0196533203125, 0.02337646484375, 0.0170745849609375, 0.017608642578125, 0.01629638671875, -0.004726409912109375, -0.0252685546875, -0.07135009765625, -0.01059722900390625, 0.0031223297119140625, 0.02545166015625, -0.0147247314453125, -0.02117919921875, -0.05133056640625, 0.0219879150390625, -0.023406982421875, -0.0164337158203125, -0.00504302978515625, 0.01280975341796875, -0.01258087158203125, 0.01326751708984375, -0.0301055908203125, -0.002300262451171875, 0.0129241943359375, 0.0002294778823852539, -0.0684814453125, -0.012115478515625, -0.0269927978515625, 0.0091094970703125, 0.0276031494140625, -0.055908203125, -0.0176849365234375, -0.018341064453125, 0.040191650390625, 0.0472412109375, -0.01468658447265625, 0.02166748046875, -0.03851318359375, -0.01192474365234375, 0.040924072265625, -0.01806640625, -0.0227813720703125, 0.0015211105346679688, 0.053497314453125, 0.01129913330078125, -0.00998687744140625, -0.0399169921875, 0.035491943359375, 0.0450439453125, -0.003482818603515625, 0.01045989990234375, 0.00438690185546875, -0.02734375, 0.0043487548828125, 0.01313018798828125, 0.0280303955078125, 0.0065460205078125, 0.022216796875, -0.005245208740234375, -0.02606201171875, 0.020721435546875, 0.006748199462890625, -0.044464111328125, 0.00968170166015625, -0.00214385986328125, -0.0014696121215820312, -0.005092620849609375, 0.021942138671875, 0.00127410888671875, 0.0037078857421875, -0.0090179443359375, -0.0253143310546875, -0.00650787353515625, 0.0816650390625, 0.0253448486328125, 0.0243072509765625, 0.006378173828125, 0.0005393028259277344, 0.0143280029296875, 0.0126800537109375, 0.0155029296875, 0.019927978515625, -0.038909912109375, 0.045074462890625, -0.022186279296875, -0.01445770263671875, 0.020751953125, 0.006134033203125, 0.02423095703125, 0.02984619140625, -0.0013256072998046875, -0.01519012451171875, -0.017822265625, -0.002094268798828125, -0.03253173828125, 0.0191192626953125, 0.0141754150390625, -0.00638580322265625, 0.03070068359375, 0.00513458251953125, -0.031402587890625, 0.0276641845703125, -0.01068115234375, -0.01146697998046875, 0.0055389404296875, -0.01142120361328125, 0.0113067626953125, 0.041656494140625, -0.049163818359375, 0.039794921875, 0.01184844970703125, -0.0205230712890625, 0.03118896484375, 0.007320404052734375, 0.033172607421875, 0.0015344619750976562, -0.0220184326171875, 0.0034503936767578125, 0.0272369384765625, -0.0285186767578125, 0.0234375, -0.00891876220703125, 0.059234619140625, -0.052886962890625, -0.0699462890625, 0.052215576171875, -0.07745361328125, -0.0221710205078125, 0.0264892578125, -0.0245208740234375, -0.031951904296875, -0.059814453125, -0.0118865966796875, 0.06866455078125, 0.0007185935974121094, -0.043212890625, 0.00595855712890625, -0.0418701171875, 0.01512908935546875, -0.0105438232421875, -0.044586181640625, 0.022247314453125, 0.0218505859375, -0.0016584396362304688, -0.0157470703125, -0.042205810546875, 0.036163330078125, -0.023529052734375, 0.00860595703125, -0.0225982666015625, 0.025543212890625, -0.045196533203125, -0.008087158203125, -0.0133056640625, 0.0151214599609375, -0.0233154296875, 0.016082763671875, 0.052825927734375, 0.0241546630859375, -0.045806884765625, 0.02203369140625, -0.01180267333984375, 0.0199127197265625, 0.0841064453125, -0.005954742431640625, -0.003086090087890625, -0.053741455078125, -0.0253448486328125, 0.020355224609375, -0.0139312744140625, 0.033172607421875, -0.0016632080078125, 0.031341552734375, -0.02410888671875, 0.062347412109375, 0.00858306884765625, -0.0092620849609375, 0.01519775390625, 0.00787353515625, 0.01561737060546875, 0.00243377685546875, 0.006191253662109375, -0.033935546875, -0.01300811767578125, -0.0498046875, -0.0032482147216796875, 0.022918701171875, -0.015167236328125, 0.02923583984375, 0.04132080078125, 0.0193939208984375, -0.002025604248046875, 0.01366424560546875, -0.0019292831420898438, -0.00603485107421875, 0.010101318359375, 0.022857666015625, -0.004360198974609375, 0.01511383056640625, -0.0262603759765625, 0.01873779296875, -0.0025768280029296875, -0.009368896484375, 0.046844482421875, -0.034759521484375, 0.047882080078125, 0.0165557861328125, -0.0288238525390625, 0.0198974609375, 0.1180419921875, -0.01201629638671875, 0.0540771484375, 0.0572509765625, -0.01000213623046875, 0.05145263671875, 0.0313720703125, 0.00982666015625, -0.0160675048828125, 0.05621337890625, 0.00405120849609375, -0.015899658203125, 0.0224761962890625, -0.0221405029296875, 0.036041259765625, 0.002460479736328125, 0.083251953125, -0.00971221923828125, 0.0224761962890625, 0.048065185546875, -0.04034423828125, 0.01263427734375, -0.02093505859375, 0.0007910728454589844, 0.0296783447265625, 0.0269012451171875, -0.0242462158203125, -0.045928955078125, -0.0028228759765625, 0.01296234130859375, 0.000980377197265625, 0.01751708984375, 0.052886962890625, 0.01557159423828125, -0.06439208984375, -0.024871826171875, 0.04095458984375, -0.024444580078125, -0.02166748046875, 0.017913818359375, -0.016937255859375, -0.01015472412109375, -0.037811279296875, 0.00801849365234375, 0.006893157958984375, -0.0018529891967773438, 0.005889892578125, -0.01268768310546875, 0.01224517822265625, 0.041748046875, -0.01666259765625, 0.0183258056640625, 0.024139404296875, -0.0258636474609375, 0.098876953125, 0.012481689453125, 0.0010423660278320312, 0.03533935546875, -0.0213775634765625, -0.0224609375, 0.0023746490478515625, 0.057769775390625, -0.002933502197265625, -0.0226287841796875, 0.053955078125, -0.042755126953125, -0.017547607421875, 0.004573822021484375, 0.002048492431640625, 0.01322174072265625, -0.0172271728515625, 0.00482177734375, -0.072509765625, -0.060028076171875, -0.017669677734375, -0.0819091796875, -0.0056915283203125, -0.0582275390625, -0.06787109375, 0.0802001953125, -0.0028057098388671875, 0.036651611328125, 0.00278472900390625, 0.0257415771484375, 0.00009512901306152344, 0.00835418701171875, -0.020538330078125, 0.04327392578125, 0.009613037109375, 0.033905029296875, -0.040313720703125, -0.0012731552124023438, 0.016326904296875, 0.02899169921875, 0.0273590087890625, 0.00632476806640625, -0.028656005859375, 0.008331298828125, 0.060546875, 0.0003533363342285156, -0.013580322265625, 0.043365478515625, -0.0018529891967773438, -0.022308349609375, 0.026947021484375, 0.00839996337890625, 0.022186279296875, 0.00652313232421875, -0.019775390625, 0.038055419921875, 0.0031070709228515625, -0.0029163360595703125, -0.0004374980926513672, -0.0100555419921875, -0.05999755859375, 0.006008148193359375, 0.037139892578125, -0.0005011558532714844, -0.005954742431640625, 0.07049560546875, 0.04638671875, -0.0372314453125, -0.05853271484375, -0.007965087890625, 0.055328369140625, 0.01482391357421875, 0.00917816162109375, 0.02093505859375, 0.013458251953125, 0.06756591796875, -0.007747650146484375, -0.0007200241088867188, 0.0267181396484375, -0.0002455711364746094, 0.028106689453125, 0.013885498046875, 0.0158538818359375, -0.0288238525390625, 0.027374267578125, 0.035430908203125, 0.043243408203125, -0.03582763671875, -0.00930023193359375, 0.00904083251953125, 0.00507354736328125, 0.003993988037109375, -0.0172119140625, 0.029693603515625, -0.061370849609375, -0.044952392578125, -0.0595703125, 0.03582763671875, 0.066162109375, 0.01461029052734375, -0.015625, -0.032623291015625, -0.058837890625, 0.036529541015625, -0.0098419189453125, 0.031768798828125, -0.01247406005859375, 0.0301666259765625, -0.00678253173828125, 0.0006690025329589844, -0.0855712890625, -0.00319671630859375, -0.0011396408081054688, 0.0357666015625, -0.017486572265625, 0.011016845703125, -0.0249176025390625, -0.0457763671875, -0.01019287109375, 0.035247802734375, 0.0301513671875, 0.028961181640625, 0.052642822265625, 0.032073974609375, -0.0215606689453125, -0.00098419189453125, 0.0494384765625, -0.0201416015625, 0.0291290283203125, -0.01042938232421875, 0.01806640625, 0.010711669921875, -0.01361083984375, -0.01352691650390625, 0.034576416015625, 0.0298614501953125, -0.0634765625, 0.038818359375, -0.0134735107421875, -0.028228759765625, 0.032379150390625, -0.0223388671875, 0.0618896484375, -0.0305328369140625, -0.034759521484375, -0.00705718994140625, -0.022735595703125, -0.04571533203125, 0.0269622802734375, 0.048858642578125, 0.005756378173828125, 0.0090179443359375, 0.0087127685546875, -0.00726318359375, -0.005950927734375, 0.01904296875, -0.02362060546875, -0.00907135009765625, 0.04742431640625, -0.0179901123046875, -0.031982421875, -0.01416778564453125, -0.0168914794921875, 0.04754638671875, 0.0259552001953125, 0.05853271484375, -0.01690673828125, 0.0296478271484375, 0.0207977294921875, -0.004924774169921875, -0.00215911865234375, -0.0130615234375, 0.045806884765625, -0.01273345947265625, -0.00746917724609375, -0.0254974365234375, 0.032745361328125, 0.046875, 0.01041412353515625, -0.002994537353515625, 0.013763427734375, -0.0179901123046875, 0.0087432861328125, 0.021820068359375, 0.0228424072265625, -0.032012939453125, -0.03387451171875, -0.0677490234375, -0.004505157470703125, 0.0175933837890625, -0.005512237548828125, -0.037353515625, 0.02288818359375, 0.00811767578125, -0.015472412109375, 0.051605224609375, -0.046844482421875, 0.0777587890625, 0.03741455078125, -0.020965576171875, -0.035614013671875, -0.03973388671875, -0.030792236328125, -0.0175628662109375, 0.0011644363403320312, 0.0113372802734375, -0.021575927734375, -0.01702880859375, 0.07073974609375, 0.016265869140625, 0.04339599609375, -0.034759521484375, 0.006214141845703125, 0.041351318359375, 0.0218658447265625, -0.0140533447265625, -0.00594329833984375, -0.01404571533203125, -0.0341796875, 0.0102996826171875, 0.0088348388671875, 0.0104827880859375, 0.02459716796875, 0.016632080078125, -0.0196380615234375, 0.03857421875, 0.0245361328125, -0.055572509765625, -0.003406524658203125, 0.0154876708984375, 0.01325225830078125, 0.00994110107421875, 0.01380157470703125, -0.02972412109375, -0.0028934478759765625, -0.034759521484375, -0.05859375, -0.055023193359375, 0.060272216796875, -0.048187255859375, 0.0223388671875, 0.060333251953125, -0.031341552734375, -0.0289154052734375, 0.0284881591796875, 0.03131103515625, 0.0711669921875, -0.03253173828125, -0.0261383056640625, 0.0024166107177734375, 0.00586700439453125, -0.0293731689453125, -0.035736083984375, 0.019775390625, -0.0187225341796875, -0.002979278564453125, 0.0012903213500976562, -0.011199951171875, 0.002399444580078125, -0.0443115234375, -0.051544189453125, 0.0099945068359375, 0.017242431640625, -0.046905517578125, -0.0156402587890625, 0.00574493408203125, -0.0124664306640625, 0.0217437744140625, -0.004833221435546875, 0.0016384124755859375, 0.0078125, 0.030364990234375, -0.0166473388671875, 0.056243896484375, -0.005096435546875, -0.00884246826171875, -0.036376953125, -0.00279998779296875, -0.004489898681640625, -0.013153076171875, 0.052398681640625, -0.03192138671875, 0.045562744140625, 0.04754638671875, -0.0261993408203125, -0.03155517578125, -0.00942230224609375, -0.07049560546875, -0.00574493408203125, -0.07843017578125, -0.027130126953125, -0.0005021095275878906, 0.090576171875, 0.0265960693359375, 0.024749755859375, -0.0501708984375, -0.0005612373352050781, 0.006961822509765625, -0.0202484130859375, -0.02093505859375, 0.01395416259765625, -0.04168701171875, -0.016693115234375, -0.0160675048828125, -0.032135009765625, -0.027801513671875, 0.004451751708984375, -0.045257568359375, 0.003421783447265625, -0.00662994384765625, -0.0186920166015625, -0.007419586181640625, -0.00440216064453125, 0.030426025390625, -0.0204620361328125, 0.0252227783203125, -0.0384521484375, 0.035614013671875, 0.0167694091796875, -0.042449951171875, -0.0184783935546875, 0.060577392578125, -0.0133819580078125, -0.007232666015625, 0.0168304443359375, -0.0438232421875, 0.0007581710815429688, 0.045623779296875, -0.00881195068359375, 0.023468017578125, 0.0099945068359375, 0.0165557861328125, -0.035247802734375, 0.046417236328125, 0.017486572265625, 0.0035190582275390625, -0.0301971435546875, -0.004093170166015625, 0.0021343231201171875, 0.0273895263671875, -0.03741455078125, 0.0018901824951171875, 0.012786865234375, -0.07373046875, 0.0016117095947265625, 0.036041259765625, 0.002666473388671875, -0.004383087158203125, 0.016876220703125, -0.030609130859375, 0.025115966796875, 0.0048980712890625 ]
07470cde817a4c286b07866d83a5c98d026938fa
Wordpress Stackexchange Q: How to point my domain to a Wordpress install in a sub-directory? I have recently been re-designed a client's website (whose website is - for example purposes - mywebsite.co.uk)/ I have developed the new website (a heavily modified wordpress install) in a sub-directory (eg: www.mywebsite.co.uk/new). I would now like for my new website to replace my existing website, and for visitors to find the new site when they visit mywebsite.co.uk. How is this best achieved? Any help is greatly appreciated, Dan A: I'd copy the wp subdirectory index.php to the top level, and edit the line require('./wp-blog-header.php'); to be require('./subdir/wp-blog-header.php'); and of course set the settings for site url and wordpress url to match as suggested above.
Q: How to point my domain to a Wordpress install in a sub-directory? I have recently been re-designed a client's website (whose website is - for example purposes - mywebsite.co.uk)/ I have developed the new website (a heavily modified wordpress install) in a sub-directory (eg: www.mywebsite.co.uk/new). I would now like for my new website to replace my existing website, and for visitors to find the new site when they visit mywebsite.co.uk. How is this best achieved? Any help is greatly appreciated, Dan A: I'd copy the wp subdirectory index.php to the top level, and edit the line require('./wp-blog-header.php'); to be require('./subdir/wp-blog-header.php'); and of course set the settings for site url and wordpress url to match as suggested above. A: Further to anmari's answer, the WP codex page that describes this in detail. You specifically are looking for "pre-existing subdirectlory". A: Go to the the Settings page and change the wordpress address and site address to the correct url - http://www.mywebsite.co.uk/new Alternatively, if you can't change it in the settings, you can do this in the database under the options table. Wordpress will change your .htaccess file automatically after changing the settings.
wordpress
{ "language": "en", "length": 191, "provenance": "stackexchange_00019.jsonl.gz:432205", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/98736" }
[ 0.06390380859375, -0.01222991943359375, 0.0170135498046875, 0.00933074951171875, -0.01180267333984375, -0.04644775390625, 0.047637939453125, -0.05718994140625, 0.0213623046875, -0.0149383544921875, -0.01200103759765625, -0.01084136962890625, -0.001739501953125, -0.047576904296875, 0.0207061767578125, -0.031707763671875, 0.037628173828125, -0.04766845703125, 0.0208892822265625, 0.003997802734375, 0.01515960693359375, 0.027984619140625, 0.04156494140625, -0.0016832351684570312, -0.0052337646484375, 0.0168609619140625, 0.08197021484375, -0.0173187255859375, 0.000499725341796875, -0.02508544921875, 0.01047515869140625, -0.018402099609375, 0.01468658447265625, 0.0161285400390625, 0.0130767822265625, 0.044342041015625, 0.0249481201171875, 0.01120758056640625, 0.037139892578125, 0.0243377685546875, 0.0228424072265625, -0.00968170166015625, 0.0277099609375, 0.0264129638671875, 0.0089569091796875, -0.07232666015625, 0.053863525390625, -0.04229736328125, 0.03143310546875, -0.03472900390625, 0.004924774169921875, 0.0294952392578125, 0.0162506103515625, -0.03997802734375, -0.01316070556640625, 0.00440216064453125, 0.043487548828125, -0.00489044189453125, 0.0299530029296875, -0.047821044921875, -0.045440673828125, 0.0185699462890625, 0.031890869140625, -0.004547119140625, 0.010528564453125, -0.0131988525390625, -0.01210784912109375, 0.0268707275390625, -0.04803466796875, 0.008453369140625, 0.0298004150390625, -0.03228759765625, -0.002658843994140625, -0.010833740234375, 0.0119781494140625, -0.028350830078125, 0.0245208740234375, -0.011322021484375, 0.00099945068359375, 0.026092529296875, -0.00007241964340209961, 0.001132965087890625, -0.006267547607421875, -0.04205322265625, 0.027862548828125, -0.0029811859130859375, -0.006954193115234375, -0.006214141845703125, -0.04571533203125, -0.0212554931640625, -0.041412353515625, 0.00362396240234375, -0.0171966552734375, -0.035003662109375, -0.041778564453125, -0.01004791259765625, 0.01708984375, 0.0306396484375, -0.0215911865234375, 0.0053558349609375, -0.0166168212890625, -0.0226593017578125, 0.012664794921875, -0.0214691162109375, 0.006072998046875, 0.07000732421875, 0.0191497802734375, -0.0242767333984375, 0.015655517578125, -0.0036411285400390625, -0.004364013671875, 0.01806640625, -0.003955841064453125, -0.0004241466522216797, -0.05157470703125, 0.031646728515625, -0.00638580322265625, -0.037322998046875, 0.0010585784912109375, -0.00048041343688964844, 0.0232391357421875, 0.062286376953125, -0.0243682861328125, -0.0195770263671875, -0.00402069091796875, -0.0057525634765625, 0.01032257080078125, -0.050567626953125, 0.008941650390625, -0.02630615234375, -0.0214996337890625, 0.03424072265625, 0.0283050537109375, 0.0034923553466796875, -0.01047515869140625, -0.0008797645568847656, 0.02099609375, 0.0178070068359375, 0.016876220703125, -0.01222991943359375, 0.020904541015625, -0.03680419921875, -0.007671356201171875, 0.0089874267578125, 0.001224517822265625, 0.005825042724609375, 0.00255584716796875, 0.032928466796875, 0.007274627685546875, -0.03680419921875, 0.033966064453125, -0.030548095703125, 0.0305328369140625, -0.0005102157592773438, 0.019683837890625, -0.0899658203125, 0.0089569091796875, -0.0626220703125, 0.042877197265625, -0.04705810546875, -0.016265869140625, 0.0093536376953125, 0.04962158203125, -0.054901123046875, -0.06109619140625, -0.02508544921875, -0.051177978515625, -0.0188140869140625, 0.0138702392578125, -0.046966552734375, 0.04254150390625, -0.0078582763671875, 0.0024871826171875, -0.00823211669921875, 0.0119171142578125, 0.01302337646484375, 0.0263214111328125, 0.0207061767578125, -0.00858306884765625, 0.0914306640625, 0.03680419921875, -0.0248565673828125, 0.045928955078125, -0.0101776123046875, -0.037750244140625, 0.01242828369140625, 0.013763427734375, 0.0399169921875, -0.0150299072265625, 0.0276641845703125, 0.05401611328125, 0.030853271484375, -0.064697265625, 0.031707763671875, -0.0082855224609375, 0.00142669677734375, 0.00916290283203125, 0.0239715576171875, -0.00853729248046875, -0.0207672119140625, -0.08758544921875, 0.0028400421142578125, -0.00945281982421875, 0.03350830078125, 0.0352783203125, -0.0012722015380859375, 0.002735137939453125, 0.0310516357421875, 0.053192138671875, -0.004039764404296875, -0.0181732177734375, -0.01224517822265625, 0.033172607421875, -0.11456298828125, -0.0830078125, 0.0106048583984375, -0.023956298828125, 0.03277587890625, 0.0116424560546875, 0.036590576171875, -0.009307861328125, -0.00628662109375, -0.0162200927734375, -0.049530029296875, 0.025909423828125, -0.0233612060546875, 0.0093841552734375, -0.023040771484375, 0.00768280029296875, 0.029937744140625, -0.0791015625, -0.01495361328125, 0.0176239013671875, 0.00630950927734375, -0.0460205078125, 0.006587982177734375, -0.0218658447265625, 0.0059051513671875, -0.015289306640625, 0.039031982421875, 0.039215087890625, 0.0299224853515625, 0.006183624267578125, -0.002231597900390625, 0.0462646484375, -0.08502197265625, -0.0133056640625, -0.00431060791015625, 0.004405975341796875, 0.043609619140625, -0.0101470947265625, 0.005340576171875, 0.006641387939453125, -0.059906005859375, -0.005168914794921875, 0.049407958984375, 0.008880615234375, -0.0124664306640625, -0.0069427490234375, -0.0022182464599609375, 0.0164031982421875, 0.000392913818359375, -0.051025390625, 0.01555633544921875, 0.0211639404296875, 0.0228729248046875, 0.031585693359375, 0.026580810546875, -0.01300811767578125, 0.0033435821533203125, 0.01386260986328125, -0.02001953125, -0.0011053085327148438, 0.005764007568359375, 0.058685302734375, -0.032623291015625, -0.00458526611328125, -0.00876617431640625, 0.006046295166015625, -0.004604339599609375, -0.00522613525390625, 0.00470733642578125, 0.0160369873046875, -0.003490447998046875, -0.00965118408203125, -0.053497314453125, 0.035919189453125, 0.033660888671875, 0.01024627685546875, 0.0260772705078125, 0.049072265625, 0.0035800933837890625, -0.0234375, 0.0213775634765625, 0.0007200241088867188, -0.0217742919921875, 0.069580078125, -0.0289306640625, 0.027374267578125, -0.021942138671875, 0.0098876953125, 0.046173095703125, 0.00783538818359375, -0.04034423828125, -0.016021728515625, 0.00830078125, -0.0019378662109375, -0.00962066650390625, -0.0212249755859375, -0.04376220703125, -0.0472412109375, -0.028594970703125, 0.019927978515625, -0.0203094482421875, 0.009979248046875, -0.014129638671875, 0.0020122528076171875, -0.0180511474609375, -0.08477783203125, -0.058685302734375, -0.0196990966796875, -0.03076171875, 0.0207366943359375, 0.02850341796875, -0.004863739013671875, -0.03070068359375, 0.041656494140625, 0.0106048583984375, 0.023651123046875, -0.050537109375, -0.041748046875, -0.06878662109375, -0.08416748046875, -0.09307861328125, 0.00336456298828125, -0.0132904052734375, -0.0008382797241210938, -0.045196533203125, -0.0014963150024414062, -0.019256591796875, 0.0112762451171875, 0.112548828125, 0.00954437255859375, -0.048614501953125, 0.0195770263671875, -0.049774169921875, -0.0035953521728515625, 0.00018680095672607422, 0.0400390625, 0.00830078125, -0.00762939453125, -0.0103302001953125, 0.00605010986328125, -0.030487060546875, -0.016754150390625, -0.035400390625, 0.00502777099609375, -0.0325927734375, -0.048004150390625, -0.066650390625, -0.00839996337890625, -0.0193634033203125, -0.0310211181640625, 0.01312255859375, 0.03387451171875, -0.0220794677734375, -0.01261138916015625, -0.0038776397705078125, 0.00450897216796875, -0.01534271240234375, 0.006191253662109375, -0.03973388671875, 0.037261962890625, -0.0009136199951171875, 0.033782958984375, -0.022216796875, 0.059722900390625, -0.002132415771484375, 0.006649017333984375, 0.029754638671875, 0.001033782958984375, -0.030029296875, 0.03857421875, -0.05975341796875, -0.05462646484375, 0.062744140625, -0.0131988525390625, 0.006134033203125, -0.0350341796875, -0.0355224609375, -0.0023097991943359375, 0.121337890625, -0.055938720703125, -0.007663726806640625, 0.019561767578125, 0.01548004150390625, -0.00632476806640625, -0.003711700439453125, -0.06622314453125, -0.00812530517578125, -0.03887939453125, -0.018829345703125, -0.039794921875, -0.00751495361328125, 0.006195068359375, -0.02142333984375, 0.01517486572265625, -0.045440673828125, 0.039947509765625, -0.0306549072265625, 0.0116119384765625, 0.034881591796875, 0.0180816650390625, -0.01497650146484375, -0.04547119140625, -0.009490966796875, -0.04144287109375, -0.0025234222412109375, -0.002323150634765625, 0.01641845703125, -0.0094451904296875, -0.002574920654296875, -0.0115203857421875, 0.024169921875, -0.036041259765625, 0.0186309814453125, 0.0029048919677734375, 0.0335693359375, -0.0090789794921875, 0.021270751953125, 0.0182952880859375, -0.0164794921875, -0.00589752197265625, -0.039825439453125, -0.038299560546875, -0.0010366439819335938, -0.01751708984375, 0.0577392578125, -0.00409698486328125, -0.00461578369140625, -0.039459228515625, -0.02838134765625, -0.017303466796875, 0.010467529296875, -0.01541900634765625, -0.006885528564453125, -0.016387939453125, -0.04119873046875, 0.0151824951171875, -0.019439697265625, -0.009765625, 0.0009889602661132812, 0.0136566162109375, 0.0071868896484375, -0.0209197998046875, 0.06292724609375, 0.032440185546875, 0.036102294921875, 0.01348876953125, 0.01971435546875, 0.0227203369140625, -0.005779266357421875, -0.0210723876953125, 0.01366424560546875, 0.02288818359375, 0.0274505615234375, -0.03369140625, 0.0200958251953125, -0.0206146240234375, 0.019866943359375, 0.036163330078125, -0.0296173095703125, -0.00061798095703125, -0.0223846435546875, 0.0042724609375, -0.027923583984375, 0.00859832763671875, 0.0036487579345703125, 0.0168609619140625, -0.028228759765625, -0.033966064453125, 0.0170440673828125, -0.01291656494140625, 0.0100860595703125, 0.00908660888671875, 0.00835418701171875, 0.01177215576171875, -0.0019893646240234375, -0.015777587890625, 0.0169677734375, 0.0243377685546875, 0.032928466796875, 0.0266265869140625, 0.039581298828125, 0.0120086669921875, -0.03179931640625, -0.006931304931640625, 0.07672119140625, 0.02264404296875, -0.05096435546875, 0.0092315673828125, 0.0020008087158203125, 0.01837158203125, 0.024200439453125, -0.03680419921875, 0.0301055908203125, -0.000621795654296875, -0.0157318115234375, 0.007404327392578125, -0.0218048095703125, -0.044036865234375, -0.040435791015625, 0.011016845703125, -0.0014324188232421875, 0.00421142578125, 0.004638671875, 0.057586669921875, 0.022918701171875, 0.023223876953125, -0.026153564453125, 0.03802490234375, 0.06817626953125, 0.003658294677734375, -0.0096893310546875, 0.03436279296875, -0.0209808349609375, 0.005695343017578125, 0.02294921875, -0.0228118896484375, 0.0301055908203125, -0.004878997802734375, 0.0243377685546875, -0.0098114013671875, -0.0430908203125, 0.040985107421875, -0.047454833984375, 0.011993408203125, 0.01690673828125, -0.03851318359375, -0.058319091796875, -0.006679534912109375, 0.0244903564453125, 0.02825927734375, -0.049163818359375, 0.00498199462890625, -0.01739501953125, -0.05255126953125, -0.0034732818603515625, -0.0217437744140625, 0.004543304443359375, -0.030364990234375, -0.046844482421875, -0.01284027099609375, 0.01367950439453125, 0.01434326171875, -0.036773681640625, -0.039337158203125, -0.010162353515625, -0.0168304443359375, 0.055206298828125, -0.042449951171875, 0.011962890625, -0.00926971435546875, 0.0045318603515625, -0.044952392578125, 0.0290374755859375, 0.01702880859375, 0.0234375, -0.105712890625, 0.037445068359375, -0.042999267578125, 0.04193115234375, 0.007678985595703125, -0.08343505859375, -0.041229248046875, -0.04815673828125, 0.005016326904296875, -0.00183868408203125, -0.01305389404296875, -0.03314208984375, -0.013275146484375, 0.002048492431640625, 0.01493072509765625, -0.054290771484375, -0.0203094482421875, 0.021453857421875, 0.0211334228515625, -0.0003752708435058594, 0.005825042724609375, 0.003292083740234375, 0.01178741455078125, -0.01910400390625, 0.0051116943359375, -0.04156494140625, 0.00013780593872070312, -0.0045623779296875, -0.022369384765625, 0.020263671875, 0.03900146484375, -0.0021762847900390625, 0.013275146484375, -0.01007080078125, 0.0012922286987304688, -0.033416748046875, -0.0112152099609375, -0.020416259765625, 0.007244110107421875, -0.037322998046875, -0.01557159423828125, 0.01666259765625, -0.01203155517578125, -0.017822265625, 0.0034389495849609375, 0.004302978515625, -0.0015878677368164062, 0.0176849365234375, -0.0406494140625, 0.03741455078125, 0.08648681640625, -0.004245758056640625, 0.0703125, -0.00580596923828125, 0.0019044876098632812, 0.0670166015625, 0.0088043212890625, 0.032989501953125, 0.00875091552734375, 0.0692138671875, 0.0159149169921875, -0.01812744140625, 0.038787841796875, -0.03839111328125, -0.0023899078369140625, 0.01763916015625, 0.032562255859375, -0.04443359375, 0.0090179443359375, -0.0019931793212890625, -0.0182647705078125, 0.00865936279296875, -0.023834228515625, -0.00746917724609375, -0.0125885009765625, 0.033843994140625, 0.016357421875, -0.0236663818359375, 0.003879547119140625, 0.0092926025390625, -0.0107269287109375, 0.0052642822265625, 0.047271728515625, 0.0235748291015625, 0.0194854736328125, -0.03900146484375, 0.020416259765625, -0.0003542900085449219, -0.01190948486328125, -0.023468017578125, 0.01904296875, -0.035858154296875, -0.05084228515625, 0.00966644287109375, -0.02783203125, -0.007568359375, 0.004657745361328125, -0.0006251335144042969, 0.05877685546875, 0.0562744140625, -0.006420135498046875, 0.006252288818359375, 0.0092620849609375, 0.054901123046875, 0.037506103515625, 0.00250244140625, 0.0253143310546875, -0.01274871826171875, -0.0574951171875, -0.0117340087890625, -0.057098388671875, 0.01140594482421875, 0.01068878173828125, 0.0227813720703125, 0.048126220703125, -0.050048828125, -0.01166534423828125, 0.039459228515625, 0.033233642578125, -0.013397216796875, 0.0103607177734375, 0.01076507568359375, -0.0290679931640625, -0.040863037109375, 0.004543304443359375, -0.057281494140625, -0.005023956298828125, -0.00044465065002441406, -0.013671875, 0.08294677734375, -0.03131103515625, -0.005828857421875, 0.0230255126953125, 0.044189453125, -0.0208740234375, 0.0390625, -0.0006628036499023438, 0.029937744140625, 0.006969451904296875, 0.0208587646484375, -0.0191802978515625, -0.017822265625, 0.0011920928955078125, 0.049774169921875, 0.04547119140625, 0.02301025390625, -0.03228759765625, -0.00191497802734375, 0.003902435302734375, -0.00884246826171875, -0.0226593017578125, 0.06134033203125, -0.03680419921875, -0.003582000732421875, 0.03411865234375, -0.02813720703125, 0.008941650390625, 0.0280914306640625, -0.0367431640625, -0.018890380859375, -0.0027370452880859375, -0.025146484375, 0.014678955078125, 0.00457000732421875, -0.046844482421875, 0.00907135009765625, 0.0322265625, 0.01262664794921875, 0.032196044921875, -0.016632080078125, 0.014556884765625, -0.0218048095703125, 0.0247802734375, -0.0214691162109375, 0.037994384765625, -0.003925323486328125, 0.0190582275390625, -0.0233306884765625, 0.01364898681640625, 0.064697265625, 0.0006685256958007812, -0.01104736328125, 0.039306640625, -0.0201416015625, 0.05322265625, 0.043792724609375, 0.031982421875, -0.0357666015625, -0.02081298828125, 0.045623779296875, 0.056732177734375, -0.034881591796875, -0.0171051025390625, 0.006313323974609375, -0.029937744140625, 0.006343841552734375, -0.0408935546875, 0.002254486083984375, -0.0232391357421875, -0.041748046875, -0.0035228729248046875, -0.011016845703125, 0.0221710205078125, -0.0156707763671875, 0.0015239715576171875, 0.0174560546875, 0.0118865966796875, 0.0288543701171875, -0.00412750244140625, 0.025390625, 0.005764007568359375, 0.0263519287109375, -0.03240966796875, 0.0701904296875, -0.038909912109375, -0.005558013916015625, -0.003719329833984375, 0.0196533203125, 0.0152740478515625, -0.0104522705078125, -0.032684326171875, -0.038787841796875, 0.04058837890625, 0.0263671875, 0.020965576171875, 0.0122833251953125, 0.054351806640625, 0.02294921875, -0.05133056640625, -0.0080108642578125, 0.0312347412109375, -0.0302276611328125, 0.047760009765625, 0.0028667449951171875, 0.01450347900390625, 0.01340484619140625, -0.018890380859375, -0.05291748046875, 0.0240936279296875, 0.05645751953125, -0.03875732421875, 0.0460205078125, -0.0134735107421875, -0.00351715087890625, 0.03533935546875, -0.0341796875, 0.04132080078125, -0.0034885406494140625, 0.01099395751953125, -0.00016009807586669922, -0.00917816162109375, -0.0164031982421875, -0.003505706787109375, 0.036956787109375, 0.0150909423828125, 0.01142120361328125, 0.0240020751953125, 0.024200439453125, -0.0286865234375, 0.0020313262939453125, -0.01468658447265625, 0.00649261474609375, 0.0484619140625, 0.0240020751953125, -0.016448974609375, -0.01146697998046875, -0.00942230224609375, 0.044097900390625, 0.007053375244140625, 0.0791015625, -0.033233642578125, 0.0186920166015625, -0.03594970703125, -0.0009918212890625, -0.00551605224609375, -0.03802490234375, 0.039825439453125, 0.006504058837890625, -0.003330230712890625, -0.00527191162109375, -0.064208984375, -0.016387939453125, 0.0242156982421875, -0.039306640625, 0.0153656005859375, -0.036163330078125, 0.0280303955078125, -0.0156402587890625, 0.03936767578125, -0.0168609619140625, -0.05694580078125, -0.066650390625, 0.002593994140625, 0.0276031494140625, 0.0293426513671875, -0.034698486328125, 0.0011224746704101562, 0.01306915283203125, -0.041351318359375, 0.026336669921875, -0.027587890625, 0.0487060546875, 0.0269622802734375, -0.0049591064453125, -0.055816650390625, -0.0072021484375, -0.01110076904296875, -0.004436492919921875, -0.0160369873046875, 0.0467529296875, 0.003093719482421875, -0.05035400390625, -0.0399169921875, 0.019439697265625, 0.0377197265625, 0.008056640625, 0.0247802734375, -0.032562255859375, -0.01367950439453125, 0.002391815185546875, -0.0168304443359375, -0.0318603515625, -0.009918212890625, 0.00807952880859375, 0.020111083984375, 0.0034770965576171875, -0.030517578125, -0.045684814453125, -0.006656646728515625, 0.0733642578125, 0.0193939208984375, -0.07012939453125, -0.0113677978515625, -0.0242919921875, 0.08447265625, 0.0030612945556640625, -0.004932403564453125, -0.0143585205078125, 0.0204925537109375, 0.002227783203125, -0.045654296875, -0.0233917236328125, 0.0494384765625, -0.0161590576171875, 0.033172607421875, 0.043487548828125, -0.0236053466796875, 0.0277252197265625, 0.0234527587890625, 0.0017118453979492188, 0.076416015625, -0.051727294921875, -0.021728515625, 0.0037708282470703125, 0.006290435791015625, -0.0093841552734375, -0.05615234375, -0.0033550262451171875, -0.07989501953125, 0.0223388671875, -0.044586181640625, 0.005550384521484375, -0.0018110275268554688, -0.056488037109375, -0.052032470703125, 0.075927734375, -0.0135498046875, -0.02056884765625, -0.0809326171875, 0.0036220550537109375, -0.01197052001953125, 0.062103271484375, -0.016326904296875, -0.037933349609375, -0.0184478759765625, 0.07098388671875, 0.034210205078125, 0.0294952392578125, -0.00481414794921875, 0.023345947265625, 0.0030384063720703125, 0.053070068359375, 0.04718017578125, -0.005645751953125, 0.0052947998046875, 0.00568389892578125, 0.00531768798828125, 0.0380859375, -0.028839111328125, -0.0355224609375, -0.006504058837890625, -0.024627685546875, -0.009979248046875, -0.057586669921875, -0.03021240234375, -0.041656494140625, 0.0682373046875, 0.0159149169921875, 0.017547607421875, -0.006587982177734375, -0.0247344970703125, -0.03643798828125, -0.01126861572265625, -0.00762939453125, 0.01485443115234375, -0.05908203125, 0.013275146484375, 0.0262298583984375, -0.0008392333984375, -0.0227813720703125, 0.0125274658203125, -0.0219573974609375, -0.00846099853515625, 0.01253509521484375, -0.0202789306640625, 0.00658416748046875, -0.0269927978515625, 0.0533447265625, -0.03662109375, 0.005889892578125, -0.00714111328125, 0.040130615234375, 0.02252197265625, -0.0211181640625, 0.0192108154296875, 0.05841064453125, -0.04522705078125, -0.0134124755859375, 0.01495361328125, 0.0248870849609375, -0.03179931640625, -0.0169677734375, -0.00316619873046875, 0.00832366943359375, -0.014495849609375, -0.0023021697998046875, 0.02105712890625, 0.03338623046875, -0.00939178466796875, 0.1202392578125, 0.0039215087890625, 0.01433563232421875, -0.01849365234375, 0.06756591796875, -0.024200439453125, -0.0165557861328125, 0.009246826171875, -0.037567138671875, 0.0076141357421875, -0.004718780517578125, 0.036773681640625, -0.0220794677734375, 0.01229095458984375, 0.012176513671875, 0.003986358642578125, 0.007656097412109375 ]
66b2f869ff3a21f5e167c5e5d6480a5fc61da0f4
Wordpress Stackexchange Q: Removing meta boxes: remove-meta_box() or unset()? I've seen two ways to remove meta boxes: remove_meta_box() and unset(). function TEST_remove_dashboard_widgets(){ remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' ); } add_action('wp_dashboard_setup', 'bmc_remove_dashboard_widgets'); vs. function TEST_remove_dashboard_widgets() { global $wp_meta_boxes; unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); } add_action('wp_dashboard_setup', 'bmc_remove_dashboard_widgets'); remove_meta_box seems better since it's clearly intended just for that, but I've also seen the unset formulation in several places. Why would I use one vs. the other? A: When in doubt use the API. Let’s say the structure of $wp_meta_boxes will change or go away one day. remove_meta_box() will still work, because the API is a contract between core and developers. Unsetting some keys in a global variable might break. unset() is easier to write when you want to remove a whole group: unset($wp_meta_boxes['dashboard']) is clearly simpler than running through each separate box. But shorter code is not always better, so this should not be used in public code. Note, both methods actually work differently: unset() removes an element from the array, while remove_meta_box() set the elements value to FALSE: foreach ( array('high', 'core', 'default', 'low') as $priority ) $wp_meta_boxes[$page][$context][$priority][$id] = false; Other plugins might rely on the existence of that element – and break after you have used unset().
Q: Removing meta boxes: remove-meta_box() or unset()? I've seen two ways to remove meta boxes: remove_meta_box() and unset(). function TEST_remove_dashboard_widgets(){ remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' ); } add_action('wp_dashboard_setup', 'bmc_remove_dashboard_widgets'); vs. function TEST_remove_dashboard_widgets() { global $wp_meta_boxes; unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); } add_action('wp_dashboard_setup', 'bmc_remove_dashboard_widgets'); remove_meta_box seems better since it's clearly intended just for that, but I've also seen the unset formulation in several places. Why would I use one vs. the other? A: When in doubt use the API. Let’s say the structure of $wp_meta_boxes will change or go away one day. remove_meta_box() will still work, because the API is a contract between core and developers. Unsetting some keys in a global variable might break. unset() is easier to write when you want to remove a whole group: unset($wp_meta_boxes['dashboard']) is clearly simpler than running through each separate box. But shorter code is not always better, so this should not be used in public code. Note, both methods actually work differently: unset() removes an element from the array, while remove_meta_box() set the elements value to FALSE: foreach ( array('high', 'core', 'default', 'low') as $priority ) $wp_meta_boxes[$page][$context][$priority][$id] = false; Other plugins might rely on the existence of that element – and break after you have used unset().
wordpress
{ "language": "en", "length": 199, "provenance": "stackexchange_00019.jsonl.gz:432219", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/98774" }
[ 0.0305938720703125, -0.00829315185546875, -0.0267181396484375, -0.0165863037109375, 0.0235748291015625, -0.0275115966796875, 0.03765869140625, -0.00882720947265625, 0.0267333984375, 0.054168701171875, 0.041900634765625, -0.061553955078125, 0.005817413330078125, -0.0217437744140625, -0.08544921875, -0.01226806640625, 0.0263519287109375, -0.00974273681640625, 0.0138092041015625, -0.0164794921875, 0.01434326171875, -0.006298065185546875, -0.01123809814453125, 0.056549072265625, -0.002685546875, -0.08953857421875, 0.0192108154296875, 0.0249481201171875, -0.034576416015625, -0.03668212890625, -0.003047943115234375, 0.08221435546875, -0.0020198822021484375, 0.059051513671875, -0.044281005859375, 0.01406097412109375, -0.0234832763671875, 0.04437255859375, 0.024505615234375, -0.006755828857421875, 0.01263427734375, -0.006771087646484375, -0.0168609619140625, -0.028533935546875, -0.01708984375, -0.0025539398193359375, -0.0036907196044921875, -0.038909912109375, 0.03875732421875, -0.017333984375, 0.0090484619140625, 0.01369476318359375, 0.0273284912109375, -0.046722412109375, -0.0228729248046875, -0.0323486328125, -0.01383209228515625, -0.0394287109375, 0.043487548828125, 0.06707763671875, 0.0009703636169433594, -0.03515625, -0.0088043212890625, -0.10589599609375, 0.0123748779296875, -0.0009093284606933594, -0.0020656585693359375, 0.03662109375, -0.0467529296875, 0.01132965087890625, 0.0223846435546875, -0.029449462890625, 0.008056640625, -0.046112060546875, -0.002044677734375, 0.005039215087890625, -0.006778717041015625, -0.0237579345703125, 0.0010766983032226562, -0.0123138427734375, 0.0222015380859375, 0.027984619140625, -0.0193939208984375, 0.022247314453125, 0.01163482666015625, 0.052703857421875, -0.0174560546875, -0.038848876953125, -0.0266876220703125, -0.02593994140625, -0.01221466064453125, -0.081298828125, -0.032135009765625, -0.00013303756713867188, 0.02264404296875, -0.04315185546875, 0.0230865478515625, 0.057891845703125, -0.036956787109375, -0.04296875, -0.0169830322265625, -0.0015611648559570312, -0.064697265625, -0.001972198486328125, 0.01580810546875, 0.00420379638671875, -0.048553466796875, -0.061187744140625, 0.032745361328125, 0.052581787109375, -0.004909515380859375, -0.0206146240234375, -0.0133819580078125, -0.0134735107421875, -0.023345947265625, -0.006198883056640625, -0.044677734375, 0.003154754638671875, -0.006618499755859375, -0.0205841064453125, -0.013458251953125, -0.002735137939453125, 0.0067138671875, -0.017425537109375, 0.0190887451171875, -0.002201080322265625, -0.04180908203125, 0.019683837890625, -0.026885986328125, 0.01180267333984375, -0.041015625, -0.005817413330078125, 0.07781982421875, 0.0694580078125, 0.04254150390625, -0.0172882080078125, 0.0511474609375, -0.01654052734375, 0.0121002197265625, 0.0333251953125, 0.00727081298828125, -0.0679931640625, -0.0293731689453125, 0.02777099609375, -0.036712646484375, 0.021331787109375, 0.03271484375, -0.009124755859375, -0.0163421630859375, -0.050537109375, -0.028076171875, -0.0283050537109375, 0.042877197265625, 0.0244293212890625, -0.004337310791015625, -0.01007080078125, 0.072265625, -0.047271728515625, -0.0416259765625, -0.07293701171875, 0.0082244873046875, -0.026153564453125, -0.0262451171875, -0.005962371826171875, -0.0240325927734375, 0.0238037109375, 0.004718780517578125, 0.00661468505859375, 0.02703857421875, 0.0285186767578125, 0.01236724853515625, -0.04718017578125, 0.0008769035339355469, 0.0183563232421875, -0.006397247314453125, 0.0369873046875, 0.00611114501953125, 0.00594329833984375, 0.0101165771484375, -0.029754638671875, -0.045440673828125, -0.048248291015625, 0.0014772415161132812, 0.006999969482421875, -0.08447265625, 0.00789642333984375, 0.037322998046875, 0.07037353515625, 0.00608062744140625, 0.011199951171875, 0.0872802734375, -0.01464080810546875, -0.01419830322265625, -0.0031223297119140625, 0.037750244140625, -0.016326904296875, -0.03277587890625, -0.0225830078125, 0.00928497314453125, -0.0111541748046875, 0.0712890625, 0.0013980865478515625, 0.00603485107421875, -0.029083251953125, -0.10284423828125, 0.0178070068359375, -0.03961181640625, 0.0487060546875, -0.052642822265625, -0.019378662109375, 0.054718017578125, -0.0281219482421875, -0.035003662109375, 0.0372314453125, -0.010894775390625, -0.00885772705078125, 0.0023345947265625, 0.059539794921875, -0.0131378173828125, 0.01678466796875, -0.0225830078125, -0.04046630859375, -0.00007480382919311523, 0.0243072509765625, 0.06964111328125, 0.0123748779296875, -0.02032470703125, -0.026336669921875, 0.06475830078125, 0.0006437301635742188, -0.0271148681640625, 0.040252685546875, 0.0120391845703125, 0.0253753662109375, -0.01433563232421875, -0.00862884521484375, 0.02032470703125, -0.04736328125, 0.0006613731384277344, 0.039764404296875, 0.03143310546875, 0.031494140625, -0.0073394775390625, 0.021575927734375, 0.032806396484375, -0.0802001953125, -0.0157012939453125, 0.0186920166015625, 0.0231781005859375, 0.0394287109375, -0.03411865234375, 0.0014286041259765625, 0.02667236328125, 0.0107421875, 0.01708984375, 0.0292205810546875, -0.06976318359375, 0.0005311965942382812, 0.0020389556884765625, -0.0341796875, -0.002986907958984375, -0.0460205078125, 0.009552001953125, -0.04095458984375, 0.06640625, -0.0292816162109375, 0.0445556640625, 0.031036376953125, -0.004390716552734375, -0.0162200927734375, 0.00433349609375, -0.0238189697265625, -0.006809234619140625, 0.042327880859375, 0.0282745361328125, 0.029083251953125, -0.06500244140625, -0.01032257080078125, 0.0274658203125, 0.040313720703125, -0.00572967529296875, 0.0308990478515625, 0.00811767578125, -0.012298583984375, 0.016510009765625, -0.0179595947265625, -0.005649566650390625, -0.031402587890625, -0.0021820068359375, 0.02142333984375, 0.0304107666015625, 0.0228271484375, -0.014556884765625, 0.0186004638671875, -0.01277923583984375, 0.00266265869140625, 0.030364990234375, -0.01451873779296875, 0.020294189453125, 0.0009717941284179688, 0.0537109375, 0.060577392578125, -0.0028324127197265625, 0.0087738037109375, -0.00421142578125, 0.02508544921875, 0.0226593017578125, -0.0189361572265625, -0.00933074951171875, -0.007904052734375, -0.0284271240234375, 0.0184478759765625, 0.019561767578125, 0.0168914794921875, 0.006458282470703125, -0.0333251953125, 0.00992584228515625, 0.0246124267578125, -0.035491943359375, -0.03399658203125, 0.07440185546875, -0.00848388671875, -0.0279693603515625, -0.01499176025390625, -0.034576416015625, -0.015869140625, -0.0026607513427734375, -0.0106353759765625, 0.0440673828125, 0.0008335113525390625, -0.034759521484375, 0.008148193359375, -0.04278564453125, -0.0280303955078125, -0.006954193115234375, -0.01910400390625, -0.0074462890625, 0.08087158203125, 0.002559661865234375, -0.055419921875, -0.01186370849609375, 0.0231781005859375, 0.004058837890625, 0.01074981689453125, 0.0589599609375, -0.0015020370483398438, -0.0270233154296875, 0.01448822021484375, -0.0183563232421875, 0.028778076171875, -0.051177978515625, -0.0279388427734375, -0.0014324188232421875, 0.00905609130859375, 0.00754547119140625, 0.0078887939453125, 0.0037479400634765625, -0.0097808837890625, -0.0007295608520507812, -0.034912109375, -0.01393890380859375, 0.00788116455078125, -0.0188446044921875, 0.017791748046875, -0.0225372314453125, 0.0094451904296875, 0.015960693359375, 0.041961669921875, 0.042633056640625, 0.042236328125, 0.0217132568359375, 0.0308380126953125, 0.0023174285888671875, -0.0079498291015625, -0.010894775390625, -0.0548095703125, 0.005077362060546875, -0.034423828125, -0.0005846023559570312, -0.0176544189453125, -0.013671875, -0.01209259033203125, -0.01776123046875, 0.0001590251922607422, 0.0041656494140625, 0.03936767578125, -0.0010528564453125, 0.005832672119140625, -0.002811431884765625, -0.00531005859375, -0.01861572265625, 0.036956787109375, -0.09405517578125, 0.002887725830078125, 0.0143585205078125, 0.0105743408203125, 0.0033626556396484375, -0.028533935546875, -0.06732177734375, -0.03460693359375, -0.1279296875, -0.01091766357421875, 0.00972747802734375, -0.06591796875, -0.0102691650390625, 0.0267181396484375, -0.0888671875, -0.037872314453125, 0.05023193359375, -0.0042572021484375, 0.005489349365234375, -0.010498046875, 0.04296875, -0.06793212890625, -0.024169921875, 0.0041961669921875, -0.032928466796875, -0.009765625, -0.029022216796875, 0.05572509765625, 0.0137939453125, 0.00827789306640625, -0.016754150390625, 0.0283660888671875, -0.007778167724609375, 0.0012159347534179688, 0.00336456298828125, 0.0242919921875, -0.020843505859375, 0.0008716583251953125, 0.00482177734375, -0.01244354248046875, -0.0270843505859375, 0.01154327392578125, -0.0260772705078125, 0.050750732421875, 0.0008611679077148438, 0.003002166748046875, 0.041351318359375, -0.02520751953125, -0.03466796875, -0.055084228515625, -0.06951904296875, -0.0088043212890625, -0.034332275390625, 0.006008148193359375, -0.050628662109375, -0.0535888671875, -0.001544952392578125, 0.057403564453125, -0.032470703125, 0.01074981689453125, 0.020538330078125, 0.03363037109375, -0.02703857421875, -0.045745849609375, -0.009735107421875, 0.024627685546875, 0.017730712890625, -0.007015228271484375, -0.0159454345703125, -0.0157623291015625, -0.0014467239379882812, -0.0018138885498046875, 0.0162811279296875, -0.0360107421875, 0.07257080078125, -0.01300048828125, -0.02545166015625, 0.03131103515625, -0.0238800048828125, -0.0219573974609375, 0.0280914306640625, 0.01503753662109375, -0.0058746337890625, -0.0008115768432617188, 0.0202789306640625, 0.0229034423828125, -0.059478759765625, -0.0513916015625, -0.0065155029296875, -0.005893707275390625, 0.013397216796875, 0.044586181640625, 0.023529052734375, 0.0028228759765625, 0.0036792755126953125, 0.00013267993927001953, 0.00691986083984375, -0.007030487060546875, 0.0275726318359375, -0.048614501953125, 0.00629425048828125, 0.0462646484375, -0.02740478515625, -0.01364898681640625, 0.002559661865234375, 0.032623291015625, -0.0051727294921875, -0.036224365234375, -0.058502197265625, 0.0222015380859375, 0.0626220703125, 0.009307861328125, 0.0081634521484375, 0.046783447265625, 0.0152130126953125, -0.049896240234375, -0.0413818359375, 0.0258636474609375, -0.037750244140625, -0.06817626953125, -0.054962158203125, -0.004749298095703125, -0.02008056640625, -0.0033893585205078125, 0.014617919921875, -0.0302734375, 0.019134521484375, -0.0018205642700195312, 0.0517578125, 0.0231781005859375, 0.03924560546875, -0.01390838623046875, -0.0178680419921875, 0.0262603759765625, 0.0128173828125, -0.006103515625, -0.0251312255859375, -0.019744873046875, 0.052154541015625, 0.00533294677734375, 0.047332763671875, 0.035369873046875, -0.0496826171875, 0.014068603515625, -0.028045654296875, 0.0716552734375, 0.018310546875, -0.06268310546875, -0.0269775390625, 0.01381683349609375, 0.034210205078125, -0.0177459716796875, 0.0138397216796875, 0.0160064697265625, -0.004703521728515625, 0.0316162109375, -0.00027108192443847656, 0.021148681640625, -0.0306396484375, -0.018798828125, -0.050323486328125, 0.0111846923828125, 0.0115814208984375, -0.06683349609375, -0.06817626953125, 0.002559661865234375, -0.027099609375, 0.04925537109375, -0.005008697509765625, 0.0187225341796875, -0.03680419921875, 0.0120697021484375, -0.0102386474609375, -0.0014562606811523438, 0.03070068359375, 0.006107330322265625, -0.03265380859375, -0.02203369140625, -0.0479736328125, -0.01323699951171875, -0.0281982421875, -0.05267333984375, -0.00882720947265625, 0.006633758544921875, 0.008148193359375, 0.039794921875, 0.0034351348876953125, 0.0185394287109375, 0.033782958984375, -0.0179595947265625, -0.045135498046875, 0.05511474609375, 0.00171661376953125, 0.026153564453125, -0.01384735107421875, 0.0140838623046875, 0.005603790283203125, 0.018768310546875, -0.00742340087890625, -0.0205535888671875, 0.0305328369140625, -0.0174407958984375, -0.040069580078125, -0.04559326171875, -0.01617431640625, -0.0183868408203125, 0.036407470703125, -0.02679443359375, 0.01995849609375, -0.0254974365234375, -0.0021648406982421875, -0.029510498046875, 0.020965576171875, -0.05072021484375, 0.015869140625, -0.00112152099609375, -0.0016279220581054688, -0.0107879638671875, -0.03253173828125, 0.00402069091796875, 0.014739990234375, 0.002094268798828125, -0.0011644363403320312, -0.005451202392578125, -0.0531005859375, 0.0716552734375, 0.05279541015625, 0.0030651092529296875, 0.046905517578125, 0.0033969879150390625, 0.018707275390625, 0.01044464111328125, -0.0136871337890625, -0.0100250244140625, 0.01763916015625, 0.062225341796875, 0.0023937225341796875, -0.0168304443359375, 0.050567626953125, -0.0201416015625, 0.01198577880859375, 0.022613525390625, 0.046661376953125, -0.051971435546875, 0.0181732177734375, 0.020416259765625, 0.01318359375, 0.033447265625, -0.0134124755859375, -0.0009860992431640625, -0.0322265625, 0.032135009765625, 0.0286865234375, -0.021514892578125, 0.01666259765625, 0.01171875, -0.0323486328125, -0.04412841796875, -0.01708984375, 0.006839752197265625, -0.025543212890625, 0.040252685546875, 0.032012939453125, -0.019195556640625, 0.00946807861328125, -0.0089569091796875, 0.0200653076171875, -0.0672607421875, -0.10760498046875, -0.04803466796875, -0.0036563873291015625, -0.059417724609375, 0.05035400390625, 0.007076263427734375, 0.03521728515625, 0.035491943359375, -0.01149749755859375, 0.01220703125, -0.0145111083984375, 0.00699615478515625, -0.0771484375, -0.0246124267578125, 0.048828125, 0.002834320068359375, 0.003139495849609375, 0.040618896484375, -0.0164642333984375, -0.06573486328125, -0.01021575927734375, -0.014678955078125, 0.0396728515625, -0.017425537109375, -0.0155792236328125, -0.0032253265380859375, 0.01071929931640625, 0.0233612060546875, 0.0274658203125, 0.03363037109375, -0.039581298828125, -0.02691650390625, 0.0304718017578125, -0.043548583984375, -0.0172882080078125, 0.0187225341796875, -0.07464599609375, 0.08465576171875, 0.0203704833984375, 0.03515625, -0.0166473388671875, 0.029571533203125, -0.02581787109375, 0.0012073516845703125, 0.00785064697265625, 0.0174102783203125, 0.01177978515625, -0.01482391357421875, 0.00502777099609375, 0.0004687309265136719, -0.00940704345703125, 0.02203369140625, 0.0193634033203125, 0.006427764892578125, -0.00437164306640625, -0.03192138671875, -0.03076171875, 0.0261077880859375, -0.00881195068359375, 0.0107574462890625, 0.00991058349609375, 0.033599853515625, 0.001453399658203125, -0.046417236328125, 0.01129150390625, -0.036407470703125, -0.037322998046875, 0.0283203125, 0.0205078125, 0.015594482421875, -0.01763916015625, 0.058868408203125, 0.000934600830078125, -0.0174407958984375, -0.0011310577392578125, 0.0148773193359375, -0.005706787109375, 0.00015282630920410156, -0.0042877197265625, -0.002552032470703125, -0.011627197265625, -0.005672454833984375, 0.0262298583984375, 0.0260162353515625, 0.017669677734375, 0.03765869140625, 0.031280517578125, -0.01175689697265625, 0.0029296875, 0.0164947509765625, 0.0122222900390625, -0.02777099609375, 0.033721923828125, 0.031494140625, 0.0296478271484375, 0.01409149169921875, 0.04119873046875, 0.00630950927734375, 0.03240966796875, -0.025787353515625, -0.047088623046875, 0.0102386474609375, 0.0003216266632080078, 0.010650634765625, 0.0191650390625, 0.0465087890625, -0.05743408203125, -0.021240234375, -0.005031585693359375, 0.00002110004425048828, -0.01534271240234375, 0.0007977485656738281, -0.01177215576171875, -0.007389068603515625, 0.00945281982421875, 0.01427459716796875, -0.0188446044921875, -0.007488250732421875, 0.015533447265625, 0.033721923828125, 0.0130462646484375, 0.006622314453125, -0.0293731689453125, -0.00995635986328125, -0.01861572265625, 0.0134735107421875, -0.01271820068359375, 0.0197601318359375, -0.0772705078125, -0.0523681640625, 0.04583740234375, 0.0635986328125, 0.04534912109375, 0.0230255126953125, 0.05517578125, 0.052703857421875, 0.01552581787109375, 0.0127410888671875, 0.0389404296875, -0.00720977783203125, -0.00620269775390625, -0.01337432861328125, -0.00107574462890625, -0.0101165771484375, -0.0086822509765625, -0.01148223876953125, 0.056549072265625, -0.0265350341796875, -0.0092010498046875, 0.01136016845703125, 0.004177093505859375, 0.007083892822265625, 0.04638671875, 0.01425933837890625, -0.007389068603515625, 0.0179290771484375, 0.0088043212890625, -0.0005130767822265625, 0.00009483098983764648, -0.0010576248168945312, -0.00830078125, 0.01001739501953125, -0.037689208984375, 0.052215576171875, -0.016815185546875, 0.003170013427734375, -0.006397247314453125, 0.0002956390380859375, 0.01155853271484375, 0.02191162109375, 0.0228118896484375, 0.0271759033203125, -0.01494598388671875, -0.0020999908447265625, 0.00226593017578125, 0.0249481201171875, 0.01148223876953125, 0.04364013671875, -0.01023101806640625, 0.0164794921875, -0.0265045166015625, -0.0044708251953125, 0.00601959228515625, -0.01334381103515625, 0.0035381317138671875, 0.030731201171875, -0.0050506591796875, -0.0224456787109375, 0.01373291015625, 0.036651611328125, 0.035400390625, -0.03125, 0.02239990234375, 0.0072174072265625, -0.0063018798828125, -0.0218658447265625, 0.01435089111328125, -0.0176849365234375, -0.0115509033203125, -0.021514892578125, -0.01238250732421875, 0.03753662109375, 0.03369140625, 0.01242828369140625, -0.0028133392333984375, -0.0064697265625, -0.0018444061279296875, -0.0146942138671875, 0.0404052734375, -0.0513916015625, 0.006320953369140625, 0.0163421630859375, -0.0201416015625, 0.0001615285873413086, -0.020599365234375, -0.0025272369384765625, 0.01558685302734375, 0.005229949951171875, 0.015289306640625, -0.0472412109375, -0.0125274658203125, 0.0167388916015625, 0.0015707015991210938, -0.03857421875, -0.0004329681396484375, 0.04205322265625, -0.0160675048828125, -0.0301055908203125, 0.020782470703125, -0.00637054443359375, 0.0037822723388671875, -0.0323486328125, -0.01006317138671875, -0.00045037269592285156, -0.0711669921875, -0.00969696044921875, 0.000308990478515625, 0.032623291015625, 0.023468017578125, -0.0703125, 0.02935791015625, 0.000904083251953125, 0.0313720703125, -0.00870513916015625, -0.012359619140625, -0.0224761962890625, 0.01561737060546875, 0.01003265380859375, -0.0228118896484375, -0.055328369140625, 0.0439453125, -0.044708251953125, 0.005615234375, -0.0118255615234375, -0.018829345703125, 0.037933349609375, -0.016357421875, 0.0330810546875, 0.004619598388671875, 0.043426513671875, -0.0257568359375, 0.01505279541015625, 0.0000054836273193359375, 0.01546478271484375, -0.03900146484375, -0.0323486328125, -0.007778167724609375, 0.0092620849609375, 0.01548004150390625, -0.0310821533203125, -0.020172119140625, -0.05426025390625, -0.05841064453125, 0.0174102783203125, 0.0206756591796875, -0.03460693359375, 0.000850677490234375, 0.00434112548828125, 0.006969451904296875, 0.043670654296875, 0.0245513916015625, -0.039764404296875, -0.019012451171875, -0.0196990966796875, 0.027008056640625, 0.02496337890625, 0.047698974609375, -0.023712158203125, -0.00504302978515625, -0.00756072998046875, -0.009368896484375, 0.036376953125, -0.07373046875, 0.0088653564453125, 0.0187530517578125, 0.018524169921875, -0.00521087646484375, 0.042022705078125, 0.05859375, 0.048492431640625, -0.0215301513671875, -0.00670623779296875, 0.005710601806640625, 0.026611328125, 0.06170654296875, 0.02850341796875, 0.005504608154296875, -0.045318603515625, -0.02923583984375, -0.01215362548828125, -0.0244598388671875, -0.045654296875, 0.03131103515625, -0.08984375, -0.030181884765625, -0.0122528076171875, -0.004077911376953125, 0.0226287841796875, -0.04742431640625, -0.01131439208984375, 0.0190277099609375, 0.038116455078125, 0.017364501953125, 0.007083892822265625, -0.03387451171875, 0.038330078125, -0.0176239013671875, 0.0191497802734375, -0.0197296142578125, 0.0208740234375, 0.022064208984375, 0.0101776123046875, -0.017181396484375, -0.03271484375, -0.00839996337890625, 0.053802490234375, -0.019927978515625, 0.04095458984375, -0.05487060546875, -0.024749755859375, -0.03076171875, 0.005901336669921875, 0.00910186767578125, 0.0016260147094726562, -0.002254486083984375, 0.0126953125, 0.022796630859375, 0.0102996826171875, 0.0029659271240234375, 0.0419921875, -0.01107025146484375, 0.039276123046875, 0.05908203125, -0.018096923828125, 0.0728759765625, 0.00623321533203125, 0.0027923583984375, -0.0084991455078125, 0.023681640625, -0.08404541015625, 0.076416015625, 0.0127410888671875, 0.0394287109375, 0.05999755859375 ]
39a9db03ba541fe41cde410904c4ae128bcfb968
Wordpress Stackexchange Q: Disable wpautop, keep line breaks How can I disable automatic paragraph tags, but retain line breaks? I have used this to remove wpautop: remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' ); But there are no more line breaks in the text. A: Here's the full solution. First disable wpautop in your functions.php remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' ); Then parse your content/excerpt with nl2br (a standard PHP function). add_filter( 'the_content', 'nl2br' ); add_filter( 'the_excerpt', 'nl2br' );
Q: Disable wpautop, keep line breaks How can I disable automatic paragraph tags, but retain line breaks? I have used this to remove wpautop: remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' ); But there are no more line breaks in the text. A: Here's the full solution. First disable wpautop in your functions.php remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' ); Then parse your content/excerpt with nl2br (a standard PHP function). add_filter( 'the_content', 'nl2br' ); add_filter( 'the_excerpt', 'nl2br' );
wordpress
{ "language": "en", "length": 79, "provenance": "stackexchange_00019.jsonl.gz:432233", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/98808" }
[ -0.005352020263671875, -0.0019855499267578125, -0.0287933349609375, 0.00656890869140625, 0.00411224365234375, -0.0458984375, 0.04534912109375, 0.00897216796875, 0.01210784912109375, 0.0052642822265625, -0.00658416748046875, -0.03265380859375, 0.0181427001953125, -0.035369873046875, 0.01381683349609375, -0.0225372314453125, -0.0031147003173828125, -0.011932373046875, -0.0155487060546875, -0.01361846923828125, 0.016815185546875, -0.0125274658203125, -0.03240966796875, 0.01541900634765625, -0.026397705078125, 0.00415802001953125, 0.1116943359375, -0.0036602020263671875, -0.007656097412109375, -0.0211639404296875, 0.00934600830078125, -0.01751708984375, 0.0021533966064453125, 0.07489013671875, -0.1004638671875, -0.0039043426513671875, -0.0188751220703125, 0.0379638671875, 0.006107330322265625, 0.00002294778823852539, -0.00907135009765625, 0.018768310546875, -0.01419830322265625, 0.0200653076171875, -0.05126953125, -0.00850677490234375, -0.020751953125, -0.0098419189453125, -0.0187835693359375, 0.04632568359375, -0.0001952648162841797, -0.005893707275390625, 0.0137481689453125, -0.0242919921875, 0.0013017654418945312, -0.01451873779296875, -0.003910064697265625, -0.06292724609375, 0.0198516845703125, -0.018829345703125, 0.006378173828125, -0.0187835693359375, 0.037200927734375, 0.0212860107421875, 0.01873779296875, -0.00478363037109375, -0.0211334228515625, 0.0265655517578125, -0.07940673828125, 0.0025081634521484375, 0.04852294921875, -0.07513427734375, 0.00922393798828125, -0.034393310546875, 0.03411865234375, 0.0001842975616455078, -0.03515625, 0.0006256103515625, 0.0222320556640625, 0.005268096923828125, 0.02020263671875, -0.003658294677734375, -0.045379638671875, -0.01873779296875, 0.025146484375, 0.0012331008911132812, 0.0026874542236328125, 0.0081634521484375, -0.03912353515625, -0.0269927978515625, -0.0206298828125, 0.00490570068359375, -0.057098388671875, -0.006244659423828125, -0.01409912109375, -0.04156494140625, -0.0215301513671875, -0.03582763671875, -0.020660400390625, -0.0066680908203125, 0.0496826171875, -0.062347412109375, 0.07611083984375, -0.0233612060546875, 0.0186309814453125, 0.032440185546875, -0.02313232421875, -0.0010519027709960938, 0.0679931640625, 0.0279388427734375, 0.0269317626953125, -0.00887298583984375, -0.004749298095703125, -0.0240936279296875, 0.00415802001953125, 0.0010747909545898438, -0.0224609375, 0.00777435302734375, 0.004764556884765625, -0.0270233154296875, -0.023681640625, -0.022705078125, -0.0250244140625, 0.02630615234375, 0.01305389404296875, 0.007038116455078125, 0.00955963134765625, 0.00860595703125, 0.007671356201171875, 0.00423431396484375, 0.002166748046875, -0.0064544677734375, -0.007781982421875, 0.03887939453125, 0.0086669921875, -0.01226806640625, 0.055328369140625, 0.0008502006530761719, -0.0135650634765625, 0.02685546875, -0.0220947265625, -0.03338623046875, -0.020965576171875, -0.033203125, -0.0007739067077636719, 0.0275421142578125, 0.025665283203125, 0.00745391845703125, -0.0059356689453125, -0.05450439453125, 0.020721435546875, -0.0121002197265625, 0.04852294921875, 0.0028591156005859375, -0.028839111328125, -0.0504150390625, 0.04803466796875, -0.05255126953125, -0.01422882080078125, -0.077880859375, -0.0115966796875, -0.01493072509765625, 0.0204620361328125, -0.061126708984375, -0.05780029296875, -0.0026454925537109375, -0.0389404296875, -0.0047454833984375, 0.0293426513671875, -0.01454925537109375, 0.0011205673217773438, -0.004016876220703125, 0.028594970703125, -0.01165008544921875, -0.0100860595703125, 0.0183258056640625, -0.006664276123046875, -0.0064239501953125, 0.0203094482421875, 0.0206451416015625, -0.0073699951171875, -0.01544189453125, 0.028533935546875, -0.00971221923828125, -0.0906982421875, 0.05517578125, 0.01222991943359375, 0.120361328125, 0.034759521484375, 0.0256805419921875, 0.01517486572265625, -0.033905029296875, -0.01419830322265625, -0.007537841796875, -0.0010929107666015625, -0.0587158203125, 0.0182037353515625, -0.030120849609375, 0.007534027099609375, 0.024078369140625, 0.02374267578125, -0.0009632110595703125, -0.01389312744140625, -0.006420135498046875, -0.05279541015625, -0.0283203125, -0.00763702392578125, 0.0235137939453125, -0.00168609619140625, 0.003261566162109375, 0.00771331787109375, -0.0207061767578125, -0.0007100105285644531, -0.0011234283447265625, -0.024932861328125, -0.0005774497985839844, -0.0020275115966796875, 0.040313720703125, 0.01544952392578125, 0.007598876953125, 0.053955078125, -0.0147552490234375, 0.06640625, 0.01702880859375, 0.0164031982421875, -0.072021484375, -0.00862884521484375, -0.04278564453125, -0.004993438720703125, -0.04962158203125, 0.01531982421875, 0.06915283203125, 0.051483154296875, 0.054046630859375, -0.00926971435546875, 0.01107025146484375, 0.0056610107421875, -0.053558349609375, -0.0208892822265625, 0.03143310546875, 0.047027587890625, 0.06732177734375, 0.0062713623046875, -0.0535888671875, 0.037109375, -0.076904296875, 0.007312774658203125, -0.0457763671875, -0.015472412109375, -0.0207366943359375, 0.005138397216796875, -0.03863525390625, 0.05523681640625, -0.00958251953125, -0.008209228515625, 0.035430908203125, -0.0210418701171875, -0.0077362060546875, 0.01358795166015625, 0.003261566162109375, 0.01296234130859375, 0.02069091796875, 0.03240966796875, -0.02191162109375, 0.0164031982421875, 0.0018091201782226562, 0.041412353515625, 0.05224609375, -0.022796630859375, -0.0240325927734375, 0.0219268798828125, 0.05645751953125, -0.0225677490234375, 0.047393798828125, -0.0047149658203125, -0.038330078125, -0.0251312255859375, 0.0171356201171875, -0.04669189453125, 0.0105133056640625, -0.008636474609375, 0.0322265625, 0.054718017578125, -0.01171112060546875, 0.01230621337890625, -0.044097900390625, 0.019622802734375, -0.0230712890625, -0.01531982421875, -0.036468505859375, -0.01483917236328125, 0.03961181640625, 0.004894256591796875, 0.00997161865234375, 0.017120361328125, 0.0056915283203125, 0.0226898193359375, -0.0300750732421875, 0.04998779296875, -0.034393310546875, 0.040557861328125, 0.058197021484375, -0.0238494873046875, 0.01219940185546875, 0.025848388671875, -0.026641845703125, 0.045989990234375, 0.017852783203125, 0.0181732177734375, 0.041961669921875, -0.0751953125, 0.00372314453125, 0.026519775390625, 0.0161895751953125, -0.005107879638671875, -0.03173828125, -0.01593017578125, 0.0220794677734375, -0.056610107421875, -0.007720947265625, 0.034759521484375, -0.053741455078125, -0.03106689453125, 0.035675048828125, -0.05853271484375, 0.00035881996154785156, 0.08538818359375, -0.026580810546875, -0.05078125, -0.026947021484375, -0.055755615234375, -0.052978515625, -0.051971435546875, 0.06427001953125, -0.0098114013671875, 0.0306243896484375, 0.00673675537109375, 0.0977783203125, 0.017425537109375, -0.058685302734375, 0.00919342041015625, -0.0322265625, -0.03594970703125, 0.03704833984375, -0.0139923095703125, 0.0024261474609375, 0.0220947265625, 0.009613037109375, -0.01898193359375, 0.0161590576171875, -0.007259368896484375, -0.0307769775390625, 0.00669097900390625, 0.025665283203125, 0.037445068359375, 0.0109710693359375, -0.0167083740234375, 0.014923095703125, 0.01593017578125, -0.032501220703125, -0.0269012451171875, 0.00504302978515625, -0.026458740234375, 0.02093505859375, -0.010986328125, -0.0009250640869140625, -0.01306915283203125, 0.050689697265625, -0.01715087890625, -0.0026035308837890625, 0.04052734375, -0.035125732421875, 0.053070068359375, 0.0020694732666015625, -0.0213623046875, -0.0216827392578125, 0.03631591796875, -0.00020647048950195312, 0.0157623291015625, 0.0170440673828125, 0.0149993896484375, -0.0157012939453125, 0.0082550048828125, -0.050537109375, 0.01322174072265625, 0.0164642333984375, -0.021759033203125, -0.0089569091796875, 0.0174102783203125, -0.0012159347534179688, 0.003963470458984375, 0.0238800048828125, -0.027069091796875, -0.0257568359375, 0.0001327991485595703, 0.030548095703125, -0.04376220703125, -0.06500244140625, -0.006496429443359375, 0.00014293193817138672, -0.004329681396484375, -0.007415771484375, -0.04095458984375, 0.01593017578125, -0.01324462890625, -0.035369873046875, 0.034942626953125, -0.029632568359375, 0.05706787109375, -0.03045654296875, -0.0033359527587890625, 0.037261962890625, -0.01087188720703125, -0.0177001953125, -0.03857421875, 0.01026153564453125, -0.03961181640625, 0.008514404296875, -0.0440673828125, 0.01531982421875, 0.0132904052734375, -0.0016727447509765625, 0.0008134841918945312, 0.030120849609375, 0.0233917236328125, -0.0328369140625, 0.0248565673828125, -0.00823211669921875, -0.0172271728515625, 0.029205322265625, 0.035430908203125, -0.029541015625, -0.0204925537109375, -0.022003173828125, -0.0200653076171875, 0.0653076171875, -0.0011720657348632812, 0.05487060546875, 0.0013742446899414062, -0.001140594482421875, -0.030303955078125, -0.03521728515625, -0.06378173828125, 0.01169586181640625, -0.051483154296875, 0.009735107421875, -0.032623291015625, -0.045166015625, 0.047698974609375, 0.010223388671875, -0.0241241455078125, -0.0009226799011230469, 0.0462646484375, 0.0229339599609375, -0.01983642578125, -0.004352569580078125, 0.00839996337890625, 0.02960205078125, 0.0059051513671875, 0.041473388671875, 0.0036029815673828125, -0.03143310546875, 0.06793212890625, 0.0146484375, 0.0090484619140625, 0.01042938232421875, 0.025665283203125, 0.006977081298828125, -0.0093994140625, 0.01349639892578125, -0.003875732421875, 0.007671356201171875, 0.007266998291015625, 0.01018524169921875, -0.0171356201171875, 0.03955078125, 0.018646240234375, -0.0011911392211914062, -0.0061798095703125, 0.000911712646484375, -0.035247802734375, 0.0276641845703125, 0.0192413330078125, -0.01021575927734375, -0.00567626953125, 0.0249786376953125, -0.0230712890625, -0.0189361572265625, -0.0025310516357421875, -0.0171051025390625, 0.03387451171875, -0.04827880859375, 0.058929443359375, -0.06561279296875, -0.033416748046875, -0.0146331787109375, -0.002658843994140625, 0.0079193115234375, -0.024658203125, -0.048614501953125, -0.00628662109375, 0.0015926361083984375, 0.0467529296875, 0.05517578125, 0.0224456787109375, 0.04351806640625, -0.0026798248291015625, 0.005359649658203125, 0.0160369873046875, 0.00171661376953125, -0.00659942626953125, -0.0406494140625, -0.00972747802734375, -0.0213775634765625, -0.0023708343505859375, 0.037567138671875, -0.004093170166015625, -0.0265960693359375, 0.01837158203125, -0.0152435302734375, -0.004650115966796875, -0.001232147216796875, 0.0303802490234375, 0.019927978515625, -0.0016021728515625, -0.01105499267578125, 0.0099945068359375, 0.013641357421875, -0.029510498046875, -0.0237579345703125, 0.045013427734375, 0.044036865234375, -0.0120391845703125, -0.0241851806640625, -0.0173797607421875, -0.0360107421875, 0.004070281982421875, 0.0136871337890625, 0.005126953125, -0.01206207275390625, -0.02337646484375, -0.002315521240234375, 0.029205322265625, -0.0020427703857421875, -0.006061553955078125, -0.0264434814453125, -0.01806640625, -0.038604736328125, 0.0462646484375, -0.08258056640625, 0.0014085769653320312, 0.0234375, 0.0246734619140625, -0.046539306640625, -0.0416259765625, -0.023468017578125, 0.0289764404296875, -0.0259246826171875, -0.0021266937255859375, 0.04296875, -0.050689697265625, 0.0211944580078125, -0.02947998046875, 0.04852294921875, -0.0244140625, 0.015655517578125, 0.047119140625, 0.043182373046875, -0.05194091796875, -0.018524169921875, -0.045318603515625, -0.034271240234375, -0.042388916015625, -0.0355224609375, -0.04205322265625, 0.0016498565673828125, 0.0019817352294921875, 0.017608642578125, -0.0013799667358398438, 0.001220703125, 0.020965576171875, 0.0269927978515625, 0.000013828277587890625, 0.06536865234375, -0.03668212890625, 0.068359375, 0.0210113525390625, 0.056549072265625, 0.004474639892578125, 0.038604736328125, 0.0153350830078125, -0.031890869140625, 0.0260467529296875, -0.057525634765625, -0.0462646484375, -0.017486572265625, -0.03955078125, 0.031158447265625, -0.0019817352294921875, -0.003475189208984375, -0.0135650634765625, 0.0110321044921875, 0.00970458984375, -0.02032470703125, 0.00408935546875, 0.0256805419921875, -0.002765655517578125, -0.0261688232421875, 0.00495147705078125, 0.01486968994140625, -0.033233642578125, -0.0283966064453125, 0.0297698974609375, 0.0214080810546875, 0.0305023193359375, 0.00057220458984375, 0.0172271728515625, -0.009521484375, -0.008148193359375, -0.006572723388671875, 0.03875732421875, 0.02288818359375, 0.03387451171875, 0.0206756591796875, 0.0287017822265625, 0.01110076904296875, -0.007389068603515625, 0.01084136962890625, 0.005634307861328125, 0.025360107421875, 0.01409149169921875, -0.00827789306640625, 0.02899169921875, 0.04766845703125, 0.07366943359375, -0.07244873046875, 0.0189666748046875, 0.0285186767578125, 0.01007843017578125, 0.0187530517578125, -0.03192138671875, 0.0003104209899902344, -0.0478515625, 0.076904296875, -0.0167999267578125, -0.0145721435546875, 0.01444244384765625, -0.01526641845703125, -0.0177764892578125, -0.0165863037109375, 0.0278778076171875, 0.0131988525390625, -0.057525634765625, 0.05023193359375, 0.0305023193359375, 0.01715087890625, -0.041015625, -0.0173187255859375, 0.035797119140625, -0.050628662109375, -0.09912109375, 0.002285003662109375, 0.009979248046875, -0.0127716064453125, 0.0034770965576171875, -0.0192718505859375, 0.017608642578125, 0.0692138671875, -0.049560546875, 0.052459716796875, 0.04888916015625, -0.034576416015625, -0.0264739990234375, -0.0299530029296875, 0.02313232421875, 0.053009033203125, -0.007366180419921875, 0.03753662109375, 0.019622802734375, -0.053436279296875, 0.0078887939453125, 0.0147247314453125, 0.038543701171875, 0.005527496337890625, -0.035400390625, 0.0390625, -0.01097869873046875, -0.0216064453125, -0.0288848876953125, 0.00011932849884033203, -0.037750244140625, 0.01537322998046875, -0.037261962890625, -0.020477294921875, 0.01084136962890625, -0.0711669921875, -0.057708740234375, 0.0933837890625, 0.02923583984375, 0.01546478271484375, -0.0084075927734375, 0.02117919921875, -0.04046630859375, 0.00690460205078125, -0.016204833984375, 0.037750244140625, 0.006114959716796875, 0.0177459716796875, -0.0074462890625, -0.0078582763671875, 0.013946533203125, 0.03289794921875, 0.0263519287109375, 0.0016469955444335938, 0.01059722900390625, -0.03717041015625, -0.00626373291015625, 0.03955078125, -0.009674072265625, -0.0085296630859375, 0.0048980712890625, 0.0347900390625, -0.0168914794921875, -0.07049560546875, 0.0271759033203125, -0.10076904296875, -0.006374359130859375, 0.00995635986328125, 0.031768798828125, 0.0301513671875, -0.0222930908203125, -0.00623321533203125, 0.040374755859375, -0.03289794921875, -0.024383544921875, 0.004764556884765625, 0.0026645660400390625, 0.0439453125, 0.0435791015625, -0.068115234375, -0.05926513671875, -0.03173828125, 0.048065185546875, 0.0260162353515625, 0.05010986328125, 0.044464111328125, 0.033843994140625, 0.0175628662109375, 0.016571044921875, 0.04071044921875, 0.01922607421875, -0.026092529296875, -0.046844482421875, -0.004985809326171875, -0.00728607177734375, -0.0162506103515625, 0.03729248046875, 0.0269927978515625, -0.041900634765625, 0.000713348388671875, -0.0193328857421875, 0.0121917724609375, 0.01085662841796875, 0.004787445068359375, -0.02587890625, 0.004665374755859375, -0.049774169921875, -0.01593017578125, 0.006626129150390625, -0.016845703125, -0.0001474618911743164, 0.0011434555053710938, 0.015716552734375, 0.0738525390625, -0.0310821533203125, -0.01580810546875, -0.056427001953125, 0.00812530517578125, 0.0200958251953125, 0.0233001708984375, 0.02069091796875, 0.024658203125, 0.0225982666015625, -0.016876220703125, -0.01197052001953125, 0.0255584716796875, -0.00832366943359375, 0.0089874267578125, -0.0291290283203125, -0.01629638671875, -0.011138916015625, 0.0278167724609375, 0.03790283203125, 0.006618499755859375, 0.055419921875, 0.0258026123046875, -0.05902099609375, 0.01285552978515625, 0.0146026611328125, -0.02886962890625, -0.040771484375, -0.0389404296875, -0.03912353515625, 0.005664825439453125, 0.00666046142578125, 0.026763916015625, -0.015655517578125, 0.00623321533203125, 0.0243988037109375, -0.0171966552734375, 0.01396942138671875, -0.005382537841796875, -0.0093231201171875, 0.0321044921875, -0.048553466796875, 0.041168212890625, -0.07958984375, -0.0237274169921875, -0.01439666748046875, -0.041534423828125, 0.03509521484375, 0.04425048828125, -0.0200958251953125, 0.006195068359375, -0.01202392578125, 0.01499176025390625, 0.00971221923828125, -0.041534423828125, -0.0186767578125, -0.00948333740234375, 0.031768798828125, -0.00968170166015625, -0.0229034423828125, -0.030609130859375, -0.00763702392578125, 0.040679931640625, -0.006023406982421875, 0.054656982421875, -0.0070648193359375, 0.0292510986328125, -0.04437255859375, 0.0218048095703125, -0.0182952880859375, -0.006343841552734375, -0.046661376953125, 0.05657958984375, 0.027008056640625, -0.0177154541015625, -0.038482666015625, 0.022552490234375, 0.041351318359375, -0.0147857666015625, 0.042144775390625, -0.005832672119140625, -0.00640106201171875, -0.0457763671875, 0.0198516845703125, -0.014068603515625, -0.0306243896484375, -0.043182373046875, -0.02764892578125, 0.039306640625, 0.0291900634765625, 0.017578125, 0.038665771484375, 0.01299285888671875, 0.009765625, 0.0204315185546875, -0.0230255126953125, 0.026123046875, 0.037933349609375, -0.0399169921875, -0.0171051025390625, -0.020294189453125, -0.024383544921875, -0.01174163818359375, -0.007678985595703125, -0.01181793212890625, 0.0242462158203125, -0.048248291015625, -0.056396484375, -0.0108489990234375, 0.034332275390625, 0.01212310791015625, 0.01336669921875, -0.0275421142578125, -0.007083892822265625, -0.0121307373046875, 0.0303497314453125, 0.0036525726318359375, -0.003604888916015625, -0.010009765625, 0.005279541015625, -0.006366729736328125, -0.0190582275390625, -0.0594482421875, -0.0191650390625, 0.054351806640625, -0.002353668212890625, -0.03570556640625, 0.01218414306640625, -0.042083740234375, -0.0009174346923828125, 0.00782012939453125, 0.0123748779296875, -0.01195526123046875, 0.00496673583984375, -0.01812744140625, -0.07696533203125, -0.06903076171875, 0.093017578125, -0.05621337890625, -0.007251739501953125, 0.015838623046875, 0.01270294189453125, 0.0002453327178955078, -0.00933837890625, -0.0009717941284179688, 0.027923583984375, -0.0164947509765625, -0.016693115234375, 0.0213470458984375, 0.01800537109375, 0.014923095703125, -0.010589599609375, -0.037750244140625, 0.059173583984375, 0.037628173828125, -0.0141143798828125, 0.0025577545166015625, -0.01163482666015625, -0.056427001953125, -0.07855224609375, -0.046630859375, 0.01129913330078125, -0.033477783203125, 0.016448974609375, -0.0377197265625, -0.0256195068359375, -0.002857208251953125, -0.0016374588012695312, -0.002918243408203125, -0.027435302734375, 0.0204620361328125, -0.00579833984375, 0.11956787109375, -0.035491943359375, -0.0002772808074951172, 0.053955078125, 0.04925537109375, 0.0421142578125, -0.00046372413635253906, -0.022552490234375, 0.01470947265625, 0.01450347900390625, 0.041839599609375, -0.01490020751953125, 0.013671875, 0.0185699462890625, -0.01800537109375, -0.0131072998046875, 0.0026683807373046875, 0.004119873046875, 0.002197265625, -0.02056884765625, 0.0638427734375, -0.00617218017578125, -0.04248046875, 0.0215301513671875, 0.0141448974609375, 0.0092315673828125, 0.01715087890625, -0.0133514404296875, -0.0227508544921875, -0.0169677734375, -0.0030651092529296875, -0.0205535888671875, 0.0435791015625, -0.06085205078125, -0.0312347412109375, -0.002410888671875, -0.03955078125, 0.0166168212890625, -0.0341796875, -0.07330322265625, 0.0032711029052734375, -0.0234832763671875, -0.038116455078125, -0.0036945343017578125, 0.04290771484375, -0.042755126953125, 0.02728271484375, -0.04107666015625, 0.0154876708984375, -0.0323486328125, 0.005115509033203125, 0.0024890899658203125, 0.01537322998046875, -0.006008148193359375, 0.029205322265625, -0.0027828216552734375, -0.02154541015625, 0.0150146484375, -0.0018892288208007812, -0.008697509765625, -0.0243682861328125, -0.01274871826171875, -0.0293121337890625, -0.0073394775390625, -0.01110076904296875, -0.018585205078125, 0.0244293212890625, -0.025848388671875, 0.007061004638671875, -0.011810302734375, -0.021881103515625, 0.01515960693359375, 0.00988006591796875, 0.01297760009765625, -0.0379638671875, 0.0304412841796875, -0.004535675048828125, 0.00847625732421875, 0.0272674560546875 ]
5cbaa4cf495a78e787110127802d099032987e54
Wordpress Stackexchange Q: Custom Role does not have access to dashboard I was just adding a custom role by using the add_role() function. Here is the code below: add_role('user', 'User', array('read')); I figured this would give the same level of access as the subscribers role. Technically I want them to be the same but I don't want to use the subscribers as a role for certain users because there will be different access between the two. However, although, from what I read on the wordpress codex site, the subscribers has only one capability and that is to 'read' it has access to the dashboard and can edit their own profile. My custom role cannot. I get the following message when going to the admin panel. You do not have sufficient permissions to access this page. Why is that? Hoe do get the right permissions to do this? Thanks, Joe A: You have to give the capability a true or false, like this: add_role('user', 'User', array( 'read' => true )); To fix it, first remove the role and than re-add it again. remove_role('user'); add_role('user', 'User', array('read' => true)); http://codex.wordpress.org/Function_Reference/add_role
Q: Custom Role does not have access to dashboard I was just adding a custom role by using the add_role() function. Here is the code below: add_role('user', 'User', array('read')); I figured this would give the same level of access as the subscribers role. Technically I want them to be the same but I don't want to use the subscribers as a role for certain users because there will be different access between the two. However, although, from what I read on the wordpress codex site, the subscribers has only one capability and that is to 'read' it has access to the dashboard and can edit their own profile. My custom role cannot. I get the following message when going to the admin panel. You do not have sufficient permissions to access this page. Why is that? Hoe do get the right permissions to do this? Thanks, Joe A: You have to give the capability a true or false, like this: add_role('user', 'User', array( 'read' => true )); To fix it, first remove the role and than re-add it again. remove_role('user'); add_role('user', 'User', array('read' => true)); http://codex.wordpress.org/Function_Reference/add_role
wordpress
{ "language": "en", "length": 186, "provenance": "stackexchange_00019.jsonl.gz:432236", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/98819" }
[ 0.07861328125, -0.0262451171875, 0.0248565673828125, -0.01806640625, -0.004974365234375, -0.033721923828125, 0.04534912109375, -0.02899169921875, -0.019775390625, 0.040985107421875, 0.004337310791015625, -0.019561767578125, -0.01143646240234375, -0.0124664306640625, -0.039703369140625, -0.0382080078125, 0.032501220703125, -0.0156097412109375, 0.037078857421875, -0.020782470703125, 0.01361846923828125, -0.0006108283996582031, 0.032379150390625, 0.047027587890625, 0.021820068359375, 0.0074462890625, -0.00925445556640625, -0.0158538818359375, -0.0013723373413085938, -0.011077880859375, 0.0180206298828125, -0.006061553955078125, -0.020751953125, 0.04071044921875, -0.0011615753173828125, -0.0258636474609375, 0.015380859375, 0.0030498504638671875, 0.021087646484375, 0.008392333984375, 0.003864288330078125, 0.0246429443359375, 0.0304412841796875, 0.0240478515625, -0.0029354095458984375, -0.05816650390625, 0.01482391357421875, -0.04046630859375, 0.0296783447265625, 0.0182342529296875, 0.0038928985595703125, -0.0051727294921875, 0.005645751953125, -0.0018968582153320312, -0.01428985595703125, -0.032684326171875, -0.0105133056640625, 0.0260467529296875, 0.024810791015625, -0.01373291015625, -0.0271759033203125, 0.01103973388671875, 0.0015954971313476562, -0.0117645263671875, -0.004669189453125, -0.01132965087890625, 0.03179931640625, 0.0302734375, -0.0322265625, -0.02337646484375, 0.007251739501953125, -0.0010614395141601562, 0.0043182373046875, -0.0096588134765625, -0.0242462158203125, -0.008056640625, -0.0114593505859375, -0.0372314453125, 0.0139007568359375, -0.0005159378051757812, -0.019378662109375, -0.001979827880859375, -0.026031494140625, 0.023956298828125, -0.0300750732421875, 0.03460693359375, -0.033111572265625, -0.012786865234375, 0.0033664703369140625, 0.00894927978515625, -0.0086822509765625, -0.0195159912109375, 0.0209197998046875, 0.022064208984375, -0.01690673828125, -0.010284423828125, 0.034820556640625, 0.0679931640625, -0.00986480712890625, -0.01277923583984375, 0.006313323974609375, -0.0265655517578125, -0.004062652587890625, -0.037322998046875, 0.01555633544921875, 0.0122833251953125, -0.01995849609375, -0.04449462890625, 0.01520538330078125, 0.023956298828125, -0.0175628662109375, -0.0172882080078125, 0.0017709732055664062, -0.04132080078125, -0.0006427764892578125, 0.002994537353515625, -0.0229949951171875, 0.01094818115234375, 0.0095977783203125, 0.0038280487060546875, -0.02093505859375, 0.0284881591796875, -0.05023193359375, -0.07080078125, 0.01544952392578125, -0.037017822265625, -0.0287017822265625, 0.0289764404296875, 0.025177001953125, 0.00801849365234375, -0.057159423828125, 0.0059356689453125, 0.060211181640625, 0.04193115234375, 0.039520263671875, -0.0308074951171875, 0.04315185546875, -0.0212249755859375, -0.01250457763671875, 0.0258941650390625, 0.0242919921875, -0.0211639404296875, -0.0010662078857421875, 0.0012760162353515625, -0.022003173828125, 0.012725830078125, 0.006290435791015625, 0.0188446044921875, 0.00862884521484375, -0.02691650390625, -0.03875732421875, 0.006092071533203125, 0.0035419464111328125, 0.032073974609375, 0.036163330078125, 0.0095367431640625, 0.017669677734375, -0.003345489501953125, 0.0145721435546875, 0.0091094970703125, 0.0252685546875, -0.00507354736328125, -0.0021419525146484375, -0.04351806640625, -0.052520751953125, 0.0016498565673828125, -0.06317138671875, -0.00798797607421875, 0.0236358642578125, -0.0264739990234375, 0.034423828125, -0.02862548828125, -0.00972747802734375, 0.02471923828125, 0.0286102294921875, 0.0457763671875, -0.016387939453125, 0.02911376953125, 0.0263519287109375, -0.050262451171875, -0.04168701171875, -0.049041748046875, 0.051513671875, -0.0235443115234375, -0.049835205078125, 0.006023406982421875, -0.0021953582763671875, 0.027862548828125, 0.026397705078125, 0.0142059326171875, 0.0025730133056640625, 0.017730712890625, -0.0005483627319335938, -0.006984710693359375, -0.0200347900390625, -0.033355712890625, 0.00945281982421875, -0.0009660720825195312, -0.0272064208984375, 0.044464111328125, 0.05499267578125, -0.025360107421875, 0.029571533203125, -0.044036865234375, -0.041168212890625, -0.0042724609375, -0.014251708984375, 0.0259552001953125, -0.0012941360473632812, -0.007541656494140625, 0.007488250732421875, -0.0102081298828125, -0.0082855224609375, -0.0457763671875, -0.03076171875, 0.006168365478515625, -0.0000743865966796875, 0.08380126953125, -0.005680084228515625, 0.030792236328125, -0.004703521728515625, -0.0638427734375, 0.0165557861328125, 0.0232086181640625, 0.0631103515625, 0.02178955078125, -0.01436614990234375, 0.00081634521484375, 0.06439208984375, 0.01824951171875, -0.019775390625, 0.00528717041015625, 0.047607421875, 0.01206207275390625, -0.0125274658203125, 0.021209716796875, 0.037933349609375, -0.06365966796875, -0.020751953125, 0.0377197265625, 0.031524658203125, 0.018524169921875, -0.00946044921875, 0.0116424560546875, -0.0023555755615234375, -0.08380126953125, 0.006023406982421875, -0.0015430450439453125, -0.0230712890625, 0.055419921875, 0.006801605224609375, 0.05316162109375, -0.0018568038940429688, 0.0533447265625, -0.014373779296875, 0.03466796875, -0.035186767578125, 0.0161285400390625, -0.028839111328125, -0.00940704345703125, 0.003147125244140625, -0.023681640625, 0.0023956298828125, -0.0303192138671875, -0.0335693359375, 0.0168914794921875, -0.001491546630859375, 0.01568603515625, -0.01540374755859375, -0.014404296875, 0.0239715576171875, 0.0110321044921875, -0.004726409912109375, 0.03131103515625, 0.0179443359375, 0.00043463706970214844, -0.0296478271484375, -0.01103973388671875, -0.005588531494140625, 0.0214691162109375, -0.01088714599609375, 0.024627685546875, -0.0076904296875, -0.0097808837890625, 0.01300811767578125, -0.0308837890625, -0.0085296630859375, -0.015045166015625, 0.0299072265625, -0.0175933837890625, 0.025665283203125, -0.02203369140625, -0.0279083251953125, 0.030364990234375, 0.01020050048828125, -0.050811767578125, -0.0013523101806640625, -0.06707763671875, 0.040802001953125, -0.028167724609375, 0.058013916015625, 0.0838623046875, 0.0189361572265625, 0.009552001953125, -0.0025615692138671875, -0.040191650390625, -0.045135498046875, 0.047393798828125, 0.021759033203125, -0.0411376953125, 0.0174713134765625, 0.08648681640625, 0.04632568359375, -0.0171661376953125, 0.06671142578125, 0.0296478271484375, 0.0126495361328125, 0.050811767578125, 0.0213470458984375, -0.0024776458740234375, 0.032867431640625, -0.055938720703125, -0.0034770965576171875, -0.017578125, -0.032958984375, -0.01641845703125, 0.004146575927734375, -0.006816864013671875, -0.0306243896484375, 0.00301361083984375, -0.02239990234375, -0.02496337890625, -0.04681396484375, 0.00043702125549316406, -0.0005097389221191406, 0.01337432861328125, 0.011993408203125, 0.0122528076171875, 0.0010862350463867188, -0.028961181640625, 0.006198883056640625, -0.0015974044799804688, -0.01071929931640625, 0.0028362274169921875, 0.013916015625, -0.0086669921875, 0.01177978515625, -0.0032711029052734375, 0.0209808349609375, 0.0166473388671875, -0.0198974609375, -0.0215301513671875, -0.002391815185546875, -0.0183868408203125, 0.0133056640625, 0.042510986328125, 0.0013608932495117188, 0.004810333251953125, 0.05950927734375, -0.0242156982421875, 0.0166168212890625, -0.010986328125, -0.010009765625, -0.018890380859375, -0.0036220550537109375, -0.017578125, -0.01824951171875, 0.01056671142578125, 0.0024700164794921875, 0.015716552734375, -0.026092529296875, 0.02008056640625, -0.03192138671875, 0.0038604736328125, -0.0006823539733886719, 0.03118896484375, 0.026641845703125, -0.0162506103515625, 0.0008287429809570312, 0.00528717041015625, 0.0186004638671875, -0.0178375244140625, 0.015594482421875, -0.04541015625, -0.08331298828125, 0.06640625, -0.035980224609375, -0.006832122802734375, -0.04083251953125, -0.02947998046875, 0.018829345703125, 0.110595703125, 0.006694793701171875, -0.00403594970703125, 0.0033721923828125, -0.004718780517578125, -0.0279693603515625, 0.004669189453125, -0.0518798828125, -0.003871917724609375, -0.00785064697265625, -0.032135009765625, -0.0248870849609375, -0.01316070556640625, -0.02178955078125, -0.0051116943359375, -0.00926971435546875, -0.01371002197265625, 0.054351806640625, -0.0465087890625, 0.03424072265625, 0.02716064453125, 0.0268096923828125, -0.0122222900390625, -0.033203125, -0.01788330078125, -0.09698486328125, -0.01654052734375, -0.0261993408203125, 0.08392333984375, -0.002033233642578125, 0.042266845703125, -0.00919342041015625, 0.0655517578125, 0.037506103515625, -0.0247039794921875, 0.0157928466796875, -0.0185699462890625, 0.0210113525390625, 0.0156707763671875, -0.003932952880859375, -0.00896453857421875, -0.0216522216796875, -0.0025463104248046875, 0.02557373046875, 0.035888671875, -0.052581787109375, -0.046630859375, -0.0286712646484375, -0.016754150390625, -0.07928466796875, -0.0237274169921875, 0.00047206878662109375, 0.0224151611328125, -0.0152587890625, 0.0299530029296875, -0.0217437744140625, -0.07745361328125, 0.0202484130859375, -0.035675048828125, -0.0014142990112304688, 0.01444244384765625, 0.080078125, 0.029998779296875, -0.0002925395965576172, 0.00823211669921875, -0.0021152496337890625, 0.0426025390625, 0.0014410018920898438, 0.03399658203125, 0.0269012451171875, -0.02587890625, 0.040008544921875, 0.006938934326171875, 0.0180816650390625, -0.01093292236328125, 0.0184173583984375, 0.018524169921875, -0.0131683349609375, 0.01629638671875, 0.0193328857421875, -0.02593994140625, -0.032470703125, -0.0202484130859375, -0.01727294921875, 0.03790283203125, 0.046112060546875, -0.04644775390625, 0.0689697265625, -0.0004558563232421875, -0.005214691162109375, -0.0011587142944335938, -0.06573486328125, 0.05133056640625, 0.025848388671875, -0.00672149658203125, -0.002506256103515625, -0.01226806640625, 0.0084991455078125, 0.0021820068359375, 0.00836944580078125, -0.0178375244140625, 0.03790283203125, 0.00286865234375, 0.007663726806640625, -0.0160369873046875, -0.0215911865234375, 0.041748046875, 0.01666259765625, -0.053802490234375, 0.0152435302734375, -0.00751495361328125, 0.04937744140625, 0.001880645751953125, 0.0172882080078125, 0.037872314453125, 0.0391845703125, 0.0111846923828125, -0.0021686553955078125, 0.0254669189453125, 0.021728515625, -0.0240478515625, -0.018402099609375, 0.00811004638671875, -0.0277099609375, -0.007244110107421875, 0.03936767578125, -0.00379180908203125, 0.0175933837890625, -0.011993408203125, 0.07623291015625, 0.072021484375, 0.01727294921875, -0.0308380126953125, 0.048797607421875, -0.00797271728515625, 0.01078033447265625, 0.001247406005859375, -0.0189971923828125, -0.008544921875, 0.0205841064453125, 0.024566650390625, 0.02142333984375, -0.0184478759765625, 0.00339508056640625, -0.01491546630859375, -0.0184478759765625, 0.035186767578125, -0.01233673095703125, -0.06585693359375, -0.024810791015625, 0.0142364501953125, 0.0155181884765625, -0.0155181884765625, 0.00244140625, 0.02264404296875, -0.018951416015625, 0.0281524658203125, 0.025238037109375, 0.018463134765625, -0.0268096923828125, -0.032012939453125, -0.048095703125, -0.0164947509765625, 0.00922393798828125, 0.01226043701171875, -0.0205230712890625, -0.01012420654296875, -0.046875, 0.043212890625, 0.0211181640625, 0.031341552734375, -0.06195068359375, -0.0051727294921875, -0.08123779296875, -0.0215911865234375, 0.065185546875, 0.01971435546875, -0.005741119384765625, -0.024139404296875, -0.03668212890625, -0.02008056640625, -0.052337646484375, -0.049285888671875, -0.0098724365234375, 0.016387939453125, 0.0255584716796875, 0.0246734619140625, 0.0234527587890625, -0.014556884765625, -0.033935546875, 0.006954193115234375, 0.02642822265625, 0.046478271484375, 0.00641632080078125, 0.052703857421875, 0.0163116455078125, 0.049163818359375, 0.034027099609375, 0.027496337890625, -0.023284912109375, -0.02935791015625, 0.0164794921875, 0.005741119384765625, -0.01373291015625, -0.053863525390625, -0.0018825531005859375, -0.014434814453125, 0.065673828125, -0.0125885009765625, 0.00972747802734375, 0.00189971923828125, 0.0167388916015625, -0.00959014892578125, -0.0296173095703125, 0.004848480224609375, -0.0019168853759765625, 0.0184173583984375, -0.01110076904296875, 0.045745849609375, 0.002651214599609375, 0.0038700103759765625, -0.0035037994384765625, -0.0129241943359375, 0.0261077880859375, 0.001911163330078125, -0.051239013671875, 0.0445556640625, 0.07110595703125, -0.0206146240234375, 0.044281005859375, 0.0168914794921875, 0.0124359130859375, 0.033447265625, 0.0086822509765625, -0.00598907470703125, -0.0254669189453125, 0.0219879150390625, -0.00008857250213623047, 0.002742767333984375, 0.0123443603515625, -0.006885528564453125, 0.037078857421875, 0.089111328125, 0.07049560546875, -0.115966796875, 0.0088348388671875, -0.004974365234375, -0.0036163330078125, 0.075927734375, -0.0298614501953125, 0.00007271766662597656, -0.028594970703125, 0.058502197265625, -0.003757476806640625, -0.025665283203125, 0.01332855224609375, -0.0237579345703125, -0.036468505859375, 0.014739990234375, -0.002185821533203125, 0.01702880859375, 0.07012939453125, -0.0234527587890625, -0.05511474609375, 0.0176849365234375, 0.0151824951171875, 0.00823211669921875, 0.0149383544921875, -0.0367431640625, -0.075927734375, -0.02740478515625, -0.031494140625, -0.04852294921875, 0.043182373046875, -0.00530242919921875, 0.022003173828125, 0.028839111328125, -0.01421356201171875, 0.033966064453125, -0.0011444091796875, -0.0219573974609375, -0.00933837890625, -0.06500244140625, 0.0058746337890625, 0.027069091796875, -0.060272216796875, 0.032806396484375, 0.01366424560546875, -0.051300048828125, -0.00977325439453125, -0.0296478271484375, 0.050872802734375, -0.0293426513671875, -0.01030731201171875, 0.00001633167266845703, 0.0003948211669921875, 0.00501251220703125, 0.04296875, 0.008697509765625, -0.036224365234375, -0.04022216796875, 0.042449951171875, -0.042938232421875, 0.0207977294921875, 0.0787353515625, -0.064697265625, 0.09326171875, -0.0177459716796875, 0.03265380859375, 0.01885986328125, 0.024505615234375, -0.0382080078125, -0.00429534912109375, -0.03424072265625, 0.0185089111328125, 0.0265350341796875, 0.02777099609375, -0.032073974609375, -0.010833740234375, -0.0185394287109375, 0.025848388671875, 0.072998046875, 0.039703369140625, -0.042327880859375, -0.0419921875, -0.033111572265625, 0.006473541259765625, -0.04052734375, 0.052459716796875, -0.01316070556640625, 0.0268096923828125, -0.0003733634948730469, -0.0277862548828125, 0.036712646484375, -0.0361328125, -0.037841796875, 0.0166015625, 0.0030307769775390625, -0.00933837890625, -0.021331787109375, 0.05389404296875, -0.041351318359375, -0.0096893310546875, 0.0255889892578125, -0.028106689453125, 0.0006089210510253906, 0.01342010498046875, 0.0200653076171875, -0.00785064697265625, 0.00006824731826782227, -0.0194549560546875, 0.041290283203125, 0.01406097412109375, 0.001956939697265625, -0.01025390625, 0.0300445556640625, -0.0638427734375, -0.005176544189453125, -0.00214385986328125, 0.02972412109375, -0.031158447265625, 0.0297698974609375, 0.03338623046875, 0.01837158203125, -0.00611114501953125, 0.022430419921875, 0.023529052734375, 0.036285400390625, -0.034454345703125, -0.02410888671875, 0.00833892822265625, 0.01064300537109375, 0.00662994384765625, 0.0009393692016601562, 0.0084075927734375, -0.008392333984375, 0.0335693359375, -0.05047607421875, 0.01458740234375, -0.0111083984375, 0.0034732818603515625, -0.0302276611328125, -0.0119781494140625, 0.005229949951171875, 0.0184326171875, -0.0199127197265625, -0.0259552001953125, -0.0180511474609375, 0.006519317626953125, 0.046112060546875, -0.0168304443359375, 0.0233154296875, -0.0062255859375, 0.01313018798828125, 0.0204010009765625, -0.01357269287109375, -0.00905609130859375, -0.06298828125, -0.1072998046875, 0.042633056640625, 0.060760498046875, 0.0013179779052734375, -0.0261688232421875, -0.01482391357421875, 0.00530242919921875, 0.0181884765625, -0.00861358642578125, 0.007770538330078125, -0.00740814208984375, 0.005855560302734375, -0.03668212890625, 0.01275634765625, 0.0147247314453125, -0.007442474365234375, -0.0118865966796875, -0.003910064697265625, 0.05291748046875, -0.020233154296875, 0.0225067138671875, -0.00577545166015625, -0.0115966796875, 0.04034423828125, -0.01230621337890625, 0.0355224609375, 0.006977081298828125, -0.045013427734375, 0.0237274169921875, -0.068603515625, -0.08740234375, 0.0191497802734375, 0.0479736328125, -0.01593017578125, 0.016693115234375, -0.017791748046875, 0.0162200927734375, -0.0121307373046875, -0.01468658447265625, 0.01007843017578125, -0.017852783203125, 0.01214599609375, -0.003032684326171875, 0.01062774658203125, 0.010040283203125, 0.01806640625, 0.0322265625, 0.00647735595703125, 0.07220458984375, -0.0338134765625, 0.01453399658203125, -0.047607421875, 0.0301361083984375, -0.040008544921875, -0.050048828125, 0.030731201171875, 0.0506591796875, 0.004566192626953125, -0.0163726806640625, -0.030303955078125, 0.0281829833984375, 0.0062713623046875, -0.022857666015625, 0.005237579345703125, 0.007778167724609375, 0.007411956787109375, 0.0170745849609375, -0.00371551513671875, -0.038238525390625, -0.040557861328125, -0.06610107421875, -0.026702880859375, 0.0245819091796875, 0.01338958740234375, 0.0094451904296875, 0.0220794677734375, -0.04266357421875, -0.0277252197265625, -0.01428985595703125, -0.0190582275390625, -0.0421142578125, 0.00496673583984375, -0.002857208251953125, -0.0030517578125, 0.02337646484375, -0.004917144775390625, -0.0100860595703125, 0.0305633544921875, -0.007572174072265625, 0.032806396484375, -0.021759033203125, 0.0122833251953125, 0.0227813720703125, 0.0499267578125, -0.01508331298828125, 0.0149383544921875, 0.0183868408203125, -0.00485992431640625, -0.0198974609375, -0.011138916015625, -0.03033447265625, -0.01058197021484375, -0.0176239013671875, 0.01558685302734375, -0.0178680419921875, -0.0780029296875, -0.1063232421875, 0.050811767578125, 0.0416259765625, 0.0245208740234375, -0.122314453125, 0.062255859375, -0.00881195068359375, 0.1063232421875, -0.01032257080078125, -0.049102783203125, 0.038055419921875, 0.036834716796875, -0.00807952880859375, 0.04681396484375, -0.01320648193359375, -0.07012939453125, 0.0009164810180664062, 0.0188751220703125, 0.0211639404296875, 0.0036830902099609375, -0.0015840530395507812, 0.04205322265625, -0.0286865234375, 0.075439453125, -0.052337646484375, -0.0135650634765625, 0.0094451904296875, -0.018310546875, -0.02178955078125, -0.02880859375, 0.0224151611328125, -0.07049560546875, -0.04095458984375, -0.034698486328125, 0.027618408203125, 0.0298614501953125, -0.0081634521484375, -0.00786590576171875, 0.032440185546875, 0.00559234619140625, -0.004638671875, -0.051361083984375, -0.004222869873046875, -0.001712799072265625, 0.0016155242919921875, -0.029388427734375, 0.00006914138793945312, -0.026092529296875, 0.0325927734375, 0.0267333984375, -0.0550537109375, 0.04071044921875, 0.0201568603515625, -0.0516357421875, 0.04937744140625, 0.05950927734375, -0.00972747802734375, -0.0162200927734375, -0.0101318359375, -0.0002269744873046875, 0.031036376953125, -0.0150299072265625, -0.08795166015625, 0.0033721923828125, -0.0263671875, -0.0136871337890625, -0.00750732421875, 0.018218994140625, -0.01309967041015625, 0.0259552001953125, 0.0184478759765625, -0.0088653564453125, -0.0125885009765625, -0.046539306640625, -0.06494140625, -0.04302978515625, -0.0127105712890625, 0.01395416259765625, -0.0616455078125, 0.039031982421875, 0.0035991668701171875, -0.0215301513671875, 0.02471923828125, -0.006183624267578125, -0.04290771484375, 0.0121307373046875, -0.027374267578125, -0.01434326171875, -0.043548583984375, 0.04083251953125, 0.0242462158203125, -0.036712646484375, -0.026397705078125, -0.01102447509765625, -0.0078277587890625, -0.0160369873046875, -0.0249786376953125, -0.00885009765625, -0.024566650390625, -0.03826904296875, 0.0357666015625, -0.0219268798828125, 0.034515380859375, -0.060028076171875, -0.01125335693359375, 0.01374053955078125, 0.0293731689453125, -0.0151824951171875, 0.0258636474609375, 0.015228271484375, 0.03656005859375, -0.0096893310546875, 0.036163330078125, -0.00385284423828125, -0.01050567626953125, -0.0477294921875, 0.04986572265625, 0.01366424560546875, -0.019622802734375, 0.03515625, -0.01528167724609375, -0.003971099853515625, -0.0008821487426757812, -0.00951385498046875, -0.05059814453125, 0.0099945068359375, -0.034637451171875, 0.00316619873046875, 0.01543426513671875 ]
e44f7f835fcb42b8ba7620c54c46afa9ce39257d
Wordpress Stackexchange Q: Only allow administrators and editors to access wp-admin I am trying to restrict access to wp-admin so that only administrators and editors are allowed. At the moment I am using this function: function restrict_admin(){ //if not administrator, kill WordPress execution and provide a message if ( ! current_user_can( 'manage_options' ) ) { wp_die( __('You are not allowed to access this part of the site') ); } } add_action( 'admin_init', 'restrict_admin', 1 ); But this does the job only for administrator; editors are not allowed to access this part of the site. What can I do? A: You're correct in that you should be checking for a capability. However, manage options is only given to administrators by default. You should check against a capability that both editors and administrators have such as delete_others_posts. function restrict_admin(){ //if not administrator, kill WordPress execution and provide a message if ( ! current_user_can( 'delete_others_posts' ) ) { wp_die( __('You are not allowed to access this part of the site') ); } } add_action( 'admin_init', 'restrict_admin', 1 ); See roles and capabilities from the codex.
Q: Only allow administrators and editors to access wp-admin I am trying to restrict access to wp-admin so that only administrators and editors are allowed. At the moment I am using this function: function restrict_admin(){ //if not administrator, kill WordPress execution and provide a message if ( ! current_user_can( 'manage_options' ) ) { wp_die( __('You are not allowed to access this part of the site') ); } } add_action( 'admin_init', 'restrict_admin', 1 ); But this does the job only for administrator; editors are not allowed to access this part of the site. What can I do? A: You're correct in that you should be checking for a capability. However, manage options is only given to administrators by default. You should check against a capability that both editors and administrators have such as delete_others_posts. function restrict_admin(){ //if not administrator, kill WordPress execution and provide a message if ( ! current_user_can( 'delete_others_posts' ) ) { wp_die( __('You are not allowed to access this part of the site') ); } } add_action( 'admin_init', 'restrict_admin', 1 ); See roles and capabilities from the codex. A: You can also use this : <?php if( current_user_can('editor') || current_user_can('administrator') ) { ?> // stuff here for admins or editors <?php } ?> For detailed reference check this another thread on stack. Thanks A: For me, since per Codex Passing role names to current_user_can() is discouraged as this is not guaranteed to work correctly (see #22624), best option is something like this. $user = wp_get_current_user(); $allowed_roles = array('administrator','editor'); if(array_intersect($allowed_roles, $user->roles)){ //user have $allowed_roles }
wordpress
{ "language": "en", "length": 256, "provenance": "stackexchange_00019.jsonl.gz:432261", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/98937" }
[ 0.050201416015625, -0.00812530517578125, 0.039642333984375, 0.005374908447265625, 0.002986907958984375, -0.021270751953125, 0.05206298828125, -0.04681396484375, -0.003681182861328125, 0.039031982421875, 0.0269775390625, -0.00991058349609375, -0.0009379386901855469, -0.036712646484375, -0.01995849609375, -0.010528564453125, 0.01293182373046875, 0.0102386474609375, 0.0189361572265625, -0.02264404296875, 0.018310546875, -0.00931549072265625, 0.007640838623046875, 0.01227569580078125, -0.0032711029052734375, 0.004322052001953125, 0.039215087890625, -0.0304718017578125, -0.0011529922485351562, -0.022979736328125, 0.02032470703125, -0.01456451416015625, -0.004974365234375, 0.023773193359375, 0.0116424560546875, 0.0123291015625, -0.01323699951171875, 0.0247344970703125, 0.035430908203125, -0.01378631591796875, 0.0036449432373046875, 0.00931549072265625, -0.01175689697265625, 0.053680419921875, -0.0191497802734375, -0.0692138671875, 0.01442718505859375, -0.048309326171875, 0.0229949951171875, -0.0169219970703125, -0.00494384765625, 0.03326416015625, 0.01377105712890625, -0.03399658203125, -0.01026153564453125, -0.005977630615234375, 0.04095458984375, -0.037506103515625, 0.04937744140625, -0.020721435546875, -0.061309814453125, -0.0247344970703125, 0.0287322998046875, -0.040374755859375, 0.006099700927734375, -0.017547607421875, -0.0071563720703125, 0.0206146240234375, -0.05517578125, -0.004749298095703125, 0.034027099609375, -0.033416748046875, 0.01320648193359375, -0.0185699462890625, -0.004367828369140625, -0.025543212890625, -0.00867462158203125, -0.02630615234375, 0.023406982421875, 0.00978851318359375, 0.035491943359375, -0.007678985595703125, -0.01386260986328125, 0.0321044921875, -0.0203704833984375, 0.0312042236328125, -0.005100250244140625, -0.023162841796875, 0.003185272216796875, 0.0002288818359375, -0.011932373046875, -0.007232666015625, 0.01183319091796875, 0.004177093505859375, -0.020050048828125, -0.019866943359375, 0.037384033203125, 0.051788330078125, 0.00738525390625, 0.00542449951171875, -0.012298583984375, -0.03839111328125, -0.01053619384765625, -0.0216827392578125, 0.017059326171875, 0.052825927734375, -0.0184478759765625, 0.0035228729248046875, 0.0230560302734375, 0.023406982421875, 0.010498046875, -0.033538818359375, -0.0139923095703125, -0.03533935546875, -0.0061798095703125, 0.0116119384765625, -0.04193115234375, 0.0212860107421875, 0.0185546875, -0.006175994873046875, -0.0243682861328125, -0.013031005859375, 0.01435089111328125, -0.016448974609375, 0.01557159423828125, 0.0009236335754394531, -0.034149169921875, 0.01116180419921875, 0.0517578125, 0.012939453125, -0.041717529296875, 0.00040411949157714844, 0.032012939453125, -0.0127716064453125, 0.01444244384765625, -0.006717681884765625, 0.016143798828125, 0.01629638671875, 0.019012451171875, -0.0095672607421875, 0.04132080078125, 0.006999969482421875, 0.01165008544921875, 0.0163726806640625, -0.0227508544921875, 0.023529052734375, -0.004001617431640625, 0.00213623046875, 0.001773834228515625, -0.040008544921875, -0.024566650390625, -0.03143310546875, 0.0288543701171875, -0.0009379386901855469, 0.021270751953125, -0.0205841064453125, 0.043426513671875, -0.0170440673828125, -0.0230712890625, -0.035552978515625, 0.01181793212890625, 0.010284423828125, 0.047515869140625, -0.04229736328125, -0.033447265625, -0.037017822265625, -0.071044921875, -0.0164947509765625, 0.0240631103515625, -0.0009608268737792969, 0.0343017578125, -0.027923583984375, 0.026397705078125, 0.02117919921875, 0.004486083984375, 0.032379150390625, 0.00832366943359375, -0.006237030029296875, 0.0003247261047363281, 0.0306854248046875, 0.004791259765625, -0.019378662109375, 0.016265869140625, 0.0040130615234375, -0.0203399658203125, -0.03826904296875, 0.00782012939453125, -0.0104217529296875, 0.0213165283203125, 0.01727294921875, 0.0278167724609375, -0.0036754608154296875, 0.0056304931640625, 0.0139923095703125, -0.0007076263427734375, -0.045135498046875, -0.0276947021484375, -0.0230560302734375, -0.03167724609375, 0.025604248046875, 0.0728759765625, -0.016632080078125, 0.00897216796875, -0.04388427734375, -0.09405517578125, -0.01421356201171875, -0.02008056640625, 0.01549530029296875, 0.023895263671875, 0.0142974853515625, -0.0064849853515625, -0.003803253173828125, -0.00832366943359375, -0.01507568359375, -0.0268096923828125, 0.00780487060546875, 0.0028324127197265625, 0.0811767578125, 0.01873779296875, 0.05029296875, 0.023406982421875, -0.06353759765625, 0.036468505859375, -0.0034580230712890625, 0.019500732421875, -0.0009975433349609375, 0.00643157958984375, 0.01377105712890625, 0.06427001953125, 0.015899658203125, 0.044464111328125, -0.0282135009765625, 0.05511474609375, 0.001621246337890625, -0.031524658203125, -0.012542724609375, -0.01983642578125, -0.107666015625, -0.004302978515625, 0.0899658203125, 0.0297698974609375, 0.0248565673828125, -0.020172119140625, -0.01506805419921875, 0.03662109375, -0.0885009765625, -0.016510009765625, -0.0024776458740234375, -0.0220947265625, 0.0321044921875, -0.0167999267578125, 0.014129638671875, 0.0220794677734375, 0.00960540771484375, -0.0249786376953125, 0.04669189453125, -0.02362060546875, -0.01500701904296875, 0.01137542724609375, -0.01708984375, 0.011932373046875, -0.0296173095703125, -0.01068878173828125, -0.013214111328125, -0.0284881591796875, -0.001407623291015625, -0.00853729248046875, 0.0125885009765625, -0.008209228515625, -0.021484375, 0.0281524658203125, 0.0211181640625, -0.0140380859375, 0.0305023193359375, 0.061553955078125, -0.024139404296875, -0.054046630859375, 0.0022125244140625, 0.011505126953125, 0.025115966796875, -0.0070953369140625, 0.037261962890625, 0.002025604248046875, -0.01548004150390625, -0.0006451606750488281, -0.025543212890625, 0.004863739013671875, -0.002262115478515625, 0.0024814605712890625, -0.0484619140625, -0.0009026527404785156, -0.0167388916015625, -0.04083251953125, 0.041656494140625, -0.003498077392578125, -0.0572509765625, -0.0279693603515625, -0.049835205078125, 0.0286712646484375, -0.03948974609375, 0.041900634765625, 0.0677490234375, 0.00440216064453125, 0.0020751953125, 0.006908416748046875, -0.011199951171875, 0.007965087890625, 0.0257568359375, 0.0086822509765625, 0.0070343017578125, -0.047393798828125, 0.026611328125, 0.0172271728515625, -0.011688232421875, 0.021148681640625, -0.0191802978515625, -0.007755279541015625, 0.011016845703125, -0.025848388671875, 0.0162353515625, -0.0248565673828125, -0.0643310546875, -0.010406494140625, 0.0018720626831054688, -0.041748046875, 0.014007568359375, 0.0277252197265625, 0.0175323486328125, -0.042877197265625, 0.01557159423828125, 0.00803375244140625, 0.01439666748046875, -0.0018520355224609375, 0.00637054443359375, -0.0128173828125, 0.00930023193359375, 0.0013895034790039062, 0.09906005859375, -0.0031757354736328125, -0.09765625, -0.03216552734375, -0.022705078125, -0.0299072265625, 0.026885986328125, -0.007457733154296875, -0.0033588409423828125, -0.018707275390625, 0.0014238357543945312, 0.00426483154296875, -0.007259368896484375, 0.0038890838623046875, -0.0196685791015625, 0.00666046142578125, -0.00891876220703125, 0.0284881591796875, 0.04229736328125, -0.0243682861328125, 0.0123291015625, 0.03411865234375, -0.0240325927734375, 0.01190185546875, -0.0227813720703125, -0.034149169921875, 0.031982421875, 0.009246826171875, -0.0216064453125, 0.042510986328125, -0.01073455810546875, 0.03790283203125, 0.04962158203125, -0.025238037109375, 0.0174102783203125, 0.001617431640625, 0.01555633544921875, 0.033538818359375, 0.0155792236328125, -0.01514434814453125, -0.047271728515625, 0.0195770263671875, -0.01708984375, -0.0234375, -0.022064208984375, -0.00859832763671875, -0.0012254714965820312, -0.033233642578125, 0.037567138671875, -0.028167724609375, 0.02618408203125, -0.04412841796875, -0.019805908203125, -0.0262451171875, 0.08038330078125, -0.0125274658203125, 0.0017824172973632812, -0.0162506103515625, -0.01033782958984375, 0.00141143798828125, -0.015594482421875, -0.041107177734375, -0.006496429443359375, -0.0264434814453125, 0.0079345703125, -0.0218505859375, 0.0062103271484375, -0.04296875, -0.001064300537109375, -0.0102081298828125, -0.020782470703125, 0.015106201171875, -0.03753662109375, -0.004180908203125, 0.024139404296875, -0.0287933349609375, 0.0122222900390625, -0.023590087890625, -0.038238525390625, -0.11822509765625, -0.01849365234375, 0.0020885467529296875, 0.085205078125, -0.00794219970703125, 0.0199127197265625, -0.041748046875, 0.05780029296875, 0.002872467041015625, -0.0157012939453125, 0.0131072998046875, 0.020538330078125, -0.0012311935424804688, -0.0149688720703125, 0.0040740966796875, -0.0282440185546875, 0.002887725830078125, -0.0066680908203125, -0.0170745849609375, -0.031280517578125, -0.048004150390625, -0.051971435546875, -0.0240325927734375, -0.037872314453125, -0.06787109375, -0.03857421875, -0.07269287109375, -0.0161895751953125, -0.0273284912109375, -0.01529693603515625, -0.035369873046875, -0.08062744140625, 0.05615234375, -0.026702880859375, -0.003582000732421875, 0.0021991729736328125, 0.07666015625, 0.003665924072265625, -0.0233001708984375, -0.0016775131225585938, -0.0192718505859375, 0.0128326416015625, -0.017974853515625, 0.0396728515625, 0.01708984375, -0.0197601318359375, 0.037750244140625, -0.00852203369140625, 0.004558563232421875, -0.05645751953125, 0.05572509765625, 0.0019006729125976562, 0.00814056396484375, 0.0008344650268554688, -0.0148773193359375, 0.0400390625, 0.013092041015625, 0.00028705596923828125, -0.0062713623046875, 0.01232147216796875, 0.034912109375, -0.0034198760986328125, -0.00006198883056640625, -0.03228759765625, -0.0305023193359375, -0.004852294921875, -0.01129913330078125, 0.0208282470703125, 0.0206298828125, -0.002838134765625, 0.01290130615234375, 0.01416015625, 0.00890350341796875, 0.0005474090576171875, 0.0259857177734375, -0.0307769775390625, 0.04962158203125, -0.01532745361328125, -0.0025653839111328125, -0.01490020751953125, -0.0285491943359375, 0.08392333984375, -0.0030803680419921875, -0.0777587890625, 0.039642333984375, -0.0279388427734375, 0.07232666015625, 0.043182373046875, -0.0167388916015625, 0.014434814453125, 0.01343536376953125, -0.0274505615234375, -0.002666473388671875, -0.005428314208984375, -0.026519775390625, -0.03619384765625, 0.01102447509765625, -0.00525665283203125, 0.016448974609375, 0.016082763671875, 0.0531005859375, -0.006336212158203125, 0.030303955078125, -0.019561767578125, 0.0654296875, 0.05023193359375, -0.00449371337890625, -0.009735107421875, 0.03338623046875, 0.004207611083984375, -0.0248565673828125, 0.0133514404296875, -0.0170135498046875, -0.024139404296875, 0.03436279296875, 0.00939178466796875, 0.00885009765625, 0.0163116455078125, -0.02203369140625, 0.0159149169921875, -0.0282440185546875, 0.04931640625, 0.0172119140625, -0.0633544921875, -0.0230865478515625, 0.039794921875, 0.028167724609375, -0.025634765625, -0.01349639892578125, 0.05108642578125, -0.0014667510986328125, 0.01041412353515625, 0.0105133056640625, -0.039337158203125, -0.003841400146484375, 0.0306854248046875, -0.025726318359375, -0.0154876708984375, -0.0102386474609375, -0.0175628662109375, -0.03125, 0.002361297607421875, -0.0074615478515625, 0.01393890380859375, -0.007175445556640625, -0.0002181529998779297, -0.0258941650390625, 0.01715087890625, -0.033416748046875, -0.0185394287109375, 0.051483154296875, 0.0112152099609375, -0.06365966796875, -0.005451202392578125, -0.0513916015625, -0.0101318359375, -0.04583740234375, -0.041473388671875, -0.031646728515625, 0.0012302398681640625, -0.01467132568359375, -0.00341796875, 0.013824462890625, 0.036163330078125, 0.00794219970703125, 0.065185546875, 0.0022640228271484375, 0.058380126953125, -0.027191162109375, 0.09356689453125, 0.0010423660278320312, 0.03521728515625, 0.01137542724609375, 0.049774169921875, -0.01319122314453125, -0.006870269775390625, 0.035858154296875, -0.037567138671875, -0.041656494140625, -0.03857421875, -0.035888671875, 0.0024700164794921875, 0.0232086181640625, -0.019805908203125, 0.00628662109375, -0.032623291015625, -0.00348663330078125, -0.016845703125, 0.0287628173828125, -0.053253173828125, 0.0124969482421875, -0.05426025390625, -0.016632080078125, 0.075439453125, -0.02630615234375, -0.054351806640625, 0.062408447265625, -0.0292510986328125, 0.05230712890625, 0.061492919921875, 0.005313873291015625, 0.01153564453125, 0.07135009765625, 0.00395965576171875, 0.06640625, 0.049102783203125, 0.039886474609375, 0.042144775390625, -0.00205230712890625, 0.007293701171875, -0.007659912109375, 0.00203704833984375, -0.013885498046875, 0.0231781005859375, 0.0031490325927734375, -0.0014629364013671875, 0.019561767578125, 0.0733642578125, 0.07647705078125, -0.08770751953125, 0.0058135986328125, 0.01519012451171875, -0.0279083251953125, 0.00814056396484375, -0.0428466796875, -0.000980377197265625, -0.040496826171875, 0.0699462890625, -0.021636962890625, -0.032379150390625, -0.0030574798583984375, -0.035736083984375, -0.01221466064453125, -0.015533447265625, 0.019378662109375, 0.01480865478515625, 0.046112060546875, 0.0018596649169921875, -0.0250396728515625, 0.0229949951171875, 0.005161285400390625, 0.009185791015625, -0.04388427734375, -0.0281524658203125, -0.0506591796875, -0.044525146484375, -0.0052337646484375, -0.0150909423828125, 0.00699615478515625, 0.016357421875, 0.022613525390625, 0.06280517578125, -0.0272216796875, 0.020843505859375, 0.037628173828125, 0.01158905029296875, -0.055450439453125, -0.06658935546875, -0.0036773681640625, 0.046142578125, -0.028076171875, 0.045257568359375, 0.0217132568359375, -0.072021484375, -0.0004425048828125, -0.0180816650390625, 0.050018310546875, -0.021484375, -0.01531982421875, 0.03265380859375, -0.018310546875, -0.025665283203125, 0.00992584228515625, -0.026092529296875, -0.0170135498046875, 0.0056915283203125, -0.0195159912109375, -0.03509521484375, 0.036865234375, 0.02484130859375, -0.036346435546875, 0.0704345703125, -0.0158233642578125, 0.01134490966796875, 0.034912109375, 0.02020263671875, -0.02874755859375, 0.01142120361328125, -0.03955078125, 0.040252685546875, 0.015167236328125, 0.01181793212890625, -0.038665771484375, 0.002559661865234375, -0.01727294921875, 0.0249786376953125, 0.06085205078125, 0.03216552734375, -0.03076171875, -0.01387786865234375, -0.0032062530517578125, 0.0021266937255859375, -0.034759521484375, 0.07342529296875, 0.0102081298828125, 0.0250091552734375, 0.0279998779296875, -0.024444580078125, 0.0445556640625, -0.048583984375, -0.0160369873046875, 0.0228118896484375, 0.0007815361022949219, -0.0203094482421875, -0.0189056396484375, 0.01004791259765625, -0.07489013671875, 0.0038051605224609375, 0.04071044921875, -0.04644775390625, -0.0295257568359375, 0.033782958984375, 0.0400390625, -0.057342529296875, 0.02294921875, -0.052947998046875, 0.06298828125, 0.026092529296875, -0.0238800048828125, 0.0138092041015625, 0.0140533447265625, -0.060211181640625, 0.0187835693359375, -0.0023212432861328125, 0.03997802734375, -0.0301971435546875, -0.0040283203125, 0.0260467529296875, 0.01148223876953125, -0.01515960693359375, 0.03302001953125, 0.0360107421875, -0.00009262561798095703, -0.023101806640625, -0.035552978515625, 0.002719879150390625, 0.0161285400390625, 0.0066986083984375, 0.0160369873046875, 0.0145263671875, 0.07000732421875, 0.11279296875, -0.03656005859375, 0.0116119384765625, 0.004283905029296875, 0.01300811767578125, -0.01404571533203125, 0.001064300537109375, -0.00936126708984375, 0.01605224609375, -0.01129150390625, -0.04205322265625, 0.0135955810546875, 0.027496337890625, 0.0333251953125, -0.00371551513671875, 0.026824951171875, -0.0001608133316040039, -0.023529052734375, 0.031494140625, -0.020111083984375, 0.0249786376953125, -0.07763671875, -0.05792236328125, 0.005916595458984375, 0.05999755859375, -0.01424407958984375, 0.01483917236328125, -0.014862060546875, 0.0207672119140625, 0.044708251953125, -0.005893707275390625, 0.039154052734375, -0.004848480224609375, -0.03192138671875, -0.0201416015625, -0.0279541015625, -0.005222320556640625, -0.00827789306640625, -0.0009579658508300781, 0.02197265625, -0.0121307373046875, -0.005680084228515625, -0.0196533203125, 0.00836944580078125, -0.01430511474609375, 0.00438690185546875, -0.0200958251953125, -0.040191650390625, -0.004093170166015625, -0.07733154296875, 0.0024394989013671875, -0.036346435546875, -0.06292724609375, 0.0255584716796875, 0.0308380126953125, -0.04736328125, 0.03839111328125, 0.0286712646484375, -0.03173828125, -0.004291534423828125, 0.04217529296875, 0.0100860595703125, -0.0033016204833984375, 0.0301971435546875, -0.00289154052734375, 0.0138092041015625, -0.00586700439453125, 0.00567626953125, 0.0570068359375, 0.0198211669921875, 0.057037353515625, -0.05206298828125, 0.0302581787109375, -0.0245208740234375, 0.0300140380859375, -0.04931640625, -0.020660400390625, 0.0243682861328125, 0.00537109375, -0.00655364990234375, 0.0011320114135742188, -0.042938232421875, 0.030029296875, 0.01264190673828125, -0.0285797119140625, 0.0212554931640625, -0.007541656494140625, 0.007373809814453125, -0.016815185546875, 0.039825439453125, -0.022186279296875, -0.046051025390625, -0.0643310546875, -0.002315521240234375, 0.022613525390625, 0.032501220703125, -0.0178375244140625, 0.0232391357421875, -0.056182861328125, -0.034210205078125, -0.0072021484375, -0.022674560546875, -0.06329345703125, 0.00949859619140625, -0.0140838623046875, -0.00414276123046875, 0.038848876953125, -0.003978729248046875, 0.0025043487548828125, 0.026519775390625, -0.000041544437408447266, 0.0295257568359375, -0.04180908203125, -0.055419921875, -0.00934600830078125, 0.02886962890625, -0.003986358642578125, 0.00955963134765625, -0.0266571044921875, -0.014801025390625, -0.046722412109375, -0.035003662109375, -0.0277099609375, -0.036590576171875, -0.01480865478515625, 0.0185394287109375, -0.038970947265625, -0.08099365234375, -0.07403564453125, 0.044036865234375, 0.034637451171875, 0.00881195068359375, -0.07220458984375, 0.06622314453125, -0.03216552734375, 0.051788330078125, -0.0031757354736328125, 0.0268402099609375, -0.01678466796875, 0.0139617919921875, -0.033660888671875, -0.0292205810546875, -0.04510498046875, 0.021728515625, -0.0386962890625, 0.0350341796875, 0.036956787109375, -0.01690673828125, 0.002605438232421875, 0.040069580078125, -0.008453369140625, 0.08868408203125, -0.045745849609375, -0.009796142578125, 0.0225830078125, 0.01305389404296875, -0.033416748046875, -0.05389404296875, -0.0027408599853515625, -0.0014057159423828125, -0.0053863525390625, -0.0107269287109375, 0.0154876708984375, 0.0340576171875, -0.031829833984375, -0.0625, -0.0015163421630859375, -0.0004334449768066406, -0.043975830078125, -0.0223236083984375, -0.005001068115234375, -0.00812530517578125, 0.02197265625, -0.007282257080078125, -0.016357421875, -0.01080322265625, 0.00966644287109375, 0.01244354248046875, -0.02130126953125, 0.0144195556640625, 0.02880859375, -0.02294921875, 0.0467529296875, 0.044097900390625, -0.02191162109375, -0.00374603271484375, 0.02288818359375, 0.0201416015625, 0.06915283203125, 0.01337432861328125, -0.0021724700927734375, -0.00783538818359375, -0.04925537109375, -0.0011072158813476562, -0.034698486328125, -0.0144805908203125, -0.01346588134765625, 0.04351806640625, 0.0740966796875, 0.002292633056640625, -0.0386962890625, -0.018402099609375, -0.041229248046875, -0.0169219970703125, -0.0216217041015625, 0.01380157470703125, -0.0703125, 0.0038547515869140625, 0.0201263427734375, -0.0020961761474609375, 0.0012388229370117188, 0.01971435546875, -0.02044677734375, -0.01183319091796875, -0.00316619873046875, -0.0004775524139404297, -0.06689453125, -0.01242828369140625, 0.055145263671875, -0.046630859375, -0.0255584716796875, -0.003940582275390625, 0.01380157470703125, -0.005428314208984375, -0.0299530029296875, -0.055450439453125, -0.0291900634765625, -0.031585693359375, 0.0209503173828125, -0.03045654296875, 0.058624267578125, -0.0325927734375, 0.00911712646484375, -0.0034084320068359375, 0.0152435302734375, 0.0032024383544921875, 0.02313232421875, -0.000644683837890625, 0.049560546875, 0.0105743408203125, 0.00693511962890625, -0.0000941157341003418, 0.0280609130859375, -0.01007843017578125, 0.0196685791015625, 0.0178985595703125, -0.0158538818359375, 0.0460205078125, -0.00031757354736328125, 0.00670623779296875, 0.0139923095703125, 0.0007457733154296875, -0.032928466796875, 0.02178955078125, 0.0273590087890625, 0.0192413330078125, 0.00862884521484375 ]
ae55a61f93f0b7e03b8ac1218141c9af68d36f97
Wordpress Stackexchange Q: Remove Links from Login page I want to remove all the links from my network login page ("Register","Lost your password" and "Back to site") how can i do that? A: I am not sure there is a way to suppress all these links, but you can hide them with CSS: add_action( 'login_head', 'hide_login_nav' ); function hide_login_nav() { ?><style>#nav,#backtoblog{display:none}</style><?php } Result:
Q: Remove Links from Login page I want to remove all the links from my network login page ("Register","Lost your password" and "Back to site") how can i do that? A: I am not sure there is a way to suppress all these links, but you can hide them with CSS: add_action( 'login_head', 'hide_login_nav' ); function hide_login_nav() { ?><style>#nav,#backtoblog{display:none}</style><?php } Result: A: If you are customizing your login page, there are also great plugins that help you do that and more. One I recall working great is LoginPress. https://wordpress.org/plugins/loginpress/ A: Ten years later, people still search for this (I know, because that is how I landed here), and the answer seems to always be: use CSS or install a plugin. The CSS is merely hiding the info from view. If you don't want the HTML to render all together for it, you need to apply some filters. Add the following to your functions.php file: if ( ! function_exists( my_theme_login_filters ) ) : function my_theme_login_filters() { add_filter( 'login_site_html_link' , 'set_login_backtohtml' ); //This is for the "Go back to Your Blog" link add_filter( 'register' , 'set_login_registerhtml' ); //For the register link add_filter( 'lost_password_html_link' , 'set_login_lostpasswordhtml' ); //For the Lost Password link //Repeat this function for each of the elements you want to suppress, OR //just change the names above to the same thing. function set_login_backtohtml( $url ) { $url = ''; return $url; } endif; Sorry, I suck at code notations. Basically, the 'add_filter' lines call up each aspect of the login page you want to suppress or change (that's the first parameter), followed by the value with which you want to replace it. You can either insert a variable here, or call up a function. For this example, I went with the function way to demonstrate the flexibility. You can add the HTML of your choice in the $url variable. One thing to note, however, is that the "Back To" block will only suppress the <a> tag; wp-login produces the <p class="backtoblog"> code outside of any filters that I could see. So, if in 'set_login_backtohtml' you set $url = "Inconceivable!";, then the resulting HTML would look something like: <p class="backtoblog"> Inconceivable! </p> The Lost Password and Register links, similarly, are wrapped inside a <p> tag with a class of 'nav.' What you can do is open up the wp-login.php (or any core) file and look at all the lines that call apply_filter. Each one of these is something you can change in your functions.php file with the add_filter() methods. DO NOT CHANGE THE CORE FILE ITSELF! Just make sure you study the filter you want to manipulate carefully. Hope this helps! A: just go to htdocs->then ur site->wp-login.php page and find function login_footer($input_id = '') { comment this line //printf( _x( '&larr; Back to %s', 'site' ), get_bloginfo( 'title', 'display' ) ); and if want to hide all the URL's just comment the whole function
wordpress
{ "language": "en", "length": 484, "provenance": "stackexchange_00019.jsonl.gz:432287", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/99027" }
[ 0.0272369384765625, 0.0059051513671875, 0.01186370849609375, 0.048370361328125, -0.0113372802734375, -0.054443359375, 0.0797119140625, -0.03955078125, -0.016876220703125, 0.0146026611328125, 0.0455322265625, -0.0207672119140625, -0.022613525390625, -0.0626220703125, 0.01360321044921875, -0.022216796875, -0.0016613006591796875, 0.04095458984375, 0.04852294921875, -0.00446319580078125, 0.0162506103515625, -0.020111083984375, 0.0361328125, 0.0078582763671875, 0.023406982421875, -0.0340576171875, 0.10302734375, -0.044036865234375, 0.031982421875, -0.0171661376953125, 0.0195465087890625, -0.0123748779296875, 0.0168304443359375, 0.01251220703125, -0.0180206298828125, -0.0374755859375, -0.023162841796875, 0.0133056640625, 0.0003254413604736328, -0.00860595703125, 0.0255279541015625, -0.0185699462890625, 0.022613525390625, -0.04205322265625, -0.007232666015625, -0.0075531005859375, 0.037872314453125, -0.01541900634765625, 0.01288604736328125, 0.01421356201171875, 0.0270233154296875, 0.022003173828125, 0.038787841796875, 0.033172607421875, -0.026123046875, -0.01378631591796875, -0.014007568359375, 0.01059722900390625, 0.03466796875, 0.0019741058349609375, -0.02337646484375, -0.0218963623046875, 0.00704193115234375, -0.0389404296875, -0.01849365234375, 0.01238250732421875, 0.003253936767578125, 0.0196990966796875, -0.02459716796875, -0.0408935546875, -0.002231597900390625, -0.0264739990234375, 0.001033782958984375, 0.0007104873657226562, -0.0210418701171875, 0.0207977294921875, -0.032257080078125, 0.010955810546875, 0.043914794921875, -0.006221771240234375, -0.026336669921875, 0.00470733642578125, -0.0869140625, -0.030303955078125, 0.02947998046875, 0.00885009765625, -0.023223876953125, -0.0148773193359375, 0.01129150390625, -0.01143646240234375, -0.0031833648681640625, 0.006809234619140625, -0.0036773681640625, -0.0079193115234375, -0.0250091552734375, -0.0278778076171875, 0.019287109375, 0.0135345458984375, 0.016693115234375, -0.0226287841796875, -0.01369476318359375, -0.028656005859375, -0.0343017578125, -0.00043129920959472656, -0.0219268798828125, 0.060211181640625, 0.00988006591796875, 0.054290771484375, 0.024871826171875, 0.016448974609375, 0.026702880859375, -0.019012451171875, -0.05029296875, -0.000568389892578125, -0.0206756591796875, 0.032135009765625, -0.041259765625, -0.0007834434509277344, -0.015869140625, 0.034423828125, -0.043121337890625, -0.03692626953125, -0.014862060546875, 0.0096282958984375, -0.019622802734375, -0.049102783203125, -0.016845703125, 0.034942626953125, -0.01056671142578125, 0.017547607421875, -0.04119873046875, 0.014892578125, 0.03460693359375, 0.0103302001953125, 0.001956939697265625, -0.030548095703125, 0.0147552490234375, -0.0100555419921875, -0.0078277587890625, 0.043670654296875, -0.01143646240234375, -0.077880859375, -0.0215911865234375, 0.0128631591796875, -0.0018358230590820312, -0.0109710693359375, 0.017791748046875, 0.051239013671875, 0.006488800048828125, -0.0278167724609375, 0.029205322265625, -0.0111846923828125, 0.0023555755615234375, 0.01461029052734375, 0.02203369140625, 0.020050048828125, 0.056610107421875, -0.018341064453125, -0.029876708984375, 0.005107879638671875, 0.029083251953125, -0.0007510185241699219, 0.0093231201171875, -0.0097808837890625, -0.027435302734375, -0.033477783203125, -0.04095458984375, -0.0013875961303710938, 0.0284423828125, 0.017181396484375, -0.0018062591552734375, -0.03570556640625, 0.01374053955078125, 0.0260009765625, 0.0021343231201171875, 0.041595458984375, 0.00273895263671875, 0.034515380859375, -0.01197052001953125, 0.056549072265625, 0.016815185546875, -0.04058837890625, 0.0186920166015625, 0.0020885467529296875, -0.06304931640625, 0.01514434814453125, 0.020172119140625, 0.049407958984375, 0.0030670166015625, 0.0240631103515625, 0.084716796875, 0.0011625289916992188, -0.015228271484375, -0.006439208984375, -0.01611328125, -0.0222320556640625, 0.0027332305908203125, -0.00470733642578125, -0.01357269287109375, 0.0284881591796875, 0.0038890838623046875, -0.002407073974609375, -0.01390838623046875, 0.01259613037109375, -0.01568603515625, -0.0031833648681640625, -0.0027179718017578125, 0.024169921875, -0.058441162109375, 0.01155853271484375, 0.046417236328125, 0.00879669189453125, -0.040435791015625, -0.0155181884765625, 0.016143798828125, -0.00836181640625, -0.0081787109375, -0.011474609375, 0.003021240234375, 0.004161834716796875, 0.00165557861328125, 0.00206756591796875, -0.00458526611328125, 0.009490966796875, 0.025054931640625, -0.030517578125, -0.0144195556640625, -0.0379638671875, -0.02294921875, -0.01531982421875, -0.0408935546875, 0.060516357421875, -0.0013189315795898438, 0.0301361083984375, -0.0239105224609375, -0.004199981689453125, -0.01065826416015625, -0.0298309326171875, 0.00010418891906738281, 0.02557373046875, 0.0479736328125, 0.0242919921875, -0.0030345916748046875, -0.0130767822265625, 0.01111602783203125, -0.049285888671875, 0.0185089111328125, -0.01141357421875, 0.005825042724609375, 0.026824951171875, 0.005832672119140625, -0.003833770751953125, 0.0223846435546875, 0.0214080810546875, 0.01091766357421875, 0.023529052734375, -0.003978729248046875, -0.00942230224609375, -0.00188446044921875, 0.006351470947265625, 0.00019872188568115234, -0.02227783203125, -0.01160430908203125, -0.020355224609375, 0.001007080078125, -0.040283203125, -0.01073455810546875, -0.027679443359375, -0.0208740234375, -0.034210205078125, 0.044921875, -0.022705078125, -0.020782470703125, 0.0179443359375, 0.0701904296875, -0.0187225341796875, -0.04278564453125, -0.01343536376953125, -0.01397705078125, 0.01168060302734375, -0.0194854736328125, -0.004032135009765625, 0.05615234375, -0.0080718994140625, 0.016998291015625, -0.007282257080078125, 0.049896240234375, -0.0243377685546875, 0.0224761962890625, -0.0050811767578125, 0.0135040283203125, 0.0083465576171875, -0.01128387451171875, 0.033477783203125, 0.003231048583984375, -0.03399658203125, -0.034332275390625, -0.042816162109375, 0.0372314453125, -0.033843994140625, 0.044921875, 0.06561279296875, 0.00806427001953125, -0.00949859619140625, 0.0051422119140625, -0.028594970703125, 0.02581787109375, -0.017669677734375, -0.006778717041015625, 0.01369476318359375, -0.041473388671875, 0.0238189697265625, 0.0021114349365234375, -0.0462646484375, -0.0166473388671875, -0.0440673828125, -0.0302886962890625, -0.0182647705078125, -0.08905029296875, -0.0199127197265625, -0.06591796875, -0.04443359375, -0.01016998291015625, 0.03106689453125, -0.01617431640625, 0.02655029296875, 0.06304931640625, 0.0245819091796875, 0.0098419189453125, -0.032012939453125, -0.054168701171875, -0.01145172119140625, -0.0283966064453125, 0.0474853515625, -0.01190185546875, -0.01009368896484375, 0.01161956787109375, 0.06597900390625, 0.025634765625, -0.044830322265625, 0.0199432373046875, 0.00814056396484375, -0.0199432373046875, 0.0103302001953125, -0.041351318359375, 0.0152130126953125, 0.01143646240234375, 0.00315093994140625, -0.037261962890625, -0.01287841796875, 0.042236328125, -0.0201873779296875, 0.01071929931640625, -0.0021839141845703125, 0.026153564453125, -0.00577545166015625, -0.0283966064453125, -0.00904083251953125, -0.0035190582275390625, -0.05133056640625, -0.0213165283203125, -0.0033397674560546875, -0.03582763671875, 0.039398193359375, 0.01617431640625, -0.0189666748046875, 0.01428985595703125, 0.00325775146484375, 0.0172576904296875, -0.00811767578125, 0.00732421875, 0.006343841552734375, 0.0025081634521484375, -0.002971649169921875, 0.0176849365234375, -0.0175018310546875, 0.06805419921875, -0.0093994140625, -0.0020294189453125, 0.0201873779296875, 0.0005970001220703125, 0.0129241943359375, -0.0169525146484375, -0.00829315185546875, -0.03533935546875, 0.052215576171875, 0.0030956268310546875, -0.007415771484375, -0.0145111083984375, -0.0189971923828125, -0.01023101806640625, 0.07952880859375, -0.0615234375, -0.01708984375, -0.015838623046875, 0.0186614990234375, -0.0014429092407226562, -0.037994384765625, -0.0103607177734375, -0.0193023681640625, -0.086669921875, 0.005096435546875, -0.0120086669921875, -0.031463623046875, 0.0119171142578125, -0.07269287109375, -0.0289154052734375, -0.055633544921875, 0.01493072509765625, 0.0848388671875, -0.01181793212890625, -0.00959014892578125, -0.0037174224853515625, -0.004215240478515625, 0.004116058349609375, 0.0217742919921875, -0.00942230224609375, 0.004364013671875, -0.033111572265625, 0.03594970703125, 0.04656982421875, -0.022613525390625, -0.0043182373046875, 0.01220703125, 0.0140838623046875, -0.060791015625, 0.03277587890625, -0.00952911376953125, -0.0007100105285644531, 0.026641845703125, -0.00945281982421875, -0.0222320556640625, 0.00664520263671875, -0.006622314453125, -0.03289794921875, 0.00763702392578125, -0.0174560546875, 0.003475189208984375, 0.0250701904296875, -0.0177001953125, -0.00771331787109375, -0.03216552734375, 0.0012493133544921875, 0.01218414306640625, 0.0090789794921875, -0.0113372802734375, -0.0215911865234375, -0.007091522216796875, 0.0143280029296875, 0.0173797607421875, -0.039581298828125, 0.00768280029296875, 0.004970550537109375, 0.0278778076171875, -0.018768310546875, 0.0113067626953125, 0.0275115966796875, 0.0308074951171875, -0.0146331787109375, 0.06622314453125, 0.004177093505859375, -0.0114288330078125, 0.0615234375, -0.0214080810546875, 0.0008664131164550781, -0.0018787384033203125, 0.04754638671875, -0.0237579345703125, -0.041290283203125, 0.03375244140625, -0.037200927734375, 0.0033416748046875, 0.0176849365234375, 0.0206146240234375, -0.012939453125, 0.0124664306640625, 0.00039839744567871094, 0.00543975830078125, -0.0209197998046875, 0.00988006591796875, -0.0147247314453125, 0.00952911376953125, 0.01503753662109375, 0.025177001953125, 0.0347900390625, -0.004337310791015625, -0.00617218017578125, -0.0230560302734375, -0.01190185546875, -0.0098876953125, -0.037078857421875, -0.063720703125, 0.0125732421875, -0.05059814453125, -0.060638427734375, 0.042694091796875, -0.027099609375, 0.110595703125, -0.0017118453979492188, -0.062255859375, 0.042724609375, -0.0460205078125, 0.022064208984375, 0.043548583984375, 0.0160369873046875, 0.041839599609375, -0.02618408203125, -0.01424407958984375, -0.02044677734375, -0.0034465789794921875, -0.043670654296875, -0.050872802734375, -0.034027099609375, -0.007232666015625, -0.018310546875, 0.043792724609375, 0.01467132568359375, -0.044403076171875, 0.04278564453125, -0.007293701171875, -0.00408935546875, 0.002857208251953125, 0.01715087890625, 0.007778167724609375, 0.0283966064453125, 0.0096282958984375, -0.018341064453125, 0.0535888671875, -0.03564453125, -0.01157379150390625, 0.038909912109375, 0.035888671875, 0.0250244140625, 0.004581451416015625, -0.030120849609375, -0.0189056396484375, 0.00946044921875, 0.09619140625, -0.023284912109375, -0.1309814453125, -0.0301513671875, 0.0169830322265625, 0.02496337890625, -0.07574462890625, 0.016876220703125, -0.046051025390625, 0.0036983489990234375, -0.042694091796875, -0.0005774497985839844, -0.079833984375, -0.0142059326171875, 0.016387939453125, -0.01715087890625, -0.042999267578125, -0.024932861328125, -0.057159423828125, 0.0084686279296875, -0.0090789794921875, 0.0087432861328125, 0.0030574798583984375, -0.007282257080078125, 0.0168609619140625, -0.013397216796875, -0.00405120849609375, 0.0248870849609375, 0.01183319091796875, 0.031707763671875, -0.01027679443359375, -0.031280517578125, -0.0028781890869140625, -0.0169830322265625, -0.00687408447265625, -0.031463623046875, -0.03424072265625, -0.02789306640625, -0.0181121826171875, 0.0215911865234375, 0.004974365234375, 0.0002970695495605469, -0.0113677978515625, -0.0126190185546875, 0.01885986328125, 0.02105712890625, -0.01177215576171875, 0.017578125, 0.0380859375, -0.0240020751953125, 0.03631591796875, 0.02947998046875, 0.03424072265625, -0.0298004150390625, -0.024566650390625, 0.01605224609375, -0.0098724365234375, -0.022918701171875, -0.0162353515625, -0.03497314453125, 0.002933502197265625, 0.050567626953125, -0.00711822509765625, -0.03497314453125, -0.00646209716796875, 0.0005636215209960938, -0.032470703125, 0.08984375, 0.034393310546875, 0.004608154296875, -0.0037822723388671875, 0.01381683349609375, 0.047760009765625, -0.0007100105285644531, -0.0069580078125, -0.005126953125, 0.016082763671875, 0.037689208984375, -0.0167083740234375, -0.011962890625, 0.01042938232421875, 0.0533447265625, -0.01035308837890625, 0.0537109375, 0.006328582763671875, 0.01519775390625, 0.06878662109375, -0.0199432373046875, 0.001003265380859375, 0.033172607421875, 0.06573486328125, 0.0018815994262695312, -0.0033130645751953125, 0.057861328125, -0.0291290283203125, 0.005176544189453125, 0.058563232421875, 0.042694091796875, -0.1278076171875, 0.0318603515625, -0.006511688232421875, 0.0399169921875, 0.07080078125, 0.0258026123046875, 0.0025615692138671875, 0.0185089111328125, -0.04571533203125, -0.007480621337890625, -0.0192718505859375, -0.02008056640625, 0.0208740234375, -0.002197265625, 0.0168609619140625, 0.0017824172973632812, -0.0123291015625, -0.047821044921875, -0.040802001953125, 0.0196685791015625, -0.00887298583984375, -0.04132080078125, -0.0115509033203125, 0.0556640625, -0.02984619140625, -0.0589599609375, 0.032806396484375, -0.01123809814453125, 0.0103607177734375, 0.04937744140625, -0.0134124755859375, 0.0027179718017578125, 0.01119232177734375, -0.0281829833984375, 0.016082763671875, -0.030914306640625, -0.0250701904296875, 0.0240478515625, -0.0242156982421875, -0.001834869384765625, -0.04278564453125, -0.020111083984375, 0.0032138824462890625, -0.0211334228515625, -0.04437255859375, -0.0177154541015625, -0.03125, 0.09454345703125, -0.006977081298828125, -0.03643798828125, 0.00759124755859375, -0.00606536865234375, -0.00864410400390625, -0.0592041015625, 0.037322998046875, -0.046630859375, 0.019500732421875, -0.0259857177734375, 0.0214996337890625, -0.0034637451171875, -0.0732421875, -0.06768798828125, 0.06707763671875, -0.044525146484375, 0.0570068359375, 0.014251708984375, 0.0218658447265625, 0.00664520263671875, 0.014434814453125, -0.0057373046875, 0.05218505859375, 0.021209716796875, 0.020111083984375, 0.03802490234375, -0.00033545494079589844, 0.041168212890625, -0.01165008544921875, -0.003719329833984375, 0.0016078948974609375, -0.0034160614013671875, -0.040252685546875, -0.01236724853515625, 0.028961181640625, 0.0014209747314453125, 0.0127410888671875, -0.01540374755859375, 0.04425048828125, 0.033355712890625, -0.079833984375, 0.01015472412109375, -0.00823211669921875, -0.00923919677734375, 0.015380859375, 0.00815582275390625, -0.023956298828125, 0.00933837890625, 0.030303955078125, -0.09039306640625, 0.027435302734375, 0.042083740234375, 0.05084228515625, 0.0218963623046875, 0.0222625732421875, 0.0201568603515625, -0.01401519775390625, 0.003650665283203125, -0.026458740234375, 0.04254150390625, 0.004791259765625, 0.0295562744140625, 0.033233642578125, 0.03350830078125, 0.049530029296875, -0.03643798828125, 0.009613037109375, -0.0009183883666992188, -0.01171112060546875, 0.0309600830078125, 0.00738525390625, 0.0209197998046875, -0.06353759765625, -0.0292816162109375, 0.034515380859375, 0.06500244140625, -0.026214599609375, -0.0697021484375, 0.021484375, 0.020751953125, 0.038421630859375, 0.045928955078125, 0.07537841796875, -0.07891845703125, 0.0174560546875, 0.0227203369140625, -0.0025043487548828125, 0.0015087127685546875, 0.0021457672119140625, 0.0177764892578125, 0.047698974609375, -0.0160064697265625, 0.0299072265625, -0.0110321044921875, 0.00759124755859375, 0.00007975101470947266, -0.0215606689453125, 0.0146026611328125, -0.0057220458984375, 0.039276123046875, 0.023834228515625, -0.00940704345703125, 0.035247802734375, -0.047882080078125, 0.03338623046875, -0.0399169921875, -0.041534423828125, -0.045166015625, 0.0220489501953125, 0.0219268798828125, 0.004665374755859375, 0.044342041015625, 0.02734375, -0.024200439453125, -0.006511688232421875, 0.013153076171875, -0.024566650390625, 0.0093231201171875, -0.0203094482421875, 0.0024967193603515625, 0.0164337158203125, -0.00525665283203125, -0.0299835205078125, 0.0006856918334960938, 0.053070068359375, 0.0190887451171875, 0.00705718994140625, 0.01153564453125, -0.0119476318359375, 0.00022137165069580078, -0.00974273681640625, -0.0097198486328125, 0.0389404296875, -0.045379638671875, -0.0246124267578125, -0.028656005859375, -0.01107025146484375, 0.039947509765625, 0.0321044921875, -0.0113677978515625, 0.0245208740234375, 0.0251007080078125, -0.00890350341796875, -0.00600433349609375, -0.000789642333984375, -0.000301361083984375, -0.011077880859375, 0.0169830322265625, -0.006023406982421875, -0.10595703125, -0.031524658203125, -0.051666259765625, -0.017669677734375, 0.0106201171875, 0.0810546875, 0.01800537109375, 0.0043182373046875, 0.010284423828125, 0.0010881423950195312, -0.011322021484375, 0.0160064697265625, -0.027130126953125, -0.0087432861328125, 0.000021755695343017578, -0.0030574798583984375, -0.07818603515625, 0.09307861328125, -0.0094757080078125, 0.037872314453125, 0.1123046875, -0.01520538330078125, -0.0390625, -0.0275726318359375, -0.0023403167724609375, -0.01490020751953125, -0.02947998046875, -0.00958251953125, 0.00453948974609375, 0.0133209228515625, 0.0240631103515625, -0.0288848876953125, 0.04327392578125, -0.01140594482421875, -0.014068603515625, 0.0206451416015625, -0.046722412109375, 0.01493072509765625, 0.025543212890625, -0.003231048583984375, 0.00307464599609375, 0.0052947998046875, -0.00942230224609375, -0.0012187957763671875, 0.02435302734375, -0.031585693359375, 0.0279541015625, -0.004673004150390625, -0.0099639892578125, 0.026611328125, 0.0304718017578125, 0.0009899139404296875, 0.0081787109375, 0.0091094970703125, -0.03204345703125, 0.0011930465698242188, 0.004543304443359375, -0.0299224853515625, -0.039642333984375, -0.04815673828125, -0.00852203369140625, -0.058990478515625, -0.10272216796875, -0.0584716796875, 0.045440673828125, 0.0235748291015625, -0.0019779205322265625, -0.07763671875, 0.0227508544921875, -0.026519775390625, 0.11566162109375, -0.03271484375, 0.01195526123046875, -0.0201263427734375, -0.0081329345703125, -0.02117919921875, 0.00870513916015625, -0.0440673828125, 0.0101318359375, 0.00930023193359375, -0.0189971923828125, -0.0078582763671875, 0.01538848876953125, 0.03936767578125, -0.038818359375, -0.021514892578125, 0.015167236328125, -0.03692626953125, -0.03741455078125, -0.0243377685546875, 0.017120361328125, 0.025482177734375, -0.0247955322265625, -0.0157470703125, -0.0029468536376953125, 0.0101318359375, 0.018585205078125, -0.0195770263671875, -0.013214111328125, -0.03955078125, -0.0631103515625, 0.10064697265625, -0.00878143310546875, -0.018768310546875, -0.006877899169921875, 0.03155517578125, 0.0016946792602539062, 0.002490997314453125, -0.002292633056640625, -0.0074615478515625, -0.006252288818359375, -0.003326416015625, 0.0198211669921875, 0.034423828125, -0.0162811279296875, 0.0029392242431640625, -0.006267547607421875, 0.055389404296875, 0.047515869140625, 0.033294677734375, 0.0040130615234375, 0.026336669921875, 0.032135009765625, 0.038482666015625, -0.0263671875, 0.060760498046875, -0.0174407958984375, -0.025115966796875, 0.010589599609375, -0.035003662109375, 0.02911376953125, -0.006732940673828125, -0.00909423828125, -0.0035190582275390625, -0.00891876220703125, -0.0129241943359375, -0.0433349609375, -0.0357666015625, 0.02386474609375, -0.041412353515625, 0.01444244384765625, -0.09576416015625, -0.0401611328125, 0.0019369125366210938, 0.0001354217529296875, 0.01541900634765625, -0.023040771484375, -0.0244293212890625, -0.00647735595703125, 0.0221099853515625, 0.029693603515625, -0.052581787109375, 0.04827880859375, 0.024261474609375, -0.02899169921875, 0.00739288330078125, -0.01146697998046875, -0.01971435546875, 0.0224609375, 0.002323150634765625, -0.0131683349609375, -0.032135009765625, -0.006481170654296875, 0.0223236083984375, -0.00461578369140625, 0.00574493408203125, -0.0085906982421875, -0.0269927978515625, -0.0293426513671875, 0.03277587890625, 0.0189971923828125, 0.03448486328125, -0.0262603759765625, 0.01207733154296875, 0.016571044921875, 0.00885772705078125, -0.026763916015625, -0.0175323486328125, -0.023284912109375, 0.01091766357421875, 0.017913818359375, -0.0217742919921875, 0.05926513671875, -0.02191162109375, -0.01296234130859375, -0.032806396484375, -0.005855560302734375, -0.076416015625, 0.044677734375, -0.011871337890625, 0.00592803955078125, 0.044158935546875 ]
9ca3ce172aa68ebdf9959aab62eea3cc81c1b868
Wordpress Stackexchange Q: List the categories under custom taxonomy I have a problem here, I registered a custom post type and I named it 'recipe' then I created a custom taxonomy under the post type, I named it 'recipe category'. Now I want to display the of categories under that custom taxonomy, but unfortunately I have no luck. I tried this code <?php $taxonomy = 'recipecategory'; $tax_terms = get_terms($taxonomy); ?> <ul> <?php foreach ($tax_terms as $tax_term) { echo '<li>' . '<a href="' . esc_attr(get_term_link($tax_term, $taxonomy)) . '" title="' . sprintf( __( "View all posts in %s" ), $tax_term->name ) . '" ' . '>' . $tax_term->name.'</a></li>'; } ?> </ul> but it displays nothing, what's wrong with my code? did I missed something. Almost forgot to mention, I am using the plugin Custom Post Type UI A: The problem can only be one of the following: * *Your taxonomy "recipecategory" does not exist. *Your taxonomy has no terms. *None of your recipecategory terms have any posts. In this case, make the following change: $tax_terms = get_terms($taxonomy, array('hide_empty' => false)); This should work as it will override the default setting, which is to ignore empty terms. foreach($tax_terms as $term_single) { $term_single->slug; $term_single->name; }
Q: List the categories under custom taxonomy I have a problem here, I registered a custom post type and I named it 'recipe' then I created a custom taxonomy under the post type, I named it 'recipe category'. Now I want to display the of categories under that custom taxonomy, but unfortunately I have no luck. I tried this code <?php $taxonomy = 'recipecategory'; $tax_terms = get_terms($taxonomy); ?> <ul> <?php foreach ($tax_terms as $tax_term) { echo '<li>' . '<a href="' . esc_attr(get_term_link($tax_term, $taxonomy)) . '" title="' . sprintf( __( "View all posts in %s" ), $tax_term->name ) . '" ' . '>' . $tax_term->name.'</a></li>'; } ?> </ul> but it displays nothing, what's wrong with my code? did I missed something. Almost forgot to mention, I am using the plugin Custom Post Type UI A: The problem can only be one of the following: * *Your taxonomy "recipecategory" does not exist. *Your taxonomy has no terms. *None of your recipecategory terms have any posts. In this case, make the following change: $tax_terms = get_terms($taxonomy, array('hide_empty' => false)); This should work as it will override the default setting, which is to ignore empty terms. foreach($tax_terms as $term_single) { $term_single->slug; $term_single->name; }
wordpress
{ "language": "en", "length": 199, "provenance": "stackexchange_00019.jsonl.gz:432288", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/99032" }
[ 0.050872802734375, 0.0103607177734375, -0.0101318359375, -0.01898193359375, 0.03173828125, -0.037628173828125, 0.0504150390625, -0.0174102783203125, -0.0149688720703125, 0.0084686279296875, -0.0056304931640625, -0.022308349609375, -0.01250457763671875, -0.05126953125, 0.00754547119140625, -0.036468505859375, 0.0169830322265625, 0.007656097412109375, 0.036590576171875, -0.0037174224853515625, 0.032562255859375, 0.0027141571044921875, -0.0027065277099609375, -0.00823974609375, 0.04779052734375, -0.0294952392578125, 0.01019287109375, -0.04278564453125, 0.0208282470703125, -0.037689208984375, 0.0201263427734375, 0.01971435546875, 0.00897216796875, 0.036834716796875, -0.0274658203125, -0.00965118408203125, -0.0211181640625, 0.031097412109375, 0.00276947021484375, 0.01514434814453125, 0.043060302734375, -0.0310211181640625, 0.0204925537109375, 0.006496429443359375, 0.0178680419921875, -0.052978515625, 0.042266845703125, -0.053466796875, -0.0019330978393554688, 0.05096435546875, 0.032073974609375, -0.037017822265625, 0.031280517578125, -0.005611419677734375, -0.01126861572265625, -0.011627197265625, -0.001007080078125, -0.025726318359375, 0.018463134765625, -0.011444091796875, -0.024261474609375, -0.019439697265625, 0.0228118896484375, -0.0159759521484375, 0.007293701171875, 0.0289154052734375, 0.0484619140625, 0.026092529296875, -0.058990478515625, -0.02886962890625, -0.0034923553466796875, -0.034393310546875, 0.01560211181640625, 0.0167694091796875, -0.0065460205078125, -0.08697509765625, 0.024200439453125, -0.026092529296875, 0.01154327392578125, 0.027191162109375, -0.0005059242248535156, 0.0224456787109375, -0.025115966796875, 0.0105743408203125, 0.006778717041015625, 0.04132080078125, -0.0196533203125, -0.039947509765625, 0.00434112548828125, -0.0104827880859375, -0.00043201446533203125, -0.0198974609375, -0.023834228515625, 0.040863037109375, 0.0321044921875, -0.044158935546875, 0.0280609130859375, 0.053955078125, -0.00970458984375, -0.0058441162109375, 0.00850677490234375, -0.04290771484375, 0.019500732421875, -0.040283203125, 0.0169830322265625, 0.0243072509765625, -0.0163726806640625, 0.0082550048828125, 0.060272216796875, 0.022186279296875, 0.0259552001953125, 0.04547119140625, -0.0150909423828125, -0.026458740234375, -0.0104827880859375, -0.00228118896484375, -0.033660888671875, 0.005527496337890625, 0.009124755859375, -0.01434326171875, 0.003231048583984375, 0.024383544921875, 0.005279541015625, -0.00620269775390625, -0.00738525390625, 0.003971099853515625, -0.0007905960083007812, -0.04571533203125, 0.0026378631591796875, 0.0088043212890625, -0.04559326171875, 0.01324462890625, 0.07232666015625, 0.0248870849609375, 0.02130126953125, -0.0182952880859375, 0.01200103759765625, -0.0258941650390625, -0.0285186767578125, -0.01070404052734375, 0.036651611328125, 0.038787841796875, 0.04595947265625, -0.03289794921875, -0.01678466796875, 0.009033203125, 0.02862548828125, -0.0024242401123046875, -0.0211639404296875, -0.033843994140625, -0.0179443359375, 0.01175689697265625, 0.08648681640625, -0.0106658935546875, -0.10162353515625, 0.0302734375, 0.005733489990234375, 0.002582550048828125, -0.115234375, -0.046417236328125, 0.03961181640625, -0.0218353271484375, -0.01551055908203125, -0.038726806640625, -0.0504150390625, 0.027069091796875, -0.06390380859375, -0.0019969940185546875, 0.0255889892578125, 0.0184173583984375, 0.0169830322265625, -0.0017261505126953125, -0.004833221435546875, 0.012451171875, 0.00666046142578125, 0.003246307373046875, -0.0201568603515625, 0.0258636474609375, 0.0165252685546875, 0.04290771484375, 0.01141357421875, -0.037628173828125, 0.017181396484375, -0.004428863525390625, -0.05902099609375, 0.0286712646484375, -0.00673675537109375, 0.02313232421875, 0.034698486328125, 0.001285552978515625, 0.050689697265625, 0.0193939208984375, -0.044189453125, 0.02093505859375, 0.03204345703125, -0.01190185546875, -0.029937744140625, -0.0253143310546875, 0.001003265380859375, -0.0161285400390625, -0.01178741455078125, -0.006565093994140625, 0.00931549072265625, -0.004894256591796875, -0.030914306640625, 0.0218505859375, -0.0256805419921875, 0.0275421142578125, -0.03216552734375, 0.0217742919921875, 0.0274200439453125, -0.0176849365234375, -0.02947998046875, 0.0236358642578125, 0.00537872314453125, -0.0105438232421875, 0.0136566162109375, 0.033721923828125, 0.01282501220703125, 0.01110076904296875, 0.034027099609375, -0.03375244140625, 0.031707763671875, 0.031158447265625, 0.034881591796875, 0.018890380859375, -0.01776123046875, -0.015960693359375, -0.0030269622802734375, 0.0253143310546875, -0.052490234375, 0.0254058837890625, 0.051788330078125, 0.02679443359375, -0.0211029052734375, 0.01412200927734375, 0.033233642578125, -0.028045654296875, -0.0172119140625, 0.0416259765625, 0.0193023681640625, 0.04107666015625, -0.0230560302734375, -0.004589080810546875, 0.09857177734375, -0.028564453125, -0.0298919677734375, 0.00604248046875, 0.007465362548828125, 0.048370361328125, -0.009124755859375, 0.03656005859375, 0.0024280548095703125, 0.019378662109375, 0.0196533203125, 0.01517486572265625, -0.041961669921875, -0.035003662109375, 0.037811279296875, -0.005855560302734375, 0.0039825439453125, -0.004474639892578125, 0.017547607421875, -0.00930023193359375, 0.034820556640625, 0.0239715576171875, 0.0313720703125, 0.02044677734375, -0.04833984375, 0.01406097412109375, 0.0230712890625, 0.045257568359375, 0.004638671875, 0.00873565673828125, 0.043121337890625, -0.0003685951232910156, -0.035675048828125, -0.01044464111328125, 0.0285491943359375, 0.00965118408203125, 0.0175323486328125, 0.06304931640625, -0.00266265869140625, 0.000011920928955078125, -0.0184173583984375, -0.047637939453125, -0.016021728515625, 0.0419921875, -0.0201873779296875, -0.0306243896484375, -0.00872039794921875, 0.04925537109375, -0.006633758544921875, 0.034515380859375, -0.006946563720703125, 0.004703521728515625, 0.035400390625, -0.00775146484375, 0.012542724609375, 0.00005817413330078125, 0.016021728515625, 0.033447265625, 0.034149169921875, -0.0185089111328125, -0.00577545166015625, -0.022491455078125, -0.0095367431640625, 0.0179290771484375, -0.00634002685546875, -0.0369873046875, -0.0131072998046875, 0.0159454345703125, 0.016937255859375, 0.046173095703125, -0.0277557373046875, -0.057037353515625, -0.02606201171875, 0.02032470703125, -0.0723876953125, -0.02435302734375, 0.023040771484375, -0.016265869140625, 0.01549530029296875, -0.026458740234375, 0.007720947265625, -0.022613525390625, -0.0312347412109375, -0.006656646728515625, 0.0276336669921875, -0.0288238525390625, -0.028472900390625, -0.035003662109375, -0.07293701171875, -0.0247955322265625, 0.006557464599609375, 0.0081787109375, 0.0099945068359375, 0.07611083984375, 0.0182647705078125, -0.0660400390625, -0.00433349609375, 0.02984619140625, -0.015960693359375, 0.04339599609375, 0.007232666015625, -0.0179443359375, 0.019927978515625, -0.00714111328125, 0.01158905029296875, 0.032012939453125, -0.017578125, -0.010284423828125, 0.01154327392578125, 0.010345458984375, 0.015594482421875, -0.008148193359375, -0.0126953125, 0.0184173583984375, 0.009429931640625, -0.023040771484375, -0.04058837890625, -0.00301361083984375, -0.050048828125, 0.0121612548828125, 0.021148681640625, 0.00676727294921875, -0.0255889892578125, 0.0318603515625, -0.035614013671875, 0.00024080276489257812, 0.0020580291748046875, -0.00699615478515625, -0.0019130706787109375, -0.01181793212890625, -0.03436279296875, 0.007904052734375, 0.043731689453125, -0.01617431640625, 0.028839111328125, 0.029327392578125, 0.01035308837890625, 0.01534271240234375, -0.015350341796875, -0.0151214599609375, -0.047637939453125, 0.0240936279296875, -0.0521240234375, 0.0292510986328125, -0.0687255859375, -0.00911712646484375, -0.0296630859375, 0.07470703125, -0.036041259765625, -0.00914764404296875, 0.0254669189453125, 0.00605010986328125, 0.00897979736328125, 0.0045318603515625, -0.05133056640625, -0.0175628662109375, -0.12152099609375, 0.02935791015625, 0.01395416259765625, -0.036407470703125, -0.01556396484375, -0.0020885467529296875, -0.07568359375, -0.038818359375, 0.039520263671875, -0.0286865234375, 0.043243408203125, -0.005657196044921875, 0.004810333251953125, -0.01226806640625, -0.0211334228515625, -0.0293426513671875, -0.02581787109375, 0.00435638427734375, 0.008697509765625, -0.006221771240234375, 0.008819580078125, -0.0002560615539550781, 0.00664520263671875, 0.03778076171875, 0.0165557861328125, -0.01140594482421875, 0.0076751708984375, 0.0033321380615234375, 0.0036373138427734375, -0.005374908447265625, -0.021575927734375, -0.0195159912109375, -0.045654296875, 0.0003266334533691406, 0.00785064697265625, 0.074951171875, 0.0033397674560546875, 0.023406982421875, 0.00920867919921875, -0.00641632080078125, -0.0467529296875, -0.006504058837890625, -0.041473388671875, -0.0260467529296875, -0.0260772705078125, -0.0160675048828125, 0.0004799365997314453, -0.05426025390625, 0.0282440185546875, -0.03668212890625, -0.01959228515625, 0.0236663818359375, 0.055755615234375, 0.01812744140625, -0.00205230712890625, -0.052032470703125, 0.0164947509765625, 0.033843994140625, 0.023834228515625, 0.02117919921875, 0.00832366943359375, -0.02581787109375, 0.03265380859375, 0.01406097412109375, -0.004161834716796875, 0.007480621337890625, 0.03533935546875, -0.007694244384765625, -0.0338134765625, 0.01302337646484375, -0.023468017578125, 0.0265045166015625, 0.0411376953125, 0.01297760009765625, -0.0604248046875, -0.0021209716796875, 0.0697021484375, -0.0198822021484375, 0.02581787109375, -0.041900634765625, -0.0528564453125, 0.013702392578125, 0.0082244873046875, 0.017303466796875, 0.011474609375, -0.00926971435546875, 0.02569580078125, -0.014556884765625, 0.0104827880859375, -0.030242919921875, 0.0085906982421875, -0.040069580078125, 0.0106658935546875, -0.0081329345703125, -0.0112457275390625, -0.01654052734375, -0.0029544830322265625, -0.00628662109375, -0.004405975341796875, -0.051177978515625, 0.0017862319946289062, 0.01250457763671875, -0.000024199485778808594, 0.0213165283203125, 0.01409149169921875, 0.0201263427734375, 0.02069091796875, 0.006916046142578125, 0.0248870849609375, -0.005489349365234375, 0.04437255859375, -0.00386810302734375, 0.0034084320068359375, 0.021759033203125, -0.023468017578125, -0.01230621337890625, 0.04400634765625, 0.00803375244140625, 0.0041656494140625, -0.0159454345703125, 0.00909423828125, -0.016815185546875, 0.059326171875, 0.035247802734375, -0.050262451171875, -0.010528564453125, 0.0322265625, -0.0182342529296875, -0.042877197265625, -0.00896453857421875, 0.006977081298828125, 0.047332763671875, -0.027130126953125, -0.036529541015625, 0.03863525390625, -0.01416015625, -0.0221405029296875, 0.0229949951171875, 0.01389312744140625, -0.01456451416015625, -0.029754638671875, 0.010650634765625, 0.031890869140625, 0.01212310791015625, -0.0189666748046875, -0.000026941299438476562, -0.02691650390625, 0.01513671875, -0.0276641845703125, -0.02197265625, -0.0006718635559082031, 0.01499176025390625, 0.00809478759765625, -0.01541900634765625, -0.0135345458984375, -0.01149749755859375, -0.01910400390625, -0.007099151611328125, -0.0270538330078125, 0.0311737060546875, -0.00977325439453125, 0.03851318359375, -0.037200927734375, -0.0213470458984375, -0.030303955078125, 0.0014772415161132812, 0.05029296875, 0.03466796875, -0.043701171875, 0.0165557861328125, -0.0560302734375, 0.006519317626953125, -0.0078582763671875, -0.056243896484375, -0.01273345947265625, -0.0276641845703125, 0.0184173583984375, 0.0236663818359375, 0.01617431640625, -0.034393310546875, -0.0263671875, -0.02398681640625, 0.0092315673828125, 0.005939483642578125, 0.01100921630859375, 0.020233154296875, 0.023345947265625, 0.03887939453125, 0.0168914794921875, -0.0272979736328125, -0.048858642578125, -0.0163116455078125, -0.025848388671875, -0.12152099609375, -0.01227569580078125, 0.039276123046875, -0.036590576171875, 0.08990478515625, 0.0225677490234375, 0.0186309814453125, 0.0204315185546875, 0.0191650390625, 0.0149078369140625, -0.01031494140625, -0.0345458984375, 0.03472900390625, 0.0138702392578125, 0.044189453125, 0.0014667510986328125, 0.03729248046875, -0.003875732421875, -0.01702880859375, 0.0117340087890625, -0.0033779144287109375, 0.033233642578125, -0.01274871826171875, -0.0169677734375, 0.0273590087890625, 0.0218048095703125, -0.0032863616943359375, 0.01427459716796875, -0.00981903076171875, 0.00981903076171875, -0.01192474365234375, -0.02532958984375, 0.028717041015625, 0.002593994140625, 0.0200653076171875, -0.0273895263671875, 0.01059722900390625, 0.0193328857421875, -0.01393890380859375, -0.0197906494140625, 0.07232666015625, 0.045745849609375, -0.09332275390625, -0.0191497802734375, 0.0265655517578125, -0.0095367431640625, -0.054962158203125, 0.0263214111328125, -0.022796630859375, -0.019256591796875, -0.050506591796875, -0.0234222412109375, -0.03759765625, -0.0281219482421875, 0.0147552490234375, 0.01471710205078125, -0.00882720947265625, 0.051971435546875, 0.00931549072265625, -0.0572509765625, 0.00502777099609375, 0.02294921875, -0.0124969482421875, -0.03472900390625, -0.0009341239929199219, 0.0006628036499023438, -0.0090179443359375, -0.038421630859375, 0.037139892578125, -0.0390625, 0.0104522705078125, 0.03118896484375, -0.0231475830078125, -0.00858306884765625, 0.0273284912109375, -0.033477783203125, 0.037872314453125, -0.004985809326171875, -0.068115234375, 0.0230255126953125, -0.0200347900390625, -0.009979248046875, 0.011322021484375, -0.031524658203125, 0.004787445068359375, -0.01381683349609375, 0.004505157470703125, -0.03704833984375, -0.051300048828125, 0.061065673828125, 0.019256591796875, -0.03167724609375, 0.022705078125, 0.047515869140625, -0.003513336181640625, -0.00867462158203125, 0.0343017578125, -0.051422119140625, -0.007049560546875, 0.009857177734375, 0.0181732177734375, 0.0019931793212890625, -0.0095672607421875, -0.06402587890625, 0.12054443359375, -0.0122528076171875, 0.0140533447265625, -0.01093292236328125, 0.046630859375, -0.01052093505859375, 0.038330078125, -0.0228271484375, 0.0377197265625, -0.003543853759765625, 0.0282745361328125, -0.0380859375, 0.0004856586456298828, -0.00499725341796875, 0.026885986328125, 0.06292724609375, 0.014373779296875, 0.0015172958374023438, -0.00951385498046875, 0.01849365234375, 0.0013723373413085938, -0.055023193359375, 0.036834716796875, -0.003406524658203125, -0.006595611572265625, 0.033172607421875, 0.048736572265625, 0.061798095703125, -0.0037689208984375, -0.04888916015625, 0.031280517578125, 0.0261993408203125, 0.056854248046875, -0.001644134521484375, 0.0011301040649414062, 0.01076507568359375, -0.0184478759765625, 0.02490234375, -0.043121337890625, 0.01030731201171875, -0.0015821456909179688, 0.02557373046875, -0.012359619140625, 0.0399169921875, -0.01715087890625, 0.054656982421875, 0.0137176513671875, 0.04315185546875, -0.002819061279296875, 0.009429931640625, 0.06292724609375, -0.0703125, -0.0016679763793945312, -0.0035228729248046875, -0.0325927734375, 0.0171356201171875, -0.0121307373046875, 0.01387786865234375, -0.0188446044921875, 0.03631591796875, 0.01413726806640625, 0.005130767822265625, -0.027313232421875, -0.0428466796875, 0.0165863037109375, 0.0223846435546875, -0.012908935546875, 0.0160980224609375, 0.0004963874816894531, 0.07440185546875, 0.1021728515625, -0.0751953125, -0.012908935546875, 0.00734710693359375, 0.0504150390625, -0.0269927978515625, -0.034088134765625, -0.006664276123046875, -0.058502197265625, -0.04559326171875, -0.0013027191162109375, 0.0254058837890625, 0.09197998046875, 0.023406982421875, 0.04547119140625, -0.0509033203125, -0.037445068359375, 0.0213470458984375, 0.00893402099609375, -0.0115814208984375, -0.0205841064453125, -0.00396728515625, -0.0298919677734375, -0.0294952392578125, 0.021087646484375, 0.027374267578125, 0.028839111328125, 0.03955078125, 0.03759765625, 0.0176239013671875, 0.0035343170166015625, 0.03619384765625, -0.0158538818359375, -0.0228271484375, -0.009765625, 0.0069122314453125, 0.036224365234375, 0.00586700439453125, 0.0034637451171875, 0.0192108154296875, 0.056732177734375, -0.044097900390625, 0.072998046875, -0.01337432861328125, -0.01378631591796875, 0.03271484375, -0.03692626953125, 0.0906982421875, -0.007427215576171875, -0.0491943359375, -0.0250091552734375, -0.050750732421875, -0.035797119140625, 0.03424072265625, 0.0458984375, 0.0213623046875, -0.01001739501953125, 0.0123443603515625, -0.028564453125, 0.01090240478515625, 0.013671875, 0.004070281982421875, -0.01885986328125, -0.007434844970703125, -0.0185394287109375, 0.0204620361328125, 0.002838134765625, 0.017303466796875, 0.033935546875, -0.0003905296325683594, 0.06396484375, -0.037689208984375, 0.006023406982421875, -0.0293121337890625, 0.06939697265625, -0.08685302734375, -0.052154541015625, 0.035858154296875, -0.0157623291015625, 0.01617431640625, 0.0034008026123046875, -0.02301025390625, -0.01363372802734375, 0.0576171875, -0.042236328125, -0.036285400390625, 0.0268707275390625, 0.03131103515625, -0.0189056396484375, 0.0626220703125, -0.019439697265625, -0.045654296875, -0.049346923828125, -0.00823974609375, 0.01739501953125, 0.03558349609375, -0.0047149658203125, 0.0170135498046875, 0.002025604248046875, -0.02545166015625, 0.007686614990234375, -0.0243988037109375, 0.0299224853515625, 0.034271240234375, -0.0074310302734375, -0.03125, 0.0245819091796875, -0.0095062255859375, 0.0063018798828125, 0.0212249755859375, -0.002086639404296875, 0.025634765625, -0.0299835205078125, 0.05535888671875, 0.0304718017578125, 0.0263519287109375, -0.057830810546875, -0.006504058837890625, 0.08184814453125, -0.00739288330078125, 0.0158538818359375, 0.0071868896484375, -0.039794921875, -0.0206298828125, -0.00720977783203125, -0.00867462158203125, 0.0030612945556640625, -0.05670166015625, -0.04205322265625, 0.01145172119140625, 0.035888671875, -0.0174102783203125, -0.007511138916015625, -0.01247406005859375, -0.049346923828125, 0.057098388671875, -0.01403045654296875, -0.0247650146484375, 0.022918701171875, 0.034454345703125, -0.0302886962890625, 0.05126953125, -0.0048065185546875, -0.054718017578125, 0.025604248046875, 0.017669677734375, 0.01910400390625, -0.032989501953125, -0.0265350341796875, 0.02978515625, 0.0219573974609375, 0.0562744140625, 0.073974609375, -0.019378662109375, 0.01267242431640625, -0.015838623046875, -0.051483154296875, -0.041351318359375, 0.03887939453125, -0.056854248046875, -0.052947998046875, 0.007602691650390625, -0.024139404296875, 0.00481414794921875, -0.045501708984375, -0.10052490234375, 0.053192138671875, -0.007015228271484375, -0.043060302734375, -0.0570068359375, -0.00240325927734375, 0.0014905929565429688, 0.0159454345703125, -0.0183258056640625, -0.01012420654296875, -0.023223876953125, 0.066162109375, 0.0171356201171875, 0.004909515380859375, 0.037689208984375, -0.0264129638671875, -0.08245849609375, -0.01369476318359375, -0.0225067138671875, 0.01360321044921875, 0.011962890625, -0.018218994140625, 0.0012903213500976562, 0.0094757080078125, -0.052276611328125, -0.04644775390625, -0.02362060546875, -0.003143310546875, 0.038177490234375, -0.0333251953125, -0.056182861328125, -0.06353759765625, 0.037750244140625, -0.046417236328125, 0.0241546630859375, 0.0206451416015625, -0.01806640625, 0.007266998291015625, -0.0029582977294921875, 0.0113372802734375, 0.02130126953125, -0.04425048828125, 0.00496673583984375, 0.01491546630859375, -0.0169219970703125, -0.0070343017578125, 0.0094451904296875, -0.049346923828125, -0.01013946533203125, -0.0213623046875, -0.00894927978515625, -0.07513427734375, 0.028656005859375, -0.0287017822265625, -0.0156707763671875, -0.0322265625, -0.03948974609375, -0.0008034706115722656, -0.056854248046875, -0.0380859375, -0.0183563232421875, -0.03277587890625, -0.013946533203125, 0.011749267578125, -0.00959014892578125, 0.003997802734375, 0.0064849853515625, -0.0159912109375, -0.0201263427734375, 0.01413726806640625, 0.017578125, 0.0018444061279296875, -0.036224365234375, 0.0281524658203125, 0.0155181884765625, 0.05706787109375, -0.01165008544921875, -0.0243682861328125, -0.0255279541015625, 0.029754638671875, -0.005779266357421875, -0.0017185211181640625, 0.0177154541015625, -0.00974273681640625, 0.0021419525146484375, -0.0186614990234375, 0.0041046142578125, -0.00925445556640625, -0.0200347900390625, -0.0543212890625, -0.02410888671875, 0.00885772705078125 ]
6fc4580f3b4b1a49c91552f445252b44ae08687c
Wordpress Stackexchange Q: Delete option doesn't appear for plugins On the Plugins screen I have options to activate and deactivate plugins, but I no longer have the "Delete" option. I'm relatively sure the option appeared earlier. Also, when I hover over "Plugins" on the admin menu I don't get the usual popup submenu showing "Install New / Add / Editor". And when I click the Plugins menu I don't see those submenu options either. What's gone wrong? FWIW, the client I'm working for is hosted at GoDaddy. A: D'oh. I fixed it, but I'll leave this question in case others have similar problems. When copy/pasting various options into wp-config.php I accidentally included this setting, which I don't normally use: // Overkill but FYI: disallows installation/updating of any theme or plugin define('DISALLOW_FILE_MODS',true); That produces the described problem, albeit by design.
Q: Delete option doesn't appear for plugins On the Plugins screen I have options to activate and deactivate plugins, but I no longer have the "Delete" option. I'm relatively sure the option appeared earlier. Also, when I hover over "Plugins" on the admin menu I don't get the usual popup submenu showing "Install New / Add / Editor". And when I click the Plugins menu I don't see those submenu options either. What's gone wrong? FWIW, the client I'm working for is hosted at GoDaddy. A: D'oh. I fixed it, but I'll leave this question in case others have similar problems. When copy/pasting various options into wp-config.php I accidentally included this setting, which I don't normally use: // Overkill but FYI: disallows installation/updating of any theme or plugin define('DISALLOW_FILE_MODS',true); That produces the described problem, albeit by design. A: This help me a lot, actually I had 2 options active on my wp-config (never added them) define('DISALLOW_FILE_EDIT', true); define('DISALLOW_FILE_MODS', true); just set the mode to false and problem solve itself... A: 5 years after but I guess I´ll add my 2 cents. Don´t choose the plugin option on the left bar menu. instead, go to the top left on your screen and hover on my sites and on that sub-menu then hover on network admin and choose plugins there. Once that is done you will get the missing sub menu option to add new and the delete option will also become available once again on the activate, deactivate sub menu as well. cheers A: This helped me. Somehow it was there and i have never put it myself. Change define('DISALLOW_FILE_MODS',true); to define('DISALLOW_FILE_MODS',false );
wordpress
{ "language": "en", "length": 272, "provenance": "stackexchange_00019.jsonl.gz:432292", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/99041" }
[ 0.036102294921875, 0.0267791748046875, 0.0083465576171875, 0.07232666015625, 0.01390838623046875, -0.03759765625, 0.0885009765625, -0.09259033203125, 0.0304412841796875, 0.0124053955078125, -0.033416748046875, -0.034423828125, 0.00018310546875, -0.02532958984375, -0.0282745361328125, -0.048828125, 0.026092529296875, -0.019287109375, 0.0196990966796875, -0.003116607666015625, -0.01398468017578125, 0.01885986328125, 0.02264404296875, 0.025543212890625, -0.0004153251647949219, 0.024383544921875, 0.04864501953125, -0.048187255859375, 0.011444091796875, -0.036834716796875, 0.0103912353515625, 0.01235198974609375, -0.01085662841796875, 0.02532958984375, 0.01372528076171875, -0.01641845703125, -0.006427764892578125, 0.01287078857421875, 0.0169525146484375, -0.0012035369873046875, 0.044342041015625, -0.0260162353515625, 0.018218994140625, -0.0036487579345703125, 0.012451171875, -0.043304443359375, 0.0550537109375, -0.04107666015625, 0.012054443359375, -0.052764892578125, 0.0166473388671875, -0.0097503662109375, 0.04986572265625, -0.058349609375, -0.035980224609375, -0.03399658203125, -0.048248291015625, 0.0985107421875, 0.0150146484375, 0.01470184326171875, -0.01148223876953125, 0.041107177734375, -0.006015777587890625, -0.00988006591796875, 0.0127716064453125, -0.0021076202392578125, -0.0003991127014160156, 0.0217742919921875, -0.05316162109375, 0.0142669677734375, 0.04852294921875, -0.044769287109375, 0.01556396484375, -0.0390625, 0.01050567626953125, 0.00618743896484375, 0.002532958984375, 0.013336181640625, 0.020965576171875, -0.0237884521484375, 0.03192138671875, 0.0164642333984375, -0.017364501953125, 0.005767822265625, 0.00803375244140625, 0.031768798828125, 0.0017795562744140625, -0.0322265625, -0.0175018310546875, 0.0154266357421875, -0.0222015380859375, -0.05242919921875, 0.026519775390625, 0.0343017578125, -0.0111083984375, 0.005214691162109375, 0.0200958251953125, 0.057861328125, 0.0006165504455566406, 0.0035228729248046875, 0.006839752197265625, -0.0379638671875, 0.0199432373046875, -0.0462646484375, -0.0118408203125, 0.019805908203125, 0.0226898193359375, 0.01430511474609375, 0.00860595703125, 0.0255279541015625, -0.0201873779296875, -0.005588531494140625, 0.02850341796875, -0.048980712890625, 0.023040771484375, -0.0127410888671875, -0.032806396484375, 0.050079345703125, 0.0294952392578125, -0.020477294921875, -0.0008096694946289062, 0.042205810546875, -0.05389404296875, -0.01934814453125, -0.0128631591796875, -0.041107177734375, 0.0022106170654296875, -0.00083160400390625, -0.021453857421875, -0.0199432373046875, -0.043670654296875, 0.0457763671875, 0.0582275390625, 0.02899169921875, 0.002422332763671875, 0.0004744529724121094, 0.00923919677734375, 0.006565093994140625, 0.01163482666015625, -0.032318115234375, 0.04168701171875, 0.037933349609375, 0.026702880859375, -0.0013675689697265625, 0.0215606689453125, 0.02374267578125, 0.0120086669921875, -0.006946563720703125, 0.020477294921875, -0.0242919921875, -0.01922607421875, -0.009613037109375, 0.0439453125, 0.0037250518798828125, -0.0034732818603515625, -0.0224151611328125, 0.055450439453125, -0.05731201171875, -0.0203857421875, -0.06494140625, 0.01303863525390625, -0.010833740234375, -0.0008349418640136719, -0.038360595703125, -0.042205810546875, 0.005481719970703125, -0.039306640625, -0.0024280548095703125, 0.0128936767578125, 0.005664825439453125, -0.0102996826171875, -0.05096435546875, 0.0012378692626953125, 0.034271240234375, 0.007198333740234375, 0.0650634765625, 0.0231781005859375, -0.00917816162109375, 0.026611328125, 0.034912109375, -0.0105133056640625, -0.011383056640625, 0.0380859375, -0.00962066650390625, -0.0648193359375, -0.00824737548828125, 0.01036834716796875, 0.033935546875, 0.0246734619140625, 0.021820068359375, 0.0662841796875, 0.005893707275390625, -0.01302337646484375, 0.007663726806640625, 0.00457763671875, -0.0279388427734375, -0.006988525390625, 0.0013055801391601562, -0.01253509521484375, -0.013702392578125, -0.0255126953125, 0.00560760498046875, -0.007228851318359375, -0.0272674560546875, -0.08258056640625, -0.005748748779296875, -0.035491943359375, 0.060394287109375, 0.035888671875, 0.0120697021484375, -0.01157379150390625, -0.03143310546875, 0.01194000244140625, -0.041961669921875, -0.044403076171875, 0.0262298583984375, -0.047027587890625, 0.049652099609375, -0.0021839141845703125, 0.033355712890625, -0.00800323486328125, -0.025909423828125, 0.01262664794921875, -0.0281982421875, 0.02813720703125, 0.00832366943359375, -0.0220184326171875, -0.0181121826171875, 0.00649261474609375, 0.0005459785461425781, 0.00809478759765625, 0.034027099609375, 0.0279541015625, 0.019012451171875, -0.032684326171875, -0.0127105712890625, -0.0252532958984375, -0.07049560546875, 0.00299835205078125, 0.055633544921875, 0.0183868408203125, 0.033935546875, -0.027099609375, 0.0011768341064453125, 0.051544189453125, -0.014984130859375, 0.0016336441040039062, 0.0094146728515625, 0.0179901123046875, 0.0170135498046875, 0.0306854248046875, -0.0207977294921875, 0.0262603759765625, -0.00872802734375, 0.03961181640625, 0.0091552734375, -0.039581298828125, -0.0452880859375, 0.02947998046875, -0.0138397216796875, 0.01221466064453125, -0.040557861328125, -0.00691986083984375, -0.0183563232421875, 0.03924560546875, -0.0299530029296875, 0.0191192626953125, 0.00852203369140625, -0.0097808837890625, -0.006702423095703125, 0.024932861328125, -0.01113128662109375, -0.0126495361328125, 0.00804901123046875, 0.03607177734375, 0.005817413330078125, -0.0584716796875, 0.0022106170654296875, 0.0286102294921875, -0.0032958984375, -0.03155517578125, -0.033905029296875, -0.01442718505859375, -0.0139312744140625, 0.006381988525390625, -0.050689697265625, 0.0260009765625, 0.00875091552734375, 0.010589599609375, 0.00547027587890625, 0.044525146484375, -0.0123291015625, -0.04034423828125, 0.03497314453125, -0.01271820068359375, -0.0272064208984375, 0.0245208740234375, -0.01470184326171875, 0.019683837890625, -0.0166473388671875, 0.033447265625, 0.05316162109375, -0.01092529296875, -0.0029697418212890625, 0.01409149169921875, 0.0133209228515625, 0.03839111328125, 0.0034160614013671875, 0.00023162364959716797, 0.042327880859375, -0.07794189453125, -0.01177978515625, 0.0016002655029296875, 0.00775909423828125, -0.0274658203125, -0.060302734375, -0.03887939453125, -0.005870819091796875, -0.07855224609375, -0.00957489013671875, -0.039276123046875, -0.047760009765625, 0.021026611328125, 0.00807952880859375, -0.01397705078125, -0.00231170654296875, 0.031463623046875, 0.017303466796875, -0.047882080078125, -0.00463104248046875, 0.005130767822265625, -0.039154052734375, -0.035125732421875, -0.01910400390625, -0.00127410888671875, 0.0248260498046875, 0.004329681396484375, 0.0733642578125, 0.003261566162109375, -0.07568359375, -0.00946044921875, -0.05731201171875, -0.023834228515625, 0.02349853515625, 0.07196044921875, -0.013336181640625, -0.032012939453125, 0.02008056640625, 0.0302276611328125, 0.033905029296875, -0.06732177734375, -0.02349853515625, -0.0171661376953125, -0.005840301513671875, 0.0011072158813476562, -0.024658203125, 0.01517486572265625, 0.007167816162109375, -0.0179443359375, -0.04168701171875, 0.031951904296875, -0.0050811767578125, 0.0020294189453125, 0.03558349609375, -0.03387451171875, -0.018280029296875, 0.0143890380859375, 0.02392578125, -0.00220489501953125, 0.030487060546875, 0.012786865234375, -0.0132293701171875, -0.02227783203125, -0.01318359375, -0.021759033203125, -0.011322021484375, 0.033660888671875, -0.0107269287109375, -0.004795074462890625, 0.0118865966796875, -0.00772857666015625, -0.00876617431640625, 0.0253448486328125, -0.0171356201171875, -0.01788330078125, 0.059906005859375, -0.005664825439453125, 0.0031909942626953125, -0.0235443115234375, -0.029510498046875, -0.0029811859130859375, 0.071533203125, -0.039093017578125, -0.041839599609375, -0.032867431640625, 0.020660400390625, 0.00218963623046875, -0.0496826171875, 0.0239105224609375, -0.026580810546875, -0.1053466796875, 0.051300048828125, 0.0306854248046875, -0.031890869140625, -0.04217529296875, 0.02178955078125, -0.09375, -0.033355712890625, 0.042022705078125, -0.08319091796875, 0.0084991455078125, -0.00225067138671875, -0.0283050537109375, -0.043548583984375, -0.044189453125, -0.038299560546875, -0.033599853515625, -0.0177459716796875, -0.0006594657897949219, 0.03662109375, 0.004001617431640625, 0.01708984375, -0.032623291015625, 0.018463134765625, 0.0159454345703125, 0.0192718505859375, 0.0013818740844726562, 0.005207061767578125, -0.0176544189453125, -0.0286102294921875, 0.006145477294921875, -0.034759521484375, 0.009002685546875, -0.021881103515625, -0.0291290283203125, -0.0072021484375, -0.0131683349609375, 0.0284271240234375, -0.00682830810546875, -0.025360107421875, -0.0108489990234375, -0.024932861328125, -0.055145263671875, -0.00600433349609375, -0.003276824951171875, -0.01392364501953125, -0.01763916015625, -0.035430908203125, 0.00016450881958007812, -0.086669921875, 0.004627227783203125, 0.033203125, 0.083251953125, 0.012176513671875, 0.0284881591796875, -0.00928497314453125, 0.01580810546875, 0.0114288330078125, 0.023468017578125, 0.03704833984375, 0.0196990966796875, 0.0199432373046875, -0.022003173828125, -0.002269744873046875, 0.033966064453125, -0.0504150390625, 0.041656494140625, -0.008697509765625, -0.0006256103515625, 0.018585205078125, -0.0109710693359375, 0.03369140625, 0.036956787109375, 0.0090484619140625, -0.0270538330078125, 0.016510009765625, 0.035308837890625, -0.020721435546875, -0.0023822784423828125, -0.0243072509765625, -0.05517578125, 0.007602691650390625, -0.00904083251953125, 0.043609619140625, 0.0247802734375, -0.0034332275390625, 0.046142578125, 0.01953125, -0.00565338134765625, -0.00939178466796875, 0.00847625732421875, -0.00923919677734375, 0.057891845703125, -0.039215087890625, -0.0001513957977294922, -0.00312042236328125, -0.0204315185546875, 0.1131591796875, -0.0008516311645507812, -0.048858642578125, -0.01062774658203125, -0.032073974609375, 0.0251007080078125, 0.03985595703125, 0.010467529296875, -0.0032291412353515625, 0.034576416015625, 0.008941650390625, 0.01253509521484375, 0.005588531494140625, 0.050811767578125, -0.0105133056640625, 0.0140228271484375, -0.016143798828125, 0.00086212158203125, 0.0254974365234375, 0.038330078125, -0.03485107421875, 0.023040771484375, 0.0038356781005859375, 0.004817962646484375, -0.0127410888671875, 0.040374755859375, 0.036285400390625, -0.0229644775390625, 0.0128021240234375, -0.0226287841796875, -0.0146942138671875, -0.047576904296875, -0.04254150390625, 0.00476837158203125, 0.0236358642578125, -0.0164642333984375, -0.003814697265625, 0.035247802734375, 0.02294921875, -0.034210205078125, 0.051055908203125, 0.0302886962890625, -0.06732177734375, 0.0079345703125, 0.051788330078125, 0.0186004638671875, -0.02056884765625, -0.02618408203125, 0.0016326904296875, -0.01131439208984375, -0.0023479461669921875, 0.0203704833984375, -0.0726318359375, 0.0232696533203125, 0.0333251953125, 0.0146942138671875, -0.0157012939453125, -0.01403045654296875, -0.035919189453125, -0.02215576171875, -0.01274871826171875, 0.0132293701171875, 0.049560546875, -0.0238189697265625, 0.02032470703125, 0.0095977783203125, -0.034454345703125, 0.0318603515625, 0.01512908935546875, 0.060028076171875, 0.0333251953125, -0.047027587890625, -0.014923095703125, -0.01873779296875, -0.03369140625, -0.04339599609375, -0.0292510986328125, -0.054962158203125, -0.004329681396484375, 0.0121307373046875, 0.0114288330078125, -0.025909423828125, -0.043670654296875, -0.03729248046875, 0.023834228515625, 0.0509033203125, 0.0308074951171875, 0.00301361083984375, 0.0325927734375, 0.02734375, 0.019744873046875, 0.0231170654296875, 0.01367950439453125, -0.02325439453125, -0.01529693603515625, 0.0267181396484375, -0.0003497600555419922, -0.02020263671875, -0.03887939453125, -0.0123138427734375, -0.012725830078125, 0.057830810546875, -0.0055694580078125, -0.0177764892578125, 0.007717132568359375, -0.001430511474609375, -0.0222320556640625, 0.060638427734375, 0.03143310546875, 0.005809783935546875, 0.001010894775390625, -0.0849609375, -0.034271240234375, 0.035797119140625, 0.01287078857421875, -0.00557708740234375, -0.037445068359375, -0.0163116455078125, 0.058319091796875, -0.018798828125, 0.07586669921875, 0.0323486328125, -0.0286407470703125, 0.027435302734375, 0.01142120361328125, 0.003570556640625, -0.01568603515625, -0.0190582275390625, 0.029693603515625, -0.00920867919921875, 0.0341796875, -0.0016002655029296875, -0.0086822509765625, 0.027801513671875, -0.0266571044921875, 0.0247039794921875, 0.053070068359375, 0.0556640625, -0.10198974609375, 0.02545166015625, 0.009796142578125, 0.01519012451171875, 0.0579833984375, -0.023956298828125, 0.031585693359375, 0.01459503173828125, 0.0142974853515625, -0.00511932373046875, -0.0237274169921875, -0.012054443359375, -0.0200958251953125, -0.0163116455078125, 0.0031452178955078125, -0.0252838134765625, 0.008514404296875, -0.002044677734375, 0.01058197021484375, 0.00940704345703125, 0.0277099609375, -0.004253387451171875, 0.00841522216796875, 0.014312744140625, -0.0066986083984375, -0.0537109375, 0.006504058837890625, -0.04962158203125, -0.01415252685546875, 0.02801513671875, -0.00142669677734375, -0.002269744873046875, 0.0498046875, -0.027374267578125, 0.0034732818603515625, 0.0177459716796875, -0.0250091552734375, 0.0161590576171875, -0.030731201171875, 0.0306243896484375, -0.00859832763671875, -0.05841064453125, 0.01023101806640625, -0.0267791748046875, -0.045745849609375, 0.002239227294921875, 0.01971435546875, 0.08544921875, -0.05865478515625, -0.003856658935546875, 0.051025390625, 0.01177215576171875, -0.03125, -0.0219268798828125, -0.0210723876953125, -0.0297698974609375, 0.0222625732421875, -0.02532958984375, 0.016357421875, 0.0292510986328125, -0.000621795654296875, -0.047119140625, 0.08258056640625, -0.003025054931640625, 0.0210113525390625, 0.00855255126953125, 0.035888671875, -0.0270538330078125, 0.017608642578125, 0.0016546249389648438, 0.010284423828125, -0.033599853515625, 0.006534576416015625, 0.0159454345703125, 0.030487060546875, -0.0058746337890625, -0.0019435882568359375, 0.050384521484375, 0.015716552734375, 0.0155487060546875, 0.020355224609375, 0.0712890625, 0.02099609375, -0.016876220703125, 0.01552581787109375, 0.00786590576171875, 0.0001379251480102539, 0.019622802734375, -0.02862548828125, 0.0172576904296875, -0.0291290283203125, 0.012786865234375, 0.032012939453125, -0.0009822845458984375, -0.003971099853515625, 0.006465911865234375, 0.044219970703125, 0.036407470703125, -0.0201873779296875, -0.01983642578125, -0.041259765625, -0.0109710693359375, 0.0230560302734375, -0.0022869110107421875, -0.0285186767578125, -0.0330810546875, -0.014923095703125, 0.027801513671875, -0.00847625732421875, -0.0295867919921875, -0.0030002593994140625, 0.0120697021484375, -0.047119140625, -0.05780029296875, -0.0308685302734375, 0.0150146484375, -0.048797607421875, 0.0066375732421875, 0.0206146240234375, 0.0212860107421875, -0.0208587646484375, 0.0058441162109375, 0.053924560546875, 0.03369140625, -0.02447509765625, -0.08984375, 0.00856781005859375, -0.0106658935546875, 0.01009368896484375, 0.03643798828125, -0.0104827880859375, -0.01068878173828125, 0.06787109375, -0.0093536376953125, -0.00609588623046875, -0.00447845458984375, 0.0250701904296875, 0.00079345703125, 0.0251007080078125, -0.00982666015625, -0.017303466796875, -0.039794921875, 0.04840087890625, 0.00452423095703125, 0.00948333740234375, -0.01088714599609375, 0.039154052734375, 0.0242767333984375, 0.007328033447265625, -0.01552581787109375, 0.05865478515625, -0.0229339599609375, 0.02264404296875, -0.07421875, -0.088134765625, 0.0142822265625, 0.04913330078125, -0.0210723876953125, -0.0010328292846679688, 0.03533935546875, 0.04583740234375, -0.03204345703125, -0.0259552001953125, 0.037841796875, -0.01015472412109375, -0.0264129638671875, -0.00905609130859375, 0.017547607421875, 0.0389404296875, 0.00363922119140625, -0.034912109375, 0.0236358642578125, 0.055572509765625, -0.050445556640625, -0.00208282470703125, -0.0022258758544921875, -0.032928466796875, 0.03759765625, -0.01212310791015625, 0.014892578125, -0.032073974609375, -0.0250244140625, -0.00946807861328125, -0.045806884765625, 0.01216888427734375, -0.0024280548095703125, 0.0170135498046875, -0.00244140625, 0.05157470703125, 0.002300262451171875, -0.01473236083984375, 0.00010478496551513672, 0.005764007568359375, 0.016082763671875, 0.02081298828125, 0.01288604736328125, 0.00725555419921875, -0.0279998779296875, -0.0025997161865234375, -0.00665283203125, 0.020904541015625, 0.006725311279296875, 0.08642578125, -0.025726318359375, 0.0121002197265625, -0.01306915283203125, 0.0189361572265625, -0.016693115234375, -0.0279083251953125, 0.0731201171875, 0.0182037353515625, -0.02313232421875, -0.0201263427734375, -0.08160400390625, 0.0184783935546875, 0.0182647705078125, -0.0016965866088867188, -0.005428314208984375, 0.01007843017578125, 0.018768310546875, 0.014404296875, 0.0201568603515625, -0.0062103271484375, -0.0330810546875, -0.01233673095703125, 0.01410675048828125, 0.0143890380859375, 0.051605224609375, -0.014434814453125, 0.01059722900390625, 0.0306549072265625, -0.00389862060546875, -0.00470733642578125, 0.007061004638671875, -0.0142364501953125, 0.032379150390625, 0.0282440185546875, -0.036468505859375, 0.0131683349609375, -0.00975799560546875, -0.018707275390625, 0.034820556640625, 0.031219482421875, 0.026580810546875, -0.0027713775634765625, 0.004192352294921875, -0.0270843505859375, -0.006885528564453125, -0.04913330078125, -0.031280517578125, 0.0111541748046875, 0.0042877197265625, -0.01012420654296875, -0.0229034423828125, -0.044677734375, -0.06903076171875, -0.006439208984375, 0.01358795166015625, -0.05389404296875, -0.055419921875, -0.08599853515625, 0.041229248046875, 0.0239105224609375, 0.034576416015625, -0.104736328125, 0.084228515625, -0.01018524169921875, 0.0184783935546875, -0.005584716796875, 0.005184173583984375, -0.0007576942443847656, 0.00666046142578125, -0.040557861328125, 0.0014715194702148438, -0.01226806640625, 0.007274627685546875, 0.00815582275390625, 0.008941650390625, 0.0021495819091796875, -0.026275634765625, 0.00443267822265625, 0.035675048828125, 0.03179931640625, 0.06494140625, 0.0718994140625, -0.024383544921875, -0.038330078125, 0.00971221923828125, 0.0120849609375, -0.01010894775390625, 0.022247314453125, -0.03216552734375, -0.048370361328125, -0.041290283203125, 0.0287322998046875, 0.028656005859375, -0.0587158203125, -0.09625244140625, 0.0233917236328125, -0.016143798828125, -0.04595947265625, 0.0142974853515625, -0.034088134765625, -0.01184844970703125, 0.0084991455078125, 0.00128936767578125, -0.004192352294921875, -0.044464111328125, 0.01154327392578125, -0.028228759765625, 0.032196044921875, -0.0009746551513671875, -0.0243682861328125, 0.00439453125, -0.00679779052734375, 0.014739990234375, -0.036651611328125, 0.040435791015625, -0.044952392578125, 0.0684814453125, 0.067626953125, -0.0222930908203125, -0.01491546630859375, -0.004199981689453125, -0.03900146484375, 0.006046295166015625, -0.0557861328125, -0.0252227783203125, -0.0107421875, 0.04449462890625, 0.0279998779296875, 0.00899505615234375, -0.0185394287109375, -0.0151824951171875, -0.033538818359375, 0.0021820068359375, -0.0278778076171875, 0.00018095970153808594, -0.05828857421875, -0.01378631591796875, -0.00952911376953125, -0.01036834716796875, -0.020294189453125, -0.0010385513305664062, -0.0193023681640625, -0.0141754150390625, -0.0007281303405761719, -0.0011911392211914062, -0.0192108154296875, -0.01336669921875, 0.039886474609375, -0.0244598388671875, -0.01030731201171875, -0.01317596435546875, 0.01055908203125, -0.00481414794921875, -0.00475311279296875, -0.0104217529296875, -0.0112457275390625, -0.06060791015625, 0.01422882080078125, -0.0287628173828125, 0.046051025390625, -0.047332763671875, -0.0233917236328125, 0.005825042724609375, 0.0199127197265625, -0.01412200927734375, 0.01531982421875, -0.00835418701171875, 0.08056640625, -0.0019407272338867188, 0.044769287109375, 0.012969970703125, 0.0160675048828125, -0.02978515625, 0.06024169921875, 0.01605224609375, -0.035430908203125, 0.034576416015625, -0.03851318359375, 0.0009064674377441406, 0.015045166015625, -0.01123809814453125, -0.05767822265625, 0.028472900390625, 0.0528564453125, 0.0187530517578125, 0.0285186767578125 ]
e86b0bb243e578abaa4482acd8f40b453da4da6e
Wordpress Stackexchange Q: How do you use unzip_file()? I have been trying to use the unzip_file() function. It says undefined so I looked into it and the WP_Filesystem() must be called and set up. So easy, right? require_once(ABSPATH .'/wp-admin/includes/file.php'); WP_Filesystem(); unzip_file( $zip, $dest ); Even this shows as undefined, and I don't see any documentation on it. I am trying to use the unzip feature to unpack a separate plugin during theme install. A: require_once(ABSPATH .'/wp-admin/includes/file.php'); global $wp_filesystem; if ( ! $filesystem ) { WP_Filesystem(); if ( ! $wp_filesystem ) nuke_the_world_because_wpfs_cannot_be_initialized_in_case_of_missing_arguments('!'); } $result = unzip_file( $zip, $dest ); if ( is_wp_error( $result ) ) nuke_the_world(); Maybe some error handling make it easier.
Q: How do you use unzip_file()? I have been trying to use the unzip_file() function. It says undefined so I looked into it and the WP_Filesystem() must be called and set up. So easy, right? require_once(ABSPATH .'/wp-admin/includes/file.php'); WP_Filesystem(); unzip_file( $zip, $dest ); Even this shows as undefined, and I don't see any documentation on it. I am trying to use the unzip feature to unpack a separate plugin during theme install. A: require_once(ABSPATH .'/wp-admin/includes/file.php'); global $wp_filesystem; if ( ! $filesystem ) { WP_Filesystem(); if ( ! $wp_filesystem ) nuke_the_world_because_wpfs_cannot_be_initialized_in_case_of_missing_arguments('!'); } $result = unzip_file( $zip, $dest ); if ( is_wp_error( $result ) ) nuke_the_world(); Maybe some error handling make it easier. A: If you can't get WordPress to unzip the file, PHP has its own zip file implementation (documentation can be found at http://php.net/manual/en/book.zip.php). Simple examples can be found at http://www.php.net/manual/en/zip.examples.php.
wordpress
{ "language": "en", "length": 140, "provenance": "stackexchange_00019.jsonl.gz:432299", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/99070" }
[ 0.0185699462890625, -0.0130157470703125, -0.0200958251953125, -0.052215576171875, -0.007038116455078125, -0.0010633468627929688, -0.0237579345703125, 0.002101898193359375, 0.044586181640625, -0.022705078125, -0.05145263671875, -0.0010557174682617188, -0.03851318359375, 0.0011644363403320312, -0.0193939208984375, -0.0252532958984375, 0.0599365234375, -0.0165252685546875, 0.07147216796875, 0.03082275390625, 0.020538330078125, 0.0592041015625, 0.01641845703125, 0.0216064453125, -0.0262908935546875, 0.057586669921875, 0.06256103515625, -0.0092010498046875, -0.043121337890625, -0.046722412109375, -0.004741668701171875, 0.036834716796875, 0.0036754608154296875, 0.028594970703125, -0.00911712646484375, 0.02435302734375, -0.0170745849609375, 0.032806396484375, 0.0121612548828125, 0.026336669921875, 0.0280914306640625, -0.0181884765625, -0.0274200439453125, 0.07281494140625, -0.0279083251953125, -0.05206298828125, 0.0107574462890625, -0.036346435546875, -0.005519866943359375, -0.028228759765625, 0.0271453857421875, 0.0170745849609375, 0.05072021484375, -0.1007080078125, -0.00496673583984375, 0.0261993408203125, -0.0183868408203125, 0.0682373046875, 0.03155517578125, -0.007297515869140625, -0.04547119140625, 0.019500732421875, -0.004405975341796875, -0.0209197998046875, 0.003864288330078125, -0.01152801513671875, -0.0032806396484375, 0.028076171875, -0.036895751953125, -0.004791259765625, 0.0249176025390625, -0.01393890380859375, 0.0015687942504882812, -0.006801605224609375, 0.007205963134765625, -0.00528717041015625, -0.0080108642578125, -0.0020999908447265625, 0.01305389404296875, 0.0200653076171875, 0.0140228271484375, 0.005245208740234375, -0.0322265625, -0.009979248046875, 0.0312042236328125, 0.035736083984375, -0.00616455078125, -0.034515380859375, -0.003917694091796875, 0.0151519775390625, -0.02099609375, 0.040679931640625, 0.01291656494140625, 0.0158843994140625, -0.0298309326171875, 0.0008134841918945312, -0.00011032819747924805, 0.00414276123046875, -0.00817108154296875, 0.0224456787109375, 0.00022721290588378906, -0.043792724609375, 0.04119873046875, -0.0291748046875, 0.01507568359375, 0.0296630859375, -0.020294189453125, -0.03375244140625, 0.0178070068359375, 0.039337158203125, 0.00319671630859375, -0.00850677490234375, -0.020172119140625, -0.09161376953125, 0.0201568603515625, 0.06207275390625, 0.007904052734375, 0.02685546875, 0.049713134765625, 0.02020263671875, 0.006134033203125, -0.0135955810546875, 0.00983428955078125, 0.01233673095703125, -0.0047149658203125, -0.0268096923828125, -0.03045654296875, 0.00923919677734375, 0.022735595703125, 0.033721923828125, 0.00946044921875, 0.0013637542724609375, -0.01739501953125, -0.005290985107421875, -0.030364990234375, -0.0007748603820800781, 0.03631591796875, 0.024810791015625, 0.01264190673828125, -0.00010532140731811523, 0.043212890625, -0.0250701904296875, -0.0249786376953125, 0.040863037109375, 0.0310821533203125, 0.0179290771484375, 0.00847625732421875, 0.01080322265625, 0.00370025634765625, -0.02203369140625, 0.0303192138671875, -0.013214111328125, 0.0013599395751953125, 0.034454345703125, -0.002559661865234375, 0.000021219253540039062, 0.020050048828125, -0.0259246826171875, 0.00695037841796875, -0.0634765625, -0.004001617431640625, -0.045074462890625, -0.032440185546875, 0.0115966796875, -0.01033782958984375, 0.074951171875, 0.0251922607421875, 0.02154541015625, 0.0157012939453125, -0.040313720703125, 0.0246734619140625, -0.03717041015625, 0.0279541015625, 0.005580902099609375, -0.0002015829086303711, 0.052947998046875, 0.01412200927734375, -0.01288604736328125, -0.00662994384765625, 0.06695556640625, 0.0008673667907714844, -0.0311126708984375, 0.0185394287109375, -0.0143280029296875, -0.030059814453125, -0.0265960693359375, 0.0064544677734375, 0.0103759765625, 0.047119140625, 0.01222991943359375, 0.0016374588012695312, 0.01232147216796875, -0.003753662109375, 0.025787353515625, -0.0146636962890625, -0.027130126953125, -0.045989990234375, 0.005558013916015625, -0.027496337890625, -0.0028076171875, 0.01226043701171875, -0.01885986328125, 0.0267181396484375, 0.0217437744140625, -0.036895751953125, 0.0197601318359375, -0.031494140625, 0.0131683349609375, -0.03570556640625, -0.01256561279296875, 0.0199432373046875, -0.038818359375, -0.0036220550537109375, -0.000659942626953125, -0.00131988525390625, 0.028167724609375, -0.01439666748046875, 0.05108642578125, -0.0261993408203125, 0.06719970703125, -0.017333984375, -0.05572509765625, -0.0177001953125, -0.0224609375, 0.029327392578125, 0.0301513671875, -0.03839111328125, 0.0052490234375, 0.0250701904296875, -0.0082855224609375, 0.03955078125, 0.042877197265625, -0.0016088485717773438, 0.034912109375, -0.0253143310546875, -0.020416259765625, -0.026641845703125, -0.055267333984375, 0.01221466064453125, 0.058197021484375, 0.07672119140625, 0.047607421875, 0.017608642578125, -0.051483154296875, 0.0732421875, -0.03643798828125, 0.034271240234375, -0.087890625, -0.0007443428039550781, 0.0235443115234375, 0.01092529296875, 0.004001617431640625, -0.005619049072265625, -0.02813720703125, -0.002971649169921875, 0.02618408203125, -0.0197906494140625, -0.005229949951171875, 0.004779815673828125, 0.01468658447265625, -0.00876617431640625, 0.00809478759765625, 0.020843505859375, -0.0023288726806640625, 0.016357421875, 0.029388427734375, 0.0224456787109375, 0.0120391845703125, -0.0247650146484375, 0.0286865234375, 0.010650634765625, -0.0274658203125, -0.0167083740234375, 0.039794921875, 0.020660400390625, -0.038604736328125, -0.044464111328125, 0.017364501953125, -0.004253387451171875, 0.008514404296875, -0.033721923828125, 0.00759124755859375, -0.01284027099609375, -0.0171661376953125, -0.024200439453125, -0.051239013671875, 0.0341796875, -0.00855255126953125, -0.04217529296875, -0.008636474609375, 0.00870513916015625, 0.035736083984375, 0.0010776519775390625, -0.00807952880859375, -0.01506805419921875, 0.01910400390625, 0.06268310546875, 0.0111541748046875, -0.00322723388671875, 0.007289886474609375, 0.053253173828125, 0.042083740234375, 0.002819061279296875, -0.00745391845703125, 0.0247650146484375, 0.002994537353515625, 0.007965087890625, 0.003910064697265625, 0.011260986328125, 0.01346588134765625, -0.06982421875, 0.01708984375, 0.0312347412109375, 0.02313232421875, 0.008880615234375, -0.051025390625, -0.01300811767578125, 0.0253448486328125, -0.1083984375, -0.0797119140625, 0.003414154052734375, -0.10552978515625, 0.0321044921875, -0.010101318359375, -0.049407958984375, -0.0245819091796875, 0.034210205078125, 0.020538330078125, -0.01474761962890625, -0.01461029052734375, -0.051605224609375, -0.0251312255859375, -0.05804443359375, 0.01593017578125, -0.0037631988525390625, 0.01157379150390625, -0.006259918212890625, 0.06707763671875, -0.006069183349609375, -0.061370849609375, -0.032562255859375, 0.023162841796875, -0.01038360595703125, -0.0014734268188476562, 0.02203369140625, -0.007904052734375, -0.0171356201171875, -0.00005823373794555664, 0.0139923095703125, 0.019012451171875, -0.0333251953125, -0.0307769775390625, -0.001201629638671875, -0.02154541015625, -0.009613037109375, 0.04034423828125, 0.0010776519775390625, -0.0574951171875, -0.04473876953125, -0.0745849609375, 0.01371002197265625, -0.00472259521484375, -0.01373291015625, 0.0146331787109375, -0.00896453857421875, -0.0213775634765625, -0.002758026123046875, 0.007427215576171875, 0.004367828369140625, 0.0185089111328125, -0.00469207763671875, 0.0021915435791015625, 0.01552581787109375, -0.002941131591796875, -0.006801605224609375, -0.006465911865234375, 0.07763671875, 0.0147552490234375, -0.058685302734375, 0.020538330078125, 0.01168060302734375, 0.008087158203125, -0.03350830078125, -0.024566650390625, -0.022216796875, 0.0202484130859375, 0.0007901191711425781, 0.023040771484375, 0.00238800048828125, -0.021270751953125, -0.004985809326171875, 0.049407958984375, -0.045166015625, -0.0054931640625, -0.0220794677734375, 0.01503753662109375, 0.0004887580871582031, -0.0919189453125, -0.0178985595703125, -0.0266876220703125, -0.07049560546875, -0.0458984375, -0.0185699462890625, -0.05615234375, 0.0094146728515625, -0.0399169921875, -0.0309906005859375, -0.04217529296875, 0.0171661376953125, -0.043975830078125, -0.0013284683227539062, 0.023956298828125, -0.006244659423828125, -0.024627685546875, -0.0010881423950195312, -0.0309600830078125, -0.07794189453125, -0.0036773681640625, -0.0364990234375, 0.05120849609375, -0.01265716552734375, 0.03033447265625, -0.03778076171875, 0.0299224853515625, 0.0038814544677734375, 0.017608642578125, 0.00621795654296875, -0.0010690689086914062, 0.046142578125, 0.0224761962890625, 0.0185089111328125, 0.01270294189453125, -0.01340484619140625, -0.0133056640625, -0.052886962890625, 0.005069732666015625, 0.00139617919921875, 0.009185791015625, 0.046722412109375, -0.0458984375, -0.00640869140625, -0.0167388916015625, -0.00994873046875, 0.017791748046875, -0.01506805419921875, 0.0198211669921875, -0.03350830078125, 0.0038127899169921875, 0.04296875, 0.0254669189453125, -0.01338958740234375, 0.015655517578125, 0.05706787109375, 0.001247406005859375, -0.0306243896484375, -0.09466552734375, -0.032562255859375, 0.025390625, 0.0030422210693359375, 0.033203125, 0.0249481201171875, -0.020111083984375, 0.03216552734375, 0.019775390625, 0.0117034912109375, -0.035430908203125, 0.032440185546875, -0.0190887451171875, -0.0285186767578125, 0.036407470703125, -0.0316162109375, 0.0030918121337890625, 0.03582763671875, 0.002941131591796875, -0.017669677734375, -0.0302886962890625, 0.04437255859375, 0.010894775390625, -0.0073699951171875, -0.04034423828125, -0.06884765625, 0.02935791015625, -0.040496826171875, 0.052978515625, 0.01105499267578125, -0.0005269050598144531, 0.049774169921875, 0.0187530517578125, 0.00042438507080078125, 0.03631591796875, 0.0418701171875, 0.0166015625, 0.033660888671875, 0.028289794921875, 0.01363372802734375, -0.0185089111328125, 0.003360748291015625, 0.00937652587890625, 0.029998779296875, -0.0092010498046875, -0.06658935546875, 0.000006556510925292969, -0.00736236572265625, -0.0440673828125, -0.030517578125, 0.0223541259765625, -0.01119232177734375, -0.061370849609375, 0.0121917724609375, -0.028106689453125, -0.0699462890625, -0.037109375, 0.0043487548828125, 0.00905609130859375, -0.0204925537109375, 0.01074981689453125, 0.017578125, -0.030670166015625, 0.0104827880859375, 0.0118408203125, 0.0083465576171875, 0.0087738037109375, 0.027313232421875, 0.004047393798828125, -0.01377105712890625, 0.031524658203125, -0.00943756103515625, 0.0394287109375, -0.01483917236328125, -0.014373779296875, 0.0258636474609375, 0.0350341796875, -0.031951904296875, -0.004047393798828125, 0.01165008544921875, -0.0164642333984375, -0.0157470703125, 0.00984954833984375, -0.032745361328125, -0.034332275390625, -0.0228118896484375, 0.04638671875, 0.08349609375, -0.022186279296875, -0.01751708984375, 0.03173828125, -0.021087646484375, 0.0225677490234375, 0.0194854736328125, -0.034393310546875, 0.020233154296875, 0.0416259765625, 0.045196533203125, -0.028289794921875, -0.0217742919921875, -0.037841796875, 0.01280975341796875, -0.037353515625, -0.00838470458984375, 0.078857421875, -0.06097412109375, -0.00902557373046875, -0.034393310546875, 0.04022216796875, -0.019775390625, 0.001178741455078125, 0.059326171875, 0.047607421875, -0.035003662109375, -0.0007543563842773438, -0.035308837890625, -0.006618499755859375, 0.01509857177734375, -0.022247314453125, -0.036376953125, -0.017578125, -0.019683837890625, -0.0097198486328125, 0.0157470703125, 0.03851318359375, 0.0151824951171875, 0.0501708984375, -0.0176239013671875, 0.007694244384765625, -0.01861572265625, 0.019012451171875, 0.006908416748046875, 0.004970550537109375, -0.00441741943359375, 0.0086822509765625, 0.00850677490234375, -0.01303863525390625, -0.01428985595703125, -0.043121337890625, 0.011505126953125, 0.03460693359375, 0.020050048828125, -0.007015228271484375, 0.0099639892578125, -0.0013761520385742188, -0.027069091796875, -0.01441192626953125, -0.006549835205078125, -0.0252838134765625, 0.05120849609375, 0.018035888671875, -0.01904296875, 0.004627227783203125, -0.04132080078125, 0.02081298828125, -0.001010894775390625, -0.040618896484375, 0.034820556640625, -0.029632568359375, 0.01242828369140625, 0.0635986328125, -0.0236053466796875, 0.0633544921875, 0.071533203125, -0.007633209228515625, 0.0185394287109375, 0.00791168212890625, -0.0209197998046875, -0.00452423095703125, -0.005859375, 0.041229248046875, -0.00278472900390625, 0.060150146484375, 0.0117034912109375, 0.040557861328125, 0.06707763671875, -0.01271820068359375, 0.0287322998046875, 0.048828125, 0.029327392578125, -0.061920166015625, 0.0128936767578125, 0.00545501708984375, -0.01345062255859375, -0.0002105236053466797, -0.0005316734313964844, -0.017181396484375, -0.0280303955078125, 0.04534912109375, -0.01004791259765625, -0.0030536651611328125, 0.0244293212890625, 0.015655517578125, -0.010772705078125, -0.0016622543334960938, 0.0022983551025390625, 0.0166778564453125, -0.07537841796875, 0.03631591796875, 0.05084228515625, -0.0144500732421875, 0.008453369140625, 0.0258636474609375, -0.030975341796875, -0.00713348388671875, -0.030517578125, 0.01094818115234375, -0.0105743408203125, -0.02935791015625, 0.021820068359375, -0.004924774169921875, 0.058197021484375, 0.030517578125, -0.0023441314697265625, 0.0018596649169921875, 0.01137542724609375, 0.0103912353515625, 0.005401611328125, -0.005207061767578125, 0.04620361328125, -0.01055145263671875, -0.0240936279296875, 0.010528564453125, -0.03460693359375, -0.03265380859375, -0.01617431640625, 0.02642822265625, 0.07177734375, -0.0010967254638671875, -0.0147857666015625, 0.0462646484375, 0.042755126953125, -0.03472900390625, 0.0168914794921875, 0.059600830078125, -0.05126953125, -0.00939178466796875, 0.047271728515625, 0.0010023117065429688, -0.0292205810546875, 0.051300048828125, -0.05645751953125, 0.10443115234375, -0.001575469970703125, 0.019805908203125, 0.006877899169921875, 0.02459716796875, -0.034820556640625, 0.004749298095703125, -0.035888671875, 0.04547119140625, 0.040008544921875, 0.0244903564453125, -0.054962158203125, -0.010772705078125, -0.003009796142578125, 0.046356201171875, -0.0165557861328125, 0.01108551025390625, -0.026580810546875, -0.011993408203125, 0.0161895751953125, 0.01702880859375, 0.0252685546875, 0.0457763671875, 0.005680084228515625, 0.00199127197265625, 0.0179595947265625, -0.0047760009765625, 0.0260009765625, -0.0233154296875, -0.0163726806640625, 0.03619384765625, 0.005016326904296875, -0.027587890625, 0.01065826416015625, 0.02581787109375, -0.072265625, 0.007266998291015625, 0.0245513916015625, 0.03271484375, 0.007083892822265625, -0.01898193359375, -0.006988525390625, 0.0146331787109375, 0.020721435546875, -0.01119232177734375, 0.034393310546875, -0.01212310791015625, -0.01093292236328125, 0.00933837890625, 0.00824737548828125, -0.0005860328674316406, -0.01511383056640625, -0.0274810791015625, 0.009368896484375, 0.005573272705078125, 0.046112060546875, 0.0126190185546875, 0.016082763671875, -0.0200958251953125, 0.03302001953125, 0.016815185546875, 0.0312347412109375, -0.0355224609375, -0.045135498046875, 0.0103302001953125, -0.0182952880859375, -0.01036834716796875, 0.034027099609375, -0.00487518310546875, -0.041351318359375, -0.0007314682006835938, -0.0186614990234375, -0.00559234619140625, 0.01763916015625, 0.017303466796875, 0.005992889404296875, -0.006038665771484375, -0.01849365234375, -0.005413055419921875, -0.0094451904296875, 0.003894805908203125, -0.0029850006103515625, 0.013671875, -0.02008056640625, 0.022003173828125, -0.0096435546875, 0.006275177001953125, 0.0028743743896484375, 0.03106689453125, -0.01898193359375, -0.004238128662109375, -0.02716064453125, -0.0654296875, 0.0222930908203125, 0.041717529296875, -0.03759765625, 0.003520965576171875, 0.01235198974609375, 0.02862548828125, -0.04046630859375, -0.0269775390625, 0.058502197265625, -0.018280029296875, -0.004894256591796875, -0.0284881591796875, 0.032806396484375, 0.01065826416015625, 0.0172119140625, -0.027008056640625, 0.0240936279296875, 0.03131103515625, -0.055572509765625, 0.060699462890625, -0.019256591796875, -0.018280029296875, 0.0022296905517578125, -0.025909423828125, 0.05072021484375, -0.008880615234375, -0.0550537109375, -0.01544189453125, -0.0257568359375, -0.0235443115234375, 0.015625, 0.050506591796875, 0.01198577880859375, -0.00699615478515625, 0.0210418701171875, -0.0107879638671875, 0.022796630859375, 0.0167999267578125, -0.003101348876953125, 0.03094482421875, 0.0462646484375, 0.0172882080078125, -0.0071563720703125, -0.033233642578125, -0.0194091796875, 0.07305908203125, 0.0011959075927734375, 0.052154541015625, -0.048095703125, 0.03460693359375, 0.0361328125, -0.008056640625, 0.02447509765625, 0.0179595947265625, -0.0013332366943359375, -0.01084136962890625, 0.0200042724609375, -0.03173828125, 0.020172119140625, 0.03900146484375, 0.0020885467529296875, -0.033843994140625, -0.0260467529296875, -0.0002703666687011719, 0.01861572265625, 0.0352783203125, 0.0080108642578125, -0.024169921875, -0.033843994140625, 0.004955291748046875, 0.047454833984375, 0.0018606185913085938, 0.0014028549194335938, -0.031951904296875, -0.003940582275390625, 0.05072021484375, -0.0262298583984375, -0.003902435302734375, 0.0244140625, 0.0038967132568359375, 0.02386474609375, 0.043792724609375, -0.0367431640625, -0.0028839111328125, -0.0224456787109375, 0.0032558441162109375, 0.0026950836181640625, 0.048126220703125, -0.017608642578125, -0.0281982421875, -0.0031185150146484375, 0.035491943359375, 0.031219482421875, -0.0198974609375, 0.0054473876953125, 0.033966064453125, 0.0006580352783203125, -0.0465087890625, -0.057586669921875, -0.032684326171875, -0.060638427734375, -0.006008148193359375, 0.0355224609375, -0.0377197265625, -0.03106689453125, -0.044281005859375, -0.0021038055419921875, 0.04376220703125, 0.01010894775390625, -0.0531005859375, 0.012847900390625, -0.01861572265625, 0.0299224853515625, -0.006771087646484375, 0.02301025390625, -0.0125885009765625, 0.0120086669921875, -0.0654296875, -0.095458984375, -0.045562744140625, 0.08758544921875, -0.0892333984375, 0.060455322265625, 0.04364013671875, -0.047760009765625, 0.00897979736328125, 0.06536865234375, 0.05645751953125, 0.1019287109375, -0.00441741943359375, -0.04022216796875, -0.0218048095703125, 0.00498199462890625, 0.01157379150390625, -0.0195770263671875, 0.0031032562255859375, -0.042327880859375, -0.027862548828125, -0.0088958740234375, 0.0080108642578125, -0.020294189453125, -0.0496826171875, -0.06463623046875, 0.0282440185546875, -0.00243377685546875, -0.033111572265625, -0.035064697265625, 0.01267242431640625, 0.0269622802734375, -0.038726806640625, -0.01461029052734375, -0.0182342529296875, -0.043365478515625, -0.0010862350463867188, 0.021575927734375, 0.05389404296875, 0.044097900390625, 0.0311737060546875, 0.0291748046875, 0.007625579833984375, -0.0157470703125, -0.015838623046875, -0.017913818359375, 0.0036792755126953125, 0.051666259765625, 0.09295654296875, 0.0323486328125, 0.023040771484375, 0.0269012451171875, -0.0948486328125, -0.011932373046875, 0.001659393310546875, -0.019805908203125, 0.0203399658203125, 0.054718017578125, 0.053497314453125, 0.005138397216796875, -0.0482177734375, -0.05877685546875, -0.03802490234375, -0.02630615234375, 0.00237274169921875, 0.0242462158203125, -0.07513427734375, 0.0247344970703125, 0.00449371337890625, -0.0165557861328125, 0.005847930908203125, -0.0172882080078125, -0.035430908203125, 0.01641845703125, -0.0003941059112548828, 0.00649261474609375, 0.006221771240234375, -0.0193939208984375, 0.059417724609375, -0.0310516357421875, 0.0428466796875, -0.0019044876098632812, 0.01207733154296875, 0.04913330078125, 0.006412506103515625, -0.01102447509765625, 0.048858642578125, -0.03619384765625, -0.018218994140625, 0.007396697998046875, 0.01270294189453125, -0.0167388916015625, 0.0085296630859375, 0.012542724609375, -0.007183074951171875, -0.0203094482421875, -0.0177764892578125, 0.015869140625, 0.03887939453125, -0.029510498046875, 0.050048828125, -0.006679534912109375, 0.00045037269592285156, -0.022369384765625, 0.04583740234375, -0.01593017578125, -0.005794525146484375, -0.0002053976058959961, -0.0032672882080078125, -0.0021572113037109375, 0.039337158203125, -0.01348876953125, -0.0474853515625, 0.0233154296875, -0.0178985595703125, 0.0259246826171875, 0.01038360595703125 ]
76237fe5fd8d569db26af1912ce9580fd09237b8
Wordpress Stackexchange Q: Get names of authors who have edited a post How can I call the usernames of people that have edited a post? I know I can use get_the_modified_time to display the time the post was last modified, is the same possible with the list of users that edited it? A: The WordPress function get_the_modified_author() will give you the author who last edited the current post. But if you want to list all the users that have edit the current post, you could try: function get_the_modified_authors_wpse_99226(){ global $wpdb; $authors = array(); $results = $wpdb->get_results( $wpdb->prepare("SELECT post_author FROM $wpdb->posts WHERE (post_type = '%s' AND ID = %d) OR (post_type = 'revision' AND post_parent = %d) GROUP BY post_author", get_post_type( get_the_ID() ), get_the_ID(), get_the_ID() ) ); foreach($results as $row){ $authors[] = get_the_author_meta('display_name', $row->post_author ); } return implode(", ", $authors); } This function will give you a distinct comma seperated list of the users that have edit the current post (i.e. their display name). This should also work with custom post types.
Q: Get names of authors who have edited a post How can I call the usernames of people that have edited a post? I know I can use get_the_modified_time to display the time the post was last modified, is the same possible with the list of users that edited it? A: The WordPress function get_the_modified_author() will give you the author who last edited the current post. But if you want to list all the users that have edit the current post, you could try: function get_the_modified_authors_wpse_99226(){ global $wpdb; $authors = array(); $results = $wpdb->get_results( $wpdb->prepare("SELECT post_author FROM $wpdb->posts WHERE (post_type = '%s' AND ID = %d) OR (post_type = 'revision' AND post_parent = %d) GROUP BY post_author", get_post_type( get_the_ID() ), get_the_ID(), get_the_ID() ) ); foreach($results as $row){ $authors[] = get_the_author_meta('display_name', $row->post_author ); } return implode(", ", $authors); } This function will give you a distinct comma seperated list of the users that have edit the current post (i.e. their display name). This should also work with custom post types.
wordpress
{ "language": "en", "length": 169, "provenance": "stackexchange_00019.jsonl.gz:432356", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/99226" }
[ 0.011566162109375, 0.0035915374755859375, -0.053680419921875, -0.039306640625, 0.0232086181640625, -0.026641845703125, 0.005947113037109375, 0.019744873046875, -0.006603240966796875, 0.031707763671875, 0.0087432861328125, -0.015625, -0.0007176399230957031, -0.033782958984375, -0.0167388916015625, -0.01372528076171875, 0.0240020751953125, -0.00782012939453125, 0.0308837890625, -0.0024738311767578125, -0.015411376953125, 0.003574371337890625, 0.049224853515625, 0.03155517578125, 0.01331329345703125, -0.01348876953125, 0.08984375, 0.00563812255859375, 0.0175628662109375, -0.00815582275390625, 0.0167999267578125, -0.031646728515625, -0.0163116455078125, 0.0283660888671875, -0.00594329833984375, 0.0265045166015625, 0.0161895751953125, 0.0223541259765625, 0.037139892578125, -0.005214691162109375, 0.0285797119140625, -0.011993408203125, -0.09918212890625, 0.03118896484375, -0.0657958984375, -0.06817626953125, 0.053466796875, 0.0230865478515625, 0.033355712890625, 0.044036865234375, 0.00312042236328125, 0.02435302734375, -0.004150390625, 0.03631591796875, -0.015716552734375, -0.01126861572265625, 0.01076507568359375, 0.0242919921875, 0.046112060546875, -0.0838623046875, -0.0595703125, -0.029571533203125, 0.050933837890625, 0.0260772705078125, -0.01739501953125, 0.0174713134765625, 0.08380126953125, 0.0015592575073242188, -0.0308837890625, -0.022491455078125, 0.005336761474609375, -0.0018434524536132812, -0.0008592605590820312, 0.022674560546875, 0.0116119384765625, -0.063232421875, -0.0171661376953125, -0.050384521484375, 0.032501220703125, 0.0484619140625, 0.0119781494140625, 0.00727081298828125, -0.043060302734375, 0.00148773193359375, 0.0068817138671875, 0.035308837890625, -0.00963592529296875, -0.02825927734375, -0.033538818359375, 0.0013637542724609375, -0.0251007080078125, -0.04168701171875, -0.04522705078125, 0.043975830078125, 0.01558685302734375, -0.0087738037109375, 0.04205322265625, 0.0677490234375, -0.047393798828125, -0.04974365234375, -0.00485992431640625, -0.006439208984375, -0.049163818359375, -0.01296234130859375, -0.001560211181640625, 0.0174407958984375, 0.0125885009765625, 0.0290679931640625, 0.02850341796875, 0.033721923828125, -0.002155303955078125, -0.020172119140625, -0.01534271240234375, -0.054534912109375, 0.0010824203491210938, 0.0304718017578125, -0.0305633544921875, 0.0271148681640625, 0.0196380615234375, -0.0160064697265625, 0.0137786865234375, 0.0236968994140625, -0.01090240478515625, -0.021636962890625, 0.01445770263671875, -0.0163726806640625, -0.044586181640625, 0.0214996337890625, 0.0804443359375, 0.005695343017578125, -0.048370361328125, -0.01556396484375, 0.0516357421875, 0.0200958251953125, 0.02801513671875, -0.0244598388671875, -0.027557373046875, -0.039642333984375, -0.02081298828125, 0.022613525390625, -0.05206298828125, -0.0144805908203125, 0.040283203125, -0.04608154296875, -0.0213775634765625, 0.0058441162109375, 0.0157012939453125, 0.0124664306640625, -0.004852294921875, -0.025177001953125, -0.0311737060546875, 0.01152801513671875, 0.027618408203125, -0.017486572265625, 0.028564453125, -0.040740966796875, 0.024505615234375, -0.04437255859375, 0.00881195068359375, -0.03131103515625, 0.028411865234375, 0.0006551742553710938, 0.0127410888671875, 0.0013561248779296875, -0.05291748046875, 0.0009136199951171875, -0.03509521484375, -0.0214691162109375, 0.023712158203125, -0.016448974609375, 0.03619384765625, -0.004032135009765625, 0.03851318359375, 0.036041259765625, 0.01020050048828125, 0.013458251953125, -0.030853271484375, 0.01342010498046875, 0.005489349365234375, 0.03131103515625, 0.0012302398681640625, -0.0345458984375, -0.0077056884765625, 0.01404571533203125, -0.04681396484375, 0.033447265625, -0.0035190582275390625, 0.0635986328125, 0.057098388671875, -0.00215911865234375, -0.005794525146484375, -0.01296234130859375, -0.0259857177734375, 0.01132965087890625, -0.0033130645751953125, -0.001323699951171875, -0.0243377685546875, -0.0011653900146484375, -0.016815185546875, 0.01456451416015625, 0.038116455078125, -0.006343841552734375, 0.0280609130859375, -0.016632080078125, -0.1004638671875, 0.042938232421875, -0.05426025390625, 0.041015625, 0.027984619140625, 0.0027446746826171875, 0.009033203125, -0.0125274658203125, -0.027984619140625, 0.031829833984375, -0.03204345703125, 0.0209197998046875, -0.0299072265625, 0.01336669921875, 0.00991058349609375, 0.006465911865234375, 0.0056610107421875, -0.01227569580078125, -0.004711151123046875, -0.01641845703125, 0.01776123046875, -0.0162200927734375, -0.00836181640625, -0.0206451416015625, 0.01374053955078125, 0.0018625259399414062, 0.00914764404296875, 0.0294647216796875, 0.0176544189453125, 0.037384033203125, -0.0111236572265625, -0.018218994140625, -0.00392913818359375, -0.067138671875, 0.01453399658203125, 0.051361083984375, 0.036773681640625, -0.00615692138671875, 0.018096923828125, 0.035858154296875, 0.0789794921875, 0.0038547515869140625, 0.01009368896484375, 0.0007624626159667969, 0.04510498046875, 0.07513427734375, -0.004688262939453125, -0.000873565673828125, 0.0033512115478515625, -0.0276947021484375, 0.0282440185546875, 0.0301361083984375, -0.004482269287109375, 0.06298828125, -0.0181121826171875, -0.01666259765625, -0.0301361083984375, -0.0657958984375, 0.0102386474609375, -0.05474853515625, 0.034637451171875, 0.0162506103515625, 0.04327392578125, 0.0286712646484375, -0.03228759765625, -0.01128387451171875, 0.01549530029296875, 0.01371002197265625, 0.0271453857421875, 0.05267333984375, -0.06524658203125, -0.0023822784423828125, -0.0016527175903320312, -0.0038909912109375, 0.0023345947265625, 0.00146484375, -0.006839752197265625, -0.0058135986328125, 0.028594970703125, 0.003208160400390625, 0.026458740234375, -0.028472900390625, 0.03082275390625, 0.0115203857421875, -0.0158233642578125, 0.004283905029296875, 0.0247650146484375, 0.032684326171875, -0.0164947509765625, 0.040496826171875, -0.0187225341796875, 0.00537109375, -0.01500701904296875, -0.0270843505859375, 0.0372314453125, -0.006591796875, 0.04376220703125, 0.0684814453125, -0.006061553955078125, 0.0308074951171875, -0.0009593963623046875, -0.029510498046875, 0.0104522705078125, -0.001972198486328125, -0.004505157470703125, -0.014556884765625, -0.039459228515625, 0.0246124267578125, 0.0147247314453125, 0.06781005859375, -0.036834716796875, -0.048583984375, -0.01678466796875, 0.027099609375, -0.06787109375, -0.0489501953125, -0.018890380859375, -0.0772705078125, -0.01407623291015625, -0.02783203125, -0.034881591796875, 0.008544921875, -0.0081939697265625, 0.0153045654296875, 0.0229339599609375, -0.0259552001953125, -0.037139892578125, -0.0279693603515625, -0.071533203125, -0.01197052001953125, 0.00466156005859375, 0.01001739501953125, -0.0043182373046875, 0.0233917236328125, -0.01105499267578125, -0.0391845703125, -0.03717041015625, 0.012939453125, 0.0017251968383789062, -0.03704833984375, -0.00989532470703125, 0.0372314453125, 0.007801055908203125, 0.017547607421875, -0.0159149169921875, 0.03369140625, -0.028656005859375, -0.0230560302734375, 0.00815582275390625, 0.0235137939453125, 0.058563232421875, 0.0097808837890625, -0.0301666259765625, 0.0869140625, 0.0799560546875, 0.0028781890869140625, 0.00812530517578125, -0.00432586669921875, -0.00830078125, 0.02276611328125, -0.01617431640625, -0.017303466796875, -0.003391265869140625, 0.0220794677734375, 0.0411376953125, 0.03375244140625, 0.0213470458984375, 0.00036454200744628906, 0.0191650390625, 0.0253753662109375, 0.046478271484375, -0.0396728515625, -0.0131072998046875, -0.01432037353515625, 0.05474853515625, -0.00563812255859375, 0.015960693359375, -0.0200653076171875, 0.0123748779296875, -0.037109375, -0.029327392578125, 0.040679931640625, -0.039520263671875, -0.019622802734375, -0.03753662109375, -0.0289306640625, -0.0193328857421875, 0.0675048828125, 0.002651214599609375, -0.0252838134765625, -0.01152801513671875, 0.00917816162109375, -0.05609130859375, -0.01503753662109375, -0.023345947265625, 0.00008559226989746094, -0.0626220703125, 0.04345703125, -0.0084228515625, 0.006320953369140625, -0.047119140625, 0.035888671875, -0.053253173828125, -0.0155029296875, 0.0240020751953125, 0.0035953521728515625, 0.00872039794921875, 0.003955841064453125, -0.00873565673828125, 0.0081329345703125, -0.01297760009765625, -0.0239715576171875, -0.07177734375, -0.0024433135986328125, -0.049530029296875, 0.044708251953125, 0.00647735595703125, 0.0095367431640625, -0.019989013671875, 0.034576416015625, 0.0238800048828125, 0.0011415481567382812, 0.0096435546875, -0.01117706298828125, 0.0141448974609375, -0.0406494140625, -0.00476837158203125, -0.045257568359375, -0.004848480224609375, -0.031890869140625, -0.042816162109375, -0.049285888671875, -0.0582275390625, -0.029937744140625, -0.0293426513671875, -0.0190277099609375, -0.039886474609375, -0.04107666015625, -0.0182342529296875, 0.055145263671875, -0.0222015380859375, 0.0301971435546875, -0.0653076171875, -0.0831298828125, 0.05108642578125, 0.026153564453125, -0.007232666015625, -0.00811004638671875, 0.08697509765625, 0.0201873779296875, -0.034637451171875, -0.048004150390625, -0.01178741455078125, 0.036895751953125, -0.01088714599609375, 0.0182037353515625, 0.0224609375, -0.040618896484375, 0.034393310546875, 0.01003265380859375, -0.0303497314453125, 0.0006117820739746094, 0.05059814453125, -0.00757598876953125, -0.00684356689453125, -0.004703521728515625, -0.03271484375, 0.025604248046875, -0.0183258056640625, -0.04730224609375, 0.0243072509765625, 0.003162384033203125, 0.03546142578125, -0.047271728515625, 0.052154541015625, -0.018157958984375, -0.056640625, 0.00586700439453125, -0.038177490234375, 0.023651123046875, 0.01335906982421875, 0.0033321380615234375, 0.0246734619140625, 0.0248870849609375, 0.000675201416015625, -0.0233917236328125, -0.0262298583984375, 0.0103607177734375, 0.0367431640625, -0.040283203125, 0.0190887451171875, 0.00567626953125, -0.0229949951171875, 0.07257080078125, 0.01507568359375, -0.03948974609375, 0.050384521484375, -0.0281524658203125, 0.01763916015625, -0.001087188720703125, -0.00798797607421875, 0.0157470703125, 0.0287322998046875, -0.018585205078125, -0.003604888916015625, -0.01739501953125, 0.033111572265625, -0.03192138671875, 0.0198211669921875, -0.00787353515625, 0.0106964111328125, -0.00025653839111328125, 0.0994873046875, 0.0168304443359375, 0.03619384765625, -0.03753662109375, 0.0540771484375, 0.01297760009765625, 0.0350341796875, 0.016448974609375, 0.0141143798828125, -0.011474609375, 0.019683837890625, -0.034088134765625, -0.0255279541015625, 0.0064697265625, 0.0259552001953125, 0.04205322265625, 0.046905517578125, 0.01146697998046875, -0.01971435546875, -0.0264892578125, -0.000865936279296875, 0.0218353271484375, 0.0401611328125, -0.02276611328125, -0.0007796287536621094, 0.020751953125, 0.0011205673217773438, -0.0017871856689453125, -0.00969696044921875, -0.021636962890625, -0.0239715576171875, 0.0168609619140625, -0.0197601318359375, 0.007511138916015625, -0.0110931396484375, -0.0138092041015625, -0.037139892578125, -0.019775390625, 0.0153961181640625, -0.0094757080078125, -0.01049041748046875, -0.03033447265625, -0.0185699462890625, 0.0733642578125, -0.001102447509765625, 0.0125885009765625, -0.042633056640625, 0.004962921142578125, -0.021453857421875, -0.0067291259765625, 0.06365966796875, 0.027496337890625, -0.03466796875, 0.00310516357421875, -0.040191650390625, -0.00580596923828125, 0.031982421875, -0.01922607421875, -0.02044677734375, -0.029052734375, -0.0015993118286132812, 0.0041046142578125, -0.00727081298828125, -0.0131072998046875, -0.00689697265625, 0.0297393798828125, 0.0024280548095703125, 0.03216552734375, 0.0207366943359375, 0.07415771484375, -0.0164337158203125, 0.06353759765625, 0.01128387451171875, 0.0281829833984375, -0.07171630859375, -0.017578125, 0.010650634765625, -0.019775390625, -0.02008056640625, -0.0189056396484375, -0.0014657974243164062, -0.03167724609375, 0.0017032623291015625, -0.00948333740234375, 0.017822265625, -0.0191650390625, 0.0177459716796875, -0.0088653564453125, -0.044158935546875, 0.0004162788391113281, -0.0384521484375, 0.051300048828125, -0.0219268798828125, -0.015869140625, -0.033050537109375, -0.012847900390625, 0.0021533966064453125, -0.00284576416015625, -0.0230560302734375, 0.0266265869140625, -0.0168304443359375, -0.0001533031463623047, 0.03485107421875, 0.0151214599609375, 0.046478271484375, 0.0302581787109375, 0.047821044921875, 0.0213165283203125, -0.019287109375, 0.005168914794921875, 0.00914764404296875, 0.04718017578125, 0.0037593841552734375, 0.016876220703125, 0.0521240234375, -0.0142822265625, -0.005191802978515625, -0.0023899078369140625, 0.035186767578125, -0.0330810546875, 0.0294189453125, 0.037078857421875, 0.0200347900390625, 0.0145111083984375, 0.027862548828125, -0.033172607421875, -0.04986572265625, 0.03997802734375, -0.071044921875, -0.01079559326171875, 0.028411865234375, -0.009033203125, 0.00995635986328125, -0.06201171875, 0.050048828125, 0.004512786865234375, 0.04241943359375, -0.0006589889526367188, -0.0281829833984375, 0.025634765625, -0.048065185546875, 0.0149993896484375, 0.0109100341796875, 0.014892578125, -0.056915283203125, 0.035888671875, -0.01514434814453125, 0.0225372314453125, 0.0040740966796875, 0.030853271484375, 0.0318603515625, 0.0570068359375, 0.0015783309936523438, 0.005947113037109375, 0.044586181640625, -0.0290069580078125, -0.040435791015625, -0.0562744140625, -0.01097869873046875, 0.08355712890625, -0.040130615234375, 0.043060302734375, 0.00902557373046875, -0.0204620361328125, 0.005123138427734375, 0.0147705078125, 0.06292724609375, -0.0036106109619140625, -0.045379638671875, 0.0243377685546875, -0.00356292724609375, -0.01087188720703125, 0.0212249755859375, -0.00478363037109375, -0.03076171875, -0.024444580078125, -0.004802703857421875, -0.0760498046875, 0.005321502685546875, -0.00785064697265625, -0.0760498046875, 0.06427001953125, 0.0024700164794921875, 0.0555419921875, 0.028717041015625, -0.0011377334594726562, -0.03173828125, -0.047515869140625, -0.038909912109375, 0.08380126953125, -0.01537322998046875, 0.06097412109375, -0.0821533203125, -0.011871337890625, 0.01398468017578125, 0.053985595703125, 0.0399169921875, 0.02459716796875, -0.038055419921875, -0.0245819091796875, -0.01910400390625, -0.0028095245361328125, -0.03277587890625, 0.07232666015625, 0.0153350830078125, 0.0036602020263671875, 0.048431396484375, 0.01036834716796875, 0.040771484375, 0.00460052490234375, -0.024322509765625, 0.026611328125, -0.00010526180267333984, 0.007694244384765625, -0.06439208984375, -0.0257568359375, 0.0022220611572265625, -0.048797607421875, -0.0034656524658203125, -0.023193359375, 0.0029449462890625, 0.0831298828125, 0.089111328125, -0.02166748046875, -0.041015625, -0.020751953125, 0.066162109375, 0.027435302734375, -0.01047515869140625, 0.03558349609375, 0.00765228271484375, 0.00014710426330566406, 0.0222320556640625, -0.00511932373046875, 0.000949859619140625, 0.046905517578125, 0.037078857421875, 0.039276123046875, 0.017181396484375, -0.0159149169921875, 0.01117706298828125, 0.066162109375, 0.062408447265625, -0.0367431640625, -0.0083160400390625, 0.0113372802734375, -0.0130767822265625, 0.00823211669921875, -0.0227508544921875, 0.016082763671875, 0.01444244384765625, -0.004062652587890625, -0.0281219482421875, -0.037353515625, -0.003910064697265625, 0.0266571044921875, 0.00762939453125, -0.00502777099609375, 0.0276641845703125, -0.036102294921875, -0.01476287841796875, -0.03802490234375, 0.026458740234375, 0.0037860870361328125, 0.0218048095703125, 0.006626129150390625, 0.049102783203125, 0.01522064208984375, 0.0015439987182617188, 0.0013952255249023438, 0.00496673583984375, -0.00679779052734375, -0.00473785400390625, 0.0011854171752929688, -0.0021915435791015625, 0.0248260498046875, 0.0457763671875, -0.01032257080078125, 0.0304718017578125, 0.0007882118225097656, -0.0406494140625, -0.00037026405334472656, 0.0040130615234375, -0.022186279296875, -0.0262451171875, -0.0188140869140625, -0.007495880126953125, 0.00350189208984375, -0.0004088878631591797, 0.0185546875, 0.022003173828125, 0.018096923828125, -0.0279388427734375, 0.0272064208984375, -0.0005450248718261719, 0.0007352828979492188, 0.008697509765625, 0.010162353515625, -0.026275634765625, -0.01397705078125, -0.08135986328125, 0.0164337158203125, -0.07781982421875, -0.03515625, 0.022735595703125, 0.017974853515625, -0.0177459716796875, 0.03399658203125, -0.04925537109375, -0.039794921875, -0.01413726806640625, 0.048858642578125, 0.0032978057861328125, 0.0450439453125, 0.0012578964233398438, -0.0083770751953125, -0.0243072509765625, -0.0296630859375, -0.0036525726318359375, 0.038726806640625, 0.0213775634765625, -0.0159149169921875, 0.01032257080078125, 0.03228759765625, -0.01078033447265625, 0.0243377685546875, -0.08660888671875, -0.0364990234375, 0.0670166015625, -0.084716796875, -0.045989990234375, 0.03314208984375, -0.02362060546875, 0.0274200439453125, 0.0325927734375, 0.00044655799865722656, 0.0243682861328125, -0.0023651123046875, 0.01009368896484375, -0.0307464599609375, -0.007450103759765625, -0.0276336669921875, -0.015472412109375, 0.03564453125, 0.01457977294921875, 0.004421234130859375, -0.00206756591796875, 0.000946044921875, -0.0017747879028320312, 0.01337432861328125, -0.03533935546875, -0.004322052001953125, 0.0184478759765625, -0.00867462158203125, 0.027740478515625, 0.00269317626953125, 0.0004379749298095703, 0.0084381103515625, -0.0156097412109375, -0.001895904541015625, 0.0158538818359375, 0.0138702392578125, 0.00678253173828125, 0.0011987686157226562, 0.0197906494140625, -0.04180908203125, 0.04632568359375, 0.01378631591796875, -0.0092010498046875, -0.044769287109375, 0.0230712890625, -0.0254669189453125, -0.0228424072265625, -0.0357666015625, -0.0272674560546875, 0.0030689239501953125, 0.0248260498046875, 0.001667022705078125, -0.02423095703125, -0.059478759765625, -0.0240631103515625, -0.0238800048828125, -0.01404571533203125, -0.003448486328125, 0.021881103515625, -0.0157012939453125, -0.02667236328125, -0.051055908203125, -0.06475830078125, 0.034332275390625, 0.048675537109375, -0.032318115234375, -0.014068603515625, -0.0164337158203125, -0.01934814453125, -0.0160980224609375, 0.0038814544677734375, 0.017669677734375, 0.004669189453125, -0.0229339599609375, 0.0264434814453125, -0.004642486572265625, 0.06439208984375, -0.035400390625, -0.01702880859375, 0.01367950439453125, 0.00995635986328125, -0.0322265625, -0.084228515625, -0.002651214599609375, -0.030426025390625, 0.011566162109375, -0.0035305023193359375, 0.0181121826171875, 0.03778076171875, -0.00934600830078125, -0.02581787109375, 0.049407958984375, -0.007381439208984375, -0.03533935546875, -0.0280303955078125, 0.0171966552734375, -0.0003459453582763672, 0.0161895751953125, 0.0080108642578125, -0.03326416015625, -0.0164337158203125, 0.020904541015625, -0.0033702850341796875, 0.02471923828125, 0.01081085205078125, -0.002193450927734375, -0.060333251953125, -0.01348876953125, -0.03277587890625, -0.023193359375, -0.0081787109375, 0.007228851318359375, 0.0072174072265625, 0.051544189453125, -0.0135498046875, 0.00023758411407470703, -0.01348114013671875, -0.0145721435546875, -0.0302276611328125, -0.0182647705078125, -0.037811279296875, -0.021636962890625, 0.06494140625, 0.06817626953125, 0.024017333984375, -0.0199737548828125, 0.015777587890625, -0.006084442138671875, -0.021392822265625, 0.0220947265625, 0.0114898681640625, -0.01739501953125, 0.0106964111328125, 0.0080718994140625, -0.043670654296875, -0.0034732818603515625, -0.00965118408203125, -0.061279296875, 0.02813720703125, -0.002685546875, -0.00637054443359375, -0.03167724609375, 0.0006551742553710938, -0.0021457672119140625, -0.03533935546875, -0.057464599609375, 0.0095062255859375, 0.0003402233123779297, -0.053436279296875, -0.02001953125, 0.015167236328125, 0.0207977294921875, -0.01398468017578125, -0.00196075439453125, 0.0218353271484375, 0.02691650390625, 0.002349853515625, -0.01384735107421875, -0.01245880126953125, 0.0021610260009765625, -0.0237884521484375, -0.0277862548828125, 0.050201416015625, 0.01488494873046875, -0.00862884521484375, 0.08441162109375, -0.046600341796875, 0.0238189697265625, -0.022796630859375, 0.0237274169921875, -0.007236480712890625, 0.01047515869140625, 0.04522705078125, -0.01372528076171875, -0.00907135009765625, 0.002716064453125, -0.01119232177734375, -0.043853759765625, 0.0159912109375, -0.0019969940185546875, 0.0006647109985351562, 0.022003173828125 ]
930c315d11a70c63a69d1b2f9531f62cda9ae9bb
Wordpress Stackexchange Q: How to update/delete array in post meta value? I using post meta like.. $meta = get_post_meta(99,'_mymeta',true); $value = $meta['somekey']; echo $value; But how to update $meta['somekey'] to some another value ? How to use update_post_meta to update sub meta key ?(Idk, How ppl call) update_post_meta(99, '_mymeta["somekey"]', 'myAnotherValue'); ????? A: To update post meta that are an array: you have to fetch the original values, change the value you need and update it again. For example $list_of_values = get_post_meta($post_id, '_list_values', true); if(!empty($list_of_values)) { $list_of_values["some_prop"] = "new value"; } update_post_meta($post_id, '_list_values', $list_of_values);
Q: How to update/delete array in post meta value? I using post meta like.. $meta = get_post_meta(99,'_mymeta',true); $value = $meta['somekey']; echo $value; But how to update $meta['somekey'] to some another value ? How to use update_post_meta to update sub meta key ?(Idk, How ppl call) update_post_meta(99, '_mymeta["somekey"]', 'myAnotherValue'); ????? A: To update post meta that are an array: you have to fetch the original values, change the value you need and update it again. For example $list_of_values = get_post_meta($post_id, '_list_values', true); if(!empty($list_of_values)) { $list_of_values["some_prop"] = "new value"; } update_post_meta($post_id, '_list_values', $list_of_values);
wordpress
{ "language": "en", "length": 91, "provenance": "stackexchange_00019.jsonl.gz:432405", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/99377" }
[ 0.0021877288818359375, -0.00191497802734375, 0.004795074462890625, 0.0303497314453125, -0.00482940673828125, -0.0162506103515625, 0.052459716796875, -0.03936767578125, 0.046661376953125, 0.0198516845703125, -0.01361846923828125, -0.047271728515625, 0.04486083984375, -0.0323486328125, -0.0149688720703125, -0.0282745361328125, 0.03790283203125, -0.01369476318359375, 0.0196380615234375, 0.0008344650268554688, 0.01274871826171875, 0.021240234375, 0.0207366943359375, 0.0391845703125, 0.01186370849609375, -0.0221099853515625, 0.01198577880859375, -0.0119781494140625, -0.0059814453125, -0.027862548828125, 0.005748748779296875, 0.033721923828125, 0.00899505615234375, 0.0001684427261352539, -0.0006103515625, -0.035064697265625, 0.041717529296875, -0.01629638671875, 0.00788116455078125, 0.014801025390625, 0.030181884765625, 0.0014171600341796875, -0.0252838134765625, 0.0295562744140625, -0.031463623046875, -0.052215576171875, 0.035919189453125, -0.007465362548828125, 0.03521728515625, -0.0075531005859375, -0.0035552978515625, 0.0235595703125, -0.0030193328857421875, -0.0017843246459960938, -0.00775146484375, -0.0021953582763671875, -0.053802490234375, 0.028289794921875, 0.038665771484375, 0.0279541015625, -0.016815185546875, -0.0217742919921875, 0.0115509033203125, -0.0289764404296875, 0.01538848876953125, -0.0054779052734375, -0.006252288818359375, 0.00496673583984375, -0.0638427734375, 0.034271240234375, 0.0716552734375, -0.06072998046875, 0.00899505615234375, -0.047943115234375, 0.03814697265625, 0.0062713623046875, 0.004009246826171875, 0.01080322265625, -0.0220947265625, 0.00969696044921875, 0.045867919921875, -0.0167083740234375, 0.0265655517578125, -0.0220184326171875, 0.0109405517578125, -0.0157318115234375, -0.00247955322265625, -0.01467132568359375, -0.036895751953125, -0.0447998046875, -0.0278472900390625, -0.038848876953125, -0.035003662109375, -0.0112457275390625, -0.0185699462890625, -0.0158843994140625, 0.001636505126953125, 0.0316162109375, -0.0217437744140625, 0.00360107421875, -0.0101165771484375, -0.034698486328125, 0.0009851455688476562, -0.03253173828125, -0.018035888671875, -0.00537109375, 0.0078125, -0.01000213623046875, -0.00536346435546875, 0.044525146484375, -0.03717041015625, -0.01253509521484375, -0.033660888671875, -0.01080322265625, -0.0288238525390625, 0.0450439453125, -0.0428466796875, -0.00028061866760253906, -0.01551055908203125, 0.01108551025390625, 0.0226898193359375, 0.0294189453125, 0.0177001953125, -0.0296630859375, 0.048736572265625, 0.028289794921875, -0.037841796875, -0.03863525390625, -0.0207672119140625, 0.0243988037109375, -0.08056640625, 0.01364898681640625, 0.11761474609375, 0.0217132568359375, 0.02703857421875, -0.040130615234375, -0.04205322265625, -0.0195159912109375, -0.0103912353515625, 0.0215301513671875, -0.0132293701171875, -0.0645751953125, 0.02008056640625, 0.007495880126953125, 0.0120849609375, 0.00171661376953125, 0.01202392578125, 0.007640838623046875, 0.01207733154296875, -0.006160736083984375, -0.02593994140625, -0.0169525146484375, 0.0228271484375, 0.00965118408203125, 0.0017805099487304688, -0.005123138427734375, 0.0648193359375, -0.0489501953125, -0.0228424072265625, -0.06463623046875, -0.0159759521484375, -0.00923919677734375, 0.0148773193359375, 0.0035400390625, -0.004993438720703125, 0.00832366943359375, -0.0301055908203125, -0.0026416778564453125, 0.0244598388671875, 0.01568603515625, 0.04302978515625, 0.0013637542724609375, 0.02154541015625, -0.0127105712890625, -0.01026153564453125, -0.01371002197265625, 0.0002739429473876953, -0.00047016143798828125, 0.0209197998046875, -0.0015878677368164062, -0.03131103515625, -0.0341796875, 0.0007982254028320312, 0.01522064208984375, -0.026031494140625, 0.0204010009765625, 0.016143798828125, 0.052947998046875, -0.00875091552734375, 0.02520751953125, 0.0243682861328125, 0.0149383544921875, -0.01340484619140625, 0.0146484375, 0.020751953125, 0.006683349609375, -0.0291900634765625, 0.01245880126953125, 0.00955963134765625, -0.06793212890625, -0.01155853271484375, 0.0305633544921875, -0.022064208984375, 0.03179931640625, -0.07147216796875, 0.01922607421875, -0.0270538330078125, 0.0546875, -0.06170654296875, 0.01442718505859375, 0.036865234375, -0.03741455078125, -0.021881103515625, 0.0162353515625, 0.010833740234375, -0.0242767333984375, -0.01422882080078125, 0.0117034912109375, -0.0196533203125, -0.0088348388671875, -0.0201873779296875, -0.0190277099609375, -0.034515380859375, 0.0093231201171875, 0.0513916015625, -0.028228759765625, -0.002162933349609375, -0.02801513671875, 0.03741455078125, -0.00693511962890625, -0.0596923828125, 0.045867919921875, -0.0007443428039550781, -0.043304443359375, -0.036865234375, 0.0046844482421875, -0.03155517578125, -0.09967041015625, -0.004726409912109375, 0.069580078125, 0.01401519775390625, 0.007053375244140625, -0.03466796875, 0.0025997161865234375, 0.069580078125, 0.01139068603515625, -0.0096588134765625, 0.01348876953125, 0.00611114501953125, 0.020904541015625, -0.04193115234375, 0.00002294778823852539, 0.03985595703125, -0.028533935546875, -0.0008535385131835938, 0.05255126953125, -0.003704071044921875, 0.0290679931640625, -0.01531219482421875, 0.00009167194366455078, -0.01910400390625, -0.01416015625, 0.01146697998046875, -0.01381683349609375, 0.0672607421875, 0.01348114013671875, 0.04595947265625, 0.0218505859375, -0.046112060546875, 0.04248046875, 0.003498077392578125, -0.0182037353515625, 0.020233154296875, -0.00045490264892578125, -0.07183837890625, 0.0262908935546875, -0.0311126708984375, 0.0246734619140625, 0.03375244140625, 0.0022983551025390625, -0.002117156982421875, 0.0184173583984375, -0.01486968994140625, -0.0089111328125, 0.0028228759765625, 0.0028018951416015625, 0.01421356201171875, 0.00946807861328125, -0.0148773193359375, -0.01129150390625, 0.0257415771484375, 0.01190948486328125, -0.01009368896484375, 0.0008563995361328125, 0.0099029541015625, -0.023162841796875, 0.038665771484375, -0.038909912109375, 0.01934814453125, -0.0189056396484375, 0.056121826171875, 0.050506591796875, -0.0167388916015625, 0.0008826255798339844, -0.0162200927734375, 0.007335662841796875, -0.048583984375, 0.0494384765625, 0.0102996826171875, -0.069580078125, 0.021087646484375, 0.0244140625, 0.0005168914794921875, 0.0027408599853515625, 0.0083465576171875, -0.035736083984375, 0.01001739501953125, 0.01070404052734375, -0.10211181640625, -0.06610107421875, 0.0445556640625, -0.046875, -0.0203399658203125, -0.033111572265625, -0.06353759765625, 0.00445556640625, -0.0146484375, -0.01009368896484375, -0.0042877197265625, 0.001598358154296875, 0.00823211669921875, -0.0087738037109375, -0.01641845703125, -0.0200042724609375, 0.0067596435546875, -0.00865936279296875, -0.0021228790283203125, 0.06927490234375, -0.0019483566284179688, -0.036529541015625, -0.01203155517578125, 0.01470184326171875, -0.0166473388671875, -0.01453399658203125, 0.0489501953125, -0.04736328125, -0.0187835693359375, 0.006374359130859375, 0.050994873046875, 0.01904296875, -0.039154052734375, -0.00026106834411621094, 0.007366180419921875, 0.0190277099609375, 0.037689208984375, -0.036102294921875, -0.0233612060546875, 0.042724609375, 0.0250701904296875, -0.01468658447265625, -0.0275726318359375, -0.0287628173828125, -0.0556640625, -0.0205841064453125, 0.02947998046875, 0.03369140625, -0.034332275390625, 0.0301971435546875, -0.024383544921875, -0.00115966796875, 0.0230255126953125, -0.019775390625, -0.0031261444091796875, -0.029266357421875, -0.035675048828125, -0.018951416015625, -0.039154052734375, -0.045562744140625, -0.002788543701171875, -0.040924072265625, -0.0240478515625, -0.0229339599609375, 0.01453399658203125, -0.006107330322265625, -0.00823211669921875, 0.058258056640625, 0.0095977783203125, 0.0614013671875, -0.055816650390625, -0.045318603515625, -0.049957275390625, 0.086181640625, 0.037841796875, -0.04248046875, -0.01274871826171875, 0.0201568603515625, -0.043212890625, -0.036712646484375, 0.03582763671875, 0.00542449951171875, -0.0701904296875, -0.0023593902587890625, -0.00811004638671875, -0.006053924560546875, -0.032562255859375, 0.05877685546875, -0.059844970703125, -0.032928466796875, 0.027587890625, -0.055694580078125, 0.0066986083984375, -0.003021240234375, 0.015228271484375, -0.04266357421875, -0.005764007568359375, -0.03302001953125, -0.034759521484375, -0.0231475830078125, 0.026336669921875, 0.0609130859375, 0.01148223876953125, -0.022064208984375, 0.021881103515625, 0.05078125, -0.0117950439453125, -0.005359649658203125, -0.01416015625, 0.019927978515625, -0.052398681640625, 0.00611114501953125, -0.012847900390625, -0.020904541015625, -0.01432037353515625, -0.0307464599609375, -0.0002505779266357422, 0.005840301513671875, -0.033416748046875, -0.0108489990234375, -0.0178070068359375, -0.00995635986328125, -0.049713134765625, -0.020355224609375, -0.03558349609375, 0.0011816024780273438, -0.029022216796875, 0.02325439453125, -0.033233642578125, -0.07177734375, 0.04376220703125, 0.00014925003051757812, -0.0038814544677734375, 0.010040283203125, 0.06634521484375, 0.004322052001953125, -0.031280517578125, -0.06256103515625, 0.0259552001953125, 0.0182647705078125, 0.0038967132568359375, 0.0069580078125, -0.018646240234375, -0.0100860595703125, 0.0240478515625, -0.025604248046875, 0.01947021484375, -0.002777099609375, 0.02899169921875, 0.00725555419921875, -0.01262664794921875, 0.011199951171875, 0.00974273681640625, -0.026580810546875, -0.00821685791015625, -0.006038665771484375, 0.01491546630859375, -0.005008697509765625, 0.0019445419311523438, 0.0280303955078125, -0.0270538330078125, -0.02667236328125, -0.0211944580078125, 0.0105743408203125, -0.012847900390625, 0.004932403564453125, 0.0218505859375, -0.003948211669921875, 0.005237579345703125, -0.00730133056640625, 0.00751495361328125, -0.05267333984375, -0.007366180419921875, -0.04296875, 0.01329803466796875, -0.034271240234375, -0.01959228515625, -0.0321044921875, 0.00949859619140625, 0.01885986328125, -0.0218353271484375, -0.057647705078125, -0.029449462890625, 0.0018930435180664062, 0.045928955078125, 0.0423583984375, 0.005290985107421875, 0.0197601318359375, 0.0204315185546875, -0.0075836181640625, -0.00531005859375, -0.01410675048828125, 0.011566162109375, -0.04229736328125, 0.00757598876953125, 0.0174102783203125, -0.01128387451171875, -0.035430908203125, 0.10430908203125, 0.000518798828125, 0.0287017822265625, -0.02813720703125, 0.05859375, 0.039642333984375, 0.025634765625, 0.016357421875, 0.0019283294677734375, -0.0245208740234375, 0.0242919921875, -0.052398681640625, -0.04998779296875, -0.01540374755859375, 0.0155487060546875, 0.04107666015625, 0.0341796875, -0.0018434524536132812, 0.0022678375244140625, -0.00743865966796875, 0.005950927734375, 0.0047454833984375, -0.04425048828125, -0.0640869140625, 0.0155792236328125, 0.04449462890625, 0.012603759765625, -0.054534912109375, 0.04083251953125, -0.057952880859375, -0.00646209716796875, 0.0377197265625, -0.094970703125, 0.09197998046875, -0.05517578125, -0.08380126953125, 0.0248260498046875, 0.01561737060546875, -0.01404571533203125, -0.04852294921875, -0.06280517578125, -0.005748748779296875, -0.00621795654296875, 0.05657958984375, 0.01548004150390625, 0.01537322998046875, -0.0310821533203125, -0.0026950836181640625, 0.01922607421875, -0.012420654296875, 0.038177490234375, -0.019775390625, -0.00954437255859375, 0.0098419189453125, -0.0023937225341796875, -0.0167236328125, -0.005809783935546875, -0.044464111328125, -0.03765869140625, -0.033599853515625, -0.003353118896484375, 0.03851318359375, -0.013885498046875, -0.004566192626953125, 0.0025787353515625, -0.0045166015625, -0.01239776611328125, 0.053802490234375, 0.003993988037109375, 0.037811279296875, -0.01416778564453125, 0.020233154296875, 0.01898193359375, 0.03131103515625, -0.0081024169921875, -0.021942138671875, -0.0055694580078125, -0.04278564453125, 0.00455474853515625, 0.005794525146484375, -0.036895751953125, -0.029998779296875, 0.01522064208984375, -0.0021724700927734375, 0.01212310791015625, -0.032135009765625, 0.00283050537109375, -0.0254364013671875, 0.056884765625, -0.040771484375, -0.003932952880859375, 0.0199127197265625, -0.0082550048828125, -0.040771484375, -0.0192718505859375, 0.0004291534423828125, -0.0030155181884765625, 0.02191162109375, -0.0018606185913085938, -0.015167236328125, -0.0295562744140625, 0.0355224609375, 0.07501220703125, 0.01342010498046875, 0.0194549560546875, -0.01081085205078125, -0.0057525634765625, 0.0159149169921875, -0.043914794921875, 0.04327392578125, 0.072509765625, 0.0628662109375, -0.017333984375, 0.006725311279296875, 0.0173797607421875, -0.0252838134765625, -0.01416778564453125, 0.0185394287109375, 0.039306640625, -0.04864501953125, 0.007282257080078125, 0.0195465087890625, 0.026947021484375, 0.035186767578125, 0.021942138671875, -0.01113128662109375, -0.00435638427734375, -0.004917144775390625, -0.0134124755859375, -0.021148681640625, 0.00812530517578125, 0.0289764404296875, -0.00014328956604003906, -0.02947998046875, 0.01348114013671875, 0.01313018798828125, 0.0174407958984375, 0.00902557373046875, 0.0072784423828125, 0.006740570068359375, -0.003314971923828125, -0.01068878173828125, 0.00977325439453125, -0.04852294921875, -0.0865478515625, -0.032562255859375, -0.0237884521484375, -0.0247039794921875, -0.0038318634033203125, 0.043487548828125, 0.05633544921875, 0.0165863037109375, 0.034423828125, -0.03619384765625, -0.016357421875, 0.039276123046875, -0.058074951171875, -0.02960205078125, 0.021514892578125, 0.017791748046875, -0.00750732421875, 0.03155517578125, -0.0025768280029296875, -0.037078857421875, -0.0071868896484375, 0.01806640625, 0.0560302734375, -0.02020263671875, -0.0213165283203125, 0.03314208984375, 0.0280609130859375, -0.006988525390625, 0.00955963134765625, 0.0290069580078125, -0.0109405517578125, -0.01197052001953125, 0.01532745361328125, -0.05194091796875, -0.019134521484375, -0.004909515380859375, -0.07421875, 0.08062744140625, 0.037384033203125, -0.015838623046875, -0.00601959228515625, 0.039276123046875, -0.060150146484375, -0.01161956787109375, -0.03802490234375, 0.050262451171875, 0.01241302490234375, 0.021148681640625, -0.051025390625, -0.0006155967712402344, -0.01174163818359375, 0.02301025390625, 0.051544189453125, 0.016082763671875, -0.0268096923828125, -0.0157012939453125, 0.01355743408203125, 0.028961181640625, -0.003814697265625, 0.03924560546875, -0.0221710205078125, 0.043212890625, 0.0467529296875, -0.07275390625, 0.00885772705078125, 0.01168060302734375, -0.018798828125, 0.0093231201171875, -0.0008578300476074219, -0.0026912689208984375, 0.003780364990234375, 0.0289764404296875, 0.01457977294921875, -0.0020198822021484375, -0.016021728515625, -0.00733184814453125, 0.0281219482421875, -0.00740814208984375, -0.0235595703125, 0.043182373046875, 0.047637939453125, 0.0008668899536132812, 0.0257720947265625, -0.0139007568359375, 0.03436279296875, 0.025482177734375, 0.0180206298828125, 0.0560302734375, -0.0001932382583618164, 0.006351470947265625, 0.01284027099609375, 0.0087738037109375, 0.06707763671875, 0.04449462890625, -0.0036830902099609375, -0.0249481201171875, 0.05438232421875, 0.044219970703125, 0.060699462890625, -0.0830078125, -0.01317596435546875, 0.0191802978515625, 0.00838470458984375, -0.0098419189453125, -0.0399169921875, -0.00679779052734375, -0.031890869140625, 0.01053619384765625, -0.0399169921875, -0.0122528076171875, 0.01183319091796875, 0.0322265625, 0.0095367431640625, 0.03131103515625, -0.040771484375, -0.021697998046875, -0.051910400390625, -0.0034332275390625, 0.024932861328125, 0.049041748046875, 0.0340576171875, 0.04974365234375, 0.04705810546875, -0.0192718505859375, -0.02777099609375, 0.037261962890625, -0.00397491455078125, 0.034637451171875, -0.0269622802734375, -0.0231475830078125, 0.01200103759765625, 0.02716064453125, 0.00502777099609375, 0.04718017578125, 0.061187744140625, 0.052520751953125, -0.04364013671875, -0.003376007080078125, 0.08172607421875, -0.02899169921875, -0.0049896240234375, -0.042633056640625, 0.0294189453125, -0.0053863525390625, 0.005313873291015625, -0.023284912109375, 0.06353759765625, -0.01558685302734375, 0.0211181640625, 0.0243377685546875, 0.01495361328125, 0.007061004638671875, 0.049652099609375, 0.0246429443359375, 0.0165863037109375, 0.03875732421875, 0.020599365234375, 0.035003662109375, -0.04266357421875, -0.047027587890625, -0.0105133056640625, 0.022705078125, -0.04852294921875, 0.05963134765625, -0.0382080078125, -0.033905029296875, 0.0020923614501953125, 0.0440673828125, -0.006378173828125, 0.036376953125, 0.01507568359375, -0.01087188720703125, -0.01947021484375, 0.004669189453125, 0.006870269775390625, 0.0290374755859375, -0.0164031982421875, 0.032501220703125, -0.004608154296875, 0.0127105712890625, -0.031341552734375, 0.028778076171875, -0.0274658203125, -0.0029926300048828125, -0.01079559326171875, 0.0282135009765625, 0.03057861328125, -0.007213592529296875, 0.001354217529296875, 0.016845703125, 0.046630859375, -0.04266357421875, -0.01641845703125, 0.0191192626953125, 0.01043701171875, -0.01023101806640625, -0.00423431396484375, -0.016387939453125, 0.0147857666015625, 0.0005202293395996094, -0.029144287109375, 0.0450439453125, 0.06982421875, 0.0382080078125, -0.00147247314453125, 0.01125335693359375, -0.00010436773300170898, 0.0236663818359375, 0.0205535888671875, 0.023895263671875, 0.0290069580078125, -0.038360595703125, 0.0037994384765625, -0.00604248046875, -0.01325225830078125, 0.0167999267578125, 0.0013456344604492188, 0.0178070068359375, 0.011260986328125, -0.006473541259765625, 0.004344940185546875, 0.0177764892578125, 0.0377197265625, -0.00040841102600097656, 0.007328033447265625, -0.005825042724609375, -0.00209808349609375, 0.007293701171875, 0.021942138671875, -0.018218994140625, -0.0286865234375, -0.0240478515625, -0.008575439453125, -0.0229034423828125, -0.0616455078125, -0.0225677490234375, -0.003936767578125, 0.039520263671875, 0.0221099853515625, -0.06439208984375, 0.045989990234375, -0.0142822265625, -0.00937652587890625, 0.006114959716796875, -0.072265625, 0.0141143798828125, 0.078125, 0.007724761962890625, -0.03240966796875, -0.024871826171875, 0.01129913330078125, -0.02685546875, 0.006671905517578125, 0.005039215087890625, -0.011932373046875, -0.0205230712890625, 0.0040130615234375, 0.02337646484375, 0.0197906494140625, 0.036346435546875, -0.02276611328125, 0.036865234375, -0.0103912353515625, 0.00705718994140625, -0.080810546875, -0.021881103515625, -0.054290771484375, 0.02325439453125, 0.0039215087890625, 0.01435089111328125, 0.045440673828125, -0.0157012939453125, -0.0869140625, 0.0345458984375, -0.01526641845703125, -0.0433349609375, -0.005062103271484375, -0.0311431884765625, 0.00499725341796875, 0.0258636474609375, -0.0045013427734375, -0.00778961181640625, -0.05328369140625, 0.0030345916748046875, 0.0219573974609375, 0.0140838623046875, 0.0171661376953125, 0.01232147216796875, -0.039764404296875, 0.0171966552734375, -0.0019054412841796875, 0.02178955078125, -0.0294952392578125, -0.0035305023193359375, 0.0275421142578125, 0.004825592041015625, -0.034576416015625, 0.046783447265625, 0.04278564453125, 0.0185546875, -0.0206298828125, -0.0201568603515625, -0.06414794921875, -0.00044846534729003906, 0.136962890625, 0.035736083984375, 0.0518798828125, -0.048980712890625, 0.03955078125, -0.0166015625, -0.006500244140625, -0.0302734375, 0.01068878173828125, -0.0753173828125, -0.060028076171875, 0.0288848876953125, -0.0021190643310546875, -0.0033512115478515625, -0.036895751953125, 0.004604339599609375, -0.01837158203125, -0.008453369140625, -0.01629638671875, 0.034149169921875, -0.0257415771484375, 0.047454833984375, -0.01311492919921875, 0.04150390625, -0.00733184814453125, 0.00885009765625, 0.045257568359375, 0.041290283203125, 0.0076904296875, -0.03973388671875, -0.002666473388671875, 0.039459228515625, -0.001804351806640625, 0.0186767578125, -0.0041351318359375, -0.04510498046875, -0.032806396484375, 0.018463134765625, 0.01456451416015625, 0.01071929931640625, -0.02423095703125, 0.0364990234375, 0.026580810546875, 0.053924560546875, -0.03179931640625, 0.050933837890625, -0.0212249755859375, 0.01953125, 0.0228424072265625, 0.0009784698486328125, 0.0609130859375, -0.003993988037109375, -0.00942230224609375, 0.0160064697265625, -0.0139007568359375, -0.041534423828125, 0.0289764404296875, 0.02734375, 0.01235198974609375, 0.024139404296875 ]
00a088d30204c8f1ec8964a30784b26391a1aafa
Wordpress Stackexchange Q: is_plugin_active() returning false on active plugin So I have the following in an include in my theme file: include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( WP_PLUGIN_DIR . '/woocommerce/woocommerce.php' ) ) { $shop_id = woocommerce_get_page_id( 'shop' ); $shop_page = get_page( $shop_id ); } but is_plugin_active( WP_PLUGIN_DIR . '/woocommerce/woocommerce.php') is returning false, despite the fact that the plugin is active. I'm wondering if is_plugin_active() might be tripped up by the theme customizer, because the fact that I'm doing this while hooked to customize_preview_init is the only gotcha that I can imagine would be causing issue. Any insights? A: in case you dont know which plugins are active you can do the following. // get array of active plugins $active_plugins = (array) get_option( 'active_plugins', array() ); // see active plugins 'plugin-dir-name/plugin-base-file.php' echo '<pre>'; print_r( $active_plugins ); echo '</pre>'; if ( ! empty( $active_plugins ) && in_array( 'plugin-dir-name/plugin-base-file.php', $active_plugins ) ) { // do something if plugin is active } for reference take a look into is_plugin_active function inside 'wp-admin/includes/plugin.php' function is_plugin_active( $plugin ) { return in_array( $plugin, (array) get_option( 'active_plugins', array() ) ) || is_plugin_active_for_network( $plugin ); }
Q: is_plugin_active() returning false on active plugin So I have the following in an include in my theme file: include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( is_plugin_active( WP_PLUGIN_DIR . '/woocommerce/woocommerce.php' ) ) { $shop_id = woocommerce_get_page_id( 'shop' ); $shop_page = get_page( $shop_id ); } but is_plugin_active( WP_PLUGIN_DIR . '/woocommerce/woocommerce.php') is returning false, despite the fact that the plugin is active. I'm wondering if is_plugin_active() might be tripped up by the theme customizer, because the fact that I'm doing this while hooked to customize_preview_init is the only gotcha that I can imagine would be causing issue. Any insights? A: in case you dont know which plugins are active you can do the following. // get array of active plugins $active_plugins = (array) get_option( 'active_plugins', array() ); // see active plugins 'plugin-dir-name/plugin-base-file.php' echo '<pre>'; print_r( $active_plugins ); echo '</pre>'; if ( ! empty( $active_plugins ) && in_array( 'plugin-dir-name/plugin-base-file.php', $active_plugins ) ) { // do something if plugin is active } for reference take a look into is_plugin_active function inside 'wp-admin/includes/plugin.php' function is_plugin_active( $plugin ) { return in_array( $plugin, (array) get_option( 'active_plugins', array() ) ) || is_plugin_active_for_network( $plugin ); } A: is_plugin_active() expects just the base name of the plugin as parameter: So use: is_plugin_active( 'woocommerce/woocommerce.php' ); The function will use the option 'active_plugins' which is a list of plugins paths relative to the plugin directory already. On a multi-site installation it will search in get_site_option( 'active_sitewide_plugins') too. As an implementation note: Avoid these checks. Some users rename plugin names or directories. Test for the functions you will actually use instead, eg: if ( function_exists( 'woocommerce_get_page_id' ) ) { // do something }
wordpress
{ "language": "en", "length": 270, "provenance": "stackexchange_00019.jsonl.gz:432431", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/99444" }
[ 0.041015625, 0.002887725830078125, -0.0038166046142578125, -0.0240478515625, 0.01971435546875, -0.022552490234375, 0.0242156982421875, -0.0225830078125, -0.004383087158203125, 0.01309967041015625, -0.0049896240234375, 0.0203704833984375, -0.04266357421875, -0.0226898193359375, -0.01019287109375, -0.0260467529296875, 0.025482177734375, 0.0245361328125, 0.00891876220703125, 0.008270263671875, -0.0307464599609375, 0.0291748046875, -0.011749267578125, 0.0631103515625, 0.027374267578125, -0.0675048828125, 0.11993408203125, -0.02813720703125, 0.049560546875, -0.01513671875, 0.03955078125, -0.04052734375, -0.005443572998046875, 0.028564453125, 0.011474609375, 0.0077972412109375, 0.003368377685546875, 0.0035037994384765625, 0.02618408203125, 0.0250701904296875, 0.04364013671875, -0.015380859375, -0.00005704164505004883, -0.00693511962890625, -0.0030765533447265625, -0.02978515625, 0.0161590576171875, -0.037567138671875, 0.0276031494140625, 0.0069732666015625, -0.006092071533203125, -0.0034618377685546875, 0.003082275390625, -0.046539306640625, -0.00908660888671875, -0.001556396484375, -0.049957275390625, 0.005130767822265625, 0.0433349609375, 0.01227569580078125, -0.015716552734375, -0.0460205078125, 0.014312744140625, -0.049407958984375, 0.032470703125, -0.0018434524536132812, -0.007167816162109375, 0.037353515625, -0.042022705078125, 0.01910400390625, 0.0286407470703125, -0.034912109375, 0.040130615234375, 0.0377197265625, -0.06787109375, -0.075439453125, 0.03143310546875, -0.015167236328125, 0.05059814453125, -0.03466796875, 0.00930023193359375, 0.036468505859375, -0.0088043212890625, -0.0239410400390625, 0.0026607513427734375, 0.0015325546264648438, -0.00821685791015625, -0.0179901123046875, 0.0008807182312011719, -0.01458740234375, -0.0108642578125, 0.0170745849609375, 0.0151824951171875, -0.01837158203125, -0.04461669921875, -0.00656890869140625, 0.02734375, 0.0445556640625, -0.01332855224609375, -0.00131988525390625, 0.0018243789672851562, -0.05169677734375, 0.03125, -0.0316162109375, 0.0035190582275390625, 0.047393798828125, 0.004329681396484375, 0.032684326171875, 0.043701171875, 0.0188751220703125, 0.0224151611328125, 0.0152435302734375, -0.025146484375, -0.0654296875, 0.007801055908203125, 0.033447265625, -0.045654296875, 0.0173187255859375, 0.0178985595703125, -0.0021457672119140625, 0.031951904296875, 0.041015625, 0.03424072265625, -0.0712890625, -0.006839752197265625, -0.009857177734375, -0.05291748046875, -0.05322265625, -0.004848480224609375, 0.031829833984375, -0.0098876953125, -0.0013256072998046875, 0.01317596435546875, 0.01128387451171875, -0.005275726318359375, -0.01224517822265625, 0.00754547119140625, 0.0304412841796875, 0.035980224609375, -0.0198211669921875, 0.036346435546875, -0.026123046875, -0.01033782958984375, 0.028839111328125, 0.0105438232421875, -0.0034122467041015625, 0.00870513916015625, 0.0297393798828125, 0.01444244384765625, -0.0081787109375, 0.04119873046875, -0.032867431640625, -0.0088653564453125, 0.0175628662109375, 0.04962158203125, 0.016998291015625, 0.034210205078125, -0.01202392578125, 0.008331298828125, -0.00681304931640625, 0.0232696533203125, -0.01502227783203125, -0.0257720947265625, -0.055145263671875, -0.0543212890625, -0.01445770263671875, -0.0250091552734375, 0.015838623046875, 0.02099609375, 0.02142333984375, 0.021148681640625, 0.004878997802734375, 0.035888671875, 0.04254150390625, 0.007694244384765625, 0.021087646484375, 0.0031337738037109375, 0.041046142578125, 0.034149169921875, -0.0006957054138183594, -0.01806640625, -0.00971221923828125, 0.1080322265625, -0.03240966796875, -0.0275726318359375, 0.01861572265625, 0.00250244140625, 0.012969970703125, 0.01336669921875, -0.01053619384765625, 0.0447998046875, 0.009246826171875, 0.012176513671875, -0.008544921875, -0.0155181884765625, -0.006984710693359375, -0.003444671630859375, 0.0265960693359375, -0.027099609375, -0.01451873779296875, 0.0165863037109375, -0.03240966796875, 0.0251007080078125, -0.0145416259765625, -0.0799560546875, -0.01189422607421875, -0.03265380859375, 0.021697998046875, -0.0031070709228515625, 0.01434326171875, 0.0135650634765625, 0.037353515625, -0.036712646484375, -0.00893402099609375, -0.01282501220703125, 0.047698974609375, -0.036102294921875, 0.060394287109375, 0.00437164306640625, 0.04730224609375, -0.01045989990234375, -0.011260986328125, -0.00383758544921875, -0.031829833984375, 0.020904541015625, 0.06109619140625, -0.03668212890625, 0.01024627685546875, -0.005489349365234375, 0.02587890625, -0.0174713134765625, 0.04010009765625, 0.0343017578125, 0.0181732177734375, -0.03125, -0.020965576171875, -0.0010519027709960938, -0.07977294921875, 0.0158538818359375, 0.0616455078125, 0.048614501953125, 0.0254364013671875, 0.0015048980712890625, -0.020477294921875, 0.0535888671875, -0.0755615234375, 0.0133209228515625, -0.026824951171875, 0.0179290771484375, 0.036865234375, -0.05999755859375, 0.0162506103515625, 0.051788330078125, 0.01629638671875, 0.0025424957275390625, 0.0714111328125, -0.02667236328125, -0.0474853515625, -0.020843505859375, 0.0162200927734375, 0.0222015380859375, -0.0147247314453125, -0.0165557861328125, 0.0014629364013671875, 0.020294189453125, 0.0195465087890625, 0.0204315185546875, 0.0229949951171875, -0.0250244140625, 0.02752685546875, 0.0159759521484375, -0.02587890625, -0.01192474365234375, 0.037200927734375, 0.018096923828125, 0.01116943359375, -0.042572021484375, -0.00504302978515625, -0.00507354736328125, 0.0180206298828125, -0.02642822265625, -0.01366424560546875, -0.0073699951171875, -0.0214080810546875, 0.0107421875, -0.038055419921875, 0.0172576904296875, -0.00920867919921875, 0.005596160888671875, -0.00412750244140625, 0.0309906005859375, 0.0114288330078125, -0.04541015625, 0.0589599609375, 0.00769805908203125, -0.02374267578125, 0.044769287109375, -0.01141357421875, 0.0187835693359375, -0.0201873779296875, 0.052215576171875, 0.048004150390625, -0.004695892333984375, -0.002307891845703125, -0.0063323974609375, -0.03411865234375, -0.0133209228515625, 0.0073699951171875, -0.0196685791015625, -0.0006403923034667969, -0.078125, 0.033111572265625, 0.015289306640625, 0.07147216796875, -0.031524658203125, -0.055206298828125, -0.0010890960693359375, -0.004444122314453125, -0.061126708984375, -0.08648681640625, -0.037384033203125, -0.06976318359375, 0.045745849609375, -0.02203369140625, -0.015960693359375, -0.0065155029296875, -0.0018701553344726562, 0.0239715576171875, 0.0119476318359375, -0.041748046875, -0.039581298828125, -0.04656982421875, -0.06195068359375, -0.01139068603515625, 0.003528594970703125, -0.004482269287109375, -0.00446319580078125, 0.05657958984375, 0.0010957717895507812, -0.0195465087890625, 0.012969970703125, 0.01422882080078125, 0.00585174560546875, 0.0203399658203125, 0.01219940185546875, -0.007778167724609375, -0.0142669677734375, 0.007232666015625, -0.00736236572265625, 0.0077972412109375, -0.0247955322265625, -0.0240631103515625, 0.032318115234375, 0.03790283203125, 0.047393798828125, 0.03216552734375, -0.01898193359375, 0.004650115966796875, 0.00792694091796875, -0.0460205078125, -0.0165557861328125, -0.0091094970703125, -0.03729248046875, 0.0982666015625, 0.019287109375, -0.01885986328125, 0.044769287109375, 0.01190185546875, -0.0018901824951171875, 0.01708984375, -0.03314208984375, -0.047821044921875, 0.053192138671875, 0.0251312255859375, 0.02642822265625, 0.020599365234375, 0.04541015625, -0.0188751220703125, -0.0162353515625, -0.00002580881118774414, -0.00864410400390625, -0.0006008148193359375, -0.0220794677734375, -0.022552490234375, 0.019439697265625, 0.006134033203125, -0.0196685791015625, 0.0094757080078125, -0.006595611572265625, 0.00690460205078125, -0.020721435546875, 0.01433563232421875, -0.05755615234375, -0.0248260498046875, -0.003002166748046875, 0.0112762451171875, -0.015472412109375, 0.003204345703125, -0.0311279296875, -0.0128326416015625, -0.08123779296875, 0.016876220703125, -0.008575439453125, -0.0255279541015625, 0.0046539306640625, -0.002910614013671875, -0.0401611328125, -0.04376220703125, 0.0209808349609375, -0.05560302734375, 0.01326751708984375, 0.034149169921875, -0.008697509765625, -0.0017547607421875, -0.01464080810546875, -0.052215576171875, -0.076416015625, 0.0093841552734375, -0.0292205810546875, 0.03411865234375, -0.007686614990234375, 0.035400390625, -0.06317138671875, -0.00017511844635009766, 0.0038356781005859375, 0.034820556640625, 0.01490020751953125, 0.01302337646484375, -0.01428985595703125, 0.0131072998046875, 0.037261962890625, -0.01324462890625, -0.002044677734375, -0.01404571533203125, -0.04180908203125, -0.039398193359375, -0.0299835205078125, -0.06707763671875, 0.0206756591796875, -0.045654296875, -0.02593994140625, -0.0158843994140625, -0.020233154296875, -0.0238037109375, -0.0250091552734375, -0.00882720947265625, 0.002193450927734375, -0.02325439453125, 0.03985595703125, -0.06298828125, -0.0028781890869140625, 0.0169830322265625, 0.09063720703125, 0.01384735107421875, -0.00008547306060791016, -0.032928466796875, 0.034881591796875, 0.0301513671875, 0.018096923828125, 0.0199127197265625, 0.005950927734375, -0.03228759765625, 0.0394287109375, 0.014678955078125, -0.0032749176025390625, -0.01910400390625, 0.0399169921875, -0.00897979736328125, -0.0275726318359375, 0.0025234222412109375, -0.024261474609375, 0.0201416015625, 0.0208740234375, -0.014007568359375, -0.0462646484375, -0.0163421630859375, 0.056640625, -0.03289794921875, 0.051544189453125, -0.03802490234375, -0.049346923828125, 0.0128631591796875, 0.040008544921875, 0.045562744140625, 0.036407470703125, -0.0057220458984375, 0.0654296875, 0.0311431884765625, 0.0179595947265625, 0.0200958251953125, 0.040252685546875, -0.02703857421875, 0.0255126953125, 0.03765869140625, -0.0037136077880859375, 0.00688934326171875, 0.01190185546875, 0.014190673828125, -0.04705810546875, -0.0704345703125, -0.023712158203125, -0.0226287841796875, 0.018218994140625, 0.056884765625, 0.0003294944763183594, 0.04254150390625, 0.020904541015625, -0.043212890625, -0.01702880859375, -0.018890380859375, 0.0238037109375, -0.060333251953125, -0.0240936279296875, -0.020721435546875, -0.00444793701171875, -0.01041412353515625, 0.04339599609375, 0.0419921875, 0.0025005340576171875, -0.0302886962890625, 0.00568389892578125, 0.0111236572265625, 0.0499267578125, 0.031585693359375, -0.05352783203125, -0.01104736328125, 0.018798828125, 0.005313873291015625, -0.047607421875, -0.00412750244140625, 0.00821685791015625, 0.020294189453125, -0.0031261444091796875, -0.031463623046875, 0.043975830078125, 0.036651611328125, -0.0267333984375, 0.068115234375, 0.0258636474609375, -0.04278564453125, -0.038055419921875, 0.007068634033203125, 0.04400634765625, -0.01617431640625, -0.0174713134765625, 0.009765625, -0.028564453125, -0.027801513671875, 0.01763916015625, -0.09454345703125, 0.02593994140625, 0.06195068359375, -0.048736572265625, -0.016021728515625, 0.031280517578125, -0.08660888671875, -0.00708770751953125, -0.03399658203125, -0.036407470703125, 0.048980712890625, -0.022247314453125, 0.06817626953125, -0.059295654296875, -0.02178955078125, -0.040740966796875, 0.0036067962646484375, 0.034149169921875, 0.032928466796875, -0.05731201171875, 0.0282135009765625, -0.049224853515625, -0.0145416259765625, -0.050811767578125, -0.047027587890625, -0.049346923828125, -0.006618499755859375, 0.006988525390625, 0.036224365234375, -0.011077880859375, -0.0103759765625, 0.016387939453125, 0.005840301513671875, -0.00441741943359375, 0.06585693359375, -0.01273345947265625, 0.04315185546875, 0.01201629638671875, 0.032958984375, 0.01242828369140625, -0.01474761962890625, -0.044891357421875, 0.0086669921875, -0.00988006591796875, 0.01056671142578125, -0.004848480224609375, -0.02728271484375, 0.0139007568359375, -0.0151214599609375, 0.048828125, -0.0024776458740234375, -0.0093994140625, 0.0203094482421875, 0.00597381591796875, -0.017059326171875, 0.002834320068359375, 0.037567138671875, 0.005168914794921875, -0.0037746429443359375, -0.044097900390625, -0.0258636474609375, 0.00914764404296875, 0.0007047653198242188, -0.01003265380859375, -0.003330230712890625, -0.027069091796875, 0.0213470458984375, -0.0478515625, 0.07720947265625, 0.036163330078125, 0.007476806640625, 0.03887939453125, -0.01253509521484375, 0.022064208984375, -0.01416778564453125, 0.0019464492797851562, 0.027191162109375, 0.0089874267578125, 0.10235595703125, 0.015228271484375, -0.030487060546875, 0.07012939453125, -0.0445556640625, 0.038116455078125, 0.036773681640625, 0.054229736328125, -0.06829833984375, 0.004772186279296875, 0.0022754669189453125, -0.01580810546875, 0.0501708984375, -0.0250091552734375, 0.023956298828125, -0.01337432861328125, 0.05975341796875, 0.039703369140625, 0.0090789794921875, 0.033477783203125, -0.0210723876953125, -0.008758544921875, -0.0007739067077636719, 0.0204620361328125, 0.019622802734375, -0.012786865234375, -0.0014476776123046875, 0.0168609619140625, -0.0025272369384765625, -0.005573272705078125, 0.0019464492797851562, -0.0218963623046875, -0.00870513916015625, -0.01555633544921875, 0.0144805908203125, -0.024749755859375, 0.0125579833984375, 0.0419921875, -0.0219879150390625, 0.036346435546875, 0.03387451171875, -0.00904083251953125, 0.0062103271484375, 0.006103515625, 0.000019848346710205078, -0.0261077880859375, -0.0219573974609375, 0.030364990234375, 0.0633544921875, -0.07305908203125, 0.032623291015625, -0.0201873779296875, -0.01056671142578125, -0.005687713623046875, 0.01148223876953125, 0.0867919921875, -0.0247955322265625, -0.02471923828125, 0.006275177001953125, -0.0004620552062988281, -0.0016307830810546875, -0.0222320556640625, 0.062469482421875, -0.034393310546875, 0.006694793701171875, 0.01236724853515625, 0.0240020751953125, -0.0117950439453125, 0.00839996337890625, -0.043731689453125, 0.0751953125, -0.03875732421875, 0.03546142578125, 0.0386962890625, 0.0233001708984375, 0.0010290145874023438, 0.01032257080078125, -0.0202789306640625, 0.033905029296875, -0.01453399658203125, 0.03863525390625, 0.00235748291015625, 0.00891876220703125, 0.023345947265625, 0.0110321044921875, -0.00249481201171875, 0.009918212890625, -0.0065460205078125, 0.029541015625, 0.052734375, -0.01003265380859375, -0.01329803466796875, 0.03790283203125, 0.026214599609375, -0.00556182861328125, 0.05072021484375, -0.0231781005859375, 0.044158935546875, -0.036224365234375, 0.022979736328125, 0.022979736328125, -0.00799560546875, 0.0001819133758544922, -0.0389404296875, 0.0294952392578125, 0.004241943359375, -0.04107666015625, -0.00839996337890625, -0.0177764892578125, -0.016448974609375, 0.0182952880859375, -0.01450347900390625, 0.02978515625, 0.005268096923828125, -0.0194244384765625, 0.0311126708984375, 0.006420135498046875, 0.0218505859375, -0.0093536376953125, 0.006534576416015625, 0.0362548828125, -0.0287628173828125, 0.0018491744995117188, 0.02313232421875, -0.030853271484375, -0.00036025047302246094, 0.0238189697265625, 0.010711669921875, 0.0009965896606445312, 0.044525146484375, 0.01448822021484375, -0.0064544677734375, -0.0257720947265625, -0.11273193359375, 0.0009002685546875, -0.0034332275390625, -0.002231597900390625, 0.04290771484375, -0.02349853515625, -0.039642333984375, 0.05926513671875, -0.05255126953125, -0.0076446533203125, 0.046478271484375, 0.022735595703125, 0.00470733642578125, -0.0033321380615234375, -0.046142578125, -0.0265045166015625, -0.0309906005859375, 0.0108489990234375, -0.002033233642578125, 0.040557861328125, 0.0136871337890625, 0.03271484375, -0.002105712890625, -0.01525115966796875, -0.015960693359375, 0.053558349609375, -0.0181884765625, 0.0173492431640625, -0.06536865234375, -0.08709716796875, 0.01114654541015625, 0.05322265625, 0.032012939453125, 0.006076812744140625, -0.0035114288330078125, 0.0011730194091796875, 0.01788330078125, 0.0274810791015625, 0.0714111328125, 0.00014829635620117188, -0.0253143310546875, -0.01055908203125, 0.0155029296875, 0.040435791015625, 0.006866455078125, 0.011993408203125, 0.005279541015625, 0.048614501953125, -0.007228851318359375, 0.00658416748046875, 0.007114410400390625, -0.0089569091796875, 0.01444244384765625, -0.004734039306640625, 0.00293731689453125, 0.01210784912109375, -0.030517578125, -0.004413604736328125, -0.05035400390625, 0.0004401206970214844, 0.00015819072723388672, 0.026214599609375, 0.00589752197265625, 0.04156494140625, 0.02496337890625, 0.005008697509765625, 0.014801025390625, -0.0204010009765625, 0.00461578369140625, 0.007366180419921875, 0.0293121337890625, 0.015777587890625, 0.0109710693359375, 0.00887298583984375, -0.0011930465698242188, 0.03497314453125, 0.05987548828125, 0.01024627685546875, -0.0059356689453125, 0.03851318359375, 0.022735595703125, -0.03662109375, -0.0023365020751953125, 0.0015506744384765625, 0.03753662109375, -0.05169677734375, -0.0498046875, 0.004146575927734375, -0.06768798828125, -0.00971221923828125, 0.0303955078125, -0.007293701171875, -0.006221771240234375, -0.02496337890625, 0.040435791015625, 0.021514892578125, 0.05126953125, -0.01056671142578125, -0.0615234375, -0.0406494140625, 0.0235748291015625, 0.02056884765625, 0.0560302734375, -0.016754150390625, -0.01141357421875, 0.01020050048828125, -0.0238189697265625, 0.01323699951171875, 0.0168609619140625, -0.006961822509765625, 0.0261993408203125, -0.0097198486328125, -0.015228271484375, 0.01525115966796875, -0.018341064453125, 0.01110076904296875, 0.012939453125, 0.036651611328125, -0.00946044921875, -0.0411376953125, 0.0188751220703125, 0.053131103515625, 0.024688720703125, -0.0275726318359375, 0.0094146728515625, 0.05426025390625, -0.00983428955078125, 0.014068603515625, -0.07244873046875, -0.01175689697265625, -0.050750732421875, -0.007076263427734375, 0.0149688720703125, -0.011505126953125, -0.0142669677734375, 0.04571533203125, 0.016448974609375, 0.013336181640625, -0.0261993408203125, -0.0153656005859375, 0.0012197494506835938, -0.046630859375, 0.036529541015625, -0.0416259765625, -0.0047454833984375, 0.003681182861328125, 0.0173797607421875, -0.02490234375, 0.0277099609375, -0.033447265625, -0.0234832763671875, 0.01123809814453125, 0.0154876708984375, 0.034271240234375, -0.0222015380859375, -0.04754638671875, 0.01560211181640625, 0.00917816162109375, 0.049713134765625, -0.0219573974609375, -0.0301513671875, 0.034698486328125, -0.026092529296875, -0.0031337738037109375, -0.0333251953125, -0.00859832763671875, -0.046722412109375, -0.01409912109375, -0.060028076171875, 0.004955291748046875, -0.00785064697265625, -0.0601806640625, -0.05548095703125, 0.061859130859375, -0.027191162109375, -0.0178680419921875, -0.0643310546875, 0.0130615234375, -0.0022106170654296875, 0.0093536376953125, -0.0231781005859375, -0.02545166015625, -0.033172607421875, 0.044189453125, 0.01248931884765625, 0.01092529296875, 0.01404571533203125, 0.0156707763671875, -0.0229949951171875, 0.0242767333984375, 0.0135955810546875, -0.0007824897766113281, -0.00022172927856445312, 0.00612640380859375, 0.021636962890625, 0.038421630859375, -0.01323699951171875, 0.017364501953125, 0.01531219482421875, 0.002101898193359375, 0.0199127197265625, -0.04888916015625, -0.0025539398193359375, -0.0139312744140625, 0.016143798828125, -0.005535125732421875, -0.00872039794921875, -0.0174102783203125, -0.045074462890625, -0.025726318359375, -0.0439453125, -0.002185821533203125, 0.0294036865234375, -0.06390380859375, 0.034759521484375, -0.0017156600952148438, -0.01055145263671875, -0.03955078125, 0.03125, -0.039398193359375, -0.005252838134765625, 0.01617431640625, -0.00742340087890625, 0.0037689208984375, -0.03594970703125, 0.0038909912109375, -0.0169219970703125, -0.0306243896484375, 0.0007648468017578125, 0.0203399658203125, -0.0148773193359375, 0.035064697265625, 0.03619384765625, 0.025909423828125, -0.026702880859375, -0.016815185546875, 0.02886962890625, 0.007038116455078125, 0.0160980224609375, -0.0382080078125, -0.01013946533203125, 0.004444122314453125, -0.0171356201171875, -0.02679443359375, -0.0102996826171875, 0.031829833984375, -0.00254058837890625, 0.0882568359375, 0.02655029296875, 0.0152587890625, 0.005496978759765625, 0.060791015625, 0.0085906982421875, -0.056182861328125, 0.00852203369140625, -0.061187744140625, -0.0165557861328125, 0.04742431640625, -0.02490234375, -0.046783447265625, 0.0295867919921875, -0.037841796875, 0.020843505859375, 0.01025390625 ]
3b325f1d33869ed3ad0e405f03b0d644208dd519
Wordpress Stackexchange Q: How to export/import theme customizer settings? I am wondering if it is possible to export theme customizer settings(theme_mods) to be imported into another install of the same theme. I know that the settings are saved into the database so I am wondering if there is a plugin or tool to create a XML file for import like many themes have for settings. A: For anyone still interested in customizer export/import functionality, we just released a new plugin on the wordpress.org repo that does exactly that! https://wordpress.org/plugins/customizer-export-import/ Don’t hesitate to let us know what you think!
Q: How to export/import theme customizer settings? I am wondering if it is possible to export theme customizer settings(theme_mods) to be imported into another install of the same theme. I know that the settings are saved into the database so I am wondering if there is a plugin or tool to create a XML file for import like many themes have for settings. A: For anyone still interested in customizer export/import functionality, we just released a new plugin on the wordpress.org repo that does exactly that! https://wordpress.org/plugins/customizer-export-import/ Don’t hesitate to let us know what you think! A: Theme mod settings are stored as a single database entry in the options table. For example, If I look in my wp_options table in a localhost install, and find the key of theme_mods_twentythirteen, then this is the content of it: a:3:{s:16:"header_textcolor";s:6:"220e10";s:12:"header_image";s:84:"http://localhost/wptrunk/wp-content/themes/twentythirteen/images/headers/diamond.png";s:17:"header_image_data";a:3:{s:3:"url";s:84:"http://localhost/wptrunk/wp-content/themes/twentythirteen/images/headers/diamond.png";s:13:"thumbnail_url";s:94:"http://localhost/wptrunk/wp-content/themes/twentythirteen/images/headers/diamond-thumbnail.png";s:11:"description";s:7:"Diamond";}} That's just saving the header image and colors and such for the twentythirteen theme. Copy that to another install and you copied all the theme mod settings for that theme. A: I did a small research on the matter. It seems that the only way right now would be to import manually from database. This is the case with native settings now. The problem might be that every theme can have different option-fields in customizer. Meaning that the theme should probably always handle this kind of import/export or optionally a plugin. I also found a promising plugin called Customizer which promises to edit, save, import and export theme customizer options in the future. * *Customizer - WordPress Plugin
wordpress
{ "language": "en", "length": 256, "provenance": "stackexchange_00019.jsonl.gz:432439", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/99472" }
[ 0.01399993896484375, -0.023956298828125, 0.050445556640625, 0.007678985595703125, -0.0268402099609375, 0.0017118453979492188, 0.0297698974609375, -0.041839599609375, -0.0419921875, 0.01207733154296875, 0.022552490234375, 0.026824951171875, -0.038299560546875, -0.036834716796875, 0.0158843994140625, -0.03753662109375, 0.0129241943359375, -0.009490966796875, 0.0041351318359375, -0.0220947265625, 0.00682830810546875, -0.0147552490234375, 0.0085601806640625, 0.05157470703125, 0.033447265625, 0.051177978515625, -0.0210418701171875, 0.0196075439453125, 0.00829315185546875, 0.024932861328125, 0.0250244140625, -0.0570068359375, 0.02459716796875, 0.00792694091796875, -0.01444244384765625, 0.0182952880859375, -0.0010986328125, 0.005573272705078125, 0.000051856040954589844, 0.015167236328125, 0.028839111328125, -0.01108551025390625, 0.0007791519165039062, 0.03887939453125, -0.022064208984375, -0.061767578125, 0.058349609375, -0.0193939208984375, 0.0046539306640625, 0.002971649169921875, -0.0009150505065917969, -0.0189056396484375, 0.01526641845703125, -0.0374755859375, -0.01328277587890625, -0.031707763671875, -0.03094482421875, 0.04913330078125, 0.034820556640625, 0.01158905029296875, -0.037811279296875, -0.0078582763671875, 0.004550933837890625, -0.033172607421875, 0.011627197265625, 0.0114898681640625, -0.017242431640625, 0.01003265380859375, -0.0517578125, 0.01190185546875, 0.036865234375, -0.052734375, 0.0196990966796875, -0.0142974853515625, -0.00821685791015625, -0.003398895263671875, -0.0037174224853515625, -0.0182037353515625, 0.02960205078125, -0.0029773712158203125, 0.005619049072265625, -0.0221405029296875, 0.00321197509765625, -0.06927490234375, 0.05377197265625, -0.0196990966796875, 0.005397796630859375, -0.0010538101196289062, 0.0251922607421875, 0.00038933753967285156, 0.01013946533203125, 0.0030956268310546875, -0.037689208984375, 0.082763671875, 0.0226898193359375, -0.007602691650390625, -0.00609588623046875, 0.006893157958984375, 0.002010345458984375, 0.0516357421875, -0.0012369155883789062, -0.042877197265625, 0.076904296875, -0.048126220703125, -0.00826263427734375, 0.002765655517578125, 0.00035119056701660156, -0.033966064453125, 0.00826263427734375, 0.0238494873046875, -0.0374755859375, 0.00888824462890625, 0.040557861328125, 0.002750396728515625, -0.0027141571044921875, -0.010894775390625, 0.015045166015625, 0.027252197265625, -0.018280029296875, 0.0035648345947265625, 0.003520965576171875, 0.036651611328125, -0.06512451171875, -0.018585205078125, -0.031494140625, -0.051788330078125, -0.0033168792724609375, 0.02001953125, -0.00408935546875, 0.054107666015625, -0.017242431640625, -0.0248870849609375, 0.0416259765625, 0.042755126953125, 0.008819580078125, -0.03753662109375, 0.047607421875, -0.01038360595703125, 0.002227783203125, 0.00803375244140625, 0.011138916015625, -0.0280914306640625, -0.03253173828125, -0.01015472412109375, 0.0006756782531738281, 0.01409149169921875, 0.007526397705078125, 0.019134521484375, 0.00952911376953125, -0.039276123046875, 0.0178375244140625, -0.0137786865234375, 0.005931854248046875, 0.0172882080078125, 0.036102294921875, -0.02740478515625, 0.02496337890625, -0.036285400390625, 0.04290771484375, -0.042510986328125, -0.02978515625, -0.007343292236328125, 0.006011962890625, 0.016693115234375, 0.005115509033203125, 0.0201416015625, 0.0233612060546875, 0.0160675048828125, 0.00140380859375, 0.007236480712890625, -0.038360595703125, 0.021453857421875, -0.0133056640625, -0.007747650146484375, 0.002506256103515625, 0.006122589111328125, 0.01172637939453125, -0.0418701171875, 0.01335906982421875, 0.04620361328125, -0.00235748291015625, -0.0193634033203125, -0.0177459716796875, 0.007354736328125, -0.03839111328125, 0.02130126953125, -0.005130767822265625, 0.041778564453125, 0.042572021484375, 0.0086212158203125, -0.00928497314453125, -0.0137939453125, -0.0287017822265625, -0.0186309814453125, -0.01788330078125, -0.00577545166015625, 0.00689697265625, 0.00742340087890625, -0.0106964111328125, 0.0209503173828125, -0.050506591796875, -0.0111083984375, 0.0179595947265625, 0.0219573974609375, -0.0084686279296875, -0.003894805908203125, -0.01263427734375, 0.02484130859375, -0.0181732177734375, -0.003662109375, 0.0162811279296875, -0.0019140243530273438, -0.00847625732421875, -0.03643798828125, -0.0167083740234375, 0.0298309326171875, -0.00015282630920410156, 0.0311279296875, 0.0075531005859375, 0.0060577392578125, 0.0146026611328125, -0.010772705078125, 0.0118408203125, 0.0307769775390625, -0.01678466796875, 0.016021728515625, -0.025146484375, -0.0015153884887695312, -0.02978515625, 0.01275634765625, 0.03369140625, 0.0217742919921875, 0.031982421875, 0.043426513671875, 0.007080078125, -0.011993408203125, 0.0177764892578125, -0.0699462890625, 0.0218048095703125, 0.042510986328125, 0.0276336669921875, 0.0247802734375, -0.01175689697265625, -0.004180908203125, 0.067138671875, 0.0182647705078125, 0.029296875, -0.01611328125, 0.036407470703125, 0.024078369140625, -0.031280517578125, -0.04534912109375, 0.03155517578125, -0.047821044921875, 0.02508544921875, 0.016998291015625, -0.055084228515625, -0.03192138671875, 0.011138916015625, 0.0050201416015625, -0.0141448974609375, -0.01377105712890625, 0.0335693359375, -0.0224609375, 0.038116455078125, 0.036224365234375, 0.04833984375, 0.0303497314453125, -0.031890869140625, 0.0259552001953125, 0.00738525390625, 0.0006437301635742188, 0.009765625, 0.0045318603515625, 0.00740814208984375, 0.053070068359375, -0.03741455078125, -0.0120391845703125, 0.022735595703125, 0.0217742919921875, -0.003299713134765625, 0.0178680419921875, -0.0166168212890625, -0.009246826171875, 0.0091400146484375, -0.0675048828125, 0.0032711029052734375, 0.02117919921875, -0.0252227783203125, -0.006885528564453125, 0.01273345947265625, 0.039520263671875, -0.0234375, 0.0306396484375, -0.0147705078125, 0.0002796649932861328, 0.0430908203125, -0.054229736328125, 0.033203125, -0.023529052734375, 0.05413818359375, 0.062408447265625, -0.0090179443359375, 0.02001953125, 0.01190948486328125, 0.02032470703125, 0.06915283203125, -0.01361846923828125, -0.00986480712890625, -0.007293701171875, -0.06842041015625, -0.053436279296875, 0.010650634765625, -0.001987457275390625, -0.0236358642578125, -0.035858154296875, -0.034027099609375, -0.018646240234375, -0.052520751953125, -0.0184478759765625, -0.004352569580078125, -0.056182861328125, -0.01163482666015625, -0.0191192626953125, -0.0177154541015625, 0.0014085769653320312, -0.012176513671875, -0.0034637451171875, 0.045379638671875, -0.07183837890625, -0.0018968582153320312, -0.07708740234375, -0.0853271484375, -0.09100341796875, 0.0294036865234375, -0.01055145263671875, 0.00408172607421875, 0.0657958984375, 0.01020050048828125, -0.054718017578125, -0.0019588470458984375, 0.0231475830078125, -0.01219940185546875, 0.01227569580078125, 0.0164947509765625, 0.007640838623046875, 0.00943756103515625, 0.00803375244140625, 0.061920166015625, 0.046905517578125, -0.0579833984375, -0.01557159423828125, -0.02764892578125, 0.016815185546875, -0.039520263671875, 0.01297760009765625, 0.0543212890625, -0.0102386474609375, -0.03765869140625, -0.05413818359375, -0.035980224609375, 0.0223236083984375, -0.04754638671875, 0.0274810791015625, 0.01776123046875, -0.0281524658203125, 0.033233642578125, -0.0064239501953125, 0.00405120849609375, -0.0006189346313476562, 0.0247039794921875, -0.00782012939453125, -0.0166168212890625, -0.0165557861328125, -0.008514404296875, -0.018707275390625, 0.00409698486328125, -0.033233642578125, 0.07098388671875, 0.01421356201171875, 0.006855010986328125, -0.01593017578125, 0.006519317626953125, -0.042694091796875, -0.0819091796875, 0.043670654296875, -0.01885986328125, 0.0142364501953125, -0.02490234375, -0.02960205078125, 0.02276611328125, 0.1219482421875, -0.07305908203125, 0.001220703125, 0.0107421875, 0.0171356201171875, -0.00908660888671875, -0.016021728515625, -0.07781982421875, -0.0280303955078125, -0.08026123046875, 0.005138397216796875, -0.0178070068359375, -0.0380859375, 0.006000518798828125, -0.048065185546875, -0.035308837890625, -0.054718017578125, 0.02294921875, 0.021148681640625, 0.042388916015625, 0.0088958740234375, 0.01336669921875, 0.0061798095703125, -2.980232238769531e-7, -0.0197601318359375, -0.0592041015625, -0.0151214599609375, -0.034393310546875, 0.051513671875, 0.02911376953125, -0.02435302734375, 0.0010890960693359375, 0.053009033203125, -0.0237579345703125, 0.01358795166015625, 0.0026493072509765625, 0.018829345703125, 0.0027217864990234375, 0.00472259521484375, -0.00975799560546875, -0.033447265625, -0.01116943359375, -0.017181396484375, -0.051055908203125, 0.0103607177734375, 0.006114959716796875, 0.025390625, 0.0307464599609375, -0.034271240234375, -0.052734375, 0.0110321044921875, 0.0046844482421875, -0.01320648193359375, 0.0076446533203125, -0.02679443359375, 0.031402587890625, -0.0372314453125, 0.0159912109375, -0.038818359375, 0.008575439453125, 0.01007080078125, 0.07672119140625, 0.01450347900390625, 0.0103912353515625, -0.018341064453125, -0.007389068603515625, 0.0201416015625, 0.00557708740234375, 0.01239013671875, -0.0025653839111328125, -0.007061004638671875, 0.00952911376953125, -0.00872039794921875, -0.02642822265625, -0.05609130859375, 0.05279541015625, -0.009613037109375, 0.0019292831420898438, 0.0032958984375, -0.034637451171875, 0.0928955078125, 0.046630859375, 0.01041412353515625, -0.027740478515625, 0.005580902099609375, 0.0244293212890625, -0.006763458251953125, -0.0199432373046875, -0.0293426513671875, -0.0185546875, 0.020477294921875, 0.004474639892578125, 0.0170440673828125, -0.0092010498046875, 0.005794525146484375, -0.0209503173828125, -0.0295562744140625, 0.016204833984375, 0.03033447265625, 0.05023193359375, -0.007244110107421875, 0.04083251953125, 0.043304443359375, -0.00478363037109375, -0.01348114013671875, 0.0004813671112060547, 0.01123046875, -0.01015472412109375, -0.035919189453125, -0.0718994140625, 0.005260467529296875, 0.0189208984375, 0.000736236572265625, -0.03228759765625, 0.01169586181640625, 0.0283203125, -0.015350341796875, 0.0152587890625, 0.004169464111328125, -0.01511383056640625, -0.0177154541015625, -0.01274871826171875, -0.01152801513671875, -0.01806640625, 0.01323699951171875, 0.0261993408203125, -0.0758056640625, 0.028106689453125, 0.0199127197265625, -0.00360870361328125, 0.01410675048828125, 0.0198516845703125, 0.01287841796875, -0.00858306884765625, 0.020782470703125, -0.0308685302734375, 0.05511474609375, -0.0027790069580078125, 0.044647216796875, 0.00308990478515625, 0.0217132568359375, -0.0073394775390625, -0.0308990478515625, 0.0288238525390625, -0.05096435546875, -0.02288818359375, 0.0197296142578125, -0.03875732421875, -0.06036376953125, -0.021728515625, 0.0094757080078125, 0.0157318115234375, -0.01186370849609375, 0.0034084320068359375, 0.003803253173828125, -0.00362396240234375, -0.035369873046875, 0.005039215087890625, -0.061737060546875, -0.016937255859375, 0.0185394287109375, -0.05108642578125, 0.00606536865234375, 0.004100799560546875, -0.06634521484375, -0.05853271484375, 0.006656646728515625, -0.01465606689453125, 0.036102294921875, 0.0009312629699707031, -0.002758026123046875, -0.023223876953125, 0.006725311279296875, -0.005062103271484375, -0.00839996337890625, 0.05218505859375, -0.012481689453125, -0.0290069580078125, -0.006618499755859375, -0.033660888671875, -0.0144500732421875, -0.02520751953125, -0.041229248046875, -0.050689697265625, -0.005420684814453125, 0.0147552490234375, 0.029327392578125, 0.0034275054931640625, -0.01152801513671875, 0.01222991943359375, 0.0146942138671875, -0.0003898143768310547, 0.0214996337890625, -0.008880615234375, 0.0418701171875, -0.015228271484375, 0.033660888671875, -0.002655029296875, 0.008209228515625, 0.00006031990051269531, -0.00849151611328125, 0.0089569091796875, 0.031402587890625, -0.02996826171875, -0.04315185546875, 0.034881591796875, 0.0090789794921875, 0.06890869140625, -0.01263427734375, 0.05267333984375, -0.0404052734375, 0.006134033203125, -0.0183868408203125, -0.0053863525390625, -0.07427978515625, -0.0296173095703125, 0.05072021484375, -0.03973388671875, -0.0169830322265625, 0.005420684814453125, 0.0021533966064453125, 0.022430419921875, -0.01277923583984375, -0.005451202392578125, 0.016143798828125, -0.050201416015625, 0.0322265625, 0.03668212890625, -0.00008589029312133789, 0.02349853515625, -0.002391815185546875, 0.0085906982421875, 0.0064697265625, 0.01387786865234375, -0.00811767578125, 0.035430908203125, 0.0045318603515625, -0.01104736328125, 0.00099945068359375, -0.031463623046875, -0.01165771484375, 0.037384033203125, 0.04345703125, 0.08258056640625, -0.0836181640625, 0.022369384765625, 0.0380859375, 0.00049591064453125, 0.01030731201171875, -0.002887725830078125, -0.018402099609375, -0.060821533203125, 0.019805908203125, 0.008758544921875, -0.00341796875, 0.0020275115966796875, -0.00626373291015625, -0.005962371826171875, -0.01739501953125, 0.0201568603515625, 0.01232147216796875, 0.00098419189453125, -0.007610321044921875, -0.003997802734375, -0.00839996337890625, -0.00021648406982421875, 0.03173828125, -0.03582763671875, -0.00461578369140625, -0.042327880859375, -0.0009660720825195312, -0.02593994140625, -0.012969970703125, -0.05316162109375, 0.005840301513671875, 0.06829833984375, 0.037872314453125, 0.00643157958984375, -0.043243408203125, 0.00843048095703125, 0.06292724609375, 0.0248260498046875, -0.01306915283203125, 0.00916290283203125, 0.035369873046875, -0.0226287841796875, 0.012969970703125, 0.005809783935546875, -0.0166015625, -0.0248565673828125, -0.00021910667419433594, 0.0819091796875, -0.0200347900390625, -0.0192413330078125, 0.02410888671875, 0.055572509765625, -0.01169586181640625, -0.003997802734375, 0.0723876953125, -0.04229736328125, -0.01287078857421875, 0.012359619140625, 0.0016946792602539062, -0.03900146484375, -0.00074005126953125, -0.06903076171875, 0.1143798828125, -0.003116607666015625, 0.034027099609375, 0.0010967254638671875, 0.052490234375, 0.00479888916015625, 0.0374755859375, 0.00801849365234375, 0.056060791015625, 0.0297393798828125, -0.007965087890625, -0.0152130126953125, -0.0093231201171875, -0.0018167495727539062, 0.060546875, 0.021759033203125, 0.00848388671875, -0.0194854736328125, 0.0138397216796875, 0.053192138671875, 0.0202484130859375, -0.002635955810546875, 0.048370361328125, -0.01457977294921875, -0.01824951171875, 0.0528564453125, -0.023345947265625, 0.0211181640625, 0.019439697265625, 0.004009246826171875, -0.00037741661071777344, -0.01763916015625, -0.0301971435546875, 0.01103973388671875, -0.01611328125, -0.0103759765625, -0.00574493408203125, -0.014434814453125, -0.0308685302734375, 0.0312347412109375, -0.05511474609375, -0.0254364013671875, -0.01009368896484375, 0.027374267578125, -0.0025482177734375, 0.01105499267578125, -0.01192474365234375, 0.023590087890625, -0.0256195068359375, 0.0012884140014648438, 0.0200347900390625, -0.041259765625, -0.001316070556640625, 0.032623291015625, -0.042510986328125, 0.018341064453125, 0.031890869140625, 0.04669189453125, 0.006855010986328125, -0.012786865234375, -0.0185089111328125, 0.0159759521484375, -0.0048980712890625, -0.067138671875, 0.0181427001953125, 0.000949859619140625, -0.01116180419921875, 0.01514434814453125, -0.01126861572265625, -0.036468505859375, 0.028564453125, -0.006786346435546875, 0.01021575927734375, 0.04791259765625, 0.0185394287109375, 0.0181427001953125, 0.0679931640625, -0.06732177734375, -0.01015472412109375, -0.0024166107177734375, 0.00362396240234375, 0.018096923828125, 0.00778961181640625, -0.006855010986328125, 0.04595947265625, -0.01361083984375, 0.002079010009765625, -0.00875091552734375, 0.017547607421875, 0.0171661376953125, 0.01209259033203125, -0.01505279541015625, -0.006565093994140625, -0.002925872802734375, 0.039459228515625, -0.0260467529296875, 0.00800323486328125, 0.034210205078125, 0.062744140625, -0.00726318359375, -0.033935546875, 0.026824951171875, -0.01111602783203125, 0.01361083984375, -0.053863525390625, 0.062286376953125, 0.033966064453125, 0.0157012939453125, -0.007595062255859375, 0.019378662109375, 0.061553955078125, -0.0101470947265625, 0.0469970703125, -0.005706787109375, -0.0108642578125, 0.005886077880859375, -0.0090179443359375, 0.0655517578125, 0.02032470703125, -0.0286712646484375, -0.00891876220703125, -0.0282135009765625, 0.0196380615234375, -0.01556396484375, 0.0174102783203125, -0.00959014892578125, 0.045440673828125, 0.0111083984375, -0.012725830078125, 0.01074981689453125, 0.006519317626953125, -0.006549835205078125, 0.0004494190216064453, 0.01464080810546875, -0.005352020263671875, -0.0694580078125, -0.051177978515625, -0.063232421875, 0.077392578125, 0.0318603515625, 0.034759521484375, -0.00873565673828125, 0.053314208984375, 0.0191802978515625, 0.008453369140625, 0.0008268356323242188, 0.0021038055419921875, 0.016571044921875, -0.0095672607421875, 0.005611419677734375, -0.0176544189453125, -0.05084228515625, -0.01268768310546875, 0.0161285400390625, -0.032928466796875, -0.036224365234375, -0.005207061767578125, 0.036529541015625, 0.02032470703125, 0.01181793212890625, -0.029754638671875, -0.059295654296875, -0.01488494873046875, 0.0229034423828125, -0.02783203125, -0.005645751953125, 0.012939453125, -0.0161590576171875, 0.049285888671875, 0.004261016845703125, 0.005290985107421875, 0.057098388671875, 0.0164794921875, 0.031036376953125, -0.005519866943359375, -0.08642578125, 0.03564453125, -0.003589630126953125, -0.0050506591796875, 0.017425537109375, 0.10015869140625, 0.0267181396484375, -0.0584716796875, 0.04449462890625, 0.0672607421875, 0.075927734375, 0.0014057159423828125, 0.031463623046875, 0.033721923828125, -0.0081329345703125, 0.007045745849609375, -0.06695556640625, -0.036346435546875, -0.07537841796875, 0.0035266876220703125, 0.051544189453125, -0.06048583984375, -0.010223388671875, -0.08642578125, -0.0011196136474609375, 0.034912109375, 0.0022563934326171875, -0.0284423828125, 0.018707275390625, -0.037933349609375, 0.031158447265625, -0.005420684814453125, -0.044769287109375, 0.00894927978515625, 0.00860595703125, 0.009063720703125, -0.0271759033203125, -0.024139404296875, 0.0267333984375, -0.0026302337646484375, 0.0228271484375, 0.038543701171875, -0.0185394287109375, -0.01007080078125, 0.051544189453125, -0.005535125732421875, 0.09637451171875, -0.05084228515625, -0.0240020751953125, -0.0098114013671875, 0.016632080078125, -0.023956298828125, -0.051849365234375, 0.0169219970703125, -0.0418701171875, -0.0034236907958984375, -0.06707763671875, -0.002460479736328125, -0.0250396728515625, -0.0633544921875, -0.095947265625, 0.0295257568359375, -0.0280303955078125, -0.03790283203125, -0.02618408203125, 0.0126190185546875, 0.0001926422119140625, -0.01438140869140625, -0.01611328125, 0.0104217529296875, -0.0099639892578125, 0.0198974609375, -0.01082611083984375, 0.055267333984375, -0.004360198974609375, -0.0199737548828125, -0.03448486328125, -0.0135040283203125, -0.0173492431640625, 0.00458526611328125, 0.01471710205078125, -0.01148223876953125, 0.0309600830078125, 0.06597900390625, -0.0130462646484375, -0.0482177734375, -0.03460693359375, -0.038238525390625, -0.01015472412109375, 0.0198974609375, -0.0145111083984375, 0.035003662109375, 0.06494140625, 0.07977294921875, 0.015533447265625, -0.060638427734375, -0.0029888153076171875, -0.0038509368896484375, 0.007205963134765625, -0.0318603515625, 0.00667572021484375, -0.061431884765625, -0.039215087890625, 0.01308441162109375, -0.009307861328125, 0.0379638671875, -0.0277252197265625, -0.0144805908203125, -0.005168914794921875, -0.003101348876953125, 0.0010404586791992188, -0.08038330078125, 0.0180816650390625, 0.0085296630859375, -0.00920867919921875, 0.0177459716796875, -0.004520416259765625, -0.0007843971252441406, 0.01317596435546875, 0.0196685791015625, 0.01129913330078125, 0.0013570785522460938, -0.0330810546875, 0.0206451416015625, -0.0087738037109375, 0.07611083984375, -0.0430908203125, -0.0406494140625, 0.03814697265625, -0.00653076171875, -0.0308837890625, -0.0300750732421875, -0.0020961761474609375, 0.03759765625, -0.056793212890625, 0.07000732421875, -0.00885009765625, -0.021514892578125, -0.04510498046875, 0.041595458984375, -0.04443359375, 0.01788330078125, -0.037994384765625, 0.0007205009460449219, 0.0146026611328125, -0.000812530517578125, 0.032562255859375, -0.0118255615234375, 0.0197906494140625, -0.0047454833984375, -0.01499176025390625, 0.016876220703125 ]
466b1ee3e77a5bc6bd00fd623dc515e4329cc6d2
Wordpress Stackexchange Q: Wordpress User Name Limitations I need to know what the wp specifications for the usernames are. Like allowed minimum and maximum length, are special characters like ü,ö,ä,ß accepted,..? Unfortunately I couldn't find any insight on this in the interweb. Do you have any? A: I think the answer is in the source. $username = wp_strip_all_tags( $username ); $username = remove_accents( $username ); // Kill octets $username = preg_replace( '|%([a-fA-F0-9][a-fA-F0-9])|', '', $username ); $username = preg_replace( '/&.+?;/', '', $username ); // Kill entities // If strict, reduce to ASCII for max portability. if ( $strict ) $username = preg_replace( '|[^a-z0-9 _.\-@]|i', '', $username ); So, the code strips tags, octets, and html entities. And it replaces accented characters with unaccented ones via the remove_accents function, which is fairly lengthy. Other characters get through unless $strict is true (default is false), in which case only ASCII characters are allowed. The maximum login name length would be the database limit for the user_login column-- 60 characters. The minimum, as best I can tell, is 1.
Q: Wordpress User Name Limitations I need to know what the wp specifications for the usernames are. Like allowed minimum and maximum length, are special characters like ü,ö,ä,ß accepted,..? Unfortunately I couldn't find any insight on this in the interweb. Do you have any? A: I think the answer is in the source. $username = wp_strip_all_tags( $username ); $username = remove_accents( $username ); // Kill octets $username = preg_replace( '|%([a-fA-F0-9][a-fA-F0-9])|', '', $username ); $username = preg_replace( '/&.+?;/', '', $username ); // Kill entities // If strict, reduce to ASCII for max portability. if ( $strict ) $username = preg_replace( '|[^a-z0-9 _.\-@]|i', '', $username ); So, the code strips tags, octets, and html entities. And it replaces accented characters with unaccented ones via the remove_accents function, which is fairly lengthy. Other characters get through unless $strict is true (default is false), in which case only ASCII characters are allowed. The maximum login name length would be the database limit for the user_login column-- 60 characters. The minimum, as best I can tell, is 1.
wordpress
{ "language": "en", "length": 173, "provenance": "stackexchange_00019.jsonl.gz:432442", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/99475" }
[ -0.0031890869140625, -0.011810302734375, -0.03411865234375, 0.000018596649169921875, -0.019012451171875, -0.0250244140625, 0.031982421875, -0.006076812744140625, -0.046966552734375, 0.049468994140625, 0.039642333984375, 0.007259368896484375, 0.034759521484375, -0.016021728515625, 0.0034160614013671875, -0.0019931793212890625, 0.002582550048828125, 0.027130126953125, -0.0013990402221679688, -0.04046630859375, 0.0179901123046875, -0.03216552734375, -0.0099334716796875, 0.040252685546875, 0.00991058349609375, -0.056121826171875, 0.13427734375, -0.06475830078125, 0.03948974609375, -0.039398193359375, 0.0168609619140625, -0.01229095458984375, 0.01216888427734375, 0.03369140625, -0.025848388671875, -0.0173492431640625, 0.006801605224609375, 0.019134521484375, 0.0230865478515625, -0.0027980804443359375, 0.02557373046875, -0.016082763671875, -0.0092926025390625, 0.0159759521484375, -0.0046539306640625, -0.045440673828125, 0.0526123046875, -0.019256591796875, 0.02813720703125, -0.0400390625, 0.013946533203125, 0.031707763671875, 0.036712646484375, -0.013275146484375, -0.0246734619140625, 0.0253143310546875, -0.038482666015625, 0.0286712646484375, 0.055328369140625, 0.0124969482421875, -0.027252197265625, -0.043670654296875, 0.005809783935546875, -0.04803466796875, -0.01154327392578125, -0.02215576171875, 0.0178985595703125, 0.020294189453125, -0.00922393798828125, -0.01812744140625, 0.0169219970703125, 0.0100860595703125, -0.01114654541015625, -0.0151824951171875, 0.004261016845703125, 0.0308380126953125, -0.0014600753784179688, 0.01995849609375, 0.017059326171875, 0.0122222900390625, 0.0026531219482421875, -0.007152557373046875, -0.06121826171875, 0.0138397216796875, 0.0193634033203125, 0.045745849609375, -0.013824462890625, -0.0362548828125, 0.0021228790283203125, 0.001056671142578125, -0.0007038116455078125, 0.035125732421875, -0.033935546875, 0.0270843505859375, 0.00968170166015625, -0.01345062255859375, -0.0093841552734375, -0.022369384765625, 0.00160980224609375, 0.01025390625, 0.053375244140625, -0.0582275390625, 0.0733642578125, -0.0195159912109375, -0.0002092123031616211, 0.0589599609375, 0.00009900331497192383, 0.0233154296875, 0.0127410888671875, 0.0017499923706054688, 0.006778717041015625, -0.0467529296875, -0.0288543701171875, -0.0477294921875, 0.00045561790466308594, 0.035858154296875, -0.02203369140625, 0.021484375, 0.0045166015625, 0.0079803466796875, -0.03460693359375, -0.0128631591796875, -0.026611328125, -0.016876220703125, -0.005828857421875, -0.035186767578125, -0.00778961181640625, 0.042327880859375, -0.005863189697265625, 0.077392578125, -0.005828857421875, -0.015289306640625, -0.0173797607421875, -0.008270263671875, -0.041748046875, -0.043304443359375, 0.022491455078125, -0.01995849609375, -0.0206756591796875, 0.06011962890625, -0.04925537109375, -0.042327880859375, 0.045989990234375, -0.046722412109375, -0.01410675048828125, 0.008148193359375, 0.018402099609375, 0.01363372802734375, -0.0002465248107910156, -0.04583740234375, 0.00872802734375, -0.02667236328125, 0.02044677734375, -0.00179290771484375, -0.028961181640625, -0.01611328125, -0.00827789306640625, -0.02459716796875, -0.01226043701171875, -0.024017333984375, -0.016571044921875, -0.01490020751953125, 0.0207977294921875, -0.0396728515625, -0.054779052734375, 0.0229034423828125, -0.033599853515625, -0.003673553466796875, 0.0225982666015625, 0.00968170166015625, -0.0024890899658203125, -0.003490447998046875, 0.07281494140625, -0.01235198974609375, -0.0241241455078125, -0.0098114013671875, -0.0305328369140625, 0.0548095703125, 0.01335906982421875, 0.015960693359375, 0.03021240234375, -0.031585693359375, 0.03857421875, 0.01190948486328125, -0.032928466796875, -0.0159912109375, 0.005374908447265625, 0.0248565673828125, 0.032012939453125, 0.01092529296875, 0.0256195068359375, 0.004718780517578125, -0.0016956329345703125, -0.0196990966796875, -0.034332275390625, -0.0498046875, 0.024993896484375, -0.008453369140625, -0.0220184326171875, 0.047393798828125, 0.0823974609375, -0.04852294921875, 0.0526123046875, -0.052001953125, -0.07745361328125, 0.006748199462890625, -0.0297393798828125, 0.029754638671875, -0.03460693359375, 0.006744384765625, 0.022308349609375, -0.0046234130859375, -0.0295867919921875, 0.0162353515625, 0.0081024169921875, -0.0007691383361816406, -0.01204681396484375, 0.054351806640625, 0.00472259521484375, 0.04449462890625, 0.0248260498046875, -0.07666015625, 0.0184173583984375, 0.0023021697998046875, 0.005405426025390625, -0.0223236083984375, -0.007274627685546875, -0.011688232421875, 0.0191497802734375, -0.00756072998046875, 0.03472900390625, 0.004150390625, 0.004779815673828125, 0.0066986083984375, -0.028656005859375, -0.01474761962890625, -0.00811004638671875, -0.051300048828125, 0.0255279541015625, 0.043212890625, 0.03509521484375, 0.015655517578125, -0.02691650390625, -0.00467681884765625, 0.002635955810546875, -0.005031585693359375, 0.038543701171875, -0.0229949951171875, 0.0001684427261352539, 0.046905517578125, -0.005695343017578125, 0.01168060302734375, 0.02301025390625, -0.0238037109375, -0.011932373046875, 0.053863525390625, -0.03460693359375, -0.00798797607421875, -0.01357269287109375, 0.0167236328125, -0.003887176513671875, -0.03350830078125, 0.00981903076171875, -0.0220184326171875, -0.0274505615234375, 0.00632476806640625, -0.01097869873046875, -0.0172271728515625, -0.0322265625, 0.0139312744140625, 0.04852294921875, -0.040802001953125, -0.00738525390625, -0.00986480712890625, 0.044677734375, -0.013702392578125, -0.0258026123046875, 0.005550384521484375, -0.003055572509765625, -0.026885986328125, 0.015106201171875, 0.051177978515625, 0.07122802734375, -0.0004673004150390625, -0.0184326171875, -0.027069091796875, 0.03753662109375, 0.01093292236328125, 0.015777587890625, -0.002994537353515625, 0.0252838134765625, 0.01129913330078125, -0.02447509765625, 0.03228759765625, 0.005222320556640625, -0.0352783203125, 0.027557373046875, -0.0074310302734375, 0.017059326171875, -0.016815185546875, 0.0226593017578125, 0.045074462890625, -0.01160430908203125, -0.01529693603515625, -0.0014219284057617188, 0.01546478271484375, -0.03302001953125, 0.033660888671875, 0.0094757080078125, -0.042449951171875, 0.0203399658203125, 0.059173583984375, 0.016510009765625, -0.0003516674041748047, 0.004150390625, -0.0283966064453125, -0.01165771484375, 0.018280029296875, -0.0213623046875, -0.0312347412109375, -0.0355224609375, -0.03411865234375, -0.0214385986328125, 0.006481170654296875, -0.00545501708984375, 0.021453857421875, 0.00299072265625, -0.0020580291748046875, -0.021484375, -0.043670654296875, -0.04241943359375, -0.0726318359375, -0.03094482421875, -0.0170745849609375, -0.00525665283203125, -0.00726318359375, -0.0031223297119140625, 0.031768798828125, -0.0139007568359375, -0.03363037109375, -0.036376953125, 0.00860595703125, -0.0048065185546875, -0.037261962890625, 0.005229949951171875, -0.0062255859375, 0.03314208984375, 0.00035190582275390625, -0.0309906005859375, 0.02459716796875, -0.004787445068359375, -0.0183563232421875, 0.019561767578125, -0.0295867919921875, 0.039703369140625, -0.0060577392578125, -0.04034423828125, 0.0010166168212890625, 0.03369140625, -0.0504150390625, -0.002307891845703125, 0.0086212158203125, -0.019256591796875, 0.048553466796875, -0.000028908252716064453, -0.0153350830078125, 0.03448486328125, -0.004619598388671875, -0.033477783203125, 0.00991058349609375, -0.032196044921875, -0.016387939453125, 0.0153656005859375, -0.01485443115234375, -0.0029621124267578125, 0.0345458984375, 0.037200927734375, -0.02825927734375, -0.0095062255859375, 0.0048370361328125, -0.0109405517578125, 0.01412200927734375, -0.035369873046875, 0.0355224609375, -0.07275390625, 0.05169677734375, -0.01934814453125, 0.00623321533203125, -0.043487548828125, -0.02252197265625, -0.0186614990234375, 0.10833740234375, 0.0018329620361328125, -0.0178070068359375, -0.004467010498046875, 0.024017333984375, -0.08441162109375, -0.027587890625, -0.046966552734375, 0.0251922607421875, -0.0565185546875, -0.025360107421875, -0.0194091796875, -0.042877197265625, 0.036468505859375, -0.06640625, 0.01462554931640625, -0.055572509765625, 0.0016546249389648438, 0.034759521484375, -0.0042572021484375, -0.0286712646484375, -0.00383758544921875, -0.035400390625, 0.02618408203125, 0.005184173583984375, -0.05615234375, -0.018035888671875, -0.00698089599609375, 0.048797607421875, 0.020050048828125, -0.02264404296875, -0.01052093505859375, 0.0435791015625, 0.01666259765625, 0.0023517608642578125, 0.0224456787109375, -0.011322021484375, 0.0114593505859375, 0.02044677734375, 0.006336212158203125, 0.004302978515625, -0.0252532958984375, -0.0272369384765625, 0.0086212158203125, -0.0004334449768066406, -0.0118560791015625, -0.01477813720703125, -0.01441192626953125, -0.006801605224609375, -0.01291656494140625, -0.016693115234375, 0.009185791015625, 0.06915283203125, -0.01078033447265625, 0.029632568359375, -0.046234130859375, -0.034332275390625, 0.042083740234375, 0.06829833984375, -0.0018558502197265625, -0.0025882720947265625, 0.049285888671875, 0.0020008087158203125, -0.055389404296875, -0.062347412109375, 0.01287078857421875, 0.01947021484375, 0.016845703125, 0.0628662109375, -0.00136566162109375, -0.018890380859375, 0.07958984375, 0.00998687744140625, 0.006404876708984375, 0.0012416839599609375, -0.035614013671875, -0.00734710693359375, -0.05987548828125, 0.039398193359375, 0.02215576171875, 0.00920867919921875, 0.01416015625, 0.0174102783203125, -0.0302276611328125, -0.00273895263671875, 0.0203094482421875, -0.0074920654296875, 0.00643157958984375, -0.0168914794921875, -0.03277587890625, 0.0124969482421875, -0.060638427734375, -0.031463623046875, -0.01605224609375, 0.0048980712890625, -0.04644775390625, -0.0306549072265625, -0.020355224609375, -0.018707275390625, -0.052825927734375, 0.0211334228515625, -0.01386260986328125, -0.002780914306640625, 0.0015287399291992188, -0.0020351409912109375, -0.031005859375, 0.1221923828125, 0.0197601318359375, -0.047698974609375, 0.0036029815673828125, -0.0223388671875, 0.04376220703125, 0.00536346435546875, 0.0038509368896484375, -0.004169464111328125, -0.0221405029296875, -0.0151824951171875, 0.0043487548828125, -0.002391815185546875, -0.0222015380859375, -0.02105712890625, -0.0026397705078125, -0.032806396484375, -0.023651123046875, 0.0038623809814453125, 0.0069580078125, -0.034149169921875, 0.016845703125, -0.0044403076171875, 0.03387451171875, 0.068603515625, 0.03985595703125, 0.0179595947265625, -0.01030731201171875, -0.043243408203125, 0.0372314453125, -0.0170745849609375, -0.0299224853515625, -0.047576904296875, 0.026336669921875, 0.02777099609375, -0.00460052490234375, 0.032562255859375, -0.0050201416015625, 0.0227203369140625, -0.003143310546875, 0.034210205078125, -0.0245208740234375, -0.0684814453125, -0.0217132568359375, 0.00519561767578125, 0.00594329833984375, -0.055572509765625, -0.004421234130859375, -0.01052093505859375, -0.040618896484375, -0.0085906982421875, 0.0267181396484375, 0.00033092498779296875, -0.0298309326171875, -0.041778564453125, -0.061492919921875, -0.01806640625, -0.0106201171875, -0.002559661865234375, -0.0270843505859375, 0.00988006591796875, -0.022735595703125, -0.0063323974609375, 0.00608062744140625, 0.0264739990234375, -0.00550079345703125, -0.029083251953125, 0.0291290283203125, 0.0087127685546875, 0.0272369384765625, -0.0115966796875, -0.047027587890625, 0.002048492431640625, 0.01224517822265625, 0.02239990234375, 0.080078125, -0.004619598388671875, -0.0209197998046875, -0.05487060546875, 0.00244903564453125, -0.0180816650390625, 0.035003662109375, 0.06170654296875, -0.0105133056640625, 0.049652099609375, 0.00363922119140625, 0.0239715576171875, -0.07501220703125, 0.0241546630859375, 0.065185546875, -0.03857421875, -0.006519317626953125, 0.0443115234375, 0.09326171875, -0.006649017333984375, 0.047271728515625, 0.0272979736328125, -0.02972412109375, -0.053985595703125, 0.026611328125, -0.053680419921875, 0.0300445556640625, -0.018707275390625, -0.0036525726318359375, -0.0156402587890625, 0.00494384765625, -0.0211944580078125, 0.04888916015625, -0.0212554931640625, -0.03271484375, -0.011077880859375, -0.0013484954833984375, 0.05194091796875, -0.047760009765625, -0.034759521484375, 0.047393798828125, -0.019744873046875, 0.0252685546875, 0.040496826171875, -0.030670166015625, 0.01258087158203125, -0.00152587890625, -0.005657196044921875, 0.00965118408203125, -0.00426483154296875, 0.028900146484375, -0.003997802734375, 0.00695037841796875, -0.0219879150390625, -0.0352783203125, 0.0017337799072265625, -0.00800323486328125, -0.00885772705078125, -0.0033111572265625, -0.01134490966796875, 0.02093505859375, 0.09136962890625, 0.061126708984375, -0.11285400390625, 0.014739990234375, -0.0010938644409179688, -0.0150299072265625, 0.033935546875, 0.007740020751953125, 0.00821685791015625, -0.0193939208984375, 0.021697998046875, -0.0562744140625, -0.01535797119140625, -0.005889892578125, -0.03326416015625, 0.003021240234375, -0.028106689453125, 0.055633544921875, 0.0136566162109375, 0.0035343170166015625, -0.0216217041015625, 0.0031642913818359375, 0.01091766357421875, -0.0230865478515625, -0.00835418701171875, 0.030609130859375, -0.0267181396484375, -0.0633544921875, 0.0249481201171875, -0.032012939453125, -0.007030487060546875, 0.04730224609375, 0.0019931793212890625, 0.03741455078125, 0.0289459228515625, -0.004344940185546875, -0.002216339111328125, -0.006439208984375, 0.006633758544921875, 0.01255035400390625, -0.0281219482421875, -0.0174102783203125, 0.029083251953125, -0.0076446533203125, 0.0244293212890625, 0.01119232177734375, -0.0180206298828125, -0.003528594970703125, -0.03155517578125, 0.0380859375, 0.0078277587890625, -0.030670166015625, 0.002094268798828125, -0.0214080810546875, 0.005214691162109375, 0.004642486572265625, -0.0177001953125, -0.054351806640625, -0.06640625, -0.003810882568359375, -0.1099853515625, 0.004711151123046875, -0.0024929046630859375, -0.09326171875, 0.0648193359375, 0.025848388671875, 0.0494384765625, -0.0047454833984375, 0.01096343994140625, -0.032684326171875, -0.00951385498046875, -0.031829833984375, 0.03533935546875, 0.032196044921875, 0.0194244384765625, -0.004413604736328125, 0.0090484619140625, 0.0162353515625, -0.00609588623046875, 0.006237030029296875, 0.0215301513671875, -0.0014257431030273438, -0.040496826171875, -0.04425048828125, 0.0297393798828125, -0.0045166015625, 0.004528045654296875, -0.0006651878356933594, 0.0212554931640625, 0.042938232421875, -0.020660400390625, 0.022308349609375, -0.0014057159423828125, -0.018463134765625, 0.03375244140625, -0.005886077880859375, -0.034912109375, -0.0265350341796875, 0.0131683349609375, -0.06341552734375, -0.00601959228515625, 0.0274658203125, -0.0218963623046875, 0.0210113525390625, 0.0426025390625, 0.06097412109375, -0.045989990234375, -0.03765869140625, -0.0296478271484375, 0.0406494140625, 0.0150299072265625, 0.037628173828125, 0.057159423828125, 0.03173828125, 0.0266571044921875, 0.005615234375, 0.0277557373046875, -0.010345458984375, -0.01020050048828125, 0.0194549560546875, 0.0220489501953125, 0.0175323486328125, -0.0205841064453125, 0.030303955078125, 0.0528564453125, 0.04302978515625, -0.05059814453125, -0.0284881591796875, 0.0072784423828125, 0.034423828125, 0.04010009765625, 0.0263519287109375, 0.07666015625, 0.008514404296875, 0.01103973388671875, -0.021942138671875, 0.03887939453125, 0.054656982421875, -0.00315093994140625, 0.017333984375, 0.0259857177734375, -0.060760498046875, 0.03887939453125, -0.0008578300476074219, -0.0023746490478515625, -0.021148681640625, -0.01213836669921875, 0.0159454345703125, -0.0052032470703125, 0.001567840576171875, 0.0148162841796875, 0.0114898681640625, 0.0018415451049804688, 0.0110931396484375, -0.032470703125, 0.01165771484375, -0.01259613037109375, -0.01047515869140625, 0.009063720703125, -0.0049591064453125, -0.0225677490234375, 0.01461029052734375, 0.0030651092529296875, -0.055145263671875, -0.01471710205078125, 0.030792236328125, -0.0263519287109375, 0.00608062744140625, -0.0211334228515625, 0.00360870361328125, 0.003887176513671875, -0.01271820068359375, -0.029876708984375, 0.038665771484375, 0.01013946533203125, 0.0271453857421875, 0.012908935546875, 0.0163726806640625, -0.00909423828125, -0.00482940673828125, 0.01776123046875, 0.006557464599609375, 0.05377197265625, -0.0819091796875, -0.027740478515625, 0.0097503662109375, -0.0270233154296875, 0.0240020751953125, 0.039276123046875, -0.01434326171875, 0.01148223876953125, 0.0281829833984375, -0.062164306640625, 0.0170440673828125, 0.043731689453125, 0.034698486328125, 0.01438140869140625, -0.0012769699096679688, -0.00463104248046875, -0.0634765625, -0.00560760498046875, -0.0035381317138671875, 0.006702423095703125, -0.017578125, 0.042388916015625, -0.0022735595703125, -0.004364013671875, -0.016510009765625, 0.004093170166015625, -0.02215576171875, -0.02508544921875, 0.0265350341796875, 0.00008732080459594727, -0.0175628662109375, -0.0015163421630859375, -0.044403076171875, 0.05242919921875, -0.00754547119140625, 0.01233673095703125, 0.03619384765625, -0.04510498046875, 0.005847930908203125, 0.00991058349609375, -0.00257110595703125, -0.029876708984375, -0.07037353515625, -0.054351806640625, 0.004703521728515625, 0.00518035888671875, 0.016571044921875, -0.0010547637939453125, 0.040008544921875, -0.06048583984375, -0.0401611328125, 0.004680633544921875, -0.07275390625, -0.0128173828125, 0.0181427001953125, 0.027313232421875, 0.01776123046875, -0.042999267578125, -0.03173828125, -0.015716552734375, 0.0003113746643066406, -0.0280914306640625, -0.01461029052734375, -0.0231781005859375, 0.08319091796875, 0.0684814453125, 0.04962158203125, -0.0118865966796875, 0.0188446044921875, 0.06268310546875, -0.0238800048828125, 0.0478515625, -0.01143646240234375, -0.0025157928466796875, 0.0027332305908203125, -0.04058837890625, -0.00046133995056152344, -0.01898193359375, -0.04833984375, -0.050567626953125, -0.009857177734375, -0.017608642578125, -0.00969696044921875, -0.01422882080078125, -0.0017671585083007812, 0.0040283203125, 0.0189056396484375, -0.03277587890625, -0.005859375, -0.007244110107421875, 0.0130767822265625, -0.03143310546875, -0.044281005859375, -0.0166778564453125, 0.0404052734375, -0.022125244140625, -0.012969970703125, 0.0226593017578125, 0.0157318115234375, -0.04815673828125, -0.016143798828125, -0.058746337890625, 0.01873779296875, -0.041900634765625, -0.0094757080078125, 0.029876708984375, 0.0041961669921875, -0.002468109130859375, -0.1334228515625, -0.03656005859375, -0.07281494140625, 0.0279998779296875, 0.0267791748046875, -0.0012054443359375, 0.017578125, -0.0285491943359375, -0.021575927734375, 0.036041259765625, 0.020355224609375, -0.0271759033203125, 0.00896453857421875, 0.0074462890625, -0.0109710693359375, -0.0004394054412841797, -0.00299835205078125, -0.004657745361328125, -0.0207061767578125, 0.0130157470703125, 0.037017822265625, -0.02142333984375, 0.0226898193359375, 0.0279998779296875, -0.00908660888671875, 0.051910400390625, 0.04962158203125, -0.00251007080078125, 0.007488250732421875, 0.005825042724609375, 0.0435791015625, 0.056304931640625, -0.0026226043701171875, 0.05499267578125, -0.004154205322265625, -0.060028076171875, -0.0203399658203125, -0.0673828125, 0.0008478164672851562, -0.0200347900390625, 0.055511474609375, 0.00739288330078125, 0.0029144287109375, -0.01375579833984375, -0.06109619140625, -0.0389404296875, 0.0232086181640625, -0.034515380859375, 0.0124053955078125, -0.076171875, -0.01016998291015625, -0.01678466796875, -0.0087890625, 0.0182037353515625, -0.0162200927734375, -0.0222320556640625, 0.0005464553833007812, 0.0228729248046875, -0.0102081298828125, -0.001483917236328125, 0.0184326171875, 0.034088134765625, -0.038970947265625, -0.040130615234375, -0.0032367706298828125, -0.00371551513671875, -0.01535797119140625, -0.037200927734375, -0.03607177734375, -0.0611572265625, 0.0181884765625, 0.04095458984375, -0.02972412109375, 0.0163116455078125, -0.027130126953125, -0.010894775390625, 0.03326416015625, 0.0209197998046875, -0.0186004638671875, 0.044464111328125, 0.035888671875, -0.00945281982421875, -0.0321044921875, -0.01210784912109375, -0.00948333740234375, -0.07025146484375, -0.035675048828125, 0.0287933349609375, 0.0127410888671875, -0.024810791015625, 0.034271240234375, -0.00292205810546875, 0.00310516357421875, -0.00977325439453125, 0.040679931640625, -0.04876708984375, 0.0245361328125, 0.007122039794921875, 0.0300140380859375, 0.03021240234375 ]
3763376c4607c52641f2710cd49d4fea4d2cd17b
Wordpress Stackexchange Q: Display all comments or recent comments per user on author page I have author pages for each author and I want to see all of their comments (or all of their recent comments) if I click on their nickname. How can I do this? I tried the beneath code, but that does not show the unique comments per user... It just outputs all recent comments from everyone combined, but I don't want that. <?php $author_email = get_the_author_meta( 'user_email' ); $args = array( 'author_email' => $author_email, 'number' => '10' ); $comments = get_comments($args); foreach($comments as $comment) : echo('<li class="comment">' . $somment->comment_content),'<h5><a href='.get_permalink($comment->comment_post_ID).'>', get_the_title($comment->comment_post_ID), '</a></h5>', '<time><em>' . $comment->get_comment_date . '</em></time>', '</li>'; endforeach; ?> </ul></div> A: your problem is using author_email, you need user_id: i just use similar script. <?php $args = array( 'user_id' => get_the_author_meta('ID'), 'number' => 10, // how many comments to retrieve 'status' => 'approve' ); $comments = get_comments( $args ); if ( $comments ) { $output.= "<ul>\n"; foreach ( $comments as $c ) { $output.= '<li>'; $output.= '<a href="'.get_comment_link( $c->comment_ID ).'">'; $output.= get_the_title($c->comment_post_ID); $output.= '</a>, Posted on: '. mysql2date('m/d/Y', $c->comment_date, $translate); $output.= "</li>\n"; } $output.= '</ul>'; echo $output; } else { echo "No comments made";} ?>
Q: Display all comments or recent comments per user on author page I have author pages for each author and I want to see all of their comments (or all of their recent comments) if I click on their nickname. How can I do this? I tried the beneath code, but that does not show the unique comments per user... It just outputs all recent comments from everyone combined, but I don't want that. <?php $author_email = get_the_author_meta( 'user_email' ); $args = array( 'author_email' => $author_email, 'number' => '10' ); $comments = get_comments($args); foreach($comments as $comment) : echo('<li class="comment">' . $somment->comment_content),'<h5><a href='.get_permalink($comment->comment_post_ID).'>', get_the_title($comment->comment_post_ID), '</a></h5>', '<time><em>' . $comment->get_comment_date . '</em></time>', '</li>'; endforeach; ?> </ul></div> A: your problem is using author_email, you need user_id: i just use similar script. <?php $args = array( 'user_id' => get_the_author_meta('ID'), 'number' => 10, // how many comments to retrieve 'status' => 'approve' ); $comments = get_comments( $args ); if ( $comments ) { $output.= "<ul>\n"; foreach ( $comments as $c ) { $output.= '<li>'; $output.= '<a href="'.get_comment_link( $c->comment_ID ).'">'; $output.= get_the_title($c->comment_post_ID); $output.= '</a>, Posted on: '. mysql2date('m/d/Y', $c->comment_date, $translate); $output.= "</li>\n"; } $output.= '</ul>'; echo $output; } else { echo "No comments made";} ?> A: Check This Show Comments by User ID in WordPress
wordpress
{ "language": "en", "length": 208, "provenance": "stackexchange_00019.jsonl.gz:432454", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/99519" }
[ 0.045135498046875, -0.03399658203125, 0.0013637542724609375, -0.0693359375, -0.01288604736328125, -0.0214996337890625, -0.0048065185546875, 0.007904052734375, -0.0281829833984375, 0.05108642578125, -0.045867919921875, 0.0186614990234375, -0.0316162109375, -0.005092620849609375, -0.031402587890625, -0.06494140625, 0.029388427734375, 0.0038013458251953125, 0.03680419921875, 0.007717132568359375, -0.0047149658203125, 0.037506103515625, 0.0116119384765625, 0.0626220703125, 0.022674560546875, -0.047943115234375, 0.108642578125, -0.0316162109375, 0.02789306640625, -0.0216827392578125, 0.0182342529296875, -0.021240234375, 0.0095367431640625, 0.026336669921875, -0.026763916015625, -0.006275177001953125, 0.0007138252258300781, 0.004810333251953125, 0.016143798828125, 0.0188140869140625, 0.0246429443359375, -0.026947021484375, -0.00372314453125, 0.0215606689453125, -0.0138702392578125, -0.01372528076171875, 0.01316070556640625, -0.01160430908203125, 0.0090484619140625, 0.036376953125, 0.0177154541015625, 0.025421142578125, 0.006885528564453125, 0.033538818359375, -0.01238250732421875, -0.004665374755859375, 0.0150604248046875, -0.058197021484375, 0.036468505859375, -0.031005859375, -0.009124755859375, -0.02362060546875, 0.053985595703125, 0.005359649658203125, -0.01116943359375, -0.0185089111328125, 0.01148223876953125, 0.051239013671875, 0.0196685791015625, -0.033111572265625, -0.030059814453125, 0.01428985595703125, -0.02178955078125, -0.036102294921875, -0.0195159912109375, -0.022735595703125, -0.044219970703125, -0.08819580078125, 0.014892578125, 0.0271759033203125, -0.01502227783203125, 0.0168609619140625, -0.071533203125, 0.033660888671875, -0.0284576416015625, 0.040740966796875, -0.0251617431640625, -0.03277587890625, -0.032196044921875, 0.01526641845703125, -0.014495849609375, -0.078857421875, 0.020599365234375, 0.0290679931640625, 0.006954193115234375, -0.0266571044921875, 0.033233642578125, 0.076171875, -0.0394287109375, -0.024688720703125, -0.0137176513671875, 0.00244140625, -0.03228759765625, -0.0267486572265625, -0.0117645263671875, 0.037811279296875, -0.019989013671875, -0.002933502197265625, 0.031524658203125, 0.053375244140625, 0.022430419921875, -0.046295166015625, -0.0268707275390625, -0.0255279541015625, 0.006290435791015625, 0.0027904510498046875, -0.08489990234375, 0.04443359375, 0.0160980224609375, 0.0191192626953125, 0.0048065185546875, 0.01641845703125, -0.0164337158203125, -0.0067596435546875, 0.016632080078125, -0.015655517578125, -0.0235443115234375, -0.01313018798828125, -0.005466461181640625, 0.037567138671875, -0.0386962890625, 0.002628326416015625, 0.0673828125, 0.018463134765625, -0.0056915283203125, -0.0249786376953125, 0.01318359375, -0.0222625732421875, -0.006710052490234375, 0.038665771484375, -0.04638671875, -0.04449462890625, 0.00687408447265625, -0.0198822021484375, -0.0258941650390625, 0.02069091796875, 0.0136260986328125, -0.0003020763397216797, -0.0029430389404296875, -0.0195770263671875, -0.040740966796875, -0.0149688720703125, 0.025390625, -0.01367950439453125, -0.0027370452880859375, -0.0157318115234375, -0.01262664794921875, -0.011260986328125, 0.00946044921875, 0.00380706787109375, 0.06793212890625, 0.0087890625, -0.03558349609375, -0.036865234375, -0.07867431640625, -0.04022216796875, -0.023895263671875, -0.0182037353515625, 0.0225677490234375, 0.00997161865234375, -0.045074462890625, -0.0290679931640625, 0.060272216796875, 0.03424072265625, -0.00833892822265625, 0.0567626953125, -0.032958984375, 0.018524169921875, 0.00803375244140625, 0.0137176513671875, 0.0106353759765625, -0.032318115234375, 0.00034165382385253906, 0.016845703125, -0.02447509765625, 0.0350341796875, 0.032379150390625, 0.054962158203125, -0.004817962646484375, 0.01611328125, 0.024169921875, 0.035308837890625, -0.0167388916015625, 0.03790283203125, -0.022186279296875, -0.0138397216796875, -0.01395416259765625, 0.0149383544921875, -0.031982421875, -0.0040130615234375, 0.0287017822265625, -0.027923583984375, 0.025421142578125, -0.0150909423828125, -0.07373046875, 0.0172882080078125, -0.0255279541015625, 0.0280914306640625, 0.00461578369140625, 0.033966064453125, 0.0249786376953125, 0.0013475418090820312, -0.048919677734375, 0.0263214111328125, 0.00055694580078125, 0.0160064697265625, -0.023345947265625, -0.0017404556274414062, -0.0160369873046875, 0.043670654296875, -0.0298309326171875, -0.03125, -0.0274810791015625, 0.00885009765625, 0.03570556640625, -0.048370361328125, 0.0196685791015625, -0.06207275390625, 0.0257568359375, -0.01314544677734375, -0.033935546875, 0.02166748046875, 0.026214599609375, 0.0311431884765625, -0.024749755859375, 0.0020542144775390625, 0.029937744140625, -0.0278167724609375, 0.014068603515625, 0.03228759765625, 0.043853759765625, -0.03863525390625, 0.03094482421875, 0.031768798828125, 0.035552978515625, -0.0170135498046875, 0.0428466796875, -0.034942626953125, 0.01445770263671875, 0.027496337890625, -0.0008935928344726562, -0.0006537437438964844, 0.0192718505859375, -0.045196533203125, 0.0216827392578125, 0.04571533203125, -0.01062774658203125, 0.01727294921875, -0.0406494140625, 0.038818359375, 0.0003426074981689453, -0.0291595458984375, -0.002170562744140625, -0.01395416259765625, -0.01617431640625, -0.00374603271484375, 0.0006089210510253906, -0.002910614013671875, -0.0228271484375, -0.007755279541015625, 0.020904541015625, 0.015838623046875, -0.0003349781036376953, 0.020416259765625, -0.041229248046875, 0.000004351139068603516, -0.020751953125, 0.001495361328125, -0.007244110107421875, 0.004505157470703125, -0.00527191162109375, 0.0256500244140625, 0.031707763671875, -0.00508880615234375, 0.007663726806640625, 0.01568603515625, -0.003200531005859375, -0.0137176513671875, -0.00705718994140625, 0.01108551025390625, 0.0206298828125, 0.06683349609375, 0.00556182861328125, 0.0171966552734375, -0.0024967193603515625, 0.01074981689453125, 0.021636962890625, -0.06207275390625, 0.0748291015625, -0.049774169921875, 0.04669189453125, 0.07525634765625, -0.0262603759765625, 0.0450439453125, -0.00833892822265625, -0.0478515625, -0.001728057861328125, -0.01291656494140625, -0.01552581787109375, -0.037689208984375, -0.016265869140625, 0.046142578125, 0.0140838623046875, 0.08587646484375, -0.038909912109375, -0.06048583984375, -0.01068115234375, 0.023223876953125, -0.054595947265625, -0.04913330078125, 0.0143585205078125, -0.040191650390625, -0.031646728515625, -0.0372314453125, -0.032806396484375, 0.0016841888427734375, -0.045654296875, -0.005321502685546875, 0.0107574462890625, -0.0460205078125, -0.09539794921875, -0.036407470703125, -0.0673828125, 0.0526123046875, -0.0186614990234375, 0.004962921142578125, 0.0023326873779296875, 0.04974365234375, -0.018707275390625, -0.023834228515625, -0.0352783203125, -0.0021343231201171875, 0.00406646728515625, -0.0343017578125, -0.016571044921875, 0.033599853515625, -0.010040283203125, 0.00476837158203125, -0.0077667236328125, 0.0233612060546875, -0.027923583984375, -0.01105499267578125, 0.01983642578125, 0.052825927734375, 0.04864501953125, -0.0309600830078125, -0.0272369384765625, 0.07586669921875, 0.029998779296875, -0.005985260009765625, 0.005504608154296875, -0.007747650146484375, -0.02740478515625, 0.007610321044921875, -0.0017728805541992188, -0.006717681884765625, 0.01245880126953125, 0.00390625, 0.004360198974609375, 0.0204620361328125, 0.0164642333984375, -0.028594970703125, 0.0001004338264465332, 0.006977081298828125, 0.0161285400390625, -0.0169677734375, 0.00815582275390625, 0.007030487060546875, -0.0128021240234375, -0.016204833984375, 0.0318603515625, -0.0242767333984375, 0.0272216796875, -0.056396484375, -0.057952880859375, 0.05401611328125, -0.0022068023681640625, -0.0112762451171875, -0.041595458984375, -0.03350830078125, -0.01873779296875, 0.07122802734375, -0.0017766952514648438, -0.039764404296875, 0.00353240966796875, -0.01122283935546875, -0.0266571044921875, 0.03790283203125, -0.024810791015625, 0.0037937164306640625, -0.050262451171875, 0.015411376953125, -0.0038471221923828125, -0.0264892578125, -0.032958984375, 0.0114288330078125, -0.036956787109375, -0.0119781494140625, -0.00395965576171875, 0.01149749755859375, -0.0172271728515625, 0.0310211181640625, -0.043304443359375, 0.041900634765625, 0.002735137939453125, -0.03436279296875, -0.01253509521484375, -0.0094146728515625, -0.0167694091796875, -0.005977630615234375, -0.01206207275390625, 0.0312347412109375, -0.035369873046875, 0.01248931884765625, -0.01264190673828125, 0.03289794921875, -0.0164031982421875, 0.0112152099609375, -0.0220794677734375, -0.0012712478637695312, 0.0009069442749023438, -0.026123046875, 0.007518768310546875, 0.01332855224609375, -0.019012451171875, 0.01084136962890625, -0.06695556640625, -0.019744873046875, -0.024078369140625, -0.046630859375, -0.0478515625, -0.024810791015625, -0.01416778564453125, 0.01204681396484375, -0.0300445556640625, 0.0179595947265625, -0.01459503173828125, -0.06243896484375, 0.01922607421875, -0.015625, -0.04278564453125, -0.00890350341796875, 0.044189453125, 0.0367431640625, -0.0243072509765625, 0.0214996337890625, -0.023529052734375, 0.039154052734375, -0.008453369140625, 0.02752685546875, 0.01129150390625, -0.042205810546875, 0.068115234375, -0.004962921142578125, 0.0102996826171875, 0.002910614013671875, 0.0245361328125, -0.00396728515625, -0.021148681640625, 0.02850341796875, 0.01177215576171875, -0.004119873046875, 0.005161285400390625, -0.0266571044921875, 0.004405975341796875, -0.026123046875, 0.057769775390625, 0.011138916015625, -0.006011962890625, -0.06256103515625, -0.043121337890625, 0.0015764236450195312, -0.0635986328125, 0.04571533203125, 0.020599365234375, -0.00739288330078125, 0.0469970703125, 0.048675537109375, -0.0193634033203125, 0.007480621337890625, 0.00785064697265625, 0.0200653076171875, 0.032470703125, -0.00445556640625, -0.01108551025390625, -0.01183319091796875, -0.017303466796875, 0.0992431640625, 0.054595947265625, -0.018035888671875, 0.034820556640625, -0.01052093505859375, -0.020172119140625, -0.0265045166015625, 0.02288818359375, 0.04644775390625, 0.0205078125, -0.006954193115234375, -0.017578125, -0.03662109375, 0.014984130859375, -0.05303955078125, -0.01232147216796875, 0.00191497802734375, -0.006786346435546875, 0.04180908203125, 0.057098388671875, -0.004184722900390625, 0.06182861328125, -0.0310821533203125, 0.025604248046875, 0.01439666748046875, 0.021942138671875, 0.0301361083984375, 0.01453399658203125, -0.0155029296875, -0.00299835205078125, 0.0059356689453125, -0.00928497314453125, 0.02532958984375, 0.053619384765625, 0.0335693359375, 0.0728759765625, -0.006710052490234375, -0.04180908203125, -0.033721923828125, -0.017578125, 0.0445556640625, 0.05218505859375, -0.0235137939453125, -0.00848388671875, -0.013458251953125, -0.01535797119140625, -0.0017242431640625, -0.0157470703125, -0.005886077880859375, -0.033477783203125, 0.0020275115966796875, -0.007568359375, -0.01432037353515625, -0.012542724609375, -0.0016651153564453125, -0.0251312255859375, -0.0205230712890625, 0.0089569091796875, -0.0379638671875, -0.00693511962890625, -0.01270294189453125, -0.0081329345703125, 0.040435791015625, 0.01788330078125, 0.0548095703125, -0.0298919677734375, -0.049163818359375, 0.0165863037109375, -0.025482177734375, 0.0687255859375, 0.028228759765625, -0.0286102294921875, 0.01294708251953125, -0.0220794677734375, 0.01105499267578125, 0.02459716796875, -0.06591796875, -0.020599365234375, -0.05743408203125, 0.005580902099609375, 0.01351165771484375, -0.0023174285888671875, -0.007747650146484375, -0.0122528076171875, 0.006580352783203125, -0.0038547515869140625, 0.0309906005859375, -0.010101318359375, 0.050445556640625, 0.0178680419921875, 0.023406982421875, 0.010101318359375, 0.049560546875, -0.00649261474609375, -0.0190887451171875, 0.0174713134765625, -0.006328582763671875, -0.00872039794921875, -0.0105438232421875, -0.0416259765625, -0.039337158203125, 0.0421142578125, -0.01006317138671875, 0.00858306884765625, -0.017364501953125, 0.007354736328125, -0.0282745361328125, 0.0038127899169921875, 0.015777587890625, 0.0018281936645507812, 0.006103515625, -0.01885986328125, -0.020721435546875, -0.021453857421875, 0.0224761962890625, -0.037261962890625, 0.00415802001953125, -0.0469970703125, -0.004070281982421875, -0.0078887939453125, 0.054840087890625, 0.07879638671875, 0.0063018798828125, 0.04730224609375, 0.042938232421875, 0.0267181396484375, 0.0239715576171875, 0.01256561279296875, 0.0172882080078125, -0.00875091552734375, 0.06903076171875, 0.00943756103515625, 0.0023479461669921875, 0.044219970703125, -0.02850341796875, -0.00316619873046875, -0.0099334716796875, 0.0338134765625, -0.01605224609375, 0.024871826171875, -0.00887298583984375, 0.01450347900390625, 0.06353759765625, -0.0013713836669921875, -0.017608642578125, -0.08782958984375, 0.0716552734375, -0.016693115234375, -0.005062103271484375, 0.003467559814453125, -0.0242919921875, 0.03106689453125, -0.03643798828125, 0.042724609375, -0.021636962890625, -0.05859375, -0.0252227783203125, 0.045318603515625, -0.0274200439453125, -0.042388916015625, -0.021575927734375, 0.037322998046875, -0.005306243896484375, -0.058990478515625, 0.044708251953125, -0.046539306640625, 0.0225067138671875, 0.0221710205078125, -0.01340484619140625, 0.004589080810546875, 0.05084228515625, -0.0188446044921875, 0.0007314682006835938, 0.046112060546875, -0.06304931640625, -0.06781005859375, -0.023101806640625, -0.0216217041015625, 0.0294189453125, 0.030059814453125, 0.03765869140625, -0.00740814208984375, -0.0278778076171875, 0.0027618408203125, 0.046966552734375, 0.06695556640625, -0.04229736328125, -0.0264129638671875, 0.045684814453125, 0.0027332305908203125, -0.02423095703125, 0.01690673828125, -0.01389312744140625, -0.01483917236328125, 0.00414276123046875, 0.0030460357666015625, -0.02294921875, 0.0102996826171875, 0.00023984909057617188, -0.07049560546875, 0.06561279296875, 0.01029205322265625, 0.024993896484375, -0.01219940185546875, 0.017242431640625, -0.0124969482421875, -0.0126190185546875, -0.0219573974609375, 0.0611572265625, -0.027191162109375, 0.03857421875, -0.0665283203125, -0.0246429443359375, 0.0110931396484375, 0.06427001953125, 0.06298828125, 0.019805908203125, -0.045928955078125, 0.004871368408203125, 0.029998779296875, 0.0046844482421875, -0.0178985595703125, 0.06097412109375, 0.01378631591796875, 0.033843994140625, 0.083984375, -0.035125732421875, 0.035400390625, 0.0003845691680908203, 0.01209259033203125, 0.01509857177734375, 0.004302978515625, 0.002544403076171875, -0.0115203857421875, 0.049591064453125, -0.032501220703125, -0.0053863525390625, 0.0247802734375, -0.046600341796875, 0.005634307861328125, 0.04229736328125, 0.0657958984375, -0.05047607421875, 0.00545501708984375, -0.03515625, 0.072998046875, 0.0292816162109375, -0.00550079345703125, 0.063720703125, 0.0313720703125, 0.0245361328125, 0.0181121826171875, 0.0152587890625, 0.00514984130859375, 0.01131439208984375, 0.04315185546875, 0.027618408203125, 0.0038547515869140625, -0.06829833984375, -0.063232421875, 0.05377197265625, 0.07281494140625, -0.037872314453125, -0.01345062255859375, 0.0186004638671875, 0.0416259765625, 0.0174560546875, 0.0141754150390625, 0.0736083984375, -0.00007790327072143555, 0.0174713134765625, -0.039215087890625, -0.0106964111328125, -0.0295562744140625, 0.035552978515625, -0.0066070556640625, -0.0260162353515625, 0.0018014907836914062, -0.01556396484375, -0.0364990234375, 0.005481719970703125, 0.0101470947265625, 0.00814056396484375, 0.01045989990234375, 0.03363037109375, 0.0293426513671875, 0.0062255859375, 0.04095458984375, -0.0008401870727539062, 0.00997161865234375, -0.055633544921875, 0.007442474365234375, -0.024932861328125, -0.03118896484375, 0.0240020751953125, 0.031280517578125, -0.0302734375, 0.0102996826171875, -0.0164794921875, -0.039093017578125, -0.00433349609375, -0.0352783203125, -0.035919189453125, -0.00946807861328125, -0.033935546875, 0.01209259033203125, 0.024566650390625, 0.0013666152954101562, 0.02008056640625, -0.00550079345703125, 0.05615234375, -0.0181732177734375, 0.0219268798828125, -0.0017528533935546875, 0.001598358154296875, 0.00675201416015625, 0.028106689453125, -0.00896453857421875, 0.0166473388671875, -0.025421142578125, 0.006885528564453125, -0.04071044921875, -0.049102783203125, 0.034210205078125, 0.0264892578125, -0.01593017578125, 0.01629638671875, -0.036865234375, 0.01456451416015625, 0.0139312744140625, -0.039520263671875, -0.001068115234375, 0.044219970703125, 0.0208587646484375, 0.00353240966796875, -0.05810546875, -0.00878143310546875, -0.00829315185546875, -0.01605224609375, 0.016754150390625, 0.032684326171875, 0.02313232421875, -0.00033283233642578125, -0.01140594482421875, 0.0211944580078125, -0.041961669921875, -0.04693603515625, 0.1199951171875, -0.015350341796875, -0.036285400390625, 0.0014209747314453125, -0.0190887451171875, 0.0682373046875, 0.0175933837890625, 0.032684326171875, 0.054107666015625, -0.023773193359375, 0.01248931884765625, -0.0078277587890625, -0.0211029052734375, -0.0340576171875, -0.00350189208984375, -0.02020263671875, -0.024505615234375, 0.0323486328125, -0.00824737548828125, -0.012481689453125, 0.0273895263671875, 0.0382080078125, 0.0142822265625, 0.004444122314453125, 0.030181884765625, -0.004669189453125, 0.01523590087890625, 0.005382537841796875, 0.0157012939453125, -0.00418853759765625, -0.0258026123046875, 0.01131439208984375, -0.0032024383544921875, 0.0148468017578125, -0.0154571533203125, 0.017181396484375, 0.0171356201171875, 0.032928466796875, 0.0672607421875, 0.01904296875, 0.0171966552734375, -0.00742340087890625, -0.0157623291015625, 0.0087127685546875, -0.033203125, -0.02001953125, -0.036865234375, 0.00870513916015625, 0.0233154296875, -0.01120758056640625, -0.0134735107421875, -0.04705810546875, -0.009490966796875, -0.00653839111328125, -0.007228851318359375, -0.01335906982421875, 0.0248565673828125, -0.00362396240234375, -0.004352569580078125, -0.038116455078125, 0.0033817291259765625, 0.00870513916015625, 0.01513671875, -0.034210205078125, -0.00811767578125, -0.042755126953125, 0.0107879638671875, -0.018524169921875, 0.0289459228515625, 0.0430908203125, -0.0291595458984375, -0.0081787109375, 0.0312347412109375, 0.044403076171875, 0.0780029296875, 0.005641937255859375, -0.0003676414489746094, 0.02099609375, 0.02276611328125, -0.0521240234375, -0.08489990234375, 0.02764892578125, -0.057281494140625, -0.015899658203125, -0.0200653076171875, 0.0269775390625, 0.04827880859375, -0.025115966796875, -0.0655517578125, 0.07421875, -0.036407470703125, -0.0265960693359375, -0.0193939208984375, 0.0024547576904296875, 0.0182647705078125, -0.0206756591796875, 0.0015850067138671875, -0.0212860107421875, -0.0172882080078125, 0.0101318359375, 0.009552001953125, 0.0018987655639648438, 0.0189666748046875, 0.01000213623046875, -0.0538330078125, 0.0149383544921875, 0.0011339187622070312, -0.0101318359375, -0.0022125244140625, -0.01366424560546875, 0.038299560546875, 0.042877197265625, -0.006862640380859375, -0.01081085205078125, 0.004840850830078125, -0.01605224609375, -0.0300140380859375, -0.0192413330078125, -0.043731689453125, 0.00975799560546875, 0.067138671875, 0.07672119140625, 0.0139312744140625, -0.05157470703125, 0.044891357421875, 0.017791748046875, -0.00380706787109375, -0.0118865966796875, -0.0045623779296875, -0.037994384765625, -0.036651611328125, 0.00583648681640625, -0.01511383056640625, 0.0098724365234375, -0.037841796875, -0.0244903564453125, -0.00568389892578125, 0.0001239776611328125, -0.0112762451171875, 0.0418701171875, 0.01116943359375, -0.002857208251953125, -0.00434112548828125, 0.00811767578125, -0.0159454345703125, 0.00272369384765625, -0.0041656494140625, -0.0199737548828125, -0.03106689453125, -0.015411376953125, 0.02740478515625, 0.02239990234375, 0.0101318359375, 0.006561279296875, 0.0014104843139648438, 0.00910186767578125, -0.0272216796875, -0.0037364959716796875, -0.0046844482421875, -0.0228118896484375, 0.0152587890625, -0.0018787384033203125, -0.0048065185546875, 0.058258056640625, -0.031585693359375, 0.02764892578125, -0.0276031494140625, 0.041778564453125, -0.01113128662109375, -0.006481170654296875, 0.03045654296875, -0.02557373046875, -0.01012420654296875, 0.003856658935546875, 0.03436279296875, -0.061737060546875, 0.034088134765625, 0.0718994140625, 0.023284912109375, 0.03302001953125 ]
8ddcab6b8baeb03840cf2e8ed224658c46fb8c28
Wordpress Stackexchange Q: What does setup_postdata ($post ) do? The codex defines it as 'Set up global post data. Helps to format custom query results for using Template tags.' I don't really understand this. Here is a code example : global $post; $args = array( 'numberposts' => -1); $posts = get_posts($args); foreach( $posts as $post) : setup_postdata($post); echo $post->ID; endforeach; Please can you explain? A: Template tag functions rely on global variables to access the post being processed and retrieve data from it or related to it. The main variable among these is $post, which holds the post object itself. In your example it's not explicit, but what is happening is that your loop assigns data to $post. If its name wasn't $post, you would need to name it explicitly (global $post; $post = $some_other_post;). However, there are a bunch of other globals and the purpose of setup_postdata() is to fill them with data. If you look at the source, these are: global $id, $authordata, $currentday, $currentmonth, $page, $pages, $multipage, $more, $numpages; Note that in most cases you should be calling wp_reset_postdata() afterwards to return globals to their original state.
Q: What does setup_postdata ($post ) do? The codex defines it as 'Set up global post data. Helps to format custom query results for using Template tags.' I don't really understand this. Here is a code example : global $post; $args = array( 'numberposts' => -1); $posts = get_posts($args); foreach( $posts as $post) : setup_postdata($post); echo $post->ID; endforeach; Please can you explain? A: Template tag functions rely on global variables to access the post being processed and retrieve data from it or related to it. The main variable among these is $post, which holds the post object itself. In your example it's not explicit, but what is happening is that your loop assigns data to $post. If its name wasn't $post, you would need to name it explicitly (global $post; $post = $some_other_post;). However, there are a bunch of other globals and the purpose of setup_postdata() is to fill them with data. If you look at the source, these are: global $id, $authordata, $currentday, $currentmonth, $page, $pages, $multipage, $more, $numpages; Note that in most cases you should be calling wp_reset_postdata() afterwards to return globals to their original state.
wordpress
{ "language": "en", "length": 188, "provenance": "stackexchange_00019.jsonl.gz:432479", "question_score": "19", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/99597" }
[ 0.04718017578125, -0.01263427734375, -0.0267333984375, -0.06414794921875, 0.0163116455078125, -0.0257720947265625, 0.0004513263702392578, 0.0078582763671875, 0.0283355712890625, -0.0026683807373046875, -0.038970947265625, -0.0177154541015625, -0.024688720703125, -0.0272369384765625, -0.0081634521484375, -0.037689208984375, 0.058837890625, -0.042755126953125, 0.016510009765625, -0.0015506744384765625, -0.01021575927734375, 0.0309600830078125, 0.03955078125, 0.01983642578125, 0.011749267578125, 0.0171661376953125, -0.0026988983154296875, -0.01019287109375, -0.0236358642578125, -0.0297393798828125, -0.0037384033203125, 0.035003662109375, 0.034393310546875, 0.0138397216796875, -0.0276947021484375, 0.0204010009765625, 0.02117919921875, -0.005889892578125, 0.0080108642578125, 0.0178375244140625, -0.0007762908935546875, 0.006320953369140625, 0.038543701171875, -0.01465606689453125, 0.0023326873779296875, -0.0197906494140625, 0.00455474853515625, -0.042144775390625, 0.00717926025390625, 0.0235137939453125, -0.00934600830078125, 0.0023212432861328125, -0.005573272705078125, 0.0305938720703125, -0.017333984375, -0.0173797607421875, 0.036346435546875, -0.051666259765625, 0.03826904296875, 0.035430908203125, -0.03961181640625, -0.0210113525390625, 0.0186309814453125, -0.05584716796875, 0.0274505615234375, -0.0220489501953125, 0.0122528076171875, 0.03900146484375, -0.05389404296875, 0.00954437255859375, 0.058197021484375, -0.03900146484375, -0.025054931640625, -0.0108184814453125, 0.014007568359375, -0.026947021484375, -0.006317138671875, -0.059783935546875, -0.0119171142578125, 0.056182861328125, 0.00571441650390625, -0.0243988037109375, -0.005512237548828125, -0.041290283203125, 0.0149688720703125, -0.02099609375, -0.0029468536376953125, 0.00905609130859375, -0.0100860595703125, -0.052490234375, -0.01605224609375, 0.004993438720703125, 0.002521514892578125, -0.03192138671875, -0.054931640625, -0.03143310546875, 0.0184173583984375, 0.032958984375, -0.0274658203125, -0.0193634033203125, 0.0026111602783203125, -0.01934814453125, -0.0017480850219726562, -0.01467132568359375, 0.01195526123046875, 0.024810791015625, -0.01534271240234375, -0.029632568359375, 0.051727294921875, 0.03936767578125, -0.0027923583984375, 0.027435302734375, -0.01348114013671875, -0.0149993896484375, -0.052337646484375, 0.011474609375, -0.039154052734375, -0.0251312255859375, 0.0011358261108398438, -0.0083770751953125, 0.01263427734375, 0.042816162109375, -0.053375244140625, 0.0216064453125, 0.0289764404296875, 0.04443359375, 0.0220184326171875, -0.02362060546875, -0.06610107421875, 0.049407958984375, -0.0165252685546875, 0.0256500244140625, 0.09954833984375, -0.00937652587890625, -0.05023193359375, -0.020660400390625, 0.0261993408203125, -0.04248046875, -0.02532958984375, 0.037078857421875, -0.0076904296875, -0.06707763671875, -0.0215606689453125, 0.00028967857360839844, 0.016510009765625, 0.017822265625, 0.02899169921875, 0.0129241943359375, -0.0017004013061523438, -0.023590087890625, 0.0014963150024414062, 0.0295562744140625, 0.0013065338134765625, 0.005794525146484375, 0.0024623870849609375, 0.002132415771484375, -0.005615234375, -0.003482818603515625, -0.0032482147216796875, 0.0000851750373840332, -0.0084381103515625, -0.0293426513671875, 0.0107421875, -0.0277862548828125, -0.047607421875, 0.051361083984375, -0.036773681640625, -0.0076751708984375, 0.022216796875, 0.035858154296875, 0.012786865234375, 0.01094818115234375, 0.016845703125, 0.0193328857421875, 0.0037326812744140625, -0.005077362060546875, -0.00933837890625, -0.037017822265625, 0.0382080078125, -0.0012884140014648438, -0.0179901123046875, -0.011627197265625, 0.004486083984375, 0.00809478759765625, -0.06634521484375, 0.0297698974609375, -0.0007472038269042969, 0.04266357421875, 0.050750732421875, 0.0091400146484375, 0.043548583984375, -0.0214080810546875, -0.057769775390625, 0.042694091796875, 0.033966064453125, 0.016754150390625, -0.06512451171875, -0.00768280029296875, 0.0030956268310546875, -0.05633544921875, -0.01166534423828125, 0.015960693359375, -0.029632568359375, -0.00287628173828125, -0.09967041015625, 0.01418304443359375, -0.0313720703125, 0.046478271484375, -0.01371002197265625, 0.0171356201171875, 0.0506591796875, 0.0168609619140625, -0.039947509765625, 0.013519287109375, -0.0267181396484375, 0.00922393798828125, -0.0286102294921875, 0.033782958984375, -0.0266876220703125, 0.04425048828125, -0.048126220703125, -0.049102783203125, -0.034942626953125, -0.01197052001953125, 0.0576171875, -0.01288604736328125, -0.0234222412109375, -0.029083251953125, 0.005611419677734375, -0.00677490234375, -0.060333251953125, 0.0572509765625, -0.0323486328125, 0.007755279541015625, -0.00962066650390625, -0.0165252685546875, 0.0002739429473876953, -0.0692138671875, 0.04217529296875, 0.043670654296875, 0.0390625, 0.020233154296875, -0.0283355712890625, -0.0247650146484375, 0.033905029296875, -0.029541015625, -0.0006084442138671875, -0.029266357421875, 0.044342041015625, 0.09783935546875, 0.0259246826171875, -0.022491455078125, -0.009674072265625, -0.04705810546875, 0.0152130126953125, 0.003108978271484375, -0.032745361328125, 0.02447509765625, -0.0154571533203125, 0.012664794921875, -0.0197906494140625, -0.00013208389282226562, 0.0239410400390625, -0.0369873046875, 0.053436279296875, 0.01100921630859375, 0.032989501953125, 0.01448822021484375, -0.03350830078125, 0.0125732421875, 0.01161956787109375, -0.00875091552734375, 0.013397216796875, -0.007415771484375, -0.041656494140625, -0.011077880859375, -0.03515625, 0.0077972412109375, 0.03826904296875, -0.0233154296875, -0.0033397674560546875, 0.047698974609375, -0.0262603759765625, -0.00788116455078125, -0.02459716796875, -0.044769287109375, -0.01242828369140625, 0.0163421630859375, 0.01480865478515625, -0.01552581787109375, 0.0133514404296875, 0.0109405517578125, -0.05072021484375, 0.0614013671875, 0.007274627685546875, -0.0266265869140625, 0.012603759765625, -0.0251312255859375, 0.00920867919921875, -0.0291748046875, 0.04376220703125, 0.048065185546875, 0.0187835693359375, -0.01702880859375, -0.020721435546875, 0.0266571044921875, -0.019500732421875, 0.01303863525390625, -0.0014524459838867188, -0.05572509765625, 0.005359649658203125, 0.0245513916015625, 0.0222625732421875, 0.080810546875, -0.039154052734375, -0.0755615234375, -0.020965576171875, 0.036163330078125, -0.11279296875, -0.076904296875, 0.03985595703125, -0.04998779296875, 0.01139068603515625, -0.0259857177734375, -0.0283203125, -0.03619384765625, -0.0033111572265625, 0.004077911376953125, -0.007030487060546875, -0.01432037353515625, -0.028900146484375, -0.0595703125, -0.06634521484375, -0.039337158203125, 0.001739501953125, 0.0077667236328125, 0.00458526611328125, 0.0645751953125, 0.016448974609375, -0.0068359375, 0.0231475830078125, -0.01163482666015625, -0.0085601806640625, -0.0107879638671875, -0.006084442138671875, -0.00873565673828125, 0.004550933837890625, 0.00701141357421875, -0.02459716796875, 0.01209259033203125, -0.00762176513671875, -0.03131103515625, 0.0193939208984375, 0.0179901123046875, 0.02410888671875, -0.01169586181640625, -0.01995849609375, 0.01471710205078125, -0.018646240234375, -0.043365478515625, -0.027191162109375, 0.008880615234375, -0.051177978515625, -0.053558349609375, 0.028076171875, -0.0223846435546875, -0.0272979736328125, -0.01221466064453125, -0.00487518310546875, -0.01360321044921875, 0.048492431640625, -0.0308685302734375, 0.0299835205078125, 0.0014514923095703125, -0.0023040771484375, -0.031982421875, -0.014617919921875, -0.045623779296875, -0.01079559326171875, -0.0217742919921875, -0.0288238525390625, -0.0163116455078125, -0.046142578125, -0.003261566162109375, -0.06719970703125, 0.042755126953125, 0.026214599609375, 0.00423431396484375, -0.005558013916015625, -0.036041259765625, -0.002529144287109375, 0.06396484375, -0.053924560546875, -0.0123443603515625, -0.016815185546875, -0.01142120361328125, -0.0325927734375, -0.006771087646484375, -0.05902099609375, 0.01038360595703125, -0.050537109375, 0.0244293212890625, 0.01000213623046875, -0.00826263427734375, -0.01290130615234375, 0.04986572265625, -0.0282135009765625, -0.01654052734375, 0.0132293701171875, -0.0148773193359375, 0.0275421142578125, -0.029022216796875, 0.021575927734375, -0.0161895751953125, 0.01336669921875, -0.046966552734375, -0.0234222412109375, -0.0174102783203125, 0.034881591796875, 0.029541015625, 0.01352691650390625, -0.06378173828125, -0.01531219482421875, 0.01641845703125, 0.040679931640625, 0.01552581787109375, -0.025360107421875, -0.0311126708984375, 0.014404296875, -0.0024089813232421875, -0.0072174072265625, 0.00543212890625, -0.006649017333984375, 0.00839996337890625, -0.005321502685546875, 0.005260467529296875, -0.0298309326171875, -0.027801513671875, 0.0175323486328125, -0.026519775390625, -0.06781005859375, 0.0006375312805175781, 0.033111572265625, 0.01140594482421875, -0.01279449462890625, 0.017181396484375, 0.0176849365234375, -0.054351806640625, 0.0194549560546875, 0.051422119140625, -0.035675048828125, 0.0149383544921875, 0.00611114501953125, 0.021453857421875, -0.0300750732421875, -0.05413818359375, 0.00437164306640625, 0.045318603515625, -0.01241302490234375, 0.0080108642578125, 0.01373291015625, -0.041412353515625, 0.05108642578125, 0.016510009765625, -0.00815582275390625, -0.00925445556640625, 0.0251312255859375, 0.0192413330078125, -0.01361846923828125, 0.00975799560546875, 0.0023746490478515625, 0.0189056396484375, 0.00933074951171875, -0.0147552490234375, 0.0026683807373046875, 0.0207366943359375, 0.022735595703125, -0.0076751708984375, -0.00925445556640625, -0.03753662109375, -0.020294189453125, 0.01340484619140625, -0.0257110595703125, -0.0084381103515625, 0.00891876220703125, 0.00363922119140625, -0.0194091796875, -0.01751708984375, 0.00821685791015625, 0.049407958984375, 0.0265045166015625, 0.03155517578125, 0.0290069580078125, 0.055908203125, 0.01192474365234375, 0.0034542083740234375, -0.0145721435546875, 0.024078369140625, 0.0033359527587890625, -0.040130615234375, 0.0129852294921875, -0.0045928955078125, 0.0204315185546875, -0.005641937255859375, 0.016143798828125, 0.06982421875, 0.0147247314453125, 0.00424957275390625, -0.01093292236328125, -0.002468109130859375, -0.0160675048828125, -0.03240966796875, 0.004901885986328125, 0.0236663818359375, -0.0197906494140625, -0.0081329345703125, 0.06292724609375, 0.002124786376953125, 0.012786865234375, -0.02337646484375, 0.032318115234375, 0.01247406005859375, 0.0308990478515625, 0.002429962158203125, 0.0236358642578125, -0.0078277587890625, 0.02069091796875, 0.01284027099609375, -0.0418701171875, 0.007110595703125, 0.00963592529296875, 0.053131103515625, 0.0003209114074707031, -0.0322265625, 0.02734375, -0.027618408203125, -0.004505157470703125, 0.0760498046875, 0.025970458984375, -0.049652099609375, -0.0304718017578125, 0.014801025390625, 0.06121826171875, -0.043487548828125, 0.0126495361328125, 0.01108551025390625, -0.0286712646484375, -0.007350921630859375, -0.00789642333984375, 0.00815582275390625, -0.04205322265625, -0.041900634765625, -0.0252838134765625, -0.01187896728515625, -0.01134490966796875, -0.0234222412109375, -0.04443359375, 0.011749267578125, -0.012542724609375, 0.00701141357421875, -0.045867919921875, 0.0298614501953125, -0.0299530029296875, 0.01544189453125, -0.072265625, 0.0267486572265625, 0.0323486328125, 0.057098388671875, -0.089111328125, -0.0058441162109375, -0.028411865234375, -0.01019287109375, 0.0016498565673828125, -0.02349853515625, -0.06591796875, -0.0004062652587890625, 0.03387451171875, 0.03277587890625, 0.00856781005859375, -0.02874755859375, -0.001979827880859375, -0.0008325576782226562, 0.009246826171875, 0.08538818359375, 0.0116424560546875, 0.025909423828125, -0.04193115234375, 0.05419921875, -0.0016565322875976562, -0.007045745849609375, -0.016510009765625, -0.0338134765625, 0.005565643310546875, -0.0616455078125, -0.01395416259765625, -0.01273345947265625, -0.01422882080078125, -0.0019664764404296875, 0.0018167495727539062, 0.0031795501708984375, -0.007793426513671875, 0.0001264810562133789, 0.01265716552734375, -0.0076141357421875, 0.01097869873046875, -0.0036220550537109375, -0.02935791015625, 0.052001953125, -0.01413726806640625, -0.007762908935546875, -0.00675201416015625, 0.002162933349609375, 0.0209503173828125, -0.0183868408203125, 0.01392364501953125, -0.018218994140625, -0.026947021484375, 0.0215911865234375, 0.09332275390625, 0.025787353515625, 0.07025146484375, 0.025909423828125, 0.02947998046875, 0.052764892578125, -0.00372314453125, -0.0075836181640625, -0.020599365234375, 0.053070068359375, -0.006877899169921875, -0.03582763671875, 0.032989501953125, -0.047821044921875, -0.006381988525390625, 0.00811767578125, 0.03955078125, 0.003749847412109375, -0.016265869140625, 0.0022869110107421875, -0.030731201171875, 0.0012378692626953125, 0.0070648193359375, 0.0012750625610351562, -0.00321197509765625, 0.0250701904296875, 0.006191253662109375, -0.0185089111328125, 0.023284912109375, 0.01065826416015625, -0.002593994140625, -0.01184844970703125, 0.0631103515625, 0.021820068359375, -0.01027679443359375, 0.00870513916015625, 0.0087432861328125, -0.0014410018920898438, -0.02252197265625, 0.0208282470703125, -0.0302581787109375, -0.0018415451049804688, -0.06536865234375, -0.014251708984375, -0.01055145263671875, -0.01447296142578125, -0.006099700927734375, -0.0037212371826171875, 0.001682281494140625, 0.030364990234375, -0.0266265869140625, 0.0177001953125, -0.004119873046875, 0.0095977783203125, -0.08685302734375, -0.007373809814453125, 0.006565093994140625, 0.052032470703125, 0.003520965576171875, 0.047637939453125, -0.0193328857421875, -0.00848388671875, 0.0023517608642578125, 0.019195556640625, 0.0167999267578125, -0.00955963134765625, -0.0227813720703125, 0.00958251953125, 0.0239105224609375, 0.025970458984375, -0.023284912109375, 0.024017333984375, -0.04193115234375, -0.016387939453125, 0.01358795166015625, -0.0179443359375, -0.03936767578125, -0.041015625, -0.072021484375, 0.12158203125, 0.0174102783203125, 0.040435791015625, 0.0021762847900390625, 0.039886474609375, -0.0312042236328125, 0.020294189453125, -0.05206298828125, 0.037689208984375, 0.0113067626953125, 0.05230712890625, -0.0845947265625, -0.01100921630859375, 0.00021696090698242188, 0.04046630859375, 0.034271240234375, 0.0043182373046875, -0.010498046875, -0.01983642578125, -0.01540374755859375, 0.0045166015625, -0.0263214111328125, 0.032958984375, 0.01149749755859375, 0.06842041015625, 0.0263519287109375, -0.0496826171875, 0.04205322265625, -0.0628662109375, -0.02105712890625, 0.041168212890625, 0.0194549560546875, -0.01534271240234375, -0.004390716552734375, 0.045074462890625, -0.0484619140625, 0.006946563720703125, 0.037506103515625, 0.01232147216796875, 0.023193359375, 0.0221405029296875, 0.025115966796875, -0.042022705078125, -0.033355712890625, -0.01064300537109375, 0.037933349609375, 0.0018014907836914062, 0.041259765625, 0.05810546875, 0.035736083984375, 0.033203125, 0.0165557861328125, 0.0374755859375, 0.0003037452697753906, -0.0027446746826171875, 0.06317138671875, 0.027557373046875, 0.0167999267578125, -0.037261962890625, 0.0253448486328125, 0.01383209228515625, 0.056854248046875, -0.06121826171875, -0.0321044921875, 0.018035888671875, 0.005157470703125, -0.0142059326171875, -0.032196044921875, -0.0267791748046875, -0.00667572021484375, 0.042633056640625, -0.032684326171875, -0.0090179443359375, 0.0108795166015625, 0.0290679931640625, 0.001468658447265625, -0.0172576904296875, -0.035980224609375, -0.0249786376953125, -0.03253173828125, -0.0178680419921875, 0.0287628173828125, 0.082763671875, 0.03466796875, 0.06097412109375, -0.036041259765625, -0.0419921875, 0.0031185150146484375, -0.002166748046875, 0.008392333984375, 0.005298614501953125, 0.007564544677734375, -0.01068878173828125, -0.019805908203125, 0.027130126953125, 0.033111572265625, -0.022735595703125, 0.043701171875, 0.0106201171875, -0.0589599609375, -0.00661468505859375, 0.002849578857421875, -0.01364898681640625, 0.0234222412109375, 0.01113128662109375, -0.0172576904296875, -0.04302978515625, -0.019012451171875, -0.029144287109375, 0.07244873046875, -0.038848876953125, -0.022857666015625, 0.0491943359375, -0.004638671875, -0.031585693359375, 0.026275634765625, 0.00010609626770019531, 0.114501953125, 0.00768280029296875, -0.0255584716796875, 0.0149993896484375, -0.019683837890625, -0.08392333984375, 0.0296478271484375, 0.048431396484375, -0.01641845703125, 0.010101318359375, -0.0193939208984375, -0.025360107421875, 0.040924072265625, 0.0194244384765625, -0.0193634033203125, 0.0638427734375, 0.03887939453125, 0.0025691986083984375, 0.01000213623046875, -0.00353240966796875, 0.0146484375, 0.036895751953125, 0.01543426513671875, 0.060150146484375, -0.03717041015625, 0.0236968994140625, -0.0271453857421875, 0.040252685546875, -0.041900634765625, -0.01593017578125, 0.0169830322265625, 0.03363037109375, 0.03668212890625, -0.00827789306640625, 0.044708251953125, 0.028900146484375, 0.046173095703125, -0.044403076171875, -0.01324462890625, -0.0215606689453125, 0.0220489501953125, -0.0232391357421875, 0.055938720703125, 0.01181793212890625, -0.008453369140625, -0.0013170242309570312, -0.0124359130859375, 0.0499267578125, 0.0748291015625, 0.022979736328125, 0.0484619140625, 0.005931854248046875, 0.0018606185913085938, 0.02960205078125, -0.031768798828125, 0.019439697265625, 0.0105133056640625, 0.00724029541015625, -0.025146484375, 0.0187225341796875, -0.02490234375, 0.0025463104248046875, 0.0149688720703125, 0.0345458984375, 0.005680084228515625, -0.0341796875, 0.0108642578125, 0.0184326171875, 0.058349609375, 0.0106201171875, 0.005924224853515625, -0.01027679443359375, 0.0023441314697265625, -0.01178741455078125, 0.0019207000732421875, -0.012664794921875, 0.00527191162109375, -0.0238189697265625, 0.00046181678771972656, -0.005626678466796875, -0.057891845703125, -0.041839599609375, -0.0242156982421875, 0.0297088623046875, -0.0005998611450195312, 0.00013458728790283203, -0.025177001953125, -0.0012874603271484375, 0.01145172119140625, 0.0158843994140625, -0.0335693359375, -0.0036296844482421875, -0.007419586181640625, -0.0224609375, -0.00946044921875, -0.06402587890625, -0.0009551048278808594, -0.00867462158203125, 0.01947021484375, 0.03515625, -0.03558349609375, -0.044647216796875, 0.03350830078125, 0.03411865234375, 0.05853271484375, 0.0180206298828125, -0.00433349609375, 0.04254150390625, 0.03265380859375, -0.03961181640625, -0.1080322265625, -0.01194000244140625, -0.043609619140625, 0.053192138671875, -0.02606201171875, 0.023284912109375, 0.049407958984375, -0.019927978515625, -0.0531005859375, 0.036163330078125, -0.02001953125, -0.0270233154296875, -0.01922607421875, 0.00567626953125, 0.0019359588623046875, 0.04315185546875, 0.0222625732421875, -0.038970947265625, -0.01702880859375, 0.0058135986328125, -0.00693511962890625, 0.0226287841796875, 0.07012939453125, 0.00217437744140625, -0.0338134765625, -0.04052734375, -0.07373046875, -0.0204925537109375, 0.027801513671875, -0.0330810546875, 0.044342041015625, 0.026031494140625, -0.048675537109375, -0.00782012939453125, 0.01288604736328125, 0.013702392578125, -0.0218963623046875, 0.0090484619140625, 0.0226898193359375, 0.046417236328125, -0.00004559755325317383, 0.055084228515625, -0.00959014892578125, -0.0576171875, -0.002056121826171875, 0.031402587890625, -0.056610107421875, -0.005016326904296875, 0.03326416015625, -0.046539306640625, -0.004405975341796875, -0.0305633544921875, 0.0088653564453125, 0.0126495361328125, -0.0482177734375, -0.018035888671875, -0.0101318359375, -0.01230621337890625, -0.00106048583984375, 0.01007080078125, -0.047271728515625, -0.002117156982421875, -0.003116607666015625, -0.0156402587890625, -0.005702972412109375, 0.017333984375, -0.0235443115234375, 0.044921875, -0.0020160675048828125, 0.0306549072265625, -0.06060791015625, -0.0057525634765625, 0.00214385986328125, 0.011566162109375, -0.035369873046875, 0.008819580078125, 0.00766754150390625, 0.0023899078369140625, -0.00342559814453125, -0.016632080078125, 0.0072784423828125, 0.0601806640625, -0.0134429931640625, 0.05535888671875, -0.0031032562255859375, 0.0214691162109375, -0.00986480712890625, 0.047698974609375, -0.026031494140625, -0.01386260986328125, 0.0025615692138671875, -0.042266845703125, -0.0012750625610351562, -0.0221099853515625, 0.021575927734375, -0.03314208984375, -0.01215362548828125, -0.0299224853515625, 0.0206298828125, 0.0057830810546875 ]
2c7ae96020615c4f10166db1792a2be9e4354eb7
Wordpress Stackexchange Q: Registering AJAX callback function that is part of a class without instantiating the class in function.php I'm not even sure if this is possible. But nevertheless I thought of asking. I'm in habit of wrapping/grouping AJAX calls for a particular need within a class. See below. class my_class { function __construct() { $this->hooks(); } function hooks() { add_action('wp_ajax_my_action', array($this, 'my_action_callback')); } function my_action_callback() { // do something } } Now in order for the AJAX callback to work, I must add the following to functions.php (without wrapping it inside any function) to instantiate the class and make the callback work. $my_class = new my_class; This adds $my_class to the global namespace. Something that I would like to avoid. Any idea on how I can register the AJAX callback function without instantiating the class in functions.php? A: If you are using class which needs an instance of, you have to create that instance somewhere. Currently WP has no designated convention for something like that. Common practice is to use static methods, so your hook becomes add_action('wp_ajax_my_action', array(__CLASS__, 'my_action_callback'));.
Q: Registering AJAX callback function that is part of a class without instantiating the class in function.php I'm not even sure if this is possible. But nevertheless I thought of asking. I'm in habit of wrapping/grouping AJAX calls for a particular need within a class. See below. class my_class { function __construct() { $this->hooks(); } function hooks() { add_action('wp_ajax_my_action', array($this, 'my_action_callback')); } function my_action_callback() { // do something } } Now in order for the AJAX callback to work, I must add the following to functions.php (without wrapping it inside any function) to instantiate the class and make the callback work. $my_class = new my_class; This adds $my_class to the global namespace. Something that I would like to avoid. Any idea on how I can register the AJAX callback function without instantiating the class in functions.php? A: If you are using class which needs an instance of, you have to create that instance somewhere. Currently WP has no designated convention for something like that. Common practice is to use static methods, so your hook becomes add_action('wp_ajax_my_action', array(__CLASS__, 'my_action_callback'));. A: Here is an example of a class that I use to automatically create ajax callbacks from methods in the class. It acts almost like a router. class AjaxEndpoint { //Loop through all functions and add them as ajax actions public function registerActions() { foreach ( get_class_methods( $this ) as $method_name ) { if ( $method_name !== 'registerActions' ) { add_action( "wp_ajax_".$method_name, array( $this, $method_name ) ); //add_action( "wp_ajax_nopriv_".$method_name, array( $this, $method_name ) ); } } } }
wordpress
{ "language": "en", "length": 256, "provenance": "stackexchange_00019.jsonl.gz:432555", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/99850" }
[ 0.08282470703125, 0.0194091796875, -0.0284881591796875, -0.05755615234375, 0.03948974609375, -0.043060302734375, 0.032867431640625, -0.00968170166015625, 0.004718780517578125, 0.00757598876953125, -0.04730224609375, 0.030426025390625, -0.04638671875, 0.0028095245361328125, -0.006435394287109375, -0.031280517578125, 0.057159423828125, -0.01126861572265625, 0.04913330078125, 0.0133056640625, 0.0156707763671875, 0.03594970703125, 0.053314208984375, 0.07427978515625, 0.0184478759765625, -0.00734710693359375, 0.057281494140625, 0.00957489013671875, 0.0175628662109375, 0.01214599609375, 0.018035888671875, -0.048736572265625, 0.006378173828125, 0.060455322265625, -0.04815673828125, -0.01381683349609375, 0.01216888427734375, 0.0222320556640625, 0.01396942138671875, 0.022674560546875, 0.035736083984375, -0.01181793212890625, 0.020355224609375, 0.004634857177734375, -0.0172119140625, -0.036865234375, 0.0711669921875, -0.0016469955444335938, -0.007671356201171875, 0.0005731582641601562, 0.04034423828125, 0.0086517333984375, 0.042938232421875, -0.0255584716796875, -0.01036834716796875, 0.0096588134765625, -0.046783447265625, -0.0032596588134765625, 0.031494140625, 0.052490234375, -0.0030193328857421875, -0.01172637939453125, 0.005889892578125, -0.05523681640625, -0.0027637481689453125, 0.01045989990234375, -0.018157958984375, 0.0103759765625, -0.045562744140625, 0.0155181884765625, 0.042510986328125, -0.042816162109375, -0.0266265869140625, 0.0057525634765625, -0.002292633056640625, -0.02008056640625, 0.023406982421875, -0.02447509765625, -0.006679534912109375, 0.053131103515625, -0.01137542724609375, -0.0294647216796875, -0.007049560546875, 0.007732391357421875, -0.042388916015625, 0.00061798095703125, -0.00948333740234375, 0.007549285888671875, -0.042755126953125, -0.05780029296875, -0.04443359375, -0.07611083984375, -0.01064300537109375, -0.006221771240234375, -0.0184478759765625, -0.0201873779296875, 0.01293182373046875, -0.001941680908203125, 0.0114593505859375, 0.0128936767578125, 0.052215576171875, -0.066650390625, 0.06298828125, -0.03338623046875, 0.00357818603515625, 0.060882568359375, -0.001293182373046875, -0.01082611083984375, 0.00083160400390625, 0.00859832763671875, 0.00019276142120361328, -0.041412353515625, 0.0496826171875, 0.011383056640625, -0.00982666015625, -0.04736328125, -0.0173492431640625, 0.01558685302734375, -0.0015726089477539062, -0.0284271240234375, 0.02154541015625, -0.0023136138916015625, 0.04229736328125, 0.0310211181640625, -0.01458740234375, 0.005001068115234375, -0.02996826171875, -0.038177490234375, 0.0280303955078125, -0.0198516845703125, -0.011016845703125, 0.039886474609375, 0.056396484375, 0.00710296630859375, -0.02239990234375, 0.00795745849609375, 0.04168701171875, 0.00586700439453125, 0.0012445449829101562, 0.02203369140625, 0.00489044189453125, -0.061798095703125, -0.038604736328125, 0.0265655517578125, 0.021759033203125, -0.01389312744140625, 0.00809478759765625, 0.01151275634765625, 0.0256500244140625, -0.0079345703125, 0.03326416015625, -0.035736083984375, 0.0137786865234375, 0.044464111328125, 0.0156097412109375, 0.0307159423828125, 0.042266845703125, -0.01206207275390625, -0.01203155517578125, -0.009796142578125, 0.0166015625, -0.01554107666015625, -0.01355743408203125, -0.00806427001953125, -0.0274505615234375, 0.0119476318359375, 0.0030536651611328125, -0.00016450881958007812, 0.0224456787109375, 0.0234375, 0.0211029052734375, 0.03912353515625, 0.0179290771484375, 0.00336456298828125, 0.00173187255859375, -0.03387451171875, 0.0189971923828125, 0.021270751953125, 0.034332275390625, -0.032928466796875, -0.060882568359375, -0.047637939453125, 0.055877685546875, -0.0528564453125, -0.044097900390625, 0.04620361328125, 0.0310516357421875, 0.051666259765625, -0.0238800048828125, 0.01311492919921875, 0.0142364501953125, 0.0682373046875, 0.00812530517578125, -0.0215606689453125, -0.0201568603515625, -0.025787353515625, 0.006923675537109375, 0.006011962890625, -0.0150146484375, 0.0257110595703125, 0.034759521484375, 0.0277862548828125, -0.0166473388671875, -0.0092315673828125, -0.06915283203125, 0.01294708251953125, -0.00933074951171875, 0.041290283203125, 0.017791748046875, 0.0131683349609375, 0.003070831298828125, 0.0112762451171875, -0.006725311279296875, -0.07232666015625, -0.0498046875, 0.0008015632629394531, -0.04486083984375, 0.0302581787109375, -0.017913818359375, 0.003673553466796875, -0.0079193115234375, -0.0294952392578125, -0.012939453125, -0.00824737548828125, 0.01611328125, -0.0004799365997314453, -0.03533935546875, -0.0231781005859375, -0.0277252197265625, -0.009002685546875, -0.029632568359375, 0.07916259765625, 0.006603240966796875, 0.036590576171875, -0.0288238525390625, -0.0345458984375, -0.03265380859375, -0.058380126953125, 0.0154571533203125, 0.05389404296875, 0.0294189453125, -0.0036163330078125, 0.0109100341796875, 0.01641845703125, -0.005680084228515625, -0.0254058837890625, 0.031829833984375, -0.0225372314453125, -0.0301666259765625, 0.01113128662109375, 0.0157318115234375, -0.0014600753784179688, 0.027984619140625, -0.01425933837890625, -0.017852783203125, 0.046112060546875, -0.0108795166015625, -0.0350341796875, -0.017669677734375, 0.01360321044921875, 0.006893157958984375, -0.06494140625, -0.057708740234375, -0.015838623046875, 0.002452850341796875, -0.015716552734375, 0.034454345703125, 0.0313720703125, 0.0281219482421875, -0.04107666015625, 0.006160736083984375, 0.004486083984375, 0.001445770263671875, 0.040740966796875, 0.007404327392578125, 0.0160369873046875, -0.019012451171875, -0.0221710205078125, -0.0200347900390625, 0.0310211181640625, -0.0206451416015625, 0.030242919921875, -0.001201629638671875, -0.0233612060546875, -0.01019287109375, -0.02117919921875, 0.00974273681640625, -0.0338134765625, 0.023834228515625, 0.0015811920166015625, 0.037322998046875, 0.0192718505859375, -0.01226806640625, 0.02716064453125, 0.0228729248046875, -0.0209197998046875, 0.00713348388671875, 0.0318603515625, -0.0015869140625, -0.004241943359375, -0.01113128662109375, 0.02008056640625, -0.00588226318359375, -0.008148193359375, 0.004184722900390625, -0.04815673828125, 0.0078277587890625, 0.00251007080078125, -0.002628326416015625, 0.0003771781921386719, -0.052093505859375, 0.03448486328125, 0.024322509765625, 0.0869140625, -0.01593017578125, -0.06488037109375, 0.01274871826171875, 0.037811279296875, -0.0289154052734375, -0.05340576171875, 0.0092620849609375, -0.05224609375, 0.03167724609375, -0.0023899078369140625, -0.0243682861328125, -0.0382080078125, 0.0328369140625, 0.0172271728515625, -0.05706787109375, -0.003795623779296875, 0.0089111328125, -0.03753662109375, -0.037872314453125, 0.01214599609375, 0.0213623046875, 0.01322174072265625, 0.01268768310546875, 0.0175018310546875, 0.01045989990234375, -0.004917144775390625, 0.021453857421875, 0.0278472900390625, -0.0243682861328125, -0.0225982666015625, 0.0208282470703125, -0.026031494140625, -0.01305389404296875, -0.001918792724609375, 0.01029205322265625, 0.0228729248046875, -0.0095367431640625, -0.0028018951416015625, -0.00212860107421875, -0.0299224853515625, 0.05072021484375, 0.101806640625, -0.036590576171875, 0.0149993896484375, 0.10662841796875, -0.034820556640625, -0.001697540283203125, 0.0338134765625, -0.01197052001953125, -0.053131103515625, -0.0098419189453125, -0.033905029296875, 0.0058746337890625, -0.0181884765625, -0.012115478515625, 0.0170135498046875, 0.01413726806640625, 0.0039043426513671875, 0.03802490234375, -0.027313232421875, -0.0246734619140625, -0.0088348388671875, 0.01320648193359375, -0.01276397705078125, -0.00775146484375, -0.00592041015625, 0.00888824462890625, -0.027099609375, 0.032196044921875, -0.046844482421875, -0.028045654296875, 0.0294036865234375, -0.0231170654296875, -0.01003265380859375, -0.0150909423828125, -0.0143585205078125, 0.0217132568359375, 0.070068359375, -0.03411865234375, -0.00925445556640625, 0.0025177001953125, 0.03094482421875, -0.045654296875, -0.10052490234375, -0.033843994140625, -0.01507568359375, 0.003387451171875, -0.0031108856201171875, -0.007236480712890625, -0.004924774169921875, -0.02667236328125, 0.0205078125, -0.0254669189453125, -0.0233306884765625, 0.01454925537109375, -0.038055419921875, 0.0067138671875, 0.014251708984375, 0.00572967529296875, -0.038604736328125, 0.007465362548828125, -0.029083251953125, -0.091064453125, 0.00027108192443847656, -0.11224365234375, 0.08233642578125, 0.0528564453125, -0.01200103759765625, 0.005634307861328125, 0.04901123046875, 0.01873779296875, 0.03271484375, 0.02874755859375, -0.0016574859619140625, 0.0290679931640625, 0.0173187255859375, 0.03753662109375, -0.01557159423828125, 0.031494140625, 0.0187225341796875, -0.034881591796875, 0.030181884765625, -0.05010986328125, -0.01947021484375, 0.0028076171875, -0.048675537109375, -0.01477813720703125, -0.01861572265625, -0.0144195556640625, 0.031219482421875, -0.0007638931274414062, 0.00860595703125, -0.0287628173828125, -0.049285888671875, -0.0233612060546875, -0.038543701171875, -0.022918701171875, 0.04510498046875, 0.038238525390625, 0.03375244140625, 0.015960693359375, -0.0343017578125, 0.0014028549194335938, 0.01416015625, -0.0157928466796875, 0.0305633544921875, -0.03948974609375, -0.01544952392578125, 0.052825927734375, -0.036376953125, 0.03314208984375, -0.01052093505859375, 0.04742431640625, 0.01142120361328125, 0.01142120361328125, -0.0004906654357910156, 0.01000213623046875, -0.04443359375, 0.005855560302734375, 0.005096435546875, -0.040374755859375, 0.0697021484375, 0.036041259765625, -0.08154296875, 0.09173583984375, 0.0140228271484375, 0.017791748046875, 0.0008516311645507812, -0.05322265625, 0.048736572265625, 0.0290679931640625, -0.002658843994140625, -0.0201416015625, -0.012115478515625, 0.00818634033203125, 0.036346435546875, 0.028839111328125, -0.003559112548828125, 0.04736328125, 0.0301513671875, 0.0013799667358398438, 0.0165252685546875, 0.01071929931640625, 0.006389617919921875, -0.003154754638671875, -0.0391845703125, -0.052825927734375, 0.00201416015625, 0.00024199485778808594, -0.02734375, -0.005496978759765625, 0.046966552734375, 0.029541015625, -0.005435943603515625, -0.017303466796875, -0.002838134765625, 0.0004525184631347656, -0.0321044921875, 0.0794677734375, 0.02850341796875, -0.01065826416015625, -0.034515380859375, 0.04949951171875, 0.044219970703125, -0.0173187255859375, -0.01421356201171875, 0.062225341796875, -0.0245513916015625, 0.0533447265625, 0.021942138671875, -0.039642333984375, 0.01171875, 0.0154876708984375, -0.04461669921875, -0.00998687744140625, 0.0288543701171875, 0.039703369140625, 0.00787353515625, 0.0394287109375, 0.013885498046875, -0.022216796875, -0.01132965087890625, -0.040557861328125, 0.056427001953125, 0.0672607421875, -0.03692626953125, -0.01441192626953125, -0.022613525390625, -0.00025391578674316406, 0.0182952880859375, 0.02215576171875, 0.01251983642578125, 0.056976318359375, 0.0180206298828125, -0.036590576171875, -0.00159454345703125, -0.0182037353515625, 0.0157470703125, -0.0390625, 0.0018224716186523438, -0.01812744140625, -0.02197265625, -0.04052734375, -0.004169464111328125, -0.03533935546875, 0.048980712890625, -0.0423583984375, -0.0040130615234375, -0.0294647216796875, 0.027984619140625, -0.076171875, 0.0167388916015625, 0.051483154296875, 0.041961669921875, -0.025146484375, -0.019073486328125, -0.041656494140625, -0.00962066650390625, -0.002651214599609375, -0.04437255859375, -0.004924774169921875, -0.0171051025390625, 0.00102996826171875, 0.0131683349609375, -0.00250244140625, 0.002124786376953125, -0.00284576416015625, 0.0123291015625, -0.00814056396484375, -0.01312255859375, 0.003814697265625, 0.0621337890625, -0.006320953369140625, 0.0618896484375, 0.024993896484375, 0.02520751953125, -0.01367950439453125, -0.021820068359375, -0.00269317626953125, -0.070556640625, 0.00652313232421875, -0.01125335693359375, 0.0011157989501953125, 0.0157470703125, 0.017669677734375, 0.0017843246459960938, -0.041839599609375, 0.0226287841796875, 0.006378173828125, -0.014312744140625, 0.0296630859375, 0.063720703125, -0.007904052734375, -0.0244598388671875, -0.036651611328125, -0.001071929931640625, -0.009368896484375, 0.051788330078125, 0.01486968994140625, -0.057220458984375, 0.011383056640625, 0.0017528533935546875, -0.0187835693359375, -0.00196075439453125, 0.0277862548828125, 0.00673675537109375, 0.04681396484375, -0.01305389404296875, 0.0264434814453125, 0.037200927734375, 0.09368896484375, -0.037506103515625, -0.063720703125, 0.07196044921875, 0.039764404296875, -0.044708251953125, 0.04046630859375, -0.042510986328125, 0.02142333984375, 0.039459228515625, 0.0631103515625, -0.053741455078125, 0.03997802734375, 0.0303192138671875, -0.0165252685546875, 0.01374053955078125, 0.0145111083984375, -0.022064208984375, -0.03057861328125, 0.011993408203125, -0.01117706298828125, -0.01395416259765625, 0.012939453125, 0.0185699462890625, 0.01131439208984375, -0.0014734268188476562, 0.02056884765625, 0.004779815673828125, -0.0289459228515625, 0.013519287109375, 0.0005621910095214844, 0.04705810546875, -0.029266357421875, 0.0193023681640625, 0.02239990234375, 0.003955841064453125, -0.021575927734375, 0.049163818359375, -0.011627197265625, -0.0033168792724609375, -0.0272216796875, 0.0007872581481933594, 0.02398681640625, 0.03436279296875, -0.0018215179443359375, -0.00557708740234375, 0.007640838623046875, 0.006298065185546875, -0.019378662109375, -0.0005230903625488281, 0.03192138671875, 0.0079193115234375, -0.053253173828125, 0.0175018310546875, -0.04559326171875, -0.012542724609375, 0.0257568359375, 0.045318603515625, 0.047088623046875, -0.0263214111328125, -0.031219482421875, 0.0145263671875, -0.0258636474609375, 0.0157318115234375, -0.01023101806640625, -0.0247344970703125, -0.004329681396484375, 0.0106048583984375, -0.0152740478515625, -0.018707275390625, 0.005756378173828125, -0.0288238525390625, -0.025909423828125, 0.12274169921875, -0.01454925537109375, -0.0009870529174804688, 0.007350921630859375, 0.0687255859375, -0.0080718994140625, 0.0540771484375, -0.0259857177734375, 0.0396728515625, 0.0087432861328125, 0.01384735107421875, -0.02996826171875, 0.0086822509765625, -0.019287109375, 0.01326751708984375, 0.02496337890625, -0.00914764404296875, 0.0187225341796875, -0.018951416015625, -0.00927734375, 0.032440185546875, -0.0227813720703125, -0.00904083251953125, 0.020538330078125, 0.00357818603515625, 0.0285797119140625, 0.023651123046875, 0.046722412109375, -0.017913818359375, -0.015869140625, 0.048675537109375, -0.00502777099609375, -0.010986328125, 0.053192138671875, 0.051025390625, -0.02142333984375, 0.026458740234375, 0.01837158203125, 0.00853729248046875, -0.00920867919921875, 0.025177001953125, -0.0156402587890625, 0.0390625, 0.005321502685546875, -0.01849365234375, 0.0300445556640625, -0.00922393798828125, 0.0011997222900390625, 0.00984954833984375, -0.0009851455688476562, -0.00395965576171875, -0.005645751953125, -0.0201263427734375, 0.03179931640625, -0.0018520355224609375, 0.0645751953125, 0.04302978515625, 0.052886962890625, -0.027130126953125, -0.06292724609375, 0.0287933349609375, 0.095703125, -0.0136871337890625, -0.045013427734375, -0.00321197509765625, 0.007114410400390625, 0.0312347412109375, 0.0169525146484375, 0.057281494140625, 0.0070648193359375, 0.0162506103515625, -0.020965576171875, -0.0222320556640625, -0.01849365234375, 0.026702880859375, -0.0025691986083984375, 0.012054443359375, 0.006755828857421875, -0.034515380859375, -0.030548095703125, -0.019317626953125, 0.0277252197265625, 0.0625, 0.0245208740234375, 0.0548095703125, -0.01401519775390625, -0.032806396484375, -0.0028247833251953125, 0.0070343017578125, -0.0035877227783203125, 0.00870513916015625, -0.0204010009765625, -0.01093292236328125, 0.005588531494140625, 0.035430908203125, 0.004528045654296875, 0.017120361328125, 0.01806640625, 0.0292510986328125, 0.01241302490234375, -0.0036945343017578125, 0.006320953369140625, -0.01019287109375, -0.00812530517578125, -0.0201568603515625, -0.01010894775390625, -0.0187835693359375, -0.0172882080078125, 0.013275146484375, 0.0308074951171875, -0.0031795501708984375, -0.053131103515625, 0.035308837890625, -0.0239715576171875, -0.05078125, 0.050537109375, -0.044189453125, 0.1212158203125, -0.04339599609375, -0.038604736328125, -0.003124237060546875, 0.01364898681640625, -0.05865478515625, 0.00872039794921875, 0.038238525390625, -0.0233612060546875, 0.019561767578125, 0.0004906654357910156, 0.0443115234375, 0.003192901611328125, -0.035736083984375, -0.0192413330078125, -0.0241241455078125, 0.0546875, 0.01398468017578125, 0.02197265625, 0.00930023193359375, 0.01259613037109375, 0.04388427734375, -0.0014095306396484375, 0.043212890625, -0.03448486328125, 0.01055145263671875, 0.0157318115234375, 0.00988006591796875, -0.014129638671875, -0.017578125, 0.0193023681640625, -0.03778076171875, 0.0120849609375, 0.0007920265197753906, -0.038970947265625, 0.04071044921875, 0.034149169921875, -0.024017333984375, 0.0230865478515625, 0.0225677490234375, 0.007480621337890625, -0.022369384765625, 0.044189453125, -0.01038360595703125, -0.016845703125, -0.0272674560546875, -0.005615234375, 0.039031982421875, 0.0164031982421875, -0.01422119140625, -0.0101776123046875, 0.0009775161743164062, -0.03125, 0.01123046875, 0.0014963150024414062, 0.0107879638671875, 0.0200958251953125, -0.0091705322265625, -0.026336669921875, -0.011810302734375, -0.0228424072265625, 0.01206207275390625, 0.0009722709655761719, 0.02935791015625, -0.003101348876953125, -0.07159423828125, -0.0242156982421875, 0.03851318359375, 0.040252685546875, -0.00820159912109375, 0.031463623046875, 0.0160980224609375, -0.028228759765625, -0.0193939208984375, -0.018890380859375, -0.0364990234375, -0.02294921875, 0.005626678466796875, 0.0199127197265625, -0.004119873046875, -0.0155181884765625, -0.060089111328125, -0.0181121826171875, 0.0648193359375, 0.0194854736328125, -0.0447998046875, -0.01062774658203125, -0.024627685546875, 0.04974365234375, 0.00843048095703125, -0.00493621826171875, 0.007022857666015625, 0.04754638671875, -0.0171661376953125, -0.031890869140625, -0.005779266357421875, 0.0438232421875, -0.0019025802612304688, 0.0205230712890625, 0.0169830322265625, -0.019775390625, 0.0145263671875, 0.042877197265625, 0.0091400146484375, 0.08551025390625, -0.0188140869140625, -0.02313232421875, -0.001186370849609375, 0.0318603515625, -0.018280029296875, -0.0084686279296875, 0.024658203125, 0.0030765533447265625, -0.0168304443359375, 0.0291748046875, 0.004852294921875, 0.0281219482421875, -0.0233154296875, -0.0540771484375, 0.0718994140625, -0.007297515869140625, -0.033538818359375, -0.0767822265625, 0.0367431640625, 0.019561767578125, -0.0076141357421875, -0.03973388671875, -0.01169586181640625, -0.01088714599609375, 0.03009033203125, 0.0227203369140625, -0.002094268798828125, 0.04290771484375, -0.00283050537109375, -0.0212249755859375, 0.01204681396484375, 0.0164642333984375, 0.017364501953125, -0.0012807846069335938, -0.01215362548828125, 0.07537841796875, 0.06451416015625, -0.00665283203125, 0.057098388671875, 0.026824951171875, -0.0389404296875, 0.0019502639770507812, -0.06268310546875, 0.006702423095703125, -0.0243682861328125, 0.049591064453125, -0.05377197265625, -0.002475738525390625, -0.006969451904296875, -0.01092529296875, -0.0252227783203125, -0.012664794921875, 0.00858306884765625, 0.0005807876586914062, -0.02252197265625, 0.0078277587890625, -0.01032257080078125, 0.02520751953125, -0.029571533203125, 0.0165863037109375, 0.007213592529296875, -0.03497314453125, 0.033447265625, 0.01019287109375, -0.0174560546875, -0.03326416015625, 0.0123748779296875, 0.01323699951171875, 0.03704833984375, 0.0163421630859375, 0.0214385986328125, 0.01282501220703125, 0.06658935546875, 0.0308990478515625, 0.04876708984375, -0.05621337890625, -0.00867462158203125, 0.0259857177734375, 0.002796173095703125, -0.01367950439453125, -0.0175628662109375, -0.035675048828125, 0.0284423828125, 0.021270751953125, 0.049346923828125, 0.01007080078125, 0.02947998046875, 0.0460205078125, -0.0287017822265625, -0.004314422607421875, 0.0238800048828125, -0.002696990966796875, 0.0092620849609375, 0.039825439453125, -0.006900787353515625, 0.06829833984375, -0.016143798828125, -0.01194000244140625, 0.01081085205078125, -0.0046234130859375, -0.0318603515625, 0.0377197265625, 0.019989013671875, -0.005710601806640625, 0.014404296875 ]
bd37b2d032624fce450f9684d39b92c6a115660f
Wordpress Stackexchange Q: Redirect After Delete User in Backend How do I redirect to a certain page after user deletion? For demonstration purpose, let's say I want to redirect to the dashboard on user subscriber deletion. This is what I have tried so far: function mod_redirect_subscriber_delete($user_id) { $user = get_user_by('id', $user_id); $role = $user->roles[0]; if ($role == 'subscriber') { wp_redirect( admin_url('/index.php') ); exit; } } add_action("delete_user", "mod_redirect_subscriber_delete"); The above code successfully redirected me to the dashboard, but the user didn't get deleted. I had also tried deleted_user. This deleted the user but it didn't redirect. Any ideas? Cheers! A: You could also do this, function mod_redirect_subscriber_delete($user_id) { $user = get_user_by('id', $user_id); $role = $user->roles[0]; if ($role == 'subscriber') { add_action("deleted_user", function(){ wp_redirect( admin_url('/index.php') ); exit; }); } } add_action("delete_user", "mod_redirect_subscriber_delete"); Anonymous functions (closures), available in PHP 5.3+. Benefits: * *No need to remove the initial hook on delete_user *No need to re-run wp_delete_user() *You still get to hook onto deleted_user because we retain the user's role within the function, hence we place our closure in the if(conditional) statement.
Q: Redirect After Delete User in Backend How do I redirect to a certain page after user deletion? For demonstration purpose, let's say I want to redirect to the dashboard on user subscriber deletion. This is what I have tried so far: function mod_redirect_subscriber_delete($user_id) { $user = get_user_by('id', $user_id); $role = $user->roles[0]; if ($role == 'subscriber') { wp_redirect( admin_url('/index.php') ); exit; } } add_action("delete_user", "mod_redirect_subscriber_delete"); The above code successfully redirected me to the dashboard, but the user didn't get deleted. I had also tried deleted_user. This deleted the user but it didn't redirect. Any ideas? Cheers! A: You could also do this, function mod_redirect_subscriber_delete($user_id) { $user = get_user_by('id', $user_id); $role = $user->roles[0]; if ($role == 'subscriber') { add_action("deleted_user", function(){ wp_redirect( admin_url('/index.php') ); exit; }); } } add_action("delete_user", "mod_redirect_subscriber_delete"); Anonymous functions (closures), available in PHP 5.3+. Benefits: * *No need to remove the initial hook on delete_user *No need to re-run wp_delete_user() *You still get to hook onto deleted_user because we retain the user's role within the function, hence we place our closure in the if(conditional) statement. A: a) delete_user hook: Here is one idea: Add this into your code to delete the user: remove_action("delete_user", "mod_redirect_subscriber_delete"); wp_delete_user($user_id); where we remove the action callback to prevent it calling it self again. So your code becomes: function mod_redirect_subscriber_delete($user_id) { $user = get_user_by('id', $user_id); $role = $user->roles[0]; if ($role == 'subscriber') { // start extra: remove_action("delete_user", "mod_redirect_subscriber_delete"); wp_delete_user($user_id); // end extra wp_redirect( admin_url('/index.php') ); exit; } } add_action("delete_user", "mod_redirect_subscriber_delete"); b) deleted_user hook: The deleted_user hook is activated after the user has been deleted, but not before as in the delete_user case. That means you can't check the role of the user, since it has been deleted. You could use it like this, but for all users: function mod_redirect_subscriber_deleted($user_id) { wp_redirect( admin_url('/index.php') ); exit(); } add_action("deleted_user", "mod_redirect_subscriber_deleted");
wordpress
{ "language": "en", "length": 302, "provenance": "stackexchange_00019.jsonl.gz:432590", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/99959" }
[ 0.07818603515625, 0.0164642333984375, -0.0127716064453125, -0.045196533203125, 0.039703369140625, -0.03375244140625, 0.0357666015625, -0.0478515625, 0.03265380859375, 0.04473876953125, 0.02392578125, -0.02618408203125, 0.051055908203125, -0.039398193359375, -0.0194854736328125, 0.005397796630859375, 0.03338623046875, -0.029541015625, 0.017333984375, -0.0016565322875976562, -0.0084686279296875, 0.02972412109375, 0.0271148681640625, 0.0042572021484375, -0.0283660888671875, 0.002407073974609375, 0.055633544921875, -0.0249176025390625, -0.034088134765625, -0.0291595458984375, -0.0077667236328125, 0.0243072509765625, -0.0264892578125, 0.060455322265625, -0.0013513565063476562, -0.02313232421875, 0.00992584228515625, 0.027099609375, 0.03955078125, -0.0032806396484375, 0.038848876953125, -0.00786590576171875, 0.01849365234375, 0.0079193115234375, 0.0022525787353515625, -0.04815673828125, 0.0565185546875, -0.01470184326171875, 0.0277862548828125, 0.03302001953125, 0.022735595703125, -0.027496337890625, 0.0179901123046875, 0.018402099609375, -0.022369384765625, -0.0062713623046875, -0.03472900390625, 0.0207672119140625, 0.02313232421875, 0.03265380859375, -0.01068878173828125, -0.00843048095703125, -0.004802703857421875, -0.0478515625, -0.014556884765625, -0.0001697540283203125, 0.0102691650390625, 0.037841796875, -0.059478759765625, -0.03338623046875, -0.0001239776611328125, -0.00920867919921875, -0.0153656005859375, 0.0028934478759765625, -0.00821685791015625, 0.004154205322265625, 0.02447509765625, 0.0160675048828125, 0.003856658935546875, 0.032806396484375, -0.008758544921875, -0.01294708251953125, -0.0269927978515625, -0.0007257461547851562, -0.00473785400390625, 0.02862548828125, -0.02960205078125, -0.01715087890625, -0.0426025390625, -0.010894775390625, -0.035614013671875, -0.017333984375, 0.01277923583984375, -0.044219970703125, -0.0355224609375, -0.0204315185546875, 0.02032470703125, 0.061370849609375, 0.00006836652755737305, -0.0179443359375, 0.01220703125, -0.0288848876953125, -0.0265960693359375, -0.037750244140625, -0.00772857666015625, 0.05572509765625, 0.01323699951171875, -0.0132904052734375, -0.01947021484375, 0.010467529296875, 0.004573822021484375, -0.053558349609375, -0.006328582763671875, -0.0213470458984375, -0.01214599609375, 0.01293182373046875, -0.04608154296875, 0.018524169921875, -0.0069732666015625, -0.0015535354614257812, -0.0209503173828125, 0.001007080078125, -0.0087432861328125, -0.038726806640625, 0.01513671875, -0.025390625, -0.0181732177734375, 0.0005497932434082031, 0.039276123046875, -0.01178741455078125, -0.047882080078125, 0.0352783203125, 0.063232421875, -0.00803375244140625, 0.00501251220703125, -0.01183319091796875, 0.04339599609375, 0.003330230712890625, -0.00772857666015625, -0.007083892822265625, 0.042022705078125, -0.0281524658203125, -0.042999267578125, 0.01221466064453125, 0.0222320556640625, 0.05450439453125, 0.0178375244140625, -0.03033447265625, 0.00556182861328125, -0.04534912109375, -0.0222930908203125, -0.043701171875, 0.005840301513671875, 0.0203857421875, 0.0408935546875, -0.00661468505859375, 0.0190887451171875, -0.0034542083740234375, 0.0225067138671875, 0.0020008087158203125, 0.048065185546875, -0.00542449951171875, -0.00839996337890625, -0.0614013671875, -0.09002685546875, -0.01270294189453125, -0.08447265625, -0.0305938720703125, 0.0258636474609375, 0.020965576171875, 0.04876708984375, -0.035186767578125, -0.0462646484375, 0.0207061767578125, 0.0188446044921875, 0.0206146240234375, 0.003753662109375, 0.0133056640625, 0.0205841064453125, -0.0032634735107421875, -0.025634765625, -0.036285400390625, 0.014251708984375, 0.005832672119140625, -0.03741455078125, 0.03521728515625, 0.006633758544921875, 0.0714111328125, 0.013153076171875, 0.0203094482421875, 0.004985809326171875, 0.0287933349609375, -0.00905609130859375, 0.005863189697265625, -0.006000518798828125, -0.05072021484375, 0.00400543212890625, -0.03778076171875, -0.0193634033203125, 0.0435791015625, 0.06146240234375, 0.02459716796875, -0.0150146484375, -0.023193359375, -0.08172607421875, 0.0136566162109375, -0.029632568359375, 0.04315185546875, 0.0079498291015625, 0.03704833984375, 0.0013370513916015625, 0.010284423828125, -0.007678985595703125, -0.039642333984375, 0.0023822784423828125, 0.014373779296875, -0.00707244873046875, 0.0467529296875, -0.0017843246459960938, 0.03759765625, -0.004283905029296875, -0.048065185546875, -0.0032958984375, -0.037994384765625, 0.057891845703125, -0.040771484375, 0.00007021427154541016, -0.05023193359375, 0.01166534423828125, -0.01197052001953125, -0.048248291015625, 0.05352783203125, 0.0479736328125, 0.0193023681640625, -0.0340576171875, 0.0267333984375, -0.005702972412109375, -0.04168701171875, -0.0174713134765625, 0.04095458984375, 0.024017333984375, 0.05029296875, -0.0088958740234375, 0.03094482421875, 0.007080078125, -0.04840087890625, 0.0162811279296875, 0.01308441162109375, -0.004467010498046875, 0.054443359375, -0.020172119140625, 0.0005002021789550781, 0.002590179443359375, -0.05364990234375, -0.03729248046875, 0.05712890625, -0.01214599609375, -0.00531768798828125, -0.013946533203125, 0.01020050048828125, 0.0075836181640625, -0.05181884765625, -0.02691650390625, -0.0242919921875, 0.004421234130859375, -0.032318115234375, -0.026824951171875, -0.025238037109375, -0.023651123046875, -0.024200439453125, 0.052490234375, -0.0301361083984375, -0.00228118896484375, 0.0232696533203125, 0.051422119140625, -0.0293426513671875, -0.039276123046875, -0.0124664306640625, 0.023651123046875, 0.00048089027404785156, -0.0017881393432617188, 0.031463623046875, 0.034393310546875, -0.0113983154296875, 0.0115203857421875, 0.0216217041015625, 0.020050048828125, -0.0165557861328125, 0.035247802734375, -0.007030487060546875, 0.0310516357421875, 0.00997161865234375, -0.004322052001953125, 0.035797119140625, -0.005126953125, -0.035430908203125, 0.0335693359375, -0.031402587890625, 0.0178375244140625, -0.01535797119140625, 0.0618896484375, 0.061859130859375, -0.0018177032470703125, -0.00809478759765625, 0.006061553955078125, 0.031707763671875, 0.0298614501953125, -0.0031108856201171875, 0.0049591064453125, -0.0215301513671875, -0.0113067626953125, -0.01413726806640625, 0.0263214111328125, 0.019073486328125, 0.01751708984375, -0.0189971923828125, 0.006946563720703125, 0.0198516845703125, -0.031768798828125, -0.030426025390625, -0.01654052734375, -0.057373046875, 0.0277252197265625, 0.0228729248046875, -0.0271148681640625, -0.01806640625, 0.0643310546875, 0.012176513671875, -0.005947113037109375, 0.031585693359375, -0.0189361572265625, -0.01233673095703125, -0.05059814453125, -0.0074615478515625, -0.00629425048828125, 0.0228729248046875, 0.01267242431640625, -0.0164642333984375, -0.0008344650268554688, -0.04119873046875, 0.0109710693359375, 0.04412841796875, -0.0160369873046875, -0.0207672119140625, -0.00255584716796875, -0.0040130615234375, -0.00893402099609375, -0.0018491744995117188, 0.0672607421875, 0.0241241455078125, -0.02667236328125, -0.00167083740234375, -0.0258331298828125, -0.032012939453125, 0.0214691162109375, -0.034210205078125, 0.01406097412109375, 0.0021877288818359375, 0.03857421875, -0.0447998046875, 0.01145172119140625, -0.015838623046875, -0.024566650390625, -0.0025768280029296875, 0.0095977783203125, -0.0061492919921875, -0.01126861572265625, 0.0035400390625, 0.04180908203125, 0.037322998046875, -0.0248565673828125, 0.03369140625, -0.00965118408203125, -0.00026917457580566406, 0.02398681640625, -0.00977325439453125, 0.06854248046875, 0.020263671875, -0.038818359375, 0.0137786865234375, 0.03802490234375, -0.0015850067138671875, -0.0014600753784179688, -0.06597900390625, -0.038299560546875, 0.040985107421875, -0.01947021484375, -0.003082275390625, -0.020416259765625, -0.0181884765625, 0.00007212162017822266, 0.0706787109375, -0.0061798095703125, -0.0173797607421875, -0.016754150390625, -0.007534027099609375, 0.016998291015625, -0.00116729736328125, -0.014434814453125, -0.01263427734375, -0.0882568359375, 0.01114654541015625, -0.00011211633682250977, -0.022369384765625, -0.03289794921875, 0.02880859375, -0.0736083984375, -0.0296630859375, 0.037261962890625, -0.0750732421875, 0.048583984375, 0.017791748046875, 0.0204925537109375, -0.01312255859375, -0.0160369873046875, -0.0611572265625, -0.0187530517578125, -0.009735107421875, -0.0000883340835571289, 0.04046630859375, 0.027313232421875, -0.019775390625, 0.0301055908203125, 0.05029296875, 0.01204681396484375, -0.005596160888671875, -0.0154266357421875, -0.0193939208984375, 0.01317596435546875, 0.0017328262329101562, -0.022735595703125, 0.006305694580078125, -0.004077911376953125, -0.00829315185546875, 0.0067901611328125, 0.018524169921875, -0.0555419921875, -0.00518035888671875, -0.0294952392578125, -0.0164031982421875, -0.07421875, -0.0189056396484375, -0.00890350341796875, 0.03204345703125, -0.0227203369140625, 0.015350341796875, -0.02679443359375, -0.091064453125, 0.0364990234375, -0.0390625, -0.0017032623291015625, -0.00933074951171875, 0.0445556640625, 0.022918701171875, 0.0026035308837890625, 0.06768798828125, -0.0015287399291992188, 0.03436279296875, -0.01085662841796875, 0.0543212890625, 0.0222930908203125, 0.005680084228515625, 0.0272979736328125, 0.003078460693359375, 0.04144287109375, -0.041717529296875, 0.03173828125, -0.027374267578125, -0.03863525390625, 0.0450439453125, -0.0318603515625, 0.0015411376953125, 0.007236480712890625, 0.00559234619140625, -0.0137786865234375, 0.033538818359375, 0.0210723876953125, -0.0218505859375, 0.01355743408203125, -0.0036525726318359375, -0.0292816162109375, 0.005924224853515625, -0.03460693359375, 0.05206298828125, 0.01541900634765625, -0.0035495758056640625, 0.0148162841796875, 0.0214996337890625, 0.0017347335815429688, -0.01158905029296875, -0.0233001708984375, -0.009033203125, 0.04461669921875, -0.042816162109375, -0.004119873046875, 0.00345611572265625, -0.005645751953125, 0.07684326171875, 0.029571533203125, -0.0186767578125, -0.034454345703125, -0.01503753662109375, -0.01953125, -0.039764404296875, 0.003429412841796875, 0.0699462890625, 0.03204345703125, 0.00011092424392700195, -0.020751953125, -0.036529541015625, 0.0244598388671875, -0.055755615234375, 0.031280517578125, -0.0117034912109375, 0.009307861328125, 0.0092926025390625, 0.08837890625, 0.029083251953125, 0.0477294921875, -0.030487060546875, 0.0352783203125, 0.034881591796875, 0.0149688720703125, 0.004489898681640625, 0.042144775390625, -0.027557373046875, 0.007266998291015625, 0.0089111328125, -0.034515380859375, 0.007343292236328125, 0.047515869140625, 0.04010009765625, 0.059814453125, -0.006198883056640625, -0.0285797119140625, -0.0240478515625, -0.0147705078125, 0.057525634765625, 0.00879669189453125, -0.056732177734375, -0.032501220703125, -0.01071929931640625, 0.0294036865234375, -0.0159759521484375, -0.01158905029296875, -0.0174102783203125, -0.037872314453125, -0.0029468536376953125, 0.0005559921264648438, -0.022247314453125, -0.010406494140625, -0.019866943359375, -0.007381439208984375, -0.004123687744140625, 0.00722503662109375, 0.0009207725524902344, -0.00897216796875, -0.024139404296875, -0.051300048828125, 0.0806884765625, -0.0007758140563964844, 0.01641845703125, -0.0526123046875, 0.017578125, -0.032623291015625, -0.023193359375, 0.1009521484375, 0.051666259765625, -0.0355224609375, -0.00550079345703125, -0.0235595703125, -0.01166534423828125, 0.0026607513427734375, -0.0039005279541015625, -0.008453369140625, 0.00251007080078125, 0.0210113525390625, 0.0200042724609375, 0.020172119140625, -0.0127105712890625, -0.03106689453125, -0.0024929046630859375, 0.021942138671875, 0.016326904296875, 0.0283355712890625, 0.043304443359375, -0.0272979736328125, 0.047882080078125, 0.0301361083984375, 0.05364990234375, -0.0047454833984375, -0.03411865234375, 0.0164642333984375, -0.003688812255859375, 0.00989532470703125, -0.05377197265625, 0.0171356201171875, -0.0360107421875, 0.059722900390625, -0.0030841827392578125, -0.0110321044921875, 0.015350341796875, 0.00238800048828125, -0.027069091796875, -0.011688232421875, 0.055023193359375, 0.042877197265625, -0.029266357421875, -0.035614013671875, -0.0364990234375, 0.00768280029296875, 0.03155517578125, -0.036834716796875, -0.0023593902587890625, -0.041717529296875, 0.0185546875, -0.060577392578125, 0.038970947265625, 0.06597900390625, -0.028564453125, 0.0433349609375, 0.019775390625, -0.0041656494140625, 0.06024169921875, 0.01261138916015625, 0.01103973388671875, 0.027099609375, 0.05206298828125, -0.0153656005859375, -0.0110626220703125, 0.013946533203125, -0.02154541015625, 0.0015630722045898438, 0.0958251953125, 0.052215576171875, -0.1337890625, 0.0009260177612304688, -0.0187225341796875, 0.0180206298828125, 0.0662841796875, -0.01308441162109375, 0.007648468017578125, 0.007793426513671875, 0.0218658447265625, 0.0089874267578125, -0.0198211669921875, 0.012939453125, 0.0193023681640625, -0.0302276611328125, 0.01465606689453125, -0.0237274169921875, 0.011505126953125, 0.0023956298828125, 0.0175323486328125, -0.0167388916015625, 0.0307464599609375, -0.0288848876953125, -0.002147674560546875, 0.04083251953125, -0.0003330707550048828, -0.061065673828125, 0.04534912109375, -0.0163421630859375, 0.004734039306640625, 0.00289154052734375, -0.0216827392578125, 0.039794921875, 0.06353759765625, -0.02099609375, 0.0091400146484375, 0.046661376953125, -0.036956787109375, -0.0163421630859375, -0.0506591796875, 0.0178985595703125, -0.038604736328125, -0.0595703125, 0.0221099853515625, -0.03192138671875, -0.0635986328125, -0.016082763671875, 0.013946533203125, 0.0653076171875, -0.026519775390625, -0.0189666748046875, 0.02301025390625, 0.029388427734375, -0.0096893310546875, 0.0012922286987304688, 0.01204681396484375, -0.0592041015625, -0.05157470703125, -0.0010232925415039062, -0.06298828125, 0.0128173828125, -0.030181884765625, -0.045623779296875, 0.0718994140625, -0.018157958984375, 0.0166778564453125, -0.004833221435546875, 0.032135009765625, 0.004547119140625, 0.0222320556640625, -0.005558013916015625, 0.0460205078125, 0.0219268798828125, -0.009796142578125, -0.0110015869140625, 0.0036258697509765625, -0.01422119140625, 0.0193328857421875, 0.05206298828125, 0.03424072265625, -0.043670654296875, -0.0088653564453125, 0.0022830963134765625, -0.0203094482421875, -0.031402587890625, 0.06793212890625, -0.007556915283203125, 0.00011074542999267578, -0.0003094673156738281, -0.0340576171875, 0.0265655517578125, -0.04046630859375, -0.007549285888671875, 0.00933074951171875, -0.00035953521728515625, -0.0074462890625, -0.0005903244018554688, 0.0214385986328125, -0.025054931640625, -0.0017480850219726562, 0.00658416748046875, -0.0197906494140625, 0.0256805419921875, 0.00939178466796875, 0.016937255859375, -0.0277252197265625, 0.036346435546875, -0.0251007080078125, 0.0386962890625, 0.00927734375, -0.015106201171875, 0.01922607421875, 0.0219879150390625, 0.0006008148193359375, -0.0256500244140625, -0.01806640625, 0.008575439453125, -0.00023996829986572266, 0.07440185546875, 0.07177734375, 0.041412353515625, 0.00952911376953125, -0.0254974365234375, 0.03277587890625, 0.0843505859375, -0.0279998779296875, -0.032806396484375, 0.01015472412109375, 0.03326416015625, 0.034759521484375, 0.028900146484375, 0.06280517578125, -0.04736328125, 0.01039886474609375, -0.038787841796875, 0.0019054412841796875, 0.0168914794921875, 0.00787353515625, 0.0008635520935058594, 0.007415771484375, -0.01226043701171875, 0.003208160400390625, -0.032562255859375, 0.00615692138671875, 0.0211181640625, 0.0009813308715820312, -0.0003910064697265625, 0.00476837158203125, 0.0570068359375, 0.0147705078125, 0.0243988037109375, 0.01499176025390625, 0.01016998291015625, -0.04071044921875, -0.036651611328125, -0.099365234375, 0.044189453125, 0.06158447265625, -0.00168609619140625, -0.01284027099609375, 0.01433563232421875, 0.01430511474609375, -0.01702880859375, -0.0211181640625, -0.015350341796875, -0.0266876220703125, 0.06134033203125, 0.0176239013671875, -0.012115478515625, -0.0272979736328125, -0.0511474609375, -0.0506591796875, 0.0192108154296875, 0.02496337890625, -0.0166168212890625, 0.026885986328125, -0.0099029541015625, -0.0213775634765625, 0.035400390625, -0.0421142578125, 0.0419921875, -0.01381683349609375, -0.024444580078125, 0.0114898681640625, -0.031707763671875, -0.037078857421875, -0.002658843994140625, 0.0194244384765625, -0.0114288330078125, 0.0303497314453125, -0.0168609619140625, -0.0122222900390625, 0.03680419921875, -0.001708984375, -0.01329803466796875, 0.03179931640625, 0.032135009765625, -0.00992584228515625, -0.02532958984375, 0.00385284423828125, 0.004146575927734375, 0.0173187255859375, -0.003856658935546875, 0.0684814453125, -0.0181427001953125, 0.0176849365234375, -0.03253173828125, 0.031524658203125, -0.043365478515625, -0.048431396484375, 0.064208984375, 0.00687408447265625, -0.0242767333984375, -0.004459381103515625, -0.06353759765625, 0.0379638671875, 0.01114654541015625, -0.01340484619140625, 0.0281829833984375, -0.0015306472778320312, 0.0023746490478515625, -0.00647735595703125, 0.002788543701171875, -0.016082763671875, -0.035400390625, -0.035491943359375, -0.017730712890625, 0.034576416015625, 0.06097412109375, -0.00388336181640625, 0.0145416259765625, -0.033172607421875, -0.045196533203125, -0.01226806640625, -0.036590576171875, -0.037750244140625, 0.01242828369140625, -0.00957489013671875, 0.00003463029861450195, 0.01340484619140625, -0.00287628173828125, 0.00818634033203125, 0.01346588134765625, 0.0031890869140625, 0.029327392578125, 0.0240631103515625, -0.0257110595703125, -0.05474853515625, -0.00933837890625, -0.0090179443359375, -0.01593017578125, -0.0426025390625, 0.0018377304077148438, -0.0225067138671875, 0.0015192031860351562, -0.0347900390625, -0.0100555419921875, -0.01251220703125, 0.00553131103515625, 0.00118255615234375, -0.060699462890625, -0.08258056640625, 0.0131072998046875, 0.04412841796875, 0.02130126953125, -0.08123779296875, 0.0333251953125, -0.01515960693359375, 0.0538330078125, -0.0114898681640625, -0.032562255859375, 0.01410675048828125, 0.0274200439453125, -0.044647216796875, 0.0181121826171875, -0.039337158203125, -0.04351806640625, -0.0447998046875, -0.017364501953125, 0.0256500244140625, 0.00954437255859375, -0.0208282470703125, -0.0114288330078125, -0.03717041015625, 0.037628173828125, -0.052276611328125, -0.0278472900390625, -0.0088348388671875, 0.02093505859375, 0.0274200439453125, -0.00942230224609375, -0.029510498046875, 0.0478515625, -0.007114410400390625, -0.0018644332885742188, 0.00274658203125, 0.0167388916015625, -0.0276641845703125, -0.0216064453125, 0.07061767578125, -0.00568389892578125, -0.017547607421875, -0.0157470703125, 0.03045654296875, 0.01386260986328125, -0.03509521484375, -0.009613037109375, -0.00600433349609375, -0.0128936767578125, -0.004558563232421875, 0.003147125244140625, 0.0260772705078125, 0.01142120361328125, -0.0071868896484375, 0.001911163330078125, 0.019195556640625, 0.00714111328125, -0.00685882568359375, -0.01385498046875, -0.03082275390625, 0.05621337890625, 0.051605224609375, 0.004611968994140625, 0.00481414794921875, 0.042877197265625, -0.0270843505859375, -0.034423828125, -0.0413818359375, 0.0161285400390625, -0.0200347900390625, 0.03875732421875, 0.018951416015625, -0.0020351409912109375, -0.0124664306640625, -0.0469970703125, -0.008819580078125, -0.004108428955078125, -0.037384033203125, 0.0255584716796875, -0.104736328125, -0.04046630859375, 0.007228851318359375, -0.02142333984375, -0.02020263671875, 0.004230499267578125, -0.045013427734375, 0.0030612945556640625, 0.00839996337890625, -0.0020904541015625, -0.0026340484619140625, 0.0223388671875, 0.01824951171875, -0.032501220703125, -0.02490234375, -0.00414276123046875, 0.00740814208984375, -0.03515625, -0.042633056640625, 0.01102447509765625, 0.0255279541015625, -0.034149169921875, 0.0072021484375, 0.0012540817260742188, 0.047088623046875, -0.03271484375, -0.0186004638671875, -0.002185821533203125, 0.033599853515625, -0.0148468017578125, 0.030181884765625, 0.01531219482421875, 0.055023193359375, 0.0185089111328125, 0.034332275390625, -0.006656646728515625, 0.05963134765625, -0.0289764404296875, 0.05780029296875, 0.007526397705078125, -0.016143798828125, 0.04193115234375, -0.0144500732421875, -0.0156707763671875, 0.024566650390625, 0.0105743408203125, -0.072021484375, 0.06085205078125, 0.04583740234375, 0.05853271484375, 0.03350830078125 ]
58250e02ab9eae0f410435078938d1e844b3a967
Wordpress Stackexchange Q: Wordpress Theme Update Action? I've done quite a bit of searching. I'm looking for hook/action called after a theme update. I know the initialization one - but a basic update? Cannot seem to find. If one does not exist, how can you run a function after auto-updating? A: I have never tried to do what you are trying to do, so no promises, but there is an action hook called upgrader_process_complete in the upgrade method of the Theme_Upgrader class, and it look like it would do what you want. The action is called like: do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'theme' ), $theme ) So it looks like that $this parameter should have the information you need. There is also an upgrader_post_install hook in the parent WP_Upgrader class. That might be useful.
Q: Wordpress Theme Update Action? I've done quite a bit of searching. I'm looking for hook/action called after a theme update. I know the initialization one - but a basic update? Cannot seem to find. If one does not exist, how can you run a function after auto-updating? A: I have never tried to do what you are trying to do, so no promises, but there is an action hook called upgrader_process_complete in the upgrade method of the Theme_Upgrader class, and it look like it would do what you want. The action is called like: do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'theme' ), $theme ) So it looks like that $this parameter should have the information you need. There is also an upgrader_post_install hook in the parent WP_Upgrader class. That might be useful.
wordpress
{ "language": "en", "length": 136, "provenance": "stackexchange_00019.jsonl.gz:432594", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/99969" }
[ 0.0206756591796875, -0.0116424560546875, -0.01195526123046875, -0.029937744140625, -0.0004246234893798828, -0.0179901123046875, 0.017730712890625, -0.0053863525390625, -0.0282135009765625, 0.04339599609375, -0.0042266845703125, 0.0258026123046875, 0.03143310546875, -0.01285552978515625, 0.01474761962890625, -0.00812530517578125, 0.05224609375, -0.0252685546875, 0.03466796875, 0.0078887939453125, -0.010406494140625, 0.054107666015625, 0.025634765625, 0.06549072265625, 0.00955963134765625, 0.00878143310546875, 0.0701904296875, -0.0189666748046875, 0.00446319580078125, -0.01190185546875, 0.015960693359375, -0.020294189453125, 0.00428009033203125, 0.0254058837890625, 0.0021343231201171875, 0.01076507568359375, 0.021392822265625, 0.0094146728515625, 0.02484130859375, 0.038330078125, 0.028717041015625, -0.0128326416015625, 0.01157379150390625, 0.040435791015625, -0.0016078948974609375, -0.057373046875, 0.045257568359375, -0.0435791015625, 0.0265350341796875, -0.04791259765625, -0.003009796142578125, 0.0290069580078125, 0.0125732421875, -0.0096435546875, -0.00019121170043945312, 0.0295562744140625, -0.048858642578125, 0.04620361328125, 0.0294952392578125, 0.0277252197265625, -0.01049041748046875, -0.01082611083984375, 0.003589630126953125, -0.056243896484375, 0.0017213821411132812, 0.01477813720703125, 0.0322265625, -0.002147674560546875, -0.056304931640625, -0.0007791519165039062, 0.049591064453125, -0.0274810791015625, -0.037628173828125, 0.01337432861328125, 0.04705810546875, -0.03094482421875, 0.02264404296875, -0.0152587890625, -0.0144805908203125, 0.0831298828125, 0.006992340087890625, -0.0063934326171875, 0.032318115234375, -0.0214691162109375, 0.0102386474609375, 0.01088714599609375, -0.018218994140625, -0.01105499267578125, -0.0389404296875, -0.0225677490234375, -0.035552978515625, -0.00299072265625, -0.0194244384765625, -0.0233917236328125, -0.0220489501953125, -0.01233673095703125, -0.0005278587341308594, 0.041473388671875, -0.022552490234375, 0.032135009765625, 0.003795623779296875, -0.034912109375, 0.057586669921875, -0.057708740234375, -0.01058197021484375, 0.032501220703125, 0.043182373046875, 0.0283355712890625, -0.01306915283203125, 0.00183868408203125, -0.020660400390625, -0.0130462646484375, -0.0107879638671875, -0.0011081695556640625, -0.0239715576171875, -0.0178985595703125, -0.07781982421875, 0.0323486328125, -0.01090240478515625, 0.0233306884765625, -0.0030612945556640625, 0.015625, -0.002803802490234375, -0.01428985595703125, 0.004863739013671875, -0.011260986328125, -0.01346588134765625, -0.020721435546875, 0.038482666015625, 0.017120361328125, -0.021759033203125, -0.0016183853149414062, 0.02337646484375, 0.0041046142578125, -0.006755828857421875, -0.018890380859375, 0.001956939697265625, 0.038543701171875, 0.004375457763671875, -0.00196075439453125, 0.0157928466796875, -0.056427001953125, -0.053131103515625, 0.0106658935546875, 0.05401611328125, -0.021148681640625, -0.0086212158203125, 0.032989501953125, 0.0557861328125, 0.005527496337890625, 0.051361083984375, -0.0301361083984375, 0.025177001953125, 0.022003173828125, 0.023101806640625, -0.0067901611328125, 0.046600341796875, -0.02667236328125, 0.00803375244140625, -0.023712158203125, 0.00295257568359375, -0.0224456787109375, -0.00803375244140625, 0.0074920654296875, -0.02874755859375, 0.0206298828125, 0.00582122802734375, 0.0125274658203125, 0.0253143310546875, 0.01436614990234375, 0.0189666748046875, 0.01476287841796875, 0.0614013671875, 0.0152435302734375, -0.002685546875, 0.0090789794921875, 0.003787994384765625, 0.0033740997314453125, 0.029815673828125, -0.0251922607421875, -0.035888671875, -0.032470703125, 0.04803466796875, -0.0229339599609375, -0.00569915771484375, 0.047027587890625, 0.0063323974609375, 0.055938720703125, -0.007659912109375, 0.019683837890625, -0.04034423828125, 0.031158447265625, -0.027130126953125, 0.0256500244140625, -0.00844573974609375, -0.007556915283203125, -0.004245758056640625, 0.024932861328125, -0.0274810791015625, -0.043121337890625, 0.002666473388671875, 0.0262908935546875, -0.021697998046875, 0.00566864013671875, -0.07928466796875, 0.0259552001953125, -0.0271453857421875, 0.04437255859375, 0.0161895751953125, 0.029205322265625, 0.0005321502685546875, -0.004169464111328125, 0.000698089599609375, -0.0306396484375, -0.02508544921875, -0.0043182373046875, -0.0247650146484375, 0.0179901123046875, -0.006744384765625, 0.035430908203125, -0.006130218505859375, -0.03131103515625, -0.01290130615234375, 0.0036716461181640625, 0.037445068359375, -0.0294952392578125, -0.01235198974609375, -0.0350341796875, -0.005130767822265625, 0.005496978759765625, -0.04998779296875, 0.04302978515625, -0.007244110107421875, 0.010955810546875, -0.0305938720703125, -0.01104736328125, -0.03668212890625, -0.08087158203125, 0.016815185546875, 0.0614013671875, 0.007167816162109375, 0.0038738250732421875, -0.03070068359375, -0.003582000732421875, 0.054931640625, 0.029052734375, 0.02874755859375, -0.008758544921875, -0.01253509521484375, 0.06475830078125, 0.00028324127197265625, 0.02386474609375, -0.00862884521484375, -0.072509765625, -0.0262298583984375, 0.051300048828125, 0.0092010498046875, -0.0074920654296875, -0.037384033203125, -0.014556884765625, 0.01377105712890625, -0.09405517578125, -0.0662841796875, -0.0214996337890625, 0.0379638671875, -0.0251312255859375, 0.01226043701171875, -0.01432037353515625, -0.033935546875, 0.0012912750244140625, 0.031280517578125, -0.005405426025390625, 0.004150390625, 0.06719970703125, -0.046875, 0.00894927978515625, 0.040374755859375, -0.022125244140625, -0.05133056640625, 0.020416259765625, -0.036895751953125, -0.00907135009765625, -0.0113983154296875, -0.0177001953125, 0.01611328125, -0.01512908935546875, 0.01397705078125, -0.0389404296875, -0.003650665283203125, -0.01177215576171875, 0.0007352828979492188, 0.0074462890625, -0.03778076171875, 0.0435791015625, 0.0095367431640625, -0.03070068359375, 0.01549530029296875, -0.0082855224609375, 0.016143798828125, -0.0174407958984375, 0.02947998046875, 0.04150390625, -0.0271148681640625, 0.001651763916015625, 0.0186614990234375, -0.0197601318359375, 0.026763916015625, 0.00794219970703125, 0.00104522705078125, 0.01288604736328125, -0.053131103515625, 0.02520751953125, 0.037872314453125, 0.063232421875, -0.017852783203125, -0.0391845703125, -0.01386260986328125, 0.034027099609375, -0.046783447265625, -0.06024169921875, -0.012176513671875, -0.06884765625, 0.0166015625, -0.0284881591796875, -0.0265960693359375, -0.0021305084228515625, -0.01117706298828125, 0.0055389404296875, -0.0232391357421875, -0.01806640625, -0.0269775390625, -0.061737060546875, -0.06494140625, -0.00704193115234375, 0.01251220703125, 0.0435791015625, 0.001995086669921875, 0.0643310546875, -0.01044464111328125, -0.069580078125, -0.023590087890625, -0.00746917724609375, -0.017364501953125, 0.0163421630859375, 0.03271484375, -0.031768798828125, -0.000835418701171875, 0.00283050537109375, 0.015594482421875, 0.0296783447265625, -0.02618408203125, -0.0128326416015625, -0.037933349609375, -0.05633544921875, -0.038360595703125, 0.06207275390625, 0.054718017578125, -0.041717529296875, 0.004665374755859375, -0.0645751953125, -0.01473236083984375, -0.007770538330078125, -0.047607421875, 0.0243682861328125, 0.041595458984375, -0.02130126953125, -0.0007033348083496094, -0.0113677978515625, -0.04144287109375, -0.005519866943359375, -0.0033435821533203125, 0.006946563720703125, 0.0284423828125, -0.036163330078125, -0.05181884765625, 0.005069732666015625, 0.0066375732421875, -0.01323699951171875, 0.05401611328125, -0.00041604042053222656, 0.037933349609375, -0.0293426513671875, 0.0526123046875, -0.075927734375, -0.035888671875, 0.020111083984375, -0.03857421875, 0.036834716796875, -0.06231689453125, -0.01256561279296875, -0.039337158203125, 0.0677490234375, -0.0121307373046875, -0.017059326171875, -0.002338409423828125, 0.0201873779296875, -0.03399658203125, -0.01097869873046875, -0.030609130859375, 0.00984954833984375, -0.12017822265625, 0.0269622802734375, 0.0053863525390625, -0.03912353515625, -0.03399658203125, 0.03424072265625, -0.09283447265625, -0.04119873046875, 0.025177001953125, 0.00014162063598632812, -0.027313232421875, 0.0169525146484375, -0.042816162109375, -0.0154571533203125, -0.0010662078857421875, 0.0029296875, -0.06915283203125, -0.004669189453125, -0.0675048828125, 0.044097900390625, 0.056427001953125, -0.010589599609375, -0.0042724609375, 0.0218658447265625, 0.037811279296875, 0.050079345703125, -0.00620269775390625, -0.01123809814453125, -0.0014448165893554688, -0.0283355712890625, 0.01947021484375, -0.033203125, 0.00047206878662109375, -0.01117706298828125, -0.0161590576171875, 0.023345947265625, -0.0357666015625, -0.001224517822265625, -0.013214111328125, -0.035980224609375, -0.0175628662109375, 0.0090789794921875, -0.006198883056640625, 0.005901336669921875, -0.006885528564453125, -0.00341033935546875, 0.0016317367553710938, -0.02581787109375, 0.034820556640625, -0.026519775390625, -0.00971221923828125, -0.0010480880737304688, 0.06982421875, 0.0222320556640625, -0.02044677734375, -0.0005822181701660156, -0.009521484375, 0.049285888671875, 0.041778564453125, -0.036865234375, -0.0154571533203125, -0.048828125, 0.0082244873046875, 0.04986572265625, -0.0202178955078125, -0.0027256011962890625, 0.036224365234375, 0.0283966064453125, 0.0034942626953125, -0.01910400390625, 0.0007419586181640625, 0.0277557373046875, -0.01378631591796875, -0.03363037109375, -0.00582122802734375, -0.0297393798828125, 0.032012939453125, -0.0184173583984375, 0.0848388671875, -0.035247802734375, -0.0022640228271484375, -0.00992584228515625, 0.037506103515625, 0.0164794921875, -0.006195068359375, 0.021697998046875, -0.0182037353515625, 0.0187835693359375, 0.00933074951171875, -0.00957489013671875, 0.01078033447265625, -0.0237884521484375, 0.050567626953125, -0.027618408203125, -0.011199951171875, -0.00807952880859375, -0.00913238525390625, 0.0272979736328125, 0.0234527587890625, -0.0249786376953125, -0.0208587646484375, 0.010650634765625, 0.0552978515625, -0.008148193359375, -0.016265869140625, 0.03485107421875, 0.03118896484375, -0.04656982421875, -0.0184783935546875, 0.00550079345703125, -0.01715087890625, -0.043304443359375, -0.0100860595703125, -0.00011640787124633789, -0.03009033203125, 0.03851318359375, -0.0401611328125, 0.034149169921875, -0.039093017578125, -0.0261688232421875, 0.01418304443359375, 0.038726806640625, -0.0043487548828125, 0.01267242431640625, 0.0210418701171875, -0.00409698486328125, -0.0226593017578125, 0.02569580078125, -0.017425537109375, 0.00397491455078125, 0.0159149169921875, 0.030181884765625, -0.022705078125, -0.0109100341796875, 0.02978515625, -0.027099609375, -0.0147552490234375, 0.055908203125, 0.0305023193359375, -0.0447998046875, -0.0186920166015625, 0.027618408203125, 0.0242919921875, -0.0087738037109375, -0.015045166015625, 0.016143798828125, -0.00453948974609375, 0.019622802734375, -0.01568603515625, -0.0119476318359375, 0.000789642333984375, 0.0046844482421875, -0.03619384765625, -0.0093994140625, 0.01554107666015625, -0.01235198974609375, -0.0241851806640625, -0.0094146728515625, -0.032379150390625, 0.041900634765625, 0.0004773139953613281, 0.018218994140625, -0.038055419921875, -0.01206207275390625, -0.01216888427734375, -0.0037059783935546875, 0.07598876953125, 0.030059814453125, -0.059051513671875, 0.010162353515625, -0.045074462890625, -0.0112152099609375, -0.048828125, -0.062103271484375, -0.0611572265625, -0.00472259521484375, -0.001979827880859375, 0.023345947265625, -0.005985260009765625, 0.022918701171875, 0.021575927734375, 0.022918701171875, -0.0196685791015625, 0.038421630859375, -0.001422882080078125, 0.0682373046875, -0.015655517578125, 0.048065185546875, 0.020263671875, 0.027679443359375, -0.0107269287109375, -0.0189208984375, -0.010894775390625, 0.01468658447265625, 0.01482391357421875, 0.002960205078125, 0.0189361572265625, -0.0140228271484375, 0.053497314453125, -0.006206512451171875, -0.003200531005859375, -0.035675048828125, -0.0094757080078125, -0.02398681640625, 0.04705810546875, -0.02557373046875, -0.0243072509765625, 0.0205535888671875, -0.051116943359375, -0.046875, 0.005588531494140625, 0.022003173828125, 0.031707763671875, -0.0435791015625, -0.0020160675048828125, 0.0251617431640625, -0.01898193359375, 0.059295654296875, 0.08782958984375, -0.03094482421875, 0.0311737060546875, 0.0404052734375, -0.00473785400390625, 0.03533935546875, -0.003849029541015625, 0.01226043701171875, 0.00677490234375, 0.061309814453125, 0.0106201171875, -0.006221771240234375, 0.047943115234375, -0.027435302734375, 0.0312347412109375, 0.04522705078125, 0.08892822265625, -0.0631103515625, 0.0204925537109375, 0.034027099609375, -0.00982666015625, 0.0266876220703125, -0.0148468017578125, -0.0158233642578125, -0.03204345703125, 0.0655517578125, -0.0174713134765625, -0.002674102783203125, 0.01904296875, -0.010955810546875, -0.01494598388671875, -0.003955841064453125, 0.0292205810546875, 0.01360321044921875, -0.00150299072265625, -0.007343292236328125, 0.002185821533203125, -0.000002384185791015625, -0.0272674560546875, -0.0147247314453125, 0.007080078125, -0.03387451171875, -0.05670166015625, 0.000682830810546875, -0.006420135498046875, 0.0126190185546875, -0.035125732421875, -0.0093231201171875, 0.0198822021484375, 0.02532958984375, -0.0158233642578125, -0.0220794677734375, 0.0186767578125, 0.00012433528900146484, -0.04815673828125, -0.021697998046875, 0.040802001953125, 0.0224151611328125, -0.035247802734375, 0.0361328125, -0.0214996337890625, -0.038421630859375, -0.016387939453125, -0.025177001953125, 0.056640625, -0.029510498046875, -0.009521484375, 0.039276123046875, 0.0299530029296875, -0.0201263427734375, 0.03582763671875, 0.0280914306640625, -0.0187530517578125, -0.02142333984375, 0.030029296875, -0.0225677490234375, -0.02276611328125, 0.0283660888671875, -0.031280517578125, 0.1322021484375, -0.02191162109375, -0.020538330078125, 0.0021572113037109375, 0.0628662109375, -0.0284271240234375, 0.04833984375, -0.0521240234375, 0.057525634765625, 0.003986358642578125, 0.0302276611328125, -0.0311279296875, 0.0049591064453125, 0.003070831298828125, -0.0089874267578125, 0.009613037109375, 0.00445556640625, -0.01678466796875, 0.0027904510498046875, 0.01617431640625, 0.028778076171875, -0.008819580078125, 0.032012939453125, -0.0006122589111328125, 0.015045166015625, 0.00664520263671875, -0.0204010009765625, 0.039276123046875, -0.045928955078125, -0.030181884765625, 0.01520538330078125, 0.002063751220703125, 0.0007643699645996094, -0.0036602020263671875, 0.055633544921875, -0.04925537109375, -0.00084686279296875, 0.0192718505859375, 0.005077362060546875, -0.0068511962890625, 0.034881591796875, -0.006195068359375, 0.04248046875, 0.0296783447265625, -0.028106689453125, 0.0214996337890625, -0.033233642578125, 0.0000546574592590332, 0.02655029296875, 0.01068878173828125, -0.032135009765625, 0.0166778564453125, 0.0011081695556640625, 0.039886474609375, -0.02008056640625, 0.06317138671875, 0.00907135009765625, 0.036407470703125, -0.0108489990234375, 0.035247802734375, -0.006580352783203125, 0.054595947265625, -0.04119873046875, -0.0265960693359375, 0.0024166107177734375, -0.0153045654296875, 0.00014591217041015625, -0.0058746337890625, 0.0036983489990234375, -0.0240478515625, -0.02093505859375, -0.006290435791015625, -0.0285186767578125, 0.00273895263671875, 0.045623779296875, 0.00853729248046875, 0.005702972412109375, -0.017120361328125, -0.055938720703125, -0.01465606689453125, 0.02276611328125, -0.0024623870849609375, 0.017059326171875, -0.04754638671875, 0.0743408203125, -0.03900146484375, 0.019378662109375, -0.008514404296875, 0.050537109375, -0.0213165283203125, 0.0267333984375, -0.036956787109375, -0.0595703125, -0.0260162353515625, 0.048187255859375, 0.034423828125, 0.0182647705078125, 0.04388427734375, 0.05938720703125, -0.005161285400390625, 0.01441192626953125, 0.03570556640625, -0.0024871826171875, 0.00140380859375, -0.03326416015625, 0.037841796875, 0.02215576171875, 0.0103302001953125, -0.0281219482421875, 0.0168304443359375, 0.054931640625, -0.0236968994140625, 0.01209259033203125, -0.005802154541015625, -0.027862548828125, 0.0269622802734375, -0.0129547119140625, 0.049896240234375, 0.003143310546875, 0.0010461807250976562, 0.0019025802612304688, -0.00986480712890625, -0.0172271728515625, -0.00727081298828125, 0.0210723876953125, -0.00601959228515625, 0.018463134765625, -0.0172271728515625, 0.0269012451171875, -0.001556396484375, -0.024200439453125, -0.00473785400390625, 0.01436614990234375, 0.044097900390625, 0.0201263427734375, -0.0036773681640625, -0.0096588134765625, -0.0191497802734375, 0.055877685546875, 0.01264190673828125, 0.059478759765625, -0.037567138671875, 0.03118896484375, -0.00677490234375, 0.032440185546875, -0.0325927734375, -0.0106658935546875, 0.028411865234375, 0.004779815673828125, -0.0033016204833984375, -0.0205535888671875, -0.06329345703125, 0.0085296630859375, 0.040069580078125, 0.0023593902587890625, 0.012847900390625, -0.0093536376953125, 0.042022705078125, -0.0078277587890625, -0.0025577545166015625, -0.0298309326171875, -0.06378173828125, -0.03466796875, 0.020263671875, -0.00817108154296875, 0.018890380859375, 0.00213623046875, -0.0092315673828125, -0.029876708984375, 0.054931640625, -0.00971221923828125, 0.08013916015625, -0.047882080078125, 0.0026454925537109375, -0.08758544921875, 0.010955810546875, 0.02587890625, -0.01302337646484375, 0.042144775390625, 0.01055908203125, 0.04193115234375, 0.01331329345703125, 0.00794219970703125, -0.031982421875, -0.007511138916015625, 0.0291290283203125, -0.00945281982421875, 0.02484130859375, -0.0307769775390625, 0.0117950439453125, 0.01197052001953125, -0.0289764404296875, -0.0181121826171875, -0.041595458984375, 0.0016002655029296875, 0.0165863037109375, -0.0208282470703125, 0.00719451904296875, -0.017852783203125, 0.00907135009765625, 0.04949951171875, 0.01338958740234375, -0.0762939453125, 0.055145263671875, -0.020843505859375, 0.024658203125, -0.01763916015625, -0.042724609375, 0.0229034423828125, 0.046417236328125, -0.031341552734375, -0.0212249755859375, -0.026824951171875, -0.0008244514465332031, -0.03472900390625, 0.004138946533203125, 0.034454345703125, -0.00589752197265625, -0.0631103515625, -0.007419586181640625, -0.0035305023193359375, 0.03253173828125, 0.03692626953125, -0.015167236328125, 0.0283660888671875, 0.005046844482421875, 0.009490966796875, -0.0792236328125, -0.005680084228515625, -0.059906005859375, 0.01300811767578125, -0.0243988037109375, 0.01200103759765625, 0.030975341796875, -0.03338623046875, -0.070556640625, 0.01593017578125, -0.0169830322265625, -0.039398193359375, -0.0740966796875, 0.023773193359375, 0.0008578300476074219, -0.0215606689453125, -0.04443359375, 0.024749755859375, -0.01568603515625, 0.04754638671875, -0.0018825531005859375, 0.028350830078125, -0.007175445556640625, 0.0166778564453125, -0.049102783203125, 0.0000022649765014648438, -0.00884246826171875, -0.0216827392578125, 0.030426025390625, -0.050750732421875, 0.05108642578125, 0.05120849609375, -0.039947509765625, -0.021942138671875, -0.004604339599609375, -0.033935546875, -0.0021266937255859375, -0.0255126953125, -0.02288818359375, -0.017791748046875, 0.041412353515625, 0.0123291015625, 0.0172271728515625, 0.002902984619140625, -0.00489044189453125, 0.0078125, -0.01456451416015625, -0.00960540771484375, 0.0211334228515625, -0.05352783203125, -0.024505615234375, 0.00276947021484375, -0.0014467239379882812, -0.0190887451171875, -0.02691650390625, -0.01198577880859375, -0.01175689697265625, 0.0218048095703125, 0.038787841796875, -0.023162841796875, -0.0455322265625, 0.0819091796875, -0.0241241455078125, 0.035186767578125, 0.04522705078125, 0.0164642333984375, 0.06439208984375, 0.0850830078125, 0.0296173095703125, 0.062469482421875, -0.028839111328125, -0.00852203369140625, 0.0330810546875, 0.0130767822265625, -0.006404876708984375, -0.0181732177734375, 0.006114959716796875, 0.0229034423828125, -0.0172271728515625, 0.01316070556640625, -0.0396728515625, 0.05645751953125, -0.00969696044921875, 0.098876953125, -0.0233001708984375, 0.0750732421875, -0.01113128662109375, 0.031463623046875, -0.01448822021484375, 0.0123291015625, 0.0309600830078125, -0.046356201171875, 0.00577545166015625, 0.0170135498046875, 0.0217437744140625, -0.0308837890625, 0.03375244140625, 0.0220794677734375, 0.002246856689453125, 0.0189208984375 ]
463a4cbd6fc62367396758868e3be7362c74f7ef
Wordpress Stackexchange Q: How add class youtube and type/html to oembed code? How can i add : class="youtube-player" type="text/html" to iframe like : function Oembed_youtube_no_title($html,$url,$args){ $url_string = parse_url($url, PHP_URL_QUERY); parse_str($url_string, $id); if (isset($id['v'])) { return '<iframe class="youtube-player" type="text/html" src="https://www.youtube.com/embed/' .$id['v'].'?vq=large&autohide=1&autoplay=1&fs=1&hl=fr&rel=0&loop=1" frameborder="0" allowfullscreen></iframe>'; } return $html; } A: You can try this: add_filter( 'embed_oembed_html', 'custom_youtube_oembed' ); function custom_youtube_oembed( $code ){ if( stripos( $code, 'youtube.com' ) !== FALSE && stripos( $code, 'iframe' ) !== FALSE ) $code = str_replace( '<iframe', '<iframe class="youtube-player" type="text/html" ', $code ); return $code; } to target the YouTube oembed HTML output. When I embed this YouTube link (Kraftwerk) into the post content http://youtu.be/VXa9tXcMhXQ I get this HTML output: <iframe class="youtube-player" type="text/html" width="625" height="469" src="http://www.youtube.com/embed/VXa9tXcMhXQ?feature=oembed" frameborder="0" allowfullscreen></iframe> with the above filter.
Q: How add class youtube and type/html to oembed code? How can i add : class="youtube-player" type="text/html" to iframe like : function Oembed_youtube_no_title($html,$url,$args){ $url_string = parse_url($url, PHP_URL_QUERY); parse_str($url_string, $id); if (isset($id['v'])) { return '<iframe class="youtube-player" type="text/html" src="https://www.youtube.com/embed/' .$id['v'].'?vq=large&autohide=1&autoplay=1&fs=1&hl=fr&rel=0&loop=1" frameborder="0" allowfullscreen></iframe>'; } return $html; } A: You can try this: add_filter( 'embed_oembed_html', 'custom_youtube_oembed' ); function custom_youtube_oembed( $code ){ if( stripos( $code, 'youtube.com' ) !== FALSE && stripos( $code, 'iframe' ) !== FALSE ) $code = str_replace( '<iframe', '<iframe class="youtube-player" type="text/html" ', $code ); return $code; } to target the YouTube oembed HTML output. When I embed this YouTube link (Kraftwerk) into the post content http://youtu.be/VXa9tXcMhXQ I get this HTML output: <iframe class="youtube-player" type="text/html" width="625" height="469" src="http://www.youtube.com/embed/VXa9tXcMhXQ?feature=oembed" frameborder="0" allowfullscreen></iframe> with the above filter. A: Just to add to birgire's solution above, if you want to also get rid of the width and height so that you can fully control the css, adding this worked for me: $code = str_replace( 'width="640"', '', $code ); $code = str_replace( 'height="360"', '', $code ); Not sure this won't cause other problems, but tested and seems to work.
wordpress
{ "language": "en", "length": 181, "provenance": "stackexchange_00019.jsonl.gz:432598", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/99978" }
[ 0.06707763671875, 0.01690673828125, -0.030792236328125, -0.04248046875, 0.047882080078125, -0.04150390625, 0.037078857421875, -0.01678466796875, -0.0723876953125, 0.0118865966796875, -0.004711151123046875, 0.03533935546875, -0.0221405029296875, -0.035003662109375, 0.06085205078125, -0.02587890625, 0.01369476318359375, 0.0245513916015625, 0.01396942138671875, -0.0182647705078125, -0.00875091552734375, -0.004302978515625, 0.011993408203125, -0.03338623046875, -0.003360748291015625, -0.03143310546875, 0.10107421875, -0.03607177734375, -0.0018548965454101562, -0.0186920166015625, 0.00669097900390625, -0.0006127357482910156, 0.048675537109375, 0.01378631591796875, -0.0286712646484375, 0.0233306884765625, 0.007320404052734375, -0.00376129150390625, 0.004352569580078125, 0.0048675537109375, -0.002109527587890625, -0.01314544677734375, 0.07647705078125, -0.00370025634765625, 0.013702392578125, 0.028656005859375, -0.024993896484375, -0.0474853515625, 0.009033203125, -0.034912109375, 0.0179443359375, -0.001964569091796875, 0.014007568359375, -0.046051025390625, -0.006072998046875, 0.035186767578125, -0.039825439453125, -0.01461029052734375, -0.001224517822265625, 0.033660888671875, 0.0404052734375, 0.01337432861328125, -0.0009822845458984375, 0.030487060546875, -0.00799560546875, -0.03656005859375, 0.0103759765625, 0.01194000244140625, -0.0338134765625, -0.01528167724609375, 0.038360595703125, 0.01137542724609375, -0.00736236572265625, -0.01812744140625, -0.034423828125, 0.0110321044921875, 0.01143646240234375, -0.002193450927734375, -0.0010204315185546875, -0.007022857666015625, 0.061126708984375, 0.0251312255859375, 0.044158935546875, -0.045166015625, 0.0180816650390625, -0.0270538330078125, -0.00588226318359375, -0.0226287841796875, -0.007724761962890625, -0.0272979736328125, -0.0164642333984375, -0.04522705078125, 0.009918212890625, 0.0026721954345703125, -0.05047607421875, -0.005313873291015625, 0.023406982421875, 0.039703369140625, -0.01715087890625, 0.01226806640625, 0.00299072265625, -0.034698486328125, 0.042327880859375, -0.06884765625, 0.0275726318359375, 0.051727294921875, 0.02471923828125, -0.037261962890625, 0.015106201171875, -0.03375244140625, -0.0037021636962890625, 0.04656982421875, -0.0033664703369140625, -0.01483154296875, -0.05523681640625, 0.0019588470458984375, -0.032257080078125, -0.04498291015625, -0.0011262893676757812, -0.033935546875, 0.004261016845703125, 0.0258331298828125, 0.01226806640625, -0.0009632110595703125, -0.032318115234375, -0.011199951171875, -0.0040130615234375, -0.0440673828125, 0.0008883476257324219, -0.0019350051879882812, -0.056915283203125, 0.0200958251953125, 0.079833984375, 0.04693603515625, 0.0298004150390625, -0.021697998046875, 0.03863525390625, -0.03204345703125, -0.0295257568359375, 0.05419921875, -0.057220458984375, -0.045013427734375, -0.00028324127197265625, -0.049468994140625, 0.01235198974609375, 0.0206146240234375, 0.0022258758544921875, 0.0032958984375, 0.006710052490234375, -0.049224853515625, 0.0224609375, -0.0231170654296875, 0.01192474365234375, 0.020294189453125, 0.02178955078125, 0.0014410018920898438, 0.0634765625, -0.02825927734375, -0.014892578125, -0.02813720703125, -0.017364501953125, -0.01462554931640625, 0.03887939453125, 0.0102081298828125, -0.0015411376953125, 0.0017604827880859375, -0.03961181640625, -0.00569915771484375, 0.00566864013671875, 0.019317626953125, -0.013946533203125, 0.01178741455078125, 0.0153961181640625, -0.009368896484375, -0.019683837890625, -0.0051727294921875, 0.0172119140625, -0.0185394287109375, 0.0245513916015625, 0.01323699951171875, -0.005207061767578125, -0.0164947509765625, 0.058502197265625, -0.041046142578125, -0.04339599609375, 0.0416259765625, 0.017547607421875, 0.059051513671875, -0.0105743408203125, 0.028045654296875, 0.056671142578125, 0.015716552734375, 0.00458526611328125, -0.00429534912109375, 0.01432037353515625, -0.06329345703125, 0.01461029052734375, -0.042205810546875, -0.0047454833984375, 0.042022705078125, 0.0121917724609375, 0.0003094673156738281, 0.009918212890625, 0.01084136962890625, -0.006877899169921875, 0.001495361328125, -0.005527496337890625, 0.0282135009765625, -0.0039825439453125, 0.01036834716796875, 0.00927734375, -0.00905609130859375, -0.027313232421875, 0.034271240234375, -0.005855560302734375, 0.00907135009765625, -0.006626129150390625, 0.057647705078125, -0.0236358642578125, 0.041748046875, -0.030670166015625, -0.06317138671875, -0.0224609375, 0.01554107666015625, 0.01267242431640625, -0.024566650390625, 0.003734588623046875, -0.00972747802734375, 0.011871337890625, 0.0235595703125, -0.0254058837890625, 0.016448974609375, 0.07958984375, 0.02996826171875, -0.07159423828125, -0.0171966552734375, -0.050628662109375, -0.039093017578125, -0.01044464111328125, 0.075439453125, 0.06219482421875, 0.03826904296875, 0.024871826171875, -0.0160980224609375, 0.0894775390625, 0.024871826171875, 0.03887939453125, -0.048919677734375, -0.01241302490234375, -0.0037078857421875, 0.0033931732177734375, -0.006214141845703125, 0.0289459228515625, -0.0670166015625, 0.0279541015625, 0.0380859375, -0.0236358642578125, 0.0245208740234375, -0.057403564453125, 0.049102783203125, -0.0296173095703125, 0.0094451904296875, 0.036468505859375, -0.0272979736328125, 0.050018310546875, -0.003131866455078125, 0.04486083984375, 0.030548095703125, -0.02679443359375, 0.0018768310546875, 0.0178985595703125, 0.0283355712890625, -0.0203704833984375, 0.07135009765625, 0.04339599609375, -0.0287628173828125, -0.0218505859375, -0.0256805419921875, -0.0006427764892578125, 0.03851318359375, 0.0117645263671875, 0.043975830078125, 0.0148468017578125, -0.020172119140625, 0.0108795166015625, -0.0158233642578125, 0.0023632049560546875, 0.0047454833984375, -0.0130157470703125, -0.012969970703125, 0.00806427001953125, 0.00875091552734375, -0.049102783203125, 0.0401611328125, -0.0135498046875, -0.0300140380859375, 0.019012451171875, -0.06658935546875, 0.061248779296875, -0.058624267578125, 0.0016345977783203125, 0.0418701171875, -0.0151519775390625, 0.00429534912109375, -0.0126800537109375, -0.035186767578125, -0.027313232421875, 0.0035457611083984375, -0.03875732421875, -0.060577392578125, -0.047882080078125, -0.00634765625, 0.022125244140625, 0.0205230712890625, -0.007610321044921875, -0.050201416015625, -0.0203704833984375, 0.0167083740234375, -0.08441162109375, -0.029541015625, 0.05474853515625, -0.053070068359375, -0.01102447509765625, 0.033782958984375, -0.051300048828125, -0.01284027099609375, 0.0745849609375, -0.002044677734375, 0.011749267578125, -0.01971435546875, -0.0020160675048828125, -0.00972747802734375, -0.051055908203125, -0.0040283203125, 0.01181793212890625, -0.002864837646484375, 0.01320648193359375, -0.0706787109375, 0.0010585784912109375, 0.0135498046875, 0.05157470703125, 0.0440673828125, -0.0003981590270996094, -0.01629638671875, 0.005096435546875, -0.0474853515625, -0.0298309326171875, -0.01445770263671875, -0.0201263427734375, -0.0022869110107421875, 0.0162353515625, 0.01273345947265625, 0.00014770030975341797, -0.017486572265625, 0.00021564960479736328, -0.006801605224609375, 0.007289886474609375, 0.00983428955078125, 0.0216217041015625, -0.031646728515625, -0.0033092498779296875, 0.02069091796875, 0.0037364959716796875, 0.0086822509765625, -0.035186767578125, -0.0155029296875, 0.0117034912109375, 0.032928466796875, -0.00543212890625, -0.017181396484375, 0.030792236328125, -0.02349853515625, -0.01629638671875, -0.018707275390625, 0.0045928955078125, 0.00936126708984375, -0.0033206939697265625, -0.024658203125, 0.0197296142578125, 0.0007987022399902344, 0.0017042160034179688, -0.01473236083984375, 0.047882080078125, -0.048095703125, -0.007160186767578125, 0.045196533203125, -0.0167083740234375, 0.045654296875, -0.055389404296875, -0.0283203125, -0.03887939453125, 0.06622314453125, -0.041961669921875, -0.006214141845703125, 0.028045654296875, -0.0025119781494140625, 0.0038356781005859375, -0.007785797119140625, -0.0731201171875, -0.01212310791015625, -0.0330810546875, 0.01111602783203125, -0.00743865966796875, -0.0180816650390625, -0.00024366378784179688, -0.007198333740234375, -0.0078125, -0.0167388916015625, 0.0177001953125, -0.0027179718017578125, -0.01531219482421875, 0.06756591796875, -0.040771484375, 0.05596923828125, -0.03485107421875, -0.02105712890625, -0.046295166015625, -0.00969696044921875, 0.0002218484878540039, 0.0292816162109375, 0.01275634765625, -0.0172271728515625, -0.0231475830078125, 0.043731689453125, 0.00666046142578125, 0.00998687744140625, 0.0053863525390625, 0.000010609626770019531, -0.003932952880859375, 0.020782470703125, 0.0191650390625, -0.01605224609375, 0.0008273124694824219, 0.006961822509765625, -0.0077056884765625, 0.059539794921875, 0.00959014892578125, -0.00543212890625, 0.039276123046875, -0.0241546630859375, -0.0938720703125, -0.03240966796875, 0.03228759765625, -0.011077880859375, 0.003971099853515625, -0.0013818740844726562, -0.01004791259765625, -0.047271728515625, 0.0220947265625, 0.0227203369140625, -0.038055419921875, 0.0128936767578125, 0.0184326171875, 0.0196990966796875, -0.03277587890625, -0.0024623870849609375, 0.03472900390625, 0.0242919921875, -0.016510009765625, 0.024139404296875, 0.0203399658203125, -0.00751495361328125, 0.01092529296875, -0.03326416015625, 0.0223541259765625, 0.01464080810546875, 0.03082275390625, 0.0074310302734375, 0.00473785400390625, -0.0008883476257324219, 0.0137939453125, -0.0416259765625, -0.0300140380859375, -0.033721923828125, 0.01947021484375, 0.03021240234375, 0.00634765625, -0.0184173583984375, 0.03143310546875, 0.0014867782592773438, -0.009307861328125, -0.00618743896484375, -0.01004791259765625, 0.056549072265625, 0.0294342041015625, 0.00391387939453125, 0.01454925537109375, 0.0186920166015625, 0.0202789306640625, 0.0160980224609375, -0.0237274169921875, -0.00943756103515625, 0.04803466796875, 0.005474090576171875, 0.01105499267578125, 0.041473388671875, 0.005367279052734375, 0.0191192626953125, 0.02020263671875, -0.0126495361328125, -0.024444580078125, 0.0070343017578125, 0.0166015625, -0.0205230712890625, 0.0175323486328125, 0.022369384765625, 0.04376220703125, 0.016632080078125, -0.01160430908203125, 0.0005040168762207031, 0.05853271484375, -0.02252197265625, 0.0276031494140625, 0.0325927734375, 0.0028018951416015625, -0.038360595703125, 0.08050537109375, 0.043121337890625, 0.000021398067474365234, -0.020233154296875, 0.044036865234375, 0.020782470703125, 0.045257568359375, 0.0200042724609375, -0.038482666015625, -0.0093994140625, 0.02288818359375, -0.058441162109375, 0.0195159912109375, 0.0218658447265625, -0.00039505958557128906, -0.00701904296875, -0.00536346435546875, -0.007061004638671875, 0.0254974365234375, -0.02117919921875, -0.0298004150390625, -0.0211029052734375, 0.0126190185546875, 0.0259552001953125, -0.00942230224609375, -0.007904052734375, -0.00225067138671875, 0.057708740234375, -0.03399658203125, 0.026397705078125, -0.0225677490234375, 0.0084991455078125, 0.032012939453125, -0.039306640625, 0.007633209228515625, 0.010040283203125, -0.012176513671875, -0.0222625732421875, -0.01140594482421875, -0.062225341796875, -0.02001953125, -0.03460693359375, -0.01395416259765625, 0.07366943359375, -0.052734375, 0.042694091796875, -0.0071563720703125, -0.0095367431640625, 0.01534271240234375, 0.01519775390625, 0.01239776611328125, 0.01532745361328125, -0.044097900390625, -0.0195159912109375, -0.0496826171875, -0.0262451171875, -0.059722900390625, -0.0277557373046875, -0.03240966796875, 0.0233917236328125, -0.058349609375, -0.024566650390625, -0.024871826171875, 0.05792236328125, 0.00560760498046875, 0.087890625, -0.008880615234375, 0.021087646484375, -0.02569580078125, 0.060150146484375, 0.0183258056640625, 0.031005859375, 0.01361846923828125, 0.04620361328125, 0.004413604736328125, -0.0289154052734375, -0.002918243408203125, -0.02459716796875, -0.017242431640625, 0.018585205078125, -0.0239715576171875, -0.005096435546875, 0.032867431640625, -0.0013217926025390625, 0.0118865966796875, 0.0033817291259765625, -0.024566650390625, -0.0318603515625, 0.05596923828125, 0.012542724609375, 0.06689453125, -0.0122222900390625, 0.0047760009765625, 0.06683349609375, -0.03759765625, -0.00965118408203125, -0.006458282470703125, -0.024444580078125, 0.01529693603515625, 0.00818634033203125, -0.06561279296875, 0.057098388671875, 0.052459716796875, -0.00550079345703125, 0.04949951171875, -0.01218414306640625, 0.00858306884765625, 0.037017822265625, 0.004913330078125, -0.024566650390625, 0.0206298828125, 0.03729248046875, -0.004993438720703125, -0.00089263916015625, 0.03851318359375, -0.0181121826171875, 0.007549285888671875, -0.0122833251953125, 0.044952392578125, -0.006099700927734375, 0.01416778564453125, 0.00603485107421875, -0.0270843505859375, 0.0162353515625, 0.001201629638671875, 0.007678985595703125, -0.0265045166015625, 0.050628662109375, -0.0114288330078125, 0.0023326873779296875, 0.0189056396484375, -0.005863189697265625, 0.00313568115234375, 0.00479888916015625, 0.019500732421875, -0.004894256591796875, -0.021209716796875, -0.0028209686279296875, 0.0015773773193359375, 0.0037937164306640625, -0.0189666748046875, 0.045989990234375, -0.00957489013671875, 0.01445770263671875, -0.0309600830078125, 0.039794921875, -0.00948333740234375, -0.0074615478515625, -0.00226593017578125, 0.0178375244140625, 0.0136260986328125, 0.035552978515625, -0.002201080322265625, -0.00835418701171875, 0.01392364501953125, -0.01873779296875, 0.0265655517578125, 0.025787353515625, 0.021270751953125, -0.001308441162109375, -0.0179901123046875, -0.0090484619140625, -0.0452880859375, 0.03302001953125, -0.0018301010131835938, 0.003955841064453125, 0.0204620361328125, 0.0022602081298828125, -0.0325927734375, 0.032318115234375, 0.0048370361328125, -0.01507568359375, -0.0283660888671875, 0.0256195068359375, -0.051055908203125, 0.005153656005859375, -0.01129150390625, -0.0157928466796875, -0.019287109375, -0.0445556640625, -0.0723876953125, 0.08111572265625, 0.028533935546875, 0.00958251953125, -0.0014133453369140625, 0.0435791015625, -0.036224365234375, 0.0012836456298828125, -0.0005636215209960938, 0.05560302734375, 0.040008544921875, -0.039459228515625, 0.0026760101318359375, 0.002899169921875, -0.011444091796875, 0.01154327392578125, -0.016021728515625, 0.010162353515625, -0.046630859375, -0.00464630126953125, 0.02618408203125, 0.056243896484375, 0.033721923828125, 0.0019855499267578125, -0.02435302734375, 0.03955078125, 0.0083160400390625, -0.0435791015625, 0.0147705078125, -0.0250701904296875, -0.05828857421875, 0.005298614501953125, -0.0021514892578125, -0.0092926025390625, 0.0222930908203125, -0.020111083984375, -0.041961669921875, 0.025421142578125, 0.003711700439453125, -0.00379180908203125, -0.01007843017578125, 0.07220458984375, 0.0283355712890625, -0.08465576171875, -0.0270843505859375, -0.05059814453125, 0.04376220703125, -0.01001739501953125, -0.0100860595703125, 0.0013637542724609375, -0.005084991455078125, 0.0283050537109375, -0.0110626220703125, -0.02044677734375, -0.005641937255859375, 0.0433349609375, 0.0400390625, 0.0145721435546875, 0.02423095703125, -0.03729248046875, 0.00634765625, 0.03070068359375, 0.0474853515625, -0.033966064453125, -0.0210723876953125, 0.0067596435546875, 0.00518035888671875, 0.00560760498046875, -0.021881103515625, 0.0046844482421875, -0.06488037109375, -0.032745361328125, -0.01313018798828125, 0.0158538818359375, 0.011077880859375, 0.040130615234375, 0.0139007568359375, 0.0054931640625, -0.057861328125, -0.004291534423828125, -0.0677490234375, 0.02490234375, 0.0198516845703125, 0.0760498046875, 0.032073974609375, 0.0682373046875, -0.0004584789276123047, -0.034637451171875, -0.0111541748046875, 0.01210784912109375, 0.0021266937255859375, -0.01373291015625, -0.021514892578125, -0.040283203125, 0.0482177734375, 0.03289794921875, 0.033203125, -0.017333984375, -0.0274658203125, -0.0245819091796875, 0.022003173828125, 0.017547607421875, 0.016326904296875, -0.0197601318359375, 0.0017871856689453125, -0.0211334228515625, -0.00494384765625, 0.0157318115234375, -0.008026123046875, 0.0034694671630859375, -0.0301971435546875, 0.06170654296875, -0.01103973388671875, 0.03509521484375, 0.0006237030029296875, -0.005496978759765625, -0.00243377685546875, -0.0305023193359375, 0.02996826171875, 0.0098114013671875, -0.031036376953125, 0.0016088485717773438, -0.0163421630859375, -0.06671142578125, 0.03564453125, 0.05218505859375, -0.01129150390625, 0.00458526611328125, 0.052459716796875, -0.00429534912109375, -0.00795745849609375, 0.014495849609375, 0.01593017578125, -0.0284271240234375, 0.01122283935546875, 0.0136260986328125, -0.033935546875, -0.0261383056640625, -0.01219940185546875, 0.03887939453125, 0.0267181396484375, 0.00428009033203125, -0.002010345458984375, 0.036163330078125, -0.01104736328125, -0.0243072509765625, 0.024322509765625, -0.01039886474609375, 0.022613525390625, 0.02197265625, -0.0111236572265625, -0.02679443359375, -0.0238037109375, 0.06365966796875, 0.01221466064453125, 0.00656890869140625, 0.0308685302734375, 0.0157012939453125, 0.011260986328125, 0.0028667449951171875, -0.0227813720703125, -0.03582763671875, -0.06219482421875, -0.03936767578125, 0.021087646484375, -0.005756378173828125, 0.006000518798828125, -0.018402099609375, 0.059661865234375, 0.00391387939453125, 0.01372528076171875, 0.0029392242431640625, -0.02392578125, 0.01540374755859375, 0.025665283203125, -0.046905517578125, -0.01358795166015625, 0.0253143310546875, -0.003162384033203125, 0.043792724609375, -0.0115814208984375, 0.04443359375, 0.05218505859375, -0.04144287109375, 0.0017299652099609375, 0.054229736328125, 0.0299072265625, -0.01910400390625, 0.016937255859375, 0.0274658203125, -0.044403076171875, 0.0305633544921875, 0.0211944580078125, -0.04376220703125, -0.035888671875, 0.0112457275390625, 0.001438140869140625, -0.0208892822265625, -0.054290771484375, -0.06488037109375, 0.0187225341796875, 0.0562744140625, 0.005290985107421875, -0.06158447265625, -0.0000807046890258789, -0.0264129638671875, 0.08526611328125, -0.0025615692138671875, 0.0002677440643310547, -0.0171966552734375, -0.0250091552734375, -0.0284423828125, -0.03216552734375, -0.03466796875, 0.046051025390625, -0.02001953125, 0.0111083984375, 0.04486083984375, 0.00341033935546875, -0.00921630859375, 0.01000213623046875, 0.0029621124267578125, 0.06549072265625, -0.0986328125, -0.003314971923828125, -0.0093536376953125, -0.0018892288208007812, -0.040130615234375, -0.050567626953125, 0.020050048828125, -0.07611083984375, -0.03741455078125, 0.0587158203125, -0.05908203125, -0.032562255859375, -0.0391845703125, -0.019744873046875, -0.004413604736328125, 0.060089111328125, -0.04876708984375, 0.01308441162109375, -0.004398345947265625, -0.021697998046875, 0.0309906005859375, 0.004589080810546875, -0.00556182861328125, 0.015777587890625, 0.01763916015625, -0.01244354248046875, 0.00998687744140625, 0.0100250244140625, -0.03753662109375, -0.044830322265625, -0.013702392578125, -0.0037021636962890625, -0.03631591796875, 0.010589599609375, -0.0261993408203125, 0.060516357421875, 0.043731689453125, -0.0247650146484375, 0.0250091552734375, 0.015716552734375, 0.0187835693359375, 0.02288818359375, -0.0169525146484375, -0.0379638671875, -0.06524658203125, 0.08148193359375, -0.047515869140625, 0.01471710205078125, 0.0255126953125, -0.056182861328125, -0.032928466796875, -0.04205322265625, -0.03167724609375, 0.0221099853515625, -0.07232666015625, 0.0034198760986328125, -0.0101470947265625, 0.015350341796875, 0.0231475830078125, -0.036468505859375, -0.0161895751953125, -0.01163482666015625, -0.004730224609375, 0.024444580078125, -0.053314208984375, 0.0129241943359375, 0.0794677734375, -0.072509765625, -0.053741455078125, 0.01213836669921875, -0.0009050369262695312, 0.006317138671875, -0.06329345703125, 0.0160064697265625, -0.041107177734375, 0.0272369384765625, 0.028076171875, 0.016204833984375, 0.0132293701171875, -0.0004935264587402344, -0.033905029296875, -0.0030536651611328125, 0.01328277587890625, -0.0118408203125, 0.01010894775390625, -0.00504302978515625, -0.00011217594146728516, -0.0190887451171875, 0.041778564453125, -0.055999755859375, 0.00490570068359375, -0.013092041015625, -0.00992584228515625, 0.0208892822265625, 0.03668212890625, 0.10540771484375, -0.005222320556640625, 0.0099945068359375, 0.0215911865234375, 0.01849365234375, -0.04656982421875, 0.0421142578125, -0.07659912109375, 0.0240936279296875, 0.023681640625 ]
5a1aa5304f2e03b89e952ff0765190874f4f555d
Wordpress Stackexchange Q: Can I force get_option to go back to the DB instead of cache? Is there any way to guarantee that when I call get_option I will definitely get the value from the database and not from cache? A: You could delete an existing cache for your option before you call get_option(): $GLOBALS['wp_object_cache']->delete( 'your_option_name', 'options' ); $value = get_option( 'your_option_name' );
Q: Can I force get_option to go back to the DB instead of cache? Is there any way to guarantee that when I call get_option I will definitely get the value from the database and not from cache? A: You could delete an existing cache for your option before you call get_option(): $GLOBALS['wp_object_cache']->delete( 'your_option_name', 'options' ); $value = get_option( 'your_option_name' ); A: Using the wp_cache_delete() technic showcased by toscho, you also have to make sure your option is not on autoload. If your option is autoloaded, it'll be part of the alloptions cache so you won't be able to clear it individually. So make sure to use the following format when you set/update your option if you want to be able to clear it from the cache: update_option( 'my_key', 'my val', false ); // False being the autoload parameter add_option( 'my_key', 'my val', null, false ); // null is a deprecated argument. update_option() documentation A: Bit old question but I'll add my piece of information. I'm using WP REDIS CACHE and notified that some of my get_option were returning a cached value, instead of the real DB value. I tried @fuxia solution, but I guess this concerns autoloading. And REDIS cache was applying cache on a "lower level". I ended up with something to directly get some of my option from DB so I'm sure the value is correct: (in this example, my option name is my_option_name) function bypass_cache_custom_options_key($val, $opt) { try { global $wpdb; $query = $wpdb->get_results("SELECT * FROM $wpdb->options WHERE " . $wpdb->options . ".option_name = '$opt'"); return $query[ 0 ]->option_value; } catch (Exception $e) { } return $val; } add_filter('pre_option_my_option_name', 'bypass_cache_custom_options_key', 1, 2); see pre_get_option A: I asked the same question on WordPress support forum. Adding it here for future reference - https://wordpress.org/support/topic/force-get_option-to-read-from-the-db-instead-of-cache/
wordpress
{ "language": "en", "length": 296, "provenance": "stackexchange_00019.jsonl.gz:432618", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/100040" }
[ 0.05670166015625, -0.0045166015625, 0.0118408203125, -0.005794525146484375, 0.001369476318359375, -0.036041259765625, 0.0728759765625, -0.033233642578125, 0.052825927734375, -0.01629638671875, -0.045562744140625, -0.062042236328125, -0.0130462646484375, -0.037506103515625, -0.0247650146484375, -0.057586669921875, 0.06024169921875, -0.03497314453125, 0.041961669921875, 0.002933502197265625, 0.030059814453125, 0.043701171875, 0.0153961181640625, 0.08624267578125, 0.03289794921875, -0.06048583984375, 0.0158843994140625, 0.013671875, 0.00844573974609375, -0.02008056640625, 0.017730712890625, 0.0109405517578125, 0.01708984375, 0.01236724853515625, -0.01421356201171875, -0.01207733154296875, -0.0082855224609375, 0.015777587890625, 0.00745391845703125, 0.015899658203125, 0.0316162109375, -0.0130615234375, -0.046783447265625, 0.0038356781005859375, -0.051361083984375, -0.03118896484375, 0.0185546875, -0.01515960693359375, 0.00261688232421875, 0.027435302734375, 0.01515960693359375, 0.0223846435546875, 0.01727294921875, -0.0009241104125976562, -0.002941131591796875, -0.0186004638671875, -0.0056915283203125, 0.0016050338745117188, 0.0246429443359375, -0.0001327991485595703, -0.01861572265625, 0.00939178466796875, 0.0147857666015625, -0.0082855224609375, 0.034149169921875, -0.00777435302734375, 0.04425048828125, 0.0274200439453125, -0.06646728515625, 0.042816162109375, 0.06097412109375, -0.04736328125, 0.01123809814453125, -0.043731689453125, -0.00036978721618652344, -0.01885986328125, 0.01189422607421875, -0.0295867919921875, -0.004673004150390625, 0.01251983642578125, -0.0036640167236328125, -0.006549835205078125, -0.01210784912109375, -0.033111572265625, -0.0036449432373046875, -0.024566650390625, -0.0081024169921875, 0.006988525390625, 0.00431060791015625, -0.054901123046875, -0.0050811767578125, -0.04425048828125, -0.01006317138671875, 0.01033782958984375, -0.032379150390625, -0.0245208740234375, 0.02069091796875, 0.0290985107421875, 0.0014104843139648438, 0.012908935546875, -0.0145111083984375, -0.01251983642578125, 0.00733184814453125, -0.0282745361328125, -0.0070343017578125, 0.0171051025390625, -0.00750732421875, -0.0105743408203125, 0.00799560546875, 0.0322265625, -0.01123046875, -0.0017004013061523438, -0.03192138671875, -0.0517578125, -0.002414703369140625, 0.0121002197265625, -0.0609130859375, 0.0316162109375, 0.018646240234375, -0.0038089752197265625, 0.00738525390625, 0.01751708984375, -0.036712646484375, -0.033935546875, -0.0010633468627929688, -0.041046142578125, -0.04302978515625, 0.029022216796875, -0.08648681640625, 0.048858642578125, -0.0274658203125, 0.00333404541015625, 0.071044921875, 0.034423828125, 0.0022125244140625, -0.041473388671875, -0.0261993408203125, -0.0014581680297851562, 0.0106353759765625, 0.00887298583984375, 0.043121337890625, -0.031005859375, 0.00699615478515625, 0.0310821533203125, 0.026092529296875, 0.0173797607421875, 0.0216522216796875, 0.01154327392578125, -0.012054443359375, -0.031829833984375, -0.0085601806640625, 0.051422119140625, -0.004718780517578125, 0.01255035400390625, 0.0247344970703125, -0.01055908203125, 0.042266845703125, -0.0172119140625, -0.00818634033203125, -0.0155181884765625, -0.0236053466796875, -0.028289794921875, -0.0025997161865234375, -0.0167694091796875, -0.03802490234375, 0.024017333984375, 0.0092620849609375, 0.00041937828063964844, 0.01529693603515625, 0.059967041015625, -0.019256591796875, -0.007537841796875, 0.007015228271484375, -0.01306915283203125, -0.03814697265625, -0.019683837890625, -0.00594329833984375, 0.002979278564453125, 0.0247650146484375, -0.0439453125, -0.048004150390625, -0.0438232421875, 0.006328582763671875, -0.007541656494140625, -0.03546142578125, 0.0504150390625, 0.0117034912109375, 0.069091796875, -0.01568603515625, 0.0095977783203125, 0.006866455078125, 0.044952392578125, -0.035186767578125, 0.01413726806640625, 0.0194549560546875, 0.01181793212890625, -0.00818634033203125, 0.0133514404296875, 0.005794525146484375, -0.048736572265625, 0.042205810546875, 0.0296173095703125, -0.023284912109375, -0.038726806640625, -0.1121826171875, -0.006549835205078125, -0.022552490234375, 0.04656982421875, -0.018157958984375, 0.050018310546875, 0.0192108154296875, 0.0283203125, -0.033782958984375, -0.01558685302734375, 0.015655517578125, 0.012908935546875, -0.004970550537109375, 0.0535888671875, -0.00452423095703125, 0.05047607421875, -0.00943756103515625, -0.0290679931640625, -0.0106201171875, -0.006988525390625, 0.0197296142578125, -0.0195770263671875, -0.006870269775390625, -0.018157958984375, 0.0006189346313476562, -0.0169219970703125, -0.005107879638671875, 0.04327392578125, 0.0192108154296875, 0.0272979736328125, 0.0069122314453125, -0.01074981689453125, 0.00867462158203125, -0.1409912109375, 0.0233917236328125, 0.0638427734375, 0.0077362060546875, 0.023529052734375, 0.00809478759765625, 0.047454833984375, 0.0034961700439453125, -0.035369873046875, 0.022674560546875, 0.0099029541015625, -0.0010852813720703125, 0.019744873046875, -0.00887298583984375, -0.0151214599609375, -0.0012254714965820312, -0.0458984375, -0.0009021759033203125, 0.0176239013671875, -0.03729248046875, 0.0186614990234375, 0.0283050537109375, -0.0302581787109375, -0.012420654296875, -0.0310211181640625, 0.017364501953125, -0.01995849609375, 0.00927734375, -0.02685546875, -0.01044464111328125, -0.00916290283203125, -0.00904083251953125, 0.01323699951171875, 0.017242431640625, -0.057037353515625, -0.0112457275390625, 0.00661468505859375, -0.004627227783203125, -0.0426025390625, -0.0111541748046875, 0.0232086181640625, -0.0246734619140625, -0.032684326171875, 0.0160980224609375, 0.062042236328125, 0.01983642578125, -0.01708984375, 0.004772186279296875, -0.005527496337890625, 0.0005431175231933594, -0.0011053085327148438, -0.02337646484375, 0.00823974609375, 0.0355224609375, 0.0256500244140625, -0.01335906982421875, 0.02032470703125, -0.00452423095703125, -0.0022792816162109375, 0.049896240234375, 0.0153961181640625, -0.01148223876953125, 0.00925445556640625, 0.039825439453125, 0.049652099609375, 0.0255279541015625, -0.0226287841796875, -0.00801849365234375, 0.008026123046875, 0.01314544677734375, -0.0219268798828125, -0.0198516845703125, 0.02227783203125, -0.07598876953125, 0.01229095458984375, 0.0294647216796875, 0.01438140869140625, 0.03863525390625, -0.01416778564453125, 0.011871337890625, 0.03668212890625, -0.051483154296875, -0.042572021484375, 0.014007568359375, 0.0004315376281738281, -0.022430419921875, 0.0182037353515625, 0.0017404556274414062, 0.0014963150024414062, 0.0098876953125, -0.0104827880859375, 0.0161285400390625, -0.01763916015625, -0.0307159423828125, -0.0457763671875, -0.07098388671875, -0.05535888671875, 0.00008362531661987305, 0.0010623931884765625, -0.0002732276916503906, 0.05364990234375, -0.006252288818359375, -0.04315185546875, 0.0030918121337890625, -0.0361328125, 0.0058746337890625, 0.0172882080078125, 0.0105743408203125, -0.05078125, -0.00821685791015625, -0.0160675048828125, 0.044677734375, 0.004146575927734375, 0.006198883056640625, 0.016448974609375, 0.00920867919921875, 0.045989990234375, 0.044189453125, 0.0286407470703125, -0.01739501953125, 0.0457763671875, 0.046234130859375, -0.01410675048828125, -0.029449462890625, 0.041290283203125, 0.0014791488647460938, -0.0285186767578125, -0.017303466796875, -0.025848388671875, -0.003963470458984375, 0.0232086181640625, 0.006641387939453125, 0.0019483566284179688, 0.02569580078125, -0.00560760498046875, 0.0260467529296875, -0.00772857666015625, -0.0277862548828125, -0.015655517578125, 0.055267333984375, -0.0262451171875, -0.01190185546875, 0.018096923828125, -0.0159759521484375, -0.00592041015625, -0.035858154296875, -0.0283660888671875, -0.07781982421875, 0.0282440185546875, -0.06500244140625, -0.02545166015625, -0.0155487060546875, -0.005794525146484375, 0.037353515625, 0.09912109375, 0.00431060791015625, -0.01299285888671875, -0.020721435546875, 0.0019350051879882812, -0.0170745849609375, -0.03216552734375, 0.0063934326171875, -0.0081024169921875, -0.09393310546875, 0.029144287109375, 0.01328277587890625, -0.0341796875, -0.0191497802734375, 0.01168060302734375, -0.06256103515625, -0.0394287109375, 0.039947509765625, -0.11419677734375, 0.045257568359375, -0.005123138427734375, 0.0286712646484375, -0.037628173828125, -0.0250701904296875, -0.07196044921875, -0.0614013671875, -0.0172882080078125, 0.0013647079467773438, 0.049530029296875, 0.01479339599609375, -0.01296234130859375, 0.006427764892578125, 0.05023193359375, 0.0259857177734375, -0.005290985107421875, 0.0308685302734375, 0.0035343170166015625, -0.0207977294921875, -0.0211944580078125, 0.022613525390625, -0.050994873046875, 0.0003275871276855469, -0.0172576904296875, -0.03692626953125, -0.02130126953125, -0.02642822265625, 0.0192413330078125, -0.01279449462890625, -0.0205535888671875, -0.052398681640625, -0.0296630859375, -0.046875, -0.018798828125, -0.038604736328125, 0.0116424560546875, -0.0207061767578125, -0.06195068359375, 0.0305633544921875, -0.0133514404296875, -0.009613037109375, 0.00200653076171875, 0.0509033203125, 0.021209716796875, -0.01702880859375, 0.0298614501953125, -0.01385498046875, 0.00498199462890625, -0.016754150390625, 0.04107666015625, -0.006214141845703125, -0.005035400390625, 0.05419921875, -0.0287322998046875, 0.044586181640625, -0.08245849609375, 0.09942626953125, -0.0242919921875, 0.006267547607421875, 0.0338134765625, -0.01245880126953125, -0.0188140869140625, 0.0538330078125, 0.00696563720703125, -0.0123748779296875, -0.007843017578125, 0.0288543701171875, -0.00655364990234375, -0.0186767578125, -0.032257080078125, -0.033050537109375, 0.0034198760986328125, -0.0306243896484375, 0.05401611328125, 0.04302978515625, -0.00017392635345458984, 0.041259765625, 0.036834716796875, 0.00861358642578125, -0.014617919921875, 0.01094818115234375, -0.0187835693359375, 0.049163818359375, -0.0312347412109375, -0.00743865966796875, -0.00011801719665527344, -0.01540374755859375, 0.022430419921875, 0.0172882080078125, -0.044586181640625, 0.039337158203125, -0.0017919540405273438, 0.0171661376953125, 0.0163421630859375, -0.051361083984375, 0.01335906982421875, -0.0010461807250976562, -0.01221466064453125, 0.027191162109375, -0.043487548828125, -0.020233154296875, -0.027069091796875, 0.0404052734375, 0.01158905029296875, 0.00823974609375, 0.029144287109375, 0.08746337890625, -0.040252685546875, 0.06805419921875, -0.01873779296875, 0.0333251953125, 0.040557861328125, -0.0120391845703125, 0.01218414306640625, 0.032470703125, 0.021942138671875, -0.0557861328125, 0.0281982421875, -0.02960205078125, 0.0186767578125, 0.00472259521484375, 0.024078369140625, 0.01129913330078125, -0.0223846435546875, 0.0283203125, -0.0130462646484375, -0.0240478515625, 0.018646240234375, -0.00821685791015625, -0.0689697265625, -0.0013294219970703125, 0.04638671875, 0.01000213623046875, -0.00782012939453125, 0.0007028579711914062, 0.00522613525390625, -0.006389617919921875, 0.0019512176513671875, 0.01349639892578125, -0.02716064453125, -0.01461029052734375, -0.0035953521728515625, -0.01898193359375, -0.03350830078125, -0.0215911865234375, -0.0294036865234375, -0.01361846923828125, -0.00724029541015625, -0.003047943115234375, 0.027435302734375, -0.0003581047058105469, 0.00852203369140625, -0.01392364501953125, -0.00528717041015625, -0.038909912109375, -0.0092010498046875, 0.050445556640625, 0.0218963623046875, -0.01189422607421875, -0.0145721435546875, -0.041534423828125, -0.0217132568359375, 0.00860595703125, -0.044281005859375, -0.0164642333984375, -0.00919342041015625, 0.0036373138427734375, 0.0160064697265625, -0.007770538330078125, -0.046966552734375, -0.01119232177734375, 0.0276641845703125, 0.03973388671875, 0.0288238525390625, 0.01067352294921875, 0.045166015625, -0.01373291015625, 0.02081298828125, 0.039306640625, 0.027557373046875, -0.03668212890625, -0.01203155517578125, -0.01416015625, -0.04705810546875, 0.0003516674041748047, -0.0174713134765625, 0.0242919921875, 0.0283050537109375, 0.03173828125, 0.01251220703125, 0.0167388916015625, -0.01385498046875, -0.0007429122924804688, -0.010406494140625, -0.0003647804260253906, -0.0279541015625, 0.008544921875, -0.007373809814453125, -0.039154052734375, -0.04736328125, 0.032501220703125, 0.02386474609375, -0.0029239654541015625, -0.00742340087890625, -0.00823974609375, -0.01224517822265625, -0.06494140625, 0.055572509765625, 0.10272216796875, 0.048919677734375, 0.067626953125, 0.0044708251953125, 0.028228759765625, 0.023468017578125, 0.057586669921875, -0.0299072265625, -0.05474853515625, 0.0208587646484375, 0.01727294921875, -0.0081024169921875, 0.006618499755859375, -0.0209503173828125, 0.022216796875, 0.05682373046875, 0.08319091796875, -0.073974609375, 0.0195465087890625, 0.0281524658203125, 0.00225830078125, 0.0380859375, -0.0049591064453125, -0.00738525390625, -0.0234375, 0.0279693603515625, -0.0265960693359375, -0.032806396484375, -0.0023937225341796875, 0.001262664794921875, -0.010284423828125, -0.0231170654296875, -0.0020694732666015625, -0.0017385482788085938, -0.047393798828125, 0.0482177734375, 0.03314208984375, 0.0174713134765625, -0.005859375, 0.037322998046875, -0.0120086669921875, 0.005191802978515625, -0.03887939453125, 0.0015993118286132812, -0.019317626953125, -0.025390625, 0.024383544921875, -0.001956939697265625, 0.00559234619140625, 0.024627685546875, -0.01739501953125, 0.0081787109375, -0.0076904296875, -0.037109375, 0.0011663436889648438, -0.007137298583984375, 0.0262451171875, -0.004032135009765625, -0.0253143310546875, 0.0136871337890625, -0.028106689453125, -0.0280609130859375, -0.016082763671875, -0.01739501953125, 0.04296875, -0.017364501953125, 0.0019016265869140625, 0.047698974609375, 0.0299224853515625, -0.0244598388671875, -0.01189422607421875, -0.005474090576171875, 0.00304412841796875, 0.03076171875, -0.019134521484375, -0.0179595947265625, 0.00359344482421875, -0.031463623046875, -0.03387451171875, 0.09039306640625, -0.019775390625, -0.0028057098388671875, 0.032135009765625, 0.043701171875, -0.050567626953125, 0.0244903564453125, -0.0338134765625, 0.04150390625, 0.0137786865234375, 0.0219879150390625, -0.0745849609375, -0.00713348388671875, -0.03155517578125, 0.0267486572265625, 0.0032749176025390625, 0.0025634765625, -0.009979248046875, 0.00330352783203125, 0.0596923828125, 0.0567626953125, 0.0200958251953125, 0.01409912109375, 0.052337646484375, 0.09271240234375, 0.10504150390625, -0.06146240234375, 0.0258331298828125, 0.003208160400390625, 0.03900146484375, 0.06573486328125, 0.01477813720703125, 0.00844573974609375, 0.00684356689453125, 0.049652099609375, 0.007297515869140625, -0.0193328857421875, 0.001865386962890625, -0.0265655517578125, 0.02001953125, 0.005535125732421875, 0.042694091796875, -0.02093505859375, 0.0033512115478515625, -0.00803375244140625, 0.0423583984375, 0.027862548828125, -0.029937744140625, 0.01215362548828125, -0.00412750244140625, -0.01294708251953125, 0.008880615234375, -0.02587890625, 0.03131103515625, 0.0096435546875, 0.0509033203125, 0.057891845703125, 0.05181884765625, 0.0285797119140625, 0.0229339599609375, 0.0005860328674316406, 0.053131103515625, -0.039398193359375, -0.01090240478515625, 0.01007843017578125, 0.00982666015625, -0.009490966796875, -0.042938232421875, 0.0032405853271484375, -0.040283203125, 0.005222320556640625, -0.0305633544921875, 0.01727294921875, 0.02349853515625, -0.0009007453918457031, 0.0035190582275390625, 0.042327880859375, -0.034332275390625, 0.01788330078125, -0.017852783203125, -0.011444091796875, 0.0224151611328125, 0.0250701904296875, 0.00966644287109375, 0.0303955078125, 0.0167083740234375, 0.0018787384033203125, -0.028533935546875, 0.06341552734375, -0.0003020763397216797, 0.032684326171875, -0.07562255859375, -0.0494384765625, 0.0119171142578125, 0.046356201171875, 0.0084991455078125, -0.0018796920776367188, 0.034881591796875, 0.046661376953125, -0.0023174285888671875, -0.005519866943359375, 0.06884765625, -0.0004935264587402344, 0.042327880859375, -0.033721923828125, -0.0005741119384765625, -0.016571044921875, -0.03314208984375, -0.020751953125, -0.037506103515625, 0.0386962890625, -0.00836181640625, -0.004505157470703125, 0.00493621826171875, -0.015472412109375, 0.03460693359375, -0.020477294921875, 0.03900146484375, 0.01181793212890625, 0.036529541015625, 0.01009368896484375, 0.004825592041015625, 0.01329803466796875, -0.024017333984375, 0.014923095703125, 0.00893402099609375, 0.0234832763671875, -0.029998779296875, -0.0264739990234375, -0.01348876953125, 0.049041748046875, -0.0113677978515625, 0.0276947021484375, 0.033782958984375, -0.006195068359375, -0.053680419921875, -0.025146484375, -0.0078582763671875, 0.018829345703125, -0.00798797607421875, -0.018157958984375, 0.0279693603515625, 0.0379638671875, 0.024505615234375, 0.00366973876953125, 0.024688720703125, 0.051727294921875, -0.039031982421875, 0.0043792724609375, 0.0078125, -0.02191162109375, -0.01158905029296875, 0.02313232421875, 0.04254150390625, -0.00798797607421875, 0.015045166015625, -0.01824951171875, 0.01959228515625, -0.0199737548828125, 0.0018281936645507812, -0.02239990234375, -0.00205230712890625, 0.0160064697265625, -0.01568603515625, 0.023223876953125, -0.0005269050598144531, -0.007293701171875, 0.034149169921875, 0.01117706298828125, 0.026031494140625, 0.0216827392578125, 0.01090240478515625, 0.01482391357421875, 0.01444244384765625, -0.0372314453125, 0.044769287109375, 0.006275177001953125, -0.0214080810546875, 0.045257568359375, 0.006893157958984375, -0.0174713134765625, 0.022064208984375, 0.0050506591796875, -0.031982421875, -0.060394287109375, 0.0052490234375, -0.0105438232421875, -0.02587890625, -0.050262451171875, 0.030853271484375, -0.049591064453125, -0.0250701904296875, -0.0162200927734375, -0.0225830078125, -0.0190582275390625, -0.000881195068359375, -0.004505157470703125, -0.06805419921875, -0.01776123046875, -0.00489044189453125, 0.061767578125, 0.0251007080078125, -0.08349609375, 0.034149169921875, -0.0211029052734375, 0.037384033203125, 0.01104736328125, -0.05035400390625, 0.01654052734375, 0.03961181640625, -0.01110076904296875, -0.0037975311279296875, -0.0212554931640625, -0.026824951171875, -0.0022258758544921875, 0.004001617431640625, 0.029449462890625, 0.00902557373046875, 0.00403594970703125, 0.034637451171875, -0.015106201171875, 0.0789794921875, -0.0689697265625, -0.007297515869140625, 0.038360595703125, 0.01413726806640625, -0.036102294921875, -0.09320068359375, 0.0012950897216796875, -0.07305908203125, 0.030120849609375, 0.0038700103759765625, 0.0164794921875, 0.0261077880859375, -0.01971435546875, -0.049591064453125, 0.0650634765625, -0.004291534423828125, -0.020538330078125, -0.026336669921875, -0.042144775390625, -0.0084991455078125, 0.019989013671875, -0.00022172927856445312, -0.035003662109375, -0.0518798828125, 0.033935546875, 0.0087890625, 0.039825439453125, 0.0150146484375, 0.0023860931396484375, -0.04901123046875, 0.004749298095703125, -0.0184783935546875, 0.039764404296875, -0.014984130859375, 0.0007886886596679688, 0.032012939453125, 0.06207275390625, 0.00963592529296875, -0.032379150390625, 0.01245880126953125, -0.0657958984375, 0.0006666183471679688, -0.0390625, 0.0203094482421875, 0.03509521484375, 0.0164337158203125, 0.030120849609375, -0.00832366943359375, -0.055816650390625, -0.0142059326171875, -0.006374359130859375, -0.057647705078125, -0.04241943359375, 0.05133056640625, -0.10504150390625, -0.031829833984375, 0.0047760009765625, -0.017669677734375, 0.0167083740234375, 0.006744384765625, -0.0096893310546875, 0.0124053955078125, 0.035003662109375, -0.029327392578125, -0.0305633544921875, -0.0267181396484375, -0.0238800048828125, 0.0071258544921875, -0.034271240234375, -0.01032257080078125, 0.01739501953125, -0.04644775390625, 0.01474761962890625, -0.0124969482421875, -0.01027679443359375, 0.01485443115234375, 0.01470184326171875, 0.01110076904296875, 0.005107879638671875, 0.00955963134765625, -0.0160675048828125, -0.0116729736328125, 0.034759521484375, 0.01279449462890625, 0.0243988037109375, -0.0294952392578125, 0.04931640625, 0.0245513916015625, -0.0108489990234375, -0.03497314453125, 0.0240325927734375, 0.01122283935546875, 0.006153106689453125, -0.02020263671875, 0.01065826416015625, 0.045074462890625, -0.046234130859375, -0.00655364990234375, -0.023681640625, -0.0213623046875, -0.05450439453125, 0.0297088623046875, -0.0184326171875, -0.00942230224609375, 0.0278778076171875 ]
443d384c35eb1a8f1faf330d0f97b03ccf391707
Wordpress Stackexchange Q: Custom taxonomy position in admin panel I can't figure out how to change position of custom taxonomy menu item in the admin panel. Right now I have custom post type-- custom_1-- and another custom post type-- custom_2. For custom_2, I've set 'show_in_menu' => 'edit.php?post_type=custom_1' and it works fine. The problem is, I've added a custom taxonomy for custom_2 and it's not showing under the same parent menu item. Is there any way to alter the position of custom taxonomy menu item? A: It will definately not show in custom_1 because you probably must have defined it for custom_2.However, you can define a custom submenu with link same as that of the taxonomy in which the parent link is that of custom_2. Following is what i mean. add_submenu_page( 'edit.php?post_type=custom_1', 'Page Title', 'Menu Title', 'add_users','edit-tags.php?taxonomy=custom_taxonomy', '' );
Q: Custom taxonomy position in admin panel I can't figure out how to change position of custom taxonomy menu item in the admin panel. Right now I have custom post type-- custom_1-- and another custom post type-- custom_2. For custom_2, I've set 'show_in_menu' => 'edit.php?post_type=custom_1' and it works fine. The problem is, I've added a custom taxonomy for custom_2 and it's not showing under the same parent menu item. Is there any way to alter the position of custom taxonomy menu item? A: It will definately not show in custom_1 because you probably must have defined it for custom_2.However, you can define a custom submenu with link same as that of the taxonomy in which the parent link is that of custom_2. Following is what i mean. add_submenu_page( 'edit.php?post_type=custom_1', 'Page Title', 'Menu Title', 'add_users','edit-tags.php?taxonomy=custom_taxonomy', '' );
wordpress
{ "language": "en", "length": 136, "provenance": "stackexchange_00019.jsonl.gz:432688", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/100254" }
[ 0.049835205078125, 0.0204010009765625, -0.0132904052734375, 0.0184173583984375, 0.03436279296875, -0.040557861328125, 0.058624267578125, -0.049896240234375, -0.00775909423828125, 0.0020999908447265625, -0.006557464599609375, -0.03173828125, -0.04656982421875, -0.0372314453125, -0.023651123046875, -0.060638427734375, 0.0201263427734375, -0.006961822509765625, 0.024169921875, -0.01207733154296875, -0.01309967041015625, 0.0062408447265625, 0.0272674560546875, -0.01239013671875, 0.0458984375, -0.05889892578125, 0.005634307861328125, -0.0182952880859375, 0.0305328369140625, -0.0016126632690429688, 0.0234832763671875, 0.0013246536254882812, 0.033294677734375, -0.01366424560546875, 0.0091094970703125, -0.031890869140625, 0.008453369140625, -0.01033782958984375, -0.0188446044921875, 0.02593994140625, 0.031463623046875, -0.007770538330078125, 0.000988006591796875, 0.031280517578125, -0.0034351348876953125, -0.0362548828125, 0.01221466064453125, -0.038421630859375, 0.0033512115478515625, -0.0709228515625, 0.034423828125, -0.02105712890625, 0.059814453125, -0.07232666015625, -0.02691650390625, 0.00815582275390625, -0.0221710205078125, -0.0234527587890625, 0.005672454833984375, 0.011322021484375, 0.01212310791015625, 0.00841522216796875, 0.0109710693359375, 0.0002741813659667969, 0.002838134765625, -0.0056304931640625, 0.036041259765625, -0.00354766845703125, -0.07781982421875, 0.0092620849609375, 0.08331298828125, -0.034332275390625, 0.00469970703125, 0.016326904296875, -0.0086669921875, -0.06719970703125, 0.02545166015625, -0.0307159423828125, 0.01311492919921875, 0.0197601318359375, 0.02777099609375, 0.004688262939453125, -0.005725860595703125, 0.0029621124267578125, 0.004547119140625, 0.013671875, -0.005031585693359375, -0.02490234375, -0.001132965087890625, -0.0119476318359375, -0.01422119140625, -0.0455322265625, -0.0006761550903320312, 0.03204345703125, -0.00034880638122558594, -0.01552581787109375, 0.0251312255859375, 0.0771484375, -0.0092926025390625, 0.0330810546875, -0.041961669921875, -0.0193023681640625, 0.033935546875, -0.0640869140625, 0.01390838623046875, 0.0177764892578125, -0.019317626953125, -0.036163330078125, 0.0400390625, 0.0272369384765625, -0.0103912353515625, 0.03778076171875, -0.002429962158203125, -0.04351806640625, -0.019134521484375, 0.00228118896484375, -0.0195159912109375, -0.0018548965454101562, 0.02294921875, -0.039947509765625, -0.0013780593872070312, 0.01953125, 0.007793426513671875, 0.01934814453125, -0.006992340087890625, 0.0157012939453125, -0.00024580955505371094, -0.046173095703125, -0.048187255859375, 0.0275726318359375, -0.053070068359375, -0.0013341903686523438, 0.10443115234375, 0.08050537109375, 0.0477294921875, -0.022857666015625, -0.00286865234375, -0.01934814453125, -0.007537841796875, -0.0014829635620117188, 0.00423431396484375, 0.008056640625, 0.022216796875, -0.0293426513671875, -0.027191162109375, 0.01544189453125, 0.0137786865234375, 0.005462646484375, -0.0160980224609375, -0.059539794921875, 0.0137939453125, -0.0306854248046875, 0.059326171875, 0.00878143310546875, -0.0494384765625, -0.007793426513671875, 0.0241241455078125, -0.0220184326171875, -0.044281005859375, -0.05609130859375, -0.0247802734375, -0.0241546630859375, 0.0181884765625, -0.036407470703125, -0.0614013671875, 0.0548095703125, -0.034820556640625, -0.02142333984375, 0.0265350341796875, -0.036163330078125, 0.06610107421875, 0.004383087158203125, 0.0253143310546875, 0.00606536865234375, 0.01445770263671875, -0.012054443359375, -0.00736236572265625, 0.0164337158203125, 0.006183624267578125, 0.0401611328125, 0.0047607421875, -0.05108642578125, 0.0128326416015625, -0.0079193115234375, -0.02972412109375, 0.034820556640625, -0.0031032562255859375, 0.0264434814453125, 0.01438140869140625, 0.022491455078125, -0.0030536651611328125, 0.0284271240234375, -0.048797607421875, 0.018524169921875, 0.005062103271484375, 0.0048675537109375, -0.016082763671875, 0.01068878173828125, -0.01438140869140625, -0.0198211669921875, -0.10565185546875, 0.021026611328125, -0.01910400390625, 0.047576904296875, 0.002384185791015625, 0.01519775390625, -0.0171966552734375, 0.051055908203125, 0.0293426513671875, 0.00957489013671875, -0.0175933837890625, -0.0205841064453125, 0.01219940185546875, -0.07684326171875, -0.03857421875, 0.0164794921875, -0.00933074951171875, 0.04034423828125, -0.02532958984375, 0.02386474609375, -0.04498291015625, -0.024658203125, -0.0275726318359375, 0.0164031982421875, 0.026123046875, 0.022216796875, -0.02520751953125, 0.0024356842041015625, 0.031219482421875, 0.0283966064453125, -0.021209716796875, 0.007381439208984375, 0.06622314453125, 0.022552490234375, -0.03936767578125, 0.00011372566223144531, -0.002780914306640625, -0.05938720703125, -0.012420654296875, 0.0560302734375, 0.00617218017578125, -0.0014324188232421875, -0.0316162109375, 0.0169525146484375, 0.04351806640625, -0.0007224082946777344, 0.0003554821014404297, 0.013519287109375, 0.00930023193359375, 0.0164794921875, 0.0294647216796875, -0.023773193359375, 0.02606201171875, 0.003650665283203125, 0.033660888671875, 0.0036468505859375, -0.0024013519287109375, -0.001556396484375, 0.036041259765625, -0.0266571044921875, -0.00444793701171875, -0.0236968994140625, -0.0213623046875, 0.0012617111206054688, 0.0253143310546875, 0.0177459716796875, 0.042083740234375, 0.02783203125, -0.034393310546875, -0.01145172119140625, 0.024627685546875, 0.045501708984375, 0.00534820556640625, -0.00618743896484375, -0.0099029541015625, -0.0631103515625, -0.01139068603515625, 0.023681640625, -0.012908935546875, -0.034454345703125, -0.019775390625, 0.029205322265625, -0.048553466796875, -0.009368896484375, -0.053680419921875, -0.0828857421875, 0.0020732879638671875, 0.0489501953125, -0.0374755859375, -0.04400634765625, -0.00882720947265625, 0.00605010986328125, -0.034210205078125, 0.026641845703125, -0.01128387451171875, -0.0186309814453125, 0.01194000244140625, -0.00330352783203125, 0.01837158203125, -0.0026378631591796875, 0.0290374755859375, 0.04974365234375, 0.006725311279296875, -0.00948333740234375, 0.01335906982421875, 0.0027980804443359375, -0.005771636962890625, 0.033966064453125, 0.0109405517578125, -0.0177764892578125, -0.01290130615234375, 0.054718017578125, 0.0075531005859375, -0.0239105224609375, 0.0015697479248046875, -0.0223541259765625, -0.0199127197265625, -0.0106353759765625, -0.05084228515625, -0.0066375732421875, 0.0302734375, -0.0203399658203125, 0.0205535888671875, -0.00243377685546875, -0.0010290145874023438, -0.04290771484375, 0.0193023681640625, -0.0024433135986328125, 0.033294677734375, -0.057891845703125, -0.022216796875, -0.048583984375, -0.0382080078125, -0.025177001953125, 0.01654052734375, -0.014923095703125, 0.00923919677734375, 0.08868408203125, 0.0122833251953125, -0.070068359375, 0.035888671875, 0.01959228515625, -0.00664520263671875, 0.0693359375, 0.07000732421875, -0.056671142578125, 0.028411865234375, 0.006137847900390625, 0.019927978515625, 0.0404052734375, -0.038299560546875, -0.0265045166015625, -0.031951904296875, 0.0019664764404296875, 0.0030841827392578125, -0.0174102783203125, 0.0308837890625, 0.04132080078125, 0.00682830810546875, -0.0250396728515625, -0.0041046142578125, -0.02020263671875, -0.0196380615234375, 0.0179290771484375, -0.01119232177734375, 0.0029430389404296875, -0.025726318359375, 0.037689208984375, -0.0209808349609375, 0.006504058837890625, -0.03497314453125, -0.0200042724609375, 0.01271820068359375, -0.010406494140625, -0.013763427734375, 0.0185089111328125, -0.0010137557983398438, -0.01287841796875, 0.02197265625, 0.01140594482421875, 0.01776123046875, -0.007732391357421875, 0.037078857421875, -0.0259552001953125, -0.0755615234375, 0.0345458984375, -0.03546142578125, 0.0287933349609375, -0.04315185546875, -0.0255889892578125, 0.007259368896484375, 0.11248779296875, -0.049652099609375, -0.01053619384765625, -0.0079345703125, 0.01100921630859375, 0.0058746337890625, -0.0364990234375, -0.0401611328125, -0.031463623046875, -0.10931396484375, 0.03363037109375, 0.02886962890625, -0.036834716796875, -0.041534423828125, 0.072021484375, -0.10650634765625, -0.0295257568359375, 0.0300750732421875, -0.052947998046875, -0.0078582763671875, 0.0258636474609375, -0.020294189453125, -0.01476287841796875, -0.019805908203125, -0.0277099609375, -0.0430908203125, -0.019256591796875, -0.0124664306640625, 0.041595458984375, 0.0080413818359375, 0.01068878173828125, -0.0340576171875, 0.029388427734375, 0.016326904296875, 0.0232086181640625, 0.00537109375, 0.0075531005859375, -0.004657745361328125, -0.01641845703125, -0.002674102783203125, -0.0240020751953125, -0.0083770751953125, -0.006763458251953125, -0.0235748291015625, 0.030517578125, -0.00099945068359375, 0.0158233642578125, 0.031341552734375, -0.030181884765625, -0.07476806640625, -0.0281219482421875, -0.04180908203125, -0.0028057098388671875, -0.0075531005859375, -0.017120361328125, -0.040771484375, -0.093994140625, -0.00885772705078125, -0.0259857177734375, -0.0252227783203125, 0.0279541015625, 0.045928955078125, 0.029052734375, -0.00533294677734375, -0.0311279296875, 0.00183868408203125, 0.032562255859375, -0.01026153564453125, 0.031219482421875, 0.0167083740234375, -0.0185089111328125, 0.03948974609375, 0.0006761550903320312, -0.013519287109375, 0.0165557861328125, 0.058380126953125, 0.0108642578125, -0.037017822265625, 0.0308837890625, -0.024566650390625, -0.01352691650390625, 0.0015401840209960938, -0.0274505615234375, -0.0246734619140625, -0.052093505859375, 0.07373046875, -0.0028705596923828125, 0.0472412109375, -0.07391357421875, -0.03387451171875, 0.0226898193359375, -0.006740570068359375, -0.0033817291259765625, 0.0080413818359375, -0.0091094970703125, -0.0028228759765625, -0.02581787109375, 0.009735107421875, 0.0014581680297851562, 0.006305694580078125, -0.004993438720703125, 0.01183319091796875, 0.03143310546875, 0.0177001953125, -0.00945281982421875, -0.00037026405334472656, 0.032470703125, 0.00289154052734375, -0.017608642578125, -0.0302276611328125, 0.0063629150390625, 0.0211639404296875, 0.00008881092071533203, 0.00905609130859375, 0.00695037841796875, -0.0046539306640625, 0.0204010009765625, 0.01146697998046875, -0.00335693359375, -0.0080413818359375, -0.00266265869140625, -0.0038280487060546875, 0.0360107421875, -0.029083251953125, -0.0183258056640625, 0.057891845703125, 0.054931640625, -0.0112762451171875, -0.0222930908203125, 0.0137939453125, 0.001987457275390625, 0.0205078125, 0.0272064208984375, -0.0032787322998046875, 0.008697509765625, -0.01702880859375, 0.00885772705078125, 0.0027217864990234375, 0.01432037353515625, -0.0213623046875, -0.0035552978515625, 0.0048980712890625, 0.002834320068359375, 0.0362548828125, -0.01509857177734375, -0.0081024169921875, 0.013336181640625, -0.02301025390625, -0.044708251953125, -0.023712158203125, -0.0223236083984375, 0.02520751953125, -0.033966064453125, -0.0234222412109375, -0.001346588134765625, -0.06494140625, 0.00693511962890625, -0.03814697265625, -0.0076446533203125, 0.0009489059448242188, -0.0176239013671875, -0.062286376953125, 0.0150909423828125, 0.03424072265625, -0.0950927734375, -0.092041015625, 0.025909423828125, 0.00360107421875, 0.0074615478515625, -0.02880859375, 0.031280517578125, -0.012542724609375, -0.02313232421875, -0.0335693359375, 0.0013599395751953125, 0.068359375, 0.048553466796875, -0.09326171875, 0.0269927978515625, -0.0506591796875, 0.0173492431640625, -0.0400390625, -0.06011962890625, -0.032867431640625, -0.0115966796875, 0.0273284912109375, 0.02117919921875, -0.0234222412109375, -0.050994873046875, -0.0254669189453125, 0.0003707408905029297, 0.042938232421875, 0.03076171875, -0.0001811981201171875, 0.048431396484375, -0.00902557373046875, 0.044830322265625, 0.00939178466796875, 0.011474609375, -0.016265869140625, -0.027191162109375, 0.00001901388168334961, -0.047027587890625, -0.0167694091796875, 0.002105712890625, -0.0215911865234375, 0.009765625, 0.0244598388671875, -0.0016841888427734375, 0.035125732421875, -0.0019311904907226562, 0.01384735107421875, -0.00710296630859375, -0.0218353271484375, -0.026214599609375, 0.01085662841796875, 0.0196380615234375, -0.0181427001953125, 0.0277557373046875, 0.0072479248046875, 0.006717681884765625, 0.00428009033203125, -0.0236663818359375, 0.002933502197265625, 0.0210723876953125, -0.052703857421875, 0.0521240234375, 0.04119873046875, 0.0206298828125, 0.0386962890625, -0.004764556884765625, 0.017242431640625, -0.004779815673828125, -0.01641845703125, -0.0302276611328125, 0.0181427001953125, 0.03765869140625, -0.004055023193359375, -0.002147674560546875, 0.0251617431640625, -0.0269775390625, -0.01983642578125, 0.00647735595703125, 0.0279693603515625, -0.035675048828125, 0.01187896728515625, 0.01480865478515625, 0.0205535888671875, 0.017608642578125, 0.0257568359375, -0.0052032470703125, -0.00933074951171875, -0.01541900634765625, -0.05267333984375, -0.0180206298828125, -0.0157623291015625, -0.01513671875, -0.03106689453125, -0.03369140625, -0.003940582275390625, 0.022857666015625, 0.025115966796875, 0.0015392303466796875, -0.0163116455078125, 0.0010051727294921875, -0.0004286766052246094, 0.014892578125, 0.0036869049072265625, -0.00363922119140625, -0.020538330078125, 0.047943115234375, -0.0557861328125, 0.005237579345703125, 0.03875732421875, 0.01297760009765625, 0.011383056640625, 0.050994873046875, -0.0143890380859375, 0.027435302734375, 0.0035495758056640625, -0.0117645263671875, -0.0142822265625, -0.017364501953125, 0.0084381103515625, -0.00798797607421875, -0.0288848876953125, 0.01229095458984375, -0.038177490234375, -0.016143798828125, -0.00489044189453125, -0.01092529296875, 0.08697509765625, -0.0665283203125, 0.005817413330078125, 0.022369384765625, 0.0261383056640625, -0.00382232666015625, 0.0160369873046875, 0.0156097412109375, -0.0244140625, -0.00605010986328125, 0.01617431640625, -0.01461029052734375, -0.009063720703125, 0.0289764404296875, -0.046875, 0.09344482421875, -0.04644775390625, 0.00616455078125, 0.0104827880859375, 0.03302001953125, -0.00490570068359375, 0.0178070068359375, -0.02899169921875, 0.017425537109375, -0.022796630859375, 0.0250396728515625, -0.033477783203125, 0.0021495819091796875, -0.0023899078369140625, 0.0253143310546875, 0.0304412841796875, 0.008819580078125, -0.05804443359375, 0.01251983642578125, 0.0562744140625, 0.0249176025390625, 0.0164031982421875, 0.047332763671875, -0.00576019287109375, -0.01058197021484375, -0.0047454833984375, 0.0118560791015625, 0.0357666015625, -0.0244598388671875, -0.055084228515625, 0.0097503662109375, 0.0197906494140625, 0.018096923828125, -0.032012939453125, 0.00867462158203125, -0.0309906005859375, -0.0195770263671875, 0.04583740234375, -0.031829833984375, -0.0117950439453125, -0.01457977294921875, -0.011993408203125, -0.0203094482421875, 0.02880859375, -0.0252838134765625, 0.0240020751953125, -0.0021419525146484375, 0.0484619140625, -0.017974853515625, 0.0144195556640625, 0.03253173828125, -0.026031494140625, 0.0191192626953125, 0.054656982421875, -0.06268310546875, 0.0281829833984375, 0.000047206878662109375, 0.0225830078125, -0.037994384765625, -0.002460479736328125, 0.0308074951171875, 0.045989990234375, -0.03558349609375, -0.05120849609375, 0.0224761962890625, 0.02764892578125, -0.0108184814453125, 0.029144287109375, -0.0076904296875, 0.0280303955078125, 0.079833984375, -0.03515625, -0.008331298828125, 0.0311431884765625, 0.0372314453125, -0.0111236572265625, -0.011322021484375, -0.03509521484375, -0.033782958984375, -0.06683349609375, 0.015533447265625, 0.00536346435546875, 0.06475830078125, 0.042572021484375, 0.036376953125, 0.01430511474609375, -0.0239715576171875, -0.0054779052734375, 0.01483154296875, -0.0271148681640625, 0.0172271728515625, -0.05194091796875, -0.06884765625, 0.0167083740234375, 0.0391845703125, -0.003955841064453125, 0.0201873779296875, 0.0193939208984375, 0.011199951171875, 0.009765625, -0.0086517333984375, 0.03131103515625, -0.01531219482421875, -0.00727081298828125, -0.028778076171875, 0.0283966064453125, 0.045257568359375, 0.01216888427734375, -0.01079559326171875, 0.01076507568359375, 0.067138671875, 0.01358795166015625, 0.004726409912109375, 0.01507568359375, -0.0280914306640625, 0.01441192626953125, 0.006961822509765625, 0.052032470703125, 0.047027587890625, -0.07073974609375, -0.0303192138671875, -0.047454833984375, -0.034759521484375, 0.04644775390625, 0.05499267578125, 0.0155487060546875, -0.0178375244140625, 0.01099395751953125, -0.018157958984375, -0.04534912109375, 0.0168609619140625, 0.046051025390625, 0.01020050048828125, -0.0172271728515625, 0.029266357421875, -0.029815673828125, -0.0198516845703125, 0.007343292236328125, 0.014892578125, 0.016448974609375, 0.046722412109375, -0.00173187255859375, 0.0118560791015625, -0.0413818359375, 0.033538818359375, -0.0648193359375, -0.0528564453125, 0.05889892578125, -0.01172637939453125, -0.006412506103515625, 0.0065765380859375, -0.031982421875, 0.049072265625, 0.04486083984375, -0.033294677734375, 0.04150390625, 0.006641387939453125, 0.0034580230712890625, -0.0435791015625, 0.032501220703125, -0.0218048095703125, -0.01372528076171875, -0.029937744140625, -0.0169830322265625, 0.0299530029296875, 0.0142059326171875, -0.0197906494140625, -0.00315093994140625, -0.002910614013671875, -0.03729248046875, 0.031280517578125, -0.0102386474609375, 0.07403564453125, 0.044097900390625, -0.0421142578125, -0.01294708251953125, 0.0225982666015625, -0.01399993896484375, 0.00984954833984375, 0.01763916015625, 0.030914306640625, 0.01373291015625, -0.0254058837890625, 0.044036865234375, 0.0082244873046875, 0.03314208984375, -0.03515625, 0.0016021728515625, 0.01503753662109375, 0.0040740966796875, 0.0284271240234375, -0.0012807846069335938, -0.033111572265625, -0.040069580078125, 0.0281829833984375, 0.0221405029296875, 0.0111541748046875, 0.0178070068359375, -0.0556640625, 0.0262908935546875, 0.08441162109375, 0.0248260498046875, -0.048614501953125, 0.037078857421875, -0.057830810546875, 0.02789306640625, 0.06451416015625, -0.061859130859375, 0.041717529296875, 0.06756591796875, -0.0113677978515625, -0.0023326873779296875, -0.0172271728515625, -0.04412841796875, -0.0260162353515625, 0.0165863037109375, 0.021820068359375, -0.0201873779296875, 0.005207061767578125, -0.00273895263671875, 0.011688232421875, 0.039520263671875, 0.0181732177734375, -0.0233001708984375, -0.030731201171875, 0.0305328369140625, 0.002727508544921875, -0.0183868408203125, 0.01149749755859375, -0.011871337890625, -0.024200439453125, -0.01342010498046875, 0.014923095703125, 0.0396728515625, -0.035247802734375, -0.08892822265625, 0.035247802734375, -0.01480865478515625, -0.03961181640625, -0.03912353515625, 0.0071868896484375, -0.0292816162109375, 0.0423583984375, 0.01189422607421875, -0.02569580078125, 0.006824493408203125, 0.04412841796875, -0.010711669921875, 0.061248779296875, -0.0025272369384765625, -0.00390625, -0.031646728515625, -0.004795074462890625, -0.0029163360595703125, 0.009552001953125, 0.0180206298828125, -0.02825927734375, 0.035552978515625, 0.016937255859375, -0.062286376953125, -0.0145416259765625, -0.0007762908935546875, 0.03643798828125, 0.0026874542236328125, -0.033721923828125, -0.0277557373046875, -0.041473388671875, 0.0419921875, 0.021087646484375, 0.006664276123046875, 0.0054779052734375, -0.002452850341796875, -0.045654296875, 0.0023517608642578125, 0.0089263916015625, 0.01177978515625, -0.06707763671875, -0.01203155517578125, 0.0693359375, -0.0294647216796875, -0.016326904296875, 0.031463623046875, -0.043121337890625, 0.005794525146484375, 0.0234527587890625, -0.00934600830078125, -0.053436279296875, 0.06719970703125, 0.01073455810546875, -0.041412353515625, -0.0256805419921875, 0.0035400390625, -0.034423828125, -0.0184478759765625, -0.00027871131896972656, -0.0006670951843261719, -0.02294921875, -0.0228424072265625, 0.01419830322265625, -0.01023101806640625, 0.032806396484375, -0.024017333984375, -0.0277252197265625, -0.03369140625, 0.00659942626953125, 0.00513458251953125, -0.003765106201171875, -0.035797119140625, 0.038970947265625, 0.0193023681640625, 0.0694580078125, 0.00933837890625, 0.05303955078125, -0.006389617919921875, 0.054779052734375, -0.0350341796875, -0.0169219970703125, -0.016632080078125, -0.02783203125, 0.0115814208984375, 0.00402069091796875, 0.00678253173828125, -0.031585693359375, 0.00341033935546875, 0.006267547607421875, 0.00403594970703125, 0.01165008544921875 ]
49a2a192d3da133ed7e78cfdf2ae24d0485b4b55
Wordpress Stackexchange Q: How to integrate get_post_time with date_i18n function? I have date format and would like to translate to another language with date_i18n function how can I integrate with get_post_time here is my code : $time = get_post_time('F j, Y', true,$newspost['ID']); A: Use the fourth parameter for get_post_time(): $time = get_post_time( 'F j, Y', // format TRUE, // GMT get_the_ID(), // Post ID TRUE // translate, use date_i18n() ); get_post_time() calls mysql2date() internally, and it passes the $translate argument through. In mysql2date() we find this: if ( $translate ) return date_i18n( $format, $i ); So, all you need is a single TRUE. For a test, try this: add_filter( 'the_content', 'wpse_100266_i18n_time' ); /** * Prepend the post content with translated post time. * * @wp-hook the_content * @param string $content * @return string */ function wpse_100266_i18n_time( $content ) { $time = get_post_time( 'F j, Y', // format TRUE, // GMT get_the_ID(), // Post ID TRUE // translate, use date_i18n() ); return "<p>$time</p>$content"; } Then install at least one other language and the plugin WCM User Language Switcher. Viewing the front end, we get different month names when we switch the language now. get_post_modified_time() works with the same arguments.
Q: How to integrate get_post_time with date_i18n function? I have date format and would like to translate to another language with date_i18n function how can I integrate with get_post_time here is my code : $time = get_post_time('F j, Y', true,$newspost['ID']); A: Use the fourth parameter for get_post_time(): $time = get_post_time( 'F j, Y', // format TRUE, // GMT get_the_ID(), // Post ID TRUE // translate, use date_i18n() ); get_post_time() calls mysql2date() internally, and it passes the $translate argument through. In mysql2date() we find this: if ( $translate ) return date_i18n( $format, $i ); So, all you need is a single TRUE. For a test, try this: add_filter( 'the_content', 'wpse_100266_i18n_time' ); /** * Prepend the post content with translated post time. * * @wp-hook the_content * @param string $content * @return string */ function wpse_100266_i18n_time( $content ) { $time = get_post_time( 'F j, Y', // format TRUE, // GMT get_the_ID(), // Post ID TRUE // translate, use date_i18n() ); return "<p>$time</p>$content"; } Then install at least one other language and the plugin WCM User Language Switcher. Viewing the front end, we get different month names when we switch the language now. get_post_modified_time() works with the same arguments.
wordpress
{ "language": "en", "length": 196, "provenance": "stackexchange_00019.jsonl.gz:432695", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/100266" }
[ -0.01360321044921875, -0.022216796875, -0.04248046875, -0.0222625732421875, -0.00251007080078125, -0.0223846435546875, 0.00691986083984375, 0.024200439453125, -0.0200958251953125, 0.0164642333984375, 0.00830841064453125, -0.00865936279296875, -0.008819580078125, -0.035980224609375, 0.01561737060546875, -0.0185699462890625, 0.041748046875, -0.0271759033203125, 0.0103759765625, -0.024139404296875, 0.00017750263214111328, 0.0109710693359375, 0.0154876708984375, 0.029876708984375, 0.0438232421875, -0.0321044921875, 0.038909912109375, -0.016204833984375, 0.04742431640625, 0.0131683349609375, 0.031707763671875, -0.062744140625, 0.0224761962890625, 0.00991058349609375, -0.0074615478515625, -0.004825592041015625, 0.01483917236328125, 0.0028858184814453125, -0.0231781005859375, 0.0162353515625, 0.01690673828125, -0.0144195556640625, -0.03814697265625, 0.05126953125, -0.036285400390625, -0.06036376953125, 0.0416259765625, -0.019805908203125, 0.01515960693359375, 0.0511474609375, 0.041717529296875, -0.03875732421875, 0.041290283203125, 0.0219573974609375, -0.0195465087890625, -0.01873779296875, -0.03448486328125, 0.0168914794921875, 0.0281219482421875, 0.0112152099609375, -0.0226593017578125, -0.0233917236328125, 0.015625, -0.01332855224609375, -0.0246429443359375, 0.03961181640625, 0.036468505859375, -0.006103515625, -0.038482666015625, -0.01329803466796875, 0.0140380859375, -0.037933349609375, 0.0250701904296875, -0.027587890625, -0.00836944580078125, 0.00292205810546875, -0.033447265625, -0.00847625732421875, 0.0423583984375, -0.032135009765625, 0.0078582763671875, 0.0308685302734375, -0.039764404296875, -0.0198822021484375, 0.00891876220703125, 0.0027256011962890625, -0.0222320556640625, -0.01812744140625, -0.06536865234375, -0.062225341796875, -0.05621337890625, -0.041717529296875, -0.089111328125, -0.0224151611328125, -0.0129241943359375, -0.0283050537109375, 0.00312042236328125, 0.048126220703125, -0.0570068359375, -0.0215606689453125, -0.0124053955078125, -0.01523590087890625, -0.0195770263671875, -0.015716552734375, 0.025909423828125, 0.03533935546875, 0.0020236968994140625, 0.030731201171875, 0.05877685546875, 0.006114959716796875, 0.00020682811737060547, 0.07464599609375, -0.00125885009765625, 0.0031299591064453125, -0.0265655517578125, 0.05389404296875, 0.0164947509765625, -0.0272064208984375, -0.007518768310546875, -0.006084442138671875, -0.0204315185546875, -0.0098419189453125, -0.005886077880859375, -0.030059814453125, 0.0262908935546875, -0.009765625, -0.032989501953125, 0.031524658203125, 0.004528045654296875, 0.0024433135986328125, -0.016326904296875, -0.0103759765625, 0.058624267578125, 0.0301513671875, 0.003932952880859375, -0.01336669921875, 0.0306396484375, 0.00585174560546875, -0.0064544677734375, 0.0112762451171875, -0.009124755859375, -0.0167694091796875, -0.0026493072509765625, -0.015777587890625, -0.02093505859375, -0.0009794235229492188, 0.014862060546875, 0.01678466796875, 0.0185089111328125, -0.056610107421875, -0.00623321533203125, -0.015899658203125, 0.0338134765625, 0.00583648681640625, -0.05145263671875, -0.00098419189453125, -0.004673004150390625, -0.015625, -0.01485443115234375, -0.03887939453125, -0.0237579345703125, -0.0255889892578125, 0.0004892349243164062, -0.00543975830078125, -0.03558349609375, 0.02667236328125, 0.01131439208984375, 0.00780487060546875, 0.0160675048828125, 0.033294677734375, -0.02081298828125, 0.01258087158203125, -0.020965576171875, -0.01305389404296875, -0.01091766357421875, 0.01490020751953125, -0.0288848876953125, 0.014984130859375, 0.002864837646484375, 0.032257080078125, -0.002025604248046875, -0.0496826171875, 0.027435302734375, 0.01274871826171875, -0.0018787384033203125, -0.045135498046875, 0.0227203369140625, -0.00437164306640625, 0.0157623291015625, 0.0290985107421875, 0.006011962890625, 0.00824737548828125, -0.03448486328125, 0.0587158203125, 0.0114593505859375, -0.00743865966796875, -0.0401611328125, 0.0138397216796875, -0.01050567626953125, -0.054962158203125, 0.04150390625, 0.013275146484375, -0.00701141357421875, 0.006687164306640625, -0.07318115234375, 0.01953125, -0.036895751953125, 0.0330810546875, 0.0168609619140625, 0.004199981689453125, 0.0036182403564453125, -0.01396942138671875, -0.0133209228515625, 0.0025882720947265625, -0.042327880859375, 0.027191162109375, -0.0240325927734375, 0.03399658203125, -0.007175445556640625, 0.03656005859375, 0.00545501708984375, -0.053680419921875, 0.00897216796875, 0.015655517578125, 0.007549285888671875, 0.01099395751953125, 0.006481170654296875, 0.01421356201171875, 0.06982421875, 0.043243408203125, 0.033477783203125, -0.04278564453125, -0.01549530029296875, -0.025146484375, -0.0455322265625, -0.007633209228515625, -0.011260986328125, -0.03662109375, 0.00848388671875, 0.0545654296875, 0.033477783203125, 0.021026611328125, 0.00726318359375, 0.0081787109375, 0.041290283203125, -0.0293731689453125, 0.01329803466796875, 0.016693115234375, 0.03631591796875, 0.058380126953125, -0.03997802734375, -0.01366424560546875, 0.0101165771484375, -0.07977294921875, 0.00830841064453125, 0.053802490234375, -0.0302581787109375, -0.052520751953125, 0.00917816162109375, 0.0084075927734375, 0.0140228271484375, -0.053863525390625, -0.031341552734375, -0.01422119140625, 0.0404052734375, -0.06121826171875, 0.010040283203125, -0.006977081298828125, 0.00408935546875, -0.0291748046875, 0.030029296875, -0.01087188720703125, -0.0024394989013671875, -0.00423431396484375, -0.048919677734375, 0.003604888916015625, -0.0287322998046875, 0.034027099609375, 0.0034961700439453125, -0.015625, 0.02435302734375, 0.0804443359375, -0.00922393798828125, -0.00323486328125, 0.003177642822265625, -0.0196685791015625, -0.04144287109375, 0.046234130859375, 0.0253448486328125, 0.0049591064453125, 0.038482666015625, -0.00868988037109375, -0.0261077880859375, 0.036346435546875, -0.00989532470703125, -0.03997802734375, 0.0098724365234375, -0.0148468017578125, 0.00485992431640625, -0.049102783203125, 0.004512786865234375, 0.0235137939453125, 0.01345062255859375, -0.062469482421875, 0.007602691650390625, -0.024444580078125, 0.00074005126953125, 0.0261383056640625, 0.00555419921875, -0.01221466064453125, -0.05023193359375, 0.01419830322265625, -0.006256103515625, 0.040374755859375, -0.07672119140625, -0.0784912109375, -0.042083740234375, -0.013153076171875, -0.139404296875, -0.06243896484375, -0.01922607421875, -0.06829833984375, 0.00882720947265625, -0.0039005279541015625, -0.0423583984375, 0.00004756450653076172, 0.0117340087890625, 0.0127105712890625, -0.00972747802734375, 0.00481414794921875, -0.0161285400390625, -0.0136871337890625, -0.043304443359375, -0.00952911376953125, -0.0008754730224609375, 0.0260467529296875, 0.0158233642578125, -0.0214385986328125, 0.005706787109375, -0.034210205078125, -0.0119171142578125, 0.09832763671875, -0.0209503173828125, -0.03302001953125, -0.040069580078125, 0.03228759765625, 0.0300750732421875, 0.005702972412109375, -0.035614013671875, 0.0133056640625, -0.01078033447265625, -0.039581298828125, 0.0012969970703125, 0.05316162109375, 0.057220458984375, -0.047637939453125, -0.0177001953125, 0.0679931640625, 0.033050537109375, -0.01198577880859375, -0.0007977485656738281, -0.006153106689453125, -0.033966064453125, -0.00029540061950683594, 0.0167236328125, -0.023162841796875, -0.01435089111328125, -0.0011587142944335938, -0.0175933837890625, 0.0030155181884765625, 0.040771484375, -0.02923583984375, 0.0182342529296875, -0.01427459716796875, -0.020904541015625, -0.0007104873657226562, 0.0198516845703125, -0.0105438232421875, 0.0091094970703125, 0.0076446533203125, 0.0108184814453125, -0.005245208740234375, -0.0189971923828125, -0.031646728515625, -0.048675537109375, 0.06787109375, -0.0012140274047851562, -0.0241851806640625, -0.00959014892578125, -0.040191650390625, 0.026153564453125, 0.08331298828125, -0.0310516357421875, -0.01537322998046875, -0.033050537109375, 0.0052032470703125, -0.036468505859375, -0.017822265625, -0.021759033203125, 0.0094451904296875, -0.036865234375, 0.00299835205078125, 0.00412750244140625, 0.0062255859375, -0.049530029296875, 0.040924072265625, -0.0484619140625, -0.012969970703125, 0.02178955078125, 0.0631103515625, -0.0308990478515625, 0.049713134765625, -0.0205841064453125, 0.035858154296875, -0.0293426513671875, 0.0384521484375, -0.06304931640625, -0.015899658203125, -0.043914794921875, 0.06781005859375, 0.048980712890625, -0.051727294921875, 0.003116607666015625, 0.04119873046875, 0.0279693603515625, 0.059051513671875, -0.009429931640625, 0.0006804466247558594, 0.0263519287109375, -0.0152435302734375, 0.033447265625, -0.0084228515625, -0.00959014892578125, 0.01934814453125, 0.0025043487548828125, 0.07080078125, -0.01119232177734375, 0.010955810546875, 0.01641845703125, -0.042236328125, -0.01152801513671875, 0.0015687942504882812, -0.029296875, 0.0195770263671875, -0.033782958984375, 0.023956298828125, -0.0123443603515625, -0.0372314453125, 0.08416748046875, 0.043701171875, 0.0019626617431640625, -0.035614013671875, 0.0611572265625, 0.0109100341796875, -0.068115234375, -0.00960540771484375, 0.027862548828125, 0.050689697265625, -0.009490966796875, 0.06768798828125, 0.047393798828125, -0.0286865234375, 0.07354736328125, 0.0340576171875, -0.025604248046875, -0.008392333984375, 0.046234130859375, 0.00888824462890625, 0.002368927001953125, -0.00018513202667236328, -0.028656005859375, 0.0234222412109375, 0.037567138671875, -0.00815582275390625, -0.01959228515625, 0.029571533203125, 0.040435791015625, -0.047210693359375, 0.036285400390625, -0.0191192626953125, -0.032867431640625, 0.0223388671875, -0.0174713134765625, -0.041473388671875, -0.0175018310546875, 0.0018444061279296875, -0.057464599609375, -0.0283203125, -0.00440216064453125, 0.004795074462890625, -0.000598907470703125, 0.0130462646484375, 0.0293731689453125, 0.0302581787109375, 0.004230499267578125, -0.018035888671875, 0.0017614364624023438, -0.0003306865692138672, 0.0015897750854492188, -0.03173828125, 0.0077667236328125, 0.0011653900146484375, -0.0152435302734375, 0.020172119140625, -0.0193939208984375, -0.014678955078125, 0.052398681640625, 0.0008120536804199219, 0.017822265625, 0.033660888671875, 0.03155517578125, -0.01959228515625, 0.00579833984375, -0.0009098052978515625, -0.01434326171875, 0.0052337646484375, 0.0635986328125, -0.00501251220703125, 0.026153564453125, -0.0214385986328125, 0.04376220703125, 0.016143798828125, 0.06903076171875, 0.0302276611328125, -0.06402587890625, -0.0178985595703125, 0.059722900390625, -0.050750732421875, -0.01195526123046875, 0.0170440673828125, 0.03094482421875, 0.022308349609375, -0.01215362548828125, -0.005290985107421875, 0.0019292831420898438, -0.01027679443359375, -0.020904541015625, 0.00399017333984375, 0.055206298828125, 0.012451171875, -0.0008206367492675781, 0.0032787322998046875, -0.0194854736328125, 0.040069580078125, 0.0176239013671875, -0.02593994140625, 0.00899505615234375, 0.0198211669921875, -0.01568603515625, 0.024261474609375, -0.022705078125, -0.0284271240234375, -0.0022907257080078125, -0.0279388427734375, 0.004375457763671875, 0.0112152099609375, 0.031524658203125, -0.0249786376953125, -0.029937744140625, 0.037994384765625, -0.0157470703125, 0.0458984375, -0.02374267578125, -0.01068878173828125, -0.046112060546875, 0.003498077392578125, 0.037445068359375, 0.02069091796875, -0.01421356201171875, -0.0145263671875, -0.060577392578125, -0.01812744140625, -0.03143310546875, -0.031341552734375, -0.021209716796875, 0.01519012451171875, 0.027862548828125, 0.02923583984375, -0.01015472412109375, -0.02850341796875, 0.04534912109375, 0.012359619140625, 0.0063629150390625, 0.094482421875, -0.007183074951171875, 0.0989990234375, -0.007701873779296875, 0.0654296875, 0.0311126708984375, 0.0738525390625, 0.0004181861877441406, -0.0225372314453125, 0.00298309326171875, -0.0047454833984375, -0.00460052490234375, 0.0150299072265625, 0.024627685546875, -0.04010009765625, -0.0153045654296875, 0.0007505416870117188, -0.0222320556640625, 0.0006527900695800781, -0.00873565673828125, -0.031768798828125, 0.0219879150390625, -0.0003161430358886719, 0.00946807861328125, -0.04962158203125, -0.03515625, -0.01074981689453125, -0.01220703125, 0.04913330078125, -0.01532745361328125, -0.0357666015625, -0.01427459716796875, 0.0276031494140625, -0.00027632713317871094, 0.011322021484375, 0.03363037109375, 0.035980224609375, 0.053192138671875, -0.0002675056457519531, 0.045318603515625, -0.01220703125, 0.0088653564453125, -0.03173828125, -0.021697998046875, -0.01491546630859375, -0.01111602783203125, 0.018157958984375, -0.0207366943359375, 0.00653839111328125, 0.053985595703125, 0.04803466796875, 0.0660400390625, -0.06561279296875, 0.01165771484375, 0.01166534423828125, -0.06597900390625, 0.0136566162109375, 0.035797119140625, -0.0179443359375, -0.0088348388671875, 0.01375579833984375, -0.047637939453125, -0.017822265625, 0.0192718505859375, -0.01457977294921875, -0.01302337646484375, -0.0027141571044921875, 0.0249481201171875, 0.018585205078125, -0.012237548828125, 0.0186004638671875, -0.02618408203125, 0.037384033203125, -0.029144287109375, 0.0181427001953125, -0.03338623046875, 0.004566192626953125, -0.05078125, -0.008880615234375, -0.0169830322265625, 0.00749969482421875, 0.0206298828125, 0.02044677734375, 0.03497314453125, 0.0662841796875, 0.0017156600952148438, 0.006076812744140625, 0.0230865478515625, -0.006221771240234375, -0.0051116943359375, -0.01421356201171875, 0.001506805419921875, 0.035736083984375, 0.0035686492919921875, 0.021453857421875, -0.002735137939453125, -0.035247802734375, 0.00823211669921875, -0.01270294189453125, 0.056427001953125, 0.007427215576171875, -0.03314208984375, 0.0275115966796875, -0.032196044921875, -0.0189056396484375, -0.00782012939453125, 0.035125732421875, -0.0374755859375, -0.0223388671875, -0.0009365081787109375, -0.03369140625, -0.036956787109375, -0.01206207275390625, -0.0699462890625, 0.078857421875, -0.0127716064453125, 0.03350830078125, -0.0150604248046875, 0.0225372314453125, -0.01519775390625, -0.007198333740234375, -0.03924560546875, 0.0235443115234375, -0.0123291015625, -0.00786590576171875, -0.049468994140625, 0.01033782958984375, -0.0272064208984375, 0.01032257080078125, 0.0189208984375, 0.0041656494140625, 0.005725860595703125, -0.011077880859375, 0.043182373046875, 0.056640625, 0.0228271484375, -0.0214385986328125, -0.00888824462890625, 0.0114593505859375, 0.040191650390625, -0.06292724609375, 0.0164642333984375, -0.007568359375, 0.00325775146484375, 0.0042266845703125, -0.00246429443359375, -0.0275726318359375, 0.01568603515625, -0.0228729248046875, -0.032745361328125, 0.00914764404296875, 0.00799560546875, -0.0638427734375, 2.384185791015625e-7, 0.0197296142578125, 0.027587890625, -0.061492919921875, -0.020172119140625, -0.026397705078125, 0.050262451171875, 0.00643157958984375, -0.018890380859375, 0.030975341796875, 0.012664794921875, 0.01337432861328125, 0.004856109619140625, -0.01248931884765625, 0.00844573974609375, 0.027313232421875, 0.033050537109375, 0.03271484375, 0.015411376953125, -0.03167724609375, 0.001827239990234375, 0.0419921875, 0.0528564453125, -0.03472900390625, -0.01421356201171875, 0.0091552734375, 0.007781982421875, 0.0156402587890625, -0.03155517578125, 0.01080322265625, -0.041595458984375, -0.01493072509765625, 0.01702880859375, -0.0167388916015625, 0.0275421142578125, 0.01381683349609375, 0.0289306640625, 0.02301025390625, -0.0208282470703125, -0.006137847900390625, -0.09197998046875, 0.07550048828125, 0.036712646484375, 0.0872802734375, -0.01290130615234375, 0.109375, 0.002201080322265625, -0.038787841796875, 0.035003662109375, 0.009033203125, 0.0257568359375, -0.0556640625, 0.02020263671875, -0.036041259765625, -0.007266998291015625, 0.0019741058349609375, 0.01558685302734375, -0.016937255859375, 0.0243072509765625, 0.043182373046875, -0.0289306640625, -0.02069091796875, 0.002986907958984375, -0.01056671142578125, -0.05194091796875, -0.01552581787109375, -0.020721435546875, -0.0005602836608886719, -0.0119171142578125, 0.0419921875, 0.018951416015625, -0.0117340087890625, -0.0231781005859375, 0.060150146484375, -0.0077056884765625, 0.027191162109375, 0.057647705078125, -0.028076171875, 0.0394287109375, -0.017059326171875, -0.04736328125, 0.018707275390625, -0.02593994140625, -0.060394287109375, 0.0141448974609375, 0.026885986328125, -0.00400543212890625, -0.0017528533935546875, 0.01043701171875, -0.027313232421875, 0.0244598388671875, -0.01113128662109375, 0.03411865234375, -0.0089569091796875, -0.00955963134765625, -0.01116180419921875, -0.039642333984375, -0.01690673828125, -0.0304107666015625, 0.034576416015625, 0.004703521728515625, 0.0003807544708251953, 0.00981903076171875, 0.041595458984375, -0.028076171875, -0.00696563720703125, -0.0157470703125, -0.01451873779296875, 0.0162506103515625, 0.02484130859375, 0.01125335693359375, -0.02923583984375, -0.03521728515625, -0.0234375, 0.06500244140625, -0.0220794677734375, -0.01226806640625, -0.002689361572265625, 0.031707763671875, -0.036651611328125, 0.004489898681640625, -0.024871826171875, 0.0075225830078125, 0.0270233154296875, -0.007709503173828125, 0.049468994140625, 0.0009927749633789062, -0.014434814453125, 0.053009033203125, -0.009368896484375, 0.01142120361328125, 0.0341796875, -0.043365478515625, 0.01568603515625, 0.0298004150390625, -0.04327392578125, 0.00577545166015625, -0.0496826171875, -0.0396728515625, -0.01126861572265625, 0.0032062530517578125, -0.0104522705078125, -0.0258941650390625, 0.03533935546875, -0.006923675537109375, 0.0145721435546875, -0.01059722900390625, -0.0701904296875, -0.008575439453125, 0.061767578125, -0.0111846923828125, -0.0074615478515625, -0.0204315185546875, -0.0312347412109375, -0.03765869140625, 0.018829345703125, 0.0272216796875, -0.0011281967163085938, -0.00013649463653564453, -0.057342529296875, -0.00601959228515625, -0.01178741455078125, -0.040283203125, 0.03759765625, -0.041534423828125, -0.0037899017333984375, 0.012115478515625, -0.0428466796875, -0.03680419921875, 0.0032520294189453125, 0.007076263427734375, -0.0313720703125, -0.043792724609375, -0.0438232421875, 0.0123138427734375, -0.045013427734375, -0.03460693359375, 0.007350921630859375, 0.0291595458984375, -0.0394287109375, 0.0093994140625, -0.047576904296875, 0.042816162109375, -0.06201171875, -0.0298614501953125, 0.0160980224609375, -0.012481689453125, 0.0023860931396484375, -0.06201171875, 0.0163726806640625, -0.11224365234375, -0.0212860107421875, -0.0031147003173828125, -0.0256195068359375, -0.01015472412109375, -0.025421142578125, -0.0163421630859375, 0.05242919921875, 0.00934600830078125, -0.010650634765625, -0.08135986328125, 0.00547027587890625, 0.01114654541015625, 0.035369873046875, -0.01129150390625, -0.032470703125, -0.041412353515625, 0.0249786376953125, 0.00714111328125, 0.005084991455078125, 0.045257568359375, -0.0255126953125, -0.045257568359375, -0.059844970703125, -0.034027099609375, -0.0250091552734375, 0.004756927490234375, 0.01116180419921875, 0.007488250732421875, 0.02923583984375, -0.03399658203125, -0.0477294921875, -0.0296783447265625, -0.0234375, -0.0308837890625, -0.050323486328125, -0.03753662109375, -0.0033416748046875, 0.06439208984375, 0.084716796875, 0.02032470703125, -0.057342529296875, 0.02081298828125, -0.027923583984375, -0.0305938720703125, -0.0002732276916503906, 0.0185699462890625, -0.03753662109375, -0.0083770751953125, -0.0006666183471679688, 0.0233917236328125, 0.0276336669921875, -0.04937744140625, -0.003631591796875, -0.01641845703125, -0.0026111602783203125, 0.001308441162109375, -0.0093231201171875, 0.02703857421875, 0.049072265625, -0.041168212890625, -0.0205230712890625, -0.003612518310546875, -0.001552581787109375, -0.0008001327514648438, -0.0204010009765625, -0.0017642974853515625, 0.038299560546875, 0.02044677734375, -0.02337646484375, 0.049285888671875, 0.0019388198852539062, 0.048187255859375, 0.0023021697998046875, 0.0195770263671875, 0.0016031265258789062, -0.01091766357421875, 0.01052093505859375, 0.036712646484375, -0.017974853515625, -0.0185394287109375, -0.012939453125, 0.0010128021240234375, 0.0322265625, 0.01496124267578125, 0.005161285400390625, -0.036773681640625, -0.0070343017578125, -0.008941650390625, -0.039642333984375, 0.005580902099609375, 0.002407073974609375, -0.03424072265625, -0.006099700927734375, -0.007720947265625, -0.06317138671875, -0.023651123046875, -0.00923919677734375 ]
a4b7e71df308f8e82bd66d9ad507df5c9342da61
Wordpress Stackexchange Q: How to add post count to wp_nav_menu? Is it possible to add post count to menu links using wp_nav_menu? For example:- Apple (3) ball (6) cat (2) A: Basically the easiest thing should be a callback to the start_el() method of the Walker class. // From core: apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args ); Just grab the data (whatever the actual data is and from wherever it comes) and append it. add_action( 'walker_nav_menu_start_el', 'wpse_10042_nav_menu_post_count', 10, 4 ); function wpse_10042_nav_menu_post_count( $output, $item, $depth, $args ) { // Check $item and get the data you need printf( '<pre>%s</pre>', var_export( $item, true ) ); // Then append whatever you need to the $output $output .= ''; return $output; }
Q: How to add post count to wp_nav_menu? Is it possible to add post count to menu links using wp_nav_menu? For example:- Apple (3) ball (6) cat (2) A: Basically the easiest thing should be a callback to the start_el() method of the Walker class. // From core: apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args ); Just grab the data (whatever the actual data is and from wherever it comes) and append it. add_action( 'walker_nav_menu_start_el', 'wpse_10042_nav_menu_post_count', 10, 4 ); function wpse_10042_nav_menu_post_count( $output, $item, $depth, $args ) { // Check $item and get the data you need printf( '<pre>%s</pre>', var_export( $item, true ) ); // Then append whatever you need to the $output $output .= ''; return $output; } A: Have you seen this thread? $menu_to_count = wp_nav_menu(array( 'echo' => false, 'theme_location' => 'menu' )); $menu_items = substr_count($menu_to_count,'class="menu-item '); echo $menu_items;
wordpress
{ "language": "en", "length": 139, "provenance": "stackexchange_00019.jsonl.gz:432744", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/100427" }
[ 0.08154296875, 0.007259368896484375, 0.02313232421875, 0.01812744140625, 0.035614013671875, -0.051422119140625, 0.10089111328125, -0.06304931640625, -0.0273895263671875, -0.0135345458984375, -0.01090240478515625, -0.00370025634765625, -0.0635986328125, -0.038848876953125, 0.0205078125, -0.05596923828125, 0.027099609375, -0.002910614013671875, 0.036346435546875, 0.006103515625, -0.0020275115966796875, 0.0266876220703125, 0.02398681640625, 0.0276641845703125, 0.00238037109375, -0.002719879150390625, 0.03936767578125, -0.02203369140625, -0.0139312744140625, -0.01488494873046875, 0.007167816162109375, 0.0031032562255859375, 0.01270294189453125, -0.016876220703125, 0.0251312255859375, 0.0209503173828125, 0.0208282470703125, -0.01104736328125, 0.013946533203125, 0.007732391357421875, 0.030731201171875, -0.0219573974609375, 0.043792724609375, -0.02960205078125, 0.0177764892578125, 0.000576019287109375, 0.0209808349609375, -0.05169677734375, 0.026824951171875, -0.062164306640625, 0.01004791259765625, 0.0183258056640625, 0.0297393798828125, -0.0372314453125, -0.0270538330078125, -0.0032749176025390625, 0.01280975341796875, -0.033294677734375, 0.048004150390625, 0.00518798828125, -0.038726806640625, -0.0479736328125, 0.0262603759765625, -0.0635986328125, -0.00211334228515625, 0.01373291015625, 0.027740478515625, 0.0155487060546875, -0.0307769775390625, -0.0169525146484375, -0.0037517547607421875, -0.0136871337890625, -0.0251617431640625, 0.0169525146484375, -0.0018434524536132812, -0.060272216796875, 0.03070068359375, -0.043487548828125, -0.0024871826171875, 0.061370849609375, -0.0066070556640625, 0.03314208984375, -0.006465911865234375, -0.01532745361328125, -0.0216217041015625, -0.006633758544921875, -0.033233642578125, -0.01338958740234375, 0.0018329620361328125, -0.022705078125, -0.007160186767578125, 0.00989532470703125, -0.0168609619140625, 0.0143280029296875, -0.0144805908203125, -0.0309906005859375, 0.018798828125, 0.060577392578125, -0.023101806640625, 0.013641357421875, -0.0025043487548828125, -0.033599853515625, 0.01371002197265625, -0.04754638671875, 0.024169921875, 0.052978515625, -0.0019931793212890625, 0.0604248046875, 0.085205078125, 0.0156402587890625, 0.0240936279296875, 0.06951904296875, -0.01371002197265625, -0.01009368896484375, -0.02947998046875, 0.033782958984375, -0.01261138916015625, -0.0224761962890625, -0.0134429931640625, -0.0193939208984375, -0.05291748046875, -0.027618408203125, -0.02459716796875, 0.024688720703125, 0.036895751953125, 0.0167236328125, 0.0128326416015625, 0.03125, 0.003017425537109375, 0.0289764404296875, -0.0248565673828125, 0.0092926025390625, 0.039886474609375, 0.0361328125, 0.00591278076171875, -0.022705078125, -0.0101318359375, -0.037322998046875, -0.04150390625, 0.0245208740234375, -0.0305633544921875, -0.02874755859375, 0.01080322265625, -0.056243896484375, 0.0380859375, 0.01308441162109375, 0.00766754150390625, 0.0218505859375, 0.0217132568359375, -0.036163330078125, 0.0328369140625, -0.019683837890625, 0.0228424072265625, 0.00902557373046875, -0.033905029296875, 0.020263671875, -0.0297393798828125, 0.0086669921875, -0.0173187255859375, 0.011444091796875, -0.0357666015625, -0.004573822021484375, 0.02947998046875, -0.04583740234375, -0.055084228515625, 0.0194244384765625, -0.02862548828125, -0.00872039794921875, 0.0181427001953125, 0.0196990966796875, -0.002033233642578125, 0.00800323486328125, -0.0002980232238769531, -0.00992584228515625, -0.00830078125, 0.00514984130859375, -0.00891876220703125, 0.0172576904296875, 0.0132598876953125, 0.042755126953125, -0.0012235641479492188, -0.044403076171875, 0.0550537109375, -0.0113677978515625, -0.030975341796875, 0.0015850067138671875, 0.0086212158203125, 0.05657958984375, 0.01251983642578125, 0.025634765625, -0.0015802383422851562, -0.004058837890625, 0.00914764404296875, -0.0404052734375, -0.0074920654296875, -0.0202789306640625, -0.00009304285049438477, -0.007293701171875, -0.00823974609375, 0.0309600830078125, -0.01506805419921875, 0.01462554931640625, -0.0187530517578125, 0.007080078125, -0.041351318359375, -0.005901336669921875, -0.00893402099609375, 0.029571533203125, 0.01461029052734375, 0.0158843994140625, 0.0179595947265625, 0.00786590576171875, -0.00829315185546875, -0.046966552734375, -0.040771484375, 0.008209228515625, -0.004634857177734375, -0.0048828125, -0.03338623046875, 0.0034332275390625, -0.038818359375, -0.00977325439453125, -0.05511474609375, 0.0294189453125, 0.048004150390625, -0.027923583984375, -0.029632568359375, -0.03363037109375, -0.0008258819580078125, -0.0128173828125, -0.045867919921875, 0.0689697265625, 0.01708984375, -0.0018224716186523438, -0.0396728515625, -0.013885498046875, -0.02642822265625, -0.075927734375, -0.0058135986328125, 0.0616455078125, 0.044097900390625, 0.026336669921875, 0.0199432373046875, -0.0009417533874511719, 0.0258636474609375, -0.0183868408203125, 0.037322998046875, -0.036590576171875, -0.032745361328125, 0.00943756103515625, 0.0703125, 0.021453857421875, 0.0160980224609375, 0.0172119140625, -0.0008745193481445312, 0.0288848876953125, 0.0022792816162109375, 0.01332855224609375, -0.0361328125, 0.0196075439453125, 0.0091094970703125, -0.0020751953125, -0.01277923583984375, -0.00984954833984375, -0.006805419921875, -0.001209259033203125, 0.006103515625, -0.0004200935363769531, -0.0333251953125, -0.00917816162109375, 0.03240966796875, 0.043212890625, 0.0059356689453125, -0.01320648193359375, -0.046661376953125, 0.0162353515625, -0.0234375, 0.0186004638671875, 0.03802490234375, -0.0189208984375, -0.026275634765625, 0.027435302734375, 0.0247802734375, -0.0225677490234375, -0.0181884765625, -0.06884765625, 0.0234375, -0.03167724609375, -0.040496826171875, -0.0108642578125, 0.0213623046875, -0.00004947185516357422, -0.02777099609375, -0.00498199462890625, -0.00677490234375, -0.007152557373046875, 0.061981201171875, -0.027587890625, 0.0206451416015625, -0.0029010772705078125, 0.07708740234375, 0.053955078125, -0.004665374755859375, -0.00270843505859375, -0.006046295166015625, 0.00022995471954345703, -0.033172607421875, 0.042236328125, 0.007476806640625, -0.058380126953125, 0.0029582977294921875, 0.0333251953125, 0.0093536376953125, -0.00969696044921875, 0.013641357421875, -0.017425537109375, -0.0164031982421875, -0.01861572265625, -0.09271240234375, -0.08416748046875, 0.036224365234375, -0.05694580078125, 0.0274658203125, 0.0313720703125, -0.038116455078125, -0.045867919921875, 0.07891845703125, 0.00977325439453125, -0.06378173828125, -0.0006365776062011719, -0.01486968994140625, -0.03961181640625, -0.035888671875, 0.0185089111328125, 0.0024929046630859375, 0.0146636962890625, 0.0027008056640625, 0.05767822265625, -0.0036678314208984375, -0.04644775390625, 0.0030517578125, 0.0176544189453125, -0.0080108642578125, 0.0048675537109375, -0.004268646240234375, 0.0173187255859375, -0.00732421875, 0.0282440185546875, -0.0097198486328125, -0.0045928955078125, -0.00162506103515625, -0.03240966796875, -0.007266998291015625, 0.0170135498046875, 0.0213470458984375, -0.0013799667358398438, -0.0006575584411621094, 0.037200927734375, 0.034576416015625, -0.022430419921875, -0.00603485107421875, -0.0308380126953125, -0.03271484375, -0.0276947021484375, 0.018402099609375, 0.0167694091796875, -0.0435791015625, 0.00698089599609375, -0.00623321533203125, -0.0110015869140625, 0.056365966796875, -0.013641357421875, 0.04779052734375, -0.0247344970703125, -0.03485107421875, -0.054290771484375, 0.0018548965454101562, -0.007625579833984375, 0.006786346435546875, -0.01084136962890625, 0.01605224609375, -0.0239410400390625, 0.0291900634765625, -0.0543212890625, -0.059539794921875, 0.049285888671875, 0.02374267578125, 0.0303497314453125, -0.031585693359375, -0.0404052734375, -0.00482940673828125, 0.0882568359375, -0.031951904296875, -0.05706787109375, -0.052093505859375, 0.028656005859375, 0.0233154296875, -0.08270263671875, 0.0804443359375, -0.043792724609375, -0.060150146484375, 0.0212554931640625, 0.0050811767578125, -0.0222625732421875, -0.0284271240234375, 0.0280303955078125, -0.033538818359375, -0.0240936279296875, 0.03765869140625, -0.0400390625, -0.002094268798828125, 0.00946807861328125, -0.0296173095703125, -0.0090484619140625, -0.03857421875, -0.004940032958984375, -0.046478271484375, -0.004974365234375, -0.017547607421875, 0.0394287109375, 0.0011463165283203125, 0.005462646484375, 0.0025844573974609375, 0.03228759765625, 0.0328369140625, 0.036346435546875, 0.00444793701171875, -0.0021190643310546875, -0.0007333755493164062, -0.01212310791015625, 0.02642822265625, -0.029693603515625, 0.004611968994140625, -0.01194000244140625, -0.02349853515625, 0.0301971435546875, -0.021575927734375, 0.021759033203125, -0.00156402587890625, -0.0216522216796875, -0.03656005859375, -0.048858642578125, -0.0247802734375, 0.0288238525390625, 0.00047969818115234375, -0.003936767578125, -0.048004150390625, -0.049041748046875, -0.007526397705078125, -0.021575927734375, -0.0111846923828125, 0.0145721435546875, 0.04461669921875, 0.0256805419921875, 0.00015819072723388672, -0.0005235671997070312, -0.0003657341003417969, 0.01885986328125, -0.0232086181640625, 0.033782958984375, 0.01325225830078125, -0.00621795654296875, 0.0188751220703125, -0.018646240234375, 0.00714111328125, -0.0100250244140625, -0.01004791259765625, 0.034515380859375, 0.003021240234375, -0.00986480712890625, 0.0285186767578125, 0.03057861328125, 0.043243408203125, -0.01250457763671875, -0.016021728515625, 0.006023406982421875, 0.0396728515625, -0.01299285888671875, -0.0018949508666992188, -0.027984619140625, 0.015228271484375, -0.0115966796875, 0.0188751220703125, 0.0631103515625, 0.03668212890625, -0.0037136077880859375, 0.0163421630859375, 0.039642333984375, 0.004669189453125, 0.0272064208984375, 0.0309295654296875, -0.003620147705078125, 0.038970947265625, -0.013336181640625, -0.0229949951171875, 0.006134033203125, -0.00852203369140625, 0.04058837890625, 0.044586181640625, -0.0372314453125, 0.01349639892578125, 0.01187896728515625, 0.008331298828125, -0.019866943359375, 0.0034198760986328125, 0.05072021484375, 0.025299072265625, -0.0205078125, -0.0213623046875, -0.0333251953125, -0.031097412109375, -0.0562744140625, 0.0189056396484375, 0.005657196044921875, -0.006618499755859375, 0.02911376953125, 0.032440185546875, 0.0217742919921875, 0.02764892578125, -0.019195556640625, -0.00543212890625, 0.0192108154296875, 0.05194091796875, 0.0296478271484375, -0.0457763671875, -0.03436279296875, 0.0689697265625, 0.00855255126953125, -0.01678466796875, 0.006343841552734375, 0.01076507568359375, -0.001308441162109375, 0.004398345947265625, -0.01029205322265625, 0.0296630859375, 0.00365447998046875, -0.0032482147216796875, -0.012298583984375, -0.0240325927734375, -0.0310516357421875, -0.01158905029296875, 0.03759765625, 0.0235748291015625, -0.0080108642578125, 0.025604248046875, -0.028594970703125, 0.041015625, 0.021331787109375, -0.027923583984375, -0.0011434555053710938, 0.0002105236053466797, 0.0017633438110351562, -0.031707763671875, -0.0167083740234375, 0.0355224609375, -0.035430908203125, -0.0012674331665039062, -0.0240478515625, -0.0231475830078125, 0.03729248046875, -0.0183868408203125, 0.037872314453125, -0.03082275390625, 0.0001671314239501953, 0.01239776611328125, 0.004970550537109375, 0.03240966796875, 0.006622314453125, 0.01239013671875, -0.0218658447265625, -0.006008148193359375, -0.02349853515625, 0.07550048828125, 0.0077972412109375, -0.0208282470703125, -0.0352783203125, -0.01267242431640625, 0.017608642578125, -0.006320953369140625, -0.02392578125, -0.03167724609375, -0.00496673583984375, 0.0223388671875, -0.01108551025390625, 0.0009598731994628906, 0.06341552734375, -0.006153106689453125, 0.0300445556640625, 0.01220703125, 0.040069580078125, -0.0012464523315429688, -0.034149169921875, 0.0245513916015625, -0.017059326171875, -0.0234222412109375, -0.0184173583984375, 0.0038700103759765625, -0.0177764892578125, 0.01171875, -0.0151519775390625, 0.0537109375, -0.01324462890625, 0.012847900390625, -0.009368896484375, -0.048370361328125, -0.0323486328125, -0.0013437271118164062, 0.05596923828125, 0.0185699462890625, 0.04547119140625, -0.00934600830078125, 0.005397796630859375, -0.0198211669921875, 0.01239776611328125, 0.01316070556640625, -0.0232391357421875, -0.061370849609375, 0.080322265625, 0.08209228515625, 0.0209503173828125, 0.048095703125, 0.0266876220703125, 0.01293182373046875, -0.0188140869140625, -0.007549285888671875, 0.034271240234375, 0.026397705078125, 0.07550048828125, -0.00951385498046875, -0.0191497802734375, 0.0318603515625, -0.0467529296875, 0.0143585205078125, 0.00011932849884033203, 0.0108642578125, -0.01520538330078125, 0.00812530517578125, -0.0218353271484375, -0.0267791748046875, 0.0557861328125, -0.0024394989013671875, 0.00044846534729003906, 0.0007004737854003906, 0.0673828125, -0.0259857177734375, 0.0008301734924316406, 0.040069580078125, -0.0110931396484375, 0.0009279251098632812, 0.01441192626953125, 0.0016717910766601562, 0.005115509033203125, -0.0037822723388671875, -0.040863037109375, 0.0010166168212890625, -0.009063720703125, -0.034271240234375, -0.0195770263671875, 0.0113067626953125, 0.00899505615234375, -0.042816162109375, 0.054107666015625, -0.0626220703125, 0.054779052734375, 0.031097412109375, 0.005046844482421875, 0.032501220703125, 0.03759765625, -0.01062774658203125, 0.0219268798828125, 0.0034999847412109375, 0.0008840560913085938, -0.007232666015625, -0.0011644363403320312, 0.019073486328125, 0.0018224716186523438, -0.04156494140625, 0.01268768310546875, -0.0289154052734375, -0.00923919677734375, -0.017425537109375, -0.0018463134765625, 0.1068115234375, -0.03167724609375, -0.027618408203125, 0.0131072998046875, -0.003368377685546875, 0.00301361083984375, -0.0193328857421875, 0.065673828125, -0.049560546875, -0.0216217041015625, 0.0284271240234375, 0.0100250244140625, -0.021087646484375, -0.0140533447265625, -0.011474609375, 0.10198974609375, -0.05029296875, -0.01244354248046875, 0.01529693603515625, 0.07012939453125, -0.00244140625, 0.06634521484375, -0.06817626953125, 0.08343505859375, 0.0129241943359375, 0.058563232421875, -0.0640869140625, -0.01512908935546875, 0.0150146484375, 0.029022216796875, 0.0006546974182128906, 0.0030345916748046875, -0.0102691650390625, -0.015380859375, 0.034271240234375, 0.035491943359375, 0.01055145263671875, 0.019317626953125, 0.00508880615234375, -0.006134033203125, 0.06256103515625, -0.033172607421875, 0.025634765625, -0.0212860107421875, 0.02203369140625, -0.004974365234375, 0.023101806640625, 0.032196044921875, -0.01849365234375, 0.0197601318359375, 0.01055145263671875, -0.011474609375, -0.01430511474609375, 0.040496826171875, -0.005859375, 0.083984375, 0.0220794677734375, -0.024932861328125, -0.03741455078125, -0.038360595703125, 0.032745361328125, -0.01262664794921875, 0.0262298583984375, 0.0258026123046875, 0.0224456787109375, 0.0596923828125, -0.0023593902587890625, 0.0087890625, 0.027435302734375, -0.01312255859375, 0.060516357421875, 0.002216339111328125, 0.039825439453125, -0.044036865234375, -0.02716064453125, 0.0134735107421875, 0.070068359375, -0.02899169921875, -0.02154541015625, 0.006122589111328125, 0.008697509765625, 0.0005726814270019531, 0.0158538818359375, 0.048919677734375, 0.004749298095703125, 0.007110595703125, 0.004802703857421875, -0.025054931640625, 0.0140533447265625, 0.0419921875, 0.014404296875, 0.03253173828125, -0.0511474609375, -0.03955078125, -0.0457763671875, 0.0177459716796875, 0.0164947509765625, 0.0736083984375, -0.0081634521484375, 0.0709228515625, -0.032928466796875, -0.0222625732421875, 0.01303863525390625, 0.0214996337890625, 0.005340576171875, -0.0209503173828125, 0.00788116455078125, -0.034271240234375, 0.01445770263671875, 0.0097503662109375, 0.00962066650390625, 0.036285400390625, 0.047271728515625, 0.04302978515625, -0.00862884521484375, -0.01200103759765625, 0.05450439453125, -0.0228424072265625, -0.06549072265625, -0.00736236572265625, -0.006847381591796875, 0.053924560546875, 0.0175628662109375, 0.0128936767578125, 0.0138397216796875, 0.038360595703125, -0.0048370361328125, -0.013336181640625, 0.00977325439453125, -0.040008544921875, 0.0210723876953125, 0.03167724609375, 0.043365478515625, 0.030792236328125, -0.1500244140625, -0.03509521484375, -0.00330352783203125, -0.05511474609375, 0.058807373046875, 0.059539794921875, -0.05377197265625, 0.029815673828125, 0.01270294189453125, -0.00904083251953125, 0.0182037353515625, 0.01071929931640625, -0.01605224609375, 0.0489501953125, 0.042755126953125, 0.01047515869140625, -0.03765869140625, -0.02362060546875, -0.004650115966796875, 0.036224365234375, 0.017425537109375, 0.00707244873046875, 0.020477294921875, 0.03204345703125, -0.047882080078125, 0.0058135986328125, -0.0201873779296875, -0.035919189453125, 0.01007080078125, 0.03338623046875, 0.0112457275390625, -0.00617218017578125, -0.06951904296875, -0.03057861328125, 0.0626220703125, -0.034881591796875, 0.0169677734375, -0.0244140625, 0.0250244140625, -0.05621337890625, 0.0350341796875, -0.02691650390625, 0.031494140625, -0.028228759765625, -0.066162109375, 0.057769775390625, 0.01354217529296875, 0.005504608154296875, 0.0701904296875, -0.003170013427734375, 0.002574920654296875, 0.019287109375, -0.050445556640625, 0.0157012939453125, 0.025482177734375, -0.01377105712890625, 0.028167724609375, 0.024566650390625, -0.01204681396484375, -0.004581451416015625, 0.034820556640625, -0.03759765625, 0.024261474609375, -0.06072998046875, 0.0229644775390625, 0.036041259765625, 0.06378173828125, -0.00824737548828125, 0.04443359375, -0.00963592529296875, 0.0235595703125, 0.021759033203125, -0.0071868896484375, -0.03546142578125, -0.05255126953125, 0.01021575927734375, 0.0164642333984375, -0.01233673095703125, -0.00125885009765625, -0.03204345703125, 0.024658203125, 0.00933837890625, 0.0178070068359375, -0.06121826171875, 0.060211181640625, -0.0180206298828125, 0.0428466796875, -0.0338134765625, -0.0102691650390625, 0.00969696044921875, 0.004627227783203125, -0.039794921875, 0.01317596435546875, -0.0193634033203125, -0.003826141357421875, -0.004131317138671875, 0.001682281494140625, 0.017791748046875, -0.0292205810546875, -0.0084075927734375, -0.004413604736328125, 0.01508331298828125, 0.040252685546875, 0.0533447265625, -0.0127410888671875, 0.0015048980712890625, -0.01093292236328125, -0.005840301513671875, -0.055877685546875, 0.01019287109375, -0.07281494140625, -0.0251617431640625, -0.004695892333984375, -0.00617218017578125, 0.00989532470703125, -0.034820556640625, -0.0821533203125, 0.0224151611328125, -0.0083770751953125, -0.040008544921875, -0.06414794921875, -0.0030994415283203125, -0.005329132080078125, 0.007598876953125, -0.016845703125, -0.00946807861328125, -0.018646240234375, 0.0433349609375, -0.01708984375, 0.080078125, -0.00849151611328125, -0.00211334228515625, -0.02423095703125, -0.0009136199951171875, -0.01641845703125, 0.0013446807861328125, 0.0311126708984375, -0.0272216796875, 0.041229248046875, 0.04339599609375, -0.05975341796875, -0.006328582763671875, -0.0243682861328125, 0.014556884765625, -0.0037784576416015625, -0.060211181640625, -0.025726318359375, -0.0169219970703125, 0.07135009765625, 0.0251922607421875, 0.020172119140625, -0.037933349609375, -0.01264190673828125, -0.04241943359375, 0.0185089111328125, -0.015167236328125, -0.01434326171875, -0.046173095703125, -0.01019287109375, 0.005878448486328125, -0.01715087890625, -0.022796630859375, 0.01244354248046875, -0.034027099609375, -0.00455474853515625, 0.0021228790283203125, -0.00243377685546875, -0.044464111328125, -0.00048542022705078125, 0.03515625, -0.036376953125, -0.0220947265625, 0.015167236328125, 0.00823211669921875, 0.0006880760192871094, 0.017608642578125, -0.02105712890625, 0.007701873779296875, -0.034881591796875, 0.0296783447265625, -0.026824951171875, 0.0265960693359375, -0.0570068359375, 0.00984954833984375, -0.0169677734375, 0.019927978515625, 0.026885986328125, 0.0267486572265625, -0.036376953125, 0.0222320556640625, 0.0186309814453125, 0.004177093505859375, -0.01195526123046875, 0.01061248779296875, 0.01238250732421875, 0.01256561279296875, -0.0269927978515625, -0.0006017684936523438, 0.0023784637451171875, -0.0284271240234375, 0.0027408599853515625, 0.0146484375, -0.0362548828125, -0.044036865234375, 0.031829833984375, 0.04998779296875, -0.0014934539794921875, 0.021148681640625 ]
6c546edec88389b4283b3122364fb13c0acaa8de
Wordpress Stackexchange Q: Extremely slow Wordpress website with 6000 posts I have a website with 6000 posts and it is extremely slow. Sometimes I get this error in my browser: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Error: 503 Service Temporarily Unavailable I have turned almost all plugins off and it is slow in frontend and in backend too, so I guess it is not because of the template. Could it be because of WP_navigation plugin? I have est. 600 pages with ten posts or WP navigation plugin, could this be the problem? A: Wordpress can be a resource hog if you don't use caching. W3 Total Cache could help you a lot with MySQL, Object and Page Caching. You should also install PHP-APC and use it with the plugin. It can do wonders.
Q: Extremely slow Wordpress website with 6000 posts I have a website with 6000 posts and it is extremely slow. Sometimes I get this error in my browser: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Error: 503 Service Temporarily Unavailable I have turned almost all plugins off and it is slow in frontend and in backend too, so I guess it is not because of the template. Could it be because of WP_navigation plugin? I have est. 600 pages with ten posts or WP navigation plugin, could this be the problem? A: Wordpress can be a resource hog if you don't use caching. W3 Total Cache could help you a lot with MySQL, Object and Page Caching. You should also install PHP-APC and use it with the plugin. It can do wonders. A: I got like 8,000 posts so it's def. not the problems. However, you may want to optimize your WordPress setup a bit. * *APC (opcode caching) *w3tc (caching plugin) For $5 plan hosting on DigitalOcean (ref link), I was able to host a WordPress site with 8,000 posts and ~ 180,000 page views per day; with the above simple setup. Also, you may want to take a look at plugin/widget like Popular posts. it's a resource hog. A: Caching plugin definitely helps as Alex already mentioned. But you will still hit a resource limit when you get a lot of visitors. There is a point you can't do much more than upgrading your hosting plan for more resources. Consider a hosting provider such as WPEngine which automatically optimize your WordPress with caching and allows you to easily upgrade the plan. I work with a client with millions of website hits and they pay hundreds of dollars on hosting plan to accomodate it.
wordpress
{ "language": "en", "length": 311, "provenance": "stackexchange_00019.jsonl.gz:432760", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/100479" }
[ 0.062744140625, 0.01245880126953125, -0.0021724700927734375, 0.0093536376953125, 0.00962066650390625, -0.04229736328125, 0.07830810546875, -0.041961669921875, 0.03570556640625, -0.01276397705078125, -0.007526397705078125, -0.0209503173828125, -0.028533935546875, -0.05615234375, -0.005573272705078125, -0.0214385986328125, 0.038421630859375, 0.04461669921875, 0.0635986328125, -0.003910064697265625, 0.00023114681243896484, 0.025848388671875, 0.0289154052734375, 0.09783935546875, 0.0166015625, -0.03057861328125, 0.031951904296875, -0.01934814453125, -0.0015516281127929688, -0.03509521484375, 0.0182342529296875, 0.034027099609375, 0.0204925537109375, 0.01056671142578125, -0.0243377685546875, -0.0026874542236328125, 0.0164947509765625, -0.00662994384765625, -0.00140380859375, 0.027679443359375, -0.0039825439453125, -0.0009455680847167969, 0.06396484375, -0.00878143310546875, 0.00962066650390625, -0.01470947265625, -0.0056915283203125, -0.07354736328125, 0.0189361572265625, -0.0638427734375, -0.001922607421875, 0.0494384765625, 0.0253143310546875, 0.002277374267578125, -0.007564544677734375, 0.031585693359375, 0.04290771484375, 0.0030155181884765625, 0.04254150390625, -0.051483154296875, -0.06390380859375, -0.012847900390625, 0.018463134765625, -0.01192474365234375, -0.0284576416015625, -0.0230712890625, 0.018798828125, 0.03497314453125, -0.023345947265625, -0.0452880859375, 0.0204925537109375, 0.00042319297790527344, -0.01373291015625, 0.005504608154296875, 0.009124755859375, -0.032440185546875, 0.01355743408203125, -0.0285186767578125, 0.007015228271484375, 0.044219970703125, 0.00823211669921875, -0.01250457763671875, -0.0352783203125, 0.01073455810546875, -0.03155517578125, -0.0037326812744140625, -0.0017032623291015625, -0.00862884521484375, -0.03369140625, -0.029296875, -0.02386474609375, -0.05517578125, -0.0310821533203125, 0.00115203857421875, -0.01236724853515625, -0.0269775390625, 0.01702880859375, 0.0007505416870117188, 0.0029277801513671875, -0.0165252685546875, 0.0096588134765625, -0.049468994140625, 0.03607177734375, -0.0164031982421875, 0.007843017578125, 0.00939178466796875, -0.027679443359375, 0.0286102294921875, 0.06951904296875, 0.047454833984375, 0.0053253173828125, 0.014923095703125, -0.00019991397857666016, 0.011627197265625, -0.043792724609375, -0.033355712890625, -0.048004150390625, 0.01413726806640625, -0.0015134811401367188, 0.0054168701171875, -0.0259552001953125, 0.00444793701171875, -0.054779052734375, -0.00815582275390625, 0.004909515380859375, -0.045654296875, -0.019927978515625, 0.072998046875, 0.05938720703125, -0.01006317138671875, -0.0139312744140625, 0.011444091796875, -0.0283966064453125, 0.00138092041015625, -0.004150390625, 0.005146026611328125, 0.0223846435546875, -0.06427001953125, -0.01422119140625, 0.0248565673828125, 0.0026149749755859375, -0.027191162109375, 0.004177093505859375, -0.01488494873046875, 0.034515380859375, -0.0123138427734375, 0.0211639404296875, 0.038360595703125, -0.006778717041015625, -0.01528167724609375, 0.01067352294921875, 0.0338134765625, 0.0462646484375, -0.01263427734375, -0.01678466796875, -0.066650390625, -0.0032405853271484375, -0.0267181396484375, 0.0218353271484375, -0.03924560546875, 0.0501708984375, 0.0167083740234375, 0.0396728515625, -0.02923583984375, -0.06256103515625, -0.019439697265625, -0.0860595703125, -0.0251922607421875, 0.03546142578125, -0.021697998046875, 0.001796722412109375, -0.030364990234375, 0.033782958984375, 0.0164642333984375, -0.0035800933837890625, 0.038726806640625, 0.0035114288330078125, 0.01251983642578125, 0.020751953125, -0.00264739990234375, -0.0266876220703125, -0.0379638671875, 0.026824951171875, -0.006267547607421875, -0.044891357421875, 0.0044097900390625, 0.01849365234375, 0.04962158203125, 0.017181396484375, 0.03173828125, 0.048583984375, -0.0161590576171875, 0.02227783203125, 0.0210113525390625, 0.00434112548828125, -0.0445556640625, -0.04254150390625, -0.017608642578125, -0.010955810546875, -0.0248870849609375, 0.07427978515625, 0.0110321044921875, -0.042510986328125, -0.0193328857421875, -0.10076904296875, -0.0303802490234375, -0.0121612548828125, 0.01340484619140625, 0.0012798309326171875, 0.0293426513671875, 0.01934814453125, 0.02685546875, -0.03863525390625, -0.0129547119140625, -0.03125, -0.0218963623046875, -0.0247650146484375, -0.012420654296875, 0.004772186279296875, 0.01090240478515625, 0.0150604248046875, 0.005031585693359375, -0.01366424560546875, 0.01561737060546875, -0.00522613525390625, -0.00310516357421875, -0.001041412353515625, 0.01071929931640625, -0.0016527175903320312, 0.033660888671875, -0.0235137939453125, -0.0241241455078125, 0.0122222900390625, 0.04437255859375, -0.005702972412109375, -0.01007843017578125, -0.011383056640625, -0.03314208984375, 0.008056640625, 0.041015625, 0.0259552001953125, 0.021331787109375, 0.0102996826171875, 0.047149658203125, 0.0133819580078125, -0.07568359375, -0.004695892333984375, 0.0194244384765625, -0.002582550048828125, 0.03216552734375, -0.00719451904296875, 0.0196075439453125, 0.0198211669921875, -0.01244354248046875, 0.008697509765625, 0.0482177734375, -0.006229400634765625, 0.00860595703125, -0.0082550048828125, -0.004734039306640625, 0.00034308433532714844, 0.0137176513671875, 0.0015411376953125, 0.006130218505859375, 0.0034275054931640625, 0.006786346435546875, 0.035736083984375, 0.039337158203125, -0.002719879150390625, 0.01050567626953125, -0.0054168701171875, -0.032684326171875, 0.015869140625, -0.032470703125, -0.0196685791015625, 0.003269195556640625, -0.0287017822265625, 0.0189208984375, 0.058135986328125, -0.0321044921875, -0.041961669921875, -0.0102386474609375, -0.044921875, -0.00574493408203125, -0.046417236328125, -0.02691650390625, 0.0252685546875, 0.0242767333984375, -0.01751708984375, -0.0254364013671875, 0.003940582275390625, 0.00922393798828125, -0.03839111328125, 0.032623291015625, 0.0260162353515625, -0.0243072509765625, 0.077392578125, -0.062744140625, 0.03765869140625, -0.0131683349609375, 0.10174560546875, 0.05743408203125, -0.044342041015625, 0.04864501953125, -0.0005521774291992188, -0.031707763671875, 0.0191650390625, -0.007091522216796875, -0.028472900390625, -0.0144195556640625, -0.06463623046875, 0.007106781005859375, 0.038360595703125, 0.06390380859375, 0.0133514404296875, -0.03826904296875, 0.02001953125, 0.0535888671875, -0.0789794921875, -0.09814453125, -0.069091796875, -0.055999755859375, 0.016448974609375, 0.0130462646484375, -0.0112457275390625, -0.00414276123046875, 0.035491943359375, 0.0341796875, -0.0117034912109375, -0.017425537109375, -0.0789794921875, -0.045196533203125, -0.0626220703125, -0.0160980224609375, -0.01372528076171875, 0.0160064697265625, 0.0085601806640625, 0.064697265625, -0.00281524658203125, -0.0714111328125, -0.000021576881408691406, -0.0271453857421875, -0.0213623046875, 0.03424072265625, -0.0195770263671875, 0.021087646484375, -0.0023822784423828125, 0.0217742919921875, -0.0037250518798828125, -0.0034236907958984375, -0.0107879638671875, -0.041778564453125, -0.03204345703125, 0.0091705322265625, -0.0161285400390625, -0.0236053466796875, 0.031219482421875, 0.006404876708984375, -0.008697509765625, -0.032928466796875, -0.035980224609375, -0.015655517578125, -0.06365966796875, 0.0101776123046875, 0.0679931640625, -0.026214599609375, -0.00983428955078125, -0.0379638671875, -0.018890380859375, -0.0025272369384765625, -0.01329803466796875, -0.03369140625, 0.06329345703125, 0.0083770751953125, 0.0019321441650390625, 0.0029315948486328125, 0.017181396484375, -0.0294036865234375, 0.0594482421875, 0.0188751220703125, -0.0044097900390625, -0.007495880126953125, 0.0178070068359375, -0.02392578125, 0.004749298095703125, 0.0160064697265625, -0.055267333984375, 0.01070404052734375, -0.0135650634765625, 0.0051727294921875, -0.0157623291015625, 0.057098388671875, -0.04730224609375, -0.0086517333984375, 0.00167083740234375, 0.034454345703125, -0.01360321044921875, -0.037078857421875, -0.0182952880859375, -0.0271148681640625, 0.01983642578125, -0.0048828125, -0.00838470458984375, -0.0244903564453125, 0.01018524169921875, -0.03515625, 0.026397705078125, -0.016998291015625, 0.0040283203125, -0.037261962890625, 0.0277557373046875, -0.0340576171875, 0.0107879638671875, -0.04107666015625, 0.005657196044921875, -0.0625, -0.06610107421875, -0.01212310791015625, 0.01340484619140625, 0.0222320556640625, -0.006145477294921875, -0.037078857421875, -0.0163421630859375, 0.01593017578125, 0.01091766357421875, 0.04144287109375, 0.006725311279296875, -0.010894775390625, 0.0263824462890625, 0.01357269287109375, 0.022857666015625, -0.01020050048828125, -0.0243682861328125, -0.0173492431640625, -0.00339508056640625, -0.0018835067749023438, -0.00992584228515625, -0.037445068359375, -0.01253509521484375, -0.0079345703125, -0.0036220550537109375, -0.037841796875, -0.039581298828125, 0.0225067138671875, -0.00931549072265625, 0.0032825469970703125, -0.046905517578125, -0.0361328125, 0.043212890625, -0.006450653076171875, 0.019622802734375, 0.00797271728515625, 0.08642578125, -0.0014829635620117188, -0.017852783203125, -0.03033447265625, -0.03448486328125, 0.0009775161743164062, 0.0262908935546875, 0.028778076171875, -0.01036834716796875, 0.0114898681640625, 0.01216888427734375, -0.016265869140625, -0.0037689208984375, 0.016448974609375, -0.027984619140625, 0.028045654296875, -0.0130615234375, 0.004383087158203125, 0.035247802734375, 0.005523681640625, 0.0159759521484375, -0.0274200439453125, 0.01812744140625, -0.032470703125, 0.05047607421875, -0.0000445246696472168, 0.0005507469177246094, -0.082763671875, -0.022216796875, 0.006244659423828125, 0.00815582275390625, 0.022735595703125, 0.040679931640625, -0.006237030029296875, 0.04949951171875, 0.054595947265625, -0.025421142578125, 0.0132293701171875, -0.007434844970703125, -0.02093505859375, 0.0023441314697265625, 0.009185791015625, -0.047454833984375, 0.00701141357421875, -0.01154327392578125, 0.054534912109375, -0.00800323486328125, -0.06451416015625, -0.032318115234375, -0.007904052734375, 0.04876708984375, 0.00818634033203125, -0.042633056640625, 0.043182373046875, 0.01922607421875, -0.0017299652099609375, 0.0156097412109375, -0.050018310546875, -0.01470184326171875, -0.04168701171875, -0.02294921875, 0.0026721954345703125, -0.0236053466796875, 0.032012939453125, -0.01004791259765625, -0.00521087646484375, 0.00029015541076660156, 0.0015668869018554688, 0.042236328125, 0.0032825469970703125, 0.047607421875, 0.0008692741394042969, -0.0015411376953125, 0.0017862319946289062, 0.030487060546875, -0.005023956298828125, 0.00012010335922241211, 0.009368896484375, 0.0277099609375, -0.00316619873046875, 0.0423583984375, 0.0167694091796875, -0.0083160400390625, 0.006107330322265625, -0.005443572998046875, 0.05426025390625, -0.006359100341796875, -0.061248779296875, -0.016815185546875, 0.000827789306640625, 0.033447265625, -0.030487060546875, 0.024688720703125, 0.0024814605712890625, 0.011566162109375, 0.031768798828125, -0.00322723388671875, 0.006256103515625, -0.02337646484375, -0.02227783203125, 0.01436614990234375, -0.0184478759765625, -0.0133819580078125, -0.0308990478515625, 0.008544921875, -0.024017333984375, -0.00101470947265625, 0.060882568359375, -0.01180267333984375, 0.02618408203125, -0.036712646484375, 0.01468658447265625, -0.0243988037109375, 0.0328369140625, -0.03033447265625, -0.034088134765625, -0.055389404296875, 0.0157928466796875, -0.01209259033203125, -0.029083251953125, -0.0092926025390625, -0.01113128662109375, -0.0872802734375, -0.01605224609375, -0.00963592529296875, -0.0007333755493164062, -0.01837158203125, -0.0355224609375, -0.029571533203125, 0.006214141845703125, 0.03424072265625, -0.03619384765625, -0.048736572265625, 0.040283203125, 0.028961181640625, -0.005542755126953125, -0.006069183349609375, 0.0245513916015625, 0.01195526123046875, -0.0205535888671875, 0.01971435546875, -0.044189453125, -0.02752685546875, -0.021697998046875, -0.015838623046875, 0.018951416015625, 0.038543701171875, -0.006561279296875, 0.01459503173828125, 0.00009185075759887695, 0.0153350830078125, -0.0271453857421875, 0.0007753372192382812, -0.00628662109375, 0.0273590087890625, -0.0195465087890625, 0.014129638671875, 0.0030460357666015625, -0.00725555419921875, -0.0287017822265625, 0.017730712890625, 0.01910400390625, 0.007587432861328125, -0.007904052734375, 0.0174560546875, -0.0095672607421875, 0.00998687744140625, -0.0151214599609375, 0.019317626953125, 0.030181884765625, 0.0207061767578125, 0.013916015625, 0.020172119140625, -0.0304412841796875, -0.0186614990234375, 0.041778564453125, -0.007259368896484375, -0.04473876953125, -0.01215362548828125, -0.036651611328125, -0.0089111328125, 0.0112457275390625, 0.0279693603515625, -0.03887939453125, 0.0050201416015625, -0.0160369873046875, -0.02978515625, -0.01053619384765625, -0.032257080078125, -0.00844573974609375, -0.07745361328125, 0.07366943359375, -0.004070281982421875, -0.00595855712890625, 0.00616455078125, -0.047821044921875, -0.01113128662109375, 0.016998291015625, 0.0210418701171875, -0.002765655517578125, -0.05712890625, -0.0164794921875, 0.0254364013671875, -0.0111846923828125, -0.03875732421875, 0.020050048828125, -0.044036865234375, 0.01910400390625, -0.0518798828125, -0.006801605224609375, -0.036590576171875, 0.04595947265625, 0.045623779296875, -0.00412750244140625, -0.0295562744140625, 0.029693603515625, -0.0152740478515625, 0.0170745849609375, 0.01287078857421875, -0.047637939453125, 0.0164947509765625, -0.0020046234130859375, -0.0018672943115234375, 0.034027099609375, -0.01523590087890625, -0.0028781890869140625, -0.001422882080078125, 0.007602691650390625, -0.01031494140625, -0.0082855224609375, 0.0675048828125, -0.0009512901306152344, -0.01763916015625, 0.0523681640625, -0.0137939453125, -0.06103515625, -0.0095977783203125, 0.030181884765625, 0.0025424957275390625, 0.0266265869140625, -0.0023193359375, -0.00567626953125, -0.034759521484375, -0.022796630859375, -0.059539794921875, 0.06817626953125, -0.0147247314453125, 0.00519561767578125, 0.01033782958984375, 0.034210205078125, -0.04046630859375, -0.0048370361328125, -0.040496826171875, 0.055694580078125, -0.008880615234375, 0.0386962890625, -0.0203857421875, 0.021240234375, 0.010650634765625, -0.02227783203125, 0.061553955078125, 0.016021728515625, -0.08404541015625, -0.0219268798828125, 0.0242156982421875, 0.036651611328125, 0.0170135498046875, 0.07025146484375, -0.062469482421875, 0.01515960693359375, 0.004611968994140625, -0.060882568359375, -0.00021970272064208984, 0.053741455078125, -0.064453125, -0.008087158203125, -0.01861572265625, -0.045257568359375, -0.005428314208984375, 0.0206146240234375, -0.053070068359375, 0.0033359527587890625, 0.039947509765625, -0.00708770751953125, 0.0123748779296875, 0.04473876953125, 0.050628662109375, -0.0439453125, -0.0095672607421875, -0.038665771484375, 0.057830810546875, 0.009429931640625, -0.0265350341796875, 0.0209503173828125, 0.0216827392578125, 0.016265869140625, -0.01904296875, -0.01119232177734375, 0.035125732421875, -0.0251617431640625, 0.035064697265625, -0.00803375244140625, 0.01336669921875, -0.06610107421875, -0.0259552001953125, 0.05902099609375, 0.06451416015625, -0.03399658203125, -0.06622314453125, 0.01036834716796875, -0.027069091796875, -0.00140380859375, 0.0160369873046875, 0.0014753341674804688, -0.00592803955078125, 0.018218994140625, 0.016937255859375, -0.017578125, 0.0134124755859375, -0.0085906982421875, 0.00305938720703125, 0.06298828125, -0.019561767578125, 0.0106201171875, -0.005985260009765625, -0.01165771484375, 0.004627227783203125, 0.036895751953125, 0.007282257080078125, 0.0198822021484375, -0.01169586181640625, 0.0062255859375, -0.0023651123046875, 0.04718017578125, -0.01470947265625, -0.001331329345703125, -0.03643798828125, -0.09344482421875, 0.0152130126953125, 0.055328369140625, -0.060821533203125, 0.077880859375, 0.061279296875, 0.06011962890625, -0.005809783935546875, -0.04425048828125, 0.00943756103515625, -0.03546142578125, -0.04168701171875, -0.002506256103515625, -0.0330810546875, 0.02069091796875, -0.0226593017578125, 0.031982421875, 0.0258026123046875, 0.0017976760864257812, -0.0021915435791015625, 0.0192108154296875, 0.0253143310546875, 0.0081329345703125, 0.05859375, 0.034271240234375, 0.0181427001953125, 0.04315185546875, -0.1041259765625, -0.00823211669921875, -0.026611328125, 0.034881591796875, -0.0132293701171875, 0.00131988525390625, -0.036376953125, 0.07818603515625, 0.0167999267578125, -0.0167999267578125, 0.0037860870361328125, -0.0018014907836914062, 0.042022705078125, 0.0195159912109375, -0.00797271728515625, 0.0166473388671875, -0.04327392578125, -0.03460693359375, -0.0298004150390625, 0.0394287109375, 0.038299560546875, 0.07550048828125, -0.0128021240234375, 0.047515869140625, 0.0316162109375, -0.034088134765625, 0.061737060546875, 0.03009033203125, 0.0052337646484375, 0.019622802734375, -0.0073089599609375, -0.036590576171875, -0.048248291015625, 0.0205230712890625, 0.022064208984375, -0.00873565673828125, 0.021148681640625, -0.013580322265625, 0.021453857421875, -0.01520538330078125, -0.032745361328125, -0.0312347412109375, -0.0267486572265625, -0.01270294189453125, 0.007488250732421875, 0.0026187896728515625, -0.01055908203125, -0.0272979736328125, 0.00333404541015625, 0.01081085205078125, -0.046417236328125, 0.035125732421875, -0.038848876953125, 0.054412841796875, 0.043609619140625, 0.006694793701171875, -0.007587432861328125, -0.0294952392578125, -0.02001953125, -0.0175018310546875, 0.00994873046875, -0.006183624267578125, -0.009246826171875, 0.0099334716796875, 0.0262908935546875, -0.01171112060546875, 0.0030059814453125, -0.01064300537109375, -0.0247955322265625, 0.0119171142578125, 0.014404296875, -0.0249786376953125, 0.0190887451171875, -0.007541656494140625, 0.0034503936767578125, -0.0251007080078125, -0.01342010498046875, 0.01007843017578125, -0.037109375, 0.01473236083984375, -0.026641845703125, 0.029205322265625, 0.004901885986328125, 0.00936126708984375, 0.0132598876953125, -0.045379638671875, -0.036773681640625, 0.01358795166015625, -0.0182342529296875, 0.00896453857421875, 0.03546142578125, -0.0166473388671875, -0.048004150390625, -0.00893402099609375, 0.03118896484375, -0.020050048828125, 0.017181396484375, 0.051727294921875, -0.009033203125, -0.0389404296875, -0.02117919921875, -0.0074920654296875, 0.025909423828125, -0.05450439453125, 0.018585205078125, 0.05419921875, -0.01393890380859375, -0.062286376953125, -0.06707763671875, 0.023223876953125, -0.04791259765625, -0.019989013671875, -0.032928466796875, 0.00283050537109375, 0.0071563720703125, -0.02880859375, 0.01580810546875, -0.00597381591796875, 0.01020050048828125, -0.006923675537109375, -0.07373046875, -0.039825439453125, -0.006320953369140625, 0.033905029296875, -0.0186004638671875, -0.0234832763671875, -0.07073974609375, 0.042724609375, 0.0298309326171875, 0.03436279296875, 0.006259918212890625, 0.03387451171875, -0.0692138671875, 0.033660888671875, 0.006259918212890625, 0.041351318359375, -0.0222625732421875, 0.039947509765625, 0.009979248046875, 0.06756591796875, -0.00543975830078125, 0.036773681640625, 0.00412750244140625, -0.032928466796875, -0.01126861572265625, -0.03643798828125, -0.0310821533203125, -0.01181793212890625, 0.043731689453125, 0.057342529296875, 0.01313018798828125, -0.041229248046875, 0.0374755859375, -0.0154876708984375, -0.060516357421875, -0.0127105712890625, 0.03204345703125, -0.03570556640625, 0.01148223876953125, 0.0006604194641113281, 0.0198974609375, 0.054046630859375, -0.0257568359375, 0.03253173828125, -0.0035190582275390625, 0.04290771484375, 0.0012750625610351562, -0.0191192626953125, 0.0306243896484375, 0.005924224853515625, 0.0063323974609375, 0.0156097412109375, 0.00007861852645874023, -0.003345489501953125, -0.0019388198852539062, 0.0178985595703125, -0.057830810546875, -0.0008211135864257812, -0.0082550048828125, 0.033050537109375, -0.0254364013671875, 0.040771484375, -0.018585205078125, 0.0338134765625, 0.0207672119140625, -0.0254058837890625, -0.008575439453125, -0.0194091796875, -0.00838470458984375, -0.0233001708984375, -0.0455322265625, 0.076904296875, -0.01515960693359375, 0.053558349609375, 0.0002510547637939453, 0.021942138671875, 0.01898193359375, 0.00995635986328125, 0.0709228515625, -0.03192138671875, 0.01508331298828125, -0.0006008148193359375, -0.026275634765625, -0.0017986297607421875, -0.01224517822265625, -0.053741455078125, -0.0103607177734375, -0.00605010986328125 ]
16b7cecfc91856f91aa0ac53eafb03ff5d2abb45
Wordpress Stackexchange Q: Which action for triggering cron "wp"or "init"? Which one do you recommend using within a plugin and why? add_action( 'wp', 'trigger_me' ); function trigger_me() { if ( !wp_next_scheduled( 'my_plugin_cron' ) ) { wp_schedule_event(time(), 'hourly', 'my_plugin_cron'); } } OR add_action( 'init', 'trigger_me' ); function trigger_me() { if ( !wp_next_scheduled( 'my_plugin_cron' ) ) { wp_schedule_event(time(), 'hourly', 'my_plugin_cron'); } } What are the advantages/disadvantages of "wp" over "init" when registering/triggering cron function within a plugin? A: Neither. register_activation_hook( __FILE__, 'trigger_me' ); function trigger_me() { if ( !wp_next_scheduled( 'my_plugin_cron' ) ) { wp_schedule_event(time(), 'hourly', 'my_plugin_cron'); } } Why parse code on every request when you don't need to?
Q: Which action for triggering cron "wp"or "init"? Which one do you recommend using within a plugin and why? add_action( 'wp', 'trigger_me' ); function trigger_me() { if ( !wp_next_scheduled( 'my_plugin_cron' ) ) { wp_schedule_event(time(), 'hourly', 'my_plugin_cron'); } } OR add_action( 'init', 'trigger_me' ); function trigger_me() { if ( !wp_next_scheduled( 'my_plugin_cron' ) ) { wp_schedule_event(time(), 'hourly', 'my_plugin_cron'); } } What are the advantages/disadvantages of "wp" over "init" when registering/triggering cron function within a plugin? A: Neither. register_activation_hook( __FILE__, 'trigger_me' ); function trigger_me() { if ( !wp_next_scheduled( 'my_plugin_cron' ) ) { wp_schedule_event(time(), 'hourly', 'my_plugin_cron'); } } Why parse code on every request when you don't need to?
wordpress
{ "language": "en", "length": 105, "provenance": "stackexchange_00019.jsonl.gz:432777", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/100530" }
[ 0.06890869140625, 0.0008711814880371094, -0.01255035400390625, -0.03546142578125, 0.0281829833984375, -0.03326416015625, 0.024932861328125, -0.0254364013671875, -0.0122222900390625, 0.0032806396484375, -0.036346435546875, 0.05328369140625, -0.007152557373046875, -0.0102691650390625, 0.0264892578125, -0.0185089111328125, 0.035675048828125, -0.014617919921875, -0.0027866363525390625, -0.02435302734375, 0.016815185546875, -0.000392913818359375, -0.01495361328125, 0.10272216796875, 0.040863037109375, -0.03753662109375, 0.044677734375, -0.00362396240234375, 0.02392578125, 0.0009007453918457031, 0.030059814453125, -0.0318603515625, 0.01181793212890625, 0.0054473876953125, 0.0127716064453125, 0.01241302490234375, -0.04327392578125, 0.0228118896484375, 0.0193939208984375, 0.0165252685546875, 0.016632080078125, -0.005908966064453125, 0.0177764892578125, 0.01412200927734375, -0.00244903564453125, -0.035858154296875, 0.017547607421875, -0.0478515625, -0.0243988037109375, -0.0325927734375, 0.0135650634765625, -0.005664825439453125, 0.038818359375, -0.0181427001953125, 0.003955841064453125, -0.002590179443359375, -0.05438232421875, 0.05645751953125, 0.0310211181640625, 0.01305389404296875, -0.0178070068359375, -0.0204620361328125, 0.0200958251953125, -0.01947021484375, 0.02703857421875, -0.0086822509765625, -0.039520263671875, 0.019500732421875, -0.04705810546875, 0.032073974609375, 0.054351806640625, -0.056304931640625, -0.025543212890625, -0.0014619827270507812, -0.060760498046875, -0.0182037353515625, 0.02850341796875, -0.045654296875, 0.01374053955078125, 0.0024127960205078125, 0.01554107666015625, 0.0213775634765625, -0.0003857612609863281, -0.025421142578125, 0.0157928466796875, -0.01081085205078125, -0.01177978515625, -0.0155792236328125, -0.0697021484375, -0.038970947265625, -0.036773681640625, 0.01763916015625, -0.0650634765625, -0.07049560546875, -0.01303863525390625, -0.035186767578125, 0.011077880859375, 0.005615234375, -0.0273590087890625, -0.0181427001953125, -0.0194549560546875, -0.01544189453125, -0.003932952880859375, 0.0017881393432617188, -0.01012420654296875, 0.098876953125, 0.044403076171875, 0.051727294921875, 0.0052947998046875, -0.013458251953125, 0.0131988525390625, -0.00695037841796875, 0.030303955078125, -0.00069427490234375, 0.002986907958984375, -0.05078125, -0.034942626953125, 0.050506591796875, 0.01837158203125, -0.00904083251953125, -0.005096435546875, -0.0056610107421875, 0.03363037109375, -0.03045654296875, 0.002391815185546875, -0.0249786376953125, -0.0211334228515625, -0.032958984375, -0.039886474609375, 0.0156402587890625, -0.0290679931640625, 0.031280517578125, 0.056427001953125, 0.0040283203125, -0.0225372314453125, -0.0124053955078125, 0.0439453125, 0.0286865234375, 0.0255584716796875, -0.0210723876953125, 0.0276031494140625, -0.0046234130859375, -0.016204833984375, 0.0225677490234375, 0.008209228515625, 0.01873779296875, 0.0004322528839111328, 0.005214691162109375, 0.009368896484375, 0.007556915283203125, -0.00670623779296875, -0.040130615234375, 0.011505126953125, 0.02197265625, 0.0016307830810546875, 0.0073394775390625, 0.00809478759765625, -0.01099395751953125, 0.007595062255859375, -0.016021728515625, -0.0199432373046875, -0.0299224853515625, -0.0147552490234375, -0.04754638671875, -0.053802490234375, 0.0240936279296875, -0.010101318359375, -0.0004749298095703125, 0.04144287109375, 0.010345458984375, 0.0275421142578125, 0.00406646728515625, 0.053955078125, 0.039520263671875, 0.00907135009765625, 0.00627899169921875, 0.0170135498046875, 0.01473236083984375, 0.028778076171875, 0.01517486572265625, -0.0238494873046875, -0.0143280029296875, 0.08184814453125, -0.034820556640625, -0.02020263671875, -0.0008149147033691406, 0.0154876708984375, 0.035491943359375, 0.013214111328125, 0.03216552734375, 0.0238800048828125, -0.01149749755859375, -0.016845703125, 0.0267486572265625, 0.003940582275390625, -0.0186767578125, 0.0034465789794921875, 0.00576019287109375, 0.0010042190551757812, -0.0307464599609375, 0.04205322265625, 0.043609619140625, -0.00251007080078125, 0.002208709716796875, -0.087890625, 0.06915283203125, -0.037994384765625, 0.0457763671875, 0.00766754150390625, -0.01218414306640625, -0.0090484619140625, -0.017242431640625, 0.035308837890625, -0.09356689453125, -0.037689208984375, 0.06072998046875, -0.03179931640625, 0.057403564453125, 0.004428863525390625, 0.055084228515625, 0.0063934326171875, -0.035919189453125, 0.015869140625, -0.025543212890625, 0.01378631591796875, -0.04986572265625, 0.001079559326171875, -0.03204345703125, -0.00998687744140625, -0.0025310516357421875, -0.032745361328125, 0.0271453857421875, 0.0016889572143554688, 0.016021728515625, -0.01485443115234375, -0.0008516311645507812, 0.0221710205078125, -0.034423828125, 0.005626678466796875, 0.042388916015625, 0.02239990234375, 0.0036907196044921875, -0.007053375244140625, 0.03143310546875, 0.04156494140625, -0.0179901123046875, 0.0097808837890625, 0.01129913330078125, -0.011016845703125, -0.016937255859375, -0.004093170166015625, -0.021148681640625, 0.041473388671875, -0.018951416015625, -0.0171661376953125, 0.039337158203125, -0.01529693603515625, -0.04730224609375, -0.005523681640625, 0.010711669921875, 0.025177001953125, -0.05108642578125, -0.05267333984375, -0.00115203857421875, -0.005859375, -0.00862884521484375, -0.005916595458984375, -0.005817413330078125, -0.01203155517578125, -0.01456451416015625, 0.03778076171875, -0.026702880859375, 0.003536224365234375, 0.056427001953125, 0.01088714599609375, -0.0262451171875, -0.035430908203125, -0.004970550537109375, -0.0019588470458984375, 0.020233154296875, -0.027587890625, -0.0014743804931640625, -0.06475830078125, -0.0189361572265625, -0.02227783203125, -0.02410888671875, 0.0021076202392578125, 0.01018524169921875, -0.004947662353515625, -0.0234527587890625, 0.02532958984375, 0.0035305023193359375, -0.041259765625, 0.02618408203125, -0.04534912109375, -0.032867431640625, 0.0005779266357421875, -0.009857177734375, 0.0229949951171875, -0.046539306640625, 0.0155487060546875, 0.0259552001953125, -0.0244140625, -0.013519287109375, 0.00571441650390625, -0.044586181640625, 0.031768798828125, -0.026275634765625, -0.0284576416015625, 0.025115966796875, -0.1097412109375, 0.00655364990234375, 0.0201263427734375, 0.06976318359375, -0.02655029296875, -0.061614990234375, -0.0019006729125976562, 0.019622802734375, -0.06610107421875, -0.0670166015625, -0.03948974609375, -0.08477783203125, 0.043670654296875, -0.03741455078125, -0.020294189453125, -0.0088653564453125, -0.0170745849609375, 0.037689208984375, -0.0413818359375, -0.0104217529296875, 0.0103302001953125, -0.0185546875, -0.014801025390625, 0.043182373046875, 0.00969696044921875, 0.016082763671875, 0.006412506103515625, 0.06768798828125, 0.004070281982421875, -0.07769775390625, -0.0010166168212890625, -0.01482391357421875, -0.033905029296875, 0.04046630859375, -0.0201416015625, -0.005107879638671875, 0.01239013671875, -0.00431060791015625, 0.007488250732421875, 0.0185546875, -0.00647735595703125, -0.0133209228515625, 0.01245880126953125, -0.004673004150390625, 0.014862060546875, 0.034332275390625, -0.00983428955078125, -0.00959014892578125, 0.024993896484375, -0.047515869140625, 0.01172637939453125, -0.0183258056640625, -0.0183258056640625, 0.0143890380859375, 0.006256103515625, -0.0021343231201171875, 0.01296234130859375, -0.01198577880859375, -0.02288818359375, 0.004169464111328125, 0.03363037109375, -0.01531982421875, 0.019927978515625, -0.02178955078125, -0.023590087890625, -0.031341552734375, 0.0264129638671875, -0.0239410400390625, -0.0174560546875, -0.0054779052734375, -0.025787353515625, -0.0504150390625, 0.005985260009765625, -0.0887451171875, -0.0057525634765625, 0.0303192138671875, 0.015899658203125, 0.002544403076171875, 0.0171051025390625, -0.0163726806640625, 0.0194549560546875, 0.039947509765625, -0.0248565673828125, -0.02716064453125, 0.003391265869140625, 0.022552490234375, -0.05810546875, -0.041473388671875, -0.0259552001953125, -0.015777587890625, -0.06402587890625, 0.020660400390625, -0.0162811279296875, -0.00678253173828125, -0.02960205078125, 0.01052093505859375, -0.052276611328125, -0.033477783203125, 0.00794219970703125, -0.0194549560546875, -0.01181793212890625, 0.009490966796875, -0.007297515869140625, -0.019195556640625, -0.0005550384521484375, -0.0204925537109375, -0.086669921875, -0.0050048828125, -0.05865478515625, 0.047393798828125, 0.055694580078125, -0.047454833984375, -0.024139404296875, 0.002414703369140625, -0.0011720657348632812, 0.04449462890625, 0.01351165771484375, 0.009490966796875, 0.0212860107421875, 0.020782470703125, 0.034149169921875, -0.005718231201171875, -0.005611419677734375, -0.0236968994140625, -0.0460205078125, 0.01073455810546875, -0.0164794921875, 0.01377105712890625, -0.0220947265625, -0.0143585205078125, -0.030517578125, -0.029052734375, -0.04150390625, 0.01318359375, -0.0200042724609375, 0.0008883476257324219, -0.04766845703125, -0.043365478515625, 0.02606201171875, -0.033172607421875, -0.00939178466796875, -0.004940032958984375, 0.0906982421875, 0.03253173828125, -0.00749969482421875, 0.00019538402557373047, 0.0276336669921875, 0.0245513916015625, 0.007030487060546875, 0.0328369140625, 0.01149749755859375, -0.00238037109375, 0.0241241455078125, 0.0083465576171875, -0.00968170166015625, -0.01438140869140625, 0.050872802734375, 0.00975799560546875, -0.00432586669921875, -0.01245880126953125, -0.0197906494140625, 0.029876708984375, 0.015655517578125, -0.00449371337890625, -0.0343017578125, 0.0582275390625, 0.0377197265625, -0.058837890625, 0.0318603515625, -0.0203857421875, -0.0184326171875, 0.008941650390625, 0.0433349609375, 0.014556884765625, 0.04217529296875, -0.020965576171875, -0.0015840530395507812, -0.0191497802734375, 0.004299163818359375, 0.0162811279296875, 0.0384521484375, -0.021331787109375, 0.0179290771484375, 0.033050537109375, -0.01534271240234375, -0.0284576416015625, 0.004917144775390625, 0.0574951171875, 0.0113372802734375, 0.00289154052734375, -0.07470703125, 0.007358551025390625, 0.0179443359375, 0.0015401840209960938, -0.00994110107421875, 0.06085205078125, 0.0233612060546875, -0.01506805419921875, -0.0170440673828125, -0.040130615234375, 0.0181884765625, -0.0572509765625, -0.016693115234375, -0.006649017333984375, -0.00806427001953125, 0.01629638671875, 0.035064697265625, 0.01983642578125, 0.0203857421875, -0.0207061767578125, 0.06805419921875, 0.042236328125, 0.0274505615234375, 0.0200347900390625, -0.049530029296875, 0.0053253173828125, -0.0182647705078125, -0.0289764404296875, -0.018035888671875, -0.0013599395751953125, 0.0204925537109375, 0.0316162109375, -0.01078033447265625, -0.01337432861328125, 0.0183563232421875, -0.008636474609375, -0.036102294921875, 0.0292510986328125, 0.0233612060546875, -0.01200103759765625, -0.03173828125, 0.0051422119140625, 0.051849365234375, 0.0253448486328125, 0.01229095458984375, 0.03472900390625, 0.004238128662109375, 0.028839111328125, -0.033721923828125, 0.0103759765625, -0.0294189453125, -0.00487518310546875, 0.0303192138671875, 0.0200653076171875, 0.004451751708984375, -0.041656494140625, -0.047332763671875, -0.007061004638671875, -0.0031795501708984375, 0.052276611328125, -0.02685546875, 0.01512908935546875, -0.037139892578125, 0.0198211669921875, -0.09735107421875, -0.0012941360473632812, 0.0743408203125, 0.057220458984375, -0.057281494140625, 0.01519012451171875, -0.023193359375, 0.01226043701171875, -0.08074951171875, -0.0684814453125, -0.038543701171875, 0.006679534912109375, -0.01064300537109375, 0.0119476318359375, -0.0298309326171875, -0.0226898193359375, -0.008270263671875, 0.019805908203125, 0.0074615478515625, 0.043121337890625, 0.0037899017333984375, 0.0423583984375, 0.0204925537109375, 0.047088623046875, 0.039581298828125, 0.03265380859375, -0.00959014892578125, -0.0270843505859375, -0.011627197265625, -0.0279083251953125, 0.00896453857421875, -0.004383087158203125, 0.0245819091796875, -0.0015048980712890625, -0.002223968505859375, -0.01059722900390625, 0.0146636962890625, -0.0168304443359375, 0.0006465911865234375, -0.01462554931640625, 0.022674560546875, -0.01122283935546875, -0.010986328125, 0.026641845703125, -0.0242156982421875, 0.01328277587890625, -0.01788330078125, 0.0248260498046875, -0.0007824897766113281, -0.034820556640625, -0.01114654541015625, 0.0242767333984375, -0.0784912109375, 0.0709228515625, 0.0833740234375, 0.0277862548828125, 0.0482177734375, 0.0010852813720703125, 0.0162811279296875, 0.00455474853515625, 0.0482177734375, -0.0249481201171875, -0.03656005859375, 0.05853271484375, 0.01495361328125, -0.026947021484375, 0.029296875, -0.0229949951171875, 0.01102447509765625, 0.055877685546875, 0.055206298828125, -0.09765625, 0.01377105712890625, 0.0142974853515625, 0.01494598388671875, 0.001598358154296875, 0.00446319580078125, -0.0186309814453125, -0.034576416015625, 0.06451416015625, -0.01442718505859375, -0.000018894672393798828, 0.03558349609375, 0.0008754730224609375, -0.020416259765625, 0.0010738372802734375, -0.003978729248046875, 0.0271148681640625, -0.01953125, 0.043121337890625, 0.0108184814453125, 0.0228424072265625, -0.043212890625, 0.031341552734375, 0.033721923828125, 0.001468658447265625, -0.02935791015625, 0.07525634765625, 0.025177001953125, 0.0027484893798828125, 0.0182342529296875, -0.03369140625, 0.060821533203125, 0.043365478515625, -0.0032367706298828125, -0.01493072509765625, 0.015045166015625, 0.00098419189453125, -0.05181884765625, -0.0277862548828125, 0.0343017578125, 0.07269287109375, -0.083984375, 0.035369873046875, -0.0270538330078125, -0.005504608154296875, 0.0181427001953125, -0.0165252685546875, 0.0211334228515625, -0.03839111328125, -0.00240325927734375, -0.0008287429809570312, -0.06689453125, 0.02911376953125, -0.01617431640625, 0.0250701904296875, -0.034271240234375, -0.0214996337890625, -0.004726409912109375, -0.039642333984375, 0.0012998580932617188, -0.016265869140625, -0.0093994140625, 0.1219482421875, 0.013214111328125, -0.041656494140625, 0.010467529296875, 0.062103271484375, -0.03350830078125, 0.04473876953125, -0.0196533203125, 0.01580810546875, -0.045166015625, 0.04840087890625, -0.005908966064453125, 0.012847900390625, 0.0213775634765625, -0.001071929931640625, 0.059722900390625, 0.0201568603515625, -0.019622802734375, 0.004871368408203125, 0.00740814208984375, -0.0031147003173828125, -0.039093017578125, 0.05120849609375, -0.00921630859375, 0.041107177734375, 0.02606201171875, -0.033843994140625, 0.036376953125, -0.034698486328125, -0.0197296142578125, 0.01380157470703125, -0.00994110107421875, -0.026123046875, -0.010406494140625, 0.01274871826171875, 0.01116943359375, -0.009674072265625, -0.0250091552734375, 0.0214996337890625, -0.006191253662109375, 0.04833984375, 0.034515380859375, 0.00283050537109375, -0.022216796875, -0.030120849609375, 0.04156494140625, -0.004512786865234375, -0.003803253173828125, 0.01800537109375, 0.00719451904296875, 0.01421356201171875, -0.04541015625, -0.014190673828125, 0.004161834716796875, -0.02642822265625, -0.0260772705078125, -0.0010652542114257812, 0.0052032470703125, -0.015869140625, 0.03790283203125, 0.03973388671875, -0.0223846435546875, -0.0144500732421875, -0.056365966796875, 0.01532745361328125, 0.0186614990234375, 0.0284423828125, 0.031280517578125, 0.037322998046875, -0.05950927734375, 0.0009646415710449219, 0.0243988037109375, -0.02130126953125, 0.00707244873046875, -0.0228118896484375, 0.013580322265625, 0.037689208984375, 0.0025787353515625, 0.0106048583984375, -0.037811279296875, 0.060150146484375, -0.0013780593872070312, 0.008209228515625, -0.0202178955078125, 0.041717529296875, 0.003326416015625, 0.00437164306640625, 0.0176849365234375, 0.029022216796875, 0.0210418701171875, -0.040740966796875, 0.00772857666015625, -0.03692626953125, 0.02032470703125, 0.00591278076171875, 0.04132080078125, 0.018035888671875, 0.040924072265625, 0.04376220703125, 0.0258941650390625, 0.006011962890625, 0.0192718505859375, -0.0024700164794921875, -0.0225372314453125, -0.01209259033203125, -0.002338409423828125, -0.00867462158203125, 0.004772186279296875, 0.002773284912109375, 0.067138671875, -0.0325927734375, -0.021392822265625, 0.0019664764404296875, 0.0036945343017578125, -0.0156097412109375, 0.03668212890625, 0.0013294219970703125, 0.0360107421875, -0.00011593103408813477, -0.009368896484375, 0.002918243408203125, -0.03607177734375, -0.05767822265625, 0.0433349609375, 0.045379638671875, -0.02392578125, 0.03570556640625, 0.05902099609375, 0.00799560546875, -0.0064849853515625, 0.01334381103515625, -0.00582122802734375, -0.055816650390625, 0.0380859375, 0.00333404541015625, -0.014862060546875, -0.0208282470703125, -0.01033782958984375, 0.036468505859375, 0.030181884765625, 0.0288848876953125, -0.013580322265625, 0.03912353515625, 0.038848876953125, -0.0173797607421875, 0.0207672119140625, 0.0465087890625, -0.037628173828125, -0.01277923583984375, 0.0091552734375, -0.01873779296875, -0.0728759765625, 0.0171661376953125, 0.0261688232421875, 0.0237579345703125, 0.004589080810546875, 0.00608062744140625, 0.02789306640625, 0.0177154541015625, 0.03692626953125, -0.0030994415283203125, 0.001739501953125, -0.019866943359375, -0.010101318359375, 0.047515869140625, 0.011627197265625, -0.05096435546875, -0.00173187255859375, -0.000016987323760986328, -0.0205535888671875, -0.0146026611328125, 0.013519287109375, -0.050567626953125, 0.0164794921875, 0.01568603515625, -0.00432586669921875, 0.016387939453125, -0.00884246826171875, 0.0031871795654296875, 0.0110321044921875, 0.01849365234375, -0.006988525390625, -0.0196990966796875, 0.01241302490234375, 0.02178955078125, 0.0341796875, -0.0194091796875, 0.016632080078125, 0.01271820068359375, -0.006053924560546875, 0.031646728515625, -0.06451416015625, -0.0249786376953125, -0.076171875, -0.0283355712890625, -0.001605987548828125, -0.053619384765625, -0.0506591796875, -0.0249481201171875, 0.0198516845703125, 0.051239013671875, 0.004726409912109375, -0.056060791015625, 0.039031982421875, -0.04443359375, 0.036651611328125, 0.002918243408203125, -0.006023406982421875, -0.0214385986328125, 0.032684326171875, 0.02606201171875, -0.037872314453125, -0.0638427734375, 0.035491943359375, -0.060638427734375, 0.0003604888916015625, 0.050018310546875, -0.01029205322265625, -0.08135986328125, -0.03277587890625, -0.0173797607421875, 0.0210723876953125, -0.01514434814453125, -0.0265045166015625, 0.0102386474609375, -0.0094451904296875, -0.004146575927734375, -0.0121307373046875, 0.01149749755859375, -0.05322265625, -0.02978515625, -0.046905517578125, -0.0022945404052734375, 0.0024089813232421875, -0.04058837890625, -0.0509033203125, 0.0872802734375, -0.02880859375, -0.00360870361328125, -0.0867919921875, 0.036041259765625, 0.0159149169921875, -0.0032863616943359375, -0.0303192138671875, 0.0027980804443359375, -0.028076171875, 0.0151824951171875, 0.0281829833984375, -0.0014972686767578125, 0.0214385986328125, 0.0157623291015625, -0.0164642333984375, 0.051788330078125, 0.042327880859375, -0.0029163360595703125, 0.005275726318359375, 0.0098876953125, 0.0173187255859375, 0.038055419921875, -0.028594970703125, 0.01271820068359375, -0.011322021484375, 0.006134033203125, -0.031402587890625, -0.03375244140625, -0.0029926300048828125, 0.0294952392578125, 0.1103515625, 0.060211181640625, 0.0183563232421875, -0.09112548828125, -0.01285552978515625, -0.051910400390625, 0.0184783935546875, -0.025421142578125, -0.01049041748046875, -0.0455322265625, -0.007488250732421875, -0.0019044876098632812, -0.0067291259765625, -0.0108489990234375, 0.018646240234375, -0.023101806640625, -0.01024627685546875, -0.00513458251953125, -0.0343017578125, -0.004589080810546875, -0.01788330078125, 0.03118896484375, -0.0241851806640625, 0.01470184326171875, 0.00708770751953125, 0.015777587890625, 0.01031494140625, 0.052490234375, 0.0426025390625, 0.054718017578125, -0.036376953125, 0.010009765625, 0.01558685302734375, 0.00577545166015625, -0.03533935546875, -0.02349853515625, 0.0296783447265625, 0.0279083251953125, -0.01352691650390625, 0.0439453125, 0.00323486328125, 0.010498046875, -0.0170745849609375, -0.019287109375, 0.0164947509765625, 0.019622802734375, -0.00785064697265625, 0.052490234375, 0.005767822265625, -0.0246734619140625, 0.0189208984375, -0.0254058837890625, -0.005496978759765625, 0.0205230712890625, 0.0128021240234375, -0.03759765625, 0.0118255615234375, -0.02874755859375, 0.021759033203125, 0.006900787353515625 ]
110f11aec1cdc31bf02c10cf41554bde3b487738
Wordpress Stackexchange Q: What is the use of to_ping and pinged column? Can anyone explain or show a reference for the use of to_ping and pinged column in the wp_posts table? It seems that my Googling skills have failed me. I wanted to do an experiment using the pinged column to save the term_id of a term that is related to this post record. I know that the proper way is to use custom field instead, but I wanted to reduce the mysql inner join in the WP_Query calls. Thank you in advance. A: * *to_ping is a list of URLs WordPress should send pingbacks to. *pinged is a list of URLs WordPress has sent pingbacks to. Do not use these fields for something else. They are parsed many times in core code (69 matches for to_ping); their format is fixed. You cannot reduce the query load by using these fields, because all post meta fields are fetched in one rush per post. So it doesn’t matter if there is one more or less.
Q: What is the use of to_ping and pinged column? Can anyone explain or show a reference for the use of to_ping and pinged column in the wp_posts table? It seems that my Googling skills have failed me. I wanted to do an experiment using the pinged column to save the term_id of a term that is related to this post record. I know that the proper way is to use custom field instead, but I wanted to reduce the mysql inner join in the WP_Query calls. Thank you in advance. A: * *to_ping is a list of URLs WordPress should send pingbacks to. *pinged is a list of URLs WordPress has sent pingbacks to. Do not use these fields for something else. They are parsed many times in core code (69 matches for to_ping); their format is fixed. You cannot reduce the query load by using these fields, because all post meta fields are fetched in one rush per post. So it doesn’t matter if there is one more or less.
wordpress
{ "language": "en", "length": 172, "provenance": "stackexchange_00019.jsonl.gz:432790", "question_score": "12", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/100556" }
[ 0.07568359375, -0.0239105224609375, 0.0367431640625, -0.01678466796875, -0.006175994873046875, -0.016082763671875, 0.0599365234375, -0.0189208984375, 0.00839996337890625, 0.037322998046875, -0.0102081298828125, 0.00372314453125, 0.0252685546875, -0.0236358642578125, -0.021697998046875, -0.0099945068359375, 0.024993896484375, -0.024749755859375, -0.014068603515625, 0.005859375, -0.022674560546875, 0.0255279541015625, -0.0014333724975585938, 0.009063720703125, 0.04962158203125, -0.0295867919921875, 0.017974853515625, -0.0259246826171875, 0.047119140625, -0.0033550262451171875, 0.022186279296875, -0.0029048919677734375, -0.0080413818359375, 0.016510009765625, -0.00485992431640625, -0.047637939453125, 0.0135040283203125, 0.01174163818359375, -0.006877899169921875, 0.035003662109375, 0.0289764404296875, -0.031585693359375, 0.004650115966796875, -0.0027790069580078125, -0.037017822265625, 0.01331329345703125, 0.024993896484375, 0.0151214599609375, 0.0022983551025390625, -0.0216827392578125, 0.00978851318359375, -0.0008006095886230469, 0.027099609375, 0.0225830078125, -0.0289154052734375, -0.01068878173828125, -0.003269195556640625, -0.013397216796875, 0.0161895751953125, 0.00997161865234375, -0.01494598388671875, 0.00394439697265625, 0.00798797607421875, -0.046112060546875, -0.01361846923828125, 0.0086822509765625, 0.0301666259765625, 0.0165252685546875, -0.051849365234375, -0.0246734619140625, 0.032470703125, -0.04608154296875, 0.02239990234375, -0.0174102783203125, -0.03521728515625, -0.0106658935546875, 0.0394287109375, 0.00310516357421875, -0.01549530029296875, -0.010101318359375, -0.014312744140625, -0.0198822021484375, 0.0005235671997070312, 0.0007762908935546875, -0.0552978515625, -0.008056640625, -0.009674072265625, 0.0157470703125, -0.005870819091796875, -0.03302001953125, 0.0058746337890625, -0.049285888671875, -0.06610107421875, 0.041778564453125, 0.0312347412109375, -0.061676025390625, -0.0273590087890625, 0.022430419921875, -0.01195526123046875, -0.01044464111328125, -0.0191497802734375, -0.01812744140625, -0.034912109375, -0.0217132568359375, 0.015167236328125, 0.0634765625, -0.032470703125, -0.0694580078125, 0.037445068359375, 0.02166748046875, 0.01459503173828125, 0.01540374755859375, 0.01052093505859375, 0.01032257080078125, -0.053314208984375, -0.027618408203125, -0.05780029296875, -0.020751953125, -0.01727294921875, -0.024078369140625, -0.004451751708984375, -0.0135650634765625, 0.0228424072265625, 0.0099029541015625, -0.0046234130859375, -0.0260162353515625, -0.059356689453125, 0.00525665283203125, -0.0287322998046875, 0.067138671875, -0.042205810546875, -0.0039825439453125, 0.07232666015625, 0.0173797607421875, 0.0011425018310546875, -0.03350830078125, 0.020477294921875, -0.01047515869140625, 0.004436492919921875, 0.026275634765625, 0.014923095703125, -0.0631103515625, -0.0260467529296875, 0.044342041015625, 0.01352691650390625, 0.004451751708984375, 0.00409698486328125, 0.044158935546875, 0.002704620361328125, -0.01470947265625, 0.0181121826171875, 0.01021575927734375, 0.043487548828125, -0.0043487548828125, -0.0450439453125, -0.0091094970703125, -0.03424072265625, -0.01239776611328125, -0.0211944580078125, -0.04925537109375, 0.0212860107421875, 0.0099945068359375, 0.0243988037109375, -0.0491943359375, -0.037689208984375, -0.028167724609375, -0.065673828125, -0.00531768798828125, 0.034393310546875, -0.00848388671875, 0.045745849609375, 0.003265380859375, 0.043182373046875, -0.0090484619140625, 0.0020599365234375, -0.024169921875, -0.0111846923828125, 0.0077972412109375, 0.038116455078125, -0.0198516845703125, -0.023284912109375, -0.034332275390625, 0.03411865234375, -0.00991058349609375, -0.036407470703125, 0.06591796875, 0.00765228271484375, 0.086181640625, -0.0008020401000976562, 0.0283355712890625, -0.00304412841796875, 0.01163482666015625, -0.03900146484375, 0.0084228515625, -0.006626129150390625, -0.0012235641479492188, -0.0298309326171875, 0.0017032623291015625, -0.005641937255859375, -0.0039005279541015625, 0.0276336669921875, 0.028076171875, -0.038177490234375, 0.0216064453125, -0.0557861328125, 0.00473785400390625, -0.00763702392578125, 0.01456451416015625, 0.001209259033203125, -0.00031948089599609375, 0.00978851318359375, 0.0053253173828125, 0.011871337890625, -0.071533203125, -0.02880859375, 0.0137786865234375, -0.035858154296875, -0.0153961181640625, -0.01873779296875, -0.03863525390625, -0.01535797119140625, 0.0168304443359375, -0.01052093505859375, -0.01042938232421875, -0.0263824462890625, -0.0099639892578125, -0.01473236083984375, -0.0004811286926269531, -0.0193634033203125, -0.0078582763671875, 0.060638427734375, 0.027099609375, 0.0325927734375, 0.04571533203125, 0.0262451171875, -0.0068511962890625, 0.051055908203125, -0.11920166015625, 0.01275634765625, 0.047821044921875, 0.046112060546875, -0.007282257080078125, -0.022186279296875, -0.04205322265625, -0.0133209228515625, -0.06268310546875, 0.00647735595703125, -0.01654052734375, 0.0109405517578125, 0.0145111083984375, 0.0074920654296875, -0.025787353515625, 0.0240631103515625, -0.068115234375, 0.0038166046142578125, 0.0200347900390625, -0.0204315185546875, -0.00460052490234375, 0.035736083984375, 0.0102996826171875, -0.0274810791015625, -0.006046295166015625, 0.023406982421875, -0.024871826171875, -0.01067352294921875, 0.01079559326171875, 0.0290985107421875, 0.0240936279296875, -0.0007810592651367188, -0.01061248779296875, 0.0078582763671875, -0.002277374267578125, 0.0041351318359375, -0.033203125, -0.0195159912109375, 0.0287017822265625, 0.01474761962890625, 0.00855255126953125, 0.0134735107421875, -0.03326416015625, -0.0198974609375, 0.045989990234375, -0.0240631103515625, -0.0244293212890625, -0.0118408203125, -0.07183837890625, -0.039459228515625, -0.0269622802734375, -0.0184326171875, -0.0196685791015625, -0.005687713623046875, 0.07733154296875, 0.027923583984375, 0.0094757080078125, 0.02850341796875, 0.0179901123046875, -0.06878662109375, 0.0191192626953125, 0.006450653076171875, 0.0013761520385742188, -0.03387451171875, 0.04376220703125, 0.013336181640625, -0.00957489013671875, 0.0140228271484375, -0.00787353515625, 0.01092529296875, 0.016845703125, 0.0070953369140625, -0.005496978759765625, -0.0560302734375, 0.002899169921875, 0.025604248046875, 0.08380126953125, -0.0343017578125, -0.056304931640625, -0.0234832763671875, 0.0280609130859375, -0.08349609375, -0.0640869140625, 0.046478271484375, -0.08135986328125, -0.029052734375, -0.05078125, -0.055267333984375, 0.003520965576171875, -0.0194854736328125, -0.0095672607421875, -0.039794921875, -0.004825592041015625, -0.0531005859375, -0.06378173828125, -0.03271484375, -0.01416778564453125, -0.0212249755859375, -0.009857177734375, 0.019073486328125, 0.046417236328125, 0.004840850830078125, -0.033355712890625, -0.007053375244140625, 0.03997802734375, -0.022674560546875, -0.0146484375, -0.018218994140625, 0.00803375244140625, -0.006832122802734375, -0.01064300537109375, -0.04962158203125, -0.00966644287109375, 0.01326751708984375, -0.02655029296875, -0.03118896484375, 0.01161956787109375, 0.03399658203125, -0.06976318359375, 0.003971099853515625, 0.055145263671875, -0.00685882568359375, -0.004199981689453125, 0.0135040283203125, -0.0294036865234375, -0.0255279541015625, 0.001079559326171875, 0.00319671630859375, 0.01273345947265625, -0.02447509765625, -0.00024139881134033203, 0.0328369140625, -0.00012636184692382812, 0.0106353759765625, 0.004291534423828125, -0.0266265869140625, 0.00537872314453125, 0.02880859375, -0.023468017578125, 0.01503753662109375, -0.01953125, 0.07830810546875, 0.0226898193359375, 0.0174102783203125, -0.024169921875, 0.08258056640625, -0.014190673828125, -0.0372314453125, 0.0284576416015625, -0.034515380859375, -0.01239776611328125, 0.0002739429473876953, -0.007076263427734375, -0.0013675689697265625, 0.0487060546875, -0.06304931640625, 0.000377655029296875, -0.021697998046875, 0.01047515869140625, -0.03662109375, -0.023223876953125, -0.057708740234375, -0.006134033203125, 0.0067291259765625, 0.0053558349609375, -0.006633758544921875, 0.01284027099609375, -0.0222015380859375, 0.01690673828125, 0.0204925537109375, -0.029144287109375, 0.01432037353515625, -0.0247955322265625, 0.0015115737915039062, 0.00908660888671875, -0.0217437744140625, -0.015380859375, 0.01030731201171875, -0.037872314453125, -0.00435638427734375, -0.0177764892578125, 0.033660888671875, -0.02899169921875, 0.01325225830078125, -0.0865478515625, 0.040496826171875, 0.0400390625, 0.040863037109375, 0.01377105712890625, 0.005939483642578125, -0.033294677734375, -0.008544921875, 0.032745361328125, 0.00464630126953125, -0.0014505386352539062, -0.001644134521484375, -0.043609619140625, -0.0518798828125, -0.01552581787109375, -0.01141357421875, 0.0360107421875, 0.00757598876953125, -0.024749755859375, 0.0133209228515625, -0.0170440673828125, -0.01190185546875, 0.013580322265625, -0.02728271484375, -0.002216339111328125, -0.0301666259765625, 0.02362060546875, 0.036712646484375, 0.01715087890625, 0.011077880859375, 0.00789642333984375, 0.05914306640625, 0.00434112548828125, -0.0252532958984375, -0.023193359375, -0.020355224609375, 0.0261077880859375, -0.036376953125, 0.0305938720703125, 0.039886474609375, -0.01233673095703125, 0.040191650390625, -0.01265716552734375, -0.035186767578125, 0.0254669189453125, -0.027069091796875, 0.02679443359375, -0.0035533905029296875, -0.02117919921875, -0.030975341796875, 0.0687255859375, 0.03216552734375, -0.0189361572265625, -0.01580810546875, -0.033447265625, 0.04266357421875, -0.0260467529296875, 0.04840087890625, -0.03802490234375, -0.0567626953125, 0.029052734375, -0.07330322265625, 0.01349639892578125, -0.0031147003173828125, -0.0023040771484375, 0.01349639892578125, 0.01055908203125, 0.0081787109375, -0.01454925537109375, -0.018646240234375, 0.0010976791381835938, 0.00719451904296875, 0.028350830078125, 0.007808685302734375, -0.020172119140625, -0.003589630126953125, 0.08636474609375, -0.007511138916015625, -0.0814208984375, 0.04718017578125, -0.0028171539306640625, 0.00580596923828125, 0.0653076171875, 0.045196533203125, 0.01448822021484375, 0.0221405029296875, -0.016510009765625, -0.0032787322998046875, 0.0634765625, 0.022857666015625, -0.01493072509765625, -0.0008335113525390625, 0.046539306640625, -0.0323486328125, -0.02801513671875, 0.04705810546875, 0.00147247314453125, -0.0061492919921875, -0.0051116943359375, 0.046234130859375, 0.0116119384765625, 0.0443115234375, 0.0279083251953125, -0.0394287109375, 0.00839996337890625, 0.0137176513671875, -0.00946807861328125, -0.045379638671875, 0.043670654296875, -0.004604339599609375, 0.03460693359375, -0.036041259765625, -0.06689453125, 0.06939697265625, -0.045928955078125, -0.037872314453125, 0.0615234375, -0.005847930908203125, -0.031768798828125, -0.07794189453125, -0.08001708984375, 0.052093505859375, -0.0106048583984375, -0.0013074874877929688, 0.0004935264587402344, -0.05340576171875, 0.021087646484375, -0.01454925537109375, 0.028594970703125, -0.032470703125, -0.0338134765625, -0.038360595703125, -0.0389404296875, 0.01363372802734375, 0.062103271484375, 0.0474853515625, -0.0272674560546875, -0.058502197265625, 0.04095458984375, -0.0159454345703125, -0.0225067138671875, -0.0224151611328125, 0.017578125, -0.044036865234375, 0.001842498779296875, 0.0234222412109375, -0.00015783309936523438, -0.02508544921875, -0.0296173095703125, -0.0287322998046875, 0.0175018310546875, 0.049957275390625, -0.03192138671875, 0.0183258056640625, -0.0236053466796875, 0.0115814208984375, 0.0256805419921875, -0.029449462890625, -0.038665771484375, -0.00959014892578125, 0.0013580322265625, 0.007659912109375, 0.022796630859375, -0.007110595703125, 0.041961669921875, 0.0106048583984375, 0.0040283203125, 0.019195556640625, 0.033782958984375, -0.00799560546875, -0.00263214111328125, 0.03253173828125, -0.0484619140625, -0.01445770263671875, -0.03533935546875, 0.0217132568359375, -0.030364990234375, -0.035675048828125, -0.01473236083984375, 0.055023193359375, -0.0172576904296875, 0.02020263671875, 0.00836181640625, -0.047027587890625, -0.06121826171875, 0.01483154296875, 0.041778564453125, -0.0194244384765625, 0.0164947509765625, -0.0214691162109375, 0.0167236328125, 0.004459381103515625, -0.03375244140625, 0.0147552490234375, 0.0080718994140625, 0.0066680908203125, -0.0020599365234375, 0.031097412109375, -0.0244598388671875, 0.0031185150146484375, 0.00934600830078125, -0.0172882080078125, 0.007598876953125, -0.004512786865234375, -0.0133514404296875, 0.00231170654296875, 0.0232391357421875, 0.002948760986328125, -0.005523681640625, 0.0133209228515625, -0.027801513671875, -0.00734710693359375, 0.007022857666015625, 0.034210205078125, 0.01387786865234375, -0.00458526611328125, 0.023223876953125, -0.0284423828125, -0.01349639892578125, 0.026702880859375, -0.0282440185546875, -0.0423583984375, 0.02557373046875, -0.00605010986328125, -0.01552581787109375, 0.004383087158203125, -0.0014972686767578125, 0.0196533203125, 0.010894775390625, 0.06561279296875, -0.0042266845703125, -0.011962890625, -0.034393310546875, -0.00040268898010253906, 0.00817108154296875, 0.01129913330078125, 0.0022869110107421875, -0.00551605224609375, -0.04290771484375, -0.038818359375, -0.01549530029296875, -0.00021839141845703125, -0.029510498046875, 0.04656982421875, -0.00627899169921875, 0.056121826171875, 0.0279541015625, 0.0268707275390625, -0.016021728515625, -0.00743865966796875, -0.012847900390625, -0.012451171875, -0.004383087158203125, 0.01448822021484375, 0.036865234375, -0.02374267578125, 0.015472412109375, -0.0128936767578125, -0.00284576416015625, -0.0161895751953125, -0.0108795166015625, 0.0496826171875, 0.002811431884765625, -0.0239105224609375, 0.006744384765625, 0.051788330078125, 0.01129150390625, -0.038543701171875, -0.010223388671875, -0.057769775390625, -0.01434326171875, -0.045074462890625, -0.024627685546875, 0.018402099609375, -0.062225341796875, -0.06671142578125, 0.1536865234375, -0.003448486328125, 0.03271484375, -0.0265045166015625, 0.06439208984375, 0.01271820068359375, 0.06561279296875, -0.0604248046875, 0.08294677734375, 0.01134490966796875, 0.04510498046875, -0.03271484375, 0.006855010986328125, 0.0227813720703125, -0.00176239013671875, 0.081298828125, 0.007450103759765625, -0.020050048828125, -0.0152435302734375, 0.0789794921875, 0.03729248046875, -0.01363372802734375, 0.0285491943359375, 0.0140380859375, 0.005580902099609375, 0.040985107421875, -0.0154571533203125, 0.0264129638671875, 0.0205841064453125, -0.00702667236328125, 0.035614013671875, 0.00969696044921875, 0.02166748046875, 0.00505828857421875, -0.00878143310546875, -0.00045752525329589844, -0.01187896728515625, 0.007595062255859375, -0.03912353515625, 0.01123046875, -0.00860595703125, -0.027801513671875, -0.0099029541015625, -0.022674560546875, 0.0006866455078125, 0.0088043212890625, -0.015869140625, 0.05572509765625, 0.032806396484375, 0.0157623291015625, 0.0780029296875, -0.011871337890625, 0.04205322265625, 0.00814056396484375, -0.00970458984375, 0.058868408203125, -0.01953125, 0.033416748046875, -0.054229736328125, 0.0194549560546875, 0.01129150390625, 0.062286376953125, -0.050445556640625, -0.0218048095703125, 0.020599365234375, 0.00598907470703125, 0.0007081031799316406, 0.01320648193359375, 0.0341796875, -0.01541900634765625, 0.008392333984375, -0.005229949951171875, 0.0098724365234375, 0.018096923828125, -0.01157379150390625, 0.00911712646484375, 0.0416259765625, -0.050537109375, 0.022552490234375, -0.0121917724609375, 0.00911712646484375, -0.007717132568359375, 0.02093505859375, 0.00966644287109375, 0.0225982666015625, 0.00011336803436279297, -0.0042572021484375, 0.0132293701171875, 0.007587432861328125, -0.01178741455078125, -0.01247406005859375, 0.0007653236389160156, -0.03485107421875, 0.0118560791015625, 0.0294342041015625, -0.012908935546875, 0.033294677734375, 0.05218505859375, 0.0100250244140625, -0.055145263671875, -0.01280975341796875, 0.07025146484375, -0.035797119140625, -0.01116180419921875, -0.0160980224609375, -0.005588531494140625, 0.048187255859375, 0.00862884521484375, 0.00412750244140625, 0.004138946533203125, 0.0596923828125, -0.0445556640625, 0.0982666015625, -0.0252838134765625, 0.0294189453125, -0.00027060508728027344, -0.03289794921875, 0.0120391845703125, -0.0156707763671875, -0.0791015625, -0.00835418701171875, -0.0132598876953125, -0.04791259765625, -0.00470733642578125, 0.0202789306640625, -0.0063629150390625, 0.00762176513671875, 0.003421783447265625, 0.01947021484375, -0.033111572265625, 0.026611328125, 0.01010894775390625, 0.0159149169921875, 0.024383544921875, 0.0146331787109375, -0.004184722900390625, 0.020538330078125, 0.01361846923828125, -0.012481689453125, -0.0126495361328125, 0.01763916015625, 0.0191650390625, 0.0044403076171875, -0.01436614990234375, -0.01538848876953125, -0.0120697021484375, -0.0220794677734375, 0.0034732818603515625, -0.03302001953125, -0.0099334716796875, 0.006481170654296875, -0.02349853515625, -0.01062774658203125, 0.0499267578125, -0.041290283203125, 0.0004622936248779297, -0.03973388671875, 0.0228424072265625, -0.0251007080078125, 0.006427764892578125, -0.0079498291015625, 0.01450347900390625, 0.0178375244140625, -0.0130157470703125, 0.0394287109375, 0.030181884765625, -0.0069580078125, 0.08856201171875, -0.02264404296875, 0.038482666015625, -0.005279541015625, -0.05767822265625, -0.0238800048828125, 0.0179901123046875, -0.0266876220703125, 0.059326171875, 0.00525665283203125, -0.039154052734375, 0.0487060546875, -0.021392822265625, -0.01151275634765625, 0.003437042236328125, -0.04498291015625, 0.0250244140625, -0.0210418701171875, 0.0120849609375, -0.03656005859375, -0.0300140380859375, 0.000640869140625, 0.0226287841796875, 0.036285400390625, -0.004730224609375, -0.0034732818603515625, -0.0195159912109375, -0.0272216796875, 0.01593017578125, -0.0235443115234375, -0.029327392578125, -0.034698486328125, 0.0022068023681640625, 0.01425933837890625, -0.02728271484375, 0.03363037109375, -0.01488494873046875, -0.0298004150390625, -0.01568603515625, -0.003192901611328125, 0.0290679931640625, -0.026275634765625, 0.00833892822265625, 0.00919342041015625, -0.043792724609375, -0.036590576171875, 0.068603515625, -0.0205230712890625, 0.0167083740234375, 0.0205841064453125, -0.0139617919921875, -0.0032291412353515625, 0.019134521484375, 0.00638580322265625, 0.050567626953125, -0.0284423828125, -0.0357666015625, 0.018280029296875, 0.013519287109375, -0.0159759521484375, -0.06280517578125, -0.01358795166015625, -0.00841522216796875, 0.047027587890625, -0.0286712646484375, 0.0228424072265625, 0.0180511474609375, -0.0190582275390625, -0.07025146484375, 0.0498046875, -0.021697998046875, -0.0232696533203125, -0.07489013671875, -0.025054931640625, 0.010101318359375, 0.006328582763671875, -0.0295257568359375, -0.035614013671875, -0.0657958984375, 0.036834716796875, 0.03961181640625, -0.00167083740234375, 0.05145263671875, -0.0174560546875, -0.0462646484375, 0.006206512451171875, 0.0038738250732421875, 0.058502197265625, 0.0160980224609375, -0.0055389404296875, 0.021240234375, 0.035125732421875, -0.0264129638671875, -0.018585205078125, -0.0078277587890625, -0.022552490234375, 0.0031833648681640625, 0.01245880126953125, -0.01451873779296875, 0.023529052734375, 0.0252838134765625, 0.07861328125, 0.00897216796875, -0.056915283203125, -0.054168701171875, -0.0784912109375, -0.0272979736328125, -0.0136566162109375, 0.0160675048828125, -0.0660400390625, 0.0226593017578125, 4.76837158203125e-7, 0.0017156600952148438, 0.00457000732421875, -0.01198577880859375, 0.0105438232421875, -0.0157318115234375, 0.0258636474609375, -0.017547607421875, -0.0034999847412109375, 0.016021728515625, -0.0159149169921875, -0.004825592041015625, -0.007709503173828125, -0.026031494140625, 0.033416748046875, -0.035888671875, -0.00855255126953125, -0.0206298828125, 0.0244598388671875, -0.060760498046875, -0.005809783935546875, -0.011016845703125, 0.05560302734375, -0.034820556640625, 0.01035308837890625, -0.033172607421875, 0.02056884765625, 0.0016727447509765625, 0.020111083984375, -0.0110321044921875, 0.005779266357421875, 0.0357666015625, 0.058868408203125, -0.01123046875, 0.05218505859375, -0.0014934539794921875, 0.0312042236328125, -0.033172607421875, -0.005706787109375, 0.0277862548828125, -0.04022216796875, -0.004352569580078125, -0.03582763671875, 0.0059051513671875, -0.090576171875, 0.045257568359375, 0.01357269287109375, -0.00081634521484375, 0.0484619140625 ]
bf321c69d9566252deec3ab2cff7507c0a6c6b73
Wordpress Stackexchange Q: Set Item Order with wp_nav_menu_{$menu->slug}_items I have some code that adds a menu item to a menu using wp_nav_menu_{$menu->slug}_items. It's pretty easy to add a menu item as the first or last item of the menu, but I was wondering if there's any way to assign an order to the item, i.e. place it as the 3rd item in the menu. If there's no method for that built into the filter, is there another way to achieve the same result? A: you can always search & replace by string or regex the output html of the filtered $items. anyway, if you're targeting usual menu items, you can add $post objects and order items through the wp_nav_menu_objects filter, otherwise here's the basic sample code: function replace_itemcart_in_menu( $items, $args ) { $url = home_url('my-item'); $previtem = '<li id="menu-item-11" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-11"><a href="'.$carturl.'/">My Item</a>'; $newitem = '<li>New Item</li>'; $items = str_replace($previtem, $previtem.$newitem, $items); return $items; }
Q: Set Item Order with wp_nav_menu_{$menu->slug}_items I have some code that adds a menu item to a menu using wp_nav_menu_{$menu->slug}_items. It's pretty easy to add a menu item as the first or last item of the menu, but I was wondering if there's any way to assign an order to the item, i.e. place it as the 3rd item in the menu. If there's no method for that built into the filter, is there another way to achieve the same result? A: you can always search & replace by string or regex the output html of the filtered $items. anyway, if you're targeting usual menu items, you can add $post objects and order items through the wp_nav_menu_objects filter, otherwise here's the basic sample code: function replace_itemcart_in_menu( $items, $args ) { $url = home_url('my-item'); $previtem = '<li id="menu-item-11" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-11"><a href="'.$carturl.'/">My Item</a>'; $newitem = '<li>New Item</li>'; $items = str_replace($previtem, $previtem.$newitem, $items); return $items; }
wordpress
{ "language": "en", "length": 155, "provenance": "stackexchange_00019.jsonl.gz:432820", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/100671" }
[ 0.07110595703125, -0.0003170967102050781, 0.03204345703125, -0.0214385986328125, 0.027191162109375, -0.039215087890625, 0.052520751953125, -0.06756591796875, 0.031829833984375, -0.0028324127197265625, -0.0251312255859375, -0.02935791015625, -0.0310211181640625, -0.02642822265625, -0.0177001953125, -0.043975830078125, 0.02569580078125, -0.01215362548828125, 0.018890380859375, -0.002407073974609375, -0.01087188720703125, 0.01275634765625, 0.045745849609375, 0.038604736328125, 0.050506591796875, -0.0196075439453125, -0.00835418701171875, -0.0081634521484375, 0.0296478271484375, 0.0195159912109375, 0.01390838623046875, -0.033538818359375, 0.0271148681640625, -0.018096923828125, 0.0236358642578125, 0.004169464111328125, 0.00004601478576660156, 0.0014810562133789062, 0.004878997802734375, 0.0028972625732421875, 0.040313720703125, -0.0174407958984375, -0.039306640625, -0.00043201446533203125, -0.0299072265625, -0.032257080078125, 0.039459228515625, -0.0158538818359375, 0.034088134765625, -0.03753662109375, 0.0308837890625, 0.017181396484375, 0.0292816162109375, -0.00527191162109375, -0.01421356201171875, 0.036956787109375, -0.0191802978515625, -0.0175018310546875, -0.00447845458984375, 0.05389404296875, 0.0233001708984375, 0.020294189453125, -0.005397796630859375, -0.0181121826171875, 0.0024700164794921875, 0.002819061279296875, 0.041046142578125, -0.002712249755859375, -0.06695556640625, 0.0095977783203125, 0.0594482421875, -0.0226287841796875, 0.005107879638671875, -0.020660400390625, -0.01428985595703125, -0.0132598876953125, 0.0116119384765625, -0.0271453857421875, 0.0206146240234375, -0.0032749176025390625, 0.0242919921875, 0.00994873046875, 0.01360321044921875, -0.040313720703125, 0.0219879150390625, -0.026947021484375, -0.001476287841796875, -0.004444122314453125, -0.00716400146484375, -0.019378662109375, -0.0214385986328125, -0.01332855224609375, 0.0318603515625, -0.01268768310546875, -0.0501708984375, -0.00632476806640625, 0.01442718505859375, 0.059234619140625, -0.006656646728515625, 0.0340576171875, -0.01284027099609375, -0.035491943359375, 0.04522705078125, -0.05352783203125, 0.01050567626953125, 0.0115966796875, 0.0143890380859375, -0.00678253173828125, 0.0413818359375, 0.0201263427734375, -0.01004791259765625, 0.090576171875, 0.00397491455078125, -0.0440673828125, -0.0164031982421875, 0.01557159423828125, -0.01427459716796875, 0.01314544677734375, 0.03314208984375, -0.0007586479187011719, -0.020416259765625, 0.01424407958984375, -0.0009160041809082031, 0.00533294677734375, -0.003299713134765625, 0.0015659332275390625, 0.003459930419921875, -0.015777587890625, -0.0296478271484375, -0.0013589859008789062, -0.0279541015625, 0.017486572265625, 0.0831298828125, 0.062103271484375, 0.0177459716796875, -0.00830841064453125, 0.0082244873046875, -0.0295257568359375, 0.0140838623046875, -0.01000213623046875, 0.040130615234375, -0.009124755859375, -0.0041656494140625, 0.00873565673828125, 0.032928466796875, 0.02911376953125, -0.0075531005859375, -0.0051422119140625, 0.02398681640625, -0.00905609130859375, 0.0144500732421875, -0.0692138671875, 0.0233306884765625, 0.021026611328125, -0.06854248046875, 0.046142578125, -0.0265655517578125, 0.021575927734375, -0.04791259765625, -0.01088714599609375, -0.09033203125, -0.031982421875, 0.035400390625, -0.1197509765625, -0.09820556640625, 0.047454833984375, -0.0190887451171875, -0.00949859619140625, 0.01232147216796875, 0.034698486328125, -0.037872314453125, -0.015289306640625, 0.031646728515625, 0.016937255859375, -0.025177001953125, 0.039337158203125, 0.031524658203125, 0.007633209228515625, 0.0194549560546875, 0.032745361328125, -0.0012111663818359375, -0.037384033203125, 0.0311737060546875, -0.0010528564453125, -0.0792236328125, 0.0296630859375, 0.0012788772583007812, 0.061309814453125, 0.038848876953125, 0.0038013458251953125, 0.05682373046875, -0.022369384765625, -0.039794921875, 0.00624847412109375, -0.020477294921875, -0.0131988525390625, 0.0293121337890625, 0.0254669189453125, -0.007476806640625, -0.006954193115234375, -0.00899505615234375, 0.03302001953125, -0.01605224609375, 0.011260986328125, -0.0294036865234375, 0.0026035308837890625, -0.000012993812561035156, 0.0430908203125, -0.011444091796875, 0.0008721351623535156, 0.01192474365234375, -0.0131072998046875, -0.01323699951171875, -0.0010395050048828125, -0.01303863525390625, 0.018218994140625, -0.0312347412109375, 0.036712646484375, -0.041839599609375, 0.02203369140625, -0.035369873046875, -0.0341796875, -0.006378173828125, 0.0231475830078125, 0.03277587890625, 0.00757598876953125, -0.0306243896484375, -0.009521484375, 0.0338134765625, 0.0068206787109375, -0.02520751953125, 0.0250701904296875, 0.053375244140625, 0.03094482421875, -0.03887939453125, 0.01308441162109375, 0.0139923095703125, -0.0281524658203125, -0.012542724609375, 0.043182373046875, 0.04345703125, 0.0285797119140625, 0.030364990234375, 0.004268646240234375, 0.040985107421875, -0.00606536865234375, 0.043426513671875, -0.049041748046875, 0.0012121200561523438, 0.034454345703125, 0.01233673095703125, 0.004177093505859375, 0.021026611328125, 0.024169921875, 0.0178680419921875, 0.027191162109375, 0.0102386474609375, 0.0142669677734375, -0.009063720703125, 0.003040313720703125, 0.0069732666015625, 0.04217529296875, -0.007755279541015625, 0.0208587646484375, -0.010498046875, 0.005401611328125, 0.01551055908203125, 0.009796142578125, -0.0123748779296875, -0.0175933837890625, 0.0150299072265625, 0.0309600830078125, -0.007198333740234375, -0.01108551025390625, -0.033294677734375, -0.00814056396484375, -0.0164794921875, 0.0308074951171875, -0.01494598388671875, -0.01540374755859375, -0.0112152099609375, 0.040252685546875, 0.054046630859375, -0.01558685302734375, -0.037689208984375, -0.038360595703125, 0.049560546875, 0.0187530517578125, -0.046142578125, -0.01477813720703125, 0.039764404296875, -0.0256805419921875, -0.053680419921875, 0.01436614990234375, -0.0282440185546875, -0.0185089111328125, 0.056610107421875, 0.0225372314453125, 0.01025390625, 0.01428985595703125, 0.018524169921875, 0.03326416015625, 0.002712249755859375, -0.0267791748046875, 0.016357421875, 0.014892578125, 0.02557373046875, 0.01055145263671875, 0.00778961181640625, 0.0027866363525390625, -0.0225982666015625, 0.02984619140625, 0.00769805908203125, -0.007007598876953125, 0.0121307373046875, -0.039825439453125, 0.0015544891357421875, -0.0242156982421875, -0.0828857421875, -0.07818603515625, 0.0196685791015625, -0.027862548828125, 0.0283050537109375, 0.0253448486328125, -0.021026611328125, -0.0257720947265625, 0.0748291015625, 0.0012493133544921875, 0.045135498046875, -0.02069091796875, -0.00836181640625, 0.005893707275390625, -0.0304412841796875, 0.02215576171875, 0.002349853515625, -0.01319122314453125, -0.0020465850830078125, 0.08837890625, 0.00559234619140625, -0.055877685546875, 0.0025005340576171875, 0.00829315185546875, -0.0063934326171875, 0.028350830078125, 0.041046142578125, -0.0711669921875, -0.027587890625, -0.022003173828125, 0.078857421875, 0.031463623046875, -0.026275634765625, 0.029266357421875, -0.0229949951171875, 0.047271728515625, 0.025482177734375, 0.0196990966796875, 0.03204345703125, 0.047943115234375, 0.03607177734375, -0.0022945404052734375, -0.01555633544921875, -0.0024700164794921875, -0.0309906005859375, 0.023529052734375, 0.0010995864868164062, 0.0041046142578125, -0.0083770751953125, 0.01439666748046875, -0.0170440673828125, -0.000621795654296875, 0.04058837890625, -0.023834228515625, -0.0048828125, -0.0198974609375, -0.036773681640625, -0.0257720947265625, 0.07000732421875, 0.011993408203125, -0.03741455078125, 0.03436279296875, -0.01416015625, -0.0038280487060546875, -0.0127716064453125, -0.036529541015625, -0.0213623046875, 0.029327392578125, -0.01690673828125, 0.052093505859375, -0.04974365234375, -0.020355224609375, -0.0259857177734375, 0.07232666015625, -0.03851318359375, -0.040557861328125, -0.007785797119140625, 0.032470703125, 0.0168609619140625, -0.042694091796875, 0.0258331298828125, -0.050506591796875, -0.0751953125, 0.02288818359375, -0.01331329345703125, -0.00913238525390625, -0.0037517547607421875, 0.04132080078125, -0.02606201171875, -0.046417236328125, 0.061065673828125, -0.06317138671875, -0.001705169677734375, 0.058929443359375, 0.0023345947265625, -0.01308441162109375, -0.051971435546875, 0.0112457275390625, -0.0290679931640625, -0.00759124755859375, -0.0309295654296875, 0.049591064453125, 0.03900146484375, -0.0323486328125, 0.0019016265869140625, 0.0357666015625, 0.022705078125, 0.052978515625, 0.0241241455078125, 0.01873779296875, -0.005535125732421875, -0.0289459228515625, 0.0231170654296875, -0.05084228515625, 0.000762939453125, -0.007415771484375, -0.0543212890625, -0.0036029815673828125, -0.0207061767578125, 0.0229949951171875, 0.027252197265625, -0.0281829833984375, -0.072509765625, -0.06353759765625, -0.0264892578125, 0.0004088878631591797, -0.016387939453125, -0.0009140968322753906, -0.06011962890625, -0.07354736328125, -0.031494140625, -0.0196380615234375, -0.0312347412109375, 0.0224151611328125, 0.01019287109375, 0.038055419921875, 0.0083770751953125, 0.045318603515625, 0.015838623046875, 0.0259857177734375, 0.008209228515625, -0.006748199462890625, -0.00934600830078125, -0.034393310546875, 0.0269622802734375, 0.01263427734375, 0.00734710693359375, 0.003570556640625, 0.00878143310546875, 0.036834716796875, -0.0252532958984375, 0.025787353515625, 0.034637451171875, -0.020782470703125, 0.0144500732421875, -0.00643157958984375, -0.036834716796875, -0.01380157470703125, 0.04058837890625, 0.002429962158203125, 0.0211181640625, -0.029083251953125, -0.043243408203125, 0.0111083984375, 0.028778076171875, 0.03228759765625, 0.03558349609375, -0.01275634765625, 0.041290283203125, 0.0283355712890625, -0.0056610107421875, -0.01953125, -0.00821685791015625, -0.02349853515625, 0.02154541015625, -0.035125732421875, -0.008514404296875, 0.00917816162109375, 0.006130218505859375, 0.0260772705078125, 0.0306854248046875, 0.01055145263671875, -0.06280517578125, 0.0175933837890625, 0.0227203369140625, -0.0224609375, -0.0080413818359375, -0.0124359130859375, 0.0128021240234375, 0.0079193115234375, 0.00823211669921875, -0.0274810791015625, 0.03515625, -0.0015478134155273438, 0.004009246826171875, 0.0174407958984375, -0.0189208984375, 0.004364013671875, 0.033477783203125, 0.01800537109375, -0.01132965087890625, -0.00815582275390625, 0.029815673828125, 0.0191802978515625, -0.0004475116729736328, 0.0236968994140625, 0.03558349609375, -0.01611328125, 0.0189666748046875, 0.01213836669921875, -0.01195526123046875, -0.0206756591796875, -0.039154052734375, -0.005374908447265625, -0.0068817138671875, 0.0147247314453125, 0.04449462890625, 0.00911712646484375, -0.007457733154296875, 0.025421142578125, -0.0287628173828125, -0.04730224609375, -0.0292816162109375, -0.016143798828125, 0.0189208984375, -0.035186767578125, 0.0114288330078125, 0.026275634765625, 0.011962890625, 0.0250701904296875, -0.036102294921875, -0.0035495758056640625, -0.00868988037109375, 0.008819580078125, -0.030029296875, -0.0158538818359375, 0.00925445556640625, -0.06292724609375, -0.0252532958984375, -0.017486572265625, -0.017364501953125, 0.048919677734375, -0.06219482421875, 0.0296630859375, -0.0340576171875, 0.0394287109375, -0.066162109375, 0.03607177734375, 0.0011920928955078125, 0.02734375, -0.012939453125, -0.005702972412109375, -0.043182373046875, -0.0251312255859375, 0.00803375244140625, -0.0159149169921875, -0.0357666015625, -0.00907135009765625, -0.0071258544921875, 0.02166748046875, -0.0087890625, -0.0041046142578125, -0.005764007568359375, -0.009124755859375, -0.0105438232421875, -0.0184326171875, -0.01288604736328125, 0.04803466796875, 0.014678955078125, -0.00005453824996948242, 0.0023097991943359375, -0.008026123046875, -0.02349853515625, 0.011932373046875, 0.005634307861328125, -0.004421234130859375, -0.03759765625, -0.00626373291015625, -0.049774169921875, 0.0238800048828125, 0.08709716796875, -0.0217437744140625, 0.029205322265625, -0.02978515625, 0.0080718994140625, -0.0215911865234375, -0.000034749507904052734, -0.058837890625, -0.0264129638671875, 0.04052734375, -0.0184173583984375, 0.0008273124694824219, 0.005496978759765625, 0.026031494140625, -0.018463134765625, -0.0038280487060546875, 0.00023615360260009766, -0.0032196044921875, -0.0869140625, 0.07794189453125, 0.0657958984375, 0.042724609375, 0.0634765625, -0.0253448486328125, 0.03448486328125, 0.009033203125, -0.0416259765625, 0.034393310546875, 0.059722900390625, 0.044921875, -0.034332275390625, -0.0195770263671875, 0.003993988037109375, -0.0399169921875, 0.0286102294921875, 0.029876708984375, 0.048095703125, -0.06573486328125, 0.017486572265625, 0.005474090576171875, -0.04425048828125, 0.028045654296875, 0.034210205078125, -0.01309967041015625, -0.004253387451171875, 0.0255126953125, -0.0758056640625, -0.004642486572265625, 0.019927978515625, -0.013824462890625, 0.0006880760192871094, 0.002712249755859375, -0.01535797119140625, -0.0063018798828125, -0.0087432861328125, -0.042938232421875, 0.0206756591796875, -0.0123138427734375, -0.047637939453125, -0.015777587890625, 0.053558349609375, -0.026519775390625, -0.04571533203125, 0.06903076171875, -0.0024890899658203125, 0.0303955078125, 0.032958984375, 0.012969970703125, -0.00867462158203125, 0.02008056640625, -0.00576019287109375, -0.0045166015625, -0.002117156982421875, -0.02301025390625, 0.0206451416015625, -0.0027637481689453125, 0.0166473388671875, 0.00965118408203125, -0.0369873046875, -0.0008177757263183594, -0.00962066650390625, -0.00919342041015625, -0.002063751220703125, -0.01479339599609375, 0.0711669921875, -0.031524658203125, -0.0175018310546875, -0.00028514862060546875, -0.00818634033203125, 0.006465911865234375, 0.007678985595703125, 0.047760009765625, -0.055419921875, -0.025299072265625, 0.023040771484375, -0.01174163818359375, -0.0235137939453125, -0.00250244140625, -0.032928466796875, 0.0916748046875, -0.040924072265625, -0.01318359375, 0.0048370361328125, 0.0489501953125, -0.019287109375, 0.03326416015625, -0.03594970703125, 0.00861358642578125, -0.039886474609375, 0.049346923828125, -0.052276611328125, -0.01178741455078125, 0.006076812744140625, 0.05267333984375, -0.0107574462890625, 0.00020885467529296875, -0.069091796875, 0.0244293212890625, 0.050933837890625, 0.041229248046875, 0.050262451171875, 0.053253173828125, -0.00420379638671875, 0.0028476715087890625, 0.0304412841796875, -0.008941650390625, 0.036346435546875, -0.01641845703125, -0.033660888671875, 0.0086517333984375, 0.003936767578125, -0.0013208389282226562, -0.01027679443359375, 0.03778076171875, -0.0587158203125, -0.0007867813110351562, 0.0328369140625, -0.015380859375, 0.00843048095703125, 0.01427459716796875, 0.005641937255859375, 0.0200347900390625, -0.0654296875, 0.0093231201171875, 0.006641387939453125, 0.0185546875, 0.00783538818359375, 0.03265380859375, 0.0199127197265625, 0.03857421875, 0.0089569091796875, -0.0023784637451171875, 0.0285797119140625, -0.00830078125, 0.046630859375, 0.0280303955078125, 0.04705810546875, -0.0232086181640625, -0.0247039794921875, 0.044677734375, 0.0841064453125, -0.0270538330078125, -0.0117340087890625, 0.011932373046875, 0.00803375244140625, 0.0141448974609375, -0.00371551513671875, 0.0640869140625, -0.03326416015625, -0.040496826171875, -0.0211334228515625, 0.0018262863159179688, 0.035491943359375, 0.034423828125, 0.0146026611328125, 0.031402587890625, -0.0704345703125, -0.020751953125, -0.07025146484375, 0.05255126953125, 0.032470703125, 0.054779052734375, -0.020599365234375, 0.0899658203125, -0.018402099609375, -0.00943756103515625, -0.01148223876953125, 0.0511474609375, 0.00447845458984375, 0.01397705078125, 0.01104736328125, -0.0158843994140625, -0.02191162109375, -0.00791168212890625, 0.0181732177734375, 0.07464599609375, 0.078125, 0.0286865234375, -0.039581298828125, 0.0035076141357421875, 0.05572509765625, -0.04461669921875, -0.0284423828125, 0.004459381103515625, -0.017608642578125, 0.039031982421875, -0.004261016845703125, 0.010284423828125, 0.02435302734375, 0.034393310546875, -0.005062103271484375, 0.0113372802734375, -0.004772186279296875, -0.0231475830078125, 0.0193939208984375, -0.00970458984375, 0.042694091796875, 0.00759124755859375, -0.09619140625, -0.032562255859375, -0.02703857421875, -0.006664276123046875, 0.049957275390625, 0.0521240234375, 0.0126190185546875, 0.007293701171875, 0.01514434814453125, -0.01297760009765625, -0.039794921875, 0.0032100677490234375, 0.03973388671875, -0.0011987686157226562, 0.0005502700805664062, 0.024566650390625, -0.0357666015625, -0.01580810546875, 0.01126861572265625, 0.0029888153076171875, 0.0202484130859375, -0.032470703125, 0.0679931640625, 0.0301055908203125, -0.058074951171875, 0.018096923828125, -0.052215576171875, -0.0582275390625, 0.041900634765625, -0.004871368408203125, -0.01316070556640625, 0.00928497314453125, -0.010009765625, -0.030487060546875, 0.07391357421875, -0.052886962890625, -0.0124969482421875, -0.0241851806640625, 0.03143310546875, -0.04766845703125, 0.0660400390625, -0.00415802001953125, 0.0004992485046386719, -0.01087188720703125, -0.0166778564453125, 0.042083740234375, 0.05499267578125, 0.025970458984375, 0.050933837890625, 0.0287322998046875, -0.00855255126953125, 0.0203704833984375, -0.040191650390625, 0.04180908203125, 0.03631591796875, 0.0109710693359375, -0.00460052490234375, 0.02490234375, -0.004329681396484375, -0.002407073974609375, 0.02587890625, 0.007099151611328125, 0.0113983154296875, -0.0185699462890625, 0.041748046875, 0.0188140869140625, 0.0318603515625, -0.021820068359375, 0.00870513916015625, 0.039642333984375, 0.0032176971435546875, -0.0158843994140625, -0.01513671875, -0.039276123046875, -0.0228424072265625, 0.000614166259765625, 0.012908935546875, -0.002902984619140625, -0.033477783203125, -0.07177734375, 0.00786590576171875, 0.0214385986328125, 0.0245819091796875, -0.04913330078125, 0.031707763671875, -0.00487518310546875, 0.00714874267578125, -0.0109405517578125, -0.0272979736328125, -0.00574493408203125, 0.0033054351806640625, -0.0189056396484375, -0.02020263671875, -0.052825927734375, 0.0239410400390625, -0.032470703125, -0.01314544677734375, 0.034271240234375, -0.0143890380859375, -0.0302276611328125, -0.059967041015625, -0.00739288330078125, -0.0201416015625, -0.005123138427734375, -0.0313720703125, 0.00357818603515625, 0.00469207763671875, -0.00331878662109375, -0.0439453125, 0.0021953582763671875, -0.055145263671875, 0.003032684326171875, 0.0295867919921875, -0.0076141357421875, 0.01151275634765625, -0.03192138671875, -0.06396484375, 0.059722900390625, -0.0028209686279296875, -0.036712646484375, -0.0123443603515625, -0.0166778564453125, -0.044647216796875, 0.0307159423828125, 0.006244659423828125, -0.04058837890625, 0.0194091796875, 0.04754638671875, -0.01340484619140625, 0.06005859375, -0.0251922607421875, -0.006439208984375, -0.043365478515625, 0.004100799560546875, -0.005359649658203125, 0.00945281982421875, -0.0032863616943359375, -0.0005216598510742188, 0.015777587890625, 0.030181884765625, -0.0224456787109375, -0.005748748779296875, -0.002193450927734375, -0.0198974609375, -0.011138916015625, -0.0003135204315185547, -0.039031982421875, -0.012908935546875, 0.1021728515625, 0.0267486572265625, 0.033721923828125, -0.01654052734375, 0.0197601318359375, 0.0181732177734375, -0.0297088623046875, -0.018280029296875, 0.016204833984375, -0.0401611328125, -0.04498291015625, -0.03192138671875, -0.022186279296875, -0.0253753662109375, 0.00614166259765625, -0.04254150390625, -0.006175994873046875, -0.01523590087890625, -0.004802703857421875, -0.037841796875, -0.0025634765625, 0.07891845703125, -0.06732177734375, -0.036865234375, 0.002658843994140625, 0.005802154541015625, 0.00897216796875, -0.06396484375, -0.04949951171875, -0.0198974609375, -0.01004791259765625, 0.0015840530395507812, -0.0209197998046875, 0.026763916015625, -0.0247955322265625, 0.006252288818359375, -0.03814697265625, 0.00777435302734375, 0.0224609375, 0.013092041015625, -0.01165008544921875, -0.01018524169921875, 0.0249786376953125, 0.027923583984375, -0.00980377197265625, 0.01363372802734375, 0.006103515625, 0.00815582275390625, 0.009674072265625, -0.0127716064453125, 0.0455322265625, -0.0214385986328125, -0.0012340545654296875, -0.00571441650390625, -0.0279388427734375, -0.03533935546875, 0.003910064697265625, 0.01386260986328125, -0.01229095458984375, 0.00664520263671875 ]
15def4339ebd53f0b54569448991f7f260e64874
Wordpress Stackexchange Q: Get page id by title? I'm using the following code to insert the content from another wp page into my main home page. Is it possible to make it work with a page title instead of an id number? Eg. Not $page_id = 518 but $page_id = 'about' instead???? $page_id = 518; //Your Page ID $page_data = get_page( $page_id ); // Displays the title echo '<h1>'. $page_data->post_title .'</h1>'; // Displays the content echo apply_filters('the_content', $page_data->post_content); ?> A: There is a function exactly for that: get_page_by_title( $page_title, $output = OBJECT, $post_type = 'page' ); You can use it like this: $page = get_page_by_title( 'Start' ); To get the page from a specific post type: $custom = get_page_by_title( 'Start', OBJECT, 'your_custom_post_type' ); $post = get_page_by_title( 'Start', OBJECT, 'post' ); Be aware, this function will search in all post statuses. So you might get a draft, a trashed or private post. You should check the result with: $status = get_post_status( $page ); if ( 'publish' !== $status ) return; // do not show unpublished posts A related function is get_page_by_path(): $page = get_page_by_path( 'about/contact' );
Q: Get page id by title? I'm using the following code to insert the content from another wp page into my main home page. Is it possible to make it work with a page title instead of an id number? Eg. Not $page_id = 518 but $page_id = 'about' instead???? $page_id = 518; //Your Page ID $page_data = get_page( $page_id ); // Displays the title echo '<h1>'. $page_data->post_title .'</h1>'; // Displays the content echo apply_filters('the_content', $page_data->post_content); ?> A: There is a function exactly for that: get_page_by_title( $page_title, $output = OBJECT, $post_type = 'page' ); You can use it like this: $page = get_page_by_title( 'Start' ); To get the page from a specific post type: $custom = get_page_by_title( 'Start', OBJECT, 'your_custom_post_type' ); $post = get_page_by_title( 'Start', OBJECT, 'post' ); Be aware, this function will search in all post statuses. So you might get a draft, a trashed or private post. You should check the result with: $status = get_post_status( $page ); if ( 'publish' !== $status ) return; // do not show unpublished posts A related function is get_page_by_path(): $page = get_page_by_path( 'about/contact' );
wordpress
{ "language": "en", "length": 183, "provenance": "stackexchange_00019.jsonl.gz:432824", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/100697" }
[ 0.0203704833984375, -0.003292083740234375, -0.01032257080078125, -0.00760650634765625, -0.00351715087890625, -0.037261962890625, 0.002147674560546875, -0.01690673828125, 0.00006598234176635742, -0.0231170654296875, -0.0406494140625, 0.0323486328125, -0.060333251953125, -0.0277557373046875, 0.04437255859375, -0.0281829833984375, 0.02972412109375, -0.0120086669921875, 0.03814697265625, -0.004428863525390625, -0.0097808837890625, -0.0052490234375, 0.051422119140625, -0.0049591064453125, 0.035308837890625, -0.0599365234375, 0.01541900634765625, 0.0011844635009765625, 0.0194549560546875, -0.006809234619140625, 0.01438140869140625, -0.00627899169921875, 0.0159149169921875, -0.0129241943359375, 0.02191162109375, 0.021331787109375, 0.00881195068359375, 0.008819580078125, 0.013397216796875, 0.031219482421875, 0.01312255859375, 0.0066986083984375, 0.038421630859375, 0.021087646484375, -0.00885009765625, -0.049652099609375, 0.0174560546875, -0.0262451171875, 0.001499176025390625, 0.036041259765625, 0.0310821533203125, 0.006366729736328125, 0.0150909423828125, 0.05084228515625, -0.01806640625, -0.021759033203125, 0.050933837890625, -0.04168701171875, 0.0341796875, -0.0521240234375, -0.053680419921875, -0.0028057098388671875, 0.043701171875, -0.01708984375, -0.005489349365234375, -0.002197265625, 0.024566650390625, 0.024322509765625, -0.0439453125, -0.0177764892578125, 0.0214691162109375, -0.01233673095703125, -0.0077056884765625, -0.023834228515625, -0.058441162109375, 0.004482269287109375, 0.01806640625, -0.047088623046875, -0.0123748779296875, -0.01003265380859375, -0.020263671875, -0.0198822021484375, -0.0703125, 0.01215362548828125, 0.002819061279296875, 0.05865478515625, -0.02606201171875, -0.018280029296875, -0.0182647705078125, 0.0096435546875, -0.019317626953125, -0.00341796875, 0.026702880859375, -0.008331298828125, -0.024017333984375, -0.0146484375, -0.014678955078125, 0.07110595703125, -0.0164031982421875, 0.049102783203125, -0.00921630859375, -0.0330810546875, 0.06439208984375, -0.08428955078125, 0.02783203125, 0.006000518798828125, -0.003849029541015625, 0.0008182525634765625, 0.031707763671875, 0.01555633544921875, -0.0304718017578125, 0.01540374755859375, 0.005367279052734375, 0.0245208740234375, -0.034942626953125, 0.030120849609375, -0.034912109375, -0.025360107421875, -0.03082275390625, 0.03460693359375, 0.015625, 0.032745361328125, -0.020782470703125, -0.0187225341796875, 0.00418853759765625, 0.00571441650390625, -0.011627197265625, -0.024383544921875, 0.0103912353515625, 0.0198974609375, -0.036224365234375, 0.01335906982421875, 0.08953857421875, 0.006816864013671875, -0.0013103485107421875, -0.0189208984375, -0.01177978515625, -0.0163726806640625, -0.017303466796875, 0.010894775390625, 0.004817962646484375, -0.00769805908203125, 0.0255584716796875, -0.027801513671875, -0.02001953125, 0.01245880126953125, 0.016510009765625, 0.0160064697265625, -0.0155029296875, -0.04248046875, 0.01107025146484375, -0.0155792236328125, 0.008758544921875, 0.0203399658203125, 0.0288238525390625, -0.02569580078125, -0.005084991455078125, -0.01056671142578125, 0.044403076171875, -0.00963592529296875, 0.079345703125, 0.00867462158203125, -0.01351165771484375, -0.007049560546875, -0.0285797119140625, -0.040283203125, -0.06536865234375, -0.01348114013671875, 0.01453399658203125, 0.054473876953125, 0.043243408203125, -0.009429931640625, -0.03955078125, -0.019134521484375, -0.0173187255859375, -0.0301055908203125, 0.036163330078125, -0.013946533203125, -0.0015325546264648438, 0.043975830078125, -0.02398681640625, -0.040252685546875, 0.006198883056640625, -0.038421630859375, -0.03887939453125, 0.06597900390625, 0.018341064453125, 0.0535888671875, -0.0350341796875, 0.003932952880859375, 0.03582763671875, 0.0662841796875, -0.0662841796875, -0.003498077392578125, -0.0113677978515625, -0.01105499267578125, 0.0287628173828125, 0.0031909942626953125, 0.00022017955780029297, 0.01288604736328125, 0.012237548828125, -0.0203857421875, 0.019989013671875, 0.0194854736328125, -0.056243896484375, -0.00791168212890625, -0.0282745361328125, 0.0223846435546875, 0.0179290771484375, 0.01425933837890625, 0.0206298828125, 0.0177764892578125, -0.02581787109375, -0.0310821533203125, -0.046722412109375, 0.00437164306640625, -0.0292205810546875, -0.051025390625, -0.0187530517578125, 0.018096923828125, -0.032806396484375, 0.024627685546875, -0.05682373046875, 0.01093292236328125, 0.0654296875, -0.0194091796875, -0.00131988525390625, -0.035369873046875, 0.051544189453125, 0.0020999908447265625, -0.035797119140625, 0.031646728515625, 0.039337158203125, 0.05889892578125, 0.007808685302734375, 0.00963592529296875, 0.0026416778564453125, -0.0838623046875, -0.004253387451171875, 0.05035400390625, 0.042449951171875, 0.0128936767578125, -0.005054473876953125, -0.031097412109375, 0.041259765625, -0.045562744140625, 0.0048980712890625, -0.02728271484375, 0.032867431640625, 0.0828857421875, -0.028411865234375, 0.0198822021484375, 0.01262664794921875, -0.0631103515625, -0.0137786865234375, 0.05615234375, -0.026397705078125, 0.016845703125, -0.01983642578125, 0.005329132080078125, -0.00917816162109375, -0.017578125, 0.00583648681640625, -0.016204833984375, 0.024383544921875, 0.0162200927734375, 0.0369873046875, 0.03790283203125, -0.014251708984375, -0.0158233642578125, -0.0023441314697265625, -0.00864410400390625, 0.00882720947265625, 0.0408935546875, 0.003803253173828125, -0.00258636474609375, -0.01097869873046875, -0.02099609375, 0.011474609375, 0.00933837890625, 0.0081024169921875, 0.04888916015625, 0.0032863616943359375, -0.0111083984375, 0.015167236328125, -0.034637451171875, -0.0221405029296875, 0.0025119781494140625, 0.027130126953125, -0.0011749267578125, -0.0009436607360839844, 0.04425048828125, -0.035919189453125, 0.08880615234375, -0.00998687744140625, -0.018829345703125, 0.0218048095703125, -0.052734375, 0.03387451171875, -0.0273895263671875, 0.04241943359375, 0.066650390625, -0.007843017578125, 0.01470184326171875, 0.007755279541015625, -0.00911712646484375, 0.0248870849609375, -0.020843505859375, -0.01194000244140625, -0.0016450881958007812, -0.03533935546875, 0.05841064453125, 0.01026153564453125, 0.0546875, -0.015380859375, -0.0413818359375, 0.01250457763671875, 0.00539398193359375, -0.08734130859375, -0.09307861328125, -0.00437164306640625, -0.05755615234375, -0.03509521484375, -0.01439666748046875, -0.05169677734375, 0.0220184326171875, 0.00836944580078125, -0.001007080078125, -0.006145477294921875, -0.017547607421875, -0.06878662109375, -0.0306243896484375, -0.0780029296875, 0.01641845703125, -0.01317596435546875, 0.031982421875, 0.0031681060791015625, 0.048583984375, 0.01209259033203125, -0.0301513671875, 0.01456451416015625, 0.08416748046875, -0.02703857421875, -0.016143798828125, -0.0408935546875, 0.0005850791931152344, -0.0112457275390625, 0.015899658203125, -0.006839752197265625, -0.0309295654296875, 0.028900146484375, -0.01049041748046875, -0.05596923828125, 0.00792694091796875, 0.0037784576416015625, 0.030548095703125, 0.05303955078125, 0.031890869140625, 0.04876708984375, -0.00913238525390625, -0.051910400390625, -0.0033512115478515625, -0.06756591796875, 0.005245208740234375, 0.03717041015625, 0.01715087890625, 0.004367828369140625, -0.0008449554443359375, 0.0056915283203125, 0.0298919677734375, 0.0098114013671875, -0.00901031494140625, 0.0242462158203125, -0.0177459716796875, -0.01480865478515625, -0.005321502685546875, 0.0225067138671875, 0.0184326171875, 0.03271484375, 0.0151214599609375, 0.043365478515625, 0.00196075439453125, 0.01947021484375, -0.038116455078125, -0.0655517578125, 0.01422882080078125, -0.07110595703125, 0.00711822509765625, -0.035247802734375, -0.01132965087890625, 0.0220489501953125, 0.09710693359375, -0.041961669921875, -0.01274871826171875, -0.01494598388671875, 0.01531219482421875, -0.026611328125, -0.055877685546875, -0.0275421142578125, -0.01233673095703125, -0.054443359375, 0.02740478515625, -0.01751708984375, -0.005054473876953125, -0.02972412109375, 0.0247650146484375, -0.01299285888671875, -0.03143310546875, 0.01512908935546875, 0.00519561767578125, -0.0021076202392578125, 0.07122802734375, -0.045654296875, 0.08538818359375, -0.03668212890625, -0.0204315185546875, -0.072998046875, -0.00909423828125, 0.02496337890625, -0.000023365020751953125, -0.024871826171875, -0.00856781005859375, -0.00026297569274902344, 0.036041259765625, 0.01435089111328125, 0.041839599609375, -0.01314544677734375, -0.00977325439453125, 0.01184844970703125, -0.01265716552734375, 0.0012683868408203125, -0.024505615234375, -0.0081787109375, -0.02459716796875, -0.03497314453125, -0.01904296875, -0.048309326171875, -0.01096343994140625, -0.00820159912109375, -0.027740478515625, -0.0560302734375, -0.0133514404296875, 0.006603240966796875, 0.0004210472106933594, -0.0035305023193359375, -0.00557708740234375, -0.01331329345703125, -0.059844970703125, 0.072021484375, 0.049346923828125, -0.0224609375, -0.0291748046875, 0.045684814453125, 0.01335906982421875, -0.06475830078125, -0.001129150390625, -0.019561767578125, 0.0284881591796875, -0.029388427734375, 0.055084228515625, 0.0159759521484375, -0.015869140625, 0.0732421875, 0.00311279296875, -0.031463623046875, 0.0260009765625, 0.022735595703125, -0.0170135498046875, -0.043212890625, 0.0116119384765625, -0.0419921875, 0.01261138916015625, 0.039215087890625, -0.044830322265625, -0.0031108856201171875, -0.025177001953125, 0.030303955078125, -0.0728759765625, 0.1077880859375, 0.005214691162109375, -0.01329803466796875, 0.0001575946807861328, 0.0172576904296875, 0.006984710693359375, 0.01227569580078125, -0.0007448196411132812, -0.00460052490234375, 0.0216522216796875, 0.01016998291015625, 0.037261962890625, 0.0262298583984375, 0.017791748046875, 0.0178985595703125, 0.038787841796875, -0.0118865966796875, -0.004405975341796875, -0.0017547607421875, 0.053009033203125, -0.00609588623046875, -0.0399169921875, -0.0134429931640625, 0.0007734298706054688, 0.00818634033203125, 0.0189208984375, -0.0045013427734375, 0.0110015869140625, 0.0287628173828125, -0.0153961181640625, -0.010284423828125, 0.0382080078125, 0.00334930419921875, -0.0222320556640625, 0.0146026611328125, 0.00827789306640625, -0.00543975830078125, 0.0170440673828125, 0.08795166015625, -0.025909423828125, 0.06488037109375, -0.0217132568359375, 0.038909912109375, 0.050811767578125, 0.01131439208984375, 0.003269195556640625, 0.011993408203125, -0.01018524169921875, 0.0115509033203125, 0.0162353515625, -0.01169586181640625, 0.006313323974609375, 0.037811279296875, 0.03326416015625, -0.003078460693359375, -0.01038360595703125, -0.00435638427734375, -0.0236358642578125, -0.0228118896484375, 0.047454833984375, 0.0236663818359375, -0.039306640625, -0.02294921875, 0.001956939697265625, 0.00800323486328125, 0.016815185546875, 0.01274871826171875, 0.0232086181640625, -0.004001617431640625, 0.0163116455078125, -0.0167694091796875, -0.0167999267578125, -0.02001953125, -0.01012420654296875, 0.037200927734375, -0.0211334228515625, -0.0156707763671875, -0.017730712890625, 0.03192138671875, -0.0274505615234375, -0.0022029876708984375, 0.049102783203125, -0.01995849609375, 0.0731201171875, -0.051483154296875, -0.00797271728515625, -0.0090179443359375, 0.0028533935546875, 0.0411376953125, 0.0200653076171875, -0.004589080810546875, 0.005054473876953125, -0.042388916015625, -0.00930023193359375, 0.007080078125, -0.055389404296875, -0.03375244140625, -0.0411376953125, 0.0000013709068298339844, 0.01522064208984375, -0.01342010498046875, -0.03131103515625, -0.03131103515625, 0.008544921875, 0.0214996337890625, 0.027618408203125, -0.00836181640625, 0.09930419921875, -0.00698089599609375, 0.07806396484375, 0.026611328125, 0.0440673828125, -0.041839599609375, -0.026153564453125, -0.00588226318359375, -0.026641845703125, 0.0204620361328125, -0.003337860107421875, 0.032073974609375, -0.00850677490234375, -0.0012187957763671875, 0.00597381591796875, 0.00039315223693847656, -0.0159454345703125, -0.00115203857421875, -0.02764892578125, 0.00666046142578125, -0.01502227783203125, -0.037872314453125, 0.01486968994140625, -0.032562255859375, -0.044219970703125, 0.01263427734375, 0.0345458984375, -0.017852783203125, -0.024871826171875, -0.02130126953125, 0.01477813720703125, -0.0333251953125, 0.047698974609375, 0.0999755859375, 0.02227783203125, 0.06390380859375, -0.01255035400390625, 0.01393890380859375, 0.052978515625, 0.0207977294921875, -0.01247406005859375, -0.031524658203125, 0.072998046875, 0.018768310546875, -0.00536346435546875, 0.05535888671875, -0.03253173828125, 0.008514404296875, 0.038299560546875, 0.062103271484375, -0.0298919677734375, -0.008026123046875, 0.0129852294921875, -0.052001953125, 0.01386260986328125, -0.0107269287109375, -0.001495361328125, -0.031982421875, 0.04461669921875, 0.0027942657470703125, -0.01471710205078125, 0.004329681396484375, -0.023956298828125, -0.0161285400390625, -0.038665771484375, 0.0247039794921875, 0.0037021636962890625, 0.00563812255859375, 0.0018930435180664062, -0.0081024169921875, 0.0209808349609375, -0.057586669921875, 0.01611328125, 0.0205535888671875, 0.0014095306396484375, -0.058746337890625, 0.053863525390625, 0.020355224609375, 0.013916015625, 0.0098724365234375, 0.0218658447265625, 0.01395416259765625, 0.0261688232421875, 0.007633209228515625, -0.022186279296875, 0.02008056640625, -0.03570556640625, -0.0009741783142089844, 0.01085662841796875, 0.01885986328125, -0.00426483154296875, -0.0064544677734375, -0.003391265869140625, -0.041748046875, -0.003986358642578125, -0.01483917236328125, -0.0266876220703125, 0.0914306640625, -0.045928955078125, -0.01540374755859375, 0.0111846923828125, 0.0185546875, 0.00661468505859375, -0.0008492469787597656, 0.022125244140625, -0.038116455078125, 0.00656890869140625, 0.0198211669921875, 0.004947662353515625, -0.03985595703125, -0.00637054443359375, -0.074462890625, 0.10546875, 0.003887176513671875, 0.043792724609375, -0.0016107559204101562, 0.0266265869140625, -0.042083740234375, -0.00814056396484375, -0.0560302734375, 0.0738525390625, -0.005718231201171875, 0.0394287109375, -0.0501708984375, -0.0068817138671875, 0.00630950927734375, 0.0157928466796875, 0.05523681640625, 0.0172119140625, -0.038726806640625, -0.0298004150390625, 0.01084136962890625, 0.029296875, 0.000026702880859375, 0.03118896484375, 0.0251617431640625, 0.046905517578125, 0.057525634765625, -0.0704345703125, 0.0162353515625, -0.037384033203125, 0.0184326171875, 0.032012939453125, 0.032562255859375, 0.028350830078125, 0.012359619140625, -0.00858306884765625, -0.05133056640625, 0.0213165283203125, 0.03173828125, 0.00388336181640625, 0.026336669921875, 0.01532745361328125, 0.04095458984375, -0.05267333984375, -0.0239105224609375, -0.0145721435546875, 0.0438232421875, 0.0285186767578125, 0.0255126953125, 0.024688720703125, 0.0269012451171875, 0.06781005859375, 0.00042939186096191406, 0.001850128173828125, 0.01026153564453125, 0.0171356201171875, 0.05010986328125, 0.03240966796875, 0.01007843017578125, -0.03802490234375, 0.014129638671875, 0.050994873046875, 0.07562255859375, -0.059417724609375, 0.0038051605224609375, 0.0244598388671875, -0.0017290115356445312, -0.017120361328125, -0.0264739990234375, -0.0022907257080078125, 0.00693511962890625, 0.0305938720703125, -0.03302001953125, -0.003688812255859375, 0.0338134765625, 0.01082611083984375, -0.01445770263671875, -0.044891357421875, -0.00632476806640625, 0.00792694091796875, -0.055511474609375, 0.0141754150390625, 0.01184844970703125, 0.032806396484375, 0.0213165283203125, 0.039306640625, 0.022430419921875, -0.009033203125, 0.00464630126953125, 0.013458251953125, 0.01349639892578125, -0.00650787353515625, -0.0233612060546875, -0.027587890625, 0.01201629638671875, 0.0286712646484375, 0.0396728515625, 0.0306854248046875, 0.04443359375, 0.0033321380615234375, -0.012359619140625, 0.008209228515625, 0.00666046142578125, -0.0294342041015625, 0.00684356689453125, -0.0310211181640625, -0.0008702278137207031, -0.01093292236328125, -0.019256591796875, 0.011077880859375, -0.0028362274169921875, 0.0189971923828125, -0.00466156005859375, 0.0386962890625, -0.0006189346313476562, -0.0261688232421875, 0.030975341796875, -0.00612640380859375, 0.061676025390625, 0.01175689697265625, -0.1322021484375, -0.015625, -0.026580810546875, -0.0207977294921875, 0.01080322265625, 0.02264404296875, -0.00685882568359375, 0.006725311279296875, 0.00949859619140625, 0.0242767333984375, 0.0222625732421875, -0.0309906005859375, 0.002899169921875, 0.040283203125, 0.0323486328125, 0.035858154296875, -0.0029144287109375, -0.0034923553466796875, 0.0135498046875, 0.0303192138671875, 0.00691986083984375, 0.02947998046875, -0.01047515869140625, 0.0206451416015625, -0.03253173828125, 0.041229248046875, -0.07623291015625, -0.050048828125, 0.045318603515625, -0.01422882080078125, 0.01091766357421875, 0.0014162063598632812, -0.023529052734375, 0.037445068359375, -0.0011968612670898438, -0.0048980712890625, 0.01166534423828125, -0.045623779296875, 0.0250244140625, 0.0179595947265625, -0.0089263916015625, -0.02032470703125, 0.045196533203125, 0.0085601806640625, -0.0335693359375, 0.05828857421875, 0.021148681640625, 0.0128326416015625, 0.057281494140625, -0.008514404296875, -0.02081298828125, 0.03656005859375, -0.0653076171875, 0.056060791015625, 0.0223846435546875, -0.0234832763671875, -0.0276947021484375, 0.00557708740234375, -0.00353240966796875, 0.002674102783203125, 0.0231781005859375, 0.0264434814453125, 0.001476287841796875, 0.0256805419921875, -0.0031375885009765625, -0.040191650390625, 0.01094818115234375, -0.01482391357421875, 0.0038013458251953125, -0.01428985595703125, 0.0263824462890625, -0.007312774658203125, -0.0733642578125, -0.0088958740234375, -0.021484375, 0.0015668869018554688, 0.0286102294921875, 0.00385284423828125, -0.0033702850341796875, 0.00698089599609375, -0.018402099609375, -0.00144195556640625, -0.0015859603881835938, -0.01097869873046875, 0.0092315673828125, -0.005023956298828125, -0.01568603515625, -0.01001739501953125, 0.03375244140625, -0.019134521484375, -0.0016756057739257812, -0.0308685302734375, 0.03546142578125, -0.025421142578125, -0.007640838623046875, 0.0125885009765625, 0.00469970703125, 0.0399169921875, -0.02166748046875, -0.03997802734375, -0.00460052490234375, 0.0174102783203125, 0.0303955078125, -0.01285552978515625, -0.030181884765625, 0.01058197021484375, -0.01323699951171875, 0.0178375244140625, -0.049407958984375, -0.0005855560302734375, -0.050445556640625, -0.03399658203125, 0.0231475830078125, -0.031402587890625, 0.0034389495849609375, -0.02117919921875, -0.005580902099609375, 0.037933349609375, 0.0183868408203125, -0.0290679931640625, -0.01239013671875, -0.0013494491577148438, 0.007389068603515625, -0.020721435546875, 0.0017681121826171875, -0.0433349609375, -0.01485443115234375, 0.005718231201171875, 0.01363372802734375, 0.06298828125, 0.0036258697509765625, 0.007904052734375, -0.0631103515625, 0.0002791881561279297, -0.0211639404296875, 0.022186279296875, 0.0303192138671875, -0.0288543701171875, 0.037017822265625, 0.0169525146484375, -0.05224609375, -0.0250396728515625, -0.0008296966552734375, 0.01078033447265625, -0.00421905517578125, -0.01194000244140625, -0.03802490234375, -0.0057525634765625, 0.059844970703125, 0.055938720703125, 0.027008056640625, -0.024566650390625, 0.035064697265625, -0.026702880859375, -0.046783447265625, 0.004398345947265625, 0.02001953125, -0.050384521484375, -0.0082244873046875, 0.029449462890625, -0.0244293212890625, -0.0175933837890625, -0.00848388671875, -0.039398193359375, -0.006893157958984375, -0.01473236083984375, -0.0009441375732421875, -0.0028934478759765625, -0.0237884521484375, 0.040008544921875, -0.034393310546875, -0.017333984375, 0.009979248046875, 0.0267791748046875, -0.00879669189453125, -0.007183074951171875, -0.0031261444091796875, 0.037628173828125, -0.0312347412109375, -0.02978515625, 0.022857666015625, 0.021270751953125, -0.0036563873291015625, -0.0113372802734375, -0.0025157928466796875, 0.015045166015625, 0.0008258819580078125, 0.00044035911560058594, -0.017791748046875, 0.00695037841796875, -0.0152130126953125, 0.055267333984375, -0.002117156982421875, 0.040863037109375, 0.0119781494140625, 0.04022216796875, 0.0253143310546875, -0.031982421875, 0.0499267578125, -0.046295166015625, -0.01441192626953125, -0.034088134765625, -0.01552581787109375, -0.0811767578125, 0.044281005859375, -0.016326904296875, -0.00858306884765625, 0.035400390625 ]
eafba75bf7c67c62ae03d86674e771bff942c9bd
Wordpress Stackexchange Q: Add a script as a dependency to a registered script wp_register_script() (see codex) allows you to specify dependencies: scripts that must be loaded before the one being registered is loaded (if it is loaded). But suppose the script is a third-party one (WordPress or another plug-in) so that you are not the one calling wp_register_script(). How can you inject a script as a dependency for a pre-registered script? Remarks: In my particular use-case the dependency is not strict - the registered script does not require this second script, but the latter alters the original script. A similar question could be asked for styles, but I suspect the answers would be nearly identical. A: There is no designated way to change details of registered script/style dependency after the registration. Your options are: * *deregister it and register again with desired data *modify data in corresponding global variable *handle timing in other ways, such as manual output and hook priorities
Q: Add a script as a dependency to a registered script wp_register_script() (see codex) allows you to specify dependencies: scripts that must be loaded before the one being registered is loaded (if it is loaded). But suppose the script is a third-party one (WordPress or another plug-in) so that you are not the one calling wp_register_script(). How can you inject a script as a dependency for a pre-registered script? Remarks: In my particular use-case the dependency is not strict - the registered script does not require this second script, but the latter alters the original script. A similar question could be asked for styles, but I suspect the answers would be nearly identical. A: There is no designated way to change details of registered script/style dependency after the registration. Your options are: * *deregister it and register again with desired data *modify data in corresponding global variable *handle timing in other ways, such as manual output and hook priorities A: Digging through https://github.com/WordPress/WordPress/blob/3.5.1/wp-includes/class.wp-dependencies.php all registered scripts are stored in the global $wp_scripts. You can access them directly through that, but I prefer to use the API when it exists. In this case, $wp_scripts->query() returns a particular registered script (a _WP_Dependency object - see source). A _WP_Dependency object stores the dependencies as an array of handles, which you can access directly, and insert a dependency. The following function does that: /** * Add $dep (script handle) to the array of dependencies for $handle * @see http://wordpress.stackexchange.com/questions/100709/add-a-script-as-a-dependency-to-a-registered-script * @param string $handle Script handle for which you want to add a dependency * @param string $dep Script handle - the dependency you wish to add */ function wpse100709_append_dependency( $handle, $dep ){ global $wp_scripts; $script = $wp_scripts->query( $handle, 'registered' ); if( !$script ) return false; if( !in_array( $dep, $script->deps ) ){ $script->deps[] = $dep; } return true; } Obviously you must add this somewhere between the original script ($handle) being registered and it being enqueued. Example usage Suppose script_a has been registered on the init hook with priority 10, and you want to add script_b as a dependency: add_action( 'init', 'wpse100709_register_script_b', 11 ); function wpse100709_register_script_b(){ //Register script b wp_register_script( 'script_b', ... ); //Now add script b as being a pre-requisite for script a wpse100709_append_dependency( 'script_a', 'script_b' ) //If script a is enqueued, script b is enqueued before it. }
wordpress
{ "language": "en", "length": 385, "provenance": "stackexchange_00019.jsonl.gz:432827", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/100709" }
[ 0.043853759765625, 0.005146026611328125, -0.0278167724609375, -0.06488037109375, 0.01611328125, -0.032745361328125, 0.01251220703125, 0.0135345458984375, -0.0203094482421875, -0.01001739501953125, -0.036346435546875, 0.028045654296875, -0.0645751953125, -0.006656646728515625, 0.0008320808410644531, -0.07257080078125, 0.0609130859375, -0.0287017822265625, 0.031494140625, 0.00348663330078125, 0.007160186767578125, 0.037384033203125, 0.044281005859375, 0.0899658203125, 0.040771484375, -0.04083251953125, 0.07208251953125, -0.007511138916015625, 0.046783447265625, 0.0034332275390625, 0.038421630859375, -0.054534912109375, -0.013153076171875, 0.0457763671875, -0.0017271041870117188, 0.00884246826171875, 0.0126190185546875, 0.025909423828125, 0.03619384765625, 0.01462554931640625, -0.00013434886932373047, 0.011016845703125, 0.037384033203125, -0.033843994140625, 0.0032901763916015625, -0.04736328125, 0.0244903564453125, -0.028594970703125, 0.004222869873046875, -0.0163726806640625, -0.00469207763671875, 0.03533935546875, 0.020416259765625, -0.01276397705078125, 0.0021991729736328125, 0.0026302337646484375, -0.08160400390625, 0.0616455078125, 0.00974273681640625, 0.09417724609375, 0.0179595947265625, 0.037994384765625, -0.0291290283203125, -0.06585693359375, 0.0062255859375, -0.01522064208984375, -0.039031982421875, 0.010711669921875, -0.0150299072265625, 0.0276336669921875, 0.038177490234375, -0.023345947265625, -0.01218414306640625, -0.024139404296875, 0.01407623291015625, 0.01422119140625, 0.0034770965576171875, 0.016510009765625, 0.007904052734375, 0.02862548828125, 0.01172637939453125, -0.0218505859375, 0.026092529296875, 0.0033588409423828125, -0.02880859375, -0.009979248046875, -0.01351165771484375, 0.00785064697265625, -0.0238037109375, -0.0060272216796875, -0.0221405029296875, -0.01593017578125, -0.01337432861328125, 0.0030994415283203125, -0.0002980232238769531, -0.0226287841796875, 0.040740966796875, 0.032379150390625, 0.01367950439453125, 0.01081085205078125, 0.029052734375, -0.061859130859375, 0.0430908203125, -0.0214691162109375, 0.0081024169921875, 0.07037353515625, -0.01555633544921875, -0.0266876220703125, 0.007781982421875, 0.0166473388671875, 0.024810791015625, -0.01763916015625, 0.06329345703125, 0.031982421875, -0.055145263671875, -0.047882080078125, 0.02227783203125, -0.0024204254150390625, -0.0022830963134765625, 0.0035915374755859375, 0.02545166015625, 0.033203125, 0.034149169921875, -0.068115234375, -0.003719329833984375, -0.0372314453125, -0.042144775390625, -0.035186767578125, -0.01161956787109375, -0.025634765625, -0.007232666015625, 0.03631591796875, 0.053009033203125, 0.009246826171875, -0.0254669189453125, -0.005657196044921875, 0.05535888671875, 0.004749298095703125, 0.001678466796875, 0.0153656005859375, 0.00807952880859375, -0.046356201171875, -0.032379150390625, 0.00794219970703125, 0.0228271484375, 0.021697998046875, 0.017364501953125, 0.005580902099609375, -0.005176544189453125, -0.034942626953125, 0.037994384765625, -0.0204010009765625, 0.0166778564453125, 0.0191802978515625, 0.005275726318359375, -0.006134033203125, 0.018951416015625, -0.021240234375, 0.004192352294921875, -0.0222320556640625, -0.016998291015625, -0.009124755859375, 0.006610870361328125, -0.058837890625, -0.05194091796875, -0.0150146484375, -0.001190185546875, 0.00153350830078125, 0.0254058837890625, 0.02978515625, 0.0030040740966796875, -0.041717529296875, -0.002254486083984375, -0.017791748046875, -0.03143310546875, 0.025787353515625, 0.01934814453125, 0.05938720703125, -0.002819061279296875, 0.0106048583984375, -0.007354736328125, -0.056121826171875, 0.057952880859375, -0.044921875, -0.0305938720703125, -0.00957489013671875, 0.01421356201171875, 0.03033447265625, 0.0132293701171875, 0.025848388671875, 0.03076171875, 0.0067901611328125, -0.01078033447265625, -0.0279541015625, -0.03277587890625, -0.00734710693359375, 0.057342529296875, 0.0306243896484375, 0.005779266357421875, -0.004169464111328125, 0.025909423828125, 0.0015153884887695312, -0.00484466552734375, -0.014617919921875, -0.07647705078125, 0.01346588134765625, -0.0305328369140625, 0.03692626953125, -0.02947998046875, 0.0030193328857421875, 0.0099639892578125, 0.003566741943359375, -0.01171875, -0.0175323486328125, -0.006008148193359375, 0.0428466796875, -0.00595855712890625, 0.08685302734375, 0.0273895263671875, 0.036529541015625, 0.0248565673828125, -0.032073974609375, 0.045928955078125, -0.027801513671875, -0.011383056640625, -0.007389068603515625, -0.04315185546875, -0.01448822021484375, -0.0239105224609375, 0.0035724639892578125, 0.0006084442138671875, 0.0654296875, -0.018585205078125, 0.02398681640625, -0.004848480224609375, -0.01131439208984375, -0.004001617431640625, -0.051239013671875, 0.0165557861328125, 0.026214599609375, 0.041015625, 0.031951904296875, 0.0231170654296875, 0.031890869140625, 0.0203704833984375, -0.07012939453125, 0.00396728515625, 0.00550079345703125, -0.04437255859375, -0.01493072509765625, 0.040679931640625, 0.02349853515625, 0.01544189453125, 0.00560760498046875, -0.0110321044921875, 0.04052734375, 0.00960540771484375, -0.006557464599609375, -0.0231781005859375, 0.0264129638671875, 0.0127716064453125, 0.0007371902465820312, -0.0240631103515625, 0.01526641845703125, -0.0235748291015625, 0.0003139972686767578, -0.002330780029296875, 0.0036716461181640625, 0.0025177001953125, -0.0189056396484375, 0.0284881591796875, -0.014495849609375, -0.0226898193359375, -0.054229736328125, 0.0137939453125, -0.0204315185546875, -0.0290374755859375, 0.040771484375, -0.02685546875, -0.031341552734375, -0.02142333984375, 0.00339508056640625, -0.0020904541015625, -0.006011962890625, -0.01392364501953125, -0.037933349609375, 0.038818359375, 0.01111602783203125, -0.01088714599609375, -0.007640838623046875, 0.0194244384765625, 0.0126800537109375, 0.0017242431640625, -0.0225372314453125, 0.02081298828125, -0.026397705078125, 0.03704833984375, -0.032928466796875, 0.02545166015625, -0.0235443115234375, 0.023193359375, 0.051605224609375, 0.00039696693420410156, 0.0010318756103515625, 0.007114410400390625, 0.03546142578125, 0.0304107666015625, -0.01282501220703125, 0.00614166259765625, -0.005542755126953125, -0.0245361328125, 0.00998687744140625, 0.022613525390625, 0.05328369140625, -0.011138916015625, -0.03326416015625, -0.02130126953125, 0.032257080078125, -0.07147216796875, -0.07275390625, -0.00829315185546875, -0.03515625, 0.01153564453125, 0.0009584426879882812, -0.0154266357421875, -0.015106201171875, 0.0235137939453125, 0.008453369140625, -0.002483367919921875, -0.0178680419921875, -0.03216552734375, -0.036346435546875, -0.056396484375, 0.00348663330078125, 0.010589599609375, 0.00910186767578125, 0.0158233642578125, 0.06396484375, 0.0111541748046875, -0.03167724609375, 0.024993896484375, -0.0101470947265625, -0.019134521484375, 0.0075836181640625, 0.0205230712890625, -0.0745849609375, -0.04364013671875, -0.0025787353515625, 0.001129150390625, -0.01155853271484375, 0.01727294921875, 0.01702880859375, 0.01026153564453125, -0.0261688232421875, 0.03369140625, 0.03106689453125, -0.045806884765625, -0.0254974365234375, 0.0228271484375, -0.06829833984375, -0.00553131103515625, 0.0166473388671875, -0.00817108154296875, -0.03594970703125, -0.0340576171875, -0.016082763671875, 0.0089111328125, 0.013275146484375, 0.0120697021484375, 0.009735107421875, 0.0070343017578125, -0.0185546875, 0.042236328125, 0.002262115478515625, -0.0020885467529296875, -0.0291290283203125, 0.0233917236328125, -0.001056671142578125, -0.02313232421875, -0.0109710693359375, 0.0292816162109375, -0.0236358642578125, 0.037506103515625, -0.0679931640625, -0.03399658203125, 0.03131103515625, 0.0180816650390625, 0.020477294921875, -0.01177978515625, -0.0189666748046875, 0.015380859375, 0.07269287109375, -0.024688720703125, -0.011260986328125, 0.013885498046875, -0.0004711151123046875, -0.043975830078125, -0.006099700927734375, -0.0438232421875, 0.001705169677734375, -0.031036376953125, 0.0095062255859375, -0.037811279296875, 0.007610321044921875, -0.020721435546875, -0.0125732421875, 0.0035457611083984375, -0.050384521484375, 0.049835205078125, -0.07476806640625, -0.021148681640625, 0.03387451171875, -0.025787353515625, -0.0133819580078125, -0.049346923828125, -0.008209228515625, -0.05950927734375, 0.004894256591796875, -0.0843505859375, 0.06353759765625, 0.052978515625, -0.0246734619140625, -0.003528594970703125, 0.011383056640625, 0.04034423828125, 0.02667236328125, 0.04840087890625, -0.01366424560546875, 0.025848388671875, -0.02313232421875, 0.03619384765625, -0.040008544921875, 0.00821685791015625, -0.032562255859375, -0.08428955078125, 0.005191802978515625, 0.00876617431640625, 0.0745849609375, 0.029937744140625, -0.023101806640625, -0.0106353759765625, 0.0195465087890625, 0.0207977294921875, 0.0010042190551757812, 0.00742340087890625, -0.0208587646484375, 0.0256195068359375, -0.0002872943878173828, -0.01132965087890625, -0.0230865478515625, 0.0011644363403320312, 0.006435394287109375, 0.046905517578125, 0.0361328125, -0.005767822265625, 0.0428466796875, -0.0161895751953125, 0.01033782958984375, -0.017425537109375, 0.022613525390625, 0.01074981689453125, 0.0252532958984375, -0.0386962890625, -0.019134521484375, 0.01666259765625, 0.01265716552734375, 0.0302581787109375, 0.05047607421875, 0.0435791015625, -0.035888671875, 0.043426513671875, -0.03369140625, -0.0139312744140625, -0.010772705078125, -0.0191802978515625, 0.03497314453125, 0.02569580078125, -0.0303497314453125, 0.0552978515625, -0.0167999267578125, -0.0171966552734375, 0.0038967132568359375, -0.02215576171875, 0.0238037109375, -0.0109100341796875, 0.025787353515625, -0.0239410400390625, 0.0299835205078125, -0.0034923553466796875, 0.00498199462890625, -0.010986328125, 0.0003523826599121094, 0.034332275390625, -0.0013036727905273438, 0.0118865966796875, -0.0003361701965332031, -0.0027828216552734375, 0.047027587890625, 0.0188751220703125, -0.025482177734375, -0.0243072509765625, -0.01422119140625, 0.0364990234375, -0.00650787353515625, 0.044281005859375, 0.042633056640625, 0.004184722900390625, 0.00518798828125, -0.031341552734375, -0.0101318359375, 0.012451171875, -0.038604736328125, -0.00930023193359375, -0.0031948089599609375, -0.0222625732421875, -0.01629638671875, 0.0268096923828125, 0.0027523040771484375, -0.007564544677734375, -0.0073394775390625, 0.03594970703125, 0.0308837890625, 0.01534271240234375, 0.005527496337890625, 0.006465911865234375, -0.01326751708984375, 0.0199432373046875, 0.01024627685546875, -0.0014276504516601562, 0.051483154296875, -0.01419830322265625, -0.0019254684448242188, -0.046600341796875, -0.0560302734375, 0.068603515625, -0.05255126953125, -0.0226287841796875, 0.028717041015625, 0.0076904296875, -0.01593017578125, -0.029937744140625, -0.032562255859375, 0.0273590087890625, 0.01139068603515625, 0.01236724853515625, -0.0188751220703125, -0.0189666748046875, -0.025360107421875, 0.00611114501953125, -0.036285400390625, -0.025726318359375, -0.01128387451171875, -0.002971649169921875, -0.01111602783203125, -0.0233917236328125, -0.04052734375, -0.045867919921875, -0.005588531494140625, -0.002384185791015625, 0.055572509765625, -0.007480621337890625, -0.007762908935546875, -0.039154052734375, 0.017974853515625, -0.08172607421875, 0.01189422607421875, 0.0428466796875, 0.0142669677734375, 0.025299072265625, -0.0389404296875, -0.04046630859375, -0.038787841796875, -0.0291290283203125, -0.052581787109375, -0.011199951171875, -0.0004677772521972656, -0.0159454345703125, 0.01140594482421875, -0.0183563232421875, -0.00844573974609375, 0.0008287429809570312, 0.037109375, -0.006153106689453125, 0.046234130859375, -0.03326416015625, 0.0858154296875, 0.0162506103515625, 0.0280303955078125, 0.017852783203125, 0.04779052734375, -0.007457733154296875, -0.007038116455078125, -0.0208282470703125, -0.06146240234375, -0.0079193115234375, 0.0160369873046875, -0.01861572265625, 0.06134033203125, 0.0469970703125, 0.005367279052734375, 0.0163116455078125, 0.00634765625, 0.016815185546875, -0.002826690673828125, 0.00397491455078125, 0.01104736328125, 0.001125335693359375, 0.048828125, -0.003326416015625, 0.01473236083984375, -0.01535797119140625, 0.0303802490234375, -0.01244354248046875, -0.0231475830078125, -0.0071258544921875, -0.00247955322265625, -0.054595947265625, -0.006893157958984375, -0.037506103515625, 0.00827789306640625, 0.007274627685546875, -0.0355224609375, 0.02203369140625, -0.0175018310546875, 0.02325439453125, -0.01104736328125, -0.01953125, -0.00543212890625, -0.021820068359375, -0.0004773139953613281, -0.03753662109375, -0.01194000244140625, 0.01397705078125, 0.023040771484375, 0.052093505859375, -0.032501220703125, 0.0170745849609375, 0.01116943359375, -0.0206451416015625, -0.0003399848937988281, -0.011810302734375, -0.0199432373046875, -0.02740478515625, 0.043060302734375, 0.0152435302734375, -0.0003142356872558594, 0.03326416015625, 0.0242462158203125, -0.0074005126953125, -0.03192138671875, -0.01410675048828125, 0.01416015625, 0.031890869140625, 0.010284423828125, -0.0196990966796875, 0.043121337890625, -0.038665771484375, 0.03521728515625, 0.00458526611328125, -0.0019588470458984375, -0.0211029052734375, 0.032196044921875, -0.0015392303466796875, -0.006977081298828125, -0.0012750625610351562, 0.01181793212890625, 0.03167724609375, 0.03326416015625, 0.0059051513671875, -0.0037975311279296875, -0.0012884140014648438, 0.030059814453125, 0.013671875, -0.0294036865234375, 0.020599365234375, 0.00791168212890625, -0.042724609375, 0.00807952880859375, -0.0174407958984375, -0.033294677734375, -0.0021228790283203125, -0.048736572265625, 0.0164947509765625, -0.0247955322265625, -0.0079193115234375, -0.0041351318359375, -0.0156707763671875, 0.01043701171875, -0.036285400390625, 0.0265655517578125, -0.07855224609375, -0.075439453125, 0.0013456344604492188, -0.0755615234375, -0.01178741455078125, -0.04949951171875, 0.0098419189453125, 0.1251220703125, -0.0284423828125, -0.0250244140625, 0.04241943359375, 0.065185546875, -0.032135009765625, 0.06097412109375, -0.0251007080078125, 0.0655517578125, 0.0031909942626953125, 0.0318603515625, -0.0020389556884765625, 0.003376007080078125, 0.01995849609375, 0.00797271728515625, -0.007732391357421875, -0.0034942626953125, -0.0018253326416015625, -0.005123138427734375, 0.0291900634765625, 0.05731201171875, 0.035186767578125, -0.00418853759765625, -0.01554107666015625, 0.0248870849609375, -0.0047454833984375, -0.007205963134765625, 0.033294677734375, -0.02581787109375, -0.055206298828125, 0.00457000732421875, 0.0053558349609375, -0.00469970703125, 0.00038743019104003906, 0.01088714599609375, -0.006988525390625, -0.0009007453918457031, 0.003871917724609375, 0.0245513916015625, -0.0073089599609375, 0.0252685546875, -0.053375244140625, 0.06402587890625, 0.00409698486328125, -0.00896453857421875, 0.003368377685546875, -0.031402587890625, -0.0147247314453125, 0.0009322166442871094, 0.007602691650390625, -0.0027256011962890625, -0.004268646240234375, -0.0160369873046875, 0.04449462890625, -0.01434326171875, -0.00551605224609375, 0.022430419921875, 0.037750244140625, 0.019561767578125, 0.01430511474609375, -0.00033736228942871094, -0.01104736328125, -0.01459503173828125, -0.0110321044921875, 0.0291748046875, 0.0231781005859375, -0.0011548995971679688, -0.01158905029296875, 0.01009368896484375, -0.07525634765625, -0.01617431640625, 0.004680633544921875, -0.040863037109375, 0.00494384765625, 0.0193023681640625, 0.005748748779296875, 0.0067291259765625, 0.0158233642578125, -0.041290283203125, -0.03631591796875, 0.0193328857421875, -0.00928497314453125, 0.05633544921875, -0.0014390945434570312, 0.08184814453125, -0.04888916015625, -0.0310516357421875, 0.0019664764404296875, 0.0208587646484375, 0.043304443359375, -0.0284271240234375, -0.017181396484375, -0.033203125, 0.03363037109375, 0.01654052734375, 0.0022640228271484375, 0.034820556640625, 0.03900146484375, 0.039215087890625, -0.039459228515625, -0.0196075439453125, 0.063720703125, -0.015167236328125, 0.031646728515625, -0.0209503173828125, 0.04437255859375, 0.0091705322265625, 0.007701873779296875, -0.0322265625, 0.066650390625, 0.0148468017578125, -0.01497650146484375, 0.011138916015625, 0.004993438720703125, -0.0244598388671875, 0.03985595703125, 0.00147247314453125, 0.08526611328125, 0.011962890625, -0.00909423828125, -0.00791168212890625, -0.04046630859375, -0.01201629638671875, 0.030609130859375, 0.04644775390625, -0.00606536865234375, 0.0273284912109375, 0.08148193359375, -0.034332275390625, 0.0100250244140625, 0.0274200439453125, 0.01381683349609375, -0.0243682861328125, 0.019134521484375, 0.0127410888671875, -0.00262451171875, -0.00853729248046875, 0.016387939453125, 0.0211944580078125, 0.01910400390625, 0.037109375, -0.009857177734375, 0.005062103271484375, 0.00893402099609375, -0.022064208984375, 0.0239715576171875, 0.0018815994262695312, -0.032562255859375, -0.0016269683837890625, 0.0198516845703125, -0.01023101806640625, -0.046630859375, 0.041412353515625, -0.006381988525390625, 0.0181427001953125, 0.028289794921875, -0.0205230712890625, 0.01165771484375, 0.0228729248046875, -0.0003917217254638672, -0.0280303955078125, -0.05987548828125, -0.0439453125, 0.01152801513671875, -0.000789642333984375, 0.0197296142578125, -0.018890380859375, 0.00760650634765625, 0.0002111196517944336, -0.0247802734375, -0.00455474853515625, 0.00592041015625, -0.036590576171875, -0.00707244873046875, 0.026092529296875, -0.037353515625, 0.0279083251953125, -0.0010766983032226562, 0.0145263671875, 0.01514434814453125, 0.0831298828125, 0.01097869873046875, 0.01605224609375, -0.033416748046875, 0.0716552734375, 0.072021484375, 0.019927978515625, 0.05926513671875, -0.01013946533203125, -0.035400390625, 0.027587890625, -0.0386962890625, -0.0153045654296875, -0.004375457763671875, -0.035552978515625, 0.007175445556640625, -0.0067596435546875, -0.04400634765625, -0.023834228515625, 0.037322998046875, 0.061981201171875, 0.0080108642578125, -0.08514404296875, 0.0257415771484375, -0.038238525390625, 0.09075927734375, -0.004238128662109375, -0.0012874603271484375, -0.03070068359375, -0.0074920654296875, -0.013336181640625, -0.05517578125, -0.041595458984375, 0.059722900390625, -0.0270538330078125, 0.049407958984375, 0.07867431640625, -0.031280517578125, 0.014434814453125, 0.0821533203125, 0.0290985107421875, 0.1220703125, -0.07818603515625, -0.018798828125, 0.00370025634765625, 0.025909423828125, 0.01203155517578125, -0.0523681640625, -0.00838470458984375, -0.020751953125, 0.0128021240234375, -0.07177734375, 0.03277587890625, 0.0267486572265625, -0.042999267578125, -0.061614990234375, 0.060577392578125, -0.037139892578125, -0.0175018310546875, -0.09521484375, 0.00780487060546875, 0.0233612060546875, -0.03021240234375, -0.051025390625, -0.006103515625, -0.042724609375, 0.05413818359375, 0.01373291015625, 0.0111083984375, 0.033233642578125, -0.0145721435546875, -0.0098724365234375, 0.00937652587890625, 0.01261138916015625, 0.002155303955078125, 0.006412506103515625, 0.01154327392578125, 0.030670166015625, 0.062744140625, -0.03179931640625, 0.0517578125, -0.01959228515625, -0.027679443359375, -0.020843505859375, -0.060943603515625, 0.0128021240234375, 0.00814056396484375, 0.10430908203125, -0.0162353515625, 0.01247406005859375, -0.04473876953125, -0.01422882080078125, -0.01111602783203125, -0.002407073974609375, -0.0107574462890625, 0.0089263916015625, -0.040618896484375, 0.0014600753784179688, -0.02337646484375, -0.0035228729248046875, -0.0237579345703125, -0.022369384765625, -0.03125, -0.00843048095703125, 0.01386260986328125, 0.01922607421875, -0.026336669921875, -0.020050048828125, 0.036224365234375, -0.0028247833251953125, 0.03662109375, 0.0177764892578125, 0.0185546875, 0.044769287109375, 0.0972900390625, 0.011322021484375, -0.009521484375, -0.02984619140625, 0.0220947265625, -0.01222991943359375, 0.0174102783203125, -0.042449951171875, -0.01593017578125, -0.0006203651428222656, 0.00977325439453125, 0.018402099609375, 0.038116455078125, -0.01444244384765625, 0.01204681396484375, -0.00756072998046875, -0.0341796875, -0.0281982421875, -0.09808349609375, -0.0421142578125, -0.0051422119140625, -0.0026645660400390625, 0.004669189453125, 0.0238189697265625, -0.0010528564453125, -0.00518798828125, 0.007015228271484375, 0.00429534912109375, -0.021636962890625, 0.009613037109375, -0.037994384765625, 0.00044226646423339844, 0.007724761962890625 ]
68d026cb889306ffc0908f44830ee142dd496c30
Wordpress Stackexchange Q: Add custom attributes to menu items without plugin I'm trying to figure out the best way to add custom menu attributes without using a plugin. I have a site using a custom theme and need to make sure this is setup at theme activation vs needing to setup a plugin as well. Is there a function I can plug into for this? A: Filter nav_menu_link_attributes: add_filter( 'nav_menu_link_attributes', 'wpse_100726_extra_atts', 10, 3 ); function wpse_100726_extra_atts( $atts, $item, $args ) { // inspect $item, then … $atts['custom'] = 'some value'; return $atts; } This works with WordPress < 3.6: add_filter( 'walker_nav_menu_start_el', function( $item ) { $parts = explode( '>', $item ); $out = array (); foreach ( $parts as $i => $part ) { if ( 0 === strpos( $part, '<a ' ) ) // a start $out[ $i ] = $part . ' data-foo="bar"'; else $out[ $i ] = $part; } return join( '>', $out ); });
Q: Add custom attributes to menu items without plugin I'm trying to figure out the best way to add custom menu attributes without using a plugin. I have a site using a custom theme and need to make sure this is setup at theme activation vs needing to setup a plugin as well. Is there a function I can plug into for this? A: Filter nav_menu_link_attributes: add_filter( 'nav_menu_link_attributes', 'wpse_100726_extra_atts', 10, 3 ); function wpse_100726_extra_atts( $atts, $item, $args ) { // inspect $item, then … $atts['custom'] = 'some value'; return $atts; } This works with WordPress < 3.6: add_filter( 'walker_nav_menu_start_el', function( $item ) { $parts = explode( '>', $item ); $out = array (); foreach ( $parts as $i => $part ) { if ( 0 === strpos( $part, '<a ' ) ) // a start $out[ $i ] = $part . ' data-foo="bar"'; else $out[ $i ] = $part; } return join( '>', $out ); }); A: it is nice work. but i want to little bit extra more, trying but can not figure out yet how. add_filter( 'nav_menu_link_attributes', 'wpse_100726_extra_atts', 10, 3 ); function wpse_100726_extra_atts( $atts, $item, $args ) { // inspect $item, then … $atts['data-hover'] = 'some value'; return $atts; } i want some value change to menu items name. ex data-hover="contact us"
wordpress
{ "language": "en", "length": 214, "provenance": "stackexchange_00019.jsonl.gz:432833", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/100726" }
[ 0.05535888671875, -0.0065765380859375, 0.03338623046875, -0.0203094482421875, 0.027801513671875, -0.0192718505859375, 0.07183837890625, -0.0254364013671875, -0.034820556640625, -0.0082244873046875, 0.0013132095336914062, -0.00684356689453125, -0.05828857421875, -0.047119140625, 0.0238800048828125, -0.057861328125, 0.0309600830078125, 0.01305389404296875, 0.0199127197265625, -0.0133056640625, -0.00440216064453125, 0.01068115234375, 0.0066070556640625, 0.060943603515625, 0.04620361328125, -0.041290283203125, 0.0287933349609375, 0.0029430389404296875, 0.030120849609375, 0.01551055908203125, 0.03668212890625, -0.04632568359375, 0.0166473388671875, -0.00688934326171875, 0.035400390625, 0.0186920166015625, 0.02386474609375, -0.0094757080078125, 0.0188751220703125, 0.004787445068359375, 0.033050537109375, -0.03179931640625, 0.0017938613891601562, 0.0302581787109375, 0.00414276123046875, -0.045166015625, 0.057708740234375, -0.04156494140625, -0.007015228271484375, -0.039398193359375, 0.0220794677734375, 0.004093170166015625, 0.031707763671875, -0.026702880859375, -0.00861358642578125, 0.011749267578125, -0.018310546875, -0.031829833984375, 0.024017333984375, 0.05389404296875, 0.0009469985961914062, -0.023040771484375, 0.01436614990234375, -0.04541015625, 0.0237884521484375, 0.037506103515625, 0.0275115966796875, 0.00862884521484375, -0.037078857421875, -0.00921630859375, -0.01033782958984375, -0.05096435546875, 0.00170135498046875, 0.01007080078125, -0.044097900390625, -0.0592041015625, 0.0310211181640625, -0.036285400390625, 0.0181427001953125, 0.0098876953125, -0.0179901123046875, 0.003208160400390625, -0.023895263671875, -0.023468017578125, -0.0111083984375, -0.0111541748046875, -0.026885986328125, -0.0007319450378417969, -0.0030384063720703125, 0.004405975341796875, -0.0106353759765625, -0.005542755126953125, -0.02142333984375, 0.00835418701171875, -0.0019817352294921875, -0.0248870849609375, -0.00501251220703125, 0.043731689453125, 0.01092529296875, 0.0872802734375, -0.0008707046508789062, -0.045135498046875, 0.1033935546875, -0.08026123046875, 0.01220703125, 0.0296173095703125, 0.006259918212890625, 0.0229949951171875, 0.0390625, 0.017913818359375, -0.004848480224609375, 0.02764892578125, -0.0007257461547851562, -0.02606201171875, -0.01010894775390625, 0.0333251953125, 0.0017261505126953125, -0.0099334716796875, 0.0024509429931640625, 0.0018072128295898438, -0.0160675048828125, -0.016754150390625, 0.0250091552734375, 0.00787353515625, 0.0384521484375, 0.0230560302734375, -0.0138702392578125, -0.004085540771484375, -0.011871337890625, 0.00046253204345703125, -0.0114288330078125, 0.025299072265625, 0.03289794921875, 0.0210418701171875, -0.027862548828125, -0.003612518310546875, 0.032745361328125, -0.0205841064453125, -0.01326751708984375, 0.01275634765625, -0.01202392578125, -0.00945281982421875, 0.0021038055419921875, -0.03826904296875, 0.0016069412231445312, -0.01100921630859375, 0.00739288330078125, 0.037750244140625, 0.0157470703125, -0.05242919921875, 0.058380126953125, -0.034454345703125, 0.053314208984375, -0.0229034423828125, -0.0401611328125, -0.0236053466796875, -0.01551055908203125, -0.0189361572265625, -0.031646728515625, -0.0063934326171875, -0.037933349609375, -0.0271759033203125, -0.02099609375, -0.0711669921875, -0.0601806640625, 0.03533935546875, 0.0241851806640625, 0.0113677978515625, 0.01806640625, 0.047119140625, 0.002201080322265625, -0.0171356201171875, 0.0330810546875, 0.035400390625, -0.00725555419921875, 0.028167724609375, 0.01074981689453125, 0.054534912109375, 0.011993408203125, 0.0185394287109375, 0.0003323554992675781, -0.050262451171875, 0.10296630859375, -0.042449951171875, -0.08831787109375, 0.041748046875, -0.01212310791015625, 0.1048583984375, 0.049407958984375, 0.0124664306640625, 0.01428985595703125, -0.03875732421875, -0.00870513916015625, -0.025604248046875, 0.01258087158203125, -0.03631591796875, 0.03350830078125, -0.018341064453125, 0.0263671875, 0.0144805908203125, -0.0089569091796875, -0.01123809814453125, 0.024566650390625, -0.00553131103515625, -0.05120849609375, 0.0189361572265625, -0.0333251953125, 0.03564453125, -0.051513671875, -0.006977081298828125, 0.0245361328125, -0.031463623046875, 0.007633209228515625, -0.01393890380859375, 0.00992584228515625, 0.007282257080078125, 0.019989013671875, 0.02001953125, -0.00487518310546875, -0.0167236328125, 0.0364990234375, -0.0258636474609375, 0.0196380615234375, 0.0648193359375, 0.028594970703125, 0.0118408203125, -0.0262298583984375, 0.0007786750793457031, 0.01605224609375, 0.01229095458984375, -0.01178741455078125, 0.03631591796875, 0.059295654296875, 0.010955810546875, -0.023284912109375, -0.002960205078125, 0.018341064453125, -0.09027099609375, -0.009429931640625, 0.061065673828125, 0.036102294921875, 0.02642822265625, -0.00817108154296875, -0.02252197265625, 0.0523681640625, -0.0089263916015625, 0.02471923828125, -0.03350830078125, 0.0032806396484375, -0.0006799697875976562, 0.030303955078125, -0.017852783203125, 0.0511474609375, 0.003688812255859375, 0.038360595703125, 0.02783203125, -0.02362060546875, -0.01401519775390625, -0.014862060546875, -0.002857208251953125, 0.0129547119140625, 0.00797271728515625, -0.011871337890625, 0.0064849853515625, 0.03857421875, 0.035430908203125, 0.041961669921875, 0.035736083984375, -0.056427001953125, 0.0269622802734375, 0.020416259765625, 0.0208282470703125, -0.00948333740234375, -0.02099609375, 0.018890380859375, -0.00530242919921875, -0.03955078125, 0.0182952880859375, 0.033660888671875, -0.019317626953125, -0.00835418701171875, 0.041229248046875, 0.03643798828125, -0.018646240234375, -0.00457763671875, -0.0175018310546875, 0.015380859375, -0.0321044921875, -0.0242156982421875, -0.030120849609375, 0.0197601318359375, -0.0119171142578125, -0.0322265625, -0.0010461807250976562, 0.0026340484619140625, -0.031524658203125, 0.0088348388671875, -0.003520965576171875, 0.0013856887817382812, -0.0010833740234375, 0.057525634765625, 0.052001953125, 0.0016469955444335938, -0.0147705078125, 0.006023406982421875, -0.044830322265625, -0.007232666015625, 0.033172607421875, -0.0037746429443359375, -0.047271728515625, -0.02337646484375, 0.0255126953125, 0.0013170242309570312, 0.00817108154296875, -0.0275115966796875, -0.0316162109375, -0.037139892578125, -0.0224456787109375, -0.048126220703125, -0.014495849609375, 0.0760498046875, -0.049407958984375, 0.0124053955078125, 0.012115478515625, -0.040283203125, -0.041534423828125, 0.051361083984375, -0.00571441650390625, 0.00873565673828125, -0.0158843994140625, -0.0270843505859375, -0.026397705078125, -0.0667724609375, -0.0037708282470703125, 0.003864288330078125, 0.0184326171875, 0.0006847381591796875, 0.0169219970703125, -0.0096435546875, -0.00881195068359375, 0.0279083251953125, -0.028411865234375, 0.0108184814453125, 0.008544921875, 0.007778167724609375, 0.005023956298828125, 0.007137298583984375, 0.0107421875, 0.0225982666015625, 0.0233154296875, -0.036285400390625, -0.02850341796875, -0.03240966796875, 0.0271453857421875, 0.0301666259765625, -0.01129913330078125, 0.035888671875, 0.097900390625, 0.0748291015625, 0.0171051025390625, -0.016204833984375, -0.0108489990234375, -0.02471923828125, 0.024017333984375, 0.00443267822265625, -0.0162811279296875, -0.0162200927734375, 0.029083251953125, -0.014190673828125, -0.01183319091796875, 0.03448486328125, 0.007251739501953125, -0.045257568359375, -0.020782470703125, -0.032257080078125, -0.00893402099609375, 0.04534912109375, -0.00495147705078125, -0.0034389495849609375, 0.026763916015625, 0.00917816162109375, 0.004886627197265625, -0.01143646240234375, -0.039886474609375, -0.0595703125, 0.047637939453125, 0.022003173828125, 0.06158447265625, -0.041534423828125, -0.046600341796875, -0.00437164306640625, 0.11871337890625, -0.06097412109375, -0.03790283203125, -0.01206207275390625, 0.036590576171875, 0.006244659423828125, -0.058929443359375, 0.0210418701171875, -0.038787841796875, -0.11865234375, 0.03485107421875, 0.006420135498046875, -0.03436279296875, -0.0095062255859375, -0.0008192062377929688, -0.059906005859375, -0.034423828125, 0.039642333984375, -0.04400634765625, -0.00406646728515625, 0.0482177734375, -0.023529052734375, 0.0004184246063232422, -0.0299072265625, -0.00209808349609375, -0.05810546875, -0.0013360977172851562, -0.05889892578125, 0.05120849609375, 0.0204620361328125, 0.033599853515625, -0.016265869140625, 0.036956787109375, 0.01355743408203125, -0.007572174072265625, 0.0202789306640625, 0.022125244140625, -0.004833221435546875, 0.0017824172973632812, 0.01461029052734375, -0.03411865234375, -0.010528564453125, -0.0297698974609375, -0.044891357421875, 0.00322723388671875, -0.00830841064453125, 0.036865234375, 0.0234832763671875, -0.0251312255859375, -0.035888671875, -0.04095458984375, -0.028717041015625, 0.01532745361328125, -0.0035190582275390625, -0.014068603515625, -0.040374755859375, -0.044769287109375, 0.0025634765625, -0.038055419921875, -0.01103973388671875, 0.01409149169921875, 0.0300140380859375, 0.035125732421875, -0.003765106201171875, 0.040740966796875, 0.0002269744873046875, 0.0021610260009765625, -0.01459503173828125, 0.047332763671875, -0.002323150634765625, -0.000720977783203125, 0.038116455078125, -0.046875, 0.0267486572265625, -0.033843994140625, 0.0296173095703125, 0.0276947021484375, 0.0190887451171875, -0.0004978179931640625, 0.053985595703125, -0.00794219970703125, -0.00447845458984375, -0.021453857421875, -0.02435302734375, 0.02227783203125, 0.049285888671875, -0.00836181640625, 0.0028438568115234375, -0.046661376953125, -0.00199127197265625, 0.0033779144287109375, 0.019775390625, 0.034149169921875, 0.033660888671875, -0.00832366943359375, -0.0019741058349609375, -0.0163116455078125, 0.001331329345703125, -0.0019855499267578125, -0.0006647109985351562, -0.0205841064453125, 0.043304443359375, -0.047027587890625, -0.019073486328125, -0.014068603515625, -0.0203094482421875, 0.0927734375, 0.00022590160369873047, -0.025421142578125, -0.0226898193359375, -0.01105499267578125, 0.01763916015625, 0.01381683349609375, -0.0058746337890625, 0.05120849609375, 0.036376953125, -0.029632568359375, -0.010040283203125, -0.029052734375, -0.006984710693359375, -0.0531005859375, 0.0159759521484375, 0.0005269050598144531, -0.00916290283203125, -0.008544921875, 0.0333251953125, -0.0155029296875, 0.004146575927734375, 0.00606536865234375, -0.0238189697265625, -0.02716064453125, 0.040130615234375, 0.0193023681640625, -0.0269012451171875, -0.01727294921875, 0.032989501953125, 0.02618408203125, -0.03155517578125, -0.00389862060546875, 0.02447509765625, 0.043701171875, 0.0211029052734375, -0.01071929931640625, 0.0036334991455078125, -0.0216064453125, 0.0014476776123046875, 0.035980224609375, -0.01065826416015625, -0.064453125, -0.0223846435546875, 0.027984619140625, 0.04571533203125, -0.033935546875, -0.01233673095703125, 0.02117919921875, 0.01313018798828125, -0.004840850830078125, -0.008270263671875, -0.04022216796875, 0.00732421875, 0.021331787109375, -0.03240966796875, -0.00598907470703125, 0.0255279541015625, -0.058868408203125, -0.01493072509765625, -0.014190673828125, -0.0244903564453125, 0.0288543701171875, -0.042510986328125, 0.0155792236328125, 0.004425048828125, -0.0092926025390625, -0.00860595703125, 0.0245819091796875, 0.0211029052734375, 0.005214691162109375, -0.045562744140625, -0.01047515869140625, -0.0240631103515625, -0.0101318359375, -0.0134124755859375, -0.03509521484375, -0.0262603759765625, -0.0121002197265625, -0.00302886962890625, 0.018310546875, -0.005527496337890625, -0.00907135009765625, -0.00955963134765625, 0.01342010498046875, -0.007381439208984375, -0.006252288818359375, -0.0277557373046875, 0.05712890625, 0.0008540153503417969, 0.02294921875, -0.00811004638671875, 0.00930023193359375, -0.01546478271484375, 0.00244903564453125, 0.0162200927734375, -0.0281219482421875, -0.0401611328125, -0.036529541015625, -0.02862548828125, 0.047821044921875, 0.0804443359375, -0.01218414306640625, 0.035736083984375, -0.032257080078125, -0.0011949539184570312, -0.0142059326171875, 0.0037441253662109375, -0.04486083984375, -0.0003247261047363281, 0.032379150390625, -0.011383056640625, 0.0014886856079101562, 0.0218048095703125, 0.0165557861328125, 0.00542449951171875, 0.00363922119140625, 0.013671875, -0.0190277099609375, -0.052764892578125, 0.055206298828125, 0.06451416015625, 0.0168304443359375, 0.043731689453125, 0.01097869873046875, 0.0227813720703125, 0.0163116455078125, -0.01107025146484375, 0.0091552734375, 0.01511383056640625, 0.08160400390625, -0.00910186767578125, -0.048858642578125, 0.04925537109375, -0.05511474609375, 0.0244903564453125, 0.02618408203125, 0.056976318359375, -0.06524658203125, 0.0275115966796875, 0.00010460615158081055, 0.0008935928344726562, 0.06610107421875, 0.0195159912109375, -0.00569915771484375, 0.00960540771484375, -0.0066680908203125, -0.041168212890625, -0.031280517578125, -0.00475311279296875, 0.006259918212890625, 0.003612518310546875, -0.01288604736328125, -0.0201873779296875, -0.0177001953125, 0.00905609130859375, -0.0253143310546875, -0.024993896484375, 0.011871337890625, 0.0038509368896484375, 0.0187835693359375, -0.00450897216796875, -0.007549285888671875, -0.051788330078125, -0.0019779205322265625, -0.0277557373046875, -0.021392822265625, 0.019256591796875, 0.006526947021484375, 0.039642333984375, 0.0292510986328125, 0.007152557373046875, -0.00812530517578125, -0.0149078369140625, 0.030792236328125, 0.0112457275390625, -0.034942626953125, -0.013427734375, 0.015380859375, 0.021392822265625, 0.0141754150390625, 0.053192138671875, -0.06915283203125, -0.013824462890625, 0.031768798828125, 0.10162353515625, -0.0250091552734375, -0.0279541015625, 0.0465087890625, -0.025177001953125, -0.0362548828125, -0.0031223297119140625, 0.03253173828125, -0.053680419921875, -0.0411376953125, 0.0112457275390625, -0.0323486328125, 0.0079193115234375, 0.01105499267578125, -0.03179931640625, 0.0958251953125, -0.03204345703125, -0.020721435546875, 0.002437591552734375, 0.05706787109375, -0.001720428466796875, 0.04193115234375, -0.05242919921875, 0.05242919921875, -0.0095977783203125, 0.03375244140625, -0.058135986328125, -0.0018625259399414062, -0.0013151168823242188, 0.02886962890625, -0.002056121826171875, 0.01149749755859375, -0.0224761962890625, 0.0038433074951171875, 0.009613037109375, 0.037750244140625, 0.0222015380859375, 0.0034236907958984375, -0.00009447336196899414, 0.00798797607421875, 0.0526123046875, -0.042236328125, 0.047088623046875, -0.03179931640625, 0.033416748046875, 0.0017576217651367188, 0.004474639892578125, 0.0211944580078125, -0.002445220947265625, 0.01019287109375, -0.0012378692626953125, -0.008148193359375, -0.01200103759765625, 0.01421356201171875, -0.00920867919921875, 0.00067138671875, -0.036956787109375, -0.0194244384765625, -0.046051025390625, -0.0102386474609375, 0.005321502685546875, -0.0048675537109375, 0.0292510986328125, 0.022247314453125, 0.00998687744140625, 0.01070404052734375, -0.0120697021484375, 0.00733184814453125, 0.0163116455078125, -0.0193328857421875, 0.01256561279296875, -0.0235748291015625, 0.0036220550537109375, -0.06597900390625, -0.0055389404296875, 0.041015625, 0.0380859375, -0.0261383056640625, -0.0284271240234375, 0.01007080078125, 0.0053558349609375, 0.01849365234375, 0.0102386474609375, 0.06121826171875, -0.0196990966796875, -0.019073486328125, -0.024932861328125, 0.01763916015625, 0.035430908203125, 0.040008544921875, 0.005756378173828125, 0.0183868408203125, -0.07745361328125, -0.005374908447265625, -0.05352783203125, 0.049346923828125, 0.0318603515625, 0.049560546875, -0.006847381591796875, 0.058135986328125, -0.01178741455078125, -0.026397705078125, 0.006313323974609375, 0.033721923828125, -0.0174407958984375, -0.00864410400390625, 0.03009033203125, -0.04669189453125, -0.028076171875, 0.004329681396484375, 0.034271240234375, 0.0220489501953125, 0.06805419921875, -0.004680633544921875, -0.065185546875, 0.00897216796875, 0.04119873046875, -0.041839599609375, -0.040985107421875, -0.03564453125, 0.0293426513671875, 0.066650390625, 0.021575927734375, 0.0181427001953125, -0.00955963134765625, 0.08123779296875, 0.01004791259765625, 0.0195465087890625, -0.0009603500366210938, -0.044097900390625, -0.0091552734375, -0.0158538818359375, 0.055938720703125, 0.0210723876953125, -0.08929443359375, -0.037109375, -0.0147552490234375, -0.0186004638671875, 0.0390625, 0.050140380859375, -0.00969696044921875, 0.0122222900390625, -0.0041351318359375, -0.00589752197265625, -0.00547027587890625, -0.01202392578125, 0.0060272216796875, 0.0222930908203125, 0.004550933837890625, 0.01502227783203125, -0.0298919677734375, 0.018341064453125, 0.007068634033203125, -0.0058441162109375, 0.0282135009765625, 0.014129638671875, 0.0185089111328125, 0.0010356903076171875, -0.007045745849609375, 0.0222320556640625, -0.0244140625, -0.01114654541015625, 0.0244598388671875, 0.0156707763671875, 0.018798828125, -0.00954437255859375, 0.01371002197265625, 0.00228118896484375, 0.06103515625, -0.04803466796875, 0.00119781494140625, 0.01042938232421875, 0.0250701904296875, -0.04248046875, 0.039642333984375, -0.0283050537109375, -0.02093505859375, -0.041839599609375, -0.033538818359375, 0.04632568359375, 0.0521240234375, 0.0223846435546875, 0.005229949951171875, 0.00582122802734375, -0.005008697509765625, 0.006587982177734375, 0.0313720703125, 0.007259368896484375, 0.032623291015625, -0.03179931640625, -0.0114288330078125, -0.0037479400634765625, -0.031463623046875, -0.0036830902099609375, 0.0005383491516113281, 0.0275115966796875, -0.0244293212890625, -0.0321044921875, 0.06396484375, 0.04486083984375, 0.08642578125, -0.0079498291015625, 0.0506591796875, 0.01212310791015625, 0.03460693359375, 0.02734375, -0.052490234375, -0.048583984375, -0.078369140625, 0.0247650146484375, 0.02606201171875, -0.03485107421875, -0.0491943359375, -0.09234619140625, 0.014434814453125, 0.040740966796875, -0.0051422119140625, -0.040313720703125, 0.0011262893676757812, -0.0253448486328125, 0.0732421875, -0.01500701904296875, -0.00047707557678222656, 0.00766754150390625, 0.0306549072265625, -0.005138397216796875, -0.01204681396484375, -0.010101318359375, 0.047149658203125, 0.001949310302734375, 0.021026611328125, 0.0279083251953125, -0.0251312255859375, -0.0240325927734375, 0.043243408203125, 0.01739501953125, 0.0924072265625, 0.0219573974609375, -0.0293731689453125, 0.0007505416870117188, -0.027313232421875, -0.003192901611328125, -0.0196380615234375, 0.00875091552734375, -0.07470703125, -0.040313720703125, -0.0185394287109375, -0.006946563720703125, -0.01561737060546875, -0.048614501953125, -0.0809326171875, 0.0723876953125, -0.0173797607421875, -0.0305633544921875, -0.0178070068359375, -0.03607177734375, -0.0168914794921875, -0.0030651092529296875, 0.00022280216217041016, -0.04290771484375, -0.0303192138671875, 0.03399658203125, -0.00359344482421875, 0.04522705078125, 0.005191802978515625, 0.0099029541015625, -0.05401611328125, -0.01064300537109375, -0.031463623046875, -0.004901885986328125, 0.0028972625732421875, 0.00890350341796875, -0.0014219284057617188, 0.0160064697265625, -0.043975830078125, -0.02288818359375, -0.00914764404296875, 0.0105743408203125, 0.0057220458984375, -0.0145111083984375, -0.017669677734375, -0.005100250244140625, 0.06134033203125, 0.02679443359375, 0.0118560791015625, -0.0211334228515625, -0.0206298828125, -0.0287322998046875, 0.0157318115234375, -0.0128173828125, -0.0084228515625, -0.05328369140625, -0.023834228515625, 0.00795745849609375, -0.02783203125, -0.0131378173828125, 0.04217529296875, -0.0341796875, 0.00939178466796875, 0.03289794921875, -0.025115966796875, -0.05621337890625, 0.0241241455078125, 0.0270843505859375, -0.04803466796875, -0.030120849609375, -0.004215240478515625, -0.005596160888671875, -0.006404876708984375, -0.0350341796875, -0.004730224609375, -0.005619049072265625, -0.01514434814453125, 0.0226898193359375, -0.0037059783935546875, 0.0278167724609375, -0.037841796875, -0.014190673828125, -0.0231475830078125, 0.0242767333984375, 0.00797271728515625, 0.0246429443359375, -0.044219970703125, 0.0229644775390625, -0.0006661415100097656, 0.04345703125, -0.01064300537109375, 0.00955963134765625, -0.0042572021484375, 0.007350921630859375, -0.0011224746704101562, -0.00630950927734375, 0.0307769775390625, -0.033355712890625, -0.00710296630859375, -0.0089874267578125, -0.00815582275390625, -0.06256103515625, 0.0231475830078125, -0.016357421875, 0.00086212158203125, 0.0207061767578125 ]
cbb19a12867fd745a134aa6cc89861ac323cbc3e
Wordpress Stackexchange Q: How to get a localized version of WordPress from a repository? I'm setting up my basic skeleton / boilerplate I want to use for all wordpress projects. I follow Mark Jaquiths approach and include WP as a submodule. He gets it from https://github.com/WordPress/WordPress. Many of my clients are from Germany and require German language files for administration. Is there a way I can include the localized files into my skeleton git repository? A: Installing languages in WordPress Skeleton is pretty much the same as in a standard WP install. All WP-Skeleton does is alters the paths to accommodate WP as a Git submodule. This means instead of installing languages files under wp-content/languages or wp-includes/languages, you need to place them in content/languages. Basically, all you need to do is: * *Download your languages files from the SVN repo. There is no need to add this repo as a submodule; just manually download the language files you require. *Create a folder under content called languages. Place all of your .mo (and optionally .po) files here. *Open up wp-config.php and set the WP_LANG constant on line 51.
Q: How to get a localized version of WordPress from a repository? I'm setting up my basic skeleton / boilerplate I want to use for all wordpress projects. I follow Mark Jaquiths approach and include WP as a submodule. He gets it from https://github.com/WordPress/WordPress. Many of my clients are from Germany and require German language files for administration. Is there a way I can include the localized files into my skeleton git repository? A: Installing languages in WordPress Skeleton is pretty much the same as in a standard WP install. All WP-Skeleton does is alters the paths to accommodate WP as a Git submodule. This means instead of installing languages files under wp-content/languages or wp-includes/languages, you need to place them in content/languages. Basically, all you need to do is: * *Download your languages files from the SVN repo. There is no need to add this repo as a submodule; just manually download the language files you require. *Create a folder under content called languages. Place all of your .mo (and optionally .po) files here. *Open up wp-config.php and set the WP_LANG constant on line 51. A: Download your languages files from the SVN repo... I would strongly advise against this. The repo, as storage of language files, is being discontinued, in favor of Translate WordPress. Right now, you have no guarantees that the repo has a current version of the file. The current method of getting language files is either to download (export) them directly from Translate WordPress individually (core, admin, network and themes). You can access that directly with something like: http://translate.wordpress.org/projects/wp/dev/de/default/export-translations?format=mo (for the .mo, replace with format=po for the .po) Above examples are for core files only, you'd need to repeat that for /wp/dev/admin/de/default, wp/dev/admin/network/de/default, and the themes. You can "curl" all that, obviously. We're aware that the method is a little convoluted at the moment, but we're working on a better export tool. A: * *Go to http://pcentral.io/internationalization/ and find the official website of the desired language *Click the »More« link to open the official website related to that particular translation. For example, for Russian it is currently: http://wpcentral.io/internationalization/ru/ *Find a »Download Language Pack« button and copy the URL. E.g.: http://downloads.wordpress.org/translation/core/4.0/ru_RU.zip *Now SSH to your server and do this: cd wp-content/languages wget http://downloads.wordpress.org/translation/core/4.0/ru_RU.zip unzip ru_RU.zip rm ru_RU.zip Of course, the link and the *.zip file name will vary for your particular language.
wordpress
{ "language": "en", "length": 395, "provenance": "stackexchange_00019.jsonl.gz:432846", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/100770" }
[ 0.00923919677734375, -0.01531982421875, -0.02398681640625, -0.0216064453125, -0.0198974609375, -0.0176849365234375, -0.01235198974609375, -0.0143890380859375, 0.01495361328125, 0.0223846435546875, -0.01110076904296875, -0.020721435546875, 0.03094482421875, -0.03173828125, 0.010101318359375, -0.006053924560546875, 0.041259765625, -0.007137298583984375, 0.038360595703125, 0.00986480712890625, -0.01081085205078125, 0.0298919677734375, 0.020599365234375, -0.0038623809814453125, 0.04937744140625, -0.06512451171875, 0.0697021484375, -0.004924774169921875, 0.01904296875, -0.01885986328125, 0.039093017578125, -0.0035552978515625, 0.037139892578125, -0.0271759033203125, -0.0014963150024414062, -0.029327392578125, 0.0076904296875, -0.0179901123046875, -0.0265045166015625, 0.006259918212890625, -0.00212860107421875, 0.002399444580078125, 0.0277099609375, 0.02862548828125, -0.007373809814453125, -0.0292510986328125, 0.0168609619140625, -0.0286865234375, -0.005741119384765625, -0.00688934326171875, 0.01218414306640625, -0.01549530029296875, 0.036834716796875, -0.00888824462890625, -0.01212310791015625, -0.0166168212890625, 0.0012340545654296875, 0.0295562744140625, 0.032470703125, -0.0247039794921875, -0.043426513671875, -0.00751495361328125, 0.0256195068359375, 0.00176239013671875, -0.028167724609375, 0.0161590576171875, 0.015167236328125, -0.0014142990112304688, -0.030242919921875, -0.02520751953125, 0.005290985107421875, -0.01015472412109375, 0.0297698974609375, -0.04052734375, 0.0260162353515625, 0.04608154296875, -0.047454833984375, -0.005039215087890625, 0.04302978515625, -0.01450347900390625, 0.032196044921875, -0.00702667236328125, 0.005313873291015625, -0.04022216796875, 0.0206146240234375, -0.00785064697265625, -0.00907135009765625, -0.00848388671875, -0.06085205078125, -0.0247344970703125, -0.04034423828125, -0.034332275390625, -0.123291015625, 0.036865234375, 0.0318603515625, -0.0186614990234375, -0.003818511962890625, 0.004810333251953125, -0.00927734375, 0.045074462890625, 0.02752685546875, -0.0587158203125, 0.0987548828125, -0.053802490234375, 0.00650787353515625, 0.01534271240234375, -0.032684326171875, 0.01432037353515625, 0.054931640625, 0.045257568359375, 0.017852783203125, 0.0193939208984375, -0.0180816650390625, -0.10540771484375, 0.0167694091796875, 0.0816650390625, 0.01538848876953125, 0.01837158203125, 0.045501708984375, -0.0204315185546875, 0.01081085205078125, 0.053558349609375, -0.029296875, -0.0203399658203125, -0.0228118896484375, -0.016754150390625, 0.0033721923828125, -0.0203094482421875, -0.03509521484375, 0.035736083984375, -0.0056610107421875, 0.01116180419921875, 0.00988006591796875, 0.00917816162109375, -0.03460693359375, -0.0203857421875, -0.00766754150390625, 0.00196075439453125, -0.020233154296875, 0.005908966064453125, -0.005802154541015625, 0.0268707275390625, 0.06414794921875, -0.017120361328125, -0.004421234130859375, -0.01904296875, 0.012786865234375, 0.042449951171875, -0.0037250518798828125, 0.01308441162109375, 0.0096282958984375, -0.005725860595703125, 0.0187835693359375, 0.0100555419921875, 0.0197296142578125, -0.04681396484375, 0.03021240234375, -0.0498046875, 0.0294036865234375, -0.03955078125, -0.03985595703125, -0.037078857421875, -0.0036983489990234375, -0.03021240234375, -0.0457763671875, 0.05950927734375, 0.0212249755859375, 0.00732421875, 0.024871826171875, 0.0093536376953125, 0.03436279296875, -0.016265869140625, 0.0020694732666015625, -0.00482177734375, -0.0029888153076171875, 0.01071929931640625, -0.00557708740234375, 0.006641387939453125, 0.0162353515625, 0.0309295654296875, 0.032958984375, -0.01090240478515625, 0.07843017578125, -0.006587982177734375, -0.017120361328125, -0.0589599609375, 0.00554656982421875, 0.00739288330078125, 0.058258056640625, 0.022857666015625, -0.01186370849609375, -0.033660888671875, -0.06622314453125, 0.0234527587890625, -0.049102783203125, 0.0011730194091796875, 0.02093505859375, 0.03509521484375, -0.0166168212890625, -0.0037384033203125, 0.0208282470703125, -0.03387451171875, 0.0266265869140625, -0.0006556510925292969, -0.00797271728515625, -0.0129241943359375, -0.01221466064453125, 0.005550384521484375, 0.00140380859375, -0.01512908935546875, 0.005649566650390625, -0.020751953125, 0.01253509521484375, -0.054351806640625, -0.0457763671875, 0.00469970703125, -0.0231781005859375, 0.0232391357421875, 0.014007568359375, 0.0051116943359375, 0.031585693359375, -0.013275146484375, 0.0160064697265625, -0.024200439453125, -0.0064239501953125, 0.0115509033203125, -0.01503753662109375, 0.0097503662109375, 0.00647735595703125, 0.031341552734375, 0.01007080078125, -0.0012826919555664062, -0.049468994140625, 0.008026123046875, -0.0181732177734375, -0.005275726318359375, -0.02032470703125, -0.005214691162109375, 0.0100555419921875, 0.02587890625, 0.037109375, 0.026763916015625, 0.00852203369140625, -0.00029206275939941406, 0.04351806640625, -0.0275421142578125, 0.025115966796875, -0.028167724609375, -0.025299072265625, 0.00717926025390625, 0.0254669189453125, -0.0005574226379394531, 0.0096435546875, -0.05792236328125, -0.03277587890625, 0.03277587890625, -0.020111083984375, -0.054473876953125, 0.030303955078125, -0.015472412109375, 0.024169921875, -0.065673828125, -0.067138671875, -0.0187225341796875, 0.050537109375, -0.023529052734375, 0.0267486572265625, 0.0214080810546875, -0.01190948486328125, -0.00598907470703125, 0.021820068359375, 0.00957489013671875, 0.0211181640625, -0.0018396377563476562, -0.01702880859375, 0.0726318359375, -0.007350921630859375, -0.0102386474609375, 0.00598907470703125, 0.00913238525390625, -0.0297698974609375, -0.00034928321838378906, 0.01873779296875, -0.0210723876953125, -0.004291534423828125, -0.072998046875, 0.0257415771484375, -0.038848876953125, -0.045928955078125, -0.007015228271484375, 0.040496826171875, -0.01360321044921875, -0.022064208984375, -0.02105712890625, 0.0205078125, -0.005641937255859375, 0.085693359375, -0.0357666015625, 0.0189056396484375, -0.01107025146484375, 0.05230712890625, 0.048004150390625, 0.0005288124084472656, -0.030517578125, -0.0037078857421875, -0.037994384765625, 0.011016845703125, -0.0121612548828125, -0.045318603515625, -0.04010009765625, -0.06353759765625, -0.025634765625, 0.004421234130859375, -0.036590576171875, -0.00678253173828125, -0.0229034423828125, -0.037261962890625, -0.02703857421875, -0.11688232421875, -0.08612060546875, 0.041290283203125, -0.039215087890625, 0.032470703125, 0.034088134765625, -0.019500732421875, -0.06536865234375, 0.0777587890625, 0.0057830810546875, -0.0196380615234375, -0.0302734375, -0.03619384765625, -0.06671142578125, -0.0753173828125, -0.02166748046875, 0.0087127685546875, 0.007701873779296875, 0.0112457275390625, -0.00963592529296875, 0.0225067138671875, -0.01532745361328125, 0.039215087890625, 0.09002685546875, -0.0146026611328125, -0.005039215087890625, 0.0054168701171875, -0.05072021484375, 0.054595947265625, -0.019256591796875, 0.037872314453125, 0.0382080078125, -0.01105499267578125, 0.007045745849609375, 0.0157623291015625, -0.03302001953125, 0.0276641845703125, -0.0406494140625, -0.04376220703125, -0.0178375244140625, -0.0071258544921875, -0.054595947265625, -0.0253448486328125, 0.02862548828125, -0.0097808837890625, 0.0404052734375, 0.012115478515625, -0.04876708984375, -0.017120361328125, 0.029541015625, 0.003513336181640625, 0.020294189453125, 0.055938720703125, -0.0027408599853515625, -0.0176849365234375, -0.0199432373046875, -0.052032470703125, -0.032257080078125, 0.06976318359375, -0.005130767822265625, -0.013427734375, 0.01010894775390625, -0.016876220703125, -0.037017822265625, 0.00475311279296875, -0.060150146484375, -0.01532745361328125, 0.041656494140625, 0.0061798095703125, 0.03192138671875, -0.01312255859375, -0.036285400390625, -0.0082550048828125, 0.051544189453125, 0.006252288818359375, -0.00908660888671875, 0.0201568603515625, 0.017669677734375, -0.047271728515625, -0.04443359375, -0.031494140625, -0.00528717041015625, -0.0257720947265625, 0.007274627685546875, -0.0120086669921875, -0.00519561767578125, 0.01580810546875, -0.038482666015625, 0.0154266357421875, -0.033233642578125, 0.027740478515625, 0.00876617431640625, -0.004535675048828125, 0.004421234130859375, -0.0028133392333984375, -0.0029144287109375, -0.0200653076171875, -0.01580810546875, -0.0947265625, -0.007190704345703125, -0.0287933349609375, 0.043243408203125, -0.0133819580078125, -0.00811004638671875, -0.032196044921875, 0.0205535888671875, 0.012481689453125, 0.035491943359375, 0.0185546875, -0.011749267578125, 0.03643798828125, 0.02166748046875, 0.0362548828125, -0.0021495819091796875, -0.00922393798828125, 0.00838470458984375, -0.043243408203125, 0.04168701171875, 0.023590087890625, 0.0225982666015625, 0.06439208984375, -0.033935546875, -0.04107666015625, -0.0271148681640625, -0.0197906494140625, -0.01012420654296875, -0.0287017822265625, 0.0130462646484375, -0.01025390625, -0.04022216796875, 0.042083740234375, 0.081787109375, -0.0098419189453125, -0.002834320068359375, 0.0333251953125, 0.0039005279541015625, -0.0574951171875, -0.07977294921875, 0.00511932373046875, 0.01953125, -0.01255035400390625, 0.061737060546875, 0.041717529296875, -0.007843017578125, 0.042236328125, 0.00756072998046875, -0.038330078125, 0.036163330078125, -0.006992340087890625, 0.0312347412109375, -0.01708984375, -0.0027179718017578125, 0.0179443359375, -0.00942230224609375, 0.017547607421875, 0.021697998046875, -0.0235443115234375, 0.0218963623046875, 0.037628173828125, -0.00452423095703125, 0.0033111572265625, -0.025787353515625, -0.0567626953125, 0.0276641845703125, -0.0223236083984375, -0.00868988037109375, -0.022308349609375, 0.013885498046875, -0.0081634521484375, -0.006374359130859375, -0.00897216796875, 0.025634765625, -0.0233001708984375, 0.020843505859375, 0.0089263916015625, 0.03289794921875, -0.01177978515625, 0.02288818359375, -0.0137481689453125, 0.04937744140625, -0.0019197463989257812, -0.0616455078125, -0.003551483154296875, 0.00213623046875, 0.01250457763671875, 0.03900146484375, 0.0014810562133789062, 0.008148193359375, -0.00537109375, -0.025146484375, 0.008270263671875, 0.006580352783203125, -0.036590576171875, -0.03643798828125, -0.01190948486328125, -0.002590179443359375, -0.00998687744140625, -0.01499176025390625, 0.059173583984375, -0.01438140869140625, 0.017913818359375, 0.0005011558532714844, -0.01369476318359375, 0.01296234130859375, 0.0136566162109375, 0.00019741058349609375, -0.005817413330078125, 0.0247955322265625, -0.010711669921875, 0.051605224609375, -0.00014781951904296875, 0.030853271484375, -0.00974273681640625, 0.042266845703125, -0.034271240234375, -0.043701171875, 0.0234832763671875, -0.08203125, 0.0089263916015625, 0.01090240478515625, 0.01953125, -0.024383544921875, -0.007091522216796875, -0.014739990234375, 0.0180816650390625, -0.0219573974609375, -0.02886962890625, 0.00958251953125, -0.037078857421875, -0.0091400146484375, 0.06732177734375, -0.0650634765625, 0.020233154296875, 0.033538818359375, -0.042755126953125, -0.01143646240234375, 0.00832366943359375, -0.046173095703125, -0.034515380859375, -0.00569915771484375, -0.01275634765625, 0.0239410400390625, 0.005069732666015625, -0.0243682861328125, -0.035491943359375, 0.025390625, -0.06231689453125, -0.0107421875, 0.0528564453125, 0.0019969940185546875, -0.0335693359375, -0.0262603759765625, -0.0021190643310546875, -0.005123138427734375, 0.0169830322265625, -0.040313720703125, -0.0233917236328125, 0.00266265869140625, -0.0243988037109375, 0.01123809814453125, -0.0255584716796875, -0.022491455078125, -0.03753662109375, 0.0261688232421875, 0.01593017578125, -0.00628662109375, -0.0219268798828125, 0.0838623046875, -0.0031337738037109375, 0.04150390625, 0.003292083740234375, 0.052734375, -0.021728515625, -0.00791168212890625, 0.01000213623046875, -0.006610870361328125, -0.020538330078125, -0.0264739990234375, 0.0026226043701171875, -0.0025177001953125, 0.03472900390625, -0.00295257568359375, 0.00022900104522705078, -0.01259613037109375, -0.0015850067138671875, -0.00274658203125, -0.0018024444580078125, 0.01105499267578125, -0.0028438568115234375, 0.0211944580078125, -0.045989990234375, 0.035369873046875, -0.0019235610961914062, -0.009002685546875, 0.0203094482421875, -0.039947509765625, 0.0066070556640625, 0.073974609375, -0.0175018310546875, 0.03662109375, 0.09222412109375, 0.0322265625, 0.051177978515625, 0.03363037109375, 0.007808685302734375, -0.033355712890625, 0.0092315673828125, -0.00302886962890625, -0.00481414794921875, -0.0106353759765625, -0.01715087890625, 0.0158538818359375, -0.0191650390625, 0.001285552978515625, 0.006832122802734375, 0.06341552734375, 0.05572509765625, -0.072998046875, -0.006404876708984375, 0.021697998046875, -0.053314208984375, -0.04132080078125, 0.01230621337890625, -0.062469482421875, -0.100341796875, 0.021331787109375, -0.029998779296875, -0.040863037109375, -0.0167694091796875, 0.010986328125, -0.01287841796875, -0.01453399658203125, 0.02679443359375, 0.024688720703125, 0.052734375, -0.0262298583984375, -0.033294677734375, 0.02752685546875, -0.029052734375, 0.0011653900146484375, -0.0001842975616455078, 0.006038665771484375, -0.041961669921875, 0.021270751953125, -0.01459503173828125, 0.01190948486328125, 0.00982666015625, 0.004276275634765625, 0.00756072998046875, 0.058074951171875, -0.0269775390625, 0.00193023681640625, 0.0311279296875, -0.01690673828125, 0.0031070709228515625, -0.01242828369140625, -0.00370025634765625, 0.0279541015625, -0.01218414306640625, 0.00875091552734375, -0.014190673828125, 0.005519866943359375, 0.01476287841796875, 0.0286102294921875, 0.05926513671875, -0.040679931640625, -0.0170745849609375, 0.01824951171875, -0.034637451171875, 0.015869140625, 0.00252532958984375, 0.0118865966796875, -0.050750732421875, -0.0306243896484375, 0.0064697265625, -0.03155517578125, -0.014495849609375, 0.00215911865234375, -0.033966064453125, 0.069091796875, -0.00791168212890625, -0.0108184814453125, -0.0008358955383300781, 0.05206298828125, -0.01904296875, 0.048797607421875, -0.017120361328125, 0.00466156005859375, -0.0103302001953125, -0.031280517578125, -0.01476287841796875, 0.021820068359375, -0.026458740234375, 0.0128631591796875, 0.0372314453125, 0.01611328125, -0.0248260498046875, -0.034332275390625, 0.0186920166015625, 0.024505615234375, 0.0030574798583984375, 0.036865234375, -0.033477783203125, 0.0261383056640625, 0.0005860328674316406, -0.037078857421875, 0.030731201171875, -0.025787353515625, -0.0599365234375, -0.01122283935546875, 0.0178375244140625, -0.004711151123046875, 0.0137176513671875, 0.034271240234375, -0.039825439453125, 0.014923095703125, 0.01360321044921875, 0.021881103515625, 0.04278564453125, -0.0249481201171875, 0.01160430908203125, 0.0206298828125, 0.0140533447265625, 0.0023193359375, 0.0290985107421875, 0.0113067626953125, -0.003383636474609375, 0.029296875, 0.0139617919921875, 0.042755126953125, 0.0028400421142578125, 0.0018625259399414062, 0.00441741943359375, 0.01491546630859375, 0.06787109375, 0.041168212890625, 0.04266357421875, 0.0154266357421875, 0.041473388671875, 0.003475189208984375, 0.050506591796875, -0.046173095703125, -0.01433563232421875, 0.00775146484375, 0.0140838623046875, -0.0033855438232421875, -0.0190277099609375, -0.00208282470703125, -0.0150146484375, 0.019256591796875, -0.0022602081298828125, -0.0172271728515625, -0.005008697509765625, 0.0118408203125, -0.01430511474609375, -0.0199737548828125, 0.0352783203125, 0.00665283203125, -0.03460693359375, 0.032470703125, 0.018341064453125, 0.038787841796875, -0.028350830078125, 0.09173583984375, 0.0098419189453125, -0.01166534423828125, 0.006313323974609375, 0.0293426513671875, 0.0222930908203125, -0.037933349609375, -0.015411376953125, -0.04803466796875, 0.0232696533203125, 0.028900146484375, 0.039093017578125, -0.0187835693359375, 0.049530029296875, 0.056976318359375, -0.062469482421875, -0.0152435302734375, 0.058624267578125, -0.004329681396484375, 0.017822265625, -0.019744873046875, 0.02777099609375, -0.0036716461181640625, -0.01424407958984375, -0.032867431640625, 0.03204345703125, 0.01206207275390625, -0.0115966796875, 0.0408935546875, -0.012481689453125, -0.037811279296875, 0.02667236328125, -0.04522705078125, 0.095703125, 0.006565093994140625, -0.032318115234375, 0.00627899169921875, -0.02191162109375, -0.0176544189453125, -0.0147247314453125, 0.0191192626953125, -0.0020503997802734375, 0.022796630859375, 0.048126220703125, -0.019989013671875, -0.005893707275390625, 0.025848388671875, 0.02423095703125, -0.028076171875, 0.0225067138671875, 0.002773284912109375, -0.04620361328125, -0.03265380859375, -0.04949951171875, 0.050445556640625, 0.02008056640625, 0.07904052734375, -0.028717041015625, 0.038848876953125, -0.0523681640625, 0.0005130767822265625, -0.005279541015625, -0.032806396484375, -0.0010662078857421875, 0.056243896484375, 0.01297760009765625, -0.0224761962890625, -0.0377197265625, -0.035491943359375, 0.0160064697265625, -0.03912353515625, 0.0008578300476074219, -0.052581787109375, 0.032958984375, -0.00485992431640625, 0.0228729248046875, -0.026824951171875, -0.0457763671875, -0.0513916015625, -0.00174713134765625, 0.022613525390625, 0.006900787353515625, -0.0189208984375, 0.0209503173828125, -0.0153350830078125, -0.024017333984375, 0.01629638671875, -0.039581298828125, -0.0016527175903320312, 0.01464080810546875, 0.0026798248291015625, 0.0189361572265625, 0.0010633468627929688, -0.0169525146484375, -0.01338958740234375, 0.01129913330078125, -0.020050048828125, -0.009857177734375, -0.0191650390625, 0.0111083984375, -0.01324462890625, 0.01503753662109375, -0.017608642578125, -0.01007080078125, 0.01275634765625, -0.01418304443359375, -0.0004050731658935547, -0.00925445556640625, -0.01031494140625, -0.028564453125, -0.018341064453125, 0.024566650390625, -0.019989013671875, -0.02545166015625, -0.02728271484375, -0.00405120849609375, 0.02130126953125, 0.0035152435302734375, -0.030914306640625, 0.0046844482421875, -0.011993408203125, 0.02630615234375, -0.001819610595703125, -0.0027103424072265625, -0.0087432861328125, 0.01033782958984375, -0.03631591796875, -0.02239990234375, -0.0246429443359375, 0.016845703125, -0.019989013671875, 0.010589599609375, 0.019683837890625, 0.0006108283996582031, 0.007686614990234375, 0.0263214111328125, 0.00032329559326171875, 0.0784912109375, -0.032012939453125, -0.027923583984375, 0.0081329345703125, -0.022735595703125, -0.0198974609375, -0.0887451171875, 0.028167724609375, -0.1522216796875, -0.01519775390625, -0.034088134765625, 0.01500701904296875, 0.02349853515625, -0.049407958984375, -0.11688232421875, 0.0184478759765625, -0.0308837890625, -0.053131103515625, -0.029296875, -0.017333984375, -0.0162200927734375, 0.04180908203125, -0.00733184814453125, -0.01348114013671875, -0.01441192626953125, 0.037017822265625, 0.0019216537475585938, 0.059661865234375, -0.017578125, 0.022369384765625, 0.06048583984375, 0.045928955078125, 0.04638671875, -0.0289154052734375, 0.0102386474609375, -0.0110931396484375, -0.00460052490234375, 0.039031982421875, -0.044891357421875, -0.043426513671875, -0.020843505859375, 0.001003265380859375, -0.0191650390625, -0.05474853515625, 0.0145416259765625, -0.033477783203125, 0.044158935546875, -0.00737762451171875, 0.0034160614013671875, -0.005779266357421875, 0.0004611015319824219, -0.0171661376953125, -0.0203704833984375, -0.01012420654296875, 0.007457733154296875, -0.03509521484375, 0.01111602783203125, -0.01505279541015625, -0.007205963134765625, -0.0311126708984375, -0.006755828857421875, -0.042877197265625, -0.018890380859375, -0.032806396484375, -0.022796630859375, 0.00991058349609375, -0.03558349609375, 0.079345703125, -0.0229339599609375, 0.0297698974609375, 0.0178985595703125, 0.01110076904296875, 0.057586669921875, 0.07208251953125, -0.0260009765625, 0.04571533203125, -0.052978515625, 0.0176239013671875, -0.00751495361328125, 0.004611968994140625, -0.031829833984375, 0.0195159912109375, -0.026123046875, 0.012176513671875, 0.035888671875, 0.0178985595703125, -0.0294647216796875, -0.01270294189453125, 0.01390838623046875, 0.0211181640625, -0.003173828125, -0.01200103759765625, -0.01543426513671875, 0.024078369140625, -0.0599365234375, 0.006988525390625, -0.04241943359375, -0.009613037109375, 0.018951416015625, -0.01073455810546875, -0.0261688232421875, -0.0236663818359375, 0.025177001953125, -0.022491455078125, -0.0205230712890625, 0.0192718505859375 ]
dc628878375a1c47d53c419b64a529335b9e29f6
Wordpress Stackexchange Q: Exclude add_filter from the admin I've created a custom filtering facility for a front end search, which also includes a specific user group. To add the function to the search I have used add_filter('pre_get_posts','my_filter_the_search',10,1); function my_filter_the_search($query){ $post_type = filter_input(INPUT_GET, 'post_type', FILTER_SANITIZE_STRING); if($post_type == 'document'): add_filter( 'posts_search', '__search_by_title_only', 500, 2 ); //Get array of slugs of checked terms $terms = (array) $_GET['post_type']; //Tax_query array $tax_query = array(array( 'taxonomy' => 'access', 'terms' => 'basic-user', 'field' => 'slug', )); //Tell the query to filter by tax $query->set('tax_query', $tax_query); return $query; endif; } This appears to be effecting the listing of a custom post type in the backend. How do I only use this for the front end of the site? A: Only hook the function if its not the backend. if( !is_admin() ){ add_filter('pre_get_posts','my_filter_the_search',10,1); }
Q: Exclude add_filter from the admin I've created a custom filtering facility for a front end search, which also includes a specific user group. To add the function to the search I have used add_filter('pre_get_posts','my_filter_the_search',10,1); function my_filter_the_search($query){ $post_type = filter_input(INPUT_GET, 'post_type', FILTER_SANITIZE_STRING); if($post_type == 'document'): add_filter( 'posts_search', '__search_by_title_only', 500, 2 ); //Get array of slugs of checked terms $terms = (array) $_GET['post_type']; //Tax_query array $tax_query = array(array( 'taxonomy' => 'access', 'terms' => 'basic-user', 'field' => 'slug', )); //Tell the query to filter by tax $query->set('tax_query', $tax_query); return $query; endif; } This appears to be effecting the listing of a custom post type in the backend. How do I only use this for the front end of the site? A: Only hook the function if its not the backend. if( !is_admin() ){ add_filter('pre_get_posts','my_filter_the_search',10,1); } A: Just do a var_dump( $query ); inside your callback to see the objects properties. One of the property you can use is is_admin. // functions.php function my_search_filter($query) { if ( $query->is_admin ) { // do/set something on query return $query; } return $query; } add_filter('pre_get_posts','my_search_filter'); Using is_admin() global function is also fine.
wordpress
{ "language": "en", "length": 186, "provenance": "stackexchange_00019.jsonl.gz:432909", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/100973" }
[ 0.10076904296875, 0.0258026123046875, 0.013336181640625, -0.0693359375, 0.048614501953125, -0.0421142578125, 0.044921875, -0.018463134765625, 0.0102386474609375, 0.0261688232421875, -0.020782470703125, -0.0121002197265625, -0.0195770263671875, -0.01442718505859375, -0.0435791015625, -0.038482666015625, 0.017669677734375, -0.031005859375, 0.01212310791015625, -0.0303955078125, 0.0207061767578125, -0.019256591796875, 0.0310821533203125, 0.016326904296875, 0.003936767578125, -0.01351165771484375, 0.037506103515625, -0.009124755859375, 0.0180511474609375, -0.006023406982421875, 0.012481689453125, -0.0196533203125, 0.0037288665771484375, 0.0193634033203125, -0.0015382766723632812, 0.023040771484375, -0.00174713134765625, 0.023590087890625, 0.018646240234375, 0.00951385498046875, 0.0278472900390625, -0.0182647705078125, -0.050872802734375, 0.038818359375, -0.03387451171875, -0.07275390625, 0.054412841796875, -0.01079559326171875, 0.0121917724609375, -0.01537322998046875, 0.0210723876953125, -0.0124969482421875, 0.045257568359375, -0.05181884765625, -0.004852294921875, 0.031585693359375, 0.015655517578125, -0.04071044921875, 0.053955078125, -0.0016508102416992188, -0.03753662109375, -0.043426513671875, 0.0236053466796875, -0.045013427734375, -0.0075225830078125, -0.0032672882080078125, 0.01116180419921875, -0.0010461807250976562, -0.05975341796875, -0.011322021484375, 0.0384521484375, -0.036956787109375, 0.0308990478515625, 0.029022216796875, -0.0276031494140625, -0.0650634765625, 0.023590087890625, -0.0109710693359375, 0.01629638671875, 0.018157958984375, -0.03253173828125, -0.019256591796875, -0.048675537109375, 0.0064239501953125, -0.021728515625, 0.01361083984375, -0.0299072265625, 0.00594329833984375, 0.0029468536376953125, -0.006816864013671875, -0.0038928985595703125, -0.03192138671875, -0.007049560546875, 0.0135498046875, 0.0146942138671875, -0.032379150390625, 0.0182647705078125, 0.036041259765625, 0.0276641845703125, 0.0178985595703125, 0.005702972412109375, -0.044891357421875, 0.029876708984375, -0.039520263671875, 0.0191650390625, 0.0017900466918945312, -0.037811279296875, 0.0341796875, 0.06915283203125, 0.057098388671875, 0.0189208984375, 0.00402069091796875, -0.0192108154296875, -0.01971435546875, -0.039947509765625, 0.007328033447265625, -0.0293731689453125, -0.02325439453125, 0.00004947185516357422, -0.0185089111328125, 0.04412841796875, 0.048431396484375, 0.025421142578125, -0.061431884765625, -0.025604248046875, -0.040435791015625, -0.047332763671875, -0.04632568359375, 0.03631591796875, 0.032684326171875, -0.0423583984375, 0.00725555419921875, 0.05853271484375, -0.005401611328125, -0.01136016845703125, -0.03314208984375, 0.0196685791015625, -0.01012420654296875, -0.02117919921875, 0.018707275390625, 0.03741455078125, -0.04974365234375, -0.0379638671875, 0.037139892578125, 0.00972747802734375, 0.004467010498046875, 0.0253448486328125, 0.0185394287109375, 0.0040740966796875, -0.0224151611328125, -0.0184173583984375, 0.008453369140625, 0.05133056640625, 0.0012111663818359375, -0.07342529296875, 0.0203399658203125, -0.0084075927734375, 0.004566192626953125, -0.06121826171875, -0.033538818359375, 0.021697998046875, 0.0033664703369140625, 0.003536224365234375, -0.033721923828125, -0.04888916015625, -0.010162353515625, -0.0301513671875, 0.00018262863159179688, 0.0034084320068359375, -0.023345947265625, 0.036102294921875, -0.0164794921875, 0.00531005859375, -0.022308349609375, -0.01445770263671875, -0.0159912109375, -0.0076141357421875, 0.04730224609375, 0.035919189453125, 0.0228424072265625, 0.01580810546875, -0.020477294921875, 0.08782958984375, -0.0025482177734375, -0.072265625, 0.026123046875, 0.0080108642578125, 0.045562744140625, 0.0198822021484375, 0.0018548965454101562, 0.0455322265625, 0.03753662109375, -0.01922607421875, 0.0110626220703125, -0.0251617431640625, -0.04400634765625, -0.0030841827392578125, -0.032318115234375, -0.020904541015625, 0.062255859375, 0.035919189453125, -0.00008094310760498047, 0.016510009765625, -0.00897979736328125, -0.06597900390625, -0.006134033203125, -0.02020263671875, 0.024444580078125, -0.0051422119140625, 0.0135650634765625, 0.0238800048828125, 0.002979278564453125, -0.04766845703125, 0.03570556640625, -0.00389862060546875, 0.003826141357421875, -0.0014286041259765625, 0.0218353271484375, 0.0380859375, 0.0170135498046875, 0.05084228515625, -0.0131072998046875, 0.0290985107421875, -0.0205841064453125, 0.060028076171875, 0.01525115966796875, 0.00191497802734375, -0.005916595458984375, 0.0360107421875, 0.0308685302734375, -0.0399169921875, 0.01007080078125, 0.10308837890625, 0.0611572265625, -0.01439666748046875, 0.0008597373962402344, 0.036712646484375, -0.058380126953125, -0.0158233642578125, 0.05322265625, 0.0287017822265625, 0.051605224609375, -0.001934051513671875, -0.004055023193359375, 0.059539794921875, -0.041259765625, 0.0141448974609375, -0.00386810302734375, 0.0072021484375, 0.0567626953125, -0.034332275390625, 0.0266265869140625, 0.0173187255859375, -0.037872314453125, 0.0151214599609375, 0.0576171875, 0.0023651123046875, 0.005496978759765625, 0.0134735107421875, -0.03692626953125, 0.0171966552734375, -0.0697021484375, -0.05670166015625, -0.0175628662109375, -0.0080108642578125, -0.0037555694580078125, 0.00238037109375, -0.00440216064453125, -0.0152435302734375, -0.0247650146484375, 0.0280914306640625, 0.0078887939453125, -0.0010089874267578125, 0.0006203651428222656, 0.03656005859375, -0.00926971435546875, -0.0819091796875, 0.0222625732421875, 0.02423095703125, -0.001560211181640625, -0.0033130645751953125, 0.033111572265625, 0.0087738037109375, 0.00262451171875, -0.0217132568359375, -0.0816650390625, 0.029327392578125, 0.0323486328125, 0.01214599609375, -0.0231781005859375, 0.01373291015625, -0.0110321044921875, -0.0302734375, 0.0181121826171875, -0.0222930908203125, -0.0367431640625, 0.011322021484375, -0.041290283203125, 0.027862548828125, -0.0204620361328125, 0.047821044921875, 0.061279296875, 0.006908416748046875, 0.0093231201171875, 0.00676727294921875, -0.016876220703125, -0.03643798828125, 0.046539306640625, 0.01006317138671875, -0.0277862548828125, -0.033233642578125, 0.014007568359375, -0.005321502685546875, -0.0190277099609375, -0.0196075439453125, -0.03729248046875, -0.0312347412109375, -0.0241546630859375, -0.041015625, 0.0115509033203125, 0.00614166259765625, -0.036468505859375, -0.0227813720703125, -0.02301025390625, -0.0160369873046875, 0.0195159912109375, -0.0266876220703125, -0.006072998046875, 0.0270538330078125, -0.0146331787109375, -0.034210205078125, -0.01319122314453125, -0.038543701171875, 0.0191802978515625, -0.005977630615234375, -0.005504608154296875, 0.0151214599609375, 0.082275390625, 0.022979736328125, -0.07501220703125, 0.019866943359375, 0.033966064453125, -0.0372314453125, 0.038726806640625, -0.0020465850830078125, -0.0241546630859375, 0.05450439453125, -0.0040283203125, 0.0022754669189453125, 0.01006317138671875, -0.005340576171875, -0.0210723876953125, 0.0093536376953125, -0.00884246826171875, 0.00946044921875, 0.01056671142578125, -0.014129638671875, -0.01349639892578125, 0.020538330078125, -0.044464111328125, 0.022613525390625, -0.0003147125244140625, 0.008758544921875, 0.007598876953125, -0.0218505859375, -0.02154541015625, -0.00328826904296875, 0.0253143310546875, 0.0215301513671875, 0.0233001708984375, -0.0194854736328125, 0.005725860595703125, 0.001216888427734375, 0.016845703125, 0.0203857421875, 0.006328582763671875, 0.011871337890625, -0.0261077880859375, 0.06610107421875, 0.02801513671875, 0.02630615234375, 0.03875732421875, -0.0271453857421875, 0.004367828369140625, -0.055816650390625, 0.06622314453125, -0.001262664794921875, 0.0129547119140625, -0.060394287109375, -0.04376220703125, -0.01953125, 0.11016845703125, -0.041839599609375, -0.006103515625, 0.004131317138671875, -0.0129547119140625, 0.047332763671875, 0.00015211105346679688, -0.0313720703125, -0.03173828125, -0.08392333984375, -0.03094482421875, -0.033843994140625, -0.0182342529296875, -0.007671356201171875, -0.00978851318359375, -0.0372314453125, -0.0333251953125, 0.041595458984375, -0.0274200439453125, 0.035003662109375, -0.0269622802734375, 0.0135345458984375, -0.0390625, -0.0179901123046875, -0.0233154296875, -0.041168212890625, 0.002155303955078125, 0.009307861328125, 0.0024776458740234375, -0.0002655982971191406, 0.01517486572265625, 0.0017232894897460938, 0.0246429443359375, 0.037322998046875, 0.01788330078125, -0.0115814208984375, -0.035064697265625, 0.01427459716796875, -0.01358795166015625, -0.0162811279296875, -0.01297760009765625, -0.023773193359375, 0.014495849609375, -0.00609588623046875, 0.03912353515625, -0.0255889892578125, -0.01049041748046875, -0.00940704345703125, -0.0205841064453125, -0.06671142578125, -0.05078125, -0.0400390625, -0.044677734375, -0.034637451171875, -0.01415252685546875, -0.01220703125, -0.0399169921875, 0.04180908203125, 0.01534271240234375, -0.0237884521484375, -0.006748199462890625, 0.050079345703125, 0.01678466796875, -0.0303955078125, -0.0256500244140625, -0.0173492431640625, 0.032562255859375, -0.023956298828125, 0.03277587890625, 0.00738525390625, -0.022186279296875, 0.052734375, -0.0222930908203125, -0.0076904296875, -0.05548095703125, 0.04010009765625, -0.004901885986328125, -0.01438140869140625, 0.0208740234375, -0.02496337890625, 0.058380126953125, -0.00801849365234375, -0.0263824462890625, -0.01554107666015625, 0.0226593017578125, 0.044952392578125, -0.0145416259765625, 0.0261077880859375, -0.031219482421875, -0.0308685302734375, 0.012847900390625, -0.0015420913696289062, 0.033111572265625, 0.017486572265625, -0.001537322998046875, 0.0178070068359375, -0.018096923828125, -0.004619598388671875, -0.0203704833984375, 0.0276641845703125, -0.0174560546875, 0.036407470703125, -0.040313720703125, -0.0079345703125, -0.03741455078125, 0.005313873291015625, 0.0134735107421875, -0.024658203125, -0.037994384765625, -0.0114898681640625, 0.00017309188842773438, -0.025909423828125, 0.0215606689453125, -0.003871917724609375, 0.01251220703125, 0.04510498046875, -0.01064300537109375, -0.0035495758056640625, 0.027008056640625, 0.0237274169921875, -0.034820556640625, -0.0026836395263671875, 0.02398681640625, -0.0232391357421875, 0.0032367706298828125, 0.031951904296875, 0.004589080810546875, 0.01195526123046875, -0.0024738311767578125, 0.02777099609375, 0.01338958740234375, 0.0202178955078125, -0.007129669189453125, 0.0309906005859375, 0.0175018310546875, -0.0008192062377929688, 0.021240234375, 0.003993988037109375, -0.0158233642578125, 0.01427459716796875, 0.002559661865234375, 0.004852294921875, 0.0156097412109375, 0.00585174560546875, 0.003387451171875, 0.0016603469848632812, 0.028045654296875, 0.019134521484375, -0.0137481689453125, -0.0176849365234375, -0.0191650390625, 0.0028705596923828125, -0.0249481201171875, -0.007595062255859375, 0.0338134765625, 0.004070281982421875, 0.0251312255859375, -0.038299560546875, -0.01192474365234375, -0.005474090576171875, 0.01532745361328125, -0.01348876953125, -0.0106201171875, -0.0005207061767578125, -0.02508544921875, -0.0260772705078125, -0.006496429443359375, -0.0184783935546875, 0.02117919921875, -0.00970458984375, 0.0226593017578125, -0.0362548828125, 0.00159454345703125, -0.0120849609375, 0.006359100341796875, 0.03875732421875, 0.008697509765625, -0.04150390625, -0.0103302001953125, -0.06591796875, -0.0171966552734375, -0.029052734375, -0.006031036376953125, -0.0265655517578125, 0.0133056640625, 0.005947113037109375, 0.0208740234375, -0.01110076904296875, -0.04901123046875, -0.0200653076171875, -0.00628662109375, 0.0406494140625, 0.0106048583984375, -0.0236358642578125, 0.0396728515625, -0.01165771484375, 0.0640869140625, -0.0157928466796875, -0.0287628173828125, -0.025482177734375, 0.0021114349365234375, -0.0246429443359375, -0.1075439453125, -0.033203125, 0.018035888671875, -0.040130615234375, 0.112548828125, 0.047515869140625, 0.00980377197265625, 0.00772857666015625, 0.0206451416015625, 0.00608062744140625, -0.021697998046875, -0.0196075439453125, 0.0247802734375, 0.027618408203125, 0.0244140625, 0.02032470703125, 0.04266357421875, -0.024017333984375, -0.016876220703125, 0.0154571533203125, -0.006439208984375, 0.02325439453125, -0.0253143310546875, -0.031494140625, 0.055328369140625, 0.0673828125, 0.00971221923828125, 0.039886474609375, 0.0211029052734375, 0.0161590576171875, 0.0010843276977539062, -0.0184783935546875, -0.01410675048828125, 0.0239715576171875, 0.040496826171875, -0.01416778564453125, -0.020294189453125, 0.033599853515625, -0.02203369140625, -0.0194091796875, 0.07366943359375, 0.032073974609375, -0.08245849609375, -0.0321044921875, -0.006134033203125, -0.01177215576171875, -0.0076751708984375, 0.023223876953125, -0.0168304443359375, -0.024505615234375, 0.0082855224609375, -0.00315093994140625, -0.00673675537109375, 0.0162353515625, 0.00502777099609375, -0.009674072265625, -0.0205535888671875, 0.053253173828125, -0.01291656494140625, -0.015899658203125, -0.019683837890625, -0.004486083984375, -0.0297088623046875, -0.0025310516357421875, 0.059844970703125, -0.045013427734375, -0.01171112060546875, -0.062744140625, -0.03497314453125, 0.03515625, -0.053558349609375, 0.0457763671875, 0.01519012451171875, 0.0311279296875, 0.02838134765625, 0.0159759521484375, -0.0198974609375, -0.0017070770263671875, -0.040435791015625, -0.007411956787109375, -0.0220794677734375, -0.0092926025390625, 0.007598876953125, -0.0240478515625, 0.0186309814453125, -0.0306243896484375, -0.0184783935546875, -0.020965576171875, -0.07550048828125, 0.044525146484375, -0.0037899017333984375, -0.019256591796875, 0.00939178466796875, -0.0008721351623535156, -0.0022220611572265625, 0.0206451416015625, -0.010009765625, -0.02337646484375, -0.0286712646484375, 0.0017499923706054688, -0.0677490234375, 0.0144195556640625, 0.017852783203125, -0.037933349609375, 0.068359375, -0.0231475830078125, 0.022979736328125, 0.0030803680419921875, 0.0401611328125, 0.003406524658203125, 0.0222320556640625, -0.0272979736328125, 0.0223541259765625, 0.01264190673828125, 0.048828125, -0.059356689453125, -0.034515380859375, 0.00734710693359375, 0.0677490234375, 0.02532958984375, 0.01309967041015625, -0.045928955078125, -0.0120391845703125, 0.0286102294921875, 0.035125732421875, 0.01253509521484375, 0.0306854248046875, 0.00848388671875, 0.038330078125, 0.052001953125, -0.0107879638671875, 0.0440673828125, -0.000003933906555175781, -0.023651123046875, 0.05206298828125, 0.0052032470703125, 0.039215087890625, 0.00974273681640625, -0.0060882568359375, -0.03094482421875, -0.0022029876708984375, 0.040252685546875, -0.060211181640625, -0.01544189453125, 0.0127716064453125, 0.005374908447265625, -0.08087158203125, -0.0285797119140625, -0.034271240234375, 0.0294036865234375, 0.0126800537109375, 0.044647216796875, 0.031280517578125, 0.0311431884765625, 0.0379638671875, -0.01763916015625, 0.0300445556640625, 0.01465606689453125, -0.034759521484375, 0.0167083740234375, 0.0246429443359375, 0.041046142578125, -0.0207977294921875, 0.01428985595703125, 0.040771484375, 0.03253173828125, -0.0308685302734375, -0.04669189453125, 0.014251708984375, 0.0100250244140625, -0.007434844970703125, 0.0268402099609375, 0.0118255615234375, 0.037628173828125, 0.07427978515625, -0.0948486328125, 0.0175628662109375, 0.023345947265625, 0.010986328125, -0.044464111328125, -0.0200653076171875, 0.0007767677307128906, 0.01041412353515625, -0.054962158203125, -0.00827789306640625, 0.0298309326171875, 0.0716552734375, 0.035491943359375, 0.041412353515625, -0.01313018798828125, -0.0259857177734375, -0.015899658203125, 0.0013885498046875, -0.01560211181640625, 0.0257415771484375, -0.026397705078125, -0.002704620361328125, -0.02349853515625, 0.029022216796875, 0.0296478271484375, 0.0263671875, 0.01544189453125, -0.00823974609375, -0.01136016845703125, 0.008087158203125, 0.04852294921875, -0.01476287841796875, -0.0026416778564453125, -0.0238494873046875, 0.023681640625, 0.02191162109375, 0.01226806640625, -0.0225372314453125, 0.0178680419921875, 0.0273895263671875, 0.0154266357421875, 0.03802490234375, 0.0013875961303710938, -0.02069091796875, 0.02813720703125, -0.0048828125, 0.0770263671875, 0.04046630859375, -0.054595947265625, 0.016937255859375, -0.05157470703125, -0.0950927734375, 0.023101806640625, 0.03204345703125, -0.0225067138671875, 0.002613067626953125, 0.048248291015625, -0.03436279296875, 0.0276641845703125, 0.03240966796875, 0.0105743408203125, -0.01287841796875, 0.01629638671875, -0.0107269287109375, 0.0129547119140625, 0.0127105712890625, 0.035491943359375, 0.01056671142578125, 0.00894927978515625, 0.040771484375, -0.0154266357421875, -0.004390716552734375, -0.00801849365234375, 0.00290679931640625, -0.01419830322265625, 0.0005383491516113281, 0.006679534912109375, -0.007450103759765625, -0.0022182464599609375, -0.00547027587890625, 0.007556915283203125, -0.041534423828125, 0.07177734375, -0.0650634765625, -0.019439697265625, -0.00072479248046875, 0.026123046875, -0.06561279296875, 0.05419921875, -0.0074462890625, 0.01418304443359375, -0.033050537109375, -0.034271240234375, 0.07427978515625, 0.035980224609375, -0.0272979736328125, 0.0164794921875, 0.018463134765625, -0.013671875, 0.020751953125, -0.0081939697265625, 0.034637451171875, 0.043853759765625, -0.037139892578125, 0.02764892578125, -0.011138916015625, -0.0162200927734375, -0.0009531974792480469, 0.03125, -0.04449462890625, 0.023101806640625, 0.0058441162109375, -0.030975341796875, -0.01128387451171875, 0.037628173828125, -0.01153564453125, 0.0213623046875, -0.032073974609375, -0.00487518310546875, -0.0117645263671875, 0.0210418701171875, -0.0270843505859375, 0.0129852294921875, -0.028839111328125, -0.00537872314453125, 0.00943756103515625, -0.07916259765625, -0.0460205078125, -0.0014677047729492188, 0.057769775390625, 0.006397247314453125, -0.06500244140625, 0.01561737060546875, -0.030242919921875, 0.071044921875, 0.003711700439453125, -0.0187225341796875, -0.012969970703125, -0.01302337646484375, -0.01490020751953125, 0.0183258056640625, -0.041656494140625, -0.01213836669921875, 0.0004115104675292969, 0.012359619140625, 0.0458984375, -0.016693115234375, -0.039947509765625, 0.034332275390625, -0.003376007080078125, 0.0667724609375, -0.036041259765625, -0.01114654541015625, 0.00328826904296875, 0.02789306640625, -0.021209716796875, -0.06378173828125, -0.006153106689453125, -0.02044677734375, 0.01125335693359375, 0.0025653839111328125, -0.002124786376953125, 0.0265350341796875, -0.033477783203125, -0.09832763671875, 0.053466796875, -0.01482391357421875, -0.04248046875, -0.07861328125, 0.00994110107421875, 0.007541656494140625, -0.007556915283203125, -0.016937255859375, -0.0445556640625, -0.05419921875, 0.0273895263671875, 0.0190887451171875, 0.014923095703125, 0.007282257080078125, 0.0245819091796875, -0.07275390625, 0.0203094482421875, -0.011077880859375, 0.0207366943359375, 0.024017333984375, -0.03216552734375, 0.030120849609375, 0.02117919921875, -0.0413818359375, 0.0045318603515625, -0.0123748779296875, -0.0222015380859375, -0.0162811279296875, -0.007289886474609375, -0.03228759765625, -0.046722412109375, 0.075439453125, 0.01092529296875, 0.0184326171875, 0.01904296875, -0.03662109375, -0.00841522216796875, -0.0180206298828125, -0.005077362060546875, 0.024169921875, -0.056243896484375, 0.005924224853515625, 0.0019483566284179688, 0.002471923828125, 0.00954437255859375, -0.02935791015625, -0.0165252685546875, 0.00791168212890625, 0.0111541748046875, 0.0085601806640625, -0.0401611328125, 0.022064208984375, -0.0059661865234375, -0.019378662109375, -0.060699462890625, -0.01776123046875, 0.0035991668701171875, -0.049896240234375, -0.0400390625, -0.01416778564453125, -0.00045943260192871094, 0.016204833984375, -0.001514434814453125, 0.0238189697265625, -0.0071563720703125, 0.0233306884765625, 0.00836944580078125, -0.0081634521484375, 0.0185546875, 0.004177093505859375, 0.004871368408203125, -0.0312042236328125, 0.08135986328125, 0.003993988037109375, 0.111083984375, 0.00748443603515625, 0.054901123046875, -0.0086517333984375, 0.037567138671875, 0.0009670257568359375, -0.01349639892578125, 0.001239776611328125, 0.01470184326171875, -0.00037407875061035156, -0.02508544921875, -0.05609130859375, -0.030059814453125, -0.023529052734375, -0.049896240234375, -0.032501220703125, 0.00969696044921875 ]
6fe8769fe35d99ff4e02c958649df693636edf6b
Wordpress Stackexchange Q: Best Practices for Seperating jQuery from HTML/PHP I am creating several jQuery scripts to help validate forms before they are submitted. I have read that it is best to always separate jQuery scripts into a separate file so that you can load the script with wp_enqeue_script. However, if I am doing something like this: jQuery(function() { var ButtonSelector = "#submit-button"; jQuery(document).on('click', ButtonSelector, function() { var ValidEntry = true; ClearError('#venue_name'); var name = jQuery("#venue_name").val(); if (name == "") { CreateError("#venue_name", "Name is Required"); ValidEntry = false; } if (!ValidEntry) { jQuery('html, body').animate({scrollTop:0}, 'slow'); } EnableButton(ButtonSelector); return false; }); }); Since this function is only used in the one individual form, would it still make sense to separate it out? If I did separate it, wouldn't that mean that it would load for every single page? A: You can target a specific page using is_page() when you are enqueueing your JS file. function my_scripts_method() { if( is_page('your page title') ){ wp_enqueue_script( 'your-js-script' ); } } add_action( 'wp_enqueue_scripts', 'my_scripts_method' ); This way, you will conditionally enqueue your JS to that page only.
Q: Best Practices for Seperating jQuery from HTML/PHP I am creating several jQuery scripts to help validate forms before they are submitted. I have read that it is best to always separate jQuery scripts into a separate file so that you can load the script with wp_enqeue_script. However, if I am doing something like this: jQuery(function() { var ButtonSelector = "#submit-button"; jQuery(document).on('click', ButtonSelector, function() { var ValidEntry = true; ClearError('#venue_name'); var name = jQuery("#venue_name").val(); if (name == "") { CreateError("#venue_name", "Name is Required"); ValidEntry = false; } if (!ValidEntry) { jQuery('html, body').animate({scrollTop:0}, 'slow'); } EnableButton(ButtonSelector); return false; }); }); Since this function is only used in the one individual form, would it still make sense to separate it out? If I did separate it, wouldn't that mean that it would load for every single page? A: You can target a specific page using is_page() when you are enqueueing your JS file. function my_scripts_method() { if( is_page('your page title') ){ wp_enqueue_script( 'your-js-script' ); } } add_action( 'wp_enqueue_scripts', 'my_scripts_method' ); This way, you will conditionally enqueue your JS to that page only. A: you could still put the script in a seperate js-file, but separate from the rest of your script(-files) too - and enqueue it conditionally, for example: if (is_page_template('abc-xyz.php')) { wp_enqueue_script('your_script-js', get_template_directory_uri() . '/inc/js/your_script.js', array('jquery'), '1.00', true); } that would be in your functions.php, where you enqueue your scripts A: When using is_page() I would also recommend doing so with an || since the page title and page name (aka page slug) might change - if only by accident. You could also use the page ID but that too might not be consistent between development and production. For example: if ( is_page( $name ) || is_page( $id ) || is_page( $title ) ) {} Overkill? Perhaps. But it's something to be aware of.
wordpress
{ "language": "en", "length": 303, "provenance": "stackexchange_00019.jsonl.gz:432918", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/101003" }
[ 0.0606689453125, 0.0005254745483398438, -0.0662841796875, -0.0712890625, 0.047332763671875, -0.045806884765625, 0.011505126953125, 0.0304412841796875, -0.035369873046875, -0.0073394775390625, -0.0246124267578125, 0.05706787109375, -0.053192138671875, -0.0219573974609375, 0.03753662109375, -0.032562255859375, 0.04345703125, -0.037109375, -0.0166015625, -0.01197052001953125, 0.01511383056640625, 0.0159149169921875, -0.0347900390625, 0.0753173828125, 0.00446319580078125, -0.056243896484375, 0.083251953125, 0.0141754150390625, 0.0015077590942382812, -0.0038890838623046875, 0.025848388671875, -0.02850341796875, 0.0174407958984375, 0.00771331787109375, -0.0027446746826171875, 0.016143798828125, 0.00690460205078125, 0.0163421630859375, 0.0157470703125, 0.033721923828125, 0.029876708984375, -0.0145416259765625, 0.0056304931640625, 0.02239990234375, -0.01363372802734375, -0.0333251953125, 0.00963592529296875, -0.03741455078125, 0.0038700103759765625, 0.01509857177734375, 0.0191650390625, -0.0408935546875, 0.02093505859375, -0.004985809326171875, -0.00646209716796875, 0.02020263671875, 0.001056671142578125, -0.0615234375, 0.0199737548828125, 0.090576171875, 0.012969970703125, -0.0181427001953125, -0.00597381591796875, -0.0799560546875, -0.03228759765625, -0.02130126953125, -0.032958984375, 0.030517578125, -0.0223388671875, -0.03338623046875, 0.007152557373046875, -0.0196990966796875, 0.004730224609375, -0.0095977783203125, -0.034210205078125, -0.00002187490463256836, 0.0108184814453125, -0.004512786865234375, 0.022491455078125, -0.015655517578125, -0.00670623779296875, -0.011810302734375, -0.03485107421875, -0.0018033981323242188, 0.0029754638671875, 0.047637939453125, -0.016143798828125, -0.0058135986328125, -0.03369140625, -0.0235137939453125, -0.0221405029296875, -0.0227508544921875, -0.035797119140625, -0.006237030029296875, -0.0039825439453125, -0.007007598876953125, 0.05157470703125, 0.0455322265625, 0.0083160400390625, 0.0035400390625, 0.0531005859375, -0.06390380859375, 0.05914306640625, -0.0408935546875, -0.0062408447265625, 0.09979248046875, 0.012481689453125, -0.05120849609375, -0.0149688720703125, -0.0191802978515625, 0.0172576904296875, -0.0281219482421875, 0.00922393798828125, -0.0244293212890625, -0.0152130126953125, 0.0011205673217773438, -0.020965576171875, 0.0193634033203125, 0.0135650634765625, 0.01264190673828125, -0.00553131103515625, 0.020965576171875, -0.036529541015625, -0.01557159423828125, 0.0029544830322265625, -0.024383544921875, 0.0125274658203125, -0.004337310791015625, -0.0029621124267578125, 0.023223876953125, -0.0209503173828125, -0.002803802490234375, 0.03387451171875, 0.030364990234375, -0.00567626953125, -0.020965576171875, 0.0401611328125, -0.0142059326171875, -0.003871917724609375, -0.0058746337890625, 0.0079803466796875, -0.0244598388671875, -0.00948333740234375, -0.011016845703125, -0.052978515625, 0.022552490234375, 0.01238250732421875, 0.005168914794921875, -0.0118408203125, -0.02508544921875, -0.01271820068359375, -0.06561279296875, 0.037261962890625, -0.0015201568603515625, -0.0183563232421875, -0.03271484375, 0.01296234130859375, -0.023040771484375, 0.010986328125, -0.02911376953125, 0.0044708251953125, 0.0299530029296875, 0.0200042724609375, -0.057159423828125, -0.0269012451171875, -0.08721923828125, -0.0357666015625, 0.010528564453125, 0.01251220703125, 0.026702880859375, -0.036895751953125, -0.03973388671875, -0.0080108642578125, 0.02410888671875, -0.0120697021484375, 0.053924560546875, 0.016082763671875, -0.0031147003173828125, 0.0167999267578125, 0.02423095703125, -0.0282135009765625, -0.0433349609375, 0.0243377685546875, -0.027679443359375, -0.0687255859375, 0.032470703125, 0.0205078125, 0.07550048828125, 0.0026454925537109375, 0.01445770263671875, 0.0709228515625, 0.00934600830078125, -0.01959228515625, -0.01290130615234375, 0.006923675537109375, 0.00835418701171875, -0.0017213821411132812, 0.0176849365234375, 0.004779815673828125, -0.01245880126953125, 0.0215911865234375, -0.0012531280517578125, 0.01505279541015625, 0.0105743408203125, 0.0106048583984375, -0.01123046875, -0.00247955322265625, 0.02593994140625, -0.04351806640625, 0.00817108154296875, 0.0233001708984375, 0.0289764404296875, -0.037139892578125, -0.0115814208984375, 0.0057220458984375, 0.0261383056640625, -0.00746917724609375, 0.04730224609375, -0.0207366943359375, 0.0299835205078125, -0.01078033447265625, -0.041229248046875, -0.01276397705078125, 0.01971435546875, 0.02569580078125, -0.018280029296875, -0.028961181640625, -0.033935546875, -0.015716552734375, -0.0181121826171875, -0.031585693359375, 0.08917236328125, 0.07489013671875, 0.09735107421875, 0.00647735595703125, 0.003101348876953125, 0.00799560546875, -0.0110626220703125, -0.0120391845703125, 0.012451171875, 0.033111572265625, 0.05267333984375, -0.0113983154296875, 0.0033550262451171875, -0.00022661685943603516, -0.1024169921875, -0.00933074951171875, 0.0216827392578125, -0.013946533203125, -0.0146331787109375, -0.0321044921875, -0.0024280548095703125, 0.06341552734375, -0.04345703125, -0.0272979736328125, 0.079345703125, -0.041290283203125, 0.01373291015625, -0.0213165283203125, 0.0004601478576660156, 0.0026531219482421875, -0.0252227783203125, 0.001041412353515625, -0.03167724609375, 0.0596923828125, -0.0179595947265625, 0.016357421875, 0.00498199462890625, -0.00402069091796875, -0.0002682209014892578, -0.0002378225326538086, -0.06903076171875, -0.0006771087646484375, 0.0251007080078125, 0.0303497314453125, 0.007022857666015625, -0.032684326171875, -0.01332855224609375, 0.007579803466796875, 0.020233154296875, 0.0002301931381225586, 0.0218353271484375, -0.020660400390625, -0.02142333984375, 0.0199127197265625, -0.040008544921875, -0.006134033203125, -0.00402069091796875, 0.0565185546875, 0.030120849609375, 0.054412841796875, -0.000980377197265625, -0.0027256011962890625, 0.0261993408203125, 0.0259857177734375, -0.04730224609375, 0.06756591796875, 0.03570556640625, -0.0040435791015625, -0.01177215576171875, 0.0088348388671875, 0.013336181640625, -0.022430419921875, -0.0109710693359375, -0.004199981689453125, 0.009002685546875, 0.01507568359375, -0.0241851806640625, -0.0195159912109375, 0.001739501953125, -0.06353759765625, -0.00525665283203125, 0.0209197998046875, 0.0731201171875, 0.01265716552734375, -0.0562744140625, 0.033111572265625, 0.024871826171875, -0.0517578125, -0.109130859375, -0.047821044921875, -0.049774169921875, 0.069580078125, -0.007526397705078125, 0.006786346435546875, -0.040924072265625, 0.0223846435546875, 0.041778564453125, -0.014556884765625, -0.0004699230194091797, -0.020233154296875, -0.00983428955078125, -0.0264739990234375, 0.047637939453125, 0.007732391357421875, -0.006542205810546875, 0.0011653900146484375, 0.028289794921875, 0.01529693603515625, -0.0184173583984375, 0.026092529296875, 0.03369140625, -0.0086822509765625, 0.0109405517578125, 0.00955963134765625, -0.050384521484375, -0.03997802734375, 0.00893402099609375, -0.01611328125, -0.02972412109375, 0.03375244140625, -0.010711669921875, -0.0215606689453125, -0.0011005401611328125, 0.01617431640625, 0.045135498046875, 0.0137176513671875, 0.01006317138671875, 0.0423583984375, -0.0286102294921875, -0.0279083251953125, 0.0245361328125, -0.044097900390625, -0.023895263671875, 0.014068603515625, -0.0210418701171875, 0.038726806640625, -0.0115509033203125, 0.04119873046875, -0.00748443603515625, 0.01233673095703125, -0.01485443115234375, 0.03826904296875, 0.007648468017578125, 0.04095458984375, -0.0572509765625, 0.057525634765625, -0.0284271240234375, 0.0005998611450195312, 0.0161285400390625, -0.00783538818359375, 0.031982421875, -0.06689453125, 0.00988006591796875, -0.01140594482421875, 0.0217132568359375, -0.00661468505859375, 0.0159912109375, -0.023040771484375, -0.0059051513671875, -0.0036029815673828125, 0.0504150390625, -0.0540771484375, -0.0033702850341796875, 0.01340484619140625, 0.008392333984375, -0.042144775390625, -0.035980224609375, -0.0609130859375, -0.005680084228515625, -0.0151519775390625, 0.0034809112548828125, -0.034576416015625, 0.0105743408203125, -0.03057861328125, 0.006816864013671875, -0.0085601806640625, -0.032440185546875, 0.034881591796875, -0.068359375, 0.0175323486328125, -0.0208282470703125, 0.0275726318359375, -0.05633544921875, -0.0161895751953125, -0.048248291015625, -0.055023193359375, -0.0048675537109375, -0.040863037109375, 0.046051025390625, 0.0218353271484375, -0.0219573974609375, -0.015167236328125, 0.02716064453125, -0.002399444580078125, -0.01543426513671875, 0.02484130859375, -0.00673675537109375, 0.019134521484375, 0.03070068359375, -0.0002079010009765625, -0.00229644775390625, 0.007965087890625, -0.01392364501953125, -0.061279296875, -0.03546142578125, -0.029052734375, -0.01220703125, 0.02496337890625, -0.02032470703125, -0.0157012939453125, -0.0249176025390625, -0.012420654296875, -0.0086517333984375, 0.0045623779296875, -0.028564453125, -0.011077880859375, -0.0221710205078125, 0.0272674560546875, -0.0254058837890625, -0.01324462890625, 0.00601959228515625, 0.031524658203125, 0.020538330078125, -0.004726409912109375, -0.0303802490234375, 0.02105712890625, 0.033172607421875, -0.007297515869140625, 0.0694580078125, 0.01006317138671875, -0.0283050537109375, 0.0867919921875, 0.01169586181640625, -0.007228851318359375, 0.018829345703125, 0.0290985107421875, 0.0350341796875, 0.00745391845703125, -0.0202789306640625, 0.03497314453125, -0.031982421875, 0.0003833770751953125, -0.004695892333984375, 0.03192138671875, 0.005687713623046875, -0.0255126953125, -0.0201873779296875, 0.0015363693237304688, 0.0165252685546875, -0.0188446044921875, 0.0014314651489257812, -0.026092529296875, 0.0693359375, 0.034423828125, -0.0046844482421875, 0.03631591796875, 0.040252685546875, -0.0191497802734375, 0.03497314453125, 0.0357666015625, 0.01116180419921875, 0.018707275390625, 0.05218505859375, -0.00366973876953125, -0.017333984375, 0.0011835098266601562, 0.006832122802734375, 0.01751708984375, -0.0020618438720703125, -0.039154052734375, 0.00951385498046875, 0.036224365234375, -0.044586181640625, 0.0482177734375, 0.0283355712890625, 0.0113067626953125, -0.0038909912109375, -0.0242462158203125, 0.031158447265625, 0.0114288330078125, -0.02508544921875, -0.014312744140625, 0.01458740234375, -0.022552490234375, -0.0186920166015625, 0.0204620361328125, -0.00832366943359375, 0.004650115966796875, -0.0070953369140625, 0.04779052734375, 0.03619384765625, 0.03387451171875, 0.0228424072265625, -0.0258331298828125, -0.0227508544921875, 0.03253173828125, -0.024993896484375, -0.0460205078125, -0.0150604248046875, 0.023773193359375, 0.0263671875, -0.01508331298828125, -0.01338958740234375, 0.017364501953125, 0.020660400390625, -0.03167724609375, 0.0200958251953125, 0.0130615234375, -0.0218963623046875, -0.028228759765625, -0.00009733438491821289, 0.0273284912109375, 0.040679931640625, 0.026031494140625, 0.004848480224609375, 0.0205841064453125, -0.00008016824722290039, -0.01047515869140625, -0.034454345703125, -0.0118255615234375, 0.006877899169921875, 0.01093292236328125, 0.0095367431640625, -0.0017976760864257812, -0.07611083984375, -0.035308837890625, -0.0015659332275390625, -0.015106201171875, 0.02685546875, -0.0266265869140625, 0.0110626220703125, -0.054595947265625, 0.0298614501953125, -0.0264129638671875, 0.01342010498046875, 0.017303466796875, -0.001384735107421875, -0.029022216796875, -0.00888824462890625, -0.045440673828125, -0.0228271484375, -0.0190887451171875, -0.017303466796875, -0.0095672607421875, 0.00278472900390625, -0.011627197265625, 0.0014390945434570312, -0.0200958251953125, -0.0177459716796875, -0.003391265869140625, 0.0196685791015625, 0.01715087890625, 0.0045623779296875, -0.05548095703125, 0.0784912109375, 0.0181427001953125, 0.0211944580078125, -0.01480865478515625, 0.02587890625, 0.01497650146484375, -0.001934051513671875, -0.0184326171875, -0.0860595703125, 0.03033447265625, -0.007122039794921875, -0.01119232177734375, 0.04473876953125, 0.037445068359375, 0.0286865234375, 0.059539794921875, -0.00033402442932128906, 0.01390838623046875, -0.0007534027099609375, 0.0021495819091796875, -0.0221099853515625, 0.014251708984375, 0.06317138671875, -0.00110626220703125, -0.0247039794921875, -0.0119781494140625, -0.0301666259765625, 0.036224365234375, 0.004486083984375, 0.0030307769775390625, -0.01605224609375, -0.04156494140625, 0.02679443359375, 0.00861358642578125, -0.01549530029296875, 0.023406982421875, 0.0019626617431640625, 0.00368499755859375, 0.0306854248046875, 0.01493072509765625, -0.05145263671875, -0.0592041015625, 0.0143280029296875, -0.006664276123046875, -0.0201263427734375, 0.0098419189453125, -0.0094146728515625, 0.01169586181640625, 0.050537109375, 0.05474853515625, -0.0706787109375, 0.01148223876953125, -0.00724029541015625, -0.021148681640625, -0.0122833251953125, -0.046875, 0.040771484375, 0.0137176513671875, 0.060760498046875, 0.0694580078125, -0.01494598388671875, 0.034881591796875, -0.0130462646484375, -0.022613525390625, -0.02685546875, 0.00896453857421875, 0.0213775634765625, -0.05389404296875, 0.03399658203125, 0.0239715576171875, -0.0020580291748046875, -0.02569580078125, 0.01111602783203125, 0.0083160400390625, -0.0301055908203125, -0.04193115234375, 0.006866455078125, -0.0049896240234375, -0.0289154052734375, -0.049224853515625, -0.0021572113037109375, 0.04132080078125, 0.04205322265625, -0.0205078125, -0.0184478759765625, 0.02032470703125, 0.035064697265625, -0.047576904296875, -0.035552978515625, 0.0218658447265625, -0.00644683837890625, -0.03875732421875, 0.0181427001953125, -0.03033447265625, -0.040863037109375, -0.0023651123046875, -0.0162811279296875, 0.059326171875, -0.00972747802734375, -0.031585693359375, -0.00476837158203125, 0.00382232666015625, 0.0258026123046875, -0.0128326416015625, 0.027099609375, -0.075439453125, -0.0565185546875, 0.017791748046875, -0.05633544921875, -0.03424072265625, -0.036407470703125, -0.05938720703125, 0.1102294921875, 0.00469207763671875, 0.0310516357421875, -0.01242828369140625, 0.048828125, -0.0052947998046875, 0.023406982421875, -0.02471923828125, 0.0168304443359375, 0.01280975341796875, 0.022613525390625, -0.00870513916015625, 0.0056610107421875, 0.0011749267578125, -0.0131072998046875, -0.01383209228515625, -0.01050567626953125, 0.04449462890625, 0.0174713134765625, 0.0611572265625, 0.0601806640625, 0.0092315673828125, -0.047607421875, 0.00365447998046875, -0.0166168212890625, 0.00890350341796875, -0.00592041015625, 0.032257080078125, -0.048736572265625, 0.003543853759765625, 0.0200347900390625, 0.0031414031982421875, 0.004730224609375, -0.0130615234375, -0.031005859375, -0.0430908203125, 0.02294921875, 0.01477813720703125, 0.06329345703125, -0.026397705078125, 0.0660400390625, 0.0142669677734375, 0.01148223876953125, -0.045806884765625, -0.0240936279296875, 0.028594970703125, -0.00274658203125, 0.01174163818359375, 0.0638427734375, 0.0256500244140625, 0.024444580078125, 0.0286102294921875, 0.0181427001953125, 0.0011072158813476562, 0.017303466796875, 0.017974853515625, 0.02490234375, 0.03955078125, -0.003910064697265625, -0.019744873046875, 0.0028362274169921875, 0.03289794921875, -0.0183258056640625, 0.034515380859375, -0.0083465576171875, 0.012237548828125, 0.0214385986328125, -0.05853271484375, 0.02545166015625, 0.0352783203125, 0.010101318359375, -0.002895355224609375, -0.00861358642578125, 0.006359100341796875, -0.03228759765625, 0.013458251953125, 0.01129913330078125, 0.048919677734375, 0.041595458984375, -0.05224609375, 0.0223236083984375, 0.0254058837890625, 0.0396728515625, 0.0089111328125, 0.0281982421875, 0.0248260498046875, -0.0137939453125, -0.0222625732421875, 0.04620361328125, 0.0026569366455078125, 0.0194549560546875, -0.0439453125, -0.020050048828125, -0.00438690185546875, 0.03131103515625, 0.0244903564453125, 0.039306640625, 0.059661865234375, 0.0278778076171875, -0.0191192626953125, 0.0015344619750976562, 0.0182952880859375, -0.0225372314453125, 0.054107666015625, 0.0152587890625, -0.0070953369140625, -0.01824951171875, -0.046234130859375, -0.030029296875, 0.052276611328125, 0.008575439453125, -0.02508544921875, 0.0225982666015625, 0.0015382766723632812, -0.03057861328125, 0.0293426513671875, -0.01336669921875, 0.08355712890625, 0.0121612548828125, -0.03375244140625, -0.0132598876953125, -0.0132598876953125, 0.01303863525390625, 0.0022525787353515625, 0.0229339599609375, 0.00728607177734375, 0.020050048828125, 0.08514404296875, 0.0008535385131835938, 0.0206298828125, 0.016693115234375, -0.007808685302734375, -0.0203704833984375, 0.06683349609375, 0.026031494140625, 0.0065765380859375, 0.009674072265625, 0.027313232421875, 0.018341064453125, 0.0276031494140625, 0.0164947509765625, -0.006866455078125, 0.01544952392578125, 0.0667724609375, -0.00960540771484375, 0.035552978515625, 0.03155517578125, 0.044677734375, -0.0240325927734375, 0.0108642578125, -0.027862548828125, -0.038177490234375, 0.03656005859375, -0.008453369140625, 0.00563812255859375, 0.01763916015625, -0.0243988037109375, 0.0211944580078125, 0.0318603515625, 0.040771484375, -0.0152587890625, -0.030670166015625, 0.00460052490234375, 0.017303466796875, 0.01328277587890625, 0.053802490234375, 0.01137542724609375, -0.02667236328125, -0.0103302001953125, -0.03973388671875, 0.0112762451171875, 0.0038509368896484375, -0.00720977783203125, 0.006603240966796875, 0.01873779296875, -0.035369873046875, -0.0024051666259765625, -0.005344390869140625, 0.01068878173828125, 0.0140228271484375, 0.0032711029052734375, 0.0172882080078125, -0.0092010498046875, -0.007595062255859375, 0.034576416015625, 0.0152587890625, 0.006877899169921875, -0.005023956298828125, 0.02117919921875, -0.0460205078125, -0.053009033203125, -0.026702880859375, -0.032562255859375, -0.027618408203125, 0.0208892822265625, 0.028045654296875, 0.00534820556640625, -0.004924774169921875, -0.046356201171875, -0.0203704833984375, 0.0240325927734375, -0.00827789306640625, -0.036834716796875, 0.01019287109375, -0.042236328125, 0.033172607421875, -0.0191650390625, 0.034912109375, -0.0310516357421875, -0.0204620361328125, -0.045166015625, -0.023895263671875, -0.046051025390625, 0.042083740234375, -0.0098876953125, 0.004863739013671875, 0.0452880859375, -0.030426025390625, -0.0085296630859375, -0.030242919921875, 0.0224761962890625, 0.0159454345703125, -0.00699615478515625, -0.039093017578125, -0.002994537353515625, 0.044403076171875, 0.022308349609375, -0.0445556640625, -0.04486083984375, 0.00975799560546875, 0.058197021484375, -0.005718231201171875, -0.00323486328125, 0.005527496337890625, -0.03955078125, -0.06903076171875, 0.08673095703125, -0.014251708984375, -0.0244903564453125, -0.044036865234375, 0.01386260986328125, 0.0156097412109375, -0.0178375244140625, -0.0280609130859375, -0.035552978515625, -0.02459716796875, 0.024749755859375, 0.0274200439453125, 0.0288848876953125, 0.040313720703125, -0.0060272216796875, -0.034637451171875, -0.0029277801513671875, -0.020477294921875, 0.03497314453125, -0.048919677734375, 0.039642333984375, 0.01280975341796875, 0.0562744140625, 0.0168609619140625, 0.006572723388671875, 0.016632080078125, -0.0355224609375, 0.01316070556640625, 0.0283966064453125, -0.04486083984375, -0.0034503936767578125, 0.066650390625, 0.0501708984375, 0.02777099609375, -0.0260009765625, -0.0242462158203125, -0.0335693359375, 0.0128326416015625, -0.0034656524658203125, -0.00904083251953125, -0.0254974365234375, 0.0150909423828125, 0.0037555694580078125, -0.01053619384765625, 0.00641632080078125, -0.018157958984375, -0.047149658203125, 0.0038394927978515625, 0.004878997802734375, 0.015869140625, -0.038360595703125, -0.06646728515625, 0.08935546875, -0.0416259765625, -0.00010794401168823242, 0.0404052734375, 0.03564453125, 0.039031982421875, 0.05328369140625, 0.005344390869140625, 0.0736083984375, -0.0858154296875, -0.024810791015625, -0.006755828857421875, 0.034698486328125, -0.049285888671875, 0.006420135498046875, 0.00975799560546875, 0.04266357421875, -0.0019016265869140625, 0.06451416015625, -0.00782012939453125, 0.025054931640625, -0.0005888938903808594, -0.0178375244140625, -0.06884765625, 0.00537872314453125, -0.037139892578125, 0.0087432861328125, 0.010589599609375, 0.0231170654296875, 0.09375, -0.02081298828125, -0.01317596435546875, 0.01922607421875, -0.02606201171875, -0.03521728515625, 0.0290069580078125, -0.07269287109375, 0.007404327392578125, 0.005519866943359375 ]
d76c656f659994cec3084b30f49c8c434b952908
Wordpress Stackexchange Q: Using FlexNav with WordPress Has anyone managed to get the FlexNav plugin - http://jasonweaver.name/lab/flexiblenavigation/ - working with WordPress? I've got an HTML version of the site working fine, but I'm running into trouble when integrating with WordPress as WordPress uses it's own classes, ids etc. on menu items and this seems to override the flexnav plugin. I'm wondering if I should be trying to replicate the menu structure that the plugin creates using a custom walker function, or just re-writing the CSS with what WordPress gives me? Any advice appreciated! Thanks A: You don't need a custom walker function. You can alter wp_nav_menu like this: wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'flexnav', //Adding the class for FlexNav 'items_wrap' => '<ul data-breakpoint="800" id="%1$s" class="%2$s">%3$s</ul>', // Adding data-breakpoint for FlexNav )); and proper script init should be: jQuery(document).ready(function($){ $(".flexnav").flexNav({ }); }); Drop menu button somewhere outside navigation: <div class="menu-button">Menu</div> But still does not work. As toscho refered, FlexNav needs a small modification to work in WordPress. Take a look this mod here http://pastebin.com/ZEMQFFsA UPDATE: Since v.1.0 FlexNav support jQuery noConflict mode
Q: Using FlexNav with WordPress Has anyone managed to get the FlexNav plugin - http://jasonweaver.name/lab/flexiblenavigation/ - working with WordPress? I've got an HTML version of the site working fine, but I'm running into trouble when integrating with WordPress as WordPress uses it's own classes, ids etc. on menu items and this seems to override the flexnav plugin. I'm wondering if I should be trying to replicate the menu structure that the plugin creates using a custom walker function, or just re-writing the CSS with what WordPress gives me? Any advice appreciated! Thanks A: You don't need a custom walker function. You can alter wp_nav_menu like this: wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'flexnav', //Adding the class for FlexNav 'items_wrap' => '<ul data-breakpoint="800" id="%1$s" class="%2$s">%3$s</ul>', // Adding data-breakpoint for FlexNav )); and proper script init should be: jQuery(document).ready(function($){ $(".flexnav").flexNav({ }); }); Drop menu button somewhere outside navigation: <div class="menu-button">Menu</div> But still does not work. As toscho refered, FlexNav needs a small modification to work in WordPress. Take a look this mod here http://pastebin.com/ZEMQFFsA UPDATE: Since v.1.0 FlexNav support jQuery noConflict mode
wordpress
{ "language": "en", "length": 181, "provenance": "stackexchange_00019.jsonl.gz:432923", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/101021" }
[ 0.00986480712890625, 0.0193023681640625, -0.01081085205078125, 0.058868408203125, 0.030975341796875, -0.047637939453125, 0.08038330078125, -0.06707763671875, -0.002353668212890625, -0.0151519775390625, -0.05560302734375, 0.021331787109375, -0.059295654296875, 0.0016841888427734375, -0.0030689239501953125, -0.058135986328125, 0.055816650390625, -0.0205535888671875, 0.02947998046875, -0.008697509765625, -0.0006084442138671875, 0.0394287109375, 0.031982421875, 0.09759521484375, 0.047332763671875, -0.0236663818359375, 0.0797119140625, -0.03668212890625, 0.044097900390625, -0.003009796142578125, 0.0300445556640625, -0.048828125, 0.00734710693359375, 0.0196380615234375, -0.0322265625, -0.06549072265625, -0.021881103515625, 0.01316070556640625, -0.0171051025390625, 0.00896453857421875, 0.042388916015625, -0.03485107421875, -0.025054931640625, 0.059112548828125, -0.0160675048828125, -0.0672607421875, 0.041656494140625, -0.04364013671875, -0.0018634796142578125, 0.01519775390625, 0.0213165283203125, 0.007747650146484375, 0.03533935546875, -0.00054168701171875, -0.005401611328125, -0.00804901123046875, -0.023193359375, -0.01284027099609375, 0.00860595703125, 0.0872802734375, 0.0253143310546875, 0.0123138427734375, -0.01442718505859375, -0.0615234375, -0.0129547119140625, -0.01385498046875, 0.01483917236328125, -0.0068817138671875, -0.030975341796875, 0.01087188720703125, 0.043243408203125, -0.02252197265625, -0.046875, 0.0025882720947265625, -0.0308837890625, -0.0312347412109375, 0.053863525390625, -0.04925537109375, -0.024169921875, 0.0341796875, 0.0260467529296875, 0.03643798828125, -0.05157470703125, -0.03192138671875, 0.03546142578125, -0.00664520263671875, -0.00550079345703125, -0.0234375, -0.025421142578125, 0.0016803741455078125, -0.0183258056640625, 0.0116729736328125, -0.031158447265625, 0.0245819091796875, -0.032012939453125, 0.0149993896484375, 0.003849029541015625, 0.0333251953125, 0.0136260986328125, 0.071044921875, 0.0246124267578125, -0.082763671875, 0.1090087890625, -0.075927734375, -0.01081085205078125, 0.02618408203125, 0.021728515625, 0.042938232421875, 0.039520263671875, 0.02520751953125, 0.0004169940948486328, 0.04193115234375, -0.008026123046875, 0.0273590087890625, -0.051300048828125, -0.025604248046875, -0.0628662109375, -0.0171051025390625, -0.019012451171875, -0.01461029052734375, 0.0109405517578125, 0.023223876953125, -0.0614013671875, 0.02142333984375, 0.026641845703125, 0.0189361572265625, 0.0130615234375, -0.0002875328063964844, -0.00542449951171875, 0.0035076141357421875, -0.01206207275390625, 0.00262451171875, 0.039031982421875, 0.04443359375, -0.0005998611450195312, -0.0093841552734375, 0.03863525390625, 0.01265716552734375, -0.0016279220581054688, -0.0211181640625, 0.0228118896484375, 0.0234832763671875, 0.0021419525146484375, -0.03973388671875, -0.040496826171875, -0.0062103271484375, 0.03839111328125, 0.041656494140625, -0.03717041015625, -0.0899658203125, 0.04876708984375, 0.0046539306640625, 0.053680419921875, -0.004329681396484375, -0.01387786865234375, -0.04248046875, 0.046478271484375, -0.0460205078125, -0.0253143310546875, -0.06793212890625, -0.049591064453125, 0.00440216064453125, 0.054931640625, -0.082275390625, -0.04852294921875, -0.015472412109375, -0.04278564453125, -0.0003795623779296875, 0.0145416259765625, 0.052520751953125, -0.0111846923828125, -0.0181732177734375, -0.01629638671875, 0.024871826171875, -0.004375457763671875, 0.017822265625, 0.0102691650390625, -0.004543304443359375, 0.040374755859375, 0.0008301734924316406, -0.0408935546875, -0.03814697265625, 0.07525634765625, -0.042694091796875, -0.0179443359375, 0.007053375244140625, 0.019012451171875, 0.03521728515625, -0.0017547607421875, 0.016693115234375, 0.052520751953125, 0.0199432373046875, -0.03936767578125, 0.0192108154296875, -0.00557708740234375, -0.00844573974609375, -0.01276397705078125, 0.0123443603515625, -0.0054931640625, -0.0175018310546875, 0.0016050338745117188, 0.01183319091796875, -0.007160186767578125, 0.006443023681640625, -0.0433349609375, 0.0305023193359375, -0.0259246826171875, 0.048248291015625, 0.0330810546875, 0.0406494140625, -0.004436492919921875, 0.020416259765625, -0.01364898681640625, -0.03582763671875, -0.035400390625, -0.001758575439453125, -0.00516510009765625, 0.023345947265625, -0.007427215576171875, -0.004779815673828125, 0.01605224609375, -0.01131439208984375, 0.0216217041015625, 0.0260467529296875, 0.005001068115234375, -0.03814697265625, -0.014495849609375, -0.0299224853515625, -0.0341796875, -0.01241302490234375, -0.033477783203125, 0.0548095703125, 0.00818634033203125, 0.011810302734375, -0.040008544921875, -0.01137542724609375, 0.0005931854248046875, -0.040252685546875, 0.02008056640625, 0.04644775390625, 0.02899169921875, 0.04461669921875, 0.0020294189453125, 0.014007568359375, 0.056976318359375, -0.02349853515625, 0.01239013671875, 0.001194000244140625, -0.0242767333984375, -0.0209197998046875, 0.0506591796875, 0.00982666015625, 0.033447265625, 0.0548095703125, 0.030609130859375, 0.0114593505859375, -0.0168609619140625, -0.01934814453125, -0.02105712890625, 0.0063934326171875, 0.00661468505859375, -0.0018491744995117188, -0.022918701171875, -0.007843017578125, 0.0462646484375, -0.04290771484375, 0.0300445556640625, 0.0144500732421875, 0.0013484954833984375, -0.0231781005859375, 0.01519775390625, -0.0110626220703125, -0.0034637451171875, 0.05670166015625, 0.0384521484375, 0.040557861328125, -0.023712158203125, -0.0194854736328125, 0.0025768280029296875, 0.039031982421875, -0.00911712646484375, 0.01776123046875, 0.0772705078125, -0.01303863525390625, 0.0022754669189453125, -0.0396728515625, 0.043426513671875, -0.0255889892578125, 0.01393890380859375, 0.01430511474609375, 0.033203125, 0.0170135498046875, -0.0139312744140625, 0.03680419921875, -0.004001617431640625, -0.0229339599609375, 0.059356689453125, -0.012176513671875, 0.0204315185546875, -0.014923095703125, 0.0509033203125, 0.050323486328125, -0.01641845703125, -0.0004696846008300781, 0.004913330078125, 0.00916290283203125, 0.01198577880859375, -0.01081085205078125, -0.0004553794860839844, -0.01265716552734375, 0.0157318115234375, 0.05999755859375, -0.0004792213439941406, 0.00452423095703125, -0.00391387939453125, -0.04852294921875, -0.01375579833984375, -0.0013494491577148438, -0.0908203125, -0.0254669189453125, -0.010009765625, -0.0265655517578125, 0.10125732421875, 0.0204620361328125, 0.00972747802734375, -0.0623779296875, 0.07489013671875, 0.032928466796875, -0.0104827880859375, -0.0218963623046875, -0.0256805419921875, -0.01873779296875, -0.047607421875, 0.00986480712890625, 0.00585174560546875, 0.021820068359375, 0.01552581787109375, -0.004932403564453125, -0.00013566017150878906, -0.0499267578125, 0.0213623046875, 0.0316162109375, -0.00423431396484375, 0.032745361328125, 0.019195556640625, -0.0428466796875, -0.01473236083984375, 0.0108184814453125, 0.0123443603515625, 0.0026187896728515625, -0.0021457672119140625, -0.01446533203125, -0.00452423095703125, 0.007335662841796875, 0.0380859375, -0.00608062744140625, -0.002132415771484375, 0.0180206298828125, 0.0296783447265625, -0.041290283203125, 0.002162933349609375, -0.0271148681640625, -0.0338134765625, 0.01177978515625, 0.044281005859375, -0.02471923828125, -0.03240966796875, -0.006908416748046875, 0.044403076171875, 0.00417327880859375, 0.031280517578125, -0.00171661376953125, 0.010894775390625, -0.0047454833984375, 0.0225067138671875, -0.048675537109375, 0.0190277099609375, -0.0208892822265625, 0.005138397216796875, -0.004795074462890625, -0.0008778572082519531, 0.0013303756713867188, -0.00006723403930664062, -0.00447845458984375, -0.043731689453125, 0.03350830078125, -0.02386474609375, -0.0142974853515625, 0.013458251953125, -0.00017273426055908203, 0.0253753662109375, 0.06561279296875, -0.02618408203125, -0.0169677734375, 0.0121002197265625, 0.013336181640625, 0.0029697418212890625, 0.0186614990234375, -0.0418701171875, -0.02886962890625, -0.061370849609375, 0.00531005859375, -0.007045745849609375, -0.04498291015625, -0.0011720657348632812, -0.03094482421875, -0.044769287109375, -0.03955078125, 0.0184173583984375, -0.0191650390625, 0.020904541015625, -0.0029277801513671875, 0.0036106109619140625, -0.0154876708984375, -0.003734588623046875, -0.027923583984375, -0.0460205078125, -0.00615692138671875, -0.032073974609375, 0.055938720703125, 0.01091766357421875, 0.0129547119140625, -0.036224365234375, 0.0289306640625, 0.052398681640625, 0.01387786865234375, 0.027923583984375, -0.0322265625, 0.0303497314453125, 0.01052093505859375, 0.032684326171875, -0.0193634033203125, 0.0059051513671875, 0.011383056640625, -0.05426025390625, 0.0192718505859375, -0.014404296875, 0.01422882080078125, 0.0289154052734375, -0.047576904296875, -0.065673828125, -0.05377197265625, -0.021881103515625, -0.0163421630859375, 0.0018310546875, -0.007061004638671875, -0.042633056640625, -0.050140380859375, 0.002315521240234375, -0.0296783447265625, 0.009552001953125, 0.021697998046875, 0.0382080078125, 0.0180206298828125, 0.00708770751953125, -0.005992889404296875, 0.055267333984375, 0.03167724609375, 0.024383544921875, 0.044403076171875, -0.0100555419921875, -0.0124359130859375, 0.05816650390625, 0.01226806640625, 0.00408935546875, -0.00031685829162597656, 0.0213470458984375, 0.0191192626953125, -0.01561737060546875, -0.0016994476318359375, 0.02142333984375, -0.019012451171875, 0.019195556640625, -0.0166473388671875, 0.0031948089599609375, 0.01227569580078125, 0.0111083984375, -0.0235443115234375, 0.01377105712890625, -0.0154266357421875, -0.01276397705078125, 0.003154754638671875, -0.03564453125, 0.0921630859375, 0.06787109375, -0.026458740234375, 0.0537109375, 0.039520263671875, -0.0247344970703125, 0.015716552734375, 0.024993896484375, 0.00576019287109375, 0.0328369140625, 0.01302337646484375, -0.01012420654296875, -0.0259552001953125, -0.01439666748046875, 0.06317138671875, 0.023284912109375, -0.0238800048828125, -0.0283660888671875, 0.005908966064453125, 0.0343017578125, -0.008331298828125, 0.0233154296875, 0.054595947265625, 0.0212554931640625, -0.0047454833984375, -0.028167724609375, 0.00748443603515625, -0.0171356201171875, -0.0484619140625, 0.03839111328125, 0.02276611328125, -0.0238800048828125, -0.0158538818359375, 0.041595458984375, 0.0282440185546875, -0.0198516845703125, 0.0030117034912109375, -0.0257720947265625, 0.00560760498046875, 0.0192413330078125, 0.0308837890625, -0.03326416015625, -0.00013113021850585938, -0.0026035308837890625, 0.039581298828125, -0.017364501953125, -0.012176513671875, 0.007049560546875, 0.004650115966796875, -0.01187896728515625, -0.00959014892578125, 0.0259857177734375, 0.01256561279296875, 0.0021266937255859375, 0.0243072509765625, -0.04852294921875, -0.0740966796875, 0.0005736351013183594, 0.08062744140625, 0.059906005859375, -0.0533447265625, 0.00098419189453125, -0.0082855224609375, 0.0170135498046875, -0.0118255615234375, -0.0296173095703125, -0.033233642578125, 0.0005669593811035156, 0.0157012939453125, -0.026214599609375, -0.020843505859375, 0.022552490234375, -0.09930419921875, -0.0032596588134765625, -0.033477783203125, -0.0243682861328125, 0.05181884765625, -0.0295867919921875, 0.0037326812744140625, -0.021392822265625, 0.016204833984375, -0.064697265625, -0.0042724609375, 0.04766845703125, 0.03857421875, 0.027618408203125, -0.035430908203125, -0.0007424354553222656, -0.03253173828125, 0.0229644775390625, 0.01641845703125, -0.0086517333984375, -0.005558013916015625, 0.0274658203125, -0.00595855712890625, 0.033050537109375, -0.008544921875, -0.0244598388671875, 0.014892578125, 0.0310821533203125, -0.01230621337890625, -0.0275726318359375, 0.066650390625, 0.01438140869140625, 0.037872314453125, 0.005458831787109375, 0.032470703125, 0.000652313232421875, -0.0243682861328125, 0.0011148452758789062, -0.0303802490234375, -0.004062652587890625, -0.0203094482421875, -0.005970001220703125, 0.02227783203125, 0.0615234375, -0.0034809112548828125, 0.049713134765625, -0.0178680419921875, 0.007965087890625, -0.005802154541015625, -0.00615692138671875, 0.0009794235229492188, -0.00030350685119628906, 0.09051513671875, -0.003421783447265625, -0.00830841064453125, -0.0078582763671875, 0.0213775634765625, -0.029296875, 0.0016231536865234375, -0.0258941650390625, -0.0125885009765625, -0.041778564453125, 0.059844970703125, 0.063232421875, -0.0037822723388671875, 0.0284576416015625, 0.00971221923828125, -0.00738525390625, -0.0211029052734375, 0.006931304931640625, -0.02276611328125, 0.01168060302734375, 0.03125, -0.01007843017578125, 0.0036144256591796875, 0.0006709098815917969, -0.0101318359375, 0.0031070709228515625, 0.0190277099609375, 0.022430419921875, -0.034149169921875, 0.022674560546875, -0.0081939697265625, -0.0280303955078125, 0.039276123046875, -0.005340576171875, -0.007293701171875, -0.0037403106689453125, 0.00223541259765625, -0.0147705078125, -0.045562744140625, -0.007579803466796875, 0.004856109619140625, 0.01177215576171875, 0.009918212890625, 0.0016679763793945312, 0.0005292892456054688, -0.0278167724609375, -0.014984130859375, 0.005306243896484375, 0.03045654296875, 0.005306243896484375, -0.01320648193359375, 0.030853271484375, -0.056396484375, -0.0310821533203125, 0.02166748046875, -0.0106658935546875, -0.0029010772705078125, 0.0171356201171875, 0.0274810791015625, 0.035491943359375, 0.062103271484375, -0.013336181640625, 0.01265716552734375, 0.0400390625, -0.0008749961853027344, 0.0064239501953125, -0.018463134765625, 0.0440673828125, -0.0265045166015625, -0.037689208984375, 0.0087127685546875, -0.016845703125, -0.049468994140625, -0.0130767822265625, 0.02325439453125, 0.0941162109375, -0.061614990234375, -0.006542205810546875, 0.0128936767578125, 0.0267486572265625, 0.00971221923828125, 0.004940032958984375, 0.0248565673828125, -0.04437255859375, -0.0168304443359375, 0.02386474609375, -0.01165771484375, -0.00855255126953125, 0.004642486572265625, -0.00331878662109375, 0.054962158203125, -0.0223236083984375, -0.02667236328125, 0.0269775390625, 0.03253173828125, -0.0049591064453125, 0.0229339599609375, -0.04156494140625, 0.03460693359375, -0.016326904296875, 0.024383544921875, -0.01430511474609375, 0.0274505615234375, 0.00543975830078125, -0.02093505859375, -0.06304931640625, -0.017852783203125, -0.024444580078125, 0.0223388671875, 0.0732421875, 0.06622314453125, 0.07037353515625, 0.0009055137634277344, -0.01177215576171875, -0.022674560546875, -0.0021800994873046875, -0.015380859375, 0.01445770263671875, -0.05194091796875, -0.015106201171875, -0.000016391277313232422, 0.0017566680908203125, 0.001232147216796875, -0.00003337860107421875, -0.018157958984375, -0.0386962890625, 0.0177154541015625, -0.005008697509765625, 0.0219573974609375, 0.0083465576171875, 0.021087646484375, -0.0023708343505859375, -0.0286865234375, -0.06353759765625, -0.00981903076171875, 0.01285552978515625, -0.005428314208984375, -0.02093505859375, 0.0162200927734375, 0.0057220458984375, -0.037628173828125, -0.0016651153564453125, -0.01435089111328125, 0.01357269287109375, -0.0002818107604980469, 0.0190887451171875, -0.006099700927734375, 0.032867431640625, -0.054351806640625, -0.0609130859375, 0.06817626953125, 0.0574951171875, -0.004425048828125, -0.04522705078125, -0.01007080078125, -0.01114654541015625, 0.0220947265625, -0.0116119384765625, 0.0029449462890625, -0.05426025390625, -0.0069580078125, 0.0007734298706054688, 0.0018835067749023438, 0.0182342529296875, 0.0084686279296875, 0.030792236328125, 0.076904296875, -0.05267333984375, 0.00769805908203125, -0.032928466796875, 0.0240325927734375, 0.00347137451171875, 0.046478271484375, -0.01079559326171875, 0.058807373046875, -0.0309600830078125, -0.0159759521484375, 0.018585205078125, 0.00826263427734375, -0.007122039794921875, -0.0360107421875, -0.005115509033203125, -0.056884765625, -0.0029582977294921875, 0.0312042236328125, 0.00469207763671875, 0.027099609375, 0.0283966064453125, 0.0159149169921875, 0.0027217864990234375, 0.0023555755615234375, 0.016265869140625, -0.0201416015625, -0.042083740234375, -0.0129852294921875, -0.0231170654296875, 0.00934600830078125, 0.0031261444091796875, 0.0384521484375, 0.03289794921875, -0.004619598388671875, -0.015777587890625, 0.01971435546875, 0.0171661376953125, -0.021514892578125, -0.013336181640625, -0.02496337890625, 0.0099945068359375, 0.0014476776123046875, -0.0697021484375, -0.0251922607421875, -0.005786895751953125, -0.0007729530334472656, 0.00852203369140625, 0.023681640625, 0.005603790283203125, 0.00710296630859375, 0.0019521713256835938, -0.0261077880859375, 0.0142669677734375, -0.0015954971313476562, 0.007083892822265625, 0.021820068359375, -0.002964019775390625, 0.004894256591796875, -0.054779052734375, -0.0283966064453125, -0.0517578125, 0.0447998046875, 0.0187530517578125, 0.0192718505859375, 0.0014543533325195312, 0.046722412109375, 0.0043487548828125, -0.04156494140625, 0.0221405029296875, -0.005344390869140625, 0.0008134841918945312, -0.02606201171875, -0.0229034423828125, 0.0004208087921142578, 0.0011272430419921875, 0.0158233642578125, 0.053070068359375, -0.04144287109375, -0.01515960693359375, 0.0499267578125, 0.00649261474609375, -0.039306640625, 0.00215911865234375, -0.0256500244140625, -0.0063323974609375, -0.0087127685546875, -0.025726318359375, 0.04437255859375, 0.01470184326171875, -0.021148681640625, 0.034149169921875, 0.044036865234375, -0.0016012191772460938, 0.0213623046875, -0.01428985595703125, 0.033660888671875, 0.0217437744140625, 0.0206298828125, -0.058837890625, -0.0027027130126953125, 0.008514404296875, -0.008941650390625, 0.013702392578125, 0.006473541259765625, 0.030975341796875, -0.036895751953125, 0.046600341796875, 0.062744140625, 0.061248779296875, -0.0311431884765625, 0.024139404296875, 0.054046630859375, 0.002208709716796875, 0.01202392578125, -0.033447265625, -0.0345458984375, -0.05120849609375, -0.009185791015625, 0.035400390625, -0.04302978515625, -0.0249176025390625, -0.1102294921875, 0.0272674560546875, 0.0041656494140625, 0.005374908447265625, -0.06866455078125, 0.052703857421875, -0.0236358642578125, 0.06475830078125, -0.0467529296875, 0.015289306640625, -0.01453399658203125, -0.0023517608642578125, -0.0196990966796875, 0.0280914306640625, -0.025665283203125, 0.0108795166015625, 0.002384185791015625, 0.01110076904296875, 0.016387939453125, -0.02301025390625, -0.032989501953125, 0.0019664764404296875, 0.03936767578125, 0.057861328125, 0.050506591796875, -0.04736328125, -0.042510986328125, -0.0177154541015625, 0.0277862548828125, 0.0384521484375, 0.0150604248046875, -0.039031982421875, -0.06439208984375, 0.0166473388671875, -0.035003662109375, -0.0303497314453125, -0.07342529296875, -0.09747314453125, 0.037017822265625, -0.0005669593811035156, -0.05029296875, -0.0285797119140625, -0.01270294189453125, 0.01508331298828125, -0.012054443359375, -0.0243682861328125, -0.0174560546875, -0.029815673828125, 0.0418701171875, -0.00251007080078125, 0.065185546875, -0.03302001953125, 0.00698089599609375, -0.024505615234375, 0.026275634765625, 0.0013704299926757812, 0.018463134765625, 0.001987457275390625, -0.034820556640625, 0.037200927734375, 0.0201263427734375, -0.05181884765625, -0.0166168212890625, 0.01531982421875, 0.0213775634765625, 0.032257080078125, 0.005481719970703125, -0.03179931640625, -0.0201416015625, 0.0193939208984375, -0.0182952880859375, 0.01229095458984375, 0.0014982223510742188, 0.006633758544921875, -0.0242767333984375, -0.020355224609375, 0.0019216537475585938, 0.0166168212890625, -0.054168701171875, -0.0106353759765625, 0.0202178955078125, -0.006618499755859375, -0.004024505615234375, 0.0086669921875, -0.0343017578125, -0.005802154541015625, 0.0014123916625976562, -0.0259857177734375, -0.046600341796875, 0.01513671875, 0.08258056640625, -0.044036865234375, 0.026611328125, 0.0084381103515625, 0.0047454833984375, 0.053863525390625, 0.01447296142578125, -0.0035343170166015625, 0.01537322998046875, -0.05413818359375, 0.0179901123046875, -0.01465606689453125, 0.0220184326171875, -0.047637939453125, -0.00858306884765625, -0.007442474365234375, 0.009857177734375, 0.00017130374908447266, 0.0133514404296875, -0.0203399658203125, 0.029510498046875, 0.016632080078125, 0.01239013671875, 0.0030422210693359375, 0.0258636474609375, 0.0096282958984375, 0.0311737060546875, -0.00931549072265625, -0.0219573974609375, 0.021209716796875, -0.059814453125, -0.00806427001953125, 0.0186920166015625, -0.024566650390625, -0.0400390625, 0.0303497314453125, 0.0308990478515625, -0.00838470458984375, 0.0189208984375 ]
be88045289f320b9a7705518738e109c6899d70e
Wordpress Stackexchange Q: Getting Custom Post Type content from main-site of a Multisite I have a multi-site network with 3 sub-sites: Is it possible to "link" or include custom post to all 3 sites from the main site? By include or link I don't mean to make other sites to edit them, I'm asking for the visual solution. If possible, could I do that without using a plugin? A: You could use the technique in this Stack Overflow answer, that's basically: switch_to_blog(1); //switch to main site $latest_posts = get_posts($args); foreach( $latest_posts as $post ) { // print post } restore_current_blog(); Just add 'post_type' => 'your-custom-post-type' to the query.
Q: Getting Custom Post Type content from main-site of a Multisite I have a multi-site network with 3 sub-sites: Is it possible to "link" or include custom post to all 3 sites from the main site? By include or link I don't mean to make other sites to edit them, I'm asking for the visual solution. If possible, could I do that without using a plugin? A: You could use the technique in this Stack Overflow answer, that's basically: switch_to_blog(1); //switch to main site $latest_posts = get_posts($args); foreach( $latest_posts as $post ) { // print post } restore_current_blog(); Just add 'post_type' => 'your-custom-post-type' to the query.
wordpress
{ "language": "en", "length": 106, "provenance": "stackexchange_00019.jsonl.gz:432997", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/101261" }
[ 0.0574951171875, -0.029510498046875, -0.003917694091796875, -0.0233917236328125, 0.00373077392578125, -0.0284576416015625, 0.045684814453125, -0.0004355907440185547, -0.04937744140625, 0.01483154296875, 0.00209808349609375, 0.01157379150390625, -0.03594970703125, -0.0211181640625, 0.016204833984375, -0.03411865234375, 0.047943115234375, -0.005718231201171875, 0.033721923828125, -0.00447845458984375, -0.0178070068359375, 0.016876220703125, 0.016998291015625, 0.07623291015625, 0.007572174072265625, 0.015869140625, 0.031982421875, 0.01800537109375, 0.0002225637435913086, 0.01074981689453125, 0.0189056396484375, -0.0240020751953125, 0.056182861328125, -0.03399658203125, -0.02899169921875, -0.016845703125, 0.042327880859375, -0.049224853515625, -0.02276611328125, 0.047119140625, -0.01425933837890625, 0.032257080078125, 0.03631591796875, 0.0238800048828125, -0.00785064697265625, -0.043792724609375, 0.0016889572143554688, -0.0418701171875, 0.00951385498046875, -0.01470947265625, 0.00945281982421875, -0.0273895263671875, 0.0211639404296875, -0.0537109375, -0.0186309814453125, -0.01800537109375, 0.0284423828125, -0.036346435546875, 0.0484619140625, -0.04638671875, -0.04791259765625, -0.046661376953125, 0.057281494140625, -0.0099639892578125, -0.005584716796875, 0.01088714599609375, 0.046417236328125, -0.0035419464111328125, -0.0367431640625, -0.0185699462890625, 0.0322265625, -0.00917816162109375, 0.046112060546875, -0.0031642913818359375, 0.002048492431640625, -0.051025390625, -0.008026123046875, -0.0208282470703125, 0.033355712890625, -0.02105712890625, -0.032867431640625, 0.0107879638671875, -0.053466796875, -0.0716552734375, 0.01806640625, -0.027923583984375, -0.01233673095703125, 0.005817413330078125, -0.0019855499267578125, -0.0047454833984375, -0.01495361328125, -0.00153350830078125, -0.0273590087890625, 0.056396484375, -0.00867462158203125, -0.0010290145874023438, 0.01239013671875, 0.053741455078125, -0.02691650390625, 0.022216796875, -0.047698974609375, -0.0213623046875, 0.024261474609375, -0.03900146484375, 0.01316070556640625, 0.0323486328125, 0.01203155517578125, -0.01189422607421875, 0.045074462890625, 0.017303466796875, 0.008453369140625, 0.054351806640625, 0.005847930908203125, -0.006351470947265625, -0.037109375, 0.01262664794921875, -0.0217132568359375, -0.01177978515625, -0.012542724609375, 0.0229339599609375, 0.0208587646484375, 0.0521240234375, -0.0100250244140625, -0.044921875, 0.00695037841796875, -0.0019626617431640625, -0.00391387939453125, -0.052459716796875, -0.02276611328125, 0.010955810546875, -0.026336669921875, 0.0055084228515625, 0.054718017578125, 0.0288848876953125, -0.001094818115234375, -0.0213775634765625, 0.00791168212890625, 0.01337432861328125, -0.00518798828125, 0.005321502685546875, 0.034454345703125, -0.030120849609375, -0.02740478515625, 0.00867462158203125, 0.03271484375, 0.0355224609375, 0.0233917236328125, -0.0059051513671875, -0.01548004150390625, -0.00328826904296875, 0.016693115234375, -0.0313720703125, 0.033935546875, -0.02520751953125, -0.01031494140625, -0.07550048828125, 0.0078582763671875, -0.046295166015625, 0.022491455078125, -0.056884765625, 0.01032257080078125, 0.0003180503845214844, 0.0083160400390625, 0.01220703125, -0.0113983154296875, 0.01038360595703125, -0.000030338764190673828, -0.007396697998046875, 0.03125, -0.0059814453125, -0.0026569366455078125, -0.050750732421875, 0.0269775390625, 0.021209716796875, -0.00992584228515625, 0.0380859375, 0.006866455078125, 0.02581787109375, 0.0055389404296875, 0.054290771484375, 0.01015472412109375, -0.028839111328125, 0.05072021484375, -0.01287841796875, -0.058380126953125, 0.0252532958984375, 0.0036449432373046875, 0.08477783203125, 0.0174560546875, 0.026397705078125, 0.0250396728515625, -0.020538330078125, -0.0160675048828125, 0.00260162353515625, -0.0260162353515625, -0.00962066650390625, -0.033782958984375, 0.01006317138671875, -0.0338134765625, 0.01116943359375, -0.043609619140625, 0.01506805419921875, 0.00943756103515625, 0.049560546875, 0.005939483642578125, 0.0251617431640625, -0.00634765625, 0.0308685302734375, 0.03851318359375, 0.02166748046875, 0.0016565322875976562, 0.0233612060546875, -0.01068115234375, -0.052093505859375, -0.034637451171875, 0.04400634765625, 0.001461029052734375, 0.038543701171875, 0.0007596015930175781, 0.031890869140625, -0.006191253662109375, -0.02874755859375, -0.021636962890625, 0.0023937225341796875, 0.055084228515625, -0.0031147003173828125, -0.015899658203125, -0.011016845703125, 0.020111083984375, 0.05755615234375, -0.0986328125, -0.01384735107421875, 0.0208740234375, -0.015716552734375, -0.035430908203125, 0.028564453125, 0.032989501953125, -0.01129150390625, -0.007396697998046875, 0.032379150390625, 0.02178955078125, 0.01380157470703125, 0.0004456043243408203, -0.00083160400390625, 0.0217132568359375, -0.026123046875, 0.020233154296875, -0.0129852294921875, 0.04083251953125, 0.08587646484375, -0.04254150390625, -0.003040313720703125, 0.01438140869140625, -0.0361328125, 0.00792694091796875, 0.03955078125, 0.0179595947265625, -0.004283905029296875, -0.00815582275390625, -0.0049591064453125, 0.022125244140625, -0.0116729736328125, -0.052398681640625, 0.0225372314453125, 0.01502227783203125, 0.033447265625, 0.061004638671875, 0.051605224609375, -0.01067352294921875, 0.0009508132934570312, -0.0005173683166503906, 0.0242919921875, 0.0040130615234375, 0.03497314453125, 0.031890869140625, 0.0183258056640625, -0.0242767333984375, -0.02606201171875, 0.0206298828125, 0.0169830322265625, -0.013153076171875, 0.025146484375, -0.05010986328125, -0.0185089111328125, -0.0064849853515625, -0.0350341796875, -0.0148162841796875, -0.0076751708984375, 0.019073486328125, -0.02508544921875, 0.00608062744140625, 0.006824493408203125, -0.039642333984375, 0.040191650390625, 0.018310546875, -0.038421630859375, 0.0318603515625, -0.08074951171875, 0.0638427734375, -0.05804443359375, 0.05145263671875, 0.0694580078125, -0.029144287109375, 0.0117645263671875, -0.01332855224609375, 0.048431396484375, -0.01393890380859375, 0.00498199462890625, -0.0192108154296875, -0.038116455078125, -0.045928955078125, -0.006488800048828125, 0.0146942138671875, 0.03558349609375, -0.020263671875, -0.026580810546875, 0.00481414794921875, 0.02447509765625, -0.046051025390625, -0.035736083984375, 0.0300750732421875, -0.035064697265625, -0.046234130859375, -0.027130126953125, -0.038726806640625, 0.0030765533447265625, -0.0177001953125, -0.0230560302734375, 0.036285400390625, -0.0222015380859375, -0.053436279296875, -0.0289459228515625, -0.08197021484375, -0.0195465087890625, -0.006427764892578125, 0.007633209228515625, -0.00007390975952148438, 0.053955078125, 0.0164642333984375, -0.01256561279296875, 0.0228424072265625, 0.07049560546875, -0.03009033203125, -0.033660888671875, 0.00699615478515625, -0.007244110107421875, 0.0355224609375, 0.006313323974609375, -0.005035400390625, 0.037322998046875, -0.029083251953125, -0.033233642578125, -0.00811767578125, 0.00012409687042236328, 0.017852783203125, -0.0012645721435546875, 0.0015773773193359375, 0.062744140625, 0.035797119140625, -0.00466156005859375, -0.036529541015625, -0.01020050048828125, -0.046661376953125, 0.0194091796875, 0.021820068359375, -0.00539398193359375, -0.03814697265625, 0.048797607421875, 0.0033130645751953125, -0.02142333984375, 0.0064849853515625, -0.024505615234375, 0.038421630859375, 0.0056915283203125, 0.0170745849609375, -0.0233154296875, -0.0142669677734375, -0.028961181640625, 0.06304931640625, -0.0057830810546875, 0.01007843017578125, -0.027740478515625, 0.04254150390625, -0.05560302734375, -0.0286712646484375, 0.043182373046875, -0.0223846435546875, 0.023040771484375, -0.029266357421875, -0.040740966796875, -0.019195556640625, 0.0758056640625, -0.07000732421875, 0.00028204917907714844, -0.0220489501953125, -0.0002605915069580078, 0.0190582275390625, -0.062744140625, -0.038970947265625, -0.0207366943359375, -0.032257080078125, -0.007843017578125, -0.03887939453125, -0.002330780029296875, -0.007568359375, 0.024749755859375, -0.004314422607421875, -0.0357666015625, 0.050018310546875, -0.033355712890625, 0.0130615234375, 0.039794921875, 0.0010366439819335938, -0.0038051605224609375, -0.044158935546875, -0.0017528533935546875, -0.033355712890625, -0.006500244140625, -0.02325439453125, 0.0261077880859375, 0.0347900390625, -0.041290283203125, 0.0021457672119140625, 0.026580810546875, 0.030975341796875, -0.0005545616149902344, -0.0176544189453125, -0.023681640625, -0.015411376953125, 0.0055084228515625, -0.01021575927734375, -0.01898193359375, -0.01251220703125, -0.010223388671875, -0.0263671875, 0.0171356201171875, -0.01708984375, -0.005939483642578125, 0.0140533447265625, -0.02288818359375, -0.0305938720703125, -0.0092315673828125, 0.006465911865234375, 0.0186614990234375, -0.01849365234375, -0.00267791748046875, -0.0181732177734375, -0.0304107666015625, 0.01316070556640625, 0.0265960693359375, -0.051025390625, 0.01361846923828125, 0.03985595703125, 0.0197601318359375, -0.021759033203125, -0.08770751953125, -0.018096923828125, 0.01032257080078125, -0.04144287109375, 0.04742431640625, 0.030853271484375, 0.005695343017578125, 0.0209503173828125, -0.034423828125, 0.018951416015625, -0.01248931884765625, 0.0197296142578125, 0.0251922607421875, 0.0007967948913574219, 0.0164642333984375, 0.0226287841796875, -0.00921630859375, 0.03326416015625, -0.00902557373046875, -0.0323486328125, -0.023712158203125, 0.05279541015625, -0.006870269775390625, 0.025787353515625, -0.04779052734375, -0.00244903564453125, 0.0018663406372070312, 0.00412750244140625, 0.0286712646484375, 0.038177490234375, -0.0100860595703125, -0.0019626617431640625, -0.01070404052734375, 0.007904052734375, 0.0117950439453125, -0.008392333984375, 0.00827789306640625, 0.0355224609375, 0.00553131103515625, -0.0005130767822265625, 0.0301361083984375, -0.006557464599609375, 0.047149658203125, -0.0112457275390625, -0.047943115234375, -0.021148681640625, -0.008544921875, 0.040252685546875, 0.0132293701171875, -0.0271453857421875, 0.035797119140625, 0.05120849609375, -0.0251617431640625, -0.007671356201171875, -0.003253936767578125, -0.00585174560546875, -0.052276611328125, -0.037109375, -0.035430908203125, -0.0004782676696777344, 0.01148223876953125, 0.045318603515625, -0.0321044921875, 0.039642333984375, -0.0233612060546875, 0.0057830810546875, 0.0170440673828125, -0.0104827880859375, 0.003917694091796875, 0.06280517578125, -0.030059814453125, -0.004215240478515625, 0.0281829833984375, -0.0067291259765625, -0.0235595703125, 0.0309906005859375, 0.04443359375, 0.02435302734375, 0.0313720703125, -0.031982421875, -0.02099609375, -0.020477294921875, 0.0258941650390625, 0.0007758140563964844, -0.043121337890625, -0.0207366943359375, -0.0029506683349609375, 0.0171661376953125, -0.0005564689636230469, -0.020355224609375, 0.0020847320556640625, -0.0225372314453125, -0.00592803955078125, -0.052764892578125, -0.03228759765625, 0.007274627685546875, 0.028167724609375, -0.02923583984375, -0.04229736328125, 0.0243988037109375, -0.055877685546875, -0.002933502197265625, -0.0158233642578125, -0.007480621337890625, 0.007633209228515625, -0.004852294921875, 0.02978515625, -0.05120849609375, -0.0018930435180664062, -0.011138916015625, 0.006317138671875, 0.044281005859375, 0.0017070770263671875, -0.035675048828125, 0.027252197265625, -0.02166748046875, -0.0026092529296875, -0.00011324882507324219, -0.07879638671875, -0.02703857421875, -0.036895751953125, 0.0221710205078125, 0.0179290771484375, -0.002994537353515625, -0.0543212890625, -0.0191650390625, -0.0003407001495361328, 0.01482391357421875, -0.00044918060302734375, 0.00807952880859375, 0.0780029296875, -0.020172119140625, 0.09130859375, 0.0386962890625, 0.045440673828125, -0.032012939453125, -0.045745849609375, -0.0171966552734375, -0.08099365234375, -0.0162811279296875, 0.019134521484375, 0.01345062255859375, 0.0672607421875, 0.00653076171875, 0.0137786865234375, -0.00560760498046875, -0.00655364990234375, 0.006908416748046875, -0.0271148681640625, 0.0106201171875, 0.003299713134765625, -0.015655517578125, 0.0145263671875, -0.0196685791015625, -0.0104827880859375, 0.00701141357421875, -0.0168609619140625, -0.00542449951171875, 0.0112457275390625, -0.0242919921875, 0.020477294921875, -0.04071044921875, 0.042083740234375, 0.08746337890625, 0.0247650146484375, 0.05938720703125, 0.0283355712890625, 0.01079559326171875, 0.004604339599609375, 0.0187530517578125, 0.00966644287109375, -0.0299530029296875, -0.00759124755859375, -0.0198974609375, -0.0237884521484375, -0.04315185546875, -0.0167999267578125, -0.0003249645233154297, 0.0143280029296875, 0.047210693359375, -0.056671142578125, 0.01262664794921875, 0.00970458984375, -0.01214599609375, 0.0204620361328125, 0.002109527587890625, -0.0280609130859375, -0.0016717910766601562, 0.0172576904296875, 0.0026454925537109375, -0.03759765625, 0.0006895065307617188, 0.01324462890625, -0.0086212158203125, -0.0045318603515625, 0.034454345703125, 0.00872802734375, -0.00766754150390625, -0.0191802978515625, -0.00933837890625, -0.0036525726318359375, -0.026153564453125, 0.034881591796875, -0.0377197265625, 0.03240966796875, -0.022430419921875, 0.018890380859375, -0.0296173095703125, 0.0163726806640625, -0.0297088623046875, -0.017669677734375, -0.0245208740234375, 0.05621337890625, -0.052032470703125, 0.031280517578125, 0.037139892578125, -0.03448486328125, -0.0288543701171875, -0.032135009765625, 0.0005331039428710938, 0.050140380859375, -0.0292510986328125, 0.028045654296875, -0.00809478759765625, -0.0273590087890625, -0.0155029296875, 0.007556915283203125, 0.07708740234375, -0.0066375732421875, -0.0191192626953125, 0.061492919921875, 0.0382080078125, -0.052337646484375, -0.0144500732421875, -0.01629638671875, -0.05291748046875, -0.029571533203125, -0.022796630859375, -0.0447998046875, 0.00664520263671875, -0.0207366943359375, -0.06536865234375, 0.11865234375, -0.01248931884765625, 0.038726806640625, 0.030303955078125, 0.0250244140625, -0.045745849609375, -0.005481719970703125, -0.038360595703125, 0.07861328125, -0.014923095703125, 0.060302734375, -0.0921630859375, -0.0287628173828125, 0.00981903076171875, 0.074462890625, -0.013885498046875, 0.005771636962890625, -0.05377197265625, -0.00782012939453125, 0.021240234375, 0.056427001953125, 0.03863525390625, 0.0263824462890625, 0.00984954833984375, 0.057220458984375, 0.05657958984375, -0.0256805419921875, 0.0343017578125, 0.039337158203125, -0.033050537109375, 0.0323486328125, -0.0017538070678710938, -0.01456451416015625, 0.038177490234375, -0.0004832744598388672, -0.043121337890625, 0.0260162353515625, 0.028564453125, -0.0118255615234375, 0.0081024169921875, 0.037933349609375, 0.02618408203125, -0.0025730133056640625, 0.045684814453125, -0.02301025390625, 0.045501708984375, 0.00609588623046875, 0.0172576904296875, 0.0048370361328125, -0.00518798828125, 0.05596923828125, -0.0156097412109375, -0.00812530517578125, 0.0021266937255859375, 0.01544952392578125, 0.058074951171875, 0.0301971435546875, 0.036102294921875, -0.056488037109375, -0.035736083984375, 0.0428466796875, 0.07855224609375, -0.033538818359375, -0.057586669921875, 0.0130462646484375, 0.0239105224609375, 0.039276123046875, 0.0261688232421875, 0.03387451171875, -0.0127105712890625, 0.0345458984375, -0.058502197265625, -0.004302978515625, 0.02313232421875, 0.031951904296875, -0.01163482666015625, -0.035003662109375, -0.0212860107421875, -0.0288848876953125, -0.0389404296875, 0.00984954833984375, 0.01092529296875, 0.047088623046875, 0.0153961181640625, 0.052734375, -0.028900146484375, -0.01485443115234375, 0.015777587890625, 0.0223388671875, -0.0226287841796875, -0.0007982254028320312, -0.01059722900390625, -0.05474853515625, -0.0254669189453125, 0.0310211181640625, 0.0251312255859375, 0.020294189453125, 0.037078857421875, 0.0207672119140625, -0.028900146484375, 0.000027835369110107422, 0.03912353515625, -0.0167694091796875, 0.03375244140625, -0.06591796875, -0.0252685546875, -0.027130126953125, -0.04400634765625, 0.01016998291015625, -0.07183837890625, 0.04058837890625, 0.017364501953125, 0.04168701171875, 0.0159149169921875, 0.007694244384765625, 0.0301971435546875, 0.0159759521484375, 0.036224365234375, 0.03961181640625, -0.045257568359375, -0.007015228271484375, -0.0267181396484375, -0.01505279541015625, 0.0328369140625, 0.043304443359375, -0.01934814453125, 0.01276397705078125, -0.01261138916015625, -0.01091766357421875, 0.01532745361328125, 0.0002875328063964844, -0.007198333740234375, 0.033111572265625, 0.032257080078125, 0.0009822845458984375, -0.06591796875, -0.0239715576171875, -0.0144805908203125, 0.0005273818969726562, 0.0039005279541015625, 0.04656982421875, 0.0361328125, 0.02679443359375, 0.007671356201171875, 0.029205322265625, -0.0289154052734375, 0.0079345703125, -0.0283050537109375, -0.0015468597412109375, 0.02716064453125, -0.0123138427734375, -0.020538330078125, 0.01303863525390625, 0.046661376953125, -0.04638671875, -0.00411224365234375, 0.02685546875, 0.01326751708984375, -0.028564453125, 0.01561737060546875, -0.023345947265625, 0.005954742431640625, -0.044219970703125, -0.050750732421875, 0.0562744140625, 0.0194549560546875, 0.0069580078125, 0.038726806640625, 0.060333251953125, -0.0183258056640625, 0.0372314453125, -0.039398193359375, 0.06243896484375, 0.0305938720703125, 0.038848876953125, -0.0550537109375, 0.0430908203125, 0.00868988037109375, 0.007701873779296875, 0.0184783935546875, 0.0606689453125, 0.04345703125, -0.0160675048828125, 0.03192138671875, 0.011505126953125, 0.046417236328125, -0.01457977294921875, 0.0113677978515625, 0.02685546875, -0.0015897750854492188, -0.01070404052734375, -0.0309600830078125, -0.01214599609375, -0.07672119140625, -0.00655364990234375, 0.007717132568359375, -0.047943115234375, -0.018280029296875, -0.01552581787109375, -0.01050567626953125, 0.049102783203125, -0.0060272216796875, -0.042236328125, 0.0167999267578125, -0.03558349609375, 0.027069091796875, 0.0020580291748046875, -0.070556640625, 0.0175323486328125, 0.0447998046875, 0.0187225341796875, 0.0180816650390625, -0.0226898193359375, -0.0262603759765625, 0.00450897216796875, 0.041778564453125, 0.06982421875, -0.039764404296875, 0.0037364959716796875, 0.0213623046875, 0.03155517578125, 0.073974609375, -0.0004684925079345703, -0.0052337646484375, 0.0179443359375, -0.0114288330078125, -0.0234222412109375, -0.03387451171875, 0.025299072265625, -0.043121337890625, -0.047576904296875, -0.0176849365234375, 0.03240966796875, 0.039703369140625, -0.018157958984375, -0.0361328125, 0.052642822265625, -0.02215576171875, -0.0199127197265625, -0.0728759765625, 0.001369476318359375, 0.0156097412109375, 0.0017652511596679688, -0.0103759765625, -0.03643798828125, -0.058868408203125, 0.024993896484375, -0.00039505958557128906, 0.020050048828125, 0.0036754608154296875, 0.0002397298812866211, -0.023101806640625, 0.0213775634765625, 0.027496337890625, -0.0022411346435546875, 0.0213623046875, -0.046783447265625, 0.04351806640625, 0.032501220703125, -0.06634521484375, -0.0050811767578125, 0.00455474853515625, 0.04620361328125, -0.01436614990234375, -0.024505615234375, -0.0298004150390625, -0.01483917236328125, 0.050140380859375, 0.0516357421875, 0.01348876953125, -0.03662109375, 0.02130126953125, 0.01445770263671875, -0.07305908203125, 0.00860595703125, 0.034149169921875, -0.040924072265625, 0.0031108856201171875, -0.0161895751953125, -0.0518798828125, -0.004688262939453125, -0.003643035888671875, -0.0616455078125, 0.03656005859375, 0.015472412109375, 0.0082855224609375, -0.021728515625, 0.07086181640625, 0.0148773193359375, -0.017852783203125, 0.021331787109375, -0.026397705078125, -0.043701171875, 0.0185699462890625, -0.0132293701171875, -0.00630950927734375, -0.0222930908203125, -0.0210723876953125, 0.0192108154296875, -0.007152557373046875, 0.030792236328125, -0.00763702392578125, -0.01323699951171875, -0.004863739013671875, 0.02337646484375, -0.01352691650390625, 0.0178375244140625, 0.0161285400390625, 0.041534423828125, 0.002552032470703125, 0.0252838134765625, -0.0124053955078125, 0.02069091796875, 0.004169464111328125, 0.0289764404296875, -0.0270843505859375, -0.0017271041870117188, -0.005275726318359375, -0.0272216796875, -0.0023326873779296875, -0.009765625, -0.02886962890625, -0.00968170166015625, 0.00511932373046875, 0.0340576171875, -0.0228271484375, 0.005100250244140625 ]
2a6f3a5ab2fada002dfd21b57f6e7dc5f9ec4622
Wordpress Stackexchange Q: Display all the subcategories from a specific category? I need to show all subcategories using $product_category = wp_get_post_terms( $post->ID, 'product_cat' ); actually I use: <?php global $post; $terms = get_the_terms( $post->ID, 'product_cat', 'hide_empty=0' ); foreach ( $terms as $term ){ $category_id = $term->term_id; $category_name = $term->name; $category_slug = $term->slug; echo '<li><a href="'. get_term_link($term->slug, 'product_cat') .'">'.$category_name.'</a></li>'; } ?> It's ok but it shows only the parent category and only one subcategory... How to fix that? A: Here is the code that worked for me in a page template (my parent id was 7): <?php $wcatTerms = get_terms('product_cat', array('hide_empty' => 0, 'orderby' => 'ASC', 'parent' => 7, )); foreach($wcatTerms as $wcatTerm) : $wthumbnail_id = get_woocommerce_term_meta( $wcatTerm->term_id, 'thumbnail_id', true ); $wimage = wp_get_attachment_url( $wthumbnail_id ); ?> <div><a href="<?php echo get_term_link( $wcatTerm->slug, $wcatTerm->taxonomy ); ?>"> <?php if($wimage!=""):?><img src="<?php echo $wimage?>" class="aligncenter"><?php endif;?></a> <h3 class="text-center"><a href="<?php echo get_term_link( $wcatTerm->slug, $wcatTerm->taxonomy ); ?>"><?php echo $wcatTerm->name; ?></a></h3> </div> <?php endforeach; ?>
Q: Display all the subcategories from a specific category? I need to show all subcategories using $product_category = wp_get_post_terms( $post->ID, 'product_cat' ); actually I use: <?php global $post; $terms = get_the_terms( $post->ID, 'product_cat', 'hide_empty=0' ); foreach ( $terms as $term ){ $category_id = $term->term_id; $category_name = $term->name; $category_slug = $term->slug; echo '<li><a href="'. get_term_link($term->slug, 'product_cat') .'">'.$category_name.'</a></li>'; } ?> It's ok but it shows only the parent category and only one subcategory... How to fix that? A: Here is the code that worked for me in a page template (my parent id was 7): <?php $wcatTerms = get_terms('product_cat', array('hide_empty' => 0, 'orderby' => 'ASC', 'parent' => 7, )); foreach($wcatTerms as $wcatTerm) : $wthumbnail_id = get_woocommerce_term_meta( $wcatTerm->term_id, 'thumbnail_id', true ); $wimage = wp_get_attachment_url( $wthumbnail_id ); ?> <div><a href="<?php echo get_term_link( $wcatTerm->slug, $wcatTerm->taxonomy ); ?>"> <?php if($wimage!=""):?><img src="<?php echo $wimage?>" class="aligncenter"><?php endif;?></a> <h3 class="text-center"><a href="<?php echo get_term_link( $wcatTerm->slug, $wcatTerm->taxonomy ); ?>"><?php echo $wcatTerm->name; ?></a></h3> </div> <?php endforeach; ?> A: Try something like this: by ID function woocommerce_subcats_from_parentcat_by_ID($parent_cat_ID) { $args = array( 'hierarchical' => 1, 'show_option_none' => '', 'hide_empty' => 0, 'parent' => $parent_cat_ID, 'taxonomy' => 'product_cat' ); $subcats = get_categories($args); echo '<ul class="wooc_sclist">'; foreach ($subcats as $sc) { $link = get_term_link( $sc->slug, $sc->taxonomy ); echo '<li><a href="'. $link .'">'.$sc->name.'</a></li>'; } echo '</ul>'; } by NAME function woocommerce_subcats_from_parentcat_by_NAME($parent_cat_NAME) { $IDbyNAME = get_term_by('name', $parent_cat_NAME, 'product_cat'); $product_cat_ID = $IDbyNAME->term_id; $args = array( 'hierarchical' => 1, 'show_option_none' => '', 'hide_empty' => 0, 'parent' => $product_cat_ID, 'taxonomy' => 'product_cat' ); $subcats = get_categories($args); echo '<ul class="wooc_sclist">'; foreach ($subcats as $sc) { $link = get_term_link( $sc->slug, $sc->taxonomy ); echo '<li><a href="'. $link .'">'.$sc->name.'</a></li>'; } echo '</ul>'; } Source/inspiration Edit: Completed the code, tested it, see comments
wordpress
{ "language": "en", "length": 277, "provenance": "stackexchange_00019.jsonl.gz:432999", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/101268" }
[ 0.03717041015625, -0.0105133056640625, -0.01763916015625, -0.052734375, 0.00745391845703125, -0.0302886962890625, 0.0075225830078125, -0.0106658935546875, 0.0261688232421875, 0.024688720703125, -0.027069091796875, -0.05279541015625, 0.0017366409301757812, -0.0254058837890625, -0.035369873046875, -0.056488037109375, 0.02777099609375, -0.0130462646484375, 0.03240966796875, 0.0212554931640625, -0.024627685546875, 0.05194091796875, 0.0160980224609375, 0.00951385498046875, 0.01220703125, -0.06884765625, 0.0732421875, -0.06451416015625, 0.0035190582275390625, -0.050567626953125, 0.0140380859375, 0.045013427734375, 0.0215301513671875, -0.0183258056640625, 0.037750244140625, 0.0162200927734375, 0.02532958984375, -0.01114654541015625, 0.00762176513671875, 0.02044677734375, 0.0233001708984375, -0.002391815185546875, 0.02099609375, -0.01519775390625, 0.0009441375732421875, -0.0301513671875, 0.00830078125, -0.03900146484375, 0.0028133392333984375, -0.0015535354614257812, 0.05096435546875, 0.035125732421875, 0.049285888671875, -0.0020599365234375, -0.01568603515625, 0.00848388671875, -0.029754638671875, 0.0098876953125, 0.0347900390625, -0.0030307769775390625, -0.04412841796875, -0.0189056396484375, 0.014251708984375, -0.022735595703125, 0.008758544921875, 0.0193939208984375, -0.0023441314697265625, 0.025360107421875, -0.05078125, 0.004009246826171875, 0.0241546630859375, -0.047821044921875, -0.006008148193359375, -0.002315521240234375, -0.00562286376953125, -0.0280303955078125, -0.01233673095703125, -0.0207672119140625, 0.0266876220703125, 0.0166168212890625, 0.009307861328125, -0.03704833984375, -0.042510986328125, 0.030242919921875, 0.00931549072265625, 0.061614990234375, -0.00820159912109375, -0.0244140625, -0.029388427734375, -0.0343017578125, -0.026214599609375, -0.044891357421875, -0.03204345703125, -0.0045166015625, 0.004444122314453125, -0.039215087890625, 0.0113677978515625, 0.04974365234375, -0.036376953125, -0.0048065185546875, -0.00945281982421875, -0.01538848876953125, 0.004390716552734375, -0.03314208984375, 0.0187835693359375, 0.00431060791015625, -0.01250457763671875, 0.02923583984375, 0.0706787109375, 0.03350830078125, 0.016754150390625, 0.053131103515625, -0.016265869140625, -0.01520538330078125, -0.02105712890625, 0.0291748046875, -0.03289794921875, 0.0019893646240234375, -0.002803802490234375, 0.0082855224609375, -0.006244659423828125, 0.0291900634765625, 0.021881103515625, -0.0165557861328125, -0.01224517822265625, 0.0047760009765625, 0.00005060434341430664, -0.06329345703125, -0.00864410400390625, -0.0513916015625, -0.05731201171875, 0.0301513671875, 0.0789794921875, 0.03509521484375, 0.0355224609375, -0.0016584396362304688, 0.0055389404296875, 0.030303955078125, 0.03143310546875, -0.004787445068359375, 0.009246826171875, 0.004180908203125, 0.0423583984375, 0.00412750244140625, 0.044281005859375, -0.0023822784423828125, 0.017669677734375, 0.0217132568359375, 0.00675201416015625, 0.0038433074951171875, 0.034942626953125, -0.033447265625, 0.055023193359375, -0.01361846923828125, -0.0241241455078125, -0.0003383159637451172, 0.02960205078125, -0.017333984375, -0.054443359375, -0.043914794921875, -0.01049041748046875, -0.0036182403564453125, 0.043212890625, -0.0364990234375, -0.0291748046875, -0.0122833251953125, -0.05328369140625, -0.0198974609375, 0.0248260498046875, 0.05548095703125, 0.024871826171875, -0.031341552734375, 0.00628662109375, 0.04547119140625, 0.0011301040649414062, 0.03240966796875, -0.040435791015625, 0.00689697265625, 0.0518798828125, -0.002994537353515625, -0.0287628173828125, -0.03460693359375, 0.0168914794921875, 0.0136260986328125, -0.0284423828125, 0.0133209228515625, 0.0090484619140625, 0.0455322265625, 0.01126861572265625, 0.0123138427734375, 0.05816650390625, 0.00540924072265625, -0.0657958984375, 0.040618896484375, -0.0198974609375, -0.0257110595703125, -0.00923919677734375, 0.0033664703369140625, -0.0294342041015625, 0.0005440711975097656, 0.00228118896484375, -0.01136016845703125, 0.00969696044921875, -0.006290435791015625, -0.0131378173828125, 0.006275177001953125, -0.01491546630859375, 0.032073974609375, -0.024932861328125, 0.040863037109375, 0.0083465576171875, -0.00562286376953125, -0.02166748046875, -0.0189971923828125, 0.004459381103515625, -0.0200042724609375, 0.0121917724609375, 0.0430908203125, -0.00678253173828125, 0.0222930908203125, -0.005695343017578125, -0.018890380859375, 0.0022792816162109375, 0.07183837890625, 0.05560302734375, 0.0465087890625, -0.044097900390625, -0.00921630859375, 0.034210205078125, 0.04986572265625, -0.10406494140625, 0.004058837890625, 0.015167236328125, 0.01065826416015625, -0.04791259765625, 0.02197265625, 0.005435943603515625, 0.00019502639770507812, -0.01280975341796875, 0.021728515625, 0.04473876953125, -0.00177001953125, -0.04571533203125, -0.06805419921875, 0.112060546875, -0.0269622802734375, -0.01953125, -0.040557861328125, -0.00855255126953125, 0.033538818359375, -0.002437591552734375, 0.043060302734375, 0.009979248046875, 0.013336181640625, 0.0021648406982421875, 0.059478759765625, 0.0189056396484375, 0.00624847412109375, 0.00919342041015625, 0.013336181640625, -0.00002002716064453125, -0.01995849609375, -0.0274810791015625, 0.01039886474609375, 0.02081298828125, 0.020904541015625, 0.0221099853515625, 0.01435089111328125, -0.0248565673828125, -0.0028629302978515625, 0.01995849609375, -0.0008082389831542969, 0.003955841064453125, 0.031951904296875, 0.040557861328125, -0.046173095703125, -0.0180511474609375, -0.00902557373046875, -0.014373779296875, -0.00046753883361816406, 0.0217742919921875, 0.0560302734375, 0.06719970703125, 0.0052947998046875, -0.032196044921875, -0.07147216796875, 0.0274505615234375, 0.052398681640625, -0.036956787109375, -0.0003876686096191406, 0.0231475830078125, 0.05157470703125, -0.004039764404296875, 0.0022373199462890625, -0.04473876953125, 0.0213470458984375, 0.01995849609375, 0.0034046173095703125, 0.03924560546875, -0.018585205078125, 0.031036376953125, 0.035858154296875, -0.044921875, 0.03765869140625, 0.0024547576904296875, -0.033966064453125, 0.008331298828125, 0.01332855224609375, -0.0040435791015625, -0.0017023086547851562, -0.060333251953125, 0.02410888671875, 0.0203704833984375, 0.0938720703125, -0.0274810791015625, -0.062347412109375, 0.0011119842529296875, 0.040679931640625, -0.052459716796875, -0.05670166015625, 0.00010842084884643555, -0.0546875, 0.0275726318359375, -0.01593017578125, -0.0208892822265625, -0.022064208984375, 0.028564453125, 0.019622802734375, -0.005107879638671875, -0.02471923828125, -0.048248291015625, -0.053985595703125, -0.058013916015625, -0.01520538330078125, -0.005649566650390625, 0.01336669921875, 0.016754150390625, -0.0025577545166015625, 0.003398895263671875, -0.01690673828125, 0.01959228515625, 0.10015869140625, 0.0165252685546875, 0.0015172958374023438, -0.0279083251953125, -0.01446533203125, 0.0065765380859375, 0.006221771240234375, 0.004974365234375, -0.0080108642578125, 0.0205230712890625, -0.0159454345703125, 0.0377197265625, 0.0084075927734375, 0.049102783203125, -0.014312744140625, -0.048583984375, 0.0240478515625, 0.044525146484375, -0.0219573974609375, -0.00429534912109375, -0.06524658203125, -0.03875732421875, 0.06048583984375, 0.01904296875, 0.022430419921875, -0.0028362274169921875, 0.01499176025390625, -0.004169464111328125, -0.006221771240234375, -0.004001617431640625, -0.032867431640625, 0.017181396484375, 0.0016727447509765625, 0.0149688720703125, -0.0011720657348632812, 0.024444580078125, -0.01247406005859375, 0.0159149169921875, 0.0221710205078125, 0.014892578125, -0.001323699951171875, 0.009979248046875, -0.012054443359375, -0.0357666015625, 0.043975830078125, -0.0300750732421875, 0.00008285045623779297, -0.04046630859375, -0.01241302490234375, -0.03460693359375, 0.056915283203125, -0.00788116455078125, -0.0157012939453125, -0.0287322998046875, 0.001804351806640625, -0.0302276611328125, -0.029876708984375, -0.052642822265625, 0.01216888427734375, -0.10687255859375, 0.032867431640625, -0.0193634033203125, -0.0186920166015625, -0.004863739013671875, -0.0014247894287109375, -0.055694580078125, -0.05926513671875, 0.031585693359375, -0.019287109375, -0.023101806640625, 0.048004150390625, -0.0154266357421875, 0.01165771484375, -0.0345458984375, 0.01250457763671875, -0.0389404296875, -0.01593017578125, 0.020599365234375, 0.034393310546875, -0.015869140625, -0.020843505859375, -0.027099609375, 0.043548583984375, 0.0152435302734375, -0.0032520294189453125, 0.01479339599609375, 0.0142822265625, -0.054656982421875, -0.0009427070617675781, 0.01442718505859375, -0.03363037109375, -0.0283050537109375, -0.040863037109375, -0.024566650390625, -0.00037932395935058594, -0.031494140625, 0.01499176025390625, -0.02880859375, 0.01043701171875, -0.054656982421875, -0.0242156982421875, -0.008331298828125, 0.00408935546875, -0.03314208984375, 0.0220947265625, -0.01392364501953125, -0.0499267578125, 0.0216217041015625, 0.022705078125, -0.00995635986328125, 0.005420684814453125, 0.0271453857421875, 0.015838623046875, -0.041534423828125, -0.039794921875, -0.02056884765625, 0.0293426513671875, -0.0160675048828125, 0.035858154296875, 0.00659942626953125, -0.0291748046875, 0.06146240234375, 0.0153350830078125, 0.044097900390625, -0.00337982177734375, 0.0204315185546875, -0.00872039794921875, -0.032806396484375, 0.041229248046875, 0.0014066696166992188, -0.0159912109375, 0.00443267822265625, -0.02197265625, -0.033294677734375, -0.032012939453125, 0.0753173828125, 0.0012063980102539062, 0.031646728515625, -0.05694580078125, -0.0198974609375, 0.007465362548828125, 0.0039005279541015625, 0.03778076171875, 0.0241241455078125, -0.0029659271240234375, 0.006072998046875, 0.0240325927734375, -0.00865936279296875, -0.0230712890625, -0.00365447998046875, -0.00037026405334472656, 0.0124359130859375, -0.004138946533203125, -0.0132293701171875, -0.0210723876953125, -0.0007534027099609375, -0.0064239501953125, -0.01042938232421875, -0.01177978515625, -0.0289459228515625, -0.004108428955078125, -0.004688262939453125, 0.023834228515625, -0.033966064453125, 0.0226898193359375, 0.034088134765625, -0.005336761474609375, -0.003948211669921875, -0.049560546875, 0.034088134765625, -0.036712646484375, 0.01131439208984375, -0.00399017333984375, -0.01175689697265625, -0.00670623779296875, 0.07501220703125, -0.016632080078125, 0.034759521484375, -0.0005650520324707031, -0.0037708282470703125, 0.0141448974609375, 0.041290283203125, 0.0141448974609375, -0.0122222900390625, 0.0148162841796875, 0.006046295166015625, 0.056854248046875, -0.05419921875, 0.0027141571044921875, 0.037353515625, 0.0718994140625, -0.002056121826171875, -0.04443359375, -0.01102447509765625, -0.0379638671875, -0.010101318359375, 0.01458740234375, -0.032379150390625, -0.0250244140625, -0.017181396484375, 0.0032520294189453125, 0.0275115966796875, 0.00930023193359375, -0.0231170654296875, 0.00775909423828125, -0.010894775390625, 0.0238189697265625, -0.005954742431640625, -0.027740478515625, 0.02374267578125, 0.0220489501953125, -0.05029296875, -0.00905609130859375, 0.015716552734375, -0.0097808837890625, -0.0265960693359375, -0.018310546875, -0.0443115234375, 0.03765869140625, 0.0047760009765625, 0.0447998046875, -0.01263427734375, -0.035247802734375, -0.02679443359375, 0.0097198486328125, 0.03021240234375, 0.022064208984375, -0.0280303955078125, 0.012664794921875, -0.0323486328125, -0.000046133995056152344, 0.032440185546875, -0.035675048828125, -0.02545166015625, -0.049530029296875, -0.0093231201171875, 0.0012226104736328125, 0.0018281936645507812, -0.006549835205078125, -0.0273590087890625, -0.01018524169921875, -0.0020351409912109375, -0.0265045166015625, -0.01100921630859375, 0.046478271484375, -0.01178741455078125, 0.00926971435546875, -0.003826141357421875, -0.006256103515625, -0.02520751953125, 0.004154205322265625, -0.0153961181640625, -0.05560302734375, 0.00980377197265625, 0.023162841796875, -0.0284423828125, 0.002620697021484375, 0.0077972412109375, 0.014068603515625, 0.01047515869140625, -0.000016570091247558594, 0.003376007080078125, -0.007480621337890625, 0.02423095703125, 0.004718780517578125, -0.01824951171875, 0.044189453125, -0.035614013671875, 0.0197296142578125, 0.0127716064453125, 0.0037631988525390625, 0.034820556640625, -0.048828125, 0.04229736328125, 0.022003173828125, -0.002307891845703125, 0.036376953125, 0.061859130859375, -0.013336181640625, 0.042816162109375, 0.01238250732421875, 0.017791748046875, 0.0234222412109375, 0.0261688232421875, 0.032928466796875, 0.004085540771484375, 0.060211181640625, 0.002044677734375, -0.01161956787109375, 0.034027099609375, -0.027587890625, -0.023895263671875, -0.0272216796875, 0.001209259033203125, 0.0078582763671875, 0.004364013671875, 0.0137786865234375, -0.0276336669921875, -0.0282135009765625, 0.03692626953125, -0.034698486328125, -0.0215301513671875, -0.00998687744140625, -0.06512451171875, -0.0236968994140625, -0.007755279541015625, 0.008026123046875, 0.03314208984375, 0.0137481689453125, 0.07354736328125, 0.00962066650390625, -0.067138671875, -0.039398193359375, 0.002582550048828125, 0.004852294921875, -0.0180816650390625, -0.015869140625, -0.0203857421875, 0.0061492919921875, -0.005977630615234375, 0.029876708984375, -0.044708251953125, 0.038482666015625, 0.0260467529296875, 0.0012998580932617188, -0.012908935546875, 0.04052734375, 0.0003018379211425781, 0.004589080810546875, 0.0051116943359375, -0.06884765625, -0.0170440673828125, 0.01294708251953125, -0.023040771484375, 0.0452880859375, -0.0460205078125, 0.00783538818359375, -0.0413818359375, 0.06329345703125, -0.0295562744140625, -0.0121917724609375, 0.06585693359375, -0.0141143798828125, -0.022613525390625, 0.01050567626953125, 0.07830810546875, 0.01033782958984375, -0.0215301513671875, 0.035888671875, -0.05499267578125, -0.004802703857421875, 0.0211639404296875, 0.0286407470703125, -0.0160675048828125, -0.01462554931640625, -0.0673828125, 0.07470703125, -0.0291748046875, 0.031402587890625, 0.0240020751953125, 0.0092010498046875, -0.016387939453125, -0.00975799560546875, -0.03338623046875, 0.03546142578125, 0.046783447265625, 0.03668212890625, -0.00782012939453125, -0.01763916015625, 0.031951904296875, 0.042388916015625, 0.049530029296875, 0.01251983642578125, -0.048583984375, 0.01094818115234375, 0.059112548828125, 0.014862060546875, -0.012481689453125, 0.060150146484375, 0.0124664306640625, -0.0379638671875, 0.047943115234375, -0.0015115737915039062, 0.0265350341796875, -0.0080718994140625, 0.01496124267578125, 0.038848876953125, 0.01263427734375, 0.031707763671875, -0.01378631591796875, 0.045501708984375, -0.015655517578125, -0.00827789306640625, 0.0286407470703125, -0.039459228515625, 0.0265350341796875, 0.015655517578125, 0.017364501953125, -0.0302276611328125, -0.004924774169921875, -0.0113983154296875, 0.041534423828125, -0.00611114501953125, 0.037811279296875, 0.039825439453125, 0.0258636474609375, 0.10308837890625, -0.030059814453125, 0.00637054443359375, 0.01157379150390625, -0.02362060546875, 0.019500732421875, 0.01032257080078125, 0.01183319091796875, -0.034027099609375, 0.019195556640625, 0.04327392578125, 0.0267333984375, -0.037353515625, -0.07830810546875, 0.01430511474609375, -0.012237548828125, -0.0004851818084716797, 0.041351318359375, 0.0286102294921875, 0.00798797607421875, 0.02850341796875, -0.04443359375, 0.01446533203125, 0.030426025390625, 0.03851318359375, -0.002140045166015625, -0.001277923583984375, -0.06707763671875, -0.0249176025390625, -0.045013427734375, 0.00547027587890625, 0.049041748046875, 0.07080078125, 0.00601959228515625, 0.06524658203125, -0.038909912109375, -0.041015625, 0.00040984153747558594, 0.00695037841796875, 0.01415252685546875, -0.0135955810546875, -0.01549530029296875, -0.0221099853515625, 0.05023193359375, 0.01593017578125, 0.0416259765625, 0.035552978515625, 0.08209228515625, 0.046600341796875, -0.044921875, 0.012908935546875, 0.043914794921875, -0.019561767578125, 0.0150909423828125, -0.0267333984375, 0.03240966796875, 0.0131683349609375, 0.0109710693359375, -0.035675048828125, 0.03570556640625, 0.0308685302734375, -0.0280609130859375, 0.052337646484375, -0.01114654541015625, -0.00411224365234375, 0.055572509765625, -0.0252685546875, 0.0390625, -0.0037479400634765625, -0.1068115234375, -0.00586700439453125, -0.05194091796875, -0.03216552734375, 0.0246734619140625, 0.02508544921875, -0.03436279296875, 0.044158935546875, -0.01032257080078125, -0.0274810791015625, 0.0117034912109375, -0.00655364990234375, 0.0010194778442382812, -0.04638671875, -0.0180511474609375, -0.03533935546875, -0.014617919921875, 0.006389617919921875, 0.0224761962890625, -0.0155792236328125, 0.02880859375, 0.026458740234375, 0.0205078125, 0.001934051513671875, -0.006046295166015625, 0.0026874542236328125, -0.03515625, -0.04443359375, 0.091796875, -0.022796630859375, -0.039276123046875, -0.00865936279296875, 0.020751953125, 0.006534576416015625, 0.036468505859375, -0.019989013671875, 0.007541656494140625, -0.0362548828125, 0.0218963623046875, -0.0189666748046875, 0.042388916015625, -0.0009775161743164062, -0.0130767822265625, -0.04376220703125, -0.05072021484375, 0.05987548828125, 0.07867431640625, 0.029266357421875, -0.0007328987121582031, 0.0281524658203125, -0.0216217041015625, 0.03125, -0.0027980804443359375, 0.0653076171875, 0.056243896484375, -0.041015625, 0.0124664306640625, 0.021087646484375, -0.007781982421875, 0.004913330078125, 0.0143890380859375, -0.01453399658203125, 0.0191497802734375, -0.0440673828125, 0.020721435546875, 0.038970947265625, -0.003635406494140625, -0.04217529296875, -0.012939453125, 0.091064453125, -0.05145263671875, -0.0260162353515625, -0.06805419921875, -0.029815673828125, -0.061004638671875, -0.0019235610961914062, 0.006862640380859375, -0.01317596435546875, -0.017333984375, 0.01529693603515625, -0.018707275390625, 0.0511474609375, -0.0028839111328125, -0.024566650390625, -0.01125335693359375, -0.016357421875, 0.058074951171875, -0.005207061767578125, -0.0150299072265625, -0.007755279541015625, -0.007598876953125, -0.0144500732421875, 0.01531982421875, -0.0623779296875, -0.00634765625, -0.03399658203125, 0.01495361328125, 0.01727294921875, -0.02734375, 0.0032787322998046875, 0.0141448974609375, 0.0262603759765625, 0.055572509765625, 0.0316162109375, -0.038238525390625, -0.03839111328125, 0.039398193359375, -0.00701904296875, -0.0178070068359375, 0.026458740234375, -0.01434326171875, -0.0137481689453125, 0.01430511474609375, -0.01276397705078125, 0.009124755859375, -0.0389404296875, -0.053955078125, 0.053314208984375, -0.00534820556640625, -0.0299835205078125, -0.0418701171875, 0.006175994873046875, -0.032501220703125, 0.0224761962890625, -0.006587982177734375, -0.0005412101745605469, 0.003543853759765625, 0.047454833984375, 0.0276641845703125, -0.0181732177734375, 0.04315185546875, -0.0093536376953125, -0.02960205078125, 0.0208587646484375, 0.025634765625, 0.00455474853515625, -0.00507354736328125, 0.00836181640625, 0.0030803680419921875, 0.043914794921875, -0.024322509765625, -0.054779052734375, -0.00891876220703125, -0.02203369140625, 0.0132598876953125, -0.042816162109375, -0.050323486328125, -0.033660888671875, 0.047149658203125, 0.01361846923828125, 0.005710601806640625, -0.00696563720703125, -0.0264434814453125, -0.014801025390625, -0.03399658203125, 0.00855255126953125, 0.0278167724609375, -0.054046630859375, 0.0122528076171875, 0.0189971923828125, -0.00916290283203125, 0.0020732879638671875, 0.0093536376953125, -0.046142578125, -0.0032196044921875, 0.00795745849609375, -0.00008672475814819336, -0.0565185546875, 0.04486083984375, 0.0018892288208007812, -0.0355224609375, -0.047271728515625, -0.015289306640625, -0.007251739501953125, -0.04522705078125, -0.07049560546875, -0.0164642333984375, -0.005870819091796875, 0.0028438568115234375, 0.00890350341796875, 0.01433563232421875, -0.0009198188781738281, -0.0018587112426757812, -0.0009021759033203125, -0.0570068359375, 0.021270751953125, 0.01551055908203125, -0.0029888153076171875, -0.03155517578125, 0.028778076171875, 0.04901123046875, 0.07037353515625, 0.00914764404296875, 0.0174713134765625, 0.0008149147033691406, 0.04473876953125, 0.00008511543273925781, -0.026153564453125, 0.0279998779296875, -0.04071044921875, -0.0022220611572265625, -0.032806396484375, -0.0098419189453125, -0.057525634765625, 0.017608642578125, -0.0220794677734375, -0.0167083740234375, 0.0213775634765625 ]
fd0b6e5bfe23d965c49b92abd6886f7838b01994
Wordpress Stackexchange Q: Get Permalink for the top level parent of child pages I've this pages structure: * *TOP PAGE * *SUB PAGE 1 * *SUB SUB PAGE 1 *SUB PAGE 2 [etc] Is it possible to display on each sub page a link to come back to the top level page? And how? A: Here's a way to get the top page url: $top_page_url = get_permalink( array_slice( get_ancestors( get_the_ID(), 'page' ) , -1 ) ); where get_ancestors() returns an array containing all the parents (ID) of the given page. You can read more about it in the Codex here. Here are various ways to get the last array item, but note that end() doesn't expects a function as an input - more about it in the PHP docs here.
Q: Get Permalink for the top level parent of child pages I've this pages structure: * *TOP PAGE * *SUB PAGE 1 * *SUB SUB PAGE 1 *SUB PAGE 2 [etc] Is it possible to display on each sub page a link to come back to the top level page? And how? A: Here's a way to get the top page url: $top_page_url = get_permalink( array_slice( get_ancestors( get_the_ID(), 'page' ) , -1 ) ); where get_ancestors() returns an array containing all the parents (ID) of the given page. You can read more about it in the Codex here. Here are various ways to get the last array item, but note that end() doesn't expects a function as an input - more about it in the PHP docs here. A: You can get the post ID of the parent page with $post->post_parent; at that point, it's just a matter of using that ID to get the permalink. This snippet from the wp.org forums will do what you need: <?php if($post->post_parent) { $parent_link = get_permalink($post->post_parent); ?> <a href="<?php echo $parent_link; ?>">Link to parent page</a> <?php } ?> Code snippet found here.
wordpress
{ "language": "en", "length": 189, "provenance": "stackexchange_00019.jsonl.gz:433009", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/101301" }
[ 0.05535888671875, -0.0161895751953125, 0.01432037353515625, -0.031646728515625, -0.01320648193359375, -0.005741119384765625, 0.00858306884765625, -0.0174560546875, -0.00537872314453125, 0.0091705322265625, -0.0155487060546875, 0.00176239013671875, -0.0254058837890625, -0.04119873046875, 0.0123138427734375, -0.031524658203125, 0.049346923828125, -0.0440673828125, 0.0073089599609375, 0.00933837890625, -0.01453399658203125, 0.0299530029296875, 0.03802490234375, 0.040863037109375, 0.034698486328125, -0.006687164306640625, 0.0133209228515625, -0.0142974853515625, -0.00191497802734375, -0.03228759765625, 0.0048065185546875, 0.0096588134765625, 0.0036678314208984375, -0.01348876953125, 0.06268310546875, -0.058502197265625, 0.010528564453125, -0.0124664306640625, 0.0265655517578125, -0.0031871795654296875, 0.018768310546875, 0.01535797119140625, -0.0211639404296875, 0.06512451171875, -0.056488037109375, -0.016693115234375, -0.01409912109375, -0.01264190673828125, 0.00222015380859375, 0.0163116455078125, 0.0254364013671875, -0.01399993896484375, 0.0099639892578125, 0.0157012939453125, -0.01406097412109375, -0.00496673583984375, 0.053558349609375, -0.043548583984375, 0.02691650390625, -0.072021484375, -0.0625, 0.001956939697265625, 0.05230712890625, 0.0011301040649414062, -0.0239410400390625, -0.0033359527587890625, -0.04425048828125, 0.0269927978515625, -0.0067291259765625, -0.0325927734375, 0.01006317138671875, -0.01031494140625, 0.0005006790161132812, -0.0171051025390625, -0.0258026123046875, -0.0279083251953125, 0.0019159317016601562, -0.035980224609375, 0.0016937255859375, 0.011627197265625, -0.030548095703125, -0.0012073516845703125, -0.072998046875, -0.01531219482421875, 0.0056610107421875, 0.0003554821014404297, -0.0142669677734375, -0.004222869873046875, -0.053619384765625, 0.004451751708984375, -0.035125732421875, 0.022003173828125, -0.00940704345703125, -0.006275177001953125, -0.037078857421875, -0.0036754608154296875, 0.0293731689453125, 0.040679931640625, -0.0290069580078125, -0.00634765625, -0.0192108154296875, -0.0191802978515625, -0.005558013916015625, -0.040557861328125, 0.00014388561248779297, -0.00026154518127441406, 0.018951416015625, 0.01213836669921875, 0.047393798828125, 0.0175628662109375, -0.004276275634765625, 0.08251953125, -0.0026645660400390625, -0.036651611328125, -0.00012803077697753906, 0.035247802734375, -0.038177490234375, 0.0140228271484375, 0.01021575927734375, 0.011199951171875, -0.0039520263671875, 0.0308685302734375, -0.043212890625, 0.0050506591796875, -0.0004858970642089844, 0.007236480712890625, 0.0007166862487792969, -0.022430419921875, 0.013946533203125, 0.0223541259765625, -0.03558349609375, 0.01540374755859375, 0.049041748046875, 0.0115203857421875, -0.00014078617095947266, -0.0165863037109375, -0.01172637939453125, -0.0263824462890625, 0.011199951171875, -0.0030460357666015625, -0.0011386871337890625, -0.01261138916015625, 0.043853759765625, -0.004573822021484375, -0.036651611328125, -0.0008707046508789062, 0.0022411346435546875, 0.03204345703125, 0.007488250732421875, -0.0426025390625, -0.0017385482788085938, -0.0216064453125, 0.031463623046875, -0.034454345703125, -0.0144195556640625, -0.07879638671875, -0.0301055908203125, -0.0224456787109375, 0.061248779296875, -0.0269317626953125, 0.01111602783203125, 0.00362396240234375, 0.022186279296875, 0.0012331008911132812, -0.0274200439453125, -0.01320648193359375, -0.038543701171875, -0.0162200927734375, 0.0208282470703125, -0.002178192138671875, 0.0628662109375, -0.0225372314453125, -0.0253753662109375, -0.01157379150390625, 0.00921630859375, -0.007659912109375, -0.0249176025390625, 0.0209503173828125, 0.006206512451171875, 0.044219970703125, 0.01412200927734375, -0.0361328125, -0.0113983154296875, 0.0186614990234375, -0.01348876953125, 0.024383544921875, 0.0181884765625, 0.052520751953125, -0.037261962890625, 0.0421142578125, -0.006038665771484375, 0.03314208984375, -0.07794189453125, 0.039459228515625, 0.0022220611572265625, 0.019317626953125, -0.01192474365234375, 0.022216796875, -0.018646240234375, -0.04144287109375, -0.031829833984375, 0.00870513916015625, -0.00014090538024902344, 0.026153564453125, 0.0004115104675292969, 0.01458740234375, -0.008392333984375, 0.0251922607421875, 0.05889892578125, 0.03369140625, -0.01335906982421875, 0.0270843505859375, -0.0011205673217773438, -0.07568359375, -0.042633056640625, 0.045318603515625, -0.0010776519775390625, -0.005489349365234375, -0.0225372314453125, 0.0153656005859375, -0.03094482421875, 0.00237274169921875, -0.0533447265625, 0.005687713623046875, 0.040802001953125, -0.0082855224609375, -0.024261474609375, -0.0286865234375, -0.01219940185546875, 0.02801513671875, -0.09722900390625, 0.0323486328125, 0.05438232421875, 0.01210784912109375, -0.05120849609375, 0.00701904296875, -0.023101806640625, -0.0283050537109375, -0.02520751953125, 0.052642822265625, 0.032745361328125, 0.032958984375, -0.00858306884765625, -0.01541900634765625, 0.036102294921875, -0.08837890625, -0.0235137939453125, -0.0011415481567382812, -0.0167388916015625, 0.0305328369140625, -0.009735107421875, 0.0035114288330078125, 0.00283050537109375, -0.0230560302734375, -0.01617431640625, 0.0297698974609375, 0.003246307373046875, 0.0137176513671875, -0.035675048828125, 0.02593994140625, 0.0083160400390625, 0.013641357421875, -0.0191650390625, -0.00836181640625, -0.01446533203125, 0.04132080078125, 0.021270751953125, 0.03143310546875, -0.01153564453125, 0.00667572021484375, 0.00788116455078125, 0.00720977783203125, -0.0006012916564941406, 0.0143280029296875, 0.043212890625, -0.053253173828125, 0.008758544921875, -0.026458740234375, -0.02264404296875, -0.00948333740234375, -0.007843017578125, 0.041717529296875, 0.0280914306640625, -0.016357421875, -0.0234375, -0.017242431640625, 0.004497528076171875, 0.0290679931640625, 0.018524169921875, 0.00878143310546875, 0.043060302734375, -0.0012578964233398438, -0.036529541015625, 0.030426025390625, 0.033477783203125, -0.035736083984375, 0.0007128715515136719, -0.03558349609375, 0.043609619140625, -0.049346923828125, 0.033843994140625, 0.042999267578125, -0.019195556640625, 0.0112762451171875, -0.00739288330078125, -0.035247802734375, -0.01200103759765625, -0.006366729736328125, -0.0227813720703125, 0.005893707275390625, -0.0567626953125, 0.0207061767578125, 0.00833892822265625, 0.033721923828125, -0.027191162109375, -0.041412353515625, -0.0250244140625, 0.0089874267578125, -0.0872802734375, -0.06378173828125, 0.0014944076538085938, -0.0687255859375, -0.0197601318359375, 0.0189208984375, -0.042144775390625, 0.006134033203125, 0.052215576171875, 0.00011068582534790039, 0.020233154296875, -0.0248565673828125, -0.06634521484375, -0.045806884765625, -0.07086181640625, -0.00879669189453125, -0.011688232421875, -0.0137939453125, 0.003124237060546875, -0.0011615753173828125, -0.0179443359375, -0.040252685546875, -0.0333251953125, 0.05670166015625, -0.0013027191162109375, -0.0460205078125, -0.025146484375, 0.00494384765625, 0.00731658935546875, 0.006885528564453125, -0.00646209716796875, 0.006435394287109375, -0.0023860931396484375, -0.0032520294189453125, -0.037200927734375, -0.0158233642578125, 0.0181732177734375, -0.0276947021484375, 0.0258331298828125, 0.03271484375, 0.04022216796875, -0.0172271728515625, -0.0455322265625, -0.048187255859375, -0.07659912109375, 0.0199432373046875, 0.0491943359375, 0.037384033203125, -0.0264892578125, 0.01483154296875, 0.004913330078125, -0.019683837890625, -0.00015664100646972656, -0.010467529296875, 0.0031280517578125, -0.008087158203125, 0.02587890625, 0.004955291748046875, 0.058807373046875, -0.0007090568542480469, -0.00473785400390625, 0.02996826171875, 0.007534027099609375, 0.014678955078125, -0.022491455078125, -0.029022216796875, -0.044189453125, 0.06402587890625, -0.020233154296875, 0.006656646728515625, -0.045135498046875, -0.03314208984375, -0.006862640380859375, 0.09100341796875, 0.006473541259765625, -0.0170745849609375, -0.0369873046875, -0.0161590576171875, -0.027252197265625, -0.03045654296875, -0.044677734375, 0.005931854248046875, -0.066650390625, -0.0019407272338867188, -0.00934600830078125, -0.0239105224609375, -0.0101318359375, 0.0230255126953125, -0.03369140625, -0.0284271240234375, 0.0152587890625, 0.03460693359375, -0.055999755859375, 0.04876708984375, -0.051055908203125, 0.035919189453125, -0.0244140625, 0.02301025390625, -0.0350341796875, -0.02618408203125, 0.0199127197265625, 0.0308990478515625, 0.00643157958984375, -0.0531005859375, 0.00359344482421875, 0.0518798828125, 0.0029144287109375, 0.0311279296875, 0.0030803680419921875, -0.0006422996520996094, 0.0023822784423828125, -0.01190185546875, 0.00843048095703125, -0.0225830078125, 0.003631591796875, -0.025482177734375, -0.0335693359375, -0.02850341796875, -0.040008544921875, -0.001659393310546875, -0.01149749755859375, -0.0136871337890625, -0.039276123046875, -0.017425537109375, -0.0380859375, 0.0275726318359375, -0.020416259765625, 0.0006923675537109375, -0.046600341796875, -0.0897216796875, -0.0045623779296875, 0.0305938720703125, -0.043670654296875, 0.0041656494140625, 0.005474090576171875, 0.036590576171875, -0.033203125, -0.02410888671875, -0.00978851318359375, 0.018310546875, -0.02130126953125, 0.049224853515625, 0.0200042724609375, -0.006031036376953125, 0.038482666015625, -0.020965576171875, 0.0279541015625, 0.0005784034729003906, -0.0019779205322265625, -0.006450653076171875, -0.025543212890625, 0.030181884765625, -0.012939453125, -0.0166473388671875, 0.034820556640625, -0.047821044921875, 0.0075836181640625, -0.09063720703125, 0.03094482421875, -0.002201080322265625, 0.04278564453125, -0.049224853515625, -0.027801513671875, 0.0102386474609375, 0.0214691162109375, 0.039093017578125, 0.0269775390625, -0.0054473876953125, 0.037200927734375, 0.02581787109375, 0.01136016845703125, -0.00804901123046875, 0.0333251953125, 0.007297515869140625, 0.05694580078125, -0.029510498046875, 0.007595062255859375, -0.0163726806640625, -0.0018110275268554688, 0.043182373046875, 0.00836181640625, -0.01018524169921875, 0.0282745361328125, -0.0286712646484375, -0.0141754150390625, 0.01189422607421875, 0.0016498565673828125, 0.021636962890625, 0.0283966064453125, -0.01026153564453125, -0.0159454345703125, -0.0027713775634765625, 0.0165252685546875, -0.040618896484375, 0.02081298828125, 0.008026123046875, 0.0027332305908203125, -0.03802490234375, 0.10980224609375, 0.01277923583984375, 0.029205322265625, -0.01401519775390625, -0.043060302734375, -0.003475189208984375, 0.03271484375, 0.01776123046875, 0.0022125244140625, 0.00699615478515625, 0.0088653564453125, 0.06781005859375, -0.046661376953125, -0.007610321044921875, 0.053863525390625, 0.094482421875, 0.04119873046875, -0.0153350830078125, -0.04150390625, -0.03839111328125, -0.04541015625, 0.04302978515625, 0.02423095703125, -0.0313720703125, -0.02777099609375, -0.0230865478515625, 0.004425048828125, 0.034027099609375, -0.038421630859375, 0.0335693359375, -0.043609619140625, 0.01059722900390625, 0.00658416748046875, -0.03887939453125, 0.0250396728515625, 0.01318359375, -0.04937744140625, -0.007171630859375, 0.033416748046875, -0.0499267578125, -0.026275634765625, -0.0282745361328125, -0.03656005859375, 0.06591796875, 0.00885009765625, 0.051788330078125, -0.042999267578125, -0.037353515625, -0.009246826171875, -0.0171966552734375, 0.06597900390625, 0.0343017578125, -0.0670166015625, 0.003997802734375, -0.05517578125, 0.0032978057861328125, -0.0146636962890625, -0.02020263671875, -0.035003662109375, -0.0029392242431640625, -0.00557708740234375, 0.01256561279296875, -0.00738525390625, 0.0176544189453125, -0.016510009765625, 0.0184478759765625, -0.01042938232421875, 0.0215911865234375, 0.01165008544921875, 0.12109375, -0.06561279296875, 0.05755615234375, 0.0207672119140625, 0.06744384765625, -0.036163330078125, -0.0120849609375, 0.010101318359375, 0.01629638671875, -0.02783203125, -0.00228118896484375, -0.005035400390625, -0.039031982421875, 0.026580810546875, -0.0033779144287109375, -0.0035037994384765625, -0.0099029541015625, 0.0118865966796875, -0.0280609130859375, 0.006275177001953125, -0.04449462890625, -0.053863525390625, 0.0065765380859375, 0.004077911376953125, 0.01194000244140625, 0.00997161865234375, -0.026947021484375, 0.0085601806640625, 0.0175018310546875, 0.0235137939453125, 0.0010957717895507812, -0.03173828125, 0.043670654296875, 0.09796142578125, -0.00002866983413696289, 0.06494140625, 0.0309600830078125, 0.0231781005859375, 0.058197021484375, 0.04693603515625, 0.007183074951171875, -0.036590576171875, 0.048126220703125, 0.0033702850341796875, 0.00865936279296875, 0.023773193359375, -0.0114288330078125, -0.033172607421875, -0.0279998779296875, 0.0103912353515625, 0.0085906982421875, 0.01172637939453125, 0.007045745849609375, -0.005615234375, -0.00899505615234375, 0.0209503173828125, 0.008331298828125, -0.0194854736328125, 0.01012420654296875, -0.008880615234375, 0.00882720947265625, 0.007633209228515625, -0.037261962890625, -0.0033740997314453125, -0.045745849609375, 0.046478271484375, 0.0024242401123046875, 0.03759765625, -0.026947021484375, -0.033172607421875, 0.007720947265625, -0.0127105712890625, 0.015045166015625, -0.031951904296875, 0.0093231201171875, 0.0133514404296875, 0.026641845703125, -0.04132080078125, 0.01611328125, 0.002979278564453125, 0.01004791259765625, -0.01418304443359375, 0.035797119140625, -0.0225982666015625, 0.0139617919921875, 0.006725311279296875, -0.0653076171875, 0.0060882568359375, -0.0117340087890625, 0.0135650634765625, -0.039093017578125, -0.04248046875, -0.003192901611328125, -0.055908203125, -0.015106201171875, -0.00824737548828125, 0.0034503936767578125, 0.09674072265625, -0.040283203125, -0.027191162109375, 0.022857666015625, 0.0007309913635253906, -0.0171966552734375, -0.01001739501953125, 0.017669677734375, 0.002689361572265625, 0.0231781005859375, -0.01528167724609375, 0.0271148681640625, 0.028564453125, -0.032440185546875, -0.0528564453125, 0.06280517578125, -0.0240631103515625, 0.052398681640625, 0.038238525390625, 0.01393890380859375, -0.00647735595703125, -0.01311492919921875, -0.0245819091796875, 0.06781005859375, 0.05133056640625, 0.01479339599609375, -0.03509521484375, -0.0296173095703125, 0.007671356201171875, 0.051910400390625, 0.0213470458984375, -0.00020515918731689453, -0.0584716796875, -0.01416778564453125, 0.0360107421875, 0.0162353515625, 0.0077362060546875, 0.06048583984375, 0.0123748779296875, 0.046234130859375, 0.08502197265625, -0.04833984375, 0.017852783203125, 0.021087646484375, 0.015838623046875, 0.034332275390625, 0.0128173828125, 0.01473236083984375, 0.00804901123046875, -0.035003662109375, -0.0758056640625, 0.020782470703125, 0.055633544921875, -0.041900634765625, 0.0096893310546875, 0.007061004638671875, 0.0195465087890625, -0.0283203125, -0.0477294921875, 0.0005660057067871094, 0.0227813720703125, 0.0240325927734375, -0.0024013519287109375, -0.013641357421875, 0.01262664794921875, 0.0235595703125, -0.007404327392578125, -0.0108489990234375, 0.041900634765625, -0.01904296875, 0.073486328125, 0.0299224853515625, 0.0229949951171875, -0.056427001953125, -0.021240234375, 0.0595703125, 0.10260009765625, -0.05078125, -0.052459716796875, 0.00909423828125, -0.0024394989013671875, 0.00994110107421875, 0.0172119140625, 0.0239410400390625, 0.0205841064453125, 0.048065185546875, -0.00746917724609375, -0.05364990234375, 0.011383056640625, 0.04095458984375, 0.017242431640625, -0.0281219482421875, 0.0181121826171875, -0.046783447265625, -0.01236724853515625, -0.019805908203125, -0.0014829635620117188, -0.000690460205078125, 0.032745361328125, 0.01097869873046875, -0.00629425048828125, 0.0038433074951171875, 0.0048980712890625, -0.01258087158203125, -0.017303466796875, -0.0030078887939453125, -0.00020813941955566406, -0.010498046875, -0.0098876953125, 0.019744873046875, 0.032989501953125, 0.028228759765625, 0.031463623046875, -0.007122039794921875, -0.022430419921875, 0.010467529296875, 0.045928955078125, -0.03155517578125, 0.052886962890625, -0.03167724609375, 0.005130767822265625, -0.009674072265625, -0.0330810546875, -0.022735595703125, -0.01055908203125, 0.032989501953125, 0.006191253662109375, 0.036163330078125, 0.008026123046875, 0.0146026611328125, 0.0272216796875, 0.021209716796875, 0.0281982421875, 0.0302734375, -0.05609130859375, -0.01097869873046875, -0.023956298828125, -0.020477294921875, 0.040374755859375, 0.044647216796875, 0.01210784912109375, -0.0194549560546875, 0.00033283233642578125, -0.0208892822265625, 0.029571533203125, 0.00044465065002441406, -0.006744384765625, 0.047332763671875, 0.020782470703125, 0.0192413330078125, -0.030426025390625, 0.0008759498596191406, 0.001979827880859375, -0.01140594482421875, 0.031036376953125, 0.050079345703125, 0.0120391845703125, 0.0025997161865234375, -0.00598907470703125, 0.047760009765625, -0.044036865234375, -0.021392822265625, 0.056610107421875, -0.03485107421875, 0.0008625984191894531, -0.005680084228515625, -0.0626220703125, 0.0234222412109375, 0.0294342041015625, -0.004581451416015625, 0.0311279296875, -0.0135345458984375, 0.01372528076171875, -0.0238037109375, 0.022979736328125, -0.014251708984375, -0.0212249755859375, -0.0277557373046875, -0.0196075439453125, 0.052001953125, 0.070068359375, 0.0016956329345703125, 0.038177490234375, -0.0019083023071289062, -0.0316162109375, 0.0352783203125, -0.040374755859375, 0.0728759765625, 0.035400390625, -0.041748046875, -0.01092529296875, 0.0213623046875, -0.01476287841796875, 0.044036865234375, -0.003162384033203125, 0.03509521484375, 0.040313720703125, -0.011260986328125, 0.0117950439453125, -0.0083160400390625, 0.007049560546875, -0.0239105224609375, -0.02459716796875, 0.0212860107421875, -0.0079345703125, -0.0161590576171875, -0.049591064453125, -0.0143585205078125, -0.0264739990234375, 0.0017147064208984375, 0.0199737548828125, 0.00005519390106201172, -0.006893157958984375, -0.003604888916015625, 0.01506805419921875, -0.0019702911376953125, 0.01151275634765625, -0.049468994140625, 0.031829833984375, -0.01041412353515625, 0.044342041015625, -0.035888671875, 0.0174102783203125, -0.0148773193359375, 0.002346038818359375, -0.042694091796875, 0.0012941360473632812, -0.0506591796875, 0.00376129150390625, -0.032867431640625, 0.03082275390625, 0.0379638671875, -0.0273895263671875, 0.003326416015625, 0.0178375244140625, 0.01197052001953125, 0.07806396484375, -0.01424407958984375, -0.0214385986328125, -0.0099029541015625, 0.018798828125, 0.0003070831298828125, -0.044281005859375, 0.0248565673828125, -0.0295257568359375, 0.007656097412109375, -0.00620269775390625, -0.0017137527465820312, 0.0377197265625, -0.0232086181640625, -0.00450897216796875, 0.06500244140625, 0.004497528076171875, -0.0160980224609375, -0.02142333984375, 0.0167694091796875, -0.01448822021484375, 0.0199432373046875, 0.00858306884765625, -0.0152435302734375, 0.0067291259765625, 0.0139007568359375, 0.037017822265625, 0.002285003662109375, 0.0215606689453125, 0.032928466796875, -0.003749847412109375, 0.05322265625, 0.04144287109375, 0.013153076171875, 0.0256805419921875, -0.01235198974609375, 0.045867919921875, 0.045501708984375, -0.034027099609375, 0.021331787109375, 0.00016868114471435547, 0.01079559326171875, 0.0093994140625, -0.02520751953125, 0.01142120361328125, -0.00496673583984375, 0.018402099609375, -0.0044403076171875, -0.005481719970703125, -0.0130615234375, -0.039337158203125, -0.0406494140625, -0.058746337890625, 0.0085296630859375, 0.0506591796875, -0.0657958984375, 0.029510498046875, 0.01187896728515625, -0.022369384765625, -0.01373291015625, -0.0209503173828125, -0.042083740234375, -0.0032329559326171875, -0.0249176025390625, 0.0002512931823730469, -0.0055389404296875, 0.0088348388671875, 0.01800537109375, -0.03033447265625, -0.033111572265625, 0.0025577545166015625, 0.0088653564453125, -0.030853271484375, -0.0311431884765625, 0.022918701171875, 0.053955078125, -0.0246124267578125, -0.03460693359375, 0.03717041015625, 0.0183868408203125, 0.015289306640625, -0.020294189453125, -0.035247802734375, 0.039337158203125, 0.017730712890625, 0.020904541015625, -0.039093017578125, 0.06842041015625, 0.04364013671875, 0.05517578125, 0.00783538818359375, 0.13232421875, 0.025115966796875, 0.06365966796875, -0.0229034423828125, -0.0281829833984375, -0.0157928466796875, -0.061187744140625, -0.003875732421875, 0.0043487548828125, -0.01105499267578125, -0.0273284912109375, 0.00498199462890625, -0.01849365234375, -0.00408935546875, 0.00878143310546875 ]
f35957957c7636f178fdc21b07898dee50d69dcd
Wordpress Stackexchange Q: Bad Request (Invalid Hostname) on working server, database problem I have a local server up using EasyPHP. I know its working because I have a default wordpress install running and up on my brower. I have a full site which I also know I have working because when I set up an empty database and then did the wordpress install the theme was working perfectly but without the content. I have a backup of the actual database this site used and when I create a database, and import the data using PHPMyAdmin and connect it in the wp-config.php file I am getting: Bad Request (Invalid Hostname) What am I doing wrong? A: Be sure you have updated your database to reflect the correct URL. You can do this in phpmyadmin with a bit of SQL. Good article about it here: http://codex.wordpress.org/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database
Q: Bad Request (Invalid Hostname) on working server, database problem I have a local server up using EasyPHP. I know its working because I have a default wordpress install running and up on my brower. I have a full site which I also know I have working because when I set up an empty database and then did the wordpress install the theme was working perfectly but without the content. I have a backup of the actual database this site used and when I create a database, and import the data using PHPMyAdmin and connect it in the wp-config.php file I am getting: Bad Request (Invalid Hostname) What am I doing wrong? A: Be sure you have updated your database to reflect the correct URL. You can do this in phpmyadmin with a bit of SQL. Good article about it here: http://codex.wordpress.org/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database
wordpress
{ "language": "en", "length": 142, "provenance": "stackexchange_00019.jsonl.gz:433051", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/101449" }
[ 0.061187744140625, -0.0191497802734375, -0.0018682479858398438, -0.0115966796875, 0.0006084442138671875, -0.0435791015625, 0.04461669921875, -0.01351165771484375, 0.0198822021484375, 0.022247314453125, -0.029052734375, 0.0023365020751953125, -0.0163116455078125, -0.03466796875, -0.0037059783935546875, -0.02593994140625, 0.006809234619140625, 0.020782470703125, 0.0084381103515625, -0.02197265625, -0.00466156005859375, -0.00566864013671875, 0.01494598388671875, -0.004116058349609375, 0.0175628662109375, -0.0247650146484375, 0.09686279296875, 0.0101470947265625, 0.0230865478515625, 0.004512786865234375, 0.019287109375, -0.058624267578125, 0.006938934326171875, 0.0194854736328125, -0.017822265625, -0.06781005859375, 0.01076507568359375, 0.0084381103515625, -0.02545166015625, 0.0283660888671875, 0.01486968994140625, -0.01494598388671875, 0.063232421875, 0.0206146240234375, 0.017242431640625, -0.03009033203125, 0.04437255859375, -0.058624267578125, -0.01319122314453125, -0.023956298828125, 0.01285552978515625, 0.0360107421875, 0.0141448974609375, 0.007320404052734375, -0.009765625, 0.006805419921875, 0.0135498046875, 0.0022716522216796875, 0.017547607421875, -0.0262908935546875, -0.035491943359375, 0.005954742431640625, 0.031646728515625, -0.0010824203491210938, -0.0255889892578125, -0.0194854736328125, 0.051422119140625, 0.03839111328125, -0.0304718017578125, -0.040008544921875, 0.02423095703125, 0.022216796875, 0.00145721435546875, 0.01511383056640625, -0.033966064453125, -0.02801513671875, 0.018218994140625, -0.0236663818359375, 0.0126190185546875, 0.011962890625, 0.01300048828125, -0.00655364990234375, -0.05047607421875, -0.00586700439453125, 0.0270233154296875, 0.0285797119140625, 0.00196075439453125, -0.0251007080078125, -0.0179901123046875, -0.01116180419921875, -0.0159912109375, -0.06585693359375, -0.0218505859375, 0.0293426513671875, 0.01244354248046875, -0.019256591796875, 0.042205810546875, 0.0352783203125, 0.0000045299530029296875, -0.00408935546875, 0.0185089111328125, -0.041839599609375, 0.03009033203125, -0.0179595947265625, 0.011810302734375, 0.017547607421875, -0.00623321533203125, -0.01349639892578125, 0.046905517578125, 0.0143890380859375, -0.00787353515625, 0.03546142578125, -0.0166473388671875, -0.021026611328125, -0.027313232421875, 0.02435302734375, -0.038299560546875, -0.0043792724609375, -0.0119171142578125, -0.0024929046630859375, -0.0053863525390625, 0.031158447265625, -0.084716796875, 0.007007598876953125, 0.003444671630859375, -0.002185821533203125, 0.00678253173828125, 0.047393798828125, -0.061248779296875, 0.006015777587890625, -0.0250091552734375, 0.01007080078125, 0.05999755859375, 0.0633544921875, 0.018280029296875, -0.004673004150390625, 0.03460693359375, 0.0265655517578125, 0.0081939697265625, 0.0232696533203125, 0.01313018798828125, -0.03765869140625, -0.006626129150390625, 0.00708770751953125, 0.001102447509765625, 0.0246124267578125, 0.026153564453125, 0.0197906494140625, -0.010772705078125, -0.032318115234375, 0.0238037109375, -0.01473236083984375, 0.01515960693359375, 0.0399169921875, 0.0255889892578125, -0.002765655517578125, 0.0731201171875, -0.04779052734375, -0.02435302734375, -0.03094482421875, -0.00884246826171875, -0.00029277801513671875, 0.0150299072265625, -0.0301055908203125, -0.02410888671875, -0.0196685791015625, -0.0301513671875, 0.00177764892578125, 0.0201416015625, -0.037567138671875, 0.0169525146484375, 0.00467681884765625, 0.0243072509765625, -0.001007080078125, 0.0087890625, 0.0105133056640625, 0.003711700439453125, -0.0007500648498535156, 0.0158233642578125, 0.06439208984375, 0.033599853515625, -0.01580810546875, 0.0465087890625, 0.01224517822265625, -0.053253173828125, 0.048553466796875, 0.0174560546875, 0.06591796875, -0.020751953125, 0.010986328125, 0.0267486572265625, 0.0095062255859375, -0.0362548828125, 0.047210693359375, 0.017242431640625, -0.0278472900390625, -0.0310821533203125, -0.01509857177734375, -0.007312774658203125, -0.027496337890625, 0.00229644775390625, 0.0009732246398925781, 0.020538330078125, 0.003780364990234375, -0.03265380859375, 0.0209503173828125, -0.0173797607421875, 0.0265350341796875, 0.0250396728515625, -0.00414276123046875, 0.0021572113037109375, 0.00040435791015625, -0.0012359619140625, -0.025177001953125, -0.050506591796875, 0.002544403076171875, -0.05029296875, -0.010650634765625, -0.00933074951171875, 0.0243377685546875, -0.035064697265625, -0.009307861328125, -0.04632568359375, -0.04803466796875, -0.0115966796875, -0.006130218505859375, -0.0195770263671875, 0.0032329559326171875, -0.025390625, 0.00959014892578125, -0.0009622573852539062, 0.033294677734375, 0.03076171875, 0.027679443359375, -0.0282135009765625, 0.00391387939453125, -0.02703857421875, -0.050689697265625, -0.00803375244140625, 0.037506103515625, 0.0172271728515625, -0.033966064453125, -0.04583740234375, -0.00870513916015625, -0.025604248046875, -0.057861328125, -0.0127410888671875, 0.0205230712890625, 0.00420379638671875, 0.0268402099609375, -0.0247039794921875, -0.00036072731018066406, 0.0418701171875, -0.046844482421875, -0.02239990234375, 0.0474853515625, 0.0011262893676757812, 0.0186920166015625, -0.03515625, 0.032806396484375, -0.0094451904296875, -0.0278167724609375, -0.024932861328125, -0.02288818359375, 0.0241241455078125, 0.005596160888671875, 0.0182647705078125, 0.0122528076171875, -0.0076904296875, 0.019287109375, 0.00010585784912109375, -0.05560302734375, -0.00524139404296875, 0.0059814453125, -0.0020275115966796875, 0.0234527587890625, -0.0239410400390625, 0.0122528076171875, -0.01172637939453125, 0.0015592575073242188, -0.03875732421875, -0.00986480712890625, 0.00919342041015625, -0.00955963134765625, -0.03631591796875, -0.057373046875, 0.044525146484375, 0.0095062255859375, 0.0270538330078125, -0.022705078125, 0.00014972686767578125, 0.0239410400390625, -0.0186614990234375, 0.0251617431640625, 0.060577392578125, -0.041412353515625, 0.0771484375, -0.040557861328125, 0.01525115966796875, -0.0271148681640625, 0.056060791015625, 0.042327880859375, -0.01287841796875, -0.0201873779296875, -0.0010843276977539062, 0.0085601806640625, 0.0161895751953125, 0.0014657974243164062, -0.0013017654418945312, -0.0160980224609375, -0.0487060546875, -0.031829833984375, 0.0239410400390625, 0.08184814453125, -0.0124664306640625, -0.051422119140625, 0.015716552734375, 0.0301361083984375, -0.051849365234375, -0.08184814453125, -0.042999267578125, 0.041290283203125, -0.00278472900390625, 0.004241943359375, 0.028228759765625, 0.0181732177734375, -0.03155517578125, 0.0004820823669433594, 0.055633544921875, -0.07110595703125, -0.0655517578125, -0.06512451171875, -0.10968017578125, -0.032135009765625, 0.01031494140625, 0.012451171875, 0.01250457763671875, 0.02069091796875, 0.0011119842529296875, -0.047576904296875, -0.015167236328125, -0.026458740234375, -0.01450347900390625, -0.0209503173828125, -0.030792236328125, -0.013397216796875, -0.00231170654296875, 0.003505706787109375, 0.01363372802734375, 0.00461578369140625, 0.01186370849609375, -0.0185089111328125, -0.00695037841796875, 0.01000213623046875, -0.0038509368896484375, -0.0306549072265625, 0.0177154541015625, -0.0160675048828125, -0.03369140625, -0.06109619140625, -0.0246734619140625, 0.0042724609375, -0.026214599609375, 0.016815185546875, 0.0098724365234375, -0.027374267578125, -0.018890380859375, 0.0191802978515625, 0.010833740234375, -0.0030460357666015625, 0.0185546875, -0.01007843017578125, -0.003612518310546875, 0.0082855224609375, 0.00492095947265625, -0.01812744140625, 0.0469970703125, -0.003170013427734375, -0.025115966796875, 0.00933837890625, -0.01751708984375, -0.016326904296875, -0.003902435302734375, -0.0211639404296875, -0.0662841796875, 0.039337158203125, -0.051910400390625, 0.0115509033203125, -0.0416259765625, -0.023529052734375, -0.004802703857421875, 0.11846923828125, 0.0229644775390625, -0.0219268798828125, -0.0095672607421875, 0.026123046875, -0.05816650390625, -0.0235748291015625, -0.011077880859375, 0.005023956298828125, -0.06524658203125, 0.0040740966796875, -0.0283660888671875, -0.0181732177734375, 0.0125732421875, -0.04461669921875, -0.0087738037109375, -0.058013916015625, 0.0462646484375, -0.0758056640625, 0.039215087890625, -0.0266265869140625, 0.0031890869140625, -0.04522705078125, -0.035888671875, -0.0303497314453125, -0.08941650390625, -0.0250701904296875, -0.0198974609375, 0.05926513671875, 0.0003268718719482422, -0.00495147705078125, -0.034454345703125, 0.043365478515625, 0.005130767822265625, 0.0389404296875, 0.00018334388732910156, -0.023345947265625, 0.0183258056640625, 0.0162200927734375, 0.0009002685546875, -0.01224517822265625, -0.0225372314453125, -0.033294677734375, -0.059326171875, -0.043212890625, -0.002429962158203125, 0.0031414031982421875, 0.048370361328125, -0.02703857421875, -0.01293182373046875, -0.0169219970703125, 0.01433563232421875, 0.034149169921875, 0.005199432373046875, -0.00847625732421875, -0.01824951171875, -0.02337646484375, 0.08209228515625, -0.006587982177734375, -0.0037899017333984375, -0.01074981689453125, 0.09063720703125, 0.00609588623046875, -0.027862548828125, -0.022674560546875, -0.0030975341796875, 0.042022705078125, 0.0255279541015625, 0.05560302734375, 0.0233001708984375, -0.029083251953125, 0.0689697265625, 0.035003662109375, 0.005832672119140625, 0.0102691650390625, 0.0269622802734375, 0.008453369140625, -0.0019626617431640625, 0.005466461181640625, 0.017120361328125, -0.030242919921875, 0.0222320556640625, 0.00005626678466796875, -0.00290679931640625, -0.007762908935546875, -0.01483154296875, -0.00965118408203125, 0.01311492919921875, 0.00009560585021972656, -0.041046142578125, 0.037506103515625, -0.05645751953125, -0.0367431640625, -0.032135009765625, 0.0169677734375, -0.0239715576171875, -0.0038814544677734375, -0.0010833740234375, -0.006832122802734375, 0.041961669921875, -0.024810791015625, 0.0305023193359375, -0.001369476318359375, -0.039215087890625, -0.0167083740234375, -0.0233001708984375, 0.11163330078125, 0.0186920166015625, -0.06207275390625, 0.038360595703125, -0.01549530029296875, -0.01377105712890625, 0.026702880859375, 0.0300445556640625, -0.0145111083984375, -0.0278778076171875, 0.0245513916015625, 0.03094482421875, 0.029205322265625, 0.00484466552734375, 0.0166778564453125, 0.036346435546875, 0.0262298583984375, -0.017181396484375, 0.0145416259765625, -0.00774383544921875, 0.0548095703125, -0.030242919921875, -0.015167236328125, 0.021453857421875, 0.007678985595703125, 0.061798095703125, 0.01024627685546875, -0.01605224609375, -0.01239013671875, 0.0667724609375, -0.004047393798828125, -0.05731201171875, -0.0194854736328125, 0.0231475830078125, 0.05999755859375, -0.05108642578125, -0.050628662109375, 0.04541015625, -0.015167236328125, -0.01433563232421875, 0.0245819091796875, -0.03857421875, -0.041229248046875, -0.0307464599609375, -0.0172119140625, 0.0305938720703125, -0.0244903564453125, 0.018646240234375, 0.0029850006103515625, 0.005451202392578125, 0.0258941650390625, 0.004367828369140625, 0.035919189453125, -0.02606201171875, -0.037353515625, 0.0271453857421875, -0.024139404296875, -0.06475830078125, 0.0148773193359375, 0.0121917724609375, -0.01442718505859375, -0.00412750244140625, 0.0443115234375, -0.0266265869140625, 0.007740020751953125, -0.01806640625, 0.00839996337890625, -0.035003662109375, 0.01255035400390625, 0.0199737548828125, 0.01302337646484375, -0.058746337890625, 0.0201416015625, -0.0406494140625, -0.0089263916015625, 0.022216796875, -0.046417236328125, -0.045196533203125, -0.044219970703125, 0.00897979736328125, 0.008544921875, -0.0129241943359375, -0.034088134765625, -0.035400390625, 0.028472900390625, 0.0263671875, -0.0307464599609375, -0.0574951171875, 0.03131103515625, -0.006580352783203125, 0.023468017578125, -0.0080718994140625, 0.015045166015625, 0.031707763671875, -0.01145172119140625, 0.0139007568359375, -0.033447265625, -0.026275634765625, -0.032318115234375, 0.0146331787109375, 0.01971435546875, 0.03466796875, -0.008544921875, 0.021392822265625, -0.023284912109375, 0.007251739501953125, -0.0236663818359375, 0.03851318359375, -0.0167694091796875, 0.0276641845703125, -0.0010089874267578125, -0.046112060546875, 0.00989532470703125, -0.0131378173828125, 0.007244110107421875, 0.0281829833984375, -0.05029296875, 0.01026153564453125, 0.043914794921875, -0.0144195556640625, 0.0301513671875, 0.06585693359375, -0.0138397216796875, 0.045196533203125, 0.0175933837890625, -0.00251007080078125, 0.02777099609375, 0.01348876953125, -0.07666015625, -0.0528564453125, -0.0166168212890625, 0.0106658935546875, -0.006549835205078125, -0.002658843994140625, -0.008514404296875, 0.015350341796875, 0.03973388671875, 0.06640625, -0.0694580078125, 0.01593017578125, 0.0322265625, -0.02325439453125, 0.0071868896484375, -0.02490234375, 0.00240325927734375, 0.00418853759765625, 0.03167724609375, 0.0055999755859375, -0.032470703125, 0.0006794929504394531, 0.0044403076171875, 0.007251739501953125, -0.0145416259765625, 0.0618896484375, -0.00521087646484375, -0.04058837890625, -0.0220947265625, 0.0299224853515625, -0.0104827880859375, 0.0204315185546875, 0.0024166107177734375, -0.027923583984375, -0.0251922607421875, -0.03338623046875, -0.04327392578125, -0.057769775390625, -0.0212860107421875, -0.0266571044921875, -0.00604248046875, 0.00893402099609375, 0.031097412109375, -0.0235443115234375, -0.00031828880310058594, 0.017608642578125, -0.00971221923828125, 0.08319091796875, -0.007137298583984375, 0.0010385513305664062, 0.0005021095275878906, -0.03704833984375, -0.016815185546875, -0.0078887939453125, 0.003383636474609375, -0.01120758056640625, -0.06787109375, 0.04547119140625, -0.032135009765625, 0.006328582763671875, 0.019927978515625, -0.01419830322265625, -0.00986480712890625, 0.01568603515625, 0.0169830322265625, -0.03668212890625, -0.0030384063720703125, 0.0244293212890625, -0.01288604736328125, -0.0248260498046875, -0.00045990943908691406, -0.04388427734375, 0.076416015625, -0.00980377197265625, 0.0022602081298828125, 0.0275421142578125, 0.023681640625, -0.053558349609375, 0.0029277801513671875, -0.070556640625, 0.0445556640625, 0.001888275146484375, 0.0284271240234375, -0.037841796875, 0.0193328857421875, -0.000048100948333740234, -0.043914794921875, 0.0150146484375, -0.001861572265625, -0.049713134765625, 0.004302978515625, 0.025115966796875, 0.029205322265625, 0.01451873779296875, 0.041717529296875, -0.0172271728515625, -0.0180511474609375, 0.050689697265625, 0.0157928466796875, 0.032867431640625, 0.031890869140625, -0.045318603515625, -0.01311492919921875, 0.0148468017578125, 0.00740814208984375, -0.01541900634765625, 0.0010690689086914062, -0.03204345703125, -0.006862640380859375, 0.027984619140625, -0.021392822265625, 0.00666046142578125, 0.0299835205078125, 0.005096435546875, -0.03564453125, -0.0167236328125, -0.034393310546875, 0.04058837890625, -0.01367950439453125, -0.0243072509765625, 0.0250244140625, 0.01397705078125, 0.0182952880859375, 0.005710601806640625, -0.00833892822265625, 0.022918701171875, 0.0012521743774414062, 0.08123779296875, 0.05010986328125, 0.03961181640625, -0.033843994140625, -0.006748199462890625, 0.0192108154296875, 0.105224609375, -0.04833984375, 0.0010204315185546875, 0.004062652587890625, 0.011932373046875, 0.0389404296875, -0.0195159912109375, 0.06097412109375, 0.06915283203125, 0.02349853515625, -0.0196380615234375, 0.01934814453125, 0.034332275390625, -0.0172576904296875, -0.002658843994140625, 0.0229644775390625, -0.0103607177734375, 0.04205322265625, 0.02117919921875, -0.062042236328125, 0.00281524658203125, 0.042388916015625, 0.031494140625, -0.005828857421875, -0.0667724609375, -0.0165557861328125, -0.013336181640625, 0.0469970703125, -0.01522064208984375, 0.0248260498046875, -0.0594482421875, -0.066162109375, 0.028350830078125, 0.053985595703125, -0.00594329833984375, 0.0457763671875, 0.054840087890625, 0.0202484130859375, -0.01953125, -0.007843017578125, 0.00867462158203125, -0.0474853515625, -0.0211639404296875, -0.034393310546875, -0.0262603759765625, 0.00605010986328125, 0.0036487579345703125, 0.0008640289306640625, 0.0396728515625, -0.02935791015625, -0.0013875961303710938, 0.037353515625, 0.0015516281127929688, -0.0277862548828125, 0.0213470458984375, -0.009429931640625, 0.03607177734375, -0.0010547637939453125, -0.040130615234375, -0.0207061767578125, -0.0160064697265625, 0.02606201171875, -0.0010356903076171875, 0.0198974609375, 0.04547119140625, 0.002063751220703125, -0.035919189453125, -0.0280609130859375, 0.009063720703125, 0.019927978515625, -0.012176513671875, 0.020416259765625, 0.007572174072265625, -0.0205078125, -0.0235443115234375, -0.01311492919921875, -0.0082855224609375, 0.046295166015625, -0.023773193359375, 0.1376953125, -0.06048583984375, 0.0012960433959960938, -0.01416015625, 0.004276275634765625, -0.00798797607421875, 0.01558685302734375, -0.03594970703125, 0.0027866363525390625, -0.005847930908203125, -0.0023670196533203125, -0.028411865234375, 0.0139617919921875, -0.00637054443359375, -0.021392822265625, 0.007381439208984375, -0.061126708984375, 0.0216217041015625, 0.02325439453125, 0.03497314453125, -0.01617431640625, -0.07037353515625, -0.0001373291015625, 0.045623779296875, -0.0189208984375, 0.044952392578125, 0.0078887939453125, 0.01043701171875, -0.006549835205078125, -0.02191162109375, 0.0250396728515625, -0.03814697265625, 0.0533447265625, 0.0357666015625, -0.0457763671875, -0.081298828125, -0.018035888671875, -0.0176239013671875, -0.01507568359375, -0.008056640625, 0.05963134765625, -0.00572967529296875, -0.0022830963134765625, 0.036041259765625, -0.031341552734375, -0.00605010986328125, -0.020477294921875, -0.033416748046875, 0.01727294921875, 0.01244354248046875, -0.00275421142578125, -0.0228424072265625, -0.0027332305908203125, -0.00634002685546875, -0.0254364013671875, 0.0035610198974609375, -0.00771331787109375, -0.01495361328125, 0.0175018310546875, -0.006458282470703125, 0.005645751953125, -0.01000213623046875, -0.016448974609375, 0.00394439697265625, -0.03265380859375, 0.019317626953125, -0.047607421875, 0.0201873779296875, 0.02166748046875, 0.052215576171875, -0.03997802734375, -0.04412841796875, 0.0205841064453125, 0.023193359375, -0.00811767578125, 0.007663726806640625, 0.0295867919921875, 0.0021152496337890625, -0.037139892578125, -0.00151824951171875, -0.0228271484375, 0.040313720703125, -0.034271240234375, -0.0196990966796875, 0.038787841796875, -0.040557861328125, -0.03448486328125, -0.0653076171875, 0.023223876953125, -0.122314453125, -0.0024509429931640625, -0.054901123046875, 0.0218658447265625, 0.008758544921875, -0.035247802734375, -0.024627685546875, 0.01282501220703125, 0.0067138671875, -0.01910400390625, -0.03094482421875, -0.0206146240234375, -0.006622314453125, 0.044921875, -0.008331298828125, -0.0208892822265625, -0.039764404296875, 0.0201568603515625, -0.0046844482421875, -0.0032367706298828125, 0.0262298583984375, -0.01467132568359375, -0.005336761474609375, 0.00933074951171875, 0.0205078125, -0.01183319091796875, 0.038665771484375, -0.01544952392578125, 0.035308837890625, 0.042144775390625, -0.03533935546875, 0.00946807861328125, -0.004497528076171875, -0.034027099609375, -0.0180816650390625, -0.0472412109375, -0.0193328857421875, -0.033294677734375, 0.06927490234375, 0.025482177734375, 0.00870513916015625, -0.022369384765625, -0.08428955078125, -0.060821533203125, 0.00276947021484375, -0.038848876953125, 0.0158233642578125, -0.094970703125, 0.00640869140625, -0.0002193450927734375, 0.001750946044921875, 0.013519287109375, -0.019989013671875, -0.0051116943359375, 0.0020751953125, 0.0093231201171875, -0.024932861328125, -0.0047607421875, -0.0556640625, 0.07855224609375, -0.051971435546875, -0.04278564453125, 0.01092529296875, 0.036163330078125, 0.00145721435546875, -0.0221405029296875, 0.00868988037109375, -0.030975341796875, 0.00876617431640625, 0.0265960693359375, 0.00336456298828125, -0.0247039794921875, -0.003406524658203125, -0.03466796875, 0.02099609375, 0.0093231201171875, -0.02166748046875, 0.0095367431640625, 0.03411865234375, 0.0008025169372558594, -0.036346435546875, 0.034942626953125, 0.0063629150390625, 0.0056610107421875, -0.021026611328125, 0.055328369140625, -0.0187225341796875, -0.032562255859375, -0.0146331787109375, -0.023712158203125, -0.006565093994140625, 0.0084686279296875, -0.0005445480346679688, -0.037506103515625, 0.02545166015625, -0.0052642822265625, 0.00933074951171875, 0.0172882080078125 ]
50b8eaea914301e1d9cb6f10d7a9152b661cfa73
Wordpress Stackexchange Q: Show more than 20 items in pages or posts edit dashboard How can an admin display more than 20 items under "ALL posts" ( or on other pages )? A: Go to Screen Options at the top, and change the number to something like 200. I don't think it will survive much more than that.
Q: Show more than 20 items in pages or posts edit dashboard How can an admin display more than 20 items under "ALL posts" ( or on other pages )? A: Go to Screen Options at the top, and change the number to something like 200. I don't think it will survive much more than that.
wordpress
{ "language": "en", "length": 56, "provenance": "stackexchange_00019.jsonl.gz:433136", "question_score": "17", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/101697" }
[ 0.07513427734375, 0.017791748046875, 0.021514892578125, -0.00652313232421875, 0.0270843505859375, -0.033660888671875, 0.06475830078125, -0.052276611328125, 0.02142333984375, -0.01666259765625, -0.027679443359375, -0.03607177734375, -0.03411865234375, -0.0281219482421875, -0.01141357421875, -0.058868408203125, 0.0401611328125, -0.045318603515625, -0.0172119140625, -0.0035343170166015625, -0.00960540771484375, 0.025665283203125, 0.018890380859375, 0.045440673828125, 0.029571533203125, -0.037139892578125, -0.000037729740142822266, -0.0087127685546875, -0.0015497207641601562, -0.021697998046875, 0.0119781494140625, 0.036834716796875, 0.035919189453125, 0.0133209228515625, -0.0205230712890625, 0.0307159423828125, 0.0030498504638671875, 0.006927490234375, 0.01751708984375, -0.005878448486328125, 0.025482177734375, -0.004192352294921875, 0.056304931640625, 0.01389312744140625, 0.0208892822265625, -0.0247955322265625, 0.02838134765625, -0.045501708984375, 0.0007719993591308594, -0.0283050537109375, 0.002040863037109375, 0.01380157470703125, 0.01495361328125, -0.05633544921875, -0.015045166015625, -0.0268402099609375, 0.05810546875, -0.04876708984375, 0.05621337890625, -0.0528564453125, -0.046661376953125, -0.038330078125, 0.0491943359375, -0.020751953125, -0.0161285400390625, 0.0020999908447265625, 0.01503753662109375, -0.00782012939453125, -0.049072265625, -0.0164337158203125, 0.047576904296875, -0.01490020751953125, 0.01264190673828125, -0.016204833984375, -0.01103973388671875, 0.006877899169921875, -0.0198516845703125, 0.0067138671875, 0.030426025390625, -0.00730133056640625, 0.007099151611328125, -0.011322021484375, 0.01374053955078125, -0.006076812744140625, -0.00063323974609375, 0.0168914794921875, -0.0199737548828125, -0.00994110107421875, -0.0143585205078125, 0.00803375244140625, -0.0126800537109375, -0.042205810546875, -0.037322998046875, 0.04559326171875, 0.04595947265625, -0.0380859375, 0.031768798828125, 0.0615234375, -0.001979827880859375, 0.00612640380859375, -0.06939697265625, 0.0063934326171875, -0.03558349609375, -0.01364898681640625, 0.00615692138671875, -0.00775909423828125, -0.0081634521484375, 0.0168609619140625, 0.0733642578125, 0.03533935546875, 0.006496429443359375, 0.1036376953125, 0.0024547576904296875, -0.0011777877807617188, -0.02813720703125, -0.04119873046875, -0.0499267578125, 0.01003265380859375, 0.019744873046875, -0.0112152099609375, 0.0005702972412109375, 0.015838623046875, -0.0150909423828125, 0.0038661956787109375, -0.01119232177734375, -0.01468658447265625, -0.023681640625, 0.00888824462890625, 0.0006299018859863281, 0.0177764892578125, 0.00339508056640625, 0.01258087158203125, -0.02349853515625, -0.004787445068359375, -0.034149169921875, -0.0063934326171875, -0.0084686279296875, -0.0018281936645507812, -0.0091094970703125, 0.032012939453125, -0.058685302734375, -0.02923583984375, 0.03717041015625, -0.03704833984375, 0.0226898193359375, 0.015777587890625, 0.02508544921875, 0.0225677490234375, -0.004535675048828125, -0.048828125, 0.017730712890625, 0.01384735107421875, 0.0281829833984375, -0.00449371337890625, -0.0169219970703125, -0.01416778564453125, -0.023284912109375, 0.006011962890625, -0.012481689453125, 0.01030731201171875, -0.0132293701171875, 0.0009484291076660156, 0.061187744140625, -0.04925537109375, -0.0289306640625, -0.004581451416015625, -0.052337646484375, -0.005832672119140625, 0.036956787109375, -0.00865936279296875, 0.0131988525390625, -0.00533294677734375, 0.09332275390625, 0.037078857421875, 0.0010595321655273438, 0.0467529296875, 0.00035572052001953125, -0.00724029541015625, 0.0206298828125, 0.007343292236328125, -0.0181732177734375, -0.032958984375, 0.011077880859375, -0.00937652587890625, -0.0271759033203125, -0.0367431640625, 0.0189971923828125, 0.01416778564453125, 0.021392822265625, 0.011322021484375, 0.056060791015625, -0.022125244140625, 0.0185699462890625, -0.04669189453125, -0.021209716796875, 0.0010023117065429688, 0.005939483642578125, 0.0283203125, -0.018524169921875, 0.004894256591796875, -0.02178955078125, 0.0112762451171875, -0.0107269287109375, 0.0059967041015625, 0.0031490325927734375, -0.00038504600524902344, 0.002010345458984375, 0.037384033203125, 0.01251220703125, 0.0237579345703125, -0.0102386474609375, -0.01155853271484375, -0.0024852752685546875, -0.017242431640625, -0.014556884765625, 0.017852783203125, 0.0121612548828125, 0.0018434524536132812, -0.003276824951171875, -0.04351806640625, 0.0225982666015625, -0.02545166015625, 0.00760650634765625, 0.0391845703125, 0.0567626953125, -0.0171051025390625, -0.032989501953125, -0.034454345703125, 0.0406494140625, -0.011627197265625, -0.04052734375, 0.08453369140625, 0.00521087646484375, 0.0035610198974609375, -0.00916290283203125, -0.005374908447265625, 0.0084381103515625, -0.06781005859375, 0.0268402099609375, 0.042449951171875, 0.0238037109375, -0.0258941650390625, 0.0054931640625, 0.044464111328125, 0.0290679931640625, -0.0498046875, -0.005702972412109375, 0.01245880126953125, -0.0264739990234375, 0.0236053466796875, -0.004413604736328125, 0.015594482421875, 0.01024627685546875, -0.01361846923828125, -0.02117919921875, 0.045013427734375, 0.036529541015625, 0.031890869140625, -0.035003662109375, 0.0091094970703125, 0.00963592529296875, 0.038848876953125, -0.041534423828125, 0.02783203125, 0.0186614990234375, 0.0270233154296875, 0.03448486328125, 0.041961669921875, -0.02935791015625, -0.00482177734375, 0.0160980224609375, 0.0275421142578125, 0.003765106201171875, -0.037994384765625, -0.08294677734375, -0.037384033203125, -0.025909423828125, 0.0579833984375, -0.0142974853515625, -0.051483154296875, -0.032501220703125, -0.00392913818359375, -0.030517578125, -0.01470947265625, 0.0199432373046875, -0.05804443359375, -0.00778961181640625, -0.03668212890625, 0.01514434814453125, 0.01116943359375, 0.0256805419921875, 0.0166015625, 0.0017404556274414062, 0.020111083984375, -0.01502227783203125, -0.0153656005859375, 0.038116455078125, -0.07159423828125, 0.045257568359375, -0.039703369140625, 0.09130859375, 0.0732421875, -0.01514434814453125, 0.03948974609375, 0.0024127960205078125, 0.04095458984375, 0.016448974609375, 0.012237548828125, 0.01025390625, -0.004108428955078125, -0.03619384765625, 0.00438690185546875, 0.0277557373046875, 0.033599853515625, -0.003082275390625, -0.045257568359375, -0.02178955078125, 0.0194244384765625, -0.1126708984375, -0.10552978515625, -0.031890869140625, -0.066650390625, -0.04400634765625, -0.01348114013671875, -0.048675537109375, 0.0294189453125, 0.0006060600280761719, 0.005054473876953125, -0.0186614990234375, -0.0154571533203125, 0.0158843994140625, -0.006011962890625, -0.0095672607421875, 0.006591796875, 0.00855255126953125, -0.007175445556640625, -0.0034027099609375, 0.0721435546875, -0.0175323486328125, -0.07147216796875, -0.04473876953125, 0.0020046234130859375, 0.004673004150390625, -0.00630950927734375, 0.0298919677734375, -0.0767822265625, 0.003490447998046875, -0.0105743408203125, 0.01849365234375, 0.01142120361328125, 0.005016326904296875, 0.0002968311309814453, -0.03350830078125, -0.0007009506225585938, 0.005535125732421875, -0.035400390625, 0.02410888671875, 0.0036907196044921875, -0.00927734375, -0.03497314453125, -0.00536346435546875, -0.00904083251953125, -0.044189453125, -0.0361328125, 0.0243682861328125, -0.0016298294067382812, 0.0005121231079101562, -0.031494140625, -0.0086822509765625, -0.019287109375, 0.00022900104522705078, -0.02655029296875, 0.022308349609375, 0.0014505386352539062, 0.007843017578125, -0.00913238525390625, -0.051300048828125, -0.044952392578125, 0.028717041015625, -0.02142333984375, 0.020782470703125, 0.015838623046875, 0.040679931640625, 0.031585693359375, -0.0645751953125, 0.047882080078125, 0.0140380859375, 0.01070404052734375, -0.01763916015625, -0.037109375, 0.00823211669921875, 0.09326171875, -0.050689697265625, -0.0105133056640625, 0.01348876953125, 0.03399658203125, -0.0259857177734375, -0.061279296875, -0.0230255126953125, -0.0233306884765625, -0.0733642578125, -0.0003025531768798828, -0.01032257080078125, -0.0265045166015625, -0.0194244384765625, 0.0202484130859375, -0.0491943359375, -0.0276336669921875, 0.032196044921875, 0.024871826171875, -0.02069091796875, 0.0039825439453125, 0.02667236328125, -0.05413818359375, -0.0152435302734375, 0.01543426513671875, -0.08978271484375, -0.025299072265625, -0.00473785400390625, 0.0732421875, 0.01617431640625, -0.060546875, 0.008941650390625, 0.070068359375, 0.00677490234375, 0.0230865478515625, -0.018280029296875, 0.00495147705078125, -0.0028133392333984375, -0.05780029296875, -0.039337158203125, -0.040283203125, -0.05670166015625, -0.0626220703125, 0.02557373046875, -0.0132293701171875, -0.029571533203125, -0.042877197265625, -0.0290679931640625, 0.024078369140625, -0.05072021484375, -0.04815673828125, -0.043365478515625, -0.006984710693359375, -0.042449951171875, -0.0032482147216796875, -0.033905029296875, -0.0391845703125, 0.00421142578125, 0.0159149169921875, -0.0287017822265625, 0.0318603515625, 0.0206298828125, -0.006504058837890625, -0.022003173828125, -0.0966796875, -0.0216064453125, 0.0274810791015625, 0.0291595458984375, -0.002605438232421875, -0.0003657341003417969, -0.01165008544921875, 0.0042572021484375, 0.006122589111328125, -0.03167724609375, 0.00984954833984375, 0.01763916015625, 0.0013952255249023438, -0.0240020751953125, 0.004901885986328125, -0.0270538330078125, 0.04864501953125, 0.0138702392578125, -0.002742767333984375, -0.0258026123046875, -0.0268707275390625, 0.051544189453125, -0.007114410400390625, 0.01947021484375, -0.047821044921875, -0.0096435546875, 0.0119781494140625, -0.005825042724609375, 0.0178985595703125, 0.006160736083984375, 0.01910400390625, -0.01023101806640625, 0.01392364501953125, 0.0035190582275390625, -0.002712249755859375, 0.039703369140625, -0.0312042236328125, 0.0194091796875, 0.000598907470703125, -0.0250701904296875, -0.024871826171875, -0.0081024169921875, 0.0186767578125, -0.024017333984375, -0.061676025390625, 0.0010128021240234375, 0.00009256601333618164, 0.047637939453125, 0.037506103515625, 0.008453369140625, -0.0008039474487304688, 0.023651123046875, 0.0191192626953125, 0.004730224609375, 0.03564453125, 0.00873565673828125, -0.0052490234375, 0.0211639404296875, 0.01055908203125, -0.005970001220703125, 0.052520751953125, 0.0201416015625, -0.005214691162109375, 0.021148681640625, -0.016387939453125, 0.0390625, 0.028594970703125, -0.021270751953125, 0.01525115966796875, 0.03460693359375, -0.004352569580078125, -0.037261962890625, -0.0031280517578125, -0.00945281982421875, 0.00662994384765625, 0.0239715576171875, 0.007099151611328125, 0.059295654296875, 0.0249786376953125, -0.0231170654296875, -0.0029888153076171875, -0.03289794921875, 0.0565185546875, -0.009735107421875, -0.10845947265625, -0.01374053955078125, 0.040924072265625, 0.004756927490234375, -0.0435791015625, 0.008544921875, 0.038726806640625, 0.01097869873046875, 0.04644775390625, -0.016448974609375, 0.006565093994140625, -0.016357421875, -0.016937255859375, -0.0556640625, 0.007518768310546875, 0.0131683349609375, -0.07550048828125, -0.0877685546875, 0.033905029296875, 0.006580352783203125, 0.024444580078125, 0.00730133056640625, 0.0213470458984375, 0.0123138427734375, -0.038360595703125, -0.0048065185546875, 0.0214691162109375, 0.004146575927734375, -0.019866943359375, -0.052459716796875, -0.017852783203125, -0.04083251953125, -0.0265655517578125, -0.00214385986328125, -0.01320648193359375, -0.041595458984375, -0.0126953125, 0.0248565673828125, 0.0084075927734375, 0.00968170166015625, -0.038177490234375, -0.034454345703125, 0.00792694091796875, 0.0357666015625, 0.018646240234375, -0.008636474609375, 0.0399169921875, -0.023529052734375, -0.0007982254028320312, -0.01296234130859375, 0.013092041015625, 0.010833740234375, -0.0031452178955078125, 0.0223388671875, -0.022613525390625, -0.033203125, 0.0291595458984375, -0.056915283203125, -0.040679931640625, -0.0180206298828125, -0.021240234375, 0.00368499755859375, -0.033416748046875, 0.0124359130859375, -0.016571044921875, 0.06842041015625, -0.06298828125, -0.01438140869140625, 0.0130157470703125, 0.0230712890625, -0.0029468536376953125, 0.005489349365234375, -0.031463623046875, -0.0086822509765625, 0.037261962890625, -0.0192413330078125, -0.028472900390625, -0.032073974609375, 0.0214080810546875, 0.039306640625, -0.003326416015625, 0.00896453857421875, 0.0014257431030273438, 0.0011844635009765625, -0.01148223876953125, 0.0030498504638671875, -0.03076171875, 0.021087646484375, 0.019989013671875, -0.01483917236328125, -0.03887939453125, -0.01593017578125, -0.035675048828125, -0.010406494140625, 0.034820556640625, 0.0012159347534179688, -0.054290771484375, 0.0019016265869140625, -0.035919189453125, -0.0012254714965820312, 0.0382080078125, -0.0051116943359375, 0.01198577880859375, 0.0008401870727539062, 0.02947998046875, -0.0069427490234375, -0.0005030632019042969, 0.00800323486328125, -0.0203399658203125, -0.01551055908203125, -0.049163818359375, 0.03656005859375, 0.007274627685546875, -0.013702392578125, 0.0021533966064453125, 0.0213165283203125, -0.034271240234375, -0.032135009765625, -0.0006093978881835938, 0.0222930908203125, -0.0236053466796875, -0.04156494140625, 0.034332275390625, -0.01560211181640625, 0.001255035400390625, 0.0092620849609375, 0.05328369140625, 0.0006728172302246094, 0.0560302734375, -0.0142669677734375, 0.02655029296875, 0.021392822265625, 0.01201629638671875, -0.02581787109375, -0.0131072998046875, -0.01849365234375, -0.018463134765625, -0.01800537109375, 0.00750732421875, -0.0487060546875, -0.00421142578125, -0.0203857421875, -0.00009298324584960938, 0.05322265625, 0.0240020751953125, -0.03167724609375, 0.04205322265625, 0.01055145263671875, -0.037353515625, 0.00970458984375, 0.010711669921875, -0.039581298828125, 0.00502777099609375, 0.0105133056640625, -0.0020275115966796875, -0.027130126953125, 0.0158843994140625, -0.049560546875, 0.07073974609375, -0.026275634765625, 0.0020599365234375, -0.004619598388671875, 0.03118896484375, 0.006069183349609375, 0.0099029541015625, -0.01432037353515625, 0.051239013671875, -0.0242462158203125, 0.0003464221954345703, -0.057220458984375, 0.004840850830078125, -0.0301055908203125, 0.022003173828125, 0.004146575927734375, 0.001537322998046875, -0.026885986328125, 0.007717132568359375, 0.04510498046875, 0.032501220703125, 0.01541900634765625, 0.0264892578125, 0.003917694091796875, 0.0171966552734375, 0.0160369873046875, -0.0218505859375, 0.0313720703125, -0.024505615234375, -0.0167083740234375, 0.033782958984375, 0.02349853515625, 0.050048828125, 0.031829833984375, -0.016937255859375, 0.0217742919921875, 0.01233673095703125, 0.005039215087890625, -0.0070037841796875, 0.038848876953125, 0.00510406494140625, 0.0421142578125, -0.05072021484375, -0.01110076904296875, -0.0146942138671875, 0.04156494140625, 0.015655517578125, 0.0233154296875, 0.050140380859375, 0.024749755859375, 0.01541900634765625, 0.0117034912109375, 0.035552978515625, 0.0184173583984375, -0.0174713134765625, 0.0027904510498046875, 0.00984954833984375, 0.010772705078125, -0.04754638671875, -0.0231781005859375, 0.0693359375, 0.046722412109375, -0.03173828125, -0.0413818359375, 0.0145416259765625, 0.005100250244140625, -0.008148193359375, 0.02783203125, 0.012939453125, 0.0367431640625, 0.07452392578125, -0.0204010009765625, -0.010528564453125, 0.031829833984375, 0.056610107421875, 0.01204681396484375, 0.00936126708984375, -0.051300048828125, -0.03167724609375, -0.033111572265625, -0.031646728515625, 0.0252838134765625, 0.0662841796875, 0.034332275390625, 0.00914764404296875, -0.021331787109375, -0.0318603515625, 0.005435943603515625, -0.007732391357421875, 0.01486968994140625, -0.0147705078125, -0.035736083984375, -0.0251007080078125, 0.0484619140625, 0.0245819091796875, 0.006916046142578125, -0.053863525390625, -0.00981903076171875, 0.0289306640625, 0.00684356689453125, -0.0213470458984375, 0.0255279541015625, 0.01482391357421875, 0.037353515625, -0.034515380859375, 0.041961669921875, 0.0158233642578125, -0.014190673828125, -0.01500701904296875, 0.0137786865234375, 0.056121826171875, 0.0197296142578125, -0.02972412109375, 0.0257110595703125, -0.03460693359375, 0.006465911865234375, 0.02178955078125, 0.005733489990234375, 0.042572021484375, -0.10406494140625, -0.00611114501953125, -0.043548583984375, -0.044830322265625, 0.0421142578125, 0.032196044921875, -0.04669189453125, 0.0289459228515625, -0.033233642578125, -0.01092529296875, -0.030364990234375, 0.0138092041015625, 0.0203857421875, 0.030364990234375, 0.0016155242919921875, 0.01422119140625, -0.051788330078125, -0.00818634033203125, -0.03082275390625, 0.01678466796875, 0.032012939453125, 0.021209716796875, 0.0263519287109375, 0.03204345703125, -0.00559234619140625, 0.01235198974609375, 0.00021755695343017578, -0.0101318359375, 0.0428466796875, 0.0158233642578125, -0.00615692138671875, -0.0208587646484375, -0.0287933349609375, -0.00719451904296875, 0.0270538330078125, -0.059417724609375, 0.0318603515625, -0.037841796875, 0.01320648193359375, -0.0433349609375, 0.004947662353515625, -0.01404571533203125, -0.021209716796875, -0.052337646484375, -0.0209808349609375, 0.044403076171875, 0.01580810546875, -0.03814697265625, -0.021331787109375, 0.00884246826171875, -0.0243377685546875, 0.0179595947265625, 0.032257080078125, 0.0293731689453125, 0.0283355712890625, -0.023590087890625, 0.0151519775390625, -0.0029010772705078125, -0.01800537109375, 0.02227783203125, 0.010833740234375, -0.00984954833984375, 0.02264404296875, 0.0011186599731445312, 0.00574493408203125, 0.0036678314208984375, -0.009002685546875, -0.045318603515625, -0.0143585205078125, 0.00868988037109375, -0.01004791259765625, 0.00982666015625, 0.024139404296875, -0.0175628662109375, -0.03411865234375, -0.018463134765625, -0.01227569580078125, -0.004505157470703125, -0.05487060546875, -0.01103973388671875, -0.01209259033203125, 0.05657958984375, 0.016357421875, -0.06390380859375, 0.0343017578125, -0.0225372314453125, 0.00914764404296875, 0.01232147216796875, 0.01480865478515625, 0.0090484619140625, 0.035369873046875, -0.0306549072265625, 0.0015163421630859375, -0.0021991729736328125, -0.002399444580078125, 0.00284576416015625, 0.00315093994140625, 0.0017223358154296875, -0.0201263427734375, 0.0146331787109375, -0.01007843017578125, 0.026824951171875, 0.050079345703125, 0.059906005859375, 0.004474639892578125, 0.003261566162109375, 0.045074462890625, -0.0233917236328125, -0.123291015625, -0.0030574798583984375, -0.049041748046875, 0.029327392578125, 0.0172271728515625, 0.0143280029296875, 0.031982421875, -0.0223236083984375, -0.07586669921875, 0.049896240234375, -0.0115966796875, -0.0276641845703125, -0.0208587646484375, 0.0005731582641601562, -0.031646728515625, 0.0216522216796875, 0.00762939453125, -0.028778076171875, 0.0025806427001953125, 0.017974853515625, 0.03656005859375, -0.0545654296875, 0.0538330078125, 0.01134490966796875, -0.05426025390625, 0.033294677734375, 0.031158447265625, -0.0007977485656738281, 0.034423828125, -0.01519775390625, 0.047149658203125, 0.0582275390625, -0.034881591796875, 0.00982666015625, -0.00942230224609375, -0.0179443359375, -0.0013647079467773438, 0.018890380859375, -0.05389404296875, -0.040557861328125, 0.0239715576171875, 0.04705810546875, 0.0153045654296875, 0.0011234283447265625, 0.03717041015625, -0.0185546875, -0.034332275390625, 0.00626373291015625, 0.0014925003051757812, -0.00022161006927490234, 0.021759033203125, -0.02508544921875, 0.00804901123046875, 0.03643798828125, -0.00978851318359375, -0.0159149169921875, -0.0197906494140625, -0.00441741943359375, -0.005992889404296875, -0.053466796875, -0.020721435546875, 0.046112060546875, -0.035369873046875, -0.0271148681640625, -0.006603240966796875, 0.0222930908203125, -0.0158538818359375, -0.0238189697265625, -0.0677490234375, -0.08355712890625, 0.01641845703125, 0.0794677734375, -0.0537109375, 0.046600341796875, -0.08172607421875, 0.0213470458984375, -0.001155853271484375, 0.04254150390625, -0.00783538818359375, 0.0479736328125, 0.007160186767578125, 0.0289306640625, 0.00447845458984375, 0.0811767578125, -0.01107025146484375, 0.077880859375, 0.008880615234375, 0.0352783203125, -0.0218963623046875, -0.01763916015625, 0.033294677734375, -0.054107666015625, -0.006092071533203125, 0.005260467529296875, 0.01488494873046875, -0.042449951171875, 0.023101806640625, 0.049072265625, 0.031280517578125, 0.02825927734375 ]
fd73072a01bf3560afd0df4f875c6b33d60f7211
Wordpress Stackexchange Q: How long does it take for a new plugin to be approved? I've just submited my first wp plugin and i would like to know after how much time will my plugin be published to the wordpress plugin directory? Hou much did you actually waited? A: The current procedure is for plugin's code to be reviewed for approval: * *what you can do is to make sure you provided complete and working code *what you can hope for, is that reviewers (unpaid volunteer reviewers by the way) are not busy with something else at the moment So essentially it is as long as it takes. Pro tip - plugins from known (in a good way :) developers tend to be approved very fast and with less (to none) scrutiny.
Q: How long does it take for a new plugin to be approved? I've just submited my first wp plugin and i would like to know after how much time will my plugin be published to the wordpress plugin directory? Hou much did you actually waited? A: The current procedure is for plugin's code to be reviewed for approval: * *what you can do is to make sure you provided complete and working code *what you can hope for, is that reviewers (unpaid volunteer reviewers by the way) are not busy with something else at the moment So essentially it is as long as it takes. Pro tip - plugins from known (in a good way :) developers tend to be approved very fast and with less (to none) scrutiny. A: Actually i've got this email: (6 hours ago) user, Your plugin hosting request has been approved. Within one hour, you will have access to your SVN repository at http://plugins.svn.wordpress.org/my-plugin/ with your WordPress.org username and password (the same one you use on the forums). Here's some handy links to help you get started. Using Subversion with the WordPress Plugins Directory http://wordpress.org/plugins/about/svn/ FAQ about the WordPress Plugins Directory http://wordpress.org/plugins/about/faq/ WordPress Plugins Directory readme.txt standard http://wordpress.org/plugins/about/readme.txt readme.txt validator: http://wordpress.org/plugins/about/validator/ Enjoy!
wordpress
{ "language": "en", "length": 208, "provenance": "stackexchange_00019.jsonl.gz:433143", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/101722" }
[ -0.0133819580078125, -0.0096893310546875, 0.0078277587890625, 0.0399169921875, -0.032501220703125, -0.00962066650390625, 0.01293182373046875, -0.0343017578125, -0.0240325927734375, 0.015472412109375, -0.018096923828125, 0.0340576171875, -0.0174102783203125, -0.027069091796875, 0.0215606689453125, -0.0234222412109375, 0.0031833648681640625, 0.0206451416015625, 0.03009033203125, -0.0224151611328125, 0.0272369384765625, -0.0145111083984375, 0.00788116455078125, 0.0180816650390625, 0.048675537109375, -0.04376220703125, 0.06268310546875, 0.0091094970703125, 0.043853759765625, 0.01165771484375, 0.0275726318359375, -0.0531005859375, -0.0016832351684570312, 0.020294189453125, 0.01224517822265625, 0.00209808349609375, 0.0246124267578125, 0.0074920654296875, 0.018646240234375, 0.017425537109375, 0.06707763671875, -0.041351318359375, 0.003650665283203125, 0.045440673828125, 0.0159912109375, -0.052154541015625, 0.07183837890625, -0.04974365234375, 0.0097198486328125, -0.03204345703125, 0.01058197021484375, -0.007564544677734375, 0.0408935546875, -0.044158935546875, -0.020111083984375, 0.017608642578125, 0.0194244384765625, 0.0841064453125, 0.035003662109375, -0.033416748046875, -0.06695556640625, 0.0290679931640625, 0.0228729248046875, -0.0024051666259765625, 0.034271240234375, 0.00994873046875, -0.016754150390625, 0.0218353271484375, 0.03045654296875, 0.036376953125, -0.0189056396484375, -0.0227508544921875, 0.0013227462768554688, 0.0064849853515625, 0.00679779052734375, -0.040985107421875, 0.01203155517578125, -0.01251983642578125, 0.01485443115234375, 0.0254669189453125, 0.033721923828125, -0.021942138671875, 0.018585205078125, -0.0222930908203125, 0.01026153564453125, -0.0168609619140625, 0.007045745849609375, 0.001953125, -0.022857666015625, -0.033782958984375, -0.0212554931640625, 0.004878997802734375, -0.0219879150390625, -0.0305938720703125, -0.038909912109375, -0.02642822265625, 0.04241943359375, 0.0537109375, -0.035369873046875, -0.0000807642936706543, 0.023681640625, -0.045013427734375, 0.03680419921875, -0.03509521484375, -0.013641357421875, -0.0137481689453125, -0.01331329345703125, -0.0240325927734375, 0.0215911865234375, 0.034912109375, -0.031036376953125, 0.0147857666015625, 0.00606536865234375, -0.0256195068359375, -0.005092620849609375, 0.0182342529296875, -0.01224517822265625, 0.0162506103515625, 0.0131072998046875, 0.01224517822265625, -0.023040771484375, -0.002346038818359375, -0.003780364990234375, -0.00655364990234375, 0.0092926025390625, -0.00122833251953125, -0.019317626953125, -0.00705718994140625, 0.0125579833984375, 0.04608154296875, -0.007717132568359375, -0.00868988037109375, -0.030059814453125, 0.006679534912109375, -0.027069091796875, -0.0185089111328125, -0.0018520355224609375, -0.002994537353515625, -0.0125732421875, 0.034332275390625, -0.07208251953125, -0.01328277587890625, 0.0628662109375, -0.07452392578125, 0.0222625732421875, 0.04595947265625, 0.00007355213165283203, -0.006175994873046875, 0.0198516845703125, -0.037261962890625, 0.022369384765625, -0.058502197265625, 0.036590576171875, -0.02764892578125, 0.01068115234375, -0.06298828125, 0.0245819091796875, -0.048492431640625, 0.013031005859375, -0.0455322265625, 0.0236053466796875, 0.0161590576171875, 0.0367431640625, 0.01556396484375, 0.01163482666015625, -0.022216796875, -0.036865234375, 0.002544403076171875, 0.003810882568359375, 0.01282501220703125, -0.0295257568359375, -0.007114410400390625, 0.011383056640625, 0.006587982177734375, -0.00909423828125, 0.01435089111328125, -0.0012531280517578125, 0.0000010728836059570312, 0.05157470703125, 0.0021820068359375, -0.019775390625, -0.00795745849609375, 0.0753173828125, -0.01007843017578125, -0.00612640380859375, -0.0264739990234375, 0.04193115234375, 0.0174713134765625, -0.0178680419921875, 0.03619384765625, 0.01248931884765625, 0.026031494140625, -0.01358795166015625, 0.01316070556640625, -0.0229034423828125, -0.0089263916015625, 0.005474090576171875, 0.03436279296875, -0.0150909423828125, -0.01001739501953125, -0.019744873046875, 0.026092529296875, -0.00492095947265625, -0.00412750244140625, -0.0218353271484375, 0.01166534423828125, -0.0035533905029296875, 0.03192138671875, 0.029937744140625, 0.0205078125, -0.0008034706115722656, 0.002086639404296875, 0.00714111328125, -0.032928466796875, -0.0278472900390625, -0.0026912689208984375, -0.007076263427734375, -0.00041031837463378906, 0.00795745849609375, -0.0166778564453125, 0.015045166015625, 0.03558349609375, 0.007488250732421875, 0.018280029296875, 0.020904541015625, 0.0023632049560546875, -0.007080078125, -0.0071563720703125, 0.0219879150390625, 0.01496124267578125, -0.017578125, -0.01071929931640625, 0.016448974609375, 0.034149169921875, -0.0008058547973632812, -0.0093536376953125, 0.00824737548828125, -0.09503173828125, 0.032012939453125, 0.0418701171875, 0.0269317626953125, 0.02996826171875, 0.006320953369140625, 0.06195068359375, 0.01171875, -0.0731201171875, -0.0014190673828125, 0.0227813720703125, 0.059326171875, 0.047943115234375, -0.037933349609375, -0.062255859375, 0.033477783203125, -0.039947509765625, 0.01898193359375, 0.01629638671875, -0.0095672607421875, -0.0308685302734375, -0.032562255859375, 0.040924072265625, 0.00421905517578125, -0.0306243896484375, -0.0252227783203125, -0.0073699951171875, 0.0218505859375, 0.0214080810546875, 0.0245208740234375, 0.0247802734375, -0.041717529296875, 0.025299072265625, 0.03106689453125, 0.018890380859375, 0.00022125244140625, 0.03240966796875, 0.024322509765625, 0.0057525634765625, -0.0290679931640625, -0.00823974609375, 0.01195526123046875, 0.0210113525390625, -0.0225830078125, -0.00799560546875, 0.031707763671875, -0.00885009765625, -0.0051422119140625, -0.007793426513671875, 0.039581298828125, -0.0197601318359375, 0.04119873046875, 0.003009796142578125, 0.03228759765625, -0.02215576171875, -0.028411865234375, 0.048370361328125, -0.0166168212890625, -0.050872802734375, 0.003936767578125, -0.018402099609375, 0.031768798828125, -0.04339599609375, 0.00862884521484375, 0.048858642578125, 0.007965087890625, -0.011993408203125, -0.0028553009033203125, 0.0025730133056640625, 0.01534271240234375, -0.010528564453125, -0.031402587890625, -0.004428863525390625, -0.0511474609375, -0.00551605224609375, 0.026123046875, 0.05718994140625, -0.02935791015625, -0.060272216796875, -0.040374755859375, 0.002361297607421875, -0.08685302734375, -0.07403564453125, -0.07098388671875, -0.016510009765625, 0.032562255859375, -0.014312744140625, 0.0135345458984375, -0.0029392242431640625, -0.027099609375, 0.03057861328125, -0.01082611083984375, -0.043609619140625, -0.035919189453125, -0.07171630859375, -0.06304931640625, -0.0254974365234375, 0.007080078125, 0.007205963134765625, 0.00006693601608276367, 0.047027587890625, -0.022857666015625, -0.082763671875, -0.067138671875, -0.0372314453125, -0.01332855224609375, -0.00310516357421875, 0.0037689208984375, 0.005802154541015625, -0.005107879638671875, 0.01520538330078125, 0.0199127197265625, 0.02886962890625, -0.02862548828125, -0.015899658203125, 0.005275726318359375, -0.037200927734375, 0.0097808837890625, -0.0194091796875, -0.0194244384765625, 0.01532745361328125, 0.021881103515625, -0.034912109375, 0.0372314453125, 0.0289459228515625, 0.0228271484375, -0.053558349609375, -0.07977294921875, -0.0204925537109375, -0.00794219970703125, 0.0182342529296875, -0.039093017578125, -0.0277252197265625, 0.0248870849609375, -0.074951171875, 0.07098388671875, -0.018524169921875, -0.0229339599609375, -0.005096435546875, 0.019012451171875, -0.0211334228515625, 0.00737762451171875, 0.00171661376953125, 0.0032558441162109375, -0.029083251953125, 0.0445556640625, -0.038604736328125, -0.0714111328125, 0.036407470703125, -0.00902557373046875, 0.01451873779296875, -0.0419921875, -0.0311279296875, -0.0039520263671875, 0.115234375, -0.037109375, -0.004261016845703125, 0.0176239013671875, -0.0027313232421875, -0.01229095458984375, -0.019989013671875, -0.0653076171875, -0.01113128662109375, -0.08380126953125, 0.0223541259765625, 0.014678955078125, -0.03057861328125, 0.0008497238159179688, -0.019561767578125, -0.041259765625, -0.045440673828125, 0.043548583984375, -0.0714111328125, 0.0274200439453125, 0.0176544189453125, 0.0186614990234375, -0.038360595703125, -0.0301971435546875, -0.0390625, -0.056640625, 0.01219940185546875, -0.067626953125, 0.0262298583984375, 0.0181884765625, 0.0170440673828125, -0.01885986328125, 0.004486083984375, 0.0131683349609375, 0.0765380859375, -0.025238037109375, -0.0240478515625, 0.0035381317138671875, 0.0258636474609375, 0.0161590576171875, 0.004852294921875, 0.0127410888671875, -0.00495147705078125, -0.00650787353515625, 0.005382537841796875, -0.050994873046875, -0.0132293701171875, -0.035430908203125, -0.0161590576171875, 0.012847900390625, -0.0309295654296875, -0.0167388916015625, 0.01097869873046875, 0.0032939910888671875, -0.02069091796875, -0.0304107666015625, -0.0003299713134765625, 0.04254150390625, -0.01258087158203125, 0.01140594482421875, 0.0008740425109863281, 0.13232421875, 0.0128021240234375, -0.0010967254638671875, -0.04559326171875, -0.0010089874267578125, 0.043212890625, 0.035736083984375, 0.0205230712890625, 0.0257110595703125, -0.0350341796875, 0.046295166015625, 0.047454833984375, -0.0100250244140625, 0.01268768310546875, 0.0249786376953125, 0.0008678436279296875, -0.03076171875, 0.0162353515625, -0.006221771240234375, 0.007030487060546875, 0.0035495758056640625, -0.0246734619140625, 0.0035343170166015625, -0.015869140625, 0.01337432861328125, -0.0229949951171875, 0.043304443359375, 0.00534820556640625, -0.07403564453125, 0.03350830078125, -0.005039215087890625, 0.0012912750244140625, 0.01258087158203125, -0.0176849365234375, 0.0239105224609375, -0.0258026123046875, -0.0180816650390625, -0.00789642333984375, -0.0158233642578125, -0.0002582073211669922, 0.02569580078125, -0.0166778564453125, -0.02996826171875, 0.012481689453125, 0.0023059844970703125, 0.0517578125, 0.020599365234375, -0.011566162109375, -0.05487060546875, 0.0046844482421875, 0.0186767578125, -0.01119232177734375, -0.013275146484375, 0.046722412109375, 0.040740966796875, -0.040008544921875, -0.0149383544921875, -0.021636962890625, -0.01244354248046875, -0.05517578125, -0.01381683349609375, -0.04107666015625, -0.01456451416015625, 0.039794921875, -0.036285400390625, -0.059783935546875, 0.0186614990234375, 0.004337310791015625, 0.06158447265625, 0.078857421875, -0.04620361328125, 0.038177490234375, 0.023101806640625, -0.0182342529296875, -0.07537841796875, -0.0484619140625, -0.01416778564453125, 0.00640106201171875, -0.03118896484375, -0.0095062255859375, -0.019256591796875, 0.004589080810546875, 0.08111572265625, 0.0214385986328125, -0.032470703125, -0.0014600753784179688, 0.028594970703125, -0.025390625, 0.01751708984375, 0.0290069580078125, -0.00392913818359375, 0.035369873046875, -0.0072479248046875, -0.006683349609375, -0.03363037109375, 0.01316070556640625, 0.0266571044921875, -0.01959228515625, 0.0182342529296875, 0.00507354736328125, 0.0025348663330078125, -0.0081939697265625, -0.01898193359375, -0.01715087890625, -0.013763427734375, -0.013427734375, 0.0024394989013671875, 0.051544189453125, -0.0182647705078125, 0.025146484375, -0.007503509521484375, -0.01415252685546875, -0.00443267822265625, -0.003635406494140625, 0.06884765625, 0.037933349609375, -0.056884765625, -0.0277557373046875, -0.038848876953125, -0.04150390625, -0.046356201171875, 0.011993408203125, -0.0494384765625, 0.041839599609375, -0.0072479248046875, -0.01335906982421875, 0.00029754638671875, -0.007717132568359375, -0.00595855712890625, 0.0290679931640625, 0.0164794921875, -0.04022216796875, -0.005893707275390625, -0.021881103515625, 0.0251617431640625, 0.026214599609375, -0.0008802413940429688, -0.0299530029296875, -0.0012006759643554688, -0.0245819091796875, -0.001850128173828125, 0.029052734375, -0.0087890625, -0.0105133056640625, -0.00337982177734375, -0.035400390625, 0.05694580078125, -0.0034160614013671875, 0.0163116455078125, -0.0117340087890625, -0.004791259765625, 0.0022182464599609375, 0.0330810546875, 0.003551483154296875, -0.0247344970703125, 0.0540771484375, -0.0665283203125, -0.0162811279296875, 0.031707763671875, 0.032379150390625, 0.028350830078125, -0.055511474609375, 0.0141448974609375, 0.0285797119140625, 0.0091400146484375, 0.015533447265625, -0.005107879638671875, 0.004505157470703125, 0.022979736328125, 0.0229034423828125, 0.01910400390625, -0.01245880126953125, 0.004566192626953125, 0.036102294921875, -0.01922607421875, 0.0543212890625, -0.004474639892578125, -0.03192138671875, 0.036407470703125, -0.04608154296875, 0.02032470703125, 0.012176513671875, 0.032928466796875, -0.0704345703125, 0.031951904296875, 0.0003712177276611328, 0.006488800048828125, 0.04962158203125, -0.0195159912109375, -0.00043702125549316406, -0.05145263671875, 0.0882568359375, 0.00005805492401123047, 0.0030002593994140625, 0.0287628173828125, -0.0231781005859375, 0.0029430389404296875, 0.0102386474609375, 0.035919189453125, 0.023468017578125, -0.0606689453125, 0.0164337158203125, 0.049072265625, 0.03240966796875, -0.0211181640625, 0.0171966552734375, 0.0224151611328125, 0.00946044921875, 0.006992340087890625, 0.1015625, -0.0252227783203125, 0.0275726318359375, 0.032135009765625, -0.0024089813232421875, 0.0238037109375, 0.043304443359375, -0.02252197265625, 0.02874755859375, 0.016326904296875, -0.01485443115234375, -0.03643798828125, -0.00691986083984375, 0.01055145263671875, 0.07086181640625, -0.0274200439453125, 0.03704833984375, -0.00908660888671875, 0.01000213623046875, -0.029022216796875, -0.042938232421875, 0.08367919921875, -0.0517578125, 0.0014734268188476562, 0.004810333251953125, -0.005092620849609375, 0.00553131103515625, -0.0108184814453125, -0.031707763671875, 0.007343292236328125, 0.059906005859375, -0.0232696533203125, 0.06121826171875, 0.041839599609375, 0.00991058349609375, -0.053955078125, 0.0634765625, 0.03717041015625, 0.0031986236572265625, -0.0143585205078125, 0.0289306640625, -0.03466796875, -0.00550079345703125, -0.02410888671875, 0.058990478515625, -0.041229248046875, 0.0244140625, -0.04425048828125, 0.0190582275390625, -0.00046634674072265625, -0.01422119140625, 0.075439453125, 0.0059356689453125, -0.031585693359375, -0.0113983154296875, 0.037384033203125, 0.0160675048828125, -0.0028438568115234375, 0.037567138671875, -0.012298583984375, -0.0172119140625, 0.0079193115234375, -0.00516510009765625, 0.038330078125, -0.0274658203125, -0.0309906005859375, -0.004428863525390625, -0.011688232421875, -0.0224761962890625, -0.01399993896484375, 0.037506103515625, 0.0111236572265625, -0.0226593017578125, -0.00981903076171875, 0.0185546875, 0.003635406494140625, 0.0101776123046875, -0.026947021484375, 0.0229339599609375, 0.0002713203430175781, -0.001422882080078125, 0.0268096923828125, -0.023345947265625, 0.048065185546875, -0.0232696533203125, 0.005847930908203125, 0.003154754638671875, -0.004375457763671875, 0.02166748046875, 0.050933837890625, -0.05706787109375, 0.00937652587890625, -0.001270294189453125, 0.01947021484375, -0.0469970703125, -0.04656982421875, 0.03302001953125, 0.0298614501953125, 0.00229644775390625, -0.035430908203125, -0.0028820037841796875, 0.005275726318359375, -0.0009565353393554688, -0.00909423828125, -0.006443023681640625, 0.0095062255859375, 0.0290069580078125, -0.0060577392578125, -0.005794525146484375, -0.0067901611328125, 0.0206451416015625, -0.012481689453125, -0.00933074951171875, -0.008453369140625, 0.0026035308837890625, -0.0278167724609375, 0.0255126953125, 0.0272674560546875, 0.0196685791015625, -0.029510498046875, 0.05108642578125, -0.001873016357421875, -0.0015974044799804688, 0.0135650634765625, 0.01142120361328125, 0.004741668701171875, -0.030914306640625, -0.0185546875, -0.06329345703125, 0.02001953125, 0.040191650390625, -0.01715087890625, -0.0025119781494140625, 0.031341552734375, 0.0232086181640625, -0.04412841796875, -0.029693603515625, -0.01776123046875, -0.0352783203125, -0.005702972412109375, -0.01129150390625, 0.0165252685546875, 0.02874755859375, 0.00991058349609375, -0.0122528076171875, 0.0097503662109375, 0.043670654296875, -0.041961669921875, 0.0302581787109375, -0.00811004638671875, -0.06561279296875, 0.006633758544921875, -0.031280517578125, 0.0946044921875, -0.013946533203125, -0.00506591796875, 0.00994110107421875, -0.0229949951171875, 0.0103607177734375, -0.0114593505859375, 0.013092041015625, -0.0019664764404296875, 0.046295166015625, 0.04156494140625, -0.042510986328125, 0.0189056396484375, 0.0255889892578125, 0.01458740234375, 0.015411376953125, 0.01033782958984375, -0.001285552978515625, -0.07269287109375, -0.0305023193359375, -0.087890625, 0.043792724609375, 0.056549072265625, 0.09356689453125, -0.021209716796875, 0.066162109375, -0.00901031494140625, -0.052520751953125, 0.018341064453125, -0.022918701171875, 0.0382080078125, -0.0205841064453125, -0.034393310546875, -0.0027790069580078125, -0.038238525390625, -0.0002930164337158203, 0.0251312255859375, -0.03460693359375, 0.0080108642578125, -0.0156402587890625, 0.0165863037109375, -0.010040283203125, -0.0203399658203125, -0.04168701171875, -0.033233642578125, -0.032470703125, -0.016448974609375, 0.00006699562072753906, -0.0247344970703125, -0.00260162353515625, 0.028778076171875, -0.0210723876953125, -0.0084686279296875, -0.03570556640625, 0.002742767333984375, -0.06427001953125, 0.0183258056640625, -0.0150146484375, -0.047210693359375, -0.011688232421875, -0.0279693603515625, 0.0002899169921875, -0.005275726318359375, 0.0555419921875, -0.00809478759765625, -0.026580810546875, 0.01617431640625, -0.01910400390625, -0.00554656982421875, -0.05133056640625, -0.01241302490234375, 0.0170745849609375, 0.019012451171875, -0.0113372802734375, -0.0141448974609375, -0.0203704833984375, -0.03753662109375, 0.01084136962890625, 0.014892578125, 0.0036144256591796875, -0.0181884765625, -0.0260772705078125, 0.00418853759765625, 0.02130126953125, -0.009490966796875, -0.042510986328125, 0.00559234619140625, -0.0220184326171875, 0.0474853515625, -0.0016002655029296875, 0.044342041015625, -0.00778961181640625, 0.0196380615234375, -0.04241943359375, -0.029632568359375, -0.00464630126953125, 0.0545654296875, -0.004726409912109375, 0.0119476318359375, 0.0176544189453125, -0.023529052734375, -0.00135040283203125, 0.020477294921875, 0.0124359130859375, 0.07098388671875, 0.02691650390625, 0.006290435791015625, 0.0285491943359375, -0.008514404296875, -0.021087646484375, -0.0638427734375, -0.002994537353515625, -0.0264739990234375, -0.008148193359375, -0.06744384765625, 0.039031982421875, 0.003536224365234375, -0.035858154296875, -0.021453857421875, 0.0325927734375, -0.0172882080078125, -0.0162200927734375, -0.07989501953125, 0.0309600830078125, 0.01305389404296875, -0.0023021697998046875, -0.026824951171875, -0.016845703125, -0.020751953125, 0.0263214111328125, -0.008758544921875, 0.078125, -0.0255126953125, 0.0130767822265625, 0.0176239013671875, 0.0224151611328125, 0.01444244384765625, 0.00563812255859375, -0.0225677490234375, 0.0051727294921875, 0.0290679931640625, 0.035858154296875, -0.006072998046875, 0.03131103515625, 0.03192138671875, 0.0131683349609375, -0.01340484619140625, -0.04931640625, -0.03094482421875, -0.0126953125, 0.10205078125, 0.0270538330078125, 0.0224151611328125, -0.033905029296875, 0.0230712890625, -0.012786865234375, -0.0228118896484375, -0.00608062744140625, 0.0157012939453125, -0.06573486328125, -0.01519012451171875, 0.027069091796875, 0.019134521484375, 0.007648468017578125, -0.0355224609375, 0.01413726806640625, -0.04266357421875, 0.0003032684326171875, -0.00881195068359375, 0.014190673828125, -0.0364990234375, 0.034820556640625, 0.004230499267578125, 0.04376220703125, -0.0165863037109375, 0.0258026123046875, 0.0296783447265625, 0.047332763671875, 0.026031494140625, 0.06396484375, -0.04217529296875, -0.0242462158203125, 0.037200927734375, 0.00782012939453125, -0.008056640625, -0.013397216796875, 0.00921630859375, 0.01355743408203125, -0.0287017822265625, -0.01505279541015625, 0.005260467529296875, 0.043975830078125, -0.03271484375, 0.11248779296875, -0.0101776123046875, 0.0167388916015625, -0.0295562744140625, 0.05755615234375, -0.01080322265625, -0.022308349609375, 0.01641845703125, -0.0264434814453125, 0.0213165283203125, -0.0017871856689453125, 0.03521728515625, -0.0017557144165039062, 0.00579833984375, -0.045501708984375, -0.007549285888671875, 0.01360321044921875 ]
837c71ef35eb61203ac4f117cff92c2f42044fe8
Wordpress Stackexchange Q: How can I find all internal links that are pointing to post/page? I have deleted a page and now I want to find all internal links that are pointing to this deleted page. So I need to know which posts/pages have a link to the deleted page. Is there a faster way to do this than just manually checking all your pages and posts? Please advise me. A: I would search the database's wp_posts table to find the URL(s) you are looking for, using phpmyadmin.
Q: How can I find all internal links that are pointing to post/page? I have deleted a page and now I want to find all internal links that are pointing to this deleted page. So I need to know which posts/pages have a link to the deleted page. Is there a faster way to do this than just manually checking all your pages and posts? Please advise me. A: I would search the database's wp_posts table to find the URL(s) you are looking for, using phpmyadmin. A: I found it is easier to use a service like https://validator.w3.org/checklink to check any broken link than checking through wp_posts database. You enter your site url and it will check through all the pages on your site and provide a list of broken links. You can then go and edit the pages with broken link. A: I developed a plugin to show all incoming internal links to a post. You can check it out here A: Slim SEO Link Manager plugin can help you do that. The plugin scans all your content to find all links for you, including internal links and external links. And it gives you full reports of which links point to a post, or from a post. Here is a screenshot of the plugin, where you can see internal outbound and internal inbound links. Another good feature of the plugin is that when you update your post slug/URL, all internal links will be updated as well. So, it keeps your links always active and fresh.
wordpress
{ "language": "en", "length": 256, "provenance": "stackexchange_00019.jsonl.gz:433151", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/101752" }
[ 0.0041961669921875, -0.004886627197265625, -0.018951416015625, 0.042755126953125, -0.0104217529296875, -0.0555419921875, 0.054718017578125, -0.031829833984375, 0.032745361328125, 0.0177154541015625, -0.035186767578125, -0.008941650390625, 0.02471923828125, -0.0259552001953125, 0.01250457763671875, -0.0058135986328125, 0.0240936279296875, 0.01119232177734375, 0.05694580078125, 0.00510406494140625, 0.00545501708984375, 0.01195526123046875, 0.0543212890625, -0.0211181640625, 0.01453399658203125, 0.0161590576171875, 0.03790283203125, -0.00027489662170410156, 0.0084686279296875, -0.020904541015625, 0.017059326171875, -0.0049285888671875, 0.00823974609375, -0.012298583984375, 0.038055419921875, -0.048309326171875, -0.03204345703125, 0.0156402587890625, 0.028106689453125, -0.042205810546875, 0.013641357421875, 0.0012750625610351562, 0.0185089111328125, -0.0045318603515625, -0.002040863037109375, -0.027008056640625, 0.0241851806640625, -0.042022705078125, 0.0211944580078125, 0.0260162353515625, -0.001651763916015625, 0.0113372802734375, -0.0016489028930664062, 0.035491943359375, -0.03326416015625, -0.0423583984375, 0.046173095703125, -0.018707275390625, 0.0211944580078125, -0.0546875, -0.0479736328125, 0.0130615234375, 0.033111572265625, 0.01532745361328125, -0.040679931640625, 0.005504608154296875, 0.01004791259765625, 0.0010728836059570312, -0.0175628662109375, -0.062286376953125, 0.0191192626953125, 0.006195068359375, -0.0221710205078125, 0.0186920166015625, -0.0020294189453125, -0.03485107421875, 0.032440185546875, -0.0167083740234375, -0.025634765625, 0.058441162109375, -0.0201873779296875, 0.017120361328125, -0.08538818359375, -0.0157012939453125, 0.011566162109375, 0.0013751983642578125, -0.0126190185546875, -0.02587890625, -0.0531005859375, -0.00759124755859375, -0.03643798828125, -0.0311737060546875, -0.033782958984375, -0.013916015625, -0.038909912109375, 0.0129852294921875, 0.017578125, 0.03900146484375, -0.0247802734375, -0.00843048095703125, -0.0222930908203125, -0.01381683349609375, -0.00952911376953125, -0.0198974609375, 0.00852203369140625, 0.0275115966796875, 0.018890380859375, -0.0234832763671875, 0.0125885009765625, 0.00090789794921875, -0.0182037353515625, 0.031951904296875, -0.004192352294921875, -0.01255035400390625, -0.022125244140625, 0.049896240234375, -0.0027141571044921875, -0.01424407958984375, -0.0133209228515625, 0.01221466064453125, -0.016510009765625, 0.029144287109375, -0.030364990234375, -0.0308074951171875, -0.01087188720703125, -0.006458282470703125, 0.006153106689453125, -0.0157928466796875, 0.033447265625, 0.005603790283203125, -0.048675537109375, 0.03314208984375, 0.051971435546875, -0.024017333984375, -0.00795745849609375, -0.029876708984375, -0.021759033203125, -0.00528717041015625, -0.01093292236328125, -0.01244354248046875, 0.029541015625, -0.027252197265625, 0.019012451171875, 0.0294036865234375, 0.0245361328125, 0.021942138671875, 0.0252227783203125, 0.01428985595703125, -0.00751495361328125, -0.0299835205078125, 0.00545501708984375, 0.022003173828125, 0.048126220703125, -0.03656005859375, 0.01416015625, -0.0743408203125, 0.054351806640625, -0.0572509765625, 0.018768310546875, -0.06317138671875, 0.03460693359375, 0.019744873046875, 0.0386962890625, -0.0034923553466796875, -0.03643798828125, -0.0227508544921875, -0.07257080078125, -0.033111572265625, 0.0224456787109375, 0.03271484375, -0.01247406005859375, -0.059967041015625, -0.019195556640625, -0.0074005126953125, -0.0152435302734375, 0.032562255859375, 0.004955291748046875, -0.0011844635009765625, 0.0032024383544921875, 0.07470703125, 0.020965576171875, -0.020172119140625, 0.00933837890625, 0.011077880859375, -0.04571533203125, 0.0210113525390625, 0.004871368408203125, 0.0582275390625, 0.0174102783203125, 0.0302581787109375, -0.0009860992431640625, -0.019439697265625, -0.0195159912109375, 0.00881195068359375, 0.007221221923828125, -0.00955963134765625, -0.005397796630859375, -0.001682281494140625, -0.0176544189453125, -0.0018596649169921875, -0.0237884521484375, 0.01096343994140625, -0.03057861328125, 0.019012451171875, -0.0712890625, 0.01537322998046875, -0.033416748046875, 0.042999267578125, -0.00255584716796875, 0.00909423828125, 0.03155517578125, 0.03118896484375, -0.016082763671875, -0.08148193359375, -0.0335693359375, 0.0438232421875, 0.0181121826171875, -0.04583740234375, 0.01486968994140625, -0.031982421875, -0.017303466796875, 0.0134429931640625, -0.045501708984375, 0.0164794921875, 0.047698974609375, -0.0010862350463867188, -0.002834320068359375, -0.023162841796875, 0.01537322998046875, 0.022491455078125, -0.08770751953125, 0.005580902099609375, 0.045654296875, 0.03411865234375, -0.0120391845703125, 0.01189422607421875, 0.005542755126953125, -0.042236328125, -0.00009739398956298828, 0.03826904296875, 0.029083251953125, 0.01551055908203125, 0.00004607439041137695, 0.0123138427734375, 0.01715087890625, -0.060211181640625, -0.0042572021484375, 0.00652313232421875, 0.01226043701171875, 0.0548095703125, -0.028839111328125, 0.011810302734375, 0.0192108154296875, 0.02392578125, -0.0225982666015625, 0.05145263671875, 0.0308074951171875, 0.022796630859375, -0.032257080078125, 0.03057861328125, -0.0047454833984375, -0.0006456375122070312, -0.03656005859375, -0.0010433197021484375, 0.03680419921875, 0.00995635986328125, 0.05029296875, 0.040771484375, 0.0007519721984863281, -0.000621795654296875, 0.00215911865234375, -0.0195159912109375, -0.0010433197021484375, 0.006122589111328125, 0.05450439453125, -0.00897216796875, -0.038330078125, -0.00522613525390625, -0.0020618438720703125, 0.010589599609375, -0.0268096923828125, -0.0002753734588623047, 0.007747650146484375, -0.01236724853515625, 0.00531768798828125, -0.008026123046875, 0.031036376953125, 0.0125579833984375, 0.01461029052734375, 0.0270843505859375, 0.041351318359375, 0.0145111083984375, -0.01114654541015625, 0.0229949951171875, -0.0145111083984375, -0.022979736328125, 0.010498046875, -0.06842041015625, 0.047027587890625, -0.02642822265625, 0.06524658203125, 0.07568359375, 0.01629638671875, -0.00659942626953125, -0.00665283203125, -0.00890350341796875, 0.039764404296875, -0.006317138671875, -0.003971099853515625, -0.022674560546875, -0.0207977294921875, -0.002872467041015625, 0.0146636962890625, -0.0022945404052734375, -0.0022296905517578125, -0.043975830078125, -0.0210723876953125, -0.01212310791015625, -0.1573486328125, -0.087890625, -0.021453857421875, -0.027862548828125, -0.032562255859375, 0.00601959228515625, -0.01971435546875, 0.0178680419921875, 0.01708984375, 0.005077362060546875, 0.03289794921875, -0.030242919921875, -0.06121826171875, -0.0328369140625, -0.06781005859375, -0.0196990966796875, -0.0069580078125, -0.0092926025390625, 0.0132293701171875, 0.0239105224609375, 0.019134521484375, -0.044281005859375, 0.0157012939453125, 0.042236328125, -0.0275421142578125, -0.02850341796875, -0.00653839111328125, 0.0523681640625, -0.01033782958984375, 0.0275115966796875, 0.023406982421875, 0.033416748046875, -0.052642822265625, -0.01345062255859375, -0.025970458984375, 0.038604736328125, 0.0196075439453125, -0.032440185546875, 0.00811767578125, 0.03411865234375, 0.004779815673828125, -0.01264190673828125, -0.022796630859375, -0.01145172119140625, -0.030914306640625, -0.0007805824279785156, 0.017333984375, -0.01293182373046875, 0.0007271766662597656, 0.0010347366333007812, 0.0418701171875, 0.009033203125, -0.0234527587890625, -0.01062774658203125, 0.03363037109375, 0.0218048095703125, 0.06585693359375, -0.01389312744140625, 0.07354736328125, -0.0022335052490234375, 0.00502777099609375, 0.027557373046875, 0.00018012523651123047, -0.0027294158935546875, -0.0178070068359375, -0.0467529296875, 0.0290985107421875, 0.0309600830078125, 0.0150146484375, 0.049346923828125, -0.003467559814453125, -0.0301971435546875, -0.019073486328125, 0.05999755859375, -0.048492431640625, -0.0248870849609375, -0.04254150390625, 0.00601959228515625, 0.01110076904296875, -0.044830322265625, 0.011138916015625, -0.01210784912109375, -0.07061767578125, 0.03778076171875, 0.01611328125, -0.0165557861328125, -0.035003662109375, 0.034423828125, -0.05810546875, -0.021728515625, 0.041748046875, -0.0206146240234375, -0.01009368896484375, -0.003223419189453125, -0.0118560791015625, -0.0103302001953125, -0.038238525390625, -0.0035800933837890625, -0.0552978515625, -0.01126861572265625, -0.03179931640625, 0.04931640625, 0.0302886962890625, -0.041534423828125, 0.00205230712890625, 0.028900146484375, 0.0131378173828125, -0.00555419921875, -0.02093505859375, -0.0202484130859375, -0.0271759033203125, 0.00884246826171875, -0.03582763671875, -0.0269012451171875, 0.025726318359375, -0.03155517578125, -0.0748291015625, -0.0064239501953125, -0.036102294921875, 0.057647705078125, -0.00852203369140625, -0.0209808349609375, -0.025787353515625, -0.0047760009765625, -0.01151275634765625, 0.0302734375, -0.0256195068359375, 0.0033702850341796875, -0.0246429443359375, -0.059539794921875, 0.017730712890625, 0.0615234375, -0.0172119140625, 0.0009217262268066406, -0.02423095703125, 0.005748748779296875, -0.039764404296875, -0.01441192626953125, 0.001651763916015625, 0.0247802734375, -0.00710296630859375, 0.07550048828125, 0.043304443359375, 0.013153076171875, 0.0012121200561523438, -0.007762908935546875, -0.018463134765625, -0.024261474609375, 0.02947998046875, 0.004108428955078125, -0.0167694091796875, -0.0002734661102294922, -0.0217132568359375, 0.0513916015625, 0.059112548828125, -0.020751953125, -0.014373779296875, 0.003803253173828125, 0.03668212890625, -0.044097900390625, 0.03204345703125, -0.0271148681640625, 0.004772186279296875, -0.012603759765625, 0.00615692138671875, 0.067626953125, 0.049560546875, -0.00958251953125, 0.0178070068359375, 0.03619384765625, -0.00867462158203125, -0.0018682479858398438, 0.0328369140625, -0.0207672119140625, 0.0261993408203125, -0.023162841796875, -0.0225067138671875, -0.0192108154296875, -0.0209503173828125, 0.06121826171875, -0.0087432861328125, -0.050323486328125, 0.003520965576171875, -0.0277862548828125, -0.0372314453125, 0.0228424072265625, 0.007236480712890625, 0.01177215576171875, 0.004070281982421875, -0.00011277198791503906, 0.006984710693359375, -0.01326751708984375, 0.016357421875, -0.027435302734375, 0.0157012939453125, -0.02349853515625, 0.0065765380859375, 0.02740478515625, 0.0692138671875, -0.054290771484375, 0.06005859375, -0.001361846923828125, -0.0025196075439453125, -0.0162506103515625, 0.02752685546875, 0.032806396484375, -0.0215911865234375, 0.024444580078125, -0.022247314453125, 0.016876220703125, -0.03240966796875, -0.0097503662109375, 0.04132080078125, 0.055389404296875, 0.0014886856079101562, -0.01288604736328125, -0.00019252300262451172, -0.0208740234375, -0.003818511962890625, 0.07696533203125, 0.041107177734375, -0.052337646484375, -0.0350341796875, 0.008514404296875, 0.0352783203125, -0.00958251953125, -0.01061248779296875, -0.01502227783203125, -0.0242462158203125, 0.00757598876953125, -0.031036376953125, -0.03118896484375, -0.00006014108657836914, 0.0140228271484375, -0.01507568359375, -0.03570556640625, -0.0142669677734375, -0.019927978515625, 0.00621795654296875, -0.0188140869140625, -0.00919342041015625, 0.042572021484375, 0.02288818359375, 0.05633544921875, -0.0266876220703125, -0.046966552734375, 0.043609619140625, -0.01435089111328125, 0.063720703125, 0.01184844970703125, -0.0369873046875, -0.01007080078125, -0.040863037109375, -0.0133819580078125, 0.00818634033203125, -0.0246124267578125, -0.01197052001953125, -0.0209503173828125, 0.027069091796875, 0.019195556640625, 0.01983642578125, 0.005733489990234375, -0.01415252685546875, -0.0039043426513671875, 0.002788543701171875, -0.012542724609375, 0.0184173583984375, 0.05303955078125, -0.022796630859375, 0.05389404296875, 0.02972412109375, 0.045867919921875, -0.0302886962890625, -0.030029296875, 0.03302001953125, -0.029632568359375, -0.03558349609375, -0.0303802490234375, -0.0018768310546875, -0.0213775634765625, -0.01308441162109375, -0.0153350830078125, -0.048553466796875, -0.0174407958984375, -0.0096435546875, -0.023773193359375, 0.10125732421875, 0.037750244140625, 0.004627227783203125, 0.0261993408203125, 0.004199981689453125, -0.03240966796875, 0.004489898681640625, -0.011962890625, -0.0028171539306640625, 0.054351806640625, -0.0084686279296875, -0.043243408203125, -0.0275421142578125, 0.016693115234375, 0.057861328125, -0.031341552734375, 0.029296875, 0.0161590576171875, -0.0115814208984375, 0.051116943359375, 0.01470184326171875, 0.015167236328125, -0.019073486328125, 0.06854248046875, 0.007099151611328125, -0.033721923828125, 0.052276611328125, -0.036285400390625, -0.006725311279296875, 0.0215911865234375, 0.0271148681640625, -0.075927734375, 0.020233154296875, 0.008087158203125, 0.029388427734375, 0.0243072509765625, 0.0290069580078125, -0.004909515380859375, 0.01503753662109375, -0.01204681396484375, -0.005588531494140625, -0.00666046142578125, 0.00640106201171875, 0.008087158203125, 0.01239776611328125, -0.0018568038940429688, 0.06402587890625, 0.0122833251953125, -0.0250244140625, -0.00931549072265625, 0.0246734619140625, 0.01145172119140625, -0.04644775390625, 0.004894256591796875, 0.03387451171875, -0.0027141571044921875, -0.0188140869140625, 0.07177734375, -0.02783203125, 0.034454345703125, 0.0352783203125, -0.0190277099609375, 0.038055419921875, 0.033782958984375, -0.014556884765625, 0.0239410400390625, -0.01511383056640625, -0.004352569580078125, -0.037445068359375, -0.01273345947265625, 0.023284912109375, -0.0168914794921875, -0.0227813720703125, 0.0121917724609375, -0.06829833984375, -0.024200439453125, -0.00400543212890625, 0.036407470703125, 0.069580078125, -0.0291900634765625, -0.01308441162109375, 0.03570556640625, 0.0430908203125, -0.0007414817810058594, -0.0175933837890625, -0.03564453125, -0.01111602783203125, 0.01055145263671875, -0.0308685302734375, -0.0164642333984375, -0.0029621124267578125, -0.044952392578125, -0.044830322265625, 0.0533447265625, -0.045135498046875, 0.017608642578125, 0.0125885009765625, 0.0207672119140625, 0.012542724609375, 0.0248565673828125, -0.0115509033203125, 0.0859375, 0.007701873779296875, 0.01477813720703125, -0.0447998046875, -0.0187530517578125, 0.00005692243576049805, 0.04595947265625, 0.051300048828125, 0.00959014892578125, -0.0169219970703125, -0.0261077880859375, 0.0213623046875, 0.0242919921875, -0.0063934326171875, 0.0271453857421875, 0.004581451416015625, 0.035919189453125, 0.05316162109375, -0.058197021484375, 0.01337432861328125, 0.0017881393432617188, 0.01245880126953125, 0.0294952392578125, 0.00907135009765625, 0.0168304443359375, 0.030487060546875, -0.0140838623046875, -0.033203125, 0.017120361328125, 0.0255889892578125, -0.036468505859375, 0.028076171875, 0.0187530517578125, 0.021575927734375, -0.03863525390625, -0.072509765625, -0.00196075439453125, 0.0220794677734375, -0.002780914306640625, 0.024993896484375, 0.01509857177734375, 0.0269775390625, 0.0531005859375, -0.0728759765625, -0.0105438232421875, -0.0196685791015625, -0.0204010009765625, 0.04376220703125, 0.0404052734375, 0.0202178955078125, -0.031707763671875, 0.0029144287109375, 0.0183868408203125, 0.06256103515625, -0.04168701171875, -0.08660888671875, 0.0085906982421875, -0.03497314453125, 0.01119232177734375, 0.026641845703125, -0.004425048828125, -0.0281982421875, 0.032623291015625, -0.006778717041015625, -0.03521728515625, 0.0166473388671875, 0.0291748046875, 0.000659942626953125, -0.0211639404296875, 0.01558685302734375, -0.028411865234375, -0.003269195556640625, 0.007720947265625, 0.035400390625, -0.0225372314453125, -0.01523590087890625, 0.00775909423828125, 0.057373046875, 0.03271484375, 0.016204833984375, 0.00605010986328125, -0.0277099609375, -0.00968170166015625, -0.02178955078125, -0.0780029296875, 0.016571044921875, 0.03369140625, 0.05316162109375, -0.002315521240234375, 0.05584716796875, -0.00403594970703125, -0.08123779296875, 0.01018524169921875, 0.003971099853515625, -0.050994873046875, 0.037017822265625, -0.03472900390625, 0.017822265625, -0.01004791259765625, -0.0174407958984375, -0.02362060546875, 0.007740020751953125, 0.0213623046875, 0.0140380859375, -0.0072784423828125, 0.0253448486328125, -0.01338958740234375, 0.06597900390625, -0.0030040740966796875, 0.0003464221954345703, 0.0181732177734375, -0.04644775390625, -0.04046630859375, 0.028656005859375, 0.015716552734375, -0.010162353515625, 0.03875732421875, 0.0130615234375, -0.01384735107421875, 0.028076171875, -0.0174713134765625, 0.022125244140625, -0.0176849365234375, 0.01024627685546875, 0.027191162109375, 0.00923919677734375, 0.0084686279296875, -0.0165557861328125, -0.00025916099548339844, 0.01453399658203125, 0.0095672607421875, 0.0244598388671875, 0.054595947265625, 0.011016845703125, 0.00812530517578125, 0.00940704345703125, 0.0178070068359375, -0.02069091796875, 0.001621246337890625, 0.0190277099609375, -0.0089874267578125, -0.0007390975952148438, 0.00634765625, -0.0740966796875, 0.06280517578125, -0.0085601806640625, 0.02642822265625, 0.046295166015625, -0.004505157470703125, -0.01035308837890625, 0.021759033203125, -0.01447296142578125, -0.0250091552734375, 0.027679443359375, 0.01493072509765625, -0.053955078125, 0.044647216796875, 0.006610870361328125, 0.02557373046875, 0.04705810546875, -0.0008263587951660156, -0.003307342529296875, 0.013031005859375, -0.042724609375, 0.0096435546875, 0.019378662109375, 0.0122833251953125, -0.004001617431640625, -0.002460479736328125, -0.02166748046875, 0.0156402587890625, 0.00688934326171875, 0.010009765625, 0.0167388916015625, 0.0279083251953125, -0.049407958984375, -0.0303497314453125, 0.0140228271484375, -0.01403045654296875, 0.006011962890625, -0.041961669921875, 0.010711669921875, 0.0231170654296875, 0.03094482421875, -0.004215240478515625, -0.0202789306640625, -0.0285186767578125, -0.01387786865234375, -0.01062774658203125, -0.02215576171875, 0.023162841796875, -0.03143310546875, 0.03436279296875, 0.034515380859375, -0.070556640625, 0.01271820068359375, 0.011077880859375, -0.0027866363525390625, 0.0053558349609375, 0.0173797607421875, -0.027191162109375, -0.00678253173828125, -0.032867431640625, -0.0137176513671875, -0.032196044921875, 0.0379638671875, 0.00337982177734375, 0.027862548828125, 0.044921875, -0.03411865234375, -0.006305694580078125, 0.020965576171875, 0.035247802734375, 0.059478759765625, 0.010406494140625, -0.0479736328125, -0.01358795166015625, -0.0026187896728515625, 0.016510009765625, -0.0203704833984375, 0.00749969482421875, -0.037445068359375, -0.0106964111328125, 0.0085601806640625, 0.013275146484375, 0.035675048828125, -0.0177001953125, -0.0318603515625, 0.1070556640625, -0.023193359375, -0.0203857421875, -0.0748291015625, 0.0278167724609375, 0.0014848709106445312, -0.005138397216796875, -0.0235595703125, -0.0018453598022460938, -0.024749755859375, 0.0282745361328125, 0.043548583984375, 0.0347900390625, 0.003238677978515625, 0.07208251953125, -0.0003006458282470703, 0.07177734375, 0.0186614990234375, 0.0310211181640625, 0.045684814453125, -0.0233154296875, 0.0169677734375, 0.04107666015625, -0.0513916015625, -0.032073974609375, -0.04351806640625, -0.0213775634765625, -0.00472259521484375, -0.0189666748046875, -0.031646728515625, -0.0452880859375, 0.05419921875, 0.0149078369140625, 0.027374267578125, 0.0025806427001953125, -0.01389312744140625, -0.002727508544921875, -0.016876220703125, -0.0287628173828125, 0.005428314208984375, -0.037628173828125, 0.00798797607421875, -0.045135498046875, -0.01378631591796875, -0.0418701171875, -0.0230865478515625, -0.05023193359375, -0.01416015625, -0.044158935546875, -0.0037097930908203125, 0.01222991943359375, 0.10748291015625, 0.031768798828125, -0.04827880859375, 0.02227783203125, -0.0343017578125, -0.028076171875, 0.0283355712890625, -0.06634521484375, 0.008514404296875, -0.00617218017578125, -0.034576416015625, 0.0274810791015625, -0.0004603862762451172, 0.04827880859375, -0.03485107421875, -0.03399658203125, -0.00994873046875, 0.048583984375, 0.00438690185546875, 0.03924560546875, -0.0141448974609375, 0.04669189453125, -0.0052642822265625, 0.08734130859375, 0.0275115966796875, 0.0802001953125, 0.0121917724609375, 0.058441162109375, 0.00565338134765625, -0.039642333984375, 0.0030155181884765625, -0.040008544921875, -0.021514892578125, 0.00423431396484375, -0.0576171875, -0.073486328125, 0.021759033203125, 0.02679443359375, 0.0183868408203125, 0.032012939453125 ]
f9dd4bba1ce008572df870781c330e998bf197ec
Wordpress Stackexchange Q: Add a subitem to Woocommerce section I want to add a subitem to "Woocommerce" parent item, below "Orders", this subitem is a custom post type. I tried to use (in $args): $args = array('show_in_menu' => 'edit.php?post_type=shop_order'); register_post_type('my_posttype', $args); But it doesn't work, I tried with another section ex. 'edit.php?anotherpage' and it works. Any idea?! A: Short answer, use: $args = array('show_in_menu' => 'woocommerce'); register_post_type('my_posttype', $args); But this won't give you the custom post type submenus. You can also use add_submenu_page, the code below is just an example: function register_my_custom_submenu_page() { add_submenu_page( 'woocommerce', 'My Custom Submenu Page', 'My Custom Submenu Page', 'manage_options', 'my-custom-submenu-page', 'my_custom_submenu_page_callback' ); } function my_custom_submenu_page_callback() { echo '<h3>My Custom Submenu Page</h3>'; } add_action('admin_menu', 'register_my_custom_submenu_page',99); You need a high(er) priority number to execute it later then the woocommerce_admin_menu function, which has 9, and there is woocommerce_admin_menu_after, which has 50 - those functionbs are in woocommerce-admin-init.php.
Q: Add a subitem to Woocommerce section I want to add a subitem to "Woocommerce" parent item, below "Orders", this subitem is a custom post type. I tried to use (in $args): $args = array('show_in_menu' => 'edit.php?post_type=shop_order'); register_post_type('my_posttype', $args); But it doesn't work, I tried with another section ex. 'edit.php?anotherpage' and it works. Any idea?! A: Short answer, use: $args = array('show_in_menu' => 'woocommerce'); register_post_type('my_posttype', $args); But this won't give you the custom post type submenus. You can also use add_submenu_page, the code below is just an example: function register_my_custom_submenu_page() { add_submenu_page( 'woocommerce', 'My Custom Submenu Page', 'My Custom Submenu Page', 'manage_options', 'my-custom-submenu-page', 'my_custom_submenu_page_callback' ); } function my_custom_submenu_page_callback() { echo '<h3>My Custom Submenu Page</h3>'; } add_action('admin_menu', 'register_my_custom_submenu_page',99); You need a high(er) priority number to execute it later then the woocommerce_admin_menu function, which has 9, and there is woocommerce_admin_menu_after, which has 50 - those functionbs are in woocommerce-admin-init.php.
wordpress
{ "language": "en", "length": 147, "provenance": "stackexchange_00019.jsonl.gz:433158", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/101773" }
[ 0.06951904296875, 0.005035400390625, 0.00525665283203125, -0.034515380859375, 0.013427734375, -0.045501708984375, 0.038665771484375, -0.038299560546875, -0.0269775390625, -0.0017118453979492188, -0.025726318359375, -0.0073394775390625, -0.051177978515625, -0.0257110595703125, 0.00002378225326538086, -0.050872802734375, 0.029388427734375, 0.005245208740234375, 0.031158447265625, 0.00745391845703125, -0.0274658203125, 0.03497314453125, 0.0247039794921875, 0.01824951171875, 0.028106689453125, -0.0213775634765625, 0.07977294921875, -0.01189422607421875, 0.0478515625, 0.00930023193359375, 0.032440185546875, -0.0460205078125, 0.020416259765625, -0.01175689697265625, 0.037078857421875, 0.016510009765625, 0.0182037353515625, -0.00911712646484375, 0.0182037353515625, 0.005496978759765625, 0.013671875, 0.002079010009765625, 0.00960540771484375, 0.03533935546875, -0.0244903564453125, -0.054656982421875, 0.01910400390625, -0.0220947265625, 0.00954437255859375, -0.056427001953125, -0.0004992485046386719, -0.0026454925537109375, 0.0188751220703125, -0.05560302734375, -0.01482391357421875, -0.00786590576171875, -0.019134521484375, 0.0003075599670410156, 0.033203125, 0.027679443359375, -0.0249786376953125, -0.01436614990234375, 0.004512786865234375, -0.05303955078125, 0.035980224609375, 0.01558685302734375, 0.00963592529296875, 0.00522613525390625, -0.061737060546875, 0.040496826171875, 0.044158935546875, -0.062103271484375, 0.0198211669921875, 0.022705078125, -0.0262298583984375, -0.08428955078125, 0.0399169921875, -0.03485107421875, 0.0242767333984375, 0.0179595947265625, 0.03033447265625, 0.01470184326171875, 0.00902557373046875, 0.01433563232421875, -0.0241851806640625, -0.0126953125, -0.00447845458984375, -0.00725555419921875, -0.00972747802734375, -0.0189208984375, -0.02008056640625, -0.0433349609375, 0.0211334228515625, 0.0237579345703125, -0.0229949951171875, -0.01494598388671875, 0.019256591796875, 0.058807373046875, 0.0114288330078125, 0.04705810546875, 0.00887298583984375, -0.0548095703125, 0.077880859375, -0.0672607421875, 0.0160064697265625, 0.04302978515625, -0.00348663330078125, -0.0009150505065917969, 0.0401611328125, 0.003795623779296875, 0.00908660888671875, 0.04132080078125, 0.0063629150390625, -0.07855224609375, 0.006397247314453125, 0.0092620849609375, -0.00907135009765625, -0.01062774658203125, 0.040496826171875, -0.05389404296875, 0.0163421630859375, 0.03509521484375, 0.0157318115234375, 0.0015659332275390625, -0.0180511474609375, 0.00531768798828125, 0.004268646240234375, -0.06781005859375, -0.004848480224609375, -0.0012187957763671875, -0.039947509765625, 0.0255889892578125, 0.06427001953125, 0.024749755859375, 0.0167694091796875, -0.01248931884765625, 0.0260009765625, 0.0007100105285644531, 0.01580810546875, -0.024658203125, 0.059478759765625, -0.00701141357421875, -0.03759765625, 0.0389404296875, 0.009674072265625, 0.00368499755859375, -0.002994537353515625, 0.007106781005859375, 0.027099609375, 0.0034618377685546875, -0.0014123916625976562, -0.048309326171875, 0.035614013671875, 0.001552581787109375, -0.047515869140625, 0.01277923583984375, -0.018157958984375, 0.00753021240234375, -0.027679443359375, -0.0183868408203125, -0.06170654296875, -0.01751708984375, 0.0186767578125, -0.0908203125, -0.08587646484375, 0.041473388671875, -0.00830841064453125, -0.0113525390625, 0.03668212890625, 0.020233154296875, 0.05255126953125, -0.051910400390625, 0.0163116455078125, 0.0306854248046875, 0.003078460693359375, 0.0188751220703125, -0.0016355514526367188, 0.04205322265625, 0.020843505859375, 0.0433349609375, 0.00909423828125, -0.0272369384765625, 0.08587646484375, -0.0264739990234375, -0.06134033203125, 0.03643798828125, 0.0149688720703125, 0.057861328125, 0.0218048095703125, 0.0384521484375, 0.0215301513671875, 0.0174560546875, -0.044219970703125, 0.006298065185546875, -0.01372528076171875, -0.014892578125, 0.0175628662109375, 0.00710296630859375, -0.0129547119140625, 0.013946533203125, -0.06585693359375, -0.01122283935546875, 0.006175994873046875, 0.0241546630859375, 0.011138916015625, 0.0026493072509765625, -0.0061187744140625, 0.0345458984375, 0.031585693359375, 0.006954193115234375, -0.018890380859375, -0.0123443603515625, 0.0159149169921875, -0.06695556640625, -0.03765869140625, 0.01183319091796875, -0.042083740234375, 0.06597900390625, -0.007221221923828125, 0.036651611328125, -0.00884246826171875, -0.04742431640625, 0.005931854248046875, -0.007587432861328125, 0.04339599609375, 0.0193634033203125, -0.0171661376953125, -0.0119781494140625, 0.03265380859375, 0.03179931640625, -0.059600830078125, 0.0211944580078125, 0.054901123046875, -0.0299835205078125, -0.067138671875, 0.007110595703125, -0.0214996337890625, -0.055084228515625, -0.0303802490234375, 0.0731201171875, 0.0311431884765625, 0.031341552734375, 0.006031036376953125, 0.0259552001953125, 0.07177734375, -0.01192474365234375, -0.0016851425170898438, -0.0017004013061523438, -0.0413818359375, -0.0125885009765625, 0.032928466796875, 0.01459503173828125, 0.0287017822265625, -0.004726409912109375, 0.020263671875, 0.0284271240234375, -0.01544189453125, -0.02587890625, 0.006847381591796875, -0.010284423828125, 0.0051727294921875, -0.0362548828125, -0.0183258056640625, -0.00916290283203125, 0.0290069580078125, 0.032470703125, 0.049163818359375, 0.01554107666015625, -0.036376953125, 0.005924224853515625, 0.021575927734375, 0.0010423660278320312, -0.00241851806640625, -0.027984619140625, -0.006839752197265625, -0.04620361328125, -0.04241943359375, 0.040008544921875, 0.004486083984375, -0.0423583984375, 0.00778961181640625, 0.03338623046875, -0.0229034423828125, -0.007434844970703125, -0.0101318359375, -0.071533203125, -0.00946044921875, 0.0484619140625, -0.0026607513427734375, -0.0167236328125, 0.03460693359375, -0.01483917236328125, -0.040802001953125, 0.0244598388671875, -0.009429931640625, -0.039886474609375, 0.06976318359375, 0.0028705596923828125, 0.0309600830078125, -0.0216522216796875, 0.02154541015625, 0.027923583984375, -0.035003662109375, -0.0011806488037109375, 0.01247406005859375, -0.04827880859375, -0.0181427001953125, 0.0467529296875, 0.0121002197265625, -0.01361846923828125, -0.03741455078125, 0.046417236328125, 0.0106658935546875, 0.00945281982421875, -0.0049285888671875, -0.0219879150390625, -0.0135040283203125, 0.0138397216796875, -0.03204345703125, -0.03662109375, 0.0218505859375, -0.06292724609375, 0.0134735107421875, -0.009765625, -0.025390625, -0.01934814453125, 0.0162811279296875, 0.00824737548828125, -0.02392578125, -0.024200439453125, 0.006778717041015625, -0.0245361328125, -0.03924560546875, 0.01120758056640625, 0.0188140869140625, 0.00897216796875, -0.0032024383544921875, 0.041015625, 0.0008006095886230469, -0.0222625732421875, 0.0226898193359375, 0.0020923614501953125, 0.00902557373046875, 0.01212310791015625, 0.029693603515625, -0.040191650390625, 0.0181121826171875, 0.0012464523315429688, 0.0295562744140625, 0.035430908203125, -0.0295867919921875, -0.003940582275390625, -0.0186920166015625, 0.0277252197265625, 0.0192718505859375, -0.0213165283203125, 0.0176239013671875, 0.038177490234375, 0.0035610198974609375, -0.0306549072265625, -0.03497314453125, -0.0285186767578125, -0.040283203125, 0.047607421875, 0.0240020751953125, 0.005947113037109375, -0.01053619384765625, 0.040374755859375, -0.0027313232421875, 0.0148162841796875, 0.017791748046875, -0.0178070068359375, 0.00467681884765625, -0.007183074951171875, -0.01166534423828125, -0.01447296142578125, 0.050262451171875, 0.004238128662109375, 0.00746917724609375, 0.045989990234375, 0.01259613037109375, 0.005702972412109375, 0.0147705078125, -0.02703857421875, -0.06591796875, 0.05975341796875, -0.0309295654296875, 0.0223846435546875, -0.049468994140625, -0.035919189453125, -0.0081939697265625, 0.1182861328125, -0.0146331787109375, -0.01068878173828125, -0.0002434253692626953, 0.01506805419921875, 0.0000782012939453125, -0.040557861328125, -0.0165863037109375, -0.0141143798828125, -0.048095703125, 0.000659942626953125, -0.0269012451171875, -0.009307861328125, 0.01541900634765625, -0.0012159347534179688, -0.0196380615234375, -0.05657958984375, 0.032257080078125, -0.05120849609375, -0.0011749267578125, 0.06866455078125, -0.013671875, 0.0015630722045898438, -0.03216552734375, -0.0176239013671875, -0.07757568359375, -0.005764007568359375, 0.0050048828125, 0.04248046875, 0.01617431640625, -0.0426025390625, -0.03094482421875, 0.0308380126953125, 0.04583740234375, 0.061431884765625, 0.006328582763671875, -0.0068817138671875, 0.00412750244140625, -0.05218505859375, 0.01201629638671875, -0.0430908203125, -0.01031494140625, 0.0221710205078125, 0.0103302001953125, 0.04541015625, -0.008453369140625, -0.017791748046875, 0.032135009765625, -0.029571533203125, -0.06964111328125, -0.03179931640625, 0.00630950927734375, -0.0106048583984375, -0.006328582763671875, -0.00024437904357910156, -0.02685546875, -0.042236328125, -0.0374755859375, -0.05462646484375, -0.029510498046875, 0.037384033203125, 0.022247314453125, 0.03900146484375, 0.00884246826171875, 0.00388336181640625, -0.0207061767578125, 0.01438140869140625, -0.005657196044921875, 0.0214385986328125, -0.0098419189453125, 0.005626678466796875, 0.0146942138671875, -0.017242431640625, 0.0240020751953125, 0.006778717041015625, 0.0196075439453125, 0.007450103759765625, -0.0140228271484375, 0.00395965576171875, -0.0204315185546875, -0.002529144287109375, 0.006336212158203125, -0.040283203125, -0.037384033203125, -0.035858154296875, 0.0760498046875, -0.031524658203125, 0.085205078125, -0.048370361328125, -0.0139617919921875, -0.0007290840148925781, -0.00861358642578125, 0.049072265625, 0.021331787109375, -0.006458282470703125, 0.01922607421875, -0.01019287109375, 0.0009407997131347656, -0.006488800048828125, -0.0032787322998046875, 0.006702423095703125, 0.036407470703125, -0.0150146484375, 0.01354217529296875, -0.005718231201171875, 0.00565338134765625, 0.0162200927734375, 0.01837158203125, -0.004878997802734375, -0.061279296875, -0.0078277587890625, 0.0194854736328125, -0.031585693359375, 0.0007901191711425781, 0.028106689453125, 0.0247650146484375, -0.000017881393432617188, 0.0169830322265625, -0.0341796875, 0.0288543701171875, -0.0328369140625, -0.0009870529174804688, 0.010955810546875, -0.005435943603515625, -0.0264739990234375, 0.0924072265625, 0.048736572265625, 0.0010509490966796875, -0.0225830078125, 0.0345458984375, 0.0298919677734375, 0.0430908203125, 0.0205230712890625, -0.0196990966796875, 0.0140533447265625, 0.0017232894897460938, -0.00104522705078125, -0.00879669189453125, -0.0028934478759765625, 0.01399993896484375, 0.028961181640625, 0.0027675628662109375, 0.00591278076171875, 0.0018711090087890625, -0.0191802978515625, -0.032257080078125, 0.028106689453125, 0.0030078887939453125, -0.07568359375, -0.00904083251953125, 0.006343841552734375, 0.0029850006103515625, -0.0192413330078125, -0.0142822265625, 0.01611328125, -0.03875732421875, 0.016937255859375, -0.042572021484375, -0.01395416259765625, 0.004207611083984375, -0.00424957275390625, -0.036407470703125, 0.0005078315734863281, 0.033477783203125, -0.06842041015625, -0.04718017578125, -0.0185089111328125, -0.026519775390625, 0.054412841796875, -0.025604248046875, -0.000036776065826416016, -0.0109100341796875, -0.007244110107421875, -0.057861328125, 0.0125885009765625, 0.055389404296875, 0.02825927734375, -0.04058837890625, 0.01080322265625, -0.007572174072265625, -0.0070037841796875, -0.0089874267578125, -0.038848876953125, -0.035491943359375, -0.030181884765625, -0.036468505859375, -0.0031375885009765625, -0.029083251953125, -0.01027679443359375, -0.060089111328125, 0.013641357421875, 0.021881103515625, -0.02264404296875, 0.0021228790283203125, 0.071533203125, -0.01375579833984375, 0.03533935546875, 0.006107330322265625, 0.0078582763671875, -0.0100860595703125, -0.00225067138671875, 0.01380157470703125, -0.0233154296875, -0.020263671875, -0.044891357421875, -0.0247344970703125, 0.039215087890625, 0.07684326171875, -0.0018949508666992188, 0.0265350341796875, -0.01290130615234375, -0.00342559814453125, -0.018524169921875, 0.00943756103515625, -0.0299835205078125, 0.0145111083984375, 0.00885009765625, -0.0506591796875, -0.00823974609375, 0.0133514404296875, 0.0204010009765625, 0.02191162109375, -0.042022705078125, 0.01641845703125, 0.02716064453125, -0.053375244140625, 0.05560302734375, 0.05047607421875, 0.0021266937255859375, 0.031890869140625, -0.0255889892578125, 0.0057373046875, 0.0132598876953125, 0.036865234375, 0.005420684814453125, 0.0006780624389648438, 0.06988525390625, 0.005218505859375, -0.01493072509765625, 0.048736572265625, -0.0288848876953125, 0.01415252685546875, 0.0701904296875, 0.07733154296875, -0.10858154296875, 0.00691986083984375, 0.02020263671875, 0.0187835693359375, 0.049896240234375, -0.00400543212890625, -0.0086669921875, -0.0200042724609375, 0.050689697265625, -0.047882080078125, -0.0178070068359375, 0.01114654541015625, -0.01495361328125, -0.002086639404296875, 0.004985809326171875, 0.037200927734375, 0.0175323486328125, 0.0245513916015625, -0.0323486328125, -0.0185546875, -0.0008950233459472656, -0.01934814453125, 0.0230865478515625, -0.0285186767578125, 0.0310211181640625, -0.0153045654296875, 0.03485107421875, -0.056976318359375, 0.035125732421875, 0.048797607421875, 0.015625, 0.009979248046875, 0.0640869140625, -0.01361083984375, 0.0273284912109375, 0.0160675048828125, 0.0051116943359375, -0.029327392578125, -0.0267486572265625, 0.00765228271484375, -0.00006276369094848633, -0.08966064453125, 0.0159149169921875, -0.059844970703125, 0.00919342041015625, 0.004138946533203125, 0.036651611328125, 0.049285888671875, -0.04888916015625, -0.02142333984375, 0.033477783203125, 0.00982666015625, -0.0015554428100585938, -0.011444091796875, 0.03643798828125, -0.0255279541015625, -0.0218048095703125, 0.0105743408203125, -0.036285400390625, -0.029327392578125, -0.0238037109375, -0.04705810546875, 0.0889892578125, -0.0802001953125, 0.004123687744140625, 0.0129547119140625, 0.0482177734375, 0.00792694091796875, 0.026153564453125, -0.0289459228515625, 0.0291290283203125, 0.03216552734375, 0.02655029296875, -0.015380859375, -0.01165771484375, 0.004550933837890625, 0.037445068359375, 0.025848388671875, 0.0023937225341796875, -0.02685546875, 0.02288818359375, 0.0819091796875, -0.0102996826171875, -0.005214691162109375, 0.055267333984375, -0.00972747802734375, -0.0245208740234375, 0.045806884765625, -0.0116119384765625, 0.038665771484375, -0.00475311279296875, -0.00366973876953125, -0.0016078948974609375, -0.01488494873046875, -0.0303802490234375, -0.0012788772583007812, 0.0265045166015625, -0.0017690658569335938, -0.001964569091796875, 0.001842498779296875, -0.0253753662109375, -0.01544189453125, 0.000024557113647460938, -0.032501220703125, 0.0278778076171875, 0.0029354095458984375, -0.02288818359375, 0.0066070556640625, -0.0015506744384765625, 0.02178955078125, -0.01267242431640625, 0.0015106201171875, 0.0628662109375, -0.016143798828125, -0.0007710456848144531, 0.058074951171875, -0.023040771484375, 0.03790283203125, 0.006008148193359375, 0.027099609375, -0.0357666015625, 0.0008511543273925781, 0.019561767578125, 0.034515380859375, -0.0275115966796875, -0.03863525390625, 0.0197601318359375, 0.00286102294921875, -0.013092041015625, 0.0117645263671875, -0.0035552978515625, -0.0021457672119140625, 0.0278778076171875, -0.024566650390625, 0.011444091796875, 0.0192108154296875, 0.021728515625, 0.00269317626953125, 0.008331298828125, -0.055511474609375, 0.00070953369140625, -0.032806396484375, 0.015045166015625, 0.0081024169921875, 0.061981201171875, 0.0167999267578125, 0.049560546875, -0.03448486328125, -0.03021240234375, 0.01506805419921875, -0.007457733154296875, 0.0024890899658203125, -0.00494384765625, -0.0179290771484375, -0.0307159423828125, 0.01715087890625, 0.0247650146484375, -0.0117340087890625, 0.0163726806640625, 0.024932861328125, 0.037933349609375, -0.0069427490234375, -0.0125732421875, 0.03216552734375, -0.0127105712890625, -0.0208892822265625, -0.0127105712890625, -0.0007138252258300781, -0.004650115966796875, -0.002414703369140625, -0.01568603515625, 0.032318115234375, 0.006580352783203125, -0.006130218505859375, 0.004932403564453125, -0.002536773681640625, -0.0284423828125, 0.03778076171875, 0.01300048828125, 0.0648193359375, 0.023590087890625, -0.079833984375, -0.02459716796875, -0.027435302734375, -0.040771484375, 0.040802001953125, 0.04644775390625, -0.039276123046875, 0.034881591796875, 0.028289794921875, -0.0166778564453125, -0.0072479248046875, 0.01346588134765625, 0.0167694091796875, -0.0097503662109375, 0.01654052734375, 0.00508880615234375, -0.0167694091796875, -0.0009984970092773438, -0.0015354156494140625, -0.0021419525146484375, 0.04083251953125, 0.03802490234375, 0.00057220458984375, 0.0237579345703125, -0.0325927734375, -0.002086639404296875, -0.0271759033203125, -0.041015625, 0.046173095703125, -0.01276397705078125, -0.0205535888671875, 0.008270263671875, -0.005947113037109375, 0.01099395751953125, 0.05328369140625, -0.05145263671875, -0.013885498046875, 0.01093292236328125, 0.0191802978515625, -0.035186767578125, 0.037506103515625, -0.0193328857421875, -0.006107330322265625, -0.018951416015625, -0.0236358642578125, 0.0243988037109375, 0.00641632080078125, 0.013580322265625, 0.017669677734375, 0.0035858154296875, -0.0279541015625, 0.035003662109375, -0.0205078125, 0.057464599609375, 0.039215087890625, -0.0355224609375, 0.01230621337890625, 0.04443359375, -0.002613067626953125, 0.025054931640625, 0.024688720703125, 0.0180206298828125, 0.03448486328125, -0.0594482421875, 0.017578125, 0.058990478515625, 0.0113677978515625, -0.038818359375, 0.0156402587890625, 0.061553955078125, -0.0517578125, 0.0201568603515625, 0.002155303955078125, -0.0499267578125, -0.04302978515625, 0.02471923828125, 0.003753662109375, 0.030517578125, -0.018585205078125, -0.04852294921875, 0.006378173828125, 0.062103271484375, 0.024200439453125, -0.065673828125, 0.0171966552734375, -0.016082763671875, 0.05047607421875, 0.0184173583984375, -0.031768798828125, 0.01318359375, 0.016632080078125, -0.01026153564453125, -0.004482269287109375, -0.0462646484375, -0.015777587890625, -0.0196990966796875, 0.003734588623046875, 0.01739501953125, -0.0305023193359375, -0.0188140869140625, 0.0215301513671875, 0.0185089111328125, 0.059539794921875, 0.03839111328125, -0.02783203125, -0.0219573974609375, 0.01239013671875, 0.0017271041870117188, -0.04315185546875, 0.01416778564453125, -0.05810546875, -0.007755279541015625, -0.01788330078125, 0.0275115966796875, 0.050140380859375, -0.019195556640625, -0.044219970703125, 0.0374755859375, -0.010711669921875, -0.0261993408203125, -0.0638427734375, 0.05218505859375, -0.0283050537109375, 0.03216552734375, -0.01226043701171875, -0.005542755126953125, 0.028076171875, 0.048980712890625, -0.004138946533203125, 0.021240234375, 0.0080108642578125, -0.005069732666015625, -0.0206451416015625, 0.026519775390625, 0.02783203125, -0.0150299072265625, 0.0309906005859375, -0.039703369140625, 0.04656982421875, 0.0438232421875, -0.047454833984375, -0.043212890625, -0.016387939453125, 0.030242919921875, -0.00301361083984375, -0.019073486328125, -0.00571441650390625, -0.029998779296875, 0.034271240234375, -0.00890350341796875, 0.002788543701171875, 0.0155181884765625, -0.00531768798828125, -0.03607177734375, -0.034393310546875, 0.01204681396484375, 0.00817108154296875, -0.032958984375, 0.0263519287109375, 0.0207977294921875, -0.0161285400390625, -0.058013916015625, 0.054046630859375, -0.04693603515625, -0.010833740234375, 0.035919189453125, -0.003528594970703125, -0.030487060546875, 0.005199432373046875, 0.051025390625, -0.046234130859375, -0.032867431640625, 0.01479339599609375, 0.0017557144165039062, -0.01065826416015625, -0.0261688232421875, -0.01025390625, 0.0203704833984375, -0.04620361328125, 0.00974273681640625, -0.023590087890625, 0.047882080078125, -0.04888916015625, -0.00782012939453125, -0.03045654296875, 0.01055908203125, -0.007061004638671875, 0.00550079345703125, 0.0207366943359375, 0.03546142578125, 0.018157958984375, 0.08648681640625, 0.020782470703125, 0.03985595703125, 0.002964019775390625, 0.055877685546875, 0.0311431884765625, -0.036346435546875, 0.044158935546875, -0.0328369140625, -0.0093841552734375, -0.0122833251953125, -0.060028076171875, -0.06597900390625, 0.0174713134765625, 0.031463623046875, -0.0263214111328125, 0.0161590576171875 ]
b32a732c924ab02b22398740b251470b62ce1e70
Wordpress Stackexchange Q: Get the content of a specific page (by ID) I have the following front-page template made: In place of those large Lorem Ipsum blocks, I need to show an "excerpt" from a specific page to fill that box (a certain number of characters). How do I get a pages content in String format so that I can echo it out and trim down to a certain number of characters? A: $post = get_post( 42 ); $output = apply_filters( 'the_content', $post->post_content ); echo $output; from https://developer.wordpress.org/reference/functions/get_post/
Q: Get the content of a specific page (by ID) I have the following front-page template made: In place of those large Lorem Ipsum blocks, I need to show an "excerpt" from a specific page to fill that box (a certain number of characters). How do I get a pages content in String format so that I can echo it out and trim down to a certain number of characters? A: $post = get_post( 42 ); $output = apply_filters( 'the_content', $post->post_content ); echo $output; from https://developer.wordpress.org/reference/functions/get_post/ A: you can use this code it is work fine change page_id=19 with your page number: <?php $the_query = new WP_Query( 'page_id=19' ); ?> <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?> <?php the_excerpt(); ?> <?php endwhile;?> A: <?php // would echo post 7's content up until the <!--more--> tag $post_7 = get_post(7); $excerpt = $post_7->post_excerpt; echo $excerpt; // would get post 12's entire content after which you // can manipulate it with your own trimming preferences $post_12 = get_post(12); $trim_me = $post_12->post_content; my_trim_function( $trim_me ); ?> A: Here you go ! <?php $my_id = 5369; $post_id_5369 = get_post($my_id); $content = $post_id_5369->post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content; ?> A: If you're in the loop do this: <?php $my_excerpt = get_the_excerpt(); if ( $my_excerpt != '' ) { // Some string manipulation performed } echo $my_excerpt; // Outputs the processed value to the page Or if you have an ID, get the post then sue the post_excerpt member var e.g. $post = get_post( $post_id ); echo $post->post_excerpt; A: Try this code and just change your page_id: <?php $my_query = new WP_Query('page_id=20'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID;?> <h3><?php the_title(); ?></h3> <div class="text"> <?php echo wp_trim_words( get_the_content(), 15, '...' ); ?> <a href="<?php echo get_page_link(); ?>" class="read-more">Read More</a> </div> <?php endwhile; ?> A: For one liner addicts like me. Change 69 by your page ID. <?= apply_filters('the_content', get_post(69)->post_content); ?> A: Can do this with a shortcode. add the following to function.php function lorem_func($attr) { $txt = "<p>Lorem ipsum dolor .........</p>"; shortcode_atts( array( 'repeat' => 1, ), $attr ); return str_repeat($txt, $attr['repeat'] ); } add_shortcode('lorem', 'lorem_func'); To render within content use; [lorem repeat="2"] Just need to mod the "Lorem ipsum dolor ........." for the length required. And the lorum repeat=2 change to the required amount of paragraphs. In the above example =2 means 2 paragraphs, so its multifuctional. A: Already answered but i think a much more handier function is get_post_field( 'fieldname', $post_id ); So in your case: echo get_post_field( 'post_excerpt', $post_id );
wordpress
{ "language": "en", "length": 425, "provenance": "stackexchange_00019.jsonl.gz:433175", "question_score": "20", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/101823" }
[ -0.00797271728515625, -0.04461669921875, -0.004764556884765625, 0.0174102783203125, -0.031707763671875, -0.0211944580078125, 0.033416748046875, 0.008880615234375, 0.011688232421875, 0.0019426345825195312, -0.031463623046875, 0.005229949951171875, -0.031982421875, -0.0226898193359375, 0.006862640380859375, -0.0343017578125, 0.02490234375, 0.002643585205078125, 0.007122039794921875, -0.01236724853515625, -0.0004189014434814453, 0.012115478515625, -0.0247344970703125, 0.04290771484375, 0.021148681640625, -0.030120849609375, 0.07122802734375, -0.0052490234375, 0.005218505859375, -0.02423095703125, 0.01336669921875, -0.01080322265625, 0.037506103515625, 0.00794219970703125, -0.027313232421875, 0.031585693359375, -0.022552490234375, 0.01070404052734375, -0.00843048095703125, 0.0168609619140625, 0.013214111328125, 0.007419586181640625, -0.0040435791015625, 0.01837158203125, -0.0237274169921875, -0.029296875, -0.0044708251953125, -0.036224365234375, 0.025634765625, 0.058868408203125, 0.019622802734375, 0.024200439453125, 0.005970001220703125, 0.026641845703125, -0.00417327880859375, 0.004383087158203125, 0.01593017578125, 0.01364898681640625, 0.0299072265625, -0.0396728515625, -0.03363037109375, 0.0166168212890625, 0.02496337890625, 0.0012559890747070312, -0.002605438232421875, 0.00908660888671875, 0.020233154296875, 0.03057861328125, -0.0313720703125, -0.0290374755859375, 0.0009050369262695312, -0.0308380126953125, -0.007007598876953125, -0.0389404296875, -0.037353515625, 0.038116455078125, -0.0328369140625, -0.03643798828125, 0.0175018310546875, -0.00475311279296875, -0.043426513671875, 0.03472900390625, -0.06060791015625, -0.03643798828125, 0.0130767822265625, -0.0194549560546875, -0.03302001953125, 0.0023174285888671875, -0.03839111328125, 0.0045623779296875, -0.0304718017578125, 0.030059814453125, 0.0116729736328125, -0.043975830078125, -0.043853759765625, -0.00978851318359375, -0.0127716064453125, 0.0310821533203125, -0.014801025390625, 0.01263427734375, 0.008209228515625, -0.039825439453125, 0.04180908203125, -0.033233642578125, 0.011322021484375, 0.0187225341796875, 0.006591796875, 0.0162353515625, 0.0472412109375, 0.0164031982421875, -0.0019330978393554688, 0.032623291015625, -0.017974853515625, -0.0309906005859375, -0.033172607421875, 0.044647216796875, -0.00952911376953125, -0.035430908203125, 0.020172119140625, -0.032440185546875, 0.0081329345703125, 0.02423095703125, 0.020355224609375, -0.0292816162109375, 0.0004973411560058594, 0.0032100677490234375, -0.0252685546875, -0.04498291015625, 0.047088623046875, 0.0244140625, -0.03466796875, -0.005695343017578125, 0.019073486328125, 0.00006967782974243164, 0.001598358154296875, -0.0235748291015625, -0.044586181640625, -0.0318603515625, -0.0168609619140625, 0.0100250244140625, -0.03717041015625, -0.0172119140625, 0.060211181640625, -0.040863037109375, -0.01554107666015625, 0.0194854736328125, 0.01849365234375, 0.01287841796875, -0.0113372802734375, -0.054840087890625, -0.01445770263671875, 0.005428314208984375, 0.040771484375, -0.0238037109375, -0.02508544921875, -0.06988525390625, 0.005290985107421875, -0.0484619140625, 0.00308990478515625, -0.044189453125, 0.061370849609375, 0.0007009506225585938, -0.018951416015625, 0.018585205078125, -0.021392822265625, -0.0132293701171875, -0.040863037109375, -0.01451873779296875, 0.018096923828125, 0.0538330078125, 0.01007843017578125, -0.031585693359375, -0.01470947265625, -0.002704620361328125, -0.0302276611328125, 0.006351470947265625, -0.01433563232421875, -0.034149169921875, 0.0135040283203125, 0.057830810546875, 0.007293701171875, -0.006595611572265625, -0.004817962646484375, 0.01459503173828125, -0.0164947509765625, 0.050445556640625, 0.0194244384765625, 0.043212890625, -0.01229095458984375, 0.01165771484375, 0.005939483642578125, 0.02850341796875, -0.038177490234375, -0.0247955322265625, -0.002407073974609375, -0.019256591796875, 0.02191162109375, -0.01885986328125, 0.0085296630859375, 0.0311279296875, 0.07513427734375, -0.0216827392578125, 0.0372314453125, 0.01364898681640625, 0.004673004150390625, 0.0054931640625, -0.0012845993041992188, -0.0008749961853027344, -0.0087127685546875, 0.0173187255859375, 0.01763916015625, 0.0006561279296875, -0.01727294921875, -0.052947998046875, -0.049285888671875, -0.016876220703125, -0.012542724609375, -0.012176513671875, -0.0177154541015625, 0.016082763671875, -0.01200103759765625, -0.0020847320556640625, -0.026092529296875, 0.021942138671875, 0.05926513671875, -0.0260772705078125, -0.002460479736328125, -0.039215087890625, 0.055267333984375, -0.01320648193359375, -0.007843017578125, 0.030029296875, 0.04998779296875, 0.055511474609375, -0.023895263671875, 0.005466461181640625, -0.004150390625, -0.0237274169921875, -0.01474761962890625, 0.037811279296875, 0.045562744140625, 0.05242919921875, -0.0205078125, -0.05096435546875, 0.07781982421875, -0.0537109375, -0.0134429931640625, -0.024505615234375, 0.0244598388671875, 0.0404052734375, -0.045196533203125, -0.0016965866088867188, 0.033111572265625, -0.0263824462890625, -0.01291656494140625, 0.05120849609375, 0.0039043426513671875, 0.0416259765625, -0.050537109375, 0.036712646484375, -0.016571044921875, -0.0009260177612304688, 0.013916015625, -0.0345458984375, 0.007320404052734375, 0.039215087890625, 0.049407958984375, 0.055694580078125, -0.03656005859375, -0.002044677734375, 0.006999969482421875, 0.097900390625, 0.00009232759475708008, 0.01134490966796875, -0.019195556640625, -0.044525146484375, 0.000019669532775878906, 0.0021457672119140625, 0.0017528533935546875, -0.02587890625, 0.0219573974609375, 0.035064697265625, 0.0118408203125, -0.002544403076171875, 0.016693115234375, -0.04766845703125, -0.007781982421875, 0.04400634765625, 0.006008148193359375, 0.0165863037109375, 0.00804901123046875, 0.04864501953125, -0.02178955078125, 0.05072021484375, 0.006801605224609375, 0.0103912353515625, 0.0859375, -0.048980712890625, 0.047149658203125, -0.01555633544921875, 0.08880615234375, 0.060943603515625, -0.03851318359375, 0.03131103515625, 0.00782012939453125, -0.0009918212890625, 0.00917816162109375, 0.01068115234375, 0.01293182373046875, 0.00852203369140625, -0.05364990234375, 0.031097412109375, 0.0225677490234375, 0.07647705078125, -0.026580810546875, -0.033416748046875, -0.0059814453125, 0.032989501953125, -0.08551025390625, -0.06689453125, 0.012176513671875, -0.052825927734375, -0.040374755859375, -0.013336181640625, -0.038848876953125, 0.01314544677734375, 0.0129547119140625, -0.00969696044921875, 0.00884246826171875, -0.019073486328125, -0.08056640625, -0.041290283203125, -0.096923828125, 0.0208892822265625, -0.011199951171875, 0.040191650390625, 0.0074310302734375, 0.0206756591796875, -0.0088653564453125, -0.07977294921875, -0.00677490234375, 0.046173095703125, -0.0292816162109375, -0.004695892333984375, 0.01332855224609375, 0.0011434555053710938, -0.039764404296875, 0.033721923828125, 0.0143890380859375, -0.008819580078125, -0.01129150390625, -0.034271240234375, -0.04345703125, 0.0284271240234375, 0.00829315185546875, 0.0181884765625, 0.043548583984375, 0.03790283203125, 0.0239410400390625, -0.032440185546875, -0.031341552734375, -0.013214111328125, -0.0667724609375, 0.01346588134765625, 0.057586669921875, -0.01055145263671875, -0.0148773193359375, 0.01065826416015625, -0.00014531612396240234, -0.0222320556640625, 0.0462646484375, -0.0272216796875, 0.01477813720703125, -0.0164794921875, -0.0071563720703125, -0.013916015625, 0.0228729248046875, 0.005580902099609375, 0.0634765625, 0.032623291015625, 0.037384033203125, 0.00015842914581298828, 0.0161285400390625, -0.0288238525390625, -0.07696533203125, 0.059661865234375, 0.003871917724609375, -0.02215576171875, -0.0008893013000488281, -0.0372314453125, 0.03271484375, 0.09619140625, -0.050537109375, -0.0257720947265625, -0.01337432861328125, 0.0089111328125, 0.01059722900390625, -0.0309295654296875, -0.01230621337890625, -0.02191162109375, -0.048187255859375, -0.0236358642578125, -0.019989013671875, -0.038055419921875, -0.0006947517395019531, -0.0030670166015625, -0.015838623046875, -0.022125244140625, 0.0290374755859375, -0.0133209228515625, 0.0014972686767578125, 0.0031337738037109375, -0.0091094970703125, -0.01233673095703125, -0.0303955078125, 0.0037250518798828125, -0.0450439453125, -0.0209197998046875, 0.058685302734375, 0.00885009765625, -0.01373291015625, -0.029693603515625, -0.01016998291015625, 0.0302886962890625, 0.01332855224609375, 0.0233306884765625, 0.006961822509765625, 0.0079193115234375, 0.01314544677734375, -0.019866943359375, 0.018829345703125, -0.040863037109375, -0.0302734375, -0.03253173828125, 0.0227813720703125, 0.0194091796875, -0.036895751953125, -0.0169525146484375, -0.050140380859375, 0.01346588134765625, -0.0650634765625, -0.0004858970642089844, 0.01416778564453125, -0.01181793212890625, -0.0005517005920410156, -0.012176513671875, 0.019317626953125, -0.058929443359375, 0.057159423828125, 0.0787353515625, -0.05902099609375, -0.005680084228515625, 0.00811767578125, 0.020233154296875, -0.06866455078125, -0.054229736328125, 0.025238037109375, 0.049346923828125, -0.001155853271484375, 0.06451416015625, 0.040496826171875, -0.034759521484375, 0.08770751953125, 0.02459716796875, -0.002330780029296875, -0.0279541015625, 0.0278778076171875, 0.006595611572265625, -0.0007648468017578125, -0.0013055801391601562, -0.00875091552734375, 0.062225341796875, 0.036041259765625, -0.038482666015625, 0.005619049072265625, 0.016510009765625, 0.024993896484375, -0.061798095703125, 0.055084228515625, 0.005107879638671875, -0.010986328125, 0.005428314208984375, 0.037017822265625, 0.01276397705078125, 0.034027099609375, -0.0026988983154296875, 0.0089263916015625, 0.0206146240234375, 0.01107025146484375, 0.048004150390625, 0.0023365020751953125, -0.0041351318359375, 0.0248870849609375, 0.00824737548828125, -0.02166748046875, 0.036865234375, -0.00031876564025878906, 0.00983428955078125, -0.0279083251953125, -0.04705810546875, -0.025054931640625, -0.0079498291015625, -0.002445220947265625, 0.05181884765625, 0.0083160400390625, 0.0133209228515625, 0.041595458984375, -0.01355743408203125, -0.024749755859375, 0.041107177734375, 0.00254058837890625, -0.0281219482421875, -0.04217529296875, -0.0080718994140625, -0.0157928466796875, 0.03912353515625, 0.036285400390625, -0.03765869140625, 0.04833984375, -0.0284881591796875, 0.026580810546875, 0.01195526123046875, 0.0369873046875, 0.0189361572265625, -0.01409912109375, -0.011138916015625, 0.005016326904296875, -0.01593017578125, -0.021575927734375, -0.02227783203125, 0.036163330078125, 0.0401611328125, -0.02398681640625, -0.00933074951171875, 0.0171661376953125, -0.01187896728515625, -0.00856781005859375, 0.046905517578125, 0.0113525390625, -0.029388427734375, -0.040496826171875, -0.011627197265625, 0.01904296875, 0.01178741455078125, -0.0120849609375, 0.03753662109375, -0.01397705078125, 0.0276641845703125, 0.0245208740234375, -0.0299530029296875, 0.003932952880859375, 0.0050048828125, 0.0157623291015625, -0.0200958251953125, 0.0024166107177734375, -0.00891876220703125, -0.0030384063720703125, -0.00920867919921875, 0.0096435546875, 0.03106689453125, -0.0165863037109375, 0.0296783447265625, -0.037933349609375, -0.00457763671875, -0.06488037109375, 0.005512237548828125, 0.038909912109375, 0.034027099609375, -0.047454833984375, 0.0227508544921875, -0.056976318359375, -0.0080718994140625, 0.01422882080078125, -0.030181884765625, -0.0419921875, -0.0244903564453125, -0.004913330078125, 0.015594482421875, -0.016510009765625, -0.0088348388671875, -0.0086822509765625, 0.024505615234375, -0.007320404052734375, 0.04449462890625, -0.0037899017333984375, 0.060028076171875, -0.00565338134765625, 0.08306884765625, 0.016204833984375, 0.055908203125, 0.01702880859375, -0.063720703125, -0.0012683868408203125, -0.0226593017578125, 0.006229400634765625, 0.00704193115234375, 0.0202789306640625, -0.0233917236328125, -0.0164794921875, 0.01453399658203125, -0.0162811279296875, -0.0362548828125, 0.0004992485046386719, -0.0234222412109375, 0.042816162109375, -0.0182952880859375, -0.04498291015625, -0.006656646728515625, -0.0178070068359375, 0.00833892822265625, 0.01134490966796875, 0.033721923828125, -0.017669677734375, -0.0198211669921875, -0.00394439697265625, 0.0001436471939086914, 0.00872039794921875, -0.01183319091796875, 0.0556640625, 0.00862884521484375, 0.050201416015625, 0.013824462890625, 0.030120849609375, 0.055206298828125, 0.0194091796875, -0.019805908203125, -0.004856109619140625, 0.043792724609375, 0.003143310546875, -0.0241241455078125, 0.00942230224609375, -0.03363037109375, 0.031005859375, 0.04205322265625, 0.06866455078125, -0.07037353515625, 0.0283966064453125, 0.016204833984375, -0.0120849609375, 0.031280517578125, 0.01548004150390625, -0.0192413330078125, -0.0233154296875, 0.0194091796875, -0.01183319091796875, -0.0004062652587890625, 0.0199432373046875, 0.005809783935546875, -0.0210418701171875, -0.029632568359375, 0.06964111328125, 0.04107666015625, -0.0297698974609375, 0.041656494140625, 0.00960540771484375, 0.021148681640625, -0.045135498046875, 0.0028533935546875, -0.030426025390625, 0.015289306640625, -0.018341064453125, 0.02874755859375, -0.020538330078125, 0.04827880859375, 0.01442718505859375, 0.0175323486328125, -0.031951904296875, 0.05694580078125, -0.0303955078125, 0.021240234375, 0.027740478515625, -0.04779052734375, -0.00800323486328125, -0.016845703125, 0.005100250244140625, 0.0361328125, -0.032501220703125, 0.0211639404296875, -0.0245361328125, -0.01195526123046875, -0.0136566162109375, 0.0011682510375976562, 0.094970703125, -0.023956298828125, -0.019195556640625, 0.029296875, 0.0181427001953125, -0.032379150390625, -0.0272369384765625, 0.05999755859375, -0.045257568359375, 0.035491943359375, 0.0014972686767578125, 0.06201171875, -0.02362060546875, -0.0190887451171875, -0.06982421875, 0.073974609375, 0.037322998046875, 0.009735107421875, -0.00785064697265625, 0.031402587890625, -0.05255126953125, -0.003726959228515625, -0.061614990234375, 0.051788330078125, 0.0301971435546875, 0.039520263671875, -0.05859375, -0.0202178955078125, 0.0028533935546875, 0.0322265625, 0.027496337890625, 0.006542205810546875, -0.0166778564453125, -0.0214691162109375, 0.011444091796875, 0.023345947265625, 0.001750946044921875, 0.036346435546875, 0.01995849609375, 0.03924560546875, 0.086669921875, -0.07171630859375, 0.0289764404296875, -0.0208740234375, 0.04522705078125, 0.028228759765625, 0.002674102783203125, -0.0261688232421875, 0.0657958984375, 0.0083160400390625, -0.0823974609375, 0.02911376953125, 0.060943603515625, -0.05169677734375, -0.01557159423828125, 0.05499267578125, 0.08251953125, -0.0859375, -0.035400390625, -0.0292205810546875, 0.05517578125, 0.034088134765625, 0.059234619140625, 0.017791748046875, 0.023712158203125, 0.08416748046875, -0.01480865478515625, 0.0290985107421875, 0.00879669189453125, -0.0155792236328125, 0.01861572265625, 0.0113983154296875, 0.00913238525390625, -0.04730224609375, -0.0284576416015625, 0.04156494140625, 0.02899169921875, -0.028839111328125, -0.0163726806640625, 0.00762939453125, -0.00917816162109375, 0.0211639404296875, -0.005706787109375, 0.024383544921875, 0.040069580078125, 0.0352783203125, -0.00800323486328125, -0.0101470947265625, 0.027374267578125, 0.0224151611328125, 0.005115509033203125, -0.013702392578125, -0.037353515625, -0.01033782958984375, -0.041595458984375, 0.0278167724609375, 0.0195465087890625, -0.006092071533203125, -0.0098419189453125, 0.0273895263671875, 0.017822265625, 0.024444580078125, 0.0215301513671875, 0.01119232177734375, -0.0030155181884765625, -0.0279083251953125, 0.047454833984375, 0.01416015625, -0.0179595947265625, -0.0229644775390625, -0.01244354248046875, -0.041259765625, -0.007328033447265625, 0.0026416778564453125, -0.030853271484375, -0.03131103515625, -0.01247406005859375, -0.0131378173828125, 0.021820068359375, -0.041229248046875, -0.0005288124084472656, -0.008697509765625, -0.024627685546875, -0.00879669189453125, 0.0027980804443359375, 0.028717041015625, 0.01471710205078125, 0.034423828125, 0.01049041748046875, 0.0205078125, 0.028900146484375, -0.01462554931640625, -0.003887176513671875, 0.029693603515625, -0.1026611328125, -0.005584716796875, -0.029937744140625, -0.07464599609375, 0.0245819091796875, 0.053619384765625, -0.0071258544921875, -0.02471923828125, -0.0386962890625, 0.033660888671875, -0.0033626556396484375, -0.0504150390625, 0.014404296875, 0.0311431884765625, -0.003223419189453125, 0.01275634765625, -0.01873779296875, -0.008026123046875, 0.002178192138671875, 0.0169219970703125, 0.03411865234375, 0.028961181640625, 0.0184173583984375, 0.034759521484375, -0.01004791259765625, 0.0206298828125, -0.0396728515625, -0.0184783935546875, 0.041168212890625, 0.0198974609375, 0.026458740234375, -0.0257720947265625, -0.0634765625, 0.033447265625, 0.0357666015625, 0.0030078887939453125, 0.03826904296875, -0.027252197265625, 0.006195068359375, -0.0350341796875, -0.00785064697265625, 0.002445220947265625, 0.01708984375, 0.018402099609375, -0.0123748779296875, 0.050567626953125, 0.09002685546875, 0.03460693359375, 0.0105438232421875, 0.025482177734375, -0.0282440185546875, 0.03350830078125, -0.01383209228515625, 0.062225341796875, 0.035675048828125, -0.0155181884765625, -0.031951904296875, 0.00004881620407104492, -0.01039886474609375, 0.017333984375, 0.0082244873046875, 0.041168212890625, 0.01983642578125, 0.011138916015625, 0.0289764404296875, -0.03704833984375, 0.03106689453125, -0.0257110595703125, -0.01287841796875, -0.01042938232421875, 0.041473388671875, 0.005947113037109375, -0.020965576171875, -0.00682830810546875, -0.018035888671875, -0.0125274658203125, 0.005504608154296875, 0.0012178421020507812, -0.01922607421875, -0.0004696846008300781, -0.0304718017578125, 0.0010747909545898438, 0.01355743408203125, -0.04180908203125, 0.01123809814453125, 0.0234527587890625, 0.015655517578125, -0.035797119140625, 0.019256591796875, -0.0009288787841796875, 0.0254058837890625, -0.057586669921875, -0.0227813720703125, -0.02667236328125, 0.00830841064453125, -0.029296875, 0.01629638671875, 0.0655517578125, -0.028564453125, -0.04193115234375, 0.0190887451171875, 0.0041351318359375, 0.0673828125, -0.02960205078125, -0.0169525146484375, 0.0282745361328125, -0.01399993896484375, 0.005779266357421875, -0.041839599609375, -0.01555633544921875, -0.013092041015625, 0.006336212158203125, 0.032440185546875, -0.02642822265625, 0.01678466796875, -0.0166015625, -0.0299224853515625, 0.0013742446899414062, 0.022491455078125, -0.03656005859375, 0.0114288330078125, -0.0004057884216308594, 0.00618743896484375, -0.02557373046875, -0.010040283203125, 0.01922607421875, -0.0211029052734375, -0.005390167236328125, 0.0281219482421875, -0.0003457069396972656, 0.0439453125, 0.0157928466796875, -0.069580078125, 0.0009050369262695312, -0.0213470458984375, 0.0011816024780273438, -0.0092010498046875, 0.0002796649932861328, 0.005268096923828125, 0.01413726806640625, -0.047882080078125, -0.014190673828125, 0.0011758804321289062, 0.0127105712890625, -0.0028438568115234375, -0.005626678466796875, -0.03753662109375, -0.002780914306640625, 0.046112060546875, 0.06488037109375, 0.016754150390625, -0.03564453125, 0.0015382766723632812, 0.00908660888671875, -0.04693603515625, -0.01062774658203125, 0.0465087890625, -0.078369140625, -0.019744873046875, -0.006069183349609375, -0.0232086181640625, 0.021392822265625, -0.037078857421875, -0.042449951171875, -0.008544921875, -0.052764892578125, 0.023223876953125, -0.038726806640625, -0.0170135498046875, 0.03912353515625, -0.029632568359375, -0.0003044605255126953, -0.006931304931640625, 0.01554107666015625, 0.00887298583984375, -0.0080718994140625, -0.0007886886596679688, 0.00860595703125, -0.0411376953125, 0.006153106689453125, -0.007415771484375, 0.046875, -0.0185699462890625, -0.00714874267578125, -0.0030059814453125, 0.035308837890625, 0.003406524658203125, 0.03997802734375, 0.0015535354614257812, 0.01248931884765625, 0.0042572021484375, -0.011871337890625, -0.021453857421875, 0.04656982421875, -0.0172271728515625, 0.0321044921875, 0.00655364990234375, -0.0174713134765625, 0.051361083984375, -0.0458984375, 0.0092926025390625, -0.003971099853515625, -0.0228424072265625, -0.01441192626953125, -0.011993408203125, -0.0289764404296875, -0.0180511474609375, -0.0007739067077636719 ]
1205be02684b50702b3f614501eca1da12da53b4
Wordpress Stackexchange Q: How to reduce spam I installed WordPress along with a few add-ons to combat spam. Both are for registered and non-registered members posting comments. I added a standard Captcha as well as a mathematical challenge question (5 + what = Eleven). I have tried different Things and software, but the result is the same. I receive daily spam emails. It serves the spammer no good, as I review all comments, but that does not stop comments. Do spammers now have humans go to the same website daily and try to just sent out spam (unlikely) or is it just a software program. In the latter case, why is the WordPress add-ons not stopping spam comments. Do others have the same issue? Did I miss something, when setting up WordPress? A: Use these three plugins in combination: * *Cookies for Comments *Simple Trackback Validation *Akismet Ditch the captcha and math plugins, they're pretty much useless. The combination of these three is enough for most anybody, without having to put any problems back on the user.
Q: How to reduce spam I installed WordPress along with a few add-ons to combat spam. Both are for registered and non-registered members posting comments. I added a standard Captcha as well as a mathematical challenge question (5 + what = Eleven). I have tried different Things and software, but the result is the same. I receive daily spam emails. It serves the spammer no good, as I review all comments, but that does not stop comments. Do spammers now have humans go to the same website daily and try to just sent out spam (unlikely) or is it just a software program. In the latter case, why is the WordPress add-ons not stopping spam comments. Do others have the same issue? Did I miss something, when setting up WordPress? A: Use these three plugins in combination: * *Cookies for Comments *Simple Trackback Validation *Akismet Ditch the captcha and math plugins, they're pretty much useless. The combination of these three is enough for most anybody, without having to put any problems back on the user. A: Actually Spammers becomes smarter. If you want to fight with them you must have to be more smarter than a Spammers. I recommend you to use The 2 Free WordPress plugin and a little tweak your WordPress settings: * *Akismet *AVH First Defense Against Spam As you know that, WordPress is the most advanced Blogging Platform and It has some advanced configuration to fight with Spam. You can configure discussion settings from Settings > Discussion. Here you will find various option about commenting and prevent spammers. You can also paste the following lines to your .htaccess, It will dramatically reduce spam comments to your WordPress: RewriteEngine On RewriteCond %{REQUEST_METHOD} POST RewriteCond %{HTTP_USER_AGENT} ^$ RewriteRule .* - [F] Hope this will reduce spam comments to your WordPress :) A: Best way to reduce spam is point of entry which is at the user registration. If you stop bots there then you will reduce a lot of spam. A neat little plug-in that has come out for wordpress is No More Captchas which uses bio-chronometric technology which uses type, click, or touch as a means of security. It will determine if you are a human or bot. There is a free version too. Jumbled up words and several re-entry's are a thing of the past.
wordpress
{ "language": "en", "length": 389, "provenance": "stackexchange_00019.jsonl.gz:433233", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/102007" }
[ 0.07318115234375, 0.01605224609375, 0.00015664100646972656, 0.000644683837890625, 0.0209808349609375, -0.055816650390625, 0.049957275390625, -0.06591796875, -0.01541900634765625, 0.032318115234375, -0.0250396728515625, 0.01898193359375, -0.00440216064453125, -0.0103607177734375, -0.0186004638671875, -0.033843994140625, 0.0116119384765625, -0.0016126632690429688, 0.007091522216796875, -0.0286102294921875, 0.045166015625, -0.02880859375, -0.0163116455078125, 0.044097900390625, -0.0182647705078125, -0.0294189453125, 0.160400390625, -0.0273590087890625, -0.005748748779296875, -0.04315185546875, -0.00014030933380126953, 0.00567626953125, 0.00893402099609375, 0.05413818359375, -0.036956787109375, 0.01049041748046875, -0.0021877288818359375, 0.0380859375, 0.00445556640625, 0.0260772705078125, 0.02667236328125, -0.0165557861328125, 0.06890869140625, -0.044830322265625, 0.0217742919921875, -0.0077056884765625, 0.04583740234375, -0.0281524658203125, 0.045257568359375, -0.0408935546875, 0.0343017578125, 0.047698974609375, 0.05255126953125, -0.0264434814453125, -0.01690673828125, 0.0186920166015625, -0.03173828125, 0.02783203125, 0.0222015380859375, -0.018096923828125, -0.0162353515625, -0.0078887939453125, 0.0128326416015625, 0.009979248046875, 0.00566864013671875, -0.0067901611328125, 0.042633056640625, 0.0207061767578125, -0.0253753662109375, 0.0149993896484375, 0.0265350341796875, -0.0186614990234375, -0.01233673095703125, -0.046966552734375, -0.005817413330078125, -0.0030422210693359375, 0.000377655029296875, -0.048583984375, -0.006893157958984375, 0.0206451416015625, 0.0220794677734375, 0.0084075927734375, 0.0009274482727050781, 0.0033397674560546875, -0.007404327392578125, 0.0189971923828125, -0.017913818359375, -0.02471923828125, -0.04345703125, -0.032958984375, -0.023895263671875, -0.0638427734375, -0.0574951171875, -0.00428009033203125, 0.00778961181640625, -0.029937744140625, 0.01824951171875, 0.00878143310546875, -0.007091522216796875, -0.0254058837890625, 0.00598907470703125, -0.02215576171875, -0.04034423828125, 0.010406494140625, 0.00482940673828125, 0.055328369140625, 0.005840301513671875, -0.035614013671875, 0.004547119140625, -0.00539398193359375, 0.0171051025390625, 0.0135345458984375, -0.0017538070678710938, -0.02685546875, 0.008544921875, 0.01195526123046875, -0.0212554931640625, 0.030548095703125, 0.001583099365234375, 0.0079193115234375, 0.01082611083984375, -0.006168365478515625, 0.01019287109375, 0.018280029296875, -0.00188446044921875, -0.01158905029296875, -0.0194244384765625, 0.00020885467529296875, 0.0223388671875, -0.0159759521484375, -0.039642333984375, 0.0300750732421875, 0.0467529296875, -0.0068817138671875, -0.007427215576171875, -0.0120086669921875, 0.02545166015625, 0.0142669677734375, -0.008453369140625, -0.0181427001953125, 0.036224365234375, -0.00835418701171875, -0.018646240234375, 0.0035762786865234375, 0.0008249282836914062, 0.021270751953125, 0.01175689697265625, -0.007030487060546875, 0.007007598876953125, 0.006084442138671875, -0.026153564453125, -0.0384521484375, 0.04254150390625, -0.0203399658203125, -0.01116943359375, 0.003673553466796875, -0.0099945068359375, -0.00820159912109375, -0.0472412109375, -0.01059722900390625, 0.0299530029296875, -0.0126800537109375, -0.006072998046875, -0.048583984375, -0.050811767578125, -0.0175628662109375, -0.03582763671875, 0.00762939453125, 0.0184173583984375, -0.063720703125, 0.0116424560546875, 0.014190673828125, 0.050323486328125, -0.018341064453125, 0.00757598876953125, 0.009429931640625, 0.006103515625, 0.0244903564453125, 0.039031982421875, 0.0229644775390625, 0.01136016845703125, -0.00423431396484375, 0.10205078125, -0.02410888671875, -0.032073974609375, 0.0231781005859375, -0.0010442733764648438, 0.0190887451171875, 0.0027790069580078125, 0.006511688232421875, 0.0260009765625, 0.04351806640625, 0.039764404296875, 0.022125244140625, -0.026947021484375, -0.071533203125, 0.0203857421875, 0.00984954833984375, -0.02471923828125, 0.0129852294921875, 0.01050567626953125, 0.0020656585693359375, -0.004329681396484375, 0.0015926361083984375, -0.0196990966796875, -0.01141357421875, -0.0029811859130859375, 0.0139312744140625, -0.043548583984375, 0.02734375, 0.0261993408203125, -0.036895751953125, -0.031280517578125, 0.039703369140625, 0.033935546875, -0.01326751708984375, -0.042236328125, 0.049224853515625, 0.00960540771484375, 0.05340576171875, -0.01678466796875, -0.034912109375, 0.01092529296875, -0.032196044921875, -0.0299530029296875, -0.0276336669921875, -0.01308441162109375, -0.01248931884765625, -0.04315185546875, 0.005352020263671875, -0.02862548828125, 0.03912353515625, 0.0325927734375, 0.03985595703125, -0.0190277099609375, -0.0189208984375, 0.0019273757934570312, -0.065185546875, 0.01214599609375, 0.04144287109375, 0.05902099609375, 0.00907135009765625, 0.036651611328125, 0.0223541259765625, 0.055755615234375, -0.0252532958984375, 0.04034423828125, -0.03076171875, 0.0195159912109375, 0.025177001953125, 0.040191650390625, -0.0274505615234375, -0.000029742717742919922, -0.044647216796875, 0.007762908935546875, 0.0204620361328125, -0.0094451904296875, -0.005615234375, -0.033966064453125, 0.03857421875, -0.004688262939453125, -0.01447296142578125, -0.0023040771484375, -0.0098724365234375, -0.0389404296875, -0.0287017822265625, 0.00909423828125, 0.006252288818359375, 0.047882080078125, -0.0570068359375, -0.0044708251953125, -0.04583740234375, 0.01113128662109375, 0.0086822509765625, -0.00864410400390625, 0.0557861328125, -0.00766754150390625, 0.003509521484375, -0.0008611679077148438, 0.011993408203125, -0.0211029052734375, -0.0096588134765625, 0.0039520263671875, -0.0149078369140625, 0.01377105712890625, 0.019622802734375, 0.019561767578125, -0.022491455078125, -0.06304931640625, -0.05584716796875, -0.00803375244140625, 0.033599853515625, -0.023040771484375, -0.008819580078125, 0.03216552734375, -0.016021728515625, -0.0328369140625, -0.0318603515625, 0.0384521484375, -0.037567138671875, -0.0079803466796875, 0.056182861328125, 0.0202484130859375, -0.0191802978515625, -0.018310546875, 0.02117919921875, 0.0002999305725097656, -0.0018873214721679688, -0.01157379150390625, 0.0216827392578125, -0.06427001953125, 0.0011730194091796875, -0.0094146728515625, 0.052947998046875, -0.055084228515625, -0.072021484375, -0.017242431640625, 0.0041656494140625, -0.05364990234375, -0.0267486572265625, -0.006153106689453125, -0.05059814453125, 0.01088714599609375, -0.004608154296875, -0.02008056640625, -0.018585205078125, 0.02044677734375, 0.006359100341796875, 0.0207061767578125, -0.04290771484375, -0.069091796875, -0.0634765625, -0.07965087890625, 0.034210205078125, -0.0069580078125, 0.01277923583984375, 0.0024242401123046875, 0.0206298828125, -0.010223388671875, -0.0267333984375, 0.01525115966796875, -0.060791015625, -0.0092926025390625, 0.021453857421875, 0.01776123046875, 0.0015964508056640625, 0.0211639404296875, 0.0158233642578125, -0.0499267578125, 0.034820556640625, -0.02447509765625, -0.0499267578125, 0.022430419921875, -0.0194091796875, 0.02117919921875, -0.0142364501953125, -0.0374755859375, -0.01172637939453125, 0.0006718635559082031, -0.05084228515625, 0.01947021484375, 0.0184783935546875, -0.024444580078125, -0.032318115234375, 0.025482177734375, -0.0435791015625, 0.0111236572265625, -0.030731201171875, 0.06805419921875, 0.036041259765625, -0.003505706787109375, -0.0017900466918945312, -0.0009016990661621094, 0.017913818359375, 0.054412841796875, -0.03155517578125, -0.0008754730224609375, -0.033416748046875, 0.01378631591796875, -0.002033233642578125, 0.005069732666015625, -0.01763916015625, 0.0335693359375, -0.017578125, -0.0118560791015625, 0.0325927734375, 0.0128936767578125, 0.03704833984375, -0.0160064697265625, -0.025482177734375, -0.016204833984375, 0.0848388671875, -0.0168914794921875, -0.01342010498046875, 0.0016584396362304688, -0.0045623779296875, 0.004947662353515625, 0.0028476715087890625, -0.029632568359375, -0.02496337890625, 0.006927490234375, 0.01386260986328125, 0.01401519775390625, -0.0107879638671875, -0.019195556640625, 0.0222015380859375, -0.01995849609375, 0.003650665283203125, 0.02215576171875, -0.06695556640625, 0.036041259765625, -0.04400634765625, 0.01529693603515625, -0.0494384765625, 0.010711669921875, -0.06829833984375, -0.047698974609375, -0.0211334228515625, 0.00679779052734375, 0.04302978515625, -0.016357421875, 0.0260162353515625, -0.01708984375, 0.041290283203125, -0.020233154296875, -0.0192413330078125, 0.0305023193359375, 0.03192138671875, 0.004184722900390625, 0.00762939453125, 0.019622802734375, -0.039093017578125, -0.04241943359375, -0.0082244873046875, 0.0118408203125, 0.0257110595703125, 0.005992889404296875, -0.024444580078125, 0.037628173828125, -0.0028247833251953125, -0.006069183349609375, -0.05523681640625, -0.024566650390625, 0.0155029296875, -0.038177490234375, 0.02734375, -0.059173583984375, 0.00461578369140625, 0.00807952880859375, -0.0235443115234375, -0.014617919921875, 0.0187835693359375, 0.046478271484375, 0.025115966796875, -0.0004146099090576172, -0.0297698974609375, -0.0035915374755859375, 0.024017333984375, 0.046051025390625, 0.005153656005859375, -0.004764556884765625, -0.01328277587890625, 0.0248565673828125, 0.013671875, 0.0164337158203125, -0.06744384765625, 0.053558349609375, -0.01305389404296875, 0.00885009765625, -0.0010042190551757812, -0.0328369140625, 0.06396484375, 0.01216888427734375, 0.0026912689208984375, -0.010528564453125, -0.020599365234375, 0.044189453125, 0.0136260986328125, -0.0163421630859375, -0.047393798828125, -0.031341552734375, 0.00762939453125, -0.06866455078125, 0.0261383056640625, 0.0039215087890625, -0.003620147705078125, 0.003398895263671875, 0.0202789306640625, -0.0152587890625, 0.004138946533203125, 0.005245208740234375, -0.0164031982421875, 0.0222015380859375, -0.00473785400390625, -0.0274658203125, -0.0015134811401367188, -0.01439666748046875, 0.08184814453125, 0.0309295654296875, -0.0286407470703125, -0.007488250732421875, -0.01309967041015625, -0.052337646484375, -0.003795623779296875, 0.032470703125, 0.07171630859375, 0.003787994384765625, -0.0172119140625, -0.03900146484375, -0.0142974853515625, -0.005489349365234375, -0.0775146484375, -0.04620361328125, -0.006526947021484375, -0.036346435546875, 0.0302276611328125, -0.0188751220703125, 0.0016536712646484375, -0.004673004150390625, -0.00034880638122558594, 0.017578125, 0.060821533203125, 0.00336456298828125, 0.016815185546875, 0.01364898681640625, -0.0147552490234375, -0.013824462890625, 0.0177459716796875, -0.01107025146484375, -0.0306243896484375, 0.016357421875, 0.012176513671875, 0.0296783447265625, 0.034912109375, -0.01861572265625, 0.01837158203125, -0.010528564453125, -0.01450347900390625, 0.05316162109375, 0.020355224609375, 0.0186614990234375, -0.01026153564453125, -0.032196044921875, 0.05029296875, -0.0167694091796875, 0.0141143798828125, -0.037628173828125, 0.007526397705078125, 0.0391845703125, -0.020782470703125, -0.0095672607421875, -0.01389312744140625, 0.0237579345703125, -0.01390838623046875, -0.002559661865234375, -0.0435791015625, -0.006664276123046875, -0.0206298828125, 0.0258026123046875, 0.047393798828125, 0.01055145263671875, 0.034820556640625, -0.00870513916015625, -0.026458740234375, -0.0026340484619140625, 0.021240234375, -0.031341552734375, -0.04437255859375, -0.00014698505401611328, -0.007541656494140625, -0.0404052734375, -0.040802001953125, -0.0570068359375, -0.0276336669921875, -0.0367431640625, 0.0088653564453125, 0.01380157470703125, 0.038482666015625, -0.0233612060546875, -0.060577392578125, 0.00920867919921875, -0.01380157470703125, 0.008087158203125, 0.055206298828125, -0.025421142578125, -0.00984954833984375, 0.05670166015625, -0.01143646240234375, 0.006717681884765625, -0.00943756103515625, 0.019744873046875, -0.005786895751953125, 0.0232086181640625, -0.022552490234375, -0.0428466796875, 0.02447509765625, -0.046112060546875, -0.00023257732391357422, 0.0175933837890625, -0.01010894775390625, -0.01058197021484375, -0.03521728515625, -0.00614166259765625, -0.0264892578125, 0.0523681640625, -0.005176544189453125, 0.0222320556640625, -0.03558349609375, -0.019195556640625, 0.03662109375, -0.015045166015625, -0.01213836669921875, 0.0287322998046875, -0.01763916015625, 0.026885986328125, 0.021942138671875, 0.03173828125, -0.01837158203125, -0.00019347667694091797, -0.01397705078125, 0.0238189697265625, 0.007266998291015625, 0.0228271484375, 0.0108489990234375, -0.0005006790161132812, 0.029388427734375, -0.066162109375, 0.058624267578125, -0.0074310302734375, -0.03680419921875, 0.05224609375, -0.045684814453125, 0.0278778076171875, 0.054107666015625, 0.06903076171875, -0.08074951171875, 0.018341064453125, 0.01209259033203125, -0.04766845703125, -0.0105133056640625, -0.0177001953125, 0.026702880859375, -0.044525146484375, -0.0010232925415039062, 0.06072998046875, -0.01256561279296875, -0.034271240234375, -0.0185394287109375, -0.00824737548828125, 0.0264129638671875, 0.057891845703125, -0.0003228187561035156, -0.0654296875, -0.0445556640625, 0.03851318359375, -0.045166015625, -0.034454345703125, -0.046539306640625, 0.058624267578125, -0.050811767578125, -0.10198974609375, -0.00911712646484375, -0.0268402099609375, 0.026580810546875, 0.0089569091796875, -0.00738525390625, 0.0276641845703125, 0.023834228515625, -0.0026149749755859375, -0.0243072509765625, 0.0052947998046875, -0.02490234375, -0.0062713623046875, -0.046142578125, 0.001438140869140625, -0.005260467529296875, 0.01678466796875, 0.0266265869140625, 0.016845703125, -0.0750732421875, 0.01515960693359375, 0.0338134765625, 0.058135986328125, -0.04107666015625, -0.02008056640625, 0.0533447265625, -0.040771484375, -0.0233001708984375, -0.047271728515625, -0.00797271728515625, -0.02947998046875, 0.04852294921875, -0.0288848876953125, 0.029632568359375, 0.0090484619140625, -0.0296173095703125, -0.0767822265625, 0.07049560546875, 0.002567291259765625, 0.0256195068359375, -0.002094268798828125, 0.02044677734375, -0.0118408203125, 0.0035877227783203125, -0.0074310302734375, 0.04638671875, -0.066162109375, 0.0135040283203125, -0.0428466796875, 0.01080322265625, -0.004425048828125, 0.0238189697265625, 0.059356689453125, 0.0203094482421875, -0.01739501953125, 0.012603759765625, 0.05450439453125, 0.0194244384765625, -0.01230621337890625, 0.020721435546875, 0.00820159912109375, 0.019073486328125, 0.062164306640625, -0.05377197265625, 0.014129638671875, 0.0014371871948242188, 0.0216217041015625, 0.0151824951171875, -0.02325439453125, -0.034820556640625, 0.015045166015625, 0.051116943359375, -0.051788330078125, 0.00563812255859375, 0.0301361083984375, -0.033050537109375, -0.0307769775390625, 0.059356689453125, 0.0292816162109375, -0.03533935546875, 0.0096893310546875, -0.04095458984375, 0.052734375, -0.0019178390502929688, 0.040771484375, 0.01114654541015625, 0.0284881591796875, 0.07452392578125, -0.025238037109375, 0.0050811767578125, 0.022979736328125, -0.03448486328125, 0.0025196075439453125, -0.01224517822265625, 0.04193115234375, -0.05963134765625, -0.09661865234375, 0.047882080078125, 0.050750732421875, 0.0039215087890625, -0.01415252685546875, 0.00933837890625, 0.0125732421875, 0.031463623046875, -0.01104736328125, 0.05657958984375, 0.031341552734375, 0.0296783447265625, -0.00928497314453125, -0.00298309326171875, 0.0121002197265625, -0.01345062255859375, 0.00809478759765625, 0.051971435546875, 0.0285186767578125, 0.007160186767578125, -0.01317596435546875, -0.011199951171875, 0.0019664764404296875, 0.0093231201171875, 0.0088653564453125, 0.0201416015625, -0.013885498046875, -0.01184844970703125, -0.00586700439453125, 0.021697998046875, 0.04107666015625, -0.01617431640625, 0.003803253173828125, -0.00373077392578125, 0.0051422119140625, 0.00981903076171875, -0.007701873779296875, 0.0251007080078125, 0.00719451904296875, 0.01136016845703125, -0.007251739501953125, -0.004573822021484375, 0.053680419921875, -0.029144287109375, 0.01279449462890625, -0.02301025390625, -0.00769805908203125, -0.01152801513671875, -0.020538330078125, -0.011688232421875, 0.0203857421875, 0.01032257080078125, 0.019195556640625, -0.005474090576171875, 0.0229644775390625, -0.0125274658203125, 0.019439697265625, 0.00731658935546875, -0.026275634765625, 0.028045654296875, -0.1256103515625, -0.048583984375, 0.0283203125, -0.03216552734375, 0.0205535888671875, 0.035980224609375, -0.04864501953125, 0.036407470703125, -0.00838470458984375, -0.0341796875, 0.0046844482421875, 0.0024566650390625, 0.02142333984375, 0.002040863037109375, -0.01206207275390625, -0.0172882080078125, -0.031646728515625, -0.01206207275390625, -0.01137542724609375, 0.02777099609375, 0.0170135498046875, 0.06658935546875, -0.011505126953125, 0.00957489013671875, -0.0292205810546875, 0.0016040802001953125, -0.0009112358093261719, -0.01346588134765625, 0.047210693359375, 0.06402587890625, -0.0225067138671875, -0.0531005859375, -0.03411865234375, 0.020721435546875, 0.038299560546875, -0.000873565673828125, 0.032684326171875, -0.002044677734375, -0.0006799697875976562, -0.034942626953125, 0.01837158203125, -0.01500701904296875, -0.007534027099609375, -0.033538818359375, -0.034820556640625, 0.05792236328125, 0.05877685546875, 0.00849151611328125, 0.0672607421875, -0.0007953643798828125, 0.041168212890625, -0.018951416015625, -0.02801513671875, -0.0271759033203125, 0.0241241455078125, -0.030364990234375, 0.01380157470703125, 0.05010986328125, -0.010650634765625, 0.0038356781005859375, 0.0247039794921875, 0.015411376953125, 0.0318603515625, -0.034454345703125, 0.0135650634765625, 0.0379638671875, 0.040679931640625, -0.029266357421875, 0.0009140968322753906, 0.033966064453125, -0.0235443115234375, -0.0106658935546875, -0.001285552978515625, -0.0119476318359375, -0.0347900390625, -0.0333251953125, -0.009674072265625, -0.05645751953125, -0.045135498046875, -0.019500732421875, -0.0002799034118652344, -0.00943756103515625, -0.0236663818359375, -0.025634765625, -0.0203094482421875, 0.00946044921875, 0.058685302734375, -0.0477294921875, 0.007659912109375, -0.0177764892578125, 0.0012826919555664062, -0.053985595703125, -0.046295166015625, -0.06634521484375, 0.0340576171875, -0.07366943359375, 0.0184478759765625, 0.042144775390625, -0.0199432373046875, -0.020904541015625, -0.0012941360473632812, 0.01062774658203125, 0.04449462890625, 0.000392913818359375, -0.015106201171875, 0.045440673828125, -0.033935546875, -0.019775390625, -0.053680419921875, -0.00391387939453125, -0.058197021484375, -0.0236053466796875, -0.06024169921875, 0.048095703125, 0.037841796875, -0.032623291015625, -0.0794677734375, -0.0007281303405761719, -0.0338134765625, -0.038604736328125, -0.058929443359375, -0.035552978515625, 0.00696563720703125, -0.05401611328125, -0.06317138671875, 0.0258941650390625, -0.05963134765625, 0.061126708984375, 0.00496673583984375, -0.00814056396484375, 0.0262908935546875, 0.022613525390625, 0.0279083251953125, 0.04498291015625, 0.060791015625, -0.052032470703125, 0.04302978515625, -0.006580352783203125, 0.03741455078125, 0.0313720703125, -0.0546875, 0.0298919677734375, -0.0206451416015625, -0.0017881393432617188, -0.01959228515625, -0.0211181640625, 0.0103912353515625, 0.0174560546875, 0.047943115234375, 0.033416748046875, -0.011810302734375, -0.048492431640625, -0.0008335113525390625, 0.0190582275390625, 0.00919342041015625, -0.002460479736328125, -0.00870513916015625, -0.007625579833984375, -0.0107879638671875, -0.0305938720703125, 0.004405975341796875, -0.02789306640625, -0.0269775390625, -0.03472900390625, -0.019775390625, -0.004978179931640625, -0.0003769397735595703, 0.034820556640625, -0.022064208984375, 0.0208282470703125, -0.01383209228515625, 0.007389068603515625, 0.0178070068359375, 0.00443267822265625, 0.0018472671508789062, 0.06414794921875, 0.0186309814453125, -0.0007181167602539062, -0.040069580078125, -0.005062103271484375, 0.021881103515625, 0.0218353271484375, -0.0196990966796875, -0.047027587890625, 0.00620269775390625, 0.0199737548828125, 0.00489044189453125, 0.0276947021484375, -0.01067352294921875, 0.006450653076171875, -0.004032135009765625, 0.0100860595703125, -0.0239410400390625, -0.004486083984375, -0.03363037109375, 0.047943115234375, 0.01702880859375, -0.0161285400390625, 0.07440185546875, -0.034637451171875, 0.01226806640625, 0.0258331298828125, 0.0085296630859375, -0.019775390625, 0.0091705322265625, 0.000698089599609375, 0.024627685546875, 0.01222991943359375 ]
5c762f807c0f51dfe1744893f7534240129b2ad7
Wordpress Stackexchange Q: How to purge all transient caches? Is there an easy way to delete all transient caches? A plugin maybe? Or like in drupal "drush cc all"? A: Not tested, but if you need a quick and dirty way, you could put a script like this in your WordPress folder and call it each time: define( 'WP_USE_THEMES', false ); require('wp-blog-header.php'); global $wpdb; $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '%\_transient\_%'" ); Not to be used on a production server.
Q: How to purge all transient caches? Is there an easy way to delete all transient caches? A plugin maybe? Or like in drupal "drush cc all"? A: Not tested, but if you need a quick and dirty way, you could put a script like this in your WordPress folder and call it each time: define( 'WP_USE_THEMES', false ); require('wp-blog-header.php'); global $wpdb; $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '%\_transient\_%'" ); Not to be used on a production server. A: If you can access your database through phpmyadmin or something equivalent, I would recommand you to use this : DELETE a, b FROM wp_options a, wp_options b WHERE a.option_name LIKE '_transient_%' AND a.option_name NOT LIKE '_transient_timeout_%' AND b.option_name = CONCAT( '_transient_timeout_', SUBSTRING( a.option_name, CHAR_LENGTH('_transient_') + 1 ) ) AND b.option_value < UNIX_TIMESTAMP() A: Install https://wp-cli.org/ and use the command wp transient delete --all
wordpress
{ "language": "en", "length": 143, "provenance": "stackexchange_00019.jsonl.gz:433250", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/102071" }
[ 0.053009033203125, 0.024139404296875, 0.0018301010131835938, -0.0128173828125, 0.0352783203125, -0.04541015625, 0.06341552734375, -0.0249481201171875, 0.04425048828125, 0.0306243896484375, -0.0211334228515625, -0.06353759765625, 0.005336761474609375, -0.0208282470703125, -0.0528564453125, -0.040771484375, 0.04736328125, -0.043121337890625, 0.033843994140625, -0.01027679443359375, 0.01197052001953125, 0.0133209228515625, 0.047332763671875, 0.05633544921875, -0.004058837890625, -0.005939483642578125, 0.0767822265625, -0.02734375, -0.01537322998046875, -0.0606689453125, -0.001720428466796875, 0.06610107421875, -0.01499176025390625, 0.054534912109375, -0.0081634521484375, 0.025360107421875, -0.00598907470703125, 0.0494384765625, 0.033843994140625, -0.01149749755859375, 0.00811767578125, 0.0062103271484375, -0.025848388671875, 0.018310546875, -0.04254150390625, -0.033355712890625, -0.005847930908203125, -0.0278472900390625, 0.03204345703125, -0.0008444786071777344, -0.001071929931640625, -0.00567626953125, 0.0191650390625, -0.032989501953125, -0.036712646484375, -0.0516357421875, 0.0032196044921875, -0.0173187255859375, 0.0261688232421875, -0.0226593017578125, -0.009368896484375, 0.004734039306640625, 0.02764892578125, -0.0005855560302734375, -0.01206207275390625, 0.01045989990234375, 0.0280609130859375, 0.00855255126953125, 0.004947662353515625, -0.00914764404296875, 0.0037975311279296875, 0.003971099853515625, -0.00408172607421875, -0.0157318115234375, 0.0014829635620117188, 0.02166748046875, 0.016815185546875, 0.0120391845703125, -0.0021228790283203125, 0.01081085205078125, 0.022857666015625, -0.045501708984375, -0.0400390625, 0.0035247802734375, -0.00115203857421875, 0.017669677734375, 0.01209259033203125, -0.01378631591796875, -0.042633056640625, -0.028533935546875, -0.033782958984375, -0.06488037109375, -0.0736083984375, 0.023406982421875, 0.01282501220703125, -0.0234832763671875, 0.01324462890625, 0.03857421875, -0.0177459716796875, -0.0248260498046875, -0.0132293701171875, -0.02447509765625, -0.03253173828125, -0.0090484619140625, 0.00884246826171875, -0.014801025390625, -0.01522064208984375, 0.0014181137084960938, 0.046173095703125, 0.058929443359375, 0.0024261474609375, -0.0025787353515625, 0.0030727386474609375, -0.002399444580078125, -0.0085601806640625, -0.008270263671875, -0.038055419921875, 0.0428466796875, -0.001293182373046875, 0.0164642333984375, 0.0184478759765625, 0.023162841796875, -0.035400390625, 0.0033588409423828125, -0.02288818359375, -0.03668212890625, -0.034637451171875, 0.008514404296875, -0.029571533203125, -0.02294921875, -0.034820556640625, 0.050384521484375, 0.07061767578125, 0.017181396484375, -0.00848388671875, -0.0124969482421875, 0.016845703125, -0.017303466796875, 0.0288543701171875, -0.04718017578125, 0.07342529296875, 0.007350921630859375, -0.0234527587890625, 0.036041259765625, 0.034881591796875, 0.04583740234375, 0.03143310546875, -0.019500732421875, -0.0020999908447265625, -0.0028743743896484375, -0.035369873046875, 0.008819580078125, 0.0292510986328125, -0.005771636962890625, 0.03826904296875, -0.033203125, 0.06134033203125, -0.04937744140625, -0.0036716461181640625, -0.059814453125, 0.0105743408203125, -0.0226898193359375, -0.00966644287109375, 0.0257720947265625, 0.010650634765625, 0.035430908203125, 0.021636962890625, 0.0025119781494140625, 0.03009033203125, 0.00533294677734375, 0.01311492919921875, -0.07440185546875, 0.028717041015625, 0.0207061767578125, -0.00684356689453125, 0.056060791015625, -0.00948333740234375, 0.00722503662109375, 0.019256591796875, 0.0004897117614746094, -0.0110015869140625, -0.042144775390625, 0.00951385498046875, 0.0125732421875, -0.0479736328125, 0.0011453628540039062, 0.02154541015625, 0.067138671875, 0.007633209228515625, 0.041900634765625, 0.033905029296875, -0.009918212890625, -0.0027599334716796875, 0.0289154052734375, 0.02032470703125, -0.0355224609375, -0.062103271484375, -0.01788330078125, -0.005443572998046875, -0.0313720703125, 0.0311279296875, -0.01105499267578125, 0.01428985595703125, -0.045623779296875, -0.080810546875, 0.00420379638671875, -0.03753662109375, 0.0443115234375, 0.008087158203125, 0.0198822021484375, 0.00804901123046875, -0.01383209228515625, -0.0085601806640625, -0.033233642578125, -0.03582763671875, 0.01088714599609375, 0.0123748779296875, 0.01482391357421875, 0.017333984375, -0.0153350830078125, 0.014373779296875, 0.00021839141845703125, 0.0008225440979003906, 0.019134521484375, 0.021484375, -0.039947509765625, 0.0012960433959960938, -0.034820556640625, 0.0198974609375, -0.0214385986328125, -0.0066986083984375, 0.048126220703125, -0.00450897216796875, 0.027618408203125, -0.012298583984375, -0.00795745849609375, -0.0152587890625, -0.05340576171875, 0.01367950439453125, 0.048980712890625, 0.0279083251953125, 0.040313720703125, -0.01617431640625, 0.0033359527587890625, 0.026092529296875, -0.051422119140625, -0.0082244873046875, 0.0099029541015625, 0.040435791015625, 0.043731689453125, -0.0278778076171875, -0.0170135498046875, 0.01239776611328125, -0.0128631591796875, 0.03985595703125, 0.0239105224609375, 0.01058197021484375, -0.005825042724609375, -0.00415802001953125, 0.0117034912109375, 0.00756072998046875, 0.00972747802734375, -0.0233612060546875, 0.0234832763671875, 0.07073974609375, -0.005565643310546875, 0.032867431640625, 0.021484375, -0.0055999755859375, 0.015655517578125, -0.0015811920166015625, -0.0794677734375, 0.013427734375, 0.01280975341796875, 0.0006222724914550781, 0.019989013671875, -0.0229034423828125, 0.007843017578125, -0.00627899169921875, -0.005702972412109375, -0.01922607421875, 0.0474853515625, 0.0254974365234375, -0.021820068359375, -0.0282440185546875, -0.016143798828125, 0.01519012451171875, -0.037506103515625, -0.0389404296875, -0.037078857421875, -0.0249481201171875, 0.056304931640625, -0.024932861328125, 0.031890869140625, 0.00885009765625, 0.0004191398620605469, 0.0290374755859375, -0.032379150390625, 0.0200042724609375, -0.0269775390625, 0.023223876953125, 0.060089111328125, -0.000377655029296875, -0.01093292236328125, 0.0012073516845703125, 0.01512908935546875, 0.0528564453125, -0.02545166015625, -0.0233917236328125, 0.0163726806640625, -0.06707763671875, -0.01995849609375, 0.0121612548828125, 0.057830810546875, -0.0108489990234375, -0.046478271484375, -0.004795074462890625, 0.0220947265625, -0.061798095703125, -0.06549072265625, 0.0026683807373046875, 0.0222320556640625, -0.033447265625, -0.0091094970703125, 0.0084381103515625, 0.0047607421875, -0.007717132568359375, -0.01181793212890625, 0.01459503173828125, -0.0005350112915039062, 0.0132293701171875, 0.005462646484375, -0.02728271484375, -0.0266876220703125, 0.00557708740234375, -0.01326751708984375, 0.00977325439453125, 0.020721435546875, -0.007801055908203125, -0.05718994140625, 0.0012493133544921875, 0.00955963134765625, -0.0229644775390625, 0.0045166015625, 0.01288604736328125, 0.01849365234375, -0.023406982421875, 0.01232147216796875, -0.00505828857421875, 0.0290679931640625, -0.03472900390625, -0.00762939453125, -0.0094146728515625, -0.0185089111328125, 0.041595458984375, -0.0316162109375, -0.039154052734375, -0.0031223297119140625, 0.01311492919921875, -0.055511474609375, 0.00682830810546875, 0.00010603666305541992, -0.0050048828125, 0.006420135498046875, -0.003528594970703125, -0.029052734375, -0.0007205009460449219, 0.006622314453125, -0.0006175041198730469, -0.006832122802734375, -0.01239013671875, -0.00901031494140625, -0.00881195068359375, -0.0016622543334960938, 0.00980377197265625, 0.016143798828125, 0.03302001953125, -0.036956787109375, 0.0340576171875, 0.0183563232421875, -0.0126190185546875, 0.0037288665771484375, -0.037384033203125, -0.00402069091796875, -0.03936767578125, 0.0254974365234375, -0.028900146484375, 0.006481170654296875, -0.0257568359375, -0.02130126953125, -0.016448974609375, 0.0855712890625, -0.03271484375, -0.0362548828125, -0.033111572265625, 0.0107269287109375, 0.007663726806640625, 0.005847930908203125, 0.014923095703125, -0.0245513916015625, -0.09246826171875, 0.04351806640625, 0.01552581787109375, -0.0439453125, -0.027984619140625, -0.03436279296875, -0.08160400390625, -0.02935791015625, 0.0509033203125, -0.059539794921875, 0.024444580078125, -0.032501220703125, 0.01329803466796875, -0.06512451171875, -0.0304107666015625, -0.031341552734375, -0.042724609375, -0.00949859619140625, -0.061920166015625, 0.055633544921875, 0.058624267578125, -0.0200958251953125, 0.0249786376953125, 0.047119140625, -0.0022449493408203125, 0.0174407958984375, 0.00428009033203125, 0.0024261474609375, -0.003143310546875, 0.03875732421875, 0.0195465087890625, -0.00687408447265625, -0.00543975830078125, -0.005397796630859375, -0.019866943359375, -0.00612640380859375, -0.025054931640625, 0.0063629150390625, 0.0127105712890625, -0.02996826171875, -0.00476837158203125, -0.027313232421875, -0.032318115234375, -0.0008373260498046875, -0.060089111328125, 0.03179931640625, -0.0162811279296875, -0.0204315185546875, 0.05145263671875, 0.02685546875, 0.00827789306640625, 0.00489044189453125, 0.0506591796875, 0.0065765380859375, -0.045684814453125, -0.0482177734375, 0.036712646484375, 0.0239715576171875, -0.004482269287109375, 0.0198974609375, -0.021240234375, -0.010284423828125, 0.0364990234375, -0.0233154296875, -0.0171966552734375, -0.052398681640625, 0.083740234375, -0.01084136962890625, -0.0010852813720703125, 0.01013946533203125, -0.037506103515625, 0.058013916015625, 0.032623291015625, 0.01335906982421875, -0.014617919921875, -0.00019800662994384766, 0.04412841796875, 0.01528167724609375, -0.041473388671875, -0.06036376953125, -0.0673828125, 0.01226806640625, -0.038330078125, 0.048553466796875, 0.00679779052734375, 0.005313873291015625, 0.07421875, 0.0654296875, 0.0083465576171875, -0.0232391357421875, 0.036651611328125, -0.0254058837890625, 0.021270751953125, 0.007358551025390625, -0.0161590576171875, -0.048675537109375, -0.01189422607421875, 0.0102691650390625, -0.01080322265625, -0.08758544921875, 0.0216522216796875, 0.0054931640625, 0.04144287109375, 0.033843994140625, -0.006500244140625, 0.03033447265625, -0.0004818439483642578, -0.0074005126953125, 0.0130157470703125, -0.04443359375, -0.0163116455078125, -0.048675537109375, 0.0217437744140625, -0.017425537109375, -0.0020599365234375, 0.0216064453125, 0.033660888671875, -0.0596923828125, 0.046173095703125, 0.006748199462890625, 0.06378173828125, 0.039459228515625, 0.016265869140625, 0.0066375732421875, 0.001331329345703125, 0.02044677734375, -0.042510986328125, -0.01116180419921875, -0.0694580078125, -0.0162353515625, 0.0408935546875, 0.07171630859375, -0.0303802490234375, -0.04608154296875, 0.0243682861328125, -0.0164794921875, 0.006366729736328125, -0.0028057098388671875, -0.00860595703125, -0.0276336669921875, -0.0069580078125, -0.00012624263763427734, 0.01276397705078125, -0.0084075927734375, 0.0084686279296875, 0.0064239501953125, -0.01557159423828125, 0.0071868896484375, 0.0293426513671875, -0.0216064453125, -0.032440185546875, -0.0175933837890625, -0.06439208984375, -0.058929443359375, -0.01348114013671875, -0.0300750732421875, -0.0005559921264648438, -0.002208709716796875, -0.014129638671875, 0.0169830322265625, 0.00807952880859375, 0.00714111328125, -0.034912109375, -0.00423431396484375, 0.0357666015625, -0.0175018310546875, 0.06536865234375, 0.0080718994140625, -0.0165863037109375, -0.018829345703125, -0.03564453125, -0.046051025390625, -0.052978515625, -0.0506591796875, -0.034912109375, 0.00804901123046875, 0.00919342041015625, 0.0171966552734375, -0.010345458984375, -0.010040283203125, -0.0167083740234375, 0.0269927978515625, 0.0084381103515625, 0.0469970703125, 0.0119476318359375, -0.0160369873046875, 0.048248291015625, 0.0196533203125, 0.056182861328125, 0.036865234375, 0.02301025390625, -0.07232666015625, 0.032958984375, -0.017364501953125, -0.04193115234375, -0.0264892578125, -0.033203125, -0.0184326171875, 0.048797607421875, -0.02093505859375, 0.0183258056640625, -0.031524658203125, -0.00420379638671875, -0.0193023681640625, 0.0301055908203125, -0.049346923828125, 0.00957489013671875, -0.0006184577941894531, 0.021697998046875, 0.050445556640625, -0.030792236328125, -0.02960205078125, -0.0010271072387695312, 0.00634002685546875, 0.0109100341796875, -0.00959014892578125, -0.03192138671875, 0.078857421875, 0.08319091796875, -0.00019860267639160156, 0.034759521484375, 0.0479736328125, 0.0004949569702148438, -0.0208282470703125, 0.0015459060668945312, -0.006130218505859375, -0.01495361328125, 0.03582763671875, 0.0025653839111328125, -0.007221221923828125, 0.0276641845703125, -0.022552490234375, -0.0269012451171875, 0.044464111328125, 0.0277252197265625, -0.0289306640625, -0.01488494873046875, -0.01325225830078125, -0.017822265625, 0.0135650634765625, 0.01068115234375, -0.00811004638671875, -0.0034275054931640625, -0.0247802734375, 0.004405975341796875, -0.0369873046875, -0.0234375, 0.0135955810546875, 0.012786865234375, 0.0117645263671875, 0.02484130859375, -0.0033168792724609375, -0.038909912109375, -0.01049041748046875, 0.0256500244140625, 0.001277923583984375, -0.032928466796875, 0.0297393798828125, 0.0174560546875, 0.035308837890625, -0.00998687744140625, 0.08038330078125, -0.0133056640625, 0.00699615478515625, 0.038482666015625, -0.0128936767578125, -0.027496337890625, 0.020904541015625, -0.0194854736328125, 0.027374267578125, -0.007595062255859375, -0.0192413330078125, -0.03729248046875, -0.040496826171875, 0.0203094482421875, -0.000056624412536621094, -0.045501708984375, 0.028533935546875, -0.03741455078125, -0.03466796875, -0.026702880859375, -0.026702880859375, 0.072509765625, -0.0244140625, -0.00989532470703125, 0.04547119140625, 0.047576904296875, -0.03900146484375, -0.024993896484375, 0.0070343017578125, -0.0333251953125, 0.0251007080078125, -0.0204620361328125, 0.01540374755859375, 0.00873565673828125, -0.0210113525390625, -0.09368896484375, 0.099365234375, -0.00388336181640625, 0.058013916015625, 0.0222015380859375, 0.0063934326171875, -0.04644775390625, -0.035247802734375, -0.021636962890625, 0.06085205078125, 0.013214111328125, 0.0106353759765625, -0.0190277099609375, -0.005340576171875, 0.00969696044921875, 0.01230621337890625, 0.06591796875, 0.016265869140625, -0.02435302734375, -0.00439453125, 0.04052734375, 0.0287017822265625, -0.006610870361328125, 0.046600341796875, -0.013519287109375, 0.0277099609375, 0.0255584716796875, -0.05792236328125, 0.02642822265625, -0.02313232421875, -0.0233612060546875, -0.0106353759765625, 0.01313018798828125, 0.028411865234375, 0.01751708984375, 0.0265045166015625, -0.0316162109375, 0.0168304443359375, 0.0236358642578125, 0.016845703125, 0.041229248046875, -0.0254364013671875, -0.003803253173828125, 0.01447296142578125, -0.0328369140625, 0.02142333984375, 0.0239410400390625, 0.00421905517578125, -0.0023193359375, 0.03619384765625, 0.006389617919921875, -0.01462554931640625, -0.035369873046875, -0.004180908203125, -0.0261383056640625, -0.01727294921875, 0.01116943359375, 0.020538330078125, 0.0293731689453125, -0.02557373046875, -0.016510009765625, 0.02667236328125, 0.0293121337890625, -0.01387786865234375, -0.0521240234375, 0.00653839111328125, -0.0209503173828125, 0.0212249755859375, 0.0007658004760742188, 0.0310821533203125, -0.0633544921875, -0.0355224609375, 0.031585693359375, 0.00394439697265625, -0.002124786376953125, -0.0143890380859375, 0.0328369140625, 0.0860595703125, -0.023681640625, 0.0215301513671875, -0.0241851806640625, 0.00408935546875, 0.0176239013671875, 0.0297088623046875, 0.006740570068359375, 0.04901123046875, 0.0217132568359375, -0.019775390625, -0.007442474365234375, 0.0521240234375, 0.029266357421875, -0.0191650390625, -0.0222015380859375, -0.0452880859375, 0.0171661376953125, 0.024749755859375, -0.00992584228515625, -0.0189056396484375, 0.050201416015625, 0.019256591796875, -0.08154296875, -0.032470703125, -0.0143890380859375, -0.043121337890625, 0.050384521484375, -0.0310821533203125, -0.022308349609375, -0.035308837890625, -0.0386962890625, -0.0142364501953125, -0.01454925537109375, 0.0097503662109375, -0.043609619140625, 0.01739501953125, -0.020843505859375, -0.0290069580078125, 0.064208984375, -0.032745361328125, 0.0253753662109375, -0.0255889892578125, 0.00940704345703125, -0.00006157159805297852, -0.060333251953125, 0.048065185546875, 0.01137542724609375, 0.018035888671875, 0.04052734375, 0.0214385986328125, 0.01444244384765625, -0.00975799560546875, 0.005126953125, 0.0068511962890625, 0.000843048095703125, -0.0038738250732421875, 0.01535797119140625, -0.01404571533203125, -0.028533935546875, -0.004055023193359375, 0.007534027099609375, -0.006988525390625, -0.0163116455078125, 0.055511474609375, -0.003841400146484375, -0.0018415451049804688, 0.01000213623046875, 0.00760650634765625, 0.008758544921875, 0.0384521484375, -0.042449951171875, 0.01529693603515625, 0.004673004150390625, -0.01849365234375, -0.07110595703125, 0.0304718017578125, 0.0163726806640625, 0.01110076904296875, 0.0439453125, -0.02685546875, 0.016357421875, -0.0165863037109375, -0.0258941650390625, -0.0297088623046875, -0.032928466796875, 0.018280029296875, 0.02435302734375, -0.00440216064453125, 0.0038604736328125, -0.02655029296875, 0.00849151611328125, 0.049072265625, -0.043670654296875, 0.0224456787109375, -0.0172576904296875, 0.0440673828125, 0.0416259765625, 0.055389404296875, -0.038848876953125, 0.01161956787109375, -0.012908935546875, 0.002567291259765625, 0.00928497314453125, 0.0300140380859375, 0.0217132568359375, -0.0159454345703125, -0.03155517578125, -0.026519775390625, -0.002666473388671875, -0.0322265625, -0.0163421630859375, -0.0205535888671875, 0.011627197265625, 0.009033203125, 0.04754638671875, -0.0111083984375, 0.007106781005859375, -0.047271728515625, -0.018218994140625, -0.018157958984375, -0.06292724609375, -0.048553466796875, 0.01119232177734375, 0.038970947265625, 0.007297515869140625, -0.03460693359375, 0.037322998046875, -0.042022705078125, 0.0027294158935546875, 0.016998291015625, -0.0300140380859375, -0.02349853515625, 0.0059051513671875, 0.00955963134765625, -0.078857421875, -0.052032470703125, 0.086669921875, -0.05615234375, -0.00923919677734375, 0.01027679443359375, 0.00807952880859375, 0.036651611328125, -0.00724029541015625, 0.0094451904296875, 0.03759765625, -0.0240631103515625, -0.018768310546875, 0.0299224853515625, -0.01873779296875, -0.0203094482421875, -0.06573486328125, 0.0002906322479248047, -0.06463623046875, -0.004375457763671875, -0.042236328125, 0.01617431640625, 0.00658416748046875, -0.0546875, -0.0894775390625, 0.09033203125, -0.03216552734375, -0.02484130859375, -0.0604248046875, 0.0054168701171875, 0.0211944580078125, 0.008209228515625, -0.0211944580078125, 0.0109405517578125, -0.06195068359375, 0.01050567626953125, 0.0341796875, 0.0428466796875, -0.008758544921875, 0.0328369140625, 0.0002014636993408203, 0.059356689453125, 0.0268096923828125, 0.043426513671875, -0.01424407958984375, 0.003387451171875, 0.023193359375, 0.056243896484375, -0.00424957275390625, 0.026702880859375, 0.01081085205078125, -0.0384521484375, -0.023284912109375, -0.007129669189453125, -0.01280975341796875, 0.030487060546875, 0.08111572265625, 0.06195068359375, 0.023651123046875, -0.068359375, 0.0279083251953125, 0.024627685546875, -0.031341552734375, -0.036163330078125, 0.0229644775390625, -0.04638671875, -0.04248046875, -0.029998779296875, 0.0288238525390625, -0.03759765625, -0.05914306640625, -0.0210418701171875, -0.0489501953125, -0.0308380126953125, 0.02593994140625, 0.0234222412109375, 0.04803466796875, -0.048614501953125, 0.013702392578125, -0.0012340545654296875, -0.047393798828125, 0.0092010498046875, -0.03460693359375, -0.03375244140625, 0.0026912689208984375, -0.03778076171875, 0.0215301513671875, 0.04974365234375, -0.007537841796875, 0.01200103759765625, -0.022216796875, -0.0172882080078125, -0.011932373046875, -0.0028820037841796875, 0.00557708740234375, -0.0261688232421875, -0.00244903564453125, -0.00732421875, -0.004055023193359375, -0.00787353515625, 0.0128936767578125, 0.043670654296875, -0.002727508544921875, 0.04376220703125, -0.007213592529296875, -0.0216064453125, -0.0016450881958007812, -0.039306640625, -0.01092529296875, 0.0195465087890625, -0.0160675048828125, -0.04632568359375, 0.007080078125, -0.046356201171875, 0.017791748046875, 0.00926971435546875 ]
1c8310d7a699362db6c7b1ebc88866356db220d0
Wordpress Stackexchange Q: replace wp_get_attachment_image with my own function How can I replace wp_get_attachment_image() function without changing the core files. The function doesnt have an action hook or a filter hook. What I am trying to achieve: for lazyload plugin output the image html like this: <img width="150" height="150" data-src="http://localhost/yxz/wp-content/uploads/2010/06/calliope.slide_-150x150.jpg" class="attachment-thumbnail" alt="calliope.slide" src="http://localhost/yxz/wp-content/uploads/blank.png"> instead of this: <img width="150" height="150" src="http://localhost/yxz/wp-content/uploads/2010/06/calliope.slide_-150x150.jpg" class="attachment-thumbnail" alt="calliope.slide"> A: There is a filter, wp_get_attachment_image_attributes, for the image attributes-- a well designed one too. function alter_att_attributes_wpse_102079($attr) { $attr['data-src'] = $attr['src']; return $attr; } add_filter( 'wp_get_attachment_image_attributes', 'alter_att_attributes_wpse_102079'); That will add the data-src attribute. That looks like what you need. You could add more attributes, or alter the existing onese, if you need.
Q: replace wp_get_attachment_image with my own function How can I replace wp_get_attachment_image() function without changing the core files. The function doesnt have an action hook or a filter hook. What I am trying to achieve: for lazyload plugin output the image html like this: <img width="150" height="150" data-src="http://localhost/yxz/wp-content/uploads/2010/06/calliope.slide_-150x150.jpg" class="attachment-thumbnail" alt="calliope.slide" src="http://localhost/yxz/wp-content/uploads/blank.png"> instead of this: <img width="150" height="150" src="http://localhost/yxz/wp-content/uploads/2010/06/calliope.slide_-150x150.jpg" class="attachment-thumbnail" alt="calliope.slide"> A: There is a filter, wp_get_attachment_image_attributes, for the image attributes-- a well designed one too. function alter_att_attributes_wpse_102079($attr) { $attr['data-src'] = $attr['src']; return $attr; } add_filter( 'wp_get_attachment_image_attributes', 'alter_att_attributes_wpse_102079'); That will add the data-src attribute. That looks like what you need. You could add more attributes, or alter the existing onese, if you need. A: You can create another function in your functions.php file and then use it instead of wp_get_attachment_image().
wordpress
{ "language": "en", "length": 129, "provenance": "stackexchange_00019.jsonl.gz:433252", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/102079" }
[ 0.07568359375, -0.0252838134765625, 0.00791168212890625, -0.0546875, 0.04052734375, -0.036529541015625, 0.0750732421875, 0.0258941650390625, 0.0155487060546875, 0.01108551025390625, -0.011749267578125, -0.01727294921875, -0.0167236328125, -0.029541015625, -0.0089874267578125, -0.04290771484375, 0.051422119140625, -0.00506591796875, 0.0452880859375, 0.0009374618530273438, 0.01032257080078125, 0.035858154296875, 0.0095062255859375, 0.07843017578125, 0.0038928985595703125, -0.007404327392578125, 0.060699462890625, -0.029541015625, 0.0010194778442382812, 0.0008053779602050781, 0.01123809814453125, -0.01134490966796875, 0.04779052734375, -0.00450897216796875, -0.057403564453125, 0.0243988037109375, -0.01258087158203125, -0.00885772705078125, -0.0306243896484375, 0.00980377197265625, 0.0308837890625, -0.0218048095703125, 0.012298583984375, 0.0249481201171875, -0.01030731201171875, -0.0288543701171875, 0.048614501953125, -0.03375244140625, 0.0533447265625, -0.01027679443359375, 0.0281219482421875, 0.03765869140625, 0.044525146484375, -0.021087646484375, -0.022308349609375, 0.005382537841796875, -0.06536865234375, 0.02264404296875, 0.008270263671875, 0.0189056396484375, 0.0196990966796875, 0.006473541259765625, 0.0081787109375, 0.01189422607421875, 0.0157623291015625, 0.0185089111328125, 0.004062652587890625, 0.0021457672119140625, -0.034210205078125, 0.0157012939453125, 0.0220947265625, -0.043701171875, -0.012054443359375, -0.01287078857421875, -0.0107879638671875, -0.0011997222900390625, 0.01019287109375, -0.0082855224609375, 0.01189422607421875, 0.004665374755859375, 0.059234619140625, -0.0221710205078125, -0.00960540771484375, 0.036956787109375, 0.01522064208984375, 0.05328369140625, 0.0062408447265625, -0.042633056640625, 0.0055389404296875, -0.0068206787109375, -0.0006003379821777344, -0.0107421875, 0.00057220458984375, 0.013946533203125, -0.0180206298828125, -0.0321044921875, -0.0179595947265625, -0.0017442703247070312, 0.0204620361328125, 0.034210205078125, 0.026885986328125, -0.046051025390625, 0.0352783203125, -0.027587890625, 0.004215240478515625, -0.004547119140625, -0.00040721893310546875, 0.03302001953125, 0.0357666015625, 0.03228759765625, -0.007080078125, 0.03790283203125, -0.01019287109375, 0.0258331298828125, -0.0242767333984375, -0.0019378662109375, -0.045196533203125, -0.002655029296875, -0.0465087890625, 0.0214385986328125, -0.028289794921875, -0.0231475830078125, -0.0001735687255859375, 0.007068634033203125, 0.0240325927734375, -0.003139495849609375, -0.0208587646484375, 0.0205230712890625, 0.0236968994140625, -0.0129241943359375, -0.0301055908203125, 0.04052734375, 0.04931640625, -0.009063720703125, 0.005329132080078125, -0.0037250518798828125, 0.0236968994140625, -0.0273895263671875, -0.0206756591796875, 0.04736328125, -0.0074615478515625, -0.03192138671875, -0.006992340087890625, -0.020355224609375, 0.01169586181640625, -0.0001817941665649414, -0.005527496337890625, 0.0182647705078125, 0.0122222900390625, -0.034088134765625, 0.0450439453125, -0.052276611328125, 0.0212554931640625, 0.010284423828125, 0.007099151611328125, 0.01047515869140625, 0.067138671875, -0.033447265625, -0.04132080078125, -0.03350830078125, 0.029083251953125, 0.01103973388671875, -0.0013980865478515625, 0.0089569091796875, -0.0127716064453125, -0.00960540771484375, -0.015869140625, -0.006084442138671875, 0.0250091552734375, 0.055267333984375, 0.0181121826171875, 0.01377105712890625, 0.005779266357421875, 0.0198516845703125, -0.00023126602172851562, -0.005702972412109375, -0.0377197265625, 0.06597900390625, 0.0267486572265625, 0.0009670257568359375, -0.0015659332275390625, -0.046722412109375, 0.11260986328125, -0.025177001953125, -0.0565185546875, 0.0280303955078125, -0.0086669921875, 0.042083740234375, 0.034515380859375, 0.01398468017578125, 0.01010894775390625, 0.0183563232421875, 0.0029659271240234375, -0.00585174560546875, -0.005107879638671875, -0.026031494140625, 0.006046295166015625, 0.0125885009765625, -0.0046844482421875, 0.01171112060546875, 0.04473876953125, -0.0021686553955078125, 0.005023956298828125, 0.0002548694610595703, -0.06988525390625, 0.016448974609375, -0.024169921875, 0.01168060302734375, -0.0538330078125, 0.031341552734375, 0.04052734375, 0.0312347412109375, -0.03839111328125, 0.00942230224609375, 0.044097900390625, -0.002933502197265625, -0.004852294921875, -0.00368499755859375, -0.0086669921875, 0.02752685546875, -0.01267242431640625, -0.02001953125, -0.0306549072265625, 0.0091094970703125, 0.0289154052734375, 0.0211944580078125, -0.027923583984375, -0.0028629302978515625, 0.00997161865234375, 0.01143646240234375, -0.0269317626953125, 0.0540771484375, 0.024749755859375, 0.038055419921875, -0.005107879638671875, -0.01513671875, -0.0386962890625, -0.109619140625, 0.00655364990234375, 0.054168701171875, 0.057891845703125, 0.0560302734375, 0.0399169921875, 0.0167236328125, 0.0994873046875, 0.019256591796875, 0.051513671875, -0.027435302734375, -0.004695892333984375, -0.0156402587890625, 0.00707244873046875, -0.032867431640625, 0.049163818359375, -0.06689453125, 0.0164642333984375, 0.04931640625, 0.0017080307006835938, 0.001834869384765625, -0.036407470703125, 0.01556396484375, 0.01535797119140625, 0.022979736328125, -0.020111083984375, 0.00827789306640625, 0.045440673828125, 0.0087890625, 0.0184173583984375, -0.005950927734375, -0.06243896484375, 0.037384033203125, 0.039337158203125, 0.0003037452697753906, -0.01824951171875, 0.036102294921875, 0.0012216567993164062, 0.032257080078125, -0.03466796875, 0.02264404296875, -0.03350830078125, 0.0194854736328125, 0.0045623779296875, 0.0307159423828125, 0.00643157958984375, -0.01374053955078125, -0.008148193359375, -0.0225067138671875, 0.01531219482421875, -0.01213836669921875, -0.0234832763671875, -0.025787353515625, 0.00959014892578125, -0.0008759498596191406, -0.019805908203125, 0.0175018310546875, 0.006717681884765625, -0.0203399658203125, 0.00841522216796875, -0.038177490234375, 0.030548095703125, -0.00902557373046875, 0.109375, 0.0826416015625, -0.004352569580078125, 0.04339599609375, -0.0276031494140625, 0.00878143310546875, -0.03289794921875, -0.004528045654296875, -0.0361328125, -0.0072021484375, -0.05291748046875, 0.01367950439453125, -0.0117645263671875, 0.0252532958984375, -0.045318603515625, -0.054779052734375, -0.036956787109375, -0.0243377685546875, -0.0672607421875, -0.062255859375, 0.0278778076171875, -0.0660400390625, -0.028045654296875, 0.0044708251953125, -0.042236328125, 0.0006837844848632812, 0.03485107421875, -0.004993438720703125, -0.017730712890625, 0.0111083984375, -0.02410888671875, 0.003376007080078125, -0.059539794921875, 0.0096282958984375, -0.007602691650390625, 0.0278472900390625, 0.0035915374755859375, -0.0178375244140625, -0.0005698204040527344, -0.0177764892578125, 0.0178070068359375, 0.051544189453125, 0.010467529296875, -0.0015077590942382812, 0.01253509521484375, -0.0164947509765625, -0.005157470703125, -0.006458282470703125, 0.0484619140625, 0.038543701171875, -0.03753662109375, 0.01163482666015625, -0.0236968994140625, 0.005947113037109375, 0.01439666748046875, 0.0169525146484375, 0.025665283203125, 0.019195556640625, 0.052001953125, -0.0232696533203125, -0.0166168212890625, -0.011627197265625, -0.029815673828125, 0.040374755859375, -0.0040283203125, 0.0014734268188476562, 0.01361846923828125, 0.03460693359375, 0.0035381317138671875, -0.01224517822265625, 0.057525634765625, -0.0264129638671875, 0.005962371826171875, -0.0257568359375, -0.031951904296875, -0.042572021484375, 0.03240966796875, 0.0004138946533203125, -0.0057373046875, 0.01409149169921875, 0.040985107421875, 0.0177764892578125, -0.007770538330078125, 0.007411956787109375, -0.054962158203125, 0.03729248046875, -0.0247955322265625, -0.0084686279296875, -0.0306549072265625, -0.015838623046875, 0.0028972625732421875, 0.06719970703125, -0.02740478515625, -0.0205841064453125, 0.00888824462890625, 0.0347900390625, -0.049163818359375, -0.0478515625, -0.0177764892578125, -0.0039825439453125, -0.087158203125, 0.007232666015625, -0.0004076957702636719, -0.01629638671875, 0.01108551025390625, -0.02703857421875, -0.02008056640625, -0.06890869140625, 0.02886962890625, 0.00342559814453125, -0.0203399658203125, 0.035980224609375, -0.05108642578125, 0.0377197265625, -0.0272369384765625, 0.0039520263671875, -0.1026611328125, -0.0168914794921875, -0.032684326171875, 0.09051513671875, -0.00711822509765625, 0.04473876953125, -0.035430908203125, 0.05084228515625, 0.016754150390625, -0.0036678314208984375, -0.01043701171875, -0.00431060791015625, -0.009979248046875, -0.0229949951171875, -0.0145111083984375, -0.0150909423828125, -0.035858154296875, -0.066162109375, -0.039215087890625, -0.041595458984375, -0.00572967529296875, 0.04241943359375, 0.0110626220703125, 0.007648468017578125, -0.026336669921875, -0.0294189453125, -0.03558349609375, 0.032806396484375, -0.008514404296875, -0.01073455810546875, -0.056304931640625, -0.051177978515625, 0.05224609375, 0.007007598876953125, -0.0085906982421875, -0.002498626708984375, 0.035888671875, 0.00991058349609375, -0.0283355712890625, -0.03277587890625, -0.0039043426513671875, 0.0201568603515625, -0.0237274169921875, 0.05548095703125, 0.0160369873046875, 0.01212310791015625, 0.045440673828125, -0.0242767333984375, 0.0458984375, -0.05108642578125, 0.035736083984375, 0.012725830078125, 0.01593017578125, 0.0125885009765625, 0.037445068359375, -0.0092010498046875, -0.022369384765625, -0.021820068359375, -0.0035552978515625, 0.033233642578125, 0.028289794921875, -0.02325439453125, 0.02923583984375, -0.0101470947265625, -0.018768310546875, 0.005298614501953125, 0.0093994140625, 0.02044677734375, 0.034912109375, -0.01282501220703125, -0.0041961669921875, -0.008880615234375, 0.01262664794921875, -0.0482177734375, 0.01514434814453125, -0.046142578125, 0.05670166015625, -0.032928466796875, -0.0155029296875, -0.039031982421875, -0.004047393798828125, -0.01464080810546875, 0.00789642333984375, -0.01508331298828125, -0.024932861328125, 0.01010894775390625, 0.005580902099609375, -0.0074920654296875, -0.045440673828125, 0.0306549072265625, 0.043304443359375, -0.0321044921875, -0.013916015625, -0.02532958984375, -0.0079345703125, -0.056640625, 0.02496337890625, 0.029754638671875, -0.016632080078125, 0.06787109375, -0.01108551025390625, 0.02178955078125, 0.01052093505859375, -0.0273284912109375, 0.0151214599609375, 0.0152740478515625, 0.0176239013671875, 0.01357269287109375, -0.0031070709228515625, -0.0233306884765625, 0.03741455078125, 0.018096923828125, -0.05780029296875, 0.004116058349609375, 0.0231475830078125, 0.08343505859375, -0.02813720703125, -0.04803466796875, 0.012054443359375, -0.04632568359375, 0.005283355712890625, 0.0345458984375, -0.0232086181640625, -0.0537109375, -0.03533935546875, 0.0229644775390625, 0.05609130859375, -0.030487060546875, -0.030731201171875, -0.007785797119140625, -0.0279541015625, -0.02398681640625, 0.00472259521484375, -0.06658935546875, 0.02655029296875, 0.035369873046875, -0.0203094482421875, -0.034637451171875, -0.044586181640625, 0.027618408203125, -0.0034885406494140625, -0.00012242794036865234, 0.0030155181884765625, 0.04205322265625, -0.013275146484375, 0.01491546630859375, -0.005786895751953125, -0.0254364013671875, -0.04949951171875, 0.0112457275390625, 0.0411376953125, 0.0164642333984375, -0.057220458984375, -0.0269012451171875, -0.00707244873046875, -0.00917816162109375, 0.003265380859375, -0.0008044242858886719, -0.041046142578125, 0.01788330078125, -0.0021457672119140625, 0.033660888671875, -0.0138092041015625, -0.026123046875, 0.043243408203125, -0.0082855224609375, -0.0177001953125, 0.03179931640625, -0.022705078125, 0.040435791015625, 0.01055908203125, 0.015655517578125, 0.005344390869140625, 0.019622802734375, -0.001003265380859375, -0.01033782958984375, -0.0171661376953125, -0.056732177734375, 0.0029754638671875, 0.0012998580932617188, -0.018341064453125, 0.056060791015625, 0.049041748046875, 0.015289306640625, 0.00756072998046875, -0.01177215576171875, -0.01451873779296875, -0.0467529296875, 0.03546142578125, -0.0174560546875, 0.047332763671875, -0.0330810546875, -0.050689697265625, -0.016082763671875, -0.002017974853515625, -0.004810333251953125, 0.032379150390625, -0.0289459228515625, 0.01175689697265625, 0.04534912109375, -0.01058197021484375, 0.0240478515625, 0.08233642578125, 0.0116424560546875, 0.0587158203125, 0.01436614990234375, 0.0225067138671875, 0.039794921875, 0.03955078125, -0.00016808509826660156, 0.0011653900146484375, 0.0814208984375, 0.0197601318359375, -0.035675048828125, 0.0521240234375, -0.038604736328125, 0.035675048828125, -0.0526123046875, 0.041839599609375, 0.04559326171875, 0.0221710205078125, 0.01043701171875, -0.0286102294921875, 0.0433349609375, 0.02520751953125, -0.0240020751953125, -0.035675048828125, -0.0012683868408203125, -0.0380859375, -0.0269622802734375, -0.017578125, 0.006526947021484375, -0.0012226104736328125, -0.027984619140625, -0.033782958984375, 0.003139495849609375, -0.019378662109375, -0.00275421142578125, 0.02520751953125, -0.008544921875, 0.006549835205078125, 0.032318115234375, -0.0428466796875, 0.0021152496337890625, -0.048553466796875, -0.035736083984375, 0.00725555419921875, -0.03704833984375, -0.0128631591796875, 0.02435302734375, 0.06707763671875, 0.0170440673828125, 0.0372314453125, -0.043548583984375, -0.0016994476318359375, 0.017242431640625, 0.02166748046875, -0.011932373046875, 0.0224761962890625, 0.054351806640625, -0.036865234375, 0.02069091796875, 0.0034427642822265625, 0.01197052001953125, -0.008209228515625, -0.01316070556640625, 0.046966552734375, 0.01299285888671875, -0.03094482421875, 0.0396728515625, 0.01554107666015625, -0.025146484375, 0.015777587890625, 0.0310821533203125, -0.037689208984375, -0.06756591796875, 0.01450347900390625, -0.08990478515625, -0.0173492431640625, -0.0135040283203125, -0.0614013671875, 0.0714111328125, 0.006671905517578125, 0.039276123046875, 0.0023822784423828125, 0.01302337646484375, -0.0038356781005859375, 0.00803375244140625, -0.02777099609375, 0.0305938720703125, -0.040924072265625, 0.016632080078125, -0.0248870849609375, 0.018798828125, -0.0079803466796875, -0.0001996755599975586, 0.044677734375, 0.0209503173828125, -0.04327392578125, -0.0186614990234375, 0.043853759765625, 0.0208892822265625, 0.0124053955078125, 0.04754638671875, -0.010223388671875, 0.0172119140625, 0.01995849609375, -0.06298828125, 0.006015777587890625, -0.026275634765625, 0.0097198486328125, 0.0269317626953125, 0.01788330078125, 0.025146484375, -0.0097503662109375, 0.0234375, -0.062408447265625, 0.01027679443359375, 0.044281005859375, -0.0160675048828125, -0.01397705078125, 0.0113677978515625, -0.0223236083984375, 0.004730224609375, -0.0290679931640625, -0.00527191162109375, 0.0064544677734375, 0.0009822845458984375, 0.01357269287109375, 0.050048828125, -0.0009546279907226562, 0.03338623046875, 0.0275115966796875, 0.00234222412109375, 0.019805908203125, 0.0411376953125, -0.033782958984375, -0.0257110595703125, 0.01239013671875, -0.03253173828125, 0.041900634765625, 0.035736083984375, -0.01166534423828125, -0.016265869140625, -0.0252227783203125, 0.0224151611328125, 0.0012569427490234375, -0.0103759765625, 0.009002685546875, 0.0343017578125, -0.08135986328125, -0.0528564453125, -0.0299224853515625, 0.00909423828125, 0.04693603515625, 0.051544189453125, -0.003040313720703125, -0.01184844970703125, -0.0611572265625, -0.0223846435546875, -0.025634765625, -0.0028018951416015625, 0.040863037109375, 0.04541015625, 0.0026836395263671875, 0.019989013671875, -0.01369476318359375, -0.01296234130859375, -0.00557708740234375, 0.0142974853515625, -0.03741455078125, 0.0307769775390625, -0.03997802734375, -0.040618896484375, -0.02362060546875, 0.042236328125, 0.04443359375, 0.00417327880859375, 0.042877197265625, 0.0017042160034179688, -0.052825927734375, 0.012969970703125, 0.0124664306640625, -0.0183258056640625, 0.05206298828125, -0.032684326171875, 0.051422119140625, 0.026885986328125, -0.00673675537109375, -0.04449462890625, -0.02984619140625, 0.08087158203125, -0.0266876220703125, 0.061981201171875, -0.01462554931640625, -0.0228271484375, 0.00563812255859375, -0.01120758056640625, 0.06329345703125, -0.000751495361328125, -0.068115234375, -0.01168060302734375, -0.04473876953125, -0.043609619140625, 0.04254150390625, 0.05645751953125, -0.024139404296875, 0.0178680419921875, -0.0213623046875, -0.0281524658203125, -0.007781982421875, 0.009796142578125, 0.0135498046875, -0.00868988037109375, -0.01363372802734375, -0.0236663818359375, -0.0023365020751953125, 0.00571441650390625, 0.018157958984375, 0.01108551025390625, 0.007080078125, 0.046966552734375, -0.01104736328125, 0.00969696044921875, -0.005718231201171875, 0.0190277099609375, -0.0313720703125, 0.0226593017578125, -0.033416748046875, -0.005542755126953125, 0.00786590576171875, -0.0137939453125, 0.00812530517578125, 0.00461578369140625, 0.02215576171875, -0.043914794921875, -0.00482940673828125, -0.01153564453125, 0.015655517578125, -0.008026123046875, 0.0278472900390625, -0.02008056640625, -0.02655029296875, -0.03546142578125, -0.0190887451171875, 0.0367431640625, -0.003742218017578125, -0.0052490234375, -0.022857666015625, 0.0303497314453125, -0.00434112548828125, 0.029266357421875, 0.0307769775390625, 0.0921630859375, 0.041656494140625, -0.0909423828125, -0.0077667236328125, 0.01015472412109375, -0.0292816162109375, 0.00704193115234375, -0.00907135009765625, 0.050018310546875, -0.0179595947265625, -0.0209503173828125, 0.01593017578125, 0.023284912109375, 0.0400390625, -0.022735595703125, 0.020172119140625, 0.01506805419921875, 0.00970458984375, -0.0068359375, -0.0038356781005859375, -0.0188751220703125, -0.032958984375, -0.017547607421875, -0.01396942138671875, -0.01187896728515625, -0.061309814453125, -0.0149688720703125, -0.0240631103515625, 0.07452392578125, 0.041656494140625, -0.0809326171875, 0.007526397705078125, 0.01337432861328125, 0.046478271484375, 0.031402587890625, -0.0390625, 0.0014286041259765625, 0.0259552001953125, -0.0225830078125, -0.052642822265625, -0.047149658203125, 0.03436279296875, -0.060302734375, 0.0282745361328125, 0.06121826171875, -0.03436279296875, -0.015838623046875, 0.045440673828125, 0.0218658447265625, 0.10650634765625, -0.049835205078125, -0.026611328125, -0.01346588134765625, 0.01361846923828125, -0.0274810791015625, -0.03228759765625, 0.01349639892578125, -0.01464080810546875, 0.001132965087890625, -0.0279998779296875, 0.001316070556640625, -0.01166534423828125, -0.04144287109375, -0.0277099609375, 0.047943115234375, -0.00933837890625, -0.0169219970703125, -0.026031494140625, 0.0174102783203125, -0.001476287841796875, 0.01247406005859375, 0.002197265625, -0.021148681640625, -0.00498199462890625, 0.036468505859375, 0.0284576416015625, 0.006717681884765625, 0.039764404296875, 0.01522064208984375, -0.02435302734375, 0.00510406494140625, 0.0008435249328613281, 0.01702880859375, 0.0044708251953125, 0.00003802776336669922, 0.0394287109375, 0.05535888671875, 0.006336212158203125, -0.0186920166015625, 0.0120849609375, -0.07037353515625, -0.001796722412109375, -0.0275115966796875, -0.024322509765625, 0.01108551025390625, 0.049346923828125, 0.054779052734375, 0.0125732421875, -0.045166015625, 0.0204315185546875, 0.0014095306396484375, -0.040283203125, -0.016876220703125, 0.0251922607421875, -0.07525634765625, -0.046356201171875, 0.004489898681640625, -0.0203704833984375, -0.028533935546875, 0.01300811767578125, -0.042388916015625, -0.01421356201171875, 0.012908935546875, 0.01302337646484375, -0.064453125, 0.015838623046875, 0.0228424072265625, -0.0318603515625, 0.00330352783203125, -0.0033779144287109375, -0.0035686492919921875, 0.0160675048828125, -0.002490997314453125, -0.0011053085327148438, 0.00247955322265625, 0.00286865234375, -0.0018024444580078125, 0.0279998779296875, 0.004375457763671875, 0.03338623046875, -0.01551055908203125, -0.0205535888671875, 0.0262603759765625, 0.01241302490234375, 0.0457763671875, -0.011566162109375, -0.006500244140625, 0.004058837890625, 0.0188751220703125, -0.029296875, -0.0025768280029296875, -0.0074920654296875, -0.025787353515625, -0.01885986328125, 0.0218048095703125, 0.0161285400390625, 0.00447845458984375, 0.0029468536376953125, 0.040740966796875, -0.0004341602325439453, -0.0032520294189453125, 0.01494598388671875, -0.052490234375, -0.01058197021484375, -0.00702667236328125 ]
26358c98d6f61be09d1194afa64ed7bd8af1f9be
Wordpress Stackexchange Q: Add class name to post thumbnail I'm using post thumbnails to link to a page. Is it possible to add a class name to the post thumbnail image. <li><a href="<?php the_permalink(); ?>" ><?php the_post_thumbnail(); ?></a></li> A: Yep - you can pass the class you want to use to the_post_thumbnail() as part of the attributes argument, for example <?php the_post_thumbnail('thumbnail', array('class' => 'your-class-name')); ?> Ref: http://codex.wordpress.org/Function_Reference/the_post_thumbnail#Styling_Post_Thumbnails
Q: Add class name to post thumbnail I'm using post thumbnails to link to a page. Is it possible to add a class name to the post thumbnail image. <li><a href="<?php the_permalink(); ?>" ><?php the_post_thumbnail(); ?></a></li> A: Yep - you can pass the class you want to use to the_post_thumbnail() as part of the attributes argument, for example <?php the_post_thumbnail('thumbnail', array('class' => 'your-class-name')); ?> Ref: http://codex.wordpress.org/Function_Reference/the_post_thumbnail#Styling_Post_Thumbnails A: You can filter those classes. function alter_attr_wpse_102158($attr) { remove_filter('wp_get_attachment_image_attributes','alter_attr_wpse_102158'); $attr['class'] .= ' new-class'; return $attr; } add_filter('wp_get_attachment_image_attributes','alter_attr_wpse_102158'); Add the filter just before you call the_post_thumbnail. The filter will remove itself automatically. It is a bit of trek to get there but the_post_thumbnail uses get_the_post_thumbnail which uses wp_get_attachment_image which applies that filter. A: For most images in my websites I add a figure element around the images like below. That way I keep everything intact and still get to call the element with a class in the CSS. <?php if ( has_post_thumbnail() ) { ?> <figure class="your-class"> <?php echo get_the_post_thumbnail(); ?> </figure> <?php } ?> A: May 2021 Tested and Working on WordPress 5.7 ✔ Default Default the_post_thumbnail() will output all the required attributes from WordPress. <?php the_post_thumbnail(); ?> <!-- DOM --> <img src="http://example.com/wp-content/uploads/2021/04/your-image-1500x800-1.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="" loading="lazy" srcset="http://example.com/wp-content/uploads/2021/04/your-image-1500x800-1.jpg 1500w, http://example.com/wp-content/uploads/2021/04/your-image-1500x800-1-300x160.jpg 300w, http://example.com/wp-content/uploads/2021/04/your-image-1500x800-1-1024x546.jpg 1024w, http://example.com/wp-content/uploads/2021/04/your-image-1500x800-1-768x410.jpg 768w" sizes="(max-width: 1500px) 100vw, 1500px" width="1500" height="800" > Using class array attrib. Using the class without $size parameter or the $size as thumbnail will remove the srcset attribute completely. Because why do your need responsive here when you size is only 150 x 150. <?php the_post_thumbnail(array('class' => 'classname')); ?> <?php the_post_thumbnail('thumbnail' array('class' => 'classname')); ?> <!-- DOM --> <img src="http://example.com/wp-content/uploads/2021/04/your-image-1500x800-1-150x150.jpg" class="classname wp-post-image" alt="" loading="lazy" width="150" height="150" > srcset will be available other than thumbnail. The available sizes are thumbnail, medium, large, full. Sizes can be adjusted in your WordPress 'Dashboard > Settings > Media' thumbnail: 150px medium: 300px large: 1024px full: Your original uploaded size Using the medium as size. <?php the_post_thumbnail('medium' array('class' => 'classname')); ?> <!-- DOM --> <img src="http://example.com/wp-content/uploads/2021/04/your-image-1500x800-1-300x160.jpg" class="classname img-fluid wp-post-image" alt="" loading="lazy" srcset="http://example.com/wp-content/uploads/2021/04/your-image-1500x800-1-300x160.jpg 300w, http://example.com/wp-content/uploads/2021/04/your-image-1500x800-1-1024x546.jpg 1024w, http://example.com/wp-content/uploads/2021/04/your-image-1500x800-1-768x410.jpg 768w, http://example.com/wp-content/uploads/2021/04/your-image-1500x800-1.jpg 1500w" sizes="(max-width: 300px) 100vw, 300px" width="300" height="160" > Using the function You can use function to include the class to the posts (function provided by @s_ha_dum). Iam adding bootstrap img-fluid here. Watchout! Read completely // using function to add class to `the_post_thumbnail()` function alter_attr_wpse_102158($attr) { remove_filter('wp_get_attachment_image_attributes','alter_attr_wpse_102158'); $attr['class'] .= ' img-fluid'; return $attr; } add_filter('wp_get_attachment_image_attributes','alter_attr_wpse_102158'); Notice the bootstrap class img-fluid is added to the class attribute. <?php the_post_thumbnail(); ?> <!-- DOM --> <img src="http://example.com/wp-content/uploads/2021/04/your-image-1500x800-1.jpg" class="attachment-post-thumbnail size-post-thumbnail img-fluid wp-post-image" alt="" loading="lazy" srcset="http://example.com/wp-content/uploads/2021/04/your-image-1500x800-1.jpg 1500w, http://example.com/wp-content/uploads/2021/04/your-image-1500x800-1-300x160.jpg 300w, http://example.com/wp-content/uploads/2021/04/your-image-1500x800-1-1024x546.jpg 1024w, http://example.com/wp-content/uploads/2021/04/your-image-1500x800-1-768x410.jpg 768w" sizes="(max-width: 1500px) 100vw, 1500px" width="1500" height="800" > function class disappeared on the 2nd post When using function, the class works only on the first post and it disappeared on the second one. Use the class directly on the the_post_thumbnail() <?php the_post_thumbnail('full' array('class' => 'img-fluid')); ?> Remember the srcset attribute is useless for the thumbnail.
wordpress
{ "language": "en", "length": 486, "provenance": "stackexchange_00019.jsonl.gz:433277", "question_score": "26", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/102158" }
[ 0.0909423828125, 0.005680084228515625, 0.06292724609375, -0.0012369155883789062, 0.02642822265625, -0.033477783203125, 0.099365234375, -0.0621337890625, -0.032501220703125, 0.00443267822265625, -0.01552581787109375, 0.039215087890625, -0.005924224853515625, -0.03179931640625, 0.04205322265625, -0.01457977294921875, 0.04608154296875, 0.008880615234375, 0.06732177734375, 0.01776123046875, 0.01299285888671875, 0.05126953125, 0.05865478515625, 0.00537872314453125, 0.0224609375, 0.0084381103515625, 0.07513427734375, -0.032745361328125, 0.0234832763671875, -0.0040740966796875, 0.02874755859375, -0.037841796875, 0.007541656494140625, 0.0202484130859375, 0.017120361328125, 0.034759521484375, 0.041748046875, -0.009368896484375, 0.0290374755859375, 0.0296478271484375, 0.02142333984375, -0.00830841064453125, -0.017364501953125, 0.0308380126953125, -0.0232391357421875, 0.0035858154296875, -0.026123046875, -0.045928955078125, 0.0133056640625, -0.053009033203125, 0.021820068359375, 0.0125885009765625, 0.0325927734375, -0.05584716796875, -0.018524169921875, 0.02093505859375, -0.061553955078125, 0.054473876953125, 0.0352783203125, 0.00319671630859375, -0.04180908203125, -0.0179595947265625, 0.00803375244140625, -0.0313720703125, -0.0198516845703125, -0.01233673095703125, -0.017974853515625, 0.000514984130859375, -0.02032470703125, -0.012847900390625, 0.03375244140625, -0.0066070556640625, -0.01099395751953125, -0.06158447265625, 0.00909423828125, 0.0234222412109375, -0.005340576171875, -0.0194854736328125, -0.0135955810546875, 0.00867462158203125, 0.04022216796875, -0.005245208740234375, -0.007732391357421875, 0.005645751953125, 0.0241546630859375, 0.035247802734375, 0.00766754150390625, -0.034423828125, 0.00304412841796875, -0.04046630859375, -0.01290130615234375, -0.04534912109375, -0.01218414306640625, 0.031402587890625, -0.004688262939453125, -0.03369140625, 0.023101806640625, 0.04742431640625, -0.00208282470703125, 0.007061004638671875, -0.00405120849609375, -0.045684814453125, 0.0184173583984375, -0.042510986328125, -0.0218505859375, 0.00911712646484375, 0.024688720703125, 0.044219970703125, 0.01044464111328125, 0.041290283203125, -0.0139923095703125, -0.012725830078125, 0.01493072509765625, -0.0091705322265625, -0.0285797119140625, -0.0130767822265625, -0.037811279296875, 0.0182647705078125, 0.00571441650390625, -0.00824737548828125, 0.01397705078125, 0.0142974853515625, 0.0199127197265625, -0.00177001953125, 0.01543426513671875, 0.031707763671875, -0.00922393798828125, -0.057098388671875, 0.0238189697265625, -0.0131988525390625, -0.038360595703125, 0.020660400390625, 0.0295562744140625, 0.0228424072265625, 0.00910186767578125, -0.0055389404296875, 0.01125335693359375, -0.043731689453125, -0.023681640625, 0.033905029296875, -0.011688232421875, -0.03363037109375, -0.00098419189453125, -0.022735595703125, 0.04339599609375, 0.0240478515625, 0.004547119140625, 0.014404296875, 0.02069091796875, -0.04388427734375, 0.057037353515625, -0.059234619140625, 0.006717681884765625, 0.032012939453125, 0.0176239013671875, 0.0001277923583984375, 0.048431396484375, -0.04022216796875, 0.0032501220703125, -0.030609130859375, 0.038970947265625, 0.001224517822265625, 0.0111236572265625, 0.02069091796875, -0.0011997222900390625, 0.004817962646484375, -0.0577392578125, -0.006229400634765625, 0.0169677734375, -0.03070068359375, 0.0073089599609375, 0.0074920654296875, 0.0261993408203125, -0.005748748779296875, -0.00247955322265625, -0.0034236907958984375, 0.033172607421875, -0.00568389892578125, 0.0273284912109375, 0.020416259765625, -0.023895263671875, -0.024139404296875, 0.047088623046875, -0.039215087890625, -0.011566162109375, -0.0239715576171875, 0.026947021484375, 0.0194549560546875, -0.01277923583984375, 0.0269012451171875, 0.01485443115234375, 0.0138397216796875, -0.06427001953125, 0.0183868408203125, 0.0016651153564453125, -0.01389312744140625, -0.035858154296875, -0.0115966796875, -0.0011167526245117188, 0.01678466796875, 0.0171661376953125, 0.014739990234375, -0.0193328857421875, 0.00937652587890625, -0.043243408203125, 0.00951385498046875, -0.00327301025390625, 0.027099609375, -0.025787353515625, 0.003505706787109375, 0.01120758056640625, -0.01788330078125, 0.008636474609375, -0.0706787109375, -0.016265869140625, 0.03857421875, -0.01525115966796875, -0.033782958984375, -0.0172576904296875, -0.0028858184814453125, -0.026336669921875, -0.00926971435546875, -0.05181884765625, 0.00687408447265625, 0.01276397705078125, 0.009918212890625, -0.04681396484375, -0.005680084228515625, -0.06829833984375, 0.029388427734375, -0.08477783203125, 0.046783447265625, -0.0144500732421875, 0.00677490234375, -0.01480865478515625, -0.00927734375, -0.00315093994140625, -0.0491943359375, 0.029022216796875, 0.034698486328125, 0.030242919921875, 0.039215087890625, 0.0013275146484375, 0.0015277862548828125, 0.07586669921875, 0.04046630859375, 0.04461669921875, -0.03472900390625, -0.030670166015625, -0.003082275390625, 0.0380859375, 0.01508331298828125, 0.012420654296875, -0.0212860107421875, -0.018096923828125, 0.045501708984375, 0.0022106170654296875, 0.00579071044921875, -0.019561767578125, 0.028961181640625, -0.00385284423828125, 0.032958984375, 0.0103302001953125, -0.0120086669921875, 0.024871826171875, 0.00878143310546875, 0.01690673828125, -0.0008606910705566406, -0.00872039794921875, 0.0177001953125, 0.007965087890625, -0.04888916015625, -0.0027294158935546875, 0.04058837890625, 0.0173797607421875, 0.00818634033203125, -0.0285491943359375, -0.019683837890625, 0.026580810546875, 0.0219268798828125, -0.016265869140625, -0.0028972625732421875, 0.0136260986328125, 0.0066680908203125, -0.027435302734375, -0.056915283203125, 0.055999755859375, 0.046600341796875, -0.052490234375, -0.049224853515625, 0.00014400482177734375, 0.01702880859375, -0.036590576171875, 0.0184783935546875, -0.0030879974365234375, -0.015899658203125, 0.0034942626953125, 0.00804901123046875, 0.0309295654296875, -0.02142333984375, 0.0071563720703125, 0.04931640625, -0.0474853515625, 0.05078125, 0.004123687744140625, -0.00716400146484375, -0.0103607177734375, -0.0011625289916992188, -0.0127105712890625, -0.028167724609375, -0.01776123046875, 0.041015625, 0.017852783203125, 0.10858154296875, -0.035919189453125, -0.062347412109375, 0.0078582763671875, 0.032379150390625, -0.045135498046875, -0.0518798828125, -0.0010280609130859375, -0.0640869140625, 0.00417327880859375, 0.0134124755859375, -0.042388916015625, -0.0102386474609375, 0.0479736328125, 0.004505157470703125, -0.0092010498046875, 0.0018367767333984375, -0.01229095458984375, -0.0250396728515625, -0.046051025390625, -0.015106201171875, -0.00047850608825683594, 0.0253448486328125, 0.00826263427734375, 0.015960693359375, -0.00896453857421875, -0.0294952392578125, 0.003406524658203125, 0.024871826171875, 0.0024738311767578125, -0.0189208984375, -0.0026607513427734375, -0.01251983642578125, -0.02081298828125, -0.0051727294921875, 0.03369140625, 0.0308074951171875, -0.0278778076171875, 0.020721435546875, -0.0212249755859375, 0.0063323974609375, -0.001140594482421875, 0.05609130859375, 0.038543701171875, 0.021636962890625, 0.0258026123046875, -0.040802001953125, -0.02880859375, -0.0208892822265625, -0.045166015625, -0.02679443359375, 0.0226593017578125, 0.01399993896484375, -0.04052734375, 0.0255889892578125, -0.0065460205078125, 0.01287078857421875, -0.003063201904296875, -0.0249176025390625, 0.041778564453125, 0.0002073049545288086, 0.017059326171875, -0.002132415771484375, -0.033721923828125, -0.03375244140625, 0.048828125, -0.0203857421875, 0.0014562606811523438, -0.03350830078125, 0.04791259765625, -0.07098388671875, -0.04193115234375, 0.037811279296875, -0.052764892578125, 0.0204620361328125, -0.05322265625, -0.033203125, 0.0027294158935546875, 0.103759765625, -0.01568603515625, -0.034454345703125, -0.0309906005859375, 0.0050201416015625, -0.0162811279296875, -0.0248260498046875, 0.00917816162109375, -0.01580810546875, -0.09185791015625, -0.01033782958984375, -0.0082855224609375, -0.05645751953125, -0.014404296875, 0.0183258056640625, -0.06317138671875, -0.02056884765625, 0.0204315185546875, -0.006649017333984375, -0.0171661376953125, 0.056640625, -0.0250701904296875, 0.0535888671875, -0.02044677734375, -0.01116180419921875, -0.1097412109375, -0.0234527587890625, -0.0182647705078125, 0.10491943359375, -0.00531768798828125, -0.004749298095703125, -0.03924560546875, 0.05426025390625, 0.00687408447265625, 0.030303955078125, 0.0071868896484375, 0.00855255126953125, 0.0116424560546875, 0.0235137939453125, 0.027496337890625, -0.00331878662109375, 0.03875732421875, -0.01018524169921875, -0.0517578125, -0.0078582763671875, -0.0604248046875, 0.0223388671875, -0.01261138916015625, -0.050567626953125, -0.01474761962890625, -0.0044403076171875, 0.059722900390625, 0.0517578125, 0.0006794929504394531, 0.035919189453125, -0.02239990234375, -0.00914764404296875, 0.0228424072265625, 0.00794219970703125, -0.015289306640625, 0.0210418701171875, 0.049957275390625, 0.01309967041015625, -0.0212860107421875, -0.09332275390625, 0.035064697265625, 0.01375579833984375, -0.042816162109375, 0.0689697265625, 0.020172119140625, 0.005954742431640625, 0.0259246826171875, -0.0243377685546875, 0.003711700439453125, -0.03326416015625, 0.07177734375, -0.0053253173828125, -0.0129547119140625, 0.01340484619140625, -0.022125244140625, 0.027008056640625, 0.0107879638671875, -0.012603759765625, -0.0275421142578125, -0.007503509521484375, 0.0301361083984375, -0.0016956329345703125, 0.03582763671875, -0.023101806640625, -0.0292205810546875, 0.0133514404296875, -0.040740966796875, 0.031524658203125, 0.033905029296875, -0.0215911865234375, 0.0146636962890625, 0.003631591796875, 0.0153350830078125, 0.0139923095703125, -0.003879547119140625, 0.0187835693359375, 0.03564453125, 0.012481689453125, 0.0169677734375, -0.005153656005859375, -0.002727508544921875, 0.06488037109375, 0.03509521484375, -0.0272674560546875, -0.0009431838989257812, -0.00823211669921875, 0.0210418701171875, -0.018707275390625, -0.0122833251953125, 0.045166015625, 0.01580810546875, 0.0005507469177246094, -0.0201263427734375, -0.0703125, 0.00785064697265625, -0.038848876953125, 0.06085205078125, 0.03411865234375, 0.0001246929168701172, 0.037445068359375, 0.006134033203125, 0.0628662109375, 0.00566864013671875, -0.028106689453125, 0.0233306884765625, 0.004756927490234375, 0.038970947265625, 0.0277557373046875, -0.033782958984375, -0.019927978515625, 0.030731201171875, -0.0233612060546875, -0.0235443115234375, 0.0015659332275390625, 0.0222015380859375, 0.055908203125, -0.01361846923828125, -0.01456451416015625, 0.006866455078125, -0.037689208984375, -0.0211334228515625, -0.0135040283203125, 0.0160369873046875, -0.0037136077880859375, -0.0057830810546875, 0.01314544677734375, 0.00933837890625, 0.034942626953125, -0.01971435546875, 0.00646209716796875, 0.0203094482421875, 0.02154541015625, -0.02606201171875, -0.0149383544921875, 0.0216217041015625, 0.0198822021484375, -0.0081329345703125, -0.0160369873046875, -0.032867431640625, 0.028167724609375, -0.00044536590576171875, -0.0166473388671875, -0.03973388671875, 0.044342041015625, -0.0197601318359375, 0.0748291015625, -0.035125732421875, -0.031707763671875, -0.0286407470703125, 0.007198333740234375, 0.01519775390625, 0.0195465087890625, -0.0279541015625, -0.01251983642578125, -0.0631103515625, -0.006763458251953125, -0.0077667236328125, -0.015533447265625, -0.0167694091796875, 0.0025005340576171875, -0.0012950897216796875, 0.0020580291748046875, -0.01134490966796875, 0.00461578369140625, -0.0202789306640625, 0.02294921875, 0.01373291015625, -0.006473541259765625, -0.015289306640625, 0.061676025390625, 0.005092620849609375, 0.057342529296875, 0.018218994140625, 0.0032749176025390625, -0.01526641845703125, -0.018310546875, 0.0038433074951171875, -0.037994384765625, -0.032196044921875, 0.0318603515625, -0.06256103515625, -0.00518035888671875, 0.04150390625, -0.01052093505859375, -0.01380157470703125, -0.016326904296875, -0.0003139972686767578, -0.0219879150390625, 0.0199737548828125, -0.016387939453125, -0.037017822265625, 0.017608642578125, 0.007965087890625, 0.08453369140625, -0.03240966796875, -0.00214385986328125, -0.0021915435791015625, -0.038726806640625, 0.0101776123046875, 0.043487548828125, -0.008819580078125, 0.031524658203125, 0.06732177734375, 0.0002567768096923828, 0.038848876953125, 0.02825927734375, 0.00269317626953125, 0.00942230224609375, 0.005672454833984375, 0.02520751953125, 0.01226043701171875, 0.09674072265625, 0.0218048095703125, -0.02105712890625, 0.04791259765625, -0.045867919921875, 0.022613525390625, -0.0240936279296875, 0.048797607421875, 0.0089874267578125, 0.0263671875, 0.01456451416015625, -0.0321044921875, 0.05841064453125, 0.0279388427734375, 0.016632080078125, 0.04425048828125, 0.042510986328125, -0.0772705078125, -0.0085906982421875, 0.037811279296875, -0.0243988037109375, -0.01435089111328125, -0.0010585784912109375, -0.00788116455078125, 0.006206512451171875, -0.06915283203125, -0.0047454833984375, 0.060760498046875, -0.0299072265625, -0.019775390625, -0.0147705078125, -0.00536346435546875, -0.00540924072265625, -0.02349853515625, 0.0210113525390625, -0.05584716796875, 0.04241943359375, 0.0220184326171875, 0.0130462646484375, 0.0289306640625, 0.02783203125, 0.01409149169921875, 0.007602691650390625, 0.002368927001953125, -0.00897979736328125, 0.00884246826171875, -0.006893157958984375, 0.0196685791015625, 0.006771087646484375, -0.05316162109375, 0.016448974609375, -0.03515625, -0.0131683349609375, 0.0033054351806640625, 0.004673004150390625, 0.07635498046875, -0.051483154296875, -0.0201568603515625, 0.021087646484375, 0.0025806427001953125, 0.0021610260009765625, -0.006046295166015625, 0.0213165283203125, -0.0269317626953125, 0.0018243789672851562, -0.006412506103515625, -0.004528045654296875, 0.0099945068359375, -0.02532958984375, -0.055633544921875, 0.082275390625, -0.024444580078125, 0.022216796875, 0.019866943359375, 0.040008544921875, -0.01090240478515625, 0.0097198486328125, -0.01192474365234375, 0.04425048828125, -0.0312042236328125, 0.0252532958984375, -0.04241943359375, 0.00035572052001953125, 0.01389312744140625, 0.0198516845703125, 0.020172119140625, 0.005687713623046875, -0.056976318359375, -0.0156707763671875, 0.055938720703125, 0.05267333984375, 0.032928466796875, 0.0284271240234375, 0.0006809234619140625, 0.008331298828125, 0.0081787109375, -0.0025844573974609375, 0.0278778076171875, -0.0025806427001953125, -0.041748046875, 0.0218658447265625, -0.004734039306640625, -0.01023101806640625, 0.0177459716796875, -0.0002334117889404297, -0.029449462890625, 0.001983642578125, 0.03570556640625, -0.06414794921875, 0.01441192626953125, 0.056060791015625, 0.0185546875, 0.01519775390625, -0.08514404296875, -0.00536346435546875, 0.031524658203125, 0.0057830810546875, 0.0208282470703125, 0.0179901123046875, 0.007198333740234375, 0.0126190185546875, 0.01332855224609375, 0.0151519775390625, 0.0269622802734375, -0.00959014892578125, 0.058380126953125, 0.0458984375, 0.01708984375, -0.036651611328125, -0.0204010009765625, 0.034393310546875, 0.07489013671875, -0.052093505859375, 0.006175994873046875, 0.0123291015625, 0.017974853515625, 0.009857177734375, -0.05596923828125, -0.0158538818359375, -0.060394287109375, -0.03363037109375, -0.0245208740234375, -0.0031642913818359375, 0.033416748046875, 0.03192138671875, 0.00940704345703125, 0.004001617431640625, -0.0653076171875, -0.0184478759765625, -0.0263671875, 0.01012420654296875, 0.022216796875, 0.0445556640625, 0.00029921531677246094, 0.0498046875, -0.02032470703125, -0.011932373046875, -0.01284027099609375, 0.0142364501953125, 0.0019969940185546875, 0.017547607421875, -0.0014829635620117188, 0.0008015632629394531, 0.01410675048828125, 0.02105712890625, 0.02667236328125, 0.0224609375, 0.039398193359375, 0.0421142578125, -0.0035400390625, -0.006923675537109375, -0.008453369140625, -0.0247802734375, 0.0545654296875, -0.00998687744140625, 0.04052734375, 0.01007843017578125, -0.0263519287109375, -0.021697998046875, 0.0141143798828125, 0.04168701171875, -0.042022705078125, 0.0174407958984375, -0.00506591796875, -0.034637451171875, 0.036376953125, 0.0006499290466308594, 0.06988525390625, -0.01178741455078125, -0.0592041015625, -0.00970458984375, 0.018463134765625, -0.07415771484375, 0.031829833984375, 0.046661376953125, -0.04888916015625, 0.0095672607421875, 0.027984619140625, -0.01461029052734375, 0.017852783203125, -0.0009064674377441406, 0.0110931396484375, -0.0007352828979492188, 0.0234832763671875, 0.020782470703125, -0.03680419921875, -0.0236968994140625, -0.0309600830078125, 0.045989990234375, 0.037506103515625, 0.039947509765625, -0.018768310546875, 0.03973388671875, -0.02130126953125, -0.0026798248291015625, -0.00628662109375, -0.013153076171875, 0.0211639404296875, 0.01331329345703125, 0.0041351318359375, -0.01166534423828125, -0.0096282958984375, 0.0228118896484375, 0.04443359375, -0.0262603759765625, -0.01453399658203125, 0.0228118896484375, 0.00917816162109375, -0.01324462890625, 0.036468505859375, -0.027984619140625, 0.0001481771469116211, -0.0292510986328125, -0.03289794921875, 0.024627685546875, -0.016876220703125, 0.0188446044921875, 0.0138092041015625, 0.038116455078125, -0.006580352783203125, 0.039398193359375, 0.0005388259887695312, 0.0701904296875, 0.0379638671875, -0.035858154296875, -0.07611083984375, 0.007381439208984375, 0.0030994415283203125, -0.01386260986328125, 0.00975799560546875, 0.043304443359375, 0.03424072265625, -0.05584716796875, 0.0004048347473144531, 0.018951416015625, 0.032958984375, -0.01171112060546875, 0.01561737060546875, 0.00972747802734375, -0.0096435546875, -0.0178985595703125, 0.00395965576171875, -0.044189453125, -0.09344482421875, 0.0186004638671875, 0.0279388427734375, -0.059356689453125, 0.0010175704956054688, -0.08636474609375, -0.00908660888671875, 0.042083740234375, 0.015777587890625, -0.036041259765625, 0.019195556640625, 0.00896453857421875, 0.00839996337890625, -0.00188446044921875, -0.054779052734375, 0.025360107421875, 0.0404052734375, -0.02001953125, -0.03924560546875, -0.03289794921875, -0.0025959014892578125, -0.04693603515625, 0.05511474609375, 0.055999755859375, -0.061859130859375, 0.01540374755859375, 0.07012939453125, 0.048095703125, 0.10992431640625, -0.01380157470703125, -0.03302001953125, 0.005764007568359375, -0.0031986236572265625, 0.0041046142578125, -0.081298828125, -0.004154205322265625, -0.07574462890625, 0.0142822265625, 0.0204010009765625, -0.03375244140625, -0.01049041748046875, -0.03289794921875, -0.04742431640625, 0.078125, 0.002002716064453125, -0.033172607421875, -0.01410675048828125, 0.0009059906005859375, -0.020904541015625, 0.01715087890625, 0.0008893013000488281, -0.0015630722045898438, 0.00855255126953125, 0.031585693359375, 0.0132293701171875, 0.02239990234375, 0.02362060546875, 0.0175933837890625, 0.01020050048828125, 0.018646240234375, 0.013763427734375, 0.0006656646728515625, 0.01593017578125, -0.013580322265625, 0.032501220703125, 0.048431396484375, -0.042694091796875, -0.02545166015625, -0.011138916015625, 0.01494598388671875, -0.00415802001953125, -0.0399169921875, -0.03240966796875, -0.03826904296875, 0.049468994140625, 0.00299835205078125, 0.0149993896484375, 0.013824462890625, -0.0103759765625, -0.0250091552734375, -0.039520263671875, 0.01197052001953125, 0.014495849609375, -0.03948974609375, 0.005298614501953125, 0.00995635986328125, 0.0183563232421875, 0.019256591796875, 0.00730133056640625, -0.0009427070617675781, -0.0003864765167236328, 0.0296783447265625, 0.007099151611328125, -0.058074951171875, 0.00806427001953125, 0.048370361328125, -0.0293426513671875, 0.025299072265625, -0.021240234375, 0.017242431640625, 0.036895751953125, -0.01514434814453125, 0.007137298583984375, -0.008758544921875, 0.0012750625610351562, 0.0274810791015625, 0.00516510009765625, -0.0005125999450683594, -0.01450347900390625, 0.0008745193481445312, -0.030487060546875, 0.026031494140625, 0.021148681640625, 0.0350341796875, -0.0277862548828125, 0.0200042724609375, 0.01953125, 0.020538330078125, 0.00785064697265625, -0.01151275634765625, 0.0164642333984375, 0.03070068359375, -0.0206298828125, -0.0182952880859375, 0.0063934326171875, -0.060577392578125, 0.0003094673156738281, -0.0089569091796875, -0.003963470458984375, -0.049530029296875, 0.0225677490234375, -0.0193023681640625, -0.0168914794921875, 0.030487060546875 ]
74d0cbf55cb12d6f2be40149877b7e361f6fff31
Wordpress Stackexchange Q: Declaratively Configuring Wordpress in XML or JSON or YAML Couldn't find this on Google... Is there any handy way of fully (or partially) configuring a Wordpress site (plugins and all) using XML/JSON/YAML/etc? In general, I'm looking for a highly-readable, declarative way of setting up Wordpress and to minimize having to deal with PHP. A: I created a build script using Phing which has an XML based configure syntax (build.properties), which is based on Apache Ant (Java). It currently supports: Installing WordPress and DB Installing any plugins and themes from external urls (zip or gzip format) Adding config details like site title, login name/pass, email (more can be added if your write php) Adding custom detials to run or during install (must be written in php or phing syntax). + more stuff It's not really a "config" file that you are probably looking for since it is run from the command line and requires phing to be installed and not directly read from WordPress, but it sure makes installing faster. You can also have a look at : https://github.com/newsapps/wp-project-tools https://github.com/romainberger/yeoman-wordpress
Q: Declaratively Configuring Wordpress in XML or JSON or YAML Couldn't find this on Google... Is there any handy way of fully (or partially) configuring a Wordpress site (plugins and all) using XML/JSON/YAML/etc? In general, I'm looking for a highly-readable, declarative way of setting up Wordpress and to minimize having to deal with PHP. A: I created a build script using Phing which has an XML based configure syntax (build.properties), which is based on Apache Ant (Java). It currently supports: Installing WordPress and DB Installing any plugins and themes from external urls (zip or gzip format) Adding config details like site title, login name/pass, email (more can be added if your write php) Adding custom detials to run or during install (must be written in php or phing syntax). + more stuff It's not really a "config" file that you are probably looking for since it is run from the command line and requires phing to be installed and not directly read from WordPress, but it sure makes installing faster. You can also have a look at : https://github.com/newsapps/wp-project-tools https://github.com/romainberger/yeoman-wordpress A: If you are looking for something like Joomla's templateDetails.xml, for example (but possibly more elaborate), there is nothing built in like that that I have ever seen. There might be plugins that allow that kind of configuration, but not any that I can name. What configuration you can do is by defining some constants in wp-config.php but that is PHP, and you can't install/activate plugins that way, or themes.
wordpress
{ "language": "en", "length": 250, "provenance": "stackexchange_00019.jsonl.gz:433281", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/102176" }
[ -0.007785797119140625, -0.038543701171875, 0.0026111602783203125, -0.028106689453125, -0.042877197265625, 0.006725311279296875, -0.033935546875, -0.00923919677734375, -0.0230712890625, 0.00015056133270263672, -0.006099700927734375, 0.00991058349609375, -0.0241241455078125, -0.0270538330078125, 0.0265350341796875, -0.036895751953125, 0.002033233642578125, 0.01006317138671875, -0.0023708343505859375, -0.0311126708984375, 0.00989532470703125, -0.03485107421875, 0.01079559326171875, 0.058563232421875, 0.038177490234375, -0.0225677490234375, 0.07177734375, 0.004741668701171875, 0.040679931640625, 0.0116424560546875, 0.0499267578125, -0.0654296875, 0.00229644775390625, 0.06280517578125, -0.044647216796875, 0.019561767578125, -0.0175933837890625, 0.02777099609375, 0.0194244384765625, 0.019683837890625, 0.023284912109375, -0.00859832763671875, 0.0276947021484375, 0.03509521484375, -0.0014553070068359375, -0.0241546630859375, 0.0175323486328125, -0.036346435546875, 0.0016164779663085938, -0.05169677734375, -0.027008056640625, 0.0269775390625, 0.002841949462890625, -0.044921875, -0.0007672309875488281, 0.01074981689453125, 0.0098114013671875, -0.0072479248046875, 0.027099609375, 0.0017862319946289062, -0.031951904296875, -0.01111602783203125, 0.023895263671875, -0.00931549072265625, -0.004913330078125, -0.00832366943359375, -0.022186279296875, 0.003231048583984375, -0.032196044921875, 0.0043182373046875, 0.034942626953125, -0.0338134765625, -0.035797119140625, -0.04095458984375, -0.01305389404296875, 0.054168701171875, 0.005390167236328125, -0.0226898193359375, 0.005374908447265625, -0.00044846534729003906, 0.0310516357421875, 0.0029773712158203125, 0.026214599609375, -0.046783447265625, 0.034942626953125, -0.0183563232421875, 0.0078277587890625, -0.00034999847412109375, -0.006450653076171875, -0.0234832763671875, -0.01068878173828125, 0.0203399658203125, -0.071533203125, 0.0176849365234375, 0.0013914108276367188, -0.02276611328125, -0.02520751953125, -0.01291656494140625, 0.00211334228515625, 0.0306396484375, 0.02716064453125, -0.03564453125, 0.07666015625, -0.033050537109375, -0.008575439453125, 0.044189453125, -0.005794525146484375, 0.04736328125, 0.03228759765625, 0.031829833984375, 0.0071258544921875, -0.0165863037109375, -0.006191253662109375, -0.0316162109375, 0.002674102783203125, 0.040130615234375, -0.003612518310546875, 0.0209197998046875, 0.0008320808410644531, 0.0124664306640625, -0.005695343017578125, 0.00984954833984375, 0.0005650520324707031, 0.0170745849609375, -0.00782012939453125, -0.0014905929565429688, -0.002086639404296875, -0.0106658935546875, -0.0504150390625, 0.0072479248046875, -0.01447296142578125, 0.04595947265625, 0.050079345703125, 0.0215911865234375, -0.03472900390625, 0.00030875205993652344, 0.01049041748046875, -0.01291656494140625, -0.00701904296875, -0.0008497238159179688, -0.004917144775390625, 0.0205841064453125, 0.052398681640625, -0.036224365234375, -0.023834228515625, 0.016326904296875, 0.00919342041015625, 0.01459503173828125, 0.0007333755493164062, -0.041839599609375, -0.00342559814453125, -0.0149383544921875, -0.007114410400390625, 0.02203369140625, 0.06793212890625, -0.0204315185546875, 0.02838134765625, -0.022064208984375, 0.045623779296875, -0.00641632080078125, -0.0251922607421875, -0.004833221435546875, 0.0268707275390625, -0.00885772705078125, -0.007732391357421875, 0.0151824951171875, 0.00959014892578125, 0.017822265625, 0.006404876708984375, -0.0489501953125, 0.025543212890625, 0.004482269287109375, 0.0252838134765625, -0.036376953125, 0.00626373291015625, -0.0013484954833984375, 0.0074310302734375, 0.0253753662109375, 0.0024738311767578125, 0.03961181640625, 0.0284881591796875, -0.0231781005859375, 0.059478759765625, -0.0159759521484375, -0.05926513671875, 0.00986480712890625, 0.01149749755859375, 0.037109375, 0.032379150390625, 0.00168609619140625, 0.0509033203125, -0.0076751708984375, -0.038299560546875, 0.0318603515625, -0.0044708251953125, -0.041107177734375, 0.013702392578125, 0.0019626617431640625, -0.004634857177734375, -0.0272064208984375, 0.0020599365234375, -0.004497528076171875, -0.00023806095123291016, 0.0201873779296875, 0.02008056640625, -0.02880859375, 0.01983642578125, -0.0210418701171875, 0.0035419464111328125, -0.0018167495727539062, 0.01103973388671875, -0.0214080810546875, 0.028564453125, -0.0640869140625, -0.033660888671875, 0.0282135009765625, -0.0147705078125, 0.0693359375, 0.0026226043701171875, 0.04248046875, -0.01119232177734375, -0.02227783203125, 0.01035308837890625, -0.00030994415283203125, 0.038970947265625, -0.01403045654296875, 0.0007100105285644531, -0.02008056640625, 0.03570556640625, 0.004817962646484375, 0.0028553009033203125, 0.0162811279296875, 0.003269195556640625, -0.0016908645629882812, -0.01306915283203125, -0.0008087158203125, 0.00028443336486816406, -0.062225341796875, 0.005519866943359375, 0.049468994140625, 0.005138397216796875, -0.0009164810180664062, -0.036865234375, 0.0080108642578125, 0.032379150390625, -0.0007328987121582031, 0.0159759521484375, 0.00569915771484375, -0.00905609130859375, 0.002178192138671875, -0.027313232421875, -0.005023956298828125, 0.0266265869140625, -0.054443359375, -0.004993438720703125, 0.0270843505859375, -0.0257110595703125, -0.03668212890625, 0.0133056640625, -0.00751495361328125, 0.005153656005859375, 0.01345062255859375, -0.017486572265625, 0.0030364990234375, 0.024749755859375, 0.0210723876953125, 0.0640869140625, 0.06494140625, 0.0010204315185546875, -0.007534027099609375, 0.002666473388671875, 0.0301513671875, -0.00032830238342285156, -0.016510009765625, 0.01605224609375, 0.0131378173828125, -0.037353515625, 0.0042266845703125, 0.01904296875, -0.0130157470703125, -0.02972412109375, -0.01641845703125, -0.003154754638671875, -0.0002999305725097656, -0.0017232894897460938, -0.0709228515625, 0.037872314453125, 0.03466796875, -0.047088623046875, 0.0158233642578125, 0.0180511474609375, 0.0333251953125, -0.0226287841796875, 0.01531982421875, -0.0005712509155273438, 0.01352691650390625, 0.01641845703125, -0.03497314453125, 0.017242431640625, -0.0111236572265625, 0.037689208984375, 0.05450439453125, 0.0035228729248046875, -0.01134490966796875, -0.0169525146484375, 0.01311492919921875, -0.016815185546875, 0.00749969482421875, -0.023284912109375, -0.01132965087890625, -0.0692138671875, -0.0225677490234375, 0.0177764892578125, 0.0372314453125, 0.01165008544921875, -0.03857421875, -0.01540374755859375, 0.034942626953125, -0.0517578125, -0.060394287109375, 0.0186309814453125, -0.05633544921875, 0.046234130859375, -0.0237274169921875, -0.0111846923828125, -0.04241943359375, 0.0004410743713378906, 0.00795745849609375, -0.006252288818359375, -0.08154296875, -0.05804443359375, -0.1019287109375, -0.1038818359375, -0.0272979736328125, 0.017852783203125, 0.022979736328125, -0.0045318603515625, 0.026885986328125, 0.00653076171875, -0.058258056640625, 0.00672149658203125, 0.00954437255859375, -0.019927978515625, 0.0018682479858398438, 0.005725860595703125, -0.01212310791015625, 0.01529693603515625, 0.005008697509765625, 0.0821533203125, 0.0247802734375, -0.03570556640625, -0.014678955078125, -0.01210784912109375, 0.0229034423828125, 0.002376556396484375, -0.0298919677734375, 0.0148773193359375, -0.005962371826171875, -0.0496826171875, -0.06622314453125, 0.0014066696166992188, 0.0006208419799804688, -0.0224761962890625, 0.0276336669921875, 0.007495880126953125, -0.0234375, 0.01378631591796875, -0.0018053054809570312, -0.0196685791015625, 0.00563812255859375, 0.0491943359375, -0.026214599609375, -0.020751953125, -0.032196044921875, -0.0439453125, -0.0301666259765625, 0.0152130126953125, -0.0401611328125, -0.024200439453125, -0.01407623291015625, -0.0139007568359375, -0.01097869873046875, -0.035400390625, -0.05157470703125, -0.063720703125, 0.048919677734375, 0.00406646728515625, 0.0128631591796875, -0.026580810546875, -0.035400390625, -0.00019061565399169922, 0.08013916015625, 0.005401611328125, -0.00852203369140625, 0.03497314453125, 0.01080322265625, -0.051116943359375, 0.0066680908203125, -0.0821533203125, 0.004791259765625, -0.0826416015625, -0.0127410888671875, -0.0241241455078125, -0.026031494140625, 0.02740478515625, -0.041961669921875, -0.0251312255859375, -0.061981201171875, 0.0085906982421875, 0.038970947265625, 0.01514434814453125, -0.00972747802734375, 0.012115478515625, -0.0265655517578125, 0.01364898681640625, -0.005069732666015625, -0.071044921875, -0.039886474609375, 0.0007710456848144531, 0.08294677734375, 0.01568603515625, -0.0244293212890625, -0.0274658203125, 0.042144775390625, -0.0211181640625, -0.020263671875, 0.01013946533203125, 0.0118408203125, 0.01351165771484375, -0.003543853759765625, -0.018768310546875, -0.0256805419921875, -0.01593017578125, 0.00916290283203125, 0.0029315948486328125, 0.0194549560546875, 0.00214385986328125, -0.04559326171875, 0.046051025390625, -0.0386962890625, -0.042236328125, -0.01509857177734375, -0.0279998779296875, -0.00833892822265625, -0.0248565673828125, -0.01222991943359375, -0.01104736328125, -0.0282440185546875, 0.07330322265625, -0.035980224609375, 0.0189208984375, -0.006290435791015625, 0.1441650390625, -0.00021469593048095703, -0.001750946044921875, -0.04266357421875, 0.0171051025390625, 0.031463623046875, -0.0147705078125, 0.048583984375, 0.029144287109375, -0.004718780517578125, 0.0178070068359375, -0.0017309188842773438, 0.00290679931640625, 0.039337158203125, 0.0156097412109375, 0.014892578125, -0.015533447265625, 0.015716552734375, 0.032135009765625, -0.04193115234375, -0.006153106689453125, 0.00476837158203125, -0.006252288818359375, 0.01885986328125, -0.001781463623046875, 0.01556396484375, -0.016693115234375, -0.011505126953125, -0.039764404296875, 0.014495849609375, 0.005283355712890625, 0.004199981689453125, -0.00803375244140625, 0.0002391338348388672, 0.0005588531494140625, -0.00222015380859375, 0.0018138885498046875, 0.0217742919921875, 0.039398193359375, 0.037628173828125, 0.036865234375, 0.044097900390625, 0.0248260498046875, -0.038818359375, -0.027374267578125, 0.0751953125, 0.008697509765625, -0.05426025390625, 0.0245513916015625, -0.025634765625, 0.0357666015625, 0.003448486328125, -0.0413818359375, 0.0609130859375, 0.033935546875, -0.015625, -0.0013074874877929688, -0.073974609375, 0.0038356781005859375, -0.06982421875, -0.059722900390625, -0.01062774658203125, -0.01355743408203125, 0.048675537109375, 0.019683837890625, 0.027130126953125, 0.0277862548828125, -0.037689208984375, 0.02655029296875, 0.039520263671875, 0.005779266357421875, 0.0026988983154296875, 0.0064697265625, -0.0038604736328125, -0.0271453857421875, 0.023162841796875, -0.01959228515625, -0.01543426513671875, 0.004184722900390625, 0.03448486328125, -0.0306396484375, -0.01898193359375, 0.024017333984375, -0.0276031494140625, 0.01355743408203125, -0.01149749755859375, -0.0258026123046875, -0.01477813720703125, 0.004421234130859375, 0.008026123046875, 0.008697509765625, -0.015625, -0.00033593177795410156, 0.020477294921875, -0.006885528564453125, 0.00850677490234375, 0.017364501953125, -0.03387451171875, -0.0074462890625, 0.0188751220703125, -0.0312347412109375, -0.00844573974609375, 0.007965087890625, -0.07550048828125, -0.01497650146484375, 0.003490447998046875, -0.030792236328125, -0.0020008087158203125, -0.0232391357421875, 0.02978515625, -0.0193634033203125, -0.00028705596923828125, -0.0240325927734375, -0.0043487548828125, 0.057403564453125, 0.03143310546875, -0.0213470458984375, 0.0074920654296875, -0.039794921875, -0.03826904296875, -0.04815673828125, -0.04669189453125, -0.0648193359375, -0.0031375885009765625, 0.01654052734375, 0.0013742446899414062, 0.002716064453125, 0.0087738037109375, 0.0078277587890625, 0.06304931640625, 0.00324249267578125, 0.061676025390625, 0.023895263671875, 0.06866455078125, -0.06817626953125, 0.05047607421875, -0.01432037353515625, 0.015289306640625, -0.04705810546875, 0.007720947265625, 0.037139892578125, -0.033050537109375, -0.0540771484375, -0.050384521484375, -0.0087432861328125, 0.01448822021484375, 0.034210205078125, -0.0136871337890625, -0.002471923828125, -0.02642822265625, -0.016082763671875, -0.0166168212890625, 0.0513916015625, -0.009796142578125, -0.013763427734375, 0.0271148681640625, -0.02313232421875, 0.0146484375, 0.01519012451171875, -0.0193634033203125, 0.003406524658203125, 0.006282806396484375, 0.0018625259399414062, 0.021514892578125, -0.034942626953125, 0.052490234375, 0.062347412109375, 0.0014600753784179688, 0.036895751953125, 0.032806396484375, 0.01540374755859375, -0.01088714599609375, 0.01617431640625, -0.047454833984375, -0.0230560302734375, 0.035675048828125, 0.0225067138671875, -0.00917816162109375, 0.04547119140625, -0.021240234375, 0.028045654296875, 0.01116943359375, 0.0634765625, -0.043853759765625, 0.01488494873046875, 0.00641632080078125, -0.0204315185546875, 0.0300445556640625, 0.01212310791015625, -0.020538330078125, -0.033660888671875, -0.006801605224609375, -0.014801025390625, -0.0148162841796875, -0.00848388671875, 0.008941650390625, -0.01393890380859375, -0.01617431640625, 0.041473388671875, 0.0186309814453125, -0.01157379150390625, -0.004024505615234375, 0.0035247802734375, 0.0266876220703125, 0.037445068359375, 0.002017974853515625, -0.003910064697265625, -0.03662109375, -0.058624267578125, -0.0404052734375, -0.0318603515625, -0.04864501953125, -0.01285552978515625, -0.010833740234375, -0.0148773193359375, 0.0384521484375, -0.034912109375, -0.0007243156433105469, 0.022979736328125, -0.040863037109375, 0.0300750732421875, 0.0024662017822265625, 0.0015163421630859375, 0.0218963623046875, 0.0012664794921875, -0.0008044242858886719, -0.0078125, -0.008270263671875, 0.0005440711975097656, 0.036224365234375, 0.1011962890625, -0.03826904296875, -0.01983642578125, 0.04119873046875, 0.01873779296875, -0.0308990478515625, -0.00815582275390625, 0.0165252685546875, -0.03863525390625, -0.03558349609375, 0.00400543212890625, -0.047393798828125, -0.01409912109375, -0.002193450927734375, -0.02685546875, 0.11737060546875, -0.02001953125, -0.0160980224609375, -0.006221771240234375, 0.06988525390625, -0.00629425048828125, 0.057952880859375, -0.005870819091796875, 0.0277252197265625, -0.01617431640625, 0.041259765625, -0.020263671875, 0.0021114349365234375, 0.0224456787109375, 0.03204345703125, -0.002277374267578125, -0.0053558349609375, -0.061492919921875, 0.0068206787109375, 0.06500244140625, 0.00946807861328125, 0.024810791015625, 0.0740966796875, 0.0006337165832519531, 0.036865234375, 0.0165863037109375, -0.041412353515625, 0.032623291015625, -0.031463623046875, -0.0220184326171875, 0.004741668701171875, 0.001979827880859375, -0.0033397674560546875, 0.0223236083984375, 0.050689697265625, -0.048431396484375, 0.004146575927734375, 0.044036865234375, -0.0287017822265625, 0.0151824951171875, 0.006595611572265625, -0.00244140625, -0.0084075927734375, -0.028350830078125, -0.0010528564453125, 0.0199737548828125, -0.015045166015625, 0.00879669189453125, -0.0041656494140625, 0.0155181884765625, -0.01186370849609375, -0.03240966796875, -0.006931304931640625, -0.004150390625, -0.038055419921875, 0.0262603759765625, 0.046417236328125, 0.0199737548828125, -0.0122222900390625, -0.01438140869140625, 0.045440673828125, 0.047821044921875, -0.0166473388671875, -0.042816162109375, -0.00699615478515625, -0.0016527175903320312, 0.036834716796875, 0.0119781494140625, 0.0535888671875, 0.02301025390625, 0.0272216796875, 0.0017576217651367188, 0.01641845703125, 0.01485443115234375, 0.00006777048110961914, 0.01163482666015625, 0.0291900634765625, -0.04168701171875, 0.031982421875, -0.0007615089416503906, 0.0008497238159179688, -0.0016222000122070312, 0.039276123046875, 0.0002567768096923828, 0.06610107421875, -0.060516357421875, -0.00635528564453125, 0.0030517578125, 0.00757598876953125, 0.0169219970703125, -0.01171875, -0.0113067626953125, -0.042388916015625, 0.02093505859375, 0.0276031494140625, -0.0185089111328125, 0.032684326171875, 0.0595703125, 0.09222412109375, -0.00978851318359375, -0.0224609375, 0.07861328125, -0.0003833770751953125, -0.046661376953125, -0.00799560546875, 0.0013751983642578125, 0.01934814453125, 0.005367279052734375, 0.004932403564453125, 0.092041015625, -0.01430511474609375, -0.02899169921875, 0.04705810546875, -0.0037899017333984375, -0.0001685619354248047, 0.0289764404296875, -0.024383544921875, 0.041839599609375, -0.01209259033203125, -0.0290679931640625, -0.014923095703125, 0.00975799560546875, -0.01226806640625, -0.0288848876953125, 0.01953125, 0.00299072265625, 0.006214141845703125, -0.0129547119140625, -0.019195556640625, 0.0203704833984375, -0.0032176971435546875, -0.007595062255859375, 0.01410675048828125, 0.020599365234375, -0.020904541015625, -0.0091094970703125, -0.021087646484375, -0.03350830078125, 0.055511474609375, 0.0164337158203125, 0.09405517578125, -0.038848876953125, 0.025299072265625, -0.044219970703125, -0.045928955078125, 0.03643798828125, -0.033111572265625, 0.002288818359375, 0.050048828125, -0.006343841552734375, -0.0243072509765625, 0.01082611083984375, 0.0211334228515625, 0.0152587890625, -0.04510498046875, -0.007053375244140625, -0.049468994140625, 0.0169525146484375, 0.00403594970703125, 0.011566162109375, -0.0261077880859375, -0.08599853515625, -0.060699462890625, 0.0276336669921875, -0.010467529296875, 0.0175323486328125, -0.0216064453125, 0.0163421630859375, 0.03155517578125, -0.00926971435546875, 0.0092926025390625, -0.0008234977722167969, 0.01436614990234375, 0.0245513916015625, 0.0258636474609375, -0.07745361328125, 0.01102447509765625, -0.0104827880859375, -0.0633544921875, 0.0406494140625, 0.0254364013671875, -0.00798797607421875, -0.03289794921875, -0.01154327392578125, 0.048187255859375, 0.045654296875, -0.016021728515625, 0.045074462890625, 0.0230560302734375, -0.0214080810546875, 0.0309600830078125, -0.0204010009765625, -0.028839111328125, -0.036346435546875, -0.026397705078125, -0.0008521080017089844, -0.039215087890625, -0.07989501953125, -0.045745849609375, -0.015472412109375, 0.0052337646484375, -0.0062713623046875, 0.003662109375, 0.0037631988525390625, -0.01038360595703125, -0.005489349365234375, -0.00013935565948486328, -0.0250091552734375, -0.0266571044921875, -0.0301055908203125, -0.0267333984375, -0.07427978515625, -0.055328369140625, 0.06512451171875, -0.04449462890625, 0.039794921875, 0.052825927734375, -0.032806396484375, -0.0176544189453125, 0.027740478515625, 0.0229339599609375, 0.0770263671875, 0.004055023193359375, -0.007537841796875, 0.0210723876953125, 0.002094268798828125, -0.0295562744140625, -0.103271484375, -0.0101165771484375, -0.06500244140625, 0.0171051025390625, -0.0055694580078125, -0.0228118896484375, -0.01316070556640625, -0.0767822265625, -0.11871337890625, 0.07293701171875, -0.0261077880859375, -0.042755126953125, -0.049468994140625, 0.00765228271484375, -0.00199127197265625, -0.0179443359375, -0.03228759765625, -0.0221710205078125, -0.026092529296875, 0.04620361328125, -0.017486572265625, 0.0224761962890625, -0.0025463104248046875, 0.0260467529296875, 0.004909515380859375, 0.0283050537109375, 0.00666046142578125, -0.043792724609375, 0.021942138671875, -0.004573822021484375, 0.020843505859375, 0.04742431640625, -0.0206451416015625, -0.034454345703125, -0.0277557373046875, -0.033355712890625, -0.0289764404296875, 0.004665374755859375, -0.0229949951171875, -0.00205230712890625, 0.0626220703125, 0.073486328125, 0.0087738037109375, -0.03326416015625, -0.00391387939453125, -0.007625579833984375, 0.01122283935546875, -0.0243072509765625, 0.002651214599609375, -0.0526123046875, -0.021026611328125, -0.017303466796875, 0.004955291748046875, 0.0149078369140625, -0.031768798828125, -0.013031005859375, -0.008636474609375, 0.006160736083984375, -0.00774383544921875, -0.0031108856201171875, -0.00261688232421875, 0.0677490234375, -0.0312042236328125, 0.0305023193359375, -0.0037841796875, 0.010986328125, 0.046630859375, 0.0218048095703125, -0.007534027099609375, 0.0032672882080078125, -0.022125244140625, 0.019134521484375, 0.003787994384765625, 0.0389404296875, -0.016510009765625, -0.0073089599609375, -0.0084381103515625, 0.0157318115234375, 0.004467010498046875, 0.0211944580078125, -0.0283966064453125, 0.0206451416015625, 0.0117340087890625, 0.042999267578125, 0.0010633468627929688, -0.06207275390625, -0.039794921875, 0.040191650390625, -0.0187225341796875, -0.0194854736328125, 0.005950927734375, -0.040924072265625, -0.0081634521484375, -0.0015077590942382812, 0.00676727294921875, -0.04534912109375, 0.0181427001953125, -0.00623321533203125, 0.0007386207580566406, 0.0166778564453125 ]
5ab26bf97cd3c2aa13e92b9545f454569e9605fe
Wordpress Stackexchange Q: Import JSON feed to Wordpress We have received a URL which is a JSON file apparently: http://www.domain.com/tools/export-json/?destination=hawaii I am completely clueless when it comes to JSON and Wordpress. Anybody know where to start? We will need to create individual posts from this JSON file I presume.. A: * *json_decode the JSON into an array. $slices = json_decode(file_get_contents('yourJSONFile.json'),true); *Loop into the data if ($slices) { foreach ($slices as $slice) { $title = $slice[1]; // insert more logic here } } *Create a post programmatically by using wp_insert_post. // Create post object $my_post = array( 'post_title' => $title, 'post_content' => 'This is my content', 'post_status' => 'publish', 'post_author' => 1, 'post_category' => array(8,39) ); // Insert the post into the database and return the new post ID $post_id = wp_insert_post( $my_post, true ); if ( is_wp_error( $post_id ) ) { // error handling.... } More details in this tutorial: http://tommcfarlin.com/programmatically-create-a-post-in-wordpress/
Q: Import JSON feed to Wordpress We have received a URL which is a JSON file apparently: http://www.domain.com/tools/export-json/?destination=hawaii I am completely clueless when it comes to JSON and Wordpress. Anybody know where to start? We will need to create individual posts from this JSON file I presume.. A: * *json_decode the JSON into an array. $slices = json_decode(file_get_contents('yourJSONFile.json'),true); *Loop into the data if ($slices) { foreach ($slices as $slice) { $title = $slice[1]; // insert more logic here } } *Create a post programmatically by using wp_insert_post. // Create post object $my_post = array( 'post_title' => $title, 'post_content' => 'This is my content', 'post_status' => 'publish', 'post_author' => 1, 'post_category' => array(8,39) ); // Insert the post into the database and return the new post ID $post_id = wp_insert_post( $my_post, true ); if ( is_wp_error( $post_id ) ) { // error handling.... } More details in this tutorial: http://tommcfarlin.com/programmatically-create-a-post-in-wordpress/
wordpress
{ "language": "en", "length": 149, "provenance": "stackexchange_00019.jsonl.gz:433314", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/102277" }
[ 0.07574462890625, 0.0059814453125, -0.01287078857421875, -0.048065185546875, 0.022491455078125, -0.047088623046875, 0.040618896484375, -0.00937652587890625, -0.0445556640625, -0.00618743896484375, -0.0268707275390625, -0.00423431396484375, -0.0278778076171875, -0.03338623046875, 0.0142059326171875, -0.071533203125, 0.041168212890625, -0.0021266937255859375, 0.0291595458984375, 0.004146575927734375, 0.00653076171875, 0.02178955078125, 0.009307861328125, 0.046905517578125, 0.01416778564453125, 0.022796630859375, 0.048187255859375, -0.0186614990234375, 0.0294036865234375, 0.0156402587890625, 0.02655029296875, -0.04339599609375, 0.00833892822265625, 0.037689208984375, -0.044921875, 0.00931549072265625, 0.0028820037841796875, 0.0196685791015625, 0.0002810955047607422, 0.043548583984375, 0.01000213623046875, -0.00002658367156982422, 0.06640625, 0.025054931640625, 0.0038299560546875, -0.02764892578125, 0.019775390625, -0.04248046875, 0.00759124755859375, 0.013824462890625, 0.0157928466796875, 0.0261383056640625, 0.0220794677734375, 0.013702392578125, -0.005306243896484375, 0.0028076171875, -0.01035308837890625, 0.02734375, 0.056396484375, -0.00843048095703125, -0.0633544921875, -0.01192474365234375, 0.00412750244140625, -0.04791259765625, 0.052642822265625, -0.01557159423828125, 0.0166473388671875, 0.037994384765625, -0.036865234375, 0.0538330078125, 0.02423095703125, -0.03448486328125, -0.003620147705078125, -0.03338623046875, 0.0020275115966796875, 0.0003705024719238281, 0.00030040740966796875, -0.01202392578125, -0.002056121826171875, 0.019989013671875, -0.0012578964233398438, -0.006954193115234375, 0.00748443603515625, -0.044708251953125, 0.029632568359375, -0.0186767578125, -0.0137481689453125, -0.0037326812744140625, -0.029937744140625, -0.0163116455078125, -0.01471710205078125, -0.033233642578125, -0.04351806640625, 0.03436279296875, -0.00360870361328125, 0.00119781494140625, -0.03741455078125, -0.01221466064453125, -0.0287017822265625, 0.034332275390625, 0.018157958984375, -0.0343017578125, 0.08807373046875, -0.034912109375, 0.0238800048828125, 0.0007352828979492188, -0.02618408203125, -0.082275390625, 0.036712646484375, 0.028045654296875, -0.0316162109375, 0.07427978515625, -0.010711669921875, -0.010833740234375, -0.03485107421875, 0.020477294921875, -0.0205535888671875, -0.00855255126953125, -0.00670623779296875, 0.004291534423828125, -0.01446533203125, -0.0007319450378417969, -0.030120849609375, 0.034210205078125, 0.023651123046875, 0.01331329345703125, -0.0002918243408203125, 0.006053924560546875, -0.0194244384765625, -0.00553131103515625, -0.04296875, 0.038177490234375, 0.0941162109375, 0.0275115966796875, 0.01201629638671875, -0.002079010009765625, -0.02740478515625, -0.029510498046875, -0.0218048095703125, -0.004241943359375, 0.015716552734375, -0.011077880859375, 0.03143310546875, 0.0091094970703125, -0.01206207275390625, 0.01483917236328125, -0.0019817352294921875, 0.017242431640625, 0.007129669189453125, -0.0103759765625, -0.03076171875, -0.025909423828125, 0.02130126953125, 0.00782012939453125, 0.0232696533203125, -0.0261077880859375, 0.03277587890625, -0.048187255859375, 0.0128936767578125, -0.048065185546875, 0.020660400390625, 0.01079559326171875, 0.045196533203125, -0.031524658203125, -0.04541015625, -0.006114959716796875, -0.071533203125, -0.023529052734375, 0.0185394287109375, 0.061767578125, -0.028900146484375, -0.0176849365234375, -0.0022735595703125, -0.01715087890625, -0.034454345703125, -0.00748443603515625, -0.018707275390625, -0.07965087890625, 0.036041259765625, 0.049102783203125, 0.004444122314453125, -0.0039520263671875, -0.03289794921875, 0.0330810546875, -0.0283050537109375, 0.060028076171875, 0.03350830078125, 0.09503173828125, -0.01288604736328125, 0.0270538330078125, -0.003353118896484375, 0.04681396484375, -0.0088348388671875, 0.00835418701171875, -0.0254974365234375, -0.046295166015625, 0.0192413330078125, 0.00005793571472167969, -0.013885498046875, 0.01459503173828125, -0.030914306640625, 0.01337432861328125, -0.0237274169921875, 0.04754638671875, -0.0133209228515625, -0.023590087890625, -0.0023632049560546875, 0.01210784912109375, 0.003047943115234375, 0.025390625, 0.026031494140625, -0.00527191162109375, 0.00511932373046875, -0.04443359375, -0.0113525390625, 0.0325927734375, -0.022430419921875, -0.0096282958984375, -0.032440185546875, 0.02532958984375, -0.059814453125, -0.0047607421875, -0.04266357421875, 0.019561767578125, 0.06817626953125, -0.0164947509765625, -0.0100555419921875, -0.03466796875, 0.0201263427734375, 0.01678466796875, -0.071533203125, 0.0236968994140625, 0.037384033203125, -0.0116424560546875, -0.0302276611328125, 0.0012664794921875, 0.002323150634765625, -0.059234619140625, -0.0079193115234375, 0.0718994140625, 0.0244140625, 0.032257080078125, -0.007335662841796875, -0.00710296630859375, 0.052703857421875, -0.006534576416015625, 0.021759033203125, -0.0233154296875, 0.018646240234375, 0.0660400390625, -0.0572509765625, 0.0160064697265625, 0.0178680419921875, -0.10064697265625, -0.00518035888671875, 0.05810546875, -0.036407470703125, -0.022125244140625, 0.02337646484375, -0.010009765625, 0.0140533447265625, 0.007099151611328125, 0.016754150390625, -0.0086669921875, 0.039276123046875, 0.021575927734375, 0.066162109375, 0.049102783203125, 0.004642486572265625, 0.00600433349609375, -0.027435302734375, -0.0345458984375, 0.01055145263671875, 0.0251922607421875, 0.018341064453125, 0.02618408203125, -0.054473876953125, 0.003726959228515625, 0.04150390625, 0.0174560546875, -0.006092071533203125, 0.021484375, -0.0175628662109375, -0.01171112060546875, 0.004364013671875, -0.0316162109375, -0.005153656005859375, 0.0005855560302734375, -0.0026226043701171875, -0.00904083251953125, 0.005107879638671875, 0.03485107421875, -0.01442718505859375, 0.032867431640625, 0.00804901123046875, -0.0024280548095703125, 0.0927734375, -0.0246124267578125, 0.0170440673828125, -0.0132598876953125, 0.023406982421875, 0.037750244140625, -0.0015697479248046875, 0.002292633056640625, -0.011962890625, 0.0137176513671875, -0.029205322265625, 0.00012993812561035156, -0.0201873779296875, -0.047454833984375, 0.004222869873046875, 0.03802490234375, 0.015045166015625, 0.06201171875, 0.006885528564453125, -0.03594970703125, 0.035400390625, 0.031219482421875, -0.061126708984375, -0.11553955078125, 0.004573822021484375, -0.080078125, 0.00461578369140625, -0.01165771484375, -0.050384521484375, -0.0139923095703125, 0.0146636962890625, 0.0130615234375, 0.001277923583984375, -0.018707275390625, -0.033721923828125, -0.0216827392578125, -0.06866455078125, 0.0172576904296875, 0.007160186767578125, 0.016510009765625, 0.00897979736328125, 0.0035305023193359375, 0.017059326171875, 0.005260467529296875, 0.008636474609375, 0.08294677734375, -0.028106689453125, -0.06854248046875, -0.0036449432373046875, 0.006290435791015625, 0.007358551025390625, 0.00502777099609375, 0.0230865478515625, 0.03875732421875, -0.039642333984375, 0.010589599609375, -0.026458740234375, 0.0258331298828125, -0.019012451171875, 0.01629638671875, 0.04638671875, 0.00861358642578125, -0.022552490234375, -0.032867431640625, -0.00643157958984375, -0.01067352294921875, -0.03143310546875, 0.0018520355224609375, 0.007785797119140625, 0.00739288330078125, -0.0227203369140625, 0.0257720947265625, -0.01690673828125, -0.0189971923828125, 0.0233917236328125, -0.02459716796875, 0.01456451416015625, -0.0273590087890625, -0.027618408203125, -0.024810791015625, 0.048858642578125, -0.005924224853515625, -0.03997802734375, -0.0014705657958984375, -0.00312042236328125, -0.02825927734375, 0.0067596435546875, -0.06768798828125, -0.072265625, 0.036895751953125, -0.00928497314453125, 0.00859832763671875, -0.0279998779296875, -0.0234832763671875, 0.004055023193359375, 0.058990478515625, -0.0215606689453125, 0.005733489990234375, -0.005123138427734375, -0.010345458984375, -0.0299072265625, -0.0124664306640625, -0.081787109375, 0.0052947998046875, 0.002414703369140625, 0.0007848739624023438, -0.0330810546875, 0.0036182403564453125, -0.01049041748046875, -0.012908935546875, 0.022003173828125, -0.033294677734375, 0.01776123046875, -0.052215576171875, 0.0201568603515625, 0.00128936767578125, 0.002185821533203125, -0.0220184326171875, -0.01062774658203125, -0.04071044921875, -0.0999755859375, -0.00027179718017578125, -0.03173828125, 0.039703369140625, -0.00052642822265625, 0.0012388229370117188, -0.0306396484375, 0.0311126708984375, -0.04052734375, 0.003574371337890625, -0.031402587890625, 0.0290374755859375, -0.0219573974609375, 0.0248260498046875, -0.022491455078125, 0.0021686553955078125, -0.032379150390625, -0.0433349609375, -0.01715087890625, 0.03472900390625, 0.0038909912109375, 0.0460205078125, -0.005222320556640625, 0.014068603515625, -0.0567626953125, -0.038604736328125, -0.0191192626953125, 0.044219970703125, -0.01861572265625, 0.007770538330078125, -0.06390380859375, -0.06396484375, 0.044769287109375, -0.0304107666015625, -0.0166473388671875, 0.0167236328125, 0.08935546875, 0.01229095458984375, -0.010223388671875, -0.0841064453125, -0.0128631591796875, 0.0124359130859375, 0.01031494140625, 0.04345703125, 0.00029850006103515625, 0.010986328125, 0.050201416015625, -0.033294677734375, -0.032135009765625, 0.00644683837890625, 0.033935546875, 0.0192108154296875, -0.0159759521484375, -0.0053558349609375, 0.00936126708984375, 0.0048370361328125, 0.006443023681640625, -0.006664276123046875, 0.00911712646484375, 0.054656982421875, 0.0153961181640625, -0.03997802734375, 0.01476287841796875, 0.01189422607421875, -0.035064697265625, 0.0212249755859375, -0.0312347412109375, -0.0246124267578125, -0.006870269775390625, 0.0156707763671875, -0.0270538330078125, -0.0204010009765625, 0.0029773712158203125, 0.0276031494140625, 0.0226593017578125, 0.0188140869140625, 0.03173828125, 0.0244140625, -0.002285003662109375, -0.0174560546875, -0.0026721954345703125, 0.0130767822265625, 0.00244903564453125, -0.053985595703125, -0.0048980712890625, 0.00554656982421875, 0.0160980224609375, 0.0003268718719482422, -0.007221221923828125, 0.0177001953125, 0.063232421875, -0.00945281982421875, 0.004947662353515625, -0.010955810546875, 0.031158447265625, -0.0230255126953125, 0.00217437744140625, 0.022003173828125, -0.014068603515625, 0.00785064697265625, 0.064208984375, 0.007656097412109375, 0.035369873046875, -0.0257568359375, 0.07208251953125, 0.053741455078125, 0.041534423828125, -0.009368896484375, -0.003971099853515625, -0.01255035400390625, 0.0261077880859375, -0.032379150390625, -0.031280517578125, 0.0085296630859375, -0.00519561767578125, 0.03143310546875, -0.059112548828125, -0.050689697265625, 0.0606689453125, -0.031982421875, -0.0266571044921875, -0.001556396484375, 0.00005418062210083008, -0.0166473388671875, 0.0102996826171875, 0.002410888671875, -0.00566864013671875, 0.01202392578125, 0.032470703125, -0.0160980224609375, 0.020050048828125, 0.009307861328125, -0.0159912109375, 0.026123046875, -0.038482666015625, -0.0275421142578125, -0.030426025390625, -0.0263214111328125, -0.002071380615234375, 0.0015010833740234375, -0.00040459632873535156, -0.00482940673828125, -0.044677734375, 0.0176849365234375, 0.006134033203125, -0.006740570068359375, -0.02227783203125, 0.0208587646484375, -0.02398681640625, -0.01178741455078125, 0.04949951171875, -0.010040283203125, 0.0116424560546875, -0.0211029052734375, -0.0158843994140625, -0.0211944580078125, 0.040924072265625, 0.00652313232421875, -0.025909423828125, -0.0188140869140625, -0.0035724639892578125, 0.01062774658203125, 0.022003173828125, 0.018035888671875, 0.04132080078125, 0.0050506591796875, -0.041351318359375, -0.01190948486328125, -0.00943756103515625, 0.0758056640625, -0.030120849609375, 0.05963134765625, -0.0026264190673828125, 0.03375244140625, -0.01788330078125, -0.0255126953125, -0.030853271484375, -0.0589599609375, 0.0205535888671875, 0.042572021484375, -0.006671905517578125, 0.03497314453125, 0.02593994140625, 0.01207733154296875, 0.033172607421875, -0.016265869140625, -0.0012111663818359375, -0.0095977783203125, 0.009063720703125, -0.0018310546875, -0.0016794204711914062, 0.051361083984375, -0.032318115234375, -0.00724029541015625, -0.0013952255249023438, 0.030731201171875, -0.006137847900390625, -0.044281005859375, -0.01371002197265625, 0.02423095703125, -0.0408935546875, 0.06768798828125, 0.08251953125, -0.0303802490234375, 0.0205230712890625, 0.0374755859375, -0.016510009765625, 0.0109100341796875, 0.02227783203125, -0.0131988525390625, -0.01122283935546875, 0.0374755859375, -0.001007080078125, -0.024566650390625, 0.0159759521484375, -0.03546142578125, 0.00799560546875, 0.03515625, 0.05743408203125, -0.0303802490234375, -0.012969970703125, -0.01531219482421875, -0.039031982421875, 0.0299224853515625, -0.0018739700317382812, -0.0023441314697265625, -0.01451873779296875, 0.027496337890625, 0.0247650146484375, -0.01471710205078125, 0.0029850006103515625, 0.0194854736328125, 0.01316070556640625, 0.01611328125, 0.032470703125, -0.0028285980224609375, -0.06158447265625, -0.0085601806640625, 0.0258331298828125, 0.006988525390625, -0.00040721893310546875, 0.01224517822265625, -0.0088043212890625, -0.00469207763671875, -0.006893157958984375, 0.049774169921875, -0.032440185546875, 0.0183563232421875, -0.0247802734375, 0.00440216064453125, 0.061309814453125, 0.052520751953125, 0.00820159912109375, -0.023895263671875, 0.042572021484375, 0.0173797607421875, -0.0207672119140625, -0.01024627685546875, 0.00873565673828125, 0.03961181640625, -0.0118408203125, 0.0272979736328125, -0.016571044921875, 0.0003597736358642578, -0.01299285888671875, 0.0139617919921875, 0.08203125, -0.040374755859375, -0.017364501953125, 0.01690673828125, 0.019744873046875, -0.0026378631591796875, -0.014801025390625, 0.033294677734375, -0.02911376953125, 0.023681640625, -0.0054473876953125, 0.006595611572265625, -0.021087646484375, -0.031982421875, -0.06597900390625, 0.10693359375, -0.009002685546875, 0.015106201171875, -0.01036834716796875, 0.043914794921875, -0.0207061767578125, 0.0194091796875, -0.0350341796875, 0.04217529296875, 0.02508544921875, 0.02947998046875, -0.052581787109375, -0.0146942138671875, -0.0019083023071289062, 0.04937744140625, 0.0517578125, 0.0091552734375, -0.0070037841796875, -0.00258636474609375, 0.001781463623046875, 0.004547119140625, -0.048095703125, 0.0418701171875, -0.0277252197265625, 0.003017425537109375, 0.03179931640625, -0.043914794921875, 0.012603759765625, 0.0027141571044921875, -0.0049896240234375, 0.009307861328125, 0.0178680419921875, 0.03564453125, 0.040008544921875, -0.0262908935546875, -0.005649566650390625, 0.0160369873046875, 0.006938934326171875, -0.0082244873046875, 0.005954742431640625, 0.0298919677734375, 0.01837158203125, -0.0035228729248046875, -0.0160675048828125, -0.027099609375, 0.043121337890625, 0.01181793212890625, 0.05645751953125, 0.011016845703125, 0.024017333984375, 0.038421630859375, -0.0019464492797851562, 0.0274810791015625, 0.0236358642578125, -0.042999267578125, 0.057037353515625, 0.04083251953125, 0.0159149169921875, -0.065185546875, -0.05255126953125, 0.0875244140625, 0.09967041015625, -0.04583740234375, -0.0474853515625, 0.00464630126953125, 0.0196380615234375, 0.024993896484375, 0.0067138671875, 0.0494384765625, -0.0186767578125, 0.0250701904296875, -0.023834228515625, -0.0198822021484375, 0.0196075439453125, 0.00766754150390625, -0.000021517276763916016, 0.00986480712890625, -0.004497528076171875, -0.0052337646484375, -0.0517578125, 0.0209808349609375, 0.0195770263671875, 0.0618896484375, 0.01029205322265625, 0.0701904296875, -0.01221466064453125, -0.02178955078125, 0.036651611328125, -0.00017154216766357422, 0.05291748046875, -0.0572509765625, 0.043609619140625, -0.02496337890625, 0.0318603515625, -0.00472259521484375, -0.0173187255859375, 0.057373046875, 0.03155517578125, -0.00630950927734375, -0.0171661376953125, -0.010650634765625, -0.00335693359375, -0.046875, -0.05645751953125, -0.032470703125, 0.022705078125, 0.0185089111328125, 0.0218353271484375, 0.04656982421875, 0.07427978515625, -0.01375579833984375, -0.0565185546875, 0.05419921875, -0.0201873779296875, -0.0347900390625, 0.057647705078125, -0.0239105224609375, 0.10076904296875, -0.0318603515625, -0.07098388671875, -0.01464080810546875, -0.0027561187744140625, -0.0285491943359375, 0.0008349418640136719, 0.017730712890625, -0.025482177734375, 0.054046630859375, 0.0122528076171875, 0.01120758056640625, 0.04119873046875, -0.0499267578125, 0.0301513671875, -0.0091705322265625, 0.016754150390625, 0.0011148452758789062, -0.0435791015625, -0.01093292236328125, -0.01351165771484375, 0.02008056640625, 0.0162811279296875, 0.0262603759765625, 0.00598907470703125, 0.0245513916015625, -0.053436279296875, 0.01538848876953125, -0.037109375, -0.027435302734375, -0.005107879638671875, 0.0301361083984375, 0.01323699951171875, -0.002933502197265625, 0.00908660888671875, -0.00588226318359375, 0.041412353515625, -0.0308074951171875, -0.042724609375, -0.0107879638671875, 0.029022216796875, -0.0005774497985839844, 0.0221405029296875, -0.033416748046875, -0.010162353515625, -0.035797119140625, -0.034881591796875, 0.03759765625, 0.0212249755859375, 0.0087432861328125, 0.0229339599609375, 0.00009733438491821289, -0.0230560302734375, -0.0019254684448242188, -0.033843994140625, 0.00778961181640625, 0.02349853515625, 0.00267791748046875, -0.01727294921875, 0.007686614990234375, -0.01513671875, 0.0026340484619140625, 0.00775146484375, 0.0236358642578125, 0.003116607666015625, -0.032562255859375, 0.01302337646484375, 0.0175018310546875, 0.01922607421875, -0.039459228515625, 0.01263427734375, 0.031402587890625, -0.01548004150390625, -0.0022754669189453125, 0.029205322265625, -0.012176513671875, -0.0250244140625, -0.03497314453125, 0.0013170242309570312, -0.03173828125, -0.0306854248046875, -0.034393310546875, -0.031158447265625, -0.01148223876953125, -0.0189971923828125, 0.0283355712890625, -0.0214080810546875, -0.0247955322265625, -0.0228424072265625, -0.02435302734375, 0.032928466796875, -0.0228271484375, 0.01003265380859375, -0.0283355712890625, -0.0281829833984375, -0.0343017578125, 0.0316162109375, -0.0225372314453125, 0.033447265625, 0.042510986328125, -0.03656005859375, -0.01377105712890625, 0.012786865234375, 0.026824951171875, 0.05194091796875, -0.0017147064208984375, -0.0071868896484375, 0.02569580078125, 0.013580322265625, -0.04010009765625, -0.09539794921875, 0.003582000732421875, -0.0755615234375, 0.005889892578125, -0.00373077392578125, 0.016510009765625, 0.03460693359375, -0.013214111328125, -0.045135498046875, 0.04486083984375, -0.0236663818359375, -0.0232696533203125, -0.03790283203125, -0.026031494140625, -0.0034275054931640625, 0.01270294189453125, -0.014801025390625, -0.0019588470458984375, -0.041015625, 0.04522705078125, -0.016998291015625, 0.04669189453125, 0.0020751953125, -0.02874755859375, -0.027069091796875, -0.0106353759765625, -0.01947021484375, -0.022216796875, 0.00679779052734375, -0.00916290283203125, 0.037933349609375, 0.0268402099609375, -0.032379150390625, 0.03094482421875, -0.01026153564453125, -0.00548553466796875, -0.01233673095703125, -0.0068206787109375, -0.040802001953125, 0.0209197998046875, 0.0902099609375, 0.061370849609375, 0.040771484375, -0.0643310546875, -0.01128387451171875, -0.04400634765625, -0.0340576171875, 0.0006628036499023438, 0.00736236572265625, -0.037872314453125, 0.00955963134765625, 0.00469970703125, 0.01071929931640625, 0.052734375, -0.08709716796875, -0.0108184814453125, -0.00591278076171875, -0.01448822021484375, 0.01142120361328125, -0.028900146484375, 0.0257720947265625, 0.042724609375, -0.0276031494140625, -0.012176513671875, 0.0009918212890625, -0.003574371337890625, -0.007472991943359375, 0.0088653564453125, -0.02178955078125, -0.016143798828125, -0.0275726318359375, 0.01393890380859375, -0.009490966796875, 0.059722900390625, -0.016937255859375, -0.01091766357421875, 0.01045989990234375, 0.023651123046875, 0.01006317138671875, 0.027191162109375, -0.01285552978515625, 0.050201416015625, 0.0026798248291015625, 0.0142364501953125, -0.032745361328125, 0.01189422607421875, -0.044464111328125, 0.030181884765625, -0.03485107421875, 0.0236358642578125, -0.0025482177734375, 0.0036983489990234375, -0.00870513916015625, 0.009033203125, -0.04840087890625, -0.02105712890625, -0.0019092559814453125, -0.00046253204345703125, -0.00738525390625, 0.0040283203125 ]
9d4d1d5d49261a0160fb75cd8f1a68452c3d8889
Wordpress Stackexchange Q: Underscores in custom fields While trying to perform a WP_Query using meta_query(), I had some trouble because the custom fields created by a plugin had _ in the beginning of its name. Although I noticed it was stored this way in the database, I had no idea why it was there and thought I had to reference it without the underscore (for the record, that is wrong). Why do some custom fields start with underscores and others don't? What are the underscores used for? Are they mandatory in some circumstances? A: Custom field names are arbitrary. The underscore hides it from the Custom Fields metabox on the post editing page. When referencing these custom fields in meta_query() or other functions, the underscore has to be used. Source: conversation with @toscho, @rarst and @wyck in the chat room.
Q: Underscores in custom fields While trying to perform a WP_Query using meta_query(), I had some trouble because the custom fields created by a plugin had _ in the beginning of its name. Although I noticed it was stored this way in the database, I had no idea why it was there and thought I had to reference it without the underscore (for the record, that is wrong). Why do some custom fields start with underscores and others don't? What are the underscores used for? Are they mandatory in some circumstances? A: Custom field names are arbitrary. The underscore hides it from the Custom Fields metabox on the post editing page. When referencing these custom fields in meta_query() or other functions, the underscore has to be used. Source: conversation with @toscho, @rarst and @wyck in the chat room.
wordpress
{ "language": "en", "length": 138, "provenance": "stackexchange_00019.jsonl.gz:433341", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/102364" }
[ -0.006481170654296875, 0.0023593902587890625, -0.00301361083984375, 0.00768280029296875, -0.0224609375, 0.0027179718017578125, -0.0176239013671875, -0.036956787109375, 0.0013828277587890625, 0.0209503173828125, 0.0027561187744140625, -0.0252227783203125, 0.043609619140625, -0.04791259765625, 0.01971435546875, -0.01320648193359375, 0.013458251953125, -0.009033203125, 0.00438690185546875, -0.0252532958984375, 0.01213836669921875, -0.0205841064453125, 0.00969696044921875, 0.014312744140625, 0.05889892578125, -0.0269012451171875, 0.046844482421875, -0.0276947021484375, 0.058624267578125, 0.0094146728515625, 0.04034423828125, -0.04278564453125, -0.007587432861328125, 0.0322265625, 0.0300140380859375, 0.03680419921875, 0.023773193359375, 0.0209197998046875, 0.050445556640625, 0.002490997314453125, 0.0626220703125, -0.033111572265625, 0.01103973388671875, 0.033447265625, 0.019134521484375, -0.0479736328125, 0.07476806640625, -0.045989990234375, 0.049041748046875, -0.048248291015625, -0.01508331298828125, 0.03363037109375, 0.00946044921875, -0.03765869140625, -0.02587890625, -0.0280303955078125, -0.039398193359375, 0.004360198974609375, 0.033538818359375, 0.0166168212890625, 0.0032596588134765625, -0.0170745849609375, 0.0187530517578125, -0.0072479248046875, 0.014312744140625, -0.00936126708984375, 0.0102996826171875, 0.0266876220703125, 0.0013933181762695312, -0.007442474365234375, 0.01187896728515625, -0.004383087158203125, 0.030303955078125, 0.0092620849609375, -0.00991058349609375, -0.04620361328125, 0.041168212890625, -0.00850677490234375, 0.00904083251953125, 0.0044708251953125, 0.0151824951171875, -0.03192138671875, -0.0181884765625, 0.0211639404296875, -0.01537322998046875, 0.03009033203125, -0.008270263671875, -0.01238250732421875, 0.027252197265625, -0.02362060546875, 0.002315521240234375, -0.01727294921875, -0.032745361328125, 0.040283203125, 0.02288818359375, -0.061981201171875, 0.043670654296875, 0.05059814453125, -0.005184173583984375, -0.0232086181640625, 0.015777587890625, -0.046356201171875, -0.00626373291015625, -0.01560211181640625, 0.004306793212890625, 0.0218353271484375, -0.03997802734375, 0.030792236328125, 0.061492919921875, 0.061614990234375, 0.01482391357421875, -0.029998779296875, 0.00429534912109375, -0.0276336669921875, -0.0443115234375, -0.0012416839599609375, -0.0178070068359375, 0.00774383544921875, 0.00926971435546875, 0.00812530517578125, 0.0262908935546875, 0.033355712890625, 0.0061798095703125, -0.0516357421875, 0.00007635354995727539, -0.0192718505859375, -0.033721923828125, -0.0236663818359375, -0.05712890625, 0.0682373046875, -0.01189422607421875, -0.006214141845703125, 0.0545654296875, 0.03839111328125, -0.01329803466796875, -0.0313720703125, 0.030029296875, -0.027099609375, 0.01837158203125, 0.0218963623046875, -0.04376220703125, -0.04052734375, 0.01593017578125, -0.0234832763671875, 0.016357421875, 0.02166748046875, 0.0101318359375, 0.017364501953125, -0.0090484619140625, -0.03448486328125, 0.005584716796875, -0.020111083984375, 0.0343017578125, -0.00203704833984375, -0.0223846435546875, -0.0137176513671875, 0.029144287109375, -0.030792236328125, -0.03192138671875, -0.04180908203125, -0.03118896484375, -0.0260162353515625, 0.0165252685546875, -0.06396484375, -0.05059814453125, 0.0440673828125, -0.03411865234375, -0.00891876220703125, 0.0156707763671875, -0.03961181640625, 0.03985595703125, 0.0017557144165039062, 0.043914794921875, -0.01004791259765625, -0.005840301513671875, -0.007160186767578125, 0.00586700439453125, 0.039459228515625, -0.00864410400390625, 0.033721923828125, -0.006626129150390625, -0.049285888671875, 0.00847625732421875, -0.01090240478515625, -0.053924560546875, 0.056854248046875, -0.002376556396484375, 0.03363037109375, 0.0001474618911743164, 0.0000737905502319336, 0.054656982421875, 0.05059814453125, -0.044769287109375, 0.0177154541015625, 0.027435302734375, -0.00904083251953125, 0.0096282958984375, 0.001720428466796875, 0.0236663818359375, -0.033966064453125, -0.004909515380859375, -0.015625, -0.0006918907165527344, 0.019287109375, -0.059844970703125, 0.0064849853515625, -0.027587890625, 0.028289794921875, -0.037689208984375, -0.0072784423828125, 0.020263671875, -0.046051025390625, 0.010467529296875, -0.041748046875, -0.021575927734375, -0.0175018310546875, -0.02362060546875, -0.00856781005859375, 0.0039825439453125, -0.019287109375, 0.0184173583984375, -0.006702423095703125, -0.0006608963012695312, 0.0261993408203125, 0.0166015625, 0.016693115234375, -0.018585205078125, -0.00318145751953125, 0.03326416015625, 0.0020008087158203125, 0.01465606689453125, 0.0230712890625, 0.005237579345703125, 0.0021915435791015625, -0.02191162109375, -0.0056915283203125, -0.030181884765625, -0.06768798828125, -0.0021648406982421875, 0.063720703125, 0.03033447265625, 0.0328369140625, -0.0059051513671875, -0.0121002197265625, 0.03753662109375, 0.00768280029296875, 0.03021240234375, -0.03778076171875, 0.013092041015625, 0.0596923828125, -0.0283660888671875, 0.002101898193359375, 0.018951416015625, -0.040191650390625, -0.01273345947265625, 0.03607177734375, -0.06658935546875, -0.060577392578125, 0.050811767578125, -0.00749969482421875, -0.005161285400390625, -0.0167388916015625, 0.03521728515625, -0.01531219482421875, 0.03692626953125, 0.036163330078125, 0.053070068359375, 0.044769287109375, -0.01953125, 0.039825439453125, 0.00894927978515625, -0.0257720947265625, -0.013641357421875, -0.012786865234375, 0.040924072265625, -0.0301971435546875, -0.0469970703125, 0.01403045654296875, 0.01300048828125, -0.032623291015625, 0.00702667236328125, -0.002605438232421875, -0.032989501953125, -0.004856109619140625, 0.0276641845703125, -0.048583984375, 0.0004153251647949219, 0.0222015380859375, -0.0134735107421875, -0.039794921875, 0.0025424957275390625, 0.0288543701171875, -0.0275421142578125, 0.04248046875, -0.02789306640625, -0.0303955078125, -0.025909423828125, 0.0217132568359375, -0.0027923583984375, -0.02215576171875, -0.0019521713256835938, 0.03173828125, -0.0204925537109375, 0.004070281982421875, -0.00473785400390625, 0.0026111602783203125, -0.0233306884765625, 0.0269622802734375, -0.0015058517456054688, -0.00795745849609375, -0.104736328125, -0.031280517578125, 0.04327392578125, 0.084716796875, 0.00740814208984375, -0.0312042236328125, 0.0034942626953125, 0.0711669921875, -0.03448486328125, -0.053802490234375, 0.03924560546875, -0.01934814453125, -0.04730224609375, -0.0062255859375, -0.01947021484375, 0.0209503173828125, -0.012847900390625, -0.01088714599609375, 0.0109710693359375, -0.04296875, -0.057769775390625, -0.0576171875, -0.054473876953125, 0.001796722412109375, 0.0143890380859375, 0.01239776611328125, -0.00388336181640625, 0.05780029296875, 0.007266998291015625, -0.0276031494140625, -0.007030487060546875, 0.0013294219970703125, -0.0038089752197265625, -0.0165252685546875, 0.008148193359375, -0.01806640625, 0.0022735595703125, 0.0196533203125, -0.02197265625, 0.0017614364624023438, -0.00412750244140625, -0.037750244140625, 0.0325927734375, -0.0026760101318359375, 0.016876220703125, 0.01922607421875, -0.024200439453125, 0.0252227783203125, 0.0289459228515625, -0.039581298828125, -0.0311431884765625, -0.0172882080078125, -0.045684814453125, 0.033203125, 0.0288543701171875, 0.0165557861328125, -0.0301361083984375, 0.043975830078125, 0.0273284912109375, 0.005718231201171875, -0.0328369140625, -0.01557159423828125, 0.0017566680908203125, 0.0212249755859375, 0.0771484375, 0.00952911376953125, 0.017425537109375, -0.01422882080078125, 0.0169677734375, 0.0044708251953125, -0.0017290115356445312, -0.00820159912109375, 0.033599853515625, -0.029693603515625, -0.039825439453125, 0.030029296875, -0.0638427734375, 0.018218994140625, -0.04876708984375, -0.0159149169921875, -0.0193023681640625, 0.0625, -0.041900634765625, -0.0131072998046875, 0.005245208740234375, 0.00007730722427368164, -0.0229034423828125, -0.00745391845703125, -0.0631103515625, -0.0111541748046875, -0.08355712890625, -0.00711822509765625, 0.0005030632019042969, -0.059844970703125, -0.0006976127624511719, 0.0304107666015625, -0.05889892578125, -0.03717041015625, 0.0294189453125, -0.0557861328125, 0.01366424560546875, -0.00705718994140625, 0.01250457763671875, -0.037933349609375, -0.020538330078125, -0.0240478515625, -0.09368896484375, -0.02703857421875, 0.01395416259765625, 0.076904296875, -0.0058135986328125, -0.0227203369140625, -0.0252532958984375, 0.06256103515625, -0.00026702880859375, -0.00403594970703125, -0.0081939697265625, -0.01568603515625, -0.002590179443359375, 0.059783935546875, 0.0167999267578125, 0.0139617919921875, 0.017242431640625, -0.01416778564453125, -0.034759521484375, -0.0185394287109375, -0.03411865234375, -0.008331298828125, -0.0028362274169921875, -0.038055419921875, 0.03741455078125, 0.0144195556640625, -0.03924560546875, 0.0247650146484375, -0.0269317626953125, 0.00264739990234375, -0.00641632080078125, 0.00771331787109375, 0.00916290283203125, -0.033111572265625, -0.0167083740234375, 0.030426025390625, 0.048248291015625, 0.0214080810546875, 0.003139495849609375, -0.0443115234375, -0.018341064453125, 0.0340576171875, -0.030487060546875, 0.0611572265625, 0.0223541259765625, -0.0263671875, 0.098876953125, -0.0175628662109375, 0.03558349609375, -0.0306396484375, 0.01450347900390625, -0.03350830078125, -0.0499267578125, 0.06036376953125, -0.023223876953125, -0.0021839141845703125, 0.0277862548828125, 0.00487518310546875, -0.008880615234375, 0.00342559814453125, 0.0135345458984375, -0.0222015380859375, -0.0087890625, -0.01560211181640625, -0.0408935546875, 0.018798828125, -0.003681182861328125, -0.0170135498046875, -0.0200347900390625, 0.0000013113021850585938, -0.0209503173828125, -0.0174560546875, 0.0079498291015625, -0.0125732421875, -0.00992584228515625, -0.0118560791015625, 0.0303497314453125, 0.01222991943359375, 0.02130126953125, -0.0227813720703125, -0.013336181640625, 0.1162109375, -0.01366424560546875, -0.062103271484375, 0.00669097900390625, -0.03228759765625, 0.0177001953125, 0.037017822265625, -0.0035648345947265625, -0.034576416015625, 0.0122528076171875, -0.0167236328125, 0.024444580078125, 0.01026153564453125, 0.0178985595703125, -0.0077972412109375, 0.002590179443359375, -0.0006175041198730469, 0.00551605224609375, -0.035247802734375, 0.091552734375, 0.0006809234619140625, 0.0103302001953125, -0.006256103515625, 0.00823974609375, -0.007171630859375, 0.059173583984375, 0.0006113052368164062, -0.048309326171875, 0.0186004638671875, 0.03302001953125, 0.0236663818359375, -0.036895751953125, 0.0094146728515625, 0.0200958251953125, 0.020904541015625, -0.015869140625, -0.033111572265625, 0.03192138671875, -0.01366424560546875, -0.0005779266357421875, 0.019683837890625, -0.0236358642578125, -0.0132293701171875, -0.00438690185546875, -0.030059814453125, 0.031890869140625, -0.00872802734375, -0.0167999267578125, 0.035400390625, -0.04608154296875, 0.042724609375, -0.0386962890625, 0.03326416015625, -0.039764404296875, -0.03997802734375, 0.028167724609375, 0.009613037109375, -0.0037364959716796875, -0.01331329345703125, -0.03204345703125, -0.02325439453125, -0.02740478515625, 0.04827880859375, -0.00675201416015625, 0.0268402099609375, -0.048614501953125, 0.00966644287109375, -0.0304107666015625, 0.0042572021484375, 0.0546875, 0.0194854736328125, -0.033905029296875, -0.011810302734375, -0.0181121826171875, -0.0149078369140625, -0.018829345703125, -0.046417236328125, -0.0204010009765625, -0.005771636962890625, -0.0017290115356445312, 0.01436614990234375, -0.01554107666015625, -0.021209716796875, -0.002231597900390625, -0.00370025634765625, -0.01328277587890625, -0.01284027099609375, -0.0191192626953125, 0.016448974609375, 0.01047515869140625, 0.045074462890625, 0.00011515617370605469, 0.002918243408203125, 0.00769805908203125, -0.031951904296875, -0.00948333740234375, -0.03314208984375, -0.0117645263671875, 0.0005016326904296875, 0.0082855224609375, 0.0171661376953125, 0.022186279296875, -0.0033855438232421875, 0.059661865234375, -0.018768310546875, -0.01105499267578125, -0.00611114501953125, -0.0018320083618164062, -0.041473388671875, 0.034576416015625, 0.03887939453125, -0.019805908203125, 0.0322265625, -0.0021953582763671875, -0.03631591796875, 0.03228759765625, -0.01061248779296875, 0.04193115234375, 0.0258026123046875, -0.022003173828125, 0.031280517578125, 0.032379150390625, -0.004180908203125, 0.01111602783203125, 0.0081329345703125, -0.00982666015625, -0.04046630859375, 0.0262908935546875, -0.0254669189453125, -0.06024169921875, 0.056304931640625, 0.0192413330078125, -0.0291595458984375, 0.05548095703125, -0.0241241455078125, 0.02142333984375, 0.04840087890625, 0.039886474609375, -0.091064453125, 0.0216064453125, 0.01739501953125, 0.0214385986328125, 0.03765869140625, 0.022735595703125, 0.0086517333984375, -0.01690673828125, 0.005626678466796875, -0.047576904296875, -0.0071868896484375, -0.0009217262268066406, -0.02032470703125, -0.0287628173828125, -0.0242919921875, 0.03790283203125, 0.01335906982421875, 0.021240234375, 0.00984954833984375, -0.03369140625, -0.0172882080078125, 0.0015106201171875, 0.015594482421875, 0.02044677734375, -0.0380859375, -0.048492431640625, 0.0131683349609375, 0.00807952880859375, -0.0291290283203125, 0.03240966796875, -0.004558563232421875, 0.050872802734375, 0.064697265625, -0.0130767822265625, 0.003925323486328125, 0.0190887451171875, 0.031982421875, 0.0099334716796875, -0.047149658203125, 0.0095062255859375, 0.045166015625, -0.0640869140625, 0.02581787109375, 0.0014934539794921875, -0.00875091552734375, -0.01482391357421875, -0.01212310791015625, 0.055145263671875, 0.00672149658203125, -0.034759521484375, 0.00986480712890625, 0.0268402099609375, -0.0064239501953125, 0.00003647804260253906, -0.056610107421875, -0.00446319580078125, 0.056243896484375, -0.025848388671875, 0.0212860107421875, 0.06048583984375, 0.0115203857421875, -0.0733642578125, 0.06341552734375, 0.0200653076171875, 0.020050048828125, -0.0159454345703125, 0.018218994140625, -0.033843994140625, -0.021575927734375, -0.041351318359375, 0.02630615234375, -0.040771484375, 0.09228515625, -0.0841064453125, -0.0167694091796875, 0.0117950439453125, 0.042236328125, 0.061065673828125, 0.0024471282958984375, -0.0148162841796875, 0.030059814453125, 0.1016845703125, 0.030487060546875, -0.0022640228271484375, 0.028656005859375, 0.022857666015625, 0.044891357421875, 0.0689697265625, 0.009765625, 0.051727294921875, -0.0209808349609375, -0.02392578125, 0.0290069580078125, 0.01342010498046875, 0.0252227783203125, -0.007537841796875, 0.01158905029296875, 0.02032470703125, -0.02655029296875, -0.012542724609375, 0.00904083251953125, 0.0007534027099609375, 0.035919189453125, 0.04461669921875, -0.017181396484375, -0.0293426513671875, -0.00894927978515625, 0.041595458984375, 0.0209808349609375, 0.04547119140625, 0.049468994140625, 0.01287078857421875, 0.08660888671875, -0.0180816650390625, 0.023834228515625, 0.0112152099609375, -0.01045989990234375, 0.0229339599609375, -0.01751708984375, -0.0032062530517578125, -0.060211181640625, 0.0230255126953125, 0.051055908203125, 0.0355224609375, -0.0447998046875, -0.01074981689453125, 0.004299163818359375, -0.0029697418212890625, 0.006778717041015625, -0.03570556640625, -0.0114898681640625, 0.048583984375, 0.0089111328125, -0.0245819091796875, 0.0220184326171875, 0.05865478515625, -0.01094818115234375, 0.01116180419921875, 0.0082244873046875, -0.044036865234375, 0.0155792236328125, -0.031890869140625, 0.0241851806640625, 0.0007257461547851562, 0.01435089111328125, 0.02410888671875, 0.01629638671875, 0.04034423828125, -0.00920867919921875, -0.00479888916015625, 0.01335906982421875, -0.01016998291015625, 0.0253753662109375, -0.0239410400390625, -0.00286102294921875, 0.01496124267578125, 0.019805908203125, 0.04071044921875, 0.07781982421875, 0.06915283203125, 0.006046295166015625, -0.007152557373046875, 0.0183868408203125, -0.04034423828125, -0.052398681640625, 0.005748748779296875, -0.07427978515625, 0.0660400390625, 0.0157623291015625, 0.027008056640625, -0.01175689697265625, 0.0143890380859375, 0.0280914306640625, -0.020050048828125, 0.006237030029296875, 0.0035152435302734375, -0.048492431640625, 0.0279388427734375, -0.0304107666015625, 0.05609130859375, -0.009918212890625, -0.04718017578125, -0.0225830078125, -0.0289764404296875, -0.0257568359375, 0.022186279296875, 0.046905517578125, 0.0301055908203125, -0.0141143798828125, -0.003143310546875, -0.0238494873046875, -0.0020694732666015625, 0.01535797119140625, 0.01056671142578125, 0.005687713623046875, 0.00009065866470336914, -0.0113677978515625, -0.0271148681640625, -0.003139495849609375, 0.00937652587890625, -0.008087158203125, -0.0082550048828125, 0.053131103515625, -0.01355743408203125, 0.00004285573959350586, -0.0027599334716796875, -0.0221099853515625, 0.0086517333984375, 0.0016965866088867188, 0.035797119140625, -0.014007568359375, -0.024627685546875, -0.00980377197265625, 0.0020999908447265625, 0.035797119140625, 0.01959228515625, -0.04705810546875, 0.01293182373046875, 0.01175689697265625, -0.0038471221923828125, -0.02044677734375, 0.00957489013671875, -0.037261962890625, -0.0175628662109375, 0.0068817138671875, -0.016632080078125, 0.004352569580078125, -0.0166015625, 0.0126953125, -0.01311492919921875, 0.020416259765625, -0.05072021484375, 0.03350830078125, -0.0389404296875, 0.061859130859375, 0.040130615234375, 0.050048828125, 0.00994110107421875, -0.0204620361328125, -0.025146484375, 0.00676727294921875, -0.0036945343017578125, -0.0030117034912109375, -0.00823974609375, -0.041656494140625, -0.033660888671875, 0.019927978515625, 0.0241546630859375, -0.03155517578125, 0.0279693603515625, 0.0031948089599609375, -0.00676727294921875, 0.032379150390625, -0.046630859375, -0.0209503173828125, -0.04998779296875, -0.004974365234375, 0.0178070068359375, -0.028717041015625, -0.0162353515625, -0.0121917724609375, -0.01444244384765625, 0.0178375244140625, -0.005481719970703125, -0.0068817138671875, 0.00682830810546875, -0.036376953125, -0.02880859375, 0.008026123046875, -0.00562286376953125, 0.0028133392333984375, 0.039764404296875, -0.00563812255859375, -0.0027141571044921875, 0.005649566650390625, 0.01532745361328125, 0.0306854248046875, 0.04608154296875, 0.04693603515625, -0.045654296875, -0.0102691650390625, 0.059356689453125, 0.056060791015625, 0.08056640625, 0.034820556640625, -0.01235198974609375, 0.0004832744598388672, 0.00820159912109375, -0.0265655517578125, -0.051788330078125, 0.034454345703125, -0.071044921875, -0.025604248046875, -0.007568359375, 0.01456451416015625, 0.032684326171875, -0.02947998046875, -0.07952880859375, 0.046905517578125, -0.0023193359375, -0.041168212890625, -0.0225982666015625, -0.03350830078125, -0.0094146728515625, 0.060699462890625, 0.00960540771484375, -0.0290069580078125, -0.051300048828125, 0.01873779296875, 0.035736083984375, 0.005359649658203125, 0.054962158203125, -0.0007872581481933594, -0.06292724609375, -0.02410888671875, -0.03192138671875, 0.01806640625, 0.0250701904296875, -0.009918212890625, 0.033050537109375, 0.033111572265625, -0.038116455078125, -0.0088043212890625, -0.007427215576171875, -0.0276031494140625, -0.023468017578125, -0.053802490234375, -0.01073455810546875, -0.0024700164794921875, 0.06298828125, 0.058349609375, 0.006591796875, -0.051513671875, -0.01898193359375, -0.03765869140625, 0.009307861328125, -0.033477783203125, 0.004344940185546875, -0.08135986328125, -0.0225677490234375, 0.01137542724609375, -0.0211639404296875, -0.0084381103515625, -0.0084686279296875, -0.04833984375, 0.00909423828125, 0.02301025390625, 0.01898193359375, -0.0308074951171875, 0.044708251953125, 0.049346923828125, -0.0604248046875, -0.03717041015625, 0.006778717041015625, -0.028533935546875, -0.01236724853515625, -0.0294342041015625, 0.0158843994140625, -0.033966064453125, -0.00022125244140625, 0.01142120361328125, -0.0019178390502929688, 0.0094757080078125, -0.004302978515625, -0.04193115234375, -0.017059326171875, 0.0574951171875, -0.0200347900390625, 0.050628662109375, -0.0186004638671875, 0.09014892578125, 0.0200347900390625, 0.0823974609375, -0.005832672119140625, 0.03106689453125, -0.03515625, 0.051055908203125, 0.00518798828125, -0.01277923583984375, 0.024810791015625, -0.002704620361328125, 0.0035343170166015625, -0.0023670196533203125, -0.02337646484375, 0.00656890869140625, -0.0147247314453125, 0.00235748291015625, -0.0300140380859375, -0.003997802734375 ]
02c59eff2aecf7c8550d7b367954f337ce0a2157
Wordpress Stackexchange Q: Mysql Query to Delete Duplicate Wordpress posts? I have a lot of duplicate posts. So, how to delete them (only keep 1 post). If they have same title, they are duplicate posts. Thank you very much ! Have a nice day ! A: I'm not entirely sure you can do this with a single query in MySQL as you can't delete from tables which you reference in a sub-query. I would actually recommend doing this using wp-cli and using the WordPress API to delete the duplicate posts (which will also delete any post meta and associated term references): global $wpdb; $duplicate_titles = $wpdb->get_col("SELECT post_title FROM {$wpdb->posts} GROUP BY post_title HAVING COUNT(*) > 1"); foreach( $duplicate_titles as $title ) { $post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->posts} WHERE post_title=%s", $title ) ); // Iterate over the second ID with this post title till the last foreach( array_slice( $post_ids, 1 ) as $post_id ) { wp_delete_post( $post_id, true ); // Force delete this post } } Hope this helps.
Q: Mysql Query to Delete Duplicate Wordpress posts? I have a lot of duplicate posts. So, how to delete them (only keep 1 post). If they have same title, they are duplicate posts. Thank you very much ! Have a nice day ! A: I'm not entirely sure you can do this with a single query in MySQL as you can't delete from tables which you reference in a sub-query. I would actually recommend doing this using wp-cli and using the WordPress API to delete the duplicate posts (which will also delete any post meta and associated term references): global $wpdb; $duplicate_titles = $wpdb->get_col("SELECT post_title FROM {$wpdb->posts} GROUP BY post_title HAVING COUNT(*) > 1"); foreach( $duplicate_titles as $title ) { $post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->posts} WHERE post_title=%s", $title ) ); // Iterate over the second ID with this post title till the last foreach( array_slice( $post_ids, 1 ) as $post_id ) { wp_delete_post( $post_id, true ); // Force delete this post } } Hope this helps. A: I know, it's an old thread but since i had a similar problem i would like to add some advises to the Answer from Bendoh (unfortunately i dont have the reputation to make a comment) Since wordpress and some Plugins are also storing data in the post table, i would recommend to add an post_type to your querry: global $wpdb; $duplicate_titles = $wpdb->get_col("SELECT post_title FROM {$wpdb->posts} WHERE `post_type` = 'post' GROUP BY post_title HAVING COUNT(*) > 1"); foreach( $duplicate_titles as $title ) { $post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->posts} WHERE post_title=%s", $title ) ); // Iterate over the second ID with this post title till the last foreach( array_slice( $post_ids, 1 ) as $post_id ) { wp_delete_post( $post_id, true ); // Force delete this post } } Depending of the source of your duplicates i would also add another field to check for duplicates, like the publication date. global $wpdb; $duplicate_titles = $wpdb->get_results("SELECT post_title, post_date, CONCAT(post_date, post_title) AS WHOLENAME FROM {$wpdb->posts} WHERE post_type = 'post' GROUP BY WHOLENAME HAVING COUNT(WHOLENAME) > 1"); foreach( $duplicate_titles as $title ) { $post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->posts} WHERE post_title=%s AND post_date='".$title->post_date."'", $title->post_title ) ); foreach( array_slice( $post_ids, 1 ) as $post_id ) { wp_delete_post( $post_id, true ); // Force delete this post } }
wordpress
{ "language": "en", "length": 385, "provenance": "stackexchange_00019.jsonl.gz:433408", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/102537" }
[ 0.04608154296875, 0.0274200439453125, -0.0283660888671875, -0.00426483154296875, 0.060821533203125, -0.042022705078125, 0.1025390625, -0.0308685302734375, 0.004505157470703125, 0.043121337890625, -0.01189422607421875, 0.0181884765625, 0.00904083251953125, -0.014984130859375, -0.010894775390625, -0.0229644775390625, 0.018463134765625, 0.005298614501953125, 0.0236053466796875, -0.005588531494140625, 0.0038471221923828125, 0.00794219970703125, 0.00836944580078125, 0.027618408203125, -0.00982666015625, -0.012969970703125, 0.0853271484375, -0.01702880859375, -0.02288818359375, -0.055328369140625, 0.012298583984375, 0.056243896484375, -0.005199432373046875, 0.0158538818359375, 0.019073486328125, -0.019683837890625, 0.018218994140625, 0.004077911376953125, 0.02056884765625, 0.0287628173828125, 0.020355224609375, -0.003894805908203125, 0.011627197265625, -0.00949859619140625, 0.0008363723754882812, -0.0243682861328125, 0.032470703125, -0.022125244140625, 0.019775390625, -0.005901336669921875, 0.0116119384765625, -0.01532745361328125, 0.0281829833984375, -0.01727294921875, -0.0262603759765625, -0.0229949951171875, 0.0069427490234375, -0.01407623291015625, 0.051788330078125, -0.002529144287109375, -0.0310211181640625, -0.0361328125, 0.0271759033203125, -0.03125, -0.0318603515625, 0.00920867919921875, 0.04425048828125, -0.0018291473388671875, -0.0198211669921875, -0.03533935546875, 0.0117034912109375, -0.003345489501953125, -0.021484375, -0.00943756103515625, -0.00441741943359375, 0.021484375, -0.00885772705078125, -0.016448974609375, 0.0009379386901855469, 0.032073974609375, -0.00004762411117553711, -0.0166168212890625, -0.05889892578125, -0.003986358642578125, -0.007537841796875, 0.021759033203125, -0.01238250732421875, -0.00426483154296875, -0.052947998046875, -0.0254669189453125, -0.02703857421875, -0.0955810546875, -0.0430908203125, 0.008148193359375, 0.000028133392333984375, -0.017578125, 0.0214080810546875, 0.087158203125, -0.036712646484375, -0.0133819580078125, -0.030487060546875, -0.0015048980712890625, -0.03570556640625, -0.03533935546875, 0.00439453125, -0.0182647705078125, -0.001220703125, -0.0152587890625, 0.0263519287109375, 0.039306640625, -0.0323486328125, 0.01241302490234375, -0.00946807861328125, -0.05364990234375, -0.0166168212890625, 0.0310821533203125, -0.0200042724609375, 0.00734710693359375, 0.0247802734375, -0.00592041015625, -0.0203399658203125, -0.00833892822265625, -0.0287933349609375, 0.0037097930908203125, 0.026153564453125, -0.00353240966796875, -0.0162353515625, 0.014129638671875, -0.0181732177734375, -0.0035400390625, -0.03192138671875, 0.0227508544921875, 0.09832763671875, 0.03533935546875, 0.003910064697265625, -0.0201873779296875, 0.0014181137084960938, 0.01245880126953125, -0.0011234283447265625, -0.0156707763671875, 0.025146484375, 0.0003333091735839844, 0.010833740234375, 0.00725555419921875, 0.0278778076171875, 0.05194091796875, 0.0159759521484375, -0.028076171875, 0.006011962890625, -0.023406982421875, -0.061187744140625, 0.017669677734375, 0.008270263671875, 0.01861572265625, -0.010009765625, -0.0455322265625, 0.006824493408203125, -0.03143310546875, 0.05438232421875, -0.045440673828125, 0.05084228515625, 0.0110931396484375, 0.00620269775390625, 0.01270294189453125, -0.0301971435546875, -0.015228271484375, -0.0498046875, -0.0229339599609375, 0.01538848876953125, -0.0189971923828125, -0.0004944801330566406, -0.0309295654296875, 0.01033782958984375, -0.020477294921875, -0.0194244384765625, 0.016082763671875, -0.00858306884765625, -0.050201416015625, 0.016693115234375, 0.033233642578125, -0.00890350341796875, -0.01267242431640625, -0.025634765625, 0.02142333984375, -0.043792724609375, -0.0005254745483398438, 0.003963470458984375, 0.063232421875, 0.031646728515625, 0.036651611328125, 0.039337158203125, -0.0172271728515625, 0.00681304931640625, 0.0240020751953125, -0.02978515625, -0.0531005859375, -0.01140594482421875, -0.0041351318359375, -0.036376953125, 0.0302886962890625, 0.0438232421875, 0.003849029541015625, -0.0176849365234375, 0.00908660888671875, -0.086669921875, 0.0061187744140625, -0.03131103515625, 0.02288818359375, -0.046783447265625, 0.0296630859375, 0.05633544921875, 0.01983642578125, -0.046844482421875, -0.007434844970703125, -0.01168060302734375, -0.02911376953125, -0.007770538330078125, -0.03631591796875, -0.032958984375, -0.021820068359375, -0.060791015625, 0.002197265625, -0.06524658203125, 0.012664794921875, 0.06280517578125, -0.02740478515625, -0.01953125, -0.04510498046875, 0.027984619140625, -0.01189422607421875, -0.058319091796875, 0.064208984375, 0.040771484375, 0.044097900390625, -0.01087188720703125, 0.005779266357421875, 0.0194854736328125, -0.04718017578125, -0.00019621849060058594, 0.045562744140625, 0.0292816162109375, -0.0170745849609375, -0.006725311279296875, 0.0215911865234375, -0.005313873291015625, -0.050140380859375, 0.0037136077880859375, 0.0019779205322265625, 0.0382080078125, 0.072265625, -0.0276947021484375, -0.01904296875, 0.00524139404296875, -0.0304718017578125, 0.00884246826171875, 0.0219573974609375, -0.01438140869140625, 0.014251708984375, -0.0230255126953125, 0.023406982421875, -0.02008056640625, -0.0243682861328125, 0.01157379150390625, -0.0237884521484375, 0.0455322265625, -0.033966064453125, 0.02655029296875, 0.017730712890625, -0.00247955322265625, 0.0004200935363769531, 0.007335662841796875, -0.0574951171875, 0.00787353515625, 0.00757598876953125, -0.03460693359375, 0.03680419921875, -0.037567138671875, 0.016754150390625, 0.0205535888671875, 0.00042700767517089844, -0.004734039306640625, 0.039825439453125, -0.00004935264587402344, -0.01934814453125, 0.0014247894287109375, -0.0285186767578125, 0.0016651153564453125, -0.00797271728515625, -0.0008530616760253906, -0.0157012939453125, 0.0033931732177734375, 0.062225341796875, -0.01410675048828125, 0.043487548828125, 0.01534271240234375, 0.00469207763671875, 0.01251983642578125, -0.054718017578125, 0.042816162109375, -0.0533447265625, 0.048065185546875, 0.0634765625, -0.00879669189453125, 0.004955291748046875, 0.01169586181640625, 0.01290130615234375, 0.033233642578125, -0.0247344970703125, -0.030364990234375, 0.0284576416015625, -0.08990478515625, -0.0005846023559570312, 0.025299072265625, 0.08197021484375, 0.00876617431640625, -0.02685546875, 0.02398681640625, 0.04217529296875, -0.05316162109375, -0.09600830078125, -0.0147247314453125, -0.0126495361328125, 0.037017822265625, -0.0211639404296875, 0.0011625289916992188, -0.0297393798828125, -0.0018482208251953125, 0.0099029541015625, 0.01490020751953125, 0.0012693405151367188, -0.0186614990234375, 0.00687408447265625, -0.052398681640625, -0.0330810546875, 0.0016889572143554688, 0.0096435546875, 0.012054443359375, 0.03302001953125, 0.00980377197265625, -0.04608154296875, 0.019744873046875, 0.008087158203125, -0.03643798828125, 0.01035308837890625, 0.03125, 0.0168304443359375, -0.005939483642578125, 0.018951416015625, -0.032684326171875, 0.044189453125, -0.035858154296875, -0.03607177734375, 0.00981903076171875, 0.0174713134765625, 0.041168212890625, -0.046478271484375, -0.0372314453125, 0.05419921875, 0.0206756591796875, -0.007404327392578125, -0.016876220703125, -0.0284271240234375, -0.037872314453125, -0.01221466064453125, 0.00655364990234375, 0.01177978515625, -0.031982421875, 0.021942138671875, 0.03497314453125, 0.032501220703125, -0.0169219970703125, 0.01361083984375, 0.036163330078125, 0.0133819580078125, 0.016845703125, -0.025299072265625, 0.0109405517578125, -0.02423095703125, -0.002899169921875, -0.01006317138671875, -0.002460479736328125, -0.0270233154296875, -0.0162353515625, -0.042755126953125, -0.033203125, 0.0491943359375, 0.015625, 0.0631103515625, -0.025543212890625, -0.057708740234375, -0.0205841064453125, 0.105712890625, -0.06390380859375, -0.03936767578125, -0.008636474609375, 0.01154327392578125, 0.0487060546875, -0.020721435546875, 0.0245208740234375, -0.050537109375, -0.060455322265625, 0.0200347900390625, -0.008087158203125, -0.01441192626953125, -0.028472900390625, 0.01629638671875, -0.0523681640625, -0.0168609619140625, 0.0194244384765625, -0.06329345703125, 0.05645751953125, 0.0128631591796875, 0.0029964447021484375, 0.0240478515625, -0.027069091796875, -0.07562255859375, -0.0263824462890625, -0.0005412101745605469, -0.041229248046875, 0.0272369384765625, 0.0017557144165039062, 0.0472412109375, -0.016998291015625, 0.0172271728515625, -0.0078277587890625, 0.03228759765625, -0.0173187255859375, 0.0175933837890625, -0.0113525390625, -0.028106689453125, -0.015869140625, -0.04290771484375, -0.004810333251953125, -0.035430908203125, 0.00396728515625, -0.0181427001953125, -0.043548583984375, 0.03155517578125, -0.032989501953125, 0.0015096664428710938, -0.0244598388671875, -0.021240234375, -0.00774383544921875, 0.00811767578125, -0.0267333984375, 0.01084136962890625, -0.006099700927734375, -0.03460693359375, 0.031280517578125, 0.0121612548828125, -0.015838623046875, 0.0220489501953125, 0.056396484375, -0.007598876953125, -0.0265960693359375, -0.1060791015625, -0.0496826171875, 0.003448486328125, -0.020782470703125, 0.056915283203125, 0.034576416015625, 0.028717041015625, 0.004703521728515625, -0.0199432373046875, -0.034698486328125, -0.014068603515625, 0.067626953125, -0.01065826416015625, -0.027374267578125, 0.005031585693359375, -0.0487060546875, 0.03173828125, 0.039031982421875, -0.004268646240234375, 0.0184326171875, 0.0238494873046875, 0.0302276611328125, 0.0007929801940917969, -0.05108642578125, -0.04833984375, -0.06640625, 0.015899658203125, -0.02117919921875, 0.00545501708984375, 0.0019445419311523438, 0.005130767822265625, 0.0340576171875, 0.016754150390625, -0.01397705078125, -0.01047515869140625, 0.058135986328125, -0.00228118896484375, 0.036041259765625, -0.018463134765625, -0.01519012451171875, -0.056365966796875, -0.01544952392578125, 0.07647705078125, 0.033538818359375, -0.0390625, 0.02410888671875, -0.0242919921875, 0.00363922119140625, 0.0099334716796875, 0.006664276123046875, 0.015655517578125, 0.032562255859375, -0.0298614501953125, -0.01294708251953125, 0.0191497802734375, 0.00511932373046875, -0.03912353515625, 0.01169586181640625, 0.02105712890625, -0.01617431640625, 0.07000732421875, 0.0238494873046875, -0.007274627685546875, 0.04986572265625, -0.0235748291015625, 0.05902099609375, 0.034820556640625, 0.039154052734375, 0.0081634521484375, -0.015167236328125, -0.01312255859375, 0.0238189697265625, -0.03997802734375, -0.042205810546875, -0.0266265869140625, 0.057098388671875, 0.040069580078125, 0.003261566162109375, -0.022552490234375, -0.0010442733764648438, 0.00661468505859375, 0.0024547576904296875, -0.022613525390625, 0.0160675048828125, 0.0018739700317382812, 0.020904541015625, -0.0034332275390625, -0.00785064697265625, 0.0081329345703125, -0.0161285400390625, -0.0006203651428222656, -0.053009033203125, 0.0192413330078125, -0.0009617805480957031, 0.0151214599609375, -0.0038967132568359375, -0.0231475830078125, 0.01025390625, -0.03826904296875, -0.0084686279296875, 0.0302734375, 0.0227813720703125, -0.032379150390625, -0.0260009765625, 0.0201568603515625, 0.0170135498046875, 0.037841796875, -0.00897979736328125, -0.04095458984375, 0.041839599609375, -0.0114898681640625, 0.056182861328125, 0.00572967529296875, 0.0189666748046875, -0.0215911865234375, -0.033935546875, -0.035400390625, 0.011993408203125, -0.023193359375, -0.0164337158203125, -0.004451751708984375, -0.01398468017578125, 0.01349639892578125, -0.0200958251953125, -0.0029392242431640625, -0.01116943359375, 0.0169830322265625, 0.0019025802612304688, -0.0027866363525390625, -0.029022216796875, 0.039794921875, 0.0274200439453125, -0.00844573974609375, 0.00823211669921875, 0.047576904296875, 0.033294677734375, -0.0235595703125, 0.0174407958984375, -0.061859130859375, -0.0011777877807617188, -0.0192413330078125, 0.006275177001953125, -0.023345947265625, -0.0222930908203125, -0.002162933349609375, 0.01409912109375, -0.02923583984375, -0.00423431396484375, -0.021514892578125, 0.018951416015625, -0.0186767578125, 0.0202178955078125, -0.01493072509765625, -0.034881591796875, 0.01248931884765625, -0.014190673828125, 0.034698486328125, -0.00940704345703125, -0.047027587890625, -0.01396942138671875, 0.032623291015625, -0.0128936767578125, 0.01739501953125, 0.023529052734375, 0.001590728759765625, 0.0291595458984375, 0.012664794921875, 0.027740478515625, 0.00919342041015625, -0.02032470703125, 0.0086212158203125, -0.0008769035339355469, 0.037567138671875, -0.0254364013671875, -0.0148773193359375, 0.014617919921875, -0.031890869140625, -0.00904083251953125, 0.01535797119140625, 0.0416259765625, -0.0192718505859375, 0.0181427001953125, 0.022857666015625, 0.008026123046875, 0.01180267333984375, 0.01537322998046875, 0.0182037353515625, -0.002666473388671875, 0.01102447509765625, 0.034210205078125, -0.0029163360595703125, 0.0133056640625, 0.004055023193359375, 0.007610321044921875, -0.01097869873046875, 0.015380859375, -0.0020389556884765625, -0.041961669921875, 0.0104827880859375, 0.038055419921875, -0.0018854141235351562, -0.0179443359375, -0.00542449951171875, 0.0298919677734375, -0.0140533447265625, -0.0897216796875, 0.0289154052734375, -0.0274505615234375, -0.0091400146484375, -0.011077880859375, 0.0281982421875, -0.000736236572265625, 0.040252685546875, -0.0058746337890625, -0.006595611572265625, 0.01427459716796875, -0.033172607421875, -0.05584716796875, -0.0287322998046875, 0.0293731689453125, 0.017486572265625, -0.08197021484375, 0.04248046875, -0.044891357421875, -0.02349853515625, -0.0182037353515625, -0.0018110275268554688, 0.09130859375, -0.056640625, -0.00391387939453125, 0.035888671875, 0.034393310546875, -0.0177764892578125, -0.03271484375, 0.0123138427734375, -0.08465576171875, -0.0223388671875, -0.01042938232421875, -0.003719329833984375, -0.00905609130859375, -0.035888671875, -0.107666015625, 0.0718994140625, 0.011932373046875, 0.05096435546875, -0.01235198974609375, 0.019287109375, -0.01282501220703125, -0.0009088516235351562, -0.0160064697265625, 0.061798095703125, -0.01030731201171875, 0.032623291015625, -0.039825439453125, 0.0017604827880859375, 0.01189422607421875, 0.040435791015625, 0.101806640625, 0.0210113525390625, -0.0048370361328125, -0.00629425048828125, 0.0540771484375, 0.037811279296875, -0.02337646484375, 0.025909423828125, -0.0092010498046875, 0.03521728515625, 0.060302734375, -0.049774169921875, 0.0218658447265625, 0.021026611328125, -0.00563812255859375, 0.0185699462890625, 0.00981903076171875, 0.0065765380859375, 0.0255889892578125, -0.0040435791015625, -0.01529693603515625, 0.0152435302734375, 0.01149749755859375, 0.0018453598022460938, 0.0288543701171875, 0.0184173583984375, 0.037353515625, -0.036651611328125, -0.0303497314453125, -0.0102996826171875, 0.0411376953125, 0.015228271484375, 0.035064697265625, 0.0277862548828125, 0.01126861572265625, 0.045440673828125, -0.005695343017578125, 0.023773193359375, 0.0016527175903320312, -0.00847625732421875, 0.04620361328125, 0.040283203125, 0.0303497314453125, -0.038177490234375, -0.0182952880859375, 0.046356201171875, 0.0743408203125, -0.044403076171875, -0.03863525390625, 0.00801849365234375, 0.0062255859375, -0.0037631988525390625, -0.00867462158203125, -0.002780914306640625, -0.0176544189453125, 0.048248291015625, -0.03497314453125, -0.0082855224609375, 0.0176849365234375, -0.0103607177734375, 0.0032787322998046875, 0.038177490234375, 0.000007271766662597656, -0.0125579833984375, -0.04840087890625, 0.03436279296875, 0.01415252685546875, 0.04833984375, 0.007293701171875, 0.048248291015625, -0.007659912109375, -0.01043701171875, -0.0012750625610351562, 0.00725555419921875, 0.0033168792724609375, -0.01401519775390625, -0.0550537109375, -0.07427978515625, 0.025848388671875, 0.058349609375, 0.00920867919921875, 0.0241241455078125, 0.061431884765625, 0.0277099609375, -0.057464599609375, -0.02471923828125, -0.0196533203125, -0.04388427734375, -0.0369873046875, -0.005084991455078125, -0.05242919921875, -0.019805908203125, -0.039764404296875, 0.0078582763671875, 0.050872802734375, -0.05194091796875, -0.0036525726318359375, 0.01329803466796875, 0.00943756103515625, 0.0159912109375, 0.02978515625, -0.0023651123046875, -0.035980224609375, 0.005100250244140625, -0.061981201171875, 0.020599365234375, -0.05084228515625, -0.055084228515625, -0.01113128662109375, 0.0163726806640625, -0.0257720947265625, 0.0341796875, 0.0240478515625, -0.021484375, 0.02349853515625, 0.0100250244140625, 0.0186920166015625, 0.0304718017578125, 0.03240966796875, 0.0201873779296875, -0.038116455078125, -0.022186279296875, 0.008819580078125, 0.0308990478515625, 0.008026123046875, -0.02581787109375, 0.0230865478515625, 0.037841796875, -0.034271240234375, 0.06927490234375, -0.06890869140625, -0.0244903564453125, 0.0293731689453125, -0.00978851318359375, -0.0026416778564453125, -0.006519317626953125, -0.0274200439453125, -0.017974853515625, 0.0389404296875, -0.00933074951171875, -0.01253509521484375, -0.047943115234375, 0.03936767578125, -0.012451171875, 0.03131103515625, -0.0009169578552246094, 0.0284271240234375, -0.009490966796875, -0.026153564453125, 0.060760498046875, 0.05914306640625, 0.0161895751953125, 0.03582763671875, 0.0060882568359375, -0.031494140625, 0.03802490234375, -0.04962158203125, 0.046600341796875, 0.0279693603515625, 0.0061187744140625, 0.0061798095703125, -0.0019216537475585938, -0.01541900634765625, -0.0078582763671875, 0.019775390625, -0.0098114013671875, 0.01328277587890625, -0.05609130859375, -0.041656494140625, -0.0024394989013671875, 0.0217132568359375, 0.0031337738037109375, 0.0149688720703125, -0.031005859375, -0.017333984375, -0.010986328125, 0.049652099609375, -0.0143585205078125, 0.02105712890625, -0.02764892578125, -0.006805419921875, 0.007007598876953125, -0.050933837890625, -0.046051025390625, -0.005863189697265625, 0.004978179931640625, -0.007381439208984375, -0.0082244873046875, 0.03656005859375, -0.03240966796875, -0.061431884765625, -0.0035419464111328125, -0.01446533203125, -0.005146026611328125, 0.0127105712890625, -0.014068603515625, -0.032196044921875, -0.035125732421875, 0.03814697265625, -0.03533935546875, -0.01169586181640625, -0.0030727386474609375, -0.0229339599609375, -0.007232666015625, -0.03369140625, 0.033966064453125, -0.0041961669921875, 0.0638427734375, -0.0185394287109375, 0.00872802734375, 0.003139495849609375, -0.0216522216796875, -0.04901123046875, 0.0187835693359375, -0.0672607421875, -0.030029296875, -0.05352783203125, 0.035675048828125, 0.0214385986328125, -0.0304412841796875, -0.0689697265625, 0.04949951171875, -0.03839111328125, -0.0256500244140625, -0.028594970703125, -0.0110931396484375, 0.006778717041015625, 0.0023193359375, -0.004878997802734375, -0.00035953521728515625, -0.0325927734375, 0.026824951171875, -0.006744384765625, 0.0382080078125, -0.00014841556549072266, 0.004169464111328125, -0.018829345703125, 0.03753662109375, 0.01800537109375, -0.005283355712890625, 0.0020275115966796875, -0.00804901123046875, 0.03948974609375, 0.0496826171875, -0.015380859375, 0.032012939453125, -0.0148773193359375, -0.052459716796875, -0.017364501953125, 0.003955841064453125, -0.0264739990234375, 0.01119232177734375, 0.0648193359375, 0.09442138671875, 0.0220947265625, -0.05767822265625, -0.0100555419921875, -0.016082763671875, -0.031402587890625, 0.0170440673828125, 0.0401611328125, -0.06854248046875, -0.00958251953125, 0.042877197265625, -0.02008056640625, -0.01340484619140625, -0.0179901123046875, -0.0440673828125, -0.01248931884765625, -0.034698486328125, 0.002338409423828125, -0.047088623046875, 0.061920166015625, 0.005245208740234375, -0.01629638671875, -0.01483154296875, -0.0268707275390625, -0.01085662841796875, -0.0136871337890625, -0.035125732421875, -0.007503509521484375, -0.0011653900146484375, -0.007442474365234375, 0.00797271728515625, 0.00685882568359375, -0.007221221923828125, -0.01319122314453125, -0.007659912109375, -0.036712646484375, 0.0087738037109375, 0.0143585205078125, 0.006038665771484375, -0.007526397705078125, 0.00750732421875, 0.023712158203125, 0.06396484375, -0.0203857421875, 0.053497314453125, -0.003528594970703125, 0.0286102294921875, 0.003772735595703125, -0.0088653564453125, 0.04608154296875, -0.0244598388671875, -0.007488250732421875, 0.02313232421875, 0.00585174560546875, -0.07257080078125, 0.055816650390625, 0.06988525390625, 0.03912353515625, 0.03216552734375 ]
2a2b34cb3035e459df2872f941b73c02bcc8204b
Wordpress Stackexchange Q: Determining Slug Before and After Edit If I were to edit a post or a page, how would I determine what the slug was before the edit, and again afterwards to compare them and see if it was changed? Also, would the same method work for any Custom Post Types created, or is that done differently? A: If the post/page was previously published, and you changed the slug when you edited the page, the old slug gets put into the post meta table with the name _wp_old_slug. So you can use get_post_meta( $post->ID, '_wp_old_slug', $single = false ); to retrieve the former slug(s). I see no reason this wouldn't work with CPTs, as they're just a special type of post. Reference: * *wp_check_for_changed_slugs() *get_post_meta()
Q: Determining Slug Before and After Edit If I were to edit a post or a page, how would I determine what the slug was before the edit, and again afterwards to compare them and see if it was changed? Also, would the same method work for any Custom Post Types created, or is that done differently? A: If the post/page was previously published, and you changed the slug when you edited the page, the old slug gets put into the post meta table with the name _wp_old_slug. So you can use get_post_meta( $post->ID, '_wp_old_slug', $single = false ); to retrieve the former slug(s). I see no reason this wouldn't work with CPTs, as they're just a special type of post. Reference: * *wp_check_for_changed_slugs() *get_post_meta()
wordpress
{ "language": "en", "length": 125, "provenance": "stackexchange_00019.jsonl.gz:433447", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/102674" }
[ 0.0303955078125, -0.0064849853515625, 0.00841522216796875, -0.0084991455078125, 0.00472259521484375, -0.024505615234375, 0.045257568359375, -0.0308837890625, -0.00685882568359375, 0.01522064208984375, -0.0164642333984375, 0.025390625, -0.015380859375, -0.0113677978515625, 0.004749298095703125, -0.018798828125, 0.034912109375, -0.023956298828125, 0.0181884765625, -0.01520538330078125, 0.005340576171875, -0.000026464462280273438, 0.0316162109375, 0.07806396484375, 0.028594970703125, -0.032012939453125, 0.04876708984375, -0.00475311279296875, 0.0277252197265625, -0.01197052001953125, 0.027862548828125, -0.0221099853515625, 0.001155853271484375, -0.0023517608642578125, 0.02349853515625, 0.0389404296875, 0.005584716796875, 0.0130157470703125, 0.039794921875, 0.0015621185302734375, 0.010223388671875, -0.00894927978515625, -0.00756072998046875, -0.0161895751953125, -0.0163116455078125, -0.02410888671875, 0.007049560546875, -0.0341796875, 0.02777099609375, 0.0391845703125, -0.0037021636962890625, -0.01279449462890625, -0.00984954833984375, 0.0321044921875, -0.01715087890625, -0.0254669189453125, -0.006481170654296875, 0.03826904296875, 0.016143798828125, -0.020294189453125, -0.0253143310546875, 0.0400390625, 0.0055999755859375, -0.007297515869140625, -0.0237274169921875, 0.0038623809814453125, 0.008636474609375, 0.002376556396484375, -0.04779052734375, -0.03692626953125, 0.0279998779296875, -0.0211029052734375, 0.007068634033203125, -0.005126953125, 0.0406494140625, -0.0213470458984375, 0.01404571533203125, 0.02972412109375, -0.011932373046875, 0.0465087890625, 0.04144287109375, -0.0171661376953125, -0.003345489501953125, -0.01427459716796875, 0.0261383056640625, 0.0031070709228515625, -0.00101470947265625, -0.0265045166015625, -0.033355712890625, -0.01751708984375, -0.0285186767578125, 0.0037593841552734375, -0.0125579833984375, -0.01326751708984375, -0.0382080078125, -0.018798828125, 0.050628662109375, 0.050811767578125, -0.050537109375, -0.047943115234375, -0.002162933349609375, -0.035003662109375, -0.022216796875, -0.01064300537109375, 0.0233612060546875, 0.0059814453125, -0.0290374755859375, -0.00942230224609375, 0.0506591796875, 0.040374755859375, -0.01010894775390625, 0.0228729248046875, -0.034210205078125, -0.020416259765625, -0.015655517578125, 0.0670166015625, -0.0172576904296875, -0.0217132568359375, -0.020538330078125, 0.002666473388671875, 0.0162200927734375, 0.019927978515625, 0.07421875, -0.0877685546875, 0.0288238525390625, 0.00894927978515625, -0.059906005859375, -0.05352783203125, 0.023681640625, 0.04388427734375, -0.040740966796875, -0.0270843505859375, 0.07501220703125, 0.041259765625, 0.023406982421875, -0.039031982421875, -0.0267181396484375, 0.007221221923828125, -0.0220184326171875, 0.038970947265625, -0.040374755859375, -0.0299835205078125, 0.0224761962890625, -0.04248046875, 0.0221710205078125, 0.02777099609375, 0.01143646240234375, 0.012481689453125, 0.016632080078125, -0.0423583984375, 0.0157318115234375, -0.037994384765625, 0.050994873046875, -0.0028171539306640625, -0.02392578125, -0.049407958984375, 0.016632080078125, -0.03997802734375, 0.0045013427734375, -0.05108642578125, -0.005985260009765625, -0.007450103759765625, 0.0210113525390625, -0.0418701171875, -0.052215576171875, 0.02996826171875, -0.04925537109375, -0.005001068115234375, 0.0158843994140625, -0.0172271728515625, 0.02740478515625, -0.006320953369140625, -0.017242431640625, -0.013397216796875, -0.008514404296875, 0.0014963150024414062, 0.0083465576171875, 0.00757598876953125, 0.0025081634521484375, 0.0621337890625, 0.03179931640625, -0.01122283935546875, 0.032073974609375, -0.0012912750244140625, -0.06146240234375, 0.023651123046875, 0.0207977294921875, 0.06121826171875, 0.0283203125, 0.01143646240234375, 0.018585205078125, -0.015594482421875, -0.039764404296875, 0.049041748046875, 0.015655517578125, -0.0126190185546875, -0.003894805908203125, 0.0215911865234375, -0.0012531280517578125, -0.06341552734375, -0.0155792236328125, 0.0306243896484375, -0.0347900390625, 0.0221099853515625, -0.0816650390625, 0.02386474609375, -0.0242462158203125, 0.043487548828125, 0.0062255859375, 0.0268402099609375, 0.004486083984375, -0.025726318359375, -0.01531219482421875, 0.0006551742553710938, -0.016571044921875, -0.00567626953125, -0.01323699951171875, -0.04461669921875, -0.012847900390625, -0.0028514862060546875, -0.0290679931640625, 0.024444580078125, -0.060821533203125, 0.005584716796875, 0.04254150390625, -0.006500244140625, -0.019256591796875, -0.0187225341796875, 0.01471710205078125, 0.0115966796875, -0.048431396484375, 0.032379150390625, 0.03662109375, 0.019775390625, -0.0166778564453125, 0.01544189453125, 0.02374267578125, -0.03411865234375, -0.0137481689453125, 0.03460693359375, 0.0257720947265625, 0.0013856887817382812, -0.0193023681640625, 0.0009002685546875, 0.0269012451171875, -0.04052734375, -0.004154205322265625, 0.0023899078369140625, 0.03521728515625, 0.0791015625, -0.01287841796875, 0.0218505859375, 0.005340576171875, 0.038238525390625, 0.006793975830078125, 0.031829833984375, -0.0311737060546875, 0.0200653076171875, 0.0118560791015625, -0.01407623291015625, -0.0167388916015625, -0.0193634033203125, 0.022216796875, -0.01953125, 0.01229095458984375, 0.01715087890625, 0.0281524658203125, 0.020477294921875, -0.024658203125, 0.00504302978515625, 0.026031494140625, 0.01183319091796875, 0.0185699462890625, 0.0221099853515625, 0.036102294921875, 0.026885986328125, -0.026580810546875, -0.02423095703125, 0.04058837890625, 0.025177001953125, -0.04656982421875, -0.0128173828125, 0.01102447509765625, -0.005725860595703125, -0.0162811279296875, -0.07257080078125, 0.0300750732421875, -0.025054931640625, 0.0203399658203125, 0.0003609657287597656, 0.0159759521484375, 0.023162841796875, -0.023193359375, 0.04974365234375, 0.00077056884765625, -0.031829833984375, 0.023712158203125, -0.0012121200561523438, 0.01558685302734375, 0.00806427001953125, 0.03277587890625, 0.060699462890625, -0.0024433135986328125, 0.01096343994140625, 0.001865386962890625, -0.035369873046875, -0.00910186767578125, 0.01776123046875, -0.00768280029296875, -0.0229644775390625, -0.040740966796875, 0.029327392578125, 0.0163116455078125, 0.01198577880859375, -0.01024627685546875, -0.040557861328125, -0.00786590576171875, -0.01085662841796875, -0.08685302734375, -0.04571533203125, -0.061920166015625, -0.06463623046875, -0.00620269775390625, 0.00004470348358154297, -0.023590087890625, 0.009979248046875, 0.01751708984375, 0.031646728515625, 0.035186767578125, -0.03302001953125, -0.053436279296875, -0.053802490234375, -0.06280517578125, -0.04168701171875, 0.00525665283203125, 0.008148193359375, 0.0023136138916015625, 0.007160186767578125, -0.0033321380615234375, -0.0347900390625, 0.003803253173828125, -0.0209503173828125, -0.0179290771484375, -0.02227783203125, 0.002483367919921875, -0.0152130126953125, 0.034881591796875, 0.0032787322998046875, 0.040771484375, 0.0260772705078125, -0.0067291259765625, -0.026275634765625, 0.007396697998046875, -0.0007729530334472656, 0.0304412841796875, 0.0113983154296875, -0.0101165771484375, 0.0182647705078125, 0.04229736328125, -0.0199737548828125, 0.003261566162109375, -0.0263671875, -0.01070404052734375, 0.03765869140625, -0.0175323486328125, 0.0218963623046875, -0.01446533203125, 0.04949951171875, 0.021270751953125, 0.0151824951171875, 0.043212890625, 0.00952911376953125, -0.0027713775634765625, -0.011199951171875, -0.0176239013671875, -0.0494384765625, 0.01934814453125, -0.001331329345703125, 0.016143798828125, 0.00940704345703125, 0.0401611328125, -0.004608154296875, 0.0240478515625, -0.06884765625, -0.053680419921875, 0.03131103515625, -0.06427001953125, 0.00860595703125, -0.05352783203125, -0.0117034912109375, -0.0232696533203125, 0.0797119140625, -0.0283355712890625, -0.02978515625, -0.0220489501953125, -0.0011720657348632812, 0.0226898193359375, 0.00865936279296875, 0.011016845703125, -0.01267242431640625, -0.087646484375, 0.0350341796875, 0.0105743408203125, -0.031097412109375, -0.03179931640625, 0.0634765625, -0.068603515625, -0.032470703125, 0.044281005859375, -0.039398193359375, 0.01479339599609375, 0.01517486572265625, 0.0004329681396484375, -0.004955291748046875, -0.0548095703125, -0.004070281982421875, -0.045013427734375, -0.007228851318359375, -0.003566741943359375, 0.0396728515625, 0.010955810546875, -0.01232147216796875, -0.01459503173828125, 0.0272216796875, 0.0166168212890625, 0.0123291015625, 0.004810333251953125, -0.0008211135864257812, 0.00864410400390625, -0.00016129016876220703, 0.000044405460357666016, -0.015838623046875, -0.0120849609375, -0.0594482421875, -0.0550537109375, -0.0245819091796875, -0.03887939453125, 0.018798828125, -0.01727294921875, -0.006195068359375, -0.0288848876953125, -0.0107879638671875, 0.00012743473052978516, 0.037139892578125, 0.0001456737518310547, 0.0036945343017578125, -0.029083251953125, -0.0574951171875, 0.036407470703125, 0.0311126708984375, -0.034759521484375, -0.0008082389831542969, 0.051513671875, 0.0280609130859375, -0.040863037109375, -0.043701171875, -0.0216522216796875, 0.032989501953125, 0.056732177734375, 0.008758544921875, 0.0032291412353515625, -0.01503753662109375, 0.006877899169921875, 0.03070068359375, -0.06585693359375, -0.0308837890625, 0.06500244140625, 0.0190887451171875, 0.0250701904296875, -0.03814697265625, -0.05316162109375, 0.10076904296875, 0.0269012451171875, -0.03070068359375, 0.007781982421875, -0.0158233642578125, 0.049285888671875, -0.023040771484375, 0.02734375, -0.0498046875, -0.08111572265625, 0.02557373046875, 0.00786590576171875, 0.0423583984375, 0.0196685791015625, -0.01192474365234375, 0.0848388671875, 0.034271240234375, 0.000690460205078125, -0.051544189453125, 0.021331787109375, -0.0219879150390625, 0.0458984375, -0.045013427734375, 0.00574493408203125, -0.058990478515625, -0.0032405853271484375, 0.0260467529296875, -0.032989501953125, -0.038482666015625, -0.004749298095703125, -0.0274200439453125, -0.005428314208984375, 0.04925537109375, 0.01033782958984375, 0.042877197265625, 0.0143890380859375, -0.0316162109375, -0.01090240478515625, -0.0213623046875, -0.0009217262268066406, -0.055908203125, -0.01522064208984375, 0.0225372314453125, -0.0247039794921875, 0.0186767578125, 0.05584716796875, 0.0150604248046875, 0.0106353759765625, -0.01412200927734375, -0.0194854736328125, -0.004688262939453125, 0.0189361572265625, 0.0204010009765625, 0.0007076263427734375, -0.0014362335205078125, 0.0007462501525878906, 0.0295562744140625, -0.0221099853515625, -0.0208892822265625, 0.0229034423828125, 0.035400390625, -0.04736328125, -0.0154571533203125, 0.0380859375, -0.00594329833984375, 0.0073089599609375, 0.01528167724609375, 0.01314544677734375, -0.046356201171875, 0.0261383056640625, 0.04205322265625, -0.01074981689453125, -0.02203369140625, -0.0186767578125, 0.0280914306640625, -0.031341552734375, 0.032470703125, -0.0015211105346679688, -0.0080108642578125, 0.00739288330078125, 0.00823974609375, -0.034149169921875, -0.00836181640625, -0.004192352294921875, 0.032958984375, -0.006866455078125, -0.015960693359375, -0.042083740234375, 0.04693603515625, -0.00676727294921875, 0.0232086181640625, -0.0178070068359375, -0.01338958740234375, 0.02423095703125, -0.0014848709106445312, 0.04388427734375, -0.0099639892578125, -0.011688232421875, 0.0191802978515625, -0.0546875, -0.0167694091796875, 0.039154052734375, -0.0280303955078125, -0.0175018310546875, -0.04620361328125, 0.00981903076171875, 0.029266357421875, -0.0004115104675292969, -0.003875732421875, 0.03045654296875, 0.01079559326171875, 0.0093231201171875, 0.046142578125, 0.016815185546875, 0.02703857421875, 0.00232696533203125, 0.041229248046875, 0.0087738037109375, -0.006378173828125, -0.03515625, -0.0283966064453125, -0.004726409912109375, -0.032684326171875, -0.0034542083740234375, -0.0236968994140625, 0.017852783203125, 0.00726318359375, 0.037139892578125, 0.003414154052734375, 0.006305694580078125, -0.034393310546875, 0.0090484619140625, -0.01409912109375, 0.0323486328125, -0.03173828125, -0.024139404296875, 0.038177490234375, -0.01470947265625, -0.0013751983642578125, -0.00766754150390625, 0.004283905029296875, 0.0139923095703125, -0.0128021240234375, 0.005130767822265625, 0.01396942138671875, -0.031280517578125, 0.02789306640625, 0.056365966796875, 0.02288818359375, 0.058837890625, 0.0189056396484375, 0.0291748046875, 0.05059814453125, -0.057373046875, 0.014984130859375, 0.036224365234375, 0.042449951171875, -0.00804901123046875, 0.0243377685546875, 0.0447998046875, -0.007808685302734375, 0.004180908203125, 0.03582763671875, 0.0400390625, -0.06390380859375, 0.01059722900390625, 0.02789306640625, -0.0224151611328125, -0.028656005859375, 0.0194549560546875, -0.0270233154296875, -0.0016765594482421875, 0.018035888671875, -0.09808349609375, -0.0289306640625, 0.00992584228515625, -0.012939453125, -0.014129638671875, -0.02386474609375, 0.059417724609375, 0.027679443359375, 0.022003173828125, 0.02825927734375, -0.02398681640625, 0.04962158203125, -0.0440673828125, -0.00894927978515625, 0.008392333984375, -0.025299072265625, -0.048248291015625, 0.035125732421875, -0.03094482421875, 0.03155517578125, 0.04498291015625, 0.005779266357421875, 0.044189453125, 0.0262603759765625, 0.016571044921875, -0.0171966552734375, -0.003337860107421875, -0.018798828125, -0.02813720703125, -0.04083251953125, -0.004974365234375, 0.046905517578125, -0.00555419921875, 0.03021240234375, 0.01309967041015625, -0.0272979736328125, -0.003997802734375, -0.0198974609375, 0.03131103515625, -0.035614013671875, -0.0020809173583984375, 0.00743865966796875, 0.038482666015625, 0.01947021484375, 0.0039520263671875, -0.0099945068359375, -0.010589599609375, 0.00722503662109375, -0.01122283935546875, -0.03741455078125, 0.0087890625, -0.0087432861328125, -0.08685302734375, 0.10858154296875, 0.007526397705078125, 0.061187744140625, 0.006183624267578125, 0.0251617431640625, -0.035125732421875, -0.00748443603515625, -0.0645751953125, 0.09033203125, -0.035858154296875, 0.0838623046875, -0.11724853515625, -0.016876220703125, 0.01323699951171875, 0.03228759765625, 0.08197021484375, 0.0195159912109375, 0.0010309219360351562, -0.0008101463317871094, 0.0482177734375, 0.005214691162109375, -0.046600341796875, 0.034942626953125, -0.0019502639770507812, 0.0330810546875, 0.055389404296875, -0.0552978515625, 0.030242919921875, -0.0181427001953125, -0.00379180908203125, 0.01456451416015625, -0.0010633468627929688, -0.003017425537109375, -0.0169830322265625, -0.0235595703125, -0.0129852294921875, -0.0121002197265625, 0.00787353515625, -0.0209808349609375, 0.020751953125, 0.038818359375, 0.06298828125, -0.0203094482421875, -0.0276641845703125, -0.01560211181640625, 0.058380126953125, 0.011749267578125, 0.00896453857421875, 0.00850677490234375, 0.00597381591796875, 0.01375579833984375, 0.00756072998046875, -0.002262115478515625, 0.029998779296875, -0.00586700439453125, 0.07012939453125, 0.031768798828125, 0.01245880126953125, -0.021484375, 0.0321044921875, 0.040191650390625, 0.0650634765625, -0.056732177734375, -0.003063201904296875, 0.0121002197265625, 0.004955291748046875, -0.003936767578125, -0.01514434814453125, 0.026702880859375, -0.002777099609375, 0.009796142578125, -0.0201873779296875, -0.01275634765625, -0.001972198486328125, 0.035247802734375, -0.019622802734375, -0.02813720703125, -0.0032024383544921875, -0.0159149169921875, -0.0740966796875, 0.032073974609375, 0.040557861328125, 0.058685302734375, 0.0154266357421875, 0.05712890625, 0.034515380859375, -0.021087646484375, -0.002185821533203125, 0.016754150390625, -0.012939453125, 0.0157012939453125, -0.0101776123046875, -0.013336181640625, -0.00205230712890625, 0.027740478515625, 0.054840087890625, 0.00795745849609375, 0.0601806640625, -0.0078582763671875, -0.0780029296875, 0.0023212432861328125, 0.00344085693359375, -0.047149658203125, 0.0533447265625, -0.051055908203125, 0.048187255859375, -0.00803375244140625, -0.0010461807250976562, -0.0615234375, 0.017822265625, 0.035430908203125, 0.007312774658203125, 0.036407470703125, 0.01044464111328125, 0.01226043701171875, 0.048919677734375, 0.04486083984375, 0.0204010009765625, 0.04931640625, -0.0225677490234375, 0.029754638671875, -0.058441162109375, -0.0623779296875, 0.02508544921875, 0.0306396484375, -0.005359649658203125, 0.004184722900390625, -0.0195770263671875, -0.0022525787353515625, 0.01081085205078125, 0.01271820068359375, -0.0011358261108398438, 0.031982421875, 0.0247955322265625, -0.0014696121215820312, -0.01471710205078125, -0.0135040283203125, 0.0034542083740234375, 0.044677734375, -0.0046844482421875, 0.05950927734375, -0.020965576171875, 0.00922393798828125, -0.007419586181640625, 0.01065826416015625, -0.02313232421875, -0.026458740234375, 0.048492431640625, -0.0098419189453125, -0.00547027587890625, 0.0006685256958007812, -0.002532958984375, 0.01136016845703125, 0.0411376953125, -0.01374053955078125, 0.008087158203125, -0.044342041015625, 0.0252685546875, 0.0012750625610351562, -0.020263671875, -0.043670654296875, -0.0176544189453125, -0.0025119781494140625, -0.006908416748046875, 0.00847625732421875, -0.01314544677734375, 0.0078125, 0.00988006591796875, -0.0254669189453125, -0.03985595703125, 0.005916595458984375, -0.006412506103515625, -0.017486572265625, 0.027557373046875, -0.007602691650390625, -0.01056671142578125, 0.0261077880859375, -0.01031494140625, 0.0169830322265625, 0.0085296630859375, 0.040069580078125, 0.01268768310546875, 0.0016946792602539062, -0.0264434814453125, -0.06085205078125, -0.00467681884765625, -0.037506103515625, -0.0001246929168701172, -0.044036865234375, 0.038818359375, 0.01483154296875, -0.067626953125, -0.036285400390625, -0.043121337890625, 0.01177978515625, 0.041534423828125, -0.01354217529296875, 0.0031681060791015625, -0.050506591796875, -0.00475311279296875, 0.0367431640625, -0.00736236572265625, -0.0152130126953125, 0.01270294189453125, -0.051239013671875, 0.01428985595703125, -0.004024505615234375, 0.0006647109985351562, 0.007228851318359375, 0.0178680419921875, -0.0189971923828125, 0.04144287109375, -0.01276397705078125, -0.02301025390625, 0.030609130859375, 0.0139007568359375, 0.051300048828125, -0.03912353515625, -0.08099365234375, 0.00992584228515625, 0.0318603515625, 0.03912353515625, 0.0160980224609375, -0.01354217529296875, 0.01953125, 0.004352569580078125, 0.004550933837890625, -0.08038330078125, -0.0300445556640625, -0.0292205810546875, 0.03717041015625, -0.0103302001953125, -0.01200103759765625, 0.002269744873046875, -0.04302978515625, -0.04681396484375, 0.037445068359375, -0.0002887248992919922, -0.0269927978515625, -0.053131103515625, 0.00510406494140625, 0.00772857666015625, -0.022216796875, -0.0171051025390625, -0.0158233642578125, -0.033599853515625, 0.028350830078125, -0.0012493133544921875, 0.056549072265625, 0.00988006591796875, -0.0178375244140625, -0.002483367919921875, 0.007526397705078125, -0.0020542144775390625, 0.0052490234375, 0.005767822265625, 0.0117340087890625, -0.0192413330078125, 0.01678466796875, -0.054290771484375, -0.0537109375, -0.0281219482421875, 0.0306243896484375, -0.0181732177734375, -0.06805419921875, -0.044708251953125, -0.00658416748046875, 0.11431884765625, 0.0687255859375, 0.031982421875, -0.062164306640625, 0.016387939453125, 0.00884246826171875, -0.0792236328125, -0.002010345458984375, 0.0478515625, -0.0677490234375, -0.0015811920166015625, 0.01483154296875, -0.0241851806640625, 0.01045989990234375, -0.043975830078125, -0.03375244140625, 0.0181732177734375, -0.01885986328125, -0.0161590576171875, -0.017578125, 0.01800537109375, 0.0083160400390625, -0.01213836669921875, 0.031768798828125, -0.02252197265625, 0.012237548828125, 0.0221710205078125, -0.028778076171875, 0.023345947265625, 0.002338409423828125, 0.00038051605224609375, -0.00887298583984375, 0.0245819091796875, 0.0248260498046875, 0.021759033203125, -0.045654296875, -0.0188140869140625, -0.0018720626831054688, -0.01428985595703125, -0.0250244140625, 0.0247344970703125, -0.0011968612670898438, -0.00582122802734375, 0.0687255859375, -0.0014200210571289062, 0.05426025390625, 0.0101318359375, 0.04559326171875, -0.0025081634521484375, -0.01334381103515625, 0.027557373046875, -0.03717041015625, -0.00420379638671875, -0.0316162109375, -0.031982421875, -0.06524658203125, 0.01313018798828125, -0.00823211669921875, -0.03167724609375, 0.0269317626953125 ]
da3d422aa138825b641e8e42e55b56848afde6e0
Wordpress Stackexchange Q: how to get page id of a page using page slug I'm pretty new to WordPress and I was wondering if I could get a page id with its slug. Is it possible please let me know? A: Use get_page_by_path($page_path): $page = get_page_by_path( 'about' ); echo get_the_title( $page ); This will return a regular post object. Documentation: https://developer.wordpress.org/reference/functions/get_page_by_path/ https://developer.wordpress.org/reference/functions/get_the_title/
Q: how to get page id of a page using page slug I'm pretty new to WordPress and I was wondering if I could get a page id with its slug. Is it possible please let me know? A: Use get_page_by_path($page_path): $page = get_page_by_path( 'about' ); echo get_the_title( $page ); This will return a regular post object. Documentation: https://developer.wordpress.org/reference/functions/get_page_by_path/ https://developer.wordpress.org/reference/functions/get_the_title/ A: There is a function url_to_postid since WordPress v1.0.0 :) This task is easiest to achieve by using this function. url_to_postid When page is top-level page, only slug has to be given. e.g. url_to_postid('slug'); When the page is in lower hierarchy level (i.e. it has parent) you have to prepend parent slug divided by slash like so: url_to_postid('parent-slug/child-slug'); Edit: if this returns 0, you should flush permalinks (open the wordpress permalinks page in admin) - this is needed only once A: I had problems with the chosen answer when trying to use the code several times in the same page. It kept on displaying all of my pages content at the same time in every instance. So I went back to thinking and came up with this simpler approach based on the WordPress Codex's documentation: <?php $query = new WP_Query( array( 'pagename' => 'about-me' ) ); while ( $query->have_posts() ) { $query->the_post(); echo '<h2>'. get_the_title() .'</h2>'; the_content(); } wp_reset_postdata(); ?> Maybe it can still be helpful to somebody out there ;D A: I've been using this .. function get_id_by_slug($page_slug) { $page = get_page_by_path($page_slug); if ($page) { return $page->ID; } else { return null; } } Hope this will help someone. A: A lot of answers here that seem overly complex, or don't describe how to get the page ID specifically. $page = get_page_by_path("your-page-slug"); if ($page) { $page_id = $page->ID; echo $page_id; } In the above description we've assigned the post object to $page - Once you have the post object you can get any of the info described here: https://codex.wordpress.org/Class_Reference/WP_Post $page->ID $page->post_status $page->post_title and a lot more A: It has been already asked and answered on this forum. I am pasting the same code from there. Use this function to retrieve page id. function get_page_by_slug($page_slug, $output = OBJECT, $post_type = 'page' ) { global $wpdb; $page = $wpdb->get_var( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_name = %s AND post_type= %s AND post_status = 'publish'", $page_slug, $post_type ) ); if ( $page ) return get_post($page, $output); return null; } A: <?php function get_page_ID_by_slug( $slug ) { $page = get_page_by_path( $slug ); if ( $page ) { return (int) $page->ID; } else { return null; } } ?> I hope this suggestion is helpful for someone.
wordpress
{ "language": "en", "length": 434, "provenance": "stackexchange_00019.jsonl.gz:433495", "question_score": "51", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/102841" }
[ 0.0094146728515625, -0.0158843994140625, 0.00539398193359375, 0.006214141845703125, -0.00846099853515625, -0.019256591796875, 0.03564453125, -0.006084442138671875, -0.00399017333984375, -0.000537872314453125, -0.043914794921875, 0.0228118896484375, -0.01373291015625, -0.022918701171875, 0.043304443359375, -0.0209808349609375, 0.0296478271484375, -0.00449371337890625, 0.0279083251953125, -0.00970458984375, 0.01033782958984375, -0.005859375, 0.0321044921875, 0.03424072265625, 0.05950927734375, -0.0736083984375, 0.01238250732421875, -0.00826263427734375, 0.028076171875, -0.02691650390625, 0.0260162353515625, 0.00887298583984375, 0.01055145263671875, -0.040863037109375, 0.06787109375, -0.0004146099090576172, 0.007717132568359375, -0.006313323974609375, 0.03857421875, -0.009796142578125, 0.029327392578125, -0.0087127685546875, 0.019989013671875, 0.0120086669921875, -0.01363372802734375, -0.027374267578125, 0.008941650390625, -0.034149169921875, -0.0001556873321533203, 0.043365478515625, 0.0029754638671875, 0.032958984375, -0.00861358642578125, 0.0687255859375, -0.003055572509765625, -0.02008056640625, 0.04595947265625, -0.0291290283203125, 0.0243072509765625, -0.0911865234375, -0.03814697265625, 0.0050201416015625, 0.058929443359375, 0.034027099609375, 0.0013399124145507812, 0.003936767578125, -0.0173797607421875, 0.0205535888671875, 0.00569915771484375, 0.0011692047119140625, 0.0011310577392578125, -0.017578125, -0.0000247955322265625, -0.01885986328125, -0.04302978515625, -0.013580322265625, 0.0149993896484375, -0.04791259765625, -0.009246826171875, 0.0044403076171875, -0.0006413459777832031, -0.03350830078125, -0.06878662109375, 0.028656005859375, 0.00021195411682128906, 0.06134033203125, -0.014862060546875, -0.0257415771484375, -0.029571533203125, -0.0122222900390625, -0.03131103515625, 0.023162841796875, 0.00890350341796875, -0.023651123046875, -0.055328369140625, 0.00626373291015625, 0.01806640625, 0.034423828125, -0.005901336669921875, 0.0291748046875, 0.0156707763671875, -0.04833984375, 0.0672607421875, -0.05303955078125, 0.004177093505859375, 0.00894927978515625, 0.0213470458984375, 0.0291900634765625, 0.0223388671875, 0.0160369873046875, -0.01479339599609375, -0.001739501953125, -0.0086822509765625, -0.005458831787109375, -0.032135009765625, 0.051300048828125, -0.011016845703125, -0.032806396484375, -0.010223388671875, 0.0024242401123046875, 0.01105499267578125, 0.00514984130859375, 0.047088623046875, -0.0009126663208007812, 0.01425933837890625, 0.0294036865234375, -0.026519775390625, -0.04888916015625, 0.03289794921875, 0.0202178955078125, -0.0310516357421875, -0.01031494140625, 0.0430908203125, 0.0252227783203125, 0.00977325439453125, -0.0238494873046875, -0.029266357421875, -0.01361846923828125, 0.0014600753784179688, -0.007366180419921875, -0.0160064697265625, -0.0009002685546875, 0.047637939453125, -0.031524658203125, -0.022003173828125, -0.00431060791015625, -0.00787353515625, 0.03839111328125, 0.00756072998046875, -0.00897216796875, -0.006992340087890625, -0.003635406494140625, -0.024688720703125, 0.034423828125, 0.03582763671875, -0.0117034912109375, -0.00420379638671875, -0.01983642578125, 0.06658935546875, -0.005130767822265625, 0.0369873046875, 0.01873779296875, 0.0078582763671875, 0.00576019287109375, -0.006618499755859375, -0.039886474609375, -0.0455322265625, -0.0163726806640625, 0.01068115234375, 0.02984619140625, 0.058074951171875, -0.01348876953125, -0.056976318359375, -0.0125885009765625, -0.0018625259399414062, -0.0187225341796875, 0.018280029296875, 0.00615692138671875, -0.0041656494140625, 0.037017822265625, 0.01006317138671875, -0.032379150390625, 0.017059326171875, -0.0099334716796875, -0.038177490234375, 0.051544189453125, 0.022186279296875, 0.0570068359375, -0.011627197265625, 0.01337432861328125, 0.0117645263671875, 0.028411865234375, -0.06585693359375, 0.029205322265625, 0.0086517333984375, -0.0029048919677734375, 0.02728271484375, 0.0162353515625, 0.0024127960205078125, -0.035125732421875, -0.002063751220703125, -0.0107269287109375, -0.0005350112915039062, 0.0457763671875, -0.0218505859375, -0.00458526611328125, -0.004344940185546875, 0.016754150390625, 0.03363037109375, 0.0142974853515625, -0.006694793701171875, -0.00980377197265625, -0.016143798828125, -0.0303497314453125, -0.06231689453125, 0.0164947509765625, -0.009124755859375, -0.06085205078125, -0.046051025390625, -0.0029048919677734375, -0.05645751953125, 0.036346435546875, -0.08148193359375, 0.0246734619140625, 0.05126953125, -0.00977325439453125, -0.019195556640625, -0.0360107421875, 0.03131103515625, 0.00458526611328125, -0.0562744140625, 0.0287017822265625, 0.016326904296875, 0.040283203125, -0.0223388671875, 0.0006051063537597656, -0.0039215087890625, -0.0208740234375, 0.005771636962890625, 0.0303192138671875, 0.039031982421875, 0.007045745849609375, 0.0007658004760742188, -0.01446533203125, 0.0183868408203125, -0.0762939453125, 0.0011434555053710938, -0.016693115234375, 0.00933837890625, 0.04931640625, 0.020233154296875, 0.045013427734375, 0.010894775390625, 0.0105438232421875, -0.006320953369140625, 0.04351806640625, -0.01522064208984375, 0.025421142578125, -0.0178680419921875, 0.01222991943359375, -0.0118255615234375, 0.004444122314453125, 0.0216064453125, -0.025482177734375, -0.033782958984375, 0.032470703125, 0.006359100341796875, 0.0343017578125, -0.00923919677734375, -0.01220703125, 0.008056640625, 0.017547607421875, -0.0034694671630859375, 0.057403564453125, 0.0293426513671875, -0.01540374755859375, -0.021636962890625, -0.024139404296875, -0.01560211181640625, 0.033294677734375, -0.01183319091796875, 0.004909515380859375, 0.017547607421875, -0.01398468017578125, 0.0119171142578125, -0.052886962890625, 0.0125732421875, -0.004055023193359375, 0.001705169677734375, 0.011962890625, 0.002964019775390625, 0.062744140625, -0.038330078125, 0.06585693359375, 0.0017137527465820312, 0.0035381317138671875, 0.07647705078125, -0.018829345703125, 0.0239410400390625, -0.015899658203125, 0.06976318359375, 0.0518798828125, -0.033782958984375, 0.016845703125, 0.0039043426513671875, -0.023223876953125, 0.0218963623046875, -0.0170440673828125, 0.000034868717193603516, 0.00765228271484375, -0.036285400390625, 0.0435791015625, 0.0088348388671875, 0.047637939453125, -0.0236358642578125, -0.048492431640625, 0.0024166107177734375, -0.003589630126953125, -0.1263427734375, -0.12152099609375, 0.00888824462890625, -0.06488037109375, -0.0343017578125, -0.002277374267578125, -0.049072265625, 0.0172119140625, 0.030517578125, -0.0035533905029296875, 0.01226806640625, -0.03656005859375, -0.06854248046875, -0.04498291015625, -0.0799560546875, 0.002044677734375, -0.01065826416015625, 0.0206146240234375, 0.01551055908203125, -0.0156097412109375, 0.007488250732421875, -0.027862548828125, 0.0306549072265625, 0.075927734375, -0.00634765625, -0.019561767578125, -0.0191802978515625, -0.01300811767578125, -0.0023956298828125, 0.01373291015625, -0.0124969482421875, -0.0048980712890625, 0.033294677734375, -0.0214996337890625, -0.024932861328125, 0.003627777099609375, 0.004291534423828125, 0.01806640625, 0.0303497314453125, 0.00698089599609375, 0.017364501953125, -0.0273590087890625, -0.0650634765625, -0.022979736328125, -0.0841064453125, 0.0204010009765625, 0.05535888671875, 0.01294708251953125, -0.02386474609375, 0.01654052734375, 0.00762176513671875, 0.00423431396484375, -0.0057220458984375, 0.000015139579772949219, 0.024688720703125, -0.01300048828125, 0.0087432861328125, 0.00035858154296875, 0.033966064453125, 0.017242431640625, 0.0010204315185546875, 0.01320648193359375, 0.038177490234375, -0.00031113624572753906, 0.01904296875, -0.041595458984375, -0.044219970703125, 0.052581787109375, -0.014190673828125, 0.007007598876953125, -0.01062774658203125, -0.032623291015625, 0.0172576904296875, 0.0914306640625, -0.0307769775390625, -0.0220184326171875, -0.005786895751953125, 0.006145477294921875, -0.01019287109375, -0.04058837890625, -0.032745361328125, -0.01446533203125, -0.05181884765625, 0.0230865478515625, -0.002750396728515625, -0.01715087890625, -0.017425537109375, 0.05340576171875, -0.01422119140625, -0.009490966796875, 0.0252685546875, -0.0248870849609375, 0.002010345458984375, 0.060394287109375, -0.0242156982421875, 0.06048583984375, -0.057861328125, -0.00408172607421875, -0.055877685546875, -0.01349639892578125, 0.0230255126953125, 0.041168212890625, -0.0128326416015625, -0.01557159423828125, 0.0006151199340820312, 0.050323486328125, 0.00917816162109375, 0.06524658203125, 0.0172271728515625, 0.00200653076171875, 0.0193328857421875, -0.0203704833984375, 0.02606201171875, -0.0287933349609375, 0.00815582275390625, -0.0270233154296875, -0.047821044921875, -0.01947021484375, -0.039764404296875, 0.005290985107421875, 0.0001518726348876953, -0.032379150390625, -0.037506103515625, -0.0229034423828125, 0.0023403167724609375, 0.005748748779296875, 0.0002111196517944336, -0.007450103759765625, -0.0291595458984375, -0.039794921875, 0.0706787109375, 0.043426513671875, -0.0030384063720703125, -0.01898193359375, 0.055450439453125, 0.00859832763671875, -0.06243896484375, -0.034210205078125, -0.0029850006103515625, 0.02825927734375, -0.020263671875, 0.053070068359375, 0.0026035308837890625, -0.0220947265625, 0.09149169921875, -0.0186920166015625, -0.035980224609375, -0.0081939697265625, 0.034820556640625, -0.032501220703125, -0.0379638671875, 0.005786895751953125, -0.07318115234375, 0.056488037109375, 0.039581298828125, -0.046234130859375, 0.0057830810546875, -0.043670654296875, 0.041717529296875, -0.038848876953125, 0.0657958984375, -0.03167724609375, -0.0391845703125, 0.00855255126953125, 0.0055694580078125, 0.01776123046875, 0.0237884521484375, -0.0171051025390625, 0.03314208984375, 0.01032257080078125, 0.0018138885498046875, 0.0443115234375, 0.034515380859375, 0.0005350112915039062, 0.0242462158203125, 0.016448974609375, -0.02325439453125, 0.01317596435546875, -0.0099334716796875, 0.051666259765625, -0.011077880859375, -0.050811767578125, 0.0005173683166503906, -0.0141448974609375, -0.00008022785186767578, 0.0240478515625, -0.0001049041748046875, 0.02349853515625, 0.032562255859375, -0.0242767333984375, -0.001567840576171875, -0.00017201900482177734, 0.00897216796875, -0.038848876953125, 0.0181121826171875, 0.00601959228515625, -0.01020050048828125, 0.0018062591552734375, 0.0621337890625, -0.0257110595703125, 0.036834716796875, -0.01275634765625, 0.0227508544921875, 0.021392822265625, 0.0413818359375, 0.007354736328125, -0.02130126953125, -0.002986907958984375, 0.0278778076171875, 0.0021190643310546875, -0.0274810791015625, 0.00010502338409423828, 0.044708251953125, 0.032257080078125, -0.0204010009765625, -0.03143310546875, 0.0008339881896972656, -0.019866943359375, -0.005496978759765625, 0.0197601318359375, -0.002071380615234375, -0.039093017578125, -0.0126953125, 0.017852783203125, 0.007389068603515625, 0.007904052734375, -0.004741668701171875, 0.032562255859375, 0.01348114013671875, 0.01407623291015625, 0.0034465789794921875, -0.0218505859375, -0.00542449951171875, 0.0207061767578125, 0.022125244140625, -0.00567626953125, -0.01477813720703125, -0.01433563232421875, 0.003963470458984375, -0.029327392578125, -0.0173187255859375, 0.07305908203125, -0.0150146484375, 0.0684814453125, -0.03875732421875, -0.03399658203125, 0.00591278076171875, -0.006359100341796875, 0.05224609375, 0.027862548828125, -0.007755279541015625, 0.01200103759765625, -0.043609619140625, 0.00423431396484375, 0.01068115234375, -0.04937744140625, -0.014678955078125, -0.04486083984375, -0.01276397705078125, 0.0248260498046875, -0.00418853759765625, 0.031829833984375, -0.01535797119140625, 0.02960205078125, -0.006252288818359375, 0.06451416015625, -0.002811431884765625, 0.061187744140625, 0.00974273681640625, 0.036773681640625, 0.016571044921875, 0.031341552734375, -0.01953125, -0.02801513671875, 0.01007843017578125, -0.00347900390625, -0.021392822265625, -0.0026226043701171875, -0.00962066650390625, 0.004421234130859375, 0.033721923828125, -0.0035800933837890625, 0.020965576171875, -0.0266571044921875, 0.0035610198974609375, -0.0104522705078125, 0.005382537841796875, -0.036163330078125, -0.0439453125, 0.054168701171875, -0.0247039794921875, -0.017578125, 0.0062103271484375, 0.045867919921875, -0.033294677734375, -0.0193328857421875, -0.01238250732421875, 0.006237030029296875, -0.0440673828125, 0.060546875, 0.07080078125, -0.00959014892578125, 0.029876708984375, 0.005603790283203125, -0.0001876354217529297, 0.02392578125, 0.019073486328125, -0.02081298828125, -0.0233306884765625, 0.064697265625, 0.0250701904296875, -0.0132904052734375, 0.041351318359375, -0.029510498046875, -0.0017223358154296875, 0.019256591796875, 0.04168701171875, -0.034881591796875, 0.002735137939453125, 0.014801025390625, -0.025604248046875, 0.0019550323486328125, -0.0096282958984375, 0.0003364086151123047, 0.00492095947265625, 0.035430908203125, -0.025604248046875, -0.0184326171875, 0.0098724365234375, -0.018341064453125, -0.0121612548828125, -0.02294921875, 0.06610107421875, 0.024322509765625, 0.006572723388671875, -0.0102691650390625, -0.0013799667358398438, 0.019866943359375, -0.036773681640625, -0.026336669921875, 0.0288543701171875, -0.01119232177734375, -0.047332763671875, 0.051727294921875, -0.0433349609375, 0.037109375, 0.04791259765625, 0.029449462890625, -0.0055999755859375, 0.03472900390625, 0.0051116943359375, -0.0185699462890625, 0.00942230224609375, -0.056243896484375, 0.0030670166015625, -0.001216888427734375, 0.002773284912109375, 0.00659942626953125, -0.0263214111328125, -0.004978179931640625, -0.047271728515625, 0.0219573974609375, -0.0226593017578125, -0.0223388671875, 0.09381103515625, -0.036163330078125, -0.0247802734375, 0.0104522705078125, 0.037200927734375, -0.0095367431640625, 0.0018444061279296875, -0.0018949508666992188, -0.001232147216796875, 0.05078125, 0.0095062255859375, 0.035675048828125, -0.01361083984375, -0.007007598876953125, -0.0721435546875, 0.0970458984375, 0.02020263671875, 0.0252685546875, -0.00844573974609375, 0.04022216796875, -0.0216064453125, 0.009735107421875, -0.053497314453125, 0.05902099609375, 0.0244140625, 0.05657958984375, -0.034423828125, -0.0159149169921875, 0.0248565673828125, 0.024261474609375, 0.08642578125, 0.0096282958984375, -0.0239105224609375, -0.01450347900390625, 0.054718017578125, 0.033905029296875, -0.009765625, 0.035308837890625, 0.018341064453125, 0.030853271484375, 0.05694580078125, -0.0706787109375, 0.0127410888671875, -0.0251312255859375, 0.039306640625, 0.02667236328125, 0.0243988037109375, 0.0183868408203125, 0.0200042724609375, -0.031524658203125, -0.051483154296875, 0.024017333984375, 0.0225067138671875, -0.00858306884765625, 0.0116729736328125, 0.0271453857421875, 0.048095703125, -0.05535888671875, -0.022216796875, -0.0227203369140625, 0.052276611328125, 0.0198211669921875, 0.00555419921875, 0.007541656494140625, 0.01419830322265625, 0.02593994140625, -0.0017137527465820312, -0.01739501953125, 0.0226593017578125, 0.00506591796875, 0.08782958984375, 0.01361083984375, 0.01392364501953125, -0.058929443359375, 0.00838470458984375, 0.0301055908203125, 0.091064453125, -0.07403564453125, -0.0028228759765625, 0.0276947021484375, -0.003284454345703125, -0.01464080810546875, -0.022216796875, 0.0008759498596191406, 0.032196044921875, 0.046600341796875, -0.01406097412109375, -0.00923919677734375, 0.0299530029296875, 0.03271484375, 0.0016803741455078125, -0.0217437744140625, -0.039215087890625, -0.00594329833984375, -0.054656982421875, 0.0220489501953125, 0.0240631103515625, 0.038482666015625, 0.0154266357421875, 0.033721923828125, 0.01415252685546875, -0.012542724609375, 0.039276123046875, 0.00726318359375, 0.005084991455078125, -0.03515625, -0.00394439697265625, -0.02850341796875, 0.004474639892578125, 0.0224609375, 0.044647216796875, 0.007843017578125, 0.036529541015625, -0.006435394287109375, -0.0209197998046875, 0.0015001296997070312, 0.006191253662109375, -0.0266571044921875, 0.047882080078125, -0.0247802734375, 0.02056884765625, 0.00597381591796875, -0.0144500732421875, -0.035369873046875, -0.003650665283203125, 0.050079345703125, 0.006855010986328125, 0.040802001953125, 0.007236480712890625, 0.0206756591796875, 0.03253173828125, 0.00885772705078125, 0.0007839202880859375, 0.027069091796875, -0.09869384765625, 0.00021636486053466797, -0.042449951171875, -0.05364990234375, 0.0230255126953125, 0.0374755859375, -0.01122283935546875, 0.00091552734375, 0.0033702850341796875, 0.02862548828125, 0.0109405517578125, -0.0262603759765625, -0.0010852813720703125, 0.019317626953125, 0.03863525390625, 0.0274505615234375, -0.021148681640625, -0.0169219970703125, -0.0142974853515625, 0.0173492431640625, 0.0120086669921875, 0.0621337890625, -0.0084381103515625, 0.0164947509765625, -0.0243072509765625, 0.032501220703125, -0.053741455078125, -0.036163330078125, 0.068603515625, -0.001651763916015625, -0.000020742416381835938, -0.01251220703125, -0.06658935546875, 0.0628662109375, -0.0093994140625, 0.01509857177734375, 0.033538818359375, -0.0194549560546875, 0.0032901763916015625, 0.0256805419921875, -0.00016391277313232422, -0.017669677734375, 0.006710052490234375, -0.01026153564453125, -0.0216217041015625, 0.03314208984375, 0.0292816162109375, -0.0024814605712890625, 0.0304107666015625, -0.026824951171875, -0.034332275390625, 0.0031795501708984375, -0.044525146484375, -0.0227203369140625, 0.0174102783203125, 0.00624847412109375, -0.02166748046875, 0.0281829833984375, 0.0004076957702636719, 0.00951385498046875, 0.01910400390625, 0.0252227783203125, 0.0281829833984375, 0.00807952880859375, -0.019256591796875, -0.0616455078125, 0.006267547607421875, -0.016571044921875, -0.01067352294921875, -0.040374755859375, 0.028839111328125, -0.0165863037109375, -0.08966064453125, -0.0216217041015625, -0.062744140625, 0.01153564453125, 0.049468994140625, -0.0146636962890625, 0.0227508544921875, -0.0093536376953125, -0.010772705078125, -0.005840301513671875, 0.001972198486328125, -0.017425537109375, 0.01433563232421875, -0.0164642333984375, 0.01258087158203125, -0.031280517578125, 0.0421142578125, 0.0005755424499511719, -0.008544921875, -0.0751953125, 0.028045654296875, -0.00801849365234375, -0.0176849365234375, 0.0225372314453125, 0.023956298828125, 0.040679931640625, -0.0310821533203125, -0.0291595458984375, 0.0160675048828125, 0.031585693359375, 0.07025146484375, -0.003559112548828125, -0.0162811279296875, 0.031982421875, 0.0014486312866210938, -0.0098419189453125, -0.04803466796875, 0.00013530254364013672, -0.032073974609375, 0.006641387939453125, 0.0104827880859375, -0.0250244140625, -0.007282257080078125, -0.03057861328125, -0.021331787109375, 0.05999755859375, 0.00830841064453125, -0.0244903564453125, -0.031158447265625, 0.017486572265625, 0.01474761962890625, -0.039337158203125, -0.01092529296875, -0.00995635986328125, -0.0159149169921875, 0.01068878173828125, 0.0267791748046875, 0.043548583984375, -0.0080413818359375, 0.038665771484375, -0.038116455078125, 0.05877685546875, 0.01727294921875, 0.022705078125, 0.0273895263671875, -0.01068115234375, 0.0017862319946289062, 0.01549530029296875, -0.07318115234375, -0.032989501953125, -0.04644775390625, 0.0304107666015625, -0.0220184326171875, 0.003204345703125, -0.01654052734375, 0.014129638671875, 0.060150146484375, 0.076171875, 0.019989013671875, -0.042266845703125, -0.02130126953125, -0.01934814453125, -0.047119140625, -0.0095672607421875, 0.0496826171875, -0.095703125, 0.005340576171875, 0.0283203125, -0.009429931640625, -0.0070648193359375, -0.0242919921875, -0.0276336669921875, -0.0191650390625, -0.0469970703125, -0.016204833984375, 0.0042266845703125, -0.01064300537109375, 0.0528564453125, -0.04132080078125, -0.0132293701171875, 0.00986480712890625, 0.0250701904296875, 0.0156402587890625, -0.044891357421875, 0.01116943359375, 0.03582763671875, -0.0279388427734375, -0.002468109130859375, 0.01459503173828125, 0.0213775634765625, -0.01153564453125, -0.01053619384765625, -0.0233612060546875, 0.035980224609375, 0.01776123046875, 0.017547607421875, -0.01404571533203125, 0.01270294189453125, 0.00167083740234375, 0.036895751953125, 0.01342010498046875, 0.053314208984375, 0.032135009765625, 0.044219970703125, -0.01480865478515625, -0.031402587890625, 0.004993438720703125, -0.0684814453125, -0.01519012451171875, 0.011260986328125, -0.023193359375, -0.06011962890625, 0.032958984375, -0.011810302734375, 0.0031032562255859375, 0.0202178955078125 ]
1a61ba9469816e34a0ca1821924c4d4ceec619b1
Wordpress Stackexchange Q: Best practice - Meta Query vs. post_clauses for "left join" ordering Moreso a psuedo-code question than actual code. I have some custom post meta attached to attachments, and created a list table column for this meta. The meta is either 1, or null (not set), but I am trying to enable sorting for said column. Is there a way to utilize meta_query for WP_Query to essentially LEFT JOIN, where I get all values (1 or null), and then I can utilize orderby=meta_value_num for ordering? The obvious way it would work is hooking into posts_clauses, adding a JOIN, and doing the orderby as well - just curious if this would be possible while using direct WP_Query functionality! Thanks. A: You can use pre_get_posts with a callback: <?php defined( 'ABSPATH' ) OR exit; /** Plugin Name: (#102854) Order Posts by Foo */ add_filter( 'pre_get_posts', 'wpse_102854_orderby_foo' ); function wpse_102854_orderby_foo( $query ) { if ( ! $query->is_main_query() OR ! is_admin() OR 'edit.php?post_type=YOUR_POST_TYPE' !== $GLOBALS['parent_file'] // Other conditions that force an abort, Example: // OR 'foo' !== $query->get( 'some_query_var' ) ) return $query; $query->set( 'orderby', 'meta_value_num' ); // etc. return $query; }
Q: Best practice - Meta Query vs. post_clauses for "left join" ordering Moreso a psuedo-code question than actual code. I have some custom post meta attached to attachments, and created a list table column for this meta. The meta is either 1, or null (not set), but I am trying to enable sorting for said column. Is there a way to utilize meta_query for WP_Query to essentially LEFT JOIN, where I get all values (1 or null), and then I can utilize orderby=meta_value_num for ordering? The obvious way it would work is hooking into posts_clauses, adding a JOIN, and doing the orderby as well - just curious if this would be possible while using direct WP_Query functionality! Thanks. A: You can use pre_get_posts with a callback: <?php defined( 'ABSPATH' ) OR exit; /** Plugin Name: (#102854) Order Posts by Foo */ add_filter( 'pre_get_posts', 'wpse_102854_orderby_foo' ); function wpse_102854_orderby_foo( $query ) { if ( ! $query->is_main_query() OR ! is_admin() OR 'edit.php?post_type=YOUR_POST_TYPE' !== $GLOBALS['parent_file'] // Other conditions that force an abort, Example: // OR 'foo' !== $query->get( 'some_query_var' ) ) return $query; $query->set( 'orderby', 'meta_value_num' ); // etc. return $query; } A: You can do it either way! Using posts_clauses, manually write your JOIN statement (using $wpdb->prepare() - be safe!) , and add/customize the orderby clause as well. Using meta_query there are a couple things needed. First, as kaiser mentions, you must use relation within meta_query in order for it to work. Second, even though meta_query is defined, you still need to specify the meta_key argument, or else orderby=meta_value will not work. I assume this is because you can have multiple joins happening at once, which could be using different meta keys. Here is how I accomplished it: function handle_my_sortable_column( $query ) { global $pagenow; if( is_admin() && 'upload.php' == $pagenow && 'my_meta_key' == get_query_var( 'orderby' ) ) { $query->set( 'meta_query', array( 'relation' => 'OR', array( 'key' => my_meta_key', 'value' => null, 'compare' => 'EXISTS' ), array( 'key' => 'my_meta_key', 'value' => '', // must be '' value, null does not work 'compare' => 'NOT EXISTS' ) ) ); $query->set( 'meta_key', 'my_meta_key' ); // required for orderby $query->set( 'orderby', 'meta_value_num' ); } }
wordpress
{ "language": "en", "length": 360, "provenance": "stackexchange_00019.jsonl.gz:433500", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/102854" }
[ 0.05487060546875, 0.0202789306640625, 0.00946807861328125, -0.0248870849609375, 0.0244140625, -0.00943756103515625, 0.02056884765625, -0.03656005859375, 0.04046630859375, -0.005046844482421875, -0.03466796875, -0.02056884765625, -0.0171661376953125, -0.03289794921875, -0.01413726806640625, -0.0263214111328125, 0.054779052734375, -0.048675537109375, 0.0223846435546875, -0.0030002593994140625, -0.0233001708984375, 0.045196533203125, 0.05902099609375, -0.0291595458984375, 0.0279388427734375, -0.0374755859375, 0.0701904296875, -0.01268768310546875, 0.03704833984375, 0.004058837890625, 0.0279998779296875, -0.03704833984375, 0.016326904296875, -0.0278778076171875, 0.059478759765625, -0.038726806640625, 0.0257415771484375, -0.0116729736328125, 0.003803253173828125, -0.000957489013671875, 0.029541015625, -0.0164642333984375, -0.056182861328125, 0.017425537109375, -0.0252227783203125, -0.0267791748046875, 0.01177215576171875, -0.0106964111328125, 0.02783203125, -0.01003265380859375, 0.024078369140625, -0.00473785400390625, 0.033172607421875, -0.02227783203125, -0.0247650146484375, 0.006946563720703125, -0.040679931640625, -0.0049896240234375, -0.0080108642578125, 0.004604339599609375, 0.01132965087890625, 0.0188446044921875, 0.010467529296875, 0.0264434814453125, 0.02496337890625, -0.0138397216796875, 0.0037021636962890625, 0.0264892578125, -0.00702667236328125, 0.0280303955078125, 0.0081024169921875, 0.0000864267349243164, -0.005756378173828125, -0.017242431640625, 0.0038852691650390625, -0.00635528564453125, 0.004100799560546875, -0.01401519775390625, 0.02569580078125, 0.015960693359375, -0.0011539459228515625, 0.0006361007690429688, -0.07720947265625, -0.03509521484375, 0.041473388671875, 0.01215362548828125, -0.019744873046875, -0.016937255859375, -0.04193115234375, -0.02056884765625, -0.035980224609375, -0.049560546875, -0.0226898193359375, 0.01511383056640625, -0.007518768310546875, -0.013946533203125, 0.0220947265625, 0.050323486328125, -0.0401611328125, -0.026397705078125, -0.00724029541015625, -0.01507568359375, -0.0253143310546875, -0.011505126953125, 0.0181121826171875, -0.0175018310546875, -0.01502227783203125, -0.018646240234375, 0.038970947265625, 0.045013427734375, -0.01206207275390625, 0.03192138671875, -0.01081085205078125, 0.005481719970703125, -0.0189056396484375, -0.004482269287109375, -0.055755615234375, 0.0194854736328125, -0.025604248046875, 0.007373809814453125, -0.0129547119140625, -0.0175628662109375, 0.01132965087890625, -0.0272064208984375, -0.00452423095703125, -0.027862548828125, -0.0277862548828125, -0.005664825439453125, -0.035858154296875, 0.06219482421875, -0.0306396484375, -0.0079193115234375, 0.0628662109375, 0.03662109375, -0.01329803466796875, -0.0369873046875, 0.01059722900390625, -0.0187225341796875, 0.02093505859375, 0.0028209686279296875, -0.0004322528839111328, -0.0244293212890625, 0.020263671875, 0.0135650634765625, -0.0283966064453125, 0.0263519287109375, 0.0257568359375, -0.0017070770263671875, -0.020172119140625, -0.037567138671875, -0.0244598388671875, -0.00766754150390625, 0.059783935546875, -0.0288543701171875, -0.05255126953125, -0.0270538330078125, -0.006496429443359375, -0.022674560546875, -0.037933349609375, -0.0323486328125, -0.006687164306640625, 0.00925445556640625, 0.0186309814453125, -0.0712890625, -0.059173583984375, -0.01322174072265625, -0.03155517578125, -0.0188751220703125, 0.0165863037109375, 0.0312347412109375, 0.03759765625, 0.0020771026611328125, 0.01320648193359375, -0.00914764404296875, -0.0189971923828125, -0.0177001953125, -0.0162353515625, -0.023193359375, 0.0263214111328125, 0.0173187255859375, -0.023193359375, -0.03082275390625, 0.02325439453125, -0.016265869140625, -0.054840087890625, 0.045562744140625, -0.0087738037109375, 0.02764892578125, 0.0187225341796875, -0.007617950439453125, 0.045562744140625, 0.02838134765625, -0.0382080078125, 0.0623779296875, 0.014129638671875, -0.04534912109375, -0.0157928466796875, -0.01427459716796875, 0.01016998291015625, -0.035736083984375, -0.02490234375, 0.0201416015625, -0.01003265380859375, 0.00003236532211303711, -0.063720703125, 0.03509521484375, -0.034942626953125, 0.0511474609375, -0.0294342041015625, 0.01861572265625, 0.029296875, 0.01222991943359375, -0.046051025390625, 0.0300750732421875, -0.00568389892578125, -0.01284027099609375, 0.002655029296875, 0.0215301513671875, -0.004528045654296875, 0.024688720703125, -0.016143798828125, -0.03216552734375, -0.030303955078125, 0.0176544189453125, 0.0219573974609375, -0.0009064674377441406, -0.033905029296875, 0.002285003662109375, 0.041259765625, 0.002582550048828125, 0.02777099609375, 0.03826904296875, 0.0194854736328125, 0.039154052734375, -0.01812744140625, -0.00811004638671875, 0.0032215118408203125, -0.043853759765625, 0.004119873046875, 0.0295257568359375, 0.0297088623046875, 0.029327392578125, 0.004657745361328125, 0.0148162841796875, 0.04290771484375, -0.01558685302734375, 0.0153656005859375, -0.0123748779296875, 0.0017232894897460938, 0.029022216796875, -0.01226806640625, 0.002490997314453125, 0.0286865234375, -0.029296875, 0.0218505859375, 0.0215911865234375, -0.00968170166015625, 0.024383544921875, -0.01462554931640625, 0.0034656524658203125, -0.00901031494140625, -0.00762176513671875, -0.0021915435791015625, -0.00955963134765625, 0.0347900390625, -0.00792694091796875, 0.012359619140625, 0.010223388671875, -0.01114654541015625, -0.001926422119140625, 0.0194244384765625, -0.03271484375, 0.0034923553466796875, -0.0122222900390625, -0.05340576171875, 0.00012046098709106445, -0.033111572265625, 0.03704833984375, 0.033966064453125, -0.0296783447265625, 0.0072479248046875, 0.0231475830078125, -0.01232147216796875, -0.000025331974029541016, -0.008758544921875, -0.0244293212890625, 0.0151824951171875, 0.036651611328125, -0.0193023681640625, 0.0001550912857055664, 0.03680419921875, -0.0035457611083984375, -0.013641357421875, -0.00646209716796875, 0.00748443603515625, -0.0165557861328125, 0.0183563232421875, -0.045501708984375, 0.046905517578125, -0.047393798828125, 0.0164337158203125, 0.065185546875, -0.015716552734375, 0.01141357421875, -0.005138397216796875, 0.022857666015625, -0.01373291015625, 0.00948333740234375, -0.007171630859375, -0.031707763671875, -0.00559234619140625, 0.006542205810546875, 0.0462646484375, 0.0865478515625, 0.0090789794921875, -0.01410675048828125, 0.0261077880859375, 0.0543212890625, -0.004573822021484375, -0.0887451171875, 0.00994110107421875, -0.0391845703125, -0.005321502685546875, -0.01073455810546875, -0.0187225341796875, -0.010284423828125, -0.00994873046875, -0.00695037841796875, 0.012908935546875, -0.023529052734375, -0.057037353515625, -0.051422119140625, -0.062042236328125, 0.00017595291137695312, 0.0028362274169921875, 0.020416259765625, 0.003574371337890625, 0.06732177734375, 0.003650665283203125, -0.07861328125, -0.005588531494140625, 0.024017333984375, -0.0148162841796875, 0.0296783447265625, 0.007091522216796875, -0.0179595947265625, 0.0196075439453125, -0.002899169921875, 0.041900634765625, 0.0308837890625, -0.03192138671875, 0.0013113021850585938, 0.00373077392578125, 0.0673828125, 0.060394287109375, -0.0224609375, -0.037567138671875, 0.06298828125, 0.0273284912109375, -0.0157470703125, -0.0165252685546875, -0.029937744140625, -0.033721923828125, 0.00347900390625, 0.00800323486328125, 0.039520263671875, -0.0158538818359375, 0.021240234375, 0.035888671875, 0.020538330078125, 0.019256591796875, -0.002498626708984375, 0.01177215576171875, 0.01055908203125, 0.04229736328125, -0.038665771484375, 0.04913330078125, -0.01346588134765625, -0.024810791015625, 0.013153076171875, 0.0137939453125, 0.0121002197265625, -0.0284271240234375, -0.01180267333984375, -0.01019287109375, 0.04296875, 0.0049285888671875, 0.0396728515625, -0.035369873046875, -0.038330078125, -0.04364013671875, 0.07061767578125, -0.005474090576171875, -0.031463623046875, -0.0172119140625, 0.022552490234375, -0.07061767578125, -0.03802490234375, 0.0015163421630859375, 0.0095977783203125, -0.053741455078125, 0.00356292724609375, -0.0015277862548828125, -0.032684326171875, -0.024322509765625, -0.03106689453125, -0.050506591796875, -0.030242919921875, 0.036956787109375, -0.027618408203125, -0.017364501953125, 0.0413818359375, -0.04150390625, 0.0210113525390625, -0.030517578125, -0.006649017333984375, -0.07867431640625, -0.0181427001953125, -0.00711822509765625, 0.064453125, -0.0022907257080078125, 0.00714111328125, -0.023345947265625, 0.052825927734375, 0.01202392578125, -0.021148681640625, 0.045501708984375, 0.032470703125, 0.00026679039001464844, -0.025909423828125, 0.0182037353515625, -0.061859130859375, -0.01995849609375, -0.033355712890625, -0.021270751953125, -0.019744873046875, -0.03656005859375, -0.0271759033203125, -0.0239105224609375, -0.0176544189453125, -0.0523681640625, -0.02069091796875, -0.0266265869140625, 0.0233306884765625, -0.013671875, -0.01399993896484375, -0.033355712890625, -0.06890869140625, 0.00290679931640625, 0.023895263671875, -0.0292816162109375, 0.002201080322265625, 0.041534423828125, 0.0372314453125, -0.0208587646484375, 0.0039215087890625, -0.0163116455078125, 0.00815582275390625, -0.022216796875, 0.020355224609375, -0.01165771484375, -0.014801025390625, 0.05059814453125, -0.0242767333984375, 0.013092041015625, -0.00009655952453613281, 0.0299530029296875, -0.007640838623046875, -0.02838134765625, 0.031951904296875, -0.0005669593811035156, -0.005634307861328125, 0.037445068359375, 0.01421356201171875, -0.0921630859375, -0.01195526123046875, 0.08758544921875, -0.0002474784851074219, 0.0238494873046875, -0.061370849609375, -0.044342041015625, 0.007312774658203125, -0.0159149169921875, 0.02587890625, 0.004238128662109375, 0.00762176513671875, 0.0236968994140625, 0.026519775390625, 0.01654052734375, -0.0148773193359375, 0.0634765625, -0.0623779296875, 0.021636962890625, -0.0005350112915039062, -0.02874755859375, -0.026763916015625, -0.005706787109375, 0.090576171875, -0.01108551025390625, -0.0257110595703125, -0.01593017578125, -0.007778167724609375, 0.0245513916015625, 0.01605224609375, 0.0306549072265625, 0.039398193359375, -0.00812530517578125, -0.0430908203125, 0.0008363723754882812, 0.014404296875, -0.033782958984375, -0.05609130859375, 0.0205078125, 0.0158233642578125, -0.01110076904296875, -0.053955078125, 0.09771728515625, 0.00439453125, 0.0270843505859375, -0.012786865234375, 0.0067596435546875, -0.01178741455078125, 0.0200653076171875, 0.016998291015625, -0.02386474609375, 0.023406982421875, 0.0006976127624511719, 0.019927978515625, -0.0091552734375, 0.002895355224609375, 0.003948211669921875, 0.00701141357421875, -0.0013608932495117188, -0.00885772705078125, 0.04498291015625, -0.00012600421905517578, -0.0157318115234375, 0.056671142578125, 0.06585693359375, -0.00432586669921875, -0.039764404296875, -0.06829833984375, 0.0175323486328125, 0.0004534721374511719, 0.0043182373046875, 0.0161590576171875, 0.012176513671875, 0.058197021484375, -0.059356689453125, 0.040191650390625, 0.0001430511474609375, -0.00994110107421875, 0.002544403076171875, -0.01427459716796875, 0.002796173095703125, 0.01512908935546875, 0.032501220703125, -0.0401611328125, -0.03955078125, 0.045654296875, -0.0208740234375, 0.03900146484375, -0.0350341796875, 0.00019752979278564453, -0.037841796875, 0.02099609375, 0.031463623046875, 0.0148468017578125, -0.02178955078125, -0.00762939453125, -0.06427001953125, -0.01751708984375, 0.00238037109375, -0.03594970703125, -0.0171966552734375, 0.007648468017578125, -0.007442474365234375, 0.029510498046875, -0.0112457275390625, -0.06304931640625, -0.01390838623046875, -0.03253173828125, -0.0029697418212890625, -0.027069091796875, -0.0269622802734375, 0.109130859375, -0.0310211181640625, 0.0784912109375, 0.01702880859375, 0.0269775390625, -0.034759521484375, 0.0006465911865234375, 0.020263671875, -0.06463623046875, -0.0302581787109375, -0.014984130859375, -0.031890869140625, -0.0074310302734375, -0.005863189697265625, -0.0102081298828125, 0.046875, -0.0266571044921875, -0.006305694580078125, 0.004779815673828125, -0.014007568359375, -0.01409149169921875, 0.019012451171875, 0.034423828125, -0.0129547119140625, -0.00005626678466796875, -0.01276397705078125, -0.0174560546875, 0.035369873046875, -0.018035888671875, 0.0230712890625, 0.01274871826171875, -0.0833740234375, 0.038604736328125, 0.044647216796875, 0.061614990234375, 0.049224853515625, -0.038055419921875, 0.0279998779296875, -0.003002166748046875, 0.00835418701171875, 0.0215606689453125, -0.0017614364624023438, 0.0511474609375, -0.004840850830078125, -0.0187530517578125, 0.03326416015625, -0.032928466796875, 0.0125274658203125, 0.044158935546875, 0.051483154296875, -0.054718017578125, -0.0008592605590820312, 0.01363372802734375, -0.00705718994140625, 0.0277099609375, -0.0027179718017578125, -0.006168365478515625, -0.0247344970703125, 0.0188140869140625, -0.0152587890625, -0.0186767578125, 0.009857177734375, -0.0008549690246582031, -0.0306854248046875, -0.0421142578125, -0.0523681640625, -0.0094146728515625, 0.0144805908203125, 0.019989013671875, -0.019744873046875, 0.0113525390625, -0.0090789794921875, 0.0250396728515625, -0.03509521484375, -0.00775909423828125, -0.048858642578125, -0.020477294921875, -0.016571044921875, -0.0240020751953125, 0.00047898292541503906, -0.0240325927734375, 0.00897979736328125, 0.0455322265625, -0.0207977294921875, -0.01244354248046875, 0.00922393798828125, -0.03466796875, -0.038238525390625, -0.019561767578125, -0.0009722709655761719, 0.0086669921875, 0.00038361549377441406, 0.023681640625, -0.0205230712890625, -0.034393310546875, -0.0081024169921875, -0.0292816162109375, 0.042510986328125, -0.02923583984375, -0.0001989603042602539, 0.0167083740234375, 0.0198974609375, -0.0038700103759765625, -0.0029621124267578125, 0.0205078125, -0.06536865234375, -0.043701171875, 0.01450347900390625, -0.02923583984375, -0.0276336669921875, -0.01934814453125, -0.0288848876953125, 0.062042236328125, -0.015625, 0.01418304443359375, 0.00038623809814453125, 0.02142333984375, 0.0010919570922851562, 0.0196380615234375, -0.0662841796875, 0.0904541015625, 0.03546142578125, 0.1063232421875, -0.07513427734375, -0.03204345703125, 0.054901123046875, 0.057037353515625, 0.041046142578125, 0.00986480712890625, -0.09503173828125, -0.023040771484375, 0.0360107421875, 0.052093505859375, 0.0360107421875, 0.0758056640625, 0.00995635986328125, 0.06103515625, 0.05035400390625, -0.036407470703125, 0.041778564453125, -0.02191162109375, -0.047119140625, 0.0280914306640625, 0.0190277099609375, 0.00933074951171875, -0.0313720703125, 0.0085601806640625, -0.046142578125, -0.005340576171875, 0.0294189453125, 0.00983428955078125, 0.01953125, 0.007320404052734375, 0.01934814453125, -0.046234130859375, -0.08685302734375, 0.00759124755859375, 0.0222625732421875, 0.01528167724609375, 0.038848876953125, 0.032135009765625, 0.0169525146484375, 0.05682373046875, -0.0307159423828125, 0.017578125, 0.005695343017578125, -0.03759765625, 0.0426025390625, 0.0267486572265625, 0.018402099609375, -0.042388916015625, 0.0175628662109375, 0.060028076171875, 0.06689453125, -0.047576904296875, -0.0014314651489257812, 0.016632080078125, -0.03729248046875, -0.02490234375, -0.040985107421875, -0.0297393798828125, 0.042938232421875, 0.0014801025390625, -0.04644775390625, -0.01049041748046875, -0.01032257080078125, 0.01380157470703125, -0.03179931640625, -0.04046630859375, 0.0254974365234375, -0.0216522216796875, 0.002960205078125, -0.0034885406494140625, 0.040496826171875, 0.0301971435546875, -0.0178680419921875, 0.032867431640625, -0.030487060546875, -0.007450103759765625, -0.040557861328125, 0.0330810546875, -0.021484375, 0.061004638671875, -0.067138671875, -0.036041259765625, 0.012115478515625, 0.056884765625, 0.0199127197265625, 0.035675048828125, 0.05511474609375, 0.04534912109375, -0.029541015625, 0.00508880615234375, 0.046417236328125, -0.0170745849609375, -0.027130126953125, -0.034759521484375, 0.04058837890625, 0.0240478515625, 0.019744873046875, 0.01617431640625, 0.037506103515625, 0.007049560546875, 0.0208587646484375, 0.0020542144775390625, 0.005092620849609375, -0.0110626220703125, 0.03948974609375, -0.005313873291015625, 0.03240966796875, 0.0220794677734375, -0.045440673828125, -0.001865386962890625, -0.00975799560546875, -0.01314544677734375, 0.004779815673828125, 0.0283050537109375, 0.002666473388671875, 0.01702880859375, -0.0206451416015625, -0.02215576171875, 0.00894927978515625, -0.022064208984375, 0.02490234375, -0.005889892578125, -0.0232391357421875, -0.0041656494140625, -0.090087890625, -0.033782958984375, -0.032257080078125, 0.003284454345703125, 0.022064208984375, 0.031005859375, 0.034149169921875, 0.025665283203125, 0.00743865966796875, 0.0024585723876953125, 0.00969696044921875, 0.004413604736328125, 0.042083740234375, -0.005733489990234375, -0.018829345703125, -0.013214111328125, 0.034515380859375, -0.0252227783203125, 0.0675048828125, -0.05438232421875, -0.053466796875, -0.00505828857421875, 0.039031982421875, -0.0236663818359375, -0.0169677734375, -0.03021240234375, 0.0143890380859375, 0.01097869873046875, -0.04364013671875, 0.042236328125, 0.0167999267578125, 0.0206146240234375, 0.0426025390625, 0.00629425048828125, -0.0247344970703125, 0.033721923828125, -0.045318603515625, 0.0745849609375, 0.0469970703125, -0.043212890625, 0.0208740234375, 0.01739501953125, -0.01544189453125, 0.017059326171875, 0.034210205078125, -0.0180816650390625, 0.0282745361328125, -0.00942230224609375, -0.0197601318359375, 0.047698974609375, 0.04437255859375, -0.004669189453125, 0.0161285400390625, 0.038482666015625, -0.035247802734375, -0.00994110107421875, -0.021453857421875, -0.02935791015625, -0.04022216796875, -0.0012359619140625, -0.0027675628662109375, 0.002338409423828125, -0.01430511474609375, 0.0153045654296875, -0.007904052734375, 0.0345458984375, 0.00601959228515625, -0.0297393798828125, -0.007038116455078125, -0.007694244384765625, 0.01165771484375, 0.0196685791015625, 0.00897979736328125, -0.020172119140625, 0.0157012939453125, 0.00525665283203125, -0.0234832763671875, -0.03289794921875, 0.042388916015625, -0.0169830322265625, 0.0251617431640625, 0.01898193359375, -0.0294189453125, 0.004779815673828125, 0.039031982421875, 0.033966064453125, 0.06597900390625, 0.04400634765625, -0.044525146484375, 0.0146026611328125, -0.0097808837890625, -0.002231597900390625, -0.0298919677734375, 0.0164031982421875, -0.0595703125, 0.006946563720703125, -0.004482269287109375, 0.06317138671875, 0.09271240234375, 0.0098724365234375, -0.068115234375, 0.09124755859375, -0.0284881591796875, -0.02099609375, -0.01308441162109375, 0.008880615234375, 0.0101470947265625, -0.0229644775390625, 0.017059326171875, -0.0433349609375, -0.0287017822265625, -0.0275726318359375, 0.0247344970703125, 0.0175933837890625, 0.016326904296875, 0.0322265625, -0.08416748046875, 0.007122039794921875, -0.0256195068359375, 0.0008635520935058594, -0.030120849609375, 0.024261474609375, 0.001972198486328125, 0.03643798828125, -0.01849365234375, 0.00734710693359375, 0.01374053955078125, 0.00044727325439453125, 0.0068511962890625, -0.015380859375, -0.01479339599609375, -0.00041675567626953125, 0.039764404296875, 0.0161285400390625, 0.0087127685546875, -0.0264129638671875, -0.0013027191162109375, -0.03216552734375, -0.0225982666015625, -0.02606201171875, 0.010711669921875, -0.05963134765625, -0.033538818359375, 0.0121612548828125, -0.0165557861328125, 0.032928466796875, -0.0006389617919921875, -0.03521728515625, 0.011932373046875, 0.0050506591796875, -0.0175018310546875, -0.06475830078125, -0.0039825439453125, 0.032470703125, -0.0400390625, -0.0296173095703125, 0.006427764892578125, 0.00628662109375, -0.021240234375, 0.013580322265625, 0.027252197265625, 0.00782012939453125, 0.016998291015625, 0.0217742919921875, 0.03863525390625, -0.00640106201171875, 0.004253387451171875, -0.017181396484375, -0.03350830078125, 0.0208740234375, 0.0288848876953125, 0.0161285400390625, -0.042572021484375, 0.0394287109375, 0.042724609375, 0.00852203369140625, -0.0140838623046875, 0.040740966796875, 0.0226593017578125, 0.001056671142578125, 0.026824951171875, -0.005832672119140625, 0.07476806640625, -0.061004638671875, -0.0021152496337890625, -0.029754638671875, -0.0290679931640625, -0.0268096923828125, -0.0037364959716796875, 0.0127410888671875, -0.0292510986328125, 0.01154327392578125 ]
d907114f97c36d7ce106382ffaeb0dfa3981c423
Wordpress Stackexchange Q: How to re-enable the links manager? There is no links manager in the admin_menu of Wordpress 3.5.1 anymore. I'm creating a custom add_links_page, and I'm having a hard time with the making a plugin. Do I need to initialize something to show the links page? A: It's commonly activated through: add_filter( 'pre_option_link_manager_enabled', '__return_true' ); The suggested Link Manager plugin only contains this code line.
Q: How to re-enable the links manager? There is no links manager in the admin_menu of Wordpress 3.5.1 anymore. I'm creating a custom add_links_page, and I'm having a hard time with the making a plugin. Do I need to initialize something to show the links page? A: It's commonly activated through: add_filter( 'pre_option_link_manager_enabled', '__return_true' ); The suggested Link Manager plugin only contains this code line. A: Or go in you wp database, in the (wp_)options table find the option "link_manager_enabled" and change the value from 0 to 1 (option_id should be 86) A: To re-enable the link manager, add the following line to your theme's functions.php file (child theme recommended): add_filter( 'pre_option_link_manager_enabled', '__return_true' );
wordpress
{ "language": "en", "length": 114, "provenance": "stackexchange_00019.jsonl.gz:433521", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/102920" }
[ 0.09197998046875, -0.0043487548828125, 0.04547119140625, -0.0321044921875, 0.0035800933837890625, -0.021209716796875, 0.04052734375, -0.04400634765625, 0.01169586181640625, 0.02276611328125, 0.0126800537109375, 0.0025615692138671875, -0.01039886474609375, -0.027099609375, -0.0129852294921875, -0.01480865478515625, 0.0240631103515625, 0.01471710205078125, 0.031341552734375, -0.01119232177734375, 0.0289306640625, 0.006168365478515625, -0.00786590576171875, 0.040008544921875, 0.02337646484375, -0.01464080810546875, 0.028533935546875, -0.0237579345703125, 0.0303802490234375, 0.002681732177734375, 0.0164947509765625, -0.0389404296875, 0.045654296875, -0.040313720703125, 0.0179901123046875, -0.036590576171875, -0.00167083740234375, -0.0171356201171875, -0.0246429443359375, 0.00528717041015625, 0.001796722412109375, -0.00800323486328125, 0.025543212890625, 0.002170562744140625, -0.007740020751953125, -0.00466156005859375, -0.0022983551025390625, -0.047088623046875, 0.038177490234375, -0.01250457763671875, 0.0090179443359375, -0.0006232261657714844, 0.0236968994140625, -0.0304412841796875, -0.0198516845703125, -0.01361846923828125, -0.0026531219482421875, -0.03802490234375, 0.01654052734375, 0.01262664794921875, 0.0046234130859375, -0.018463134765625, 0.0185546875, -0.00746917724609375, 0.0007677078247070312, 0.00395965576171875, 0.0185089111328125, 0.0178680419921875, -0.0265350341796875, -0.0195465087890625, -0.0004532337188720703, -0.021728515625, 0.02166748046875, 0.017822265625, -0.0217742919921875, -0.037628173828125, 0.005634307861328125, -0.01580810546875, 0.041656494140625, -0.01113128662109375, 0.031951904296875, 0.0300140380859375, 0.0022106170654296875, 0.002925872802734375, -0.0005478858947753906, 0.018890380859375, -0.0060577392578125, -0.03765869140625, -0.006832122802734375, 0.004268646240234375, -0.0186614990234375, -0.006618499755859375, 0.033050537109375, -0.037750244140625, -0.0491943359375, -0.007640838623046875, 0.05712890625, 0.0474853515625, -0.0029850006103515625, -0.0102691650390625, 0.0086517333984375, -0.052703857421875, 0.0168914794921875, -0.0190887451171875, -0.00446319580078125, -0.0011911392211914062, -0.00930023193359375, -0.0206146240234375, 0.0152130126953125, 0.036285400390625, -0.034149169921875, 0.0152130126953125, 0.034088134765625, 0.025726318359375, -0.00487518310546875, -0.04107666015625, -0.02294921875, 0.036773681640625, -0.014801025390625, 0.017486572265625, -0.002529144287109375, 0.00475311279296875, -0.037811279296875, 0.01471710205078125, 0.007343292236328125, -0.016357421875, -0.0173797607421875, 0.0352783203125, 0.0305938720703125, 0.001544952392578125, -0.02783203125, 0.0222930908203125, 0.04644775390625, -0.00023055076599121094, -0.0128631591796875, -0.0093841552734375, 0.00070953369140625, 0.005565643310546875, 0.01044464111328125, 0.01039886474609375, -0.0218658447265625, -0.04095458984375, 0.00148773193359375, -0.010223388671875, 0.0282135009765625, 0.0233612060546875, 0.007659912109375, 0.00829315185546875, 0.020599365234375, -0.0284881591796875, 0.0294036865234375, -0.0219879150390625, 0.0164947509765625, 0.0235443115234375, 0.010528564453125, 0.016632080078125, 0.056121826171875, -0.0293426513671875, -0.01465606689453125, -0.03851318359375, 0.001544952392578125, 0.001972198486328125, 0.0026607513427734375, -0.0704345703125, -0.05712890625, -0.03338623046875, -0.033905029296875, 0.00225830078125, 0.0196380615234375, 0.031707763671875, 0.048004150390625, -0.039794921875, -0.038238525390625, -0.00261688232421875, -0.0019273757934570312, 0.01000213623046875, 0.0205230712890625, 0.00473785400390625, 0.01346588134765625, 0.04425048828125, 0.00412750244140625, -0.0258331298828125, 0.07501220703125, -0.0289459228515625, -0.040924072265625, 0.003875732421875, 0.0251617431640625, 0.0689697265625, 0.0078277587890625, 0.0290985107421875, 0.0260009765625, 0.0014486312866210938, -0.00949859619140625, 0.0228729248046875, -0.01557159423828125, -0.041015625, -0.01253509521484375, 0.005947113037109375, -0.02911376953125, 0.01377105712890625, -0.026092529296875, 0.00882720947265625, 0.005550384521484375, 0.04058837890625, -0.018402099609375, 0.041107177734375, -0.0275421142578125, 0.038482666015625, 0.04913330078125, 0.0182342529296875, -0.010040283203125, 0.0012826919555664062, -0.023834228515625, -0.000021219253540039062, -0.031585693359375, 0.0377197265625, -0.0234832763671875, 0.0045166015625, -0.0115966796875, -0.0122528076171875, -0.0009832382202148438, -0.0133514404296875, -0.0004849433898925781, 0.017974853515625, 0.0192413330078125, -0.033721923828125, -0.0182037353515625, -0.03533935546875, 0.01446533203125, -0.0167388916015625, 0.005435943603515625, 0.064208984375, 0.00824737548828125, 0.025177001953125, -0.034637451171875, -0.00036978721618652344, -0.005615234375, -0.030303955078125, 0.00406646728515625, 0.031463623046875, 0.054534912109375, 0.0269927978515625, 0.01715087890625, -0.0283660888671875, 0.0272979736328125, -0.0159759521484375, 0.0562744140625, -0.056365966796875, 0.01560211181640625, 0.048065185546875, -0.0008077621459960938, 0.001605987548828125, 0.01702880859375, 0.037200927734375, 0.00485992431640625, 0.035247802734375, -0.0019388198852539062, -0.01462554931640625, 0.01280975341796875, 0.0091094970703125, 0.005977630615234375, 0.01849365234375, -0.015533447265625, 0.0038547515869140625, 0.01407623291015625, 0.03192138671875, 0.034759521484375, 0.04693603515625, -0.0293121337890625, 0.014495849609375, 0.0274658203125, 0.0286865234375, -0.01059722900390625, 0.022613525390625, 0.02923583984375, -0.03753662109375, -0.049896240234375, 0.0168914794921875, -0.01947021484375, 0.0026988983154296875, -0.0169830322265625, -0.00635528564453125, 0.0019359588623046875, -0.0102386474609375, -0.00778961181640625, -0.053192138671875, 0.028900146484375, 0.02978515625, 0.0556640625, 0.007633209228515625, 0.047698974609375, -0.0216217041015625, -0.037078857421875, 0.042816162109375, 0.006145477294921875, -0.060699462890625, 0.0037136077880859375, -0.039764404296875, 0.034271240234375, -0.036590576171875, 0.0255126953125, 0.056732177734375, -0.0230560302734375, 0.01354217529296875, 0.01497650146484375, -0.0223236083984375, 0.0233612060546875, 0.0284271240234375, 0.004756927490234375, -0.013427734375, -0.0428466796875, 0.0163421630859375, -0.01061248779296875, -0.02716064453125, -0.0418701171875, -0.05194091796875, -0.0640869140625, -0.0423583984375, -0.11358642578125, -0.01488494873046875, -0.059234619140625, -0.055999755859375, 0.004131317138671875, 0.044281005859375, -0.031005859375, -0.00457763671875, 0.0985107421875, 0.0235748291015625, 0.01947021484375, -0.04095458984375, -0.041259765625, -0.0618896484375, -0.04925537109375, -0.0157318115234375, 0.01264190673828125, -0.0201568603515625, -0.00396728515625, 0.0482177734375, 0.005702972412109375, -0.041717529296875, 0.0236968994140625, -0.046844482421875, -0.015960693359375, 0.0261688232421875, 0.01849365234375, 0.0233154296875, 0.027069091796875, 0.00921630859375, 0.0221710205078125, 0.043243408203125, -0.04534912109375, -0.038787841796875, 0.0191497802734375, 0.06671142578125, 0.01509857177734375, 0.007904052734375, 0.0114593505859375, 0.036224365234375, -0.03045654296875, -0.0166168212890625, -0.005596160888671875, -0.0029850006103515625, -0.033599853515625, 0.0182647705078125, 0.02056884765625, -0.017303466796875, 0.004222869873046875, 0.0014133453369140625, 0.006671905517578125, 0.0189208984375, 0.01004791259765625, -0.004756927490234375, -0.0204925537109375, -0.01438140869140625, -0.0035953521728515625, 0.0059661865234375, 0.04705810546875, -0.0030517578125, 0.0119171142578125, 0.0274810791015625, 0.029998779296875, 0.034912109375, -0.007556915283203125, -0.0276947021484375, -0.01140594482421875, 0.0306854248046875, -0.05841064453125, 0.007625579833984375, -0.053955078125, -0.007602691650390625, -0.02337646484375, 0.052154541015625, -0.039459228515625, -0.01264190673828125, -0.0108642578125, -0.003261566162109375, 0.0214385986328125, -0.029754638671875, -0.015838623046875, -0.029296875, -0.07855224609375, -0.0004172325134277344, 0.00707244873046875, -0.04522705078125, -0.0164031982421875, 0.047821044921875, -0.05548095703125, -0.01233673095703125, 0.038787841796875, -0.0292816162109375, -0.04962158203125, 0.021697998046875, -0.083251953125, -0.0233612060546875, -0.043304443359375, 0.0176239013671875, -0.131591796875, -0.0006346702575683594, -0.055084228515625, 0.0672607421875, 0.03436279296875, -0.0232696533203125, -0.033447265625, 0.03216552734375, 0.050384521484375, -0.0128173828125, 0.028839111328125, -0.0312042236328125, 0.03143310546875, 0.0009264945983886719, 0.0102081298828125, -0.0274505615234375, 0.008026123046875, 0.01313018798828125, -0.0352783203125, 0.0278167724609375, -0.006481170654296875, 0.0170440673828125, 0.015960693359375, -0.038299560546875, -0.0230255126953125, -0.021270751953125, -0.056854248046875, -0.01097869873046875, -0.0226898193359375, -0.005786895751953125, -0.01110076904296875, -0.0506591796875, -0.0220184326171875, -0.07012939453125, -0.0242919921875, 0.0110321044921875, 0.064208984375, 0.046356201171875, 0.039276123046875, 0.044219970703125, -0.0199737548828125, 0.015350341796875, 0.0208282470703125, 0.0396728515625, 0.031951904296875, 0.007106781005859375, 0.0086822509765625, 0.0007638931274414062, 0.00853729248046875, -0.005584716796875, 0.0153350830078125, -0.0029354095458984375, -0.0313720703125, 0.04150390625, -0.00598907470703125, 0.0095062255859375, 0.024017333984375, 0.00888824462890625, -0.027099609375, 0.0118255615234375, 0.04266357421875, 0.0110626220703125, -0.036468505859375, -0.051605224609375, 0.01479339599609375, 0.00466156005859375, -0.0252838134765625, 0.0706787109375, 0.03009033203125, -0.00420379638671875, 0.00577545166015625, 0.00653076171875, -0.01514434814453125, 0.040191650390625, 0.0494384765625, 0.00007849931716918945, 0.05230712890625, -0.032257080078125, -0.030029296875, -0.013336181640625, -0.00608062744140625, 0.07891845703125, 0.01678466796875, -0.0136871337890625, -0.0247344970703125, -0.0038623809814453125, -0.037200927734375, -0.00714874267578125, -0.0011644363403320312, 0.04180908203125, 0.0207366943359375, -0.005260467529296875, -0.01453399658203125, -0.0245361328125, 0.01020050048828125, -0.0501708984375, 0.0271148681640625, -0.006561279296875, 0.0172576904296875, 0.016265869140625, 0.048126220703125, -0.0021228790283203125, 0.037384033203125, -0.0171966552734375, 0.01401519775390625, 0.005657196044921875, -0.0018758773803710938, 0.025177001953125, 0.006343841552734375, 0.00020933151245117188, -0.029693603515625, 0.012481689453125, -0.024627685546875, -0.0233001708984375, 0.038330078125, 0.0277862548828125, 0.025482177734375, 0.005359649658203125, -0.005939483642578125, 0.0027217864990234375, -0.040802001953125, 0.07977294921875, -0.00732421875, -0.10418701171875, -0.05157470703125, 0.0038738250732421875, 0.037750244140625, -0.0406494140625, -0.004703521728515625, 0.0197296142578125, 0.004039764404296875, -0.004730224609375, -0.0545654296875, -0.044647216796875, 0.0027256011962890625, 0.0305023193359375, 0.010345458984375, -0.0162506103515625, -0.0241241455078125, -0.0274505615234375, -0.0257415771484375, -0.022552490234375, 0.005130767822265625, 0.069091796875, -0.00435638427734375, 0.034759521484375, -0.018524169921875, -0.011444091796875, 0.005985260009765625, 0.024444580078125, 0.01329803466796875, -0.007251739501953125, -0.050567626953125, -0.0016012191772460938, -0.04376220703125, -0.0299072265625, -0.045654296875, 0.012664794921875, -0.063720703125, 0.0311126708984375, -0.0013818740844726562, 0.004856109619140625, -0.004871368408203125, 0.00836181640625, -0.032958984375, 0.027252197265625, 0.026824951171875, 0.02587890625, 0.027130126953125, 0.0245208740234375, 0.0045623779296875, 0.056060791015625, 0.04150390625, 0.0121917724609375, -0.031982421875, -0.0278472900390625, 0.00621795654296875, -0.01898193359375, -0.042877197265625, 0.01078033447265625, -0.05084228515625, 0.0252227783203125, 0.059356689453125, -0.0180816650390625, 0.028656005859375, -0.01003265380859375, -0.001148223876953125, -0.006603240966796875, -0.0003917217254638672, -0.00441741943359375, -0.000017881393432617188, 0.04925537109375, -0.0309600830078125, 0.04833984375, 0.0162353515625, 0.022979736328125, -0.004299163818359375, -0.0308685302734375, 0.0166168212890625, 0.003742218017578125, -0.0262603759765625, 0.068115234375, 0.047943115234375, -0.01611328125, 0.021820068359375, 0.01336669921875, -0.00604248046875, -0.0266265869140625, -0.04156494140625, 0.027008056640625, 0.01739501953125, 0.0288543701171875, -0.0164947509765625, 0.03326416015625, 0.044036865234375, 0.0007219314575195312, 0.0263671875, 0.048095703125, 0.072998046875, -0.0784912109375, 0.00678253173828125, 0.0023632049560546875, -0.0182647705078125, 0.045074462890625, 0.00681304931640625, -0.01093292236328125, -0.0223846435546875, 0.020843505859375, -0.01534271240234375, -0.013214111328125, 0.0083465576171875, -0.004108428955078125, -0.008697509765625, 0.0030670166015625, 0.058502197265625, 0.0029010772705078125, 0.0263671875, -0.0462646484375, -0.0484619140625, -0.0036716461181640625, -0.003620147705078125, 0.01285552978515625, -0.048431396484375, 0.0047760009765625, -0.01390838623046875, -0.005054473876953125, -0.055694580078125, 0.007534027099609375, 0.05169677734375, 0.042388916015625, 0.0357666015625, 0.07366943359375, 0.01279449462890625, 0.0084075927734375, 0.02984619140625, -0.0158233642578125, -0.0007491111755371094, -0.059539794921875, -0.0026721954345703125, 0.0196533203125, -0.0137786865234375, 0.020904541015625, 0.02471923828125, -0.059967041015625, -0.004505157470703125, 0.01715087890625, 0.07122802734375, -0.00036525726318359375, -0.040191650390625, 0.0034275054931640625, 0.00623321533203125, 0.01345062255859375, -0.0308380126953125, 0.0205230712890625, -0.03125, 0.0236968994140625, -0.031005859375, -0.00606536865234375, -0.01343536376953125, -0.0335693359375, -0.055877685546875, 0.1319580078125, -0.04705810546875, 0.03619384765625, 0.003116607666015625, 0.0543212890625, 0.00905609130859375, 0.04730224609375, -0.02227783203125, 0.04669189453125, 0.0009489059448242188, 0.054351806640625, -0.046234130859375, -0.018707275390625, 0.0187530517578125, 0.047637939453125, 0.0389404296875, 0.0107574462890625, 0.0307464599609375, -0.00005811452865600586, 0.025848388671875, 0.0260162353515625, -0.0202484130859375, -0.006580352783203125, -0.0198974609375, 0.0224761962890625, 0.0305938720703125, -0.02001953125, 0.0291748046875, -0.0027942657470703125, -0.03973388671875, -0.005023956298828125, -0.0081329345703125, -0.0192108154296875, 0.0176849365234375, 0.043670654296875, -0.0367431640625, 0.0077056884765625, 0.01309967041015625, -0.005329132080078125, -0.00530242919921875, 0.02630615234375, -0.005283355712890625, 0.05816650390625, -0.0167083740234375, 0.0005693435668945312, 0.017974853515625, 0.00897216796875, -0.0121917724609375, -0.00820159912109375, 0.004055023193359375, -0.00554656982421875, -0.06256103515625, -0.0313720703125, -0.0014019012451171875, -0.0276336669921875, 0.01788330078125, -0.009307861328125, 0.016082763671875, -0.056884765625, -0.053466796875, 0.016357421875, 0.038726806640625, -0.00983428955078125, -0.07745361328125, 0.0022869110107421875, 0.00775146484375, 0.035003662109375, 0.040008544921875, 0.0361328125, 0.0421142578125, 0.0784912109375, -0.0170745849609375, 0.01351165771484375, 0.0179290771484375, 0.01117706298828125, -0.0011463165283203125, 0.023040771484375, -0.02587890625, 0.018310546875, -0.0305938720703125, 0.01678466796875, 0.023040771484375, 0.0119171142578125, -0.01251983642578125, 0.0518798828125, 0.0100250244140625, -0.0013647079467773438, -0.007472991943359375, 0.060150146484375, -0.059661865234375, 0.0286712646484375, -0.053497314453125, -0.0863037109375, -0.04351806640625, 0.0572509765625, 0.01091766357421875, 0.0267181396484375, 0.01959228515625, 0.01287841796875, 0.02960205078125, 0.00708770751953125, 0.049713134765625, -0.006084442138671875, -0.001361846923828125, -0.035736083984375, 0.037994384765625, 0.0153045654296875, 0.0169525146484375, 0.00213623046875, 0.0255584716796875, 0.0338134765625, -0.0014581680297851562, 0.0177764892578125, 0.006992340087890625, -0.0278778076171875, 0.004817962646484375, 0.007904052734375, 0.039581298828125, 0.0216064453125, -0.0771484375, -0.0274200439453125, 0.006252288818359375, -0.053192138671875, 0.01300811767578125, 0.03045654296875, -0.0288238525390625, 0.0238494873046875, -0.0191802978515625, 0.01116943359375, -0.012176513671875, -0.003444671630859375, -0.00728607177734375, -0.002330780029296875, 0.01303863525390625, -0.007518768310546875, -0.04254150390625, -0.0019550323486328125, -0.02032470703125, -0.0006093978881835938, 0.035369873046875, 0.07861328125, -0.006313323974609375, 0.01415252685546875, -0.01041412353515625, 0.0011768341064453125, -0.0134429931640625, -0.00292205810546875, -0.01508331298828125, 0.021484375, 0.0133819580078125, -0.0132293701171875, -0.0153961181640625, 0.047576904296875, 0.0154571533203125, -0.037261962890625, 0.0297088623046875, 0.004230499267578125, -0.0024814605712890625, -0.0215606689453125, 0.0328369140625, -0.0355224609375, -0.08221435546875, -0.075927734375, 0.01739501953125, 0.007205963134765625, 0.0389404296875, -0.00732421875, 0.01508331298828125, 0.0086822509765625, -0.01081085205078125, -0.00872802734375, 0.01282501220703125, -0.022247314453125, 0.0258026123046875, 0.018707275390625, -0.00290679931640625, 0.043975830078125, -0.0138397216796875, 0.044219970703125, 0.017425537109375, 0.015838623046875, 0.054656982421875, -0.041107177734375, 0.0338134765625, 0.0175933837890625, 0.029541015625, -0.047393798828125, -0.0076141357421875, 0.049102783203125, -0.0036411285400390625, 0.00505828857421875, -0.044097900390625, -0.037506103515625, -0.061767578125, -0.02276611328125, 0.01316070556640625, -0.06256103515625, -0.06732177734375, -0.06964111328125, 0.0186767578125, 0.035675048828125, 0.0341796875, -0.124755859375, 0.0599365234375, -0.016143798828125, 0.06365966796875, -0.01108551025390625, 0.00855255126953125, -0.0028476715087890625, 0.03179931640625, -0.0227813720703125, 0.0199127197265625, -0.0171356201171875, -0.005916595458984375, 0.0033740997314453125, 0.00627899169921875, 0.0308380126953125, -0.021881103515625, -0.00962066650390625, 0.005908966064453125, 0.007175445556640625, 0.053619384765625, 0.00759124755859375, -0.01374053955078125, 0.005741119384765625, -0.002288818359375, -0.0268707275390625, -0.039398193359375, 0.03472900390625, -0.0906982421875, -0.027557373046875, 0.0082550048828125, -0.0237884521484375, -0.01282501220703125, -0.04705810546875, -0.09246826171875, 0.02593994140625, -0.0007600784301757812, -0.047271728515625, -0.031646728515625, -0.009979248046875, -0.0283966064453125, 0.05230712890625, 0.0016632080078125, -0.0338134765625, -0.00000947713851928711, 0.048675537109375, 0.0012407302856445312, 0.034942626953125, -0.017486572265625, 0.017333984375, -0.04266357421875, 0.017333984375, 0.0153961181640625, -0.00684356689453125, 0.035980224609375, -0.0292816162109375, 0.0499267578125, 0.034759521484375, -0.05010986328125, -0.005382537841796875, -0.0230712890625, 0.004741668701171875, 0.00921630859375, -0.0304107666015625, 0.01212310791015625, -0.01461029052734375, 0.0191192626953125, 0.004337310791015625, -0.003955841064453125, -0.01282501220703125, -0.0029697418212890625, -0.08392333984375, -0.017364501953125, -0.0111236572265625, 0.00948333740234375, -0.054412841796875, 0.0175323486328125, 0.0506591796875, -0.01239776611328125, -0.0167083740234375, 0.0213165283203125, -0.0272216796875, -0.0126800537109375, 0.0251312255859375, 0.0056304931640625, -0.040313720703125, 0.0289306640625, 0.047760009765625, -0.04925537109375, -0.0226898193359375, -0.0009527206420898438, -0.01059722900390625, 0.0028476715087890625, -0.062744140625, 0.0115966796875, -0.003692626953125, -0.033294677734375, 0.02093505859375, 0.0121917724609375, -0.004573822021484375, -0.034515380859375, -0.0180816650390625, 0.01146697998046875, 0.0233154296875, -0.01531219482421875, 0.023284912109375, -0.0030670166015625, 0.07293701171875, -0.00513458251953125, 0.061614990234375, 0.006771087646484375, 0.0200042724609375, -0.006816864013671875, 0.031494140625, -0.03399658203125, -0.01071929931640625, -0.0277862548828125, -0.0105133056640625, 0.0101318359375, 0.01009368896484375, 0.0008435249328613281, -0.037109375, 0.045867919921875, -0.028228759765625, -0.0179290771484375, 0.01397705078125 ]
e75bb503bbd845f5ea4362049a5edcbe62af4830
Wordpress Stackexchange Q: Control verbosity level of WP DEBUG? I've been at a loss so far and so I thought I'd pose the question: Is there a way to modify the verbosity level of the WP debug.log via wp-config.php or elsewhere? Just an fyi, here is what I have in my wp-config.php to enable logging: /////////////////////////////////////////////////// // DEBUG // Enable WP_DEBUG mode define('WP_DEBUG', true); // Enable Debug logging to the /wp-content/debug.log file define('WP_DEBUG_LOG', true); // Disable display of errors and warnings define('WP_DEBUG_DISPLAY', false); @ini_set('display_errors',0); // Use dev versions of core JS and CSS files (only needed if you are modifying these core files) define('SCRIPT_DEBUG', true); // END DEBUG ///////////////////////////////////////////////// A: When WP_DEBUG is set, WordPress sets (via wp_debug_mode() call early in core load process) the error reporting level to E_ALL & ~E_DEPRECATED & ~E_STRICT. This means all warnings and errors except strict errors and PHP deprecated functions (not WordPress ones). You can define your own level in a custom mu-plugin (the override needs to be called as soon as possible, but after WordPress core load). Use this page for information about the error levels you can use. An example: error_reporting( E_ERROR | E_WARNING | E_PARSE );
Q: Control verbosity level of WP DEBUG? I've been at a loss so far and so I thought I'd pose the question: Is there a way to modify the verbosity level of the WP debug.log via wp-config.php or elsewhere? Just an fyi, here is what I have in my wp-config.php to enable logging: /////////////////////////////////////////////////// // DEBUG // Enable WP_DEBUG mode define('WP_DEBUG', true); // Enable Debug logging to the /wp-content/debug.log file define('WP_DEBUG_LOG', true); // Disable display of errors and warnings define('WP_DEBUG_DISPLAY', false); @ini_set('display_errors',0); // Use dev versions of core JS and CSS files (only needed if you are modifying these core files) define('SCRIPT_DEBUG', true); // END DEBUG ///////////////////////////////////////////////// A: When WP_DEBUG is set, WordPress sets (via wp_debug_mode() call early in core load process) the error reporting level to E_ALL & ~E_DEPRECATED & ~E_STRICT. This means all warnings and errors except strict errors and PHP deprecated functions (not WordPress ones). You can define your own level in a custom mu-plugin (the override needs to be called as soon as possible, but after WordPress core load). Use this page for information about the error levels you can use. An example: error_reporting( E_ERROR | E_WARNING | E_PARSE );
wordpress
{ "language": "en", "length": 194, "provenance": "stackexchange_00019.jsonl.gz:433560", "question_score": "14", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/103040" }
[ 0.06182861328125, -0.008636474609375, -0.0364990234375, -0.0859375, 0.0283050537109375, -0.0283050537109375, 0.0268096923828125, 0.0276641845703125, 0.03759765625, -0.0005269050598144531, 0.005001068115234375, -0.050628662109375, 0.0171051025390625, -0.035858154296875, -0.0218963623046875, -0.0244140625, 0.0276031494140625, -0.005985260009765625, 0.035797119140625, -0.01043701171875, 0.01409149169921875, -0.01153564453125, 0.02105712890625, 0.07098388671875, -0.0126800537109375, 0.0262603759765625, 0.04864501953125, -0.044189453125, 0.021331787109375, 0.0010929107666015625, 0.00811767578125, -0.01131439208984375, 0.0311126708984375, 0.07550048828125, -0.11907958984375, -0.00969696044921875, 0.00876617431640625, 0.00576019287109375, -0.018096923828125, 0.049957275390625, 0.0287017822265625, -0.007602691650390625, 0.08154296875, -0.0312042236328125, 0.0335693359375, -0.0030078887939453125, 0.0278167724609375, -0.047760009765625, 0.032745361328125, -0.042694091796875, 0.00145721435546875, 0.0028400421142578125, 0.0256195068359375, -0.0709228515625, -0.037994384765625, -0.0301361083984375, -0.0343017578125, 0.026519775390625, 0.01470947265625, 0.05902099609375, 0.0112152099609375, 0.00798797607421875, -0.01611328125, -0.04791259765625, 0.0233154296875, -0.006519317626953125, 0.01407623291015625, 0.01267242431640625, -0.026641845703125, 0.026580810546875, 0.03192138671875, -0.0296173095703125, -0.0087432861328125, 0.006717681884765625, 0.0011720657348632812, -0.023193359375, 0.044647216796875, 0.013641357421875, -0.006195068359375, 0.01556396484375, 0.055419921875, -0.054656982421875, 0.0175628662109375, 0.032257080078125, 0.03399658203125, 0.06842041015625, 0.01519775390625, -0.0355224609375, -0.0289764404296875, -0.0117950439453125, -0.02398681640625, 0.0005636215209960938, -0.036529541015625, -0.005611419677734375, -0.007030487060546875, -0.0174102783203125, -0.00798797607421875, 0.01023101806640625, 0.00330352783203125, -0.03497314453125, -0.01849365234375, -0.016845703125, -0.060394287109375, -0.001007080078125, 0.007293701171875, 0.03424072265625, -0.0426025390625, -0.049072265625, 0.029296875, 0.05694580078125, 0.01349639892578125, 0.007228851318359375, -0.03857421875, -0.049163818359375, 0.01255035400390625, 0.054473876953125, -0.0231170654296875, 0.01354217529296875, -0.006378173828125, 0.028045654296875, 0.03717041015625, 0.049713134765625, -0.02655029296875, 0.01462554931640625, -0.019378662109375, -0.0147552490234375, 0.005023956298828125, -0.03955078125, 0.025604248046875, 0.021148681640625, -0.0060882568359375, 0.0272064208984375, -0.0221099853515625, -0.00923919677734375, -0.0259552001953125, -0.00628662109375, 0.00299835205078125, -0.0234375, -0.02239990234375, 0.01340484619140625, -0.0015268325805664062, -0.0203857421875, 0.0164337158203125, -0.01003265380859375, -0.026763916015625, 0.0241241455078125, 0.025115966796875, 0.01611328125, -0.0162506103515625, -0.07537841796875, 0.0199127197265625, -0.01348114013671875, 0.02825927734375, -0.013580322265625, 0.0091705322265625, -0.057403564453125, 0.0307464599609375, -0.046051025390625, 0.018157958984375, -0.046112060546875, -0.0172271728515625, -0.0201873779296875, 0.0194091796875, -0.0297088623046875, -0.0242462158203125, 0.0190887451171875, -0.0237884521484375, 0.0158843994140625, 0.02880859375, 0.0186767578125, 0.06475830078125, -0.0224456787109375, -0.0264129638671875, -0.01251220703125, -0.008514404296875, -0.00882720947265625, -0.032073974609375, 0.0184478759765625, 0.053802490234375, -0.0261077880859375, -0.010040283203125, -0.0176239013671875, 0.06494140625, -0.0016107559204101562, -0.037811279296875, -0.00846099853515625, 0.0072479248046875, 0.0281524658203125, 0.034088134765625, 0.012908935546875, 0.0232696533203125, -0.0231781005859375, 0.04376220703125, 0.01120758056640625, -0.0171051025390625, -0.090087890625, 0.0111083984375, -0.0130615234375, -0.02435302734375, 0.0294189453125, -0.022979736328125, 0.004726409912109375, -0.036651611328125, -0.006805419921875, -0.1353759765625, -0.005908966064453125, -0.05169677734375, 0.05615234375, 0.03619384765625, 0.002033233642578125, -0.0015048980712890625, -0.0031070709228515625, 0.00824737548828125, -0.018585205078125, -0.050079345703125, 0.061126708984375, -0.0277252197265625, 0.0279541015625, 0.004779815673828125, 0.02667236328125, 0.0013580322265625, -0.0210113525390625, -0.0036830902099609375, -0.0204315185546875, 0.031463623046875, 0.0121917724609375, -0.003498077392578125, 0.006160736083984375, 0.0714111328125, 0.0227813720703125, 0.042633056640625, -0.005115509033203125, 0.0298614501953125, 0.04302978515625, 0.0054931640625, -0.0258331298828125, 0.008544921875, -0.09112548828125, 0.0237884521484375, 0.0491943359375, 0.038970947265625, 0.03387451171875, 0.0181732177734375, 0.01512908935546875, 0.059783935546875, -0.0718994140625, 0.00806427001953125, -0.00909423828125, -0.012603759765625, -0.023895263671875, -0.017730712890625, -0.00797271728515625, 0.055389404296875, -0.019500732421875, 0.0220947265625, 0.05230712890625, -0.0046234130859375, -0.039459228515625, -0.0146636962890625, 0.01192474365234375, 0.00818634033203125, -0.0269775390625, -0.0105743408203125, -0.00870513916015625, -0.00334930419921875, 0.01540374755859375, 0.032379150390625, 0.03778076171875, 0.00614166259765625, 0.005889892578125, 0.0002949237823486328, -0.0190277099609375, 0.011810302734375, 0.027618408203125, -0.063232421875, 0.02227783203125, -0.02105712890625, 0.0197296142578125, 0.00453948974609375, -0.00384521484375, -0.02392578125, 0.025604248046875, 0.006023406982421875, -0.0055694580078125, -0.02655029296875, -0.04217529296875, 0.0218048095703125, -0.0149993896484375, 0.0129547119140625, -0.043731689453125, -0.0084991455078125, 0.0242919921875, -0.0285491943359375, 0.051605224609375, 0.0208282470703125, -0.03961181640625, 0.030364990234375, -0.0650634765625, 0.0516357421875, -0.023406982421875, 0.0186614990234375, 0.07794189453125, -0.0021839141845703125, 0.01177215576171875, 0.0002758502960205078, 0.0279541015625, 0.01457977294921875, -0.0131683349609375, -0.029022216796875, -0.017364501953125, -0.039154052734375, 0.00267791748046875, 0.006336212158203125, 0.002338409423828125, -0.00787353515625, -0.03448486328125, -0.0440673828125, 0.0192413330078125, -0.0604248046875, -0.032867431640625, -0.0296478271484375, -0.08013916015625, 0.0280303955078125, -0.00897216796875, -0.037445068359375, -0.0175018310546875, 0.039764404296875, 0.022430419921875, 0.00273895263671875, -0.04351806640625, -0.008758544921875, -0.05633544921875, -0.0364990234375, 0.0193939208984375, 0.0167999267578125, -0.002162933349609375, 0.00740814208984375, 0.069091796875, 0.0027942657470703125, -0.07080078125, -0.0264892578125, 0.0186614990234375, -0.047821044921875, -0.01739501953125, -0.0220794677734375, -0.01216888427734375, 0.0276031494140625, -0.0133514404296875, -0.061798095703125, -0.0175933837890625, 0.048370361328125, -0.035919189453125, -0.01419830322265625, -0.0182342529296875, -0.0140838623046875, -0.035552978515625, 0.036895751953125, -0.01486968994140625, -0.0389404296875, -0.042022705078125, -0.04443359375, 0.027984619140625, -0.054046630859375, -0.007648468017578125, 0.043365478515625, -0.0182647705078125, 0.0018281936645507812, -0.026214599609375, 0.007610321044921875, 0.005706787109375, 0.0806884765625, -0.027252197265625, 0.009857177734375, -0.026123046875, -0.04644775390625, -0.06396484375, 0.060455322265625, -0.004974365234375, -0.0240936279296875, 0.015716552734375, -0.00095367431640625, 0.0034580230712890625, -0.03143310546875, -0.0199737548828125, 0.0170440673828125, 0.005512237548828125, -0.06390380859375, 0.0238037109375, -0.0233154296875, 0.0038242340087890625, -0.01715087890625, 0.0341796875, -0.01305389404296875, -0.02239990234375, -0.0214385986328125, 0.0142669677734375, -0.0216522216796875, -0.006473541259765625, -0.0019378662109375, -0.0011873245239257812, -0.030242919921875, 0.0174560546875, -0.0023517608642578125, -0.0183868408203125, -0.0233612060546875, 0.00876617431640625, -0.0239410400390625, -0.0243988037109375, 0.0165252685546875, -0.0214691162109375, -0.004322052001953125, 0.0257720947265625, -0.0036678314208984375, 0.01473236083984375, -0.006481170654296875, -0.03204345703125, -0.11468505859375, -0.02178955078125, -0.0648193359375, 0.0992431640625, 0.037994384765625, -0.034454345703125, 0.005123138427734375, 0.07098388671875, -0.017303466796875, -0.00931549072265625, 0.0105438232421875, 0.0204925537109375, -0.0201263427734375, 0.0212554931640625, 0.005802154541015625, -0.0064544677734375, -0.00848388671875, -0.0255279541015625, -0.0221099853515625, -0.0006113052368164062, -0.01071929931640625, 0.0268402099609375, 0.016387939453125, -0.01213836669921875, -0.01544952392578125, -0.04150390625, -0.029693603515625, -0.00433349609375, -0.017181396484375, -0.005340576171875, -0.03643798828125, -0.027587890625, 0.0196380615234375, -0.03802490234375, -0.042724609375, 0.00787353515625, 0.06085205078125, 0.0413818359375, 0.0050048828125, 0.012115478515625, -0.0018682479858398438, 0.028289794921875, -0.04461669921875, 0.0340576171875, 0.0136566162109375, -0.00432586669921875, 0.03948974609375, -0.036041259765625, 0.01116180419921875, 0.0034732818603515625, -0.00937652587890625, -0.005084991455078125, -0.05987548828125, 0.039215087890625, -0.01074981689453125, 0.00833892822265625, 0.029754638671875, -0.0098724365234375, 0.012908935546875, 0.024261474609375, 0.027923583984375, -0.038299560546875, -0.000431060791015625, -0.02197265625, -0.03704833984375, 0.0008726119995117188, -0.025970458984375, 0.0228424072265625, 0.020721435546875, 0.006237030029296875, 0.0115509033203125, 0.032745361328125, -0.0212554931640625, 0.049468994140625, 0.05059814453125, -0.00695037841796875, -0.0036983489990234375, 0.0654296875, -0.0435791015625, -0.0216827392578125, -0.01837158203125, 0.05181884765625, -0.004611968994140625, -0.07568359375, 0.025604248046875, -0.0089874267578125, 0.045318603515625, 0.02752685546875, -0.032928466796875, 0.043792724609375, 0.02337646484375, -0.04302978515625, -0.01389312744140625, -0.047332763671875, -0.0135040283203125, -0.058929443359375, 0.01161956787109375, -0.04327392578125, 0.0181427001953125, -0.0014553070068359375, 0.059814453125, -0.03131103515625, 0.042755126953125, -0.01303863525390625, 0.003936767578125, 0.010894775390625, 0.05157470703125, 0.024139404296875, -0.043365478515625, 0.016326904296875, 0.004436492919921875, 0.0361328125, -0.035675048828125, -0.049896240234375, 0.018402099609375, 0.0189056396484375, -0.07513427734375, -0.002582550048828125, 0.02947998046875, 0.0301361083984375, 0.0182647705078125, 0.0237579345703125, -0.03277587890625, -0.03955078125, 0.00046181678771972656, -0.0192108154296875, 0.021697998046875, -0.058746337890625, 0.0206146240234375, -0.006229400634765625, 0.00897979736328125, 0.0069732666015625, -0.02935791015625, -0.017120361328125, -0.030670166015625, -0.004169464111328125, -0.03741455078125, -0.0313720703125, -0.0157012939453125, -0.06622314453125, -0.0234832763671875, 0.00431060791015625, 0.00408172607421875, 0.0106964111328125, -0.058746337890625, 0.00423431396484375, 0.0021114349365234375, -0.007396697998046875, 0.061126708984375, 0.0379638671875, 0.0170440673828125, 0.00130462646484375, 0.00829315185546875, -0.0107269287109375, -0.024383544921875, -0.05279541015625, 0.0004627704620361328, 0.007564544677734375, -0.044586181640625, -0.00386810302734375, -0.0118255615234375, 0.01419830322265625, -0.0157623291015625, 0.0040283203125, -0.0012712478637695312, 0.032012939453125, -0.002857208251953125, 0.0411376953125, 0.000507354736328125, 0.024627685546875, -0.0231170654296875, 0.0024890899658203125, 0.01227569580078125, 0.0179595947265625, 0.00009608268737792969, -0.01532745361328125, 0.02349853515625, 0.004222869873046875, -0.041839599609375, -0.025787353515625, -0.020263671875, -0.0028934478759765625, 0.0718994140625, -0.0265045166015625, 0.0257110595703125, -0.0106658935546875, 0.013092041015625, -0.0083465576171875, -0.0178680419921875, -0.0185546875, 0.005863189697265625, 0.03265380859375, -0.006282806396484375, -0.01248931884765625, -0.0185546875, -0.0198822021484375, 0.0260467529296875, 0.0100555419921875, -0.0026416778564453125, -0.01457977294921875, -0.00896453857421875, 0.0197906494140625, 0.06121826171875, -0.0005807876586914062, 0.00798797607421875, 0.0265655517578125, -0.018646240234375, -0.02581787109375, -0.003734588623046875, 0.02484130859375, -0.025726318359375, 0.02984619140625, -0.0012483596801757812, 0.015625, 0.031494140625, -0.00489044189453125, 0.0203399658203125, 0.06219482421875, 0.07525634765625, -0.0946044921875, 0.01358795166015625, 0.01971435546875, -0.01446533203125, 0.021575927734375, -0.03717041015625, 0.0526123046875, 0.0309295654296875, 0.0299224853515625, -0.003253936767578125, -0.03338623046875, -0.001461029052734375, -0.0450439453125, -0.00518798828125, 0.0084075927734375, 0.05108642578125, 0.027374267578125, -0.0261688232421875, 0.0260772705078125, 0.0139617919921875, 0.02862548828125, 0.00870513916015625, 0.026763916015625, -0.03515625, -0.041717529296875, -0.054840087890625, -0.03424072265625, -0.00507354736328125, -0.047821044921875, -0.0184783935546875, 0.0178070068359375, 0.0360107421875, 0.0291595458984375, 0.0021457672119140625, -0.00841522216796875, 0.029937744140625, -0.034820556640625, 0.01190948486328125, -0.031951904296875, 0.0140380859375, 0.0291595458984375, -0.0787353515625, 0.01091766357421875, -0.03509521484375, 0.011962890625, -0.0007162094116210938, 0.020904541015625, 0.09130859375, -0.05401611328125, -0.0302276611328125, -0.004856109619140625, 0.006195068359375, 0.0214996337890625, -0.03826904296875, 0.0400390625, -0.06500244140625, -0.00662994384765625, -0.009613037109375, -0.00516510009765625, -0.01398468017578125, -0.031158447265625, -0.032928466796875, 0.058990478515625, -0.0005688667297363281, -0.01125335693359375, 0.0144805908203125, 0.0259552001953125, -0.04925537109375, -0.002330780029296875, -0.030364990234375, 0.08343505859375, 0.053466796875, 0.03961181640625, -0.054718017578125, -0.0369873046875, 0.0382080078125, 0.056915283203125, 0.0214996337890625, 0.00933837890625, -0.02392578125, 0.0022335052490234375, 0.0350341796875, 0.01123809814453125, -0.004924774169921875, 0.0341796875, -0.020660400390625, 0.005130767822265625, 0.00577545166015625, -0.045684814453125, 0.020477294921875, -0.0283355712890625, -0.012786865234375, 0.00447845458984375, 0.01045989990234375, 0.0005321502685546875, 0.01024627685546875, 0.006076812744140625, -0.026458740234375, 0.008392333984375, 0.00399017333984375, 0.0469970703125, -0.0006504058837890625, 0.062744140625, 0.06781005859375, -0.0282440185546875, -0.0413818359375, -0.02667236328125, 0.041839599609375, 0.00989532470703125, 0.0015954971313476562, 0.025421142578125, 0.019439697265625, 0.00885009765625, 0.01424407958984375, -0.0158538818359375, 0.039154052734375, 0.0014581680297851562, -0.0118560791015625, 0.00858306884765625, 0.0081634521484375, 0.0027923583984375, 0.04742431640625, 0.007541656494140625, -0.007678985595703125, -0.0309295654296875, -0.042236328125, 0.0012331008911132812, -0.04644775390625, 0.007183074951171875, -0.01409149169921875, 0.01141357421875, -0.0179443359375, -0.022064208984375, -0.0180206298828125, -0.016204833984375, -0.0038623809814453125, 0.0137176513671875, 0.00757598876953125, 0.0291595458984375, 0.00728607177734375, -0.0190582275390625, -0.00835418701171875, -0.048309326171875, 0.01064300537109375, 0.0435791015625, 0.03509521484375, 0.005985260009765625, 0.01264190673828125, -0.0018138885498046875, -0.0273590087890625, 0.01082611083984375, 0.002899169921875, 0.044647216796875, -0.01374053955078125, 0.022674560546875, 0.002559661865234375, 0.021240234375, 0.0214691162109375, -0.031524658203125, 0.047943115234375, 0.039215087890625, -0.0771484375, -0.0239715576171875, 0.01702880859375, -0.0201263427734375, -0.0458984375, -0.03814697265625, -0.003086090087890625, 0.025970458984375, 0.004123687744140625, 0.0195465087890625, 0.0245513916015625, 0.004550933837890625, -0.001194000244140625, 0.0198211669921875, 0.0036220550537109375, 0.0011272430419921875, 0.0024433135986328125, -0.019775390625, -0.00965118408203125, 0.016387939453125, -0.007213592529296875, -0.01242828369140625, 0.004581451416015625, -0.03228759765625, 0.0087432861328125, 0.042510986328125, 0.015899658203125, -0.0175323486328125, 0.01898193359375, -0.004367828369140625, 0.00649261474609375, -0.01352691650390625, 0.007419586181640625, 0.007190704345703125, 0.00970458984375, 0.00539398193359375, -0.03759765625, -0.034332275390625, -0.0241241455078125, 0.024139404296875, 0.0242767333984375, 0.0704345703125, -0.01154327392578125, 0.00965118408203125, -0.031768798828125, -0.0309295654296875, 0.004802703857421875, 0.0092315673828125, -0.045440673828125, 0.034027099609375, 0.0070343017578125, -0.016326904296875, -0.088134765625, 0.08294677734375, 0.001708984375, 0.025543212890625, 0.08251953125, -0.019805908203125, 0.000050187110900878906, -0.040679931640625, -0.01751708984375, -0.03271484375, -0.041961669921875, 0.0141754150390625, 0.04534912109375, -0.0151519775390625, -0.0075836181640625, -0.004425048828125, -0.002391815185546875, -0.024688720703125, -0.0220794677734375, 0.015167236328125, -0.01166534423828125, 0.00891876220703125, 0.0237274169921875, -0.0230865478515625, -0.00594329833984375, 0.006992340087890625, -0.02325439453125, 0.032745361328125, 0.006679534912109375, 0.05169677734375, 0.00130462646484375, 0.021881103515625, -0.01264190673828125, 0.0017824172973632812, 0.01343536376953125, -0.019622802734375, -0.005199432373046875, -0.007598876953125, -0.0027179718017578125, 0.0015277862548828125, -0.00789642333984375, -0.004459381103515625, -0.0080718994140625, -0.02813720703125, -0.004688262939453125, 0.0006918907165527344, -0.0270538330078125, 0.032623291015625, 0.01062774658203125, 0.048919677734375, 0.00020170211791992188, -0.033203125, 0.01027679443359375, -0.0187225341796875, 0.051910400390625, 0.018524169921875, 0.0070953369140625, 0.00597381591796875, 0.00928497314453125, -0.041748046875, -0.053497314453125, -0.0228424072265625, 0.048675537109375, -0.0270538330078125, 0.023895263671875, 0.052001953125, -0.0234527587890625, -0.00653839111328125, 0.005565643310546875, 0.00746917724609375, 0.06488037109375, -0.0615234375, -0.0158538818359375, 0.01454925537109375, -0.0022258758544921875, -0.00473785400390625, -0.057586669921875, 0.0013360977172851562, -0.06256103515625, -0.0182647705078125, 0.048736572265625, -0.048675537109375, -0.014495849609375, -0.046966552734375, -0.073486328125, 0.019989013671875, 0.01446533203125, -0.044525146484375, -0.0167236328125, -0.0007863044738769531, -0.0007448196411132812, -0.0272064208984375, 0.0011987686157226562, -0.0211639404296875, -0.035736083984375, 0.01224517822265625, 0.0180511474609375, -0.0177001953125, 0.051239013671875, 0.0154876708984375, -0.01190185546875, 0.023284912109375, 0.025543212890625, -0.0267333984375, -0.00926971435546875, -0.0081939697265625, 0.051055908203125, 0.0180816650390625, -0.0313720703125, 0.06451416015625, 0.03564453125, 0.016632080078125, 0.00437164306640625, -0.027435302734375, -0.0330810546875, -0.027740478515625, 0.10772705078125, -0.03033447265625, 0.0251312255859375, 0.0025844573974609375, -0.03887939453125, -0.0181427001953125, -0.02191162109375, -0.019195556640625, 0.0306396484375, -0.0811767578125, -0.0162353515625, -0.00521087646484375, -0.005054473876953125, 0.0198211669921875, 0.00848388671875, -0.0122528076171875, -0.0203399658203125, 0.01190948486328125, -0.0228424072265625, -0.032073974609375, -0.039520263671875, 0.033111572265625, -0.0214691162109375, 0.020843505859375, -0.006500244140625, 0.035858154296875, 0.01207733154296875, 0.019775390625, -0.0012722015380859375, 0.01238250732421875, -0.0300750732421875, 0.0223236083984375, 0.0034580230712890625, 0.033416748046875, -0.022735595703125, -0.01099395751953125, -0.00988006591796875, -0.004486083984375, 0.0065765380859375, -0.00267791748046875, 0.0020389556884765625, -0.01837158203125, -0.01187896728515625, 0.0543212890625, -0.029144287109375, 0.0462646484375, -0.01297760009765625, 0.0206298828125, -0.01248931884765625, 0.007434844970703125, 0.0251922607421875, -0.0162353515625, 0.0228729248046875, 0.052642822265625, 0.057708740234375, 0.00441741943359375, 0.0290374755859375, 0.0487060546875, 0.0175933837890625, 0.006061553955078125 ]
8d792dc30be1fa9029071e13ff3f75e83374202b
Wordpress Stackexchange Q: Get post only from 'standard' post format I use the following codes to get posts only from 'image' post format and it works. <?php if( has_post_format('image')){ ?> <?php the_post_thumbnail(); ?> <?php } ?> I also need to get posts only from 'standard' post format with the following codes, but it get post from all post formats. <?php if( has_post_format('standard')){ ?> <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> <?php } ?> Any solutions? A: Do, <?php if( false == get_post_format() ){ ?> <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> <?php } ?> The standard post format isn't actually a post format, so if you conditionally check whether a post contains a post format (other than the default standard), it will return false, because it's set to... standard.
Q: Get post only from 'standard' post format I use the following codes to get posts only from 'image' post format and it works. <?php if( has_post_format('image')){ ?> <?php the_post_thumbnail(); ?> <?php } ?> I also need to get posts only from 'standard' post format with the following codes, but it get post from all post formats. <?php if( has_post_format('standard')){ ?> <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> <?php } ?> Any solutions? A: Do, <?php if( false == get_post_format() ){ ?> <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> <?php } ?> The standard post format isn't actually a post format, so if you conditionally check whether a post contains a post format (other than the default standard), it will return false, because it's set to... standard. A: Try this: Exclude all rest terms using 'NOT IN' operator. $args = array( 'orderby' => 'desc', 'posts_per_page' => '4', 'tax_query' => array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array('post-format-aside', 'post-format-gallery', 'post-format-link', 'post-format-image', 'post-format-quote', 'post-format-status', 'post-format-audio', 'post-format-chat', 'post-format-video'), 'operator' => 'NOT IN' ) ), );
wordpress
{ "language": "en", "length": 175, "provenance": "stackexchange_00019.jsonl.gz:433585", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/103119" }
[ 0.05377197265625, -0.016143798828125, 0.0172271728515625, 0.0308685302734375, 0.00547027587890625, -0.0413818359375, 0.08319091796875, -0.0421142578125, -0.0004642009735107422, 0.01363372802734375, -0.0199127197265625, 0.01177978515625, -0.032318115234375, -0.04388427734375, 0.01288604736328125, -0.0298004150390625, 0.050872802734375, -0.03851318359375, 0.022674560546875, -0.002124786376953125, 0.01953125, 0.0251312255859375, 0.038848876953125, 0.047698974609375, 0.02850341796875, 0.0000037550926208496094, 0.05670166015625, -0.0047454833984375, 0.0157318115234375, -0.0089874267578125, 0.02667236328125, -0.041839599609375, -0.00017940998077392578, 0.037567138671875, -0.0195770263671875, 0.0265045166015625, -0.014892578125, 0.0171966552734375, 0.01409149169921875, 0.0257415771484375, 0.00437164306640625, -0.0006561279296875, -0.00688934326171875, 0.005035400390625, -0.028106689453125, 0.033111572265625, -0.055816650390625, -0.051849365234375, 0.0208892822265625, -0.0287322998046875, 0.01180267333984375, 0.0004267692565917969, 0.036590576171875, -0.005828857421875, -0.033416748046875, -0.00860595703125, -0.0221710205078125, 0.02197265625, 0.0372314453125, -0.025848388671875, -0.048736572265625, -0.03411865234375, 0.033416748046875, 0.0010805130004882812, -0.01007080078125, 0.006496429443359375, -0.01047515869140625, 0.0191497802734375, -0.02471923828125, -0.0104522705078125, 0.032958984375, -0.03228759765625, 0.0109710693359375, -0.03466796875, -0.01529693603515625, 0.01392364501953125, -0.0155029296875, -0.04736328125, 0.022796630859375, -0.026947021484375, -0.0088958740234375, 0.01140594482421875, -0.047210693359375, -0.03900146484375, 0.00439453125, -0.024932861328125, -0.0037994384765625, -0.00875091552734375, -0.03778076171875, -0.041656494140625, -0.035003662109375, -0.06610107421875, -0.045379638671875, -0.0009160041809082031, 0.006603240966796875, -0.023834228515625, 0.0207977294921875, 0.0567626953125, -0.005584716796875, 0.01522064208984375, -0.018951416015625, -0.02215576171875, 0.01180267333984375, -0.04388427734375, -0.004619598388671875, -0.00189971923828125, 0.021484375, -0.00304412841796875, 0.0242767333984375, 0.026092529296875, -0.0152130126953125, 0.049957275390625, -0.0085906982421875, 0.004306793212890625, -0.026580810546875, 0.0196685791015625, -0.0435791015625, 0.0014486312866210938, -0.0186004638671875, 0.0276336669921875, 0.018890380859375, 0.052276611328125, 0.0406494140625, -0.07598876953125, 0.003993988037109375, 0.01432037353515625, -0.024749755859375, -0.077392578125, -0.00539398193359375, 0.0369873046875, -0.032928466796875, -0.000018596649169921875, 0.03924560546875, 0.01558685302734375, 0.0024566650390625, -0.032318115234375, -0.007373809814453125, -0.042205810546875, -0.0152740478515625, 0.015625, -0.0032672882080078125, -0.0256805419921875, 0.0279693603515625, -0.00389862060546875, -0.0127716064453125, 0.029876708984375, 0.0207977294921875, 0.00963592529296875, -0.0158233642578125, -0.03167724609375, -0.016510009765625, 0.002117156982421875, 0.0191802978515625, 0.01366424560546875, -0.007080078125, -0.01873779296875, 0.04595947265625, -0.0390625, -0.007305145263671875, -0.04644775390625, 0.033233642578125, -0.00672149658203125, -0.0230865478515625, 0.0005645751953125, -0.0479736328125, 0.00574493408203125, -0.03192138671875, -0.014862060546875, 0.01329803466796875, -0.0267333984375, -0.0004634857177734375, -0.00646209716796875, 0.01288604736328125, 0.004375457763671875, 0.005001068115234375, 0.004528045654296875, -0.01369476318359375, -0.0261688232421875, 0.00720977783203125, 0.0762939453125, 0.0142822265625, -0.01495361328125, -0.0032062530517578125, 0.01256561279296875, -0.044189453125, 0.0167236328125, 0.0233917236328125, 0.0679931640625, 0.00328826904296875, 0.03533935546875, 0.04241943359375, 0.0186614990234375, -0.022186279296875, 0.0037860870361328125, 0.0007319450378417969, -0.01480865478515625, -0.01446533203125, 0.0022144317626953125, -0.02471923828125, 0.017120361328125, 0.046630859375, 0.006053924560546875, -0.01959228515625, -0.00235748291015625, -0.07354736328125, -0.034332275390625, -0.01132965087890625, 0.008056640625, -0.041717529296875, 0.0333251953125, 0.045440673828125, 0.003917694091796875, -0.05908203125, 0.045684814453125, 0.0307159423828125, 0.019439697265625, -0.005382537841796875, -0.01418304443359375, -0.031951904296875, -0.01071929931640625, -0.0224761962890625, -0.042816162109375, -0.041229248046875, 0.053314208984375, 0.0277099609375, -0.00004369020462036133, 0.013824462890625, -0.0132598876953125, 0.02691650390625, 0.033416748046875, -0.034393310546875, -0.0216522216796875, -0.01311492919921875, -0.0204925537109375, -0.04180908203125, 0.00644683837890625, 0.0211334228515625, -0.015716552734375, 0.0224456787109375, 0.034210205078125, 0.0338134765625, 0.0297698974609375, -0.00931549072265625, -0.00787353515625, 0.067626953125, -0.03741455078125, 0.00010877847671508789, -0.0125579833984375, -0.0019588470458984375, 0.0173187255859375, 0.00921630859375, 0.007221221923828125, 0.0352783203125, -0.02288818359375, -0.002841949462890625, 0.0640869140625, 0.0259552001953125, 0.01922607421875, -0.031036376953125, 0.036712646484375, 0.0031795501708984375, 0.04876708984375, -0.01071929931640625, 0.01520538330078125, 0.0274810791015625, 0.006870269775390625, 0.0209503173828125, 0.0214080810546875, -0.03668212890625, 0.0025119781494140625, 0.01042938232421875, -0.002956390380859375, 0.002117156982421875, 0.060699462890625, 0.01541900634765625, 0.0173492431640625, -0.02960205078125, -0.0302276611328125, 0.02276611328125, 0.0295562744140625, -0.00939178466796875, 0.00036835670471191406, 0.04473876953125, 0.002552032470703125, 0.02734375, -0.0210113525390625, 0.04296875, 0.0163726806640625, 0.002170562744140625, -0.0018634796142578125, 0.0164337158203125, 0.0380859375, 0.00238037109375, 0.0257415771484375, 0.0083160400390625, -0.00004988908767700195, -0.06842041015625, -0.06842041015625, 0.06011962890625, -0.042083740234375, 0.01995849609375, 0.08648681640625, 0.0007433891296386719, 0.0430908203125, -0.0013685226440429688, -0.01508331298828125, -0.0030956268310546875, 0.0194854736328125, -0.015655517578125, -0.0172882080078125, -0.06793212890625, -0.004734039306640625, 0.0215301513671875, 0.082763671875, -0.0243988037109375, -0.04888916015625, 0.004791259765625, 0.037567138671875, -0.054840087890625, -0.0362548828125, -0.045654296875, -0.0587158203125, -0.022003173828125, -0.0157623291015625, -0.0259857177734375, 0.028045654296875, -0.0178375244140625, 0.01323699951171875, 0.0103912353515625, 0.002399444580078125, -0.035552978515625, -0.0010309219360351562, -0.059722900390625, 0.0070343017578125, -0.0098419189453125, 0.0272216796875, 0.01407623291015625, 0.07891845703125, 0.022125244140625, -0.0487060546875, 0.027740478515625, 0.0457763671875, -0.041259765625, 0.0212860107421875, -0.033935546875, 0.03326416015625, -0.01064300537109375, 0.014862060546875, -0.0232696533203125, -0.00152587890625, 0.0012674331665039062, -0.024200439453125, 0.00821685791015625, -0.046478271484375, 0.0004107952117919922, 0.0189666748046875, -0.0018720626831054688, 0.0012712478637695312, 0.03485107421875, -0.0372314453125, -0.0458984375, -0.031982421875, -0.07037353515625, 0.07098388671875, 0.044036865234375, 0.0104217529296875, 0.00994110107421875, 0.015533447265625, 0.0028629302978515625, 0.03338623046875, 0.002288818359375, -0.03912353515625, 0.054901123046875, 0.0086517333984375, 0.0229034423828125, -0.00611114501953125, 0.00013518333435058594, -0.051025390625, 0.029052734375, -0.004638671875, -0.01934814453125, -0.01519012451171875, -0.0271148681640625, -0.0093841552734375, -0.05523681640625, 0.03411865234375, -0.034454345703125, 0.0189971923828125, -0.034576416015625, -0.01453399658203125, 0.008697509765625, 0.10430908203125, -0.0290374755859375, -0.0210418701171875, -0.0474853515625, -0.00923919677734375, 0.00994110107421875, -0.06787109375, 0.0054168701171875, -0.0042877197265625, -0.061004638671875, -0.01776123046875, -0.0253753662109375, -0.0208740234375, 0.0287933349609375, -0.05242919921875, -0.01029205322265625, -0.04461669921875, 0.015655517578125, 0.02294921875, 0.0188446044921875, -0.0038738250732421875, -0.01194000244140625, 0.00634765625, 0.006317138671875, -0.0281524658203125, -0.0777587890625, -0.035430908203125, 0.044342041015625, 0.038543701171875, -0.006988525390625, -0.039093017578125, -0.0247039794921875, 0.03643798828125, -0.0011539459228515625, 0.01239013671875, 0.0037631988525390625, 0.0106658935546875, -0.01560211181640625, -0.01995849609375, 0.01171875, -0.051727294921875, -0.02496337890625, -0.02740478515625, -0.00144195556640625, -0.0079345703125, -0.03155517578125, -0.0141448974609375, -0.0253143310546875, 0.00022923946380615234, -0.03778076171875, -0.0145111083984375, 0.003589630126953125, 0.00731658935546875, 0.00011342763900756836, -0.003543853759765625, -0.02239990234375, -0.02984619140625, 0.048065185546875, 0.06719970703125, -0.00431060791015625, -0.00934600830078125, 0.06024169921875, 0.01222991943359375, -0.0592041015625, -0.07525634765625, -0.0012216567993164062, 0.0252532958984375, -0.0283355712890625, 0.022186279296875, 0.01125335693359375, -0.041717529296875, 0.06903076171875, -0.005950927734375, 0.0199737548828125, -0.04840087890625, 0.05230712890625, -0.015655517578125, -0.012542724609375, 0.0173797607421875, -0.02880859375, 0.02899169921875, 0.05157470703125, 0.006893157958984375, -0.0268402099609375, 0.00803375244140625, 0.0269012451171875, 0.00323486328125, -0.0214080810546875, -0.027984619140625, -0.0291748046875, 0.001163482666015625, 0.034637451171875, -0.0021514892578125, 0.0269775390625, -0.005596160888671875, -0.00817108154296875, 0.019561767578125, -0.01454925537109375, 0.022796630859375, 0.05548095703125, 0.027191162109375, 0.055938720703125, -0.011444091796875, -0.01329803466796875, -0.023773193359375, 0.003406524658203125, -0.01474761962890625, -0.0231170654296875, -0.045654296875, -0.04998779296875, -0.005641937255859375, 0.02783203125, 0.0279541015625, 0.0131072998046875, 0.038909912109375, 0.03277587890625, -0.0196533203125, -0.0241241455078125, 0.01556396484375, 0.002899169921875, -0.046630859375, 0.0280609130859375, -0.0026988983154296875, 0.0035800933837890625, 0.050201416015625, 0.0300140380859375, -0.0196990966796875, 0.043792724609375, -0.00974273681640625, 0.009979248046875, -0.0157012939453125, 0.047943115234375, 0.015106201171875, -0.00458526611328125, 0.0076904296875, 0.024993896484375, 0.0257110595703125, -0.051177978515625, -0.0180816650390625, 0.0006189346313476562, 0.04345703125, -0.01207733154296875, -0.0280914306640625, 0.035400390625, 0.004566192626953125, -0.04718017578125, 0.026275634765625, 0.04107666015625, -0.0126190185546875, -0.031646728515625, -0.0004487037658691406, 0.0260009765625, 0.03692626953125, -0.01129913330078125, 0.033721923828125, 0.0167083740234375, 0.0233154296875, 0.0070953369140625, -0.050262451171875, 0.03399658203125, 0.0645751953125, 0.007015228271484375, -0.0426025390625, -0.01428985595703125, 0.0224761962890625, 0.0338134765625, -0.025115966796875, -0.0081787109375, 0.026275634765625, -0.0047149658203125, 0.0286712646484375, -0.01140594482421875, -0.0163421630859375, -0.01465606689453125, -0.00879669189453125, 0.05853271484375, 0.033172607421875, -0.03582763671875, -0.0095367431640625, -0.04998779296875, -0.016845703125, -0.01296234130859375, -0.032440185546875, -0.0288543701171875, -0.0106658935546875, 0.00946807861328125, 0.0207366943359375, 0.043304443359375, 0.056610107421875, -0.00655364990234375, 0.04425048828125, -0.0013494491577148438, 0.1007080078125, -0.016204833984375, 0.060760498046875, -0.005710601806640625, 0.0626220703125, 0.00482940673828125, 0.02227783203125, -0.0209808349609375, -0.0198822021484375, -0.00402069091796875, -0.0965576171875, -0.008270263671875, 0.0117340087890625, -0.01175689697265625, 0.02679443359375, -0.0229644775390625, 0.0221710205078125, -0.054901123046875, 0.00374603271484375, -0.00838470458984375, -0.03692626953125, 0.023162841796875, 0.0279083251953125, -0.021881103515625, -0.058624267578125, -0.0023059844970703125, 0.04241943359375, -0.00856781005859375, -0.007781982421875, -0.026336669921875, 0.005794525146484375, -0.0192108154296875, 0.0172576904296875, 0.0069580078125, -0.0233306884765625, 0.0192108154296875, 0.006816864013671875, 0.038116455078125, 0.0181121826171875, 0.03936767578125, 0.00997161865234375, 0.045074462890625, -0.0087432861328125, -0.0204010009765625, 0.048828125, 0.0121307373046875, 0.002513885498046875, 0.0189971923828125, -0.0264434814453125, 0.0426025390625, 0.050018310546875, 0.08782958984375, -0.06280517578125, 0.0258026123046875, 0.056793212890625, -0.0210418701171875, 0.0291900634765625, -0.00592803955078125, -0.0079498291015625, -0.00817108154296875, 0.01213836669921875, 0.0110931396484375, -0.020965576171875, -0.00458526611328125, 0.01549530029296875, -0.004962921142578125, -0.0020236968994140625, 0.07952880859375, 0.017181396484375, -0.039215087890625, -0.032928466796875, 0.0277557373046875, -0.03125, -0.021514892578125, 0.00618743896484375, -0.07208251953125, -0.0107421875, -0.06689453125, -0.06036376953125, -0.0117340087890625, 0.01348114013671875, 0.03802490234375, -0.006816864013671875, 0.035430908203125, 0.048797607421875, -0.0187225341796875, 0.01739501953125, 0.0016164779663085938, 0.0011186599731445312, -0.0229644775390625, -0.01345062255859375, 0.016204833984375, 0.0253753662109375, -0.045867919921875, 0.03118896484375, -0.0179901123046875, -0.0280303955078125, -0.0031948089599609375, -0.032562255859375, 0.10687255859375, -0.050689697265625, -0.01580810546875, 0.0019397735595703125, 0.017120361328125, 0.0096588134765625, -0.044769287109375, 0.0169830322265625, -0.035369873046875, 0.04656982421875, -0.035369873046875, 0.01947021484375, -0.00635528564453125, -0.061248779296875, -0.05841064453125, 0.0195159912109375, 0.0173187255859375, 0.030242919921875, 0.0007886886596679688, 0.0009031295776367188, -0.0091400146484375, -0.00992584228515625, -0.0274200439453125, 0.05780029296875, -0.00859832763671875, 0.0343017578125, -0.0200347900390625, 0.0175018310546875, 0.01126861572265625, 0.005718231201171875, 0.044342041015625, -0.0004417896270751953, -0.0290069580078125, 0.0016632080078125, 0.0631103515625, 0.052886962890625, 0.024322509765625, 0.0144805908203125, 0.006824493408203125, 0.046173095703125, 0.060394287109375, -0.05145263671875, 0.03277587890625, -0.00279998779296875, -0.006336212158203125, 0.03271484375, 0.0252685546875, 0.0286407470703125, 0.051177978515625, -0.03948974609375, 0.002582550048828125, 0.0234222412109375, 0.0207061767578125, -0.0572509765625, 0.0167236328125, 0.040191650390625, 0.07318115234375, -0.08349609375, -0.03546142578125, -0.0257568359375, 0.052886962890625, 0.0256195068359375, 0.032073974609375, 0.016357421875, 0.0149993896484375, 0.074951171875, -0.0270538330078125, 0.0123291015625, -0.01171875, 0.00522613525390625, 0.0205078125, 0.0206451416015625, 0.006591796875, -0.053985595703125, 0.0472412109375, 0.06488037109375, 0.043243408203125, -0.055938720703125, -0.006931304931640625, 0.01263427734375, -0.0107269287109375, -0.0186614990234375, -0.0208740234375, -0.0243072509765625, -0.00732421875, 0.003421783447265625, -0.044708251953125, 0.0093231201171875, 0.0261383056640625, 0.048797607421875, -0.0118408203125, -0.0279388427734375, -0.048919677734375, -0.0014257431030273438, -0.038055419921875, -0.0013494491577148438, 0.007434844970703125, 0.03466796875, 0.020355224609375, 0.04638671875, 0.00154876708984375, -0.01812744140625, 0.00540924072265625, 0.0153656005859375, -0.05126953125, 0.0225677490234375, -0.02166748046875, -0.0421142578125, -0.04742431640625, 0.027252197265625, 0.046661376953125, -0.0187225341796875, 0.0280609130859375, 0.006458282470703125, -0.035430908203125, 0.01885986328125, 0.039093017578125, -0.019500732421875, -0.03533935546875, -0.013153076171875, -0.050750732421875, 0.0267333984375, -0.033905029296875, 0.03900146484375, -0.055877685546875, 0.070556640625, -0.0390625, 0.0489501953125, -0.007480621337890625, 0.00426483154296875, 0.04998779296875, -0.00553131103515625, 0.0224609375, -0.017364501953125, -0.02203369140625, 0.0009760856628417969, -0.01422119140625, -0.031951904296875, 0.0025959014892578125, 0.0203399658203125, -0.00588226318359375, 0.01271820068359375, 0.054840087890625, 0.02069091796875, 0.0070648193359375, -0.0379638671875, 0.032623291015625, -0.0009102821350097656, 0.02288818359375, 0.0277862548828125, -0.018829345703125, -0.0439453125, -0.016143798828125, 0.078369140625, 0.040496826171875, 0.046142578125, -0.0242156982421875, 0.032989501953125, -0.01690673828125, 0.03106689453125, -0.06072998046875, -0.01316070556640625, -0.00586700439453125, -0.024322509765625, 0.021392822265625, 0.01059722900390625, -0.002208709716796875, 0.0099639892578125, 0.0243988037109375, -0.0293731689453125, -0.0088958740234375, -0.020050048828125, 0.0166168212890625, 0.0033168792724609375, 0.024444580078125, -0.0345458984375, -0.0265045166015625, -0.053955078125, -0.0289154052734375, 0.0258331298828125, 0.0117340087890625, 0.0272979736328125, 0.038818359375, 0.0103607177734375, -0.03125, 0.04736328125, -0.06988525390625, 0.06549072265625, 0.037261962890625, -0.01250457763671875, 0.009918212890625, 0.0037250518798828125, -0.02886962890625, 0.03363037109375, -0.00128173828125, 0.0153656005859375, 0.0042266845703125, -0.0005502700805664062, -0.01276397705078125, -0.01427459716796875, 0.0043182373046875, -0.0283660888671875, -0.0209808349609375, 0.02471923828125, -0.00391387939453125, -0.022308349609375, 0.0038738250732421875, 0.01092529296875, -0.04180908203125, -0.0266876220703125, 0.005870819091796875, -0.0322265625, -0.017303466796875, 0.0274658203125, -0.0279998779296875, -0.008758544921875, -0.0177154541015625, 0.006366729736328125, -0.0179443359375, 0.006145477294921875, -0.004749298095703125, -0.048065185546875, 0.002887725830078125, -0.0027484893798828125, 0.0174713134765625, -0.029754638671875, -0.0230255126953125, -0.032989501953125, 0.018310546875, -0.0330810546875, 0.0355224609375, 0.083984375, -0.047943115234375, -0.0394287109375, 0.046875, 0.032928466796875, 0.08465576171875, 0.00290679931640625, -0.015838623046875, -0.019866943359375, 0.0295562744140625, -0.039215087890625, -0.0439453125, 0.04010009765625, -0.056549072265625, -0.0267333984375, -0.01708984375, -0.0034618377685546875, 0.01036834716796875, -0.03143310546875, -0.0513916015625, 0.046417236328125, -0.007137298583984375, -0.0272979736328125, -0.04803466796875, 0.012725830078125, 0.0008563995361328125, 0.0188751220703125, -0.00667572021484375, -0.0200347900390625, -0.03814697265625, 0.00907135009765625, 0.006683349609375, -0.034881591796875, 0.055084228515625, -0.005657196044921875, -0.0208587646484375, 0.004184722900390625, 0.0202484130859375, -0.02386474609375, 0.0171356201171875, -0.00811004638671875, 0.03228759765625, 0.044769287109375, -0.0438232421875, 0.044219970703125, -0.0237274169921875, 0.031494140625, -0.004291534423828125, -0.026214599609375, -0.027801513671875, 0.004871368408203125, 0.054779052734375, 0.065185546875, 0.0201416015625, -0.051177978515625, -0.007190704345703125, -0.01425933837890625, -0.043701171875, -0.0089111328125, 0.0192718505859375, -0.04644775390625, 0.01145172119140625, -0.00849151611328125, -0.02923583984375, 0.0104217529296875, -0.03253173828125, -0.049285888671875, 0.006805419921875, -0.01457977294921875, 0.01904296875, -0.0297698974609375, 0.003284454345703125, 0.025848388671875, -0.030364990234375, 0.0203399658203125, -0.0210113525390625, 0.0027332305908203125, 0.026611328125, 0.0120086669921875, -0.0106353759765625, 0.049407958984375, -0.0311126708984375, -0.024688720703125, 0.0291595458984375, -0.0213775634765625, 0.0246429443359375, 0.0096282958984375, -0.00714111328125, 0.01824951171875, 0.01070404052734375, 0.01299285888671875, 0.00013077259063720703, -0.008331298828125, 0.0135498046875, 0.005985260009765625, 0.0030536651611328125, -0.019287109375, 0.00010210275650024414, 0.037811279296875, -0.00870513916015625, -0.03350830078125, 0.0300445556640625, -0.059173583984375, -0.0007905960083007812, 0.025604248046875, -0.03460693359375, -0.033172607421875, 0.01534271240234375, -0.0294952392578125, -0.004791259765625, 0.00467681884765625 ]
17a88e44a9238b58ae03fadc70f1fb266d930e32
Wordpress Stackexchange Q: Storing custom dashboard widget options in wordpress I am using the Codex example to build a custom widget. The specific example seems to be working fine until you click configure and change options values. After you click submit, changes are not saved. Is anyone having the same problem with the specific example? I am trying to build a custom widget using this as an example. A: Solution pulled from OP. Ok fixed. In widget-config.php there is no check if the form has been submitted, so every time you load configuration it updates with empty values or keeps default ones. Add this check if (!empty($_POST)) before updating options values and display stored value of number-input: <input type="text" name="number" value="<?php echo self::get_dashboard_widget_option(self::wid, 'example_number'); ?>" />
Q: Storing custom dashboard widget options in wordpress I am using the Codex example to build a custom widget. The specific example seems to be working fine until you click configure and change options values. After you click submit, changes are not saved. Is anyone having the same problem with the specific example? I am trying to build a custom widget using this as an example. A: Solution pulled from OP. Ok fixed. In widget-config.php there is no check if the form has been submitted, so every time you load configuration it updates with empty values or keeps default ones. Add this check if (!empty($_POST)) before updating options values and display stored value of number-input: <input type="text" name="number" value="<?php echo self::get_dashboard_widget_option(self::wid, 'example_number'); ?>" />
wordpress
{ "language": "en", "length": 124, "provenance": "stackexchange_00019.jsonl.gz:433622", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/103247" }
[ 0.0582275390625, -0.046661376953125, 0.047210693359375, -0.0158233642578125, -0.02581787109375, -0.01091766357421875, 0.045745849609375, -0.0103759765625, 0.01666259765625, 0.00853729248046875, -0.01531982421875, -0.03302001953125, -0.027984619140625, -0.02813720703125, -0.037628173828125, -0.059295654296875, 0.04156494140625, -0.0026226043701171875, 0.047332763671875, 0.00896453857421875, 0.003490447998046875, 0.039306640625, 0.004894256591796875, 0.055694580078125, 0.056396484375, -0.06817626953125, -0.052764892578125, 0.02777099609375, 0.00457000732421875, -0.00019919872283935547, 0.0168609619140625, 0.018524169921875, -0.004619598388671875, 0.049041748046875, -0.0189056396484375, -0.0019235610961914062, 0.0298309326171875, 0.006938934326171875, 0.01058197021484375, 0.052337646484375, 0.0180816650390625, -0.01084136962890625, 0.018768310546875, -0.032928466796875, -0.00955963134765625, -0.0113067626953125, 0.0150909423828125, -0.0270538330078125, -0.0162200927734375, 0.04339599609375, -0.00711822509765625, 0.006519317626953125, 0.0054931640625, -0.0258941650390625, 0.0009417533874511719, -0.033721923828125, -0.01953125, 0.00727081298828125, 0.037261962890625, 0.0003495216369628906, -0.0115814208984375, -0.03076171875, 0.0104217529296875, -0.000823974609375, 0.006683349609375, -0.0269317626953125, -0.004222869873046875, 0.0183563232421875, 0.001377105712890625, -0.0018167495727539062, 0.0257720947265625, -0.006832122802734375, -0.0020809173583984375, -0.02362060546875, -0.00032401084899902344, -0.0224456787109375, 0.001194000244140625, -0.037261962890625, -0.0029239654541015625, 0.023468017578125, 0.05023193359375, -0.0070343017578125, 0.05523681640625, -0.0237884521484375, 0.029937744140625, 0.00884246826171875, -0.009429931640625, -0.0184783935546875, 0.004985809326171875, -0.003021240234375, 0.00482940673828125, -0.03533935546875, 0.0227203369140625, 0.00823211669921875, -0.00341796875, -0.0386962890625, -0.04486083984375, -0.0035114288330078125, -0.0174560546875, 0.0438232421875, -0.0178985595703125, -0.002246856689453125, 0.045013427734375, -0.0390625, 0.0140533447265625, 0.0406494140625, -0.001819610595703125, -0.01140594482421875, 0.037750244140625, 0.002811431884765625, -0.0010137557983398438, 0.02325439453125, 0.00016129016876220703, -0.0689697265625, 0.01215362548828125, 0.021331787109375, -0.005462646484375, 0.00588226318359375, 0.0321044921875, -0.0439453125, 0.0086669921875, 0.026458740234375, -0.0267486572265625, -0.04766845703125, 0.0286407470703125, -0.00373077392578125, -0.0079345703125, -0.0096588134765625, -0.0018529891967773438, 0.0105438232421875, -0.058258056640625, 0.003353118896484375, 0.07647705078125, 0.04852294921875, 0.045166015625, -0.021453857421875, 0.052520751953125, -0.0297698974609375, -0.02191162109375, 0.046051025390625, -0.0211029052734375, -0.047637939453125, -0.020263671875, -0.032073974609375, -0.004894256591796875, 0.050537109375, 0.03582763671875, -0.01284027099609375, -0.0379638671875, -0.08758544921875, 0.018035888671875, -0.014129638671875, 0.050872802734375, 0.012115478515625, -0.026611328125, -0.0009551048278808594, 0.00977325439453125, -0.0136260986328125, -0.036376953125, -0.033050537109375, -0.031463623046875, -0.0433349609375, -0.0017681121826171875, -0.045135498046875, -0.037261962890625, 0.0537109375, -0.0182952880859375, 0.005702972412109375, 0.01983642578125, 0.034210205078125, 0.0013074874877929688, -0.01311492919921875, -0.03125, 0.009796142578125, -0.0020599365234375, 0.0156707763671875, -0.0171661376953125, -0.01221466064453125, 0.0188446044921875, -0.0184173583984375, -0.040252685546875, -0.041259765625, -0.007137298583984375, 0.006679534912109375, -0.046112060546875, 0.0065460205078125, 0.03466796875, 0.09185791015625, -0.00902557373046875, 0.0255584716796875, 0.0157318115234375, -0.005828857421875, -0.042633056640625, -0.009490966796875, 0.0015392303466796875, 0.0212249755859375, -0.02276611328125, 0.01021575927734375, -0.00890350341796875, 0.0103759765625, 0.007488250732421875, 0.006130218505859375, -0.0005292892456054688, -0.0232391357421875, -0.05035400390625, -0.000446319580078125, -0.02008056640625, 0.040008544921875, -0.0254364013671875, 0.0142364501953125, 0.03326416015625, 0.01116943359375, -0.040985107421875, 0.0214385986328125, -0.0025539398193359375, -0.0229644775390625, -0.00443267822265625, 0.08355712890625, -0.01122283935546875, 0.04144287109375, -0.0225982666015625, -0.05078125, 0.00434112548828125, 0.035675048828125, 0.04022216796875, 0.015228271484375, -0.0278167724609375, -0.01096343994140625, 0.053436279296875, -0.00942230224609375, 0.02667236328125, 0.038818359375, -0.01016998291015625, -0.026947021484375, -0.064453125, -0.0296173095703125, -0.07879638671875, -0.060089111328125, -0.000492095947265625, 0.06884765625, 0.00852203369140625, 0.01476287841796875, -0.0054473876953125, 0.0787353515625, -0.020233154296875, -0.08441162109375, -0.0181121826171875, 0.06048583984375, -0.01265716552734375, 0.03912353515625, 0.0160369873046875, 0.028106689453125, -0.0008797645568847656, -0.0025577545166015625, 0.0036106109619140625, 0.0164794921875, -0.06341552734375, 0.009429931640625, 0.0045013427734375, -0.02801513671875, -0.0040130615234375, -0.00641632080078125, 0.03179931640625, -0.031036376953125, 0.0369873046875, 0.017242431640625, 0.048919677734375, 0.031829833984375, -0.026611328125, 0.01104736328125, 0.0032367706298828125, -0.016357421875, 0.0016384124755859375, -0.002361297607421875, 0.034942626953125, -0.03741455078125, -0.01126861572265625, -0.0019779205322265625, 0.001262664794921875, -0.01387786865234375, -0.0004429817199707031, 0.04248046875, -0.0207061767578125, -0.0152435302734375, 0.0060272216796875, -0.04412841796875, -0.016998291015625, -0.002132415771484375, 0.01279449462890625, -0.005523681640625, 0.020660400390625, 0.00937652587890625, -0.005035400390625, 0.01538848876953125, 0.027801513671875, -0.036346435546875, -0.00641632080078125, -0.0108642578125, 0.0124359130859375, 0.00363922119140625, 0.054443359375, 0.08502197265625, 0.0195159912109375, 0.026641845703125, -0.0183868408203125, 0.00197601318359375, -0.03741455078125, 0.01210784912109375, -0.006099700927734375, -0.0213470458984375, -0.031768798828125, 0.03912353515625, 0.038818359375, 0.06298828125, 0.0122222900390625, -0.01800537109375, 0.0040740966796875, 0.04730224609375, -0.029510498046875, -0.05047607421875, -0.00775146484375, -0.04278564453125, -0.01187896728515625, -0.036346435546875, -0.0176239013671875, 0.01812744140625, -0.022003173828125, 0.007450103759765625, -0.0222930908203125, -0.0029430389404296875, -0.0302734375, -0.047027587890625, -0.060882568359375, -0.0175933837890625, -0.00388336181640625, 0.033843994140625, 0.00037860870361328125, 0.049163818359375, -0.0102691650390625, -0.0609130859375, 0.004848480224609375, -0.021636962890625, 0.01473236083984375, 0.028778076171875, 0.0018110275268554688, -0.04052734375, 0.03558349609375, -0.01538848876953125, 0.057037353515625, 0.0311737060546875, -0.0229644775390625, 0.0203704833984375, 0.0028839111328125, -0.03900146484375, 0.0056304931640625, 0.054412841796875, -0.01413726806640625, -0.04241943359375, 0.05029296875, -0.0487060546875, 0.006755828857421875, 0.0200958251953125, 0.0032978057861328125, -0.0209197998046875, -0.0247650146484375, -0.029571533203125, -0.0002703666687011719, 0.022216796875, -0.0113372802734375, -0.0036487579345703125, 0.005382537841796875, -0.004329681396484375, 0.0261688232421875, -0.01088714599609375, -0.015869140625, 0.0004551410675048828, 0.012939453125, -0.0284271240234375, 0.016021728515625, 0.004444122314453125, -0.01727294921875, 0.006443023681640625, -0.02032470703125, 0.00936126708984375, -0.0697021484375, 0.0290374755859375, -0.067138671875, -0.032989501953125, -0.010406494140625, 0.008270263671875, 0.036346435546875, 0.0748291015625, -0.07354736328125, 0.01313018798828125, 0.005725860595703125, 0.020751953125, -0.0214691162109375, -0.0509033203125, -0.06585693359375, -0.0240020751953125, -0.08636474609375, 0.0031299591064453125, 0.003025054931640625, -0.039093017578125, 0.01136016845703125, -0.038055419921875, -0.034149169921875, -0.042694091796875, 0.043487548828125, -0.01494598388671875, 0.05072021484375, -0.01097869873046875, 0.04229736328125, -0.01910400390625, 0.0038299560546875, -0.02423095703125, -0.07427978515625, -0.017303466796875, -0.037994384765625, 0.052276611328125, 0.02740478515625, -0.0160369873046875, -0.00366973876953125, 0.055572509765625, 0.01192474365234375, 0.0140380859375, 0.0121002197265625, 0.0194549560546875, -0.026947021484375, -0.0195465087890625, 0.01220703125, -0.05792236328125, -0.0234527587890625, -0.0231170654296875, -0.016326904296875, 0.007518768310546875, -0.02276611328125, -0.0165863037109375, -0.0032958984375, -0.01386260986328125, -0.05609130859375, -0.0477294921875, -0.050506591796875, -0.0105133056640625, -0.042205810546875, 0.0130767822265625, -0.041961669921875, -0.0684814453125, 0.015289306640625, -0.028717041015625, 0.01194000244140625, 0.024139404296875, 0.07415771484375, 0.01441192626953125, 0.00222015380859375, -0.0443115234375, -0.046630859375, 0.033721923828125, 0.031524658203125, -0.023651123046875, 0.0008478164672851562, -0.033477783203125, 0.009918212890625, 0.0213165283203125, -0.007205963134765625, -0.0170440673828125, 0.07891845703125, 0.00853729248046875, -0.0062713623046875, 0.0005884170532226562, -0.006927490234375, -0.0275726318359375, 0.0272216796875, 0.006259918212890625, -0.0215911865234375, 0.0316162109375, 0.0284423828125, -0.043670654296875, 0.0239410400390625, -0.0008797645568847656, -0.00445556640625, -0.0021762847900390625, -0.07672119140625, 0.046295166015625, 0.027740478515625, -0.01331329345703125, 0.011016845703125, 0.005832672119140625, 0.006504058837890625, 0.032562255859375, 0.046630859375, -0.00469970703125, 0.028717041015625, 0.02978515625, 0.006320953369140625, -0.01261138916015625, -0.01031494140625, 0.029052734375, -0.005237579345703125, -0.03564453125, -0.0025787353515625, -0.005191802978515625, 0.04278564453125, 0.00665283203125, 0.03436279296875, -0.0013980865478515625, 0.0273284912109375, 0.0009660720825195312, 0.016143798828125, 0.058258056640625, 0.037445068359375, -0.0060577392578125, -0.039520263671875, -0.0009889602661132812, -0.02386474609375, -0.005878448486328125, 0.007678985595703125, -0.010711669921875, -0.005298614501953125, -0.01898193359375, 0.06243896484375, 0.046905517578125, 0.0172576904296875, -0.005413055419921875, 0.02972412109375, 0.0099945068359375, -0.0023326873779296875, 0.0001977682113647461, -0.0147247314453125, 0.0142059326171875, -0.00428009033203125, 0.00682830810546875, 0.0194244384765625, -0.007503509521484375, 0.031402587890625, -0.006099700927734375, -0.0008230209350585938, 0.012115478515625, -0.0128173828125, -0.048095703125, -0.00311279296875, 0.022857666015625, 0.0221710205078125, -0.027801513671875, -0.00041866302490234375, -0.0181427001953125, -0.06817626953125, 0.0172119140625, 0.0167999267578125, 0.045806884765625, -0.0262908935546875, -0.062286376953125, -0.03192138671875, 0.0206146240234375, 0.017303466796875, -0.04107666015625, -0.05462646484375, 0.0083770751953125, -0.0160675048828125, 0.03314208984375, -0.00937652587890625, 0.03900146484375, -0.037841796875, -0.0039215087890625, -0.02081298828125, 0.01554107666015625, 0.021453857421875, -0.0047454833984375, -0.012481689453125, -0.0164337158203125, -0.0229949951171875, -0.01345062255859375, 0.015960693359375, -0.00833892822265625, -0.0091400146484375, -0.02294921875, 0.00921630859375, 0.048553466796875, -0.00809478759765625, -0.01494598388671875, -0.0014123916625976562, -0.03546142578125, -0.00033473968505859375, 0.037933349609375, 0.0281982421875, 0.062225341796875, -0.035858154296875, 0.0775146484375, 0.0117340087890625, -0.008270263671875, -0.094482421875, 0.0006251335144042969, 0.016876220703125, -0.019775390625, -0.04351806640625, 0.0005898475646972656, -0.054290771484375, -0.0105743408203125, 0.0205841064453125, -0.0304412841796875, -0.0070953369140625, 0.00872039794921875, 0.008575439453125, 0.00730133056640625, 0.006900787353515625, 0.034088134765625, -0.01448822021484375, 0.05108642578125, -0.031890869140625, -0.0309600830078125, 0.0177154541015625, 0.0285186767578125, 0.016265869140625, -0.017333984375, 0.0050506591796875, -0.0104217529296875, -0.064697265625, 0.06781005859375, 0.06488037109375, 0.0325927734375, 0.046966552734375, -0.00963592529296875, 0.02484130859375, -0.0088958740234375, 0.0160980224609375, -0.042816162109375, -0.0294647216796875, 0.040496826171875, 0.01045989990234375, -0.0282440185546875, 0.040069580078125, -0.022674560546875, 0.01025390625, 0.055633544921875, 0.049835205078125, -0.09228515625, 0.01544952392578125, -0.00994873046875, 0.01070404052734375, 0.05731201171875, 0.0036411285400390625, -0.0233612060546875, -0.0299530029296875, -0.004528045654296875, 0.02154541015625, -0.024566650390625, 0.01038360595703125, 0.03082275390625, -0.0039215087890625, -0.0173492431640625, 0.0156402587890625, -0.0030727386474609375, -0.04248046875, -0.0135040283203125, 0.043304443359375, -0.03131103515625, 0.0239715576171875, -0.01226806640625, 0.0162353515625, -0.0634765625, -0.10113525390625, -0.059539794921875, -0.038177490234375, -0.07293701171875, 0.0193634033203125, 0.0130157470703125, 0.09149169921875, 0.038055419921875, 0.0290679931640625, -0.00887298583984375, -0.010406494140625, 0.06298828125, 0.042633056640625, -0.0272979736328125, -0.00933074951171875, 0.010894775390625, -0.037841796875, 0.0012826919555664062, -0.0052337646484375, -0.0099029541015625, -0.025726318359375, -0.0013027191162109375, 0.104736328125, -0.0235595703125, -0.0335693359375, 0.00594329833984375, 0.0161285400390625, -0.00379180908203125, 0.010650634765625, -0.01436614990234375, -0.04290771484375, -0.0260162353515625, -0.02349853515625, -0.064697265625, 0.03668212890625, -0.010986328125, -0.054656982421875, 0.1304931640625, -0.0013113021850585938, 0.0224761962890625, -0.0003268718719482422, 0.06561279296875, -0.0210113525390625, 0.057403564453125, -0.0623779296875, -0.00382232666015625, 0.01206207275390625, 0.031951904296875, -0.056732177734375, -0.01024627685546875, -0.0276031494140625, 0.00563812255859375, 0.03076171875, 0.01265716552734375, 0.00289154052734375, -0.00605010986328125, 0.0207672119140625, 0.0037517547607421875, -0.024322509765625, 0.041290283203125, 0.01386260986328125, 0.02093505859375, 0.031646728515625, -0.016326904296875, 0.0117034912109375, 0.003757476806640625, -0.010955810546875, 0.042724609375, 0.00847625732421875, -0.000782012939453125, -0.043365478515625, 0.040191650390625, 0.01461029052734375, -0.0297088623046875, -0.02032470703125, 0.0081939697265625, 0.006412506103515625, 0.039337158203125, 0.04315185546875, 0.000025153160095214844, -0.002582550048828125, -0.0169219970703125, 0.037994384765625, 0.005748748779296875, -0.003757476806640625, -0.00911712646484375, 0.00762939453125, -0.05377197265625, 0.0164031982421875, -0.01141357421875, 0.026885986328125, -0.0036067962646484375, 0.046356201171875, 0.0494384765625, 0.039031982421875, 0.031768798828125, 0.05670166015625, 0.0177154541015625, 0.046112060546875, -0.04498291015625, -0.0443115234375, 0.00475311279296875, -0.01776123046875, -0.005584716796875, 0.012237548828125, 0.00812530517578125, -0.004302978515625, 0.01448822021484375, -0.03619384765625, 0.0048065185546875, -0.007434844970703125, 0.019744873046875, -0.03265380859375, -0.007442474365234375, -0.006702423095703125, 0.006145477294921875, -0.0103759765625, -0.0254974365234375, 0.008148193359375, 0.05596923828125, 0.0269927978515625, 0.0152130126953125, -0.053619384765625, -0.01555633544921875, -0.033294677734375, 0.007778167724609375, 0.0131378173828125, 0.031951904296875, -0.0650634765625, -0.01861572265625, 0.0406494140625, 0.04852294921875, 0.00824737548828125, 0.033111572265625, 0.0250244140625, 0.0137481689453125, -0.0157470703125, 0.01641845703125, 0.07208251953125, -0.01885986328125, -0.0085906982421875, -0.0275726318359375, 0.0209808349609375, 0.0186920166015625, -0.0064239501953125, 0.008026123046875, 0.004276275634765625, 0.043670654296875, 0.0017910003662109375, 0.0506591796875, 0.00823211669921875, 0.005523681640625, 0.036834716796875, -0.0239715576171875, 0.05450439453125, 0.021759033203125, -0.00424957275390625, -0.0027599334716796875, 0.0013446807861328125, -0.034637451171875, -0.0203399658203125, 0.0266571044921875, -0.005771636962890625, -0.0011882781982421875, -0.04925537109375, 0.01314544677734375, -0.01190185546875, -0.02313232421875, 0.0179290771484375, -0.0006313323974609375, -0.0017223358154296875, 0.00203704833984375, -0.0300445556640625, 0.008026123046875, 0.0091552734375, 0.0307769775390625, -0.02191162109375, 0.0689697265625, -0.0260009765625, 0.0081787109375, 0.020782470703125, -0.0092315673828125, 0.0201873779296875, -0.001941680908203125, 0.037200927734375, 0.00627899169921875, -0.00559234619140625, -0.02752685546875, 0.0215301513671875, 0.0014972686767578125, 0.00844573974609375, -0.069091796875, -0.028656005859375, -0.0156707763671875, 0.031768798828125, 0.029205322265625, -0.004909515380859375, -0.03607177734375, -0.0213775634765625, -0.0002639293670654297, -0.01338958740234375, 0.0172271728515625, -0.00385284423828125, 0.0017309188842773438, 0.040496826171875, -0.01641845703125, 0.0220947265625, -0.003932952880859375, -0.01126861572265625, -0.0222625732421875, 0.01910400390625, -0.040924072265625, 0.0001691579818725586, -0.0223388671875, -0.0230712890625, 0.006229400634765625, -0.0011606216430664062, -0.006847381591796875, -0.01097869873046875, 0.026092529296875, -0.0031585693359375, 0.045562744140625, 0.0153350830078125, -0.050537109375, 0.01117706298828125, 0.050811767578125, -0.0304107666015625, 0.01824951171875, -0.0269012451171875, -0.01983642578125, -0.017059326171875, -0.0234527587890625, 0.0241546630859375, -0.0240631103515625, -0.036865234375, -0.08319091796875, 0.0138702392578125, 0.04693603515625, 0.0206451416015625, -0.0699462890625, 0.037384033203125, -0.031707763671875, 0.036346435546875, 0.01513671875, 0.00768280029296875, -0.005901336669921875, 0.00994110107421875, -0.022064208984375, 0.0178680419921875, -0.0228118896484375, -0.01303863525390625, 0.01529693603515625, 0.0158538818359375, 0.0162200927734375, -0.0005674362182617188, 0.00785064697265625, 0.0127716064453125, -0.0123291015625, 0.062255859375, 0.0033512115478515625, -0.004924774169921875, 0.054656982421875, -0.0200042724609375, -0.0343017578125, -0.058258056640625, 0.0034008026123046875, -0.056610107421875, 0.0166473388671875, -0.00412750244140625, -0.03594970703125, -0.0362548828125, -0.054779052734375, -0.05340576171875, 0.048828125, 0.0219573974609375, -0.0280914306640625, 0.007350921630859375, -0.01275634765625, -0.012908935546875, 0.035003662109375, 0.004253387451171875, -0.023468017578125, -0.0104217529296875, 0.005779266357421875, 0.01399993896484375, -0.006561279296875, 0.038543701171875, -0.00567626953125, -0.10284423828125, -0.0257720947265625, -0.04632568359375, 0.033843994140625, 0.006618499755859375, -0.0117340087890625, 0.01474761962890625, 0.03350830078125, -0.038665771484375, -0.045623779296875, -0.007183074951171875, -0.010101318359375, 0.005214691162109375, -0.0009264945983886719, -0.0108184814453125, -0.0178375244140625, 0.0224609375, 0.0178680419921875, 0.00872039794921875, -0.005718231201171875, -0.0080718994140625, 0.0113983154296875, -0.01335906982421875, -0.00244903564453125, 0.01392364501953125, -0.06640625, -0.00600433349609375, 0.004169464111328125, 0.00591278076171875, 0.01171875, 0.049163818359375, 0.01364898681640625, -0.005809783935546875, 0.06329345703125, -0.02667236328125, -0.0428466796875, -0.02423095703125, 0.03070068359375, -0.0125732421875, 0.04095458984375, -0.0076141357421875, 0.020538330078125, 0.038238525390625, 0.048797607421875, -0.0152130126953125, -0.001079559326171875, -0.062255859375, 0.035064697265625, -0.02996826171875, 0.051361083984375, -0.079345703125, -0.002166748046875, -0.0374755859375, -0.0013904571533203125, 0.0167694091796875, -0.026611328125, -0.0172882080078125, 0.0156402587890625, 0.01094818115234375, 0.0311737060546875, -0.04248046875, -0.04095458984375, -0.043121337890625, 0.0305023193359375, -0.0021533966064453125, 0.0166778564453125, 0.048828125, -0.00551605224609375, 0.0038604736328125, -0.0300140380859375, 0.01041412353515625, -0.07098388671875, 0.0299224853515625, -0.044830322265625, 0.0029697418212890625, 0.039642333984375 ]