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
b968b2f4636636b2210f85f81f5db41eb77ea9e2
Wordpress Stackexchange Q: I can't access my site via wp-admin I developed a site six months ago and now need to update it, but I can't access the login page to get in to it. I get a the following error page: This is somewhat embarrassing... I tried wp-login.php at end of URL as well but this also didn't work. A: Try disabling all your plugins by moving or deleting them from your /wp-content/plugins/ folder. Do this by FTP or by your host's control panel. If this doesn't work, log in to the server via FTP, and upload a fresh copy of WordPress. This will fix your wp-admin, and any other folders or files that have been corrupted. You can download a fresh copy of WordPress from WordPress.org. For other solutions, including new login files and database-altering, see the WordPress Codex page on Login Issues. They suggest that, in case all else fails, you post at the WordPress Support Forum. Be sure to give details of your server setup, if you know it, including mySQL and PHP versions, as well as your operating system (OS), browser, and the WordPress version that is causing these problems.
Q: I can't access my site via wp-admin I developed a site six months ago and now need to update it, but I can't access the login page to get in to it. I get a the following error page: This is somewhat embarrassing... I tried wp-login.php at end of URL as well but this also didn't work. A: Try disabling all your plugins by moving or deleting them from your /wp-content/plugins/ folder. Do this by FTP or by your host's control panel. If this doesn't work, log in to the server via FTP, and upload a fresh copy of WordPress. This will fix your wp-admin, and any other folders or files that have been corrupted. You can download a fresh copy of WordPress from WordPress.org. For other solutions, including new login files and database-altering, see the WordPress Codex page on Login Issues. They suggest that, in case all else fails, you post at the WordPress Support Forum. Be sure to give details of your server setup, if you know it, including mySQL and PHP versions, as well as your operating system (OS), browser, and the WordPress version that is causing these problems. A: * *Turn on debugging log in Wp-config.php *Disable plugins by adding a 1 just before every plugin folder *Repair all tables from your MySql database (repair is a mysql feature. Repair command does not hurt) *Check htaccess for bad redirects *Check folders/files permissions (755,644) *Add the following in wp-config.php define('WP_SITEURL', 'http://example.com'); define('WP_HOME', 'http://example.com'); A: The same thing happened to me (I couldn't access mysite.com/wp-admin). This happened when I installed wpcareer plug-in that requested me root access to my site. I then went to cpanel where my site is hosted and deleted that plug-in. Every thing was fine then after. A: For having trouble logging in to your WordPress Administration Panels, review this WordPress Codex: Login Trouble A: Your login screen is here: http://childtalk.com.au/wordpress/wp-login.php You've done something like what is on this Codex page to hide the /wordpress/ directory. A: If you have wpcareers plugin and you activated it, then we are facing these problems due to version support issue of Wordpress Go to your hosting area in file manager>public_html/wp-content/plugins, here public_html is my root folder of my site jobsclue.in and delete that plugin after that relogin A: I couldn't login to WP Admin either, message was "404 Page not found". I tried restoring files and database backup without success. Then using Filezilla (you could use others), I renamed the folder /wp-content/plugins to: /wp-content/pluginsoff I changed the permalinks (was changed by something to index.php), to the previous setting year/month/date/nameposting, and clicked Save. I also changed the .htaccess content in root and WordPress folder with: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress I renamed all the plugin folders, such as akismet to akismetoff. After that, I renamed the folder pluginsoff back to plugins. I checked the plugins in WP admin until there is no 404 message. Then I remove the "off" from plugin's name one by one. If you suspect a plugin is corrupt, e.g. the date is changed, it's better to delete it and reinstall it again. Then the problem solved.
wordpress
{ "language": "en", "length": 544, "provenance": "stackexchange_00019.jsonl.gz:425630", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72010" }
[ 0.031707763671875, -0.0015287399291992188, 0.01702880859375, 0.0003762245178222656, -0.01012420654296875, -0.0299530029296875, 0.032806396484375, -0.037384033203125, 0.006229400634765625, 0.01352691650390625, -0.02374267578125, -0.005092620849609375, -0.05609130859375, -0.022064208984375, -0.0308380126953125, -0.04931640625, 0.01406097412109375, 0.0106201171875, 0.0262603759765625, -0.0126190185546875, 0.009063720703125, 0.0013761520385742188, 0.023101806640625, 0.0071258544921875, -0.017242431640625, 0.041717529296875, 0.10467529296875, -0.050506591796875, 0.0286102294921875, -0.01904296875, 0.016937255859375, -0.051605224609375, 0.0213165283203125, 0.012176513671875, -0.017333984375, -0.043975830078125, 0.005889892578125, -0.003467559814453125, 0.001010894775390625, 0.0174713134765625, 0.022735595703125, -0.0088348388671875, 0.004207611083984375, 0.03900146484375, -0.0190582275390625, -0.0205535888671875, 0.0019664764404296875, -0.05169677734375, -0.002887725830078125, -0.04229736328125, 0.004650115966796875, -0.002208709716796875, 0.0288848876953125, -0.01071929931640625, -0.0132598876953125, -0.01284027099609375, 0.0250701904296875, 0.0055084228515625, 0.039459228515625, -0.05267333984375, -0.0677490234375, -0.0231781005859375, 0.0310516357421875, -0.00782012939453125, -0.00702667236328125, -0.006900787353515625, 0.055633544921875, 0.0044403076171875, -0.0160675048828125, -0.0020580291748046875, 0.031524658203125, 0.0174713134765625, 0.0010547637939453125, -0.0240631103515625, 0.0291595458984375, -0.0070343017578125, -0.01349639892578125, -0.004177093505859375, 0.003383636474609375, 0.0225982666015625, 0.0174560546875, 0.01140594482421875, -0.0350341796875, 0.0101776123046875, 0.024566650390625, 0.048095703125, -0.01837158203125, -0.0401611328125, 0.01197052001953125, -0.020538330078125, -0.01187896728515625, -0.0008745193481445312, 0.0134124755859375, 0.0203704833984375, -0.036529541015625, -0.00980377197265625, 0.0166778564453125, 0.04315185546875, 0.0180206298828125, 0.00844573974609375, -0.0301513671875, -0.041015625, -0.00638580322265625, -0.0194244384765625, -0.0323486328125, 0.0166778564453125, 0.0278778076171875, 0.060150146484375, 0.0081329345703125, 0.024444580078125, 0.0021686553955078125, -0.02642822265625, -0.024658203125, -0.0516357421875, 0.007122039794921875, 0.0689697265625, 0.001239776611328125, -0.0028934478759765625, 0.0036907196044921875, 0.0083160400390625, -0.039825439453125, -0.00977325439453125, -0.051605224609375, 0.0014486312866210938, 0.00032258033752441406, -0.0406494140625, -0.00714111328125, 0.062469482421875, -0.0019893646240234375, -0.01491546630859375, -0.0260772705078125, 0.022186279296875, 0.011962890625, 0.014923095703125, 0.0158843994140625, -0.003681182861328125, 0.0113067626953125, 0.01038360595703125, -0.00664520263671875, 0.010498046875, 0.00760650634765625, -0.0243377685546875, 0.004268646240234375, -0.020050048828125, -0.00897979736328125, 0.019317626953125, 0.0230560302734375, 0.024383544921875, -0.013458251953125, -0.041107177734375, 0.0051116943359375, 0.0047454833984375, 0.00414276123046875, 0.03057861328125, 0.04248046875, 0.0029048919677734375, 0.08331298828125, -0.0394287109375, -0.017333984375, -0.024688720703125, 0.003574371337890625, 0.0186309814453125, 0.057708740234375, -0.01035308837890625, -0.0015659332275390625, -0.030242919921875, -0.07000732421875, -0.01033782958984375, 0.0219573974609375, -0.014007568359375, 0.03997802734375, -0.01123809814453125, 0.054229736328125, 0.03863525390625, 0.01410675048828125, 0.017852783203125, -0.003559112548828125, 0.04022216796875, 0.002773284912109375, 0.0246124267578125, 0.021514892578125, -0.01395416259765625, 0.0196685791015625, 0.018310546875, -0.004291534423828125, -0.0195770263671875, 0.0208892822265625, -0.0032329559326171875, -0.00444793701171875, 0.021759033203125, 0.019256591796875, 0.01410675048828125, -0.0215301513671875, 0.045562744140625, -0.005954742431640625, -0.03533935546875, -0.002887725830078125, 0.024505615234375, -0.0266265869140625, -0.045928955078125, 0.0229339599609375, 0.02813720703125, -0.0231781005859375, 0.00958251953125, 0.00925445556640625, -0.0068206787109375, 0.02099609375, 0.0114593505859375, 0.06109619140625, 0.0299224853515625, -0.014373779296875, 0.00737762451171875, 0.004901885986328125, -0.047637939453125, -0.07122802734375, -0.0006651878356933594, -0.033843994140625, 0.06353759765625, -0.00905609130859375, 0.06109619140625, -0.0135955810546875, -0.04034423828125, -0.01100921630859375, -0.039306640625, 0.01155853271484375, 0.02734375, -0.0273895263671875, 0.012939453125, 0.037994384765625, 0.00865936279296875, 0.0181884765625, 0.006549835205078125, -0.0011425018310546875, 0.0263671875, -0.034576416015625, -0.013275146484375, -0.034027099609375, -0.041534423828125, 0.01338958740234375, 0.036224365234375, 0.044189453125, -0.0074005126953125, -0.03106689453125, -0.03521728515625, 0.024749755859375, -0.09552001953125, -0.025115966796875, 0.00322723388671875, 0.0067291259765625, 0.041290283203125, 0.00484466552734375, 0.00830078125, 0.029205322265625, 0.01142120361328125, -0.0263671875, 0.056121826171875, 0.0007834434509277344, -0.00742340087890625, -0.0113067626953125, -0.006008148193359375, 0.005550384521484375, -0.06585693359375, -0.037628173828125, -0.0268707275390625, -0.0213775634765625, -0.0023632049560546875, 0.01253509521484375, 0.01192474365234375, 0.002017974853515625, -0.01561737060546875, 0.010284423828125, -0.03179931640625, -0.010986328125, 0.00720977783203125, 0.035980224609375, -0.028076171875, -0.036376953125, 0.00420379638671875, 0.0118255615234375, 0.0010309219360351562, -0.0303955078125, -0.01322174072265625, -0.02435302734375, -0.00705718994140625, 0.00893402099609375, -0.0243072509765625, 0.01544952392578125, 0.01209259033203125, 0.0418701171875, 0.00031065940856933594, 0.04443359375, -0.027587890625, -0.0272064208984375, 0.045745849609375, -0.0247039794921875, -0.05712890625, 0.0233612060546875, -0.0594482421875, 0.038970947265625, -0.032806396484375, 0.052581787109375, 0.06573486328125, 0.003082275390625, 0.0195465087890625, -0.0148773193359375, -0.004856109619140625, -0.0162353515625, 0.0008296966552734375, -0.01152801513671875, -0.01494598388671875, -0.036102294921875, 0.0207672119140625, 0.036346435546875, 0.013763427734375, 0.0293731689453125, -0.01519775390625, -0.0193634033203125, 0.030059814453125, -0.09405517578125, -0.0970458984375, -0.10955810546875, -0.0980224609375, 0.032135009765625, -0.006572723388671875, -0.038970947265625, 0.0292205810546875, 0.0260009765625, 0.037109375, 0.033447265625, -0.05413818359375, -0.07525634765625, -0.0662841796875, -0.08184814453125, -0.02392578125, 0.007297515869140625, 0.0156402587890625, 0.01149749755859375, 0.0301055908203125, -0.02020263671875, -0.0665283203125, -0.032379150390625, -0.002185821533203125, -0.0108184814453125, -0.0264739990234375, -0.020111083984375, -0.008331298828125, 0.024993896484375, -0.01009368896484375, 0.0031719207763671875, -0.0037021636962890625, 0.021881103515625, -0.0216064453125, -0.0001157522201538086, -0.047515869140625, 0.00238037109375, 0.00047016143798828125, -0.0010404586791992188, -0.01502227783203125, -0.0034027099609375, -0.0587158203125, 0.056121826171875, -0.038818359375, -0.0083770751953125, 0.038360595703125, 0.0116424560546875, -0.03570556640625, 0.020538330078125, -0.0360107421875, 0.00521087646484375, -0.0001895427703857422, -0.01153564453125, -0.0078582763671875, 0.0274810791015625, -0.008819580078125, 0.012481689453125, 0.01419830322265625, 0.033477783203125, -0.021087646484375, -0.01154327392578125, 0.0029239654541015625, -0.01203155517578125, -0.00927734375, 0.0090484619140625, -0.027252197265625, -0.05609130859375, 0.07049560546875, -0.032135009765625, -0.0001939535140991211, -0.062255859375, -0.03302001953125, -0.0299530029296875, 0.1121826171875, 0.00373077392578125, -0.006381988525390625, 0.042327880859375, 0.034515380859375, -0.069091796875, -0.0214996337890625, -0.06500244140625, -0.0011386871337890625, -0.029998779296875, -0.022125244140625, -0.033447265625, -0.009490966796875, -0.00262451171875, -0.025787353515625, 0.0014581680297851562, -0.049713134765625, 0.0277862548828125, 0.00839996337890625, 0.004119873046875, -0.01335906982421875, -0.01386260986328125, -0.0200958251953125, -0.004741668701171875, 0.00908660888671875, -0.08673095703125, -0.01348114013671875, -0.006259918212890625, 0.050506591796875, 0.01248931884765625, -0.02166748046875, -0.0301666259765625, 0.025238037109375, -0.01209259033203125, 0.007549285888671875, -0.01023101806640625, 0.0200042724609375, -0.02288818359375, 0.006740570068359375, -0.007503509521484375, -0.01210784912109375, -0.00638580322265625, -0.047119140625, -0.0161590576171875, -0.050750732421875, -0.035858154296875, -0.0341796875, -0.0137176513671875, -0.0017337799072265625, 0.0219879150390625, -0.01427459716796875, -0.0098724365234375, 0.015716552734375, -0.01513671875, 0.0294036865234375, -0.01343536376953125, 0.01430511474609375, 0.055694580078125, 0.0070343017578125, 0.0032958984375, -0.00577545166015625, 0.07147216796875, 0.0009312629699707031, -0.03594970703125, -0.0170745849609375, 0.01425933837890625, 0.00803375244140625, -0.0153961181640625, 0.0728759765625, 0.0262603759765625, -0.002971649169921875, 0.06390380859375, -0.01453399658203125, -0.0079498291015625, 0.0008997917175292969, 0.0216217041015625, 0.008087158203125, -0.04119873046875, 0.02655029296875, 0.00600433349609375, -0.004100799560546875, 0.013275146484375, -0.008544921875, -0.01541900634765625, -0.006526947021484375, 0.0183868408203125, -0.006252288818359375, 0.0236053466796875, -0.012664794921875, -0.033660888671875, 0.01428985595703125, -0.015869140625, -0.0019292831420898438, 0.032012939453125, -0.01355743408203125, 0.0098419189453125, -0.0261077880859375, -0.0211334228515625, -0.025909423828125, -0.0153961181640625, 0.0020656585693359375, -0.002994537353515625, 0.0094146728515625, -0.017303466796875, -0.020172119140625, -0.0316162109375, 0.12353515625, 0.01629638671875, -0.06060791015625, 0.05206298828125, -0.0178680419921875, -0.00833892822265625, 0.05279541015625, -0.01947021484375, 0.0186614990234375, -0.0211029052734375, -0.0347900390625, -0.01055145263671875, -0.002376556396484375, -0.05889892578125, -0.043212890625, 0.01012420654296875, -0.0004513263702392578, -0.006031036376953125, 0.0241241455078125, 0.051422119140625, -0.00745391845703125, 0.0290374755859375, -0.017822265625, 0.013458251953125, -0.006519317626953125, 0.045867919921875, 0.01207733154296875, -0.00928497314453125, 0.0321044921875, -0.017486572265625, 0.0279693603515625, -0.031585693359375, -0.01605224609375, 0.01535797119140625, 0.04144287109375, 0.00823974609375, -0.004886627197265625, 0.0065460205078125, -0.0127105712890625, -0.0067901611328125, 0.049468994140625, -0.02288818359375, -0.0931396484375, 0.0098114013671875, 0.041961669921875, 0.0182952880859375, -0.06988525390625, -0.0037326812744140625, 0.01467132568359375, -0.031951904296875, 0.0072021484375, 0.02301025390625, -0.007045745849609375, -0.03033447265625, -0.039031982421875, 0.0180511474609375, -0.0438232421875, -0.038909912109375, 0.00395965576171875, 0.0304412841796875, -0.018524169921875, 0.0015630722045898438, 0.0183563232421875, 0.0173797607421875, -0.01551055908203125, -0.01203155517578125, -0.00046539306640625, 0.0014619827270507812, -0.006114959716796875, 0.040069580078125, -0.02752685546875, -0.0513916015625, -0.007465362548828125, -0.038055419921875, -0.0167388916015625, -0.01517486572265625, -0.0166778564453125, -0.056854248046875, -0.01209259033203125, -0.0011281967163085938, 0.010406494140625, -0.0247344970703125, -0.0088348388671875, -0.0227203369140625, 0.0189056396484375, 0.01110076904296875, 0.0177764892578125, -0.01306915283203125, 0.055877685546875, 0.004695892333984375, 0.0221099853515625, 0.0169219970703125, 0.042572021484375, 0.005741119384765625, -0.0272369384765625, 0.0273895263671875, -0.0037403106689453125, -0.0176239013671875, -0.040130615234375, 0.0211181640625, -0.0243682861328125, 0.0273284912109375, -0.0133056640625, -0.0250244140625, -0.03302001953125, 0.0007195472717285156, -0.030517578125, 0.08428955078125, -0.0372314453125, -0.017730712890625, -0.04315185546875, -0.0183868408203125, 0.045074462890625, -0.0035247802734375, -0.0360107421875, 0.019500732421875, -0.011566162109375, 0.0196075439453125, 0.06304931640625, -0.00547027587890625, 0.023101806640625, 0.08203125, 0.00399017333984375, 0.04296875, 0.033294677734375, 0.0136260986328125, 0.01666259765625, 0.0171661376953125, -0.00557708740234375, -0.0179901123046875, 0.03582763671875, 0.004169464111328125, -0.0268402099609375, -0.0019321441650390625, -0.03631591796875, 0.0190277099609375, 0.07122802734375, 0.0675048828125, -0.10467529296875, 0.01322174072265625, -0.008697509765625, -0.016021728515625, 0.037872314453125, -0.0239105224609375, -0.020782470703125, -0.06591796875, 0.045989990234375, -0.017120361328125, -0.024444580078125, -0.0012693405151367188, -0.00618743896484375, -0.0175323486328125, -0.01216888427734375, 0.01873779296875, 0.0176849365234375, -0.01264190673828125, 0.007045745849609375, 0.020477294921875, 0.0028076171875, 0.0033626556396484375, -0.03509521484375, 0.0020122528076171875, -0.056427001953125, -0.041229248046875, -0.0233917236328125, -0.050048828125, -0.00029778480529785156, 0.0113067626953125, 0.0248260498046875, 0.0216217041015625, 0.0255584716796875, -0.0016622543334960938, 0.00475311279296875, -0.01284027099609375, 0.01189422607421875, 0.085205078125, -0.027191162109375, -0.01351165771484375, 0.0257415771484375, -0.017303466796875, -0.0111846923828125, 0.0323486328125, -0.0283966064453125, -0.01549530029296875, -0.0316162109375, 0.06640625, -0.01016998291015625, -0.01050567626953125, 0.048431396484375, 0.007556915283203125, -0.05194091796875, 0.003910064697265625, -0.01334381103515625, -0.009613037109375, 0.0278167724609375, -0.003582000732421875, 0.006641387939453125, 0.032501220703125, 0.0196685791015625, -0.040191650390625, 0.07342529296875, -0.0072479248046875, 0.0038471221923828125, 0.0489501953125, 0.0145416259765625, -0.0609130859375, -0.0213165283203125, -0.033233642578125, 0.050201416015625, 0.0230560302734375, 0.022613525390625, -0.0133514404296875, 0.006328582763671875, 0.01038360595703125, 0.0025310516357421875, 0.05133056640625, 0.01319122314453125, -0.05718994140625, -0.032012939453125, 0.0269927978515625, 0.04718017578125, 0.0289459228515625, 0.05145263671875, -0.007068634033203125, 0.0206146240234375, 0.0181427001953125, -0.0293731689453125, 0.023406982421875, -0.0004870891571044922, -0.0408935546875, 0.01727294921875, -0.0160064697265625, -0.056671142578125, 0.0175323486328125, 0.0338134765625, -0.08795166015625, 0.0257568359375, 0.041748046875, 0.0220947265625, -0.005100250244140625, 0.01517486572265625, 0.0148468017578125, -0.00466156005859375, 0.008514404296875, -0.029449462890625, 0.0325927734375, 0.011138916015625, -0.01047515869140625, -0.0183563232421875, 0.018218994140625, -0.0237579345703125, -0.038177490234375, -0.0159454345703125, 0.03179931640625, -0.05029296875, 0.060272216796875, 0.007175445556640625, 0.0172882080078125, -0.06884765625, 0.01837158203125, 0.041259765625, 0.072509765625, -0.054931640625, -0.04425048828125, 0.000028908252716064453, -0.003269195556640625, 0.0200347900390625, 0.01462554931640625, 0.042572021484375, 0.0513916015625, 0.041717529296875, 0.002872467041015625, 0.0147247314453125, 0.0114593505859375, -0.011749267578125, -0.00318145751953125, 0.02630615234375, -0.006557464599609375, 0.039337158203125, -0.0013875961303710938, 0.0202789306640625, -0.0229034423828125, -0.0147247314453125, -0.01406097412109375, 0.0196380615234375, -0.0169677734375, 0.0266571044921875, 0.00833892822265625, 0.03631591796875, -0.021728515625, -0.006290435791015625, -0.032806396484375, -0.0809326171875, -0.0004794597625732422, 0.037353515625, -0.038421630859375, 0.0216522216796875, 0.036041259765625, 0.032012939453125, -0.038116455078125, -0.03106689453125, 0.0225372314453125, -0.0251617431640625, -0.0458984375, -0.01049041748046875, -0.00600433349609375, 0.03045654296875, 0.00550079345703125, -0.009185791015625, 0.0439453125, 0.003543853759765625, -0.0160369873046875, 0.0218353271484375, 0.0036716461181640625, -0.04034423828125, 0.029296875, -0.0129547119140625, 0.062347412109375, 0.002685546875, -0.06494140625, -0.0023708343505859375, -0.0244140625, -0.027587890625, 0.01364898681640625, 0.023406982421875, 0.0015783309936523438, 0.005664825439453125, 0.0127716064453125, 0.007770538330078125, -0.00583648681640625, -0.018035888671875, 0.02130126953125, -0.021240234375, 0.00328826904296875, -0.0034027099609375, -0.041015625, -0.050628662109375, -0.0287628173828125, 0.0694580078125, 0.0033969879150390625, 0.08013916015625, -0.0316162109375, 0.032684326171875, -0.0265045166015625, 0.012359619140625, -0.026397705078125, -0.01374053955078125, 0.0177154541015625, -0.010528564453125, -0.0223846435546875, 0.005062103271484375, -0.0782470703125, 0.0963134765625, -0.037017822265625, 0.0256500244140625, 0.06463623046875, -0.0124664306640625, -0.00815582275390625, 0.00518035888671875, 0.0181884765625, -0.03070068359375, -0.050079345703125, -0.0200958251953125, 0.033599853515625, -0.0013885498046875, 0.0052642822265625, -0.03253173828125, 0.01023101806640625, -0.06939697265625, -0.01922607421875, -0.0021572113037109375, -0.0151519775390625, -0.04052734375, 0.0196533203125, -0.03717041015625, 0.004150390625, -0.003330230712890625, -0.0238800048828125, -0.005615234375, 0.008209228515625, 0.0035400390625, -0.02178955078125, 0.00992584228515625, 0.0261077880859375, 0.0382080078125, 0.04376220703125, -0.01751708984375, 0.00951385498046875, 0.0234527587890625, 0.00344085693359375, 0.0193023681640625, -0.0142059326171875, -0.043121337890625, -0.0286712646484375, -0.0061798095703125, 0.0163421630859375, 0.004535675048828125, -0.031158447265625, -0.0445556640625, 0.058319091796875, 0.02593994140625, -0.0113983154296875, -0.0618896484375, 0.037017822265625, -0.058685302734375, 0.08038330078125, -0.0174560546875, -0.020477294921875, 0.027252197265625, 0.06298828125, -0.0189361572265625, -0.0013866424560546875, -0.0159759521484375, -0.0287017822265625, -0.01122283935546875, 0.0257720947265625, 0.043670654296875, -0.03509521484375, -0.00142669677734375, 0.00032830238342285156, -0.007183074951171875, 0.056610107421875, 0.013092041015625, -0.005870819091796875, 0.0272674560546875, -0.00305938720703125, -0.0186614990234375, -0.06414794921875, -0.0149383544921875, -0.038177490234375, 0.014373779296875, -0.01837158203125, 0.00421142578125, 0.0084381103515625, -0.058319091796875, -0.1107177734375, -0.0189361572265625, -0.002468109130859375, -0.058349609375, -0.07489013671875, 0.01263427734375, 0.0012187957763671875, 0.01155853271484375, -0.0280303955078125, -0.018280029296875, -0.036865234375, 0.033416748046875, 0.01351165771484375, 0.0017147064208984375, 0.01218414306640625, 0.03289794921875, -0.037689208984375, 0.048583984375, 0.033843994140625, 0.00386810302734375, -0.009246826171875, 0.018707275390625, 0.005123138427734375, 0.056854248046875, -0.0108642578125, -0.02587890625, -0.010040283203125, -0.034759521484375, 0.00229644775390625, -0.054840087890625, 0.00737762451171875, -0.023468017578125, -0.0021991729736328125, 0.0167999267578125, -0.005611419677734375, 0.00153350830078125, -0.028167724609375, -0.06585693359375, -0.035186767578125, -0.041717529296875, 0.01934814453125, -0.08148193359375, -0.0005736351013183594, 0.0182037353515625, 0.01309967041015625, 0.00318145751953125, -0.004913330078125, -0.00963592529296875, -0.0171966552734375, 0.0181884765625, 0.0020503997802734375, -0.004962921142578125, -0.009063720703125, 0.0704345703125, -0.04486083984375, 0.020111083984375, 0.0002142190933227539, 0.0201263427734375, 0.049163818359375, -0.004688262939453125, -0.0052490234375, -0.008270263671875, -0.0190277099609375, -0.0014019012451171875, 0.01003265380859375, 0.033477783203125, -0.004611968994140625, -0.0269012451171875, 0.005855560302734375, 0.0170135498046875, -0.0204925537109375, 0.026702880859375, 0.01204681396484375, 0.02978515625, -0.00572967529296875, 0.0562744140625, -0.0019216537475585938, -0.01019287109375, -0.0186614990234375, 0.04107666015625, -0.0183258056640625, -0.028900146484375, -0.0015888214111328125, -0.0264434814453125, 0.00038743019104003906, 0.01468658447265625, 0.04608154296875, -0.028778076171875, 0.020904541015625, -0.03729248046875, 0.02716064453125, 0.01061248779296875 ]
a5ebe742e697d94bb3aff4d06a5395ca2096ccab
Wordpress Stackexchange Q: get_permalink returns default link I hope you can help me. So I'm using /%postname%/ as permalink structure, and my htaccess looks like this: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /develop/sekai/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /develop/sekai/index.php [L] </IfModule> # END WordPress Hovewer, get_permalink function returns me the default permalink structure (?page_id=x), while menus are fine with their links. What should I do? Thanks for all!! :D
Q: get_permalink returns default link I hope you can help me. So I'm using /%postname%/ as permalink structure, and my htaccess looks like this: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /develop/sekai/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /develop/sekai/index.php [L] </IfModule> # END WordPress Hovewer, get_permalink function returns me the default permalink structure (?page_id=x), while menus are fine with their links. What should I do? Thanks for all!! :D
wordpress
{ "language": "en", "length": 76, "provenance": "stackexchange_00019.jsonl.gz:425652", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72101" }
[ 0.040557861328125, -0.0202789306640625, 0.01751708984375, 0.0279998779296875, -0.0207672119140625, -0.01248931884765625, 0.058074951171875, -0.053924560546875, -0.05072021484375, 0.0025348663330078125, -0.03192138671875, 0.01617431640625, -0.048065185546875, -0.0305023193359375, 0.046112060546875, -0.055999755859375, 0.0380859375, 0.0036907196044921875, 0.0438232421875, 0.0081024169921875, -0.01230621337890625, 0.0211029052734375, 0.06573486328125, 0.025970458984375, 0.0372314453125, -0.015655517578125, 0.06219482421875, -0.044921875, 0.0240325927734375, -0.0341796875, 0.01468658447265625, 0.00732421875, 0.0005402565002441406, 0.00031638145446777344, 0.0236663818359375, -0.0242919921875, 0.0127105712890625, 0.004764556884765625, 0.0338134765625, 0.0030384063720703125, 0.005641937255859375, 0.0005850791931152344, 0.03851318359375, 0.01288604736328125, -0.0034122467041015625, -0.0113677978515625, -0.0165863037109375, -0.0633544921875, -0.00862884521484375, -0.0150604248046875, 0.01043701171875, 0.040191650390625, 0.0149078369140625, -0.00615692138671875, -0.00360870361328125, -0.0015048980712890625, 0.03936767578125, -0.053375244140625, 0.034393310546875, -0.015411376953125, -0.035247802734375, -0.0220794677734375, 0.021270751953125, -0.0149688720703125, -0.041107177734375, 0.0027217864990234375, -0.007381439208984375, 0.02093505859375, -0.0498046875, -0.044342041015625, 0.0236358642578125, -0.0244293212890625, -0.0204010009765625, -0.01953125, -0.0175933837890625, -0.01425933837890625, 0.005741119384765625, -0.03118896484375, -0.0036487579345703125, 0.0178985595703125, 0.01690673828125, -0.017486572265625, -0.054290771484375, -0.0054779052734375, 0.0352783203125, 0.01605224609375, 0.012176513671875, -0.02459716796875, -0.035125732421875, -0.044830322265625, -0.036865234375, -0.04107666015625, -0.038970947265625, -0.01209259033203125, -0.0306854248046875, -0.0145263671875, 0.0426025390625, 0.033935546875, 0.031494140625, 0.029541015625, 0.01739501953125, -0.06707763671875, 0.0596923828125, -0.043121337890625, -0.024627685546875, -0.007396697998046875, 0.036773681640625, 0.0347900390625, 0.015045166015625, 0.031494140625, -0.02691650390625, 0.0458984375, -0.01800537109375, 0.013885498046875, -0.0345458984375, 0.0137176513671875, -0.05963134765625, 0.0029201507568359375, -0.025177001953125, 0.037353515625, -0.00807952880859375, 0.034637451171875, 0.0019664764404296875, -0.002223968505859375, 0.004619598388671875, 0.0232391357421875, 0.007427215576171875, -0.05084228515625, -0.023468017578125, 0.0223846435546875, -0.0269317626953125, -0.004711151123046875, 0.036163330078125, 0.053314208984375, 0.0180206298828125, -0.0296478271484375, 0.025238037109375, -0.029052734375, -0.0022411346435546875, 0.0215911865234375, -0.0243682861328125, 0.0012054443359375, 0.037353515625, -0.03033447265625, -0.026397705078125, 0.023406982421875, 0.0233917236328125, 0.020416259765625, -0.0318603515625, -0.029449462890625, -0.009735107421875, -0.0139007568359375, 0.038360595703125, -0.00945281982421875, -0.00984954833984375, -0.02789306640625, 0.01154327392578125, -0.019195556640625, -0.0228729248046875, -0.017181396484375, 0.0305023193359375, -0.024169921875, -0.0238800048828125, -0.017974853515625, -0.060638427734375, 0.01207733154296875, -0.04058837890625, -0.02044677734375, 0.0266265869140625, 0.0129547119140625, 0.00673675537109375, -0.032379150390625, -0.005252838134765625, -0.00002771615982055664, 0.00777435302734375, 0.0141754150390625, 0.003757476806640625, -0.01348876953125, -0.005962371826171875, 0.051025390625, 0.0296630859375, -0.0166168212890625, -0.0201263427734375, 0.0218353271484375, -0.0474853515625, 0.0623779296875, 0.0206756591796875, 0.088134765625, -0.0197906494140625, 0.0235595703125, 0.027984619140625, 0.0243072509765625, -0.08154296875, 0.036956787109375, -0.005168914794921875, -0.01363372802734375, 0.00600433349609375, -0.0059051513671875, -0.0058135986328125, -0.00933837890625, -0.032257080078125, -0.00499725341796875, 0.00568389892578125, 0.045196533203125, 0.01214599609375, 0.0179901123046875, -0.00838470458984375, 0.0075531005859375, 0.021148681640625, 0.03021240234375, 0.010406494140625, 0.019287109375, -0.04119873046875, -0.0401611328125, -0.0230712890625, 0.055999755859375, -0.041259765625, -0.001987457275390625, -0.03765869140625, 0.01220703125, -0.0196533203125, -0.04901123046875, -0.01329803466796875, 0.0478515625, 0.01059722900390625, -0.021453857421875, -0.021942138671875, -0.0243682861328125, -0.020477294921875, 0.01392364501953125, -0.06732177734375, 0.029632568359375, 0.0246734619140625, 0.019500732421875, -0.043609619140625, 0.00800323486328125, -0.0020503997802734375, -0.00019311904907226562, 0.0010213851928710938, 0.03369140625, 0.01666259765625, 0.0297698974609375, -0.0252838134765625, -0.01070404052734375, 0.0236358642578125, -0.0511474609375, 0.0033397674560546875, 0.001293182373046875, -0.005352020263671875, 0.0209197998046875, 0.01261138916015625, 0.02154541015625, 0.0175018310546875, -0.00934600830078125, -0.00986480712890625, 0.047088623046875, -0.0171051025390625, -0.017730712890625, -0.0056915283203125, 0.0155181884765625, 0.006259918212890625, -0.0216827392578125, -0.008636474609375, -0.024932861328125, 0.0042266845703125, 0.0184326171875, -0.0025424957275390625, 0.0179290771484375, -0.0180511474609375, 0.020477294921875, 0.00284576416015625, -0.0275726318359375, -0.018402099609375, 0.040557861328125, 0.07562255859375, -0.044403076171875, -0.0280914306640625, -0.023651123046875, -0.0015821456909179688, 0.0250396728515625, -0.0042572021484375, 0.0203857421875, -0.0023670196533203125, -0.01253509521484375, 0.009124755859375, -0.038116455078125, -0.00897216796875, -0.009033203125, 0.043182373046875, 0.003826141357421875, 0.0178375244140625, 0.014007568359375, -0.0235595703125, 0.0300140380859375, 0.02032470703125, -0.032745361328125, 0.0251312255859375, -0.04815673828125, 0.047119140625, -0.050140380859375, 0.01052093505859375, 0.049468994140625, -0.0277862548828125, 0.0228729248046875, 0.0011587142944335938, 0.00604248046875, 0.0185699462890625, -0.02685546875, -0.034332275390625, 0.0024662017822265625, -0.0750732421875, -0.0252532958984375, 0.01061248779296875, 0.0264129638671875, -0.0177764892578125, -0.0350341796875, -0.0215606689453125, 0.0175933837890625, -0.071044921875, -0.0518798828125, -0.015869140625, -0.0283355712890625, 0.03350830078125, 0.01030731201171875, -0.0008220672607421875, -0.0216217041015625, 0.006870269775390625, 0.0089569091796875, 0.0182952880859375, -0.028564453125, -0.0994873046875, -0.0699462890625, -0.1072998046875, -0.017486572265625, -0.017669677734375, 0.01788330078125, 0.005916595458984375, -0.0174713134765625, -0.00978851318359375, -0.0195770263671875, 0.01030731201171875, -0.006031036376953125, -0.00653839111328125, -0.024383544921875, 0.004116058349609375, -0.0257415771484375, 0.0119781494140625, -0.00661468505859375, 0.046600341796875, 0.033599853515625, -0.0229034423828125, 0.002315521240234375, -0.0014286041259765625, -0.028961181640625, 0.037445068359375, 0.008453369140625, -0.01186370849609375, 0.0017223358154296875, 0.0596923828125, -0.052093505859375, -0.049285888671875, -0.017242431640625, -0.0665283203125, 0.05328369140625, 0.030792236328125, -0.004917144775390625, -0.00511932373046875, 0.027252197265625, 0.01001739501953125, 0.0016565322875976562, 0.032867431640625, -0.0400390625, 0.0193939208984375, -0.003200531005859375, 0.02899169921875, -0.04071044921875, 0.05035400390625, -0.036651611328125, 0.00933074951171875, 0.0190887451171875, -0.0205078125, -0.0019197463989257812, -0.0440673828125, -0.035888671875, -0.045257568359375, 0.041656494140625, -0.078125, -0.0227203369140625, -0.050750732421875, -0.005405426025390625, -0.01275634765625, 0.06524658203125, 0.041229248046875, -0.0185394287109375, -0.017822265625, -0.0093231201171875, -0.0257720947265625, -0.032867431640625, -0.0091400146484375, -0.0024566650390625, -0.08807373046875, -0.018096923828125, -0.0219573974609375, -0.04388427734375, 0.01174163818359375, -0.022247314453125, -0.035888671875, -0.048980712890625, 0.0236053466796875, 0.0195159912109375, -0.00927734375, 0.026275634765625, -0.0067138671875, 0.0020751953125, -0.013916015625, 0.0006213188171386719, -0.0280609130859375, -0.033111572265625, 0.033660888671875, 0.04180908203125, 0.004970550537109375, -0.0305938720703125, -0.0089263916015625, 0.049407958984375, -0.01373291015625, 0.0171966552734375, 0.024810791015625, 0.0205078125, 0.0343017578125, -0.0110015869140625, 0.0322265625, -0.0318603515625, -0.0027866363525390625, -0.00991058349609375, -0.0308685302734375, -0.0145263671875, -0.02777099609375, -0.00675201416015625, 0.00852203369140625, -0.0282135009765625, -0.05841064453125, -0.005268096923828125, -0.0111236572265625, 0.0408935546875, 0.00962066650390625, -0.0162353515625, -0.0243072509765625, -0.08526611328125, 0.04534912109375, -0.0131072998046875, 0.0058441162109375, 0.002246856689453125, 0.05718994140625, 0.0038928985595703125, -0.0248565673828125, -0.00957489013671875, 0.020721435546875, 0.0245819091796875, 0.01212310791015625, 0.0826416015625, 0.03253173828125, 0.0154266357421875, 0.01436614990234375, -0.0029773712158203125, 0.035247802734375, -0.027435302734375, 0.0064544677734375, -0.0130462646484375, -0.0001119375228881836, 0.011871337890625, -0.0009083747863769531, 0.0007076263427734375, 0.04937744140625, -0.0120849609375, -0.0211639404296875, -0.0533447265625, 0.04193115234375, -0.009185791015625, 0.014862060546875, -0.0517578125, -0.0006098747253417969, 0.00678253173828125, 0.0217742919921875, 0.0300445556640625, 0.0139007568359375, -0.0010747909545898438, 0.004146575927734375, 0.032135009765625, 0.007434844970703125, 0.01186370849609375, 0.0107421875, 0.0458984375, 0.040802001953125, 0.01593017578125, 0.0416259765625, -0.0196990966796875, -0.004512786865234375, 0.053619384765625, 0.01593017578125, -0.00640106201171875, -0.0238037109375, -0.0128021240234375, -0.0268707275390625, 0.0016307830810546875, -0.00614166259765625, 0.0305938720703125, 0.0106658935546875, -0.0157318115234375, 0.00701904296875, -0.0302276611328125, 0.00687408447265625, -0.050384521484375, 0.03265380859375, -0.006557464599609375, 0.0087738037109375, -0.0123748779296875, 0.0885009765625, 0.01343536376953125, 0.03411865234375, -0.001552581787109375, -0.036590576171875, 0.0014085769653320312, 0.048187255859375, 0.021209716796875, -0.02166748046875, -0.0021877288818359375, 0.024810791015625, 0.041229248046875, -0.0367431640625, -0.01285552978515625, 0.0188751220703125, 0.0555419921875, -0.00731658935546875, -0.0164794921875, 0.01177215576171875, -0.035552978515625, -0.0233612060546875, 0.01236724853515625, -0.031463623046875, -0.0655517578125, -0.020294189453125, 0.032623291015625, 0.023162841796875, -0.00756072998046875, -0.0362548828125, 0.028289794921875, -0.0144500732421875, 0.00644683837890625, -0.00010448694229125977, -0.0528564453125, 0.046630859375, 0.051544189453125, 0.05126953125, -0.01300048828125, 0.01043701171875, -0.053863525390625, 0.016448974609375, -0.043487548828125, -0.008209228515625, 0.055694580078125, 0.0016384124755859375, 0.0660400390625, -0.0242767333984375, -0.044036865234375, -0.0013141632080078125, -0.0044097900390625, 0.046417236328125, 0.0272216796875, -0.05133056640625, -0.0155029296875, -0.0293731689453125, 0.013092041015625, 0.01419830322265625, 0.0036182403564453125, -0.01812744140625, -0.0188446044921875, 0.016693115234375, 0.01184844970703125, 0.0386962890625, 0.034698486328125, -0.0263519287109375, 0.01337432861328125, -0.00426483154296875, 0.016876220703125, -0.029388427734375, 0.09368896484375, -0.01380157470703125, 0.033721923828125, -0.019989013671875, 0.023162841796875, -0.03289794921875, -0.006500244140625, 0.006877899169921875, -0.02490234375, -0.02880859375, -0.0246734619140625, -0.0276641845703125, 0.001651763916015625, 0.041473388671875, 0.004550933837890625, -0.00849151611328125, 0.01419830322265625, 0.01538848876953125, -0.038482666015625, -0.011474609375, -0.016815185546875, -0.021942138671875, -0.0217437744140625, 0.022064208984375, 0.06378173828125, -0.0029888153076171875, -0.0202484130859375, -0.0300445556640625, 0.0036182403564453125, -0.0153961181640625, 0.0074615478515625, -0.02618408203125, 0.0318603515625, 0.08709716796875, 0.0226287841796875, 0.0731201171875, 0.03271484375, 0.026641845703125, 0.040130615234375, 0.0032444000244140625, 0.0390625, -0.0002009868621826172, 0.056671142578125, 0.00159454345703125, 0.0166015625, 0.050689697265625, -0.010284423828125, -0.0012941360473632812, 0.051727294921875, 0.058837890625, -0.08563232421875, 0.0119476318359375, 0.006366729736328125, -0.0019893646240234375, 0.0293426513671875, 0.00867462158203125, -0.0250396728515625, -0.00982666015625, 0.003162384033203125, -0.038421630859375, -0.027008056640625, -0.01519775390625, 0.0220947265625, 0.004070281982421875, 0.00211334228515625, 0.054443359375, 0.0002446174621582031, 0.0163116455078125, -0.0714111328125, -0.0012159347534179688, -0.01546478271484375, 0.0099334716796875, -0.0088348388671875, -0.004901885986328125, -0.0257110595703125, -0.008575439453125, 0.015716552734375, -0.04730224609375, 0.00501251220703125, 0.0277862548828125, -0.0175933837890625, -0.0069732666015625, 0.044769287109375, -0.031768798828125, 0.0232086181640625, 0.016632080078125, -0.0516357421875, 0.01230621337890625, -0.0377197265625, 0.00785064697265625, 0.005550384521484375, -0.0152740478515625, 0.0193939208984375, 0.0035419464111328125, -0.05523681640625, -0.00959014892578125, -0.035919189453125, 0.1236572265625, -0.08221435546875, -0.006015777587890625, 0.00415802001953125, 0.004756927490234375, -0.0009026527404785156, -0.0185089111328125, -0.01439666748046875, -0.01181793212890625, 0.032623291015625, -0.03497314453125, 0.023651123046875, 0.0177001953125, -0.059814453125, -0.033447265625, 0.040069580078125, -0.0026092529296875, 0.01499176025390625, 0.037017822265625, 0.01290130615234375, -0.005584716796875, 0.00046896934509277344, -0.03009033203125, 0.078369140625, 0.0206146240234375, 0.038299560546875, -0.028472900390625, -0.01453399658203125, 0.0257415771484375, 0.03302001953125, 0.05999755859375, 0.020965576171875, -0.0501708984375, 0.00804901123046875, 0.08123779296875, 0.050811767578125, 0.0024814605712890625, 0.0186920166015625, 0.004180908203125, 0.0484619140625, 0.056396484375, -0.0254364013671875, 0.005138397216796875, 0.031280517578125, -0.037017822265625, 0.031707763671875, 0.0217437744140625, 0.031982421875, 0.0257415771484375, -0.016876220703125, -0.03887939453125, 0.01210784912109375, 0.052947998046875, -0.035552978515625, 0.0128936767578125, 0.053192138671875, 0.07672119140625, -0.0474853515625, -0.048828125, -0.032623291015625, 0.058624267578125, 0.030059814453125, 0.0081787109375, 0.03863525390625, 0.023101806640625, 0.00768280029296875, -0.00627899169921875, 0.0113372802734375, 0.017120361328125, -0.0196533203125, 0.06402587890625, 0.03826904296875, 0.0255889892578125, -0.0258026123046875, -0.05078125, 0.0609130859375, 0.08721923828125, -0.0277099609375, -0.029388427734375, 0.00664520263671875, -0.0014743804931640625, 0.012237548828125, -0.019683837890625, 0.0221405029296875, 0.0224609375, 0.0232696533203125, -0.007205963134765625, -0.00815582275390625, 0.03216552734375, 0.0308685302734375, -0.0100555419921875, -0.053131103515625, -0.01215362548828125, 0.024017333984375, -0.043731689453125, 0.0267486572265625, 0.0277862548828125, 0.0270233154296875, -0.0142669677734375, 0.05499267578125, -0.002048492431640625, 0.004596710205078125, 0.041717529296875, -0.01036834716796875, -0.048553466796875, -0.0220947265625, -0.0191650390625, -0.05828857421875, 0.004070281982421875, 0.044219970703125, 0.06707763671875, 0.01654052734375, 0.023529052734375, -0.039215087890625, -0.013641357421875, 0.0228424072265625, -0.007099151611328125, -0.028961181640625, 0.01491546630859375, -0.0186920166015625, 0.009765625, 0.024505615234375, -0.0132904052734375, -0.01690673828125, -0.00473785400390625, 0.0516357421875, -0.03424072265625, 0.0220489501953125, -0.003772735595703125, -0.0187835693359375, 0.050079345703125, -0.01071929931640625, 0.0447998046875, -0.0109405517578125, -0.042755126953125, -0.0208892822265625, 0.0223236083984375, -0.0302276611328125, 0.01123046875, 0.03851318359375, 0.0246734619140625, -0.035369873046875, -0.010284423828125, 0.00585174560546875, 0.01348876953125, -0.026702880859375, 0.01177215576171875, 0.01739501953125, 0.0094146728515625, 0.006710052490234375, -0.06500244140625, -0.032135009765625, -0.0296783447265625, 0.00815582275390625, 0.0209503173828125, 0.0924072265625, -0.01026153564453125, -0.004795074462890625, -0.0297698974609375, 0.010894775390625, -0.034912109375, -0.0259246826171875, 0.007526397705078125, -0.00809478759765625, -0.0223236083984375, 0.00640869140625, -0.074951171875, 0.00797271728515625, 0.01715087890625, -0.0237579345703125, 0.0172271728515625, -0.0254974365234375, 0.028472900390625, -0.01247406005859375, 0.04669189453125, -0.03240966796875, -0.09991455078125, -0.08831787109375, 0.030029296875, -0.00009393692016601562, 0.044952392578125, -0.02972412109375, 0.04083251953125, -0.0008096694946289062, -0.0156707763671875, -0.0020809173583984375, -0.043853759765625, 0.012786865234375, 0.040283203125, -0.01416778564453125, -0.0036983489990234375, 0.0002760887145996094, -0.028778076171875, 0.008941650390625, -0.0004856586456298828, 0.01221466064453125, -0.0089874267578125, -0.0330810546875, 0.0226287841796875, -0.01654052734375, 0.0180511474609375, -0.0278167724609375, -0.0074462890625, 0.0006895065307617188, 0.008575439453125, 0.04437255859375, -0.023468017578125, -0.0104522705078125, -0.03131103515625, -0.00875091552734375, 0.006031036376953125, -0.023895263671875, -0.0273590087890625, -0.01206207275390625, 0.0157470703125, -0.004978179931640625, -0.0177459716796875, -0.0186767578125, 0.040435791015625, -0.0281524658203125, 0.035003662109375, -0.0555419921875, -0.00201416015625, 0.0124969482421875, 0.026824951171875, -0.0504150390625, -0.01495361328125, -0.0264739990234375, -0.0192413330078125, -0.040985107421875, 0.017669677734375, 0.052093505859375, -0.01378631591796875, -0.022430419921875, -0.01071929931640625, -0.0128021240234375, 0.062347412109375, -0.035064697265625, -0.0091400146484375, -0.0079498291015625, 0.0299072265625, -0.023529052734375, -0.0673828125, 0.01114654541015625, -0.049163818359375, 0.011749267578125, 0.0092315673828125, -0.0243377685546875, 0.01445770263671875, -0.038421630859375, -0.023468017578125, 0.0687255859375, 0.0009570121765136719, -0.0182647705078125, -0.01073455810546875, -0.0347900390625, -0.010284423828125, 0.03765869140625, 0.01123046875, -0.0154876708984375, -0.07415771484375, -0.0013580322265625, 0.00396728515625, 0.0292205810546875, 0.01081085205078125, 0.0235137939453125, 0.00026226043701171875, 0.024993896484375, 0.01099395751953125, -0.0229034423828125, 0.039520263671875, -0.0206756591796875, 0.044464111328125, 0.06744384765625, -0.032196044921875, -0.0002624988555908203, -0.042266845703125, -0.034393310546875, 0.00542449951171875, -0.076416015625, -0.008453369140625, -0.0250396728515625, 0.046722412109375, -0.02410888671875, -0.001071929931640625, -0.02947998046875, -0.026123046875, -0.05078125, -0.0193939208984375, -0.0290069580078125, 0.0269775390625, -0.0748291015625, -0.0004436969757080078, 0.002166748046875, -0.0189361572265625, -0.01103973388671875, -0.0109710693359375, -0.04583740234375, 0.0157318115234375, -0.007373809814453125, -0.007396697998046875, -0.0203704833984375, -0.004978179931640625, 0.053436279296875, -0.035186767578125, 0.0015764236450195312, -0.0018472671508789062, 0.021636962890625, 0.0092926025390625, -0.0234832763671875, 0.0221405029296875, 0.045318603515625, -0.0172271728515625, -0.029022216796875, 0.0457763671875, -0.01959228515625, 0.031280517578125, -0.01983642578125, -0.0208892822265625, 0.032073974609375, 0.0008535385131835938, 0.04058837890625, -0.006519317626953125, 0.026641845703125, 0.02423095703125, 0.05108642578125, -0.002277374267578125, 0.0369873046875, 0.01198577880859375, 0.040496826171875, -0.054473876953125, 0.00832366943359375, -0.027862548828125, -0.046966552734375, -0.00799560546875, 0.03582763671875, -0.0016994476318359375, -0.01250457763671875, 0.0164642333984375, -0.0250701904296875, 0.0218505859375, 0.0006718635559082031 ]
f65e618b12be9ce0a0ad61d029ede11ed2a36a25
Wordpress Stackexchange Q: Get a path to a different plugin To get a the path to a plugin you can use plugin_dir_path(__FILE__) - but this obviously has to be called from within the plug-in. How can you reliably get the path to plugin B (pluginb/pluginb.php) from within plug-in A? Edit: Its assumed you know the slug of the plug-in you're after (actually you can get them from get_plugins()). But I would like it to work generally. A: So one method is to call plugin_dir_path() within the current plug-in and replace your own plugin directory name with that of the slug of the plug-in you're after (pluginb/pluginb.php): So within our plug-in plugina/plugina.php, $plugin_b = str_replace('plugina/','pluginb/pluginb.php',plugin_dir_path(__FILE__)); echo $plugin_b; //Prints path/to/pluginb/pluginb.php';
Q: Get a path to a different plugin To get a the path to a plugin you can use plugin_dir_path(__FILE__) - but this obviously has to be called from within the plug-in. How can you reliably get the path to plugin B (pluginb/pluginb.php) from within plug-in A? Edit: Its assumed you know the slug of the plug-in you're after (actually you can get them from get_plugins()). But I would like it to work generally. A: So one method is to call plugin_dir_path() within the current plug-in and replace your own plugin directory name with that of the slug of the plug-in you're after (pluginb/pluginb.php): So within our plug-in plugina/plugina.php, $plugin_b = str_replace('plugina/','pluginb/pluginb.php',plugin_dir_path(__FILE__)); echo $plugin_b; //Prints path/to/pluginb/pluginb.php'; A: My best guess would be: if ( ! is_file( $dir = WPMU_PLUGIN_DIR . '/pluginb/pluginb.php' ) ) { if ( ! is_file( $dir = WP_PLUGIN_DIR . '/pluginb/pluginb.php' ) ) $dir = null; } return $dir; However, the danger here is still the assumption of the plugin's "basename" - a well written plugin will still function even when its directory and/or main file has been renamed (for whatever reason). Which goes back to my original comment - depending on which third-party plugin this is referring to, many authors define their own methods/constants to hold the plugin path - it would make sense to check for their existence & use these instead (if available). A: Use WP_PLUGIN_DIR constant in your pluginA, for example: include_once(WP_PLUGIN_DIR.'/pluginb/pluginb.php'); Extra info: https://codex.wordpress.org/Determining_Plugin_and_Content_Directories
wordpress
{ "language": "en", "length": 241, "provenance": "stackexchange_00019.jsonl.gz:425660", "question_score": "13", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72131" }
[ 0.0285491943359375, -0.02313232421875, -0.003986358642578125, -0.0195770263671875, -0.005916595458984375, -0.01091766357421875, 0.013214111328125, -0.01277923583984375, -0.00727081298828125, -0.0060882568359375, -0.0439453125, 0.05047607421875, -0.06280517578125, -0.01800537109375, 0.0286407470703125, -0.03472900390625, 0.0244140625, -0.0016393661499023438, 0.031585693359375, -0.01282501220703125, 0.03961181640625, -0.0010919570922851562, 0.02593994140625, 0.0960693359375, 0.02618408203125, -0.00363922119140625, 0.0689697265625, -0.045440673828125, 0.01494598388671875, -0.027801513671875, 0.027374267578125, -0.007755279541015625, 0.0174560546875, -0.0010242462158203125, 0.010498046875, -0.01503753662109375, 0.029449462890625, -0.004825592041015625, 0.00998687744140625, 0.0128021240234375, 0.04638671875, -0.0272216796875, -0.0118255615234375, 0.052703857421875, -0.011993408203125, -0.06329345703125, 0.07000732421875, -0.0202178955078125, 0.03521728515625, 0.043792724609375, 0.012420654296875, -0.013275146484375, -0.003955841064453125, 0.01465606689453125, -0.0237274169921875, -0.022613525390625, -0.0225830078125, 0.0125732421875, 0.00609588623046875, -0.0085906982421875, -0.007022857666015625, 0.01049041748046875, 0.027801513671875, 0.0182342529296875, -0.003997802734375, 0.0039520263671875, -0.0038661956787109375, 0.009063720703125, -0.0034027099609375, 0.00324249267578125, 0.014190673828125, -0.0200347900390625, 0.0001156926155090332, 0.0239410400390625, -0.041015625, -0.03167724609375, 0.0283203125, -0.0211181640625, 0.0219879150390625, 0.0032939910888671875, -0.00955963134765625, -0.024627685546875, -0.00911712646484375, -0.0026416778564453125, 0.0029582977294921875, 0.0287628173828125, -0.006977081298828125, -0.00360107421875, -0.01410675048828125, 0.027099609375, -0.027923583984375, 0.029541015625, 0.0239715576171875, 0.005695343017578125, -0.029449462890625, 0.01427459716796875, 0.0237579345703125, 0.0166778564453125, -0.02203369140625, 0.01399993896484375, 0.0187835693359375, -0.04705810546875, 0.045745849609375, -0.037872314453125, -0.009002685546875, 0.0264892578125, 0.0210113525390625, 0.01180267333984375, 0.00699615478515625, 0.015625, -0.004917144775390625, -0.0036449432373046875, -0.024810791015625, -0.072509765625, 0.01467132568359375, 0.03125, -0.033172607421875, 0.006870269775390625, 0.037353515625, -0.0421142578125, -0.004974365234375, 0.0113372802734375, -0.01873779296875, 0.004467010498046875, 0.0012273788452148438, -0.014801025390625, -0.0200653076171875, 0.0012798309326171875, -0.018463134765625, -0.0097503662109375, -0.0316162109375, 0.0216217041015625, 0.0738525390625, 0.013336181640625, -0.0020275115966796875, -0.0174560546875, -0.006683349609375, -0.00438690185546875, 0.0006856918334960938, -0.0118255615234375, 0.02069091796875, -0.0145721435546875, 0.0091094970703125, -0.004886627197265625, -0.026702880859375, -0.007747650146484375, -0.00905609130859375, 0.0279083251953125, -0.00963592529296875, -0.0026950836181640625, 0.006000518798828125, -0.02789306640625, -0.01232147216796875, 0.018524169921875, 0.04254150390625, -0.0109100341796875, 0.0291290283203125, -0.0257415771484375, 0.034423828125, -0.005313873291015625, -0.0177001953125, 0.0128631591796875, 0.04388427734375, -0.0278167724609375, -0.0261688232421875, -0.03314208984375, -0.0297393798828125, 0.0004343986511230469, 0.0033817291259765625, -0.01525115966796875, 0.0216827392578125, 0.0191192626953125, -0.01873779296875, 0.0024471282958984375, 0.02117919921875, -0.0026569366455078125, -0.0234375, 0.01528167724609375, 0.021575927734375, 0.043121337890625, 0.01120758056640625, -0.026885986328125, 0.048095703125, -0.0015926361083984375, -0.02398681640625, 0.01361846923828125, -0.01220703125, -0.006526947021484375, 0.0302581787109375, -0.00461578369140625, -0.009368896484375, 0.0177154541015625, -0.0413818359375, 0.0169219970703125, -0.0220489501953125, 0.01520538330078125, 0.00811004638671875, 0.03643798828125, -0.013641357421875, -0.0284576416015625, -0.017974853515625, -0.0003514289855957031, -0.01004791259765625, 0.01398468017578125, -0.06304931640625, -0.01154327392578125, -0.02435302734375, 0.0287628173828125, 0.035552978515625, 0.00749969482421875, -0.0035533905029296875, 0.0231170654296875, 0.0030651092529296875, -0.08319091796875, -0.060516357421875, 0.056732177734375, -0.032806396484375, 0.0005736351013183594, -0.00347900390625, 0.00611114501953125, -0.0017681121826171875, 0.0007491111755371094, -0.01187896728515625, -0.0040435791015625, 0.01239776611328125, 0.01210784912109375, -0.0203399658203125, 0.00537872314453125, -0.02618408203125, 0.04473876953125, -0.055908203125, 0.005527496337890625, 0.02532958984375, 0.0657958984375, 0.016387939453125, -0.0187530517578125, 0.0309295654296875, -0.07403564453125, 0.031005859375, 0.040130615234375, 0.038330078125, 0.01174163818359375, -0.022796630859375, -0.024505615234375, 0.0016660690307617188, -0.068359375, -0.0032520294189453125, -0.017120361328125, 0.03802490234375, 0.0450439453125, -0.0214385986328125, 0.022796630859375, 0.032379150390625, 0.01018524169921875, 0.01265716552734375, 0.04608154296875, 0.010772705078125, -0.03411865234375, 0.007114410400390625, -0.009185791015625, 0.031585693359375, -0.00827789306640625, -0.0615234375, 0.0323486328125, -0.04193115234375, 0.011810302734375, -0.011993408203125, 0.01383209228515625, 0.0247955322265625, -0.00931549072265625, 0.010223388671875, -0.02313232421875, -0.0123443603515625, 0.027801513671875, 0.0162506103515625, 0.0120697021484375, -0.0308380126953125, -0.01020050048828125, 0.0017242431640625, 0.0207366943359375, -0.00998687744140625, 0.0107574462890625, 0.02752685546875, -0.0135650634765625, -0.0178070068359375, -0.03948974609375, 0.04876708984375, 0.025848388671875, -0.01763916015625, 0.0138092041015625, 0.041656494140625, 0.01024627685546875, -0.032867431640625, 0.03179931640625, -0.0245208740234375, -0.016632080078125, 0.0545654296875, -0.0201263427734375, 0.0208740234375, -0.01320648193359375, 0.0211944580078125, 0.03973388671875, 0.0283966064453125, -0.05426025390625, -0.00647735595703125, 0.0142669677734375, 0.0220947265625, -0.023834228515625, -0.032958984375, -0.006496429443359375, -0.05902099609375, -0.0166015625, 0.016632080078125, 0.006740570068359375, -0.01319122314453125, -0.046112060546875, -0.02783203125, -0.00959014892578125, -0.10076904296875, -0.051483154296875, 0.0063629150390625, -0.07763671875, 0.05670166015625, 0.00450897216796875, -0.027740478515625, -0.043121337890625, 0.047515869140625, 0.0285491943359375, 0.018096923828125, -0.0679931640625, -0.043792724609375, -0.06298828125, -0.061981201171875, -0.0210113525390625, 0.01026153564453125, -0.02435302734375, 0.0070648193359375, -0.005947113037109375, -0.0018301010131835938, -0.030548095703125, 0.0174560546875, 0.07098388671875, 0.007801055908203125, -0.01230621337890625, 0.0209808349609375, -0.028778076171875, -0.0400390625, -0.0005888938903808594, 0.03759765625, 0.0404052734375, -0.04827880859375, 0.0196685791015625, 0.011962890625, 0.0172271728515625, 0.034515380859375, 0.004070281982421875, -0.031890869140625, 0.0202789306640625, -0.0021648406982421875, -0.035797119140625, 0.017181396484375, -0.0178985595703125, -0.025115966796875, 0.07513427734375, 0.0311737060546875, -0.037017822265625, 0.01473236083984375, -0.002376556396484375, -0.0174560546875, 0.00916290283203125, -0.0293426513671875, -0.025360107421875, 0.034149169921875, -0.003345489501953125, 0.001148223876953125, 0.0218048095703125, 0.040130615234375, 0.01031494140625, -0.0188446044921875, 0.004787445068359375, 0.00927734375, 0.00797271728515625, -0.007678985595703125, -0.01430511474609375, 0.004276275634765625, 0.036041259765625, -0.016937255859375, -0.0009136199951171875, -0.021942138671875, -0.0007047653198242188, -0.0257415771484375, 0.034210205078125, -0.036224365234375, -0.0238800048828125, -0.0016937255859375, 0.01654052734375, -0.030517578125, -0.041900634765625, -0.037139892578125, -0.01873779296875, -0.10009765625, -0.015594482421875, -0.0201568603515625, -0.05218505859375, 0.0125579833984375, 0.005092620849609375, -0.03759765625, -0.046234130859375, 0.0242462158203125, -0.05169677734375, 0.0194091796875, 0.01812744140625, 0.0011854171752929688, 0.0028896331787109375, -0.01654052734375, -0.045806884765625, -0.038604736328125, -0.0154876708984375, -0.036895751953125, 0.043548583984375, 0.044952392578125, -0.03265380859375, 0.00542449951171875, 0.039764404296875, 0.00006848573684692383, 0.060546875, 0.0289459228515625, 0.014373779296875, -0.025848388671875, 0.0216827392578125, 0.07025146484375, -0.0286865234375, -0.0013036727905273438, -0.037139892578125, -0.06689453125, -0.0018510818481445312, -0.01715087890625, 0.0226287841796875, 0.0233001708984375, -0.037994384765625, -0.0283203125, -0.0216827392578125, -0.035369873046875, -0.032806396484375, -0.02056884765625, -0.03387451171875, 0.0040130615234375, -0.0236663818359375, 0.030059814453125, 0.0273284912109375, -0.01358795166015625, -0.0017757415771484375, 0.06341552734375, 0.016845703125, -0.036102294921875, -0.0159454345703125, 0.03094482421875, 0.0218048095703125, 0.0240020751953125, 0.0294036865234375, 0.0029735565185546875, -0.01085662841796875, 0.0380859375, 0.0005402565002441406, 0.0254974365234375, -0.02001953125, 0.048004150390625, -0.0224609375, -0.0310211181640625, 0.0282745361328125, -0.0173492431640625, -0.005306243896484375, -0.0010547637939453125, -0.03131103515625, 0.0193328857421875, -0.01502227783203125, 0.0121917724609375, 0.004726409912109375, 0.0096435546875, -0.03271484375, -0.072509765625, 0.027557373046875, -0.023193359375, 0.007511138916015625, 0.03497314453125, -0.0092620849609375, 0.057220458984375, 0.0074005126953125, -0.034271240234375, 0.045013427734375, 0.03863525390625, 0.03936767578125, 0.01308441162109375, 0.04541015625, -0.036834716796875, -0.0007996559143066406, 0.005462646484375, 0.019927978515625, -0.005218505859375, -0.0209808349609375, -0.040985107421875, -0.022796630859375, 0.008453369140625, 0.00023412704467773438, -0.0188140869140625, 0.03192138671875, 0.033294677734375, -0.02532958984375, -0.006313323974609375, -0.01568603515625, 0.0006861686706542969, -0.03302001953125, 0.01316070556640625, -0.024444580078125, -0.0016231536865234375, 0.0056304931640625, 0.06719970703125, -0.037445068359375, 0.04425048828125, 0.003963470458984375, 0.03717041015625, -0.0111236572265625, 0.03277587890625, -0.0127105712890625, 0.0006279945373535156, 0.01251983642578125, 0.0016698837280273438, -0.0005002021789550781, -0.0164031982421875, 0.0008230209350585938, 0.0036830902099609375, 0.024566650390625, -0.0419921875, -0.030548095703125, 0.05291748046875, -0.0098724365234375, 0.00513458251953125, 0.0245513916015625, 0.00997161865234375, -0.008270263671875, -0.0205535888671875, 0.01454925537109375, 0.06268310546875, 0.00426483154296875, -0.007511138916015625, -0.003810882568359375, -0.0191192626953125, -0.036224365234375, -0.015594482421875, -0.07611083984375, 0.00571441650390625, 0.057952880859375, 0.035858154296875, -0.027374267578125, -0.0228118896484375, -0.04473876953125, 0.0012655258178710938, -0.031158447265625, 0.01611328125, 0.04119873046875, -0.036285400390625, 0.04681396484375, -0.02972412109375, -0.008819580078125, -0.01470947265625, 0.00371551513671875, 0.050689697265625, 0.05548095703125, -0.044403076171875, 0.0430908203125, -0.029571533203125, -0.018310546875, -0.030609130859375, -0.0770263671875, -0.0509033203125, -0.04547119140625, -0.00925445556640625, 0.0166015625, 0.00688934326171875, 0.03900146484375, 0.038177490234375, 0.025726318359375, -0.033233642578125, 0.044586181640625, 0.0099334716796875, 0.044281005859375, 0.029083251953125, 0.0310516357421875, 0.023345947265625, 0.0131072998046875, -0.023101806640625, -0.019927978515625, 0.0067138671875, 0.018585205078125, 0.0112152099609375, -0.0259552001953125, 0.05548095703125, -0.014129638671875, 0.05047607421875, -0.0029125213623046875, -0.0172576904296875, -0.00444793701171875, -0.01474761962890625, -0.01983642578125, 0.0614013671875, 0.03973388671875, 0.034820556640625, -0.040008544921875, -0.044281005859375, -0.02801513671875, -0.0065460205078125, 0.0024089813232421875, 0.0174102783203125, -0.00848388671875, -0.01187896728515625, 0.023590087890625, -0.0804443359375, 0.06719970703125, 0.0574951171875, 0.0305633544921875, 0.054443359375, -0.005207061767578125, 0.051177978515625, 0.0170745849609375, -0.0242156982421875, 0.09014892578125, 0.0103759765625, 0.090087890625, 0.004978179931640625, 0.00799560546875, 0.07257080078125, -0.035400390625, 0.0101165771484375, -0.0096893310546875, 0.0204925537109375, -0.01505279541015625, 0.01116180419921875, 0.0032291412353515625, 0.007061004638671875, 0.041748046875, 0.004169464111328125, 0.0015306472778320312, 0.00994873046875, 0.00988006591796875, 0.01525115966796875, -0.0204315185546875, 0.00766754150390625, 0.0279693603515625, -0.0303497314453125, 0.033050537109375, -0.01183319091796875, 0.01233673095703125, 0.0182342529296875, -0.0186004638671875, -0.014007568359375, 0.00435638427734375, -0.00417327880859375, -0.0110626220703125, 0.051971435546875, -0.02642822265625, -0.026580810546875, 0.052520751953125, -0.022918701171875, 0.007122039794921875, 0.00199127197265625, -0.013916015625, 0.05487060546875, 0.024566650390625, 0.01256561279296875, -0.024871826171875, -0.0036163330078125, 0.021697998046875, 0.07861328125, 0.020050048828125, -0.0224151611328125, 0.040191650390625, -0.03985595703125, -0.03759765625, -0.034149169921875, 0.08551025390625, -0.00931549072265625, 0.02496337890625, 0.08685302734375, -0.00911712646484375, -0.02740478515625, 0.0298614501953125, 0.0218353271484375, -0.027801513671875, -0.00518798828125, 0.007068634033203125, -0.03985595703125, 0.0017805099487304688, -0.003986358642578125, 0.01422882080078125, 0.00827789306640625, -0.003231048583984375, -0.069580078125, 0.08721923828125, 0.0216827392578125, 0.03326416015625, 0.01064300537109375, 0.0223846435546875, -0.0386962890625, -0.0123138427734375, -0.02716064453125, 0.0433349609375, -0.00830841064453125, 0.01384735107421875, -0.0034732818603515625, 0.01436614990234375, -0.0036773681640625, 0.006175994873046875, 0.06195068359375, 0.0208282470703125, -0.0255584716796875, -0.0015573501586914062, 0.045135498046875, 0.0131378173828125, -0.0106201171875, 0.0482177734375, 0.06854248046875, 0.026885986328125, 0.07586669921875, -0.00742340087890625, 0.05645751953125, -0.045318603515625, 0.061859130859375, 0.062408447265625, -0.006099700927734375, -0.021148681640625, -0.0064239501953125, 0.003932952880859375, 0.0119171142578125, -0.01148223876953125, -0.01270294189453125, -0.0654296875, -0.01007843017578125, 0.031524658203125, 0.028564453125, -0.0089874267578125, -0.031646728515625, -0.0026645660400390625, 0.0394287109375, 0.0074310302734375, 0.0015239715576171875, -0.0090789794921875, 0.0079345703125, 0.0229644775390625, -0.0282135009765625, -0.030242919921875, 0.0088653564453125, 0.0015249252319335938, 0.017974853515625, 0.01922607421875, 0.027618408203125, -0.00698089599609375, 0.065185546875, 0.0223236083984375, 0.0070648193359375, -0.04931640625, -0.07391357421875, 0.0020351409912109375, -0.01322174072265625, -0.0114288330078125, 0.01508331298828125, -0.0374755859375, -0.0380859375, 0.032989501953125, -0.0302276611328125, -0.005889892578125, 0.048492431640625, 0.0240020751953125, -0.0038242340087890625, -0.07012939453125, -0.01995849609375, -0.005077362060546875, -0.037506103515625, 0.03363037109375, -0.0007605552673339844, 0.0189666748046875, -0.017974853515625, 0.034759521484375, -0.0007200241088867188, 0.0003833770751953125, 0.01049041748046875, 0.04791259765625, -0.034942626953125, -0.0012111663818359375, -0.0245819091796875, -0.083740234375, -0.001888275146484375, 0.0301513671875, 0.046966552734375, 0.0033969879150390625, 0.01898193359375, -0.002262115478515625, -0.0009517669677734375, 0.01367950439453125, 0.022674560546875, -0.0025234222412109375, 0.060150146484375, -0.04107666015625, 0.032928466796875, -0.01329803466796875, -0.01264190673828125, -0.038299560546875, -0.0010042190551757812, 0.0423583984375, -0.02899169921875, 0.0770263671875, -0.00930023193359375, 0.003177642822265625, -0.0028438568115234375, -0.033782958984375, 0.03045654296875, -0.01342010498046875, -0.0285491943359375, 0.0024261474609375, 0.001979827880859375, -0.004138946533203125, -0.0229644775390625, 0.032623291015625, 0.00138092041015625, 0.029571533203125, 0.036041259765625, 0.006023406982421875, -0.003192901611328125, -0.0201873779296875, 0.0267333984375, -0.013153076171875, 0.01236724853515625, 0.022430419921875, -0.037506103515625, -0.03594970703125, -0.057342529296875, 0.05841064453125, 0.0721435546875, 0.0445556640625, -0.01824951171875, 0.07000732421875, 0.0017099380493164062, 0.0011262893676757812, -0.03216552734375, -0.0011501312255859375, 0.0177764892578125, -0.036224365234375, -0.024627685546875, 0.0051116943359375, -0.047637939453125, -0.0014123916625976562, 0.050933837890625, 0.0006923675537109375, -0.0287322998046875, 0.0238494873046875, 0.03179931640625, 0.022186279296875, 0.0516357421875, -0.00156402587890625, -0.04937744140625, -0.047210693359375, 0.0022869110107421875, 0.03387451171875, 0.08477783203125, -0.0096588134765625, -0.011810302734375, 0.0217742919921875, -0.01174163818359375, 0.01256561279296875, 0.0265045166015625, 0.0169219970703125, 0.02783203125, -0.047119140625, -0.07073974609375, 0.00550079345703125, -0.00460052490234375, -0.01708984375, 0.00963592529296875, 0.091064453125, -0.015960693359375, 0.0007305145263671875, -0.0269012451171875, -0.023468017578125, 0.0065765380859375, -0.007266998291015625, 0.009857177734375, -0.0132293701171875, 0.0110931396484375, -0.0264739990234375, -0.10943603515625, -0.0200958251953125, -0.055206298828125, 0.01041412353515625, 0.041290283203125, -0.019927978515625, -0.00925445556640625, 0.002834320068359375, 0.008453369140625, 0.005950927734375, 0.0271759033203125, -0.086181640625, 0.044708251953125, -0.007232666015625, 0.01806640625, -0.0251617431640625, -0.02862548828125, 0.0089569091796875, 0.01493072509765625, -0.01184844970703125, -0.00966644287109375, -0.031341552734375, 0.021392822265625, -0.0184783935546875, 0.054534912109375, 0.0462646484375, -0.03448486328125, 0.0230560302734375, 0.06512451171875, 0.04669189453125, 0.09698486328125, -0.046478271484375, -0.0231170654296875, -0.0157623291015625, -0.00965118408203125, -0.01345062255859375, -0.01078033447265625, 0.03118896484375, -0.054351806640625, -0.050079345703125, 0.0056610107421875, -0.0167083740234375, -0.0095367431640625, -0.0278778076171875, -0.019439697265625, 0.046905517578125, 0.0108795166015625, -0.01275634765625, -0.0421142578125, 0.01788330078125, 0.016082763671875, 0.00865936279296875, -0.00937652587890625, 0.0008287429809570312, -0.03753662109375, 0.0018558502197265625, 0.012847900390625, 0.0231781005859375, -0.01103973388671875, 0.009613037109375, -0.047393798828125, 0.033721923828125, 0.029022216796875, 0.0050811767578125, 0.00258636474609375, -0.0167388916015625, 0.0258636474609375, 0.041839599609375, -0.0183258056640625, -0.007366180419921875, 0.01323699951171875, -0.028167724609375, -0.01690673828125, -0.022674560546875, 0.0037136077880859375, 0.0262908935546875, 0.0692138671875, 0.050323486328125, 0.0205535888671875, -0.0665283203125, -0.0160064697265625, -0.023529052734375, -0.057891845703125, 0.0018148422241210938, 0.0313720703125, -0.061981201171875, 0.021697998046875, 0.0060577392578125, 0.0194854736328125, -0.0428466796875, 0.0190582275390625, 0.0029468536376953125, -0.038848876953125, 0.0162811279296875, -0.0308685302734375, 0.0283203125, -0.01049041748046875, 0.0645751953125, -0.029937744140625, 0.038787841796875, -0.007045745849609375, 0.021728515625, 0.058319091796875, 0.0098724365234375, 0.007190704345703125, 0.03265380859375, -0.0286712646484375, 0.0185089111328125, 0.0134124755859375, 0.0236358642578125, -0.0213165283203125, -0.0222015380859375, -0.0255126953125, 0.001613616943359375, -0.0216064453125, -0.01776123046875, 0.0274200439453125, 0.00669097900390625, 0.012237548828125, 0.10430908203125, 0.0283050537109375, 0.015472412109375, 0.0003390312194824219, 0.055267333984375, -0.00608062744140625, -0.04632568359375, -0.0159149169921875, -0.0357666015625, -0.005336761474609375, 0.032135009765625, -0.0108642578125, -0.0615234375, 0.06536865234375, 0.01007080078125, 0.0214080810546875, 0.025054931640625 ]
4f60b50da983396c9e095910e4d16566985c4ac2
Wordpress Stackexchange Q: Where do I put the code snippets I found here or somewhere else on the web? Many posts here or somewhere else contain code, but they do not say where to put it. Example: I have found this post: How do I turn off 301 redirecting posts (not canonical)? I'm a newbie with PHP. Where exactly should I place the code from the answer? A: The code referred to in the link is to be placed in the functions.php file of your theme, not in canonical.php. You should always avoid modifying core WP files. You don't need to overwrite or comment out any other code. Make a backup of your functions.php file before editing it, as even a simple syntax error in the functions.php can take down your whole site.
Q: Where do I put the code snippets I found here or somewhere else on the web? Many posts here or somewhere else contain code, but they do not say where to put it. Example: I have found this post: How do I turn off 301 redirecting posts (not canonical)? I'm a newbie with PHP. Where exactly should I place the code from the answer? A: The code referred to in the link is to be placed in the functions.php file of your theme, not in canonical.php. You should always avoid modifying core WP files. You don't need to overwrite or comment out any other code. Make a backup of your functions.php file before editing it, as even a simple syntax error in the functions.php can take down your whole site. A: Whenever you find a piece of code without clear installation instructions it is probably a plugin. The example you gave is a good one, because that is the most common case: add_action('template_redirect', 'remove_404_redirect', 1); function remove_404_redirect() { // do something } To use such a snippet, put it into a plugin: * *Create a new file, name it for example remove_404_redirect.php. *Write simple plugin headers into the file at the very beginning. Use the URL where you found the code as Plugin URL and the code author as Plugin Author: <?php /** * Plugin Name: Remove 404 redirect * Description: Disable redirects to similar posts. * Plugin URI: https://wordpress.stackexchange.com/questions/44740/how-do-i-turn-off-301-redirecting-posts-not-canonical * Author: William * Author URI: https://wordpress.stackexchange.com/users/9942/william */ *Put the code you want to use below the plugin headers. *Install the new plugin. That’s All Folks. You could add the code to your theme’s functions.php. But that is not a good idea: * *Usually, the code is not intended to change the visual representation of your site’s data. But that is the only purpose of a theme. Do not mix responsibilities. *Code in the functions.php cannot be turned off separately. If the code breaks one day you have to edit the functions.php again, or you have to switch themes. If you want to use another theme, you have to copy & paste all that code again. *If you put more and more snippets into the functions.php you get a unmaintainable mess over time. Related: Where to put my code: plugin or functions.php? A: If you are using Jupiter WordPress Theme, you can do it by adding the code snippets to your child theme functions.php and start overriding the hooks, filters, and shortcodes as described here: https://themes.artbees.net/docs/overriding-shortcodes/ A: I'm the developer of plugin which allows you to add code snippets to a WordPress site through an admin interface. It adds a graphical interface, similar to the Plugins menu, for managing snippets. Snippets can be activated or deactivated, assigned a name and description, and categorised using tags. They can also be backed up and transferred between sites using the import/export feature. More screenshots You can learn more about the Code Snippets plugin on WordPress.org and see its code on GitHub.
wordpress
{ "language": "en", "length": 499, "provenance": "stackexchange_00019.jsonl.gz:425668", "question_score": "36", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72160" }
[ 0.049835205078125, 0.006763458251953125, -0.00787353515625, 0.0264739990234375, 0.0170135498046875, -0.04046630859375, 0.07415771484375, -0.046478271484375, 0.019195556640625, 0.015167236328125, -0.02740478515625, -0.03228759765625, -0.005626678466796875, -0.01508331298828125, -0.0273895263671875, -0.0171661376953125, 0.0650634765625, -0.017913818359375, 0.03485107421875, 0.00525665283203125, -0.0004558563232421875, 0.0458984375, 0.03070068359375, 0.08441162109375, 0.0179901123046875, -0.10150146484375, 0.06982421875, -0.046234130859375, 0.0193328857421875, -0.028228759765625, 0.017425537109375, 0.04345703125, 0.00934600830078125, 0.043701171875, -0.038116455078125, -0.00445556640625, 0.01544189453125, 0.00878143310546875, 0.0029315948486328125, 0.0134735107421875, 0.019195556640625, -0.00970458984375, 0.022735595703125, 0.016845703125, 0.01873779296875, -0.061309814453125, 0.039886474609375, -0.04852294921875, -0.01222991943359375, -0.0118865966796875, 0.0269927978515625, 0.01195526123046875, 0.0379638671875, 0.0023021697998046875, -0.0150299072265625, 0.00272369384765625, 0.0155181884765625, -0.01357269287109375, 0.0311126708984375, -0.00771331787109375, -0.0309600830078125, -0.002872467041015625, 0.0118255615234375, -0.0290985107421875, 0.001373291015625, -0.0222015380859375, -0.0114898681640625, 0.01528167724609375, -0.0223541259765625, 0.00960540771484375, 0.04815673828125, -0.02301025390625, 0.0291290283203125, -0.046295166015625, 0.019378662109375, -0.030975341796875, 0.0050048828125, -0.039520263671875, 0.0007052421569824219, 0.01070404052734375, 0.0303955078125, 0.00937652587890625, -0.0027904510498046875, -0.04833984375, -0.00447845458984375, -0.0673828125, 0.0016813278198242188, 0.007717132568359375, -0.0287017822265625, -0.0176239013671875, -0.03564453125, -0.0189056396484375, -0.0343017578125, 0.01242828369140625, -0.004032135009765625, -0.0012655258178710938, 0.0426025390625, 0.07366943359375, -0.0198822021484375, -0.005359649658203125, 0.013031005859375, -0.0435791015625, 0.034698486328125, -0.03717041015625, 0.0171966552734375, 0.06268310546875, -0.0338134765625, -0.07159423828125, -0.0003230571746826172, -0.0097503662109375, 0.0005831718444824219, -0.057464599609375, 0.0025272369384765625, -0.055450439453125, -0.01306915283203125, 0.031341552734375, 0.00090789794921875, 0.01213836669921875, 0.035247802734375, -0.0133209228515625, 0.01479339599609375, 0.04779052734375, 0.039825439453125, -0.0697021484375, -0.02490234375, -0.0158233642578125, -0.0316162109375, -0.06292724609375, -0.00745391845703125, 0.0596923828125, -0.03289794921875, 0.005451202392578125, 0.0032444000244140625, -0.018341064453125, -0.02593994140625, -0.031158447265625, 0.0081329345703125, -0.0037822723388671875, -0.00975799560546875, -0.0016546249389648438, -0.01096343994140625, -0.032196044921875, 0.005374908447265625, -0.022003173828125, 0.025360107421875, 0.0048065185546875, 0.026519775390625, 0.023284912109375, -0.01515960693359375, -0.041412353515625, 0.0288238525390625, 0.029327392578125, 0.025787353515625, 0.005901336669921875, -0.031463623046875, -0.0102691650390625, -0.0155792236328125, 0.002880096435546875, -0.006862640380859375, -0.0257720947265625, 0.0036525726318359375, -0.025177001953125, 0.0168914794921875, -0.009979248046875, -0.0254669189453125, 0.0205230712890625, -0.05224609375, 0.0011911392211914062, 0.0167236328125, 0.0266571044921875, -0.0152130126953125, -0.01395416259765625, -0.0072784423828125, 0.01593017578125, -0.002696990966796875, 0.02447509765625, 0.0055084228515625, -0.010009765625, 0.0162353515625, 0.0823974609375, 0.03436279296875, -0.020904541015625, 0.0155487060546875, -0.003948211669921875, -0.068115234375, 0.03961181640625, 0.022308349609375, 0.06903076171875, -0.01364898681640625, 0.007068634033203125, 0.07574462890625, 0.039459228515625, -0.02569580078125, 0.0121917724609375, -0.038818359375, -0.004795074462890625, 0.021270751953125, 0.0296783447265625, -0.0298309326171875, 0.004390716552734375, -0.049957275390625, 0.01983642578125, -0.0239105224609375, 0.029754638671875, -0.0083465576171875, 0.01303863525390625, -0.007762908935546875, 0.032135009765625, 0.05718994140625, 0.0145111083984375, -0.013275146484375, -0.01406097412109375, 0.0120697021484375, -0.033599853515625, -0.041168212890625, 0.02630615234375, -0.03704833984375, -0.0010509490966796875, 0.0174102783203125, -0.00760650634765625, 0.034423828125, 0.01108551025390625, 0.02001953125, -0.0245208740234375, -0.00019359588623046875, -0.0002218484878540039, -0.0391845703125, -0.01155853271484375, -0.038787841796875, 0.005764007568359375, -0.027801513671875, 0.046173095703125, 0.06475830078125, 0.0231781005859375, -0.036956787109375, 0.00927734375, -0.018096923828125, -0.00821685791015625, -0.038299560546875, 0.0338134765625, 0.051513671875, 0.0290069580078125, 0.017333984375, 0.013336181640625, 0.019744873046875, -0.07171630859375, 0.006549835205078125, -0.0152435302734375, 0.0543212890625, 0.049896240234375, 0.003986358642578125, -0.035400390625, 0.0192108154296875, -0.05419921875, 0.040802001953125, 0.02264404296875, -0.018157958984375, -0.024078369140625, 0.0122528076171875, 0.01013946533203125, 0.004634857177734375, -0.069091796875, -0.048004150390625, -0.0299530029296875, 0.05133056640625, -0.04107666015625, 0.0035953521728515625, -0.012969970703125, -0.047821044921875, -0.00728607177734375, 0.038055419921875, 0.01082611083984375, -0.005817413330078125, -0.03021240234375, 0.01358795166015625, -0.037750244140625, -0.0156097412109375, 0.01270294189453125, 0.00023174285888671875, -0.0257415771484375, -0.037353515625, 0.031341552734375, -0.0167083740234375, -0.02178955078125, -0.006694793701171875, 0.002872467041015625, -0.006465911865234375, -0.046600341796875, 0.0091705322265625, -0.0096893310546875, 0.0241546630859375, 0.03094482421875, -0.00354766845703125, 0.0264739990234375, -0.03692626953125, -0.0093841552734375, 0.00847625732421875, -0.0302276611328125, 0.016815185546875, -0.0099945068359375, 0.014495849609375, 0.05926513671875, 0.034576416015625, -0.027557373046875, 0.0107574462890625, -0.01239776611328125, 0.032958984375, -0.0203094482421875, -0.0191192626953125, 0.007274627685546875, -0.04388427734375, 0.0036067962646484375, 0.02484130859375, 0.01318359375, -0.017364501953125, -0.0361328125, -0.0274505615234375, 0.007049560546875, -0.12225341796875, -0.1025390625, -0.017608642578125, -0.0084381103515625, 0.01861572265625, 0.0117645263671875, 0.002811431884765625, -0.0251922607421875, 0.019500732421875, 0.01983642578125, 0.014892578125, -0.0231170654296875, -0.0281524658203125, -0.039306640625, -0.06427001953125, -0.0201416015625, 0.01220703125, 0.01177978515625, -0.00682830810546875, 0.041351318359375, -0.0199737548828125, -0.0526123046875, -0.040374755859375, 0.015869140625, 0.0006351470947265625, -0.02008056640625, -0.023406982421875, -0.0224456787109375, 0.024871826171875, -0.0005412101745605469, 0.0240936279296875, -0.0030040740966796875, 0.0094451904296875, -0.02398681640625, 0.007537841796875, -0.0093231201171875, 0.006549835205078125, 0.04058837890625, -0.017974853515625, -0.0070953369140625, 0.0243988037109375, -0.0243682861328125, -0.052490234375, 0.032073974609375, -0.039093017578125, -0.00131988525390625, 0.007904052734375, -0.0121917724609375, 0.022125244140625, 0.00787353515625, 0.05743408203125, 0.040252685546875, 0.0065155029296875, -0.013916015625, 0.079345703125, 0.01544952392578125, 0.06781005859375, -0.058197021484375, -0.007450103759765625, -0.0306549072265625, 0.0048370361328125, -0.0186920166015625, 0.00019299983978271484, -0.01120758056640625, 0.031463623046875, -0.03045654296875, -0.057891845703125, 0.0345458984375, -0.008697509765625, 0.03497314453125, -0.039825439453125, -0.0253753662109375, -0.01149749755859375, 0.082275390625, -0.060546875, -0.001277923583984375, -0.0021648406982421875, -0.01534271240234375, -0.02325439453125, -0.001190185546875, -0.069580078125, -0.0095672607421875, -0.055328369140625, 0.003864288330078125, 0.01528167724609375, -0.0175628662109375, -0.01332855224609375, 0.0313720703125, -0.03192138671875, -0.0169677734375, 0.0080108642578125, -0.03997802734375, 0.017791748046875, -0.00821685791015625, -0.011871337890625, -0.01983642578125, -0.0021762847900390625, -0.044342041015625, -0.10614013671875, -0.0184783935546875, -0.0419921875, 0.0833740234375, 0.0282745361328125, -0.04754638671875, -0.0139007568359375, 0.051483154296875, -0.0091094970703125, -0.0015211105346679688, 0.01244354248046875, 0.027374267578125, -0.0279541015625, -0.0111236572265625, -0.007625579833984375, -0.0313720703125, -0.00835418701171875, 0.006343841552734375, 0.0006341934204101562, 0.057403564453125, -0.0057220458984375, 0.0001976490020751953, 0.045989990234375, -0.02777099609375, -0.0277862548828125, -0.00766754150390625, 0.00412750244140625, 0.047454833984375, -0.02227783203125, 0.00894927978515625, -0.0187225341796875, -0.047882080078125, 0.038116455078125, 0.0078582763671875, -0.0271759033203125, -0.003448486328125, 0.046722412109375, 0.0211639404296875, -0.0247802734375, -0.0265045166015625, 0.029266357421875, 0.022430419921875, -0.0175018310546875, 0.003353118896484375, -0.031951904296875, -0.0125732421875, 0.02825927734375, -0.028106689453125, 0.0266265869140625, -0.06488037109375, 0.05517578125, 0.00042128562927246094, 0.0160369873046875, -0.00171661376953125, -0.018768310546875, 0.040863037109375, -0.00016236305236816406, 0.0088958740234375, -0.00730133056640625, 0.050048828125, 0.01959228515625, -0.0196380615234375, 0.0181121826171875, 0.00638580322265625, -0.0273895263671875, -0.00677490234375, -0.00930023193359375, 0.047882080078125, 0.0426025390625, -0.0002257823944091797, 0.03448486328125, 0.030426025390625, 0.048675537109375, 0.0214385986328125, 0.021636962890625, -0.0242462158203125, 0.06689453125, -0.0002161264419555664, 0.01324462890625, 0.00524139404296875, -0.00557708740234375, 0.0265350341796875, 0.00567626953125, -0.03656005859375, -0.0134735107421875, 0.01413726806640625, 0.03338623046875, 0.0296630859375, 0.02978515625, 0.060791015625, 0.0204315185546875, 0.004367828369140625, 0.005519866943359375, -0.0018558502197265625, -0.004001617431640625, -0.0303192138671875, -0.00005036592483520508, 0.0003383159637451172, 0.0030384063720703125, 0.0189056396484375, 0.051483154296875, 0.00518035888671875, 0.0278167724609375, -0.0207672119140625, 0.0287017822265625, 0.028778076171875, 0.00043702125549316406, 0.017120361328125, 0.0127410888671875, 0.024658203125, -0.03662109375, 0.0335693359375, -0.00664520263671875, -0.0154266357421875, -0.0168914794921875, 0.0234527587890625, 0.00026154518127441406, 0.0307159423828125, 0.01299285888671875, -0.01544952392578125, -0.0062713623046875, 0.0372314453125, 0.0021038055419921875, -0.058990478515625, -0.0179443359375, -0.01084136962890625, 0.0161590576171875, -0.029632568359375, -0.0222320556640625, 0.0239715576171875, -0.0609130859375, -0.00988006591796875, 0.03076171875, -0.037689208984375, -0.0157623291015625, -0.01995849609375, -0.00439453125, 0.0007700920104980469, -0.007320404052734375, -0.0210418701171875, -0.0129241943359375, -0.01557159423828125, -0.01450347900390625, 0.048736572265625, -0.036895751953125, -0.01087188720703125, 0.00888824462890625, -0.0011205673217773438, 0.05596923828125, 0.01387786865234375, 0.0645751953125, 0.01824951171875, -0.07354736328125, 0.000036597251892089844, -0.03936767578125, -0.00007623434066772461, 0.00344085693359375, -0.029388427734375, -0.0205535888671875, -0.0267791748046875, -0.006374359130859375, 0.0101165771484375, -0.031005859375, -0.0304718017578125, -0.02374267578125, 0.034912109375, 0.0261077880859375, 0.03826904296875, -0.01557159423828125, 0.052947998046875, -0.005039215087890625, 0.0164947509765625, 0.01383209228515625, 0.051025390625, 0.00923919677734375, -0.021514892578125, 0.0209503173828125, -0.05755615234375, -0.0158843994140625, -0.037322998046875, 0.0130157470703125, 0.034027099609375, 0.0391845703125, 0.0031890869140625, 0.005908966064453125, 0.0024166107177734375, 0.009307861328125, -0.00689697265625, -0.0217132568359375, -0.0008916854858398438, 0.01352691650390625, -0.004955291748046875, -0.00312042236328125, 0.00920867919921875, -0.01163482666015625, -0.0330810546875, 0.025146484375, 0.0018281936645507812, 0.0234222412109375, -0.007198333740234375, -0.047088623046875, 0.026824951171875, 0.07073974609375, 0.0189361572265625, 0.06103515625, 0.00391387939453125, 0.0186920166015625, 0.04180908203125, 0.0128326416015625, -0.032135009765625, -0.016937255859375, 0.041961669921875, 0.0008683204650878906, -0.032958984375, 0.0189666748046875, -0.038482666015625, -0.0220947265625, 0.09283447265625, 0.059600830078125, -0.07513427734375, -0.01383209228515625, 0.006603240966796875, -0.0183868408203125, 0.0002378225326538086, 0.0268707275390625, -0.027984619140625, -0.0287017822265625, 0.01421356201171875, -0.041229248046875, -0.00811004638671875, 0.005229949951171875, 0.0087738037109375, -0.02911376953125, -0.0189208984375, 0.0084686279296875, 0.0177001953125, -0.047149658203125, 0.036773681640625, 0.025054931640625, 0.0034198760986328125, -0.020263671875, 0.0236053466796875, 0.0284423828125, -0.01776123046875, -0.0162811279296875, 0.0496826171875, 0.0033416748046875, 0.0046844482421875, 0.01300811767578125, -0.0638427734375, 0.0472412109375, 0.04608154296875, -0.0390625, 0.045989990234375, 0.0095672607421875, 0.0133514404296875, -0.0018014907836914062, -0.03131103515625, 0.019622802734375, -0.003086090087890625, -0.0199737548828125, 0.0222320556640625, -0.0205535888671875, -0.04571533203125, -0.0124359130859375, -0.0292510986328125, 0.0858154296875, -0.03692626953125, -0.01358795166015625, 0.033416748046875, -0.040435791015625, -0.02325439453125, -0.0260772705078125, 0.045196533203125, -0.0106048583984375, 0.03863525390625, -0.001041412353515625, 0.038116455078125, -0.032073974609375, -0.023712158203125, -0.033294677734375, 0.037078857421875, 0.013031005859375, -0.01038360595703125, 0.0013914108276367188, 0.03704833984375, -0.0174560546875, 0.012969970703125, -0.0301513671875, 0.04071044921875, -0.05389404296875, 0.09954833984375, -0.056549072265625, -0.0020885467529296875, 0.04656982421875, 0.031982421875, 0.0667724609375, 0.0149688720703125, -0.041748046875, -0.00795745849609375, 0.035858154296875, 0.041015625, -0.01087188720703125, 0.0333251953125, -0.0238189697265625, 0.0224456787109375, 0.01568603515625, -0.026947021484375, 0.028900146484375, -0.00514984130859375, -0.0433349609375, -0.0157012939453125, 0.007068634033203125, -0.0186309814453125, 0.0175018310546875, -0.0709228515625, -0.047821044921875, 0.031280517578125, 0.00754547119140625, 0.055145263671875, -0.01265716552734375, 0.0128936767578125, -0.00374603271484375, -0.0640869140625, -0.0162811279296875, -0.031890869140625, 0.0278778076171875, 0.006855010986328125, 0.05487060546875, 0.0184478759765625, 0.0294189453125, 0.0183563232421875, -0.00875091552734375, 0.04412841796875, 0.016845703125, -0.042388916015625, 0.04693603515625, 0.06787109375, 0.0341796875, 0.009307861328125, 0.0023059844970703125, 0.039947509765625, 0.05169677734375, -0.03485107421875, 0.0535888671875, -0.003772735595703125, 0.003711700439453125, -0.0011138916015625, -0.04656982421875, 0.034088134765625, -0.006809234619140625, -0.0543212890625, 0.0104217529296875, -0.0189208984375, -0.011566162109375, 0.038360595703125, -0.0007081031799316406, -0.0025787353515625, -0.0238800048828125, -0.01393890380859375, -0.020172119140625, -0.01088714599609375, 0.00698089599609375, 0.04754638671875, 0.01220703125, 0.0433349609375, -0.003376007080078125, -0.01468658447265625, -0.0290069580078125, 0.06109619140625, 0.0150909423828125, 0.0233306884765625, -0.0570068359375, -0.044586181640625, 0.0249176025390625, 0.030731201171875, 0.021514892578125, 0.007434844970703125, -0.002079010009765625, -0.0009427070617675781, -0.0238037109375, 0.003017425537109375, 0.06781005859375, -0.0189361572265625, 0.06005859375, -0.0236663818359375, 0.0219879150390625, 0.0003826618194580078, -0.0148468017578125, -0.034942626953125, 0.01763916015625, 0.052825927734375, -0.0215606689453125, 0.01364898681640625, -0.00013530254364013672, -0.0219573974609375, 0.0421142578125, -0.04058837890625, 0.03887939453125, -0.0012598037719726562, -0.013397216796875, 0.019073486328125, -0.0157623291015625, -0.08880615234375, 0.00699615478515625, 0.040557861328125, -0.0033931732177734375, -0.01457977294921875, 0.0279083251953125, -0.0092926025390625, 0.0203704833984375, -0.008575439453125, 0.005359649658203125, -0.0008854866027832031, 0.02191162109375, 0.007076263427734375, -0.046295166015625, -0.034332275390625, -0.00811004638671875, 0.05419921875, 0.01424407958984375, 0.022552490234375, -0.007534027099609375, 0.04461669921875, -0.03533935546875, -0.022186279296875, -0.0136871337890625, -0.0091400146484375, -0.011810302734375, 0.0128936767578125, -0.0082550048828125, -0.00850677490234375, -0.040740966796875, 0.00824737548828125, 0.0169525146484375, -0.0305938720703125, 0.020965576171875, -0.0282745361328125, 0.004581451416015625, -0.036865234375, 0.011566162109375, -0.0079193115234375, -0.038818359375, -0.0207366943359375, 0.011688232421875, 0.004611968994140625, 0.021453857421875, -0.01316070556640625, 0.00769805908203125, 0.01552581787109375, -0.02593994140625, 0.02606201171875, -0.0204925537109375, 0.04205322265625, 0.048553466796875, -0.00441741943359375, -0.0049285888671875, -0.018768310546875, -0.0244293212890625, -0.003986358642578125, -0.00830841064453125, -0.0227203369140625, 0.0142364501953125, -0.048004150390625, -0.047027587890625, 0.0167694091796875, 0.0002982616424560547, -0.02227783203125, 0.007007598876953125, -0.0032825469970703125, -0.04779052734375, 0.01546478271484375, 0.060760498046875, 0.0102081298828125, 0.01500701904296875, -0.04315185546875, -0.004878997802734375, -0.006214141845703125, -0.025115966796875, -0.0287933349609375, -0.0055694580078125, 0.05218505859375, 0.009124755859375, -0.06683349609375, -0.032440185546875, 0.0214385986328125, 0.11505126953125, -0.0169219970703125, 0.05010986328125, -0.03228759765625, -0.01309967041015625, -0.04913330078125, -0.004993438720703125, -0.050323486328125, 0.0297088623046875, -0.02191162109375, 0.034515380859375, 0.0535888671875, -0.00553131103515625, -0.0189971923828125, 0.0555419921875, -0.00475311279296875, 0.08880615234375, -0.060272216796875, -0.0132293701171875, 0.039154052734375, -0.0081634521484375, -0.03448486328125, -0.01447296142578125, 0.01093292236328125, -0.0027713775634765625, -0.00919342041015625, -0.041961669921875, 0.0204010009765625, 0.0161590576171875, -0.034637451171875, -0.06939697265625, 0.052459716796875, -0.028472900390625, -0.016998291015625, 0.011810302734375, -0.03851318359375, -0.0183868408203125, 0.04583740234375, 0.01104736328125, -0.0204315185546875, -0.038299560546875, 0.00588226318359375, 0.01849365234375, 0.03448486328125, 0.0145111083984375, -0.00244140625, 0.0120086669921875, 0.0297698974609375, 0.032867431640625, 0.01403045654296875, 0.0140228271484375, -0.01340484619140625, 0.064453125, 0.05877685546875, -0.0251312255859375, 0.02032470703125, 0.0037059783935546875, 0.003742218017578125, -0.000164031982421875, -0.00103759765625, -0.036773681640625, -0.02203369140625, 0.037139892578125, 0.03704833984375, 0.003719329833984375, -0.0097198486328125, -0.05224609375, 0.0002532005310058594, -0.022308349609375, 0.0020771026611328125, 0.0174407958984375, -0.06268310546875, 0.00920867919921875, -0.00748443603515625, -0.00943756103515625, 0.0259857177734375, 0.0016202926635742188, -0.0292205810546875, 0.0010747909545898438, -0.0122528076171875, -0.0302581787109375, -0.0279541015625, -0.041961669921875, 0.0190277099609375, 0.005619049072265625, 0.048797607421875, -0.0236053466796875, 0.030731201171875, 0.0258026123046875, 0.04595947265625, 0.03985595703125, -0.01027679443359375, -0.07177734375, -0.0108795166015625, 0.0006914138793945312, 0.06646728515625, -0.04119873046875, -0.062408447265625, -0.008758544921875, 0.033905029296875, 0.015472412109375, 0.02099609375, -0.0198211669921875, 0.0325927734375, -0.0040130615234375, 0.03271484375, -0.0291748046875, 0.0193939208984375, -0.027435302734375, 0.05059814453125, -0.0026798248291015625, 0.005496978759765625, 0.028656005859375, 0.006687164306640625, 0.0186309814453125, 0.009063720703125, 0.048797607421875, 0.0006160736083984375, -0.004512786865234375, -0.0169219970703125, 0.0254669189453125, 0.005985260009765625 ]
aa8c792d1aa724d53f45bb00b5c870d5c23c47ac
Wordpress Stackexchange Q: How to debug failed load_theme_textdomain()? I made my theme ready for translation. My text domain is my_theme and my .po and .mo (de_DE.po and de_DE.mo) files are located in a subfolder languages in my themes folder. In my functions.php I added the following code: add_action('after_setup_theme', 'my_theme_setup'); function my_theme_setup(){ load_theme_textdomain('my_theme', get_template_directory() . '/languages'); } My backend language is "German" but the translation isn’t loaded. Any ideas? A: load_theme_textdomain() returns TRUE on success and FALSE if no file was found. For debugging try the following change: function my_theme_setup(){ $path = get_template_directory() . '/languages'; $result = load_theme_textdomain('my_theme', $path ); if ( $result ) return; $locale = apply_filters( 'theme_locale', get_locale(), 'my_theme' ); die( "Could not find $path/$locale.mo." ); }
Q: How to debug failed load_theme_textdomain()? I made my theme ready for translation. My text domain is my_theme and my .po and .mo (de_DE.po and de_DE.mo) files are located in a subfolder languages in my themes folder. In my functions.php I added the following code: add_action('after_setup_theme', 'my_theme_setup'); function my_theme_setup(){ load_theme_textdomain('my_theme', get_template_directory() . '/languages'); } My backend language is "German" but the translation isn’t loaded. Any ideas? A: load_theme_textdomain() returns TRUE on success and FALSE if no file was found. For debugging try the following change: function my_theme_setup(){ $path = get_template_directory() . '/languages'; $result = load_theme_textdomain('my_theme', $path ); if ( $result ) return; $locale = apply_filters( 'theme_locale', get_locale(), 'my_theme' ); die( "Could not find $path/$locale.mo." ); }
wordpress
{ "language": "en", "length": 116, "provenance": "stackexchange_00019.jsonl.gz:425676", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72184" }
[ 0.00878143310546875, -0.025726318359375, 0.025787353515625, -0.03985595703125, -0.02984619140625, 0.016021728515625, -0.004848480224609375, 0.00010699033737182617, 0.031890869140625, 0.0482177734375, 0.01435089111328125, -0.004398345947265625, 0.035064697265625, -0.026885986328125, -0.033538818359375, 0.01190185546875, 0.0168609619140625, 0.003536224365234375, 0.01824951171875, -0.01155853271484375, -0.0167694091796875, -0.00022590160369873047, 0.01280975341796875, -0.022705078125, 0.0212860107421875, -0.046722412109375, 0.07305908203125, -0.027130126953125, -0.00655364990234375, -0.0452880859375, 0.0222015380859375, 0.0226898193359375, 0.02001953125, 0.0196990966796875, -0.024261474609375, -0.00583648681640625, 0.01114654541015625, 0.00003504753112792969, -0.00913238525390625, 0.021759033203125, 0.0245819091796875, -0.01267242431640625, 0.0289459228515625, 0.0830078125, 0.01605224609375, -0.07940673828125, 0.07049560546875, -0.06536865234375, -0.017547607421875, 0.0271148681640625, 0.0004353523254394531, -0.01088714599609375, 0.0054473876953125, 0.0157318115234375, -0.005138397216796875, -0.023345947265625, -0.06884765625, 0.0528564453125, 0.0029544830322265625, 0.06787109375, 0.006656646728515625, 0.00495147705078125, -0.013885498046875, -0.044708251953125, -0.0236968994140625, -0.001270294189453125, -0.0172271728515625, 0.009796142578125, -0.01451873779296875, -0.0182342529296875, 0.0169830322265625, -0.0123443603515625, 0.004608154296875, -0.01183319091796875, 0.00860595703125, 0.00614166259765625, -0.052032470703125, -0.0275726318359375, 0.0399169921875, 0.01502227783203125, 0.00466156005859375, -0.06805419921875, -0.026214599609375, 0.031341552734375, -0.0189208984375, 0.058074951171875, 0.0001970529556274414, -0.017059326171875, -0.0596923828125, -0.0292816162109375, -0.037811279296875, -0.015716552734375, -0.0718994140625, -0.023529052734375, 0.0028743743896484375, -0.037261962890625, 0.007297515869140625, 0.052947998046875, -0.00885009765625, 0.0033111572265625, -0.0188140869140625, -0.022064208984375, -0.006618499755859375, -0.02783203125, 0.0190277099609375, 0.01258087158203125, -0.018341064453125, -0.007495880126953125, 0.040283203125, 0.033447265625, -0.00211334228515625, 0.041961669921875, -0.01288604736328125, -0.040802001953125, -0.00970458984375, 0.037384033203125, 0.0014858245849609375, -0.00736236572265625, 0.0095062255859375, -0.033843994140625, 0.028106689453125, 0.051727294921875, -0.037078857421875, -0.0276031494140625, -0.0101776123046875, -0.03924560546875, -0.0212249755859375, 0.0130157470703125, 0.049102783203125, 0.06488037109375, -0.012786865234375, -0.0255279541015625, -0.04901123046875, -0.032196044921875, -0.0374755859375, -0.0225067138671875, -0.0207977294921875, 0.00347900390625, -0.0112762451171875, -0.005794525146484375, 0.034332275390625, -0.018707275390625, 0.00820159912109375, 0.0286712646484375, -0.09552001953125, -0.020599365234375, 0.00585174560546875, 0.0361328125, -0.0129852294921875, -0.052734375, -0.006816864013671875, -0.0390625, 0.033599853515625, 0.0173797607421875, -0.041595458984375, -0.010772705078125, 0.0159149169921875, -0.03240966796875, -0.026885986328125, -0.046356201171875, -0.0191802978515625, -0.01885986328125, -0.0181732177734375, -0.03704833984375, -0.029083251953125, 0.01219940185546875, 0.034088134765625, 0.0157623291015625, 0.0205230712890625, 0.0082550048828125, 0.04620361328125, 0.0160064697265625, -0.01052093505859375, -0.006938934326171875, 0.01203155517578125, -0.01800537109375, -0.01442718505859375, 0.0192413330078125, 0.0245361328125, 0.0086517333984375, 0.0055694580078125, -0.0159912109375, 0.06549072265625, -0.003574371337890625, -0.02044677734375, -0.0205841064453125, 0.0262451171875, 0.05078125, 0.0126800537109375, 0.039398193359375, -0.024139404296875, 0.0012674331665039062, -0.01763916015625, 0.0009965896606445312, -0.011932373046875, -0.0005431175231933594, -0.00847625732421875, 0.0223236083984375, -0.0131072998046875, 0.0021305084228515625, -0.01558685302734375, -0.034454345703125, 0.03387451171875, -0.01308441162109375, -0.038787841796875, -0.007137298583984375, -0.023406982421875, 0.0304107666015625, 0.0294036865234375, 0.00086212158203125, 0.00035190582275390625, 0.0006628036499023438, -0.01132965087890625, -0.024383544921875, -0.04241943359375, 0.055938720703125, -0.03387451171875, 0.035430908203125, 0.005523681640625, 0.0022335052490234375, 0.03436279296875, -0.0125732421875, 0.047027587890625, 0.00850677490234375, -0.010772705078125, 0.036651611328125, -0.016998291015625, 0.025787353515625, 0.044586181640625, 0.0231475830078125, 0.056488037109375, -0.00766754150390625, -0.0216064453125, -0.0131988525390625, -0.034149169921875, -0.00922393798828125, -0.01788330078125, -0.04486083984375, 0.0184326171875, 0.05682373046875, 0.0421142578125, 0.040008544921875, -0.02227783203125, -0.03558349609375, 0.04864501953125, -0.06292724609375, -0.0150146484375, -0.002849578857421875, 0.0258331298828125, 0.053192138671875, -0.0189208984375, -0.00453948974609375, 0.005401611328125, -0.086181640625, 0.0017309188842773438, 0.037322998046875, -0.00595855712890625, -0.055084228515625, 0.032745361328125, -0.004970550537109375, 0.0211334228515625, 0.006832122802734375, -0.038421630859375, 0.0204010009765625, 0.024322509765625, 0.02203369140625, -0.005504608154296875, -0.004405975341796875, -0.04962158203125, 0.04107666015625, 0.025177001953125, -0.051605224609375, -0.0129852294921875, 0.0146484375, -0.0384521484375, 0.0186309814453125, -0.0239715576171875, 0.01251220703125, -0.015594482421875, -0.00809478759765625, -0.0220947265625, 0.0330810546875, -0.02191162109375, -0.017913818359375, -0.0249481201171875, -0.046600341796875, -0.004016876220703125, -0.009063720703125, 0.0589599609375, 0.0309600830078125, 0.022369384765625, 0.050872802734375, -0.02008056640625, 0.077880859375, -0.0206756591796875, -0.007518768310546875, 0.0972900390625, -0.015960693359375, -0.001728057861328125, -0.0033092498779296875, 0.047698974609375, 0.03497314453125, 0.0066375732421875, -0.03515625, 0.0072784423828125, 0.0247955322265625, 0.005390167236328125, 0.007114410400390625, 0.0016851425170898438, -0.0204010009765625, -0.042816162109375, -0.048248291015625, 0.002162933349609375, 0.0050811767578125, -0.02191162109375, -0.044525146484375, -0.01056671142578125, -0.01146697998046875, -0.08843994140625, -0.0645751953125, -0.005306243896484375, -0.0013332366943359375, 0.01947021484375, 0.011444091796875, 0.0028438568115234375, -0.038330078125, 0.008544921875, 0.00409698486328125, 0.0386962890625, -0.05120849609375, -0.06329345703125, -0.058929443359375, -0.072021484375, -0.042510986328125, 0.00780487060546875, -0.02093505859375, -0.0027923583984375, 0.005504608154296875, -0.0051727294921875, -0.03717041015625, 0.00099945068359375, 0.064697265625, 0.02099609375, -0.00027871131896972656, -0.04010009765625, 0.01493072509765625, 0.035308837890625, -0.00577545166015625, -0.01849365234375, 0.018798828125, -0.0030155181884765625, -0.007564544677734375, 0.0124664306640625, -0.0272216796875, -0.001750946044921875, -0.0343017578125, 0.0005750656127929688, -0.0207672119140625, -0.0295257568359375, -0.06292724609375, -0.056640625, 0.00847625732421875, -0.05029296875, 0.0574951171875, 0.02569580078125, -0.0236358642578125, 0.012908935546875, 0.01751708984375, 0.00412750244140625, 0.01995849609375, 0.0232086181640625, -0.005970001220703125, 0.00807952880859375, -0.0102996826171875, -0.027618408203125, -0.01959228515625, 0.048431396484375, -0.007213592529296875, -0.03631591796875, 0.0129547119140625, 0.004558563232421875, -0.01751708984375, 0.002407073974609375, -0.01552581787109375, -0.00539398193359375, 0.045501708984375, 0.0189971923828125, 0.01428985595703125, 0.0009627342224121094, -0.03857421875, -0.00835418701171875, 0.045654296875, -0.0161590576171875, 0.0113067626953125, 0.01087188720703125, 0.0123443603515625, -0.0293121337890625, -0.02825927734375, -0.050384521484375, 0.007389068603515625, -0.0207061767578125, -0.01548004150390625, -0.025787353515625, -0.019317626953125, -0.01477813720703125, 0.00676727294921875, -0.0018672943115234375, -0.0239410400390625, 0.0230255126953125, 0.0214385986328125, 0.008148193359375, 0.01263427734375, 0.01328277587890625, -0.0113067626953125, 0.005466461181640625, -0.00783538818359375, -0.09722900390625, -0.00873565673828125, -0.048065185546875, 0.0792236328125, 0.02337646484375, -0.0197601318359375, -0.0201263427734375, 0.0384521484375, 0.0296783447265625, 0.059539794921875, 0.01222991943359375, -0.03057861328125, 0.082763671875, 0.00687408447265625, 0.03350830078125, 0.0006213188171386719, 0.0016613006591796875, 0.028839111328125, -0.041961669921875, 0.036407470703125, 0.005298614501953125, 0.019989013671875, 0.06414794921875, -0.0494384765625, 0.01169586181640625, 0.010406494140625, -0.00644683837890625, -0.01348114013671875, 0.00954437255859375, -0.03338623046875, 0.0189361572265625, 0.01349639892578125, 0.0445556640625, -0.006130218505859375, -0.0015163421630859375, -0.006320953369140625, 0.03948974609375, 0.017425537109375, -0.0198822021484375, -0.02508544921875, 0.018402099609375, 0.0426025390625, 0.00360107421875, 0.019256591796875, 0.0159454345703125, -0.044097900390625, 0.059326171875, 0.01453399658203125, -0.0023975372314453125, 0.012542724609375, 0.00449371337890625, 0.01113128662109375, -0.046112060546875, 0.0135345458984375, 0.01186370849609375, -0.01490020751953125, 0.0185089111328125, -0.0083770751953125, -0.00298309326171875, 0.006374359130859375, 0.0012960433959960938, -0.034149169921875, 0.044952392578125, 0.0021419525146484375, -0.038116455078125, 0.00902557373046875, 0.0121612548828125, 0.01424407958984375, -0.0304718017578125, 0.0306549072265625, -0.00567626953125, 0.0229949951171875, -0.00849151611328125, 0.070556640625, 0.03253173828125, 0.023712158203125, 0.03594970703125, 0.06353759765625, 0.0001157522201538086, 0.011383056640625, -0.01541900634765625, 0.07012939453125, -0.01047515869140625, -0.035247802734375, -0.0184173583984375, -0.0008783340454101562, 0.03790283203125, 0.044647216796875, 0.0004069805145263672, 0.042022705078125, -0.0134429931640625, 0.00010150671005249023, 0.0176849365234375, 0.0303497314453125, -0.054840087890625, -0.0216064453125, -0.00019669532775878906, -0.0167083740234375, -0.00540924072265625, 0.00620269775390625, 0.039276123046875, -0.04986572265625, 0.04083251953125, -0.01123809814453125, -0.04150390625, -0.01617431640625, 0.05419921875, 0.039093017578125, -0.06829833984375, 0.0109100341796875, 0.0325927734375, 0.0491943359375, -0.0209197998046875, 0.040008544921875, 0.019317626953125, 0.03936767578125, -0.040802001953125, -0.0496826171875, 0.020416259765625, -0.06219482421875, -0.00009131431579589844, 0.032989501953125, -0.022674560546875, -0.07305908203125, -0.0203399658203125, 0.0214996337890625, 0.026611328125, -0.042510986328125, 0.0126800537109375, 0.0203704833984375, -0.0165252685546875, -0.0270538330078125, 0.03765869140625, -0.04425048828125, -0.0299224853515625, -0.020751953125, -0.039703369140625, -0.0008106231689453125, 0.01861572265625, -0.053497314453125, -0.035980224609375, 0.0143890380859375, -0.0213470458984375, -0.0054779052734375, -0.0305023193359375, -0.02069091796875, -0.006603240966796875, 0.01678466796875, -0.007755279541015625, 0.032501220703125, 0.00710296630859375, -0.029541015625, -0.06011962890625, 0.0159454345703125, -0.049285888671875, -0.021636962890625, -0.030853271484375, -0.035003662109375, -0.0594482421875, -0.006317138671875, 0.007640838623046875, 0.0254974365234375, -0.01141357421875, -0.0294036865234375, -0.0036220550537109375, 0.0286712646484375, 0.0189208984375, 0.04913330078125, -0.01270294189453125, 0.06732177734375, -0.01203155517578125, 0.021636962890625, 0.01702880859375, 0.0654296875, 0.018951416015625, -0.0229034423828125, -0.007396697998046875, -0.0304107666015625, 0.00685882568359375, -0.0022525787353515625, 0.007282257080078125, 0.010009765625, 0.043701171875, -0.005924224853515625, 0.0031414031982421875, -0.0103759765625, -0.002071380615234375, -0.003864288330078125, 0.017425537109375, 0.0187530517578125, 0.023590087890625, 0.01385498046875, -0.06353759765625, 0.00028443336486816406, -0.01554107666015625, 0.0264434814453125, 0.04083251953125, -0.07037353515625, 0.0145111083984375, 0.0604248046875, -0.0271148681640625, 0.039947509765625, 0.050537109375, 0.0204620361328125, 0.0452880859375, 0.0221099853515625, 0.022308349609375, 0.005367279052734375, 0.037567138671875, -0.0280609130859375, -0.0291290283203125, 0.0067901611328125, 0.00952911376953125, 0.00653076171875, -0.0112457275390625, 0.00008505582809448242, -0.0280609130859375, 0.0787353515625, 0.040435791015625, -0.061737060546875, -0.0438232421875, -0.004932403564453125, -0.051177978515625, -0.05084228515625, -0.0244598388671875, 0.0310211181640625, 0.00855255126953125, 0.056427001953125, 0.00010395050048828125, 0.004261016845703125, 0.0179595947265625, -0.0374755859375, 0.003902435302734375, 0.007717132568359375, 0.04144287109375, 0.0308685302734375, -0.0289306640625, 0.0026149749755859375, 0.0175018310546875, 0.004940032958984375, -0.0330810546875, 0.01258087158203125, -0.0163726806640625, -0.01605224609375, -0.056793212890625, -0.005741119384765625, -0.0126953125, 0.00807952880859375, 0.00313568115234375, 0.032684326171875, 0.0308837890625, 0.0465087890625, -0.008758544921875, -0.0157623291015625, 0.03485107421875, 0.00910186767578125, 0.0701904296875, 0.005382537841796875, 0.006244659423828125, -0.0020904541015625, -0.01029205322265625, -0.01415252685546875, -0.01490020751953125, -0.00428009033203125, 0.00354766845703125, -0.0234222412109375, 0.0107421875, 0.01132965087890625, -0.0310821533203125, 0.00487518310546875, -0.013092041015625, 0.0242919921875, -0.003612518310546875, 0.03546142578125, -0.0281524658203125, -0.0014209747314453125, 0.010009765625, -0.0091705322265625, -0.03582763671875, -0.01422119140625, -0.07061767578125, 0.117919921875, -0.02056884765625, 0.049774169921875, 0.0011091232299804688, 0.05023193359375, -0.01904296875, 0.016326904296875, -0.005939483642578125, 0.02227783203125, -0.0008254051208496094, 0.00704193115234375, -0.0360107421875, -0.008697509765625, 0.01308441162109375, 0.067626953125, 0.0088348388671875, 0.0017652511596679688, -0.0040283203125, -0.00907135009765625, -0.0049896240234375, 0.00804901123046875, -0.025604248046875, 0.0160980224609375, -0.0285491943359375, -0.00579833984375, -0.059417724609375, -0.018707275390625, 0.021514892578125, -0.07611083984375, -0.06549072265625, -0.006473541259765625, -0.0025310516357421875, -0.03448486328125, 0.0222015380859375, -0.0175323486328125, -0.051483154296875, 0.01399993896484375, 0.0238800048828125, -0.013946533203125, 0.054718017578125, -0.0269927978515625, 0.032623291015625, -0.02508544921875, -0.016204833984375, -0.0001933574676513672, 0.035003662109375, 0.01265716552734375, -0.007434844970703125, -0.0081939697265625, 0.0166015625, 0.009735107421875, -0.029266357421875, -0.0290069580078125, 0.0152435302734375, -0.005405426025390625, 0.007244110107421875, 0.0225677490234375, 0.01165008544921875, 0.01004791259765625, 0.040008544921875, 0.022735595703125, 0.00665283203125, -0.0293426513671875, -0.0163421630859375, 0.0140533447265625, -0.01140594482421875, -0.02032470703125, -0.004180908203125, -0.01555633544921875, 0.011199951171875, 0.0380859375, -0.009063720703125, -0.03936767578125, -0.0031890869140625, 0.013671875, -0.0080108642578125, -0.0131988525390625, 0.053375244140625, -0.023101806640625, -0.047882080078125, 0.05181884765625, 0.0124969482421875, 0.053497314453125, -0.0279541015625, 0.07208251953125, -0.03594970703125, -0.01421356201171875, 0.003215789794921875, 0.00848388671875, -0.034698486328125, -0.0173797607421875, -0.0233612060546875, -0.0555419921875, -0.02545166015625, 0.033172607421875, 0.046905517578125, 0.0186614990234375, 0.051910400390625, 0.060272216796875, -0.003658294677734375, 0.007801055908203125, 0.0748291015625, 0.004207611083984375, -0.03106689453125, -0.01041412353515625, -0.006740570068359375, 0.020416259765625, 0.016998291015625, -0.0205230712890625, 0.047332763671875, 0.005268096923828125, -0.01605224609375, 0.025421142578125, -0.00025272369384765625, -0.0219573974609375, 0.0153350830078125, -0.018280029296875, 0.06805419921875, 0.0241546630859375, -0.04095458984375, -0.01035308837890625, -0.01273345947265625, -0.030609130859375, 0.006984710693359375, 0.042449951171875, 0.0205078125, -0.0036106109619140625, 0.032806396484375, -0.01143646240234375, 0.0071563720703125, -0.0118560791015625, 0.02947998046875, 0.00804901123046875, 0.004291534423828125, 0.019683837890625, -0.01026153564453125, -0.01971435546875, 0.0105743408203125, 0.042694091796875, -0.00449371337890625, 0.0308837890625, -0.0176239013671875, 0.00858306884765625, -0.036285400390625, 0.0111083984375, -0.0239715576171875, -0.01403045654296875, -0.0080413818359375, 0.0218048095703125, 0.02557373046875, -0.00799560546875, -0.01419830322265625, 0.032684326171875, 0.0205230712890625, -0.015228271484375, -0.0017271041870117188, 0.0256500244140625, 0.019195556640625, -0.00024247169494628906, 0.038604736328125, -0.019683837890625, -0.10064697265625, -0.049530029296875, 0.057342529296875, -0.016143798828125, 0.033233642578125, -0.045806884765625, 0.0301055908203125, -0.0235748291015625, -0.0147552490234375, 0.0369873046875, -0.043548583984375, 0.02203369140625, 0.008880615234375, -0.024078369140625, -0.00975799560546875, -0.002597808837890625, -0.01971435546875, 0.0430908203125, -0.0223541259765625, 0.068359375, -0.01203155517578125, 0.042083740234375, 0.0192108154296875, 0.003650665283203125, 0.042572021484375, -0.016937255859375, 0.0244140625, -0.0135498046875, 0.026092529296875, 0.045440673828125, 0.008453369140625, -0.01125335693359375, -0.01416778564453125, 0.0042724609375, 0.00875091552734375, 0.0243988037109375, 0.0172271728515625, 0.0255126953125, -0.004093170166015625, 0.035919189453125, -0.0020732879638671875, -0.023193359375, 0.0037670135498046875, -0.034759521484375, 0.01617431640625, -0.00887298583984375, -0.0196533203125, 0.01006317138671875, 0.03533935546875, -0.021453857421875, -0.0283050537109375, -0.01221466064453125, -0.0079803466796875, -0.01812744140625, -0.005603790283203125, 0.01953125, 0.0248565673828125, -0.00960540771484375, 0.01861572265625, -0.03997802734375, 0.055328369140625, -0.07928466796875, -0.0214691162109375, 0.018402099609375, 0.0033893585205078125, -0.048583984375, -0.11199951171875, 0.002307891845703125, -0.0953369140625, 0.04010009765625, -0.04681396484375, 0.015655517578125, 0.00786590576171875, -0.047760009765625, -0.0816650390625, 0.038665771484375, -0.0216522216796875, -0.038116455078125, -0.05865478515625, -0.0223541259765625, -0.00984954833984375, 0.0601806640625, -0.00406646728515625, -0.0135498046875, -0.049560546875, 0.04254150390625, 0.00853729248046875, 0.041351318359375, 0.025054931640625, 0.002490997314453125, -0.028106689453125, -0.01439666748046875, -0.02618408203125, -0.02081298828125, 0.01360321044921875, -0.0203399658203125, 0.01396942138671875, 0.0235443115234375, -0.03887939453125, -0.05828857421875, -0.009033203125, -0.0012445449829101562, -0.0191192626953125, -0.0662841796875, 0.00995635986328125, -0.025146484375, 0.072509765625, -0.01261138916015625, 0.00841522216796875, 0.00384521484375, -0.033905029296875, -0.011505126953125, -0.0313720703125, -0.012969970703125, 0.03717041015625, -0.09686279296875, -0.0167694091796875, 0.0215301513671875, 0.023529052734375, 0.01641845703125, 0.01326751708984375, 0.0147705078125, -0.029754638671875, 0.044158935546875, -0.0129547119140625, -0.005695343017578125, -0.07373046875, 0.08929443359375, -0.0313720703125, 0.00606536865234375, 0.01088714599609375, 0.05352783203125, 0.032379150390625, 0.0316162109375, 0.0219573974609375, 0.0044708251953125, -0.036865234375, 0.01544952392578125, 0.015533447265625, 0.037689208984375, -0.013153076171875, -0.0275726318359375, -0.0028057098388671875, -0.023040771484375, -0.013824462890625, -0.0225677490234375, 0.039276123046875, -0.01102447509765625, -0.027862548828125, 0.04583740234375, -0.01204681396484375, 0.07086181640625, -0.0198822021484375, 0.02691650390625, -0.035614013671875, 0.005626678466796875, -0.02398681640625, 0.00690460205078125, 0.0180206298828125, -0.01226043701171875, 0.0118865966796875, -0.0262451171875, 0.033416748046875, -0.0139007568359375, -0.0033206939697265625, 0.017425537109375 ]
267ca51fabd8c8cfffb38e708c0173d0d2ecd483
Wordpress Stackexchange Q: Renaming wp-content folder dynamically Is it possible to rename the wp-content folder dynamically? I am building a custom framework to use on themes and it would be nice to set it up where it does everything on its own. I am using this following code right now in wp-config define ('WP_CONTENT_DIR','/name_of_new_folder'); define('WP_CONTENT_URL','http://example.com/name_of_new_folder'); Can I pull the site domain through dynamically with PHP? A: Don't do what seems to be possible... You can use the possibility to change the WordPress constants WP_CONTENT_DIR and WP_CONTENT_URL in your wp-config.php. BUT it really, really, really, really is not recommended. Why? not recommended?? It's pretty easy: Just do a cross file search (with your IDE or for e.g. Notepad++) for wp-content and you'll find it hardcoded it many places. Some of the stuff will still work, but some wont. Yeah, I've already tried that.
Q: Renaming wp-content folder dynamically Is it possible to rename the wp-content folder dynamically? I am building a custom framework to use on themes and it would be nice to set it up where it does everything on its own. I am using this following code right now in wp-config define ('WP_CONTENT_DIR','/name_of_new_folder'); define('WP_CONTENT_URL','http://example.com/name_of_new_folder'); Can I pull the site domain through dynamically with PHP? A: Don't do what seems to be possible... You can use the possibility to change the WordPress constants WP_CONTENT_DIR and WP_CONTENT_URL in your wp-config.php. BUT it really, really, really, really is not recommended. Why? not recommended?? It's pretty easy: Just do a cross file search (with your IDE or for e.g. Notepad++) for wp-content and you'll find it hardcoded it many places. Some of the stuff will still work, but some wont. Yeah, I've already tried that. A: Figured it out! define('WP_CONTENT_DIR', ABSPATH . 'name_of_new_folder'); define('WP_CONTENT_URL', 'http://'.$_SERVER['HTTP_HOST'].'/name_of_new_folder');
wordpress
{ "language": "en", "length": 150, "provenance": "stackexchange_00019.jsonl.gz:425694", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72249" }
[ 0.01247406005859375, -0.032806396484375, -0.024810791015625, 0.0010995864868164062, -0.0207977294921875, -0.039794921875, 0.032470703125, -0.0194091796875, 0.00254058837890625, 0.0293121337890625, -0.005077362060546875, -0.022705078125, 0.0014657974243164062, -0.02117919921875, -0.0155487060546875, -0.031036376953125, 0.018402099609375, 0.00872802734375, 0.03680419921875, -0.01806640625, 0.01204681396484375, -0.0129547119140625, 0.02862548828125, 0.041595458984375, 0.00836944580078125, -0.0010395050048828125, 0.061309814453125, -0.0115203857421875, -0.01392364501953125, -0.0303955078125, 0.018798828125, 0.02178955078125, -0.0159149169921875, 0.0572509765625, 0.01348114013671875, 0.032257080078125, 0.032745361328125, 0.023895263671875, 0.0345458984375, 0.023773193359375, 0.04205322265625, -0.0345458984375, 0.041290283203125, -0.0069122314453125, 0.00835418701171875, -0.0224151611328125, 0.030792236328125, -0.049102783203125, 0.035400390625, -0.02001953125, -0.01314544677734375, 0.0157623291015625, -0.0049896240234375, -0.04449462890625, -0.0204010009765625, -0.0157470703125, -0.024505615234375, 0.006954193115234375, 0.01641845703125, -0.0266876220703125, -0.0078887939453125, 0.01313018798828125, 0.0248870849609375, 0.035919189453125, -0.0020465850830078125, -0.003330230712890625, 0.00371551513671875, 0.0215301513671875, -0.0654296875, -0.0177764892578125, 0.038299560546875, -0.0274810791015625, -0.0049896240234375, -0.044708251953125, 0.01922607421875, 0.03564453125, -0.031951904296875, -0.01739501953125, 0.025970458984375, 0.0008602142333984375, 0.0209808349609375, -0.01169586181640625, 0.017669677734375, -0.055145263671875, 0.0545654296875, -0.0024127960205078125, 0.00376129150390625, -0.017578125, -0.022216796875, -0.01486968994140625, -0.0245819091796875, 0.027740478515625, -0.0013895034790039062, -0.018585205078125, -0.03741455078125, -0.00045228004455566406, 0.0125732421875, 0.04876708984375, -0.0262908935546875, 0.00795745849609375, -0.0005822181701660156, -0.0281524658203125, 0.00786590576171875, -0.033172607421875, -0.01522064208984375, 0.01312255859375, 0.0022182464599609375, 0.01004791259765625, 0.03436279296875, 0.040435791015625, 0.000056624412536621094, 0.0230712890625, 0.01175689697265625, -0.02764892578125, -0.035400390625, 0.0330810546875, -0.01200103759765625, 0.0116424560546875, 0.017303466796875, 0.01446533203125, -0.0149383544921875, 0.00032067298889160156, -0.0177459716796875, 0.0010471343994140625, 0.030487060546875, 0.0162353515625, -0.01148223876953125, 0.00980377197265625, 0.01082611083984375, 0.0035457611083984375, -0.042144775390625, -0.007152557373046875, 0.0860595703125, 0.07318115234375, 0.053955078125, -0.00988006591796875, 0.040985107421875, 0.0283660888671875, 0.0141448974609375, 0.0084075927734375, 0.0274810791015625, -0.013031005859375, -0.0057525634765625, 0.0011425018310546875, 0.036468505859375, 0.0303802490234375, 0.03155517578125, 0.0155792236328125, 0.00646209716796875, -0.05389404296875, 0.0272216796875, 0.0156707763671875, 0.04803466796875, -0.01015472412109375, 0.00824737548828125, -0.04803466796875, 0.05377197265625, -0.06451416015625, 0.0017299652099609375, -0.058074951171875, 0.0238800048828125, -0.01242828369140625, 0.0009975433349609375, 0.02191162109375, -0.007564544677734375, 0.0171051025390625, -0.015716552734375, -0.0128936767578125, 0.0106964111328125, 0.013824462890625, -0.00884246826171875, -0.021453857421875, -0.0279388427734375, -0.004566192626953125, 0.001842498779296875, 0.03387451171875, -0.0386962890625, 0.00897216796875, 0.028167724609375, 0.07305908203125, 0.023590087890625, -0.0215606689453125, 0.03607177734375, 0.0238189697265625, -0.03448486328125, -0.032501220703125, 0.01453399658203125, 0.007480621337890625, 0.019775390625, 0.01435089111328125, 0.05853271484375, -0.0152740478515625, -0.0187225341796875, -0.0233917236328125, 0.00514984130859375, 0.0095672607421875, -0.02728271484375, -0.0005068778991699219, -0.0117950439453125, 0.005794525146484375, -0.03033447265625, -0.016082763671875, -0.00785064697265625, 0.03460693359375, -0.005855560302734375, -0.00949859619140625, -0.006114959716796875, -0.0002646446228027344, 0.032562255859375, 0.020965576171875, -0.0156402587890625, 0.002197265625, 0.01457977294921875, -0.0692138671875, -0.059814453125, 0.004604339599609375, -0.0175933837890625, -0.006134033203125, 0.0010766983032226562, 0.05682373046875, -0.00659942626953125, 0.0106353759765625, -0.0261383056640625, -0.0260162353515625, 0.037933349609375, -0.024688720703125, -0.0218353271484375, -0.032012939453125, 0.0238800048828125, 0.006317138671875, -0.04534912109375, 0.029449462890625, 0.0180816650390625, 0.0037441253662109375, -0.01010894775390625, -0.0123138427734375, -0.00453948974609375, -0.09295654296875, 0.01309967041015625, 0.06817626953125, 0.048583984375, 0.052520751953125, 0.004619598388671875, -0.0170745849609375, 0.105224609375, -0.01311492919921875, 0.007648468017578125, -0.0270233154296875, 0.00875091552734375, 0.0506591796875, 0.004009246826171875, 0.006191253662109375, -0.0030803680419921875, -0.055511474609375, -0.012969970703125, 0.0458984375, 0.005962371826171875, -0.00891876220703125, 0.0055999755859375, 0.0237884521484375, 0.01251220703125, 0.0155792236328125, -0.024139404296875, 0.0069732666015625, 0.00711822509765625, 0.028076171875, 0.018218994140625, 0.01812744140625, -0.01227569580078125, 0.0191650390625, 0.0124969482421875, -0.021942138671875, 0.00301361083984375, 0.0479736328125, 0.0374755859375, -0.0220794677734375, -0.0178985595703125, -0.020904541015625, 0.01220703125, 0.0235443115234375, -0.0145111083984375, 0.027313232421875, -0.036346435546875, -0.0088958740234375, -0.018890380859375, -0.03192138671875, -0.001735687255859375, 0.0292205810546875, -0.03240966796875, -0.01413726806640625, -0.006313323974609375, 0.05908203125, -0.023529052734375, 0.03668212890625, -0.0106658935546875, 0.0102996826171875, 0.05816650390625, 0.001117706298828125, 0.0167999267578125, 0.0157012939453125, 0.045318603515625, 0.05059814453125, 0.0197601318359375, -0.01141357421875, 0.005626678466796875, 0.0155029296875, 0.002323150634765625, 0.01507568359375, -0.0020236968994140625, 0.0280609130859375, -0.09832763671875, -0.02117919921875, 0.01152801513671875, 0.019073486328125, 0.00574493408203125, -0.0303192138671875, -0.0023632049560546875, 0.01074981689453125, -0.0841064453125, -0.073486328125, 0.02850341796875, -0.026123046875, 0.0029239654541015625, 0.03619384765625, -0.020355224609375, -0.0341796875, 0.06817626953125, -0.01093292236328125, 0.03741455078125, -0.0228729248046875, -0.038360595703125, -0.0128631591796875, -0.056976318359375, 0.01551055908203125, 0.0036487579345703125, -0.006679534912109375, 0.01334381103515625, -0.014984130859375, -0.0121917724609375, -0.03143310546875, 0.00096893310546875, 0.04229736328125, 0.0022907257080078125, -0.00406646728515625, 0.048858642578125, -0.045074462890625, 0.0101165771484375, -0.0204010009765625, 0.077880859375, 0.05535888671875, -0.040985107421875, -0.002288818359375, 0.00982666015625, 0.0177001953125, 0.011199951171875, -0.011627197265625, 0.00405120849609375, -0.021636962890625, -0.039398193359375, -0.07403564453125, -0.031280517578125, 0.0120849609375, -0.025421142578125, 0.0258941650390625, 0.00007969141006469727, -0.005767822265625, 0.004169464111328125, 0.033050537109375, 0.00945281982421875, -0.0017614364624023438, 0.01018524169921875, -0.0019350051879882812, 0.0168914794921875, -0.02423095703125, -0.0168304443359375, -0.011322021484375, 0.052520751953125, -0.00506591796875, -0.027252197265625, 0.01448822021484375, 0.017120361328125, -0.006031036376953125, -0.0196075439453125, -0.053985595703125, -0.07177734375, 0.04107666015625, -0.0518798828125, 0.009979248046875, -0.052734375, -0.016876220703125, -0.00756072998046875, 0.0977783203125, -0.050262451171875, -0.042083740234375, 0.0169525146484375, 0.03668212890625, -0.036865234375, -0.052459716796875, -0.031982421875, -0.0211334228515625, -0.053070068359375, -0.0088653564453125, -0.01288604736328125, -0.020538330078125, -0.0191192626953125, 0.0082550048828125, -0.0364990234375, -0.031158447265625, 0.035797119140625, -0.02484130859375, 0.033172607421875, -0.0009331703186035156, 0.007114410400390625, -0.0093841552734375, -0.02490234375, -0.013458251953125, -0.09014892578125, -0.003887176513671875, -0.03778076171875, 0.0653076171875, 0.0200958251953125, -0.004787445068359375, -0.0308074951171875, 0.044677734375, 0.017730712890625, 0.04742431640625, 0.016632080078125, 0.0026226043701171875, 0.01288604736328125, 0.011566162109375, 0.04425048828125, -0.01241302490234375, 0.01122283935546875, -0.05194091796875, -0.04290771484375, 0.012481689453125, -0.043792724609375, 0.057891845703125, -0.043731689453125, -0.00807952880859375, -0.018646240234375, -0.0211334228515625, -0.04388427734375, 0.018341064453125, -0.018341064453125, -0.01419830322265625, -0.040283203125, -0.042388916015625, 0.052642822265625, -0.01273345947265625, -0.01517486572265625, 0.0075836181640625, 0.09930419921875, 0.006320953369140625, -0.023406982421875, -0.11578369140625, 0.0256805419921875, 0.0258636474609375, -0.01305389404296875, 0.0313720703125, -0.0172882080078125, -0.0184783935546875, 0.0673828125, -0.0102691650390625, -0.008270263671875, 0.053070068359375, 0.01194000244140625, 0.00543975830078125, -0.0240325927734375, 0.00400543212890625, 0.0050811767578125, -0.0283966064453125, 0.039642333984375, -0.01200103759765625, -0.0016460418701171875, -0.01190948486328125, 0.03668212890625, -0.00971221923828125, -0.0171966552734375, -0.0526123046875, -0.0718994140625, 0.0211181640625, -0.006450653076171875, -0.0194854736328125, 0.003162384033203125, -0.00579071044921875, 0.008819580078125, -0.0105133056640625, 0.0164337158203125, -0.0126953125, -0.0187225341796875, 0.01074981689453125, 0.037994384765625, -0.0131072998046875, 0.0158538818359375, 0.0017070770263671875, -0.0103759765625, 0.05975341796875, 0.036163330078125, -0.0247344970703125, 0.00351715087890625, -0.0019779205322265625, 0.0269622802734375, 0.003566741943359375, -0.052154541015625, -0.0012731552124023438, 0.00229644775390625, -0.0214691162109375, 0.014739990234375, -0.059112548828125, -0.032135009765625, -0.036041259765625, 0.049530029296875, 0.02618408203125, -0.0186004638671875, 0.032867431640625, 0.01458740234375, 0.013092041015625, 0.0225067138671875, -0.012237548828125, 0.0239410400390625, 0.0264739990234375, 0.03271484375, -0.007549285888671875, 0.002956390380859375, 0.004085540771484375, -0.009765625, 0.0192413330078125, -0.03668212890625, -0.020477294921875, 0.035003662109375, 0.072265625, -0.0416259765625, -0.033843994140625, -0.00099945068359375, -0.056549072265625, 0.0022373199462890625, -0.01512908935546875, -0.04608154296875, -0.01427459716796875, -0.0050506591796875, -0.016845703125, 0.0248870849609375, -0.00901031494140625, -0.01309967041015625, -0.0159454345703125, -0.051055908203125, -0.0303192138671875, 0.045562744140625, -0.040130615234375, -0.004528045654296875, -0.0135345458984375, -0.0587158203125, -0.0298004150390625, 0.0120697021484375, -0.0230255126953125, -0.0421142578125, -0.0180816650390625, -0.01244354248046875, 0.050537109375, -0.0286407470703125, 0.037811279296875, -0.0024871826171875, -0.027191162109375, 0.0013523101806640625, 0.0242919921875, 0.00870513916015625, -0.0009493827819824219, -0.064697265625, 0.033203125, -0.058441162109375, 0.0217742919921875, -0.02398681640625, -0.0689697265625, -0.037933349609375, -0.02099609375, 0.02227783203125, -0.0018215179443359375, 0.026702880859375, -0.0030059814453125, -0.00641632080078125, 0.020477294921875, 0.0187225341796875, -0.00799560546875, 0.0031414031982421875, -0.029388427734375, 0.03741455078125, 0.0026836395263671875, 0.0222015380859375, -0.027374267578125, 0.0115966796875, -0.046356201171875, 0.01306915283203125, -0.03375244140625, -0.015655517578125, -0.00913238525390625, -0.00234222412109375, 0.0033168792724609375, 0.0289764404296875, -0.0091094970703125, 0.04339599609375, -0.046478271484375, -0.027130126953125, -0.02459716796875, 0.022003173828125, -0.077392578125, 0.046661376953125, -0.046356201171875, -0.01898193359375, 0.0270843505859375, 0.0089263916015625, -0.01763916015625, 0.033294677734375, -0.0013799667358398438, 0.0123443603515625, 0.032958984375, -0.061492919921875, 0.060516357421875, 0.06787109375, 0.01611328125, 0.0643310546875, -0.0255889892578125, 0.01629638671875, 0.046844482421875, -0.0041351318359375, 0.03021240234375, 0.011749267578125, 0.061309814453125, 0.01284027099609375, -0.0019197463989257812, 0.041412353515625, -0.035369873046875, 0.0261688232421875, 0.04638671875, 0.044189453125, -0.0675048828125, 0.0074615478515625, -0.0035152435302734375, -0.00655364990234375, 0.055419921875, 0.0253753662109375, 0.003566741943359375, 0.048919677734375, -0.00876617431640625, -0.016845703125, -0.0181427001953125, 0.006488800048828125, 0.0163421630859375, -0.005809783935546875, 0.017242431640625, 0.0252227783203125, 0.0279083251953125, -0.01160430908203125, 0.009368896484375, 0.0036907196044921875, 0.0509033203125, -0.01108551025390625, 0.0003943443298339844, -0.002716064453125, -0.0279083251953125, -0.03216552734375, 0.029632568359375, -0.019073486328125, -0.0015726089477539062, -0.0005426406860351562, 0.0236358642578125, 0.0185699462890625, 0.06317138671875, -0.005558013916015625, 0.0204620361328125, 0.034088134765625, 0.0012693405151367188, -0.01154327392578125, 0.0234222412109375, 0.05389404296875, -0.01540374755859375, -0.039215087890625, 0.004505157470703125, -0.06390380859375, 0.00699615478515625, 0.0055999755859375, -0.004001617431640625, 0.07379150390625, -0.0511474609375, -0.0092926025390625, 0.038055419921875, -0.01091766357421875, -0.01739501953125, 0.0330810546875, 0.017547607421875, -0.0697021484375, -0.056396484375, 0.041412353515625, -0.04571533203125, 0.0036945343017578125, 0.033355712890625, -0.0443115234375, 0.0867919921875, 0.019317626953125, 0.00981903076171875, 0.022125244140625, 0.037811279296875, -0.06036376953125, 0.00476837158203125, -0.0299835205078125, 0.04327392578125, 0.007579803466796875, -0.01079559326171875, -0.035858154296875, 0.01715087890625, -0.02154541015625, -0.00194549560546875, 0.01265716552734375, -0.0019025802612304688, -0.0007476806640625, -0.016693115234375, 0.01593017578125, 0.017120361328125, -0.004802703857421875, 0.0217742919921875, -0.0399169921875, 0.01374053955078125, -0.0340576171875, -0.0298614501953125, 0.0103302001953125, -0.03741455078125, -0.0826416015625, -0.0146484375, 0.0391845703125, 0.041259765625, -0.002452850341796875, 0.004192352294921875, -0.03839111328125, -0.00152587890625, 0.043975830078125, 0.0094757080078125, -0.0228424072265625, 0.035430908203125, 0.019561767578125, -0.0242919921875, -0.0007982254028320312, -0.0293426513671875, 0.0472412109375, 0.0083160400390625, 0.010284423828125, 0.00405120849609375, 0.002590179443359375, 0.018157958984375, -0.0102996826171875, -0.0239105224609375, 0.026611328125, 0.0031490325927734375, 0.06646728515625, 0.036895751953125, 0.0276031494140625, -0.01331329345703125, -0.011627197265625, -0.0005474090576171875, 0.06268310546875, -0.031768798828125, -0.01178741455078125, 0.0244293212890625, -0.006565093994140625, -0.005634307861328125, -0.041259765625, -0.01409149169921875, -0.02276611328125, -0.02398681640625, -0.031951904296875, 0.0118408203125, 0.03875732421875, 0.0202789306640625, 0.00009900331497192383, 0.0090484619140625, -0.042816162109375, -0.005191802978515625, -0.0227508544921875, 0.002422332763671875, 0.0217437744140625, 0.0166473388671875, -0.01885986328125, 0.054046630859375, 0.0014896392822265625, 0.001018524169921875, 0.027587890625, 0.038909912109375, -0.019805908203125, -0.0265350341796875, -0.0270538330078125, -0.08721923828125, 0.025634765625, 0.0362548828125, 0.038055419921875, 0.037384033203125, 0.03399658203125, 0.0198211669921875, 0.0168914794921875, 0.00024378299713134766, -0.008453369140625, -0.009368896484375, 0.05474853515625, -0.02001953125, 0.043548583984375, 0.0182647705078125, -0.0023059844970703125, -0.041168212890625, 0.01263427734375, 0.06396484375, 0.001148223876953125, 0.042266845703125, -0.003101348876953125, -0.0037288665771484375, 0.038787841796875, -0.0102996826171875, 0.0283203125, 0.0257415771484375, -0.06494140625, -0.01345062255859375, -0.0220489501953125, -0.00640869140625, 0.007526397705078125, 0.030059814453125, 0.0224456787109375, 0.01001739501953125, -0.0015439987182617188, 0.004001617431640625, -0.0014476776123046875, -0.006694793701171875, -0.0093841552734375, 0.03887939453125, 0.04620361328125, 0.02276611328125, -0.05712890625, -0.037872314453125, -0.0285491943359375, 0.04547119140625, 0.0081939697265625, 0.10400390625, -0.03436279296875, 0.0248565673828125, -0.005130767822265625, -0.02581787109375, -0.00019919872283935547, -0.0176849365234375, 0.051025390625, -0.0095367431640625, -0.0295562744140625, -0.0145416259765625, -0.01763916015625, 0.00730133056640625, 0.03009033203125, -0.0318603515625, -0.0175323486328125, -0.0208282470703125, 0.0269012451171875, 0.006198883056640625, 0.021575927734375, -0.0198974609375, -0.0242156982421875, -0.005535125732421875, 0.019561767578125, 0.01299285888671875, -0.002002716064453125, -0.0543212890625, 0.01290130615234375, 0.0095672607421875, -0.01497650146484375, 0.0274810791015625, 0.0023021697998046875, 0.034027099609375, 0.0416259765625, -0.0288848876953125, -0.10546875, -0.000022172927856445312, -0.004383087158203125, -0.020538330078125, 0.0010976791381835938, 0.08929443359375, 0.0067291259765625, -0.013397216796875, -0.05157470703125, -0.018035888671875, 0.004993438720703125, -0.0223846435546875, 0.01331329345703125, -0.045379638671875, 0.00927734375, 0.011138916015625, -0.022186279296875, -0.02496337890625, -0.030487060546875, 0.0125274658203125, 0.0179595947265625, -0.0044403076171875, -0.003910064697265625, -0.00994873046875, -0.006565093994140625, 0.051849365234375, 0.00798797607421875, -0.054840087890625, 0.02801513671875, -0.02691650390625, 0.0177764892578125, 0.0014743804931640625, -0.0178680419921875, -0.005649566650390625, 0.023712158203125, -0.0261383056640625, -0.061767578125, -0.0450439453125, 0.05670166015625, -0.0545654296875, 0.028228759765625, 0.05255126953125, -0.0222625732421875, 0.01148223876953125, 0.0223236083984375, -0.0165557861328125, 0.07427978515625, -0.0255584716796875, -0.001667022705078125, 0.0228729248046875, -0.0296783447265625, -0.045867919921875, -0.036651611328125, 0.015655517578125, -0.036041259765625, -0.04095458984375, 0.031463623046875, -0.011077880859375, 0.01262664794921875, -0.030029296875, -0.05596923828125, -0.0015506744384765625, 0.029205322265625, -0.03924560546875, -0.04150390625, 0.01348876953125, -0.015472412109375, -0.0005660057067871094, -0.01404571533203125, -0.01160430908203125, 0.01218414306640625, 0.06011962890625, 0.032012939453125, 0.041717529296875, 0.01739501953125, 0.03826904296875, -0.01336669921875, 0.038665771484375, 0.01971435546875, 0.03387451171875, 0.0207366943359375, 0.0007071495056152344, 0.020660400390625, 0.055389404296875, -0.0154266357421875, -0.01410675048828125, -0.016021728515625, -0.050628662109375, -0.022613525390625, -0.042144775390625, -0.0291900634765625, -0.0236358642578125, 0.06793212890625, 0.0506591796875, 0.0206451416015625, -0.0302734375, -0.0011720657348632812, 0.00650787353515625, 0.007190704345703125, -0.007476806640625, 0.01318359375, -0.049652099609375, -0.009368896484375, 0.0086517333984375, -0.00780487060546875, -0.007480621337890625, -0.05120849609375, -0.050201416015625, -0.00662994384765625, -0.0318603515625, 0.0216064453125, -0.0205841064453125, 0.01739501953125, 0.07952880859375, -0.0450439453125, 0.016204833984375, -0.0179901123046875, 0.0251922607421875, 0.040740966796875, -0.05511474609375, 0.012420654296875, 0.05670166015625, -0.046630859375, -0.013031005859375, 0.0228271484375, 0.038360595703125, -0.00818634033203125, -0.0163421630859375, -0.003650665283203125, 0.00965118408203125, -0.0155181884765625, 0.0024356842041015625, 0.0190277099609375, 0.0611572265625, 0.003170013427734375, 0.08721923828125, 0.0193634033203125, 0.032928466796875, 0.0009946823120117188, 0.039276123046875, -0.047027587890625, -0.021575927734375, -0.0203704833984375, -0.06170654296875, 0.005046844482421875, 0.003406524658203125, 0.036163330078125, -0.055328369140625, 0.01029205322265625, 0.01428985595703125, 0.0183563232421875, 0.01222991943359375 ]
cfb6447da923d82cc1502d5a95b0b9906c491a1b
Wordpress Stackexchange Q: Does WordPress cache get_user_meta() results? If I call get_user_meta() to retrieve a value, does WordPress cache the value? If I call get_user_meta() to retrieve the same value, does WordPress have to query the database again or is it stored in PHP memory? A: Yes, it does. That function is a wrapper for get_metadata(). Inside of that you can find: $meta_cache = wp_cache_get($object_id, $meta_type . '_meta'); if ( !$meta_cache ) { $meta_cache = update_meta_cache( $meta_type, array( $object_id ) ); $meta_cache = $meta_cache[$object_id]; }
Q: Does WordPress cache get_user_meta() results? If I call get_user_meta() to retrieve a value, does WordPress cache the value? If I call get_user_meta() to retrieve the same value, does WordPress have to query the database again or is it stored in PHP memory? A: Yes, it does. That function is a wrapper for get_metadata(). Inside of that you can find: $meta_cache = wp_cache_get($object_id, $meta_type . '_meta'); if ( !$meta_cache ) { $meta_cache = update_meta_cache( $meta_type, array( $object_id ) ); $meta_cache = $meta_cache[$object_id]; }
wordpress
{ "language": "en", "length": 83, "provenance": "stackexchange_00019.jsonl.gz:425699", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72264" }
[ 0.04266357421875, -0.00630950927734375, 0.01335906982421875, -0.03814697265625, 0.004711151123046875, -0.0171051025390625, 0.02166748046875, -0.0267181396484375, 0.024169921875, 0.056060791015625, -0.0355224609375, -0.048309326171875, 0.06402587890625, 0.0009832382202148438, -0.05670166015625, -0.03240966796875, 0.042266845703125, 0.0086669921875, 0.060272216796875, 0.0005025863647460938, 0.040069580078125, 0.03277587890625, 0.0207061767578125, 0.06060791015625, 0.030609130859375, -0.0655517578125, 0.0239105224609375, -0.00357818603515625, 0.01042938232421875, -0.0238494873046875, 0.02178955078125, 0.0205078125, 0.0278778076171875, 0.003452301025390625, -0.0157470703125, -0.010955810546875, -0.013671875, 0.0117645263671875, 0.00002104043960571289, 0.001338958740234375, 0.0018434524536132812, 0.0250244140625, -0.047821044921875, -0.00643157958984375, -0.05609130859375, -0.046112060546875, 0.004886627197265625, 0.00383758544921875, 0.032958984375, 0.0155487060546875, 0.0203857421875, 0.03411865234375, 0.024658203125, -0.0206146240234375, -0.00768280029296875, 0.01209259033203125, -0.004894256591796875, -0.03228759765625, 0.032623291015625, -0.027862548828125, -0.012115478515625, -0.021697998046875, 0.038543701171875, 0.017486572265625, 0.005702972412109375, -0.0173187255859375, 0.01084136962890625, 0.0200653076171875, -0.042144775390625, 0.0247650146484375, 0.054168701171875, -0.0235748291015625, -0.0172271728515625, -0.00010466575622558594, 0.01091766357421875, -0.0298004150390625, 0.009490966796875, -0.02301025390625, -0.01537322998046875, 0.054229736328125, 0.00006490945816040039, -0.0183563232421875, -0.052001953125, -0.004245758056640625, -0.007221221923828125, 0.01157379150390625, -0.01328277587890625, -0.007732391357421875, -0.022064208984375, -0.05792236328125, -0.01360321044921875, -0.08453369140625, -0.0168304443359375, 0.009033203125, -0.0304718017578125, -0.027191162109375, 0.01953125, 0.065185546875, -0.057159423828125, -0.0221710205078125, -0.029754638671875, 0.01116943359375, -0.0286407470703125, -0.025909423828125, 0.008026123046875, 0.01366424560546875, -0.01372528076171875, 0.0107269287109375, 0.0258331298828125, 0.048736572265625, 0.0035991668701171875, -0.0188446044921875, -0.058013916015625, -0.06787109375, 0.0024967193603515625, 0.0716552734375, -0.0465087890625, 0.016510009765625, 0.016387939453125, 0.0166168212890625, 0.03387451171875, 0.0450439453125, 0.0186004638671875, -0.06103515625, -0.0016031265258789062, -0.01309967041015625, -0.050567626953125, -0.03271484375, -0.05712890625, 0.047576904296875, -0.0197296142578125, -0.007904052734375, 0.0132904052734375, 0.039093017578125, -0.0016489028930664062, -0.030120849609375, -0.009735107421875, -0.055511474609375, -0.0033740997314453125, 0.03887939453125, -0.023223876953125, -0.06585693359375, 0.007457733154296875, -0.02197265625, -0.01490020751953125, -0.0027828216552734375, 0.0016565322875976562, 0.0243682861328125, 0.01226043701171875, -0.031707763671875, -0.03594970703125, 0.0338134765625, -0.0135955810546875, -0.00568389892578125, 0.041900634765625, 0.017608642578125, 0.021820068359375, -0.004543304443359375, -0.0033092498779296875, 0.01476287841796875, -0.007415771484375, -0.036468505859375, -0.0248565673828125, 0.049102783203125, 0.0009641647338867188, 0.05126953125, 0.04669189453125, 0.01056671142578125, 0.01776123046875, 0.051666259765625, 0.042694091796875, 0.00738525390625, 0.022216796875, -0.0041046142578125, -0.01947021484375, -0.038818359375, -0.003772735595703125, 0.041412353515625, 0.005229949951171875, -0.0298309326171875, -0.035888671875, -0.05084228515625, 0.03167724609375, -0.00829315185546875, -0.0296478271484375, 0.032012939453125, 0.0027828216552734375, 0.023590087890625, 0.021759033203125, -0.0059967041015625, 0.0237884521484375, 0.040802001953125, -0.039825439453125, 0.034759521484375, 0.0220489501953125, -0.0016908645629882812, 0.0023822784423828125, 0.006160736083984375, 0.018310546875, -0.061126708984375, 0.06597900390625, -0.0020961761474609375, -0.0008206367492675781, -0.043914794921875, -0.1343994140625, 0.007541656494140625, -0.041259765625, 0.039031982421875, -0.0012807846069335938, 0.05279541015625, -0.015869140625, -0.015625, 0.00630950927734375, -0.004184722900390625, 0.017181396484375, -0.007480621337890625, 0.00043702125549316406, 0.0426025390625, -0.004718780517578125, 0.03302001953125, -0.02618408203125, -0.000400543212890625, -0.01442718505859375, 0.0160064697265625, 0.03741455078125, 0.006305694580078125, -0.00522613525390625, -0.0066986083984375, 0.0239410400390625, 0.0013132095336914062, -0.01898193359375, 0.02618408203125, 0.030029296875, 0.03851318359375, -0.01187896728515625, -0.007648468017578125, -0.00937652587890625, -0.10919189453125, 0.006137847900390625, 0.07080078125, 0.0208740234375, 0.0206451416015625, -0.00298309326171875, 0.051544189453125, 0.01274871826171875, -0.01314544677734375, 0.029205322265625, 0.01153564453125, 0.0261383056640625, 0.056884765625, -0.0018434524536132812, -0.01462554931640625, -0.014434814453125, -0.05828857421875, 0.0149078369140625, 0.0122222900390625, -0.0215606689453125, 0.0391845703125, 0.0140380859375, -0.0123748779296875, -0.018157958984375, 0.028045654296875, 0.05291748046875, -0.01031494140625, -0.0002079010009765625, 0.0186614990234375, -0.005859375, 0.0039520263671875, -0.03662109375, 0.0240478515625, 0.03302001953125, 0.00010478496551513672, 0.00914764404296875, -0.001613616943359375, -0.040191650390625, 0.00444793701171875, -0.0218505859375, 0.0124053955078125, 0.00798797607421875, -0.01812744140625, 0.016937255859375, 0.0340576171875, -0.0211029052734375, -0.00865936279296875, 0.0024585723876953125, 0.004924774169921875, -0.003570556640625, 0.048583984375, 0.0301361083984375, 0.031494140625, 0.0489501953125, 0.0250396728515625, -0.0218353271484375, 0.06640625, -0.029754638671875, -0.00823974609375, -0.0005555152893066406, -0.003482818603515625, 0.00799560546875, -0.000576019287109375, 0.0467529296875, 0.0623779296875, 0.0003466606140136719, 0.0185699462890625, -0.004688262939453125, -0.012054443359375, -0.01004791259765625, 0.02703857421875, -0.003070831298828125, -0.046630859375, -0.0237274169921875, 0.0014495849609375, 0.0223846435546875, 0.0264434814453125, 0.0195465087890625, -0.030670166015625, 0.01171112060546875, 0.0186920166015625, -0.0772705078125, -0.08050537109375, -0.01230621337890625, -0.007610321044921875, -0.0321044921875, -0.0029621124267578125, -0.00698089599609375, 0.0115509033203125, -0.0005803108215332031, 0.003269195556640625, 0.032928466796875, -0.0311737060546875, -0.0467529296875, -0.0290985107421875, -0.055145263671875, -0.0290069580078125, 0.00127410888671875, -0.016998291015625, -0.01097869873046875, 0.042144775390625, -0.02642822265625, -0.0667724609375, -0.0469970703125, 0.0012054443359375, -0.01255035400390625, -0.01169586181640625, 0.0213775634765625, -0.046295166015625, 0.0183563232421875, 0.000043332576751708984, 0.0175323486328125, 0.0094451904296875, -0.0015134811401367188, -0.0174560546875, 0.03558349609375, -0.01245880126953125, 0.06414794921875, 0.01284027099609375, -0.06719970703125, 0.043426513671875, 0.07708740234375, -0.013427734375, -0.0533447265625, 0.01552581787109375, -0.04974365234375, 0.035614013671875, 0.02508544921875, -0.0005502700805664062, 0.0109405517578125, 0.00901031494140625, 0.0128631591796875, 0.016876220703125, 0.00714111328125, -0.011199951171875, 0.04327392578125, -0.00502777099609375, -0.01419830322265625, -0.01488494873046875, 0.0186767578125, -0.018646240234375, 0.004367828369140625, -0.00628662109375, 0.0081024169921875, -0.009796142578125, -0.01666259765625, -0.037322998046875, -0.04608154296875, 0.033905029296875, -0.01059722900390625, 0.035003662109375, -0.047515869140625, -0.0252532958984375, -0.0170440673828125, 0.09759521484375, 0.00952911376953125, -0.022796630859375, -0.0026092529296875, 0.019134521484375, -0.07696533203125, -0.007080078125, -0.0279541015625, 0.018157958984375, -0.06854248046875, -0.01490020751953125, 0.016754150390625, -0.06524658203125, -0.002475738525390625, 0.01419830322265625, -0.06280517578125, -0.013397216796875, 0.0275726318359375, -0.06524658203125, 0.03216552734375, -0.019989013671875, 0.04876708984375, -0.07525634765625, 0.01027679443359375, -0.05816650390625, -0.03106689453125, -0.01275634765625, -0.0195159912109375, 0.060638427734375, 0.048614501953125, -0.0254364013671875, 0.0311279296875, 0.040496826171875, 0.015625, 0.0185699462890625, 0.00872802734375, -0.0025787353515625, -0.0004801750183105469, -0.02117919921875, 0.02093505859375, -0.028717041015625, -0.0035114288330078125, -0.01136016845703125, -0.007709503173828125, -0.004337310791015625, -0.04400634765625, -0.02593994140625, -0.0241241455078125, -0.01043701171875, 0.0047454833984375, -0.0279083251953125, -0.04571533203125, -0.0289459228515625, -0.040618896484375, 0.00958251953125, 0.0100860595703125, 0.006053924560546875, 0.037078857421875, 0.035003662109375, -0.0077362060546875, 0.0003192424774169922, 0.0650634765625, 0.02294921875, -0.038482666015625, -0.04779052734375, 0.0091705322265625, 0.028350830078125, 0.0032596588134765625, 0.0242156982421875, -0.0038623809814453125, -0.0195770263671875, 0.0279388427734375, -0.0030059814453125, 0.044830322265625, -0.0655517578125, 0.10003662109375, -0.0243682861328125, -0.01474761962890625, 0.05474853515625, -0.01044464111328125, -0.0309906005859375, 0.059051513671875, 0.0083160400390625, -0.031646728515625, 0.0012464523315429688, 0.055938720703125, 0.004848480224609375, -0.03179931640625, -0.0577392578125, -0.06817626953125, 0.023773193359375, -0.08038330078125, 0.056793212890625, 0.01308441162109375, -0.00543975830078125, 0.061370849609375, 0.01641845703125, 0.0023956298828125, -0.00879669189453125, -0.005859375, 0.00467681884765625, 0.0330810546875, -0.01557159423828125, 0.00634765625, -0.0122222900390625, -0.0031795501708984375, 0.035186767578125, 0.003143310546875, -0.041900634765625, 0.0155487060546875, 0.0012769699096679688, 0.0108184814453125, 0.0255584716796875, -0.021026611328125, 0.0577392578125, 0.0003705024719238281, 0.007415771484375, 0.008087158203125, -0.06903076171875, -0.01439666748046875, -0.03973388671875, 0.036224365234375, -0.004825592041015625, 0.005237579345703125, 0.0130767822265625, 0.0972900390625, -0.055999755859375, 0.07647705078125, -0.01198577880859375, 0.032806396484375, 0.04083251953125, 0.025238037109375, 0.0249786376953125, -0.01082611083984375, -0.01361083984375, 0.0043487548828125, 0.005828857421875, -0.0250701904296875, 0.007709503173828125, 0.01251983642578125, 0.005001068115234375, 0.026763916015625, -0.0172119140625, 0.0229644775390625, -0.00124359130859375, -0.01271820068359375, 0.0035610198974609375, -0.052276611328125, -0.057647705078125, -0.031890869140625, 0.002323150634765625, 0.020294189453125, -0.0201873779296875, -0.003997802734375, 0.028717041015625, -0.00476837158203125, 0.0251922607421875, -0.055206298828125, 0.004718780517578125, -0.023345947265625, -0.01116180419921875, -0.0288238525390625, -0.0223541259765625, 0.0026340484619140625, -0.0270538330078125, 0.004199981689453125, -0.0204315185546875, -0.026885986328125, 0.053985595703125, -0.0294952392578125, 0.0245513916015625, -0.051483154296875, 0.0394287109375, -0.0404052734375, 0.001796722412109375, 0.03314208984375, 0.0251007080078125, -0.00266265869140625, 0.0004930496215820312, -0.037109375, -0.003643035888671875, -0.005725860595703125, -0.043548583984375, 0.001270294189453125, -0.01544189453125, 0.01018524169921875, 0.0299835205078125, 0.0077056884765625, -0.00870513916015625, 0.0063323974609375, 0.01702880859375, 0.01433563232421875, 0.0765380859375, 0.022857666015625, 0.037872314453125, -0.007701873779296875, 0.045379638671875, 0.030792236328125, 0.0235137939453125, -0.02984619140625, -0.03076171875, 0.0016632080078125, -0.0303192138671875, -0.0293426513671875, -0.0102386474609375, -0.01180267333984375, 0.005878448486328125, 0.026580810546875, -0.0115203857421875, 0.0119476318359375, -0.005573272705078125, -0.00031256675720214844, -0.01436614990234375, 0.004375457763671875, -0.006069183349609375, 0.004413604736328125, 0.018157958984375, -0.017730712890625, -0.0391845703125, 0.0036830902099609375, -0.045166015625, 0.03179931640625, 0.032440185546875, 0.01180267333984375, -0.0298614501953125, -0.04345703125, 0.041290283203125, 0.092041015625, 0.032989501953125, 0.055206298828125, 0.0237274169921875, 0.0316162109375, 0.03424072265625, 0.00209808349609375, 0.003208160400390625, 0.01384735107421875, 0.055877685546875, -0.0103912353515625, -0.018280029296875, 0.024932861328125, -0.029266357421875, -0.00185394287109375, 0.029449462890625, 0.04498291015625, -0.0263519287109375, -0.017059326171875, -0.0012054443359375, -0.0255584716796875, 0.00888824462890625, 0.005420684814453125, -0.0131683349609375, -0.0310211181640625, 0.01018524169921875, -0.0281524658203125, -0.0232086181640625, -0.00251007080078125, 0.0096282958984375, 0.0030803680419921875, 0.00666046142578125, 0.00426483154296875, -0.0059814453125, 0.0311126708984375, -0.032196044921875, -0.039337158203125, 0.0192108154296875, -0.01123809814453125, 0.00807952880859375, 0.00771331787109375, -0.01000213623046875, -0.0574951171875, 0.00951385498046875, -0.01242828369140625, -0.00679779052734375, 0.00830078125, 0.045013427734375, 0.040008544921875, 0.04364013671875, 0.02203369140625, -0.0216522216796875, 0.007343292236328125, 0.001861572265625, -0.0462646484375, -0.047698974609375, 0.01849365234375, 0.0189056396484375, -0.038116455078125, 0.037200927734375, 0.0017232894897460938, -0.060272216796875, -0.0256805419921875, -0.032257080078125, 0.061126708984375, -0.02435302734375, -0.01277923583984375, 0.00701141357421875, 0.046630859375, -0.00516510009765625, -0.00457763671875, 0.045166015625, 0.019989013671875, 0.054290771484375, 0.0246124267578125, 0.0316162109375, -0.0303192138671875, 0.0166015625, -0.0748291015625, 0.011871337890625, 0.02215576171875, 0.04730224609375, 0.00336456298828125, -0.017364501953125, 0.003509521484375, -0.0269775390625, -0.032012939453125, 0.072998046875, 0.0036640167236328125, 0.05963134765625, -0.0806884765625, -0.0245819091796875, 0.01995849609375, 0.049896240234375, 0.04290771484375, 0.0207366943359375, -0.0330810546875, -0.01010894775390625, 0.0039215087890625, 0.019866943359375, -0.00852203369140625, 0.053558349609375, 0.01364898681640625, 0.0853271484375, 0.0869140625, -0.058441162109375, 0.03912353515625, -0.0214996337890625, -0.002094268798828125, 0.03204345703125, -0.003856658935546875, -0.005321502685546875, -0.0110321044921875, 0.048614501953125, -0.0173492431640625, -0.0136871337890625, 0.00981903076171875, -0.016143798828125, 0.0171356201171875, -0.0027256011962890625, 0.01457977294921875, -0.0072021484375, 0.01093292236328125, -0.01064300537109375, 0.02838134765625, 0.01201629638671875, -0.01309967041015625, 0.00234222412109375, 0.0008225440979003906, 0.0266571044921875, -0.018218994140625, -0.0213775634765625, 0.007701873779296875, 0.01314544677734375, 0.06298828125, 0.03570556640625, 0.03216552734375, -0.038116455078125, -0.020477294921875, 0.032135009765625, 0.08837890625, -0.043426513671875, -0.06005859375, 0.0117645263671875, -0.00801849365234375, -0.010986328125, 0.0063629150390625, -0.00588226318359375, -0.046966552734375, 0.008453369140625, -0.01194000244140625, -0.004642486572265625, 0.02325439453125, -0.00881195068359375, 0.00246429443359375, 0.0164031982421875, 0.004268646240234375, 0.01995849609375, -0.0256805419921875, -0.00024890899658203125, -0.0022735595703125, 0.0212554931640625, 0.0186309814453125, 0.021881103515625, 0.032958984375, -0.00522613525390625, -0.0223541259765625, 0.0408935546875, -0.0150604248046875, 0.017486572265625, -0.0626220703125, -0.07379150390625, 0.034912109375, 0.049346923828125, 0.00319671630859375, -0.002925872802734375, 0.043212890625, 0.029876708984375, -0.05511474609375, -0.0174560546875, 0.033782958984375, -0.0272216796875, 0.0328369140625, -0.032958984375, 0.033935546875, 0.00730133056640625, 0.005771636962890625, -0.032196044921875, -0.0015840530395507812, 0.052459716796875, 0.005260467529296875, -0.017822265625, 0.009063720703125, -0.031036376953125, 0.0179443359375, -0.003383636474609375, 0.01513671875, 0.019378662109375, -0.018524169921875, -0.0035724639892578125, -0.03436279296875, 0.0011434555053710938, 0.006343841552734375, 0.026153564453125, 0.0024204254150390625, 0.024017333984375, -0.0108184814453125, -0.03570556640625, 0.033721923828125, 0.017913818359375, -0.0147247314453125, -0.0010585784912109375, 0.0118560791015625, -0.04205322265625, -0.08026123046875, -0.0350341796875, 0.0084381103515625, -0.00030493736267089844, -0.034027099609375, 0.01490020751953125, 0.0287628173828125, -0.007476806640625, -0.00701141357421875, -0.043548583984375, 0.0281219482421875, 0.007793426513671875, -0.0179290771484375, 0.01012420654296875, -0.020538330078125, -0.0101318359375, -0.032440185546875, 0.01374053955078125, 0.039581298828125, -0.00209808349609375, 0.01508331298828125, -0.005481719970703125, 0.01532745361328125, -0.029449462890625, -0.0242919921875, -0.038116455078125, -0.032135009765625, -0.0168914794921875, -0.01001739501953125, 0.0183258056640625, -0.01461029052734375, -0.01114654541015625, 0.037841796875, 0.0379638671875, -0.018310546875, 0.0175628662109375, -0.0241851806640625, 0.03350830078125, 0.025634765625, 0.01194000244140625, 0.0201263427734375, -0.0268402099609375, -0.03070068359375, 0.026763916015625, -0.0170745849609375, -0.00469970703125, -0.004627227783203125, -0.017578125, 0.01453399658203125, -0.01528167724609375, 0.03369140625, -0.006298065185546875, -0.009429931640625, -0.0238189697265625, 0.01395416259765625, 0.0123138427734375, -0.0300140380859375, -0.02972412109375, -0.0287933349609375, -0.002735137939453125, 0.0158233642578125, -0.014373779296875, -0.050811767578125, -0.045867919921875, 0.0005693435668945312, 0.05438232421875, 0.0244903564453125, -0.05902099609375, 0.043304443359375, -0.02734375, 0.0097198486328125, 0.035400390625, -0.07196044921875, 0.031585693359375, 0.0614013671875, -0.0090179443359375, -0.005779266357421875, -0.03155517578125, -0.032562255859375, -0.0206451416015625, 0.0177459716796875, 0.034820556640625, -0.013275146484375, -0.006038665771484375, 0.0193939208984375, -0.0042724609375, 0.062103271484375, -0.049072265625, -0.006008148193359375, 0.01629638671875, 0.01029205322265625, -0.00013315677642822266, -0.060394287109375, -0.0177764892578125, -0.0382080078125, 0.021392822265625, -0.0248565673828125, 0.0289764404296875, 0.0269927978515625, -0.030517578125, -0.0777587890625, 0.040802001953125, -0.0299224853515625, -0.0284576416015625, -0.05511474609375, -0.0204620361328125, 0.01090240478515625, -0.0002808570861816406, -0.02410888671875, -0.00970458984375, -0.05682373046875, 0.034027099609375, 0.033782958984375, -0.027496337890625, 0.0496826171875, 0.0181427001953125, -0.09124755859375, 0.0015611648559570312, -0.03143310546875, 0.026123046875, -0.0308990478515625, 0.02105712890625, -0.002063751220703125, 0.034454345703125, -0.01082611083984375, -0.019866943359375, 0.01493072509765625, -0.011627197265625, -0.027069091796875, -0.0191192626953125, 0.01300811767578125, 0.044219970703125, 0.07220458984375, 0.032745361328125, 0.00634765625, -0.05889892578125, -0.018157958984375, 0.0188751220703125, -0.05804443359375, -0.03326416015625, 0.049163818359375, -0.0977783203125, -0.032806396484375, -0.0022125244140625, -0.01529693603515625, 0.01303863525390625, -0.01509857177734375, -0.02484130859375, 0.0113677978515625, 0.033721923828125, 0.01373291015625, -0.029266357421875, -0.043426513671875, 0.006153106689453125, -0.01611328125, -0.01739501953125, 0.005748748779296875, 0.02056884765625, -0.009246826171875, 0.035614013671875, 0.01551055908203125, 0.00547027587890625, 0.0127716064453125, 0.009002685546875, 0.03857421875, 0.006626129150390625, 0.033477783203125, -0.020416259765625, 0.007617950439453125, 0.0071258544921875, 0.004985809326171875, 0.001316070556640625, -0.0012331008911132812, 0.0010728836059570312, -0.005168914794921875, -0.0019321441650390625, -0.02484130859375, 0.004058837890625, 0.001132965087890625, 0.0103607177734375, -0.033538818359375, 0.01140594482421875, 0.00885009765625, -0.0210723876953125, 0.005931854248046875, -0.00676727294921875, 0.00818634033203125, -0.02386474609375, 0.0188140869140625, -0.06494140625, -0.02093505859375, 0.01702880859375 ]
a5c720aac9ade6f419f9032dec9d4feffb9d889e
Wordpress Stackexchange Q: Wordpress apply_filters() Arguments Missing I'm customizing a Woocommerce Wordpress site. In the Woocommerce product class (class-wc-product.php) the get_price function applies a filter as follows: function get_price() { return apply_filters('woocommerce_get_price', $this->price, $this); } In my functions.php I want to add a filter as follows: add_filter('woocommerce_get_price', 'custom_price'); function custom_price($price, $product) { ... } When I call this I get the following PHP warning: Warning: Missing argument 2 for custom_price() Why is the second argument missing? Is $this not sent to the filter call? A: It's missing the second argument because you didn't tell WordPress you wanted it with your add_filter call. By default, actions and filters only get one argument. Try this: <?php add_filter('woocommerce_get_price', 'custom_price', 10, 2); function custom_price($price, $product) { ... }
Q: Wordpress apply_filters() Arguments Missing I'm customizing a Woocommerce Wordpress site. In the Woocommerce product class (class-wc-product.php) the get_price function applies a filter as follows: function get_price() { return apply_filters('woocommerce_get_price', $this->price, $this); } In my functions.php I want to add a filter as follows: add_filter('woocommerce_get_price', 'custom_price'); function custom_price($price, $product) { ... } When I call this I get the following PHP warning: Warning: Missing argument 2 for custom_price() Why is the second argument missing? Is $this not sent to the filter call? A: It's missing the second argument because you didn't tell WordPress you wanted it with your add_filter call. By default, actions and filters only get one argument. Try this: <?php add_filter('woocommerce_get_price', 'custom_price', 10, 2); function custom_price($price, $product) { ... } A: The warning is a result of the second argument in your function custom_price(). The filter provides only one variable on the call and I can't remember if this is the product/post ID or the price. The code docs indicate that it returns a string so I'd presume it's the price. You can hopefully find the documentation at http://wcdocs.woothemes.com/apidocs/index.html If you need the product at this point you'll have to use: function custom_price( $price ) { global $product; } If all else fails simply echo $price to see if you can tell if it's a product ID or a price. Then adjust your code accordingly.
wordpress
{ "language": "en", "length": 227, "provenance": "stackexchange_00019.jsonl.gz:425718", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72325" }
[ 0.039276123046875, -0.01480865478515625, 0.01514434814453125, -0.032012939453125, -0.016571044921875, -0.006549835205078125, 0.035888671875, -0.005123138427734375, -0.033905029296875, 0.00839996337890625, -0.00975799560546875, -0.04327392578125, -0.0323486328125, -0.038604736328125, 0.01265716552734375, -0.06658935546875, 0.03387451171875, 0.0236053466796875, 0.051605224609375, -0.006855010986328125, -0.00850677490234375, 0.0233917236328125, 0.029815673828125, 0.064697265625, 0.0282135009765625, -0.038116455078125, 0.09185791015625, -0.034515380859375, 0.07427978515625, 0.00830841064453125, 0.033203125, -0.06903076171875, 0.0114288330078125, 0.012969970703125, -0.01849365234375, 0.0185546875, -0.01312255859375, 0.01641845703125, 0.01129913330078125, 0.01090240478515625, 0.032623291015625, -0.006847381591796875, -0.03350830078125, -0.0088348388671875, -0.04412841796875, -0.0423583984375, 0.0308074951171875, 0.00922393798828125, 0.0172576904296875, -0.003009796142578125, -0.005767822265625, 0.0123748779296875, 0.01033782958984375, -0.034820556640625, -0.0096893310546875, -0.0219573974609375, 0.00847625732421875, -0.00656890869140625, 0.0103302001953125, -0.0087738037109375, -0.02593994140625, 0.0214385986328125, 0.00848388671875, -0.00514984130859375, 0.006763458251953125, 0.0230712890625, 0.0169219970703125, 0.0016927719116210938, -0.031982421875, 0.0003249645233154297, 0.0235137939453125, -0.031585693359375, 0.0030574798583984375, 0.05242919921875, -0.0208587646484375, -0.11370849609375, 0.01399993896484375, -0.08465576171875, 0.02264404296875, 0.058837890625, -0.0159759521484375, -0.0206146240234375, -0.055999755859375, 0.016510009765625, -0.0013742446899414062, 0.03662109375, -0.0101165771484375, -0.00690460205078125, -0.0037860870361328125, -0.04937744140625, -0.01091766357421875, -0.02978515625, -0.044708251953125, 0.000988006591796875, -0.02532958984375, -0.033935546875, -0.0033626556396484375, 0.03277587890625, 0.003925323486328125, 0.0404052734375, 0.0147552490234375, -0.04412841796875, 0.060302734375, -0.052764892578125, 0.0016355514526367188, 0.01983642578125, -0.01119232177734375, 0.0926513671875, 0.057159423828125, 0.032928466796875, 0.0202789306640625, -0.0038471221923828125, 0.01544952392578125, -0.07989501953125, 0.01007843017578125, 0.00635528564453125, 0.00658416748046875, 0.017852783203125, 0.052642822265625, -0.040924072265625, 0.01824951171875, 0.036468505859375, 0.0261077880859375, -0.042938232421875, 0.0198211669921875, 0.00775909423828125, -0.0204925537109375, -0.0477294921875, 0.006153106689453125, 0.05035400390625, -0.034210205078125, -0.01690673828125, 0.035491943359375, 0.0209503173828125, 0.00838470458984375, -0.029693603515625, 0.053375244140625, 0.034759521484375, -0.00875091552734375, 0.01031494140625, 0.025634765625, 0.0038928985595703125, -0.0285797119140625, -0.0018911361694335938, 0.041778564453125, -0.01512908935546875, 0.00656890869140625, 0.037384033203125, 0.0113677978515625, 0.007232666015625, 0.033721923828125, 0.022918701171875, 0.025146484375, 0.0064697265625, -0.003253936767578125, 0.035491943359375, 0.0269012451171875, -0.00627899169921875, -0.06005859375, -0.0097198486328125, -0.025848388671875, -0.02984619140625, -0.0213470458984375, -0.041168212890625, -0.054595947265625, 0.03387451171875, 0.0031375885009765625, -0.0027866363525390625, 0.029144287109375, 0.0286712646484375, 0.023101806640625, -0.0012569427490234375, 0.022247314453125, 0.0210418701171875, -0.005527496337890625, 0.0010099411010742188, 0.00750732421875, 0.06182861328125, 0.032196044921875, -0.007076263427734375, -0.02294921875, -0.0435791015625, 0.12176513671875, -0.048431396484375, -0.07611083984375, -0.003997802734375, 0.022125244140625, 0.072021484375, 0.01904296875, 0.0244903564453125, 0.043243408203125, 0.0011301040649414062, -0.036651611328125, 0.033477783203125, -0.0203857421875, -0.03021240234375, -0.0191497802734375, -0.007781982421875, -0.0185699462890625, 0.0304107666015625, -0.0205841064453125, 0.01190185546875, -0.0068206787109375, 0.0030040740966796875, -0.03338623046875, -0.003765106201171875, -0.01332855224609375, 0.0274505615234375, -0.059478759765625, -0.032073974609375, 0.031341552734375, -0.0251922607421875, -0.050018310546875, 0.047607421875, 0.01177215576171875, -0.0197296142578125, -0.0244903564453125, 0.0819091796875, -0.017791748046875, 0.036376953125, -0.00789642333984375, -0.078857421875, 0.0054473876953125, 0.031463623046875, 0.052978515625, 0.037353515625, -0.0191802978515625, 0.002704620361328125, 0.06585693359375, 0.03717041015625, -0.016876220703125, -0.0247039794921875, 0.0518798828125, 0.01113128662109375, -0.02935791015625, 0.01239013671875, 0.0040130615234375, -0.054931640625, -0.018707275390625, 0.0501708984375, 0.0234832763671875, 0.044158935546875, 0.0027599334716796875, 0.035675048828125, 0.09820556640625, -0.0171051025390625, -0.01812744140625, 0.021484375, 0.018157958984375, 0.0134124755859375, 0.0120086669921875, -0.0298614501953125, 0.0093231201171875, -0.039337158203125, 0.022430419921875, 0.026275634765625, -0.02423095703125, -0.01483154296875, 0.003925323486328125, 0.006145477294921875, -0.010650634765625, -0.055816650390625, -0.00444793701171875, -0.0224761962890625, -0.002445220947265625, 0.0207061767578125, 0.0086517333984375, 0.006534576416015625, -0.0229644775390625, 0.0015249252319335938, 0.01751708984375, -0.018341064453125, -0.017822265625, -0.00902557373046875, -0.0472412109375, -0.048583984375, -0.031463623046875, 0.05230712890625, -0.033050537109375, -0.056243896484375, 0.03564453125, 0.0831298828125, 0.00458526611328125, -0.004421234130859375, -0.0174560546875, -0.016815185546875, -0.00969696044921875, 0.040191650390625, 0.0015468597412109375, -0.06048583984375, 0.0027370452880859375, -0.02923583984375, -0.0657958984375, 0.054473876953125, -0.007053375244140625, -0.06829833984375, -0.00909423828125, 0.0024127960205078125, 0.00785064697265625, -0.02655029296875, -0.010833740234375, 0.036163330078125, -0.0209503173828125, -0.009674072265625, 0.01605224609375, -0.0013418197631835938, 0.039703369140625, 0.01108551025390625, -0.0017747879028320312, 0.038299560546875, -0.08697509765625, -0.022247314453125, 0.0003192424774169922, 0.030914306640625, -0.04736328125, -0.052001953125, -0.024810791015625, -0.018890380859375, -0.07196044921875, -0.01407623291015625, 0.0024356842041015625, -0.0582275390625, -0.024322509765625, -0.023040771484375, -0.023681640625, 0.0164337158203125, -0.0272216796875, -0.007015228271484375, -0.0135345458984375, -0.0228729248046875, -0.0264129638671875, -0.052734375, -0.04449462890625, -0.0103912353515625, 0.005977630615234375, 0.002086639404296875, 0.0008034706115722656, 0.049468994140625, 0.007076263427734375, -0.050689697265625, 0.00855255126953125, 0.0125885009765625, -0.0009474754333496094, 0.0233917236328125, 0.007434844970703125, -0.038909912109375, 0.0228118896484375, -0.02130126953125, 0.052001953125, 0.038848876953125, -0.03643798828125, 0.00045490264892578125, -0.021087646484375, -0.0165863037109375, -0.0201263427734375, 0.06103515625, 0.0440673828125, -0.0171356201171875, 0.0190277099609375, -0.046875, -0.0261077880859375, -0.02392578125, -0.044921875, 0.0654296875, 0.032135009765625, -0.007717132568359375, -0.0069580078125, 0.040771484375, -0.01910400390625, 0.00933074951171875, 0.01151275634765625, -0.0161895751953125, 0.00949859619140625, 0.005268096923828125, -0.0254669189453125, -0.000980377197265625, 0.01371002197265625, -0.0400390625, 0.059417724609375, 0.0238189697265625, 0.01107025146484375, 0.029388427734375, -0.02093505859375, 0.004154205322265625, -0.048431396484375, 0.07763671875, 0.03839111328125, 0.01078033447265625, -0.0218963623046875, -0.067626953125, -0.01007080078125, 0.09625244140625, 0.024871826171875, -0.032440185546875, -0.0160980224609375, 0.01074981689453125, -0.0125732421875, -0.0227813720703125, 0.0345458984375, -0.023101806640625, -0.05523681640625, -0.0008649826049804688, -0.019287109375, -0.0167083740234375, 0.0291748046875, -0.0487060546875, -0.009185791015625, -0.04193115234375, 0.033660888671875, -0.0140228271484375, 0.01374053955078125, 0.033416748046875, 0.0037708282470703125, 0.0034332275390625, -0.022552490234375, -0.004825592041015625, -0.0160064697265625, -0.0242462158203125, 0.0258331298828125, 0.034149169921875, 0.00615692138671875, -0.00415802001953125, -0.00891876220703125, 0.04736328125, 0.0272979736328125, 0.04302978515625, 0.005962371826171875, 0.0003235340118408203, -0.013214111328125, -0.042755126953125, 0.0139007568359375, -0.045623779296875, -0.004489898681640625, -0.03240966796875, -0.0273895263671875, 0.0133209228515625, -0.0142822265625, 0.051788330078125, -0.0170440673828125, -0.02392578125, -0.10455322265625, -0.040771484375, 0.00710296630859375, -0.0166168212890625, 0.002422332763671875, -0.00827789306640625, -0.0149688720703125, -0.06781005859375, 0.042724609375, -0.058197021484375, -0.007549285888671875, 0.00821685791015625, 0.08746337890625, 0.0167999267578125, 0.0017337799072265625, 0.004497528076171875, -0.0139312744140625, 0.0156402587890625, 0.0264892578125, 0.0208892822265625, -0.02783203125, -0.0145721435546875, 0.019439697265625, -0.0101776123046875, 0.0014667510986328125, -0.0355224609375, 0.1009521484375, -0.02801513671875, -0.0174102783203125, 0.03851318359375, -0.0416259765625, -0.0067596435546875, 0.018218994140625, -0.0213775634765625, -0.0061187744140625, 0.033966064453125, 0.016265869140625, -0.050384521484375, 0.0380859375, 0.0029392242431640625, -0.0157012939453125, 0.00275421142578125, -0.01560211181640625, 0.043304443359375, 0.0277557373046875, 0.008026123046875, 0.005016326904296875, -0.02081298828125, 0.03594970703125, -0.0226898193359375, 0.0225677490234375, -0.03631591796875, 0.0574951171875, -0.026336669921875, 0.0207977294921875, -0.0215301513671875, 0.005840301513671875, 0.01299285888671875, 0.0021343231201171875, -0.00960540771484375, -0.0313720703125, -0.004726409912109375, -0.030975341796875, -0.0063323974609375, -0.0302886962890625, 0.01230621337890625, 0.040802001953125, -0.0190582275390625, 0.0221405029296875, -0.02252197265625, 0.01012420654296875, -0.033050537109375, 0.0030364990234375, -0.0004031658172607422, -0.00235748291015625, -0.005584716796875, 0.06329345703125, 0.01702880859375, 0.016143798828125, -0.01580810546875, 0.00531005859375, -0.004150390625, 0.055877685546875, 0.010955810546875, -0.034149169921875, 0.01218414306640625, 0.019287109375, 0.03228759765625, -0.01265716552734375, -0.037078857421875, 0.012115478515625, 0.01256561279296875, -0.0230255126953125, 0.01314544677734375, 0.004650115966796875, 0.02642822265625, -0.027191162109375, -0.02386474609375, 0.01468658447265625, -0.0035762786865234375, 0.00002664327621459961, 0.00045228004455566406, -0.022125244140625, 0.04083251953125, -0.00992584228515625, 0.002498626708984375, -0.003509521484375, 0.0194854736328125, -0.0257720947265625, -0.002933502197265625, -0.00972747802734375, 0.004230499267578125, 0.04132080078125, 0.000850677490234375, -0.0209197998046875, -0.054290771484375, -0.0187835693359375, -0.0218505859375, -0.00811004638671875, 0.07843017578125, -0.022186279296875, 0.06982421875, -0.0240020751953125, -0.0599365234375, -0.0216522216796875, 0.02752685546875, 0.044830322265625, 0.040435791015625, -0.0235443115234375, 0.0037784576416015625, -0.030914306640625, -0.0467529296875, -0.043060302734375, 0.01513671875, -0.056365966796875, 0.0101470947265625, -0.014434814453125, 0.024810791015625, -0.0011510848999023438, 0.006195068359375, -0.0253448486328125, 0.00616455078125, 0.0012722015380859375, 0.0166473388671875, -0.0268707275390625, 0.035888671875, 0.042816162109375, 0.0191192626953125, 0.01546478271484375, 0.01715087890625, -0.00009173154830932617, -0.0225372314453125, 0.0212249755859375, -0.0078887939453125, -0.03271484375, -0.032928466796875, -0.04168701171875, -0.0018815994262695312, 0.04754638671875, -0.020538330078125, 0.0146942138671875, -0.0223236083984375, -0.0162200927734375, -0.02392578125, 0.0413818359375, -0.0165557861328125, 0.006938934326171875, 0.0029392242431640625, -0.038330078125, 0.029510498046875, 0.0260467529296875, 0.016845703125, 0.0213165283203125, -0.033843994140625, 0.033416748046875, 0.02349853515625, -0.017333984375, 0.02252197265625, 0.0335693359375, 0.0162811279296875, 0.038970947265625, -0.01531219482421875, 0.027740478515625, -0.0011644363403320312, 0.00380706787109375, 0.006534576416015625, -0.01557159423828125, 0.03662109375, -0.00323486328125, -0.01155853271484375, 0.0194244384765625, -0.0081024169921875, 0.0303192138671875, 0.036865234375, 0.07440185546875, -0.0872802734375, 0.024444580078125, 0.0291290283203125, -0.0003046989440917969, 0.0239715576171875, 0.019500732421875, -0.029876708984375, -0.0252838134765625, 0.0274658203125, -0.02783203125, -0.00748443603515625, 0.0210113525390625, 0.01012420654296875, 0.00852203369140625, 0.01274871826171875, 0.0199127197265625, -0.007579803466796875, -0.0416259765625, -0.0018634796142578125, 0.0294342041015625, -0.00989532470703125, 0.0228729248046875, 0.024566650390625, -0.0311279296875, -0.0277557373046875, -0.05157470703125, -0.03887939453125, -0.01241302490234375, -0.037567138671875, 0.047271728515625, -0.0115203857421875, 0.005260467529296875, 0.016143798828125, -0.0019378662109375, 0.006072998046875, -0.014984130859375, -0.05218505859375, 0.031402587890625, -0.0404052734375, 0.01052093505859375, 0.06451416015625, -0.09295654296875, 0.015411376953125, -0.007343292236328125, -0.0007834434509277344, 0.0030460357666015625, 0.02093505859375, 0.022613525390625, 0.004192352294921875, -0.023345947265625, 0.05413818359375, 0.02044677734375, -0.0220947265625, 0.0059051513671875, -0.0037288665771484375, -0.031585693359375, 0.00008040666580200195, -0.00014412403106689453, -0.01666259765625, 0.003986358642578125, 0.02264404296875, -0.04095458984375, 0.057830810546875, -0.03765869140625, 0.0178375244140625, 0.031707763671875, 0.0174102783203125, -0.0012378692626953125, 0.01088714599609375, -0.04595947265625, 0.0231781005859375, 0.0114288330078125, 0.05255126953125, -0.052703857421875, -0.01849365234375, -0.003894805908203125, 0.04681396484375, 0.044952392578125, 0.01494598388671875, -0.030670166015625, 0.01448822021484375, 0.056243896484375, 0.025360107421875, -0.00691986083984375, 0.03570556640625, 0.033905029296875, -0.0135955810546875, 0.057647705078125, 0.007015228271484375, 0.0438232421875, -0.032440185546875, 0.0399169921875, 0.047698974609375, -0.00322723388671875, -0.0083160400390625, -0.04144287109375, 0.031646728515625, -0.001125335693359375, -0.04071044921875, 0.0105438232421875, -0.044921875, -0.002964019775390625, 0.041839599609375, -0.0028820037841796875, 0.034210205078125, -0.00868988037109375, -0.018829345703125, 0.026947021484375, -0.024139404296875, -0.006221771240234375, 0.0550537109375, 0.0145111083984375, 0.006011962890625, 0.003459930419921875, 0.006221771240234375, 0.00580596923828125, 0.0203094482421875, 0.068115234375, 0.0386962890625, 0.00519561767578125, 0.01258087158203125, 0.09088134765625, 0.0064697265625, 0.036224365234375, -0.057373046875, -0.019287109375, 0.0019140243530273438, -0.035308837890625, -0.0032138824462890625, -0.032073974609375, -0.014678955078125, -0.028411865234375, -0.032440185546875, -0.0672607421875, 0.016326904296875, 0.0235443115234375, 0.024200439453125, -0.006908416748046875, 0.004608154296875, -0.04718017578125, -0.01189422607421875, -0.030426025390625, -0.0033779144287109375, -0.0223236083984375, 0.07305908203125, 0.026885986328125, 0.047760009765625, -0.05487060546875, -0.037445068359375, 0.005329132080078125, 0.03729248046875, -0.01171875, -0.0085906982421875, -0.0307769775390625, -0.053436279296875, -0.00984954833984375, 0.028839111328125, 0.0176544189453125, 0.0027751922607421875, 0.0167083740234375, 0.0102996826171875, 0.003810882568359375, -0.0028018951416015625, 0.044647216796875, -0.01201629638671875, -0.026641845703125, -0.0207672119140625, -0.00865936279296875, -0.0074615478515625, -0.0048370361328125, -0.015869140625, 0.005802154541015625, 0.006122589111328125, -0.0077972412109375, 0.007434844970703125, 0.0026378631591796875, -0.036346435546875, 0.032928466796875, -0.01812744140625, 0.072021484375, -0.00032019615173339844, -0.04168701171875, -0.0005717277526855469, -0.05206298828125, -0.025909423828125, 0.01013946533203125, 0.02227783203125, -0.01666259765625, 0.051666259765625, -0.0039825439453125, -0.028594970703125, 0.026458740234375, 0.0126953125, 0.0123748779296875, -0.021453857421875, 0.00969696044921875, -0.0189361572265625, 0.0216217041015625, 0.006702423095703125, 0.0173797607421875, 0.016876220703125, 0.03179931640625, 0.05853271484375, -0.024688720703125, 0.01042938232421875, 0.01031494140625, 0.00811004638671875, -0.01328277587890625, -0.0071563720703125, 0.01461029052734375, -0.0129547119140625, 0.005451202392578125, -0.0089874267578125, 0.005847930908203125, -0.003253936767578125, 0.041046142578125, -0.05877685546875, -0.00031876564025878906, -0.01727294921875, 0.0269012451171875, -0.01507568359375, 0.07275390625, -0.023345947265625, -0.05438232421875, -0.0726318359375, -0.0165252685546875, 0.0310211181640625, 0.034393310546875, -0.01016998291015625, -0.0106964111328125, 0.052581787109375, -0.0110626220703125, 0.024871826171875, 0.01331329345703125, 0.07818603515625, 0.052093505859375, -0.0374755859375, 0.026275634765625, -0.0258636474609375, -0.0311431884765625, 0.01029205322265625, -0.0008087158203125, -0.0230255126953125, -0.01363372802734375, -0.02545166015625, -0.04010009765625, -0.011383056640625, -0.00582122802734375, -0.02880859375, -0.019317626953125, 0.0297393798828125, -0.038818359375, -0.01324462890625, -0.0298614501953125, -0.0279541015625, -0.0164794921875, -0.024658203125, -0.01248931884765625, 0.010498046875, -0.056182861328125, -0.0167083740234375, 0.0011739730834960938, 0.02752685546875, -0.0021514892578125, -0.048065185546875, 0.0245208740234375, -0.0277862548828125, 0.033843994140625, -0.0181884765625, -0.052276611328125, 0.03192138671875, 0.0294189453125, -0.0174102783203125, -0.0258026123046875, -0.02166748046875, -0.006694793701171875, -0.0262298583984375, 0.0217742919921875, 0.032318115234375, -0.018890380859375, -0.003551483154296875, 0.039794921875, 0.00907135009765625, 0.07464599609375, -0.0391845703125, -0.04046630859375, 0.01006317138671875, 0.016693115234375, -0.01432037353515625, -0.056182861328125, 0.018402099609375, -0.054901123046875, 0.02032470703125, 0.0204620361328125, -0.026092529296875, 0.00431060791015625, -0.03887939453125, -0.0634765625, 0.05108642578125, 0.003101348876953125, -0.01953125, -0.0245361328125, 0.0211029052734375, -0.03228759765625, 0.0743408203125, 0.01097869873046875, -0.026031494140625, -0.0005092620849609375, 0.013092041015625, -0.0101470947265625, -0.009002685546875, 0.0186309814453125, -0.02423095703125, -0.046539306640625, -0.00858306884765625, 0.00811004638671875, -0.01506805419921875, 0.0122528076171875, -0.031646728515625, 0.02874755859375, 0.033935546875, -0.01395416259765625, -0.054412841796875, -0.0097503662109375, -0.029266357421875, 0.017059326171875, -0.01824951171875, -0.00571441650390625, -0.051116943359375, 0.01424407958984375, -0.020477294921875, 0.002330780029296875, 0.0254364013671875, 0.0012531280517578125, 0.0166778564453125, -0.002712249755859375, 0.0015716552734375, 0.00708770751953125, -0.04461669921875, -0.004627227783203125, 0.01202392578125, -0.01331329345703125, 0.048187255859375, 0.021820068359375, -0.03375244140625, 0.0112762451171875, 0.004913330078125, -0.011962890625, -0.09576416015625, -0.01374053955078125, 0.008148193359375, -0.0242462158203125, -0.0237884521484375, -0.0063323974609375, 0.0139007568359375, -0.01505279541015625, 0.000591278076171875, -0.0169677734375, 0.0160980224609375, -0.005001068115234375, -0.011962890625, 0.0152740478515625, 0.01251983642578125, 0.0226287841796875, 0.0134124755859375, -0.022857666015625, 0.017120361328125, -0.00756072998046875, 0.0017271041870117188, 0.036224365234375, 0.00872802734375, 0.01593017578125, 0.039703369140625, -0.0139923095703125, 0.050628662109375, -0.0010004043579101562, 0.03424072265625, 0.003662109375, -0.002410888671875, 0.03277587890625, -0.02044677734375, -0.010589599609375, 0.006229400634765625, -0.051300048828125, -0.0204315185546875, -0.00962066650390625, 0.0243072509765625, -0.01160430908203125, 0.00936126708984375 ]
27970f655e06649db678ba81bde695bf3f0a5a69
Wordpress Stackexchange Q: Allow all attributes in $allowedposttags tags I would like to use $allowedposttags to allow extra HTML tags during entry submission. Can I allow all attributes for a specific tag using $allowedposttags? For example, the code below will allow iframe tags and the src, height, and width attributes in the iframe tags: $allowedposttags['iframe'] = array( 'src' => array(), 'height' => array(), 'width' => array() ); How can I allow all attributes in this example, not just src, height, and width? A: I'm pretty sure you have to explicitly name all allowed attributes - just use: $allowedposttags['iframe'] = array ( 'align' => true, 'frameborder' => true, 'height' => true, 'width' => true, 'sandbox' => true, 'seamless' => true, 'scrolling' => true, 'srcdoc' => true, 'src' => true, 'class' => true, 'id' => true, 'style' => true, 'border' => true, ); If you can think of others let me know!
Q: Allow all attributes in $allowedposttags tags I would like to use $allowedposttags to allow extra HTML tags during entry submission. Can I allow all attributes for a specific tag using $allowedposttags? For example, the code below will allow iframe tags and the src, height, and width attributes in the iframe tags: $allowedposttags['iframe'] = array( 'src' => array(), 'height' => array(), 'width' => array() ); How can I allow all attributes in this example, not just src, height, and width? A: I'm pretty sure you have to explicitly name all allowed attributes - just use: $allowedposttags['iframe'] = array ( 'align' => true, 'frameborder' => true, 'height' => true, 'width' => true, 'sandbox' => true, 'seamless' => true, 'scrolling' => true, 'srcdoc' => true, 'src' => true, 'class' => true, 'id' => true, 'style' => true, 'border' => true, ); If you can think of others let me know!
wordpress
{ "language": "en", "length": 148, "provenance": "stackexchange_00019.jsonl.gz:425727", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72353" }
[ 0.09375, -0.035125732421875, 0.011444091796875, -0.0247802734375, 0.01477813720703125, -0.03302001953125, 0.07147216796875, -0.011749267578125, -0.0289154052734375, 0.0364990234375, -0.022308349609375, 0.0205841064453125, 0.015380859375, -0.00974273681640625, 0.0132904052734375, -0.006591796875, 0.01800537109375, -0.00981903076171875, 0.0008411407470703125, -0.0229339599609375, 0.0099639892578125, -0.006389617919921875, -0.0006589889526367188, 0.06512451171875, 0.037109375, -0.0189361572265625, 0.007755279541015625, 0.006015777587890625, 0.0120849609375, 0.006160736083984375, 0.0215301513671875, -0.0193939208984375, 0.0333251953125, 0.030487060546875, -0.05780029296875, 0.026580810546875, 0.01445770263671875, 0.01161956787109375, 0.00033092498779296875, 0.0208740234375, 0.0400390625, -0.0234527587890625, 0.038848876953125, 0.0143585205078125, 0.0014972686767578125, -0.01294708251953125, 0.051544189453125, -0.036224365234375, 0.0069427490234375, -0.0116424560546875, 0.0020275115966796875, 0.0012187957763671875, 0.03143310546875, -0.043701171875, -0.02276611328125, 0.01154327392578125, -0.00261688232421875, -0.043670654296875, 0.0413818359375, 0.0252685546875, -0.0377197265625, -0.04339599609375, 0.017059326171875, -0.06134033203125, -0.0005960464477539062, -0.018341064453125, 0.00997161865234375, 0.00815582275390625, -0.037139892578125, -0.0015316009521484375, 0.058563232421875, -0.0271453857421875, 0.00980377197265625, -0.021392822265625, 0.0213165283203125, -0.016448974609375, -0.004947662353515625, -0.01439666748046875, 0.012969970703125, -0.0084991455078125, 0.00765228271484375, -0.00679779052734375, 0.0265655517578125, -0.0188751220703125, -0.018524169921875, -0.008636474609375, -0.0089263916015625, -0.0038852691650390625, 0.0011348724365234375, -0.028533935546875, -0.0177001953125, -0.03167724609375, -0.005138397216796875, 0.01474761962890625, -0.0135040283203125, -0.0340576171875, 0.01438140869140625, 0.01399993896484375, -0.0029659271240234375, 0.016571044921875, -0.0017747879028320312, -0.05615234375, 0.04595947265625, -0.031982421875, 0.0107421875, 0.05108642578125, 0.0024261474609375, -0.0047760009765625, 0.0361328125, 0.01123809814453125, 0.0110321044921875, -0.007106781005859375, 0.0058441162109375, 0.040252685546875, -0.0660400390625, -0.01611328125, -0.014801025390625, -0.0208282470703125, -0.04254150390625, -0.004398345947265625, -0.01227569580078125, 0.015228271484375, 0.009613037109375, -0.0085906982421875, 0.031280517578125, 0.045867919921875, 0.01119232177734375, -0.0419921875, -0.01421356201171875, 0.033050537109375, -0.000020802021026611328, 0.01068115234375, -0.0239715576171875, -0.0142364501953125, -0.041046142578125, -0.0098419189453125, 0.0125732421875, -0.052947998046875, -0.03497314453125, 0.0303955078125, -0.03314208984375, -0.0462646484375, 0.0011692047119140625, -0.033721923828125, -0.0184173583984375, 0.00926971435546875, 0.0308837890625, 0.0185699462890625, -0.0308837890625, -0.0833740234375, 0.06072998046875, -0.0382080078125, 0.03643798828125, 0.01312255859375, -0.04010009765625, -0.030487060546875, 0.055419921875, -0.05194091796875, -0.0174407958984375, -0.07708740234375, -0.0105133056640625, 0.0040283203125, 0.07733154296875, -0.0300750732421875, -0.0164947509765625, -0.0176544189453125, -0.0706787109375, -0.0090179443359375, 0.0233154296875, 0.0662841796875, -0.032989501953125, -0.00020229816436767578, 0.021514892578125, 0.0167694091796875, -0.01568603515625, 0.01043701171875, 0.003620147705078125, 0.008758544921875, 0.0169219970703125, 0.016082763671875, 0.00994873046875, -0.0255126953125, 0.0550537109375, -0.0093536376953125, -0.045989990234375, 0.01294708251953125, 0.01293182373046875, 0.035552978515625, 0.02496337890625, 0.020965576171875, 0.043121337890625, -0.00778961181640625, 0.0118865966796875, 0.0163421630859375, 0.010955810546875, -0.03662109375, -0.0305633544921875, -0.00868988037109375, -0.01445770263671875, -0.00818634033203125, 0.0504150390625, -0.02740478515625, 0.043426513671875, -0.026336669921875, 0.0248870849609375, -0.016387939453125, -0.0011043548583984375, 0.0161285400390625, -0.025543212890625, 0.0165252685546875, 0.024139404296875, -0.01349639892578125, -0.028411865234375, 0.0292816162109375, 0.00311279296875, -0.01358795166015625, 0.01345062255859375, 0.043548583984375, -0.00011873245239257812, 0.010040283203125, 0.022308349609375, -0.05133056640625, 0.021820068359375, 0.05242919921875, 0.049591064453125, 0.0028705596923828125, 0.00597381591796875, -0.0164794921875, 0.03961181640625, 0.04364013671875, -0.04437255859375, -0.019195556640625, -0.0009064674377441406, 0.0235137939453125, -0.01180267333984375, -0.0240631103515625, -0.017791748046875, -0.059661865234375, 0.025787353515625, 0.04840087890625, 0.0229034423828125, 0.07196044921875, -0.02294921875, -0.0027637481689453125, 0.03778076171875, -0.001605987548828125, 0.0156402587890625, -0.01519775390625, -0.01119232177734375, -0.002285003662109375, -0.00951385498046875, -0.00482940673828125, 0.0418701171875, -0.0173797607421875, 0.0009393692016601562, 0.0447998046875, -0.01546478271484375, 0.022705078125, -0.05560302734375, 0.0445556640625, -0.01399993896484375, 0.04302978515625, 0.042633056640625, -0.0172882080078125, 0.049346923828125, 0.0254974365234375, 0.0254974365234375, 0.02227783203125, -0.047637939453125, 0.042877197265625, 0.021759033203125, -0.0155487060546875, 0.0006909370422363281, 0.04840087890625, 0.06024169921875, 0.0145263671875, -0.0631103515625, -0.0097198486328125, 0.0287017822265625, 0.03546142578125, 0.006107330322265625, 0.05340576171875, 0.00795745849609375, -0.00628662109375, -0.027618408203125, -0.054840087890625, -0.005092620849609375, 0.038665771484375, 0.00945281982421875, -0.017913818359375, 0.010955810546875, 0.016143798828125, -0.0115203857421875, 0.034088134765625, 0.0272674560546875, -0.021820068359375, -0.055694580078125, -0.05902099609375, 0.041717529296875, -0.0190582275390625, 0.05267333984375, 0.08740234375, 0.02789306640625, 0.0033931732177734375, -0.0022296905517578125, -0.017120361328125, -0.0133056640625, 0.0211334228515625, -0.005985260009765625, -0.034576416015625, -0.035797119140625, 0.007415771484375, 0.0198974609375, -0.0134429931640625, 0.034576416015625, -0.008148193359375, -0.00762939453125, 0.0177764892578125, -0.06768798828125, -0.0177459716796875, 0.0518798828125, -0.1107177734375, -0.02471923828125, -0.01629638671875, -0.0721435546875, -0.01248931884765625, 0.043060302734375, -0.01800537109375, -0.04608154296875, 0.0233306884765625, -0.0220947265625, -0.00351715087890625, -0.0293121337890625, 0.034942626953125, -0.006114959716796875, 0.017608642578125, 0.00299835205078125, 0.01255035400390625, -0.01055145263671875, -0.0268707275390625, 0.006320953369140625, -0.0152587890625, -0.0217132568359375, -0.0271453857421875, 0.005321502685546875, -0.02099609375, -0.0084991455078125, -0.01044464111328125, -0.023284912109375, 0.019927978515625, -0.0016021728515625, -0.00463104248046875, -0.009185791015625, 0.0104827880859375, 0.01800537109375, 0.0318603515625, 0.008544921875, 0.01010894775390625, 0.0250091552734375, -0.02960205078125, -0.0322265625, -0.006343841552734375, -0.061004638671875, -0.054107666015625, 0.0189666748046875, 0.01477813720703125, -0.00713348388671875, -0.022796630859375, 0.023101806640625, 0.01013946533203125, 0.035003662109375, -0.01666259765625, 0.012939453125, -0.00665283203125, -0.00611114501953125, -0.02459716796875, -0.013946533203125, -0.039031982421875, 0.0272674560546875, -0.01230621337890625, -0.0198211669921875, -0.022735595703125, -0.0020389556884765625, -0.0215606689453125, -0.01508331298828125, 0.03485107421875, -0.025604248046875, 0.0249786376953125, -0.0228118896484375, -0.00849151611328125, -0.0078277587890625, 0.04840087890625, 0.004970550537109375, -0.0189971923828125, -0.034759521484375, 0.0026721954345703125, -0.0179595947265625, -0.0498046875, 0.00927734375, 0.00490570068359375, -0.01035308837890625, 0.004974365234375, -0.021636962890625, -0.00323486328125, -0.0230865478515625, -0.01316070556640625, -0.0024166107177734375, -0.0225067138671875, 0.01366424560546875, 0.0205230712890625, -0.0032253265380859375, 0.004878997802734375, 0.0059661865234375, -0.004070281982421875, 0.0008525848388671875, -0.0067138671875, -0.11553955078125, -0.01812744140625, -0.01042938232421875, 0.07354736328125, -0.007602691650390625, -0.004558563232421875, -0.03619384765625, 0.05047607421875, -0.033203125, 0.00952911376953125, -0.0003809928894042969, 0.04931640625, -0.039154052734375, -0.01154327392578125, -0.008209228515625, -0.032379150390625, -0.0162353515625, 0.00820159912109375, 0.00453948974609375, 0.025360107421875, -0.01416778564453125, -0.04345703125, 0.01456451416015625, -0.018096923828125, -0.038421630859375, -0.041107177734375, -0.01346588134765625, 0.0011491775512695312, -0.006191253662109375, -0.006587982177734375, -0.0289459228515625, -0.0269012451171875, 0.054534912109375, 0.058929443359375, 0.0006361007690429688, -0.01219940185546875, 0.08099365234375, 0.00836181640625, -0.045928955078125, -0.06756591796875, -0.0154266357421875, 0.04132080078125, -0.0245361328125, 0.048583984375, 0.03546142578125, -0.027587890625, 0.046356201171875, 0.01187896728515625, 0.0145263671875, -0.0178680419921875, 0.0244903564453125, 0.002582550048828125, -0.005901336669921875, 0.0010595321655273438, 0.029052734375, 0.0092010498046875, -0.01378631591796875, -0.01325225830078125, 0.0031414031982421875, -0.006969451904296875, 0.0255584716796875, 0.0139617919921875, -0.004924774169921875, -0.030792236328125, 0.0198822021484375, -0.005344390869140625, 0.079345703125, 0.0033817291259765625, 0.035614013671875, -0.0016965866088867188, -0.048828125, -0.029052734375, -0.00366973876953125, -0.019744873046875, 0.00012671947479248047, -0.006732940673828125, 0.0157623291015625, 0.006282806396484375, -0.0051727294921875, -0.01325225830078125, -0.0040130615234375, 0.00772857666015625, 0.005016326904296875, -0.023223876953125, 0.0038776397705078125, -0.0024318695068359375, 0.03411865234375, -0.0143585205078125, -0.0190277099609375, 0.005832672119140625, 0.0214080810546875, 0.004100799560546875, 0.01087188720703125, 0.0084381103515625, -0.006130218505859375, -0.021209716796875, -0.0142974853515625, -0.011383056640625, -0.00936126708984375, 0.0027561187744140625, 0.020660400390625, 0.0137939453125, -0.0009398460388183594, -0.023681640625, 0.0296783447265625, 0.041839599609375, 0.019378662109375, 0.019073486328125, -0.01367950439453125, -0.0252685546875, 0.007411956787109375, -0.00885009765625, -0.040435791015625, 0.00909423828125, -0.00384521484375, 0.05828857421875, -0.0196990966796875, -0.048065185546875, 0.0467529296875, -0.039825439453125, -0.0224151611328125, 0.012420654296875, 0.0271453857421875, -0.034881591796875, 0.006000518798828125, 0.01560211181640625, -0.0027675628662109375, 0.01197052001953125, -0.0015325546264648438, -0.008453369140625, -0.0294342041015625, 0.0060577392578125, -0.00992584228515625, -0.01412200927734375, -0.0009603500366210938, -0.007083892822265625, -0.02978515625, -0.0207366943359375, -0.033599853515625, -0.010101318359375, -0.01441192626953125, -0.0172576904296875, -0.0308990478515625, 0.047393798828125, -0.01204681396484375, 0.0457763671875, -0.0081329345703125, -0.037872314453125, 0.017425537109375, 0.01120758056640625, 0.0220794677734375, 0.0045013427734375, -0.0699462890625, 0.0077972412109375, -0.059417724609375, -0.017608642578125, -0.0192108154296875, -0.0280609130859375, -0.0313720703125, -0.0100250244140625, 0.01532745361328125, 0.0283660888671875, -0.014129638671875, -0.0099945068359375, 0.022857666015625, 0.024322509765625, -0.015960693359375, 0.08001708984375, -0.039276123046875, 0.037261962890625, -0.0040740966796875, 0.021942138671875, -0.0186920166015625, 0.0134124755859375, 0.00803375244140625, -0.01372528076171875, 0.00040030479431152344, -0.074462890625, -0.035888671875, 0.01302337646484375, -0.035003662109375, 0.03509521484375, 0.038543701171875, 0.004459381103515625, 0.0081939697265625, -0.05029296875, -0.010101318359375, -0.01971435546875, 0.08905029296875, -0.05841064453125, -0.0145721435546875, 0.040313720703125, 0.0036792755126953125, 0.01236724853515625, -0.0120086669921875, -0.01605224609375, 0.0093231201171875, 0.018035888671875, 0.019989013671875, -0.033538818359375, 0.0012493133544921875, -0.025115966796875, 0.051910400390625, 0.0157928466796875, 0.057220458984375, 0.005542755126953125, 0.0284423828125, 0.061004638671875, 0.019287109375, -0.035980224609375, -0.030426025390625, 0.0276947021484375, -0.0023975372314453125, -0.0122833251953125, 0.01082611083984375, -0.012542724609375, 0.01363372802734375, -0.002285003662109375, 0.0308990478515625, -0.043304443359375, 0.023895263671875, 0.0057525634765625, -0.0054168701171875, 0.023956298828125, -0.0033721923828125, 0.01444244384765625, -0.0006041526794433594, 0.01177978515625, 0.0013017654418945312, -0.0238800048828125, -0.003185272216796875, 0.0007510185241699219, 0.020538330078125, -0.0190277099609375, 0.05023193359375, -0.005123138427734375, -0.07171630859375, -0.01026153564453125, 0.041168212890625, -0.020050048828125, 0.011077880859375, 0.01763916015625, -0.0268096923828125, -0.034210205078125, -0.025634765625, -0.0192718505859375, -0.0280609130859375, -0.0168914794921875, 0.0010881423950195312, -0.020263671875, 0.0280303955078125, 0.024200439453125, -0.00722503662109375, 0.01178741455078125, -0.01450347900390625, 0.008087158203125, -0.05084228515625, -0.0213470458984375, -0.0054931640625, 0.008270263671875, 0.038055419921875, 0.0309906005859375, 0.01111602783203125, -0.0472412109375, -0.0019159317016601562, -0.0006704330444335938, -0.005401611328125, 0.05072021484375, -0.045562744140625, 0.0445556640625, 0.03717041015625, -0.0219573974609375, -0.01111602783203125, -0.036865234375, -0.0670166015625, -0.0333251953125, -0.0287322998046875, -0.05316162109375, 0.0184478759765625, -0.0377197265625, -0.12469482421875, 0.1070556640625, 0.057586669921875, 0.07861328125, -0.0132904052734375, 0.0267791748046875, -0.039306640625, -0.0217742919921875, -0.0111236572265625, -0.0192413330078125, -0.0251617431640625, -0.0036067962646484375, -0.0202178955078125, 0.01296234130859375, -0.0181884765625, 0.0175323486328125, -0.0105743408203125, -0.0091705322265625, -0.03948974609375, 0.0078125, 0.05902099609375, 0.059478759765625, 0.042938232421875, 0.0101318359375, -0.0117950439453125, 0.02734375, 0.0067291259765625, -0.07958984375, 0.00962066650390625, -0.04937744140625, 0.0087127685546875, 0.0191192626953125, 0.0027675628662109375, -0.000667572021484375, -0.0147705078125, -0.053497314453125, -0.001689910888671875, 0.004756927490234375, -0.0172576904296875, 0.02288818359375, -0.0163726806640625, 0.0219268798828125, 0.01306915283203125, -0.060943603515625, -0.036651611328125, -0.01476287841796875, 0.0288848876953125, 0.0133209228515625, 0.020751953125, -0.009063720703125, 0.00316619873046875, 0.051788330078125, 0.0196533203125, 0.01262664794921875, 0.04791259765625, 0.01727294921875, -0.01580810546875, -0.014129638671875, -0.01009368896484375, -0.08367919921875, -0.0100250244140625, 0.067626953125, 0.0077056884765625, -0.0186004638671875, 0.0287322998046875, 0.003673553466796875, 0.01468658447265625, -0.0135345458984375, -0.0259246826171875, 0.031585693359375, 0.0288238525390625, 0.01222991943359375, -0.042449951171875, 0.01065826416015625, 0.037139892578125, 0.06427001953125, 0.0257110595703125, 0.0478515625, -0.10986328125, -0.034393310546875, -0.03497314453125, -0.031829833984375, 0.0162353515625, 0.0665283203125, 0.047698974609375, 0.0350341796875, -0.004673004150390625, -0.03533935546875, -0.0201263427734375, 0.0372314453125, 0.00853729248046875, -0.0010271072387695312, -0.01335906982421875, -0.0282135009765625, -0.0015821456909179688, 0.0252685546875, -0.01165771484375, 0.0006203651428222656, 0.01439666748046875, -0.007732391357421875, -0.05596923828125, -0.006717681884765625, 0.027679443359375, -0.040863037109375, 0.0010423660278320312, -0.0301513671875, 0.002285003662109375, 0.022003173828125, -0.0299530029296875, 0.01055145263671875, -0.027496337890625, 0.057281494140625, 0.0176544189453125, 0.01276397705078125, 0.01427459716796875, 0.00653076171875, 0.00803375244140625, 0.015869140625, -0.004673004150390625, 0.0523681640625, -0.08062744140625, -0.0107269287109375, -0.07098388671875, -0.0277252197265625, 0.037109375, 0.03265380859375, -0.0278167724609375, 0.044403076171875, 0.04730224609375, -0.07147216796875, 0.02569580078125, 0.040557861328125, 0.0194091796875, 0.06976318359375, 0.0044097900390625, 0.0185546875, -0.0255889892578125, -0.0152740478515625, 0.0244598388671875, 0.0282745361328125, -0.001560211181640625, 0.036407470703125, -0.004688262939453125, -0.01119232177734375, 0.0038280487060546875, 0.036590576171875, -0.042999267578125, -0.025665283203125, 0.0711669921875, -0.03387451171875, -0.01412200927734375, -0.01406097412109375, -0.0286407470703125, 0.0599365234375, -0.011260986328125, -0.00200653076171875, 0.040802001953125, -0.024505615234375, -0.0161895751953125, 0.0024852752685546875, 0.047454833984375, -0.0222015380859375, -0.08270263671875, -0.081787109375, 0.007373809814453125, -0.00033593177795410156, 0.04364013671875, 0.0070648193359375, 0.07061767578125, -0.01020050048828125, 0.021392822265625, 0.005878448486328125, -0.031829833984375, -0.015899658203125, 0.0179290771484375, -0.0228271484375, -0.055419921875, 0.04791259765625, -0.01096343994140625, 0.01512908935546875, 0.019622802734375, 0.05462646484375, 0.03558349609375, -0.0308074951171875, 0.044036865234375, 0.10211181640625, 0.0948486328125, 0.0208892822265625, 0.0341796875, 0.040802001953125, -0.032073974609375, 0.0123291015625, -0.003734588623046875, -0.031829833984375, -0.045440673828125, -0.0080413818359375, 0.0198516845703125, -0.032440185546875, -0.0638427734375, -0.07470703125, -0.011016845703125, 0.042694091796875, -0.011444091796875, 0.00000286102294921875, -0.0380859375, -0.0254669189453125, 0.046417236328125, 0.00811004638671875, -0.0174407958984375, -0.00391387939453125, -0.00530242919921875, -0.0183868408203125, 0.0009775161743164062, -0.0355224609375, 0.034515380859375, -0.001941680908203125, 0.05426025390625, 0.043609619140625, -0.04815673828125, -0.006610870361328125, 0.038299560546875, 0.05511474609375, 0.06658935546875, 0.00675201416015625, -0.00965118408203125, 0.0024852752685546875, 0.0168609619140625, -0.00983428955078125, -0.08538818359375, -0.0105743408203125, -0.06781005859375, -0.0031719207763671875, -0.01337432861328125, -0.007770538330078125, 0.00147247314453125, -0.0287628173828125, -0.07586669921875, 0.05328369140625, -0.00937652587890625, -0.0216827392578125, 0.012237548828125, 0.0133514404296875, 0.00670623779296875, 0.0303497314453125, 0.021453857421875, -0.032623291015625, -0.01177215576171875, -0.023468017578125, 0.00725555419921875, -0.023895263671875, 0.05828857421875, -0.043426513671875, -0.0479736328125, -0.0061187744140625, 0.01107025146484375, -0.0005927085876464844, 0.00823211669921875, -0.026031494140625, 0.039520263671875, 0.007598876953125, -0.039154052734375, -0.01157379150390625, 0.0197296142578125, 0.0107421875, 0.013702392578125, -0.051300048828125, -0.04742431640625, -0.046600341796875, 0.050750732421875, 0.041961669921875, 0.021881103515625, -0.01093292236328125, 0.0029449462890625, -0.03460693359375, -0.023284912109375, 0.007511138916015625, 0.01207733154296875, -0.052093505859375, -0.0019989013671875, 0.0191497802734375, 0.016265869140625, -0.0025920867919921875, -0.01287841796875, -0.013214111328125, -0.024139404296875, 0.006114959716796875, 0.0161285400390625, -0.0469970703125, 0.06976318359375, 0.0174407958984375, -0.03765869140625, -0.01113128662109375, -0.044891357421875, -0.00749969482421875, -0.0075225830078125, -0.087158203125, -0.006427764892578125, 0.001880645751953125, 0.0021877288818359375, 0.019927978515625, 0.020233154296875, 0.037139892578125, 0.0089263916015625, -0.0075225830078125, -0.01178741455078125, 0.0126495361328125, 0.01404571533203125, 0.021820068359375, -0.004558563232421875, -0.00907135009765625, 0.0026092529296875, 0.01092529296875, -0.02899169921875, -0.0158538818359375, -0.007122039794921875, -0.0096435546875, -0.01050567626953125, 0.0212249755859375, 0.03924560546875, -0.0195159912109375, 0.011932373046875, 0.0220794677734375, 0.026947021484375, -0.01165771484375, 0.030609130859375, 0.01325225830078125, 0.0092926025390625, 0.009613037109375 ]
440bea23598cfa322d3284f3f874afcc24edf5dc
Wordpress Stackexchange Q: roots child theme can't override header.php I made a child theme for roots and it worked as expected. I can override everything, including footer.php, but not header.php. My header.php looks exactly like the one from roots at the moment, except for the blog title, which I replaced. I googled it, but it seems that I'm the only one facing this problem. A: Just to clarify, are you referring to this theme? If so, it doesn't appear to use the architecture of a typical theme - you'll need to copy roots/templates/head.php to child/templates/head.php and modify accordingly.
Q: roots child theme can't override header.php I made a child theme for roots and it worked as expected. I can override everything, including footer.php, but not header.php. My header.php looks exactly like the one from roots at the moment, except for the blog title, which I replaced. I googled it, but it seems that I'm the only one facing this problem. A: Just to clarify, are you referring to this theme? If so, it doesn't appear to use the architecture of a typical theme - you'll need to copy roots/templates/head.php to child/templates/head.php and modify accordingly.
wordpress
{ "language": "en", "length": 96, "provenance": "stackexchange_00019.jsonl.gz:425777", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72510" }
[ 0.04046630859375, 0.01273345947265625, 0.0006213188171386719, 0.0018167495727539062, 0.0220184326171875, -0.028961181640625, 0.032257080078125, -0.047393798828125, 0.0028018951416015625, 0.0189208984375, -0.01611328125, 0.0006127357482910156, -0.0012645721435546875, -0.0160064697265625, -0.016632080078125, -0.02679443359375, 0.032318115234375, -0.006160736083984375, 0.049224853515625, 0.0006203651428222656, 0.0220947265625, 0.027923583984375, 0.03240966796875, 0.027923583984375, 0.0234222412109375, -0.06787109375, 0.047119140625, -0.00809478759765625, 0.01123046875, -0.019195556640625, 0.0091400146484375, 0.0143585205078125, 0.0172882080078125, 0.03643798828125, -0.039154052734375, -0.044525146484375, 0.0205841064453125, -0.0017862319946289062, -0.004302978515625, 0.017913818359375, 0.054290771484375, -0.0340576171875, -0.03125, 0.0679931640625, -0.0255584716796875, -0.0645751953125, 0.049896240234375, -0.047271728515625, 0.0220947265625, -0.005859375, -0.00951385498046875, 0.0296630859375, -0.01197052001953125, 0.00307464599609375, -0.010772705078125, -0.01110076904296875, 0.001739501953125, 0.01198577880859375, 0.047271728515625, -0.06793212890625, -0.04541015625, -0.0235595703125, 0.050140380859375, 0.0264739990234375, 0.00714111328125, -0.024993896484375, 0.0238800048828125, 0.0168609619140625, -0.0653076171875, 0.01235198974609375, 0.060943603515625, -0.0134735107421875, 0.0258026123046875, 0.004486083984375, -0.034881591796875, -0.06707763671875, 0.0165252685546875, -0.03778076171875, 0.02789306640625, -0.01275634765625, -0.0258026123046875, 0.022857666015625, -0.034454345703125, -0.037933349609375, 0.0024852752685546875, -0.0094451904296875, -0.0265655517578125, -0.0096588134765625, -0.06671142578125, -0.01959228515625, -0.0308990478515625, -0.01244354248046875, -0.06390380859375, 0.006679534912109375, 0.006366729736328125, -0.004642486572265625, 0.027618408203125, 0.037139892578125, -0.039276123046875, 0.009735107421875, -0.005496978759765625, -0.021881103515625, 0.0506591796875, -0.045623779296875, -0.0241241455078125, -0.02117919921875, -0.00664520263671875, 0.0264892578125, 0.0280609130859375, 0.07489013671875, -0.021881103515625, 0.013427734375, -0.0226287841796875, -0.02557373046875, -0.0038738250732421875, 0.04498291015625, -0.0295562744140625, 0.01641845703125, 0.0111236572265625, 0.037109375, 0.018951416015625, 0.0310516357421875, 0.01299285888671875, -0.0176544189453125, -0.0141143798828125, -0.01080322265625, -0.0282745361328125, -0.04193115234375, 0.05841064453125, 0.01922607421875, -0.0251617431640625, -0.01508331298828125, 0.0114593505859375, -0.003292083740234375, 0.007419586181640625, -0.020477294921875, 0.048248291015625, 0.00264739990234375, 0.00482177734375, -0.00904083251953125, 0.01493072509765625, -0.017486572265625, -0.019989013671875, 0.0121002197265625, -0.01291656494140625, 0.0036773681640625, 0.006011962890625, 0.019287109375, 0.009796142578125, -0.0221710205078125, 0.00823211669921875, -0.050750732421875, 0.0293731689453125, -0.0182037353515625, 0.0155029296875, -0.043670654296875, -0.0183868408203125, -0.0193634033203125, 0.01374053955078125, -0.00487518310546875, -0.0172576904296875, -0.021942138671875, 0.026702880859375, -0.03277587890625, -0.0743408203125, 0.031402587890625, -0.01303863525390625, -0.015655517578125, 0.01218414306640625, -0.043701171875, 0.057098388671875, -0.0005588531494140625, -0.028900146484375, 0.0019207000732421875, 0.03887939453125, 0.0177764892578125, -0.051025390625, 0.0121307373046875, 0.008026123046875, 0.0202484130859375, 0.0069732666015625, -0.047576904296875, -0.04266357421875, 0.04315185546875, -0.043182373046875, 0.0162200927734375, 0.0037326812744140625, 0.0179290771484375, 0.01317596435546875, 0.01381683349609375, 0.0369873046875, 0.0172271728515625, -0.06427001953125, 0.062744140625, 0.0021648406982421875, -0.029296875, -0.0133819580078125, 0.004589080810546875, -0.0033206939697265625, -0.045318603515625, -0.01690673828125, -0.0013265609741210938, 0.00811004638671875, 0.034881591796875, 0.01873779296875, -0.005687713623046875, -0.00905609130859375, 0.00028634071350097656, 0.037017822265625, 0.061798095703125, 0.0022716522216796875, 0.0286102294921875, -0.023345947265625, -0.041961669921875, -0.0274505615234375, -0.0211334228515625, 0.00533294677734375, 0.02032470703125, 0.01033782958984375, -0.005420684814453125, 0.0077667236328125, 0.009307861328125, -0.006908416748046875, 0.004302978515625, 0.0221710205078125, -0.0095672607421875, -0.004436492919921875, -0.00908660888671875, 0.01080322265625, 0.0408935546875, -0.0684814453125, -0.01143646240234375, -0.0275115966796875, -0.0042572021484375, -0.04864501953125, -0.0182647705078125, -0.041839599609375, -0.0212860107421875, -0.00008463859558105469, 0.053558349609375, 0.027099609375, 0.046722412109375, -0.0274810791015625, 0.01021575927734375, 0.06494140625, -0.01422882080078125, -0.0017518997192382812, -0.0092620849609375, 0.011199951171875, 0.0189361572265625, 0.01898193359375, -0.032318115234375, 0.02374267578125, -0.06390380859375, 0.0210723876953125, 0.03515625, 0.0240325927734375, -0.032470703125, -0.0018415451049804688, 0.0272369384765625, 0.0231475830078125, 0.0426025390625, -0.048187255859375, 0.04705810546875, 0.061279296875, 0.005138397216796875, 0.034454345703125, 0.0250244140625, -0.035247802734375, -0.0019626617431640625, 0.022430419921875, -0.004444122314453125, 0.030181884765625, 0.0631103515625, 0.014068603515625, -0.005290985107421875, 0.00527191162109375, -0.035430908203125, -0.002086639404296875, 0.0309600830078125, 0.0135498046875, 0.0239105224609375, -0.0207672119140625, -0.0005021095275878906, 0.018646240234375, -0.0027923583984375, 0.002902984619140625, 0.06414794921875, 0.0333251953125, 0.0367431640625, 0.027435302734375, 0.028045654296875, -0.0170135498046875, 0.047698974609375, -0.00017142295837402344, 0.002361297607421875, -0.0251312255859375, -0.0416259765625, 0.049560546875, -0.030059814453125, 0.0030002593994140625, 0.0616455078125, 0.021820068359375, -0.0191802978515625, -0.01006317138671875, -0.0018720626831054688, -0.0005636215209960938, 0.00209808349609375, -0.02001953125, -0.0265655517578125, -0.032257080078125, -0.0105133056640625, 0.04217529296875, 0.09228515625, 0.0194091796875, -0.033447265625, 0.0033359527587890625, 0.06536865234375, -0.0206298828125, -0.062744140625, -0.0237884521484375, -0.032684326171875, 0.0144805908203125, -0.0293731689453125, -0.00394439697265625, -0.01690673828125, -0.0309600830078125, 0.0149688720703125, -0.005802154541015625, -0.05523681640625, -0.00968170166015625, -0.080078125, -0.06610107421875, -0.0616455078125, 0.01557159423828125, 0.00681304931640625, 0.0031833648681640625, -0.01122283935546875, -0.0187835693359375, -0.0562744140625, -0.018218994140625, 0.03863525390625, 0.00031566619873046875, -0.0028133392333984375, 0.0083770751953125, -0.02178955078125, -0.031646728515625, 0.018768310546875, -0.02679443359375, -0.0136871337890625, -0.002071380615234375, -0.0182952880859375, -0.032745361328125, -0.035491943359375, -0.035736083984375, 0.037750244140625, 0.04534912109375, -0.07379150390625, -0.0292510986328125, -0.083984375, -0.0916748046875, -0.0012865066528320312, -0.08648681640625, 0.0430908203125, 0.054046630859375, 0.01151275634765625, -0.0283966064453125, 0.0406494140625, 0.0246124267578125, -0.00946807861328125, -0.01129913330078125, -0.037261962890625, 0.0457763671875, 0.0243682861328125, 0.06060791015625, -0.00725555419921875, -0.003620147705078125, -0.01207733154296875, 0.0271759033203125, -0.00432586669921875, 0.0265655517578125, -0.018096923828125, 0.06170654296875, -0.036529541015625, -0.038818359375, 0.0206146240234375, -0.06976318359375, -0.005138397216796875, -0.0259552001953125, 0.0118865966796875, 0.01078033447265625, 0.06298828125, -0.06719970703125, -0.019287109375, 0.0360107421875, 0.024261474609375, -0.048614501953125, 0.0225372314453125, -0.06744384765625, -0.0121307373046875, -0.043914794921875, -0.0130767822265625, -0.0010585784912109375, -0.037506103515625, -0.0015621185302734375, 0.003078460693359375, -0.0169677734375, -0.018096923828125, 0.0031375885009765625, 0.05206298828125, -0.03826904296875, 0.03948974609375, -0.059722900390625, 0.048736572265625, 0.0171051025390625, -0.014312744140625, -0.0777587890625, -0.0189056396484375, -0.0271453857421875, 0.06146240234375, 0.02197265625, -0.036376953125, -0.03509521484375, 0.03033447265625, -0.0143280029296875, 0.06451416015625, -0.03900146484375, 0.010009765625, -0.0160064697265625, -0.0221405029296875, -0.01522064208984375, -0.0101165771484375, -0.0161285400390625, 0.01433563232421875, -0.00479888916015625, 0.061126708984375, 0.0006699562072753906, -0.0257568359375, 0.024749755859375, -0.0304412841796875, -0.04022216796875, -0.041107177734375, -0.05419921875, -0.01137542724609375, -0.0215606689453125, -0.0127105712890625, -0.042388916015625, -0.059234619140625, 0.01690673828125, 0.007350921630859375, -0.0218048095703125, 0.00665283203125, 0.057464599609375, 0.02447509765625, -0.01953125, 0.01192474365234375, 0.0217437744140625, 0.0055389404296875, -0.0235748291015625, 0.03472900390625, -0.041778564453125, -0.005596160888671875, 0.07464599609375, -0.04290771484375, 0.00479888916015625, 0.0328369140625, 0.052154541015625, 0.002300262451171875, -0.033599853515625, 0.0382080078125, 0.02655029296875, -0.061737060546875, -0.0089569091796875, 0.0051422119140625, -0.0029010772705078125, -0.0202789306640625, 0.01351165771484375, 0.0251007080078125, -0.0126495361328125, -0.036376953125, -0.01247406005859375, -0.0005707740783691406, -0.037384033203125, 0.004276275634765625, 0.01251220703125, -0.003387451171875, -0.0196075439453125, -0.0068511962890625, 0.032928466796875, -0.03521728515625, 0.0266265869140625, -0.045166015625, 0.06427001953125, -0.040863037109375, 0.00644683837890625, -0.0300750732421875, -0.020843505859375, 0.051971435546875, 0.054046630859375, -0.01531982421875, 0.0186767578125, 0.002391815185546875, -0.0007739067077636719, -0.055908203125, 0.013214111328125, 0.003185272216796875, -0.005832672119140625, 0.006427764892578125, -0.006175994873046875, -0.00707244873046875, 0.02099609375, -0.01322174072265625, 0.047393798828125, 0.0469970703125, -0.03082275390625, 0.034759521484375, -0.0556640625, 0.043731689453125, -0.04730224609375, -0.00925445556640625, -0.004802703857421875, 0.00490570068359375, 0.004207611083984375, 0.0230560302734375, -0.00875091552734375, 0.0479736328125, -0.037750244140625, 0.0501708984375, -0.0135498046875, -0.0382080078125, 0.0209808349609375, 0.048431396484375, 0.020233154296875, 0.032745361328125, -0.0286407470703125, -0.02471923828125, 0.001468658447265625, 0.0131072998046875, -0.017425537109375, -0.0279083251953125, 0.00499725341796875, -0.007476806640625, 0.0146942138671875, -0.01015472412109375, -0.0262451171875, -0.01192474365234375, -0.043670654296875, 0.006130218505859375, 0.0172576904296875, -0.04840087890625, 0.031097412109375, 0.030975341796875, -0.03509521484375, 0.0110626220703125, 0.020751953125, -0.0718994140625, -0.059173583984375, -0.007694244384765625, 0.0055084228515625, 0.0345458984375, -0.0174102783203125, 0.0258331298828125, -0.01708984375, -0.014801025390625, -0.0163726806640625, 0.00824737548828125, 0.0625, 0.043975830078125, -0.050140380859375, 0.000644683837890625, -0.042205810546875, -0.0143280029296875, -0.09747314453125, -0.0660400390625, -0.0736083984375, 0.0281524658203125, 0.0117645263671875, 0.001468658447265625, -0.01555633544921875, -0.027587890625, -0.0019388198852539062, 0.033721923828125, 0.024993896484375, 0.03564453125, -0.04632568359375, 0.07147216796875, -0.018768310546875, -0.0059356689453125, -0.031646728515625, 0.033050537109375, 0.036651611328125, 0.00765228271484375, 0.03143310546875, -0.01146697998046875, -0.025360107421875, -0.0230865478515625, -0.0211181640625, -0.032501220703125, 0.03961181640625, -0.0157318115234375, 0.00931549072265625, -0.039398193359375, 0.01244354248046875, -0.020843505859375, 0.030426025390625, -0.06353759765625, -0.0389404296875, 0.0123291015625, -0.003681182861328125, 0.0189361572265625, -0.01459503173828125, -0.03411865234375, 0.031402587890625, 0.0186614990234375, 0.0201873779296875, -0.0156707763671875, -0.07476806640625, 0.0673828125, 0.08538818359375, -0.00511932373046875, 0.031768798828125, -0.00103759765625, 0.0001550912857055664, 0.020751953125, 0.035888671875, -0.01358795166015625, -0.05279541015625, 0.02490234375, 0.0096435546875, -0.0145721435546875, 0.01244354248046875, -0.036590576171875, -0.022918701171875, 0.04345703125, 0.050994873046875, -0.057952880859375, -0.0095977783203125, 0.0196533203125, 0.01418304443359375, 0.01136016845703125, 0.0009937286376953125, 0.0211181640625, 0.0302581787109375, 0.00004851818084716797, 0.0307769775390625, -0.021820068359375, 0.007656097412109375, 0.01216888427734375, -0.020111083984375, -0.01062774658203125, 0.03070068359375, 0.01561737060546875, 0.023284912109375, 0.006378173828125, -0.0274200439453125, 0.0380859375, 0.006214141845703125, 0.0285797119140625, -0.0179290771484375, -0.00995635986328125, 0.01203155517578125, 0.02532958984375, -0.03338623046875, 0.0025272369384765625, 0.0198211669921875, -0.0134124755859375, -0.0220794677734375, 0.0296478271484375, -0.035125732421875, 0.0283355712890625, 0.001224517822265625, -0.02655029296875, -0.00762176513671875, -0.0282135009765625, 0.0251617431640625, -0.0006775856018066406, 0.006336212158203125, 0.017974853515625, -0.0026493072509765625, -0.052734375, -0.0054931640625, -0.05322265625, 0.029327392578125, -0.033111572265625, 0.00107574462890625, 0.039764404296875, 0.007717132568359375, -0.0247344970703125, 0.01152801513671875, 0.04315185546875, -0.049072265625, -0.02484130859375, 0.0272216796875, 0.00386810302734375, -0.025848388671875, 0.0276336669921875, -0.0389404296875, 0.0867919921875, 0.036041259765625, 0.006641387939453125, 0.01386260986328125, 0.04595947265625, -0.054412841796875, 0.01517486572265625, -0.03631591796875, 0.037139892578125, 0.0361328125, 0.048309326171875, -0.0199127197265625, -0.00418853759765625, 0.0222015380859375, 0.0201416015625, 0.02618408203125, -0.004302978515625, 0.0204010009765625, -0.01244354248046875, 0.060546875, 0.05511474609375, 0.007568359375, -0.00936126708984375, -0.0163116455078125, -0.02960205078125, -0.0198211669921875, -0.007686614990234375, 0.028594970703125, -0.04779052734375, -0.0252838134765625, -0.0034732818603515625, 0.005939483642578125, -0.005367279052734375, 0.0220947265625, -0.026702880859375, -0.04193115234375, 0.0169830322265625, 0.029937744140625, -0.0303955078125, 0.002590179443359375, 0.0108184814453125, 0.021759033203125, -0.01256561279296875, 0.016876220703125, -0.0081024169921875, 0.04412841796875, 0.0222320556640625, 0.0140838623046875, -0.05499267578125, 0.003108978271484375, -0.01032257080078125, -0.028350830078125, -0.019927978515625, 0.0643310546875, -0.06610107421875, -0.00661468505859375, 0.0364990234375, 0.0408935546875, 0.0212860107421875, 0.034515380859375, 0.002407073974609375, -0.00693511962890625, -0.0177764892578125, -0.01418304443359375, 0.00909423828125, -0.00958251953125, 0.005489349365234375, -0.0157470703125, 0.02154541015625, -0.03997802734375, -0.0109100341796875, -0.0296478271484375, 0.004100799560546875, 0.0162200927734375, -0.00733184814453125, 0.00732421875, 0.0406494140625, -0.0001710653305053711, 0.0032367706298828125, 0.00036215782165527344, -0.01340484619140625, -0.004791259765625, 0.0103607177734375, -0.01042938232421875, 0.0301055908203125, -0.030792236328125, -0.0023193359375, -0.01220703125, 0.042388916015625, -0.00017118453979492188, 0.017364501953125, -0.03515625, -0.0240020751953125, 0.0087890625, 0.026031494140625, 0.00151824951171875, 0.007663726806640625, 0.0460205078125, 0.00496673583984375, -0.06439208984375, -0.0181121826171875, -0.01019287109375, -0.040740966796875, -0.01314544677734375, -0.01788330078125, -0.041748046875, -0.016998291015625, -0.0279998779296875, 0.01007080078125, -0.009613037109375, 0.016357421875, 0.010406494140625, 0.0286407470703125, 0.0022335052490234375, -0.0195465087890625, -0.03399658203125, 0.0299530029296875, 0.0213470458984375, 0.048828125, -0.0292510986328125, -0.0306396484375, 0.0235443115234375, -0.0266571044921875, 0.042083740234375, 0.0535888671875, -0.0117340087890625, 0.0029850006103515625, -0.0281524658203125, -0.01959228515625, -0.0058746337890625, 0.017547607421875, -0.018463134765625, 0.036834716796875, 0.0208587646484375, 0.00818634033203125, -0.0292816162109375, -0.017791748046875, -0.01348114013671875, 0.033538818359375, 0.0244903564453125, 0.06829833984375, -0.0161895751953125, 0.019012451171875, 0.019744873046875, 0.034271240234375, -0.0200042724609375, -0.00785064697265625, 0.03131103515625, -0.0268402099609375, 0.00843048095703125, -0.01027679443359375, -0.1373291015625, 0.021484375, 0.02703857421875, -0.0096435546875, 0.060028076171875, 0.004955291748046875, 0.00797271728515625, -0.051055908203125, -0.01122283935546875, -0.0234375, -0.0235595703125, -0.0391845703125, -0.0108489990234375, 0.0280914306640625, 0.0225067138671875, 0.004207611083984375, 0.0269622802734375, 0.024322509765625, -0.024627685546875, 0.032196044921875, -0.030975341796875, 0.02728271484375, 0.015625, 0.0203704833984375, -0.0692138671875, 0.04351806640625, -0.0035419464111328125, 0.003025054931640625, 0.01483917236328125, 0.06365966796875, 0.019866943359375, -0.0604248046875, 0.0127716064453125, 0.02264404296875, 0.029632568359375, -0.017669677734375, -0.007049560546875, 0.00821685791015625, -0.0211334228515625, 0.0279541015625, -0.00405120849609375, 0.01055145263671875, -0.0010766983032226562, -0.03680419921875, 0.0027523040771484375, -0.0350341796875, -0.0299835205078125, -0.04443359375, 0.00792694091796875, 0.0286865234375, 0.0101318359375, -0.04449462890625, 0.01206207275390625, -0.0207672119140625, 0.03790283203125, 0.0014476776123046875, -0.01125335693359375, -0.0137786865234375, -0.036529541015625, -0.01299285888671875, 0.02264404296875, -0.04937744140625, 0.01097869873046875, 0.0007891654968261719, 0.006381988525390625, 0.045928955078125, -0.0045166015625, 0.01155853271484375, 0.010284423828125, 0.0057525634765625, 0.0731201171875, -0.03662109375, -0.045989990234375, -0.018829345703125, -0.00701141357421875, 0.0189056396484375, -0.01354217529296875, 0.03228759765625, -0.0843505859375, -0.032745361328125, -0.022613525390625, -0.00543212890625, 0.0022430419921875, -0.040283203125, -0.038330078125, 0.0355224609375, 0.005992889404296875, -0.0293121337890625, -0.027130126953125, 0.027496337890625, -0.00970458984375, 0.01406097412109375, -0.0008378028869628906, -0.003875732421875, 0.01088714599609375, 0.018463134765625, 0.0161895751953125, 0.0192413330078125, -0.004138946533203125, 0.04095458984375, -0.0203094482421875, 0.058441162109375, 0.0416259765625, -0.0038471221923828125, -0.029693603515625, 0.024017333984375, -0.0023860931396484375, 0.01316070556640625, -0.033538818359375, 0.04901123046875, 0.00896453857421875, 0.051513671875, 0.008941650390625, -0.01282501220703125, -0.034912109375, -0.005222320556640625, 0.0406494140625, 0.0142669677734375, 0.0130767822265625, -0.008636474609375, -0.01727294921875, -0.0318603515625, -0.018096923828125, -0.005458831787109375, 0.0137939453125, -0.06890869140625, 0.0031585693359375, 0.040496826171875, -0.034393310546875, 0.0032367706298828125, -0.01165008544921875, -0.039031982421875, -0.0086517333984375, -0.0255279541015625, -0.041595458984375, 0.037933349609375, -0.0638427734375, 0.06365966796875, -0.0227203369140625, 0.0032138824462890625, -0.001140594482421875, 0.048828125, 0.01495361328125, 0.005710601806640625, 0.0221710205078125, 0.0186004638671875, -0.04608154296875, -0.0059967041015625, 0.01456451416015625, 0.04681396484375, -0.02392578125, -0.0390625, -0.0178680419921875, 0.005115509033203125, 0.01403045654296875, 0.0029392242431640625, -0.019622802734375, 0.04638671875, -0.00022089481353759766, 0.08062744140625, 0.0294647216796875, -0.0230712890625, -0.0146026611328125, 0.047210693359375, -0.024017333984375, -0.009368896484375, -0.037506103515625, -0.0015382766723632812, -0.0029850006103515625, 0.00032329559326171875, -0.003368377685546875, -0.0452880859375, 0.01079559326171875, -0.00756072998046875, -0.00473785400390625, 0.015869140625 ]
06c9934a054bcf513fe7c53e392f00d5017cb690
Wordpress Stackexchange Q: Get wp_logout_url function to work on external (non-Wordpress) page I have blog and forum, and I need to put wordpress external logout link. What files do I need to add to make wp_logout_url(); work? Thank you. A: To allow WordPress functions to operate outside of the WordPress environment, you need to let your external pages know about and have access to the WordPress Core and API environment. http://codex.wordpress.org/Integrating_WordPress_with_Your_Website The above link is one such reference which covers this very purpose. Specifically, In order to transform regular PHP pages into ones that utilize WordPress, you need to add either of the following code snippets to the start of each page. <?php /* Short and sweet */ define('WP_USE_THEMES', false); require('./wp-blog-header.php'); ?> or <?php require('/the/path/to/your/wp-blog-header.php'); ?> Getting your paths right is very important, without, you'll have no joy. Refer to the link provided for even greater detail. Any problems thereafter please let us know along with what you have tried, code samples used, etc. Good luck!
Q: Get wp_logout_url function to work on external (non-Wordpress) page I have blog and forum, and I need to put wordpress external logout link. What files do I need to add to make wp_logout_url(); work? Thank you. A: To allow WordPress functions to operate outside of the WordPress environment, you need to let your external pages know about and have access to the WordPress Core and API environment. http://codex.wordpress.org/Integrating_WordPress_with_Your_Website The above link is one such reference which covers this very purpose. Specifically, In order to transform regular PHP pages into ones that utilize WordPress, you need to add either of the following code snippets to the start of each page. <?php /* Short and sweet */ define('WP_USE_THEMES', false); require('./wp-blog-header.php'); ?> or <?php require('/the/path/to/your/wp-blog-header.php'); ?> Getting your paths right is very important, without, you'll have no joy. Refer to the link provided for even greater detail. Any problems thereafter please let us know along with what you have tried, code samples used, etc. Good luck!
wordpress
{ "language": "en", "length": 164, "provenance": "stackexchange_00019.jsonl.gz:425790", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72547" }
[ 0.080078125, 0.0073089599609375, 0.0289764404296875, -0.018798828125, 0.00897216796875, -0.035186767578125, 0.052764892578125, -0.0423583984375, -0.0170745849609375, 0.004116058349609375, -0.03558349609375, 0.0162353515625, -0.062225341796875, 0.0010395050048828125, 0.0047760009765625, -0.05511474609375, 0.02716064453125, -0.006694793701171875, 0.047119140625, 0.009033203125, 0.01206207275390625, 0.02569580078125, 0.0141448974609375, -0.01039886474609375, 0.00954437255859375, -0.007232666015625, 0.0977783203125, -0.0253753662109375, 0.028594970703125, -0.01523590087890625, 0.02130126953125, -0.03619384765625, -0.002349853515625, 0.04541015625, -0.0300750732421875, -0.0211944580078125, -0.0164337158203125, 0.0245208740234375, 0.0096435546875, 0.036285400390625, 0.020477294921875, -0.01413726806640625, 0.0260162353515625, 0.019683837890625, 0.00077056884765625, -0.03863525390625, 0.0037784576416015625, -0.056396484375, -0.0233917236328125, 0.0189361572265625, 0.01076507568359375, 0.01493072509765625, 0.035736083984375, 0.02154541015625, -0.0184783935546875, -0.0209808349609375, 0.01470184326171875, -0.004337310791015625, 0.02227783203125, -0.01470184326171875, -0.0313720703125, -0.003673553466796875, 0.0196685791015625, -0.00812530517578125, -0.0243072509765625, 0.040313720703125, 0.01318359375, 0.01849365234375, -0.0283355712890625, -0.048370361328125, -0.0127410888671875, -0.0316162109375, -0.03436279296875, 0.01236724853515625, -0.0256805419921875, -0.0200958251953125, 0.032745361328125, -0.021453857421875, -0.0189971923828125, 0.0391845703125, -0.010894775390625, 0.001873016357421875, -0.06719970703125, -0.0222015380859375, 0.00685882568359375, -0.01294708251953125, -0.00885772705078125, 0.00753021240234375, -0.03802490234375, -0.006561279296875, -0.04315185546875, 0.0189056396484375, -0.0535888671875, -0.0011615753173828125, -0.00630950927734375, 0.00727081298828125, 0.0216064453125, 0.0272369384765625, -0.00591278076171875, -0.004970550537109375, 0.0164031982421875, -0.0501708984375, 0.0240936279296875, -0.03515625, -0.0170440673828125, 0.0716552734375, 0.0230712890625, 0.0091705322265625, -0.0203704833984375, -0.004047393798828125, 0.0086669921875, -0.07391357421875, -0.01145172119140625, -0.04168701171875, -0.004001617431640625, 0.0201416015625, -0.044586181640625, 0.0174407958984375, 0.01201629638671875, 0.0134124755859375, -0.025787353515625, -0.0003757476806640625, -0.0186767578125, 0.00765228271484375, -0.0094146728515625, -0.005329132080078125, 0.006824493408203125, -0.0157928466796875, 0.0098114013671875, 0.039764404296875, -0.055908203125, 0.0214385986328125, 0.0616455078125, -0.0418701171875, -0.0268402099609375, -0.040985107421875, 0.03961181640625, -0.004413604736328125, 0.002532958984375, 0.00539398193359375, 0.024322509765625, -0.0340576171875, -0.0083465576171875, 0.021148681640625, 0.036865234375, 0.01538848876953125, 0.040374755859375, 0.01568603515625, -0.0208892822265625, -0.0281524658203125, 0.00820159912109375, 0.02642822265625, 0.0269317626953125, -0.01393890380859375, 0.0158233642578125, -0.053466796875, 0.034027099609375, -0.052276611328125, 0.03363037109375, -0.040374755859375, -0.0105133056640625, -0.01273345947265625, 0.033233642578125, -0.0296173095703125, -0.028167724609375, -0.005687713623046875, -0.05120849609375, -0.013092041015625, 0.04486083984375, 0.0301971435546875, 0.042083740234375, -0.05279541015625, 0.0167236328125, 0.03424072265625, -0.0007185935974121094, 0.0302734375, -0.0182647705078125, 0.0614013671875, 0.01334381103515625, 0.03131103515625, 0.019744873046875, -0.036346435546875, 0.037384033203125, -0.00821685791015625, -0.041259765625, 0.0153350830078125, 0.00884246826171875, 0.0462646484375, 0.00807952880859375, 0.0269622802734375, 0.01184844970703125, 0.00614166259765625, 0.0170745849609375, 0.0206146240234375, -0.006053924560546875, -0.0322265625, 0.006275177001953125, 0.0172576904296875, -0.0208892822265625, -0.0279998779296875, 0.032257080078125, 0.01474761962890625, -0.012786865234375, -0.01232147216796875, -0.044281005859375, 0.0141143798828125, -0.01200103759765625, 0.0313720703125, 0.0258941650390625, 0.03082275390625, 0.018310546875, 0.02166748046875, -0.0273590087890625, -0.0260467529296875, -0.048004150390625, 0.00432586669921875, 0.004978179931640625, 0.05804443359375, 0.0031108856201171875, 0.034942626953125, 0.004367828369140625, -0.04180908203125, 0.004955291748046875, -0.021728515625, 0.04425048828125, -0.0579833984375, -0.0251007080078125, -0.061676025390625, -0.01381683349609375, -0.034515380859375, -0.02215576171875, 0.097412109375, 0.01203155517578125, 0.0060577392578125, -0.05035400390625, -0.0154266357421875, -0.0184783935546875, 0.0003552436828613281, -0.003978729248046875, 0.040374755859375, 0.0396728515625, 0.01500701904296875, 0.0011539459228515625, 0.0058746337890625, 0.0213470458984375, -0.047454833984375, 0.01250457763671875, -0.0226593017578125, 0.002399444580078125, -0.0171356201171875, -0.049285888671875, -0.0299835205078125, 0.045806884765625, -0.058990478515625, -0.01277923583984375, 0.05133056640625, -0.0131683349609375, -0.018951416015625, 0.049774169921875, -0.033660888671875, 0.019012451171875, -0.0382080078125, -0.04022216796875, -0.00787353515625, 0.005207061767578125, -0.0166015625, -0.006923675537109375, -0.017364501953125, -0.007236480712890625, -0.0229949951171875, 0.01183319091796875, -0.020233154296875, -0.00740814208984375, 0.06353759765625, 0.0188751220703125, -0.0253753662109375, -0.0246124267578125, -0.0009908676147460938, -0.0284423828125, 0.032928466796875, -0.0209808349609375, 0.033355712890625, 0.0243988037109375, -0.01264190673828125, 0.00014770030975341797, -0.00801849365234375, 0.0183868408203125, -0.0137939453125, 0.0257720947265625, -0.0027179718017578125, 0.044036865234375, -0.00865936279296875, -0.0217742919921875, 0.01175689697265625, 0.0338134765625, -0.03240966796875, 0.01175689697265625, -0.0684814453125, 0.0682373046875, -0.046539306640625, 0.0172271728515625, 0.06353759765625, -0.0103607177734375, 0.0118408203125, 0.0031833648681640625, 0.0187835693359375, 0.0098724365234375, -0.00841522216796875, -0.00923919677734375, 0.0032482147216796875, -0.04541015625, -0.0079193115234375, 0.012115478515625, -0.01226806640625, -0.0135650634765625, -0.045867919921875, -0.0235595703125, -0.02032470703125, -0.09844970703125, -0.0478515625, -0.0265655517578125, -0.03448486328125, -0.0013418197631835938, 0.00864410400390625, -0.031494140625, 0.0068359375, 0.037841796875, 0.006805419921875, 0.026123046875, -0.040374755859375, -0.05340576171875, -0.05072021484375, -0.07965087890625, -0.0305938720703125, 0.0021152496337890625, -0.007091522216796875, -0.003936767578125, 0.03326416015625, 0.001964569091796875, -0.021820068359375, 0.004917144775390625, 0.0413818359375, -0.007534027099609375, -0.03680419921875, -0.01470947265625, -0.017547607421875, -0.00702667236328125, -0.01345062255859375, 0.0693359375, 0.00528717041015625, -0.0106048583984375, 0.01934814453125, -0.004329681396484375, -0.033050537109375, 0.00370025634765625, 0.0104827880859375, 0.003849029541015625, -0.037353515625, -0.01207733154296875, -0.05487060546875, -0.0014963150024414062, -0.0262603759765625, -0.035919189453125, 0.045684814453125, 0.04156494140625, -0.0136260986328125, -0.000865936279296875, -0.0173187255859375, -0.0227813720703125, -0.01012420654296875, -0.0034770965576171875, -0.0014944076538085938, 0.031280517578125, -0.0154876708984375, -0.014617919921875, 0.0111846923828125, 0.045562744140625, 0.005771636962890625, -0.001178741455078125, 0.006519317626953125, 0.0184326171875, -0.017364501953125, 0.007190704345703125, -0.07757568359375, -0.04302978515625, 0.048583984375, -0.0237274169921875, -0.0129547119140625, -0.01422882080078125, -0.015777587890625, 0.01122283935546875, 0.0775146484375, -0.0106048583984375, -0.02984619140625, 0.0051727294921875, 0.018707275390625, -0.0259857177734375, -0.0157928466796875, -0.011016845703125, -0.012603759765625, -0.056396484375, 0.00846099853515625, -0.0201263427734375, -0.0014600753784179688, -0.006252288818359375, -0.0013875961303710938, -0.0063323974609375, -0.051361083984375, -0.00665283203125, 0.034820556640625, 0.00147247314453125, 0.0225982666015625, -0.029449462890625, 0.01385498046875, 0.0187835693359375, -0.02191162109375, -0.029266357421875, 0.01168060302734375, -0.03338623046875, 0.02197265625, 0.033660888671875, -0.042266845703125, 0.01151275634765625, 0.0167999267578125, -0.004199981689453125, 0.0033664703369140625, 0.00428009033203125, 0.00650787353515625, 0.00907135009765625, 0.030426025390625, -0.0138092041015625, -0.0049896240234375, 0.004970550537109375, -0.003826141357421875, -0.0771484375, 0.01305389404296875, -0.007404327392578125, 0.013397216796875, 0.041778564453125, -0.04681396484375, -0.023590087890625, -0.01407623291015625, 0.027496337890625, 0.03558349609375, 0.014129638671875, -0.0054473876953125, -0.024658203125, -0.023895263671875, 0.054962158203125, 0.03515625, -0.0232086181640625, 0.00179290771484375, 0.055267333984375, 0.0070343017578125, -0.0379638671875, -0.040771484375, -0.004642486572265625, 0.01250457763671875, -0.025970458984375, 0.031280517578125, -0.0255126953125, -0.01287078857421875, 0.073974609375, -0.0196685791015625, 0.0005855560302734375, -0.0275115966796875, 0.07208251953125, 0.0013761520385742188, 0.0059814453125, -0.00325775146484375, -0.0244140625, 0.0122833251953125, 0.0029163360595703125, 0.00363922119140625, -0.01080322265625, 0.026458740234375, 0.023040771484375, -0.03106689453125, 0.0304412841796875, -0.0170745849609375, -0.017303466796875, -0.0038909912109375, -0.032440185546875, 0.051727294921875, 0.06768798828125, -0.0255279541015625, 0.035125732421875, 0.02325439453125, -0.01354217529296875, -0.00408172607421875, 0.01045989990234375, -0.022369384765625, 0.019927978515625, -0.0193939208984375, -0.02581787109375, 0.0001710653305053711, -0.0168609619140625, 0.11614990234375, 0.0179290771484375, -0.050323486328125, -0.01169586181640625, -0.007625579833984375, 0.002292633056640625, 0.0152587890625, -0.00666046142578125, 0.03662109375, -0.0306243896484375, -0.0298614501953125, -0.0202789306640625, -0.01459503173828125, -0.04486083984375, -0.051116943359375, 0.0230712890625, -0.016265869140625, 0.006771087646484375, -0.0183258056640625, 0.10211181640625, -0.0229644775390625, 0.0772705078125, -0.00699615478515625, 0.0294189453125, 0.012115478515625, 0.0518798828125, 0.01297760009765625, -0.018585205078125, 0.01515960693359375, -0.00013184547424316406, 0.0002620220184326172, -0.039398193359375, -0.0211944580078125, 0.030609130859375, 0.037322998046875, -0.03192138671875, -0.0128173828125, 0.0244293212890625, 0.003681182861328125, -0.004062652587890625, 0.0687255859375, 0.038818359375, -0.06182861328125, 0.004070281982421875, 0.030426025390625, 0.01508331298828125, -0.042022705078125, -0.00695037841796875, -0.0108184814453125, -0.01174163818359375, 0.004913330078125, 0.03448486328125, -0.0191802978515625, 0.00002294778823852539, -0.01097869873046875, -0.03045654296875, -0.0285186767578125, -0.00969696044921875, 0.030609130859375, -0.004451751708984375, -0.0345458984375, -0.0306854248046875, 0.041595458984375, -0.04498291015625, -0.01393890380859375, -0.0221099853515625, 0.03179931640625, 0.0050048828125, -0.00991058349609375, 0.0850830078125, 0.0445556640625, -0.06561279296875, 0.002048492431640625, -0.0355224609375, 0.0075531005859375, -0.00250244140625, -0.037689208984375, -0.0254669189453125, -0.016143798828125, 0.048614501953125, 0.0169677734375, 0.01334381103515625, -0.03173828125, -0.04156494140625, 0.013397216796875, 0.031402587890625, 0.05926513671875, -0.0023326873779296875, 0.0672607421875, -0.0048675537109375, 0.032257080078125, 0.0268402099609375, 0.0479736328125, -0.037353515625, -0.0113372802734375, 0.035247802734375, -0.03155517578125, -0.034454345703125, -0.050506591796875, 0.00510406494140625, 0.0147705078125, 0.034820556640625, -0.01515960693359375, -0.00569915771484375, -0.029327392578125, -0.0177154541015625, -0.0261077880859375, 0.05462646484375, -0.0006680488586425781, 0.001422882080078125, -0.01324462890625, -0.021209716796875, 0.020721435546875, -0.01043701171875, -0.0005445480346679688, 0.0264129638671875, -0.02532958984375, 0.0273590087890625, 0.01346588134765625, -0.0762939453125, 0.05987548828125, 0.10491943359375, 0.0008606910705566406, 0.0457763671875, 0.01044464111328125, -0.019500732421875, 0.0269927978515625, 0.0211639404296875, -0.0290679931640625, -0.004199981689453125, 0.0239410400390625, -0.003086090087890625, -0.0311737060546875, -0.0162353515625, -0.0221710205078125, 0.033111572265625, 0.041534423828125, 0.0745849609375, -0.07330322265625, 0.01934814453125, 0.011077880859375, -0.0175018310546875, 0.048553466796875, -0.0050811767578125, -0.0007386207580566406, -0.00555419921875, 0.0225982666015625, -0.01403045654296875, -0.019805908203125, 0.0070953369140625, 0.004878997802734375, 0.00742340087890625, -0.01299285888671875, 0.04022216796875, 0.0202484130859375, -0.0830078125, 0.036590576171875, 0.053253173828125, 0.008087158203125, -0.03863525390625, -0.0187225341796875, 0.0301971435546875, -0.028717041015625, -0.05523681640625, 0.027130126953125, -0.0269927978515625, 0.0252838134765625, -0.00836944580078125, -0.03155517578125, 0.0667724609375, 0.0312347412109375, -0.0025787353515625, -0.012481689453125, -0.01342010498046875, 0.0261077880859375, 0.023712158203125, -0.01263427734375, 0.02935791015625, 0.02398681640625, -0.06353759765625, 0.01003265380859375, -0.0297393798828125, -0.00463104248046875, -0.0190277099609375, -0.03680419921875, 0.08251953125, -0.0477294921875, 0.00896453857421875, 0.042236328125, 0.043182373046875, -0.0249786376953125, 0.006717681884765625, 0.025054931640625, -0.049835205078125, -0.045257568359375, 0.03173828125, -0.04742431640625, -0.0311737060546875, -0.0106353759765625, -0.0499267578125, 0.1123046875, -0.032684326171875, 0.0168304443359375, 0.0131072998046875, 0.051544189453125, 0.00020635128021240234, 0.04815673828125, -0.048187255859375, 0.0215606689453125, 0.0013875961303710938, 0.0307464599609375, -0.06005859375, -0.016998291015625, -0.018341064453125, 0.0306243896484375, 0.01129913330078125, 0.01467132568359375, -0.025787353515625, -0.01226806640625, -0.01038360595703125, 0.045928955078125, 0.00875091552734375, 0.0166015625, -0.0084991455078125, -0.004123687744140625, 0.014251708984375, -0.04443359375, 0.0004930496215820312, 0.00008535385131835938, -0.01258087158203125, 0.0150146484375, -0.00298309326171875, -0.030517578125, 0.005290985107421875, -0.01467132568359375, -0.057464599609375, 0.019989013671875, 0.01290130615234375, 0.020294189453125, -0.0147857666015625, 0.04986572265625, 0.0280914306640625, -0.03466796875, 0.003093719482421875, -0.04278564453125, 0.045928955078125, -0.00830841064453125, 0.004680633544921875, 0.0445556640625, 0.0213165283203125, 0.0196990966796875, -0.056671142578125, -0.01256561279296875, -0.0309600830078125, -0.00823211669921875, 0.0667724609375, 0.055816650390625, 0.0340576171875, -0.0076446533203125, 0.031463623046875, -0.0011682510375976562, 0.05633544921875, -0.0421142578125, -0.0170135498046875, -0.006603240966796875, -0.00852203369140625, 0.031341552734375, -0.0115814208984375, 0.05316162109375, -0.03887939453125, -0.047637939453125, 0.0006847381591796875, 0.018280029296875, 0.0303192138671875, 0.005611419677734375, 0.01076507568359375, 0.0201568603515625, -0.061492919921875, 0.042877197265625, -0.018768310546875, 0.002933502197265625, 0.0161285400390625, 0.032806396484375, 0.00222015380859375, 0.0255279541015625, -0.0201416015625, -0.0017232894897460938, 0.006809234619140625, 0.041748046875, -0.0206146240234375, -0.00220489501953125, -0.0230865478515625, -0.057342529296875, 0.01190948486328125, 0.038909912109375, 0.02886962890625, -0.009429931640625, 0.0423583984375, 0.0204315185546875, -0.043914794921875, -0.0090789794921875, 0.057098388671875, -0.02239990234375, -0.0007472038269042969, -0.0305633544921875, -0.01059722900390625, 0.01522064208984375, -0.0021533966064453125, -0.002536773681640625, 0.0267333984375, 0.02081298828125, -0.06500244140625, 0.041259765625, -0.01195526123046875, -0.030792236328125, 0.007770538330078125, -0.01480865478515625, 0.050048828125, -0.0227508544921875, -0.05023193359375, -0.00878143310546875, -0.03216552734375, -0.018707275390625, 0.01458740234375, 0.033843994140625, 0.0017900466918945312, 0.0034160614013671875, 0.016082763671875, 0.0196075439453125, -0.01082611083984375, 0.01132965087890625, -0.0130157470703125, -0.044921875, 0.036865234375, -0.0136566162109375, -0.0865478515625, -0.06878662109375, -0.049041748046875, 0.049530029296875, 0.011962890625, 0.067138671875, 0.0008106231689453125, 0.0259246826171875, -0.00481414794921875, 0.00023984909057617188, 0.00447845458984375, 0.0119476318359375, -0.04193115234375, 0.0198516845703125, 0.0178375244140625, -0.0235443115234375, -0.06976318359375, 0.05426025390625, -0.01235198974609375, 0.028533935546875, 0.06182861328125, -0.0302886962890625, 0.00188446044921875, 0.007678985595703125, -0.00482940673828125, -0.025360107421875, -0.01508331298828125, 0.0141143798828125, 0.0166778564453125, 0.0032749176025390625, 0.0005373954772949219, -0.0109405517578125, 0.056396484375, -0.0146331787109375, -0.0150604248046875, -0.00815582275390625, -0.05670166015625, -0.01369476318359375, 0.0207977294921875, 0.01238250732421875, -0.02899169921875, -0.0191192626953125, -0.0241851806640625, -0.005229949951171875, -0.0107879638671875, 0.016204833984375, -0.0131072998046875, -0.0011529922485351562, 0.0090484619140625, 0.04010009765625, 0.046234130859375, -0.01055908203125, 0.036407470703125, 0.0123291015625, -0.009490966796875, 0.032073974609375, -0.06671142578125, -0.0345458984375, -0.042083740234375, 0.0071563720703125, 0.036468505859375, -0.00391387939453125, -0.024261474609375, -0.040557861328125, -0.011444091796875, 0.032958984375, 0.0008053779602050781, -0.0304412841796875, -0.01116180419921875, -0.0192108154296875, 0.0214996337890625, 0.0028076171875, 0.045501708984375, -0.007495880126953125, 0.0174713134765625, -0.033935546875, -0.0157318115234375, -0.0183258056640625, 0.03204345703125, -0.019683837890625, 0.0189208984375, 0.0634765625, -0.0103759765625, -0.013153076171875, 0.01458740234375, 0.004764556884765625, 0.062408447265625, -0.037506103515625, -0.032623291015625, -0.0208740234375, 0.007312774658203125, 0.021575927734375, 0.0078582763671875, 0.016326904296875, -0.0003719329833984375, -0.032928466796875, -0.011810302734375, 0.0004892349243164062, 0.004669189453125, -0.038421630859375, -0.0665283203125, 0.0190887451171875, 0.006359100341796875, -0.035858154296875, -0.07281494140625, 0.025238037109375, 0.01525115966796875, -0.025604248046875, -0.03472900390625, -0.00983428955078125, -0.030426025390625, 0.034423828125, 0.04888916015625, 0.0209503173828125, 0.0151824951171875, 0.0697021484375, -0.0088958740234375, 0.075439453125, 0.047698974609375, 0.0261688232421875, -0.006439208984375, 0.004756927490234375, 0.033935546875, 0.05706787109375, -0.0167694091796875, 0.017791748046875, 0.0092620849609375, -0.0071868896484375, -0.0176544189453125, -0.03497314453125, 0.0243072509765625, 0.0292816162109375, 0.04205322265625, 0.0254058837890625, -0.0009322166442871094, -0.05426025390625, -0.043792724609375, -0.032958984375, -0.007793426513671875, -0.01215362548828125, 0.0167694091796875, -0.0777587890625, -0.00186920166015625, 0.01384735107421875, -0.00872802734375, -0.01047515869140625, -0.0189666748046875, -0.0162506103515625, -0.007236480712890625, 0.0033016204833984375, 0.0028629302978515625, 0.0293121337890625, -0.005435943603515625, 0.08819580078125, -0.0576171875, 0.0054473876953125, 0.00011944770812988281, 0.017303466796875, 0.0498046875, -0.0271148681640625, -0.00925445556640625, 0.02069091796875, -0.021728515625, 0.01087188720703125, 0.01065826416015625, 0.057037353515625, -0.0158538818359375, 0.0015134811401367188, -0.0189208984375, 0.0263671875, -0.000060498714447021484, 0.0167694091796875, -0.0177001953125, 0.06298828125, 0.0162811279296875, 0.05694580078125, -0.0186614990234375, -0.0004754066467285156, -0.01183319091796875, 0.043121337890625, 0.004985809326171875, -0.004207611083984375, 0.040802001953125, -0.039794921875, 0.0117950439453125, -0.0275421142578125, 0.00650787353515625, -0.04949951171875, 0.03802490234375, 0.031707763671875, -0.0171051025390625, 0.03887939453125 ]
56fc27d5069004b27bcd93921eb7502602822fd7
Wordpress Stackexchange Q: Restrict access and display for categories Is it possible to choose specific categories that will only be displayed to logged in members? I tried to find a plugin or a PHP solution that does that but could not find anything that was still relevant. A: Yes :). The following will effect all queries for posts on the front-end including 'secondary loops' (e.g. post lists on the side) but it won't effect custom post types. So this may not be exactly what you're after, but the principle is the same: add_action('pre_get_posts','wpse72569_maybe_filter_out_category'); function wpse72569_maybe_filter_out_category( $query ){ //Don't touch the admin if( is_admin() ) return; //Leave logged in users alone if( is_user_logged_in() ) return; //Only effect 'post' queries $post_types = $query->get('post_type'); if( !empty($post_types) && 'post' != $post_types ) return; //Get current tax query $tax_query = $query->get('tax_query'); //Return only posts which are not in category with ID 1 $tax_query[] = array( 'taxonomy' => 'category', 'field' => 'id', 'terms' => array( 1 ), 'operator' => 'NOT IN' ); //If this is 'OR', then our tax query above might be ignored. $tax_query['relation'] = 'AND'; $query->set('tax_query',$tax_query); }
Q: Restrict access and display for categories Is it possible to choose specific categories that will only be displayed to logged in members? I tried to find a plugin or a PHP solution that does that but could not find anything that was still relevant. A: Yes :). The following will effect all queries for posts on the front-end including 'secondary loops' (e.g. post lists on the side) but it won't effect custom post types. So this may not be exactly what you're after, but the principle is the same: add_action('pre_get_posts','wpse72569_maybe_filter_out_category'); function wpse72569_maybe_filter_out_category( $query ){ //Don't touch the admin if( is_admin() ) return; //Leave logged in users alone if( is_user_logged_in() ) return; //Only effect 'post' queries $post_types = $query->get('post_type'); if( !empty($post_types) && 'post' != $post_types ) return; //Get current tax query $tax_query = $query->get('tax_query'); //Return only posts which are not in category with ID 1 $tax_query[] = array( 'taxonomy' => 'category', 'field' => 'id', 'terms' => array( 1 ), 'operator' => 'NOT IN' ); //If this is 'OR', then our tax query above might be ignored. $tax_query['relation'] = 'AND'; $query->set('tax_query',$tax_query); } A: You could try this if your looking to use it a loop type structure: <?php if ( is_user_logged_in() ) { //Only displays if the user is logged in. query_posts('cat=1'); // Replace the category number with the correct category number you want to display while (have_posts()) : the_post(); the_content(); endwhile; } else { // Everyone else that is not logged in query_posts('cat=2'); // Replace the category number with the correct category number you want to display while (have_posts()) : the_post(); the_content(); endwhile; } ?> If you are looking to just display links to the category pages like a menu you can do this: * *Use the WP nav menu feature. Register the menu in your functions.php in your theme folder. You can do this by adding this to the file: <?php register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'your_theme_name' ), // Your main navigation. Replace "your_theme_name" with the theme you are using. 'logged_in_user' => __( 'Logged In User', 'your_theme_name' ), // Remember replace "your_theme_name" with the theme you are using. ) ); ?> *Add the categories to the menu via the administration. *Call it in your theme. This is similar to what we have done above but will just list it like a menu and not a post listing. <?php if ( is_user_logged_in() ) { //Only displays if the user is logged in. wp_nav_menu( array( 'container' => false, 'menu_id' => 'nav', 'theme_location' => 'logged_in_user' ) ); } else { // Everyone else that is not logged in // You can display anything you want to none logged in users or just leave it blank to display nothing. } ?>
wordpress
{ "language": "en", "length": 450, "provenance": "stackexchange_00019.jsonl.gz:425795", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72569" }
[ 0.06976318359375, 0.0207977294921875, -0.0003364086151123047, -0.0181427001953125, 0.0655517578125, -0.049163818359375, 0.0670166015625, -0.00955963134765625, -0.004108428955078125, -0.0120849609375, -0.0626220703125, -0.0167388916015625, -0.031494140625, -0.027008056640625, 0.0090179443359375, -0.06329345703125, -0.00168609619140625, -0.01415252685546875, 0.0026073455810546875, -0.03948974609375, 0.0311126708984375, -0.045654296875, 0.0237884521484375, 0.019500732421875, 0.0159149169921875, 0.0034275054931640625, 0.073974609375, -0.032501220703125, 0.0197906494140625, -0.0253448486328125, 0.0223388671875, -0.033294677734375, -0.008941650390625, 0.038726806640625, 0.0184783935546875, 0.043975830078125, -0.0034332275390625, 0.0275421142578125, 0.047698974609375, 0.017120361328125, 0.0214996337890625, -0.029541015625, -0.043182373046875, 0.0093994140625, -0.0274200439453125, -0.0175018310546875, 0.006160736083984375, -0.004871368408203125, 0.033203125, 0.026763916015625, 0.01399993896484375, 0.0281219482421875, 0.018829345703125, 0.0107879638671875, -0.0061187744140625, 0.0244140625, -0.024658203125, -0.0144195556640625, 0.04449462890625, -0.015899658203125, -0.035675048828125, -0.051361083984375, 0.0306854248046875, -0.0300445556640625, 0.0083465576171875, -0.0048980712890625, 0.0535888671875, 0.022491455078125, -0.01922607421875, 0.005550384521484375, 0.01788330078125, -0.00569915771484375, 0.000789642333984375, 0.004543304443359375, -0.050079345703125, -0.0119171142578125, 0.03265380859375, -0.01226043701171875, 0.0189056396484375, 0.00666046142578125, -0.0116424560546875, -0.02435302734375, -0.044189453125, 0.001007080078125, 0.0055084228515625, 0.03460693359375, -0.0205230712890625, -0.0074310302734375, -0.0152130126953125, 0.00345611572265625, -0.005161285400390625, -0.020050048828125, -0.0255889892578125, 0.028045654296875, 0.021270751953125, -0.040924072265625, 0.03131103515625, 0.0367431640625, -0.00695037841796875, -0.01708984375, -0.0207061767578125, -0.016326904296875, -0.0428466796875, 0.0034656524658203125, 0.032196044921875, 0.019561767578125, -0.0269775390625, 0.01540374755859375, 0.066162109375, 0.02081298828125, 0.0210723876953125, 0.0256500244140625, -0.0240478515625, -0.0236053466796875, -0.028656005859375, 0.018096923828125, -0.04058837890625, -0.017974853515625, -0.02374267578125, -0.00884246826171875, 0.0019235610961914062, 0.0096435546875, 0.0218353271484375, -0.04364013671875, 0.01495361328125, -0.005504608154296875, -0.0288543701171875, -0.0197906494140625, 0.035369873046875, 0.04156494140625, -0.04193115234375, -0.0024127960205078125, 0.053497314453125, -0.0018253326416015625, 0.00994873046875, -0.0275421142578125, 0.0207061767578125, -0.01244354248046875, -0.007404327392578125, 0.0064697265625, 0.001338958740234375, -0.018951416015625, 0.00511932373046875, -0.0205535888671875, 0.02093505859375, 0.0283203125, 0.035369873046875, 0.0010690689086914062, -0.0015230178833007812, -0.058013916015625, 0.01136016845703125, -0.01059722900390625, 0.06561279296875, 0.00010055303573608398, -0.0736083984375, 0.0200653076171875, 0.0369873046875, -0.0167083740234375, -0.10931396484375, -0.057281494140625, 0.055328369140625, 0.0138397216796875, -0.0030727386474609375, -0.0273895263671875, -0.0260162353515625, -0.04180908203125, -0.07513427734375, 0.0063018798828125, 0.0282135009765625, 0.0241241455078125, 0.046234130859375, -0.016021728515625, 0.040802001953125, -0.0076751708984375, -0.0183258056640625, -0.005084991455078125, -0.02923583984375, 0.0249176025390625, 0.0222625732421875, -0.006893157958984375, -0.007053375244140625, -0.03656005859375, 0.012939453125, 0.0173187255859375, -0.037445068359375, 0.05072021484375, -0.0203399658203125, 0.005069732666015625, 0.01372528076171875, -0.01396942138671875, 0.041900634765625, 0.055877685546875, -0.031036376953125, -0.020050048828125, 0.002880096435546875, -0.03472900390625, -0.0006208419799804688, -0.0361328125, 0.00047969818115234375, 0.056182861328125, 0.046722412109375, 0.014495849609375, -0.0203704833984375, -0.00798797607421875, -0.090576171875, 0.0104522705078125, -0.0283660888671875, 0.021697998046875, -0.037628173828125, 0.026214599609375, 0.0455322265625, 0.027557373046875, -0.060516357421875, 0.008209228515625, 0.00644683837890625, -0.0101776123046875, -0.007778167724609375, 0.0428466796875, 0.0226593017578125, -0.0068817138671875, 0.0504150390625, -0.054779052734375, 0.041900634765625, 0.00099945068359375, 0.03521728515625, 0.0298004150390625, -0.0214996337890625, -0.0029430389404296875, 0.02984619140625, 0.03704833984375, -0.01091766357421875, -0.01554107666015625, 0.0616455078125, 0.03277587890625, -0.012786865234375, 0.0028781890869140625, 0.01541900634765625, -0.08758544921875, 0.001995086669921875, 0.046630859375, 0.0210113525390625, -0.0147552490234375, -0.029998779296875, 0.00004017353057861328, 0.08380126953125, -0.002101898193359375, -0.01052093505859375, 0.02032470703125, -0.0158233642578125, 0.0162200927734375, -0.01580810546875, 0.03314208984375, 0.043609619140625, 0.049102783203125, 0.028656005859375, 0.0269927978515625, -0.0067138671875, 0.00479888916015625, 0.0134429931640625, -0.0212249755859375, 0.005413055419921875, -0.03106689453125, -0.0194244384765625, -0.00597381591796875, 0.0141143798828125, -0.0274200439453125, 0.0247344970703125, -0.007266998291015625, -0.0142822265625, -0.0179595947265625, 0.006519317626953125, -0.039337158203125, 0.00594329833984375, 0.04058837890625, 0.0273590087890625, -0.002651214599609375, -0.029876708984375, -0.0156097412109375, 0.0283203125, 0.0205078125, -0.00539398193359375, 0.062286376953125, 0.005924224853515625, -0.0228729248046875, -0.035980224609375, -0.0384521484375, 0.0025310516357421875, 0.00957489013671875, -0.041900634765625, -0.047576904296875, -0.0031185150146484375, 0.02374267578125, -0.046295166015625, 0.03662109375, -0.006683349609375, -0.016326904296875, -0.0218658447265625, -0.061279296875, 0.04437255859375, -0.03692626953125, 0.0184326171875, 0.06610107421875, 0.0235137939453125, -0.009979248046875, -0.002025604248046875, -0.0274505615234375, -0.0182952880859375, 0.0262298583984375, -0.01235198974609375, -0.040496826171875, 0.000014901161193847656, 0.06072998046875, 0.012054443359375, 0.0288848876953125, -0.0186920166015625, -0.05963134765625, -0.0244140625, -0.00901031494140625, -0.06671142578125, -0.028076171875, -0.01464080810546875, -0.0241546630859375, -0.00615692138671875, -0.011871337890625, -0.0011243820190429688, 0.01308441162109375, -0.0144805908203125, -0.002025604248046875, 0.0217742919921875, -0.040435791015625, -0.03662109375, -0.040924072265625, -0.029296875, -0.007488250732421875, -0.005523681640625, -0.0265960693359375, 0.007171630859375, 0.09393310546875, 0.0154571533203125, -0.08465576171875, -0.012451171875, 0.0267791748046875, -0.0347900390625, 0.034393310546875, -0.0230865478515625, 0.00864410400390625, 0.0094146728515625, 0.0169525146484375, 0.0265045166015625, -0.003997802734375, -0.00286102294921875, -0.02154541015625, 0.0157470703125, 0.0264739990234375, 0.050018310546875, -0.01418304443359375, -0.03204345703125, 0.044281005859375, 0.0243988037109375, -0.01251220703125, 0.00426483154296875, -0.00574493408203125, -0.027069091796875, -0.00513458251953125, 0.00804901123046875, -0.01320648193359375, 0.0013151168823242188, -0.0172271728515625, 0.02435302734375, 0.0142364501953125, -0.06634521484375, 0.001384735107421875, 0.0012769699096679688, 0.0225982666015625, 0.054840087890625, 0.02862548828125, -0.006275177001953125, -0.0254058837890625, -0.0166168212890625, -0.0236968994140625, -0.0028820037841796875, -0.00907135009765625, 0.0031948089599609375, -0.025177001953125, -0.03619384765625, 0.035064697265625, -0.034271240234375, 0.0226898193359375, -0.03680419921875, -0.01531219482421875, -0.0052490234375, 0.09027099609375, -0.049560546875, -0.0133819580078125, -0.0113677978515625, 0.007282257080078125, -0.006977081298828125, -0.01383209228515625, -0.036285400390625, -0.00534820556640625, -0.057220458984375, 0.0006628036499023438, 0.00351715087890625, -0.035369873046875, -0.0150299072265625, 0.005527496337890625, -0.050689697265625, -0.01532745361328125, 0.0265045166015625, 0.00856781005859375, 0.0264739990234375, -0.0286712646484375, 0.0098724365234375, -0.03228759765625, -0.002765655517578125, -0.01104736328125, -0.049713134765625, -0.01068878173828125, 0.00872039794921875, 0.017822265625, -0.00661468505859375, 0.0162200927734375, -0.016387939453125, 0.0257720947265625, 0.00803375244140625, -0.0220947265625, 0.0153045654296875, 0.01690673828125, -0.0205230712890625, -0.026458740234375, -0.005889892578125, -0.0438232421875, -0.014892578125, -0.0143585205078125, 0.0199127197265625, 0.033172607421875, -0.0290679931640625, -0.0168304443359375, -0.0220489501953125, -0.0005207061767578125, -0.04290771484375, -0.0165252685546875, -0.029815673828125, -0.00485992431640625, -0.02349853515625, -0.021942138671875, -0.01073455810546875, -0.049041748046875, 0.03759765625, 0.00847625732421875, -0.0215911865234375, 0.0217742919921875, 0.06060791015625, 0.012969970703125, -0.00754547119140625, -0.0787353515625, 0.0105438232421875, 0.019073486328125, -0.01549530029296875, 0.056915283203125, 0.0149993896484375, -0.01108551025390625, 0.07305908203125, -0.0186004638671875, -0.010986328125, -0.03643798828125, 0.06396484375, -0.007549285888671875, -0.019012451171875, 0.0161590576171875, -0.0421142578125, 0.026519775390625, 0.00429534912109375, 0.00438690185546875, -0.042144775390625, 0.017059326171875, 0.0548095703125, 0.0008726119995117188, 0.0110931396484375, -0.03515625, -0.022613525390625, 0.00708770751953125, 0.04046630859375, 0.034698486328125, 0.031951904296875, -0.0099029541015625, 0.0200347900390625, 0.002140045166015625, -0.0012798309326171875, 0.012542724609375, 0.01522064208984375, -0.01096343994140625, 0.02587890625, 0.001972198486328125, -0.024261474609375, -0.00750732421875, 0.012359619140625, -0.00347137451171875, -0.03863525390625, -0.07232666015625, -0.006366729736328125, 0.0074920654296875, 0.03582763671875, 0.050201416015625, -0.00870513916015625, 0.031097412109375, 0.0163116455078125, -0.0110015869140625, 0.0087738037109375, 0.0037212371826171875, -0.007251739501953125, -0.024658203125, 0.01611328125, 0.0071868896484375, 0.0118560791015625, 0.00923919677734375, 0.06781005859375, 0.01312255859375, 0.04559326171875, -0.0372314453125, 0.04254150390625, 0.053436279296875, -0.002666473388671875, 0.01451873779296875, 0.01241302490234375, -0.00820159912109375, -0.0184783935546875, -0.008453369140625, -0.0237274169921875, -0.01153564453125, -0.002643585205078125, -0.001758575439453125, -0.03656005859375, -0.018798828125, 0.048980712890625, 0.01343536376953125, 0.00466156005859375, 0.039154052734375, 0.006256103515625, -0.039398193359375, -0.03997802734375, -0.004207611083984375, 0.041748046875, -0.029449462890625, 0.00135040283203125, -0.01294708251953125, -0.018524169921875, 0.005657196044921875, -0.01751708984375, -0.031158447265625, 0.012725830078125, 0.0271759033203125, -0.07086181640625, -0.0229644775390625, 0.0177764892578125, 0.0006465911865234375, -0.01389312744140625, 0.00952911376953125, -0.037200927734375, 0.0005559921264648438, -0.0288238525390625, 0.042877197265625, -0.04022216796875, -0.0123291015625, -0.003139495849609375, -0.007106781005859375, 0.0631103515625, 0.043182373046875, -0.062225341796875, 0.0088653564453125, -0.0782470703125, -0.0008902549743652344, -0.0181732177734375, -0.0406494140625, -0.02587890625, -0.00013744831085205078, 0.041900634765625, 0.0166015625, -0.0222625732421875, -0.0982666015625, -0.021942138671875, 0.012115478515625, 0.05450439453125, 0.035980224609375, -0.0243682861328125, 0.06597900390625, 0.004505157470703125, 0.043792724609375, -0.00043511390686035156, -0.013427734375, -0.0614013671875, 0.0031528472900390625, -0.031768798828125, -0.09661865234375, 0.004375457763671875, 0.031341552734375, -0.033172607421875, 0.0657958984375, 0.045074462890625, 0.01532745361328125, 0.0197906494140625, -0.0015134811401367188, 0.006500244140625, -0.02618408203125, -0.0297393798828125, -0.01053619384765625, 0.0206298828125, -0.01091766357421875, 0.0125732421875, 0.0229034423828125, -0.0205078125, -0.0207061767578125, 0.0006103515625, 0.01117706298828125, 0.0233154296875, -0.006954193115234375, -0.04974365234375, 0.029144287109375, 0.050994873046875, 0.02667236328125, 0.053863525390625, 0.002628326416015625, 0.030914306640625, 0.018280029296875, -0.034637451171875, -0.0025157928466796875, 0.01123046875, 0.0146026611328125, -0.033782958984375, -0.0165557861328125, 0.00458526611328125, -0.027069091796875, -0.01010894775390625, 0.07489013671875, 0.037841796875, -0.11187744140625, 0.01186370849609375, 0.00891876220703125, 0.0079498291015625, -0.01171112060546875, 0.0211944580078125, -0.004940032958984375, 0.01236724853515625, -0.0290069580078125, 0.0182342529296875, -0.03424072265625, -0.008544921875, 0.03167724609375, -0.01015472412109375, -0.030364990234375, 0.021209716796875, 0.0063629150390625, 0.0028057098388671875, 0.00012093782424926758, -0.0026683807373046875, -0.0020008087158203125, -0.032135009765625, 0.0167999267578125, 0.006465911865234375, -0.023406982421875, -0.0841064453125, 0.005840301513671875, 0.04095458984375, -0.0243377685546875, 0.0265655517578125, -0.006011962890625, -0.0000209808349609375, 0.026458740234375, -0.0010929107666015625, -0.0032825469970703125, 0.00047516822814941406, -0.058135986328125, 0.0182647705078125, -0.0111236572265625, -0.00638580322265625, 0.05419921875, -0.0298004150390625, 0.01534271240234375, 0.0003826618194580078, -0.01212310791015625, -0.0159759521484375, -0.06549072265625, 0.0269927978515625, -0.03118896484375, 0.01203155517578125, 0.0234222412109375, 0.0307159423828125, -0.00531005859375, 0.0020198822021484375, -0.002452850341796875, -0.0323486328125, -0.0003294944763183594, -0.0034637451171875, -0.01129913330078125, 0.00980377197265625, 0.01116943359375, -0.036041259765625, 0.03753662109375, 0.0073394775390625, 0.005283355712890625, 0.015960693359375, 0.0090484619140625, -0.0148162841796875, 0.002349853515625, -0.040283203125, 0.037017822265625, 0.0316162109375, 0.023956298828125, -0.00836944580078125, -0.00995635986328125, 0.01523590087890625, 0.00815582275390625, 0.044036865234375, 0.01508331298828125, -0.048004150390625, -0.021697998046875, 0.00873565673828125, 0.035919189453125, -0.00930023193359375, 0.0279541015625, 0.01995849609375, 0.0205535888671875, 0.052764892578125, -0.008270263671875, 0.046630859375, 0.01174163818359375, -0.0218658447265625, 0.0423583984375, 0.0025348663330078125, 0.02020263671875, -0.0021190643310546875, 0.0124053955078125, -0.02655029296875, -0.0036907196044921875, 0.0239105224609375, -0.0202789306640625, -0.0006313323974609375, 0.0263214111328125, 0.038299560546875, -0.07769775390625, -0.0059967041015625, -0.04034423828125, 0.046295166015625, 0.0145263671875, 0.033935546875, 0.0158843994140625, 0.0104827880859375, 0.03546142578125, -0.0179443359375, 0.012786865234375, 0.00937652587890625, -0.02752685546875, 0.025177001953125, 0.0293731689453125, 0.03173828125, -0.0278167724609375, 0.0188751220703125, 0.06494140625, 0.04681396484375, -0.026275634765625, -0.04449462890625, 0.0049896240234375, 0.0264739990234375, 0.007457733154296875, 0.04254150390625, 0.037109375, 0.05780029296875, 0.1065673828125, -0.07781982421875, 0.01122283935546875, 0.05078125, 0.037872314453125, -0.02685546875, -0.054534912109375, -0.03973388671875, -0.0172576904296875, -0.047088623046875, 0.0015840530395507812, 0.034759521484375, 0.05322265625, 0.0267486572265625, 0.030029296875, 0.0025634765625, -0.032623291015625, 0.003078460693359375, 0.0207366943359375, -0.0241851806640625, -0.0059051513671875, -0.00585174560546875, -0.036468505859375, -0.029541015625, 0.02850341796875, -0.002948760986328125, 0.0106964111328125, 0.0032501220703125, 0.0338134765625, 0.036834716796875, 0.0028743743896484375, 0.040771484375, 0.0023517608642578125, 0.0034999847412109375, -0.0185394287109375, 0.0400390625, 0.051788330078125, 0.007068634033203125, -0.00679779052734375, 0.021240234375, 0.0556640625, -0.022979736328125, 0.03741455078125, 0.004146575927734375, -0.034423828125, 0.03521728515625, 0.003665924072265625, 0.06964111328125, 0.01558685302734375, -0.06439208984375, 0.0016660690307617188, -0.052093505859375, -0.023345947265625, 0.02093505859375, 0.025726318359375, -0.0020465850830078125, 0.023284912109375, 0.06201171875, -0.043914794921875, -0.003810882568359375, 0.01312255859375, 0.04705810546875, -0.032379150390625, -0.015106201171875, -0.00640869140625, -0.004848480224609375, -0.007232666015625, -0.02374267578125, 0.0246734619140625, 0.021881103515625, 0.0151519775390625, 0.00787353515625, 0.03497314453125, -0.05133056640625, 0.049530029296875, -0.06634521484375, -0.03143310546875, 0.046234130859375, -0.0003063678741455078, -0.01123046875, 0.000056803226470947266, 0.016632080078125, 0.001369476318359375, 0.03778076171875, -0.0263671875, -0.003513336181640625, -0.0333251953125, 0.01396942138671875, -0.02008056640625, 0.033935546875, -0.000484466552734375, -0.00910186767578125, -0.042877197265625, -0.027862548828125, 0.05499267578125, 0.0577392578125, 0.00582122802734375, 0.02490234375, -0.05426025390625, -0.0166778564453125, 0.00414276123046875, -0.02520751953125, -0.00835418701171875, 0.0152435302734375, -0.04949951171875, 0.03533935546875, 0.0099945068359375, -0.016448974609375, 0.01277923583984375, 0.014892578125, -0.021697998046875, 0.0106201171875, -0.0177764892578125, 0.01016998291015625, 0.03961181640625, 0.042205810546875, -0.0298614501953125, 0.01178741455078125, 0.01297760009765625, -0.01715087890625, 0.0257720947265625, -0.0058135986328125, -0.045379638671875, -0.0157928466796875, -0.0158843994140625, -0.00342559814453125, -0.004062652587890625, -0.08984375, -0.053070068359375, 0.023773193359375, 0.04229736328125, -0.0037479400634765625, -0.057220458984375, 0.0189666748046875, -0.0275421142578125, 0.08477783203125, -0.0209808349609375, 0.005191802978515625, 0.0089569091796875, 0.00144195556640625, -0.036346435546875, 0.03399658203125, -0.0291595458984375, -0.0249786376953125, 0.0144195556640625, 0.0103912353515625, 0.01087188720703125, -0.03070068359375, -0.0174102783203125, 0.03875732421875, 0.0164337158203125, 0.07122802734375, 0.049652099609375, -0.0159149169921875, 0.00850677490234375, 0.003810882568359375, -0.0411376953125, -0.0034046173095703125, 0.024566650390625, -0.01534271240234375, -0.045684814453125, 0.017730712890625, -0.0207061767578125, 0.01702880859375, -0.0309906005859375, -0.0994873046875, 0.09808349609375, -0.028167724609375, -0.037322998046875, -0.059295654296875, 0.01049041748046875, 0.005615234375, -0.0196533203125, -0.0276947021484375, -0.00795745849609375, -0.035400390625, 0.028564453125, 0.0245819091796875, -0.0139923095703125, 0.034881591796875, 0.0016956329345703125, -0.09039306640625, 0.01277923583984375, -0.004425048828125, 0.033660888671875, -0.0182952880859375, 0.03350830078125, -0.01274871826171875, 0.01113128662109375, -0.045806884765625, 0.035369873046875, -0.0269622802734375, 0.03765869140625, 0.0192718505859375, -0.03607177734375, -0.05126953125, -0.04083251953125, 0.04498291015625, 0.004825592041015625, 0.0216827392578125, -0.00286865234375, -0.03460693359375, -0.030242919921875, -0.0201568603515625, -0.01068115234375, 0.0186767578125, -0.057952880859375, -0.00025272369384765625, 0.00827789306640625, -0.0364990234375, 0.00237274169921875, 0.0030231475830078125, -0.053924560546875, 0.01004791259765625, -0.01080322265625, -0.01250457763671875, -0.056427001953125, 0.048675537109375, -0.086669921875, 0.00724029541015625, -0.04962158203125, -0.015655517578125, -0.01143646240234375, -0.091552734375, -0.0249786376953125, -0.0076904296875, -0.0391845703125, 0.024078369140625, 0.029754638671875, 0.0023632049560546875, 0.0256195068359375, -0.0024585723876953125, -0.0162353515625, -0.01458740234375, 0.03436279296875, 0.0176849365234375, 0.033477783203125, -0.051025390625, 0.022003173828125, 0.01253509521484375, 0.03961181640625, -0.00626373291015625, 0.0255279541015625, -0.0130462646484375, 0.040802001953125, 0.0177459716796875, -0.019775390625, 0.031585693359375, -0.0009016990661621094, 0.0088043212890625, -0.0241851806640625, 0.0017604827880859375, -0.01898193359375, -0.000015139579772949219, -0.0099945068359375, -0.020355224609375, 0.002468109130859375 ]
212f4d0b32afd5aa95b017a0cbae2adf1c3d80fa
Wordpress Stackexchange Q: Set default avatar network-wide I've seen plugins and snippets on how to set a new default avatar for a site. I'm wondering if this can be done network-wide, such that every new site on the network will have the network's avatar as its primary default. from there the plugin's that allow the user to upload a new avatar will be sufficient to let each site define it's own. But until they do I'd prefer they have my avatar than the mystery man or some of the others which are downright ugly. A: The avatar_default is the better option. add_filter('pre_option_avatar_default', 'se72578_avatar_default'); function se72578_avatar_default( $option ){ return 'http://example.com/your/default/here.jpg'; } Simple. Stick that in a mu-plugin and you're good to go. Edit: If you want to still allow site owners to change the default avatar, use the default_option_avatar_default hook instead.
Q: Set default avatar network-wide I've seen plugins and snippets on how to set a new default avatar for a site. I'm wondering if this can be done network-wide, such that every new site on the network will have the network's avatar as its primary default. from there the plugin's that allow the user to upload a new avatar will be sufficient to let each site define it's own. But until they do I'd prefer they have my avatar than the mystery man or some of the others which are downright ugly. A: The avatar_default is the better option. add_filter('pre_option_avatar_default', 'se72578_avatar_default'); function se72578_avatar_default( $option ){ return 'http://example.com/your/default/here.jpg'; } Simple. Stick that in a mu-plugin and you're good to go. Edit: If you want to still allow site owners to change the default avatar, use the default_option_avatar_default hook instead. A: Must Use Plugins will anable functionality global. And actualy functionality is pretty simple... only prefiltring default_avatar value. Use this code as plugin which you can install to anable default avatar. <?php /* Plugin Name: Network Default Avatar Description: This Plugin Used to be the General Framework Author: Version: Author URI: */ add_filter('pre_option_avatar_default', 'pre_option_avatar_default'); function pre_option_avatar_default(){ return 'mystery'; } Update New code * *Using get_avatar filter hook you can replace the original avatar add_filter('get_avatar', 'get_avatar_custom',10,5); function get_avatar_custom($avatar, $id_or_email, $size, $default, $alt){ // your code here... /* ** Example code will check if current avatar string is contain "mystery" avatar if yes, it will ** try to get site_default_avatar property from options table (you can create a UI for entering this value) ** if system_default_avatar exists - filter will repalce default value (first argument of this filter callback) ** and return new value ** if (strpos($avatar, '561e2e7a9910204ba43fa4097e45c5e9') !== false ** && get_option('site_default_avatar', false) != ''){ ** $avatar = "<img alt='".esc_attr($alt)."' src='".get_option('site_default_avatar', false)."' ** class='avatar avatar-{$size} photo avatar-default' height='{$size}' width='{$size}' />"; ** } ** */ return $avatar; } *Using a... get_avatar function. get avatar is plugable function, which mean you can ovveride it in any plugin, theme or in our case in mu-plugin function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false { // your code here return $some_html_with_avatar_picture; } A: In my mu-plugins folder I now have the following code, which adds a custom avatar as the default network wide, but allows each individual site to change it thereafter. <?php /* Plugin Name: Network Default Avatar Description: This Plugin sets the default avatar network-wide */ class Network_Default_Avatars { // configure these two variables static $name = "Network Default"; // text description of avatar... ie "Mystery Man" static $avatar = "http://example.com/default-avatar.png"; // URL of avatar function __construct() { // default avatar add_filter( 'avatar_defaults', array( $this, 'default_avatar' ) ); add_action( 'wpmu_new_blog', array( $this, 'new_blog_default_avatar' ) ); } // add to list of default avatars function default_avatar ($avatar_defaults) { $ib_avatar[self::$avatar] = self::$name; return array_merge( $ib_avatar,$avatar_defaults ); // Put our custom avatar on top } // set a new blog to have the default avatar function new_blog_default_avatar( $blog_id ){ switch_to_blog($blog_id); update_option( 'avatar_default', esc_url( self::$avatar ) ); restore_current_blog(); } } new Network_Default_Avatars(); EDIT #1 Per @Otto's comment about the default_option_avatar_default_filter I've changed the new blog update_option action to use the default filter instead. <?php /* Plugin Name: Network Default Avatar Description: This Plugin sets the default avatar network-wide */ class Network_Default_Avatars { // configure these two variables static $name = "Network Default"; // text description of avatar... ie "Mystery Man" static $avatar = "http://example.com/default-avatar.png"; // URL of avatar function __construct() { // default avatar add_filter( 'avatar_defaults', array( $this, 'avatar_defaults' ) ); add_filter( 'default_option_avatar_default', array( $this, 'default_avatar' ) ); } // add to list of default avatars function avatar_defaults ($avatar_defaults) { $ib_avatar[self::$avatar] = self::$name; return array_merge( $ib_avatar,$avatar_defaults ); // Put our custom avatars on top } function default_avatar () { return self::$avatar; } } new Network_Default_Avatars();
wordpress
{ "language": "en", "length": 630, "provenance": "stackexchange_00019.jsonl.gz:425800", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72578" }
[ 0.036468505859375, -0.030517578125, 0.04071044921875, 0.0018444061279296875, -0.0194244384765625, -0.01076507568359375, 0.0599365234375, -0.040008544921875, 0.007564544677734375, 0.024566650390625, -0.029449462890625, 0.01013946533203125, -0.031402587890625, -0.00682830810546875, -0.0247955322265625, -0.0279541015625, 0.035400390625, 0.023834228515625, 0.03173828125, -0.0138702392578125, 0.0091552734375, 0.037506103515625, -0.02362060546875, 0.052001953125, 0.0156402587890625, -0.024200439453125, 0.051605224609375, 0.0042572021484375, -0.021484375, -0.0193328857421875, 0.01497650146484375, 0.007190704345703125, 0.001308441162109375, 0.01556396484375, 0.01125335693359375, -0.020050048828125, 0.01107025146484375, -0.0007715225219726562, 0.0123138427734375, 0.0270233154296875, 0.0545654296875, -0.036285400390625, -0.0238494873046875, 0.011566162109375, -0.0168609619140625, -0.057037353515625, 0.06829833984375, -0.04034423828125, 0.033203125, 0.003955841064453125, -0.0084381103515625, 0.00734710693359375, 0.0029506683349609375, -0.019317626953125, -0.02490234375, -0.0509033203125, 0.0262908935546875, -0.0126190185546875, 0.050140380859375, -0.0269775390625, -0.031097412109375, -0.020538330078125, 0.030517578125, -0.0217742919921875, 0.0255584716796875, -0.0240020751953125, 0.0477294921875, 0.0237884521484375, -0.0177001953125, 0.0153350830078125, 0.0300140380859375, 0.003711700439453125, 0.024749755859375, -0.03662109375, -0.01617431640625, 0.030487060546875, -0.0161895751953125, 0.0269012451171875, 0.04541015625, -0.046234130859375, -0.0099945068359375, -0.0150909423828125, -0.0467529296875, -0.04144287109375, 0.0143585205078125, -0.00470733642578125, -0.007236480712890625, -0.0020904541015625, -0.024261474609375, 0.01141357421875, -0.0175323486328125, 0.00478363037109375, -0.0110626220703125, 0.00989532470703125, -0.020843505859375, 0.00263214111328125, -0.005168914794921875, 0.01202392578125, -0.004596710205078125, -0.001323699951171875, 0.0024776458740234375, -0.030975341796875, 0.0212554931640625, -0.02630615234375, -0.001506805419921875, 0.049072265625, -0.0028018951416015625, -0.03070068359375, 0.00878143310546875, 0.0189056396484375, 0.00676727294921875, 0.0003991127014160156, -0.00348663330078125, 0.0206756591796875, -0.0379638671875, -0.03375244140625, -0.062347412109375, 0.00299072265625, -0.0185394287109375, -0.01450347900390625, 0.004077911376953125, 0.016448974609375, 0.0158843994140625, -0.0180206298828125, -0.0132904052734375, -0.0301513671875, -0.0186309814453125, -0.038055419921875, -0.08526611328125, -0.004024505615234375, -0.003597259521484375, 0.0249176025390625, 0.07586669921875, 0.077392578125, 0.00965118408203125, 0.004535675048828125, 0.01271820068359375, -0.030242919921875, 0.004489898681640625, 0.01404571533203125, 0.01520538330078125, -0.0281982421875, -0.0112457275390625, 0.016143798828125, -0.0007958412170410156, 0.04150390625, 0.03277587890625, 0.00678253173828125, -0.029205322265625, -0.0516357421875, 0.0175628662109375, -0.012542724609375, -0.034881591796875, 0.0037937164306640625, 0.1219482421875, -0.0021076202392578125, 0.07061767578125, -0.0224761962890625, 0.0195770263671875, 0.0311431884765625, -0.00894927978515625, -0.024871826171875, 0.00099945068359375, -0.0107269287109375, -0.0303192138671875, 0.029144287109375, 0.0111236572265625, 0.0090484619140625, 0.01715087890625, -0.043365478515625, -0.01319122314453125, 0.01528167724609375, 0.054779052734375, 0.00107574462890625, -0.00885009765625, 0.0267791748046875, -0.052032470703125, 0.0177154541015625, 0.0179443359375, 0.0179443359375, 0.0186614990234375, -0.038665771484375, 0.01230621337890625, 0.03326416015625, -0.06719970703125, 0.005615234375, -0.0138702392578125, 0.01399993896484375, 0.061279296875, -0.00597381591796875, 0.05389404296875, -0.022430419921875, -0.078369140625, 0.01320648193359375, 0.006160736083984375, 0.0242919921875, -0.0186614990234375, 0.010406494140625, 0.0137481689453125, -0.0374755859375, 0.00434112548828125, -0.004840850830078125, 0.003208160400390625, 0.01052093505859375, -0.007709503173828125, -0.0132904052734375, -0.0078887939453125, 0.0050048828125, 0.028289794921875, -0.0008335113525390625, -0.0186614990234375, -0.03076171875, 0.0269317626953125, -0.0738525390625, -0.055572509765625, 0.032989501953125, -0.01380157470703125, -0.0082550048828125, 0.00696563720703125, 0.01959228515625, 0.01064300537109375, 0.0202484130859375, -0.007232666015625, 0.007259368896484375, 0.020599365234375, -0.01458740234375, -0.0243072509765625, -0.0187225341796875, -0.0086669921875, -0.0069122314453125, -0.016357421875, 0.0516357421875, -0.052215576171875, -0.00931549072265625, -0.01224517822265625, -0.0125732421875, -0.0136566162109375, -0.038970947265625, 0.03192138671875, 0.03631591796875, 0.0206451416015625, -0.0013446807861328125, -0.01055908203125, 0.0194549560546875, -0.015625, -0.035064697265625, 0.037506103515625, -0.00384521484375, -0.0165863037109375, -0.021636962890625, -0.0238800048828125, -0.0264434814453125, 0.03533935546875, -0.095458984375, -0.0029735565185546875, 0.03887939453125, -0.0257110595703125, -0.03887939453125, 0.024444580078125, -0.007648468017578125, 0.01666259765625, -0.0081787109375, -0.0189208984375, 0.022674560546875, 0.04437255859375, -0.03057861328125, -0.005054473876953125, -0.0233001708984375, -0.0294342041015625, 0.0147247314453125, 0.024444580078125, -0.0693359375, 0.00402069091796875, 0.03765869140625, 0.06756591796875, 0.0080108642578125, -0.036773681640625, -0.0287933349609375, 0.04461669921875, 0.039764404296875, -0.01849365234375, 0.029998779296875, -0.0005407333374023438, -0.0154876708984375, -0.007312774658203125, -0.033203125, -0.004535675048828125, -0.0270538330078125, -0.01303863525390625, -0.041900634765625, 0.014190673828125, -0.0044097900390625, -0.0244903564453125, 0.018768310546875, -0.0025310516357421875, -0.034576416015625, -0.044830322265625, -0.08203125, 0.06396484375, -0.09149169921875, 0.0271148681640625, 0.0694580078125, -0.021820068359375, 0.015594482421875, -0.016998291015625, -0.003528594970703125, -0.03662109375, 0.033233642578125, -0.0032520294189453125, -0.05938720703125, 0.0040283203125, 0.0296783447265625, -0.01165771484375, -0.03839111328125, -0.04248046875, -0.042236328125, -0.0426025390625, -0.048980712890625, -0.06536865234375, 0.024993896484375, -0.0013151168823242188, -0.01004791259765625, -0.0017099380493164062, -0.034271240234375, 0.01727294921875, -0.006061553955078125, -0.04632568359375, 0.0037746429443359375, -0.02117919921875, -0.0015773773193359375, -0.0029850006103515625, -0.04486083984375, -0.053436279296875, -0.037078857421875, 0.0092010498046875, 0.017730712890625, 0.0149993896484375, 0.047088623046875, 0.0100250244140625, -0.026702880859375, 0.01316070556640625, -0.01885986328125, -0.027496337890625, -0.012451171875, 0.03240966796875, -0.0462646484375, -0.019134521484375, -0.01287078857421875, 0.022674560546875, 0.052734375, -0.049896240234375, 0.0142974853515625, -0.018157958984375, -0.03729248046875, 0.01528167724609375, 0.022216796875, -0.0125885009765625, -0.0474853515625, 0.0229339599609375, -0.057373046875, -0.03594970703125, 0.0185089111328125, -0.0269775390625, 0.0667724609375, -0.0023956298828125, -0.0238800048828125, 0.037506103515625, 0.0396728515625, -0.030670166015625, -0.0299530029296875, 0.03350830078125, -0.0360107421875, -0.01486968994140625, -0.016387939453125, -0.045806884765625, -0.008148193359375, 0.035980224609375, -0.031951904296875, -0.0017538070678710938, 0.00002473592758178711, -0.00536346435546875, 0.0166778564453125, 0.0004892349243164062, 0.0297393798828125, -0.0287628173828125, 0.0264129638671875, -0.02593994140625, 0.02886962890625, -0.046356201171875, -0.0024547576904296875, -0.032806396484375, 0.0595703125, -0.0108184814453125, -0.0006012916564941406, -0.0230255126953125, -0.01080322265625, 0.00868988037109375, -0.01378631591796875, -0.0191650390625, -0.0190582275390625, -0.06695556640625, 0.001087188720703125, 0.00994873046875, -0.0537109375, 0.01507568359375, -0.061279296875, -0.028228759765625, -0.0440673828125, 0.012451171875, -0.0171051025390625, -0.01088714599609375, 0.0102386474609375, -0.03887939453125, 0.010345458984375, -0.00998687744140625, -0.0343017578125, -0.06915283203125, -0.0085296630859375, -0.025787353515625, 0.04730224609375, 0.00811767578125, 0.0215911865234375, -0.05084228515625, 0.030364990234375, 0.0114288330078125, 0.01001739501953125, -0.0013780593872070312, -0.002307891845703125, -0.00751495361328125, -0.0160369873046875, 0.0011959075927734375, -0.02490234375, -0.0008139610290527344, -0.0341796875, -0.07659912109375, -0.03497314453125, -0.005279541015625, 0.028228759765625, 0.0318603515625, -0.040771484375, -0.037261962890625, -0.060272216796875, -0.006072998046875, 0.00458526611328125, -0.00817108154296875, 0.006214141845703125, -0.062347412109375, -0.0228271484375, 0.055267333984375, 0.01355743408203125, -0.03509521484375, -0.0006880760192871094, 0.0662841796875, 0.02557373046875, -0.018280029296875, -0.0259552001953125, -0.01666259765625, 0.032806396484375, 0.0248565673828125, 0.0108489990234375, 0.0138397216796875, -0.0190582275390625, 0.0271759033203125, 0.032806396484375, 0.0308837890625, -0.024871826171875, 0.036590576171875, -0.0262603759765625, -0.042510986328125, 0.055694580078125, 0.00044608116149902344, -0.0310211181640625, 0.0008993148803710938, -0.0194549560546875, 0.0136871337890625, -0.03466796875, 0.0008955001831054688, 0.0294647216796875, -0.027557373046875, -0.049407958984375, -0.035736083984375, 0.0305023193359375, -0.01290130615234375, 0.0263519287109375, -0.0281982421875, 0.0163726806640625, 0.00440216064453125, -0.006534576416015625, -0.006290435791015625, -0.02740478515625, -0.0224456787109375, -0.005275726318359375, 0.015869140625, -0.002849578857421875, 0.006244659423828125, -0.01947021484375, -0.028045654296875, 0.1072998046875, 0.01540374755859375, -0.03607177734375, -0.00345611572265625, -0.0236968994140625, 0.045166015625, -0.0070343017578125, -0.0016269683837890625, 0.032257080078125, 0.01471710205078125, -0.01448822021484375, -0.002941131591796875, -0.017791748046875, 0.010711669921875, -0.049163818359375, 0.037017822265625, 0.01218414306640625, -0.0093841552734375, 0.029388427734375, 0.0374755859375, 0.0019989013671875, 0.0335693359375, -0.0078125, 0.0271759033203125, 0.04486083984375, 0.005199432373046875, 0.007793426513671875, 0.0185089111328125, -0.00876617431640625, -0.005126953125, 0.012603759765625, -0.008087158203125, -0.01245880126953125, 0.014373779296875, 0.02618408203125, -0.00862884521484375, -0.0012722015380859375, 0.0141754150390625, -0.029541015625, 0.01068878173828125, -0.008087158203125, -0.03759765625, -0.031768798828125, -0.00547027587890625, 0.017486572265625, 0.034698486328125, -0.01995849609375, -0.01050567626953125, -0.05242919921875, -0.0019426345825195312, -0.0313720703125, 0.0042266845703125, -0.0694580078125, 0.034637451171875, 0.040863037109375, -0.00333404541015625, 0.0062255859375, 0.00757598876953125, -0.06402587890625, -0.02386474609375, -0.0238494873046875, -0.01036834716796875, 0.07940673828125, -0.0183258056640625, 0.046356201171875, -0.019134521484375, -0.023406982421875, -0.0237274169921875, 0.0222320556640625, 0.02447509765625, 0.015625, -0.04449462890625, 0.003993988037109375, -0.0548095703125, -0.0182037353515625, 0.05023193359375, 0.0010194778442382812, -0.035369873046875, -0.0285797119140625, 0.01114654541015625, 0.03021240234375, 0.01030731201171875, 0.000041425228118896484, -0.003826141357421875, 0.005840301513671875, 0.0026721954345703125, 0.052520751953125, -0.0418701171875, 0.0178375244140625, -0.00763702392578125, 0.0033626556396484375, -0.0380859375, -0.016845703125, 0.00963592529296875, 0.01100921630859375, 0.01500701904296875, -0.029022216796875, -0.03314208984375, -0.01187896728515625, -0.056610107421875, -0.000014007091522216797, 0.05194091796875, -0.0011186599731445312, 0.002674102783203125, -0.0302276611328125, -0.0006046295166015625, -0.01383209228515625, 0.04302978515625, -0.031524658203125, 0.00212860107421875, 0.0193939208984375, 0.00725555419921875, 0.0222320556640625, -0.0064697265625, -0.044403076171875, 0.01934814453125, 0.006565093994140625, 0.0217742919921875, 0.0028629302978515625, -0.04638671875, 0.06207275390625, 0.08740234375, -0.009857177734375, 0.0216064453125, 0.030181884765625, -0.028778076171875, -0.004116058349609375, 0.01309967041015625, 0.0242156982421875, -0.043060302734375, 0.01172637939453125, -0.01033782958984375, 0.00244140625, -0.0080108642578125, -0.019775390625, 0.04779052734375, 0.0128326416015625, 0.06298828125, -0.056854248046875, 0.04449462890625, 0.0157928466796875, -0.008453369140625, 0.044708251953125, 0.004314422607421875, -0.0149993896484375, -0.026031494140625, 0.054290771484375, -0.037384033203125, -0.02374267578125, 0.0292816162109375, 0.006626129150390625, 0.01044464111328125, -0.0157012939453125, 0.0263671875, -0.00853729248046875, 0.0232391357421875, -0.034332275390625, -0.0160369873046875, 0.009002685546875, -0.03961181640625, -0.0037708282470703125, 0.03466796875, -0.0184173583984375, -0.0594482421875, 0.044830322265625, -0.020751953125, 0.0171661376953125, 0.057861328125, -0.0301361083984375, 0.00505828857421875, 0.0237579345703125, -0.0256500244140625, 0.0221710205078125, -0.00411224365234375, -0.03173828125, -0.00798797607421875, -0.031982421875, 0.0226898193359375, 0.0084075927734375, -0.035247802734375, 0.020294189453125, -0.013092041015625, -0.034576416015625, 0.00293731689453125, -0.0343017578125, 0.06524658203125, -0.0574951171875, -0.0045318603515625, 0.004184722900390625, 0.005031585693359375, 0.0193023681640625, -0.00904083251953125, -0.004085540771484375, -0.0487060546875, -0.05023193359375, -0.0194244384765625, -0.08251953125, -0.0034427642822265625, -0.036102294921875, -0.0589599609375, 0.0233001708984375, 0.014312744140625, 0.0168304443359375, -0.0098419189453125, -0.001003265380859375, -0.0104217529296875, -0.0224609375, -0.023162841796875, 0.022491455078125, -0.01534271240234375, 0.0185546875, 0.0081939697265625, 0.0125885009765625, 0.01788330078125, 0.0014505386352539062, 0.0311126708984375, 0.0147247314453125, -0.03265380859375, 0.0032749176025390625, 0.04388427734375, 0.01105499267578125, 0.005184173583984375, 0.049774169921875, 0.005298614501953125, 0.014495849609375, 0.003498077392578125, -0.0146484375, 0.01540374755859375, -0.0012006759643554688, -0.025848388671875, 0.0259857177734375, 0.01531982421875, 0.0184478759765625, 0.00803375244140625, 0.035675048828125, -0.061798095703125, 0.005329132080078125, 0.050048828125, -0.04278564453125, 0.01025390625, 0.034454345703125, 0.03521728515625, 0.0217742919921875, -0.0244903564453125, 0.0012559890747070312, 0.042572021484375, 0.0301971435546875, -0.031768798828125, 0.04986572265625, 0.0155792236328125, -0.054931640625, 0.018798828125, -0.004528045654296875, -0.00725555419921875, 0.01800537109375, 0.0491943359375, -0.0289154052734375, 0.0283203125, -0.09130859375, -0.08056640625, 0.034698486328125, 0.08306884765625, -0.0115203857421875, -0.0660400390625, 0.019317626953125, 0.0007877349853515625, 0.04132080078125, 0.0279693603515625, 0.06854248046875, -0.08135986328125, -0.0328369140625, -0.039520263671875, 0.0169830322265625, 0.03607177734375, 0.0013179779052734375, 0.004619598388671875, 0.03485107421875, -0.04302978515625, 0.027313232421875, -0.0233612060546875, 0.006610870361328125, 0.0118255615234375, 0.016632080078125, 0.01175689697265625, 0.00876617431640625, 0.00567626953125, -0.00025081634521484375, -0.00543975830078125, 0.028839111328125, 0.0138702392578125, 0.00441741943359375, -0.0113677978515625, -0.00849151611328125, 0.01348114013671875, 0.01287078857421875, 0.03729248046875, 0.023834228515625, 0.046417236328125, -0.01300811767578125, -0.042694091796875, 0.003437042236328125, 0.020751953125, -0.0345458984375, 0.04998779296875, -0.0134124755859375, 0.02728271484375, 0.0141754150390625, -0.0197906494140625, -0.03363037109375, 0.005527496337890625, 0.06500244140625, -0.033477783203125, 0.053985595703125, 0.001941680908203125, -0.042755126953125, 0.017730712890625, 0.03741455078125, 0.092529296875, 0.024993896484375, -0.046539306640625, 0.0107421875, -0.047271728515625, -0.0254364013671875, 0.006687164306640625, 0.0283966064453125, -0.007076263427734375, 0.033355712890625, -0.023468017578125, -0.0087890625, 0.0304107666015625, -0.005336761474609375, -0.00836181640625, 0.0056304931640625, 0.01404571533203125, -0.025787353515625, -0.029052734375, -0.0298614501953125, -0.03265380859375, 0.04681396484375, 0.040557861328125, 0.07177734375, -0.0233306884765625, 0.041107177734375, 0.0202484130859375, -0.01898193359375, 0.0170135498046875, 0.0218353271484375, -0.015716552734375, 0.007595062255859375, -0.007640838623046875, -0.0244293212890625, -0.0283050537109375, 0.027862548828125, 0.00846099853515625, -0.040252685546875, 0.03277587890625, -0.027862548828125, 0.0022735595703125, -0.01459503173828125, 0.01328277587890625, -0.03167724609375, -0.10076904296875, -0.10955810546875, 0.022857666015625, 0.005321502685546875, 0.03692626953125, -0.046630859375, 0.037445068359375, 0.00875091552734375, -0.0178375244140625, 0.008209228515625, -0.0202789306640625, 0.006977081298828125, 0.0265350341796875, -0.0097503662109375, -0.05084228515625, -0.0010013580322265625, -0.006587982177734375, -0.0328369140625, 0.016937255859375, 0.044921875, -0.01125335693359375, -0.0219268798828125, 0.0477294921875, 0.02215576171875, 0.0299835205078125, -0.0579833984375, 0.0007190704345703125, 0.023529052734375, 0.02142333984375, 0.031402587890625, -0.025848388671875, -0.01346588134765625, -0.051239013671875, -0.01047515869140625, 0.006072998046875, -0.01155853271484375, -0.03228759765625, -0.00695037841796875, 0.030487060546875, 0.03125, 0.006526947021484375, -0.037139892578125, 0.040069580078125, -0.0400390625, 0.051361083984375, 0.00305938720703125, -0.1046142578125, 0.0312042236328125, -0.0015716552734375, 0.0006337165832519531, 0.0283966064453125, -0.05181884765625, -0.05810546875, -0.01221466064453125, 0.0206298828125, 0.04034423828125, -0.005626678466796875, 0.002819061279296875, -0.01296234130859375, 0.007160186767578125, 0.041229248046875, -0.0809326171875, -0.045623779296875, -0.01526641845703125, 0.001575469970703125, -0.00774383544921875, -0.007171630859375, 0.0178070068359375, -0.041595458984375, -0.0360107421875, -0.036102294921875, -0.0014200210571289062, 0.00909423828125, -0.051116943359375, -0.07757568359375, 0.02862548828125, -0.01229095458984375, -0.03497314453125, 0.0164031982421875, 0.034515380859375, 0.01389312744140625, -0.033111572265625, 0.01451873779296875, -0.01354217529296875, -0.00818634033203125, -0.03094482421875, 0.01352691650390625, 0.00896453857421875, 0.02252197265625, -0.01812744140625, 0.0184173583984375, 0.0240936279296875, 0.058624267578125, -0.008819580078125, 0.01071929931640625, 0.00015211105346679688, 0.02044677734375, 0.048614501953125, -0.038543701171875, -0.0141448974609375, -0.001003265380859375, -0.0165557861328125, -0.035675048828125, 0.0206451416015625, 0.006954193115234375, 0.056060791015625, 0.08538818359375, 0.049072265625, 0.00444793701171875, -0.064697265625, -0.035614013671875, 0.0106353759765625, -0.0290374755859375, -0.02728271484375, 0.033721923828125, -0.0904541015625, -0.03021240234375, -0.01019287109375, -0.04229736328125, -0.005550384521484375, 0.00445556640625, -0.05224609375, 0.021881103515625, -0.01018524169921875, -0.02825927734375, -0.0154266357421875, 0.0296630859375, -0.0115966796875, 0.0007853507995605469, 0.0233306884765625, -0.032318115234375, -0.0002880096435546875, 0.00004798173904418945, 0.004901885986328125, -0.00452423095703125, -0.017486572265625, 0.001316070556640625, 0.005771636962890625, 0.01468658447265625, 0.005786895751953125, 0.00848388671875, -0.01000213623046875, -0.0303192138671875, 0.030181884765625, 0.0206146240234375, 0.0338134765625, -0.039093017578125, 0.0311737060546875, 0.025909423828125, 0.0204925537109375, -0.0131378173828125, -0.0296630859375, -0.0226287841796875, 0.0157623291015625, -0.07147216796875, 0.01486968994140625, -0.03936767578125, -0.0262298583984375, 0.0242156982421875, -0.006534576416015625, 0.06500244140625, -0.0287017822265625, 0.052459716796875, -0.006572723388671875, 0.0006732940673828125, 0.030364990234375 ]
1b841d1821a7ab52e91468208364b032796814f5
Wordpress Stackexchange Q: How to use the do_action () with parameter I am trying to trigger an action in functions.php with the do_action() function, but I appear to need an attribute. The following do_action( 'really_simple_share button="facebook_like"'); does not work... Can you tell me the proper way to make it work (I have tried many other things that did not work either). A: Take a look at this ticket, there is a sample approach to work around this.
Q: How to use the do_action () with parameter I am trying to trigger an action in functions.php with the do_action() function, but I appear to need an attribute. The following do_action( 'really_simple_share button="facebook_like"'); does not work... Can you tell me the proper way to make it work (I have tried many other things that did not work either). A: Take a look at this ticket, there is a sample approach to work around this. A: The correct way is to pass first argument as a unique string which acts as an identifier for the action & any additional arguments after that do_action('unique_action_tag', $parameter1, $parameter2,,,, & so on); To attach functions to this action you'll do // 10 is the priority, higher means executed first // 2 is number of arguments the function can accept add_action('unique_action_tag', 'my_custom_function', 10, 2) function my_custom_function($param1, $param2) { // do something }
wordpress
{ "language": "en", "length": 147, "provenance": "stackexchange_00019.jsonl.gz:425808", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72600" }
[ 0.07354736328125, 0.016693115234375, -0.016082763671875, -0.041168212890625, 0.0248565673828125, -0.038909912109375, 0.0257415771484375, -0.0098419189453125, 0.01031494140625, 0.00847625732421875, -0.01543426513671875, -0.0010747909545898438, -0.0024700164794921875, -0.036163330078125, 0.003749847412109375, -0.03076171875, 0.03277587890625, -0.01517486572265625, 0.0188446044921875, -0.00019979476928710938, 0.0037250518798828125, 0.01328277587890625, 0.0208892822265625, -0.022857666015625, 0.06158447265625, -0.058563232421875, 0.0165863037109375, -0.0075836181640625, 0.05767822265625, 0.0192108154296875, 0.04034423828125, -0.0271453857421875, -0.004878997802734375, 0.04705810546875, -0.02459716796875, -0.00628662109375, -0.006866455078125, 0.0289154052734375, 0.03179931640625, -0.0117340087890625, 0.057403564453125, -0.049346923828125, -0.01264190673828125, 0.001312255859375, -0.011993408203125, -0.02874755859375, 0.052154541015625, -0.0113372802734375, -0.0225982666015625, 0.00933837890625, 0.0018568038940429688, 0.0191192626953125, 0.0205535888671875, -0.0149078369140625, 0.0256500244140625, 0.0159149169921875, -0.047119140625, 0.01959228515625, 0.00864410400390625, 0.04296875, 0.007450103759765625, 0.004131317138671875, -0.000026702880859375, -0.025146484375, 0.036468505859375, 0.0009336471557617188, -0.032867431640625, 0.0303192138671875, 0.0184173583984375, 0.0433349609375, -0.002239227294921875, -0.035125732421875, -0.0143585205078125, -0.0170440673828125, 0.043487548828125, -0.037872314453125, -0.0196990966796875, -0.027740478515625, 0.0007872581481933594, 0.055999755859375, -0.0426025390625, -0.031158447265625, -0.041595458984375, 0.0191192626953125, -0.0312347412109375, 0.03173828125, -0.02032470703125, -0.0021343231201171875, -0.0264739990234375, -0.03778076171875, -0.0268096923828125, 0.00218963623046875, -0.032684326171875, -0.02398681640625, -0.029693603515625, -0.04522705078125, 0.0239105224609375, 0.000507354736328125, 0.037811279296875, 0.0023651123046875, 0.035125732421875, -0.05389404296875, 0.0121612548828125, -0.00788116455078125, 0.0025005340576171875, 0.032623291015625, -0.003963470458984375, 0.0007982254028320312, 0.01068115234375, 0.019012451171875, -0.00145721435546875, -0.049957275390625, -0.01806640625, 0.0093231201171875, -0.01200103759765625, -0.04266357421875, -0.07958984375, 0.033447265625, -0.006256103515625, 0.0192108154296875, -0.00010675191879272461, -0.00891876220703125, 0.048309326171875, 0.055877685546875, -0.0081634521484375, 0.020477294921875, -0.0126800537109375, -0.05224609375, 0.047149658203125, 0.01302337646484375, -0.037841796875, 0.00627899169921875, 0.036834716796875, -0.0265960693359375, -0.00988006591796875, -0.027313232421875, 0.01288604736328125, -0.0046844482421875, -0.0004973411560058594, 0.00730133056640625, -0.018585205078125, -0.017913818359375, 0.015777587890625, -0.00415802001953125, 0.0007171630859375, -0.002315521240234375, 0.009674072265625, 0.0224151611328125, -0.0020236968994140625, -0.027435302734375, 0.0218963623046875, -0.0253143310546875, -0.0170135498046875, 0.023406982421875, 0.006092071533203125, 0.0169525146484375, -0.02215576171875, 0.01035308837890625, 0.027801513671875, 0.0201416015625, 0.003070831298828125, -0.0103759765625, 0.0060882568359375, 0.01568603515625, -0.00008291006088256836, -0.0075225830078125, 0.00441741943359375, -0.005252838134765625, 0.0213165283203125, 0.05352783203125, -0.0118255615234375, 0.0156707763671875, 0.0484619140625, 0.0251922607421875, -0.0096282958984375, 0.0037593841552734375, 0.0293121337890625, 0.026458740234375, 0.0010309219360351562, -0.0017042160034179688, -0.0303192138671875, -0.043365478515625, 0.0306396484375, -0.0211181640625, -0.044219970703125, 0.0638427734375, -0.021881103515625, 0.00711822509765625, 0.003963470458984375, -0.01403045654296875, 0.0273590087890625, 0.07916259765625, -0.0008225440979003906, 0.00986480712890625, -0.0177459716796875, -0.0203704833984375, 0.0230255126953125, 0.0172119140625, -0.017486572265625, -0.016265869140625, 0.035675048828125, 0.0190887451171875, 0.0094451904296875, 0.0136260986328125, -0.034637451171875, 0.034271240234375, -0.03436279296875, 0.0193634033203125, -0.0208282470703125, 0.0101165771484375, 0.023193359375, 0.0204315185546875, -0.01145172119140625, -0.05194091796875, -0.01496124267578125, 0.0260162353515625, -0.034515380859375, 0.00830078125, -0.01255035400390625, 0.0205841064453125, -0.02593994140625, -0.016937255859375, -0.0230560302734375, -0.005970001220703125, 0.036834716796875, -0.0198211669921875, -0.031097412109375, -0.044830322265625, -0.01322174072265625, -0.01132965087890625, -0.043487548828125, 0.088623046875, 0.01432037353515625, 0.01329803466796875, -0.016571044921875, -0.009429931640625, -0.00704193115234375, -0.05645751953125, 0.01181793212890625, 0.044403076171875, 0.030120849609375, -0.025421142578125, -0.00109100341796875, 0.008056640625, -0.0088958740234375, -0.0017652511596679688, 0.048187255859375, -0.0404052734375, -0.00029397010803222656, 0.01556396484375, -0.02557373046875, -0.0217132568359375, 0.024200439453125, -0.09381103515625, -0.01226806640625, 0.040374755859375, -0.0147857666015625, -0.048553466796875, -0.00994873046875, 0.0167083740234375, 0.0197296142578125, -0.0240325927734375, -0.0228729248046875, 0.0040130615234375, 0.0303192138671875, 0.0017719268798828125, 0.006183624267578125, 0.01107025146484375, -0.004638671875, 0.00885772705078125, 0.02130126953125, -0.054656982421875, -0.0211029052734375, 0.06976318359375, 0.02069091796875, -0.060394287109375, -0.01837158203125, -0.00304412841796875, -0.05426025390625, 0.0171051025390625, -0.01497650146484375, 0.028106689453125, -0.0231475830078125, -0.0272064208984375, 0.000835418701171875, 0.004283905029296875, -0.0196685791015625, -0.05303955078125, 0.0826416015625, 0.02044677734375, 0.013031005859375, 0.0187530517578125, -0.0341796875, 0.09429931640625, 0.037750244140625, -0.048126220703125, 0.0205535888671875, -0.0303955078125, 0.0311737060546875, -0.039947509765625, 0.01181793212890625, 0.052459716796875, -0.0224761962890625, 0.0179595947265625, -0.007221221923828125, -0.01666259765625, -0.025665283203125, 0.0019330978393554688, -0.0031185150146484375, -0.01244354248046875, -0.013275146484375, 0.05133056640625, 0.028472900390625, 0.06842041015625, -0.0157928466796875, -0.054107666015625, -0.006389617919921875, 0.045379638671875, -0.097412109375, -0.08978271484375, 0.054412841796875, -0.07958984375, 0.0291595458984375, -0.0193634033203125, -0.0528564453125, -0.04541015625, 0.044647216796875, 0.0001761913299560547, -0.01168060302734375, 0.0211944580078125, 0.0355224609375, 0.006107330322265625, -0.01410675048828125, -0.022003173828125, 0.006404876708984375, -0.0038661956787109375, 0.0166473388671875, 0.00202178955078125, -0.0115966796875, -0.036285400390625, 0.0228424072265625, -0.026214599609375, -0.016143798828125, 0.0148162841796875, 0.0207061767578125, -0.0196685791015625, -0.0298614501953125, -0.00960540771484375, 0.033477783203125, 0.036102294921875, -0.0474853515625, 0.000025451183319091797, 0.0115966796875, -0.040924072265625, 0.027587890625, 0.019317626953125, -0.0321044921875, -0.0288543701171875, 0.040618896484375, -0.0595703125, -0.0276641845703125, 0.0112457275390625, -0.043365478515625, -0.009857177734375, 0.033935546875, -0.0217132568359375, -0.00800323486328125, -0.0079498291015625, 0.0282440185546875, 0.036590576171875, -0.01184844970703125, 0.0338134765625, -0.02008056640625, -0.01438140869140625, 0.01434326171875, -0.01523590087890625, -0.03411865234375, -0.022705078125, 0.032928466796875, -0.0219573974609375, 0.0158233642578125, -0.01241302490234375, 0.02447509765625, -0.048583984375, -0.00508880615234375, 0.0123748779296875, -0.0247344970703125, 0.0197906494140625, -0.038482666015625, -0.00817108154296875, -0.0249786376953125, 0.0301513671875, -0.031494140625, -0.0227508544921875, -0.00989532470703125, 0.01422882080078125, -0.049163818359375, -0.032318115234375, -0.01520538330078125, 0.0027065277099609375, -0.0156707763671875, 0.004993438720703125, 0.01541900634765625, -0.037200927734375, 0.0013628005981445312, -0.05487060546875, -0.0384521484375, -0.004650115966796875, 0.00478363037109375, 0.027557373046875, -0.0033416748046875, 0.033111572265625, -0.0263824462890625, 0.028839111328125, -0.0067596435546875, -0.01049041748046875, -0.051788330078125, 0.01016998291015625, -0.036102294921875, 0.018524169921875, 0.004940032958984375, 0.03558349609375, -0.01751708984375, 0.0364990234375, 0.01049041748046875, 0.00841522216796875, 0.020843505859375, -0.0147705078125, 0.0240478515625, 0.0284423828125, 0.03131103515625, -0.01318359375, -0.025970458984375, 0.0009737014770507812, -0.02423095703125, 0.01071929931640625, -0.0242156982421875, -0.00867462158203125, -0.0106048583984375, -0.0225372314453125, -0.0543212890625, -0.037017822265625, 0.00614166259765625, 0.036224365234375, -0.005859375, 0.0194244384765625, -0.060455322265625, -0.055633544921875, 0.01995849609375, -0.031402587890625, 0.00818634033203125, 0.01000213623046875, 0.04156494140625, 0.019622802734375, -0.007312774658203125, 0.0033817291259765625, 0.0079193115234375, 0.0128936767578125, -0.0023288726806640625, -0.0108642578125, -0.0379638671875, -0.01067352294921875, -0.016693115234375, -0.021209716796875, 0.044769287109375, -0.0687255859375, 0.090087890625, -0.01091766357421875, 0.016937255859375, 0.01617431640625, 0.003871917724609375, -0.021148681640625, 0.02056884765625, -0.033416748046875, 0.0075836181640625, -0.028594970703125, 0.0196075439453125, -0.01045989990234375, 0.0161590576171875, -0.03814697265625, -0.0185699462890625, 0.00008696317672729492, -0.019134521484375, 0.041107177734375, 0.040496826171875, -0.01123809814453125, 0.0140533447265625, 0.00321197509765625, 0.005565643310546875, 0.0214080810546875, 0.01033782958984375, -0.0223388671875, 0.038238525390625, -0.00417327880859375, -0.0123291015625, 0.00365447998046875, -0.0129241943359375, 0.056488037109375, 0.0125732421875, -0.0241241455078125, -0.0218048095703125, 0.00823211669921875, 0.06268310546875, -0.011199951171875, 0.0212249755859375, 0.009918212890625, 0.0251007080078125, 0.00748443603515625, 0.01593017578125, 0.03961181640625, 0.0184326171875, -0.006015777587890625, 0.0254058837890625, 0.04595947265625, -0.01708984375, 0.07025146484375, 0.017242431640625, 0.02447509765625, 0.033782958984375, -0.0313720703125, 0.0013332366943359375, 0.05792236328125, -0.010772705078125, 0.045623779296875, -0.01282501220703125, -0.0120849609375, -0.047088623046875, -0.00868988037109375, -0.008697509765625, 0.01125335693359375, 0.031097412109375, 0.007965087890625, -0.0012149810791015625, 0.0085601806640625, 0.00592803955078125, -0.0220794677734375, -0.004878997802734375, -0.0010242462158203125, 0.02850341796875, 0.00719451904296875, 0.00815582275390625, 0.0091400146484375, 0.007404327392578125, 0.0265350341796875, 0.016571044921875, -0.0113372802734375, 0.002605438232421875, 0.04010009765625, -0.014923095703125, 0.0258026123046875, -0.0228271484375, -0.036468505859375, 0.0234375, -0.01181793212890625, -0.022552490234375, -0.00567626953125, -0.0142364501953125, -0.0206756591796875, -0.006397247314453125, 0.07745361328125, -0.0097808837890625, 0.0178985595703125, -0.0240325927734375, -0.00003349781036376953, 0.03204345703125, -0.0146484375, 0.0955810546875, 0.03338623046875, -0.034088134765625, -0.0195159912109375, -0.036865234375, -0.01361083984375, -0.026336669921875, -0.0298309326171875, -0.031219482421875, 0.0101165771484375, -0.02777099609375, 0.0418701171875, -0.00968170166015625, 0.04595947265625, 0.01959228515625, 0.04852294921875, -0.031829833984375, 0.09222412109375, -0.0029087066650390625, 0.037353515625, -0.0210113525390625, 0.0165557861328125, -0.0014314651489257812, 0.00896453857421875, -0.01715087890625, 0.015960693359375, -0.0044403076171875, -0.029571533203125, 0.003231048583984375, -0.01528167724609375, -0.01103973388671875, 0.006740570068359375, 0.053131103515625, -0.0010433197021484375, 0.016326904296875, -0.020172119140625, -0.0082550048828125, -0.0191192626953125, 0.042877197265625, -0.021759033203125, 0.01123809814453125, 0.00514984130859375, -0.052886962890625, -0.0309295654296875, 0.0162811279296875, 0.01157379150390625, 0.0328369140625, -0.03546142578125, 0.00865936279296875, 0.04583740234375, -0.056915283203125, 0.0283050537109375, 0.11273193359375, 0.00858306884765625, 0.058746337890625, 0.0026950836181640625, 0.00724029541015625, 0.042999267578125, 0.060760498046875, -0.052886962890625, -0.07952880859375, 0.0167388916015625, 0.02032470703125, -0.011199951171875, 0.0235443115234375, 0.0015430450439453125, 0.071533203125, 0.058837890625, 0.1263427734375, -0.089111328125, 0.033233642578125, 0.044281005859375, -0.0174713134765625, 0.07489013671875, -0.0008945465087890625, -0.004360198974609375, -0.02337646484375, 0.004848480224609375, 0.01194000244140625, -0.0187225341796875, 0.0030364990234375, 0.010986328125, 0.018829345703125, 0.001552581787109375, 0.0235443115234375, -0.00897216796875, 0.004276275634765625, -0.06317138671875, 0.00013172626495361328, -0.01221466064453125, -0.017303466796875, 0.018035888671875, -0.0244598388671875, -0.032379150390625, -0.036102294921875, -0.01485443115234375, 0.0019702911376953125, -0.0157470703125, -0.0196685791015625, 0.007526397705078125, 0.015380859375, 0.006740570068359375, -0.002620697021484375, -0.006557464599609375, -0.01763916015625, -0.0294342041015625, -0.035400390625, -0.01026153564453125, 0.029052734375, 0.0177459716796875, -0.0193634033203125, 0.026885986328125, -0.032012939453125, -0.028228759765625, -0.0173187255859375, -0.006923675537109375, 0.0858154296875, -0.0572509765625, -0.0149688720703125, 0.01129150390625, -0.0038127899169921875, -0.0013055801391601562, 0.0013866424560546875, -0.03167724609375, -0.06884765625, -0.0259857177734375, -0.02252197265625, -0.04400634765625, 0.0279083251953125, 0.0006346702575683594, -0.02117919921875, 0.09906005859375, 0.034912109375, -0.0201568603515625, -0.0144805908203125, 0.050384521484375, -0.042938232421875, 0.019439697265625, -0.057769775390625, 0.0594482421875, 0.0210418701171875, 0.023895263671875, -0.0240478515625, 0.0207672119140625, -0.0014867782592773438, -0.039764404296875, 0.05657958984375, 0.0089263916015625, -0.0262603759765625, -0.0037097930908203125, 0.041717529296875, 0.036651611328125, -0.006427764892578125, 0.01837158203125, -0.0160064697265625, -0.004177093505859375, -0.0103759765625, -0.057952880859375, -0.0106201171875, -0.00186920166015625, -0.0279998779296875, 0.008758544921875, 0.005035400390625, -0.0103912353515625, -0.0487060546875, 0.014862060546875, -0.041717529296875, -0.0187530517578125, 0.0186614990234375, 0.0185699462890625, -0.0227508544921875, 0.04534912109375, 0.00901031494140625, -0.0360107421875, -0.004016876220703125, -0.03466796875, 0.038055419921875, -0.006084442138671875, 0.01018524169921875, -0.01027679443359375, -0.0027904510498046875, 0.024200439453125, -0.0090484619140625, -0.006847381591796875, 0.0274658203125, -0.0025882720947265625, 0.060791015625, 0.012939453125, 0.0201416015625, -0.06427001953125, -0.023040771484375, 0.0477294921875, 0.0885009765625, -0.0309295654296875, 0.0186767578125, -0.00399017333984375, 0.0003571510314941406, 0.0286712646484375, -0.057861328125, 0.033294677734375, -0.0277252197265625, -0.0347900390625, -0.040252685546875, 0.008941650390625, 0.039764404296875, 0.0204925537109375, 0.0220794677734375, 0.0304107666015625, -0.06646728515625, -0.02130126953125, -0.02783203125, 0.04071044921875, -0.00896453857421875, 0.013519287109375, -0.004608154296875, 0.036346435546875, -0.0035800933837890625, 0.001617431640625, -0.0010175704956054688, 0.01236724853515625, -0.0169219970703125, 0.0166473388671875, -0.0169830322265625, -0.0215301513671875, -0.02020263671875, 0.0253448486328125, 0.037445068359375, 0.057342529296875, 0.03851318359375, -0.0120391845703125, -0.0264892578125, 0.0309906005859375, 0.04296875, -0.032958984375, -0.02166748046875, -0.01480865478515625, -0.04083251953125, -0.00927734375, -0.0230560302734375, -0.00024187564849853516, -0.0303497314453125, 0.029205322265625, -0.029205322265625, 0.070556640625, -0.0104827880859375, -0.00017154216766357422, 0.0033512115478515625, -0.0210113525390625, 0.0780029296875, -0.0021648406982421875, -0.0004949569702148438, -0.01214599609375, -0.0034809112548828125, -0.01165771484375, 0.0099639892578125, 0.021453857421875, -0.0212554931640625, 0.050384521484375, -0.03497314453125, 0.000743865966796875, 0.01983642578125, -0.0005860328674316406, -0.015594482421875, 0.0872802734375, 0.0560302734375, 0.0171356201171875, 0.00923919677734375, 0.0036106109619140625, 0.0005879402160644531, 0.03643798828125, 0.0307769775390625, 0.0716552734375, -0.036651611328125, 0.03607177734375, 0.02508544921875, 0.022369384765625, -0.01080322265625, 0.00048828125, 0.061370849609375, -0.0012083053588867188, -0.0077362060546875, -0.0256805419921875, -0.0103607177734375, 0.046722412109375, 0.001674652099609375, -0.021697998046875, 0.0097808837890625, 0.03643798828125, -0.004451751708984375, -0.003955841064453125, 0.05694580078125, -0.02813720703125, -0.064453125, -0.0782470703125, -0.00927734375, 0.0205230712890625, 0.0303955078125, -0.027587890625, -0.0247344970703125, 0.004276275634765625, -0.0132598876953125, -0.0175323486328125, 0.04595947265625, -0.038909912109375, 0.0183563232421875, -0.0112152099609375, 0.036285400390625, 0.0020771026611328125, -0.042877197265625, 0.059783935546875, -0.0198516845703125, -0.0027637481689453125, 0.01090240478515625, 0.004192352294921875, 0.0052490234375, 0.004547119140625, 0.03216552734375, -0.0027751922607421875, -0.01021575927734375, -0.00762176513671875, 0.0029850006103515625, -0.0074462890625, 0.005035400390625, -0.00443267822265625, -0.021697998046875, -0.03643798828125, -0.0197906494140625, -0.0170745849609375, -0.060272216796875, -0.0074462890625, -0.00821685791015625, 0.032318115234375, 0.009674072265625, -0.048919677734375, 0.01265716552734375, -0.00597381591796875, 0.005725860595703125, 0.003582000732421875, -0.023406982421875, 0.04345703125, 0.106201171875, -0.035614013671875, -0.00817108154296875, 0.01776123046875, -0.023834228515625, -0.01345062255859375, 0.052001953125, 0.044586181640625, -0.0303802490234375, -0.03424072265625, 0.07440185546875, 0.036468505859375, 0.11138916015625, 0.027313232421875, -0.03192138671875, -0.0213470458984375, 0.0038280487060546875, 0.002338409423828125, -0.0243682861328125, 0.043609619140625, -0.099365234375, -0.044189453125, 0.00396728515625, 0.002010345458984375, 0.0170135498046875, -0.0361328125, -0.0689697265625, 0.037261962890625, 0.0039520263671875, -0.026947021484375, -0.007335662841796875, 0.035797119140625, 0.0186614990234375, -0.052276611328125, -0.01629638671875, -0.006450653076171875, -0.0247955322265625, -0.0286102294921875, 0.01209259033203125, 0.0250244140625, 0.00943756103515625, 0.0164947509765625, -0.03973388671875, 0.0091400146484375, -0.0006165504455566406, -0.00054168701171875, 0.0677490234375, -0.03997802734375, 0.0653076171875, 0.047821044921875, -0.056884765625, 0.005435943603515625, -0.0253753662109375, -0.016937255859375, 0.0142364501953125, -0.0175628662109375, -0.01212310791015625, 0.01055145263671875, 0.01363372802734375, -0.0092010498046875, 0.0092620849609375, -0.037811279296875, 0.02484130859375, 0.00893402099609375, -0.01403045654296875, -0.0145263671875, 0.01593017578125, -0.046173095703125, -0.032562255859375, -0.0113983154296875, -0.014495849609375, 0.0163421630859375, 0.014495849609375, -0.02294921875, 0.01544952392578125, 0.052490234375, -0.0162353515625, 0.0016260147094726562, -0.006694793701171875, 0.08795166015625, -0.046905517578125, 0.0214691162109375, -0.005092620849609375, 0.0191497802734375, 0.053558349609375, -0.0172882080078125, 0.02813720703125, 0.0240478515625, -0.0115203857421875, -0.01776123046875, 0.043548583984375, -0.0128936767578125, 0.038299560546875, -0.027313232421875, 0.0035915374755859375, 0.0255279541015625, -0.012664794921875, 0.0041961669921875, -0.00917816162109375, 0.057708740234375, -0.016876220703125, 0.065185546875, -0.033233642578125, 0.03594970703125, -0.00968170166015625, 0.044464111328125, -0.0004622936248779297, -0.0010938644409179688, 0.0291290283203125, -0.0300750732421875, 0.01111602783203125, 0.012451171875, 0.05242919921875, -0.0251007080078125, 0.034393310546875, 0.0255584716796875, 0.02130126953125, 0.02838134765625 ]
3ccf674612e0b0751cb3ef03210a8495fbc8cb59
Wordpress Stackexchange Q: Order posts by ID in the given order In the back-office of my theme, the users can choose which posts to display in the front page, and they can also choose in which order the selected posts should appear. I have tried like this: $aPostsIDs = array(1,3,2); // Note the 3 should appear before the 2 query_posts(array('post_type' => 'page', 'post__in' => $aPostsIDs, 'order_by' => 'FIELD(ID, '.implode(',',$aPostsIDs).')')); But as expected it doesn't work. The right way to do it according to the codex is: add_filter('posts_orderby', 'edit_posts_orderby'); function edit_posts_orderby($orderby_statement) { global $aPostsIDs; $orderby_statement = 'FIELD(ID, '.implode(',',$aPostsIDs).')'; return $orderby_statement; } But that still doesn't work! The posts are ordered by ID (1, 2, 3) instead of the given order (1, 3, 2). Where should I look? Thanks A: Starting in WordPress 3.5, the orderby parameter will allow the value post__in to sort by the order of the post__in parameter, just like in your example. It may not be ideal to wait or require 3.5+, but this will almost certainly be the best and easiest way to do what you're looking to do. Here's the relevant trac ticket if you want the details.
Q: Order posts by ID in the given order In the back-office of my theme, the users can choose which posts to display in the front page, and they can also choose in which order the selected posts should appear. I have tried like this: $aPostsIDs = array(1,3,2); // Note the 3 should appear before the 2 query_posts(array('post_type' => 'page', 'post__in' => $aPostsIDs, 'order_by' => 'FIELD(ID, '.implode(',',$aPostsIDs).')')); But as expected it doesn't work. The right way to do it according to the codex is: add_filter('posts_orderby', 'edit_posts_orderby'); function edit_posts_orderby($orderby_statement) { global $aPostsIDs; $orderby_statement = 'FIELD(ID, '.implode(',',$aPostsIDs).')'; return $orderby_statement; } But that still doesn't work! The posts are ordered by ID (1, 2, 3) instead of the given order (1, 3, 2). Where should I look? Thanks A: Starting in WordPress 3.5, the orderby parameter will allow the value post__in to sort by the order of the post__in parameter, just like in your example. It may not be ideal to wait or require 3.5+, but this will almost certainly be the best and easiest way to do what you're looking to do. Here's the relevant trac ticket if you want the details.
wordpress
{ "language": "en", "length": 190, "provenance": "stackexchange_00019.jsonl.gz:425817", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72627" }
[ 0.056915283203125, 0.015869140625, 0.0297698974609375, -0.005619049072265625, 0.0291748046875, -0.02435302734375, 0.06329345703125, -0.0428466796875, 0.04345703125, 0.002803802490234375, -0.0244903564453125, -0.0298309326171875, -0.0548095703125, -0.0274200439453125, -0.051849365234375, -0.04376220703125, 0.04376220703125, -0.054779052734375, 0.0012836456298828125, -0.0152130126953125, 0.0034942626953125, 0.027374267578125, 0.0216217041015625, 0.05023193359375, 0.042083740234375, -0.013580322265625, 0.052398681640625, -0.03302001953125, 0.04827880859375, -0.0023345947265625, 0.02874755859375, -0.05804443359375, 0.0229034423828125, -0.040252685546875, 0.05126953125, -0.0153045654296875, 0.048797607421875, -0.02874755859375, 0.0012073516845703125, 0.00490570068359375, 0.0018558502197265625, 0.01137542724609375, 0.024200439453125, 0.06427001953125, -0.018798828125, -0.05401611328125, 0.043792724609375, -0.02001953125, 0.022857666015625, -0.044708251953125, -0.00003629922866821289, 0.040618896484375, 0.0195465087890625, -0.02117919921875, -0.01079559326171875, 0.003383636474609375, -0.01058197021484375, 0.042449951171875, 0.0195770263671875, -0.0019588470458984375, -0.0203094482421875, 0.0265350341796875, 0.00415802001953125, -0.029205322265625, -0.0219879150390625, 0.0034637451171875, 0.0574951171875, 0.00356292724609375, -0.021514892578125, -0.0252227783203125, -0.00269317626953125, 0.01018524169921875, 0.00977325439453125, -0.040191650390625, 0.005191802978515625, 0.0209808349609375, -0.0230865478515625, -0.0076141357421875, 0.0265960693359375, -0.006908416748046875, -0.0172271728515625, 0.01264190673828125, -0.034759521484375, -0.0428466796875, 0.0081939697265625, -0.00696563720703125, -0.0296173095703125, -0.00021386146545410156, -0.02130126953125, -0.053253173828125, -0.0133514404296875, -0.012786865234375, -0.0181427001953125, -0.01165008544921875, -0.0270233154296875, -0.0211029052734375, 0.0149993896484375, 0.06341552734375, -0.0188140869140625, 0.0005116462707519531, -0.04046630859375, -0.01287841796875, -0.022491455078125, -0.032928466796875, 0.0183258056640625, 0.010986328125, 0.032867431640625, 0.031097412109375, 0.029937744140625, 0.0163421630859375, -0.0225830078125, 0.0181884765625, 0.01396942138671875, -0.0095977783203125, -0.020904541015625, -0.02392578125, -0.04925537109375, 0.015380859375, 0.007236480712890625, -0.0234527587890625, -0.01534271240234375, -0.0005469322204589844, 0.024688720703125, -0.02423095703125, 0.004688262939453125, -0.00537109375, -0.03875732421875, -0.0182342529296875, 0.010162353515625, 0.0297088623046875, -0.04156494140625, 0.0194549560546875, 0.08404541015625, -0.0122222900390625, -0.01202392578125, -0.02734375, -0.0214385986328125, -0.0193023681640625, -0.0005950927734375, 0.01261138916015625, 0.0008959770202636719, -0.06793212890625, -0.0098419189453125, 0.0118865966796875, -0.015899658203125, 0.01418304443359375, 0.0170745849609375, 0.005817413330078125, 0.0059967041015625, -0.053192138671875, -0.0187225341796875, -0.03533935546875, 0.038482666015625, -0.007228851318359375, -0.00013399124145507812, -0.02093505859375, 0.0095672607421875, -0.0180816650390625, -0.0196990966796875, -0.01435089111328125, 0.0271148681640625, 0.0263671875, -0.001323699951171875, -0.0697021484375, -0.078857421875, -0.0380859375, -0.040985107421875, -0.0169219970703125, 0.02392578125, 0.04827880859375, 0.0296478271484375, -0.0004744529724121094, 0.00708770751953125, 0.0180816650390625, -0.0133209228515625, 0.01073455810546875, -0.005756378173828125, -0.0081787109375, 0.0014562606811523438, 0.040679931640625, -0.004001617431640625, -0.032318115234375, -0.0120849609375, 0.0169219970703125, -0.050323486328125, 0.05889892578125, 0.00360107421875, 0.08428955078125, -0.0014553070068359375, 0.021942138671875, 0.01284027099609375, 0.0153350830078125, -0.043304443359375, 0.037811279296875, -0.01523590087890625, -0.0462646484375, -0.020538330078125, -0.00981903076171875, -0.00567626953125, 0.01361846923828125, -0.0266571044921875, 0.025604248046875, -0.0034160614013671875, 0.0164794921875, -0.028656005859375, 0.01140594482421875, -0.0163726806640625, 0.03814697265625, 0.01378631591796875, 0.01332855224609375, 0.005825042724609375, 0.023773193359375, -0.0236663818359375, -0.0284271240234375, -0.030029296875, 0.0297393798828125, -0.00107574462890625, -0.006374359130859375, -0.01096343994140625, 0.01983642578125, -0.057891845703125, -0.019683837890625, -0.06134033203125, -0.0036907196044921875, 0.0567626953125, -0.01184844970703125, -0.0005307197570800781, -0.0216827392578125, 0.043426513671875, 0.015777587890625, -0.0299530029296875, -0.0044708251953125, -0.00994110107421875, 0.047210693359375, -0.0080718994140625, -0.0129852294921875, 0.005298614501953125, -0.0458984375, 0.040771484375, 0.03985595703125, 0.0239105224609375, -0.006687164306640625, 0.01160430908203125, 0.038421630859375, 0.050750732421875, 0.03759765625, 0.027740478515625, -0.00782012939453125, 0.010711669921875, 0.04827880859375, -0.0132293701171875, 0.031463623046875, 0.031280517578125, 0.002105712890625, -0.00001049041748046875, 0.0596923828125, 0.01325225830078125, 0.048980712890625, 0.01543426513671875, -0.0269927978515625, -0.0198822021484375, -0.033172607421875, -0.006435394287109375, -0.01523590087890625, 0.03594970703125, 0.0004134178161621094, 0.0257110595703125, 0.0015573501586914062, -0.048858642578125, 0.01116180419921875, 0.025177001953125, -0.00004178285598754883, 0.0241546630859375, 0.016998291015625, -0.050384521484375, -0.024017333984375, -0.0035343170166015625, 0.01155853271484375, 0.010711669921875, -0.03704833984375, -0.003082275390625, 0.002452850341796875, 0.01264190673828125, 0.0028553009033203125, 0.00792694091796875, -0.0885009765625, 0.026123046875, 0.038482666015625, -0.0206451416015625, 0.003383636474609375, 0.003803253173828125, 0.04931640625, -0.0384521484375, 0.0567626953125, -0.00948333740234375, 0.0132904052734375, -0.029083251953125, -0.04486083984375, 0.043304443359375, -0.06903076171875, 0.01470184326171875, 0.06231689453125, -0.0184326171875, 0.024993896484375, -0.003925323486328125, 0.045440673828125, 0.00978851318359375, 0.0166473388671875, -0.005313873291015625, -0.02606201171875, -0.0032711029052734375, -0.0005273818969726562, 0.04608154296875, 0.0899658203125, -0.02081298828125, -0.051483154296875, 0.00972747802734375, 0.049957275390625, -0.054656982421875, -0.09027099609375, 0.00689697265625, -0.065185546875, 0.01111602783203125, -0.026397705078125, -0.031585693359375, 0.009796142578125, -0.013275146484375, -0.0013780593872070312, 0.028228759765625, -0.0026416778564453125, -0.039337158203125, -0.0299530029296875, -0.05645751953125, -0.026123046875, 0.005268096923828125, 0.0186004638671875, 0.0103607177734375, 0.04705810546875, 0.006832122802734375, -0.057098388671875, 0.0234222412109375, 0.005817413330078125, -0.01334381103515625, 0.035186767578125, 0.0304718017578125, -0.01529693603515625, -0.01299285888671875, 0.007709503173828125, 0.0648193359375, 0.047576904296875, -0.07037353515625, 0.0166778564453125, -0.0252685546875, -0.007602691650390625, 0.0037689208984375, -0.0005741119384765625, 0.0254364013671875, 0.0333251953125, 0.035980224609375, -0.0218048095703125, 0.003662109375, -0.0194091796875, -0.025970458984375, -0.0265655517578125, 0.0184478759765625, 0.004180908203125, -0.031768798828125, -0.0012340545654296875, 0.032012939453125, -0.0072021484375, 0.0113525390625, -0.0147705078125, 0.0083160400390625, 0.010101318359375, 0.039825439453125, -0.032501220703125, 0.01108551025390625, -0.0059967041015625, -0.02203369140625, -0.0194244384765625, 0.03778076171875, -0.0038909912109375, 0.0377197265625, -0.0335693359375, -0.046844482421875, 0.037017822265625, -0.0306243896484375, -0.01934814453125, -0.0223846435546875, -0.0243682861328125, 0.01885986328125, 0.093994140625, -0.078857421875, -0.02032470703125, -0.010345458984375, 0.036102294921875, -0.03546142578125, -0.056671142578125, -0.024627685546875, -0.004238128662109375, -0.007171630859375, 0.006378173828125, 0.01519012451171875, -0.02813720703125, -0.0251617431640625, 0.0260467529296875, -0.0300445556640625, 0.00954437255859375, 0.05029296875, -0.042327880859375, 0.0222625732421875, 0.0215606689453125, -0.0247802734375, 0.006969451904296875, -0.04718017578125, 0.00981903076171875, -0.07666015625, -0.0220794677734375, 0.0046539306640625, 0.057464599609375, -0.0018777847290039062, -0.0011873245239257812, 0.003398895263671875, 0.05682373046875, -0.01212310791015625, -0.0144500732421875, 0.037994384765625, 0.06671142578125, -0.007167816162109375, -0.0673828125, -0.01010894775390625, -0.08038330078125, -0.030487060546875, -0.0187530517578125, 0.00262451171875, 0.0094451904296875, -0.031036376953125, -0.00034332275390625, -0.00984954833984375, 0.007022857666015625, -0.05615234375, -0.0241241455078125, -0.0408935546875, 0.0124664306640625, -0.0258941650390625, -0.015655517578125, -0.035400390625, -0.09161376953125, 0.0521240234375, -0.001262664794921875, -0.0372314453125, -0.00732421875, 0.0545654296875, 0.0227813720703125, -0.0281524658203125, -0.02496337890625, -0.02532958984375, 0.029937744140625, 0.0242919921875, 0.02655029296875, 0.0111083984375, -0.0287017822265625, 0.03411865234375, 0.01364898681640625, -0.025146484375, -0.00679779052734375, 0.009674072265625, -0.0018320083618164062, -0.035980224609375, 0.0030765533447265625, -0.032623291015625, 0.0703125, -0.01023101806640625, -0.0257415771484375, -0.0100860595703125, -0.005588531494140625, 0.0426025390625, 0.0020503997802734375, 0.0238037109375, -0.03485107421875, -0.0274505615234375, 0.0309295654296875, -0.01033782958984375, 0.005146026611328125, -0.0243377685546875, 0.007129669189453125, -0.0172576904296875, -0.00128936767578125, 0.01250457763671875, 0.058502197265625, 0.0156402587890625, -0.01186370849609375, 0.040618896484375, 0.016357421875, -0.010162353515625, 0.04779052734375, -0.017730712890625, 0.05694580078125, -0.001003265380859375, -0.0135955810546875, -0.0276031494140625, -0.03564453125, 0.040863037109375, 0.0157318115234375, 0.000041544437408447266, 0.013458251953125, 0.018035888671875, 0.0053253173828125, -0.005828857421875, -0.006885528564453125, 0.018218994140625, -0.02801513671875, 0.017791748046875, 0.047332763671875, -0.02557373046875, -0.00008058547973632812, 0.0303802490234375, 0.0218658447265625, -0.0012645721435546875, -0.015716552734375, 0.01462554931640625, 0.0233001708984375, 0.0013647079467773438, 0.0032367706298828125, 0.031280517578125, 0.0219879150390625, -0.03887939453125, 0.045989990234375, -0.0095672607421875, 0.004123687744140625, 0.0428466796875, -0.017486572265625, 0.01499176025390625, 0.00736236572265625, 0.01314544677734375, 0.0272979736328125, 0.00013113021850585938, 0.0296783447265625, 0.0367431640625, -0.0253143310546875, -0.024505615234375, 0.0021915435791015625, 0.0031642913818359375, -0.004241943359375, 0.01387786865234375, 0.016876220703125, 0.00714111328125, 0.0294952392578125, -0.0145263671875, 0.006488800048828125, -0.023590087890625, -0.03717041015625, 0.007579803466796875, -0.011016845703125, -0.01171875, 0.0162506103515625, -0.022705078125, 0.004558563232421875, 0.006816864013671875, 0.00321197509765625, -0.042938232421875, 0.0299072265625, -0.01427459716796875, 0.0006160736083984375, -0.0445556640625, 0.03424072265625, 0.013916015625, 0.01132965087890625, -0.0205078125, -0.0002498626708984375, -0.04541015625, -0.0177764892578125, 0.001583099365234375, -0.043701171875, -0.02813720703125, -0.0280914306640625, -0.004337310791015625, 0.0253448486328125, -0.024566650390625, -0.04034423828125, -0.036346435546875, -0.0242919921875, 0.005237579345703125, 0.01287841796875, 0.012481689453125, 0.0638427734375, -0.05804443359375, 0.053558349609375, 0.005706787109375, 0.021820068359375, -0.032440185546875, -0.01262664794921875, 0.01300048828125, -0.052978515625, -0.0194549560546875, -0.010040283203125, -0.0219268798828125, 0.01134490966796875, 0.029083251953125, 0.0014476776123046875, 0.0265655517578125, 0.01348114013671875, 0.020355224609375, -0.017425537109375, -0.0289764404296875, -0.01239776611328125, -0.0284576416015625, 0.042144775390625, -0.0146484375, -0.0557861328125, -0.0233001708984375, -0.002315521240234375, -0.007190704345703125, 0.00955963134765625, -0.02459716796875, -0.01256561279296875, -0.061859130859375, 0.0504150390625, 0.035400390625, 0.06903076171875, 0.03631591796875, -0.027252197265625, 0.033416748046875, -0.04150390625, 0.00475311279296875, 0.003658294677734375, 0.0009703636169433594, 0.039398193359375, -0.0183868408203125, -0.0287322998046875, 0.0070648193359375, -0.040740966796875, 0.034088134765625, 0.0125274658203125, 0.052398681640625, -0.04559326171875, 0.0243682861328125, 0.0086212158203125, -0.0229644775390625, 0.0582275390625, 0.001392364501953125, -0.0021877288818359375, 0.042724609375, 0.041351318359375, -0.025909423828125, -0.00664520263671875, 0.056427001953125, 0.002227783203125, -0.01184844970703125, -0.029693603515625, 0.0086212158203125, 0.0018625259399414062, -0.0236663818359375, -0.00739288330078125, -0.0014371871948242188, -0.01194000244140625, -0.0217132568359375, -0.00905609130859375, 0.0010328292846679688, -0.03607177734375, -0.058258056640625, 0.007083892822265625, -0.017852783203125, 0.0007581710815429688, 0.0311431884765625, -0.04925537109375, 0.0237884521484375, 0.04949951171875, -0.0269012451171875, 0.00933837890625, 0.02386474609375, -0.055511474609375, 0.026702880859375, -0.0300445556640625, 0.006587982177734375, -0.0021839141845703125, -0.040374755859375, 0.0089569091796875, 0.0169525146484375, -0.04180908203125, -0.0290069580078125, -0.0235137939453125, 0.07940673828125, -0.0105133056640625, -0.0234222412109375, 0.047210693359375, 0.063720703125, -0.04608154296875, 0.00986480712890625, 0.0176849365234375, -0.0498046875, -0.021728515625, 0.00836944580078125, -0.01276397705078125, 0.0128173828125, 0.0245819091796875, -0.07037353515625, 0.092041015625, -0.02789306640625, 0.036895751953125, -0.0215301513671875, 0.035430908203125, -0.00322723388671875, 0.0214691162109375, -0.030364990234375, 0.0275726318359375, -0.055816650390625, 0.07598876953125, -0.08453369140625, -0.0190277099609375, 0.0036468505859375, 0.0697021484375, 0.05322265625, 0.00821685791015625, -0.051177978515625, 0.000347137451171875, 0.0703125, 0.08062744140625, 0.04168701171875, 0.012725830078125, -0.007781982421875, 0.011138916015625, 0.017547607421875, -0.0002486705780029297, 0.03875732421875, -0.040283203125, -0.031494140625, 0.02899169921875, 0.006130218505859375, 0.01398468017578125, -0.0022754669189453125, 0.00665283203125, -0.056732177734375, 0.0004773139953613281, 0.05462646484375, -0.036468505859375, 0.006134033203125, 0.004627227783203125, 0.059906005859375, -0.07421875, -0.03741455078125, -0.0135955810546875, 0.049041748046875, 0.0268096923828125, 0.0277557373046875, 0.051513671875, 0.0316162109375, 0.01049041748046875, -0.0282135009765625, 0.0172119140625, -0.0188140869140625, -0.02960205078125, 0.05780029296875, 0.03955078125, 0.05413818359375, -0.0240936279296875, -0.027374267578125, 0.03955078125, 0.06884765625, -0.0307159423828125, 0.040313720703125, 0.02252197265625, -0.012115478515625, 0.0038738250732421875, -0.049407958984375, 0.002758026123046875, -0.005626678466796875, -0.040496826171875, -0.044586181640625, -0.0203399658203125, 0.027679443359375, -0.0006651878356933594, 0.002105712890625, -0.021942138671875, 0.0199127197265625, -0.0113677978515625, -0.0435791015625, 0.0200042724609375, 0.029296875, 0.024688720703125, 0.0010576248168945312, 0.0498046875, 0.00432586669921875, 0.0041351318359375, -0.009368896484375, 0.0277252197265625, -0.01285552978515625, 0.0242156982421875, -0.0213623046875, -0.0245208740234375, -0.052276611328125, 0.02044677734375, -0.006160736083984375, 0.035675048828125, 0.03375244140625, 0.04425048828125, -0.0034313201904296875, -0.00904083251953125, 0.0538330078125, -0.011199951171875, -0.045166015625, -0.005153656005859375, -0.01038360595703125, 0.0287322998046875, 0.0005626678466796875, 0.0135955810546875, 0.0401611328125, 0.0082550048828125, 0.0163726806640625, -0.011474609375, 0.0242919921875, -0.01514434814453125, 0.0343017578125, 0.0271148681640625, -0.014862060546875, 0.0321044921875, -0.07183837890625, -0.0123291015625, -0.050628662109375, -0.034454345703125, 0.036529541015625, 0.0322265625, 0.000354766845703125, 0.0053863525390625, 0.0584716796875, -0.052520751953125, -0.0169219970703125, 0.0269012451171875, 0.060577392578125, 0.03814697265625, -0.0202484130859375, 0.03302001953125, -0.04339599609375, -0.0271148681640625, -0.0023326873779296875, 0.032379150390625, 0.0175018310546875, 0.0098114013671875, 0.0236053466796875, 0.026611328125, -0.020355224609375, 0.0254058837890625, -0.03594970703125, -0.0256500244140625, 0.07177734375, -0.021240234375, -0.032928466796875, 0.005176544189453125, 0.034820556640625, 0.01074981689453125, 0.0389404296875, -0.03955078125, 0.01447296142578125, -0.0394287109375, 0.00812530517578125, -0.034576416015625, 0.058258056640625, -0.0003075599670410156, 0.001636505126953125, -0.037933349609375, -0.0241546630859375, 0.052764892578125, 0.0635986328125, 0.00482177734375, 0.01042938232421875, 0.0006766319274902344, -0.06787109375, 0.02972412109375, -0.0400390625, 0.08056640625, 0.032684326171875, 0.0034198760986328125, 0.027618408203125, 0.038055419921875, -0.01320648193359375, 0.03216552734375, 0.04473876953125, -0.0163421630859375, 0.04583740234375, -0.021728515625, -0.0022602081298828125, 0.0218658447265625, 0.037506103515625, -0.00011086463928222656, 0.005298614501953125, 0.0230255126953125, -0.02294921875, -0.036285400390625, 0.0302581787109375, -0.02197265625, -0.0032405853271484375, -0.0008401870727539062, -0.00975799560546875, 0.0231170654296875, -0.02154541015625, -0.02008056640625, -0.00212860107421875, -0.01849365234375, -0.0141448974609375, -0.0258331298828125, 0.0183258056640625, -0.002227783203125, -0.0038127899169921875, -0.05035400390625, 0.001750946044921875, -0.0026226043701171875, -0.0012664794921875, -0.0075836181640625, 0.0034732818603515625, -0.00714111328125, 0.029541015625, 0.004154205322265625, 0.00605010986328125, 0.0233306884765625, -0.0156097412109375, 0.01690673828125, -0.0052032470703125, -0.0021495819091796875, 0.0343017578125, -0.002819061279296875, -0.00850677490234375, 0.0251312255859375, -0.00024390220642089844, -0.038482666015625, -0.0789794921875, 0.01329803466796875, -0.0816650390625, 0.0164947509765625, -0.0283966064453125, 0.041290283203125, 0.0404052734375, -0.015777587890625, -0.041656494140625, 0.07421875, -0.0278472900390625, -0.019439697265625, -0.0175323486328125, -0.031951904296875, -0.00669097900390625, 0.04791259765625, 0.0182342529296875, -0.056121826171875, -0.071533203125, 0.0065765380859375, -0.00032782554626464844, 0.0811767578125, -0.011077880859375, 0.008697509765625, -0.049957275390625, -0.00348663330078125, -0.0330810546875, 0.022003173828125, 0.0078582763671875, 0.010955810546875, 0.03125, 0.054931640625, -0.031524658203125, 0.02777099609375, -0.0033588409423828125, -0.00907135009765625, -0.0067596435546875, -0.0208282470703125, -0.0335693359375, 0.0032253265380859375, 0.0341796875, 0.044952392578125, 0.0078887939453125, -0.0306243896484375, 0.0093536376953125, -0.0021686553955078125, -0.01064300537109375, 0.012115478515625, 0.0245361328125, -0.0528564453125, -0.0184173583984375, 0.044403076171875, -0.01690673828125, -0.017608642578125, 0.0229949951171875, -0.03521728515625, -0.01953125, -0.0081024169921875, -0.00504302978515625, -0.054351806640625, 0.03314208984375, 0.016204833984375, -0.03955078125, -0.05523681640625, -0.0110015869140625, -0.004669189453125, -0.04107666015625, -0.04248046875, 0.0029659271240234375, -0.0007090568542480469, -0.00534820556640625, 0.004856109619140625, 0.0151824951171875, 0.049346923828125, 0.00798797607421875, -0.02398681640625, -0.029327392578125, 0.017547607421875, 0.005584716796875, 0.003559112548828125, -0.01085662841796875, 0.0164947509765625, 0.013092041015625, 0.07122802734375, -0.00624847412109375, 0.0654296875, 0.0296173095703125, 0.015289306640625, -0.0016460418701171875, -0.01259613037109375, 0.044189453125, -0.040313720703125, 0.01171112060546875, -0.0186767578125, 0.01490020751953125, 0.024169921875, -0.0215301513671875, -0.00025081634521484375, -0.0303192138671875, -0.01497650146484375 ]
3b317612c9f563741146f40e4cfe9c09335217d0
Wordpress Stackexchange Q: How to get search results in the backend admin on a custom post type? I have a custom post type books and have many meta boxes for it...etc But in the backend, I am not able to search anything. For example I try to search the custom post type id in the search field, it comes back with no results. How can I add different search items into the search query? A: Lol, i was just having the same problem :P Well, this plugin is working for me: Search Everything -> https://github.com/sproutventure/search-everything-wordpress-plugin/ or in wordpress plugin page, by name search everything
Q: How to get search results in the backend admin on a custom post type? I have a custom post type books and have many meta boxes for it...etc But in the backend, I am not able to search anything. For example I try to search the custom post type id in the search field, it comes back with no results. How can I add different search items into the search query? A: Lol, i was just having the same problem :P Well, this plugin is working for me: Search Everything -> https://github.com/sproutventure/search-everything-wordpress-plugin/ or in wordpress plugin page, by name search everything
wordpress
{ "language": "en", "length": 102, "provenance": "stackexchange_00019.jsonl.gz:425819", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72640" }
[ 0.0382080078125, 0.0034732818603515625, 0.0223236083984375, 0.0030078887939453125, -0.01229095458984375, -0.0149383544921875, 0.0195770263671875, -0.0460205078125, 0.019500732421875, 0.034515380859375, -0.0047607421875, 0.0016469955444335938, -0.01837158203125, -0.0253448486328125, -0.022613525390625, -0.034393310546875, 0.027099609375, 0.003681182861328125, 0.03826904296875, -0.022796630859375, 0.02838134765625, 0.0006465911865234375, 0.027008056640625, 0.0183258056640625, 0.036712646484375, -0.0310211181640625, 0.0279998779296875, -0.0172882080078125, 0.037506103515625, -0.00646209716796875, 0.0211334228515625, -0.0061798095703125, 0.02801513671875, -0.01508331298828125, 0.0194091796875, -0.00749969482421875, 0.01483154296875, 0.005809783935546875, 0.008453369140625, -0.0030670166015625, 0.032196044921875, -0.0141754150390625, 0.0017652511596679688, 0.05657958984375, -0.0092926025390625, -0.070068359375, 0.04254150390625, -0.057342529296875, -0.00629425048828125, -0.02764892578125, -0.006435394287109375, -0.00860595703125, 0.00937652587890625, -0.061370849609375, -0.00685882568359375, -0.0033397674560546875, 0.013946533203125, -0.030853271484375, 0.025970458984375, -0.043304443359375, -0.01183319091796875, -0.016632080078125, 0.03839111328125, 0.035736083984375, 0.0004017353057861328, 0.00724029541015625, 0.0251617431640625, 0.0143280029296875, -0.0120697021484375, -0.01338958740234375, 0.0108184814453125, -0.014251708984375, 0.025848388671875, 0.006221771240234375, -0.00013387203216552734, -0.08929443359375, 0.031036376953125, -0.04150390625, -0.004314422607421875, 0.0335693359375, -0.039886474609375, -0.01580810546875, -0.06707763671875, -0.041412353515625, -0.0017948150634765625, -0.0305633544921875, -0.017974853515625, 0.026214599609375, -0.006496429443359375, -0.017730712890625, -0.003719329833984375, -0.08026123046875, -0.025543212890625, 0.031341552734375, 0.0179595947265625, -0.037200927734375, 0.0357666015625, 0.04107666015625, 0.00933074951171875, 0.0270233154296875, 0.002323150634765625, -0.04998779296875, 0.0546875, -0.055450439453125, 0.03607177734375, -0.032684326171875, -0.04742431640625, 0.01442718505859375, 0.09375, 0.057220458984375, 0.0014553070068359375, 0.05023193359375, -0.03131103515625, -0.00787353515625, -0.0211029052734375, 0.0258941650390625, -0.03759765625, 0.004665374755859375, -0.0165252685546875, 0.01224517822265625, 0.025665283203125, 0.0299224853515625, 0.0141754150390625, -0.0295867919921875, -0.0243072509765625, -0.037689208984375, -0.04132080078125, -0.0176239013671875, 0.0199432373046875, -0.0119476318359375, -0.019317626953125, 0.0252227783203125, 0.032135009765625, 0.01123809814453125, -0.00611114501953125, 0.0030803680419921875, 0.0002224445343017578, -0.00040912628173828125, 0.004863739013671875, -0.00704193115234375, 0.024871826171875, -0.04254150390625, -0.03167724609375, 0.03460693359375, 0.00801849365234375, -0.02178955078125, 0.01389312744140625, 0.04876708984375, -0.0036296844482421875, -0.0158843994140625, 0.021484375, 0.0105133056640625, 0.04266357421875, 0.00914764404296875, -0.0239715576171875, -0.0154266357421875, 0.0487060546875, -0.03155517578125, -0.026031494140625, -0.049041748046875, 0.015777587890625, 0.0186920166015625, 0.034332275390625, 0.0186309814453125, 0.01557159423828125, -0.029571533203125, -0.017822265625, -0.0116729736328125, 0.012847900390625, -0.0261077880859375, 0.0250091552734375, -0.01049041748046875, 0.00998687744140625, -0.0212860107421875, -0.0126953125, -0.01093292236328125, 0.028167724609375, 0.034881591796875, 0.00960540771484375, 0.0088958740234375, 0.01377105712890625, -0.00922393798828125, 0.0865478515625, -0.02252197265625, -0.04058837890625, 0.032989501953125, 0.01483154296875, 0.0638427734375, 0.0005078315734863281, 0.021728515625, 0.01433563232421875, 0.00728607177734375, -0.03717041015625, 0.045257568359375, -0.032562255859375, -0.005222320556640625, -0.032806396484375, 0.015716552734375, -0.0377197265625, 0.00455474853515625, -0.024383544921875, 0.01529693603515625, -0.008697509765625, 0.029022216796875, -0.00665283203125, 0.00765228271484375, -0.01251220703125, 0.0164947509765625, -0.005168914794921875, 0.01230621337890625, 0.0246429443359375, 0.0289306640625, -0.053070068359375, -0.0024662017822265625, -0.01042938232421875, 0.01617431640625, -0.0088653564453125, 0.004383087158203125, 0.01263427734375, -0.0066375732421875, -0.002864837646484375, -0.02728271484375, -0.00620269775390625, 0.0173492431640625, 0.055145263671875, 0.015777587890625, 0.0016326904296875, 0.0061798095703125, 0.08154296875, 0.040252685546875, -0.02288818359375, -0.02630615234375, 0.04736328125, 0.04217529296875, -0.00672149658203125, 0.0009765625, 0.014404296875, -0.047088623046875, 0.01009368896484375, 0.046783447265625, 0.035247802734375, 0.03033447265625, 0.0244598388671875, 0.02392578125, 0.0115814208984375, -0.031585693359375, 0.0286712646484375, -0.0155792236328125, 0.0166473388671875, 0.054290771484375, -0.024383544921875, 0.003971099853515625, 0.01360321044921875, -0.04638671875, 0.01435089111328125, 0.062225341796875, 0.032684326171875, 0.0301361083984375, -0.012908935546875, -0.0129852294921875, 0.0030269622802734375, -0.0226593017578125, -0.05218505859375, 0.0014677047729492188, 0.01061248779296875, 0.032745361328125, 0.032684326171875, 0.0390625, -0.0596923828125, 0.00952911376953125, 0.0254669189453125, 0.0609130859375, 0.0164031982421875, 0.01568603515625, 0.0294036865234375, 0.0069427490234375, -0.04241943359375, -0.005825042724609375, 0.04254150390625, 0.0115509033203125, 0.004856109619140625, 0.0007762908935546875, -0.035491943359375, -0.0003376007080078125, -0.00603485107421875, -0.07391357421875, 0.012115478515625, 0.06854248046875, -0.0134735107421875, 0.00705718994140625, 0.0167083740234375, 0.0291900634765625, -0.00605010986328125, 0.021270751953125, -0.01139068603515625, 0.0031604766845703125, 0.0289154052734375, -0.0648193359375, 0.056427001953125, -0.01727294921875, 0.0711669921875, 0.07354736328125, -0.00665283203125, 0.03045654296875, -0.016326904296875, 0.005313873291015625, -0.0263519287109375, 0.039764404296875, 0.0035648345947265625, -0.04443359375, -0.0352783203125, -0.0157012939453125, 0.04022216796875, 0.055084228515625, 0.04498291015625, -0.02490234375, 0.01537322998046875, 0.072021484375, -0.068115234375, -0.06103515625, 0.01142120361328125, -0.037322998046875, -0.0400390625, -0.03399658203125, -0.0262298583984375, 0.03546142578125, -0.038330078125, -0.012115478515625, 0.06121826171875, -0.016815185546875, -0.0738525390625, -0.017608642578125, -0.08056640625, -0.036376953125, -0.0036029815673828125, -0.01462554931640625, 0.00539398193359375, 0.063720703125, 0.023162841796875, -0.05206298828125, 0.021697998046875, 0.07952880859375, -0.0166778564453125, -0.004833221435546875, 0.007320404052734375, -0.04595947265625, 0.0302886962890625, -0.0139007568359375, 0.0258941650390625, 0.031585693359375, -0.01861572265625, 0.010162353515625, -0.00046443939208984375, -0.0169525146484375, 0.01074981689453125, -0.01509857177734375, -0.016021728515625, -0.0034332275390625, 0.01453399658203125, -0.0543212890625, -0.013885498046875, -0.00518798828125, -0.01503753662109375, 0.036102294921875, -0.00319671630859375, -0.01322174072265625, -0.0301055908203125, 0.06512451171875, 0.038238525390625, 0.0237884521484375, 0.005596160888671875, -0.0026702880859375, -0.004344940185546875, 0.01073455810546875, 0.03955078125, -0.01349639892578125, 0.0110015869140625, -0.0235137939453125, 0.01326751708984375, 0.01189422607421875, 0.0218048095703125, 0.0141754150390625, -0.00331878662109375, -0.005462646484375, -0.07904052734375, 0.0638427734375, -0.0017118453979492188, 0.006809234619140625, -0.038299560546875, -0.04351806640625, -0.007602691650390625, 0.1103515625, -0.051513671875, -0.004634857177734375, -0.017486572265625, -0.01232147216796875, 0.005184173583984375, -0.04095458984375, -0.03485107421875, -0.0216827392578125, -0.06561279296875, -0.007030487060546875, -0.005146026611328125, -0.0194549560546875, 0.0003528594970703125, -0.007785797119140625, -0.016937255859375, -0.0283660888671875, 0.00974273681640625, -0.031494140625, 0.01116180419921875, -0.0218505859375, 0.00019872188568115234, -0.052459716796875, 0.0182952880859375, -0.042938232421875, -0.055389404296875, -0.016143798828125, 0.0012712478637695312, 0.0474853515625, 0.00811004638671875, -0.0168914794921875, -0.0010480880737304688, 0.043609619140625, 0.027069091796875, 0.025421142578125, -0.00030875205993652344, -0.0308990478515625, 0.0267486572265625, -0.00958251953125, -0.002597808837890625, -0.0289154052734375, -0.0181121826171875, 0.0139312744140625, 0.0098114013671875, 0.04925537109375, -0.0210418701171875, -0.043060302734375, 0.003993988037109375, -0.0284271240234375, 0.0015516281127929688, -0.041107177734375, -0.05950927734375, -0.0201873779296875, -0.0433349609375, -0.005901336669921875, -0.0202484130859375, -0.002201080322265625, 0.05487060546875, 0.020782470703125, -0.01212310791015625, -0.0174102783203125, 0.058349609375, 0.016693115234375, -0.038238525390625, -0.00789642333984375, -0.0265655517578125, 0.00925445556640625, -0.0178070068359375, 0.02166748046875, -0.030731201171875, -0.0173492431640625, 0.073486328125, -0.045440673828125, 0.0195159912109375, -0.0305328369140625, 0.063720703125, -0.0290985107421875, -0.027587890625, 0.040283203125, -0.037689208984375, -0.01200103759765625, 0.01535797119140625, -0.023651123046875, -0.0114898681640625, -0.00540924072265625, 0.0601806640625, -0.056976318359375, 0.0550537109375, -0.0145263671875, -0.0013570785522460938, 0.004322052001953125, -0.0283203125, 0.0242919921875, 0.031219482421875, -0.018768310546875, -0.000010609626770019531, 0.011077880859375, -0.006473541259765625, 0.01220703125, -0.002643585205078125, -0.0144805908203125, 0.0119476318359375, 0.006214141845703125, -0.0167083740234375, 0.016876220703125, -0.00710296630859375, 0.07574462890625, -0.03692626953125, -0.058990478515625, -0.006710052490234375, -0.0306396484375, -0.029327392578125, 0.035247802734375, 0.003936767578125, -0.0121307373046875, 0.039031982421875, -0.0009708404541015625, 0.01849365234375, 0.04083251953125, 0.0338134765625, -0.0181884765625, 0.003955841064453125, -0.0058135986328125, 0.00505828857421875, -0.0185394287109375, 0.1044921875, -0.0262298583984375, 0.041290283203125, -0.00994873046875, -0.0167236328125, -0.0294036865234375, 0.043975830078125, 0.0257415771484375, -0.0219573974609375, 0.013397216796875, 0.00278472900390625, 0.024139404296875, -0.0167083740234375, 0.0164337158203125, 0.01058197021484375, 0.0111083984375, 0.038421630859375, -0.005596160888671875, 0.0129852294921875, -0.0132598876953125, -0.035064697265625, 0.0211944580078125, 0.00632476806640625, -0.01959228515625, -0.044677734375, -0.02392578125, 0.04168701171875, 0.025421142578125, -0.0269775390625, 0.01275634765625, -0.0509033203125, 0.008514404296875, -0.01849365234375, -0.008331298828125, -0.000865936279296875, -0.001026153564453125, -0.06219482421875, -0.0382080078125, -0.0006089210510253906, -0.04180908203125, -0.01056671142578125, -0.0012750625610351562, -0.0202484130859375, -0.006229400634765625, -0.01270294189453125, 0.01146697998046875, -0.00362396240234375, 0.0024051666259765625, 0.0178375244140625, 0.0232086181640625, 0.016876220703125, -0.01064300537109375, -0.004329681396484375, 0.01485443115234375, -0.024139404296875, -0.0115814208984375, -0.00687408447265625, -0.019012451171875, -0.0400390625, -0.0421142578125, 0.01219940185546875, 0.0236358642578125, -0.01318359375, -0.032989501953125, 0.0029144287109375, -0.0008997917175292969, 0.013671875, 0.01549530029296875, -0.0275726318359375, 0.07037353515625, -0.0263214111328125, 0.068359375, -0.03582763671875, -0.01434326171875, -0.0312347412109375, 0.0157928466796875, -0.001983642578125, -0.0560302734375, -0.03643798828125, 0.000156402587890625, -0.04290771484375, 0.050811767578125, 0.045562744140625, 0.004650115966796875, -0.01641845703125, -0.00028061866760253906, -0.002086639404296875, -0.01019287109375, 0.061981201171875, 0.03509521484375, 0.02264404296875, 0.0145416259765625, -0.00612640380859375, 0.0164642333984375, 0.00494384765625, -0.0250701904296875, 0.006740570068359375, 0.018768310546875, -0.00007891654968261719, 0.00432586669921875, -0.0310821533203125, 0.0178070068359375, 0.06365966796875, 0.004955291748046875, 0.0309600830078125, 0.017730712890625, 0.0084381103515625, 0.0132904052734375, 0.013885498046875, -0.00830078125, 0.003078460693359375, 0.071044921875, 0.0064849853515625, -0.0589599609375, 0.0302734375, -0.0472412109375, -0.026397705078125, 0.025238037109375, 0.0103607177734375, -0.084716796875, 0.006381988525390625, 0.0016431808471679688, 0.004367828369140625, -0.022918701171875, 0.026153564453125, -0.033843994140625, -0.0299835205078125, -0.054351806640625, 0.00457763671875, -0.034912109375, -0.0272369384765625, 0.0281524658203125, -0.00641632080078125, -0.01148223876953125, 0.05096435546875, 0.001804351806640625, -0.03118896484375, -0.006580352783203125, 0.002521514892578125, -0.0027141571044921875, 0.004497528076171875, 0.03753662109375, 0.0037708282470703125, -0.024993896484375, -0.050201416015625, 0.011871337890625, -0.0017414093017578125, -0.039520263671875, 0.035614013671875, 0.03076171875, 0.04168701171875, 0.07452392578125, 0.008056640625, -0.007213592529296875, 0.0294647216796875, -0.005878448486328125, -0.0107574462890625, -0.03668212890625, -0.049957275390625, 0.0306854248046875, -0.038177490234375, 0.0267791748046875, -0.0274810791015625, 0.0176239013671875, -0.014801025390625, -0.038177490234375, 0.05072021484375, -0.0193939208984375, 0.000995635986328125, 0.028076171875, 0.0302734375, -0.004314422607421875, 0.018157958984375, -0.00823211669921875, -0.01528167724609375, 0.0180511474609375, 0.0152130126953125, 0.0099639892578125, -0.0012540817260742188, 0.04034423828125, -0.029052734375, 0.041015625, -0.01459503173828125, -0.01459503173828125, 0.015838623046875, 0.028076171875, 0.0018739700317382812, 0.0131988525390625, -0.0179443359375, 0.00760650634765625, -0.0506591796875, 0.03289794921875, -0.062103271484375, -0.015777587890625, -0.01357269287109375, 0.05340576171875, 0.0335693359375, 0.0019855499267578125, -0.029693603515625, 0.003574371337890625, 0.06475830078125, 0.03338623046875, 0.01611328125, 0.036285400390625, 0.045196533203125, 0.0282135009765625, 0.0643310546875, -0.016082763671875, 0.047271728515625, -0.039581298828125, 0.03302001953125, 0.05029296875, 0.0109405517578125, 0.033294677734375, -0.002094268798828125, -0.03118896484375, -0.0146484375, -0.01357269287109375, 0.0083465576171875, -0.032135009765625, 0.025054931640625, 0.017822265625, 0.04962158203125, -0.122802734375, -0.017608642578125, -0.033355712890625, 0.04766845703125, -0.01514434814453125, 0.048370361328125, -0.033935546875, 0.0071563720703125, 0.025238037109375, -0.046295166015625, 0.01104736328125, 0.0204010009765625, -0.038177490234375, 0.0148162841796875, -0.02777099609375, 0.014190673828125, -0.049163818359375, -0.008087158203125, 0.0274810791015625, 0.0225830078125, -0.0210113525390625, -0.0938720703125, 0.0102386474609375, -0.0035572052001953125, 0.01241302490234375, 0.04486083984375, -0.0035305023193359375, 0.0660400390625, 0.11260986328125, -0.0244598388671875, -0.0030803680419921875, 0.0015115737915039062, 0.040802001953125, -0.01519012451171875, -0.026031494140625, 0.00040149688720703125, -0.0115203857421875, -0.03497314453125, 0.0239105224609375, 0.0212249755859375, 0.048126220703125, 0.00888824462890625, 0.053955078125, -0.039825439453125, -0.00739288330078125, -0.00977325439453125, 0.043182373046875, -0.04571533203125, 0.03143310546875, -0.0258941650390625, -0.04681396484375, -0.0113372802734375, 0.03472900390625, 0.0277099609375, 0.048858642578125, 0.0265045166015625, -0.01270294189453125, 0.01039886474609375, 0.004497528076171875, 0.028106689453125, -0.01016998291015625, -0.02337646484375, -0.04962158203125, 0.041351318359375, 0.024658203125, 0.0208740234375, -0.00679779052734375, 0.0219879150390625, 0.0286712646484375, 0.032012939453125, -0.0005230903625488281, 0.0263519287109375, -0.056243896484375, 0.0280303955078125, -0.004085540771484375, 0.07965087890625, 0.040283203125, -0.06298828125, -0.016204833984375, -0.01371002197265625, -0.050750732421875, 0.028106689453125, 0.040374755859375, -0.0164794921875, -0.00006788969039916992, -0.005603790283203125, -0.034881591796875, -0.0041656494140625, 0.01116943359375, 0.040313720703125, 0.03924560546875, -0.0138397216796875, 0.01806640625, -0.07574462890625, -0.035675048828125, 0.0073394775390625, -0.01169586181640625, -0.004581451416015625, 0.0318603515625, 0.0256195068359375, -0.01401519775390625, 0.005428314208984375, 0.035064697265625, -0.038665771484375, 0.0038166046142578125, 0.0034198760986328125, -0.0214080810546875, 0.0025005340576171875, -0.00875091552734375, -0.043426513671875, 0.01270294189453125, 0.024139404296875, -0.038818359375, 0.005329132080078125, 0.00637054443359375, 0.006610870361328125, -0.01971435546875, -0.031005859375, -0.0305938720703125, 0.00933074951171875, 0.00171661376953125, -0.03570556640625, 0.041015625, 0.005985260009765625, 0.005252838134765625, 0.0202484130859375, -0.0019931793212890625, -0.040069580078125, 0.03448486328125, -0.058502197265625, 0.0791015625, 0.05267333984375, -0.0214385986328125, 0.0025844573974609375, 0.005985260009765625, -0.00786590576171875, 0.0003407001495361328, 0.03106689453125, -0.01253509521484375, 0.01038360595703125, -0.000040650367736816406, -0.00533294677734375, -0.035614013671875, 0.034027099609375, -0.00502777099609375, -0.005352020263671875, -0.04022216796875, 0.01019287109375, -0.023468017578125, -0.01568603515625, -0.01012420654296875, -0.0159759521484375, -0.029541015625, 0.00536346435546875, 0.00009077787399291992, -0.03973388671875, -0.0030117034912109375, 0.03271484375, 0.0311126708984375, -0.001010894775390625, -0.053924560546875, 0.049774169921875, -0.052642822265625, 0.00797271728515625, 0.0187530517578125, -0.043731689453125, 0.0213165283203125, 0.07464599609375, 0.022430419921875, 0.02838134765625, -0.013946533203125, -0.03131103515625, 0.005260467529296875, 0.0177154541015625, 0.029937744140625, -0.03558349609375, -0.035675048828125, -0.00247955322265625, 0.03936767578125, 0.047515869140625, 0.046417236328125, -0.02294921875, 0.0118408203125, 0.0213470458984375, -0.0322265625, -0.0576171875, 0.0250701904296875, -0.0455322265625, -0.00017309188842773438, -0.0175018310546875, 0.04034423828125, 0.049835205078125, -0.021881103515625, -0.0880126953125, 0.017486572265625, -0.01474761962890625, -0.03814697265625, -0.0791015625, -0.0006809234619140625, 0.02667236328125, -0.01506805419921875, -0.02069091796875, -0.00415802001953125, -0.07763671875, 0.0081787109375, 0.0123748779296875, 0.00841522216796875, 0.0175018310546875, 0.034942626953125, -0.06494140625, 0.01303863525390625, -0.01143646240234375, -0.0023097991943359375, 0.031829833984375, -0.0239410400390625, 0.00682830810546875, 0.0096893310546875, -0.06231689453125, -0.049224853515625, -0.02838134765625, 0.0080108642578125, 0.0030002593994140625, -0.005706787109375, -0.0306396484375, -0.011749267578125, 0.032928466796875, 0.0413818359375, 0.0196685791015625, -0.01551055908203125, 0.007419586181640625, 0.0034465789794921875, -0.014251708984375, -0.0283966064453125, 0.01352691650390625, -0.0535888671875, -0.0198974609375, -0.0141143798828125, -0.0088348388671875, 0.0190277099609375, -0.00890350341796875, -0.0127716064453125, -0.006031036376953125, 0.032562255859375, -0.011322021484375, -0.044464111328125, 0.0288543701171875, 0.0352783203125, -0.0377197265625, -0.0308837890625, 0.01425933837890625, -0.0129852294921875, -0.0103607177734375, -0.043670654296875, 0.0021953582763671875, -0.00226593017578125, 0.004070281982421875, -0.00019109249114990234, 0.015960693359375, -0.025238037109375, 0.02508544921875, -0.0022735595703125, -0.01000213623046875, 0.035308837890625, -0.0126190185546875, 0.01000213623046875, -0.03643798828125, 0.03973388671875, 0.00010401010513305664, 0.077392578125, 0.0238189697265625, -0.0010843276977539062, -0.032440185546875, 0.06982421875, 0.01099395751953125, -0.044677734375, 0.01096343994140625, -0.01068115234375, 0.006610870361328125, -0.018218994140625, -0.008880615234375, -0.036285400390625, 0.0025272369384765625, 0.00835418701171875, -0.00838470458984375, 0.0224151611328125 ]
5b7b7488c2ca1fa5d09c8ff84a0c736b13af0159
Wordpress Stackexchange Q: How to add an inline style to the tag outputted in the_content() using PHP? I am trying to add an inline style to my paragraph tags which are ouputted using the_content(); I've tried string replace, see question I did earlier. But it won't because the_content echo's it and does not return it. If I return the content using get_the_content();, it does not output in paragraph tags. Can anyone help me with this? A: Thanks to @papirtiger Came up with this solution just to apply it to a specific content function. I did not explain in my question that I only needed to work on a specific the_content, instead I think the above solutions are a global solutions, and both are great solutions from that point of view. <?php $phrase = get_the_content(); // This is where wordpress filters the content text and adds paragraphs $phrase = apply_filters('the_content', $phrase); $replace = '<p style="text-align: left; font-family: Georgia, Times, serif; font-size: 14px; line-height: 22px; color: #1b3d52; font-weight: normal; margin: 15px 0px; font-style: italic;">'; echo str_replace('<p>', $replace, $phrase); ?>
Q: How to add an inline style to the tag outputted in the_content() using PHP? I am trying to add an inline style to my paragraph tags which are ouputted using the_content(); I've tried string replace, see question I did earlier. But it won't because the_content echo's it and does not return it. If I return the content using get_the_content();, it does not output in paragraph tags. Can anyone help me with this? A: Thanks to @papirtiger Came up with this solution just to apply it to a specific content function. I did not explain in my question that I only needed to work on a specific the_content, instead I think the above solutions are a global solutions, and both are great solutions from that point of view. <?php $phrase = get_the_content(); // This is where wordpress filters the content text and adds paragraphs $phrase = apply_filters('the_content', $phrase); $replace = '<p style="text-align: left; font-family: Georgia, Times, serif; font-size: 14px; line-height: 22px; color: #1b3d52; font-weight: normal; margin: 15px 0px; font-style: italic;">'; echo str_replace('<p>', $replace, $phrase); ?> A: You can use your custom string replace in a custom "the_content" function. function custom_the_content($more_link_text = null, $stripteaser = false) { $content = get_the_content($more_link_text, $stripteaser); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]&gt;', $content); // apply you own string replace here echo $content; } A: Use filter and actions: /** * Plugin Name: Your_awsome_inlinestyle * Plugin URI: http://wordpress.stackexchange.com/questions/72681/how-to-add-an-inline-style-to-the-p-tag-outputted-in-the-content-using-php * Description: See link to plugin * Version: 0.1 * Author: Ralf Albert * Author URI: http://yoda.neun12.de * Text Domain: * Domain Path: * Network: * License: GPLv3 */ add_action( 'plugins_loaded', 'init_inlinestyler', 10, 0 ); function init_inlinestyler(){ add_filter( 'the_content', 'add_inlinestyle_to_p_tag', 10, 1 ); } function add_inlinestyle_to_p_tag( $content = null ){ if( null === $content ) return $content; return str_replace( '<p>', '<p style="color:red">', $content ); } Update If you want to use a filter just for a specialjob instead of a global filtering, add the filter just in the place where you need it and than remove it again. First define your filter-callback: function insert_inline_style( $content = null ){ ... } Place this function anywhere you want. Rule of thumb: if you want to reuse the callback, place it in an central file like functions.php. If the callback is just for a (very) special job, place it in the same file which do the job. Now we have to add the filter, so the output of the_content will be filtered: <?php // add the filter add_filter( 'the_content', 'insert_inline_style', 10, 1 ); // output the post content the_content(); // remove the filter if it is not longer needed remove_filter( 'the_content', 'insert_inline_style' ); So you don't have to fiddle around with get_the_content() and can easily reuse the callback if needed. A: I might be late for this one, but use this : ob_start(); the_content(); $content = ob_get_clean(); Then call $content wherever you want. Basically, the_content is kept in memory (another time dimension) and no data is fetch until ob_get_clean() is called. This said, the_content() keeps the format as get_the_content() does not. This is why many answers would try to filter get_the_content(), which is quite troublesome.
wordpress
{ "language": "en", "length": 515, "provenance": "stackexchange_00019.jsonl.gz:425831", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72681" }
[ -0.00402069091796875, -0.010284423828125, -0.0295867919921875, -0.016387939453125, 0.00010782480239868164, -0.058868408203125, 0.026519775390625, -0.00782012939453125, -0.0142364501953125, 0.0167999267578125, -0.032623291015625, -0.0009670257568359375, -0.03271484375, -0.0267333984375, 0.0220489501953125, -0.04620361328125, 0.0035552978515625, 0.0064239501953125, 0.026641845703125, -0.0001837015151977539, 0.0146942138671875, 0.00936126708984375, -0.00666046142578125, -0.004795074462890625, 0.03497314453125, -0.05035400390625, 0.0908203125, -0.038177490234375, 0.03472900390625, -0.0269012451171875, 0.024383544921875, -0.028228759765625, 0.0323486328125, 0.055084228515625, -0.0849609375, -0.046539306640625, -0.0093231201171875, 0.00180816650390625, -0.02825927734375, 0.0181121826171875, 0.017120361328125, -0.000025391578674316406, -0.00464630126953125, 0.0413818359375, -0.029632568359375, -0.028411865234375, 0.037139892578125, -0.0225372314453125, -0.01666259765625, 0.001308441162109375, 0.04461669921875, -0.0286102294921875, 0.042022705078125, -0.00963592529296875, -0.00823211669921875, 0.0321044921875, -0.043243408203125, 0.045196533203125, 0.01544189453125, -0.019439697265625, -0.01203155517578125, -0.002223968505859375, 0.01812744140625, 0.00537109375, 0.00090789794921875, 0.016387939453125, 0.0516357421875, 0.0009584426879882812, -0.061920166015625, -0.01898193359375, 0.02496337890625, -0.037811279296875, 0.017181396484375, -0.033843994140625, 0.0009284019470214844, 0.02227783203125, -0.028472900390625, -0.0120391845703125, 0.0204925537109375, -0.0132904052734375, 0.025665283203125, 0.043121337890625, -0.006916046142578125, -0.03009033203125, 0.0218353271484375, -0.0128936767578125, -0.01300811767578125, -0.018707275390625, -0.032989501953125, -0.067626953125, -0.0226593017578125, -0.048980712890625, -0.0322265625, -0.04547119140625, -0.0220947265625, -0.0531005859375, -0.02764892578125, 0.00839996337890625, -0.01364898681640625, 0.05584716796875, 0.0167694091796875, -0.049591064453125, 0.09710693359375, -0.051177978515625, 0.0203399658203125, 0.02276611328125, -0.0128021240234375, -0.00835418701171875, 0.04571533203125, 0.0161285400390625, 0.0009088516235351562, 0.0035648345947265625, -0.0000438690185546875, -0.01515960693359375, -0.041168212890625, 0.032928466796875, 0.0018987655639648438, -0.014892578125, 0.0021038055419921875, -0.0115966796875, 0.006618499755859375, 0.03289794921875, -0.025390625, -0.019683837890625, -0.0169677734375, -0.01363372802734375, 0.006923675537109375, -0.011566162109375, 0.0194549560546875, 0.00557708740234375, -0.021942138671875, 0.006542205810546875, 0.046173095703125, 0.022430419921875, 0.01108551025390625, -0.0254058837890625, 0.00760650634765625, -0.0513916015625, -0.054718017578125, 0.054351806640625, -0.013916015625, -0.048187255859375, 0.00823974609375, -0.04656982421875, 0.0198211669921875, 0.0179290771484375, 0.0183258056640625, 0.01190185546875, -0.01387786865234375, -0.05914306640625, 0.08062744140625, -0.0546875, 0.05230712890625, 0.0015869140625, -0.07763671875, -0.02777099609375, 0.0008864402770996094, -0.040313720703125, -0.00968170166015625, -0.07147216796875, 0.01348114013671875, 0.007015228271484375, 0.024566650390625, 0.0257720947265625, 0.0028781890869140625, -0.02947998046875, -0.037445068359375, -0.00690460205078125, 0.0189666748046875, 0.032989501953125, -0.009857177734375, 0.003055572509765625, 0.031646728515625, -0.01983642578125, -0.031829833984375, -0.0008335113525390625, -0.015655517578125, 0.0419921875, 0.016571044921875, 0.0186309814453125, -0.011016845703125, -0.043121337890625, 0.08856201171875, -0.0394287109375, -0.05023193359375, 0.0182342529296875, -0.00130462646484375, 0.05780029296875, 0.0222930908203125, 0.015869140625, -0.0095977783203125, -0.01065826416015625, -0.0128326416015625, 0.0116729736328125, 0.0166015625, -0.0242156982421875, 0.00783538818359375, 0.0060882568359375, 0.00022530555725097656, -0.0321044921875, -0.0027065277099609375, -0.0262603759765625, 0.003993988037109375, -0.0009207725524902344, -0.08172607421875, -0.01513671875, -0.016876220703125, 0.03570556640625, -0.03863525390625, -0.02392578125, 0.00807952880859375, -0.0299224853515625, 0.0214080810546875, -0.05755615234375, -0.03564453125, 0.00505828857421875, 0.00185394287109375, -0.02374267578125, 0.01739501953125, 0.010467529296875, 0.052764892578125, 0.010406494140625, 0.005840301513671875, 0.0007767677307128906, 0.05560302734375, -0.019927978515625, -0.0033626556396484375, -0.0202789306640625, 0.0258331298828125, -0.00556182861328125, -0.0119781494140625, 0.0386962890625, 0.08282470703125, 0.09002685546875, -0.0234222412109375, -0.0118560791015625, 0.014556884765625, -0.0509033203125, 0.01009368896484375, 0.040008544921875, 0.051849365234375, 0.034393310546875, 0.0097198486328125, -0.040374755859375, 0.05572509765625, 0.010009765625, 0.03875732421875, -0.066162109375, 0.0201416015625, 0.01496124267578125, -0.0033779144287109375, -0.034393310546875, 0.037567138671875, -0.04296875, 0.043182373046875, 0.025299072265625, 0.0233917236328125, 0.034912109375, -0.0139923095703125, 0.0124053955078125, -0.00325775146484375, 0.04010009765625, -0.005542755126953125, -0.006275177001953125, 0.0027294158935546875, 0.011749267578125, 0.0214691162109375, 0.0175628662109375, -0.01294708251953125, -0.012359619140625, 0.0205535888671875, 0.041534423828125, -0.004276275634765625, 0.01947021484375, -0.0406494140625, -0.0186309814453125, -0.004032135009765625, 0.01143646240234375, -0.030242919921875, -0.015869140625, -0.004314422607421875, 0.031951904296875, 0.041778564453125, -0.00307464599609375, 0.0234527587890625, -0.0233306884765625, 0.01520538330078125, -0.0290374755859375, -0.01227569580078125, -0.021087646484375, 0.007007598876953125, 0.038665771484375, -0.01482391357421875, 0.0253143310546875, 0.008880615234375, -0.0006694793701171875, 0.0270233154296875, -0.020965576171875, 0.051910400390625, -0.0189971923828125, 0.04229736328125, 0.05755615234375, -0.00688934326171875, -0.001697540283203125, 0.0011501312255859375, 0.0570068359375, 0.01110076904296875, 0.0081329345703125, 0.00756072998046875, 0.005245208740234375, -0.00585174560546875, 0.0144500732421875, 0.028350830078125, -0.0158233642578125, 0.0125579833984375, -0.0209197998046875, -0.0279693603515625, 0.01165771484375, -0.11773681640625, -0.07171630859375, 0.009521484375, -0.10076904296875, -0.047607421875, 0.0168609619140625, -0.0830078125, 0.034088134765625, 0.065185546875, -0.020294189453125, 0.0087738037109375, -0.0240020751953125, -0.0455322265625, -0.034210205078125, -0.087646484375, -0.01465606689453125, -0.005401611328125, 0.0128936767578125, 0.01910400390625, 0.04876708984375, 0.0154266357421875, -0.039520263671875, 0.0265960693359375, 0.0229949951171875, -0.01326751708984375, 0.043243408203125, -0.0038013458251953125, -0.033782958984375, -0.0286712646484375, -0.016510009765625, 0.0036792755126953125, 0.0040435791015625, 0.0117950439453125, 0.01296234130859375, -0.0275115966796875, -0.0017347335815429688, 0.0168609619140625, 0.017425537109375, 0.028564453125, 0.014984130859375, 0.04693603515625, -0.0341796875, -0.044525146484375, 0.0163421630859375, -0.0235443115234375, 0.037322998046875, -0.002685546875, -0.035430908203125, -0.0166168212890625, 0.068603515625, -0.033905029296875, -0.02935791015625, 0.04693603515625, -0.044708251953125, 0.026641845703125, -0.0206298828125, -0.05517578125, 0.00031757354736328125, -0.01629638671875, -0.010101318359375, 0.049041748046875, 0.0006527900695800781, 0.02276611328125, -0.01558685302734375, 0.01473236083984375, -0.032928466796875, -0.0253753662109375, 0.01467132568359375, -0.04302978515625, 0.0004875659942626953, -0.00009381771087646484, -0.001667022705078125, 0.006267547607421875, 0.047149658203125, -0.029296875, -0.018402099609375, 0.01305389404296875, 0.03717041015625, -0.033172607421875, -0.06048583984375, -0.011810302734375, 0.00006383657455444336, -0.059173583984375, 0.0204010009765625, -0.0005145072937011719, -0.0220947265625, -0.0074615478515625, -0.002239227294921875, -0.03619384765625, -0.0157318115234375, 0.027374267578125, -0.0039825439453125, -0.01282501220703125, 0.03851318359375, -0.029052734375, 0.0203704833984375, -0.0079193115234375, -0.0076446533203125, -0.07977294921875, -0.004425048828125, -0.06549072265625, 0.0504150390625, 0.028900146484375, -0.017059326171875, 0.01004791259765625, 0.054779052734375, 0.03375244140625, -0.027496337890625, 0.0294036865234375, 0.005523681640625, -0.0258026123046875, -0.036346435546875, 0.005889892578125, -0.057952880859375, -0.021240234375, 0.0302886962890625, -0.013275146484375, 0.1270751953125, 0.023193359375, 0.00988006591796875, 0.071044921875, -0.032501220703125, -0.0396728515625, -0.02178955078125, -0.0100555419921875, -0.0034332275390625, -0.025909423828125, -0.0028781890869140625, -0.00507354736328125, -0.034515380859375, 0.03521728515625, 0.039031982421875, -0.0307159423828125, -0.01422119140625, 0.053009033203125, 0.04107666015625, -0.0325927734375, 0.02752685546875, -0.0037059783935546875, 0.0307464599609375, 0.004550933837890625, -0.00757598876953125, -0.019287109375, -0.043304443359375, 0.03851318359375, 0.007419586181640625, 0.03045654296875, -0.029083251953125, 0.06866455078125, 0.01035308837890625, -0.00977325439453125, 0.0226593017578125, 0.004947662353515625, 0.0018291473388671875, 0.0014495849609375, 0.0063629150390625, -0.02685546875, 0.044403076171875, 0.0305938720703125, 0.0017919540405273438, 0.006320953369140625, -0.022857666015625, -0.029510498046875, 0.0131072998046875, 0.024169921875, 0.0021209716796875, -0.0019741058349609375, 0.0196533203125, -0.0023250579833984375, 0.01611328125, -0.0017948150634765625, 0.00388336181640625, 0.0120697021484375, -0.0237579345703125, 0.0199432373046875, 0.0128326416015625, -0.0174102783203125, -0.012664794921875, 0.0015954971313476562, 0.0082550048828125, 0.007663726806640625, -0.030792236328125, -0.01457977294921875, 0.0141143798828125, 0.037994384765625, 0.016876220703125, 0.0006384849548339844, -0.00675201416015625, -0.0180206298828125, 0.0184326171875, 0.016876220703125, 0.01073455810546875, -0.00937652587890625, -0.0066375732421875, 0.00997161865234375, 0.0258636474609375, -0.02972412109375, 0.0141143798828125, 0.0178375244140625, -0.0111846923828125, 0.00977325439453125, 0.005084991455078125, 0.017852783203125, -0.011077880859375, 0.0216064453125, -0.0023097991943359375, 0.0180816650390625, 0.0095062255859375, 0.0214080810546875, 0.027740478515625, -0.0266265869140625, 0.0139007568359375, 0.0092620849609375, 0.05078125, -0.042633056640625, -0.039398193359375, 0.0275726318359375, -0.05535888671875, 0.001338958740234375, -0.0160064697265625, -0.034210205078125, -0.01611328125, -0.0251312255859375, 0.01129913330078125, 0.022003173828125, -0.001979827880859375, -0.016693115234375, 0.0088348388671875, -0.00852203369140625, 0.00555419921875, -0.00030875205993652344, -0.037872314453125, 0.01242828369140625, 0.0007610321044921875, 0.0147247314453125, -0.0394287109375, -0.01666259765625, -0.01354217529296875, -0.0018625259399414062, -0.008087158203125, 0.01546478271484375, 0.0091705322265625, -0.0266571044921875, 0.04730224609375, -0.0229339599609375, -0.030426025390625, -0.0626220703125, 0.0091094970703125, 0.038330078125, 0.048095703125, -0.0380859375, 0.0235748291015625, -0.0190277099609375, 0.006839752197265625, -0.0024280548095703125, -0.04669189453125, -0.0182037353515625, -0.036224365234375, 0.0162200927734375, 0.006893157958984375, -0.016448974609375, -0.0186309814453125, -0.029876708984375, 0.047454833984375, 0.037261962890625, 0.08251953125, -0.00971221923828125, 0.050811767578125, -0.008636474609375, 0.033203125, 0.01395416259765625, 0.04754638671875, 0.0303192138671875, -0.041656494140625, 0.00021016597747802734, -0.0665283203125, -0.004817962646484375, -0.0138397216796875, 0.022247314453125, 0.0609130859375, 0.0178985595703125, 0.0180206298828125, 0.03594970703125, -0.004573822021484375, 0.00627899169921875, -0.025177001953125, -0.01340484619140625, -0.0196075439453125, -0.0230712890625, 0.0202178955078125, -0.006122589111328125, 0.03717041015625, 0.004192352294921875, 0.01448822021484375, 0.0115966796875, -0.0006084442138671875, 0.014984130859375, 0.01206207275390625, -0.0024242401123046875, -0.0168609619140625, -0.0183563232421875, 0.006229400634765625, 0.0119476318359375, -0.0178070068359375, 0.0074615478515625, 0.014678955078125, -0.0223388671875, 0.01500701904296875, 0.052154541015625, 0.051849365234375, -0.00899505615234375, 0.0232696533203125, 0.0212554931640625, -0.01348114013671875, -0.0017910003662109375, 0.07867431640625, 0.037841796875, -0.0787353515625, -0.0185394287109375, -0.026031494140625, -0.0174102783203125, 0.043731689453125, 0.01763916015625, -0.01013946533203125, -0.01323699951171875, 0.04925537109375, -0.005336761474609375, 0.0167236328125, 0.03277587890625, 0.0102996826171875, 0.0017862319946289062, -0.0182952880859375, 0.019256591796875, -0.01103973388671875, -0.06744384765625, 0.0108184814453125, 0.0360107421875, -0.0171356201171875, -0.0391845703125, -0.0234832763671875, 0.02423095703125, -0.0292816162109375, -0.0693359375, 0.005672454833984375, -0.0229644775390625, 0.0220794677734375, 0.0167236328125, -0.0007152557373046875, -0.004192352294921875, 0.0523681640625, -0.0256195068359375, 0.03765869140625, 0.0129547119140625, -0.0014791488647460938, -0.0303497314453125, -0.001972198486328125, 0.0309600830078125, 0.010040283203125, -0.032379150390625, 0.02490234375, -0.04425048828125, 0.0091552734375, -0.004703521728515625, 0.0227813720703125, 0.06988525390625, -0.020721435546875, -0.036590576171875, 0.02618408203125, 0.004505157470703125, -0.007659912109375, -0.029571533203125, 0.02642822265625, -0.06292724609375, -0.0272674560546875, -0.00934600830078125, -0.0228729248046875, -0.01462554931640625, -0.06231689453125, -0.084228515625, 0.1236572265625, -0.00592041015625, 0.0379638671875, 0.0223846435546875, 0.0380859375, -0.046661376953125, -0.0034027099609375, -0.007171630859375, 0.032623291015625, -0.018157958984375, -0.024078369140625, -0.052520751953125, -0.006412506103515625, -0.0169219970703125, 0.044769287109375, 0.004146575927734375, -0.010589599609375, -0.07763671875, 0.01358795166015625, 0.081298828125, 0.0157623291015625, 0.0396728515625, 0.05145263671875, 0.0029163360595703125, -0.01494598388671875, -0.0262908935546875, -0.033355712890625, 0.019073486328125, -0.04498291015625, -0.0120391845703125, 0.026458740234375, 0.00475311279296875, 0.004375457763671875, -0.00753021240234375, -0.04058837890625, -0.01540374755859375, -0.013214111328125, 0.00661468505859375, -0.05072021484375, -0.0181884765625, 0.055816650390625, 0.00882720947265625, -0.07855224609375, -0.039093017578125, -0.0400390625, 0.0228729248046875, -0.0094757080078125, 0.0294342041015625, -0.024627685546875, 0.00730133056640625, 0.059844970703125, -0.0202178955078125, -0.0032901763916015625, 0.03668212890625, -0.0010786056518554688, 0.0274810791015625, 0.01284027099609375, -0.002445220947265625, -0.0297393798828125, -0.0016717910766601562, 0.00754547119140625, 0.034637451171875, -0.02764892578125, 0.029815673828125, 0.0175628662109375, 0.0099334716796875, -0.00946807861328125, -0.06463623046875, 0.00795745849609375, -0.0302734375, -0.0279693603515625, -0.03057861328125, -0.01300811767578125, 0.0269927978515625, 0.0236358642578125, 0.0006785392761230469, 0.013092041015625, -0.0164031982421875, -0.0159759521484375, -0.040313720703125, 0.0222930908203125, 0.0241546630859375, 0.0228271484375, -0.0194091796875, 0.050872802734375, -0.01107025146484375, 0.0025882720947265625, -0.00026607513427734375, -0.0210113525390625, 0.0072021484375, -0.007701873779296875, 0.03826904296875, 0.048126220703125, -0.0097808837890625, -0.00801849365234375, 0.002109527587890625, 0.005672454833984375, 0.0290985107421875, 0.032196044921875, -0.03936767578125, 0.00003504753112792969, 0.05096435546875, -0.01070404052734375, 0.0033626556396484375, -0.0450439453125, -0.005901336669921875, 0.0003859996795654297, -0.001800537109375, 0.0224609375, -0.00481414794921875, 0.029327392578125, -0.002758026123046875, 0.028961181640625, 0.003002166748046875, 0.023529052734375, -0.0108489990234375, 0.00856781005859375, -0.0560302734375, 0.0219879150390625, -0.07598876953125, -0.0213623046875, -0.0190887451171875, 0.004100799560546875, 0.00247955322265625, 0.02227783203125, -0.01197052001953125, 0.0269927978515625, 0.0291290283203125, -0.0029449462890625, -0.0027942657470703125, -0.0137786865234375, 0.028045654296875, 0.0276031494140625, 0.01551055908203125, 0.0328369140625, -0.052947998046875, -0.0261993408203125, -0.019012451171875, 0.0635986328125, 0.006927490234375, 0.08642578125, -0.01953125, 0.0272216796875, -0.0157470703125, 0.044891357421875, -0.06695556640625, -0.036224365234375, 0.032623291015625, -0.0223541259765625, 0.01110076904296875, 0.005405426025390625, -0.01540374755859375, 0.00647735595703125, 0.051605224609375, -0.002727508544921875, 0.0079193115234375, -0.00720977783203125, 0.0179901123046875, -0.0261688232421875, 0.042449951171875, -0.004878997802734375, -0.01320648193359375, -0.037109375, -0.013092041015625, 0.035491943359375, 0.06134033203125, 0.03399658203125, 0.009857177734375, 0.0333251953125, -0.0301971435546875, 0.0546875, -0.0318603515625, 0.09613037109375, 0.0430908203125, -0.021759033203125, -0.045013427734375, 0.01409912109375, -0.004566192626953125, -0.01375579833984375, 0.0295257568359375, 0.031585693359375, 0.0229949951171875, -0.0291748046875, -0.01323699951171875, 0.00792694091796875, 0.048675537109375, 0.01995849609375, 0.0270538330078125, -0.00943756103515625, -0.01727294921875, 0.0026702880859375, 0.056121826171875, -0.0218658447265625, -0.0322265625, -0.0012006759643554688, 0.000751495361328125, -0.01352691650390625, -0.041961669921875, -0.07135009765625, -0.00848388671875, 0.037261962890625, -0.0032939910888671875, -0.01041412353515625, -0.034698486328125, -0.00713348388671875, 0.03680419921875, 0.0006704330444335938, -0.024383544921875, -0.001369476318359375, 0.043670654296875, -0.013427734375, -0.04815673828125, -0.0753173828125, 0.0280914306640625, -0.08917236328125, 0.006771087646484375, 0.058746337890625, 0.00882720947265625, 0.048309326171875, -0.01007080078125, -0.01241302490234375, 0.048187255859375, -0.111572265625, 0.0007662773132324219, 0.0287933349609375, -0.00627899169921875, -0.032806396484375, -0.05615234375, 0.0206298828125, -0.046844482421875, 0.0087127685546875, -0.0176544189453125, 0.00519561767578125, 0.0225372314453125, -0.036163330078125, -0.097900390625, 0.0010194778442382812, -0.0164794921875, -0.033660888671875, 0.0213165283203125, -0.0183563232421875, -0.01361083984375, -0.02349853515625, -0.00798797607421875, 0.01178741455078125, 0.003139495849609375, 0.0306854248046875, -0.00717926025390625, 0.035247802734375, 0.017822265625, -0.0265655517578125, -0.03729248046875, -0.020477294921875, -0.020843505859375, -0.0006251335144042969, -0.0028972625732421875, -0.0126495361328125, -0.00366973876953125, 0.0025119781494140625, -0.03826904296875, -0.040771484375, 0.00893402099609375, -0.005718231201171875, -0.0163116455078125, -0.02294921875, 0.0097808837890625, -0.004924774169921875, 0.05517578125, -0.0102081298828125, 0.0052032470703125, -0.0026149749755859375, 0.0169830322265625, 0.034881591796875, -0.0234222412109375, 0.0171051025390625, 0.006927490234375, -0.029449462890625, -0.02593994140625, -0.01220703125, -0.00307464599609375, -0.0251617431640625, -0.0203857421875, -0.0253143310546875, -0.024139404296875, -0.006336212158203125, 0.0130767822265625, -0.01357269287109375, -0.046112060546875, 0.057037353515625, -0.0278778076171875, 0.00412750244140625, 0.0009517669677734375, 0.03509521484375, 0.0284881591796875, 0.038604736328125, 0.017364501953125, 0.004932403564453125, -0.01029205322265625, 0.0027980804443359375, 0.022979736328125, -0.0013523101806640625, 0.00792694091796875, -0.0182342529296875, -0.006969451904296875, -0.003154754638671875, -0.0180206298828125, 0.005550384521484375, 0.0295562744140625, -0.00925445556640625, -0.0219879150390625, 0.0797119140625, -0.031341552734375, 0.0084686279296875, -0.01561737060546875, -0.0107421875, -0.0284271240234375, 0.02362060546875, 0.01042938232421875, 0.001445770263671875, 0.0135040283203125, -0.032257080078125, -0.0038661956787109375, -0.051971435546875, 0.01560211181640625, -0.029754638671875, 0.005970001220703125, 0.0309295654296875 ]
89ad394f164e02c6dfb127ca3420dc8223a9e694
Wordpress Stackexchange Q: How do I change the language of only the login page? My wordpress blog is set up as de_DE. This means that my login page is also displayed in de_DE. I would like to only have the login page in en_US. So, How would I programmatically change a single page's language? Note: I have WPML but I don't wish to use it, I only want to change one page on the whole site. A: This will need to go in a plug-in, just put the following inside a file (login-languge.php) in wp-content/plugins/ /* Plugin Name: Log-in Language Plugin URI: http://wordpress.stackexchange.com/questions/72692/how-do-i-change-the-language-of-only-the-login-page Description: Changes the language for log-in/register screens only Author: Stephen Harris Author URI: http://stephenharris.info Version: 1.0 License: GNU GPL 2 */ add_action('plugins_loaded', 'wpse72696_login_language_init'); function wpse72696_login_language_init(){ if( in_array( $GLOBALS['pagenow'], array( 'wp-login.php', 'wp-register.php' ) ) ){ add_filter('locale', 'wpse72692_login_language',10); } } function wpse72692_login_language( $locale ){ return 'en_US'; }
Q: How do I change the language of only the login page? My wordpress blog is set up as de_DE. This means that my login page is also displayed in de_DE. I would like to only have the login page in en_US. So, How would I programmatically change a single page's language? Note: I have WPML but I don't wish to use it, I only want to change one page on the whole site. A: This will need to go in a plug-in, just put the following inside a file (login-languge.php) in wp-content/plugins/ /* Plugin Name: Log-in Language Plugin URI: http://wordpress.stackexchange.com/questions/72692/how-do-i-change-the-language-of-only-the-login-page Description: Changes the language for log-in/register screens only Author: Stephen Harris Author URI: http://stephenharris.info Version: 1.0 License: GNU GPL 2 */ add_action('plugins_loaded', 'wpse72696_login_language_init'); function wpse72696_login_language_init(){ if( in_array( $GLOBALS['pagenow'], array( 'wp-login.php', 'wp-register.php' ) ) ){ add_filter('locale', 'wpse72692_login_language',10); } } function wpse72692_login_language( $locale ){ return 'en_US'; } A: You can repalce define( 'WPLANG', 'de_DE'); in your wp-config.php by this code structuer. if (basename(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)) == 'wp-login.php'){ define( 'WPLANG', 'en_US'); } else { define( 'WPLANG', 'de_DE'); } A: Another way you can do this in your functions.php using unload_textdomain($domain) add_action('init', 'remove_login_translation'); function remove_login_translation() { if( in_array( $GLOBALS['pagenow'], array( 'wp-login.php', 'wp-register.php' ) ) ) { unload_textdomain('default'); } }
wordpress
{ "language": "en", "length": 205, "provenance": "stackexchange_00019.jsonl.gz:425833", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72692" }
[ -0.00037360191345214844, -0.0258941650390625, -0.0243988037109375, 0.005035400390625, -0.01983642578125, -0.03045654296875, 0.037933349609375, -0.00260162353515625, 0.0083160400390625, -0.005035400390625, 0.00852203369140625, -0.0186004638671875, -0.019561767578125, -0.036529541015625, 0.017364501953125, -0.0215911865234375, 0.025421142578125, 0.01800537109375, 0.04730224609375, -0.01226806640625, 0.0027008056640625, -0.00710296630859375, 0.04010009765625, -0.00970458984375, 0.018585205078125, -0.0484619140625, 0.09002685546875, -0.040802001953125, 0.02484130859375, -0.012451171875, 0.02886962890625, -0.016693115234375, 0.0288238525390625, 0.003841400146484375, -0.024749755859375, -0.061492919921875, -0.0119781494140625, -0.010223388671875, -0.03399658203125, 0.0238800048828125, 0.041748046875, -0.0236663818359375, -0.0263671875, 0.05157470703125, -0.027313232421875, -0.037628173828125, 0.0289764404296875, -0.01806640625, 0.011077880859375, -0.0271148681640625, 0.0157928466796875, 0.005146026611328125, 0.0218505859375, -0.0211334228515625, -0.0095062255859375, 0.0215911865234375, -0.053009033203125, 0.0347900390625, 0.01073455810546875, 0.037933349609375, 0.01018524169921875, -0.0031833648681640625, -0.0018339157104492188, -0.016632080078125, -0.0195159912109375, 0.0159149169921875, -0.022796630859375, -0.0011425018310546875, -0.0161590576171875, -0.01511383056640625, 0.0124969482421875, -0.033966064453125, 0.01092529296875, -0.03167724609375, -0.0234222412109375, 0.035675048828125, -0.03839111328125, -0.024993896484375, 0.042999267578125, -0.03485107421875, 0.0194091796875, -0.015380859375, -0.0078125, -0.053558349609375, 0.039642333984375, 0.000056803226470947266, -0.0157928466796875, -0.01470947265625, -0.061737060546875, -0.0335693359375, -0.036224365234375, 0.003997802734375, -0.0972900390625, -0.00791168212890625, 0.0026226043701171875, -0.01282501220703125, -0.0148773193359375, 0.022369384765625, -0.00023305416107177734, -0.0059051513671875, -0.01241302490234375, -0.02618408203125, -0.017425537109375, -0.0155487060546875, 0.006988525390625, 0.0158843994140625, -0.0023326873779296875, 0.035736083984375, 0.040313720703125, 0.01953125, 0.01213836669921875, 0.0170135498046875, -0.042572021484375, -0.0277099609375, -0.015106201171875, 0.0626220703125, -0.0223388671875, -0.01555633544921875, 0.0043792724609375, 0.019989013671875, -0.029266357421875, -0.0064239501953125, 0.0220794677734375, -0.0240020751953125, -0.007656097412109375, -0.04327392578125, -0.0188751220703125, -0.002613067626953125, -0.001766204833984375, 0.0229034423828125, -0.045135498046875, 0.006832122802734375, 0.045989990234375, 0.0220947265625, -0.00337982177734375, -0.012542724609375, 0.032073974609375, 0.0046539306640625, 0.00604248046875, 0.01849365234375, -0.0078582763671875, -0.032623291015625, -0.0016183853149414062, 0.0117340087890625, -0.024322509765625, 0.00125885009765625, 0.00820159912109375, 0.040130615234375, 0.001575469970703125, -0.02691650390625, 0.0243682861328125, -0.010772705078125, -0.0219879150390625, 0.0196990966796875, 0.01056671142578125, 0.0259246826171875, 0.021942138671875, -0.003910064697265625, -0.0127716064453125, -0.007282257080078125, 0.01168060302734375, -0.0302734375, -0.024200439453125, 0.0080108642578125, -0.01171112060546875, 0.01488494873046875, -0.003131866455078125, 0.0096282958984375, 0.0189666748046875, -0.0192108154296875, 0.060638427734375, 0.00711822509765625, 0.0048370361328125, 0.00487518310546875, 0.016815185546875, -0.001918792724609375, -0.07293701171875, 0.04754638671875, 0.028839111328125, -0.00786590576171875, 0.034759521484375, -0.0214996337890625, 0.045379638671875, 0.047332763671875, -0.036895751953125, 0.00043845176696777344, 0.035858154296875, 0.040496826171875, 0.005290985107421875, 0.0201873779296875, 0.0362548828125, 0.01438140869140625, -0.03466796875, 0.00867462158203125, -0.00839996337890625, -0.01506805419921875, 0.00229644775390625, 0.0015020370483398438, 0.0007700920104980469, 0.0007009506225585938, 0.05908203125, -0.02276611328125, 0.0246124267578125, 0.00844573974609375, -0.0340576171875, 0.01513671875, -0.01995849609375, 0.005615234375, 0.0052947998046875, -0.0184173583984375, 0.01232147216796875, 0.00283050537109375, -0.0006241798400878906, -0.06610107421875, -0.062042236328125, 0.0305023193359375, -0.01103973388671875, 0.050384521484375, 0.003887176513671875, 0.0303497314453125, 0.028411865234375, -0.07049560546875, 0.0190582275390625, -0.00852203369140625, 0.0289459228515625, -0.01055908203125, -0.01280975341796875, -0.0204620361328125, 0.055450439453125, -0.03125, 0.03271484375, 0.0638427734375, -0.035980224609375, 0.00310516357421875, -0.027252197265625, -0.01085662841796875, -0.022491455078125, -0.0210723876953125, 0.01081085205078125, 0.03607177734375, 0.049468994140625, -0.0016660690307617188, 0.002384185791015625, 0.00341033935546875, 0.03399658203125, -0.01198577880859375, 0.029754638671875, -0.0115814208984375, 0.0238037109375, 0.06036376953125, -0.02740478515625, 0.01293182373046875, 0.00951385498046875, -0.007686614990234375, 0.00420379638671875, 0.0404052734375, -0.030059814453125, -0.0604248046875, 0.007587432861328125, 0.0079498291015625, 0.0031642913818359375, -0.057403564453125, -0.037017822265625, -0.0143280029296875, -0.005558013916015625, -0.041107177734375, -0.02154541015625, -0.032257080078125, -0.01313018798828125, -0.01522064208984375, 0.040802001953125, -0.045867919921875, 0.006313323974609375, 0.00417327880859375, -0.07086181640625, 0.006134033203125, -0.042236328125, 0.031585693359375, 0.001972198486328125, -0.0166015625, -0.00913238525390625, 0.041534423828125, -0.0171051025390625, -0.0261993408203125, 0.0084075927734375, -0.046844482421875, -0.02825927734375, -0.022125244140625, -0.0026988983154296875, -0.0274505615234375, 0.0268707275390625, -0.027801513671875, -0.045166015625, 0.01861572265625, 0.015380859375, -0.049346923828125, 0.05523681640625, -0.0261688232421875, 0.029266357421875, -0.03143310546875, 0.03997802734375, 0.040740966796875, -0.0059356689453125, -0.01325225830078125, 0.001010894775390625, -0.0380859375, -0.006824493408203125, -0.00197601318359375, -0.00948333740234375, 0.0010509490966796875, -0.039764404296875, 0.0546875, -0.00818634033203125, -0.040191650390625, -0.031585693359375, -0.040771484375, -0.04248046875, -0.034423828125, -0.0855712890625, -0.026519775390625, -0.050201416015625, -0.056121826171875, 0.046539306640625, -0.0019092559814453125, -0.01497650146484375, -0.01471710205078125, 0.01422882080078125, 0.0220947265625, 0.03607177734375, -0.0182037353515625, -0.0243072509765625, -0.002285003662109375, -0.02392578125, -0.0186614990234375, 0.00010925531387329102, -0.0194091796875, 0.0045623779296875, 0.0304107666015625, 0.015289306640625, -0.03717041015625, 0.0036640167236328125, 0.08038330078125, -0.024322509765625, -0.0194244384765625, -0.03204345703125, -0.05181884765625, 0.032745361328125, -0.01641845703125, -0.005596160888671875, -0.01409912109375, 0.048370361328125, -0.006565093994140625, -0.00152587890625, -0.01885986328125, 0.01934814453125, -0.058746337890625, -0.0096282958984375, 0.0061798095703125, -0.0276336669921875, -0.049224853515625, -0.03564453125, 0.01270294189453125, -0.04571533203125, 0.0357666015625, 0.03155517578125, -0.029266357421875, 0.0269927978515625, -0.00984954833984375, -0.0264892578125, -0.0021839141845703125, 0.020355224609375, -0.03485107421875, 0.0245513916015625, -0.01148223876953125, -0.047698974609375, -0.0037136077880859375, 0.048980712890625, -0.0168609619140625, -0.0253143310546875, 0.021728515625, -0.0025768280029296875, 0.015594482421875, -0.028106689453125, 0.01149749755859375, -0.027984619140625, 0.036834716796875, -0.02728271484375, -0.00725555419921875, -0.0015993118286132812, -0.02239990234375, 0.00614166259765625, 0.07257080078125, -0.035980224609375, 0.006626129150390625, 0.02191162109375, 0.01409149169921875, -0.022979736328125, -0.051483154296875, -0.07232666015625, -0.0194549560546875, -0.051605224609375, -0.0029430389404296875, -0.0259246826171875, 0.00913238525390625, -0.0063323974609375, -0.01183319091796875, 0.002384185791015625, -0.05584716796875, 0.027923583984375, 0.03485107421875, -0.008819580078125, 0.004383087158203125, -0.0140838623046875, -0.000016689300537109375, -0.0152740478515625, 0.016326904296875, -0.10467529296875, -0.0167999267578125, -0.025054931640625, 0.08074951171875, 0.0124053955078125, -0.046844482421875, -0.041412353515625, 0.03173828125, -0.0115203857421875, 0.0168304443359375, 0.002033233642578125, 0.0198211669921875, 0.0202484130859375, 0.0139312744140625, -0.00983428955078125, 0.0030612945556640625, -0.00563812255859375, 0.017425537109375, -0.019195556640625, 0.046142578125, -0.00905609130859375, -0.0110321044921875, 0.0246734619140625, -0.04010009765625, -0.062347412109375, -0.0116119384765625, 0.0066070556640625, 0.0118560791015625, 0.0042724609375, 0.01059722900390625, -0.022857666015625, -0.049285888671875, 0.072265625, 0.01885986328125, -0.0131378173828125, -0.003925323486328125, 0.07012939453125, 0.00018799304962158203, -0.0447998046875, -0.08660888671875, 0.0246124267578125, 0.021728515625, 0.0075836181640625, 0.0750732421875, 0.0187225341796875, -0.026275634765625, 0.11041259765625, 0.006195068359375, 0.0019321441650390625, 0.006519317626953125, 0.02679443359375, 0.006069183349609375, -0.039581298828125, 0.034149169921875, -0.0116424560546875, -0.039764404296875, -0.0016937255859375, 0.02386474609375, -0.0168914794921875, 0.03106689453125, -0.007320404052734375, 0.00391387939453125, -0.01061248779296875, 0.01482391357421875, -0.07611083984375, 0.0235748291015625, 0.028076171875, -0.05291748046875, -0.01503753662109375, -0.0022125244140625, -0.0031642913818359375, 0.00551605224609375, -0.03497314453125, 0.057373046875, 0.0182952880859375, 0.044647216796875, 0.0030078887939453125, 0.046783447265625, -0.01373291015625, -0.00193023681640625, -0.0196533203125, 0.057373046875, 0.006595611572265625, -0.0528564453125, 0.036041259765625, -0.01047515869140625, 0.04388427734375, 0.041046142578125, -0.00299072265625, 0.0238494873046875, -0.030242919921875, -0.0088043212890625, 0.0007939338684082031, -0.004344940185546875, -0.041961669921875, -0.044525146484375, 0.007747650146484375, -0.0047607421875, -0.0030117034912109375, -0.0103759765625, 0.043670654296875, -0.0230255126953125, 0.0248870849609375, 0.002521514892578125, -0.0156097412109375, 0.02020263671875, 0.04254150390625, 0.0250396728515625, -0.035430908203125, 0.007465362548828125, 0.00335693359375, 0.03082275390625, -0.003116607666015625, 0.0001461505889892578, 0.03125, 0.036529541015625, 0.0024509429931640625, 0.00995635986328125, -0.02935791015625, -0.022003173828125, 0.0221710205078125, 0.046051025390625, -0.01070404052734375, -0.0777587890625, -0.0049591064453125, 0.040069580078125, 0.03790283203125, -0.0789794921875, 0.01947021484375, -0.050323486328125, -0.0159759521484375, -0.034423828125, 0.04534912109375, -0.04559326171875, -0.005702972412109375, -0.0074920654296875, -0.045928955078125, -0.032501220703125, -0.01543426513671875, -0.05499267578125, -0.0018825531005859375, 0.0007596015930175781, 0.006526947021484375, -0.0196990966796875, -0.0188446044921875, 0.0260162353515625, -0.00565338134765625, -0.020843505859375, 0.044219970703125, 0.01259613037109375, 0.024688720703125, -0.0279541015625, -0.022705078125, 0.005626678466796875, -0.0165557861328125, -0.0263214111328125, -0.028289794921875, -0.021697998046875, -0.062164306640625, -0.00969696044921875, 0.007568359375, 0.0218658447265625, -0.027374267578125, 0.0003464221954345703, -0.00621795654296875, 0.0229339599609375, 0.001361846923828125, 0.053436279296875, -0.017547607421875, 0.09210205078125, 0.0019130706787109375, -0.0093231201171875, 0.0226287841796875, 0.0863037109375, 0.0153961181640625, 0.003139495849609375, -0.005771636962890625, -0.007602691650390625, 0.00667572021484375, -0.0115814208984375, -0.01739501953125, -0.0218658447265625, 0.048431396484375, 0.004425048828125, -0.00418853759765625, 0.002105712890625, 0.007022857666015625, -0.019256591796875, 0.0129241943359375, -0.0014657974243164062, 0.013153076171875, 0.008026123046875, -0.0092315673828125, 0.039337158203125, -0.0175628662109375, 0.0369873046875, -0.00004082918167114258, -0.033233642578125, 0.0197296142578125, 0.012969970703125, -0.007171630859375, 0.00920867919921875, 0.0272216796875, 0.026397705078125, 0.04248046875, 0.0028476715087890625, 0.0219573974609375, -0.00424957275390625, -0.03369140625, -0.0017747879028320312, 0.050018310546875, 0.00598907470703125, -0.0301055908203125, 0.00870513916015625, -0.0156707763671875, -0.007556915283203125, 0.0182647705078125, 0.09100341796875, 0.06280517578125, -0.1524658203125, 0.0081634521484375, 0.01082611083984375, 0.0212249755859375, 0.032073974609375, 0.03265380859375, -0.04071044921875, -0.019775390625, 0.0222930908203125, -0.07830810546875, -0.021942138671875, 0.0113372802734375, 0.009307861328125, -0.0180206298828125, 0.00936126708984375, 0.034088134765625, 0.04949951171875, -0.01080322265625, 0.0231170654296875, 0.0164031982421875, 0.041473388671875, -0.056427001953125, -0.013763427734375, 0.03863525390625, -0.0325927734375, -0.09857177734375, 0.0215606689453125, -0.002941131591796875, -0.006946563720703125, 0.01013946533203125, 0.006366729736328125, 0.02508544921875, 0.06060791015625, -0.02752685546875, -0.004154205322265625, -0.00360870361328125, 0.03759765625, -0.00769805908203125, -0.00815582275390625, 0.002635955810546875, 0.0185394287109375, -0.04156494140625, 0.007740020751953125, -0.036407470703125, 0.001377105712890625, -0.016021728515625, -0.062286376953125, 0.05584716796875, 0.0253753662109375, -0.025054931640625, -0.004680633544921875, 0.0114898681640625, 0.014678955078125, -0.0209503173828125, -0.0028705596923828125, -0.05352783203125, -0.04254150390625, -0.01009368896484375, -0.066650390625, -0.0236663818359375, -0.0325927734375, -0.0653076171875, 0.07940673828125, -0.0102081298828125, 0.03570556640625, -0.0063323974609375, 0.0225372314453125, -0.0123443603515625, 0.0029697418212890625, -0.019683837890625, 0.033782958984375, 0.035186767578125, 0.0130767822265625, 0.01052093505859375, 0.0159759521484375, 0.0211944580078125, 0.006107330322265625, 0.029693603515625, 0.0128326416015625, -0.002490997314453125, -0.039764404296875, -0.038421630859375, 0.00569915771484375, -0.024688720703125, 0.0272979736328125, -0.0197601318359375, 0.05194091796875, 0.0091552734375, -0.0711669921875, 0.0175323486328125, -0.005794525146484375, -0.04296875, 0.007335662841796875, -0.004974365234375, -0.040069580078125, 0.02215576171875, 0.01401519775390625, -0.079345703125, 0.020050048828125, 0.0253448486328125, 0.03399658203125, 0.025390625, 0.034698486328125, 0.007740020751953125, 0.017791748046875, 0.01229095458984375, -0.0300445556640625, 0.040802001953125, -0.029937744140625, 0.0149993896484375, 0.0182342529296875, 0.01396942138671875, 0.036651611328125, -0.0147552490234375, 0.0009074211120605469, 0.00949859619140625, -0.008819580078125, 0.04595947265625, 0.021759033203125, 0.01523590087890625, -0.0102996826171875, 0.09375, 0.0037078857421875, 0.030670166015625, -0.0626220703125, -0.0335693359375, 0.015411376953125, 0.0131378173828125, 0.0084228515625, 0.010986328125, 0.037567138671875, -0.0192413330078125, 0.0183563232421875, 0.027984619140625, -0.0031032562255859375, 0.0138702392578125, -0.002666473388671875, 0.017333984375, 0.042510986328125, -0.01507568359375, 0.02593994140625, -0.03289794921875, 0.0272674560546875, 0.0200042724609375, 0.0266571044921875, -0.00235748291015625, 0.0296478271484375, 0.0142669677734375, -0.00027179718017578125, -0.0396728515625, 0.035491943359375, -0.0122222900390625, 0.0244140625, -0.046783447265625, -0.0180206298828125, -0.0305328369140625, 0.0355224609375, 0.03094482421875, -0.04046630859375, 0.057952880859375, 0.05780029296875, -0.04937744140625, -0.0266265869140625, 0.022125244140625, -0.001922607421875, -0.00754547119140625, -0.0152435302734375, 0.013153076171875, 0.0208587646484375, -0.0007739067077636719, -0.0017147064208984375, 0.063232421875, -0.0063323974609375, -0.01100921630859375, 0.0192718505859375, 0.0010881423950195312, -0.04345703125, 0.01067352294921875, 0.00812530517578125, 0.08514404296875, 0.024078369140625, -0.07196044921875, -0.01556396484375, -0.039154052734375, -0.048583984375, 0.050201416015625, 0.046295166015625, -0.0089263916015625, 0.023834228515625, 0.027496337890625, 0.0006175041198730469, -0.01311492919921875, -0.01983642578125, 0.0225982666015625, -0.050201416015625, 0.01520538330078125, -0.00864410400390625, -0.0897216796875, -0.05340576171875, -0.06005859375, 0.038726806640625, 0.028076171875, 0.039031982421875, 0.01763916015625, 0.036224365234375, -0.0299835205078125, 0.01444244384765625, -0.00662994384765625, -0.022247314453125, 0.007354736328125, 0.02520751953125, 0.0168914794921875, -0.018280029296875, -0.048095703125, 0.041900634765625, -0.0009284019470214844, 0.007568359375, 0.053985595703125, -0.046356201171875, 0.0052337646484375, -0.01155853271484375, 0.0175323486328125, -0.0280303955078125, -0.0478515625, -0.0251312255859375, 0.0286407470703125, 0.008453369140625, 0.00634002685546875, -0.039276123046875, 0.0374755859375, -0.057952880859375, -0.0343017578125, 0.00969696044921875, -0.039581298828125, -0.046417236328125, 0.01168060302734375, 0.003536224365234375, 0.0384521484375, -0.006366729736328125, -0.0322265625, -0.006992340087890625, 0.01849365234375, -0.025482177734375, -0.009674072265625, 0.019317626953125, -0.0170135498046875, 0.0310516357421875, 0.022674560546875, 0.0040740966796875, 0.01026153564453125, 0.0094451904296875, -0.031341552734375, 0.006290435791015625, -0.0125732421875, -0.0204315185546875, -0.00620269775390625, -0.02288818359375, -0.0186920166015625, 0.0169219970703125, -0.0811767578125, 0.021392822265625, 0.0288543701171875, -0.01120758056640625, -0.031890869140625, -0.01490020751953125, -0.00988006591796875, -0.03265380859375, 0.061553955078125, -0.048675537109375, -0.032012939453125, 0.0302734375, 0.05389404296875, -0.05322265625, -0.0157470703125, -0.0276641845703125, -0.0384521484375, -0.03900146484375, -0.0230865478515625, 0.01003265380859375, 0.017730712890625, -0.00232696533203125, -0.0030670166015625, -0.035491943359375, 0.034912109375, -0.0654296875, -0.02313232421875, 0.0213470458984375, -0.00562286376953125, -0.005157470703125, -0.08056640625, 0.0107269287109375, -0.086669921875, 0.014617919921875, 0.0218963623046875, -0.0165252685546875, 0.00612640380859375, -0.0538330078125, -0.11444091796875, 0.059783935546875, -0.01259613037109375, -0.046600341796875, -0.044677734375, 0.065673828125, 0.0041961669921875, -0.032806396484375, -0.0199432373046875, -0.026031494140625, 0.00909423828125, 0.006801605224609375, 0.033935546875, 0.04248046875, -0.0001399517059326172, 0.0413818359375, -0.0030231475830078125, 0.047943115234375, 0.044281005859375, 0.0108795166015625, 0.0105743408203125, 0.0101165771484375, 0.0017480850219726562, 0.0166778564453125, -0.0438232421875, 0.003665924072265625, -0.01727294921875, 0.003429412841796875, 0.001300811767578125, -0.07550048828125, 0.0207061767578125, -0.025634765625, 0.059661865234375, -0.032257080078125, -0.0019073486328125, -0.0033664703369140625, -0.0152587890625, -0.0032901763916015625, -0.00696563720703125, -0.00579071044921875, 0.01543426513671875, -0.036285400390625, -0.0018482208251953125, -0.00817108154296875, 0.01189422607421875, -0.0343017578125, 0.0223541259765625, -0.0176544189453125, -0.03594970703125, 0.007740020751953125, 0.0028667449951171875, -0.0089263916015625, -0.0228271484375, 0.06451416015625, -0.029052734375, 0.01189422607421875, 0.00213623046875, 0.01177978515625, 0.042510986328125, 0.04534912109375, -0.004856109619140625, -0.007022857666015625, -0.00897216796875, 0.0304412841796875, -0.0001208186149597168, -0.01459503173828125, -0.00867462158203125, -0.00928497314453125, -0.03704833984375, 0.0151519775390625, 0.01434326171875, 0.04852294921875, -0.022186279296875, -0.0202789306640625, 0.02972412109375, -0.0174713134765625, -0.0048828125, -0.01971435546875, -0.005645751953125, -0.0033855438232421875, -0.0200653076171875, -0.00414276123046875, 0.004665374755859375, -0.0274658203125, 0.0167083740234375, -0.0129241943359375, 0.01580810546875, -0.0229339599609375, 0.02703857421875, -0.03363037109375, -0.010650634765625, 0.0162353515625 ]
37a0daaa0d4fcefcd33ecd753aef7a161626372a
Wordpress Stackexchange Q: Is there any debug toolbar that shows whick hooks are called for the current page in Wordpress? In Django there is a debug toolbar that shows which template files and hooks are called while rendering a page. Is there any plugin that shows which hooks are called for the current page in Wordpress? A: There sure is, I talk about some of those options in this Q&A here: Is there a flowchart for wordpress loading sequence? Here is a very brief summary of what was said, Want to see what actions get fired during a request? Take a look at this plugin by Toscho Want to see what's hooked and where with what priority? Take a look at this plugin by Rarst And there's also this plugin by Kaiser (Displays info about the current admin screen and its globals, contextual hooks) There is also this plugin Debug Bar Action Hooks (requires Debugbar). By no means is this list exclusive...
Q: Is there any debug toolbar that shows whick hooks are called for the current page in Wordpress? In Django there is a debug toolbar that shows which template files and hooks are called while rendering a page. Is there any plugin that shows which hooks are called for the current page in Wordpress? A: There sure is, I talk about some of those options in this Q&A here: Is there a flowchart for wordpress loading sequence? Here is a very brief summary of what was said, Want to see what actions get fired during a request? Take a look at this plugin by Toscho Want to see what's hooked and where with what priority? Take a look at this plugin by Rarst And there's also this plugin by Kaiser (Displays info about the current admin screen and its globals, contextual hooks) There is also this plugin Debug Bar Action Hooks (requires Debugbar). By no means is this list exclusive... A: There is also this plug-in: https://github.com/stephenh1988/sh-hook-debug Built by myself and based on my answer to this question: How can I find out what functions are assigned to actions?) It adds a search to the admin bar, and allows you to search through all hooks that were used. Clicking that hook, you are presented with a list of functions hooked onto it. If it was called more than once, it has the hooked functions for each instance (as this may vary between calls).
wordpress
{ "language": "en", "length": 243, "provenance": "stackexchange_00019.jsonl.gz:425839", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72706" }
[ 0.00844573974609375, 0.027801513671875, -0.043670654296875, -0.014434814453125, 0.0014476776123046875, -0.0242156982421875, -0.0022487640380859375, -0.0216064453125, -0.0007643699645996094, 0.016204833984375, 0.004825592041015625, 0.0032367706298828125, 0.018951416015625, -0.027801513671875, 0.0284881591796875, 0.004322052001953125, 0.04730224609375, -0.01512908935546875, 0.06842041015625, -0.00031280517578125, -0.01220703125, 0.0271759033203125, 0.040313720703125, 0.07928466796875, 0.0011968612670898438, -0.035003662109375, 0.087890625, -0.0009732246398925781, 0.023590087890625, -0.01137542724609375, 0.020172119140625, -0.0214691162109375, 0.0295562744140625, 0.0296478271484375, -0.04449462890625, 0.018402099609375, -0.0226898193359375, 0.0189208984375, 0.0033702850341796875, 0.015167236328125, 0.046295166015625, -0.0085906982421875, 0.0161590576171875, 0.020355224609375, -0.013153076171875, -0.0496826171875, 0.06280517578125, -0.03021240234375, 0.0022125244140625, -0.0169525146484375, 0.01026153564453125, 0.022369384765625, 0.01198577880859375, 0.032989501953125, -0.0233154296875, -0.00768280029296875, -0.059112548828125, 0.004772186279296875, 0.0227813720703125, 0.061370849609375, 0.0299530029296875, -0.0267181396484375, -0.0009250640869140625, -0.052215576171875, -0.017608642578125, 0.01071929931640625, -0.0270538330078125, 0.0036334991455078125, 0.00992584228515625, -0.007572174072265625, -0.007167816162109375, -0.0302276611328125, -0.0189056396484375, 0.00624847412109375, 0.0097198486328125, -0.04559326171875, 0.04156494140625, -0.0041351318359375, -0.025970458984375, 0.05291748046875, 0.021331787109375, -0.035003662109375, -0.0152435302734375, 0.0265655517578125, -0.02911376953125, 0.0290679931640625, 0.0006732940673828125, -0.007289886474609375, -0.04571533203125, -0.00679779052734375, -0.04052734375, 0.0085601806640625, -0.0257415771484375, 0.0010395050048828125, -0.0289154052734375, 0.015045166015625, 0.00896453857421875, -0.0010089874267578125, -0.002033233642578125, -0.036834716796875, -0.01334381103515625, -0.0253143310546875, -0.036590576171875, 0.01367950439453125, -0.01142120361328125, 0.06072998046875, 0.034942626953125, 0.03594970703125, 0.0155487060546875, -0.00531005859375, 0.003253936767578125, -0.0167388916015625, -0.0038471221923828125, -0.016876220703125, -0.0109710693359375, 0.00962066650390625, -0.028228759765625, 0.01102447509765625, 0.0099029541015625, 0.0038051605224609375, 0.0014896392822265625, 0.0083465576171875, 0.036773681640625, 0.01336669921875, 0.01155853271484375, 0.015045166015625, -0.022705078125, -0.053558349609375, 0.008636474609375, -0.0172271728515625, 0.006145477294921875, 0.0291748046875, 0.030517578125, 0.0105133056640625, -0.01309967041015625, -0.0050506591796875, 0.005237579345703125, -0.024688720703125, 0.0050201416015625, 0.00395965576171875, -0.042022705078125, -0.03228759765625, 0.019866943359375, -0.044158935546875, 0.03424072265625, -0.04510498046875, -0.01000213623046875, 0.057220458984375, 0.04376220703125, 0.0560302734375, 0.02423095703125, -0.0078887939453125, 0.027862548828125, 0.00577545166015625, 0.030364990234375, 0.00208282470703125, 0.052520751953125, -0.016448974609375, -0.0205230712890625, -0.01227569580078125, -0.02569580078125, -0.0205230712890625, -0.01177215576171875, -0.07318115234375, -0.07476806640625, 0.022216796875, 0.003803253173828125, 0.0024700164794921875, 0.034210205078125, 0.0285186767578125, 0.0321044921875, -0.01210784912109375, 0.048797607421875, -0.0025310516357421875, -0.0241851806640625, -0.006336212158203125, -0.0281982421875, -0.00960540771484375, 0.062744140625, -0.0008025169372558594, -0.0180511474609375, -0.008087158203125, 0.0682373046875, -0.009429931640625, -0.034149169921875, 0.038116455078125, 0.018798828125, 0.055450439453125, -0.00836181640625, 0.01641845703125, 0.032073974609375, 0.023529052734375, -0.03558349609375, 0.0576171875, -0.0010929107666015625, -0.004642486572265625, -0.0364990234375, 0.024749755859375, -0.028717041015625, -0.046142578125, -0.005954742431640625, 0.0020351409912109375, -0.01032257080078125, 0.002044677734375, -0.07122802734375, 0.00618743896484375, -0.025390625, 0.051544189453125, 0.029815673828125, -0.0250244140625, 0.0013780593872070312, -0.003749847412109375, -0.0261688232421875, 0.003055572509765625, -0.054595947265625, 0.03839111328125, -0.034149169921875, 0.023651123046875, -0.0016851425170898438, 0.0018758773803710938, 0.005283355712890625, -0.01641845703125, -0.002838134765625, -0.016815185546875, 0.031158447265625, 0.0101165771484375, -0.0201568603515625, -0.005741119384765625, 0.0014495849609375, 0.033355712890625, -0.054351806640625, 0.01143646240234375, -0.03607177734375, 0.05389404296875, -0.02337646484375, -0.042266845703125, -0.031036376953125, -0.042083740234375, 0.0411376953125, 0.045013427734375, 0.031341552734375, 0.037017822265625, 0.00995635986328125, 0.0113677978515625, 0.0019550323486328125, -0.0653076171875, 0.0187835693359375, -0.006465911865234375, 0.0169677734375, 0.06402587890625, -0.004611968994140625, -0.003063201904296875, -0.0177154541015625, -0.0215301513671875, 0.00678253173828125, 0.0099334716796875, -0.016845703125, -0.01715087890625, -0.0156402587890625, -0.0137786865234375, 0.012725830078125, -0.022430419921875, -0.0211639404296875, -0.01097869873046875, 0.00905609130859375, -0.045745849609375, -0.002689361572265625, -0.002880096435546875, 0.00965118408203125, -0.0289459228515625, 0.024200439453125, -0.0340576171875, -0.027130126953125, 0.0015134811401367188, 0.053466796875, -0.0031986236572265625, -0.0306396484375, 0.0045013427734375, -0.0114898681640625, 0.002048492431640625, -0.039337158203125, 0.001605987548828125, -0.0265655517578125, -0.01580810546875, -0.0174407958984375, -0.041107177734375, 0.01396942138671875, -0.0199737548828125, 0.04949951171875, 0.035919189453125, 0.017181396484375, 0.049835205078125, -0.00208282470703125, 0.07269287109375, 0.003604888916015625, 0.013458251953125, 0.061431884765625, -0.0006508827209472656, 0.032440185546875, -0.006198883056640625, 0.0257110595703125, 0.044708251953125, -0.033294677734375, 0.0229949951171875, -0.0005488395690917969, 0.0097808837890625, -0.0009908676147460938, -0.0215301513671875, -0.0210418701171875, 0.0159454345703125, -0.06121826171875, 0.035491943359375, 0.0103607177734375, 0.042236328125, -0.0384521484375, -0.053070068359375, -0.0295867919921875, -0.002346038818359375, -0.07489013671875, -0.05413818359375, -0.050537109375, -0.046875, 0.01708984375, -0.004039764404296875, 0.0007495880126953125, 0.0024776458740234375, 0.02655029296875, 0.012359619140625, -0.08001708984375, -0.039886474609375, -0.019805908203125, -0.09149169921875, -0.036285400390625, 0.03411865234375, 0.0135650634765625, 0.0031681060791015625, 0.003131866455078125, 0.058502197265625, -0.006500244140625, -0.06658935546875, -0.0283050537109375, -0.031982421875, -0.0278167724609375, -0.0261383056640625, -0.005191802978515625, 0.00362396240234375, 0.0006456375122070312, 0.0167694091796875, -0.04437255859375, 0.006473541259765625, 0.0150909423828125, -0.02728271484375, -0.020172119140625, -0.0302581787109375, -0.0163726806640625, 0.0325927734375, 0.037139892578125, -0.026611328125, -0.00141143798828125, -0.06201171875, -0.0139007568359375, 0.01389312744140625, -0.054107666015625, -0.01143646240234375, 0.01061248779296875, -0.03228759765625, 0.0206451416015625, -0.035308837890625, 0.053192138671875, 0.01140594482421875, -0.007415771484375, 0.024169921875, 0.0303192138671875, -0.0145721435546875, 0.007450103759765625, -0.0299530029296875, 0.0294036865234375, -0.01078033447265625, 0.024871826171875, 0.005550384521484375, 0.01141357421875, 0.0012769699096679688, 0.029998779296875, 0.01050567626953125, 0.0200653076171875, 0.023681640625, 0.01474761962890625, 0.0294647216796875, 0.0100555419921875, -0.025482177734375, 0.00579071044921875, 0.056671142578125, -0.00775146484375, 0.00550079345703125, -0.00748443603515625, 0.004405975341796875, -0.0195465087890625, -0.0352783203125, -0.07183837890625, -0.007678985595703125, -0.06488037109375, 0.0178985595703125, -0.0012578964233398438, -0.02923583984375, -0.0291748046875, 0.03228759765625, -0.061492919921875, -0.02716064453125, 0.0208282470703125, -0.0244140625, -0.00798797607421875, 0.004199981689453125, 0.004840850830078125, -0.04266357421875, 0.01107025146484375, -0.03228759765625, -0.090087890625, -0.006816864013671875, -0.055694580078125, 0.07318115234375, 0.050933837890625, -0.08074951171875, 0.003261566162109375, 0.041015625, 0.0210418701171875, 0.017242431640625, 0.034027099609375, -0.0016851425170898438, 0.038818359375, 0.0163421630859375, 0.036407470703125, -0.018402099609375, -0.01546478271484375, -0.0022563934326171875, -0.023223876953125, -0.01471710205078125, -0.0137786865234375, -0.0244140625, 0.0202178955078125, -0.0278778076171875, -0.052886962890625, -0.031463623046875, -0.0094451904296875, -0.0014095306396484375, 0.0238800048828125, -0.0170135498046875, -0.016448974609375, -0.05450439453125, 0.0237884521484375, -0.01318359375, 0.002155303955078125, 0.004711151123046875, 0.07183837890625, 0.026641845703125, 0.00690460205078125, -0.0023593902587890625, -0.0228118896484375, 0.0301055908203125, -0.0039005279541015625, 0.051177978515625, 0.0183868408203125, -0.007488250732421875, 0.03912353515625, -0.0015707015991210938, 0.039398193359375, -0.0438232421875, 0.050262451171875, -0.0102386474609375, 0.00432586669921875, 0.0209503173828125, 0.00675201416015625, 0.0007920265197753906, 0.0276641845703125, -0.055511474609375, 0.017120361328125, -0.028594970703125, 0.01611328125, -0.06292724609375, 0.07208251953125, -0.0117034912109375, 0.03436279296875, -0.035491943359375, 0.035736083984375, 0.08197021484375, 0.05230712890625, -0.003704071044921875, 0.02020263671875, 0.0865478515625, -0.0310211181640625, 0.044586181640625, 0.03924560546875, 0.0182037353515625, 0.016021728515625, 0.0411376953125, -0.0175933837890625, -0.0240325927734375, -0.01441192626953125, 0.05035400390625, -0.0245208740234375, -0.100830078125, 0.0248870849609375, -0.0343017578125, 0.004741668701171875, 0.0460205078125, -0.002048492431640625, 0.0206298828125, 0.0263519287109375, -0.005619049072265625, 0.006343841552734375, 0.01070404052734375, 0.00647735595703125, -0.030517578125, 0.0149383544921875, -0.02191162109375, -0.012115478515625, 0.017364501953125, 0.02410888671875, -0.0236968994140625, 0.0243072509765625, 0.0023021697998046875, -0.02142333984375, -0.04931640625, 0.03167724609375, 0.0269012451171875, 0.004180908203125, 0.0067901611328125, -0.0011529922485351562, 0.033966064453125, -0.047607421875, -0.0007991790771484375, 0.0002856254577636719, 0.03204345703125, -0.046051025390625, -0.051910400390625, 0.0548095703125, -0.0175018310546875, -0.01169586181640625, 0.058197021484375, 0.0176239013671875, -0.049407958984375, -0.0255279541015625, -0.0024871826171875, 0.03338623046875, -0.0168304443359375, -0.0021877288818359375, 0.029510498046875, 0.0292205810546875, 0.036376953125, -0.0169219970703125, -0.0229949951171875, 0.01461029052734375, 0.0131072998046875, -0.056732177734375, -0.033538818359375, 0.04180908203125, -0.062744140625, -0.00994873046875, -0.0246124267578125, -0.01474761962890625, 0.0214691162109375, -0.01020050048828125, 0.05426025390625, -0.036468505859375, -0.0316162109375, 0.0116729736328125, 0.00917816162109375, 0.0406494140625, 0.017608642578125, -0.04425048828125, 0.003131866455078125, -0.047119140625, -0.03533935546875, -0.00511932373046875, -0.0135345458984375, -0.048919677734375, -0.015472412109375, 0.0006456375122070312, 0.028289794921875, -0.0010204315185546875, 0.0413818359375, -0.0015764236450195312, 0.034027099609375, -0.0223388671875, 0.08233642578125, -0.00907135009765625, 0.058685302734375, -0.03094482421875, 0.01473236083984375, -0.0038242340087890625, 0.03619384765625, 0.00931549072265625, -0.00971221923828125, 0.0206756591796875, 0.0308074951171875, -0.033355712890625, -0.0161895751953125, -0.01165771484375, -0.0025634765625, 0.07415771484375, -0.01180267333984375, -0.0203094482421875, -0.01120758056640625, 0.01003265380859375, -0.0209503173828125, 0.048248291015625, 0.0255584716796875, -0.0308837890625, 0.022003173828125, -0.01105499267578125, -0.049346923828125, -0.0310821533203125, -0.019378662109375, 0.021728515625, 0.01404571533203125, 0.003032684326171875, -0.0250091552734375, 0.0022945404052734375, 0.04718017578125, 0.06005859375, -0.0279693603515625, 0.047027587890625, 0.04541015625, 0.0122833251953125, 0.02490234375, 0.016845703125, 0.0450439453125, -0.0264434814453125, 0.0791015625, 0.02142333984375, -0.019622802734375, 0.057373046875, -0.0489501953125, 0.016876220703125, 0.027099609375, 0.037017822265625, -0.068603515625, 0.0274810791015625, 0.02655029296875, 0.007793426513671875, 0.0044708251953125, -0.041229248046875, 0.0052642822265625, -0.0311431884765625, 0.08642578125, 0.0210113525390625, -0.01377105712890625, 0.046905517578125, -0.0116424560546875, -0.01081085205078125, -0.0103912353515625, 0.0819091796875, 0.01424407958984375, -0.0369873046875, 0.01194000244140625, 0.01175689697265625, -0.01381683349609375, -0.024505615234375, -0.01552581787109375, 0.003101348876953125, -0.00811004638671875, -0.00283050537109375, 0.049652099609375, -0.0390625, 0.0445556640625, 0.022735595703125, 0.048095703125, 0.01416778564453125, 0.03729248046875, 0.0145721435546875, -0.0169525146484375, 0.0232391357421875, -0.032257080078125, -0.02264404296875, -0.00763702392578125, 0.0236968994140625, 0.0136260986328125, -0.07037353515625, 0.01290130615234375, -0.0576171875, 0.0222625732421875, 0.0167694091796875, 0.045867919921875, 0.06927490234375, -0.0435791015625, -0.0233001708984375, 0.0249176025390625, -0.0025196075439453125, 0.00907135009765625, -0.01012420654296875, -0.01482391357421875, -0.04559326171875, 0.006656646728515625, -0.00798797607421875, 0.0005855560302734375, -0.00183868408203125, -0.0118255615234375, -0.057769775390625, 0.060577392578125, 0.01434326171875, 0.0182037353515625, 0.0008487701416015625, 0.0172119140625, -0.0242462158203125, -0.00766754150390625, -0.04217529296875, 0.07745361328125, 0.01032257080078125, 0.06854248046875, -0.05950927734375, -0.0135345458984375, 0.02777099609375, 0.03631591796875, 0.004421234130859375, 0.00725555419921875, 0.01236724853515625, 0.00464630126953125, 0.01404571533203125, -0.0106201171875, -0.0224151611328125, 0.039520263671875, 0.00530242919921875, -0.01371002197265625, -0.005222320556640625, -0.0096282958984375, 0.041015625, -0.055023193359375, 0.004730224609375, 0.0238800048828125, 0.0081787109375, -0.0131072998046875, 0.0169830322265625, 0.01416015625, -0.0172119140625, 0.0194091796875, 0.005096435546875, 0.01473236083984375, 0.01959228515625, 0.0226287841796875, 0.0256195068359375, -0.0290679931640625, -0.00847625732421875, -0.020233154296875, 0.0462646484375, -0.014801025390625, -0.0004992485046386719, 0.021697998046875, 0.0276336669921875, -0.042144775390625, -0.0423583984375, -0.000461578369140625, 0.0208282470703125, -0.06512451171875, 0.044921875, 0.0156402587890625, 0.00907135009765625, -0.03460693359375, 0.0052032470703125, 0.027923583984375, 0.055511474609375, -0.04071044921875, -0.0635986328125, 0.00003427267074584961, -0.0240936279296875, 0.019287109375, 0.00901031494140625, 0.005466461181640625, -0.0307159423828125, 0.01678466796875, 0.0170745849609375, -0.052825927734375, -0.03424072265625, 0.06591796875, 0.00797271728515625, 0.00431060791015625, 0.003917694091796875, -0.07684326171875, 0.0035648345947265625, -0.0207977294921875, -0.00508880615234375, 0.022003173828125, 0.0002987384796142578, 0.02630615234375, -0.054840087890625, 0.01200103759765625, -0.01287841796875, 0.0141143798828125, -0.05078125, 0.04345703125, -0.0712890625, -0.04144287109375, -0.03753662109375, 0.0689697265625, 0.059844970703125, -0.0159454345703125, 0.0386962890625, 0.01702880859375, -0.0294952392578125, -0.0017528533935546875, 0.0293731689453125, -0.0000820159912109375, -0.0195159912109375, -0.04974365234375, -0.0009975433349609375, -0.0035762786865234375, -0.005580902099609375, 0.01259613037109375, -0.00653076171875, 0.018341064453125, -0.049102783203125, 0.03363037109375, -0.008453369140625, -0.017059326171875, 0.0748291015625, -0.039276123046875, 0.0298614501953125, -0.031341552734375, -0.08502197265625, -0.030120849609375, 0.0019969940185546875, -0.050140380859375, 0.006443023681640625, 0.047882080078125, -0.001140594482421875, -0.00556182861328125, 0.0201263427734375, 0.01467132568359375, -0.04888916015625, 0.00568389892578125, 0.0231475830078125, -0.0175323486328125, 0.023101806640625, 0.0205535888671875, -0.029754638671875, 0.01322174072265625, 0.00853729248046875, -0.01139068603515625, 0.0219879150390625, 0.062744140625, 0.003173828125, -0.0010814666748046875, 0.016143798828125, -0.0106658935546875, 0.00685882568359375, -0.00036454200744628906, 0.017486572265625, 0.0017423629760742188, -0.0007190704345703125, -0.010589599609375, -0.0382080078125, 0.039337158203125, 0.032562255859375, 0.0064849853515625, 0.0175628662109375, -0.0089569091796875, 0.01549530029296875, 0.005657196044921875, -0.00022399425506591797, -0.01230621337890625, -0.05157470703125, 0.0274658203125, 0.040496826171875, -0.022613525390625, 0.0252532958984375, 0.00524139404296875, 0.0119171142578125, -0.01800537109375, -0.0048675537109375, -0.0187225341796875, 0.01136016845703125, -0.04058837890625, 0.0163726806640625, -0.010009765625, 0.01236724853515625, 0.0205535888671875, -0.0110626220703125, 0.035919189453125, 0.002567291259765625, 0.0284881591796875, 0.01473236083984375, -0.0170440673828125, 0.016265869140625, -0.01035308837890625, 0.039398193359375, -0.0157470703125, 0.00982666015625, -0.0181732177734375, 0.032073974609375, 0.0080413818359375, -0.031341552734375, -0.043701171875, -0.028228759765625, -0.0110015869140625, 0.0257110595703125, -0.0248565673828125, -0.042449951171875, -0.0633544921875, -0.0123291015625, 0.02813720703125, 0.0027332305908203125, -0.0391845703125, 0.036041259765625, -0.0181121826171875, -0.01617431640625, 0.0172271728515625, 0.033050537109375, -0.0099334716796875, -0.0141754150390625, -0.040618896484375, -0.01078033447265625, -0.0071258544921875, 0.034088134765625, 0.0214996337890625, 0.00434112548828125, 0.0139617919921875, -0.01532745361328125, -0.03131103515625, 0.009002685546875, 0.004146575927734375, 0.059356689453125, 0.0312042236328125, -0.019195556640625, 0.0166473388671875, 0.037353515625, -0.0247802734375, -0.031890869140625, 0.0015506744384765625, 0.025787353515625, 0.0247650146484375, 0.00010293722152709961, -0.01232147216796875, 0.004802703857421875, -0.0543212890625, -0.08642578125, 0.054931640625, 0.0015630722045898438, -0.046173095703125, -0.031402587890625, 0.05169677734375, 0.0244293212890625, -0.0218048095703125, -0.01177215576171875, -0.0216827392578125, -0.0296173095703125, -0.0107421875, 0.0006122589111328125, 0.0035915374755859375, 0.025177001953125, -0.0159149169921875, -0.0391845703125, 0.01593017578125, 0.0297393798828125, -0.0004954338073730469, 0.00185394287109375, -0.015655517578125, 0.006710052490234375, 0.01532745361328125, -0.06005859375, -0.02044677734375, -0.00502777099609375, 0.03033447265625, -0.006389617919921875, -0.00830841064453125, -0.01171875, 0.0218505859375, 0.05889892578125, 0.047576904296875, 0.01178741455078125, -0.040069580078125, -0.0180206298828125, -0.0254364013671875, -0.031585693359375, -0.01413726806640625, 0.03326416015625, -0.07623291015625, 0.002147674560546875, 0.0190277099609375, -0.0007071495056152344, -0.0213775634765625, 0.00504302978515625, -0.0255126953125, -0.017059326171875, 0.005260467529296875, 0.0126800537109375, -0.0202484130859375, -0.01477813720703125, 0.054290771484375, -0.0310211181640625, 0.016265869140625, 0.0183868408203125, 0.0150909423828125, 0.03265380859375, 0.029541015625, 0.0204315185546875, 0.00994873046875, -0.047332763671875, 0.0192108154296875, 0.0008897781372070312, 0.0479736328125, -0.036651611328125, -0.02642822265625, 0.003055572509765625, 0.0090484619140625, -0.0184173583984375, 0.00439453125, 0.013397216796875, 0.0030078887939453125, -0.036102294921875, 0.1083984375, 0.01274871826171875, 0.053924560546875, 0.005153656005859375, 0.05126953125, -0.000850677490234375, -0.0343017578125, 0.01554107666015625, -0.060028076171875, -0.007343292236328125, 0.0303497314453125, 0.0218505859375, -0.055633544921875, 0.045562744140625, 0.073486328125, 0.037872314453125, 0.0303192138671875 ]
127594d17785e8af4af02913bcc7f3dcc40d54d3
Wordpress Stackexchange Q: Asian language multisite IDN subdomain Using an IDN internationalized domain name in Thai appears to work fine. However when using WP Multisite Subdomain network and trying to ADD SITE as a SUBDOMAIN - it is not accepting the Thai characters and generates error "Missing or invalid site address." I tried changing some setting in phpMyAdmin collation and wp-config.php but didn't really know what to do with that, and plugin intlWP which looked like it would do it, has not fixed the problem of using Thai as the subdomain site address. this isn't a translation issue, it's a URL and WP Admin interface issue I think. there has to be a way to have a WP multisite using Thai language subdomains... any suggestions welcome. thanks A: First of all, you dont need to edit core files. Check this plugin: http://wordpress.org/extend/plugins/wordpress-turkce/ This plugin letting "ŞşİıĞğÜüÖöÇç" (Turkish) characters in permalinks, usernames and blog names. You need to define those 2 variable for usernames and blog names: define( 'WPTURKCE_USER', true ); define( 'WPTURKCE_BLOG', true );
Q: Asian language multisite IDN subdomain Using an IDN internationalized domain name in Thai appears to work fine. However when using WP Multisite Subdomain network and trying to ADD SITE as a SUBDOMAIN - it is not accepting the Thai characters and generates error "Missing or invalid site address." I tried changing some setting in phpMyAdmin collation and wp-config.php but didn't really know what to do with that, and plugin intlWP which looked like it would do it, has not fixed the problem of using Thai as the subdomain site address. this isn't a translation issue, it's a URL and WP Admin interface issue I think. there has to be a way to have a WP multisite using Thai language subdomains... any suggestions welcome. thanks A: First of all, you dont need to edit core files. Check this plugin: http://wordpress.org/extend/plugins/wordpress-turkce/ This plugin letting "ŞşİıĞğÜüÖöÇç" (Turkish) characters in permalinks, usernames and blog names. You need to define those 2 variable for usernames and blog names: define( 'WPTURKCE_USER', true ); define( 'WPTURKCE_BLOG', true );
wordpress
{ "language": "en", "length": 172, "provenance": "stackexchange_00019.jsonl.gz:425842", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72717" }
[ 0.049713134765625, -0.0236968994140625, 0.014373779296875, -0.0158538818359375, -0.0310821533203125, -0.0301971435546875, 0.0150146484375, -0.02294921875, 0.00708770751953125, 0.0120849609375, -0.01348114013671875, -0.01446533203125, 0.0123443603515625, -0.0271759033203125, 0.00044465065002441406, -0.0183563232421875, 0.000667572021484375, -0.0144805908203125, -0.008056640625, -0.027496337890625, -0.00859832763671875, -0.00760650634765625, 0.0084228515625, -0.0552978515625, 0.01432037353515625, -0.04833984375, 0.043609619140625, -0.006443023681640625, -0.007228851318359375, -0.0225067138671875, 0.020843505859375, 0.040191650390625, 0.033935546875, 0.0012254714965820312, -0.0231170654296875, -0.05096435546875, 0.028045654296875, -0.032684326171875, -0.036529541015625, 0.03619384765625, -0.01268768310546875, 0.0092010498046875, 0.0162811279296875, 0.025543212890625, -0.0013256072998046875, -0.0555419921875, 0.03350830078125, -0.039581298828125, -0.00986480712890625, 0.0167388916015625, -0.01253509521484375, -0.0053558349609375, 0.0009150505065917969, 0.002391815185546875, -0.0008721351623535156, 0.0002586841583251953, -0.0273895263671875, 0.0217132568359375, 0.020050048828125, 0.0491943359375, -0.0035915374755859375, 0.01471710205078125, -0.01160430908203125, -0.048431396484375, -0.03594970703125, 0.0026836395263671875, 0.0290985107421875, -0.01265716552734375, -0.01837158203125, -0.035430908203125, 0.00852203369140625, 0.00048279762268066406, 0.0294952392578125, 0.0309295654296875, -0.038238525390625, -0.0225372314453125, 0.0215606689453125, 0.0257720947265625, 0.035980224609375, -0.0121307373046875, 0.03192138671875, 0.0204315185546875, -0.00954437255859375, 0.0203094482421875, -0.02667236328125, 0.0121307373046875, -0.004756927490234375, -0.0304718017578125, -0.059234619140625, -0.006023406982421875, -0.026519775390625, -0.0261688232421875, -0.10772705078125, 0.039794921875, 0.04498291015625, 0.0017766952514648438, 0.004573822021484375, 0.037841796875, -0.028167724609375, 0.01468658447265625, -0.00974273681640625, -0.0187835693359375, 0.0178985595703125, -0.038665771484375, 0.01641845703125, 0.034454345703125, 0.0025386810302734375, 0.06982421875, 0.0799560546875, 0.0199737548828125, 0.01239013671875, 0.0435791015625, 0.0203094482421875, 0.0018815994262695312, -0.037384033203125, 0.0032634735107421875, -0.00263214111328125, -0.006999969482421875, -0.0191802978515625, -0.0022792816162109375, 0.0211029052734375, 0.05316162109375, -0.0289764404296875, -0.05322265625, 0.033203125, 0.0013179779052734375, -0.01430511474609375, -0.015838623046875, 0.002048492431640625, -0.016082763671875, -0.0155487060546875, 0.03533935546875, 0.00878143310546875, -0.00833892822265625, -0.0369873046875, -0.0027904510498046875, -0.006805419921875, 0.0193634033203125, 0.01502227783203125, -0.029144287109375, 0.045379638671875, -0.01087188720703125, 0.01983642578125, 0.034393310546875, 0.015869140625, 0.05413818359375, 0.01788330078125, -0.011688232421875, -0.001552581787109375, -0.07623291015625, 0.048583984375, -0.08441162109375, 0.026153564453125, 0.006092071533203125, -0.031463623046875, -0.04351806640625, 0.00431060791015625, -0.035491943359375, 0.002780914306640625, -0.03863525390625, -0.024322509765625, -0.018829345703125, -0.00011682510375976562, -0.03167724609375, -0.026519775390625, -0.0173797607421875, 0.025390625, 0.001766204833984375, 0.020751953125, -0.06201171875, 0.00902557373046875, -0.01171875, 0.051513671875, -0.005741119384765625, 0.01132965087890625, 0.0389404296875, 0.0050201416015625, 0.051544189453125, 0.004680633544921875, 0.0411376953125, 0.032928466796875, -0.0257568359375, 0.09075927734375, -0.0159759521484375, -0.052398681640625, 0.03887939453125, -0.02362060546875, 0.0843505859375, 0.0560302734375, 0.005840301513671875, -0.04443359375, -0.020355224609375, -0.078857421875, 0.04736328125, -0.00424957275390625, -0.0029010772705078125, -0.01001739501953125, 0.0084381103515625, 0.004093170166015625, -0.027008056640625, 0.029022216796875, -0.00826263427734375, 0.004192352294921875, 0.018951416015625, 0.022003173828125, -0.001972198486328125, 0.007610321044921875, -0.0173492431640625, 0.0389404296875, 0.0116424560546875, -0.01519012451171875, -0.02362060546875, -0.005832672119140625, 0.00457000732421875, -0.025115966796875, -0.01325225830078125, -0.0134735107421875, 0.0477294921875, 0.01300048828125, 0.0352783203125, 0.0090484619140625, -0.052825927734375, 0.00006407499313354492, -0.02069091796875, 0.020904541015625, -0.0116119384765625, -0.011260986328125, -0.0126800537109375, 0.004123687744140625, 0.0264434814453125, -0.047576904296875, 0.031219482421875, -0.002910614013671875, -0.0117645263671875, -0.052459716796875, -0.01030731201171875, -0.03424072265625, -0.0230255126953125, 0.007472991943359375, 0.046295166015625, 0.029876708984375, -0.0010995864868164062, -0.0235748291015625, -0.025115966796875, -0.018096923828125, -0.0772705078125, -0.0025959014892578125, -0.001277923583984375, -0.017120361328125, 0.01189422607421875, 0.0288543701171875, -0.01073455810546875, 0.0028591156005859375, -0.058319091796875, -0.013641357421875, 0.026947021484375, -0.017303466796875, -0.038726806640625, 0.0147705078125, 0.015777587890625, 0.0107421875, -0.01214599609375, -0.019683837890625, -0.0051422119140625, 0.0592041015625, -0.01247406005859375, 0.047454833984375, 0.0201263427734375, 0.0002760887145996094, -0.027496337890625, -0.004741668701171875, -0.0172271728515625, -0.00010007619857788086, 0.0382080078125, 0.0352783203125, -0.002582550048828125, -0.0204010009765625, -0.01194000244140625, -0.01092529296875, 0.024139404296875, -0.02276611328125, -0.00279998779296875, -0.0011262893676757812, -0.00975799560546875, 0.0027217864990234375, -0.0271148681640625, 0.02301025390625, -0.0027866363525390625, -0.01230621337890625, -0.046142578125, -0.00798797607421875, -0.00504302978515625, -0.0219879150390625, 0.0279388427734375, 0.028350830078125, -0.0599365234375, 0.0465087890625, -0.04205322265625, 0.0300140380859375, -0.0161285400390625, 0.04046630859375, 0.061767578125, 0.0176849365234375, -0.0251312255859375, -0.00012409687042236328, -0.02801513671875, -0.01036834716796875, 0.0050811767578125, -0.0012464523315429688, -0.0257415771484375, -0.02197265625, 0.028167724609375, -0.0068359375, -0.0124053955078125, -0.027557373046875, -0.0170440673828125, -0.0275421142578125, -0.019805908203125, -0.06964111328125, -0.04180908203125, -0.048736572265625, 0.051300048828125, 0.032073974609375, 0.0350341796875, 0.056854248046875, -0.0235748291015625, 0.0230865478515625, 0.0008997917175292969, -0.005947113037109375, -0.0523681640625, -0.03729248046875, -0.07574462890625, -0.0577392578125, -0.034576416015625, -0.00768280029296875, -0.01134490966796875, 0.0094146728515625, -0.016387939453125, 0.0031414031982421875, 0.01482391357421875, 0.0234375, 0.058746337890625, -0.00040078163146972656, -0.038238525390625, -0.0489501953125, -0.008087158203125, 0.0335693359375, -0.00774383544921875, 0.03033447265625, 0.0146636962890625, 0.002826690673828125, 0.007694244384765625, 0.00989532470703125, -0.0186004638671875, 0.0225677490234375, -0.0153656005859375, -0.0008244514465332031, 0.0035877227783203125, 0.01309967041015625, -0.0413818359375, 0.0113372802734375, 0.00112152099609375, -0.017333984375, -0.00856781005859375, 0.01161956787109375, -0.0254974365234375, 0.0202484130859375, -0.01715087890625, -0.01904296875, -0.0118560791015625, 0.007110595703125, -0.0322265625, -0.0323486328125, 0.00389862060546875, -0.008270263671875, 0.0206298828125, 0.05078125, -0.01201629638671875, -0.036376953125, -0.0027790069580078125, -0.03094482421875, -0.0124359130859375, -0.017669677734375, -0.0160369873046875, -0.007144927978515625, 0.01174163818359375, -0.0797119140625, 0.0117950439453125, -0.03314208984375, 0.0023860931396484375, -0.031402587890625, 0.0302886962890625, 0.00882720947265625, -0.0182647705078125, -0.00830078125, 0.01800537109375, -0.06536865234375, -0.04107666015625, -0.0138397216796875, 0.003437042236328125, 0.0214385986328125, -0.0282745361328125, -0.0290985107421875, 0.0151519775390625, 0.0006461143493652344, -0.019622802734375, 0.047882080078125, -0.03265380859375, 0.034088134765625, 0.01317596435546875, 0.004764556884765625, -0.0211181640625, -0.00856781005859375, -0.0222015380859375, -0.019073486328125, -0.0018968582153320312, -0.048736572265625, -0.0023097991943359375, -0.050872802734375, 0.02294921875, 0.020111083984375, -0.00487518310546875, 0.003620147705078125, 0.03802490234375, -0.0264739990234375, 0.0037097930908203125, -0.0006399154663085938, 0.017364501953125, 0.01526641845703125, 0.034332275390625, -0.006603240966796875, -0.00024819374084472656, -0.0018987655639648438, 0.0036163330078125, -0.04803466796875, 0.0185546875, -0.0118560791015625, -0.005298614501953125, 0.03265380859375, -0.036865234375, -0.024627685546875, -0.015777587890625, 0.012115478515625, -0.005611419677734375, -0.013641357421875, -0.01161956787109375, 0.004261016845703125, 0.00525665283203125, 0.053619384765625, 0.0325927734375, -0.004116058349609375, 0.007190704345703125, 0.047119140625, -0.002536773681640625, -0.04443359375, -0.06451416015625, -0.01055145263671875, 0.01959228515625, 0.004608154296875, 0.01849365234375, 0.0355224609375, -0.001613616943359375, -0.0174102783203125, 0.0011835098266601562, 0.001514434814453125, 0.08148193359375, -0.0740966796875, 0.02783203125, -0.056365966796875, 0.0199432373046875, 0.048583984375, -0.05914306640625, 0.02838134765625, 0.0185546875, -0.01202392578125, -0.00763702392578125, -0.0008893013000488281, 0.016693115234375, -0.031402587890625, -0.006771087646484375, -0.037872314453125, 0.0218658447265625, -0.048858642578125, -0.0238037109375, -0.0335693359375, 0.0182037353515625, -0.0384521484375, -0.0285186767578125, -0.01522064208984375, -0.0071563720703125, -0.0219573974609375, -0.019561767578125, 0.02728271484375, -0.04150390625, -0.031463623046875, 0.01491546630859375, -0.00814056396484375, 0.047821044921875, 0.01275634765625, -0.0172882080078125, 0.01383209228515625, -0.01393890380859375, -0.04913330078125, 0.010528564453125, 0.0018911361694335938, -0.01837158203125, -0.010009765625, -0.0219879150390625, 0.04083251953125, 0.053558349609375, -0.059906005859375, -0.0134735107421875, 0.0133209228515625, -0.005748748779296875, -0.01422882080078125, -0.059356689453125, 0.07647705078125, -0.004230499267578125, 0.0024967193603515625, 0.00757598876953125, -0.00814056396484375, 0.0223388671875, 0.06292724609375, 0.04327392578125, -0.056854248046875, -0.054779052734375, 0.08062744140625, -0.03448486328125, -0.0240936279296875, 0.023956298828125, 0.046905517578125, 0.04229736328125, 0.01023101806640625, -0.0211639404296875, -0.035400390625, -0.036224365234375, -0.00766754150390625, 0.01406097412109375, -0.033172607421875, -0.046661376953125, -0.021881103515625, -0.0006222724914550781, 0.02099609375, -0.03192138671875, 0.009857177734375, -0.06549072265625, -0.02880859375, -0.03759765625, 0.032958984375, -0.02392578125, -0.014495849609375, -0.032196044921875, -0.0078582763671875, -0.026519775390625, -0.0146942138671875, -0.007061004638671875, 0.005573272705078125, -0.001972198486328125, -0.00923919677734375, 0.020355224609375, -0.004302978515625, -0.003314971923828125, -0.034912109375, 0.04498291015625, -0.03607177734375, 0.00447845458984375, 0.02264404296875, 0.0026874542236328125, -0.04632568359375, 0.0106353759765625, 0.00739288330078125, -0.0005736351013183594, 0.04168701171875, -0.008270263671875, -0.037841796875, -0.024444580078125, 0.054290771484375, 0.01029205322265625, -0.001007080078125, -0.076416015625, -0.0207366943359375, 0.01068115234375, 0.055145263671875, 0.02899169921875, -0.07000732421875, 0.06396484375, 0.03778076171875, -0.00823211669921875, 0.0033283233642578125, 0.045379638671875, 0.052703857421875, 0.0002453327178955078, 0.024688720703125, -0.08502197265625, -0.034271240234375, 0.00023245811462402344, -0.054656982421875, 0.0117034912109375, -0.0021877288818359375, 0.000008285045623779297, 0.02215576171875, -0.00415802001953125, 0.0088653564453125, -0.033843994140625, -0.050689697265625, -0.031280517578125, 0.039764404296875, -0.047698974609375, -0.0285186767578125, 0.035736083984375, -0.013824462890625, 0.004077911376953125, 0.02862548828125, -0.0377197265625, 0.006580352783203125, 0.0540771484375, 0.01267242431640625, -0.0014390945434570312, 0.0118560791015625, 0.026031494140625, 0.046417236328125, 0.01319122314453125, 0.033782958984375, 0.01898193359375, 0.0011167526245117188, -0.058197021484375, 0.011688232421875, 0.018035888671875, 0.002468109130859375, -0.0400390625, 0.0147552490234375, -0.0289154052734375, -0.037261962890625, 0.07904052734375, 0.0208740234375, -0.10198974609375, -0.03271484375, 0.004108428955078125, 0.0167083740234375, -0.0489501953125, 0.0012178421020507812, 0.00983428955078125, 0.00885772705078125, 0.02001953125, -0.0235595703125, -0.023773193359375, 0.01416015625, -0.00705718994140625, -0.02032470703125, 0.00942230224609375, 0.04669189453125, 0.028167724609375, 0.035308837890625, -0.020294189453125, -0.027008056640625, 0.0328369140625, -0.013275146484375, -0.0208282470703125, 0.0242156982421875, -0.0261077880859375, -0.052398681640625, 0.001003265380859375, -0.0302276611328125, -0.00632476806640625, -0.006771087646484375, -0.00279998779296875, 0.0380859375, 0.05194091796875, -0.0255126953125, -0.00582122802734375, 0.035888671875, 0.01373291015625, 0.08636474609375, 0.01104736328125, 0.00565338134765625, -0.004222869873046875, -0.052276611328125, -0.019317626953125, -0.037017822265625, 0.024200439453125, 0.006076812744140625, 0.02325439453125, -0.0027484893798828125, 0.01800537109375, -0.0268402099609375, 0.037994384765625, 0.0076446533203125, -0.0217437744140625, 0.0244903564453125, 0.0203094482421875, -0.07891845703125, -0.07171630859375, 0.0246429443359375, -0.06854248046875, -0.005405426025390625, 0.034423828125, -0.0477294921875, 0.039306640625, -0.0011892318725585938, 0.052825927734375, 0.0416259765625, -0.00458526611328125, -0.028289794921875, -0.018096923828125, -0.01067352294921875, 0.01461029052734375, -0.00807952880859375, -0.00009149312973022461, -0.00511932373046875, 0.004100799560546875, -0.0006146430969238281, 0.02618408203125, 0.052581787109375, 0.0172576904296875, -0.05877685546875, 0.012237548828125, 0.05853271484375, -0.01513671875, -0.0241241455078125, 0.078857421875, -0.0007977485656738281, 0.0136871337890625, -0.006710052490234375, -0.00493621826171875, 0.038543701171875, -0.03131103515625, -0.057647705078125, 0.01123046875, 0.0038852691650390625, -0.0088653564453125, 0.03485107421875, 0.00022280216217041016, -0.05364990234375, 0.026947021484375, 0.038909912109375, -0.058319091796875, 0.049774169921875, 0.0075836181640625, 0.01108551025390625, 0.0087127685546875, -0.0467529296875, -0.014251708984375, 0.0243072509765625, -0.01534271240234375, 0.0165557861328125, 0.034576416015625, 0.033416748046875, 0.026458740234375, -0.01213836669921875, 0.01812744140625, -0.004840850830078125, -0.015472412109375, 0.0063018798828125, 0.019805908203125, 0.0391845703125, -0.0030803680419921875, -0.0095062255859375, 0.0113983154296875, 0.004055023193359375, -0.004329681396484375, -0.036590576171875, 0.0171661376953125, 0.0152740478515625, 0.0108184814453125, 0.02130126953125, 0.04315185546875, -0.01035308837890625, 0.0192718505859375, -0.009002685546875, 0.000005304813385009766, 0.00368499755859375, 0.043426513671875, 0.0016345977783203125, 0.01322174072265625, -0.03131103515625, -0.007747650146484375, -0.036651611328125, 0.013427734375, 0.00926971435546875, 0.046630859375, 0.01239776611328125, 0.0738525390625, -0.0246734619140625, -0.021087646484375, -0.004779815673828125, 0.01197052001953125, 0.0305938720703125, -0.0191192626953125, -0.0297088623046875, -0.0382080078125, 0.036102294921875, 0.031341552734375, -0.00251007080078125, 0.01500701904296875, 0.039825439453125, 0.0194244384765625, -0.05841064453125, -0.00855255126953125, -0.00049591064453125, -0.039154052734375, 0.0249481201171875, -0.0152587890625, 0.021575927734375, 0.0072021484375, -0.0179595947265625, -0.003635406494140625, 0.026580810546875, 0.016937255859375, 0.0024852752685546875, -0.000980377197265625, -0.0034122467041015625, -0.0193634033203125, 0.0289306640625, -0.0016689300537109375, 0.02886962890625, 0.01910400390625, -0.005435943603515625, 0.0030574798583984375, -0.03643798828125, -0.01514434814453125, -0.00826263427734375, 0.0283355712890625, 0.0152130126953125, 0.0012655258178710938, 0.005222320556640625, -0.00862884521484375, 0.02484130859375, -0.0189666748046875, 0.007236480712890625, -0.0138092041015625, 0.02264404296875, -0.0159912109375, -0.00933837890625, -0.0142822265625, -0.00438690185546875, 0.0213623046875, -0.01514434814453125, 0.10589599609375, -0.06097412109375, 0.02008056640625, 0.0024394989013671875, -0.019927978515625, 0.021728515625, 0.0028247833251953125, 0.00270843505859375, 0.0067138671875, 0.000629425048828125, -0.00806427001953125, -0.049774169921875, 0.0282440185546875, -0.01166534423828125, -0.03631591796875, 0.00928497314453125, -0.0007581710815429688, 0.006359100341796875, 0.0131683349609375, 0.0865478515625, -0.025604248046875, -0.077392578125, -0.0810546875, 0.00397491455078125, 0.032501220703125, 0.06793212890625, -0.01222991943359375, 0.035888671875, -0.006805419921875, -0.00608062744140625, 0.032928466796875, -0.060394287109375, 0.051971435546875, 0.023406982421875, -0.04638671875, -0.018768310546875, -0.032318115234375, -0.02197265625, -0.033905029296875, 0.0035858154296875, -0.0068359375, -0.0225677490234375, -0.0223846435546875, 0.0012874603271484375, 0.02001953125, -0.01165771484375, -0.038604736328125, -0.0144500732421875, 0.037322998046875, -0.039703369140625, 0.007404327392578125, 0.00732421875, -0.018890380859375, -0.023956298828125, -0.0221405029296875, 0.0030651092529296875, -0.032379150390625, -0.0279693603515625, -0.0293426513671875, -0.041748046875, 0.033203125, -0.01226806640625, -0.0194854736328125, 0.0036602020263671875, -0.01446533203125, 0.01262664794921875, -0.01065826416015625, 0.01593017578125, -0.00196075439453125, -0.01248931884765625, -0.07672119140625, -0.062408447265625, -0.03173828125, 0.044769287109375, -0.057830810546875, 0.00335693359375, 0.03607177734375, 0.00251007080078125, -0.056854248046875, 0.00812530517578125, -0.02313232421875, 0.051788330078125, -0.05255126953125, 0.0031566619873046875, 0.061614990234375, -0.01812744140625, -0.039947509765625, -0.1026611328125, 0.004810333251953125, -0.1082763671875, 0.0029773712158203125, -0.038726806640625, 0.0051116943359375, -0.004299163818359375, -0.038360595703125, -0.0341796875, 0.0276031494140625, 0.007305145263671875, -0.0281982421875, -0.049774169921875, -0.0281829833984375, 0.00211334228515625, 0.043548583984375, -0.01104736328125, -0.0148468017578125, -0.061767578125, 0.041015625, -0.0040283203125, 0.0328369140625, -0.0152740478515625, 0.007373809814453125, 0.032806396484375, 0.04766845703125, 0.046112060546875, -0.00833892822265625, 0.04766845703125, -0.050506591796875, 0.036529541015625, 0.033782958984375, -0.055755615234375, -0.08197021484375, -0.0217132568359375, -0.007778167724609375, -0.0258026123046875, -0.0552978515625, -0.04876708984375, -0.05377197265625, 0.10205078125, 0.03656005859375, 0.0217437744140625, -0.0121002197265625, 0.00635528564453125, -0.046234130859375, -0.0116119384765625, -0.0013179779052734375, 0.010406494140625, -0.0237579345703125, 0.007232666015625, 0.0004074573516845703, 0.005764007568359375, 0.012176513671875, -0.009185791015625, -0.01007843017578125, -0.0024871826171875, -0.0020542144775390625, -0.043670654296875, -0.004695892333984375, -0.01053619384765625, 0.0953369140625, -0.06451416015625, -0.0302886962890625, -0.0004668235778808594, 0.025238037109375, 0.017913818359375, -0.038421630859375, -0.0012712478637695312, -0.031341552734375, 0.0184783935546875, 0.03594970703125, 0.019561767578125, 0.0166015625, -0.0060272216796875, -0.010284423828125, 0.030731201171875, 0.015777587890625, -0.03411865234375, 0.051513671875, 0.07537841796875, -0.0297698974609375, -0.0286407470703125, -0.054779052734375, -0.029876708984375, -0.01043701171875, -0.0291748046875, 0.0290374755859375, -0.0290069580078125, 0.01335906982421875, 0.007091522216796875, -0.01377105712890625, 0.00408935546875, 0.01027679443359375, -0.01357269287109375, -0.061279296875, 0.0189361572265625, 0.0321044921875, 0.0167999267578125, 0.0200653076171875 ]
c86f7bc140755aea0d96a8501ec42a6d6f453dc2
Wordpress Stackexchange Q: When switching from html to visual editor the tag gets erased I'm facing a problem, basically if I use the tags into the html and then change to visual editor, the tags disappear, and it stays in plain text. Scenario: * *In HTML mode, I add some p tags to a post I'm editing. *I switch to Visual, then back to HTML, and the tag and all of its content are gone. I'm not using any extended tinymce plugin. Any Suggestion? A: Wordpress doesn't save <p> tags. Paragraphs are displayed automatically in the TinyMCE visual editor and then the output gets <p> tags automatically (for better or for worse) from the wpautop function. I avoid using <p> tags. A double line break will automatically be converted to a paragraph at output.
Q: When switching from html to visual editor the tag gets erased I'm facing a problem, basically if I use the tags into the html and then change to visual editor, the tags disappear, and it stays in plain text. Scenario: * *In HTML mode, I add some p tags to a post I'm editing. *I switch to Visual, then back to HTML, and the tag and all of its content are gone. I'm not using any extended tinymce plugin. Any Suggestion? A: Wordpress doesn't save <p> tags. Paragraphs are displayed automatically in the TinyMCE visual editor and then the output gets <p> tags automatically (for better or for worse) from the wpautop function. I avoid using <p> tags. A double line break will automatically be converted to a paragraph at output.
wordpress
{ "language": "en", "length": 132, "provenance": "stackexchange_00019.jsonl.gz:425845", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72723" }
[ 0.0098724365234375, 0.005199432373046875, -0.0240631103515625, 0.0302734375, 0.024200439453125, -0.039031982421875, 0.052032470703125, -0.0296630859375, 0.027618408203125, 0.036834716796875, -0.00963592529296875, -0.01448822021484375, 0.0130615234375, -0.030792236328125, -0.0302734375, -0.0024433135986328125, 0.00885009765625, -0.019134521484375, -0.01302337646484375, -0.0175628662109375, -0.0036907196044921875, -0.01220703125, 0.03265380859375, -0.0372314453125, 0.003314971923828125, 0.043609619140625, 0.016326904296875, -0.022247314453125, -0.028350830078125, -0.03887939453125, 0.005222320556640625, 0.03155517578125, 0.032867431640625, 0.027374267578125, -0.0623779296875, 0.02288818359375, -0.019378662109375, 0.016204833984375, -0.006072998046875, -0.0017442703247070312, -0.0079345703125, 0.00959014892578125, 0.034637451171875, -0.0205535888671875, -0.00716400146484375, -0.0005578994750976562, -0.01499176025390625, -0.03741455078125, -0.01551055908203125, -0.043853759765625, 0.0246429443359375, 0.0031719207763671875, 0.041656494140625, -0.05426025390625, -0.01476287841796875, -0.0014934539794921875, -0.0309906005859375, -0.0032901763916015625, 0.00846099853515625, 0.048919677734375, 0.0156707763671875, -0.00045013427734375, 0.0005860328674316406, -0.0158233642578125, -0.01163482666015625, -0.0095062255859375, -0.021575927734375, 0.008392333984375, -0.0198516845703125, -0.004360198974609375, 0.029449462890625, -0.043212890625, 0.007381439208984375, -0.0256500244140625, 0.03155517578125, 0.0189056396484375, -0.00409698486328125, 0.0235748291015625, -0.0032482147216796875, 0.023193359375, 0.06292724609375, 0.0178070068359375, -0.0014677047729492188, -0.0179290771484375, -0.0030231475830078125, -0.0163726806640625, 0.01013946533203125, -0.0157623291015625, -0.05560302734375, 0.0018892288208007812, -0.035980224609375, -0.0236358642578125, -0.049041748046875, 0.006317138671875, -0.00473785400390625, -0.00495147705078125, -0.044830322265625, -0.024444580078125, -0.022857666015625, 0.038665771484375, 0.0094757080078125, -0.04742431640625, 0.0787353515625, -0.044189453125, 0.0266265869140625, 0.004421234130859375, -0.01058197021484375, 0.0465087890625, 0.0718994140625, 0.0234832763671875, 0.0011873245239257812, 0.038970947265625, -0.014068603515625, -0.0288848876953125, -0.00848388671875, 0.0299530029296875, -0.0134124755859375, 0.0211181640625, -0.0028514862060546875, 0.008392333984375, -0.009857177734375, 0.030242919921875, -0.0909423828125, -0.030120849609375, -0.0297088623046875, -0.06591796875, 0.008575439453125, 0.05853271484375, 0.0030002593994140625, 0.0243682861328125, -0.0263519287109375, 0.009033203125, 0.028106689453125, 0.038909912109375, 0.0106353759765625, -0.01416778564453125, -0.0012407302856445312, -0.053314208984375, -0.031890869140625, 0.0241546630859375, -0.0283966064453125, -0.03216552734375, 0.020416259765625, -0.04144287109375, 0.00965118408203125, 0.047882080078125, 0.02923583984375, -0.006103515625, -0.032470703125, -0.06622314453125, 0.051483154296875, -0.06329345703125, 0.0312347412109375, 0.0197906494140625, 0.0022335052490234375, -0.055999755859375, 0.036651611328125, -0.040771484375, 0.02734375, -0.06121826171875, 0.0218658447265625, -0.01311492919921875, 0.0154266357421875, -0.05633544921875, -0.05218505859375, -0.0022430419921875, -0.09832763671875, -0.00787353515625, 0.032745361328125, 0.016143798828125, 0.023773193359375, -0.0218658447265625, 0.00632476806640625, 0.01226806640625, 0.0035572052001953125, 0.0244293212890625, -0.0227813720703125, 0.0187530517578125, 0.032958984375, 0.01123809814453125, 0.0027980804443359375, -0.03717041015625, 0.06951904296875, -0.01418304443359375, -0.0836181640625, 0.0121917724609375, -0.0015859603881835938, 0.07421875, 0.05560302734375, 0.018463134765625, 0.03167724609375, -0.032623291015625, -0.00873565673828125, 0.01702880859375, 0.05517578125, -0.0325927734375, -0.032012939453125, -0.031280517578125, 0.0097808837890625, -0.052398681640625, 0.0294036865234375, -0.0220489501953125, 0.01166534423828125, -0.0285186767578125, -0.046875, -0.019561767578125, -0.01409912109375, 0.0211029052734375, -0.007183074951171875, -0.004596710205078125, 0.004055023193359375, -0.024505615234375, -0.01146697998046875, 0.0014858245849609375, -0.00705718994140625, 0.018096923828125, 0.00909423828125, 0.0208587646484375, 0.0189208984375, -0.01140594482421875, 0.0447998046875, -0.0199127197265625, 0.03399658203125, 0.040802001953125, 0.01342010498046875, -0.0105743408203125, -0.0174407958984375, -0.01306915283203125, 0.01446533203125, -0.02386474609375, 0.0391845703125, 0.049072265625, 0.0005364418029785156, 0.03314208984375, -0.033538818359375, -0.045166015625, -0.0227813720703125, -0.042572021484375, 0.0292205810546875, 0.039794921875, 0.034698486328125, 0.022735595703125, -0.01160430908203125, -0.01145172119140625, 0.046783447265625, -0.0015707015991210938, 0.018798828125, -0.0301361083984375, -0.00005990266799926758, 0.006877899169921875, 0.01415252685546875, -0.02557373046875, 0.0260009765625, -0.051177978515625, 0.00665283203125, 0.016204833984375, 0.0040130615234375, 0.03900146484375, -0.01001739501953125, -0.0014867782592773438, -0.0015811920166015625, 0.0382080078125, 0.0030384063720703125, -0.0006680488586425781, 0.0277557373046875, 0.01519012451171875, 0.032257080078125, 0.030670166015625, -0.039306640625, 0.0042572021484375, 0.018890380859375, 0.053863525390625, -0.00440216064453125, 0.03045654296875, 0.031829833984375, 0.00925445556640625, -0.01123809814453125, -0.0276336669921875, 0.0016279220581054688, 0.02374267578125, -0.018585205078125, 0.0159912109375, -0.0260467529296875, -0.0232086181640625, 0.01316070556640625, -0.023681640625, -0.019927978515625, -0.033782958984375, -0.01739501953125, 0.01045989990234375, 0.022796630859375, 0.0389404296875, -0.0204010009765625, 0.022979736328125, 0.006927490234375, 0.0195770263671875, 0.049835205078125, -0.035980224609375, 0.035369873046875, -0.0145263671875, 0.06304931640625, 0.072998046875, -0.005218505859375, 0.0108489990234375, 0.020904541015625, 0.0006198883056640625, 0.018310546875, 0.015960693359375, 0.014984130859375, 0.0233612060546875, -0.05511474609375, -0.00447845458984375, 0.02191162109375, -0.030364990234375, -0.0106964111328125, -0.0289459228515625, -0.047882080078125, -0.006931304931640625, -0.0704345703125, 0.01448822021484375, 0.0139007568359375, -0.056243896484375, -0.055572509765625, 0.0132904052734375, -0.051422119140625, 0.019866943359375, 0.026885986328125, -0.01507568359375, -0.018096923828125, -0.0014009475708007812, -0.029327392578125, -0.0245513916015625, -0.06524658203125, -0.023773193359375, -0.00841522216796875, 0.0233154296875, 0.020233154296875, 0.0377197265625, 0.010894775390625, -0.0369873046875, 0.02691650390625, -0.07257080078125, -0.02874755859375, 0.0345458984375, -0.01837158203125, -0.057708740234375, -0.0018472671508789062, -0.005168914794921875, -0.01194000244140625, -0.029144287109375, 0.03857421875, 0.005706787109375, -0.0002503395080566406, -0.0390625, 0.04022216796875, -0.026092529296875, -0.031982421875, 0.03631591796875, 0.0633544921875, -0.01354217529296875, -0.00428009033203125, 0.003936767578125, -0.00283050537109375, 0.0230560302734375, -0.01458740234375, -0.0091400146484375, -0.0194244384765625, 0.03900146484375, -0.0035686492919921875, 0.03594970703125, 0.040496826171875, 0.0093994140625, -0.00867462158203125, -0.04254150390625, -0.043212890625, -0.046112060546875, 0.025848388671875, -0.023956298828125, 0.0258331298828125, -0.0029392242431640625, -0.00409698486328125, 0.0087738037109375, -0.0186309814453125, 0.00919342041015625, 0.0131683349609375, 0.017242431640625, -0.0187835693359375, 0.0086212158203125, -0.00505828857421875, 0.0014886856079101562, -0.0224761962890625, 0.0195465087890625, -0.01456451416015625, -0.003726959228515625, -0.0271759033203125, -0.006542205810546875, -0.0021572113037109375, -0.0234375, -0.0305938720703125, -0.0032711029052734375, -0.03887939453125, 0.041656494140625, -0.00222015380859375, 0.01151275634765625, -0.04296875, 0.019927978515625, -0.02752685546875, -0.034088134765625, 0.05859375, -0.032684326171875, 0.015655517578125, 0.006916046142578125, 0.00771331787109375, -0.026947021484375, -0.0260467529296875, -0.00925445556640625, -0.004978179931640625, 0.01189422607421875, -0.038726806640625, -0.00910186767578125, 0.0076904296875, 0.0183563232421875, 0.015716552734375, 0.03643798828125, -0.013275146484375, 0.00287628173828125, -0.01953125, 0.0362548828125, -0.048980712890625, -0.064453125, -0.026092529296875, -0.0670166015625, -0.0250091552734375, -0.035858154296875, -0.04327392578125, -0.0156402587890625, -0.01479339599609375, -0.010345458984375, 0.0367431640625, -0.023651123046875, -0.023101806640625, -0.01108551025390625, -0.035858154296875, -0.01416015625, -0.022705078125, -0.0162200927734375, 0.002498626708984375, -0.0149993896484375, 0.0335693359375, -0.005619049072265625, 0.02392578125, 0.0015687942504882812, 0.0531005859375, 0.0094757080078125, -0.015869140625, -0.0033397674560546875, -0.0015611648559570312, 0.04449462890625, 0.0615234375, -0.000766754150390625, 0.0133056640625, -0.035552978515625, 0.027618408203125, 0.05499267578125, 0.02142333984375, -0.0640869140625, 0.0682373046875, 0.0017900466918945312, 0.0037059783935546875, 0.015350341796875, -0.00945281982421875, 0.0239410400390625, 0.0272064208984375, 0.012969970703125, -0.0063629150390625, 0.0285491943359375, 0.01030731201171875, -0.00970458984375, -0.037322998046875, -0.0033435821533203125, -0.035736083984375, 0.0007810592651367188, 0.039276123046875, 0.01267242431640625, 0.02252197265625, -0.00010895729064941406, 0.0017709732055664062, 0.005435943603515625, -0.021636962890625, -0.0504150390625, -0.00850677490234375, -0.0399169921875, 0.01275634765625, -0.0416259765625, -0.032806396484375, -0.034088134765625, -0.0009508132934570312, -0.0229339599609375, 0.0002541542053222656, -0.039215087890625, 0.008544921875, 0.005474090576171875, 0.036468505859375, 0.0180511474609375, 0.00960540771484375, 0.007579803466796875, 0.00443267822265625, 0.0020885467529296875, 0.031829833984375, 0.0113372802734375, -0.00719451904296875, -0.02349853515625, -0.03753662109375, -0.0240325927734375, -0.0207977294921875, 0.032257080078125, 0.0031223297119140625, -0.019500732421875, 0.00569915771484375, -0.006134033203125, -0.016143798828125, -0.036712646484375, 0.044830322265625, 0.0097503662109375, 0.0096282958984375, 0.00888824462890625, 0.021759033203125, 0.02001953125, -0.04132080078125, -0.035400390625, 0.0364990234375, 0.04486083984375, 0.0225677490234375, -0.01467132568359375, -0.000789642333984375, 0.0104522705078125, 0.0063018798828125, -0.01294708251953125, -0.0211029052734375, -0.023529052734375, 0.0033721923828125, 0.0108642578125, 0.0183563232421875, -0.004261016845703125, 0.00496673583984375, -0.02081298828125, -0.002849578857421875, 0.004024505615234375, 0.00643157958984375, -0.03271484375, 0.003627777099609375, 0.002399444580078125, 0.0014209747314453125, -0.019134521484375, -0.0199127197265625, -0.041015625, 0.01195526123046875, -0.0306243896484375, -0.01418304443359375, 0.041595458984375, -0.0244598388671875, 0.01538848876953125, -0.01372528076171875, 0.003513336181640625, -0.02716064453125, 0.01296234130859375, 0.03558349609375, 0.0158843994140625, -0.0528564453125, -0.01255035400390625, -0.053802490234375, -0.021759033203125, -0.0204010009765625, -0.01512908935546875, -0.0401611328125, 0.0087738037109375, -0.0014867782592773438, 0.0234375, -0.01605224609375, -0.01922607421875, 0.00666046142578125, 0.025299072265625, 0.004085540771484375, 0.07061767578125, -0.00411224365234375, 0.037994384765625, -0.0182037353515625, 0.08294677734375, 0.002674102783203125, -0.0184478759765625, -0.039764404296875, -0.021728515625, 0.03167724609375, -0.058197021484375, -0.051544189453125, -0.03863525390625, -0.038726806640625, 0.018585205078125, 0.0013895034790039062, -0.00560760498046875, 0.0208282470703125, 0.00551605224609375, 0.01385498046875, -0.01389312744140625, 0.01145172119140625, 0.0073394775390625, 0.003131866455078125, 0.046051025390625, -0.02459716796875, -0.037689208984375, -0.0010995864868164062, -0.0021953582763671875, 0.003753662109375, 0.0159454345703125, -0.0033817291259765625, -0.0152740478515625, 0.0474853515625, -0.036102294921875, -0.0390625, 0.00328826904296875, 0.033050537109375, 0.0098419189453125, 0.05517578125, 0.036865234375, -0.00284576416015625, 0.0008912086486816406, 0.0251617431640625, 0.0171051025390625, -0.01447296142578125, -0.0221405029296875, 0.005596160888671875, -0.02392578125, -0.01300811767578125, 0.052215576171875, 0.06201171875, -0.06268310546875, -0.0224609375, 0.0228118896484375, -0.0235595703125, -0.01232147216796875, -0.01186370849609375, -0.01541900634765625, -0.052703857421875, 0.027008056640625, 0.0252838134765625, -0.0148162841796875, 0.01409149169921875, 0.0229644775390625, -0.01126861572265625, -0.0199127197265625, 0.02783203125, -0.00534820556640625, -0.07794189453125, 0.00955963134765625, 0.0438232421875, -0.04486083984375, -0.056488037109375, -0.009063720703125, 0.017730712890625, -0.043243408203125, -0.10662841796875, -0.0010137557983398438, 0.0291290283203125, -0.005840301513671875, 0.039886474609375, -0.016204833984375, -0.006427764892578125, 0.0291595458984375, -0.036285400390625, 0.03338623046875, -0.017242431640625, -0.01195526123046875, 0.03240966796875, 0.01178741455078125, 0.019378662109375, 0.013702392578125, -0.035614013671875, 0.00041961669921875, -0.024139404296875, 0.01497650146484375, -0.00942230224609375, -0.005870819091796875, 0.00841522216796875, 0.0220947265625, -0.02923583984375, 0.04095458984375, 0.0236663818359375, -0.0177001953125, -0.031829833984375, -0.08184814453125, -0.02545166015625, 0.00768280029296875, -0.0732421875, -0.06134033203125, 0.059417724609375, -0.07098388671875, -0.11468505859375, 0.11236572265625, 0.06903076171875, 0.03369140625, -0.020355224609375, 0.046600341796875, -0.061553955078125, -0.007740020751953125, -0.0303802490234375, 0.0237274169921875, 0.00807952880859375, 0.02252197265625, -0.032073974609375, -0.0042724609375, 0.01403045654296875, 0.036468505859375, 0.00376129150390625, -0.01523590087890625, -0.0170440673828125, 0.0236358642578125, 0.06719970703125, 0.00855255126953125, -0.018035888671875, 0.0302886962890625, -0.00457000732421875, -0.0181884765625, -0.02178955078125, -0.0294189453125, 0.025634765625, -0.08331298828125, -0.0225830078125, 0.00201416015625, 0.00034880638122558594, -0.0133056640625, 0.0102386474609375, -0.045562744140625, 0.0195770263671875, 0.007488250732421875, -0.03753662109375, 0.0007195472717285156, 0.0234527587890625, 0.0123748779296875, 0.04461669921875, -0.0751953125, -0.06610107421875, -0.007511138916015625, 0.02459716796875, 0.01605224609375, 0.02008056640625, 0.0179595947265625, 0.004119873046875, 0.019805908203125, 0.0202178955078125, 0.01480865478515625, 0.0269622802734375, 0.01837158203125, 0.03179931640625, -0.00270843505859375, 0.004657745361328125, -0.051513671875, 0.01271820068359375, 0.04779052734375, 0.0404052734375, -0.0247955322265625, -0.0224456787109375, 0.003528594970703125, -0.00510406494140625, -0.015838623046875, -0.034393310546875, -0.007572174072265625, -0.0182342529296875, 0.02239990234375, 0.0216827392578125, -0.0220489501953125, -0.005664825439453125, -0.0007929801940917969, 0.01163482666015625, 0.04193115234375, 0.004985809326171875, -0.0135650634765625, -0.06158447265625, 0.0204010009765625, 0.0225830078125, 0.0094757080078125, 0.0037441253662109375, 0.032806396484375, 0.07720947265625, -0.007770538330078125, -0.04095458984375, 0.010040283203125, 0.0146484375, 0.04541015625, -0.06243896484375, -0.0091094970703125, 0.047088623046875, 0.04705810546875, 0.003849029541015625, -0.0025806427001953125, 0.044921875, 0.019683837890625, -0.050384521484375, -0.0256500244140625, -0.01087188720703125, -0.02423095703125, 0.0047607421875, -0.0205078125, -0.028076171875, 0.007465362548828125, -0.0316162109375, 0.01399993896484375, -0.0261993408203125, 0.0377197265625, -0.0283050537109375, 0.04241943359375, -0.007610321044921875, -0.01074981689453125, 0.015899658203125, -0.031951904296875, -0.0002529621124267578, -0.01031494140625, -0.01457977294921875, 0.00382232666015625, -0.028900146484375, -0.0017518997192382812, -0.001773834228515625, 0.0221099853515625, -0.0018243789672851562, 0.0227813720703125, 0.0010547637939453125, -0.0237274169921875, 0.003444671630859375, 0.01256561279296875, 0.01763916015625, 0.0335693359375, 0.0123443603515625, 0.0087127685546875, -0.0745849609375, -0.0543212890625, -0.03955078125, 0.052978515625, 0.01474761962890625, 0.134521484375, -0.0423583984375, 0.0272064208984375, -0.003345489501953125, 0.0869140625, -0.0654296875, -0.0245208740234375, 0.06268310546875, 0.007415771484375, 0.0230865478515625, -0.01502227783203125, -0.045318603515625, 0.0203704833984375, 0.007755279541015625, 0.005126953125, 0.00994873046875, -0.019775390625, 0.01468658447265625, 0.021026611328125, 0.035675048828125, -0.0037670135498046875, -0.037750244140625, -0.03900146484375, -0.00548553466796875, 0.020843505859375, 0.05084228515625, 0.0161590576171875, 0.053314208984375, 0.025421142578125, -0.01502227783203125, 0.0240325927734375, -0.06793212890625, 0.0184783935546875, 0.0256805419921875, 0.03106689453125, -0.05810546875, 0.03656005859375, -0.0101470947265625, -0.030029296875, 0.01739501953125, 0.031951904296875, 0.034332275390625, -0.12274169921875, 0.01082611083984375, -0.019500732421875, 0.0308685302734375, -0.0054473876953125, 0.01459503173828125, -0.0279388427734375, 0.0213470458984375, 0.0186309814453125, 0.026824951171875, -0.022125244140625, 0.00574493408203125, -0.0174560546875, 0.018798828125, -0.0164794921875, -0.0517578125, -0.1282958984375, -0.04608154296875, 0.056793212890625, 0.02130126953125, -0.0163726806640625, -0.0177764892578125, -0.01444244384765625, -0.0196990966796875, 0.060211181640625, -0.027435302734375, -0.017730712890625, -0.0304107666015625, -0.032623291015625, -0.048095703125, -0.07769775390625, 0.03533935546875, -0.06756591796875, 0.030914306640625, 0.042816162109375, -0.010498046875, -0.006198883056640625, 0.0003485679626464844, -0.0055389404296875, 0.0606689453125, -0.03436279296875, -0.0188751220703125, -0.0038242340087890625, 0.0078582763671875, 0.0225830078125, -0.0467529296875, -0.017608642578125, 0.00010377168655395508, 0.022064208984375, 0.016021728515625, -0.0300445556640625, -0.0299530029296875, -0.07611083984375, -0.11328125, -0.00493621826171875, 0.0192108154296875, -0.05377197265625, 0.037139892578125, -0.017333984375, -0.0252838134765625, 0.005344390869140625, 0.0038356781005859375, 0.00478363037109375, 0.0227813720703125, 0.00782012939453125, 0.00597381591796875, 0.08404541015625, 0.00421142578125, -0.0171661376953125, 0.0074920654296875, -0.00717926025390625, -0.02716064453125, 0.00702667236328125, 0.0162200927734375, -0.006122589111328125, 0.0181732177734375, 0.035919189453125, -0.0280303955078125, -0.048736572265625, -0.005321502685546875, -0.03155517578125, 0.017669677734375, -0.051910400390625, -0.03515625, -0.055572509765625, 0.01904296875, 0.017913818359375, 0.0044403076171875, -0.005359649658203125, -0.016143798828125, 0.00794219970703125, -0.0228118896484375, -0.003021240234375, 0.004604339599609375, -0.03411865234375, -0.00011056661605834961, -0.03973388671875, 0.003063201904296875, 0.01558685302734375, -0.0286407470703125, -0.032501220703125, -0.0051422119140625, -0.012939453125, 0.0126800537109375, -0.061981201171875, -0.051727294921875, 0.01139068603515625, -0.0094146728515625, -0.02203369140625, 0.0104522705078125, 0.021148681640625, -0.011474609375, 0.05712890625, 0.02142333984375, 0.00562286376953125, -0.0174407958984375, 0.0146942138671875, 0.017303466796875, -0.000881195068359375, -0.01282501220703125, -0.038818359375, 0.0048675537109375, -0.00922393798828125, 0.005016326904296875, -0.0170440673828125, -0.01263427734375, 0.01544952392578125, -0.010986328125, -0.01045989990234375, -0.041595458984375, -0.006679534912109375, -0.04931640625, 0.0205230712890625, -0.057647705078125, 0.033905029296875, -0.00460052490234375, 0.0014820098876953125, 0.0084381103515625, 0.01045989990234375, 0.0230255126953125, -0.037384033203125, 0.02093505859375, -0.0287628173828125, 0.021026611328125, 0.01020050048828125 ]
a3425c9f0f144c462ac2e1c4037413cdf7c67eed
Wordpress Stackexchange Q: wp_schedule_single_event function not working I am testing the wp_schedule_single_event function and it is currently not working on my upgraded version of wordpress. It looks like the event is being scheduled but the code in my hook is never executed. Any help with this matter would be greatly appreciated Here is example code I put in my themes function.php: var_dump(get_option('test_action_option')); if(isset($_GET['begintest'])){ update_option('test_action_option', 'Scheduled: ' . $_GET['begintest']); wp_clear_scheduled_hook( 'event_test_action'); // clear anything else in the system wp_schedule_single_event( time() + 10, 'event_test_action'); } add_action('event_test_action', 'event_test_action'); function event_test_action(){ update_option('test_action_option', 'Ran'); }
Q: wp_schedule_single_event function not working I am testing the wp_schedule_single_event function and it is currently not working on my upgraded version of wordpress. It looks like the event is being scheduled but the code in my hook is never executed. Any help with this matter would be greatly appreciated Here is example code I put in my themes function.php: var_dump(get_option('test_action_option')); if(isset($_GET['begintest'])){ update_option('test_action_option', 'Scheduled: ' . $_GET['begintest']); wp_clear_scheduled_hook( 'event_test_action'); // clear anything else in the system wp_schedule_single_event( time() + 10, 'event_test_action'); } add_action('event_test_action', 'event_test_action'); function event_test_action(){ update_option('test_action_option', 'Ran'); }
wordpress
{ "language": "en", "length": 88, "provenance": "stackexchange_00019.jsonl.gz:425852", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72749" }
[ 0.057098388671875, -0.0249481201171875, -0.0035152435302734375, -0.061553955078125, -0.0030002593994140625, -0.036224365234375, 0.0109710693359375, -0.0004360675811767578, 0.0020313262939453125, 0.0222930908203125, -0.00696563720703125, 0.011505126953125, -0.01849365234375, -0.037567138671875, -0.00988006591796875, -0.01474761962890625, 0.04547119140625, -0.0321044921875, -0.0098876953125, -0.020111083984375, 0.0007433891296386719, 0.0254974365234375, -0.027008056640625, 0.1220703125, 0.04376220703125, -0.0038700103759765625, 0.017120361328125, -0.0286102294921875, 0.0401611328125, -0.00037169456481933594, 0.023468017578125, -0.01220703125, 0.003482818603515625, 0.02557373046875, -0.031646728515625, -0.0007915496826171875, -0.0284271240234375, 0.0231475830078125, -0.007205963134765625, 0.033966064453125, 0.01093292236328125, -0.01079559326171875, -0.01233673095703125, 0.00687408447265625, 0.00016641616821289062, -0.073974609375, 0.057464599609375, -0.044708251953125, -0.016021728515625, -0.01406097412109375, 0.039459228515625, -0.01236724853515625, 0.041290283203125, -0.0277862548828125, -0.01861572265625, -0.01366424560546875, -0.052581787109375, 0.074462890625, 0.00121307373046875, 0.0211334228515625, -0.01003265380859375, 0.042327880859375, -0.006984710693359375, -0.01427459716796875, -0.0034580230712890625, 0.006145477294921875, -0.00213623046875, -0.0036983489990234375, -0.015869140625, -0.0136260986328125, 0.0188446044921875, -0.023284912109375, -0.0099029541015625, 0.0289306640625, -0.0052032470703125, -0.052337646484375, 0.032745361328125, -0.0259857177734375, -0.0131072998046875, 0.04266357421875, 0.0117950439453125, -0.02166748046875, -0.0611572265625, 0.019195556640625, 0.0197906494140625, 0.039337158203125, 0.00585174560546875, -0.01340484619140625, -0.048126220703125, 0.015838623046875, -0.04315185546875, -0.0175018310546875, -0.0272674560546875, -0.0223541259765625, -0.01033782958984375, -0.0225067138671875, 0.0316162109375, 0.05108642578125, -0.0305328369140625, -0.0276336669921875, 0.0012197494506835938, -0.0271148681640625, -0.028656005859375, -0.00786590576171875, -0.0204925537109375, 0.01042938232421875, 0.030670166015625, 0.042816162109375, -0.0032482147216796875, 0.02294921875, -0.03363037109375, -0.0286102294921875, 0.0121002197265625, 0.0028171539306640625, -0.026214599609375, -0.042266845703125, -0.042327880859375, 0.037811279296875, 0.0066070556640625, 0.0034503936767578125, 0.0277099609375, 0.049163818359375, 0.01201629638671875, -0.0242462158203125, 0.0010480880737304688, 0.01352691650390625, -0.0107574462890625, -0.050567626953125, 0.0233917236328125, -0.0183258056640625, -0.041168212890625, 0.0025272369384765625, 0.061279296875, 0.03179931640625, 0.02203369140625, -0.009918212890625, 0.0469970703125, 0.016357421875, -0.00937652587890625, 0.0360107421875, 0.00579071044921875, -0.017486572265625, -0.02288818359375, -0.0227508544921875, 0.052398681640625, 0.0172882080078125, 0.005977630615234375, 0.0023593902587890625, 0.04034423828125, -0.0035190582275390625, 0.0033664703369140625, 0.00939178466796875, 0.00792694091796875, 0.0217742919921875, 0.01293182373046875, -0.0011796951293945312, 0.021820068359375, -0.0250701904296875, 0.0265045166015625, -0.01264190673828125, 0.017425537109375, -0.013397216796875, -0.0010395050048828125, -0.0105438232421875, -0.0310821533203125, 0.0252685546875, -0.0555419921875, -0.0086212158203125, 0.019500732421875, -0.036163330078125, 0.0019159317016601562, 0.03692626953125, 0.02606201171875, 0.02227783203125, 0.01258087158203125, 0.0251007080078125, -0.004230499267578125, 0.01617431640625, 0.0218963623046875, 0.0218353271484375, -0.029632568359375, -0.041351318359375, 0.044403076171875, -0.039093017578125, -0.05364990234375, 0.005466461181640625, 0.0006875991821289062, 0.0104217529296875, 0.03802490234375, 0.00972747802734375, 0.0195465087890625, 0.0168609619140625, 0.00453948974609375, -0.0052337646484375, 0.040985107421875, -0.004909515380859375, -0.05499267578125, -0.0278167724609375, -0.0047760009765625, -0.0256500244140625, 0.0080718994140625, -0.008819580078125, -0.0115203857421875, -0.015960693359375, -0.06744384765625, 0.0033130645751953125, -0.0267486572265625, 0.039306640625, -0.01427459716796875, -0.0010356903076171875, 0.006732940673828125, 0.008148193359375, 0.006526947021484375, -0.086669921875, -0.0187225341796875, 0.0484619140625, 0.00933074951171875, 0.060821533203125, -0.017425537109375, 0.037139892578125, -0.006343841552734375, -0.07208251953125, -0.016754150390625, 0.0295867919921875, 0.040252685546875, -0.014312744140625, -0.0186614990234375, -0.01299285888671875, 0.0126495361328125, -0.0182647705078125, 0.00887298583984375, 0.051116943359375, 0.00771331787109375, 0.039520263671875, -0.014251708984375, 0.01837158203125, 0.0206298828125, 0.02398681640625, -0.0043182373046875, 0.004283905029296875, 0.03326416015625, 0.034759521484375, 0.0226898193359375, 0.036163330078125, 0.04962158203125, -0.01593017578125, 0.0288543701171875, -0.0194091796875, -0.0330810546875, -0.0249176025390625, -0.0023517608642578125, -0.00012105703353881836, 0.026763916015625, -0.0269317626953125, -0.01080322265625, 0.03558349609375, 0.0035991668701171875, -0.00893402099609375, -0.018218994140625, 0.01318359375, 0.00832366943359375, -0.0330810546875, -0.0205841064453125, -0.01276397705078125, 0.006877899169921875, -0.0019330978393554688, -0.0001201629638671875, -0.018707275390625, 0.007480621337890625, 0.01174163818359375, 0.004917144775390625, -0.06640625, -0.015655517578125, 0.041900634765625, -0.002712249755859375, 0.0445556640625, -0.0418701171875, 0.0045013427734375, -0.01181793212890625, 0.031463623046875, -0.0024509429931640625, 0.07110595703125, 0.0177154541015625, -0.0361328125, -0.0265350341796875, -0.00888824462890625, -0.01334381103515625, -0.039215087890625, 0.0295257568359375, -0.0212860107421875, 0.01473236083984375, 0.01548004150390625, -0.03509521484375, 0.072265625, -0.01947021484375, -0.042877197265625, -0.0028171539306640625, -0.0164794921875, 0.0367431640625, -0.060089111328125, 0.01291656494140625, 0.0299835205078125, -0.0302276611328125, 0.0158843994140625, 0.0108642578125, -0.0196533203125, 0.0284881591796875, -0.005859375, -0.00605010986328125, 0.02972412109375, -0.0687255859375, 0.004901885986328125, 0.025482177734375, 0.07769775390625, -0.009307861328125, -0.03533935546875, 0.01119232177734375, 0.02752685546875, -0.0296630859375, -0.065185546875, -0.03857421875, -0.0267333984375, -0.00757598876953125, -0.0233612060546875, -0.0015869140625, 0.0155792236328125, -0.035308837890625, -0.0107269287109375, -0.044464111328125, 0.039764404296875, -0.0229034423828125, 0.0014314651489257812, -0.044464111328125, 0.0238800048828125, -0.01092529296875, 0.03765869140625, 0.003543853759765625, 0.1031494140625, 0.0177764892578125, -0.08685302734375, 0.00434112548828125, 0.0299072265625, -0.029754638671875, 0.0272674560546875, 0.01318359375, -0.0207366943359375, -0.010650634765625, -0.0050811767578125, 0.023590087890625, 0.0255126953125, -0.02630615234375, -0.0098114013671875, -0.00234222412109375, -0.006633758544921875, 0.03125, 0.049285888671875, 0.00618743896484375, 0.00885772705078125, 0.061737060546875, -0.027618408203125, 0.03350830078125, 0.0011806488037109375, 0.00994110107421875, 0.0126953125, -0.0111083984375, -0.022308349609375, 0.004055023193359375, -0.0141754150390625, -0.01279449462890625, 0.00832366943359375, 0.0247650146484375, 0.02191162109375, -0.009521484375, -0.02642822265625, -0.058563232421875, 0.00121307373046875, 0.004390716552734375, -0.0114898681640625, -0.004604339599609375, -0.0186309814453125, 0.006988525390625, -0.034881591796875, 0.0186920166015625, -0.0789794921875, -0.0271759033203125, 0.035125732421875, -0.01045989990234375, -0.007427215576171875, -0.00852203369140625, -0.006526947021484375, 0.005847930908203125, 0.035858154296875, -0.0172576904296875, -0.040283203125, -0.018341064453125, 0.0304718017578125, -0.0736083984375, -0.04278564453125, 0.031829833984375, 0.00922393798828125, -0.07452392578125, -0.0013074874877929688, -0.003875732421875, -0.04046630859375, -0.031768798828125, -0.01157379150390625, -0.07611083984375, -0.0278167724609375, 0.0205535888671875, -0.004238128662109375, 0.005786895751953125, 0.0123138427734375, -0.0118560791015625, 0.00677490234375, 0.0017099380493164062, -0.032196044921875, -0.048065185546875, -0.0265045166015625, -0.0241546630859375, 0.054534912109375, 0.029693603515625, -0.005130767822265625, -0.00733184814453125, 0.0278167724609375, 0.054412841796875, 0.01354217529296875, 0.0175018310546875, -0.057769775390625, 0.0665283203125, 0.038543701171875, 0.0158233642578125, 0.0194549560546875, -0.004077911376953125, 0.009033203125, -0.0311126708984375, 0.032073974609375, -0.0104827880859375, -0.024505615234375, 0.0179595947265625, -0.046844482421875, -0.01165008544921875, 0.0027523040771484375, 0.00011676549911499023, 0.00731658935546875, -0.0177154541015625, 0.0252838134765625, -0.007297515869140625, -0.01678466796875, 0.008514404296875, -0.02569580078125, -0.013427734375, 0.00754547119140625, 0.033966064453125, 0.026824951171875, -0.0256500244140625, 0.00841522216796875, 0.0223541259765625, 0.0247344970703125, 0.028106689453125, 0.0001329183578491211, -0.032989501953125, -0.028717041015625, 0.042510986328125, 0.005199432373046875, 0.036865234375, -0.037994384765625, 0.046844482421875, 0.0198211669921875, 0.02459716796875, -0.005603790283203125, 0.036285400390625, -0.02532958984375, -0.0002522468566894531, 0.00923919677734375, -0.03363037109375, 0.04229736328125, 0.02642822265625, -0.0193328857421875, 0.03826904296875, -0.00888824462890625, -0.0191497802734375, 0.0003325939178466797, 0.022064208984375, 0.0360107421875, 0.0264434814453125, 0.00322723388671875, 0.0267333984375, 0.031463623046875, 0.01079559326171875, -0.0115203857421875, 0.01415252685546875, -0.005489349365234375, 0.0133819580078125, 0.057525634765625, 0.0161285400390625, -0.041656494140625, -0.01800537109375, 0.033355712890625, 0.02862548828125, -0.027069091796875, 0.00995635986328125, 0.007297515869140625, -0.007213592529296875, -0.00916290283203125, -0.04156494140625, 0.011383056640625, 0.05987548828125, -0.031646728515625, 0.0011701583862304688, -0.02435302734375, 0.0204925537109375, -0.036834716796875, -0.0269317626953125, 0.0026760101318359375, -0.0243988037109375, 0.040557861328125, -0.0267486572265625, 0.00601959228515625, -0.00479888916015625, -0.015869140625, 0.049591064453125, 0.05621337890625, 0.020782470703125, 0.0168914794921875, -0.040557861328125, -0.01194000244140625, -0.0059814453125, -0.01541900634765625, -0.04248046875, -0.0926513671875, 0.020751953125, 0.039794921875, -0.0241851806640625, 0.041259765625, 0.01910400390625, 0.0736083984375, -0.03863525390625, 0.024261474609375, 0.0267791748046875, -0.01468658447265625, -0.03326416015625, 0.05242919921875, 0.05657958984375, 0.041961669921875, -0.022613525390625, 0.0523681640625, -0.052978515625, 0.00783538818359375, 0.054931640625, 0.0221710205078125, -0.040771484375, -0.05267333984375, 0.026092529296875, -0.01279449462890625, -0.0160064697265625, -0.006336212158203125, -0.0017461776733398438, -0.008544921875, -0.0206146240234375, 0.036712646484375, -0.017333984375, 0.00921630859375, -0.04742431640625, -0.005718231201171875, -0.08953857421875, -0.004810333251953125, 0.07379150390625, 0.045654296875, -0.0770263671875, 0.00011980533599853516, -0.0404052734375, -0.01258087158203125, -0.044586181640625, -0.048065185546875, -0.05682373046875, -0.00992584228515625, 0.035003662109375, 0.03302001953125, -0.0006260871887207031, -0.029754638671875, -0.007778167724609375, 0.004749298095703125, 0.012481689453125, 0.0767822265625, -0.00714874267578125, 0.10748291015625, 0.01079559326171875, 0.0750732421875, 0.0218353271484375, 0.0579833984375, -0.01441192626953125, -0.02880859375, 0.01110076904296875, -0.01119232177734375, -0.024261474609375, -0.0340576171875, 0.01119232177734375, 0.005523681640625, 0.033538818359375, -0.023834228515625, -0.036468505859375, -0.0288848876953125, -0.00823974609375, -0.02496337890625, 0.0811767578125, -0.0215911865234375, -0.05181884765625, -0.0023708343505859375, -0.050537109375, -0.01052093505859375, 0.003124237060546875, 0.0240020751953125, 0.0167236328125, -0.0301666259765625, 0.00666046142578125, 0.0452880859375, -0.006572723388671875, 0.04974365234375, 0.06304931640625, -0.0180816650390625, 0.037841796875, 0.0027618408203125, 0.00580596923828125, 0.0242156982421875, 0.00768280029296875, -0.0302734375, -0.0175933837890625, 0.005931854248046875, -0.0170440673828125, -0.00301361083984375, -0.01151275634765625, -0.0111083984375, 0.01169586181640625, 0.016845703125, 0.02496337890625, -0.06842041015625, 0.0114593505859375, -0.01385498046875, -0.01302337646484375, 0.0129241943359375, -0.0146484375, -0.0024929046630859375, -0.03228759765625, 0.0171966552734375, 0.00849151611328125, -0.02532958984375, -0.00139617919921875, -0.0016298294067382812, 0.00164031982421875, -0.0234222412109375, 0.041717529296875, 0.0214996337890625, -0.092041015625, 0.0391845703125, 0.073974609375, -0.0202789306640625, -0.0428466796875, 0.0206451416015625, 0.0171661376953125, -0.0300445556640625, -0.06903076171875, 0.01299285888671875, 0.043670654296875, -0.01012420654296875, -0.0288238525390625, -0.00322723388671875, 0.00893402099609375, 0.039093017578125, -0.0304718017578125, -0.0008454322814941406, 0.02203369140625, 0.00894927978515625, -0.0121307373046875, -0.022216796875, 0.057952880859375, 0.019378662109375, -0.07763671875, 0.0285491943359375, -0.0259857177734375, -0.038055419921875, -0.006671905517578125, -0.041595458984375, 0.042724609375, -0.05096435546875, 0.0121002197265625, 0.0182037353515625, 0.0018720626831054688, 0.0146942138671875, 0.01751708984375, 0.03875732421875, -0.0207061767578125, -0.016387939453125, 0.0305023193359375, -0.02972412109375, -0.007541656494140625, 0.029937744140625, -0.0284576416015625, 0.1368408203125, 0.0189666748046875, -0.023345947265625, 0.007785797119140625, 0.066650390625, -0.051513671875, 0.0537109375, -0.051910400390625, 0.036285400390625, -0.0216522216796875, 0.03424072265625, -0.03955078125, 0.01114654541015625, -0.012847900390625, -0.00885009765625, 0.00902557373046875, -0.0005450248718261719, 0.0014667510986328125, 0.0233612060546875, 0.048614501953125, 0.039703369140625, 0.0048065185546875, 0.0146026611328125, -0.02191162109375, -0.0181121826171875, -0.0015611648559570312, 0.03875732421875, 0.033477783203125, -0.0130462646484375, -0.06695556640625, 0.0118408203125, -0.0162811279296875, -0.0526123046875, 0.003292083740234375, -0.041717529296875, -0.01058197021484375, 0.003246307373046875, -0.0154266357421875, -0.0275115966796875, -0.01435089111328125, 0.04461669921875, 0.03857421875, 0.0101776123046875, 0.0193634033203125, -0.030303955078125, 0.0491943359375, 0.0101165771484375, -0.0011072158813476562, 0.00542449951171875, 0.01678466796875, -0.01873779296875, -0.05560302734375, -0.0174102783203125, -0.0312347412109375, -0.00647735595703125, 0.0026645660400390625, 0.0160675048828125, 0.00518798828125, -0.0088958740234375, 0.075439453125, 0.041717529296875, 0.0117645263671875, -0.037872314453125, -0.01047515869140625, 0.0093536376953125, 0.004039764404296875, -0.003292083740234375, -0.0240936279296875, -0.0100555419921875, -0.00865936279296875, 0.00395965576171875, 0.0172882080078125, -0.0137939453125, 0.0203704833984375, -0.00812530517578125, 0.021942138671875, 0.0389404296875, -0.008819580078125, 0.004817962646484375, -0.032257080078125, -0.0004978179931640625, 0.01837158203125, 0.0487060546875, 0.006259918212890625, 0.016998291015625, -0.00759124755859375, -0.016632080078125, 0.032073974609375, 0.001392364501953125, -0.047760009765625, -0.028076171875, -0.036163330078125, -0.081787109375, -0.005405426025390625, 0.046966552734375, 0.047393798828125, 0.023529052734375, 0.0516357421875, 0.03753662109375, 0.00650787353515625, 0.0102081298828125, 0.06982421875, -0.007701873779296875, -0.051544189453125, 0.006847381591796875, -0.020782470703125, 0.01096343994140625, 0.00024366378784179688, -0.00685882568359375, 0.07086181640625, -0.00868988037109375, -0.0168304443359375, 0.00492095947265625, -0.00406646728515625, -0.03228759765625, -0.026031494140625, 0.00829315185546875, 0.0237274169921875, 0.00213623046875, -0.05584716796875, -0.01534271240234375, -0.01340484619140625, 0.003139495849609375, 0.009033203125, 0.03955078125, 0.0202178955078125, 0.0006418228149414062, -0.0171966552734375, 0.019195556640625, 0.039642333984375, -0.02960205078125, -0.0167694091796875, -0.018768310546875, 0.0186004638671875, -0.0107879638671875, -0.03631591796875, -0.022064208984375, 0.003963470458984375, 0.035675048828125, -0.0154876708984375, 0.054046630859375, -0.024261474609375, 0.0203704833984375, 0.0496826171875, -0.007762908935546875, 0.007904052734375, 0.035858154296875, -0.0305023193359375, -0.0494384765625, 0.0185089111328125, 0.0007357597351074219, -0.053802490234375, 0.0261077880859375, 0.045013427734375, 0.003475189208984375, 0.04534912109375, -0.00746917724609375, 0.007762908935546875, -0.02947998046875, 0.03448486328125, -0.0131683349609375, -0.004207611083984375, 0.0083770751953125, -0.00907135009765625, 0.0298614501953125, 0.0225372314453125, 0.01061248779296875, 0.00957489013671875, 0.0003619194030761719, -0.03936767578125, -0.005237579345703125, -0.010101318359375, -0.038604736328125, 0.01427459716796875, 0.044525146484375, -0.013519287109375, 0.024566650390625, -0.014892578125, -0.023040771484375, 0.0318603515625, 0.0131378173828125, 0.0109405517578125, -0.033416748046875, 0.01276397705078125, 0.015869140625, 0.006137847900390625, -0.017120361328125, -0.0080718994140625, 0.050140380859375, -0.02239990234375, -0.019866943359375, -0.01548004150390625, -0.0206146240234375, -0.034515380859375, -0.003749847412109375, 0.01343536376953125, -0.00620269775390625, -0.0194854736328125, -0.0203704833984375, -0.0162200927734375, 0.02105712890625, -0.01568603515625, 0.01568603515625, -0.0021800994873046875, -0.042510986328125, -0.0062103271484375, -0.0158538818359375, -0.01824951171875, 0.018768310546875, 0.0699462890625, -0.0227203369140625, -0.044464111328125, -0.036956787109375, 0.00960540771484375, -0.07415771484375, -0.0089263916015625, 0.0178375244140625, 0.01099395751953125, -0.061279296875, -0.0156707763671875, -0.04302978515625, 0.033935546875, -0.033172607421875, -0.022552490234375, -0.0020122528076171875, 0.02764892578125, -0.02020263671875, -0.00806427001953125, 0.0178375244140625, 0.022003173828125, -0.044342041015625, -0.03961181640625, -0.006439208984375, -0.004375457763671875, -0.055633544921875, -0.06732177734375, 0.007434844970703125, -0.0024242401123046875, -0.028472900390625, -0.08782958984375, 0.0201873779296875, 0.0311126708984375, -0.0552978515625, -0.053802490234375, 0.015899658203125, -0.02166748046875, 0.04632568359375, 0.01015472412109375, 0.0335693359375, 0.014801025390625, 0.01438140869140625, -0.018280029296875, 0.01263427734375, 0.00811767578125, -0.004589080810546875, 0.04571533203125, -0.055511474609375, 0.049774169921875, 0.01171112060546875, -0.059906005859375, -0.043670654296875, 0.008819580078125, 0.034088134765625, -0.006336212158203125, -0.0192108154296875, -0.04522705078125, 0.0025482177734375, 0.08111572265625, 0.07196044921875, 0.0303192138671875, -0.049652099609375, -0.06500244140625, -0.039031982421875, -0.0286865234375, -0.001697540283203125, 0.01739501953125, -0.0640869140625, 0.027130126953125, -0.01177978515625, -0.0108642578125, -0.006290435791015625, 0.0284881591796875, -0.026702880859375, -0.00574493408203125, 0.00621795654296875, -0.0015993118286132812, -0.0716552734375, -0.0308685302734375, 0.054443359375, -0.03619384765625, -0.01277923583984375, 0.005016326904296875, 0.0192108154296875, 0.01465606689453125, 0.0182952880859375, 0.038665771484375, 0.045562744140625, -0.032867431640625, -0.0272216796875, 0.04180908203125, -0.007617950439453125, -0.004314422607421875, -0.041046142578125, 0.01715087890625, 0.0002338886260986328, -0.0306854248046875, -0.01184844970703125, 0.0567626953125, -0.0240020751953125, -0.038360595703125, 0.05224609375, 0.0013828277587890625, 0.07244873046875, -0.00867462158203125, 0.048004150390625, 0.004970550537109375, -0.0135650634765625, 0.0030689239501953125, 0.0190582275390625, 0.00495147705078125, -0.0000737905502319336, 0.031219482421875, -0.0176849365234375, 0.00872802734375, -0.037628173828125, -0.0025386810302734375, 0.007022857666015625 ]
27ba06317a881246e4138a0ff631da1b3ba631fe
Wordpress Stackexchange Q: Find out total number of pages in global query on archive page? I'm trying to find out whether there is more than one page of posts (I've set my posts per blog page to 5 in the reading settings) in a custom category template. I would think the global query would have the total number of pages as a property but I can't find the call to it. A: global $wp_query; echo $wp_query->max_num_pages; This shows the number of pages for the current query. If you want to determine the actual number of posts found by the current query, you may use $wp_query->found_posts Source:- http://codex.wordpress.org/Class_Reference/WP_Query
Q: Find out total number of pages in global query on archive page? I'm trying to find out whether there is more than one page of posts (I've set my posts per blog page to 5 in the reading settings) in a custom category template. I would think the global query would have the total number of pages as a property but I can't find the call to it. A: global $wp_query; echo $wp_query->max_num_pages; This shows the number of pages for the current query. If you want to determine the actual number of posts found by the current query, you may use $wp_query->found_posts Source:- http://codex.wordpress.org/Class_Reference/WP_Query A: To this day, Mridul Aggarwal answer is not only valid, but vital to use the_posts_pagination() function in some loops scenarios global $wp_query; the_posts_pagination();
wordpress
{ "language": "en", "length": 129, "provenance": "stackexchange_00019.jsonl.gz:425856", "question_score": "25", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72765" }
[ 0.0115966796875, -0.018280029296875, -0.01360321044921875, 0.004108428955078125, -0.00586700439453125, -0.035736083984375, 0.047515869140625, 0.0015573501586914062, 0.019927978515625, -0.0231475830078125, -0.0308837890625, -0.0024929046630859375, -0.0253448486328125, -0.0321044921875, 0.033355712890625, -0.030548095703125, 0.053375244140625, -0.0404052734375, 0.003566741943359375, -0.005512237548828125, -0.0007905960083007812, 0.02557373046875, 0.0135650634765625, 0.057952880859375, 0.004032135009765625, 0.02020263671875, 0.0667724609375, -0.0290069580078125, -0.0025348663330078125, -0.044036865234375, 0.0182037353515625, 0.0207977294921875, 0.0401611328125, -0.0280609130859375, 0.0058135986328125, -0.004207611083984375, -0.0070648193359375, -0.00411224365234375, -0.0015764236450195312, 0.0076751708984375, 0.0179290771484375, -0.019775390625, 0.01715087890625, -0.0086669921875, 0.01239013671875, -0.01364898681640625, 0.0090484619140625, -0.0670166015625, 0.034149169921875, -0.0284423828125, -0.0170440673828125, 0.0477294921875, -0.0020542144775390625, -0.01531219482421875, -0.009033203125, 0.02850341796875, 0.0477294921875, -0.01407623291015625, 0.054840087890625, -0.0882568359375, -0.07403564453125, -0.029022216796875, 0.06597900390625, 0.0139312744140625, -0.02606201171875, 0.01558685302734375, 0.0008597373962402344, 0.01546478271484375, 0.0121612548828125, -0.054351806640625, -0.0211029052734375, 0.01107025146484375, 0.00872039794921875, 0.0242462158203125, 0.00092315673828125, -0.0689697265625, 0.0182037353515625, -0.03631591796875, 0.007205963134765625, 0.0484619140625, -0.0011157989501953125, -0.01062774658203125, -0.068359375, -0.00409698486328125, 0.004695892333984375, 0.01544952392578125, -0.01611328125, -0.0081634521484375, -0.0233154296875, -0.02178955078125, -0.005374908447265625, -0.0213470458984375, -0.0262298583984375, -0.0026454925537109375, -0.00487518310546875, -0.0295867919921875, 0.004421234130859375, 0.05426025390625, -0.024505615234375, -0.03546142578125, -0.019134521484375, -0.00240325927734375, -0.050445556640625, -0.023406982421875, 0.01303863525390625, 0.02069091796875, 0.036285400390625, 0.037811279296875, 0.05145263671875, 0.00429534912109375, -0.00650787353515625, 0.072509765625, -0.02410888671875, -0.001064300537109375, -0.031036376953125, 0.0161285400390625, -0.0433349609375, 0.00621795654296875, -0.00539398193359375, 0.006175994873046875, -0.01258087158203125, 0.0200653076171875, -0.032958984375, -0.01312255859375, 0.01479339599609375, -0.0168304443359375, -0.000820159912109375, 0.0007681846618652344, 0.031982421875, 0.0703125, -0.02001953125, 0.00542449951171875, -0.024810791015625, -0.045684814453125, -0.0535888671875, -0.013763427734375, -0.0143280029296875, -0.000048100948333740234, 0.01434326171875, 0.005462646484375, -0.0195465087890625, -0.04010009765625, 0.0271148681640625, -0.00959014892578125, 0.0031948089599609375, 0.0041046142578125, 0.035369873046875, 0.040679931640625, -0.0268707275390625, -0.0657958984375, 0.0361328125, 0.0440673828125, 0.045013427734375, -0.003215789794921875, -0.067626953125, -0.04461669921875, -0.03363037109375, -0.01385498046875, -0.00556182861328125, -0.0274810791015625, 0.0213775634765625, 0.005710601806640625, 0.0152435302734375, -0.0035953521728515625, -0.02520751953125, -0.006893157958984375, -0.0335693359375, -0.012786865234375, 0.0149688720703125, 0.007488250732421875, 0.0018606185913085938, -0.0145111083984375, 0.049835205078125, -0.01153564453125, -0.0333251953125, 0.00865936279296875, -0.00618743896484375, -0.0218963623046875, 0.0146026611328125, 0.04693603515625, -0.007366180419921875, -0.0158538818359375, 0.020477294921875, -0.0090179443359375, -0.0137176513671875, 0.0004410743713378906, 0.0194244384765625, 0.013580322265625, -0.0126495361328125, 0.0165252685546875, 0.02435302734375, 0.03228759765625, -0.0206146240234375, -0.0009741783142089844, 0.01532745361328125, -0.0020751953125, -0.02496337890625, 0.0029754638671875, -0.0016031265258789062, -0.0122528076171875, 0.034637451171875, 0.01300811767578125, -0.01904296875, 0.016845703125, -0.0421142578125, 0.00311279296875, 0.00533294677734375, 0.004810333251953125, -0.0209503173828125, 0.032012939453125, 0.0390625, 0.00479888916015625, -0.033172607421875, -0.01369476318359375, -0.0084686279296875, -0.006500244140625, 0.01064300537109375, -0.02069091796875, -0.035430908203125, -0.01049041748046875, -0.033538818359375, -0.0186614990234375, -0.053802490234375, 0.050872802734375, 0.06500244140625, -0.035980224609375, -0.0180816650390625, -0.04168701171875, 0.026580810546875, 0.0061798095703125, -0.0889892578125, 0.03546142578125, 0.032135009765625, 0.04595947265625, -0.00960540771484375, -0.022247314453125, -0.01702880859375, -0.07537841796875, 0.0197296142578125, 0.059173583984375, 0.053802490234375, 0.035797119140625, 0.00998687744140625, -0.028533935546875, 0.05706787109375, -0.07672119140625, -0.003910064697265625, -0.022613525390625, 0.018524169921875, 0.045196533203125, 0.031097412109375, -0.01024627685546875, 0.0147857666015625, 0.021636962890625, 0.02386474609375, 0.00232696533203125, 0.040283203125, 0.041107177734375, -0.04388427734375, 0.041259765625, -0.01214599609375, 0.018280029296875, -0.016387939453125, 0.0014181137084960938, 0.00012010335922241211, 0.0230255126953125, 0.0245819091796875, 0.032501220703125, -0.015228271484375, 0.0003151893615722656, 0.01209259033203125, 0.0015439987182617188, 0.0083160400390625, -0.052032470703125, -0.049346923828125, 0.0023365020751953125, -0.041961669921875, 0.043365478515625, 0.035186767578125, -0.047760009765625, -0.025054931640625, 0.02978515625, -0.046173095703125, -0.01904296875, -0.036285400390625, -0.06341552734375, 0.00499725341796875, 0.0174713134765625, -0.007213592529296875, 0.0213470458984375, 0.0260009765625, 0.04180908203125, -0.01751708984375, 0.03656005859375, -0.0030670166015625, 0.003978729248046875, 0.046875, -0.084716796875, 0.0758056640625, -0.057220458984375, 0.07867431640625, 0.07427978515625, -0.040069580078125, 0.040283203125, 0.006832122802734375, 0.0125885009765625, -0.0006165504455566406, 0.0077056884765625, 0.005786895751953125, 0.00868988037109375, -0.05194091796875, 0.0303802490234375, 0.0159149169921875, -0.0086212158203125, -0.002231597900390625, -0.017242431640625, -0.015716552734375, -0.0123138427734375, -0.09588623046875, -0.0791015625, 0.005718231201171875, -0.09381103515625, 0.00414276123046875, -0.0022068023681640625, -0.050689697265625, -0.016448974609375, 0.042938232421875, 0.017822265625, -0.0147857666015625, -0.0389404296875, -0.061492919921875, -0.08026123046875, -0.086181640625, -0.02911376953125, 0.01044464111328125, 0.0201263427734375, -0.00434112548828125, 0.0889892578125, -0.01160430908203125, -0.09173583984375, -0.0584716796875, 0.024871826171875, -0.032012939453125, -0.01506805419921875, 0.00875091552734375, -0.0023136138916015625, -0.0192108154296875, 0.009429931640625, -0.007251739501953125, 0.0302581787109375, -0.01611328125, 0.0030078887939453125, 0.00691986083984375, -0.01580810546875, 0.02728271484375, 0.021270751953125, -0.021728515625, -0.01227569580078125, 0.02239990234375, -0.045013427734375, -0.056671142578125, -0.0016193389892578125, -0.055816650390625, 0.0152435302734375, 0.039031982421875, -0.004886627197265625, -0.00832366943359375, 0.003025054931640625, -0.002437591552734375, -0.01306915283203125, 0.020599365234375, -0.033477783203125, 0.03228759765625, -0.0015621185302734375, 0.00580596923828125, -0.00046062469482421875, 0.033660888671875, -0.0232086181640625, 0.004062652587890625, 0.01116943359375, 0.006000518798828125, 0.025146484375, -0.0196990966796875, 0.02490234375, -0.05157470703125, 0.042510986328125, 0.0283966064453125, 0.01068115234375, -0.0025119781494140625, -0.037322998046875, 0.0038318634033203125, 0.0650634765625, -0.030364990234375, -0.038238525390625, -0.026275634765625, 0.00689697265625, 0.0020656585693359375, -0.030517578125, 0.0350341796875, -0.03668212890625, -0.0648193359375, 0.0032405853271484375, -0.013458251953125, -0.0252227783203125, -0.0157318115234375, 0.0209503173828125, -0.035064697265625, -0.034515380859375, 0.024688720703125, -0.01129913330078125, -0.013946533203125, 0.0085601806640625, -0.038726806640625, 0.0020999908447265625, -0.0198211669921875, -0.01517486572265625, -0.078857421875, -0.0190887451171875, 0.001010894775390625, 0.043731689453125, 0.0079498291015625, -0.04583740234375, -0.00441741943359375, 0.03509521484375, 0.0204010009765625, 0.038818359375, 0.00659942626953125, 0.0033245086669921875, 0.01143646240234375, -0.0148162841796875, 0.0223236083984375, -0.037078857421875, 0.006561279296875, -0.0048980712890625, -0.0127410888671875, -0.0012187957763671875, -0.052490234375, -0.03173828125, -0.034423828125, -0.0227203369140625, -0.040802001953125, -0.00739288330078125, 0.00028395652770996094, 0.0275726318359375, -0.00347900390625, -0.0016164779663085938, -0.0084075927734375, -0.04058837890625, 0.03668212890625, 0.060699462890625, -0.046478271484375, 0.0203399658203125, 0.046478271484375, 0.009124755859375, -0.039276123046875, -0.143310546875, 0.012359619140625, 0.0266571044921875, -0.0010623931884765625, 0.043121337890625, 0.0136260986328125, -0.006103515625, 0.0323486328125, -0.0005102157592773438, -0.01141357421875, -0.018035888671875, 0.025360107421875, -0.017913818359375, -0.033660888671875, 0.01432037353515625, -0.047454833984375, 0.038909912109375, 0.003475189208984375, -0.0276336669921875, -0.007965087890625, 0.00920867919921875, 0.048980712890625, -0.03741455078125, 0.06097412109375, -0.00848388671875, -0.0161285400390625, 0.00504302978515625, -0.0009775161743164062, 0.044708251953125, 0.0246124267578125, -0.0012674331665039062, 0.0111846923828125, 0.0126495361328125, -0.00010389089584350586, 0.053009033203125, 0.0572509765625, -0.0005764961242675781, 0.04620361328125, 0.015960693359375, -0.018310546875, 0.0072174072265625, 0.007843017578125, 0.0078125, -0.027435302734375, -0.048492431640625, -0.006397247314453125, -0.0127410888671875, -0.04095458984375, 0.04083251953125, -0.01256561279296875, 0.05462646484375, 0.0039520263671875, -0.027374267578125, -0.01824951171875, -0.01204681396484375, -0.0601806640625, -0.0535888671875, 0.01178741455078125, -0.01202392578125, 0.0032901763916015625, 0.00878143310546875, 0.08203125, -0.02593994140625, 0.053680419921875, -0.0163726806640625, -0.017364501953125, -0.032928466796875, 0.056732177734375, 0.037994384765625, -0.036407470703125, 0.006591796875, 0.0245513916015625, -0.0021419525146484375, -0.01224517822265625, -0.0236053466796875, 0.0462646484375, 0.022186279296875, 0.0167083740234375, 0.0188140869140625, -0.0270843505859375, 0.002445220947265625, -0.04449462890625, 0.0201568603515625, 0.0139007568359375, -0.01485443115234375, -0.043548583984375, -0.038299560546875, 0.0218048095703125, 0.025146484375, -0.0139617919921875, 0.0023097991943359375, -0.0246734619140625, 0.0190887451171875, 0.02117919921875, -0.0118865966796875, -0.0021114349365234375, -0.0029296875, -0.06402587890625, -0.01947021484375, 0.0031280517578125, -0.01488494873046875, -0.0146484375, -0.00640869140625, -0.035614013671875, 0.0272674560546875, -0.0227508544921875, 0.037841796875, -0.0046539306640625, -0.0268096923828125, 0.01226806640625, 0.0215301513671875, 0.0584716796875, 0.037261962890625, -0.0182952880859375, -0.019622802734375, -0.033294677734375, -0.022705078125, 0.06317138671875, 0.033782958984375, -0.026763916015625, 0.0004391670227050781, 0.0224761962890625, 0.01837158203125, 0.0081024169921875, -0.03875732421875, -0.0281219482421875, 0.0023174285888671875, 0.037384033203125, 0.02569580078125, -0.022125244140625, 0.06414794921875, -0.0164031982421875, -0.004314422607421875, -0.01031494140625, 0.041351318359375, 0.029876708984375, -0.01335906982421875, 0.036224365234375, -0.022796630859375, -0.030609130859375, 0.003719329833984375, -0.0394287109375, -0.057891845703125, -0.02203369140625, -0.0172271728515625, 0.0031337738037109375, -0.0218048095703125, 0.006389617919921875, -0.01343536376953125, 0.005603790283203125, -0.0002605915069580078, -0.0288238525390625, 0.059478759765625, 0.0020427703857421875, 0.01197052001953125, 0.0021305084228515625, -0.033843994140625, 0.04290771484375, 0.010009765625, 0.041961669921875, -0.027923583984375, -0.052978515625, 0.063720703125, 0.058074951171875, 0.0025787353515625, 0.033447265625, -0.0080718994140625, 0.001827239990234375, -0.0004150867462158203, -0.0168304443359375, -0.01457977294921875, -0.006549835205078125, 0.00498199462890625, -0.0189666748046875, -0.003772735595703125, -0.0003592967987060547, -0.0174102783203125, 0.005542755126953125, 0.006137847900390625, 0.033233642578125, -0.0026798248291015625, 0.007167816162109375, 0.002185821533203125, -0.00787353515625, 0.0190277099609375, 0.01090240478515625, -0.035400390625, -0.04638671875, 0.046051025390625, -0.01035308837890625, 0.005344390869140625, 0.02825927734375, 0.00806427001953125, -0.0209808349609375, -0.016693115234375, 0.022308349609375, 0.0280914306640625, -0.027984619140625, 0.0447998046875, 0.01184844970703125, 0.020904541015625, -0.007720947265625, 0.0069732666015625, 0.0006899833679199219, 0.01537322998046875, -0.01329803466796875, 0.061798095703125, -0.042236328125, 0.0196533203125, 0.00005614757537841797, -0.002132415771484375, 0.001628875732421875, 0.04852294921875, -0.0252685546875, 0.017059326171875, 0.0288848876953125, -0.044921875, -0.06646728515625, 0.009490966796875, 0.03192138671875, 0.03399658203125, -0.01345062255859375, 0.033233642578125, -0.053955078125, -0.00952911376953125, -0.00693511962890625, -0.0219879150390625, 0.05999755859375, -0.03271484375, 0.0011224746704101562, 0.022979736328125, 0.007404327392578125, -0.0084991455078125, 0.0012331008911132812, 0.0277252197265625, -0.0361328125, 0.02374267578125, 0.0257110595703125, 0.0428466796875, -0.0142059326171875, 0.032470703125, -0.054412841796875, 0.07244873046875, -0.023956298828125, 0.0174560546875, 0.0087127685546875, 0.0262451171875, -0.012176513671875, 0.0184173583984375, -0.0673828125, 0.06732177734375, 0.001300811767578125, 0.07330322265625, -0.07330322265625, -0.00997161865234375, 0.02960205078125, 0.03363037109375, 0.0396728515625, -0.0034236907958984375, 0.014678955078125, -0.0202789306640625, 0.009796142578125, 0.038665771484375, -0.00914764404296875, 0.0093841552734375, 0.038177490234375, 0.0263214111328125, 0.052490234375, -0.041107177734375, 0.01446533203125, -0.0284576416015625, 0.032501220703125, 0.059295654296875, 0.0113067626953125, 0.00873565673828125, 0.018829345703125, 0.0038890838623046875, -0.01488494873046875, 0.006011962890625, -0.004344940185546875, 0.0024662017822265625, -0.0093841552734375, 0.055877685546875, 0.0180511474609375, -0.08148193359375, -0.04095458984375, -0.0313720703125, 0.03448486328125, -0.0209808349609375, 0.03369140625, 0.036468505859375, 0.0239410400390625, 0.048858642578125, -0.03265380859375, 0.009765625, -0.00812530517578125, -0.038177490234375, 0.06610107421875, 0.02825927734375, 0.0270843505859375, -0.040130615234375, -0.00926971435546875, 0.0287017822265625, 0.071044921875, -0.050140380859375, -0.056640625, 0.014129638671875, 0.02008056640625, -0.01082611083984375, 0.0121307373046875, -0.01009368896484375, 0.03985595703125, 0.0987548828125, -0.01052093505859375, -0.037994384765625, 0.0172271728515625, 0.003688812255859375, 0.0009450912475585938, -0.0018749237060546875, 0.0263214111328125, -0.04974365234375, -0.002132415771484375, -0.045562744140625, 0.0237884521484375, 0.038726806640625, 0.02166748046875, 0.0129547119140625, -0.0154266357421875, -0.007579803466796875, -0.0307159423828125, 0.033172607421875, -0.0184783935546875, 0.0377197265625, -0.04937744140625, -0.0352783203125, -0.003765106201171875, 0.04034423828125, 0.024993896484375, -0.06591796875, 0.01763916015625, 0.060943603515625, -0.0200958251953125, -0.02655029296875, 0.0253753662109375, 0.0025615692138671875, -0.01209259033203125, -0.032012939453125, 0.031982421875, 0.00970458984375, 0.0126953125, -0.00926971435546875, 0.054229736328125, 0.005496978759765625, 0.03173828125, -0.0000476837158203125, 0.032318115234375, -0.0173187255859375, 0.0191802978515625, 0.040771484375, 0.0380859375, 0.060394287109375, -0.0723876953125, -0.01212310791015625, -0.0479736328125, -0.00299072265625, 0.04669189453125, 0.0377197265625, -0.0290679931640625, 0.0110931396484375, 0.0024261474609375, 0.01035308837890625, 0.00963592529296875, -0.040802001953125, 0.01453399658203125, 0.0243072509765625, 0.017578125, 0.0301971435546875, -0.03863525390625, -0.04742431640625, 0.008331298828125, 0.0379638671875, 0.0099334716796875, 0.026824951171875, 0.00980377197265625, 0.0171966552734375, 0.0092620849609375, 0.017059326171875, -0.00991058349609375, 0.0161590576171875, 0.0190582275390625, 0.0035419464111328125, -0.003322601318359375, -0.01297760009765625, -0.055633544921875, 0.0102996826171875, 0.055938720703125, -0.0069427490234375, 0.00959014892578125, -0.0108184814453125, 0.0208587646484375, -0.028106689453125, -0.0126800537109375, -0.02081298828125, 0.0357666015625, 0.03546142578125, -0.030181884765625, 0.0254364013671875, -0.0294342041015625, -0.00847625732421875, 0.06683349609375, -0.020355224609375, -0.027252197265625, 0.0223236083984375, -0.0574951171875, 0.0191192626953125, 0.0347900390625, -0.018768310546875, 0.0172119140625, 0.0164794921875, -0.01995849609375, 0.019805908203125, 0.0160064697265625, 0.0039825439453125, 0.0145416259765625, -0.001079559326171875, -0.00727081298828125, -0.037109375, 0.0260009765625, -0.0072479248046875, -0.0081939697265625, -0.034942626953125, 0.018646240234375, -0.006603240966796875, -0.005298614501953125, -0.029388427734375, -0.038360595703125, 0.01806640625, 0.0265045166015625, 0.00861358642578125, 0.01062774658203125, -0.0201263427734375, -0.0229034423828125, 0.0003769397735595703, 0.0047760009765625, -0.041473388671875, 0.03131103515625, -0.02410888671875, -0.006023406982421875, -0.037139892578125, -0.024658203125, 0.017822265625, -0.01174163818359375, -0.029052734375, 0.0450439453125, -0.03741455078125, -0.05169677734375, 0.0267791748046875, 0.01329803466796875, 0.01275634765625, -0.0306549072265625, 0.018951416015625, 0.00907135009765625, 0.03076171875, 0.0516357421875, 0.031646728515625, 0.0239715576171875, 0.0509033203125, 0.0043182373046875, -0.04730224609375, -0.061859130859375, 0.0160675048828125, -0.01549530029296875, 0.007659912109375, 0.0103912353515625, 0.0038909912109375, 0.040374755859375, -0.0238037109375, -0.084228515625, 0.0194091796875, -0.02001953125, -0.040008544921875, -0.05517578125, -0.00743865966796875, 0.00577545166015625, 0.001007080078125, -0.007724761962890625, -0.003803253173828125, -0.0304107666015625, 0.0210113525390625, 0.0270233154296875, 0.00464630126953125, 0.032073974609375, -0.0002684593200683594, -0.0765380859375, 0.01093292236328125, -0.01035308837890625, 0.036041259765625, 0.0139617919921875, -0.0105133056640625, 0.011016845703125, 0.0210113525390625, -0.05682373046875, -0.031951904296875, -0.01361083984375, 0.0259857177734375, 0.01140594482421875, 0.00494384765625, -0.03533935546875, -0.01971435546875, 0.047454833984375, 0.0242919921875, 0.020751953125, -0.014862060546875, -0.00409698486328125, -0.0110321044921875, -0.03839111328125, -0.006702423095703125, 0.01255035400390625, -0.037139892578125, 0.00992584228515625, -0.022247314453125, -0.0263519287109375, -0.01093292236328125, -0.0110626220703125, -0.049560546875, 0.0023365020751953125, -0.028839111328125, 0.011199951171875, -0.01528167724609375, -0.003894805908203125, 0.01041412353515625, -0.024200439453125, -0.0263519287109375, -0.0135040283203125, 0.01375579833984375, -0.0350341796875, -0.0113983154296875, -0.039306640625, 0.032073974609375, -0.0374755859375, 0.0196380615234375, -0.0113372802734375, -0.0258331298828125, -0.04876708984375, 0.048248291015625, 0.01605224609375, 0.01531219482421875, -0.0157012939453125, 0.006275177001953125, -0.0025959014892578125, 0.03399658203125, -0.01456451416015625, 0.051116943359375, 0.013641357421875, 0.054046630859375, 0.01221466064453125, 0.027069091796875, 0.0025577545166015625, -0.01377105712890625, 0.01131439208984375, -0.03985595703125, -0.00885009765625, -0.0006999969482421875, -0.01087188720703125, -0.06610107421875, 0.0157623291015625, 0.00641632080078125, 0.02447509765625, 0.0256805419921875 ]
6f92e24f6265f90b30c51300f2f448abf2325568
Wordpress Stackexchange Q: Is it possible to remove WYSIWYG for a certain Custom Post Type? I dont want to use the WYSIWYG at the top of my Custom Post Type. I want to use a custom field textarea that i can place at bottom of my list of custom fields instead. Is this possible? A: Re: this comment: I am using Custom Types UI in combo with AdvancedCustomFields. The Custom Post Types UI Plugin exposes all of the register_post_type() $args array parameters in its UI. In this case, you simply need to find the Supports section, and disable/uncheck Editor:
Q: Is it possible to remove WYSIWYG for a certain Custom Post Type? I dont want to use the WYSIWYG at the top of my Custom Post Type. I want to use a custom field textarea that i can place at bottom of my list of custom fields instead. Is this possible? A: Re: this comment: I am using Custom Types UI in combo with AdvancedCustomFields. The Custom Post Types UI Plugin exposes all of the register_post_type() $args array parameters in its UI. In this case, you simply need to find the Supports section, and disable/uncheck Editor: A: add_action('init', 'init_remove_support',100); function init_remove_support(){ $post_type = 'your post type'; remove_post_type_support( $post_type, 'editor'); } place it to your themes functions.php A: You can actually disable the WYSIWYG editor, leaving only the html source editor. Choose a function below: // disable wyswyg for custom post type, using the global $post add_filter('user_can_richedit', function( $default ){ global $post; if( $post->post_type === 'product') return false; return $default; }); // disable wyswyg for custom post type, using get_post_type() function add_filter('user_can_richedit', function( $default ){ if( get_post_type() === 'product') return false; return $default; }); A: I will try to do a more complete answer : If you want to remove all the content editor The @Oleg Butuzov answer is good : add_action('init', 'init_remove_support',100); function init_remove_support(){ $post_type = 'your post type'; remove_post_type_support( $post_type, 'editor'); } If you want only disable tinymce but let html toolbars The @biziclop answer is good : add_filter('user_can_richedit', function( $default ){ global $post; if( $post->post_type === 'product') return false; return $default; }); In this case wp-content-editor-tools is already visible because expand-editor.js insert toolbars. If you want to replace the tinymce editor by a simple textarea I found the answer here. function wpse_199918_wp_editor_settings( $settings, $editor_id ) { if ( $editor_id === 'content' && get_current_screen()->post_type === 'custom_post_type' ) { $settings['tinymce'] = false; $settings['quicktags'] = false; $settings['media_buttons'] = false; } return $settings; } add_filter( 'wp_editor_settings', 'wpse_199918_wp_editor_settings', 10, 2 ); A: Alternatively, you can handle post-editor support directly in your register_post_type() call, via the 'supports' parameter in the $args array. The default value is: 'supports' => array( 'title', 'editor' ). You can change it to whatever you need; for example: 'supports' => array( 'title' ). A: Another, more consistent way to disable the WYSIWYG editor, leaving only the html source editor - is to disallow tinymce using "wp_editor_settings" filter for your custom post type. function my_post_type_editor_settings( $settings ) { global $post_type; if ( $post_type == 'my_post_type' ) { $settings[ 'tinymce' ] = false; } return $settings; } add_filter( 'wp_editor_settings', 'my_post_type_editor_settings' );
wordpress
{ "language": "en", "length": 420, "provenance": "stackexchange_00019.jsonl.gz:425885", "question_score": "22", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72865" }
[ 0.0214080810546875, 0.008819580078125, -0.0435791015625, 0.0278472900390625, 0.01363372802734375, -0.04718017578125, 0.06475830078125, -0.002147674560546875, -0.005523681640625, 0.011932373046875, 0.032440185546875, -0.06427001953125, -0.01290130615234375, -0.06121826171875, -0.0244140625, -0.037109375, 0.01206207275390625, 0.01470184326171875, 0.0179901123046875, -0.030975341796875, 0.03717041015625, -0.041168212890625, 0.002079010009765625, 0.051971435546875, 0.014984130859375, 0.02880859375, 0.05010986328125, 0.01300811767578125, -0.005069732666015625, 0.0070037841796875, 0.01012420654296875, -0.0261688232421875, -0.0164794921875, 0.0596923828125, -0.03118896484375, 0.0020160675048828125, 0.0030269622802734375, 0.0391845703125, 0.0355224609375, -0.01242828369140625, 0.0164031982421875, 0.0036296844482421875, -0.021484375, 0.006214141845703125, -0.031097412109375, -0.054290771484375, 0.0276336669921875, -0.0152130126953125, 0.035430908203125, -0.03326416015625, -0.011505126953125, 0.024261474609375, 0.0290679931640625, -0.06854248046875, -0.046417236328125, -0.04815673828125, -0.0308685302734375, -0.01319122314453125, 0.022308349609375, 0.050262451171875, 0.0205535888671875, -0.003353118896484375, -0.005130767822265625, -0.0224151611328125, 0.00041294097900390625, 0.01129150390625, -0.03741455078125, 0.0033435821533203125, -0.05865478515625, 0.000018477439880371094, 0.0401611328125, -0.062408447265625, 0.01259613037109375, -0.02435302734375, 0.01580810546875, -0.0136871337890625, -0.00843048095703125, -0.0272064208984375, 0.01593017578125, 0.006267547607421875, -0.0308380126953125, 0.00788116455078125, -0.012298583984375, -0.038848876953125, -0.0090789794921875, -0.0114898681640625, -0.0294189453125, 0.006801605224609375, -0.01287078857421875, -0.0006299018859863281, -0.007537841796875, -0.036407470703125, -0.030975341796875, 0.05615234375, 0.029144287109375, -0.0165863037109375, 0.04119873046875, -0.007099151611328125, 0.028228759765625, 0.00536346435546875, 0.046905517578125, -0.07818603515625, 0.0596923828125, -0.0341796875, 0.0026569366455078125, 0.028167724609375, -0.046844482421875, -0.028228759765625, 0.052825927734375, 0.0394287109375, 0.023773193359375, -0.0253143310546875, 0.0305633544921875, 0.008026123046875, -0.04107666015625, 0.0172882080078125, 0.0113525390625, -0.005367279052734375, -0.0040435791015625, 0.0401611328125, 0.007770538330078125, 0.01520538330078125, 0.01239013671875, -0.02508544921875, 0.01212310791015625, -0.0068359375, -0.0296783447265625, -0.0178375244140625, 0.0130767822265625, 0.01502227783203125, -0.056121826171875, -0.0010986328125, 0.07684326171875, 0.0460205078125, 0.049560546875, -0.0259552001953125, 0.0284271240234375, -0.0264434814453125, -0.005199432373046875, 0.0242919921875, 0.004302978515625, -0.036468505859375, -0.017333984375, 0.01326751708984375, -0.0121002197265625, 0.03460693359375, 0.01543426513671875, 0.0165557861328125, -0.011444091796875, -0.0821533203125, 0.0272369384765625, -0.045989990234375, 0.0362548828125, 0.0271148681640625, -0.0092620849609375, -0.02703857421875, 0.07672119140625, -0.04718017578125, -0.029144287109375, -0.08428955078125, 0.010955810546875, -0.0152435302734375, -0.01403045654296875, -0.030853271484375, -0.04730224609375, 0.013397216796875, -0.011566162109375, 0.011138916015625, 0.02374267578125, -0.049102783203125, 0.008270263671875, 0.00417327880859375, 0.01421356201171875, 0.01009368896484375, 0.01259613037109375, 0.0380859375, 0.005321502685546875, 0.0122528076171875, 0.02496337890625, 0.034637451171875, -0.007381439208984375, -0.0279541015625, 0.046478271484375, -0.016082763671875, -0.08026123046875, 0.018524169921875, 0.0167999267578125, 0.05792236328125, 0.0273590087890625, 0.0227203369140625, 0.07623291015625, -0.01641845703125, 0.0017938613891601562, -0.01995849609375, 0.00971221923828125, -0.01024627685546875, -0.029754638671875, -0.01548004150390625, -0.01145172119140625, 0.019256591796875, 0.00299072265625, 0.01531982421875, 0.004917144775390625, 0.00707244873046875, -0.054931640625, 0.039764404296875, -0.028533935546875, 0.05047607421875, -0.0303802490234375, 0.0085296630859375, 0.05731201171875, 0.02569580078125, -0.060272216796875, 0.004909515380859375, -0.031829833984375, -0.0170440673828125, 0.009307861328125, 0.06744384765625, 0.01314544677734375, 0.031585693359375, -0.003025054931640625, -0.0192413330078125, 0.018585205078125, -0.0058135986328125, 0.03155517578125, -0.00547027587890625, -0.032928466796875, -0.01491546630859375, 0.02978515625, -0.00521087646484375, -0.01360321044921875, 0.049652099609375, -0.01239013671875, -0.005924224853515625, -0.0241546630859375, -0.011077880859375, -0.02581787109375, -0.08795166015625, 0.0193939208984375, 0.07037353515625, 0.023406982421875, 0.043792724609375, -0.0178070068359375, 0.0160064697265625, 0.054534912109375, -0.0107879638671875, 0.00986480712890625, 0.0002428293228149414, 0.00972747802734375, 0.033843994140625, -0.0086212158203125, -0.0021915435791015625, 0.004360198974609375, -0.03271484375, 0.0288238525390625, 0.0017385482788085938, -0.0002617835998535156, -0.00547027587890625, 0.01531982421875, -0.01114654541015625, 0.01233673095703125, -0.036041259765625, -0.04779052734375, -0.0169830322265625, 0.0728759765625, -0.0016450881958007812, 0.05938720703125, 0.035614013671875, -0.045562744140625, 0.0184173583984375, 0.0106658935546875, 0.01214599609375, 0.00293731689453125, -0.00818634033203125, 0.038421630859375, -0.01488494873046875, -0.042388916015625, -0.0017786026000976562, 0.047332763671875, 0.004596710205078125, -0.0002677440643310547, 0.00036025047302246094, -0.01537322998046875, 0.0009608268737792969, 0.0069732666015625, -0.06622314453125, 0.0255584716796875, 0.050018310546875, -0.0002961158752441406, -0.03570556640625, -0.0093994140625, 0.01198577880859375, -0.0035152435302734375, 0.00952911376953125, 0.032867431640625, -0.04547119140625, 0.006496429443359375, -0.016815185546875, 0.033233642578125, -0.0165557861328125, 0.0244903564453125, 0.051239013671875, -0.01434326171875, 0.002399444580078125, -0.0037841796875, -0.0095062255859375, -0.0279083251953125, 0.0229949951171875, -0.0017671585083007812, -0.00322723388671875, -0.05291748046875, 0.0272064208984375, 0.028106689453125, 0.0521240234375, -0.001850128173828125, -0.01568603515625, 0.0176544189453125, 0.056121826171875, 0.008026123046875, -0.025787353515625, 0.03216552734375, -0.0300750732421875, -0.02447509765625, -0.026214599609375, -0.0303955078125, -0.00043964385986328125, -0.01532745361328125, -0.01174163818359375, 0.0098876953125, -0.0214996337890625, -0.05950927734375, -0.0576171875, -0.08074951171875, -0.032562255859375, 0.00617218017578125, 0.0187225341796875, 0.012847900390625, 0.09869384765625, 0.03155517578125, -0.052337646484375, 0.033447265625, 0.003875732421875, -0.01561737060546875, 0.054779052734375, 0.0418701171875, -0.0098724365234375, 0.0297698974609375, 0.02105712890625, -0.0277099609375, 0.03289794921875, -0.037322998046875, -0.04705810546875, -0.01995849609375, -0.00672149658203125, 0.0008401870727539062, -0.001514434814453125, 0.0134429931640625, -0.0003826618194580078, 0.01064300537109375, -0.050201416015625, -0.0295867919921875, -0.00031447410583496094, -0.0303497314453125, 0.0128021240234375, -0.038787841796875, 0.00841522216796875, -0.029815673828125, 0.08258056640625, 0.00341796875, 0.02337646484375, 0.034332275390625, -0.04058837890625, 0.06982421875, -0.002685546875, 0.001880645751953125, -0.04180908203125, 0.00942230224609375, -0.0447998046875, 0.040771484375, 0.0056915283203125, -0.0184478759765625, 0.0078582763671875, 0.004116058349609375, 0.012176513671875, -0.0811767578125, 0.048187255859375, -0.0419921875, -0.036224365234375, 0.01261138916015625, -0.01099395751953125, 0.0511474609375, 0.0977783203125, -0.06329345703125, 0.0010213851928710938, 0.005096435546875, 0.01496124267578125, -0.0222015380859375, -0.040283203125, -0.06793212890625, -0.016998291015625, -0.08734130859375, 0.0225372314453125, 0.002979278564453125, -0.012451171875, -0.036285400390625, 0.06951904296875, -0.069580078125, -0.032867431640625, 0.037567138671875, -0.045166015625, 0.0183563232421875, 0.0127105712890625, 0.0172882080078125, -0.024169921875, -0.019012451171875, -0.03179931640625, -0.05499267578125, -0.0082550048828125, -0.064453125, 0.06842041015625, 0.032867431640625, -0.006610870361328125, -0.007450103759765625, 0.026580810546875, 0.03753662109375, 0.0076446533203125, 0.027557373046875, -0.00804901123046875, -0.029815673828125, -0.00383758544921875, 0.0245819091796875, -0.02728271484375, 0.0010166168212890625, 0.023162841796875, -0.0229034423828125, 0.017181396484375, -0.0085601806640625, -0.045989990234375, 0.047882080078125, -0.034515380859375, 0.01268768310546875, -0.00601959228515625, -0.070068359375, 0.0238189697265625, -0.044403076171875, -0.0014009475708007812, -0.037445068359375, -0.030548095703125, 0.0207061767578125, 0.00493621826171875, -0.005809783935546875, 0.0135955810546875, 0.048980712890625, 0.0161285400390625, -0.0133819580078125, -0.038604736328125, -0.0066986083984375, 0.039276123046875, 0.034942626953125, 0.0005254745483398438, -0.01953125, -0.03448486328125, 0.05596923828125, 0.003879547119140625, -0.0089569091796875, -0.02178955078125, 0.060089111328125, 0.0075836181640625, -0.00879669189453125, 0.021728515625, -0.0219268798828125, 0.034393310546875, 0.0246429443359375, 0.0159454345703125, -0.0264129638671875, 0.014434814453125, 0.029052734375, -0.0089111328125, -0.016265869140625, -0.03057861328125, -0.019744873046875, 0.0220794677734375, 0.0007996559143066406, -0.0006442070007324219, -0.0098876953125, 0.000003933906555175781, -0.021881103515625, -0.0189208984375, 0.03155517578125, -0.017059326171875, -0.035247802734375, 0.00650787353515625, 0.016143798828125, 0.050384521484375, 0.03912353515625, -0.0036144256591796875, -0.003528594970703125, 0.004467010498046875, -0.04180908203125, -0.06988525390625, -0.031646728515625, -0.0036220550537109375, 0.045440673828125, 0.03594970703125, 0.0293731689453125, 0.0271453857421875, 0.034881591796875, 0.0252838134765625, 0.024658203125, 0.035736083984375, 0.0435791015625, -0.0201263427734375, 0.00504302978515625, 0.0198516845703125, -0.01148223876953125, -0.006443023681640625, 0.04052734375, -0.0074462890625, 0.0147705078125, -0.005096435546875, 0.028564453125, 0.01220703125, 0.010101318359375, 0.002368927001953125, 0.03936767578125, 0.0196685791015625, -0.04071044921875, 0.0177154541015625, -0.018798828125, -0.03228759765625, -0.00797271728515625, 0.0487060546875, 0.0009088516235351562, 0.019989013671875, 0.00815582275390625, -0.006683349609375, -0.005001068115234375, 0.0089569091796875, -0.0002046823501586914, -0.033416748046875, 0.01042938232421875, 0.0164337158203125, -0.006450653076171875, -0.0181732177734375, -0.0023956298828125, -0.02685546875, -0.068115234375, -0.002597808837890625, -0.0098724365234375, 0.01153564453125, -0.0269012451171875, -0.03955078125, -0.00905609130859375, 0.01959228515625, 0.006595611572265625, -0.054718017578125, -0.08074951171875, 0.0305938720703125, 0.016815185546875, -0.0012693405151367188, -0.030029296875, 0.032257080078125, -0.0278778076171875, -0.0124969482421875, -0.0266265869140625, 0.00978851318359375, 0.040740966796875, 0.0178375244140625, -0.033477783203125, 0.00936126708984375, -0.0478515625, -0.0141448974609375, -0.06353759765625, -0.06488037109375, -0.050048828125, -0.020111083984375, 0.0295257568359375, 0.0377197265625, -0.0117645263671875, -0.049957275390625, -0.0238189697265625, 0.005992889404296875, 0.020172119140625, 0.05718994140625, -0.0136871337890625, 0.0537109375, -0.0188751220703125, 0.0352783203125, -0.000682830810546875, 0.036102294921875, 0.0289154052734375, -0.031707763671875, 0.00965118408203125, -0.059356689453125, -0.037445068359375, 0.0015764236450195312, -0.03656005859375, 0.042144775390625, 0.0196685791015625, -0.00893402099609375, -0.005466461181640625, -0.01033782958984375, -0.0009598731994628906, -0.03369140625, 0.0125885009765625, -0.01016998291015625, 0.0051727294921875, -0.0233612060546875, -0.0269622802734375, 0.0056915283203125, 0.028717041015625, 0.01250457763671875, 0.0012140274047851562, 0.0017871856689453125, 0.0081939697265625, -0.00659942626953125, -0.0189361572265625, 0.0112152099609375, 0.021728515625, 0.01158905029296875, 0.042510986328125, 0.00911712646484375, 0.0139312744140625, 0.007625579833984375, -0.005725860595703125, -0.0295867919921875, -0.058197021484375, 0.0304718017578125, 0.0131988525390625, -0.003025054931640625, 0.0518798828125, -0.01236724853515625, 0.00238037109375, 0.07855224609375, 0.06707763671875, -0.11517333984375, 0.00958251953125, 0.031768798828125, 0.015167236328125, 0.024139404296875, -0.01143646240234375, 0.0105438232421875, -0.01503753662109375, 0.0072174072265625, 0.023834228515625, -0.0216217041015625, 0.003971099853515625, -0.01015472412109375, -0.005847930908203125, -0.01132965087890625, 0.00519561767578125, -0.002307891845703125, 0.007354736328125, -0.036468505859375, 0.01425933837890625, -0.041717529296875, 0.00957489013671875, 0.033294677734375, 0.0017709732055664062, -0.01352691650390625, -0.052490234375, 0.016326904296875, -0.0132598876953125, -0.045318603515625, 0.0293426513671875, -0.00440216064453125, 0.01384735107421875, 0.027587890625, -0.01531219482421875, 0.02447509765625, -0.0252227783203125, -0.010345458984375, 0.007183074951171875, -0.0556640625, -0.03875732421875, 0.051483154296875, -0.04949951171875, 0.01459503173828125, 0.012237548828125, 0.00007265806198120117, -0.005725860595703125, 0.030364990234375, 0.11651611328125, -0.058563232421875, -0.021820068359375, 0.0250396728515625, 0.0233612060546875, 0.0063018798828125, -0.0194854736328125, -0.0300140380859375, -0.0290985107421875, 0.0010652542114257812, -0.04498291015625, -0.047149658203125, -0.0016317367553710938, -0.047882080078125, -0.051788330078125, 0.12030029296875, 0.00817108154296875, 0.00745391845703125, -0.0007452964782714844, 0.056549072265625, -0.04083251953125, 0.036529541015625, 0.0152740478515625, 0.017913818359375, -0.0158233642578125, -0.01806640625, 0.01959228515625, -0.003192901611328125, 0.00042438507080078125, 0.032989501953125, 0.038909912109375, -0.00803375244140625, 0.029754638671875, -0.004730224609375, 0.050140380859375, 0.053466796875, -0.00876617431640625, -0.036102294921875, 0.032379150390625, 0.026031494140625, 0.04595947265625, -0.01122283935546875, 0.06463623046875, -0.0435791015625, 0.003139495849609375, 0.023956298828125, 0.0196533203125, 0.0064239501953125, 0.0013723373413085938, -0.0034923553466796875, -0.0269927978515625, 0.0104827880859375, 0.0256805419921875, 0.0224609375, 0.0198516845703125, 0.021881103515625, 0.05548095703125, -0.04443359375, 0.0168609619140625, -0.0305633544921875, 0.06219482421875, 0.02630615234375, 0.006107330322265625, 0.0302276611328125, 0.0268707275390625, 0.00734710693359375, -0.02728271484375, 0.020904541015625, 0.01837158203125, -0.040069580078125, -0.0156402587890625, -0.02203369140625, 0.0014295578002929688, -0.03179931640625, 0.01922607421875, 0.01534271240234375, -0.0181884765625, -0.0235137939453125, -0.05072021484375, 0.0236968994140625, 0.0188446044921875, 0.00916290283203125, -0.010040283203125, -0.00022995471954345703, -0.07061767578125, 0.000010907649993896484, -0.0287933349609375, 0.0254364013671875, 0.0231475830078125, 0.025787353515625, -0.0191497802734375, -0.0166015625, -0.04498291015625, 0.00380706787109375, -0.03131103515625, -0.02508544921875, 0.01551055908203125, 0.06524658203125, 0.06365966796875, 0.026947021484375, -0.00936126708984375, -0.0224761962890625, -0.0206146240234375, 0.005329132080078125, 0.0002313852310180664, 0.033721923828125, -0.0309295654296875, 0.00634765625, -0.0124053955078125, 0.0318603515625, 0.055877685546875, -0.01074981689453125, 0.03875732421875, 0.025970458984375, 0.007625579833984375, -0.003032684326171875, 0.04345703125, 0.01220703125, -0.011810302734375, -0.0178680419921875, -0.0101165771484375, 0.03570556640625, -0.0003142356872558594, 0.002590179443359375, -0.003826141357421875, 0.041473388671875, 0.010223388671875, -0.012542724609375, 0.023345947265625, -0.02056884765625, 0.076171875, 0.00487518310546875, 0.0199127197265625, 0.02734375, -0.04278564453125, -0.0251617431640625, -0.01044464111328125, -0.041259765625, 0.0311279296875, 0.039154052734375, -0.0178375244140625, 0.01229095458984375, -0.015625, -0.04632568359375, -0.00342559814453125, 0.01038360595703125, 0.038360595703125, 0.00066375732421875, -0.03997802734375, -0.006763458251953125, -0.038330078125, -0.030364990234375, 0.0116119384765625, 0.03607177734375, -0.01505279541015625, 0.0166473388671875, 0.004467010498046875, 0.033447265625, -0.0457763671875, 0.024139404296875, -0.02362060546875, -0.01265716552734375, -0.00170135498046875, 0.04437255859375, 0.01702880859375, -0.0175323486328125, -0.0013256072998046875, 0.0287933349609375, 0.02239990234375, -0.0394287109375, 0.005336761474609375, -0.01226806640625, 0.00785064697265625, -0.0105133056640625, -0.0007104873657226562, -0.02166748046875, 0.00722503662109375, -0.022247314453125, -0.039154052734375, 0.028045654296875, -0.00405120849609375, 0.01345062255859375, -0.0007023811340332031, 0.0289306640625, -0.022430419921875, 0.042755126953125, -0.0196380615234375, 0.072021484375, 0.040191650390625, 0.00626373291015625, 0.0006918907165527344, 0.0286865234375, -0.0099029541015625, 0.004261016845703125, 0.0213623046875, 0.0231170654296875, 0.017486572265625, -0.043487548828125, -0.01535797119140625, -0.001415252685546875, 0.03424072265625, 0.0025806427001953125, 0.0034427642822265625, -0.02069091796875, -0.0150299072265625, -0.039794921875, 0.003192901611328125, -0.025909423828125, 0.00785064697265625, 0.00510406494140625, 0.023345947265625, 0.027191162109375, -0.00696563720703125, -0.051971435546875, -0.0062255859375, 0.03497314453125, 0.01299285888671875, -0.07672119140625, 0.0181732177734375, 0.003513336181640625, 0.03802490234375, 0.005672454833984375, -0.0120697021484375, 0.01558685302734375, 0.043731689453125, -0.0226898193359375, -0.0343017578125, -0.0024089813232421875, 0.021331787109375, -0.0308685302734375, 0.010986328125, 0.019683837890625, -0.0241851806640625, -0.00431060791015625, 0.00826263427734375, 0.018524169921875, 0.05303955078125, 0.0275421142578125, -0.00927734375, 0.01959228515625, 0.0264892578125, -0.037017822265625, -0.085693359375, 0.0051116943359375, -0.031524658203125, 0.00994110107421875, -0.029266357421875, 0.0242919921875, 0.045989990234375, -0.005710601806640625, -0.052642822265625, 0.0096588134765625, -0.017181396484375, -0.01396942138671875, -0.01169586181640625, 0.003253936767578125, 0.0023670196533203125, 0.03546142578125, 0.02337646484375, -0.052581787109375, -0.021392822265625, -0.006519317626953125, -0.0037250518798828125, 0.05450439453125, 0.01885986328125, -0.0224456787109375, -0.0245208740234375, -0.0235748291015625, -0.01149749755859375, 0.019805908203125, -0.003643035888671875, 0.0011167526245117188, 0.0284576416015625, 0.0093536376953125, -0.03765869140625, 0.00899505615234375, 0.00638580322265625, 0.01446533203125, -0.0298309326171875, -0.0116119384765625, -0.028961181640625, -0.00933074951171875, 0.038604736328125, 0.060394287109375, 0.01520538330078125, -0.025177001953125, 0.0168609619140625, -0.044769287109375, -0.0162200927734375, -0.01166534423828125, 0.004741668701171875, -0.04144287109375, -0.012908935546875, 0.0209197998046875, 0.00574493408203125, 0.0307464599609375, -0.027801513671875, 0.0037899017333984375, -0.01385498046875, 0.032684326171875, 0.007568359375, -0.0489501953125, 0.09075927734375, 0.015411376953125, -0.020477294921875, 0.031585693359375, -0.006977081298828125, -0.03662109375, 0.01959228515625, 0.01314544677734375, -0.039215087890625, -0.057647705078125, 0.00006633996963500977, 0.059539794921875, -0.042755126953125, 0.07586669921875, -0.059234619140625, -0.00482177734375, -0.005123138427734375, 0.026885986328125, 0.011962890625, 0.041900634765625, -0.041748046875, 0.042022705078125, 0.0269622802734375, -0.0017070770263671875, -0.0118560791015625, 0.0300140380859375, -0.01184844970703125, 0.0174713134765625, 0.02740478515625, -0.0082855224609375, 0.05950927734375, -0.0186767578125, 0.0008211135864257812, 0.03936767578125, -0.01024627685546875, -0.01479339599609375, 0.0307159423828125, 0.045440673828125, 0.0247039794921875, 0.0000037550926208496094 ]
5dedc72a2d555cb67e6f2a89ea02819e91d176d6
Wordpress Stackexchange Q: Add Wordpress MU Network Admin via Database I am working on getting a copy of a WordPress MU network up and running on my local machine for development purposes (using WordPress 3.2.1 at the moment). I need access to the network administration options. In the usermeta table, I changed my user-level to 10 and capabilities to a:1:{s:13:"administrator";b:1;} In the sitemeta table, I added myself to the serialized array of users in the site_admins option. While this did get me access to the generic wp-admin page, I still do not have access to any of the network admin options (such as automatic upgrade for WP, plugins, or themes, etc). A: So, it turns out that those three changes were all that were needed. It also turns out that if any of the serialized arrays are modified incorrectly (which is easy to do when modifying them by hand), the system will just assume you are not a network administrator. Correcting the serialized array for the site_admins option fixed the problem.
Q: Add Wordpress MU Network Admin via Database I am working on getting a copy of a WordPress MU network up and running on my local machine for development purposes (using WordPress 3.2.1 at the moment). I need access to the network administration options. In the usermeta table, I changed my user-level to 10 and capabilities to a:1:{s:13:"administrator";b:1;} In the sitemeta table, I added myself to the serialized array of users in the site_admins option. While this did get me access to the generic wp-admin page, I still do not have access to any of the network admin options (such as automatic upgrade for WP, plugins, or themes, etc). A: So, it turns out that those three changes were all that were needed. It also turns out that if any of the serialized arrays are modified incorrectly (which is easy to do when modifying them by hand), the system will just assume you are not a network administrator. Correcting the serialized array for the site_admins option fixed the problem. A: If you can connect via SSH, you can also add super-admin rights to existing user with WP-CLI by running command wp super-admin add <username> on the server. As you are running a copy of the website in your local machine. Open your terminal, install WP-CLI globally and once it's installed, go to your website folder and type: wp super-admin add <username>. I hope it helps. A: Just in case the format for the serialised array in meta_value where meta_key='site_admins' in the sitemeta table isn't clear to someone (like it wasn't clear to me). a:5:{i:0;s:5:"admin";i:1;s:9:"user12345";i:2;s:4:"user";i:3;s:5:"user1";i:4;s:8:"user1234";} a:5 at the beginning of the array indicates that the array has five elements. Each element's length is also indicated by s:x, where x is the length of the array element. For example, the admin username length is shown by s:5 A: the other dude mysql query doesnt work and doesnt make you a network super admin, but this one does! INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`, `user_registered`) VALUES ('newadmin', MD5('password1234567890change_me'), 'firstname lastname', '[email protected]', '0', NOW()); INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, (Select max(id) FROM wp_users), 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'); INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, (Select max(id) FROM wp_users), 'wp_user_level', '10'); INSERT INTO `wp_sitemeta` ( `site_id`, `meta_key`, `meta_value` ) VALUES (1, 'site_admins', 'a:1:{i:0;s:8:"newadmin";}' ); now explaining this: the most trickiest part for a super admin is the last query! a:3:{i:0;s:5:"admin";i:1;s:9:"user12345";i:2;s:10:"user234567";} “a:3” -> for network Admins, there will be 3. The succeeding text will now list them. “i:0”, “i:1”, “i:2” -> This is the user order: Admin1, Admin2, Admin3, etc. “s:5”, “s:9”, “s:10” -> This represents the number of characters of the declared username! This apparently was added as a security feature of sorts. If the number of characters are off than this will not work! “admin,” “irisemedia,” etc. -> This is the declared username that will be associated with the Network Admins To learn more about this read more here Note: change the password! A: Here is the queries to create a new admin user : INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`) VALUES ('newadmin', MD5('pass123'), 'firstname lastname', '[email protected]', '0'); INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, (Select max(id) FROM wp_users), 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'); INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, (Select max(id) FROM wp_users), 'wp_user_level', '10'); It will definitly help you. :) A: I had been struggling with this issue for days, ie. When I updated the domain name of my main network site, the network admin option disappeared from the dashboard. Tried to look all over the place. Finally ended up on this question and once I read locoMotion's explanation of what the fields in sitemeta table mean, I noticed that the length of the username for the superadmin was not correct. When I fixed that, the SiteAdmin menu started showing up on the dashboard again. Thanks @quadium32 for asking this question and special thanks @locoMotion for explaining what the sitemeta values mean. Best Regards. Tariq A: Run grant_super_admin(<user_id>); after adding the user. (Probably by placing it in theme's function.php file)
wordpress
{ "language": "en", "length": 678, "provenance": "stackexchange_00019.jsonl.gz:425887", "question_score": "8", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72871" }
[ 0.051483154296875, -0.00792694091796875, 0.0077667236328125, -0.02960205078125, 0.004520416259765625, -0.019775390625, 0.03033447265625, -0.019378662109375, 0.0311737060546875, 0.0186767578125, -0.00797271728515625, -0.0222320556640625, 0.0099945068359375, -0.0122528076171875, -0.031707763671875, -0.0171356201171875, 0.029083251953125, 0.0209808349609375, 0.019195556640625, 0.00630950927734375, -0.024658203125, 0.0297393798828125, -0.01007843017578125, -0.014373779296875, 0.0152130126953125, -0.037994384765625, 0.034820556640625, -0.047515869140625, 0.028656005859375, -0.0029163360595703125, 0.0195770263671875, -0.00031948089599609375, 0.01055145263671875, -0.0074310302734375, 0.0261383056640625, -0.062347412109375, 0.032562255859375, -0.00982666015625, 0.0182952880859375, -0.006988525390625, 0.026336669921875, -0.01226806640625, 0.06787109375, 0.0304718017578125, 0.01026153564453125, -0.04931640625, 0.06512451171875, -0.0509033203125, 0.0202484130859375, -0.0157470703125, -0.01580810546875, -0.030914306640625, 0.00681304931640625, -0.0248260498046875, -0.01727294921875, -0.0408935546875, -0.0034847259521484375, 0.0089569091796875, 0.0122222900390625, -0.01084136962890625, -0.0150299072265625, 0.0193328857421875, 0.012542724609375, -0.0027980804443359375, 0.0219879150390625, -0.0140533447265625, 0.04925537109375, 0.01497650146484375, -0.047637939453125, 0.010589599609375, 0.04547119140625, -0.0157318115234375, 0.004001617431640625, -0.0034046173095703125, 0.0020046234130859375, -0.037994384765625, 0.00579833984375, -0.0389404296875, 0.00571441650390625, 0.0207366943359375, 0.02880859375, 0.004230499267578125, -0.0228271484375, 0.007022857666015625, 0.0036144256591796875, 0.016510009765625, 0.0013561248779296875, -0.0289764404296875, 0.0130462646484375, 0.01403045654296875, 0.004756927490234375, -0.041168212890625, 0.0282745361328125, 0.056671142578125, -0.006046295166015625, -0.01540374755859375, 0.026123046875, 0.02557373046875, 0.01122283935546875, -0.0040435791015625, 0.016754150390625, -0.0389404296875, -0.0030994415283203125, -0.0161590576171875, -0.0163116455078125, 0.014739990234375, -0.018524169921875, -0.0141143798828125, 0.0133056640625, 0.0278472900390625, -0.016754150390625, -0.0099945068359375, 0.0230865478515625, -0.0214080810546875, -0.038482666015625, -0.00003707408905029297, 0.00724029541015625, -0.0213775634765625, 0.01241302490234375, -0.039093017578125, -0.0345458984375, -0.01502227783203125, -0.04193115234375, 0.0223236083984375, 0.01387786865234375, -0.0189361572265625, -0.007080078125, 0.050994873046875, -0.07257080078125, -0.0079193115234375, 0.001590728759765625, 0.035186767578125, -0.012969970703125, 0.034698486328125, -0.0213165283203125, 0.0217742919921875, 0.0258941650390625, 0.007808685302734375, -0.0106658935546875, 0.0306243896484375, 0.01226806640625, -0.04107666015625, -0.0219879150390625, 0.0205535888671875, -0.03375244140625, 0.051116943359375, 0.018157958984375, -0.005878448486328125, -0.032806396484375, -0.0760498046875, -0.0284271240234375, -0.01605224609375, -0.0285797119140625, 0.039337158203125, 0.0400390625, 0.0259857177734375, 0.032470703125, 0.00771331787109375, -0.01446533203125, 0.0118408203125, -0.035858154296875, 0.004886627197265625, 0.04718017578125, -0.042449951171875, -0.035186767578125, -0.01120758056640625, -0.0413818359375, 0.00308990478515625, 0.0271453857421875, -0.0247039794921875, 0.04046630859375, -0.022613525390625, 0.07562255859375, 0.0200653076171875, 0.000020265579223632812, 0.0390625, -0.01544952392578125, 0.0261993408203125, 0.04022216796875, 0.0214996337890625, 0.00968170166015625, -0.011322021484375, 0.06390380859375, -0.0091705322265625, -0.042633056640625, -0.00540924072265625, 0.0029125213623046875, 0.0285797119140625, 0.034820556640625, 0.0088958740234375, 0.0341796875, -0.00007706880569458008, -0.03265380859375, 0.01526641845703125, -0.01837158203125, -0.0206146240234375, -0.024810791015625, -0.004425048828125, -0.0169677734375, 0.01055145263671875, -0.0219268798828125, 0.01131439208984375, -0.0297393798828125, 0.033111572265625, 0.002666473388671875, -0.0236053466796875, 0.00958251953125, 0.0032291412353515625, 0.02044677734375, -0.02239990234375, -0.0156707763671875, -0.053436279296875, 0.035186767578125, -0.06549072265625, -0.0667724609375, 0.0138092041015625, -0.03533935546875, 0.051300048828125, 0.0133819580078125, 0.0341796875, 0.0269927978515625, -0.038848876953125, 0.028961181640625, 0.0007538795471191406, -0.0008339881896972656, 0.01605224609375, -0.0226593017578125, 0.0174713134765625, 0.029754638671875, 0.0157623291015625, 0.030517578125, 0.0233001708984375, -0.032470703125, -0.006618499755859375, -0.0016832351684570312, 0.0067138671875, -0.0013637542724609375, -0.0748291015625, 0.01739501953125, 0.031982421875, 0.047760009765625, -0.003688812255859375, -0.002254486083984375, -0.0085906982421875, -0.001888275146484375, -0.1085205078125, -0.0013933181762695312, 0.003597259521484375, -0.025146484375, 0.0195770263671875, 0.0183563232421875, 0.0027675628662109375, 0.009918212890625, -0.021484375, -0.004947662353515625, 0.032501220703125, -0.0188140869140625, 0.0142364501953125, -0.0264434814453125, -0.0197296142578125, 0.007518768310546875, 0.007480621337890625, 0.00623321533203125, 0.003658294677734375, 0.02935791015625, 0.00725555419921875, 0.0308685302734375, 0.0287933349609375, -0.031951904296875, 0.00021886825561523438, 0.01398468017578125, 0.0225067138671875, 0.014862060546875, 0.02166748046875, -0.01430511474609375, 0.03387451171875, -0.03045654296875, 0.0037860870361328125, 0.027313232421875, 0.0179290771484375, -0.025970458984375, 0.0105743408203125, -0.05401611328125, -0.0166015625, -0.01380157470703125, -0.0297393798828125, -0.0070648193359375, -0.011474609375, -0.0163116455078125, -0.011444091796875, 0.049530029296875, -0.042388916015625, -0.049346923828125, 0.01065826416015625, -0.041168212890625, -0.04437255859375, 0.000047087669372558594, -0.030548095703125, 0.0025348663330078125, -0.013946533203125, 0.0299224853515625, 0.059783935546875, 0.01061248779296875, -0.006500244140625, -0.0263519287109375, -0.038543701171875, -0.038665771484375, 0.014556884765625, -0.0214691162109375, -0.07220458984375, -0.00547027587890625, 0.0253753662109375, 0.0045318603515625, -0.0623779296875, 0.0180206298828125, -0.015869140625, -0.019256591796875, -0.017608642578125, -0.06884765625, -0.0247955322265625, -0.0484619140625, -0.06085205078125, -0.0129852294921875, -0.01230621337890625, -0.0198974609375, 0.0240936279296875, -0.0027980804443359375, 0.0190887451171875, -0.032196044921875, -0.0197601318359375, -0.034332275390625, -0.049102783203125, -0.057220458984375, 0.0084991455078125, -0.00453948974609375, 0.0156707763671875, -0.0035228729248046875, 0.021087646484375, -0.0226287841796875, -0.054473876953125, -0.05157470703125, -0.0044097900390625, 0.0027790069580078125, -0.0303802490234375, 0.006885528564453125, -0.0032711029052734375, 0.01279449462890625, 0.007579803466796875, -0.04266357421875, 0.0259246826171875, -0.0253448486328125, -0.0236663818359375, -0.00397491455078125, -0.00013697147369384766, 0.00647735595703125, -0.0084075927734375, 0.0014104843139648438, 0.0235595703125, -0.01227569580078125, -0.024169921875, -0.0153045654296875, 0.046875, -0.01308441162109375, 0.00487518310546875, -0.046844482421875, -0.017486572265625, 0.054107666015625, 0.00824737548828125, -0.02154541015625, -0.003932952880859375, -0.0022411346435546875, -0.0308685302734375, -0.01399993896484375, -0.01303863525390625, -0.0268707275390625, 0.0196075439453125, 0.0007977485656738281, -0.032318115234375, 0.00077056884765625, -0.017425537109375, -0.004154205322265625, -0.0050506591796875, 0.01355743408203125, -0.0040740966796875, -0.047576904296875, 0.0257110595703125, -0.08282470703125, 0.03997802734375, -0.0816650390625, -0.00902557373046875, -0.036224365234375, 0.0947265625, 0.01543426513671875, 0.01580810546875, -0.0262298583984375, -0.00554656982421875, -0.04742431640625, -0.0159149169921875, -0.043853759765625, 0.017486572265625, -0.0168914794921875, -0.0312347412109375, -0.0211639404296875, -0.0160064697265625, 0.00040078163146972656, -0.0266265869140625, 0.0078887939453125, -0.0390625, 0.01494598388671875, 0.0016107559204101562, 0.0091705322265625, -0.025177001953125, -0.0034961700439453125, -0.0323486328125, 0.00933074951171875, -0.0303955078125, -0.131103515625, -0.0186004638671875, -0.021240234375, 0.0828857421875, -0.0036182403564453125, -0.00495147705078125, -0.040283203125, 0.046112060546875, -0.0079498291015625, -0.0284423828125, -0.0131683349609375, 0.005008697509765625, -0.0426025390625, 0.008544921875, -0.023223876953125, -0.018707275390625, -0.01224517822265625, -0.01517486572265625, -0.02606201171875, -0.03131103515625, -0.02496337890625, -0.006412506103515625, 0.003787994384765625, -0.0299530029296875, -0.0253753662109375, -0.0097198486328125, -0.0223388671875, 0.0176239013671875, -0.043121337890625, 0.0191192626953125, -0.0248870849609375, -0.04248046875, 0.026885986328125, -0.0098419189453125, -0.0121917724609375, 0.005046844482421875, 0.03125, 0.008819580078125, -0.017974853515625, 0.006256103515625, -0.007663726806640625, 0.0291748046875, -0.03045654296875, 0.052947998046875, 0.04345703125, 0.00009590387344360352, 0.0007371902465820312, -0.0005793571472167969, -0.00235748291015625, -0.0140380859375, 0.0209197998046875, 0.01094818115234375, -0.01406097412109375, 0.006687164306640625, 0.01222991943359375, 0.00036525726318359375, 0.01056671142578125, -0.01194000244140625, -0.02008056640625, -0.0197601318359375, 0.036224365234375, -0.01374053955078125, 0.035980224609375, -0.0350341796875, -0.051177978515625, 0.03253173828125, -0.12420654296875, 0.00274658203125, -0.043365478515625, 0.01422119140625, -0.02337646484375, -0.01392364501953125, 0.0032482147216796875, 0.006809234619140625, -0.0006361007690429688, -0.019622802734375, 0.022247314453125, 0.009002685546875, -0.0179901123046875, -0.0022258758544921875, -0.03155517578125, 0.11346435546875, 0.0098876953125, -0.0789794921875, 0.041961669921875, -0.037200927734375, 0.0904541015625, 0.039031982421875, 0.012786865234375, 0.04473876953125, 0.019012451171875, -0.0059356689453125, -0.0178680419921875, -0.03369140625, 0.00835418701171875, -0.039581298828125, -0.00360107421875, -0.00467681884765625, 0.0015115737915039062, -0.0197296142578125, 0.07574462890625, -0.0205535888671875, 0.033050537109375, -0.0012664794921875, 0.056671142578125, 0.0587158203125, 0.01276397705078125, -0.00641632080078125, 0.01320648193359375, 0.01120758056640625, -0.015380859375, 0.004764556884765625, -0.00612640380859375, -0.0034732818603515625, 0.035186767578125, 0.0238494873046875, 0.035125732421875, 0.02508544921875, -0.036773681640625, -0.027801513671875, -0.0044403076171875, 0.019744873046875, -0.0093994140625, -0.037353515625, -0.01123809814453125, 0.018341064453125, 0.027008056640625, -0.031585693359375, 0.01253509521484375, -0.01409912109375, -0.01129913330078125, 0.0082244873046875, 0.0159454345703125, -0.0030040740966796875, -0.029693603515625, -0.035064697265625, -0.01044464111328125, 0.0015411376953125, -0.005107879638671875, -0.0377197265625, -0.029571533203125, -0.00311279296875, 0.0045623779296875, 0.038055419921875, -0.0080718994140625, 0.01226806640625, -0.01898193359375, -0.0086517333984375, -0.06524658203125, 0.01291656494140625, 0.0244598388671875, 0.00595855712890625, -0.0229949951171875, -0.0287628173828125, -0.0352783203125, -0.0391845703125, -0.023284912109375, 0.00569915771484375, -0.0269622802734375, 0.011871337890625, -0.004364013671875, 0.0296783447265625, -0.0239105224609375, -0.007610321044921875, -0.0112152099609375, 0.0391845703125, 0.0226593017578125, 0.07879638671875, -0.003932952880859375, 0.059478759765625, -0.0281982421875, 0.08135986328125, 0.005130767822265625, 0.036468505859375, -0.0131988525390625, -0.019317626953125, 0.0247955322265625, -0.0276031494140625, -0.06378173828125, 0.01430511474609375, -0.092041015625, -0.0080413818359375, 0.027740478515625, -0.0243377685546875, -0.01186370849609375, 0.0004780292510986328, 0.0101165771484375, -0.022247314453125, 0.033447265625, 0.0160980224609375, -0.00814056396484375, 0.004589080810546875, -0.02166748046875, 0.04559326171875, -0.0175933837890625, -0.014739990234375, 0.003322601318359375, -0.0289154052734375, 0.0137481689453125, 0.054107666015625, -0.050872802734375, 0.042633056640625, 0.10491943359375, -0.0063323974609375, 0.0282135009765625, 0.01177978515625, -0.01488494873046875, -0.02239990234375, -0.0212249755859375, 0.0328369140625, 0.0274200439453125, 0.03997802734375, -0.01165771484375, -0.0003674030303955078, 0.02264404296875, -0.0247955322265625, 0.02801513671875, 0.040985107421875, 0.057830810546875, -0.059906005859375, 0.0035953521728515625, -0.010406494140625, -0.0302886962890625, 0.0284576416015625, -0.01806640625, 0.00283050537109375, -0.0677490234375, 0.036224365234375, 0.039398193359375, -0.0164947509765625, -0.01422119140625, -0.01666259765625, -0.0200958251953125, 0.01078033447265625, 0.016693115234375, 0.01690673828125, 0.085205078125, -0.02935791015625, -0.052276611328125, 0.0494384765625, 0.0034427642822265625, 0.01461029052734375, -0.0133514404296875, -0.016937255859375, -0.051849365234375, -0.03692626953125, -0.02874755859375, -0.0296783447265625, -0.0162506103515625, 0.028167724609375, 0.0185699462890625, 0.04058837890625, -0.00275421142578125, -0.0147247314453125, 0.031982421875, -0.004711151123046875, -0.0002560615539550781, -0.044464111328125, -0.01922607421875, 0.0206756591796875, 0.004634857177734375, 0.014556884765625, 0.0174407958984375, -0.04498291015625, -0.0035305023193359375, 0.0005373954772949219, 0.0240325927734375, 0.004016876220703125, -0.0306549072265625, 0.0494384765625, -0.030487060546875, -0.038604736328125, 0.004852294921875, 0.037689208984375, -0.0601806640625, -0.019683837890625, 0.021820068359375, -0.0107269287109375, -0.00350189208984375, 0.0413818359375, -0.02593994140625, 0.054046630859375, 0.02215576171875, -0.020263671875, 0.00004744529724121094, 0.04351806640625, -0.028106689453125, 0.024322509765625, -0.0311126708984375, 0.058349609375, 0.0266876220703125, 0.0194244384765625, -0.055572509765625, -0.0049591064453125, -0.00992584228515625, 0.0269775390625, 0.024322509765625, 0.01004791259765625, -0.021820068359375, -0.0015783309936523438, 0.014984130859375, -0.00853729248046875, -0.01335906982421875, 0.054840087890625, 0.0036983489990234375, 0.04034423828125, 0.040130615234375, -0.0196380615234375, 0.0264434814453125, 0.0191192626953125, -0.0318603515625, 0.02655029296875, -0.0042572021484375, -0.0017595291137695312, 0.0190582275390625, 0.02093505859375, -0.0201263427734375, 0.000007748603820800781, 0.0217132568359375, -0.10589599609375, -0.0147857666015625, 0.007152557373046875, -0.036773681640625, 0.04986572265625, 0.00705718994140625, -0.015838623046875, 0.01983642578125, 0.0034580230712890625, -0.0030536651611328125, 0.00972747802734375, 0.01364898681640625, -0.012176513671875, -0.0007829666137695312, -0.005397796630859375, 0.041534423828125, -0.0316162109375, 0.033355712890625, 0.00028705596923828125, 0.0225982666015625, -0.04095458984375, 0.01018524169921875, 0.040283203125, 0.050140380859375, -0.0270843505859375, -0.06414794921875, 0.00395965576171875, 0.009796142578125, 0.027496337890625, 0.061431884765625, 0.045257568359375, 0.040008544921875, 0.0887451171875, -0.0184326171875, 0.01036834716796875, 0.0007295608520507812, -0.01177978515625, -0.006969451904296875, 0.031341552734375, 0.004199981689453125, 0.03411865234375, -0.0016880035400390625, 0.0006074905395507812, 0.0110015869140625, 0.01284027099609375, 0.019073486328125, -0.0004210472106933594, -0.0295257568359375, 0.0085296630859375, -0.0146331787109375, -0.01389312744140625, -0.013916015625, 0.02783203125, -0.04693603515625, -0.041168212890625, 0.0357666015625, 0.046356201171875, -0.023895263671875, 0.035888671875, 0.04248046875, 0.0482177734375, -0.01456451416015625, -0.010589599609375, 0.0501708984375, -0.0318603515625, -0.04351806640625, -0.01129913330078125, 0.01241302490234375, 0.0192108154296875, 0.01094818115234375, -0.0086669921875, 0.06805419921875, 0.001735687255859375, -0.003314971923828125, 0.03076171875, 0.0016117095947265625, -0.005767822265625, 0.04278564453125, 0.00885772705078125, 0.04937744140625, 0.0257110595703125, -0.067138671875, 0.00551605224609375, -0.0274810791015625, -0.03204345703125, -0.01122283935546875, 0.022216796875, -0.01910400390625, 0.0181427001953125, -0.03863525390625, -0.032867431640625, 0.019622802734375, 0.026824951171875, -0.03558349609375, 0.05255126953125, 0.032623291015625, -0.0208740234375, -0.016937255859375, -0.020172119140625, -0.00743865966796875, 0.056884765625, -0.0009708404541015625, 0.1544189453125, -0.06573486328125, 0.01311492919921875, -0.039398193359375, -0.0125579833984375, 0.004413604736328125, 0.00017774105072021484, -0.07855224609375, 0.043914794921875, 0.01806640625, -0.00698089599609375, -0.021392822265625, 0.03131103515625, 0.038970947265625, -0.023529052734375, -0.005191802978515625, 0.023193359375, 0.00543212890625, -0.026580810546875, 0.045623779296875, -0.0285797119140625, -0.0643310546875, -0.0548095703125, -0.01062774658203125, 0.01207733154296875, 0.0478515625, 0.0208892822265625, -0.0121917724609375, -0.041656494140625, -0.0269317626953125, 0.011199951171875, 0.013671875, -0.01458740234375, 0.0198974609375, -0.03704833984375, 0.003551483154296875, 0.069580078125, -0.00617218017578125, 0.037994384765625, 0.02557373046875, 0.0631103515625, 0.0367431640625, -0.0102996826171875, -0.00533294677734375, -0.0007467269897460938, 0.0144500732421875, -0.0280303955078125, -0.007022857666015625, 0.0017747879028320312, -0.0012083053588867188, -0.0007801055908203125, -0.031463623046875, -0.046417236328125, -0.05401611328125, 0.00293731689453125, 0.0263214111328125, -0.028900146484375, -0.0640869140625, -0.0921630859375, 0.025848388671875, 0.0447998046875, 0.0097503662109375, -0.07427978515625, 0.0579833984375, -0.037506103515625, 0.053131103515625, 0.0032291412353515625, -0.05584716796875, 0.00885772705078125, 0.0218658447265625, 0.0005140304565429688, -0.022857666015625, -0.041778564453125, -0.0014333724975585938, -0.0011014938354492188, 0.0246734619140625, 0.0290374755859375, -0.015899658203125, 0.0004305839538574219, 0.044677734375, 0.003437042236328125, 0.07806396484375, -0.02490234375, -0.018341064453125, 0.029144287109375, -0.0065155029296875, -0.01044464111328125, -0.05999755859375, -0.0125274658203125, -0.05535888671875, 0.0136871337890625, -0.0160064697265625, 0.032135009765625, 0.047027587890625, -0.01064300537109375, 0.0023746490478515625, -0.038665771484375, 0.01050567626953125, -0.0184326171875, -0.041778564453125, 0.021728515625, 0.007663726806640625, -0.0291900634765625, -0.0301971435546875, 0.0015506744384765625, -0.0309295654296875, 0.0198822021484375, 0.01629638671875, -0.00481414794921875, 0.00977325439453125, -0.0003848075866699219, -0.035858154296875, 0.0164794921875, 0.0218048095703125, 0.0025806427001953125, 0.0310821533203125, 0.003276824951171875, 0.04742431640625, 0.06695556640625, -0.0263214111328125, 0.053863525390625, -0.021240234375, -0.0372314453125, -0.026092529296875, -0.01128387451171875, -0.035369873046875, -0.01422882080078125, 0.08343505859375, 0.055877685546875, 0.016571044921875, -0.02947998046875, -0.038330078125, -0.0269927978515625, -0.034393310546875, -0.03790283203125, 0.048095703125, -0.0982666015625, -0.00691986083984375, 0.0127410888671875, -0.031768798828125, 0.00323486328125, 0.03497314453125, -0.036529541015625, 0.01119232177734375, 0.0149383544921875, -0.0135498046875, -0.046173095703125, -0.010711669921875, 0.03424072265625, -0.0445556640625, -0.06390380859375, 0.021697998046875, 0.005840301513671875, -0.0357666015625, -0.000032782554626464844, -0.028961181640625, -0.031524658203125, -0.0108489990234375, 0.039093017578125, -0.01904296875, 0.020263671875, -0.039764404296875, -0.0033168792724609375, 0.0281524658203125, 0.0052032470703125, -0.0015573501586914062, 0.00743865966796875, -0.024169921875, 0.041748046875, -0.020843505859375, 0.0110626220703125, -0.0218658447265625, 0.0127410888671875, -0.0192413330078125, 0.0286865234375, 0.001995086669921875, -0.0006914138793945312, 0.041595458984375, -0.0265045166015625, -0.0118560791015625, 0.0163726806640625, -0.0276641845703125, -0.054229736328125, -0.00296783447265625, -0.0090789794921875, 0.002506256103515625, 0.0118255615234375 ]
67470f133c6345c65c417b602e8fc6a3ffa19f6c
Wordpress Stackexchange Q: How to Auto Approve Comments on a Specific Page? I am using WordPress comments on a page as a Contact page and I am able to show those comments only to logged in admin. Now I would like to automatically have any comments placed on my Contact page approved. So, in the front end, I can see all comments placed on that page instead of seeing only the approved comments. I would love to have a hook in functions.php that works with twenty eleven child theme. A: Considering that in Settings > Discussion you have this options checked: The first is comment_moderation and the second comment_whitelist. Then, it is possible to selectively disable them using the filter pre_option_(option-name), as follows: add_filter( 'pre_option_comment_moderation', 'wpse_72990_auto_aprove_selective' ); add_filter( 'pre_option_comment_whitelist', 'wpse_72990_auto_aprove_selective' ); function wpse_72990_auto_aprove_selective( $option ) { global $post; if( $post->ID == 2 ) return 0; return $option; }
Q: How to Auto Approve Comments on a Specific Page? I am using WordPress comments on a page as a Contact page and I am able to show those comments only to logged in admin. Now I would like to automatically have any comments placed on my Contact page approved. So, in the front end, I can see all comments placed on that page instead of seeing only the approved comments. I would love to have a hook in functions.php that works with twenty eleven child theme. A: Considering that in Settings > Discussion you have this options checked: The first is comment_moderation and the second comment_whitelist. Then, it is possible to selectively disable them using the filter pre_option_(option-name), as follows: add_filter( 'pre_option_comment_moderation', 'wpse_72990_auto_aprove_selective' ); add_filter( 'pre_option_comment_whitelist', 'wpse_72990_auto_aprove_selective' ); function wpse_72990_auto_aprove_selective( $option ) { global $post; if( $post->ID == 2 ) return 0; return $option; }
wordpress
{ "language": "en", "length": 146, "provenance": "stackexchange_00019.jsonl.gz:425920", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/72990" }
[ 0.047515869140625, -0.0016651153564453125, -0.01535797119140625, -0.06640625, -0.002407073974609375, -0.0228729248046875, 0.0064239501953125, 0.005603790283203125, 0.01526641845703125, -0.01490020751953125, -0.05792236328125, -0.00487518310546875, -0.011444091796875, -0.027191162109375, 0.0188140869140625, -0.053680419921875, 0.0019817352294921875, -0.01027679443359375, 0.0088653564453125, -0.021881103515625, 0.029510498046875, -0.0229339599609375, -0.0169677734375, 0.000010728836059570312, 0.0096282958984375, -0.049591064453125, 0.09405517578125, 0.01001739501953125, 0.033843994140625, 0.01293182373046875, 0.0274810791015625, -0.04840087890625, 0.021331787109375, 0.01593017578125, -0.03271484375, -0.03546142578125, 0.00012111663818359375, -0.004241943359375, -0.035675048828125, 0.050689697265625, 0.04119873046875, -0.016754150390625, -0.002262115478515625, 0.0185699462890625, -0.006397247314453125, -0.0286712646484375, 0.031158447265625, -0.04400634765625, 0.01258087158203125, -0.038330078125, 0.011932373046875, 0.055908203125, 0.041778564453125, -0.056427001953125, -0.0086822509765625, 0.0258636474609375, -0.062225341796875, 0.035125732421875, 0.011566162109375, 0.027252197265625, 0.0218658447265625, 0.004852294921875, -0.007350921630859375, -0.0151519775390625, -0.01004791259765625, -0.015716552734375, 0.00099945068359375, 0.034637451171875, 0.0087738037109375, -0.0200958251953125, -0.0059661865234375, 0.00913238525390625, -0.00809478759765625, -0.01515960693359375, -0.003612518310546875, 0.00042128562927246094, -0.016082763671875, -0.00576019287109375, 0.0234832763671875, 0.021026611328125, 0.003261566162109375, -0.0217742919921875, -0.03155517578125, -0.0002429485321044922, 0.0009369850158691406, 0.0241546630859375, -0.0227508544921875, -0.0127716064453125, -0.0296173095703125, -0.0169525146484375, -0.0281524658203125, -0.06103515625, 0.0011425018310546875, -0.0008740425109863281, -0.0149688720703125, -0.0196990966796875, 0.031280517578125, 0.05938720703125, -0.020538330078125, -0.0009121894836425781, -0.00496673583984375, -0.03387451171875, 0.02386474609375, -0.05169677734375, 0.0026397705078125, 0.056396484375, -0.0113677978515625, 0.0012340545654296875, 0.034454345703125, 0.019744873046875, 0.034576416015625, -0.0248260498046875, -0.0016489028930664062, 0.0161895751953125, -0.03216552734375, -0.014495849609375, -0.0300140380859375, 0.003650665283203125, -0.01439666748046875, 0.009063720703125, -0.026336669921875, -0.0009427070617675781, -0.0074920654296875, -0.019287109375, 0.04522705078125, 0.005825042724609375, -0.00421142578125, -0.0031757354736328125, 0.017822265625, 0.0213623046875, -0.0298919677734375, 0.0082855224609375, 0.058258056640625, 0.02374267578125, 0.01529693603515625, -0.0205230712890625, -0.00969696044921875, 0.0188446044921875, 0.0130462646484375, 0.0208892822265625, 0.0267791748046875, -0.0631103515625, -0.0235443115234375, 0.0419921875, -0.0238494873046875, 0.0016632080078125, 0.0234832763671875, 0.03173828125, -0.00542449951171875, -0.01558685302734375, -0.02471923828125, 0.030670166015625, 0.0321044921875, -0.00836944580078125, 0.0075225830078125, -0.03118896484375, 0.0286712646484375, -0.0313720703125, -0.005123138427734375, -0.0247955322265625, 0.06964111328125, 0.0008759498596191406, -0.02154541015625, -0.0272369384765625, -0.0457763671875, -0.04620361328125, -0.05023193359375, -0.0083160400390625, 0.0117340087890625, -0.0018835067749023438, -0.02008056640625, -0.0222320556640625, -0.007091522216796875, 0.0013790130615234375, 0.0083465576171875, 0.027679443359375, -0.00778961181640625, 0.04718017578125, 0.00860595703125, -0.005664825439453125, -0.0015020370483398438, -0.0380859375, 0.0513916015625, -0.0023860931396484375, -0.0119171142578125, 0.0249176025390625, 0.065185546875, 0.052093505859375, -0.058380126953125, 0.04437255859375, 0.0191802978515625, 0.054534912109375, -0.008758544921875, 0.017608642578125, -0.026031494140625, -0.06817626953125, 0.02374267578125, -0.010040283203125, -0.014068603515625, 0.04833984375, 0.01251220703125, -0.029205322265625, 0.0211029052734375, -0.01024627685546875, -0.06494140625, -0.0053253173828125, -0.0399169921875, 0.038299560546875, 0.027008056640625, 0.0095672607421875, 0.00601959228515625, -0.029022216796875, -0.01560211181640625, -0.0018634796142578125, -0.035919189453125, 0.0014181137084960938, -0.0091094970703125, 0.02899169921875, -0.01031494140625, 0.0305938720703125, -0.0184783935546875, -0.0203094482421875, -0.01549530029296875, 0.0257720947265625, 0.040252685546875, -0.01390838623046875, -0.0257415771484375, -0.024383544921875, 0.01580810546875, -0.01358795166015625, -0.0221405029296875, 0.06988525390625, -0.02630615234375, 0.015625, -0.0095672607421875, 0.003444671630859375, -0.01308441162109375, -0.04547119140625, -0.0012140274047851562, 0.0313720703125, 0.0377197265625, 0.02056884765625, 0.022613525390625, 0.05712890625, 0.0736083984375, -0.0238189697265625, 0.01535797119140625, 0.02166748046875, 0.02008056640625, 0.0150604248046875, -0.004749298095703125, -0.006214141845703125, 0.034820556640625, -0.051116943359375, 0.0205078125, 0.04449462890625, -0.02130126953125, 0.004802703857421875, 0.00955963134765625, -0.014862060546875, -0.00179290771484375, -0.027984619140625, -0.00803375244140625, -0.016387939453125, 0.0189666748046875, -0.049224853515625, 0.01123809814453125, -0.009979248046875, -0.00017583370208740234, -0.035308837890625, 0.024658203125, -0.00513458251953125, -0.0011539459228515625, 0.026336669921875, -0.0065460205078125, 0.0183258056640625, -0.00710296630859375, -0.005794525146484375, -0.026641845703125, 0.004222869873046875, -0.0001888275146484375, 0.0765380859375, 0.01238250732421875, -0.0214996337890625, -0.038543701171875, -0.039306640625, -0.006130218505859375, -0.0134735107421875, -0.0193939208984375, -0.0465087890625, -0.01390838623046875, 0.0335693359375, -0.00319671630859375, -0.0016326904296875, 0.031402587890625, -0.0206298828125, 0.01549530029296875, -0.035064697265625, 0.057708740234375, -0.05535888671875, 0.044677734375, 0.06878662109375, -0.043701171875, 0.03887939453125, -0.01427459716796875, -0.035247802734375, -0.022552490234375, 0.0181884765625, 0.005916595458984375, -0.03363037109375, 0.00445556640625, 0.049224853515625, 0.0139923095703125, 0.07275390625, -0.035797119140625, -0.033935546875, -0.0034656524658203125, 0.02801513671875, 0.014923095703125, 0.0258941650390625, 0.047821044921875, -0.029571533203125, -0.03326416015625, -0.0325927734375, -0.0230712890625, -0.0005674362182617188, -0.039703369140625, -0.0194854736328125, -0.036224365234375, -0.036346435546875, -0.04962158203125, -0.04296875, -0.03875732421875, 0.03326416015625, -0.011993408203125, 0.00006639957427978516, 0.0048675537109375, 0.0819091796875, -0.00637054443359375, -0.0242919921875, 0.01132965087890625, -0.007335662841796875, 0.00389862060546875, 0.0015010833740234375, -0.023712158203125, 0.0029354095458984375, 0.021575927734375, 0.004833221435546875, -0.0068206787109375, -0.00984954833984375, 0.0057525634765625, -0.0232086181640625, -0.0064697265625, 0.034942626953125, 0.01641845703125, -0.01141357421875, 0.0153045654296875, 0.0538330078125, 0.01393890380859375, -0.0095977783203125, 0.01323699951171875, 0.02301025390625, -0.007595062255859375, -0.07476806640625, -0.021209716796875, -0.0223541259765625, -0.012969970703125, -0.003078460693359375, 0.02197265625, 0.02044677734375, 0.05889892578125, -0.0070648193359375, 0.004802703857421875, -0.00792694091796875, -0.012603759765625, -0.053192138671875, 0.032196044921875, 0.007110595703125, 0.044921875, 0.02203369140625, 0.05548095703125, -0.006389617919921875, 0.037994384765625, -0.047515869140625, -0.08575439453125, 0.02508544921875, -0.0667724609375, -0.02392578125, -0.0262603759765625, 0.00823211669921875, 0.0215301513671875, 0.08880615234375, -0.04248046875, -0.0238494873046875, 0.0099029541015625, 0.005523681640625, -0.002330780029296875, 0.01422882080078125, -0.025970458984375, -0.031707763671875, -0.11102294921875, 0.04681396484375, -0.022735595703125, -0.036529541015625, -0.0280303955078125, -0.032562255859375, -0.060150146484375, -0.064697265625, 0.03466796875, -0.031707763671875, -0.0106658935546875, 0.05108642578125, -0.054168701171875, 0.0487060546875, -0.0303497314453125, -0.032501220703125, -0.06689453125, 0.00379180908203125, -0.03924560546875, 0.022796630859375, -0.0033588409423828125, 0.00441741943359375, -0.028594970703125, 0.016357421875, 0.005992889404296875, 0.0271148681640625, -0.0241851806640625, -0.0017309188842773438, -0.033599853515625, 0.0011167526245117188, 0.0185546875, -0.0264739990234375, 0.01221466064453125, 0.030364990234375, -0.005992889404296875, 0.0609130859375, -0.031005859375, 0.01462554931640625, -0.0003330707550048828, -0.035614013671875, -0.023345947265625, -0.0408935546875, -0.035614013671875, 0.00945281982421875, -0.0269775390625, -0.01172637939453125, -0.03216552734375, -0.0260162353515625, -0.0160369873046875, -0.039947509765625, -0.0090179443359375, 0.02239990234375, 0.0179901123046875, 0.02716064453125, 0.00606536865234375, 0.02001953125, -0.00605010986328125, 0.04974365234375, 0.0121917724609375, 0.0400390625, 0.040008544921875, -0.035064697265625, 0.0526123046875, 0.04595947265625, 0.01532745361328125, -0.01654052734375, 0.033111572265625, -0.01389312744140625, -0.024383544921875, 0.0272674560546875, -0.0192718505859375, 0.00269317626953125, 0.0200042724609375, -0.0084075927734375, -0.0222930908203125, -0.013916015625, 0.044036865234375, 0.0026607513427734375, 0.016754150390625, -0.0278472900390625, -0.026702880859375, -0.00714111328125, -0.0180206298828125, 0.023406982421875, 0.031463623046875, -0.0017242431640625, 0.032684326171875, 0.041046142578125, 0.01139068603515625, -0.0111083984375, 0.0307159423828125, -0.0238494873046875, 0.034027099609375, 0.00592041015625, -0.01532745361328125, -0.0168914794921875, -0.01306915283203125, 0.04443359375, 0.0250091552734375, -0.0222625732421875, -0.005893707275390625, -0.00766754150390625, 0.0059661865234375, 0.0037937164306640625, 0.037872314453125, 0.03070068359375, 0.003993988037109375, -0.01324462890625, -0.0222320556640625, 0.0133209228515625, 0.007312774658203125, -0.04248046875, -0.002109527587890625, -0.00505828857421875, -0.0160064697265625, 0.0447998046875, 0.00199127197265625, 0.00020301342010498047, 0.023529052734375, -0.021453857421875, 0.02703857421875, 0.052764892578125, -0.030975341796875, 0.006992340087890625, 0.07275390625, -0.00545501708984375, -0.037139892578125, 0.029022216796875, 0.025848388671875, -0.0294342041015625, 0.01788330078125, -0.005840301513671875, 0.00812530517578125, 0.060882568359375, -0.0267181396484375, 0.0233917236328125, -0.01043701171875, 0.0149993896484375, 0.068603515625, -0.0023345947265625, 0.01433563232421875, 0.0033283233642578125, -0.021759033203125, 0.024871826171875, -0.01513671875, -0.01554107666015625, -0.03857421875, -0.0003647804260253906, 0.052001953125, -0.0263214111328125, 0.010009765625, -0.004180908203125, 0.0208740234375, 0.00853729248046875, -0.0133209228515625, -0.07110595703125, -0.0357666015625, 0.00553131103515625, 0.025299072265625, 0.0310821533203125, 0.0185089111328125, 0.038482666015625, -0.0183563232421875, -0.028533935546875, 0.033355712890625, -0.004314422607421875, 0.039764404296875, -0.0131683349609375, -0.0285491943359375, -0.0201263427734375, -0.06396484375, -0.038665771484375, -0.066650390625, -0.0469970703125, -0.046356201171875, 0.03265380859375, -0.0034732818603515625, 0.022918701171875, -0.0195159912109375, -0.025390625, -0.0036029815673828125, 0.0178985595703125, 0.00510406494140625, 0.041412353515625, -0.040374755859375, 0.0606689453125, -0.0018663406372070312, 0.0252838134765625, 0.0113983154296875, 0.048248291015625, 0.00148773193359375, -0.01097869873046875, -0.025146484375, -0.021881103515625, 0.0007476806640625, 0.01013946533203125, -0.043548583984375, 0.046783447265625, 0.10369873046875, 0.0126800537109375, 0.04229736328125, -0.0302581787109375, -0.0046844482421875, -0.0281524658203125, 0.00595855712890625, -0.039581298828125, 0.039276123046875, -0.01218414306640625, 0.0062103271484375, 0.036468505859375, -0.05023193359375, -0.013763427734375, 0.008880615234375, -0.01348114013671875, 0.0194549560546875, 0.01248931884765625, -0.037994384765625, 0.05035400390625, 0.07891845703125, -0.00562286376953125, 0.055389404296875, 0.0188446044921875, 0.02099609375, 0.061309814453125, 0.06732177734375, -0.04547119140625, -0.07464599609375, 0.02716064453125, 0.0283203125, -0.043487548828125, 0.00861358642578125, -0.019744873046875, 0.01023101806640625, 0.050140380859375, 0.04107666015625, -0.09326171875, 0.0206298828125, 0.011627197265625, 0.005420684814453125, 0.018585205078125, -0.029693603515625, -0.0212860107421875, -0.07684326171875, 0.076416015625, -0.009246826171875, -0.0073089599609375, 0.01812744140625, -0.03045654296875, -0.0123443603515625, -0.003993988037109375, 0.037750244140625, -0.018310546875, 0.0155181884765625, -0.064453125, 0.00003147125244140625, -0.043792724609375, -0.01436614990234375, -0.022369384765625, 0.0157470703125, -0.049041748046875, -0.069580078125, -0.004604339599609375, -0.043060302734375, -0.00562286376953125, 0.0181427001953125, 0.005611419677734375, -0.0271759033203125, 0.042266845703125, -0.029754638671875, 0.028228759765625, 0.023773193359375, -0.043304443359375, -0.043853759765625, -0.03717041015625, 0.0196990966796875, 0.0183258056640625, -0.022186279296875, 0.03656005859375, -0.01219940185546875, -0.04315185546875, 0.006786346435546875, -0.01123046875, 0.06536865234375, -0.046539306640625, -0.008880615234375, 0.0572509765625, -0.045379638671875, -0.03619384765625, 0.009918212890625, 0.007762908935546875, -0.00301361083984375, -0.004062652587890625, -0.005168914794921875, -0.047607421875, -0.00560760498046875, -0.0311431884765625, -0.06195068359375, 0.07257080078125, -0.0034313201904296875, 0.00223541259765625, -0.0146026611328125, 0.0338134765625, 0.0006151199340820312, 0.029388427734375, -0.04144287109375, 0.08050537109375, 0.0042572021484375, 0.059600830078125, -0.07110595703125, -0.0170745849609375, 0.0179595947265625, 0.043731689453125, 0.037811279296875, 0.01016998291015625, -0.006084442138671875, -0.00998687744140625, 0.042816162109375, 0.01442718505859375, -0.0059661865234375, 0.033172607421875, 0.0026073455810546875, 0.0245208740234375, 0.052734375, -0.036590576171875, 0.0369873046875, -0.042633056640625, -0.00029730796813964844, 0.0008144378662109375, -0.0015478134155273438, -0.0012617111206054688, -0.0185089111328125, 0.0899658203125, -0.040374755859375, -0.006763458251953125, 0.036834716796875, -0.032562255859375, 0.056427001953125, 0.034576416015625, 0.096435546875, -0.0245361328125, 0.0005340576171875, -0.00872802734375, 0.062286376953125, 0.00798797607421875, 0.004871368408203125, 0.058258056640625, 0.038360595703125, 0.0142822265625, 0.01073455810546875, 0.007965087890625, 0.013336181640625, -0.005832672119140625, -0.0185089111328125, -0.0040435791015625, 0.0406494140625, -0.01334381103515625, -0.014801025390625, -0.0265655517578125, -0.0262451171875, 0.00543212890625, -0.0460205078125, 0.002414703369140625, -0.0093994140625, 0.02288818359375, 0.00377655029296875, 0.054779052734375, -0.0138702392578125, -0.00991058349609375, -0.053924560546875, 0.0006670951843261719, -0.0022640228271484375, 0.041961669921875, -0.0219268798828125, 0.01012420654296875, -0.0209808349609375, -0.026885986328125, -0.030364990234375, -0.0204010009765625, 0.018646240234375, 0.023284912109375, 0.01143646240234375, 0.04400634765625, 0.0125885009765625, 0.004543304443359375, -0.0007042884826660156, 0.036041259765625, 0.0215606689453125, -0.013916015625, -0.0250396728515625, -0.02301025390625, 0.005970001220703125, 0.0293426513671875, -0.028106689453125, -0.0012750625610351562, 0.0195159912109375, 0.006549835205078125, -0.0408935546875, -0.036956787109375, -0.018218994140625, -0.048858642578125, -0.0193939208984375, -0.024505615234375, 0.0024089813232421875, 0.045684814453125, 0.00897216796875, 0.020263671875, 0.00783538818359375, 0.055877685546875, -0.002811431884765625, -0.0230560302734375, 0.007778167724609375, -0.03961181640625, 0.0026874542236328125, 0.005218505859375, -0.02191162109375, 0.01552581787109375, -0.041900634765625, -0.0100250244140625, -0.010650634765625, -0.02764892578125, 0.003902435302734375, 0.0309295654296875, -0.0096435546875, 0.003360748291015625, -0.0196990966796875, 0.0286407470703125, 0.0169677734375, -0.0266265869140625, -0.024871826171875, 0.01088714599609375, 0.039154052734375, -0.0019140243530273438, -0.0230560302734375, -0.0090789794921875, -0.0195159912109375, 0.012176513671875, 0.0250701904296875, 0.09454345703125, -0.02545166015625, 0.0178680419921875, -0.068603515625, 0.0003597736358642578, -0.030517578125, -0.0528564453125, 0.04461669921875, 0.0252532958984375, -0.0291290283203125, -0.0029296875, -0.0234222412109375, 0.0460205078125, 0.01401519775390625, -0.0027446746826171875, 0.07958984375, -0.0321044921875, -0.01132965087890625, -0.031951904296875, -0.0287933349609375, -0.038482666015625, -0.04107666015625, -0.048858642578125, -0.0178985595703125, 0.01508331298828125, 0.007160186767578125, 0.004138946533203125, 0.0665283203125, -0.0281982421875, 0.06524658203125, 0.0069732666015625, 0.0000603795051574707, -0.01230621337890625, 0.01416015625, -0.10345458984375, 0.0322265625, 0.039642333984375, -0.0083465576171875, 0.004947662353515625, 0.032958984375, 0.0080413818359375, 0.0196533203125, 0.0282745361328125, -0.046478271484375, -0.0245361328125, 0.0028705596923828125, -0.0251922607421875, 0.0070953369140625, -0.031646728515625, -0.0030231475830078125, 0.02471923828125, -0.0295562744140625, -0.01366424560546875, -0.021759033203125, -0.0158233642578125, 0.022186279296875, -0.0192108154296875, 0.0012426376342773438, -0.00884246826171875, 0.0006551742553710938, 0.02008056640625, 0.0159454345703125, -0.040740966796875, 0.02294921875, 0.0030059814453125, 0.02447509765625, 0.0122222900390625, 0.0654296875, -0.0109405517578125, -0.019744873046875, -0.048065185546875, -0.0148162841796875, -0.00478363037109375, 0.05682373046875, 0.0188446044921875, 0.027130126953125, 0.047149658203125, -0.016082763671875, -0.031341552734375, 0.0178985595703125, 0.011016845703125, 0.0806884765625, 0.0013294219970703125, -0.0286102294921875, 0.038482666015625, 0.00043892860412597656, 0.027984619140625, -0.035369873046875, -0.02764892578125, 0.006683349609375, 0.04022216796875, -0.01090240478515625, 0.029815673828125, 0.05902099609375, -0.0167236328125, -0.040802001953125, 0.04010009765625, -0.0174713134765625, -0.0276641845703125, -0.06390380859375, 0.00540924072265625, 0.01220703125, 0.0033397674560546875, -0.024566650390625, -0.025909423828125, -0.0309906005859375, 0.036529541015625, 0.0139617919921875, 0.0723876953125, -0.028533935546875, 0.0380859375, -0.028900146484375, 0.039520263671875, 0.0150146484375, 0.003589630126953125, 0.01068878173828125, 0.003536224365234375, 0.0200958251953125, 0.042449951171875, -0.042877197265625, -0.0152130126953125, -0.02801513671875, -0.021331787109375, -0.0168304443359375, 0.005584716796875, -0.021240234375, -0.0181884765625, 0.021636962890625, 0.059417724609375, 0.00006580352783203125, -0.01068878173828125, 0.058929443359375, 0.040252685546875, -0.01971435546875, 0.01242828369140625, -0.0000426173210144043, -0.01152801513671875, -0.03076171875, 0.004657745361328125, 0.009429931640625, -0.00513458251953125, -0.05499267578125, -0.00963592529296875, -0.01410675048828125, -0.034637451171875, -0.002532958984375, 0.02923583984375, 0.01009368896484375, 0.03656005859375, -0.0291290283203125, -0.026336669921875, 0.0215911865234375, -0.008148193359375, -0.012664794921875, 0.022674560546875, -0.010711669921875, -0.00518035888671875, -0.019683837890625, 0.0122222900390625, -0.004512786865234375, 0.04388427734375, -0.022247314453125, -0.0254974365234375, -0.028839111328125, 0.02362060546875, 0.0181884765625, 0.032745361328125, -0.052581787109375, 0.0406494140625, 0.016815185546875, 0.0240325927734375, -0.0011720657348632812, -0.0137786865234375, -0.0247955322265625, 0.0440673828125, 0.0101776123046875, -0.037017822265625, 0.0474853515625, -0.06201171875, -0.005695343017578125, 0.0088653564453125, -0.0282135009765625, -0.04583740234375, 0.023101806640625, 0.052764892578125, 0.01233673095703125, 0.020172119140625 ]
00c2590eead2159b152fde9bcd8e46c03514b2b2
Wordpress Stackexchange Q: How to call a plugin function from index.php I have created a function in my plugin myplugin with the name foo, how to call it from the frontend? e.g. index.php? A: You don’t. A Theme should not rely on a plugin except in a very controlled environment. Use actions and filters instead. So in your theme you might use: do_action( 'before_header' ); … or … $bg_options = array ( 'wp-head-callback' => 't5_custom_background_frontend', 'default-color' => 'f0f0f0', 'default-image' => '', ); $bg_options = apply_filters( 't5_theme_bg_options', $bg_options ); add_theme_support( 'custom-background', $bg_options ); add_action( 'login_head', $bg_options['wp-head-callback'] ); In your plugin you use add_action() and add_filter() to change or add new content. This way the theme will still work when the plugin has been deactivated and you don’t have to use function_exists().
Q: How to call a plugin function from index.php I have created a function in my plugin myplugin with the name foo, how to call it from the frontend? e.g. index.php? A: You don’t. A Theme should not rely on a plugin except in a very controlled environment. Use actions and filters instead. So in your theme you might use: do_action( 'before_header' ); … or … $bg_options = array ( 'wp-head-callback' => 't5_custom_background_frontend', 'default-color' => 'f0f0f0', 'default-image' => '', ); $bg_options = apply_filters( 't5_theme_bg_options', $bg_options ); add_theme_support( 'custom-background', $bg_options ); add_action( 'login_head', $bg_options['wp-head-callback'] ); In your plugin you use add_action() and add_filter() to change or add new content. This way the theme will still work when the plugin has been deactivated and you don’t have to use function_exists(). A: Active plugins are loaded (as in technically - their files are included and processed by PHP during WordPress load) by the time theme templates run. So your function should be available and can be called as any other function: <?php foo(); ?> for example. A: The same way you would any other: foo(); Active plugins are loaded before the theme files You may want to check that your plugin is activated and the function is available so things dont go pear-shaped if you forget to activate it, like: if(function_exists('foo')){ foo(); } else { echo "oh dear you haven't activated/installed 'myplugin', go do that before the 'foo' feature is available"; } Also keep in mind foo is a very generic function name, perhaps the "omgfoo" plugin also has a foo function. So prefix/namespace your function to something unique You will eventually want to use actions and filters, as they're safer and better practice, you can continue to read up on that here
wordpress
{ "language": "en", "length": 290, "provenance": "stackexchange_00019.jsonl.gz:425936", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73047" }
[ 0.07440185546875, 0.032196044921875, -0.0161590576171875, -0.0584716796875, 0.042205810546875, -0.0251007080078125, 0.007091522216796875, -0.0274810791015625, 0.002529144287109375, -0.029449462890625, -0.035186767578125, -0.0024547576904296875, -0.053466796875, -0.04302978515625, 0.01235198974609375, -0.05938720703125, 0.048431396484375, -0.00904083251953125, 0.04864501953125, -0.00467681884765625, 0.0032978057861328125, 0.0379638671875, 0.020660400390625, 0.0765380859375, 0.044189453125, -0.051239013671875, 0.0693359375, -0.033843994140625, 0.03326416015625, -0.01629638671875, 0.039215087890625, -0.0210723876953125, -0.0143585205078125, 0.0631103515625, -0.0162811279296875, 0.0148162841796875, 0.0171966552734375, 0.024627685546875, 0.04217529296875, 0.0102386474609375, 0.047088623046875, -0.019378662109375, -0.001995086669921875, 0.0745849609375, -0.0057525634765625, -0.0836181640625, 0.09332275390625, -0.031829833984375, -0.01427459716796875, 0.0035343170166015625, 0.02862548828125, 0.00921630859375, 0.049652099609375, -0.021270751953125, -0.005054473876953125, -0.01374053955078125, -0.02886962890625, -0.0024433135986328125, 0.01361846923828125, 0.042266845703125, 0.017364501953125, 0.00811767578125, -0.000652313232421875, 0.0019168853759765625, 0.0328369140625, -0.01025390625, -0.035003662109375, 0.03533935546875, -0.0308380126953125, 0.034423828125, 0.0197601318359375, -0.051971435546875, 0.010589599609375, -0.008148193359375, -0.007625579833984375, -0.061492919921875, 0.0227813720703125, -0.033599853515625, -0.0016155242919921875, 0.0087890625, -0.003322601318359375, -0.012908935546875, -0.01050567626953125, -0.0277862548828125, 0.01544952392578125, 0.01763916015625, -0.0036449432373046875, -0.01114654541015625, -0.04638671875, -0.015167236328125, -0.03668212890625, -0.01145172119140625, -0.0261383056640625, -0.0169677734375, -0.0087127685546875, -0.0186767578125, -0.00200653076171875, -0.003162384033203125, -0.00963592529296875, 0.01331329345703125, 0.02313232421875, -0.056182861328125, 0.0654296875, -0.039581298828125, -0.00595855712890625, 0.076171875, 0.0001175999641418457, 0.0014247894287109375, 0.0007309913635253906, 0.01123046875, 0.0197906494140625, -0.056365966796875, 0.0157470703125, -0.055694580078125, 0.00759124755859375, 0.01190948486328125, -0.004123687744140625, 0.00942230224609375, 0.0301666259765625, -0.02056884765625, 0.0148162841796875, 0.01107025146484375, 0.0196990966796875, -0.034912109375, 0.007965087890625, -0.029144287109375, -0.056488037109375, -0.008819580078125, 0.042083740234375, 0.0028934478759765625, -0.04034423828125, 0.0419921875, 0.087646484375, -0.046295166015625, -0.0218658447265625, -0.00795745849609375, 0.027587890625, 0.051025390625, 0.0171051025390625, -0.042724609375, 0.0599365234375, -0.0241546630859375, -0.0628662109375, 0.0240325927734375, 0.004924774169921875, -0.046356201171875, 0.01934814453125, 0.05859375, -0.0275726318359375, -0.02471923828125, 0.07293701171875, 0.0019063949584960938, 0.006694793701171875, 0.01483917236328125, 0.043701171875, 0.0251617431640625, 0.04248046875, -0.006443023681640625, -0.00223541259765625, 0.0179901123046875, 0.01436614990234375, -0.021728515625, -0.0243988037109375, -0.0310516357421875, -0.055145263671875, 0.0121002197265625, -0.0142669677734375, 0.003559112548828125, 0.02459716796875, -0.0092010498046875, 0.012298583984375, 0.007694244384765625, 0.0051116943359375, 0.01371002197265625, 0.0170745849609375, 0.01082611083984375, -0.02728271484375, 0.039703369140625, 0.0299224853515625, -0.007843017578125, -0.0164947509765625, -0.037567138671875, 0.07476806640625, -0.0275115966796875, -0.05926513671875, 0.0242767333984375, 0.019073486328125, 0.0909423828125, -0.0016021728515625, 0.034637451171875, 0.00644683837890625, -0.007640838623046875, -0.03228759765625, 0.025177001953125, 0.00023698806762695312, -0.0295562744140625, -0.005565643310546875, -0.00107574462890625, -0.0113067626953125, -0.01047515869140625, 0.0246734619140625, 0.03271484375, 0.0112457275390625, -0.03399658203125, -0.043182373046875, 0.00737762451171875, -0.01503753662109375, 0.056243896484375, 0.037322998046875, 0.03216552734375, -0.01245880126953125, 0.0019216537475585938, 0.00780487060546875, -0.041656494140625, -0.026458740234375, -0.0136566162109375, -0.0273590087890625, 0.01190185546875, -0.005649566650390625, 0.049468994140625, 0.006008148193359375, -0.0064239501953125, -0.0243988037109375, -0.0158233642578125, 0.0094451904296875, -0.0063934326171875, -0.0260009765625, -0.0227203369140625, -0.034210205078125, 0.00968170166015625, -0.042877197265625, 0.0535888671875, 0.0164794921875, 0.05322265625, 0.007442474365234375, -0.00667572021484375, 0.01177215576171875, -0.046661376953125, -0.0012302398681640625, 0.02911376953125, 0.03448486328125, 0.032623291015625, 0.030670166015625, 0.0285491943359375, 0.060150146484375, -0.022491455078125, 0.0155029296875, -0.006916046142578125, 0.01323699951171875, 0.0060882568359375, -0.0311279296875, -0.0298004150390625, 0.047821044921875, -0.063232421875, 0.0318603515625, 0.042327880859375, -0.0018033981323242188, -0.0321044921875, 0.00536346435546875, -0.01384735107421875, 0.0215911865234375, -0.05804443359375, -0.07293701171875, -0.00579071044921875, -0.0034656524658203125, -0.0177459716796875, -0.00690460205078125, -0.006610870361328125, -0.01219940185546875, -0.0116119384765625, 0.035919189453125, 0.0125579833984375, -0.00525665283203125, 0.009063720703125, 0.0198974609375, -0.002166748046875, -0.0247039794921875, 0.002674102783203125, -0.01326751708984375, 0.0029964447021484375, -0.0276947021484375, -0.004306793212890625, -0.05487060546875, -0.0207366943359375, -0.0134735107421875, -0.0277252197265625, 0.01593017578125, 0.0198516845703125, 0.0504150390625, 0.02630615234375, 0.0345458984375, 0.003662109375, -0.02740478515625, 0.05511474609375, 0.033355712890625, -0.037628173828125, -0.0313720703125, -0.0288848876953125, 0.029998779296875, -0.0164642333984375, 0.041168212890625, 0.06268310546875, 0.006572723388671875, -0.004985809326171875, -0.0021190643310546875, 0.0031642913818359375, 0.0226898193359375, 0.01166534423828125, -0.01123809814453125, -0.00743865966796875, -0.019195556640625, 0.01502227783203125, 0.01611328125, 0.03326416015625, -0.0204620361328125, -0.054473876953125, -0.0249176025390625, 0.01421356201171875, -0.08477783203125, -0.037139892578125, 0.00457000732421875, -0.041229248046875, 0.004581451416015625, -0.025177001953125, -0.01399993896484375, -0.0059967041015625, -0.0214385986328125, -0.01255035400390625, 0.0003325939178466797, -0.034515380859375, -0.03778076171875, -0.06298828125, -0.0675048828125, -0.03607177734375, -0.0009045600891113281, -0.00445556640625, 0.0006704330444335938, 0.0271453857421875, -0.0007076263427734375, -0.054290771484375, 0.0007700920104980469, -0.007450103759765625, -0.0277557373046875, -0.00511932373046875, -0.0019741058349609375, -0.0018100738525390625, -0.006931304931640625, 0.00008338689804077148, 0.0248260498046875, 0.0181427001953125, -0.0278778076171875, 0.0070343017578125, -0.02099609375, -0.059661865234375, -0.038818359375, 0.07342529296875, 0.03656005859375, -0.06707763671875, 0.0137481689453125, -0.073486328125, -0.0030727386474609375, -0.013946533203125, -0.040130615234375, 0.008636474609375, 0.0255126953125, -0.0198974609375, -0.01221466064453125, 0.00624847412109375, 0.02349853515625, 0.0117340087890625, -0.01611328125, 0.002197265625, 0.021759033203125, -0.0010023117065429688, 0.0244903564453125, -0.00878143310546875, 0.06439208984375, -0.0024890899658203125, -0.0197296142578125, 0.0279541015625, 0.0155181884765625, 0.00685882568359375, -0.0181121826171875, -0.03472900390625, -0.006107330322265625, 0.03338623046875, 0.00011599063873291016, -0.00872802734375, 0.01502227783203125, -0.0039520263671875, 0.0178070068359375, 0.04931640625, -0.0011014938354492188, -0.0029201507568359375, 0.0113677978515625, 0.00533294677734375, -0.035125732421875, -0.037261962890625, -0.058135986328125, -0.00417327880859375, -0.09014892578125, -0.02154541015625, -0.00897216796875, -0.034820556640625, 0.0135498046875, -0.01251220703125, -0.03814697265625, -0.04656982421875, 0.036407470703125, 0.000030517578125, -0.0018711090087890625, 0.024932861328125, -0.0221099853515625, -0.004444122314453125, -0.01099395751953125, 0.00595855712890625, -0.0418701171875, 0.01061248779296875, -0.05670166015625, 0.0467529296875, 0.037750244140625, -0.0225982666015625, -0.0137939453125, 0.02545166015625, 0.04998779296875, 0.047088623046875, 0.0361328125, -0.00897979736328125, 0.024810791015625, -0.033355712890625, 0.05438232421875, -0.050323486328125, 0.00960540771484375, 0.01094818115234375, -0.0177459716796875, 0.0304107666015625, -0.02130126953125, -0.024078369140625, 0.0080108642578125, -0.048919677734375, -0.024932861328125, -0.02166748046875, -0.039794921875, -0.047882080078125, -0.01297760009765625, -0.0268096923828125, 0.0023136138916015625, -0.0019893646240234375, 0.0286407470703125, -0.0198974609375, -0.00762939453125, 0.01297760009765625, 0.079833984375, 0.019775390625, -0.0036163330078125, -0.01277923583984375, 0.01103973388671875, 0.049896240234375, 0.025787353515625, 0.0159912109375, -0.023223876953125, -0.04498291015625, 0.0941162109375, 0.02386474609375, 0.026153564453125, -0.0318603515625, 0.0252838134765625, -0.0032634735107421875, -0.03289794921875, 0.0276641845703125, 0.01274871826171875, 0.00014221668243408203, -0.0005812644958496094, -0.0211639404296875, 0.00257110595703125, -0.0002491474151611328, 0.0019445419311523438, -0.0211181640625, 0.031341552734375, -0.01007843017578125, -0.03582763671875, 0.0222015380859375, -0.036712646484375, 0.031463623046875, 0.047637939453125, -0.0241546630859375, 0.0212249755859375, -0.019989013671875, -0.0023860931396484375, 0.0623779296875, 0.037353515625, -0.01187896728515625, 0.02227783203125, 0.03759765625, -0.03985595703125, 0.0279083251953125, -0.00897216796875, 0.053619384765625, -0.01155853271484375, -0.03717041015625, -0.032257080078125, -0.01316070556640625, -0.0005002021789550781, 0.0188140869140625, -0.0025882720947265625, 0.024627685546875, -0.002773284912109375, -0.0260772705078125, -0.01215362548828125, -0.00818634033203125, -0.011627197265625, -0.03875732421875, 0.01458740234375, 0.00228118896484375, -0.0037994384765625, -0.0139312744140625, 0.060760498046875, 0.0007147789001464844, 0.0176544189453125, -0.006816864013671875, 0.007556915283203125, -0.033660888671875, 0.03094482421875, 0.0192413330078125, -0.0004229545593261719, 0.0152130126953125, -0.0063934326171875, 0.0021381378173828125, -0.0335693359375, -0.006977081298828125, 0.00540924072265625, 0.01189422607421875, 0.032745361328125, 0.0035762786865234375, 0.022247314453125, 0.03216552734375, -0.0146331787109375, 0.036529541015625, 0.029876708984375, -0.0193023681640625, -0.012420654296875, -0.001735687255859375, 0.0230255126953125, 0.006374359130859375, -0.010284423828125, 0.0198822021484375, 0.0175323486328125, 0.0433349609375, -0.04083251953125, -0.00653839111328125, 0.0243988037109375, 0.03570556640625, 0.0095062255859375, -0.0335693359375, -0.0129547119140625, -0.052398681640625, 0.024383544921875, -0.036834716796875, -0.013702392578125, 0.061767578125, -0.038116455078125, 0.00792694091796875, -0.01507568359375, 0.004001617431640625, 0.0161590576171875, 0.0015869140625, 0.07421875, 0.039031982421875, -0.09442138671875, -0.0125732421875, -0.0213775634765625, -0.0009527206420898438, -0.041900634765625, -0.043212890625, -0.03692626953125, -0.0007486343383789062, -0.0161285400390625, 0.0157470703125, -0.0270233154296875, -0.0018892288208007812, -0.0022106170654296875, 0.0221710205078125, 0.001613616943359375, 0.031768798828125, -0.002162933349609375, 0.0218658447265625, 0.0291595458984375, 0.01261138916015625, 0.0206146240234375, 0.005115509033203125, -0.013031005859375, -0.020263671875, 0.0115509033203125, -0.0126953125, -0.006656646728515625, -0.0574951171875, 0.042510986328125, 0.019378662109375, 0.04278564453125, 0.0018711090087890625, 0.002101898193359375, -0.01418304443359375, -0.010986328125, -0.02490234375, 0.038330078125, 0.0021381378173828125, -0.004638671875, -0.01096343994140625, -0.051483154296875, -0.0307769775390625, 0.02008056640625, 0.029266357421875, 0.021148681640625, -0.0297698974609375, 0.00701904296875, 0.0173797607421875, -0.04656982421875, 0.06903076171875, 0.08984375, -0.0021839141845703125, 0.046722412109375, 0.036468505859375, 0.01007843017578125, 0.00258636474609375, 0.0611572265625, 0.007526397705078125, -0.04718017578125, 0.0677490234375, 0.01457977294921875, -0.0399169921875, 0.01605224609375, -0.040679931640625, 0.01299285888671875, 0.0212860107421875, 0.045074462890625, -0.06878662109375, 0.029052734375, 0.0063018798828125, 0.029205322265625, 0.06597900390625, -0.013702392578125, -0.0162811279296875, -0.0261993408203125, 0.041229248046875, 0.022216796875, -0.0170745849609375, 0.01507568359375, 0.0218048095703125, -0.004802703857421875, -0.006427764892578125, 0.007457733154296875, -0.0025539398193359375, -0.01532745361328125, -0.0074615478515625, 0.01081085205078125, 0.005451202392578125, -0.00971221923828125, 0.0233306884765625, -0.005886077880859375, -0.0149688720703125, -0.0269317626953125, 0.0273284912109375, 0.0030727386474609375, -0.0158233642578125, 0.016693115234375, -0.0036640167236328125, 0.044403076171875, 0.0546875, -0.0071258544921875, -0.0008764266967773438, 0.0194854736328125, 0.0220794677734375, 0.01456451416015625, -0.0262451171875, 0.01210784912109375, -0.003582000732421875, -0.07415771484375, 0.01445770263671875, -0.0257110595703125, -0.01267242431640625, -0.01178741455078125, -0.0286407470703125, 0.0782470703125, -0.0126495361328125, -0.0243072509765625, 0.035797119140625, -0.007640838623046875, -0.0303192138671875, -0.008697509765625, 0.03277587890625, -0.0738525390625, -0.0311737060546875, 0.0089111328125, -0.0165252685546875, -0.0030040740966796875, -0.00997161865234375, -0.0498046875, 0.1427001953125, -0.0088653564453125, 0.016876220703125, 0.010772705078125, 0.07403564453125, -0.021942138671875, 0.0360107421875, -0.03472900390625, 0.036041259765625, -0.038177490234375, 0.049407958984375, -0.06524658203125, 0.0007233619689941406, -0.00794219970703125, 0.020355224609375, 0.0347900390625, 0.007274627685546875, -0.00986480712890625, -0.0143890380859375, 0.0223236083984375, 0.028228759765625, -0.00933074951171875, 0.034210205078125, 0.005584716796875, 0.029693603515625, 0.028045654296875, -0.01534271240234375, 0.044158935546875, -0.034149169921875, -0.00937652587890625, 0.041046142578125, 0.010589599609375, -0.003681182861328125, 0.01531219482421875, -0.033294677734375, -0.00969696044921875, 0.01593017578125, -0.0093231201171875, 0.0166015625, -0.032196044921875, 0.0341796875, 0.0242919921875, -0.0112762451171875, -0.0195159912109375, -0.0189971923828125, 0.0309600830078125, 0.0262603759765625, 0.0263519287109375, -0.0103607177734375, 0.01727294921875, -0.03192138671875, -0.060791015625, -0.00896453857421875, 0.0046844482421875, -0.040496826171875, 0.0648193359375, 0.004058837890625, 0.03204345703125, -0.048583984375, -0.02203369140625, -0.00021159648895263672, 0.06329345703125, -0.0325927734375, -0.0567626953125, -0.00891876220703125, -0.0159912109375, 0.0201873779296875, 0.021881103515625, 0.03057861328125, -0.0229034423828125, 0.00299835205078125, -0.0282745361328125, 0.002475738525390625, 0.012054443359375, 0.00888824462890625, 0.0019550323486328125, 0.025604248046875, -0.026214599609375, 0.007228851318359375, -0.0242462158203125, 0.01873779296875, 0.017852783203125, 0.0137939453125, -0.01262664794921875, 0.023651123046875, 0.006359100341796875, 0.01197052001953125, -0.022003173828125, 0.064453125, -0.00518035888671875, 0.0287017822265625, -0.043487548828125, -0.0455322265625, -0.00020182132720947266, 0.02703857421875, 0.0045623779296875, 0.0350341796875, 0.00246429443359375, 0.003322601318359375, 0.006816864013671875, 0.00395965576171875, 0.032318115234375, -0.018310546875, 0.005802154541015625, -0.0158538818359375, 0.01561737060546875, -0.0009417533874511719, -0.00838470458984375, -0.0299530029296875, 0.02764892578125, 0.01222991943359375, -0.035308837890625, 0.06982421875, -0.0191650390625, -0.005725860595703125, 0.0489501953125, -0.051361083984375, 0.106201171875, -0.0242462158203125, -0.009307861328125, 0.0033740997314453125, -0.0054168701171875, -0.036895751953125, -0.007495880126953125, 0.0261383056640625, -0.04791259765625, 0.04681396484375, 0.004489898681640625, -0.0144195556640625, 0.03594970703125, -0.0167388916015625, 0.005176544189453125, 0.02203369140625, 0.0272674560546875, 0.006343841552734375, -0.0107879638671875, -0.0142974853515625, -0.030059814453125, 0.057861328125, 0.03826904296875, 0.0419921875, -0.021942138671875, 0.044097900390625, 0.0065460205078125, -0.022918701171875, 0.00731658935546875, 0.0133514404296875, -0.0066070556640625, -0.019866943359375, -0.00975799560546875, -0.0026836395263671875, -0.06298828125, 0.019134521484375, 0.0093841552734375, -0.0149383544921875, -0.002567291259765625, 0.0219268798828125, 0.0220489501953125, 0.0236663818359375, 0.0455322265625, 0.003246307373046875, -0.0352783203125, -0.0178375244140625, 0.011627197265625, 0.031707763671875, 0.06646728515625, -0.0025482177734375, -0.0188446044921875, -0.029083251953125, -0.018890380859375, -0.0233001708984375, 0.020751953125, -0.060333251953125, 0.0162811279296875, -0.013580322265625, -0.057342529296875, -0.0123443603515625, -0.01354217529296875, 0.0009670257568359375, 0.00020313262939453125, 0.07098388671875, -0.01381683349609375, -0.004962921142578125, 0.04791259765625, 0.000823974609375, 0.0278167724609375, -0.03558349609375, -0.0015430450439453125, 0.04583740234375, 0.0106353759765625, -0.0089111328125, -0.053466796875, -0.0218505859375, -0.06341552734375, 0.006031036376953125, 0.03363037109375, -0.03765869140625, -0.0302581787109375, -0.04119873046875, 0.0261688232421875, 0.022491455078125, 0.00966644287109375, -0.08331298828125, 0.0301666259765625, -0.0107269287109375, 0.06689453125, -0.0095367431640625, -0.002025604248046875, 0.007282257080078125, 0.04534912109375, -0.01221466064453125, -0.0119476318359375, -0.023529052734375, 0.0034580230712890625, -0.00818634033203125, 0.044219970703125, 0.06488037109375, -0.02825927734375, -0.0144500732421875, 0.033355712890625, -0.00556182861328125, 0.09625244140625, -0.0230712890625, -0.01146697998046875, 0.038482666015625, -0.0162811279296875, -0.01316070556640625, -0.058837890625, 0.01073455810546875, -0.064208984375, -0.0138702392578125, 0.006439208984375, -0.0107879638671875, 0.01451873779296875, -0.04339599609375, -0.072265625, -0.006809234619140625, 0.0108489990234375, -0.038665771484375, -0.0550537109375, -0.0162353515625, 0.019683837890625, -0.022796630859375, -0.0310211181640625, -0.0292816162109375, -0.06292724609375, 0.027130126953125, -0.003925323486328125, 0.00804901123046875, 0.02398681640625, 0.00327301025390625, -0.0265960693359375, 0.01302337646484375, 0.0186614990234375, -0.01079559326171875, -0.0142059326171875, -0.0174560546875, 0.04779052734375, 0.038818359375, -0.0113983154296875, 0.007083892822265625, 0.0312347412109375, 0.0008883476257324219, -0.0124664306640625, -0.08245849609375, 0.0085906982421875, -0.0005311965942382812, 0.052490234375, 0.012908935546875, 0.012054443359375, -0.046600341796875, -0.032135009765625, -0.0645751953125, -0.0009832382202148438, 0.0002970695495605469, 0.00925445556640625, -0.05694580078125, 0.011474609375, 0.03790283203125, -0.02203369140625, 0.0013856887817382812, 0.0073394775390625, -0.01418304443359375, -0.0002970695495605469, 0.01189422607421875, -0.0201568603515625, 0.010711669921875, -0.0469970703125, 0.05859375, -0.029510498046875, 0.0292816162109375, 0.0122528076171875, 0.02276611328125, 0.0418701171875, 0.0382080078125, 0.01186370849609375, 0.004283905029296875, 0.01312255859375, 0.0036296844482421875, 0.03363037109375, 0.0209808349609375, 0.024505615234375, -0.03875732421875, 0.0078887939453125, 0.03131103515625, -0.0185089111328125, 0.0183868408203125, -0.006877899169921875, 0.05389404296875, -0.0074920654296875, 0.0732421875, -0.0027008056640625, 0.030792236328125, 0.00545501708984375, -0.0013561248779296875, 0.00943756103515625, -0.007289886474609375, 0.035552978515625, -0.0345458984375, 0.007511138916015625, -0.009307861328125, 0.024505615234375, -0.042816162109375, 0.03759765625, -0.024505615234375, 0.0095977783203125, 0.0205078125 ]
d8775db9584cdfb8527f7add9aa6ec3a7567a0a5
Wordpress Stackexchange Q: How to crop thumbnail height to auto with set width I'm looking for a way to only set the width of a thumbnail size and let the height set auto. So if I have two images. One is 600px/420px and one is 600px/600px. I want to set only the width of the thumbnail to 200px so wordpress crops the thumbnails of the above dimensions to 200px/140px and 200px/200px. Any ideas? A: In your theme's functions.php file: /* register new image size * 200px wide and unlimited height */ add_image_size( 'wpse73058', 200, 9999, false ); In a template or the like: if ( has_post_thumbnail() ) { the_post_thumbnail( 'wpse73058' ); }
Q: How to crop thumbnail height to auto with set width I'm looking for a way to only set the width of a thumbnail size and let the height set auto. So if I have two images. One is 600px/420px and one is 600px/600px. I want to set only the width of the thumbnail to 200px so wordpress crops the thumbnails of the above dimensions to 200px/140px and 200px/200px. Any ideas? A: In your theme's functions.php file: /* register new image size * 200px wide and unlimited height */ add_image_size( 'wpse73058', 200, 9999, false ); In a template or the like: if ( has_post_thumbnail() ) { the_post_thumbnail( 'wpse73058' ); }
wordpress
{ "language": "en", "length": 110, "provenance": "stackexchange_00019.jsonl.gz:425938", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73058" }
[ 0.0028896331787109375, -0.014190673828125, -0.00537109375, 0.01305389404296875, -0.01230621337890625, -0.0268096923828125, 0.0246429443359375, -0.029571533203125, 0.041473388671875, -0.002532958984375, -0.04656982421875, 0.0204925537109375, -0.0237884521484375, -0.01461029052734375, -0.01396942138671875, -0.0229949951171875, 0.03558349609375, -0.04498291015625, -0.0093536376953125, -0.0220489501953125, 0.0274658203125, 0.0027332305908203125, 0.01016998291015625, 0.063232421875, -0.0008344650268554688, 0.03564453125, 0.062744140625, -0.0279083251953125, -0.024505615234375, -0.035919189453125, 0.006317138671875, 0.019622802734375, 0.0241546630859375, -0.007659912109375, -0.0021076202392578125, -0.0173492431640625, 0.01837158203125, -0.02349853515625, -0.0224609375, 0.0297698974609375, 0.00926971435546875, -0.0043487548828125, -0.00605010986328125, -0.0003669261932373047, -0.0262603759765625, 0.00380706787109375, -0.013702392578125, -0.037750244140625, 0.008270263671875, 0.019073486328125, 0.01062774658203125, -0.011627197265625, 0.022796630859375, -0.0033721923828125, -0.005985260009765625, 0.0136871337890625, -0.05059814453125, 0.032806396484375, 0.03118896484375, -0.0284576416015625, -0.017974853515625, -0.0213623046875, 0.0239105224609375, -0.00415802001953125, -0.01812744140625, -0.01296234130859375, -0.014129638671875, -0.004425048828125, 0.027923583984375, -0.0206298828125, 0.007610321044921875, 0.007373809814453125, -0.0102081298828125, -0.01561737060546875, -0.0230560302734375, 0.044464111328125, -0.0184326171875, -0.0015974044799804688, 0.03240966796875, -0.0170440673828125, 0.0171966552734375, -0.0266265869140625, -0.00453948974609375, 0.022735595703125, 0.056610107421875, 0.09722900390625, -0.01503753662109375, -0.055450439453125, -0.0024547576904296875, -0.008056640625, -0.01849365234375, -0.0111846923828125, -0.02398681640625, 0.0250091552734375, -0.01837158203125, -0.0229644775390625, -0.0038433074951171875, 0.018585205078125, -0.043853759765625, 0.00742340087890625, -0.0068511962890625, -0.0136566162109375, 0.03460693359375, -0.028778076171875, 0.00678253173828125, 0.047210693359375, -0.016143798828125, 0.0214385986328125, 0.043426513671875, 0.03759765625, 0.0357666015625, 0.021942138671875, 0.00069427490234375, 0.00399017333984375, -0.02362060546875, -0.0008673667907714844, -0.030426025390625, 0.01406097412109375, -0.007965087890625, 0.0002428293228149414, -0.0261688232421875, -0.008544921875, 0.023712158203125, 0.00968170166015625, 0.04248046875, 0.05255126953125, 0.0036945343017578125, -0.031280517578125, -0.005435943603515625, 0.0286865234375, -0.02667236328125, -0.00498199462890625, 0.0220794677734375, 0.02960205078125, 0.01306915283203125, -0.01200103759765625, -0.0223236083984375, -0.04150390625, -0.0310516357421875, 0.044219970703125, -0.04278564453125, -0.041259765625, 0.0272369384765625, -0.030181884765625, 0.0088653564453125, 0.00838470458984375, 0.00846099853515625, 0.02606201171875, 0.0059051513671875, -0.05560302734375, 0.03680419921875, -0.0226287841796875, 0.0252685546875, 0.030059814453125, -0.01038360595703125, -0.004154205322265625, 0.066162109375, -0.036224365234375, -0.040313720703125, -0.05926513671875, -0.004993438720703125, -0.006183624267578125, 0.022735595703125, -0.03167724609375, -0.0428466796875, 0.020294189453125, -0.06524658203125, -0.01123809814453125, 0.029205322265625, -0.0271453857421875, 0.0161895751953125, 0.05029296875, 0.059600830078125, 0.034271240234375, 0.0271148681640625, 0.012969970703125, 0.0567626953125, -0.032745361328125, -0.0009045600891113281, 0.0290374755859375, -0.018951416015625, -0.016204833984375, 0.0301513671875, -0.03643798828125, 0.04913330078125, -0.059051513671875, -0.002010345458984375, -0.0406494140625, -0.0055084228515625, 0.03338623046875, -0.0537109375, 0.0104522705078125, -0.0181427001953125, 0.039276123046875, 0.023193359375, -0.0280303955078125, -0.00799560546875, -0.01100921630859375, 0.016082763671875, -0.050872802734375, 0.0343017578125, -0.0011320114135742188, -0.029510498046875, -0.0066375732421875, -0.037567138671875, -0.043975830078125, -0.0021991729736328125, 0.007297515869140625, -0.003177642822265625, 0.027740478515625, -0.0070648193359375, -0.021820068359375, 0.007610321044921875, -0.03192138671875, -0.0234222412109375, -0.0087738037109375, 0.019744873046875, 0.0248870849609375, -0.0019969940185546875, 0.01296234130859375, 0.00417327880859375, -0.046661376953125, 0.001312255859375, 0.04522705078125, 0.0199737548828125, -0.0211029052734375, -0.01039886474609375, -0.0237274169921875, 0.01079559326171875, -0.01338958740234375, -0.0199432373046875, 0.052276611328125, -0.04107666015625, 0.00655364990234375, -0.01318359375, -0.01076507568359375, -0.014129638671875, -0.03643798828125, 0.015960693359375, 0.026641845703125, 0.0165863037109375, 0.01128387451171875, -0.0150146484375, 0.057220458984375, 0.0986328125, 0.04156494140625, -0.00432586669921875, 0.035369873046875, -0.0022983551025390625, -0.0218353271484375, -0.00888824462890625, -0.04083251953125, 0.034576416015625, -0.035400390625, 0.00013589859008789062, 0.0296478271484375, -0.0252227783203125, 0.043975830078125, -0.00870513916015625, 0.01439666748046875, -0.032257080078125, 0.04638671875, 0.0614013671875, -0.0186920166015625, 0.0135955810546875, -0.01251983642578125, 0.0206451416015625, 0.0137481689453125, -0.0048675537109375, 0.0059814453125, 0.0162506103515625, -0.016448974609375, 0.003963470458984375, 0.01441192626953125, -0.00927734375, -0.03228759765625, -0.01348114013671875, 0.0167083740234375, -0.014801025390625, -0.00763702392578125, -0.020477294921875, 0.01611328125, -0.044158935546875, -0.002323150634765625, -0.0277862548828125, -0.055633544921875, 0.0092926025390625, 0.01007080078125, 0.0142059326171875, -0.011383056640625, -0.019195556640625, 0.0777587890625, 0.00872039794921875, 0.0706787109375, 0.0004119873046875, 0.00909423828125, 0.026397705078125, -0.0726318359375, 0.078857421875, -0.058990478515625, 0.07342529296875, 0.082275390625, -0.030242919921875, 0.039794921875, -0.0266571044921875, -0.011962890625, -0.061859130859375, 0.0197601318359375, -0.01531982421875, -0.036224365234375, -0.006961822509765625, 0.0288238525390625, 0.023773193359375, 0.08245849609375, -0.040435791015625, -0.0308074951171875, -0.00350189208984375, 0.056854248046875, 0.0225830078125, 0.039276123046875, 0.0537109375, -0.0850830078125, -0.0182647705078125, -0.01058197021484375, -0.058441162109375, -0.0162811279296875, 0.01175689697265625, -0.02117919921875, -0.01120758056640625, -0.0286865234375, -0.0299835205078125, -0.036285400390625, -0.035003662109375, 0.0189056396484375, 0.0027713775634765625, 0.0008234977722167969, 0.0274810791015625, 0.016143798828125, 0.007495880126953125, -0.034210205078125, 0.01552581787109375, 0.0537109375, -0.0182952880859375, -0.0006837844848632812, -0.0004839897155761719, 0.046295166015625, -0.037200927734375, 0.01393890380859375, -0.00980377197265625, 0.0294647216796875, -0.05548095703125, -0.0078582763671875, -0.0325927734375, -0.024505615234375, -0.01019287109375, 0.01146697998046875, 0.03350830078125, -0.0090789794921875, -0.0005273818969726562, -0.046722412109375, -0.0445556640625, -0.03509521484375, -0.08026123046875, 0.03961181640625, 0.0535888671875, -0.00382232666015625, -0.006198883056640625, 0.0079193115234375, 0.0022449493408203125, 0.01117706298828125, 0.0143890380859375, -0.0251312255859375, 0.050994873046875, 0.004955291748046875, 0.0032024383544921875, -0.0323486328125, -0.049957275390625, -0.052642822265625, 0.08013916015625, -0.020294189453125, 0.0079803466796875, 0.00007319450378417969, 0.0175018310546875, -0.005279541015625, -0.027252197265625, 0.05657958984375, 0.0273284912109375, 0.01763916015625, -0.0121917724609375, -0.037384033203125, -0.007144927978515625, 0.06390380859375, -0.07806396484375, -0.033294677734375, 0.021148681640625, 0.04443359375, -0.021759033203125, -0.0423583984375, -0.0252838134765625, -0.025604248046875, -0.09552001953125, -0.0260162353515625, -0.0078887939453125, -0.0645751953125, 0.009979248046875, 0.01497650146484375, -0.051055908203125, -0.028961181640625, 0.01377105712890625, 0.03338623046875, -0.03631591796875, 0.052398681640625, -0.039520263671875, 0.06719970703125, -0.01416015625, -0.019012451171875, -0.055328369140625, -0.01319122314453125, 0.00479888916015625, 0.056396484375, -0.04339599609375, 0.058685302734375, -0.0222930908203125, 0.0384521484375, -0.038818359375, -0.005420684814453125, 0.002025604248046875, 0.05438232421875, -0.0286407470703125, 0.00423431396484375, 0.0019063949584960938, -0.0260467529296875, -0.0034122467041015625, -0.0711669921875, -0.042724609375, -0.0277099609375, -0.033599853515625, 0.057830810546875, -0.0283355712890625, 0.00835418701171875, -0.05609130859375, -0.0233154296875, 0.015167236328125, 0.00760650634765625, 0.0023136138916015625, -0.0013828277587890625, -0.0257720947265625, -0.05084228515625, 0.057769775390625, 0.044769287109375, 0.0011034011840820312, -0.01479339599609375, 0.070068359375, -0.0021190643310546875, -0.046173095703125, -0.041229248046875, 0.0011806488037109375, 0.036224365234375, 0.016143798828125, 0.006359100341796875, 0.018646240234375, -0.023895263671875, -0.00787353515625, 0.0360107421875, -0.02069091796875, -0.006317138671875, 0.048980712890625, -0.0195465087890625, -0.0831298828125, 0.055755615234375, -0.0330810546875, 0.00841522216796875, 0.038421630859375, 0.00620269775390625, -0.0174713134765625, 0.00978851318359375, 0.0164337158203125, 0.00890350341796875, -0.0286407470703125, -0.0257415771484375, -0.01275634765625, 0.0001647472381591797, 0.0165863037109375, -0.00579071044921875, 0.0191497802734375, -0.01004791259765625, -0.0105743408203125, 0.00893402099609375, 0.01427459716796875, 0.00406646728515625, 0.018707275390625, 0.0035552978515625, 0.03173828125, 0.01216888427734375, 0.0154876708984375, -0.0208740234375, 0.0156402587890625, -0.034942626953125, 0.019012451171875, -0.001495361328125, -0.052215576171875, 0.019744873046875, 0.0325927734375, -0.027099609375, -0.005496978759765625, 0.0462646484375, 0.0272216796875, -0.036285400390625, -0.02008056640625, -0.01318359375, -0.006313323974609375, -0.058868408203125, 0.023681640625, 0.00862884521484375, -0.0178375244140625, 0.06207275390625, -0.044403076171875, 0.026214599609375, -0.002941131591796875, -0.00421905517578125, 0.0105133056640625, 0.03216552734375, -0.0105743408203125, 0.0130462646484375, 0.047943115234375, -0.05029296875, 0.01446533203125, 0.0078887939453125, -0.033966064453125, -0.0264739990234375, 0.06732177734375, 0.06365966796875, -0.034423828125, -0.01849365234375, -0.0194091796875, -0.00896453857421875, 0.006130218505859375, -0.038543701171875, -0.0205841064453125, -0.020721435546875, 0.008697509765625, 0.0423583984375, 0.0135955810546875, -0.003887176513671875, -0.0236968994140625, 0.0128326416015625, -0.011474609375, 0.017913818359375, 0.0281982421875, -0.033538818359375, 0.013427734375, 0.01119232177734375, -0.004360198974609375, -0.0048675537109375, -0.032196044921875, 0.00792694091796875, -0.018218994140625, -0.0098419189453125, -0.0270233154296875, 0.04656982421875, -0.048431396484375, 0.003223419189453125, -0.0032482147216796875, -0.0048828125, 0.00795745849609375, 0.02984619140625, 0.046295166015625, 0.0293121337890625, -0.05084228515625, -0.0340576171875, -0.052947998046875, -0.01224517822265625, 0.01406097412109375, 0.0009565353393554688, -0.00981903076171875, 0.004913330078125, -0.01213836669921875, 0.0211334228515625, -0.01120758056640625, -0.004207611083984375, 0.002391815185546875, 0.00463104248046875, -0.0153656005859375, -0.0251312255859375, -0.02947998046875, 0.0135650634765625, 0.0498046875, 0.020050048828125, 0.0004954338073730469, -0.004474639892578125, 0.008087158203125, -0.0222930908203125, -0.011749267578125, -0.00893402099609375, 0.003826141357421875, 0.032135009765625, -0.045745849609375, -0.036956787109375, 0.04205322265625, 0.0013599395751953125, -0.004581451416015625, -0.046844482421875, -0.0230712890625, -0.021728515625, 0.07037353515625, -0.0209503173828125, 0.021636962890625, 0.004238128662109375, -0.0028247833251953125, 0.09100341796875, 0.0011930465698242188, -0.00962066650390625, -0.006961822509765625, -0.037689208984375, 0.0252227783203125, 0.06829833984375, 0.01416015625, -0.011962890625, 0.06427001953125, -0.040008544921875, 0.0274658203125, 0.0517578125, -0.003292083740234375, 0.05377197265625, 0.0281524658203125, -0.0234527587890625, -0.0491943359375, 0.0236663818359375, 0.00997161865234375, -0.0230712890625, -0.00022876262664794922, -0.0169830322265625, 0.01947021484375, 0.017486572265625, 0.03887939453125, -0.0200958251953125, 0.0153350830078125, 0.00036907196044921875, -0.0299072265625, 0.040191650390625, -0.0025463104248046875, -0.005588531494140625, 0.00949859619140625, 0.047454833984375, -0.039642333984375, -0.0148162841796875, 0.02471923828125, -0.00327301025390625, -0.02911376953125, 0.0231475830078125, -0.0024890899658203125, 0.01483154296875, -0.04302978515625, 0.001651763916015625, 0.0236968994140625, -0.0019626617431640625, 0.009033203125, 0.02093505859375, -0.0291748046875, -0.01451873779296875, -0.006244659423828125, -0.00524139404296875, -0.017181396484375, -0.013641357421875, 0.023040771484375, 0.03399658203125, 0.0028533935546875, 0.0386962890625, -0.00634002685546875, 0.032470703125, 0.01446533203125, -0.0283660888671875, 0.03851318359375, -0.0082244873046875, 0.026824951171875, 0.0118408203125, -0.05023193359375, 0.006099700927734375, -0.033203125, 0.0165557861328125, -0.0087738037109375, -0.0157012939453125, 0.06866455078125, -0.018646240234375, -0.00955963134765625, 0.0278167724609375, 0.022857666015625, -0.013275146484375, 0.0004329681396484375, 0.038604736328125, -0.048370361328125, -0.0169830322265625, 0.01334381103515625, -0.0033740997314453125, -0.016082763671875, -0.023773193359375, -0.012054443359375, 0.049346923828125, -0.025604248046875, -0.015960693359375, -0.0022563934326171875, 0.0247039794921875, 0.030670166015625, 0.044647216796875, 0.008270263671875, 0.021728515625, -0.010894775390625, -0.036651611328125, -0.005992889404296875, 0.0240478515625, -0.0240325927734375, -0.0038318634033203125, 0.005527496337890625, -0.0020294189453125, -0.040313720703125, -0.0000928044319152832, 0.0703125, 0.06964111328125, 0.053619384765625, 0.01027679443359375, -0.00847625732421875, 0.018341064453125, 0.021697998046875, -0.06243896484375, 0.01282501220703125, -0.0167236328125, -0.01070404052734375, 0.0197296142578125, 0.003086090087890625, 0.004924774169921875, -0.02032470703125, 0.017547607421875, -0.056976318359375, -0.0026302337646484375, 0.048309326171875, -0.037322998046875, 0.0740966796875, 0.015869140625, 0.0640869140625, -0.002124786376953125, -0.028961181640625, 0.005672454833984375, 0.052490234375, 0.00702667236328125, 0.01546478271484375, 0.004077911376953125, 0.007476806640625, 0.029388427734375, 0.02008056640625, -0.0006203651428222656, 0.04345703125, 0.0004856586456298828, -0.041412353515625, 0.0164642333984375, 0.008331298828125, -0.00452423095703125, 0.0260467529296875, 0.0175323486328125, -0.040863037109375, -0.01465606689453125, -0.0273590087890625, -0.00936126708984375, -0.0111236572265625, 0.00855255126953125, -0.0296630859375, -0.0200347900390625, -0.040435791015625, 0.01146697998046875, -0.0188140869140625, 0.01110076904296875, 0.035064697265625, 0.04815673828125, 0.003993988037109375, 0.0037899017333984375, -0.08154296875, -0.0126800537109375, -0.0269622802734375, -0.0227508544921875, 0.025634765625, 0.035552978515625, 0.016815185546875, 0.0268707275390625, 0.0239715576171875, -0.0007562637329101562, -0.02362060546875, 0.03460693359375, -0.01421356201171875, 0.011566162109375, -0.0101776123046875, -0.0191192626953125, -0.01316070556640625, 0.0216064453125, -0.0364990234375, -0.00508880615234375, 0.057861328125, 0.007335662841796875, -0.132080078125, -0.039337158203125, -0.012939453125, -0.070556640625, 0.006824493408203125, -0.01197052001953125, 0.0280303955078125, 0.041717529296875, -0.00406646728515625, -0.0177001953125, -0.00037384033203125, 0.0638427734375, -0.03173828125, 0.0295867919921875, -0.0028858184814453125, -0.028656005859375, -0.01091766357421875, -0.03216552734375, 0.0428466796875, -0.00484466552734375, -0.0546875, 0.0189208984375, -0.031005859375, -0.04022216796875, 0.01290130615234375, 0.0162200927734375, -0.0335693359375, 0.0267791748046875, 0.008575439453125, 0.0011005401611328125, -0.005580902099609375, -0.0310821533203125, 0.03863525390625, -0.0225982666015625, -0.01099395751953125, 0.01294708251953125, -0.057586669921875, -0.0281524658203125, -0.041595458984375, 0.03973388671875, 0.007678985595703125, 0.07330322265625, -0.0288238525390625, 0.0192718505859375, 0.0291290283203125, -0.0192108154296875, 0.0192413330078125, 0.007328033447265625, 0.03814697265625, -0.01165008544921875, -0.00894927978515625, -0.0198822021484375, -0.0171356201171875, -0.0005922317504882812, 0.040374755859375, -0.02545166015625, 0.017608642578125, -0.029296875, 0.011810302734375, -0.0106201171875, 0.0100250244140625, -0.040313720703125, -0.052825927734375, -0.06256103515625, 0.00679779052734375, 0.0009784698486328125, -0.006473541259765625, -0.023590087890625, 0.0545654296875, 0.03192138671875, 0.050994873046875, 0.031097412109375, -0.006450653076171875, 0.056488037109375, 0.04046630859375, -0.08050537109375, -0.05047607421875, 0.0168304443359375, 0.0023555755615234375, -0.0261077880859375, 0.031341552734375, 0.03973388671875, 0.00299072265625, 0.0203857421875, 0.05450439453125, 0.0014715194702148438, 0.035919189453125, -0.040985107421875, -0.011260986328125, 0.00577545166015625, 0.033477783203125, -0.00116729736328125, 0.004749298095703125, 0.0020599365234375, -0.027618408203125, -0.0208282470703125, 0.008056640625, -0.00506591796875, -0.0079193115234375, 0.01165771484375, 0.00005924701690673828, 0.03094482421875, 0.029266357421875, -0.06280517578125, 0.06365966796875, -0.0009260177612304688, -0.013763427734375, 0.0138702392578125, -0.06756591796875, 0.01480865478515625, 0.04541015625, -0.00202178955078125, -0.055084228515625, -0.0293426513671875, 0.034332275390625, -0.0345458984375, 0.03826904296875, 0.0248870849609375, -0.0394287109375, 0.01505279541015625, 0.045196533203125, 0.04876708984375, 0.084716796875, 0.0033702850341796875, -0.046783447265625, 0.005390167236328125, 0.0019197463989257812, 0.0367431640625, -0.033935546875, -0.02813720703125, -0.04034423828125, 0.04193115234375, -0.047027587890625, 0.00476837158203125, -0.01393890380859375, -0.0292510986328125, -0.040924072265625, 0.0206756591796875, -0.00701904296875, -0.0261993408203125, -0.00798797607421875, 0.0033817291259765625, -0.010040283203125, 0.0230255126953125, 0.0015840530395507812, 0.00247955322265625, -0.0025882720947265625, 0.0039005279541015625, 0.0220947265625, -0.00909423828125, 0.01265716552734375, 0.007442474365234375, -0.0122222900390625, 0.0640869140625, 0.053802490234375, -0.004055023193359375, 0.0033893585205078125, 0.01153564453125, 0.0255126953125, 0.058258056640625, 0.00479888916015625, -0.01506805419921875, -0.003154754638671875, -0.0740966796875, -0.002880096435546875, 0.020843505859375, -0.04327392578125, -0.0006275177001953125, 0.06451416015625, 0.039794921875, 0.0272979736328125, -0.0306854248046875, -0.01641845703125, 0.0030078887939453125, -0.006473541259765625, -0.01024627685546875, -0.0013742446899414062, -0.037322998046875, -0.0108184814453125, -0.026885986328125, -0.007724761962890625, 0.0184478759765625, -0.03729248046875, -0.043212890625, -0.0023670196533203125, -0.0433349609375, 0.0247650146484375, -0.087890625, 0.07159423828125, 0.06414794921875, -0.055419921875, -0.02777099609375, 0.0023975372314453125, -0.029510498046875, 0.0199432373046875, -0.044921875, 0.0006833076477050781, 0.046173095703125, -0.046173095703125, -0.0002532005310058594, 0.0035266876220703125, 0.01250457763671875, -0.0270538330078125, 0.0233154296875, -0.0252532958984375, 0.025482177734375, 0.029022216796875, 0.061248779296875, -0.0122833251953125, -0.00632476806640625, 0.03472900390625, -0.058837890625, 0.01013946533203125, 0.0164337158203125, -0.03314208984375, 0.034942626953125, 0.00229644775390625, -0.032470703125, 0.01490020751953125, -0.003665924072265625, 0.01300048828125, -0.005451202392578125, -0.03564453125, -0.014678955078125, 0.0017070770263671875, 0.00763702392578125, -0.03497314453125, 0.01953125 ]
cbe49ebc5eee151b9eed78addb4dd07abb4796f2
Wordpress Stackexchange Q: Getting /feed/ behind post urls in Google Webmaster Tools; crawler errors? Currently I have a wordpress site submitted in Google Webmaster Tools. But at the Crawler Errors page, I see a lot of : site.nl/post/feed. Does anyone know how these get there and how to get rid of em? A: Those are 'pretty permalink' style Feed URLs. Google doesn't guess at URLs, so your site must be printing them somewhere. Or, your site used to print them and you've since disabled your feeds or broken them somehow. Google would then have those URLs in its database. You have to make sure your site isn't mistakenly printing bad URLs, then, if your site is no longer printing the bad URLs, they will drop out of Google's database eventually. You can set them to 'fixed' in webmaster tools but they will show up if Google finds the link again.
Q: Getting /feed/ behind post urls in Google Webmaster Tools; crawler errors? Currently I have a wordpress site submitted in Google Webmaster Tools. But at the Crawler Errors page, I see a lot of : site.nl/post/feed. Does anyone know how these get there and how to get rid of em? A: Those are 'pretty permalink' style Feed URLs. Google doesn't guess at URLs, so your site must be printing them somewhere. Or, your site used to print them and you've since disabled your feeds or broken them somehow. Google would then have those URLs in its database. You have to make sure your site isn't mistakenly printing bad URLs, then, if your site is no longer printing the bad URLs, they will drop out of Google's database eventually. You can set them to 'fixed' in webmaster tools but they will show up if Google finds the link again.
wordpress
{ "language": "en", "length": 148, "provenance": "stackexchange_00019.jsonl.gz:425955", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73126" }
[ 0.08270263671875, 0.0034198760986328125, 0.0418701171875, 0.020751953125, -0.006427764892578125, -0.05133056640625, 0.08642578125, -0.0758056640625, 0.01148223876953125, -0.00688934326171875, -0.038909912109375, -0.0193939208984375, 0.01459503173828125, -0.0310211181640625, 0.01531982421875, -0.04302978515625, 0.0072021484375, 0.004642486572265625, 0.0286102294921875, -0.004787445068359375, 0.02703857421875, -0.0059051513671875, 0.0095062255859375, -0.019439697265625, 0.0111541748046875, 0.04913330078125, 0.037933349609375, -0.032073974609375, 0.00032019615173339844, -0.036895751953125, 0.02313232421875, -0.010833740234375, 0.02349853515625, -0.0391845703125, 0.03045654296875, -0.04583740234375, 0.0034427642822265625, -0.0210113525390625, 0.0086212158203125, -0.0149078369140625, 0.005157470703125, -0.01361846923828125, 0.0955810546875, -0.00180816650390625, 0.0352783203125, 0.008056640625, 0.00179290771484375, -0.08416748046875, 0.01381683349609375, 0.03045654296875, 0.00011873245239257812, 0.0178070068359375, -0.0007724761962890625, 0.055816650390625, -0.026885986328125, -0.03314208984375, 0.040130615234375, -0.01213836669921875, 0.02752685546875, -0.054931640625, -0.024810791015625, 0.0166015625, 0.02435302734375, 0.0186767578125, -0.02813720703125, 0.000023484230041503906, 0.024169921875, -0.005794525146484375, 0.0296173095703125, -0.01294708251953125, 0.00577545166015625, 0.0208740234375, -0.01513671875, -0.0033168792724609375, 0.00742340087890625, 0.0027294158935546875, -0.031005859375, -0.0174102783203125, 0.022003173828125, 0.0279998779296875, 0.00223541259765625, 0.00336456298828125, -0.017547607421875, 0.02740478515625, -0.005634307861328125, 0.04351806640625, -0.006534576416015625, -0.02520751953125, -0.0116119384765625, -0.0124969482421875, -0.0186920166015625, -0.034881591796875, -0.00899505615234375, 0.0211029052734375, -0.022735595703125, -0.00269317626953125, 0.030029296875, 0.04779052734375, 0.011627197265625, 0.001850128173828125, -0.0171356201171875, -0.023284912109375, -0.0169525146484375, -0.0215606689453125, 0.0104522705078125, 0.0025577545166015625, -0.0097808837890625, 0.0054473876953125, 0.042633056640625, 0.0224456787109375, -0.006805419921875, 0.047332763671875, -0.00962066650390625, -0.0185699462890625, -0.041748046875, 0.03173828125, -0.012786865234375, -0.016876220703125, 0.0014753341674804688, 0.0030727386474609375, -0.01280975341796875, 0.0364990234375, -0.0814208984375, -0.011016845703125, 0.006229400634765625, -0.0273590087890625, 0.0112457275390625, 0.0292510986328125, -0.006214141845703125, 0.05804443359375, -0.035247802734375, -0.004486083984375, 0.053192138671875, 0.0284881591796875, 0.0010690689086914062, -0.043792724609375, 0.01256561279296875, -0.0670166015625, -0.03240966796875, 0.043426513671875, -0.044952392578125, -0.034637451171875, 0.0265960693359375, -0.034271240234375, 0.022003173828125, 0.02099609375, 0.019195556640625, 0.017303466796875, 0.004638671875, -0.0029449462890625, -0.0264129638671875, 0.0222320556640625, 0.027191162109375, 0.01335906982421875, 0.0011396408081054688, -0.07196044921875, 0.07275390625, -0.06683349609375, 0.032379150390625, -0.06561279296875, 0.020172119140625, 0.006031036376953125, 0.03289794921875, -0.027984619140625, -0.03790283203125, -0.0161590576171875, -0.0679931640625, -0.00904083251953125, 0.0288543701171875, 0.0027446746826171875, 0.00844573974609375, -0.01355743408203125, 0.00489044189453125, -0.0118255615234375, -0.0103607177734375, 0.004459381103515625, 0.0263519287109375, 0.0105743408203125, 0.01187896728515625, 0.042755126953125, 0.0159149169921875, -0.025421142578125, 0.05255126953125, -0.01546478271484375, -0.048553466796875, 0.0087890625, 0.0169219970703125, 0.06298828125, 0.01531219482421875, 0.0299072265625, 0.05657958984375, -0.0126495361328125, -0.0130615234375, 0.0214080810546875, -0.01678466796875, -0.04351806640625, 0.0191650390625, -0.007602691650390625, -0.01421356201171875, -0.0097503662109375, -0.0160675048828125, 0.052703857421875, -0.032989501953125, 0.01253509521484375, -0.056915283203125, 0.03076171875, -0.0236663818359375, 0.053497314453125, -0.036712646484375, 0.025054931640625, 0.019378662109375, -0.01776123046875, -0.031707763671875, 0.0165252685546875, 0.006618499755859375, -0.0210723876953125, -0.0012693405151367188, 0.0230712890625, -0.00937652587890625, 0.04669189453125, -0.036895751953125, -0.017242431640625, -0.0455322265625, -0.027496337890625, 0.04473876953125, -0.0006451606750488281, -0.0182647705078125, -0.017486572265625, 0.0275115966796875, 0.0118255615234375, -0.042572021484375, 0.023529052734375, 0.036407470703125, 0.0275115966796875, -0.0136871337890625, 0.01137542724609375, 0.0238189697265625, -0.0379638671875, 0.01107025146484375, 0.030517578125, 0.0151214599609375, 0.057403564453125, 0.002971649169921875, 0.01216888427734375, -0.0074005126953125, -0.040252685546875, 0.0306854248046875, -0.0271148681640625, 0.026580810546875, 0.035003662109375, -0.008331298828125, -0.0236358642578125, 0.01519775390625, -0.0167388916015625, 0.01654052734375, 0.0284881591796875, 0.0201873779296875, -0.02239990234375, -0.007049560546875, 0.0199127197265625, 0.015594482421875, 0.0235137939453125, -0.04254150390625, 0.03192138671875, 0.01290130615234375, 0.009857177734375, 0.050079345703125, 0.064697265625, 0.0017337799072265625, -0.0260162353515625, -0.007724761962890625, 0.0202178955078125, 0.004703521728515625, 0.0164642333984375, 0.058868408203125, -0.00830078125, 0.0207061767578125, -0.042816162109375, 0.01201629638671875, 0.01090240478515625, -0.0080413818359375, 0.0283660888671875, 0.018157958984375, 0.0037994384765625, -0.03350830078125, -0.03887939453125, 0.029693603515625, 0.0249786376953125, 0.033660888671875, 0.02227783203125, 0.030670166015625, 0.000004827976226806641, -0.0172576904296875, 0.04522705078125, 0.02410888671875, -0.037139892578125, 0.05224609375, -0.053466796875, 0.0311431884765625, -0.00499725341796875, 0.050079345703125, 0.059478759765625, 0.019866943359375, -0.017242431640625, 0.00788116455078125, 0.029693603515625, 0.02874755859375, 0.00675201416015625, -0.0093536376953125, -0.0210723876953125, -0.0537109375, -0.048095703125, 0.028167724609375, 0.0130157470703125, 0.014068603515625, -0.01197052001953125, -0.0125579833984375, 0.03448486328125, -0.07928466796875, -0.0455322265625, 0.01451873779296875, -0.0246124267578125, -0.0330810546875, -0.005275726318359375, -0.0215911865234375, 0.0097808837890625, -0.00782012939453125, -0.013427734375, -0.0009465217590332031, -0.0263214111328125, -0.06280517578125, -0.031829833984375, -0.08624267578125, 0.039886474609375, -0.002902984619140625, 0.0404052734375, 0.015594482421875, -0.057403564453125, 0.006847381591796875, -0.018524169921875, 0.04486083984375, 0.07318115234375, -0.01270294189453125, -0.037445068359375, -0.043487548828125, 0.040557861328125, 0.01226043701171875, 0.006610870361328125, -0.00786590576171875, 0.033294677734375, -0.0176544189453125, 0.0031147003173828125, -0.0160064697265625, -0.00530242919921875, -0.006740570068359375, -0.0439453125, 0.026031494140625, -0.0168304443359375, -0.040618896484375, -0.052642822265625, -0.020965576171875, -0.0120697021484375, -0.032562255859375, 0.0309906005859375, 0.01157379150390625, 0.006313323974609375, -0.01070404052734375, 0.0208740234375, 0.01904296875, 0.0074310302734375, 0.05987548828125, -0.0133056640625, -0.024993896484375, -0.0184173583984375, -0.00937652587890625, -0.048431396484375, 0.007549285888671875, -0.033050537109375, 0.01611328125, -0.005756378173828125, 0.004840850830078125, -0.0081024169921875, 0.00782012939453125, -0.0292205810546875, -0.01163482666015625, -0.006122589111328125, -0.05816650390625, 0.00841522216796875, -0.021026611328125, 0.0076446533203125, -0.0099029541015625, 0.033355712890625, -0.023956298828125, -0.0162353515625, -0.017913818359375, 0.0230865478515625, -0.030914306640625, -0.038116455078125, -0.00585174560546875, 0.01105499267578125, -0.07183837890625, 0.01495361328125, -0.007793426513671875, -0.0286712646484375, -0.01096343994140625, -0.021392822265625, -0.04705810546875, -0.041107177734375, 0.024749755859375, 0.0209197998046875, 0.007724761962890625, -0.022735595703125, 0.033966064453125, -0.04302978515625, -0.0247802734375, 0.0010805130004882812, -0.07965087890625, -0.0186309814453125, 0.01007080078125, 0.044464111328125, 0.0226898193359375, -0.050506591796875, 0.01971435546875, 0.07568359375, 0.018218994140625, -0.0069732666015625, 0.033416748046875, -0.01328277587890625, 0.0474853515625, 0.0170440673828125, 0.007335662841796875, -0.01166534423828125, 0.0084381103515625, 0.032196044921875, -0.06646728515625, -0.0033740997314453125, 0.02569580078125, 0.0023479461669921875, 0.0804443359375, -0.05706787109375, -0.0721435546875, -0.036773681640625, -0.004756927490234375, 0.021575927734375, 0.0004017353057861328, -0.0069580078125, -0.03204345703125, -0.07061767578125, 0.01326751708984375, -0.01178741455078125, -0.0236968994140625, 0.01197052001953125, 0.0170745849609375, 0.023101806640625, -0.0023345947265625, 0.049041748046875, -0.00919342041015625, 0.01416778564453125, -0.004146575927734375, 0.061431884765625, 0.03985595703125, -0.0023193359375, 0.01209259033203125, -0.0035839080810546875, -0.0254974365234375, -0.026641845703125, 0.07269287109375, 0.005695343017578125, -0.017425537109375, 0.007732391357421875, -0.0252838134765625, 0.0226593017578125, 0.0223388671875, -0.0452880859375, 0.025238037109375, -0.00823974609375, 0.007801055908203125, -0.059051513671875, 0.07275390625, -0.01035308837890625, 0.004180908203125, 0.00011140108108520508, 0.0301971435546875, 0.0282440185546875, 0.0232086181640625, -0.0026378631591796875, -0.0191802978515625, -0.01322174072265625, 0.0235748291015625, -0.0201873779296875, -0.0097503662109375, -0.043609619140625, 0.0474853515625, -0.0433349609375, -0.01141357421875, 0.0030345916748046875, -0.0150604248046875, 0.05804443359375, -0.00421142578125, -0.055206298828125, 0.00844573974609375, -0.0189361572265625, -0.00920867919921875, 0.0223236083984375, 0.0127105712890625, 0.0254974365234375, 0.016998291015625, -0.01026153564453125, -0.0173187255859375, -0.0158233642578125, -0.0011463165283203125, -0.0335693359375, 0.001983642578125, 0.00811004638671875, -0.01160430908203125, -0.005252838134765625, 0.05804443359375, -0.00865936279296875, 0.02301025390625, -0.02117919921875, -0.0185546875, -0.02178955078125, 0.039154052734375, 0.0154266357421875, -0.018310546875, 0.005947113037109375, 0.032318115234375, 0.055816650390625, -0.027008056640625, -0.0379638671875, 0.00766754150390625, 0.03607177734375, 0.0257110595703125, 0.0269775390625, -0.007434844970703125, 0.00815582275390625, -0.02374267578125, 0.04510498046875, 0.019866943359375, -0.045562744140625, -0.0234375, -0.0247650146484375, 0.0016651153564453125, -0.00005435943603515625, -0.007450103759765625, 0.01322174072265625, 0.014923095703125, 0.00848388671875, 0.04864501953125, -0.075927734375, 0.0292816162109375, 0.0401611328125, -0.0106048583984375, -0.03265380859375, -0.00027489662170410156, -0.040252685546875, 0.0053863525390625, -0.01477813720703125, -0.0049896240234375, 0.032562255859375, -0.008087158203125, -0.03729248046875, -0.020477294921875, 0.035919189453125, -0.01824951171875, 0.006805419921875, 0.00356292724609375, -0.0286407470703125, 0.005580902099609375, 0.0004203319549560547, -0.043182373046875, -0.04388427734375, -0.046356201171875, -0.0023784637451171875, -0.05047607421875, -0.002079010009765625, -0.006404876708984375, 0.02447509765625, -0.0131988525390625, 0.0204010009765625, 0.019927978515625, 0.018310546875, -0.0135345458984375, 0.01322174072265625, -0.00618743896484375, 0.0338134765625, -0.003246307373046875, 0.0148162841796875, -0.00821685791015625, 0.0158233642578125, 0.0087127685546875, -0.02593994140625, -0.0111846923828125, -0.0679931640625, -0.0234375, 0.030181884765625, -0.01494598388671875, 0.06866455078125, 0.02581787109375, 0.00936126708984375, -0.024993896484375, -0.01529693603515625, 0.01396942138671875, -0.01305389404296875, 0.0634765625, -0.01497650146484375, -0.04315185546875, 0.045684814453125, -0.00188446044921875, -0.01708984375, 0.0126800537109375, 0.03802490234375, -0.033782958984375, 0.012054443359375, -0.03057861328125, -0.034820556640625, -0.01030731201171875, 0.01457977294921875, 0.09454345703125, 0.0029811859130859375, 0.060760498046875, 0.033782958984375, 0.01055908203125, 0.036529541015625, 0.00508880615234375, -0.025054931640625, -0.037811279296875, 0.02081298828125, -0.0007429122924804688, 0.0015201568603515625, 0.032073974609375, -0.01690673828125, -0.006641387939453125, 0.0250091552734375, 0.048675537109375, -0.0318603515625, -0.0173492431640625, -0.0037288665771484375, -0.033111572265625, 0.00724029541015625, -0.00229644775390625, 0.00916290283203125, 0.000006079673767089844, 0.004390716552734375, 0.0130615234375, -0.013580322265625, 0.0009284019470214844, 0.006683349609375, -0.007904052734375, 0.0035858154296875, 0.0091400146484375, -0.0011463165283203125, -0.053192138671875, -0.04315185546875, 0.035552978515625, -0.03302001953125, -0.03436279296875, -0.01332855224609375, -0.0083160400390625, -0.0270843505859375, -0.0202484130859375, 0.03216552734375, -0.001255035400390625, 0.034332275390625, -0.0308990478515625, -0.0303497314453125, 0.037567138671875, 0.001094818115234375, -0.00638580322265625, -0.0222930908203125, -0.0328369140625, 0.01110076904296875, 0.08160400390625, -0.0285797119140625, -0.006122589111328125, -0.01611328125, 0.01131439208984375, -0.02081298828125, 0.0245208740234375, -0.0377197265625, -0.007137298583984375, 0.005828857421875, 0.082763671875, -0.020111083984375, -0.031402587890625, -0.00972747802734375, 0.02117919921875, 0.0201263427734375, -0.021514892578125, 0.007404327392578125, -0.0611572265625, 0.00237274169921875, -0.0091400146484375, 0.004913330078125, 0.0214385986328125, -0.022247314453125, -0.0931396484375, 0.0860595703125, -0.017578125, 0.07177734375, 0.006328582763671875, 0.01629638671875, 0.0015716552734375, 0.0001957416534423828, -0.01080322265625, 0.05084228515625, -0.0246124267578125, 0.02508544921875, -0.045135498046875, -0.01081085205078125, 0.01546478271484375, 0.0264739990234375, 0.07281494140625, 0.0204620361328125, -0.067626953125, -0.03936767578125, 0.0272216796875, 0.038116455078125, 0.0095367431640625, 0.05145263671875, 0.00008863210678100586, 0.08953857421875, 0.048492431640625, -0.08441162109375, 0.025909423828125, -0.005252838134765625, 0.00189971923828125, 0.0205230712890625, 0.0004153251647949219, -0.0059356689453125, 0.041534423828125, -0.035064697265625, 0.000396728515625, 0.028228759765625, 0.0052032470703125, 0.0017900466918945312, 0.002239227294921875, 0.0200653076171875, 0.0193328857421875, -0.11883544921875, -0.0784912109375, -0.0245208740234375, 0.024810791015625, -0.0008940696716308594, 0.050048828125, 0.0594482421875, 0.0243377685546875, 0.0802001953125, 0.043212890625, 0.0645751953125, 0.033599853515625, -0.01392364501953125, 0.05096435546875, 0.031494140625, 0.0082244873046875, -0.03753662109375, 0.004016876220703125, 0.03668212890625, 0.06292724609375, -0.049072265625, -0.05987548828125, -0.0008845329284667969, -0.0182952880859375, 0.003917694091796875, 0.017974853515625, 0.023651123046875, -0.03997802734375, -0.01531982421875, 0.0032958984375, -0.042572021484375, -0.0135650634765625, 0.023590087890625, -0.00673675537109375, -0.0195770263671875, 0.03753662109375, -0.0413818359375, -0.027069091796875, -0.021820068359375, -0.0007457733154296875, 0.0701904296875, 0.059234619140625, 0.00811004638671875, -0.0435791015625, -0.035430908203125, -0.01898193359375, 0.0008096694946289062, 0.01134490966796875, 0.00484466552734375, -0.0341796875, -0.00748443603515625, 0.035797119140625, 0.040252685546875, 0.007183074951171875, 0.01117706298828125, 0.004730224609375, -0.00882720947265625, -0.015472412109375, -0.0008006095886230469, -0.0167236328125, -0.036041259765625, -0.031494140625, -0.037353515625, -0.0123291015625, 0.002468109130859375, -0.01654052734375, 0.04400634765625, -0.00695037841796875, -0.006351470947265625, -0.020172119140625, 0.016082763671875, -0.006160736083984375, -0.002437591552734375, 0.0513916015625, -0.0268707275390625, -0.0005021095275878906, -0.01007080078125, -0.041351318359375, -0.016693115234375, 0.00010699033737182617, -0.029205322265625, 0.0025501251220703125, 0.02838134765625, -0.019683837890625, 0.0111541748046875, 0.0219879150390625, 0.01227569580078125, 0.01467132568359375, -0.031585693359375, 0.03070068359375, 0.028778076171875, 0.00998687744140625, 0.0301666259765625, -0.033172607421875, -0.022186279296875, 0.0139007568359375, 0.01386260986328125, -0.00402069091796875, 0.054779052734375, 0.002193450927734375, 0.00199127197265625, 0.034942626953125, -0.0262298583984375, 0.024932861328125, 0.039947509765625, -0.04425048828125, -0.004791259765625, 0.0191802978515625, -0.01456451416015625, -0.045562744140625, 0.004573822021484375, 0.0118560791015625, -0.0438232421875, 0.025238037109375, -0.050567626953125, 0.01099395751953125, -0.01275634765625, 0.0028476715087890625, -0.039581298828125, -0.05657958984375, -0.0188140869140625, 0.01418304443359375, -0.0299224853515625, 0.00823974609375, 0.00531768798828125, 0.0299224853515625, 0.031463623046875, 0.040618896484375, 0.031341552734375, -0.0158843994140625, 0.06756591796875, 0.0276947021484375, -0.07049560546875, 0.043487548828125, 0.004436492919921875, -0.0225677490234375, 0.055023193359375, -0.00421142578125, -0.0238494873046875, 0.01934814453125, 0.040069580078125, -0.022674560546875, -0.054412841796875, -0.0295257568359375, -0.0282440185546875, -0.0194091796875, -0.029510498046875, 0.00007677078247070312, 0.00986480712890625, 0.02423095703125, 0.012237548828125, 0.0160064697265625, -0.050201416015625, -0.01434326171875, -0.006542205810546875, -0.0178680419921875, 0.004039764404296875, 0.014617919921875, 0.037506103515625, 0.0034122467041015625, -0.049957275390625, 0.0312042236328125, -0.007526397705078125, 0.044342041015625, 0.002033233642578125, -0.01390838623046875, 0.002483367919921875, 0.0460205078125, -0.0228729248046875, -0.0078582763671875, -0.0163726806640625, -0.0029087066650390625, -0.0025157928466796875, 0.0193939208984375, 0.0292205810546875, -0.021514892578125, 0.0026493072509765625, -0.0204010009765625, 0.033966064453125, 0.039642333984375, -0.005580902099609375, 0.003658294677734375, 0.0166778564453125, 0.038177490234375, -0.041748046875, -0.0791015625, 0.004329681396484375, -0.056732177734375, 0.0205841064453125, 0.002471923828125, -0.0233917236328125, -0.0036296844482421875, -0.044830322265625, -0.07977294921875, 0.05462646484375, -0.010345458984375, -0.0287628173828125, -0.00014865398406982422, -0.0076141357421875, 0.01033782958984375, -0.0035152435302734375, 0.0009188652038574219, 0.0094757080078125, -0.058319091796875, -0.00502777099609375, 0.020660400390625, 0.050750732421875, 0.0279083251953125, -0.0022335052490234375, 0.07281494140625, 0.0413818359375, 0.043701171875, 0.020294189453125, 0.0281829833984375, 0.0007987022399902344, 0.026458740234375, 0.0289154052734375, -0.048187255859375, 0.041961669921875, -0.0203704833984375, -0.00835418701171875, -0.00189971923828125, -0.034210205078125, -0.055419921875, -0.015655517578125, 0.08642578125, 0.06787109375, 0.038177490234375, -0.037353515625, -0.025970458984375, -0.029693603515625, -0.0350341796875, -0.02423095703125, 0.03839111328125, -0.07958984375, -0.00897216796875, 0.004673004150390625, -0.006549835205078125, -0.0161895751953125, -0.035369873046875, -0.048797607421875, -0.00519561767578125, -0.037017822265625, -0.00177764892578125, 0.0105438232421875, -0.0222320556640625, 0.0268096923828125, -0.013702392578125, 0.023590087890625, -0.0115814208984375, 0.037811279296875, 0.02789306640625, 0.016021728515625, -0.01039886474609375, -0.005046844482421875, -0.032073974609375, 0.01406097412109375, -0.0041961669921875, 0.049041748046875, -0.030487060546875, -0.0216827392578125, 0.0013151168823242188, 0.0164031982421875, 0.002773284912109375, 0.01116943359375, 0.019805908203125, -0.016998291015625, -0.02783203125, 0.055267333984375, -0.00684356689453125, 0.052215576171875, -0.0195465087890625, 0.053192138671875, -0.01849365234375, -0.01255035400390625, 0.00897979736328125, -0.037139892578125, -0.01300048828125, 0.04339599609375, -0.0176544189453125, -0.034454345703125, -0.003421783447265625, -0.041412353515625, 0.0275421142578125, -0.0037860870361328125 ]
f4347b28bd8f172e80d20046b5f4bfccd69fba5b
Wordpress Stackexchange Q: Wordpress language switcher Is there an easy way I can switch between languages (perhaps with some flag icons) on a single Wordpress site? Can this be done with 2 content editors on the same page, or will I have to resort to a multi-site set up and point each flag to a different version of the site? I only require 2 languages, English and Mandarin, I also need to edit it all manually, I'm unable to rely on auto translators Thank you for any suggestions A: There are a couple of things you can do: * *Paid solution. you pay for the updates and support. WPML, is very nice and compatible with a lot of plugins. It has a language switcher in a widget and has a shortcode which you can use to place the language switch. * *Free solution. Q translate gives you multiple editors Both are easy to use. Both store translations in a different way to the database.
Q: Wordpress language switcher Is there an easy way I can switch between languages (perhaps with some flag icons) on a single Wordpress site? Can this be done with 2 content editors on the same page, or will I have to resort to a multi-site set up and point each flag to a different version of the site? I only require 2 languages, English and Mandarin, I also need to edit it all manually, I'm unable to rely on auto translators Thank you for any suggestions A: There are a couple of things you can do: * *Paid solution. you pay for the updates and support. WPML, is very nice and compatible with a lot of plugins. It has a language switcher in a widget and has a shortcode which you can use to place the language switch. * *Free solution. Q translate gives you multiple editors Both are easy to use. Both store translations in a different way to the database.
wordpress
{ "language": "en", "length": 162, "provenance": "stackexchange_00019.jsonl.gz:425990", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73246" }
[ 0.023101806640625, -0.002651214599609375, 0.002796173095703125, 0.050994873046875, -0.01152801513671875, -0.04248046875, 0.04644775390625, -0.055908203125, 0.019256591796875, 0.01439666748046875, 0.029327392578125, -0.06256103515625, -0.0003199577331542969, -0.0556640625, -0.0162353515625, -0.03082275390625, 0.0178070068359375, 0.011444091796875, 0.01044464111328125, -0.01374053955078125, -0.005279541015625, -0.01065826416015625, 0.0045928955078125, 0.0237579345703125, 0.0299224853515625, -0.034881591796875, 0.0400390625, -0.0135345458984375, -0.0016069412231445312, -0.0252838134765625, 0.017181396484375, 0.01128387451171875, 0.019012451171875, 0.005405426025390625, -0.0201263427734375, -0.032318115234375, -0.014801025390625, -0.00913238525390625, -0.034149169921875, 0.037200927734375, 0.020294189453125, -0.017364501953125, -0.0243072509765625, 0.07049560546875, -0.0241241455078125, -0.0660400390625, 0.04547119140625, -0.033203125, 0.0025043487548828125, -0.0171966552734375, 0.0158843994140625, -0.0201568603515625, 0.0266876220703125, -0.01318359375, -0.0229034423828125, -0.0186920166015625, 0.0236358642578125, 0.00760650634765625, 0.00644683837890625, 0.0023670196533203125, -0.01477813720703125, 0.046783447265625, 0.01299285888671875, -0.00732421875, -0.0108184814453125, 0.017578125, 0.00870513916015625, -0.007457733154296875, -0.044952392578125, -0.0210418701171875, 0.035247802734375, -0.038055419921875, 0.0223388671875, -0.061676025390625, -0.00693511962890625, 0.061309814453125, -0.03271484375, -0.004360198974609375, 0.033966064453125, -0.041046142578125, 0.0184326171875, 0.005779266357421875, -0.004791259765625, -0.04937744140625, 0.036895751953125, -0.036865234375, -0.0018978118896484375, -0.00162506103515625, -0.07940673828125, -0.028472900390625, -0.035919189453125, -0.0057525634765625, -0.1375732421875, 0.0138092041015625, 0.01263427734375, -0.006496429443359375, -0.03277587890625, 0.010894775390625, -0.030487060546875, 0.00455474853515625, 0.007568359375, -0.0170440673828125, 0.0091552734375, -0.028594970703125, 0.0228118896484375, 0.0036907196044921875, -0.0298309326171875, 0.00717926025390625, 0.055694580078125, 0.02740478515625, -0.006378173828125, 0.055633544921875, 0.0144500732421875, -0.049713134765625, 0.0152740478515625, 0.0098419189453125, 0.0006771087646484375, 0.04156494140625, 0.0262298583984375, -0.01526641845703125, -0.006557464599609375, 0.0093536376953125, -0.0166473388671875, -0.0040130615234375, -0.0171966552734375, -0.03277587890625, -0.004547119140625, 0.00994873046875, -0.00241851806640625, 0.0367431640625, -0.041534423828125, -0.020599365234375, 0.0924072265625, 0.07415771484375, 0.034576416015625, -0.032440185546875, 0.0172576904296875, 0.02386474609375, 0.033203125, 0.00036072731018066406, 0.0328369140625, -0.032684326171875, -0.024169921875, 0.045928955078125, 0.002773284912109375, 0.0256500244140625, 0.028076171875, 0.00771331787109375, -0.00424957275390625, -0.0408935546875, 0.01116943359375, -0.02581787109375, 0.0203857421875, -0.034088134765625, 0.01070404052734375, -0.060821533203125, -0.01148223876953125, -0.03271484375, 0.044342041015625, -0.01318359375, -0.026397705078125, -0.0193328857421875, 0.032318115234375, -0.0088958740234375, -0.012603759765625, 0.0250244140625, -0.0287628173828125, 0.005001068115234375, 0.021728515625, -0.051483154296875, 0.0270843505859375, 0.0191802978515625, 0.009033203125, -0.0188751220703125, 0.01483154296875, 0.00740814208984375, -0.061187744140625, 0.0171966552734375, 0.021209716796875, -0.00168609619140625, 0.00354766845703125, -0.0307769775390625, 0.046417236328125, 0.019500732421875, -0.031829833984375, -0.033050537109375, 0.03131103515625, 0.05206298828125, 0.0232391357421875, 0.0374755859375, 0.013153076171875, -0.03485107421875, -0.023223876953125, 0.0238494873046875, 0.005062103271484375, -0.005039215087890625, 0.003772735595703125, 0.03411865234375, 0.003910064697265625, -0.060760498046875, 0.0288238525390625, -0.0009179115295410156, -0.00948333740234375, -0.0071258544921875, -0.06134033203125, -0.0111236572265625, -0.029571533203125, 0.018218994140625, 0.02081298828125, 0.00943756103515625, 0.00519561767578125, -0.006488800048828125, -0.012054443359375, -0.020751953125, -0.04620361328125, -0.00024771690368652344, -0.0264739990234375, 0.021453857421875, 0.0159759521484375, -0.0074920654296875, 0.062469482421875, -0.038177490234375, 0.037353515625, 0.033203125, 0.0142364501953125, -0.0275726318359375, -0.004627227783203125, -0.0212249755859375, 0.031585693359375, -0.014007568359375, 0.0276641845703125, 0.051025390625, -0.01409149169921875, -0.0103607177734375, 0.004947662353515625, 0.02349853515625, 0.017669677734375, -0.0496826171875, 0.0009627342224121094, 0.029632568359375, 0.031219482421875, 0.00783538818359375, -0.003124237060546875, 0.00934600830078125, 0.032623291015625, -0.0182952880859375, 0.014984130859375, 0.0006365776062011719, 0.0287322998046875, 0.061798095703125, -0.027435302734375, -0.00797271728515625, 0.0106658935546875, -0.06475830078125, -0.0018310546875, 0.03900146484375, -0.037689208984375, -0.04425048828125, 0.0323486328125, -0.028106689453125, -0.001865386962890625, -0.051849365234375, -0.0241851806640625, -0.0238189697265625, 0.026519775390625, -0.035552978515625, 0.023406982421875, 0.006561279296875, 0.011077880859375, -0.0155487060546875, 0.00821685791015625, -0.0195770263671875, 0.0177154541015625, -0.0156402587890625, -0.0283355712890625, 0.004718780517578125, 0.033172607421875, -0.013916015625, -0.00624847412109375, -0.0233917236328125, -0.0167083740234375, 0.043701171875, -0.0555419921875, -0.039825439453125, 0.0008759498596191406, -0.0111236572265625, -0.055084228515625, -0.057708740234375, -0.01383209228515625, -0.0192108154296875, 0.01457977294921875, 0.00794219970703125, -0.04302978515625, 0.046630859375, -0.0182952880859375, -0.0202178955078125, 0.109619140625, -0.04022216796875, 0.0151824951171875, -0.0277557373046875, 0.07806396484375, 0.044769287109375, 0.009307861328125, -0.041900634765625, -0.00122833251953125, -0.007328033447265625, 0.01430511474609375, -0.011688232421875, -0.0158233642578125, 0.0384521484375, -0.08221435546875, 0.01067352294921875, -0.004108428955078125, -0.0310516357421875, -0.0279541015625, -0.037750244140625, -0.03826904296875, -0.041229248046875, -0.10870361328125, -0.049560546875, -0.033599853515625, -0.051025390625, 0.04278564453125, 0.0390625, -0.0131988525390625, -0.03424072265625, 0.08111572265625, 0.0218658447265625, 0.01087188720703125, -0.017608642578125, -0.018951416015625, -0.0195159912109375, -0.05633544921875, -0.004283905029296875, 0.0012464523315429688, 0.0129852294921875, 0.0160369873046875, -0.0479736328125, -0.0090484619140625, -0.044189453125, 0.01015472412109375, 0.056396484375, -0.0174102783203125, 0.005916595458984375, 0.0037174224853515625, -0.0286102294921875, 0.0305023193359375, 0.0011854171752929688, 0.018157958984375, 0.03125, -0.025054931640625, -0.0022106170654296875, 0.0245819091796875, 0.04541015625, 0.046295166015625, -0.0928955078125, -0.0478515625, 0.05120849609375, -0.027313232421875, -0.0214385986328125, -0.00983428955078125, 0.0033779144287109375, -0.022308349609375, 0.0077972412109375, 0.01009368896484375, -0.0234832763671875, -0.0008797645568847656, 0.00632476806640625, 0.00879669189453125, -0.0032787322998046875, 0.0054168701171875, -0.0222625732421875, 0.0213775634765625, 0.015625, 0.026885986328125, 0.0016651153564453125, -0.0226898193359375, -0.042694091796875, 0.03656005859375, -0.02197265625, -0.0170440673828125, -0.0250091552734375, 0.0288848876953125, 0.01116943359375, -0.031585693359375, 0.0265350341796875, -0.044525146484375, 0.006160736083984375, 0.004329681396484375, -0.00699615478515625, 0.03167724609375, 0.0767822265625, -0.056304931640625, 0.0035991668701171875, 0.0080108642578125, 0.0186767578125, -0.04144287109375, -0.04815673828125, -0.08026123046875, -0.01006317138671875, -0.04840087890625, -0.0288848876953125, -0.011260986328125, -0.019561767578125, -0.045684814453125, 0.039520263671875, -0.049041748046875, -0.0293731689453125, 0.0367431640625, -0.0234527587890625, -0.020263671875, 0.0034961700439453125, -0.0292205810546875, -0.034881591796875, -0.0262451171875, 0.0007815361022949219, -0.046783447265625, -0.01392364501953125, -0.027435302734375, 0.058990478515625, 0.0299072265625, -0.037384033203125, -0.02117919921875, 0.0333251953125, -0.03759765625, 0.054779052734375, -0.03021240234375, 0.028839111328125, 0.036285400390625, -0.019073486328125, -0.0189666748046875, -0.00963592529296875, -0.00904083251953125, 0.01824951171875, -0.01019287109375, 0.029998779296875, -0.0184783935546875, -0.02813720703125, 0.015869140625, -0.050018310546875, -0.044525146484375, -0.01197052001953125, -0.024688720703125, 0.0178680419921875, -0.00829315185546875, -0.0088958740234375, -0.0287933349609375, -0.046661376953125, 0.036163330078125, -0.0079345703125, -0.006908416748046875, 0.01105499267578125, 0.02203369140625, -0.0037403106689453125, -0.031097412109375, -0.080810546875, 0.01641845703125, 0.05126953125, 0.0229034423828125, 0.0404052734375, 0.046966552734375, -0.0321044921875, 0.0498046875, 0.045867919921875, -0.013702392578125, 0.0323486328125, -0.0037746429443359375, 0.01456451416015625, -0.0212554931640625, 0.0024738311767578125, 0.0097503662109375, -0.0213775634765625, 0.038818359375, 0.008331298828125, -0.009033203125, 0.0182647705078125, 0.0162200927734375, 0.01302337646484375, -0.039031982421875, -0.04425048828125, -0.0257415771484375, -0.0020904541015625, 0.0174102783203125, 0.012237548828125, 0.00075531005859375, 0.00798797607421875, 0.0009198188781738281, 0.044189453125, 0.003398895263671875, 0.0406494140625, 0.01629638671875, 0.0171051025390625, 0.044586181640625, 0.00023293495178222656, -0.00319671630859375, -0.00392913818359375, -0.0158233642578125, 0.02392578125, -0.00391387939453125, -0.05352783203125, 0.0291290283203125, -0.008575439453125, 0.007293701171875, 0.0211334228515625, 0.00632476806640625, 0.0232391357421875, 0.0216217041015625, -0.00901031494140625, 0.011749267578125, -0.0097503662109375, 0.0106658935546875, -0.0416259765625, 0.0014791488647460938, 0.01519012451171875, -0.0189666748046875, 0.019683837890625, 0.0262298583984375, -0.0281524658203125, 0.0182342529296875, -0.007740020751953125, 0.0004930496215820312, 0.0179290771484375, 0.033172607421875, 0.005268096923828125, -0.0290679931640625, 0.0014858245849609375, 0.0124053955078125, 0.0268707275390625, -0.01467132568359375, 0.00780487060546875, 0.017486572265625, 0.036956787109375, 0.01800537109375, -0.0015039443969726562, -0.005191802978515625, -0.0079803466796875, -0.00902557373046875, 0.0146331787109375, -0.00051116943359375, -0.03436279296875, -0.0249481201171875, -0.0037078857421875, 0.028656005859375, -0.004154205322265625, -0.0132904052734375, -0.02447509765625, -0.035675048828125, 0.004909515380859375, 0.0217437744140625, -0.0228271484375, 0.0193939208984375, 0.0157928466796875, 0.0017919540405273438, -0.009521484375, -0.0086822509765625, -0.070068359375, 0.000008344650268554688, -0.01654052734375, -0.005908966064453125, 0.03448486328125, -0.0087127685546875, -0.00768280029296875, -0.003795623779296875, -0.0019741058349609375, 0.0002498626708984375, -0.0006113052368164062, 0.05413818359375, -0.006168365478515625, -0.035919189453125, -0.008148193359375, -0.05169677734375, -0.030731201171875, -0.04486083984375, -0.042694091796875, -0.061065673828125, 0.0012617111206054688, 0.006061553955078125, 0.017974853515625, -0.01076507568359375, -0.01155853271484375, 0.006954193115234375, 0.027252197265625, 0.0003886222839355469, 0.03289794921875, -0.0113677978515625, 0.02691650390625, 0.01285552978515625, 0.01540374755859375, 0.022125244140625, 0.036651611328125, 0.0114898681640625, -0.0367431640625, 0.01091766357421875, -0.0277557373046875, -0.015106201171875, -0.0255889892578125, 0.0005779266357421875, -0.025604248046875, 0.00832366943359375, -0.0046234130859375, 0.01580810546875, -0.028839111328125, 0.006122589111328125, -0.024200439453125, -0.02069091796875, -0.059539794921875, -0.0309295654296875, 0.0268707275390625, -0.0290679931640625, 0.021759033203125, -0.02008056640625, 0.016357421875, 0.01227569580078125, -0.0253753662109375, 0.01219940185546875, 0.0275115966796875, 0.007274627685546875, 0.00043892860412597656, 0.0202789306640625, -0.01047515869140625, 0.0234832763671875, 0.025390625, 0.008697509765625, -0.0012941360473632812, -0.0159149169921875, -0.019561767578125, 0.0340576171875, -0.02593994140625, -0.04931640625, 0.0157318115234375, -0.054229736328125, 0.009765625, 0.02392578125, 0.08111572265625, 0.07159423828125, -0.119873046875, 0.007640838623046875, 0.021514892578125, -0.033660888671875, -0.0305633544921875, 0.0210418701171875, -0.042083740234375, -0.0855712890625, 0.02801513671875, -0.0338134765625, -0.0189208984375, -0.004505157470703125, -0.0154266357421875, -0.004306793212890625, -0.00946044921875, 0.0455322265625, 0.021514892578125, -0.036102294921875, 0.00921630859375, 0.01873779296875, 0.01513671875, -0.028045654296875, 0.00708770751953125, 0.007572174072265625, -0.0323486328125, -0.07171630859375, 0.019866943359375, -0.00007575750350952148, -0.01018524169921875, -0.0083465576171875, -0.0225982666015625, 0.0041656494140625, 0.04595947265625, -0.037139892578125, 0.01324462890625, 0.004024505615234375, 0.0167236328125, 0.00200653076171875, -0.01192474365234375, 0.0300140380859375, -0.0024509429931640625, -0.0271453857421875, 0.01508331298828125, -0.033966064453125, -0.032958984375, -0.011688232421875, -0.01169586181640625, 0.03558349609375, 0.02410888671875, -0.01354217529296875, 0.0391845703125, 0.01433563232421875, -0.0211334228515625, 0.0022029876708984375, -0.0123748779296875, -0.08740234375, -0.1123046875, -0.01012420654296875, -0.13916015625, -0.0120086669921875, -0.025726318359375, -0.0618896484375, 0.0894775390625, 0.0152435302734375, 0.0211944580078125, 0.00998687744140625, 0.031524658203125, -0.038055419921875, 0.0015459060668945312, -0.0299835205078125, 0.0182342529296875, 0.01629638671875, 0.00006788969039916992, -0.0077972412109375, 0.0124969482421875, -0.002758026123046875, 0.0140838623046875, 0.024322509765625, 0.0119476318359375, 0.00677490234375, 0.00702667236328125, 0.0304718017578125, 0.027984619140625, -0.0109405517578125, 0.01430511474609375, 0.0020275115966796875, 0.0281524658203125, 0.01523590087890625, -0.0213165283203125, 0.0238189697265625, 0.00322723388671875, -0.042327880859375, 0.0161895751953125, -0.0007843971252441406, -0.02874755859375, -0.007350921630859375, -0.0007901191711425781, -0.06854248046875, 0.00460052490234375, 0.0209503173828125, 0.0008697509765625, 0.03643798828125, -0.00534820556640625, -0.0121612548828125, 0.0287322998046875, 0.063232421875, -0.0184478759765625, 0.041412353515625, -0.029083251953125, 0.028472900390625, 0.0030193328857421875, 0.0159759521484375, -0.00511932373046875, 0.02264404296875, 0.0239715576171875, 0.037139892578125, -0.021697998046875, 0.05291748046875, -0.003711700439453125, 0.0191802978515625, -0.031036376953125, 0.0190277099609375, 0.004245758056640625, 0.057525634765625, -0.031341552734375, -0.045928955078125, 0.00830841064453125, -0.005321502685546875, 0.000812530517578125, 0.010223388671875, 0.00551605224609375, -0.0020160675048828125, 0.031524658203125, 0.0274810791015625, 0.0199737548828125, 0.013153076171875, -0.01508331298828125, 0.01535797119140625, 0.032806396484375, -0.01146697998046875, 0.05572509765625, -0.059234619140625, 0.0200653076171875, 0.0382080078125, 0.06439208984375, 0.00611114501953125, 0.07080078125, 0.0211181640625, -0.033599853515625, -0.0147857666015625, 0.052459716796875, -0.012237548828125, -0.0009436607360839844, -0.031341552734375, -0.07098388671875, -0.0231475830078125, 0.030975341796875, -0.00107574462890625, -0.01201629638671875, 0.031829833984375, 0.06585693359375, 0.006011962890625, -0.031707763671875, 0.01184844970703125, 0.002109527587890625, 0.04327392578125, -0.0262603759765625, 0.04736328125, -0.0009393692016601562, -0.0117340087890625, -0.0229644775390625, 0.03912353515625, 0.014556884765625, -0.003520965576171875, 0.0240325927734375, 0.00850677490234375, -0.01456451416015625, 0.002513885498046875, 0.0009069442749023438, 0.024810791015625, 0.016510009765625, -0.09918212890625, -0.020233154296875, -0.0033359527587890625, -0.04937744140625, 0.025543212890625, 0.04443359375, -0.022613525390625, -0.0007176399230957031, 0.023406982421875, -0.020416259765625, -0.0132904052734375, 0.0017452239990234375, 0.02386474609375, -0.005615234375, 0.007282257080078125, 0.006137847900390625, -0.044525146484375, -0.03662109375, -0.0215911865234375, 0.05169677734375, 0.04693603515625, -0.0123443603515625, 0.0237579345703125, 0.061737060546875, -0.01377105712890625, 0.007518768310546875, -0.006927490234375, -0.0237274169921875, 0.01268768310546875, 0.01018524169921875, 0.0170745849609375, -0.0169525146484375, -0.00811767578125, 0.008087158203125, 0.006473541259765625, -0.02557373046875, 0.0209197998046875, -0.0404052734375, 0.0160675048828125, 0.012176513671875, 0.010955810546875, -0.040069580078125, -0.067626953125, -0.08184814453125, -0.005977630615234375, 0.0233917236328125, 0.0292205810546875, -0.01568603515625, 0.0274505615234375, -0.02496337890625, -0.0078277587890625, 0.003948211669921875, -0.01486968994140625, -0.058319091796875, 0.01654052734375, 0.019775390625, -0.04681396484375, 0.035552978515625, -0.00417327880859375, -0.04583740234375, 0.05303955078125, 0.04022216796875, 0.016571044921875, 0.00374603271484375, -0.01104736328125, 0.01470947265625, -0.003047943115234375, -0.0197906494140625, -0.0109100341796875, 0.053436279296875, -0.0245361328125, -0.056365966796875, 0.035125732421875, 0.00138092041015625, -0.0007877349853515625, -0.0181121826171875, -0.004802703857421875, 0.0201263427734375, -0.0255889892578125, 0.002391815185546875, -0.01433563232421875, 0.0007781982421875, -0.0267333984375, 0.012237548828125, -0.0152587890625, -0.0255584716796875, -0.00012743473052978516, -0.032745361328125, -0.0275115966796875, 0.007175445556640625, 0.0008692741394042969, -0.06988525390625, -0.0307464599609375, -0.04010009765625, -0.00537109375, -0.035552978515625, -0.00588226318359375, 0.037445068359375, 0.007472991943359375, -0.01032257080078125, 0.01220703125, 0.002735137939453125, 0.0423583984375, -0.040130615234375, -0.0012598037719726562, 0.01427459716796875, -0.01273345947265625, -0.052398681640625, -0.05645751953125, 0.056121826171875, -0.083984375, -0.049346923828125, -0.0031757354736328125, -0.0208282470703125, -0.01617431640625, -0.06597900390625, -0.10406494140625, 0.05950927734375, -0.01233673095703125, -0.036163330078125, -0.031463623046875, 0.01287078857421875, -0.0101776123046875, 0.0012750625610351562, -0.0240020751953125, -0.0198822021484375, 0.008880615234375, 0.045379638671875, 0.00450897216796875, 0.060302734375, -0.018280029296875, 0.00402069091796875, 0.040283203125, 0.04327392578125, 0.05926513671875, 0.0005464553833007812, 0.0279998779296875, -0.0220794677734375, 0.0032806396484375, 0.00843048095703125, -0.06390380859375, -0.07696533203125, -0.021728515625, 0.0261688232421875, -0.021392822265625, -0.042755126953125, -0.0008654594421386719, -0.0433349609375, 0.0299835205078125, 0.0305938720703125, -0.00511932373046875, 0.005084991455078125, 0.0258636474609375, 0.01812744140625, -0.00899505615234375, 0.004077911376953125, -0.0175018310546875, 0.006755828857421875, 0.008636474609375, -0.034271240234375, 0.007183074951171875, 0.01407623291015625, -0.006175994873046875, -0.0032482147216796875, -0.0162811279296875, 0.030059814453125, 0.0189971923828125, -0.07421875, -0.00609588623046875, 0.092529296875, -0.038330078125, 0.028472900390625, -0.0177459716796875, 0.019195556640625, 0.06805419921875, -0.015380859375, -0.034576416015625, -0.0087432861328125, 0.0049591064453125, 0.028717041015625, 0.006778717041015625, 0.01061248779296875, 0.00737762451171875, 0.0096435546875, -0.0166473388671875, 0.0269622802734375, 0.023834228515625, 0.052947998046875, -0.039947509765625, 0.0167236328125, 0.0240325927734375, -0.049072265625, -0.005336761474609375, 0.0245819091796875, -0.000046312808990478516, 0.0167236328125, -0.06689453125, 0.0263671875, -0.053375244140625, -0.0143890380859375, 0.014862060546875, -0.005344390869140625, 0.012359619140625, -0.01007080078125, 0.01861572265625, 0.014190673828125, -0.00649261474609375, 0.01422119140625 ]
9909fedc46adc5099b33be4ecaac304f86fcbc6b
Wordpress Stackexchange Q: Convert Wordpress pages to PDF Just like I customize the CSS print for a page, I want to be able to convert the page to PDF. Many plugins I tried just display main content of the page or post without design; just plain text. I want to be able convert the page to PDF as it is. Is there a way to do this even without a plugin? A: WP-MPDF has always worked extremely well for me and has a decent templating system you can override. Thanks!
Q: Convert Wordpress pages to PDF Just like I customize the CSS print for a page, I want to be able to convert the page to PDF. Many plugins I tried just display main content of the page or post without design; just plain text. I want to be able convert the page to PDF as it is. Is there a way to do this even without a plugin? A: WP-MPDF has always worked extremely well for me and has a decent templating system you can override. Thanks! A: My recommendation would be to try this free toolkit and convert a Wordpress pages into a pdf file, it worked very well for me. It has a friendly interface and it's easy to use.
wordpress
{ "language": "en", "length": 123, "provenance": "stackexchange_00019.jsonl.gz:426008", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73310" }
[ 0.02203369140625, -0.0163116455078125, 0.0035686492919921875, 0.0068511962890625, -0.009552001953125, -0.032867431640625, 0.046234130859375, -0.01519012451171875, 0.00849151611328125, 0.0122833251953125, 0.0008568763732910156, 0.02716064453125, -0.0111083984375, -0.030181884765625, 0.0009965896606445312, -0.0008287429809570312, 0.036041259765625, -0.025299072265625, 0.034637451171875, -0.00963592529296875, -0.0025482177734375, 0.01461029052734375, 0.07110595703125, 0.0239105224609375, 0.0185394287109375, 0.016448974609375, 0.0322265625, -0.01194000244140625, 0.0016231536865234375, -0.0254669189453125, 0.0230255126953125, 0.002346038818359375, 0.031158447265625, 0.0034942626953125, -0.0261688232421875, -0.0144500732421875, 0.0004036426544189453, -0.0119476318359375, -0.00823974609375, 0.01560211181640625, 0.0209503173828125, -0.006175994873046875, -0.0041046142578125, 0.0009436607360839844, -0.018280029296875, -0.01549530029296875, 0.0088043212890625, -0.033203125, -0.0015726089477539062, 0.0282440185546875, 0.007678985595703125, 0.00800323486328125, -0.0017404556274414062, 0.0168609619140625, -0.00841522216796875, -0.029266357421875, 0.03961181640625, 0.042724609375, 0.035797119140625, -0.08697509765625, -0.07177734375, 0.0152587890625, 0.05133056640625, 0.0281524658203125, 0.00910186767578125, 0.01560211181640625, -0.09320068359375, 0.01421356201171875, 0.0295867919921875, 0.02850341796875, -0.02142333984375, -0.050048828125, 0.0007562637329101562, -0.0238189697265625, -0.0245819091796875, 0.0178985595703125, 0.005138397216796875, -0.02032470703125, 0.0135040283203125, -0.004756927490234375, 0.032257080078125, 0.0157928466796875, -0.00937652587890625, -0.032745361328125, 0.0222930908203125, -0.014556884765625, -0.0005617141723632812, -0.023773193359375, -0.0521240234375, 0.00508880615234375, -0.02813720703125, 0.03814697265625, -0.0328369140625, -0.03448486328125, -0.038909912109375, 0.00681304931640625, -0.0338134765625, -0.0197601318359375, 0.00165557861328125, 0.057464599609375, 0.0089874267578125, -0.04486083984375, 0.068359375, -0.038055419921875, -0.0204925537109375, 0.048431396484375, 0.0293121337890625, -0.0015401840209960938, 0.006244659423828125, 0.0037708282470703125, -0.003345489501953125, 0.0102691650390625, -0.00562286376953125, -0.054229736328125, 0.0266876220703125, 0.05462646484375, 0.00785064697265625, 0.020294189453125, 0.0294647216796875, -0.002620697021484375, -0.01430511474609375, 0.0038471221923828125, 0.0450439453125, 0.006725311279296875, -0.0067291259765625, 0.01471710205078125, 0.0021877288818359375, -0.060394287109375, 0.03143310546875, -0.0230560302734375, -0.020172119140625, 0.01282501220703125, 0.03253173828125, 0.047393798828125, 0.020172119140625, -0.0018072128295898438, 0.034576416015625, 0.0050048828125, 0.021087646484375, 0.00778961181640625, 0.0009198188781738281, -0.0391845703125, -0.0020599365234375, 0.004016876220703125, -0.013763427734375, -0.0048980712890625, 0.0253448486328125, 0.047393798828125, -0.0223541259765625, -0.025543212890625, 0.0167694091796875, 0.021942138671875, -0.00870513916015625, 0.0005998611450195312, 0.06341552734375, -0.04937744140625, 0.00504302978515625, -0.033721923828125, 0.0780029296875, -0.004177093505859375, 0.039337158203125, 0.0131072998046875, -0.005706787109375, 0.003971099853515625, 0.002716064453125, -0.02117919921875, -0.0338134765625, 0.00958251953125, 0.0179901123046875, -0.0203857421875, 0.00870513916015625, -0.019195556640625, 0.04339599609375, 0.0017309188842773438, -0.01136016845703125, 0.028564453125, -0.0098724365234375, -0.006374359130859375, 0.035125732421875, 0.0029582977294921875, -0.007740020751953125, -0.01580810546875, 0.039276123046875, 0.00160980224609375, -0.0168609619140625, -0.002353668212890625, 0.004871368408203125, 0.04388427734375, 0.0164337158203125, 0.037811279296875, -0.039306640625, -0.0163116455078125, -0.031829833984375, 0.01239013671875, -0.000972747802734375, -0.0225372314453125, 0.0230712890625, 0.0147552490234375, 0.00975799560546875, -0.02197265625, -0.0499267578125, -0.0012569427490234375, -0.00637054443359375, 0.0282745361328125, 0.0311279296875, -0.01425933837890625, 0.01126861572265625, 0.01409912109375, -0.0097503662109375, 0.01465606689453125, 0.016265869140625, -0.00344085693359375, -0.01494598388671875, -0.023284912109375, -0.03497314453125, 0.00241851806640625, 0.01385498046875, -0.0355224609375, 0.0008730888366699219, -0.038604736328125, -0.0035076141357421875, 0.0239715576171875, -0.0251922607421875, 0.031585693359375, 0.01230621337890625, 0.0004754066467285156, -0.0294342041015625, -0.016265869140625, 0.00061798095703125, -0.00838470458984375, 0.0159149169921875, 0.041534423828125, -0.0159149169921875, 0.004108428955078125, -0.031707763671875, -0.01490020751953125, -0.0188140869140625, -0.0254974365234375, 0.0169219970703125, 0.039520263671875, 0.035980224609375, 0.00867462158203125, 0.0011816024780273438, 0.0004067420959472656, 0.07550048828125, -0.0101470947265625, 0.006465911865234375, -0.00750732421875, 0.0179595947265625, 0.0201263427734375, 0.029266357421875, -0.025177001953125, 0.0005712509155273438, -0.03912353515625, 0.0279693603515625, 0.0224761962890625, 0.01235198974609375, 0.006870269775390625, 0.0038890838623046875, 0.004711151123046875, 0.0079193115234375, 0.047119140625, -0.00003039836883544922, 0.008392333984375, -0.042388916015625, 0.00493621826171875, 0.0146331787109375, 0.024017333984375, 0.0015077590942382812, -0.05267333984375, 0.014007568359375, 0.04095458984375, 0.0283660888671875, 0.03564453125, 0.0174560546875, 0.03289794921875, -0.0230865478515625, -0.0280914306640625, 0.047698974609375, 0.026031494140625, 0.00901031494140625, 0.0311126708984375, -0.0211639404296875, -0.0113372802734375, 0.02276611328125, 0.0017108917236328125, -0.02777099609375, 0.01239013671875, -0.04656982421875, 0.00133514404296875, 0.01538848876953125, 0.02947998046875, -0.044464111328125, 0.03399658203125, -0.01082611083984375, 0.01097869873046875, 0.078857421875, -0.041351318359375, 0.057647705078125, -0.049652099609375, 0.051666259765625, 0.04803466796875, -0.0443115234375, 0.0128326416015625, 0.0081939697265625, 0.036285400390625, 0.040313720703125, -0.0171661376953125, -0.005184173583984375, -0.01107025146484375, -0.027923583984375, -0.023406982421875, 0.0003783702850341797, 0.0093231201171875, -0.033447265625, -0.04278564453125, -0.041015625, -0.00518035888671875, -0.11529541015625, -0.04925537109375, -0.01354217529296875, -0.059478759765625, -0.01399993896484375, 0.01511383056640625, -0.038238525390625, 0.00679779052734375, 0.0440673828125, -0.0003509521484375, -0.0033473968505859375, -0.01338958740234375, -0.036956787109375, -0.058319091796875, -0.08282470703125, -0.036224365234375, 0.00969696044921875, 0.0239410400390625, -0.001621246337890625, 0.038177490234375, 0.0015287399291992188, -0.035919189453125, -0.00881195068359375, 0.028900146484375, -0.0165252685546875, -0.01538848876953125, -0.00237274169921875, -0.018280029296875, -0.0174407958984375, -0.008544921875, 0.03314208984375, 0.00960540771484375, 0.0050201416015625, 0.00954437255859375, -0.04229736328125, -0.0212249755859375, -0.0689697265625, 0.005496978759765625, 0.072265625, -0.044525146484375, -0.0706787109375, -0.06695556640625, 0.026153564453125, 0.0050048828125, -0.0228118896484375, 0.0181884765625, -0.03253173828125, -0.00609588623046875, 0.0009284019470214844, 0.00591278076171875, 0.0072784423828125, 0.018402099609375, -0.0238494873046875, 0.0147552490234375, 0.025054931640625, -0.0032196044921875, 0.0092315673828125, 0.0133209228515625, 0.0328369140625, -0.03289794921875, 0.0574951171875, 0.0098876953125, -0.00823974609375, -0.001277923583984375, -0.0088958740234375, -0.0072021484375, -0.1092529296875, 0.07965087890625, 0.0006566047668457031, -0.01690673828125, -0.0242462158203125, -0.045135498046875, 0.03192138671875, 0.1376953125, 0.0004820823669433594, -0.0260009765625, -0.02496337890625, 0.0036602020263671875, -0.0220794677734375, -0.0168304443359375, -0.0024967193603515625, -0.00576019287109375, -0.036376953125, 0.010955810546875, 0.004215240478515625, -0.021728515625, 0.00237274169921875, -0.034454345703125, -0.0028228759765625, -0.029052734375, 0.00658416748046875, 0.052978515625, -0.02581787109375, 0.0110931396484375, -0.032318115234375, 0.002292633056640625, 0.0073394775390625, -0.01187896728515625, -0.057830810546875, 0.0053253173828125, -0.051025390625, 0.050811767578125, 0.0250701904296875, -0.01641845703125, 0.00954437255859375, 0.039276123046875, 0.020843505859375, 0.018646240234375, 0.00533294677734375, -0.01433563232421875, 0.0160369873046875, -0.00876617431640625, 0.010467529296875, -0.0254058837890625, -0.004467010498046875, -0.01947021484375, -0.0093994140625, -0.00798797607421875, -0.032562255859375, -0.012359619140625, -0.002910614013671875, -0.0174560546875, 0.00829315185546875, -0.0164337158203125, -0.06695556640625, 0.039276123046875, -0.03961181640625, 0.0018596649169921875, -0.035552978515625, -0.036834716796875, 0.044677734375, 0.04052734375, -0.0164642333984375, -0.0009145736694335938, 0.040618896484375, 0.0146484375, -0.0347900390625, -0.09912109375, -0.0164337158203125, 0.0159149169921875, 0.0107269287109375, 0.056610107421875, 0.01861572265625, -0.01239013671875, 0.047943115234375, -0.00006830692291259766, -0.012725830078125, -0.061676025390625, 0.08502197265625, -0.0209808349609375, -0.01537322998046875, 0.0323486328125, -0.0399169921875, 0.0482177734375, 0.0214385986328125, -0.0095672607421875, 0.0015668869018554688, -0.00142669677734375, 0.0204925537109375, 0.0025463104248046875, -0.021636962890625, -0.029083251953125, -0.02978515625, -0.00948333740234375, 0.045654296875, 0.050384521484375, 0.049224853515625, -0.016357421875, 0.037506103515625, 0.042510986328125, -0.001926422119140625, 0.05401611328125, 0.031524658203125, -0.011810302734375, 0.035675048828125, 0.012451171875, -0.018798828125, 0.0372314453125, -0.0020771026611328125, 0.048858642578125, 0.007213592529296875, -0.0443115234375, -0.0170745849609375, -0.0201568603515625, -0.0389404296875, 0.01071929931640625, 0.0231170654296875, 0.036376953125, -0.0111846923828125, -0.0156402587890625, -0.0010242462158203125, 0.0035381317138671875, -0.046234130859375, -0.050384521484375, 0.00926971435546875, -0.0065460205078125, -0.0174407958984375, 0.01373291015625, 0.033935546875, -0.0188446044921875, 0.0092620849609375, -0.0001901388168334961, 0.00955963134765625, 0.052398681640625, -0.0239410400390625, 0.01654052734375, 0.047943115234375, -0.01494598388671875, -0.036651611328125, 0.017669677734375, -0.034912109375, -0.0184173583984375, -0.00530242919921875, 0.028656005859375, -0.021392822265625, -0.023284912109375, 0.03692626953125, -0.0205535888671875, -0.0158843994140625, -0.0109405517578125, 0.00726318359375, 0.011627197265625, -0.003406524658203125, -0.002925872802734375, 0.007549285888671875, 0.03399658203125, 0.0006699562072753906, 0.02130126953125, 0.01593017578125, 0.044891357421875, -0.0108184814453125, 0.007099151611328125, -0.0146484375, -0.0181732177734375, -0.01995849609375, -0.00763702392578125, -0.00714111328125, -0.0193328857421875, -0.038482666015625, 0.005550384521484375, 0.004474639892578125, 0.0191497802734375, -0.00440216064453125, 0.029937744140625, -0.0645751953125, 0.02154541015625, -0.04290771484375, 0.00943756103515625, 0.01154327392578125, -0.0140838623046875, -0.03497314453125, -0.038330078125, -0.055572509765625, -0.032806396484375, -0.025360107421875, -0.003429412841796875, -0.037811279296875, 0.0231781005859375, 0.016448974609375, 0.0204620361328125, -0.006927490234375, -0.0384521484375, -0.02191162109375, 0.029632568359375, 0.03363037109375, 0.0472412109375, 0.01171112060546875, 0.0638427734375, 0.0193939208984375, 0.038177490234375, 0.031707763671875, 0.0457763671875, -0.013671875, -0.038970947265625, 0.024017333984375, -0.0202484130859375, -0.025054931640625, -0.003269195556640625, -0.0014619827270507812, -0.023712158203125, -0.00634765625, 0.00005310773849487305, -0.018341064453125, -0.0229949951171875, -0.0036640167236328125, -0.022003173828125, 0.0275421142578125, 0.0034160614013671875, -0.01435089111328125, -0.025054931640625, -0.0239715576171875, 0.007221221923828125, 0.0012149810791015625, -0.0002282857894897461, 0.0049896240234375, 0.0023479461669921875, -0.005527496337890625, -0.0025730133056640625, -0.0012369155883789062, 0.016143798828125, -0.0167083740234375, -0.026763916015625, 0.004299163818359375, -0.0027637481689453125, 0.006938934326171875, -0.007595062255859375, 0.0031757354736328125, 0.0189666748046875, -0.006992340087890625, 0.06634521484375, -0.0057525634765625, -0.0256805419921875, 0.034088134765625, -0.0487060546875, 0.0589599609375, 0.107177734375, 0.1011962890625, -0.1693115234375, 0.047882080078125, 0.02655029296875, 0.0022144317626953125, 0.055389404296875, -0.0205535888671875, 0.0007047653198242188, -0.03179931640625, 0.080322265625, -0.007030487060546875, -0.003780364990234375, 0.032257080078125, -0.0194244384765625, -0.02191162109375, -0.012847900390625, 0.044158935546875, 0.01422119140625, -0.07171630859375, 0.0211639404296875, 0.0224151611328125, -0.01038360595703125, -0.038848876953125, -0.000006318092346191406, 0.002613067626953125, -0.0077056884765625, -0.0308685302734375, 0.04461669921875, -0.032806396484375, 0.0286407470703125, -0.016815185546875, 0.006877899169921875, 0.0182647705078125, 0.06781005859375, -0.0185089111328125, 0.00440216064453125, 0.05029296875, 0.00928497314453125, -0.03094482421875, -0.0254058837890625, -0.01013946533203125, 0.01528167724609375, -0.0236358642578125, 0.01654052734375, -0.021453857421875, 0.00383758544921875, -0.0016355514526367188, 0.0051116943359375, 0.0753173828125, -0.0277557373046875, -0.018035888671875, 0.0421142578125, 0.0089263916015625, -0.0335693359375, -0.0052642822265625, 0.002864837646484375, -0.028045654296875, 0.0340576171875, -0.00005066394805908203, 0.03692626953125, 0.0075225830078125, -0.0022144317626953125, -0.07427978515625, 0.07464599609375, -0.00980377197265625, 0.0286407470703125, 0.0242767333984375, 0.0284423828125, -0.05084228515625, -0.020843505859375, -0.0289154052734375, 0.062042236328125, 0.05902099609375, 0.0261993408203125, -0.032867431640625, -0.01187896728515625, 0.00844573974609375, 0.02545166015625, 0.01343536376953125, -0.00870513916015625, -0.0394287109375, -0.000022232532501220703, 0.07708740234375, 0.075439453125, 0.0712890625, 0.0119781494140625, -0.0186614990234375, -0.0179290771484375, -0.0037937164306640625, -0.03094482421875, 0.0212554931640625, -0.03448486328125, -0.0202178955078125, 0.00998687744140625, -0.002197265625, -0.0245208740234375, 0.00949859619140625, -0.01959228515625, -0.00727081298828125, -0.0052642822265625, -0.0052032470703125, 0.00037360191345214844, 0.007556915283203125, 0.026641845703125, 0.0263519287109375, -0.0186004638671875, 0.0259552001953125, -0.028228759765625, 0.04620361328125, -0.00946044921875, 0.00437164306640625, -0.0400390625, 0.0043182373046875, 0.04400634765625, -0.047637939453125, -0.023345947265625, 0.046173095703125, -0.03631591796875, 0.03680419921875, -0.0177154541015625, 0.006221771240234375, -0.0621337890625, 0.0014438629150390625, 0.009185791015625, 0.0364990234375, -0.038726806640625, -0.044677734375, 0.0133819580078125, -0.0010232925415039062, 0.0113372802734375, 0.017608642578125, 0.030487060546875, -0.0224151611328125, 0.0050201416015625, -0.0237579345703125, -0.044891357421875, -0.010467529296875, 0.046875, -0.01261138916015625, -0.03668212890625, 0.0309600830078125, -0.07391357421875, -0.0006089210510253906, -0.004322052001953125, 0.014434814453125, 0.00081634521484375, 0.0020923614501953125, 0.0394287109375, 0.01227569580078125, -0.0028705596923828125, -0.0006427764892578125, 0.0186767578125, 0.00815582275390625, 0.0024471282958984375, -0.0145111083984375, -0.01666259765625, 0.0027294158935546875, 0.02630615234375, -0.018096923828125, 0.00890350341796875, 0.0101165771484375, 0.021575927734375, -0.011962890625, -0.020477294921875, 0.0309600830078125, -0.02447509765625, 0.01129913330078125, -0.036041259765625, -0.006961822509765625, -0.01412200927734375, -0.008636474609375, -0.01265716552734375, -0.0008282661437988281, 0.029541015625, -0.00499725341796875, 0.043975830078125, 0.00026297569274902344, -0.0218048095703125, 0.04840087890625, -0.026336669921875, 0.09423828125, 0.00917816162109375, -0.1259765625, -0.0159759521484375, -0.02117919921875, -0.046630859375, 0.03460693359375, 0.043701171875, -0.03717041015625, 0.005138397216796875, -0.007808685302734375, -0.0110626220703125, 0.0164947509765625, -0.0021686553955078125, 0.000843048095703125, 0.028961181640625, 0.01528167724609375, -0.0022335052490234375, -0.056396484375, -0.058685302734375, -0.04461669921875, 0.07177734375, 0.01861572265625, 0.1195068359375, -0.05938720703125, 0.032135009765625, -0.0080718994140625, 0.0225372314453125, -0.0401611328125, -0.043609619140625, 0.07025146484375, 0.001712799072265625, -0.00970458984375, -0.020538330078125, -0.01384735107421875, 0.01280975341796875, 0.01560211181640625, -0.0304718017578125, -0.052032470703125, -0.00844573974609375, 0.0248260498046875, 0.044219970703125, 0.0038089752197265625, -0.0267333984375, -0.0234832763671875, -0.01226806640625, 0.0021152496337890625, 0.007801055908203125, 0.00868988037109375, 0.007686614990234375, 0.032867431640625, 0.0506591796875, 0.003383636474609375, 0.0228729248046875, -0.02423095703125, 0.04681396484375, 0.039520263671875, 0.0170745849609375, -0.06951904296875, 0.0293426513671875, 0.0033206939697265625, -0.0211334228515625, 0.0152435302734375, 0.0625, 0.0145416259765625, -0.0114898681640625, -0.037322998046875, -0.02239990234375, 0.006427764892578125, -0.03192138671875, -0.0062408447265625, -0.0222930908203125, 0.0037822723388671875, -0.0165557861328125, 0.00435638427734375, -0.0195159912109375, -0.045318603515625, -0.0010395050048828125, 0.0113372802734375, -0.034454345703125, -0.0299072265625, -0.061187744140625, -0.0173492431640625, 0.0051727294921875, -0.0138092041015625, -0.012054443359375, 0.024810791015625, -0.01558685302734375, -0.04522705078125, -0.0152130126953125, 0.00013720989227294922, 0.0013256072998046875, 0.0289459228515625, -0.0160369873046875, -0.036346435546875, -0.040802001953125, 0.045654296875, -0.02734375, 0.0341796875, 0.039825439453125, -0.051422119140625, -0.0031585693359375, 0.03997802734375, 0.05035400390625, 0.08636474609375, 0.067138671875, -0.035675048828125, -0.017486572265625, -0.00872039794921875, 0.020751953125, -0.026580810546875, 0.01201629638671875, -0.05926513671875, -0.0213165283203125, 0.003589630126953125, -0.00026679039001464844, 0.01873779296875, -0.03759765625, -0.054351806640625, 0.050872802734375, -0.007843017578125, -0.03460693359375, -0.030975341796875, -0.042510986328125, 0.002899169921875, -0.0140228271484375, -0.0176849365234375, -0.0239410400390625, -0.06817626953125, 0.038726806640625, 0.04229736328125, 0.0229644775390625, 0.00279998779296875, 0.060638427734375, -0.021209716796875, 0.07733154296875, 0.035736083984375, 0.023468017578125, -0.00991058349609375, 0.00922393798828125, -0.01039886474609375, 0.024322509765625, -0.01922607421875, -0.046173095703125, 0.005039215087890625, 0.0009245872497558594, 0.0027027130126953125, 0.03399658203125, 0.007389068603515625, 0.03167724609375, -0.0253448486328125, 0.052490234375, -0.00662994384765625, -0.0209197998046875, 0.01116943359375, -0.007808685302734375, -0.02496337890625, 0.028350830078125, 0.007114410400390625, -0.02337646484375, 0.028411865234375, 0.005702972412109375, -0.01004791259765625, 0.002223968505859375, -0.00933837890625, -0.0248870849609375, -0.0167694091796875, -0.0122222900390625, -0.0005970001220703125, -0.01349639892578125, -0.03411865234375, 0.04547119140625, -0.0231475830078125, 0.0123443603515625, -0.0045013427734375, 0.0250091552734375, 0.021942138671875, 0.024871826171875, 0.01641845703125, 0.03594970703125, -0.0240020751953125, -0.0076904296875, 0.0299530029296875, -0.0292816162109375, 0.0110931396484375, -0.0025043487548828125, 0.01511383056640625, 0.0200042724609375, -0.004669189453125, 0.046966552734375, -0.0039825439453125, 0.0086517333984375, -0.00785064697265625, -0.013916015625, -0.0143890380859375, -0.039703369140625, -0.04144287109375, 0.045196533203125, 0.0171966552734375, -0.0165252685546875, 0.0565185546875, -0.05999755859375, 0.0071868896484375, 0.00945281982421875, -0.042816162109375, -0.0031299591064453125, -0.0254364013671875, -0.06536865234375, -0.0200958251953125, -0.003505706787109375 ]
369cc6165f70fbd1381e107c8b69a61a5b2e8658
Wordpress Stackexchange Q: Call custom field into menu item I have a navigation menu in Wordpress. I would like it to check if the page has a custom field of "menu_icon" and if it does, add that custom field into the menu item it corresponds to. I'm sure this would require some sort of walker function extension but I am a bit new to PHP and Wordpress. I've search around and have not found a suitable tutorial. For example: (normal menu) <ul> <li><a href="#">link</a></li> </ul> (custom) <ul> <li><span class="icon" style="background-image:url(CUSTOM FIELD CALLED HERE);"></span><a href="link">link</a></li> </ul> A: This is what i have used for checking to see if the custom field is there or not. I am sure you can use it as well. <?php $custom_field = get_post_meta($post->ID, 'Your Custom Field Name', true); // Checks to see if there is a value in the custom field if($custom_field != '') { echo $custom_field; } ?> It probably would look something like this with your code above: <ul> <li><span class="icon" style="background-image:url(<?php $custom_field = get_post_meta($post->ID, 'Your Custom Field Name', true); // Checks to see if there is a value in the custom field if($custom_field != '') { echo $custom_field; } ?>);"> </span><a href="link">link</a></li> </ul>
Q: Call custom field into menu item I have a navigation menu in Wordpress. I would like it to check if the page has a custom field of "menu_icon" and if it does, add that custom field into the menu item it corresponds to. I'm sure this would require some sort of walker function extension but I am a bit new to PHP and Wordpress. I've search around and have not found a suitable tutorial. For example: (normal menu) <ul> <li><a href="#">link</a></li> </ul> (custom) <ul> <li><span class="icon" style="background-image:url(CUSTOM FIELD CALLED HERE);"></span><a href="link">link</a></li> </ul> A: This is what i have used for checking to see if the custom field is there or not. I am sure you can use it as well. <?php $custom_field = get_post_meta($post->ID, 'Your Custom Field Name', true); // Checks to see if there is a value in the custom field if($custom_field != '') { echo $custom_field; } ?> It probably would look something like this with your code above: <ul> <li><span class="icon" style="background-image:url(<?php $custom_field = get_post_meta($post->ID, 'Your Custom Field Name', true); // Checks to see if there is a value in the custom field if($custom_field != '') { echo $custom_field; } ?>);"> </span><a href="link">link</a></li> </ul> A: You can use the get_post_meta function: <?php $value = get_post_meta($post->ID, 'CUSTOM_FIELD_NAME', true); if($value != '') { echo $value; } ?> Read more about it here: http://codex.wordpress.org/Function_Reference/get_post_meta
wordpress
{ "language": "en", "length": 225, "provenance": "stackexchange_00019.jsonl.gz:426010", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73316" }
[ 0.054168701171875, 0.0032520294189453125, 0.044403076171875, -0.019134521484375, 0.0196990966796875, 0.002681732177734375, 0.0345458984375, -0.06884765625, -0.0214080810546875, -0.0235595703125, -0.0283355712890625, -0.0119171142578125, -0.08978271484375, -0.035736083984375, 0.0021038055419921875, -0.0855712890625, 0.015777587890625, 0.01384735107421875, 0.052093505859375, 0.0027294158935546875, 0.0259552001953125, 0.0003676414489746094, 0.0279083251953125, -0.03778076171875, 0.04119873046875, -0.04815673828125, 0.0299224853515625, -0.008148193359375, 0.024688720703125, 0.0035228729248046875, 0.033172607421875, -0.0223846435546875, -0.005023956298828125, 0.028533935546875, 0.0112762451171875, 0.0001354217529296875, 0.030059814453125, 0.0241546630859375, 0.0248565673828125, 0.019378662109375, 0.055908203125, -0.028900146484375, -0.024383544921875, 0.0219573974609375, -0.01139068603515625, -0.0301361083984375, 0.04736328125, -0.0258026123046875, 0.002964019775390625, -0.0174713134765625, 0.008636474609375, 0.0228118896484375, 0.0085296630859375, 0.029205322265625, -0.0159454345703125, -0.00565338134765625, -0.0304412841796875, -0.0594482421875, 0.022216796875, 0.0537109375, 0.006900787353515625, -0.026824951171875, -0.00232696533203125, -0.039581298828125, 0.001804351806640625, 0.00693511962890625, -0.00522613525390625, 0.024169921875, -0.039886474609375, -0.01776123046875, 0.019744873046875, -0.038360595703125, -0.00021898746490478516, 0.0005145072937011719, -0.0016260147094726562, -0.0692138671875, 0.00414276123046875, -0.07916259765625, 0.01331329345703125, 0.033538818359375, -0.021881103515625, 0.007503509521484375, -0.03704833984375, -0.0261688232421875, 0.01038360595703125, 0.0053253173828125, -0.022918701171875, -0.0052032470703125, 0.0062103271484375, -0.0305938720703125, -0.00673675537109375, -0.01343536376953125, -0.0296783447265625, 0.005107879638671875, -0.0013170242309570312, -0.036773681640625, 0.03497314453125, 0.0843505859375, -0.034820556640625, 0.01165008544921875, -0.00353240966796875, -0.0307769775390625, 0.042022705078125, -0.048187255859375, 0.020233154296875, 0.0699462890625, -0.0184478759765625, -0.006214141845703125, 0.04608154296875, 0.020904541015625, 0.02911376953125, -0.004703521728515625, 0.002742767333984375, -0.0007815361022949219, -0.0175018310546875, -0.00555419921875, -0.0221099853515625, -0.0222930908203125, -0.01488494873046875, -0.040313720703125, -0.004795074462890625, 0.005657196044921875, 0.032257080078125, -0.030975341796875, 0.032440185546875, 0.0102996826171875, -0.044891357421875, -0.01392364501953125, -0.0121917724609375, 0.037811279296875, -0.04034423828125, 0.0008511543273925781, 0.0787353515625, 0.038848876953125, 0.0221405029296875, -0.0229644775390625, 0.023406982421875, -0.04095458984375, -0.00457000732421875, 0.0139312744140625, 0.0133209228515625, -0.0175628662109375, -0.0030765533447265625, -0.0088043212890625, -0.01476287841796875, -0.004665374755859375, 0.00452423095703125, 0.02215576171875, -0.01739501953125, -0.046905517578125, 0.0287017822265625, -0.0193634033203125, 0.0231170654296875, 0.0304107666015625, -0.01678466796875, 0.03192138671875, 0.0175323486328125, 0.004192352294921875, -0.0228424072265625, -0.0165252685546875, -0.0286865234375, -0.02093505859375, 0.020721435546875, -0.11614990234375, -0.08636474609375, 0.0097198486328125, -0.054473876953125, -0.01221466064453125, 0.027740478515625, 0.0170440673828125, 0.015899658203125, 0.0215911865234375, 0.01296234130859375, 0.02130126953125, 0.007572174072265625, -0.0120849609375, 0.022735595703125, 0.033233642578125, 0.00855255126953125, 0.02685546875, -0.0262603759765625, -0.055755615234375, 0.060882568359375, -0.048736572265625, -0.057830810546875, 0.051055908203125, -0.017578125, 0.0693359375, 0.04437255859375, 0.0119781494140625, 0.0092926025390625, -0.0291748046875, -0.021881103515625, -0.032928466796875, -0.01526641845703125, 0.0005865097045898438, 0.0001614093780517578, 0.007488250732421875, -0.01568603515625, 0.01352691650390625, -0.015655517578125, 0.008941650390625, 0.0011272430419921875, 0.0019550323486328125, -0.0171661376953125, 0.005260467529296875, -0.00653076171875, 0.04083251953125, -0.01345062255859375, 0.0277862548828125, 0.01220703125, 0.0012407302856445312, -0.003650665283203125, -0.031768798828125, -0.00960540771484375, -0.015716552734375, -0.0067291259765625, -0.019989013671875, -0.03228759765625, -0.023193359375, -0.0210418701171875, -0.0310211181640625, -0.047393798828125, 0.032470703125, 0.0031528472900390625, 0.00417327880859375, -0.0128936767578125, 0.0012826919555664062, 0.0170135498046875, 0.0227203369140625, 0.0012865066528320312, 0.0031185150146484375, 0.03387451171875, -0.034149169921875, -0.0253143310546875, 0.0186614990234375, 0.01502227783203125, -0.11676025390625, -0.02093505859375, 0.0753173828125, 0.0399169921875, 0.0209808349609375, -0.0054473876953125, -0.0160369873046875, 0.053253173828125, -0.0031795501708984375, 0.0236053466796875, -0.0234222412109375, -0.01451873779296875, 0.02716064453125, -0.0190887451171875, 0.0114593505859375, 0.027587890625, -0.0079193115234375, -0.0007185935974121094, 0.042572021484375, -0.019317626953125, -0.0174713134765625, 0.0272216796875, -0.0186309814453125, 0.0037212371826171875, 0.038726806640625, -0.00319671630859375, 0.0263824462890625, 0.0255126953125, 0.01079559326171875, 0.0206298828125, 0.0224609375, -0.035858154296875, 0.0081329345703125, 0.0293426513671875, 0.0301513671875, 0.0017309188842773438, -0.0177154541015625, -0.021636962890625, 0.0283050537109375, 0.003116607666015625, 0.006137847900390625, 0.007415771484375, -0.0161895751953125, -0.0125274658203125, 0.01309967041015625, -0.0077972412109375, -0.005889892578125, -0.010223388671875, -0.061553955078125, 0.0132904052734375, 0.01227569580078125, 0.01393890380859375, -0.010498046875, 0.01558685302734375, -0.0009775161743164062, -0.022369384765625, 0.032684326171875, 0.004413604736328125, -0.043792724609375, 0.00860595703125, 0.0022106170654296875, 0.0287628173828125, -0.00841522216796875, -0.0123138427734375, 0.043365478515625, -0.01522064208984375, 0.0159759521484375, -0.0252227783203125, -0.0095367431640625, -0.047454833984375, 0.04949951171875, -0.006183624267578125, -0.08575439453125, 0.0013685226440429688, 0.00873565673828125, 0.02520751953125, 0.0024204254150390625, 0.04095458984375, -0.02081298828125, 0.0160369873046875, 0.0062103271484375, -0.0877685546875, -0.11749267578125, 0.0199737548828125, -0.033416748046875, 0.0235443115234375, -0.01462554931640625, -0.01081085205078125, -0.0266571044921875, 0.014312744140625, 0.0023403167724609375, -0.0272674560546875, -0.001316070556640625, -0.061614990234375, -0.039794921875, -0.068603515625, 0.00833892822265625, -0.017547607421875, 0.02056884765625, 0.00373077392578125, 0.0458984375, 0.00417327880859375, -0.030364990234375, 0.01522064208984375, 0.021636962890625, -0.004016876220703125, 0.026611328125, 0.01183319091796875, -0.0219268798828125, 0.0220947265625, 0.01497650146484375, 0.0269622802734375, 0.0036525726318359375, -0.00669097900390625, -0.047149658203125, -0.01377105712890625, 0.00799560546875, 0.0278472900390625, 0.00811767578125, 0.0038089752197265625, 0.047943115234375, 0.05029296875, -0.01279449462890625, -0.039703369140625, -0.00038123130798339844, -0.019744873046875, 0.0701904296875, 0.0012483596801757812, -0.00856781005859375, -0.003448486328125, 0.0712890625, -0.00897216796875, -0.00681304931640625, 0.0015764236450195312, -0.0185394287109375, 0.046722412109375, -0.00827789306640625, -0.0102996826171875, -0.006305694580078125, 0.0294342041015625, -0.01314544677734375, 0.0347900390625, 0.0219879150390625, 0.0216522216796875, -0.0008130073547363281, 0.002719879150390625, -0.04620361328125, -0.0301055908203125, 0.024200439453125, -0.006786346435546875, 0.05072021484375, -0.0343017578125, -0.0201568603515625, -0.0227508544921875, 0.0634765625, -0.0430908203125, -0.03570556640625, -0.02972412109375, -0.002643585205078125, 0.005687713623046875, -0.005859375, -0.01271820068359375, -0.01141357421875, -0.1424560546875, 0.050140380859375, 0.01325225830078125, -0.0323486328125, -0.032867431640625, 0.044586181640625, -0.09332275390625, -0.0340576171875, 0.0205078125, -0.0465087890625, 0.004596710205078125, 0.04998779296875, -0.0211181640625, 0.026397705078125, -0.0087432861328125, -0.039337158203125, -0.06988525390625, -0.024200439453125, -0.00962066650390625, 0.06768798828125, 0.0070343017578125, -0.012359619140625, -0.0025768280029296875, 0.0709228515625, 0.035308837890625, 0.00726318359375, 0.00847625732421875, -0.01284027099609375, 0.016204833984375, -0.00982666015625, -0.0075531005859375, -0.023834228515625, 0.022064208984375, 0.014678955078125, -0.058013916015625, -0.0189666748046875, -0.027923583984375, -0.0284881591796875, 0.033782958984375, -0.05987548828125, 0.007640838623046875, 0.004917144775390625, -0.019500732421875, -0.004703521728515625, -0.0029354095458984375, -0.00629425048828125, 0.01241302490234375, -0.0026264190673828125, -0.00705718994140625, -0.018341064453125, -0.0211334228515625, 0.0181427001953125, 0.05633544921875, 0.03143310546875, -0.0026454925537109375, -0.0176544189453125, 0.0012874603271484375, 0.0255889892578125, -0.006771087646484375, 0.026641845703125, -0.0016298294067382812, -0.0178070068359375, 0.040863037109375, -0.01418304443359375, 0.0157012939453125, -0.004619598388671875, 0.02655029296875, 0.0023193359375, 0.00235748291015625, -0.0123291015625, -0.0001556873321533203, 0.00965118408203125, 0.03631591796875, 0.0092926025390625, -0.044952392578125, 0.0063323974609375, 0.0477294921875, -0.004940032958984375, 0.0115509033203125, -0.028717041015625, -0.038116455078125, 0.0006704330444335938, -0.003559112548828125, 0.037994384765625, 0.019287109375, -0.0002014636993408203, 0.04010009765625, 0.035675048828125, 0.007793426513671875, -0.01262664794921875, 0.0207672119140625, -0.0213470458984375, 0.00737762451171875, 0.01526641845703125, -0.0111846923828125, -0.0107421875, -0.00270843505859375, 0.056427001953125, 0.022735595703125, -0.0191497802734375, -0.025787353515625, 0.01251220703125, -0.0169525146484375, -0.0305023193359375, 0.00551605224609375, 0.0188446044921875, 0.0186004638671875, -0.0289459228515625, 0.0241546630859375, 0.01036834716796875, -0.014617919921875, -0.029449462890625, 0.00588226318359375, 0.00843048095703125, -0.0072784423828125, -0.037353515625, 0.052978515625, 0.029510498046875, -0.01251220703125, -0.0184478759765625, 0.0231170654296875, 0.009033203125, 0.040069580078125, 0.034088134765625, -0.03778076171875, -0.015777587890625, 0.00154876708984375, -0.01776123046875, -0.0256195068359375, 0.01348114013671875, 0.0107879638671875, 0.05926513671875, -0.0037555694580078125, -0.041046142578125, 0.0068817138671875, -0.0517578125, -0.01702880859375, 0.0186767578125, -0.033905029296875, -0.0528564453125, -0.0268707275390625, -0.0114593505859375, 0.0225982666015625, -0.0260009765625, -0.028167724609375, 0.03961181640625, -0.0167694091796875, 0.052734375, -0.0283203125, 0.00482940673828125, 0.032073974609375, 0.0254669189453125, -0.018890380859375, -0.0164947509765625, 0.0038089752197265625, -0.03326416015625, -0.0050506591796875, -0.0187530517578125, -0.0343017578125, 0.035125732421875, -0.028533935546875, 0.0159759521484375, -0.041290283203125, 0.02362060546875, -0.037384033203125, 0.00445556640625, 0.0478515625, 0.017364501953125, -0.0173187255859375, 0.0031185150146484375, -0.00774383544921875, -0.007568359375, 0.018463134765625, -0.037628173828125, -0.01467132568359375, -0.027862548828125, 0.0013065338134765625, 0.031585693359375, 0.006381988525390625, 0.0250091552734375, -0.014617919921875, 0.018310546875, -0.017364501953125, 0.038116455078125, -0.0163726806640625, 0.0181732177734375, 0.03216552734375, 0.0034465789794921875, 0.021759033203125, 0.00019466876983642578, 0.0008358955383300781, -0.01435089111328125, -0.0270843505859375, -0.02667236328125, 0.005901336669921875, -0.005458831787109375, 0.022674560546875, 0.036102294921875, 0.06658935546875, 0.005825042724609375, 0.01336669921875, -0.0036983489990234375, -0.007328033447265625, -0.0160369873046875, 0.0168914794921875, 0.006046295166015625, 0.0027713775634765625, 0.026763916015625, -0.0213470458984375, 0.018798828125, 0.0233612060546875, 0.0024509429931640625, 0.0138092041015625, -0.004276275634765625, 0.00815582275390625, 0.024322509765625, -0.07305908203125, 0.076416015625, 0.07281494140625, 0.033416748046875, 0.0579833984375, -0.00936126708984375, 0.01195526123046875, 0.00856781005859375, -0.001613616943359375, 0.00786590576171875, 0.00665283203125, 0.057830810546875, -0.00890350341796875, 0.0081939697265625, 0.04656982421875, -0.0160064697265625, 0.0207061767578125, 0.03497314453125, 0.0836181640625, -0.034637451171875, 0.0013284683227539062, 0.027252197265625, -0.027130126953125, 0.0168304443359375, -0.00638580322265625, 0.00205230712890625, 0.023040771484375, 0.03131103515625, -0.044891357421875, -0.0280609130859375, 0.0110931396484375, -0.0051116943359375, 0.0029850006103515625, -0.001018524169921875, 0.039947509765625, -0.004497528076171875, 0.01526641845703125, -0.050445556640625, -0.0170745849609375, 0.00821685791015625, 0.0015583038330078125, 0.01085662841796875, 0.00634765625, -0.0199432373046875, -0.028717041015625, 0.020660400390625, -0.01983642578125, -0.0131988525390625, 0.06268310546875, 0.040069580078125, 0.029632568359375, 0.03887939453125, 0.0187835693359375, 0.011993408203125, -0.00994873046875, 0.0024356842041015625, 0.0005254745483398438, -0.007289886474609375, 0.01192474365234375, 0.0172882080078125, -0.0163421630859375, 0.00733184814453125, -0.006160736083984375, -0.01425933837890625, -0.028961181640625, -0.00011938810348510742, 0.119384765625, -0.0218963623046875, -0.0278472900390625, -0.0027446746826171875, 0.046417236328125, 0.004474639892578125, -0.004169464111328125, 0.05816650390625, -0.04815673828125, -0.024627685546875, 0.00989532470703125, -0.018463134765625, -0.0206298828125, -0.0153350830078125, -0.0516357421875, 0.095947265625, -0.0025577545166015625, -0.0016574859619140625, -0.0118865966796875, 0.05316162109375, -0.00284576416015625, 0.0428466796875, -0.03912353515625, 0.039154052734375, 0.0033969879150390625, 0.037994384765625, -0.08526611328125, -0.024810791015625, -0.01934814453125, 0.06292724609375, -0.0022373199462890625, 0.00318145751953125, 0.009796142578125, 0.00450897216796875, 0.01325225830078125, 0.018524169921875, -0.0199432373046875, 0.01212310791015625, -0.01230621337890625, 0.030364990234375, 0.04083251953125, -0.0311126708984375, 0.026336669921875, -0.01313018798828125, -0.03125, 0.00382232666015625, 0.00830841064453125, -0.0029582977294921875, -0.0202178955078125, 0.018310546875, -0.0167694091796875, -0.006122589111328125, 0.008453369140625, -0.005859375, 0.00959014892578125, 0.02545166015625, 0.01076507568359375, 0.004390716552734375, -0.0202178955078125, -0.00588226318359375, 0.01348114013671875, -0.00612640380859375, 0.0258636474609375, -0.00334930419921875, 0.0094757080078125, 0.04071044921875, -0.01166534423828125, -0.0103607177734375, 0.0281829833984375, -0.0190887451171875, 0.0384521484375, 0.021392822265625, -0.00945281982421875, -0.01849365234375, 0.0360107421875, 0.0238800048828125, 0.035400390625, -0.048095703125, -0.039306640625, 0.0017480850219726562, -0.00732421875, 0.0243377685546875, 0.004123687744140625, 0.0303955078125, -0.0033512115478515625, 0.00591278076171875, -0.059112548828125, 0.03826904296875, 0.044158935546875, 0.0025424957275390625, -0.007671356201171875, 0.02191162109375, -0.0772705078125, 0.03466796875, -0.0526123046875, 0.020782470703125, 0.018646240234375, 0.05377197265625, 0.01422119140625, 0.04803466796875, 0.02435302734375, -0.016937255859375, -0.01155853271484375, 0.033660888671875, 0.0159912109375, 0.01177978515625, -0.02099609375, -0.0230560302734375, -0.01053619384765625, 0.0299530029296875, 0.001567840576171875, 0.0322265625, 0.02203369140625, 0.00934600830078125, 0.0007815361022949219, 0.006866455078125, 0.047821044921875, -0.02288818359375, -0.038238525390625, -0.035552978515625, 0.00783538818359375, 0.038970947265625, 0.01251983642578125, 0.01323699951171875, -0.025177001953125, 0.06695556640625, -0.0301971435546875, 0.035614013671875, -0.0018491744995117188, -0.0007491111755371094, 0.0209808349609375, 0.0199432373046875, 0.033355712890625, 0.015472412109375, -0.0906982421875, -0.00875091552734375, -0.01206207275390625, -0.092529296875, 0.0233001708984375, 0.055938720703125, -0.027008056640625, -0.005619049072265625, 0.010345458984375, -0.015777587890625, 0.01116180419921875, 0.0006847381591796875, -0.00978851318359375, 0.03375244140625, 0.0222320556640625, 0.011444091796875, -0.00867462158203125, 0.0162200927734375, 0.0145111083984375, -0.00803375244140625, 0.0138397216796875, -0.044952392578125, 0.050537109375, 0.0266876220703125, -0.018035888671875, -0.013153076171875, 0.000957489013671875, -0.0231475830078125, 0.023590087890625, -0.00786590576171875, -0.01290130615234375, -0.00986480712890625, -0.0124359130859375, 0.00608062744140625, 0.048431396484375, -0.02435302734375, -0.0250091552734375, 0.0164031982421875, 0.0265655517578125, -0.01218414306640625, -0.007259368896484375, -0.03289794921875, -0.0236358642578125, -0.034698486328125, -0.01287078857421875, 0.036224365234375, 0.0179290771484375, -0.00019466876983642578, 0.0270233154296875, 0.0269927978515625, -0.0052947998046875, 0.03533935546875, -0.0218048095703125, 0.056488037109375, 0.0499267578125, -0.0211334228515625, -0.0177459716796875, -0.01097869873046875, -0.0109710693359375, 0.011566162109375, 0.0119781494140625, 0.01059722900390625, -0.00037670135498046875, -0.0254974365234375, 0.059326171875, 0.01430511474609375, 0.009796142578125, -0.046539306640625, -0.015899658203125, 0.0594482421875, 0.0020122528076171875, -0.00345611572265625, -0.045867919921875, -0.023895263671875, -0.08062744140625, 0.018798828125, 0.0204620361328125, -0.0252227783203125, -0.01374053955078125, -0.008697509765625, 0.006622314453125, 0.0265960693359375, 0.005645751953125, -0.0509033203125, 0.0271453857421875, -0.0263671875, 0.028411865234375, -0.022064208984375, 0.015533447265625, 0.013458251953125, 0.036102294921875, -0.0195159912109375, -0.0008196830749511719, -0.00730133056640625, 0.007137298583984375, 0.01247406005859375, 0.033721923828125, 0.0557861328125, -0.0499267578125, -0.039886474609375, 0.005054473876953125, 0.048492431640625, 0.0276031494140625, 0.03887939453125, -0.043914794921875, -0.023406982421875, 0.00740814208984375, -0.0004203319549560547, -0.006511688232421875, 0.03924560546875, -0.062408447265625, -0.034271240234375, -0.015869140625, 0.0190582275390625, 0.0498046875, -0.0285797119140625, -0.1142578125, 0.034149169921875, -0.034271240234375, -0.03619384765625, -0.014129638671875, -0.01081085205078125, -0.006549835205078125, 0.03167724609375, 0.0029430389404296875, -0.0386962890625, -0.0253753662109375, 0.0034427642822265625, 0.0244598388671875, -0.0007200241088867188, 0.025146484375, 0.031341552734375, -0.131103515625, -0.0034236907958984375, -0.056884765625, 0.0213470458984375, 0.02838134765625, -0.0183258056640625, -0.0214080810546875, -0.00936126708984375, -0.0966796875, -0.10101318359375, -0.0535888671875, 0.057708740234375, -0.0128936767578125, -0.02276611328125, -0.0244598388671875, -0.00791168212890625, 0.0814208984375, 0.050872802734375, 0.023345947265625, -0.0477294921875, -0.03887939453125, -0.0221405029296875, -0.03076171875, -0.0307464599609375, 0.033905029296875, -0.0830078125, -0.01444244384765625, -0.0011968612670898438, -0.0196990966796875, -0.01605224609375, 0.02630615234375, -0.028472900390625, 0.01401519775390625, 0.0623779296875, 0.0007648468017578125, -0.040069580078125, 0.0008625984191894531, 0.10882568359375, -0.062286376953125, 0.00916290283203125, 0.022613525390625, -0.01142120361328125, 0.0699462890625, 0.006099700927734375, -0.04302978515625, -0.00017309188842773438, -0.0294189453125, 0.01097869873046875, -0.0196685791015625, 0.031494140625, -0.01468658447265625, 0.030181884765625, -0.0103302001953125, 0.019805908203125, -0.006572723388671875, 0.0150146484375, -0.010284423828125, 0.001903533935546875, -0.0035495758056640625, 0.0399169921875, 0.00335693359375, 0.0242919921875, 0.0025463104248046875, 0.022491455078125, 0.00984954833984375, -0.01488494873046875, 0.036529541015625, -0.042572021484375, -0.01491546630859375, -0.0043487548828125, -0.06304931640625, -0.0772705078125, 0.0290069580078125, 0.006267547607421875, -0.0189056396484375, 0.020050048828125 ]
3e8237bfbb4818aa08dac053f1b7009f7803d28b
Wordpress Stackexchange Q: How to inject content after I would like to inject some elements directly after the <body> tag. Is that possible using only WordPress hooks? A: Just add a custom hook to your template: <body> <?php do_action( 'wpse73370_custom_hook' ); ?>
Q: How to inject content after I would like to inject some elements directly after the <body> tag. Is that possible using only WordPress hooks? A: Just add a custom hook to your template: <body> <?php do_action( 'wpse73370_custom_hook' ); ?> A: Wordpress 5.2.0 introduced the wp_body_open hook (detailed in the WordPress codex) // Add code after opening body tag. add_action( 'wp_body_open', 'wpdoc_add_custom_body_open_code' ); function wpdoc_add_custom_body_open_code() { echo '<!-- custom code -->'; } A: After reading this answer I've made this. ob_start(); add_action('shutdown', function() { if ( is_admin() ) { return; } $final = ''; $levels = ob_get_level(); for ($i = 0; $i < $levels; $i++){ $final .= ob_get_clean(); } echo apply_filters('final_output', $final); }, 0); add_filter('final_output', function($output) { if ( is_admin() ) { return; } $after_body = apply_filters('after_body',''); $output = preg_replace("/(\<body.*\>)/", "$1".$after_body, $output); return $output; }); add_filter('after_body',function($after_body){ $after_body.='<div class="content">My Content</div>'; return $after_body; }); The first two filters "shutdown" and "final_output" are the core functions. Could be part of a plugin. After they are created you can use the new after_body filter to add what you want to the after body. In This case i added a simple div, so it ended up like this: <body><div class="content">My Content</div> And what is also interesting is with this regex you don't need to worry about damaging what is inside the body. A class for instance or any other thing A: I could not find any working example online, but I got one solution and I hope it might help anyone. jQuery(document).ready( function($) { $('body').prepend('<h1>Hello world</h1>'); }); https://wordpress.org/support/topic/add_action-right-after-ltbodygt-tag A: If you are using Genesis by StudioPress, there is a hook you can use like the one I use for facebook plugins: add_action( 'genesis_before', 'fn_AddFacebook' ); function fn_AddFacebook(){ $script=' (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8"; fjs.parentNode.insertBefore(js, fjs); }(document, \'script\', \'facebook-jssdk\'));'; echo $script; } That seems to work for me. It is essentially the exact same thing as adding your own hook, like the #1 answer (which I agree is the best). However.... if you are like me, and slap together sites using whatever template the client picked out, I don't like to add my own hooks like that. I keep all my stuff in a separate directory and link it to the functions.php. So, I would use the jquery solution to just add it to the dom after the load. However, I tested Ralf912's output buffer idea. That's very cool. I'd say, if you need to make sure your code is executed correctly and on the same page and it's 100% has to be there, and you don't want to mess with the template, that's a good idea. A: You can create a plugin that is based on JavaScript and uses prependTo in order to place a tag right after the starting body tag. Check this out for a reference. A: Yes, it's quite simple: add_action( 'init', 'test_start_buffer', 0, 0 ); function test_start_buffer(){ ob_start( 'test_get_buffer' ); } function test_get_buffer( $buffer){ return preg_replace( '#<body.+>#', '<body>', $buffer); } The first function will register a callback for the output buffering. The second function is the callback and will modify and return the HTML. Please read the PHP manual output bufferuing for more informations.
wordpress
{ "language": "en", "length": 539, "provenance": "stackexchange_00019.jsonl.gz:426028", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73370" }
[ 0.033721923828125, -0.0008029937744140625, -0.006366729736328125, -0.008453369140625, -0.004924774169921875, -0.0335693359375, 0.038970947265625, -0.01433563232421875, -0.00469970703125, -0.006221771240234375, -0.0275726318359375, 0.0117340087890625, -0.0035114288330078125, -0.027374267578125, 0.0296173095703125, -0.0231475830078125, 0.03070068359375, -0.0262908935546875, 0.018585205078125, -0.0169219970703125, -0.0010633468627929688, -0.0010671615600585938, 0.04095458984375, 0.036651611328125, -0.00524139404296875, 0.01175689697265625, 0.045562744140625, -0.011627197265625, -0.0307159423828125, -0.0264129638671875, 0.006740570068359375, 0.0182952880859375, 0.023895263671875, 0.0313720703125, -0.07318115234375, -0.0065460205078125, -0.0552978515625, 0.036163330078125, -0.019744873046875, 0.0177459716796875, 0.00962066650390625, -0.01123046875, 0.05078125, 0.034149169921875, -0.0108642578125, -0.01241302490234375, 0.0218658447265625, -0.03973388671875, 0.01206207275390625, -0.026031494140625, 0.0111083984375, 0.031280517578125, 0.0182342529296875, -0.004749298095703125, -0.01056671142578125, 0.0184173583984375, -0.0161895751953125, -0.037628173828125, 0.017364501953125, 0.058258056640625, 0.0114898681640625, -0.00439453125, 0.0011806488037109375, -0.05078125, 0.032745361328125, 0.01561737060546875, 0.017333984375, 0.0234832763671875, -0.032318115234375, 0.017547607421875, 0.0074462890625, -0.038177490234375, -0.038848876953125, -0.0197296142578125, 0.005367279052734375, 0.0008654594421386719, 0.0205230712890625, -0.0254058837890625, -0.005977630615234375, 0.055511474609375, 0.0239105224609375, 0.01520538330078125, 0.0184783935546875, -0.07391357421875, 0.043609619140625, -0.061004638671875, -0.0149993896484375, 0.0051422119140625, -0.02899169921875, -0.01102447509765625, -0.039642333984375, 0.0181884765625, 0.028411865234375, -0.0290069580078125, -0.053009033203125, 0.0177459716796875, 0.0025310516357421875, 0.021331787109375, -0.001773834228515625, 0.042724609375, 0.016021728515625, -0.0433349609375, 0.0869140625, -0.059173583984375, 0.02825927734375, 0.0261383056640625, -0.00994110107421875, -0.0309295654296875, 0.033355712890625, 0.0011758804321289062, -0.03240966796875, 0.037872314453125, 0.004894256591796875, -0.00879669189453125, -0.055206298828125, 0.0272674560546875, 0.0158538818359375, -0.0165252685546875, 0.012451171875, 0.02880859375, -0.0187225341796875, -0.015899658203125, 0.04241943359375, -0.01739501953125, 0.01287078857421875, -0.0091400146484375, -0.0215606689453125, -0.0229949951171875, -0.0276031494140625, -0.00882720947265625, -0.0250701904296875, 0.04266357421875, 0.069580078125, 0.035003662109375, 0.0023899078369140625, -0.004291534423828125, 0.027679443359375, -0.0233154296875, 0.0003948211669921875, -0.00817108154296875, -0.01513671875, -0.040496826171875, -0.03631591796875, -0.01367950439453125, 0.034332275390625, -0.00617218017578125, 0.0081329345703125, 0.0273590087890625, 0.0228271484375, -0.032318115234375, 0.042816162109375, -0.0160675048828125, 0.0030498504638671875, 0.0035648345947265625, 0.0028667449951171875, -0.0156707763671875, -0.010040283203125, -0.0076904296875, 0.01306915283203125, -0.012298583984375, -0.0173492431640625, 0.007144927978515625, 0.04058837890625, -0.033203125, -0.0146026611328125, -0.0207366943359375, -0.045989990234375, 0.00012034177780151367, 0.036712646484375, 0.050506591796875, 0.0268707275390625, -0.03814697265625, 0.0007038116455078125, 0.00787353515625, -0.027740478515625, 0.01479339599609375, -0.013885498046875, 0.0279083251953125, 0.024139404296875, -0.01154327392578125, -0.014434814453125, -0.0347900390625, 0.09539794921875, -0.0206146240234375, -0.064697265625, 0.03717041015625, 0.0235748291015625, 0.10687255859375, 0.01593017578125, 0.019378662109375, 0.0166473388671875, -0.01513671875, -0.0288543701171875, 0.02349853515625, -0.013275146484375, -0.035797119140625, -0.0005707740783691406, -0.0027980804443359375, -0.0141448974609375, -0.009307861328125, 0.007106781005859375, 0.0682373046875, -0.0129241943359375, 0.039031982421875, 0.036529541015625, 0.03961181640625, 0.0097808837890625, 0.0139923095703125, 0.019256591796875, -0.024017333984375, -0.001354217529296875, -0.0311126708984375, 0.039764404296875, -0.08563232421875, -0.07415771484375, 0.00908660888671875, -0.0218658447265625, 0.011871337890625, -0.0069122314453125, 0.0513916015625, -0.01134490966796875, -0.035797119140625, -0.0190887451171875, -0.0151519775390625, 0.059661865234375, -0.00806427001953125, -0.0136871337890625, -0.0215606689453125, 0.004077911376953125, 0.047027587890625, -0.1182861328125, 0.0197906494140625, 0.0104827880859375, 0.0169219970703125, -0.0233917236328125, 0.0121002197265625, 0.0240478515625, -0.041778564453125, -0.01611328125, 0.0270538330078125, 0.0298614501953125, 0.057220458984375, -0.01485443115234375, 0.00457763671875, 0.039794921875, -0.044403076171875, 0.0144805908203125, -0.0032253265380859375, 0.0386962890625, 0.068603515625, -0.038421630859375, -0.005542755126953125, 0.01233673095703125, -0.04779052734375, 0.01415252685546875, 0.016204833984375, -0.0077056884765625, -0.01328277587890625, -0.0174102783203125, 0.005645751953125, 0.0311279296875, -0.002300262451171875, -0.057891845703125, 0.01016998291015625, 0.0238189697265625, -0.007228851318359375, 0.038665771484375, 0.01198577880859375, -0.0128021240234375, -0.0126495361328125, 0.0179290771484375, 0.0182647705078125, 0.013092041015625, 0.00865936279296875, 0.003978729248046875, 0.0055389404296875, 0.00830841064453125, -0.00567626953125, 0.004390716552734375, -0.0125274658203125, 0.0014429092407226562, 0.02215576171875, 0.0011854171752929688, -0.01849365234375, 0.01287078857421875, -0.002716064453125, -0.003917694091796875, -0.005924224853515625, 0.04949951171875, 0.0189056396484375, 0.0291900634765625, 0.0287628173828125, -0.033050537109375, 0.076171875, -0.005619049072265625, -0.03985595703125, -0.032745361328125, -0.04241943359375, 0.0296478271484375, -0.047607421875, 0.0304718017578125, 0.07080078125, -0.0272369384765625, 0.01107025146484375, -0.00963592529296875, -0.0035552978515625, 0.0177459716796875, -0.01197052001953125, -0.023040771484375, -0.0269927978515625, -0.030517578125, 0.0004775524139404297, 0.036346435546875, 0.0360107421875, 0.01081085205078125, -0.031463623046875, -0.0056610107421875, 0.029022216796875, -0.07037353515625, -0.069091796875, 0.0106658935546875, -0.040008544921875, -0.0027675628662109375, -0.010101318359375, -0.0081939697265625, -0.0160980224609375, 0.0013036727905273438, -0.0138397216796875, -0.0178680419921875, -0.0311279296875, -0.0223388671875, -0.040863037109375, -0.050628662109375, 0.04510498046875, 0.0070343017578125, 0.0225982666015625, -0.00023281574249267578, 0.035369873046875, 0.0148468017578125, -0.03900146484375, 0.0147247314453125, 0.04144287109375, -0.0177764892578125, -0.017791748046875, -0.0293426513671875, -0.00971221923828125, 0.00980377197265625, -0.004962921142578125, -0.016632080078125, -0.0002002716064453125, 0.01148223876953125, -0.00559234619140625, -0.03192138671875, -0.021087646484375, -0.0103759765625, 0.07379150390625, 0.033111572265625, -0.022613525390625, 0.046539306640625, -0.045440673828125, -0.0301513671875, 0.021087646484375, -0.049652099609375, -0.01378631591796875, 0.0287322998046875, -0.01436614990234375, 0.0172882080078125, -0.0275115966796875, 0.001407623291015625, 0.037567138671875, -0.04705810546875, 0.0153961181640625, 0.034271240234375, -0.0181121826171875, -0.01041412353515625, 0.0180206298828125, 0.0009450912475585938, -0.0149383544921875, 0.04595947265625, 0.0112152099609375, 0.026153564453125, -0.021087646484375, 0.032989501953125, -0.06756591796875, -0.0264739990234375, 0.01959228515625, 0.00753021240234375, 0.0205230712890625, 0.0171966552734375, -0.016082763671875, 0.0360107421875, 0.079345703125, -0.051666259765625, 0.004299163818359375, 0.003849029541015625, -0.00370025634765625, -0.03839111328125, 0.0166473388671875, -0.1014404296875, -0.0014705657958984375, -0.07196044921875, 0.05999755859375, 0.0245819091796875, 0.00685882568359375, -0.0230255126953125, -0.03985595703125, -0.0220794677734375, -0.039276123046875, 0.01495361328125, 0.0018167495727539062, -0.00579071044921875, 0.0164031982421875, -0.022216796875, 0.00970458984375, -0.01514434814453125, -0.0009021759033203125, -0.043914794921875, 0.0021686553955078125, -0.06854248046875, 0.0416259765625, 0.057037353515625, -0.004669189453125, -0.01480865478515625, 0.016754150390625, -0.006313323974609375, -0.0137939453125, 0.015869140625, 0.032623291015625, -0.03326416015625, -0.01629638671875, -0.009246826171875, -0.046844482421875, 0.004756927490234375, -0.01006317138671875, -0.01332855224609375, 0.01471710205078125, -0.042144775390625, 0.00029778480529785156, -0.0219573974609375, -0.0232391357421875, 0.0046539306640625, -0.015289306640625, -0.016876220703125, 0.030364990234375, -0.005985260009765625, 0.0026378631591796875, -0.0251922607421875, -0.01430511474609375, 0.06341552734375, -0.01312255859375, -0.016326904296875, -0.004878997802734375, 0.06494140625, 0.0208892822265625, -0.00872802734375, -0.0029850006103515625, -0.032684326171875, 0.041046142578125, 0.018280029296875, 0.00042057037353515625, 0.0229034423828125, -0.0234222412109375, 0.016387939453125, 0.03826904296875, 0.02008056640625, -0.051055908203125, 0.10894775390625, 0.01226806640625, 0.027587890625, 0.00586700439453125, 0.01222991943359375, -0.0093841552734375, -0.00009775161743164062, -0.0243072509765625, 0.0019321441650390625, 0.02410888671875, 0.0008339881896972656, -0.054656982421875, 0.0675048828125, 0.013275146484375, -0.006900787353515625, -0.002410888671875, 0.08935546875, 0.0007772445678710938, 0.04052734375, -0.006504058837890625, -0.00638580322265625, 0.006542205810546875, 0.010467529296875, -0.047149658203125, -0.045654296875, -0.02252197265625, 0.0252838134765625, -0.01947021484375, 0.005207061767578125, -0.005096435546875, -0.016326904296875, 0.04522705078125, 0.0293731689453125, -0.0168304443359375, -0.00734710693359375, -0.0012874603271484375, -0.0252532958984375, -0.019866943359375, 0.0033359527587890625, 0.0197906494140625, 0.032623291015625, -0.0038661956787109375, 0.0105743408203125, -0.003215789794921875, 0.023956298828125, -0.0210723876953125, -0.032989501953125, -0.00240325927734375, -0.0264434814453125, 0.02325439453125, 0.0174407958984375, -0.017913818359375, 0.0171661376953125, -0.01910400390625, 0.03289794921875, 0.0240325927734375, 0.0210723876953125, 0.012237548828125, -0.0093841552734375, 0.0185089111328125, -0.0244140625, 0.0217742919921875, -0.013092041015625, 0.004268646240234375, 0.013763427734375, 0.00260162353515625, -0.003734588623046875, 0.0048065185546875, 0.01605224609375, 0.01561737060546875, 0.0033283233642578125, 0.02032470703125, -0.0079803466796875, -0.046783447265625, -0.01322174072265625, -0.00923919677734375, 0.0023784637451171875, -0.0301361083984375, 0.01812744140625, 0.0029964447021484375, -0.006175994873046875, 0.018646240234375, 0.01385498046875, -0.00325775146484375, -0.01983642578125, -0.01323699951171875, 0.0243682861328125, 0.025177001953125, 0.01062774658203125, -0.049591064453125, -0.05364990234375, -0.001979827880859375, 0.0200653076171875, 0.0611572265625, -0.0313720703125, 0.0233917236328125, -0.049896240234375, 0.0182342529296875, -0.086669921875, 0.019287109375, 0.00923919677734375, 0.0115509033203125, -0.0249176025390625, 0.020843505859375, -0.045989990234375, -0.007160186767578125, -0.034088134765625, -0.03790283203125, -0.04248046875, -0.021942138671875, 0.018035888671875, 0.052734375, -0.03924560546875, -0.046417236328125, 0.05047607421875, 0.0038852691650390625, -0.0229644775390625, 0.07379150390625, 0.0107269287109375, 0.0599365234375, -0.02734375, 0.041412353515625, 0.0175933837890625, 0.0299072265625, -0.0384521484375, -0.021697998046875, -0.01122283935546875, -0.07135009765625, -0.03106689453125, -0.01102447509765625, -0.005466461181640625, 0.07611083984375, 0.04278564453125, 0.007297515869140625, -0.007465362548828125, 0.0023975372314453125, 0.00836181640625, 0.004482269287109375, 0.001300811767578125, 0.046844482421875, -0.03900146484375, 0.085693359375, 0.026153564453125, -0.041290283203125, -0.0390625, -0.037506103515625, 0.005023956298828125, 0.055816650390625, -0.0209503173828125, -0.038421630859375, 0.0195159912109375, -0.01462554931640625, -0.005950927734375, -0.0009746551513671875, 0.0296478271484375, 0.0005402565002441406, 0.02044677734375, -0.0026264190673828125, 0.052154541015625, -0.0001195669174194336, -0.04620361328125, 0.0228729248046875, 0.001682281494140625, -0.0133514404296875, 0.0017938613891601562, -0.0288543701171875, -0.0018901824951171875, 0.0572509765625, 0.047760009765625, -0.061737060546875, 0.009124755859375, -0.0265350341796875, -0.01419830322265625, 0.033935546875, -0.005184173583984375, 0.0030345916748046875, -0.0185394287109375, 0.062164306640625, 0.052978515625, 0.009490966796875, 0.05218505859375, 0.0097808837890625, -0.05023193359375, -0.02093505859375, -0.03619384765625, 0.01513671875, 0.0173492431640625, 0.025848388671875, -0.0167388916015625, 0.01198577880859375, -0.035858154296875, 0.006160736083984375, 0.00861358642578125, 0.01016998291015625, 0.0191802978515625, 0.07501220703125, -0.0136260986328125, 0.034423828125, -0.00449371337890625, -0.0190582275390625, -0.007617950439453125, -0.005580902099609375, -0.00476837158203125, -0.006320953369140625, -0.038299560546875, -0.00984954833984375, -0.0154266357421875, 0.005550384521484375, 0.026123046875, -0.00677490234375, 0.003875732421875, 0.0220794677734375, -0.0157318115234375, -0.037261962890625, -0.00893402099609375, 0.006488800048828125, 0.038360595703125, 0.0004532337188720703, -0.0236968994140625, 0.04083251953125, 0.017364501953125, -0.0257568359375, 0.0074920654296875, -0.0063629150390625, -0.013275146484375, 0.005847930908203125, -0.0240936279296875, -0.0218963623046875, 0.040008544921875, -0.0015544891357421875, -0.0672607421875, 0.153076171875, 0.0233306884765625, 0.0181121826171875, 0.007106781005859375, 0.0601806640625, -0.05877685546875, 0.0169219970703125, -0.04766845703125, 0.056060791015625, -0.0029392242431640625, 0.04119873046875, -0.041595458984375, 0.00049591064453125, 0.00653839111328125, 0.0105438232421875, -0.0513916015625, -0.01605224609375, -0.0140533447265625, 0.004199981689453125, 0.0247955322265625, 0.0192718505859375, 0.0136871337890625, 0.0258026123046875, 0.0005407333374023438, 0.036224365234375, 0.0111083984375, -0.03143310546875, 0.038818359375, -0.058502197265625, -0.024017333984375, 0.0106964111328125, 0.0135650634765625, 0.0100555419921875, 0.006862640380859375, -0.005504608154296875, -0.0042572021484375, -0.00786590576171875, -0.0016574859619140625, -0.0076141357421875, -0.0118408203125, 0.05126953125, 0.0031108856201171875, -0.0219573974609375, -0.058380126953125, -0.0219879150390625, 0.028076171875, -0.0182342529296875, 0.04315185546875, 0.035858154296875, 0.0228118896484375, 0.0292205810546875, -0.00023090839385986328, 0.0231475830078125, 0.0343017578125, -0.0295562744140625, 0.0191497802734375, -0.0015096664428710938, 0.0060882568359375, -0.0753173828125, -0.037567138671875, 0.04046630859375, 0.04205322265625, -0.01485443115234375, 0.008087158203125, 0.0058135986328125, 0.0149993896484375, -0.0016889572143554688, -0.035919189453125, 0.0027256011962890625, 0.0172119140625, 0.0014619827270507812, 0.0211181640625, -0.04107666015625, -0.0114288330078125, 0.0406494140625, 0.0203399658203125, 0.03424072265625, -0.005283355712890625, -0.061859130859375, -0.029693603515625, 0.016571044921875, 0.00994873046875, 0.03466796875, -0.0024566650390625, 0.028076171875, 0.021087646484375, -0.0157470703125, -0.0147247314453125, -0.001232147216796875, 0.043060302734375, -0.0090179443359375, 0.01328277587890625, 0.05078125, -0.0065460205078125, 0.004993438720703125, -0.003780364990234375, 0.0394287109375, 0.01076507568359375, 0.01198577880859375, 0.0264434814453125, -0.007183074951171875, 0.0146636962890625, -0.025970458984375, 0.04669189453125, -0.004146575927734375, 0.0357666015625, 0.011871337890625, -0.012176513671875, -0.012359619140625, 0.01093292236328125, 0.0736083984375, 0.0144195556640625, 0.005084991455078125, 0.01203155517578125, -0.018341064453125, 0.0218048095703125, 0.00560760498046875, 0.0224609375, 0.033599853515625, -0.0260772705078125, -0.0065155029296875, -0.01593017578125, -0.039703369140625, 0.0262451171875, 0.05206298828125, -0.002796173095703125, 0.0005035400390625, 0.02752685546875, -0.00390625, -0.0278778076171875, -0.01166534423828125, 0.0386962890625, -0.0120086669921875, 0.005252838134765625, 0.031707763671875, -0.0631103515625, -0.0294952392578125, -0.05303955078125, 0.038482666015625, 0.033538818359375, 0.0304412841796875, -0.0008707046508789062, 0.055084228515625, -0.0268402099609375, -0.00423431396484375, -0.008575439453125, -0.0263824462890625, -0.0005917549133300781, 0.02142333984375, 0.01114654541015625, -0.0150299072265625, -0.0203399658203125, 0.0167388916015625, 0.0020656585693359375, 0.007495880126953125, 0.016326904296875, -0.050994873046875, 0.0268707275390625, 0.042449951171875, 0.04107666015625, -0.0014219284057617188, 0.01788330078125, -0.02838134765625, -0.0136871337890625, 0.07098388671875, 0.0308074951171875, -0.046051025390625, 0.01441192626953125, -0.01195526123046875, -0.0247344970703125, -0.0110015869140625, 0.0008721351623535156, -0.0511474609375, 0.005001068115234375, 0.01849365234375, -0.0142669677734375, 0.045867919921875, -0.0041961669921875, 0.0240631103515625, 0.02685546875, 0.0236968994140625, 0.035614013671875, -0.0107574462890625, -0.0207061767578125, -0.04345703125, 0.0325927734375, 0.006748199462890625, 0.01131439208984375, -0.075927734375, 0.0221710205078125, 0.0097808837890625, -0.06256103515625, -0.02215576171875, -0.024017333984375, -0.02374267578125, 0.0301971435546875, -0.01134490966796875, -0.033050537109375, -0.04217529296875, 0.0176239013671875, 0.05450439453125, 0.005046844482421875, -0.048431396484375, 0.00766754150390625, -0.035400390625, 0.062408447265625, 0.034027099609375, 0.0269317626953125, 0.00644683837890625, 0.025238037109375, -0.060516357421875, -0.040283203125, -0.017791748046875, 0.03717041015625, -0.043670654296875, 0.021026611328125, 0.029815673828125, -0.01361846923828125, 0.033905029296875, 0.006214141845703125, -0.0021514892578125, 0.08709716796875, -0.0212860107421875, -0.0196990966796875, 0.03643798828125, 0.003139495849609375, -0.0209197998046875, -0.047607421875, 0.00849151611328125, -0.03509521484375, -0.0028324127197265625, 0.01605224609375, -0.02923583984375, 0.0027980804443359375, -0.054107666015625, -0.12066650390625, 0.08331298828125, -0.0207977294921875, -0.0299835205078125, -0.044189453125, 0.02789306640625, 0.02032470703125, -0.050933837890625, -0.039154052734375, 0.0158843994140625, -0.022216796875, 0.006031036376953125, -0.01898193359375, 0.038909912109375, 0.0132598876953125, -0.0284576416015625, -0.02899169921875, -0.017852783203125, -0.0293426513671875, -0.019744873046875, 0.0139312744140625, 0.0052947998046875, 0.028076171875, 0.0390625, -0.04168701171875, 0.032379150390625, -0.01357269287109375, -0.0089874267578125, -0.033599853515625, -0.02862548828125, 0.0202789306640625, 0.009765625, 0.069580078125, 0.0185699462890625, 0.00510406494140625, -0.05279541015625, 0.034912109375, 0.02886962890625, -0.044403076171875, -0.0282440185546875, 0.0230560302734375, -0.029449462890625, -0.0322265625, -0.0435791015625, -0.00820159912109375, 0.0007371902465820312, -0.0103607177734375, -0.0243682861328125, -0.016815185546875, -0.01200103759765625, -0.0015192031860351562, -0.046478271484375, 0.00870513916015625, 0.11358642578125, -0.0526123046875, 0.010528564453125, 0.0290374755859375, 0.01126861572265625, 0.0621337890625, 0.005832672119140625, 0.013092041015625, -0.0240631103515625, -0.025482177734375, 0.016632080078125, -0.0033817291259765625, 0.04608154296875, -0.0242767333984375, -0.04144287109375, -0.00830841064453125, 0.0302276611328125, 0.00936126708984375, 0.025299072265625, -0.05389404296875, 0.033355712890625, -0.01459503173828125, 0.08917236328125, -0.06231689453125, 0.00860595703125, -0.0219879150390625, -0.0100250244140625, -0.0205230712890625, 0.050689697265625, 0.040130615234375, -0.0005578994750976562, 0.0002503395080566406, 0.0291290283203125, -0.022125244140625, -0.0251312255859375, 0.00954437255859375, -0.03326416015625, 0.01142120361328125, 0.006786346435546875 ]
112252e66688e477f3338d366384b6afe03c7e2d
Wordpress Stackexchange Q: Using global $post v/s $GLOBALS['post'] It's probably more of a PHP question, but I would like to know if there are any differences in using global $post; echo $post->ID; when compared to echo $GLOBALS['post']->ID; to access the ID of a post in WordPress. This answer on SO suggests that the first method is quicker to process, while the second method is quicker to write. I also noticed that the first method is often mentioned in the Codex while the second method is mentioned on the_content filter page. Is this only a matter of preference? Or does it come to performance and security too? Thanks A: There is no difference when you are using just echo. What works different is unset(): function test_unset_1() { global $post; unset( $post ); } function test_unset_2() { unset( $GLOBALS['post'] ); } test_unset_1(); echo $GLOBALS['post']->ID; // will work test_unset_2(); echo $GLOBALS['post']->ID; // will fail The reason is that unset() destroys just the local reference in the first case and the real global object in the second. For readability use always $GLOBALS['post']. It is easier to see where the variable is coming from.
Q: Using global $post v/s $GLOBALS['post'] It's probably more of a PHP question, but I would like to know if there are any differences in using global $post; echo $post->ID; when compared to echo $GLOBALS['post']->ID; to access the ID of a post in WordPress. This answer on SO suggests that the first method is quicker to process, while the second method is quicker to write. I also noticed that the first method is often mentioned in the Codex while the second method is mentioned on the_content filter page. Is this only a matter of preference? Or does it come to performance and security too? Thanks A: There is no difference when you are using just echo. What works different is unset(): function test_unset_1() { global $post; unset( $post ); } function test_unset_2() { unset( $GLOBALS['post'] ); } test_unset_1(); echo $GLOBALS['post']->ID; // will work test_unset_2(); echo $GLOBALS['post']->ID; // will fail The reason is that unset() destroys just the local reference in the first case and the real global object in the second. For readability use always $GLOBALS['post']. It is easier to see where the variable is coming from.
wordpress
{ "language": "en", "length": 187, "provenance": "stackexchange_00019.jsonl.gz:426036", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73403" }
[ 0.04559326171875, -0.01239013671875, -0.0013294219970703125, -0.0048065185546875, 0.0155487060546875, -0.0230865478515625, 0.040008544921875, -0.02569580078125, 0.044921875, 0.01448822021484375, -0.03192138671875, -0.0181121826171875, -0.015655517578125, -0.0200653076171875, -0.0196380615234375, -0.0078887939453125, 0.035888671875, -0.03399658203125, 0.005519866943359375, -0.0135345458984375, -0.001346588134765625, 0.007427215576171875, 0.0211181640625, 0.022552490234375, 0.0313720703125, -0.05413818359375, 0.0088653564453125, 0.0085296630859375, -0.0250244140625, -0.032562255859375, 0.01544189453125, 0.0282745361328125, 0.0219268798828125, 0.0023365020751953125, -0.0173187255859375, -0.0207366943359375, -0.02764892578125, 0.01873779296875, 0.006366729736328125, -0.012298583984375, 0.02655029296875, -0.0217742919921875, 0.0032176971435546875, -0.0181121826171875, 0.009918212890625, -0.03509521484375, 0.0222625732421875, -0.058990478515625, 0.0035724639892578125, 0.0181884765625, -0.0036869049072265625, 0.054168701171875, 0.0010728836059570312, 0.0179901123046875, 0.01561737060546875, 0.0028591156005859375, 0.0157928466796875, -0.006561279296875, 0.05328369140625, 0.0032558441162109375, -0.0628662109375, -0.04608154296875, 0.0287322998046875, -0.06512451171875, 0.01959228515625, 0.00782012939453125, 0.0262603759765625, 0.0318603515625, -0.0474853515625, 0.0141754150390625, 0.0310211181640625, -0.03302001953125, 0.01280975341796875, -0.040008544921875, -0.00215911865234375, -0.046356201171875, 0.0224456787109375, -0.05877685546875, -0.022857666015625, 0.0123291015625, -0.05572509765625, -0.0235443115234375, -0.08917236328125, -0.01424407958984375, -0.01442718505859375, 0.016632080078125, -0.0246734619140625, 0.00605010986328125, -0.0150146484375, -0.03857421875, -0.0199432373046875, 0.0138397216796875, -0.01337432861328125, -0.0292205810546875, -0.0277099609375, -0.0278167724609375, 0.023101806640625, 0.059661865234375, -0.0278167724609375, -0.031646728515625, 0.0062255859375, -0.0255584716796875, -0.007244110107421875, -0.01401519775390625, -0.01245880126953125, 0.0271453857421875, 0.04449462890625, -0.0025157928466796875, -0.0011014938354492188, -0.005535125732421875, -0.0245819091796875, 0.0175933837890625, 0.038177490234375, 0.0158538818359375, -0.046661376953125, -0.03564453125, -0.030364990234375, 0.01039886474609375, 0.002971649169921875, 0.02032470703125, 0.00643157958984375, -0.0010805130004882812, 0.00601959228515625, 0.01110076904296875, 0.01270294189453125, 0.009521484375, -0.024078369140625, -0.0187835693359375, -0.0123138427734375, 0.01418304443359375, -0.0361328125, -0.0001366138458251953, 0.10552978515625, 0.036956787109375, 0.027679443359375, -0.0198822021484375, -0.036895751953125, 0.001682281494140625, 0.01251983642578125, 0.0174407958984375, -0.0215606689453125, -0.05914306640625, 0.034088134765625, 0.0193634033203125, -0.0033416748046875, 0.06439208984375, 0.034454345703125, -0.0298004150390625, -0.0322265625, -0.080810546875, -0.00923919677734375, -0.01849365234375, 0.0158538818359375, 0.032135009765625, -0.0038089752197265625, -0.01515960693359375, 0.0372314453125, -0.049163818359375, 0.0034580230712890625, -0.042266845703125, 0.027099609375, -0.0233306884765625, -0.039764404296875, -0.0012025833129882812, -0.03265380859375, 0.019195556640625, 0.01447296142578125, 0.004573822021484375, 0.02691650390625, 0.02679443359375, 0.035064697265625, -0.004180908203125, 0.0064239501953125, 0.0143280029296875, 0.0085906982421875, 0.005550384521484375, -0.049224853515625, -0.031524658203125, 0.043853759765625, -0.0226898193359375, -0.02056884765625, -0.0166473388671875, -0.019195556640625, 0.026611328125, -0.060089111328125, 0.00576019287109375, 0.00681304931640625, 0.04168701171875, 0.053863525390625, 0.01078033447265625, 0.0477294921875, -0.0294189453125, -0.01108551025390625, 0.03125, 0.01520538330078125, -0.0236358642578125, -0.0201263427734375, -0.006679534912109375, 0.0040130615234375, -0.034912109375, 0.06427001953125, -0.0050048828125, 0.01189422607421875, -0.0287628173828125, -0.10174560546875, 0.0096435546875, -0.029754638671875, 0.03436279296875, -0.06085205078125, -0.0175933837890625, 0.037109375, -0.0207672119140625, -0.01322174072265625, -0.028228759765625, -0.00850677490234375, 0.0178070068359375, -0.03546142578125, 0.0260009765625, -0.0220947265625, 0.0533447265625, -0.045135498046875, -0.005950927734375, -0.02398681640625, -0.01195526123046875, 0.0560302734375, 0.0241546630859375, -0.02362060546875, -0.005222320556640625, 0.046142578125, 0.01279449462890625, -0.0067901611328125, 0.0299224853515625, 0.01061248779296875, 0.03082275390625, 0.00911712646484375, -0.00527191162109375, -0.004291534423828125, -0.09552001953125, 0.01019287109375, 0.055633544921875, 0.046051025390625, 0.0274200439453125, 0.01532745361328125, 0.0009107589721679688, 0.03338623046875, -0.040130615234375, 0.018280029296875, -0.0278167724609375, 0.005748748779296875, 0.0318603515625, 0.01197052001953125, -0.005947113037109375, 0.0192718505859375, -0.0213165283203125, -0.00441741943359375, 0.025390625, -0.032501220703125, 0.01488494873046875, -0.013763427734375, 0.0098724365234375, -0.0268707275390625, -0.056732177734375, 0.01313018798828125, -0.047332763671875, 0.0204925537109375, 0.004856109619140625, 0.022857666015625, 0.0140380859375, -0.0291748046875, 0.01377105712890625, 0.01212310791015625, -0.004955291748046875, -0.0039005279541015625, -0.005985260009765625, 0.024627685546875, -0.01824951171875, -0.04376220703125, 0.01947021484375, 0.01142120361328125, -0.020263671875, -0.035888671875, 0.001979827880859375, -0.0276031494140625, -0.01343536376953125, 0.00039196014404296875, -0.0280914306640625, 0.01035308837890625, -0.0036640167236328125, 0.01995849609375, -0.0020294189453125, 0.0133056640625, 0.038818359375, -0.046783447265625, 0.0697021484375, -0.004978179931640625, -0.01309967041015625, 0.048309326171875, -0.02850341796875, 0.01666259765625, 0.005084991455078125, 0.06158447265625, 0.0540771484375, 0.0220947265625, 0.0059356689453125, 0.01494598388671875, 0.037872314453125, 0.034210205078125, -0.02447509765625, -0.005512237548828125, 0.0223388671875, -0.042724609375, 0.0183258056640625, 0.006099700927734375, 0.045135498046875, -0.037689208984375, -0.060028076171875, -0.0093536376953125, -0.0106048583984375, -0.12384033203125, -0.10125732421875, -0.027984619140625, -0.062255859375, -0.0026531219482421875, 0.00986480712890625, -0.020782470703125, -0.008087158203125, 0.0360107421875, 0.0193328857421875, 0.01715087890625, -0.000028967857360839844, -0.0592041015625, -0.03704833984375, -0.07293701171875, -0.0450439453125, -0.013275146484375, 0.003177642822265625, 0.002094268798828125, 0.045440673828125, 0.00580596923828125, -0.037139892578125, 0.00983428955078125, 0.053924560546875, -0.0118408203125, -0.0196990966796875, -0.0006575584411621094, -0.00707244873046875, -0.019073486328125, 0.0082244873046875, -0.015167236328125, 0.00484466552734375, -0.0002970695495605469, -0.0216827392578125, 0.0278472900390625, 0.0322265625, 0.06011962890625, 0.004116058349609375, -0.0360107421875, 0.03448486328125, 0.0301666259765625, -0.033599853515625, -0.033935546875, -0.04248046875, -0.058258056640625, 0.0087738037109375, 0.04718017578125, 0.033050537109375, -0.04193115234375, 0.0220794677734375, -0.0064239501953125, -0.004261016845703125, 0.0011749267578125, -0.017974853515625, 0.04449462890625, 0.004215240478515625, 0.024139404296875, 0.019500732421875, 0.0075836181640625, -0.034149169921875, -0.033966064453125, -0.02740478515625, -0.03924560546875, -0.02154541015625, -0.0278167724609375, -0.001430511474609375, -0.0246734619140625, 0.041778564453125, 0.01299285888671875, -0.0011358261108398438, 0.0016317367553710938, -0.02593994140625, -0.0106964111328125, 0.02569580078125, -0.053985595703125, -0.00525665283203125, 0.0006427764892578125, 0.002910614013671875, -0.011016845703125, -0.051605224609375, -0.047698974609375, -0.0037174224853515625, -0.01091766357421875, 0.03228759765625, 0.0022945404052734375, 0.0196533203125, -0.05181884765625, 0.08843994140625, -0.022247314453125, -0.002368927001953125, 0.0204620361328125, -0.034942626953125, 0.011474609375, -0.0116729736328125, -0.03350830078125, -0.006336212158203125, -0.024627685546875, -0.034637451171875, -0.048431396484375, -0.0218505859375, 0.035614013671875, 0.01470184326171875, -0.00421142578125, -0.0379638671875, 0.018646240234375, 0.035980224609375, 0.0020961761474609375, 0.015960693359375, -0.004199981689453125, -0.0028858184814453125, -0.00787353515625, 0.004833221435546875, -0.00347137451171875, -0.00966644287109375, -0.00572967529296875, -0.01210784912109375, -0.033203125, -0.0187835693359375, -0.00984954833984375, -0.0009322166442871094, 0.0263671875, -0.0292816162109375, -0.1002197265625, -0.0258636474609375, -0.01010894775390625, -0.0095977783203125, -0.017913818359375, 0.003162384033203125, -0.0138092041015625, -0.0953369140625, 0.052581787109375, 0.100830078125, -0.0152587890625, -0.0200653076171875, 0.066162109375, 0.0267791748046875, -0.0604248046875, -0.0279693603515625, 0.0120849609375, 0.0255889892578125, -0.0116424560546875, 0.0307159423828125, 0.01678466796875, -0.0014181137084960938, 0.022125244140625, -0.0018243789672851562, -0.0330810546875, -0.0243682861328125, 0.087646484375, -0.0213470458984375, -0.0054931640625, -0.0012407302856445312, -0.050445556640625, 0.03948974609375, 0.02520751953125, -0.0005502700805664062, -0.0352783203125, 0.0230560302734375, 0.05841064453125, -0.0452880859375, 0.052764892578125, -0.0284423828125, -0.01401519775390625, 0.018829345703125, -0.027496337890625, 0.032470703125, 0.020416259765625, 0.010040283203125, -0.0002510547637939453, -0.0167083740234375, 0.0309295654296875, 0.026153564453125, 0.035980224609375, 0.00010377168655395508, 0.0177764892578125, 0.06951904296875, 0.01491546630859375, -0.0150604248046875, -0.005237579345703125, 0.041107177734375, -0.00708770751953125, -0.0287628173828125, -0.038848876953125, 0.008575439453125, 0.005802154541015625, 0.002086639404296875, -0.023345947265625, 0.0234222412109375, -0.0031490325927734375, -0.01476287841796875, 0.0042266845703125, 0.0009670257568359375, -0.0244293212890625, -0.02142333984375, 0.00774383544921875, 0.01273345947265625, -0.0130767822265625, 0.003498077392578125, 0.0721435546875, -0.033203125, 0.053985595703125, -0.01253509521484375, 0.044219970703125, 0.024871826171875, 0.0206451416015625, -0.0010280609130859375, -0.00543975830078125, 0.01206207275390625, 0.0078277587890625, -0.004451751708984375, -0.010101318359375, -0.017669677734375, 0.0271759033203125, 0.0138397216796875, -0.0009431838989257812, 0.0206756591796875, -0.01131439208984375, 0.006160736083984375, -0.0268096923828125, 0.062042236328125, 0.007061004638671875, -0.050750732421875, -0.04248046875, 0.003002166748046875, 0.059234619140625, -0.007198333740234375, 0.013092041015625, -0.012481689453125, -0.00464630126953125, 0.007965087890625, 0.01215362548828125, -0.00412750244140625, -0.0103912353515625, -0.01039886474609375, -0.00916290283203125, -0.0157928466796875, -0.01983642578125, -0.0167388916015625, -0.023162841796875, -0.00782012939453125, -0.019622802734375, 0.052642822265625, -0.005126953125, 0.047027587890625, -0.003986358642578125, -0.046539306640625, 0.048492431640625, 0.0014476776123046875, 0.0723876953125, 0.041717529296875, -0.038421630859375, -0.01325225830078125, -0.043701171875, -0.005237579345703125, 0.0232696533203125, -0.0172576904296875, -0.018768310546875, -0.0027484893798828125, -0.0251617431640625, 0.0007433891296386719, -0.0099639892578125, 0.020477294921875, 0.0029506683349609375, 0.0277862548828125, -0.026275634765625, 0.05072021484375, 0.002910614013671875, -0.0006504058837890625, -0.009613037109375, 0.005527496337890625, -0.0011348724365234375, -0.00716400146484375, 0.0057830810546875, -0.021087646484375, 0.027740478515625, -0.05523681640625, -0.00615692138671875, -0.035552978515625, 0.00440216064453125, -0.00774383544921875, -0.0011501312255859375, -0.00484466552734375, 0.0006885528564453125, 0.012664794921875, 0.0251007080078125, -0.00848388671875, -0.06463623046875, -0.00691986083984375, -0.0416259765625, 0.025115966796875, 0.00974273681640625, -0.01119232177734375, -0.004734039306640625, 0.001888275146484375, 0.0074462890625, 0.0013151168823242188, 0.00974273681640625, -0.01126861572265625, -0.00260162353515625, 0.0199737548828125, 0.071044921875, -0.0016880035400390625, 0.03765869140625, 0.017822265625, 0.0011510848999023438, 0.0201416015625, 0.00505828857421875, -0.033477783203125, -0.0119781494140625, 0.032745361328125, 0.007080078125, -0.038665771484375, 0.004192352294921875, -0.0273284912109375, 0.032073974609375, 0.03900146484375, 0.0845947265625, -0.0204010009765625, -0.00470733642578125, 0.03192138671875, -0.06982421875, -0.0194854736328125, -0.00788116455078125, -0.01715087890625, -0.0147552490234375, 0.035888671875, 0.0006914138793945312, -0.0247802734375, 0.023193359375, 0.02001953125, 0.0020046234130859375, -0.0631103515625, 0.040496826171875, 0.02130126953125, -0.0264739990234375, 0.06866455078125, 0.0240325927734375, 0.019744873046875, -0.030242919921875, -0.0133514404296875, 0.016571044921875, -0.053375244140625, -0.09405517578125, -0.021942138671875, -0.0123138427734375, -0.015716552734375, 0.057647705078125, 0.00440216064453125, 0.0110015869140625, 0.0178680419921875, 0.00571441650390625, 0.00965118408203125, -0.030853271484375, 0.0085601806640625, -0.059844970703125, -0.0014238357543945312, 0.03680419921875, 0.053070068359375, -0.0159454345703125, 0.0338134765625, -0.0148468017578125, -0.030975341796875, -0.00429534912109375, -0.0173187255859375, 0.049560546875, -0.0297698974609375, -0.01474761962890625, 0.0186614990234375, 0.0023365020751953125, 0.002651214599609375, -0.0167236328125, 0.003398895263671875, -0.0180511474609375, 0.0133819580078125, -0.00843048095703125, -0.01137542724609375, -0.0153961181640625, -0.035858154296875, -0.076171875, 0.0882568359375, 0.02899169921875, 0.03948974609375, -0.01457977294921875, 0.027801513671875, -0.011810302734375, 0.0006732940673828125, -0.04547119140625, 0.016876220703125, -0.00634002685546875, 0.06146240234375, -0.06109619140625, -0.00829315185546875, 0.015106201171875, 0.0321044921875, 0.09466552734375, 0.004119873046875, -0.006298065185546875, -0.03570556640625, 0.016632080078125, 0.049072265625, -0.00916290283203125, 0.01322174072265625, 0.03546142578125, 0.044036865234375, 0.034942626953125, -0.055450439453125, 0.025146484375, -0.061248779296875, 0.03106689453125, 0.043548583984375, 0.010772705078125, -0.00926971435546875, 0.041168212890625, 0.0206146240234375, -0.03466796875, 0.0247650146484375, 0.0193328857421875, 0.0104522705078125, -0.0025844573974609375, 0.0276031494140625, 0.027496337890625, -0.037750244140625, -0.08209228515625, -0.004009246826171875, 0.040618896484375, 0.0143585205078125, 0.017974853515625, 0.06903076171875, 0.01837158203125, 0.0225830078125, 0.0013589859008789062, 0.016021728515625, -0.00673675537109375, -0.005817413330078125, 0.047943115234375, 0.06951904296875, 0.04241943359375, 0.0018243789672851562, 0.00467681884765625, 0.049530029296875, 0.051910400390625, -0.034759521484375, -0.0252838134765625, 0.01358795166015625, 0.01157379150390625, 0.01025390625, -0.0005884170532226562, 0.030303955078125, -0.03717041015625, -0.01509857177734375, -0.00794219970703125, 0.015045166015625, 0.0672607421875, -0.004535675048828125, 0.0156402587890625, 0.0191802978515625, -0.07666015625, 0.0283660888671875, -0.039276123046875, 0.00424957275390625, 0.03656005859375, 0.042388916015625, -0.0013294219970703125, 0.07012939453125, 0.0174102783203125, -0.01163482666015625, -0.00724029541015625, 0.0242919921875, 0.00927734375, 0.0265655517578125, -0.06494140625, -0.06353759765625, 0.048248291015625, 0.043212890625, 0.0036067962646484375, 0.00445556640625, 0.0655517578125, 0.041015625, -0.058197021484375, -0.019378662109375, -0.003814697265625, -0.03265380859375, 0.0087738037109375, 0.0092926025390625, -0.04632568359375, -0.0283355712890625, -0.035003662109375, -0.0265350341796875, 0.038238525390625, -0.02099609375, -0.004901885986328125, 0.024749755859375, 0.01320648193359375, -0.03277587890625, 0.0308685302734375, 0.0243377685546875, 0.07623291015625, 0.031768798828125, 0.00804901123046875, 0.0252227783203125, -0.036346435546875, -0.05267333984375, 0.01363372802734375, 0.0261688232421875, -0.0016689300537109375, 0.020721435546875, 0.0220489501953125, -0.00972747802734375, 0.003353118896484375, 0.018310546875, -0.0106658935546875, 0.00949859619140625, 0.0300750732421875, 0.00567626953125, -0.0019197463989257812, -0.0172119140625, -0.0152740478515625, 0.0323486328125, 0.042572021484375, 0.004329681396484375, 0.01006317138671875, 0.055633544921875, -0.042205810546875, 0.03692626953125, -0.0474853515625, -0.01084136962890625, -0.00513458251953125, 0.00745391845703125, 0.023345947265625, 0.0083770751953125, -0.016265869140625, 0.06689453125, 0.0200042724609375, 0.006061553955078125, 0.042572021484375, -0.0170135498046875, 0.008270263671875, -0.01430511474609375, -0.0161895751953125, -0.006683349609375, -0.009185791015625, 0.01031494140625, 0.00481414794921875, 0.028961181640625, 0.0157928466796875, -0.0224456787109375, 0.005970001220703125, -0.0246734619140625, -0.034027099609375, 0.0206298828125, -0.007476806640625, -0.01049041748046875, 0.000018775463104248047, 0.005786895751953125, -0.0236663818359375, -0.018218994140625, -0.026519775390625, -0.0201263427734375, 0.024658203125, 0.01146697998046875, -0.0260467529296875, -0.039886474609375, -0.0325927734375, 0.0300445556640625, 0.0457763671875, 0.010406494140625, 0.0067291259765625, 0.023101806640625, -0.0185546875, -0.051116943359375, -0.0281524658203125, -0.01715087890625, 0.005207061767578125, -0.005039215087890625, -0.0026607513427734375, 0.0338134765625, -0.061248779296875, 0.005435943603515625, -0.019744873046875, 0.039703369140625, 0.0157318115234375, -0.0295867919921875, -0.0014677047729492188, -0.01053619384765625, 0.00787353515625, 0.00536346435546875, 0.017181396484375, -0.0298309326171875, -0.032135009765625, -0.02154541015625, -0.0094451904296875, -0.0650634765625, 0.033233642578125, -0.0105743408203125, 0.0218658447265625, 0.01568603515625, -0.04150390625, 0.02325439453125, 0.01983642578125, 0.049835205078125, 0.0391845703125, 0.0396728515625, -0.052642822265625, 0.01136016845703125, -0.003604888916015625, 0.0007410049438476562, -0.0113067626953125, 0.0117340087890625, -0.05072021484375, 0.0034885406494140625, -0.0236053466796875, 0.024658203125, 0.0343017578125, -0.02044677734375, -0.040130615234375, 0.0626220703125, -0.0090484619140625, -0.02288818359375, -0.01451873779296875, -0.0203704833984375, 0.003170013427734375, 0.0289306640625, 0.0112152099609375, -0.07177734375, -0.0516357421875, -0.0017557144165039062, 0.00418853759765625, 0.052337646484375, 0.038970947265625, 0.004619598388671875, 0.0030879974365234375, -0.0014810562133789062, -0.0155487060546875, 0.007091522216796875, -0.00667572021484375, -0.00682830810546875, 0.0248260498046875, 0.00487518310546875, -0.035736083984375, 0.0158843994140625, 0.035125732421875, 0.045989990234375, -0.040740966796875, 0.004276275634765625, -0.01291656494140625, 0.03985595703125, 0.07757568359375, 0.09490966796875, 0.0162353515625, -0.08502197265625, -0.0232086181640625, 0.0010356903076171875, -0.06689453125, -0.0160980224609375, 0.044830322265625, -0.069091796875, -0.004638671875, -0.02178955078125, -0.0114898681640625, 0.042572021484375, -0.055694580078125, -0.017120361328125, -0.007568359375, -0.040283203125, -0.0032520294189453125, 0.009185791015625, -0.0338134765625, 0.00931549072265625, -0.0177154541015625, 0.006744384765625, 0.0035915374755859375, 0.024200439453125, 0.002750396728515625, 0.03326416015625, 0.01209259033203125, 0.01371002197265625, -0.053009033203125, 0.03564453125, -0.0045318603515625, 0.047393798828125, -0.06451416015625, -0.0153045654296875, -0.03662109375, 0.0150604248046875, 0.005329132080078125, 0.008209228515625, 0.006320953369140625, 0.0220794677734375, 0.01064300537109375, 0.054443359375, -0.01213836669921875, 0.0413818359375, 0.0219573974609375, 0.006320953369140625, -0.017181396484375, 0.01003265380859375, 0.0247344970703125, -0.05108642578125, -0.0189056396484375, 0.00836944580078125, 0.00826263427734375, -0.05096435546875, 0.025909423828125, -0.0032444000244140625, 0.0345458984375, 0.024169921875 ]
aa153362452d0a2cd400cd9883cb55ed41e6345b
Wordpress Stackexchange Q: How to delete custom field "suggestions" from dropdown list When you use a standard custom field in WP you have to write the name of the cusotm fields the first time. The second time you use a custom field it sticks to the custom fields dropdown list. But, sometimes when you install plugins they ise ALOT of custom fields. This list becomes a bit long an it may "push" som of my custom fields out of tghe list. So, does anyone know how I can remove custom fields from my dropdown list in any easy way? A: You can filter the query for these keys on'query'. I would start that filter as late as possible to avoid side effect. Sample code, tested: add_filter( 'postmeta_form_limit', 'wpse_73543_hide_meta_start' ); function wpse_73543_hide_meta_start( $num ) { add_filter( 'query', 'wpse_73543_hide_meta_filter' ); return $num; } function wpse_73543_hide_meta_filter( $query ) { // Protect further queries. remove_filter( current_filter(), __FUNCTION__ ); $forbidden = array ( 'the', 'keys', 'you', 'want', 'to', 'hide' ); $where = "WHERE meta_key NOT IN('" . join( "', '", $forbidden ) . "') "; $find = "GROUP BY"; $query = str_replace( $find, "$where\n$find", $query ); return $query; }
Q: How to delete custom field "suggestions" from dropdown list When you use a standard custom field in WP you have to write the name of the cusotm fields the first time. The second time you use a custom field it sticks to the custom fields dropdown list. But, sometimes when you install plugins they ise ALOT of custom fields. This list becomes a bit long an it may "push" som of my custom fields out of tghe list. So, does anyone know how I can remove custom fields from my dropdown list in any easy way? A: You can filter the query for these keys on'query'. I would start that filter as late as possible to avoid side effect. Sample code, tested: add_filter( 'postmeta_form_limit', 'wpse_73543_hide_meta_start' ); function wpse_73543_hide_meta_start( $num ) { add_filter( 'query', 'wpse_73543_hide_meta_filter' ); return $num; } function wpse_73543_hide_meta_filter( $query ) { // Protect further queries. remove_filter( current_filter(), __FUNCTION__ ); $forbidden = array ( 'the', 'keys', 'you', 'want', 'to', 'hide' ); $where = "WHERE meta_key NOT IN('" . join( "', '", $forbidden ) . "') "; $find = "GROUP BY"; $query = str_replace( $find, "$where\n$find", $query ); return $query; } A: There isn't a way to filter what appears there, you can see where it queries for keys and renders that field in the function meta_form() in wp-admin/includes/template.php, however you can see that it ignores any key prefixed with an underscore: HAVING meta_key NOT LIKE '\_%' this is what plugins should be doing with any meta keys they create to hide those keys from the menu. You'll also see a filter in there, postmeta_form_limit, which is set to 30 by default. You could increase this number so your keys at least get included in the list and don't fall off the end. Another option is to create your own meta box to manage specific meta data, rather than using the Custom Fields meta box.
wordpress
{ "language": "en", "length": 316, "provenance": "stackexchange_00019.jsonl.gz:426070", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73543" }
[ 0.004779815673828125, 0.01074981689453125, 0.003063201904296875, 0.040618896484375, 0.01105499267578125, -0.0237274169921875, 0.0445556640625, -0.0633544921875, -0.005130767822265625, 0.00731658935546875, -0.03302001953125, -0.03070068359375, 0.01007843017578125, -0.032928466796875, 0.0030002593994140625, -0.060333251953125, 0.0108489990234375, 0.008544921875, 0.013702392578125, -0.005603790283203125, 0.018402099609375, -0.01201629638671875, -0.0003821849822998047, -0.0037479400634765625, 0.006923675537109375, -0.034149169921875, 0.058135986328125, -0.0235137939453125, 0.0049285888671875, -0.01367950439453125, 0.01824951171875, 0.0038738250732421875, -0.01617431640625, 0.038787841796875, 0.01209259033203125, 0.0137786865234375, 0.005893707275390625, 0.021728515625, 0.022918701171875, 0.0218505859375, 0.0360107421875, -0.034759521484375, -0.051025390625, -0.0203094482421875, -0.021453857421875, -0.02557373046875, 0.05682373046875, -0.020660400390625, 0.01381683349609375, -0.01116943359375, 0.01154327392578125, 0.014190673828125, 0.0221710205078125, -0.03875732421875, -0.013153076171875, -0.021026611328125, -0.0179443359375, 0.0283660888671875, 0.0287628173828125, -0.0004467964172363281, -0.03216552734375, 0.009124755859375, 0.00530242919921875, -0.020355224609375, 0.007232666015625, -0.0012235641479492188, -0.00786590576171875, 0.0225677490234375, -0.0352783203125, -0.010986328125, 0.0218963623046875, -0.0208587646484375, 0.0229339599609375, -0.0141754150390625, -0.0189971923828125, -0.01483917236328125, 0.0148468017578125, -0.019134521484375, 0.0292510986328125, -0.01450347900390625, 0.0049896240234375, -0.005939483642578125, -0.043121337890625, 0.00720977783203125, -0.00295257568359375, 0.0249786376953125, -0.0193328857421875, -0.0147857666015625, 0.01029205322265625, 0.0041351318359375, -0.00563812255859375, -0.054962158203125, -0.0076141357421875, 0.060638427734375, 0.022003173828125, -0.005802154541015625, 0.0302276611328125, 0.055877685546875, -0.01442718505859375, -0.03662109375, 0.0010461807250976562, -0.02166748046875, -0.04034423828125, -0.01065826416015625, 0.004486083984375, 0.01434326171875, -0.032318115234375, -0.00788116455078125, 0.033203125, 0.0545654296875, 0.0166168212890625, -0.052490234375, 0.019012451171875, -0.006458282470703125, -0.04144287109375, -0.0158843994140625, 0.0106201171875, -0.0284423828125, -0.0104827880859375, -0.03314208984375, -0.0008401870727539062, -0.00804901123046875, 0.01013946533203125, -0.0264434814453125, 0.0205230712890625, -0.0176849365234375, -0.06011962890625, 0.017547607421875, -0.0289306640625, 0.041534423828125, -0.062469482421875, 0.01136016845703125, 0.10382080078125, 0.035369873046875, 0.01409912109375, -0.03546142578125, 0.0185089111328125, -0.0041046142578125, 0.03253173828125, 0.0064544677734375, 0.01153564453125, -0.0176849365234375, 0.01183319091796875, 0.0085906982421875, 0.01885986328125, 0.0232086181640625, 0.023590087890625, 0.0013780593872070312, 0.0038204193115234375, -0.0277862548828125, -0.020782470703125, 0.01007843017578125, 0.07720947265625, -0.00971221923828125, -0.0439453125, 0.01210784912109375, 0.07012939453125, -0.0404052734375, -0.07415771484375, -0.07537841796875, -0.004405975341796875, -0.0137176513671875, -0.0050506591796875, -0.07098388671875, -0.07305908203125, 0.004589080810546875, -0.032684326171875, -0.0049591064453125, 0.01169586181640625, -0.040679931640625, 0.034393310546875, -0.018402099609375, 0.01163482666015625, -0.007564544677734375, 0.0146942138671875, 0.0151214599609375, 0.01393890380859375, 0.04510498046875, 0.0118408203125, 0.034820556640625, -0.005764007568359375, -0.034881591796875, 0.0699462890625, -0.0330810546875, -0.10357666015625, 0.07965087890625, 0.00262451171875, 0.08709716796875, 0.0207672119140625, -0.0027446746826171875, 0.095947265625, 0.01528167724609375, 0.0092315673828125, -0.029998779296875, 0.0216522216796875, -0.0203399658203125, -0.004825592041015625, -0.02545166015625, 0.0121917724609375, 0.01206207275390625, -0.01824951171875, 0.017425537109375, -0.008331298828125, 0.024505615234375, -0.067626953125, 0.031890869140625, -0.03936767578125, 0.043426513671875, -0.06390380859375, 0.0008869171142578125, 0.03936767578125, -0.01273345947265625, -0.038909912109375, 0.040130615234375, 0.010284423828125, -0.0124053955078125, 0.002834320068359375, -0.0011625289916992188, 0.00927734375, -0.011932373046875, 0.033416748046875, -0.051910400390625, 0.00618743896484375, 0.02886962890625, 0.0443115234375, 0.0099639892578125, -0.0228271484375, -0.01024627685546875, 0.05633544921875, -0.01120758056640625, 0.009613037109375, 0.0450439453125, 0.037200927734375, 0.0179901123046875, -0.01274871826171875, 0.00861358642578125, 0.02886962890625, -0.09088134765625, -0.0022335052490234375, 0.049530029296875, 0.0283355712890625, 0.04144287109375, -0.01560211181640625, 0.0046234130859375, 0.083740234375, -0.0235137939453125, -0.00402069091796875, 0.00104522705078125, 0.039703369140625, 0.03021240234375, 0.0004661083221435547, -0.035980224609375, 0.03369140625, 0.0127105712890625, 0.05157470703125, -0.01071929931640625, -0.0282745361328125, -0.0224609375, 0.028472900390625, -0.021636962890625, 0.00882720947265625, -0.056427001953125, -0.0330810546875, -0.00885009765625, 0.08172607421875, -0.01482391357421875, 0.0411376953125, 0.032562255859375, -0.0208282470703125, -0.00463104248046875, 0.01800537109375, -0.00815582275390625, -0.00913238525390625, -0.04278564453125, 0.00045037269592285156, -0.02716064453125, -0.04827880859375, 0.043426513671875, 0.016998291015625, -0.045501708984375, -0.0017137527465820312, 0.02667236328125, -0.01358795166015625, -0.01537322998046875, 0.0032787322998046875, -0.02130126953125, 0.01544952392578125, 0.01020050048828125, 0.029205322265625, -0.006687164306640625, 0.0171051025390625, 0.01232147216796875, 0.003818511962890625, 0.0213470458984375, 0.016204833984375, -0.038055419921875, 0.0205230712890625, -0.0086822509765625, 0.0229644775390625, -0.023895263671875, 0.013275146484375, 0.048370361328125, -0.01099395751953125, 0.00243377685546875, -0.006458282470703125, -0.01361083984375, -0.0362548828125, 0.022979736328125, -0.00496673583984375, 0.00862884521484375, -0.0833740234375, 0.005207061767578125, 0.0294342041015625, 0.017669677734375, 0.0164031982421875, -0.0240478515625, -0.0012884140014648438, 0.031494140625, -0.058441162109375, -0.0298309326171875, 0.047027587890625, 0.0080413818359375, -0.06298828125, -0.016143798828125, -0.026123046875, 0.0276947021484375, -0.04736328125, -0.024383544921875, 0.035919189453125, -0.04107666015625, -0.056060791015625, -0.04046630859375, -0.06524658203125, -0.01560211181640625, 0.01525115966796875, 0.00279998779296875, -0.0022792816162109375, 0.100341796875, 0.0038585662841796875, -0.048248291015625, 0.00021004676818847656, 0.0020923614501953125, -0.0021610260009765625, 0.024261474609375, 0.032623291015625, -0.02166748046875, 0.028533935546875, 0.005924224853515625, 0.049346923828125, 0.03900146484375, -0.034942626953125, -0.0335693359375, 0.003204345703125, 0.01415252685546875, 0.053863525390625, -0.0259857177734375, -0.032958984375, 0.0455322265625, 0.0528564453125, -0.01465606689453125, -0.02410888671875, -0.003025054931640625, -0.01763916015625, 0.019378662109375, 0.0015716552734375, 0.0021800994873046875, -0.010101318359375, 0.057586669921875, 0.0465087890625, 0.029022216796875, -0.004131317138671875, -0.0095367431640625, 0.01503753662109375, 0.0299224853515625, 0.07635498046875, -0.02508544921875, 0.04559326171875, -0.0132598876953125, 0.00148773193359375, 0.020050048828125, 0.0105438232421875, 0.027069091796875, -0.049072265625, -0.013763427734375, -0.042236328125, 0.061309814453125, 0.028778076171875, 0.0198974609375, -0.01593017578125, -0.0504150390625, -0.0040435791015625, 0.0855712890625, -0.03851318359375, -0.038665771484375, -0.01560211181640625, -0.0023059844970703125, 0.0088043212890625, 0.007190704345703125, -0.0003032684326171875, -0.0216064453125, -0.1409912109375, 0.03692626953125, 0.01104736328125, -0.050018310546875, -0.01232147216796875, 0.0014743804931640625, -0.08294677734375, -0.04901123046875, 0.017974853515625, -0.03955078125, 0.019439697265625, -0.013458251953125, 0.0028076171875, -0.04547119140625, 0.00948333740234375, -0.043243408203125, -0.041900634765625, -0.010589599609375, -0.02252197265625, 0.043548583984375, -0.0031566619873046875, 0.00849151611328125, -0.0239715576171875, 0.037200927734375, 0.027496337890625, -0.003475189208984375, -0.0014238357543945312, -0.034332275390625, 0.009002685546875, 0.014251708984375, 0.004558563232421875, -0.007053375244140625, -0.0172119140625, -0.01187896728515625, -0.007770538330078125, 0.01849365234375, -0.01306915283203125, 0.00836181640625, 0.00858306884765625, -0.01702880859375, -0.007495880126953125, -0.00556182861328125, -0.06378173828125, 0.0072479248046875, -0.0545654296875, 0.01009368896484375, 0.006565093994140625, -0.033538818359375, 0.0252685546875, -0.020538330078125, -0.0003151893615722656, 0.0159759521484375, 0.049957275390625, 0.0009002685546875, -0.01184844970703125, -0.0654296875, -0.042236328125, 0.01401519775390625, 0.0105743408203125, 0.056732177734375, 0.0004317760467529297, -0.0047149658203125, 0.06915283203125, -0.0216522216796875, -0.00679779052734375, -0.04632568359375, 0.06640625, -0.0245361328125, -0.0149078369140625, 0.0108489990234375, -0.051513671875, 0.047760009765625, 0.0192108154296875, 0.0174407958984375, -0.03997802734375, 0.027191162109375, 0.03692626953125, 0.0005617141723632812, -0.004055023193359375, -0.0198516845703125, -0.050384521484375, 0.0201873779296875, -0.02423095703125, 0.0255584716796875, 0.00017392635345458984, 0.0008311271667480469, 0.0275421142578125, 0.006298065185546875, 0.0283966064453125, -0.0338134765625, -0.00860595703125, -0.045745849609375, 0.040313720703125, -0.01324462890625, -0.006450653076171875, 0.0006361007690429688, -0.0131072998046875, 0.064208984375, -0.032989501953125, -0.08001708984375, 0.00605010986328125, -0.0252532958984375, 0.016815185546875, 0.0462646484375, 0.0117034912109375, 0.01678466796875, 0.038604736328125, -0.0076446533203125, 0.01084136962890625, -0.00458526611328125, 0.038330078125, -0.034332275390625, 0.023590087890625, 0.00818634033203125, 0.00421905517578125, -0.0011739730834960938, 0.0880126953125, -0.0313720703125, 0.0592041015625, -0.014312744140625, 0.03631591796875, 0.01042938232421875, 0.031158447265625, 0.00719451904296875, -0.00980377197265625, 0.0159759521484375, -0.018463134765625, -0.00766754150390625, -0.0038909912109375, -0.027984619140625, 0.01015472412109375, 0.006015777587890625, -0.01114654541015625, 0.00905609130859375, 0.0193939208984375, 0.01218414306640625, -0.02069091796875, 0.0266571044921875, 0.0109100341796875, -0.036102294921875, -0.0038604736328125, -0.0090484619140625, -0.01654052734375, -0.016021728515625, 0.0149078369140625, -0.026123046875, -0.0275726318359375, -0.023284912109375, -0.03143310546875, -0.00853729248046875, -0.0307159423828125, -0.024017333984375, -0.01306915283203125, 0.01507568359375, 0.01038360595703125, -0.04095458984375, -0.055023193359375, 0.005710601806640625, -0.01367950439453125, 0.01480865478515625, -0.0183868408203125, 0.03515625, -0.007564544677734375, -0.01224517822265625, 0.001949310302734375, -0.002422332763671875, 0.04559326171875, 0.0213165283203125, -0.030029296875, -0.01397705078125, -0.015380859375, -0.006420135498046875, 0.0015192031860351562, -0.036712646484375, -0.0117034912109375, 0.00017642974853515625, 0.012603759765625, 0.01253509521484375, 0.0005435943603515625, -0.0294647216796875, 0.0002727508544921875, 0.00800323486328125, -0.0034961700439453125, -0.0045013427734375, -0.0235748291015625, 0.050872802734375, 0.0230560302734375, 0.035247802734375, 0.016998291015625, 0.0283966064453125, 0.0107269287109375, -0.02947998046875, -0.0080108642578125, -0.06689453125, -0.020111083984375, 0.004039764404296875, -0.044677734375, 0.060882568359375, 0.04730224609375, 0.007350921630859375, 0.021881103515625, -0.0256500244140625, 0.000133514404296875, -0.028106689453125, 0.041259765625, -0.02166748046875, -0.0006017684936523438, 0.0239410400390625, -0.03521728515625, 0.004253387451171875, 0.01355743408203125, -0.0204315185546875, 0.03955078125, -0.01242828369140625, 0.0210113525390625, 0.031646728515625, -0.00951385498046875, 0.044158935546875, 0.0355224609375, -0.00508880615234375, 0.046844482421875, 0.007282257080078125, 0.0173187255859375, 0.00853729248046875, 0.0023956298828125, -0.027252197265625, -0.0089263916015625, 0.049774169921875, -0.0050201416015625, -0.02197265625, 0.046630859375, -0.020416259765625, -0.003604888916015625, 0.056060791015625, 0.050872802734375, -0.09490966796875, 0.01396942138671875, 0.0268707275390625, 0.04803466796875, 0.045654296875, 0.017730712890625, -0.01434326171875, -0.007503509521484375, -0.035614013671875, 0.0181732177734375, -0.0207061767578125, 0.00910186767578125, 0.0462646484375, -0.004604339599609375, 0.0021305084228515625, -0.00870513916015625, -0.006595611572265625, 0.015777587890625, -0.024871826171875, -0.01788330078125, -0.0010175704956054688, -0.0098876953125, 0.01239013671875, 0.011810302734375, -0.03900146484375, -0.0767822265625, -0.0153045654296875, 0.00550079345703125, -0.032196044921875, 0.035552978515625, 0.045562744140625, 0.031097412109375, 0.045928955078125, 0.0187835693359375, 0.01123809814453125, 0.000728607177734375, 0.006443023681640625, -0.0148468017578125, -0.046051025390625, 0.00201416015625, 0.0106201171875, -0.037689208984375, 0.0274505615234375, -0.0034637451171875, -0.042022705078125, -0.01050567626953125, 0.004375457763671875, 0.077392578125, -0.02838134765625, -0.0184783935546875, 0.0100250244140625, 0.022613525390625, -0.006893157958984375, -0.0134124755859375, 0.0225830078125, 0.0004901885986328125, 0.025390625, -0.0198516845703125, -0.0234222412109375, -0.0135498046875, -0.042877197265625, -0.062255859375, 0.07763671875, -0.005664825439453125, 0.0167083740234375, 0.005588531494140625, 0.024871826171875, -0.03814697265625, 0.00457000732421875, -0.025543212890625, 0.07568359375, -0.0031604766845703125, 0.0260162353515625, -0.048675537109375, -0.01294708251953125, 0.006153106689453125, 0.02874755859375, 0.0161285400390625, 0.003040313720703125, 0.0099029541015625, -0.0131378173828125, 0.048492431640625, 0.05364990234375, 0.0022029876708984375, -0.0005388259887695312, 0.0017366409301757812, 0.07305908203125, 0.06707763671875, -0.05535888671875, 0.0352783203125, 0.0026531219482421875, -0.01385498046875, 0.019287109375, 0.00000762939453125, 0.00229644775390625, -0.01129150390625, 0.0205230712890625, 0.0275421142578125, -0.0232391357421875, -0.013702392578125, 0.017730712890625, 0.00145721435546875, 0.0328369140625, 0.0243072509765625, -0.0364990234375, -0.02203369140625, -0.0150909423828125, 0.034759521484375, 0.0209808349609375, 0.062744140625, 0.03765869140625, 0.032257080078125, 0.044464111328125, -0.03515625, 0.04443359375, 0.0166778564453125, -0.056549072265625, 0.0261383056640625, 0.01395416259765625, -0.0048370361328125, -0.02691650390625, 0.07025146484375, 0.037506103515625, 0.034027099609375, -0.057952880859375, -0.061614990234375, 0.00638580322265625, 0.0012311935424804688, 0.004161834716796875, 0.006961822509765625, -0.01531982421875, 0.02520751953125, 0.06536865234375, -0.0195159912109375, 0.01068115234375, 0.0210113525390625, 0.0030460357666015625, 0.00420379638671875, 0.0202789306640625, -0.0221710205078125, 0.005828857421875, -0.05181884765625, 0.008331298828125, -0.0118865966796875, 0.03570556640625, 0.055389404296875, 0.037994384765625, 0.037994384765625, -0.0197296142578125, -0.025848388671875, 0.041259765625, 0.010345458984375, 0.01497650146484375, -0.033660888671875, -0.0300445556640625, 0.0284576416015625, 0.0159454345703125, 0.02752685546875, 0.01422882080078125, 0.036712646484375, 0.006687164306640625, -0.0308837890625, -0.002231597900390625, 0.005611419677734375, -0.0283660888671875, -0.0254669189453125, -0.02777099609375, -0.0081939697265625, 0.0300750732421875, -0.0026035308837890625, 0.006008148193359375, 0.000316619873046875, 0.032135009765625, 0.01499176025390625, 0.0106048583984375, 0.0081024169921875, -0.026153564453125, 0.0224456787109375, -0.024810791015625, 0.030609130859375, 0.01035308837890625, -0.04901123046875, 0.005184173583984375, -0.041961669921875, -0.033905029296875, 0.00960540771484375, 0.0274810791015625, -0.0105743408203125, 0.0235748291015625, 0.037109375, -0.035064697265625, 0.000045239925384521484, 0.016876220703125, 0.01617431640625, -0.0118560791015625, 0.0033550262451171875, -0.00603485107421875, -0.03961181640625, -0.0300445556640625, 0.018585205078125, 0.036102294921875, -0.0185546875, 0.02716064453125, 0.0020904541015625, 0.01641845703125, -0.05657958984375, -0.004253387451171875, -0.005519866943359375, -0.018157958984375, 0.03594970703125, 0.0335693359375, -0.0270843505859375, -0.02056884765625, 0.00690460205078125, 0.004199981689453125, 0.04644775390625, -0.045806884765625, -0.0016584396362304688, 0.00024056434631347656, 0.01415252685546875, -0.03973388671875, -0.0222625732421875, -0.024078369140625, 0.00975799560546875, 0.020721435546875, -0.005695343017578125, 0.02508544921875, 0.01216888427734375, 0.00274658203125, -0.007564544677734375, 0.0140380859375, -0.0233154296875, 0.0369873046875, 0.0009608268737792969, 0.0643310546875, 0.0504150390625, -0.046173095703125, -0.004802703857421875, 0.00959014892578125, -0.0119476318359375, -0.0010251998901367188, 0.02508544921875, -0.019195556640625, 0.03607177734375, -0.0237274169921875, -0.012420654296875, -0.0217437744140625, 0.012603759765625, -0.04437255859375, -0.0015926361083984375, -0.0146484375, 0.0176239013671875, 0.00701141357421875, -0.0010061264038085938, -0.0190277099609375, -0.0190582275390625, -0.0343017578125, 0.006771087646484375, -0.036163330078125, -0.051666259765625, -0.0755615234375, 0.0098876953125, 0.04864501953125, 0.025360107421875, -0.07293701171875, 0.0382080078125, -0.013153076171875, 0.03363037109375, 0.0136260986328125, 0.01021575927734375, -0.00774383544921875, 0.03173828125, -0.0013494491577148438, -0.006938934326171875, -0.0110321044921875, 0.044281005859375, 0.01959228515625, -0.0122222900390625, 0.00902557373046875, 0.00360107421875, -0.0161895751953125, -0.00464630126953125, -0.0067596435546875, 0.0169830322265625, 0.00836944580078125, -0.016387939453125, 0.0019931793212890625, 0.00634765625, -0.0264892578125, -0.045318603515625, 0.0196990966796875, -0.035797119140625, -0.01287841796875, -0.0118865966796875, 0.024749755859375, 0.03436279296875, -0.035491943359375, -0.11480712890625, 0.0872802734375, -0.0421142578125, -0.0303497314453125, -0.00818634033203125, -0.0066986083984375, -0.002071380615234375, 0.03509521484375, 0.0169830322265625, -0.0391845703125, -0.024688720703125, 0.01093292236328125, 0.0019292831420898438, 0.0302276611328125, 0.0214385986328125, -0.0016689300537109375, -0.047271728515625, 0.01216888427734375, -0.01058197021484375, 0.0103302001953125, -0.0032444000244140625, 0.03289794921875, 0.01161956787109375, 0.03369140625, -0.0321044921875, 0.005451202392578125, -0.0117950439453125, -0.005950927734375, 0.0081634521484375, -0.035736083984375, -0.04486083984375, -0.01513671875, 0.070556640625, 0.0345458984375, 0.023284912109375, -0.034027099609375, -0.0198516845703125, -0.0234527587890625, -0.006206512451171875, -0.03857421875, 0.0097503662109375, -0.093505859375, -0.048492431640625, 0.00165557861328125, -0.0111846923828125, 0.0227508544921875, -0.00019216537475585938, -0.0199737548828125, 0.007617950439453125, 0.04364013671875, 0.00817108154296875, -0.0679931640625, 0.062347412109375, 0.01934814453125, -0.047698974609375, -0.033355712890625, -0.005397796630859375, -0.029937744140625, -0.00853729248046875, -0.0325927734375, -0.0208587646484375, -0.07421875, 0.02557373046875, 0.050689697265625, -0.020843505859375, 0.0175323486328125, -0.02569580078125, -0.0299530029296875, -0.037322998046875, 0.0235137939453125, 0.01210784912109375, 0.007030487060546875, -0.053375244140625, 0.040191650390625, 0.0310821533203125, 0.0229949951171875, -0.037750244140625, 0.0391845703125, -0.0220947265625, 0.01093292236328125, 0.038818359375, -0.004779815673828125, 0.09661865234375, -0.01318359375, -0.0063018798828125, -0.0229339599609375, -0.029144287109375, -0.041900634765625, -0.0020809173583984375, 0.0134735107421875, -0.0290985107421875, 0.022186279296875 ]
676ae1ccdba54e75192421c77d42e8d22b22c6c0
Wordpress Stackexchange Q: How to add to cart via AJAX Woocommerce I have been searching for a while, this. I want to add an item via AJAX. When you add an item to a cart in Woocommerce the page reloads with the GET parameter add-to-cart="The current product ID". I want to do it via AJAX. In the admin area is a checkbox to enable that featured that is labeled "Enable AJAX buttons to add to cart on the product list" But it doesn't do anything, it stills reloading the page. A: are we talking about the single product view or the product archive pages (shop,categories)? because the text beside the checkbox/option states, roughly translated: »activate ajax-checkout-button on product archive pages« and on all the installations i did so for, that is the way its working - ajax checkout on the archives, but not on the single view. the latter you have to implement yourself or maybe you find a free plugin for that. Follow up: A basic example on how to use AJAX for the »add-to-cart«-functionality of woocommerce can be found here: Woocommerce - Add a product to cart programmatically via JS or PHP.
Q: How to add to cart via AJAX Woocommerce I have been searching for a while, this. I want to add an item via AJAX. When you add an item to a cart in Woocommerce the page reloads with the GET parameter add-to-cart="The current product ID". I want to do it via AJAX. In the admin area is a checkbox to enable that featured that is labeled "Enable AJAX buttons to add to cart on the product list" But it doesn't do anything, it stills reloading the page. A: are we talking about the single product view or the product archive pages (shop,categories)? because the text beside the checkbox/option states, roughly translated: »activate ajax-checkout-button on product archive pages« and on all the installations i did so for, that is the way its working - ajax checkout on the archives, but not on the single view. the latter you have to implement yourself or maybe you find a free plugin for that. Follow up: A basic example on how to use AJAX for the »add-to-cart«-functionality of woocommerce can be found here: Woocommerce - Add a product to cart programmatically via JS or PHP.
wordpress
{ "language": "en", "length": 192, "provenance": "stackexchange_00019.jsonl.gz:426074", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73556" }
[ 0.05889892578125, 0.004932403564453125, -0.0288848876953125, -0.06304931640625, 0.0305633544921875, -0.027252197265625, 0.0239715576171875, 0.006763458251953125, 0.0261993408203125, 0.0205841064453125, -0.057952880859375, -0.0202789306640625, -0.01006317138671875, -0.00530242919921875, -0.03533935546875, -0.039337158203125, 0.04290771484375, -0.0294342041015625, 0.0067596435546875, -0.0022678375244140625, -0.0196380615234375, 0.037933349609375, 0.021148681640625, 0.07098388671875, 0.00487518310546875, 0.0467529296875, 0.05938720703125, -0.0184173583984375, 0.033111572265625, 0.001995086669921875, 0.029083251953125, -0.05645751953125, 0.034271240234375, -0.004863739013671875, -0.00664520263671875, 0.00865936279296875, 0.0291595458984375, -0.007228851318359375, 0.00726318359375, 0.037994384765625, 0.04290771484375, -0.032196044921875, 0.012451171875, 0.00414276123046875, -0.01024627685546875, -0.01210784912109375, 0.0205230712890625, -0.0379638671875, 0.00989532470703125, -0.033721923828125, 0.0018491744995117188, 0.0233001708984375, 0.026336669921875, -0.05413818359375, -0.0185089111328125, -0.0155792236328125, -0.04852294921875, 0.036865234375, 0.03009033203125, 0.0011348724365234375, -0.0220489501953125, -0.022003173828125, 0.01413726806640625, -0.00714874267578125, 0.019927978515625, 0.01288604736328125, 0.01265716552734375, 0.018310546875, -0.06585693359375, 0.01331329345703125, 0.041015625, -0.05499267578125, 0.00397491455078125, 0.0216522216796875, -0.033843994140625, -0.05609130859375, 0.029266357421875, -0.0300750732421875, 0.016143798828125, 0.019775390625, 0.035888671875, 0.03839111328125, 0.0113372802734375, -0.038116455078125, 0.01543426513671875, -0.03057861328125, -0.00818634033203125, -0.0170745849609375, -0.0295257568359375, -0.05975341796875, -0.0241241455078125, -0.058502197265625, -0.043487548828125, -0.0005245208740234375, -0.02386474609375, -0.033599853515625, 0.0006022453308105469, 0.0101165771484375, 0.053985595703125, 0.043609619140625, -0.00290679931640625, -0.056243896484375, 0.07574462890625, -0.051483154296875, -0.005374908447265625, -0.00794219970703125, 0.01140594482421875, 0.02203369140625, 0.043243408203125, 0.01027679443359375, -0.0220794677734375, 0.056488037109375, 0.0222625732421875, -0.0018186569213867188, -0.007625579833984375, -0.0222015380859375, -0.034454345703125, 0.040252685546875, 0.004024505615234375, -0.0012683868408203125, -0.0100555419921875, 0.01525115966796875, -0.0210418701171875, 0.04046630859375, -0.0172882080078125, -0.010589599609375, 0.006839752197265625, -0.01873779296875, -0.02020263671875, -0.01849365234375, -0.043304443359375, 0.03753662109375, 0.10076904296875, 0.05816650390625, 0.0218048095703125, 0.0027103424072265625, 0.034698486328125, 0.0162506103515625, 0.031005859375, -0.0173187255859375, 0.047332763671875, -0.00811767578125, -0.0264892578125, 0.027099609375, 0.024139404296875, 0.00356292724609375, 0.003559112548828125, 0.028778076171875, 0.00933837890625, -0.005023956298828125, 0.0160369873046875, -0.01058197021484375, 0.0153656005859375, 0.0255279541015625, 0.034210205078125, 0.035797119140625, 0.05096435546875, -0.01186370849609375, -0.0247802734375, -0.007511138916015625, 0.01448822021484375, -0.0013933181762695312, 0.006916046142578125, -0.003528594970703125, -0.0276947021484375, 0.0046539306640625, -0.03399658203125, -0.0016584396362304688, 0.031494140625, 0.07354736328125, 0.00681304931640625, -0.026214599609375, 0.0249481201171875, -0.002227783203125, -0.033538818359375, -0.01202392578125, 0.0019044876098632812, 0.048431396484375, 0.0369873046875, 0.004180908203125, -0.017303466796875, -0.0271759033203125, 0.1094970703125, -0.045013427734375, -0.027435302734375, 0.06500244140625, 0.0179595947265625, 0.052337646484375, -0.039703369140625, 0.0066070556640625, 0.0225677490234375, 0.06353759765625, -0.00899505615234375, -0.01490020751953125, 0.00492095947265625, -0.0301361083984375, -0.0143585205078125, -0.028350830078125, -0.0157928466796875, 0.032684326171875, 0.056610107421875, -0.0012350082397460938, 0.0279693603515625, -0.020355224609375, -0.041229248046875, 0.01374053955078125, -0.007678985595703125, 0.0323486328125, -0.0194854736328125, 0.002834320068359375, 0.03375244140625, 0.0279083251953125, -0.0252685546875, -0.05889892578125, -0.00550079345703125, 0.0250396728515625, -0.050445556640625, 0.09637451171875, -0.0186309814453125, 0.08331298828125, -0.0035800933837890625, -0.0626220703125, 0.0135955810546875, -0.034515380859375, 0.0291290283203125, 0.01873779296875, -0.02313232421875, -0.0025691986083984375, 0.021209716796875, 0.02215576171875, -0.0150604248046875, 0.01488494873046875, 0.03057861328125, 0.017730712890625, -0.0321044921875, -0.0295257568359375, -0.04071044921875, -0.10845947265625, 0.01097869873046875, 0.08209228515625, 0.024749755859375, 0.031982421875, 0.01092529296875, 0.043426513671875, 0.053070068359375, -0.0157623291015625, 0.00980377197265625, 0.0113525390625, -0.02044677734375, 0.015960693359375, -0.00214385986328125, 0.02362060546875, 0.0140533447265625, 0.0012645721435546875, 0.003662109375, 0.039306640625, -0.02337646484375, -0.01479339599609375, -0.0229339599609375, 0.005489349365234375, -0.006145477294921875, -0.0216827392578125, 0.0029544830322265625, -0.0138397216796875, 0.0457763671875, 0.01323699951171875, 0.05694580078125, 0.0283050537109375, -0.00013947486877441406, -0.00809478759765625, -0.0081634521484375, -0.033416748046875, 0.003452301025390625, 0.042236328125, -0.00577545166015625, -0.00911712646484375, -0.041778564453125, -0.0001475811004638672, 0.042633056640625, 0.0089874267578125, 0.0051727294921875, 0.005702972412109375, 0.036041259765625, -0.006053924560546875, 0.03424072265625, -0.05078125, 0.017669677734375, 0.0052337646484375, -0.034820556640625, -0.01116180419921875, 0.03570556640625, -0.00010120868682861328, -0.047607421875, 0.0149688720703125, -0.038421630859375, -0.01541900634765625, 0.03961181640625, 0.0148162841796875, 0.0102081298828125, -0.018402099609375, 0.0225067138671875, 0.0201873779296875, -0.0276641845703125, 0.006900787353515625, 0.01364898681640625, -0.027069091796875, 0.033477783203125, -0.010040283203125, -0.01568603515625, 0.032928466796875, -0.08477783203125, 0.02020263671875, 0.0310516357421875, 0.043304443359375, 0.0030078887939453125, -0.035858154296875, 0.009521484375, 0.0261688232421875, -0.08795166015625, -0.12078857421875, -0.0389404296875, -0.088623046875, 0.02471923828125, -0.01030731201171875, -0.036346435546875, -0.00286865234375, 0.0341796875, 0.027496337890625, -0.03839111328125, -0.02008056640625, 0.01447296142578125, -0.045501708984375, -0.0205841064453125, -0.0083465576171875, 0.00414276123046875, -0.01108551025390625, -0.003131866455078125, 0.018585205078125, -0.025604248046875, -0.041900634765625, -0.01180267333984375, 0.0181884765625, 0.01358795166015625, -0.0134124755859375, 0.05242919921875, -0.059112548828125, -0.0284271240234375, -0.0003457069396972656, 0.033599853515625, 0.025177001953125, -0.0338134765625, 0.0029659271240234375, -0.0192108154296875, -0.0172882080078125, 0.00897979736328125, 0.00414276123046875, 0.0185089111328125, -0.0012350082397460938, 0.031097412109375, -0.04302978515625, -0.02789306640625, 0.0139617919921875, -0.031890869140625, -0.03558349609375, 0.005443572998046875, -0.00946807861328125, -0.0028743743896484375, -0.01096343994140625, 0.017974853515625, 0.01419830322265625, 0.00579833984375, -0.00262451171875, -0.00473785400390625, -0.005126953125, -0.00946807861328125, -0.026458740234375, 0.057830810546875, -0.001983642578125, 0.0257568359375, 0.042572021484375, 0.024017333984375, 0.00478363037109375, 0.006381988525390625, -0.0249481201171875, -0.056549072265625, 0.0253753662109375, -0.024505615234375, 0.0230255126953125, -0.0185546875, -0.0186309814453125, 0.0086517333984375, 0.08953857421875, -0.0014677047729492188, -0.037841796875, -0.0144195556640625, 0.0252227783203125, -0.031341552734375, -0.05291748046875, 0.020172119140625, -0.0223388671875, -0.0307464599609375, 0.0109405517578125, -0.00858306884765625, -0.0176239013671875, 0.002613067626953125, -0.0294036865234375, -0.01204681396484375, -0.029266357421875, 0.0445556640625, -0.09356689453125, 0.027679443359375, 0.039520263671875, 0.01090240478515625, -0.00018274784088134766, -0.02642822265625, -0.0528564453125, -0.03533935546875, -0.014129638671875, 0.01529693603515625, 0.0282135009765625, -0.01294708251953125, -0.0139312744140625, -0.0292205810546875, 0.02777099609375, -0.0163116455078125, 0.033660888671875, -0.02777099609375, 0.0267181396484375, -0.01030731201171875, -0.046356201171875, -0.025360107421875, -0.039886474609375, -0.00849151611328125, -0.0218963623046875, 0.00652313232421875, -0.0020656585693359375, -0.0311737060546875, -0.0236663818359375, -0.00506591796875, -0.01702880859375, -0.11279296875, -0.05218505859375, -0.009002685546875, 0.01001739501953125, -0.0003941059112548828, -0.00972747802734375, -0.03619384765625, -0.08367919921875, 0.020965576171875, -0.0302581787109375, -0.023040771484375, 0.01157379150390625, 0.05609130859375, 0.0219573974609375, 0.007602691650390625, 0.000039637088775634766, 0.024505615234375, 0.01435089111328125, 0.0160675048828125, 0.02838134765625, -0.03826904296875, 0.006072998046875, 0.021026611328125, -0.02911376953125, 0.023193359375, -0.019256591796875, 0.07177734375, -0.00528717041015625, -0.00612640380859375, 0.0251617431640625, -0.0024204254150390625, -0.03082275390625, -0.032684326171875, -0.038177490234375, 0.0195770263671875, -0.0009245872497558594, 0.007335662841796875, -0.029144287109375, 0.051971435546875, 0.0033969879150390625, -0.025360107421875, 0.005035400390625, 0.01187896728515625, 0.0286407470703125, 0.0258331298828125, -0.003986358642578125, 0.0147247314453125, -0.0005035400390625, -0.0007581710815429688, 0.00507354736328125, -0.007411956787109375, -0.006679534912109375, 0.0041351318359375, 0.010589599609375, -0.00287628173828125, 0.008392333984375, -0.0007710456848144531, -0.01026153564453125, 0.0047454833984375, -0.0294647216796875, -0.041351318359375, -0.00321197509765625, -0.00397491455078125, -0.00777435302734375, -0.0209503173828125, 0.01500701904296875, 0.0029811859130859375, -0.01093292236328125, 0.01136016845703125, -0.041534423828125, -0.01192474365234375, -0.034820556640625, 0.0426025390625, 0.022705078125, -0.0001767873764038086, 0.0129241943359375, 0.045867919921875, 0.03948974609375, 0.01409149169921875, -0.0167236328125, 0.041900634765625, 0.036529541015625, 0.0523681640625, 0.039215087890625, -0.055633544921875, -0.007038116455078125, 0.00942230224609375, -0.0237579345703125, -0.0214996337890625, -0.01114654541015625, 0.0160064697265625, 0.01270294189453125, -0.0149383544921875, -0.007274627685546875, 0.0198211669921875, 0.000054001808166503906, -0.01837158203125, -0.011474609375, -0.0143280029296875, -0.004375457763671875, -0.015716552734375, -0.0252838134765625, -0.00977325439453125, 0.01678466796875, -0.0027675628662109375, 0.026214599609375, -0.028533935546875, 0.0211181640625, 0.024383544921875, 0.0208740234375, -0.03216552734375, -0.03485107421875, -0.014892578125, -0.0187225341796875, 0.0253753662109375, -0.04266357421875, 0.0244903564453125, -0.04730224609375, -0.0259857177734375, 0.07220458984375, -0.00272369384765625, 0.046539306640625, -0.01526641845703125, -0.04083251953125, 0.01474761962890625, -0.0012445449829101562, 0.0526123046875, 0.01375579833984375, 0.01108551025390625, -0.047821044921875, -0.042083740234375, -0.06475830078125, -0.04132080078125, -0.00405120849609375, -0.0312042236328125, 0.025726318359375, 0.0010271072387695312, 0.0226287841796875, -0.038482666015625, -0.04449462890625, 0.003940582275390625, 0.0022602081298828125, -0.00110626220703125, 0.0170135498046875, 0.0247344970703125, 0.027496337890625, -0.031341552734375, 0.058013916015625, 0.00807952880859375, -0.0086669921875, -0.03167724609375, -0.026611328125, -0.01861572265625, -0.0232086181640625, 0.0070037841796875, 0.0007872581481933594, -0.01360321044921875, 0.01227569580078125, 0.04840087890625, 0.00039315223693847656, -0.039764404296875, -0.016845703125, -0.00922393798828125, -0.029815673828125, 0.07684326171875, 0.03802490234375, -0.0243377685546875, 0.0135040283203125, -0.04132080078125, 0.0167236328125, 0.03814697265625, 0.035308837890625, -0.01288604736328125, -0.035186767578125, -0.000858306884765625, 0.0224456787109375, -0.0287628173828125, 0.037200927734375, 0.09368896484375, 0.014892578125, 0.057464599609375, 0.0029239654541015625, 0.0175018310546875, 0.032806396484375, 0.03961181640625, -0.0294342041015625, -0.039703369140625, 0.03045654296875, 0.00629425048828125, -0.0279388427734375, 0.0211639404296875, -0.022186279296875, 0.02044677734375, 0.0172882080078125, 0.041748046875, -0.06524658203125, 0.0163726806640625, -0.0004096031188964844, -0.0007014274597167969, 0.03607177734375, -0.01708984375, 0.0242462158203125, -0.018218994140625, 0.0567626953125, 0.018768310546875, -0.0018548965454101562, 0.0249481201171875, -0.0306854248046875, 0.0259246826171875, -0.0014619827270507812, 0.0275726318359375, -0.01355743408203125, -0.08612060546875, -0.02154541015625, 0.0416259765625, -0.0283203125, -0.045684814453125, -0.020050048828125, 0.036773681640625, -0.0020008087158203125, -0.02874755859375, 0.07904052734375, -0.01519012451171875, 0.05224609375, 0.00885009765625, 0.00489044189453125, 0.043426513671875, 0.042755126953125, 0.004848480224609375, -0.004505157470703125, 0.0148773193359375, 0.01097869873046875, -0.01444244384765625, -0.009674072265625, 0.00540924072265625, 0.0088043212890625, -0.07562255859375, 0.0004100799560546875, -0.06732177734375, 0.0223846435546875, 0.01273345947265625, 0.06500244140625, 0.01483154296875, -0.0308990478515625, -0.018157958984375, 0.0738525390625, 0.0278778076171875, -0.030029296875, -0.01062774658203125, -0.00847625732421875, -0.0095672607421875, 0.03338623046875, -0.01336669921875, -0.0015287399291992188, 0.00933074951171875, -0.0083770751953125, -0.0462646484375, 0.062164306640625, -0.0130615234375, -0.004802703857421875, -0.00019752979278564453, 0.034576416015625, -0.000988006591796875, 0.0021190643310546875, -0.0211639404296875, 0.0221099853515625, -0.0162353515625, 0.01812744140625, -0.03582763671875, -0.002536773681640625, -0.01256561279296875, 0.03448486328125, 0.01435089111328125, -0.0038738250732421875, -0.0098724365234375, 0.01290130615234375, 0.0533447265625, 0.0208892822265625, 0.01036834716796875, 0.02557373046875, 0.0175628662109375, -0.038604736328125, 0.07537841796875, 0.01432037353515625, 0.0254974365234375, 0.02166748046875, 0.0310821533203125, 0.03826904296875, -0.005809783935546875, -0.0291900634765625, -0.0037441253662109375, 0.072265625, -0.01245880126953125, -0.0032596588134765625, 0.006092071533203125, -0.01419830322265625, -0.004436492919921875, 0.01105499267578125, -0.01837158203125, 0.05908203125, 0.005157470703125, -0.0220184326171875, 0.0229644775390625, 0.008697509765625, 0.016082763671875, 0.041015625, 0.01123046875, 0.0709228515625, 0.0037689208984375, 0.00945281982421875, 0.0113525390625, 0.004024505615234375, 0.018707275390625, -0.006134033203125, 0.00965118408203125, -0.039642333984375, -0.01071929931640625, 0.044830322265625, 0.03271484375, -0.0150604248046875, -0.02264404296875, 0.00942230224609375, -0.00933837890625, 0.0123291015625, -0.0199737548828125, 0.0235443115234375, -0.04449462890625, -0.0316162109375, -0.050933837890625, -0.0015439987182617188, 0.029296875, 0.048797607421875, 0.0123291015625, 0.035125732421875, -0.0751953125, -0.052032470703125, -0.039306640625, 0.007568359375, 0.0180816650390625, 0.055877685546875, 0.0171356201171875, 0.06353759765625, -0.01030731201171875, -0.036956787109375, -0.003787994384765625, 0.038482666015625, 0.01531219482421875, 0.0031681060791015625, -0.0262603759765625, -0.032806396484375, 0.02593994140625, 0.03363037109375, -0.00052642822265625, 0.05645751953125, 0.047576904296875, 0.04779052734375, 0.0311431884765625, -0.006366729736328125, 0.05706787109375, -0.0165863037109375, -0.002532958984375, -0.01137542724609375, 0.053436279296875, 0.033294677734375, 0.020416259765625, -0.0257415771484375, 0.0494384765625, 0.03997802734375, -0.06329345703125, 0.034759521484375, -0.029693603515625, -0.06182861328125, 0.068359375, -0.0296630859375, 0.124755859375, -0.043731689453125, -0.0711669921875, -0.00548553466796875, -0.01232147216796875, -0.0307769775390625, -0.007587432861328125, 0.0229339599609375, -0.05224609375, 0.06719970703125, -0.01311492919921875, 0.0025577545166015625, 0.005523681640625, -0.0062713623046875, -0.008392333984375, -0.0162200927734375, 0.02056884765625, -0.005908966064453125, -0.0096435546875, 0.0206298828125, 0.0268096923828125, -0.0175933837890625, 0.00582122802734375, -0.01007843017578125, 0.02642822265625, -0.0008063316345214844, 0.021392822265625, -0.0246734619140625, 0.020751953125, -0.00893402099609375, 0.045867919921875, -0.033660888671875, -0.0290679931640625, -0.000934600830078125, -0.032440185546875, -0.0032901763916015625, 0.036956787109375, -0.0318603515625, -0.007053375244140625, -0.01078033447265625, 0.0252838134765625, -0.00478363037109375, 0.045318603515625, -0.0244598388671875, -0.0623779296875, -0.04803466796875, 0.01409912109375, -0.0030040740966796875, 0.016448974609375, -0.006565093994140625, 0.004817962646484375, -0.00547027587890625, -0.03363037109375, 0.0229034423828125, -0.020477294921875, 0.03955078125, 0.035430908203125, 0.004302978515625, -0.0135498046875, 0.0036792755126953125, -0.016693115234375, 0.008758544921875, -0.00316619873046875, 0.0229034423828125, 0.01216888427734375, -0.061187744140625, -0.00836944580078125, 0.0406494140625, 0.02288818359375, 0.005802154541015625, 0.0145416259765625, 0.0193328857421875, -0.0399169921875, -0.0011501312255859375, 0.0011892318725585938, -0.0271453857421875, -0.025909423828125, 0.002628326416015625, 0.00942230224609375, 0.00640106201171875, -0.0065460205078125, -0.0328369140625, -0.00036072731018066406, 0.028564453125, 0.0028133392333984375, -0.044403076171875, 0.004611968994140625, 0.0002338886260986328, 0.051544189453125, -0.0012111663818359375, -0.052581787109375, 0.016204833984375, 0.03497314453125, -0.0275726318359375, -0.0347900390625, -0.059661865234375, -0.01050567626953125, -0.07177734375, -0.01111602783203125, -0.0033626556396484375, -0.009063720703125, -0.0013113021850585938, -0.0200653076171875, 0.0011997222900390625, 0.026123046875, 0.039154052734375, -0.041839599609375, 0.037078857421875, -0.01459503173828125, 0.029815673828125, -0.0693359375, -0.023529052734375, -0.05999755859375, 0.016876220703125, -0.0218353271484375, 0.01390838623046875, 0.026611328125, -0.036468505859375, -0.060089111328125, 0.041351318359375, -0.006969451904296875, -0.03485107421875, -0.034942626953125, 0.012420654296875, -0.01384735107421875, -0.00621795654296875, -0.02813720703125, -0.0186309814453125, -0.0020618438720703125, 0.033294677734375, -0.01385498046875, 0.0199432373046875, 0.032989501953125, -0.0280914306640625, -0.0099029541015625, -0.00957489013671875, -0.004322052001953125, 0.0087127685546875, 0.0160064697265625, -0.021026611328125, 0.0509033203125, 0.038421630859375, -0.0305938720703125, 0.04278564453125, 0.0158843994140625, 0.00995635986328125, 0.00214385986328125, -0.033050537109375, 0.0308074951171875, -0.00818634033203125, 0.003017425537109375, -0.053955078125, -0.020751953125, 0.004474639892578125, 0.003299713134765625, -0.0091705322265625, -0.0016183853149414062, 0.015838623046875, -0.0123748779296875, -0.0065155029296875, 0.019622802734375, -0.009368896484375, -0.0020389556884765625, -0.0275421142578125, 0.056640625, -0.0400390625, -0.00850677490234375, 0.0313720703125, 0.007251739501953125, -0.06292724609375, 0.0118408203125, 0.0279693603515625, -0.0254364013671875, -0.0035228729248046875, 0.01013946533203125, -0.00852203369140625, 0.0061187744140625, 0.004901885986328125, 0.01519012451171875, 0.062744140625, -0.046142578125, 0.0034275054931640625, 0.01261138916015625, 0.017822265625, -0.0297698974609375, 0.0096893310546875, -0.014739990234375, 0.0298309326171875, -0.00457763671875, 0.0178375244140625, -0.0011959075927734375, 0.045562744140625, -0.0003800392150878906, 0.0692138671875, -0.02166748046875, -0.004886627197265625, -0.0310516357421875, 0.039154052734375, 0.0167999267578125, -0.0013446807861328125, 0.05877685546875, -0.0223236083984375, -0.006702423095703125, 0.00655364990234375, -0.0306396484375, -0.045989990234375, 0.014068603515625, -0.0121307373046875, -0.00839996337890625, 0.02349853515625 ]
9104fe4066d05748ae5709bc523b2c1adc3830b1
Wordpress Stackexchange Q: How to Remove All Widgets from Dashboard? I'm looking for a complete blank Dashboard. No widgets at all and preferably one column. There are snippets to remove the default WordPress widgets but haven't found anything about the ones added by plugins. Searched all over and seems that this hasn't been asked. A: This will work fine add_action('wp_dashboard_setup', 'remove_dashboard_widgets' ); function remove_dashboard_widgets() { global $wp_meta_boxes; unset($wp_meta_boxes['dashboard']); }
Q: How to Remove All Widgets from Dashboard? I'm looking for a complete blank Dashboard. No widgets at all and preferably one column. There are snippets to remove the default WordPress widgets but haven't found anything about the ones added by plugins. Searched all over and seems that this hasn't been asked. A: This will work fine add_action('wp_dashboard_setup', 'remove_dashboard_widgets' ); function remove_dashboard_widgets() { global $wp_meta_boxes; unset($wp_meta_boxes['dashboard']); } A: From this Q&A, I've learned about the global variable $wp_meta_boxes. And over there is also the code to remove the default meta boxes. After examining the variable, this is the code I wrote to remove all Dashboard Widgets, including the ones added by plugins: add_action('wp_dashboard_setup', 'wpse_73561_remove_all_dashboard_meta_boxes', 9999 ); function wpse_73561_remove_all_dashboard_meta_boxes() { global $wp_meta_boxes; $wp_meta_boxes['dashboard']['normal']['core'] = array(); $wp_meta_boxes['dashboard']['side']['core'] = array(); } The answer to force one column as a screen option is from here: add_filter( 'get_user_option_screen_layout_dashboard', 'wpse_4552_one_column_layout' ); function wpse_4552_one_column_layout( $cols ) { if( current_user_can( 'basic_contributor' ) ) return 1; return $cols; } This one provided the code to hide the Screen Options and the Help tabs: add_filter( 'contextual_help', 'wpse_25034_remove_dashboard_help_tab', 999, 3 ); add_filter( 'screen_options_show_screen', 'wpse_25034_remove_help_tab' ); function wpse_25034_remove_dashboard_help_tab( $old_help, $screen_id, $screen ) { if( 'dashboard' != $screen->base ) return $old_help; $screen->remove_help_tabs(); return $old_help; } function wpse_25034_remove_help_tab( $visible ) { global $current_screen; if( 'dashboard' == $current_screen->base ) return false; return $visible; } Ok, now there's almost nothing in the Dashboard, what's next? A bit of CSS to hide the icon-index and H2 title, and some jQuery to fill the void: add_action( 'admin_head-index.php', 'wpse_73561_dashboard_scripts' ); function wpse_73561_dashboard_scripts() { ?> <style>#icon-index, .wrap h2 {display:none}</style> <script language="javascript" type="text/javascript"> jQuery(document).ready(function($) { fillTheVoid(); // soon in StackOverflow }); </script> <?php } [ update ] The filled void can be found in StackOverflow. Use that wpse_73561_dashboard_scripts function instead of this one.
wordpress
{ "language": "en", "length": 292, "provenance": "stackexchange_00019.jsonl.gz:426075", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73561" }
[ 0.028961181640625, -0.005748748779296875, 0.00463104248046875, 0.00998687744140625, 0.018310546875, -0.0278472900390625, 0.06719970703125, -0.0263519287109375, 0.02398681640625, 0.03118896484375, 0.0299072265625, -0.035888671875, -0.009979248046875, -0.0296478271484375, -0.05255126953125, -0.025238037109375, 0.0216522216796875, 0.00806427001953125, 0.042572021484375, -0.015655517578125, 0.0275421142578125, -0.006504058837890625, 0.028564453125, 0.079345703125, 0.006412506103515625, -0.0023345947265625, -0.01824951171875, -0.002300262451171875, -0.038604736328125, -0.049957275390625, -0.0020885467529296875, 0.0736083984375, -0.020965576171875, 0.051025390625, -0.01058197021484375, 0.007358551025390625, -0.028961181640625, 0.05279541015625, 0.049896240234375, -0.019134521484375, 0.02178955078125, -0.011077880859375, -0.00428009033203125, -0.00237274169921875, -0.016387939453125, 0.01422119140625, -0.010894775390625, -0.04034423828125, 0.0221405029296875, -0.030487060546875, 0.01099395751953125, 0.026947021484375, 0.0328369140625, -0.059112548828125, -0.026458740234375, -0.028564453125, 0.02825927734375, -0.0139923095703125, 0.0526123046875, 0.00698089599609375, -0.035003662109375, -0.0219879150390625, 0.007312774658203125, -0.057647705078125, -0.0069580078125, -0.024627685546875, -0.034393310546875, 0.02178955078125, -0.024658203125, 0.007083892822265625, 0.0518798828125, -0.01538848876953125, -0.0037517547607421875, -0.03375244140625, 0.007781982421875, -0.00530242919921875, 0.0021190643310546875, -0.0179290771484375, 0.003177642822265625, 0.0090484619140625, 0.04095458984375, 0.003986358642578125, 0.002429962158203125, -0.0022907257080078125, 0.0196075439453125, 0.01727294921875, -0.00414276123046875, -0.0255889892578125, -0.03826904296875, -0.00972747802734375, -0.0185394287109375, -0.0645751953125, -0.0394287109375, -0.01262664794921875, 0.0270538330078125, -0.039886474609375, 0.0283050537109375, 0.0421142578125, -0.029296875, -0.0054779052734375, -0.0110015869140625, -0.00909423828125, -0.01474761962890625, -0.0302734375, 0.0160064697265625, 0.024322509765625, -0.037017822265625, -0.036773681640625, 0.04315185546875, 0.036224365234375, 0.0132598876953125, 0.009674072265625, -0.003223419189453125, -0.004146575927734375, -0.055938720703125, 0.0173797607421875, -0.00390625, -0.0247344970703125, -0.0128631591796875, 0.0070037841796875, -0.022613525390625, -0.022705078125, -0.01151275634765625, 0.0218505859375, 0.0188751220703125, 0.00018739700317382812, -0.0209808349609375, 0.019256591796875, -0.007648468017578125, -0.0240020751953125, -0.0450439453125, 0.0164642333984375, 0.0836181640625, 0.061920166015625, 0.040985107421875, -0.005878448486328125, 0.03057861328125, -0.0203094482421875, 0.017120361328125, 0.0301971435546875, -0.00826263427734375, -0.06011962890625, -0.0296630859375, 0.00864410400390625, -0.0155029296875, 0.0009059906005859375, 0.0121307373046875, 0.004634857177734375, -0.0134735107421875, -0.009735107421875, -0.021759033203125, -0.0100860595703125, 0.024505615234375, 0.03216552734375, 0.0196380615234375, 0.01200103759765625, 0.06146240234375, -0.0237274169921875, -0.0472412109375, -0.02947998046875, -0.0157318115234375, -0.01788330078125, -0.00376129150390625, -0.0227508544921875, -0.0276031494140625, 0.01763916015625, 0.00817108154296875, 0.0165252685546875, 0.0249176025390625, 0.01456451416015625, -0.02496337890625, -0.036956787109375, 0.01273345947265625, 0.0173492431640625, -0.0015735626220703125, 0.055328369140625, -0.01012420654296875, -0.00873565673828125, 0.0085296630859375, -0.00934600830078125, -0.032440185546875, -0.042022705078125, -0.021514892578125, 0.0183563232421875, -0.09375, 0.01171112060546875, 0.03515625, 0.0908203125, 0.0228118896484375, 0.0219268798828125, 0.07696533203125, -0.03375244140625, -0.0313720703125, -0.0175323486328125, 0.0236663818359375, 0.0006494522094726562, -0.0550537109375, -0.01727294921875, -0.00568389892578125, 0.0118560791015625, 0.06243896484375, 0.007129669189453125, -0.0027484893798828125, -0.0196380615234375, -0.1102294921875, 0.01049041748046875, -0.0280914306640625, 0.036529541015625, -0.03472900390625, -0.015716552734375, 0.036590576171875, -0.016693115234375, -0.0283203125, 0.01271820068359375, -0.0236663818359375, -0.006927490234375, 0.01215362548828125, 0.038238525390625, -0.006427764892578125, -0.00322723388671875, -0.003437042236328125, -0.029541015625, 0.0119171142578125, 0.048431396484375, 0.079345703125, -0.01515960693359375, -0.0228424072265625, -0.044281005859375, 0.07232666015625, -0.0299224853515625, -0.03118896484375, 0.07757568359375, -0.0278472900390625, -0.004253387451171875, -0.0229949951171875, 0.003551483154296875, 0.01117706298828125, -0.016815185546875, 0.01099395751953125, 0.0217132568359375, 0.0124053955078125, 0.009033203125, -0.031005859375, 0.057952880859375, -0.0016660690307617188, -0.09588623046875, -0.0305328369140625, 0.062103271484375, 0.0218505859375, 0.064208984375, -0.0206756591796875, 0.01204681396484375, 0.017242431640625, -0.01125335693359375, 0.00563812255859375, 0.036895751953125, -0.037109375, 0.01377105712890625, -0.0305023193359375, 0.00707244873046875, -0.018890380859375, -0.0160675048828125, 0.01490020751953125, -0.040283203125, 0.01727294921875, 0.00003814697265625, 0.032470703125, 0.031829833984375, -0.02276611328125, -0.01087188720703125, 0.0241546630859375, 0.0181121826171875, -0.00588226318359375, 0.0616455078125, 0.033477783203125, -0.0036106109619140625, -0.032470703125, -0.02886962890625, 0.006259918212890625, 0.0232696533203125, 0.010162353515625, 0.0338134765625, 0.04632568359375, -0.0117340087890625, 0.0247955322265625, -0.036865234375, 0.014129638671875, -0.024200439453125, -0.0022068023681640625, -0.01218414306640625, 0.003253936767578125, 0.0275115966796875, -0.01047515869140625, 0.020477294921875, 0.054443359375, -0.0200653076171875, -0.0146331787109375, -0.0435791015625, 0.0292205810546875, -0.0259552001953125, 0.046600341796875, 0.07830810546875, 0.0221099853515625, -0.0100250244140625, -0.00379180908203125, 0.01232147216796875, 0.025421142578125, -0.02069091796875, -0.0171661376953125, 0.00261688232421875, -0.046630859375, 0.0255126953125, 0.015655517578125, 0.039886474609375, -0.0254974365234375, -0.04302978515625, -0.0214080810546875, 0.0220794677734375, -0.04681396484375, -0.02685546875, 0.0190887451171875, 0.0009303092956542969, -0.038482666015625, -0.0180511474609375, -0.0164337158203125, 0.0230712890625, -0.020172119140625, -0.00975799560546875, 0.038726806640625, -0.0198822021484375, -0.046173095703125, -0.023895263671875, -0.050323486328125, -0.01531219482421875, -0.00614166259765625, 0.008758544921875, 0.00766754150390625, 0.05413818359375, 0.0018396377563476562, -0.048309326171875, -0.0030002593994140625, 0.00943756103515625, -0.005962371826171875, -0.00853729248046875, 0.033294677734375, -0.02703857421875, -0.004669189453125, 0.0101165771484375, -0.005756378173828125, 0.0263824462890625, -0.02752685546875, -0.00789642333984375, -0.001102447509765625, -0.05255126953125, -0.023193359375, 0.034637451171875, 0.02294921875, -0.07208251953125, -0.0033016204833984375, -0.07415771484375, 0.01043701171875, 0.0197601318359375, -0.0009975433349609375, 0.0157623291015625, -0.035919189453125, -0.0290374755859375, 0.038726806640625, 0.0002372264862060547, 0.020660400390625, 0.0167236328125, -0.01068878173828125, 0.0165557861328125, -0.0114288330078125, 0.0061798095703125, 0.0204620361328125, -0.000797271728515625, -0.0263824462890625, -0.06396484375, 0.02142333984375, -0.0220184326171875, -0.0283050537109375, -0.008880615234375, -0.0028076171875, 0.0216827392578125, -0.00849151611328125, 0.03936767578125, 0.0006628036499023438, -0.013427734375, 0.017547607421875, -0.01168060302734375, 0.01248931884765625, 0.048370361328125, -0.09368896484375, 0.0016565322875976562, 0.00308990478515625, 0.01026153564453125, -0.004894256591796875, -0.04644775390625, -0.07171630859375, -0.02593994140625, -0.142822265625, 0.0250396728515625, 0.01499176025390625, -0.057037353515625, -0.001682281494140625, -0.0247955322265625, -0.08837890625, -0.04949951171875, 0.035125732421875, -0.01053619384765625, 0.01306915283203125, -0.0335693359375, 0.0203704833984375, -0.0562744140625, 0.0020046234130859375, -0.01177215576171875, -0.0345458984375, 0.0010881423950195312, -0.05438232421875, 0.0261077880859375, 0.0164642333984375, 0.0218963623046875, -0.01232147216796875, 0.004695892333984375, -0.00634002685546875, -0.0210113525390625, 0.005168914794921875, 0.030364990234375, -0.0394287109375, -0.003082275390625, 0.005153656005859375, -0.031005859375, -0.0264739990234375, -0.0316162109375, 0.01045989990234375, 0.023834228515625, -0.0224151611328125, 0.0120849609375, -0.0101776123046875, -0.0010766983032226562, -0.00554656982421875, -0.04168701171875, -0.04791259765625, 0.0408935546875, -0.032440185546875, 0.0272369384765625, -0.0531005859375, -0.046630859375, 0.044586181640625, 0.042816162109375, -0.0255584716796875, 0.011627197265625, 0.0286102294921875, 0.007633209228515625, -0.042266845703125, -0.068115234375, -0.0276947021484375, 0.03253173828125, 0.0228271484375, -0.0056610107421875, -0.004283905029296875, -0.027618408203125, 0.0162811279296875, 0.0110321044921875, 0.0015859603881835938, -0.0574951171875, 0.07916259765625, -0.0240631103515625, -0.03179931640625, 0.037567138671875, -0.036590576171875, 0.00954437255859375, 0.032379150390625, 0.0225830078125, -0.01861572265625, 0.01367950439453125, 0.024444580078125, 0.02166748046875, -0.057525634765625, -0.040771484375, 0.007785797119140625, 0.0035076141357421875, -0.00591278076171875, 0.0153045654296875, 0.0084075927734375, 0.00553131103515625, -0.02569580078125, -0.0017070770263671875, 0.01503753662109375, 0.0285186767578125, 0.03900146484375, -0.03546142578125, 0.0248870849609375, 0.0377197265625, -0.01020050048828125, 0.00699615478515625, -0.012847900390625, 0.0390625, 0.019317626953125, -0.046600341796875, 0.01534271240234375, 0.01508331298828125, 0.050567626953125, -0.0007143020629882812, 0.03326416015625, 0.053955078125, 0.037261962890625, -0.034820556640625, -0.04046630859375, 0.026824951171875, 0.0014848709106445312, -0.07720947265625, -0.0633544921875, -0.00641632080078125, -0.0284271240234375, 0.01045989990234375, -0.0008068084716796875, -0.013671875, -0.004901885986328125, -0.005298614501953125, 0.0222320556640625, 0.0038051605224609375, 0.035491943359375, -0.0027637481689453125, 0.001804351806640625, -0.00559234619140625, 0.015869140625, 0.00853729248046875, -0.0426025390625, 0.0003619194030761719, 0.0313720703125, 0.03997802734375, 0.0301513671875, -0.029754638671875, -0.002033233642578125, -0.01555633544921875, -0.00681304931640625, 0.06976318359375, 0.00826263427734375, -0.0706787109375, -0.025970458984375, 0.00397491455078125, 0.0283203125, -0.044677734375, 0.01073455810546875, 0.018463134765625, -0.00824737548828125, 0.0305023193359375, 0.0119781494140625, 0.01125335693359375, -0.0286102294921875, -0.0277557373046875, -0.0279998779296875, 0.0009684562683105469, 0.003818511962890625, -0.08746337890625, -0.054229736328125, 0.0008215904235839844, -0.00673675537109375, 0.0465087890625, -0.003932952880859375, 0.046630859375, -0.04168701171875, -0.00848388671875, -0.0204620361328125, 0.004047393798828125, 0.033294677734375, 0.01457977294921875, -0.0164337158203125, -0.0282745361328125, -0.038177490234375, -0.033172607421875, -0.039093017578125, -0.04241943359375, -0.038330078125, 0.0084228515625, 0.037841796875, 0.0386962890625, 0.023834228515625, -0.01001739501953125, -0.00508880615234375, -0.00787353515625, 0.01105499267578125, 0.05303955078125, -0.00508880615234375, 0.0631103515625, 0.0015668869018554688, 0.046783447265625, 0.00980377197265625, 0.0154876708984375, -0.032257080078125, -0.009796142578125, 0.048614501953125, 0.0289306640625, -0.058563232421875, -0.0233917236328125, -0.0416259765625, -0.08087158203125, 0.01183319091796875, -0.04193115234375, -0.01509857177734375, -0.02215576171875, -0.0018739700317382812, -0.0189361572265625, 0.069580078125, 0.00023412704467773438, -0.005443572998046875, 0.0171356201171875, 0.01140594482421875, 0.00440216064453125, -0.01654052734375, -0.0135040283203125, 0.0093536376953125, 0.024200439453125, -0.0007147789001464844, -0.0345458984375, -0.061126708984375, 0.1051025390625, 0.06134033203125, -0.0122222900390625, 0.0305938720703125, 0.017578125, 0.00414276123046875, -0.007663726806640625, -0.0034313201904296875, -0.02386474609375, -0.025238037109375, 0.038726806640625, 0.01373291015625, -0.0155181884765625, 0.055419921875, -0.0219573974609375, 0.004077911376953125, 0.043670654296875, 0.03125, -0.094970703125, 0.02813720703125, 0.007305145263671875, 0.0249786376953125, 0.04278564453125, -0.0164031982421875, -0.0095062255859375, -0.031890869140625, 0.0156402587890625, 0.013671875, -0.035919189453125, -0.006847381591796875, 0.0169219970703125, -0.005512237548828125, -0.0252227783203125, 0.00927734375, 0.005828857421875, -0.048065185546875, -0.005214691162109375, 0.06842041015625, -0.0386962890625, 0.00588226318359375, -0.0013647079467773438, 0.02264404296875, -0.038543701171875, -0.09466552734375, -0.015838623046875, -0.0230865478515625, -0.047882080078125, 0.039398193359375, -0.00438690185546875, 0.040985107421875, 0.0311737060546875, -0.0130615234375, 0.0199737548828125, -0.00909423828125, 0.0004813671112060547, -0.0252685546875, -0.0193939208984375, 0.0294342041015625, 0.032562255859375, -0.0304107666015625, 0.033050537109375, -0.00936126708984375, -0.042144775390625, -0.01189422607421875, -0.021026611328125, 0.08148193359375, -0.05218505859375, -0.01169586181640625, -0.0007047653198242188, 0.0076904296875, 0.00873565673828125, -0.00032210350036621094, 0.03076171875, -0.048828125, -0.00098419189453125, 0.00982666015625, 0.0009918212890625, -0.00012695789337158203, 0.01091766357421875, -0.07635498046875, 0.086669921875, 0.0260772705078125, 0.02606201171875, -0.01393890380859375, 0.022674560546875, -0.0299530029296875, 0.0109405517578125, -0.01456451416015625, 0.060577392578125, 0.050811767578125, -0.026092529296875, 0.01348114013671875, 0.0100250244140625, -0.00626373291015625, -0.02264404296875, -0.0005345344543457031, -0.005970001220703125, 0.05047607421875, -0.010162353515625, -0.017364501953125, 0.04278564453125, -0.01739501953125, -0.0281219482421875, 0.0028400421142578125, 0.042633056640625, 0.01094818115234375, -0.03228759765625, 0.031585693359375, -0.037689208984375, -0.037445068359375, 0.029327392578125, 0.0186004638671875, 0.018157958984375, -0.01177215576171875, 0.045318603515625, 0.035186767578125, -0.0218353271484375, -0.0214996337890625, -0.005886077880859375, 0.0299224853515625, 0.007534027099609375, 0.035980224609375, -0.034088134765625, -0.0031948089599609375, -0.00909423828125, 0.045806884765625, 0.016693115234375, -0.007129669189453125, 0.02276611328125, 0.0214996337890625, -0.064453125, -0.008758544921875, 0.00177764892578125, 0.01273345947265625, -0.0289306640625, 0.0433349609375, 0.020111083984375, 0.03521728515625, -0.0165252685546875, 0.02044677734375, 0.003955841064453125, 0.0281524658203125, -0.028778076171875, -0.057342529296875, 0.016510009765625, 0.00222015380859375, 0.007221221923828125, 0.03533935546875, 0.04754638671875, -0.076416015625, -0.0238494873046875, -0.0146636962890625, 0.00925445556640625, -0.02520751953125, 0.01384735107421875, -0.0192108154296875, -0.002155303955078125, 0.0024929046630859375, 0.005275726318359375, 0.00435638427734375, -0.0214996337890625, 0.004497528076171875, 0.0220947265625, 0.00909423828125, 0.0131378173828125, -0.048736572265625, -0.0058135986328125, -0.02203369140625, 0.005107879638671875, -0.018890380859375, 0.039886474609375, -0.0716552734375, -0.03607177734375, 0.0232391357421875, 0.053314208984375, 0.061004638671875, -0.0005483627319335938, 0.04669189453125, 0.01389312744140625, -0.021026611328125, 0.006893157958984375, -0.0060272216796875, -0.016693115234375, -0.00923919677734375, -0.020416259765625, 0.019927978515625, 0.016998291015625, 0.006977081298828125, -0.00882720947265625, 0.0653076171875, -0.00032329559326171875, -0.0194549560546875, 0.017364501953125, -0.0006127357482910156, -0.00794219970703125, 0.053009033203125, -0.0185546875, 0.004848480224609375, -0.00868988037109375, -0.0723876953125, -0.020782470703125, 0.0215606689453125, -0.00860595703125, -0.005550384521484375, 0.017547607421875, -0.04949951171875, 0.053375244140625, -0.00980377197265625, 0.0128936767578125, -0.024444580078125, -0.0255279541015625, 0.0277557373046875, -0.00212860107421875, 0.0069122314453125, 0.02496337890625, -0.031768798828125, -0.00928497314453125, -0.01015472412109375, 0.022003173828125, 0.018463134765625, 0.047698974609375, -0.01000213623046875, 0.01427459716796875, 0.00305938720703125, -0.0012826919555664062, 0.005489349365234375, 0.01216888427734375, -0.0011796951293945312, 0.002841949462890625, 0.0013904571533203125, -0.0239410400390625, -0.04534912109375, 0.0168304443359375, 0.0225830078125, -0.01490020751953125, 0.04107666015625, -0.0377197265625, 0.017578125, -0.006534576416015625, -0.003597259521484375, -0.031005859375, -0.020538330078125, -0.032440185546875, -0.0161285400390625, 0.0206146240234375, -0.004840850830078125, 0.0022220611572265625, 0.00406646728515625, -0.00931549072265625, -0.0217132568359375, -0.0039825439453125, 0.00860595703125, -0.037139892578125, 0.017669677734375, 0.0148162841796875, -0.0233612060546875, -0.006805419921875, -0.021240234375, 0.023834228515625, -0.0050201416015625, 0.0226287841796875, 0.00914764404296875, 0.000021338462829589844, -0.0338134765625, 0.0002796649932861328, -0.0146026611328125, -0.058807373046875, -0.0084686279296875, 0.0391845703125, -0.0142974853515625, -0.00787353515625, 0.006969451904296875, -0.001506805419921875, -0.01184844970703125, -0.034881591796875, 0.0006966590881347656, -0.0265045166015625, -0.090087890625, -0.063720703125, 0.03680419921875, 0.01195526123046875, 0.006649017333984375, -0.07098388671875, 0.0662841796875, -0.0160369873046875, 0.041839599609375, -0.01861572265625, 0.004268646240234375, 0.0024051666259765625, 0.01125335693359375, -0.009368896484375, 0.00722503662109375, -0.0148468017578125, 0.0161895751953125, 0.01375579833984375, -0.0033931732177734375, -0.00160980224609375, -0.01367950439453125, 0.07159423828125, -0.007556915283203125, 0.0238494873046875, 0.036468505859375, 0.0136260986328125, -0.03057861328125, -0.0015583038330078125, 0.0029697418212890625, 0.0231475830078125, -0.04278564453125, -0.0206298828125, -0.0274810791015625, 0.0116424560546875, 0.00899505615234375, -0.0469970703125, -0.02618408203125, -0.06585693359375, -0.10675048828125, 0.0670166015625, -0.00811004638671875, -0.03790283203125, 0.0172119140625, 0.0075531005859375, -0.007343292236328125, -0.017730712890625, 0.004825592041015625, -0.005367279052734375, 0.0012903213500976562, -0.0030422210693359375, 0.047088623046875, -0.02752685546875, 0.039154052734375, 0.0027027130126953125, -0.022125244140625, 0.041229248046875, 0.0240325927734375, 0.03875732421875, -0.036041259765625, -0.0034008026123046875, 0.0012807846069335938, 0.022674560546875, -0.03570556640625, -0.01261138916015625, 0.0154571533203125, 0.0295867919921875, 0.01215362548828125, -0.01502227783203125, -0.009979248046875, 0.005886077880859375, 0.03778076171875, 0.0165252685546875, 0.01357269287109375, -0.022186279296875, -0.03277587890625, -0.0108795166015625, 0.005283355712890625, -0.0275421142578125, 0.0134124755859375, -0.0758056640625, -0.031280517578125, 0.002208709716796875, 0.00209808349609375, 0.016876220703125, -0.02197265625, -0.0034656524658203125, -0.0007839202880859375, 0.0226898193359375, 0.01134490966796875, -0.0264129638671875, 0.002742767333984375, 0.0068817138671875, -0.0013065338134765625, 0.047149658203125, -0.04608154296875, 0.0223388671875, 0.0386962890625, -0.01003265380859375, -0.032806396484375, -0.039306640625, -0.0252532958984375, 0.045806884765625, -0.033782958984375, 0.0170745849609375, -0.05828857421875, -0.0050048828125, -0.02593994140625, 0.0252838134765625, 0.0139923095703125, 0.036224365234375, -0.0211181640625, 0.0169525146484375, 0.035247802734375, -0.01166534423828125, -0.0016117095947265625, -0.0155181884765625, -0.0226593017578125, 0.042388916015625, 0.01477813720703125, -0.022613525390625, 0.04058837890625, -0.027435302734375, -0.0091094970703125, -0.00458526611328125, 0.014923095703125, -0.10113525390625, 0.053253173828125, -0.034210205078125, 0.037261962890625, 0.04205322265625 ]
1729e939a55e8ef50d8adf17e028757a873b148b
Wordpress Stackexchange Q: Is It Possible to Restore Accidentally Deleted Widgets? I accidentally deleted the widgets without dragging it to the inactive widgets section. I have a backup of all the files and the database but i have changed many things on the site other than the widgets. Can I only restore the widgets? A: You have to search the wp_options database table for option_name's that contains widget. That search results in: Using the values of your backups, you'll then proceed to restore the option_value of the missing widgets. And also the value of the option of sidebars_widgets. Goes without saying that backing up before doing this modifications is essential.
Q: Is It Possible to Restore Accidentally Deleted Widgets? I accidentally deleted the widgets without dragging it to the inactive widgets section. I have a backup of all the files and the database but i have changed many things on the site other than the widgets. Can I only restore the widgets? A: You have to search the wp_options database table for option_name's that contains widget. That search results in: Using the values of your backups, you'll then proceed to restore the option_value of the missing widgets. And also the value of the option of sidebars_widgets. Goes without saying that backing up before doing this modifications is essential. A: Due to my impatience and lack of confidence in Hostgator's willingness to assist me with this issue, I have found a possible solution if you are comfortable looking at source code. I recommend looking up the site you wish to recover the widgets from The WayBackMachine. A: Accidently deleted very essential widgets (wifi and battery) so created a new user and then copied its configuration to the older one, and IT WORKED!
wordpress
{ "language": "en", "length": 181, "provenance": "stackexchange_00019.jsonl.gz:426081", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73582" }
[ -0.007350921630859375, -0.040252685546875, 0.01357269287109375, 0.0163421630859375, -0.016937255859375, -0.025665283203125, 0.06536865234375, -0.005893707275390625, 0.0721435546875, 0.0275115966796875, -0.03173828125, -0.05841064453125, 0.035369873046875, -0.0272369384765625, -0.0675048828125, -0.013824462890625, 0.037933349609375, -0.00971221923828125, 0.0280303955078125, -0.004230499267578125, 0.01071929931640625, 0.0212554931640625, 0.006908416748046875, 0.0401611328125, -0.01092529296875, 0.04949951171875, 0.05377197265625, -0.0189208984375, -0.0125732421875, -0.028411865234375, 0.0220184326171875, -0.0038280487060546875, 0.0227508544921875, -0.040618896484375, 0.046630859375, 0.005214691162109375, 0.003864288330078125, -0.0031681060791015625, 0.0140838623046875, -0.006992340087890625, 0.0303192138671875, -0.0184326171875, -0.0042572021484375, -0.0142974853515625, -0.029937744140625, 0.0022792816162109375, 0.00740814208984375, -0.025146484375, 0.036529541015625, 0.02398681640625, -0.001911163330078125, -0.038116455078125, 0.0217437744140625, -0.049896240234375, -0.030914306640625, -0.048431396484375, 0.01873779296875, 0.01537322998046875, 0.03662109375, -0.032073974609375, -0.0484619140625, -0.00821685791015625, 0.022064208984375, -0.025390625, -0.01413726806640625, -0.0096282958984375, 0.018829345703125, -0.005794525146484375, -0.044952392578125, -0.0172882080078125, 0.0579833984375, -0.0285186767578125, -0.004711151123046875, 0.0036258697509765625, 0.02081298828125, -0.0139617919921875, 0.0044708251953125, 0.017852783203125, -0.002651214599609375, 0.0399169921875, 0.075439453125, 0.050994873046875, -0.0043487548828125, -0.0174102783203125, 0.01209259033203125, -0.022613525390625, 0.003665924072265625, -0.048858642578125, -0.0212860107421875, 0.01032257080078125, -0.00556182861328125, -0.0748291015625, -0.0080108642578125, 0.038482666015625, 0.017578125, -0.01149749755859375, 0.0217437744140625, 0.039306640625, 0.0091094970703125, 0.035491943359375, -0.01178741455078125, -0.0285797119140625, 0.0261993408203125, -0.05242919921875, 0.02093505859375, -0.00943756103515625, -0.04547119140625, -0.034088134765625, 0.0289154052734375, 0.052642822265625, -0.01123809814453125, -0.0143585205078125, 0.030059814453125, -0.0511474609375, -0.00792694091796875, 0.0467529296875, 0.0261383056640625, 0.0250396728515625, 0.032867431640625, 0.0226287841796875, -0.0286407470703125, -0.0029811859130859375, -0.0192108154296875, 0.005695343017578125, 0.01078033447265625, -0.0287017822265625, -0.0136566162109375, 0.04095458984375, 0.026214599609375, -0.022735595703125, -0.052398681640625, 0.03759765625, 0.04632568359375, -0.01093292236328125, -0.0009288787841796875, -0.002674102783203125, 0.0081329345703125, -0.0089263916015625, 0.0194549560546875, -0.01105499267578125, 0.0239715576171875, -0.02862548828125, -0.005168914794921875, 0.016265869140625, 0.047943115234375, 0.0032482147216796875, 0.005504608154296875, 0.01343536376953125, 0.0207977294921875, 0.01061248779296875, 0.01316070556640625, -0.018341064453125, -0.01436614990234375, 0.02496337890625, 0.048248291015625, -0.040802001953125, 0.0638427734375, -0.051666259765625, 0.0218963623046875, -0.0537109375, -0.02435302734375, -0.01152801513671875, 0.0243377685546875, -0.02606201171875, -0.04296875, 0.028839111328125, -0.00359344482421875, 0.00054168701171875, 0.0090789794921875, 0.0211334228515625, -0.03363037109375, -0.0343017578125, -0.055694580078125, 0.0038166046142578125, -0.0015859603881835938, 0.047149658203125, -0.013885498046875, -0.01560211181640625, 0.0090484619140625, 0.0159759521484375, -0.006534576416015625, -0.0267333984375, -0.0128936767578125, 0.0250396728515625, -0.04150390625, -0.0225830078125, 0.01320648193359375, 0.07647705078125, 0.037567138671875, 0.03521728515625, -0.025787353515625, -0.050048828125, -0.029296875, -0.0202484130859375, 0.011962890625, -0.01471710205078125, -0.046905517578125, -0.034637451171875, 0.003734588623046875, 0.03363037109375, 0.054412841796875, -0.0058746337890625, -0.01751708984375, -0.030975341796875, -0.117431640625, -0.00510406494140625, -0.02740478515625, 0.03155517578125, -0.0306243896484375, 0.02197265625, 0.034698486328125, 0.00878143310546875, -0.04266357421875, 0.0296630859375, 0.0103607177734375, 0.00891876220703125, 0.0005984306335449219, 0.058380126953125, -0.0011034011840820312, 0.012939453125, -0.00858306884765625, -0.03302001953125, 0.00835418701171875, 0.013824462890625, 0.01187896728515625, -0.00870513916015625, -0.0180206298828125, -0.03192138671875, -0.00621795654296875, -0.01329803466796875, -0.03375244140625, 0.06304931640625, -0.04510498046875, 0.0004892349243164062, 0.002777099609375, -0.0233001708984375, 0.0001049041748046875, -0.07757568359375, 0.037628173828125, 0.045379638671875, 0.03656005859375, 0.037689208984375, 0.00357818603515625, 0.0286102294921875, 0.00412750244140625, -0.095458984375, 0.01180267333984375, 0.01081085205078125, -0.0217132568359375, 0.0362548828125, 0.01107025146484375, 0.021240234375, -0.005916595458984375, -0.005107879638671875, -0.032135009765625, 0.031341552734375, -0.0240325927734375, 0.0196685791015625, -0.01548004150390625, 0.005390167236328125, -0.017730712890625, -0.030548095703125, 0.0055694580078125, -0.03277587890625, 0.0390625, 0.0107421875, 0.055206298828125, 0.039215087890625, 0.01227569580078125, 0.00045609474182128906, -0.027191162109375, -0.067138671875, 0.002895355224609375, 0.0335693359375, 0.0537109375, 0.03277587890625, -0.0234832763671875, -0.043670654296875, 0.039093017578125, 0.028106689453125, -0.0001443624496459961, 0.060028076171875, -0.016143798828125, -0.024139404296875, -0.031707763671875, -0.0406494140625, -0.0099639892578125, -0.005222320556640625, -0.032928466796875, 0.0160369873046875, 0.031951904296875, 0.038238525390625, 0.0182037353515625, -0.00023984909057617188, -0.0008077621459960938, 0.0193939208984375, 0.052154541015625, 0.0058746337890625, -0.014678955078125, 0.0083465576171875, 0.0504150390625, 0.052520751953125, 0.015625, -0.01502227783203125, 0.0011663436889648438, 0.036590576171875, 0.048583984375, -0.0264129638671875, -0.0202789306640625, 0.0035305023193359375, -0.054931640625, -0.0159454345703125, 0.025909423828125, 0.053192138671875, -0.0005364418029785156, -0.031036376953125, -0.006610870361328125, 0.0178375244140625, -0.0579833984375, -0.09326171875, -0.022430419921875, -0.0302276611328125, -0.028106689453125, 0.004566192626953125, -0.02166748046875, 0.0096588134765625, 0.0256195068359375, 0.0104217529296875, 0.040008544921875, -0.031463623046875, -0.00965118408203125, -0.0113983154296875, -0.07183837890625, -0.039398193359375, 0.0205535888671875, 0.020111083984375, 0.0191650390625, 0.00826263427734375, -0.007465362548828125, -0.022247314453125, 0.00812530517578125, -0.01111602783203125, -0.01509857177734375, -0.0285797119140625, -0.0032711029052734375, -0.0252532958984375, -0.01285552978515625, 0.0040435791015625, 0.00347137451171875, 0.00270843505859375, -0.007091522216796875, -0.0176544189453125, -0.0170745849609375, -0.0179595947265625, 0.00699615478515625, 0.0005970001220703125, 0.005748748779296875, -0.004344940185546875, -0.0034637451171875, -0.038330078125, -0.015716552734375, 0.033294677734375, 0.00589752197265625, 0.017486572265625, -0.035980224609375, -0.0261688232421875, 0.013092041015625, 0.039031982421875, 0.0421142578125, 0.0182647705078125, -0.01261138916015625, 0.0161590576171875, -0.00731658935546875, 0.012786865234375, 0.02435302734375, 0.02008056640625, 0.0214691162109375, -0.02044677734375, 0.019195556640625, 0.0099334716796875, -0.0020122528076171875, -0.00882720947265625, -0.00028228759765625, -0.013153076171875, -0.007259368896484375, 0.0025806427001953125, -0.06781005859375, 0.035247802734375, -0.022552490234375, 0.009246826171875, -0.0104827880859375, 0.061187744140625, -0.08056640625, -0.0266265869140625, 0.0013837814331054688, 0.060272216796875, -0.041900634765625, -0.07275390625, -0.01885986328125, -0.024078369140625, -0.12646484375, 0.0291290283203125, 0.0092620849609375, -0.052886962890625, 0.0004699230194091797, -0.058074951171875, -0.051300048828125, -0.060821533203125, 0.03436279296875, -0.06396484375, 0.0440673828125, -0.006011962890625, 0.044219970703125, -0.04638671875, 0.007312774658203125, -0.0750732421875, -0.07867431640625, -0.004749298095703125, -0.043609619140625, 0.05596923828125, 0.0196990966796875, -0.0173492431640625, -0.038970947265625, 0.01922607421875, -0.0035552978515625, -0.0299072265625, 0.0136871337890625, 0.02777099609375, -0.011260986328125, -0.0120697021484375, -0.0116729736328125, -0.036529541015625, 0.004878997802734375, -0.041900634765625, -0.061004638671875, -0.039459228515625, -0.036865234375, 0.028045654296875, -0.0069122314453125, -0.017669677734375, 0.0009737014770507812, -0.0302734375, -0.04278564453125, 0.0280609130859375, -0.037872314453125, 0.0281829833984375, -0.042724609375, -0.031890869140625, -0.0005421638488769531, 0.02679443359375, -0.0298004150390625, 0.0101776123046875, 0.01537322998046875, 0.0246124267578125, -0.035980224609375, -0.005924224853515625, -0.028472900390625, 0.0270538330078125, -0.019073486328125, 0.0176239013671875, 0.030792236328125, -0.008087158203125, -0.009490966796875, 0.00670623779296875, -0.035736083984375, -0.02490234375, 0.0953369140625, 0.021697998046875, 0.04339599609375, -0.036865234375, -0.01180267333984375, 0.01512908935546875, 0.04400634765625, -0.005344390869140625, 0.01152801513671875, 0.0250244140625, 0.012054443359375, -0.02459716796875, -0.0391845703125, -0.0249786376953125, 0.021820068359375, -0.0118255615234375, -0.02081298828125, 0.047607421875, 0.032196044921875, 0.0050048828125, -0.0186614990234375, 0.00693511962890625, -0.01476287841796875, 0.00644683837890625, 0.028594970703125, -0.0169677734375, 0.0140228271484375, -0.0004074573516845703, -0.0225830078125, -0.00620269775390625, -0.019775390625, 0.042327880859375, 0.045135498046875, -0.0231781005859375, 0.049774169921875, 0.01151275634765625, -0.015167236328125, -0.008544921875, 0.0029354095458984375, 0.0023860931396484375, 0.03741455078125, -0.02685546875, 0.0124053955078125, -0.01222991943359375, 0.037139892578125, -0.034027099609375, -0.013092041015625, 0.0008611679077148438, -0.00366973876953125, 0.02032470703125, 0.034942626953125, -0.0022525787353515625, 0.03118896484375, -0.0134429931640625, 0.01177978515625, 0.007228851318359375, 0.022430419921875, 0.00949859619140625, 0.00946044921875, 0.0340576171875, -0.034423828125, 0.03460693359375, -0.0189208984375, 0.0232086181640625, 0.00464630126953125, 0.02545166015625, 0.0117645263671875, -0.0282440185546875, 0.0269317626953125, -0.048583984375, 0.005603790283203125, 0.057769775390625, -0.01349639892578125, -0.0665283203125, -0.0322265625, -0.00751495361328125, 0.033660888671875, -0.05328369140625, 0.0041656494140625, -0.012725830078125, -0.050994873046875, -0.032318115234375, 0.03533935546875, -0.0291595458984375, -0.0200347900390625, -0.032989501953125, -0.0009775161743164062, -0.033294677734375, -0.0126800537109375, -0.06610107421875, -0.012481689453125, 0.002353668212890625, 0.00534820556640625, 0.0280914306640625, -0.00878143310546875, 0.0302886962890625, -0.040740966796875, 0.0013971328735351562, -0.017822265625, 0.0171356201171875, -0.0149383544921875, -0.028350830078125, -0.03515625, -0.0009746551513671875, -0.0528564453125, -0.0243682861328125, -0.006855010986328125, -0.019012451171875, -0.041595458984375, -0.0061798095703125, 0.00881195068359375, 0.043182373046875, -0.0013093948364257812, 0.00798797607421875, 0.005695343017578125, -0.0142669677734375, -0.01163482666015625, 0.03375244140625, -0.01507568359375, 0.0274810791015625, -0.0005469322204589844, 0.043548583984375, -0.01416778564453125, -0.01068878173828125, -0.0251617431640625, -0.01427459716796875, 0.0276031494140625, 0.01485443115234375, -0.034332275390625, -0.045379638671875, 0.010498046875, -0.0249481201171875, 0.042572021484375, -0.0277862548828125, -0.02099609375, -0.04754638671875, 0.003032684326171875, -0.0072021484375, 0.10137939453125, -0.0462646484375, -0.02130126953125, 0.036102294921875, -0.04852294921875, -0.05755615234375, 0.00420379638671875, 0.00136566162109375, 0.01088714599609375, -0.0166168212890625, -0.0305938720703125, 0.01629638671875, -0.08502197265625, 0.045257568359375, 0.0257110595703125, 0.016693115234375, 0.037322998046875, -0.01474761962890625, 0.02557373046875, 0.034576416015625, 0.0018911361694335938, -0.051025390625, 0.006748199462890625, 0.0218353271484375, -0.00885772705078125, -0.0240936279296875, -0.005184173583984375, -0.0178375244140625, 0.00955963134765625, 0.04058837890625, 0.03155517578125, -0.0845947265625, 0.00522613525390625, -0.00882720947265625, 0.00899505615234375, 0.01219940185546875, 0.013824462890625, -0.00800323486328125, -0.00302886962890625, 0.035980224609375, -0.02252197265625, -0.0178680419921875, 0.0209808349609375, 0.008331298828125, -0.017547607421875, -0.0188140869140625, -0.0206451416015625, 0.0157470703125, 0.004116058349609375, -0.0059661865234375, 0.023834228515625, -0.005207061767578125, -0.01416015625, 0.01201629638671875, -0.0037212371826171875, -0.0099029541015625, -0.05517578125, 0.00295257568359375, -0.0079345703125, -0.01335906982421875, 0.00836944580078125, -0.05609130859375, 0.07232666015625, 0.032989501953125, -0.0231475830078125, 0.01812744140625, -0.0121002197265625, 0.0287933349609375, -0.0114898681640625, 0.005306243896484375, 0.0101470947265625, -0.01288604736328125, 0.009857177734375, 0.00959014892578125, -0.027801513671875, -0.031494140625, -0.021728515625, 0.0129241943359375, 0.07769775390625, -0.05169677734375, -0.0120086669921875, 0.03594970703125, 0.0247955322265625, -0.0206298828125, -0.0242156982421875, 0.01062774658203125, -0.046722412109375, 0.0177154541015625, -0.0222930908203125, 0.0025615692138671875, -0.01236724853515625, -0.03497314453125, -0.02532958984375, 0.0621337890625, -0.00861358642578125, -0.0126495361328125, 0.0152435302734375, 0.04290771484375, -0.02880859375, 0.02490234375, -0.0222625732421875, 0.0211639404296875, -0.0276336669921875, -0.00876617431640625, -0.034515380859375, 0.0220794677734375, -0.032135009765625, -0.005657196044921875, 0.023681640625, 0.0020618438720703125, 0.0000024437904357910156, 0.0026092529296875, 0.028045654296875, 0.038055419921875, 0.0016021728515625, 0.0198211669921875, -0.00787353515625, 0.01462554931640625, 0.01788330078125, -0.0164642333984375, 0.03436279296875, -0.0224151611328125, -0.0284881591796875, 0.01776123046875, -0.004024505615234375, 0.00423431396484375, -0.040374755859375, 0.05084228515625, 0.06842041015625, -0.0643310546875, -0.041961669921875, -0.043731689453125, 0.020233154296875, 0.019622802734375, 0.027435302734375, 0.01338958740234375, -0.010528564453125, -0.01812744140625, 0.042938232421875, 0.0228424072265625, -0.0237579345703125, 0.039093017578125, 0.01529693603515625, -0.020111083984375, 0.005260467529296875, -0.00554656982421875, 0.00908660888671875, -0.0094757080078125, 0.03973388671875, 0.04229736328125, 0.048004150390625, 0.0037441253662109375, 0.01261138916015625, 0.004627227783203125, 0.04864501953125, -0.0308380126953125, -0.08001708984375, 0.01253509521484375, 0.003448486328125, 0.0006103515625, 0.050628662109375, 0.040740966796875, -0.024810791015625, 0.04559326171875, -0.031463623046875, -0.01446533203125, 0.0021266937255859375, 0.020477294921875, -0.01324462890625, -0.014892578125, 0.02294921875, -0.0174102783203125, -0.01052093505859375, 0.0236968994140625, 0.0163116455078125, -0.006633758544921875, -0.020843505859375, -0.0070648193359375, 0.0297088623046875, 0.022613525390625, -0.01261138916015625, 0.032501220703125, -0.020782470703125, 0.016204833984375, -0.0278778076171875, -0.05780029296875, 0.0126190185546875, 0.0379638671875, -0.00946807861328125, 0.005565643310546875, 0.060333251953125, 0.051239013671875, -0.0643310546875, -0.0343017578125, 0.0208892822265625, -0.033111572265625, 0.046112060546875, -0.0005354881286621094, 0.00965118408203125, 0.0280609130859375, -0.00832366943359375, -0.05279541015625, 0.0185546875, 0.04388427734375, -0.033782958984375, 0.046539306640625, -0.00669097900390625, 0.035614013671875, 0.07733154296875, -0.004673004150390625, -0.007476806640625, -0.00799560546875, -0.08367919921875, -0.035919189453125, 0.015960693359375, -0.0017490386962890625, 0.00335693359375, 0.0404052734375, -0.0106658935546875, -0.0030002593994140625, -0.01433563232421875, -0.046783447265625, -0.015228271484375, 0.0218505859375, 0.0293731689453125, 0.0224609375, -0.01369476318359375, 0.00927734375, -0.0751953125, -0.0181121826171875, -0.01361083984375, 0.0052337646484375, 0.036163330078125, 0.06280517578125, 0.0265350341796875, 0.0150299072265625, -0.005828857421875, 0.00469970703125, -0.0301971435546875, -0.020751953125, 0.03765869140625, -0.041046142578125, -0.028106689453125, 0.00634765625, 0.02764892578125, 0.048065185546875, 0.0092620849609375, -0.02178955078125, 0.00640869140625, -0.03607177734375, 0.006671905517578125, 0.0217437744140625, -0.0005340576171875, -0.0297698974609375, -0.01056671142578125, -0.0023040771484375, 0.004726409912109375, 0.0181121826171875, -0.0229339599609375, -0.02685546875, -0.00555419921875, 0.0114288330078125, -0.018035888671875, 0.001556396484375, 0.0308990478515625, -0.0219573974609375, 0.01184844970703125, 0.010650634765625, -0.019317626953125, 0.032867431640625, -0.007350921630859375, 0.002033233642578125, 0.01995849609375, 0.034881591796875, 0.0269775390625, -0.007022857666015625, -0.0285186767578125, -0.053863525390625, -0.0236663818359375, -0.0390625, -0.0105133056640625, -0.043731689453125, 0.0226287841796875, 0.02545166015625, 0.034820556640625, -0.0165557861328125, -0.0020465850830078125, -0.034423828125, -0.0018968582153320312, -0.019378662109375, -0.02886962890625, -0.03436279296875, 0.01068878173828125, 0.0207977294921875, 0.045684814453125, -0.08056640625, 0.09490966796875, -0.0222625732421875, -0.056732177734375, 0.01873779296875, -0.0126953125, 0.01004791259765625, 0.0196075439453125, -0.034210205078125, -0.01873779296875, -0.021240234375, 0.01220703125, -0.01152801513671875, 0.0419921875, 0.0213470458984375, -0.022064208984375, 0.0543212890625, 0.06048583984375, 0.036773681640625, 0.09613037109375, -0.0112457275390625, 0.005275726318359375, 0.01280975341796875, 0.033050537109375, -0.0239105224609375, -0.0518798828125, -0.0149993896484375, 0.01326751708984375, 0.0205230712890625, -0.054107666015625, 0.0020771026611328125, -0.01444244384765625, -0.04998779296875, -0.037506103515625, 0.036895751953125, 0.0065460205078125, -0.0162506103515625, -0.040924072265625, -0.0035610198974609375, -0.0239410400390625, 0.0004363059997558594, -0.0136260986328125, -0.0170440673828125, -0.030517578125, 0.04296875, 0.00543975830078125, 0.039154052734375, -0.0151824951171875, 0.0270233154296875, -0.0889892578125, -0.0182037353515625, -0.0582275390625, 0.0282440185546875, 0.00930023193359375, -0.0306396484375, 0.0262451171875, 0.0631103515625, -0.033935546875, -0.0439453125, -0.0189361572265625, -0.0113983154296875, 0.01349639892578125, -0.0092926025390625, -0.060089111328125, -0.0178375244140625, 0.047332763671875, 0.07867431640625, 0.0233306884765625, -0.037109375, -0.029144287109375, 0.018585205078125, -0.0374755859375, -0.0159912109375, 0.0269927978515625, -0.0655517578125, -0.0230255126953125, -0.006561279296875, -0.00476837158203125, 0.058074951171875, -0.008270263671875, 0.00574493408203125, 0.0167083740234375, 0.03057861328125, -0.0102996826171875, -0.0557861328125, 0.016143798828125, 0.0166778564453125, -0.00620269775390625, 0.0228271484375, -0.0205230712890625, 0.00205230712890625, 0.032073974609375, 0.0274810791015625, -0.0219573974609375, -0.01025390625, -0.0210418701171875, 0.003040313720703125, -0.0089111328125, 0.01116943359375, 0.002742767333984375, -0.0032558441162109375, -0.01043701171875, 0.0012216567993164062, -0.00518035888671875, -0.0115814208984375, 0.038909912109375, -0.01192474365234375, -0.0161590576171875, 0.06231689453125, 0.00356292724609375, 0.055267333984375, -0.004489898681640625, 0.039306640625, 0.004711151123046875, -0.031402587890625, 0.04949951171875, -0.0413818359375, -0.0159149169921875, -0.03533935546875, -0.00045609474182128906, -0.112548828125, 0.058258056640625, 0.01439666748046875, 0.018096923828125, 0.0491943359375 ]
49a403bf2d55f95352d547ec46c85651d42cbccd
Wordpress Stackexchange Q: How to restrict Front-End Editor on a page? I am working on a site where the user can do everything from the front end. I am using the plugin from scribu called front-end editor. My problem, is that I have a dashboard page with all the options for the user and I do not want the user to be able to edit it. How do I restrict a page from being able to be edited by Front-End Editor. I have read the wiki on github for it here https://github.com/scribu/wp-front-end-editor/wiki/Actions-and-filters and can't find anything about restricting pages. Only categories. A: From the GitHub-Wiki The 'front_end_editor_disable'-filter Use this filter if you want to completely disable the plugin for certain URLs. Callback arguments: bool $disable: The current state. Default: false You can use conditional tags: Conditionals tags return bool true/false, which means, if you want to disable it on a page, simply use is_page(), as it returns true for pages... Disable FEE on pages, as a (mu)plugin. <?php /** Plugin Name: (#73660) Disable Front Page Editor on pages */ function wpse73660_disable_on_author_pages( $disable ) { return is_author(); } add_filter( 'front_end_editor_disable', 'wpse73660_disable_on_author_pages' );
Q: How to restrict Front-End Editor on a page? I am working on a site where the user can do everything from the front end. I am using the plugin from scribu called front-end editor. My problem, is that I have a dashboard page with all the options for the user and I do not want the user to be able to edit it. How do I restrict a page from being able to be edited by Front-End Editor. I have read the wiki on github for it here https://github.com/scribu/wp-front-end-editor/wiki/Actions-and-filters and can't find anything about restricting pages. Only categories. A: From the GitHub-Wiki The 'front_end_editor_disable'-filter Use this filter if you want to completely disable the plugin for certain URLs. Callback arguments: bool $disable: The current state. Default: false You can use conditional tags: Conditionals tags return bool true/false, which means, if you want to disable it on a page, simply use is_page(), as it returns true for pages... Disable FEE on pages, as a (mu)plugin. <?php /** Plugin Name: (#73660) Disable Front Page Editor on pages */ function wpse73660_disable_on_author_pages( $disable ) { return is_author(); } add_filter( 'front_end_editor_disable', 'wpse73660_disable_on_author_pages' );
wordpress
{ "language": "en", "length": 189, "provenance": "stackexchange_00019.jsonl.gz:426103", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73660" }
[ 0.0295562744140625, -0.001842498779296875, -0.01483154296875, -0.0211029052734375, 0.015899658203125, -0.0265045166015625, 0.00481414794921875, -0.00836181640625, 0.04937744140625, 0.0029506683349609375, 0.0096435546875, -0.054962158203125, 0.032989501953125, -0.060028076171875, -0.0159454345703125, -0.0146331787109375, 0.00441741943359375, 0.0299072265625, 0.044677734375, -0.00606536865234375, 0.0247039794921875, -0.01476287841796875, -0.005130767822265625, -0.01116180419921875, 0.0281524658203125, -0.007373809814453125, 0.052947998046875, -0.02435302734375, 0.0202484130859375, -0.012115478515625, 0.0249176025390625, -0.0291748046875, 0.0224456787109375, 0.043731689453125, -0.072265625, 0.046630859375, -0.01062774658203125, 0.0100555419921875, -0.01064300537109375, 0.019775390625, 0.06085205078125, -0.019378662109375, -0.07958984375, 0.062225341796875, -0.04632568359375, -0.06854248046875, 0.08172607421875, -0.01181793212890625, 0.026885986328125, 0.04681396484375, -0.048370361328125, 0.004375457763671875, -0.050567626953125, -0.0019140243530273438, 0.003818511962890625, -0.02984619140625, 0.00577545166015625, -0.0167236328125, 0.00482940673828125, 0.0261993408203125, 0.01012420654296875, 0.01535797119140625, 0.006687164306640625, -0.009613037109375, 0.040802001953125, -0.0159454345703125, -0.01100921630859375, 0.05718994140625, -0.029632568359375, 0.04241943359375, 0.00942230224609375, -0.06475830078125, 0.0134735107421875, -0.0030345916748046875, -0.06964111328125, -0.03619384765625, 0.031219482421875, -0.01641845703125, 0.0135955810546875, -0.0312042236328125, -0.037445068359375, 0.0192413330078125, -0.08831787109375, 0.01134490966796875, -0.0301361083984375, 0.023712158203125, -0.035430908203125, -0.0028018951416015625, -0.0186767578125, 0.0294342041015625, -0.00629425048828125, 0.0016889572143554688, -0.0109405517578125, 0.0268707275390625, 0.00638580322265625, -0.010772705078125, 0.041656494140625, 0.0428466796875, -0.0239105224609375, -0.01239013671875, 0.047393798828125, -0.06683349609375, 0.056854248046875, -0.03668212890625, 0.0157928466796875, 0.0784912109375, -0.01560211181640625, -0.0036029815673828125, 0.031402587890625, 0.008758544921875, 0.033843994140625, 0.001949310302734375, -0.0208740234375, -0.0180511474609375, 0.0099029541015625, -0.00754547119140625, -0.05963134765625, 0.037994384765625, 0.002735137939453125, 0.01248931884765625, -0.0169830322265625, 0.0036602020263671875, 0.0253753662109375, -0.0238189697265625, 0.0145416259765625, -0.0102996826171875, -0.0228729248046875, -0.01546478271484375, 0.049468994140625, 0.016693115234375, -0.042694091796875, -0.01110076904296875, 0.076416015625, 0.0433349609375, 0.04193115234375, -0.025390625, 0.0175933837890625, -0.00727081298828125, 0.005954742431640625, 0.02642822265625, -0.029205322265625, -0.034942626953125, -0.0019006729125976562, -0.01239776611328125, -0.02667236328125, -0.0195465087890625, 0.0183563232421875, 0.03717041015625, -0.01496124267578125, -0.039154052734375, 0.0280609130859375, -0.00940704345703125, 0.04449462890625, 0.00655364990234375, -0.0014333724975585938, -0.02764892578125, 0.057373046875, -0.028350830078125, -0.0250396728515625, -0.04840087890625, 0.01055908203125, 0.02215576171875, 0.0546875, -0.055694580078125, -0.0289459228515625, -0.05352783203125, -0.05694580078125, -0.00673675537109375, 0.0108642578125, 0.019561767578125, -0.036895751953125, -0.01104736328125, -0.01274871826171875, 0.0128631591796875, -0.00878143310546875, 0.054351806640625, -0.0114593505859375, -0.0075836181640625, 0.0182342529296875, 0.0322265625, -0.00955963134765625, -0.0269012451171875, 0.0367431640625, -0.00447845458984375, -0.0797119140625, -0.01300048828125, 0.0221099853515625, 0.04150390625, 0.0225830078125, 0.01105499267578125, 0.0906982421875, 0.0007600784301757812, -0.0166473388671875, -0.032684326171875, 0.0077056884765625, -0.04071044921875, 0.01306915283203125, -0.031341552734375, 0.0086517333984375, 0.045745849609375, 0.07794189453125, -0.0186614990234375, 0.0268707275390625, -0.06988525390625, -0.10736083984375, -0.0180511474609375, -0.027069091796875, 0.03289794921875, 0.0177001953125, 0.0169830322265625, 0.02044677734375, 0.008209228515625, -0.047088623046875, 0.0290069580078125, -0.033782958984375, -0.0225372314453125, -0.0015668869018554688, 0.048828125, 0.0181732177734375, 0.0214080810546875, 0.033172607421875, -0.01934814453125, 0.034515380859375, 0.00597381591796875, 0.0251922607421875, -0.0192413330078125, -0.0053253173828125, -0.028106689453125, 0.0302886962890625, -0.00957489013671875, 0.01425933837890625, 0.0272064208984375, 0.060089111328125, 0.0161590576171875, -0.0212860107421875, 0.00405120849609375, 0.0037937164306640625, -0.0826416015625, -0.0293426513671875, 0.061553955078125, 0.04608154296875, 0.005939483642578125, -0.0106658935546875, -0.0126190185546875, 0.0249481201171875, -0.081787109375, -0.009368896484375, -0.0007462501525878906, 0.0260467529296875, 0.033233642578125, -0.0513916015625, -0.002223968505859375, 0.041473388671875, -0.02166748046875, 0.019775390625, 0.0499267578125, -0.01157379150390625, 0.0012617111206054688, 0.0269012451171875, -0.0152587890625, 0.0038661956787109375, -0.00010508298873901367, -0.0070953369140625, -0.00777435302734375, -0.006450653076171875, 0.007183074951171875, 0.024810791015625, 0.028106689453125, -0.0205230712890625, -0.01026153564453125, 0.029937744140625, 0.040740966796875, -0.0008382797241210938, 0.0170440673828125, 0.051300048828125, -0.0197906494140625, -0.03424072265625, -0.0113677978515625, 0.01456451416015625, 0.0047149658203125, -0.01557159423828125, -0.0008988380432128906, -0.00415802001953125, -0.004421234130859375, 0.0006613731384277344, -0.052001953125, 0.0262451171875, -0.01146697998046875, -0.031097412109375, -0.0439453125, -0.0140533447265625, -0.0187835693359375, -0.04388427734375, 0.0076141357421875, 0.01873779296875, -0.04632568359375, 0.0169677734375, -0.043670654296875, 0.046783447265625, -0.0213623046875, 0.066162109375, 0.06231689453125, -0.01117706298828125, 0.031280517578125, 0.005611419677734375, -0.04937744140625, 0.01198577880859375, 0.0174560546875, -0.01183319091796875, -0.0009417533874511719, -0.07421875, -0.01049041748046875, 0.00971221923828125, -0.02020263671875, -0.007770538330078125, -0.0297088623046875, -0.0297088623046875, 0.007709503173828125, -0.041656494140625, 0.017059326171875, 0.0294189453125, -0.059478759765625, 0.000911712646484375, 0.004070281982421875, -0.032806396484375, -0.0235595703125, 0.04608154296875, -0.0093841552734375, -0.00891876220703125, 0.0013561248779296875, -0.0264892578125, -0.006076812744140625, -0.0294952392578125, -0.0151824951171875, -0.00759124755859375, -0.0068511962890625, -0.00812530517578125, 0.09356689453125, -0.005458831787109375, -0.070068359375, -0.0295562744140625, -0.040618896484375, -0.00962066650390625, 0.012939453125, -0.004302978515625, 0.00977325439453125, 0.0021533966064453125, 0.017822265625, -0.0297088623046875, -0.0019369125366210938, 0.00646209716796875, -0.0230255126953125, -0.0307769775390625, 0.006015777587890625, -0.02813720703125, 0.0303802490234375, 0.0445556640625, -0.01120758056640625, 0.000682830810546875, -0.038360595703125, -0.006900787353515625, 0.0021381378173828125, -0.03314208984375, 0.004619598388671875, -0.00579071044921875, -0.0108489990234375, 0.033172607421875, 0.01540374755859375, 0.0491943359375, 0.036651611328125, 0.0257720947265625, 0.028411865234375, -0.012786865234375, -0.0009188652038574219, 0.018951416015625, -0.045440673828125, 0.015869140625, -0.0072021484375, 0.0145111083984375, 0.0089111328125, 0.0316162109375, 0.006710052490234375, 0.00765228271484375, -0.0240325927734375, -0.0207977294921875, 0.033843994140625, -0.04058837890625, -0.009918212890625, -0.01418304443359375, -0.0053558349609375, 0.002315521240234375, 0.04351806640625, -0.039337158203125, -0.01525115966796875, 0.002044677734375, -0.0084228515625, 0.01192474365234375, 0.010650634765625, -0.025177001953125, -0.0167388916015625, -0.0679931640625, 0.01432037353515625, -0.01910400390625, -0.016265869140625, 0.0010004043579101562, -0.0511474609375, -0.0207977294921875, -0.04327392578125, 0.023040771484375, -0.0487060546875, -0.0225372314453125, 0.04913330078125, -0.0667724609375, 0.01528167724609375, -0.048980712890625, -0.021240234375, -0.053619384765625, -0.001621246337890625, -0.01508331298828125, 0.0231475830078125, -0.00910186767578125, 0.015380859375, -0.021331787109375, 0.0212554931640625, 0.038543701171875, 0.00994110107421875, 0.01078033447265625, -0.010040283203125, 0.01715087890625, -0.0276947021484375, 0.0167083740234375, -0.029022216796875, 0.01439666748046875, 0.0242156982421875, -0.028045654296875, 0.01143646240234375, -0.036712646484375, -0.03277587890625, 0.00908660888671875, -0.05682373046875, -0.0562744140625, -0.057952880859375, -0.05413818359375, -0.00797271728515625, -0.0027637481689453125, -0.02880859375, -0.06634521484375, -0.0792236328125, 0.043609619140625, -0.0310821533203125, -0.0103302001953125, 0.004695892333984375, 0.0855712890625, 0.02178955078125, -0.005352020263671875, 0.03778076171875, 0.00033974647521972656, 0.03839111328125, 0.0123748779296875, 0.0347900390625, 0.0215606689453125, -0.0416259765625, 0.064208984375, 0.0165557861328125, -0.0195159912109375, -0.045623779296875, 0.0396728515625, 0.00566864013671875, -0.0221099853515625, 0.01116180419921875, -0.021026611328125, 0.0672607421875, -0.023895263671875, -0.043060302734375, 0.053436279296875, 0.00782012939453125, -0.00722503662109375, -0.0245819091796875, 0.018585205078125, 0.005214691162109375, 0.00098419189453125, -0.0237884521484375, 0.0289459228515625, 0.06671142578125, 0.063720703125, -0.002635955810546875, 0.0116729736328125, 0.03192138671875, -0.0170440673828125, 0.026397705078125, 0.0007128715515136719, -0.0160980224609375, 0.04180908203125, -0.0428466796875, -0.0269775390625, 0.011260986328125, -0.00962066650390625, 0.043670654296875, -0.03472900390625, -0.046051025390625, -0.0267791748046875, -0.021820068359375, 0.02362060546875, 0.0229339599609375, 0.0010919570922851562, 0.0285797119140625, 0.001750946044921875, -0.036224365234375, 0.0016384124755859375, 0.01424407958984375, -0.031585693359375, -0.041229248046875, -0.01296234130859375, 0.007732391357421875, -0.02398681640625, -0.0288543701171875, 0.034637451171875, -0.0037250518798828125, -0.01078033447265625, -0.001956939697265625, 0.03900146484375, 0.041290283203125, -0.002407073974609375, 0.0010280609130859375, 0.03179931640625, 0.0021686553955078125, -0.0221405029296875, 0.02655029296875, -0.00679779052734375, -0.020233154296875, 0.0369873046875, -0.007904052734375, 0.0265350341796875, 0.0266265869140625, -0.0189208984375, 0.026123046875, -0.007480621337890625, 0.032684326171875, 0.0303802490234375, -0.03680419921875, 0.0032978057861328125, 0.029296875, -0.004199981689453125, -0.0184783935546875, 0.004245758056640625, -0.0257720947265625, 0.01015472412109375, 0.0044097900390625, 0.0276336669921875, -0.04913330078125, 0.00650787353515625, 0.019775390625, -0.0173492431640625, -0.0054779052734375, 0.00383758544921875, -0.06744384765625, -0.0020122528076171875, -0.02606201171875, -0.01146697998046875, 0.04180908203125, -0.0362548828125, 0.022552490234375, -0.0240325927734375, 0.007061004638671875, 0.018646240234375, 0.006183624267578125, 0.057373046875, 0.03271484375, -0.055419921875, -0.01161956787109375, -0.06854248046875, -0.0212554931640625, -0.040008544921875, -0.023406982421875, -0.036224365234375, 0.005870819091796875, -0.0025730133056640625, 0.0299072265625, -0.014984130859375, -0.016815185546875, 0.0112152099609375, 0.0265350341796875, 0.0005254745483398438, 0.0865478515625, -0.006221771240234375, 0.07391357421875, -0.0241851806640625, 0.03936767578125, 0.004344940185546875, 0.019195556640625, -0.0253753662109375, -0.0138702392578125, 0.0035495758056640625, -0.0474853515625, -0.0278472900390625, -0.021331787109375, -0.04949951171875, 0.04168701171875, 0.055450439453125, 0.006198883056640625, 0.014007568359375, -0.00859832763671875, -0.00855255126953125, -0.0225067138671875, -0.01157379150390625, -0.0146636962890625, 0.0198974609375, -0.0203399658203125, -0.0079193115234375, 0.02996826171875, -0.0222320556640625, -0.050628662109375, 0.0467529296875, 0.00115203857421875, 0.0272064208984375, 0.024383544921875, 0.00577545166015625, 0.02838134765625, 0.0806884765625, 0.00449371337890625, 0.06396484375, 0.0249786376953125, 0.0256195068359375, 0.041015625, 0.0035076141357421875, -0.046661376953125, 0.033660888671875, 0.00270843505859375, -0.009735107421875, -0.007427215576171875, -0.0035724639892578125, 0.0024814605712890625, 0.03350830078125, 0.047149658203125, 0.08062744140625, -0.0859375, 0.0217742919921875, 0.04150390625, 0.000823974609375, 0.03271484375, -0.00768280029296875, -0.0014219284057617188, -0.0215301513671875, 0.059600830078125, -0.0202789306640625, -0.0015926361083984375, 0.0290069580078125, -0.005157470703125, -0.0133819580078125, -0.0272674560546875, 0.079345703125, 0.0190887451171875, 0.0083770751953125, -0.0156097412109375, 0.00490570068359375, -0.01416778564453125, -0.025390625, 0.01398468017578125, -0.0223846435546875, -0.040374755859375, -0.044586181640625, -0.0037384033203125, 0.0462646484375, -0.01192474365234375, 0.049102783203125, -0.0115814208984375, 0.0037555694580078125, 0.027557373046875, -0.026031494140625, 0.041412353515625, -0.01019287109375, -0.0157623291015625, -0.007167816162109375, -0.040985107421875, -0.00508880615234375, 0.01079559326171875, -0.038116455078125, 0.019073486328125, 0.0013914108276367188, -0.03759765625, -0.012603759765625, 0.01444244384765625, 0.09698486328125, 0.028564453125, -0.05859375, 0.0193328857421875, -0.025604248046875, -0.02288818359375, -0.032928466796875, -0.02740478515625, -0.048828125, -0.007434844970703125, -0.03485107421875, -0.0447998046875, 0.033538818359375, -0.032135009765625, -0.04815673828125, 0.09613037109375, -0.0184326171875, 0.00887298583984375, 0.016693115234375, 0.0418701171875, -0.0419921875, 0.00608062744140625, -0.0310211181640625, 0.0321044921875, 0.0109710693359375, 0.038726806640625, -0.0235137939453125, -0.016357421875, 0.01168060302734375, 0.039276123046875, 0.0390625, 0.0257720947265625, -0.00705718994140625, -0.01593017578125, -0.00011479854583740234, -0.014312744140625, -0.054779052734375, 0.053802490234375, -0.00727081298828125, -0.006420135498046875, -0.0017423629760742188, -0.032623291015625, 0.02728271484375, -0.0673828125, -0.007843017578125, 0.01013946533203125, 0.0184173583984375, 0.0238189697265625, -0.0189666748046875, -0.0011768341064453125, -0.004535675048828125, -0.0187835693359375, 0.0103302001953125, -0.0196533203125, -0.062408447265625, 0.06060791015625, 0.03277587890625, -0.0279388427734375, -0.00977325439453125, -0.041412353515625, 0.054168701171875, 0.039031982421875, -0.011444091796875, 0.0286865234375, 0.0288238525390625, -0.052032470703125, 0.0014467239379882812, 0.014678955078125, 0.0228118896484375, -0.03509521484375, 0.0018472671508789062, 0.00458526611328125, 0.023712158203125, -0.0083770751953125, 0.0152435302734375, 0.017578125, -0.0076141357421875, -0.0030040740966796875, -0.0390625, -0.0022983551025390625, -0.03546142578125, -0.00933837890625, 0.0169219970703125, -0.0014476776123046875, 0.01071929931640625, 0.026092529296875, -0.0323486328125, -0.0010061264038085938, 0.003467559814453125, 0.03076171875, -0.0194549560546875, -0.0262451171875, 0.006450653076171875, 0.00217437744140625, -0.0306854248046875, -0.036163330078125, -0.005474090576171875, 0.00974273681640625, 0.051788330078125, -0.006134033203125, 0.060882568359375, -0.0011386871337890625, -0.056732177734375, 0.02728271484375, -0.007091522216796875, 0.070556640625, -0.08984375, -0.0299224853515625, 0.0198974609375, 0.052215576171875, -0.00264739990234375, 0.0435791015625, 0.01161956787109375, 0.01690673828125, 0.0274658203125, 0.0009050369262695312, 0.05291748046875, -0.007781982421875, -0.040985107421875, -0.0065765380859375, -0.039764404296875, -0.0089263916015625, -0.01393890380859375, 0.011962890625, 0.046051025390625, -0.0389404296875, -0.0158233642578125, -0.01514434814453125, 0.007503509521484375, -0.01061248779296875, 0.0025310516357421875, 0.023345947265625, -0.0513916015625, 0.015625, -0.08514404296875, 0.003940582275390625, -0.036407470703125, -0.044647216796875, 0.006500244140625, 0.028594970703125, -0.059814453125, 0.06494140625, 0.005535125732421875, -0.0179290771484375, 0.0079193115234375, 0.0032596588134765625, 0.005664825439453125, 0.0108642578125, 0.0135650634765625, -0.0199432373046875, -0.00164794921875, -0.00041103363037109375, 0.00838470458984375, 0.029937744140625, -0.0016717910766601562, 0.0872802734375, -0.0285797119140625, -0.0015506744384765625, 0.0023899078369140625, 0.005016326904296875, -0.0024738311767578125, -0.03192138671875, 0.0384521484375, 0.00554656982421875, 0.0119476318359375, -0.0158843994140625, -0.05517578125, 0.032135009765625, 0.0213623046875, -0.001605987548828125, 0.0246734619140625, -0.012786865234375, 0.00965118408203125, 0.0018033981323242188, 0.01239013671875, -0.0195770263671875, -0.027252197265625, -0.0256805419921875, -0.003879547119140625, 0.011505126953125, 0.0181884765625, -0.0021305084228515625, 0.02032470703125, 0.005706787109375, -0.025665283203125, -0.00807952880859375, -0.0191650390625, -0.0217437744140625, 0.0207366943359375, 0.02264404296875, -0.0016574859619140625, 0.00864410400390625, -0.0091400146484375, -0.0091552734375, 0.0251007080078125, -0.006198883056640625, 0.006778717041015625, -0.042266845703125, -0.0251007080078125, 0.01215362548828125, 0.0159759521484375, -0.011627197265625, 0.013275146484375, 0.01409912109375, -0.0260162353515625, -0.03485107421875, -0.0279388427734375, -0.01076507568359375, -0.01132965087890625, -0.01534271240234375, 0.0176544189453125, 0.009796142578125, -0.058929443359375, -0.0224151611328125, 0.0236968994140625, 0.0260162353515625, -0.01495361328125, -0.045379638671875, 0.01384735107421875, -0.038482666015625, 0.08660888671875, -0.0234527587890625, 0.03662109375, -0.0171356201171875, -0.01666259765625, -0.054779052734375, -0.007396697998046875, -0.0191650390625, 0.020538330078125, -0.00658416748046875, 0.0126495361328125, 0.064208984375, -0.002819061279296875, -0.0283660888671875, 0.005886077880859375, -0.024566650390625, 0.0615234375, -0.061767578125, -0.019744873046875, -0.0032825469970703125, 0.02716064453125, 0.0171356201171875, -0.04949951171875, -0.0224151611328125, 0.0093994140625, 0.0199737548828125, -0.0174407958984375, -0.020050048828125, -0.0006384849548339844, -0.05157470703125, -0.0660400390625, -0.0011854171752929688, 0.0160980224609375, -0.036102294921875, 0.0241241455078125, -0.02313232421875, -0.019866943359375, 0.0233306884765625, 0.025146484375, -0.04412841796875, -0.0190582275390625, 0.0006895065307617188, 0.0109100341796875, 0.039825439453125, 0.0214080810546875, -0.003398895263671875, -0.030120849609375, -0.007137298583984375, -0.0195770263671875, 0.0066070556640625, -0.016357421875, 0.0313720703125, -0.00603485107421875, 0.0318603515625, -0.01715087890625, 0.0183563232421875, -0.0193023681640625, -0.002071380615234375, -0.01528167724609375, -0.01297760009765625, -0.023651123046875, -0.0095672607421875, 0.07049560546875, 0.058197021484375, 0.0173187255859375, -0.03607177734375, 0.00992584228515625, 0.006397247314453125, -0.0302581787109375, 0.00501251220703125, 0.0209503173828125, -0.04541015625, -0.00279998779296875, 0.0007410049438476562, -0.00838470458984375, 0.0191650390625, 0.022369384765625, -0.0309906005859375, -0.000023186206817626953, 0.004047393798828125, -0.01074981689453125, -0.07232666015625, -0.004245758056640625, 0.0233306884765625, -0.0439453125, -0.026275634765625, 0.006816864013671875, 0.0034961700439453125, -0.00571441650390625, -0.006755828857421875, -0.05194091796875, -0.00859832763671875, -0.0277862548828125, 0.017608642578125, -0.025390625, 0.068603515625, -0.0263671875, 0.0316162109375, -0.006465911865234375, 0.016754150390625, -0.01983642578125, 0.01209259033203125, 0.0057373046875, 0.045806884765625, -0.005550384521484375, 0.07861328125, -0.0022983551025390625, 0.0032672882080078125, -0.0019397735595703125, 0.0023040771484375, -0.003124237060546875, 0.008270263671875, 0.01175689697265625, -0.0158843994140625, 0.0231475830078125, 0.020538330078125, 0.01125335693359375, 0.01053619384765625, 0.004901885986328125, -0.0877685546875, 0.0010881423950195312, 0.004192352294921875 ]
ee34ab7245e9f0cdcaebe1ee519622cecc8c9de0
Wordpress Stackexchange Q: Add script to footer - on post editor How do you add a script on the footer of the post editor ? I'm adding a meta box under the post editor and I need to include a javascript before the closing body tag (on the footer) How do I achieve this ? The script is not needed on the front-end just on that meta_box (just on the post editor page) A: Hook into 'admin_footer-post-new.php' and 'admin_footer-post.php', check the global variable $post_type: add_action( 'admin_footer-post-new.php', 'wpse_73692_script' ); add_action( 'admin_footer-post.php', 'wpse_73692_script' ); function wpse_73692_script() { if ( 'post' !== $GLOBALS['post_type'] ) return; ?> <script>alert( '<?php echo $GLOBALS['post_type'];?>' );</script> <?php }
Q: Add script to footer - on post editor How do you add a script on the footer of the post editor ? I'm adding a meta box under the post editor and I need to include a javascript before the closing body tag (on the footer) How do I achieve this ? The script is not needed on the front-end just on that meta_box (just on the post editor page) A: Hook into 'admin_footer-post-new.php' and 'admin_footer-post.php', check the global variable $post_type: add_action( 'admin_footer-post-new.php', 'wpse_73692_script' ); add_action( 'admin_footer-post.php', 'wpse_73692_script' ); function wpse_73692_script() { if ( 'post' !== $GLOBALS['post_type'] ) return; ?> <script>alert( '<?php echo $GLOBALS['post_type'];?>' );</script> <?php }
wordpress
{ "language": "en", "length": 108, "provenance": "stackexchange_00019.jsonl.gz:426112", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73692" }
[ 0.035614013671875, 0.0049896240234375, -0.01209259033203125, -0.0108795166015625, 0.0112762451171875, -0.03179931640625, 0.03045654296875, -0.02349853515625, -0.024444580078125, 0.0021800994873046875, -0.0377197265625, 0.01248931884765625, -0.01824951171875, -0.0219573974609375, 0.01497650146484375, -0.048553466796875, 0.06561279296875, -0.01186370849609375, 0.050445556640625, -0.003131866455078125, -0.0015439987182617188, 0.0433349609375, 0.048248291015625, 0.07958984375, -0.032073974609375, 0.01059722900390625, 0.10906982421875, 0.00788116455078125, -0.0249481201171875, -0.01331329345703125, 0.0105133056640625, -0.0174102783203125, 0.008087158203125, 0.0222625732421875, -0.00946044921875, 0.0236053466796875, -0.003528594970703125, 0.0223541259765625, 0.025604248046875, 0.01629638671875, 0.0193328857421875, -0.010986328125, -0.0010213851928710938, 0.042694091796875, -0.030609130859375, -0.017333984375, -0.0006518363952636719, -0.03741455078125, 0.0020160675048828125, -0.0174713134765625, -0.016204833984375, -0.0009908676147460938, 0.007312774658203125, -0.0186767578125, -0.00533294677734375, 0.00605010986328125, -0.0169830322265625, -0.0038127899169921875, 0.0096435546875, 0.051361083984375, 0.00960540771484375, 0.030059814453125, -0.01439666748046875, -0.03369140625, -0.020538330078125, -0.01155853271484375, -0.041412353515625, 0.0011615753173828125, -0.019073486328125, -0.01300048828125, 0.01702880859375, -0.035369873046875, -0.0010423660278320312, -0.005672454833984375, 0.028411865234375, -0.00597381591796875, -0.01453399658203125, 0.025665283203125, 0.01934814453125, 0.03131103515625, 0.021240234375, 0.048431396484375, 0.00489044189453125, -0.04644775390625, -0.0004203319549560547, -0.0293426513671875, -0.0220947265625, -0.01352691650390625, -0.0655517578125, -0.0701904296875, -0.0452880859375, -0.06402587890625, -0.06512451171875, -0.034210205078125, -0.0223541259765625, -0.033294677734375, 0.02923583984375, 0.03619384765625, -0.01061248779296875, 0.01068878173828125, 0.025115966796875, -0.058807373046875, 0.0587158203125, -0.04071044921875, -0.005001068115234375, 0.045806884765625, 0.00362396240234375, -0.0276641845703125, -0.002590179443359375, 0.0025196075439453125, -0.00092315673828125, -0.03851318359375, 0.01568603515625, 0.0230560302734375, -0.0218505859375, -0.0252685546875, -0.031982421875, 0.0194091796875, -0.020660400390625, 0.0189361572265625, 0.00208282470703125, 0.017669677734375, -0.00569915771484375, -0.0294189453125, 0.010498046875, -0.01154327392578125, -0.016204833984375, -0.01554107666015625, 0.0163726806640625, 0.0278472900390625, -0.03021240234375, 0.00815582275390625, 0.06683349609375, 0.0313720703125, 0.00795745849609375, -0.0382080078125, 0.01861572265625, -0.0254974365234375, -0.0034656524658203125, 0.01204681396484375, -0.04901123046875, -0.04583740234375, 0.011688232421875, -0.0413818359375, -0.0286102294921875, 0.051971435546875, 0.006069183349609375, -0.021728515625, -0.0091400146484375, -0.05126953125, -0.01132965087890625, -0.0633544921875, 0.03240966796875, -0.006198883056640625, 0.0012216567993164062, -0.048309326171875, 0.0083160400390625, -0.03155517578125, 0.00981903076171875, -0.022125244140625, -0.02020263671875, 0.021575927734375, 0.055145263671875, -0.04534912109375, -0.0286865234375, -0.03814697265625, -0.05474853515625, -0.0085601806640625, 0.0187530517578125, 0.01904296875, 0.01995849609375, -0.0113372802734375, -0.005397796630859375, -0.0208740234375, -0.0183868408203125, -0.0177001953125, -0.018951416015625, 0.038299560546875, 0.040374755859375, -0.044586181640625, -0.0308074951171875, -0.045440673828125, 0.0673828125, -0.024871826171875, -0.04345703125, 0.01114654541015625, 0.01485443115234375, 0.0450439453125, 0.0224609375, 0.020751953125, 0.02197265625, 0.00853729248046875, 0.0031681060791015625, -0.033538818359375, 0.018096923828125, -0.022369384765625, -0.019683837890625, -0.0271453857421875, -0.00508880615234375, 0.0181884765625, -0.026031494140625, 0.01593017578125, 0.0011873245239257812, 0.0222320556640625, 0.0278778076171875, -0.002017974853515625, -0.0013742446899414062, 0.02093505859375, 0.039398193359375, -0.00829315185546875, -0.01432037353515625, -0.017486572265625, 0.0283355712890625, -0.057647705078125, -0.047760009765625, 0.03900146484375, -0.0296173095703125, 0.055816650390625, 0.0005636215209960938, 0.04376220703125, -0.007396697998046875, -0.0280609130859375, 0.00682830810546875, -0.049835205078125, 0.0223388671875, 0.0270538330078125, -0.0362548828125, -0.007781982421875, 0.00540924072265625, 0.01495361328125, -0.036285400390625, 0.0592041015625, 0.0091094970703125, 0.003635406494140625, -0.0283966064453125, -0.0162506103515625, -0.020599365234375, -0.07275390625, -0.004535675048828125, 0.0662841796875, 0.03790283203125, 0.0780029296875, -0.000010609626770019531, 0.005664825439453125, 0.040283203125, -0.040802001953125, 0.0191650390625, -0.0216522216796875, 0.01085662841796875, 0.05902099609375, -0.0259246826171875, 0.007965087890625, 0.01525115966796875, -0.052154541015625, -0.003833770751953125, 0.053375244140625, 0.004009246826171875, -0.00820159912109375, 0.0338134765625, -0.03192138671875, 0.0252532958984375, -0.020477294921875, -0.05462646484375, 0.00514984130859375, 0.0291595458984375, 0.015899658203125, 0.041107177734375, 0.038360595703125, -0.043670654296875, 0.004413604736328125, 0.0178375244140625, 0.0350341796875, -0.003543853759765625, 0.003459930419921875, 0.01189422607421875, -0.00567626953125, -0.02880859375, 0.0025577545166015625, 0.032379150390625, -0.0029754638671875, -0.0005211830139160156, -0.0093841552734375, -0.0177459716796875, -0.01122283935546875, 0.0384521484375, -0.0207061767578125, 0.01222991943359375, 0.003971099853515625, 0.0237579345703125, -0.0023040771484375, 0.042327880859375, -0.0210113525390625, -0.0195465087890625, 0.01325225830078125, 0.0263519287109375, -0.0579833984375, 0.06842041015625, -0.0027484893798828125, 0.0150909423828125, 0.01024627685546875, 0.07940673828125, 0.0479736328125, 0.010101318359375, -0.0031452178955078125, -0.01202392578125, 0.0018072128295898438, -0.022796630859375, -0.003520965576171875, -0.0254974365234375, -0.03460693359375, -0.0270843505859375, 0.017242431640625, 0.0158843994140625, 0.023406982421875, 0.00377655029296875, -0.0389404296875, 0.007366180419921875, -0.0009579658508300781, -0.08026123046875, -0.0811767578125, 0.033203125, -0.1236572265625, 0.007175445556640625, -0.01837158203125, -0.07586669921875, -0.022979736328125, 0.0535888671875, 0.007717132568359375, -0.0389404296875, -0.032958984375, -0.03515625, -0.0484619140625, -0.046295166015625, -0.00005829334259033203, -0.00714111328125, -0.00797271728515625, 0.0082244873046875, 0.03302001953125, -0.01038360595703125, -0.063232421875, 0.00727081298828125, -0.03436279296875, -0.01105499267578125, 0.038818359375, 0.0251922607421875, -0.037200927734375, -0.021881103515625, 0.000782012939453125, -0.046051025390625, 0.01849365234375, -0.0007958412170410156, -0.01297760009765625, -0.034698486328125, -0.03656005859375, -0.003696441650390625, 0.0190277099609375, 0.01065826416015625, -0.039154052734375, 0.015960693359375, -0.07025146484375, 0.0170135498046875, 0.0286865234375, 0.004665374755859375, -0.040557861328125, -0.02032470703125, -0.033294677734375, 0.00307464599609375, 0.0005254745483398438, 0.0535888671875, 0.0237884521484375, 0.0239105224609375, 0.0225830078125, -0.0247802734375, -0.00022912025451660156, 0.03253173828125, -0.03900146484375, 0.02630615234375, -0.00406646728515625, 0.00225067138671875, -0.006664276123046875, 0.036346435546875, -0.0013475418090820312, 0.01898193359375, -0.039398193359375, -0.040130615234375, 0.0301055908203125, -0.01436614990234375, 0.0104217529296875, -0.043365478515625, -0.00958251953125, -0.0195465087890625, 0.060943603515625, -0.044097900390625, -0.0022296905517578125, -0.017730712890625, -0.0078125, -0.0188140869140625, -0.0169525146484375, -0.0548095703125, 0.0005545616149902344, -0.07879638671875, 0.038177490234375, -0.00386810302734375, -0.002986907958984375, -0.050872802734375, 0.0615234375, -0.050262451171875, -0.039337158203125, 0.021514892578125, -0.09112548828125, -0.03143310546875, 0.04449462890625, -0.06512451171875, 0.01549530029296875, -0.015228271484375, -0.060760498046875, -0.034881591796875, -0.01531982421875, -0.043975830078125, 0.06805419921875, 0.026580810546875, -0.00972747802734375, -0.01425933837890625, 0.0246429443359375, -0.005077362060546875, -0.004299163818359375, 0.0001652240753173828, 0.03509521484375, -0.011810302734375, -0.048370361328125, -0.017059326171875, -0.0509033203125, -0.0031147003173828125, 0.01085662841796875, -0.0008535385131835938, 0.037017822265625, -0.01947021484375, -0.0015192031860351562, 0.03057861328125, -0.0209808349609375, 0.00882720947265625, -0.0205230712890625, 0.0086517333984375, 0.013458251953125, 0.0068206787109375, -0.00797271728515625, -0.01373291015625, 0.00432586669921875, -0.0033016204833984375, -0.00433349609375, -0.022186279296875, 0.02093505859375, 0.0305938720703125, 0.025115966796875, -0.00023281574249267578, -0.0193023681640625, 0.034423828125, 0.04046630859375, -0.0199737548828125, 0.0474853515625, 0.01666259765625, -0.03167724609375, 0.08599853515625, 0.013885498046875, 0.00348663330078125, -0.04119873046875, 0.08660888671875, -0.0002865791320800781, -0.0292205810546875, 0.034210205078125, -0.005157470703125, 0.0002880096435546875, -0.056732177734375, -0.03753662109375, 0.0200042724609375, -0.03271484375, -0.0039215087890625, -0.005832672119140625, 0.074462890625, 0.004718780517578125, -0.0211944580078125, -0.0171966552734375, -0.01535797119140625, 0.08380126953125, 0.05230712890625, -0.0021038055419921875, 0.044708251953125, 0.06378173828125, -0.00788116455078125, -0.00690460205078125, -0.0311431884765625, 0.00406646728515625, 0.01268768310546875, -0.007434844970703125, -0.01468658447265625, -0.0011119842529296875, -0.00921630859375, 0.026611328125, 0.0247039794921875, -0.0106048583984375, -0.0364990234375, -0.004352569580078125, 0.035186767578125, -0.0194244384765625, 0.0390625, 0.026275634765625, 0.01415252685546875, -0.0131988525390625, -0.018646240234375, 0.00809478759765625, 0.004638671875, -0.039886474609375, 0.00882720947265625, 0.031890869140625, -0.03326416015625, 0.0018939971923828125, 0.0185089111328125, 0.01485443115234375, -0.0059814453125, -0.01473236083984375, 0.044342041015625, 0.012298583984375, 0.04840087890625, 0.0274658203125, -0.0259857177734375, -0.0172882080078125, 0.0294342041015625, -0.036712646484375, -0.01381683349609375, 0.034027099609375, -0.016693115234375, 0.01438140869140625, -0.0148468017578125, -0.03240966796875, 0.037872314453125, -0.03302001953125, -0.0179290771484375, -0.006622314453125, 0.0286865234375, 0.0008959770202636719, -0.007526397705078125, -0.032684326171875, -0.0184478759765625, 0.030487060546875, 0.0038318634033203125, 0.03515625, 0.016204833984375, 0.05303955078125, 0.00850677490234375, -0.0006976127624511719, -0.00982666015625, 0.00615692138671875, -0.0233001708984375, 0.014404296875, 0.00739288330078125, -0.052734375, -0.04876708984375, -0.006175994873046875, -0.0178070068359375, 0.0460205078125, -0.005565643310546875, 0.023345947265625, -0.01544952392578125, -0.0145721435546875, 0.00939178466796875, 0.023773193359375, -0.018096923828125, -0.0338134765625, 0.0174713134765625, -0.0222015380859375, -0.0509033203125, -0.034515380859375, -0.043426513671875, -0.036773681640625, -0.0268096923828125, -0.00481414794921875, 0.0022296905517578125, 0.0438232421875, -0.04034423828125, -0.04595947265625, 0.01195526123046875, 0.003936767578125, -0.00466156005859375, 0.080078125, -0.03802490234375, 0.07745361328125, -0.01245880126953125, 0.0202789306640625, -0.027191162109375, 0.033935546875, 0.0300750732421875, 0.0131378173828125, 0.0207061767578125, -0.06072998046875, -0.0220489501953125, -0.0182952880859375, -0.0266571044921875, 0.01470947265625, 0.0106201171875, -0.00884246826171875, -0.0030689239501953125, 0.016693115234375, -0.00202178955078125, -0.005950927734375, -0.0171051025390625, 0.053131103515625, 0.005367279052734375, 0.03515625, -0.021881103515625, -0.0014858245849609375, 0.004108428955078125, -0.003154754638671875, 0.024871826171875, -0.009674072265625, 0.01016998291015625, 0.01459503173828125, -0.02520751953125, 0.04449462890625, 0.052581787109375, 0.023468017578125, 0.046142578125, 0.000823974609375, 0.018463134765625, 0.004100799560546875, 0.0121917724609375, -0.01267242431640625, -0.046234130859375, -0.00878143310546875, -0.01361083984375, -0.0031490325927734375, 0.00836181640625, -0.00322723388671875, 0.02838134765625, 0.040618896484375, 0.058837890625, -0.07305908203125, 0.0239410400390625, -0.00922393798828125, -0.01824951171875, 0.05194091796875, -0.01654052734375, -0.00045228004455566406, 0.0080413818359375, 0.043487548828125, 0.0284881591796875, -0.004558563232421875, 0.048675537109375, 0.024749755859375, -0.020721435546875, -0.0008358955383300781, -0.0306243896484375, 0.01337432861328125, -0.0026378631591796875, 0.0345458984375, -0.004772186279296875, 0.042724609375, -0.0179443359375, -0.0238800048828125, -0.004421234130859375, -0.0350341796875, -0.043243408203125, -0.0022945404052734375, -0.01800537109375, 0.0206146240234375, -0.01332855224609375, 0.0016880035400390625, 0.005340576171875, 0.047943115234375, -0.0302581787109375, 0.007343292236328125, 0.01395416259765625, 0.0207977294921875, -0.01081085205078125, -0.0151824951171875, 0.0226898193359375, -0.00412750244140625, -0.0179443359375, 0.011627197265625, -0.0221099853515625, -0.04425048828125, -0.012176513671875, -0.03509521484375, 0.02655029296875, -0.01305389404296875, -0.017669677734375, 0.0139923095703125, 0.00670623779296875, -0.007904052734375, -0.02459716796875, 0.030731201171875, -0.061492919921875, -0.00952911376953125, -0.0093536376953125, -0.030914306640625, -0.0033054351806640625, -0.043975830078125, -0.01140594482421875, 0.0906982421875, 0.029266357421875, -0.051513671875, -0.0047760009765625, 0.06585693359375, -0.027618408203125, 0.049957275390625, -0.0298309326171875, 0.039794921875, -0.026519775390625, 0.04864501953125, -0.03631591796875, 0.000789642333984375, 0.0195465087890625, 0.0239410400390625, 0.026336669921875, 0.008056640625, -0.0068206787109375, -0.0012226104736328125, 0.047821044921875, 0.083251953125, 0.0355224609375, -0.0227203369140625, 0.00876617431640625, 0.0243988037109375, 0.0299835205078125, -0.013092041015625, 0.033294677734375, -0.028411865234375, -0.024505615234375, 0.033233642578125, 0.00017952919006347656, -0.00791168212890625, 0.0002486705780029297, -0.061004638671875, 0.00507354736328125, 0.01039886474609375, -0.019500732421875, 0.0038051605224609375, -0.0225830078125, 0.052398681640625, -0.0191192626953125, 0.018951416015625, -0.07366943359375, -0.0090484619140625, -0.0006861686706542969, -0.01085662841796875, 0.007419586181640625, 0.005123138427734375, 0.021392822265625, -0.0313720703125, 0.01465606689453125, 0.00441741943359375, 0.0457763671875, -0.02581787109375, 0.005096435546875, 0.00502777099609375, -0.0016794204711914062, -0.04339599609375, 0.0404052734375, 0.04754638671875, 0.01265716552734375, -0.04290771484375, 0.0295257568359375, 0.0044097900390625, -0.0092926025390625, -0.017181396484375, -0.051055908203125, -0.0201416015625, 0.04473876953125, 0.0177154541015625, 0.004650115966796875, -0.005687713623046875, 0.004302978515625, 0.007022857666015625, 0.0052642822265625, 0.034759521484375, -0.00888824462890625, -0.001918792724609375, -0.048248291015625, 0.0060577392578125, -0.006557464599609375, 0.06329345703125, 0.044769287109375, 0.03564453125, -0.0216827392578125, -0.037109375, -0.01824951171875, 0.0237884521484375, 0.037628173828125, 0.0175933837890625, -0.0140838623046875, 0.0041656494140625, 0.031463623046875, 0.0156402587890625, -0.0034770965576171875, 0.06353759765625, 0.0263824462890625, 0.0098876953125, 0.006832122802734375, -0.008880615234375, -0.0045166015625, -0.036773681640625, -0.0128021240234375, 0.0017347335815429688, 0.0180816650390625, 0.0379638671875, 0.01116943359375, 0.0023632049560546875, 0.0838623046875, 0.00943756103515625, -0.0035762786865234375, -0.006977081298828125, 0.01593017578125, -0.0367431640625, 0.022125244140625, 0.037139892578125, 0.06231689453125, 0.03668212890625, 0.000021219253540039062, 0.0104827880859375, -0.00750732421875, -0.07196044921875, 0.01165008544921875, 0.050079345703125, -0.0281524658203125, 0.01439666748046875, 0.025146484375, -0.020111083984375, 0.0311126708984375, -0.0014324188232421875, 0.01397705078125, 0.031585693359375, 0.0190887451171875, 0.018280029296875, -0.022186279296875, -0.03057861328125, -0.007526397705078125, 0.046295166015625, 0.0171051025390625, 0.032196044921875, -0.0201568603515625, 0.0220489501953125, -0.004146575927734375, 0.0173187255859375, -0.01149749755859375, -0.018707275390625, 0.01110076904296875, 0.01325225830078125, 0.0098419189453125, -0.00762176513671875, -0.0797119140625, 0.0236968994140625, 0.01568603515625, 0.0299530029296875, 0.02935791015625, -0.00272369384765625, 0.0118408203125, -0.0030460357666015625, -0.0081329345703125, -0.01715087890625, -0.0065460205078125, 0.01131439208984375, -0.0029697418212890625, 0.0277862548828125, 0.01203155517578125, -0.005878448486328125, 0.00885009765625, 0.01372528076171875, -0.004703521728515625, -0.00787353515625, 0.0116729736328125, -0.01947021484375, 0.0196685791015625, 0.0003426074981689453, 0.0068511962890625, 0.00560760498046875, -0.0152130126953125, 0.0362548828125, -0.007175445556640625, 0.0298614501953125, 0.0089569091796875, -0.0225830078125, 0.0087890625, 0.04791259765625, 0.052642822265625, -0.01007080078125, 0.026153564453125, 0.0172119140625, -0.018280029296875, -0.00775146484375, -0.00521087646484375, -0.0167388916015625, -0.0012655258178710938, 0.0032596588134765625, 0.0260162353515625, 0.0179901123046875, -0.012786865234375, -0.04345703125, 0.0182342529296875, 0.02020263671875, -0.009735107421875, -0.048980712890625, -0.00666046142578125, -0.0255584716796875, 0.09869384765625, -0.039794921875, 0.06683349609375, -0.012481689453125, 0.0298004150390625, -0.02978515625, -0.0303192138671875, -0.005825042724609375, 0.0709228515625, -0.00589752197265625, 0.01430511474609375, 0.0250396728515625, -0.0313720703125, 0.0029621124267578125, 0.041778564453125, 0.021942138671875, 0.08868408203125, -0.0006046295166015625, -0.0246429443359375, -0.001705169677734375, 0.03155517578125, -0.01303863525390625, -0.0406494140625, -0.01033782958984375, 0.0016660690307617188, 0.0216827392578125, -0.00600433349609375, 0.0163116455078125, 0.04193115234375, -0.0311431884765625, -0.09307861328125, 0.09246826171875, -0.032745361328125, -0.0343017578125, -0.05712890625, -0.01303863525390625, 0.00351715087890625, -0.0030612945556640625, -0.029266357421875, -0.01194000244140625, -0.03857421875, 0.03125, 0.00316619873046875, 0.020660400390625, 0.049224853515625, -0.0309906005859375, -0.046722412109375, -0.034271240234375, -0.036712646484375, -0.00756072998046875, 0.005268096923828125, 0.005397796630859375, 0.009033203125, 0.02899169921875, -0.02740478515625, 0.01013946533203125, -0.0121002197265625, -0.0207672119140625, -0.01202392578125, -0.05413818359375, -0.041748046875, -0.019439697265625, 0.10791015625, 0.0236968994140625, 0.0298004150390625, -0.034637451171875, -0.0194854736328125, -0.036956787109375, -0.0294342041015625, -0.007251739501953125, 0.00662994384765625, -0.033905029296875, 0.0204925537109375, -0.0022602081298828125, 0.007389068603515625, 0.005886077880859375, -0.007755279541015625, -0.001102447509765625, -0.0197906494140625, 0.0254974365234375, 0.0094757080078125, -0.0440673828125, -0.0166778564453125, 0.120849609375, -0.0626220703125, 0.01210784912109375, 0.0239410400390625, 0.0143585205078125, 0.080810546875, 0.0233001708984375, 0.00145721435546875, -0.0028476715087890625, -0.032958984375, 0.0279541015625, -0.0180816650390625, 0.05169677734375, -0.046142578125, -0.0155792236328125, -0.0026035308837890625, 0.03875732421875, 0.0024166107177734375, 0.03485107421875, -0.0479736328125, 0.045989990234375, -0.00989532470703125, 0.06683349609375, -0.0699462890625, -0.00110626220703125, -0.038665771484375, 0.01141357421875, 0.00479888916015625, 0.0440673828125, 0.07470703125, -0.005908966064453125, -0.01221466064453125, 0.026275634765625, -0.03460693359375, -0.0439453125, 0.0016689300537109375, -0.00418853759765625, 0.0172882080078125, 0.009033203125 ]
210fab0c424e9184c0f4226454a331c77bbb9f6e
Wordpress Stackexchange Q: WordPress Database Charset/Collate Is there an easy way of getting the charset and collation of the DB tables in WordPress without resorting to SQL queries? A: There are $wpdb->charset and $wpdb->collate. I am not sure if or when one of these values might be empty, so it is better to prepare for empty values … From my DB class: /** * Get table charset and collation. * * @since 2012.10.22 * @return string */ protected static function get_wp_charset_collate() { global $wpdb; $charset_collate = ''; if ( ! empty ( $wpdb->charset ) ) $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset"; if ( ! empty ( $wpdb->collate ) ) $charset_collate .= " COLLATE $wpdb->collate"; return $charset_collate; } Used to create a table like this: global $wpdb; // encoding $charset_collate = self::get_wp_charset_collate(); $table = self::get_table_name(); // the user could have just deleted the plugin without running the clean up. $sql = "CREATE TABLE IF NOT EXISTS $table ( ID bigint unsigned NOT NULL auto_increment, event_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, event_group tinytext, event_title text, PRIMARY KEY (ID) ) $charset_collate;"; // make dbDelta() available require_once ABSPATH . 'wp-admin/includes/upgrade.php'; dbDelta( $sql ); Related: Problem with blog charset UTF-7
Q: WordPress Database Charset/Collate Is there an easy way of getting the charset and collation of the DB tables in WordPress without resorting to SQL queries? A: There are $wpdb->charset and $wpdb->collate. I am not sure if or when one of these values might be empty, so it is better to prepare for empty values … From my DB class: /** * Get table charset and collation. * * @since 2012.10.22 * @return string */ protected static function get_wp_charset_collate() { global $wpdb; $charset_collate = ''; if ( ! empty ( $wpdb->charset ) ) $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset"; if ( ! empty ( $wpdb->collate ) ) $charset_collate .= " COLLATE $wpdb->collate"; return $charset_collate; } Used to create a table like this: global $wpdb; // encoding $charset_collate = self::get_wp_charset_collate(); $table = self::get_table_name(); // the user could have just deleted the plugin without running the clean up. $sql = "CREATE TABLE IF NOT EXISTS $table ( ID bigint unsigned NOT NULL auto_increment, event_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, event_group tinytext, event_title text, PRIMARY KEY (ID) ) $charset_collate;"; // make dbDelta() available require_once ABSPATH . 'wp-admin/includes/upgrade.php'; dbDelta( $sql ); Related: Problem with blog charset UTF-7 A: The file wp-admin/includes/upgrade.php includes wp-admin/includes/schema.php. This at the top declare as global (see source): // Declare these as global in case schema.php is included from a function. global $wpdb, $wp_queries, $charset_collate; ... $charset_collate = ''; if ( ! empty( $wpdb->charset ) ) $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset"; if ( ! empty( $wpdb->collate ) ) $charset_collate .= " COLLATE $wpdb->collate"; So you can follow @Toscho's answer and check $wpdb. Or, using Toscho's example: global $wpdb, $charset_collate; require_once ABSPATH . 'wp-admin/includes/upgrade.php'; $sql = "CREATE TABLE $table ( ID bigint unsigned NOT NULL auto_increment, event_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, event_group tinytext, event_title text, PRIMARY KEY (ID) ) $charset_collate;"; dbDelta( $sql ); Note the IF NOT EXISTS is not required as dbDelta() handles this.
wordpress
{ "language": "en", "length": 316, "provenance": "stackexchange_00019.jsonl.gz:426120", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73719" }
[ -0.0212249755859375, 0.00989532470703125, -0.023406982421875, -0.0266571044921875, 0.0226287841796875, -0.0081634521484375, -0.0014324188232421875, 0.0054473876953125, 0.032470703125, 0.04718017578125, -0.0086669921875, -0.0465087890625, 0.0190887451171875, -0.0252227783203125, -0.072998046875, -0.0229034423828125, 0.037506103515625, -0.036773681640625, 0.0167388916015625, -0.0079803466796875, 0.01203155517578125, 0.0137939453125, 0.0272674560546875, 0.0014972686767578125, 0.04290771484375, -0.0562744140625, 0.10345458984375, -0.015716552734375, 0.032470703125, -0.02001953125, 0.040679931640625, -0.03515625, -0.006282806396484375, 0.024566650390625, 0.028289794921875, 0.0068817138671875, 0.04541015625, 0.01010894775390625, 0.005298614501953125, 0.037109375, 0.032501220703125, -0.0237579345703125, 0.00588226318359375, 0.03350830078125, -0.01494598388671875, -0.049591064453125, 0.061676025390625, -0.0004105567932128906, 0.025604248046875, -0.01287841796875, 0.019805908203125, 0.036224365234375, 0.03167724609375, -0.0274200439453125, -0.031036376953125, -0.01143646240234375, -0.002559661865234375, -0.0164337158203125, -0.003520965576171875, 0.01776123046875, 0.02734375, 0.035430908203125, 0.0123138427734375, 0.0128936767578125, -0.0233154296875, 0.05322265625, 0.060882568359375, -0.0114898681640625, -0.033111572265625, -0.04473876953125, -0.02447509765625, -0.0225677490234375, 0.00954437255859375, -0.045684814453125, 0.019378662109375, 0.06317138671875, -0.039520263671875, 0.005077362060546875, 0.01412200927734375, 0.003185272216796875, -0.006580352783203125, -0.00482177734375, -0.038177490234375, -0.037109375, 0.007534027099609375, -0.026031494140625, -0.006389617919921875, -0.00566864013671875, -0.0057525634765625, -0.0364990234375, -0.0126800537109375, 0.0031986236572265625, -0.08026123046875, 0.03656005859375, 0.01482391357421875, -0.031036376953125, 0.03717041015625, 0.07891845703125, -0.052947998046875, 0.01044464111328125, 0.01348114013671875, -0.047882080078125, 0.050994873046875, -0.06341552734375, 0.02490234375, -0.01436614990234375, -0.054168701171875, -0.04888916015625, 0.043548583984375, 0.05499267578125, -0.00498199462890625, -0.006633758544921875, -0.037994384765625, -0.05218505859375, -0.0193939208984375, 0.052276611328125, -0.01384735107421875, 0.006435394287109375, 0.0248260498046875, 0.0032291412353515625, 0.004150390625, 0.0248260498046875, -0.036102294921875, -0.053009033203125, -0.005489349365234375, -0.03656005859375, -0.0099945068359375, 0.01087188720703125, -0.06103515625, 0.026824951171875, -0.0016717910766601562, 0.018157958984375, 0.0736083984375, 0.052154541015625, -0.019134521484375, -0.0159912109375, -0.005596160888671875, 0.005916595458984375, -0.007328033447265625, 0.0221405029296875, 0.02191162109375, -0.0259857177734375, 0.00972747802734375, 0.01062774658203125, -0.047760009765625, 0.007350921630859375, 0.01305389404296875, 0.00347900390625, -0.015106201171875, -0.05517578125, -0.00733184814453125, -0.02191162109375, 0.041595458984375, 0.00989532470703125, -0.060699462890625, -0.0284423828125, -0.0098114013671875, -0.020294189453125, -0.015838623046875, -0.044830322265625, -0.006290435791015625, -0.054779052734375, -0.03155517578125, -0.0203704833984375, -0.05950927734375, 0.0670166015625, 0.00414276123046875, -0.004299163818359375, 0.022674560546875, -0.0347900390625, 0.0001004338264465332, 0.033111572265625, 0.06097412109375, -0.002887725830078125, 0.004772186279296875, 0.0028533935546875, -0.0173492431640625, -0.03253173828125, 0.0189056396484375, 0.054473876953125, 0.0208587646484375, -0.01366424560546875, 0.0008778572082519531, 0.0202484130859375, -0.060821533203125, 0.02783203125, 0.0050506591796875, 0.06451416015625, 0.055419921875, 0.0274658203125, -0.006221771240234375, -0.0163726806640625, -0.0654296875, 0.06231689453125, 0.01000213623046875, -0.046875, -0.00730133056640625, -0.0190277099609375, -0.0008006095886230469, -0.027740478515625, 0.0295562744140625, 0.0295867919921875, -0.0192718505859375, -0.002838134765625, -0.068115234375, 0.0307159423828125, -0.0229644775390625, 0.03948974609375, 0.0176849365234375, 0.033447265625, 0.00603485107421875, 0.031158447265625, -0.022491455078125, -0.0173492431640625, -0.0200042724609375, 0.020416259765625, 0.003704071044921875, 0.04852294921875, -0.0115203857421875, 0.04510498046875, -0.039276123046875, -0.027496337890625, -0.0091705322265625, 0.00974273681640625, -0.0041046142578125, 0.006992340087890625, -0.00017571449279785156, 0.005504608154296875, 0.054443359375, 0.006988525390625, 0.072021484375, -0.017303466796875, 0.06280517578125, 0.0296478271484375, -0.043243408203125, -0.023590087890625, 0.006046295166015625, -0.08123779296875, 0.002811431884765625, 0.0869140625, 0.033905029296875, 0.0257568359375, -0.0047607421875, -0.0081634521484375, 0.047088623046875, -0.01273345947265625, 0.023895263671875, -0.03778076171875, 0.033203125, 0.0892333984375, -0.041595458984375, -0.03228759765625, -0.01116943359375, -0.04864501953125, -0.0123748779296875, 0.030120849609375, -0.04449462890625, 0.007587432861328125, -0.00009065866470336914, -0.0127410888671875, 0.006275177001953125, -0.02081298828125, 0.01275634765625, -0.01113128662109375, 0.0082550048828125, -0.0003056526184082031, 0.015716552734375, 0.0186004638671875, -0.004772186279296875, -0.0099334716796875, 0.01177215576171875, -0.0088958740234375, 0.003910064697265625, -0.0023136138916015625, -0.062408447265625, 0.056243896484375, -0.055572509765625, 0.0290985107421875, 0.047760009765625, -0.00022721290588378906, -0.0011816024780273438, 0.0377197265625, -0.020172119140625, -0.01922607421875, 0.017608642578125, -0.016937255859375, -0.0144195556640625, 0.0217742919921875, -0.027984619140625, 0.003498077392578125, 0.028411865234375, 0.021759033203125, -0.012359619140625, 0.003204345703125, -0.004215240478515625, -0.0056915283203125, 0.047271728515625, -0.0213470458984375, 0.019439697265625, -0.006618499755859375, 0.04693603515625, 0.0435791015625, -0.007396697998046875, -0.01934814453125, 0.0023746490478515625, -0.023040771484375, 0.00858306884765625, 0.0026416778564453125, -0.021026611328125, -0.00827789306640625, -0.059814453125, 0.027923583984375, 0.017913818359375, 0.052215576171875, -0.0270233154296875, -0.048828125, -0.00572967529296875, 0.01348876953125, -0.0811767578125, -0.085205078125, -0.0283050537109375, 0.011199951171875, -0.02996826171875, -0.01018524169921875, -0.00904083251953125, 0.0308074951171875, -0.0418701171875, 0.0015001296997070312, 0.00624847412109375, -0.01611328125, -0.0262298583984375, -0.049346923828125, -0.057525634765625, -0.0643310546875, -0.00670623779296875, -0.005706787109375, -0.01165771484375, -0.002349853515625, -0.03546142578125, -0.01629638671875, -0.03509521484375, -0.021942138671875, -0.01171875, -0.05389404296875, -0.010467529296875, -0.0065155029296875, 0.00762176513671875, -0.00847625732421875, 0.0267333984375, 0.050018310546875, -0.04486083984375, 0.00534820556640625, 0.0242462158203125, 0.0207977294921875, 0.040924072265625, 0.001697540283203125, -0.034912109375, 0.03216552734375, 0.014312744140625, -0.0323486328125, -0.0118865966796875, 0.0017681121826171875, -0.0220489501953125, 0.00765228271484375, -0.018585205078125, 0.006023406982421875, -0.00868988037109375, 0.03125, 0.026031494140625, 0.0200042724609375, 0.005466461181640625, 0.0103912353515625, 0.0272674560546875, -0.00878143310546875, -0.0036373138427734375, -0.0232086181640625, 0.0249176025390625, -0.030181884765625, 0.007358551025390625, 0.01317596435546875, -0.0198211669921875, 0.005146026611328125, -0.049560546875, 0.01885986328125, -0.0592041015625, 0.048065185546875, 0.007244110107421875, 0.0283660888671875, -0.0310516357421875, -0.038330078125, 0.0031795501708984375, 0.102783203125, -0.00176239013671875, -0.02294921875, -0.01012420654296875, 0.0193634033203125, -0.06585693359375, -0.039154052734375, -0.01393890380859375, 0.01538848876953125, -0.046478271484375, -0.0137176513671875, -0.014404296875, -0.004474639892578125, 0.0008912086486816406, -0.00664520263671875, 0.003627777099609375, -0.042205810546875, 0.035308837890625, 0.0019626617431640625, -0.01003265380859375, 0.018310546875, -0.007503509521484375, 0.006343841552734375, 0.00010669231414794922, -0.0143585205078125, -0.06298828125, -0.01358795166015625, -0.05120849609375, 0.054779052734375, 0.0224456787109375, 0.002277374267578125, 0.0090484619140625, 0.052215576171875, 0.0235137939453125, -0.0110321044921875, -0.0034503936767578125, -0.00780487060546875, -0.02435302734375, -0.0007886886596679688, 0.0099029541015625, -0.03546142578125, -0.0202484130859375, -0.02447509765625, -0.005767822265625, -0.00118255615234375, -0.0175628662109375, -0.01277923583984375, -0.00434112548828125, -0.009185791015625, -0.015716552734375, -0.0227508544921875, 0.00893402099609375, 0.047332763671875, -0.051910400390625, 0.035369873046875, -0.014892578125, -0.043365478515625, 0.08258056640625, 0.050445556640625, -0.01262664794921875, -0.0178680419921875, 0.0355224609375, 0.005710601806640625, -0.06964111328125, -0.042205810546875, 0.0156707763671875, 0.05694580078125, 0.02520751953125, 0.041595458984375, 0.033599853515625, -0.05157470703125, 0.08551025390625, 0.060638427734375, -0.01523590087890625, 0.0031414031982421875, 0.03643798828125, 0.0079345703125, -0.005542755126953125, -0.005893707275390625, -0.0092315673828125, -0.004528045654296875, 0.049102783203125, 0.01788330078125, -0.000843048095703125, 0.01294708251953125, 0.0093994140625, 0.0178680419921875, -0.058013916015625, -0.04180908203125, -0.05096435546875, 0.023651123046875, -0.0186767578125, -0.00847625732421875, -0.0357666015625, 0.01154327392578125, -0.0074005126953125, 0.0184478759765625, 0.007717132568359375, -0.00910186767578125, -0.0017633438110351562, 0.01415252685546875, 0.034271240234375, -0.005954742431640625, 0.0091400146484375, -0.01068878173828125, -0.0017518997192382812, 0.033355712890625, -0.00926971435546875, -0.04937744140625, 0.040435791015625, -0.01015472412109375, -0.0198822021484375, 0.045196533203125, 0.0018987655639648438, -0.0062408447265625, -0.005962371826171875, -0.017486572265625, -0.01373291015625, -0.03216552734375, 0.01480865478515625, -0.023223876953125, -0.0178985595703125, -0.0137176513671875, -0.01409912109375, 0.0218658447265625, 0.0260009765625, -0.0272979736328125, 0.03167724609375, -0.0179595947265625, 0.0107574462890625, 0.0040740966796875, 0.07855224609375, 0.0189361572265625, -0.061553955078125, -0.00991058349609375, 0.06915283203125, -0.0122222900390625, -0.0283660888671875, -0.0322265625, 0.005390167236328125, 0.03948974609375, -0.03302001953125, -0.00942230224609375, 0.035064697265625, 0.005802154541015625, 0.00493621826171875, 0.0618896484375, 0.0423583984375, -0.0299224853515625, -0.0209503173828125, -0.0152130126953125, 0.037017822265625, -0.00970458984375, -0.02459716796875, 0.021514892578125, -0.0257415771484375, 0.031646728515625, -0.01364898681640625, 0.00963592529296875, -0.011199951171875, -0.011505126953125, 0.0198516845703125, -0.047271728515625, -0.040618896484375, 0.0251617431640625, 0.037872314453125, -0.019866943359375, -0.00777435302734375, 0.01413726806640625, -0.0179443359375, 0.01419830322265625, -0.040679931640625, 0.0058746337890625, -0.0194854736328125, -0.00298309326171875, 0.038482666015625, 0.0144500732421875, 0.04931640625, -0.0283660888671875, -0.03729248046875, -0.0200958251953125, 0.006694793701171875, -0.053497314453125, 0.018524169921875, -0.01238250732421875, -0.006206512451171875, -0.018310546875, 0.0087890625, -0.0006642341613769531, -0.0157470703125, 0.043548583984375, 0.022979736328125, 0.002048492431640625, -0.0352783203125, 0.061920166015625, -0.004566192626953125, 0.04205322265625, -0.0016393661499023438, 0.024322509765625, 0.0034694671630859375, 0.005340576171875, 0.010406494140625, -0.0174102783203125, -0.006622314453125, -0.01047515869140625, -0.004650115966796875, -0.057342529296875, -0.0174713134765625, -0.01387786865234375, 0.0159759521484375, -0.024078369140625, 0.00859832763671875, -0.0130615234375, 0.061279296875, -0.03955078125, -0.00762176513671875, 0.0533447265625, -0.0364990234375, 0.0118560791015625, -0.009979248046875, 0.0016231536865234375, 0.0265045166015625, -0.044158935546875, 0.017608642578125, 0.048187255859375, -0.006954193115234375, 0.043548583984375, 0.041778564453125, 0.004611968994140625, 0.034698486328125, 0.005512237548828125, 0.015869140625, -0.00254058837890625, -0.020538330078125, -0.032806396484375, 0.031341552734375, 0.0408935546875, -0.01202392578125, -0.01013946533203125, 0.0225830078125, -0.0172576904296875, 0.0013322830200195312, 0.069580078125, 0.07562255859375, -0.08441162109375, 0.000004947185516357422, 0.0345458984375, -0.035980224609375, -0.0183258056640625, 0.0137481689453125, -0.0278778076171875, 0.0017375946044921875, 0.00553131103515625, -0.061737060546875, -0.061248779296875, -0.018157958984375, 0.0204315185546875, -0.01529693603515625, 0.01097869873046875, 0.0205841064453125, 0.017303466796875, 0.00804901123046875, 0.01032257080078125, -0.0095062255859375, 0.0267486572265625, 0.0006623268127441406, 0.02142333984375, -0.01165771484375, -0.004955291748046875, -0.056793212890625, -0.0017108917236328125, -0.0123443603515625, -0.033477783203125, -0.03802490234375, -0.0176849365234375, 0.0301361083984375, 0.056060791015625, -0.040985107421875, -0.017364501953125, 0.05560302734375, -0.025787353515625, -0.0179901123046875, -0.0269927978515625, -0.00820159912109375, 0.05084228515625, -0.01181793212890625, 0.0227203369140625, 0.0092926025390625, -0.0165863037109375, -0.003124237060546875, -0.044677734375, 0.01373291015625, 0.0118255615234375, -0.0206146240234375, 0.009765625, -0.0170135498046875, 0.0208587646484375, 0.0172576904296875, 0.0251617431640625, -0.0274200439453125, -0.032196044921875, 0.022308349609375, -0.032012939453125, -0.0306396484375, 0.007724761962890625, -0.022796630859375, 0.051513671875, -0.007305145263671875, -0.01180267333984375, 0.0382080078125, 0.031524658203125, -0.04052734375, 0.0027065277099609375, -0.041778564453125, 0.015869140625, -0.032379150390625, 0.035736083984375, -0.07098388671875, -0.0033664703369140625, 0.003902435302734375, 0.013702392578125, 0.01456451416015625, -0.005886077880859375, 0.0165252685546875, 0.01593017578125, 0.04571533203125, 0.0010938644409179688, -0.016448974609375, 0.020751953125, -0.0079193115234375, 0.017242431640625, 0.0633544921875, -0.037811279296875, 0.0309600830078125, 0.00989532470703125, 0.01271820068359375, -0.0017976760864257812, -0.00007045269012451172, 0.00727081298828125, -0.0247650146484375, -0.0323486328125, 0.0106201171875, -0.018890380859375, -0.015777587890625, -0.07037353515625, 0.0157623291015625, 0.038177490234375, 0.06402587890625, -0.067626953125, -0.034637451171875, -0.034027099609375, 0.04901123046875, 0.0249176025390625, -0.0028553009033203125, 0.0743408203125, 0.03753662109375, 0.010833740234375, -0.038848876953125, -0.0008254051208496094, -0.0435791015625, 0.004642486572265625, 0.0458984375, 0.0264739990234375, 0.036285400390625, -0.007701873779296875, 0.014862060546875, 0.0089111328125, 0.051422119140625, -0.03839111328125, -0.03009033203125, 0.01873779296875, -0.004161834716796875, 0.007305145263671875, 0.0029888153076171875, 0.0013170242309570312, -0.0021305084228515625, 0.0161895751953125, 0.01275634765625, -0.00919342041015625, 0.005645751953125, -0.01540374755859375, 0.0106658935546875, 0.003753662109375, 0.010955810546875, 0.016204833984375, -0.03582763671875, 0.003948211669921875, 0.04510498046875, 0.06842041015625, 0.0035114288330078125, 0.0433349609375, 0.0024662017822265625, -0.021881103515625, -0.01250457763671875, 0.0184326171875, 0.034423828125, -0.01171875, 0.02655029296875, 0.017547607421875, -0.0160980224609375, 0.01207733154296875, -0.0230560302734375, 0.01428985595703125, 0.049041748046875, 0.048248291015625, -0.042877197265625, -0.031951904296875, 0.0176544189453125, -0.0291595458984375, -0.0287322998046875, -0.01053619384765625, 0.0174102783203125, 0.01934814453125, 0.0075531005859375, -0.0140228271484375, 0.06097412109375, -0.00533294677734375, -0.01348876953125, 0.0321044921875, -0.0012578964233398438, 0.0102691650390625, 0.06390380859375, -0.035247802734375, 0.0029735565185546875, -0.0037841796875, -0.056365966796875, 0.001495361328125, -0.0286102294921875, -0.01285552978515625, 0.025787353515625, 0.034820556640625, -0.024688720703125, 0.01273345947265625, 0.00795745849609375, 0.00969696044921875, -0.0082550048828125, 0.005313873291015625, -0.0018739700317382812, -0.00545501708984375, 0.0390625, 0.002532958984375, 0.00811004638671875, -0.005138397216796875, 0.016265869140625, 0.0189971923828125, -0.029541015625, 0.045989990234375, -0.036865234375, 0.011871337890625, -0.015838623046875, -0.037689208984375, 0.0191650390625, -0.0025119781494140625, 0.01158905029296875, 0.026275634765625, -0.0013294219970703125, -0.033294677734375, -0.01421356201171875, -0.01259613037109375, 0.03399658203125, -0.0234527587890625, -0.00952911376953125, -0.01959228515625, 0.03350830078125, -0.0033321380615234375, 0.0012311935424804688, -0.0212860107421875, -0.028350830078125, -0.017486572265625, -0.00897216796875, 0.0292205810546875, 0.0230255126953125, 0.01212310791015625, 0.01239776611328125, -0.0384521484375, -0.053619384765625, 0.038665771484375, -0.0604248046875, 0.06854248046875, 0.037933349609375, -0.04351806640625, -0.00011116266250610352, -0.01161956787109375, -0.02874755859375, -0.0022487640380859375, 0.0080413818359375, -0.0015888214111328125, -0.0031452178955078125, -0.023193359375, 0.042236328125, 0.0281829833984375, 0.08819580078125, 0.01763916015625, 0.03302001953125, -0.0033626556396484375, 0.02374267578125, 0.012359619140625, -0.0284271240234375, -0.021484375, -0.032928466796875, -0.01456451416015625, 0.00969696044921875, -0.03277587890625, -0.0157012939453125, -0.04803466796875, -0.01021575927734375, 0.0103607177734375, -0.039642333984375, 0.0176544189453125, -0.0018787384033203125, -0.0283203125, 0.01245880126953125, -0.044586181640625, -0.03668212890625, -0.018951416015625, -0.0150299072265625, -0.01207733154296875, -0.06390380859375, -0.04022216796875, 0.046630859375, -0.043548583984375, 0.002826690673828125, 0.0069427490234375, -0.0028896331787109375, -0.041778564453125, -0.0037250518798828125, 0.00928497314453125, 0.037384033203125, 0.005718231201171875, -0.017486572265625, 0.043853759765625, -0.021392822265625, -0.0693359375, -0.08770751953125, 0.0243988037109375, -0.1070556640625, 0.0025272369384765625, -0.04473876953125, -0.01146697998046875, -0.01824951171875, -0.056121826171875, -0.057861328125, 0.07354736328125, -0.022705078125, -0.0213165283203125, -0.016937255859375, 0.0268402099609375, 0.0070037841796875, -0.031951904296875, -0.00611114501953125, -0.055419921875, -0.003826141357421875, 0.01654052734375, 0.013427734375, -0.00965118408203125, 0.0180816650390625, 0.005611419677734375, -0.054229736328125, 0.001010894775390625, -0.005374908447265625, -0.0086517333984375, 0.0175628662109375, 0.0089263916015625, -0.021575927734375, 0.0214385986328125, -0.052825927734375, -0.0697021484375, -0.043304443359375, -0.00501251220703125, -0.0104217529296875, -0.09185791015625, -0.03753662109375, -0.053863525390625, 0.06488037109375, 0.0164947509765625, 0.015045166015625, -0.004436492919921875, -0.033935546875, -0.0120391845703125, -0.045654296875, -0.02154541015625, 0.0198822021484375, -0.049957275390625, 0.00475311279296875, -0.0266265869140625, 0.0063018798828125, 0.040557861328125, 0.032135009765625, 0.02276611328125, -0.00331878662109375, 0.034698486328125, -0.042999267578125, -0.045501708984375, 0.0258331298828125, -0.0199127197265625, -0.010711669921875, -0.00995635986328125, -0.0280914306640625, 0.01096343994140625, -0.03045654296875, -0.027374267578125, -0.033447265625, -0.043426513671875, 0.060516357421875, 0.04681396484375, 0.009429931640625, -0.03753662109375, 0.0192413330078125, 0.00862884521484375, -0.01117706298828125, -0.0026798248291015625, -0.005954742431640625, 0.0181427001953125, 0.0189971923828125, -0.01198577880859375, -0.0007901191711425781, -0.026397705078125, 0.00586700439453125, -0.06402587890625, -0.023223876953125, 0.044464111328125, -0.0153045654296875, -0.0304718017578125, 0.0015420913696289062, -0.0289306640625, -0.0013170242309570312, -0.0248565673828125, -0.02410888671875, -0.0572509765625, -0.00628662109375, -0.053985595703125, -0.01264190673828125, 0.0161895751953125 ]
4d6a83b22ee83ffb3110b35192433b4e0a07bcd4
Wordpress Stackexchange Q: How to filter all products by products_tag (woocommerce ) I'm trying to retrieve the thumbnails for only certain products of my woocommerce, using products_tag, this code is showing all products : <ul class="products"> <?php $args = array( 'post_type' => 'product', 'posts_per_page' => 5 ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); global $product; ?> <?php global $post; echo "<p id = 'id_name'>" . $thePostID = $post->ID. " </p>"; ?> <?php if (has_post_thumbnail( $loop->post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_catalog'); else echo '<img src="'.$woocommerce->plugin_url().'/assets/images/placeholder.png" alt="Placeholder" width="'.$woocommerce->get_image_size('shop_catalog_image_width').'px" height="'.$woocommerce->get_image_size('shop_catalog_image_height').'px" />'; ?> <?php endwhile; ?> </ul><!--/.products--> I try to add more arguments to the array inserting 'product_tag' but doesn't' work: $args = array( 'post_type' => 'product', 'posts_per_page' => 5, product_tag => 'shoes' ); How can i show only the products with the tag shoes ? Thanks for your help A: I found the answer, it was a typing mistake, you have to put 'product_tag' => 'wherever_tag_you_use' and it's works like charm
Q: How to filter all products by products_tag (woocommerce ) I'm trying to retrieve the thumbnails for only certain products of my woocommerce, using products_tag, this code is showing all products : <ul class="products"> <?php $args = array( 'post_type' => 'product', 'posts_per_page' => 5 ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); global $product; ?> <?php global $post; echo "<p id = 'id_name'>" . $thePostID = $post->ID. " </p>"; ?> <?php if (has_post_thumbnail( $loop->post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_catalog'); else echo '<img src="'.$woocommerce->plugin_url().'/assets/images/placeholder.png" alt="Placeholder" width="'.$woocommerce->get_image_size('shop_catalog_image_width').'px" height="'.$woocommerce->get_image_size('shop_catalog_image_height').'px" />'; ?> <?php endwhile; ?> </ul><!--/.products--> I try to add more arguments to the array inserting 'product_tag' but doesn't' work: $args = array( 'post_type' => 'product', 'posts_per_page' => 5, product_tag => 'shoes' ); How can i show only the products with the tag shoes ? Thanks for your help A: I found the answer, it was a typing mistake, you have to put 'product_tag' => 'wherever_tag_you_use' and it's works like charm A: This is mentioned in documentation $args = array( 'tag' => array( 'excellent', 'modern' ), ); $products = wc_get_products( $args ); https://github.com/woocommerce/woocommerce/wiki/wc_get_products-and-WC_Product_Query
wordpress
{ "language": "en", "length": 183, "provenance": "stackexchange_00019.jsonl.gz:426127", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73744" }
[ 0.0002608299255371094, -0.0238494873046875, 0.0013628005981445312, 0.01397705078125, -0.005062103271484375, -0.0188140869140625, 0.04779052734375, -0.0185089111328125, 0.0009503364562988281, 0.0198974609375, -0.070556640625, -0.01983642578125, -0.02197265625, 0.008392333984375, -0.031646728515625, -0.0758056640625, 0.0423583984375, -0.0144500732421875, 0.03961181640625, 0.0103607177734375, 0.004791259765625, 0.03961181640625, 0.0218505859375, 0.0650634765625, 0.01367950439453125, -0.03759765625, 0.08270263671875, -0.025787353515625, 0.0205841064453125, -0.0257568359375, 0.0161895751953125, -0.0172271728515625, 0.0123291015625, -0.0231170654296875, 0.03424072265625, 0.0165557861328125, 0.015106201171875, -0.0129852294921875, 0.0233001708984375, -0.0027027130126953125, 0.053924560546875, -0.038116455078125, 0.005817413330078125, 0.0178070068359375, 0.00299072265625, -0.0142364501953125, 0.03118896484375, -0.05047607421875, 0.0083160400390625, -0.035980224609375, 0.016082763671875, 0.0498046875, 0.037841796875, -0.01386260986328125, -0.0299224853515625, 0.0286712646484375, -0.049957275390625, 0.038909912109375, 0.036865234375, -0.006069183349609375, -0.026702880859375, -0.02349853515625, 0.01097869873046875, -0.02203369140625, -0.004917144775390625, 0.0172271728515625, 0.004070281982421875, -0.005138397216796875, -0.0175933837890625, 0.00864410400390625, 0.0305938720703125, -0.0340576171875, -0.0150299072265625, 0.02349853515625, -0.0396728515625, -0.022674560546875, 0.0253448486328125, -0.0209808349609375, 0.031219482421875, -0.00502777099609375, 0.0203704833984375, -0.041534423828125, -0.002918243408203125, 0.00905609130859375, 0.00579071044921875, 0.034149169921875, 0.00014853477478027344, -0.00882720947265625, -0.0084228515625, -0.02264404296875, -0.018096923828125, -0.0185546875, -0.0281524658203125, 0.006011962890625, -0.0222625732421875, -0.0258026123046875, -0.0093994140625, -0.0009708404541015625, -0.00641632080078125, 0.0209503173828125, 0.030670166015625, -0.046905517578125, 0.05157470703125, -0.0498046875, 0.0311126708984375, 0.051483154296875, -0.02716064453125, 0.0217132568359375, 0.07080078125, 0.032440185546875, 0.04248046875, 0.026123046875, -0.039093017578125, -0.02099609375, -0.0169830322265625, 0.041778564453125, -0.05560302734375, -0.0092926025390625, -0.0172119140625, -0.0046539306640625, -0.00379180908203125, 0.0285797119140625, 0.033172607421875, -0.047271728515625, 0.007068634033203125, 0.0153045654296875, -0.0005898475646972656, -0.07012939453125, -0.0102081298828125, -0.0002086162567138672, -0.0179595947265625, 0.023651123046875, -0.002834320068359375, 0.004512786865234375, -0.015869140625, 0.0044403076171875, 0.0078125, -0.031829833984375, -0.0026645660400390625, 0.00417327880859375, 0.0193023681640625, 0.010162353515625, 0.015625, -0.0036678314208984375, 0.016510009765625, -0.01025390625, -0.0199432373046875, 0.01995849609375, 0.0254058837890625, 0.007251739501953125, 0.0247344970703125, -0.027374267578125, 0.0131072998046875, 0.02703857421875, 0.0288543701171875, 0.0189056396484375, 0.0770263671875, -0.0222320556640625, -0.0330810546875, -0.050689697265625, 0.0032558441162109375, -0.0099945068359375, 0.01666259765625, -0.0401611328125, -0.07080078125, 0.0273284912109375, -0.044097900390625, -0.0185699462890625, 0.0287933349609375, 0.03851318359375, 0.006595611572265625, 0.0223388671875, 0.03631591796875, 0.038818359375, 0.00977325439453125, 0.0092010498046875, -0.01424407958984375, 0.0338134765625, 0.04638671875, -0.014617919921875, -0.043060302734375, -0.03973388671875, 0.09393310546875, -0.03662109375, -0.034637451171875, -0.0272674560546875, 0.0241851806640625, 0.00252532958984375, -0.01367950439453125, 0.024261474609375, 0.06866455078125, 0.0238037109375, -0.059173583984375, 0.042999267578125, -0.0208587646484375, -0.0183868408203125, -0.0270233154296875, 0.01050567626953125, -0.026214599609375, 0.006389617919921875, 0.0404052734375, 0.0177764892578125, 0.0255584716796875, -0.017608642578125, -0.0258026123046875, 0.043975830078125, -0.025970458984375, 0.045440673828125, -0.05194091796875, 0.036956787109375, 0.0304718017578125, 0.00545501708984375, -0.04559326171875, 0.01702880859375, 0.031707763671875, -0.0039520263671875, -0.01358795166015625, 0.0325927734375, -0.00516510009765625, 0.034637451171875, -0.0041961669921875, -0.0287017822265625, -0.0090789794921875, 0.0176849365234375, 0.0440673828125, 0.01506805419921875, -0.0091400146484375, -0.00013339519500732422, 0.0419921875, 0.0408935546875, -0.04913330078125, -0.02166748046875, 0.0009975433349609375, 0.043487548828125, -0.036834716796875, -0.004955291748046875, -0.009735107421875, -0.0430908203125, 0.027587890625, 0.04095458984375, 0.032470703125, 0.024078369140625, -0.003726959228515625, 0.011993408203125, 0.0958251953125, 0.0041351318359375, 0.0030918121337890625, -0.0041961669921875, -0.0195465087890625, 0.005229949951171875, -0.01012420654296875, 0.008941650390625, 0.0278167724609375, -0.00035881996154785156, 0.01134490966796875, 0.049285888671875, -0.01934814453125, 0.038818359375, -0.043548583984375, 0.0192108154296875, -0.0294189453125, 0.017181396484375, 0.026885986328125, -0.0302581787109375, 0.03631591796875, 0.0282440185546875, 0.0269927978515625, 0.01024627685546875, -0.042724609375, 0.031494140625, 0.023284912109375, -0.015960693359375, -0.006011962890625, 0.00957489013671875, -0.031280517578125, -0.025299072265625, -0.043609619140625, 0.0361328125, -0.0005478858947753906, -0.030364990234375, 0.005756378173828125, 0.030548095703125, 0.00757598876953125, 0.009765625, -0.037139892578125, -0.05078125, 0.022125244140625, 0.06439208984375, 0.00798797607421875, -0.0021209716796875, -0.003337860107421875, 0.0325927734375, -0.025238037109375, 0.057159423828125, -0.0218505859375, -0.01116943359375, 0.0001596212387084961, -0.057891845703125, 0.06512451171875, -0.06060791015625, 0.07757568359375, 0.0711669921875, -0.0511474609375, 0.04534912109375, 0.0084075927734375, -0.017730712890625, -0.00807952880859375, 0.01788330078125, -0.0209197998046875, 0.03106689453125, -0.0985107421875, 0.0304718017578125, 0.018280029296875, 0.0340576171875, -0.00560760498046875, -0.0330810546875, 0.005115509033203125, 0.0265655517578125, -0.0648193359375, -0.04315185546875, 0.006778717041015625, -0.06536865234375, -0.00921630859375, -0.017822265625, -0.0391845703125, -0.00385284423828125, -0.0130462646484375, 0.002918243408203125, -0.0174713134765625, -0.00292205810546875, -0.0400390625, -0.0278472900390625, -0.059295654296875, 0.044464111328125, -0.0006556510925292969, 0.0223541259765625, 0.00962066650390625, 0.0290985107421875, 0.0124969482421875, -0.02337646484375, 0.037811279296875, 0.035247802734375, -0.0243988037109375, 0.005451202392578125, -0.0316162109375, -0.01163482666015625, -0.022125244140625, 0.006103515625, -0.017059326171875, -0.001209259033203125, 0.004993438720703125, 0.00667572021484375, 0.0147857666015625, -0.044769287109375, 0.0177764892578125, 0.034210205078125, -0.0190582275390625, -0.01055908203125, 0.043212890625, -0.056854248046875, -0.04962158203125, -0.041046142578125, -0.056549072265625, 0.09417724609375, 0.036865234375, 0.005126953125, 0.02606201171875, 0.0261993408203125, 0.0439453125, 0.01322174072265625, 0.0272064208984375, -0.038177490234375, 0.00958251953125, 0.0173797607421875, 0.04388427734375, -0.0426025390625, 0.021759033203125, -0.01873779296875, 0.034820556640625, 0.02294921875, 0.0204925537109375, 0.006877899169921875, -0.007808685302734375, -0.026092529296875, -0.0204620361328125, 0.0390625, 0.0224609375, 0.038116455078125, -0.028045654296875, -0.046417236328125, -0.0204315185546875, 0.07000732421875, -0.0240020751953125, -0.034698486328125, -0.0239105224609375, 0.004474639892578125, 0.015838623046875, -0.0257720947265625, -0.0011386871337890625, -0.0177459716796875, -0.09234619140625, 0.003170013427734375, -0.0191192626953125, -0.023040771484375, 0.019073486328125, -0.0238800048828125, -0.042236328125, -0.053314208984375, 0.0214385986328125, 0.0166168212890625, -0.0012369155883789062, 0.0210418701171875, -0.0198211669921875, 0.036102294921875, -0.018951416015625, -0.010955810546875, -0.0197296142578125, -0.0258636474609375, 0.048919677734375, 0.0288848876953125, -0.037994384765625, 0.03607177734375, -0.042877197265625, 0.04241943359375, -0.00788116455078125, 0.035430908203125, -0.0245819091796875, 0.01995849609375, -0.040771484375, -0.0382080078125, -0.01401519775390625, -0.03509521484375, -0.0006747245788574219, -0.024810791015625, -0.03497314453125, -0.01142120361328125, -0.037261962890625, -0.0010738372802734375, -0.01288604736328125, -0.0178070068359375, -0.1070556640625, -0.024017333984375, 0.0301361083984375, -0.030242919921875, -0.01885986328125, 0.016326904296875, 0.0000014901161193847656, -0.043243408203125, 0.042755126953125, 0.0364990234375, -0.02398681640625, 0.004627227783203125, 0.0750732421875, 0.0237579345703125, -0.033355712890625, -0.0438232421875, 0.0077972412109375, 0.039093017578125, 0.00292205810546875, 0.0537109375, 0.0157470703125, -0.030670166015625, 0.06463623046875, 0.0223846435546875, 0.0118255615234375, 0.007534027099609375, 0.055572509765625, -0.019744873046875, -0.0234527587890625, 0.02587890625, -0.0254058837890625, -0.0057525634765625, 0.032440185546875, -0.00611114501953125, -0.006610870361328125, 0.0166778564453125, 0.0261077880859375, 0.0025272369384765625, -0.04180908203125, -0.031585693359375, -0.0207672119140625, 0.00926971435546875, 0.043365478515625, 0.017120361328125, 0.0248870849609375, -0.01155853271484375, 0.0196533203125, 0.005840301513671875, 0.0137786865234375, -0.0190582275390625, 0.01824951171875, -0.0158538818359375, 0.0197296142578125, 0.017974853515625, 0.0045928955078125, -0.034942626953125, 0.00937652587890625, -0.05511474609375, -0.02105712890625, -0.024810791015625, -0.020355224609375, -0.0152587890625, -0.00679779052734375, 0.0244140625, -0.0281219482421875, 0.03387451171875, -0.005428314208984375, -0.0197296142578125, 0.00024771690368652344, -0.07000732421875, -0.0289764404296875, -0.048797607421875, 0.027679443359375, -0.01502227783203125, 0.007373809814453125, 0.0063018798828125, 0.05108642578125, -0.00823211669921875, 0.0369873046875, -0.0008454322814941406, 0.00376129150390625, -0.033416748046875, 0.052947998046875, 0.008148193359375, -0.0190582275390625, -0.0023651123046875, 0.030609130859375, 0.019500732421875, -0.00853729248046875, 0.004608154296875, 0.018646240234375, 0.020294189453125, -0.03271484375, -0.025604248046875, 0.0213775634765625, -0.03326416015625, -0.02093505859375, 0.025970458984375, -0.013336181640625, -0.03619384765625, -0.04290771484375, -0.02130126953125, 0.04901123046875, 0.00127410888671875, -0.037567138671875, 0.0111541748046875, -0.0201873779296875, -0.010528564453125, 0.024169921875, -0.045928955078125, 0.039337158203125, 0.050018310546875, -0.0121917724609375, -0.035064697265625, -0.0182342529296875, -0.017852783203125, 0.0243072509765625, -0.0277862548828125, -0.0229339599609375, 0.03253173828125, -0.00838470458984375, 0.075927734375, -0.00789642333984375, -0.07965087890625, -0.043121337890625, -0.00445556640625, 0.065185546875, 0.0687255859375, -0.0234375, -0.005542755126953125, -0.004001617431640625, -0.00635528564453125, 0.062469482421875, 0.00827789306640625, -0.0182952880859375, -0.044708251953125, -0.00951385498046875, 0.02239990234375, -0.007564544677734375, 0.0045623779296875, -0.0308380126953125, -0.005950927734375, -0.003589630126953125, 0.019622802734375, -0.032379150390625, -0.002285003662109375, 0.0308074951171875, -0.0015840530395507812, -0.0247039794921875, -0.0300445556640625, -0.0005583763122558594, 0.005008697509765625, -0.0184173583984375, -0.0215301513671875, 0.0022411346435546875, 0.0120391845703125, -0.03912353515625, -0.007495880126953125, 0.0601806640625, 0.007717132568359375, -0.00495147705078125, -0.029937744140625, -0.00867462158203125, -0.01322174072265625, 0.07049560546875, -0.0018596649169921875, -0.01361083984375, 0.0667724609375, -0.0250701904296875, 0.0234222412109375, 0.004932403564453125, 0.0014448165893554688, 0.0003859996795654297, -0.018463134765625, 0.00946044921875, 0.037567138671875, 0.018585205078125, 0.0021839141845703125, 0.058197021484375, -0.0168609619140625, 0.027862548828125, 0.02923583984375, -0.01043701171875, 0.0214385986328125, 0.007236480712890625, -0.01568603515625, 0.00911712646484375, 0.041778564453125, -0.002582550048828125, 0.0172882080078125, 0.0482177734375, -0.006244659423828125, -0.0181427001953125, 0.0102691650390625, 0.028564453125, -0.022613525390625, -0.005290985107421875, 0.0286102294921875, 0.00634002685546875, -0.0274810791015625, 0.0089111328125, -0.01412200927734375, -0.03277587890625, 0.0216064453125, -0.002086639404296875, -0.0203399658203125, -0.00354766845703125, 0.012420654296875, 0.0166778564453125, 0.0390625, 0.03118896484375, -0.00417327880859375, -0.0711669921875, -0.060089111328125, 0.032470703125, -0.045257568359375, -0.0289459228515625, 0.00321197509765625, -0.02020263671875, -0.0007076263427734375, -0.05535888671875, 0.01024627685546875, -0.004222869873046875, 0.0308380126953125, 0.038360595703125, 0.0027904510498046875, -0.006988525390625, 0.05078125, -0.0172576904296875, 0.01177215576171875, 0.0213470458984375, -0.06707763671875, -0.02166748046875, 0.0026950836181640625, -0.0007529258728027344, 0.0226593017578125, -0.050567626953125, -0.005725860595703125, -0.0623779296875, 0.058135986328125, -0.014251708984375, -0.0034046173095703125, 0.0153961181640625, -0.0017795562744140625, -0.02093505859375, 0.025115966796875, 0.07122802734375, 0.0083160400390625, -0.01113128662109375, 0.02911376953125, -0.039886474609375, -0.002685546875, 0.010894775390625, -0.004596710205078125, -0.038818359375, -0.01271820068359375, -0.07177734375, 0.0419921875, -0.0194244384765625, 0.040679931640625, 0.0215606689453125, -0.0007143020629882812, -0.0081939697265625, -0.02069091796875, -0.02789306640625, 0.00318145751953125, -0.003368377685546875, 0.036285400390625, -0.0162811279296875, -0.0018053054809570312, 0.0031452178955078125, 0.029937744140625, 0.043487548828125, -0.0005283355712890625, -0.040283203125, -0.00994110107421875, 0.061370849609375, 0.047515869140625, 0.0183563232421875, 0.03692626953125, 0.0010433197021484375, -0.0193328857421875, 0.038299560546875, -0.0455322265625, 0.031890869140625, -0.03411865234375, 0.02886962890625, 0.0142364501953125, 0.01666259765625, 0.00954437255859375, 0.00007092952728271484, 0.00873565673828125, -0.0148162841796875, -0.0010194778442382812, 0.03076171875, -0.064208984375, 0.046783447265625, 0.00577545166015625, 0.0545654296875, -0.035797119140625, -0.053070068359375, 0.0164794921875, 0.037628173828125, 0.028717041015625, 0.027496337890625, 0.0284576416015625, 0.0134124755859375, 0.09539794921875, -0.01177978515625, 0.0124359130859375, 0.012786865234375, -0.01297760009765625, 0.006023406982421875, 0.0016384124755859375, -0.0015726089477539062, -0.031951904296875, 0.035400390625, 0.0298309326171875, -0.005275726318359375, -0.038818359375, -0.030029296875, 0.002094268798828125, 0.00923919677734375, 0.00829315185546875, 0.0058441162109375, 0.0181732177734375, -0.04095458984375, 0.00568389892578125, -0.059539794921875, 0.04180908203125, 0.03204345703125, 0.051971435546875, -0.00041604042053222656, -0.01326751708984375, -0.0914306640625, 0.01020050048828125, -0.04742431640625, 0.0102996826171875, 0.00849151611328125, 0.057647705078125, 0.0160064697265625, 0.047088623046875, -0.036651611328125, -0.03662109375, -0.00640869140625, 0.0192108154296875, -0.041534423828125, 0.023101806640625, -0.042205810546875, -0.0308074951171875, -0.021514892578125, 0.05584716796875, 0.013885498046875, -0.0238189697265625, 0.025604248046875, 0.038330078125, -0.0303497314453125, -0.003997802734375, 0.048431396484375, -0.01490020751953125, 0.02362060546875, -0.01425933837890625, 0.03204345703125, 0.020660400390625, -0.014495849609375, 0.004215240478515625, 0.03802490234375, 0.0157928466796875, -0.055633544921875, 0.0450439453125, -0.01666259765625, -0.047393798828125, 0.0167388916015625, 0.00141143798828125, 0.0770263671875, -0.02020263671875, -0.074951171875, 0.0005660057067871094, -0.06024169921875, 0.0032196044921875, -0.000522613525390625, -0.000051915645599365234, -0.038238525390625, 0.0887451171875, 0.038482666015625, -0.0112457275390625, 0.0004849433898925781, -0.00527191162109375, 0.03009033203125, -0.0012798309326171875, -0.002254486083984375, 0.0178680419921875, -0.0264434814453125, -0.0152740478515625, 0.0001424551010131836, 0.017242431640625, 0.0211639404296875, 0.050384521484375, 0.008697509765625, 0.0120849609375, -0.0155181884765625, -0.004467010498046875, -0.0056915283203125, -0.03179931640625, 0.0848388671875, -0.003765106201171875, -0.031951904296875, -0.01369476318359375, 0.0231475830078125, -0.0057373046875, 0.06109619140625, -0.020050048828125, -0.038116455078125, 0.003398895263671875, 0.03387451171875, 0.00856781005859375, 0.0305938720703125, -0.03271484375, -0.04296875, -0.07867431640625, -0.0189971923828125, 0.0188140869140625, 0.01395416259765625, 0.026123046875, 0.033660888671875, 0.01325225830078125, 0.0059051513671875, 0.0200958251953125, -0.0114898681640625, 0.0254669189453125, 0.0228424072265625, -0.0097808837890625, 0.004428863525390625, 0.01959228515625, -0.02239990234375, 0.00620269775390625, 0.016357421875, 0.0015735626220703125, 0.0030879974365234375, -0.03759765625, 0.029693603515625, 0.0626220703125, 0.0158538818359375, -0.019195556640625, 0.004169464111328125, 0.069091796875, -0.04766845703125, -0.028228759765625, 0.008575439453125, -0.0211334228515625, -0.0289459228515625, 0.007190704345703125, -0.01024627685546875, 0.01520538330078125, -0.0528564453125, -0.005527496337890625, -0.0171966552734375, 0.0081787109375, 0.01461029052734375, -0.046173095703125, 0.02972412109375, -0.00228118896484375, 0.01873779296875, -0.033477783203125, -0.00823974609375, 0.0033111572265625, -0.016571044921875, -0.03839111328125, -0.026336669921875, -0.037841796875, 0.01456451416015625, -0.02386474609375, 0.007354736328125, 0.0248565673828125, -0.039276123046875, -0.01727294921875, 0.01522064208984375, 0.033721923828125, 0.060211181640625, 0.01338958740234375, -0.044525146484375, -0.0008802413940429688, 0.00782012939453125, 0.01122283935546875, -0.05084228515625, 0.00022101402282714844, -0.06121826171875, 0.0016164779663085938, -0.00629425048828125, -0.006328582763671875, 0.01438140869140625, -0.0355224609375, -0.056121826171875, 0.07940673828125, -0.01145172119140625, -0.0239105224609375, -0.006744384765625, 0.0174713134765625, -0.020782470703125, 0.03973388671875, 0.009185791015625, -0.01470184326171875, 0.0007495880126953125, 0.00981903076171875, -0.01067352294921875, -0.023712158203125, 0.050506591796875, -0.06170654296875, -0.0082855224609375, -0.01262664794921875, 0.0245361328125, -0.017120361328125, -0.0003306865692138672, -0.029266357421875, 0.028350830078125, 0.0340576171875, -0.006744384765625, -0.0268402099609375, 0.0208892822265625, -0.0164642333984375, 0.02166748046875, 0.004314422607421875, -0.049041748046875, -0.05010986328125, 0.036895751953125, 0.0258636474609375, 0.0207672119140625, 0.0276641845703125, -0.01514434814453125, 0.01148223876953125, -0.00395965576171875, 0.0237579345703125, 0.005603790283203125, -0.03802490234375, 0.00022649765014648438, 0.00989532470703125, -0.004886627197265625, 0.0158538818359375, 0.01690673828125, -0.05804443359375, -0.0099029541015625, -0.0250091552734375, 0.02008056640625, -0.11370849609375, 0.036346435546875, -0.02740478515625, -0.01763916015625, -0.023345947265625, -0.0303802490234375, -0.0097808837890625, -0.036376953125, -0.072998046875, -0.0423583984375, -0.01045989990234375, -0.0017061233520507812, 0.00969696044921875, -0.010467529296875, -0.00618743896484375, 0.0016803741455078125, 0.03802490234375, -0.028717041015625, 0.0285491943359375, 0.0236358642578125, 0.02587890625, 0.0011119842529296875, -0.01363372802734375, 0.0284576416015625, 0.028900146484375, 0.00897979736328125, 0.023834228515625, -0.007358551025390625, 0.046722412109375, 0.01493072509765625, -0.0230865478515625, 0.035400390625, -0.033416748046875, -0.01253509521484375, -0.013458251953125, -0.07574462890625, -0.05023193359375, -0.012420654296875, 0.02923583984375, -0.043670654296875, 0.0153045654296875 ]
26ef9c1863924e50d7ca930b0d0c125f2578c604
Wordpress Stackexchange Q: Get the category from an ID of a product? I have the ID from a product (1345) how can i get the category name of that specific product? I try $post_categories = wp_get_post_categories( $post->ID ); print_r( $post_categories ); but it outputs: Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) What those it means ? Thanks A: Option #1 Get all product_cat's using this function global $product; $terms = get_the_terms( $product->get_id(), 'product_cat' ); Offical docs Option #2 If you only need their ids, you can get all product_category_ids associated with a specific product, using this function: global $product; $product_cats_ids = wc_get_product_term_ids( $product->get_id(), 'product_cat' ); Official docs Extra If you would like to print out - for instance - the categories names, you need the category term-object. This can be retrieved using get_term_by(). An example: foreach( $product_cats_ids as $cat_id ) { $term = get_term_by( 'id', $cat_id, 'product_cat' ); echo $term->name; }
Q: Get the category from an ID of a product? I have the ID from a product (1345) how can i get the category name of that specific product? I try $post_categories = wp_get_post_categories( $post->ID ); print_r( $post_categories ); but it outputs: Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) Array ( ) What those it means ? Thanks A: Option #1 Get all product_cat's using this function global $product; $terms = get_the_terms( $product->get_id(), 'product_cat' ); Offical docs Option #2 If you only need their ids, you can get all product_category_ids associated with a specific product, using this function: global $product; $product_cats_ids = wc_get_product_term_ids( $product->get_id(), 'product_cat' ); Official docs Extra If you would like to print out - for instance - the categories names, you need the category term-object. This can be retrieved using get_term_by(). An example: foreach( $product_cats_ids as $cat_id ) { $term = get_term_by( 'id', $cat_id, 'product_cat' ); echo $term->name; } A: Since the question is tagged woocommerce, i'm assuming that it's a product CPT created by woocommerce wordpress plugin. This answer doesn't apply if that's not the case. The products categories is not normal categories, they are a custom taxonomy created specifically for products which is just labeled as "Categories". You should go through the woocommerce documentation to find some function that would do this for you, if you don't find anything you can try an alternative solution. For that, first you should know the name of the taxonomy. You can copy it from inside the url in your browser when you visit categories edit screen in the backend. Then you can use wp_get_post_terms to get the terms. A: I answered my own question, this work for me : <?php $term_list = wp_get_post_terms($id_product,'product_cat',array('fields'=>'ids')); $cat_id = (int)$term_list[0]; echo get_term_link ($cat_id, 'product_cat'); ?> Thanks Mridul Aggarwal for your help A: <?php $terms = get_the_terms($product->ID, 'product_cat'); foreach ($terms as $term) { $product_cat = $term->name; echo $product_cat; break; } ?>
wordpress
{ "language": "en", "length": 332, "provenance": "stackexchange_00019.jsonl.gz:426129", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73748" }
[ -0.0171051025390625, -0.0116729736328125, -0.03387451171875, -0.0250244140625, 0.0141143798828125, -0.01044464111328125, 0.0164642333984375, 0.0176849365234375, -0.01464080810546875, 0.01412200927734375, -0.0171356201171875, -0.0156097412109375, -0.0389404296875, -0.038726806640625, -0.020538330078125, -0.06549072265625, 0.040557861328125, -0.00241851806640625, 0.0355224609375, 0.01412200927734375, -0.00423431396484375, 0.0487060546875, 0.0228118896484375, 0.0276336669921875, 0.03216552734375, -0.048370361328125, 0.0458984375, -0.0458984375, 0.01264190673828125, -0.04522705078125, 0.02032470703125, 0.0279388427734375, 0.004817962646484375, -0.030670166015625, 0.06719970703125, 0.043548583984375, 0.0144195556640625, -0.0007877349853515625, 0.050445556640625, 0.0025310516357421875, 0.046905517578125, -0.025238037109375, 0.0247802734375, 0.007465362548828125, 0.019561767578125, -0.0253753662109375, 0.0244293212890625, -0.06298828125, 0.00864410400390625, -0.034454345703125, 0.044342041015625, 0.01322174072265625, 0.04449462890625, -0.0250091552734375, -0.0216217041015625, -0.0038127899169921875, -0.024749755859375, 0.0122222900390625, 0.045257568359375, -0.0089111328125, -0.055328369140625, -0.04150390625, 0.038055419921875, -0.0494384765625, -0.002918243408203125, 0.01788330078125, 0.0640869140625, 0.0241546630859375, -0.01678466796875, -0.00604248046875, 0.0255279541015625, -0.006183624267578125, 0.005390167236328125, 0.0179595947265625, -0.02716064453125, -0.0640869140625, 0.03509521484375, -0.03179931640625, -0.0038623809814453125, 0.0204620361328125, -0.01346588134765625, -0.027923583984375, -0.034820556640625, -0.0094146728515625, 0.003276824951171875, 0.0007481575012207031, -0.01378631591796875, -0.00814056396484375, -0.015289306640625, -0.058502197265625, -0.01105499267578125, -0.01800537109375, -0.06524658203125, 0.0205841064453125, -0.00963592529296875, -0.03985595703125, 0.0015192031860351562, 0.03668212890625, -0.0247039794921875, -0.003658294677734375, 0.0079803466796875, -0.03912353515625, 0.01174163818359375, -0.026397705078125, -0.002201080322265625, 0.02056884765625, 0.00203704833984375, 0.0305633544921875, 0.04345703125, 0.03228759765625, 0.00571441650390625, 0.0145721435546875, -0.0051422119140625, -0.008453369140625, -0.0204620361328125, 0.041351318359375, -0.0212249755859375, 0.01049041748046875, 0.00017845630645751953, 0.03350830078125, 0.0147552490234375, 0.046661376953125, 0.0092010498046875, -0.003803253173828125, -0.019561767578125, 0.0031032562255859375, -0.0024852752685546875, -0.060150146484375, -0.005374908447265625, -0.04644775390625, -0.0517578125, 0.0391845703125, 0.085693359375, 0.04266357421875, 0.025421142578125, -0.00012826919555664062, -0.0021877288818359375, 0.0191650390625, 0.0181884765625, -0.0022411346435546875, 0.019561767578125, 0.0166168212890625, 0.028045654296875, -0.0010786056518554688, 0.0124664306640625, -0.0157470703125, -0.0030078887939453125, 0.041748046875, 0.01451873779296875, -0.00927734375, 0.036224365234375, -0.00986480712890625, 0.0124359130859375, 0.048553466796875, 0.0239410400390625, 0.0002911090850830078, 0.066650390625, -0.03948974609375, -0.007213592529296875, -0.05072021484375, 0.041656494140625, 0.0094146728515625, 0.01800537109375, 0.0269622802734375, -0.02001953125, -0.00847625732421875, -0.037689208984375, -0.022979736328125, 0.01535797119140625, 0.05657958984375, 0.0037384033203125, -0.004638671875, 0.0083770751953125, 0.01318359375, -0.0075225830078125, -0.0018129348754882812, -0.032562255859375, -0.023468017578125, 0.053497314453125, -0.0112457275390625, -0.0556640625, -0.050872802734375, -0.0168609619140625, -0.0041656494140625, -0.02496337890625, 0.0186920166015625, 0.031097412109375, 0.066650390625, -0.020294189453125, 0.023712158203125, 0.04510498046875, 0.01629638671875, -0.06011962890625, -0.01430511474609375, 0.004428863525390625, -0.0140380859375, 0.01393890380859375, -0.0089569091796875, 0.003604888916015625, 0.0040283203125, 0.044097900390625, 0.005985260009765625, -0.00628662109375, -0.0081634521484375, -0.0848388671875, 0.0110321044921875, -0.01436614990234375, 0.03924560546875, -0.0170440673828125, 0.0247802734375, 0.0275421142578125, -0.01103973388671875, -0.01435089111328125, -0.0506591796875, -0.01151275634765625, 0.0007443428039550781, -0.0218963623046875, 0.015838623046875, -0.005016326904296875, 0.007778167724609375, -0.00969696044921875, -0.005084991455078125, 0.005153656005859375, 0.033447265625, 0.0159149169921875, 0.033294677734375, -0.0269012451171875, 0.0043182373046875, 0.0275115966796875, 0.048126220703125, -0.049835205078125, -0.03436279296875, 0.0162811279296875, 0.05084228515625, 0.0029430389404296875, 0.0182342529296875, 0.03753662109375, -0.046295166015625, 0.00934600830078125, 0.01190185546875, 0.037322998046875, 0.00099945068359375, -0.01366424560546875, -0.044464111328125, 0.06719970703125, -0.0247802734375, -0.00555419921875, -0.03326416015625, 0.0219573974609375, 0.055633544921875, 0.0093536376953125, 0.020050048828125, 0.00504302978515625, 0.007251739501953125, -0.005725860595703125, 0.0433349609375, -0.01523590087890625, -0.0045318603515625, -0.0002949237823486328, 0.022796630859375, -0.0245361328125, -0.03363037109375, 0.0062713623046875, -0.0284576416015625, 0.0209197998046875, 0.0190582275390625, 0.0274810791015625, 0.031097412109375, -0.01812744140625, -0.00848388671875, 0.00276947021484375, -0.0016727447509765625, -0.022186279296875, 0.0182037353515625, 0.0114593505859375, -0.0277862548828125, -0.03466796875, 0.0119476318359375, -0.02001953125, -0.01088714599609375, 0.0166473388671875, 0.07763671875, 0.046173095703125, -0.02001953125, -0.041717529296875, -0.057586669921875, 0.01165771484375, 0.0052490234375, -0.05694580078125, -0.0187835693359375, -0.0111846923828125, 0.087646484375, -0.002765655517578125, 0.0139007568359375, -0.04705810546875, 0.047943115234375, 0.00634765625, -0.02392578125, 0.03546142578125, -0.03424072265625, 0.033599853515625, 0.057586669921875, -0.023345947265625, 0.03662109375, 0.0189056396484375, -0.00023472309112548828, 0.057830810546875, -0.01354217529296875, -0.008575439453125, 0.034820556640625, -0.08636474609375, -0.0118560791015625, 0.028839111328125, 0.1273193359375, -0.025604248046875, -0.047027587890625, 0.0201263427734375, 0.0474853515625, -0.036956787109375, -0.08038330078125, 0.0013895034790039062, -0.04400634765625, 0.01467132568359375, -0.0131683349609375, -0.0121002197265625, -0.01715087890625, -0.0025386810302734375, 0.002960205078125, 0.0182952880859375, -0.03131103515625, -0.059814453125, -0.04522705078125, -0.06988525390625, -0.006908416748046875, -0.0143280029296875, 0.002471923828125, 0.0156707763671875, 0.01114654541015625, 0.010650634765625, -0.033294677734375, 0.027191162109375, 0.045867919921875, -0.0301666259765625, 0.00626373291015625, -0.01500701904296875, -0.0240478515625, 0.0007586479187011719, 0.006748199462890625, -0.01345062255859375, 0.003017425537109375, 0.0195770263671875, -0.0041351318359375, 0.0015087127685546875, 0.036895751953125, 0.04937744140625, 0.004085540771484375, -0.021636962890625, 0.05780029296875, 0.05291748046875, -0.010772705078125, -0.016632080078125, -0.0299835205078125, -0.0316162109375, 0.0125732421875, 0.00606536865234375, 0.0134124755859375, -0.01678466796875, 0.0186920166015625, -0.00612640380859375, -0.006877899169921875, -0.026947021484375, -0.041656494140625, 0.0235137939453125, 0.0091552734375, 0.0263671875, 0.0257110595703125, 0.013214111328125, -0.031524658203125, 0.00867462158203125, -0.00937652587890625, 0.0009479522705078125, -0.01326751708984375, 0.0015735626220703125, -0.023406982421875, -0.05841064453125, 0.04296875, -0.0253448486328125, -0.0102081298828125, -0.0169219970703125, -0.0183563232421875, 0.018707275390625, 0.09869384765625, 0.02252197265625, -0.018829345703125, -0.03826904296875, -0.0093536376953125, -0.00022554397583007812, -0.036834716796875, -0.0259552001953125, -0.0211334228515625, -0.06793212890625, 0.0024871826171875, -0.0212860107421875, -0.0203704833984375, -0.0264892578125, 0.02447509765625, -0.050567626953125, -0.0253143310546875, 0.030364990234375, -0.041473388671875, 0.0229339599609375, -0.004062652587890625, 0.00122833251953125, -0.0099029541015625, -0.01316070556640625, -0.01462554931640625, 0.003086090087890625, -0.0008487701416015625, 0.01132965087890625, -0.01506805419921875, -0.01861572265625, 0.01314544677734375, 0.0022449493408203125, 0.02752685546875, 0.0034923553466796875, 0.0018367767333984375, 0.002849578857421875, 0.030029296875, -0.017486572265625, -0.016937255859375, -0.007419586181640625, -0.04473876953125, -0.0084075927734375, -0.03271484375, -0.00791168212890625, 0.042022705078125, -0.028289794921875, 0.042205810546875, -0.035614013671875, -0.01229095458984375, -0.058990478515625, -0.004329681396484375, 0.0186920166015625, 0.002918243408203125, -0.0250091552734375, 0.0362548828125, -0.0094757080078125, -0.052154541015625, 0.059234619140625, 0.04150390625, -0.024627685546875, -0.01366424560546875, 0.0546875, 0.01070404052734375, -0.05133056640625, -0.0240936279296875, 0.004512786865234375, 0.044219970703125, -0.0015897750854492188, 0.036346435546875, 0.0005979537963867188, -0.037109375, 0.06396484375, 0.021209716796875, -0.0052947998046875, -0.0135498046875, 0.04754638671875, -0.004184722900390625, -0.00927734375, -0.00733184814453125, -0.033935546875, 0.0226898193359375, 0.00823211669921875, -0.042144775390625, -0.00782012939453125, -0.0223236083984375, 0.05426025390625, -0.0250396728515625, 0.0653076171875, -0.0302886962890625, -0.024139404296875, 0.0136260986328125, 0.01348114013671875, 0.0303192138671875, 0.0347900390625, -0.0041961669921875, 0.0199737548828125, -0.00766754150390625, 0.0028324127197265625, -0.0268096923828125, -0.01024627685546875, -0.01421356201171875, -0.017669677734375, 0.0191650390625, -0.0248260498046875, -0.0129852294921875, 0.00682830810546875, -0.00020396709442138672, -0.0120086669921875, -0.0295257568359375, -0.0255584716796875, -0.015838623046875, 0.0167388916015625, 0.0335693359375, -0.037567138671875, -0.00319671630859375, 0.03125, 0.005207061767578125, 0.0199737548828125, -0.06292724609375, 0.0168914794921875, -0.012451171875, 0.007656097412109375, 0.0055694580078125, -0.01195526123046875, 0.039031982421875, 0.06158447265625, -0.048065185546875, 0.0635986328125, -0.005207061767578125, 0.0233612060546875, -0.01126861572265625, 0.052032470703125, 0.01690673828125, -0.030242919921875, -0.00839996337890625, 0.014739990234375, 0.0029392242431640625, -0.03997802734375, 0.0006551742553710938, -0.005924224853515625, 0.048431396484375, -0.0086517333984375, -0.027679443359375, 0.022003173828125, -0.040771484375, 0.0086822509765625, -0.00047397613525390625, -0.0249176025390625, -0.01152801513671875, -0.0272216796875, -0.0166473388671875, 0.0272216796875, -0.0042266845703125, -0.00484466552734375, 0.01277923583984375, -0.0190887451171875, 0.0086212158203125, 0.0276336669921875, -0.0150146484375, -0.01287078857421875, 0.004329681396484375, -0.056854248046875, -0.0182952880859375, 0.0004100799560546875, -0.0009474754333496094, 0.0005822181701660156, -0.003307342529296875, -0.04766845703125, 0.0301055908203125, 0.00701141357421875, 0.08563232421875, -0.031890869140625, -0.058135986328125, -0.01349639892578125, -0.017547607421875, 0.047760009765625, 0.03997802734375, -0.02496337890625, -0.0206298828125, -0.0280914306640625, -0.007965087890625, 0.06951904296875, -0.01216888427734375, -0.0016603469848632812, -0.025299072265625, -0.0158538818359375, 0.01788330078125, -0.0006175041198730469, 0.0225677490234375, -0.0083465576171875, 0.016510009765625, -0.01470947265625, -0.00907135009765625, -0.00113677978515625, -0.0247344970703125, 0.017852783203125, 0.002750396728515625, -0.0035762786865234375, -0.0298919677734375, -0.016571044921875, -0.0221099853515625, -0.02154541015625, -0.050018310546875, 0.0197296142578125, 0.011932373046875, -0.0012950897216796875, -0.01296234130859375, 0.017120361328125, 0.0156402587890625, -0.01392364501953125, -0.0167388916015625, -0.0049285888671875, -0.022674560546875, 0.010589599609375, 0.016815185546875, -0.0215301513671875, -0.00537872314453125, -0.06451416015625, -0.0283660888671875, 0.00927734375, 0.01500701904296875, 0.04010009765625, -0.060333251953125, 0.028076171875, 0.04901123046875, -0.0096282958984375, 0.037353515625, 0.06951904296875, 0.026885986328125, 0.057281494140625, 0.0187835693359375, 0.03924560546875, 0.01080322265625, 0.038787841796875, 0.01053619384765625, -0.0247344970703125, 0.06341552734375, 0.0165863037109375, -0.01503753662109375, 0.046844482421875, -0.043609619140625, -0.01605224609375, -0.01313018798828125, 0.0243377685546875, 0.0013179779052734375, 0.0132293701171875, 0.0330810546875, -0.03125, -0.04095458984375, 0.05364990234375, -0.035675048828125, -0.0247344970703125, -0.0129547119140625, -0.03619384765625, -0.0128173828125, 0.0098724365234375, 0.004878997802734375, 0.0107574462890625, -0.0021800994873046875, 0.055816650390625, 0.0010595321655273438, -0.0438232421875, -0.047607421875, 0.01317596435546875, -0.01461029052734375, -0.061737060546875, -0.024658203125, 0.04400634765625, -0.01120758056640625, -0.0718994140625, 0.0814208984375, -0.005130767822265625, 0.0626220703125, 0.003116607666015625, -0.0107879638671875, 0.0007495880126953125, 0.0404052734375, -0.0008916854858398438, -0.007503509521484375, 0.019134521484375, -0.0562744140625, 0.02044677734375, 0.0277862548828125, 0.002246856689453125, 0.0194091796875, -0.059814453125, -0.0097503662109375, -0.050048828125, 0.05181884765625, -0.0166168212890625, -0.01122283935546875, 0.044158935546875, -0.0158233642578125, -0.0157623291015625, 0.032623291015625, 0.061614990234375, 0.001903533935546875, -0.006855010986328125, 0.005573272705078125, -0.012054443359375, 0.046142578125, 0.0008115768432617188, 0.04736328125, 0.01384735107421875, 0.001277923583984375, -0.06536865234375, 0.0080413818359375, -0.0110626220703125, 0.028289794921875, 0.006572723388671875, -0.01776123046875, 0.00899505615234375, -0.03662109375, -0.050537109375, 0.030548095703125, 0.031707763671875, 0.0538330078125, -0.04498291015625, -0.037139892578125, 0.00946807861328125, 0.0614013671875, 0.060943603515625, 0.0160369873046875, -0.023223876953125, -0.022125244140625, 0.0178375244140625, 0.0299072265625, -0.0210723876953125, 0.0213775634765625, 0.01214599609375, -0.0134124755859375, 0.0892333984375, -0.01467132568359375, 0.0367431640625, -0.00013577938079833984, 0.020355224609375, 0.01360321044921875, 0.0308837890625, 0.06085205078125, 0.0012159347534179688, 0.0293121337890625, 0.0132598876953125, -0.007259368896484375, 0.006618499755859375, -0.040679931640625, 0.0093536376953125, 0.058258056640625, 0.047149658203125, -0.032684326171875, 0.0221405029296875, -0.03643798828125, 0.0682373046875, 0.00849151611328125, 0.022216796875, 0.05767822265625, 0.02423095703125, 0.07177734375, 0.011444091796875, 0.03216552734375, 0.009033203125, -0.002490997314453125, 0.0462646484375, 0.01221466064453125, 0.019256591796875, -0.0283203125, 0.030670166015625, 0.0167388916015625, 0.055999755859375, -0.05169677734375, -0.061676025390625, 0.01357269287109375, 0.0025844573974609375, 0.024566650390625, 0.0251617431640625, 0.0369873046875, 0.01129150390625, 0.04827880859375, -0.061248779296875, 0.02337646484375, 0.06610107421875, 0.0298919677734375, 0.00791168212890625, 0.0008368492126464844, -0.07574462890625, -0.01012420654296875, -0.06195068359375, 0.034820556640625, 0.0176849365234375, 0.05633544921875, 0.0104217529296875, 0.06768798828125, -0.035614013671875, -0.036407470703125, 0.019439697265625, 0.0202789306640625, 0.002315521240234375, -0.0221099853515625, 0.0131683349609375, -0.0255584716796875, -0.0087127685546875, 0.014373779296875, 0.01465606689453125, 0.02862548828125, 0.0477294921875, 0.05352783203125, 0.007396697998046875, -0.01812744140625, 0.031158447265625, -0.00855255126953125, -0.01171112060546875, -0.01218414306640625, 0.033721923828125, 0.03668212890625, 0.01277923583984375, 0.004283905029296875, 0.047576904296875, 0.04888916015625, -0.0335693359375, 0.07562255859375, -0.003940582275390625, -0.0125885009765625, 0.023406982421875, -0.035247802734375, 0.06622314453125, -0.0189056396484375, -0.06903076171875, -0.0102386474609375, -0.0298004150390625, -0.000518798828125, 0.00867462158203125, 0.0180206298828125, -0.00493621826171875, 0.0303955078125, -0.0241546630859375, -0.015045166015625, 0.0235748291015625, 0.001514434814453125, 0.0009226799011230469, 0.0084686279296875, 0.0163116455078125, -0.00446319580078125, 0.0030078887939453125, 0.005916595458984375, 0.02227783203125, 0.0005993843078613281, 0.051910400390625, -0.040283203125, 0.047821044921875, 0.0208740234375, -0.0400390625, 0.062164306640625, -0.103515625, -0.06640625, 0.097412109375, -0.020050048828125, -0.0255126953125, -0.00020456314086914062, -0.004985809326171875, 0.01983642578125, 0.054351806640625, -0.017730712890625, 0.0158843994140625, -0.0308380126953125, 0.016510009765625, -0.0318603515625, 0.04034423828125, -0.0021800994873046875, -0.0338134765625, -0.049713134765625, -0.03192138671875, 0.047088623046875, 0.07440185546875, 0.0139617919921875, -0.0043182373046875, -0.01020050048828125, -0.0107574462890625, 0.014312744140625, 0.0275726318359375, 0.01387786865234375, 0.0270538330078125, -0.031036376953125, -0.0208587646484375, 0.0005216598510742188, -0.01458740234375, 0.004886627197265625, 0.0009174346923828125, 0.03985595703125, -0.005496978759765625, 0.002460479736328125, -0.00811767578125, 0.037841796875, 0.039306640625, -0.0166015625, 0.0164337158203125, 0.029754638671875, -0.016815185546875, -0.0306854248046875, -0.06463623046875, -0.046905517578125, -0.04656982421875, 0.01465606689453125, 0.0312042236328125, 0.0017328262329101562, -0.00522613525390625, -0.020721435546875, -0.003032684326171875, 0.01873779296875, -0.0187835693359375, -0.0021820068359375, 0.00183868408203125, -0.0244140625, 0.023162841796875, -0.03326416015625, -0.036468505859375, 0.0136260986328125, 0.03741455078125, -0.0291748046875, 0.032012939453125, -0.0247955322265625, -0.04803466796875, -0.008941650390625, 0.00458526611328125, -0.0022068023681640625, -0.0224151611328125, -0.0161285400390625, 0.052459716796875, 0.0161590576171875, 0.07421875, 0.024749755859375, -0.0221099853515625, 0.00920867919921875, 0.0181884765625, -0.031494140625, -0.0477294921875, 0.02349853515625, -0.0330810546875, -0.004894256591796875, 0.0265045166015625, 0.00986480712890625, 0.0423583984375, -0.006336212158203125, -0.00888824462890625, 0.01494598388671875, 0.00885772705078125, -0.034698486328125, -0.0262603759765625, -0.02392578125, -0.0164794921875, 0.0009918212890625, -0.0225830078125, -0.015869140625, -0.0265960693359375, 0.050140380859375, 0.0164642333984375, 0.019256591796875, 0.0237884521484375, -0.00714111328125, -0.060943603515625, 0.002735137939453125, -0.01715087890625, 0.0266571044921875, -0.018463134765625, 0.0249176025390625, -0.013641357421875, 0.030303955078125, -0.03131103515625, -0.0166473388671875, -0.01096343994140625, 0.00899505615234375, 0.023223876953125, -0.04510498046875, -0.043853759765625, -0.038299560546875, -0.00604248046875, 0.034515380859375, -0.00009757280349731445, -0.008758544921875, -0.02880859375, -0.0197906494140625, -0.0036525726318359375, -0.006359100341796875, 0.01226806640625, -0.0660400390625, -0.009857177734375, 0.023712158203125, -0.018402099609375, 0.01226806640625, 0.00933074951171875, -0.05682373046875, 0.0034999847412109375, -0.030731201171875, -0.003314971923828125, -0.058197021484375, 0.019744873046875, -0.0193634033203125, -0.026824951171875, -0.067138671875, -0.01290130615234375, 0.00409698486328125, -0.06256103515625, -0.057464599609375, 0.01464080810546875, 0.023284912109375, 0.00257110595703125, 0.006839752197265625, 0.038360595703125, 0.000225067138671875, 0.0181884765625, -0.0022602081298828125, -0.022491455078125, 0.0341796875, -0.0020656585693359375, 0.0201263427734375, -0.0210723876953125, 0.0313720703125, 0.02008056640625, 0.07977294921875, 0.01346588134765625, -0.004207611083984375, -0.002040863037109375, 0.07171630859375, 0.01116943359375, -0.044830322265625, 0.0308074951171875, -0.056060791015625, -0.004726409912109375, -0.00835418701171875, -0.0189056396484375, 0.001125335693359375, -0.001926422119140625, 0.01096343994140625, -0.039306640625, 0.00011402368545532227 ]
3a88974ee1de0b980acef01d2fed971fc4b41786
Wordpress Stackexchange Q: Update exisiting site to 3.5 release candidate I have an existing site that I want to update to 3.5 now, because I want to see if my plugins and themes work in it. I don't want to wait for the full release (when I'll be able to automatically update), and I don't mind that 3.5 is still in release candidate state. I could just copy in all the files from 3.5, but I'm afraid that there might be some database changes too. I don't want to set up a separate test site. This is a small site, and it won't be the end of the world if something goes wrong. How can I update an existing site to a non-final version of Wordpress? A: Use the Beta Tester Plugin. Be sure to set it to use bleeding edge nightlies, so that you get the pre-releases. Also: once a new major version is final-released, be sure to change the Plugin's settings back.
Q: Update exisiting site to 3.5 release candidate I have an existing site that I want to update to 3.5 now, because I want to see if my plugins and themes work in it. I don't want to wait for the full release (when I'll be able to automatically update), and I don't mind that 3.5 is still in release candidate state. I could just copy in all the files from 3.5, but I'm afraid that there might be some database changes too. I don't want to set up a separate test site. This is a small site, and it won't be the end of the world if something goes wrong. How can I update an existing site to a non-final version of Wordpress? A: Use the Beta Tester Plugin. Be sure to set it to use bleeding edge nightlies, so that you get the pre-releases. Also: once a new major version is final-released, be sure to change the Plugin's settings back.
wordpress
{ "language": "en", "length": 162, "provenance": "stackexchange_00019.jsonl.gz:426131", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73762" }
[ 0.03228759765625, 0.005321502685546875, -0.01541900634765625, -0.038055419921875, 0.01367950439453125, -0.008514404296875, -0.011749267578125, -0.049530029296875, 0.032257080078125, -0.0071868896484375, -0.050811767578125, 0.00804901123046875, -0.0218353271484375, -0.0006933212280273438, -0.00458526611328125, -0.04461669921875, 0.0733642578125, -0.0318603515625, 0.045013427734375, 0.007511138916015625, -0.0177764892578125, 0.066650390625, 0.040191650390625, 0.06353759765625, 0.0330810546875, 0.01490020751953125, 0.0170135498046875, -0.00494384765625, 0.0288543701171875, -0.0006909370422363281, 0.041656494140625, -0.053009033203125, 0.009246826171875, 0.0147705078125, -0.021209716796875, 0.0097503662109375, 0.05859375, -0.0168304443359375, -0.00133514404296875, 0.043701171875, 0.00628662109375, -0.019195556640625, 0.0110931396484375, -0.01433563232421875, 0.0190582275390625, -0.0302581787109375, 0.018280029296875, -0.056396484375, 0.035736083984375, -0.029388427734375, -0.030029296875, 0.00006479024887084961, -0.0230865478515625, -0.050628662109375, -0.004711151123046875, -0.0023708343505859375, -0.00203704833984375, 0.0252532958984375, 0.0235595703125, 0.0169219970703125, -0.0183563232421875, 0.004032135009765625, 0.01262664794921875, -0.032012939453125, -0.0239715576171875, 0.01450347900390625, 0.05133056640625, -0.0160675048828125, -0.039886474609375, -0.019927978515625, 0.036834716796875, -0.013916015625, 0.01534271240234375, -0.0176849365234375, -0.00494384765625, 0.0030345916748046875, -0.005001068115234375, 0.005084991455078125, 0.02557373046875, -0.00881195068359375, 0.03802490234375, 0.02313232421875, -0.01045989990234375, -0.0513916015625, 0.047119140625, -0.0174713134765625, 0.0020351409912109375, -0.0213775634765625, -0.041778564453125, -0.0232391357421875, -0.0288238525390625, 0.011138916015625, -0.07470703125, 0.01538848876953125, -0.0102081298828125, 0.0008244514465332031, -0.0081329345703125, 0.0452880859375, -0.0205230712890625, 0.011871337890625, -0.0066986083984375, -0.039154052734375, 0.01873779296875, -0.049163818359375, -0.0087127685546875, 0.028778076171875, 0.03985595703125, -0.03802490234375, -0.016876220703125, -0.007427215576171875, -0.02569580078125, 0.006046295166015625, -0.0030689239501953125, -0.0184173583984375, 0.004398345947265625, 0.02386474609375, -0.02801513671875, 0.04913330078125, 0.0017919540405273438, 0.029296875, -0.01363372802734375, 0.020111083984375, -0.0252227783203125, -0.0112762451171875, 0.0165863037109375, -0.00043582916259765625, -0.0048065185546875, 0.0005612373352050781, -0.029205322265625, -0.006786346435546875, -0.041290283203125, 0.0545654296875, 0.0672607421875, -0.0037670135498046875, -0.0479736328125, 0.0011949539184570312, 0.036376953125, 0.0189361572265625, 0.00226593017578125, 0.01306915283203125, -0.03277587890625, -0.01139068603515625, 0.01331329345703125, -0.04656982421875, 0.030853271484375, 0.02813720703125, 0.01558685302734375, 0.007305145263671875, 0.007190704345703125, -0.03973388671875, 0.041259765625, -0.0296783447265625, 0.033966064453125, -0.0014495849609375, -0.0096893310546875, -0.055877685546875, 0.043304443359375, -0.060302734375, 0.0227813720703125, -0.067626953125, -0.014617919921875, 0.009185791015625, 0.03759765625, -0.0274658203125, -0.034423828125, -0.007656097412109375, -0.0372314453125, -0.002796173095703125, 0.030670166015625, 0.0149688720703125, 0.016998291015625, -0.026336669921875, 0.055694580078125, 0.0231170654296875, -0.007656097412109375, 0.0321044921875, 0.0082244873046875, 0.023345947265625, 0.0013904571533203125, 0.006664276123046875, -0.0157623291015625, -0.03216552734375, 0.06463623046875, -0.037017822265625, -0.0295562744140625, -0.04095458984375, 0.01514434814453125, 0.056396484375, 0.048675537109375, 0.026123046875, 0.0088958740234375, -0.07366943359375, -0.0098724365234375, 0.00911712646484375, 0.007205963134765625, -0.0166778564453125, -0.004852294921875, 0.0102691650390625, -0.0038928985595703125, -0.035552978515625, -0.0243988037109375, 0.0799560546875, -0.0458984375, 0.044525146484375, 0.028228759765625, 0.0220184326171875, 0.01447296142578125, 0.03497314453125, 0.084716796875, 0.034942626953125, -0.025054931640625, 0.01474761962890625, -0.016632080078125, -0.00803375244140625, -0.06292724609375, 0.00980377197265625, -0.004383087158203125, 0.0041961669921875, -0.0163421630859375, -0.0115814208984375, 0.005397796630859375, -0.026611328125, -0.0094757080078125, 0.034881591796875, 0.0147247314453125, -0.052886962890625, 0.00891876220703125, -0.027374267578125, 0.0321044921875, 0.0196380615234375, -0.0167999267578125, -0.0036182403564453125, 0.01727294921875, 0.016632080078125, -0.0037326812744140625, -0.0009503364562988281, 0.032623291015625, -0.0753173828125, 0.0261993408203125, 0.03863525390625, 0.048614501953125, -0.031005859375, -0.0167999267578125, -0.052734375, 0.048980712890625, -0.03350830078125, 0.01157379150390625, -0.037872314453125, 0.027618408203125, 0.0648193359375, 0.0238494873046875, 0.006504058837890625, 0.0074920654296875, -0.051422119140625, 0.00627899169921875, 0.038665771484375, -0.008575439453125, -0.01024627685546875, 0.01311492919921875, -0.027801513671875, 0.004207611083984375, -0.05010986328125, -0.043853759765625, -0.01500701904296875, 0.0036182403564453125, 0.024169921875, 0.049652099609375, 0.044464111328125, 0.00041484832763671875, 0.0005173683166503906, 0.00433349609375, 0.0192413330078125, 0.01678466796875, 0.0609130859375, -0.046966552734375, 0.038482666015625, -0.005634307861328125, -0.0234222412109375, -0.001644134521484375, 0.036468505859375, 0.0055389404296875, 0.037017822265625, 0.059478759765625, -0.0084381103515625, 0.01355743408203125, 0.01302337646484375, 0.0308837890625, -0.022247314453125, -0.01136016845703125, -0.035125732421875, 0.0261993408203125, -0.045501708984375, -0.0335693359375, -0.003253936767578125, 0.0254974365234375, -0.062744140625, 0.0038509368896484375, -0.04461669921875, 0.0263519287109375, -0.042938232421875, 0.0117950439453125, 0.052490234375, -0.01222991943359375, -0.0208740234375, 0.01397705078125, -0.034271240234375, 0.025360107421875, 0.0164947509765625, -0.0020503997802734375, 0.0006203651428222656, -0.0787353515625, -0.01934814453125, 0.037506103515625, 0.0008420944213867188, 0.01244354248046875, -0.00505828857421875, -0.026885986328125, 0.033172607421875, -0.052520751953125, -0.0196685791015625, -0.0072174072265625, -0.0307464599609375, -0.025726318359375, -0.0070037841796875, -0.0215606689453125, 0.003936767578125, 0.0013256072998046875, 0.002635955810546875, 0.018096923828125, -0.02056884765625, -0.035675048828125, -0.03570556640625, -0.06787109375, -0.0299224853515625, 0.01554107666015625, 0.01629638671875, -0.005825042724609375, 0.0170745849609375, -0.02520751953125, -0.062042236328125, -0.0247344970703125, 0.0318603515625, 0.0007109642028808594, -0.01227569580078125, 0.0232391357421875, -0.032562255859375, -0.003986358642578125, 0.0014791488647460938, 0.03717041015625, 0.02960205078125, -0.037811279296875, -0.0114593505859375, -0.0294647216796875, 0.00882720947265625, -0.006931304931640625, 0.0025424957275390625, 0.03546142578125, 0.0183258056640625, -0.031951904296875, -0.029144287109375, 0.01433563232421875, 0.06182861328125, 0.01116943359375, -0.004825592041015625, -0.01149749755859375, -0.08245849609375, 0.037689208984375, -0.034576416015625, -0.027374267578125, -0.01377105712890625, 0.05133056640625, -0.0255584716796875, 0.0092315673828125, -0.0308380126953125, -0.051971435546875, -0.0311431884765625, 0.00003314018249511719, -0.03558349609375, 0.036224365234375, -0.01381683349609375, 0.0204315185546875, -0.006603240966796875, 0.03399658203125, -0.035797119140625, -0.0203704833984375, 0.041229248046875, -0.057220458984375, 0.034088134765625, -0.0770263671875, -0.0259246826171875, -0.046234130859375, 0.0909423828125, -0.036895751953125, 0.0014801025390625, -0.008331298828125, -0.003681182861328125, -0.0116729736328125, -0.01276397705078125, -0.049102783203125, -0.007537841796875, -0.01457977294921875, -0.004886627197265625, -0.0237274169921875, 0.0077362060546875, -0.042633056640625, 0.07122802734375, -0.00795745849609375, -0.0243682861328125, 0.01456451416015625, -0.0181884765625, -0.00421905517578125, 0.00966644287109375, -0.031890869140625, -0.0290069580078125, -0.004474639892578125, -0.0016069412231445312, -0.0577392578125, -0.0008282661437988281, -0.01207733154296875, 0.019622802734375, -0.0082550048828125, 0.0102081298828125, -0.047332763671875, -0.002262115478515625, 0.03125, 0.0340576171875, 0.0015354156494140625, -0.0238037109375, -0.0097808837890625, 0.0281219482421875, 0.042633056640625, -0.01419830322265625, -0.02386474609375, -0.0298309326171875, -0.036865234375, -0.035797119140625, -0.005268096923828125, -0.00704193115234375, 0.0149078369140625, -0.0285797119140625, 0.043548583984375, 0.02691650390625, 0.04168701171875, 0.004459381103515625, 0.0031833648681640625, 0.0030994415283203125, 0.049285888671875, 0.05230712890625, 0.050994873046875, -0.0206298828125, -0.021209716796875, 0.0003292560577392578, 0.067626953125, 0.01294708251953125, -0.01255035400390625, -0.0090179443359375, 0.00429534912109375, 0.04461669921875, 0.02593994140625, -0.0007367134094238281, 0.005733489990234375, -0.037017822265625, 0.049407958984375, 0.03839111328125, 0.023712158203125, 0.024627685546875, -0.019622802734375, 0.01245880126953125, -0.017852783203125, 0.002170562744140625, 0.0251007080078125, -0.041900634765625, 0.003932952880859375, -0.024505615234375, 0.02337646484375, -0.03741455078125, -0.0014200210571289062, 0.0209808349609375, -0.008270263671875, -0.039642333984375, -0.0079345703125, 0.0083465576171875, 0.062744140625, -0.00301361083984375, 0.0126495361328125, -0.005260467529296875, 0.0219268798828125, -0.006572723388671875, -0.0115509033203125, -0.039154052734375, 0.0196990966796875, -0.005214691162109375, 0.026153564453125, 0.005290985107421875, -0.00986480712890625, -0.048675537109375, -0.00890350341796875, 0.057830810546875, -0.0020847320556640625, -0.060089111328125, 0.005931854248046875, 0.0027618408203125, 0.03509521484375, 0.0307159423828125, 0.005512237548828125, 0.0186920166015625, 0.013275146484375, -0.00507354736328125, -0.042877197265625, -0.052642822265625, 0.0531005859375, -0.04791259765625, -0.05157470703125, -0.0216217041015625, -0.01558685302734375, 0.048095703125, -0.045013427734375, 0.00675201416015625, 0.004413604736328125, -0.0250701904296875, 0.04669189453125, 0.0478515625, -0.036529541015625, -0.01253509521484375, 0.061004638671875, 0.021148681640625, -0.080810546875, 0.03265380859375, 0.0268402099609375, 0.0076904296875, -0.03350830078125, -0.02166748046875, 0.014434814453125, 0.02435302734375, 0.039337158203125, 0.002353668212890625, 0.007549285888671875, 0.0015573501586914062, 0.0036411285400390625, -0.0160675048828125, -0.01534271240234375, 0.013763427734375, 0.0312347412109375, -0.01189422607421875, 0.0045318603515625, 0.006717681884765625, -0.01474761962890625, -0.04901123046875, 0.007602691650390625, -0.06414794921875, -0.0188140869140625, 0.0025691986083984375, 0.01425933837890625, -0.02276611328125, -0.01230621337890625, 0.01666259765625, 0.019805908203125, -0.03802490234375, -0.0283050537109375, 0.050323486328125, -0.019134521484375, 0.01412200927734375, -0.038330078125, 0.0039520263671875, -0.0362548828125, 0.0207061767578125, -3.5762786865234375e-7, -0.01343536376953125, -0.0123748779296875, -0.0335693359375, -0.024169921875, -0.0423583984375, -0.03582763671875, -0.021209716796875, -0.042572021484375, 0.01535797119140625, 0.0079345703125, 0.01468658447265625, -0.0276641845703125, -0.0599365234375, -0.022430419921875, 0.00936126708984375, 0.029083251953125, -0.0143280029296875, 0.0233917236328125, -0.0085906982421875, -0.0163421630859375, 0.051605224609375, 0.01418304443359375, -0.002727508544921875, -0.01093292236328125, -0.041900634765625, 0.01520538330078125, -0.0313720703125, -0.0160675048828125, -0.0019245147705078125, 0.01029205322265625, -0.0204620361328125, -0.0215301513671875, -0.016510009765625, -0.0037384033203125, -0.054534912109375, 0.00566864013671875, -0.022186279296875, 0.08148193359375, -0.0487060546875, -0.0421142578125, 0.0394287109375, -0.043487548828125, -0.044921875, 0.0167388916015625, 0.017669677734375, -0.002288818359375, 0.0050506591796875, -0.01091766357421875, 0.004100799560546875, -0.006305694580078125, 0.0258636474609375, 0.041961669921875, -0.0474853515625, 0.007061004638671875, 0.0137176513671875, -0.030517578125, 0.01103973388671875, -0.03936767578125, 0.05694580078125, -0.007568359375, 0.034942626953125, -0.027099609375, 0.015655517578125, 0.00737762451171875, -0.0172119140625, 0.023651123046875, 0.031219482421875, 0.0704345703125, -0.05169677734375, 0.00948333740234375, 0.003143310546875, -0.055999755859375, 0.013397216796875, 0.00733184814453125, -0.0255279541015625, -0.0399169921875, 0.0238189697265625, -0.03741455078125, -0.0175628662109375, 0.0091094970703125, 0.0142822265625, -0.017913818359375, -0.0109405517578125, 0.03973388671875, 0.02825927734375, 0.00107574462890625, 0.01300048828125, -0.004566192626953125, 0.006122589111328125, -0.0065765380859375, -0.0188446044921875, -0.003040313720703125, -0.048797607421875, -0.043670654296875, -0.0157012939453125, -0.0285186767578125, -0.0079803466796875, 0.0239715576171875, 0.0234832763671875, 0.0308837890625, 0.06451416015625, 0.007526397705078125, -0.0036754608154296875, 0.026702880859375, -0.0005083084106445312, 0.01444244384765625, -0.022674560546875, 0.0207061767578125, 0.0006084442138671875, -0.0267486572265625, 0.01483917236328125, -0.01155853271484375, -0.0305328369140625, -0.003017425537109375, 0.01274871826171875, 0.0738525390625, -0.002750396728515625, -0.040802001953125, 0.024566650390625, 0.0010118484497070312, -0.0222015380859375, -0.0207366943359375, 0.0161285400390625, -0.040191650390625, -0.0258026123046875, -0.004024505615234375, -0.0294036865234375, 0.006282806396484375, -0.01085662841796875, -0.0263671875, 0.10675048828125, -0.0167694091796875, 0.007843017578125, 0.023834228515625, 0.0516357421875, -0.03472900390625, 0.03369140625, 0.004665374755859375, 0.0234832763671875, -0.0794677734375, 0.031951904296875, -0.0287017822265625, 0.012115478515625, -0.0003113746643066406, 0.01568603515625, -0.008392333984375, -0.0006337165832519531, -0.031768798828125, -0.001373291015625, 0.0478515625, 0.05926513671875, 0.049957275390625, 0.019622802734375, -0.017547607421875, -0.022003173828125, -0.01015472412109375, 0.0020923614501953125, 0.0290374755859375, -0.00667572021484375, -0.03302001953125, 0.01556396484375, 0.00696563720703125, 0.00765228271484375, -0.007049560546875, 0.0701904296875, -0.04254150390625, -0.01074981689453125, 0.041015625, -0.010986328125, 0.04498291015625, 0.00908660888671875, -0.013427734375, 0.08306884765625, 0.08172607421875, -0.0080718994140625, 0.0286407470703125, -0.01250457763671875, -0.047698974609375, -0.007343292236328125, -0.004810333251953125, -0.01485443115234375, -0.0015592575073242188, -0.03411865234375, 0.0280914306640625, 0.005084991455078125, 0.05023193359375, 0.036956787109375, 0.018310546875, -0.00597381591796875, 0.0309600830078125, 0.000023186206817626953, 0.048431396484375, -0.037506103515625, -0.034820556640625, -0.0029163360595703125, -0.0286712646484375, 0.0278778076171875, -0.004302978515625, 0.0218353271484375, 0.0341796875, 0.0094451904296875, -0.0156097412109375, 0.010345458984375, 0.01326751708984375, -0.0099945068359375, 0.0090179443359375, 0.0146026611328125, -0.0159912109375, 0.0214385986328125, -0.001552581787109375, -0.004657745361328125, -0.0015668869018554688, -0.00673675537109375, -0.003498077392578125, 0.01470947265625, -0.0031452178955078125, 0.0157623291015625, 0.01366424560546875, -0.0078125, -0.03369140625, -0.025604248046875, -0.01287841796875, -0.052886962890625, -0.021026611328125, 0.06103515625, -0.00464630126953125, -0.00858306884765625, 0.07586669921875, 0.09423828125, -0.049285888671875, -0.031463623046875, 0.047119140625, -0.011016845703125, 0.0211334228515625, -0.01148223876953125, 0.02227783203125, 0.0302276611328125, -0.0005145072937011719, -0.0230255126953125, 0.06988525390625, 0.037750244140625, -0.007259368896484375, 0.016082763671875, 0.026031494140625, -0.044921875, 0.03289794921875, 0.016693115234375, 0.0904541015625, 0.044036865234375, 0.02130126953125, -0.004085540771484375, 0.033599853515625, 0.0433349609375, -0.059814453125, -0.01436614990234375, -0.01543426513671875, 0.068115234375, -0.03631591796875, 0.0089263916015625, 0.0052337646484375, 0.01351165771484375, -0.020294189453125, 0.030609130859375, 0.044219970703125, 0.0032787322998046875, -0.005828857421875, -0.020660400390625, -0.01458740234375, 0.054534912109375, 0.0187225341796875, 0.0654296875, -0.04559326171875, 0.039276123046875, -0.0106658935546875, 0.0213775634765625, -0.0247039794921875, -0.01282501220703125, -0.0070343017578125, 0.0192413330078125, 0.020111083984375, -0.004425048828125, -0.0178070068359375, 0.0447998046875, 0.005947113037109375, -0.01494598388671875, 0.020843505859375, -0.0097808837890625, 0.00047206878662109375, 0.00400543212890625, -0.056060791015625, -0.04949951171875, -0.0257568359375, -0.0004432201385498047, 0.008209228515625, -0.01020050048828125, -0.042877197265625, -0.044281005859375, -0.00014650821685791016, 0.033294677734375, -0.00811767578125, 0.01285552978515625, 0.0188446044921875, 0.01314544677734375, 0.02349853515625, 0.01168060302734375, -0.00617218017578125, 0.04315185546875, -0.0197296142578125, 0.0374755859375, -0.0044097900390625, 0.05462646484375, 0.020111083984375, -0.006267547607421875, 0.043304443359375, 0.0290679931640625, 0.00836944580078125, -0.0548095703125, 0.00453948974609375, 0.0491943359375, -0.0054931640625, 0.0268096923828125, -0.006252288818359375, -0.0283966064453125, 0.0018482208251953125, -0.005626678466796875, 0.00835418701171875, 0.0159454345703125, -0.0081939697265625, -0.022216796875, 0.033416748046875, 0.0026416778564453125, 0.00820159912109375, -0.052825927734375, 0.0654296875, -0.01012420654296875, 0.009124755859375, -0.01120758056640625, 0.003673553466796875, -0.022186279296875, -0.01377105712890625, -0.00524139404296875, -0.013702392578125, -0.0302886962890625, 0.04461669921875, 0.0030612945556640625, 0.006206512451171875, 0.01085662841796875, -0.0185546875, 0.01317596435546875, -0.021453857421875, 0.027313232421875, 0.00591278076171875, 0.032958984375, -0.010589599609375, 0.048095703125, -0.0310211181640625, -0.0316162109375, -0.046966552734375, 0.00572967529296875, -0.062042236328125, 0.0033111572265625, -0.0188751220703125, 0.00986480712890625, 0.02142333984375, -0.0467529296875, -0.11199951171875, 0.0212860107421875, -0.0309295654296875, -0.051239013671875, -0.0248870849609375, 0.008941650390625, -0.0055999755859375, -0.0013637542724609375, -0.0020771026611328125, -0.0426025390625, -0.01702880859375, 0.033203125, -0.0072174072265625, 0.07904052734375, -0.042510986328125, 0.0240631103515625, -0.03302001953125, 0.0260162353515625, 0.0016260147094726562, 0.004894256591796875, -0.0024929046630859375, -0.012969970703125, 0.0338134765625, 0.053863525390625, -0.01323699951171875, -0.033203125, 0.0189056396484375, -0.04083251953125, -0.0189971923828125, 0.0015411376953125, -0.042724609375, -0.0157012939453125, 0.11749267578125, 0.0452880859375, 0.018707275390625, -0.0288238525390625, 0.0247802734375, -0.0533447265625, -0.062164306640625, -0.01091766357421875, 0.0276641845703125, -0.080810546875, -0.006870269775390625, 0.06707763671875, -0.04473876953125, -0.0355224609375, 0.027130126953125, -0.06719970703125, 0.0229644775390625, 0.00905609130859375, -0.00443267822265625, -0.02392578125, -0.032073974609375, 0.08599853515625, -0.033966064453125, 0.01366424560546875, 0.0146942138671875, 0.01125335693359375, 0.05731201171875, 0.03131103515625, 0.0631103515625, 0.0140380859375, -0.04364013671875, 0.026702880859375, 0.0215301513671875, 0.0034809112548828125, -0.042633056640625, -0.0670166015625, 0.009124755859375, 0.0102996826171875, -0.00958251953125, 0.0137481689453125, -0.00902557373046875, 0.01531982421875, -0.01434326171875, 0.0452880859375, -0.005374908447265625, -0.03955078125, -0.04925537109375, 0.034393310546875, -0.01003265380859375, -0.018524169921875, 0.03326416015625, -0.031585693359375, 0.010467529296875, 0.011444091796875, 0.031494140625, -0.01328277587890625, 0.01447296142578125, -0.048828125, 0.00482177734375, -0.0039043426513671875 ]
445de9f006f94217d57208911f7fdf1096a97223
Wordpress Stackexchange Q: reason of splitting theme files to multiple files I can create my theme without splitting it into separate files. Why do theme developers split WordPress theme into a few single files like header.php sidebar.php and etc? A: Regardless of the platform (WordPress, Joomla!, Drupal) or the language (PHP, C++, VB) it's pretty much accepted/standard practice to break out code in to functional units. This includes not only functions and classes, but files as well. As @Toscho points out: * *The code is used in multiple places. *It improves readability. It also makes it easier to: * *Maintain your code. *Reuse it in other areas. *Organize it in to manageable chunks/blocks. *Work in a team environment. *... The list could go on for a very long time.
Q: reason of splitting theme files to multiple files I can create my theme without splitting it into separate files. Why do theme developers split WordPress theme into a few single files like header.php sidebar.php and etc? A: Regardless of the platform (WordPress, Joomla!, Drupal) or the language (PHP, C++, VB) it's pretty much accepted/standard practice to break out code in to functional units. This includes not only functions and classes, but files as well. As @Toscho points out: * *The code is used in multiple places. *It improves readability. It also makes it easier to: * *Maintain your code. *Reuse it in other areas. *Organize it in to manageable chunks/blocks. *Work in a team environment. *... The list could go on for a very long time. A: You need that for child themes. If you have a separate header.php a child theme can use its own header.php and override the parent theme’s file. Plus, header.php and footer.php are used in wp-signup.php. Another reason is readability: Putting all the code for a theme into just one file gets very messy very fast. A use case for a compact theme is testing and debugging: My Mini Theme uses just index.php and comments.php for output. Whenever a plugin doesn’t do what I expected I use that theme to be sure it is not a theme issue. A: Both @toscho's and @stephen's answers good answers, and I upvoted them, but also remember that WordPress looks for particular template files depending upon context. For example, a file named category.php will be used automatically for category archives. author.php will be used for author archives. If you choose not to use the built in template architecture you will have to build those switches (or at least the ones you want) into your code, which would be tedious and redundant.
wordpress
{ "language": "en", "length": 303, "provenance": "stackexchange_00019.jsonl.gz:426132", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73765" }
[ -0.002490997314453125, -0.031707763671875, -0.033477783203125, -0.0640869140625, -0.02410888671875, 0.0028095245361328125, -0.033966064453125, 0.035064697265625, -0.04132080078125, 0.01081085205078125, 0.006893157958984375, 0.01861572265625, -0.025909423828125, -0.0321044921875, 0.03436279296875, -0.033721923828125, 0.0183258056640625, -0.0477294921875, -0.00962066650390625, -0.0036182403564453125, -0.0051116943359375, 0.0167999267578125, -0.0197601318359375, 0.001522064208984375, 0.00777435302734375, -0.0030517578125, 0.01177978515625, -0.00959014892578125, -0.0168609619140625, -0.033111572265625, 0.003566741943359375, 0.055511474609375, 0.018218994140625, 0.01555633544921875, 0.0261383056640625, 0.058349609375, -0.01384735107421875, 0.0125885009765625, 0.048553466796875, -0.008544921875, 0.0036182403564453125, -0.0030689239501953125, 0.041900634765625, 0.0523681640625, 0.0029430389404296875, -0.028289794921875, 0.005893707275390625, -0.0611572265625, 0.0036716461181640625, -0.041656494140625, -0.00856781005859375, -0.0081939697265625, 0.020843505859375, -0.01403045654296875, -0.025238037109375, -0.0079193115234375, 0.023956298828125, -0.026947021484375, 0.02880859375, -0.03375244140625, -0.045501708984375, -0.00954437255859375, 0.04888916015625, -0.009979248046875, -0.0100860595703125, 0.00006955862045288086, -0.038909912109375, 0.02264404296875, -0.038665771484375, -0.01464080810546875, 0.0101470947265625, -0.04132080078125, 0.00417327880859375, -0.0276031494140625, -0.004100799560546875, -0.01308441162109375, 0.0207977294921875, -0.01275634765625, -0.002964019775390625, 0.004642486572265625, -0.0247039794921875, -0.0023040771484375, -0.054718017578125, -0.05029296875, 0.0122528076171875, -0.00666046142578125, -0.019683837890625, 0.005207061767578125, -0.0677490234375, -0.0019588470458984375, -0.04241943359375, -0.00036406517028808594, -0.03997802734375, -0.0213165283203125, -0.00992584228515625, -0.0128173828125, -0.0026340484619140625, 0.0016765594482421875, -0.00927734375, 0.02862548828125, 0.015167236328125, -0.0400390625, 0.06036376953125, -0.03277587890625, 0.005680084228515625, 0.047760009765625, -0.0174560546875, -0.018463134765625, 0.01041412353515625, 0.028717041015625, -0.00017070770263671875, -0.0163116455078125, -0.00418853759765625, -0.0733642578125, 0.0224761962890625, 0.018646240234375, -0.031402587890625, 0.054473876953125, 0.043914794921875, 0.005245208740234375, 0.0114288330078125, 0.0287933349609375, 0.008453369140625, 0.0010833740234375, -0.0183258056640625, -0.022613525390625, -0.0059356689453125, -0.019012451171875, 0.004505157470703125, 0.05072021484375, -0.0012607574462890625, -0.026123046875, -0.0225372314453125, 0.0231781005859375, -0.0164031982421875, -0.0150909423828125, 0.04315185546875, -0.0099945068359375, -0.01824951171875, 0.03277587890625, -0.01412200927734375, -0.054412841796875, -0.030853271484375, -0.034698486328125, -0.0215911865234375, 0.01116180419921875, 0.0233154296875, 0.0208587646484375, -0.01415252685546875, -0.01538848876953125, -0.0218658447265625, 0.006763458251953125, 0.000934600830078125, 0.006664276123046875, -0.0137481689453125, -0.03424072265625, -0.0282135009765625, -0.0218048095703125, 0.047088623046875, -0.00946044921875, -0.0096893310546875, 0.0020465850830078125, 0.0309600830078125, -0.0198822021484375, -0.03167724609375, -0.0007543563842773438, -0.0211029052734375, -0.0002753734588623047, 0.012115478515625, -0.04052734375, -0.00556182861328125, -0.04315185546875, 0.0309906005859375, 0.029083251953125, 0.020416259765625, 0.06634521484375, 0.061553955078125, -0.0516357421875, -0.00998687744140625, 0.07183837890625, -0.021728515625, -0.0212249755859375, 0.0057220458984375, -0.0341796875, -0.06341552734375, 0.08160400390625, -0.00833892822265625, 0.08868408203125, 0.01416778564453125, 0.0133819580078125, 0.00540924072265625, 0.006214141845703125, -0.005077362060546875, 0.020721435546875, 0.00759124755859375, -0.01116180419921875, 0.0017862319946289062, 0.020050048828125, -0.001049041748046875, -0.031890869140625, -0.0220947265625, -0.0031185150146484375, 0.01219940185546875, 0.0245361328125, 0.017425537109375, 0.00543212890625, -0.00984954833984375, 0.010101318359375, -0.005218505859375, 0.035858154296875, 0.0142364501953125, 0.0291595458984375, -0.0258636474609375, -0.04095458984375, -0.0187835693359375, 0.007587432861328125, 0.0179443359375, 0.004489898681640625, 0.010528564453125, -0.029541015625, 0.035736083984375, 0.00738525390625, 0.011688232421875, 0.05029296875, 0.0382080078125, -0.02130126953125, -0.00519561767578125, -0.0164031982421875, -0.01442718505859375, 0.03204345703125, -0.0792236328125, 0.0284576416015625, 0.06463623046875, 0.038726806640625, -0.0277862548828125, -0.001361846923828125, 0.01690673828125, -0.024688720703125, -0.011505126953125, 0.033660888671875, 0.040374755859375, 0.035003662109375, -0.0297393798828125, -0.01447296142578125, 0.0662841796875, -0.04840087890625, -0.01464080810546875, 0.005489349365234375, 0.01543426513671875, 0.01256561279296875, -0.0109405517578125, -0.044586181640625, 0.0394287109375, -0.06903076171875, -0.0131378173828125, 0.041839599609375, -0.04931640625, -0.06524658203125, -0.0187530517578125, 0.030029296875, 0.0181427001953125, -0.070556640625, -0.03131103515625, -0.0318603515625, 0.039215087890625, 0.0240936279296875, 0.0311126708984375, 0.0118865966796875, -0.011474609375, 0.023223876953125, -0.0009450912475585938, -0.038970947265625, 0.024627685546875, 0.05450439453125, -0.014801025390625, 0.012969970703125, 0.007198333740234375, -0.036224365234375, 0.0290374755859375, 0.01690673828125, -0.0143890380859375, -0.005802154541015625, -0.0233001708984375, -0.0157318115234375, 0.0281982421875, -0.057373046875, -0.0042877197265625, -0.01316070556640625, 0.0382080078125, 0.0184478759765625, 0.0030727386474609375, 0.054931640625, 0.0011386871337890625, 0.057403564453125, 0.01204681396484375, 0.00412750244140625, 0.0609130859375, 0.01453399658203125, -0.00009101629257202148, -0.003063201904296875, 0.040374755859375, 0.021697998046875, -0.0166778564453125, -0.0101165771484375, 0.006046295166015625, 0.007801055908203125, 0.032012939453125, -0.023834228515625, -0.02569580078125, 0.005382537841796875, -0.07275390625, -0.02752685546875, 0.022552490234375, 0.054718017578125, 0.00148773193359375, -0.034332275390625, 0.0042724609375, 0.031341552734375, -0.010955810546875, -0.031951904296875, -0.008209228515625, -0.035186767578125, 0.0287628173828125, -0.021240234375, -0.005252838134765625, -0.0266571044921875, -0.0214385986328125, 0.02734375, -0.00600433349609375, -0.027618408203125, -0.038177490234375, -0.0216217041015625, -0.03936767578125, 0.0134124755859375, -0.005756378173828125, -0.0132904052734375, -0.00604248046875, 0.0260162353515625, -0.01279449462890625, -0.041290283203125, -0.029266357421875, 0.00458526611328125, -0.0122222900390625, -0.0238494873046875, -0.019775390625, -0.00539398193359375, -0.009521484375, 0.01142120361328125, -0.01175689697265625, -0.005672454833984375, -0.0026302337646484375, -0.0249786376953125, -0.037841796875, -0.0292510986328125, -0.033416748046875, 0.00469207763671875, 0.0322265625, -0.0548095703125, -0.041046142578125, -0.06256103515625, -0.054656982421875, 0.0035266876220703125, -0.048736572265625, 0.0195159912109375, 0.052490234375, -0.0182037353515625, -0.0179595947265625, 0.01108551025390625, 0.02978515625, 0.00836944580078125, -0.04766845703125, -0.021575927734375, 0.09075927734375, 0.03863525390625, 0.065185546875, -0.01197052001953125, -0.00980377197265625, -0.0462646484375, 0.039398193359375, -0.0167694091796875, -0.028717041015625, -0.03271484375, 0.0167999267578125, -0.025909423828125, -0.0128631591796875, 0.035369873046875, -0.00438690185546875, -0.0007905960083007812, 0.00785064697265625, -0.0203094482421875, 0.002872467041015625, 0.048614501953125, -0.06365966796875, 0.009124755859375, 0.0360107421875, 0.017425537109375, -0.04339599609375, -0.0413818359375, -0.10772705078125, -0.01045989990234375, -0.011199951171875, 0.02203369140625, 0.00804901123046875, 0.0111846923828125, -0.03924560546875, 0.05108642578125, -0.00391387939453125, -0.00713348388671875, 0.0186309814453125, -0.00824737548828125, 0.011016845703125, 0.015716552734375, 0.01568603515625, -0.02984619140625, -0.005657196044921875, -0.02203369140625, -0.05078125, -0.01093292236328125, -0.01187896728515625, 0.057830810546875, 0.0024852752685546875, -0.022705078125, -0.0176849365234375, 0.0296783447265625, -0.01143646240234375, 0.049957275390625, -0.0218353271484375, -0.01065826416015625, 0.054718017578125, 0.0296173095703125, 0.004451751708984375, 0.0192413330078125, -0.0235137939453125, -0.0296173095703125, -0.0294342041015625, 0.0015306472778320312, -0.01444244384765625, -0.0030384063720703125, 0.000957489013671875, -0.021270751953125, -0.0187835693359375, -0.02435302734375, 0.00469970703125, 0.01800537109375, 0.029327392578125, -0.0201263427734375, -0.03924560546875, -0.0036449432373046875, 0.024505615234375, 0.007472991943359375, -0.023101806640625, 0.0309600830078125, 0.06298828125, 0.009552001953125, -0.026092529296875, -0.1353759765625, 0.0229339599609375, 0.0496826171875, 0.0193023681640625, 0.034027099609375, -0.006591796875, -0.05181884765625, 0.1075439453125, 0.0195770263671875, -0.0177764892578125, 0.0088043212890625, 0.0254669189453125, -0.01812744140625, -0.00795745849609375, -0.0126800537109375, -0.0399169921875, 0.0294647216796875, 0.009185791015625, 0.01044464111328125, 0.00832366943359375, 0.00417327880859375, 0.0127410888671875, -0.00012981891632080078, -0.040283203125, -0.031707763671875, -0.03521728515625, -0.0003294944763183594, 0.00011652708053588867, 0.037750244140625, 0.00893402099609375, 0.0171661376953125, 0.03533935546875, 0.06976318359375, -0.0029315948486328125, 0.040008544921875, 0.0382080078125, -0.0301666259765625, 0.03228759765625, 0.0206298828125, -0.04296875, 0.01035308837890625, 0.003398895263671875, 0.058563232421875, 0.0714111328125, -0.002063751220703125, -0.04608154296875, 0.0235748291015625, 0.00824737548828125, -0.05633544921875, -0.0150299072265625, 0.0389404296875, -0.020172119140625, -0.027008056640625, 0.00615692138671875, -0.05401611328125, -0.025665283203125, -0.044586181640625, 0.0012121200561523438, 0.006839752197265625, -0.01812744140625, 0.06549072265625, -0.0330810546875, -0.0158233642578125, 0.0183563232421875, -0.0169830322265625, 0.0487060546875, 0.044403076171875, 0.0139312744140625, -0.0009975433349609375, 0.01224517822265625, 0.01374053955078125, -0.01078033447265625, 0.0162353515625, -0.0638427734375, 0.0146026611328125, 0.046539306640625, 0.05108642578125, 0.0114288330078125, -0.037689208984375, 0.006595611572265625, -0.0211944580078125, 0.00800323486328125, 0.00513458251953125, -0.0162353515625, -0.03082275390625, 0.0028076171875, 0.0200958251953125, 0.0257568359375, -0.0283660888671875, -0.0006642341613769531, -0.0178680419921875, 0.0038661956787109375, -0.0207977294921875, 0.02410888671875, -0.07928466796875, 0.0184173583984375, 0.036041259765625, -0.03271484375, 0.00856781005859375, 0.00994110107421875, -0.0887451171875, -0.07745361328125, 0.017547607421875, 0.004947662353515625, 0.0186309814453125, -0.001247406005859375, -0.004276275634765625, -0.02044677734375, -0.009124755859375, 0.03253173828125, 0.00397491455078125, 0.0296630859375, -0.01067352294921875, -0.09405517578125, 0.0335693359375, -0.0154571533203125, 0.017730712890625, -0.03363037109375, -0.07464599609375, -0.049896240234375, -0.0161895751953125, -0.002185821533203125, 0.00604248046875, 0.0175018310546875, 0.0053863525390625, -0.0263519287109375, 0.02264404296875, 0.00913238525390625, 0.043975830078125, -0.04351806640625, 0.034912109375, 0.01123809814453125, 0.0007190704345703125, -0.023284912109375, 0.01251983642578125, 0.0121307373046875, -0.00347137451171875, 0.0101470947265625, -0.0291748046875, -0.0258331298828125, -0.0236968994140625, -0.007049560546875, -0.004367828369140625, 0.017333984375, -0.003086090087890625, 0.0224761962890625, -0.01776123046875, 0.00533294677734375, -0.0215606689453125, 0.0086669921875, -0.034332275390625, 0.0024127960205078125, -0.0180511474609375, -0.00620269775390625, -0.0032176971435546875, -0.01092529296875, -0.05755615234375, 0.043212890625, 0.02239990234375, 0.011993408203125, 0.0036716461181640625, -0.035797119140625, 0.043121337890625, 0.0740966796875, -0.014862060546875, 0.02105712890625, 0.0321044921875, -0.0016889572143554688, 0.0140228271484375, 0.03515625, 0.0133209228515625, -0.01132965087890625, 0.017822265625, -0.00574493408203125, -0.01142120361328125, -0.023468017578125, -0.019317626953125, 0.062225341796875, 0.057403564453125, 0.11700439453125, -0.069580078125, 0.0198516845703125, 0.03271484375, -0.036712646484375, 0.047271728515625, 0.024932861328125, 0.005863189697265625, -0.045440673828125, 0.047760009765625, 0.049224853515625, 0.0230712890625, 0.03936767578125, 0.00800323486328125, 0.002655029296875, -0.0301361083984375, 0.041534423828125, 0.0029697418212890625, -0.058837890625, 0.011077880859375, 0.060638427734375, -0.0032215118408203125, 0.0033512115478515625, 0.019744873046875, -0.01611328125, -0.01505279541015625, -0.021514892578125, 0.011016845703125, -0.0086517333984375, -0.013427734375, -0.00814056396484375, 0.0033969879150390625, 0.03826904296875, 0.04864501953125, -0.0172119140625, 0.0135345458984375, 0.01033782958984375, 0.028106689453125, -0.06378173828125, -0.0138702392578125, 0.02142333984375, 0.0011730194091796875, -0.00917816162109375, 0.0224761962890625, -0.046600341796875, -0.0198516845703125, -0.0303802490234375, -0.025665283203125, 0.07989501953125, -0.0079193115234375, -0.0289306640625, 0.0245819091796875, 0.0302276611328125, -0.0184783935546875, 0.020263671875, 0.040130615234375, -0.056732177734375, -0.03009033203125, 0.031524658203125, -0.0232391357421875, -0.0006532669067382812, 0.02032470703125, -0.041778564453125, 0.0677490234375, -0.013885498046875, 0.03619384765625, 0.0107269287109375, 0.0214996337890625, 0.003101348876953125, 0.0273284912109375, -0.01383209228515625, 0.043548583984375, -0.01284027099609375, 0.0256805419921875, -0.03070068359375, 0.0024585723876953125, 0.0001856088638305664, 0.0223388671875, 0.061309814453125, -0.0139007568359375, 0.00527191162109375, -0.002887725830078125, 0.09783935546875, 0.0340576171875, 0.007595062255859375, 0.02239990234375, -0.02740478515625, -0.033294677734375, -0.03118896484375, 0.0100250244140625, 0.022064208984375, -0.032958984375, -0.07574462890625, -0.003986358642578125, 0.00872039794921875, -0.0152130126953125, -0.004055023193359375, -0.004802703857421875, -0.046142578125, -0.001049041748046875, 0.00699615478515625, 0.048553466796875, -0.02484130859375, 0.04632568359375, 0.0226593017578125, -0.035308837890625, -0.0017518997192382812, -0.0374755859375, 0.05413818359375, -0.004192352294921875, 0.05279541015625, 0.0167694091796875, 0.025482177734375, 0.04815673828125, -0.0292510986328125, 0.03424072265625, 0.024078369140625, -0.0648193359375, 0.032012939453125, 0.016021728515625, 0.0413818359375, -0.0291748046875, -0.004520416259765625, -0.0001957416534423828, 0.043487548828125, -0.025543212890625, -0.0218505859375, -0.01392364501953125, -0.01012420654296875, 0.01407623291015625, -0.0202484130859375, 0.0050201416015625, -0.00531768798828125, 0.001529693603515625, 0.02490234375, -0.0140380859375, -0.006420135498046875, -0.002681732177734375, 0.01277923583984375, 0.016143798828125, 0.022857666015625, 0.0093231201171875, -0.04937744140625, 0.041473388671875, 0.005916595458984375, 0.04449462890625, 0.006622314453125, 0.0626220703125, 0.01910400390625, -0.020416259765625, -0.003345489501953125, 0.0078582763671875, -0.0257720947265625, 0.0065155029296875, -0.021209716796875, -0.0350341796875, 0.0113983154296875, 0.036224365234375, 0.007659912109375, 0.0031414031982421875, 0.0218505859375, 0.029510498046875, -0.024658203125, -0.0049591064453125, 0.0029392242431640625, -0.0279693603515625, 0.0259857177734375, -0.0215301513671875, 0.0021076202392578125, -0.0074310302734375, -0.036468505859375, -0.0154571533203125, -0.0012235641479492188, 0.0136871337890625, -0.004047393798828125, -0.0137939453125, 0.00040268898010253906, -0.041229248046875, -0.00495147705078125, -0.021575927734375, 0.036529541015625, 0.007808685302734375, -0.0174407958984375, -0.003910064697265625, 0.012908935546875, -0.004436492919921875, -0.0184326171875, 0.0281219482421875, -0.00634765625, 0.0322265625, 0.035400390625, 0.0260009765625, -0.041046142578125, -0.007228851318359375, 0.03656005859375, -0.00768280029296875, 0.031829833984375, 0.0501708984375, -0.0670166015625, -0.0543212890625, -0.03985595703125, 0.05572509765625, 0.05487060546875, 0.06671142578125, -0.000911712646484375, 0.045684814453125, -0.0008459091186523438, -0.01360321044921875, 0.0220794677734375, -0.0052490234375, 0.00450897216796875, 0.019500732421875, 0.018798828125, -0.0145111083984375, -0.036895751953125, -0.022979736328125, 0.047821044921875, -0.045684814453125, -0.0258331298828125, 0.0282440185546875, 0.0287017822265625, -0.028594970703125, 0.034454345703125, 0.006256103515625, -0.038482666015625, -0.00214385986328125, 0.029083251953125, 0.0202789306640625, 0.045135498046875, -0.0302581787109375, -0.007373809814453125, 0.02325439453125, -0.05499267578125, 0.0312347412109375, -0.012359619140625, 0.0077362060546875, 0.0203704833984375, 0.048919677734375, -0.07342529296875, -0.0003008842468261719, -0.016082763671875, 0.015899658203125, -0.01316070556640625, 0.08477783203125, -0.0021991729736328125, -0.0277252197265625, 0.0552978515625, 0.0557861328125, 0.058502197265625, -0.01526641845703125, 0.00812530517578125, 0.059600830078125, -0.01511383056640625, 0.02581787109375, -0.0034923553466796875, -0.01015472412109375, 0.012481689453125, -0.0092010498046875, 0.0305938720703125, -0.00820159912109375, -0.020050048828125, -0.068359375, -0.00954437255859375, 0.035430908203125, -0.003948211669921875, 0.00030159950256347656, -0.0013666152954101562, -0.032684326171875, -0.0097503662109375, 0.01204681396484375, 0.0031681060791015625, -0.0079803466796875, -0.01360321044921875, -0.037078857421875, -0.059326171875, -0.04595947265625, 0.055145263671875, -0.02337646484375, 0.017578125, 0.04217529296875, -0.033203125, 0.032989501953125, 0.01446533203125, 0.039520263671875, 0.079345703125, 0.01145172119140625, -0.02972412109375, 0.00223541259765625, -0.004322052001953125, 0.004306793212890625, -0.010772705078125, 0.002582550048828125, -0.021240234375, -0.021881103515625, -0.051727294921875, 0.004009246826171875, -0.0092620849609375, -0.05975341796875, -0.066162109375, 0.020233154296875, -0.0164031982421875, -0.035125732421875, -0.051025390625, 0.00720977783203125, -0.0311431884765625, 0.01152801513671875, -0.0187835693359375, -0.02264404296875, 0.036590576171875, 0.08209228515625, 0.027374267578125, 0.0203094482421875, 0.01129150390625, 0.042999267578125, 0.01483154296875, 0.04901123046875, 0.046661376953125, -0.001163482666015625, -0.0005764961242675781, -0.0169830322265625, 0.024688720703125, 0.041748046875, -0.0234527587890625, -0.026885986328125, -0.0087738037109375, -0.033355712890625, -0.00024390220642089844, -0.003711700439453125, -0.0201873779296875, -0.0042572021484375, 0.042388916015625, 0.0374755859375, 0.00836944580078125, -0.0146942138671875, 0.0047760009765625, -0.0156402587890625, 0.007724761962890625, 0.0093231201171875, 0.0019273757934570312, -0.052215576171875, -0.00014030933380126953, 0.03253173828125, -0.0052337646484375, 0.046478271484375, -0.021820068359375, -0.03875732421875, 0.004032135009765625, -0.022491455078125, 0.01165008544921875, -0.0765380859375, -0.060455322265625, 0.03338623046875, -0.0101318359375, 0.002216339111328125, 0.00809478759765625, 0.03533935546875, 0.005405426025390625, 0.047271728515625, 0.008941650390625, 0.040557861328125, -0.056060791015625, 0.038116455078125, -0.006412506103515625, 0.0584716796875, -0.06915283203125, -0.0256195068359375, 0.004978179931640625, 0.01265716552734375, -0.006572723388671875, 0.00867462158203125, -0.0110931396484375, 0.041046142578125, -0.01050567626953125, 0.08154296875, -0.00527191162109375, 0.02215576171875, -0.012115478515625, 0.045257568359375, -0.0168914794921875, -0.009002685546875, -0.012451171875, -0.0201568603515625, 0.00913238525390625, 0.0196990966796875, 0.01531982421875, -0.016204833984375, 0.0161590576171875, -0.0275726318359375, 0.00759124755859375, 0.006633758544921875 ]
d8dff3f825092a7a1a5dda930dcec1c660eafb85
Wordpress Stackexchange Q: One metabox for multiple post types I have this code function add_custom_meta_box() { add_meta_box( 'custom_meta_box', // $id 'Custom Meta Box', // $title 'show_custom_meta_box', // $callback 'page', // $page 'normal', // $context 'high'); // $priority } add_action('add_meta_boxes', 'add_custom_meta_box'); I want to add more post type like page,post,custom_post_type in this code 'page', // $page How should I rewrite my code? A: If your aim is to add all post types, then you can get the array of post types with: $post_types = get_post_types( array('public' => true) ); Or add an argument for WP core post types or custom ones: // only WP core post types $post_types = get_post_types( array('public' => true, '_builtin' =>‌ true) ); // only custom post types $post_types = get_post_types( array('public' => true, '_builtin' =>‌ false) ); Use it like this: add_meta_box( 'custom_meta_box', // $id 'Custom Meta Box', // $title 'show_custom_meta_box', // $callback $post_types, 'normal', // $context 'high' // $priority );
Q: One metabox for multiple post types I have this code function add_custom_meta_box() { add_meta_box( 'custom_meta_box', // $id 'Custom Meta Box', // $title 'show_custom_meta_box', // $callback 'page', // $page 'normal', // $context 'high'); // $priority } add_action('add_meta_boxes', 'add_custom_meta_box'); I want to add more post type like page,post,custom_post_type in this code 'page', // $page How should I rewrite my code? A: If your aim is to add all post types, then you can get the array of post types with: $post_types = get_post_types( array('public' => true) ); Or add an argument for WP core post types or custom ones: // only WP core post types $post_types = get_post_types( array('public' => true, '_builtin' =>‌ true) ); // only custom post types $post_types = get_post_types( array('public' => true, '_builtin' =>‌ false) ); Use it like this: add_meta_box( 'custom_meta_box', // $id 'Custom Meta Box', // $title 'show_custom_meta_box', // $callback $post_types, 'normal', // $context 'high' // $priority ); A: Define an array of post types, and register the metabox for each one separately: function add_custom_meta_box() { $post_types = array ( 'post', 'page', 'event' ); foreach( $post_types as $post_type ) { add_meta_box( 'custom_meta_box', // $id 'Custom Meta Box', // $title 'show_custom_meta_box', // $callback $post_type, 'normal', // $context 'high' // $priority ); } }
wordpress
{ "language": "en", "length": 207, "provenance": "stackexchange_00019.jsonl.gz:426145", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73796" }
[ 0.05828857421875, -0.026885986328125, -0.0118408203125, -0.0579833984375, 0.006221771240234375, -0.004558563232421875, 0.025970458984375, 0.00385284423828125, -0.017181396484375, 0.01690673828125, 0.0225372314453125, -0.01666259765625, -0.03564453125, -0.0372314453125, -0.0131072998046875, -0.03106689453125, 0.04449462890625, -0.0223236083984375, 0.027191162109375, -0.01163482666015625, 0.035858154296875, -0.0028362274169921875, 0.0159912109375, 0.08575439453125, 0.0093536376953125, -0.07354736328125, 0.03717041015625, -0.013519287109375, 0.01505279541015625, -0.0012693405151367188, 0.0110626220703125, 0.01335906982421875, 0.0129241943359375, 0.033203125, -0.032501220703125, 0.041046142578125, 0.0142059326171875, 0.010589599609375, 0.019195556640625, 0.02899169921875, -0.00189208984375, 0.01291656494140625, 0.01238250732421875, 0.0019445419311523438, -0.0266571044921875, -0.0311431884765625, 0.0067291259765625, -0.0189208984375, 0.0156402587890625, -0.0404052734375, 0.017181396484375, -0.01519775390625, 0.034637451171875, -0.048370361328125, -0.0233612060546875, -0.020294189453125, -0.003337860107421875, -0.032135009765625, 0.042327880859375, -0.0016469955444335938, -0.035247802734375, -0.0311431884765625, 0.0247039794921875, -0.040496826171875, -0.003574371337890625, 0.006359100341796875, -0.004795074462890625, 0.0076904296875, -0.043487548828125, -0.00463104248046875, 0.037139892578125, -0.038604736328125, 0.0084991455078125, -0.0240936279296875, -0.0087127685546875, -0.0018663406372070312, -0.00676727294921875, -0.0186920166015625, 0.0185699462890625, -0.00759124755859375, 0.021209716796875, -0.0013971328735351562, 0.0022830963134765625, -0.0243988037109375, 0.0224609375, 0.0037841796875, -0.0096588134765625, -0.0203399658203125, -0.019073486328125, -0.029388427734375, -0.013031005859375, -0.12213134765625, -0.006244659423828125, 0.03289794921875, 0.0260009765625, -0.046051025390625, 0.0234222412109375, 0.033966064453125, -0.01171112060546875, -0.00213623046875, 0.019256591796875, -0.044036865234375, 0.039764404296875, -0.0270843505859375, 0.0232391357421875, 0.0128173828125, -0.034027099609375, -0.03558349609375, 0.0452880859375, 0.04718017578125, -0.0015869140625, 0.00103759765625, 0.0078277587890625, -0.0017175674438476562, -0.03070068359375, -0.015960693359375, -0.023681640625, -0.0023097991943359375, -0.00838470458984375, -0.019775390625, 0.0462646484375, 0.048553466796875, 0.04931640625, -0.05914306640625, -0.00005620718002319336, -0.00013077259063720703, -0.05670166015625, -0.0712890625, -0.031219482421875, 0.036773681640625, -0.018768310546875, -0.0129547119140625, 0.053192138671875, 0.051300048828125, 0.02001953125, -0.0199737548828125, 0.01499176025390625, -0.025146484375, -0.008331298828125, 0.01097869873046875, 0.0152587890625, -0.03936767578125, -0.0112762451171875, 0.0023651123046875, -0.0196075439453125, 0.032501220703125, 0.01497650146484375, -0.0095672607421875, -0.020294189453125, -0.047454833984375, -0.0127716064453125, -0.021209716796875, 0.02947998046875, 0.004940032958984375, -0.006237030029296875, 0.01007080078125, 0.040130615234375, -0.027984619140625, -0.03729248046875, -0.037017822265625, -0.00298309326171875, -0.01506805419921875, -0.00032329559326171875, 0.0149688720703125, -0.0054168701171875, 0.0304107666015625, -0.0109405517578125, 0.00785064697265625, 0.0225677490234375, 0.0211029052734375, 0.017547607421875, 0.00861358642578125, 0.0218658447265625, 0.005413055419921875, -0.017852783203125, -0.0089569091796875, 0.0164337158203125, 0.0599365234375, 0.0025634765625, 0.0064849853515625, -0.0261993408203125, -0.05078125, 0.0645751953125, -0.0335693359375, -0.07586669921875, 0.061737060546875, 0.0136871337890625, 0.044647216796875, 0.004978179931640625, -0.005584716796875, 0.07269287109375, 0.0248565673828125, -0.04754638671875, -0.01186370849609375, 0.0021686553955078125, 0.0111083984375, -0.011932373046875, -0.006938934326171875, -0.01071929931640625, 0.037017822265625, -0.0097503662109375, -0.023193359375, 0.00605010986328125, 0.0019435882568359375, -0.046966552734375, -0.00421905517578125, -0.0216217041015625, 0.042205810546875, -0.004840850830078125, -0.012908935546875, 0.01280975341796875, -0.0167236328125, 0.01898193359375, -0.04718017578125, -0.027984619140625, 0.03948974609375, 0.003185272216796875, 0.0188446044921875, -0.01410675048828125, 0.004383087158203125, -0.02398681640625, -0.0091705322265625, -0.032379150390625, 0.0267486572265625, 0.0853271484375, 0.042388916015625, -0.0171661376953125, -0.00024390220642089844, 0.044769287109375, 0.05975341796875, -0.1031494140625, 0.00507354736328125, 0.0295867919921875, 0.01043701171875, -0.0195770263671875, -0.004913330078125, 0.0110015869140625, -0.06744384765625, -0.002727508544921875, 0.046478271484375, 0.0225677490234375, 0.02825927734375, 0.00795745849609375, 0.05877685546875, 0.03619384765625, -0.0296173095703125, 0.00124359130859375, 0.034088134765625, -0.00670623779296875, 0.0311279296875, -0.03961181640625, 0.01629638671875, 0.0307769775390625, -0.02545166015625, 0.0096893310546875, 0.04473876953125, -0.02203369140625, -0.004241943359375, 0.0148162841796875, -0.0179290771484375, -0.00439453125, -0.01904296875, -0.002513885498046875, -0.00960540771484375, 0.0621337890625, -0.00936126708984375, 0.054046630859375, 0.0391845703125, 0.001605987548828125, -0.0010499954223632812, -0.00995635986328125, -0.0300445556640625, -0.01004791259765625, -0.0115966796875, 0.028533935546875, 0.0232391357421875, -0.0484619140625, 0.01357269287109375, 0.0186309814453125, -0.00012564659118652344, -0.0016078948974609375, 0.028350830078125, -0.032073974609375, -0.0147857666015625, -0.00250244140625, -0.034423828125, -0.010009765625, 0.0092926025390625, 0.00897216796875, -0.042694091796875, -0.0006928443908691406, -0.0017528533935546875, -0.0340576171875, 0.041290283203125, 0.0216217041015625, -0.04962158203125, 0.038482666015625, -0.0528564453125, 0.05767822265625, -0.049468994140625, 0.0238037109375, 0.051605224609375, -0.047943115234375, 0.032440185546875, -0.02569580078125, 0.00864410400390625, -0.033782958984375, 0.0270538330078125, -0.009613037109375, -0.066162109375, 0.0017213821411132812, 0.005802154541015625, 0.0208587646484375, 0.0202484130859375, 0.0228118896484375, -0.01070404052734375, 0.017181396484375, 0.03424072265625, -0.0051422119140625, -0.004322052001953125, 0.1016845703125, -0.046295166015625, -0.004474639892578125, -0.05401611328125, -0.037017822265625, -0.0227508544921875, -0.037506103515625, -0.0232086181640625, -0.02227783203125, -0.0196990966796875, -0.0185394287109375, -0.047454833984375, -0.04290771484375, -0.049346923828125, 0.0012121200561523438, -0.01529693603515625, -0.00031280517578125, 0.1025390625, 0.0215301513671875, -0.055694580078125, 0.0005674362182617188, 0.06658935546875, -0.025543212890625, 0.002826690673828125, 0.04608154296875, -0.0281982421875, 0.028045654296875, -0.0026760101318359375, -0.01065826416015625, 0.051361083984375, -0.0390625, -0.0216827392578125, -0.032867431640625, -0.004642486572265625, 0.0066070556640625, 0.0279083251953125, 0.024017333984375, 0.0220184326171875, 0.0394287109375, -0.0262908935546875, 0.0212860107421875, 0.0234375, 0.0183258056640625, -0.01995849609375, -0.049957275390625, -0.017578125, -0.0037078857421875, 0.047943115234375, 0.005100250244140625, 0.03961181640625, 0.032196044921875, 0.016845703125, 0.0037555694580078125, -0.0172271728515625, -0.0271148681640625, -0.045379638671875, -0.000732421875, -0.00029969215393066406, 0.03961181640625, -0.0015411376953125, 0.037689208984375, -0.005138397216796875, 0.0224761962890625, -0.042999267578125, -0.059844970703125, 0.06231689453125, -0.043731689453125, 0.004669189453125, -0.055328369140625, -0.02490234375, -0.00927734375, 0.0889892578125, -0.09063720703125, 0.003025054931640625, -0.0091094970703125, 0.0027637481689453125, 0.01546478271484375, -0.019927978515625, -0.045440673828125, -0.0269775390625, -0.053955078125, 0.014190673828125, 0.018402099609375, -0.04779052734375, -0.00872039794921875, 0.020599365234375, -0.04541015625, -0.020263671875, 0.036651611328125, -0.032623291015625, 0.01494598388671875, 0.0269622802734375, 0.0013675689697265625, -0.0145111083984375, -0.0270538330078125, -0.01369476318359375, -0.09912109375, -0.01971435546875, 0.010223388671875, 0.062469482421875, -0.021453857421875, -0.01800537109375, -0.01007843017578125, 0.0643310546875, 0.01824951171875, 0.0284271240234375, 0.003406524658203125, 0.0166015625, 0.0060577392578125, -0.03515625, 0.00656890869140625, -0.0298614501953125, -0.002140045166015625, 0.028045654296875, -0.00768280029296875, 0.06134033203125, -0.01116943359375, -0.021575927734375, 0.012847900390625, -0.042327880859375, 0.00618743896484375, -0.052093505859375, -0.075927734375, -0.003772735595703125, -0.032745361328125, -0.0132598876953125, -0.056304931640625, -0.04107666015625, -0.0230865478515625, 0.01430511474609375, -0.03704833984375, 0.03997802734375, 0.01605224609375, 0.0301361083984375, -0.014984130859375, -0.09088134765625, -0.022125244140625, 0.0234375, -0.0010995864868164062, 0.0125885009765625, 0.018035888671875, -0.0135345458984375, -0.00170135498046875, -0.0122528076171875, 0.0252838134765625, -0.031982421875, 0.05419921875, -0.0231170654296875, -0.030426025390625, 0.021026611328125, -0.037445068359375, 0.0091552734375, 0.029754638671875, -0.011688232421875, -0.0382080078125, -0.0137176513671875, 0.057098388671875, -0.022064208984375, 0.0360107421875, -0.0350341796875, -0.00635528564453125, -0.0019216537475585938, 0.03680419921875, 0.0278778076171875, 0.030364990234375, -0.006381988525390625, 0.0087127685546875, -0.026763916015625, 0.0008459091186523438, 0.0202789306640625, 0.036773681640625, -0.01174163818359375, 0.01401519775390625, 0.059234619140625, -0.0203094482421875, -0.01390838623046875, 0.01031494140625, 0.01270294189453125, 0.00127410888671875, -0.030853271484375, -0.034423828125, -0.0015859603881835938, 0.05712890625, -0.0048370361328125, 0.01442718505859375, 0.03912353515625, 0.037506103515625, -0.0103607177734375, -0.004180908203125, 0.0030002593994140625, 0.00606536865234375, -0.03802490234375, -0.006893157958984375, 0.00809478759765625, -0.0011959075927734375, -0.0170745849609375, 0.0467529296875, -0.0258636474609375, 0.0250701904296875, 0.0006990432739257812, 0.04449462890625, 0.041107177734375, 0.03656005859375, 0.0126190185546875, -0.0212249755859375, -0.0115203857421875, 0.02056884765625, -0.029571533203125, -0.01727294921875, -0.004482269287109375, 0.0185394287109375, 0.0313720703125, 0.027313232421875, 0.0129241943359375, -0.0229339599609375, -0.028472900390625, -0.0276336669921875, -0.0009703636169433594, 0.0254364013671875, -0.0186614990234375, -0.007659912109375, -0.0025787353515625, -0.006122589111328125, 0.012298583984375, -0.011871337890625, 0.061279296875, 0.0081329345703125, 0.0372314453125, -0.01995849609375, -0.01995849609375, -0.00435638427734375, 0.03082275390625, -0.056304931640625, -0.026092529296875, 0.016632080078125, -0.07391357421875, -0.033966064453125, 0.0036907196044921875, -0.0222015380859375, 0.007068634033203125, -0.020233154296875, 0.037017822265625, -0.013580322265625, -0.0034770965576171875, 0.0007958412170410156, 0.019134521484375, 0.019927978515625, -0.01331329345703125, 0.0341796875, -0.023101806640625, -0.042266845703125, -0.03570556640625, -0.0096435546875, -0.045074462890625, -0.009918212890625, -0.013427734375, 0.006671905517578125, 0.0241546630859375, -0.0051422119140625, 0.0009126663208007812, 0.0023632049560546875, 0.00620269775390625, -0.0224761962890625, 0.0380859375, -0.00009971857070922852, 0.045318603515625, -0.004085540771484375, 0.058349609375, 0.0163726806640625, 0.01488494873046875, -0.01580810546875, -0.021270751953125, 0.0146942138671875, -0.058807373046875, -0.02593994140625, -0.044219970703125, -0.009796142578125, 0.04052734375, 0.047027587890625, -0.00376129150390625, 0.01971435546875, -0.010345458984375, -0.004520416259765625, -0.030242919921875, 0.00797271728515625, -0.023773193359375, 0.00991058349609375, -0.01088714599609375, -0.0243377685546875, 0.0006256103515625, -0.0163116455078125, -0.0012798309326171875, 0.048065185546875, -0.0242919921875, 0.03973388671875, 0.0024318695068359375, -0.0755615234375, 0.050811767578125, 0.04638671875, 0.041046142578125, 0.069580078125, -0.0292510986328125, 0.04156494140625, 0.031463623046875, -0.0220489501953125, 0.006511688232421875, 0.011199951171875, 0.06549072265625, 0.005035400390625, -0.003910064697265625, 0.07818603515625, -0.01424407958984375, 0.021392822265625, 0.0236663818359375, 0.04742431640625, -0.06634521484375, 0.022308349609375, 0.0194549560546875, 0.0171051025390625, 0.062042236328125, -0.016815185546875, 0.00405120849609375, -0.007965087890625, 0.0276031494140625, 0.0184173583984375, -0.025146484375, 0.01439666748046875, 0.0089874267578125, -0.004856109619140625, -0.0391845703125, -0.003421783447265625, -0.01538848876953125, -0.019805908203125, 0.02532958984375, -0.00681304931640625, 0.01119232177734375, 0.02490234375, -0.0019350051879882812, -0.0252685546875, -0.0321044921875, -0.04290771484375, -0.03778076171875, -0.05194091796875, -0.0114288330078125, 0.053466796875, 0.01068878173828125, 0.0101318359375, 0.052215576171875, -0.020111083984375, 0.0235748291015625, 0.00003516674041748047, -0.00670623779296875, -0.06671142578125, -0.03204345703125, 0.0222320556640625, 0.020751953125, -0.0174560546875, 0.034912109375, -0.01788330078125, -0.042327880859375, 0.004825592041015625, 0.0333251953125, 0.043212890625, 0.00281524658203125, -0.031768798828125, 0.04278564453125, -0.007106781005859375, -0.026885986328125, 0.03631591796875, 0.01763916015625, -0.024505615234375, -0.034088134765625, 0.03582763671875, -0.06475830078125, -0.007061004638671875, 0.039794921875, -0.08819580078125, 0.07861328125, -0.01094818115234375, 0.059814453125, 0.00821685791015625, 0.00911712646484375, -0.0210723876953125, -0.0077667236328125, -0.0163116455078125, 0.0223846435546875, -0.00807952880859375, 0.0172271728515625, -0.038238525390625, -0.006072998046875, -0.018402099609375, 0.054931640625, 0.041595458984375, 0.0089263916015625, -0.00722503662109375, -0.00803375244140625, 0.025726318359375, 0.053802490234375, 0.0026035308837890625, -0.00055694580078125, -0.004467010498046875, 0.039947509765625, 0.044525146484375, -0.0138397216796875, 0.05194091796875, -0.01678466796875, -0.046844482421875, 0.00530242919921875, 0.0148773193359375, -0.005580902099609375, -0.00901031494140625, 0.013946533203125, -0.032196044921875, -0.005405426025390625, 0.0116729736328125, 0.01515960693359375, 0.006191253662109375, 0.00792694091796875, 0.005352020263671875, 0.0228118896484375, 0.0292510986328125, -0.0162200927734375, 0.038665771484375, 0.004619598388671875, 0.026092529296875, 0.0310821533203125, 0.019073486328125, 0.0007348060607910156, 0.006900787353515625, 0.0197296142578125, 0.0137176513671875, 0.0025196075439453125, 0.0635986328125, 0.00021064281463623047, 0.0123443603515625, -0.062255859375, 0.0129241943359375, 0.00562286376953125, 0.053619384765625, -0.05242919921875, -0.0732421875, 0.0018606185913085938, -0.01157379150390625, 0.0168304443359375, 0.0269012451171875, 0.033477783203125, 0.007251739501953125, 0.031951904296875, -0.07806396484375, 0.01308441162109375, 0.0012006759643554688, 0.0259246826171875, -0.038818359375, -0.03271484375, -0.0297698974609375, 0.001300811767578125, -0.046478271484375, -0.014129638671875, 0.01947021484375, 0.0789794921875, 0.05072021484375, 0.054107666015625, 0.00605010986328125, -0.047454833984375, 0.0121917724609375, 0.0157623291015625, 0.0009784698486328125, -0.0136871337890625, -0.029571533203125, -0.0496826171875, 0.029266357421875, 0.040130615234375, 0.0499267578125, 0.030181884765625, 0.057464599609375, 0.05255126953125, 0.0174407958984375, 0.00838470458984375, 0.06781005859375, 0.00005894899368286133, -0.027313232421875, -0.0303497314453125, 0.0027637481689453125, 0.0088653564453125, -0.002788543701171875, 0.0177459716796875, 0.006702423095703125, 0.005977630615234375, 0.0034885406494140625, 0.0155029296875, 0.01190948486328125, -0.01296234130859375, 0.033416748046875, 0.018280029296875, 0.058624267578125, 0.032806396484375, -0.0711669921875, -0.020172119140625, -0.0170135498046875, -0.053497314453125, 0.039764404296875, 0.05072021484375, -0.026519775390625, 0.0081024169921875, 0.00585174560546875, -0.006927490234375, 0.006855010986328125, 0.0032787322998046875, 0.0020904541015625, 0.0535888671875, 0.035430908203125, 0.029693603515625, -0.043182373046875, -0.01338958740234375, 0.004535675048828125, 0.0186004638671875, 0.0147247314453125, 0.0249786376953125, 0.015380859375, 0.012603759765625, -0.0268402099609375, -0.01519012451171875, -0.01535797119140625, -0.02630615234375, 0.00945281982421875, 0.00446319580078125, -0.010528564453125, 0.00971221923828125, 0.014556884765625, 0.01291656494140625, 0.05242919921875, -0.046875, -0.01324462890625, 0.017425537109375, 0.01343536376953125, -0.033599853515625, 0.02996826171875, -0.0292205810546875, 0.0157928466796875, -0.04876708984375, -0.061065673828125, 0.061431884765625, 0.006069183349609375, 0.01416015625, 0.0112152099609375, 0.03607177734375, -0.00942230224609375, 0.017913818359375, 0.005054473876953125, 0.018646240234375, 0.033050537109375, 0.007167816162109375, -0.04559326171875, 0.0115814208984375, -0.0078887939453125, -0.0172576904296875, 0.0267181396484375, 0.0198516845703125, 0.0155792236328125, -0.0660400390625, 0.0126190185546875, 0.0193328857421875, 0.016876220703125, -0.050018310546875, -0.007099151611328125, 0.05279541015625, -0.01285552978515625, -0.0201873779296875, 0.014495849609375, -0.0021839141845703125, -0.048065185546875, 0.002300262451171875, 0.0135650634765625, 0.008026123046875, -0.002490997314453125, -0.0108795166015625, 0.00276947021484375, 0.0274810791015625, 0.002460479736328125, -0.04046630859375, 0.0176849365234375, -0.03167724609375, 0.032806396484375, -0.00911712646484375, -0.004222869873046875, 0.00943756103515625, 0.086669921875, 0.007366180419921875, -0.01496124267578125, -0.0237274169921875, 0.0157318115234375, -0.0207672119140625, 0.02691650390625, 0.00789642333984375, -0.036163330078125, 0.0154571533203125, 0.032379150390625, 0.040863037109375, 0.05755615234375, 0.0438232421875, -0.0071868896484375, 0.002063751220703125, -0.0058746337890625, -0.032257080078125, -0.0638427734375, 0.0265960693359375, -0.078125, -0.044830322265625, -0.004459381103515625, 0.0122222900390625, 0.032012939453125, -0.018035888671875, -0.039337158203125, 0.044281005859375, -0.006885528564453125, -0.02154541015625, -0.0982666015625, 0.0033283233642578125, 0.017059326171875, 0.053497314453125, -0.0302581787109375, 0.006221771240234375, -0.043853759765625, 0.034027099609375, 0.0035076141357421875, -0.0023899078369140625, 0.05767822265625, -0.021697998046875, -0.0316162109375, -0.0267181396484375, -0.024566650390625, -0.009429931640625, -0.0244903564453125, -0.01131439208984375, 0.0287017822265625, 0.004100799560546875, -0.03948974609375, -0.0269317626953125, 0.02191162109375, 0.038177490234375, 0.006305694580078125, -0.039886474609375, -0.0228271484375, -0.0213623046875, 0.0621337890625, -0.0012693405151367188, 0.0203399658203125, -0.01381683349609375, 0.013916015625, -0.037353515625, -0.06341552734375, -0.002849578857421875, 0.01482391357421875, -0.037628173828125, 0.0100860595703125, -0.0017414093017578125, -0.0186309814453125, 0.0030498504638671875, 0.0171051025390625, -0.01035308837890625, 0.0132598876953125, 0.0517578125, -0.0137481689453125, -0.041351318359375, 0.0313720703125, 0.03887939453125, -0.0253753662109375, 0.0085601806640625, -0.0014104843139648438, -0.01788330078125, 0.030303955078125, -0.0149688720703125, -0.0235595703125, -0.004413604736328125, -0.01641845703125, 0.0233612060546875, -0.01261138916015625, 0.05914306640625, -0.031402587890625, -0.01021575927734375, -0.0193634033203125, 0.0190277099609375, -0.002498626708984375, 0.0167999267578125, -0.0145721435546875, 0.07171630859375, 0.0312042236328125, 0.026458740234375, -0.01708984375, 0.01335906982421875, -0.0118408203125, 0.0103607177734375, 0.0303497314453125, -0.00054168701171875, 0.06292724609375, 0.003505706787109375, 0.000370025634765625, -0.0254974365234375, -0.040283203125, -0.0228424072265625, 0.009063720703125, 0.06103515625, -0.037384033203125, 0.031341552734375 ]
9dd78be7275dff328ce0a06d9043691927a6cae0
Wordpress Stackexchange Q: Filter front page posts by category I have three categories (news, pics, vids), but I have all of them showing up on my front page. I would just like the front page to have the news category (and possibly uncategorized category) to show. What is the best way to do this? Plugin? Or a piece of code on the front page? A: Try adding this code to functions.php file: add_action('pre_get_posts', 'ad_filter_categories'); function ad_filter_categories($query) { if ($query->is_main_query() && is_home()) { $query->set('category_name','news, uncategorized'); } } category_name is the slug or the nicename of the category. Add a comma separated list of the categories you wish to include.
Q: Filter front page posts by category I have three categories (news, pics, vids), but I have all of them showing up on my front page. I would just like the front page to have the news category (and possibly uncategorized category) to show. What is the best way to do this? Plugin? Or a piece of code on the front page? A: Try adding this code to functions.php file: add_action('pre_get_posts', 'ad_filter_categories'); function ad_filter_categories($query) { if ($query->is_main_query() && is_home()) { $query->set('category_name','news, uncategorized'); } } category_name is the slug or the nicename of the category. Add a comma separated list of the categories you wish to include.
wordpress
{ "language": "en", "length": 106, "provenance": "stackexchange_00019.jsonl.gz:426154", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73849" }
[ 0.056610107421875, 0.0170440673828125, -0.0106201171875, -0.0458984375, 0.04296875, -0.033172607421875, 0.0450439453125, -0.0232391357421875, -0.029998779296875, -0.0016183853149414062, -0.0176849365234375, 0.01099395751953125, -0.051300048828125, -0.0309295654296875, -0.00205230712890625, -0.0701904296875, 0.02911376953125, -0.00966644287109375, 0.0303955078125, -0.006671905517578125, 0.004917144775390625, 0.006755828857421875, 0.0457763671875, 0.007457733154296875, 0.0048370361328125, -0.0257415771484375, 0.051055908203125, -0.046234130859375, 0.007633209228515625, -0.0264892578125, 0.01107025146484375, 0.00405120849609375, -0.0034809112548828125, -0.0017070770263671875, 0.044189453125, 0.04718017578125, 0.008331298828125, 0.021087646484375, 0.04840087890625, -0.004421234130859375, 0.0290069580078125, -0.0162506103515625, 0.04833984375, 0.05657958984375, 0.034576416015625, -0.055145263671875, 0.06103515625, -0.05816650390625, -0.004619598388671875, -0.027740478515625, 0.0223846435546875, -0.01398468017578125, 0.041534423828125, -0.0517578125, 0.0003559589385986328, 0.0301361083984375, -0.019805908203125, 0.024383544921875, 0.05877685546875, -0.003925323486328125, -0.042816162109375, -0.03961181640625, 0.0201873779296875, -0.0408935546875, -0.005878448486328125, 0.0006108283996582031, 0.03192138671875, 0.006580352783203125, -0.058441162109375, -0.029083251953125, 0.033203125, -0.035186767578125, 0.0255584716796875, -0.0248870849609375, -0.014556884765625, 0.0022563934326171875, 0.00351715087890625, 0.0156707763671875, 0.02496337890625, -0.0440673828125, -0.019012451171875, 0.039581298828125, -0.037322998046875, -0.037506103515625, -0.00797271728515625, -0.033966064453125, -0.01416778564453125, 0.0034503936767578125, -0.0185546875, -0.0247955322265625, 0.0019550323486328125, -0.0167236328125, -0.07275390625, 0.0386962890625, 0.0268707275390625, -0.017822265625, 0.044586181640625, 0.09747314453125, -0.021942138671875, -0.0089874267578125, -0.03680419921875, -0.0254058837890625, -0.02215576171875, -0.042449951171875, 0.033905029296875, 0.04071044921875, -0.0176849365234375, 0.03997802734375, 0.060516357421875, 0.03082275390625, 0.00949859619140625, 0.0269927978515625, -0.00785064697265625, 0.0174102783203125, -0.034271240234375, 0.0015583038330078125, -0.032928466796875, 0.0176849365234375, -0.01352691650390625, 0.0321044921875, 0.01393890380859375, 0.0293426513671875, 0.00829315185546875, -0.044891357421875, 0.0166473388671875, 0.00127410888671875, -0.0216522216796875, -0.033050537109375, 0.03729248046875, 0.0096282958984375, -0.03326416015625, 0.01666259765625, 0.00466156005859375, 0.0063323974609375, -0.0019550323486328125, -0.0164794921875, 0.01800537109375, -0.0095977783203125, 0.0162200927734375, -0.00942230224609375, 0.024871826171875, -0.015960693359375, 0.0168304443359375, 0.014007568359375, 0.044219970703125, 0.0057525634765625, 0.005329132080078125, 0.01094818115234375, 0.020538330078125, 0.0184326171875, 0.006195068359375, -0.03955078125, 0.0400390625, -0.0133209228515625, -0.016571044921875, -0.0083160400390625, 0.0276641845703125, -0.020965576171875, -0.032012939453125, -0.0369873046875, 0.035736083984375, 0.017059326171875, 0.0240631103515625, -0.0249481201171875, -0.0261993408203125, -0.0300140380859375, -0.0655517578125, 0.00853729248046875, 0.00914764404296875, -0.02655029296875, 0.034942626953125, -0.0010986328125, -0.0190582275390625, -0.00371551513671875, -0.002857208251953125, 0.000225067138671875, -0.01186370849609375, 0.01477813720703125, 0.011138916015625, 0.0482177734375, 0.0093536376953125, -0.039459228515625, 0.0236358642578125, 0.0000034570693969726562, -0.0535888671875, 0.021759033203125, 0.024871826171875, 0.062225341796875, -0.00991058349609375, 0.025787353515625, 0.0355224609375, 0.018585205078125, -0.03131103515625, -0.007965087890625, -0.00811767578125, -0.045501708984375, 0.03173828125, -0.01605224609375, 0.018280029296875, 0.02398681640625, 0.043212890625, 0.0303955078125, 0.0269317626953125, -0.01409912109375, 0.0005931854248046875, 0.00643157958984375, 0.002780914306640625, 0.044525146484375, -0.005401611328125, -0.0001493692398071289, 0.0247650146484375, -0.009185791015625, -0.00843048095703125, -0.051300048828125, -0.03265380859375, 0.036407470703125, -0.02264404296875, -0.0181427001953125, -0.0133514404296875, 0.0209197998046875, -0.0233154296875, 0.00457000732421875, -0.03350830078125, -0.005352020263671875, 0.0880126953125, -0.00402069091796875, -0.0282745361328125, -0.04193115234375, 0.01373291015625, 0.017669677734375, -0.121826171875, 0.056915283203125, 0.01093292236328125, 0.038787841796875, -0.006649017333984375, 0.01435089111328125, 0.0262298583984375, -0.01113128662109375, -0.0043792724609375, 0.0195770263671875, 0.0246734619140625, 0.0236053466796875, -0.00901031494140625, 0.006526947021484375, 0.052032470703125, -0.032958984375, 0.0026912689208984375, -0.0013837814331054688, 0.01305389404296875, 0.04327392578125, -0.0079345703125, -0.00618743896484375, 0.020477294921875, -0.04583740234375, 0.0180816650390625, 0.0240020751953125, 0.00408935546875, -0.008758544921875, 0.0048828125, -0.0250244140625, 0.02587890625, 0.0069122314453125, -0.057281494140625, 0.025848388671875, 0.0142364501953125, 0.00896453857421875, -0.009124755859375, -0.00720977783203125, -0.042816162109375, 0.0257110595703125, 0.037200927734375, -0.004100799560546875, -0.004474639892578125, 0.0478515625, 0.0030117034912109375, -0.038909912109375, -0.0237884521484375, 0.0014066696166992188, -0.01226043701171875, 0.0004508495330810547, 0.0141448974609375, 0.0762939453125, 0.03631591796875, -0.0108795166015625, -0.03070068359375, -0.0440673828125, -0.0017557144165039062, -0.0174102783203125, 0.01873779296875, -0.003753662109375, 0.005451202392578125, 0.02740478515625, -0.0160064697265625, 0.056732177734375, -0.0211944580078125, -0.0216827392578125, -0.033355712890625, -0.030670166015625, 0.04833984375, -0.051605224609375, 0.018341064453125, 0.06378173828125, -0.0218658447265625, 0.0169830322265625, 0.00569915771484375, 0.02520751953125, 0.02081298828125, 0.00748443603515625, -0.00939178466796875, -0.011199951171875, -0.0279388427734375, -0.00982666015625, 0.00693511962890625, 0.038726806640625, -0.0171356201171875, -0.0660400390625, 0.00899505615234375, 0.00232696533203125, -0.07916259765625, -0.043548583984375, -0.0176849365234375, -0.03997802734375, 0.043304443359375, 0.01313018798828125, -0.005359649658203125, -0.0472412109375, 0.031524658203125, 0.01253509521484375, 0.055084228515625, -0.0030689239501953125, -0.055389404296875, 0.03131103515625, -0.0606689453125, 0.047943115234375, -0.015899658203125, 0.00939178466796875, 0.00174713134765625, 0.06170654296875, 0.00982666015625, -0.06744384765625, 0.004364013671875, 0.02056884765625, -0.01715087890625, 0.02783203125, 0.06640625, -0.00811767578125, -0.0159149169921875, 0.023406982421875, 0.020599365234375, 0.047454833984375, -0.074951171875, -0.0213775634765625, -0.035308837890625, -0.01611328125, -0.014434814453125, 0.017486572265625, 0.03839111328125, -0.003154754638671875, 0.005886077880859375, -0.037445068359375, 0.002201080322265625, -0.005748748779296875, -0.0189361572265625, -0.028961181640625, 0.0164337158203125, -0.0221710205078125, -0.02923583984375, 0.004779815673828125, -0.0196075439453125, -0.01210784912109375, 0.0019989013671875, -0.041107177734375, 0.0015020370483398438, 0.0006628036499023438, 0.004283905029296875, 0.0105743408203125, -0.04034423828125, -0.05322265625, 0.07586669921875, -0.01282501220703125, 0.00855255126953125, -0.006465911865234375, 0.0274658203125, -0.0025424957275390625, -0.051025390625, 0.049560546875, -0.036895751953125, -0.0276336669921875, -0.0298004150390625, -0.0234222412109375, 0.00640869140625, 0.079345703125, -0.0675048828125, -0.009674072265625, -0.00473785400390625, 0.00640106201171875, -0.01003265380859375, -0.038482666015625, -0.044403076171875, -0.0189208984375, -0.0703125, 0.0019359588623046875, -0.037811279296875, -0.00981903076171875, -0.03369140625, 0.019317626953125, -0.0445556640625, -0.04290771484375, 0.061737060546875, -0.044921875, 0.0010938644409179688, 0.0284881591796875, -0.035797119140625, -0.0013294219970703125, -0.07550048828125, 0.02154541015625, -0.0105133056640625, -0.004482269287109375, 0.0087432861328125, 0.015899658203125, 0.004779815673828125, -0.001483917236328125, -0.00049591064453125, 0.031982421875, 0.01328277587890625, -0.0074310302734375, 0.0228424072265625, -0.00032067298889160156, 0.0273895263671875, -0.006496429443359375, -0.005764007568359375, -0.022369384765625, -0.02227783203125, -0.044342041015625, -0.0195770263671875, 0.009002685546875, -0.03546142578125, 0.0377197265625, -0.031768798828125, 0.007228851318359375, -0.03131103515625, -0.04443359375, -0.005481719970703125, -0.0306549072265625, -0.00434112548828125, -0.00958251953125, -0.018218994140625, -0.007663726806640625, 0.025115966796875, 0.00970458984375, -0.03485107421875, 0.01424407958984375, 0.0743408203125, 0.01812744140625, -0.0121002197265625, -0.05987548828125, -0.0169830322265625, 0.039154052734375, -0.01076507568359375, 0.047515869140625, 0.018768310546875, -0.0292510986328125, 0.08929443359375, -0.00001436471939086914, 0.00421142578125, -0.0282440185546875, 0.06390380859375, -0.01435089111328125, -0.0247344970703125, 0.016082763671875, -0.0255584716796875, 0.03411865234375, 0.004100799560546875, -0.0123748779296875, -0.0017871856689453125, -0.03106689453125, 0.020751953125, 0.017578125, -0.0028591156005859375, -0.0252685546875, 0.034881591796875, -0.01477813720703125, 0.031494140625, 0.08355712890625, 0.055999755859375, -0.01702880859375, 0.0010347366333007812, 0.0166473388671875, 0.01094818115234375, 0.02215576171875, 0.01482391357421875, -0.0245513916015625, 0.05072021484375, -0.020782470703125, -0.011138916015625, 0.0208740234375, -0.00017976760864257812, 0.028533935546875, -0.05645751953125, -0.0276336669921875, -0.052703857421875, -0.021392822265625, -0.01104736328125, 0.0634765625, 0.00469970703125, 0.037750244140625, 0.0281219482421875, -0.0272064208984375, -0.0184478759765625, -0.02447509765625, 0.01007843017578125, -0.052734375, 0.0232391357421875, -0.00031495094299316406, 0.00011944770812988281, 0.017974853515625, 0.035125732421875, -0.039581298828125, 0.04400634765625, -0.00092315673828125, 0.022735595703125, -0.0027294158935546875, 0.014984130859375, 0.01090240478515625, 0.00792694091796875, 0.0034809112548828125, -0.0021915435791015625, 0.01314544677734375, -0.021148681640625, -0.0288848876953125, 0.034820556640625, 0.01476287841796875, -0.038299560546875, -0.00018346309661865234, 0.0214080810546875, 0.026123046875, -0.008514404296875, 0.03173828125, 0.0052642822265625, -0.0129547119140625, -0.031829833984375, -0.036346435546875, 0.020050048828125, 0.002384185791015625, -0.01456451416015625, -0.0218963623046875, -0.0279083251953125, 0.005832672119140625, 0.0198974609375, -0.0043487548828125, 0.00672149658203125, -0.01531982421875, -0.025726318359375, -0.03887939453125, 0.0072174072265625, -0.06536865234375, 0.00408935546875, -0.019744873046875, -0.009735107421875, 0.03179931640625, -0.00850677490234375, 0.0457763671875, -0.0010957717895507812, -0.037841796875, 0.0428466796875, 0.0090789794921875, 0.034332275390625, 0.005123138427734375, -0.0706787109375, -0.0203704833984375, -0.036041259765625, -0.0307769775390625, -0.00970458984375, 0.0173187255859375, -0.058746337890625, -0.006717681884765625, 0.0010805130004882812, 0.02801513671875, -0.01535797119140625, -0.012664794921875, -0.049835205078125, 0.0027141571044921875, 0.037353515625, 0.051605224609375, -0.015838623046875, 0.037811279296875, -0.004673004150390625, 0.037841796875, -0.01343536376953125, -0.02618408203125, -0.041168212890625, 0.00750732421875, -0.038909912109375, -0.0477294921875, 0.0019044876098632812, 0.06842041015625, -0.08148193359375, 0.026611328125, 0.0548095703125, 0.01568603515625, 0.0182037353515625, -0.00859832763671875, -0.00295257568359375, -0.016357421875, -0.0205535888671875, 0.005626678466796875, -0.0258636474609375, 0.0482177734375, 0.0050201416015625, 0.026123046875, -0.0179443359375, -0.006626129150390625, 0.0008177757263183594, -0.00783538818359375, 0.021728515625, -0.0040435791015625, -0.037567138671875, 0.03662109375, 0.056610107421875, 0.02044677734375, 0.03253173828125, 0.0277099609375, 0.01216888427734375, -0.0223388671875, -0.01103973388671875, 0.01666259765625, 0.0252227783203125, 0.05615234375, -0.0021915435791015625, -0.0188140869140625, 0.0246429443359375, -0.035888671875, -0.025787353515625, 0.04217529296875, 0.040985107421875, -0.045440673828125, -0.00391387939453125, 0.0194091796875, -0.020751953125, -0.03125, 0.0115814208984375, -0.00435638427734375, 0.0269622802734375, 0.01126861572265625, -0.02001953125, -0.039764404296875, 0.00670623779296875, 0.00853729248046875, -0.0088653564453125, 0.00827789306640625, 0.0308990478515625, 0.0021839141845703125, -0.053375244140625, -0.04046630859375, 0.01194000244140625, -0.037322998046875, -0.024871826171875, 0.01526641845703125, -0.0196380615234375, -0.0217742919921875, -0.053680419921875, 0.00489044189453125, 0.01329803466796875, 0.01445770263671875, 0.04656982421875, -0.05767822265625, -0.03173828125, 0.0293121337890625, -0.05224609375, 0.06121826171875, -0.0228424072265625, -0.055938720703125, -0.0003886222839355469, -0.0068206787109375, 0.027923583984375, 0.018951416015625, -0.059539794921875, 0.00931549072265625, -0.03167724609375, 0.00008618831634521484, -0.02490234375, -0.10406494140625, 0.0367431640625, -0.0169525146484375, -0.00484466552734375, 0.005184173583984375, 0.03082275390625, 0.004596710205078125, -0.0008673667907714844, -0.00812530517578125, -0.01380157470703125, 0.0292510986328125, -0.0034084320068359375, 0.0206146240234375, 0.007167816162109375, 0.006809234619140625, -0.08349609375, 0.0168304443359375, 0.002773284912109375, 0.057952880859375, 0.007137298583984375, -0.01442718505859375, 0.0008282661437988281, -0.04510498046875, -0.0276641845703125, 0.059722900390625, -0.00681304931640625, 0.0333251953125, -0.037689208984375, -0.01169586181640625, 0.018585205078125, 0.03533935546875, 0.0297393798828125, 0.002033233642578125, -0.0211181640625, 0.00855255126953125, 0.055694580078125, 0.060028076171875, 0.01238250732421875, 0.01136016845703125, -0.0215301513671875, -0.0190277099609375, -0.00061798095703125, 0.0025806427001953125, 0.046539306640625, -0.033599853515625, -0.027099609375, 0.0007562637329101562, 0.00969696044921875, 0.03472900390625, 0.01078033447265625, 0.017303466796875, -0.0306549072265625, 0.0010166168212890625, 0.039947509765625, -0.05279541015625, -0.026824951171875, 0.07305908203125, 0.036163330078125, -0.0654296875, 0.00872802734375, -0.0362548828125, 0.04986572265625, 0.016815185546875, 0.031524658203125, 0.045654296875, 0.020294189453125, 0.05157470703125, -0.005870819091796875, 0.0182342529296875, -0.0108489990234375, -0.0030765533447265625, 0.06744384765625, 0.036407470703125, 0.048004150390625, -0.02264404296875, -0.048187255859375, 0.033935546875, 0.075439453125, -0.0237884521484375, -0.06903076171875, 0.0120849609375, 0.0220794677734375, 0.018768310546875, 0.03814697265625, 0.0092926025390625, 0.021881103515625, 0.08978271484375, -0.07574462890625, 0.016815185546875, 0.03997802734375, 0.032806396484375, -0.0217742919921875, -0.034423828125, -0.0238189697265625, 0.011688232421875, -0.07318115234375, 0.03765869140625, 0.004344940185546875, 0.07965087890625, 0.034912109375, 0.0301361083984375, -0.0211334228515625, -0.034332275390625, 0.007801055908203125, 0.00960540771484375, -0.0011491775512695312, -0.0008368492126464844, -0.0167236328125, -0.037322998046875, -0.003772735595703125, 0.0185546875, 0.0012502670288085938, -0.0007052421569824219, 0.03460693359375, 0.03387451171875, -0.0241241455078125, -0.02276611328125, 0.0155029296875, -0.011566162109375, -0.025421142578125, -0.029754638671875, 0.01522064208984375, 0.0222015380859375, 0.0167694091796875, 0.0027027130126953125, 0.034393310546875, 0.0247344970703125, 0.0189208984375, -0.03143310546875, 0.018035888671875, -0.060333251953125, 0.0299072265625, -0.004268646240234375, 0.077880859375, 0.034759521484375, -0.1395263671875, -0.008697509765625, -0.048126220703125, -0.08038330078125, 0.059661865234375, 0.05328369140625, -0.04364013671875, -0.007686614990234375, 0.01690673828125, -0.04034423828125, -0.0008764266967773438, 0.023590087890625, 0.0229339599609375, 0.00450897216796875, -0.0110626220703125, 0.00289154052734375, -0.002628326416015625, 0.01427459716796875, 0.01280975341796875, 0.01187896728515625, 0.038330078125, 0.07049560546875, -0.00385284423828125, 0.0132904052734375, -0.005863189697265625, 0.00891876220703125, -0.0247039794921875, -0.0258636474609375, 0.02001953125, 0.007717132568359375, 0.01287841796875, -0.0087890625, 0.01099395751953125, -0.0157928466796875, 0.0625, -0.08197021484375, -0.006023406982421875, -0.0158843994140625, 0.01203155517578125, -0.07012939453125, 0.059844970703125, -0.00580596923828125, 0.0032196044921875, -0.031951904296875, -0.030975341796875, 0.051177978515625, 0.04620361328125, -0.0017175674438476562, -0.0020294189453125, 0.00882720947265625, -0.01214599609375, 0.00267791748046875, 0.0189208984375, 0.001964569091796875, 0.032135009765625, -0.03326416015625, -0.00994110107421875, 0.03997802734375, 0.0013799667358398438, 0.0211181640625, 0.019012451171875, 0.025970458984375, 0.0246429443359375, 0.018280029296875, -0.021026611328125, 0.00267791748046875, 0.03326416015625, -0.0121917724609375, 0.017059326171875, -0.0002053976058959961, -0.01372528076171875, -0.012451171875, 0.0077362060546875, -0.02978515625, -0.034881591796875, -0.0262908935546875, -0.0033817291259765625, -0.03265380859375, -0.0806884765625, -0.059967041015625, 0.01503753662109375, 0.023681640625, -0.0243072509765625, -0.0245513916015625, 0.02618408203125, -0.0406494140625, 0.055816650390625, -0.0330810546875, 0.00682830810546875, -0.0190277099609375, -0.002223968505859375, -0.01531982421875, 0.01861572265625, -0.0341796875, -0.001590728759765625, -0.003509521484375, 0.005970001220703125, 0.02362060546875, -0.019775390625, 0.015869140625, 0.01544952392578125, 0.0288238525390625, 0.0665283203125, 0.00760650634765625, -0.00963592529296875, -0.00577545166015625, 0.0234222412109375, -0.04241943359375, 0.0004730224609375, 0.03912353515625, -0.01178741455078125, -0.03826904296875, -0.005550384521484375, -0.01509857177734375, -0.0036754608154296875, -0.0270843505859375, -0.0236358642578125, 0.08251953125, -0.014068603515625, -0.0186614990234375, -0.0156707763671875, 0.017242431640625, -0.0019817352294921875, -0.00511932373046875, 0.005878448486328125, -0.030609130859375, -0.0284576416015625, -0.009490966796875, 0.01367950439453125, 0.04290771484375, 0.02197265625, -0.0159149169921875, -0.0121307373046875, 0.0008325576782226562, 0.0022640228271484375, 0.0203704833984375, 0.009307861328125, 0.00371551513671875, 0.016845703125, 0.035125732421875, -0.042022705078125, -0.0034618377685546875, -0.00926971435546875, -0.0197296142578125, 0.0278167724609375, -0.0298919677734375, -0.0765380859375, -0.0584716796875, 0.03314208984375, 0.0277862548828125, 0.0123291015625, 0.0184173583984375, -0.0293426513671875, -0.0273895263671875, -0.0151519775390625, 0.01245880126953125, 0.0005125999450683594, -0.0187835693359375, 0.0237579345703125, 0.0020465850830078125, -0.011566162109375, -0.017059326171875, -0.01111602783203125, -0.01617431640625, -0.00807952880859375, 0.0167236328125, 0.00652313232421875, 0.01580810546875, 0.04473876953125, -0.01611328125, -0.0272674560546875, -0.055389404296875, -0.0038433074951171875, -0.0179901123046875, -0.055908203125, -0.0284576416015625, -0.01316070556640625, 0.0017690658569335938, -0.0073089599609375, -0.0180816650390625, 0.0232086181640625, 0.024566650390625, 0.03790283203125, 0.01036834716796875, 0.01161956787109375, 0.018646240234375, -0.0023345947265625, 0.0202484130859375, -0.0229034423828125, 0.04241943359375, -0.002918243408203125, 0.0269317626953125, -0.0019063949584960938, -0.0232086181640625, 0.0028324127197265625, 0.029693603515625, -0.003917694091796875, -0.020416259765625, 0.035369873046875, -0.056549072265625, 0.00911712646484375, -0.00856781005859375, -0.0217437744140625, 0.006763458251953125, -0.004642486572265625, -0.045867919921875, -0.03271484375, 0.005764007568359375 ]
1ae7f5ce827c5ff840a4969edbf0f1650fd4b110
Wordpress Stackexchange Q: queries inside of a class I'm building a plugin and I'm quite new to wordpress I have a class what has couple of methods what should execute database queries. The class look as it follows class MyClass{ private $wpdb; function __construct(){ global $wpdb; } function query(){ $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->wp_competitors ( id, field_key, field_value ) VALUES ( %d, %s, %s )",1, $field_key, $field_value) ); } } I would like to be able to use inside of my class wordpress native database class, how to do this? A: class MyClass{ function __construct(){ global $wpdb; $this->db = $wpdb; } function query(){ return $this->db->query( $this->db->prepare("INSERT INTO {$this->db->wp_competitors} (id, ield_key, field_value) VALUES ( %d, %s, %s )", 1, $field_key, $field_value) ); } }
Q: queries inside of a class I'm building a plugin and I'm quite new to wordpress I have a class what has couple of methods what should execute database queries. The class look as it follows class MyClass{ private $wpdb; function __construct(){ global $wpdb; } function query(){ $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->wp_competitors ( id, field_key, field_value ) VALUES ( %d, %s, %s )",1, $field_key, $field_value) ); } } I would like to be able to use inside of my class wordpress native database class, how to do this? A: class MyClass{ function __construct(){ global $wpdb; $this->db = $wpdb; } function query(){ return $this->db->query( $this->db->prepare("INSERT INTO {$this->db->wp_competitors} (id, ield_key, field_value) VALUES ( %d, %s, %s )", 1, $field_key, $field_value) ); } } A: A disadvantage of using a custom $db property in your class is that you won't be able to use it in static methods, if you ever were to create some. Two alternative approaches: class MyClass { public function query1() { global $wpdb; $wpdb->query('SQL'); } public function query2() { $GLOBALS['wpdb']->query('SQL'); } }
wordpress
{ "language": "en", "length": 172, "provenance": "stackexchange_00019.jsonl.gz:426160", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73868" }
[ 0.06512451171875, -0.00942230224609375, 0.01113128662109375, -0.025665283203125, 0.0200958251953125, -0.036285400390625, 0.07330322265625, -0.0011005401611328125, 0.0117034912109375, 0.0145416259765625, -0.0853271484375, 0.01537322998046875, -0.0328369140625, 0.0141448974609375, -0.01763916015625, -0.0537109375, 0.0296783447265625, -0.01457977294921875, 0.01885986328125, 0.003963470458984375, -0.005908966064453125, 0.0198974609375, 0.016815185546875, 0.002838134765625, 0.005031585693359375, -0.0245513916015625, 0.085693359375, 0.018585205078125, 0.0173797607421875, 0.0025463104248046875, 0.025115966796875, -0.03436279296875, 0.0234832763671875, -0.0018148422241210938, 0.003612518310546875, 0.041412353515625, 0.01491546630859375, -0.0127410888671875, 0.0286865234375, 0.0234527587890625, 0.04156494140625, 0.0038013458251953125, -0.052581787109375, 0.0220794677734375, -0.036346435546875, -0.07574462890625, 0.06036376953125, -0.016357421875, -0.004547119140625, 0.005123138427734375, 0.00725555419921875, 0.01119232177734375, 0.01654052734375, -0.00970458984375, -0.008209228515625, 0.01261138916015625, -0.03082275390625, -0.02264404296875, 0.0240936279296875, 0.05352783203125, 0.0114593505859375, -0.014434814453125, 0.005435943603515625, -0.0254974365234375, -0.0279693603515625, 0.0086517333984375, 0.051727294921875, 0.004093170166015625, 0.01445770263671875, -0.033416748046875, -0.00504302978515625, 0.0218963623046875, -0.0290679931640625, -0.0016279220581054688, -0.0251922607421875, -0.0022296905517578125, 0.04864501953125, -0.010894775390625, -0.024322509765625, 0.03936767578125, 0.01239013671875, -0.002910614013671875, -0.03240966796875, 0.0106964111328125, -0.018280029296875, 0.0002837181091308594, -0.007663726806640625, -0.0096282958984375, -0.006618499755859375, -0.0119781494140625, -0.0178680419921875, -0.010284423828125, 0.016937255859375, -0.010162353515625, -0.0293731689453125, -0.04864501953125, -0.0006456375122070312, 0.0302581787109375, 0.002086639404296875, 0.061004638671875, -0.020843505859375, -0.033477783203125, 0.03057861328125, -0.06292724609375, 0.0005173683166503906, 0.033416748046875, -0.0299530029296875, -0.0266876220703125, 0.020904541015625, 0.044464111328125, 0.0216827392578125, -0.0550537109375, -0.0271148681640625, -0.04901123046875, -0.0242767333984375, 0.0341796875, -0.0241241455078125, -0.043670654296875, 0.0279083251953125, -0.07562255859375, 0.0198974609375, 0.0270538330078125, -0.031097412109375, -0.00585174560546875, -0.01284027099609375, -0.02490234375, -0.016082763671875, 0.00939178466796875, -0.041595458984375, -0.0003948211669921875, -0.02386474609375, 0.032012939453125, 0.0662841796875, 0.024932861328125, -0.021636962890625, 0.006107330322265625, 0.044158935546875, 0.0015888214111328125, 0.005176544189453125, -0.007389068603515625, 0.04571533203125, -0.0298309326171875, -0.046417236328125, 0.022369384765625, 0.006145477294921875, 0.005252838134765625, 0.023223876953125, 0.01105499267578125, -0.0196533203125, -0.00786590576171875, -0.020721435546875, 0.0347900390625, 0.01268768310546875, 0.00931549072265625, 0.0040435791015625, 0.003131866455078125, -0.02349853515625, 0.0097808837890625, -0.00856781005859375, 0.03564453125, -0.004398345947265625, -0.0046234130859375, 0.034423828125, -0.02337646484375, -0.0138092041015625, -0.0167999267578125, -0.05340576171875, 0.0086669921875, 0.033355712890625, -0.01520538330078125, -0.005504608154296875, -0.01093292236328125, 0.080810546875, 0.0257110595703125, 0.004734039306640625, 0.021881103515625, 0.0004661083221435547, -0.0272674560546875, 0.034942626953125, 0.005580902099609375, -0.025909423828125, -0.017669677734375, 0.049530029296875, -0.038238525390625, -0.0008306503295898438, 0.016357421875, 0.018310546875, 0.01308441162109375, -0.017425537109375, 0.0283050537109375, -0.01044464111328125, 0.055023193359375, -0.028411865234375, 0.066162109375, -0.01458740234375, -0.03448486328125, 0.005100250244140625, 0.02789306640625, -0.021575927734375, -0.044586181640625, -0.01239776611328125, 0.049713134765625, -0.0305938720703125, 0.0228729248046875, -0.044403076171875, 0.03448486328125, -0.01763916015625, 0.03350830078125, 0.005901336669921875, 0.0175018310546875, 0.0199432373046875, 0.0222320556640625, -0.0135345458984375, -0.058197021484375, -0.0469970703125, 0.0031299591064453125, -0.00820159912109375, 0.0231475830078125, -0.0151214599609375, 0.01605224609375, -0.0313720703125, -0.0249786376953125, -0.04425048828125, -0.00444793701171875, 0.0257568359375, -0.0233001708984375, -0.00449371337890625, -0.01433563232421875, 0.035858154296875, 0.01141357421875, 0.005184173583984375, -0.0217742919921875, 0.0302581787109375, 0.0714111328125, -0.0050048828125, -0.0153045654296875, -0.00965118408203125, -0.04229736328125, 0.0126800537109375, 0.017974853515625, 0.0306549072265625, 0.0185394287109375, -0.017333984375, -0.007411956787109375, 0.0236053466796875, -0.034820556640625, 0.00859832763671875, -0.021026611328125, 0.01308441162109375, 0.04254150390625, -0.01873779296875, -0.00937652587890625, 0.03924560546875, 0.0606689453125, -0.0288238525390625, 0.044342041015625, 0.0015344619750976562, 0.0033054351806640625, 0.01328277587890625, 0.0027751922607421875, -0.0169525146484375, -0.0131683349609375, -0.0028057098388671875, -0.00860595703125, 0.03424072265625, -0.02716064453125, 0.056884765625, 0.030181884765625, 0.005931854248046875, -0.0200042724609375, -0.00011533498764038086, -0.009674072265625, 0.0003838539123535156, 0.00034356117248535156, -0.09619140625, 0.0140228271484375, -0.056121826171875, 0.0372314453125, -0.0022182464599609375, -0.00502777099609375, 0.01538848876953125, 0.08197021484375, -0.007526397705078125, -0.020782470703125, -0.03973388671875, 0.01116180419921875, -0.0009822845458984375, 0.0228424072265625, -0.0010251998901367188, -0.027069091796875, 0.01097869873046875, 0.05126953125, -0.037017822265625, 0.072265625, -0.00986480712890625, -0.0195770263671875, 0.0296173095703125, 0.009613037109375, 0.011383056640625, 0.01064300537109375, 0.03961181640625, 0.05841064453125, -0.014984130859375, 0.0302581787109375, -0.01012420654296875, -0.037139892578125, 0.01004791259765625, -0.004940032958984375, -0.0242767333984375, 0.0088043212890625, -0.0712890625, 0.02215576171875, 0.04107666015625, 0.045684814453125, 0.0186767578125, -0.0258026123046875, 0.0110321044921875, 0.04736328125, -0.038238525390625, -0.08154296875, -0.052764892578125, 0.003826141357421875, -0.0012197494506835938, -0.019317626953125, 0.01189422607421875, 0.01387786865234375, -0.039459228515625, 0.021392822265625, 0.005176544189453125, -0.020721435546875, -0.04522705078125, -0.0574951171875, -0.048675537109375, 0.01337432861328125, 0.00965118408203125, -0.00873565673828125, -0.0017185211181640625, 0.038482666015625, 0.0018606185913085938, -0.032257080078125, -0.0024890899658203125, 0.005126953125, -0.0150299072265625, -0.00439453125, 0.0182342529296875, -0.02801513671875, -0.016876220703125, -0.01267242431640625, 0.040496826171875, 0.040283203125, -0.0307159423828125, 0.0192108154296875, 0.058837890625, 0.027587890625, 0.062347412109375, 0.0211639404296875, -0.07476806640625, 0.04962158203125, 0.031890869140625, -0.0205078125, -0.0071563720703125, 0.0012922286987304688, -0.0247344970703125, -0.0322265625, -0.0249786376953125, 0.004093170166015625, 0.0186309814453125, -0.00876617431640625, 0.0135498046875, 0.00623321533203125, -0.0186614990234375, -0.024749755859375, 0.0714111328125, 0.01203155517578125, 0.03173828125, -0.004024505615234375, 0.02227783203125, -0.019989013671875, 0.0279693603515625, 0.004787445068359375, -0.0019855499267578125, -0.004489898681640625, 0.0092620849609375, -0.041473388671875, -0.0155181884765625, 0.031585693359375, 0.01007080078125, 0.0180206298828125, 0.001529693603515625, -0.0269012451171875, 0.01910400390625, 0.06793212890625, -0.0181427001953125, -0.00766754150390625, 0.0241241455078125, 0.01541900634765625, -0.08123779296875, -0.03814697265625, -0.079833984375, 0.004535675048828125, 0.0285491943359375, -0.034393310546875, -0.0288543701171875, -0.016357421875, -0.0308074951171875, -0.00603485107421875, -0.037445068359375, -0.003631591796875, 0.01312255859375, -0.01043701171875, 0.0028228759765625, -0.014495849609375, -0.021148681640625, -0.01282501220703125, 0.0117950439453125, -0.0389404296875, -0.097412109375, -0.01428985595703125, -0.045318603515625, 0.09515380859375, 0.03509521484375, -0.0192108154296875, 0.0012083053588867188, 0.06500244140625, -0.01155853271484375, 0.0138092041015625, 0.00222015380859375, 0.0374755859375, -0.01418304443359375, -0.0195770263671875, 0.0019025802612304688, -0.04180908203125, 0.003223419189453125, -0.00531005859375, 0.020477294921875, 0.0009126663208007812, -0.060546875, -0.023529052734375, -0.0433349609375, -0.0251312255859375, 0.02056884765625, -0.025482177734375, -0.01245880126953125, 0.027374267578125, -0.038604736328125, 0.019866943359375, -0.01226043701171875, 0.0066986083984375, 0.02899169921875, -0.0172271728515625, 0.0081024169921875, 0.00986480712890625, 0.096923828125, 0.01090240478515625, -0.01363372802734375, -0.037200927734375, -0.01551055908203125, 0.01194000244140625, 0.0012569427490234375, 0.059234619140625, 0.0152587890625, -0.0160980224609375, 0.049591064453125, 0.0025177001953125, -0.00865936279296875, -0.00823974609375, 0.10009765625, 0.01082611083984375, -0.00995635986328125, 0.01467132568359375, -0.01511383056640625, -0.0467529296875, 0.0188751220703125, 0.00334930419921875, -0.04583740234375, 0.0455322265625, 0.04425048828125, -0.034881591796875, 0.03997802734375, -0.012969970703125, -0.0455322265625, 0.018218994140625, -0.05267333984375, 0.01338958740234375, 0.00007677078247070312, 0.01096343994140625, -0.007480621337890625, -0.025177001953125, 0.004894256591796875, 0.06561279296875, 0.0292816162109375, -0.005413055419921875, 0.035888671875, 0.038726806640625, -0.02545166015625, 0.019287109375, 0.0025959014892578125, 0.048675537109375, 0.0001684427261352539, -0.01480865478515625, -0.0033893585205078125, -0.01290130615234375, -0.03814697265625, 0.0181427001953125, -0.0235595703125, 0.0049285888671875, 0.01837158203125, -0.0251007080078125, -0.003337860107421875, -0.01476287841796875, 0.0159454345703125, -0.0288238525390625, 0.007007598876953125, 0.01763916015625, -0.0244598388671875, 0.0084686279296875, 0.0255889892578125, -0.0254364013671875, 0.00762176513671875, 0.0013399124145507812, 0.06072998046875, 0.0012340545654296875, 0.0294036865234375, 0.01861572265625, -0.025848388671875, 0.035491943359375, -0.037261962890625, -0.031005859375, -0.003627777099609375, 0.01523590087890625, -0.0149688720703125, -0.01398468017578125, 0.00958251953125, 0.00437164306640625, 0.039031982421875, 0.0213470458984375, -0.0182037353515625, 0.00493621826171875, 0.06781005859375, 0.0408935546875, -0.01513671875, -0.039398193359375, -0.0073699951171875, 0.061248779296875, -0.005176544189453125, 0.004894256591796875, -0.0205230712890625, 0.039794921875, -0.034698486328125, 0.0160369873046875, -0.0214385986328125, -0.0287017822265625, -0.0230865478515625, -0.0196380615234375, -0.0278472900390625, 0.0096893310546875, -0.0015249252319335938, -0.0218353271484375, -0.038116455078125, 0.016571044921875, -0.03167724609375, -0.006229400634765625, -0.045684814453125, 0.039581298828125, -0.0411376953125, -0.00695037841796875, 0.05926513671875, 0.01995849609375, 0.0249786376953125, -0.029296875, -0.03485107421875, -0.0219573974609375, 0.0194091796875, -0.028411865234375, 0.00476837158203125, -0.017974853515625, -0.0159912109375, 0.00196075439453125, -0.0262603759765625, -0.04534912109375, 0.00640106201171875, -0.004909515380859375, -0.00045299530029296875, -0.0567626953125, -0.0207977294921875, 0.08740234375, -0.0186767578125, 0.056976318359375, 0.00734710693359375, 0.045562744140625, -0.007373809814453125, -0.006275177001953125, 0.01259613037109375, -0.035888671875, -0.0165863037109375, -0.0273895263671875, -0.0175628662109375, 0.006626129150390625, 0.03533935546875, 0.0017004013061523438, 0.025970458984375, 0.00823974609375, 0.01505279541015625, -0.0179901123046875, -0.01232147216796875, -0.0247039794921875, 0.020416259765625, 0.02508544921875, -0.019287109375, -0.01093292236328125, -0.035552978515625, -0.005786895751953125, 0.0177764892578125, -0.013458251953125, -0.01302337646484375, 0.0257720947265625, -0.006076812744140625, 0.0151824951171875, 0.05902099609375, -0.01346588134765625, 0.040771484375, 0.01247406005859375, 0.006275177001953125, 0.0006036758422851562, -0.007415771484375, -0.044525146484375, 0.01470947265625, 0.047576904296875, 0.0033626556396484375, -0.035186767578125, 0.020477294921875, -0.0247955322265625, 0.034698486328125, 0.02288818359375, 0.07489013671875, -0.034576416015625, 0.0271148681640625, 0.015777587890625, -0.05047607421875, 0.0270538330078125, 0.0282135009765625, 0.0105743408203125, 0.0020771026611328125, -0.0302734375, 0.02545166015625, -0.00908660888671875, 0.0024356842041015625, 0.028656005859375, -0.022491455078125, 0.0093231201171875, 0.0172882080078125, 0.0202484130859375, -0.0297088623046875, 0.030670166015625, 0.017791748046875, 0.0163421630859375, 0.0171966552734375, 0.0335693359375, -0.00144195556640625, 0.01021575927734375, -0.0157012939453125, 0.014862060546875, -0.042755126953125, -0.0305633544921875, -0.012786865234375, 0.026153564453125, 0.034942626953125, 0.0452880859375, -0.006511688232421875, 0.00920867919921875, 0.022918701171875, 0.02093505859375, -0.03277587890625, -0.01019287109375, 0.0208587646484375, 0.049774169921875, -0.08612060546875, 0.032928466796875, -0.061248779296875, 0.027984619140625, 0.0243682861328125, -0.0299224853515625, 0.0035648345947265625, -0.03411865234375, 0.003173828125, 0.01129913330078125, -0.0222930908203125, 0.0312347412109375, -0.019775390625, -0.009246826171875, -0.019256591796875, 0.0269775390625, -0.01395416259765625, 0.006481170654296875, -0.00612640380859375, -0.036865234375, -0.05438232421875, 0.06585693359375, -0.0038051605224609375, 0.01476287841796875, 0.0266876220703125, 0.0174407958984375, -0.024810791015625, -0.01274871826171875, -0.0232696533203125, 0.035308837890625, -0.00021660327911376953, 0.031463623046875, -0.0582275390625, -0.0268402099609375, -0.0016651153564453125, 0.054901123046875, 0.024627685546875, 0.0008211135864257812, -0.0081939697265625, -0.0025386810302734375, 0.0018491744995117188, 0.024017333984375, -0.01200103759765625, 0.010772705078125, 0.0195159912109375, 0.0211944580078125, 0.0806884765625, -0.0004544258117675781, 0.0472412109375, -0.00882720947265625, 0.01922607421875, 0.0277557373046875, -0.0101776123046875, 0.000576019287109375, 0.0028247833251953125, 0.037750244140625, 0.03399658203125, -0.01497650146484375, -0.02264404296875, -0.0311279296875, 0.036956787109375, 0.031463623046875, 0.043609619140625, -0.040618896484375, -0.026824951171875, -0.031280517578125, 0.0408935546875, -0.01534271240234375, 0.0019321441650390625, 0.035888671875, 0.007259368896484375, 0.06884765625, -0.0027179718017578125, -0.006038665771484375, 0.01219940185546875, 0.021392822265625, 0.10687255859375, 0.057281494140625, 0.03936767578125, -0.0123291015625, 0.01136016845703125, 0.02642822265625, 0.12005615234375, -0.06634521484375, -0.004425048828125, 0.00833892822265625, 0.01473236083984375, -0.0123748779296875, -0.0202178955078125, -0.010955810546875, 0.052490234375, 0.07293701171875, 0.0389404296875, -0.0291290283203125, -0.0179595947265625, -0.042938232421875, 0.00037097930908203125, 0.0177459716796875, 0.07177734375, 0.00847625732421875, 0.00820159912109375, -0.0224456787109375, -0.0053253173828125, -0.003528594970703125, -0.002773284912109375, 0.0174407958984375, 0.00891876220703125, 0.0204315185546875, -0.0261993408203125, 0.040283203125, -0.00832366943359375, 0.046875, -0.05218505859375, -0.03314208984375, 0.016143798828125, 0.048919677734375, 0.02099609375, 0.039459228515625, 0.0123291015625, 0.00769805908203125, 0.044403076171875, 0.01837158203125, 0.01076507568359375, -0.0186309814453125, -0.0435791015625, -0.03375244140625, -0.0174102783203125, -0.00970458984375, -0.005756378173828125, 0.01340484619140625, 0.0731201171875, -0.04876708984375, 0.005523681640625, 0.015838623046875, 0.0022182464599609375, -0.014556884765625, 0.0242767333984375, -0.01174163818359375, 0.05096435546875, 0.0161895751953125, -0.0504150390625, -0.0228424072265625, 0.0015401840209960938, -0.0775146484375, 0.05682373046875, 0.07061767578125, -0.0057830810546875, -0.0253143310546875, 0.0533447265625, 0.0288848876953125, -0.031890869140625, -0.01180267333984375, 0.01374053955078125, -0.0472412109375, 0.018402099609375, 0.01319122314453125, -0.0246429443359375, -0.0233306884765625, 0.009185791015625, 0.01331329345703125, 0.003925323486328125, 0.043304443359375, -0.0022220611572265625, 0.018951416015625, -0.02020263671875, -0.03350830078125, -0.00878143310546875, -0.036651611328125, -0.0058441162109375, -0.031982421875, -0.00872802734375, 0.0255584716796875, 0.0051422119140625, 0.004932403564453125, 0.05572509765625, -0.029541015625, 0.001789093017578125, 0.00044155120849609375, 0.028045654296875, -0.019256591796875, 0.029937744140625, -0.0035381317138671875, 0.04998779296875, 0.0418701171875, -0.0267791748046875, 0.0538330078125, 0.020050048828125, 0.002719879150390625, 0.033111572265625, 0.0198516845703125, -0.03375244140625, 0.03485107421875, -0.05181884765625, 0.0528564453125, 0.036224365234375, -0.010955810546875, -0.0271453857421875, -0.0211944580078125, -0.0210723876953125, -0.039581298828125, 0.007610321044921875, -0.00754547119140625, 0.005458831787109375, -0.051177978515625, -0.003093719482421875, 0.046600341796875, 0.056671142578125, 0.0040435791015625, 0.04058837890625, 0.0291900634765625, -0.024383544921875, 0.0103302001953125, -0.0218658447265625, -0.028228759765625, -0.010498046875, -0.0232086181640625, 0.0014476776123046875, -0.0256805419921875, -0.06396484375, -0.06671142578125, 0.02056884765625, 0.041900634765625, 0.0087432861328125, -0.060516357421875, 0.007045745849609375, -0.0257110595703125, 0.0711669921875, -0.01076507568359375, -0.0204010009765625, 0.0240478515625, 0.047515869140625, -0.007007598876953125, -0.01293182373046875, -0.00785064697265625, -0.006999969482421875, -0.003932952880859375, 0.049285888671875, 0.06378173828125, -0.040008544921875, -0.0168914794921875, 0.031280517578125, 0.0269622802734375, 0.08111572265625, -0.025177001953125, -0.01360321044921875, 0.038330078125, -0.01168060302734375, -0.02777099609375, -0.058258056640625, 0.008575439453125, -0.06256103515625, 0.0240020751953125, 0.032379150390625, 0.01180267333984375, 0.036590576171875, -0.021087646484375, -0.0765380859375, 0.09710693359375, -0.01983642578125, -0.034271240234375, -0.040679931640625, 0.0280609130859375, -0.0002084970474243164, 0.01056671142578125, -0.014862060546875, -0.012969970703125, -0.02166748046875, 0.0034027099609375, 0.0238494873046875, -0.024017333984375, 0.0443115234375, -0.0165557861328125, -0.0963134765625, 0.0012674331665039062, -0.0031528472900390625, 0.03759765625, -0.0008902549743652344, 0.00992584228515625, 0.011383056640625, 0.044525146484375, -0.0165252685546875, -0.00849151611328125, 0.0022487640380859375, -0.01517486572265625, -0.0046234130859375, 0.00913238525390625, -0.01174163818359375, -0.007434844970703125, 0.0284271240234375, 0.0277099609375, 0.00534820556640625, -0.037261962890625, -0.0155487060546875, 0.017578125, 0.01727294921875, -0.00902557373046875, -0.004428863525390625, -0.053680419921875, -0.0234375, -0.007015228271484375, 0.01390838623046875, -0.007518768310546875, 0.009674072265625, 0.00868988037109375, -0.0295257568359375, 0.0220489501953125, -0.008941650390625, -0.004253387451171875, -0.006816864013671875, 0.04376220703125, -0.035186767578125, -0.0189361572265625, 0.033416748046875, -0.01016998291015625, -0.00577545166015625, 0.05413818359375, 0.006679534912109375, 0.0019702911376953125, -0.0126190185546875, 0.0345458984375, 0.0031070709228515625, -0.004852294921875, -0.0310821533203125, -0.006328582763671875, -0.00284576416015625, 0.052978515625, 0.005828857421875, 0.061431884765625, -0.026092529296875, 0.0838623046875, 0.0235137939453125, 0.0389404296875, -0.0186614990234375, -0.0012874603271484375, -0.0355224609375, 0.051055908203125, 0.0119171142578125, -0.01557159423828125, 0.04412841796875, -0.016448974609375, -0.004314422607421875, 0.0293121337890625, 0.00777435302734375, -0.06195068359375, 0.0284423828125, 0.07965087890625, 0.032501220703125, 0.0186004638671875 ]
4c3b4ec668171fec222a87300ed311840523902c
Wordpress Stackexchange Q: Do WordPress Core Filenames Work as Hooks? This is in reference to another answer here on wordpress.stackexchange. The answerer used the filename as the hook to enqueue scripts and styles to certain pages. add_action( 'admin_print_scripts-post-new.php', 'portfolio_admin_script', 11 ); add_action( 'admin_print_scripts-post.php', 'portfolio_admin_script', 11 ); A: The short answer is 'yes'. Taken from this article the suffix of those 'screen specific hooks' is given by: * *For custom admin pages added via add_menu_page() - including settings pages - (and related functions) it is the screen ID (the value returned by add_menu_page()) *For the admin page listing posts of any post type, it is edit.php *On the ‘add new’ page of any post type, it is post-new.php *On the edit page of any post type, it is post.php *For taxonomy pages it is edit-tags.php You may find this plug-in useful, developed by @Kaiser, based on the article linked to above.
Q: Do WordPress Core Filenames Work as Hooks? This is in reference to another answer here on wordpress.stackexchange. The answerer used the filename as the hook to enqueue scripts and styles to certain pages. add_action( 'admin_print_scripts-post-new.php', 'portfolio_admin_script', 11 ); add_action( 'admin_print_scripts-post.php', 'portfolio_admin_script', 11 ); A: The short answer is 'yes'. Taken from this article the suffix of those 'screen specific hooks' is given by: * *For custom admin pages added via add_menu_page() - including settings pages - (and related functions) it is the screen ID (the value returned by add_menu_page()) *For the admin page listing posts of any post type, it is edit.php *On the ‘add new’ page of any post type, it is post-new.php *On the edit page of any post type, it is post.php *For taxonomy pages it is edit-tags.php You may find this plug-in useful, developed by @Kaiser, based on the article linked to above.
wordpress
{ "language": "en", "length": 148, "provenance": "stackexchange_00019.jsonl.gz:426173", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73913" }
[ 0.004741668701171875, -0.0128936767578125, 0.00185394287109375, 0.00620269775390625, -0.01751708984375, -0.0231475830078125, 0.044769287109375, -0.0124969482421875, -0.049102783203125, 0.0271453857421875, -0.0035400390625, 0.020477294921875, 0.0080108642578125, -0.032470703125, 0.02923583984375, -0.029388427734375, 0.0245208740234375, -0.0311737060546875, -0.0010595321655273438, -0.007549285888671875, 0.023162841796875, 0.0207672119140625, 0.00598907470703125, 0.0129547119140625, -0.01465606689453125, -0.02166748046875, 0.04400634765625, 0.0010290145874023438, -0.003246307373046875, -0.00843048095703125, 0.0027217864990234375, -0.004970550537109375, 0.0189361572265625, 0.046356201171875, -0.037994384765625, 0.03594970703125, 0.04388427734375, 0.0006341934204101562, 0.0024662017822265625, 0.03326416015625, 0.01024627685546875, 0.0028667449951171875, 0.025909423828125, 0.01515960693359375, -0.0101470947265625, -0.024749755859375, 0.002475738525390625, -0.015869140625, 0.038604736328125, -0.0126800537109375, -0.0164947509765625, 0.00547027587890625, -0.0025463104248046875, 0.0142822265625, -0.018585205078125, -0.0040283203125, -0.03741455078125, 0.0231781005859375, 0.031524658203125, 0.04248046875, -0.0106201171875, -0.01030731201171875, -0.003963470458984375, -0.0709228515625, 0.005771636962890625, -0.01342010498046875, -0.01093292236328125, 0.0050811767578125, -0.00783538818359375, 0.01605224609375, 0.01453399658203125, -0.0185089111328125, 0.000885009765625, -0.040771484375, 0.016571044921875, -0.0099029541015625, 0.002635955810546875, -0.038787841796875, -0.0046844482421875, 0.01186370849609375, 0.006473541259765625, -0.022247314453125, 0.007640838623046875, 0.0021953582763671875, -0.010528564453125, 0.023468017578125, -0.00600433349609375, -0.0067138671875, -0.00508880615234375, 0.0052337646484375, -0.0184478759765625, -0.00850677490234375, 0.01425933837890625, 0.0027370452880859375, -0.01097869873046875, -0.01454925537109375, 0.006137847900390625, 0.03692626953125, 0.0175018310546875, 0.040771484375, -0.008697509765625, -0.041595458984375, 0.058929443359375, -0.037353515625, 0.0003337860107421875, 0.1058349609375, 0.052215576171875, 0.0016803741455078125, -0.01294708251953125, -0.03839111328125, 0.01312255859375, 0.00218963623046875, -0.0064697265625, -0.007038116455078125, 0.01000213623046875, -0.01064300537109375, -0.059173583984375, 0.040924072265625, -0.027130126953125, 0.012603759765625, -0.0006399154663085938, 0.0206451416015625, 0.0152435302734375, -0.0169677734375, 0.00995635986328125, 0.000194549560546875, -0.0225372314453125, -0.0285797119140625, 0.0135498046875, 0.0222320556640625, -0.006557464599609375, 0.0186767578125, 0.031951904296875, -0.010467529296875, -0.0249786376953125, -0.008392333984375, -0.0032672882080078125, -0.041229248046875, -0.0338134765625, -0.004253387451171875, 0.005138397216796875, -0.04095458984375, -0.0081634521484375, -0.03314208984375, 0.002666473388671875, -0.0217742919921875, -0.0042572021484375, 0.06475830078125, 0.0469970703125, -0.00531005859375, 0.03216552734375, -0.02716064453125, 0.022979736328125, -0.01849365234375, 0.00533294677734375, -0.03509521484375, 0.03643798828125, -0.0208282470703125, -0.0013980865478515625, -0.01506805419921875, -0.00804901123046875, -0.007354736328125, 0.00681304931640625, -0.04266357421875, -0.047393798828125, 0.004947662353515625, -0.02642822265625, -0.00522613525390625, 0.0169525146484375, -0.002498626708984375, 0.025360107421875, -0.010986328125, -0.0174407958984375, 0.01012420654296875, 0.005336761474609375, 0.0121612548828125, -0.009124755859375, 0.03375244140625, 0.036956787109375, 0.006610870361328125, -0.0175323486328125, -0.032989501953125, 0.0780029296875, -0.038543701171875, -0.08197021484375, 0.007442474365234375, 0.024505615234375, 0.06976318359375, 0.015960693359375, 0.005657196044921875, 0.11785888671875, -0.0201873779296875, -0.02642822265625, 0.0062713623046875, -0.015716552734375, 0.019256591796875, -0.01035308837890625, 0.0384521484375, -0.01849365234375, -0.0173797607421875, 0.0211639404296875, 0.0033931732177734375, 0.0157623291015625, -0.01959228515625, -0.055694580078125, 0.0114593505859375, -0.045501708984375, 0.0582275390625, 0.0175323486328125, -0.0194854736328125, 0.00174713134765625, 0.0118408203125, -0.0033321380615234375, -0.058197021484375, -0.061065673828125, 0.040252685546875, -0.01422882080078125, 0.01055908203125, 0.0173187255859375, 0.0276031494140625, 0.016143798828125, -0.0035610198974609375, 0.0103912353515625, -0.0269012451171875, 0.02008056640625, -0.0082855224609375, -0.00574493408203125, -0.01168060302734375, -0.0093841552734375, 0.01415252685546875, -0.0318603515625, 0.0258636474609375, 0.01509857177734375, 0.049163818359375, -0.0308074951171875, -0.0276031494140625, -0.0433349609375, -0.04071044921875, 0.0238494873046875, 0.03570556640625, 0.0253753662109375, 0.0511474609375, 0.0013418197631835938, -0.00994110107421875, 0.05120849609375, -0.003925323486328125, 0.034912109375, -0.0303802490234375, 0.00391387939453125, 0.057861328125, -0.03436279296875, 0.0141143798828125, 0.0095672607421875, -0.034149169921875, -0.02166748046875, 0.040069580078125, -0.032867431640625, -0.0267791748046875, -0.0184478759765625, -0.01393890380859375, 0.0374755859375, -0.027252197265625, -0.0250701904296875, -0.004344940185546875, 0.0149688720703125, 0.0196380615234375, 0.0284881591796875, 0.03460693359375, -0.0097198486328125, -0.016876220703125, 0.00807952880859375, 0.0129547119140625, -0.0182342529296875, 0.03387451171875, 0.0171051025390625, -0.05938720703125, -0.023162841796875, 0.0135955810546875, -0.0308074951171875, -0.0164794921875, -0.027099609375, 0.005321502685546875, -0.0301361083984375, -0.013671875, 0.00931549072265625, -0.047576904296875, -0.01073455810546875, -0.0177459716796875, 0.0227813720703125, -0.01300811767578125, 0.0023651123046875, 0.040374755859375, -0.011871337890625, 0.058837890625, 0.0216064453125, -0.0208740234375, 0.046356201171875, 0.00635528564453125, 0.0255126953125, -0.01105499267578125, 0.030914306640625, 0.050262451171875, -0.00528717041015625, 0.00965118408203125, 0.00377655029296875, -0.0037517547607421875, -0.00838470458984375, -0.0048675537109375, 0.009979248046875, -0.0009183883666992188, -0.01320648193359375, 0.050384521484375, 0.0223236083984375, 0.11907958984375, -0.041961669921875, -0.07708740234375, -0.0119476318359375, 0.0244293212890625, -0.07440185546875, -0.078369140625, -0.026885986328125, -0.048614501953125, 0.03802490234375, -0.00843048095703125, -0.01702880859375, -0.024139404296875, 0.0269622802734375, 0.0181732177734375, 0.0013895034790039062, -0.020477294921875, -0.00269317626953125, -0.007110595703125, -0.03350830078125, -0.01027679443359375, 0.01070404052734375, -0.0082244873046875, 0.017486572265625, 0.041961669921875, 0.0252227783203125, -0.03338623046875, 0.0482177734375, -0.0242767333984375, -0.0252838134765625, 0.0102996826171875, 0.0302581787109375, -0.051177978515625, -0.01024627685546875, 0.0030918121337890625, -0.006458282470703125, -0.00785064697265625, 0.017547607421875, -0.0149993896484375, -0.0231475830078125, -0.00502777099609375, -0.00968170166015625, 0.0374755859375, 0.038726806640625, -0.0087127685546875, 0.0144500732421875, -0.045379638671875, -0.01317596435546875, -0.0014362335205078125, -0.0157623291015625, 0.048675537109375, -0.01346588134765625, -0.0107879638671875, 0.0345458984375, 0.015838623046875, -0.0007138252258300781, -0.005451202392578125, 0.00485992431640625, -0.032257080078125, 0.0117645263671875, -0.004512786865234375, -0.0018291473388671875, -0.016815185546875, 0.024444580078125, 0.0029773712158203125, 0.0168914794921875, 0.004657745361328125, 0.02777099609375, -0.001659393310546875, 0.0212554931640625, -0.0201416015625, -0.0252532958984375, 0.026611328125, -0.045135498046875, 0.006397247314453125, -0.0254669189453125, -0.0004265308380126953, -0.003238677978515625, 0.07061767578125, -0.08209228515625, -0.008148193359375, 0.01471710205078125, 0.04046630859375, -0.06365966796875, -0.04071044921875, -0.045654296875, 0.00006961822509765625, -0.111572265625, -0.004425048828125, 0.0188140869140625, -0.053955078125, -0.00005131959915161133, 0.015411376953125, -0.0709228515625, -0.041778564453125, 0.039337158203125, -0.0170135498046875, 0.042236328125, 0.021942138671875, 0.047149658203125, -0.0092926025390625, -0.0217742919921875, -0.0168609619140625, -0.10369873046875, -0.019195556640625, -0.0390625, 0.0789794921875, 0.039886474609375, -0.074951171875, -0.007450103759765625, 0.032440185546875, 0.003753662109375, 0.020294189453125, 0.013214111328125, 0.013336181640625, -0.00527191162109375, -0.00841522216796875, 0.01132965087890625, -0.0268402099609375, -0.0020008087158203125, 0.021453857421875, -0.040557861328125, 0.0282745361328125, -0.01192474365234375, -0.018951416015625, 0.05145263671875, -0.041351318359375, -0.046112060546875, -0.0089111328125, 0.01079559326171875, -0.0121002197265625, 0.01218414306640625, -0.01885986328125, -0.0187835693359375, -0.023529052734375, 0.0185394287109375, -0.03033447265625, -0.0206756591796875, 0.008331298828125, 0.07537841796875, 0.023162841796875, 0.008270263671875, -0.0577392578125, 0.01399993896484375, 0.0228424072265625, 0.0120391845703125, 0.07720947265625, 0.0181884765625, -0.00778961181640625, 0.0552978515625, 0.0111541748046875, -0.020050048828125, -0.031097412109375, 0.07550048828125, 0.007038116455078125, 0.0010919570922851562, -0.014556884765625, -0.036529541015625, 0.029388427734375, 0.0069580078125, -0.023284912109375, -0.0213470458984375, -0.0199127197265625, 0.0574951171875, -0.01378631591796875, 0.04595947265625, -0.0540771484375, -0.007709503173828125, -0.01548004150390625, 0.04779052734375, 0.0491943359375, 0.026611328125, 0.0004897117614746094, -0.0001672506332397461, 0.03460693359375, 0.0044097900390625, 0.0133514404296875, -0.0031337738037109375, -0.00388336181640625, 0.041595458984375, 0.0132598876953125, 0.00669097900390625, -0.0017299652099609375, -0.00627899169921875, 0.00858306884765625, -0.0271453857421875, -0.048126220703125, -0.033966064453125, -0.0005769729614257812, 0.063232421875, 0.043212890625, -0.007049560546875, -0.01177978515625, 0.019989013671875, -0.02203369140625, -0.0151824951171875, 0.0193634033203125, -0.00344085693359375, -0.017120361328125, 0.0161285400390625, 0.038909912109375, -0.031524658203125, 0.00783538818359375, 0.0208587646484375, 0.0670166015625, -0.0203094482421875, -0.03955078125, 0.041168212890625, 0.032440185546875, 0.0013580322265625, 0.003925323486328125, 0.0172576904296875, -0.0010967254638671875, -0.021148681640625, -0.00635528564453125, -0.039398193359375, 0.0418701171875, 0.01314544677734375, 0.02880859375, 0.0022220611572265625, -0.048126220703125, 0.024017333984375, -0.0251312255859375, -0.00325775146484375, 0.02447509765625, -0.0199737548828125, -0.04144287109375, -0.0217742919921875, 0.0223236083984375, 0.03192138671875, -0.0179290771484375, -0.0096282958984375, 0.0277557373046875, 0.00841522216796875, 0.03515625, -0.0031375885009765625, -0.0230560302734375, 0.0204010009765625, 0.022369384765625, -0.038787841796875, 0.0205841064453125, 0.01367950439453125, -0.0419921875, -0.064697265625, 0.0010519027709960938, -0.0016222000122070312, 0.050262451171875, -0.01116180419921875, 0.041839599609375, -0.0343017578125, -0.00646209716796875, 0.01052093505859375, 0.0007271766662597656, 0.06854248046875, 0.03033447265625, -0.0183563232421875, -0.0159912109375, -0.026641845703125, -0.028839111328125, 0.0013055801391601562, -0.021697998046875, -0.021881103515625, -0.0202178955078125, 0.01087188720703125, 0.01287078857421875, -0.00677490234375, -0.0225067138671875, 0.0019779205322265625, 0.02447509765625, 0.01337432861328125, 0.06182861328125, -0.0423583984375, 0.0587158203125, -0.006229400634765625, 0.0268402099609375, -0.0234375, 0.002025604248046875, -0.0110015869140625, 0.0009760856628417969, -0.0106201171875, -0.0589599609375, -0.0023136138916015625, -0.0103912353515625, 0.007801055908203125, 0.040496826171875, 0.025848388671875, 0.00713348388671875, 0.01079559326171875, 0.0183868408203125, 0.0133056640625, -0.012908935546875, -0.03594970703125, 0.0171356201171875, -0.0177764892578125, 0.046783447265625, -0.030364990234375, -0.0011472702026367188, -0.0096588134765625, -0.03240966796875, 0.051605224609375, -0.0142364501953125, 0.010711669921875, 0.0426025390625, -0.036865234375, 0.051605224609375, 0.020843505859375, -0.015625, 0.01800537109375, -0.0084686279296875, -0.0005002021789550781, 0.019134521484375, 0.00684356689453125, -0.0127410888671875, -0.0267333984375, 0.038299560546875, -0.0170135498046875, 0.005359649658203125, 0.0290069580078125, -0.0135650634765625, 0.0077972412109375, 0.049957275390625, 0.0199737548828125, -0.0980224609375, 0.014739990234375, -0.0272674560546875, 0.006221771240234375, 0.04339599609375, -0.01219940185546875, 0.00864410400390625, 0.0221099853515625, 0.05621337890625, -0.00048613548278808594, -0.009307861328125, 0.048370361328125, 0.00458526611328125, 0.016326904296875, -0.034942626953125, 0.0340576171875, -0.007396697998046875, -0.017059326171875, -0.032379150390625, 0.0008168220520019531, -0.0215911865234375, -0.0240020751953125, -0.027496337890625, -0.00959014892578125, -0.03790283203125, -0.0379638671875, -0.00592803955078125, -0.037261962890625, 0.0301666259765625, 0.0190887451171875, 0.0050048828125, 0.0193939208984375, 0.0190887451171875, 0.0002484321594238281, -0.00444793701171875, -0.0087127685546875, 0.0201873779296875, -0.05377197265625, -0.040740966796875, -0.0186309814453125, 0.010894775390625, -0.007312774658203125, 0.02227783203125, -0.0140380859375, -0.031982421875, -0.008453369140625, -0.0435791015625, 0.04364013671875, -0.0207061767578125, -0.028167724609375, 0.005649566650390625, -0.043853759765625, 0.0086822509765625, 0.035858154296875, 0.00677490234375, -0.048828125, -0.048614501953125, 0.03485107421875, -0.0675048828125, -0.01030731201171875, 0.034912109375, -0.04931640625, 0.11376953125, -0.007415771484375, 0.00823974609375, 0.0211181640625, 0.054718017578125, -0.01971435546875, 0.020477294921875, -0.035064697265625, 0.055450439453125, 0.0214385986328125, 0.029937744140625, -0.00295257568359375, 0.0123748779296875, 0.0254058837890625, -0.0013074874877929688, 0.006534576416015625, 0.0004093647003173828, -0.05804443359375, -0.005641937255859375, 0.06573486328125, 0.04644775390625, 0.052947998046875, 0.038848876953125, 0.0079193115234375, -0.0182647705078125, -0.01161956787109375, 0.0377197265625, 0.049102783203125, -0.05023193359375, -0.043670654296875, 0.01346588134765625, -0.0033855438232421875, -0.00836181640625, -0.01261138916015625, -0.0291595458984375, -0.045257568359375, 0.002353668212890625, 0.0242919921875, 0.0134124755859375, -0.0304718017578125, 0.00885009765625, 0.01177215576171875, -0.039306640625, -0.036651611328125, -0.0190277099609375, 0.0281524658203125, 0.031829833984375, 0.0182647705078125, 0.008331298828125, 0.0244293212890625, 0.0039043426513671875, -0.015960693359375, 0.015869140625, 0.036895751953125, -0.0338134765625, 0.04052734375, 0.019012451171875, 0.03265380859375, 0.003101348876953125, 0.031829833984375, 0.013885498046875, 0.046539306640625, -0.04095458984375, 0.01058197021484375, 0.0013751983642578125, 0.0072479248046875, -0.008575439453125, 0.006877899169921875, 0.025665283203125, 0.03289794921875, 0.01467132568359375, -0.04510498046875, -0.01279449462890625, 0.0445556640625, 0.0311431884765625, 0.0028076171875, 0.00543975830078125, -0.042388916015625, -0.005741119384765625, -0.05267333984375, 0.038360595703125, 0.0211029052734375, 0.0452880859375, -0.00685882568359375, 0.059600830078125, 0.001369476318359375, -0.0193634033203125, -0.0445556640625, 0.022430419921875, -0.0028095245361328125, 0.0499267578125, -0.08697509765625, -0.03875732421875, 0.02838134765625, 0.06622314453125, 0.020904541015625, 0.0460205078125, 0.024749755859375, 0.02239990234375, -0.0007810592651367188, 0.00916290283203125, 0.024444580078125, -0.0300445556640625, 0.007411956787109375, -0.0172119140625, 0.00807952880859375, -0.0026073455810546875, -0.00505828857421875, -0.01171112060546875, 0.0362548828125, 0.007221221923828125, -0.05126953125, 0.0059661865234375, -0.00766754150390625, -0.051025390625, 0.041778564453125, -0.01322174072265625, 0.09930419921875, -0.01180267333984375, -0.07489013671875, 0.0032024383544921875, -0.034912109375, -0.08251953125, 0.043853759765625, 0.050933837890625, -0.043914794921875, 0.0175933837890625, 0.01446533203125, -0.029266357421875, -0.0109710693359375, 0.046722412109375, 0.004238128662109375, 0.00713348388671875, 0.01922607421875, 0.01226806640625, 0.03240966796875, 0.025970458984375, 0.00998687744140625, 0.039581298828125, 0.003208160400390625, 0.06494140625, -0.050628662109375, 0.0111846923828125, 0.0034008026123046875, 0.0258026123046875, -0.050628662109375, -0.0145721435546875, 0.0350341796875, -0.03216552734375, -0.005916595458984375, -0.00452423095703125, -0.047882080078125, -0.00925445556640625, 0.01108551025390625, -0.032196044921875, -0.0015125274658203125, -0.0149078369140625, 0.0090789794921875, 0.0089569091796875, 0.03955078125, -0.005340576171875, -0.026092529296875, 0.019378662109375, 0.0155181884765625, 0.0057220458984375, 0.0210418701171875, 0.01068878173828125, 0.01543426513671875, -0.001415252685546875, -0.031585693359375, 0.004932403564453125, -0.006465911865234375, 0.0175018310546875, 0.0279541015625, -0.00965118408203125, -0.0169525146484375, 0.0134735107421875, -0.0014009475708007812, -0.0219879150390625, 0.0271759033203125, 0.0240020751953125, -0.00738525390625, 0.01215362548828125, 0.0377197265625, 0.04052734375, 0.062103271484375, 0.0023212432861328125, 0.03985595703125, 0.00959014892578125, -0.0052337646484375, 0.028564453125, -0.050506591796875, -0.02850341796875, -0.048065185546875, -0.00681304931640625, 0.018096923828125, -0.0194091796875, -0.0689697265625, -0.0523681640625, -0.01580810546875, 0.033172607421875, 0.0066986083984375, -0.050262451171875, 0.0201416015625, -0.028106689453125, 0.011322021484375, 0.0018558502197265625, 0.030364990234375, -0.0200347900390625, 0.01448822021484375, -0.066162109375, -0.0219573974609375, -0.0401611328125, 0.0238037109375, -0.0391845703125, 0.049102783203125, 0.03680419921875, -0.044708251953125, 0.0042724609375, 0.06378173828125, 0.04296875, 0.1114501953125, -0.01111602783203125, -0.0219268798828125, -0.00823974609375, 0.004955291748046875, 0.012176513671875, -0.0186920166015625, -0.016265869140625, -0.0136871337890625, -0.017578125, -0.00643157958984375, 0.0169219970703125, 0.0156707763671875, -0.0357666015625, -0.08270263671875, 0.0017137527465820312, -0.007144927978515625, -0.046173095703125, -0.040374755859375, 0.0128631591796875, 0.001827239990234375, 0.014312744140625, -0.0225677490234375, -0.0229034423828125, -0.0260009765625, 0.0209808349609375, 0.0262908935546875, -0.0094146728515625, 0.049591064453125, -0.0198516845703125, -0.0006184577941894531, 0.0298614501953125, 0.0285186767578125, -0.00846099853515625, 0.039398193359375, -0.0166778564453125, 0.049652099609375, 0.042633056640625, -0.054962158203125, 0.0364990234375, -0.0207672119140625, 0.029296875, -0.00969696044921875, -0.0350341796875, -0.056793212890625, -0.00992584228515625, 0.07183837890625, 0.060302734375, 0.0202789306640625, -0.04107666015625, -0.02642822265625, -0.06781005859375, -0.03741455078125, -0.029449462890625, 0.019439697265625, -0.06683349609375, 0.01268768310546875, 0.02294921875, -0.006824493408203125, -0.009490966796875, 0.009552001953125, -0.0216522216796875, -0.01303863525390625, 0.037811279296875, -0.0095367431640625, 0.0216217041015625, -0.07269287109375, 0.09820556640625, -0.042816162109375, 0.0295562744140625, 0.0037689208984375, 0.047271728515625, 0.0654296875, 0.042724609375, -0.01378631591796875, 0.0218048095703125, -0.00197601318359375, 0.01531219482421875, 0.006534576416015625, 0.0082855224609375, -0.0150909423828125, 0.011444091796875, 0.0182037353515625, 0.03741455078125, -0.0157470703125, 0.045135498046875, 0.0019378662109375, 0.0634765625, -0.028350830078125, 0.11138916015625, -0.01934814453125, -0.002201080322265625, -0.0011796951293945312, 0.0133056640625, 0.012481689453125, -0.01557159423828125, 0.0667724609375, -0.069091796875, -0.00287628173828125, 0.035980224609375, -0.0265655517578125, -0.05511474609375, 0.01280975341796875, -0.00830078125, 0.0214385986328125, 0.0188446044921875 ]
0146bf4a2e1552fe9d98ac2eb240a9dd52220fc4
Wordpress Stackexchange Q: How to automatically generate a unique random slug I have tried to create a function that generates a random slug when a post is created. I am a bit worried that the function generates non unique strings as slugs. How can I solve this? The function looks like: add_filter('name_save_pre','unique_slug', 0); function random_string() { $length = 6; $characters = "0123456789abcdefghijklmnopqrstuvwxyz"; $string = ''; for ($p = 0; $p < $length; $p++) { $string .= $characters[mt_rand(0, strlen($characters))]; } return $string; } function unique_id($slug) { global $wpdb; return $wpdb -> get_row("SELECT ID FROM wp_post WHERE post_name = '" . $slug . "' && post_status = 'publish' && post_type = 'post'"); } function unique_slug($slug) { if($slug) return $slug; $random_slug = random_string(); if(!unique_id($random_slug)){ //what to do here? } else { return $random_slug; } } A: Use the function wp_unique_post_slug(). Do not reinvent the wheel, this one is quite tricky. Usage: $unique_slug = wp_unique_post_slug( $slug, $post_ID, $post_status, $post_type, $post_parent ); Then you can test if $slug === $unique_slug and generate a new one if the test fails. You can find the function in wp-includes/post.php. It ends with a filter 'wp_unique_post_slug', so you can still adjust the return value if you don’t like it.
Q: How to automatically generate a unique random slug I have tried to create a function that generates a random slug when a post is created. I am a bit worried that the function generates non unique strings as slugs. How can I solve this? The function looks like: add_filter('name_save_pre','unique_slug', 0); function random_string() { $length = 6; $characters = "0123456789abcdefghijklmnopqrstuvwxyz"; $string = ''; for ($p = 0; $p < $length; $p++) { $string .= $characters[mt_rand(0, strlen($characters))]; } return $string; } function unique_id($slug) { global $wpdb; return $wpdb -> get_row("SELECT ID FROM wp_post WHERE post_name = '" . $slug . "' && post_status = 'publish' && post_type = 'post'"); } function unique_slug($slug) { if($slug) return $slug; $random_slug = random_string(); if(!unique_id($random_slug)){ //what to do here? } else { return $random_slug; } } A: Use the function wp_unique_post_slug(). Do not reinvent the wheel, this one is quite tricky. Usage: $unique_slug = wp_unique_post_slug( $slug, $post_ID, $post_status, $post_type, $post_parent ); Then you can test if $slug === $unique_slug and generate a new one if the test fails. You can find the function in wp-includes/post.php. It ends with a filter 'wp_unique_post_slug', so you can still adjust the return value if you don’t like it. A: I've found this plugin that should do the trick: http://wordpress.org/extend/plugins/wp-hashed-ids/ A: This is how a unique random slug can be generated. function randomSlug() { $length = 5; $chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; $slug = ''; for ($i = 0; $i < $length; $i++) { $string .= substr( $chars, wp_rand( 0, strlen($chars) - 1 ), 1 ); } return $slug; } function slugExists($slug) { global $wpdb; if($wpdb->get_var("SELECT post_name FROM $wpdb->posts WHERE post_name = '$slug'")) { return true; } else { return false; } } function uniqueRandomSlug() { do { $randomSlug = randomSlug(); $slugExists = slugExists($randomSlug); } while ( $slugExists ); return $randomSlug; }
wordpress
{ "language": "en", "length": 299, "provenance": "stackexchange_00019.jsonl.gz:426187", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/73983" }
[ 0.0528564453125, 0.0160675048828125, -0.01328277587890625, -0.03436279296875, 0.031646728515625, -0.027496337890625, 0.040130615234375, -0.01505279541015625, -0.058807373046875, 0.02215576171875, 0.01210784912109375, 0.02813720703125, -0.024749755859375, -0.0303497314453125, 0.023681640625, -0.02215576171875, 0.0245361328125, 0.01337432861328125, 0.0190887451171875, -0.01476287841796875, 0.0093994140625, 0.009002685546875, -0.024200439453125, 0.1014404296875, 0.0447998046875, -0.044769287109375, 0.05731201171875, -0.0302581787109375, 0.03515625, -0.0192413330078125, 0.0217132568359375, -0.004489898681640625, 0.005279541015625, -0.01922607421875, 0.03631591796875, 0.01959228515625, 0.03131103515625, -0.004734039306640625, 0.024261474609375, 0.01300048828125, 0.017547607421875, 0.00287628173828125, -0.00945281982421875, 0.018646240234375, -0.0203399658203125, -0.0306243896484375, -0.01337432861328125, -0.039581298828125, 0.0286712646484375, 0.041290283203125, 0.01146697998046875, 0.0126190185546875, 0.00266265869140625, 0.031890869140625, -0.0015897750854492188, 0.006290435791015625, -0.00624847412109375, 0.033660888671875, 0.033599853515625, -0.0076904296875, -0.041168212890625, 0.005695343017578125, 0.019134521484375, -0.0288543701171875, -0.0097503662109375, -0.0205078125, -0.027740478515625, 0.01432037353515625, -0.0301971435546875, 0.00493621826171875, 0.051971435546875, -0.0242462158203125, -0.01123046875, -0.006923675537109375, -0.0034332275390625, -0.0084991455078125, -0.01361083984375, -0.0234375, 0.00891876220703125, 0.029266357421875, 0.008819580078125, -0.002277374267578125, -0.01311492919921875, -0.0107421875, -0.0009984970092773438, 0.0033550262451171875, -0.0178680419921875, -0.016448974609375, -0.0271453857421875, -0.02081298828125, -0.0273590087890625, -0.0265655517578125, -0.0135345458984375, 0.0169677734375, -0.01004791259765625, -0.0234527587890625, 0.0297698974609375, 0.0210723876953125, -0.0057525634765625, 0.0009737014770507812, 0.04046630859375, -0.0609130859375, 0.050323486328125, -0.02862548828125, 0.00033092498779296875, 0.07000732421875, 0.010498046875, -0.039337158203125, -0.01230621337890625, 0.0028285980224609375, 0.01358795166015625, -0.029083251953125, 0.01081085205078125, -0.0237579345703125, -0.039886474609375, 0.0221405029296875, -0.01004791259765625, -0.01477813720703125, 0.00788116455078125, -0.01218414306640625, -0.00499725341796875, -0.00609588623046875, 0.0657958984375, -0.0130157470703125, 0.0266876220703125, 0.030029296875, -0.04150390625, -0.054443359375, 0.0290985107421875, 0.0140228271484375, -0.0467529296875, -0.0009031295776367188, 0.09466552734375, 0.03369140625, 0.035552978515625, -0.0178680419921875, -0.032196044921875, -0.0277099609375, 0.0009350776672363281, 0.0015707015991210938, -0.01390838623046875, -0.033203125, 0.0134124755859375, -0.005214691162109375, 0.036865234375, 0.007415771484375, 0.0027599334716796875, -0.004070281982421875, 0.049072265625, 0.039642333984375, -0.05999755859375, -0.0074005126953125, 0.0176849365234375, 0.008056640625, 0.01000213623046875, -0.0102691650390625, -0.0391845703125, 0.00632476806640625, 0.004367828369140625, 0.00778961181640625, 0.03704833984375, -0.0178070068359375, -0.00910186767578125, -0.00888824462890625, -0.05841064453125, 0.036041259765625, -0.034271240234375, -0.0137176513671875, 0.0163116455078125, 0.0184326171875, -0.0097503662109375, 0.004573822021484375, -0.00411224365234375, -0.0089874267578125, -0.012359619140625, 0.0114593505859375, 0.0045166015625, 0.018890380859375, 0.0177764892578125, 0.043548583984375, 0.018280029296875, -0.033203125, 0.040771484375, -0.0007228851318359375, -0.059051513671875, 0.056976318359375, -0.006866455078125, 0.074462890625, 0.04168701171875, 0.00724029541015625, 0.0020751953125, -0.0063629150390625, -0.04620361328125, 0.0269317626953125, -0.0162811279296875, -0.00586700439453125, -0.0258636474609375, 0.0013599395751953125, -0.025848388671875, -0.0034942626953125, -0.0027008056640625, -0.0194244384765625, 0.01384735107421875, 0.0129547119140625, -0.041412353515625, -0.00018966197967529297, -0.029388427734375, 0.0211944580078125, 0.001495361328125, 0.039398193359375, 0.00917816162109375, -0.01953125, -0.017425537109375, 0.025421142578125, -0.0022792816162109375, -0.0259552001953125, 0.0030384063720703125, -0.022918701171875, -0.0308074951171875, 0.002048492431640625, -0.055145263671875, 0.00748443603515625, -0.07415771484375, 0.002834320068359375, 0.07806396484375, -0.01155853271484375, -0.0208740234375, -0.04266357421875, 0.0242462158203125, -0.004886627197265625, -0.054473876953125, 0.0709228515625, 0.0467529296875, 0.035491943359375, -0.033111572265625, 0.002315521240234375, -0.007038116455078125, -0.02008056640625, -0.013946533203125, 0.044036865234375, 0.032012939453125, 0.0072784423828125, -0.022613525390625, -0.035186767578125, 0.057281494140625, -0.011383056640625, 0.0207672119140625, -0.02191162109375, 0.0231475830078125, 0.049652099609375, -0.00853729248046875, 0.022552490234375, 0.02362060546875, -0.0158538818359375, -0.0011730194091796875, 0.05438232421875, -0.049285888671875, 0.0084075927734375, 0.00428009033203125, -0.00270843505859375, -0.01520538330078125, -0.007030487060546875, 0.06292724609375, -0.034027099609375, -0.069091796875, -0.0018072128295898438, -0.032440185546875, -0.025390625, -0.01500701904296875, 0.0031681060791015625, 0.032257080078125, -0.032989501953125, -0.01434326171875, 0.0218963623046875, 0.05462646484375, -0.007843017578125, -0.041412353515625, 0.0016803741455078125, -0.0012540817260742188, 0.0166473388671875, -0.02142333984375, 0.086181640625, 0.039306640625, -0.0255584716796875, -0.048370361328125, -0.06634521484375, -0.008941650390625, -0.050048828125, 0.00481414794921875, 0.01009368896484375, 0.01163482666015625, 0.06268310546875, -0.0212554931640625, 0.07763671875, -0.0169525146484375, 0.01207733154296875, 0.00826263427734375, -0.0296630859375, 0.02166748046875, -0.03082275390625, 0.0119476318359375, 0.0517578125, -0.0130157470703125, 0.0131988525390625, -0.0028553009033203125, 0.0214080810546875, -0.01311492919921875, -0.01203155517578125, -0.03973388671875, -0.034515380859375, -0.027008056640625, 0.0067901611328125, 0.019927978515625, -0.01131439208984375, 0.019683837890625, -0.020904541015625, 0.0006046295166015625, -0.005672454833984375, -0.07867431640625, -0.08355712890625, 0.01393890380859375, 0.005466461181640625, -0.005634307861328125, -0.0037326812744140625, -0.0011796951293945312, -0.0206451416015625, -0.00699615478515625, -0.00872039794921875, -0.026336669921875, -0.01016998291015625, -0.0677490234375, -0.050140380859375, -0.0406494140625, 0.0229644775390625, -0.0174102783203125, -0.0015344619750976562, 0.01641845703125, 0.00652313232421875, 0.0064239501953125, -0.03521728515625, 0.0196990966796875, 0.05548095703125, -0.03057861328125, -0.01358795166015625, -0.032012939453125, 0.00949859619140625, 0.0005297660827636719, -0.006992340087890625, 0.0423583984375, 0.01485443115234375, 0.00159454345703125, -0.0066070556640625, -0.022857666015625, 0.0413818359375, 0.0209197998046875, 0.026458740234375, 0.01251983642578125, 0.01605224609375, 0.0253448486328125, -0.01149749755859375, 0.017730712890625, -0.037445068359375, -0.017486572265625, 0.052490234375, -0.01617431640625, 0.0025482177734375, 0.0022869110107421875, 0.03033447265625, -0.0230560302734375, -0.015960693359375, 0.0034236907958984375, -0.016265869140625, 0.0266571044921875, -0.01477813720703125, -0.0276641845703125, 0.0023021697998046875, 0.020904541015625, 0.0039825439453125, 0.006259918212890625, 0.00954437255859375, 0.0237274169921875, 0.007465362548828125, -0.00714111328125, -0.047332763671875, -0.039520263671875, 0.027435302734375, -0.0225372314453125, 0.01412200927734375, -0.014678955078125, -0.01468658447265625, 0.004222869873046875, 0.06451416015625, -0.0049285888671875, -0.0201568603515625, -0.0426025390625, -0.01282501220703125, 0.002185821533203125, -0.041259765625, -0.00431060791015625, 0.00641632080078125, -0.028472900390625, 0.020721435546875, 0.007686614990234375, -0.01390838623046875, -0.02880859375, 0.02313232421875, -0.02972412109375, -0.00399017333984375, 0.019439697265625, -0.024810791015625, 0.017822265625, 0.02008056640625, 0.0119476318359375, -0.00022971630096435547, -0.00923919677734375, -0.041595458984375, -0.0400390625, -0.009765625, 0.0012187957763671875, 0.01953125, 0.033782958984375, -0.042449951171875, 0.01470184326171875, 0.042510986328125, 0.0113372802734375, 0.0004067420959472656, 0.009613037109375, 0.0005908012390136719, 0.0168914794921875, 0.01306915283203125, 0.0076904296875, -0.007659912109375, -0.0183258056640625, -0.0279388427734375, -0.037445068359375, 0.008087158203125, -0.021240234375, 0.02813720703125, 0.0132598876953125, -0.01421356201171875, -0.04083251953125, -0.0357666015625, 0.00396728515625, 0.0193328857421875, -0.0010690689086914062, -0.00036835670471191406, -0.052825927734375, -0.03900146484375, 0.04168701171875, 0.046142578125, -0.02471923828125, -0.0145263671875, 0.06475830078125, 0.0200347900390625, -0.03839111328125, -0.01224517822265625, -0.005496978759765625, 0.0032501220703125, 0.01412200927734375, 0.03448486328125, 0.00025010108947753906, 0.0020809173583984375, -0.00376129150390625, -0.0054931640625, -0.045196533203125, -0.0208892822265625, 0.08526611328125, -0.025238037109375, -0.017425537109375, 0.007534027099609375, -0.07550048828125, 0.06842041015625, 0.02679443359375, -0.0203857421875, -0.0013055801391601562, -0.042205810546875, 0.05517578125, 0.035400390625, -0.0255889892578125, -0.0848388671875, -0.0965576171875, 0.040679931640625, -0.031585693359375, 0.00664520263671875, 0.01055908203125, -0.004352569580078125, 0.05059814453125, -0.0093841552734375, -0.0016870498657226562, -0.004756927490234375, 0.01012420654296875, 0.0096893310546875, 0.0303192138671875, 0.00453948974609375, 0.0023097991943359375, -0.02947998046875, -0.01165771484375, 0.043426513671875, 0.0287017822265625, -0.0138397216796875, -0.0194854736328125, -0.0006089210510253906, 0.00955963134765625, -0.029327392578125, 0.01105499267578125, 0.014923095703125, 0.026214599609375, -0.0367431640625, 0.00827789306640625, -0.00970458984375, 0.01904296875, -0.032318115234375, 0.040863037109375, 0.01123809814453125, -0.0028553009033203125, 0.0243682861328125, 0.03204345703125, 0.026702880859375, 0.0231781005859375, -0.02532958984375, 0.036590576171875, 0.0712890625, 0.0170440673828125, 0.0258941650390625, -0.0185546875, -0.0234832763671875, -0.003177642822265625, -0.0282440185546875, -0.044525146484375, -0.0166168212890625, 0.035919189453125, 0.04595947265625, -0.03558349609375, -0.023406982421875, 0.0250396728515625, -0.0179290771484375, -0.00423431396484375, -0.014404296875, -0.0015888214111328125, -0.01123046875, 0.0157470703125, 0.0178375244140625, -0.0168914794921875, -0.0001552104949951172, -0.0007467269897460938, -0.002376556396484375, -0.01715087890625, 0.0284576416015625, -0.0254364013671875, 0.019989013671875, -0.0239105224609375, -0.0235748291015625, -0.02655029296875, -0.0423583984375, -0.01367950439453125, 0.033843994140625, 0.00957489013671875, -0.02203369140625, -0.0230255126953125, 0.03460693359375, -0.005115509033203125, 0.0262603759765625, -0.0298309326171875, -0.0164031982421875, 0.0469970703125, -0.008087158203125, 0.07366943359375, 0.00830078125, -0.01568603515625, -0.016082763671875, -0.01397705078125, -0.0119781494140625, 0.06866455078125, 0.0016927719116210938, -0.0050201416015625, -0.032196044921875, -0.014068603515625, 0.0224456787109375, 0.00797271728515625, 0.01447296142578125, 0.0032196044921875, -0.00650787353515625, -0.02197265625, 0.00519561767578125, -0.0259857177734375, -0.003894805908203125, 0.032379150390625, 0.002422332763671875, -0.00572967529296875, -0.0257110595703125, 0.0187225341796875, -0.02288818359375, -0.022491455078125, 0.01763916015625, -0.01593017578125, 0.000762939453125, 0.0039005279541015625, -0.0025157928466796875, 0.07269287109375, -0.00849151611328125, 0.048797607421875, -0.027496337890625, -0.0005550384521484375, -0.0100860595703125, -0.0088653564453125, -0.05145263671875, 0.0017576217651367188, 0.033477783203125, -0.034637451171875, -0.0007166862487792969, 0.007312774658203125, 0.00960540771484375, 0.01476287841796875, -0.033966064453125, 0.0047760009765625, 0.0302581787109375, -0.07464599609375, 0.09478759765625, 0.0789794921875, 0.01189422607421875, 0.05072021484375, -0.004058837890625, 0.01427459716796875, 0.0184478759765625, -0.024139404296875, 0.04144287109375, -0.0096435546875, 0.07781982421875, -0.006565093994140625, -0.01210784912109375, 0.05712890625, -0.043792724609375, -0.00016880035400390625, 0.028167724609375, 0.0338134765625, -0.04132080078125, -0.004772186279296875, -0.002437591552734375, -0.0186004638671875, 0.0016193389892578125, 0.0226287841796875, -0.01904296875, -0.01995849609375, 0.0282135009765625, -0.053009033203125, -0.01064300537109375, 0.006679534912109375, -0.0134429931640625, -0.0136566162109375, -0.0001538991928100586, 0.04254150390625, 0.017669677734375, -0.01346588134765625, -0.0025768280029296875, 0.00440216064453125, 0.0231781005859375, -0.0236968994140625, -0.0021209716796875, -0.01277923583984375, -0.00600433349609375, -0.0185394287109375, 0.03875732421875, -0.0345458984375, 0.039764404296875, 0.02386474609375, 0.00748443603515625, 0.032684326171875, 0.0247955322265625, 0.00438690185546875, -0.02056884765625, 0.00807952880859375, -0.036834716796875, 0.00018167495727539062, -0.005645751953125, 0.02703857421875, 0.020111083984375, -0.01319122314453125, 0.01363372802734375, -0.016387939453125, -0.02362060546875, -0.0179901123046875, -0.01474761962890625, 0.078125, -0.030487060546875, -0.0182037353515625, 0.0184326171875, 0.034210205078125, -0.01294708251953125, 0.0037937164306640625, 0.043731689453125, -0.0379638671875, -0.01727294921875, 0.0198516845703125, -0.034088134765625, -0.0285491943359375, -0.0124664306640625, -0.07647705078125, 0.1197509765625, -0.00873565673828125, 0.0626220703125, -0.0130462646484375, 0.0308837890625, 0.0123291015625, 0.032379150390625, -0.0633544921875, 0.07476806640625, -0.01258087158203125, 0.0782470703125, -0.0684814453125, 0.007602691650390625, 0.020233154296875, 0.01297760009765625, 0.0482177734375, 0.015167236328125, 0.0035190582275390625, 0.0224761962890625, 0.05657958984375, -0.007724761962890625, -0.044677734375, 0.04461669921875, 0.0007991790771484375, 0.047576904296875, 0.0687255859375, -0.055084228515625, 0.0281524658203125, 0.0149688720703125, -0.0091705322265625, 0.03277587890625, 0.004116058349609375, -0.0273590087890625, -0.0158233642578125, -0.01502227783203125, -0.07952880859375, 0.0189056396484375, 0.038787841796875, 0.0282440185546875, 0.01084136962890625, 0.06488037109375, 0.0838623046875, -0.09320068359375, -0.03070068359375, -0.041351318359375, 0.06512451171875, -0.0009775161743164062, -0.02044677734375, 0.01041412353515625, -0.004199981689453125, -0.0037441253662109375, -0.0012960433959960938, -0.0181884765625, 0.00524139404296875, 0.0075225830078125, 0.050506591796875, 0.0294952392578125, 0.032806396484375, -0.04339599609375, 0.005817413330078125, 0.0462646484375, 0.07891845703125, -0.045623779296875, -0.01690673828125, 0.01229095458984375, -0.00476837158203125, -0.0014734268188476562, -0.00856781005859375, 0.0288238525390625, 0.007266998291015625, 0.01099395751953125, -0.042388916015625, -0.0164794921875, 0.023773193359375, 0.026763916015625, -0.0155487060546875, -0.01995849609375, -0.00015044212341308594, -0.0277557373046875, -0.047149658203125, -0.005558013916015625, 0.037750244140625, 0.08990478515625, 0.0136260986328125, 0.0771484375, -0.0411376953125, -0.037109375, 0.0099945068359375, -0.00814056396484375, 0.027374267578125, -0.023956298828125, 0.0083160400390625, 0.005573272705078125, 0.0309600830078125, 0.00974273681640625, 0.01947021484375, -0.014892578125, 0.061126708984375, 0.019622802734375, -0.0697021484375, -0.020233154296875, -0.0013380050659179688, -0.0390625, 0.022918701171875, -0.005306243896484375, -0.0156097412109375, 0.0037078857421875, -0.0251312255859375, -0.034454345703125, 0.0111846923828125, 0.032806396484375, -0.00658416748046875, 0.044891357421875, -0.00048065185546875, 0.0008983612060546875, 0.01239013671875, 0.031829833984375, 0.0233154296875, 0.039947509765625, -0.0947265625, 0.0019626617431640625, -0.03594970703125, -0.0924072265625, 0.044708251953125, 0.054718017578125, -0.040252685546875, 0.024078369140625, 0.01348114013671875, -0.02996826171875, 0.0226287841796875, 0.0228118896484375, -0.0066375732421875, -0.020416259765625, 0.0260162353515625, -0.024139404296875, -0.04864501953125, -0.003208160400390625, -0.0019989013671875, 0.00539398193359375, -0.022125244140625, 0.09527587890625, -0.0189666748046875, -0.0180816650390625, -0.0144195556640625, -0.00908660888671875, -0.0137786865234375, -0.0221710205078125, 0.0589599609375, -0.00580596923828125, -0.0246734619140625, -0.0109100341796875, -0.02130126953125, -0.01065826416015625, 0.03961181640625, -0.007213592529296875, -0.0118560791015625, -0.0175933837890625, 0.034271240234375, 0.0029048919677734375, 0.052490234375, -0.01849365234375, 0.005374908447265625, -0.041229248046875, -0.029266357421875, 0.0618896484375, 0.039703369140625, -0.006805419921875, 0.037567138671875, -0.050201416015625, -0.059173583984375, -0.005283355712890625, -0.058441162109375, -0.031768798828125, 0.02398681640625, 0.0205535888671875, -0.0399169921875, -0.01401519775390625, -0.0261688232421875, -0.021820068359375, -0.0040130615234375, 0.036102294921875, -0.02490234375, -0.03466796875, -0.00921630859375, 0.0137481689453125, 0.001277923583984375, -0.037322998046875, -0.00737762451171875, 0.023590087890625, -0.006134033203125, -0.003162384033203125, -0.0106048583984375, -0.019805908203125, -0.02813720703125, -0.0033817291259765625, 0.0230560302734375, -0.00792694091796875, 0.004749298095703125, -0.0169830322265625, 0.0249786376953125, 0.040863037109375, -0.004520416259765625, -0.01285552978515625, 0.0091552734375, -0.0301666259765625, 0.050537109375, 0.00783538818359375, 0.03204345703125, -0.00750732421875, 0.025604248046875, -0.033782958984375, -0.03961181640625, -0.0102691650390625, 0.058624267578125, -0.00978851318359375, 0.019622802734375, 0.047027587890625, -0.03631591796875, -0.044097900390625, -0.000156402587890625, 0.005741119384765625, 0.0419921875, -0.016204833984375, -0.0280303955078125, 0.0650634765625, -0.034088134765625, 0.0090179443359375, -0.07318115234375, -0.0230255126953125, -0.083984375, 0.023956298828125, -0.030975341796875, 0.034210205078125, 0.04022216796875, -0.0186004638671875, -0.043853759765625, 0.037078857421875, -0.02886962890625, -0.025115966796875, -0.028411865234375, 0.0292510986328125, 0.0101165771484375, -0.050689697265625, -0.01131439208984375, -0.0025920867919921875, -0.0175628662109375, 0.0030803680419921875, -0.0034046173095703125, 0.080078125, -0.01399993896484375, 0.0038623809814453125, 0.0031452178955078125, 0.0306549072265625, 0.0204925537109375, 0.01023101806640625, 0.022735595703125, -0.004852294921875, 0.006282806396484375, 0.038177490234375, -0.042755126953125, -0.033599853515625, -0.0416259765625, -0.035675048828125, -0.0301971435546875, -0.0264739990234375, -0.04840087890625, 0.00389862060546875, 0.106689453125, 0.11083984375, 0.04266357421875, -0.05975341796875, -0.01050567626953125, -0.00940704345703125, -0.06256103515625, -0.00945281982421875, 0.04949951171875, -0.0880126953125, -0.022003173828125, 0.0296478271484375, 0.005603790283203125, -0.022064208984375, -0.054046630859375, -0.005558013916015625, -0.01132965087890625, -0.00799560546875, 0.00855255126953125, 0.0219879150390625, -0.00089263916015625, 0.01873779296875, -0.01531982421875, 0.009765625, -0.032379150390625, 0.0202789306640625, -0.00469970703125, -0.0287322998046875, -0.0285491943359375, 0.039703369140625, -0.022216796875, -0.0026302337646484375, 0.00688934326171875, 0.0051727294921875, -0.008209228515625, 0.025115966796875, -0.0256805419921875, 0.00971221923828125, 0.01904296875, 0.0095977783203125, -0.02398681640625, 0.046722412109375, 0.030792236328125, 0.0390625, -0.01202392578125, 0.0284271240234375, 0.01473236083984375, 0.0240631103515625, -0.0372314453125, 0.005046844482421875, -0.00615692138671875, -0.0223388671875, 0.01227569580078125, -0.006938934326171875, 0.005710601806640625, 0.004901885986328125, -0.00301361083984375, -0.0180206298828125, -0.0130462646484375, 0.00894927978515625 ]
35b9dd1541dc5e04d024f5c8f0fde626120cd1cd
Wordpress Stackexchange Q: Single post comment template not working I cant get the comments template to show up in my single-events.php This is my code <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'events' ); ?> <?php comments_template( '', true ); ?> <?php endwhile; // end of the loop. ?> If I put the comments template in my events template (events.php), it will show up but it doesnt work on the single posts. Any ideas anyone? A: Here's 2 solutions i tested: Try adding support for comments in your custom post type code 'supports' => array( 'comments' ), You could also use add_post_type_support add_action('init', 'wpsites_comments'); function wpsites_comments() { add_post_type_support( 'events', 'comments' ); } Code Source
Q: Single post comment template not working I cant get the comments template to show up in my single-events.php This is my code <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'events' ); ?> <?php comments_template( '', true ); ?> <?php endwhile; // end of the loop. ?> If I put the comments template in my events template (events.php), it will show up but it doesnt work on the single posts. Any ideas anyone? A: Here's 2 solutions i tested: Try adding support for comments in your custom post type code 'supports' => array( 'comments' ), You could also use add_post_type_support add_action('init', 'wpsites_comments'); function wpsites_comments() { add_post_type_support( 'events', 'comments' ); } Code Source A: I am using comments_template('/single-comment.php'); single-comment.php is the file that contains all the content from comment.php. You can later edit this (single-comment.php) file.
wordpress
{ "language": "en", "length": 139, "provenance": "stackexchange_00019.jsonl.gz:426209", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74052" }
[ 0.05029296875, -0.0290069580078125, 0.041107177734375, -0.046417236328125, 0.00032830238342285156, -0.01409912109375, 0.026763916015625, -0.027435302734375, -0.005603790283203125, 0.051300048828125, -0.00519561767578125, 0.0013742446899414062, -0.0082855224609375, -0.0164337158203125, -0.0272979736328125, -0.029998779296875, 0.047821044921875, -0.0180816650390625, 0.021728515625, -0.0190887451171875, 0.029815673828125, 0.015350341796875, -0.016632080078125, 0.0863037109375, 0.021087646484375, -0.0264434814453125, 0.1351318359375, -0.0285186767578125, 0.044952392578125, -0.0218658447265625, 0.037567138671875, -0.018707275390625, 0.029998779296875, 0.0029850006103515625, -0.037567138671875, -0.00830841064453125, -0.0296783447265625, 0.00162506103515625, -0.02508544921875, 0.03497314453125, 0.006473541259765625, -0.01259613037109375, 0.006908416748046875, 0.016571044921875, 0.007389068603515625, -0.0343017578125, 0.0131988525390625, -0.06201171875, 0.0069580078125, -0.0273284912109375, 0.0203704833984375, -0.01137542724609375, 0.047210693359375, -0.053955078125, -0.021209716796875, -0.0079498291015625, -0.07916259765625, 0.03094482421875, 0.006542205810546875, 0.0145263671875, 0.0268707275390625, 0.00862884521484375, 0.003437042236328125, 0.0223541259765625, -0.027923583984375, 0.003047943115234375, 0.016754150390625, 0.007221221923828125, 0.0171356201171875, -0.047821044921875, -0.0049285888671875, 0.0102386474609375, 0.005023956298828125, -0.03466796875, 0.0153350830078125, -0.008697509765625, -0.0156402587890625, -0.0218963623046875, 0.006450653076171875, 0.0067596435546875, 0.035736083984375, 0.01241302490234375, -0.0063934326171875, -0.0345458984375, 0.031768798828125, -0.0054931640625, 0.00464630126953125, -0.0184173583984375, -0.02392578125, -0.0008378028869628906, -0.022247314453125, -0.06219482421875, -0.0102996826171875, 0.039093017578125, -0.00888824462890625, -0.01488494873046875, 0.032379150390625, 0.08807373046875, -0.030242919921875, -0.003665924072265625, -0.0160369873046875, -0.031646728515625, 0.008331298828125, -0.036773681640625, 0.004192352294921875, 0.0016536712646484375, -0.0144195556640625, -0.019989013671875, 0.038726806640625, 0.0435791015625, -0.00542449951171875, -0.00029158592224121094, 0.004474639892578125, -0.01019287109375, -0.01690673828125, -0.0024242401123046875, -0.021240234375, 0.02764892578125, 0.01001739501953125, 0.0164031982421875, 0.015899658203125, 0.039031982421875, 0.0268096923828125, 0.00029158592224121094, -0.0185089111328125, 0.0031375885009765625, 0.003627777099609375, -0.0770263671875, -0.01317596435546875, -0.0157012939453125, -0.0232391357421875, 0.020904541015625, 0.038177490234375, 0.036468505859375, 0.0086517333984375, -0.0104522705078125, 0.0345458984375, 0.003185272216796875, -0.01554107666015625, 0.01317596435546875, 0.034576416015625, 0.000644683837890625, -0.0230865478515625, 0.002166748046875, -0.004634857177734375, 0.003574371337890625, 0.0282440185546875, 0.031494140625, -0.0009074211120605469, -0.020904541015625, -0.010589599609375, 0.048004150390625, 0.0205078125, 0.00676727294921875, 0.027008056640625, -0.059600830078125, 0.0142822265625, -0.0428466796875, 0.039215087890625, -0.043731689453125, 0.01172637939453125, -0.003162384033203125, -0.005695343017578125, -0.035003662109375, -0.049468994140625, 0.0032939910888671875, -0.038726806640625, -0.01300048828125, 0.01035308837890625, -0.0096588134765625, -0.04541015625, -0.006069183349609375, 0.0050201416015625, -0.004180908203125, -0.01026153564453125, 0.0269927978515625, -0.0296783447265625, 0.007266998291015625, 0.0141754150390625, 0.0249786376953125, 0.0006737709045410156, -0.045196533203125, 0.0035610198974609375, 0.00782012939453125, -0.05645751953125, 0.047454833984375, 0.010528564453125, 0.022613525390625, -0.004619598388671875, 0.00923919677734375, 0.0226898193359375, 0.055419921875, 0.0185394287109375, -0.01043701171875, 0.017059326171875, -0.01316070556640625, -0.025909423828125, -0.0039825439453125, -0.01371002197265625, -0.01282501220703125, -0.016876220703125, -0.01453399658203125, 0.0220489501953125, 0.0103302001953125, -0.006412506103515625, 0.01146697998046875, -0.01812744140625, 0.0303497314453125, -0.032073974609375, -0.00634765625, 0.0208892822265625, -0.03741455078125, -0.00305938720703125, -0.0230712890625, -0.01380157470703125, 0.0161590576171875, 0.0242156982421875, 0.036285400390625, -0.00872802734375, 0.030517578125, 0.0018711090087890625, -0.04986572265625, -0.0234375, 0.0292510986328125, 0.06390380859375, -0.006683349609375, -0.034881591796875, -0.017608642578125, 0.019500732421875, -0.0019397735595703125, -0.040313720703125, 0.056640625, -0.038604736328125, -0.017181396484375, -0.019622802734375, 0.0225677490234375, 0.0168304443359375, 0.025390625, 0.00153350830078125, 0.0235443115234375, 0.0114593505859375, 0.0208282470703125, 0.01800537109375, 0.051116943359375, 0.05072021484375, 0.023681640625, 0.037200927734375, -0.0191192626953125, -0.00921630859375, -0.0218505859375, 0.033843994140625, -0.00830841064453125, 0.0330810546875, -0.04010009765625, 0.0284881591796875, 0.020111083984375, -0.0201416015625, 0.00598907470703125, -0.0003600120544433594, 0.023468017578125, -0.0014190673828125, 0.01715087890625, 0.017425537109375, -0.0160675048828125, 0.00603485107421875, -0.0022640228271484375, 0.00823211669921875, -0.005077362060546875, -0.01629638671875, -0.0008139610290527344, 0.014892578125, -0.0022983551025390625, -0.0042572021484375, 0.053558349609375, -0.0179595947265625, 0.05645751953125, -0.033111572265625, -0.00930023193359375, 0.006450653076171875, 0.041748046875, 0.01189422607421875, 0.08001708984375, -0.0227203369140625, -0.0169525146484375, -0.03369140625, -0.037506103515625, -0.02734375, 0.02667236328125, 0.00787353515625, -0.031982421875, 0.001956939697265625, 0.061920166015625, -0.001293182373046875, 0.0452880859375, 0.0277862548828125, -0.0043182373046875, 0.02178955078125, -0.053192138671875, 0.057769775390625, -0.049407958984375, 0.031585693359375, 0.05841064453125, -0.0145111083984375, 0.01316070556640625, 0.00017178058624267578, 0.00223541259765625, 0.0287933349609375, -0.01702880859375, -0.021331787109375, -0.014617919921875, -0.0056304931640625, 0.0255279541015625, 0.018218994140625, 0.07373046875, 0.00782012939453125, -0.03338623046875, 0.033294677734375, 0.05059814453125, 0.041046142578125, 0.006465911865234375, 0.00971221923828125, -0.053009033203125, 0.0013456344604492188, -0.060394287109375, -0.0283355712890625, -0.0016641616821289062, -0.0697021484375, 0.006237030029296875, -0.01342010498046875, -0.0218963623046875, -0.06048583984375, -0.03863525390625, -0.0836181640625, 0.034881591796875, 0.00337982177734375, 0.034210205078125, 0.01180267333984375, 0.07891845703125, 0.0238189697265625, -0.05706787109375, 0.0143585205078125, 0.01152801513671875, -0.035491943359375, 0.0035762786865234375, 0.024688720703125, -0.029083251953125, 0.027862548828125, 0.0015306472778320312, -0.0576171875, 0.0361328125, -0.0227813720703125, -0.033538818359375, -0.018951416015625, 0.001239776611328125, 0.0274810791015625, 0.0260162353515625, 0.027618408203125, 0.0489501953125, 0.06341552734375, -0.01267242431640625, -0.038818359375, -0.0144805908203125, -0.05535888671875, -0.0229034423828125, 0.040496826171875, 0.007442474365234375, -0.053131103515625, 0.031341552734375, 0.011260986328125, 0.0277099609375, 0.035186767578125, -0.005405426025390625, 0.021240234375, 0.0018024444580078125, -0.01983642578125, -0.032257080078125, -0.020904541015625, -0.020965576171875, -0.005138397216796875, -0.033966064453125, 0.006389617919921875, -0.038726806640625, 0.0240936279296875, -0.0872802734375, -0.035797119140625, 0.05181884765625, -0.0203704833984375, 0.0231781005859375, -0.038330078125, -0.025299072265625, 0.01087188720703125, 0.09197998046875, -0.0550537109375, -0.03411865234375, -0.01151275634765625, 0.009429931640625, -0.01049041748046875, 0.00250244140625, 0.005859375, -0.01934814453125, -0.044219970703125, 0.038360595703125, 0.005859375, -0.0272216796875, -0.0263671875, -0.007472991943359375, -0.037384033203125, -0.018096923828125, 0.01148223876953125, -0.035980224609375, -0.004608154296875, 0.044952392578125, -0.040283203125, 0.037353515625, 0.0094757080078125, -0.07220458984375, -0.0374755859375, -0.02655029296875, 0.019622802734375, 0.03143310546875, 0.005046844482421875, -0.0276641845703125, -0.022125244140625, 0.03033447265625, 0.005001068115234375, -0.006855010986328125, -0.01538848876953125, 0.003322601318359375, -0.00615692138671875, 0.01357269287109375, -0.02154541015625, -0.00412750244140625, 0.004062652587890625, 0.03790283203125, -0.00595855712890625, 0.0814208984375, -0.025360107421875, -0.01824951171875, 0.01172637939453125, -0.0301055908203125, 0.031829833984375, -0.0096588134765625, 0.0033626556396484375, 0.0634765625, -0.0217742919921875, 0.025146484375, -0.03424072265625, -0.0014667510986328125, 0.0024204254150390625, -0.0282135009765625, -0.01229095458984375, 0.019927978515625, 0.034210205078125, 0.02996826171875, -0.01352691650390625, -0.01202392578125, 0.0195465087890625, 0.0204315185546875, 0.02569580078125, 0.036224365234375, 0.0096282958984375, -0.0157318115234375, 0.0240478515625, 0.00946807861328125, 0.02154541015625, -0.040985107421875, 0.052703857421875, 0.0011625289916992188, -0.0102996826171875, 0.046295166015625, -0.00042057037353515625, -0.005268096923828125, 0.0005927085876464844, 0.003963470458984375, -0.0255889892578125, -0.0132598876953125, 0.06304931640625, 0.024200439453125, -0.01165008544921875, -0.0721435546875, -0.047210693359375, 0.0022220611572265625, -0.01554107666015625, 0.039306640625, 0.0426025390625, -0.01247406005859375, 0.064453125, 0.029327392578125, -0.0084991455078125, 0.0165863037109375, -0.00753021240234375, 0.01486968994140625, -0.00689697265625, 0.05621337890625, -0.006587982177734375, -0.0003552436828613281, -0.00917816162109375, 0.07550048828125, 0.029510498046875, -0.017364501953125, -0.005741119384765625, -0.00771331787109375, -0.0135498046875, -0.005565643310546875, 0.0036754608154296875, 0.0153350830078125, 0.004711151123046875, -0.001796722412109375, 0.0086669921875, -0.03228759765625, 0.00612640380859375, -0.027069091796875, -0.005767822265625, 0.01494598388671875, -0.011993408203125, 0.04864501953125, -0.01259613037109375, 0.00011050701141357422, 0.00864410400390625, -0.0227813720703125, 0.0256805419921875, 0.0195770263671875, 0.0633544921875, 0.02197265625, -0.051116943359375, -0.0159912109375, 0.041351318359375, -0.01904296875, -0.02789306640625, -0.050048828125, 0.005107879638671875, 0.0232696533203125, 0.01305389404296875, 0.037933349609375, 0.00885772705078125, 0.0292205810546875, -0.01016998291015625, 0.017791748046875, 0.0472412109375, -0.025054931640625, 0.0137176513671875, 0.04974365234375, 0.012298583984375, 0.025665283203125, -0.0374755859375, 0.0280303955078125, -0.0733642578125, -0.007015228271484375, 0.057373046875, -0.0240020751953125, 0.00952911376953125, -0.0065155029296875, -0.004581451416015625, -0.0269775390625, 0.00341796875, -0.03631591796875, -0.01038360595703125, -0.01026153564453125, -0.01256561279296875, 0.00957489013671875, -0.01345062255859375, 0.0010986328125, -0.0205230712890625, 0.0051727294921875, -0.038909912109375, -0.0020160675048828125, 0.042388916015625, 0.0198974609375, -0.03143310546875, 0.011077880859375, -0.045562744140625, -0.0235137939453125, -0.016754150390625, -0.05364990234375, -0.059600830078125, -0.0154266357421875, 0.01178741455078125, 0.0234832763671875, -0.00724029541015625, -0.0008044242858886719, -0.006114959716796875, 0.031707763671875, -0.0130767822265625, 0.07183837890625, -0.00957489013671875, 0.0938720703125, 0.033660888671875, 0.0625, 0.037506103515625, 0.070556640625, -0.0142669677734375, -0.034210205078125, -0.00044417381286621094, -0.011749267578125, -0.0026378631591796875, -0.0185089111328125, -0.0170745849609375, 0.0128021240234375, 0.06341552734375, -0.004169464111328125, -0.0242767333984375, -0.033538818359375, 0.008636474609375, -0.034515380859375, 0.051055908203125, -0.02178955078125, -0.034027099609375, -0.0135040283203125, -0.00914764404296875, 0.0186614990234375, -0.0224456787109375, -0.0158538818359375, -0.0008883476257324219, 0.0016775131225585938, -0.00316619873046875, 0.0278472900390625, -0.0146484375, 0.0697021484375, 0.0709228515625, -0.01270294189453125, 0.036346435546875, 0.0199127197265625, 0.00177764892578125, -0.0033550262451171875, 0.037078857421875, -0.044830322265625, -0.04986572265625, 0.0279693603515625, 0.0162200927734375, -0.016265869140625, 0.0145111083984375, -0.0195465087890625, 0.044647216796875, 0.0225830078125, 0.056549072265625, -0.074951171875, 0.01540374755859375, -0.005481719970703125, -0.0027618408203125, 0.099365234375, -0.03143310546875, 0.0084686279296875, -0.0309906005859375, 0.03369140625, 0.05352783203125, -0.0244293212890625, -0.00199127197265625, -0.0108795166015625, 0.011474609375, -0.0122222900390625, 0.054168701171875, -0.00815582275390625, -0.0770263671875, 0.0030078887939453125, 0.057525634765625, -0.0225677490234375, -0.034759521484375, -0.01366424560546875, 0.0279083251953125, -0.037384033203125, -0.08807373046875, 0.01070404052734375, -0.02581787109375, 0.0013074874877929688, 0.042388916015625, -0.0129241943359375, 0.00835418701171875, 0.04473876953125, -0.0255279541015625, 0.039459228515625, 0.006641387939453125, -0.0226287841796875, -0.04449462890625, -0.0226593017578125, 0.01108551025390625, 0.0223541259765625, -0.0139617919921875, 0.037139892578125, -0.00786590576171875, -0.037994384765625, 0.0017652511596679688, 0.0010423660278320312, 0.0738525390625, -0.046844482421875, -0.013427734375, 0.03350830078125, 0.0012264251708984375, -0.00707244873046875, 0.0185546875, 0.0194549560546875, -0.022186279296875, 0.0029144287109375, 0.016754150390625, -0.0259246826171875, -0.0223541259765625, 0.0136260986328125, -0.061370849609375, 0.0723876953125, 0.0217132568359375, 0.0013380050659179688, 0.0164794921875, 0.026641845703125, -0.07086181640625, -0.00783538818359375, -0.0229034423828125, 0.0447998046875, -0.040496826171875, 0.07470703125, -0.043304443359375, -0.004734039306640625, 0.0243072509765625, 0.05352783203125, 0.04937744140625, 0.00617218017578125, -0.01424407958984375, 0.0165252685546875, 0.062286376953125, 0.00945281982421875, -0.01251220703125, 0.032867431640625, -0.01031494140625, -0.050018310546875, 0.0025119781494140625, 0.033050537109375, 0.033477783203125, -0.01324462890625, -0.036773681640625, -0.0005660057067871094, 0.00969696044921875, 0.00754547119140625, 0.0123138427734375, -0.0014972686767578125, -0.0214080810546875, 0.006671905517578125, 0.01788330078125, -0.031890869140625, -0.0352783203125, 0.060516357421875, 0.02838134765625, -0.02203369140625, 0.006561279296875, -0.05078125, 0.047149658203125, 0.02105712890625, 0.024169921875, 0.022491455078125, 0.0374755859375, -0.0223388671875, -0.04876708984375, 0.0061492919921875, -0.01036834716796875, -0.051116943359375, 0.0240325927734375, 0.0027179718017578125, 0.022369384765625, -0.057159423828125, -0.00908660888671875, 0.0233001708984375, 0.036346435546875, -0.033111572265625, -0.003841400146484375, 0.0133209228515625, 0.018341064453125, 0.0057220458984375, -0.0272216796875, 0.0225677490234375, 0.0165252685546875, 0.025543212890625, -0.00820159912109375, -0.0303955078125, 0.006763458251953125, 0.0245208740234375, 0.00862884521484375, 0.02679443359375, 0.00943756103515625, -0.034332275390625, -0.0322265625, 0.019683837890625, 0.046661376953125, 0.030120849609375, -0.006862640380859375, 0.035369873046875, 0.0061187744140625, 0.004734039306640625, 0.0261688232421875, 0.0029964447021484375, -0.0224456787109375, -0.023895263671875, 0.00330352783203125, -0.030609130859375, -0.000705718994140625, 0.018951416015625, 0.039947509765625, -0.0011911392211914062, 0.01377105712890625, -0.020782470703125, -0.01519775390625, -0.0045166015625, 0.014739990234375, -0.0231170654296875, 0.0028438568115234375, -0.033050537109375, -0.0142364501953125, 0.0119781494140625, -0.0212860107421875, 0.01297760009765625, -0.0305328369140625, 0.052093505859375, -0.01006317138671875, -0.00927734375, 0.00023555755615234375, -0.0261077880859375, 0.042938232421875, 0.0160064697265625, 0.0225372314453125, 0.0148162841796875, -0.06378173828125, -0.01015472412109375, -0.004405975341796875, -0.052398681640625, 0.0155029296875, 0.041900634765625, -0.02301025390625, 0.020843505859375, -0.027130126953125, 0.049530029296875, 0.00504302978515625, -0.06842041015625, 0.023590087890625, -0.0087432861328125, 0.008819580078125, 0.02252197265625, -0.06451416015625, -0.060028076171875, -0.0243682861328125, 0.060089111328125, 0.0072784423828125, 0.08831787109375, -0.0272674560546875, 0.0269012451171875, -0.018310546875, 0.0394287109375, -0.053375244140625, -0.0290679931640625, 0.040679931640625, 0.0001443624496459961, 0.01343536376953125, -0.01253509521484375, -0.05560302734375, 0.040496826171875, 0.037109375, -0.005741119384765625, 0.056060791015625, -0.007293701171875, -0.01198577880859375, -0.043304443359375, 0.0083465576171875, -0.031951904296875, 0.0103302001953125, -0.01441192626953125, -0.0186004638671875, 0.0216064453125, -0.0232086181640625, 0.01062774658203125, 0.07122802734375, -0.0296478271484375, 0.001308441162109375, 0.00330352783203125, -0.060028076171875, -0.031463623046875, 0.01320648193359375, 0.01096343994140625, -0.006099700927734375, 0.0369873046875, -0.01245880126953125, 0.0033206939697265625, 0.00923919677734375, 0.0295562744140625, 0.0141143798828125, -0.01166534423828125, 0.0258636474609375, -0.0269012451171875, 0.0120849609375, -0.03594970703125, -0.0235595703125, 0.0164337158203125, 0.007587432861328125, 0.00843048095703125, -0.0033111572265625, -0.039306640625, -0.056915283203125, 0.00865936279296875, 0.026611328125, -0.037078857421875, -0.011322021484375, -0.0784912109375, -0.04693603515625, 0.0238800048828125, -0.00963592529296875, 0.00982666015625, -0.032318115234375, -0.004291534423828125, 0.002819061279296875, -0.01267242431640625, -0.0174102783203125, 0.04278564453125, 0.0665283203125, -0.0110931396484375, 0.005130767822265625, -0.005130767822265625, -0.028076171875, -0.005809783935546875, 0.0404052734375, 0.04547119140625, -0.0166778564453125, -0.030670166015625, 0.061492919921875, -0.0012159347534179688, 0.11590576171875, -0.01270294189453125, 0.0010786056518554688, 0.038604736328125, 0.006343841552734375, -0.042083740234375, -0.033050537109375, 0.02020263671875, -0.025146484375, -0.00960540771484375, -0.02313232421875, 0.0293731689453125, 0.04095458984375, -0.04083251953125, -0.099365234375, 0.0657958984375, -0.0305633544921875, -0.02685546875, -0.0599365234375, -0.01136016845703125, 0.0147705078125, -0.010589599609375, -0.03192138671875, -0.002628326416015625, -0.0265960693359375, 0.051666259765625, 0.0036182403564453125, 0.017333984375, 0.04302978515625, -0.012725830078125, -0.01087188720703125, -0.00688934326171875, 0.005985260009765625, -0.0237274169921875, 0.0020427703857421875, -0.03094482421875, 0.02032470703125, 0.0170745849609375, -0.0614013671875, -0.054229736328125, 0.0003323554992675781, 0.049957275390625, 0.0008344650268554688, -0.003875732421875, -0.026153564453125, -0.0009102821350097656, 0.01290130615234375, 0.0640869140625, 0.0115203857421875, -0.04107666015625, 0.0604248046875, -0.026458740234375, -0.10791015625, -0.003559112548828125, 0.0292205810546875, -0.03485107421875, 0.00498199462890625, 0.0120086669921875, -0.0128936767578125, 0.01007080078125, -0.0232086181640625, -0.0181121826171875, -0.0013408660888671875, -0.017425537109375, -0.0032405853271484375, -0.021636962890625, 0.0026912689208984375, 0.041900634765625, -0.0255279541015625, 0.019775390625, -0.04779052734375, 0.027923583984375, 0.0223541259765625, -0.061767578125, -0.005615234375, -0.0107879638671875, 0.0025177001953125, -0.0093841552734375, 0.0214691162109375, 0.038482666015625, 0.0205230712890625, -0.02056884765625, 0.004779815673828125, 0.0115966796875, -0.01110076904296875, 0.009765625, 0.005641937255859375, 0.0134429931640625, -0.0208282470703125, 0.058868408203125, -0.00237274169921875, 0.038604736328125, -0.041473388671875, 0.05853271484375, -0.0113067626953125, -0.01441192626953125, -0.02734375, 0.0274810791015625, -0.006870269775390625, 0.009521484375, -0.0299835205078125, -0.03558349609375, 0.0296173095703125, 0.033294677734375, 0.00807952880859375, 0.01727294921875 ]
e5dc7bd6dccd23fde6b34fae24fe96eae5168b70
Wordpress Stackexchange Q: Get posts with tag all post types I'm trying to get all posts that have a specific tag, regardless of what type of post that is. I've tried every solution I've found (here on SO and further), but nothing works: I always only get the normal 'post' type from my wp_query. I've tried this: $query_args = array( 'tag' => $tag, 'post_type' => array('post', 'praktijk', 'expert', 'download', 'product', 'event') ); $query = new WP_Query( $query_args ); And I would think that would work. Replacing the array of post_types with the string 'any' also doesn't work. Does anybody know what I'm doing wrong? A: You could use $query_args = array( 'tag' => $tag, 'post_type' => 'any', ); $query = new WP_Query( $query_args ); Please have a look here: Tag Parameters and Type Parameters.
Q: Get posts with tag all post types I'm trying to get all posts that have a specific tag, regardless of what type of post that is. I've tried every solution I've found (here on SO and further), but nothing works: I always only get the normal 'post' type from my wp_query. I've tried this: $query_args = array( 'tag' => $tag, 'post_type' => array('post', 'praktijk', 'expert', 'download', 'product', 'event') ); $query = new WP_Query( $query_args ); And I would think that would work. Replacing the array of post_types with the string 'any' also doesn't work. Does anybody know what I'm doing wrong? A: You could use $query_args = array( 'tag' => $tag, 'post_type' => 'any', ); $query = new WP_Query( $query_args ); Please have a look here: Tag Parameters and Type Parameters.
wordpress
{ "language": "en", "length": 132, "provenance": "stackexchange_00019.jsonl.gz:426212", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74055" }
[ 0.03546142578125, -0.01104736328125, -0.0011262893676757812, 0.0071258544921875, 0.015960693359375, -0.042388916015625, 0.10150146484375, 0.00022923946380615234, -0.035247802734375, 0.03240966796875, -0.0027523040771484375, -0.00457763671875, -0.0279693603515625, -0.0249786376953125, -0.0022735595703125, -0.046844482421875, 0.03057861328125, -0.0261383056640625, 0.00466156005859375, -0.0198822021484375, 0.041015625, -0.00494384765625, 0.026702880859375, 0.032989501953125, 0.0271148681640625, 0.03436279296875, 0.023895263671875, 0.012176513671875, 0.024017333984375, 0.0236358642578125, 0.0301666259765625, -0.0672607421875, 0.00839996337890625, 0.0137481689453125, -0.004482269287109375, -0.0023708343505859375, 0.0069732666015625, 0.0009469985961914062, 0.0325927734375, -0.0009436607360839844, 0.01806640625, -0.004718780517578125, 0.023834228515625, 0.054412841796875, -0.015899658203125, -0.0197296142578125, 0.01396942138671875, -0.03057861328125, 0.0129547119140625, -0.0440673828125, 0.007595062255859375, -0.0176849365234375, 0.033447265625, -0.047821044921875, -0.0305938720703125, -0.0082855224609375, 0.0216522216796875, -0.0256500244140625, 0.043609619140625, -0.05303955078125, -0.039825439453125, -0.038116455078125, 0.051116943359375, 0.0075225830078125, -0.03350830078125, 0.01378631591796875, 0.0391845703125, -0.023193359375, -0.041412353515625, -0.033111572265625, 0.05438232421875, -0.0199737548828125, 0.004352569580078125, 0.0158233642578125, 0.0026531219482421875, -0.057403564453125, 0.01800537109375, -0.02508544921875, -0.0012216567993164062, 0.0272064208984375, 0.029754638671875, -0.03607177734375, -0.0170135498046875, 0.006160736083984375, -0.00211334228515625, -0.0015306472778320312, 0.002544403076171875, -0.00001627206802368164, -0.0272369384765625, -0.04180908203125, -0.0289306640625, -0.050689697265625, -0.046539306640625, 0.00902557373046875, 0.007305145263671875, -0.041168212890625, 0.00040268898010253906, 0.0072174072265625, 0.01366424560546875, 0.040313720703125, -0.0181427001953125, -0.046142578125, 0.06317138671875, -0.04547119140625, 0.0330810546875, 0.06561279296875, -0.0078887939453125, 0.026580810546875, 0.0738525390625, 0.0206146240234375, 0.0299072265625, 0.062286376953125, -0.02337646484375, 0.01366424560546875, -0.04083251953125, 0.017547607421875, -0.05181884765625, -0.00528717041015625, -0.0246124267578125, 0.01422119140625, 0.01534271240234375, 0.038543701171875, 0.0126800537109375, -0.027862548828125, -0.003082275390625, 0.01187896728515625, 0.0181121826171875, -0.06610107421875, -0.013153076171875, 0.01149749755859375, -0.01088714599609375, 0.01788330078125, -0.00020897388458251953, -0.000774383544921875, -0.0299835205078125, -0.0124969482421875, -0.00966644287109375, -0.06280517578125, -0.01128387451171875, 0.016021728515625, 0.0143890380859375, -0.029327392578125, 0.0167083740234375, 0.0119171142578125, 0.038543701171875, 0.0188751220703125, 0.026123046875, 0.0008702278137207031, -0.0019083023071289062, -0.0010519027709960938, -0.0016660690307617188, 0.007236480712890625, 0.031646728515625, 0.00989532470703125, -0.034637451171875, -0.0194854736328125, 0.0234832763671875, -0.025970458984375, -0.016632080078125, -0.06854248046875, 0.01617431640625, -0.0023021697998046875, 0.009613037109375, 0.00507354736328125, -0.0064239501953125, 0.006031036376953125, -0.02471923828125, -0.0063323974609375, 0.0164337158203125, -0.0039520263671875, -0.0018014907836914062, 0.00030159950256347656, 0.061370849609375, 0.03924560546875, 0.008819580078125, 0.0291290283203125, -0.00478363037109375, -0.01898193359375, 0.044189453125, -0.0070343017578125, -0.034210205078125, -0.022796630859375, 0.046661376953125, -0.0216522216796875, -0.07220458984375, 0.0092620849609375, 0.01885986328125, 0.04949951171875, 0.013275146484375, 0.0097503662109375, 0.06024169921875, 0.01059722900390625, -0.024810791015625, 0.035888671875, -0.0038318634033203125, -0.003543853759765625, -0.055694580078125, 0.0092620849609375, -0.0235443115234375, -0.01861572265625, 0.01468658447265625, -0.006099700927734375, 0.0033359527587890625, -0.0148468017578125, -0.0489501953125, -0.002582550048828125, -0.0097808837890625, 0.032318115234375, -0.006595611572265625, 0.0292510986328125, 0.028717041015625, 0.00824737548828125, -0.045684814453125, 0.0153045654296875, -0.0014019012451171875, 0.016815185546875, -0.0167388916015625, 0.0012025833129882812, -0.017852783203125, 0.0026607513427734375, -0.0251617431640625, -0.032012939453125, -0.03448486328125, 0.03021240234375, 0.046112060546875, 0.02606201171875, 0.0004901885986328125, 0.0110015869140625, 0.060791015625, 0.055908203125, -0.0430908203125, -0.04766845703125, 0.0057830810546875, 0.0253753662109375, -0.032012939453125, -0.005031585693359375, 0.0181121826171875, -0.017974853515625, 0.0264434814453125, 0.035003662109375, 0.0165557861328125, 0.0263214111328125, -0.0006155967712402344, 0.028564453125, 0.037628173828125, -0.0265350341796875, 0.01380157470703125, 0.0010480880737304688, -0.002384185791015625, 0.033782958984375, 0.0185394287109375, 0.0304107666015625, 0.0193023681640625, -0.0036029815673828125, 0.022796630859375, 0.03607177734375, -0.007610321044921875, 0.03466796875, -0.0279388427734375, -0.0122833251953125, -0.00672149658203125, -0.02728271484375, -0.00650787353515625, -0.023895263671875, 0.057403564453125, 0.0277557373046875, 0.050384521484375, 0.03399658203125, -0.04498291015625, 0.017669677734375, 0.006336212158203125, 0.01470947265625, 0.005992889404296875, 0.056365966796875, 0.0014619827270507812, 0.02825927734375, -0.0293121337890625, -0.0144500732421875, -0.0038127899169921875, 0.03680419921875, 0.01129150390625, 0.0421142578125, 0.0231781005859375, -0.0010137557983398438, -0.01107025146484375, -0.044403076171875, 0.01312255859375, 0.021514892578125, -0.027587890625, -0.00893402099609375, 0.01030731201171875, 0.02740478515625, -0.016937255859375, 0.0193328857421875, -0.0184326171875, -0.0001329183578491211, -0.036529541015625, -0.0751953125, 0.045013427734375, -0.059326171875, 0.07684326171875, 0.0946044921875, -0.01470184326171875, 0.0175323486328125, 0.0003540515899658203, -0.00670623779296875, 0.00896453857421875, 0.00846099853515625, -0.0231170654296875, -0.009857177734375, -0.071533203125, -0.004108428955078125, 0.0201416015625, 0.038818359375, -0.0022144317626953125, -0.0439453125, -0.007282257080078125, 0.0288848876953125, -0.07965087890625, -0.046478271484375, 0.03240966796875, -0.0258636474609375, -0.0211029052734375, -0.05078125, -0.0155181884765625, 0.01280975341796875, -0.0645751953125, -0.01296234130859375, -0.004276275634765625, 0.024139404296875, -0.0634765625, -0.01406097412109375, -0.061798095703125, 0.0159912109375, -0.0201568603515625, 0.022369384765625, 0.0263824462890625, 0.059722900390625, 0.024810791015625, -0.031707763671875, 0.037628173828125, 0.03936767578125, -0.03662109375, -0.0016155242919921875, -0.015350341796875, -0.00989532470703125, 0.051239013671875, -0.00823974609375, -0.022125244140625, 0.02667236328125, 0.0014066696166992188, -0.0137786865234375, 0.00307464599609375, -0.019989013671875, 0.03350830078125, -0.0077972412109375, -0.02960205078125, 0.020751953125, 0.0253448486328125, -0.03179931640625, 0.01076507568359375, -0.01239776611328125, -0.0169219970703125, 0.033721923828125, -0.0122222900390625, -0.01392364501953125, 0.0115814208984375, 0.0166015625, 0.0212554931640625, 0.01320648193359375, 0.0157470703125, -0.01328277587890625, 0.029937744140625, 0.002899169921875, 0.024993896484375, -0.023193359375, -0.03240966796875, -0.036651611328125, 0.05914306640625, -0.0161590576171875, -0.010986328125, -0.033477783203125, 0.02294921875, -0.0282440185546875, -0.049591064453125, 0.036529541015625, -0.047454833984375, -0.0088348388671875, -0.038482666015625, -0.0255126953125, -0.007282257080078125, 0.07122802734375, -0.006443023681640625, -0.007419586181640625, -0.05694580078125, -0.0112152099609375, -0.007266998291015625, -0.064208984375, -0.0047607421875, 0.00457763671875, -0.0277862548828125, -0.01177215576171875, -0.0276336669921875, -0.01313018798828125, -0.01026153564453125, -0.027008056640625, -0.012451171875, -0.034454345703125, 0.037200927734375, -0.035858154296875, 0.023529052734375, -0.006381988525390625, 0.01702880859375, -0.0222320556640625, -0.036956787109375, -0.00394439697265625, -0.07135009765625, -0.01175689697265625, 0.0273590087890625, 0.0174560546875, -0.0276336669921875, -0.00522613525390625, -0.0121002197265625, 0.03936767578125, 0.0251312255859375, 0.023681640625, 0.0082855224609375, -0.0143585205078125, -0.00913238525390625, -0.006046295166015625, -0.0009946823120117188, -0.034088134765625, -0.0297393798828125, -0.0015764236450195312, 0.0089874267578125, 0.0276031494140625, -0.01953125, -0.016876220703125, -0.0015287399291992188, -0.01708984375, -0.0075836181640625, -0.012908935546875, -0.0276336669921875, -0.00010949373245239258, -0.0259552001953125, -0.003025054931640625, -0.0094146728515625, -0.021209716796875, 0.0625, 0.044281005859375, -0.02508544921875, -0.00695037841796875, 0.08441162109375, 0.0102386474609375, -0.048095703125, -0.0712890625, 0.0157928466796875, 0.03424072265625, -0.0316162109375, 0.0535888671875, 0.0267486572265625, -0.021148681640625, 0.043853759765625, -0.00011092424392700195, 0.0049591064453125, -0.02581787109375, 0.0711669921875, -0.0106201171875, -0.0134735107421875, 0.018280029296875, -0.031097412109375, 0.01042938232421875, 0.03338623046875, -0.0009541511535644531, -0.05426025390625, 0.0109405517578125, 0.069580078125, -0.01438140869140625, 0.01447296142578125, -0.037445068359375, -0.02227783203125, 0.02093505859375, 0.0860595703125, -0.04376220703125, 0.016021728515625, -0.00171661376953125, -0.0187530517578125, -0.0297393798828125, -0.004268646240234375, -0.00872039794921875, 0.05145263671875, -0.01287078857421875, 0.0195770263671875, 0.02069091796875, -0.023651123046875, -0.0321044921875, 0.0037097930908203125, -0.00563812255859375, -0.018035888671875, -0.059844970703125, 0.01342010498046875, -0.0187530517578125, 0.00931549072265625, 0.02783203125, -0.0215301513671875, 0.01739501953125, 0.0301971435546875, 0.0102691650390625, -0.01055145263671875, -0.0307464599609375, 0.004322052001953125, -0.035980224609375, 0.01441192626953125, 0.0039043426513671875, -0.0014514923095703125, 0.00970458984375, 0.060699462890625, -0.023040771484375, 0.050567626953125, -0.0026416778564453125, -0.006755828857421875, -0.00646209716796875, 0.037872314453125, 0.033782958984375, -0.016510009765625, -0.0015964508056640625, -0.01123809814453125, 0.006366729736328125, -0.0413818359375, 0.01180267333984375, 0.0246734619140625, 0.050048828125, 0.040740966796875, -0.029693603515625, 0.006343841552734375, -0.029449462890625, -0.004222869873046875, 0.01146697998046875, 0.0239410400390625, 0.003204345703125, -0.0311431884765625, -0.01384735107421875, 0.03179931640625, 0.0213470458984375, -0.0242156982421875, 0.054046630859375, -0.007137298583984375, 0.030731201171875, 0.0087127685546875, -0.035369873046875, 0.0313720703125, 0.040008544921875, -0.0264434814453125, -0.0537109375, -0.0224456787109375, 0.0152587890625, 0.021087646484375, -0.0131683349609375, -0.027496337890625, 0.0086212158203125, -0.016448974609375, 0.063720703125, -0.0185546875, -0.0438232421875, -0.01220703125, 0.005527496337890625, 0.06109619140625, 0.04595947265625, -0.005645751953125, -0.007732391357421875, -0.042388916015625, -0.023223876953125, 0.0201263427734375, -0.031402587890625, -0.026153564453125, -0.027801513671875, 0.0001405477523803711, 0.02154541015625, -0.00823211669921875, 0.0192413330078125, -0.005199432373046875, 0.01947021484375, -0.006298065185546875, 0.048126220703125, -0.005832672119140625, 0.03460693359375, -0.0396728515625, 0.0210113525390625, -0.03607177734375, -0.0011043548583984375, -0.005046844482421875, 0.01035308837890625, -0.004791259765625, -0.0860595703125, -0.013885498046875, 0.0004916191101074219, -0.0127410888671875, 0.024749755859375, 0.005634307861328125, 0.01380157470703125, 0.0081939697265625, -0.0165863037109375, 0.003925323486328125, -0.0148773193359375, 0.05316162109375, -0.0166168212890625, 0.0034027099609375, 0.0535888671875, 0.01812744140625, 0.005802154541015625, -0.02337646484375, 0.00921630859375, -0.042266845703125, 0.00745391845703125, -0.019989013671875, -0.01152801513671875, 0.01132965087890625, -0.02020263671875, 0.017730712890625, 0.0081939697265625, 0.0189056396484375, -0.01032257080078125, 0.017852783203125, 0.0179443359375, -0.0220184326171875, -0.010223388671875, 0.00023055076599121094, 0.0231781005859375, -0.017913818359375, -0.00350189208984375, 0.032501220703125, -0.0220794677734375, -0.028594970703125, 0.010650634765625, 0.02459716796875, -0.026885986328125, -0.0023784637451171875, 0.024932861328125, 0.000995635986328125, -0.01971435546875, 0.0002944469451904297, -0.01486968994140625, -0.0297393798828125, -0.00041294097900390625, 0.00038433074951171875, -0.0242767333984375, -0.0146942138671875, 0.007904052734375, 0.0007548332214355469, -0.029388427734375, 0.050537109375, -0.00229644775390625, -0.0511474609375, -0.0038547515869140625, 0.027923583984375, -0.0284271240234375, -0.0177001953125, 0.02447509765625, -0.04473876953125, 0.00493621826171875, -0.063720703125, -0.006992340087890625, -0.0189971923828125, -0.0168609619140625, -0.0051422119140625, -0.026947021484375, 0.0008230209350585938, 0.032745361328125, -0.0287017822265625, -0.018890380859375, 0.0223388671875, -0.067626953125, -0.11102294921875, -0.02105712890625, -0.001583099365234375, 0.0498046875, 0.0193023681640625, 0.047393798828125, -0.0224151611328125, -0.0190582275390625, -0.005859375, -0.00406646728515625, 0.04656982421875, -0.037322998046875, -0.004772186279296875, 0.0401611328125, 0.039459228515625, 0.005523681640625, 0.0020236968994140625, -0.0347900390625, -0.00920867919921875, 0.007541656494140625, -0.0152587890625, -0.016082763671875, -0.00408172607421875, -0.001461029052734375, -0.054534912109375, 0.0509033203125, 0.042633056640625, 0.0163726806640625, 0.038360595703125, 0.0158233642578125, -0.06622314453125, -0.0310211181640625, -0.0643310546875, 0.062469482421875, 0.016845703125, 0.0411376953125, -0.0587158203125, -0.0105743408203125, -0.0011835098266601562, 0.01255035400390625, 0.04736328125, -0.00939178466796875, -0.042694091796875, -0.00290679931640625, 0.0712890625, 0.06365966796875, 0.028717041015625, 0.022613525390625, 0.0175018310546875, 0.031402587890625, 0.05218505859375, -0.031829833984375, 0.048919677734375, -0.0194091796875, 0.006061553955078125, 0.025726318359375, 0.016937255859375, 0.0191192626953125, -0.0156402587890625, -0.03509521484375, -0.03167724609375, 0.000274658203125, 0.01488494873046875, -0.020050048828125, 0.038726806640625, 0.03900146484375, 0.10028076171875, -0.10400390625, -0.058837890625, -0.0274810791015625, 0.058746337890625, 0.0166778564453125, 0.0153656005859375, -0.005245208740234375, 0.0018606185913085938, 0.0697021484375, -0.037109375, -0.007053375244140625, -0.00154876708984375, 0.0010881423950195312, 0.045806884765625, 0.019561767578125, 0.0092620849609375, -0.06427001953125, -0.003124237060546875, 0.056549072265625, 0.050750732421875, -0.053253173828125, -0.07080078125, 0.017181396484375, 0.0090179443359375, -0.0053863525390625, 0.023468017578125, 0.01221466064453125, -0.0028743743896484375, 0.06024169921875, -0.0399169921875, 0.0003075599670410156, 0.005512237548828125, 0.061981201171875, -0.00433349609375, -0.035736083984375, -0.0556640625, -0.01751708984375, -0.075439453125, 0.03302001953125, 0.025238037109375, 0.056549072265625, 0.01428985595703125, 0.056915283203125, 0.022491455078125, -0.0207977294921875, 0.00653076171875, 0.01451873779296875, -0.014678955078125, 0.00852203369140625, -0.01019287109375, -0.036285400390625, 0.0017547607421875, 0.0205078125, 0.061981201171875, -0.016693115234375, 0.019195556640625, 0.02362060546875, 0.0005040168762207031, 0.007541656494140625, 0.05328369140625, 0.007076263427734375, -0.018310546875, -0.03668212890625, -0.022857666015625, 0.02252197265625, -0.01316070556640625, 0.04443359375, -0.0038051605224609375, 0.02569580078125, 0.00380706787109375, 0.0455322265625, 0.007480621337890625, -0.0009889602661132812, 0.050750732421875, 0.0015077590942382812, 0.030548095703125, 0.0210113525390625, -0.0880126953125, -0.011444091796875, -0.0797119140625, -0.027099609375, 0.057861328125, 0.03424072265625, -0.01453399658203125, 0.03265380859375, 0.0260009765625, -0.021484375, 0.021209716796875, 0.0025119781494140625, 0.032135009765625, 0.03216552734375, -0.0034770965576171875, 0.0234527587890625, -0.07281494140625, -0.03326416015625, -0.003520965576171875, 0.0006275177001953125, 0.006153106689453125, 0.027923583984375, 0.038238525390625, -0.006847381591796875, -0.018035888671875, 0.03948974609375, -0.057098388671875, -0.044586181640625, 0.057373046875, -0.0221405029296875, -0.011077880859375, 0.0064697265625, 0.0014505386352539062, -0.00009202957153320312, 0.05706787109375, -0.0283050537109375, -0.00010251998901367188, -0.0139312744140625, 0.0180206298828125, -0.023712158203125, 0.0289306640625, -0.0215911865234375, -0.01335906982421875, -0.039794921875, -0.0252685546875, 0.0182037353515625, 0.04498291015625, 0.031707763671875, 0.032196044921875, 0.0114288330078125, -0.011016845703125, 0.01190185546875, -0.0142822265625, -0.0008687973022460938, 0.0301513671875, 0.0207977294921875, -0.0182952880859375, 0.022216796875, -0.017486572265625, 0.02197265625, 0.0185546875, 0.04119873046875, 0.004711151123046875, 0.033294677734375, -0.034881591796875, 0.016571044921875, 0.0254669189453125, 0.0073699951171875, 0.0185699462890625, -0.022308349609375, -0.0275115966796875, -0.011871337890625, 0.0008864402770996094, -0.03668212890625, -0.0216217041015625, -0.0004017353057861328, -0.00585174560546875, 0.00841522216796875, -0.060577392578125, -0.034332275390625, -0.03240966796875, 0.0029048919677734375, -0.032958984375, 0.0307159423828125, -0.0182037353515625, -0.037200927734375, -0.004123687744140625, -0.045928955078125, -0.06561279296875, 0.03955078125, 0.03131103515625, -0.027099609375, 0.00406646728515625, -0.027252197265625, -0.0304718017578125, -0.01324462890625, 0.048797607421875, 0.053619384765625, -0.053558349609375, -0.028656005859375, 0.06036376953125, 0.0528564453125, 0.10125732421875, 0.0266265869140625, -0.01184844970703125, 0.0118255615234375, 0.0118408203125, -0.0290069580078125, -0.0794677734375, 0.03643798828125, -0.095458984375, -0.014007568359375, -0.004230499267578125, 0.0297698974609375, 0.044281005859375, -0.0192108154296875, -0.0767822265625, 0.088623046875, -0.03192138671875, -0.02099609375, -0.064453125, 0.01132965087890625, 0.032928466796875, -0.052581787109375, -0.039276123046875, 0.01049041748046875, -0.054046630859375, -0.0036334991455078125, -0.0013980865478515625, -0.010223388671875, 0.033782958984375, -0.01104736328125, -0.0355224609375, -0.00644683837890625, -0.00923919677734375, -0.0146636962890625, -0.00464630126953125, -0.038177490234375, 0.0269927978515625, 0.0328369140625, -0.05401611328125, -0.03570556640625, 0.00656890869140625, 0.051849365234375, 0.0176849365234375, -0.0155029296875, -0.0516357421875, -0.0307769775390625, 0.0124969482421875, 0.036468505859375, 0.0184478759765625, -0.01233673095703125, -0.01629638671875, -0.01486968994140625, -0.04742431640625, -0.022979736328125, 0.0227203369140625, -0.040496826171875, 0.0103759765625, -0.0259552001953125, -0.0030536651611328125, -0.0300750732421875, 0.0022335052490234375, -0.0328369140625, -0.021148681640625, -0.01520538330078125, 0.00010436773300170898, -0.01509857177734375, 0.031646728515625, -0.0150604248046875, 0.0008807182312011719, 0.0163421630859375, -0.04656982421875, 0.010223388671875, 0.0018873214721679688, -0.035858154296875, 0.00687408447265625, 0.00028896331787109375, 0.0223541259765625, -0.005283355712890625, 0.038299560546875, -0.03619384765625, 0.042388916015625, 0.00141143798828125, -0.01100921630859375, 0.0228424072265625, 0.0015811920166015625, 0.0161590576171875, -0.004619598388671875, 0.03338623046875, 0.023773193359375, 0.01983642578125, 0.0181884765625, 0.02911376953125, -0.0005192756652832031, 0.057098388671875, 0.0090789794921875, -0.0394287109375, 0.029754638671875, -0.041717529296875, -0.01213836669921875, 0.03515625, -0.031280517578125, -0.0296630859375, 0.0215911865234375, 0.03546142578125, 0.00650787353515625, 0.0010156631469726562 ]
7bca4b7e84629fc99647eccf4259a1df4854874a
Wordpress Stackexchange Q: Getting only direct child pages in WordPress with get_pages I am trying to fetch all direct children of a page. But I am getting all children and grand children as well. Any ideas? PHP Source: $args = array( 'child_of' => $post->ID, 'parent ' => $post->ID, 'hierarchical' => 0, 'sort_column' => 'menu_order', 'sort_order' => 'asc' ); $mypages = get_pages( $args ); foreach( $mypages as $post ) { $post_tempalte = the_page_template_part(); get_template_part( 'content' , $post_tempalte ); } My $args should be correct according to the documentation, but it's totally ignoring parent and hierarchical. My page structure is as follows: Parent -Child 1 -Child 2 --Child 1 to child 2 --Child 2 to child 2 -Child 3 And I only want to get child 1, child 2 and child 3. A: With the parameter 'depth' of the "wp_list_pages" or the "get_pages" function, we can define how many levels do we want to retrieve. So here, I will display all the first child level of the current page. <?php global $post; wp_list_pages( array( 'child_of' => $post->ID, // Only pages that are children of the current page 'depth' => 1 , // Only show one level of hierarchy 'sort_order' => 'asc' )); ?>
Q: Getting only direct child pages in WordPress with get_pages I am trying to fetch all direct children of a page. But I am getting all children and grand children as well. Any ideas? PHP Source: $args = array( 'child_of' => $post->ID, 'parent ' => $post->ID, 'hierarchical' => 0, 'sort_column' => 'menu_order', 'sort_order' => 'asc' ); $mypages = get_pages( $args ); foreach( $mypages as $post ) { $post_tempalte = the_page_template_part(); get_template_part( 'content' , $post_tempalte ); } My $args should be correct according to the documentation, but it's totally ignoring parent and hierarchical. My page structure is as follows: Parent -Child 1 -Child 2 --Child 1 to child 2 --Child 2 to child 2 -Child 3 And I only want to get child 1, child 2 and child 3. A: With the parameter 'depth' of the "wp_list_pages" or the "get_pages" function, we can define how many levels do we want to retrieve. So here, I will display all the first child level of the current page. <?php global $post; wp_list_pages( array( 'child_of' => $post->ID, // Only pages that are children of the current page 'depth' => 1 , // Only show one level of hierarchy 'sort_order' => 'asc' )); ?> A: Please check the parameter 'parent'. It seems there is a space after the name.
wordpress
{ "language": "en", "length": 214, "provenance": "stackexchange_00019.jsonl.gz:426217", "question_score": "26", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74063" }
[ 0.0238800048828125, -0.01364898681640625, 0.01154327392578125, -0.02630615234375, -0.01039886474609375, -0.005031585693359375, 0.0094757080078125, -0.00821685791015625, -0.0033111572265625, 0.01068878173828125, -0.033416748046875, -0.007656097412109375, -0.04046630859375, -0.0196990966796875, -0.0174560546875, -0.05096435546875, 0.03985595703125, -0.037200927734375, 0.01026153564453125, -0.01258087158203125, 0.00240325927734375, -0.003631591796875, 0.059906005859375, 0.03619384765625, 0.0513916015625, -0.0209197998046875, -0.00901031494140625, -0.01512908935546875, 0.0253448486328125, -0.0367431640625, 0.0130462646484375, 0.0130157470703125, 0.024627685546875, -0.03533935546875, 0.034210205078125, -0.0548095703125, -0.017974853515625, -0.0172119140625, -0.00028443336486816406, 0.00644683837890625, 0.01197052001953125, -0.0016431808471679688, 0.0022144317626953125, 0.02337646484375, -0.050048828125, -0.014007568359375, -0.0006036758422851562, 0.0054931640625, 0.0206451416015625, -0.01209259033203125, 0.019073486328125, 0.0198516845703125, 0.02362060546875, 0.022125244140625, -0.015625, 0.013031005859375, 0.04937744140625, -0.0235748291015625, 0.039642333984375, -0.052337646484375, -0.044342041015625, -0.003040313720703125, 0.039215087890625, 0.016448974609375, -0.01074981689453125, 0.0240020751953125, -0.02752685546875, 0.00492095947265625, -0.060882568359375, -0.0283966064453125, 0.033477783203125, -0.059051513671875, 0.005214691162109375, -0.031463623046875, -0.01462554931640625, -0.0078277587890625, -0.00600433349609375, -0.0258636474609375, 0.0009474754333496094, 0.006114959716796875, -0.0361328125, -0.00026035308837890625, -0.0982666015625, 0.00830841064453125, -0.006000518798828125, 0.0247344970703125, -0.02191162109375, -0.01019287109375, -0.0213623046875, -0.009124755859375, -0.025848388671875, 0.0306396484375, 0.00405120849609375, -0.0086212158203125, -0.047271728515625, 0.003925323486328125, 0.049713134765625, 0.06927490234375, -0.0386962890625, 0.00801849365234375, -0.0224456787109375, -0.02349853515625, 0.0003447532653808594, -0.048370361328125, 0.026611328125, 0.0005297660827636719, -0.01036834716796875, -0.01088714599609375, 0.0689697265625, 0.046234130859375, -0.0016040802001953125, 0.09814453125, 0.016571044921875, -0.0032958984375, -0.01396942138671875, 0.00787353515625, -0.02838134765625, 0.017059326171875, 0.0091552734375, 0.01195526123046875, -0.0164947509765625, 0.003314971923828125, 0.00093841552734375, -0.010650634765625, 0.030914306640625, 0.0294952392578125, -0.00386810302734375, -0.0239715576171875, 0.0306854248046875, 0.003482818603515625, -0.040130615234375, 0.0110015869140625, 0.06610107421875, 0.030548095703125, 0.016448974609375, -0.009765625, -0.0231475830078125, -0.047332763671875, 0.01166534423828125, -0.017333984375, 0.0168914794921875, -0.026458740234375, 0.033355712890625, 0.01385498046875, -0.033935546875, 0.01389312744140625, 0.0093536376953125, 0.00962066650390625, -0.003765106201171875, -0.0149383544921875, -0.0380859375, -0.0008749961853027344, 0.032257080078125, 0.00017118453979492188, -0.024871826171875, -0.03302001953125, 0.00930023193359375, -0.032562255859375, -0.003665924072265625, -0.0452880859375, 0.01273345947265625, 0.01165771484375, 0.0236053466796875, -0.0175018310546875, -0.0556640625, -0.0164337158203125, -0.034271240234375, -0.025146484375, 0.01513671875, -0.02783203125, 0.038360595703125, -0.049224853515625, -0.0014190673828125, 0.00917816162109375, 0.01251983642578125, 0.033935546875, -0.03399658203125, -0.016326904296875, 0.03045654296875, 0.02105712890625, -0.01690673828125, -0.027435302734375, -0.02081298828125, 0.031280517578125, -0.042388916015625, 0.035736083984375, -0.0007572174072265625, 0.032318115234375, 0.00295257568359375, 0.0068359375, 0.030517578125, 0.02569580078125, -0.057891845703125, 0.039031982421875, 0.007106781005859375, -0.020904541015625, -0.019439697265625, 0.00508880615234375, -0.0078582763671875, -0.013946533203125, 0.004306793212890625, -0.0283660888671875, 0.013031005859375, 0.00933074951171875, -0.0186004638671875, -0.01189422607421875, -0.0013217926025390625, -0.0034122467041015625, 0.014984130859375, -0.00070953369140625, 0.0159454345703125, 0.0026035308837890625, -0.0187530517578125, -0.033782958984375, -0.04010009765625, 0.03326416015625, -0.01006317138671875, -0.00628662109375, -0.0081329345703125, -0.01666259765625, -0.007465362548828125, -0.020263671875, -0.0215606689453125, 0.0190887451171875, 0.106689453125, -0.0002834796905517578, -0.01522064208984375, -0.024017333984375, 0.080810546875, 0.0110321044921875, -0.087890625, 0.0257110595703125, 0.01959228515625, 0.0201416015625, -0.048126220703125, 0.0014190673828125, -0.0231781005859375, -0.012603759765625, 0.0014314651489257812, 0.033599853515625, 0.04150390625, 0.053131103515625, -0.005035400390625, -0.00936126708984375, 0.04913330078125, -0.1024169921875, -0.0352783203125, 0.0024623870849609375, -0.00791168212890625, 0.0526123046875, 0.017425537109375, 0.028594970703125, 0.007442474365234375, 0.0271759033203125, 0.0158233642578125, 0.03558349609375, 0.033660888671875, 0.0300750732421875, -0.0211334228515625, 0.009246826171875, 0.0101165771484375, -0.0294342041015625, -0.050140380859375, -0.00046062469482421875, 0.0159912109375, 0.000865936279296875, 0.026885986328125, 0.0177764892578125, -0.0221099853515625, -0.0205230712890625, 0.0200347900390625, 0.0182342529296875, 0.00016808509826660156, 0.0254058837890625, -0.0240936279296875, -0.016326904296875, -0.013458251953125, -0.001811981201171875, -0.00769805908203125, -0.00997161865234375, 0.0214385986328125, 0.0406494140625, 0.0379638671875, 0.002056121826171875, -0.007175445556640625, -0.0477294921875, 0.015594482421875, 0.052215576171875, -0.004322052001953125, 0.013885498046875, 0.0207672119140625, 0.06378173828125, -0.0086212158203125, 0.044708251953125, -0.0142364501953125, 0.0265350341796875, 0.01128387451171875, -0.0260162353515625, 0.04180908203125, -0.0244140625, 0.0288543701171875, 0.05780029296875, 0.003337860107421875, 0.0076904296875, -0.0120697021484375, 0.005977630615234375, -0.01247406005859375, -0.00836181640625, -0.01763916015625, -0.01311492919921875, -0.0223388671875, 0.03271484375, 0.0255126953125, 0.0809326171875, 0.003787994384765625, -0.040283203125, 0.01476287841796875, 0.044769287109375, -0.06011962890625, -0.09906005859375, 0.00568389892578125, -0.0802001953125, -0.0328369140625, -0.0234375, -0.048675537109375, 0.01279449462890625, -0.0019702911376953125, 0.0003681182861328125, 0.01313018798828125, -0.007488250732421875, -0.07769775390625, -0.019287109375, -0.06610107421875, 0.05438232421875, -0.01384735107421875, 0.025177001953125, 0.00011390447616577148, 0.0811767578125, 0.0161895751953125, -0.04522705078125, -0.0106964111328125, 0.0733642578125, -0.035430908203125, -0.0263671875, -0.01314544677734375, -0.0203704833984375, 0.005077362060546875, 0.0113677978515625, -0.0582275390625, -0.01396942138671875, 0.0266876220703125, -0.0188446044921875, -0.012908935546875, 0.00743865966796875, 0.009002685546875, -0.006755828857421875, 0.0239715576171875, 0.05706787109375, 0.0250396728515625, -0.01448822021484375, -0.0556640625, -0.01415252685546875, -0.06646728515625, 0.04193115234375, 0.064208984375, -0.007541656494140625, -0.0137786865234375, -0.00446319580078125, 0.017852783203125, 0.01273345947265625, 0.01200103759765625, -0.01219940185546875, 0.033905029296875, 0.005756378173828125, 0.01125335693359375, -0.014739990234375, 0.07916259765625, 0.01493072509765625, -0.0217437744140625, 0.0245513916015625, 0.01561737060546875, 0.006290435791015625, -0.028289794921875, -0.041473388671875, -0.046417236328125, 0.038970947265625, -0.00778961181640625, 0.003162384033203125, -0.0265045166015625, -0.01251220703125, 0.002056121826171875, 0.06646728515625, -0.05853271484375, -0.033050537109375, -0.032012939453125, 0.01776123046875, -0.0105133056640625, -0.05279541015625, -0.00952911376953125, -0.0171966552734375, -0.0242767333984375, -0.010650634765625, -0.004241943359375, -0.0195770263671875, 0.0024242401123046875, 0.027099609375, -0.0167236328125, -0.0123443603515625, 0.03216552734375, -0.0113983154296875, -0.0234527587890625, 0.0222015380859375, -0.0307464599609375, 0.005649566650390625, -0.017333984375, 0.0042572021484375, -0.093505859375, -0.0296478271484375, 0.046630859375, 0.042236328125, -0.0289306640625, -0.0284881591796875, -0.0250701904296875, 0.05963134765625, 0.01512908935546875, 0.04736328125, 0.000957489013671875, 0.00920867919921875, -0.0037517547607421875, -0.0175323486328125, 0.031982421875, -0.03564453125, -0.0305023193359375, -0.0304412841796875, 0.025299072265625, -0.0192718505859375, -0.041900634765625, -0.041839599609375, -0.048126220703125, 0.00011777877807617188, -0.0494384765625, -0.03985595703125, -0.0310516357421875, -0.00298309326171875, -0.0137939453125, 0.002346038818359375, -0.035186767578125, -0.0780029296875, 0.052215576171875, 0.029144287109375, -0.040435791015625, 0.006084442138671875, 0.04632568359375, 0.0179901123046875, -0.040924072265625, -0.07257080078125, -0.0240325927734375, 0.0019989013671875, -0.03759765625, 0.0589599609375, 0.010833740234375, -0.006969451904296875, 0.059234619140625, -0.02734375, 0.04534912109375, 0.0162200927734375, 0.03302001953125, -0.0009765625, -0.0219879150390625, 0.034423828125, 0.01085662841796875, -0.064208984375, 0.0312042236328125, -0.034271240234375, -0.017547607421875, -0.02362060546875, 0.05596923828125, -0.025848388671875, 0.0196533203125, -0.06524658203125, -0.04205322265625, 0.014892578125, 0.04437255859375, -0.005947113037109375, 0.0291748046875, -0.00974273681640625, 0.0423583984375, 0.002979278564453125, -0.0048828125, 0.047821044921875, 0.06585693359375, 0.0250701904296875, 0.051361083984375, -0.01412200927734375, -0.00612640380859375, -0.006122589111328125, -0.01324462890625, 0.0556640625, 0.01203155517578125, -0.048004150390625, 0.048187255859375, -0.022247314453125, 0.01145172119140625, 0.005634307861328125, 0.010162353515625, 0.036346435546875, 0.0189056396484375, -0.002445220947265625, -0.017303466796875, -0.01456451416015625, 0.0150604248046875, -0.042816162109375, 0.007610321044921875, 0.002002716064453125, -0.01558685302734375, -0.0274200439453125, 0.050048828125, 0.00429534912109375, 0.0084075927734375, -0.017791748046875, -0.0221099853515625, -0.0131683349609375, 0.0217437744140625, 0.0181121826171875, -0.00371551513671875, 0.0234222412109375, -0.0017442703247070312, 0.064697265625, -0.02099609375, -0.04034423828125, 0.043914794921875, 0.0386962890625, 0.0193328857421875, 0.005283355712890625, -0.02801513671875, -0.00174713134765625, -0.00959014892578125, 0.03643798828125, 0.0338134765625, 0.0112457275390625, -0.0347900390625, -0.019683837890625, 0.038421630859375, 0.01232147216796875, -0.025543212890625, 0.02410888671875, -0.033233642578125, -0.00310516357421875, 0.00939178466796875, -0.05096435546875, 0.02093505859375, 0.02899169921875, -0.0457763671875, -0.037872314453125, 0.0225677490234375, -0.0679931640625, -0.0205230712890625, -0.01000213623046875, -0.0270538330078125, -0.0008168220520019531, -0.0004963874816894531, 0.07098388671875, -0.0443115234375, -0.053955078125, -0.02288818359375, 0.00484466552734375, 0.037994384765625, 0.03692626953125, -0.0265655517578125, -0.00733184814453125, -0.045684814453125, -0.0258331298828125, -0.0134735107421875, -0.048858642578125, -0.050262451171875, -0.0106048583984375, -0.020599365234375, 0.021759033203125, 0.0033664703369140625, 0.034332275390625, -0.0179901123046875, 0.0220947265625, -0.01751708984375, 0.040924072265625, -0.00284576416015625, 0.09490966796875, -0.0421142578125, 0.026885986328125, 0.01204681396484375, 0.053375244140625, -0.0163116455078125, 0.00276947021484375, 0.041534423828125, -0.02734375, -0.03546142578125, -0.0160064697265625, -0.0404052734375, -0.046539306640625, -0.015655517578125, -0.0167999267578125, 0.014678955078125, -0.00812530517578125, 0.00798797607421875, -0.01300811767578125, -0.0220489501953125, -0.01099395751953125, -0.039825439453125, 0.0625, 0.0007219314575195312, -0.0283203125, -0.006710052490234375, -0.033721923828125, 0.0027866363525390625, 0.040771484375, -0.0040435791015625, -0.02618408203125, -0.008758544921875, 0.033172607421875, 0.061248779296875, 0.0288848876953125, 0.053131103515625, 0.01201629638671875, 0.042083740234375, -0.0021610260009765625, 0.0245361328125, 0.0242919921875, -0.00540924072265625, 0.05584716796875, 0.0032958984375, 0.0129852294921875, 0.0330810546875, -0.03515625, -0.01192474365234375, 0.0038890838623046875, 0.0162811279296875, -0.0104827880859375, 0.0101165771484375, 0.0152130126953125, -0.023834228515625, -0.0243072509765625, -0.0191192626953125, -0.000054895877838134766, -0.025390625, 0.01110076904296875, 0.0151519775390625, -0.037322998046875, -0.00324249267578125, -0.01027679443359375, -0.006847381591796875, -0.035491943359375, 0.0587158203125, 0.01336669921875, 0.025726318359375, -0.0011415481567382812, -0.0285491943359375, 0.0198974609375, -0.0254058837890625, 0.004474639892578125, -0.01557159423828125, -0.006656646728515625, -0.07830810546875, -0.008544921875, -0.0272369384765625, -0.0009255409240722656, 0.05645751953125, -0.0013818740844726562, -0.045928955078125, 0.053985595703125, -0.038177490234375, 0.0537109375, 0.0149383544921875, -0.06842041015625, -0.035369873046875, -0.01415252685546875, 0.027740478515625, -0.018280029296875, -0.06689453125, 0.018280029296875, -0.049896240234375, -0.01256561279296875, -0.0027179718017578125, 0.00482177734375, 0.0628662109375, -0.0218658447265625, -0.02386474609375, 0.0292816162109375, 0.007480621337890625, -0.012481689453125, 0.00478363037109375, 0.0258941650390625, -0.032562255859375, -0.0103302001953125, 0.012115478515625, 0.0111236572265625, -0.0281829833984375, -0.0099639892578125, -0.0665283203125, 0.08563232421875, -0.01544189453125, 0.0290374755859375, 0.01910400390625, 0.0276336669921875, -0.06378173828125, -0.0211944580078125, -0.042877197265625, 0.059173583984375, 0.060882568359375, 0.025482177734375, -0.059600830078125, -0.031768798828125, -0.00472259521484375, 0.0513916015625, 0.0293426513671875, 0.005268096923828125, -0.045654296875, -0.01065826416015625, 0.0234832763671875, 0.054290771484375, 0.0225067138671875, 0.04742431640625, -0.0005106925964355469, 0.021759033203125, 0.0214080810546875, -0.0577392578125, 0.02032470703125, -0.0226898193359375, -0.004405975341796875, 0.0325927734375, 0.0226287841796875, 0.0106658935546875, -0.0002963542938232422, -0.00966644287109375, -0.04510498046875, -0.0025882720947265625, 0.0228118896484375, -0.0093231201171875, 0.0005779266357421875, 0.026092529296875, 0.023681640625, -0.05126953125, -0.0487060546875, -0.0161590576171875, 0.039886474609375, -0.00022614002227783203, 0.007732391357421875, 0.03857421875, 0.031951904296875, -0.0037021636962890625, 0.006465911865234375, 0.016754150390625, 0.0284423828125, -0.03369140625, 0.0247039794921875, 0.0257720947265625, 0.0186309814453125, -0.0295257568359375, 0.0211639404296875, 0.055023193359375, 0.0355224609375, -0.05426025390625, -0.05926513671875, 0.00933837890625, 0.005245208740234375, 0.018890380859375, 0.016937255859375, 0.039886474609375, 0.027191162109375, 0.0732421875, -0.025360107421875, -0.03460693359375, -0.0004012584686279297, 0.0418701171875, -0.0019512176513671875, -0.035797119140625, 0.01422882080078125, -0.043670654296875, -0.0045013427734375, -0.0239715576171875, 0.01244354248046875, 0.01568603515625, 0.003696441650390625, 0.01146697998046875, -0.04071044921875, -0.007068634033203125, 0.010406494140625, 0.00720977783203125, -0.01904296875, -0.02044677734375, 0.0094451904296875, -0.01519775390625, -0.03759765625, 0.0186767578125, 0.005542755126953125, -0.0200347900390625, 0.024810791015625, 0.0291748046875, -0.039794921875, -0.0167999267578125, 0.0148162841796875, -0.0173492431640625, -0.023590087890625, -0.00968170166015625, -0.03582763671875, 0.00534820556640625, -0.0234375, 0.0234222412109375, 0.002056121826171875, 0.016754150390625, 0.02484130859375, 0.06610107421875, 0.007724761962890625, 0.02587890625, 0.0162353515625, 0.00890350341796875, 0.024688720703125, 0.039337158203125, -0.099853515625, -0.034332275390625, -0.01422882080078125, 0.01806640625, 0.030426025390625, 0.0292816162109375, 0.0023021697998046875, 0.003490447998046875, 0.033538818359375, -0.01520538330078125, -0.020355224609375, 0.0220184326171875, 0.0219573974609375, 0.0208282470703125, 0.003673553466796875, 0.0300750732421875, 0.037322998046875, 0.0257720947265625, 0.0295257568359375, 0.011444091796875, 0.030609130859375, 0.0609130859375, -0.01496124267578125, 0.010284423828125, -0.00855255126953125, 0.052215576171875, -0.049163818359375, -0.0355224609375, 0.08203125, -0.02398681640625, -0.00408935546875, -0.0061798095703125, -0.061676025390625, 0.0287933349609375, 0.035888671875, 0.0264892578125, 0.02081298828125, -0.020477294921875, 0.0241546630859375, -0.00836181640625, 0.01312255859375, -0.03277587890625, -0.0207061767578125, -0.056243896484375, -0.0276947021484375, 0.03692626953125, 0.0197296142578125, -0.0032711029052734375, 0.0400390625, 0.0114288330078125, -0.0516357421875, 0.03228759765625, -0.049163818359375, 0.0294189453125, 0.02178955078125, 0.04791259765625, -0.0238494873046875, 0.038787841796875, -0.010040283203125, 0.022064208984375, 0.02691650390625, 0.0254974365234375, 0.040740966796875, -0.0261993408203125, 0.0034656524658203125, 0.002056121826171875, 0.01141357421875, -0.0274200439453125, -0.0250244140625, 0.020050048828125, -0.00494384765625, -0.0292205810546875, -0.038299560546875, -0.0229949951171875, -0.02410888671875, 0.008880615234375, 0.0213775634765625, 0.01233673095703125, 0.002986907958984375, -0.005710601806640625, 0.0052947998046875, 0.016357421875, 0.02490234375, -0.05511474609375, 0.057342529296875, -0.01007843017578125, 0.00728607177734375, 0.004878997802734375, 0.02606201171875, 0.007007598876953125, -0.0239410400390625, -0.06396484375, 0.033935546875, -0.01395416259765625, -0.01561737060546875, 0.0233154296875, 0.014251708984375, 0.011322021484375, -0.0022754669189453125, 0.02996826171875, 0.043304443359375, 0.00875091552734375, 0.09271240234375, 0.00955963134765625, -0.0198516845703125, 0.00473785400390625, -0.0000947117805480957, -0.0027980804443359375, -0.0179595947265625, 0.031585693359375, -0.039825439453125, -0.031341552734375, 0.0196380615234375, 0.0239105224609375, 0.0670166015625, -0.01215362548828125, -0.045166015625, 0.08929443359375, -0.017242431640625, -0.038177490234375, 0.0018777847290039062, 0.014739990234375, -0.016357421875, 0.0051727294921875, 0.0175933837890625, -0.032012939453125, 0.00278472900390625, 0.01424407958984375, 0.0107574462890625, 0.0374755859375, 0.025482177734375, 0.01471710205078125, -0.037750244140625, -0.0050506591796875, -0.026275634765625, 0.0113067626953125, -0.0023517608642578125, 0.0151824951171875, 0.01067352294921875, 0.0242767333984375, -0.029052734375, 0.03955078125, 0.0128173828125, -0.0014438629150390625, 0.01861572265625, -0.005161285400390625, -0.04229736328125, -0.030548095703125, 0.04949951171875, 0.0069580078125, 0.0188751220703125, 0.006175994873046875, -0.0181732177734375, -0.01474761962890625, -0.052215576171875, -0.011627197265625, 0.033782958984375, -0.0628662109375, 0.0018262863159179688, 0.0011034011840820312, -0.021270751953125, 0.0196990966796875, -0.0160675048828125, -0.024566650390625, -0.01363372802734375, -0.01032257080078125, 0.00560760498046875, -0.0308685302734375, 0.012359619140625, 0.01473236083984375, -0.031768798828125, -0.0280303955078125, -0.0018548965454101562, 0.0030384063720703125, -0.0178070068359375, -0.0016193389892578125, -0.029388427734375, 0.06842041015625, -0.03216552734375, -0.0232391357421875, 0.0172576904296875, 0.0231170654296875, 0.008575439453125, 0.049560546875, -0.0340576171875, 0.00431060791015625, 0.005908966064453125, -0.0109710693359375, 0.0091400146484375, 0.040740966796875, 0.0152740478515625, 0.05413818359375, 0.02154541015625, 0.08966064453125, 0.0060882568359375, 0.044830322265625, 0.0095367431640625, -0.031890869140625, 0.01364898681640625, -0.035491943359375, -0.01264190673828125, -0.022735595703125, -0.05096435546875, -0.0511474609375, -0.006198883056640625, 0.0135040283203125, -0.03717041015625, 0.01263427734375 ]
5128bb6d1407fefa255c93d4a74f9b5c4146e3ae
Wordpress Stackexchange Q: Listen to Post action I am writing a plugin that adds a custom metabox to the post page. I would like to trigger an event when the user navigates away from the edit post page or when a user stops editing a specific post. Is there a way to listen to events on the post page? A: This is more of a JavaScript the A WordPress Question but anyway, You can use the JavaScript onbeforeunload event something like: <script type="text/javascript"> old = window.onbeforeunload; window.onbeforeunload = MyOnExit; function MyOnExit(){ //do your stuff here return old(); } </script>
Q: Listen to Post action I am writing a plugin that adds a custom metabox to the post page. I would like to trigger an event when the user navigates away from the edit post page or when a user stops editing a specific post. Is there a way to listen to events on the post page? A: This is more of a JavaScript the A WordPress Question but anyway, You can use the JavaScript onbeforeunload event something like: <script type="text/javascript"> old = window.onbeforeunload; window.onbeforeunload = MyOnExit; function MyOnExit(){ //do your stuff here return old(); } </script>
wordpress
{ "language": "en", "length": 97, "provenance": "stackexchange_00019.jsonl.gz:426219", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74065" }
[ 0.054595947265625, -0.0156097412109375, 0.0226898193359375, -0.0141143798828125, -0.011505126953125, -0.0115814208984375, 0.0256500244140625, -0.0379638671875, 0.0283355712890625, 0.01377105712890625, 0.00839996337890625, -0.0186004638671875, -0.0020961761474609375, -0.05035400390625, -0.007511138916015625, -0.01904296875, 0.055419921875, -0.0165863037109375, 0.046722412109375, -0.0031833648681640625, -0.01107025146484375, 0.030609130859375, 0.0552978515625, 0.0208282470703125, 0.025054931640625, 0.0552978515625, 0.0645751953125, -0.01080322265625, 0.03607177734375, 0.0208892822265625, 0.0400390625, -0.084228515625, -0.00708770751953125, 0.0751953125, -0.05401611328125, -0.01085662841796875, -0.029754638671875, 0.048309326171875, 0.0200653076171875, 0.005870819091796875, 0.02001953125, -0.017974853515625, -0.0102691650390625, 0.012908935546875, -0.0097808837890625, -0.04351806640625, 0.032928466796875, -0.06182861328125, 0.020965576171875, -0.00849151611328125, -0.007434844970703125, 0.0096282958984375, 0.00708770751953125, -0.026092529296875, -0.01284027099609375, -0.0013132095336914062, -0.03802490234375, 0.042327880859375, 0.02227783203125, 0.042144775390625, -0.0031280517578125, -0.000980377197265625, -0.015350341796875, -0.041900634765625, -0.016998291015625, -0.012115478515625, -0.0011615753173828125, -0.00592803955078125, -0.033233642578125, -0.0102691650390625, 0.033843994140625, -0.0149383544921875, -0.0033817291259765625, 0.001678466796875, 0.007049560546875, -0.0280914306640625, 0.0213623046875, -0.0189361572265625, -0.0020923614501953125, 0.031951904296875, -0.003978729248046875, 0.024871826171875, -0.00499725341796875, -0.06719970703125, 0.0163726806640625, -0.03271484375, -0.0242919921875, 0.00405120849609375, -0.058197021484375, -0.05859375, -0.037689208984375, -0.0107269287109375, -0.07489013671875, -0.028961181640625, -0.0300445556640625, -0.018951416015625, 0.004558563232421875, 0.0089263916015625, -0.0285186767578125, -0.0287628173828125, -0.0194854736328125, -0.01470947265625, -0.039520263671875, 0.0047607421875, 0.004482269287109375, 0.0699462890625, 0.019775390625, -0.002796173095703125, 0.02252197265625, -0.00638580322265625, 0.004962921142578125, -0.01248931884765625, 0.00852203369140625, 0.049713134765625, -0.042388916015625, -0.034149169921875, -0.040008544921875, 0.006847381591796875, -0.039031982421875, 0.01346588134765625, 0.008819580078125, 0.021148681640625, -0.015106201171875, -0.046112060546875, 0.0516357421875, 0.00406646728515625, -0.037750244140625, 0.0060882568359375, 0.034423828125, 0.0243682861328125, -0.03515625, -0.002353668212890625, 0.0305328369140625, 0.01288604736328125, 0.0037555694580078125, -0.025482177734375, 0.04656982421875, 0.01751708984375, -0.0024700164794921875, 0.00458526611328125, -0.0121612548828125, -0.0299224853515625, -0.0193634033203125, -0.00475311279296875, -0.014678955078125, 0.0100860595703125, 0.0010499954223632812, 0.019317626953125, 0.0047454833984375, -0.045867919921875, 0.0158843994140625, -0.00620269775390625, 0.0247650146484375, 0.010986328125, -0.0266876220703125, -0.042327880859375, 0.0292205810546875, -0.04229736328125, 0.0201873779296875, -0.061676025390625, 0.01258087158203125, 0.00707244873046875, 0.03436279296875, -0.051025390625, -0.056610107421875, -0.0194091796875, -0.0675048828125, -0.022918701171875, 0.0202178955078125, 0.01090240478515625, 0.0157012939453125, 0.0025196075439453125, -0.01020050048828125, 0.0160980224609375, 0.01010894775390625, 0.0096588134765625, -0.007160186767578125, -0.002307891845703125, 0.0186614990234375, 0.013824462890625, -0.00681304931640625, -0.0213165283203125, 0.058441162109375, -0.00661468505859375, -0.0073089599609375, 0.050201416015625, 0.0267333984375, 0.03271484375, -0.03533935546875, 0.01483154296875, 0.031402587890625, 0.064453125, 0.000675201416015625, 0.0012941360473632812, 0.006664276123046875, -0.043060302734375, 0.03265380859375, 0.0004870891571044922, 0.0005016326904296875, 0.00011211633682250977, -0.026702880859375, 0.0084991455078125, -0.0211944580078125, -0.00043892860412597656, -0.05828857421875, 0.005176544189453125, -0.029754638671875, 0.05126953125, 0.03753662109375, 0.0227203369140625, -0.0171356201171875, -0.0165557861328125, 0.003696441650390625, -0.0037078857421875, -0.0122222900390625, 0.01506805419921875, -0.00847625732421875, 0.01467132568359375, 0.00896453857421875, 0.0281982421875, -0.008056640625, 0.0227813720703125, -0.0302581787109375, -0.021514892578125, 0.0252532958984375, -0.00395965576171875, -0.0216827392578125, 0.002178192138671875, -0.00911712646484375, 0.01885986328125, -0.0364990234375, 0.0251312255859375, -0.01110076904296875, -0.0283355712890625, -0.03533935546875, -0.01352691650390625, -0.01446533203125, -0.07928466796875, 0.0152130126953125, 0.07525634765625, 0.0221099853515625, 0.0022678375244140625, 0.00897979736328125, 0.051788330078125, 0.01824951171875, -0.022705078125, 0.00914764404296875, 0.01861572265625, 0.0167694091796875, 0.0518798828125, -0.05145263671875, 0.004482269287109375, 0.03680419921875, -0.023529052734375, -0.0175018310546875, 0.060333251953125, -0.0227508544921875, -0.005580902099609375, -0.0016765594482421875, -0.0012407302856445312, -0.004138946533203125, -0.02935791015625, -0.01197052001953125, -0.027252197265625, 0.032623291015625, -0.022552490234375, 0.024078369140625, 0.0211944580078125, 0.006984710693359375, -0.0012426376342773438, 0.0083770751953125, -0.0491943359375, 0.0013933181762695312, 0.03277587890625, 0.04364013671875, 0.034698486328125, -0.04229736328125, -0.0173492431640625, 0.029754638671875, 0.033843994140625, -0.01763916015625, 0.0199432373046875, -0.045440673828125, -0.016571044921875, 0.0017375946044921875, -0.03192138671875, -0.023040771484375, -0.0321044921875, 0.054534912109375, 0.0236968994140625, 0.04364013671875, 0.0089569091796875, -0.0077667236328125, 0.0341796875, 0.053192138671875, -0.04205322265625, 0.0046539306640625, -0.02117919921875, 0.0182952880859375, -0.0211334228515625, 0.044921875, 0.057647705078125, -0.007061004638671875, 0.016571044921875, -0.0003032684326171875, 0.0258331298828125, 0.0005030632019042969, 0.041778564453125, -0.0031642913818359375, -0.01953125, -0.076416015625, -0.06475830078125, 0.01085662841796875, 0.002208709716796875, -0.00029659271240234375, -0.0203857421875, -0.0081634521484375, 0.001434326171875, -0.051483154296875, -0.01052093505859375, 0.00548553466796875, -0.12371826171875, 0.035308837890625, -0.03033447265625, -0.0574951171875, -0.02459716796875, 0.033935546875, 0.0277099609375, -0.06427001953125, 0.0125579833984375, -0.00011807680130004883, -0.05023193359375, -0.045257568359375, -0.007518768310546875, 0.006603240966796875, 0.0309600830078125, -0.007511138916015625, 0.049530029296875, -0.0181427001953125, -0.05377197265625, -0.026336669921875, -0.03753662109375, -0.00547027587890625, -0.006927490234375, -0.0185394287109375, -0.02880859375, 0.0161285400390625, -0.005840301513671875, -0.004848480224609375, -0.00909423828125, 0.01049041748046875, -0.004306793212890625, -0.0031757354736328125, 0.00676727294921875, 0.0137939453125, -0.004749298095703125, 0.0004291534423828125, 0.019989013671875, 0.0279083251953125, -0.038177490234375, 0.046661376953125, -0.01142120361328125, -0.0182037353515625, -0.08551025390625, 0.0116729736328125, -0.00905609130859375, -0.04107666015625, -0.019500732421875, 0.044464111328125, 0.0217132568359375, 0.03680419921875, 0.01189422607421875, 0.0203399658203125, -0.0166168212890625, 0.01200103759765625, -0.056793212890625, -0.0137176513671875, -0.0198516845703125, 0.0243377685546875, -0.020172119140625, 0.01568603515625, -0.036041259765625, 0.027587890625, -0.0831298828125, -0.04583740234375, 0.036712646484375, 0.01143646240234375, -0.02349853515625, -0.0102386474609375, -0.0214691162109375, 0.011688232421875, 0.05853271484375, -0.04254150390625, -0.01053619384765625, 0.0012235641479492188, -0.0145111083984375, 0.0101776123046875, 0.0018100738525390625, -0.0498046875, -0.014739990234375, -0.045135498046875, 0.01503753662109375, 0.0148162841796875, -0.017120361328125, -0.02130126953125, 0.06463623046875, -0.033843994140625, -0.0124359130859375, 0.0281829833984375, -0.07867431640625, 0.02972412109375, 0.004932403564453125, 0.048614501953125, -0.0645751953125, 0.00925445556640625, -0.056793212890625, -0.0421142578125, -0.006195068359375, -0.021209716796875, 0.028350830078125, 0.0230712890625, -0.0180206298828125, -0.00580596923828125, 0.0221099853515625, 0.047821044921875, 0.0262451171875, -0.0025997161865234375, -0.03350830078125, 0.0087738037109375, -0.017669677734375, 0.0258331298828125, -0.020538330078125, -0.01219940185546875, 0.01299285888671875, -0.01111602783203125, 0.019256591796875, -0.0189361572265625, -0.0438232421875, 0.01294708251953125, -0.03204345703125, -0.053802490234375, -0.033203125, -0.032073974609375, 0.0193939208984375, -0.0202789306640625, -0.01491546630859375, -0.039764404296875, -0.0628662109375, -0.0226898193359375, -0.0159149169921875, -0.0107421875, 0.0149078369140625, 0.02838134765625, 0.037200927734375, 0.0115966796875, 0.03521728515625, -0.01476287841796875, 0.023162841796875, 0.0103302001953125, 0.03851318359375, 0.01861572265625, -0.018524169921875, 0.06292724609375, 0.01039886474609375, -0.016021728515625, -0.059295654296875, 0.078125, 0.00901031494140625, -0.005588531494140625, 0.0136260986328125, -0.011199951171875, 0.04315185546875, -0.0152435302734375, -0.03253173828125, 0.000762939453125, -0.0027637481689453125, 0.02001953125, -0.04803466796875, 0.07098388671875, 0.01020050048828125, -0.0011425018310546875, -0.002605438232421875, -0.044525146484375, 0.055633544921875, 0.0293121337890625, -0.0216827392578125, 0.0174560546875, 0.0252838134765625, -0.006244659423828125, -0.031982421875, 0.0113067626953125, -0.036895751953125, 0.019134521484375, 0.0003361701965332031, -0.01271820068359375, -0.03515625, -0.003459930419921875, 0.0465087890625, 0.00023484230041503906, -0.0438232421875, -0.018646240234375, -0.004512786865234375, -0.00960540771484375, 0.00811004638671875, -0.039520263671875, 0.031982421875, 0.0704345703125, -0.0152435302734375, -0.004886627197265625, 0.0158843994140625, 0.006694793701171875, -0.04315185546875, 0.0029354095458984375, 0.00681304931640625, -0.0129241943359375, -0.01318359375, 0.0687255859375, -0.0092010498046875, 0.0192413330078125, -0.005619049072265625, 0.03814697265625, -0.00791168212890625, 0.079345703125, 0.0247344970703125, -0.055511474609375, -0.014617919921875, 0.05938720703125, -0.04046630859375, -0.03460693359375, -0.023529052734375, 0.0278472900390625, 0.046630859375, 0.025146484375, 0.01430511474609375, -0.005176544189453125, -0.01515960693359375, -0.023040771484375, 0.041656494140625, 0.037017822265625, -0.059234619140625, -0.006259918212890625, 0.0197906494140625, 0.00882720947265625, -0.00838470458984375, -0.004085540771484375, -0.006168365478515625, -0.01776123046875, 0.0257568359375, -0.051849365234375, -0.00800323486328125, 0.017913818359375, 0.0161895751953125, -0.01486968994140625, -0.0177764892578125, 0.038421630859375, -0.061798095703125, 0.007297515869140625, -0.0347900390625, -0.020751953125, 0.031646728515625, 0.018768310546875, -0.0080108642578125, -0.015777587890625, 0.01015472412109375, 0.001773834228515625, -0.0088958740234375, 0.0364990234375, -0.03240966796875, -0.027923583984375, -0.003215789794921875, -0.047760009765625, -0.0184478759765625, -0.032257080078125, -0.05987548828125, -0.033203125, -0.01885986328125, -0.0061798095703125, 0.0228271484375, -0.0098419189453125, 0.01456451416015625, 0.019744873046875, 0.0186920166015625, -0.0258331298828125, 0.059539794921875, -0.01824951171875, 0.07647705078125, 0.0028476715087890625, 0.0711669921875, 0.00617218017578125, 0.01947021484375, -0.050506591796875, -0.01050567626953125, 0.0162811279296875, 0.00887298583984375, -0.006855010986328125, -0.0290374755859375, 0.0379638671875, -0.0270843505859375, 0.0019855499267578125, -0.0158233642578125, -0.039276123046875, -0.02349853515625, 0.0018978118896484375, -0.040802001953125, 0.061553955078125, -0.0183258056640625, -0.03826904296875, -0.0038776397705078125, -0.022430419921875, -0.00499725341796875, -0.0148162841796875, 0.01055145263671875, 0.03228759765625, -0.017974853515625, 0.01424407958984375, -0.004100799560546875, -0.03759765625, 0.0230865478515625, 0.04266357421875, 0.00547027587890625, 0.050018310546875, -0.0225830078125, 0.0201263427734375, 0.046234130859375, -0.000164031982421875, 0.00821685791015625, 0.00693511962890625, 0.0565185546875, 0.0010986328125, -0.022979736328125, 0.027618408203125, -0.0236358642578125, 0.01229095458984375, 0.0029964447021484375, 0.04583740234375, -0.060882568359375, 0.040863037109375, 0.0294647216796875, 0.00334930419921875, 0.0011110305786132812, -0.0137481689453125, 0.00792694091796875, 0.0167999267578125, 0.03851318359375, 0.00916290283203125, -0.005451202392578125, 0.037384033203125, 0.0059661865234375, -0.0022296905517578125, -0.0325927734375, 0.004421234130859375, -0.0012493133544921875, -0.047454833984375, 0.03692626953125, 0.039276123046875, 0.006549835205078125, -0.025665283203125, -0.0184783935546875, 0.0145263671875, -0.04144287109375, -0.04913330078125, 0.0161895751953125, -0.006744384765625, 0.006107330322265625, 0.01001739501953125, 0.01447296142578125, 0.0276641845703125, 0.0452880859375, -0.0069427490234375, -0.0079345703125, 0.0147857666015625, 0.006496429443359375, -0.058685302734375, -0.03204345703125, 0.00640869140625, 0.0242767333984375, -0.055816650390625, 0.0362548828125, -0.02532958984375, -0.006687164306640625, 0.005947113037109375, 0.0027828216552734375, 0.0545654296875, -0.04156494140625, -0.025787353515625, 0.0203704833984375, -0.011383056640625, 0.002197265625, -0.005641937255859375, -0.04119873046875, -0.05224609375, -0.0162200927734375, -0.0477294921875, -0.06903076171875, 0.034881591796875, -0.033203125, -0.04217529296875, 0.06170654296875, 0.00978851318359375, -0.007068634033203125, -0.0133056640625, 0.040191650390625, -0.01544952392578125, 0.0186004638671875, -0.068115234375, 0.06243896484375, -0.042083740234375, 0.073974609375, -0.06573486328125, 0.011993408203125, 0.0035343170166015625, -0.0007839202880859375, 0.032928466796875, 0.00951385498046875, -0.0150604248046875, -0.0222320556640625, -0.0098114013671875, 0.01151275634765625, -0.0129547119140625, 0.027557373046875, 0.02606201171875, 0.034149169921875, 0.041259765625, -0.018402099609375, 0.030548095703125, -0.034698486328125, -0.0009670257568359375, 0.038238525390625, -0.021270751953125, -0.051910400390625, -0.0164947509765625, 0.04473876953125, 0.00011754035949707031, -0.022186279296875, -0.021881103515625, -0.00861358642578125, 0.0120849609375, 0.036895751953125, 0.07525634765625, -0.07061767578125, -0.043853759765625, -0.0214080810546875, 0.046783447265625, 0.0284576416015625, -0.0135498046875, 0.004253387451171875, 0.0209503173828125, -0.050933837890625, -0.020843505859375, -0.0235595703125, 0.006107330322265625, -0.0165863037109375, 0.080810546875, 0.0162811279296875, 0.003955841064453125, -0.050994873046875, 0.03106689453125, 0.035369873046875, 0.075439453125, -0.059906005859375, -0.02960205078125, 0.01812744140625, 0.0177154541015625, 0.0302276611328125, 0.00397491455078125, 0.0526123046875, -0.03314208984375, -0.002300262451171875, 0.0002872943878173828, 0.01214599609375, 0.00249481201171875, -0.0011911392211914062, 0.00983428955078125, 0.067138671875, -0.0440673828125, 0.02337646484375, 0.0149688720703125, -0.02459716796875, -0.017333984375, -0.050689697265625, 0.012451171875, -0.0232696533203125, 0.04840087890625, 0.052886962890625, 0.005329132080078125, 0.01187896728515625, -0.0164337158203125, 0.004474639892578125, -0.0168914794921875, -0.042694091796875, -0.0014944076538085938, 0.041351318359375, 0.0384521484375, 0.05389404296875, 0.0738525390625, 0.0266265869140625, -0.03192138671875, 0.01345062255859375, 0.0260772705078125, -0.036224365234375, 0.0021495819091796875, -0.03594970703125, 0.046417236328125, 0.0236968994140625, 0.0242767333984375, -0.026458740234375, 0.0222625732421875, 0.041229248046875, -0.0102691650390625, 0.0259857177734375, 0.00262451171875, -0.01409912109375, 0.040802001953125, -0.0018358230590820312, 0.048126220703125, 0.01323699951171875, -0.03973388671875, 0.01030731201171875, -0.033050537109375, -0.0599365234375, 0.039703369140625, 0.04486083984375, -0.038238525390625, 0.04315185546875, -0.0177001953125, 0.024169921875, 0.01371002197265625, -0.0245361328125, -0.0196685791015625, 0.047943115234375, 0.042755126953125, 0.00725555419921875, -0.03338623046875, -0.03338623046875, -0.0224761962890625, 0.042633056640625, 0.02532958984375, 0.0249786376953125, 0.007610321044921875, 0.0479736328125, 0.021087646484375, 0.02410888671875, -0.0118865966796875, 0.02117919921875, -0.0168304443359375, -0.0048980712890625, 0.0216522216796875, -0.0009417533874511719, -0.052825927734375, 0.042022705078125, -0.007389068603515625, -0.0015869140625, 0.044525146484375, -0.0202484130859375, 0.0005664825439453125, -0.0008974075317382812, -0.004291534423828125, -0.030670166015625, 0.00807952880859375, 0.01012420654296875, -0.0289154052734375, 0.0204925537109375, 0.0119476318359375, 0.040252685546875, 0.037933349609375, -0.004680633544921875, 0.036651611328125, -0.023101806640625, 0.006519317626953125, -0.0430908203125, 0.0216217041015625, -0.05621337890625, 0.040069580078125, -0.0103912353515625, -0.0235443115234375, 0.037994384765625, -0.00479888916015625, -0.010986328125, 0.00797271728515625, 0.00783538818359375, -0.00518798828125, -0.031646728515625, 0.01027679443359375, -0.010223388671875, -0.029571533203125, -0.0122528076171875, 0.01059722900390625, -0.0207977294921875, -0.040283203125, -0.01934814453125, -0.040985107421875, 0.0114288330078125, 0.0311737060546875, -0.00786590576171875, -0.0006303787231445312, -0.04376220703125, -0.0291595458984375, 0.010894775390625, 0.006282806396484375, -0.059722900390625, 0.0149688720703125, -0.0030364990234375, 0.01099395751953125, -0.0276641845703125, 0.0174102783203125, -0.0186004638671875, 0.01763916015625, -0.031982421875, -0.04071044921875, -0.0254669189453125, 0.038604736328125, -0.03070068359375, 0.0211181640625, 0.0673828125, -0.035888671875, -0.08551025390625, -0.0264129638671875, 0.011383056640625, 0.0207061767578125, 0.035369873046875, -0.02178955078125, -0.02362060546875, 0.045867919921875, 0.031585693359375, -0.0261688232421875, -0.0203094482421875, 0.04351806640625, -0.00010347366333007812, 0.0218353271484375, -0.0035228729248046875, 0.046417236328125, -0.01074981689453125, -0.059661865234375, 0.0625, -0.0003314018249511719, -0.0243988037109375, -0.053009033203125, 0.022369384765625, 0.039276123046875, -0.0279388427734375, -0.023162841796875, -0.009368896484375, -0.05572509765625, -0.01206207275390625, 0.0157623291015625, -0.02996826171875, 0.0487060546875, 0.0011281967163085938, -0.07550048828125, -0.0032501220703125, -0.005340576171875, -0.01239013671875, -0.01023101806640625, -0.01253509521484375, 0.01131439208984375, 0.02325439453125, -0.0443115234375, -0.017303466796875, 0.006389617919921875, 0.0213470458984375, 0.00447845458984375, -0.042724609375, -0.029052734375, -0.01519012451171875, 0.0645751953125, 0.0220184326171875, 0.0236053466796875, -0.041412353515625, -0.012298583984375, -0.0711669921875, -0.0195770263671875, -0.0223236083984375, 0.0037899017333984375, -0.041351318359375, 0.0284423828125, 0.005908966064453125, -0.0244598388671875, -0.00904083251953125, 0.0130462646484375, -0.038543701171875, 0.01256561279296875, 0.012603759765625, -0.0176239013671875, -0.034698486328125, -0.03192138671875, 0.07366943359375, -0.046630859375, 0.0049896240234375, 0.052215576171875, 0.0096435546875, 0.0499267578125, 0.07977294921875, 0.0224609375, 0.0181732177734375, -0.038055419921875, 0.0167388916015625, 0.00354766845703125, 0.016571044921875, -0.03985595703125, -0.0194549560546875, -0.0158538818359375, 0.0251007080078125, 0.007747650146484375, 0.0401611328125, -0.0161285400390625, -0.0173187255859375, -0.009613037109375, 0.0088348388671875, -0.0268707275390625, -0.042205810546875, -0.0192718505859375, 0.005886077880859375, -0.0068817138671875, -0.0055999755859375, 0.06170654296875, -0.05877685546875, 0.0017480850219726562, -0.0250244140625, -0.038543701171875, -0.07440185546875, 0.01509857177734375, 0.04632568359375, -0.0062103271484375, 0.019744873046875 ]
36fef337485e574a1068d23ff63a9a32e6f83027
Wordpress Stackexchange Q: How to store foreign language characters in WordPress? I am building a membership site in WordPress. I have added a Notes functionality on my site where each unique user can login to the site and enter notes specific to each lesson/post. I am storing these notes in a custom table in db. The user can enter the notes in any preferred language rather than just using English language for entering Notes. Now, the problem is notes are not getting stored properly in db if the user enters it in some other language. For example, if the user enters some characters in Russian language, it gets converted into this form %u0414%u0440%u0435%u0432%u043D%u0435%u0440%u0443%u0441%u0441%u043A%u0438%u0439 %u043B%u0438%u0442%u0435%u0440%u0430%u0442%u0443%u0440%u043D%u044B%u0439 %u044F%u0437%u044B%u043A %u0438 %u0435%u0433%u043E I am using the following query for inserting the data in the custom table: <?php $wpdb->insert( 'wp_notes', array( 'userid' => $_POST['userid'], 'postid' => $_POST['postid'], 'note' => ''. stripslashes($_POST['notes']) .'', 'title' => ''. stripslashes($_POST['title']) .'' ), array( '%d', '%d','%s','%s' ) ); ?> I am already using a meta tag for charset utf-8 and my db is also set to utf8_general_ci Collation. Any help will be appreciated.
Q: How to store foreign language characters in WordPress? I am building a membership site in WordPress. I have added a Notes functionality on my site where each unique user can login to the site and enter notes specific to each lesson/post. I am storing these notes in a custom table in db. The user can enter the notes in any preferred language rather than just using English language for entering Notes. Now, the problem is notes are not getting stored properly in db if the user enters it in some other language. For example, if the user enters some characters in Russian language, it gets converted into this form %u0414%u0440%u0435%u0432%u043D%u0435%u0440%u0443%u0441%u0441%u043A%u0438%u0439 %u043B%u0438%u0442%u0435%u0440%u0430%u0442%u0443%u0440%u043D%u044B%u0439 %u044F%u0437%u044B%u043A %u0438 %u0435%u0433%u043E I am using the following query for inserting the data in the custom table: <?php $wpdb->insert( 'wp_notes', array( 'userid' => $_POST['userid'], 'postid' => $_POST['postid'], 'note' => ''. stripslashes($_POST['notes']) .'', 'title' => ''. stripslashes($_POST['title']) .'' ), array( '%d', '%d','%s','%s' ) ); ?> I am already using a meta tag for charset utf-8 and my db is also set to utf8_general_ci Collation. Any help will be appreciated.
wordpress
{ "language": "en", "length": 180, "provenance": "stackexchange_00019.jsonl.gz:426241", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74150" }
[ 0.058624267578125, -0.0272064208984375, 0.028076171875, -0.0201416015625, -0.0094146728515625, -0.0186767578125, 0.03643798828125, -0.0213623046875, 0.0198211669921875, 0.030792236328125, -0.0222015380859375, -0.0311737060546875, 0.0087127685546875, -0.023529052734375, -0.03521728515625, -0.0296783447265625, 0.03466796875, -0.011383056640625, 0.0384521484375, -0.004169464111328125, -0.01001739501953125, 0.006328582763671875, 0.0419921875, -0.0347900390625, 0.0321044921875, -0.0316162109375, 0.04608154296875, -0.01009368896484375, 0.0228729248046875, -0.006061553955078125, 0.028564453125, 0.0015306472778320312, 0.018310546875, 0.0197296142578125, -0.0164794921875, 0.0247955322265625, 0.039520263671875, -0.002620697021484375, 0.009063720703125, 0.0239105224609375, 0.0216522216796875, -0.027618408203125, -0.0025959014892578125, 0.0340576171875, -0.0009183883666992188, -0.0750732421875, 0.061920166015625, -0.030426025390625, 0.0361328125, -0.0221405029296875, 0.0171966552734375, 0.035064697265625, 0.0237884521484375, 0.0015020370483398438, -0.0164031982421875, 0.01947021484375, -0.033782958984375, 0.004894256591796875, 0.00897216796875, 0.0533447265625, 0.01387786865234375, -0.004146575927734375, -0.01250457763671875, -0.0195770263671875, -0.01654052734375, -0.0007996559143066406, 0.0491943359375, 0.0005841255187988281, -0.02081298828125, -0.00988006591796875, 0.0095672607421875, 0.0120086669921875, 0.006656646728515625, -0.022430419921875, -0.0189971923828125, 0.0498046875, 0.0012226104736328125, 0.0165557861328125, 0.0096588134765625, -0.004337310791015625, 0.0115509033203125, 0.004680633544921875, 0.0011844635009765625, -0.044677734375, 0.003803253173828125, -0.008819580078125, -0.0277252197265625, -0.00342559814453125, -0.025970458984375, -0.0136566162109375, -0.0158843994140625, -0.00896453857421875, -0.05279541015625, 0.037078857421875, 0.0112152099609375, 0.00012242794036865234, -0.025726318359375, -0.0019292831420898438, -0.037384033203125, 0.00682830810546875, 0.00534820556640625, -0.0264892578125, 0.028839111328125, -0.032318115234375, 0.0147857666015625, -0.001068115234375, -0.01702880859375, -0.034698486328125, 0.019561767578125, 0.0231781005859375, -0.00917816162109375, -0.010650634765625, -0.0205535888671875, -0.062469482421875, 0.0142822265625, 0.0810546875, 0.0108184814453125, 0.0142364501953125, 0.01100921630859375, 0.01215362548828125, 0.0109405517578125, 0.0219268798828125, -0.034942626953125, -0.038848876953125, 0.00921630859375, -0.037506103515625, -0.027130126953125, 0.02789306640625, -0.063720703125, 0.07659912109375, -0.032989501953125, -0.00968170166015625, 0.0731201171875, 0.03717041015625, -0.0210113525390625, -0.048370361328125, 0.0087890625, -0.007045745849609375, -0.011322021484375, 0.007068634033203125, -0.030517578125, -0.0261688232421875, 0.040679931640625, -0.01922607421875, -0.021636962890625, 0.0168304443359375, 0.002727508544921875, 0.0098724365234375, 0.00952911376953125, -0.07763671875, -0.00691986083984375, -0.03472900390625, 0.03900146484375, -0.01422882080078125, -0.06256103515625, -0.034637451171875, -0.0291900634765625, -0.0112762451171875, -0.005298614501953125, -0.036712646484375, -0.02301025390625, -0.0276947021484375, 0.00736236572265625, -0.04718017578125, -0.0654296875, 0.032073974609375, -0.00022149085998535156, 0.004085540771484375, 0.0213775634765625, 0.0149688720703125, 0.007049560546875, 0.00862884521484375, 0.03125, -0.00876617431640625, -0.01641845703125, -0.00048065185546875, 0.0017671585083007812, -0.0188751220703125, 0.00980377197265625, 0.06134033203125, 0.025054931640625, -0.028106689453125, 0.0286102294921875, -0.01412200927734375, -0.025360107421875, 0.016143798828125, 0.006885528564453125, 0.06878662109375, 0.044342041015625, 0.016448974609375, -0.054473876953125, -0.0019464492797851562, -0.015411376953125, -0.00887298583984375, -0.025390625, -0.0251922607421875, 0.019622802734375, 0.01470184326171875, -0.011138916015625, 0.029388427734375, -0.004955291748046875, 0.01369476318359375, 0.00598907470703125, 0.009552001953125, -0.02032470703125, 0.00937652587890625, -0.0255584716796875, 0.030609130859375, 0.003971099853515625, 0.0199127197265625, 0.0138397216796875, 0.022857666015625, -0.044769287109375, 0.027008056640625, -0.01345062255859375, 0.018035888671875, 0.0099945068359375, 0.04461669921875, 0.005367279052734375, 0.033966064453125, 0.0095062255859375, -0.035614013671875, 0.0014190673828125, -0.0099639892578125, -0.01378631591796875, -0.0295562744140625, 0.007659912109375, 0.0013332366943359375, 0.0273895263671875, -0.01049041748046875, 0.0721435546875, 0.023040771484375, 0.023468017578125, -0.00717926025390625, -0.042022705078125, -0.0223846435546875, -0.0119781494140625, -0.07257080078125, 0.004001617431640625, 0.0673828125, 0.041259765625, 0.0198974609375, 0.00740814208984375, 0.0082855224609375, -0.0036602020263671875, -0.045989990234375, 0.02154541015625, -0.0199432373046875, 0.0011701583862304688, 0.05731201171875, -0.0076141357421875, 0.01268768310546875, -0.002658843994140625, -0.036407470703125, -0.002574920654296875, 0.036468505859375, -0.0259552001953125, -0.012664794921875, 0.01242828369140625, -0.0024700164794921875, 0.0034275054931640625, -0.00583648681640625, -0.004535675048828125, -0.01025390625, 0.021942138671875, -0.0158843994140625, 0.035858154296875, 0.01113128662109375, 0.01247406005859375, -0.036895751953125, 0.01262664794921875, 0.0290985107421875, 0.0181427001953125, -0.0159454345703125, -0.027496337890625, 0.0428466796875, -0.04083251953125, 0.0234222412109375, 0.037689208984375, 0.0033740997314453125, 0.0047760009765625, 0.096923828125, -0.005657196044921875, -0.032501220703125, -0.0139007568359375, -0.055694580078125, -0.05316162109375, -0.020721435546875, -0.006732940673828125, -0.0234527587890625, 0.010711669921875, 0.044586181640625, 0.00922393798828125, 0.01511383056640625, -0.009429931640625, -0.015838623046875, 0.04437255859375, -0.00862884521484375, 0.0052490234375, 0.0052032470703125, 0.0242919921875, 0.051513671875, 0.05377197265625, -0.054901123046875, 0.00868988037109375, -0.01242828369140625, 0.01351165771484375, 0.0211181640625, -0.0139007568359375, -0.0582275390625, -0.0216827392578125, -0.03131103515625, 0.0196990966796875, 0.0073394775390625, 0.0079498291015625, -0.0281524658203125, -0.018310546875, 0.0021800994873046875, -0.08453369140625, -0.09521484375, 0.006031036376953125, -0.05517578125, 0.01515960693359375, -0.0158843994140625, -0.029449462890625, -0.0211029052734375, -0.002166748046875, 0.01430511474609375, 0.01061248779296875, -0.0330810546875, -0.03485107421875, -0.041229248046875, -0.04400634765625, -0.035858154296875, 0.0029239654541015625, -0.0142059326171875, -0.0091705322265625, -0.037567138671875, -0.035369873046875, -0.01922607421875, -0.0222930908203125, 0.00911712646484375, 0.0015344619750976562, -0.01324462890625, -0.00316619873046875, -0.0174407958984375, 0.0220794677734375, -0.0020961761474609375, 0.01293182373046875, 0.02630615234375, -0.01861572265625, 0.0163421630859375, 0.04705810546875, 0.0162200927734375, 0.055267333984375, -0.03192138671875, -0.06427001953125, 0.050811767578125, 0.0224151611328125, -0.0243682861328125, -0.0238189697265625, 0.019073486328125, -0.043182373046875, -0.0251007080078125, -0.000530242919921875, 0.0018224716186523438, -0.002414703369140625, 0.005817413330078125, 0.0281982421875, 0.040863037109375, 0.033599853515625, 0.0322265625, -0.045654296875, -0.0238800048828125, -0.0174713134765625, -0.0267486572265625, 0.0823974609375, 0.0214691162109375, 0.001857757568359375, 0.04974365234375, 0.035797119140625, 0.0165252685546875, -0.005344390869140625, -0.0176849365234375, -0.0300140380859375, 0.02490234375, -0.0458984375, 0.0277557373046875, -0.035888671875, -0.021240234375, -0.01169586181640625, 0.07794189453125, -0.07708740234375, -0.0187835693359375, 0.0210418701171875, 0.0516357421875, -0.10150146484375, -0.0450439453125, -0.04937744140625, 0.01363372802734375, 0.03802490234375, -0.00514984130859375, -0.04022216796875, 0.0201416015625, -0.0261077880859375, -0.017578125, 0.04034423828125, -0.008056640625, 0.0164031982421875, -0.0207061767578125, 0.0289154052734375, -0.0126495361328125, 0.037322998046875, -0.0174407958984375, 0.0234527587890625, -0.052734375, -0.0811767578125, -0.0244903564453125, -0.019134521484375, 0.06024169921875, 0.0213165283203125, -0.07098388671875, 0.0047760009765625, 0.055877685546875, 0.00891876220703125, 0.039764404296875, 0.0034084320068359375, 0.0262451171875, 0.00499725341796875, -0.014495849609375, 0.0131378173828125, -0.030792236328125, -0.01885986328125, 0.02239990234375, 0.02001953125, 0.048675537109375, -0.01479339599609375, -0.049407958984375, 0.019439697265625, -0.0284423828125, 0.0012559890747070312, -0.00603485107421875, -0.026580810546875, 0.04583740234375, -0.002552032470703125, -0.01885986328125, -0.0295562744140625, -0.036956787109375, 0.0543212890625, 0.0262298583984375, 0.0018930435180664062, 0.021209716796875, 0.0484619140625, -0.0082855224609375, -0.0396728515625, -0.1331787109375, -0.001407623291015625, 0.066650390625, -0.023651123046875, 0.02362060546875, 0.05255126953125, -0.052764892578125, 0.05987548828125, 0.041107177734375, -0.0252532958984375, -0.0125274658203125, 0.0457763671875, -0.0014581680297851562, -0.0217132568359375, 0.0231170654296875, -0.0182647705078125, 0.0004420280456542969, 0.0166015625, 0.0214080810546875, -0.0292510986328125, 0.00862884521484375, 0.005992889404296875, -0.0083465576171875, 0.020172119140625, 0.0016613006591796875, -0.08587646484375, 0.0286407470703125, -0.06591796875, -0.0199737548828125, -0.0228118896484375, 0.0201873779296875, 0.0281219482421875, 0.0008001327514648438, -0.0183563232421875, 0.033966064453125, -0.002349853515625, 0.0125579833984375, 0.0140380859375, 0.01342010498046875, -0.0183258056640625, 0.0004086494445800781, 0.0012645721435546875, 0.02935791015625, -0.0261077880859375, -0.052947998046875, -0.0133209228515625, -0.009063720703125, 0.007175445556640625, 0.048583984375, 0.0435791015625, -0.0312042236328125, -0.03826904296875, 0.023529052734375, 0.03515625, 0.0496826171875, -0.01959228515625, 0.019378662109375, -0.0031414031982421875, -0.0003151893615722656, -0.0084686279296875, 0.0007910728454589844, 0.06292724609375, -0.057159423828125, 0.0611572265625, 0.006900787353515625, 0.04150390625, 0.01032257080078125, 0.051116943359375, 0.01678466796875, -0.022552490234375, -0.005847930908203125, 0.0307769775390625, -0.029510498046875, -0.0204315185546875, 0.0271453857421875, 0.01055908203125, 0.03741455078125, -0.045440673828125, -0.047027587890625, 0.04388427734375, -0.06878662109375, -0.002666473388671875, 0.004459381103515625, -0.016937255859375, -0.04534912109375, -0.0085906982421875, 0.0190277099609375, 0.0112152099609375, -0.0209503173828125, 0.017120361328125, -0.03094482421875, -0.0256500244140625, 0.0279083251953125, 0.00969696044921875, 0.057403564453125, -0.045745849609375, -0.08074951171875, -0.0073394775390625, -0.00806427001953125, -0.01513671875, -0.01453399658203125, -0.003875732421875, -0.010772705078125, -0.006130218505859375, 0.022796630859375, -0.0267486572265625, 0.0262298583984375, -0.0169677734375, 0.01337432861328125, 0.024658203125, 0.019805908203125, 0.035675048828125, -0.006267547607421875, 0.004657745361328125, -0.0230560302734375, -0.00940704345703125, -0.00803375244140625, 0.03741455078125, -0.0020084381103515625, -0.01097869873046875, -0.03192138671875, -0.0304412841796875, 0.006282806396484375, -0.0175323486328125, -0.01387786865234375, -0.058990478515625, 0.02117919921875, 0.01910400390625, 0.01007843017578125, -0.0103759765625, 0.059661865234375, -0.0016651153564453125, 0.0374755859375, 0.02099609375, 0.044891357421875, 0.0217742919921875, -0.01476287841796875, 0.0244293212890625, 0.0007443428039550781, -0.0023441314697265625, -0.031341552734375, 0.0189208984375, -0.029144287109375, 0.020050048828125, -0.00043702125549316406, 0.033538818359375, -0.004726409912109375, 0.00988006591796875, 0.0008759498596191406, -0.0286407470703125, -0.031829833984375, -0.01959228515625, 0.0675048828125, -0.0182342529296875, 0.055023193359375, -0.01377105712890625, 0.00264739990234375, 0.025115966796875, -0.0404052734375, 0.02593994140625, 0.034423828125, 0.0002722740173339844, -0.0092926025390625, 0.0096893310546875, 0.047149658203125, 0.03509521484375, -0.0033397674560546875, 0.037017822265625, -0.0163116455078125, -0.00765228271484375, -0.0121917724609375, -0.00902557373046875, 0.019012451171875, -0.021087646484375, -0.0023708343505859375, 0.01491546630859375, -0.01398468017578125, 0.026763916015625, 0.09857177734375, 0.09375, -0.1201171875, -0.0053558349609375, 0.0160980224609375, -0.0220489501953125, 0.014678955078125, 0.0026836395263671875, -0.03411865234375, -0.0552978515625, 0.0182037353515625, -0.039093017578125, -0.03497314453125, -0.00283050537109375, 0.011810302734375, -0.0009527206420898438, 0.0185089111328125, 0.0247955322265625, 0.006839752197265625, 0.0228729248046875, -0.0595703125, 0.0018310546875, -0.00695037841796875, -0.0169525146484375, -0.0045318603515625, 0.01345062255859375, -0.0350341796875, -0.0697021484375, -0.01220703125, -0.023162841796875, -0.025848388671875, 0.03692626953125, -0.00045299530029296875, 0.0743408203125, 0.07080078125, 0.00232696533203125, -0.0160980224609375, 0.0194091796875, 0.0181732177734375, -0.00577545166015625, 0.002201080322265625, -0.0216217041015625, 0.024871826171875, 0.00200653076171875, 0.01171112060546875, -0.045196533203125, 0.0148773193359375, 0.0022735595703125, -0.019866943359375, 0.0254364013671875, -0.043792724609375, 0.0010709762573242188, -0.01131439208984375, 0.006404876708984375, 0.041168212890625, -0.00033473968505859375, -0.00821685791015625, -0.054107666015625, -0.031402587890625, -0.0037994384765625, -0.069580078125, -0.0204315185546875, -0.0194244384765625, -0.08709716796875, 0.045166015625, 0.0274810791015625, 0.052398681640625, -0.00981903076171875, -0.0019588470458984375, -0.00791168212890625, -0.032440185546875, -0.045806884765625, 0.0312042236328125, -0.01495361328125, 0.034088134765625, -0.0623779296875, -0.006282806396484375, -0.0153350830078125, 0.032928466796875, 0.049591064453125, 0.019195556640625, 0.0013246536254882812, -0.00992584228515625, 0.0290069580078125, 0.01715087890625, -0.00939178466796875, 0.0206451416015625, -0.024871826171875, -0.0086669921875, 0.051727294921875, -0.031402587890625, 0.0124969482421875, 0.05035400390625, -0.01053619384765625, -0.0089569091796875, 0.0129852294921875, 0.006565093994140625, -0.0229339599609375, -0.0295257568359375, -0.028656005859375, -0.01068878173828125, 0.006191253662109375, -0.0159912109375, 0.0031833648681640625, 0.0396728515625, 0.0709228515625, -0.031646728515625, -0.049468994140625, -0.035736083984375, 0.05401611328125, 0.0433349609375, 0.043670654296875, 0.020050048828125, 0.00928497314453125, 0.039398193359375, 0.02685546875, 0.0304107666015625, 0.0230712890625, -0.004627227783203125, 0.062286376953125, 0.03472900390625, 0.0166168212890625, -0.032989501953125, 0.035736083984375, 0.039459228515625, 0.07232666015625, -0.059539794921875, -0.006378173828125, 0.008941650390625, 0.0160064697265625, -0.0028247833251953125, -0.007457733154296875, 0.01444244384765625, -0.003932952880859375, -0.0000064373016357421875, 0.02099609375, -0.00453948974609375, -0.01486968994140625, 0.0118865966796875, 0.011383056640625, 0.024566650390625, -0.003025054931640625, 0.0178375244140625, -0.0275726318359375, -0.0078582763671875, 0.01454925537109375, 0.00527191162109375, 0.01476287841796875, 0.0017080307006835938, 0.06207275390625, 0.011322021484375, 0.012176513671875, 0.0207672119140625, 0.025848388671875, -0.047119140625, -0.01312255859375, -0.035430908203125, -0.0052490234375, 0.0153045654296875, -0.0016393661499023438, 0.007564544677734375, 0.06585693359375, 0.060272216796875, -0.0460205078125, -0.022979736328125, -0.003936767578125, -0.0225067138671875, -0.020599365234375, -0.0281524658203125, 0.0069427490234375, 0.0012063980102539062, 0.0029659271240234375, 0.019256591796875, 0.06072998046875, -0.007808685302734375, 0.036102294921875, 0.04046630859375, 0.007373809814453125, 0.0007681846618652344, 0.006427764892578125, -0.01390838623046875, 0.0297088623046875, 0.05316162109375, -0.035919189453125, -0.0151824951171875, -0.017822265625, -0.0400390625, 0.0187225341796875, 0.037322998046875, -0.00717926025390625, 0.0242767333984375, 0.0038166046142578125, -0.0266265869140625, 0.01898193359375, 0.01496124267578125, 0.01514434814453125, -0.017059326171875, 0.01371002197265625, -0.018707275390625, -0.062164306640625, -0.017059326171875, -0.0036487579345703125, 0.018890380859375, -0.0202484130859375, 0.04840087890625, -0.00510406494140625, 0.01442718505859375, -0.016510009765625, 0.00878143310546875, -0.01180267333984375, -0.015228271484375, 0.0137481689453125, 0.0175628662109375, 0.00844573974609375, -0.021942138671875, -0.005466461181640625, 0.045379638671875, -0.0157928466796875, -0.00859832763671875, 0.006580352783203125, -0.033721923828125, 0.018707275390625, 0.0357666015625, 0.01532745361328125, -0.01332855224609375, 0.0034332275390625, -0.001468658447265625, -0.00499725341796875, 0.052001953125, 0.036956787109375, -0.0027179718017578125, 0.07440185546875, -0.035980224609375, -0.013458251953125, 0.0173797607421875, -0.09112548828125, 0.00963592529296875, 0.0201416015625, -0.0045623779296875, 0.022430419921875, -0.01702880859375, -0.034576416015625, 0.003662109375, -0.0017690658569335938, -0.01218414306640625, -0.00501251220703125, -0.006824493408203125, 0.01309967041015625, 0.0966796875, 0.0994873046875, 0.040771484375, 0.055145263671875, -0.0033779144287109375, -0.039764404296875, 0.0361328125, 0.022918701171875, -0.00957489013671875, -0.0128173828125, 0.01296234130859375, 0.0183563232421875, -0.00559234619140625, 0.000988006591796875, -0.061126708984375, -0.0283966064453125, 0.016876220703125, -0.011749267578125, -0.0226593017578125, -0.006687164306640625, -0.013153076171875, 0.0032329559326171875, -0.0281524658203125, 0.03558349609375, -0.006443023681640625, 0.025665283203125, -0.018035888671875, -0.051300048828125, 0.008148193359375, 0.06451416015625, -0.007747650146484375, 0.005756378173828125, 0.00971221923828125, 0.001781463623046875, -0.011871337890625, -0.0022106170654296875, -0.0052642822265625, 0.033538818359375, 0.0163116455078125, -0.01003265380859375, 0.008392333984375, 0.001514434814453125, -0.01898193359375, -0.07244873046875, 0.011077880859375, -0.07403564453125, -0.0300750732421875, 0.0005097389221191406, 0.0031890869140625, 0.0195465087890625, -0.053985595703125, -0.1015625, 0.032684326171875, -0.00542449951171875, -0.048492431640625, -0.00787353515625, 0.01503753662109375, -0.0168914794921875, 0.01522064208984375, -0.002323150634765625, -0.016632080078125, -0.01497650146484375, 0.00830078125, 0.0200347900390625, 0.0120086669921875, 0.0282135009765625, -0.006092071533203125, -0.033050537109375, 0.00411224365234375, 0.0178680419921875, 0.0073394775390625, 0.049224853515625, -0.0200042724609375, 0.0242462158203125, 0.040252685546875, -0.051971435546875, -0.0457763671875, -0.03594970703125, -0.042327880859375, -0.03350830078125, -0.061614990234375, -0.028167724609375, -0.037811279296875, 0.06414794921875, 0.03045654296875, 0.0101165771484375, -0.0256500244140625, 0.00458526611328125, -0.0172271728515625, -0.01291656494140625, 0.006595611572265625, -0.00594329833984375, -0.020904541015625, 0.016998291015625, -0.0190582275390625, 0.0201416015625, 0.0226287841796875, 0.0213470458984375, 0.0160369873046875, -0.0130157470703125, 0.0467529296875, -0.02398681640625, -0.0260467529296875, -0.00103759765625, 0.06951904296875, -0.043853759765625, -0.00539398193359375, 0.0158538818359375, 0.0016050338745117188, 0.037750244140625, 0.015869140625, -0.004909515380859375, -0.04840087890625, 0.0230712890625, 0.06646728515625, -0.0105743408203125, 0.0026092529296875, -0.022979736328125, -0.0174560546875, 0.0020961761474609375, 0.006526947021484375, -0.0092315673828125, 0.0301055908203125, 0.00531005859375, 0.0224761962890625, 0.0012264251708984375, 0.01421356201171875, -0.0458984375, -0.0770263671875, -0.0377197265625, -0.006671905517578125, -0.029266357421875, 0.0162506103515625, 0.01055908203125, -0.0166473388671875, 0.024505615234375, -0.056640625, 0.0142974853515625, -0.05120849609375, -0.01233673095703125, -0.0531005859375, -0.0165557861328125, 0.0290679931640625 ]
ba210a8411ddaf4f879098eefa2af2ece9983907
Wordpress Stackexchange Q: What is the Plural of WordPress? I mean, for what I remember of my english classes it should be WordPress', or not? Would this be a Meta Question? Or a English Language & Usage one? [update] What I ended up writing (in an email) before Comments and Answers was ...deal with a couple of WordPress' projects... [update] Well, it ended up being an Engrish Fail. Thanks, Johannes, for opening the question at English Language & Usage. Toscho's answer also prompted me to open another at Spanish Language and Usage, but for a person's name. (oh, my, is this apostrophe correct?) In spanish, it would be "Los WordPress". A: Hate to play grammar police here; but using the plural form of WordPress in the example you've given is incorrect. The correct form would be `...WordPress projects...' not '...WordPresses projects...' After all you deal with a couple of WordPress projects, not WordPresses projects.
Q: What is the Plural of WordPress? I mean, for what I remember of my english classes it should be WordPress', or not? Would this be a Meta Question? Or a English Language & Usage one? [update] What I ended up writing (in an email) before Comments and Answers was ...deal with a couple of WordPress' projects... [update] Well, it ended up being an Engrish Fail. Thanks, Johannes, for opening the question at English Language & Usage. Toscho's answer also prompted me to open another at Spanish Language and Usage, but for a person's name. (oh, my, is this apostrophe correct?) In spanish, it would be "Los WordPress". A: Hate to play grammar police here; but using the plural form of WordPress in the example you've given is incorrect. The correct form would be `...WordPress projects...' not '...WordPresses projects...' After all you deal with a couple of WordPress projects, not WordPresses projects. A: In English, it's an uncountable noun. Like information or advice. Generally the plural nature is made explicit by the context. E.g. "different versions of WordPress" A: Colloquially, this is definitely meta, but whether it is in stackexchange technical terms, I don't have an opinion on. As for the actual question, I'd say it's "WordPresses". I have never given this consideration when it comes to WordPress, but if you'd check "press (noun)" in a dictionary, it should give you "presses" as a plural. And if that's the case, it goes for all nominal composita that end in "press" as well, such as "bench press" and "bench presses". Needing to use the plural can obviously be avoided by paraphrasing it as "several installations of WordPress", or the like, which I personally feel sounds much nicer anyway. Edit Oxford Dictionary Online (British) as well as my paperback Merriam Webster (US) say the same: If the noun ends with -ch, -s, -sh, -x, or -z, add -es to form the plural bus --> buses kiss --> kisses [update (pertaining to the OP's update)] If you were to describe something that is inherent to WordPress, say the core or some API, then you could call it "WordPress's core" (weird, but grammatically correct), i.e. "the core that belongs to WordPress" (Stephen's ownership, or "possessive", case). Your usage is wrong though, with or without (without anyway) an s following the apostrophe, because you mean to say "projects involving WordPress" and not "projects belonging to WordPress". In this case though, life is even simpler than you made it for yourself: "projects" is what needs to be in plural form. In that case, "WordPress" simply remains "WordPress". Edit 2 As per English Language & Usage: Whether there is a plural form depends entirely on whether there is actually a singular form. In the case of WordPress, there isn't a singular form. You don't say “I implemented my blog as a WordPress.” It’s using WordPress or even on WordPress or in WordPress, but not as a WordPress. Consequently there is no plural form. This doesn't apply to all trademarked names, though. One may very well talk about Compaqs or Pepsis or Hoovers or even Guinnesses and Tumblrs. All of these have a singular form — a Compaq [computer]; a [drink made by] Pepsi; a [vacuum cleaner made by] Hoover; a [proprietary drink made by] Guinness; a [blog built on] Tumblr. Additionally, it probably depends to some extent on how euphonious the plural form (if there might be one) actually is. Even though one might talk of a Kleenex for a tissue, a few Kleenexes is unlikely to occur. WordPresses may well fall into that category as well as the “no plural” category, even if Guinnesses does not. A: WordPress is a singular without plural. A second instance would be a fork that could not use the same name, because the name WordPress is a trademark of the WordPress Foundation. Like Jesus, just more rules. If WordPress had a plural it would be WordPresses, like in mess or mistress. But the prerequisite for that would be that WordPress becomes either a physical object or self-aware (and able to create self-aware copies). I will update my answer on the day that happens.
wordpress
{ "language": "en", "length": 693, "provenance": "stackexchange_00019.jsonl.gz:426276", "question_score": "15", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74278" }
[ -0.035400390625, -0.01837158203125, 0.03509521484375, 0.094482421875, -0.045867919921875, -0.006900787353515625, 0.07049560546875, -0.06378173828125, -0.01983642578125, 0.013458251953125, -0.0002052783966064453, 0.0206451416015625, -0.055755615234375, -0.0316162109375, -0.00518798828125, -0.03167724609375, 0.002925872802734375, -0.004505157470703125, -0.00433349609375, -0.01108551025390625, 0.01468658447265625, -0.004261016845703125, -0.023681640625, -0.048858642578125, 0.034210205078125, -0.0260467529296875, 0.033111572265625, -0.0142822265625, 0.02508544921875, -0.00669097900390625, 0.0209808349609375, 0.0111541748046875, 0.02679443359375, -0.013580322265625, -0.00487518310546875, -0.0228118896484375, -0.016937255859375, -0.00004863739013671875, 0.004581451416015625, -0.01354217529296875, 0.0261993408203125, -0.0259552001953125, 0.04412841796875, -0.0011959075927734375, 0.0250396728515625, -0.0204925537109375, 0.0256195068359375, -0.04632568359375, 0.035919189453125, -0.049713134765625, -0.0119476318359375, 0.02801513671875, 0.0009112358093261719, -0.0222015380859375, -0.0259552001953125, 0.00531768798828125, 0.0594482421875, 0.021942138671875, 0.045135498046875, -0.0643310546875, -0.063232421875, 0.0250244140625, 0.0404052734375, -0.000553131103515625, -0.01338958740234375, -0.02191162109375, -0.06805419921875, 0.0237884521484375, -0.0220947265625, -0.01251220703125, 0.01340484619140625, -0.01617431640625, 0.01369476318359375, -0.0014400482177734375, 0.04022216796875, -0.015655517578125, -0.0200042724609375, -0.0130157470703125, 0.0345458984375, 0.0275115966796875, 0.0006198883056640625, -0.01053619384765625, -0.021636962890625, 0.0064849853515625, -0.006450653076171875, 0.01300048828125, -0.0206298828125, -0.0179290771484375, -0.03350830078125, -0.0261993408203125, -0.0228118896484375, -0.055755615234375, -0.05242919921875, 0.034881591796875, 0.01702880859375, -0.0309906005859375, -0.001758575439453125, 0.00858306884765625, 0.01107025146484375, -0.04327392578125, 0.00432586669921875, -0.01198577880859375, -0.07586669921875, 0.00238800048828125, -0.006992340087890625, 0.0026226043701171875, -0.012786865234375, 0.045684814453125, 0.0555419921875, 0.05078125, 0.01290130615234375, 0.021392822265625, 0.0183868408203125, -0.033294677734375, 0.005157470703125, 0.0079345703125, 0.0167236328125, 0.029083251953125, 0.01800537109375, -0.01522064208984375, 0.0026683807373046875, 0.019134521484375, 0.0264129638671875, 0.004779815673828125, -0.01812744140625, -0.017913818359375, -0.0233612060546875, -0.0302581787109375, -0.0128326416015625, 0.03717041015625, -0.004444122314453125, -0.003231048583984375, -0.0189666748046875, -0.0005159378051757812, -0.029388427734375, -0.0215606689453125, -0.0020046234130859375, 0.0014514923095703125, -0.0033473968505859375, 0.0219573974609375, 0.003513336181640625, -0.03753662109375, 0.0285186767578125, -0.0023250579833984375, -0.0012121200561523438, -0.01096343994140625, -0.008270263671875, 0.042755126953125, 0.032684326171875, -0.0071868896484375, 0.035125732421875, -0.0259857177734375, 0.0172576904296875, 0.02423095703125, -0.00568389892578125, -0.0031681060791015625, -0.01385498046875, -0.018157958984375, 0.01380157470703125, -0.033050537109375, -0.0228729248046875, 0.01218414306640625, 0.056854248046875, 0.011260986328125, 0.010467529296875, -0.01047515869140625, -0.01534271240234375, 0.0095672607421875, 0.018890380859375, -0.0221710205078125, 0.0180816650390625, -0.0158538818359375, 0.0531005859375, -0.0223541259765625, -0.019805908203125, 0.01300048828125, 0.0018978118896484375, -0.033538818359375, 0.033599853515625, 0.032012939453125, -0.0051422119140625, -0.02337646484375, -0.006664276123046875, 0.0217132568359375, -0.0181884765625, -0.06005859375, 0.0185089111328125, -0.004947662353515625, 0.034820556640625, 0.0182037353515625, 0.0241851806640625, -0.00634002685546875, 0.0016565322875976562, 0.03509521484375, -0.006702423095703125, -0.037628173828125, -0.01299285888671875, 0.032806396484375, -0.0323486328125, -0.0225677490234375, 0.02508544921875, 0.026153564453125, -0.00994873046875, 0.0003275871276855469, -0.05859375, 0.0029735565185546875, -0.0188751220703125, 0.024627685546875, 0.0278167724609375, 0.00453948974609375, -0.00982666015625, -0.0501708984375, 0.018829345703125, -0.0021152496337890625, -0.031982421875, 0.01088714599609375, -0.0292205810546875, -0.020965576171875, -0.005313873291015625, -0.01125335693359375, 0.00305938720703125, 0.015716552734375, -0.00447845458984375, 0.00653076171875, 0.048553466796875, -0.03564453125, -0.0177154541015625, -0.05206298828125, 0.01448822021484375, -0.00803375244140625, -0.055267333984375, 0.0633544921875, 0.0174560546875, 0.039703369140625, -0.00406646728515625, 0.005680084228515625, 0.00875091552734375, -0.02325439453125, 0.01403045654296875, 0.02386474609375, 0.0111083984375, 0.0255126953125, -0.00737762451171875, 0.033660888671875, 0.027679443359375, -0.032684326171875, -0.010589599609375, 0.0237274169921875, 0.007843017578125, 0.00305938720703125, 0.0638427734375, -0.021636962890625, 0.021026611328125, 0.01042938232421875, 0.01959228515625, 0.0252838134765625, -0.05828857421875, -0.038970947265625, 0.0055084228515625, -0.02813720703125, 0.022735595703125, -0.06597900390625, -0.01081085205078125, -0.039337158203125, 0.0197906494140625, 0.007171630859375, 0.02001953125, 0.03729248046875, 0.0030231475830078125, -0.0034332275390625, 0.00225067138671875, -0.0303497314453125, 0.016204833984375, 0.04315185546875, -0.0009131431579589844, 0.04376220703125, -0.0262298583984375, -0.033203125, 0.0211029052734375, 0.03924560546875, -0.01270294189453125, -0.0021495819091796875, -0.042327880859375, -0.01470184326171875, 0.008575439453125, -0.028564453125, -0.0030803680419921875, 0.0191497802734375, -0.013946533203125, -0.002109527587890625, 0.047607421875, -0.0165252685546875, -0.044403076171875, 0.0233917236328125, 0.00846099853515625, -0.031890869140625, 0.047454833984375, -0.018798828125, 0.0243988037109375, -0.0196685791015625, -0.0026569366455078125, 0.05255126953125, 0.01102447509765625, -0.016693115234375, -0.017913818359375, 0.06134033203125, 0.0254058837890625, -0.036712646484375, -0.0418701171875, 0.0109405517578125, -0.0804443359375, -0.0200347900390625, 0.0263824462890625, 0.1099853515625, -0.035247802734375, -0.061370849609375, -0.0015697479248046875, 0.042022705078125, -0.033233642578125, -0.05615234375, -0.005229949951171875, -0.04925537109375, -0.006580352783203125, 0.0012922286987304688, -0.0283050537109375, 0.0016775131225585938, 0.017913818359375, 0.0006213188171386719, 0.02789306640625, -0.035308837890625, -0.045013427734375, -0.06854248046875, -0.0867919921875, -0.0273590087890625, 0.00534820556640625, 0.00847625732421875, 0.017913818359375, 0.002094268798828125, -0.0003559589385986328, -0.0635986328125, -0.01342010498046875, 0.0290069580078125, -0.02362060546875, 0.006443023681640625, -0.0292816162109375, -0.0028171539306640625, -0.015655517578125, 0.0019464492797851562, -0.0072021484375, -0.00762176513671875, 0.017059326171875, -0.02099609375, 0.0007958412170410156, 0.0030879974365234375, 0.03887939453125, -0.06695556640625, -0.0304718017578125, 0.022857666015625, -0.02056884765625, -0.030853271484375, -0.0217742919921875, 0.00258636474609375, -0.034576416015625, 0.01629638671875, 0.024688720703125, -0.0229034423828125, -0.01548004150390625, 0.02996826171875, -0.005084991455078125, -0.006381988525390625, 0.0213165283203125, -0.038787841796875, 0.043670654296875, -0.00896453857421875, -0.002140045166015625, -0.025115966796875, -0.0034942626953125, -0.036895751953125, 0.0129547119140625, -0.023590087890625, -0.00836944580078125, -0.0189208984375, 0.031219482421875, -0.003086090087890625, -0.087158203125, 0.042449951171875, -0.044219970703125, -0.00836944580078125, -0.044830322265625, -0.009185791015625, 0.0296478271484375, 0.09466552734375, -0.035308837890625, -0.0240020751953125, 0.03173828125, 0.03076171875, -0.052154541015625, -0.054931640625, -0.0318603515625, -0.01221466064453125, -0.05706787109375, 0.004150390625, -0.001220703125, -0.02374267578125, -0.007366180419921875, -0.0159149169921875, -0.0139007568359375, -0.031829833984375, 0.023712158203125, -0.05694580078125, 0.03704833984375, -0.033905029296875, 0.02716064453125, -0.05242919921875, 0.007720947265625, -0.05413818359375, -0.0280914306640625, -0.02490234375, 0.029754638671875, 0.00936126708984375, -0.0087738037109375, -0.0234375, -0.00033545494079589844, 0.037261962890625, -0.00799560546875, 0.00962066650390625, 0.03143310546875, 0.00395965576171875, 0.030792236328125, 0.03265380859375, 0.03460693359375, -0.0172576904296875, -0.01027679443359375, -0.039154052734375, -0.05047607421875, -0.058837890625, 0.00727081298828125, 0.0085601806640625, 0.05548095703125, -0.039154052734375, 0.0196990966796875, 0.03863525390625, 0.03631591796875, 0.0291748046875, -0.01454925537109375, 0.004730224609375, 0.0484619140625, 0.011932373046875, 0.07415771484375, 0.017303466796875, -0.0278778076171875, 0.008697509765625, 0.0904541015625, -0.004947662353515625, -0.03472900390625, -0.1387939453125, 0.00653076171875, 0.027191162109375, 0.0150909423828125, 0.01319122314453125, 0.01666259765625, -0.00045418739318847656, 0.00750732421875, -0.00020623207092285156, -0.049560546875, 0.05023193359375, 0.0135040283203125, 0.0222930908203125, -0.0305328369140625, -0.0073394775390625, -0.018341064453125, 0.0225830078125, -0.00965118408203125, 0.005229949951171875, -0.007274627685546875, 0.02435302734375, 0.0277099609375, 0.0007119178771972656, 0.0016002655029296875, -0.01715087890625, -0.051971435546875, 0.0289459228515625, -0.04718017578125, 0.014862060546875, -0.0190277099609375, 0.00383758544921875, 0.0246734619140625, 0.01535797119140625, -0.016326904296875, -0.0241851806640625, -0.00614166259765625, -0.01654052734375, 0.00782012939453125, -0.01519012451171875, -0.0232696533203125, -0.0259857177734375, -0.00962066650390625, 0.06085205078125, 0.0103759765625, -0.058502197265625, 0.004482269287109375, -0.015655517578125, -0.0002808570861816406, 0.0235748291015625, 0.0626220703125, 0.006565093994140625, -0.03253173828125, 0.024749755859375, 0.006832122802734375, 0.029327392578125, -0.03240966796875, -0.008514404296875, -0.02044677734375, 0.020599365234375, -0.020294189453125, 0.039581298828125, 0.00962066650390625, 0.0209808349609375, 0.004154205322265625, -0.0182952880859375, 0.0401611328125, 0.032745361328125, 0.0440673828125, 0.022918701171875, -0.044219970703125, -0.0091552734375, 0.0038166046142578125, -0.032012939453125, -0.01123809814453125, -0.00437164306640625, 0.0251922607421875, 0.022613525390625, 0.04193115234375, 0.0236053466796875, -0.016357421875, -0.0258331298828125, 0.0008177757263183594, 0.007343292236328125, 0.00962066650390625, -0.0059356689453125, 0.01263427734375, 0.046356201171875, 0.0237274169921875, -0.018096923828125, 0.0216827392578125, 0.012237548828125, 0.038970947265625, 0.0118408203125, -0.0218048095703125, -0.02801513671875, -0.01488494873046875, 0.03564453125, -0.0243988037109375, 0.0005011558532714844, 0.0156707763671875, -0.0693359375, -0.044769287109375, 0.0040740966796875, -0.003772735595703125, 0.01097869873046875, -0.0253448486328125, 0.026153564453125, -0.011260986328125, -0.0010976791381835938, 0.07391357421875, 0.004894256591796875, 0.0218505859375, -0.005886077880859375, -0.0318603515625, -0.01531982421875, -0.041412353515625, -0.0189208984375, -0.018890380859375, -0.0293426513671875, -0.034332275390625, 0.01131439208984375, -0.00897216796875, 0.014801025390625, -0.016448974609375, -0.003414154052734375, -0.00797271728515625, 0.0301361083984375, -0.007389068603515625, 0.015777587890625, -0.025360107421875, 0.07098388671875, -0.002269744873046875, 0.039825439453125, -0.0213623046875, 0.0243988037109375, -0.00814056396484375, -0.01148223876953125, 0.018280029296875, -0.03717041015625, -0.023590087890625, -0.01494598388671875, -0.01418304443359375, -0.00255584716796875, 0.002056121826171875, -0.01158905029296875, -0.0015010833740234375, -0.0181121826171875, 0.00032901763916015625, -0.0112457275390625, 0.028594970703125, 0.00634002685546875, -0.010467529296875, 0.0122528076171875, -0.005092620849609375, 0.050018310546875, -0.0031909942626953125, -0.00412750244140625, -0.0125732421875, -0.01446533203125, 0.007480621337890625, 0.0233917236328125, 0.00662994384765625, 0.00838470458984375, 0.0185699462890625, -0.0206146240234375, 0.01537322998046875, 0.00789642333984375, 0.018280029296875, 0.0291900634765625, 0.015869140625, 0.006061553955078125, 0.0182647705078125, 0.064453125, -0.004352569580078125, -0.007572174072265625, 0.0283355712890625, -0.0311279296875, 0.003932952880859375, 0.0941162109375, 0.0810546875, -0.11395263671875, -0.0003714561462402344, 0.0183563232421875, 0.016387939453125, 0.0408935546875, -0.0200042724609375, 0.00458526611328125, -0.0260009765625, 0.051422119140625, -0.00708770751953125, -0.0206146240234375, 0.0100555419921875, -0.028076171875, 0.020538330078125, 0.026214599609375, 0.025787353515625, -0.0002751350402832031, -0.04949951171875, -0.040863037109375, 0.034149169921875, -0.01070404052734375, -0.04095458984375, -0.015838623046875, 0.0457763671875, 0.004039764404296875, -0.03857421875, 0.0794677734375, -0.0241851806640625, 0.029052734375, 0.0386962890625, -0.0167388916015625, -0.029052734375, 0.0635986328125, -0.045989990234375, 0.03466796875, 0.01763916015625, -0.0041351318359375, -0.0224456787109375, -0.0139312744140625, 0.041839599609375, 0.0380859375, -0.06451416015625, 0.041229248046875, -0.0273590087890625, -0.007450103759765625, -0.0054779052734375, -0.023834228515625, 0.045074462890625, -0.021697998046875, -0.0199432373046875, 0.01187896728515625, -0.005268096923828125, 0.003875732421875, 0.0082855224609375, -0.07623291015625, -0.05218505859375, -0.01922607421875, -0.05194091796875, -0.058380126953125, 0.049224853515625, -0.016265869140625, -0.0771484375, 0.060516357421875, 0.02142333984375, 0.04595947265625, -0.0022678375244140625, 0.0117645263671875, -0.00739288330078125, -0.0010957717895507812, -0.027557373046875, 0.015655517578125, -0.00432586669921875, 0.0246734619140625, -0.0233612060546875, -0.00286102294921875, 0.01416778564453125, 0.0197296142578125, 0.0238037109375, -0.0015163421630859375, -0.0594482421875, 0.03021240234375, 0.08233642578125, 0.06170654296875, 0.0421142578125, 0.045623779296875, 0.0019092559814453125, 0.01145172119140625, 0.007236480712890625, -0.0294036865234375, 0.030731201171875, -0.035858154296875, -0.0208587646484375, 0.004970550537109375, 0.004940032958984375, -0.01389312744140625, -0.0185394287109375, -0.0023860931396484375, -0.01308441162109375, -0.017059326171875, -0.006282806396484375, 0.04217529296875, -0.00323486328125, 0.0234222412109375, 0.03704833984375, -0.0281219482421875, 0.0154266357421875, -0.0318603515625, 0.046844482421875, 0.00959014892578125, -0.0140838623046875, 0.055633544921875, 0.01375579833984375, 0.00689697265625, -0.0012903213500976562, -0.0028858184814453125, -0.005260467529296875, 0.00972747802734375, 0.04461669921875, 0.003627777099609375, 0.01181793212890625, -0.07421875, -0.0266876220703125, 0.05084228515625, 0.0650634765625, -0.038665771484375, -0.0164794921875, 0.00980377197265625, 0.030059814453125, 0.025115966796875, -0.00926971435546875, 0.065185546875, 0.0290985107421875, 0.034423828125, 0.0205078125, 0.01432037353515625, 0.0136871337890625, -0.0191802978515625, 0.0106048583984375, -0.008544921875, -0.01087188720703125, 0.051910400390625, -0.0219268798828125, -0.0030345916748046875, 0.00899505615234375, 0.04290771484375, -0.0002491474151611328, 0.031768798828125, -0.0308990478515625, -0.025543212890625, -0.00815582275390625, 0.02850341796875, 0.03985595703125, -0.009521484375, -0.044219970703125, -0.038909912109375, 0.058319091796875, 0.030364990234375, 0.0283660888671875, -0.0042266845703125, 0.051483154296875, 0.051544189453125, -0.0160369873046875, -0.004352569580078125, 0.007232666015625, -0.007625579833984375, -0.03863525390625, -0.0322265625, -0.007541656494140625, 0.023406982421875, -0.0123291015625, 0.034271240234375, 0.036773681640625, 0.0219879150390625, 0.00995635986328125, 0.0142974853515625, 0.01416778564453125, -0.0157928466796875, 0.0253448486328125, 0.001888275146484375, 0.0142974853515625, 0.0303497314453125, -0.08807373046875, -0.032562255859375, -0.0093536376953125, 0.0269012451171875, 0.007080078125, 0.026214599609375, -0.0020732879638671875, 0.0214691162109375, 0.0135650634765625, -0.01377105712890625, 0.0017757415771484375, 0.0167999267578125, 0.00571441650390625, -0.00681304931640625, 0.019317626953125, -0.0028820037841796875, -0.08099365234375, -0.059112548828125, -0.02618408203125, 0.044769287109375, 0.0270233154296875, 0.06201171875, 0.00434112548828125, 0.0251312255859375, -0.048980712890625, 0.01474761962890625, -0.0313720703125, -0.033599853515625, 0.0227508544921875, 0.0458984375, 0.0181427001953125, -0.0265655517578125, 0.0116424560546875, -0.005840301513671875, 0.05206298828125, -0.06884765625, 0.006038665771484375, -0.031005859375, 0.013214111328125, -0.03717041015625, 0.060516357421875, -0.01348876953125, -0.0275726318359375, -0.013671875, 0.0131988525390625, 0.0206756591796875, 0.0227508544921875, -0.0232696533203125, 0.00926971435546875, -0.0222930908203125, -0.051544189453125, 0.0104217529296875, -0.054595947265625, -0.0022258758544921875, 0.0207366943359375, 0.04705810546875, -0.0279083251953125, -0.005329132080078125, -0.0248870849609375, -0.04718017578125, 0.0205841064453125, -0.01256561279296875, -0.0197906494140625, -0.0184783935546875, -0.08013916015625, -0.001140594482421875, 0.00666046142578125, -0.007251739501953125, 0.01535797119140625, -0.033843994140625, -0.01153564453125, 0.003864288330078125, 0.037384033203125, -0.0097198486328125, -0.01715087890625, 0.017608642578125, 0.0132904052734375, 0.023651123046875, 0.0086669921875, -0.0242462158203125, -0.04052734375, -0.01288604736328125, -0.0187530517578125, 0.01262664794921875, -0.0104522705078125, -0.019744873046875, -0.0269927978515625, -0.0635986328125, -0.0093231201171875, 0.0213775634765625, 0.0271759033203125, -0.05145263671875, -0.01325225830078125, -0.0011119842529296875, 0.00015974044799804688, -0.015655517578125, 0.044158935546875, 0.028076171875, -0.0506591796875, 0.00029754638671875, 0.039520263671875, 0.03619384765625, 0.0953369140625, 0.060638427734375, 0.00547027587890625, 0.01800537109375, 0.0002181529998779297, -0.0340576171875, -0.0849609375, 0.0224151611328125, -0.0679931640625, 0.0088348388671875, -0.0026798248291015625, 0.0015468597412109375, 0.00975799560546875, -0.058990478515625, -0.11968994140625, 0.08843994140625, -0.033599853515625, -0.04840087890625, -0.034088134765625, -0.00875091552734375, 0.0002601146697998047, -0.001556396484375, -0.019805908203125, -0.023712158203125, -0.04888916015625, 0.01136016845703125, 0.050048828125, 0.060028076171875, -0.00452423095703125, 0.07147216796875, -0.0028476715087890625, 0.066650390625, 0.0131683349609375, 0.00865936279296875, 0.00449371337890625, -0.0029048919677734375, 0.01239776611328125, 0.037261962890625, -0.023956298828125, -0.03387451171875, -0.0142364501953125, -0.0065155029296875, 0.007904052734375, -0.050994873046875, -0.036407470703125, -0.0323486328125, 0.05096435546875, 0.038848876953125, 0.0199127197265625, -0.0206451416015625, 0.03900146484375, 0.01824951171875, -0.018524169921875, -0.0028743743896484375, -0.008819580078125, -0.008758544921875, 0.0028533935546875, -0.0266265869140625, -0.01708984375, -0.0148773193359375, -0.01210784912109375, -0.051025390625, -0.012359619140625, -0.017913818359375, -0.005496978759765625, 0.01317596435546875, -0.0826416015625, 0.005878448486328125, 0.0012769699096679688, -0.01052093505859375, 0.004390716552734375, 0.043609619140625, -0.01537322998046875, 0.0765380859375, -0.0082855224609375, -0.046142578125, 0.01074981689453125, 0.053802490234375, -0.004726409912109375, 0.0194854736328125, -0.02862548828125, -0.0171661376953125, -0.01102447509765625, 0.046539306640625, 0.01126861572265625, 0.0633544921875, -0.0230712890625, 0.0487060546875, 0.020050048828125, 0.04046630859375, -0.0095367431640625, 0.002391815185546875, -0.00482940673828125, 0.023040771484375, -0.0172576904296875, -0.01343536376953125, 0.0231781005859375, -0.07659912109375, 0.01776123046875, 0.0191192626953125, -0.01354217529296875, -0.0199737548828125, 0.0154266357421875, 0.02398681640625, -0.007686614990234375, 0.0240631103515625 ]
06f664d66a95811424cc7f18d202f3f05f3fe587
Wordpress Stackexchange Q: Get the children of the parent category I'm trying to get all the children categories to display in this loop but I'm struggling with the code. This is what I have so far. <?php $args=array('orderby' => 'name', 'order' => 'ASC'); $categories=get_categories($args); foreach ($categories as $cat) { ?> <dt><a href="#" class="customer-acquisitiontop" id="<?php echo $cat->slug; ?>" data-filter=".<?php echo $cat->slug; ?>"><h2><?= $cat->cat_name; ?></h2></a></dt> <dd><div class="services"> <?= $categories=get_categories('parent'); ?> /*This should be the children of the parent category */ </div> </dd> <?php } ?> Any help would be great A: Use the code below in your archive.php file. This code will help you: <?php $term = get_queried_object(); $children = get_terms( $term->taxonomy, array( 'parent' => $term->term_id, 'hide_empty' => false ) ); if ( $children ) { foreach( $children as $subcat ) { echo '<li><a href="' . esc_url(get_term_link($subcat, $subcat->taxonomy)) . '">' . $subcat->name . '</a></li>'; } } ?>
Q: Get the children of the parent category I'm trying to get all the children categories to display in this loop but I'm struggling with the code. This is what I have so far. <?php $args=array('orderby' => 'name', 'order' => 'ASC'); $categories=get_categories($args); foreach ($categories as $cat) { ?> <dt><a href="#" class="customer-acquisitiontop" id="<?php echo $cat->slug; ?>" data-filter=".<?php echo $cat->slug; ?>"><h2><?= $cat->cat_name; ?></h2></a></dt> <dd><div class="services"> <?= $categories=get_categories('parent'); ?> /*This should be the children of the parent category */ </div> </dd> <?php } ?> Any help would be great A: Use the code below in your archive.php file. This code will help you: <?php $term = get_queried_object(); $children = get_terms( $term->taxonomy, array( 'parent' => $term->term_id, 'hide_empty' => false ) ); if ( $children ) { foreach( $children as $subcat ) { echo '<li><a href="' . esc_url(get_term_link($subcat, $subcat->taxonomy)) . '">' . $subcat->name . '</a></li>'; } } ?> A: You can't just pass the string "parent" to get_categories. You have to pass the ID of the parent. $categories=get_categories( array( 'parent' => $cat->cat_ID ) ); Notice that there are two similar but not equal "get child" parameters that you can use. child_of (integer) Display all categories that are descendants (i.e. children & grandchildren) of the category identified by its ID. There is no default for this parameter. If the parameter is used, the hide_empty parameter is set to false. parent (integer) Display only categories that are direct descendants (i.e. children only) of the category identified by its ID. This does NOT work like the 'child_of' parameter. There is no default for this parameter. [In 2.8.4] Now you need to loop over the $categories. You can't just echo an array. foreach ($categories as $c) { var_dump($c); // what you really want instead of var_dump is something to // to create markup-- list items maybe, For example... echo '<li>'.$c->cat_name.'</li>'; } A: If there are no values in the array you can try the following approach: $last_categories = get_categories( array( 'taxonomy' => 'product_cat', 'parent' => $sub_category->cat_ID ) ); A: To get child categories you can use following code. $category = get_queried_object(); // this is for getting the parent category on archive or any place the category object is called. $categories=get_categories( array( 'parent' => $category->term_id, 'hide_empty' => false ) ); Notice :- I have used 'hide_empty' => false to show categories with no any posts under it. Then use the $categories array to loop and make your markup.
wordpress
{ "language": "en", "length": 398, "provenance": "stackexchange_00019.jsonl.gz:426294", "question_score": "22", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74345" }
[ 0.03436279296875, 0.0123748779296875, -0.021331787109375, -0.04754638671875, 0.0274658203125, -0.020904541015625, 0.015655517578125, -0.00710296630859375, 0.01511383056640625, 0.004108428955078125, -0.045867919921875, -0.04913330078125, -0.033477783203125, -0.035491943359375, -0.039886474609375, -0.07635498046875, 0.03265380859375, -0.0186614990234375, 0.0240478515625, 0.0082550048828125, -0.0059967041015625, 0.031707763671875, 0.036773681640625, 0.033477783203125, 0.02093505859375, -0.054718017578125, 0.03753662109375, -0.033660888671875, -0.01027679443359375, -0.0494384765625, 0.007129669189453125, 0.045379638671875, 0.0063018798828125, -0.0201416015625, 0.047454833984375, -0.01531982421875, 0.00891876220703125, -0.019744873046875, 0.01971435546875, 0.0266876220703125, 0.0259552001953125, -0.017425537109375, 0.0455322265625, 0.01364898681640625, 0.004730224609375, -0.01898193359375, 0.009979248046875, -0.041259765625, 0.01161956787109375, -0.039093017578125, 0.04779052734375, 0.007965087890625, 0.055511474609375, -0.024627685546875, -0.01236724853515625, 0.032745361328125, 0.01555633544921875, -0.0220794677734375, 0.043060302734375, -0.01183319091796875, -0.05633544921875, -0.01641845703125, 0.033447265625, -0.0239105224609375, -0.0011129379272460938, 0.0096282958984375, 0.0283355712890625, 0.0164947509765625, -0.0357666015625, -0.005199432373046875, 0.037017822265625, -0.0266265869140625, -0.001190185546875, -0.023406982421875, -0.014190673828125, -0.037353515625, 0.0007925033569335938, -0.0347900390625, 0.005756378173828125, 0.0024662017822265625, -0.0012054443359375, 0.011383056640625, -0.06817626953125, 0.0347900390625, -0.022491455078125, 0.031646728515625, -0.0189361572265625, -0.0276947021484375, -0.039703369140625, -0.031890869140625, -0.0170745849609375, -0.01442718505859375, -0.01495361328125, -0.016143798828125, -0.004730224609375, -0.042938232421875, 0.047149658203125, 0.0733642578125, -0.0294189453125, -0.0265350341796875, -0.01629638671875, -0.01849365234375, -0.02203369140625, -0.030853271484375, 0.016693115234375, 0.0221710205078125, -0.0186004638671875, 0.018310546875, 0.07275390625, 0.037506103515625, 0.0227508544921875, 0.07080078125, -0.01032257080078125, -0.01177215576171875, -0.00815582275390625, 0.0290985107421875, -0.04510498046875, 0.01776123046875, -0.009979248046875, 0.0240325927734375, 0.0160064697265625, 0.039154052734375, -0.00984954833984375, -0.0157318115234375, -0.009124755859375, -0.0041351318359375, -0.007671356201171875, -0.0435791015625, 0.01026153564453125, -0.0295257568359375, -0.068359375, 0.034698486328125, 0.070556640625, 0.031463623046875, 0.0241851806640625, -0.0019207000732421875, -0.01085662841796875, -0.019195556640625, 0.02252197265625, -0.033111572265625, 0.020782470703125, 0.017578125, 0.05230712890625, 0.009063720703125, -0.00841522216796875, -0.002407073974609375, -0.0003376007080078125, 0.0150146484375, 0.0166778564453125, -0.01035308837890625, -0.0000011920928955078125, -0.055419921875, 0.07275390625, -0.02911376953125, -0.04302978515625, -0.0311431884765625, 0.0150146484375, -0.0230255126953125, -0.05914306640625, -0.053253173828125, 0.003971099853515625, 0.00809478759765625, 0.05364990234375, -0.033111572265625, -0.051788330078125, 0.003681182861328125, -0.0672607421875, -0.0242156982421875, 0.01427459716796875, -0.0100555419921875, 0.03289794921875, -0.037353515625, -0.0305938720703125, -0.0013141632080078125, 0.01474761962890625, 0.0188140869140625, -0.0523681640625, -0.0113067626953125, 0.05145263671875, -0.01512908935546875, -0.023590087890625, -0.0276947021484375, -0.0173492431640625, 0.0306396484375, -0.035858154296875, 0.019439697265625, -0.0033779144287109375, 0.0223541259765625, 0.015716552734375, -0.006244659423828125, 0.0178680419921875, 0.039825439453125, -0.0811767578125, 0.05841064453125, -0.00711822509765625, -0.0156707763671875, -0.03271484375, -0.0024013519287109375, -0.01251983642578125, -0.016876220703125, 0.00484466552734375, -0.0215606689453125, 0.00020194053649902344, -0.0096282958984375, -0.033538818359375, -0.00508880615234375, -0.006748199462890625, 0.0247344970703125, 0.01161956787109375, 0.0203704833984375, 0.000056684017181396484, -0.00859832763671875, -0.0015354156494140625, -0.039947509765625, -0.020294189453125, 0.0186004638671875, 0.0005536079406738281, 0.0012664794921875, -0.0019216537475585938, -0.0128326416015625, 0.0005636215209960938, -0.00542449951171875, 0.00667572021484375, 0.04254150390625, 0.061187744140625, -0.0010461807250976562, -0.0019054412841796875, -0.021759033203125, 0.0181427001953125, 0.038482666015625, -0.10675048828125, -0.0017385482788085938, 0.0478515625, 0.048065185546875, -0.039398193359375, 0.00015401840209960938, -0.00457000732421875, -0.0071258544921875, -0.00724029541015625, 0.03985595703125, 0.044952392578125, 0.01329803466796875, -0.023895263671875, -0.04803466796875, 0.09576416015625, -0.04595947265625, -0.022369384765625, -0.0306854248046875, -0.011962890625, 0.0213775634765625, 0.0170135498046875, 0.0330810546875, 0.007671356201171875, 0.03692626953125, 0.0223541259765625, 0.01971435546875, 0.001861572265625, -0.032501220703125, 0.0032138824462890625, -0.01186370849609375, 0.03271484375, -0.054901123046875, -0.07232666015625, 0.00518798828125, 0.0279388427734375, 0.003093719482421875, 0.0311737060546875, 0.0176239013671875, -0.0200653076171875, -0.004856109619140625, 0.0171051025390625, 0.002994537353515625, -0.0032939910888671875, 0.040740966796875, -0.033966064453125, -0.0261383056640625, -0.00925445556640625, -0.0018672943115234375, -0.0186004638671875, -0.00612640380859375, 0.022857666015625, 0.07452392578125, 0.06683349609375, -0.005268096923828125, -0.032958984375, -0.038299560546875, 0.0220489501953125, 0.04364013671875, -0.031036376953125, 0.0241851806640625, 0.0288238525390625, 0.07366943359375, 0.0004620552062988281, 0.01483917236328125, -0.025787353515625, 0.041748046875, 0.0220794677734375, -0.028656005859375, 0.040130615234375, -0.021331787109375, 0.0338134765625, 0.060791015625, -0.00807952880859375, 0.0104217529296875, -0.0015773773193359375, -0.03997802734375, 0.0005350112915039062, 0.0020427703857421875, -0.00872039794921875, -0.0187225341796875, -0.0302276611328125, 0.040130615234375, 0.025848388671875, 0.08648681640625, -0.0168914794921875, -0.06512451171875, 0.005062103271484375, 0.0297698974609375, -0.043914794921875, -0.046142578125, -0.008331298828125, -0.048370361328125, -0.0047760009765625, -0.005207061767578125, -0.0237884521484375, -0.0121612548828125, 0.0119781494140625, 0.014129638671875, 0.0192413330078125, -0.0404052734375, -0.0721435546875, -0.044342041015625, -0.07122802734375, 0.0221405029296875, -0.0017938613891601562, 0.0075531005859375, -0.006023406982421875, 0.0799560546875, 0.00567626953125, -0.0487060546875, -0.012786865234375, 0.065673828125, 0.0004267692565917969, -0.005901336669921875, -0.01116180419921875, -0.0205230712890625, 0.004306793212890625, -0.0018482208251953125, 0.035919189453125, -0.01387786865234375, 0.01485443115234375, -0.0112152099609375, 0.0017833709716796875, 0.03497314453125, 0.040802001953125, -0.036224365234375, -0.0079498291015625, 0.057220458984375, 0.0218505859375, -0.003841400146484375, -0.0220184326171875, -0.0333251953125, -0.0272216796875, 0.0313720703125, 0.0179290771484375, 0.0100860595703125, -0.0272674560546875, 0.0283966064453125, -0.039947509765625, -0.01393890380859375, -0.01055145263671875, -0.037750244140625, 0.0266571044921875, -0.00959014892578125, -0.0215301513671875, 0.008148193359375, 0.056488037109375, 0.00232696533203125, -0.0125885009765625, 0.00791168212890625, 0.0164031982421875, -0.004756927490234375, -0.0011272430419921875, -0.048065185546875, -0.06622314453125, 0.0506591796875, -0.028961181640625, -0.011871337890625, -0.04705810546875, -0.00888824462890625, -0.03228759765625, 0.0640869140625, -0.0357666015625, -0.019500732421875, -0.021728515625, -0.0021076202392578125, 0.00818634033203125, 0.01172637939453125, -0.0341796875, 0.0048980712890625, -0.07305908203125, 0.017974853515625, -0.002765655517578125, -0.026031494140625, -0.01038360595703125, -0.0186309814453125, -0.04248046875, -0.0262603759765625, 0.037384033203125, -0.004932403564453125, 0.005199432373046875, -0.00904083251953125, 0.006923675537109375, -0.036956787109375, -0.0229644775390625, 0.01678466796875, -0.0250701904296875, -0.018157958984375, 0.0279388427734375, 0.00562286376953125, 0.00928497314453125, -0.039947509765625, -0.00238800048828125, 0.046600341796875, 0.0168609619140625, -0.014984130859375, 0.0156707763671875, 0.0099639892578125, -0.054473876953125, -0.00669097900390625, 0.004428863525390625, -0.043487548828125, -0.033050537109375, -0.035491943359375, 0.0037631988525390625, 0.0194244384765625, -0.0271148681640625, -0.0103607177734375, -0.021820068359375, -0.0005354881286621094, -0.03680419921875, -0.0426025390625, -0.038818359375, -0.0197296142578125, -0.037200927734375, 0.0196533203125, -0.0145111083984375, -0.061065673828125, 0.028167724609375, 0.02593994140625, -0.0279388427734375, 0.0084991455078125, 0.033416748046875, 0.0215911865234375, -0.0345458984375, -0.0489501953125, -0.019256591796875, 0.014434814453125, -0.0335693359375, 0.05181884765625, 0.0166168212890625, -0.01166534423828125, 0.061767578125, -0.01062774658203125, 0.040008544921875, 0.020172119140625, 0.034881591796875, 0.003940582275390625, -0.0335693359375, 0.046539306640625, 0.03009033203125, -0.0714111328125, 0.007099151611328125, -0.017120361328125, -0.03607177734375, -0.025543212890625, 0.057159423828125, 0.006927490234375, 0.03302001953125, -0.043914794921875, -0.0201873779296875, -0.007457733154296875, 0.017608642578125, 0.044403076171875, 0.044677734375, -0.01187896728515625, 0.03216552734375, 0.032318115234375, -0.00347137451171875, -0.0357666015625, 0.03619384765625, -0.0281524658203125, 0.03411865234375, -0.050933837890625, -0.01788330078125, -0.042022705078125, -0.0012960433959960938, 0.0254669189453125, 0.010986328125, -0.0185699462890625, -0.004482269287109375, -0.01000213623046875, 0.01116180419921875, -0.00481414794921875, -0.014373779296875, 0.00942230224609375, 0.0263214111328125, 0.0222930908203125, 0.00766754150390625, -0.030426025390625, 0.0357666015625, -0.00685882568359375, -0.018157958984375, -0.0034694671630859375, -0.01959228515625, -0.01275634765625, 0.06085205078125, -0.009979248046875, 0.0180511474609375, -0.0010089874267578125, -0.024810791015625, -0.01294708251953125, 0.03131103515625, 0.034393310546875, -0.01849365234375, 0.01100921630859375, -0.00519561767578125, 0.0577392578125, -0.041015625, -0.031646728515625, 0.024322509765625, 0.0645751953125, 0.0161590576171875, -0.01222991943359375, -0.0020904541015625, -0.018768310546875, -0.034149169921875, 0.01107025146484375, 0.005512237548828125, 0.01898193359375, -0.0275115966796875, -0.03802490234375, 0.00846099853515625, 0.05047607421875, -0.025482177734375, 0.0149688720703125, -0.0173797607421875, 0.028472900390625, -0.0244140625, -0.024169921875, 0.03961181640625, 0.042510986328125, -0.04742431640625, -0.0035190582275390625, 0.0213165283203125, -0.005031585693359375, -0.0304107666015625, -0.03076171875, -0.04595947265625, 0.06964111328125, -0.0057373046875, 0.06781005859375, -0.04351806640625, -0.032684326171875, -0.0167236328125, -0.017547607421875, 0.0679931640625, 0.044525146484375, -0.05523681640625, -0.009429931640625, -0.04412841796875, -0.00402069091796875, -0.040069580078125, -0.0709228515625, -0.0287628173828125, -0.01082611083984375, -0.01788330078125, 0.004222869873046875, -0.0114898681640625, -0.0011730194091796875, -0.041839599609375, 0.00299835205078125, 0.0159149169921875, -0.0160064697265625, -0.00292205810546875, 0.051849365234375, -0.01837158203125, -0.0010194778442382812, 0.00965118408203125, 0.02423095703125, -0.00978851318359375, -0.005336761474609375, -0.0173492431640625, -0.0278472900390625, 0.01515960693359375, 0.02239990234375, -0.02374267578125, -0.021087646484375, 0.04608154296875, 0.01163482666015625, -0.0018148422241210938, 0.009857177734375, 0.01189422607421875, 0.0008511543273925781, 0.0297393798828125, 0.0157928466796875, 0.006744384765625, 0.0511474609375, -0.03155517578125, -0.01129150390625, 0.01192474365234375, -0.0143585205078125, 0.044403076171875, -0.01311492919921875, 0.02783203125, 0.0005550384521484375, -0.0198822021484375, 0.04644775390625, 0.0701904296875, 0.001922607421875, 0.0458984375, 0.041168212890625, 0.0286102294921875, 0.01251220703125, 0.0219573974609375, 0.033203125, 0.005748748779296875, 0.08233642578125, 0.00408172607421875, 0.0012445449829101562, 0.05682373046875, -0.043548583984375, -0.05584716796875, -0.021331787109375, -0.0131683349609375, 0.0134735107421875, -0.00841522216796875, 0.0169525146484375, -0.002628326416015625, -0.053192138671875, 0.0191802978515625, -0.016754150390625, -0.0011205673217773438, -0.0102386474609375, -0.031585693359375, -0.0416259765625, -0.006130218505859375, 0.006954193115234375, 0.00901031494140625, 0.00885772705078125, 0.037139892578125, 0.021881103515625, -0.0160675048828125, -0.00928497314453125, -0.00879669189453125, 0.042938232421875, -0.039581298828125, 0.0184173583984375, -0.00982666015625, 0.0035400390625, -0.032806396484375, 0.0298309326171875, 0.0006608963012695312, 0.023101806640625, -0.00907135009765625, -0.03955078125, -0.0178680419921875, 0.0200653076171875, -0.031982421875, 0.0191802978515625, -0.008758544921875, -0.07171630859375, -0.00044226646423339844, 0.007442474365234375, -0.01727294921875, -0.005191802978515625, -0.048583984375, 0.0073089599609375, -0.052398681640625, 0.042572021484375, -0.0215606689453125, -0.0228729248046875, 0.04071044921875, -0.00960540771484375, -0.0302581787109375, 0.0217437744140625, 0.03759765625, -0.016326904296875, -0.004062652587890625, 0.0309906005859375, -0.048919677734375, -0.0169677734375, 0.01183319091796875, -0.0010223388671875, -0.00806427001953125, -0.01277923583984375, -0.056610107421875, 0.06390380859375, -0.05126953125, 0.038421630859375, 0.01214599609375, 0.0172119140625, 0.005832672119140625, -0.0033321380615234375, -0.03509521484375, 0.05303955078125, 0.0709228515625, 0.01485443115234375, -0.042724609375, -0.03466796875, -0.0008950233459472656, 0.048370361328125, 0.017669677734375, -0.006488800048828125, -0.0396728515625, 0.0028171539306640625, 0.04791259765625, 0.0250091552734375, 0.005977630615234375, 0.05218505859375, 0.0008859634399414062, -0.01111602783203125, 0.0386962890625, -0.0221099853515625, 0.026824951171875, -0.00470733642578125, 0.0110015869140625, 0.020263671875, 0.021392822265625, 0.045562744140625, -0.0122833251953125, 0.009979248046875, -0.006618499755859375, -0.0193939208984375, 0.01849365234375, -0.0423583984375, 0.0054931640625, 0.050506591796875, 0.0238189697265625, -0.05474853515625, 0.006397247314453125, -0.033599853515625, 0.05853271484375, -0.00482177734375, 0.018646240234375, 0.014739990234375, 0.002994537353515625, 0.0535888671875, 0.0166015625, 0.01016998291015625, 0.033966064453125, 0.0007467269897460938, 0.031646728515625, 0.03240966796875, 0.0265655517578125, -0.02203369140625, 0.0030536651611328125, 0.05303955078125, 0.045623779296875, -0.03302001953125, -0.0858154296875, 0.01519012451171875, 0.022552490234375, 0.012481689453125, 0.05511474609375, 0.050933837890625, 0.0225677490234375, 0.10211181640625, -0.05877685546875, -0.0287933349609375, 0.01953125, 0.042572021484375, -0.009429931640625, -0.028778076171875, 0.0022029876708984375, -0.049041748046875, -0.0294342041015625, 0.00446319580078125, 0.014678955078125, 0.0523681640625, 0.017608642578125, 0.03497314453125, -0.04791259765625, -0.028839111328125, 0.0174407958984375, -0.0242919921875, 0.01122283935546875, -0.0302581787109375, 0.018463134765625, 0.0162353515625, -0.0019445419311523438, 0.01204681396484375, 0.020111083984375, 0.00009626150131225586, 0.05303955078125, 0.054107666015625, -0.02288818359375, -0.016021728515625, 0.0369873046875, -0.01145172119140625, -0.005474090576171875, -0.0191802978515625, 0.012542724609375, 0.035247802734375, 0.0150909423828125, 0.014404296875, 0.03497314453125, 0.0411376953125, -0.01076507568359375, 0.053558349609375, -0.01250457763671875, -0.005153656005859375, 0.0321044921875, -0.0245819091796875, 0.055908203125, 0.01447296142578125, -0.11077880859375, -0.037200927734375, -0.007694244384765625, -0.0151214599609375, 0.053070068359375, 0.04193115234375, -0.02252197265625, 0.0166168212890625, 0.0131072998046875, -0.0279083251953125, 0.027313232421875, 0.0127410888671875, -0.01611328125, -0.004894256591796875, 0.01271820068359375, -0.0223388671875, 0.011260986328125, 0.0172576904296875, 0.0273590087890625, 0.0063629150390625, 0.01383209228515625, 0.0298919677734375, -0.0004165172576904297, 0.0031490325927734375, -0.00882720947265625, 0.01336669921875, -0.04461669921875, -0.05029296875, 0.0703125, -0.0611572265625, -0.02618408203125, 0.00492095947265625, -0.01279449462890625, 0.02099609375, 0.0252685546875, -0.0258331298828125, -0.0088043212890625, -0.0006952285766601562, 0.01161956787109375, -0.0104217529296875, 0.0297088623046875, -0.01264190673828125, -0.025360107421875, -0.021759033203125, -0.0258636474609375, 0.0433349609375, 0.09698486328125, 0.0262908935546875, 0.017181396484375, 0.00027942657470703125, -0.006107330322265625, 0.01983642578125, -0.0009784698486328125, 0.01560211181640625, 0.0269775390625, -0.0270538330078125, -0.029144287109375, 0.0178985595703125, -0.00933074951171875, 0.0170745849609375, 0.004161834716796875, 0.03515625, 0.020782470703125, -0.00592803955078125, 0.0097503662109375, 0.049560546875, 0.01508331298828125, -0.05157470703125, 0.0017805099487304688, 0.061309814453125, -0.0369873046875, 0.0011587142944335938, -0.040313720703125, -0.0301971435546875, -0.060821533203125, 0.0037384033203125, 0.01326751708984375, -0.0189208984375, -0.0191192626953125, -0.01357269287109375, 0.0099334716796875, 0.051422119140625, 0.0200653076171875, -0.033843994140625, 0.007701873779296875, -0.0174713134765625, 0.048431396484375, 0.0186309814453125, -0.007343292236328125, 0.00826263427734375, 0.0028247833251953125, -0.030792236328125, 0.028411865234375, -0.0297088623046875, -0.01384735107421875, -0.016845703125, 0.0151824951171875, 0.0148468017578125, -0.0267486572265625, 0.00823211669921875, 0.016021728515625, 0.04534912109375, 0.053314208984375, 0.0655517578125, -0.0260467529296875, -0.0240478515625, 0.03900146484375, -0.0335693359375, 0.00046634674072265625, 0.036346435546875, -0.002918243408203125, -0.04248046875, -0.0287933349609375, 0.0311279296875, 0.045257568359375, -0.03558349609375, -0.060546875, 0.098876953125, -0.04290771484375, -0.029144287109375, -0.01326751708984375, -0.0038967132568359375, -0.0227813720703125, -0.0014028549194335938, 0.007625579833984375, -0.00627899169921875, -0.00699615478515625, 0.0240478515625, -0.005794525146484375, 0.0137939453125, 0.003383636474609375, -0.01357269287109375, -0.048828125, 0.0170440673828125, 0.0114288330078125, -0.0035076141357421875, -0.0305938720703125, 0.0249176025390625, 0.003963470458984375, 0.040435791015625, -0.006008148193359375, -0.028717041015625, 0.00913238525390625, 0.010589599609375, 0.01325225830078125, -0.04425048828125, -0.03375244140625, -0.033721923828125, 0.024993896484375, 0.0015821456909179688, -0.0011081695556640625, 0.0020236968994140625, -0.045806884765625, -0.027496337890625, -0.0183868408203125, 0.002071380615234375, 0.0281982421875, -0.0819091796875, -0.0010242462158203125, 0.033599853515625, -0.0061798095703125, -0.0205230712890625, -0.00872039794921875, -0.03826904296875, -0.02337646484375, -0.010986328125, 0.005680084228515625, 0.00563812255859375, 0.039794921875, 0.01495361328125, -0.042816162109375, -0.06097412109375, -0.014678955078125, 0.0014028549194335938, -0.0462646484375, -0.06915283203125, -0.0251617431640625, 0.005329132080078125, 0.01435089111328125, 0.01018524169921875, 0.016876220703125, 0.0216217041015625, 0.0176239013671875, 0.0082550048828125, -0.03424072265625, 0.0072174072265625, 0.01189422607421875, -0.0286712646484375, -0.02874755859375, 0.049041748046875, 0.03314208984375, 0.0709228515625, -0.0005469322204589844, 0.048309326171875, -0.00339508056640625, 0.062469482421875, -0.0116424560546875, -0.0218505859375, 0.01202392578125, -0.050018310546875, 0.006317138671875, -0.0308074951171875, -0.0220794677734375, -0.0196990966796875, -0.006877899169921875, -0.01177978515625, -0.0421142578125, 0.024627685546875 ]
7d553ea6bf64cab4c473e25f3ef028f1c053ba43
Wordpress Stackexchange Q: Check if specific username is logged in How can you check if specific username is logged in? A: wp_get_current_user then compare the object that's returned user_login proprety with the specific username you'd like to check against. <?php add_action('admin_init', 'wpse74389_check_username'); function wpse74389_check_username() { $user = wp_get_current_user(); if($user && isset($user->user_login) && 'username_to_check' == $user->user_login) { // do stuff } }
Q: Check if specific username is logged in How can you check if specific username is logged in? A: wp_get_current_user then compare the object that's returned user_login proprety with the specific username you'd like to check against. <?php add_action('admin_init', 'wpse74389_check_username'); function wpse74389_check_username() { $user = wp_get_current_user(); if($user && isset($user->user_login) && 'username_to_check' == $user->user_login) { // do stuff } }
wordpress
{ "language": "en", "length": 59, "provenance": "stackexchange_00019.jsonl.gz:426305", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74389" }
[ 0.059234619140625, 0.027984619140625, -0.01519775390625, -0.0361328125, 0.0261688232421875, -0.038299560546875, 0.043426513671875, -0.01285552978515625, -0.05377197265625, 0.050048828125, -0.0140228271484375, 0.0304718017578125, 0.00766754150390625, -0.0015869140625, 0.0085601806640625, -0.034393310546875, 0.00016796588897705078, 0.00431060791015625, 0.0101165771484375, -0.03863525390625, 0.029937744140625, -0.0265655517578125, 0.025146484375, 0.02838134765625, 0.0120391845703125, -0.0550537109375, 0.1337890625, -0.0270233154296875, 0.053497314453125, -0.0070648193359375, 0.037841796875, -0.060089111328125, -0.0177154541015625, 0.0574951171875, -0.013214111328125, -0.01119232177734375, -0.018218994140625, 0.045654296875, 0.05194091796875, -0.0153961181640625, 0.028076171875, -0.006801605224609375, -0.03912353515625, 0.04376220703125, -0.050506591796875, -0.05364990234375, 0.036956787109375, 0.0092010498046875, 0.041351318359375, 0.0290374755859375, 0.01293182373046875, 0.01806640625, 0.0101165771484375, -0.004955291748046875, -0.006931304931640625, 0.01332855224609375, -0.00894927978515625, 0.02252197265625, 0.04736328125, -0.0291595458984375, -0.04266357421875, -0.03369140625, 0.0389404296875, -0.0136260986328125, -0.00821685791015625, 0.00121307373046875, 0.01136016845703125, 0.0265960693359375, -0.00921630859375, -0.03961181640625, -0.004940032958984375, -0.004550933837890625, -0.017059326171875, 0.037109375, -0.02264404296875, -0.052398681640625, 0.032958984375, -0.0180206298828125, 0.0018463134765625, 0.0452880859375, -0.0228729248046875, 0.0168609619140625, -0.07940673828125, 0.0013513565063476562, 0.024658203125, 0.051605224609375, -0.0257415771484375, -0.033966064453125, -0.004596710205078125, -0.037750244140625, -0.0175323486328125, 0.0146331787109375, -0.0110931396484375, -0.01776123046875, -0.04595947265625, -0.023284912109375, 0.0286712646484375, 0.06451416015625, -0.01727294921875, -0.048431396484375, -0.018035888671875, 0.001293182373046875, -0.08935546875, 0.008026123046875, 0.0008425712585449219, 0.0487060546875, 0.0280303955078125, 0.01485443115234375, 0.006214141845703125, -0.009002685546875, -0.00428009033203125, 0.0017108917236328125, -0.039947509765625, -0.06182861328125, 0.006587982177734375, 0.0587158203125, -0.032379150390625, 0.00907135009765625, 0.00901031494140625, 0.00919342041015625, 0.0017299652099609375, 0.016998291015625, 0.0208740234375, -0.0159912109375, 0.007556915283203125, 0.007495880126953125, -0.01557159423828125, -0.03265380859375, -0.0166168212890625, 0.037078857421875, -0.027313232421875, 0.01751708984375, 0.022918701171875, -0.01500701904296875, -0.0190582275390625, -0.0256805419921875, 0.0187530517578125, 0.006580352783203125, -0.0182647705078125, 0.022674560546875, 0.00945281982421875, -0.051116943359375, -0.02874755859375, -0.00888824462890625, 0.00527191162109375, 0.02362060546875, 0.023193359375, 0.01080322265625, -0.0141143798828125, -0.063720703125, 0.0298614501953125, -0.0015811920166015625, -0.0577392578125, 0.03424072265625, 0.09222412109375, 0.04400634765625, 0.04071044921875, 0.002460479736328125, 0.004852294921875, 0.05029296875, 0.0194549560546875, -0.0033969879150390625, -0.00238037109375, -0.012664794921875, -0.044891357421875, -0.00196075439453125, -0.026611328125, -0.009979248046875, 0.02569580078125, -0.019439697265625, 0.0347900390625, 0.031341552734375, 0.063720703125, 0.019256591796875, 0.00891876220703125, -0.0164642333984375, -0.036865234375, 0.057708740234375, 0.0151214599609375, 0.0234832763671875, 0.006145477294921875, -0.034088134765625, 0.040008544921875, 0.003116607666015625, -0.033447265625, 0.0016889572143554688, 0.01800537109375, 0.00693511962890625, 0.0253143310546875, -0.0032024383544921875, 0.0279693603515625, 0.026123046875, -0.02020263671875, -0.022186279296875, 0.01305389404296875, -0.020477294921875, 0.0135955810546875, -0.012908935546875, 0.002079010009765625, 0.01397705078125, 0.07171630859375, -0.01407623291015625, 0.0211944580078125, -0.04931640625, -0.07403564453125, 0.01511383056640625, -0.017913818359375, 0.03662109375, 0.030364990234375, 0.020721435546875, -0.0104522705078125, -0.00009435415267944336, 0.011199951171875, -0.05047607421875, -0.036865234375, 0.00567626953125, -0.019287109375, 0.0134735107421875, 0.0074005126953125, 0.017547607421875, -0.008514404296875, 0.0115203857421875, -0.01549530029296875, -0.03582763671875, -0.00235748291015625, 0.003948211669921875, -0.023651123046875, 0.0002968311309814453, -0.0096893310546875, 0.0191650390625, -0.01102447509765625, 0.00875091552734375, 0.004741668701171875, 0.0498046875, -0.0017061233520507812, -0.007160186767578125, 0.0179443359375, -0.05059814453125, 0.021759033203125, 0.02789306640625, 0.0249176025390625, 0.0093536376953125, -0.01007843017578125, 0.0152587890625, 0.01102447509765625, -0.030548095703125, 0.007503509521484375, 0.0082550048828125, 0.016998291015625, 0.06329345703125, -0.038238525390625, 0.0260467529296875, 0.0267181396484375, -0.0034427642822265625, -0.0007004737854003906, 0.047576904296875, -0.016571044921875, 0.01708984375, -0.05072021484375, 0.0297088623046875, -0.018951416015625, -0.00945281982421875, 0.038543701171875, -0.0254058837890625, 0.00989532470703125, -0.0306549072265625, -0.01313018798828125, -0.034515380859375, -0.00396728515625, -0.00147247314453125, 0.0216217041015625, -0.07879638671875, 0.0016222000122070312, 0.037811279296875, 0.054595947265625, 0.006908416748046875, -0.04278564453125, -0.021697998046875, 0.040130615234375, 0.0266876220703125, -0.01270294189453125, -0.01305389404296875, 0.02984619140625, -0.0013427734375, 0.011962890625, -0.0309906005859375, 0.04180908203125, 0.01019287109375, 0.01088714599609375, -0.0309906005859375, 0.02020263671875, -0.001739501953125, -0.0296783447265625, 0.047393798828125, -0.01004791259765625, -0.040252685546875, -0.008941650390625, -0.0272979736328125, 0.02545166015625, -0.040008544921875, 0.006229400634765625, 0.048065185546875, -0.0013580322265625, -0.0015287399291992188, -0.024627685546875, -0.0347900390625, -0.042816162109375, 0.00010728836059570312, -0.0231781005859375, -0.035919189453125, -0.006984710693359375, 0.0941162109375, 0.0111541748046875, 0.053802490234375, -0.012115478515625, -0.045623779296875, 0.00005358457565307617, 0.0059814453125, -0.04473876953125, -0.05938720703125, -0.07086181640625, -0.0843505859375, 0.049224853515625, -0.03472900390625, -0.006710052490234375, 0.01459503173828125, -0.0124664306640625, 0.0296783447265625, -0.0031223297119140625, -0.023956298828125, -0.034393310546875, -0.06353759765625, -0.06243896484375, -0.009429931640625, -0.0025787353515625, 0.01081085205078125, 0.0126495361328125, 0.033935546875, 0.005687713623046875, -0.036956787109375, -0.00423431396484375, 0.021331787109375, -0.00754547119140625, -0.01320648193359375, -0.056365966796875, 0.03515625, 0.0174102783203125, 0.00798797607421875, -0.0102996826171875, -0.0091094970703125, 0.01739501953125, -0.0185546875, 0.0157928466796875, -0.034332275390625, 0.04833984375, 0.0205078125, -0.06170654296875, 0.00675201416015625, 0.06280517578125, -0.044281005859375, 0.00685882568359375, -0.001983642578125, -0.032867431640625, 0.051177978515625, 0.00811004638671875, -0.0258026123046875, 0.0426025390625, -0.035491943359375, 0.0259246826171875, 0.03912353515625, -0.03558349609375, 0.01204681396484375, 0.01001739501953125, 0.0163116455078125, 0.041473388671875, 0.0313720703125, -0.0234527587890625, -0.042144775390625, -0.01470184326171875, -0.0418701171875, -0.0218505859375, -0.04107666015625, 0.0167999267578125, -0.00038933753967285156, -0.052490234375, 0.04681396484375, -0.0195465087890625, 0.006427764892578125, -0.03521728515625, -0.0248260498046875, -0.001972198486328125, 0.0992431640625, 0.016937255859375, -0.0157470703125, -0.0009603500366210938, -0.01464080810546875, -0.036834716796875, 0.00472259521484375, -0.0577392578125, -0.0016813278198242188, -0.0731201171875, -0.025360107421875, -0.01605224609375, -0.032684326171875, -0.0170135498046875, -0.0109405517578125, -0.05047607421875, -0.04193115234375, -0.005771636962890625, -0.02203369140625, 0.03082275390625, -0.0253143310546875, -0.0083770751953125, -0.0135650634765625, 0.0443115234375, -0.0594482421875, -0.06085205078125, -0.000002682209014892578, -0.0595703125, 0.055572509765625, 0.042755126953125, -0.0165557861328125, -0.018402099609375, 0.02215576171875, 0.006488800048828125, -0.00399017333984375, 0.00966644287109375, -0.0126953125, 0.046661376953125, 0.0266876220703125, -0.0149688720703125, 0.01232147216796875, -0.0142974853515625, -0.019744873046875, -0.01226043701171875, -0.006969451904296875, -0.032867431640625, -0.019683837890625, -0.00827789306640625, -0.01062774658203125, -0.01751708984375, 0.01983642578125, 0.0357666015625, 0.019744873046875, 0.01505279541015625, -0.00572967529296875, 0.01543426513671875, -0.0274505615234375, 0.07611083984375, 0.030059814453125, -0.0181121826171875, -0.0073089599609375, 0.07781982421875, 0.00420379638671875, -0.0386962890625, -0.04339599609375, 0.0413818359375, 0.035736083984375, 0.00653076171875, 0.05584716796875, 0.0264434814453125, -0.02734375, 0.05755615234375, 0.0216827392578125, 0.00246429443359375, 0.005615234375, 0.0157318115234375, -0.01544189453125, -0.03167724609375, 0.01739501953125, -0.0211181640625, 0.01007080078125, 0.001071929931640625, 0.021392822265625, -0.0479736328125, 0.007480621337890625, 0.036834716796875, 0.01200103759765625, 0.007568359375, -0.0184478759765625, -0.06414794921875, 0.01611328125, -0.044891357421875, -0.00798797607421875, 0.0092926025390625, -0.0034637451171875, 0.022247314453125, 0.023529052734375, -0.017791748046875, -0.0083770751953125, -0.0157623291015625, 0.01959228515625, 0.0156707763671875, -0.0262298583984375, -0.00215911865234375, -0.01091766357421875, -0.02752685546875, 0.09942626953125, -0.004138946533203125, -0.060546875, 0.054901123046875, -0.055023193359375, -0.007053375244140625, 0.050048828125, 0.00868988037109375, 0.0419921875, -0.003692626953125, -0.040496826171875, -0.0169830322265625, -0.04296875, -0.01372528076171875, -0.05322265625, 0.00844573974609375, -0.0213165283203125, -0.0012340545654296875, 0.023895263671875, 0.0401611328125, -0.01873779296875, 0.0462646484375, -0.018310546875, 0.023529052734375, 0.07501220703125, 0.00199127197265625, 0.034912109375, -0.007740020751953125, -0.040496826171875, -0.01351165771484375, 0.0010623931884765625, -0.01507568359375, -0.0175323486328125, 0.006893157958984375, 0.00974273681640625, -0.004970550537109375, 0.01143646240234375, 0.019378662109375, 0.00865936279296875, -0.0013933181762695312, 0.0108489990234375, -0.0229339599609375, -0.061798095703125, -0.026519775390625, 0.00601959228515625, 0.0164947509765625, -0.0338134765625, -0.007038116455078125, -0.022857666015625, -0.032806396484375, -0.00838470458984375, 0.02239990234375, -0.031463623046875, 0.00482940673828125, -0.006946563720703125, -0.07794189453125, -0.02978515625, 0.0065765380859375, -0.00542449951171875, 0.0014810562133789062, -0.00997161865234375, -0.049957275390625, 0.0214385986328125, -0.0059356689453125, 0.0267486572265625, -0.0263824462890625, -0.007678985595703125, 0.006053924560546875, 0.002285003662109375, 0.050994873046875, 0.004810333251953125, -0.046966552734375, 0.0146331787109375, -0.038604736328125, -0.007472991943359375, 0.0301055908203125, -0.0226287841796875, -0.043914794921875, -0.047027587890625, 0.0143280029296875, 0.009735107421875, 0.01251983642578125, 0.008544921875, 0.0017004013061523438, 0.0233154296875, -0.002376556396484375, 0.0272674560546875, -0.03741455078125, 0.09130859375, 0.0212554931640625, 0.0103759765625, 0.003814697265625, 0.057647705078125, -0.00518035888671875, -0.00811767578125, 0.0153045654296875, 0.03167724609375, -0.021697998046875, -0.030548095703125, 0.0338134765625, -0.057830810546875, 0.03326416015625, -0.0150909423828125, -0.03570556640625, 0.0113525390625, 0.01490020751953125, -0.0067291259765625, -0.00881195068359375, 0.041351318359375, -0.055084228515625, -0.00237274169921875, 0.005367279052734375, 0.0163726806640625, -0.0302581787109375, -0.0279541015625, 0.00786590576171875, 0.0205078125, -0.00818634033203125, 0.003383636474609375, -0.04229736328125, 0.039825439453125, 0.0531005859375, 0.033355712890625, 0.035125732421875, 0.01253509521484375, 0.034576416015625, -0.006175994873046875, -0.0194091796875, 0.006397247314453125, -0.0218505859375, 0.034393310546875, 0.0015630722045898438, -0.01222991943359375, 0.044830322265625, -0.028656005859375, 0.0218353271484375, 0.0726318359375, 0.06146240234375, -0.11578369140625, 0.0292510986328125, 0.0030727386474609375, 0.018310546875, 0.06182861328125, 0.0016775131225585938, -0.0101165771484375, -0.017608642578125, 0.048309326171875, -0.04705810546875, -0.018402099609375, 0.023223876953125, -0.0233001708984375, 0.0017728805541992188, -0.0274658203125, 0.041961669921875, 0.000606536865234375, -0.00745391845703125, -0.021240234375, -0.0025730133056640625, -0.0166473388671875, -0.0064544677734375, 0.00894927978515625, 0.0029773712158203125, -0.0008320808410644531, -0.047637939453125, 0.0151214599609375, -0.053253173828125, -0.0009074211120605469, 0.038909912109375, 0.005126953125, 0.05731201171875, 0.050506591796875, 0.006305694580078125, -0.004901885986328125, 0.0208282470703125, -0.00927734375, 0.00521087646484375, -0.0085601806640625, 0.0054931640625, 0.0302886962890625, -0.04437255859375, 0.0213470458984375, -0.030853271484375, 0.0010118484497070312, -0.004123687744140625, -0.04425048828125, 0.06744384765625, -0.0290679931640625, -0.01271820068359375, 0.0167236328125, 0.025146484375, -0.01348876953125, -0.00231170654296875, 0.01184844970703125, -0.04278564453125, -0.027069091796875, 0.002567291259765625, -0.0521240234375, -0.0012922286987304688, -0.0238189697265625, -0.07208251953125, 0.042449951171875, 0.03167724609375, 0.040557861328125, -0.01490020751953125, -0.0011644363403320312, 0.00864410400390625, -0.0039005279541015625, -0.060455322265625, 0.0616455078125, 0.01088714599609375, 0.07379150390625, -0.0455322265625, -0.004486083984375, 0.023895263671875, -0.00298309326171875, 0.0090179443359375, 0.01812744140625, -0.0243988037109375, -0.0428466796875, -0.047576904296875, 0.029571533203125, 0.0026035308837890625, 0.034393310546875, -0.00286102294921875, 0.03326416015625, 0.044464111328125, -0.0044097900390625, 0.0394287109375, -0.0016870498657226562, -0.046234130859375, 0.0196533203125, -0.00313568115234375, -0.0296630859375, -0.028289794921875, 0.024749755859375, -0.07269287109375, -0.007038116455078125, 0.03497314453125, 0.013702392578125, 0.0296783447265625, 0.0276031494140625, 0.021087646484375, -0.015380859375, -0.017364501953125, -0.01605224609375, 0.040496826171875, -0.01503753662109375, -0.002899169921875, 0.035858154296875, 0.0230865478515625, -0.01535797119140625, -0.00518035888671875, -0.003482818603515625, 0.0019159317016601562, -0.0177764892578125, 0.034820556640625, 0.039398193359375, 0.0216827392578125, -0.027862548828125, 0.002376556396484375, 0.029205322265625, 0.047119140625, -0.0362548828125, -0.002513885498046875, 0.0148773193359375, -0.0005121231079101562, 0.015594482421875, 0.003887176513671875, 0.056488037109375, 0.0118865966796875, -0.00035572052001953125, -0.034393310546875, 0.0149688720703125, 0.0382080078125, -0.0012884140014648438, 0.0108184814453125, 0.0212249755859375, -0.06103515625, 0.0204620361328125, -0.0141754150390625, -0.0023860931396484375, 0.033172607421875, 0.00806427001953125, -0.0080108642578125, 0.01739501953125, 0.0115814208984375, 0.00689697265625, -0.0111846923828125, -0.0016994476318359375, 0.005252838134765625, 0.004962921142578125, -0.0224456787109375, -0.0186309814453125, 0.01436614990234375, 0.0262908935546875, -0.00618743896484375, -0.0301971435546875, -0.029815673828125, -0.01378631591796875, -0.0134124755859375, -0.0175628662109375, 0.017364501953125, -0.00881195068359375, 0.011688232421875, -0.0161285400390625, 0.0113525390625, 0.0248260498046875, 0.0094146728515625, -0.0191192626953125, 0.0299530029296875, 0.048980712890625, -0.0237579345703125, 0.035858154296875, 0.0023670196533203125, -0.0255889892578125, -0.0016355514526367188, -0.0023059844970703125, 0.045318603515625, 0.00627899169921875, -0.08441162109375, -0.024993896484375, 0.016326904296875, -0.03680419921875, 0.022918701171875, 0.045196533203125, 0.00244140625, -0.004405975341796875, 0.02716064453125, -0.038421630859375, 0.01258087158203125, 0.019195556640625, 0.02264404296875, 0.0028839111328125, 0.00965118408203125, 0.00832366943359375, -0.0157318115234375, -0.00811004638671875, 0.002643585205078125, -0.0005645751953125, 0.03948974609375, -0.022918701171875, 0.0245361328125, 0.01450347900390625, -0.0203399658203125, 0.02081298828125, -0.051666259765625, -0.043670654296875, 0.044769287109375, -0.040863037109375, -0.042144775390625, 0.01953125, -0.069580078125, 0.06427001953125, -0.0195159912109375, 0.064453125, 0.0677490234375, -0.06524658203125, 0.007312774658203125, 0.01983642578125, -0.01006317138671875, -0.0313720703125, -0.05712890625, -0.007724761962890625, 0.033538818359375, -0.01007080078125, 0.00785064697265625, -0.005115509033203125, 0.035675048828125, -0.03961181640625, -0.0377197265625, 0.0005712509155273438, -0.0394287109375, -0.037109375, 0.00940704345703125, 0.0142974853515625, 0.0149078369140625, -0.065185546875, -0.03314208984375, 0.0035114288330078125, -0.0167388916015625, -0.0266265869140625, -0.03631591796875, 0.0150909423828125, 0.01806640625, 0.0240020751953125, 0.03338623046875, -0.027313232421875, 0.00617218017578125, 0.00969696044921875, -0.0083770751953125, 0.034942626953125, -0.08087158203125, -0.034271240234375, -0.0477294921875, -0.01186370849609375, 0.006977081298828125, -0.01995849609375, -0.037994384765625, -0.0025691986083984375, 0.00734710693359375, -0.0025959014892578125, -0.0322265625, 0.00025081634521484375, 0.0023250579833984375, -0.0377197265625, 0.01459503173828125, -0.03887939453125, -0.034881591796875, 0.03948974609375, 0.07745361328125, -0.01306915283203125, 0.0200042724609375, 0.0071258544921875, -0.0360107421875, 0.016265869140625, 0.01538848876953125, 0.034088134765625, -0.01442718505859375, -0.04010009765625, 0.026153564453125, -0.016937255859375, 0.056549072265625, -0.028076171875, -0.031036376953125, 0.0160980224609375, -0.0166778564453125, 0.01739501953125, -0.0202789306640625, -0.01453399658203125, -0.028900146484375, -0.0144195556640625, -0.0172576904296875, 0.01369476318359375, 0.058929443359375, -0.01910400390625, -0.0772705078125, 0.05194091796875, -0.018585205078125, -0.042022705078125, -0.06292724609375, 0.0246124267578125, 0.00600433349609375, -0.02105712890625, -0.035858154296875, 0.0013589859008789062, -0.0247650146484375, 0.03741455078125, 0.0256805419921875, 0.005016326904296875, 0.03839111328125, 0.038116455078125, -0.052978515625, 0.0035762786865234375, -0.0231781005859375, 0.001178741455078125, 0.016754150390625, 0.0130462646484375, 0.00803375244140625, 0.043060302734375, -0.0189056396484375, 0.0174102783203125, -0.032684326171875, -0.0092620849609375, -0.032562255859375, -0.037353515625, 0.029052734375, 0.005931854248046875, 0.0283203125, 0.044677734375, -0.00042891502380371094, -0.028900146484375, -0.057342529296875, -0.0457763671875, -0.0086822509765625, -0.00527191162109375, 0.0222320556640625, -0.06640625, 0.0193939208984375, -0.00598907470703125, -0.0281219482421875, -0.024139404296875, 0.02764892578125, -0.05169677734375, 0.008819580078125, 0.037750244140625, -0.0117340087890625, -0.01012420654296875, -0.0017309188842773438, 0.036590576171875, -0.037445068359375, -0.0452880859375, 0.003997802734375, 0.007244110107421875, -0.0164947509765625, -0.040435791015625, 0.04327392578125, 0.0210723876953125, -0.032684326171875, -0.0096435546875, 0.029327392578125, 0.02008056640625, 0.0028972625732421875, -0.040130615234375, -0.025299072265625, 0.005420684814453125, 0.00716400146484375, 0.006023406982421875, -0.005100250244140625, 0.013153076171875, 0.0069580078125, 0.043731689453125, 0.0033206939697265625, 0.01690673828125, -0.02972412109375, 0.05548095703125, 0.017364501953125, -0.03582763671875, 0.033294677734375, -0.01499176025390625, -0.0242919921875, 0.00832366943359375, -0.023193359375, -0.0838623046875, 0.06134033203125, 0.0062408447265625, 0.0215301513671875, 0.034393310546875 ]
8d09f350adc2808cf5038786729df2d5ae9ee2f6
Wordpress Stackexchange Q: How does WordPress generate URL slugs? Is there a page somewhere that details exactly how WordPress generates slugs for URLs? I'm writing a script that needs to generate URL slugs identical to the ones WordPress generates. A: You can use this function: static public function slugify($text) { // replace non letter or digits by - $text = preg_replace('~[^\pL\d]+~u', '-', $text); // transliterate $text = iconv('utf-8', 'us-ascii//TRANSLIT', $text); // remove unwanted characters $text = preg_replace('~[^-\w]+~', '', $text); // trim $text = trim($text, '-'); // remove duplicate - $text = preg_replace('~-+~', '-', $text); // lowercase $text = strtolower($text); if (empty($text)) { return 'n-a'; } return $text; } Its kind of exactly how the wp url sanitize function works.
Q: How does WordPress generate URL slugs? Is there a page somewhere that details exactly how WordPress generates slugs for URLs? I'm writing a script that needs to generate URL slugs identical to the ones WordPress generates. A: You can use this function: static public function slugify($text) { // replace non letter or digits by - $text = preg_replace('~[^\pL\d]+~u', '-', $text); // transliterate $text = iconv('utf-8', 'us-ascii//TRANSLIT', $text); // remove unwanted characters $text = preg_replace('~[^-\w]+~', '', $text); // trim $text = trim($text, '-'); // remove duplicate - $text = preg_replace('~-+~', '-', $text); // lowercase $text = strtolower($text); if (empty($text)) { return 'n-a'; } return $text; } Its kind of exactly how the wp url sanitize function works. A: Core at your service There's no developer mode built into WordPress aside from WP_DEBUG, which doesn't help you too much in this case. Basically WP uses the "Rewrite API", which is a function based, low level wrapper for the WP_Rewrite class, which you can read about in Codex. The global $wp_rewrite object stands at your service to inspect it or interact with the class. Plugins that help looking into it. Toschos "T5 Rewrite"-Plugin and Jan Fabrys "Monkeyman Rewrite Analyzer"-Plugin will guide you your way. I've written a small extension for "T5 Rewrite" to smoothly integrate it with the "Monkeyman Rewrite Analyzer", which you can find in the "T5 Rewrite" repos wikie here on GitHub. The "Monkeyman"-plugin adds a new page, filed in the admin UI menu under Tools. The "T5 Rewrite"-plugin adds a new help tab to the Settings > Permalinks page. My extension adds the help tabs to the mentioned Tools-page too. Here's a screenshot of what the "T5 Rewrite"-plugins help tab content looks like. Vorlage = Pattern | Beschreibung = Explanation | Beispiele = Examples Notes The "T5 Rewrite"-plugin does a wonderful job with helping you inspect the rewrite object. And it does even more: It adds new possibilities. Therefore it's (at least in my installations) part of my basic plugins package. A: As per @SinisterBeard's very valid comment to the question already a couple of years back now, this answer has long been outdated and the mentioned function(s) hence been replaced by a newer API: See wp_unique_post_slug. Original Answer Off the bat, I can't give you a page/tutorial/documentation on how WP slugs are generated, but take a look at the sanitize_title() function. Don't get a wrong impression by the function name, it is not meant to sanitize a title for further usage as a page/post title. It takes a title string and returns it to be used in a URL: * *strips HTML & PHP *strips special chars *converts all characters to lowercaps *replaces whitespaces, underscores and periods by hyphens/dashes *reduces multiple consecutive dashes to one There might be edge cases where the core does something additional (you'd have to look at the source to verify that sanitize_title() will always suffice in generating exactly the same you expect), but this should cover at least 99%, if not all, cases. A: Actually, if you look core function wp_insert_post (post.php), you will see that it does the following: $data['post_name'] = wp_unique_post_slug( sanitize_title( $data['post_title'], $post_ID ), $post_ID, $data['post_status'], $post_type, $post_parent ); $wpdb->update( $wpdb->posts, array( 'post_name' => $data['post_name'] ), $where ); The key thing to note is that uses both wp_unique_post_slug and sanitize_title: wp_unique_post_slug( sanitize_title( A: Forgive for resuming an old question, but I had the same necessity as found out this method works perfectly for me: $some_string = "DON'T STOP ME NOW!"; $slug = sanitize_title(sanitize_title($some_string, '', 'save'), '', 'query'); echo $slug; // dont-stop-me-now This method uses a double sanitization. The first one uses the save mode, where HTML and PHP tags are stripped, and accents are removed (accented characters are replaced with non-accented equivalents). The second query mode ensures all spaces are replaced with dashes - and other punctuation removed. Hope this helps someone! :)
wordpress
{ "language": "en", "length": 643, "provenance": "stackexchange_00019.jsonl.gz:426311", "question_score": "22", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74415" }
[ 0.04852294921875, 0.01202392578125, -0.01076507568359375, -0.0638427734375, 0.0172882080078125, -0.01220703125, 0.010711669921875, -0.0162200927734375, -0.05828857421875, 0.054046630859375, 0.0283660888671875, 0.01415252685546875, -0.00775909423828125, -0.0259246826171875, 0.003170013427734375, -0.0270843505859375, 0.01312255859375, -0.00934600830078125, -0.0209808349609375, -0.03656005859375, 0.00783538818359375, -0.031646728515625, -0.0020008087158203125, 0.085205078125, 0.01317596435546875, -0.039794921875, 0.1072998046875, -0.018341064453125, 0.0195159912109375, -0.0228729248046875, 0.023590087890625, -0.01500701904296875, -0.004749298095703125, -0.00431060791015625, 0.02703857421875, 0.00722503662109375, 0.01320648193359375, 0.02020263671875, 0.040008544921875, -0.0156707763671875, 0.0258941650390625, -0.0152587890625, 0.0210723876953125, -0.0015411376953125, -0.0008940696716308594, -0.0341796875, 0.03814697265625, -0.0275115966796875, 0.0202178955078125, 0.026885986328125, 0.0146942138671875, 0.041534423828125, 0.023956298828125, -0.0034847259521484375, 0.0067596435546875, 0.00841522216796875, 0.009674072265625, 0.0298309326171875, 0.015899658203125, -0.037567138671875, -0.0341796875, 0.0228729248046875, 0.0169525146484375, 0.0265960693359375, -0.02154541015625, 0.00400543212890625, -0.0078887939453125, 0.006591796875, -0.032440185546875, -0.01261138916015625, 0.02490234375, -0.036041259765625, -0.020538330078125, -0.00864410400390625, -0.003326416015625, 0.013275146484375, -0.00194549560546875, -0.0066986083984375, 0.0031070709228515625, 0.02362060546875, 0.0533447265625, -0.0290679931640625, -0.00800323486328125, 0.00466156005859375, 0.0229644775390625, 0.018707275390625, 0.0111236572265625, -0.0170135498046875, -0.03955078125, -0.005962371826171875, -0.0211639404296875, -0.0022563934326171875, -0.0338134765625, 0.005771636962890625, -0.00836944580078125, -0.0064544677734375, 0.031402587890625, -0.0038623809814453125, 0.01004791259765625, 0.0156402587890625, 0.061767578125, -0.07025146484375, 0.07861328125, -0.022216796875, -0.0044403076171875, 0.0277252197265625, 0.01468658447265625, 0.02032470703125, 0.01666259765625, 0.0093994140625, -0.0032367706298828125, 0.0017833709716796875, 0.009124755859375, -0.0400390625, -0.0262298583984375, 0.0204620361328125, 0.00273895263671875, -0.0209808349609375, 0.005573272705078125, -0.041534423828125, 0.0042877197265625, 0.016693115234375, 0.05621337890625, 0.02227783203125, -0.0226898193359375, 0.00714874267578125, 0.0092315673828125, -0.0782470703125, 0.0194244384765625, 0.011383056640625, -0.046875, 0.0186309814453125, 0.085205078125, 0.02294921875, 0.01197052001953125, -0.0233306884765625, 0.0044708251953125, -0.0185089111328125, -0.013671875, 0.032806396484375, -0.037506103515625, -0.0111083984375, 0.0408935546875, -0.0249176025390625, 0.053985595703125, -0.0092010498046875, 0.0088348388671875, 0.023101806640625, 0.041595458984375, 0.026092529296875, -0.0300140380859375, 0.0208740234375, 0.0335693359375, 0.005199432373046875, -0.01003265380859375, -0.042236328125, 0.00972747802734375, -0.03466796875, 0.0247344970703125, -0.05133056640625, 0.0019178390502929688, -0.0107421875, -0.0032176971435546875, -0.0203399658203125, -0.02081298828125, -0.0063934326171875, -0.0162811279296875, 0.0033588409423828125, 0.01500701904296875, 0.011260986328125, 0.01186370849609375, 0.03106689453125, -0.01201629638671875, -0.0015659332275390625, -0.0029888153076171875, -0.0298919677734375, -0.012420654296875, -0.003631591796875, 0.00913238525390625, 0.0762939453125, 0.0408935546875, -0.021331787109375, 0.00189208984375, 0.01543426513671875, -0.05706787109375, 0.057342529296875, -0.016693115234375, 0.0513916015625, 0.0400390625, -0.01324462890625, 0.0131378173828125, -0.0046844482421875, -0.03546142578125, 0.0316162109375, -0.0203857421875, -0.0384521484375, 0.0270843505859375, 0.0026645660400390625, -0.011810302734375, -0.01201629638671875, -0.0119781494140625, 0.0007147789001464844, 0.007110595703125, 0.01537322998046875, -0.0253753662109375, 0.0174102783203125, -0.0201568603515625, 0.0260467529296875, 0.019622802734375, 0.0247650146484375, 0.007549285888671875, -0.00289154052734375, -0.031524658203125, 0.0103302001953125, -0.02960205078125, 0.006378173828125, 0.0218048095703125, -0.01372528076171875, -0.0162506103515625, -0.0209503173828125, -0.0124053955078125, 0.0159149169921875, -0.0333251953125, 0.029083251953125, 0.01470947265625, -0.053558349609375, -0.018280029296875, -0.031585693359375, -0.01511383056640625, -0.041015625, 0.0022182464599609375, 0.08642578125, 0.0941162109375, 0.047454833984375, -0.030914306640625, 0.0091552734375, 0.01209259033203125, 0.003757476806640625, -0.024169921875, 0.0362548828125, 0.031341552734375, 0.0245513916015625, -0.04437255859375, -0.053558349609375, 0.001678466796875, -0.0259857177734375, 0.0307769775390625, -0.048492431640625, 0.00858306884765625, 0.036834716796875, 0.0163116455078125, -0.0028247833251953125, 0.01003265380859375, -0.032379150390625, 0.00182342529296875, 0.0282745361328125, -0.026763916015625, -0.0036334991455078125, -0.01495361328125, 0.008087158203125, 0.0027008056640625, 0.01419830322265625, 0.013885498046875, -0.012298583984375, -0.06854248046875, 0.02593994140625, -0.022552490234375, 0.0021800994873046875, -0.017578125, 0.0098114013671875, 0.0294189453125, 0.00341796875, 0.001041412353515625, 0.0134735107421875, 0.0260009765625, -0.0340576171875, -0.0180511474609375, 0.0074310302734375, 0.0030689239501953125, 0.0009918212890625, -0.00887298583984375, 0.041839599609375, 0.035797119140625, -0.0170440673828125, -0.02899169921875, -0.04888916015625, 0.0180511474609375, -0.0089874267578125, -0.0106353759765625, -0.006267547607421875, 0.019775390625, 0.036407470703125, -0.0275115966796875, 0.039642333984375, 0.0191802978515625, -0.0006451606750488281, 0.046600341796875, -0.01314544677734375, 0.0191802978515625, -0.0078277587890625, 0.04833984375, 0.058380126953125, -0.0013885498046875, 0.00984954833984375, -0.004718780517578125, 0.020660400390625, 0.01462554931640625, -0.01496124267578125, -0.0238494873046875, -0.00885772705078125, -0.06463623046875, -0.05413818359375, 0.0205841064453125, -0.01354217529296875, 0.0189208984375, -0.027313232421875, -0.0010509490966796875, 0.003124237060546875, -0.086669921875, -0.06256103515625, -0.00007998943328857422, 0.0073394775390625, -0.0029430389404296875, 0.003932952880859375, 0.0006551742553710938, -0.00763702392578125, 0.0110626220703125, -0.00154876708984375, 0.0229949951171875, -0.047210693359375, -0.093017578125, -0.06597900390625, -0.07318115234375, 0.031890869140625, -0.01142120361328125, 0.0002586841583251953, 0.00789642333984375, -0.0255126953125, 0.0005049705505371094, -0.01349639892578125, 0.0297088623046875, 0.06439208984375, 0.0025691986083984375, -0.027252197265625, -0.0214080810546875, -0.028564453125, 0.00958251953125, -0.01471710205078125, 0.1082763671875, 0.026611328125, -0.008544921875, 0.0290069580078125, 0.00146484375, -0.0118408203125, 0.0159454345703125, 0.01142120361328125, -0.01123809814453125, -0.0210723876953125, 0.0157928466796875, -0.049224853515625, -0.0036640167236328125, -0.012725830078125, -0.00946807861328125, 0.044403076171875, -0.00765228271484375, -0.01090240478515625, -0.0147857666015625, 0.050323486328125, 0.0022907257080078125, -0.0113677978515625, 0.02032470703125, 0.004695892333984375, 0.0205841064453125, -0.017486572265625, -0.01323699951171875, -0.0229339599609375, 0.04193115234375, 0.0094757080078125, -0.0005025863647460938, 0.0169525146484375, 0.030853271484375, -0.00376129150390625, -0.0195770263671875, -0.05908203125, -0.0292205810546875, 0.061767578125, 0.0157623291015625, 0.0005669593811035156, -0.008880615234375, -0.033416748046875, -0.004207611083984375, 0.060211181640625, -0.01508331298828125, -0.0232696533203125, -0.001800537109375, 0.0140838623046875, -0.00254058837890625, -0.030975341796875, -0.0279998779296875, -0.028289794921875, -0.08837890625, 0.0364990234375, 0.01119232177734375, -0.0261383056640625, -0.02337646484375, -0.00823974609375, -0.03997802734375, -0.0284576416015625, 0.0148773193359375, -0.0184783935546875, 0.0105438232421875, 0.0302276611328125, 0.019378662109375, -0.006561279296875, -0.0142822265625, -0.029632568359375, -0.03466796875, -0.020660400390625, 0.0106048583984375, 0.036224365234375, 0.01605224609375, -0.03900146484375, -0.005710601806640625, 0.03863525390625, 0.0172271728515625, 0.016357421875, 0.0186309814453125, -0.00536346435546875, 0.0323486328125, 0.0362548828125, 0.02569580078125, -0.00777435302734375, -0.01238250732421875, -0.032501220703125, -0.0394287109375, 0.0202178955078125, -0.010833740234375, 0.0259246826171875, 0.01904296875, -0.0214080810546875, -0.020355224609375, -0.00745391845703125, -0.0158538818359375, 0.00882720947265625, 0.007843017578125, -0.028167724609375, -0.005359649658203125, -0.044647216796875, 0.034942626953125, 0.006793975830078125, -0.010589599609375, -0.0004265308380126953, 0.06976318359375, 0.018524169921875, -0.02081298828125, -0.018157958984375, -0.0304718017578125, 0.0027408599853515625, 0.0423583984375, 0.04510498046875, 0.01971435546875, 0.017852783203125, -0.01535797119140625, 0.004947662353515625, -0.049072265625, 0.0034389495849609375, 0.05120849609375, 0.0004253387451171875, -0.015045166015625, -0.00971221923828125, -0.043365478515625, 0.0487060546875, 0.03369140625, -0.018280029296875, 0.006103515625, -0.043792724609375, 0.041717529296875, 0.0290985107421875, -0.032012939453125, -0.07098388671875, -0.066650390625, 0.022430419921875, -0.02593994140625, 0.035064697265625, -0.0019102096557617188, 0.0002084970474243164, 0.039215087890625, 0.016448974609375, 0.01424407958984375, -0.0206298828125, 0.0013179779052734375, -0.035308837890625, 0.040771484375, -0.041900634765625, -0.015716552734375, -0.002864837646484375, -0.00557708740234375, 0.07666015625, 0.0404052734375, -0.0258636474609375, -0.0026569366455078125, -0.005817413330078125, -0.02838134765625, -0.0146484375, -0.0235443115234375, 0.0103912353515625, 0.0196380615234375, -0.015594482421875, 0.007419586181640625, -0.038909912109375, -0.0016202926635742188, -0.0280914306640625, 0.0173187255859375, 0.00479888916015625, -0.0038623809814453125, 0.0077667236328125, 0.055206298828125, 0.01218414306640625, 0.016876220703125, -0.0247344970703125, 0.00235748291015625, 0.0487060546875, 0.0059051513671875, 0.0305633544921875, -0.014312744140625, -0.00817108154296875, -0.009521484375, 0.0150604248046875, -0.025970458984375, -0.01558685302734375, 0.057708740234375, 0.036712646484375, -0.0377197265625, -0.0198822021484375, 0.0035648345947265625, -0.01122283935546875, -0.00661468505859375, -0.0325927734375, -0.02435302734375, -0.00017690658569335938, -0.0068359375, 0.0040130615234375, 0.0113983154296875, 0.019378662109375, -0.0176239013671875, 0.04229736328125, -0.023223876953125, 0.04425048828125, 0.0107269287109375, 0.0141448974609375, -0.0009012222290039062, -0.00885009765625, -0.01497650146484375, -0.0298614501953125, -0.039825439453125, 0.01087188720703125, -0.0050506591796875, -0.00897979736328125, -0.0179443359375, 0.048309326171875, -0.005153656005859375, 0.032989501953125, -0.0206756591796875, -0.00982666015625, 0.027740478515625, -0.00641632080078125, 0.03857421875, -0.016937255859375, -0.0380859375, -0.00251007080078125, -0.03936767578125, -0.0024929046630859375, 0.0304718017578125, -0.0014629364013671875, -0.02227783203125, -0.0184173583984375, -0.006114959716796875, 0.0307159423828125, -0.0196075439453125, -0.01146697998046875, 0.012481689453125, -0.01190948486328125, -0.0214996337890625, 0.01065826416015625, -0.0132293701171875, -0.0027008056640625, 0.0266571044921875, 0.02252197265625, -0.01605224609375, -0.019256591796875, 0.01169586181640625, -0.0148773193359375, -0.0082550048828125, -0.01059722900390625, 0.000518798828125, -0.01256561279296875, 0.0218963623046875, 0.0255126953125, 0.061920166015625, 0.0029201507568359375, 0.0325927734375, -0.019775390625, 0.01204681396484375, -0.006103515625, 0.035858154296875, -0.05206298828125, 0.014068603515625, 0.0302734375, -0.019805908203125, 0.00922393798828125, -0.021636962890625, 0.007568359375, 0.0177001953125, -0.022003173828125, 0.0017061233520507812, 0.0290679931640625, -0.04534912109375, 0.067138671875, 0.07818603515625, 0.00246429443359375, 0.0540771484375, 0.0136871337890625, 0.0082244873046875, 0.046295166015625, -0.0230560302734375, 0.006443023681640625, 0.0252227783203125, 0.0631103515625, 0.004009246826171875, -0.0083465576171875, 0.048828125, -0.0290374755859375, -0.0036640167236328125, 0.07427978515625, 0.06610107421875, -0.09820556640625, -0.00447845458984375, 0.0138397216796875, 0.0020618438720703125, -0.01128387451171875, 0.0072021484375, -0.01220703125, -0.0166015625, 0.029022216796875, -0.04339599609375, -0.007354736328125, 0.0178375244140625, -0.0031604766845703125, -0.00337982177734375, 0.007701873779296875, 0.050018310546875, 0.0169525146484375, 0.01241302490234375, -0.029998779296875, -0.0095062255859375, 0.024932861328125, -0.0418701171875, 0.004207611083984375, 0.03704833984375, 0.0106353759765625, -0.00592803955078125, 0.08868408203125, -0.032623291015625, 0.047454833984375, -0.0133514404296875, 0.021026611328125, 0.033660888671875, 0.027740478515625, 0.00907135009765625, -0.038909912109375, 0.0030040740966796875, -0.00066375732421875, 0.036834716796875, -0.009979248046875, 0.0021839141845703125, 0.026458740234375, -0.034698486328125, 0.0007047653198242188, -0.0131072998046875, 0.0133514404296875, -0.0379638671875, -0.0289764404296875, 0.12335205078125, -0.058563232421875, -0.00484466552734375, 0.0122528076171875, 0.0367431640625, -0.01160430908203125, -0.028594970703125, 0.0162811279296875, -0.062744140625, -0.0110015869140625, -0.00859832763671875, -0.015228271484375, 0.02081298828125, -0.038360595703125, -0.0906982421875, 0.100341796875, 0.005657196044921875, 0.062347412109375, -0.0012903213500976562, 0.0231475830078125, 0.001605987548828125, 0.0111236572265625, -0.03546142578125, 0.05816650390625, 0.03900146484375, 0.032806396484375, -0.05328369140625, -0.0283355712890625, 0.01026153564453125, 0.0457763671875, 0.01800537109375, -0.006336212158203125, -0.0016374588012695312, 0.020904541015625, 0.056793212890625, 0.018798828125, -0.0098876953125, 0.030548095703125, -0.00220489501953125, 0.005321502685546875, 0.07806396484375, -0.051971435546875, 0.0287322998046875, -0.006195068359375, 0.02935791015625, 0.0019140243530273438, 0.01506805419921875, -0.0038852691650390625, 0.0220489501953125, -0.005035400390625, -0.059967041015625, 0.0224609375, 0.035430908203125, 0.0155487060546875, 0.00418853759765625, 0.051300048828125, 0.042205810546875, -0.03729248046875, -0.02008056640625, -0.02862548828125, 0.054656982421875, -0.01425933837890625, 0.016937255859375, 0.034881591796875, 0.0279693603515625, 0.044525146484375, -0.011077880859375, 0.00914764404296875, 0.0013456344604492188, -0.0196380615234375, 0.054229736328125, 0.027435302734375, 0.024017333984375, -0.059051513671875, -0.02923583984375, 0.05841064453125, 0.07623291015625, -0.038543701171875, -0.0254364013671875, 0.0036678314208984375, 0.0005040168762207031, 0.0145263671875, -0.0028171539306640625, 0.049224853515625, -0.051513671875, -0.03485107421875, -0.0296478271484375, -0.018402099609375, 0.029052734375, 0.02630615234375, -0.0149078369140625, -0.0283355712890625, -0.0027790069580078125, -0.01221466064453125, -0.054473876953125, 0.00650787353515625, 0.016387939453125, 0.07379150390625, 0.01181793212890625, 0.07794189453125, -0.0207061767578125, -0.0379638671875, -0.00042891502380371094, 0.0516357421875, 0.018280029296875, -0.01003265380859375, 0.0120086669921875, -0.01806640625, 0.0338134765625, -0.0008559226989746094, 0.0264739990234375, 0.018768310546875, 0.04541015625, -0.0017461776733398438, -0.046417236328125, -0.0017642974853515625, 0.04290771484375, -0.03802490234375, 0.014404296875, -0.036041259765625, 0.007396697998046875, -0.001556396484375, -0.00452423095703125, -0.01242828369140625, -0.0167388916015625, 0.02020263671875, 0.028961181640625, 0.0274200439453125, 0.0054779052734375, 0.01403045654296875, 0.0273590087890625, -0.01488494873046875, -0.016357421875, 0.046630859375, -0.085693359375, 0.00937652587890625, -0.017974853515625, -0.09405517578125, 0.028076171875, 0.049560546875, -0.029296875, 0.01290130615234375, 0.045166015625, -0.0126953125, 0.045501708984375, 0.002410888671875, -0.00405120849609375, -0.0341796875, 0.0278778076171875, -0.020904541015625, -0.072998046875, -0.042999267578125, -0.0258331298828125, 0.02813720703125, -0.033660888671875, 0.12255859375, -0.034393310546875, -0.01062774658203125, -0.0196380615234375, -0.0045928955078125, -0.0233917236328125, -0.00704193115234375, 0.0263671875, -0.0164794921875, -0.027740478515625, -0.00379180908203125, -0.03485107421875, -0.01641845703125, 0.01390838623046875, -0.023956298828125, -0.0207366943359375, -0.036163330078125, 0.0302581787109375, 0.0125579833984375, 0.028717041015625, -0.032073974609375, -0.0513916015625, -0.049896240234375, 0.0025501251220703125, 0.01812744140625, 0.033050537109375, -0.012939453125, 0.054962158203125, -0.03594970703125, -0.03314208984375, -0.017822265625, -0.055145263671875, -0.0227813720703125, 0.02044677734375, -0.0004165172576904297, -0.0121002197265625, 0.006839752197265625, -0.0162200927734375, 0.00011557340621948242, 0.0018205642700195312, 0.04119873046875, -0.0164642333984375, -0.0284576416015625, -0.0176849365234375, -0.03851318359375, -0.004138946533203125, -0.00968170166015625, -0.0079803466796875, -0.03936767578125, 0.01245880126953125, -0.0004925727844238281, -0.0281982421875, -0.0117645263671875, -0.0266571044921875, -0.0185394287109375, 0.0239105224609375, -0.02105712890625, -0.0215606689453125, -0.0308837890625, 0.008209228515625, 0.01361083984375, -0.00737762451171875, -0.018157958984375, 0.022247314453125, -0.0225982666015625, 0.03546142578125, -0.00724029541015625, 0.0494384765625, -0.01447296142578125, -0.003803253173828125, -0.04486083984375, -0.053070068359375, -0.0263671875, 0.0771484375, -0.022857666015625, 0.04046630859375, 0.06903076171875, -0.043426513671875, -0.0537109375, 0.024688720703125, 0.01520538330078125, 0.07440185546875, -0.012847900390625, -0.0166473388671875, 0.05645751953125, 0.0030612945556640625, -0.022247314453125, -0.0772705078125, -0.0248260498046875, -0.04376220703125, 0.042083740234375, -0.00022971630096435547, 0.0016460418701171875, -0.0010881423950195312, -0.044158935546875, -0.0738525390625, 0.062042236328125, -0.0235443115234375, -0.031494140625, -0.057708740234375, 0.0031375885009765625, 0.04241943359375, -0.052398681640625, -0.038909912109375, 0.0272369384765625, -0.059051513671875, 0.00525665283203125, 0.0157012939453125, 0.057861328125, -0.0217437744140625, 0.0455322265625, 0.0089263916015625, 0.076904296875, 0.056549072265625, 0.00847625732421875, 0.018951416015625, -0.007442474365234375, 0.0269927978515625, 0.06207275390625, -0.018768310546875, -0.0129241943359375, -0.00722503662109375, -0.043121337890625, -0.0341796875, -0.04833984375, -0.0130462646484375, 0.008544921875, 0.07269287109375, 0.0682373046875, 0.009002685546875, -0.0516357421875, -0.0264434814453125, -0.00841522216796875, -0.0113067626953125, -0.01236724853515625, 0.0246124267578125, -0.083984375, -0.02520751953125, 0.021148681640625, 0.015655517578125, -0.038238525390625, -0.03662109375, -0.007793426513671875, -0.02862548828125, 0.0015001296997070312, 0.0089874267578125, 0.027923583984375, -0.041168212890625, 0.05450439453125, -0.0292816162109375, 0.0184326171875, -0.03125, 0.05908203125, 0.0163116455078125, -0.05889892578125, -0.02313232421875, -0.0104522705078125, 0.00678253173828125, 0.0182342529296875, 0.002117156982421875, 0.0114288330078125, 0.0034008026123046875, -0.00624847412109375, -0.012237548828125, 0.0204315185546875, 0.0183563232421875, 0.021514892578125, -0.02435302734375, 0.046356201171875, 0.01373291015625, 0.020111083984375, -0.0310821533203125, -0.032806396484375, -0.018310546875, 0.040802001953125, -0.040802001953125, 0.00927734375, 0.0155029296875, -0.03167724609375, 0.014312744140625, -0.0022945404052734375, -0.018646240234375, -0.00237274169921875, -0.00476837158203125, -0.03936767578125, -0.005786895751953125, 0.0050811767578125 ]
28c699e5d8447e9e95ebe10153fbb7a561ee92d6
Wordpress Stackexchange Q: How to link a Custom Post Type submenu to a Nextgen Gallery page? I've created a custom posts top level menu item but I would like to have a submenu under that linking to the Add Gallery page of Nextgen, as the client wants all their functionality bundled up under one top level menu item. So far I'm doing : add_submenu_page( 'edit.php?post_type=events', 'Add Gallery', 'Add Gallery', 'administrator', 'nggallery-add-gallery', 'event_add_gallery' ); But the link looks like: http://example.com/wp-admin/edit.php?post_type=events&page=nggallery-add-gallery Is there any way to achieve this? A: It would go like this (note the absence of the function parameter - and also the capability instead of a role). add_action( 'admin_menu', 'wpse_74421_menu_admin' ); function wpse_74421_menu_admin() { add_submenu_page( 'edit.php?post_type=events', 'Add Gallery', 'Add Gallery', 'delete_plugins', 'admin.php?page=nggallery-add-gallery' ); }
Q: How to link a Custom Post Type submenu to a Nextgen Gallery page? I've created a custom posts top level menu item but I would like to have a submenu under that linking to the Add Gallery page of Nextgen, as the client wants all their functionality bundled up under one top level menu item. So far I'm doing : add_submenu_page( 'edit.php?post_type=events', 'Add Gallery', 'Add Gallery', 'administrator', 'nggallery-add-gallery', 'event_add_gallery' ); But the link looks like: http://example.com/wp-admin/edit.php?post_type=events&page=nggallery-add-gallery Is there any way to achieve this? A: It would go like this (note the absence of the function parameter - and also the capability instead of a role). add_action( 'admin_menu', 'wpse_74421_menu_admin' ); function wpse_74421_menu_admin() { add_submenu_page( 'edit.php?post_type=events', 'Add Gallery', 'Add Gallery', 'delete_plugins', 'admin.php?page=nggallery-add-gallery' ); }
wordpress
{ "language": "en", "length": 123, "provenance": "stackexchange_00019.jsonl.gz:426313", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74421" }
[ 0.10015869140625, 0.0253143310546875, 0.01351165771484375, -0.031524658203125, 0.0567626953125, -0.041168212890625, 0.09832763671875, -0.046234130859375, -0.016571044921875, -0.00917816162109375, -0.01398468017578125, -0.0104217529296875, -0.0216064453125, -0.035614013671875, 0.01153564453125, -0.043731689453125, 0.0219879150390625, -0.00836944580078125, 0.0294342041015625, -0.01751708984375, 0.000843048095703125, -0.01317596435546875, 0.0191802978515625, -0.0178985595703125, 0.01433563232421875, -0.0169830322265625, 0.0592041015625, 0.011627197265625, 0.01788330078125, 0.004680633544921875, 0.018218994140625, -0.0306243896484375, 0.00963592529296875, -0.01039886474609375, 0.0285491943359375, 0.006679534912109375, 0.0198211669921875, 0.0007266998291015625, 0.01152801513671875, 0.0015439987182617188, 0.019500732421875, -0.002017974853515625, -0.04034423828125, 0.00936126708984375, -0.044189453125, -0.043975830078125, 0.021636962890625, 0.0008335113525390625, 0.0076751708984375, -0.0161590576171875, 0.019805908203125, -0.027679443359375, 0.047271728515625, -0.039520263671875, -0.00829315185546875, 0.0119476318359375, -0.0209197998046875, -0.0288848876953125, 0.0298309326171875, 0.0278167724609375, 0.0034046173095703125, -0.021820068359375, 0.00710296630859375, -0.03204345703125, 0.007720947265625, 0.006534576416015625, 0.0092926025390625, 0.0004048347473144531, -0.040496826171875, 0.0085601806640625, 0.02545166015625, -0.040008544921875, 0.0294647216796875, -0.024261474609375, 0.01416778564453125, -0.0224761962890625, 0.006076812744140625, 0.0092620849609375, 0.01537322998046875, -0.000446319580078125, 0.007320404052734375, 0.026153564453125, 0.01837158203125, -0.027984619140625, -0.0022945404052734375, -0.0240936279296875, -0.0289459228515625, -0.01419830322265625, -0.00789642333984375, 0.016845703125, -0.0158538818359375, -0.04925537109375, 0.04205322265625, 0.026824951171875, -0.017608642578125, -0.01690673828125, 0.007442474365234375, 0.030609130859375, 0.01230621337890625, 0.053985595703125, 0.0031147003173828125, -0.051971435546875, 0.07257080078125, -0.0545654296875, 0.010955810546875, 0.0572509765625, 0.0047607421875, -0.01202392578125, 0.035125732421875, -0.0021533966064453125, 0.0157318115234375, 0.0323486328125, 0.041351318359375, -0.04364013671875, 0.01374053955078125, -0.0008511543273925781, 0.0148468017578125, 0.0289459228515625, 0.0255584716796875, -0.01372528076171875, -0.0085601806640625, 0.01294708251953125, -0.00183868408203125, 0.0193939208984375, 0.0167236328125, 0.031494140625, 0.003780364990234375, -0.027374267578125, -0.004535675048828125, 0.0049591064453125, -0.034271240234375, 0.0304412841796875, 0.0665283203125, -0.00261688232421875, 0.00528717041015625, -0.011505126953125, 0.02545166015625, -0.039886474609375, -0.00611114501953125, 0.0022525787353515625, 0.0330810546875, -0.024444580078125, -0.033294677734375, 0.032440185546875, 0.020782470703125, 0.0248260498046875, 0.01336669921875, 0.019012451171875, 0.0102081298828125, -0.0435791015625, 0.031280517578125, -0.036712646484375, 0.0401611328125, -0.0011091232299804688, -0.048065185546875, -0.0236968994140625, 0.0138702392578125, -0.02557373046875, -0.021148681640625, -0.0516357421875, -0.04144287109375, 0.0196075439453125, 0.053192138671875, -0.0634765625, -0.053802490234375, -0.01520538330078125, -0.026458740234375, -0.01385498046875, 0.0298919677734375, 0.035614013671875, 0.06982421875, -0.06427001953125, -0.023162841796875, 0.02960205078125, 0.002704620361328125, 0.03375244140625, 0.026702880859375, 0.0166168212890625, -0.0013065338134765625, 0.07177734375, 0.009368896484375, -0.03338623046875, 0.056610107421875, -0.037689208984375, -0.06280517578125, 0.005401611328125, 0.01036834716796875, 0.039154052734375, 0.02655029296875, 0.01273345947265625, 0.015106201171875, 0.008087158203125, -0.034576416015625, -0.04364013671875, -0.032379150390625, 0.006534576416015625, 0.019775390625, 0.0037994384765625, -0.006702423095703125, 0.031585693359375, -0.0748291015625, -0.0019550323486328125, -0.01522064208984375, 0.042236328125, -0.014434814453125, 0.006458282470703125, -0.007354736328125, 0.039154052734375, -0.005496978759765625, -0.0017566680908203125, 0.01012420654296875, -0.02020263671875, 0.012298583984375, -0.07928466796875, -0.00623321533203125, 0.053619384765625, 0.0033893585205078125, 0.0209197998046875, -0.0174407958984375, 0.0224609375, -0.0086212158203125, -0.039520263671875, -0.0211639404296875, 0.01320648193359375, 0.05181884765625, 0.01468658447265625, -0.03216552734375, -0.01131439208984375, 0.032806396484375, 0.03948974609375, -0.0791015625, 0.0225067138671875, 0.04931640625, -0.0194091796875, -0.050872802734375, 0.016510009765625, -0.014892578125, -0.043792724609375, -0.0264739990234375, 0.0567626953125, 0.008453369140625, 0.04803466796875, -0.00713348388671875, 0.0276641845703125, 0.0312347412109375, -0.016876220703125, 0.010528564453125, -0.0007882118225097656, -0.055267333984375, -0.004474639892578125, 0.03582763671875, 0.056610107421875, 0.01171112060546875, 0.052886962890625, 0.0125885009765625, 0.03533935546875, 0.04217529296875, -0.0037059783935546875, 0.0540771484375, -0.0125732421875, 0.0136871337890625, 0.0121002197265625, -0.054840087890625, 0.01654052734375, 0.0178375244140625, 0.0186614990234375, 0.043182373046875, 0.02398681640625, -0.0237579345703125, -0.01837158203125, 0.0275421142578125, 0.04132080078125, -0.002429962158203125, -0.00860595703125, 0.01068878173828125, -0.0211944580078125, -0.037933349609375, 0.0262603759765625, 0.00909423828125, -0.0283660888671875, -0.0010967254638671875, 0.0467529296875, -0.003124237060546875, -0.02069091796875, -0.00384521484375, -0.046600341796875, -0.00995635986328125, -0.0002486705780029297, -0.017547607421875, -0.033447265625, 0.0297088623046875, -0.022918701171875, -0.045654296875, 0.0161285400390625, -0.03558349609375, -0.049468994140625, 0.03826904296875, -0.0173797607421875, 0.031097412109375, -0.03338623046875, 0.037322998046875, 0.041351318359375, -0.038360595703125, 0.00759124755859375, -0.018798828125, -0.00891876220703125, -0.0423583984375, 0.027801513671875, -0.0146484375, -0.0570068359375, 0.0012617111206054688, 0.01367950439453125, 0.0093231201171875, 0.0033130645751953125, -0.0146484375, -0.024383544921875, -0.0182037353515625, 0.00960540771484375, -0.056488037109375, -0.0295562744140625, 0.04302978515625, -0.020843505859375, 0.0222930908203125, 0.024139404296875, -0.012481689453125, -0.037811279296875, 0.049285888671875, 0.0031414031982421875, -0.024627685546875, -0.018310546875, -0.004730224609375, -0.037872314453125, -0.0299224853515625, -0.0028247833251953125, 0.00702667236328125, 0.0017995834350585938, 0.00923919677734375, 0.0260772705078125, 0.0027713775634765625, -0.044403076171875, 0.0273590087890625, 0.01776123046875, -0.0074310302734375, 0.01531982421875, 0.0265350341796875, -0.0208282470703125, 0.044769287109375, 0.004703521728515625, 0.01045989990234375, 0.0311279296875, -0.0296783447265625, -0.0235443115234375, -0.0257568359375, -0.011505126953125, 0.0190582275390625, -0.01386260986328125, 0.027587890625, 0.033294677734375, 0.03985595703125, -0.01128387451171875, -0.0248565673828125, -0.021514892578125, -0.05084228515625, -0.0207366943359375, 0.02008056640625, 0.01678466796875, -0.0260772705078125, 0.01410675048828125, -0.03570556640625, 0.02294921875, 0.0035533905029296875, -0.0214080810546875, -0.01885986328125, -0.01049041748046875, -0.041778564453125, 0.0114593505859375, 0.039398193359375, -0.0166168212890625, -0.005397796630859375, 0.00905609130859375, -0.0302734375, -0.01078033447265625, -0.0013017654418945312, -0.0017423629760742188, -0.0706787109375, 0.040435791015625, -0.03759765625, 0.024383544921875, -0.05963134765625, -0.0212554931640625, -0.0198822021484375, 0.07879638671875, -0.05560302734375, -0.0263214111328125, -0.0187835693359375, 0.00450897216796875, 0.01064300537109375, -0.01068878173828125, -0.01050567626953125, -0.0258636474609375, -0.0556640625, -0.005016326904296875, -0.0248870849609375, -0.01490020751953125, -0.011016845703125, 0.01338958740234375, -0.03143310546875, -0.04327392578125, 0.0254364013671875, -0.042999267578125, -0.00852203369140625, 0.050445556640625, -0.031494140625, 0.01922607421875, -0.022430419921875, -0.0263214111328125, -0.1092529296875, -0.025146484375, -0.0042266845703125, 0.0823974609375, -0.01079559326171875, -0.0156402587890625, -0.041717529296875, 0.05548095703125, 0.036041259765625, -0.016448974609375, 0.016845703125, -0.0119476318359375, -0.0144195556640625, -0.01059722900390625, -0.01416778564453125, -0.02398681640625, 0.01242828369140625, 0.010009765625, -0.0007581710815429688, 0.01165771484375, -0.0220184326171875, -0.01238250732421875, 0.0307464599609375, -0.034149169921875, -0.05938720703125, -0.03179931640625, 0.015838623046875, 0.036468505859375, 0.01335906982421875, -0.0027923583984375, -0.05584716796875, -0.036346435546875, -0.024169921875, -0.035614013671875, -0.03570556640625, 0.049224853515625, 0.01255035400390625, 0.015594482421875, 0.01145172119140625, -0.040863037109375, 0.0279541015625, 0.0033588409423828125, -0.00982666015625, 0.05950927734375, 0.0275115966796875, 0.010162353515625, 0.0078125, -0.0088348388671875, 0.007904052734375, -0.00855255126953125, 0.016876220703125, 0.020263671875, -0.029876708984375, 0.0293731689453125, 0.0033626556396484375, -0.00577545166015625, -0.02899169921875, -0.05255126953125, 0.00640106201171875, -0.042236328125, 0.047454833984375, -0.005764007568359375, 0.062286376953125, -0.059967041015625, 0.0250091552734375, -0.0200958251953125, 0.00787353515625, 0.04486083984375, 0.03277587890625, -0.015655517578125, -0.0222625732421875, -0.0084686279296875, -0.0207977294921875, 0.022918701171875, 0.009124755859375, 0.042327880859375, 0.041412353515625, -0.007450103759765625, 0.01177215576171875, -0.02178955078125, 0.01096343994140625, 0.0025119781494140625, -0.0005574226379394531, -0.0004467964172363281, -0.056915283203125, 0.0209808349609375, 0.00945281982421875, -0.0126190185546875, 0.0034351348876953125, 0.045257568359375, 0.01357269287109375, -0.01450347900390625, -0.006732940673828125, -0.0150299072265625, -0.017852783203125, -0.051177978515625, 0.00818634033203125, 0.007740020751953125, -0.009613037109375, -0.01549530029296875, 0.05682373046875, -0.004070281982421875, 0.019256591796875, -0.0019817352294921875, 0.01052093505859375, 0.0404052734375, 0.03759765625, 0.020843505859375, -0.026885986328125, -0.00881195068359375, 0.0311431884765625, 0.0027217864990234375, -0.0169677734375, 0.00676727294921875, 0.0267791748046875, 0.041107177734375, 0.041839599609375, 0.015899658203125, -0.019989013671875, -0.005970001220703125, 0.01020050048828125, -0.0066680908203125, 0.008392333984375, -0.0298919677734375, 0.03692626953125, 0.06463623046875, 0.00836181640625, -0.0207672119140625, -0.0203857421875, 0.036712646484375, 0.00757598876953125, 0.033966064453125, -0.0035114288330078125, -0.02972412109375, 0.0225982666015625, 0.0254669189453125, -0.0147247314453125, -0.006439208984375, 0.0413818359375, -0.04937744140625, 0.007579803466796875, -0.0450439453125, -0.04962158203125, 0.0489501953125, -0.0300445556640625, 0.0175323486328125, -0.03662109375, 0.01212310791015625, -0.07135009765625, 0.01039886474609375, 0.034027099609375, 0.016876220703125, -0.00803375244140625, 0.00768280029296875, -0.01953125, -0.0196533203125, 0.034912109375, -0.017242431640625, -0.040924072265625, -0.040283203125, 0.00811004638671875, 0.02313232421875, 0.0015735626220703125, -0.01540374755859375, -0.01268768310546875, -0.006374359130859375, 0.001094818115234375, -0.006076812744140625, 0.01617431640625, 0.09332275390625, -0.033111572265625, 0.05224609375, 0.0158843994140625, 0.0229034423828125, -0.057373046875, 0.007442474365234375, 0.002445220947265625, -0.04833984375, -0.01113128662109375, -0.0208587646484375, -0.01357269287109375, 0.020416259765625, 0.03472900390625, -0.0032501220703125, 0.040740966796875, -0.0068359375, 0.005870819091796875, -0.00458526611328125, -0.03466796875, -0.0147247314453125, 0.00389862060546875, 0.04302978515625, -0.0201263427734375, 0.0274200439453125, 0.01561737060546875, -0.0135498046875, 0.0135650634765625, -0.009246826171875, 0.030548095703125, 0.02008056640625, -0.045562744140625, 0.07086181640625, 0.0736083984375, -0.00365447998046875, 0.046356201171875, -0.004718780517578125, -0.01088714599609375, 0.011810302734375, 0.0176544189453125, 0.0399169921875, 0.0070037841796875, 0.042022705078125, -0.016326904296875, -0.011993408203125, -0.0042266845703125, -0.0216522216796875, 0.0044403076171875, -0.01525115966796875, 0.0303497314453125, -0.036285400390625, 0.02532958984375, -0.0002281665802001953, 0.0242767333984375, 0.07061767578125, -0.0251007080078125, -0.0014333724975585938, -0.0017528533935546875, 0.06378173828125, -0.004741668701171875, -0.01381683349609375, 0.01788330078125, -0.01406097412109375, 0.013031005859375, -0.0120391845703125, 0.02569580078125, -0.0005006790161132812, 0.033843994140625, -0.033416748046875, -0.030426025390625, 0.00983428955078125, 0.0192413330078125, 0.0025272369384765625, -0.0037994384765625, -0.017181396484375, -0.03125, -0.0027790069580078125, -0.036773681640625, -0.0177001953125, 0.019927978515625, 0.0005769729614257812, 0.0162506103515625, 0.037841796875, -0.012847900390625, 0.01776123046875, 0.004058837890625, 0.0003192424774169922, 0.019744873046875, -0.0115814208984375, -0.004764556884765625, 0.0141143798828125, -0.00946044921875, 0.0007238388061523438, -0.013092041015625, -0.007080078125, -0.020233154296875, 0.041107177734375, 0.16162109375, -0.056854248046875, -0.0275115966796875, 0.047332763671875, 0.015716552734375, -0.050445556640625, 0.031402587890625, 0.0189208984375, -0.0291748046875, -0.054840087890625, 0.020050048828125, -0.0858154296875, -0.0079345703125, 0.006793975830078125, -0.04388427734375, 0.0626220703125, -0.04833984375, 0.036529541015625, 0.041961669921875, 0.016326904296875, -0.012786865234375, 0.0026340484619140625, -0.0211944580078125, 0.0509033203125, -0.00632476806640625, 0.0164337158203125, -0.0081939697265625, 0.0088653564453125, 0.008880615234375, 0.007740020751953125, 0.0338134765625, 0.00992584228515625, -0.03460693359375, -0.0056304931640625, 0.04510498046875, -0.0226287841796875, -0.0172576904296875, 0.061614990234375, -0.02294921875, -0.05657958984375, 0.014007568359375, 0.0277557373046875, 0.051544189453125, -0.026702880859375, -0.021148681640625, -0.03253173828125, 0.01397705078125, 0.0247650146484375, 0.00417327880859375, 0.005077362060546875, 0.0013914108276367188, -0.00395965576171875, -0.00007587671279907227, -0.004222869873046875, -0.0034351348876953125, -0.0089569091796875, 0.006717681884765625, -0.00567626953125, -0.0010919570922851562, -0.0144195556640625, 0.02435302734375, 0.0297393798828125, 0.00507354736328125, -0.0010404586791992188, 0.01323699951171875, 0.01509857177734375, -0.01009368896484375, -0.01319122314453125, 0.020263671875, -0.00399017333984375, 0.05523681640625, 0.029083251953125, 0.0306549072265625, -0.060272216796875, -0.04443359375, 0.056182861328125, 0.08013916015625, -0.031341552734375, -0.07373046875, 0.00806427001953125, -0.004932403564453125, 0.006229400634765625, 0.0113067626953125, -0.00037789344787597656, -0.0311737060546875, 0.0216827392578125, -0.043914794921875, 0.00870513916015625, 0.020233154296875, 0.024627685546875, -0.00055694580078125, 0.01418304443359375, -0.040008544921875, -0.013702392578125, -0.035125732421875, 0.0355224609375, 0.041778564453125, 0.0418701171875, -0.0287933349609375, 0.0767822265625, 0.00934600830078125, 0.0032596588134765625, -0.0137176513671875, 0.009033203125, -0.0304107666015625, 0.0204925537109375, -0.041015625, -0.047088623046875, -0.0178985595703125, 0.05413818359375, 0.02825927734375, 0.0162506103515625, 0.043914794921875, 0.00859832763671875, -0.02423095703125, -0.0027637481689453125, 0.0270233154296875, -0.021942138671875, -0.01294708251953125, -0.018402099609375, -0.0078277587890625, 0.0261993408203125, -0.009033203125, -0.0023059844970703125, -0.01113128662109375, 0.044403076171875, -0.01143646240234375, 0.0078582763671875, -0.003444671630859375, -0.031463623046875, 0.042633056640625, -0.022064208984375, 0.043426513671875, 0.00848388671875, -0.070556640625, -0.007648468017578125, -0.038482666015625, -0.034027099609375, 0.03680419921875, 0.049560546875, -0.0299224853515625, 0.038604736328125, 0.0196990966796875, -0.00600433349609375, 0.01251983642578125, 0.0084228515625, -0.0021533966064453125, 0.034027099609375, 0.0340576171875, 0.024749755859375, -0.0163116455078125, -0.017425537109375, -0.0206451416015625, 0.043365478515625, 0.024078369140625, 0.060546875, -0.036773681640625, 0.036895751953125, -0.02752685546875, 0.002628326416015625, -0.007366180419921875, -0.007335662841796875, -0.031219482421875, 0.0223236083984375, 0.02813720703125, -0.019744873046875, -0.03289794921875, -0.00237274169921875, 0.045135498046875, -0.0615234375, 0.0055389404296875, 0.00969696044921875, 0.0101470947265625, -0.0535888671875, 0.03155517578125, -0.0209197998046875, 0.004192352294921875, -0.025146484375, -0.035308837890625, 0.0251007080078125, -0.0152435302734375, -0.0175018310546875, 0.044952392578125, 0.0065765380859375, 0.01314544677734375, 0.0299072265625, -0.035888671875, 0.0263671875, 0.01467132568359375, -0.0047760009765625, -0.0135650634765625, 0.03143310546875, -0.00696563720703125, -0.004383087158203125, 0.023406982421875, 0.00121307373046875, 0.0357666015625, -0.07037353515625, 0.0192413330078125, -0.0035381317138671875, 0.0299072265625, -0.014801025390625, 0.0083160400390625, -0.0161895751953125, -0.004230499267578125, 0.025909423828125, -0.01238250732421875, -0.034515380859375, -0.045440673828125, 0.02264404296875, 0.0266876220703125, -0.0007510185241699219, 0.004764556884765625, -0.07293701171875, 0.0221099853515625, 0.0626220703125, 0.050048828125, -0.11053466796875, 0.066650390625, -0.0094757080078125, 0.0386962890625, 0.03375244140625, -0.0192413330078125, 0.00926971435546875, 0.04046630859375, -0.0138092041015625, -0.005382537841796875, -0.044189453125, -0.0027904510498046875, -0.048828125, 0.0162811279296875, 0.00635528564453125, -0.031036376953125, 0.0021533966064453125, 0.0160064697265625, 0.0223236083984375, 0.055572509765625, 0.0428466796875, -0.038665771484375, 0.00028896331787109375, -0.01666259765625, -0.000194549560546875, 0.026123046875, 0.01557159423828125, -0.01155853271484375, -0.044586181640625, 0.0011434555053710938, -0.011749267578125, 0.003490447998046875, -0.043182373046875, -0.083984375, 0.069580078125, -0.00972747802734375, -0.0254974365234375, -0.0625, 0.05206298828125, -0.007091522216796875, 0.0312347412109375, -0.0014867782592773438, -0.01580810546875, 0.0186767578125, 0.0174713134765625, 0.01465606689453125, 0.0216217041015625, 0.0256500244140625, 0.0068817138671875, 0.0135955810546875, 0.0244293212890625, 0.023223876953125, -0.01477813720703125, 0.036773681640625, -0.039825439453125, 0.0163116455078125, 0.0007271766662597656, -0.0799560546875, -0.0372314453125, -0.033233642578125, 0.042694091796875, -0.0012226104736328125, -0.0218963623046875, -0.032470703125, -0.03790283203125, 0.04779052734375, 0.0162506103515625, 0.0187225341796875, -0.0020427703857421875, -0.005168914794921875, -0.0280303955078125, -0.04443359375, -0.007381439208984375, 0.032623291015625, -0.07135009765625, -0.0005679130554199219, 0.01090240478515625, 0.007015228271484375, -0.044158935546875, 0.0258941650390625, -0.0248565673828125, -0.032135009765625, 0.004901885986328125, -0.0017595291137695312, -0.039886474609375, 0.0538330078125, 0.083740234375, -0.06402587890625, -0.0211029052734375, -0.000713348388671875, -0.01910400390625, 0.02490234375, -0.04840087890625, -0.01107025146484375, 0.01947021484375, -0.03973388671875, 0.001293182373046875, -0.01038360595703125, 0.040618896484375, -0.033477783203125, -0.011505126953125, -0.023712158203125, 0.01593017578125, 0.006389617919921875, 0.0039825439453125, -0.0158538818359375, 0.06878662109375, 0.0159759521484375, 0.10504150390625, 0.0127105712890625, 0.0469970703125, -0.00714111328125, 0.04388427734375, 0.025665283203125, -0.040313720703125, 0.058990478515625, -0.050994873046875, -0.01284027099609375, 0.0247039794921875, -0.05035400390625, -0.0845947265625, 0.0309600830078125, 0.0257415771484375, 0.0275115966796875, 0.0195159912109375 ]
98965a1fb495ed48c6bf0d6649e4d1e949006f36
Wordpress Stackexchange Q: Post Link Filter Help I Am probably being a complete tool here but I am trying to change the permalink on my custom post type to a particular category child. The code in essence works but I cannot for the life of me figure out how to replace the wildcard for the custom taxonomy. I have created the taxonomy product_cat and set rewrite to true. I am probably doing this all wrong or what I want is not achievable but thought I would ask you all anyway. add_filter('post_link', 'product_cat_permalink', 10, 4); add_filter('post_type_link', 'product_cat_permalink', 10, 4); function product_cat_permalink($permalink, $post_id, $leavename) { if (strpos($permalink, '%product_cat%') === FALSE) return $permalink; $post = get_post($post_id); if (!$post) return $permalink; $terms = wp_get_object_terms($post->ID, 'product_cat'); $term_to_use = null; // -- Loop The Terms foreach($terms as $term) { if($term->parent == 17) { $term_to_use = $term; } } if (!is_wp_error($terms) && !empty($terms) && is_object($term_to_use)) { $taxonomy_slug = $term_to_use->slug; return str_replace('%product_cat%', $taxonomy_slug, $permalink); } else { return $permalink; } } Thanks in advance.
Q: Post Link Filter Help I Am probably being a complete tool here but I am trying to change the permalink on my custom post type to a particular category child. The code in essence works but I cannot for the life of me figure out how to replace the wildcard for the custom taxonomy. I have created the taxonomy product_cat and set rewrite to true. I am probably doing this all wrong or what I want is not achievable but thought I would ask you all anyway. add_filter('post_link', 'product_cat_permalink', 10, 4); add_filter('post_type_link', 'product_cat_permalink', 10, 4); function product_cat_permalink($permalink, $post_id, $leavename) { if (strpos($permalink, '%product_cat%') === FALSE) return $permalink; $post = get_post($post_id); if (!$post) return $permalink; $terms = wp_get_object_terms($post->ID, 'product_cat'); $term_to_use = null; // -- Loop The Terms foreach($terms as $term) { if($term->parent == 17) { $term_to_use = $term; } } if (!is_wp_error($terms) && !empty($terms) && is_object($term_to_use)) { $taxonomy_slug = $term_to_use->slug; return str_replace('%product_cat%', $taxonomy_slug, $permalink); } else { return $permalink; } } Thanks in advance.
wordpress
{ "language": "en", "length": 164, "provenance": "stackexchange_00019.jsonl.gz:426325", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74458" }
[ 0.023345947265625, -0.001468658447265625, -0.0031585693359375, -0.0643310546875, 0.02264404296875, -0.0163116455078125, 0.0210418701171875, 0.00330352783203125, -0.0160675048828125, -0.0192718505859375, -0.0181884765625, -0.01169586181640625, -0.0582275390625, -0.054840087890625, 0.01335906982421875, -0.05450439453125, 0.0104522705078125, 0.00045609474182128906, 0.021820068359375, -0.0204010009765625, 0.0010766983032226562, -0.0020694732666015625, 0.03424072265625, 0.0214996337890625, 0.052764892578125, -0.04229736328125, 0.01197052001953125, -0.06707763671875, 0.0140838623046875, -0.05401611328125, 0.01450347900390625, 0.047119140625, 0.0290985107421875, -0.0172882080078125, 0.031768798828125, 0.018096923828125, 0.0193023681640625, -0.0117340087890625, 0.0056304931640625, 0.0208587646484375, 0.03924560546875, -0.0289764404296875, -0.0018444061279296875, 0.04296875, -0.0081787109375, -0.005168914794921875, -0.00034308433532714844, -0.05560302734375, 0.0064239501953125, -0.04193115234375, 0.04290771484375, 0.0037517547607421875, 0.051177978515625, -0.0303802490234375, -0.02667236328125, 0.0235595703125, -0.0086212158203125, 0.0012607574462890625, 0.02911376953125, 0.00939178466796875, -0.0282745361328125, -0.00562286376953125, 0.015228271484375, -0.029998779296875, -0.01702880859375, -0.0197296142578125, -0.035888671875, 0.01398468017578125, -0.030303955078125, -0.0094451904296875, 0.03289794921875, -0.028961181640625, 0.0084228515625, 0.004405975341796875, -0.033721923828125, -0.060333251953125, 0.034027099609375, -0.03173828125, -0.0181732177734375, 0.01953125, 0.00878143310546875, -0.019775390625, 0.0037822723388671875, -0.04296875, 0.00319671630859375, -0.033172607421875, -0.004169464111328125, 0.01241302490234375, -0.0355224609375, -0.0316162109375, -0.01041412353515625, 0.0058135986328125, -0.053070068359375, -0.01316070556640625, -0.000400543212890625, -0.033050537109375, 0.036590576171875, 0.025634765625, 0.001506805419921875, 0.0031147003173828125, 0.0266571044921875, -0.06121826171875, 0.046295166015625, -0.02655029296875, -0.001354217529296875, 0.0240325927734375, 0.0008182525634765625, 0.0020160675048828125, 0.047454833984375, 0.0225677490234375, 0.02105712890625, 0.0411376953125, -0.012786865234375, -0.00921630859375, -0.0286102294921875, 0.031951904296875, -0.022064208984375, -0.007099151611328125, -0.013824462890625, 0.029083251953125, -0.00982666015625, 0.0108795166015625, 0.035186767578125, 0.001087188720703125, 0.023834228515625, 0.017791748046875, -0.007472991943359375, -0.058990478515625, 0.039031982421875, 0.00843048095703125, -0.050262451171875, 0.007099151611328125, 0.09735107421875, 0.043121337890625, 0.0426025390625, -0.01702880859375, 0.03375244140625, -0.00617218017578125, 0.007381439208984375, 0.001903533935546875, 0.02587890625, 0.0046234130859375, 0.0127105712890625, 0.00469207763671875, 0.033111572265625, 0.0101165771484375, 0.00536346435546875, 0.041534423828125, 0.031463623046875, -0.003993988037109375, 0.0335693359375, -0.023681640625, 0.05523681640625, 0.003345489501953125, -0.055206298828125, -0.0275115966796875, 0.006694793701171875, -0.025787353515625, -0.0265655517578125, -0.06304931640625, 0.023956298828125, -0.003887176513671875, 0.0295562744140625, -0.0274810791015625, -0.05377197265625, 0.020233154296875, -0.07598876953125, -0.02294921875, 0.01336669921875, -0.00611114501953125, 0.01690673828125, -0.00656890869140625, -0.05859375, -0.00806427001953125, 0.0172882080078125, -0.0031414031982421875, -0.030548095703125, 0.03973388671875, 0.04071044921875, 0.00048041343688964844, -0.0012388229370117188, -0.033233642578125, 0.06463623046875, -0.0108184814453125, -0.027374267578125, -0.0115509033203125, 0.038238525390625, 0.0205535888671875, -0.02496337890625, 0.0189208984375, 0.060516357421875, 0.019622802734375, -0.04974365234375, 0.03607177734375, 0.006862640380859375, -0.05474853515625, 0.007740020751953125, -0.0323486328125, -0.0055999755859375, 0.0250701904296875, -0.003490447998046875, 0.03326416015625, -0.01318359375, 0.0019931793212890625, -0.0745849609375, 0.0379638671875, -0.03765869140625, 0.050628662109375, -0.0203094482421875, 0.019287109375, 0.021881103515625, -0.01371002197265625, -0.0114898681640625, -0.0306396484375, 0.016510009765625, 0.0188140869140625, 0.00904083251953125, 0.00446319580078125, -0.0166473388671875, -0.01739501953125, 0.01258087158203125, -0.026275634765625, 0.00116729736328125, 0.059814453125, 0.033355712890625, 0.019927978515625, -0.00965118408203125, -0.0013589859008789062, -0.0011768341064453125, 0.049896240234375, -0.073974609375, -0.00632476806640625, 0.07159423828125, 0.0241241455078125, -0.03289794921875, 0.0257720947265625, 0.03021240234375, -0.01468658447265625, -0.0140228271484375, 0.034820556640625, 0.03271484375, 0.0263214111328125, -0.02203369140625, -0.0377197265625, 0.09295654296875, 0.00868988037109375, 0.01166534423828125, -0.030303955078125, -0.003986358642578125, 0.02423095703125, -0.00820159912109375, 0.024078369140625, 0.0265655517578125, 0.004207611083984375, 0.007282257080078125, 0.041961669921875, -0.018096923828125, -0.0258026123046875, 0.025146484375, -0.0158843994140625, 0.019012451171875, -0.014190673828125, -0.03424072265625, 0.001644134521484375, 0.03125, 0.006626129150390625, 0.03594970703125, 0.01265716552734375, -0.01849365234375, -0.0052642822265625, 0.0030040740966796875, -0.0097503662109375, -0.01236724853515625, -0.0004553794860839844, 0.047088623046875, -0.01036834716796875, -0.0304107666015625, 0.0020732879638671875, 0.0146331787109375, -0.001750946044921875, -0.002071380615234375, 0.064208984375, 0.022979736328125, -0.012939453125, -0.0418701171875, -0.0849609375, -0.0021343231201171875, 0.01666259765625, -0.0218963623046875, -0.0242767333984375, 0.022003173828125, 0.022430419921875, -0.0185546875, 0.01496124267578125, -0.01149749755859375, -0.00719451904296875, 0.0105133056640625, -0.024993896484375, 0.0498046875, -0.049346923828125, 0.0256500244140625, 0.04254150390625, -0.035400390625, 0.031951904296875, 0.021484375, 0.00910186767578125, 0.004848480224609375, 0.0078125, -0.0079498291015625, 0.00311279296875, -0.047454833984375, -0.015350341796875, 0.0121307373046875, 0.0283203125, -0.0222625732421875, -0.031951904296875, -0.016815185546875, -0.00125885009765625, -0.03045654296875, -0.021148681640625, 0.01520538330078125, -0.039093017578125, 0.01404571533203125, -0.01439666748046875, -0.0013275146484375, -0.038726806640625, 0.005603790283203125, 0.005077362060546875, 0.017547607421875, -0.035247802734375, -0.060089111328125, -0.0552978515625, -0.05712890625, -0.0035381317138671875, -0.00981903076171875, -0.0201568603515625, 0.005237579345703125, 0.020172119140625, 0.01175689697265625, -0.03179931640625, 0.028350830078125, 0.03961181640625, -0.0167083740234375, 0.008453369140625, -0.003925323486328125, -0.045806884765625, 0.01800537109375, -0.01520538330078125, 0.045379638671875, 0.0321044921875, -0.015045166015625, 0.0179595947265625, -0.0045928955078125, 0.01480865478515625, 0.048583984375, -0.004787445068359375, -0.0148162841796875, 0.04718017578125, 0.054473876953125, -0.009552001953125, -0.035614013671875, -0.0247039794921875, -0.04217529296875, 0.03521728515625, 0.00296783447265625, -0.00516510009765625, -0.00269317626953125, 0.034820556640625, -0.0037746429443359375, 0.00777435302734375, 0.01268768310546875, -0.03961181640625, 0.0142822265625, 0.0159454345703125, 0.00902557373046875, -0.00960540771484375, 0.03985595703125, -0.0254669189453125, 0.022430419921875, 0.01580810546875, -0.00977325439453125, 0.0006885528564453125, -0.024322509765625, -0.03912353515625, -0.089599609375, 0.04180908203125, -0.10150146484375, -0.041473388671875, -0.06903076171875, -0.01264190673828125, -0.001644134521484375, 0.10406494140625, -0.0103302001953125, -0.021453857421875, -0.0175933837890625, -0.004116058349609375, 0.023162841796875, -0.01947021484375, -0.004673004150390625, -0.01197052001953125, -0.051422119140625, -0.002918243408203125, -0.00397491455078125, -0.0307769775390625, -0.00998687744140625, 0.0201873779296875, -0.03985595703125, -0.0172576904296875, 0.04412841796875, -0.0181427001953125, -0.0021457672119140625, 0.043670654296875, -0.0223541259765625, 0.0224456787109375, -0.04974365234375, 0.00006151199340820312, -0.0283203125, -0.014129638671875, 0.00800323486328125, 0.03558349609375, 0.02838134765625, -0.030731201171875, 0.003894805908203125, 0.05731201171875, 0.038543701171875, 0.006557464599609375, 0.00026679039001464844, -0.029815673828125, -0.0185089111328125, 0.00782012939453125, 0.00006121397018432617, -0.007617950439453125, 0.014739990234375, -0.0134429931640625, -0.0521240234375, 0.033966064453125, -0.0212249755859375, 0.04925537109375, 0.017852783203125, -0.0352783203125, -0.0968017578125, -0.027679443359375, -0.027587890625, -0.00957489013671875, -0.033111572265625, -0.01317596435546875, -0.02203369140625, -0.09381103515625, 0.025177001953125, 0.00641632080078125, -0.0244903564453125, 0.006134033203125, 0.0287628173828125, 0.0236968994140625, -0.0234375, 0.01727294921875, 0.005817413330078125, 0.01031494140625, -0.012176513671875, 0.0312042236328125, 0.00008118152618408203, 0.00646209716796875, 0.00554656982421875, -0.0287628173828125, -0.0194244384765625, -0.0008945465087890625, 0.04644775390625, 0.01416778564453125, -0.0029659271240234375, 0.0059356689453125, -0.01531219482421875, 0.035125732421875, 0.006740570068359375, -0.0309906005859375, -0.023223876953125, -0.0372314453125, 0.07232666015625, 0.0181427001953125, 0.00473785400390625, -0.0806884765625, -0.032073974609375, 0.02960205078125, -0.003940582275390625, 0.031341552734375, 0.03253173828125, -0.00835418701171875, 0.02239990234375, -0.04486083984375, 0.0107269287109375, -0.036102294921875, -0.0007910728454589844, -0.0264739990234375, 0.047821044921875, -0.05487060546875, -0.01462554931640625, -0.022674560546875, 0.0023040771484375, 0.00865936279296875, 0.03399658203125, 0.0157012939453125, -0.00800323486328125, 0.006198883056640625, -0.0242156982421875, -0.020355224609375, -0.007732391357421875, 0.0307769775390625, 0.01244354248046875, -0.0208740234375, 0.01479339599609375, -0.0472412109375, 0.013824462890625, -0.03564453125, 0.0119171142578125, 0.003780364990234375, -0.0029125213623046875, -0.0189666748046875, 0.03436279296875, -0.026092529296875, 0.0172882080078125, 0.012451171875, 0.01776123046875, 0.0120086669921875, 0.0279998779296875, 0.0170745849609375, -0.0282135009765625, -0.0007448196411132812, -0.0027980804443359375, 0.033050537109375, -0.036712646484375, -0.05206298828125, 0.0149993896484375, 0.08209228515625, -0.05328369140625, 0.004421234130859375, 0.022125244140625, -0.021270751953125, -0.0261383056640625, 0.01265716552734375, -0.03875732421875, -0.0433349609375, -0.0302734375, 0.01137542724609375, 0.011505126953125, -0.0183563232421875, -0.019195556640625, 0.0230560302734375, -0.021026611328125, 0.0235443115234375, -0.005702972412109375, 0.0010080337524414062, -0.00312042236328125, 0.0093841552734375, -0.005298614501953125, -0.018280029296875, -0.0005536079406738281, 0.006168365478515625, -0.00007492303848266602, -0.022216796875, -0.016510009765625, 0.040069580078125, 0.002185821533203125, 0.07525634765625, -0.03155517578125, -0.04449462890625, 0.0111846923828125, -0.017303466796875, 0.062164306640625, 0.0244140625, -0.05206298828125, 0.00493621826171875, -0.0126495361328125, 0.0228271484375, 0.0163421630859375, -0.019744873046875, -0.020843505859375, -0.015045166015625, -0.0001577138900756836, 0.022491455078125, 0.0009264945983886719, -0.00733184814453125, -0.01366424560546875, -0.006282806396484375, -0.00955963134765625, 0.01155853271484375, -0.0195159912109375, 0.0245513916015625, 0.02166748046875, 0.0023326873779296875, 0.007129669189453125, -0.016326904296875, -0.00421142578125, -0.0175323486328125, -0.04327392578125, -0.045745849609375, -0.00711822509765625, 0.043121337890625, -0.046722412109375, 0.0731201171875, 0.09295654296875, 0.016571044921875, 0.01282501220703125, -0.01399993896484375, -0.0031986236572265625, -0.0245361328125, 0.006320953369140625, -0.035247802734375, 0.00511932373046875, -0.002170562744140625, -0.01116943359375, 0.049102783203125, 0.0226287841796875, 0.0030364990234375, 0.00928497314453125, -0.0274658203125, 0.0206298828125, 0.03082275390625, -0.0208282470703125, 0.024200439453125, 0.047149658203125, 0.01203155517578125, 0.04534912109375, 0.006259918212890625, 0.034820556640625, 0.044952392578125, -0.00860595703125, -0.0001550912857055664, 0.04022216796875, 0.076171875, -0.00002580881118774414, 0.0025634765625, 0.0684814453125, -0.0199432373046875, -0.03607177734375, 0.01010894775390625, 0.02294921875, -0.0130462646484375, -0.016448974609375, 0.02056884765625, -0.013671875, -0.01119232177734375, 0.043426513671875, -0.00865936279296875, 0.03546142578125, -0.042327880859375, -0.069091796875, -0.0258026123046875, -0.0167236328125, -0.0044403076171875, 0.021484375, 0.0170440673828125, 0.042724609375, -0.00965118408203125, -0.031097412109375, -0.053436279296875, 0.01505279541015625, -0.0041046142578125, -0.00807952880859375, 0.0117645263671875, -0.009918212890625, 0.01495361328125, -0.0176849365234375, 0.045928955078125, -0.044189453125, 0.04156494140625, 0.04913330078125, -0.00449371337890625, 0.0198211669921875, 0.005832672119140625, 0.0015172958374023438, 0.007152557373046875, -0.00957489013671875, -0.039825439453125, 0.007282257080078125, -0.00803375244140625, -0.0212860107421875, 0.020538330078125, -0.024169921875, 0.007366180419921875, -0.0450439453125, 0.0214996337890625, -0.0212249755859375, -0.04608154296875, 0.06890869140625, -0.035919189453125, -0.0157928466796875, 0.0191497802734375, 0.0215301513671875, -0.0030651092529296875, 0.0037746429443359375, 0.007129669189453125, -0.0489501953125, -0.037750244140625, -0.00927734375, -0.045379638671875, -0.014678955078125, -0.0408935546875, -0.07476806640625, 0.1287841796875, -0.004573822021484375, 0.07147216796875, 0.0162506103515625, 0.0330810546875, -0.0067901611328125, 0.0293121337890625, -0.03875732421875, 0.07049560546875, 0.0594482421875, 0.031219482421875, -0.041229248046875, -0.026458740234375, 0.0241241455078125, 0.0428466796875, 0.026275634765625, 0.0169830322265625, -0.0712890625, -0.00396728515625, 0.0236968994140625, -0.003192901611328125, -0.006320953369140625, 0.065185546875, -0.009124755859375, 0.00688934326171875, 0.041900634765625, -0.0305023193359375, 0.0312347412109375, 0.00769805908203125, -0.020538330078125, 0.011444091796875, 0.0256195068359375, 0.05596923828125, -0.017333984375, 0.0251922607421875, -0.03082275390625, -0.01016998291015625, 0.04913330078125, -0.047882080078125, 0.031768798828125, -0.006305694580078125, 0.01171112060546875, -0.055450439453125, 0.0199432373046875, -0.0243988037109375, 0.036102294921875, -0.0131378173828125, 0.029937744140625, 0.012542724609375, 0.01422119140625, 0.066162109375, -0.042877197265625, 0.011932373046875, 0.0157928466796875, -0.0219268798828125, 0.035614013671875, 0.0114288330078125, 0.02056884765625, -0.0014801025390625, 0.07012939453125, 0.02117919921875, 0.0307769775390625, -0.06134033203125, -0.059295654296875, 0.023895263671875, 0.0247955322265625, -0.00606536865234375, 0.02313232421875, 0.01296234130859375, 0.004657745361328125, 0.058258056640625, -0.07330322265625, 0.02972412109375, 0.060699462890625, 0.01800537109375, -0.0021419525146484375, -0.0175323486328125, -0.0723876953125, 0.0218963623046875, -0.0511474609375, 0.006977081298828125, 0.00981903076171875, 0.08306884765625, 0.040283203125, 0.03814697265625, -0.0374755859375, -0.0479736328125, -0.0021228790283203125, -0.0034313201904296875, -0.003063201904296875, 0.00650787353515625, -0.003406524658203125, -0.01276397705078125, 0.01511383056640625, 0.026397705078125, 0.0031414031982421875, 0.0189361572265625, 0.0196685791015625, 0.01543426513671875, 0.009033203125, -0.01158905029296875, 0.032623291015625, -0.0234222412109375, 0.0180206298828125, -0.018402099609375, 0.040618896484375, 0.0217742919921875, 0.01018524169921875, -0.0269317626953125, 0.01120758056640625, 0.0501708984375, -0.0272979736328125, 0.07623291015625, -0.0117340087890625, -0.010223388671875, 0.045379638671875, 0.005077362060546875, 0.1004638671875, 0.017059326171875, -0.059600830078125, -0.0217132568359375, -0.0054473876953125, -0.050811767578125, 0.03033447265625, 0.038330078125, -0.01099395751953125, -0.004650115966796875, -0.0022869110107421875, -0.006107330322265625, 0.00926971435546875, 0.01544952392578125, -0.01096343994140625, -0.01085662841796875, 0.0134124755859375, -0.011749267578125, 0.0057220458984375, 0.019561767578125, 0.02008056640625, -0.0007653236389160156, 0.00872039794921875, 0.060546875, -0.0322265625, 0.005947113037109375, -0.0279998779296875, 0.02349853515625, -0.0618896484375, -0.0260162353515625, 0.047637939453125, -0.025177001953125, -0.010772705078125, 0.010009765625, -0.01453399658203125, 0.002384185791015625, 0.0618896484375, -0.025604248046875, 0.0166015625, -0.031585693359375, 0.0241546630859375, -0.048065185546875, 0.048828125, -0.0269927978515625, -0.029052734375, -0.05718994140625, -0.04595947265625, 0.040283203125, 0.032562255859375, 0.01134490966796875, 0.03228759765625, 0.00010728836059570312, -0.014434814453125, 0.011505126953125, -0.019012451171875, 0.0106353759765625, 0.04351806640625, -0.01555633544921875, 0.002777099609375, 0.036407470703125, -0.017608642578125, 0.0025177001953125, 0.0188140869140625, 0.01200103759765625, 0.02532958984375, -0.0594482421875, -0.0097503662109375, -0.02264404296875, -0.0098114013671875, -0.041107177734375, -0.00943756103515625, 0.00768280029296875, -0.0037860870361328125, -0.01080322265625, -0.0250701904296875, -0.021636962890625, -0.034027099609375, -0.0018157958984375, 0.01824951171875, -0.0239410400390625, -0.0242156982421875, -0.03717041015625, 0.01531219482421875, 0.0699462890625, 0.0215301513671875, -0.06390380859375, 0.01788330078125, -0.00873565673828125, 0.060791015625, 0.01335906982421875, -0.057281494140625, 0.0189056396484375, 0.0265350341796875, -0.005634307861328125, 0.0014963150024414062, -0.04693603515625, -0.03326416015625, -0.03851318359375, 0.02716064453125, 0.048187255859375, -0.027496337890625, -0.038970947265625, 0.0008568763732910156, 0.0155487060546875, 0.04986572265625, 0.017913818359375, -0.016357421875, -0.004055023193359375, 0.0178680419921875, -0.023468017578125, -0.05218505859375, 0.0253143310546875, -0.05010986328125, -0.0206451416015625, 0.0205078125, -0.0182647705078125, 0.005466461181640625, -0.035491943359375, -0.05206298828125, 0.03125, 0.00527191162109375, -0.030364990234375, -0.044342041015625, -0.044921875, -0.028045654296875, 0.0489501953125, -0.0003306865692138672, -0.025787353515625, -0.050933837890625, 0.053436279296875, -0.006999969482421875, 0.05401611328125, 0.007808685302734375, -0.0016145706176757812, 0.01256561279296875, 0.003223419189453125, -0.000019073486328125, 0.006366729736328125, 0.0017843246459960938, 0.005306243896484375, 0.006504058837890625, 0.0226898193359375, -0.0157318115234375, -0.01415252685546875, -0.0005288124084472656, -0.043426513671875, 0.00916290283203125, -0.06976318359375, -0.019989013671875, -0.05242919921875, 0.057769775390625, -0.033538818359375, 0.01537322998046875, 0.0222625732421875, -0.036651611328125, -0.04815673828125, -0.028228759765625, -0.00696563720703125, 0.02294921875, -0.086181640625, 0.01523590087890625, 0.047149658203125, -0.00392913818359375, -0.0080413818359375, -0.006969451904296875, -0.016754150390625, -0.006351470947265625, 0.0159454345703125, -0.006626129150390625, -0.031524658203125, 0.066162109375, -0.0004954338073730469, -0.02069091796875, -0.0227508544921875, -0.015777587890625, -0.02313232421875, -0.0251312255859375, -0.0443115234375, -0.0107421875, 0.01407623291015625, 0.01464080810546875, -0.0181732177734375, 0.03948974609375, 0.004833221435546875, 0.049957275390625, -0.00023996829986572266, -0.02264404296875, 0.016815185546875, 0.004077911376953125, -0.007152557373046875, -0.034271240234375, 0.0421142578125, 0.003337860107421875, 0.12066650390625, 0.0007410049438476562, 0.00469970703125, 0.0026226043701171875, 0.0236663818359375, -0.01268768310546875, 0.002719879150390625, -0.0004200935363769531, -0.0135345458984375, 0.00867462158203125, -0.032379150390625, -0.032135009765625, -0.032257080078125, -0.01078033447265625, -0.0419921875, -0.0261688232421875, 0.01404571533203125 ]
cf39fc9c69dd33f4cfc197cd5c3c913b505cde02
Wordpress Stackexchange Q: Make featured image required Is it possible to force user to set featured image on some types of posts. For example I've got custom post type mm_photo and I want to show some error message or somehow block user from publishing or updating post when there is no featured image set. A: Fairly simple using jQuery and global $typenow ex: add_action('admin_print_scripts-post.php', 'my_publish_admin_hook'); add_action('admin_print_scripts-post-new.php', 'my_publish_admin_hook'); function my_publish_admin_hook(){ global $typenow; if (in_array($typenow, array('post','page','mm_photo '))){ ?> <script language="javascript" type="text/javascript"> jQuery(document).ready(function() { jQuery('#post').submit(function() { if (jQuery("#set-post-thumbnail").find('img').size() > 0) { jQuery('#ajax-loading').hide(); jQuery('#publish').removeClass('button-primary-disabled'); return true; }else{ alert("please set a featured image!!!"); jQuery('#ajax-loading').hide(); jQuery('#publish').removeClass('button-primary-disabled'); return false; } return false; }); }); </script> <?php } }
Q: Make featured image required Is it possible to force user to set featured image on some types of posts. For example I've got custom post type mm_photo and I want to show some error message or somehow block user from publishing or updating post when there is no featured image set. A: Fairly simple using jQuery and global $typenow ex: add_action('admin_print_scripts-post.php', 'my_publish_admin_hook'); add_action('admin_print_scripts-post-new.php', 'my_publish_admin_hook'); function my_publish_admin_hook(){ global $typenow; if (in_array($typenow, array('post','page','mm_photo '))){ ?> <script language="javascript" type="text/javascript"> jQuery(document).ready(function() { jQuery('#post').submit(function() { if (jQuery("#set-post-thumbnail").find('img').size() > 0) { jQuery('#ajax-loading').hide(); jQuery('#publish').removeClass('button-primary-disabled'); return true; }else{ alert("please set a featured image!!!"); jQuery('#ajax-loading').hide(); jQuery('#publish').removeClass('button-primary-disabled'); return false; } return false; }); }); </script> <?php } } A: Try the answer here: https://stackoverflow.com/a/13575967 To repeat the code from that answer: function featured_image_requirement() { if(!has_post_thumbnail()) { wp_die( 'You forgot to set the featured image. Click the back button on your browser and set it.' ); } } add_action( 'pre_post_update', 'featured_image_requirement' ); A: f you would like to require that all posts have a featured image before they can be published add this snippet to the functions.php of your wordpress theme. When you try and publish a post without a featured image you get an admin message “You must select Featured Image. Your Post is saved but it can not be published.” add_action('save_post', 'heap_child_check_thumbnail'); add_action('admin_notices', 'heap_child_thumbnail_error'); function heap_child_check_thumbnail($post_id) { // change to any custom post type if (get_post_type($post_id) != 'mm_photo') { return; } if (!has_post_thumbnail($post_id)) { // set a transient to show the users an admin message set_transient("has_post_thumbnail", "no"); // unhook this function so it doesn't loop infinitely remove_action('save_post', 'heap_child_check_thumbnail'); // update the post set it to draft wp_update_post(array('ID' => $post_id, 'post_status' => 'draft')); add_action('save_post', 'heap_child_check_thumbnail'); } else { delete_transient("has_post_thumbnail"); } } function heap_child_thumbnail_error() { if (get_transient("has_post_thumbnail") == "no") { echo "<div id='message' class='error'><p><strong>You must select Featured Image. Your Post is saved but it can not be published.</strong></p></div>"; delete_transient("has_post_thumbnail"); } } A: This will not publish the post without the featured image. add_filter( 'wp_insert_post_data', function ( $data, $postarr ) { $post_id = $postarr['ID']; $post_status = $data['post_status']; $original_post_status = $postarr['original_post_status']; if ( $post_id && 'publish' === $post_status && 'publish' !== $original_post_status ) { $post_type = get_post_type( $post_id ); if ( post_type_supports( $post_type, 'thumbnail' ) && ! has_post_thumbnail( $post_id )) { $data['post_status'] = 'draft'; } } return $data; }, 10, 2 ); This will notify admin Feature image is required. global $pagenow; if ( $pagenow == 'post-new.php' || $pagenow == 'post.php' ) : add_action( 'admin_notices', function () { $post = get_post(); if ( 'publish' !== get_post_status( $post->ID ) && ! has_post_thumbnail( $post->ID ) ) { ?> <div id="message" class="error"> <p> <strong> <?php _e( 'Please set a Featured Image. This post cannot be published without one.'); ?> </strong> </p> </div> <?php } } ); endif;
wordpress
{ "language": "en", "length": 452, "provenance": "stackexchange_00019.jsonl.gz:426328", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74464" }
[ 0.07147216796875, -0.004669189453125, -0.0053863525390625, -0.037109375, 0.0458984375, -0.03924560546875, 0.061676025390625, -0.01142120361328125, -0.01149749755859375, 0.0011453628540039062, 0.0100860595703125, -0.033447265625, -0.030609130859375, -0.037445068359375, -0.004138946533203125, -0.049560546875, 0.024200439453125, -0.008270263671875, 0.0111083984375, -0.0100555419921875, -0.011505126953125, 0.01345062255859375, -0.011138916015625, 0.03125, -0.0032444000244140625, 0.041046142578125, 0.037689208984375, -0.02813720703125, -0.018218994140625, -0.0135650634765625, 0.01348876953125, 0.0020923614501953125, 0.01068115234375, 0.03485107421875, -0.0243988037109375, -0.0016736984252929688, 0.015960693359375, 0.0142059326171875, -0.007030487060546875, 0.0117340087890625, -0.004192352294921875, 0.018096923828125, 0.007228851318359375, -0.01053619384765625, -0.006099700927734375, -0.029876708984375, 0.004642486572265625, -0.039337158203125, 0.0304412841796875, 0.01885986328125, 0.00615692138671875, 0.0016031265258789062, -0.0038700103759765625, -0.01537322998046875, -0.00875091552734375, 0.029510498046875, -0.03253173828125, 0.040191650390625, 0.04180908203125, 0.07373046875, -0.013427734375, 0.0010843276977539062, -0.0180206298828125, -0.09783935546875, 0.0234222412109375, -0.0316162109375, -0.030364990234375, 0.030426025390625, -0.051361083984375, 0.0247650146484375, 0.04974365234375, -0.034759521484375, -0.005207061767578125, -0.002101898193359375, -0.00870513916015625, 0.00019633769989013672, 0.0019741058349609375, -0.021392822265625, 0.005298614501953125, 0.0167236328125, 0.0297088623046875, 0.035400390625, -0.0181121826171875, 0.023406982421875, -0.00124359130859375, 0.047576904296875, -0.01065826416015625, -0.03680419921875, -0.0355224609375, -0.01551055908203125, -0.0236358642578125, -0.0265045166015625, -0.0467529296875, 0.01898193359375, -0.001010894775390625, -0.0038928985595703125, 0.0396728515625, 0.0731201171875, -0.018707275390625, -0.0148162841796875, -0.026519775390625, -0.00360870361328125, -0.0308837890625, -0.0311126708984375, 0.0100555419921875, 0.0277862548828125, -0.0073699951171875, -0.0219573974609375, 0.0174102783203125, 0.0105133056640625, -0.01499176025390625, -0.045562744140625, 0.0036334991455078125, 0.0328369140625, -0.036346435546875, -0.01287078857421875, -0.03826904296875, 0.010772705078125, -0.023406982421875, 0.030181884765625, 0.038482666015625, 0.0279541015625, -0.0079498291015625, -0.0207061767578125, 0.0343017578125, 0.038055419921875, -0.052581787109375, -0.02215576171875, 0.01042938232421875, 0.032470703125, -0.034149169921875, -0.0005116462707519531, 0.0693359375, 0.030487060546875, 0.023101806640625, -0.025177001953125, 0.0206298828125, -0.02874755859375, 0.004787445068359375, 0.00797271728515625, -0.02044677734375, -0.01058197021484375, 0.043975830078125, -0.01190948486328125, -0.0067596435546875, 0.012939453125, 0.014007568359375, 0.0210113525390625, -0.0105438232421875, -0.05010986328125, 0.0267791748046875, -0.0271453857421875, 0.0312347412109375, 0.0180511474609375, 0.005260467529296875, -0.0206146240234375, 0.073974609375, -0.0306854248046875, -0.0196533203125, -0.055267333984375, 0.052642822265625, 0.019683837890625, 0.028900146484375, -0.00957489013671875, -0.00881195068359375, -0.0297698974609375, -0.0657958984375, 0.001194000244140625, 0.01678466796875, 0.04010009765625, -0.01373291015625, -0.01187896728515625, -0.003665924072265625, 0.007740020751953125, -0.0195770263671875, 0.021575927734375, 0.01837158203125, 0.0196685791015625, 0.03155517578125, -0.0011386871337890625, -0.0296630859375, -0.04632568359375, 0.10369873046875, -0.055938720703125, -0.06658935546875, 0.056243896484375, 0.021636962890625, 0.07293701171875, -0.00815582275390625, 0.0093536376953125, 0.0628662109375, 0.039093017578125, -0.0095672607421875, 0.0277557373046875, -0.00954437255859375, -0.04913330078125, -0.0257415771484375, -0.0174713134765625, -0.022369384765625, 0.0203704833984375, 0.03472900390625, -0.00548553466796875, 0.0056610107421875, -0.0098724365234375, -0.04888916015625, -0.0009007453918457031, -0.02587890625, 0.038787841796875, -0.049163818359375, 0.0125274658203125, 0.0369873046875, 0.026824951171875, -0.0252685546875, -0.01401519775390625, 0.01399993896484375, -0.00635528564453125, -0.023895263671875, 0.058319091796875, -0.01457977294921875, 0.0650634765625, -0.0262603759765625, -0.076416015625, -0.0179595947265625, -0.0171051025390625, 0.041595458984375, -0.0030269622802734375, -0.01503753662109375, -0.01904296875, 0.02459716796875, 0.006404876708984375, -0.013397216796875, 0.021820068359375, 0.014190673828125, 0.0017757415771484375, -0.01056671142578125, 0.006320953369140625, 0.031982421875, -0.094482421875, 0.005977630615234375, 0.048858642578125, 0.01265716552734375, -0.0028972625732421875, -0.028839111328125, 0.01531219482421875, 0.03466796875, 0.01177978515625, 0.01091766357421875, 0.01641845703125, 0.005786895751953125, -0.0017118453979492188, -0.01000213623046875, -0.0252227783203125, 0.050323486328125, -0.0380859375, 0.01357269287109375, 0.05615234375, -0.0121307373046875, 0.0286407470703125, -0.028045654296875, 0.01413726806640625, 0.00026416778564453125, 0.05615234375, 0.016265869140625, 0.0172576904296875, 0.051116943359375, -0.0095977783203125, 0.03643798828125, 0.0257720947265625, -0.0245208740234375, -0.01102447509765625, 0.017120361328125, -0.036895751953125, -0.0033130645751953125, 0.04620361328125, 0.0198822021484375, 0.0196533203125, -0.041412353515625, -0.01177978515625, 0.014617919921875, 0.02569580078125, -0.0136566162109375, -0.03424072265625, 0.0003457069396972656, 0.003265380859375, 0.0174407958984375, -0.026123046875, 0.054595947265625, 0.01479339599609375, 0.033477783203125, 0.01279449462890625, 0.0225982666015625, 0.031890869140625, 0.00443267822265625, 0.053436279296875, 0.004657745361328125, -0.01262664794921875, -0.0095672607421875, -0.059326171875, 0.0533447265625, -0.0562744140625, 0.0307769775390625, 0.07073974609375, -0.00594329833984375, 0.0233154296875, 0.00921630859375, 0.0033130645751953125, 0.001827239990234375, -0.0014829635620117188, -0.003978729248046875, 0.006591796875, -0.0306396484375, 0.050567626953125, 0.053466796875, 0.036285400390625, 0.0131072998046875, -0.02252197265625, -0.0026798248291015625, 0.03973388671875, -0.05853271484375, -0.07830810546875, -0.0318603515625, -0.026763916015625, 0.0137176513671875, 0.027618408203125, -0.0001938343048095703, -0.0243377685546875, 0.06146240234375, 0.001583099365234375, -0.06549072265625, 0.00647735595703125, 0.008544921875, -0.033355712890625, 0.0117034912109375, 0.0018377304077148438, -0.0025653839111328125, 0.0036373138427734375, -0.0016183853149414062, 0.0732421875, 0.0084991455078125, -0.0731201171875, 0.01043701171875, 0.046783447265625, -0.00264739990234375, 0.038726806640625, 0.002811431884765625, 0.002166748046875, -0.029876708984375, 0.02410888671875, -0.00653076171875, -0.0081634521484375, -0.01036834716796875, -0.036285400390625, -0.02764892578125, 0.00765228271484375, 0.0085296630859375, 0.026214599609375, 0.024932861328125, 0.007171630859375, 0.03973388671875, -0.0330810546875, -0.02618408203125, -0.01506805419921875, -0.04498291015625, 0.003185272216796875, 0.01074981689453125, 0.01148223876953125, 0.0105743408203125, 0.026885986328125, 0.038330078125, 0.007415771484375, 0.0258331298828125, -0.03399658203125, 0.06036376953125, 0.006114959716796875, 0.02716064453125, -0.07281494140625, 0.0072174072265625, -0.023345947265625, 0.0197906494140625, -0.00563812255859375, 0.005584716796875, -0.02197265625, 0.01416778564453125, -0.0506591796875, -0.0150604248046875, 0.0116729736328125, -0.04986572265625, -0.0080108642578125, -0.01215362548828125, 0.005146026611328125, -0.005428314208984375, 0.0198211669921875, -0.00722503662109375, -0.005859375, -0.05462646484375, -0.0200958251953125, -0.0311126708984375, -0.0250396728515625, -0.01446533203125, 0.0207366943359375, -0.053741455078125, -0.004711151123046875, -0.030364990234375, -0.0136566162109375, -0.019622802734375, -0.0189208984375, -0.0276031494140625, -0.04736328125, 0.0258026123046875, -0.040252685546875, -0.0142669677734375, 0.041839599609375, -0.030059814453125, 0.0068206787109375, -0.029144287109375, -0.041717529296875, -0.1016845703125, -0.0019025802612304688, -0.0609130859375, 0.060638427734375, 0.0004062652587890625, 0.0302886962890625, -0.051971435546875, 0.0205841064453125, 0.033447265625, -0.00460052490234375, -0.00033473968505859375, -0.0196075439453125, -0.01221466064453125, -0.0212554931640625, -0.0147705078125, -0.023773193359375, 0.0083160400390625, 0.004299163818359375, -0.041259765625, -0.0274810791015625, -0.037200927734375, -0.0225372314453125, 0.0060272216796875, -0.032196044921875, -0.0579833984375, -0.00926971435546875, 0.016754150390625, 0.0207061767578125, 0.0192718505859375, -0.0277252197265625, -0.0293731689453125, -0.039764404296875, 0.0070037841796875, -0.042266845703125, -0.0158538818359375, 0.006511688232421875, 0.04315185546875, 0.0248565673828125, 0.0018587112426757812, -0.0023651123046875, 0.042266845703125, 0.036376953125, 0.02703857421875, 0.01293182373046875, 0.0098876953125, -0.0180206298828125, 0.0010366439819335938, 0.0269622802734375, -0.0367431640625, -0.0283203125, 0.0712890625, 0.002704620361328125, -0.0228118896484375, 0.01421356201171875, -0.0205078125, 0.012176513671875, 0.020050048828125, -0.005153656005859375, 0.010223388671875, -0.0130767822265625, -0.0174713134765625, -0.008209228515625, -0.0027065277099609375, 0.00118255615234375, -0.005565643310546875, -0.0069122314453125, 0.03521728515625, 0.0240325927734375, 0.00716400146484375, 0.018829345703125, -0.0253448486328125, 0.0150909423828125, -0.0053863525390625, -0.0006918907165527344, -0.0255126953125, 0.01515960693359375, 0.032196044921875, 0.003143310546875, 0.0111236572265625, -0.0003299713134765625, 0.01331329345703125, -0.02069091796875, -0.0372314453125, -0.05706787109375, -0.07025146484375, 0.026885986328125, 0.08441162109375, 0.01399993896484375, -0.00031065940856933594, 0.0241851806640625, 0.0341796875, -0.0165252685546875, -0.0182037353515625, 0.018402099609375, 0.006397247314453125, -0.047607421875, -0.00640869140625, 0.024688720703125, -0.00966644287109375, 0.013702392578125, 0.0328369140625, 0.03875732421875, 0.0028324127197265625, -0.02886962890625, 0.061859130859375, 0.0474853515625, -0.0037784576416015625, -0.005870819091796875, 0.05084228515625, -0.032806396484375, 0.00893402099609375, -0.0125732421875, -0.020294189453125, 0.012237548828125, 0.00942230224609375, 0.03546142578125, -0.0345458984375, -0.02606201171875, 0.0167999267578125, -0.0274658203125, -0.04583740234375, 0.0215911865234375, -0.0179901123046875, -0.0406494140625, -0.043548583984375, 0.01288604736328125, 0.05120849609375, 0.0272674560546875, -0.01493072509765625, -0.01119232177734375, -0.0209197998046875, -0.01314544677734375, -0.00917816162109375, -0.0469970703125, 0.004344940185546875, 0.020843505859375, -0.031585693359375, 0.00597381591796875, -0.0138092041015625, -0.020263671875, -0.0355224609375, -0.01032257080078125, -0.004726409912109375, 0.0423583984375, -0.041290283203125, 0.0038242340087890625, -0.0574951171875, 0.04742431640625, -0.066650390625, 0.01041412353515625, 0.040985107421875, 0.025970458984375, -0.0290374755859375, -0.01090240478515625, -0.045013427734375, -0.01490020751953125, -0.012969970703125, -0.025299072265625, -0.02703857421875, 0.0018339157104492188, 0.037567138671875, 0.0237884521484375, -0.028564453125, -0.05908203125, -0.034759521484375, 0.0386962890625, 0.07244873046875, 0.10565185546875, -0.0025424957275390625, 0.03521728515625, -0.01177978515625, 0.0193939208984375, 0.0211334228515625, 0.0035228729248046875, -0.01277923583984375, -0.026824951171875, -0.0496826171875, -0.07391357421875, 0.056121826171875, 0.054962158203125, 0.038330078125, 0.0001728534698486328, -0.0198211669921875, 0.033538818359375, 0.00936126708984375, -0.0040130615234375, 0.00246429443359375, -0.029327392578125, 0.0025463104248046875, -0.029388427734375, 0.01629638671875, -0.012298583984375, -0.03619384765625, -0.002986907958984375, 0.006435394287109375, 0.007320404052734375, 0.03668212890625, -0.049560546875, 0.0005164146423339844, 0.0367431640625, 0.023040771484375, 0.002651214599609375, 0.007617950439453125, -0.016876220703125, 0.035491943359375, 0.0073394775390625, 0.01406097412109375, 0.031402587890625, 0.01136016845703125, -0.073486328125, -0.035308837890625, 0.038543701171875, 0.0198211669921875, 0.006969451904296875, 0.062255859375, 0.005397796630859375, 0.0243377685546875, 0.053314208984375, 0.074462890625, -0.057159423828125, 0.0126495361328125, 0.001186370849609375, -0.0196380615234375, 0.0562744140625, -0.018218994140625, 0.0240478515625, 0.0034008026123046875, 0.042816162109375, 0.01546478271484375, -0.0233154296875, -0.007244110107421875, -0.0203399658203125, -0.032318115234375, 0.02001953125, 0.020477294921875, 0.04095458984375, -0.03497314453125, -0.00428009033203125, 0.044219970703125, -0.019744873046875, 0.01151275634765625, 0.041015625, -0.0274658203125, -0.022216796875, -0.035675048828125, -0.00826263427734375, 0.0159759521484375, -0.0447998046875, 0.045623779296875, 0.0022830963134765625, 0.0266571044921875, 0.01959228515625, 0.0179443359375, -0.0023555755615234375, -0.000017702579498291016, -0.02886962890625, -0.0477294921875, -0.02978515625, -0.0032062530517578125, -0.0022106170654296875, -0.0364990234375, 0.0286407470703125, -0.0341796875, -0.026092529296875, -0.007450103759765625, -0.0253753662109375, 0.037139892578125, 0.0165557861328125, -0.046630859375, 0.01421356201171875, -0.0004112720489501953, -0.0087890625, -0.01470947265625, 0.037139892578125, -0.037506103515625, -0.029693603515625, -0.01544952392578125, -0.0775146484375, -0.029754638671875, -0.05145263671875, -0.050628662109375, 0.11016845703125, -0.038299560546875, 0.017242431640625, -0.0167083740234375, 0.049468994140625, 0.01995849609375, 0.0308074951171875, -0.0266265869140625, 0.0224761962890625, -0.059539794921875, 0.031494140625, -0.032928466796875, 0.0236968994140625, -0.007598876953125, -0.0205230712890625, 0.0091400146484375, 0.00897979736328125, -0.0350341796875, -0.02734375, 0.007678985595703125, 0.049591064453125, 0.02423095703125, 0.01483917236328125, -0.049163818359375, 0.01525115966796875, 0.0171966552734375, -0.044342041015625, 0.012054443359375, 0.0124969482421875, -0.0506591796875, -0.00970458984375, 0.021270751953125, 0.024017333984375, 0.01197052001953125, 0.03924560546875, -0.0677490234375, 0.0165557861328125, 0.0760498046875, -0.01145172119140625, 0.0031299591064453125, 0.034027099609375, 0.00310516357421875, -0.03692626953125, -0.0082244873046875, -0.0204620361328125, 0.0252532958984375, -0.021270751953125, -0.004505157470703125, 0.0092010498046875, 0.0095062255859375, -0.032379150390625, 0.0040740966796875, -0.002216339111328125, 0.023101806640625, -0.0260009765625, -0.003643035888671875, 0.0156402587890625, 0.0264129638671875, -0.01552581787109375, -0.00658416748046875, 0.050537109375, 0.0279388427734375, -0.0127410888671875, -0.02471923828125, 0.004302978515625, 0.025787353515625, 0.0198822021484375, -0.0129547119140625, 0.0213623046875, -0.0214996337890625, 0.03057861328125, -0.04046630859375, 0.019500732421875, 0.0660400390625, 0.00884246826171875, 0.003173828125, 0.0018491744995117188, -0.043121337890625, 0.004894256591796875, -0.0277862548828125, -0.01251983642578125, 0.0115509033203125, 0.037109375, 0.010223388671875, 0.055206298828125, -0.007595062255859375, -0.0166015625, -0.0227203369140625, -0.00067901611328125, 0.0129547119140625, 0.0362548828125, -0.035552978515625, -0.0037994384765625, 0.011871337890625, 0.028564453125, -0.0280303955078125, 0.01213836669921875, 0.024627685546875, 0.0147705078125, -0.04901123046875, -0.01203155517578125, 0.030548095703125, -0.03466796875, -0.0157012939453125, -0.02154541015625, -0.033203125, -0.006618499755859375, -0.017791748046875, 0.03961181640625, 0.00997161865234375, -0.00460052490234375, -0.04144287109375, 0.0231781005859375, -0.0151519775390625, -0.0440673828125, 0.06317138671875, -0.007236480712890625, 0.10247802734375, -0.006511688232421875, -0.08416748046875, -0.005889892578125, -0.038116455078125, -0.07916259765625, 0.03765869140625, 0.0296173095703125, -0.062408447265625, 0.05267333984375, 0.00836944580078125, 0.027618408203125, 0.01751708984375, -0.062103271484375, 0.01904296875, -0.023223876953125, 0.011138916015625, 0.00908660888671875, 0.03424072265625, 0.029541015625, 0.0161590576171875, 0.014495849609375, -0.003742218017578125, 0.026336669921875, -0.0252838134765625, 0.025390625, -0.006744384765625, 0.0203704833984375, -0.0268096923828125, 0.00597381591796875, -0.01068115234375, -0.00841522216796875, 0.005344390869140625, -0.0058746337890625, -0.0306549072265625, 0.022125244140625, 0.004474639892578125, -0.016998291015625, 0.02569580078125, -0.0204925537109375, 0.0028171539306640625, 0.00458526611328125, 0.0283050537109375, -0.03570556640625, -0.051544189453125, -0.054840087890625, -0.00897216796875, 0.00743865966796875, 0.004058837890625, 0.01299285888671875, -0.0014171600341796875, 0.03662109375, -0.046295166015625, 0.050445556640625, -0.03009033203125, 0.09454345703125, 0.04473876953125, -0.0197601318359375, -0.00930023193359375, -0.0154266357421875, -0.004474639892578125, -0.019622802734375, 0.01483917236328125, -0.0084991455078125, -0.0012187957763671875, -0.0169677734375, -0.007518768310546875, 0.00102996826171875, -0.002872467041015625, -0.048797607421875, -0.008758544921875, 0.0196075439453125, -0.022918701171875, 0.001178741455078125, 0.0226593017578125, 0.0098876953125, 0.0167388916015625, -0.0245513916015625, 0.005039215087890625, 0.00583648681640625, -0.052978515625, -0.036865234375, 0.005767822265625, 0.01617431640625, 0.004055023193359375, -0.069580078125, 0.0316162109375, 0.0120086669921875, 0.04742431640625, -0.029052734375, -0.0203094482421875, -0.003650665283203125, 0.01085662841796875, -0.034881591796875, -0.0172576904296875, -0.048736572265625, -0.0167388916015625, -0.038726806640625, 0.016693115234375, 0.03216552734375, -0.01409912109375, -0.008819580078125, -0.0099029541015625, 0.0017175674438476562, 0.040283203125, -0.027374267578125, -0.0244293212890625, -0.0309600830078125, 0.0172119140625, -0.007476806640625, -0.0474853515625, 0.0240936279296875, -0.08111572265625, -0.05059814453125, -0.0357666015625, 0.03350830078125, 0.03460693359375, -0.038665771484375, -0.09588623046875, 0.0816650390625, -0.038116455078125, -0.0272064208984375, 0.0023097991943359375, 0.0006051063537597656, -0.00284576416015625, 0.04205322265625, 0.0230865478515625, -0.0305328369140625, -0.027435302734375, -0.0159912109375, 0.03533935546875, -0.0377197265625, 0.06561279296875, 0.0015306472778320312, -0.05169677734375, -0.0022716522216796875, -0.0050811767578125, 0.0035991668701171875, -0.028656005859375, 0.022796630859375, 0.01611328125, 0.0209808349609375, -0.01373291015625, 0.0142974853515625, 0.00022423267364501953, 0.0014820098876953125, -0.029449462890625, -0.026275634765625, -0.02056884765625, -0.0190277099609375, 0.10546875, 0.0307464599609375, 0.029327392578125, -0.0302886962890625, -0.0026988983154296875, -0.05401611328125, -0.0238494873046875, 0.0010271072387695312, 0.0173797607421875, -0.05596923828125, 0.0150299072265625, 0.037994384765625, -0.01038360595703125, -0.01525115966796875, 0.00005346536636352539, -0.050689697265625, -0.01126861572265625, -0.00922393798828125, 0.0044708251953125, -0.0692138671875, 0.0107269287109375, 0.03173828125, -0.0234375, 0.02239990234375, -0.0091552734375, -0.0013017654418945312, 0.042510986328125, 0.039459228515625, -0.012786865234375, 0.04840087890625, -0.044281005859375, 0.014862060546875, -0.004650115966796875, -0.040008544921875, -0.046722412109375, 0.0413818359375, 0.006404876708984375, 0.0165863037109375, -0.005733489990234375, 0.00753021240234375, -0.00415802001953125, 0.0096588134765625, -0.01265716552734375, 0.00885772705078125, -0.05206298828125, 0.006679534912109375, -0.027069091796875, 0.005279541015625, 0.01519775390625, 0.003887176513671875, 0.09033203125, -0.0238494873046875, 0.0168304443359375, 0.0218963623046875, 0.00763702392578125, 0.00832366943359375, 0.005542755126953125, -0.0078277587890625, -0.00640106201171875, -0.001941680908203125 ]
a3b3281bd5e9208d94a402c94434c11ed07f8b5a
Wordpress Stackexchange Q: Where in WP can I check history or log of updates of plugins etc? I need to find out what happened at a certain time when some of my admins made some plugin updates etc. So I need to check in admin the log of changes, updates etc. Where can I find that in WP admin? A: I don't know if this is the fix for you, but I was looking at a similar problem and I found this plugin. It seems to be updated regularly, so it might be a good contemporary solution: https://wordpress.org/plugins/wp-security-audit-log/ Keep an audit log of all changes and under the hood WordPress activity to ensure productivity and thwart possible WordPress hacker attacks
Q: Where in WP can I check history or log of updates of plugins etc? I need to find out what happened at a certain time when some of my admins made some plugin updates etc. So I need to check in admin the log of changes, updates etc. Where can I find that in WP admin? A: I don't know if this is the fix for you, but I was looking at a similar problem and I found this plugin. It seems to be updated regularly, so it might be a good contemporary solution: https://wordpress.org/plugins/wp-security-audit-log/ Keep an audit log of all changes and under the hood WordPress activity to ensure productivity and thwart possible WordPress hacker attacks A: You can't pull it in wp-admin you actually have to go look at the plugin in wordpress repository and see if they added there or to the plugin author's site for a changelog. That would be a nice feature for the future. A: Very simple solution to log updates into a csv with timestamp and basic update info. Needs a writable log/upgrader_process_complete.csv file and you can use it with (new Log())->setHooks();. <?php declare( strict_types=1 ); class Log { public function __construct() { // do nothing } public function setHooks() { add_action( 'upgrader_process_complete', [$this, 'action_upgrader_process_complete'], 10, 2 ); } /** * This function runs when WordPress completes its upgrade process * It iterates through each plugin updated to see if ours is included * @link https://stackoverflow.com/a/61062331 * * @param array $upgrader_object * @param array $options * * @return void */ public function action_upgrader_process_complete( $upgrader_object, $options ): void { $file = __DIR__.'/log/upgrader_process_complete.csv'; $data = date('Y-m-d H:i:s').', '.json_encode($options, JSON_UNESCAPED_UNICODE)."\n"; file_put_contents($file, $data, FILE_APPEND | LOCK_EX); } }
wordpress
{ "language": "en", "length": 282, "provenance": "stackexchange_00019.jsonl.gz:426339", "question_score": "21", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74495" }
[ 0.031280517578125, -0.01611328125, -0.007038116455078125, -0.042633056640625, -0.0004582405090332031, -0.0189208984375, 0.0141754150390625, 0.006191253662109375, -0.029754638671875, 0.02923583984375, -0.01375579833984375, 0.02703857421875, -0.035125732421875, -0.00585174560546875, -0.024871826171875, -0.05401611328125, 0.044586181640625, -0.0146942138671875, 0.023681640625, 0.0172119140625, -0.005462646484375, 0.053009033203125, 0.006511688232421875, 0.01922607421875, 0.0185394287109375, 0.006793975830078125, 0.09912109375, -0.024658203125, 0.05755615234375, 0.010650634765625, 0.033233642578125, -0.08770751953125, 0.0167083740234375, 0.0185546875, -0.0289306640625, -0.021209716796875, 0.017303466796875, -0.00417327880859375, 0.0160064697265625, -0.004291534423828125, 0.00807952880859375, 0.007396697998046875, 0.06304931640625, 0.007633209228515625, 0.00685882568359375, -0.0225067138671875, -0.00618743896484375, -0.04388427734375, 0.036956787109375, 0.009796142578125, 0.00353240966796875, -0.016937255859375, 0.013946533203125, -0.01285552978515625, -0.0099945068359375, -0.0221710205078125, -0.034820556640625, 0.040740966796875, 0.0277557373046875, 0.01038360595703125, -0.0198211669921875, -0.00739288330078125, -0.0005679130554199219, -0.02178955078125, -0.02362060546875, -0.0011196136474609375, 0.045745849609375, -0.0030307769775390625, -0.042877197265625, -0.03057861328125, 0.04058837890625, -0.0015192031860351562, -0.0099029541015625, 0.00617218017578125, -0.005725860595703125, -0.0293731689453125, 0.0462646484375, -0.032257080078125, -0.01140594482421875, 0.04534912109375, -0.00551605224609375, -0.016510009765625, 0.007007598876953125, -0.01207733154296875, -0.0029926300048828125, 0.0104217529296875, -0.022125244140625, -0.00925445556640625, -0.0180816650390625, 0.01491546630859375, -0.0242919921875, -0.006671905517578125, -0.017120361328125, 0.009521484375, -0.01302337646484375, -0.0021533966064453125, 0.05047607421875, 0.06683349609375, -0.022430419921875, -0.046600341796875, -0.03509521484375, -0.009735107421875, -0.102783203125, 0.01212310791015625, -0.0076446533203125, 0.02581787109375, 0.034271240234375, 0.059844970703125, 0.0214385986328125, 0.01910400390625, -0.01390838623046875, 0.0207061767578125, -0.02886962890625, -0.0631103515625, 0.030731201171875, 0.072265625, 0.0019197463989257812, 0.039459228515625, 0.00490570068359375, 0.04107666015625, 0.025665283203125, 0.044708251953125, -0.043060302734375, -0.0184326171875, -0.027313232421875, -0.043548583984375, -0.0279388427734375, -0.0048980712890625, 0.0031299591064453125, 0.0292510986328125, -0.01172637939453125, 0.00038886070251464844, 0.002613067626953125, 0.0162811279296875, -0.016632080078125, -0.008514404296875, 0.02252197265625, 0.017852783203125, -0.01311492919921875, 0.02685546875, -0.006183624267578125, -0.018035888671875, 0.0003380775451660156, -0.04815673828125, 0.04052734375, -0.0218505859375, 0.0017490386962890625, 0.044647216796875, 0.0157318115234375, -0.001468658447265625, 0.05377197265625, -0.0181732177734375, 0.0081329345703125, -0.0007867813110351562, 0.050567626953125, -0.01078033447265625, 0.023193359375, -0.006984710693359375, 0.00688934326171875, -0.002841949462890625, -0.015289306640625, -0.0008802413940429688, 0.03790283203125, 0.019195556640625, -0.00205230712890625, 0.0301666259765625, -0.026123046875, 0.0011224746704101562, 0.0303192138671875, -0.036346435546875, 0.0362548828125, -0.0018243789672851562, 0.0330810546875, 0.0177154541015625, 0.0161895751953125, 0.0108795166015625, -0.0177459716796875, -0.0040740966796875, 0.0044708251953125, 0.04571533203125, 0.0251617431640625, -0.019439697265625, 0.004161834716796875, 0.017486572265625, 0.0194854736328125, -0.01515960693359375, 0.0036907196044921875, -0.0008387565612792969, 0.001922607421875, 0.02703857421875, -0.039031982421875, 0.034271240234375, -0.0268402099609375, 0.046295166015625, -0.0247344970703125, 0.001556396484375, -0.0186004638671875, 0.045684814453125, -0.034423828125, -0.05712890625, -0.0160369873046875, 0.052154541015625, -0.042327880859375, -0.003955841064453125, -0.06317138671875, 0.0261688232421875, -0.020660400390625, 0.059478759765625, 0.03466796875, 0.035125732421875, -0.005092620849609375, 0.017852783203125, 0.01369476318359375, -0.057769775390625, -0.0452880859375, 0.009521484375, -0.021026611328125, 0.0151519775390625, -0.0032291412353515625, 0.00972747802734375, 0.0007123947143554688, -0.007755279541015625, -0.032379150390625, -0.0440673828125, -0.002216339111328125, 0.0225982666015625, -0.032623291015625, 0.00794219970703125, 0.01158905029296875, 0.0113983154296875, 0.0272216796875, 0.0176544189453125, 0.0162506103515625, 0.038543701171875, -0.004894256591796875, -0.026275634765625, -0.022125244140625, -0.122802734375, 0.0237884521484375, 0.068359375, 0.045928955078125, 0.01238250732421875, 0.0016193389892578125, 0.0032062530517578125, 0.0094451904296875, -0.11248779296875, -0.003902435302734375, -0.00027060508728027344, -0.003963470458984375, 0.0438232421875, 0.0211181640625, 0.0287017822265625, 0.0003590583801269531, 0.03143310546875, -0.007389068603515625, 0.03326416015625, 0.0201263427734375, 0.0195770263671875, -0.038055419921875, 0.033477783203125, -0.019378662109375, -0.050567626953125, -0.01715087890625, -0.03826904296875, -0.01200103759765625, -0.00162506103515625, 0.0018529891967773438, 0.001068115234375, -0.0245361328125, 0.00811004638671875, 0.024078369140625, 0.0018720626831054688, 0.0120849609375, 0.039825439453125, 0.017364501953125, 0.035400390625, -0.023529052734375, -0.01497650146484375, 0.0221405029296875, 0.0218658447265625, -0.021728515625, 0.0211334228515625, -0.033538818359375, -0.01425933837890625, -0.031951904296875, -0.04473876953125, 0.004604339599609375, -0.0084381103515625, -0.0051422119140625, -0.035797119140625, 0.0011463165283203125, -0.005523681640625, -0.037811279296875, 0.034423828125, -0.00615692138671875, -0.052825927734375, 0.017730712890625, -0.0380859375, 0.03900146484375, -0.00589752197265625, 0.066650390625, 0.078369140625, 0.0014905929565429688, 0.0175628662109375, -0.011962890625, -0.0190887451171875, 0.01276397705078125, -0.0240631103515625, -0.041961669921875, -0.005901336669921875, -0.07684326171875, 0.0033702850341796875, 0.00337982177734375, -0.006565093994140625, -0.0093994140625, -0.035919189453125, -0.0254364013671875, -0.0040435791015625, -0.07275390625, -0.0249176025390625, -0.08709716796875, -0.12310791015625, -0.0204010009765625, -0.010467529296875, -0.06402587890625, 0.052734375, 0.0303802490234375, 0.0277557373046875, 0.0189056396484375, -0.0130462646484375, -0.03619384765625, -0.0396728515625, -0.0704345703125, -0.007503509521484375, 0.002086639404296875, 0.033935546875, -0.006866455078125, 0.10162353515625, -0.0175933837890625, -0.09564208984375, -0.05645751953125, -0.01178741455078125, -0.00902557373046875, 0.025543212890625, -0.0400390625, -0.0019779205322265625, 0.01837158203125, -0.005275726318359375, 0.0033416748046875, 0.00936126708984375, 0.006786346435546875, 0.0012121200561523438, 0.01258087158203125, -0.0428466796875, 0.0279541015625, -0.01288604736328125, -0.033660888671875, -0.0220489501953125, 0.0171051025390625, -0.05523681640625, 0.04443359375, 0.01453399658203125, 0.007171630859375, -0.0005469322204589844, -0.035614013671875, -0.0220184326171875, 0.04290771484375, -0.040496826171875, 0.04302978515625, 0.0341796875, 0.021270751953125, 0.01110076904296875, -0.00738525390625, -0.0061798095703125, 0.019622802734375, -0.040802001953125, -0.020538330078125, -0.0328369140625, 0.0115814208984375, -0.0184783935546875, 0.003452301025390625, -0.039031982421875, 0.056365966796875, -0.044830322265625, -0.013153076171875, 0.007640838623046875, -0.0517578125, 0.0271453857421875, -0.04180908203125, 0.001132965087890625, -0.0207672119140625, 0.046661376953125, -0.0494384765625, 0.00827789306640625, 0.0018024444580078125, 0.01007843017578125, -0.0200958251953125, -0.038970947265625, -0.0780029296875, -0.007503509521484375, -0.10308837890625, 0.00467681884765625, -0.0018053054809570312, -0.045654296875, -0.0249176025390625, 0.042266845703125, -0.06341552734375, -0.04608154296875, 0.000476837158203125, -0.0213775634765625, -0.0179901123046875, -0.024627685546875, -0.0079345703125, -0.056243896484375, 0.041748046875, -0.023468017578125, -0.09063720703125, -0.00994110107421875, -0.054779052734375, 0.07696533203125, 0.04608154296875, -0.061737060546875, -0.0129547119140625, 0.039764404296875, -0.015777587890625, 0.005523681640625, -0.00182342529296875, 0.02691650390625, -0.007701873779296875, -0.006397247314453125, -0.002544403076171875, -0.026031494140625, -0.00447845458984375, -0.020538330078125, -0.025482177734375, -0.00658416748046875, -0.019775390625, -0.0194854736328125, 0.004413604736328125, -0.0147705078125, -0.0216217041015625, -0.0015554428100585938, -0.011383056640625, 0.012237548828125, -0.007610321044921875, -0.00450897216796875, 0.003406524658203125, -0.031524658203125, 0.018524169921875, 0.000029385089874267578, -0.027008056640625, 0.01534271240234375, 0.059844970703125, 0.02374267578125, -0.01169586181640625, -0.0416259765625, -0.0169219970703125, 0.03997802734375, -0.0187835693359375, 0.0287017822265625, 0.0377197265625, -0.0211181640625, 0.0292510986328125, -0.001461029052734375, -0.016754150390625, -0.050567626953125, 0.024261474609375, 0.0154571533203125, 0.00789642333984375, -0.004657745361328125, -0.00511932373046875, 0.062469482421875, 0.0086517333984375, 0.0132904052734375, -0.0233001708984375, 0.027862548828125, 0.0269927978515625, -0.0200958251953125, 0.0316162109375, 0.00262451171875, -0.036102294921875, 0.0015687942504882812, -0.033203125, 0.03118896484375, 0.054656982421875, -0.02947998046875, 0.03497314453125, 0.02508544921875, -0.018768310546875, -0.017303466796875, 0.01495361328125, -0.0067138671875, 0.020172119140625, -0.0168609619140625, -0.012939453125, -0.0460205078125, -0.0194244384765625, 0.042816162109375, -0.01457977294921875, -0.0821533203125, 0.045440673828125, -0.038299560546875, -0.0229034423828125, 0.04901123046875, -0.0305633544921875, 0.055816650390625, 0.02410888671875, -0.02459716796875, -0.01678466796875, -0.052734375, -0.016326904296875, -0.0592041015625, 0.035736083984375, -0.06298828125, 0.01422119140625, 0.0498046875, -0.0175323486328125, -0.047576904296875, 0.0211334228515625, -0.00015974044799804688, 0.01528167724609375, 0.0306549072265625, 0.02606201171875, 0.03656005859375, -0.034881591796875, -0.016998291015625, 0.003936767578125, -0.0006847381591796875, -0.0216064453125, -0.004337310791015625, 0.001132965087890625, 0.0205078125, 0.0028514862060546875, -0.00833892822265625, 0.032073974609375, -0.00015366077423095703, -0.0057830810546875, 0.041107177734375, 0.02703857421875, -0.029266357421875, 0.00827789306640625, 0.015472412109375, 0.01447296142578125, -0.0216827392578125, 0.0018720626831054688, -0.015899658203125, -0.0364990234375, -0.003650665283203125, 0.0024871826171875, -0.0293731689453125, 0.00501251220703125, -0.005504608154296875, -0.046234130859375, -0.03302001953125, -0.0012331008911132812, -0.002773284912109375, -0.017822265625, -0.0015239715576171875, -0.0150146484375, 0.0016651153564453125, -0.0181121826171875, 0.0203704833984375, 0.0199127197265625, -0.03369140625, 0.016510009765625, 0.0199737548828125, 0.046478271484375, 0.02520751953125, -0.05706787109375, -0.01512908935546875, -0.0109100341796875, -0.003021240234375, 0.0172882080078125, 0.003643035888671875, -0.042755126953125, -0.00934600830078125, -0.00980377197265625, 0.003589630126953125, -0.009796142578125, 0.00775146484375, -0.0252838134765625, 0.033111572265625, 0.0188140869140625, 0.03173828125, 0.0101776123046875, 0.1141357421875, -0.0192718505859375, 0.07171630859375, 0.0245361328125, 0.045684814453125, -0.06939697265625, -0.01314544677734375, 0.025848388671875, 0.04400634765625, -0.0103302001953125, -0.06268310546875, 0.0302734375, -0.05889892578125, 0.06304931640625, -0.016937255859375, -0.02520751953125, -0.0189971923828125, 0.005352020263671875, -0.005924224853515625, 0.055938720703125, 0.0299835205078125, -0.04156494140625, 0.05145263671875, 0.006195068359375, 0.01168060302734375, -0.00836944580078125, 0.0028247833251953125, -0.013824462890625, 0.02362060546875, -0.007595062255859375, -0.0157928466796875, -0.01161956787109375, 0.048553466796875, 0.06890869140625, 0.0298004150390625, 0.045501708984375, 0.039642333984375, 0.031646728515625, -0.033294677734375, 0.0032062530517578125, 0.027191162109375, 0.0300445556640625, 0.0775146484375, 0.005733489990234375, -0.01358795166015625, 0.042755126953125, -0.04052734375, 0.0192718505859375, 0.0165557861328125, 0.04345703125, -0.06402587890625, 0.039154052734375, 0.01861572265625, 0.0252685546875, 0.07122802734375, 0.016143798828125, -0.046722412109375, -0.06231689453125, 0.02301025390625, -0.048065185546875, -0.012481689453125, -0.0118560791015625, -0.0102386474609375, -0.006870269775390625, -0.0234222412109375, 0.0170440673828125, 0.01059722900390625, -0.03790283203125, 0.00910186767578125, 0.01374053955078125, -0.0204010009765625, 0.006893157958984375, 0.041351318359375, 0.0086212158203125, -0.00958251953125, -0.024871826171875, 0.049530029296875, -0.00548553466796875, -0.0300445556640625, 0.004024505615234375, 0.0263519287109375, 0.04315185546875, 0.0765380859375, 0.007080078125, -0.0185546875, 0.037139892578125, 0.007518768310546875, 0.0006270408630371094, -0.01549530029296875, -0.0106201171875, 0.06268310546875, -0.042999267578125, 0.0182647705078125, -0.0240478515625, 0.0212860107421875, -0.0112457275390625, -0.033477783203125, 0.050140380859375, -0.026397705078125, -0.005878448486328125, 0.0159759521484375, 0.023345947265625, 0.003162384033203125, -0.0006098747253417969, 0.0201873779296875, -0.048614501953125, 0.020843505859375, 0.0213470458984375, 0.021636962890625, 0.0026645660400390625, 0.035888671875, -0.05584716796875, 0.07269287109375, -0.006137847900390625, 0.005100250244140625, 0.003391265869140625, 0.0244598388671875, -0.0179901123046875, -0.0106353759765625, -0.0357666015625, 0.060394287109375, -0.0347900390625, 0.0443115234375, -0.0799560546875, -0.0224151611328125, 0.002960205078125, 0.037017822265625, 0.0234832763671875, 0.007694244384765625, -0.0243377685546875, -0.0036754608154296875, -0.0084991455078125, -0.003574371337890625, -0.0141448974609375, 0.06640625, 0.0183258056640625, 0.036407470703125, 0.0556640625, -0.00624847412109375, 0.05633544921875, -0.02606201171875, -0.01021575927734375, 0.0164642333984375, -0.0005383491516113281, -0.00507354736328125, 0.007793426513671875, 0.030670166015625, 0.0070648193359375, -0.00623321533203125, -0.01410675048828125, 0.00040268898010253906, 0.028961181640625, 0.027313232421875, 0.046478271484375, -0.01824951171875, 0.006336212158203125, -0.005260467529296875, 0.04156494140625, -0.00931549072265625, -0.00919342041015625, -0.0017747879028320312, 0.0093536376953125, -0.042999267578125, -0.0364990234375, -0.02587890625, 0.033935546875, -0.035125732421875, 0.0140228271484375, -0.002574920654296875, 0.0173797607421875, -0.035369873046875, 0.005649566650390625, 0.025909423828125, 0.02435302734375, -0.01355743408203125, -0.038604736328125, 0.0025959014892578125, 0.00954437255859375, 0.007122039794921875, 0.006381988525390625, 0.0021915435791015625, 0.016693115234375, 0.044647216796875, 0.01036834716796875, -0.0167694091796875, -0.0100860595703125, -0.00046706199645996094, 0.0043487548828125, 0.015228271484375, 0.0184783935546875, 0.006275177001953125, 0.00043082237243652344, 0.00395965576171875, -0.01309967041015625, -0.0162353515625, 0.009185791015625, -0.0290374755859375, 0.006378173828125, 0.0243988037109375, -0.01531219482421875, 0.042510986328125, -0.02044677734375, 0.024658203125, -0.016357421875, -0.03179931640625, -0.0204925537109375, 0.033660888671875, 0.01383209228515625, 0.004489898681640625, 0.0225830078125, 0.0146331787109375, -0.029205322265625, -0.0038356781005859375, 0.00727081298828125, -0.019073486328125, 0.0016155242919921875, -0.039398193359375, 0.04302978515625, 0.040191650390625, 0.00998687744140625, 0.0015668869018554688, -0.000743865966796875, 0.0654296875, -0.0012426376342773438, 0.01474761962890625, 0.0227508544921875, -0.023529052734375, 0.0096282958984375, -0.022735595703125, 0.00955963134765625, 0.0126800537109375, -0.0210418701171875, 0.0041656494140625, -0.0091705322265625, -0.01232147216796875, -0.0181884765625, 0.016021728515625, -0.01070404052734375, 0.04022216796875, -0.006290435791015625, 0.01447296142578125, -0.0260772705078125, -0.00301361083984375, 0.0174713134765625, 0.002536773681640625, 0.007366180419921875, 0.01212310791015625, -0.05902099609375, -0.0200347900390625, -0.044158935546875, 0.0258026123046875, 0.050811767578125, 0.04998779296875, 0.0121917724609375, 0.034454345703125, 0.0037479400634765625, -0.0163726806640625, -0.0187530517578125, -0.00695037841796875, 0.00711822509765625, -0.024688720703125, -0.023223876953125, 0.004322052001953125, -0.07122802734375, 0.041656494140625, 0.018280029296875, -0.007717132568359375, 0.050384521484375, -0.0214080810546875, 0.005794525146484375, -0.0173492431640625, -0.0246429443359375, -0.0181427001953125, -0.032257080078125, 0.0285491943359375, 0.042236328125, 0.0006780624389648438, 0.0018014907836914062, -0.04119873046875, 0.044036865234375, -0.031219482421875, 0.01849365234375, -0.019500732421875, 0.00034236907958984375, -0.044281005859375, 0.031829833984375, -0.051788330078125, 0.015899658203125, -0.030242919921875, -0.0281219482421875, 0.0280609130859375, -0.0177154541015625, 0.02777099609375, -0.01446533203125, 0.037994384765625, -0.041351318359375, -0.0227508544921875, 0.0195770263671875, 0.0014696121215820312, 0.00591278076171875, -0.05352783203125, 0.0057373046875, -0.024749755859375, -0.034881591796875, -0.00368499755859375, -0.059112548828125, 0.001323699951171875, 0.022705078125, -0.024139404296875, 0.0238189697265625, 0.00943756103515625, 0.01203155517578125, 0.03790283203125, 0.001506805419921875, -0.07049560546875, 0.04998779296875, -0.019866943359375, 0.032318115234375, -0.0189971923828125, 0.01403045654296875, 0.0140533447265625, 0.043914794921875, -0.0189361572265625, -0.011871337890625, -0.007671356201171875, 0.022430419921875, -0.010406494140625, 0.02227783203125, 0.0164031982421875, -0.011688232421875, -0.0148773193359375, -0.001422882080078125, -0.005901336669921875, 0.04534912109375, 0.0164642333984375, -0.00460052490234375, 0.01486968994140625, 0.004848480224609375, -0.00786590576171875, -0.01119232177734375, -0.0011348724365234375, 0.0117645263671875, -0.0343017578125, -0.002475738525390625, -0.00722503662109375, 0.00492095947265625, -0.04681396484375, -0.097412109375, 0.01715087890625, -0.0033435821533203125, -0.040130615234375, -0.0869140625, 0.01593017578125, 0.029571533203125, -0.038360595703125, -0.0555419921875, 0.01354217529296875, -0.051025390625, 0.03399658203125, 0.005367279052734375, -0.0158843994140625, 0.00637054443359375, 0.004062652587890625, -0.051605224609375, 0.0160064697265625, 0.0262603759765625, -0.01096343994140625, 0.01105499267578125, -0.026275634765625, 0.050262451171875, 0.047760009765625, -0.015838623046875, 0.0284271240234375, 0.0222320556640625, -0.0159759521484375, 0.000012099742889404297, 0.00211334228515625, -0.051025390625, 0.0012664794921875, 0.09088134765625, 0.0714111328125, 0.035614013671875, -0.047332763671875, -0.008331298828125, -0.0246124267578125, -0.01027679443359375, -0.0005965232849121094, 0.006626129150390625, -0.0286865234375, 0.0176544189453125, -0.0032939910888671875, -0.002559661865234375, -0.01776123046875, 0.02239990234375, -0.00716400146484375, -0.01580810546875, 0.0528564453125, 0.004322052001953125, -0.013519287109375, -0.003662109375, 0.0369873046875, -0.01486968994140625, 0.0638427734375, -0.01250457763671875, 0.016448974609375, 0.062347412109375, 0.043182373046875, 0.0330810546875, -0.0022907257080078125, -0.0309295654296875, 0.0244598388671875, 0.00855255126953125, 0.01123046875, -0.0270538330078125, -0.045013427734375, -0.0240631103515625, -0.007785797119140625, -0.002643585205078125, -0.035003662109375, -0.027252197265625, -0.00916290283203125, -0.00690460205078125, 0.0845947265625, 0.035308837890625, -0.040985107421875, -0.026275634765625, 0.061614990234375, -0.00580596923828125, -0.0535888671875, 0.0084075927734375, -0.0531005859375, 0.005374908447265625, 0.003520965576171875, 0.01451873779296875, -0.04339599609375, 0.00960540771484375, 0.01171112060546875, 0.0101470947265625, 0.0156097412109375 ]
16b5da251815b58a3e33a265c07a4f51897bf338
Wordpress Stackexchange Q: Remove a particular tag name from the tagcloud How do I remove a particular tag name from the tag cloud ? I changed wp-includes/default-widgets.php on line 1038 from wp_tag_cloud( apply_filters('widget_tag_cloud_args', array('taxonomy' => $current_taxonomy) ) ); to wp_tag_cloud( apply_filters('widget_tag_cloud_args', array('taxonomy' => $current_taxonomy, 'exclude' => "featured") ) ); But no effect. A: First: Don’t touch the core files, they will be overwritten during the next update. There is already an argument for exclusions available: exclude. It expects a term id. Sample: wp_tag_cloud( array ( 'exclude' => 54 ) ); Sometimes you don’t know the ID, but you can get it if you know the slug: $args = array (); $ex_term = get_term_by( 'slug', 'chattels', 'post_tag' ); if ( ! empty ( $ex_term ) && ! is_wp_error( $ex_term ) ) $args['exclude'] = $ex_term->term_id; wp_tag_cloud( $args ); See the Codex page for more parameters.
Q: Remove a particular tag name from the tagcloud How do I remove a particular tag name from the tag cloud ? I changed wp-includes/default-widgets.php on line 1038 from wp_tag_cloud( apply_filters('widget_tag_cloud_args', array('taxonomy' => $current_taxonomy) ) ); to wp_tag_cloud( apply_filters('widget_tag_cloud_args', array('taxonomy' => $current_taxonomy, 'exclude' => "featured") ) ); But no effect. A: First: Don’t touch the core files, they will be overwritten during the next update. There is already an argument for exclusions available: exclude. It expects a term id. Sample: wp_tag_cloud( array ( 'exclude' => 54 ) ); Sometimes you don’t know the ID, but you can get it if you know the slug: $args = array (); $ex_term = get_term_by( 'slug', 'chattels', 'post_tag' ); if ( ! empty ( $ex_term ) && ! is_wp_error( $ex_term ) ) $args['exclude'] = $ex_term->term_id; wp_tag_cloud( $args ); See the Codex page for more parameters. A: Modifying core files is not recommended as they will be overwritten in the next upgrade. Fortunately, you can use the power of filters to make the change you need. The reason why your hack didn't work is because you need to pass the tag id to the function, not the name. This code will modify the tag cloud args to exclude the tag with the 'featured' slug. Paste this code to your active theme's functions.php file, a custom plugin, or as a code snippet: add_filter( 'widget_tag_cloud_args', function ( $args ) { $args['exclude'] = get_term_by( 'slug', 'featured', 'post_tag' ); return $args; } ); A: I wanted to remove multiple tags. This is what I did: add_filter( 'widget_tag_cloud_args', 'bb_exclude_tag'); function bb_exclude_tag( $args ) { $args[ 'exclude' ] = '234, 249, 255, 221, 223, 225, 209, 264, 243, 211, 236, 240, 215, 227, 232, 253'; return $args; } A: You are passing name, you ll need to pass ID of that tag. wp_tag_cloud( apply_filters('widget_tag_cloud_args', array('taxonomy' => $current_taxonomy, 'exclude' => "5") ) ); A: I guess that many people like me will get here as result of searching for how to do the same thing in Woocommerce. The current solution to exclude tags from the Woocommerce tag cloud: /* exclude woocommerce product tags from the shops tag cloud */ function customized_exclude_wc_widget_tags($cat_args) { $cat_args['exclude'] = array('141','142','143'); return $cat_args; } add_filter('woocommerce_product_tag_cloud_widget_args', 'customized_exclude_wc_widget_tags'); DO NOT MODIFY YOUR THEME/PLUGIN FILES: * *Download the "Code Snippets" plugin and activate it *select Snippets, new snippet *insert a title for the snippet like "filter out tags from woocommerce tag cloud" *paste the above code *customize the numbers in the array to match the ids of the tags you want to filter out *select "execute snippet on front-end only" *save and activate the snippet *go at the shop's tag cloud and find the tags listed in the array are now hidden.
wordpress
{ "language": "en", "length": 451, "provenance": "stackexchange_00019.jsonl.gz:426376", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74636" }
[ 0.03009033203125, -0.0203399658203125, -0.018890380859375, -0.015777587890625, 0.021209716796875, -0.037506103515625, 0.0645751953125, 0.00955963134765625, -0.0235748291015625, 0.0330810546875, 0.0121002197265625, -0.01287841796875, -0.01084136962890625, -0.01861572265625, -0.028350830078125, -0.033111572265625, 0.01611328125, -0.012115478515625, -0.0040130615234375, -0.0054931640625, -0.010284423828125, 0.0007338523864746094, 0.005077362060546875, 0.02911376953125, 0.00914764404296875, -0.01026153564453125, 0.027618408203125, -0.0234832763671875, -0.0008797645568847656, -0.0212249755859375, 0.0169219970703125, 0.014007568359375, -0.002513885498046875, 0.06787109375, -0.07781982421875, -0.048614501953125, -0.0061798095703125, 0.02313232421875, 0.00531768798828125, 0.01812744140625, 0.0169525146484375, -0.004596710205078125, 0.0026645660400390625, 0.030487060546875, -0.03424072265625, -0.0208892822265625, 0.01105499267578125, -0.0079193115234375, 0.0032749176025390625, 0.0128173828125, 0.0188446044921875, 0.0457763671875, 0.02801513671875, -0.023590087890625, -0.00400543212890625, -0.0030517578125, 0.006923675537109375, -0.004230499267578125, 0.023651123046875, 0.004364013671875, -0.0208282470703125, 0.00644683837890625, 0.009857177734375, -0.0083465576171875, -0.01206207275390625, -0.0020809173583984375, 0.02410888671875, -0.0026454925537109375, -0.053558349609375, -0.010406494140625, 0.050537109375, -0.0283355712890625, -0.01468658447265625, -0.005649566650390625, -0.006656646728515625, -0.025787353515625, 0.0263214111328125, -0.01529693603515625, -0.002834320068359375, 0.03082275390625, 0.0278167724609375, -0.021820068359375, -0.01552581787109375, 0.0286865234375, 0.00910186767578125, 0.06768798828125, 0.0006132125854492188, -0.03265380859375, -0.022796630859375, -0.0125579833984375, -0.0192108154296875, -0.060455322265625, -0.0184173583984375, 0.00629425048828125, -0.007495880126953125, -0.019256591796875, 0.037994384765625, 0.01971435546875, 0.005413055419921875, -0.0200958251953125, 0.0177001953125, -0.05157470703125, -0.0110931396484375, -0.0025043487548828125, 0.0006275177001953125, 0.095458984375, -0.004123687744140625, -0.0020122528076171875, 0.0197906494140625, -0.0013828277587890625, 0.05023193359375, -0.0244293212890625, -0.01372528076171875, 0.0186004638671875, -0.0714111328125, -0.00960540771484375, -0.045166015625, -0.0305328369140625, -0.0265655517578125, 0.0008864402770996094, 0.00331878662109375, 0.0185394287109375, -0.06048583984375, 0.0311279296875, 0.01314544677734375, 0.0128631591796875, -0.0064239501953125, 0.0335693359375, -0.0263824462890625, -0.002262115478515625, -0.03057861328125, 0.005474090576171875, 0.051361083984375, 0.05169677734375, 0.0272979736328125, -0.0098114013671875, 0.034698486328125, -0.0173187255859375, 0.01323699951171875, 0.00647735595703125, 0.05340576171875, -0.02349853515625, -0.0225982666015625, 0.039459228515625, 0.045013427734375, 0.03033447265625, 0.0231475830078125, -0.0019273757934570312, 0.004405975341796875, -0.0233612060546875, 0.0205535888671875, -0.03802490234375, 0.0721435546875, -0.01113128662109375, -0.055694580078125, -0.00441741943359375, 0.041046142578125, -0.041107177734375, -0.076171875, -0.0826416015625, -0.02044677734375, -0.037139892578125, -0.024658203125, 0.004241943359375, -0.005138397216796875, 0.04095458984375, 0.031890869140625, 0.017425537109375, 0.0235443115234375, -0.0210418701171875, -0.0235748291015625, -0.034332275390625, 0.0298309326171875, 0.03314208984375, 0.0128326416015625, 0.058074951171875, -0.0081024169921875, 0.036224365234375, 0.028533935546875, -0.01258087158203125, -0.01094818115234375, -0.0384521484375, 0.07537841796875, -0.01361846923828125, -0.07244873046875, -0.005214691162109375, 0.0255889892578125, 0.052276611328125, 0.0070648193359375, 0.0151824951171875, 0.09423828125, -0.00616455078125, -0.029541015625, 0.05426025390625, 0.021392822265625, -0.035614013671875, -0.0606689453125, -0.027252197265625, -0.007495880126953125, 0.00197601318359375, 0.01580810546875, -0.01509857177734375, -0.0131988525390625, -0.0204315185546875, -0.0784912109375, -0.0150909423828125, -0.02313232421875, 0.0296478271484375, 0.00337982177734375, 0.00522613525390625, 0.008575439453125, -0.039764404296875, -0.023284912109375, 0.044525146484375, -0.03082275390625, -0.01372528076171875, 0.0029582977294921875, 0.01253509521484375, -0.010223388671875, -0.0190887451171875, -0.006778717041015625, -0.0194549560546875, -0.004306793212890625, 0.032745361328125, 0.062042236328125, -0.0080108642578125, -0.01192474365234375, -0.021148681640625, 0.03619384765625, -0.0030117034912109375, -0.04400634765625, 0.0484619140625, 0.0462646484375, 0.04730224609375, 0.004405975341796875, 0.00970458984375, 0.018524169921875, -0.08514404296875, -0.0111846923828125, 0.04486083984375, 0.0270843505859375, 0.009124755859375, -0.0303955078125, -0.0016660690307617188, 0.0160064697265625, -0.07781982421875, -0.01493072509765625, -0.0015344619750976562, 0.0018682479858398438, 0.01715087890625, 0.0191192626953125, 0.0153045654296875, 0.01084136962890625, 0.003559112548828125, 0.0169677734375, 0.0196990966796875, -0.049041748046875, -0.04705810546875, 0.01427459716796875, -0.0301971435546875, 0.0230865478515625, -0.0672607421875, -0.034088134765625, -0.0205230712890625, 0.0210113525390625, -0.00803375244140625, 0.0029582977294921875, -0.0008106231689453125, -0.034820556640625, 0.006744384765625, 0.038177490234375, -0.002655029296875, -0.017425537109375, 0.017181396484375, 0.0562744140625, -0.008819580078125, -0.00641632080078125, -0.00116729736328125, -0.0357666015625, -0.0002543926239013672, 0.0160369873046875, 0.0743408203125, 0.0723876953125, -0.0036602020263671875, -0.033660888671875, -0.0462646484375, 0.0271453857421875, 0.01131439208984375, -0.07733154296875, -0.035491943359375, -0.03643798828125, 0.07672119140625, 0.002414703369140625, -0.004848480224609375, 0.05560302734375, 0.0217132568359375, -0.0198211669921875, 0.0023555755615234375, 0.002124786376953125, -0.0155487060546875, 0.0218048095703125, 0.05218505859375, 0.01535797119140625, -0.015655517578125, 0.0133514404296875, 0.00872039794921875, 0.0274658203125, -0.01727294921875, -0.01617431640625, 0.023193359375, -0.057830810546875, 0.0243072509765625, 0.01265716552734375, 0.0146026611328125, -0.0010585784912109375, -0.0261688232421875, -0.0193939208984375, 0.0006504058837890625, -0.08209228515625, -0.06561279296875, 0.035003662109375, 0.0214080810546875, -0.026153564453125, 0.0072784423828125, -0.00525665283203125, -0.0173492431640625, 0.004199981689453125, -0.0159912109375, 0.01171875, -0.03985595703125, -0.06597900390625, -0.050628662109375, -0.05377197265625, 0.03509521484375, 0.002986907958984375, -0.0009379386901855469, 0.0064544677734375, 0.062744140625, 0.01385498046875, -0.0160980224609375, 0.044219970703125, -0.0246124267578125, 0.003711700439453125, 0.0452880859375, 0.0333251953125, -0.0311431884765625, -0.00051116943359375, 0.01486968994140625, 0.01554107666015625, 0.0255584716796875, -0.0249786376953125, -0.014068603515625, 0.0063629150390625, -0.00025916099548339844, 0.0202178955078125, 0.0084991455078125, -0.00968170166015625, 0.01031494140625, 0.023956298828125, -0.0240325927734375, -0.0225982666015625, -0.01000213623046875, -0.015167236328125, 0.07171630859375, -0.03179931640625, 0.00225067138671875, 0.018768310546875, 0.054107666015625, 0.0322265625, 0.03460693359375, 0.034820556640625, 0.004558563232421875, -0.004039764404296875, -0.00823211669921875, 0.0014190673828125, -0.04595947265625, 0.036651611328125, -0.0123291015625, -0.004070281982421875, 0.00894927978515625, 0.02545166015625, 0.0015535354614257812, -0.0006728172302246094, -0.043212890625, -0.0113372802734375, 0.015594482421875, -0.045074462890625, 0.006500244140625, -0.0182647705078125, 0.0042877197265625, -0.0096588134765625, 0.03302001953125, -0.006420135498046875, -0.028106689453125, -0.02386474609375, -0.007549285888671875, 0.00786590576171875, 0.00984954833984375, 0.00933837890625, -0.0253143310546875, -0.10546875, -0.00844573974609375, -0.004634857177734375, -0.040924072265625, -0.0095672607421875, -0.0014467239379882812, -0.050537109375, -0.0537109375, 0.0638427734375, -0.07525634765625, 0.049468994140625, 0.00014579296112060547, 0.04058837890625, -0.044769287109375, -0.05047607421875, -0.0272216796875, -0.03656005859375, 0.023406982421875, -0.026031494140625, -0.02001953125, -0.040618896484375, 0.054443359375, -0.0261383056640625, 0.0050811767578125, 0.011383056640625, 0.01113128662109375, 0.011566162109375, -0.00024437904357910156, 0.00007361173629760742, 0.025421142578125, 0.0177154541015625, 0.0008544921875, -0.023468017578125, -0.00675201416015625, -0.04254150390625, 0.043731689453125, 0.0103912353515625, 0.038299560546875, 0.052337646484375, -0.034088134765625, -0.0845947265625, -0.052215576171875, 0.0027904510498046875, 0.00543212890625, -0.01474761962890625, 0.02508544921875, -0.048828125, -0.041412353515625, 0.09588623046875, 0.04296875, -0.003231048583984375, -0.00632476806640625, 0.0960693359375, -0.003749847412109375, -0.060211181640625, -0.05926513671875, -0.015625, 0.0279541015625, -0.035430908203125, 0.038604736328125, 0.0150299072265625, -0.0118560791015625, 0.050994873046875, -0.0181732177734375, 0.01270294189453125, -0.00460052490234375, 0.045989990234375, 0.005390167236328125, 0.0020465850830078125, 0.0016469955444335938, -0.003711700439453125, -0.0177764892578125, 0.00931549072265625, 0.004833221435546875, -0.0283355712890625, 0.01149749755859375, 0.034576416015625, -0.004886627197265625, 0.002597808837890625, -0.0177764892578125, -0.07415771484375, 0.0276031494140625, -0.0007848739624023438, -0.0195465087890625, 0.0003142356872558594, 0.0021038055419921875, -0.0036163330078125, -0.025054931640625, 0.00848388671875, -0.0253753662109375, 0.00211334228515625, -0.0538330078125, -0.0001646280288696289, 0.0238494873046875, -0.0127410888671875, -0.000044345855712890625, 0.002170562744140625, 0.00879669189453125, 0.0024566650390625, -0.044281005859375, -0.0029735565185546875, -0.0014410018920898438, 0.021759033203125, 0.017730712890625, 0.007694244384765625, 0.03192138671875, 0.04925537109375, -0.01177978515625, 0.0005116462707519531, -0.00911712646484375, 0.01558685302734375, -0.04412841796875, -0.03155517578125, -0.03631591796875, 0.0123138427734375, 0.0361328125, 0.022125244140625, -0.03131103515625, 0.053314208984375, -0.0241241455078125, -0.01324462890625, 0.01126861572265625, -0.0018739700317382812, 0.018524169921875, -0.004474639892578125, 0.0158843994140625, -0.0360107421875, 0.057403564453125, -0.025848388671875, -0.0266876220703125, -0.00499725341796875, 0.010101318359375, 0.00021696090698242188, -0.0029926300048828125, 0.0306854248046875, 0.00670623779296875, -0.006015777587890625, 0.01302337646484375, -0.0311737060546875, -0.0242156982421875, -0.023529052734375, 0.0238800048828125, 0.044830322265625, -0.021820068359375, -0.017608642578125, 0.029022216796875, -0.010833740234375, 0.025970458984375, 0.010467529296875, -0.0250396728515625, 0.01288604736328125, 0.01849365234375, -0.0003840923309326172, -0.00514984130859375, -0.02508544921875, -0.04998779296875, -0.042266845703125, -0.0013256072998046875, -0.0079193115234375, 0.0269622802734375, 0.0038471221923828125, 0.06011962890625, 0.00035262107849121094, -0.061859130859375, 0.0178070068359375, 0.031280517578125, -0.006130218505859375, -0.017364501953125, -0.032928466796875, -0.0142364501953125, -0.036285400390625, -0.023162841796875, 0.0124359130859375, -0.00444793701171875, -0.0183868408203125, -0.00518035888671875, -0.006038665771484375, 0.028076171875, -0.01250457763671875, 0.006656646728515625, 0.00965118408203125, 0.001987457275390625, -0.023345947265625, 0.032989501953125, -0.0244293212890625, 0.0011539459228515625, -0.004306793212890625, 0.0262908935546875, -0.02740478515625, -0.018463134765625, 0.0156402587890625, -0.0290374755859375, -0.0264129638671875, -0.0992431640625, 0.00968170166015625, 0.025115966796875, -0.0325927734375, 0.055267333984375, 0.0090484619140625, 0.0231475830078125, 0.046356201171875, -0.0017948150634765625, 0.0127716064453125, -0.0105438232421875, -0.02117919921875, -0.0283966064453125, 0.0106964111328125, 0.052642822265625, -0.034393310546875, -0.0068817138671875, -0.0162506103515625, 0.031097412109375, 0.01129150390625, -0.0300445556640625, -0.005260467529296875, 0.0032138824462890625, -0.036468505859375, 0.0286102294921875, 0.0237274169921875, -0.000774383544921875, 0.0244140625, 0.005645751953125, -0.004001617431640625, -0.01132965087890625, -0.0269012451171875, -0.049407958984375, 0.01297760009765625, 0.035400390625, 0.0090789794921875, 0.0173797607421875, 0.059234619140625, -0.0015497207641601562, -0.034698486328125, 0.0166168212890625, 0.01409149169921875, -0.0012378692626953125, -0.029449462890625, -0.00457000732421875, -0.00978851318359375, -0.0146331787109375, 0.0040130615234375, -0.0209197998046875, -0.0220184326171875, -0.01129913330078125, -0.007511138916015625, -0.03717041015625, -0.011322021484375, 0.035308837890625, -0.01436614990234375, -0.0221710205078125, 0.039459228515625, 0.01197052001953125, -0.044952392578125, 0.01381683349609375, 0.01329803466796875, -0.025665283203125, -0.0182647705078125, 0.0195465087890625, 0.015350341796875, -0.03204345703125, -0.09075927734375, 0.007503509521484375, 0.0100250244140625, -0.03857421875, 0.05743408203125, -0.0479736328125, 0.02618408203125, 0.04248046875, -0.02020263671875, 0.01120758056640625, -0.0013551712036132812, -0.0231781005859375, -0.03717041015625, -0.02862548828125, 0.01087188720703125, 0.0010881423950195312, -0.036468505859375, 0.0243682861328125, -0.037200927734375, -0.027862548828125, 0.0139312744140625, -0.003406524658203125, -0.00589752197265625, -0.011505126953125, -0.006443023681640625, 0.0189361572265625, 0.04052734375, 0.026580810546875, 0.01197052001953125, 0.01806640625, -0.036346435546875, -0.047332763671875, 0.01617431640625, -0.062103271484375, -0.0036602020263671875, 0.011260986328125, -0.1119384765625, 0.149169921875, 0.0276641845703125, 0.080322265625, -0.00850677490234375, 0.046875, -0.050445556640625, 0.008575439453125, -0.034759521484375, 0.046630859375, 0.050323486328125, 0.06817626953125, -0.004547119140625, -0.0031719207763671875, 0.036346435546875, 0.0146026611328125, 0.0298614501953125, 0.004222869873046875, -0.00543975830078125, -0.006011962890625, 0.03955078125, 0.042633056640625, -0.0110931396484375, 0.01253509521484375, 0.00762176513671875, 0.01739501953125, -0.016632080078125, -0.005313873291015625, 0.05084228515625, -0.08123779296875, -0.04693603515625, 0.0234375, 0.0253448486328125, 0.04437255859375, -0.046478271484375, 0.022216796875, 0.04608154296875, -0.038360595703125, -0.0110626220703125, -0.00951385498046875, 0.00788116455078125, 0.004207611083984375, 0.0054168701171875, -0.0513916015625, -0.029083251953125, -0.0169830322265625, 0.035980224609375, 0.01013946533203125, 0.0416259765625, 0.0474853515625, 0.03314208984375, 0.000522613525390625, -0.004467010498046875, 0.033935546875, 0.0191192626953125, -0.0377197265625, 0.033935546875, -0.006252288818359375, -0.005695343017578125, -0.07122802734375, 0.053802490234375, 0.052520751953125, 0.04608154296875, -0.058349609375, -0.0046539306640625, 0.0126953125, 0.00604248046875, -0.008697509765625, -0.018218994140625, 0.005710601806640625, -0.00519561767578125, -0.00872802734375, -0.025909423828125, 0.0087432861328125, 0.04425048828125, 0.0211944580078125, 0.0113677978515625, 0.0166015625, -0.06591796875, -0.006500244140625, -0.06365966796875, -0.003330230712890625, 0.00205230712890625, 0.0653076171875, 0.055206298828125, 0.033233642578125, 0.0322265625, -0.036895751953125, -0.035736083984375, 0.0206298828125, 0.02056884765625, 0.01509857177734375, -0.0335693359375, 0.001495361328125, 0.0205230712890625, 0.0264434814453125, 0.0043792724609375, -0.016265869140625, 0.0188446044921875, 0.0029544830322265625, -0.05108642578125, -0.0211334228515625, -0.018035888671875, -0.042816162109375, 0.01861572265625, -0.0423583984375, 0.030853271484375, -0.005107879638671875, -0.004726409912109375, -0.0220794677734375, 0.031829833984375, 0.004627227783203125, -0.045379638671875, 0.0206451416015625, -0.007251739501953125, -0.040924072265625, -0.00801849365234375, -0.011016845703125, 0.01007080078125, -0.01222991943359375, -0.07867431640625, -0.0347900390625, -0.0261993408203125, 0.0185089111328125, 0.00524139404296875, 0.02191162109375, -0.0091705322265625, 0.03369140625, 0.004856109619140625, 0.0005435943603515625, 0.005725860595703125, -0.0048675537109375, 0.0094146728515625, 0.038970947265625, 0.02288818359375, 0.025543212890625, -0.015838623046875, 0.0015916824340820312, 0.061065673828125, -0.0052642822265625, -0.0126800537109375, 0.019622802734375, 0.0059356689453125, -0.01212310791015625, -0.01922607421875, -0.0006046295166015625, -0.00568389892578125, -0.034271240234375, 0.052825927734375, 0.0032863616943359375, -0.0242767333984375, -0.0034732818603515625, -0.02154541015625, -0.0153350830078125, 0.04412841796875, -0.0269927978515625, 0.011505126953125, -0.0374755859375, 0.0174407958984375, -0.039306640625, 0.03692626953125, -0.019775390625, -0.04901123046875, -0.0269622802734375, 0.006465911865234375, 0.005779266357421875, 0.03387451171875, 0.02496337890625, -0.004474639892578125, 0.0128326416015625, -0.030670166015625, 0.034576416015625, 0.00029587745666503906, 0.032012939453125, 0.022216796875, 0.0233917236328125, -0.037750244140625, 0.030242919921875, -0.0221710205078125, -0.006694793701171875, 0.0168304443359375, 0.035491943359375, -0.008331298828125, -0.0183868408203125, -0.0131988525390625, -0.017333984375, -0.01715087890625, -0.0650634765625, 0.0025653839111328125, -0.0017786026000976562, 0.01021575927734375, 0.004238128662109375, -0.02496337890625, -0.0203399658203125, -0.001941680908203125, -0.0260162353515625, 0.013275146484375, -0.01403045654296875, -0.059600830078125, -0.03692626953125, 0.0022373199462890625, 0.009735107421875, 0.0160369873046875, -0.01538848876953125, 0.05316162109375, -0.0190277099609375, -0.05914306640625, 0.0250091552734375, 0.005767822265625, -0.0190277099609375, 0.002414703369140625, -0.01458740234375, -0.039337158203125, -0.046356201171875, 0.045989990234375, -0.02801513671875, 0.001194000244140625, 0.033660888671875, -0.01611328125, -0.0290679931640625, -0.0002608299255371094, 0.0106964111328125, 0.0302276611328125, -0.01451873779296875, -0.0169525146484375, 0.00365447998046875, 0.0153350830078125, -0.01189422607421875, -0.06768798828125, -0.006256103515625, -0.03839111328125, -0.00450897216796875, -0.0079345703125, -0.01226043701171875, -0.0040130615234375, -0.053924560546875, -0.10528564453125, 0.0281982421875, -0.007289886474609375, -0.0357666015625, -0.00699615478515625, 0.00739288330078125, -0.005420684814453125, 0.05242919921875, 0.005466461181640625, 0.0082550048828125, -0.01123809814453125, -0.0033588409423828125, 0.03570556640625, 0.0171356201171875, 0.041748046875, 0.02789306640625, -0.005435943603515625, 0.0325927734375, 0.007686614990234375, 0.0240478515625, -0.01418304443359375, 0.003650665283203125, -0.00160980224609375, 0.020233154296875, -0.0347900390625, -0.02850341796875, -0.002315521240234375, 0.0129852294921875, 0.009033203125, -0.0609130859375, -0.050506591796875, -0.0269775390625, 0.053497314453125, 0.051849365234375, 0.0197296142578125, -0.023681640625, -0.08880615234375, -0.03936767578125, 0.0214691162109375, -0.021026611328125, 0.0140838623046875, -0.08441162109375, 0.017578125, 0.0178985595703125, -0.03167724609375, 0.02508544921875, -0.027496337890625, -0.057861328125, 0.003284454345703125, -0.031280517578125, 0.0033206939697265625, -0.06658935546875, 0.0201568603515625, -0.045257568359375, 0.01107025146484375, 0.02264404296875, -0.07354736328125, 0.029205322265625, -0.01557159423828125, -0.057830810546875, -0.05059814453125, -0.0638427734375, 0.0322265625, 0.038543701171875, -0.0169677734375, 0.038330078125, -0.01477813720703125, -0.004398345947265625, -0.03424072265625, 0.0088043212890625, 0.019287109375, 0.00577545166015625, -0.0193634033203125, 0.0084991455078125, 0.02386474609375, 0.01885986328125, -0.035125732421875, 0.0143280029296875, -0.0023899078369140625, 0.0152435302734375, -0.03759765625, 0.0135345458984375, 0.031951904296875, -0.055267333984375, 0.0166015625, -0.02081298828125, 0.040618896484375, -0.016571044921875, 0.0225982666015625, -0.0096282958984375, -0.0037689208984375, 0.01531982421875 ]
cb3a2a1a1b838a3f09376c85cb0c71364fb88056
Wordpress Stackexchange Q: alphabetically order role drop-down selection in dashboard The site I'm working on will have a very large number of unique user roles via a members plugin. Because of that, I'd like to have the Role drop-down selection on the Add New User page to display roles alphabetically, rather than descending order of creation. Is there any way to do this? A: Almost the same approach One Trick Pony has chosen, but I am using translated names and uasort() (to preserve the keys): add_filter( 'editable_roles', 't5_sort_editable_roles' ); /** * Array of roles. * * @wp-hook editable_roles * @param array $roles * @return array */ function t5_sort_editable_roles( $roles ) { uasort( $roles, 't5_uasort_editable_roles' ); return $roles; } /** * Compare translated role names. * * @param array $a First role * @param array $b Second role * @return number */ function t5_uasort_editable_roles( $a, $b ) { return strcasecmp( translate_user_role( $a['name'] ), translate_user_role( $b['name'] ) ); } As a plugin on GitHub.
Q: alphabetically order role drop-down selection in dashboard The site I'm working on will have a very large number of unique user roles via a members plugin. Because of that, I'd like to have the Role drop-down selection on the Add New User page to display roles alphabetically, rather than descending order of creation. Is there any way to do this? A: Almost the same approach One Trick Pony has chosen, but I am using translated names and uasort() (to preserve the keys): add_filter( 'editable_roles', 't5_sort_editable_roles' ); /** * Array of roles. * * @wp-hook editable_roles * @param array $roles * @return array */ function t5_sort_editable_roles( $roles ) { uasort( $roles, 't5_uasort_editable_roles' ); return $roles; } /** * Compare translated role names. * * @param array $a First role * @param array $b Second role * @return number */ function t5_uasort_editable_roles( $a, $b ) { return strcasecmp( translate_user_role( $a['name'] ), translate_user_role( $b['name'] ) ); } As a plugin on GitHub. A: Apparently there's a filter that you can use in the get_editable_roles function (which is called in that page): add_filter('editable_roles', function($roles){ // sort alphabetically (ignores case) usort($roles, function($a, $b){ return strcasecmp($a["name"], $b["name"]); }); return $roles; });
wordpress
{ "language": "en", "length": 196, "provenance": "stackexchange_00019.jsonl.gz:426417", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74785" }
[ 0.034820556640625, -0.0106658935546875, 0.006900787353515625, -0.004955291748046875, 0.0030689239501953125, -0.0154266357421875, 0.0250244140625, -0.0361328125, 0.003154754638671875, 0.046875, 0.0465087890625, -0.01305389404296875, 0.01538848876953125, -0.03167724609375, -0.0419921875, -0.0008015632629394531, 0.0183868408203125, -0.0322265625, -0.0086822509765625, -0.03106689453125, 0.01605224609375, -0.0188446044921875, 0.018035888671875, 0.035858154296875, 0.01184844970703125, -0.03955078125, 0.057952880859375, -0.0108184814453125, 0.0024585723876953125, -0.01654052734375, 0.0158538818359375, -0.0038604736328125, -0.0097198486328125, -0.00917816162109375, 0.0660400390625, 0.031707763671875, 0.046234130859375, -0.011962890625, 0.048126220703125, -0.00312042236328125, 0.0168914794921875, -0.00330352783203125, -0.00759124755859375, 0.00408172607421875, -0.004077911376953125, -0.0675048828125, 0.05120849609375, -0.00605010986328125, 0.024017333984375, -0.026611328125, 0.02618408203125, 0.0181121826171875, 0.049346923828125, -0.036956787109375, -0.002124786376953125, 0.017181396484375, -0.0648193359375, 0.0849609375, 0.026824951171875, 0.031280517578125, -0.007366180419921875, 0.00479888916015625, -0.01593017578125, -0.040618896484375, -0.01995849609375, 0.0178985595703125, 0.0268096923828125, 0.0152587890625, -0.0249786376953125, -0.034576416015625, -0.0033321380615234375, -0.0153350830078125, -0.00037741661071777344, -0.038238525390625, -0.0230712890625, 0.03802490234375, -0.03582763671875, -0.031341552734375, 0.0552978515625, -0.022735595703125, -0.0169525146484375, -0.007732391357421875, 0.0416259765625, -0.045379638671875, -0.007450103759765625, -0.029449462890625, -0.01715087890625, 0.013671875, -0.0274658203125, 0.004352569580078125, -0.0189666748046875, -0.0097808837890625, -0.0189971923828125, 0.0283355712890625, -0.0182952880859375, 0.018768310546875, 0.031524658203125, 0.043182373046875, -0.01312255859375, -0.0289764404296875, 0.0244140625, -0.05322265625, 0.0172576904296875, -0.032928466796875, -0.01399993896484375, 0.005489349365234375, 0.014373779296875, -0.01128387451171875, 0.005031585693359375, 0.03515625, -0.0017261505126953125, 0.023895263671875, -0.0113983154296875, -0.00989532470703125, -0.00711822509765625, -0.01214599609375, -0.044921875, 0.03759765625, 0.01593017578125, 0.021148681640625, -0.0029087066650390625, 0.00673675537109375, 0.0423583984375, -0.03741455078125, -0.007167816162109375, -0.0056304931640625, -0.039306640625, -0.04351806640625, -0.005428314208984375, -0.0180206298828125, -0.0218353271484375, 0.0362548828125, 0.07330322265625, 0.037017822265625, -0.0036106109619140625, -0.01111602783203125, -0.0225067138671875, -0.0217437744140625, 0.0009965896606445312, 0.0233306884765625, 0.0079345703125, -0.03289794921875, 0.0270843505859375, 0.0194854736328125, -0.0157470703125, 0.0116119384765625, -0.005126953125, 0.012969970703125, 0.033233642578125, -0.0011272430419921875, -0.033233642578125, -0.0390625, 0.0211944580078125, -0.013916015625, 0.00331878662109375, 0.01751708984375, -0.004177093505859375, 0.004150390625, -0.03204345703125, 0.01361083984375, 0.0007662773132324219, -0.0013256072998046875, -0.0006079673767089844, -0.03997802734375, -0.03900146484375, -0.0087127685546875, -0.0229949951171875, 0.004863739013671875, 0.018463134765625, -0.07452392578125, 0.0250091552734375, 0.00010859966278076172, 0.046722412109375, -0.0129547119140625, 0.01102447509765625, 0.0430908203125, 0.007518768310546875, -0.01050567626953125, 0.00774383544921875, -0.01837158203125, -0.021240234375, -0.03173828125, -0.007678985595703125, 0.00882720947265625, -0.054412841796875, 0.0199737548828125, -0.03509521484375, 0.04052734375, 0.0677490234375, 0.0118560791015625, -0.01453399658203125, 0.00803375244140625, -0.0230712890625, -0.00901031494140625, 0.0007905960083007812, -0.0207977294921875, 0.02777099609375, 0.0024471282958984375, 0.00748443603515625, 0.009429931640625, 0.040313720703125, -0.01806640625, -0.0123138427734375, -0.0256805419921875, -0.031219482421875, -0.043365478515625, 0.00656890869140625, 0.0015821456909179688, -0.005306243896484375, 0.01462554931640625, 0.00861358642578125, 0.002292633056640625, -0.03204345703125, -0.024444580078125, -0.00974273681640625, 0.0265350341796875, -0.0109710693359375, -0.00864410400390625, -0.008056640625, 0.0233001708984375, -0.0101776123046875, 0.0070953369140625, -0.005695343017578125, 0.028594970703125, 0.0284881591796875, -0.01396942138671875, -0.0081634521484375, -0.007419586181640625, 0.04425048828125, -0.00847625732421875, 0.040802001953125, 0.01276397705078125, 0.03424072265625, 0.0479736328125, -0.0036678314208984375, -0.0015611648559570312, 0.0003979206085205078, -0.068115234375, 0.0182342529296875, 0.044647216796875, 0.03948974609375, 0.040069580078125, 0.031585693359375, 0.038604736328125, 0.01837158203125, -0.05230712890625, 0.0281982421875, 0.004795074462890625, -0.0150299072265625, 0.06561279296875, 0.01143646240234375, 0.04486083984375, -0.00377655029296875, 0.0296478271484375, -0.0256500244140625, 0.038360595703125, -0.04901123046875, -0.00910186767578125, -0.005107879638671875, -0.01824951171875, 0.0103607177734375, -0.10791015625, -0.0214996337890625, -0.04425048828125, 0.0092926025390625, -0.0274200439453125, 0.0010328292846679688, -0.01546478271484375, -0.031005859375, -0.0130462646484375, 0.04522705078125, 0.005947113037109375, 0.005741119384765625, -0.00537109375, 0.00630950927734375, -0.05072021484375, -0.02703857421875, 0.007659912109375, -0.00920867919921875, -0.0310516357421875, 0.01209259033203125, 0.06475830078125, 0.041473388671875, -0.0105133056640625, -0.0136260986328125, -0.0484619140625, 0.003803253173828125, 0.009124755859375, -0.0199127197265625, -0.019775390625, 0.0110015869140625, 0.019744873046875, -0.018218994140625, 0.00762176513671875, 0.0005941390991210938, -0.01198577880859375, 0.008819580078125, -0.00428009033203125, -0.0004546642303466797, -0.020751953125, 0.01486968994140625, 0.047027587890625, -0.002410888671875, -0.0204315185546875, -0.0002846717834472656, -0.03656005859375, -0.01904296875, 0.0218505859375, -0.0010356903076171875, -0.045654296875, 0.0106201171875, 0.064208984375, 0.035491943359375, -0.003185272216796875, 0.038726806640625, -0.01456451416015625, 0.005756378173828125, 0.0297088623046875, -0.0418701171875, -0.06317138671875, 0.00789642333984375, -0.041656494140625, 0.01206207275390625, 0.0235595703125, -0.0152130126953125, -0.030487060546875, 0.03350830078125, 0.00893402099609375, -0.00821685791015625, -0.0094451904296875, -0.04864501953125, -0.011016845703125, -0.0274505615234375, 0.03558349609375, -0.006847381591796875, 0.000965118408203125, 0.00518035888671875, 0.01457977294921875, 0.01335906982421875, -0.05255126953125, 0.009002685546875, 0.06512451171875, -0.0260162353515625, -0.009429931640625, 0.041046142578125, -0.061004638671875, 0.03192138671875, -0.0132904052734375, 0.037689208984375, 0.029205322265625, -0.019622802734375, 0.009735107421875, -0.0008578300476074219, -0.023162841796875, 0.044281005859375, -0.0360107421875, -0.037933349609375, 0.023345947265625, 0.060882568359375, -0.0204315185546875, 0.0156707763671875, 0.007038116455078125, 0.00800323486328125, -0.0054931640625, -0.032989501953125, -0.0166168212890625, -0.0160675048828125, 0.01947021484375, -0.004222869873046875, -0.01421356201171875, -0.033294677734375, 0.021820068359375, -0.04510498046875, -0.00421905517578125, -0.0052337646484375, 0.03021240234375, 0.045654296875, -0.0060577392578125, -0.0266265869140625, 0.007549285888671875, 0.0275115966796875, 0.01026153564453125, 0.00951385498046875, -0.002704620361328125, -0.1005859375, 0.054656982421875, -0.049896240234375, -0.01238250732421875, -0.046783447265625, -0.0267486572265625, 0.0277252197265625, 0.135498046875, -0.0250244140625, -0.0030879974365234375, -0.005855560302734375, -0.00933837890625, -0.01467132568359375, 0.0240478515625, -0.052093505859375, -0.01523590087890625, -0.09381103515625, 0.020111083984375, 0.0207366943359375, -0.0282745361328125, -0.046356201171875, 0.02301025390625, -0.08355712890625, -0.0192718505859375, 0.04827880859375, -0.065185546875, 0.002361297607421875, 0.0011882781982421875, -0.00823974609375, -0.0297088623046875, -0.0333251953125, -0.0240325927734375, -0.0941162109375, -0.021026611328125, -0.026153564453125, 0.07757568359375, 0.009124755859375, -0.013641357421875, -0.02685546875, 0.051788330078125, 0.0008292198181152344, 0.01959228515625, 0.0172576904296875, 0.031341552734375, 0.01201629638671875, -0.022857666015625, 0.029052734375, -0.04534912109375, -0.0077667236328125, -0.02734375, -0.0136260986328125, -0.0213165283203125, -0.046173095703125, -0.01515960693359375, -0.016448974609375, -0.0214080810546875, -0.06024169921875, -0.03363037109375, -0.01261138916015625, 0.006748199462890625, -0.01214599609375, -0.0018787384033203125, -0.031158447265625, -0.076416015625, 0.00849151611328125, -0.0255889892578125, -0.0026340484619140625, 0.020599365234375, 0.05560302734375, 0.02191162109375, -0.005474090576171875, -0.01375579833984375, 0.0114288330078125, 0.021331787109375, 0.0460205078125, 0.0582275390625, 0.04241943359375, -0.0006785392761230469, 0.0182952880859375, 0.0229949951171875, 0.004192352294921875, 0.0034694671630859375, -0.0095367431640625, 0.0156402587890625, -0.0418701171875, 0.02484130859375, 0.034088134765625, -0.0284423828125, 0.019073486328125, -0.003704071044921875, -0.0252532958984375, 0.0219573974609375, 0.024566650390625, -0.020599365234375, 0.021392822265625, 0.0036106109619140625, -0.063232421875, 0.022125244140625, -0.0190887451171875, -0.01323699951171875, -0.0157012939453125, 0.0102386474609375, 0.0012989044189453125, -0.0136566162109375, -0.003940582275390625, -0.0005712509155273438, -0.00445556640625, 0.0024318695068359375, 0.059814453125, -0.05242919921875, 0.00954437255859375, -0.01263427734375, -0.0204010009765625, 0.0892333984375, -0.01056671142578125, -0.058135986328125, 0.0093536376953125, -0.04833984375, 0.01904296875, 0.036712646484375, 0.007633209228515625, -0.001621246337890625, 0.0185394287109375, 0.0179901123046875, 0.007781982421875, 0.006778717041015625, 0.0205535888671875, 0.0013589859008789062, 0.031768798828125, 0.006229400634765625, -0.0236663818359375, -0.027679443359375, 0.055908203125, 0.00444793701171875, 0.0195770263671875, -0.0055999755859375, 0.01519012451171875, 0.0235595703125, -0.0221405029296875, 0.00684356689453125, 0.0286712646484375, 0.0033321380615234375, -0.0202789306640625, 0.025115966796875, -0.02099609375, -0.0230560302734375, 0.0057220458984375, -0.00576019287109375, -0.0176239013671875, 0.0034961700439453125, 0.037567138671875, 0.035247802734375, -0.0123138427734375, 0.09332275390625, 0.00847625732421875, -0.076416015625, -0.041229248046875, -0.0023059844970703125, 0.039825439453125, -0.0506591796875, 0.01079559326171875, -0.01305389404296875, 0.002105712890625, -0.00998687744140625, -0.0124053955078125, -0.03173828125, -0.009521484375, 0.005886077880859375, -0.07891845703125, -0.00527191162109375, 0.026580810546875, -0.031829833984375, -0.044891357421875, 0.01580810546875, -0.0330810546875, 0.0215911865234375, -0.00634002685546875, 0.037200927734375, -0.026641845703125, 0.0007214546203613281, -0.048919677734375, 0.01399993896484375, 0.0092010498046875, -0.0072784423828125, -0.017333984375, 0.0022258758544921875, -0.0677490234375, -0.0306396484375, -0.046722412109375, -0.02264404296875, -0.03057861328125, 0.0027980804443359375, 0.029205322265625, 0.006198883056640625, 0.0206756591796875, -0.03759765625, -0.009307861328125, 0.0021915435791015625, 0.0377197265625, -0.01666259765625, -0.0081329345703125, 0.049224853515625, 0.01381683349609375, -0.002635955810546875, 0.01551055908203125, 0.02349853515625, -0.00826263427734375, 0.01320648193359375, -0.0021991729736328125, -0.033050537109375, -0.009033203125, -0.002025604248046875, -0.01763916015625, 0.00970458984375, 0.039886474609375, -0.004718780517578125, 0.04583740234375, 0.0184326171875, 0.0145111083984375, -0.00374603271484375, -0.07781982421875, 0.01971435546875, 0.0156402587890625, 0.04827880859375, -0.022003173828125, 0.0006556510925292969, 0.01276397705078125, -0.014984130859375, 0.0269622802734375, 0.0029277801513671875, 0.0256500244140625, -0.022857666015625, -0.06463623046875, 0.053314208984375, 0.007228851318359375, 0.01532745361328125, 0.00476837158203125, -0.0107879638671875, 0.018768310546875, -0.052947998046875, -0.01172637939453125, 0.025390625, -0.031768798828125, 0.0237274169921875, -0.0261077880859375, 0.01512908935546875, 0.0025501251220703125, -0.01287078857421875, 0.029144287109375, 0.047454833984375, 0.031005859375, -0.084228515625, 0.01508331298828125, -0.020599365234375, -0.03485107421875, 0.04522705078125, -0.004093170166015625, -0.0176544189453125, -0.03765869140625, 0.052581787109375, -0.033966064453125, -0.0275726318359375, 0.01324462890625, -0.0275726318359375, -0.01507568359375, 0.01971435546875, -0.0229339599609375, 0.0021724700927734375, 0.048736572265625, -0.0250091552734375, -0.057159423828125, 0.0352783203125, -0.0305633544921875, 0.00984954833984375, 0.0036220550537109375, -0.008331298828125, -0.0809326171875, -0.0163421630859375, -0.0217742919921875, -0.022369384765625, 0.024871826171875, -0.0305633544921875, 0.0290069580078125, 0.0316162109375, -0.0090179443359375, -0.016876220703125, 0.0286712646484375, -0.060272216796875, 0.0173492431640625, -0.0345458984375, -0.01029205322265625, -0.00937652587890625, -0.0361328125, -0.004302978515625, -0.01035308837890625, -0.0263519287109375, -0.00595855712890625, 0.0047149658203125, 0.0300445556640625, 0.0254058837890625, -0.032867431640625, 0.0306854248046875, -0.005535125732421875, -0.022003173828125, 0.01210784912109375, 0.01512908935546875, -0.07122802734375, -0.061431884765625, 0.025390625, -0.051513671875, 0.0113372802734375, 0.0307159423828125, -0.06927490234375, 0.0662841796875, -0.0276947021484375, 0.04693603515625, -0.0128021240234375, 0.015106201171875, 0.0068359375, 0.0167236328125, -0.0276031494140625, 0.0582275390625, -0.029144287109375, 0.0445556640625, -0.053131103515625, 0.01369476318359375, -0.0003495216369628906, 0.0296173095703125, 0.016937255859375, -0.0022106170654296875, -0.050323486328125, -0.0127410888671875, 0.043426513671875, 0.0360107421875, 0.048919677734375, 0.035552978515625, -0.007160186767578125, 0.02398681640625, 0.0204315185546875, -0.0169830322265625, 0.038116455078125, -0.0474853515625, -0.042266845703125, 0.01236724853515625, 0.00769805908203125, 0.0270233154296875, 0.00672149658203125, -0.0011396408081054688, -0.0531005859375, 0.0003402233123779297, 0.03582763671875, -0.0220947265625, 0.03997802734375, 0.0162506103515625, 0.060455322265625, -0.027740478515625, -0.06475830078125, 0.0003018379211425781, 0.0423583984375, 0.01336669921875, 0.0202484130859375, 0.012298583984375, 0.0255889892578125, -0.007389068603515625, -0.0236968994140625, 0.00759124755859375, 0.0191802978515625, -0.054595947265625, 0.041229248046875, 0.028778076171875, 0.04083251953125, -0.004367828369140625, 0.00510406494140625, 0.0215911865234375, 0.04510498046875, -0.039154052734375, -0.041748046875, 0.01113128662109375, 0.01094818115234375, 0.0310211181640625, 0.00740814208984375, -0.0015840530395507812, -0.060791015625, 0.0079803466796875, -0.0176239013671875, -0.0261383056640625, -0.0164031982421875, 0.01334381103515625, -0.0217742919921875, -0.033416748046875, 0.035247802734375, -0.01119232177734375, -0.01617431640625, 0.0361328125, -0.0052642822265625, -0.01177978515625, -0.00510406494140625, 0.01922607421875, 0.023956298828125, 0.01555633544921875, -0.0218505859375, 0.005611419677734375, -0.0180816650390625, 0.00664520263671875, -0.044281005859375, -0.024658203125, -0.03863525390625, 0.035552978515625, -0.0101318359375, -0.018890380859375, 0.01464080810546875, 0.052978515625, 0.0233001708984375, -0.032440185546875, 0.020355224609375, -0.00957489013671875, 0.014312744140625, -0.0257415771484375, 0.058319091796875, 0.058807373046875, 0.020355224609375, 0.0009083747863769531, 0.0276336669921875, 0.064453125, -0.03131103515625, 0.043121337890625, -0.018341064453125, -0.01137542724609375, -0.00946807861328125, -0.0439453125, 0.03045654296875, -0.00743865966796875, -0.057525634765625, 0.038299560546875, -0.0826416015625, -0.086181640625, 0.0294952392578125, 0.0406494140625, -0.01091766357421875, 0.0174560546875, 0.0491943359375, -0.049957275390625, -0.00414276123046875, 0.0232086181640625, 0.0478515625, 0.018310546875, -0.008758544921875, 0.001277923583984375, -0.00222015380859375, 0.00616455078125, 0.014739990234375, 0.01445770263671875, -0.02484130859375, 0.047454833984375, -0.018035888671875, 0.00318145751953125, -0.04351806640625, -0.037445068359375, 0.00019061565399169922, -0.0765380859375, 0.10821533203125, 0.01163482666015625, -0.03985595703125, -0.006084442138671875, -0.0020751953125, -0.0011396408081054688, 0.011749267578125, -0.042022705078125, -0.039520263671875, -0.005840301513671875, 0.022918701171875, 0.01551055908203125, 0.050872802734375, -0.007183074951171875, -0.0199737548828125, -0.0465087890625, -0.0203857421875, 0.03497314453125, 0.03948974609375, -0.0156707763671875, 0.01453399658203125, -0.053131103515625, -0.03802490234375, -0.0240478515625, -0.01085662841796875, -0.0704345703125, 0.0156097412109375, 0.0137481689453125, 0.0117034912109375, 0.01399993896484375, -0.0155487060546875, 0.006107330322265625, 0.0205230712890625, 0.0000864267349243164, 0.032684326171875, -0.02423095703125, -0.0022335052490234375, 0.059234619140625, 0.08123779296875, 0.02740478515625, 0.0357666015625, 0.011993408203125, -0.0215606689453125, -0.0379638671875, 0.0122833251953125, -0.02239990234375, 0.0266571044921875, 0.000995635986328125, 0.01018524169921875, 0.056884765625, -0.022064208984375, -0.054290771484375, -0.01471710205078125, 0.00930023193359375, 0.01210784912109375, -0.0692138671875, 0.01837158203125, 0.007488250732421875, 0.0165557861328125, -0.033538818359375, -0.037994384765625, 0.0355224609375, 0.02777099609375, -0.03436279296875, 0.0341796875, -0.004291534423828125, -0.043975830078125, 0.0161285400390625, -0.0135345458984375, 0.0008764266967773438, 0.021484375, -0.0204315185546875, 0.006744384765625, -0.040435791015625, 0.036224365234375, -0.0302734375, 0.0096893310546875, 0.03076171875, -0.01104736328125, -0.060272216796875, -0.08056640625, 0.037200927734375, -0.09283447265625, -0.041046142578125, -0.01143646240234375, 0.01074981689453125, 0.034454345703125, -0.019378662109375, -0.057647705078125, 0.11138916015625, -0.02423095703125, -0.016387939453125, -0.01465606689453125, 0.03704833984375, -0.017333984375, 0.048828125, 0.0350341796875, -0.0499267578125, 0.018768310546875, 0.0137939453125, 0.0246734619140625, 0.015472412109375, 0.0094757080078125, 0.01061248779296875, -0.0239105224609375, 0.037322998046875, 0.0440673828125, -0.0035953521728515625, -0.022125244140625, 0.007358551025390625, 0.0157623291015625, 0.0462646484375, 0.0078582763671875, -0.04351806640625, 0.01788330078125, -0.021331787109375, -0.00909423828125, -0.046051025390625, -0.0120849609375, -0.0233917236328125, 0.0183868408203125, 0.020538330078125, 0.004367828369140625, -0.016448974609375, -0.034393310546875, -0.047576904296875, -0.01220703125, -0.01525115966796875, 0.004673004150390625, -0.059478759765625, 0.01311492919921875, -0.003986358642578125, -0.01535797119140625, 0.03912353515625, -0.0099029541015625, -0.0222320556640625, 0.00589752197265625, 0.015380859375, 0.00572967529296875, -0.05511474609375, 0.053985595703125, 0.031463623046875, -0.060211181640625, -0.06671142578125, 0.016937255859375, -0.0265655517578125, -0.030364990234375, -0.015716552734375, -0.04034423828125, 0.00738525390625, -0.0238494873046875, 0.04608154296875, -0.015594482421875, 0.044647216796875, -0.060760498046875, 0.0186309814453125, -0.00997161865234375, 0.0270233154296875, 0.0087890625, 0.0157623291015625, -0.0103302001953125, 0.053497314453125, 0.01389312744140625, 0.051239013671875, -0.003520965576171875, 0.0124359130859375, -0.021240234375, 0.0217437744140625, 0.010772705078125, -0.0117340087890625, 0.04443359375, -0.0316162109375, 0.023223876953125, 0.0024204254150390625, 0.0361328125, 0.0235137939453125, -0.003963470458984375, 0.0228729248046875, -0.0204010009765625, 0.00213623046875 ]
daba175f12e7382473df02d8c4bb610f4a12d33d
Wordpress Stackexchange Q: How is WP Cron Locking implemented? WordPress takes measures to ensure that a cron task doesn't run twice when it should run once, e.g. once every hour when an hourly schedule is given, rather than the occasional twice at the scheduled time. While it's not foolproof, what steps does WordPress take to make sure it happens at the scheduled times, and only once as specified? A: A transient is set to reflect the state of the cron, which gets deleted when all tasks complete. Any subsequent requests are ignored if that transient is found...
Q: How is WP Cron Locking implemented? WordPress takes measures to ensure that a cron task doesn't run twice when it should run once, e.g. once every hour when an hourly schedule is given, rather than the occasional twice at the scheduled time. While it's not foolproof, what steps does WordPress take to make sure it happens at the scheduled times, and only once as specified? A: A transient is set to reflect the state of the cron, which gets deleted when all tasks complete. Any subsequent requests are ignored if that transient is found... A: onetrickpony's answer is mostly correct. If you let WordPress do its default thing, or you manually trigger wp-cron by fetching its URL with 'doing_wp_cron' set to a unique value in the GET string, then you can reliably expect jobs to not be executed twice. But if you execute wp-cron.php from the PHP CLI in your crontab, the story is different. Now it will check a constant called WP_CRON_LOCK_TIMEOUT to find out if it should ignore the lock that is stored in the transient. And there is a race condition that enables the same job to sometimes run twice. If you want to be really sure the same job never executes twice, either don't set DISABLE_WP_CRON or use curl or wget in your crontab to fetch wp-cron.php like so: */10 * * * * wget -q -O "http://www.example.com/wp-cron.php?doing_wp_cron=`date +\%s.\%N`" > /dev/null 2>&1 Also note that there was a bug in 3.3 that caused jobs to be run twice if two instances of wp-cron.php were launched in the same second. Now they would need to be launched in the same microsecond, which is still possible, but highly unlikely.
wordpress
{ "language": "en", "length": 282, "provenance": "stackexchange_00019.jsonl.gz:426420", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74797" }
[ 0.0474853515625, 0.0257568359375, -0.020050048828125, 0.007274627685546875, 0.027252197265625, -0.052459716796875, 0.06243896484375, -0.04351806640625, -0.019195556640625, 0.0248260498046875, -0.0218505859375, 0.0226287841796875, 0.044525146484375, -0.01354217529296875, 0.035614013671875, -0.019256591796875, 0.034088134765625, -0.017120361328125, -0.01479339599609375, -0.0263519287109375, -0.00548553466796875, -0.016021728515625, -0.006282806396484375, 0.08551025390625, 0.0692138671875, -0.0205230712890625, 0.0310211181640625, -0.030853271484375, 0.06427001953125, 0.006412506103515625, 0.052734375, -0.05950927734375, 0.0016241073608398438, 0.03594970703125, -0.0159759521484375, -0.0015325546264648438, 0.016571044921875, 0.018768310546875, 0.00774383544921875, 0.024017333984375, -0.006832122802734375, 0.01471710205078125, 0.0296630859375, 0.00955963134765625, -0.0231475830078125, -0.0223541259765625, -0.002834320068359375, -0.0201873779296875, 0.0210723876953125, 0.0438232421875, 0.00978851318359375, -0.013702392578125, 0.0171966552734375, 0.04052734375, -0.02166748046875, -0.04730224609375, -0.00724029541015625, -0.018035888671875, 0.02606201171875, -0.007293701171875, -0.0160369873046875, -0.0280609130859375, 0.030609130859375, -0.0024013519287109375, 0.0278778076171875, -0.0221099853515625, -0.0185546875, 0.036651611328125, -0.06964111328125, 0.0106658935546875, 0.051025390625, -0.04852294921875, -0.020416259765625, -0.01300048828125, -0.0255584716796875, 0.007778167724609375, 0.01293182373046875, -0.047821044921875, 0.0011873245239257812, 0.018646240234375, 0.04266357421875, -0.0084228515625, 0.0323486328125, 0.00323486328125, -0.00536346435546875, 0.020050048828125, -0.00800323486328125, -0.0212860107421875, -0.04071044921875, -0.0005183219909667969, -0.0369873046875, 0.040374755859375, -0.006389617919921875, -0.03546142578125, -0.042327880859375, 0.00200653076171875, 0.018402099609375, 0.01727294921875, -0.028594970703125, -0.036041259765625, -0.0026416778564453125, -0.01136016845703125, -0.040130615234375, 0.0177001953125, -0.02490234375, 0.0187530517578125, 0.0309600830078125, 0.0540771484375, 0.017425537109375, 0.03131103515625, -0.01227569580078125, 0.007625579833984375, 0.060211181640625, -0.03363037109375, 0.0174407958984375, -0.04351806640625, 0.0084075927734375, 0.04876708984375, 0.018829345703125, -0.0438232421875, 0.002559661865234375, 0.0194244384765625, -0.0458984375, -0.049041748046875, 0.01220703125, -0.0352783203125, -0.0251617431640625, 0.036590576171875, -0.0094146728515625, 0.053924560546875, -0.01995849609375, 0.00107574462890625, 0.0557861328125, 0.00954437255859375, -0.0197296142578125, -0.030914306640625, 0.00847625732421875, 0.001987457275390625, 0.0020122528076171875, -0.0017957687377929688, 0.005069732666015625, -0.00334930419921875, 0.0170745849609375, -0.007843017578125, 0.051055908203125, 0.039276123046875, 0.02496337890625, -0.0014276504516601562, 0.00772857666015625, 0.0107574462890625, -0.0157470703125, -0.01099395751953125, 0.004840850830078125, 0.044158935546875, 0.0193328857421875, -0.00666046142578125, 0.07464599609375, -0.0228729248046875, 0.0196533203125, -0.043670654296875, -0.033355712890625, -0.01441192626953125, 0.00936126708984375, -0.0185699462890625, -0.031005859375, 0.0256805419921875, 0.0087432861328125, -0.004730224609375, 0.031768798828125, 0.0389404296875, 0.022491455078125, -0.00835418701171875, 0.04278564453125, -0.0020599365234375, -0.0289306640625, -0.01274871826171875, 0.0106048583984375, -0.0303497314453125, 0.036468505859375, -0.01486968994140625, -0.048248291015625, -0.0345458984375, 0.04351806640625, -0.034088134765625, -0.0070648193359375, -0.0282440185546875, 0.016510009765625, 0.0384521484375, 0.007511138916015625, 0.041290283203125, -0.02264404296875, -0.0146331787109375, -0.0171356201171875, 0.044219970703125, 0.008575439453125, -0.032989501953125, -0.042724609375, -0.008819580078125, -0.02130126953125, -0.031005859375, 0.0244140625, 0.0081329345703125, -0.0025081634521484375, -0.0086669921875, -0.11053466796875, 0.038482666015625, -0.050689697265625, 0.037567138671875, -0.020782470703125, 0.01678466796875, 0.0133209228515625, 0.006023406982421875, -0.0175933837890625, -0.0203094482421875, -0.009735107421875, 0.026214599609375, -0.0249786376953125, 0.0176849365234375, 0.0008721351623535156, 0.01277923583984375, -0.01345062255859375, -0.027069091796875, -0.0294952392578125, -0.0172576904296875, 0.0248870849609375, 0.0136566162109375, -0.03497314453125, -0.006683349609375, 0.0082550048828125, 0.005970001220703125, -0.0233612060546875, 0.032257080078125, -0.00539398193359375, 0.034912109375, -0.0167999267578125, -0.008575439453125, 0.0009174346923828125, -0.0210418701171875, 0.0002579689025878906, 0.037322998046875, 0.0199432373046875, 0.0157623291015625, 0.000614166259765625, 0.053985595703125, 0.0135498046875, -0.0271148681640625, 0.0097808837890625, 0.0206451416015625, -0.022491455078125, 0.01526641845703125, -0.00531005859375, -0.01345062255859375, 0.0184326171875, -0.0684814453125, -0.02362060546875, 0.046173095703125, -0.0047607421875, 0.004367828369140625, -0.007640838623046875, 0.004436492919921875, -0.005405426025390625, -0.018646240234375, 0.00893402099609375, -0.0038909912109375, -0.006191253662109375, -0.0248870849609375, -0.011077880859375, -0.00879669189453125, 0.0208587646484375, -0.0244598388671875, 0.02655029296875, -0.041168212890625, -0.004421234130859375, 0.0092315673828125, -0.004756927490234375, 0.0010442733764648438, -0.0343017578125, 0.0184326171875, -0.0268402099609375, -0.00916290283203125, -0.01512908935546875, 0.03759765625, -0.04620361328125, -0.01971435546875, -0.02783203125, 0.0189208984375, 0.0008006095886230469, -0.0024871826171875, -0.028594970703125, -0.01678466796875, 0.002696990966796875, 0.047576904296875, -0.00955963134765625, 0.022247314453125, -0.0029754638671875, -0.0061187744140625, -0.0148468017578125, -0.0179290771484375, 0.01248931884765625, -0.03277587890625, -0.035858154296875, 0.0396728515625, 0.0110931396484375, -0.02752685546875, 0.005466461181640625, 0.0091094970703125, 0.019012451171875, -0.018829345703125, -0.0400390625, 0.060394287109375, -0.149658203125, -0.0269775390625, 0.0167999267578125, 0.07647705078125, -0.0201568603515625, -0.052398681640625, 0.0167694091796875, 0.019683837890625, -0.03509521484375, -0.05303955078125, -0.04327392578125, -0.0176239013671875, -0.0003657341003417969, -0.01358795166015625, 0.0192718505859375, 0.01367950439453125, -0.017242431640625, 0.00652313232421875, -0.07672119140625, 0.00677490234375, 0.01092529296875, -0.051910400390625, -0.00955963134765625, 0.041290283203125, 0.0029926300048828125, 0.0226287841796875, -0.00012230873107910156, 0.1297607421875, 0.01416778564453125, -0.09820556640625, -0.0237274169921875, -0.021392822265625, -0.061370849609375, 0.043426513671875, -0.032073974609375, -0.019073486328125, 0.0167999267578125, -0.0088043212890625, -0.004909515380859375, -0.00788116455078125, 0.026336669921875, -0.0138092041015625, -0.0004177093505859375, -0.031890869140625, 0.035064697265625, 0.02008056640625, -0.03717041015625, -0.0184326171875, 0.058624267578125, -0.040252685546875, 0.016876220703125, -0.0135650634765625, -0.0121002197265625, -0.030731201171875, 0.01513671875, -0.03436279296875, -0.0223388671875, -0.017547607421875, -0.0108795166015625, 0.022857666015625, 0.0167388916015625, -0.0189056396484375, 0.0302581787109375, -0.01580810546875, -0.02215576171875, -0.030426025390625, 0.040191650390625, -0.0226898193359375, 0.0013294219970703125, -0.0007843971252441406, -0.0030040740966796875, -0.037841796875, -0.0184173583984375, -0.10498046875, -0.0207366943359375, 0.040802001953125, 0.01800537109375, 0.00016367435455322266, -0.0048675537109375, -0.0224761962890625, -0.006500244140625, 0.040283203125, -0.0181884765625, -0.034576416015625, -0.0097808837890625, 0.0280303955078125, -0.0439453125, -0.03070068359375, 0.0188446044921875, -0.0143890380859375, -0.01123046875, 0.0177001953125, -0.0088653564453125, -0.010955810546875, -0.0364990234375, -0.00299072265625, -0.0277252197265625, -0.0194244384765625, 0.0180206298828125, -0.052703857421875, 0.043609619140625, -0.034027099609375, 0.05755615234375, -0.06549072265625, 0.006412506103515625, -0.044830322265625, -0.0518798828125, -0.005527496337890625, -0.057708740234375, 0.040740966796875, 0.037567138671875, -0.0203094482421875, 0.005649566650390625, 0.028778076171875, 0.031494140625, 0.022247314453125, 0.0172119140625, -0.039337158203125, 0.03814697265625, 0.03759765625, 0.0306396484375, 0.00962066650390625, 0.02728271484375, 0.003307342529296875, -0.0743408203125, 0.0005145072937011719, -0.0208587646484375, -0.004444122314453125, 0.028778076171875, -0.0552978515625, -0.0264739990234375, -0.031494140625, -0.03271484375, 0.04168701171875, 0.00887298583984375, -0.0151519775390625, -0.0682373046875, -0.050140380859375, 0.0247344970703125, -0.03424072265625, 0.0167388916015625, 0.00893402099609375, 0.0709228515625, 0.00588226318359375, -0.0017461776733398438, -0.025054931640625, 0.0244293212890625, 0.022369384765625, 0.01227569580078125, 0.023101806640625, 0.0035228729248046875, 0.01044464111328125, -0.01140594482421875, 0.01165771484375, -0.054107666015625, 0.006591796875, 0.05084228515625, 0.0094146728515625, -0.01244354248046875, -0.0126953125, -0.040771484375, 0.051910400390625, 0.0159912109375, -0.01274871826171875, 0.0082244873046875, 0.0100555419921875, 0.0264739990234375, 0.00984954833984375, -0.02532958984375, -0.045989990234375, -0.01605224609375, 0.008758544921875, -0.02294921875, 0.0321044921875, 0.0298919677734375, -0.01377105712890625, 0.02386474609375, 0.0283355712890625, -0.0027599334716796875, -0.0303192138671875, 0.01500701904296875, -0.016082763671875, 0.03582763671875, -0.002407073974609375, 0.004230499267578125, -0.06890869140625, -0.016265869140625, 0.052734375, 0.0185089111328125, -0.033111572265625, -0.003936767578125, 0.0087890625, 0.0281829833984375, 0.005626678466796875, -0.049102783203125, 0.00554656982421875, -0.002498626708984375, -0.0166778564453125, 0.019317626953125, -0.032684326171875, -0.060272216796875, -0.0186767578125, -0.035430908203125, 0.00743865966796875, -0.01483154296875, 0.039947509765625, 0.0204925537109375, 0.0036869049072265625, 0.032073974609375, -0.031097412109375, 0.10333251953125, 0.10333251953125, -0.0151214599609375, 0.00040411949157714844, 0.02606201171875, -0.01136016845703125, -0.038360595703125, -0.0252685546875, -0.0267333984375, -0.0208892822265625, 0.0377197265625, 0.032318115234375, -0.00403594970703125, -0.005084991455078125, 0.00359344482421875, -0.00860595703125, -0.019805908203125, -0.01739501953125, 0.013702392578125, -0.0035686492919921875, -0.0027790069580078125, 0.016693115234375, 0.004192352294921875, 0.02587890625, -0.00010102987289428711, 0.00930023193359375, -0.014312744140625, 0.0306854248046875, -0.0086212158203125, 0.0421142578125, -0.038177490234375, -0.04278564453125, -0.03277587890625, -0.006649017333984375, -0.004913330078125, -0.0026683807373046875, -0.021697998046875, -0.00969696044921875, -0.03955078125, 0.03424072265625, -0.0243988037109375, 0.03961181640625, -0.0528564453125, -0.0038547515869140625, -0.053497314453125, 0.002811431884765625, 0.06982421875, 0.05438232421875, -0.052459716796875, -0.0199737548828125, -0.038330078125, -0.0222930908203125, -0.0728759765625, -0.038543701171875, -0.051910400390625, 0.02764892578125, -0.00861358642578125, 0.01409912109375, -0.038055419921875, -0.03314208984375, -0.00695037841796875, 0.0355224609375, 0.0216827392578125, 0.0262298583984375, -0.01166534423828125, 0.053741455078125, 0.0278167724609375, 0.04119873046875, 0.0216217041015625, 0.048553466796875, 0.00033974647521972656, -0.0455322265625, -0.0008339881896972656, -0.0183868408203125, 0.008941650390625, 0.0016412734985351562, 0.0150604248046875, -0.021759033203125, 0.00792694091796875, 0.00626373291015625, 0.0105438232421875, -0.05230712890625, -0.00975799560546875, -0.0231475830078125, 0.049072265625, -0.078369140625, -0.0309600830078125, -0.0184326171875, -0.0269622802734375, 0.036529541015625, -0.012603759765625, 0.0015716552734375, 0.006252288818359375, -0.033203125, 0.0079193115234375, 0.057037353515625, -0.049072265625, 0.062103271484375, 0.09747314453125, 0.033843994140625, 0.0750732421875, 0.028411865234375, 0.02850341796875, 0.018524169921875, 0.0164794921875, -0.034515380859375, -0.0153656005859375, 0.0166778564453125, -0.012725830078125, -0.027191162109375, -0.00969696044921875, -0.01404571533203125, -0.01340484619140625, 0.046142578125, 0.0550537109375, -0.04559326171875, -0.00716400146484375, 0.03265380859375, -0.0128631591796875, -0.01483154296875, -0.0196533203125, -0.0014028549194335938, -0.03753662109375, 0.055145263671875, -0.006931304931640625, -0.01074981689453125, 0.01007080078125, -0.036407470703125, -0.0189208984375, -0.02777099609375, 0.0228118896484375, 0.04461669921875, -0.0268402099609375, 0.052154541015625, 0.04107666015625, 0.0248260498046875, -0.05718994140625, -0.0186614990234375, 0.029876708984375, -0.016143798828125, -0.07208251953125, 0.032012939453125, 0.00252532958984375, 0.03607177734375, 0.0144195556640625, 0.0194091796875, 0.0287628173828125, 0.0258026123046875, 0.0222930908203125, -0.0187225341796875, 0.016693115234375, -0.01018524169921875, -0.066162109375, -0.031341552734375, 0.0330810546875, 0.02386474609375, -0.08819580078125, 0.032623291015625, -0.05999755859375, -0.0180816650390625, -0.00899505615234375, -0.04498291015625, 0.040191650390625, -0.03082275390625, 0.0059814453125, 0.0095367431640625, 0.0018205642700195312, 0.0133056640625, 0.01042938232421875, 0.0227508544921875, -0.019378662109375, -0.012664794921875, -0.000209808349609375, -0.044281005859375, -0.0027618408203125, 0.0159454345703125, -0.0214385986328125, 0.059844970703125, 0.01690673828125, -0.0251617431640625, -0.00278472900390625, 0.03173828125, 0.0009632110595703125, 0.042816162109375, -0.0227813720703125, 0.01526641845703125, -0.00724029541015625, 0.04083251953125, -0.01531982421875, -0.0166168212890625, 0.01171112060546875, 0.025604248046875, 0.06243896484375, 0.01270294189453125, -0.01568603515625, -0.00426483154296875, 0.0396728515625, 0.0094757080078125, -0.0226593017578125, 0.05438232421875, -0.01052093505859375, 0.060546875, 0.0138702392578125, -0.0662841796875, 0.02130126953125, -0.050445556640625, -0.0167236328125, 0.009857177734375, -0.009796142578125, -0.01194000244140625, -0.0117645263671875, -0.004405975341796875, -0.0240020751953125, -0.011627197265625, -0.003650665283203125, -0.001220703125, -0.004947662353515625, 0.03924560546875, 0.037872314453125, -0.01305389404296875, 0.040740966796875, -0.035064697265625, 0.0589599609375, -0.0214996337890625, -0.007411956787109375, 0.056396484375, 0.0224456787109375, -0.00441741943359375, -0.03924560546875, -0.004711151123046875, -0.03515625, -0.0196380615234375, -0.0350341796875, -0.005619049072265625, 0.0173187255859375, -0.018218994140625, 0.00786590576171875, 0.0484619140625, -0.031494140625, 0.0036678314208984375, -0.0223388671875, 0.0294036865234375, 0.01605224609375, -0.0032939910888671875, -0.00954437255859375, 0.0006113052368164062, -0.01143646240234375, 0.016998291015625, 0.0396728515625, 0.00814056396484375, 0.0177459716796875, -0.0218505859375, 0.0244140625, 0.059051513671875, -0.027587890625, 0.0248565673828125, -0.040496826171875, 0.0357666015625, 0.025177001953125, 0.05126953125, -0.03778076171875, 0.0830078125, -0.01270294189453125, -0.01233673095703125, 0.03228759765625, 0.029205322265625, -0.0168914794921875, -0.041534423828125, -0.0133209228515625, -0.0789794921875, 0.0036716461181640625, 0.02801513671875, 0.005069732666015625, -0.0310211181640625, 0.016448974609375, 0.042999267578125, -0.02740478515625, -0.0255279541015625, 0.05224609375, -0.0030460357666015625, -0.0560302734375, -0.005603790283203125, -0.0274505615234375, 0.01641845703125, -0.014617919921875, 0.007350921630859375, 0.037200927734375, 0.0008687973022460938, -0.006763458251953125, 0.0019474029541015625, -0.003406524658203125, -0.03662109375, 0.07318115234375, -0.0095367431640625, 0.03851318359375, 0.0006771087646484375, -0.014190673828125, 0.027587890625, -0.035400390625, -0.08453369140625, 0.01464080810546875, 0.03924560546875, -0.0202178955078125, 0.006084442138671875, 0.057464599609375, -0.0303497314453125, 0.0007848739624023438, 0.04534912109375, 0.0131988525390625, -0.0177001953125, 0.0201416015625, -0.004856109619140625, -0.08905029296875, -0.045654296875, 0.008636474609375, 0.0273284912109375, -0.0338134765625, 0.019500732421875, 0.024200439453125, -0.0030612945556640625, 0.00994873046875, -0.02374267578125, 0.03717041015625, 0.048675537109375, -0.048675537109375, 0.036895751953125, 0.0194091796875, -0.0280914306640625, -0.05096435546875, -0.0025196075439453125, 0.00910186767578125, -0.0013370513916015625, -0.01348114013671875, -0.039520263671875, 0.043975830078125, 0.031097412109375, 0.01383209228515625, -0.02978515625, -0.041290283203125, -0.0154876708984375, 0.014373779296875, -0.0005369186401367188, 0.0047760009765625, -0.005184173583984375, 0.024139404296875, -0.01605224609375, -0.019622802734375, 0.0236053466796875, -0.040313720703125, 0.0045928955078125, 0.0151519775390625, -0.01346588134765625, -0.01280975341796875, -0.029571533203125, -0.0206146240234375, 0.0022335052490234375, -0.00974273681640625, 0.01300048828125, -0.00836181640625, -0.0229949951171875, -0.0262603759765625, 0.0293426513671875, 0.00390625, -0.0236663818359375, 0.0201568603515625, -0.0145263671875, -0.01549530029296875, 0.037567138671875, 0.005031585693359375, -0.01378631591796875, -0.017974853515625, -0.0258331298828125, 0.0089111328125, -0.025146484375, -0.05462646484375, -0.047332763671875, -0.0104827880859375, 0.02984619140625, -0.005035400390625, -0.004482269287109375, -0.00702667236328125, -0.01459503173828125, 0.0267486572265625, 0.01351165771484375, -0.004734039306640625, -0.00429534912109375, 0.0087738037109375, -0.0199432373046875, -0.035125732421875, -0.04296875, 0.03570556640625, -0.029998779296875, -0.0278167724609375, -0.01352691650390625, -0.000217437744140625, -0.00583648681640625, -0.038055419921875, -0.0121307373046875, 0.0182952880859375, 0.0159454345703125, -0.037017822265625, -0.0011014938354492188, -0.009185791015625, 0.0259246826171875, 0.0095672607421875, 0.01345062255859375, -0.0047607421875, -0.032623291015625, -0.03790283203125, 0.01165771484375, 0.00214385986328125, -0.042388916015625, -0.06622314453125, 0.091064453125, -0.0295257568359375, -0.00992584228515625, -0.09893798828125, -0.00861358642578125, -0.0170135498046875, 0.028961181640625, -0.03521728515625, 0.0273895263671875, -0.0102386474609375, 0.07806396484375, 0.02618408203125, -0.00809478759765625, 0.030364990234375, 0.022491455078125, -0.03533935546875, 0.034576416015625, 0.0218353271484375, 0.01396942138671875, -0.010986328125, 0.005817413330078125, 0.0223541259765625, 0.0430908203125, 0.0015735626220703125, 0.038116455078125, 0.0032901763916015625, -0.031097412109375, -0.026580810546875, -0.035125732421875, -0.00777435302734375, 0.022125244140625, 0.0972900390625, 0.0684814453125, 0.022674560546875, -0.06475830078125, -0.0191497802734375, -0.053497314453125, -0.04150390625, -0.03143310546875, 0.01136016845703125, -0.07012939453125, 0.00943756103515625, 0.0062255859375, -0.003108978271484375, 0.0024776458740234375, -0.00513458251953125, -0.03155517578125, -0.01013946533203125, -0.00698089599609375, -0.017822265625, -0.0260009765625, -0.01397705078125, -0.008270263671875, 0.00009047985076904297, 0.033416748046875, -0.0127410888671875, 0.01483154296875, 0.01239013671875, 0.05877685546875, 0.01727294921875, 0.0440673828125, -0.0235595703125, -0.005649566650390625, 0.0223236083984375, 0.00732421875, -0.0252532958984375, -0.006282806396484375, 0.0192718505859375, 0.005268096923828125, -0.00443267822265625, 0.0268096923828125, 0.0233612060546875, -0.017730712890625, -0.017822265625, -0.03546142578125, -0.0150146484375, 0.055450439453125, -0.0035839080810546875, 0.01244354248046875, -0.044769287109375, 0.0264892578125, -0.0253448486328125, 0.01305389404296875, 0.017364501953125, 0.00669097900390625, 0.00244903564453125, -0.00571441650390625, -0.0175018310546875, -0.0242156982421875, -0.0260162353515625, -0.01103973388671875 ]
33cb4d1838f7c44ef12b3ad233ebafde25a13529
Wordpress Stackexchange Q: Post_count only shows the number of results per page I have a wp_query $wp_query = new WP_Query($args); but for some reason the $wp_query->post_count only shows the amount of posts on each page. So if I set 'showposts' => '10' and 12 results are found, page one will say '10 results found' and page 2 shows '2 results found'. Why is this? I can't figure it out. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'post_type' => 'post', 'showposts' => '10', 'paged' => $paged ); $wp_query = new WP_Query($args); echo "Search found ".$wp_query->post_count."results"; if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post(); // the loop A: $wp_query->post_count is supposed to work exactly like that. To get the total number of posts that exist in the database, use $wp_query->found_posts
Q: Post_count only shows the number of results per page I have a wp_query $wp_query = new WP_Query($args); but for some reason the $wp_query->post_count only shows the amount of posts on each page. So if I set 'showposts' => '10' and 12 results are found, page one will say '10 results found' and page 2 shows '2 results found'. Why is this? I can't figure it out. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'post_type' => 'post', 'showposts' => '10', 'paged' => $paged ); $wp_query = new WP_Query($args); echo "Search found ".$wp_query->post_count."results"; if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post(); // the loop A: $wp_query->post_count is supposed to work exactly like that. To get the total number of posts that exist in the database, use $wp_query->found_posts
wordpress
{ "language": "en", "length": 128, "provenance": "stackexchange_00019.jsonl.gz:426459", "question_score": "21", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74920" }
[ 0.0843505859375, 0.015106201171875, 0.032745361328125, -0.0032863616943359375, 0.030548095703125, -0.041015625, 0.08441162109375, -0.0625, -0.0137939453125, 0.0212554931640625, -0.057586669921875, -0.017974853515625, -0.046142578125, -0.005939483642578125, -0.03106689453125, -0.07989501953125, 0.02386474609375, -0.02642822265625, 0.0114593505859375, -0.0132598876953125, 0.0089263916015625, -0.0034008026123046875, 0.032958984375, 0.0213470458984375, 0.0029354095458984375, -0.031341552734375, 0.059326171875, -0.0411376953125, 0.01453399658203125, -0.032135009765625, 0.01175689697265625, 0.0268096923828125, 0.02447509765625, -0.007053375244140625, 0.003665924072265625, -0.00975799560546875, 0.024627685546875, -0.0212249755859375, -0.00928497314453125, 0.03509521484375, 0.0158538818359375, -0.01274871826171875, 0.051513671875, -0.03173828125, 0.02288818359375, -0.0244903564453125, 0.03826904296875, -0.040557861328125, 0.005413055419921875, -0.042877197265625, -0.0144805908203125, 0.03515625, 0.0059814453125, -0.045166015625, -0.0015201568603515625, 0.0201263427734375, 0.07562255859375, -0.03399658203125, 0.056060791015625, -0.07464599609375, -0.0733642578125, -0.01201629638671875, 0.06402587890625, -0.01204681396484375, -0.02825927734375, -0.0019664764404296875, 0.0102081298828125, 0.0034465789794921875, -0.008636474609375, -0.0386962890625, 0.007579803466796875, 0.0110321044921875, -0.017669677734375, -0.0007987022399902344, 0.00534820556640625, -0.0296173095703125, 0.019256591796875, -0.01313018798828125, -0.0121612548828125, 0.05010986328125, -0.0006155967712402344, 0.01019287109375, -0.049591064453125, 0.03564453125, -0.0396728515625, 0.0242462158203125, -0.0211639404296875, -0.01151275634765625, -0.005962371826171875, -0.0191802978515625, -0.007015228271484375, -0.01513671875, -0.0305023193359375, 0.0032138824462890625, 0.00305938720703125, -0.033843994140625, 0.0280914306640625, 0.050384521484375, -0.0200653076171875, -0.024444580078125, -0.0266876220703125, -0.0157318115234375, -0.05609130859375, -0.018798828125, 0.033843994140625, 0.0374755859375, -0.015716552734375, 0.0177154541015625, 0.070556640625, 0.037261962890625, 0.036102294921875, 0.06781005859375, -0.02960205078125, -0.023834228515625, -0.0256805419921875, 0.014373779296875, -0.042938232421875, -0.01001739501953125, 0.007602691650390625, -0.0205230712890625, -0.0308074951171875, 0.002544403076171875, -0.03515625, -0.0123291015625, 0.017730712890625, -0.02685546875, 0.00472259521484375, 0.0210723876953125, 0.00015115737915039062, 0.046417236328125, -0.040771484375, -0.003932952880859375, 0.0150909423828125, -0.0093841552734375, -0.0186614990234375, -0.03765869140625, 0.023651123046875, -0.029266357421875, 0.004650115966796875, 0.00838470458984375, 0.00902557373046875, -0.0291748046875, 0.017913818359375, -0.0013780593872070312, 0.01058197021484375, 0.0163726806640625, 0.01064300537109375, 0.0067901611328125, -0.0078125, -0.03192138671875, -0.0014657974243164062, 0.01255035400390625, 0.0032634735107421875, 0.019683837890625, -0.034515380859375, 0.0147247314453125, -0.0278472900390625, 0.0012340545654296875, 0.00585174560546875, 0.00699615478515625, 0.05169677734375, 0.001251220703125, -0.03375244140625, 0.0007143020629882812, -0.05560302734375, -0.0004360675811767578, -0.0121002197265625, -0.0192718505859375, 0.01177978515625, -0.0310516357421875, -0.0158538818359375, -0.0105133056640625, 0.0258331298828125, -0.019256591796875, -0.00923919677734375, 0.01149749755859375, -0.00838470458984375, -0.021575927734375, 0.046966552734375, 0.00809478759765625, -0.0195465087890625, -0.0114593505859375, 0.046630859375, 0.0028705596923828125, -0.0367431640625, 0.043670654296875, 0.002410888671875, 0.0020465850830078125, -0.01515960693359375, -0.003772735595703125, 0.0455322265625, 0.07769775390625, -0.0246124267578125, 0.032318115234375, -0.0018835067749023438, -0.0215301513671875, -0.0369873046875, -0.00717926025390625, -0.020599365234375, -0.0089263916015625, 0.0196685791015625, 0.001972198486328125, 0.00003981590270996094, 0.016845703125, -0.054290771484375, 0.004177093505859375, -0.01090240478515625, 0.01074981689453125, -0.01548004150390625, 0.0430908203125, 0.034912109375, 0.0299224853515625, -0.050994873046875, -0.00621795654296875, -0.00748443603515625, -0.0152435302734375, -0.0103302001953125, -0.02081298828125, -0.0294189453125, -0.00499725341796875, -0.03631591796875, 0.001697540283203125, -0.04644775390625, 0.034912109375, 0.06512451171875, -0.039337158203125, 0.00429534912109375, -0.04541015625, 0.04071044921875, -0.00580596923828125, -0.04241943359375, 0.03387451171875, 0.052337646484375, 0.055389404296875, -0.042999267578125, -0.024383544921875, -0.032745361328125, -0.049560546875, 0.006519317626953125, 0.0693359375, 0.04058837890625, 0.0287933349609375, -0.0074920654296875, -0.035736083984375, 0.038421630859375, -0.050079345703125, 0.00920867919921875, -0.032257080078125, 0.0007605552673339844, 0.037841796875, 0.01641845703125, 0.00733184814453125, 0.009124755859375, -0.037841796875, 0.001331329345703125, 0.038360595703125, 0.0174102783203125, 0.04742431640625, -0.06573486328125, 0.033203125, -0.01044464111328125, -0.0208587646484375, -0.01465606689453125, -0.025115966796875, -0.0147857666015625, 0.0014667510986328125, 0.0106048583984375, 0.01056671142578125, 0.0000317692756652832, -0.005367279052734375, 0.0114593505859375, -0.01898193359375, 0.00531005859375, -0.033935546875, -0.06927490234375, 0.0105133056640625, -0.052490234375, 0.040618896484375, 0.03741455078125, -0.03302001953125, -0.0142822265625, 0.014984130859375, -0.0260162353515625, -0.012451171875, -0.0115203857421875, -0.040618896484375, 0.0031261444091796875, 0.003818511962890625, 0.007297515869140625, 0.019012451171875, 0.0254669189453125, 0.0360107421875, -0.00946807861328125, 0.03497314453125, -0.0036716461181640625, 0.0084228515625, 0.030914306640625, -0.0633544921875, 0.0672607421875, -0.0606689453125, 0.06591796875, 0.06072998046875, -0.048431396484375, 0.05133056640625, -0.01534271240234375, -0.002208709716796875, -0.01104736328125, 0.01241302490234375, -0.0196990966796875, -0.02716064453125, -0.062103271484375, 0.02142333984375, 0.03692626953125, 0.0517578125, 0.003932952880859375, -0.03143310546875, -0.0007748603820800781, 0.0259246826171875, -0.09765625, -0.114013671875, -0.01136016845703125, -0.06640625, -0.041839599609375, -0.00008445978164672852, -0.040618896484375, 0.0305938720703125, 0.0011692047119140625, -0.0024929046630859375, -0.0169830322265625, -0.0144805908203125, -0.055511474609375, -0.03411865234375, -0.06207275390625, 0.0357666015625, -0.0008716583251953125, 0.0328369140625, 0.005474090576171875, 0.08538818359375, 0.0054168701171875, -0.05609130859375, 0.0003314018249511719, 0.0440673828125, -0.016021728515625, 0.0029010772705078125, -0.015167236328125, 0.0078125, -0.032470703125, 0.0111083984375, 0.0015125274658203125, -0.00725555419921875, 0.01229095458984375, -0.007297515869140625, 0.02166748046875, -0.015411376953125, 0.035369873046875, 0.01213836669921875, -0.04571533203125, 0.0180206298828125, 0.04290771484375, -0.03125, -0.0401611328125, -0.016510009765625, -0.06011962890625, 0.00684356689453125, 0.042205810546875, 0.013702392578125, -0.017242431640625, 0.00035071372985839844, 0.0220947265625, -0.0034961700439453125, -0.0018777847290039062, -0.028228759765625, 0.05572509765625, 0.0213470458984375, 0.02978515625, -0.0196380615234375, -0.005252838134765625, -0.025543212890625, 0.0201416015625, 0.005035400390625, 0.002391815185546875, -0.0164642333984375, 0.024505615234375, -0.01806640625, -0.0271759033203125, 0.05718994140625, 0.045806884765625, 0.00817108154296875, -0.0181427001953125, -0.059539794921875, -0.00341796875, 0.07562255859375, -0.00994110107421875, -0.045166015625, -0.050506591796875, 0.0126495361328125, 0.003643035888671875, -0.063720703125, 0.0572509765625, -0.0184478759765625, -0.04315185546875, -0.0091094970703125, -0.01195526123046875, -0.02386474609375, -0.01593017578125, -0.021087646484375, -0.0280914306640625, -0.020660400390625, 0.0257720947265625, -0.025146484375, 0.028778076171875, -0.022308349609375, -0.0028228759765625, -0.0168609619140625, -0.010406494140625, -0.03729248046875, -0.0428466796875, -0.01465606689453125, 0.02520751953125, 0.01456451416015625, -0.027557373046875, -0.00931549072265625, -0.01409149169921875, 0.0235137939453125, 0.0350341796875, 0.039886474609375, -0.0009546279907226562, -0.01593017578125, -0.00400543212890625, 0.0094146728515625, 0.0203399658203125, -0.0204925537109375, -0.00800323486328125, -0.033416748046875, 0.0079345703125, -0.00850677490234375, -0.041717529296875, 0.01470184326171875, -0.0457763671875, -0.0021381378173828125, 0.00021731853485107422, -0.012969970703125, -0.012176513671875, 0.025970458984375, -0.04010009765625, 0.0241851806640625, -0.01070404052734375, -0.01125335693359375, 0.041534423828125, 0.008026123046875, -0.0173797607421875, 0.0082550048828125, 0.0660400390625, 0.0110626220703125, -0.0256500244140625, -0.079345703125, -0.001739501953125, 0.0251007080078125, -0.01294708251953125, 0.0390625, 0.0140228271484375, -0.00919342041015625, 0.034637451171875, -0.012115478515625, 0.007587432861328125, -0.0040283203125, 0.0286865234375, 0.00023698806762695312, -0.019775390625, 0.01416015625, -0.01318359375, 0.0081634521484375, 0.0294189453125, -0.0006580352783203125, -0.0039215087890625, 0.035736083984375, 0.01538848876953125, -0.028045654296875, 0.01148223876953125, 0.006099700927734375, -0.027496337890625, 0.002864837646484375, 0.0162200927734375, 0.0189056396484375, 0.0027008056640625, 0.01009368896484375, 0.016937255859375, 0.042755126953125, 0.01052093505859375, 0.053619384765625, 0.07122802734375, -0.01201629638671875, 0.034576416015625, 0.040496826171875, -0.0283660888671875, -0.0037288665771484375, -0.0200653076171875, 0.03924560546875, 0.00832366943359375, -0.06256103515625, 0.047882080078125, -0.01220703125, 0.007595062255859375, 0.0057373046875, 0.0239410400390625, 0.03839111328125, 0.0056304931640625, -0.00933074951171875, -0.0240325927734375, 0.00786590576171875, -0.039459228515625, -0.044952392578125, -0.00104522705078125, -0.0008158683776855469, 0.0057525634765625, 0.03851318359375, 0.069091796875, -0.0236968994140625, 0.06695556640625, -0.02227783203125, 0.0079193115234375, -0.0011987686157226562, 0.06475830078125, 0.03594970703125, -0.04937744140625, -0.01078033447265625, 0.040771484375, -0.01267242431640625, -0.0185394287109375, -0.0287628173828125, 0.0261993408203125, 0.007778167724609375, 0.022430419921875, 0.026275634765625, -0.0023784637451171875, 0.02496337890625, -0.01227569580078125, 0.01541900634765625, 0.008575439453125, -0.00412750244140625, -0.039215087890625, -0.01666259765625, 0.03717041015625, 0.011932373046875, -0.01036834716796875, -0.00493621826171875, -0.0226593017578125, 0.01076507568359375, -0.019989013671875, 0.0174102783203125, -0.01485443115234375, -0.006389617919921875, -0.0201568603515625, -0.02838134765625, -0.0184478759765625, 0.0259246826171875, -0.00750732421875, 0.00293731689453125, -0.0247039794921875, -0.00481414794921875, -0.01436614990234375, 0.061737060546875, -0.01210784912109375, -0.0307464599609375, 0.0115814208984375, 0.01024627685546875, 0.0231781005859375, 0.028106689453125, -0.006664276123046875, -0.0177001953125, -0.01708984375, -0.0198974609375, 0.08526611328125, 0.012054443359375, -0.0295867919921875, -0.03564453125, 0.03350830078125, 0.01082611083984375, 0.0041656494140625, -0.045166015625, -0.025604248046875, 0.0037860870361328125, 0.037139892578125, 0.0171661376953125, -0.0248565673828125, 0.08148193359375, -0.0015230178833007812, 0.0302734375, -0.002155303955078125, 0.03466796875, 0.00522613525390625, -0.0146942138671875, 0.0355224609375, -0.036865234375, -0.0293731689453125, -0.00312042236328125, -0.0330810546875, -0.06500244140625, -0.0478515625, -0.0245208740234375, 0.01378631591796875, -0.01361083984375, -0.005702972412109375, -0.0076904296875, 0.01617431640625, 0.014617919921875, 0.025604248046875, 0.050201416015625, 0.00018703937530517578, -0.018310546875, -0.00328826904296875, -0.0011081695556640625, -0.0225067138671875, 0.024078369140625, -0.032928466796875, -0.0283050537109375, -0.01052093505859375, 0.041046142578125, 0.05322265625, 0.004291534423828125, 0.027740478515625, 0.0265045166015625, 0.0056915283203125, -0.0150299072265625, -0.004787445068359375, 0.0017156600952148438, 0.00421905517578125, 0.06341552734375, -0.0004534721374511719, -0.011688232421875, 0.050506591796875, -0.03936767578125, -0.0256500244140625, 0.0191192626953125, 0.000009417533874511719, -0.0299530029296875, -0.0232086181640625, -0.02685546875, -0.01270294189453125, 0.0012693405151367188, -0.004680633544921875, 0.0007305145263671875, -0.02313232421875, 0.06005859375, 0.0063629150390625, -0.0079498291015625, 0.030120849609375, -0.00453948974609375, 0.000698089599609375, -0.01119232177734375, -0.003574371337890625, -0.001659393310546875, -0.048553466796875, 0.0294647216796875, 0.028717041015625, -0.00650787353515625, -0.0222930908203125, 0.00107574462890625, 0.01111602783203125, 0.02294921875, -0.07354736328125, 0.050262451171875, -0.056793212890625, 0.01517486572265625, -0.01108551025390625, 0.00998687744140625, 0.00971221923828125, 0.07403564453125, -0.0291595458984375, 0.0178070068359375, 0.041259765625, -0.0175933837890625, -0.0582275390625, -0.01140594482421875, 0.0204315185546875, 0.031707763671875, -0.06634521484375, 0.038665771484375, -0.038055419921875, -0.007049560546875, -0.0159759521484375, 0.0003466606140136719, 0.07708740234375, -0.055389404296875, -0.004444122314453125, 0.0220184326171875, 0.051544189453125, -0.003215789794921875, -0.007404327392578125, 0.0104522705078125, -0.044189453125, 0.0033111572265625, 0.00414276123046875, 0.0257110595703125, -0.01013946533203125, 0.005420684814453125, -0.03680419921875, 0.08746337890625, -0.0260467529296875, -0.003307342529296875, 0.02239990234375, 0.038970947265625, -0.019287109375, 0.028045654296875, -0.08184814453125, 0.0714111328125, -0.02252197265625, 0.08233642578125, -0.079833984375, 0.01236724853515625, 0.0096588134765625, 0.005565643310546875, 0.06201171875, 0.0007495880126953125, -0.0062408447265625, -0.0166778564453125, 0.049041748046875, 0.048553466796875, -0.005214691162109375, 0.015655517578125, 0.0276336669921875, 0.060211181640625, 0.0638427734375, -0.058441162109375, 0.0177764892578125, -0.00817108154296875, 0.017669677734375, 0.049957275390625, 0.01457977294921875, 0.017913818359375, 0.002307891845703125, 0.0229034423828125, -0.01910400390625, -0.006565093994140625, 0.0134735107421875, -0.0004172325134277344, 0.005340576171875, 0.083740234375, 0.06964111328125, -0.09649658203125, -0.0687255859375, -0.035125732421875, 0.050262451171875, 0.001293182373046875, 0.02581787109375, -0.00470733642578125, 0.005535125732421875, 0.1275634765625, -0.028472900390625, -0.0021724700927734375, 0.049713134765625, -0.034393310546875, 0.07232666015625, 0.034210205078125, 0.03082275390625, -0.05810546875, -0.01751708984375, 0.042327880859375, 0.09344482421875, -0.059539794921875, -0.045074462890625, 0.01317596435546875, 0.0185699462890625, -0.01059722900390625, 0.01238250732421875, 0.004711151123046875, 0.03515625, 0.06781005859375, -0.006465911865234375, -0.009185791015625, 0.00826263427734375, -0.004337310791015625, -0.009613037109375, -0.0124053955078125, 0.0234527587890625, -0.00878143310546875, -0.0106201171875, -0.007419586181640625, 0.0207977294921875, 0.054107666015625, 0.001491546630859375, 0.0153045654296875, -0.06317138671875, -0.0188751220703125, -0.0265045166015625, 0.01554107666015625, -0.0167694091796875, 0.033447265625, -0.0528564453125, -0.033294677734375, -0.0016956329345703125, 0.0498046875, 0.027069091796875, 0.005828857421875, 0.02423095703125, 0.019744873046875, 0.0098724365234375, -0.00653076171875, -0.0025196075439453125, -0.016632080078125, -0.051300048828125, 0.0086822509765625, -0.0098724365234375, 0.042083740234375, 0.012054443359375, 0.01016998291015625, 0.0723876953125, -0.005863189697265625, 0.01947021484375, -0.017364501953125, 0.0106658935546875, -0.047515869140625, 0.0101470947265625, 0.0182647705078125, 0.05499267578125, 0.035003662109375, -0.069091796875, -0.0127716064453125, -0.0203857421875, -0.03662109375, 0.0272064208984375, 0.04217529296875, -0.002040863037109375, 0.00399017333984375, -0.003147125244140625, 0.007183074951171875, 0.0017223358154296875, -0.02197265625, 0.012298583984375, 0.005214691162109375, 0.0205230712890625, 0.00882720947265625, -0.039154052734375, -0.0264129638671875, 0.01441192626953125, 0.01434326171875, -0.0207061767578125, 0.034423828125, 0.00799560546875, -0.005474090576171875, -0.00980377197265625, 0.00949859619140625, -0.002025604248046875, -0.013763427734375, 0.020355224609375, -0.0003809928894042969, -0.0012464523315429688, -0.00766754150390625, -0.0240631103515625, -0.01039886474609375, 0.059326171875, -0.03973388671875, -0.00951385498046875, -0.00782012939453125, 0.0258636474609375, -0.035552978515625, -0.0081939697265625, -0.0239410400390625, 0.036285400390625, 0.0202178955078125, -0.0421142578125, 0.035369873046875, -0.0257110595703125, 0.007625579833984375, 0.0706787109375, -0.006317138671875, -0.028900146484375, 0.028533935546875, -0.075439453125, 0.039154052734375, 0.03778076171875, 0.013153076171875, 0.019683837890625, 0.00675201416015625, -0.0166778564453125, -0.004871368408203125, 0.0305633544921875, -0.01953125, 0.0199127197265625, 0.0018453598022460938, -0.043304443359375, -0.012054443359375, 0.020263671875, -0.01552581787109375, 0.01187896728515625, -0.03753662109375, -0.0076141357421875, 0.006557464599609375, 0.0165557861328125, -0.021942138671875, -0.00931549072265625, -0.0038604736328125, 0.0016422271728515625, 0.0088958740234375, -0.01995849609375, -0.019927978515625, -0.0016469955444335938, 0.01824951171875, 0.009979248046875, -0.031829833984375, 0.035552978515625, -0.033172607421875, -0.0150604248046875, -0.004741668701171875, -0.057769775390625, 0.035675048828125, 0.0308837890625, -0.0276947021484375, 0.037628173828125, -0.023193359375, -0.06195068359375, 0.01470184326171875, -0.0044708251953125, 0.0171356201171875, -0.0242767333984375, -0.0302276611328125, -0.018463134765625, -0.016998291015625, 0.01800537109375, 0.037017822265625, 0.007904052734375, 0.0174407958984375, 0.0018863677978515625, -0.034881591796875, -0.060394287109375, 0.034454345703125, -0.05523681640625, -0.02874755859375, -0.034393310546875, 0.0228118896484375, 0.025970458984375, -0.011993408203125, -0.046173095703125, 0.048736572265625, -0.0159149169921875, -0.01526641845703125, -0.06561279296875, 0.005126953125, -0.003082275390625, 0.0137786865234375, -0.0165557861328125, -0.005767822265625, -0.0247650146484375, 0.039215087890625, -0.0065460205078125, -0.002552032470703125, 0.036224365234375, -0.017059326171875, -0.05322265625, -0.0105743408203125, -0.0136566162109375, -0.014495849609375, 0.036773681640625, -0.0153961181640625, 0.041961669921875, 0.0452880859375, -0.03155517578125, -0.0151824951171875, -0.0307769775390625, -0.0302276611328125, 0.0121307373046875, -0.0159759521484375, -0.02056884765625, -0.02197265625, 0.0543212890625, 0.002819061279296875, 0.020751953125, -0.0164031982421875, -0.021270751953125, -0.037841796875, -0.03857421875, 0.005542755126953125, 0.0199127197265625, -0.05059814453125, 0.0202789306640625, 0.01503753662109375, -0.0270538330078125, -0.0037517547607421875, -0.00635528564453125, -0.034149169921875, -0.01317596435546875, -0.03948974609375, -0.0126800537109375, -0.03204345703125, -0.0308990478515625, 0.0020580291748046875, -0.0123443603515625, -0.0271453857421875, -0.00800323486328125, 0.0245513916015625, -0.0279388427734375, 0.035888671875, 0.005706787109375, 0.0106658935546875, -0.0106964111328125, 0.008087158203125, 0.0170745849609375, -0.03216552734375, -0.007442474365234375, -0.00019872188568115234, 0.0097503662109375, 0.0174102783203125, 0.00016045570373535156, 0.00438690185546875, 0.0002682209014892578, 0.023284912109375, -0.01416015625, 0.054931640625, 0.008148193359375, 0.05328369140625, 0.0015306472778320312, 0.03302001953125, -0.02362060546875, -0.007476806640625, -0.00792694091796875, -0.0284881591796875, -0.00875091552734375, 0.0125732421875, -0.034423828125, -0.0288848876953125, 0.019561767578125, 0.04656982421875, -0.0219879150390625, 0.01390838623046875 ]
3f44aac2e5155c449b235c6f5b11062f0ccdb734
Wordpress Stackexchange Q: What is the wordpress wp-includes folder for? What is the wordpress wp-includes folder for? That is, whats the fundamental architectural purpose of it, for example why isn't it all in themes or an admin folder? Can a plugin developer rely in it's contents (e.g. jQuery) and for how long? I would also like to know, who decides what goes in there and how does it get maintained as Wordpress changes, any is all this documented somewhere as a policy doc? A: The wp-includes directory includes the packages that are included by core. The core team maintains the packages included in wp-includes. Themes and Plugins can rely on those packages being available for any given version of WordPress. That's a huge reason why it is extremely important to enqueue only core-bundled versions of scripts, using the core-defined script registration, such as: wp_enqueue_script( 'jquery' ), so that your Theme/Plugin will always be using the version bundled with core, no matter what version of WordPress is running.
Q: What is the wordpress wp-includes folder for? What is the wordpress wp-includes folder for? That is, whats the fundamental architectural purpose of it, for example why isn't it all in themes or an admin folder? Can a plugin developer rely in it's contents (e.g. jQuery) and for how long? I would also like to know, who decides what goes in there and how does it get maintained as Wordpress changes, any is all this documented somewhere as a policy doc? A: The wp-includes directory includes the packages that are included by core. The core team maintains the packages included in wp-includes. Themes and Plugins can rely on those packages being available for any given version of WordPress. That's a huge reason why it is extremely important to enqueue only core-bundled versions of scripts, using the core-defined script registration, such as: wp_enqueue_script( 'jquery' ), so that your Theme/Plugin will always be using the version bundled with core, no matter what version of WordPress is running. A: WordPress, as an application, is built of several moving parts. The /wp-includes folder contains common functionality for the WordPress API (which you use in themes/plugins) and the WordPress admin. So, basically: ./wp-admin - Admin code ./wp-content - User-defined code and content ./wp-includes - Common files The /wp-includes directory is where useful 3rd party libraries (i.e. SimplePie for RSS and IncutioRPC for XML-RPC) are stored. It's also where much of the WordPress API (i.e. WP_Http, WP_Filesystem) is defined. Can a plugin developer rely in it's contents? and for how long? Yes. These files are what defines the WordPress API in the first place. The core team goes to great lengths to retain backwards compatibility, so if any changes are ever introduced in WordPress that will break what you're using, you'll know aobut it well beforehand. I would also like to know, who decides what goes in there and how does it get maintained as Wordpress changes, any is all this documented somewhere as a policy doc? Decisions for WordPress' API are defined by the development team. You can usually follow changes on http://make.wordpress.org/core. Libraries are always maintained since changing these libraries is what changes WordPress. A: wp-includes contains everything needed to run WordPress via the frontend ( and then some ). It is the territory of WordPress Core, and as the adage goes, never modify core under any circumstances. While wp-content may define plugins and themes, the API itself and the vast majority of the WordPress core sits in that folder. These are depended on by almost the entirety of WordPress. All your standard functions and their dependencies will be found in this folder. This makes it a valuable resource for research and looking up things. wp-admin may define additional items but it is not as vital to the running of the frontend ./wp-admin - Admin code ./wp-content - User-defined code and content ./wp-includes - Common files As for how reliable the files are in that folder, you shouldn't rely on the files in that folder. You should never need to include a file or path from wp-includes and if you attempt to or need to, then you have done something horribly wrong and need to stop and go back. While the files in that folder may change without warning, this should be of no consequence, as the API contained is kept backwards compatible for a significant amount of time. Outside of updates to WordPress, wp-includes should never be modified and should ideally be read only. Should you need to add a dependency to your code, rely on the versions in wp-includes rather than adding your own. e.g. don't include a custom jQuery, use the one bundled with WordPress ( don't de-register it and re-register it either ). Modifications to wp-includes can cause security risks, performance degradation, broken plugins/themes, etc Changes to the packages and libraries included are announced ahead of releases. Old dependencies no longer required (such as the old colour picker) are kept, but marked deprecated to prevent code breakage A: wp-includes is the directory that contains most of WordPress' main functionality. It's where all the major WordPress code lives. WordPress does an excellent job of maintaining backwards compatibility between versions. You can use the functions included in this folder to build plugins with (that's how you hook into the system). WordPress Trac is the main area that decides how WordPress moves forward, so if you have opinions/additions, get involved there :) A: The Make WordPress Core handbook has a handy page titled The WordPress Codebase, which provides a good overview of How Code In WordPress Is Organized, including: wp-includes The wp-includes directory consists of the primary core and third-party libraries for WordPress. Many of these files are loaded as the application is bootstrapped. The files in wp-includes go by a (mostly) standard set of prefixes and suffixes: * *class-*.php – PHP classes. Some of these are external libraries. *ms-*.php – Code specific to WordPress multisite functionality. *default-*.php – Code that implements or defines default functionality, namely constants, widgets, and filters. **deprecated.php – Functions which are deprecated. **-template.php – Template functions for the relevant API. The files in wp-admin/includes follow similar naming conventions. and wp-admin/includes The wp-admin/includes directory consists of the primary core and third-party libraries available and used in the administration area. Some of these are loaded as the admin is bootstrapped; see wp-admin/includes/admin.php for the primary list of files included. and more... check it out 2022 peoples! :-)
wordpress
{ "language": "en", "length": 907, "provenance": "stackexchange_00019.jsonl.gz:426463", "question_score": "16", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/74940" }
[ 0.0259552001953125, -0.025665283203125, -0.039093017578125, -0.057769775390625, -0.0192413330078125, -0.03668212890625, -0.0011281967163085938, 0.0229034423828125, 0.0058135986328125, 0.0153656005859375, -0.0303497314453125, 0.0211639404296875, -0.037017822265625, -0.0025634765625, -0.0276641845703125, -0.03753662109375, 0.046875, -0.042572021484375, 0.00643157958984375, -0.00499725341796875, -0.0007920265197753906, 0.0211639404296875, 0.0077056884765625, 0.0765380859375, -0.004604339599609375, -0.01343536376953125, 0.05364990234375, -0.040374755859375, 0.002468109130859375, -0.0178680419921875, 0.00588226318359375, 0.0208587646484375, 0.035888671875, -0.0190887451171875, 0.0135498046875, 0.024078369140625, 0.01021575927734375, -0.01482391357421875, 0.0228271484375, -0.012054443359375, 0.02197265625, -0.01438140869140625, 0.041595458984375, -0.005702972412109375, -0.004093170166015625, -0.00044727325439453125, 0.01288604736328125, -0.0271148681640625, 0.0211639404296875, -0.0390625, 0.003116607666015625, -0.0154876708984375, 0.0305633544921875, -0.05859375, -0.0186309814453125, -0.00623321533203125, 0.0235137939453125, -0.0005121231079101562, 0.05096435546875, -0.0259857177734375, -0.052459716796875, -0.00894927978515625, 0.032562255859375, -0.0311431884765625, 0.0194091796875, -0.018463134765625, -0.01451873779296875, 0.0269622802734375, -0.08489990234375, 0.0016431808471679688, 0.05718994140625, -0.04827880859375, -0.002162933349609375, -0.03643798828125, 0.006320953369140625, 0.0411376953125, -0.006622314453125, 0.005062103271484375, 0.01971435546875, 0.0037555694580078125, 0.00020551681518554688, 0.0005068778991699219, -0.00408935546875, -0.04974365234375, 0.026763916015625, -0.008056640625, -0.005573272705078125, -0.010223388671875, -0.027008056640625, 0.01934814453125, -0.028839111328125, 0.041717529296875, -0.0200653076171875, 0.00324249267578125, -0.017974853515625, 0.0216217041015625, 0.03729248046875, 0.056304931640625, -0.02301025390625, 0.0268096923828125, 0.0017375946044921875, -0.0430908203125, 0.062408447265625, -0.0416259765625, -0.00797271728515625, 0.046905517578125, -0.004058837890625, 0.00652313232421875, 0.0231781005859375, 0.0307464599609375, 0.011077880859375, -0.0033779144287109375, 0.033721923828125, -0.060791015625, 0.02703857421875, -0.004302978515625, -0.012542724609375, 0.05523681640625, 0.037506103515625, 0.001995086669921875, 0.00884246826171875, 0.024658203125, -0.0208282470703125, -0.038970947265625, 0.0205535888671875, -0.0169677734375, -0.0288543701171875, -0.00873565673828125, -0.0256500244140625, 0.049468994140625, -0.01763916015625, -0.0233306884765625, 0.0721435546875, 0.039337158203125, -0.00011038780212402344, -0.03814697265625, 0.041015625, 0.0169830322265625, 0.00469970703125, -0.004711151123046875, -0.0201568603515625, -0.00604248046875, 0.0135498046875, -0.04437255859375, -0.01514434814453125, -0.0120086669921875, -0.0023288726806640625, 0.046966552734375, 0.0019330978393554688, 0.00609588623046875, 0.00826263427734375, 0.00998687744140625, 0.02191162109375, -0.00521087646484375, 0.02069091796875, -0.039520263671875, 0.056610107421875, -0.05682373046875, 0.01058197021484375, -0.039886474609375, -0.02032470703125, -0.016143798828125, -0.006744384765625, -0.0200347900390625, -0.02362060546875, 0.0173797607421875, 0.004756927490234375, 0.0179901123046875, 0.0214996337890625, 0.00238800048828125, -0.0136566162109375, -0.040618896484375, 0.0245208740234375, 0.022003173828125, 0.0032634735107421875, 0.040679931640625, 0.005126953125, 0.005123138427734375, 0.04205322265625, 0.033172607421875, -0.0207366943359375, -0.029266357421875, 0.08660888671875, -0.04443359375, -0.0231781005859375, -0.04034423828125, 0.0239410400390625, 0.017242431640625, 0.006053924560546875, 0.0287628173828125, 0.044891357421875, 0.01407623291015625, -0.0260009765625, 0.03338623046875, -0.016357421875, -0.006961822509765625, -0.0025806427001953125, 0.03179931640625, -0.01422119140625, -0.02374267578125, 0.01064300537109375, -0.005596160888671875, 0.00726318359375, -0.02557373046875, -0.046905517578125, -0.0102386474609375, -0.01448822021484375, 0.042510986328125, 0.0311737060546875, 0.00753021240234375, 0.00033855438232421875, 0.040191650390625, -0.01548004150390625, -0.061248779296875, -0.07623291015625, 0.02545166015625, -0.0283355712890625, 0.032073974609375, 0.00576019287109375, 0.035308837890625, 0.01096343994140625, -0.01702880859375, -0.01505279541015625, -0.034515380859375, 0.033233642578125, 0.01568603515625, -0.0222015380859375, -0.005756378173828125, 0.0173492431640625, 0.031768798828125, -0.035919189453125, 0.0095367431640625, 0.041656494140625, 0.05621337890625, -0.02191162109375, -0.0293426513671875, -0.031951904296875, -0.07672119140625, 0.00868988037109375, 0.0606689453125, 0.051849365234375, 0.07598876953125, 0.0005016326904296875, -0.00628662109375, 0.05206298828125, -0.09765625, -0.01374053955078125, -0.00908660888671875, 0.00589752197265625, 0.02459716796875, 0.0142669677734375, -0.0157318115234375, 0.00725555419921875, -0.03717041015625, -0.0026302337646484375, 0.037689208984375, -0.02581787109375, -0.0164794921875, -0.0168609619140625, 0.006610870361328125, 0.008392333984375, -0.0159759521484375, -0.0209808349609375, -0.01454925537109375, 0.037811279296875, -0.0109405517578125, 0.030609130859375, 0.0173797607421875, 0.0042572021484375, -0.01788330078125, 0.01102447509765625, -0.0225067138671875, 0.01192474365234375, 0.05963134765625, 0.03179931640625, 0.00862884521484375, -0.02734375, -0.02978515625, 0.021209716796875, 0.043365478515625, -0.010345458984375, 0.0049591064453125, -0.031768798828125, -0.0192108154296875, -0.0060577392578125, -0.06744384765625, 0.0045013427734375, 0.0177154541015625, 0.03515625, -0.024871826171875, 0.01409912109375, -0.004917144775390625, -0.007030487060546875, 0.0300445556640625, 0.047760009765625, -0.049163818359375, 0.06298828125, 0.00382232666015625, 0.012939453125, -0.0159759521484375, 0.0168304443359375, 0.0280914306640625, 0.00795745849609375, -0.041168212890625, 0.01477813720703125, 0.01045989990234375, 0.041259765625, -0.005344390869140625, -0.01206207275390625, 0.006351470947265625, -0.0838623046875, -0.0282745361328125, 0.0274200439453125, 0.022613525390625, -0.0215911865234375, -0.04620361328125, -0.0230865478515625, 0.01197052001953125, -0.1033935546875, -0.08203125, -0.01560211181640625, -0.06683349609375, 0.0191802978515625, -0.00978851318359375, -0.0303802490234375, -0.005481719970703125, 0.0094146728515625, 0.021209716796875, -0.055938720703125, -0.02154541015625, -0.045318603515625, -0.0911865234375, -0.062347412109375, -0.00010645389556884766, -0.0098419189453125, 0.0003483295440673828, -0.01146697998046875, 0.0635986328125, -0.00710296630859375, -0.082763671875, -0.05560302734375, 0.048492431640625, -0.0113067626953125, -0.00695037841796875, 0.034271240234375, -0.027984619140625, -0.00977325439453125, -0.0026264190673828125, 0.0145111083984375, 0.022491455078125, -0.01763916015625, -0.01097869873046875, -0.0089111328125, -0.0215606689453125, 0.0075225830078125, 0.027923583984375, -0.004913330078125, -0.0268707275390625, 0.015594482421875, -0.0606689453125, -0.0238037109375, 0.00803375244140625, -0.0404052734375, 0.0362548828125, 0.00605010986328125, -0.01195526123046875, 0.023651123046875, 0.01031494140625, 0.041259765625, 0.0281982421875, 0.00893402099609375, -0.010467529296875, 0.06878662109375, 0.008087158203125, 0.020355224609375, -0.056793212890625, 0.042083740234375, -0.0230255126953125, -0.006076812744140625, -0.0025348663330078125, -0.00859832763671875, -0.01514434814453125, -0.00591278076171875, -0.025726318359375, -0.024871826171875, 0.01849365234375, -0.00937652587890625, 0.0225372314453125, -0.0198516845703125, -0.0004487037658691406, -0.004913330078125, 0.049957275390625, -0.04095458984375, -0.01503753662109375, 0.01287078857421875, 0.0131378173828125, -0.01202392578125, -0.01502227783203125, -0.0546875, -0.034942626953125, 0.00484466552734375, 0.00004494190216064453, -0.01296234130859375, -0.004810333251953125, -0.00992584228515625, 0.004474639892578125, 0.0035037994384765625, -0.017913818359375, 0.0286865234375, -0.0572509765625, 0.032806396484375, -0.00508880615234375, 0.0168914794921875, -0.04388427734375, -0.010833740234375, -0.0455322265625, -0.046478271484375, 0.00981903076171875, -0.038787841796875, 0.0404052734375, 0.02008056640625, -0.006649017333984375, -0.0079193115234375, 0.0288848876953125, -0.01345062255859375, 0.0399169921875, 0.0174407958984375, 0.0289306640625, 0.0118408203125, 0.004711151123046875, 0.0438232421875, -0.018646240234375, -0.0110015869140625, -0.00823211669921875, -0.032501220703125, -0.0029506683349609375, -0.0088348388671875, 0.00666046142578125, 0.0271453857421875, -0.029144287109375, 0.0187225341796875, -0.0032939910888671875, -0.03155517578125, 0.034759521484375, -0.00606536865234375, -0.020111083984375, -0.019073486328125, -0.007770538330078125, 0.050384521484375, 0.0256500244140625, 0.007251739501953125, 0.0110321044921875, 0.06927490234375, 0.005100250244140625, -0.032745361328125, -0.1055908203125, 0.01666259765625, 0.0343017578125, 0.0080718994140625, 0.07159423828125, 0.046112060546875, -0.01497650146484375, 0.0604248046875, 0.0281829833984375, 0.002803802490234375, 0.003185272216796875, 0.0209197998046875, 0.0142059326171875, -0.01348114013671875, 0.0038967132568359375, 0.009735107421875, -0.005558013916015625, 0.01403045654296875, -0.0113677978515625, -0.002086639404296875, -0.016021728515625, 0.0267486572265625, 0.0009388923645019531, -0.00274658203125, -0.041900634765625, -0.0265350341796875, -0.01070404052734375, 0.0179290771484375, 0.059783935546875, 0.0372314453125, -0.021759033203125, 0.06524658203125, 0.04608154296875, -0.0157623291015625, 0.0252227783203125, 0.02313232421875, 0.018280029296875, 0.0162506103515625, 0.045318603515625, -0.00588226318359375, -0.0210418701171875, 0.0005707740783691406, 0.056121826171875, 0.001491546630859375, -0.06048583984375, 0.016204833984375, -0.0181732177734375, 0.0119476318359375, 0.036773681640625, -0.0019626617431640625, 0.049224853515625, 0.029083251953125, -0.040191650390625, -0.02691650390625, -0.039825439453125, -0.002353668212890625, -0.062255859375, -0.007724761962890625, -0.017333984375, -0.00624847412109375, -0.0035076141357421875, 0.0070037841796875, -0.004261016845703125, 0.00757598876953125, -0.004901885986328125, 0.05316162109375, 0.048614501953125, 0.0140533447265625, 0.019012451171875, -0.01708984375, -0.0133056640625, 0.0002651214599609375, -0.0178680419921875, -0.038848876953125, -0.00037384033203125, -0.01171112060546875, 0.03106689453125, -0.0294036865234375, -0.0360107421875, 0.052459716796875, -0.001739501953125, -0.0114288330078125, 0.00873565673828125, -0.013763427734375, -0.0245361328125, 0.004070281982421875, -0.0177764892578125, 0.004611968994140625, 0.003505706787109375, -0.029205322265625, 0.0396728515625, -0.0306396484375, -0.01904296875, 0.062164306640625, -0.088134765625, 0.0038242340087890625, 0.0281829833984375, -0.0036182403564453125, 0.0197601318359375, 0.0305938720703125, -0.06451416015625, -0.041534423828125, -0.0223846435546875, -0.0010852813720703125, 0.04705810546875, -0.013885498046875, 0.031494140625, 0.01033782958984375, -0.04766845703125, 0.0238189697265625, 0.0201416015625, 0.00873565673828125, 0.0013303756713867188, -0.0760498046875, 0.00083160400390625, -0.052825927734375, -0.007049560546875, -0.01898193359375, -0.053955078125, -0.04461669921875, -0.00516510009765625, -0.0236053466796875, -0.005672454833984375, -0.0236663818359375, -0.0029621124267578125, -0.03887939453125, 0.06378173828125, 0.02081298828125, 0.044464111328125, -0.03546142578125, 0.1123046875, 0.033203125, 0.038848876953125, 0.019989013671875, 0.0574951171875, -0.009796142578125, -0.006519317626953125, -0.0009899139404296875, -0.033172607421875, -0.00247955322265625, -0.0252532958984375, 0.00823211669921875, 0.0264739990234375, 0.050140380859375, 0.0028743743896484375, 0.0284271240234375, -0.01128387451171875, -0.006916046142578125, -0.00540924072265625, 0.032318115234375, 0.0102081298828125, 0.00496673583984375, 0.042816162109375, -0.0198211669921875, 0.010040283203125, -0.007076263427734375, -0.037841796875, 0.0258941650390625, -0.002765655517578125, 0.0080108642578125, 0.04364013671875, -0.045318603515625, 0.07403564453125, 0.045013427734375, 0.0228729248046875, 0.041778564453125, -0.0092315673828125, 0.01062774658203125, -0.017333984375, 0.004489898681640625, -0.01397705078125, -0.021026611328125, 0.06597900390625, 0.015716552734375, -0.0084381103515625, 0.0684814453125, -0.0221405029296875, 0.033203125, 0.0273284912109375, 0.049957275390625, -0.036285400390625, 0.01045989990234375, -0.01473236083984375, -0.039154052734375, 0.041778564453125, -0.0020427703857421875, -0.004199981689453125, -0.0119171142578125, 0.01229095458984375, 0.00017893314361572266, -0.025634765625, 0.008453369140625, -0.004062652587890625, -0.03582763671875, 0.006771087646484375, -0.018035888671875, 0.01097869873046875, -0.00974273681640625, -0.00643157958984375, 0.0185699462890625, -0.01708984375, 0.0125274658203125, 0.0035800933837890625, -0.014678955078125, -0.0206298828125, -0.0086822509765625, 0.01983642578125, -0.0220184326171875, -0.0103759765625, -0.0037670135498046875, 0.010040283203125, 0.034088134765625, 0.0787353515625, -0.0207977294921875, 0.0175323486328125, 0.0577392578125, 0.0036296844482421875, -0.050933837890625, -0.0286865234375, 0.01983642578125, 0.038604736328125, -0.029052734375, 0.033355712890625, 0.001338958740234375, -0.0323486328125, -0.0166778564453125, -0.0281829833984375, 0.0775146484375, -0.039886474609375, 0.00009936094284057617, 0.01108551025390625, 0.052825927734375, 0.0079498291015625, -0.0040740966796875, 0.047882080078125, -0.07196044921875, -0.014923095703125, 0.02386474609375, 0.0167388916015625, -0.035400390625, 0.008941650390625, -0.017913818359375, 0.10052490234375, -0.054931640625, 0.018951416015625, 0.041717529296875, 0.044921875, -0.00011336803436279297, 0.038970947265625, -0.00885772705078125, 0.017120361328125, -0.0033740997314453125, 0.022918701171875, -0.0311279296875, -0.00798797607421875, -0.007488250732421875, 0.04364013671875, 0.0269927978515625, 0.009002685546875, -0.00705718994140625, -0.0226287841796875, 0.01422119140625, 0.05963134765625, 0.0145416259765625, 0.0024509429931640625, 0.0041961669921875, 0.0174102783203125, -0.0055999755859375, -0.01090240478515625, 0.037841796875, -0.04339599609375, -0.044677734375, 0.0107879638671875, 0.01082611083984375, -0.0022754669189453125, 0.0005202293395996094, 0.006587982177734375, -0.01053619384765625, 0.007236480712890625, -0.0012073516845703125, 0.01245880126953125, -0.00907135009765625, 0.0223846435546875, -0.00753021240234375, -0.040435791015625, -0.01494598388671875, -0.0301971435546875, 0.0244293212890625, -0.02069091796875, 0.046051025390625, 0.0132598876953125, 0.01262664794921875, 0.030853271484375, 0.01053619384765625, 0.0169219970703125, 0.031646728515625, -0.0218963623046875, 0.0286102294921875, -0.005847930908203125, 0.0180816650390625, -0.049102783203125, -0.00920867919921875, 0.01104736328125, 0.016326904296875, -0.01494598388671875, -0.0201416015625, 0.01322174072265625, -0.0010852813720703125, -0.00896453857421875, -0.01259613037109375, -0.02447509765625, 0.006649017333984375, 0.0284576416015625, -0.002590179443359375, -0.00931549072265625, 0.0307769775390625, -0.0117340087890625, -0.002094268798828125, -0.0306396484375, 0.0139923095703125, 0.043182373046875, -0.0206451416015625, 0.035736083984375, 0.00823974609375, 0.003376007080078125, -0.023162841796875, 0.026763916015625, 0.00643157958984375, 0.00794219970703125, -0.007297515869140625, 0.04473876953125, 0.012908935546875, -0.00836181640625, -0.024932861328125, -0.0474853515625, 0.039764404296875, 0.0266876220703125, 0.031097412109375, -0.00994110107421875, 0.0119781494140625, 0.006565093994140625, -0.0257415771484375, -0.006206512451171875, -0.01320648193359375, -0.0231475830078125, -0.0018253326416015625, -0.023406982421875, 0.0367431640625, 0.057220458984375, 0.00707244873046875, 0.0022983551025390625, 0.0111083984375, 0.06573486328125, -0.0286407470703125, 0.0290679931640625, 0.00041556358337402344, -0.033721923828125, 0.046600341796875, 0.0076141357421875, 0.0908203125, 0.0120391845703125, -0.014862060546875, 0.00785064697265625, 0.00012445449829101562, -0.02984619140625, -0.007038116455078125, 0.033203125, -0.017425537109375, 0.021331787109375, 0.050933837890625, -0.0244598388671875, 0.0031337738037109375, 0.01261138916015625, 0.027740478515625, 0.0036144256591796875, 0.02093505859375, 0.018218994140625, -0.003589630126953125, -0.018341064453125, 0.006221771240234375, 0.041961669921875, 0.030059814453125, 0.05755615234375, -0.0286865234375, 0.0228424072265625, 0.0450439453125, -0.0242919921875, 0.021942138671875, 0.006542205810546875, 0.034820556640625, -0.027435302734375, -0.01061248779296875, -0.018951416015625, -0.0770263671875, -0.0281829833984375, 0.034576416015625, -0.036468505859375, -0.012054443359375, -0.009674072265625, 0.03887939453125, -0.018951416015625, 0.059112548828125, -0.02093505859375, -0.035064697265625, -0.0118560791015625, 0.01197052001953125, -0.01276397705078125, -0.01467132568359375, 0.00997161865234375, -0.003932952880859375, 0.02593994140625, -0.0330810546875, 0.018951416015625, 0.0024566650390625, 0.0033435821533203125, 0.018280029296875, 0.03057861328125, -0.03826904296875, -0.00884246826171875, -0.01229095458984375, -0.0093536376953125, -0.0035686492919921875, 0.0556640625, -0.0256195068359375, -0.03399658203125, -0.014739990234375, 0.02777099609375, 0.0440673828125, -0.000053822994232177734, 0.031829833984375, -0.03399658203125, -0.007160186767578125, 0.022430419921875, -0.051300048828125, -0.0294342041015625, -0.038330078125, -0.00013947486877441406, 0.03570556640625, -0.0281982421875, -0.0250091552734375, -0.07049560546875, 0.019134521484375, 0.026885986328125, 0.007965087890625, -0.08709716796875, 0.056976318359375, -0.02203369140625, 0.053619384765625, -0.0166168212890625, 0.04010009765625, -0.0234222412109375, 0.033966064453125, -0.034454345703125, -0.035430908203125, -0.03192138671875, 0.03265380859375, -0.025115966796875, 0.052154541015625, 0.05963134765625, -0.044219970703125, -0.0222625732421875, 0.07080078125, 0.02801513671875, 0.11944580078125, -0.006824493408203125, -0.02203369140625, -0.0161895751953125, 0.019561767578125, 0.0164794921875, -0.043792724609375, -0.01503753662109375, 0.00899505615234375, 0.007793426513671875, -0.0025806427001953125, 0.006900787353515625, 0.00981903076171875, -0.048187255859375, -0.1077880859375, 0.0516357421875, -0.0181121826171875, -0.0474853515625, -0.04815673828125, -0.00928497314453125, -0.001819610595703125, -0.005481719970703125, -0.03240966796875, -0.0296630859375, -0.02545166015625, 0.06134033203125, 0.0281982421875, -0.035552978515625, 0.0321044921875, -0.005947113037109375, -0.09185791015625, 0.017242431640625, 0.0140838623046875, 0.0223388671875, 0.0021076202392578125, 0.01629638671875, 0.0242919921875, 0.08282470703125, 0.004711151123046875, -0.0206298828125, -0.01476287841796875, -0.06378173828125, 0.0027256011962890625, -0.0421142578125, -0.0003452301025390625, -0.005092620849609375, 0.049072265625, 0.0033092498779296875, 0.006885528564453125, -0.0254669189453125, -0.02386474609375, -0.037109375, 0.0191497802734375, 0.01776123046875, -0.00327301025390625, -0.0252227783203125, 0.02923583984375, 0.027130126953125, -0.0165863037109375, -0.0131683349609375, -0.01436614990234375, -0.03948974609375, -0.020538330078125, -0.05517578125, -0.02410888671875, 0.006134033203125, -0.0369873046875, 0.04205322265625, 0.0035991668701171875, 0.050323486328125, 0.010223388671875, 0.02410888671875, 0.052520751953125, 0.0740966796875, -0.01432037353515625, 0.030364990234375, -0.04205322265625, 0.01081085205078125, -0.023223876953125, 0.0222625732421875, -0.03594970703125, 0.01355743408203125, 0.003421783447265625, 0.02294921875, -0.005466461181640625, 0.0212554931640625, -0.029083251953125, 0.047821044921875, -0.010009765625, 0.07147216796875, -0.002532958984375, 0.00313568115234375, -0.032440185546875, 0.06378173828125, 0.0025463104248046875, -0.033966064453125, 0.0228118896484375, -0.038543701171875, -0.0005545616149902344, 0.0200042724609375, -0.016448974609375, -0.0114898681640625, -0.004978179931640625, -0.0012369155883789062, -0.0098724365234375, -0.0095977783203125 ]
a15c8a4a88015287e480b6a40ddd3e51e14cfcef
Wordpress Stackexchange Q: Is there anything like admin_notices for front end? I'm new to Wordpress and trying to take advantage of the framework as much as possible. On the front end, I want a centralized message area to display error, success, and general notices similar to how they're handled via admin_notices on the back end. I'm not seeing a similar hook for the front end. I guess I'm asking which action should I be hooking into on the front end to mimic admin_notices? A: There is no such action in the front end (in a theme) by default. Simply use a custom action like do_action( 'theme_notices' ); and hook into this one.
Q: Is there anything like admin_notices for front end? I'm new to Wordpress and trying to take advantage of the framework as much as possible. On the front end, I want a centralized message area to display error, success, and general notices similar to how they're handled via admin_notices on the back end. I'm not seeing a similar hook for the front end. I guess I'm asking which action should I be hooking into on the front end to mimic admin_notices? A: There is no such action in the front end (in a theme) by default. Simply use a custom action like do_action( 'theme_notices' ); and hook into this one.
wordpress
{ "language": "en", "length": 110, "provenance": "stackexchange_00019.jsonl.gz:426486", "question_score": "11", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75035" }
[ 0.0289306640625, 0.01009368896484375, -0.0457763671875, -0.0693359375, 0.0241851806640625, -0.037445068359375, 0.0022716522216796875, 0.0219268798828125, 0.05120849609375, 0.052154541015625, -0.034637451171875, -0.040435791015625, 0.07379150390625, -0.004604339599609375, -0.056610107421875, -0.01328277587890625, 0.034332275390625, -0.0015707015991210938, 0.046875, -0.003421783447265625, 0.027862548828125, 0.022674560546875, 0.0025157928466796875, 0.053802490234375, -0.0021343231201171875, 0.00853729248046875, 0.07073974609375, -0.0137481689453125, 0.022003173828125, 0.0137939453125, 0.0139617919921875, -0.044403076171875, 0.015411376953125, 0.031341552734375, -0.01352691650390625, -0.02178955078125, 0.0176544189453125, 0.0084228515625, 0.0005583763122558594, 0.024078369140625, 0.022247314453125, -0.0181732177734375, 0.11260986328125, 0.038330078125, 0.03912353515625, -0.025299072265625, 0.043701171875, -0.08050537109375, 0.01192474365234375, -0.024688720703125, 0.0004665851593017578, -0.0172119140625, 0.0234832763671875, -0.04852294921875, -0.01195526123046875, -0.01043701171875, -0.040496826171875, 0.01145172119140625, 0.0394287109375, 0.02545166015625, -0.01454925537109375, -0.030609130859375, 0.01071929931640625, -0.0472412109375, -0.003208160400390625, -0.01235198974609375, -0.0197296142578125, 0.02392578125, -0.014007568359375, -0.0278167724609375, 0.01245880126953125, -0.0034160614013671875, -0.0161590576171875, 0.00215911865234375, 0.0069732666015625, -0.0239715576171875, 0.01806640625, -0.0002206563949584961, 0.00237274169921875, 0.0283660888671875, -0.0204315185546875, 0.01520538330078125, -0.0157012939453125, -0.0283660888671875, -0.0002008676528930664, -0.00827789306640625, -0.0191802978515625, 0.01210784912109375, -0.056182861328125, -0.0113525390625, -0.031982421875, -0.074462890625, -0.0733642578125, 0.04412841796875, 0.039093017578125, -0.00542449951171875, 0.041839599609375, 0.0499267578125, -0.0054931640625, -0.023345947265625, -0.0184783935546875, -0.01519775390625, -0.02020263671875, -0.0203399658203125, 0.004558563232421875, 0.03192138671875, 0.01340484619140625, -0.01059722900390625, -0.0063934326171875, -0.007556915283203125, -0.031951904296875, -0.021148681640625, -0.021148681640625, -0.0018320083618164062, -0.013214111328125, 0.00174713134765625, -0.057403564453125, 0.034942626953125, -0.01290130615234375, 0.04541015625, 0.02197265625, 0.0287017822265625, 0.013946533203125, -0.0163116455078125, -0.0032196044921875, 0.0028743743896484375, -0.0325927734375, -0.035980224609375, 0.036651611328125, 0.03857421875, -0.0236663818359375, 0.004001617431640625, 0.02545166015625, -0.032257080078125, -0.0249481201171875, -0.018707275390625, 0.005054473876953125, 0.0252838134765625, -0.00748443603515625, -0.00963592529296875, 0.046234130859375, -0.025604248046875, -0.035003662109375, 0.037872314453125, 0.0007801055908203125, 0.004241943359375, 0.01346588134765625, 0.004245758056640625, 0.006099700927734375, -0.027801513671875, -0.01027679443359375, -0.023681640625, 0.031646728515625, -0.001773834228515625, 0.0008459091186523438, 0.0019550323486328125, 0.01702880859375, -0.005947113037109375, -0.027313232421875, -0.008392333984375, 0.012664794921875, -0.0239410400390625, -0.0011377334594726562, -0.0257720947265625, -0.057403564453125, 0.048828125, -0.03167724609375, -0.00457000732421875, 0.015472412109375, 0.0175933837890625, 0.0173187255859375, -0.0025653839111328125, 0.007537841796875, 0.01477813720703125, -0.0030918121337890625, 0.00679779052734375, -0.0175628662109375, -0.00678253173828125, 0.050201416015625, -0.0174560546875, -0.0271148681640625, -0.0239410400390625, 0.049835205078125, -0.0036678314208984375, -0.05517578125, -0.0031337738037109375, 0.01568603515625, 0.04608154296875, 0.017364501953125, 0.0217742919921875, 0.02886962890625, -0.006473541259765625, 0.035736083984375, 0.02508544921875, -0.05029296875, -0.053680419921875, 0.036865234375, 0.030029296875, -0.03594970703125, 0.01922607421875, -0.03289794921875, 0.037445068359375, -0.005092620849609375, 0.0205841064453125, -0.0202484130859375, 0.0260772705078125, -0.024017333984375, 0.03765869140625, 0.0166168212890625, 0.02093505859375, -0.0009036064147949219, 0.0105438232421875, -0.00848388671875, -0.059112548828125, -0.06622314453125, -0.01355743408203125, -0.04345703125, 0.0204315185546875, -0.00035262107849121094, 0.04791259765625, 0.009033203125, -0.024688720703125, 0.00445556640625, -0.034210205078125, -0.005901336669921875, -0.0228424072265625, 0.0017576217651367188, -0.00469970703125, -0.0090179443359375, -0.0014743804931640625, 0.004505157470703125, 0.0067596435546875, 0.00844573974609375, 0.00799560546875, 0.00937652587890625, -0.008056640625, 0.027740478515625, -0.0836181640625, 0.0165863037109375, 0.0445556640625, 0.03521728515625, 0.007541656494140625, 0.0202484130859375, 0.031341552734375, 0.0452880859375, -0.012237548828125, 0.0301971435546875, -0.0061187744140625, -0.019989013671875, -0.0113677978515625, -0.04437255859375, -0.016754150390625, 0.0369873046875, -0.10028076171875, -0.02886962890625, 0.044586181640625, 0.03265380859375, -0.0142669677734375, -0.022674560546875, 0.005458831787109375, 0.018218994140625, -0.03985595703125, -0.08746337890625, 0.02374267578125, 0.006809234619140625, -0.00937652587890625, 0.016876220703125, -0.006927490234375, -0.01361846923828125, -0.004650115966796875, 0.016632080078125, 0.0008091926574707031, 0.0031223297119140625, 0.03857421875, 0.005115509033203125, 0.028533935546875, -0.0377197265625, -0.01282501220703125, 0.0220794677734375, 0.02288818359375, -0.040618896484375, 0.01090240478515625, -0.037994384765625, -0.0216064453125, -0.0032253265380859375, -0.033050537109375, 0.002986907958984375, -0.029205322265625, 0.024688720703125, -0.007183074951171875, -0.00772857666015625, 0.04180908203125, -0.031707763671875, 0.077880859375, 0.003734588623046875, -0.02301025390625, -0.066162109375, -0.0226593017578125, 0.0301361083984375, -0.037139892578125, 0.0276031494140625, 0.068603515625, -0.01422119140625, 0.0205841064453125, -0.006134033203125, 0.03338623046875, 0.007602691650390625, 0.0201873779296875, 0.0025844573974609375, -0.0279388427734375, -0.025146484375, -0.033660888671875, 0.0223388671875, 0.060272216796875, -0.003826141357421875, -0.051177978515625, 0.002933502197265625, 0.0318603515625, -0.013916015625, -0.0170745849609375, -0.007366180419921875, -0.055694580078125, 0.047210693359375, -0.01055145263671875, -0.006992340087890625, -0.019927978515625, -0.0011806488037109375, 0.0209808349609375, 0.0160064697265625, -0.01068115234375, -0.0399169921875, -0.009552001953125, -0.054443359375, 0.00821685791015625, -0.005237579345703125, 0.0184173583984375, -0.0034809112548828125, 0.0927734375, 0.033660888671875, -0.036224365234375, 0.0310516357421875, 0.036285400390625, -0.01381683349609375, 0.01141357421875, 0.03778076171875, -0.038543701171875, 0.007312774658203125, 0.01412200927734375, -0.036895751953125, -0.0010166168212890625, -0.0009131431579589844, -0.033935546875, -0.0233917236328125, -0.0584716796875, -0.0254058837890625, 0.00691986083984375, 0.012176513671875, -0.06719970703125, -0.0178070068359375, -0.08038330078125, -0.04681396484375, 0.04248046875, -0.051513671875, -0.0112457275390625, 0.0163726806640625, -0.024688720703125, 0.0256195068359375, -0.0191650390625, 0.020050048828125, 0.016387939453125, 0.0144805908203125, 0.00679779052734375, -0.03277587890625, -0.0123748779296875, 0.01142120361328125, -0.0093994140625, -0.0290069580078125, -0.0198211669921875, 0.0673828125, -0.0012235641479492188, 0.028778076171875, -0.00860595703125, 0.039215087890625, -0.01432037353515625, -0.080078125, 0.037506103515625, -0.08465576171875, -0.0008573532104492188, -0.051177978515625, 0.00023877620697021484, 0.01068115234375, 0.10430908203125, -0.01568603515625, -0.0259552001953125, 0.00839996337890625, 0.0189971923828125, -0.01268768310546875, 0.01666259765625, -0.0226593017578125, -0.004669189453125, -0.057891845703125, 0.0232391357421875, 0.0214996337890625, -0.0187530517578125, -0.045806884765625, 0.06976318359375, -0.06396484375, -0.015625, 0.00389862060546875, -0.0587158203125, 0.005870819091796875, 0.0192108154296875, -0.02117919921875, -0.0177154541015625, 0.019500732421875, -0.06280517578125, -0.0439453125, -0.01361846923828125, -0.02667236328125, 0.07000732421875, 0.047821044921875, -0.0286102294921875, 0.03125, 0.052398681640625, 0.003086090087890625, 0.00901031494140625, -0.0195159912109375, 0.0169525146484375, -0.004497528076171875, -0.0379638671875, -0.02349853515625, -0.026153564453125, -0.0199432373046875, -0.0187835693359375, -0.05224609375, 0.0184326171875, -0.0019369125366210938, 0.030517578125, 0.0199432373046875, -0.022857666015625, -0.047882080078125, -0.0246429443359375, -0.029266357421875, 0.007167816162109375, 0.0141754150390625, -0.02410888671875, -0.0282745361328125, -0.04925537109375, -0.060333251953125, -0.0023345947265625, -0.057861328125, 0.03973388671875, -0.016998291015625, 0.045379638671875, 0.005870819091796875, -0.0229644775390625, -0.05487060546875, 0.052825927734375, 0.010498046875, -0.02105712890625, 0.011566162109375, -0.052215576171875, 0.0391845703125, 0.020355224609375, -0.00933074951171875, -0.014373779296875, 0.01020050048828125, 0.015838623046875, -0.01432037353515625, -0.00528717041015625, -0.01470947265625, 0.06719970703125, -0.0278778076171875, -0.029541015625, 0.005558013916015625, -0.03662109375, 0.031494140625, 0.004467010498046875, 0.048614501953125, -0.0258636474609375, 0.01983642578125, -0.0205078125, 0.0181884765625, 0.005962371826171875, 0.0216827392578125, 0.010040283203125, -0.047576904296875, -0.0036602020263671875, -0.00849151611328125, 0.0029010772705078125, -0.0201416015625, 0.00152587890625, 0.0062408447265625, 0.015899658203125, -0.0129547119140625, 0.00754547119140625, -0.0168914794921875, 0.08038330078125, 0.004718780517578125, -0.052642822265625, -0.01396942138671875, -0.005466461181640625, 0.004085540771484375, 0.005992889404296875, -0.003276824951171875, 0.007503509521484375, 0.0204315185546875, -0.0229034423828125, -0.01171875, 0.0338134765625, -0.030517578125, -0.026763916015625, 0.018585205078125, -0.004039764404296875, -0.001262664794921875, 0.01702880859375, 0.047515869140625, -0.00799560546875, 0.0305328369140625, -0.00007253885269165039, 0.0249786376953125, -0.00867462158203125, 0.039276123046875, 0.014129638671875, -0.0190582275390625, 0.04010009765625, -0.0057525634765625, 0.00809478759765625, -0.020111083984375, -0.0289459228515625, 0.01039886474609375, 0.027099609375, 0.0164031982421875, 0.0372314453125, -0.011383056640625, 0.015716552734375, -0.0299224853515625, 0.0865478515625, 0.0225677490234375, -0.061920166015625, -0.035186767578125, -0.0030117034912109375, 0.0302581787109375, -0.0285491943359375, -0.0244598388671875, 0.057373046875, -0.002590179443359375, 0.042205810546875, 0.00384521484375, -0.01788330078125, 0.0232086181640625, 0.0196990966796875, -0.029998779296875, -0.005855560302734375, 0.042449951171875, -0.1004638671875, -0.03729248046875, -0.00943756103515625, 0.0030498504638671875, 0.041595458984375, -0.01422882080078125, -0.022369384765625, -0.0225372314453125, 0.0265350341796875, -0.068115234375, -0.00751495361328125, 0.08258056640625, 0.04937744140625, -0.06512451171875, -0.01300811767578125, -0.0479736328125, -0.020751953125, -0.060333251953125, -0.027008056640625, -0.035797119140625, 0.019287109375, -0.0009393692016601562, -0.0021724700927734375, 0.00806427001953125, -0.00768280029296875, -0.031646728515625, 0.046966552734375, 0.0294952392578125, 0.021240234375, 0.01568603515625, 0.032135009765625, -0.0023593902587890625, 0.03173828125, 0.020782470703125, 0.0004911422729492188, -0.03961181640625, -0.0183868408203125, -0.003177642822265625, -0.0160675048828125, -0.0030803680419921875, -0.00391387939453125, 0.0174560546875, -0.006931304931640625, 0.0169677734375, -0.007091522216796875, -0.00021767616271972656, 0.007415771484375, 0.01367950439453125, -0.0174102783203125, 0.0230712890625, 0.0033512115478515625, -0.010528564453125, 0.0194091796875, -0.034393310546875, -0.02569580078125, -0.0017070770263671875, -0.00762176513671875, 0.0228271484375, -0.01238250732421875, 0.00717926025390625, 0.00403594970703125, -0.05560302734375, 0.04620361328125, 0.07257080078125, 0.033172607421875, 0.050445556640625, 0.008148193359375, 0.0225982666015625, 0.0207672119140625, 0.0201568603515625, -0.0250244140625, -0.03851318359375, 0.08380126953125, 0.0292816162109375, -0.048980712890625, 0.07061767578125, -0.0465087890625, 0.002410888671875, 0.06451416015625, 0.08209228515625, -0.07763671875, -0.017669677734375, 0.0217742919921875, -0.00836181640625, 0.01025390625, -0.0261993408203125, 0.01136016845703125, -0.033416748046875, 0.0219573974609375, 0.0159912109375, -0.0156402587890625, -0.00946044921875, -0.02044677734375, 0.0017538070678710938, 0.0091705322265625, 0.08502197265625, 0.0141143798828125, -0.0219879150390625, -0.04022216796875, 0.007717132568359375, -0.0242767333984375, -0.0316162109375, 0.035888671875, -0.02850341796875, -0.020233154296875, -0.046783447265625, -0.00807952880859375, 0.033966064453125, -0.00567626953125, 0.0251922607421875, 0.007724761962890625, -0.020721435546875, 0.0266265869140625, -0.01837158203125, 0.020965576171875, -0.01264190673828125, -0.0137786865234375, -0.037109375, -0.01009368896484375, 0.0096282958984375, -0.004016876220703125, -0.040618896484375, 0.012237548828125, -0.050537109375, -0.0159912109375, -0.002452850341796875, -0.020904541015625, 0.08203125, -0.051177978515625, -0.005840301513671875, 0.0252227783203125, -0.0192413330078125, -0.007259368896484375, -0.008331298828125, 0.004055023193359375, -0.061767578125, -0.00896453857421875, -0.0006613731384277344, -0.0163726806640625, 0.0039825439453125, 0.012359619140625, -0.04022216796875, 0.0826416015625, 0.040008544921875, -0.040283203125, -0.0030517578125, 0.035919189453125, -0.057098388671875, 0.01428985595703125, -0.041595458984375, 0.03466796875, -0.0176849365234375, -0.00476837158203125, -0.041595458984375, 0.007640838623046875, -0.0197296142578125, -0.011383056640625, 0.061737060546875, 0.0247344970703125, -0.004016876220703125, -0.0031147003173828125, 0.0171356201171875, -0.03997802734375, -0.051910400390625, 0.06005859375, -0.017059326171875, -0.0260162353515625, 0.01126861572265625, -0.0265045166015625, 0.0288848876953125, -0.045806884765625, 0.0092926025390625, 0.01403045654296875, -0.0008454322814941406, -0.0115203857421875, 0.035003662109375, 0.0279083251953125, -0.037384033203125, 0.0078582763671875, 0.037628173828125, -0.0703125, -0.042205810546875, 0.036163330078125, 0.01058197021484375, -0.031280517578125, 0.0386962890625, -0.052459716796875, 0.043609619140625, 0.003025054931640625, 0.016998291015625, 0.0157470703125, 0.01267242431640625, 0.01551055908203125, -0.0007352828979492188, 0.020294189453125, 0.037109375, -0.052764892578125, 0.024505615234375, 0.004558563232421875, 0.027618408203125, -0.0489501953125, -0.028717041015625, 0.0298309326171875, 0.0633544921875, -0.01174163818359375, -0.036956787109375, -0.0088348388671875, -0.00872802734375, 0.038055419921875, 0.0110931396484375, 0.042083740234375, -0.045196533203125, -0.034393310546875, -0.0207977294921875, -0.03619384765625, 0.0076751708984375, 0.0289154052734375, -0.00830078125, -0.027557373046875, 0.0289764404296875, -0.044830322265625, -0.0345458984375, 0.022857666015625, 0.01551055908203125, 0.04559326171875, 0.002162933349609375, 0.01251983642578125, -0.0287017822265625, -0.00943756103515625, -0.01158905029296875, -0.00008845329284667969, -0.01468658447265625, 0.007526397705078125, -0.019012451171875, 0.01007843017578125, -0.00959014892578125, 0.0188751220703125, -0.004901885986328125, 0.0243072509765625, 0.0253753662109375, 0.03814697265625, 0.0177154541015625, -0.01264190673828125, -0.019073486328125, -0.01287078857421875, -0.011016845703125, -0.0289154052734375, -0.023956298828125, -0.00524139404296875, 0.0006375312805175781, -0.007904052734375, 0.0178985595703125, -0.012603759765625, -0.0200653076171875, 0.00492095947265625, -0.01047515869140625, -0.030548095703125, 0.02569580078125, -0.044830322265625, 0.01302337646484375, -0.00844573974609375, -0.04730224609375, -0.032470703125, 0.007740020751953125, -0.0062408447265625, 0.007526397705078125, 0.02227783203125, -0.01434326171875, 0.0341796875, 0.0260467529296875, 0.015838623046875, -0.0123748779296875, -0.023193359375, 0.02362060546875, -0.0308685302734375, 0.000522613525390625, 0.0092315673828125, -0.0003705024719238281, 0.003063201904296875, -0.017822265625, 0.0251007080078125, 0.039215087890625, 0.0439453125, -0.008544921875, 0.041473388671875, -0.0133514404296875, 0.0462646484375, -0.048248291015625, -0.0140533447265625, 0.041412353515625, -0.016571044921875, -0.024444580078125, -0.01055908203125, -0.08489990234375, 0.00797271728515625, 0.0362548828125, -0.046173095703125, 0.0273284912109375, 0.0413818359375, -0.010528564453125, -0.07080078125, 0.0242767333984375, -0.0164947509765625, -0.06292724609375, -0.0020542144775390625, 0.0347900390625, -0.00811767578125, 0.0479736328125, -0.00525665283203125, 0.0372314453125, -0.0384521484375, -0.033477783203125, -0.0023193359375, -0.05096435546875, -0.0185394287109375, 0.023590087890625, -0.0175933837890625, 0.0282440185546875, -0.01348114013671875, -0.025054931640625, 0.0633544921875, -0.01471710205078125, 0.046661376953125, -0.01517486572265625, 0.058013916015625, 0.006076812744140625, -0.039459228515625, 0.019134521484375, -0.032196044921875, -0.00135040283203125, -0.0119171142578125, 0.03424072265625, -0.001766204833984375, -0.0011281967163085938, -0.006072998046875, -0.01654052734375, -0.03778076171875, 0.01041412353515625, -0.0197601318359375, -0.01904296875, -0.014007568359375, -0.015625, 0.007297515869140625, -0.007427215576171875, -0.0212860107421875, -0.01751708984375, -0.002765655517578125, 0.016021728515625, -0.020904541015625, -0.017669677734375, -0.00437164306640625, 0.00014019012451171875, -0.01995849609375, -0.007152557373046875, -0.0528564453125, -0.00014638900756835938, -0.02862548828125, -0.0000807046890258789, 0.048736572265625, -0.0175018310546875, -0.06353759765625, -0.0281524658203125, -0.01153564453125, 0.0177764892578125, 0.01080322265625, -0.03448486328125, -0.04083251953125, 0.03900146484375, 0.0120697021484375, -0.006336212158203125, -0.001117706298828125, 0.002567291259765625, -0.024169921875, -0.0209503173828125, -0.0023193359375, 0.0036067962646484375, -0.056121826171875, -0.11871337890625, 0.03216552734375, -0.02044677734375, -0.042999267578125, -0.01776123046875, -0.02667236328125, -0.006328582763671875, 0.0298614501953125, -0.0016374588012695312, 0.004642486572265625, -0.032501220703125, 0.0261688232421875, 0.0286865234375, -0.01203155517578125, 0.0297698974609375, 0.0004372596740722656, -0.0216217041015625, 0.031219482421875, 0.04119873046875, 0.0105743408203125, 0.005001068115234375, -0.0206451416015625, 0.023468017578125, 0.055633544921875, -0.03680419921875, -0.043182373046875, -0.0207672119140625, -0.0333251953125, -0.01190185546875, -0.004161834716796875, 0.001857757568359375, -0.00786590576171875, 0.00783538818359375, 0.03729248046875, -0.0005750656127929688, -0.02044677734375, -0.00600433349609375, -0.00617218017578125, -0.019805908203125, -0.01849365234375, 0.01800537109375, -0.06365966796875, -0.0256195068359375, 0.00634002685546875, -0.005733489990234375, -0.0019321441650390625, 0.0195159912109375, 0.003753662109375, 0.004192352294921875, 0.07745361328125, -0.0016727447509765625, -0.01458740234375, -0.08349609375, 0.0955810546875, -0.03302001953125, 0.01544189453125, 0.03363037109375, 0.04345703125, 0.05157470703125, 0.07623291015625, -0.01549530029296875, 0.006954193115234375, -0.0303955078125, 0.0184173583984375, -0.00827789306640625, 0.03521728515625, -0.0166473388671875, -0.01332855224609375, 0.007190704345703125, 0.0240325927734375, -0.01491546630859375, 0.026611328125, 0.015960693359375, 0.0255889892578125, -0.0177001953125, 0.056884765625, -0.035308837890625, 0.0391845703125, -0.02191162109375, 0.03179931640625, -0.033721923828125, 0.0175323486328125, 0.005092620849609375, -0.01255035400390625, 0.0150299072265625, 0.043670654296875, 0.0249176025390625, -0.004100799560546875, 0.0186614990234375, 0.035980224609375, 0.03558349609375, 0.01094818115234375 ]
9b20a5b07673fb2ea925f1fee7a038de2582445c
Wordpress Stackexchange Q: Customizing get_the_excerpt() to specific length and "Read More" output. I am costuming a template. There is a list grabbing the introduction from the first 1-2 paragraphs (all the articles from a category). If I set the excerpt to 295 words, sometimes the list grabs additional words from the next paragraph. I would like to add a Read More tag to stop it. Can someone help me with that part? <div id="all-div-cabrand-content-stories"> <div class="kids-families-con-cabrand-stories"> <?php echo get_the_post_thumbnail($page->ID, 'thubmnailstorysmall'); ?> </div> <div class="kids-con-cabrand-new-stories"> <span> <?php print substr(get_the_excerpt(),wp_trim_excerpt(),295); ?> <i><a style="color:#1975D1;float:Right;" class="title" href="<?php the_permalink() ?>" rel="bookmark">Click for Story & Video</a></i> <br/> </span> </div> </div> A: To get a specific length you can use: wp_trim_words function. It has 3 parameters. * *Text to trim. Ex: get_the_content() *Number of words. Ex: 295 *What to append after end of the text. Ex: '' This means null. Use this: <span> <?php echo wp_trim_words( get_the_content(), 295, '' ); ?> <i><a style="color:#1975D1;float:Right;" class="title" href="<?php the_permalink() ?>" rel="bookmark">Click for Story & Video</a></i> <br/> </span>
Q: Customizing get_the_excerpt() to specific length and "Read More" output. I am costuming a template. There is a list grabbing the introduction from the first 1-2 paragraphs (all the articles from a category). If I set the excerpt to 295 words, sometimes the list grabs additional words from the next paragraph. I would like to add a Read More tag to stop it. Can someone help me with that part? <div id="all-div-cabrand-content-stories"> <div class="kids-families-con-cabrand-stories"> <?php echo get_the_post_thumbnail($page->ID, 'thubmnailstorysmall'); ?> </div> <div class="kids-con-cabrand-new-stories"> <span> <?php print substr(get_the_excerpt(),wp_trim_excerpt(),295); ?> <i><a style="color:#1975D1;float:Right;" class="title" href="<?php the_permalink() ?>" rel="bookmark">Click for Story & Video</a></i> <br/> </span> </div> </div> A: To get a specific length you can use: wp_trim_words function. It has 3 parameters. * *Text to trim. Ex: get_the_content() *Number of words. Ex: 295 *What to append after end of the text. Ex: '' This means null. Use this: <span> <?php echo wp_trim_words( get_the_content(), 295, '' ); ?> <i><a style="color:#1975D1;float:Right;" class="title" href="<?php the_permalink() ?>" rel="bookmark">Click for Story & Video</a></i> <br/> </span> A: You can grab the first one or two paragraphs with a regular expression (regexp) function custom_excerpt( $content = '' ){ if( empty( $content ) ) return $content; $result = ''; $matches = array(); // grab all paragraphs from $content preg_match_all( '#<\s*p[^>]*>(.*?)<\s*/\s*p>#ui', $content, $matches ); if( ! empty( $matches ) ){ // add the first paragraph $result = $matches[0][0]; // add the swecond paragraph if available if( isset( $matches[0][1] ) ) $result .= $matches[0][1]; // set the excerpt length add_filter( 'excerpt_length', 'custom_excerpt_length' ); // create the custom excerpt $result = custom_trim_excerpt( $result ); } return $result; } function custom_excerpt_length(){ return 295; } function custom_trim_excerpt( $text = '' ){ $text = strip_shortcodes( $text ); $text = apply_filters('the_content', $text); $text = str_replace(']]>', ']]&gt;', $text); $excerpt_length = apply_filters('excerpt_length', 55); $excerpt_more = apply_filters('excerpt_more', ' ' . '[...]'); $text = wp_trim_words( $text, $excerpt_length, $excerpt_more ); return $text; } Call the function with <?php print custom_excerpt( get_the_content( 'Read More' ) ); ?> This is a bit tricky because you can not hand over wp_trim_excerpt() a text. wp_trim_excerpt() will simply return the text if one is given. You have to copy and customize the function a bit. A: You can use this function: function get_excerpt_trim($num_words='20', $more='...'){ $excerpt = get_the_excerpt(); $excerpt = wp_trim_words( $excerpt, $num_words , $more ); return $excerpt; } https://codex.wordpress.org/Function_Reference/wp_trim_words A: You can use the built in function function custom_excerpt_length( $length ) { return 20; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); http://codex.wordpress.org/Function_Reference/the_excerpt A: To get what you want you need to do two things. 1) Establish a custom excerpt length (in words, not characters), best achieved by following this answer. 2) Just call wp_trim_excerpt(), don't wrap it inside of substr Your line of code above is not doing what you are expecting it to do. I believe it's returning the first 295 characters of the excerpt, but I'm not fully sure of what the php subtr() function is going to do when you pass it a string as the second argument when it's expecting an integer.
wordpress
{ "language": "en", "length": 495, "provenance": "stackexchange_00019.jsonl.gz:426497", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75069" }
[ -0.033966064453125, -0.02313232421875, -0.0095367431640625, 0.02032470703125, -0.044677734375, -0.0226593017578125, 0.0126800537109375, -0.017486572265625, -0.05596923828125, 0.031494140625, -0.0362548828125, 0.0212554931640625, -0.04058837890625, 0.0018024444580078125, 0.00876617431640625, -0.053009033203125, 0.04412841796875, -0.019683837890625, 0.030731201171875, 0.00278472900390625, 0.0171966552734375, 0.0238494873046875, 0.00188446044921875, 0.06719970703125, -0.00778961181640625, -0.023590087890625, 0.1214599609375, -0.0164947509765625, -0.0020465850830078125, -0.036895751953125, 0.01959228515625, -0.0227203369140625, 0.029998779296875, 0.0256805419921875, -0.042999267578125, 0.0017108917236328125, 0.01486968994140625, 0.00539398193359375, -0.0036773681640625, 0.031585693359375, 0.0271148681640625, -0.01409912109375, -0.00011777877807617188, 0.007518768310546875, -0.02252197265625, 0.0017347335815429688, 0.0179443359375, -0.0273590087890625, -0.003543853759765625, 0.0001723766326904297, 0.030303955078125, -0.01145172119140625, 0.04644775390625, -0.0253448486328125, -0.005229949951171875, 0.020172119140625, 0.0017328262329101562, 0.01104736328125, 0.043975830078125, -0.0357666015625, -0.041961669921875, -0.01306915283203125, 0.0249786376953125, -0.000010371208190917969, 0.00018358230590820312, -0.0023441314697265625, 0.042724609375, 0.017242431640625, -0.03277587890625, -0.026611328125, 0.023284912109375, -0.0092926025390625, -0.0090484619140625, -0.045013427734375, -0.038330078125, 0.058868408203125, -0.039825439453125, -0.0260162353515625, 0.0287322998046875, -0.0281219482421875, -0.0181884765625, -0.0029144287109375, -0.057769775390625, -0.0086822509765625, 0.02679443359375, 0.01263427734375, -0.0256500244140625, -0.01062774658203125, -0.02728271484375, 0.0002390146255493164, -0.0223388671875, 0.03662109375, 0.0184783935546875, -0.0231781005859375, -0.0462646484375, -0.0114288330078125, -0.0141448974609375, 0.0225830078125, -0.0238037109375, -0.00984954833984375, 0.027984619140625, -0.039886474609375, 0.03839111328125, -0.033050537109375, 0.0221099853515625, -0.00012153387069702148, -0.01119232177734375, -0.01512908935546875, 0.0645751953125, 0.0222015380859375, 0.00685882568359375, 0.054473876953125, -0.0282440185546875, -0.03619384765625, -0.036102294921875, 0.0305938720703125, -0.0271148681640625, -0.03582763671875, 0.0159454345703125, -0.02716064453125, -0.01296234130859375, 0.001544952392578125, -0.00466156005859375, 0.0003714561462402344, 0.0263671875, 0.00823211669921875, -0.019561767578125, -0.0080108642578125, 0.04644775390625, 0.03863525390625, -0.038543701171875, 0.02642822265625, 0.00862884521484375, -0.054412841796875, -0.033935546875, -0.0262451171875, -0.0089569091796875, -0.035125732421875, 0.0014848709106445312, 0.0070343017578125, -0.038787841796875, -0.01519012451171875, 0.054840087890625, -0.015960693359375, -0.025482177734375, 0.002017974853515625, 0.01085662841796875, 0.006805419921875, 0.014007568359375, -0.037200927734375, -0.025146484375, -0.007144927978515625, 0.07281494140625, -0.03155517578125, -0.10064697265625, -0.061920166015625, -0.046844482421875, -0.0196685791015625, -0.03472900390625, -0.051177978515625, 0.0477294921875, -0.007556915283203125, -0.0195465087890625, -0.048583984375, -0.062225341796875, -0.0034008026123046875, -0.055572509765625, -0.0036373138427734375, 0.0232086181640625, 0.08001708984375, 0.0096893310546875, -0.015625, -0.0222930908203125, 0.020965576171875, -0.0206756591796875, 0.00687408447265625, -0.01387786865234375, -0.0080413818359375, 0.0199432373046875, 0.0008025169372558594, -0.0341796875, -0.0323486328125, 0.031982421875, -0.0301361083984375, -0.02740478515625, -0.00598907470703125, 0.031280517578125, 0.051971435546875, -0.00234222412109375, 0.0380859375, 0.004596710205078125, -0.006504058837890625, -0.0155792236328125, -0.01335906982421875, -0.03009033203125, -0.0283966064453125, -0.0037326812744140625, -0.002147674560546875, -0.0189208984375, 0.036346435546875, 0.051422119140625, -0.037200927734375, 0.048797607421875, -0.0276641845703125, -0.04461669921875, -0.0135345458984375, -0.03131103515625, 0.034881591796875, -0.0263214111328125, -0.002593994140625, 0.02386474609375, -0.01271820068359375, -0.015899658203125, -0.0003809928894042969, -0.0243072509765625, -0.0013828277587890625, -0.004268646240234375, 0.01439666748046875, 0.0011472702026367188, 0.01477813720703125, 0.049224853515625, -0.0272216796875, 0.0233306884765625, 0.040557861328125, 0.0498046875, -0.061370849609375, 0.01331329345703125, -0.04638671875, 0.0301971435546875, -0.0146942138671875, -0.0169677734375, 0.04083251953125, 0.0565185546875, 0.047882080078125, -0.004650115966796875, 0.01464080810546875, 0.060638427734375, -0.0401611328125, -0.006984710693359375, 0.025909423828125, 0.0430908203125, 0.04388427734375, -0.02325439453125, -0.057342529296875, 0.06976318359375, -0.04803466796875, -0.003875732421875, -0.035980224609375, 0.008209228515625, 0.0712890625, 0.01401519775390625, 0.0010251998901367188, -0.0012607574462890625, -0.0113372802734375, -0.007740020751953125, 0.01535797119140625, -0.007354736328125, 0.00937652587890625, -0.04052734375, 0.04791259765625, -0.0164947509765625, 0.005657196044921875, 0.019378662109375, -0.0246429443359375, -0.01389312744140625, 0.027008056640625, 0.0369873046875, 0.042633056640625, -0.01702880859375, -0.01215362548828125, 0.021942138671875, 0.0867919921875, -0.006938934326171875, 0.006977081298828125, -0.05145263671875, -0.040618896484375, 0.0269012451171875, 0.04351806640625, -0.061553955078125, -0.05914306640625, -0.0020771026611328125, 0.040679931640625, 0.007762908935546875, -0.0019321441650390625, -0.006916046142578125, -0.095703125, -0.02435302734375, -0.00998687744140625, -0.007110595703125, -0.0015735626220703125, 0.0236968994140625, 0.043304443359375, -0.03912353515625, 0.053619384765625, -0.033447265625, 0.004161834716796875, 0.0210723876953125, -0.06085205078125, 0.05340576171875, -0.037994384765625, 0.06671142578125, 0.06036376953125, -0.031829833984375, 0.016326904296875, 0.00550079345703125, 0.004711151123046875, 0.0037212371826171875, 0.00595855712890625, -0.01070404052734375, 0.007236480712890625, -0.059173583984375, 0.0201263427734375, 0.022674560546875, 0.054443359375, -0.017425537109375, -0.0211334228515625, -0.01371002197265625, 0.042877197265625, -0.0259857177734375, -0.0005178451538085938, 0.04034423828125, -0.10302734375, -0.040924072265625, 0.0005044937133789062, -0.074462890625, -0.0072479248046875, 0.039764404296875, -0.017059326171875, 0.0200653076171875, -0.01763916015625, -0.01171112060546875, -0.0207977294921875, -0.07757568359375, -0.0167083740234375, 0.0226593017578125, 0.024627685546875, -0.00548553466796875, 0.0212249755859375, -0.01165008544921875, -0.0272064208984375, -0.027801513671875, -0.0318603515625, -0.0134124755859375, -0.03778076171875, -0.00670623779296875, 0.021087646484375, -0.004184722900390625, 0.005023956298828125, 0.03436279296875, 0.0267333984375, -0.031463623046875, -0.01146697998046875, -0.0213165283203125, 0.004352569580078125, 0.01366424560546875, 0.04498291015625, 0.03973388671875, 0.05194091796875, 0.05413818359375, -0.00881195068359375, -0.016510009765625, 0.0036163330078125, -0.06976318359375, 0.0128936767578125, 0.07025146484375, -0.0218658447265625, 0.0017881393432617188, -0.042266845703125, -0.0020656585693359375, 0.0089569091796875, 0.0300750732421875, -0.05657958984375, 0.04107666015625, -0.0099639892578125, -0.0161895751953125, -0.0115509033203125, 0.0157318115234375, -0.00591278076171875, 0.022064208984375, 0.0024547576904296875, 0.03753662109375, 0.017364501953125, -0.038360595703125, -0.040435791015625, -0.034393310546875, 0.049285888671875, 0.0061492919921875, 0.0242919921875, -0.017578125, -0.045654296875, 0.00010687112808227539, 0.07379150390625, -0.0606689453125, -0.03668212890625, -0.02099609375, 0.021728515625, -0.01335906982421875, -0.055419921875, 0.00836181640625, -0.01464080810546875, -0.04302978515625, -0.0275726318359375, -0.0174407958984375, -0.03118896484375, -0.03009033203125, 0.0238037109375, -0.056854248046875, -0.01355743408203125, 0.030914306640625, 0.01372528076171875, -0.012481689453125, -0.00350189208984375, 0.017059326171875, -0.03814697265625, -0.018463134765625, 0.0018873214721679688, -0.026824951171875, -0.03271484375, 0.049224853515625, 0.032958984375, -0.008819580078125, -0.0237274169921875, -0.0224456787109375, 0.052825927734375, 0.02728271484375, -0.026336669921875, 0.02947998046875, -0.018157958984375, 0.01247406005859375, 0.011016845703125, 0.026397705078125, -0.0220489501953125, -0.03704833984375, -0.050079345703125, 0.012969970703125, -0.00811767578125, -0.034271240234375, -0.0005211830139160156, -0.034515380859375, 0.02777099609375, -0.057464599609375, -0.004283905029296875, 0.00989532470703125, 0.0023651123046875, 0.010589599609375, -0.007495880126953125, 0.00004857778549194336, -0.0430908203125, 0.043121337890625, 0.031158447265625, -0.032012939453125, -0.0041656494140625, 0.035125732421875, 0.03076171875, -0.025604248046875, -0.01287841796875, 0.025238037109375, 0.054931640625, -0.0027828216552734375, 0.010009765625, -0.002185821533203125, -0.058319091796875, 0.0755615234375, 0.0188751220703125, 0.005542755126953125, -0.00214385986328125, 0.0304412841796875, 0.0018053054809570312, -0.0182952880859375, 0.018646240234375, 0.0029010772705078125, 0.005672454833984375, 0.028778076171875, -0.04046630859375, 0.0543212890625, -0.0032196044921875, -0.022552490234375, -0.019561767578125, 0.0240020751953125, 0.017852783203125, -0.0181732177734375, 0.0136260986328125, 0.041534423828125, -0.01788330078125, -0.01424407958984375, 0.02838134765625, -0.0280609130859375, -0.00714874267578125, -0.0076446533203125, 0.025238037109375, 0.003368377685546875, 0.0196533203125, 0.041229248046875, -0.0115814208984375, -0.00547027587890625, 0.0020351409912109375, 0.0023784637451171875, 0.005237579345703125, -0.005352020263671875, -0.030517578125, -0.01007843017578125, 0.021392822265625, 0.0239715576171875, -0.00023829936981201172, -0.002948760986328125, 0.0297393798828125, 0.016357421875, 0.0209503173828125, 0.00150299072265625, -0.0207672119140625, 0.0275421142578125, -0.0192718505859375, -0.04071044921875, 0.021514892578125, -0.03997802734375, 0.01416778564453125, 0.0450439453125, -0.044708251953125, 0.033294677734375, -0.003631591796875, 0.013946533203125, -0.0007758140563964844, 0.015716552734375, 0.034149169921875, -0.0112457275390625, 0.00989532470703125, -0.01201629638671875, 0.0006089210510253906, -0.00284576416015625, -0.0224761962890625, 0.0435791015625, 0.0369873046875, -0.01224517822265625, 0.0017709732055664062, -0.031005859375, -0.030517578125, -0.0031719207763671875, 0.0216064453125, 0.013641357421875, -0.0265045166015625, -0.016387939453125, 0.015655517578125, 0.03631591796875, 0.008819580078125, -0.002208709716796875, 0.0126190185546875, -0.03594970703125, -0.027923583984375, 0.006122589111328125, -0.0295867919921875, -0.0283050537109375, -0.0238494873046875, -0.0139617919921875, -0.01052093505859375, -0.01251983642578125, 0.0241851806640625, -0.03607177734375, 0.00881195068359375, 0.004856109619140625, 0.0175933837890625, -0.041778564453125, 0.002490997314453125, -0.0291900634765625, 0.033111572265625, -0.07708740234375, 0.021484375, 0.0438232421875, 0.033355712890625, -0.03277587890625, 0.000011563301086425781, -0.045166015625, -0.0055694580078125, -0.00800323486328125, -0.016326904296875, -0.0211944580078125, -0.006633758544921875, -0.00366973876953125, 0.0142822265625, 0.0095977783203125, 0.0007166862487792969, -0.01361846923828125, 0.01348114013671875, 0.00988006591796875, 0.01806640625, -0.0144195556640625, 0.004688262939453125, 0.039886474609375, -0.0009603500366210938, 0.01776123046875, -0.003833770751953125, 0.01654052734375, -0.03179931640625, -0.0035495758056640625, -0.009124755859375, 0.017425537109375, -0.0185546875, 0.0482177734375, -0.019927978515625, 0.00984954833984375, 0.022369384765625, -0.0143585205078125, -0.0296630859375, -0.003658294677734375, -0.031982421875, 0.051177978515625, -0.02288818359375, -0.018524169921875, -0.02545166015625, -0.006183624267578125, 0.0335693359375, -0.013336181640625, -0.01152801513671875, 0.0265350341796875, -0.01361846923828125, 0.02703857421875, 0.01277923583984375, 0.016815185546875, -0.015960693359375, 0.042877197265625, -0.01678466796875, 0.040557861328125, 0.01171875, -0.006420135498046875, 0.041015625, -0.0093994140625, 0.036529541015625, 0.00835418701171875, 0.054931640625, -0.006916046142578125, 0.005832672119140625, 0.03582763671875, -0.0177764892578125, -0.0224761962890625, 0.016845703125, 0.02239990234375, -0.0310211181640625, 0.0014238357543945312, -0.00506591796875, 0.0310516357421875, 0.01493072509765625, 0.00974273681640625, -0.021240234375, -0.05780029296875, 0.06842041015625, -0.029541015625, 0.0140533447265625, 0.01739501953125, -0.039764404296875, -0.0168609619140625, -0.044036865234375, 0.0172576904296875, 0.01270294189453125, -0.0347900390625, 0.04302978515625, 0.0161590576171875, 0.0218048095703125, -0.00954437255859375, -0.01499176025390625, -0.01172637939453125, -0.0156402587890625, -0.014739990234375, 0.0034198760986328125, -0.054534912109375, 0.025299072265625, 0.004199981689453125, -0.010009765625, -0.0304107666015625, 0.04473876953125, -0.0416259765625, 0.040069580078125, 0.031158447265625, -0.0836181640625, -0.0252838134765625, -0.0033473968505859375, 0.01617431640625, 0.0291290283203125, -0.00591278076171875, 0.018035888671875, -0.0192718505859375, -0.032135009765625, 0.013885498046875, 0.0078582763671875, 0.0312347412109375, 0.00011986494064331055, -0.035980224609375, 0.03668212890625, -0.0125579833984375, -0.01236724853515625, -0.0236053466796875, 0.04046630859375, -0.07952880859375, -0.007274627685546875, 0.005527496337890625, 0.00860595703125, -0.03546142578125, -0.032867431640625, -0.044921875, 0.09368896484375, 0.04443359375, -0.01467132568359375, 0.0072174072265625, 0.053009033203125, -0.081787109375, 0.004978179931640625, -0.05157470703125, 0.03826904296875, 0.0163726806640625, 0.002101898193359375, -0.049407958984375, -0.01268768310546875, -0.0239715576171875, 0.032562255859375, 0.0011272430419921875, -0.01264190673828125, 0.00830078125, -0.0209503173828125, 0.036468505859375, 0.0394287109375, 0.0084991455078125, -0.0155487060546875, 0.0401611328125, 0.051971435546875, 0.06805419921875, -0.04541015625, 0.032470703125, -0.0160980224609375, 0.0164337158203125, 0.06854248046875, -0.00476837158203125, -0.0248870849609375, 0.044921875, 0.0235137939453125, -0.0272674560546875, -0.003002166748046875, 0.032867431640625, -0.06610107421875, 0.005710601806640625, 0.0675048828125, 0.0706787109375, -0.0792236328125, -0.056549072265625, -0.037109375, 0.047332763671875, 0.0133056640625, 0.0919189453125, 0.0125579833984375, 0.0157470703125, 0.081298828125, -0.004085540771484375, 0.0287017822265625, 0.0098114013671875, -0.0181884765625, 0.0006837844848632812, 0.007781982421875, 0.0067138671875, -0.031005859375, -0.005863189697265625, 0.036651611328125, -0.0018758773803710938, -0.017059326171875, -0.0055084228515625, -0.0026798248291015625, 0.0016050338745117188, -0.0005855560302734375, -0.01038360595703125, 0.020843505859375, 0.05938720703125, 0.03973388671875, -0.0301055908203125, -0.01885986328125, 0.021240234375, 0.0367431640625, 0.00626373291015625, 0.0112152099609375, -0.0223388671875, -0.046966552734375, -0.0273590087890625, -0.0113525390625, 0.035430908203125, 0.006092071533203125, -0.01242828369140625, 0.043914794921875, 0.037017822265625, 0.005031585693359375, 0.040863037109375, -0.003948211669921875, 0.0218505859375, -0.060516357421875, 0.054534912109375, 0.0187530517578125, -0.0245208740234375, -0.0246124267578125, -0.0125885009765625, -0.03802490234375, 0.0162811279296875, 0.033599853515625, -0.0655517578125, -0.0196380615234375, 0.0283355712890625, -0.0172119140625, 0.008331298828125, -0.0400390625, 0.01045989990234375, 0.017303466796875, -0.0008549690246582031, 0.0155487060546875, 0.02545166015625, 0.029998779296875, 0.007091522216796875, 0.0120391845703125, 0.022186279296875, 0.0201416015625, 0.015655517578125, 0.00726318359375, -0.0176849365234375, 0.036651611328125, -0.084228515625, 0.00438690185546875, -0.0221405029296875, -0.04510498046875, 0.0330810546875, 0.052001953125, -0.02667236328125, 0.01525115966796875, -0.0394287109375, -0.0028438568115234375, 0.0237884521484375, -0.00786590576171875, -0.00849151611328125, 0.06048583984375, 0.02874755859375, -0.0002579689025878906, -0.06243896484375, -0.0228729248046875, -0.01519012451171875, 0.029022216796875, -0.007122039794921875, 0.0284423828125, 0.0199737548828125, 0.0219573974609375, 0.0137786865234375, 0.0291290283203125, 0.006603240966796875, -0.0195159912109375, 0.0167999267578125, 0.043670654296875, 0.06585693359375, -0.033172607421875, -0.00241851806640625, 0.0223388671875, 0.033721923828125, -0.018707275390625, 0.038604736328125, -0.0372314453125, -0.0016651153564453125, -0.038177490234375, 0.031646728515625, -0.0198516845703125, -0.006805419921875, -0.037078857421875, -0.030853271484375, 0.047210693359375, 0.038330078125, 0.01137542724609375, 0.006954193115234375, 0.056854248046875, 0.00806427001953125, 0.0216827392578125, 0.043121337890625, 0.05218505859375, 0.050079345703125, -0.04034423828125, -0.04608154296875, 0.00848388671875, -0.0027008056640625, 0.0167236328125, 0.00243377685546875, 0.04345703125, 0.039520263671875, -0.0233306884765625, 0.050140380859375, 0.01180267333984375, 0.051116943359375, -0.028564453125, 0.00649261474609375, 0.0224609375, 0.0283203125, 0.03900146484375, -0.007465362548828125, -0.0203704833984375, -0.021331787109375, 0.00971221923828125, 0.01739501953125, -0.006999969482421875, -0.0169677734375, -0.031829833984375, 0.01119232177734375, 0.0198822021484375, -0.0035228729248046875, -0.029571533203125, 0.0396728515625, -0.0131378173828125, 0.01470184326171875, -0.029052734375, 0.00513458251953125, -0.004749298095703125, 0.01303863525390625, -0.036529541015625, -0.038177490234375, -0.061248779296875, 0.02423095703125, -0.05181884765625, 0.0180206298828125, 0.0758056640625, -0.03192138671875, -0.029083251953125, 0.0227203369140625, 0.004779815673828125, 0.06231689453125, -0.0369873046875, 0.0003159046173095703, 0.02001953125, 0.03985595703125, -0.032440185546875, -0.078369140625, -0.0035495758056640625, -0.0121002197265625, 0.032958984375, -0.0036163330078125, -0.0258941650390625, -0.002655029296875, -0.0469970703125, -0.06597900390625, -0.023712158203125, 0.007434844970703125, -0.0460205078125, 0.0221710205078125, -0.05340576171875, -0.021636962890625, 0.004962921142578125, 0.0157623291015625, -0.00305938720703125, -0.050262451171875, 0.0159454345703125, 0.00948333740234375, 0.024505615234375, 0.0187225341796875, -0.005523681640625, -0.0469970703125, 0.02685546875, 0.0294342041015625, 0.01393890380859375, -0.0196380615234375, -0.01446533203125, 0.0277557373046875, 0.0239105224609375, -0.01143646240234375, -0.00914764404296875, 0.02703857421875, -0.00738525390625, -0.020111083984375, -0.0440673828125, -0.0025463104248046875, -0.0013904571533203125, 0.04510498046875, 0.037994384765625, 0.0038318634033203125, -0.043121337890625, 0.0341796875, 0.0245819091796875, -0.029449462890625, -0.0191802978515625, 0.0223846435546875, -0.05340576171875, -0.03875732421875, -0.0238037109375, -0.0301971435546875, 0.0013341903686523438, -0.0372314453125, -0.05572509765625, -0.004932403564453125, -0.0538330078125, 0.028594970703125, -0.07574462890625, -0.0115966796875, 0.017303466796875, -0.032806396484375, -0.04205322265625, -0.0185546875, 0.01788330078125, -0.043975830078125, -0.043304443359375, -0.0625, -0.0105743408203125, -0.0234375, 0.0298309326171875, -0.0252685546875, 0.037628173828125, -0.0215606689453125, 0.029083251953125, -0.0069580078125, -0.021881103515625, 0.00072479248046875, -0.0010738372802734375, 0.0187530517578125, -0.054443359375, -0.0242919921875, -0.0263519287109375, -0.0003514289855957031, 0.049774169921875, 0.0013704299926757812, 0.022552490234375, 0.00347900390625, -0.00908660888671875, 0.0215911865234375, -0.043212890625, 0.010589599609375, 0.006931304931640625, -0.0243377685546875, -0.030914306640625, -0.004627227783203125, 0.037506103515625, -0.00514984130859375, 0.007663726806640625 ]
9c43e1481c59d70ecd7ec593820e295f3b1d5c4d
Wordpress Stackexchange Q: Nested meta_query with multiple relation keys I am curious whether Wordpress is able to run nested meta_query, with each having different relation keys? As of Wordpress 3.0, tax_query is able to perform this function; I'm wondering whether this has an equivalent with meta_query. $results = query_posts( array( 'post_type' => 'event_id', 'meta_query' => array( 'relation' => 'AND', array( 'relation' => 'OR', array( 'key' => 'primary_user_id', 'value' => $user_id ), array( 'key' => 'secondary_user_id', 'value' => $user_id ) ), array( 'key' => 'date', 'value' => array( $start_date, $end_date ), 'type' => 'DATETIME', 'compare' => 'BETWEEN' ) ) ) ); References: * *WP_Query Custom Field Parameters - Multiple Custom Field Handling *query multiple taxonomy and show post count *How navigation works in custom loop within shortcode? A: The question was for Wordpress 3.0, but just in case someone has the same question for a more recent version, from Wordpress Codex: "Starting with version 4.1, meta_query clauses can be nested in order to construct complex queries." https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parameters So, that query should work on the current Wordpress version.
Q: Nested meta_query with multiple relation keys I am curious whether Wordpress is able to run nested meta_query, with each having different relation keys? As of Wordpress 3.0, tax_query is able to perform this function; I'm wondering whether this has an equivalent with meta_query. $results = query_posts( array( 'post_type' => 'event_id', 'meta_query' => array( 'relation' => 'AND', array( 'relation' => 'OR', array( 'key' => 'primary_user_id', 'value' => $user_id ), array( 'key' => 'secondary_user_id', 'value' => $user_id ) ), array( 'key' => 'date', 'value' => array( $start_date, $end_date ), 'type' => 'DATETIME', 'compare' => 'BETWEEN' ) ) ) ); References: * *WP_Query Custom Field Parameters - Multiple Custom Field Handling *query multiple taxonomy and show post count *How navigation works in custom loop within shortcode? A: The question was for Wordpress 3.0, but just in case someone has the same question for a more recent version, from Wordpress Codex: "Starting with version 4.1, meta_query clauses can be nested in order to construct complex queries." https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parameters So, that query should work on the current Wordpress version. A: Meanwhile this is possible, see documentation with example and explanation: Old link: https://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters Update: 2021, new link: https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parameters and another example https://wordpress.org/support/topic/wp_query-with-multiple-meta_query/#post-9410992 'meta_query' => array( 'relation' => 'OR', array( 'relation' => 'AND', array( 'key' => '_price', 'value' => 1, 'compare' => '>=', 'type' => 'DECIMAL', ), array( 'key' => '_price', 'value' => 3000, 'compare' => '<=', 'type' => 'DECIMAL', ), ), array( 'relation' => 'AND', array( 'key' => '_price', 'value' => 3001, 'compare' => '>=', 'type' => 'DECIMAL', ), array( 'key' => '_price', 'value' => 6000, //fixed <= to => 'compare' => '<=', 'type' => 'DECIMAL', ), ) ), A: That seems to be impossible. Please someone correct me if I'm wrong. The meta_query parameter will actually be transformed into a WP_Meta_Query object, and the relation verification won't go deeper in wp-includes/meta.php, and occurs just once in the top level: if ( isset( $meta_query['relation'] ) && strtoupper( $meta_query['relation'] ) == 'OR' ) { $this->relation = 'OR'; } else { $this->relation = 'AND'; } A possible solution for this is to build your own JOIN for this query. $query = new WP_Query( array( ... 'my_meta_query' => true, 'suppress_filters' => false ) ); add_filter( 'posts_join', 'my_meta_query_posts_join', 10, 2 ); function my_meta_query_posts_join( $join, $query ) { if ( empty( $query->query_vars['my_meta_query'] ) ) return $join; global $wpdb; $new_join = " INNER JOIN {$wpdb->postmeta} pm1 ON 1=1 AND pm1.post_id = {$wpdb->posts}.ID AND pm1.meta_key = '_some_meta_key' AND pm1.meta_value = 'some_value' "; return $join . ' ' . $new_join; } And if you need further verifications and rules, you can also use the posts_where filter.
wordpress
{ "language": "en", "length": 433, "provenance": "stackexchange_00019.jsonl.gz:426500", "question_score": "30", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75079" }
[ 0.0523681640625, -0.027618408203125, 0.034820556640625, -0.060516357421875, -0.01776123046875, 0.0012531280517578125, -0.0035343170166015625, -0.00260162353515625, 0.0089569091796875, 0.0225982666015625, -0.02667236328125, -0.0106353759765625, -0.01824951171875, -0.022369384765625, -0.0289459228515625, -0.037506103515625, 0.030181884765625, -0.0188446044921875, 0.0013885498046875, -0.01335906982421875, 0.0273895263671875, -0.0012407302856445312, -0.00678253173828125, 0.032379150390625, 0.0645751953125, -0.01483917236328125, 0.039398193359375, -0.040252685546875, 0.061004638671875, 0.00716400146484375, 0.040924072265625, -0.053955078125, -0.000006258487701416016, 0.01837158203125, 0.01329803466796875, 0.041168212890625, 0.006710052490234375, 0.025390625, 0.031951904296875, 0.0164947509765625, 0.009735107421875, -0.0038509368896484375, -0.0239105224609375, 0.00835418701171875, -0.020599365234375, -0.051116943359375, 0.037261962890625, -0.0021953582763671875, 0.045074462890625, 0.044281005859375, -0.0211639404296875, 0.02703857421875, -0.024505615234375, 0.0134735107421875, -0.011871337890625, -0.0275115966796875, 0.0258941650390625, -0.08050537109375, 0.00576019287109375, 0.0094757080078125, 0.00437164306640625, -0.0009527206420898438, 0.0205841064453125, -0.002735137939453125, 0.004116058349609375, 0.0158233642578125, 0.04345703125, 0.017425537109375, 0.0205841064453125, 0.006427764892578125, -0.01338958740234375, 0.0169830322265625, -0.0041046142578125, 0.0009222030639648438, 0.0041961669921875, -0.0145111083984375, -0.0114898681640625, -0.032135009765625, 0.0242767333984375, 0.0306854248046875, -0.01806640625, -0.039764404296875, -0.04400634765625, 0.0207061767578125, 0.019439697265625, 0.061553955078125, -0.00994873046875, -0.0035381317138671875, -0.01410675048828125, -0.004119873046875, 0.0009756088256835938, -0.0498046875, -0.06298828125, 0.058563232421875, 0.034332275390625, -0.034912109375, 0.018096923828125, 0.0279083251953125, -0.0369873046875, -0.01407623291015625, -0.0002713203430175781, -0.0251007080078125, 0.0213470458984375, -0.00986480712890625, 0.02264404296875, -0.0012979507446289062, -0.03131103515625, 0.021575927734375, 0.07159423828125, 0.05419921875, -0.0023193359375, 0.03594970703125, -0.03387451171875, -0.005237579345703125, -0.0174713134765625, 0.0230560302734375, -0.0576171875, 0.001140594482421875, -0.01715087890625, 0.006252288818359375, 0.0167388916015625, 0.03857421875, -0.0078887939453125, -0.038665771484375, 0.0042877197265625, -0.002758026123046875, -0.019622802734375, -0.0333251953125, -0.004360198974609375, 0.040069580078125, -0.045867919921875, -0.00890350341796875, 0.05743408203125, 0.03472900390625, -0.007232666015625, -0.021942138671875, 0.0438232421875, -0.0267791748046875, -0.0218658447265625, 0.040130615234375, 0.00897979736328125, -0.05426025390625, -0.028350830078125, 0.00977325439453125, -0.0057373046875, 0.0379638671875, 0.063720703125, -0.01690673828125, -0.051605224609375, -0.07098388671875, -0.031982421875, 0.053314208984375, 0.0404052734375, 0.006011962890625, -0.06817626953125, 0.00305938720703125, 0.0245513916015625, -0.02734375, -0.031829833984375, -0.058624267578125, 0.0013589859008789062, 0.005649566650390625, 0.022552490234375, -0.04327392578125, -0.050567626953125, -0.00795745849609375, -0.058563232421875, -0.0142669677734375, 0.0251922607421875, 0.03546142578125, 0.035400390625, 0.0019512176513671875, 0.00800323486328125, -0.0003108978271484375, -0.009063720703125, -0.022125244140625, 0.0022029876708984375, 0.043731689453125, -0.00875091552734375, 0.006900787353515625, -0.0028247833251953125, -0.05279541015625, 0.0171356201171875, -0.0008673667907714844, -0.043609619140625, 0.04144287109375, -0.001674652099609375, 0.039794921875, 0.00025153160095214844, 0.00882720947265625, 0.042266845703125, 0.0191497802734375, -0.00789642333984375, 0.0288848876953125, 0.0198211669921875, -0.0533447265625, -0.0036487579345703125, -0.03460693359375, 0.0045928955078125, -0.022247314453125, -0.032470703125, 0.04608154296875, -0.0209503173828125, 0.03546142578125, -0.040283203125, 0.05499267578125, -0.0224609375, 0.052703857421875, -0.031036376953125, -0.007190704345703125, 0.0262603759765625, -0.006229400634765625, -0.045989990234375, 0.032257080078125, 0.0146331787109375, 0.01313018798828125, -0.0166015625, 0.0221099853515625, -0.0010509490966796875, 0.00827789306640625, 0.0028743743896484375, -0.02703857421875, -0.0004591941833496094, -0.00821685791015625, 0.0498046875, -0.03228759765625, 0.013885498046875, -0.01207733154296875, 0.05157470703125, 0.0233001708984375, -0.035186767578125, -0.0265045166015625, 0.05401611328125, 0.010284423828125, -0.0205841064453125, 0.0302276611328125, 0.0147705078125, -0.04351806640625, -0.0310211181640625, 0.045867919921875, 0.0283355712890625, 0.03692626953125, -0.002044677734375, -0.0032215118408203125, 0.0231170654296875, -0.04241943359375, 0.005588531494140625, -0.01444244384765625, -0.00627899169921875, 0.0291290283203125, 0.019775390625, -0.002246856689453125, 0.00809478759765625, 0.004322052001953125, -0.00707244873046875, 0.023681640625, -0.035491943359375, -0.0421142578125, 0.01308441162109375, 0.005645751953125, 0.0031108856201171875, -0.060272216796875, -0.013885498046875, -0.0265350341796875, 0.029388427734375, -0.01332855224609375, 0.05126953125, 0.034393310546875, 0.016204833984375, -0.045806884765625, 0.0011777877807617188, 0.01399993896484375, 0.00006157159805297852, 0.0099639892578125, -0.03558349609375, 0.0447998046875, -0.0236663818359375, 0.01361846923828125, 0.00007796287536621094, 0.01448822021484375, 0.006061553955078125, 0.0526123046875, -0.05126953125, 0.004268646240234375, -0.0246124267578125, -0.0221710205078125, -0.003231048583984375, 0.05364990234375, 0.0285491943359375, -0.017242431640625, 0.0269622802734375, 0.0182647705078125, -0.0254669189453125, 0.06494140625, -0.035736083984375, -0.0248260498046875, -0.0264129638671875, -0.041259765625, 0.05511474609375, -0.06201171875, -0.0287017822265625, 0.04510498046875, -0.0307159423828125, 0.015838623046875, -0.0012521743774414062, -0.0204925537109375, -0.0297088623046875, 0.032684326171875, 0.00676727294921875, -0.04241943359375, -0.0213623046875, 0.0146484375, 0.0184173583984375, 0.040496826171875, 0.016571044921875, -0.037445068359375, 0.003849029541015625, 0.02752685546875, -0.042694091796875, -0.0692138671875, 0.005359649658203125, -0.01030731201171875, -0.033203125, -0.0132598876953125, -0.0032634735107421875, 0.0178070068359375, -0.0180206298828125, -0.012786865234375, -0.010589599609375, -0.0139312744140625, -0.083984375, -0.06585693359375, -0.0679931640625, 0.01399993896484375, -0.004852294921875, 0.02374267578125, 0.01091766357421875, 0.0596923828125, 0.00894927978515625, -0.0653076171875, -0.0091552734375, 0.0186614990234375, -0.0357666015625, -0.0023746490478515625, 0.0254364013671875, -0.034210205078125, 0.020660400390625, -0.01216888427734375, 0.004093170166015625, 0.0283203125, -0.0103607177734375, -0.00511932373046875, 0.0384521484375, 0.005031585693359375, 0.053009033203125, -0.0166015625, -0.0721435546875, 0.044891357421875, 0.04913330078125, -0.0213775634765625, -0.032470703125, -0.02301025390625, -0.06219482421875, -0.01654052734375, 0.033905029296875, 0.01373291015625, -0.022186279296875, 0.004131317138671875, 0.029693603515625, 0.006214141845703125, -0.003520965576171875, -0.014739990234375, 0.050048828125, 0.006031036376953125, 0.041961669921875, -0.034698486328125, 0.027923583984375, -0.00778961181640625, -0.0003352165222167969, 0.01507568359375, 0.0120849609375, 0.00135040283203125, -0.004154205322265625, -0.0255889892578125, -0.026336669921875, 0.057373046875, -0.0024204254150390625, 0.025054931640625, -0.05462646484375, -0.039794921875, -0.047088623046875, 0.0777587890625, 0.03167724609375, -0.031890869140625, 0.021026611328125, 0.00592803955078125, -0.03875732421875, 0.0180816650390625, -0.0305328369140625, -0.0005178451538085938, -0.0024547576904296875, -0.021270751953125, -0.003925323486328125, -0.01024627685546875, -0.035247802734375, 0.0237884521484375, -0.0283203125, -0.00617218017578125, 0.0284271240234375, 0.016387939453125, 0.0020656585693359375, 0.021759033203125, -0.00252532958984375, 0.01236724853515625, -0.01959228515625, 0.0029506683349609375, -0.06427001953125, -0.0274658203125, -0.00388336181640625, 0.06549072265625, 0.0210418701171875, -0.046417236328125, 0.008209228515625, 0.0589599609375, 0.01983642578125, 0.04705810546875, 0.00890350341796875, -0.0222320556640625, 0.0419921875, 0.0198516845703125, 0.0156707763671875, -0.0055084228515625, -0.0274658203125, -0.0152587890625, 0.013153076171875, 0.0037975311279296875, -0.044281005859375, -0.05718994140625, -0.041595458984375, -0.00792694091796875, 0.005474090576171875, 0.01849365234375, -0.029205322265625, 0.00998687744140625, -0.0175933837890625, -0.011260986328125, 0.0019521713256835938, -0.0231781005859375, 0.03570556640625, 0.0021648406982421875, -0.0186767578125, 0.0093231201171875, 0.06793212890625, 0.01360321044921875, -0.0235595703125, -0.0628662109375, -0.0234222412109375, 0.0013761520385742188, -0.00494384765625, 0.05499267578125, -0.0028324127197265625, 0.01053619384765625, 0.0281829833984375, -0.035003662109375, 0.0303192138671875, -0.01117706298828125, 0.04888916015625, -0.000995635986328125, 0.0036220550537109375, 0.0213623046875, -0.0048980712890625, -0.0258941650390625, 0.040252685546875, -0.0010662078857421875, -0.0303497314453125, -0.037261962890625, 0.048797607421875, 0.007518768310546875, -0.0036334991455078125, -0.055694580078125, -0.048370361328125, 0.0200958251953125, -0.01788330078125, 0.01319122314453125, -0.00992584228515625, 0.00800323486328125, 0.0127410888671875, -0.005695343017578125, 0.0003993511199951172, -0.001094818115234375, 0.0321044921875, -0.03631591796875, 0.039886474609375, -0.0224151611328125, -0.0236663818359375, -0.02093505859375, 0.00942230224609375, 0.0673828125, -0.00565338134765625, -0.038482666015625, -0.01580810546875, -0.005931854248046875, -0.0071258544921875, 0.0122222900390625, -0.01302337646484375, 0.034698486328125, 0.06268310546875, 0.0004229545593261719, -0.01399993896484375, -0.0003006458282470703, 0.03399658203125, -0.0291595458984375, 0.00420379638671875, -0.0033855438232421875, 0.0013017654418945312, -0.021209716796875, 0.0850830078125, -0.0244598388671875, 0.0419921875, -0.012359619140625, -0.0087738037109375, 0.01044464111328125, 0.0290679931640625, 0.02655029296875, -0.01450347900390625, -0.0093231201171875, 0.016204833984375, 0.0218048095703125, -0.006916046142578125, -0.0018815994262695312, 0.040863037109375, 0.006168365478515625, 0.00496673583984375, 0.00582122802734375, -0.016937255859375, -0.0034122467041015625, -0.01314544677734375, -0.03680419921875, -0.001483917236328125, 0.01947021484375, -0.005474090576171875, 0.006435394287109375, -0.0022678375244140625, 0.0256195068359375, -0.008270263671875, 0.01000213623046875, -0.05126953125, 0.044189453125, -0.056182861328125, 0.0599365234375, -0.0222320556640625, -0.047027587890625, -0.0062255859375, 0.00601959228515625, -0.003604888916015625, -0.02374267578125, -0.018646240234375, -0.005950927734375, -0.035308837890625, 0.0556640625, -0.009918212890625, 0.018463134765625, -0.06884765625, 0.022796630859375, -0.04180908203125, -0.01483154296875, 0.07232666015625, 0.036651611328125, -0.0064239501953125, -0.0300445556640625, -0.046875, -0.0231475830078125, 0.0195770263671875, -0.0043792724609375, -0.00965118408203125, 0.01041412353515625, 0.0156707763671875, 0.032745361328125, -0.007770538330078125, -0.03411865234375, -0.032684326171875, -0.016021728515625, 0.006038665771484375, 0.0235748291015625, -0.006999969482421875, 0.06927490234375, -0.00934600830078125, 0.0850830078125, 0.0167999267578125, -0.005840301513671875, -0.0689697265625, -0.00576019287109375, 0.0064697265625, -0.10516357421875, -0.037933349609375, -0.01220703125, -0.031097412109375, 0.06427001953125, 0.006290435791015625, -0.007228851318359375, 0.065185546875, -0.01666259765625, 0.0075836181640625, -0.003932952880859375, -0.0255584716796875, -0.036041259765625, 0.00966644287109375, 0.059112548828125, -0.003345489501953125, 0.0184783935546875, -0.0180816650390625, -0.01580810546875, 0.0088653564453125, -0.0176849365234375, 0.004627227783203125, 0.0121917724609375, -0.03533935546875, 0.0301971435546875, 0.029083251953125, -0.00914764404296875, 0.0183258056640625, -0.0038318634033203125, -0.002925872802734375, 0.02130126953125, -0.010711669921875, 0.0440673828125, 0.005680084228515625, 0.020965576171875, -0.038421630859375, -0.0096435546875, -0.008880615234375, -0.031890869140625, 0.01715087890625, 0.00777435302734375, 0.03802490234375, -0.051513671875, 0.015899658203125, 0.01076507568359375, -0.01291656494140625, 0.0163116455078125, 0.012725830078125, 0.0219879150390625, 0.005367279052734375, -0.05145263671875, 0.0650634765625, -0.0242919921875, -0.0162506103515625, 0.0209503173828125, -0.003143310546875, -0.02032470703125, 0.0237579345703125, -0.004390716552734375, 0.0323486328125, -0.005779266357421875, -0.0272979736328125, 0.0287322998046875, -0.02777099609375, 0.0165863037109375, -0.00957489013671875, -0.007099151611328125, -0.052520751953125, 0.005489349365234375, -0.00574493408203125, -0.0213470458984375, -0.0445556640625, -0.01007080078125, 0.032562255859375, 0.04193115234375, -0.016815185546875, -0.0248565673828125, 0.024627685546875, -0.01145172119140625, -0.0271759033203125, -0.046539306640625, -0.0060882568359375, 0.007099151611328125, -0.037261962890625, 0.01496124267578125, -0.0204925537109375, -0.030670166015625, -0.004070281982421875, -0.0151214599609375, 0.025909423828125, -0.0157012939453125, -0.004756927490234375, 0.043701171875, 0.043121337890625, -0.01611328125, 0.0245208740234375, 0.02142333984375, -0.0567626953125, -0.0504150390625, 0.032379150390625, -0.04095458984375, -0.02825927734375, 0.021209716796875, -0.06793212890625, 0.1041259765625, 0.00885009765625, 0.0197601318359375, -0.00862884521484375, 0.042327880859375, -0.01132965087890625, 0.0102081298828125, -0.031982421875, 0.02532958984375, 0.0008416175842285156, 0.03564453125, -0.027679443359375, -0.01904296875, 0.01131439208984375, 0.044769287109375, 0.03271484375, 0.01465606689453125, -0.06011962890625, -0.0164337158203125, 0.02618408203125, 0.027191162109375, 0.0092315673828125, 0.04034423828125, 0.0192718505859375, 0.034576416015625, 0.07781982421875, -0.0038433074951171875, 0.0521240234375, 0.005710601806640625, -0.0115814208984375, 0.04718017578125, 0.0002722740173339844, 0.00142669677734375, -0.0220184326171875, 0.0072021484375, 0.01140594482421875, -0.02423095703125, -0.00905609130859375, -0.03668212890625, 0.005878448486328125, 0.01837158203125, -0.007755279541015625, -0.03302001953125, -0.0016813278198242188, -0.0215606689453125, 0.0278778076171875, -0.00766754150390625, 0.00574493408203125, 0.025909423828125, 0.0163421630859375, 0.0216064453125, -0.01334381103515625, 0.003131866455078125, -0.003086090087890625, -0.007396697998046875, 0.05267333984375, -0.01169586181640625, 0.0006957054138183594, -0.0679931640625, 0.02655029296875, 0.035400390625, 0.07080078125, -0.049652099609375, -0.05657958984375, -0.0043487548828125, -0.0108795166015625, 0.00875091552734375, 0.01548004150390625, -0.0006861686706542969, 0.07708740234375, 0.1007080078125, -0.0765380859375, -0.0038776397705078125, 0.031829833984375, -0.00885772705078125, -0.0196380615234375, 0.0027675628662109375, 0.005146026611328125, 0.0011625289916992188, -0.055389404296875, 0.0032825469970703125, 0.029052734375, 0.078369140625, 0.0258026123046875, 0.033843994140625, -0.0235748291015625, -0.038665771484375, 0.0230255126953125, 0.00284576416015625, -0.016571044921875, -0.0265045166015625, -0.0176849365234375, -0.0572509765625, -0.0080413818359375, 0.037353515625, 0.0134124755859375, 0.0770263671875, 0.06903076171875, 0.052886962890625, 0.0040283203125, 0.004985809326171875, 0.056671142578125, -0.02001953125, -0.007091522216796875, -0.01739501953125, 0.001636505126953125, 0.017913818359375, 0.005237579345703125, 0.0000756382942199707, 0.04351806640625, 0.008087158203125, 0.049957275390625, 0.0426025390625, 0.01422119140625, 0.034149169921875, -0.0001291036605834961, -0.01474761962890625, 0.0192413330078125, 0.06561279296875, -0.031158447265625, -0.00890350341796875, -0.0034236907958984375, -0.0171661376953125, -0.0016632080078125, 0.0235443115234375, 0.0058441162109375, -0.0083465576171875, 0.01763916015625, -0.051025390625, 0.0206451416015625, 0.040985107421875, 0.00774383544921875, -0.0140380859375, -0.01020050048828125, -0.030975341796875, -0.057159423828125, -0.0162811279296875, 0.0157623291015625, -0.0310821533203125, -0.005931854248046875, 0.01029205322265625, 0.039886474609375, -0.0079193115234375, 0.01239013671875, 0.00009542703628540039, 0.0021953582763671875, 0.0036067962646484375, 0.012115478515625, -0.0269317626953125, -0.018157958984375, -0.000988006591796875, 0.06011962890625, -0.00373077392578125, 0.058197021484375, -0.056488037109375, -0.0382080078125, 0.00014841556549072266, 0.019378662109375, -0.018402099609375, 0.03961181640625, -0.0301055908203125, 0.0188140869140625, -0.04217529296875, -0.040008544921875, 0.062347412109375, -0.006923675537109375, -0.007190704345703125, 0.018585205078125, 0.053558349609375, -0.0151824951171875, 0.03997802734375, -0.0186309814453125, 0.0831298828125, 0.041473388671875, -0.0038299560546875, 0.061676025390625, 0.0184326171875, -0.0204925537109375, 0.051177978515625, 0.015106201171875, -0.036590576171875, 0.034912109375, -0.0042266845703125, 0.0167388916015625, 0.0384521484375, 0.0293731689453125, -0.0221099853515625, -0.003307342529296875, 0.0579833984375, -0.046875, -0.0012426376342773438, 0.002292633056640625, -0.044769287109375, -0.00936126708984375, -0.003997802734375, -0.008880615234375, 0.01070404052734375, -0.057525634765625, -0.050811767578125, -0.005645751953125, 0.0256500244140625, 0.01702880859375, -0.057342529296875, 0.01222991943359375, 0.00897216796875, 0.027862548828125, 0.0175628662109375, -0.03277587890625, 0.0077362060546875, 0.014007568359375, 0.00623321533203125, 0.022796630859375, -0.0185699462890625, -0.0122222900390625, 0.01558685302734375, 0.00823974609375, 0.0029201507568359375, -0.020965576171875, -0.016265869140625, 0.05706787109375, 0.0264892578125, 0.07781982421875, 0.0401611328125, 0.0010852813720703125, -0.01010894775390625, 0.0333251953125, -0.041290283203125, -0.052215576171875, 0.0202789306640625, -0.03912353515625, -0.0212249755859375, -0.006237030029296875, 0.0164031982421875, 0.03643798828125, -0.0406494140625, -0.132080078125, 0.08172607421875, -0.0443115234375, -0.045196533203125, -0.06219482421875, -0.004474639892578125, 0.0175628662109375, -0.00042700767517089844, -0.01343536376953125, -0.0181732177734375, -0.042938232421875, 0.023162841796875, 0.0238800048828125, 0.009429931640625, 0.0086822509765625, 0.0260162353515625, -0.07562255859375, 0.025787353515625, -0.01074981689453125, 0.0152587890625, 0.0059814453125, 0.0084075927734375, -0.0114288330078125, -0.000919342041015625, -0.05316162109375, -0.030120849609375, -0.035552978515625, 0.024169921875, -0.01534271240234375, -0.0357666015625, 0.0015010833740234375, 0.0103912353515625, 0.0546875, 0.030731201171875, 0.007061004638671875, -0.049285888671875, -0.004299163818359375, -0.029296875, -0.00478363037109375, -0.016387939453125, -0.0023899078369140625, -0.031646728515625, -0.0118560791015625, -0.005313873291015625, -0.01549530029296875, -0.0033779144287109375, -0.0012445449829101562, -0.0151519775390625, -0.00640106201171875, 0.02020263671875, -0.00966644287109375, -0.01776123046875, 0.034912109375, -0.0002994537353515625, -0.035675048828125, -0.054229736328125, -0.002811431884765625, 0.0017194747924804688, -0.068359375, -0.032379150390625, 0.0010623931884765625, 0.039581298828125, -0.01042938232421875, -0.006061553955078125, 0.019256591796875, -0.0272674560546875, 0.00833892822265625, 0.0184783935546875, -0.0033855438232421875, 0.0188140869140625, 0.006404876708984375, 0.006343841552734375, -0.031890869140625, 0.049224853515625, 0.005115509033203125, 0.067138671875, 0.0208892822265625, 0.07427978515625, 0.0006074905395507812, 0.0401611328125, -0.030487060546875, -0.00353240966796875, -0.017303466796875, -0.0017986297607421875, 0.005779266357421875, 0.01763916015625, -0.023284912109375, -0.020172119140625, 0.004779815673828125, 0.060333251953125, -0.00531005859375, -0.0012874603271484375 ]
09d9e21c6a980a065683e0195183747659ff9826
Wordpress Stackexchange Q: jQuery plugin only in one page/post I've seen all the documentation in the codex, but I am doing something wrong since it doesn't work! I want to implement this jQuery plugin (https://github.com/davidcrawford/typist-jquery) in my welcome page (www.english.intermediavs.com). I've added this code in my function.php: function my_typist() { if (!is_admin()) { wp_enqueue_script('jquery'); wp_enqueue_script('jquery.typist', get_bloginfo('template_url') . '/wp-includes/js/jquery.typist.js', array('jquery'), '1.0', true); } } add_action('init', 'my_typist'); And I also introduced this code in "welcome page" by using html raw plugin: <!--raw--> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/wp-includes/js/jquery.typist.js"> jQuery(document).ready(function($) { $('#terminal').typist({ height: 300 }); $('#terminal').typist('prompt') .wait(1500) .typist('type', 'greet') .typist('echo', 'Hello, world!') }); </script> <!--/raw--> PS: I am using the plugin Use Google libraries as well. links: http://codex.wordpress.org/Using_Javascript http://codex.wordpress.org/Function_Reference/wp_enqueue_script A: You are not specifying the correct location of your JS file. Your file is in: http://www.english.intermediavs.com/wp-includes/js/ but this: get_bloginfo('template_url') . '/wp-includes/js/jquery.typist.js' won't link to that, it tries to load a wp-includes folder inside your current theme's directory, you want this instead: home_url() . '/wp-includes/js/jquery.typist.js'
Q: jQuery plugin only in one page/post I've seen all the documentation in the codex, but I am doing something wrong since it doesn't work! I want to implement this jQuery plugin (https://github.com/davidcrawford/typist-jquery) in my welcome page (www.english.intermediavs.com). I've added this code in my function.php: function my_typist() { if (!is_admin()) { wp_enqueue_script('jquery'); wp_enqueue_script('jquery.typist', get_bloginfo('template_url') . '/wp-includes/js/jquery.typist.js', array('jquery'), '1.0', true); } } add_action('init', 'my_typist'); And I also introduced this code in "welcome page" by using html raw plugin: <!--raw--> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/wp-includes/js/jquery.typist.js"> jQuery(document).ready(function($) { $('#terminal').typist({ height: 300 }); $('#terminal').typist('prompt') .wait(1500) .typist('type', 'greet') .typist('echo', 'Hello, world!') }); </script> <!--/raw--> PS: I am using the plugin Use Google libraries as well. links: http://codex.wordpress.org/Using_Javascript http://codex.wordpress.org/Function_Reference/wp_enqueue_script A: You are not specifying the correct location of your JS file. Your file is in: http://www.english.intermediavs.com/wp-includes/js/ but this: get_bloginfo('template_url') . '/wp-includes/js/jquery.typist.js' won't link to that, it tries to load a wp-includes folder inside your current theme's directory, you want this instead: home_url() . '/wp-includes/js/jquery.typist.js' A: If you only want to use the library "jquery.typist" on one page you could just add it by the conditional is_page() but if you want to use it on more than one page you should just minifyi all your js-files into a single one and compress it and cache it. It is better to use one single js-file witch is compressed and cached than use many single files. And it also looks like you have put the file in /wp-includes/js ? it should be in your theme-root folder. Lets say your structure is themes/mytheme in mytheme you should have a js folder. if so the code could look like this: function wpse_75149() { // add the id on the page whare you want the script if ( is_page('123') ) { wp_enqueue_script('jquery'); wp_enqueue_script('jquery.typist', get_template_directory_uri() . '/js/jquery.typist.js', array('jquery'), '1.0', true); wp_enqueue_script('custom-script', get_template_directory_uri() . '/js/myscript.js', array('jquery'); ); } } // load js in footer add_action('wp_footer', 'wpse_75149'); Create a js file called myscript.js in your theme/js folder and add: jQuery(document).ready(function($) { $('#terminal').typist({ height: 300 }); $('#terminal').typist('prompt') .wait(1500) .typist('type', 'greet') .typist('echo', 'Hello, world!') }); http://codex.wordpress.org/Function_Reference/is_page - conditional to print the script on right page http://codex.wordpress.org/Function_Reference/wp_enqueue_script - how to load scripts
wordpress
{ "language": "en", "length": 354, "provenance": "stackexchange_00019.jsonl.gz:426519", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75149" }
[ 0.0214996337890625, -0.0111846923828125, -0.03729248046875, -0.00798797607421875, -0.006443023681640625, -0.033111572265625, 0.007049560546875, -0.000005602836608886719, 0.0264129638671875, 0.0033893585205078125, -0.039825439453125, -0.00746917724609375, -0.02117919921875, -0.011383056640625, -0.004032135009765625, -0.0299835205078125, 0.0599365234375, -0.040435791015625, 0.0186920166015625, -0.005390167236328125, 0.0235443115234375, 0.0360107421875, 0.0113067626953125, 0.07305908203125, 0.024017333984375, 0.046630859375, 0.10528564453125, 0.01320648193359375, 0.0004203319549560547, -0.005664825439453125, 0.03570556640625, -0.049774169921875, 0.036163330078125, 0.0285797119140625, -0.0606689453125, -0.0037784576416015625, 0.0264739990234375, 0.0008387565612792969, -0.0240020751953125, 0.04730224609375, -0.004852294921875, 0.0242156982421875, -0.00276947021484375, 0.040557861328125, -0.024078369140625, -0.052764892578125, -0.0025482177734375, -0.02215576171875, 0.0252685546875, -0.031951904296875, 0.0010395050048828125, -0.0205841064453125, 0.004329681396484375, 0.01288604736328125, -0.024688720703125, 0.021484375, -0.016204833984375, -0.08038330078125, 0.0028095245361328125, 0.0833740234375, 0.0562744140625, -0.021881103515625, -0.0113372802734375, -0.0234222412109375, -0.0221710205078125, -0.004791259765625, -0.0288238525390625, 0.0013837814331054688, 0.0268096923828125, -0.0004115104675292969, 0.00580596923828125, -0.0028934478759765625, 0.005096435546875, -0.0194854736328125, -0.046722412109375, 0.01132965087890625, -0.00954437255859375, -0.010650634765625, 0.039581298828125, -0.0472412109375, 0.0184783935546875, -0.002300262451171875, -0.0131988525390625, -0.045013427734375, 0.042877197265625, -0.00787353515625, 0.00817108154296875, -0.01910400390625, -0.050750732421875, -0.045257568359375, -0.035980224609375, -0.0023632049560546875, -0.05938720703125, -0.005443572998046875, -0.01702880859375, 0.00728607177734375, 0.0199432373046875, 0.058746337890625, -0.01271820068359375, 0.0357666015625, 0.0033168792724609375, -0.035247802734375, 0.04278564453125, -0.051116943359375, 0.0216522216796875, 0.06170654296875, -0.00557708740234375, 0.002285003662109375, 0.036956787109375, -0.006610870361328125, 0.0007643699645996094, -0.0311431884765625, 0.024017333984375, 0.0009860992431640625, -0.005146026611328125, -0.0517578125, -0.053558349609375, 0.0345458984375, -0.005435943603515625, 0.01007080078125, 0.0220184326171875, 0.022857666015625, 0.0011730194091796875, -0.0036220550537109375, 0.01470184326171875, 0.01209259033203125, -0.01390838623046875, -0.034454345703125, -0.0078277587890625, -0.00018513202667236328, 0.00585174560546875, 0.022247314453125, 0.0364990234375, 0.0290985107421875, -0.01322174072265625, -0.006763458251953125, 0.047515869140625, 0.002765655517578125, 0.007282257080078125, 0.005832672119140625, -0.01434326171875, -0.0194244384765625, 0.00864410400390625, -0.0039005279541015625, -0.051605224609375, -0.0145416259765625, -0.00482177734375, 0.0244140625, -0.0009026527404785156, -0.0278778076171875, 0.0021953582763671875, -0.0093994140625, 0.03387451171875, 0.005718231201171875, 0.001438140869140625, -0.026214599609375, 0.0384521484375, -0.02813720703125, -0.0086669921875, -0.041412353515625, 0.007724761962890625, -0.0004062652587890625, 0.01070404052734375, -0.00919342041015625, -0.0156097412109375, -0.0135345458984375, -0.019287109375, -0.0006093978881835938, 0.0137786865234375, 0.041748046875, -0.03216552734375, 0.0205841064453125, 0.036407470703125, 0.011444091796875, -0.01171112060546875, -0.004161834716796875, -0.04315185546875, 0.0266571044921875, 0.05584716796875, -0.0264739990234375, -0.005695343017578125, -0.0302581787109375, 0.07403564453125, -0.00673675537109375, -0.04656982421875, 0.04180908203125, 0.006011962890625, 0.044403076171875, -0.005374908447265625, 0.005153656005859375, 0.038299560546875, 0.027130126953125, 0.007511138916015625, 0.027618408203125, 0.002838134765625, -0.06353759765625, -0.0099029541015625, -0.013885498046875, -0.0080718994140625, 0.0015172958374023438, 0.0300445556640625, -0.013946533203125, -0.00241851806640625, 0.0221405029296875, -0.095458984375, 0.0284881591796875, -0.056732177734375, 0.0280303955078125, 0.032257080078125, 0.0099945068359375, -0.01788330078125, 0.0004222393035888672, 0.0098876953125, -0.060821533203125, -0.04486083984375, 0.0020046234130859375, -0.040924072265625, 0.0615234375, 0.002704620361328125, 0.0748291015625, 0.018829345703125, -0.046478271484375, 0.007625579833984375, -0.025543212890625, 0.0016069412231445312, 0.01953125, -0.035919189453125, -0.00995635986328125, -0.0200347900390625, -0.007465362548828125, -0.00930023193359375, 0.064453125, -0.005138397216796875, 0.025115966796875, -0.020721435546875, -0.01666259765625, 0.000492095947265625, -0.024261474609375, 0.01377105712890625, 0.031219482421875, 0.0382080078125, 0.0235595703125, -0.04254150390625, -0.042755126953125, 0.04681396484375, -0.0340576171875, 0.005107879638671875, -0.0191650390625, -0.0052337646484375, 0.0236358642578125, -0.05731201171875, 0.0178680419921875, 0.016510009765625, -0.03887939453125, 0.01224517822265625, 0.05047607421875, -0.021209716796875, -0.002933502197265625, -0.0269012451171875, -0.003696441650390625, 0.02679443359375, -0.032196044921875, -0.031585693359375, -0.0175933837890625, 0.06378173828125, -0.0033893585205078125, 0.035675048828125, 0.0164794921875, -0.03564453125, 0.018402099609375, 0.023468017578125, -0.0045318603515625, -0.007091522216796875, 0.03759765625, 0.044586181640625, -0.0040435791015625, -0.07000732421875, -0.0022182464599609375, 0.0469970703125, 0.0247955322265625, 0.021331787109375, -0.002346038818359375, -0.01898193359375, 0.0011348724365234375, 0.0230712890625, -0.0073089599609375, 0.0222930908203125, 0.038238525390625, 0.047149658203125, 0.0292205810546875, 0.04302978515625, 0.0186004638671875, -0.002288818359375, 0.04791259765625, -0.0098114013671875, -0.0254058837890625, 0.0799560546875, -0.037567138671875, 0.0200347900390625, -0.038818359375, 0.06646728515625, 0.046905517578125, -0.01381683349609375, -0.0024356842041015625, -0.023101806640625, -0.0102386474609375, -0.03228759765625, 0.0285797119140625, -0.004787445068359375, -0.06640625, 0.007518768310546875, 0.044158935546875, 0.0186614990234375, 0.0498046875, -0.007904052734375, -0.04620361328125, 0.01383209228515625, 0.025787353515625, -0.0792236328125, -0.09564208984375, -0.00922393798828125, -0.134033203125, 0.0214385986328125, -0.031768798828125, -0.06817626953125, -0.0009646415710449219, 0.025299072265625, 0.016571044921875, -0.058349609375, 0.03216552734375, -0.01236724853515625, -0.03533935546875, -0.04345703125, -0.033782958984375, -0.01180267333984375, 0.00862884521484375, 0.01378631591796875, -0.00982666015625, 0.0005435943603515625, -0.050018310546875, 0.01351165771484375, 0.050201416015625, -0.0218353271484375, 0.00708770751953125, 0.00887298583984375, -0.0098114013671875, -0.0284423828125, 0.00620269775390625, -0.018035888671875, 0.0030517578125, -0.013763427734375, -0.01001739501953125, -0.0253753662109375, -0.01371002197265625, -0.01406097412109375, 0.0694580078125, 0.037353515625, -0.0374755859375, 0.0173797607421875, -0.053466796875, 0.0284271240234375, -0.0015420913696289062, -0.01456451416015625, 0.022308349609375, -0.0247650146484375, -0.015777587890625, 0.0068206787109375, 0.0148468017578125, 0.0159149169921875, 0.0221710205078125, 0.0313720703125, -0.00315093994140625, 0.035888671875, -0.039642333984375, -0.033538818359375, -0.053375244140625, -0.00954437255859375, -0.0289764404296875, 0.00750732421875, -0.016693115234375, 0.00945281982421875, 0.00897216796875, -0.0237884521484375, 0.00612640380859375, -0.0295257568359375, 0.033905029296875, 0.0038051605224609375, 0.01094818115234375, -0.002613067626953125, -0.027191162109375, 0.01413726806640625, 0.0751953125, -0.0238037109375, 0.02001953125, -0.0014209747314453125, -0.0001958608627319336, -0.04144287109375, -0.055755615234375, -0.08544921875, 0.00934600830078125, -0.07769775390625, -0.0007619857788085938, -0.00023293495178222656, -0.0218658447265625, -0.0223388671875, 0.03521728515625, -0.0445556640625, -0.0296173095703125, 0.01523590087890625, -0.044677734375, 0.0024814605712890625, -0.042572021484375, -0.0341796875, -0.039459228515625, 0.00644683837890625, -0.05712890625, -0.048797607421875, -0.01322174072265625, -0.0274505615234375, 0.0484619140625, 0.0312347412109375, -0.042999267578125, 0.01213836669921875, 0.05157470703125, 0.006595611572265625, 0.00548553466796875, 0.0169677734375, -0.0060577392578125, 0.0266571044921875, 0.035491943359375, 0.0278472900390625, -0.00811767578125, 0.0164031982421875, 0.03436279296875, -0.02752685546875, 0.0274505615234375, -0.01497650146484375, -0.0204925537109375, 0.02020263671875, -0.052520751953125, -0.0250701904296875, -0.017578125, -0.016815185546875, 0.0076446533203125, 0.0017871856689453125, -0.007305145263671875, -0.0186004638671875, -0.0174560546875, -0.035736083984375, -0.029510498046875, -0.0210723876953125, 0.0301055908203125, -0.001312255859375, 0.02587890625, 0.020111083984375, -0.0027408599853515625, 0.0031566619873046875, 0.042327880859375, 0.02996826171875, 0.0062408447265625, 0.0207366943359375, -0.027557373046875, 0.01318359375, 0.044708251953125, -0.00836181640625, 0.005451202392578125, 0.0443115234375, 0.018463134765625, -0.027618408203125, 0.021270751953125, 0.052764892578125, -0.05810546875, -0.01910400390625, -0.0107879638671875, 0.00704193115234375, -0.01110076904296875, -0.003360748291015625, 0.0018644332885742188, -0.0018224716186523438, 0.005462646484375, -0.0306243896484375, -0.0034236907958984375, -0.007495880126953125, 0.058197021484375, 0.0215301513671875, -0.002689361572265625, 0.01248931884765625, 0.0489501953125, -0.00461578369140625, 0.06671142578125, 0.060302734375, 0.0159759521484375, 0.0191497802734375, 0.059173583984375, -0.0037670135498046875, -0.009185791015625, 0.00600433349609375, -0.00553131103515625, 0.0291595458984375, -0.00670623779296875, -0.0279998779296875, 0.01055145263671875, 0.03265380859375, -0.05059814453125, 0.035797119140625, -0.006053924560546875, 0.0382080078125, -0.0124053955078125, -0.0168304443359375, 0.088134765625, -0.01178741455078125, 0.0012502670288085938, 0.0103607177734375, -0.0153961181640625, 0.0021820068359375, -0.00014865398406982422, 0.019805908203125, 0.0168914794921875, -0.0161285400390625, -0.01166534423828125, 0.0293426513671875, 0.00605010986328125, 0.0305633544921875, -0.005580902099609375, 0.029815673828125, -0.0156402587890625, 0.0297393798828125, 0.00756072998046875, -0.04437255859375, -0.04559326171875, 0.039215087890625, 0.05267333984375, -0.01361846923828125, 0.00740814208984375, -0.00714111328125, 0.020538330078125, -0.03509521484375, 0.0219573974609375, 0.005870819091796875, -0.001689910888671875, -0.0457763671875, -0.004299163818359375, 0.0653076171875, 0.043975830078125, 0.016448974609375, -0.003650665283203125, -0.0253448486328125, 0.004886627197265625, -0.0290985107421875, 0.0096893310546875, -0.03900146484375, -0.040679931640625, 0.035369873046875, -0.00019311904907226562, -0.040252685546875, -0.04864501953125, -0.0215301513671875, -0.002338409423828125, 0.015472412109375, 0.018707275390625, -0.0006556510925292969, 0.00859832763671875, -0.0377197265625, 0.0010318756103515625, -0.04473876953125, -0.0073699951171875, 0.0660400390625, 0.0249481201171875, -0.046905517578125, -0.01483917236328125, -0.0653076171875, -0.033660888671875, -0.01386260986328125, -0.03515625, -0.05511474609375, -0.0010089874267578125, -0.030029296875, 0.011322021484375, -0.01403045654296875, 0.0303802490234375, -0.013092041015625, 0.01904296875, -0.0189361572265625, 0.04473876953125, -0.05828857421875, 0.0550537109375, 0.00604248046875, 0.0001659393310546875, -0.016754150390625, 0.0418701171875, 0.054534912109375, -0.01788330078125, -0.0008301734924316406, -0.05712890625, 0.0104217529296875, 0.0056304931640625, -0.01107025146484375, -0.01247406005859375, 0.0212554931640625, 0.00823974609375, 0.004974365234375, 0.0267486572265625, 0.0200653076171875, 0.010986328125, -0.02471923828125, 0.055450439453125, -0.01080322265625, 0.047576904296875, -0.01404571533203125, 0.030792236328125, 0.01139068603515625, -0.0203704833984375, 0.0214080810546875, -0.0107421875, 0.0296783447265625, 0.0157012939453125, 0.011138916015625, 0.0233612060546875, 0.06048583984375, -0.00951385498046875, 0.0304412841796875, 0.0299224853515625, 0.00722503662109375, 0.023193359375, -0.007843017578125, -0.0185546875, 0.032196044921875, 0.01093292236328125, -0.024505615234375, -0.00681304931640625, -0.0111541748046875, -0.01103973388671875, -0.0298614501953125, 0.037506103515625, 0.004482269287109375, -0.0504150390625, 0.006656646728515625, 0.0191802978515625, -0.01371002197265625, -0.06634521484375, -0.0213165283203125, -0.0179443359375, -0.00908660888671875, 0.039306640625, 0.023681640625, -0.004398345947265625, 0.0430908203125, 0.0229949951171875, -0.0364990234375, -0.00336456298828125, -0.056243896484375, 0.00038313865661621094, -0.06219482421875, 0.0135498046875, 0.0282440185546875, -0.0299072265625, 0.0050201416015625, 0.004852294921875, 0.0285186767578125, -0.03778076171875, -0.031280517578125, 0.037109375, -0.026702880859375, -0.03192138671875, 0.01727294921875, 0.05224609375, 0.00693511962890625, 0.06048583984375, -0.0159912109375, 0.033111572265625, 0.0262298583984375, 0.0024852752685546875, 0.0218048095703125, -0.027130126953125, 0.007007598876953125, 0.0007791519165039062, -0.07476806640625, 0.00762176513671875, -0.0236968994140625, 0.0037021636962890625, -0.00614166259765625, -0.0244293212890625, 0.03363037109375, 0.0129852294921875, -0.02801513671875, 0.02630615234375, 0.0197296142578125, -0.01122283935546875, -0.005947113037109375, 0.031524658203125, -0.067138671875, -0.022308349609375, 0.0264892578125, -0.0141143798828125, -0.029693603515625, 0.0036258697509765625, -0.03497314453125, 0.134033203125, 0.0193939208984375, -0.022705078125, 0.0118560791015625, 0.0745849609375, -0.0634765625, 0.038848876953125, -0.01148223876953125, 0.0109100341796875, -0.052886962890625, 0.036346435546875, -0.006805419921875, 0.03216552734375, -0.002887725830078125, -0.0106353759765625, -0.0020751953125, -0.0026988983154296875, 0.0052947998046875, 0.01549530029296875, 0.037933349609375, 0.026580810546875, 0.001735687255859375, 0.00991058349609375, 0.032806396484375, -0.020660400390625, 0.01727294921875, 0.00629425048828125, 0.021514892578125, -0.036224365234375, -0.0052337646484375, 0.07000732421875, 0.0131378173828125, -0.009918212890625, 0.00782012939453125, -0.002017974853515625, -0.083984375, 0.034637451171875, 0.044525146484375, 0.0435791015625, 0.01215362548828125, 0.0251312255859375, 0.02545166015625, 0.02325439453125, 0.0011386871337890625, -0.01360321044921875, 0.038360595703125, 0.0087432861328125, -0.0038700103759765625, 0.0204925537109375, 0.0131988525390625, 0.0136260986328125, 0.0196685791015625, -0.00640869140625, 0.035125732421875, 0.004177093505859375, 0.01708984375, 0.0002332925796508789, 0.01343536376953125, -0.0467529296875, -0.024932861328125, 0.03948974609375, 0.0248260498046875, -0.0206146240234375, -0.063720703125, -0.01131439208984375, 0.01314544677734375, 0.049041748046875, -0.00875091552734375, 0.025543212890625, -0.00827789306640625, 0.0401611328125, -0.0149688720703125, -0.0084381103515625, 0.01245880126953125, 0.003246307373046875, 0.00794219970703125, 0.0144805908203125, 0.007114410400390625, 0.0150909423828125, -0.0367431640625, 0.0216827392578125, 0.03717041015625, 0.0350341796875, -0.043609619140625, 0.0848388671875, -0.00949859619140625, -0.004650115966796875, -0.026947021484375, 0.0238800048828125, 0.037445068359375, 0.01251220703125, 0.00930023193359375, 0.0618896484375, -0.00464630126953125, 0.01474761962890625, 0.007167816162109375, 0.030975341796875, 0.007904052734375, 0.01861572265625, 0.0205841064453125, 0.0008983612060546875, 0.040496826171875, -0.005340576171875, -0.025970458984375, 0.021820068359375, 0.005649566650390625, 0.01271820068359375, -0.00334930419921875, 0.0135650634765625, 0.0908203125, -0.0232696533203125, -0.039031982421875, 0.04168701171875, -0.00995635986328125, -0.041839599609375, 0.04998779296875, -0.0201416015625, 0.1343994140625, -0.004093170166015625, -0.053253173828125, -0.005153656005859375, -0.02398681640625, -0.036651611328125, 0.025970458984375, 0.040496826171875, -0.007556915283203125, 0.0252532958984375, 0.0682373046875, -0.017425537109375, -0.0047149658203125, -0.00525665283203125, 0.026336669921875, -0.03759765625, 0.01399993896484375, 0.01015472412109375, -0.0180816650390625, -0.009613037109375, -0.003086090087890625, 0.01100921630859375, 0.0029144287109375, -0.00339508056640625, 0.003360748291015625, 0.0164794921875, 0.02569580078125, -0.006317138671875, 0.0150299072265625, 0.0166168212890625, -0.01593017578125, -0.014434814453125, 0.007465362548828125, -0.007282257080078125, -0.04583740234375, 0.0684814453125, -0.0093841552734375, 0.0361328125, 0.0587158203125, -0.0119476318359375, -0.00839996337890625, -0.0011224746704101562, 0.002086639404296875, -0.03619384765625, -0.0096588134765625, -0.03643798828125, -0.027801513671875, 0.040771484375, 0.007495880126953125, -0.00200653076171875, 0.0181427001953125, 0.01019287109375, -0.044891357421875, 0.013427734375, -0.0204315185546875, -0.01611328125, 0.033416748046875, 0.05511474609375, 0.0269317626953125, -0.0005092620849609375, -0.01453399658203125, -0.027435302734375, 0.03839111328125, -0.034576416015625, -0.03656005859375, -0.007305145263671875, 0.01708984375, 0.01508331298828125, 0.0116729736328125, -0.03271484375, -0.00323486328125, 0.0238037109375, -0.01407623291015625, -0.0016660690307617188, 0.0286712646484375, -0.037872314453125, -0.0552978515625, 0.048492431640625, 0.0183868408203125, 0.012359619140625, 0.0071563720703125, -0.0169219970703125, 0.0126495361328125, 0.0225372314453125, -0.004482269287109375, -0.03656005859375, 0.0281829833984375, -0.04522705078125, 0.03729248046875, -0.00449371337890625, 0.050079345703125, -0.03826904296875, -0.018096923828125, -0.0384521484375, -0.045196533203125, -0.038604736328125, 0.0706787109375, -0.028106689453125, 0.030181884765625, 0.0643310546875, -0.0338134765625, -0.005092620849609375, 0.02410888671875, 0.040802001953125, 0.07861328125, -0.023773193359375, -0.01367950439453125, 0.00972747802734375, 0.005245208740234375, -0.01535797119140625, -0.0537109375, -0.004543304443359375, -0.03753662109375, 0.00649261474609375, -0.0245513916015625, 0.0005559921264648438, -0.01367950439453125, -0.043609619140625, -0.06597900390625, 0.020965576171875, 0.0033321380615234375, -0.035736083984375, -0.02215576171875, -0.0036773681640625, 0.003932952880859375, 0.03424072265625, -0.00792694091796875, -0.031341552734375, -0.05242919921875, 0.0188751220703125, 0.013580322265625, 0.0404052734375, 0.0278472900390625, -0.0198516845703125, -0.005794525146484375, 0.0030040740966796875, 0.01360321044921875, -0.0009212493896484375, -0.0298919677734375, 0.029052734375, -0.00475311279296875, 0.038818359375, -0.0014743804931640625, -0.045928955078125, -0.00040078163146972656, -0.0223541259765625, -0.00818634033203125, -0.0259552001953125, -0.0157318115234375, 0.00937652587890625, 0.053131103515625, 0.020721435546875, 0.0031585693359375, -0.032318115234375, -0.00405120849609375, -0.0178985595703125, 0.0172119140625, 0.0219879150390625, 0.0088348388671875, -0.03607177734375, 0.01189422607421875, 0.031280517578125, 0.005535125732421875, -0.0231475830078125, 0.001178741455078125, -0.013153076171875, -0.020416259765625, 0.031158447265625, 0.006771087646484375, 0.0113372802734375, 0.004955291748046875, 0.0985107421875, -0.060699462890625, -0.020416259765625, 0.06298828125, -0.01337432861328125, 0.04022216796875, 0.05450439453125, -0.01052093505859375, 0.038116455078125, -0.005767822265625, 0.005584716796875, 0.005340576171875, 0.0238189697265625, -0.021881103515625, 0.01197052001953125, -0.023529052734375, 0.004688262939453125, 0.017059326171875, 0.017425537109375, -0.0203094482421875, -0.023468017578125, 0.0219268798828125, -0.07708740234375, -0.041015625, -0.0017576217651367188, -0.029449462890625, 0.006298065185546875, 0.0277557373046875, 0.01067352294921875, 0.0938720703125, -0.005374908447265625, -0.005153656005859375, 0.010528564453125, -0.048095703125, -0.0440673828125, 0.0170745849609375, 0.01049041748046875, -0.0146636962890625, 0.01385498046875 ]
f9dc7ed892fb7ef049e2a85a6e730f8ec0008c1b
Wordpress Stackexchange Q: No Styling for the datepicker in Wordpress admin I'm developing a plugin for Wordpress and I need a datepicker. So I enqueue the jquery and jquery-ui wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-datepicker'); and called the datepicker jQuery(document).ready(function($){ $('#date').datepicker({}); }); It worked pretty well, however my datepicker has no style at all. Anyone knows how to fix that? A: Here ya go ... try this: /* add jquery ui datepicker and theme */ global $wp_scripts; wp_enqueue_script('jquery-ui-datepicker'); $ui = $wp_scripts->query('jquery-ui-core'); $url = "https://ajax.aspnetcdn.com/ajax/jquery.ui/{$ui->ver}/themes/redmond/jquery.ui.all.css"; wp_enqueue_style('jquery-ui-redmond', $url, false, $ui->ver); This is what I use in my plugin to load a theme. That CDN has all the basic jquery-ui themes. Hope this helps ...
Q: No Styling for the datepicker in Wordpress admin I'm developing a plugin for Wordpress and I need a datepicker. So I enqueue the jquery and jquery-ui wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-datepicker'); and called the datepicker jQuery(document).ready(function($){ $('#date').datepicker({}); }); It worked pretty well, however my datepicker has no style at all. Anyone knows how to fix that? A: Here ya go ... try this: /* add jquery ui datepicker and theme */ global $wp_scripts; wp_enqueue_script('jquery-ui-datepicker'); $ui = $wp_scripts->query('jquery-ui-core'); $url = "https://ajax.aspnetcdn.com/ajax/jquery.ui/{$ui->ver}/themes/redmond/jquery.ui.all.css"; wp_enqueue_style('jquery-ui-redmond', $url, false, $ui->ver); This is what I use in my plugin to load a theme. That CDN has all the basic jquery-ui themes. Hope this helps ...
wordpress
{ "language": "en", "length": 106, "provenance": "stackexchange_00019.jsonl.gz:426520", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75153" }
[ 0.016265869140625, -0.00980377197265625, -0.055938720703125, -0.01396942138671875, 0.00817108154296875, -0.0633544921875, 0.026763916015625, 0.01454925537109375, 0.0105133056640625, 0.019317626953125, 0.007633209228515625, -0.0015735626220703125, -0.01404571533203125, -0.034454345703125, -0.0067901611328125, -0.01323699951171875, 0.03277587890625, -0.046142578125, -0.014801025390625, -0.01184844970703125, 0.0007357597351074219, 0.0033435821533203125, 0.004669189453125, 0.07183837890625, 0.034759521484375, 0.0006785392761230469, 0.046173095703125, 0.01016998291015625, 0.03485107421875, 0.0133514404296875, 0.04254150390625, -0.073486328125, 0.007904052734375, 0.00791168212890625, 0.01708984375, 0.0019512176513671875, 0.0108184814453125, 0.012237548828125, 0.03387451171875, 0.006435394287109375, 0.01174163818359375, -0.00568389892578125, -0.026214599609375, 0.01523590087890625, -0.05426025390625, -0.031890869140625, 0.02508544921875, 0.00799560546875, 0.00199127197265625, 0.0089569091796875, 0.023101806640625, -0.03509521484375, 0.036285400390625, -0.059326171875, -0.0247039794921875, 0.0002065896987915039, -0.0236968994140625, -0.016754150390625, 0.0179443359375, 0.06524658203125, -0.005584716796875, -0.01387786865234375, -0.00359344482421875, -0.042449951171875, -0.006397247314453125, -0.001220703125, -0.00896453857421875, 0.0133209228515625, -0.049407958984375, 0.00937652587890625, 0.04071044921875, -0.04498291015625, 0.0035495758056640625, -0.041839599609375, 0.0261383056640625, 0.0130615234375, -0.016876220703125, -0.0132598876953125, 0.0170135498046875, 0.002101898193359375, 0.0322265625, 0.0262908935546875, -0.0662841796875, -0.0203704833984375, 0.048065185546875, 0.005702972412109375, -0.0106964111328125, -0.03802490234375, -0.037994384765625, -0.035064697265625, -0.0196533203125, -0.004573822021484375, -0.0633544921875, -0.005413055419921875, -0.002681732177734375, -0.021148681640625, 0.046234130859375, 0.051666259765625, 0.01531982421875, -0.0079345703125, 0.0111846923828125, -0.0335693359375, 0.01103973388671875, -0.0211181640625, -0.016632080078125, 0.062103271484375, 0.04302978515625, 0.06463623046875, 0.0141448974609375, -0.0193023681640625, 0.01404571533203125, 0.01203155517578125, 0.0093536376953125, -0.0008769035339355469, -0.00894927978515625, -0.0284271240234375, -0.04351806640625, 0.0204010009765625, -0.0115203857421875, 0.0012063980102539062, -0.00970458984375, 0.02032470703125, -0.06134033203125, -0.0085601806640625, 0.00377655029296875, -0.0195465087890625, 0.0184478759765625, 0.01441192626953125, -0.0087127685546875, 0.006778717041015625, -0.0250701904296875, 0.013092041015625, 0.04302978515625, 0.031402587890625, 0.00853729248046875, -0.01107025146484375, 0.07525634765625, -0.04620361328125, -0.01111602783203125, 0.00467681884765625, 0.01041412353515625, 0.022430419921875, 0.028411865234375, -0.0172576904296875, -0.039306640625, 0.0047149658203125, -0.0015058517456054688, 0.015838623046875, -0.0005197525024414062, -0.0477294921875, 0.006237030029296875, -0.015655517578125, 0.0355224609375, 0.03875732421875, -0.0202178955078125, 0.0026702880859375, 0.0797119140625, -0.0494384765625, -0.051300048828125, -0.06207275390625, -0.003131866455078125, 0.0252532958984375, -0.0223236083984375, -0.02777099609375, -0.0167388916015625, -0.056549072265625, 0.0241851806640625, 0.03424072265625, 0.0229339599609375, 0.007175445556640625, -0.0260467529296875, -0.0121612548828125, 0.0321044921875, 0.0099334716796875, -0.0109405517578125, 0.0294342041015625, 0.0224151611328125, -0.011383056640625, 0.03375244140625, 0.019439697265625, -0.0273895263671875, -0.0341796875, 0.059906005859375, -0.033660888671875, -0.05108642578125, 0.036865234375, 0.0074462890625, 0.034454345703125, 0.0164947509765625, -0.0024318695068359375, 0.049896240234375, 0.03466796875, -0.00681304931640625, -0.0254669189453125, -0.023773193359375, 0.0167236328125, -0.0311279296875, 0.0279083251953125, -0.0239715576171875, 0.004791259765625, 0.0277862548828125, 0.0259246826171875, -0.0184783935546875, 0.004241943359375, -0.04437255859375, 0.01552581787109375, -0.01134490966796875, 0.0255584716796875, -0.01045989990234375, 0.016632080078125, 0.024566650390625, 0.0266265869140625, -0.042999267578125, -0.0086212158203125, -0.004138946533203125, 0.037567138671875, 0.026611328125, 0.0643310546875, -0.0021152496337890625, 0.01214599609375, 0.01727294921875, -0.061309814453125, 0.0171661376953125, 0.054351806640625, 0.022216796875, -0.00479888916015625, -0.00399017333984375, -0.0230560302734375, 0.047637939453125, 0.00844573974609375, 0.018829345703125, 0.0164337158203125, 0.037353515625, 0.044921875, -0.0189208984375, 0.007160186767578125, 0.007266998291015625, -0.018524169921875, 0.007770538330078125, 0.021759033203125, 0.023834228515625, 0.075439453125, -0.00531768798828125, 0.017059326171875, 0.029449462890625, -0.046783447265625, 0.0133209228515625, -0.00411224365234375, -0.001041412353515625, 0.0011196136474609375, 0.00551605224609375, -0.0182647705078125, 0.0254058837890625, -0.032806396484375, -0.004787445068359375, 0.0311279296875, -0.02178955078125, 0.0096893310546875, -0.034027099609375, 0.010162353515625, -0.0015840530395507812, -0.0029144287109375, -0.01788330078125, -0.005336761474609375, 0.0297393798828125, -0.005954742431640625, 0.0216217041015625, 0.0226287841796875, -0.004913330078125, -0.0191192626953125, 0.015960693359375, -0.035675048828125, -0.0015249252319335938, 0.00910186767578125, 0.0274505615234375, 0.004779815673828125, -0.02471923828125, -0.006427764892578125, 0.0285797119140625, 0.0015287399291992188, -0.015655517578125, 0.0178680419921875, 0.0126800537109375, -0.0234375, 0.006267547607421875, -0.00640869140625, 0.01551055908203125, -0.029815673828125, 0.07958984375, 0.04315185546875, 0.0743408203125, -0.026702880859375, -0.020050048828125, 0.0257720947265625, 0.033294677734375, -0.061309814453125, 0.0222625732421875, 0.00934600830078125, 0.01088714599609375, 0.0035495758056640625, 0.010589599609375, 0.032989501953125, 0.0099639892578125, -0.0124053955078125, 0.007598876953125, -0.0328369140625, 0.0168914794921875, -0.0036983489990234375, -0.01136016845703125, 0.01381683349609375, -0.06591796875, 0.04620361328125, 0.044769287109375, 0.01146697998046875, 0.046478271484375, -0.032012939453125, 0.0205230712890625, 0.03607177734375, -0.08221435546875, -0.09625244140625, -0.117431640625, -0.07366943359375, 0.02734375, -0.0004305839538574219, -0.0028057098388671875, 0.0256195068359375, 0.0293731689453125, 0.036712646484375, -0.039794921875, 0.00919342041015625, -0.0499267578125, -0.04559326171875, -0.06610107421875, -0.01343536376953125, -0.01409149169921875, 0.0301513671875, -0.003662109375, 0.0474853515625, 0.0010576248168945312, -0.05938720703125, -0.010711669921875, 0.054046630859375, 0.002727508544921875, 0.0025081634521484375, 0.0489501953125, -0.0027980804443359375, -0.036773681640625, 0.01385498046875, 0.004856109619140625, 0.02288818359375, -0.05950927734375, -0.041900634765625, -0.0186309814453125, -0.0081329345703125, -0.024078369140625, 0.0714111328125, 0.04168701171875, -0.033660888671875, -0.0146484375, -0.055999755859375, -0.0268402099609375, 0.02001953125, -0.00998687744140625, 0.09417724609375, -0.00986480712890625, -0.0181732177734375, 0.045684814453125, 0.047454833984375, -0.0012483596801757812, -0.01934814453125, 0.016082763671875, -0.01561737060546875, 0.06561279296875, -0.0137481689453125, 0.00013709068298339844, -0.029510498046875, 0.009368896484375, -0.034576416015625, 0.01136016845703125, -0.0019683837890625, 0.0020236968994140625, 0.01666259765625, -0.0367431640625, 0.0160369873046875, -0.0384521484375, 0.0135650634765625, -0.059051513671875, -0.016876220703125, -0.0237884521484375, 0.0147552490234375, 0.00189208984375, 0.039703369140625, -0.04046630859375, 0.01187896728515625, -0.0016527175903320312, 0.003345489501953125, -0.0574951171875, -0.058868408203125, -0.06170654296875, 0.0055389404296875, -0.12457275390625, 0.0168914794921875, 0.0033130645751953125, -0.040008544921875, 0.0086669921875, 0.01055145263671875, -0.07379150390625, -0.05194091796875, 0.0221405029296875, 0.025482177734375, -0.02008056640625, 0.018768310546875, -0.03179931640625, 0.0159149169921875, 0.00904083251953125, -0.01275634765625, -0.0784912109375, -0.0257720947265625, -0.0020885467529296875, 0.08612060546875, 0.0141143798828125, -0.006847381591796875, -0.0212860107421875, 0.052215576171875, 0.0141448974609375, 0.00572967529296875, 0.005893707275390625, -0.00896453857421875, 0.0036296844482421875, 0.0256805419921875, 0.0081329345703125, -0.00408172607421875, 0.0038299560546875, 0.017669677734375, -0.063232421875, -0.01018524169921875, -0.0048065185546875, -0.0147857666015625, 0.0726318359375, -0.058349609375, 0.01070404052734375, -0.00626373291015625, -0.03271484375, -0.014678955078125, -0.0291290283203125, -0.0010099411010742188, 0.014862060546875, 0.008148193359375, 0.018157958984375, -0.0207977294921875, -0.01496124267578125, 0.00164031982421875, 0.0489501953125, 0.0322265625, 0.01519012451171875, -0.007259368896484375, 0.016998291015625, 0.019500732421875, 0.0287017822265625, 0.01108551025390625, -0.037933349609375, -0.0248565673828125, 0.0638427734375, -0.005245208740234375, 0.0321044921875, -0.0162811279296875, 0.0180511474609375, -0.0101318359375, -0.048187255859375, 0.0546875, 0.002086639404296875, -0.031585693359375, 0.031494140625, 0.0199432373046875, -0.0133209228515625, 0.0017108917236328125, 0.003078460693359375, 0.01629638671875, -0.03668212890625, -0.0235595703125, -0.024993896484375, 0.007415771484375, -0.040374755859375, 0.036102294921875, -0.01404571533203125, 0.007488250732421875, 0.006519317626953125, 0.050994873046875, -0.003269195556640625, 0.044891357421875, 0.0110321044921875, 0.00433349609375, -0.0024700164794921875, 0.08013916015625, -0.002902984619140625, 0.006206512451171875, 0.0010423660278320312, 0.0684814453125, 0.0256500244140625, 0.01505279541015625, -0.06298828125, -0.014739990234375, 0.0556640625, -0.0478515625, -0.044281005859375, 0.02655029296875, 0.04949951171875, -0.0103759765625, -0.016510009765625, -0.01873779296875, 0.002410888671875, -0.045806884765625, 0.049285888671875, 0.02978515625, -0.0178375244140625, 0.0203094482421875, 0.01346588134765625, 0.05621337890625, -0.01406097412109375, -0.01776123046875, 0.031982421875, 0.0056610107421875, 0.051361083984375, 0.0303955078125, -0.031768798828125, -0.01482391357421875, 0.037933349609375, -0.042205810546875, -0.016265869140625, -0.034912109375, 0.0274658203125, 0.0191650390625, -0.0064697265625, 0.0177764892578125, -0.0098876953125, 0.03509521484375, -0.040740966796875, -0.01763916015625, -0.006534576416015625, 0.004974365234375, -0.0141448974609375, -0.004322052001953125, 0.00852203369140625, 0.05535888671875, 0.0167083740234375, -0.0160980224609375, -0.005344390869140625, -0.012969970703125, 0.0258636474609375, -0.031280517578125, -0.004913330078125, -0.00931549072265625, 0.01947021484375, -0.0012521743774414062, -0.0283660888671875, -0.03448486328125, -0.01273345947265625, -0.0150299072265625, 0.0142364501953125, 0.045166015625, -0.05078125, 0.060943603515625, -0.038177490234375, 0.00850677490234375, -0.081298828125, 0.01007843017578125, 0.06768798828125, 0.070556640625, 0.0013866424560546875, -0.006443023681640625, -0.0300140380859375, -0.039886474609375, -0.049896240234375, -0.0183258056640625, -0.038665771484375, -0.000888824462890625, -0.00335693359375, 0.045135498046875, -0.0187835693359375, -0.0206298828125, -0.00202178955078125, 0.01058197021484375, 0.004894256591796875, 0.0931396484375, 0.0023040771484375, 0.058837890625, -0.036376953125, 0.061737060546875, 0.0023059844970703125, 0.02093505859375, -0.01849365234375, -0.0275421142578125, -0.01320648193359375, -0.04034423828125, 0.0019130706787109375, 0.0106048583984375, -0.0283660888671875, 0.0093536376953125, 0.039794921875, 0.00897216796875, 0.03155517578125, -0.0037097930908203125, 0.00457763671875, -0.0304718017578125, 0.0206756591796875, -0.018280029296875, 0.0196685791015625, 0.043548583984375, -0.0016727447509765625, 0.0543212890625, -0.03759765625, 0.02996826171875, -0.0130615234375, -0.036102294921875, -0.0029201507568359375, 0.0308837890625, -0.041015625, 0.05908203125, 0.06390380859375, -0.009490966796875, 0.0309295654296875, 0.02105712890625, -0.01092529296875, 0.01277923583984375, 0.0163116455078125, -0.049591064453125, -0.0270233154296875, 0.04766845703125, 0.0147857666015625, -0.01934814453125, 0.043426513671875, -0.0078582763671875, 0.0011548995971679688, 0.062103271484375, 0.05987548828125, -0.08624267578125, -0.00678253173828125, -0.004947662353515625, -0.0014543533325195312, 0.0277099609375, -0.0078582763671875, 0.019775390625, 0.0148162841796875, 0.0283660888671875, 0.025238037109375, -0.003520965576171875, 0.03265380859375, 0.00335693359375, -0.00014328956604003906, -0.01303863525390625, -0.01297760009765625, -0.0091094970703125, -0.06298828125, -0.00897979736328125, 0.024139404296875, -0.03253173828125, -0.0199737548828125, -0.01084136962890625, -0.005970001220703125, -0.0272674560546875, -0.07257080078125, -0.00991058349609375, -0.01702880859375, -0.032073974609375, 0.025360107421875, -0.0025730133056640625, 0.0245208740234375, 0.034637451171875, 0.0009293556213378906, 0.01255035400390625, -0.0234222412109375, 0.051910400390625, 0.056121826171875, -0.013946533203125, 0.0271759033203125, 0.0228729248046875, -0.01416015625, 0.010833740234375, 0.0251007080078125, -0.04278564453125, 0.005504608154296875, 0.058837890625, 0.07421875, 0.00232696533203125, -0.042022705078125, 0.0304718017578125, 0.004840850830078125, -0.0094451904296875, 0.0007014274597167969, 0.0283050537109375, -0.041015625, -0.0161590576171875, 0.009613037109375, -0.01476287841796875, -0.01352691650390625, -0.00800323486328125, -0.038116455078125, 0.08837890625, -0.0555419921875, -0.003963470458984375, 0.0125579833984375, 0.04266357421875, 0.010223388671875, 0.025360107421875, 0.0094757080078125, 0.0175323486328125, -0.019378662109375, -0.0307464599609375, 0.007732391357421875, 0.01153564453125, -0.004608154296875, -0.0032329559326171875, -0.011749267578125, -0.007755279541015625, -0.0015430450439453125, 0.018585205078125, 0.0733642578125, 0.07806396484375, 0.0450439453125, -0.01983642578125, 0.002613067626953125, -0.01506805419921875, 0.00861358642578125, 0.00971221923828125, 0.0298004150390625, -0.03948974609375, -0.01090240478515625, 0.0184173583984375, 0.0023136138916015625, -0.0014667510986328125, 0.0487060546875, -0.044158935546875, -0.006305694580078125, 0.0249176025390625, -0.004291534423828125, -0.01171112060546875, 0.0012264251708984375, 0.02545166015625, 0.032958984375, -0.030059814453125, -0.05572509765625, -0.0028934478759765625, 0.0225982666015625, 0.00818634033203125, -0.0160980224609375, -0.0266265869140625, 0.004062652587890625, -0.040863037109375, 0.007843017578125, -0.0270538330078125, 0.054046630859375, -0.036834716796875, -0.004913330078125, -0.0259857177734375, -0.002536773681640625, -0.07427978515625, -0.03546142578125, -0.00472259521484375, -0.0002510547637939453, -0.004909515380859375, -0.042083740234375, 0.01224517822265625, 0.004169464111328125, 0.003620147705078125, -0.0323486328125, 0.004795074462890625, -0.08001708984375, -0.0195770263671875, -0.018585205078125, 0.016571044921875, 0.041656494140625, 0.00788116455078125, -0.0048675537109375, 0.01044464111328125, -0.0499267578125, 0.030242919921875, -0.00171661376953125, 0.001918792724609375, 0.0100860595703125, 0.043182373046875, -0.0212860107421875, 0.04547119140625, -0.08203125, -0.027496337890625, 0.005321502685546875, 0.023162841796875, -0.0006785392761230469, -0.015411376953125, 0.020416259765625, -0.0016698837280273438, -0.028717041015625, 0.00806427001953125, 0.002582550048828125, -0.002536773681640625, 0.028839111328125, 0.0279693603515625, -0.005603790283203125, 0.0003616809844970703, 0.0134124755859375, -0.0155181884765625, -0.021484375, 0.0027751922607421875, 0.0149993896484375, 0.045318603515625, -0.0011091232299804688, 0.004016876220703125, 0.029937744140625, 0.0596923828125, -0.055633544921875, 0.0582275390625, -0.01019287109375, -0.0081939697265625, 0.01261138916015625, -0.0274505615234375, 0.07281494140625, -0.0198822021484375, -0.0079498291015625, -0.0013132095336914062, -0.023773193359375, 0.0136566162109375, 0.01105499267578125, 0.0222625732421875, -0.028472900390625, 0.0531005859375, 0.01079559326171875, -0.021942138671875, 0.0260162353515625, 0.01177215576171875, -0.00266265869140625, 0.006542205810546875, 0.0280914306640625, -0.002292633056640625, -0.0428466796875, -0.01148223876953125, 0.00827789306640625, 0.0067901611328125, -0.0182952880859375, -0.00177001953125, 0.0129852294921875, 0.0014705657958984375, 0.0211334228515625, 0.0211029052734375, -0.01226806640625, -0.0025920867919921875, 0.0206298828125, -0.01245880126953125, 0.007709503173828125, -0.01428985595703125, -0.054595947265625, -0.0020599365234375, 0.0211639404296875, 0.000995635986328125, -0.004489898681640625, -0.005855560302734375, 0.0221405029296875, 0.03680419921875, 0.0167388916015625, -0.024078369140625, -0.04132080078125, -0.019287109375, -0.012237548828125, 0.01395416259765625, 0.051788330078125, 0.038970947265625, -0.02386474609375, -0.004756927490234375, -0.0260009765625, 0.0207061767578125, 0.010345458984375, 0.0204010009765625, 0.033172607421875, -0.0297698974609375, 0.023712158203125, -0.0032482147216796875, -0.0168304443359375, -0.008331298828125, 0.016998291015625, -0.0186309814453125, -0.032562255859375, 0.02655029296875, 0.039642333984375, 0.035797119140625, 0.041748046875, -0.007251739501953125, 0.005275726318359375, 0.0648193359375, -0.01175689697265625, -0.046905517578125, -0.0007510185241699219, -0.003131866455078125, -0.03790283203125, -0.0098114013671875, 0.024658203125, -0.0237884521484375, -0.000225067138671875, -0.040740966796875, 0.013580322265625, 0.016265869140625, 0.0158538818359375, -0.09625244140625, 0.049957275390625, -0.0087738037109375, 0.05859375, -0.0264434814453125, 0.02081298828125, -0.0068817138671875, 0.026885986328125, -0.0159149169921875, -0.042755126953125, -0.024261474609375, 0.05047607421875, -0.037933349609375, 0.009002685546875, 0.0297088623046875, -0.0166473388671875, -0.003833770751953125, 0.001415252685546875, 0.020843505859375, 0.058563232421875, -0.01318359375, -0.009613037109375, 0.01526641845703125, 0.024017333984375, -0.041259765625, -0.0638427734375, -0.003753662109375, -0.03131103515625, 0.0045318603515625, -0.03619384765625, -0.01436614990234375, -0.017791748046875, -0.062347412109375, -0.10614013671875, 0.06494140625, -0.0195159912109375, -0.01371002197265625, 0.0093841552734375, -0.01157379150390625, 0.00904083251953125, -0.03302001953125, -0.00951385498046875, -0.023590087890625, -0.023223876953125, 0.00101470947265625, -0.00283050537109375, -0.002391815185546875, 0.0316162109375, -0.0384521484375, -0.0592041015625, -0.01557159423828125, -0.01320648193359375, 0.004364013671875, -0.025665283203125, 0.00804901123046875, 0.01424407958984375, 0.03570556640625, 0.00525665283203125, -0.040008544921875, 0.019378662109375, -0.00818634033203125, -0.0009698867797851562, -0.0335693359375, -0.04498291015625, -0.0177764892578125, 0.08966064453125, 0.034149169921875, 0.0142364501953125, -0.018646240234375, -0.011962890625, -0.045684814453125, 0.0218505859375, 0.00498199462890625, -0.0037250518798828125, -0.047210693359375, -0.00119781494140625, 0.01490020751953125, 0.005435943603515625, 0.0231781005859375, -0.0115203857421875, -0.019256591796875, -0.006317138671875, 0.0009984970092773438, 0.00003212690353393555, -0.06036376953125, 0.0206756591796875, 0.08575439453125, -0.044281005859375, 0.0230865478515625, -0.00122833251953125, 0.01018524169921875, 0.05841064453125, 0.0035152435302734375, -0.0294647216796875, 0.032440185546875, -0.03668212890625, -0.00276947021484375, -0.01450347900390625, -0.009979248046875, -0.0239715576171875, 0.032073974609375, -0.0049285888671875, -0.016204833984375, -0.016876220703125, -0.03118896484375, 0.0005631446838378906, -0.0269622802734375, -0.0191802978515625, 0.023529052734375, -0.0193023681640625, -0.044189453125, -0.035400390625, 0.0143280029296875, -0.00592041015625, 0.0080718994140625, 0.03497314453125, -0.023193359375, 0.01763916015625, 0.01015472412109375, -0.034210205078125, -0.0231781005859375, -0.0114288330078125, -0.0689697265625, -0.0151214599609375, -0.0018978118896484375 ]
abc8c1226dabbcd9fe2fe3b77b0d919002ef5f6c
Wordpress Stackexchange Q: Only one category per post How to make each post/page have one and only one category. Categories could have radio box instead of checkbox next to each. A: Actually, I wrote a plugin for exactly that. http://wordpress.org/extend/plugins/radio-buttons-for-taxonomies/ In the plugin settings you define which taxonomies you'd like to apply this restriction to.
Q: Only one category per post How to make each post/page have one and only one category. Categories could have radio box instead of checkbox next to each. A: Actually, I wrote a plugin for exactly that. http://wordpress.org/extend/plugins/radio-buttons-for-taxonomies/ In the plugin settings you define which taxonomies you'd like to apply this restriction to. A: My prefered solution would be to use Advanced Custom Field with the Taxonomy field. This way you can add a simple html select field for category, and in the same time hide the default wordpress categories widget. https://www.advancedcustomfields.com/resources/taxonomy/ A: From within the WordPress Admin, I haven't seen anyone modify category selection to force only 1 category. However, a good solution for you might be to use Gravity Forms. Using Gravity forms you can create a "front end posting solution" and in doing this you can set the category selection to use Radio Buttons instead of checkboxes. Alternatively you could also use a dropdown menu, again only allows 1 selection. Another alternative is to modify the wp-admin area (which you will need to to in order to keep the WYSIWYG portion of the content editor as I don't think the front end solution provides this. I would suggest you remove the standard category meta box, very easily using code from this page: http://codex.wordpress.org/Function_Reference/remove_meta_box And then create your own categories metabox using a dropdown value, which you can easily create from this page: http://codex.wordpress.org/Template_Tags/wp_dropdown_categories
wordpress
{ "language": "en", "length": 236, "provenance": "stackexchange_00019.jsonl.gz:426525", "question_score": "28", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75166" }
[ 0.06378173828125, -0.01206207275390625, -0.0177001953125, -0.046356201171875, 0.0244903564453125, -0.039337158203125, 0.036407470703125, 0.0036525726318359375, -0.01099395751953125, -0.0030670166015625, -0.01067352294921875, 0.0031337738037109375, -0.032257080078125, -0.043365478515625, 0.01184844970703125, -0.0306243896484375, 0.00044035911560058594, 0.019134521484375, -0.0114593505859375, -0.041290283203125, 0.0178070068359375, -0.0411376953125, -0.01398468017578125, 0.0733642578125, 0.021392822265625, -0.000850677490234375, 0.031646728515625, -0.042510986328125, 0.00502777099609375, -0.033172607421875, 0.024688720703125, 0.0100860595703125, 0.01169586181640625, 0.00832366943359375, -0.0267791748046875, -0.005889892578125, -0.02252197265625, 0.0138092041015625, 0.0017986297607421875, 0.01441192626953125, 0.044403076171875, -0.03924560546875, 0.0029659271240234375, 0.044097900390625, 0.005596160888671875, -0.038177490234375, 0.03857421875, -0.068359375, 0.0272979736328125, -0.08770751953125, 0.0184478759765625, 0.017303466796875, 0.042633056640625, -0.07672119140625, -0.02935791015625, 0.018646240234375, 0.0273284912109375, -0.08453369140625, 0.0504150390625, -0.032989501953125, -0.034332275390625, -0.06451416015625, 0.05364990234375, -0.00443267822265625, -0.0014705657958984375, 0.0007991790771484375, -0.03173828125, 0.0182647705078125, -0.032989501953125, 0.02020263671875, 0.037567138671875, -0.055755615234375, 0.0160064697265625, 0.0013055801391601562, -0.022613525390625, -0.002017974853515625, 0.004413604736328125, 0.01226806640625, 0.040252685546875, -0.01474761962890625, 0.0164794921875, -0.0165557861328125, -0.0087890625, -0.038543701171875, 0.0157012939453125, -0.006561279296875, -0.0001811981201171875, -0.00835418701171875, -0.051361083984375, -0.032958984375, -0.02838134765625, -0.019866943359375, -0.0810546875, 0.0135955810546875, 0.002925872802734375, -0.0124969482421875, 0.032440185546875, 0.047210693359375, 0.00799560546875, -0.0004239082336425781, -0.01044464111328125, -0.025115966796875, -0.01904296875, -0.0174407958984375, 0.026397705078125, 0.002552032470703125, -0.01546478271484375, 0.027435302734375, 0.080810546875, 0.03302001953125, 0.00508880615234375, 0.085693359375, -0.0122833251953125, -0.0031299591064453125, -0.0312042236328125, -0.00408172607421875, -0.03802490234375, 0.0247039794921875, -0.0026493072509765625, 0.0310821533203125, 0.0174560546875, 0.03924560546875, 0.009979248046875, -0.01235198974609375, -0.0191497802734375, -0.018341064453125, -0.0068359375, -0.04925537109375, 0.01290130615234375, 0.0008339881896972656, -0.0268096923828125, 0.0011053085327148438, 0.036865234375, 0.0374755859375, 0.0123291015625, 0.0025177001953125, 0.013671875, -0.007389068603515625, 0.0049285888671875, 0.00527191162109375, -0.0034427642822265625, -0.031402587890625, -0.0013952255249023438, -0.01160430908203125, -0.0109405517578125, 0.00717926025390625, 0.02362060546875, 0.0295867919921875, -0.0114593505859375, -0.0228271484375, 0.00019502639770507812, 0.004673004150390625, 0.0250244140625, -0.005855560302734375, -0.0214996337890625, -0.0235748291015625, 0.0032024383544921875, -0.01361083984375, -0.0091400146484375, -0.0325927734375, 0.052642822265625, 0.035491943359375, 0.0360107421875, 0.003421783447265625, -0.0013275146484375, -0.06591796875, -0.07177734375, -0.002681732177734375, 0.01218414306640625, -0.006046295166015625, -0.0008516311645507812, -0.0019359588623046875, 0.000054836273193359375, -0.0099029541015625, -0.00492095947265625, 0.01207733154296875, -0.03533935546875, -0.0287017822265625, 0.017791748046875, 0.053253173828125, 0.0109100341796875, -0.0211334228515625, -0.000014126300811767578, 0.0189971923828125, -0.0423583984375, 0.0312347412109375, 0.004550933837890625, 0.02569580078125, -0.00045990943908691406, 0.002323150634765625, 0.058349609375, 0.0360107421875, -0.04510498046875, 0.004085540771484375, 0.003307342529296875, 0.0091552734375, -0.0240325927734375, 0.01505279541015625, -0.007328033447265625, -0.00922393798828125, -0.016021728515625, -0.0115814208984375, -0.0012159347534179688, 0.0163421630859375, 0.017791748046875, -0.0203704833984375, 0.0099639892578125, 0.00853729248046875, -0.02142333984375, 0.0146636962890625, 0.01611328125, -0.0005044937133789062, 0.01116943359375, -0.09100341796875, -0.0292205810546875, 0.0079193115234375, -0.01078033447265625, -0.02606201171875, -0.0135345458984375, -0.0177154541015625, -0.016876220703125, -0.005161285400390625, -0.0284423828125, 0.0367431640625, 0.05859375, 0.006900787353515625, -0.0224456787109375, -0.03228759765625, 0.003246307373046875, 0.016357421875, -0.1048583984375, 0.0565185546875, 0.035980224609375, 0.04052734375, 0.00069427490234375, 0.0254058837890625, 0.056854248046875, -0.0234527587890625, -0.0020160675048828125, 0.0080413818359375, 0.0262908935546875, -0.0169525146484375, -0.015869140625, 0.0232086181640625, 0.0230865478515625, -0.0635986328125, -0.008026123046875, 0.030853271484375, 0.0024776458740234375, 0.039703369140625, 0.0115203857421875, 0.01348114013671875, 0.0267181396484375, 0.0020732879638671875, 0.035400390625, 0.021087646484375, -0.00937652587890625, -0.00470733642578125, -0.01003265380859375, -0.0035037994384765625, 0.004138946533203125, 0.00914764404296875, -0.0181884765625, 0.01033782958984375, 0.0294647216796875, 0.00232696533203125, 0.038421630859375, 0.03692626953125, 0.00353240966796875, -0.004329681396484375, -0.00856781005859375, -0.031951904296875, 0.011505126953125, 0.0181427001953125, -0.011322021484375, 0.03338623046875, -0.032440185546875, -0.004550933837890625, 0.0232086181640625, 0.01093292236328125, -0.01129150390625, 0.0114593505859375, 0.00733184814453125, -0.00975799560546875, -0.014495849609375, -0.0430908203125, 0.016357421875, 0.002948760986328125, -0.03924560546875, -0.048431396484375, 0.00330352783203125, 0.00753021240234375, -0.0301513671875, 0.033843994140625, -0.01320648193359375, -0.0390625, 0.0047149658203125, -0.043121337890625, 0.0266265869140625, -0.0302734375, 0.024200439453125, 0.049072265625, 0.00589752197265625, 0.0017728805541992188, -0.002124786376953125, -0.001995086669921875, -0.006183624267578125, 0.02099609375, -0.00806427001953125, 0.0088653564453125, -0.06005859375, -0.0152740478515625, 0.0204925537109375, 0.011688232421875, 0.0169219970703125, -0.043792724609375, -0.011383056640625, 0.02386474609375, -0.062164306640625, -0.0287322998046875, 0.009246826171875, -0.007720947265625, 0.0577392578125, 0.003948211669921875, 0.01551055908203125, -0.0743408203125, 0.0282440185546875, 0.01708984375, -0.01465606689453125, -0.031585693359375, -0.029388427734375, -0.0318603515625, -0.03363037109375, 0.00998687744140625, -0.0007715225219726562, -0.004505157470703125, -0.002895355224609375, 0.09906005859375, 0.01090240478515625, -0.06353759765625, -0.0200653076171875, 0.008544921875, -0.03118896484375, 0.017181396484375, 0.032928466796875, -0.04193115234375, -0.0238800048828125, 0.0144805908203125, 0.0030269622802734375, 0.01081085205078125, -0.014495849609375, -0.010528564453125, -0.035430908203125, 0.02667236328125, -0.005741119384765625, -0.001636505126953125, 0.0273590087890625, 0.0413818359375, -0.00289154052734375, -0.008056640625, -0.013397216796875, -0.00748443603515625, -0.0489501953125, -0.044097900390625, -0.0004100799560546875, 0.00450897216796875, -0.03369140625, 0.00553131103515625, 0.0010852813720703125, -0.002948760986328125, -0.021942138671875, -0.01067352294921875, 0.00856781005859375, -0.0062255859375, 0.00244903564453125, 0.0169677734375, -0.053314208984375, -0.04669189453125, 0.034332275390625, -0.037811279296875, -0.01453399658203125, -0.0301971435546875, 0.050811767578125, 0.00676727294921875, -0.0450439453125, 0.01959228515625, -0.056976318359375, 0.00536346435546875, -0.037689208984375, -0.01351165771484375, -0.0190887451171875, 0.072265625, -0.059417724609375, -0.00543975830078125, 0.013946533203125, 0.0009174346923828125, 0.003391265869140625, -0.0243072509765625, -0.070068359375, -0.037384033203125, -0.049896240234375, -0.01335906982421875, 0.0005273818969726562, -0.04144287109375, -0.0019588470458984375, 0.01605224609375, -0.040374755859375, -0.023040771484375, 0.036590576171875, -0.07025146484375, -0.0035228729248046875, -0.0234222412109375, -0.01367950439453125, -0.044891357421875, -0.0228424072265625, -0.0309906005859375, -0.046844482421875, -0.0048065185546875, -0.005157470703125, 0.024932861328125, -0.0066986083984375, 0.01044464111328125, -0.0112762451171875, 0.04290771484375, -0.01250457763671875, 0.01343536376953125, 0.0012607574462890625, 0.0218963623046875, -0.0032939910888671875, 0.00913238525390625, 0.016448974609375, -0.00531005859375, -0.01486968994140625, -0.016876220703125, 0.0401611328125, 0.03118896484375, -0.0482177734375, -0.0511474609375, -0.060821533203125, 0.00344085693359375, -0.0733642578125, -0.04827880859375, -0.04071044921875, -0.0062408447265625, -0.022369384765625, 0.007068634033203125, -0.0455322265625, -0.075439453125, -0.00882720947265625, 0.005672454833984375, -0.0250701904296875, 0.03387451171875, 0.04296875, 0.01311492919921875, 0.0069732666015625, -0.1058349609375, 0.00319671630859375, 0.022613525390625, 0.03759765625, 0.033966064453125, -0.0180816650390625, -0.01551055908203125, 0.093994140625, -0.006805419921875, -0.0193634033203125, -0.05694580078125, 0.095947265625, -0.02099609375, -0.0247802734375, 0.0274200439453125, -0.058868408203125, 0.043212890625, 0.006351470947265625, -0.012939453125, 0.00027108192443847656, -0.0231475830078125, 0.0313720703125, 0.01401519775390625, -0.0127105712890625, -0.035247802734375, -0.03326416015625, 0.0106201171875, 0.05975341796875, 0.014801025390625, 0.061187744140625, -0.0132293701171875, 0.02606201171875, 0.0087738037109375, -0.0229034423828125, 0.00632476806640625, 0.01108551025390625, 0.022125244140625, 0.0160064697265625, 0.01149749755859375, -0.00508880615234375, -0.02923583984375, 0.00689697265625, 0.0009703636169433594, 0.00591278076171875, -0.03143310546875, -0.0218505859375, 0.007137298583984375, 0.00911712646484375, 0.0008058547973632812, 0.0194854736328125, 0.03271484375, -0.0289764404296875, -0.00998687744140625, -0.007293701171875, -0.02203369140625, -0.02984619140625, -0.031280517578125, 0.006839752197265625, 0.01013946533203125, -0.00823211669921875, 0.061737060546875, 0.0011806488037109375, -0.005767822265625, 0.0232696533203125, -0.0225067138671875, 0.053436279296875, 0.039031982421875, 0.012908935546875, 0.01322174072265625, -0.0064697265625, -0.01000213623046875, -0.0131683349609375, -0.01824951171875, -0.04656982421875, -0.042083740234375, 0.032745361328125, 0.04534912109375, -0.0039825439453125, 0.0027313232421875, -0.0130157470703125, 0.014373779296875, -0.0214080810546875, 0.0124053955078125, 0.004180908203125, -0.034637451171875, 0.0037136077880859375, 0.01293182373046875, -0.00972747802734375, -0.01297760009765625, -0.0017576217651367188, 0.005062103271484375, 0.010162353515625, 0.0101318359375, 0.006877899169921875, -0.035003662109375, 0.0072784423828125, 0.03302001953125, -0.065185546875, -0.00849151611328125, 0.005100250244140625, -0.036468505859375, -0.032257080078125, 0.00763702392578125, -0.0229949951171875, -0.0036411285400390625, 0.0008411407470703125, 0.04132080078125, -0.018646240234375, -0.042083740234375, -0.0018053054809570312, -0.010955810546875, 0.06512451171875, 0.0242919921875, -0.036346435546875, -0.032196044921875, -0.045654296875, -0.0399169921875, -0.027435302734375, -0.001171112060546875, -0.0472412109375, 0.01500701904296875, 0.0211029052734375, 0.01200103759765625, -0.013763427734375, -0.020843505859375, -0.0152130126953125, 0.0166168212890625, 0.0277252197265625, 0.03179931640625, -0.0132598876953125, 0.00960540771484375, 0.001049041748046875, 0.0302886962890625, -0.022125244140625, -0.018402099609375, -0.0006670951843261719, -0.0181884765625, -0.00920867919921875, -0.05426025390625, -0.041534423828125, 0.032470703125, -0.05694580078125, 0.0190582275390625, 0.01419830322265625, -0.0005164146423339844, 0.01256561279296875, -0.0156707763671875, 0.012481689453125, -0.012847900390625, -0.01702880859375, -0.0183563232421875, 0.0009722709655761719, 0.0280609130859375, 0.01261138916015625, 0.0391845703125, -0.03125, -0.0125732421875, 0.0139312744140625, -0.005859375, 0.033355712890625, -0.0151214599609375, -0.0168609619140625, 0.0002868175506591797, -0.01506805419921875, 0.020355224609375, 0.01904296875, -0.015655517578125, 0.039886474609375, -0.03057861328125, -0.0259246826171875, 0.00754547119140625, 0.0037479400634765625, 0.037384033203125, -0.0064849853515625, 0.002887725830078125, 0.044525146484375, -0.0202789306640625, -0.014373779296875, 0.0435791015625, 0.0163116455078125, -0.089599609375, 0.0280303955078125, 0.002643585205078125, 0.0206451416015625, 0.0123138427734375, 0.00304412841796875, -0.0095062255859375, -0.043975830078125, 0.0250091552734375, 0.0238494873046875, -0.005649566650390625, 0.0011224746704101562, -0.004886627197265625, 0.005237579345703125, 0.0009160041809082031, 0.05645751953125, 0.02374267578125, -0.06683349609375, 0.00957489013671875, 0.03631591796875, 0.006443023681640625, -0.01511383056640625, -0.004150390625, 0.0192413330078125, -0.0284576416015625, -0.062164306640625, 0.03790283203125, -0.0013113021850585938, 0.0046844482421875, 0.0242156982421875, -0.0041351318359375, -0.02972412109375, 0.0243682861328125, -0.024627685546875, 0.006099700927734375, -0.006519317626953125, -0.056182861328125, -0.0443115234375, -0.035186767578125, 0.0022125244140625, 0.032623291015625, -0.0216827392578125, 0.031646728515625, -0.01120758056640625, -0.0357666015625, -0.007266998291015625, -0.0161895751953125, 0.08392333984375, -0.048370361328125, -0.01346588134765625, 0.01236724853515625, 0.01091766357421875, -0.0025463104248046875, 0.004756927490234375, -0.0224151611328125, -0.030364990234375, 0.00627899169921875, -0.00850677490234375, -0.01061248779296875, 0.0233612060546875, 0.0001550912857055664, -0.0953369140625, 0.093505859375, 0.020050048828125, 0.045623779296875, -0.021820068359375, 0.0258331298828125, -0.0223846435546875, -0.0006909370422363281, -0.02783203125, 0.056915283203125, 0.0092315673828125, 0.01971435546875, -0.0285797119140625, -0.006618499755859375, -0.002254486083984375, 0.0256805419921875, 0.07159423828125, 0.0154266357421875, 0.033935546875, 0.0187530517578125, 0.05596923828125, 0.02410888671875, -0.040740966796875, 0.00731658935546875, 0.02899169921875, 0.0281829833984375, 0.06890869140625, 0.005100250244140625, 0.061614990234375, -0.010345458984375, 0.0021724700927734375, 0.026275634765625, 0.019317626953125, -0.0026760101318359375, 0.0164642333984375, 0.041900634765625, -0.0455322265625, 0.01568603515625, 0.024322509765625, 0.0176849365234375, 0.044219970703125, 0.03485107421875, 0.043548583984375, 0.00536346435546875, 0.038299560546875, -0.0180816650390625, 0.060211181640625, -0.00913238525390625, 0.035888671875, 0.03399658203125, 0.00598907470703125, 0.0599365234375, 0.008087158203125, 0.0289306640625, 0.00850677490234375, -0.007110595703125, 0.01439666748046875, 0.004932403564453125, 0.01158905029296875, -0.061676025390625, -0.006328582763671875, 0.0509033203125, 0.04364013671875, -0.03216552734375, -0.0753173828125, 0.0067901611328125, 0.0230865478515625, 0.036712646484375, 0.01477813720703125, 0.0516357421875, 0.01194000244140625, 0.07562255859375, -0.039886474609375, 0.00926971435546875, 0.03448486328125, 0.032867431640625, 0.00830841064453125, 0.01544952392578125, -0.06787109375, -0.01053619384765625, -0.038330078125, 0.00353240966796875, 0.0088958740234375, 0.051025390625, 0.017974853515625, 0.032928466796875, -0.018402099609375, -0.01593017578125, -0.000965118408203125, 0.0202484130859375, 0.01654052734375, -0.007053375244140625, -0.006389617919921875, -0.011962890625, 0.016876220703125, 0.0161590576171875, 0.0083465576171875, 0.0028591156005859375, 0.028045654296875, 0.0833740234375, 0.050048828125, -0.020965576171875, 0.054351806640625, 0.0197906494140625, 0.01096343994140625, -0.032440185546875, 0.062103271484375, 0.0280609130859375, 0.01517486572265625, -0.0006766319274902344, 0.045013427734375, 0.04046630859375, 0.01548004150390625, 0.01445770263671875, 0.01351165771484375, -0.0221099853515625, 0.029541015625, 0.002407073974609375, 0.07171630859375, 0.042236328125, -0.10003662109375, -0.0069122314453125, -0.055419921875, -0.07275390625, 0.061920166015625, 0.048126220703125, -0.053131103515625, 0.0301971435546875, 0.0294189453125, 0.015289306640625, -0.0010175704956054688, -0.043060302734375, 0.026824951171875, -0.02020263671875, 0.01302337646484375, 0.01505279541015625, -0.03826904296875, -0.022613525390625, -0.0116119384765625, 0.021942138671875, 0.01378631591796875, 0.0296478271484375, 0.00878143310546875, 0.01204681396484375, -0.03582763671875, 0.032623291015625, -0.042633056640625, -0.03509521484375, 0.044830322265625, 0.021240234375, 0.005626678466796875, -0.0142974853515625, -0.01629638671875, -0.0094451904296875, 0.037933349609375, -0.044677734375, 0.00835418701171875, -0.02166748046875, -0.000576019287109375, -0.04962158203125, 0.0762939453125, -0.0010614395141601562, 0.0031223297119140625, -0.044891357421875, -0.046630859375, 0.07208251953125, 0.07830810546875, 0.0253753662109375, 0.02880859375, -0.01305389404296875, 0.00743865966796875, -0.00252532958984375, 0.00460052490234375, -0.035400390625, 0.02960205078125, 0.001995086669921875, -0.007110595703125, 0.0052032470703125, -0.0126190185546875, -0.0005464553833007812, 0.02508544921875, -0.0264739990234375, 0.02081298828125, -0.0364990234375, 0.001628875732421875, 0.037933349609375, 0.03753662109375, -0.0132904052734375, -0.0003731250762939453, 0.02593994140625, -0.0225372314453125, -0.043731689453125, 0.040374755859375, -0.0239105224609375, -0.004817962646484375, -0.0246734619140625, -0.0264739990234375, -0.003940582275390625, -0.09259033203125, -0.04071044921875, -0.0016765594482421875, 0.0251617431640625, -0.0200958251953125, -0.001338958740234375, 0.005062103271484375, -0.05096435546875, 0.038543701171875, -0.0269317626953125, -0.0186309814453125, 0.0012836456298828125, 0.051116943359375, -0.04449462890625, -0.0120697021484375, -0.0279388427734375, -0.01323699951171875, -0.047271728515625, 0.0249786376953125, 0.004634857177734375, -0.045013427734375, 0.020233154296875, 0.03790283203125, 0.04779052734375, 0.0970458984375, 0.06903076171875, -0.0108795166015625, 0.007061004638671875, 0.019195556640625, -0.03790283203125, -0.037017822265625, 0.03509521484375, -0.031219482421875, -0.02642822265625, -0.015960693359375, 0.005207061767578125, 0.0070343017578125, -0.03375244140625, -0.055908203125, 0.06500244140625, -0.0228118896484375, -0.0192413330078125, -0.029449462890625, 0.00844573974609375, 0.0023174285888671875, -0.0028285980224609375, -0.0121917724609375, -0.005588531494140625, -0.020751953125, 0.0237884521484375, 0.034210205078125, 0.00550079345703125, 0.029632568359375, 0.00493621826171875, -0.033538818359375, 0.0379638671875, 0.040191650390625, 0.04595947265625, 0.0190887451171875, 0.0024280548095703125, -0.018463134765625, 0.0164337158203125, -0.07171630859375, -0.060638427734375, -0.04302978515625, 0.036590576171875, 0.0247344970703125, -0.02642822265625, -0.035736083984375, -0.028778076171875, 0.005855560302734375, 0.01560211181640625, 0.00800323486328125, 0.0018358230590820312, -0.0216064453125, -0.08447265625, -0.03216552734375, -0.0062408447265625, 0.00977325439453125, -0.0645751953125, 0.0274658203125, 0.043212890625, -0.00943756103515625, 0.027587890625, 0.01336669921875, -0.01617431640625, -0.0099029541015625, 0.00634765625, -0.025177001953125, -0.07965087890625, 0.04071044921875, -0.059051513671875, 0.002719879150390625, -0.01038360595703125, -0.0059356689453125, -0.02685546875, -0.040618896484375, 0.029937744140625, -0.01061248779296875, 0.043426513671875, -0.051666259765625, 0.0072784423828125, 0.00005060434341430664, 0.015960693359375, -0.04730224609375, 0.016387939453125, -0.051116943359375, 0.0208892822265625, 0.0367431640625, 0.03582763671875, -0.055877685546875, 0.016387939453125, 0.0478515625, -0.0018739700317382812, -0.01244354248046875, -0.041290283203125, -0.007434844970703125, 0.023162841796875, -0.0001304149627685547, -0.0234832763671875, 0.04534912109375, -0.03570556640625, -0.00537109375, 0.01149749755859375, 0.0080413818359375, -0.0178985595703125, 0.020538330078125, -0.006153106689453125, -0.005680084228515625, 0.01708984375 ]
5f6d7ee7fd0c6f1ca10069bd0ceb2f3009e18af3
Wordpress Stackexchange Q: How do I allow users to sort posts? Possible Duplicate: How do I sort multiples pages? I want to allow users to sort a long list of posts (that are displayed on multiple pages) by custom fields. Here is my form... <form method="post" id="order"> <select name="sort" onchange='this.form.submit()'> <option value="">Sort by</option> <option value="zip">Sort by Zip Code</option> <option value="type">Sort by Property Type</option> </select> </form> I was told that I need to use sessions. However, I don't know how to code this. Could anyone give me an example based on the form above? A: You can add a query to the URL in WordPress, and then just link to that query, see – http://codex.wordpress.org/Function_Reference/add_query_arg
Q: How do I allow users to sort posts? Possible Duplicate: How do I sort multiples pages? I want to allow users to sort a long list of posts (that are displayed on multiple pages) by custom fields. Here is my form... <form method="post" id="order"> <select name="sort" onchange='this.form.submit()'> <option value="">Sort by</option> <option value="zip">Sort by Zip Code</option> <option value="type">Sort by Property Type</option> </select> </form> I was told that I need to use sessions. However, I don't know how to code this. Could anyone give me an example based on the form above? A: You can add a query to the URL in WordPress, and then just link to that query, see – http://codex.wordpress.org/Function_Reference/add_query_arg
wordpress
{ "language": "en", "length": 112, "provenance": "stackexchange_00019.jsonl.gz:426537", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75204" }
[ 0.0916748046875, -0.0013980865478515625, 0.041748046875, 0.004913330078125, 0.0162353515625, -0.040374755859375, 0.0927734375, -0.055999755859375, 0.003665924072265625, -0.00010448694229125977, -0.019683837890625, -0.0107879638671875, -0.0341796875, -0.02435302734375, -0.0290679931640625, -0.055755615234375, 0.031646728515625, -0.029327392578125, 0.0283660888671875, -0.01145172119140625, 0.0206451416015625, 0.00862884521484375, 0.036773681640625, 0.01389312744140625, 0.0201263427734375, 0.0111846923828125, 0.01318359375, -0.0086822509765625, 0.027435302734375, 0.0046234130859375, 0.0213623046875, -0.030120849609375, 0.03021240234375, -0.01995849609375, 0.01239013671875, -0.02899169921875, 0.010955810546875, -0.0180816650390625, -0.006870269775390625, 0.035675048828125, 0.0200042724609375, -0.004215240478515625, -0.0299224853515625, 0.03515625, -0.02911376953125, -0.0687255859375, 0.052001953125, -0.022979736328125, 0.0255279541015625, -0.031707763671875, 0.0169219970703125, 0.0008230209350585938, 0.02691650390625, -0.0231781005859375, -0.034423828125, -0.017059326171875, 0.043426513671875, -0.0146331787109375, 0.037689208984375, -0.038330078125, -0.050140380859375, -0.003124237060546875, 0.035003662109375, -0.00615692138671875, -0.0237579345703125, 0.00827789306640625, -0.0240936279296875, 0.01317596435546875, -0.0219573974609375, -0.037841796875, 0.0003402233123779297, -0.027862548828125, 0.025299072265625, -0.004451751708984375, 0.0009975433349609375, -0.040802001953125, -0.01430511474609375, -0.025787353515625, 0.043609619140625, -0.00855255126953125, -0.01299285888671875, 0.018035888671875, -0.058380126953125, -0.0219879150390625, -0.0214691162109375, -0.03216552734375, -0.0215301513671875, 0.0100555419921875, -0.01532745361328125, 0.00704193115234375, -0.014251708984375, -0.03387451171875, -0.02392578125, 0.04901123046875, 0.01172637939453125, -0.0210723876953125, 0.060516357421875, 0.03424072265625, 0.0193023681640625, -0.033233642578125, 0.01219940185546875, -0.064208984375, -0.0105743408203125, -0.004749298095703125, -0.002231597900390625, -0.0027618408203125, -0.0008864402770996094, 0.005443572998046875, 0.02996826171875, 0.038604736328125, -0.01500701904296875, 0.0153656005859375, 0.0069580078125, -0.027496337890625, -0.0205535888671875, -0.007091522216796875, -0.0108642578125, 0.003437042236328125, 0.01959228515625, -0.0216522216796875, 0.01006317138671875, 0.0340576171875, -0.001621246337890625, -0.049468994140625, -0.0079193115234375, -0.0145263671875, -0.00887298583984375, -0.06268310546875, 0.00916290283203125, 0.0055999755859375, -0.02593994140625, -0.0089263916015625, 0.0165557861328125, 0.059783935546875, 0.022186279296875, -0.020751953125, 0.0036182403564453125, -0.04583740234375, -0.0149078369140625, 0.0088958740234375, 0.0223846435546875, -0.032318115234375, -0.0174713134765625, 0.01313018798828125, 0.01030731201171875, 0.01678466796875, 0.016754150390625, 0.0184326171875, 0.015625, -0.009429931640625, -0.0204315185546875, 0.01511383056640625, 0.023162841796875, 0.0026035308837890625, -0.021148681640625, -0.022796630859375, -0.00458526611328125, -0.019561767578125, 0.0135498046875, -0.027313232421875, -0.0208740234375, 0.01058197021484375, 0.05999755859375, -0.041717529296875, -0.0276031494140625, -0.0274658203125, -0.055938720703125, -0.00910186767578125, 0.027069091796875, -0.0248260498046875, -0.015167236328125, -0.0034427642822265625, 0.029205322265625, 0.018707275390625, 0.006786346435546875, 0.044952392578125, 0.005413055419921875, -0.0247955322265625, -0.0009889602661132812, 0.03863525390625, -0.01372528076171875, -0.02294921875, -0.00820159912109375, -0.00849151611328125, -0.03192138671875, 0.052490234375, -0.004093170166015625, 0.044769287109375, -0.02777099609375, 0.020233154296875, 0.0114593505859375, 0.07171630859375, 0.00766754150390625, 0.00972747802734375, 0.0156097412109375, -0.0294036865234375, -0.02410888671875, 0.01114654541015625, 0.00135040283203125, -0.0665283203125, -0.0306243896484375, -0.029876708984375, 0.0223541259765625, 0.0287017822265625, 0.03155517578125, -0.00095367431640625, 0.0009603500366210938, 0.00968170166015625, -0.01033782958984375, 0.00446319580078125, 0.028228759765625, 0.0265350341796875, -0.05438232421875, -0.0028629302978515625, -0.01319122314453125, 0.017791748046875, 0.004650115966796875, 0.01788330078125, -0.0173492431640625, 0.015045166015625, -0.0367431640625, -0.0174102783203125, -0.03277587890625, 0.027587890625, 0.0299072265625, -0.0041351318359375, -0.030242919921875, -0.0284576416015625, -0.02362060546875, 0.01885986328125, -0.0843505859375, 0.02838134765625, 0.03350830078125, 0.051361083984375, -0.0285186767578125, -0.027099609375, -0.035064697265625, -0.0307769775390625, 0.01427459716796875, 0.05413818359375, 0.0207061767578125, 0.0069732666015625, 0.01001739501953125, 0.05364990234375, 0.01395416259765625, 0.0003426074981689453, 0.03173828125, 0.01390838623046875, 0.0122833251953125, 0.04498291015625, 0.00786590576171875, 0.032012939453125, 0.02691650390625, 0.006744384765625, 0.017578125, 0.0478515625, 0.00586700439453125, 0.01476287841796875, -0.0155792236328125, -0.00395965576171875, 0.006061553955078125, -0.048675537109375, -0.031982421875, -0.0210113525390625, 0.00392913818359375, 0.002597808837890625, 0.0278167724609375, 0.014251708984375, -0.0011396408081054688, -0.011505126953125, 0.002498626708984375, -0.05426025390625, -0.00502777099609375, -0.038238525390625, -0.0231475830078125, 0.0322265625, -0.0250701904296875, 0.0288238525390625, 0.0014400482177734375, -0.021697998046875, -0.0120849609375, -0.0181121826171875, -0.0243682861328125, -0.0016222000122070312, 0.00696563720703125, -0.0640869140625, 0.026885986328125, 0.042816162109375, -0.0194549560546875, 0.007312774658203125, 0.03924560546875, 0.0205230712890625, -0.0179290771484375, 0.0202789306640625, -0.0101165771484375, -0.01385498046875, -0.0036258697509765625, -0.055755615234375, 0.043365478515625, -0.035003662109375, 0.0379638671875, 0.0809326171875, 0.0013484954833984375, 0.0241851806640625, 0.0006327629089355469, 0.01561737060546875, 0.025299072265625, -0.0012073516845703125, 0.002468109130859375, -0.03533935546875, 0.0009255409240722656, 0.017608642578125, 0.0361328125, -0.00377655029296875, 0.034881591796875, -0.0029201507568359375, 0.0152740478515625, 0.0232696533203125, -0.05810546875, -0.08465576171875, 0.0094451904296875, -0.0457763671875, -0.023162841796875, 0.02886962890625, -0.0303192138671875, -0.00742340087890625, 0.06585693359375, -0.01126861572265625, 0.0096435546875, -0.0215911865234375, -0.053009033203125, -0.01541900634765625, -0.03375244140625, 0.04571533203125, 0.006130218505859375, 0.0005846023559570312, 0.0022182464599609375, 0.059722900390625, -0.00479888916015625, -0.096923828125, -0.0601806640625, 0.0033283233642578125, -0.03125, -0.01318359375, 0.003711700439453125, -0.02069091796875, 0.043548583984375, -0.0122833251953125, 0.0709228515625, 0.0426025390625, -0.0306243896484375, 0.0010242462158203125, -0.025054931640625, 0.00022089481353759766, -0.01309967041015625, -0.0284881591796875, 0.014862060546875, 0.0228729248046875, -0.01531219482421875, -0.03436279296875, -0.0028667449951171875, -0.005146026611328125, -0.053131103515625, -0.06793212890625, 0.035736083984375, -0.0015583038330078125, -0.0386962890625, -0.0142059326171875, 0.041290283203125, -0.004573822021484375, -0.00479888916015625, -0.019775390625, 0.0228271484375, 0.028350830078125, 0.051116943359375, -0.02264404296875, 0.01003265380859375, -0.02276611328125, 0.0101776123046875, -0.010009765625, 0.0013341903686523438, -0.0251007080078125, 0.0272064208984375, -0.048675537109375, -0.07330322265625, 0.05059814453125, 0.01383209228515625, -0.0018281936645507812, 0.0010204315185546875, -0.036376953125, 0.027618408203125, 0.0960693359375, -0.033843994140625, -0.0140228271484375, -0.031585693359375, -0.00798797607421875, -0.0191650390625, -0.0222320556640625, -0.03802490234375, -0.00827789306640625, -0.05218505859375, -0.026153564453125, -0.033843994140625, -0.0282440185546875, -0.01678466796875, -0.00015628337860107422, -0.00666046142578125, -0.035186767578125, 0.0316162109375, 0.014862060546875, 0.0146484375, -0.01076507568359375, 0.002399444580078125, -0.01418304443359375, -0.01531982421875, -0.0034999847412109375, -0.08026123046875, -0.01396942138671875, -0.020355224609375, 0.05401611328125, 0.0198211669921875, -0.03973388671875, 0.0139007568359375, 0.06280517578125, 0.01342010498046875, 0.052093505859375, -0.01140594482421875, -0.0180206298828125, 0.03997802734375, -0.0184783935546875, -0.0009226799011230469, -0.026153564453125, 0.0250396728515625, -0.0038890838623046875, -0.0003237724304199219, 0.0208282470703125, -0.0782470703125, -0.0157318115234375, -0.0712890625, -0.0204620361328125, -0.06280517578125, -0.04833984375, -0.0251617431640625, -0.00609588623046875, -0.008056640625, -0.00667572021484375, -0.03387451171875, -0.05072021484375, 0.0019283294677734375, 0.0034542083740234375, -0.0173492431640625, 0.0233612060546875, 0.049591064453125, 0.01280975341796875, -0.008453369140625, -0.0667724609375, -0.03729248046875, 0.01206207275390625, 0.0261383056640625, 0.003482818603515625, -0.01363372802734375, -0.0161285400390625, 0.019012451171875, -0.00359344482421875, -0.033935546875, 0.0136871337890625, -0.00003808736801147461, 0.010772705078125, -0.0284576416015625, -0.00014126300811767578, -0.0253143310546875, 0.04620361328125, 0.00701141357421875, -0.02032470703125, -0.00524139404296875, -0.029937744140625, 0.05438232421875, 0.013946533203125, -0.0015516281127929688, -0.067626953125, -0.0635986328125, 0.014251708984375, -0.0994873046875, 0.01287078857421875, 0.006763458251953125, -0.0104217529296875, 0.0369873046875, 0.023773193359375, 0.0005850791931152344, 0.0255584716796875, 0.0240020751953125, 0.00124359130859375, 0.065673828125, -0.0242767333984375, -0.0055694580078125, 0.004283905029296875, -0.01494598388671875, 0.08648681640625, 0.0145111083984375, -0.03277587890625, -0.0305938720703125, -0.0169525146484375, 0.0284423828125, -0.00867462158203125, -0.01464080810546875, 0.015838623046875, 0.0028095245361328125, 0.01149749755859375, 0.03265380859375, -0.02020263671875, 0.009735107421875, -0.0129547119140625, -0.022186279296875, -0.004207611083984375, -0.009613037109375, 0.005126953125, 0.045684814453125, -0.0240020751953125, 0.041595458984375, -0.01265716552734375, 0.06103515625, 0.036651611328125, 0.0147857666015625, -0.0048980712890625, 0.043914794921875, -0.0009050369262695312, -0.00557708740234375, -0.007198333740234375, -0.012237548828125, -0.00557708740234375, 0.0261077880859375, 0.013916015625, 0.01374053955078125, 0.0114593505859375, 0.0185394287109375, 0.0191497802734375, -0.0157012939453125, 0.0233154296875, 0.0369873046875, -0.01239013671875, -0.021240234375, -0.005767822265625, 0.02490234375, 0.00957489013671875, 0.000004708766937255859, -0.007061004638671875, -0.0251617431640625, 0.00970458984375, -0.0132904052734375, 0.0084991455078125, -0.0167694091796875, -0.026641845703125, -0.002719879150390625, 0.009613037109375, 0.03314208984375, -0.07391357421875, -0.0163726806640625, -0.0218658447265625, -0.0251007080078125, 0.04266357421875, 0.001689910888671875, 0.029266357421875, -0.0309600830078125, -0.006603240966796875, -0.01393890380859375, 0.015289306640625, 0.0175018310546875, -0.00753021240234375, -0.047607421875, 0.00508880615234375, -0.059783935546875, -0.0214996337890625, -0.0584716796875, -0.0313720703125, -0.050140380859375, 0.01136016845703125, 0.00827789306640625, 0.0173797607421875, -0.003620147705078125, -0.038909912109375, -0.005985260009765625, -0.01629638671875, -0.003795623779296875, -0.040313720703125, -0.033233642578125, 0.0758056640625, 0.0003876686096191406, 0.06658935546875, -0.0022640228271484375, 0.021636962890625, -0.0033359527587890625, -0.00788116455078125, 0.0256805419921875, -0.062408447265625, -0.06048583984375, 0.0264434814453125, -0.1163330078125, 0.035797119140625, 0.045196533203125, -0.0099945068359375, 0.00830841064453125, -0.0189666748046875, 0.0235137939453125, -0.0237579345703125, -0.017364501953125, -0.039093017578125, -0.0438232421875, 0.003627777099609375, -0.0211334228515625, -0.001800537109375, 0.03741455078125, -0.0413818359375, 0.06396484375, 0.01200103759765625, 0.04754638671875, -0.02703857421875, -0.0006279945373535156, 0.019317626953125, 0.049041748046875, 0.0159759521484375, 0.051361083984375, 0.0171051025390625, 0.0230712890625, 0.023040771484375, 0.0011749267578125, 0.0146026611328125, -0.0007152557373046875, 0.0245819091796875, -0.027679443359375, -0.00559234619140625, -0.01593017578125, -0.0177459716796875, 0.01293182373046875, 0.08734130859375, 0.0728759765625, -0.109130859375, 0.015106201171875, -0.0103912353515625, -0.00030159950256347656, 0.043060302734375, 0.00299072265625, 0.01560211181640625, -0.0012264251708984375, 0.04150390625, 0.012908935546875, -0.004306793212890625, 0.0183258056640625, -0.01459503173828125, 0.0016183853149414062, -0.0159759521484375, 0.0389404296875, 0.00482940673828125, -0.0816650390625, 0.0116119384765625, 0.05987548828125, -0.0103759765625, 0.00455474853515625, -0.00933837890625, 0.0283966064453125, -0.01654052734375, -0.03887939453125, 0.02362060546875, -0.043304443359375, 0.0001646280288696289, -0.0057830810546875, -0.022186279296875, 0.02838134765625, 0.0433349609375, -0.01486968994140625, -0.01177978515625, 0.0278472900390625, -0.0267486572265625, -0.00762939453125, -0.023773193359375, -0.0178680419921875, -0.00429534912109375, -0.00104522705078125, 0.0160980224609375, -0.010009765625, -0.0248870849609375, -0.03619384765625, -0.0205230712890625, 0.054931640625, 0.025634765625, -0.03692626953125, 0.0147552490234375, 0.046295166015625, -0.0114593505859375, 0.023162841796875, -0.02276611328125, -0.035797119140625, -0.03173828125, -0.001750946044921875, -0.068115234375, 0.0190277099609375, -0.0047760009765625, -0.0814208984375, 0.10137939453125, -0.0255279541015625, 0.04302978515625, -0.0172882080078125, 0.050933837890625, 0.0072174072265625, 0.0275115966796875, -0.034149169921875, 0.056427001953125, -0.0014123916625976562, 0.07421875, -0.065673828125, -0.0302886962890625, 0.014892578125, 0.0731201171875, 0.03680419921875, 0.00788116455078125, -0.056488037109375, 0.01007843017578125, 0.061981201171875, 0.06378173828125, 0.023834228515625, 0.03460693359375, -0.01091766357421875, 0.0131988525390625, 0.046905517578125, -0.00235748291015625, 0.050994873046875, 0.0014925003051757812, -0.0249786376953125, 0.0025882720947265625, 0.01849365234375, 0.004642486572265625, 0.004711151123046875, -0.040191650390625, -0.059661865234375, 0.01544952392578125, 0.041748046875, 0.02789306640625, -0.020660400390625, 0.045654296875, 0.0433349609375, -0.04705810546875, -0.025665283203125, -0.0225067138671875, 0.042144775390625, 0.01861572265625, 0.048614501953125, 0.060302734375, 0.033233642578125, 0.024444580078125, -0.0014543533325195312, 0.02972412109375, -0.015960693359375, -0.0297393798828125, 0.07440185546875, 0.005771636962890625, 0.0015859603881835938, -0.07427978515625, -0.012481689453125, 0.043060302734375, 0.08294677734375, -0.05279541015625, -0.00628662109375, 0.0142364501953125, 0.0013723373413085938, -0.00927734375, -0.032073974609375, -0.01800537109375, 0.0026454925537109375, 0.0182952880859375, -0.055419921875, -0.017425537109375, 0.0293426513671875, 0.06402587890625, -0.0023365020751953125, -0.01080322265625, -0.0482177734375, -0.068115234375, -0.0191802978515625, -0.0164947509765625, 0.0160980224609375, 0.034576416015625, -0.00170135498046875, 0.03924560546875, -0.01366424560546875, -0.002460479736328125, -0.010894775390625, 0.0435791015625, 0.0138397216796875, 0.0115966796875, -0.0169219970703125, -0.03167724609375, 0.0014810562133789062, 0.0283660888671875, 0.01751708984375, 0.004489898681640625, 0.006931304931640625, 0.0253143310546875, 0.00534820556640625, -0.00980377197265625, 0.08038330078125, -0.01219940185546875, -0.011474609375, -0.021484375, -0.03143310546875, 0.0161285400390625, -0.03131103515625, 0.012603759765625, -0.00989532470703125, 0.03106689453125, -0.0102081298828125, 0.036651611328125, -0.00798797607421875, -0.01125335693359375, -0.0105743408203125, -0.00720977783203125, 0.032867431640625, 0.0208587646484375, -0.08349609375, -0.033599853515625, -0.0300750732421875, 0.0023593902587890625, 0.034942626953125, 0.0372314453125, -0.004047393798828125, 0.015380859375, 0.03717041015625, -0.048614501953125, 0.04852294921875, 0.0007166862487792969, 0.01275634765625, 0.0184478759765625, -0.0022220611572265625, -0.00472259521484375, -0.0809326171875, -0.0506591796875, -0.01264190673828125, 0.027557373046875, 0.00807952880859375, 0.0347900390625, 0.0206756591796875, 0.01181793212890625, -0.015350341796875, -0.005046844482421875, 0.00992584228515625, -0.047882080078125, 0.06787109375, 0.0012493133544921875, -0.01519012451171875, -0.01248931884765625, 0.0253753662109375, 0.015533447265625, 0.036651611328125, -0.035186767578125, -0.02569580078125, -0.005069732666015625, 0.01995849609375, 0.01007080078125, 0.0271759033203125, -0.0345458984375, 0.0018768310546875, -0.00899505615234375, -0.01302337646484375, 0.010894775390625, -0.020599365234375, -0.0166015625, 0.0295867919921875, 0.0106201171875, -0.0225372314453125, 0.013824462890625, -0.04522705078125, 0.032806396484375, 0.036834716796875, -0.015045166015625, -0.0139007568359375, 0.035888671875, -0.0014772415161132812, -0.001369476318359375, 0.0325927734375, 0.004009246826171875, 0.051361083984375, 0.0004398822784423828, -0.006679534912109375, 0.038909912109375, 0.0224456787109375, -0.00551605224609375, 0.0022602081298828125, 0.04046630859375, -0.037994384765625, -0.03460693359375, -0.004852294921875, -0.03375244140625, -0.037994384765625, 0.0377197265625, 0.036468505859375, 0.00772857666015625, 0.028564453125, -0.044647216796875, -0.0153350830078125, 0.021026611328125, -0.00911712646484375, -0.032867431640625, 0.01248931884765625, -0.024261474609375, -0.00627899169921875, -0.02264404296875, -0.01812744140625, 0.0104217529296875, 0.0229949951171875, -0.006072998046875, 0.0168304443359375, -0.0294647216796875, -0.016357421875, -0.0015039443969726562, 0.01116180419921875, 0.01212310791015625, -0.00748443603515625, 0.018798828125, 0.02252197265625, 0.033416748046875, 0.072509765625, 0.036712646484375, -0.01546478271484375, 0.034912109375, 0.01042938232421875, -0.0022029876708984375, -0.062469482421875, -0.002841949462890625, -0.0246124267578125, 0.04034423828125, -0.00585174560546875, 0.023223876953125, 0.02789306640625, -0.026519775390625, -0.07196044921875, 0.0723876953125, -0.0322265625, -0.03759765625, -0.06024169921875, 0.0003788471221923828, 0.0089263916015625, 0.00116729736328125, 0.0020160675048828125, -0.03302001953125, -0.0401611328125, 0.0140228271484375, 0.00853729248046875, 0.033447265625, -0.01511383056640625, 0.049591064453125, -0.07464599609375, 0.037109375, -0.005718231201171875, 0.00702667236328125, 0.0211334228515625, -0.01251220703125, 0.0246429443359375, 0.051971435546875, -0.0310516357421875, -0.016387939453125, -0.01201629638671875, -0.040191650390625, -0.01065826416015625, -0.02490234375, -0.038299560546875, -0.0194549560546875, 0.0285186767578125, 0.07275390625, 0.02203369140625, -0.0248870849609375, 0.0153350830078125, -0.058868408203125, -0.0193939208984375, 0.00489044189453125, -0.0052642822265625, -0.01708984375, 0.02410888671875, 0.01146697998046875, -0.03594970703125, 0.046539306640625, 0.000028967857360839844, -0.0226287841796875, 0.01540374755859375, 0.037109375, -0.00001519918441772461, -0.08526611328125, 0.043975830078125, 0.041961669921875, -0.0467529296875, -0.0212860107421875, -0.007160186767578125, -0.0087127685546875, -0.00814056396484375, -0.0380859375, -0.01415252685546875, 0.004634857177734375, -0.0136871337890625, 0.03662109375, -0.005283355712890625, 0.00803375244140625, -0.0325927734375, 0.0208740234375, -0.01219940185546875, 0.025726318359375, 0.0013914108276367188, 0.0253448486328125, -0.0009336471557617188, 0.0196380615234375, -0.00872802734375, 0.05108642578125, -0.00847625732421875, 0.0287322998046875, 0.0019092559814453125, 0.020477294921875, -0.01273345947265625, -0.00007861852645874023, 0.0297698974609375, -0.044403076171875, 0.004261016845703125, 0.0154571533203125, -0.0100555419921875, 0.0012235641479492188, 0.0163726806640625, 0.04193115234375, -0.002445220947265625, 0.00360870361328125 ]
69b0f9da2e4c2a780f0554e5f9740ada81a848a3
Wordpress Stackexchange Q: Stop wordpress from removing HTML attributes I try to insert a post with html tag with class attribute, like this: <dl class="dl-horizontal">, but after saving the post, WP removes an attribute. How can I fix it? The only way I've found, is to make a shortcode: add_shortcode('attr', 'html_attr'); function html_attr( $atts, $content = null ){ extract( shortcode_atts( array( 'tag' =>"", 'attr'=>"" ), $atts ) ); return "<" . $tag . " " . $attr . " >"; } But I don't think that it's a right way... A: Please look at the TinyMCE Advanced plugin. http://wordpress.org/extend/plugins/tinymce-advanced/ You can configure it to leave certain tags alone. it's really useful.
Q: Stop wordpress from removing HTML attributes I try to insert a post with html tag with class attribute, like this: <dl class="dl-horizontal">, but after saving the post, WP removes an attribute. How can I fix it? The only way I've found, is to make a shortcode: add_shortcode('attr', 'html_attr'); function html_attr( $atts, $content = null ){ extract( shortcode_atts( array( 'tag' =>"", 'attr'=>"" ), $atts ) ); return "<" . $tag . " " . $attr . " >"; } But I don't think that it's a right way... A: Please look at the TinyMCE Advanced plugin. http://wordpress.org/extend/plugins/tinymce-advanced/ You can configure it to leave certain tags alone. it's really useful. A: I had this problem when running multi-site and the user was only an admin of the site. I as super-admin could put whatever html attributes I wanted. I am sure the long term solution is not to raise their privileges, but it could be a place to start trouble shooting. @jochem, I have gone down the route of making the tinymce changes, but that does not seem effect editing source. If anyone has found a better solution, it would be helpful if it was posted. A: Make sure you stay in the HTML mode in the text editor. Sometimes going back in and making changes in the Visual mode can overwrite HTML elements. A: Maybe it's Kses that remove it. Try this function allow_dl_class_content() { global $allowedposttags, $allowedtags; $newattribute = "class"; $allowedposttags["dl"][$newattribute] = true; $allowedtags["dl"][$newattribute] = true; } add_action( 'init', 'allow_dl_class_content' );
wordpress
{ "language": "en", "length": 252, "provenance": "stackexchange_00019.jsonl.gz:426549", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75266" }
[ 0.01509857177734375, 0.01540374755859375, -0.04144287109375, 0.0160980224609375, 0.046356201171875, -0.049774169921875, 0.0706787109375, -0.036712646484375, -0.01690673828125, 0.037689208984375, 0.01593017578125, 0.01161956787109375, 0.0207672119140625, -0.023040771484375, 0.01093292236328125, -0.0042724609375, 0.0082244873046875, 0.01224517822265625, 0.0185089111328125, -0.0131683349609375, 0.01207733154296875, 0.00179290771484375, -0.01129150390625, -0.002155303955078125, 0.009674072265625, -0.0090179443359375, 0.07366943359375, -0.01708984375, -0.00439453125, -0.017852783203125, 0.01526641845703125, 0.0010166168212890625, 0.03240966796875, 0.04071044921875, -0.06121826171875, 0.041351318359375, -0.015594482421875, 0.024566650390625, 0.00724029541015625, 0.003665924072265625, 0.019683837890625, -0.0159149169921875, 0.048675537109375, -0.0145416259765625, -0.00015401840209960938, -0.01425933837890625, 0.031005859375, -0.0295257568359375, 0.033538818359375, -0.03643798828125, 0.0139007568359375, 0.023590087890625, 0.0234222412109375, -0.0282745361328125, -0.0236358642578125, 0.01258087158203125, -0.034149169921875, -0.01003265380859375, 0.0235137939453125, 0.036224365234375, 0.00923919677734375, -0.01324462890625, 0.002044677734375, -0.0266571044921875, -0.0107269287109375, 0.0175018310546875, 0.0244903564453125, -0.00930023193359375, -0.03271484375, 0.0120697021484375, 0.040130615234375, -0.026153564453125, -0.00632476806640625, -0.024566650390625, 0.0286712646484375, -0.0102691650390625, -0.0015954971313476562, -0.0124359130859375, -0.0063934326171875, 0.03619384765625, 0.047119140625, 0.00048232078552246094, -0.0026187896728515625, -0.01271820068359375, 0.0196685791015625, 0.01316070556640625, 0.005870819091796875, -0.0216522216796875, 0.00927734375, -0.006000518798828125, -0.01202392578125, 0.0364990234375, 0.020416259765625, 0.01116943359375, -0.053619384765625, 0.00701141357421875, 0.01493072509765625, 0.0140838623046875, 0.0125885009765625, 0.03125, -0.006923675537109375, -0.04150390625, 0.0333251953125, -0.041534423828125, 0.006389617919921875, 0.016387939453125, -0.0156707763671875, 0.02056884765625, 0.045501708984375, 0.03924560546875, -0.00379180908203125, 0.01422119140625, -0.01393890380859375, -0.012115478515625, -0.0219268798828125, 0.0181884765625, -0.0374755859375, 0.0011606216430664062, 0.0008420944213867188, 0.01427459716796875, -0.02276611328125, 0.01416015625, -0.0278167724609375, -0.036834716796875, 0.020782470703125, -0.004970550537109375, 0.00763702392578125, 0.00786590576171875, 0.046630859375, 0.0062255859375, -0.0162811279296875, 0.01409912109375, 0.007122039794921875, 0.004497528076171875, -0.0151214599609375, -0.005222320556640625, 0.0286407470703125, -0.014739990234375, -0.02099609375, 0.01103973388671875, -0.006725311279296875, -0.0102691650390625, -0.00853729248046875, -0.04046630859375, -0.0111236572265625, 0.0182952880859375, 0.01861572265625, 0.01837158203125, -0.01517486572265625, -0.0687255859375, 0.054473876953125, -0.056915283203125, 0.062225341796875, 0.002208709716796875, -0.02130126953125, -0.046722412109375, 0.060516357421875, -0.03814697265625, -0.0144195556640625, -0.0677490234375, -0.00445556640625, -0.00011026859283447266, 0.027130126953125, -0.059539794921875, -0.07080078125, 0.0007128715515136719, -0.069091796875, -0.0187225341796875, 0.027862548828125, 0.0291900634765625, -0.0110931396484375, 0.009552001953125, 0.0345458984375, 0.0174407958984375, -0.011688232421875, 0.0110626220703125, 0.006023406982421875, 0.0113372802734375, 0.041168212890625, -0.0142059326171875, -0.0197906494140625, -0.0286712646484375, 0.1021728515625, -0.033050537109375, -0.036468505859375, 0.0240020751953125, 0.01145172119140625, 0.0509033203125, 0.003543853759765625, 0.028045654296875, 0.0118865966796875, 0.0206298828125, 0.00531768798828125, -0.00412750244140625, 0.0439453125, -0.04248046875, -0.0236053466796875, -0.0243682861328125, 0.00174713134765625, -0.0202178955078125, 0.006961822509765625, -0.0028781890869140625, 0.0279083251953125, -0.01763916015625, -0.0009627342224121094, -0.00213623046875, -0.0037822723388671875, 0.037322998046875, -0.07293701171875, 0.010711669921875, 0.04144287109375, -0.0190277099609375, -0.0201568603515625, 0.005519866943359375, 0.035308837890625, -0.005573272705078125, -0.0018377304077148438, 0.039398193359375, 0.003376007080078125, 0.020111083984375, 0.0172882080078125, -0.045745849609375, 0.01861572265625, -0.019012451171875, 0.005336761474609375, -0.0170745849609375, 0.0005369186401367188, -0.022064208984375, -0.00547027587890625, 0.0071258544921875, 0.00738525390625, 0.01250457763671875, 0.02520751953125, 0.04766845703125, -0.04376220703125, -0.032440185546875, -0.06634521484375, -0.066650390625, 0.01105499267578125, 0.06329345703125, 0.034942626953125, 0.039031982421875, -0.0005049705505371094, -0.0037822723388671875, 0.030609130859375, -0.0302734375, 0.03533935546875, -0.0297393798828125, -0.00885009765625, -0.00809478759765625, 0.039306640625, -0.01059722900390625, 0.018310546875, -0.019927978515625, 0.0201568603515625, 0.01209259033203125, 0.011627197265625, 0.0074920654296875, -0.01239776611328125, 0.0094757080078125, 0.0085906982421875, -0.005710601806640625, -0.0285186767578125, -0.0124053955078125, 0.03387451171875, 0.00830078125, 0.0474853515625, 0.0243682861328125, -0.0184478759765625, 0.0168609619140625, 0.01473236083984375, -0.0155487060546875, 0.005252838134765625, 0.0104217529296875, 0.0167388916015625, 0.0556640625, -0.03631591796875, -0.00302886962890625, 0.04217529296875, 0.02178955078125, -0.0264129638671875, 0.03729248046875, 0.0226593017578125, -0.02288818359375, -0.01715087890625, -0.05072021484375, 0.0084381103515625, -0.040130615234375, -0.0177764892578125, -0.0369873046875, -0.022216796875, 0.043548583984375, -0.00260162353515625, 0.0330810546875, 0.06060791015625, -0.01428985595703125, -0.01360321044921875, -0.0041046142578125, 0.01568603515625, 0.011810302734375, 0.063232421875, 0.0753173828125, 0.028839111328125, 0.00867462158203125, 0.0111846923828125, -0.0004413127899169922, 0.0055389404296875, -0.0030269622802734375, -0.003780364990234375, 0.0122528076171875, -0.0565185546875, 0.03289794921875, 0.0274200439453125, 0.027923583984375, 0.002048492431640625, -0.043548583984375, -0.00048542022705078125, 0.013671875, -0.06298828125, -0.05084228515625, 0.047332763671875, -0.0178070068359375, -0.019287109375, 0.0250244140625, -0.036834716796875, -0.0201263427734375, 0.0625, -0.01161956787109375, -0.0258636474609375, -0.006603240966796875, -0.0132904052734375, -0.03204345703125, -0.0295867919921875, 0.0008363723754882812, -0.00371551513671875, 0.0087738037109375, 0.0042877197265625, 0.0245819091796875, -0.0018606185913085938, -0.02618408203125, 0.0298919677734375, -0.008575439453125, -0.022674560546875, 0.00536346435546875, -0.0030460357666015625, -0.0211181640625, -0.00881195068359375, 0.000339508056640625, 0.005462646484375, 0.00957489013671875, 0.001972198486328125, -0.0192718505859375, -0.01264190673828125, -0.01534271240234375, 0.031341552734375, 0.0147552490234375, -0.01306915283203125, 0.030426025390625, 0.059783935546875, -0.0172576904296875, -0.0255126953125, 0.004085540771484375, -0.0200347900390625, -0.006103515625, -0.02545166015625, -0.004650115966796875, -0.0206298828125, 0.043792724609375, 0.019012451171875, 0.01291656494140625, 0.057861328125, -0.0038509368896484375, -0.0048370361328125, -0.0274658203125, -0.027740478515625, -0.04791259765625, 0.04290771484375, 0.0012502670288085938, -0.03173828125, -0.006381988525390625, 0.0112457275390625, -0.0056915283203125, -0.022125244140625, -0.05322265625, -0.00257110595703125, 0.0243377685546875, -0.0079498291015625, 0.035369873046875, 0.0012311935424804688, -0.01184844970703125, 0.01139068603515625, 0.05413818359375, -0.04730224609375, -0.00493621826171875, 0.0098419189453125, 0.009429931640625, -0.0184478759765625, -0.03729248046875, -0.0616455078125, -0.00885009765625, -0.04681396484375, 0.0101470947265625, -0.0111846923828125, -0.008941650390625, -0.0450439453125, 0.0243072509765625, -0.034393310546875, -0.030914306640625, 0.04437255859375, -0.06439208984375, 0.00311279296875, -0.0019140243530273438, -0.01062774658203125, -0.0540771484375, -0.031280517578125, -0.016082763671875, -0.06304931640625, -0.0014286041259765625, -0.0462646484375, 0.056915283203125, -0.00506591796875, 0.037017822265625, -0.0396728515625, 0.02984619140625, 0.0041656494140625, 0.0093536376953125, 0.006771087646484375, 0.0166778564453125, -0.034454345703125, -0.00739288330078125, -0.0005755424499511719, -0.0318603515625, -0.004032135009765625, -0.019989013671875, -0.0251617431640625, 0.01276397705078125, -0.039276123046875, 0.00809478759765625, -0.0174560546875, -0.0169525146484375, -0.0266876220703125, -0.04608154296875, -0.01398468017578125, 0.044708251953125, 0.0055694580078125, 0.022705078125, -0.07342529296875, -0.037567138671875, 0.048126220703125, 0.0211944580078125, 0.0009675025939941406, -0.01242828369140625, 0.06622314453125, 0.016510009765625, -0.0294647216796875, -0.0172119140625, 0.0374755859375, 0.046356201171875, -0.0196685791015625, 0.055084228515625, 0.0292205810546875, -0.006000518798828125, 0.0268402099609375, -0.008758544921875, 0.02203369140625, -0.082763671875, 0.08984375, 0.0300140380859375, 0.060943603515625, -0.02764892578125, 0.0262451171875, 0.04010009765625, -0.021392822265625, 0.017303466796875, -0.0194854736328125, 0.06744384765625, 0.0121002197265625, 0.004364013671875, -0.0210723876953125, 0.0032215118408203125, -0.0516357421875, 0.0238037109375, 0.0228424072265625, -0.0184478759765625, 0.03253173828125, -0.00913238525390625, 0.022125244140625, -0.0189971923828125, -0.00327301025390625, -0.0533447265625, -0.03411865234375, -0.040252685546875, 0.0210113525390625, -0.053466796875, -0.030517578125, -0.00518035888671875, -0.01239776611328125, 0.053192138671875, 0.0258331298828125, -0.041229248046875, 0.0193634033203125, -0.0013437271118164062, -0.006195068359375, -0.0029201507568359375, -0.013214111328125, 0.026031494140625, 0.0083160400390625, 0.0352783203125, 0.006229400634765625, -0.0259857177734375, 0.021087646484375, -0.0103912353515625, 0.0002696514129638672, -0.0171966552734375, -0.003398895263671875, 0.01045989990234375, 0.00829315185546875, 0.009002685546875, -0.006801605224609375, -0.017486572265625, 0.013885498046875, -0.0165863037109375, 0.04925537109375, 0.033172607421875, -0.0306854248046875, -0.01947021484375, 0.0301666259765625, -0.019012451171875, -0.059295654296875, 0.01137542724609375, 0.032501220703125, 0.0684814453125, 0.02716064453125, -0.036895751953125, -0.0029468536376953125, -0.04443359375, -0.00017130374908447266, 0.04730224609375, -0.0257415771484375, -0.057769775390625, -0.01131439208984375, 0.033172607421875, 0.048431396484375, -0.037872314453125, -0.00379180908203125, -0.01322174072265625, -0.02508544921875, -0.046356201171875, 0.019256591796875, -0.07489013671875, -0.005130767822265625, 0.0028133392333984375, -0.0400390625, -0.0237579345703125, -0.028778076171875, -0.007354736328125, -0.0126190185546875, 0.00701904296875, -0.01715087890625, 0.005157470703125, -0.0379638671875, 0.036865234375, -0.024505615234375, 0.0008335113525390625, -0.05157470703125, 0.017578125, 0.0269317626953125, 0.0251617431640625, -0.0386962890625, -0.0300445556640625, -0.0491943359375, -0.0298614501953125, -0.031219482421875, -0.0211181640625, -0.024566650390625, 0.0244598388671875, 0.0126953125, 0.039306640625, -0.0231170654296875, -0.0350341796875, 0.01983642578125, 0.01033782958984375, -0.006305694580078125, 0.05194091796875, -0.0250244140625, 0.0150909423828125, -0.0092315673828125, 0.037841796875, -0.0127410888671875, 0.01132965087890625, 0.056610107421875, -0.030609130859375, 0.051849365234375, -0.035888671875, -0.0628662109375, -0.028350830078125, -0.0595703125, 0.0148773193359375, 0.0290985107421875, -0.030029296875, -0.0024204254150390625, -0.006397247314453125, 0.007110595703125, -0.0258331298828125, 0.04608154296875, -0.01824951171875, 0.013458251953125, 0.0100250244140625, -0.053680419921875, -0.032501220703125, 0.01480865478515625, 0.0155181884765625, 0.03314208984375, -0.0264892578125, 0.00768280029296875, 0.0177459716796875, 0.051177978515625, -0.0594482421875, 0.002002716064453125, 0.006244659423828125, 0.0643310546875, 0.041412353515625, 0.056610107421875, 0.0679931640625, 0.026641845703125, -0.0030956268310546875, 0.004467010498046875, 0.06951904296875, 0.0007271766662597656, -0.031341552734375, 0.01678466796875, -0.041839599609375, 0.027923583984375, 0.03765869140625, 0.07586669921875, -0.04248046875, 0.0023097991943359375, 0.028778076171875, -0.04864501953125, 0.004901885986328125, -0.0018873214721679688, 0.00295257568359375, -0.030181884765625, -0.0033130645751953125, 0.03985595703125, -0.0198516845703125, -0.00649261474609375, 0.0300140380859375, -0.0024566650390625, -0.043304443359375, 0.006206512451171875, -0.0036067962646484375, -0.0274810791015625, 0.01428985595703125, 0.0202178955078125, -0.00885009765625, -0.0202178955078125, 0.0240936279296875, 0.0178985595703125, -0.0235443115234375, -0.10003662109375, -0.0166778564453125, 0.00551605224609375, -0.061553955078125, 0.01751708984375, 0.00855255126953125, 0.0472412109375, 0.0276031494140625, -0.004512786865234375, -0.0121307373046875, 0.0008325576782226562, -0.0208282470703125, -0.021240234375, -0.0225677490234375, 0.02069091796875, 0.025146484375, -0.01364898681640625, 0.0316162109375, 0.01540374755859375, -0.042449951171875, -0.001773834228515625, -0.037811279296875, -0.00439453125, -0.025909423828125, -0.004734039306640625, 0.0218353271484375, -0.011474609375, 0.01085662841796875, -0.06231689453125, -0.025909423828125, -0.055450439453125, -0.0123443603515625, -0.052215576171875, -0.026275634765625, 0.016510009765625, -0.08892822265625, -0.12359619140625, 0.1053466796875, 0.07293701171875, 0.060302734375, -0.052642822265625, 0.035919189453125, -0.02923583984375, -0.0016012191772460938, -0.005855560302734375, 0.036834716796875, 0.02178955078125, -0.0175323486328125, -0.00376129150390625, -0.0008540153503417969, -0.00923919677734375, 0.0300445556640625, -0.0096435546875, -0.00453948974609375, 0.0107879638671875, 0.00887298583984375, 0.045867919921875, 0.0177154541015625, -0.00522613525390625, 0.00933074951171875, -0.0198211669921875, 0.042022705078125, 0.015106201171875, -0.06658935546875, 0.02191162109375, -0.0204315185546875, -0.0205535888671875, 0.0239105224609375, -0.00638580322265625, -0.0173187255859375, 0.0252685546875, -0.0341796875, -0.00902557373046875, 0.0182952880859375, -0.0214691162109375, 0.0163421630859375, 0.00431060791015625, 0.03875732421875, 0.033905029296875, -0.0533447265625, -0.110595703125, -0.006923675537109375, 0.0218658447265625, 0.003902435302734375, 0.04962158203125, 0.0149993896484375, 0.004486083984375, 0.0831298828125, 0.00859832763671875, 0.0182037353515625, 0.0221405029296875, 0.0041046142578125, -0.0111083984375, -0.00740814208984375, 0.00811767578125, -0.056304931640625, 0.00826263427734375, 0.05792236328125, 0.0184173583984375, -0.021331787109375, 0.000568389892578125, 0.0167694091796875, 0.0006766319274902344, -0.0161895751953125, -0.04986572265625, -0.0088958740234375, -0.06353759765625, -0.0203399658203125, 0.0036468505859375, -0.02783203125, 0.0010089874267578125, 0.055450439453125, 0.0216064453125, 0.04718017578125, -0.047119140625, -0.07171630859375, -0.046356201171875, -0.02435302734375, 0.035858154296875, 0.041259765625, 0.04046630859375, 0.0270843505859375, 0.0295257568359375, -0.0242767333984375, -0.0178680419921875, 0.01267242431640625, -0.0289764404296875, 0.009613037109375, -0.0164794921875, -0.0298004150390625, -0.0106048583984375, 0.019744873046875, 0.0208892822265625, 0.051727294921875, 0.08746337890625, 0.0196075439453125, -0.03924560546875, 0.0084686279296875, 0.0007839202880859375, -0.042816162109375, -0.0010852813720703125, -0.03460693359375, 0.006343841552734375, 0.0270538330078125, -0.0080413818359375, -0.01325225830078125, -0.0123291015625, 0.05419921875, -0.0189056396484375, 0.0099029541015625, 0.00760650634765625, -0.0232696533203125, 0.045684814453125, -0.01293182373046875, 0.0224151611328125, 0.0027446746826171875, -0.036041259765625, -0.021881103515625, -0.0171051025390625, -0.01287078857421875, 0.034210205078125, 0.03521728515625, -0.0252227783203125, 0.020904541015625, 0.017303466796875, -0.036102294921875, -0.0149078369140625, 0.03558349609375, 0.01678466796875, 0.06298828125, 0.010986328125, 0.0305633544921875, -0.005161285400390625, 0.00981903076171875, 0.0174102783203125, 0.0255126953125, -0.0240020751953125, 0.05401611328125, -0.0169525146484375, -0.005847930908203125, -0.01336669921875, 0.0250091552734375, -0.041046142578125, -0.014312744140625, 0.0217132568359375, -0.0283660888671875, -0.0116729736328125, 0.0022258758544921875, -0.0068817138671875, 0.046478271484375, 0.00511932373046875, 0.004154205322265625, -0.00360870361328125, -0.001407623291015625, 0.006740570068359375, 0.0277252197265625, 0.03179931640625, -0.017303466796875, 0.003993988037109375, -0.04571533203125, -0.0267333984375, 0.03533935546875, -0.0159149169921875, -0.0236358642578125, 0.0028076171875, 0.04559326171875, -0.02899169921875, 0.0322265625, 0.0015974044799804688, 0.057464599609375, 0.038238525390625, 0.0034313201904296875, -0.029205322265625, 0.0238494873046875, -0.0201873779296875, 0.019073486328125, 0.01198577880859375, 0.034942626953125, 0.0248260498046875, -0.06878662109375, 0.022369384765625, 0.050933837890625, 0.068603515625, 0.0027923583984375, 0.037139892578125, -0.0018253326416015625, -0.0024280548095703125, 0.01541900634765625, 0.035797119140625, -0.0292510986328125, -0.0479736328125, -0.00689697265625, 0.01512908935546875, -0.07086181640625, -0.020477294921875, -0.11614990234375, -0.0243072509765625, 0.052581787109375, 0.0065765380859375, -0.0341796875, -0.04693603515625, 0.0184478759765625, 0.09222412109375, 0.0059051513671875, 0.0096282958984375, -0.005344390869140625, 0.035888671875, -0.056549072265625, -0.048797607421875, -0.03265380859375, 0.045745849609375, -0.060638427734375, 0.055084228515625, 0.034454345703125, -0.0307159423828125, 0.0201568603515625, 0.018524169921875, 0.03594970703125, 0.06683349609375, -0.00780487060546875, -0.0159759521484375, 0.008026123046875, 0.013427734375, -0.004486083984375, -0.0670166015625, -0.019622802734375, -0.038604736328125, 0.0205841064453125, -0.0062713623046875, -0.0019817352294921875, 0.0074310302734375, -0.04205322265625, -0.07421875, 0.05328369140625, -0.01313018798828125, -0.038116455078125, 0.09027099609375, -0.0278167724609375, -0.054718017578125, 0.043670654296875, 0.037322998046875, -0.006740570068359375, 0.0413818359375, 0.007843017578125, 0.01367950439453125, 0.03387451171875, 0.0279693603515625, -0.024017333984375, -0.0203399658203125, -0.01004791259765625, -0.0233917236328125, 0.03472900390625, -0.006008148193359375, 0.007541656494140625, 0.01068115234375, 0.0184173583984375, -0.043975830078125, -0.027679443359375, 0.001617431640625, 0.0102081298828125, 0.026947021484375, -0.03997802734375, -0.05548095703125, -0.050933837890625, 0.025848388671875, 0.030181884765625, 0.00876617431640625, 0.00565338134765625, 0.01305389404296875, -0.01282501220703125, -0.0308380126953125, -0.004749298095703125, 0.020721435546875, -0.03662109375, -0.0201416015625, 0.002155303955078125, 0.00421142578125, 0.0148162841796875, 0.0152435302734375, -0.0095062255859375, -0.0138397216796875, 0.0282135009765625, 0.006439208984375, -0.07464599609375, 0.06890869140625, -0.0025157928466796875, -0.01082611083984375, 0.03424072265625, -0.0264739990234375, -0.01540374755859375, 0.0256500244140625, -0.010284423828125, -0.0069427490234375, 0.00124359130859375, -0.02630615234375, 0.01174163818359375, -0.00609588623046875, 0.02508544921875, -0.040679931640625, -0.002994537353515625, -0.034942626953125, -0.01496124267578125, 0.01122283935546875, -0.0190277099609375, -0.00443267822265625, -0.0108795166015625, 0.01366424560546875, -0.0034351348876953125, -0.0256805419921875, -0.00902557373046875, -0.0142669677734375, 0.0211944580078125, -0.01021575927734375, 0.00504302978515625, 0.040679931640625, -0.0305938720703125, -0.003887176513671875, 0.01027679443359375, 0.045928955078125, -0.046783447265625, 0.034088134765625, -0.015594482421875, 0.0304718017578125, 0.018585205078125 ]
56f4470a7bebab58b05c590e9f04d7eccce0f5c6
Wordpress Stackexchange Q: Populate content on install I would like to know if there's a way to populate a WordPress site with some dummy content while installation process is going on. Let's say a few sample pages, a fews posts, taxonomy and that's it. I'm not sure if this is possible since I haven't found proper documentation. A: Searching for another thing, just stumbled upon this gem by @anmari :) You have to put a Dropin plugin at the root of wp-content. Should be named install.php and contain a new version of the pluggable function wp_install_defaults. I used this gist for testing. And the only modification from the original function is the default category name and slug. There's a similar Q&A at StackOverflow and Michael notice is worth copying: Since a default category of some kind is assumed, it's a good idea to create a least one category
Q: Populate content on install I would like to know if there's a way to populate a WordPress site with some dummy content while installation process is going on. Let's say a few sample pages, a fews posts, taxonomy and that's it. I'm not sure if this is possible since I haven't found proper documentation. A: Searching for another thing, just stumbled upon this gem by @anmari :) You have to put a Dropin plugin at the root of wp-content. Should be named install.php and contain a new version of the pluggable function wp_install_defaults. I used this gist for testing. And the only modification from the original function is the default category name and slug. There's a similar Q&A at StackOverflow and Michael notice is worth copying: Since a default category of some kind is assumed, it's a good idea to create a least one category A: Use plugins like : WP DUMMY CONTENT Easy generation and deletion of blog posts, pages, and sub pages for developers. Full site structure in one click. DEMO DATA CREATOR Demo Data Creator is a WordPress and BuddyPress plugin that allows a WordPress developer to create demo users, blogs, posts, comments and blogroll links. Well and of course this plugins will be installed after installation is done! A: 1.Your best bet is to use the theme unit test XML import after install, it can be found here: https://wpcom-themes.svn.automattic.com/demo/theme-unit-test-data.xml it includes images and tons of stuff. * *You need to go to Tools -> Import 2.The option to do it during install is to use brasofilo idea and create you own install. script by creating the following file: wp-content/install.php. 3.A third option is to use mu-plugins http://codex.wordpress.org/Must_Use_Plugins which must be in the wp-content/mu-plugins directory by default (it can be changed) and can be named anything. A better solution is to use a build system like wp-cli, phing, capistrano, etc, to run the install and include the needed data. For example I have a Phing script that deletes the default WP data on install and it would be easy to add data if you wanted to or drop in some mu-pluginsor just do it right in the script. In fact I might just go ahead and do this, it's a good idea.
wordpress
{ "language": "en", "length": 376, "provenance": "stackexchange_00019.jsonl.gz:426597", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75420" }
[ 0.0165252685546875, 0.0153350830078125, 0.006145477294921875, -0.0144500732421875, 0.0126190185546875, -0.0238189697265625, 0.02423095703125, -0.05224609375, -0.01800537109375, 0.00626373291015625, -0.03662109375, 0.003803253173828125, -0.027496337890625, -0.030731201171875, 0.0106964111328125, -0.061004638671875, 0.0251312255859375, 0.0096282958984375, 0.050506591796875, -0.01080322265625, 0.010986328125, -0.002910614013671875, 0.05767822265625, 0.052398681640625, 0.00464630126953125, 0.0162811279296875, 0.0216522216796875, -0.031341552734375, -0.0169830322265625, -0.03521728515625, -0.0009975433349609375, 0.0145416259765625, 0.005580902099609375, 0.014434814453125, -0.00235748291015625, 0.040496826171875, 0.0236663818359375, 0.0162353515625, 0.0135040283203125, 0.03314208984375, 0.01485443115234375, -0.0018024444580078125, 0.0498046875, 0.0157318115234375, 0.0148162841796875, -0.0421142578125, 0.0312347412109375, -0.0638427734375, 0.03460693359375, -0.046875, 0.0211639404296875, 0.01381683349609375, 0.03765869140625, -0.0797119140625, -0.01117706298828125, 0.0152435302734375, -0.0283203125, 0.07415771484375, 0.0655517578125, -0.044403076171875, -0.0662841796875, -0.0230255126953125, 0.024932861328125, -0.0102081298828125, 0.0316162109375, -0.01361846923828125, -0.005062103271484375, 0.038604736328125, -0.06195068359375, 0.044158935546875, 0.041839599609375, -0.044647216796875, -0.006587982177734375, -0.032806396484375, 0.01120758056640625, 0.019744873046875, 0.0007085800170898438, 0.0006604194641113281, 0.0023040771484375, 0.012969970703125, -0.0031337738037109375, 0.016204833984375, 0.041046142578125, -0.0712890625, 0.046417236328125, -0.037811279296875, -0.0006165504455566406, 0.00772857666015625, -0.0211639404296875, 0.005168914794921875, -0.0119476318359375, -0.01331329345703125, -0.0313720703125, 0.037322998046875, -0.00998687744140625, 0.00516510009765625, 0.038421630859375, 0.03826904296875, 0.017120361328125, 0.0249786376953125, -0.028045654296875, -0.03533935546875, 0.0174560546875, -0.03887939453125, 0.021942138671875, 0.0181732177734375, -0.031585693359375, -0.035919189453125, 0.05059814453125, 0.033355712890625, -0.0023174285888671875, 0.042083740234375, -0.032135009765625, -0.033782958984375, -0.030792236328125, 0.03717041015625, -0.03741455078125, 0.000035822391510009766, 0.0179901123046875, 0.017242431640625, -0.0032482147216796875, 0.010040283203125, 0.0018825531005859375, -0.038726806640625, -0.011566162109375, -0.0288238525390625, -0.02069091796875, -0.0205841064453125, -0.046875, -0.0193023681640625, -0.026214599609375, 0.044769287109375, 0.08587646484375, 0.03961181640625, 0.002979278564453125, 0.0033130645751953125, -0.017486572265625, 0.0150909423828125, 0.0016145706176757812, -0.0026798248291015625, -0.0029773712158203125, -0.0260467529296875, 0.0186309814453125, -0.0141448974609375, 0.055908203125, 0.020263671875, 0.00197601318359375, 0.01183319091796875, 0.04803466796875, -0.00804901123046875, 0.0098724365234375, -0.01035308837890625, 0.03167724609375, -0.0147247314453125, 0.00487518310546875, -0.0304107666015625, -0.0175018310546875, -0.0108184814453125, -0.001552581787109375, 0.00897216796875, -0.0048065185546875, -0.006443023681640625, -0.00685882568359375, 0.0006508827209472656, -0.011749267578125, 0.007663726806640625, 0.00432586669921875, 0.01007843017578125, 0.017791748046875, -0.01641845703125, 0.0032482147216796875, 0.002109527587890625, -0.007415771484375, -0.01092529296875, 0.007129669189453125, 0.00766754150390625, 0.006107330322265625, -0.00817108154296875, 0.028564453125, 0.0399169921875, -0.0129547119140625, -0.023529052734375, 0.0908203125, -0.035430908203125, -0.055999755859375, -0.006587982177734375, -0.00714111328125, 0.025177001953125, 0.0655517578125, 0.0173187255859375, 0.0167083740234375, -0.03802490234375, -0.06976318359375, 0.0046234130859375, -0.01032257080078125, 0.00860595703125, -0.037811279296875, -0.0022373199462890625, -0.01221466064453125, -0.0006690025329589844, -0.007781982421875, -0.00424957275390625, 0.01239013671875, 0.044769287109375, 0.022613525390625, -0.00771331787109375, 0.006046295166015625, -0.0169219970703125, -0.006771087646484375, -0.003276824951171875, 0.0115509033203125, -0.0245208740234375, 0.025482177734375, -0.053070068359375, -0.036651611328125, -0.0247039794921875, -0.0406494140625, 0.0325927734375, -0.01055145263671875, 0.0316162109375, -0.00476837158203125, -0.02264404296875, 0.01776123046875, -0.0020961761474609375, 0.0357666015625, -0.00983428955078125, -0.01140594482421875, -0.0028324127197265625, 0.050872802734375, 0.0077972412109375, 0.00923919677734375, -0.0049896240234375, 0.010955810546875, -0.01568603515625, -0.043121337890625, 0.01067352294921875, -0.0109710693359375, -0.037353515625, -0.01061248779296875, 0.052490234375, 0.041656494140625, 0.037933349609375, -0.001628875732421875, -0.01824951171875, 0.09442138671875, 0.00421142578125, 0.0266571044921875, -0.04278564453125, 0.0229644775390625, 0.08868408203125, -0.00939178466796875, 0.0169830322265625, -0.01316070556640625, -0.058563232421875, 0.0177154541015625, 0.020538330078125, -0.034271240234375, -0.027801513671875, 0.0153045654296875, -0.022369384765625, 0.0178985595703125, 0.0012073516845703125, -0.004688262939453125, -0.0017347335815429688, 0.00960540771484375, 0.0098724365234375, 0.01419830322265625, 0.0169525146484375, -0.01352691650390625, 0.006496429443359375, 0.007587432861328125, -0.0294189453125, 0.002269744873046875, 0.00884246826171875, 0.0298004150390625, -0.045684814453125, -0.02166748046875, -0.01535797119140625, 0.032623291015625, -0.00433349609375, -0.0094146728515625, 0.005886077880859375, -0.016143798828125, -0.0018930435180664062, -0.00923919677734375, -0.061248779296875, 0.01087188720703125, 0.0109710693359375, -0.0261077880859375, -0.0301971435546875, -0.006649017333984375, 0.0487060546875, 0.006824493408203125, 0.005191802978515625, -0.00247955322265625, -0.0000979304313659668, 0.03302001953125, -0.06884765625, 0.035247802734375, -0.027252197265625, 0.047607421875, 0.08294677734375, 0.047271728515625, -0.034454345703125, -0.005374908447265625, 0.01165008544921875, 0.0150909423828125, -0.00006341934204101562, -0.017181396484375, -0.0234832763671875, -0.02667236328125, -0.0160369873046875, 0.03558349609375, 0.049102783203125, 0.009521484375, -0.028900146484375, 0.008544921875, 0.040008544921875, -0.038177490234375, -0.0654296875, -0.0005984306335449219, -0.0288543701171875, 0.007598876953125, -0.0139923095703125, -0.001361846923828125, -0.0274810791015625, -0.00830841064453125, 0.0078582763671875, -0.0269622802734375, -0.05828857421875, -0.054107666015625, -0.0941162109375, -0.05181884765625, -0.022613525390625, -0.00548553466796875, -0.015960693359375, 0.01290130615234375, 0.0255889892578125, 0.006641387939453125, -0.05584716796875, -0.0028228759765625, 0.044403076171875, 0.005268096923828125, -0.0031604766845703125, 0.0249786376953125, -0.014373779296875, -0.00806427001953125, 0.0086517333984375, 0.01690673828125, 0.036102294921875, -0.0211181640625, -0.00917816162109375, -0.0237274169921875, -0.019561767578125, -0.00887298583984375, -0.01108551025390625, 0.0183563232421875, 0.005718231201171875, -0.0200042724609375, -0.049285888671875, 0.041168212890625, 0.00823974609375, -0.00897979736328125, -0.0330810546875, 0.0017957687377929688, -0.031585693359375, -0.004604339599609375, -0.035400390625, -0.030792236328125, -0.0223541259765625, 0.025390625, -0.01003265380859375, -0.0134429931640625, -0.038238525390625, -0.047393798828125, -0.00403594970703125, 0.0180816650390625, -0.0247955322265625, -0.0121002197265625, 0.01013946533203125, 0.0125732421875, 0.00860595703125, -0.017303466796875, -0.0149688720703125, -0.06927490234375, 0.05316162109375, 0.0016336441040039062, 0.0350341796875, -0.05194091796875, -0.03582763671875, -0.003810882568359375, 0.1297607421875, -0.05865478515625, -0.00746917724609375, 0.031768798828125, 0.01458740234375, -0.0169219970703125, -0.004734039306640625, -0.07891845703125, -0.0200653076171875, -0.05865478515625, 0.01532745361328125, 0.0012359619140625, -0.0179443359375, -0.020355224609375, 0.0050048828125, -0.024139404296875, -0.042449951171875, 0.0298614501953125, -0.025177001953125, 0.051116943359375, -0.007312774658203125, 0.02215576171875, -0.0004787445068359375, -0.0169219970703125, -0.0325927734375, -0.07647705078125, -0.022430419921875, -0.004032135009765625, 0.049530029296875, -0.00804901123046875, 0.039398193359375, -0.01467132568359375, 0.049072265625, 0.0113067626953125, 0.044708251953125, 0.0428466796875, 0.0272064208984375, -0.0092620849609375, -0.050628662109375, 0.06170654296875, -0.061431884765625, -0.0228118896484375, -0.05419921875, -0.01540374755859375, 0.03826904296875, -0.01190948486328125, 0.054107666015625, -0.0124969482421875, 0.0125579833984375, 0.00685882568359375, -0.0229644775390625, -0.00858306884765625, -0.00920867919921875, -0.020782470703125, 0.0167999267578125, -0.01253509521484375, 0.016876220703125, 0.00162506103515625, -0.01513671875, -0.021728515625, 0.00986480712890625, 0.0523681640625, 0.032440185546875, -0.0053558349609375, 0.003021240234375, 0.0435791015625, 0.0235443115234375, 0.005619049072265625, 0.06591796875, 0.0257110595703125, 0.023040771484375, 0.0277557373046875, -0.0009765625, 0.0184326171875, 0.0041046142578125, 0.02740478515625, 0.01216888427734375, -0.0221405029296875, 0.03131103515625, 0.0145721435546875, -0.02362060546875, 0.047576904296875, -0.01155853271484375, 0.02301025390625, 0.014251708984375, -0.006175994873046875, -0.048126220703125, 0.0082550048828125, -0.019195556640625, -0.00991058349609375, -0.0037631988525390625, -0.005924224853515625, -0.01210784912109375, 0.0164337158203125, -0.006671905517578125, -0.01390838623046875, 0.01062774658203125, -0.01611328125, 0.059814453125, 0.01568603515625, 0.0175018310546875, 0.013702392578125, 0.0426025390625, -0.01401519775390625, 0.027679443359375, -0.00853729248046875, 0.01357269287109375, -0.01690673828125, -0.058380126953125, -0.0148162841796875, -0.01175689697265625, 0.025848388671875, 0.033172607421875, -0.0033054351806640625, -0.009307861328125, -0.0004329681396484375, -0.0229644775390625, 0.001743316650390625, 0.020751953125, 0.00260162353515625, -0.0147247314453125, -0.0244140625, -0.023681640625, -0.0185699462890625, -0.01213836669921875, 0.01442718505859375, -0.02764892578125, 0.0028553009033203125, -0.004398345947265625, 0.0322265625, 0.0562744140625, -0.0133819580078125, 0.0208892822265625, 0.0169525146484375, -0.0269622802734375, -0.0199432373046875, 0.01151275634765625, -0.045501708984375, 0.009613037109375, 0.0159149169921875, 0.045928955078125, -0.06170654296875, -0.05450439453125, 0.052825927734375, -0.045501708984375, -0.0032634735107421875, 0.00699615478515625, -0.10272216796875, -0.07366943359375, -0.03375244140625, -0.0036411285400390625, 0.048553466796875, -0.03131103515625, 0.004123687744140625, 0.0067901611328125, -0.020355224609375, -0.00502777099609375, -0.010040283203125, -0.0217437744140625, -0.01509857177734375, -0.0037975311279296875, 0.01727294921875, -0.044342041015625, -0.0224151611328125, -0.027496337890625, 0.036285400390625, -0.03515625, 0.004428863525390625, 0.0304107666015625, -0.006771087646484375, 0.005573272705078125, -0.006481170654296875, -0.006099700927734375, -0.0565185546875, 0.0086822509765625, 0.00615692138671875, -0.0204315185546875, -0.020538330078125, -0.0181121826171875, -0.058319091796875, -0.021209716796875, -0.036346435546875, -0.057342529296875, -0.0286712646484375, -0.0035419464111328125, 0.032135009765625, 0.01690673828125, -0.00389862060546875, -0.0606689453125, -0.01934814453125, -0.00832366943359375, 0.032958984375, -0.0047760009765625, 0.007740020751953125, -0.00450897216796875, 0.00751495361328125, 0.001674652099609375, 0.01073455810546875, -0.0062408447265625, -0.006938934326171875, -0.033050537109375, -0.01049041748046875, -0.03643798828125, 0.023223876953125, -0.004398345947265625, 0.0260467529296875, 0.01181793212890625, 0.0234527587890625, 0.01113128662109375, 0.0164337158203125, 0.004047393798828125, 0.00914764404296875, 0.00507354736328125, 0.0166473388671875, 0.018707275390625, -0.00211334228515625, 0.0458984375, -0.05340576171875, -0.042266845703125, -0.00738525390625, 0.00839996337890625, 0.0206146240234375, -0.031158447265625, -0.01145172119140625, 0.0484619140625, -0.04595947265625, 0.0394287109375, 0.08135986328125, 0.0255126953125, 0.0584716796875, 0.01410675048828125, 0.0208740234375, 0.01529693603515625, 0.0199432373046875, -0.037017822265625, -0.061737060546875, 0.04107666015625, 0.0303802490234375, -0.0291290283203125, 0.052642822265625, -0.028076171875, -0.006679534912109375, 0.0535888671875, 0.037689208984375, -0.06585693359375, -0.0007448196411132812, 0.00824737548828125, -0.01776123046875, -0.032623291015625, 0.01468658447265625, -0.020965576171875, 0.0025043487548828125, 0.02520751953125, 0.01161956787109375, -0.022552490234375, 0.02996826171875, 0.040252685546875, -0.02166748046875, 0.00922393798828125, -0.0176239013671875, 0.0284423828125, 0.035675048828125, 0.0197906494140625, -0.030792236328125, 0.0400390625, -0.031494140625, 0.01531982421875, 0.01399993896484375, -0.01326751708984375, -0.04681396484375, 0.03350830078125, 0.005077362060546875, 0.002559661865234375, -0.01448822021484375, -0.0101470947265625, 0.01108551025390625, 0.038116455078125, -0.0250091552734375, 0.0003638267517089844, 0.01441192626953125, 0.0026149749755859375, 0.024322509765625, 0.02069091796875, 0.066162109375, -0.00799560546875, -0.04925537109375, 0.01024627685546875, -0.03485107421875, -0.0240631103515625, 0.007099151611328125, 0.01043701171875, 0.055206298828125, -0.0560302734375, -0.006366729736328125, 0.044677734375, 0.01471710205078125, -0.0011339187622070312, -0.0158843994140625, 0.06793212890625, -0.0338134765625, 0.0084228515625, 0.0306396484375, 0.05523681640625, -0.0185699462890625, -0.005157470703125, -0.0543212890625, 0.1370849609375, -0.01031494140625, 0.0106658935546875, -0.0193023681640625, 0.0677490234375, -0.00043392181396484375, 0.052947998046875, -0.04443359375, 0.079345703125, 0.039031982421875, 0.057708740234375, -0.049072265625, -0.01306915283203125, 0.0214691162109375, 0.036895751953125, -0.02490234375, -0.00678253173828125, 0.0125579833984375, 0.00478363037109375, 0.0232086181640625, 0.007415771484375, -0.002758026123046875, 0.02886962890625, -0.0089874267578125, 0.00771331787109375, 0.02593994140625, -0.03155517578125, 0.0166168212890625, -0.002468109130859375, 0.002605438232421875, 0.0026302337646484375, 0.0174407958984375, 0.0049285888671875, 0.024139404296875, 0.052215576171875, -0.0462646484375, 0.01222991943359375, 0.041046142578125, 0.0036525726318359375, 0.0264434814453125, 0.0237884521484375, 0.019744873046875, 0.0155181884765625, 0.033294677734375, -0.0194854736328125, 0.0531005859375, -0.005748748779296875, 0.034149169921875, 0.004917144775390625, 0.014801025390625, 0.031890869140625, -0.0093994140625, -0.0038204193115234375, 0.029541015625, -0.02777099609375, 0.0210723876953125, -0.01141357421875, 0.01175689697265625, -0.047637939453125, -0.01165771484375, 0.024749755859375, 0.03936767578125, -0.01334381103515625, -0.041046142578125, 0.014404296875, 0.013519287109375, -0.004566192626953125, -0.027801513671875, -0.0267486572265625, -0.010772705078125, 0.05181884765625, -0.0234222412109375, -0.035675048828125, 0.0169219970703125, -0.006412506103515625, 0.01166534423828125, 0.00815582275390625, 0.04229736328125, -0.0284881591796875, 0.030914306640625, -0.0272674560546875, 0.0015707015991210938, 0.02484130859375, -0.02099609375, 0.039154052734375, -0.0771484375, 0.0044097900390625, 0.0044097900390625, 0.01363372802734375, 0.02069091796875, -0.0070037841796875, 0.0003838539123535156, -0.0038089752197265625, -0.0022907257080078125, 0.0190277099609375, -0.0218048095703125, 0.029205322265625, 0.0693359375, 0.0904541015625, -0.0284576416015625, -0.0218353271484375, 0.0843505859375, -0.0109100341796875, -0.01207733154296875, -0.042938232421875, 0.0008969306945800781, 0.0213165283203125, 0.006610870361328125, 0.00562286376953125, 0.024688720703125, 0.017730712890625, -0.045684814453125, 0.01678466796875, -0.00511932373046875, -0.03271484375, 0.055206298828125, -0.033447265625, 0.05084228515625, -0.0246429443359375, -0.10150146484375, -0.0014524459838867188, -0.044036865234375, -0.025177001953125, 0.019439697265625, 0.0302734375, -0.02459716796875, 0.046478271484375, 0.005218505859375, -0.01395416259765625, 0.016754150390625, -0.00638580322265625, 0.0021457672119140625, -0.01342010498046875, 0.0308837890625, -0.0084075927734375, -0.04254150390625, -0.00881195068359375, -0.0242919921875, 0.041412353515625, -0.0264892578125, 0.084716796875, -0.02532958984375, 0.0003437995910644531, -0.0293731689453125, -0.006740570068359375, -0.0222930908203125, -0.00853729248046875, -0.01837158203125, 0.01544952392578125, 0.0139617919921875, -0.005889892578125, -0.005672454833984375, -0.006885528564453125, 0.01824951171875, -0.023895263671875, -0.0221099853515625, -0.0406494140625, 0.032684326171875, 0.01959228515625, 0.086181640625, -0.0159454345703125, -0.0276336669921875, -0.06103515625, -0.01259613037109375, 0.038848876953125, 0.0226898193359375, -0.0173797607421875, -0.005908966064453125, 0.0189361572265625, -0.016326904296875, 0.00418853759765625, 0.02789306640625, 0.00809478759765625, 0.0219268798828125, 0.00237274169921875, -0.043701171875, 0.031768798828125, -0.004863739013671875, 0.0006012916564941406, 0.030426025390625, 0.0509033203125, 0.027130126953125, -0.037017822265625, 0.030731201171875, 0.032623291015625, 0.07940673828125, -0.0021266937255859375, 0.0246429443359375, 0.0015764236450195312, 0.02203369140625, 0.025787353515625, 0.0384521484375, -0.0254669189453125, -0.040863037109375, 0.002094268798828125, -0.031402587890625, -0.01434326171875, -0.055450439453125, -0.0102996826171875, 0.0301971435546875, 0.025970458984375, 0.0229949951171875, -0.07574462890625, 0.0723876953125, -0.0152435302734375, 0.014190673828125, -0.0025787353515625, 0.006198883056640625, -0.0032100677490234375, 0.0126190185546875, -0.056182861328125, -0.0164794921875, -0.0288238525390625, -0.006084442138671875, -0.017578125, 0.0218963623046875, 0.037628173828125, -0.0260467529296875, -0.039276123046875, 0.0283050537109375, 0.0195465087890625, 0.061279296875, 0.01751708984375, -0.00383758544921875, 0.01512908935546875, 0.0008368492126464844, -0.0347900390625, -0.0523681640625, 0.013397216796875, -0.039642333984375, -0.00876617431640625, -0.0509033203125, 0.0229339599609375, 0.0218505859375, -0.0528564453125, -0.10980224609375, 0.046478271484375, -0.037445068359375, -0.044525146484375, -0.05145263671875, 0.035369873046875, -0.0140380859375, 0.00324249267578125, -0.023193359375, 0.00738525390625, 0.01274871826171875, 0.03302001953125, -0.0138092041015625, -0.00524139404296875, 0.0523681640625, -0.042633056640625, -0.0244293212890625, -0.0257568359375, -0.00490570068359375, -0.030517578125, 0.04095458984375, -0.02606201171875, 0.0433349609375, 0.0703125, -0.016845703125, -0.0200653076171875, -0.0144805908203125, -0.0762939453125, -0.0081939697265625, -0.058197021484375, -0.00600433349609375, 0.00844573974609375, 0.048583984375, 0.044677734375, 0.011871337890625, -0.054595947265625, -0.0411376953125, -0.03289794921875, 0.0010280609130859375, -0.03179931640625, 0.00302886962890625, -0.06439208984375, -0.01152801513671875, -0.0019969940185546875, -0.033966064453125, 0.01029205322265625, -0.019561767578125, -0.0396728515625, 0.0091552734375, 0.006317138671875, 0.0050811767578125, -0.0197601318359375, -0.00925445556640625, 0.0128631591796875, -0.0062713623046875, -0.0067596435546875, 0.01117706298828125, 0.01125335693359375, -0.01085662841796875, 0.0280914306640625, 0.00689697265625, 0.017425537109375, -0.034576416015625, 0.01175689697265625, -0.006999969482421875, 0.047515869140625, -0.017822265625, -0.0238494873046875, -0.0021114349365234375, 0.0270843505859375, -0.0159912109375, 0.035369873046875, 0.0226593017578125, 0.08001708984375, 0.011474609375, 0.006900787353515625, -0.0012693405151367188, -0.0557861328125, -0.028533935546875, 0.0272216796875, -0.0263671875, -0.0138397216796875, 0.041015625, -0.07415771484375, 0.0003857612609863281, -0.0347900390625, -0.005096435546875, -0.0279083251953125, -0.0132598876953125, -0.045135498046875, -0.0231781005859375, 0.0033855438232421875 ]
c152fdc2b12fccf1f812c8728ff9a28bf87fccef
Wordpress Stackexchange Q: Specific featured image for each category I´d like to set specific featured image for all posts in one category. So, if I have category Good Jokes, all posts in category Good Jokes will have the same featured image displayed in front page. My current code in content.php is: <?php if(trim(get_the_post_thumbnail($post->ID)) != '' and $themolio_options['show_featured']): ?> <div class="entry-thumb"> <a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail('themolio-featured-image');?> </a> </div> <?php endif; ?> Can anybody help? A: <?php if(has_post_thumbnail()) the_post_thumbnail('themolio-featured-image'); else echo wp_get_attachment_image($attachment_id, 'themolio-featured-image'); ?> The above code displays the featured image if the post has one, otherwise the image define by $attachment_id. I don't know how you're deciding which category term should display which image & what to do in case of multiple categories, so the part where you initialize $attachment_id is left to you. UPDATE This code does exactly what you said in your comment. In case of multiple categories, this code will just take the first one. <?php $category = get_the_category(); if(!empty($category) && $themolio_options['show_featured']): ?> <div class="entry-thumb"> <a href="<?php the_permalink(); ?>"> <img src="http://example.com/<?php echo $category[0]->term_id;?>.jpg" alt="<?php echo $category[0]->name;?>" /> </a> </div> <?php endif; ?>
Q: Specific featured image for each category I´d like to set specific featured image for all posts in one category. So, if I have category Good Jokes, all posts in category Good Jokes will have the same featured image displayed in front page. My current code in content.php is: <?php if(trim(get_the_post_thumbnail($post->ID)) != '' and $themolio_options['show_featured']): ?> <div class="entry-thumb"> <a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail('themolio-featured-image');?> </a> </div> <?php endif; ?> Can anybody help? A: <?php if(has_post_thumbnail()) the_post_thumbnail('themolio-featured-image'); else echo wp_get_attachment_image($attachment_id, 'themolio-featured-image'); ?> The above code displays the featured image if the post has one, otherwise the image define by $attachment_id. I don't know how you're deciding which category term should display which image & what to do in case of multiple categories, so the part where you initialize $attachment_id is left to you. UPDATE This code does exactly what you said in your comment. In case of multiple categories, this code will just take the first one. <?php $category = get_the_category(); if(!empty($category) && $themolio_options['show_featured']): ?> <div class="entry-thumb"> <a href="<?php the_permalink(); ?>"> <img src="http://example.com/<?php echo $category[0]->term_id;?>.jpg" alt="<?php echo $category[0]->name;?>" /> </a> </div> <?php endif; ?> A: Use FPW Category Thumbnails plugin. It does exactly what you need and no coding is required. Map images to their respective categories. If you have many posts already use Apply Mapping button and all posts belonging to the category which has an image mapped to it will get this image as a thumbnail. From this point on everything is automated. When you create or edit a post it will get its thumbnail according to the plugin's mapping on save. As an author of this plugin I'm sure you will not be disappointed! A: Would need to see the unmodified code from your themes content.php file to provide a tested solution which works on your specific theme. Here's a solution i tested on a child theme of Twenty Twelve. <?php function wpsites_post_thumbnail() { if ( in_category('category-first') ) : ?> <a class="post-thumbnail" href="<?php the_permalink(); ?>"> <?php echo'<img src="' . get_stylesheet_directory_uri() . '/images/category-first.png" />'; elseif ( in_category('category-second') ) : echo'<img src="' . get_stylesheet_directory_uri() . '/images/category-second.png" />'; else: echo'<img src="' . get_stylesheet_directory_uri() . '/images/category-default.png" />'; ?> </a> <?php endif; } The above code goes in your functions file and creates a template tag you can replace in your content.php file <header class="entry-header"> <?php if ( ! post_password_required() && ! is_attachment() ) : wpsites_post_thumbnail(); endif; ?> Source WP Sites
wordpress
{ "language": "en", "length": 398, "provenance": "stackexchange_00019.jsonl.gz:426607", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75455" }
[ 0.07415771484375, -0.0035762786865234375, 0.015167236328125, -0.06207275390625, 0.0343017578125, -0.0294189453125, 0.037689208984375, -0.041229248046875, 0.0135345458984375, -0.00756072998046875, -0.0145111083984375, -0.0155792236328125, -0.041748046875, -0.038604736328125, -0.0257720947265625, -0.044189453125, 0.0223846435546875, -0.0057220458984375, 0.029022216796875, 0.004638671875, 0.0003457069396972656, 0.045166015625, -0.0028705596923828125, 0.01568603515625, 0.0251617431640625, -0.0609130859375, 0.0565185546875, -0.039215087890625, 0.0117950439453125, -0.0296630859375, 0.016021728515625, 0.0211334228515625, 0.0089263916015625, -0.0031566619873046875, 0.0209197998046875, 0.0252227783203125, 0.006542205810546875, -0.00830078125, 0.007110595703125, 0.042266845703125, 0.02252197265625, -0.004596710205078125, 0.032562255859375, 0.028594970703125, 0.01186370849609375, -0.0275726318359375, -0.0007987022399902344, -0.08099365234375, 0.00232696533203125, -0.0239105224609375, 0.022186279296875, 0.01422119140625, 0.029449462890625, -0.0164794921875, -0.01220703125, 0.0164642333984375, -0.048004150390625, -0.00591278076171875, 0.045074462890625, 0.0298309326171875, -0.032257080078125, -0.05615234375, 0.0229644775390625, -0.05731201171875, 0.0141754150390625, 0.0014848709106445312, 0.036956787109375, 0.0215606689453125, -0.036163330078125, -0.005580902099609375, 0.0296173095703125, -0.0223541259765625, -0.023406982421875, -0.041015625, -0.0276031494140625, 0.056427001953125, -0.0158233642578125, -0.0163421630859375, 0.008331298828125, -0.026885986328125, -0.0184326171875, -0.0435791015625, 0.005496978759765625, -0.0011777877807617188, 0.01178741455078125, 0.03253173828125, -0.0102996826171875, -0.005985260009765625, -0.024688720703125, -0.01418304443359375, -0.0156097412109375, -0.02142333984375, -0.038116455078125, 0.034820556640625, 0.00777435302734375, -0.01409149169921875, 0.041839599609375, 0.07171630859375, -0.034210205078125, 0.00508880615234375, -0.0208892822265625, -0.027679443359375, 0.027801513671875, -0.051971435546875, 0.022918701171875, 0.01568603515625, -0.006137847900390625, -0.0243377685546875, 0.04473876953125, 0.021270751953125, -0.007167816162109375, 0.06500244140625, 0.022186279296875, 0.006244659423828125, -0.01678466796875, -0.0206756591796875, -0.040130615234375, 0.03515625, -0.004230499267578125, 0.01105499267578125, 0.0059051513671875, 0.023284912109375, 0.0391845703125, -0.05828857421875, -0.015655517578125, -0.00701141357421875, -0.033782958984375, -0.0628662109375, 0.0023250579833984375, 0.00824737548828125, -0.045257568359375, 0.01580810546875, 0.07818603515625, 0.035400390625, 0.0278472900390625, -0.004550933837890625, -0.0197601318359375, -0.00738525390625, 0.0009217262268066406, 0.0032024383544921875, -0.0185546875, 0.0029125213623046875, 0.0517578125, -0.0201263427734375, 0.0185394287109375, 0.023773193359375, 0.01433563232421875, 0.01241302490234375, 0.008636474609375, -0.044342041015625, 0.041229248046875, -0.03765869140625, 0.01052093505859375, 0.0145263671875, 0.00266265869140625, 0.0190887451171875, 0.04736328125, -0.00955963134765625, -0.0296478271484375, -0.03265380859375, 0.054168701171875, 0.0139312744140625, 0.001861572265625, 0.00798797607421875, -0.0188446044921875, -0.015655517578125, -0.042694091796875, -0.00702667236328125, 0.00907135009765625, 0.0196380615234375, 0.0079193115234375, 0.0081329345703125, -0.019287109375, 0.0002505779266357422, -0.004398345947265625, -0.0007910728454589844, -0.04229736328125, -0.0136260986328125, 0.04034423828125, 0.0255889892578125, -0.01439666748046875, -0.035186767578125, 0.00991058349609375, -0.00092315673828125, -0.033538818359375, 0.0243988037109375, 0.004474639892578125, 0.030364990234375, 0.01255035400390625, 0.01149749755859375, 0.03790283203125, 0.005634307861328125, -0.0780029296875, -0.00577545166015625, -0.0100555419921875, 0.01275634765625, -0.052978515625, -0.013397216796875, -0.01027679443359375, 0.0257568359375, 0.03729248046875, -0.0246124267578125, 0.034759521484375, -0.0006532669067382812, -0.037078857421875, 0.0068359375, -0.0225372314453125, 0.02166748046875, -0.03564453125, 0.040252685546875, 0.037017822265625, 0.0286865234375, -0.031524658203125, -0.05267333984375, 0.011962890625, 0.0360107421875, -0.0205078125, 0.0106658935546875, -0.01067352294921875, 0.0350341796875, -0.0196990966796875, 0.01285552978515625, -0.01898193359375, 0.00464630126953125, 0.06390380859375, 0.032470703125, -0.040802001953125, -0.017486572265625, -0.005191802978515625, 0.04052734375, -0.123291015625, 0.0208740234375, 0.0109710693359375, 0.01340484619140625, -0.04833984375, -0.00278472900390625, 0.02789306640625, -0.005840301513671875, 0.0121612548828125, 0.036773681640625, 0.032470703125, 0.01372528076171875, -0.03619384765625, -0.041778564453125, 0.07244873046875, -0.0121612548828125, -0.0002027750015258789, -0.02679443359375, -0.00960540771484375, 0.005733489990234375, -0.005950927734375, 0.01812744140625, 0.03399658203125, -0.02923583984375, 0.022705078125, 0.039703369140625, -0.00579833984375, -0.0258331298828125, -0.0192718505859375, 0.048492431640625, -0.00323486328125, 0.05133056640625, -0.0023937225341796875, 0.01519775390625, 0.045928955078125, 0.00742340087890625, 0.0196380615234375, -0.00815582275390625, -0.03472900390625, 0.0179443359375, 0.01213836669921875, -0.018768310546875, -0.007415771484375, 0.06219482421875, 0.03338623046875, -0.004058837890625, -0.0099945068359375, -0.0311737060546875, -0.01114654541015625, 0.0185089111328125, -0.009307861328125, 0.0301361083984375, -0.0026340484619140625, -0.00104522705078125, -0.03179931640625, -0.07476806640625, 0.022918701171875, 0.02496337890625, -0.04010009765625, -0.0294189453125, -0.0016260147094726562, 0.051177978515625, -0.0262298583984375, 0.021728515625, -0.0032634735107421875, 0.0010900497436523438, -0.018280029296875, -0.035247802734375, 0.03460693359375, -0.04229736328125, 0.03277587890625, 0.0615234375, -0.02117919921875, 0.0279083251953125, -0.008636474609375, -0.00897979736328125, -0.00919342041015625, 0.01413726806640625, -0.00942230224609375, -0.042999267578125, -0.0203094482421875, 0.0110321044921875, 0.030914306640625, 0.09320068359375, -0.029693603515625, -0.048980712890625, -0.00766754150390625, 0.03448486328125, -0.07171630859375, -0.0819091796875, 0.0088653564453125, -0.0262908935546875, 0.03497314453125, 0.005794525146484375, -0.00786590576171875, -0.032196044921875, 0.0153961181640625, 0.00823211669921875, -0.002338409423828125, -0.01230621337890625, -0.0202789306640625, -0.03533935546875, -0.044769287109375, -0.030242919921875, -0.0013570785522460938, -0.00041961669921875, 0.01073455810546875, 0.05352783203125, 0.0182342529296875, -0.038421630859375, 0.005565643310546875, 0.0372314453125, -0.02056884765625, -0.0090179443359375, -0.01103973388671875, -0.0043182373046875, -0.0247802734375, 0.005405426025390625, 0.048004150390625, 0.0108642578125, -0.0260467529296875, -0.003276824951171875, -0.00925445556640625, 0.0036144256591796875, 0.00983428955078125, 0.0267486572265625, 0.0169677734375, 0.033660888671875, 0.038970947265625, -0.0270843505859375, -0.0125885009765625, -0.033782958984375, -0.044921875, -0.007740020751953125, 0.031951904296875, 0.00977325439453125, -0.0164642333984375, -0.0011262893676757812, 0.00010699033737182617, 0.004505157470703125, 0.0169219970703125, -0.043121337890625, 0.04229736328125, -0.003421783447265625, 0.01012420654296875, -0.0193939208984375, -0.0244598388671875, -0.0216064453125, 0.033599853515625, -0.0214385986328125, 0.03204345703125, -0.0115203857421875, 0.02935791015625, -0.04400634765625, -0.04046630859375, 0.0247039794921875, -0.044921875, -0.0015192031860351562, -0.022613525390625, -0.0249786376953125, 0.009796142578125, 0.059539794921875, -0.057098388671875, -0.01471710205078125, -0.0290374755859375, -0.010589599609375, -0.006591796875, 0.00887298583984375, -0.04864501953125, -0.0024089813232421875, -0.08038330078125, -0.0110931396484375, -0.001964569091796875, -0.04119873046875, -0.01216888427734375, 0.032196044921875, -0.06488037109375, -0.0242156982421875, 0.038421630859375, -0.03448486328125, 0.021728515625, 0.027130126953125, -0.0079345703125, 0.02386474609375, -0.03070068359375, -0.030029296875, -0.046234130859375, -0.006572723388671875, 0.003940582275390625, 0.0263214111328125, -0.0002665519714355469, -0.01142120361328125, -0.019744873046875, 0.041839599609375, 0.01232147216796875, -0.0144195556640625, 0.014434814453125, 0.0020751953125, -0.01477813720703125, -0.007781982421875, -0.0013265609741210938, -0.027740478515625, -0.0310211181640625, -0.047454833984375, -0.040985107421875, -0.012298583984375, -0.031341552734375, 0.00981903076171875, -0.01141357421875, 0.0034694671630859375, -0.06781005859375, -0.0201873779296875, 0.03680419921875, 0.0374755859375, 0.0198211669921875, 0.003658294677734375, -0.035430908203125, -0.053466796875, 0.0438232421875, -0.03753662109375, -0.0207672119140625, 0.02337646484375, 0.06866455078125, 0.0069427490234375, -0.004459381103515625, -0.08154296875, -0.001621246337890625, 0.04852294921875, 0.02850341796875, 0.049957275390625, 0.0494384765625, -0.02606201171875, 0.033905029296875, 0.05126953125, 0.0234375, -0.03436279296875, 0.053009033203125, -0.006298065185546875, 0.00036406517028808594, 0.0084686279296875, -0.0131988525390625, 0.026611328125, -0.0139312744140625, -0.027923583984375, 0.010589599609375, -0.04107666015625, -0.00878143310546875, 0.032470703125, 0.0164642333984375, -0.0098114013671875, 0.004833221435546875, -0.018096923828125, 0.043304443359375, 0.06597900390625, 0.04217529296875, -0.0094451904296875, 0.03167724609375, 0.054107666015625, -0.01384735107421875, 0.032257080078125, -0.0086669921875, 0.03900146484375, 0.0108489990234375, 0.02716064453125, -0.00252532958984375, -0.00489044189453125, 0.00201416015625, -0.01139068603515625, 0.0066375732421875, -0.0216827392578125, -0.03363037109375, 0.01959228515625, 0.0372314453125, -0.0116424560546875, -0.036865234375, 0.03143310546875, 0.004497528076171875, -0.007232666015625, 0.004520416259765625, -0.058502197265625, -0.0159149169921875, -0.033538818359375, -0.0188446044921875, 0.015472412109375, -0.01541900634765625, 0.04296875, -0.0008697509765625, -0.0050506591796875, 0.02679443359375, -0.0191802978515625, 0.0272979736328125, 0.0433349609375, 0.0015192031860351562, 0.01374053955078125, 0.033050537109375, -0.040679931640625, 0.007129669189453125, 0.021942138671875, -0.043548583984375, 0.00917816162109375, 0.01123046875, 0.07196044921875, -0.05450439453125, -0.06121826171875, 0.0435791015625, -0.032440185546875, -0.0261077880859375, 0.016571044921875, -0.04632568359375, -0.041168212890625, -0.0185394287109375, 0.0137786865234375, 0.028717041015625, -0.0189971923828125, -0.02069091796875, 0.004833221435546875, -0.007038116455078125, 0.006008148193359375, -0.0025119781494140625, -0.043670654296875, 0.01800537109375, 0.0241851806640625, -0.051910400390625, -0.005863189697265625, -0.001346588134765625, 0.00899505615234375, -0.00959014892578125, -0.0099029541015625, -0.03814697265625, 0.032684326171875, -0.006023406982421875, 0.046722412109375, -0.0009260177612304688, -0.0567626953125, -0.00653076171875, 0.00048160552978515625, 0.05230712890625, 0.03497314453125, -0.058746337890625, 0.0254058837890625, -0.043701171875, 0.01496124267578125, 0.045196533203125, -0.031982421875, -0.0083160400390625, -0.044464111328125, 0.0137786865234375, 0.02569580078125, 0.0103302001953125, -0.00787353515625, -0.0274658203125, -0.001129150390625, 0.02911376953125, 0.036407470703125, -0.0284576416015625, -0.00930023193359375, 0.04486083984375, 0.0206756591796875, -0.0034027099609375, -0.030426025390625, 0.005741119384765625, -0.024810791015625, -0.039520263671875, -0.065185546875, 0.0294342041015625, 0.061279296875, -0.01244354248046875, 0.0147705078125, 0.01309967041015625, 0.0259246826171875, 0.0021877288818359375, 0.004383087158203125, 0.00498199462890625, -0.019989013671875, -0.0217742919921875, -0.0021800994873046875, -0.03778076171875, 0.03204345703125, -0.0362548828125, 0.0113677978515625, 0.0205078125, -0.00882720947265625, 0.04229736328125, -0.043914794921875, 0.0202484130859375, 0.054107666015625, -0.0185699462890625, 0.0176239013671875, 0.0841064453125, 0.0292205810546875, 0.05535888671875, 0.023590087890625, 0.017425537109375, 0.001964569091796875, 0.0165557861328125, 0.0275726318359375, -0.015960693359375, 0.042083740234375, -0.006885528564453125, 0.0225067138671875, 0.005786895751953125, -0.0177764892578125, -0.006267547607421875, -0.004505157470703125, 0.04949951171875, 0.022430419921875, -0.005176544189453125, 0.0256805419921875, -0.032135009765625, -0.00806427001953125, 0.02166748046875, -0.005435943603515625, 0.0174560546875, 0.01302337646484375, -0.01482391357421875, -0.0182952880859375, 0.01453399658203125, -0.004116058349609375, 0.0015726089477539062, 0.02606201171875, 0.0186004638671875, 0.00775146484375, -0.087890625, -0.01381683349609375, 0.04913330078125, -0.0241546630859375, -0.018829345703125, -0.0100860595703125, -0.0082244873046875, -0.0272369384765625, -0.057464599609375, 0.003116607666015625, -0.010498046875, 0.00839996337890625, 0.02276611328125, -0.0135498046875, 0.004451751708984375, 0.01448822021484375, 0.0020923614501953125, 0.0225830078125, 0.0016393661499023438, -0.07568359375, -0.001392364501953125, 0.004352569580078125, 0.032196044921875, 0.0289764404296875, -0.06475830078125, 0.010223388671875, -0.052764892578125, 0.01558685302734375, -0.0199737548828125, -0.04931640625, 0.08013916015625, -0.059295654296875, -0.0064697265625, -0.004840850830078125, 0.056976318359375, 0.0163421630859375, 0.0126800537109375, 0.049560546875, -0.040191650390625, -0.03228759765625, 0.021636962890625, -0.040283203125, -0.01044464111328125, 0.00394439697265625, -0.086669921875, 0.07476806640625, -0.03631591796875, 0.06390380859375, -0.00024306774139404297, 0.007442474365234375, 0.0281219482421875, -0.005825042724609375, -0.01788330078125, 0.040771484375, -0.042388916015625, 0.01436614990234375, -0.0134124755859375, 0.022552490234375, 0.01364898681640625, -0.007602691650390625, 0.057830810546875, 0.01270294189453125, -0.01030731201171875, 0.0117645263671875, 0.07940673828125, 0.021453857421875, -0.016448974609375, 0.014373779296875, -0.019622802734375, -0.01343536376953125, 0.0011882781982421875, 0.006755828857421875, 0.027862548828125, -0.00592803955078125, -0.042877197265625, 0.01035308837890625, 0.040679931640625, 0.08221435546875, 0.01763916015625, 0.035858154296875, -0.07275390625, 0.017333984375, 0.0853271484375, -0.048309326171875, 0.0218658447265625, 0.035919189453125, 0.04376220703125, -0.047882080078125, 0.021148681640625, -0.0211944580078125, 0.0670166015625, -0.0025043487548828125, 0.01345062255859375, 0.035491943359375, 0.018463134765625, 0.0281219482421875, 0.0238189697265625, 0.00997161865234375, 0.0275421142578125, -0.000029861927032470703, 0.0171966552734375, 0.04595947265625, 0.036956787109375, -0.0106201171875, -0.01258087158203125, 0.06890869140625, 0.04510498046875, -0.0259552001953125, -0.035064697265625, 0.0201263427734375, 0.025421142578125, 0.0051727294921875, -0.003398895263671875, -0.004474639892578125, -0.05413818359375, 0.032989501953125, -0.07049560546875, 0.01080322265625, 0.039825439453125, 0.0263519287109375, -0.005321502685546875, -0.032928466796875, -0.049072265625, -0.004734039306640625, -0.049163818359375, 0.0458984375, 0.03497314453125, 0.04608154296875, -0.0260772705078125, 0.056365966796875, -0.0011272430419921875, 0.000568389892578125, -0.0227203369140625, 0.0218658447265625, -0.006793975830078125, 0.03314208984375, -0.0296478271484375, -0.011199951171875, 0.007343292236328125, 0.031341552734375, 0.022857666015625, -0.0165557861328125, 0.043487548828125, 0.05615234375, -0.039642333984375, -0.01351165771484375, 0.0672607421875, -0.01200103759765625, 0.01439666748046875, -0.0305023193359375, 0.0208740234375, 0.01171875, -0.00884246826171875, 0.0255279541015625, -0.01007080078125, 0.0518798828125, -0.027374267578125, 0.04962158203125, -0.005390167236328125, -0.02691650390625, 0.004390716552734375, -0.00858306884765625, 0.07196044921875, 0.006317138671875, -0.11590576171875, -0.0224456787109375, -0.04052734375, -0.0677490234375, 0.0657958984375, 0.048095703125, -0.0389404296875, 0.01453399658203125, -0.00008171796798706055, 0.0045013427734375, 0.004001617431640625, -0.024749755859375, 0.00826263427734375, -0.031829833984375, 0.003814697265625, -0.01322174072265625, -0.0026302337646484375, -0.01271820068359375, 0.019317626953125, 0.0268707275390625, 0.0218505859375, 0.01081085205078125, 0.01041412353515625, 0.0216827392578125, -0.0288238525390625, 0.0355224609375, -0.064697265625, -0.036773681640625, 0.05535888671875, -0.02227783203125, -0.00490570068359375, 0.005889892578125, -0.0245819091796875, 0.005725860595703125, 0.039794921875, -0.034149169921875, -0.00974273681640625, -0.020263671875, 0.0191192626953125, -0.0119171142578125, 0.04266357421875, -0.0273590087890625, 0.00656890869140625, -0.06732177734375, -0.05364990234375, 0.055511474609375, 0.0031223297119140625, 0.0131988525390625, 0.030548095703125, 0.03253173828125, 0.0171661376953125, 0.0181732177734375, -0.0007433891296386719, 0.035552978515625, 0.041717529296875, -0.01568603515625, -0.046356201171875, -0.017303466796875, 0.0029277801513671875, -0.0231781005859375, 0.0189666748046875, -0.004314422607421875, 0.00785064697265625, -0.020538330078125, 0.033935546875, 0.0265655517578125, 0.039337158203125, -0.02996826171875, 0.00988006591796875, 0.04052734375, -0.0112457275390625, 0.0062103271484375, -0.0115814208984375, -0.00121307373046875, -0.041046142578125, -0.001987457275390625, 0.014190673828125, -0.0159149169921875, 0.0164947509765625, -0.0239410400390625, 0.00738525390625, 0.035247802734375, -0.0012903213500976562, -0.011688232421875, 0.01139068603515625, -0.0025787353515625, 0.015960693359375, -0.01102447509765625, -0.0245513916015625, 0.0027256011962890625, 0.0325927734375, -0.0438232421875, -0.01104736328125, -0.049346923828125, -0.0275115966796875, -0.08026123046875, 0.006450653076171875, 0.02880859375, -0.01525115966796875, -0.00568389892578125, 0.02642822265625, 0.01026153564453125, 0.068115234375, -0.01849365234375, -0.0266876220703125, -0.01540374755859375, 0.0172271728515625, -0.04541015625, -0.01444244384765625, 0.050323486328125, -0.0243377685546875, -0.043701171875, -0.01184844970703125, -0.022491455078125, 0.002162933349609375, -0.047637939453125, -0.08258056640625, 0.046966552734375, -0.024627685546875, -0.04498291015625, -0.007198333740234375, -0.0007615089416503906, -0.0297088623046875, 0.052734375, 0.0249481201171875, -0.0242156982421875, 0.0006160736083984375, 0.0130462646484375, 0.019775390625, -0.024444580078125, 0.060882568359375, 0.00885009765625, -0.043731689453125, -0.0153656005859375, -0.0208740234375, -0.005352020263671875, 0.02667236328125, -0.013641357421875, 0.033050537109375, 0.051025390625, -0.0266265869140625, -0.052398681640625, -0.0198516845703125, -0.053375244140625, -0.0029468536376953125, -0.0174407958984375, -0.051727294921875, -0.016937255859375, 0.066162109375, 0.0269622802734375, 0.029693603515625, -0.00489044189453125, -0.01187896728515625, -0.0295867919921875, -0.0230255126953125, -0.01131439208984375, 0.028411865234375, -0.07867431640625, -0.0126800537109375, 0.022674560546875, -0.032684326171875, -0.01100921630859375, -0.00885009765625, -0.06597900390625, -0.0007600784301757812, -0.0406494140625, -0.005672454833984375, -0.05023193359375, 0.034515380859375, 0.036651611328125, -0.04931640625, -0.0140838623046875, -0.0265045166015625, -0.006984710693359375, 0.003932952880859375, -0.061767578125, 0.0182342529296875, 0.033935546875, -0.022064208984375, -0.0119171142578125, 0.032257080078125, -0.0067596435546875, 0.007671356201171875, 0.0002593994140625, -0.0171661376953125, 0.01959228515625, 0.005855560302734375, 0.0169525146484375, -0.0013256072998046875, 0.00983428955078125, 0.0187225341796875, -0.0027408599853515625, -0.0023899078369140625, 0.0008120536804199219, -0.0011701583862304688, 0.040191650390625, -0.0158233642578125, -0.01557159423828125, 0.0053558349609375, -0.033172607421875, 0.0105743408203125, 0.0005717277526855469, 0.004642486572265625, -0.00839996337890625, 0.0199432373046875, -0.01064300537109375, -0.0294647216796875, 0.009765625 ]
4a6fe613f1b7f429eef852b356a5a7fdde9506f0
Wordpress Stackexchange Q: Move from old custom field to new post_thumbnails I've just taken over a busy WordPress site that's got ~800 posts so far. The site's been around long enough that it was started up before post_thumbnails was available. They worked around that shortcoming with a custom field called 'Image' that held a value of the relative path to the image, e.g., "/wp-content/uploads/2012/11/image.jpg" The theme is using Tim Thumb to make the different thumb sizes. I'd love to get away from this and just use the post_thumbnails feature and set the sizes in functions.php and get rid of timthumb.php altogether. I've searched, but haven't found a good way to make the switch. Any suggestions? A: Had the same issue last week and here is what i did: if (has_post_thumbnail()) //if the post already has a post thumbnail then just use that the_post_thumbnail($size = 'post-thumbnail', $attr = ''); else{ //if not then convert the custom field to the post thumbnail and display that $at_url = get_post_meta($post->ID, 'image', true); $at_id = get_image_id_by_url($at_url); delete_post_meta($post->ID, 'image'); if ($at_id){ set_post_thumbnail($post, $at_id); the_post_thumbnail($size = 'post-thumbnail', $attr = ''); }else{ //else just display a default image or not :) } }
Q: Move from old custom field to new post_thumbnails I've just taken over a busy WordPress site that's got ~800 posts so far. The site's been around long enough that it was started up before post_thumbnails was available. They worked around that shortcoming with a custom field called 'Image' that held a value of the relative path to the image, e.g., "/wp-content/uploads/2012/11/image.jpg" The theme is using Tim Thumb to make the different thumb sizes. I'd love to get away from this and just use the post_thumbnails feature and set the sizes in functions.php and get rid of timthumb.php altogether. I've searched, but haven't found a good way to make the switch. Any suggestions? A: Had the same issue last week and here is what i did: if (has_post_thumbnail()) //if the post already has a post thumbnail then just use that the_post_thumbnail($size = 'post-thumbnail', $attr = ''); else{ //if not then convert the custom field to the post thumbnail and display that $at_url = get_post_meta($post->ID, 'image', true); $at_id = get_image_id_by_url($at_url); delete_post_meta($post->ID, 'image'); if ($at_id){ set_post_thumbnail($post, $at_id); the_post_thumbnail($size = 'post-thumbnail', $attr = ''); }else{ //else just display a default image or not :) } }
wordpress
{ "language": "en", "length": 193, "provenance": "stackexchange_00019.jsonl.gz:426621", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75510" }
[ 0.07073974609375, -0.01025390625, 0.034149169921875, -0.0023040771484375, 0.030303955078125, -0.0232696533203125, 0.069091796875, -0.0458984375, 0.016998291015625, -0.0010061264038085938, -0.0101318359375, -0.0012378692626953125, -0.0143280029296875, -0.03363037109375, 0.0027790069580078125, -0.0156402587890625, 0.06805419921875, -0.05218505859375, 0.017822265625, 0.0013370513916015625, -0.0155792236328125, 0.036407470703125, 0.0625, 0.058685302734375, 0.03631591796875, -0.0252685546875, 0.0253143310546875, -0.01305389404296875, -0.01861572265625, -0.0303497314453125, 0.012664794921875, 0.0325927734375, -0.0038433074951171875, 0.01474761962890625, 0.0008730888366699219, 0.01259613037109375, 0.0406494140625, 0.00028705596923828125, 0.007686614990234375, 0.044647216796875, 0.049896240234375, -0.035308837890625, -0.0008554458618164062, -0.00437164306640625, -0.001865386962890625, -0.004268646240234375, 0.02734375, -0.049072265625, 0.02880859375, -0.03680419921875, 0.00403594970703125, -0.00452423095703125, 0.0273895263671875, -0.0223846435546875, -0.035980224609375, -0.031768798828125, -0.0204315185546875, -0.007694244384765625, 0.04241943359375, 0.007030487060546875, -0.0257415771484375, -0.00856781005859375, 0.01337432861328125, -0.0266265869140625, -0.0223846435546875, 0.00705718994140625, -0.037811279296875, -0.00232696533203125, -0.0491943359375, -0.031219482421875, 0.032073974609375, -0.048553466796875, -0.01605224609375, -0.0295867919921875, 0.0017833709716796875, 0.044708251953125, -0.0126800537109375, 0.0064849853515625, 0.007083892822265625, -0.0025577545166015625, -0.0204925537109375, -0.0296630859375, -0.015869140625, 0.01739501953125, -0.0117340087890625, 0.031158447265625, -0.0267333984375, -0.0089874267578125, 0.00469207763671875, -0.00710296630859375, 0.00449371337890625, -0.029876708984375, -0.013336181640625, 0.0270233154296875, 0.0030155181884765625, -0.03558349609375, 0.0233154296875, 0.055633544921875, -0.021942138671875, -0.00431060791015625, 0.0023174285888671875, -0.029266357421875, -0.01305389404296875, -0.03656005859375, 0.0017871856689453125, -0.00026106834411621094, -0.00337982177734375, -0.0115509033203125, 0.0236358642578125, 0.041046142578125, -0.02734375, 0.006420135498046875, -0.0312347412109375, 0.033966064453125, -0.059173583984375, 0.003780364990234375, -0.061370849609375, -0.01519012451171875, -0.0438232421875, 0.0263519287109375, 0.01319122314453125, 0.0224151611328125, -0.00337982177734375, -0.0352783203125, 0.0007205009460449219, -0.0125579833984375, -0.035430908203125, -0.009124755859375, -0.0031185150146484375, 0.0238800048828125, -0.054168701171875, 0.01270294189453125, 0.07952880859375, 0.0133819580078125, 0.015411376953125, -0.0168304443359375, 0.038238525390625, -0.0770263671875, -0.0106658935546875, 0.033447265625, 0.0005207061767578125, -0.0321044921875, 0.010040283203125, -0.02337646484375, 0.0168304443359375, 0.0323486328125, 0.0035247802734375, 0.007610321044921875, 0.0016078948974609375, -0.06842041015625, 0.03289794921875, -0.059814453125, 0.023773193359375, 0.004428863525390625, 0.016204833984375, -0.03497314453125, 0.07171630859375, -0.044097900390625, -0.0097503662109375, -0.049957275390625, 0.058135986328125, 0.00777435302734375, -0.020233154296875, -0.0304718017578125, -0.051666259765625, -0.0250091552734375, -0.0462646484375, -0.01149749755859375, 0.01509857177734375, 0.0309295654296875, 0.007434844970703125, 0.0472412109375, 0.01004791259765625, 0.003993988037109375, -0.00173187255859375, -0.01971435546875, 0.0020275115966796875, 0.028076171875, 0.0121612548828125, 0.033477783203125, -0.0034694671630859375, -0.037139892578125, 0.026580810546875, -0.02203369140625, -0.035736083984375, 0.0120086669921875, -0.00206756591796875, 0.01309967041015625, 0.023468017578125, 0.00946807861328125, 0.017059326171875, 0.00765228271484375, -0.03289794921875, 0.0244903564453125, 0.01354217529296875, -0.010162353515625, -0.005939483642578125, 0.0012960433959960938, 0.002483367919921875, -0.031494140625, 0.0094451904296875, 0.0152435302734375, -0.017181396484375, 0.030426025390625, -0.07647705078125, 0.0271759033203125, -0.034637451171875, 0.02764892578125, -0.04461669921875, 0.013336181640625, 0.031982421875, 0.006359100341796875, -0.0261688232421875, 0.023681640625, 0.01102447509765625, -0.018035888671875, 0.0028209686279296875, -0.031524658203125, -0.0114898681640625, 0.0277099609375, -0.053497314453125, 0.004352569580078125, -0.07733154296875, -0.0009722709655761719, 0.025482177734375, -0.006084442138671875, -0.0322265625, -0.01560211181640625, -0.0236663818359375, 0.01213836669921875, -0.066650390625, 0.07354736328125, -0.0095367431640625, -0.026092529296875, -0.01053619384765625, 0.018218994140625, 0.01358795166015625, -0.1138916015625, 0.0174407958984375, 0.062225341796875, 0.036468505859375, 0.01253509521484375, 0.01181793212890625, 0.012451171875, 0.054718017578125, 0.0312042236328125, 0.041015625, -0.0292816162109375, -0.0044097900390625, 0.0107574462890625, -0.011505126953125, -0.0251617431640625, 0.03765869140625, -0.05865478515625, 0.0039215087890625, 0.05975341796875, -0.0254669189453125, -0.00844573974609375, 0.0223236083984375, -0.0017547607421875, 0.0080413818359375, 0.0028438568115234375, 0.002899169921875, -0.01064300537109375, 0.04327392578125, 0.0330810546875, 0.035736083984375, 0.0275726318359375, -0.053802490234375, 0.0443115234375, 0.01531982421875, -0.0017499923706054688, -0.01102447509765625, -0.01366424560546875, 0.0155181884765625, 0.005279541015625, -0.033416748046875, 0.022796630859375, 0.010009765625, -0.005458831787109375, -0.0146026611328125, 0.02142333984375, -0.0062713623046875, -0.0029850006103515625, -0.0309295654296875, -0.06414794921875, 0.0274200439453125, 0.030853271484375, 0.005115509033203125, -0.026580810546875, 0.00913238525390625, 0.0172271728515625, -0.02716064453125, 0.057342529296875, 0.0017271041870117188, -0.02398681640625, 0.0243682861328125, -0.04376220703125, 0.043609619140625, -0.033050537109375, 0.044586181640625, 0.07574462890625, -0.03216552734375, 0.05535888671875, -0.0009007453918457031, 0.00506591796875, -0.0013475418090820312, 0.01873779296875, -0.0087432861328125, -0.00927734375, -0.039703369140625, -0.016448974609375, 0.0020294189453125, 0.0562744140625, -0.03070068359375, -0.04168701171875, 0.01079559326171875, -0.0016317367553710938, -0.061767578125, -0.0738525390625, -0.01560211181640625, -0.07177734375, -0.03948974609375, -0.0036602020263671875, -0.046630859375, 0.0267333984375, -0.006290435791015625, 0.006153106689453125, 0.0026187896728515625, -0.0135345458984375, -0.042877197265625, -0.0221710205078125, -0.08013916015625, -0.006244659423828125, 0.0011749267578125, 0.032562255859375, 0.003063201904296875, 0.0289306640625, 0.00013327598571777344, -0.038818359375, 0.004146575927734375, 0.04742431640625, 0.004398345947265625, 0.01019287109375, -0.0003795623779296875, -0.01387786865234375, -0.006313323974609375, 0.00815582275390625, 0.059967041015625, 0.031158447265625, -0.0218353271484375, -0.00487518310546875, -0.06732177734375, -0.0034942626953125, -0.01338958740234375, 0.012664794921875, 0.083251953125, 0.00689697265625, 0.044921875, -0.0219879150390625, -0.01004791259765625, -0.0281524658203125, -0.039459228515625, 0.050384521484375, 0.001007080078125, 0.01461029052734375, 0.010162353515625, 0.0289764404296875, 0.0013408660888671875, 0.0116729736328125, -0.00028824806213378906, -0.007152557373046875, 0.0304107666015625, -0.007564544677734375, -0.01116180419921875, -0.034576416015625, -0.005550384521484375, -0.024200439453125, 0.045806884765625, 0.006015777587890625, 0.029510498046875, 0.0027618408203125, 0.018768310546875, -0.01055145263671875, -0.04107666015625, 0.037994384765625, -0.0228271484375, 0.02252197265625, -0.0286407470703125, -0.036865234375, -0.002758026123046875, 0.07745361328125, -0.04180908203125, -0.004421234130859375, -0.02130126953125, -0.0025691986083984375, -0.014495849609375, -0.0237884521484375, -0.0406494140625, 0.0137939453125, -0.09765625, 0.0255889892578125, 0.014984130859375, -0.0281219482421875, -0.0079193115234375, 0.048736572265625, -0.046142578125, -0.03436279296875, 0.02984619140625, 0.02740478515625, 0.001094818115234375, 0.046051025390625, -0.00254058837890625, 0.047576904296875, -0.03509521484375, -0.0013780593872070312, -0.10247802734375, -0.0194549560546875, -0.00984954833984375, 0.06719970703125, -0.022064208984375, 0.0260772705078125, -0.0291595458984375, 0.058807373046875, -0.0036449432373046875, -0.01995849609375, -0.0149993896484375, 0.00086212158203125, -0.01580810546875, -0.00853729248046875, -0.039520263671875, -0.00644683837890625, -0.00693511962890625, -0.057098388671875, -0.023681640625, -0.03717041015625, -0.0341796875, 0.03131103515625, -0.00559234619140625, -0.004764556884765625, -0.03411865234375, 0.01421356201171875, 0.005290985107421875, 0.053314208984375, -0.007793426513671875, -0.00335693359375, -0.0234375, -0.0491943359375, 0.0241241455078125, -0.0027675628662109375, 0.026214599609375, 0.0025653839111328125, 0.054168701171875, 0.0038776397705078125, -0.0263214111328125, -0.038330078125, 0.0024204254150390625, 0.02447509765625, 0.0173187255859375, 0.0193023681640625, -0.0009636878967285156, -0.01104736328125, 0.0301055908203125, 0.01270294189453125, 0.0045318603515625, -0.0174560546875, 0.034210205078125, -0.0087738037109375, 0.0030841827392578125, -0.0111541748046875, -0.0201873779296875, 0.033294677734375, 0.0245361328125, -0.0202789306640625, -0.0082244873046875, 0.0127410888671875, 0.0364990234375, -0.0310516357421875, 0.01171112060546875, -0.03485107421875, -0.051116943359375, 0.0257720947265625, 0.01190948486328125, 0.00966644287109375, 0.0173797607421875, -0.009246826171875, 0.03564453125, 0.01043701171875, 0.028961181640625, -0.01727294921875, 0.00862884521484375, 0.0062408447265625, 0.04315185546875, 0.0007467269897460938, 0.0367431640625, -0.039031982421875, -0.00289154052734375, 0.006805419921875, 0.01158905029296875, -0.0201416015625, -0.0267181396484375, 0.020294189453125, 0.026336669921875, -0.021484375, -0.057037353515625, 0.03997802734375, 0.043243408203125, 0.0004925727844238281, 0.01226806640625, -0.037567138671875, 0.00909423828125, -0.035247802734375, 0.00982666015625, 0.01313018798828125, -0.0257415771484375, 0.037567138671875, 0.00879669189453125, 0.01316070556640625, 0.01146697998046875, -0.02630615234375, 0.021575927734375, 0.00997161865234375, 0.01947021484375, 0.0193634033203125, 0.013427734375, -0.0267333984375, 0.0166168212890625, -0.0015211105346679688, -0.038787841796875, -0.00406646728515625, 0.024658203125, 0.07720947265625, -0.003215789794921875, -0.0218658447265625, 0.00817108154296875, -0.0275726318359375, -0.0019664764404296875, 0.0254364013671875, -0.01129150390625, -0.069580078125, 0.004547119140625, 0.0279541015625, 0.0259857177734375, -0.044097900390625, -0.0290374755859375, 0.0076141357421875, -0.0246124267578125, 0.0157928466796875, -0.057586669921875, -0.01389312744140625, 0.00970458984375, 0.015838623046875, -0.00846099853515625, -0.02825927734375, -0.0207061767578125, 0.05401611328125, 0.01337432861328125, -0.026947021484375, -0.038665771484375, 0.04296875, -0.023590087890625, 0.01776123046875, -0.003814697265625, -0.022857666015625, -0.035552978515625, 0.01274871826171875, 0.035797119140625, 0.004375457763671875, -0.053192138671875, 0.0043487548828125, -0.02813720703125, 0.0083160400390625, 0.020050048828125, -0.050079345703125, -0.0207366943359375, -0.028564453125, 0.0092010498046875, 0.00969696044921875, 0.0027484893798828125, -0.007785797119140625, 0.01335906982421875, -0.00012445449829101562, -0.016204833984375, 0.0119781494140625, -0.01099395751953125, 0.015716552734375, 0.03558349609375, 0.0382080078125, 0.01120758056640625, 0.014984130859375, -0.0026798248291015625, -0.0282135009765625, -0.0219573974609375, -0.058685302734375, 0.0118560791015625, 0.0174407958984375, -0.00598907470703125, 0.0130157470703125, 0.02593994140625, 0.00861358642578125, 0.0042877197265625, -0.022003173828125, -0.0168304443359375, -0.04095458984375, 0.06903076171875, -0.026214599609375, 0.03070068359375, -0.0419921875, -0.037506103515625, 0.0206146240234375, 0.02325439453125, 0.0215606689453125, -0.0102386474609375, -0.051544189453125, -0.00193023681640625, 0.06805419921875, 0.00102996826171875, 0.014190673828125, 0.10137939453125, 0.006744384765625, 0.07147216796875, 0.03265380859375, 0.0162200927734375, 0.027435302734375, 0.004901885986328125, -0.004093170166015625, 0.017791748046875, 0.05340576171875, -0.007518768310546875, -0.005767822265625, 0.026611328125, -0.020965576171875, 0.002899169921875, -0.0256500244140625, 0.04107666015625, 0.013885498046875, 0.0146026611328125, 0.026214599609375, -0.0175323486328125, 0.0303497314453125, -0.0008530616760253906, -0.004169464111328125, 0.01457977294921875, 0.01305389404296875, -0.01398468017578125, -0.0307464599609375, -0.00550079345703125, 0.01971435546875, -0.004741668701171875, -0.0006041526794433594, -0.0273590087890625, 0.0048370361328125, -0.054473876953125, 0.00910186767578125, 0.0292510986328125, -0.007747650146484375, -0.03118896484375, 0.005718231201171875, -0.0104522705078125, -0.00513458251953125, -0.051116943359375, 0.01141357421875, -0.005950927734375, 0.0193328857421875, 0.0163421630859375, 0.0299224853515625, 0.0316162109375, 0.018463134765625, 0.01898193359375, 0.0068359375, 0.0016193389892578125, -0.01064300537109375, 0.000354766845703125, -0.0129547119140625, 0.034881591796875, 0.00498199462890625, -0.039520263671875, 0.0169219970703125, -0.00962066650390625, -0.0244903564453125, -0.0268096923828125, 0.02154541015625, 0.10107421875, -0.03460693359375, -0.028564453125, 0.03411865234375, 0.0709228515625, -0.0318603515625, 0.0080108642578125, -0.005069732666015625, -0.06964111328125, -0.032684326171875, 0.006740570068359375, -0.034088134765625, 0.00305938720703125, -0.0101318359375, -0.0914306640625, 0.11212158203125, 0.006160736083984375, 0.05389404296875, -0.0020122528076171875, 0.03106689453125, -0.01067352294921875, 0.0021419525146484375, 0.005573272705078125, 0.02099609375, -0.0273284912109375, -0.00882720947265625, -0.035247802734375, 0.00966644287109375, -0.0127410888671875, 0.01020050048828125, 0.10565185546875, 0.0219268798828125, -0.030303955078125, -0.022003173828125, 0.05853271484375, 0.03350830078125, -0.0167999267578125, 0.028594970703125, -0.0294189453125, 0.0192413330078125, 0.029205322265625, -0.0352783203125, 0.021331787109375, 0.01349639892578125, -0.043975830078125, 0.0013265609741210938, 0.01465606689453125, 0.03466796875, -0.017730712890625, 0.0167236328125, -0.05804443359375, 0.0048370361328125, 0.060211181640625, -0.05987548828125, 0.0304107666015625, 0.03057861328125, 0.033416748046875, 0.027801513671875, -0.0064697265625, 0.00429534912109375, 0.03704833984375, 0.004589080810546875, 0.0328369140625, 0.0186767578125, 0.0034160614013671875, 0.0775146484375, -0.0198516845703125, 0.01015472412109375, 0.0291900634765625, 0.002414703369140625, 0.057525634765625, 0.0177154541015625, -0.0117340087890625, -0.03656005859375, 0.05157470703125, 0.03631591796875, 0.06024169921875, -0.08404541015625, -0.04241943359375, 0.006465911865234375, 0.004199981689453125, 0.00360107421875, -0.0085906982421875, -0.01337432861328125, -0.062744140625, -0.0021114349365234375, -0.058807373046875, 0.0243682861328125, 0.0682373046875, 0.01432037353515625, 0.0024356842041015625, -0.0012836456298828125, -0.08062744140625, 0.0095672607421875, -0.051544189453125, 0.0005397796630859375, 0.05120849609375, 0.03558349609375, 0.0291748046875, 0.0025730133056640625, 0.023895263671875, -0.004650115966796875, -0.01271820068359375, 0.034759521484375, -0.00658416748046875, 0.01338958740234375, -0.0201873779296875, -0.0391845703125, -0.01485443115234375, 0.029937744140625, 0.00514984130859375, 0.0305938720703125, 0.054718017578125, 0.0120391845703125, -0.057525634765625, -0.007282257080078125, 0.0152740478515625, -0.032470703125, 0.057708740234375, -0.01000213623046875, 0.00504302978515625, -0.0263519287109375, -0.0428466796875, -0.050933837890625, -0.022064208984375, 0.037811279296875, -0.0241851806640625, 0.0562744140625, 0.004150390625, -0.016204833984375, 0.04559326171875, 0.00878143310546875, 0.08551025390625, 0.0158538818359375, -0.044464111328125, 0.01114654541015625, -0.024169921875, -0.06396484375, 0.001445770263671875, 0.02166748046875, -0.025299072265625, 0.017425537109375, -0.001583099365234375, -0.006565093994140625, -0.0010232925415039062, -0.01461029052734375, 0.021087646484375, 0.00980377197265625, 0.0060272216796875, 0.01250457763671875, -0.029144287109375, -0.01715087890625, 0.01053619384765625, 0.019378662109375, 0.005413055419921875, 0.0083465576171875, 0.007061004638671875, 0.0185394287109375, -0.01422882080078125, 0.01445770263671875, -0.010101318359375, -0.006195068359375, 0.046539306640625, 0.0155181884765625, 0.0046234130859375, -0.0301971435546875, -0.007595062255859375, 0.0035686492919921875, 0.026336669921875, -0.02923583984375, -0.029022216796875, -0.0093994140625, 0.023193359375, 0.02606201171875, -0.033660888671875, -0.0382080078125, -0.0228424072265625, -0.0521240234375, -0.0316162109375, 0.041412353515625, -0.024871826171875, -0.031829833984375, 0.023651123046875, 0.07513427734375, -0.006511688232421875, 0.042572021484375, -0.01297760009765625, 0.10321044921875, 0.060211181640625, -0.0321044921875, -0.006870269775390625, 0.005825042724609375, -0.0185394287109375, -0.01165771484375, 0.017791748046875, 0.006317138671875, 0.013885498046875, -0.0111846923828125, -0.006908416748046875, -0.0218353271484375, 0.00783538818359375, -0.016845703125, -0.00923919677734375, -0.01212310791015625, -0.00322723388671875, -0.0204010009765625, -0.01374053955078125, -0.0032367706298828125, -0.036773681640625, 0.00039768218994140625, 0.0008711814880371094, -0.00200653076171875, -0.00870513916015625, 0.007770538330078125, -0.0207672119140625, 0.052398681640625, 0.028778076171875, -0.0802001953125, 0.06695556640625, -0.0139617919921875, -0.038421630859375, 0.00765228271484375, -0.0101776123046875, -0.0206298828125, 0.0283203125, -0.0008444786071777344, -0.034759521484375, -0.0614013671875, 0.030792236328125, -0.03369140625, 0.04754638671875, 0.05535888671875, -0.04241943359375, -0.04437255859375, 0.03387451171875, 0.041351318359375, 0.06390380859375, -0.0046234130859375, -0.03875732421875, -0.01082611083984375, 0.010528564453125, -0.0224456787109375, -0.041259765625, 0.0294036865234375, -0.06585693359375, -0.0113677978515625, -0.0070343017578125, -0.0038356781005859375, 0.006290435791015625, -0.024017333984375, -0.064453125, 0.0241241455078125, -0.0068359375, -0.0374755859375, -0.00670623779296875, -0.01556396484375, -0.00774383544921875, 0.05218505859375, 0.023590087890625, -0.02740478515625, -0.032501220703125, 0.0095977783203125, 0.033416748046875, -0.00542449951171875, 0.045013427734375, 0.0004172325134277344, -0.042816162109375, 0.006732940673828125, 0.0064849853515625, 0.0194091796875, 0.029632568359375, -0.0023097991943359375, 0.01538848876953125, 0.028564453125, -0.0265045166015625, -0.024932861328125, -0.034454345703125, -0.0245513916015625, -0.045196533203125, -0.02294921875, -0.01226043701171875, 0.0069580078125, 0.06451416015625, 0.08343505859375, 0.0109405517578125, -0.04595947265625, -0.0209808349609375, -0.0289154052734375, -0.037200927734375, -0.030517578125, 0.0205841064453125, -0.0941162109375, -0.021514892578125, -0.0013103485107421875, -0.021148681640625, -0.0008435249328613281, -0.007312774658203125, -0.034454345703125, 0.00853729248046875, 0.0208282470703125, 0.00732421875, -0.058074951171875, 0.0526123046875, 0.0648193359375, -0.053985595703125, 0.01336669921875, -0.0203094482421875, 0.0014295578002929688, 0.0270538330078125, -0.058135986328125, 0.01197052001953125, -0.00634002685546875, -0.0186004638671875, 0.0283660888671875, 0.006755828857421875, 0.0192413330078125, -0.0269317626953125, -0.0161285400390625, -0.0115203857421875, 0.0087432861328125, 0.0205841064453125, 0.018218994140625, 0.00001996755599975586, -0.00739288330078125, 0.0205230712890625, -0.01033782958984375, -0.007965087890625, 0.0029449462890625, -0.006153106689453125, 0.006587982177734375, -0.0160369873046875, 0.0167388916015625, 0.0305938720703125, -0.031951904296875, -0.01544952392578125, -0.0004298686981201172, -0.0460205078125, -0.052703857421875, 0.021942138671875, -0.006450653076171875, -0.029022216796875, 0.00848388671875 ]
ab64d1dbf1b51c24054f1a2dc66901505e65a095
Wordpress Stackexchange Q: How to use same email for multiple users I have a very big multisite. And I got a request to enable option that multiple users can use the same email. I found a plugin "Allow Multiple Accounts" which doesn't work properly. I should figure out some other solution for that. I know that I could use something like adding +sometext to every email, so it will show different to Wordpress. Do you have some other solution, that can be done here? A: You can use wpmu_validate_user_signup filter to remove the error and then define WP_IMPORTING just to skip the email_exist() check in wp_insert_user() function: add_filter('wpmu_validate_user_signup', 'skip_email_exist'); function skip_email_exist($result){ if(isset($result['errors']->errors['user_email']) && ($key = array_search(__('Sorry, that email address is already used!'), $result['errors']->errors['user_email'])) !== false) { unset($result['errors']->errors['user_email'][$key]); if (empty($result['errors']->errors['user_email'])) unset($result['errors']->errors['user_email']); } define( 'WP_IMPORTING', 'SKIP_EMAIL_EXIST' ); return $result; } UPDATE: for a non Multi-site setup try this code: add_filter('pre_user_email', 'skip_email_exist'); function skip_email_exist($user_email){ define( 'WP_IMPORTING', 'SKIP_EMAIL_EXIST' ); return $user_email; }
Q: How to use same email for multiple users I have a very big multisite. And I got a request to enable option that multiple users can use the same email. I found a plugin "Allow Multiple Accounts" which doesn't work properly. I should figure out some other solution for that. I know that I could use something like adding +sometext to every email, so it will show different to Wordpress. Do you have some other solution, that can be done here? A: You can use wpmu_validate_user_signup filter to remove the error and then define WP_IMPORTING just to skip the email_exist() check in wp_insert_user() function: add_filter('wpmu_validate_user_signup', 'skip_email_exist'); function skip_email_exist($result){ if(isset($result['errors']->errors['user_email']) && ($key = array_search(__('Sorry, that email address is already used!'), $result['errors']->errors['user_email'])) !== false) { unset($result['errors']->errors['user_email'][$key]); if (empty($result['errors']->errors['user_email'])) unset($result['errors']->errors['user_email']); } define( 'WP_IMPORTING', 'SKIP_EMAIL_EXIST' ); return $result; } UPDATE: for a non Multi-site setup try this code: add_filter('pre_user_email', 'skip_email_exist'); function skip_email_exist($user_email){ define( 'WP_IMPORTING', 'SKIP_EMAIL_EXIST' ); return $user_email; } A: You can you use the Gmail alias feature: * *First WordPress account: [email protected] *Second WordPress account: [email protected] *Third WordPress account: [email protected] and so on. All emails will be delivered to the same address ([email protected]). Inside Gmail, you can distinguish the emails using a filter or a search. For example, searching for to:[email protected] will show only the emails related to the first WordPress account. This solution should not break the "Reset password" workflow in WordPress.
wordpress
{ "language": "en", "length": 231, "provenance": "stackexchange_00019.jsonl.gz:426636", "question_score": "15", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75565" }
[ 0.1033935546875, -0.0067291259765625, -0.010101318359375, -0.09381103515625, 0.0343017578125, -0.046356201171875, 0.02886962890625, -0.01409912109375, 0.0008931159973144531, 0.016204833984375, -0.0215301513671875, -0.01788330078125, -0.007236480712890625, -0.01904296875, -0.0160064697265625, -0.04339599609375, -0.0278778076171875, 0.03302001953125, -0.0384521484375, -0.04266357421875, 0.017822265625, -0.035614013671875, -0.09332275390625, 0.0125274658203125, -0.04803466796875, 0.0230255126953125, 0.059478759765625, -0.00390625, -0.054718017578125, -0.03302001953125, -0.01308441162109375, 0.04205322265625, 0.006378173828125, 0.0235137939453125, -0.040557861328125, -0.031341552734375, 0.00019538402557373047, 0.0049896240234375, -0.01467132568359375, 0.02716064453125, 0.03704833984375, -0.0234375, -0.0013217926025390625, -0.0231781005859375, 0.00760650634765625, -0.061370849609375, 0.085205078125, -0.02349853515625, 0.04010009765625, 0.03753662109375, 0.0205535888671875, 0.00545501708984375, 0.0245208740234375, -0.00878143310546875, -0.031829833984375, -0.03643798828125, 0.0014314651489257812, -0.0146942138671875, 0.00904083251953125, 0.01197052001953125, -0.004840850830078125, 0.0198822021484375, 0.00782012939453125, -0.0091705322265625, 0.004974365234375, -0.030364990234375, -0.019622802734375, 0.037567138671875, -0.0077972412109375, -0.01287841796875, 0.0175933837890625, 0.0096588134765625, 0.035003662109375, -0.0133819580078125, -0.05517578125, 0.0083465576171875, 0.01064300537109375, 0.001201629638671875, 0.03192138671875, -0.04840087890625, -0.036407470703125, -0.05426025390625, -0.0816650390625, -0.01406097412109375, 0.01837158203125, 0.039337158203125, -0.0112152099609375, -0.008819580078125, -0.032623291015625, 0.019012451171875, -0.0262298583984375, -0.037078857421875, -0.0157318115234375, 0.01488494873046875, 0.0032444000244140625, -0.0196533203125, 0.034149169921875, 0.07452392578125, -0.033172607421875, -0.0300750732421875, -0.022552490234375, -0.005794525146484375, -0.067626953125, -0.0171661376953125, 0.00023889541625976562, 0.034149169921875, -0.0161590576171875, -0.0301513671875, -0.003437042236328125, 0.0221405029296875, -0.01186370849609375, -0.009796142578125, -0.01513671875, -0.0430908203125, -0.00756072998046875, 0.01233673095703125, -0.037078857421875, 0.0128936767578125, 0.0233306884765625, -0.01021575927734375, -0.01146697998046875, 0.01983642578125, -0.034393310546875, -0.039794921875, -0.015838623046875, -0.043212890625, -0.0020465850830078125, -0.00234222412109375, -0.00975799560546875, 0.00705718994140625, -0.049163818359375, 0.01538848876953125, 0.04925537109375, 0.03326416015625, 0.0141448974609375, -0.0169677734375, 0.0095367431640625, 0.012451171875, -0.00872802734375, 0.0170745849609375, 0.004375457763671875, -0.05389404296875, -0.033905029296875, 0.0009908676147460938, -0.025115966796875, 0.018402099609375, 0.0256500244140625, 0.00310516357421875, -0.0089569091796875, -0.0094146728515625, -0.046478271484375, 0.016632080078125, -0.01422882080078125, 0.006427764892578125, 0.007755279541015625, 0.00605010986328125, -0.0233612060546875, -0.004039764404296875, 0.024261474609375, 0.01512908935546875, 0.051300048828125, -0.040191650390625, -0.02642822265625, 0.00441741943359375, -0.0501708984375, 0.052581787109375, -0.047088623046875, -0.0028667449951171875, 0.0083770751953125, -0.040802001953125, -0.037994384765625, 0.009918212890625, 0.041168212890625, 0.0006160736083984375, 0.002696990966796875, 0.035003662109375, -0.039276123046875, 0.0293731689453125, 0.03448486328125, -0.01036834716796875, -0.0074615478515625, -0.033447265625, 0.057586669921875, 0.005535125732421875, -0.062744140625, 0.01445770263671875, -0.00786590576171875, 0.03216552734375, 0.037139892578125, 0.006732940673828125, 0.0249176025390625, 0.023284912109375, 0.01983642578125, -0.01342010498046875, -0.01611328125, -0.040252685546875, -0.00640869140625, -0.0089263916015625, -0.021087646484375, 0.0266265869140625, 0.0416259765625, -0.07928466796875, 0.0775146484375, -0.0548095703125, -0.05926513671875, -0.0201263427734375, -0.036376953125, 0.006587982177734375, -0.05780029296875, -0.0087890625, 0.03863525390625, -0.0178680419921875, -0.026336669921875, 0.0098876953125, 0.027923583984375, 0.00428009033203125, -0.049407958984375, 0.0306243896484375, 0.0035343170166015625, 0.06683349609375, -0.0031452178955078125, -0.03900146484375, 0.0139617919921875, -0.035186767578125, -0.015289306640625, -0.024505615234375, -0.00897216796875, -0.01349639892578125, -0.043121337890625, -0.004833221435546875, 0.0039215087890625, 0.050506591796875, 0.0482177734375, 0.058380126953125, -0.036895751953125, 0.007709503173828125, -0.020111083984375, 0.01119232177734375, -0.01271820068359375, 0.0235595703125, 0.044097900390625, 0.028564453125, 0.0012941360473632812, -0.0036716461181640625, -0.005222320556640625, -0.0489501953125, 0.035400390625, -0.0252685546875, -0.01319122314453125, 0.032562255859375, -0.04681396484375, 0.00763702392578125, 0.0174407958984375, -0.040618896484375, -0.031890869140625, 0.057037353515625, -0.0208282470703125, -0.02337646484375, -0.0163726806640625, -0.0029926300048828125, 0.0202789306640625, -0.0562744140625, -0.029815673828125, -0.0133514404296875, -0.007740020751953125, 0.000652313232421875, 0.0171051025390625, 0.0039043426513671875, 0.0123291015625, -0.021087646484375, -0.0033512115478515625, -0.064697265625, 0.01067352294921875, -0.0112152099609375, 0.0027637481689453125, 0.078369140625, -0.0380859375, -0.01346588134765625, 0.047119140625, 0.024932861328125, -0.040252685546875, -0.01113128662109375, -0.0036468505859375, 0.00041961669921875, 0.00009810924530029297, -0.01244354248046875, 0.032470703125, -0.0157012939453125, 0.030120849609375, -0.01947021484375, 0.0234832763671875, -0.01277923583984375, -0.04833984375, 0.05145263671875, -0.0345458984375, -0.0501708984375, -0.045928955078125, -0.034027099609375, 0.040679931640625, -0.06787109375, 0.0074920654296875, 0.061920166015625, -0.0072174072265625, 0.0099945068359375, -0.0029468536376953125, -0.01317596435546875, -0.018280029296875, 0.0190582275390625, 0.0018377304077148438, -0.0264739990234375, -0.0227203369140625, 0.038482666015625, 0.0145263671875, 0.02874755859375, -0.02972412109375, -0.04083251953125, -0.0239715576171875, -0.007686614990234375, -0.0380859375, -0.03948974609375, -0.0136260986328125, -0.0355224609375, -0.0019102096557617188, 0.0291900634765625, -0.01324462890625, -0.00890350341796875, 0.036834716796875, 0.013275146484375, 0.0211944580078125, -0.03594970703125, -0.09588623046875, -0.060394287109375, -0.08782958984375, -0.0198822021484375, -0.0165863037109375, -0.0010118484497070312, -0.0010690689086914062, 0.0560302734375, 0.00931549072265625, 0.00911712646484375, 0.01354217529296875, -0.005702972412109375, -0.015960693359375, -0.037322998046875, -0.031982421875, 0.006866455078125, 0.00908660888671875, 0.008209228515625, 0.002841949462890625, 0.01776123046875, -0.003833770751953125, -0.0164642333984375, 0.055328369140625, -0.016021728515625, 0.03887939453125, -0.0019254684448242188, -0.06463623046875, 0.0181884765625, 0.0264739990234375, -0.033416748046875, -0.01328277587890625, 0.0113525390625, -0.04254150390625, -0.01126861572265625, -0.0035152435302734375, -0.00426483154296875, 0.0219879150390625, -0.0131988525390625, 0.0179290771484375, -0.0006761550903320312, 0.0007586479187011719, 0.0122528076171875, -0.0012645721435546875, -0.01111602783203125, -0.00806427001953125, -0.01097869873046875, 0.024688720703125, -0.01251220703125, -0.03607177734375, -0.0229034423828125, -0.0018510818481445312, -0.029754638671875, 0.021484375, -0.04736328125, -0.047882080078125, 0.036346435546875, 0.000023245811462402344, 0.051055908203125, -0.057464599609375, -0.037353515625, -0.0288543701171875, 0.09405517578125, 0.0054168701171875, -0.0172882080078125, -0.004817962646484375, 0.0164794921875, -0.04620361328125, -0.0283355712890625, -0.01715087890625, 0.00655364990234375, -0.0025577545166015625, 0.0015230178833007812, -0.0128936767578125, -0.0081329345703125, 0.0079498291015625, -0.09124755859375, 0.0169219970703125, -0.03375244140625, 0.0242462158203125, 0.0047149658203125, 0.019012451171875, 0.005115509033203125, -0.003261566162109375, -0.01190185546875, -0.007434844970703125, -0.0184173583984375, -0.006816864013671875, 0.0024871826171875, -0.024627685546875, 0.02130126953125, -0.01119232177734375, 0.0478515625, -0.02667236328125, 0.0171661376953125, -0.0107879638671875, 0.01331329345703125, -0.00032448768615722656, 0.00907135009765625, 0.028533935546875, -0.0007958412170410156, -0.008514404296875, -0.001270294189453125, 0.005153656005859375, -0.026397705078125, -0.059326171875, -0.019012451171875, -0.034698486328125, 0.0384521484375, -0.005157470703125, -0.031951904296875, -0.0079803466796875, -0.0192718505859375, -0.01398468017578125, 0.0191802978515625, -0.004638671875, -0.021636962890625, -0.0219268798828125, -0.01425933837890625, 0.03570556640625, -0.020599365234375, -0.0195465087890625, 0.0019483566284179688, 0.034454345703125, 0.0028934478759765625, -0.016876220703125, -0.03765869140625, -0.0237274169921875, 0.0185699462890625, 0.006107330322265625, 0.019073486328125, 0.0006604194641113281, -0.00910186767578125, 0.01739501953125, 0.00004845857620239258, 0.0087127685546875, 0.005329132080078125, 0.0062408447265625, 0.0006203651428222656, -0.033477783203125, 0.011138916015625, -0.0015621185302734375, 0.01541900634765625, 0.069580078125, 0.033660888671875, -0.04461669921875, 0.038330078125, 0.01812744140625, -0.0033416748046875, -0.04034423828125, -0.022186279296875, -0.040130615234375, 0.01160430908203125, -0.040924072265625, -0.01270294189453125, 0.01702880859375, -0.011566162109375, -0.01126861572265625, -0.025482177734375, -0.007568359375, 0.006866455078125, 0.0252838134765625, -0.019683837890625, 0.019561767578125, 0.01629638671875, -0.02459716796875, -0.017608642578125, -0.01493072509765625, 0.06640625, 0.0311431884765625, -0.0240631103515625, 0.002178192138671875, 0.00274658203125, 0.04290771484375, -0.00634002685546875, -0.0267333984375, 0.033935546875, 0.0216064453125, -0.0248870849609375, 0.01995849609375, -0.0013875961303710938, -0.02874755859375, -0.043060302734375, -0.00630950927734375, 0.00853729248046875, -0.018646240234375, 0.034912109375, 0.034210205078125, -0.041015625, 0.050689697265625, 0.0007739067077636719, 0.040496826171875, 0.09478759765625, 0.0059967041015625, 0.01812744140625, -0.0005526542663574219, -0.05511474609375, 0.03155517578125, -0.0096282958984375, -0.0205841064453125, -0.0202484130859375, 0.0294952392578125, 0.03875732421875, 0.0222625732421875, 0.02288818359375, -0.030029296875, -0.0112152099609375, -0.00727081298828125, 0.05169677734375, -0.0024967193603515625, -0.047393798828125, -0.026397705078125, -0.0074462890625, 0.006145477294921875, -0.042266845703125, -0.0166778564453125, -0.00508880615234375, -0.0310516357421875, -0.0172882080078125, 0.0484619140625, -0.046966552734375, -0.00867462158203125, 0.002796173095703125, 0.038665771484375, -0.01904296875, -0.0119781494140625, -0.01488494873046875, 0.0178070068359375, -0.0269012451171875, 0.0114898681640625, 0.0087432861328125, -0.01287841796875, -0.00036978721618652344, -0.04736328125, 0.0253753662109375, -0.052459716796875, -0.004215240478515625, 0.04852294921875, 0.0333251953125, -0.044097900390625, 0.01520538330078125, -0.0621337890625, -0.01386260986328125, -0.0252838134765625, -0.02294921875, -0.0355224609375, 0.00820159912109375, 0.047698974609375, 0.0112457275390625, 0.00254058837890625, -0.0545654296875, -0.006336212158203125, 0.0016622543334960938, 0.03448486328125, 0.01036834716796875, -0.030670166015625, 0.0347900390625, 0.0149078369140625, 0.024871826171875, -0.0079498291015625, 0.0253448486328125, 0.03875732421875, -0.032745361328125, -0.0218658447265625, -0.045166015625, -0.01543426513671875, 0.00659942626953125, -0.020965576171875, 0.057708740234375, 0.0679931640625, 0.01007843017578125, -0.0016050338745117188, -0.00968170166015625, 0.0011682510375976562, -0.028106689453125, 0.0257110595703125, -0.003276824951171875, -0.006072998046875, 0.0201416015625, -0.024169921875, 0.01155853271484375, 0.0185394287109375, -0.01849365234375, 0.0246124267578125, -0.0032405853271484375, 0.0210723876953125, -0.0124664306640625, -0.01898193359375, 0.04229736328125, 0.04412841796875, -0.054962158203125, 0.0022373199462890625, 0.01503753662109375, -0.023284912109375, 0.021026611328125, -0.007579803466796875, -0.0013704299926757812, -0.032501220703125, 0.0162506103515625, -0.016204833984375, 0.00012993812561035156, 0.015472412109375, -0.01264190673828125, 0.0030536651611328125, 0.0777587890625, 0.06768798828125, -0.09716796875, 0.00791168212890625, 0.01499176025390625, 0.0014810562133789062, 0.003154754638671875, 0.01004791259765625, 0.01511383056640625, -0.033111572265625, 0.031982421875, -0.00885009765625, 0.004055023193359375, 0.0117950439453125, -0.031463623046875, -0.007503509521484375, -0.038421630859375, 0.01288604736328125, 0.01505279541015625, -0.0005860328674316406, 0.0252685546875, 0.00234222412109375, 0.02105712890625, -0.01119232177734375, -0.0300140380859375, 0.033966064453125, -0.05291748046875, -0.090087890625, -0.0281829833984375, -0.01239013671875, -0.0227508544921875, -0.057952880859375, 0.00702667236328125, 0.0517578125, 0.03448486328125, 0.007457733154296875, -0.047607421875, 0.0257568359375, 0.001758575439453125, -0.02813720703125, -0.0139617919921875, 0.00592803955078125, 0.01226806640625, -0.034210205078125, 0.029205322265625, -0.022216796875, -0.01306915283203125, -0.0036411285400390625, 0.031280517578125, 0.039581298828125, 0.0168914794921875, -0.036590576171875, 0.0325927734375, 0.0176544189453125, -0.010955810546875, 0.0017290115356445312, 0.031707763671875, -0.06402587890625, -0.0845947265625, 0.0123138427734375, -0.1038818359375, -0.0135345458984375, 0.0012922286987304688, -0.08477783203125, 0.09893798828125, 0.002162933349609375, 0.06524658203125, 0.003936767578125, 0.0190582275390625, -0.0090789794921875, 0.00958251953125, -0.0290985107421875, 0.03533935546875, -0.0275421142578125, 0.05255126953125, -0.041778564453125, 0.01264190673828125, 0.017791748046875, 0.0232696533203125, 0.037872314453125, 0.027862548828125, -0.044189453125, -0.0121307373046875, 0.0167388916015625, 0.02734375, -0.001659393310546875, 0.037322998046875, 0.0035915374755859375, 0.037078857421875, 0.041900634765625, -0.041534423828125, 0.0213775634765625, 0.0023937225341796875, -0.02154541015625, 0.041778564453125, 0.0009784698486328125, 0.0009870529174804688, 0.006313323974609375, 0.035552978515625, -0.0214691162109375, 0.004703521728515625, 0.0180206298828125, -0.021697998046875, 0.016845703125, -0.00687408447265625, -0.01568603515625, -0.0246429443359375, 0.035247802734375, -0.0214691162109375, 0.03167724609375, -0.01047515869140625, 0.02490234375, 0.03704833984375, 0.010009765625, 0.04638671875, 0.032928466796875, 0.021453857421875, 0.0228729248046875, 0.0223846435546875, 0.0173187255859375, -0.005115509033203125, 0.0209808349609375, -0.057952880859375, -0.033050537109375, 0.038970947265625, 0.0390625, -0.0052032470703125, -0.053802490234375, 0.00908660888671875, 0.0083160400390625, 0.0067138671875, 0.0142974853515625, 0.027099609375, -0.061767578125, 0.01497650146484375, -0.06884765625, 0.0016126632690429688, 0.046539306640625, 0.007785797119140625, -0.01739501953125, -0.03204345703125, 0.007965087890625, -0.0005030632019042969, -0.047454833984375, 0.0205230712890625, 0.02685546875, 0.0185089111328125, 0.0009021759033203125, 0.027191162109375, 0.01186370849609375, -0.0084381103515625, -0.027313232421875, 0.03399658203125, 0.0018339157104492188, 0.0157623291015625, -0.01338958740234375, -0.01357269287109375, -0.0156402587890625, 0.027496337890625, -0.00164031982421875, 0.0111541748046875, 0.05035400390625, 0.03680419921875, -0.03778076171875, -0.025177001953125, -0.0202178955078125, -0.035400390625, 0.05072021484375, -0.0313720703125, 0.0072784423828125, -0.037261962890625, -0.0269775390625, -0.04107666015625, 0.020965576171875, 0.00797271728515625, -0.0008215904235839844, 0.033233642578125, -0.00270843505859375, -0.00293731689453125, -0.002529144287109375, -0.00286865234375, 0.0194854736328125, 0.0298614501953125, -0.1043701171875, -0.042877197265625, -0.01094818115234375, 0.0196533203125, 0.006343841552734375, 0.0294189453125, -0.0050506591796875, 0.032928466796875, 0.0570068359375, -0.004901885986328125, 0.0301513671875, -0.0251617431640625, 0.0091705322265625, -0.037872314453125, 0.01221466064453125, -0.00460052490234375, -0.0672607421875, -0.0035152435302734375, 0.004764556884765625, -0.031463623046875, 0.0119476318359375, 0.0193634033203125, 0.046112060546875, -0.0025386810302734375, 0.002925872802734375, 0.0345458984375, -0.0222015380859375, -0.017578125, 0.03076171875, -0.009033203125, 0.006103515625, -0.0010404586791992188, -0.01061248779296875, 0.03692626953125, 0.030487060546875, -0.0142974853515625, 0.038787841796875, -0.020782470703125, 0.0032253265380859375, -0.0234527587890625, 0.054046630859375, -0.0094451904296875, -0.0440673828125, -0.059112548828125, 0.004154205322265625, 0.0384521484375, 0.04791259765625, -0.031890869140625, -0.0012187957763671875, -0.01284027099609375, -0.046173095703125, 0.006084442138671875, -0.00044798851013183594, -0.01556396484375, 0.0239105224609375, 0.01168060302734375, 0.0036144256591796875, -0.006786346435546875, -0.0206756591796875, -0.0175628662109375, 0.004947662353515625, -0.00508880615234375, 0.00838470458984375, -0.0198211669921875, 0.0323486328125, 0.046966552734375, 0.0222625732421875, -0.0126190185546875, -0.0106353759765625, 0.082763671875, -0.0433349609375, -0.00786590576171875, -0.053131103515625, -0.0312347412109375, -0.020294189453125, 0.019775390625, 0.0335693359375, 0.011871337890625, 0.0023021697998046875, -0.031341552734375, 0.0223388671875, 0.0195770263671875, -0.0076446533203125, -0.033599853515625, 0.01678466796875, -0.0137939453125, 0.05889892578125, -0.041534423828125, -0.00977325439453125, -0.005558013916015625, 0.02520751953125, -0.0217742919921875, -0.0330810546875, -0.0386962890625, 0.029266357421875, -0.031951904296875, -0.03265380859375, 0.0238189697265625, 0.0167236328125, -0.060272216796875, -0.0518798828125, -0.043487548828125, -0.0102691650390625, -0.02215576171875, -0.020751953125, -0.0195465087890625, 0.01126861572265625, -0.0017347335815429688, -0.057098388671875, 0.0079345703125, -0.055267333984375, -0.0091552734375, 0.01381683349609375, -0.0075531005859375, 0.02362060546875, -0.040802001953125, -0.11236572265625, 0.071044921875, -0.024261474609375, -0.0438232421875, -0.021759033203125, -0.045867919921875, -0.02484130859375, 0.03448486328125, 0.00205230712890625, -0.033447265625, -0.032958984375, 0.0635986328125, -0.00933837890625, 0.0122528076171875, 0.01580810546875, -0.00508880615234375, -0.03271484375, -0.0016908645629882812, -0.0008726119995117188, -0.0364990234375, 0.026641845703125, -0.028472900390625, 0.08026123046875, 0.0789794921875, 0.01116943359375, -0.00960540771484375, 0.02349853515625, -0.08795166015625, -0.0309906005859375, 0.028045654296875, -0.0172882080078125, 0.02117919921875, 0.0966796875, 0.06768798828125, 0.025177001953125, -0.047637939453125, -0.0206756591796875, -0.027252197265625, -0.0242767333984375, -0.00928497314453125, 0.003833770751953125, -0.040008544921875, 0.020111083984375, -0.0194854736328125, -0.01168060302734375, 0.0283203125, -0.0021152496337890625, -0.020965576171875, -0.004375457763671875, -0.0082855224609375, -0.0089111328125, -0.059478759765625, 0.0267181396484375, -0.0172882080078125, -0.01538848876953125, -0.056396484375, -0.0195159912109375, -0.01043701171875, -0.057403564453125, -0.032562255859375, 0.02880859375, -0.01319122314453125, -0.0333251953125, 0.01119232177734375, 0.0181884765625, 0.024871826171875, -0.028839111328125, -0.04754638671875, 0.007354736328125, 0.0225982666015625, -0.01983642578125, 0.0123291015625, 0.0206451416015625, 0.0245208740234375, -0.017730712890625, 0.070556640625, -0.0244293212890625, 0.017547607421875, -0.034027099609375, 0.0173797607421875, 0.00086212158203125, 0.01629638671875, 0.0190887451171875, 0.02459716796875, 0.0058441162109375, 0.0279693603515625, 0.05047607421875, -0.0304412841796875, 0.041473388671875, 0.01364898681640625, 0.0516357421875, 0.020721435546875 ]
58e429bda25c6ea352881a37f28d9da457617050
Wordpress Stackexchange Q: When do I need to use esc_attr when using WordPress internal functions When I am putting a WordPress value inside the attribute tag, for example, the following method does not need esc_attr e.g. // JS code alert('<?php echo get_bloginfo('name');?>'); the following method does need esc_attr // JS code alert('<?php echo esc_attr($post->post_title);?>'); What is the convention used? A: You can look at the Codex. Encodes < > & " ' (less than, greater than, ampersand, double quote, single quote). Will never double encode entities. Given that, arguably, both of those strings need sanitization. Imagine a site name like >> "My" Website's Great Title <<" Also, since you are using this in Javascript, you should probably be using esc_js instead. The convention is, "understand how markup works, and how malicious hackers work, and act accordingly." That is how you know how to use these functions. Also, Trust No One. See also this article from our member Stephen Harris: Data Sanitization and Validation With WordPress
Q: When do I need to use esc_attr when using WordPress internal functions When I am putting a WordPress value inside the attribute tag, for example, the following method does not need esc_attr e.g. // JS code alert('<?php echo get_bloginfo('name');?>'); the following method does need esc_attr // JS code alert('<?php echo esc_attr($post->post_title);?>'); What is the convention used? A: You can look at the Codex. Encodes < > & " ' (less than, greater than, ampersand, double quote, single quote). Will never double encode entities. Given that, arguably, both of those strings need sanitization. Imagine a site name like >> "My" Website's Great Title <<" Also, since you are using this in Javascript, you should probably be using esc_js instead. The convention is, "understand how markup works, and how malicious hackers work, and act accordingly." That is how you know how to use these functions. Also, Trust No One. See also this article from our member Stephen Harris: Data Sanitization and Validation With WordPress A: You use esc_attr() when you are outputting something intended to be in an HTML attribute. In your case, you should be using esc_js(), or possibly json_encode() instead. A: If your post title has single quote in it. Output of your code would be alert('It's bad'); that is, breaking your JavaScript code and you will get "Unexpected identifier". When you use esc_attr, output would be alert('It&#039;s bad'); Post title will be encoded so it works within the strings.
wordpress
{ "language": "en", "length": 241, "provenance": "stackexchange_00019.jsonl.gz:426643", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75590" }
[ 0.035430908203125, -0.015228271484375, -0.005161285400390625, -0.0018548965454101562, 0.0183563232421875, -0.01270294189453125, 0.043304443359375, -0.0122528076171875, 0.0243682861328125, 0.017333984375, -0.0465087890625, -0.0055084228515625, 0.0213623046875, -0.01061248779296875, 0.0036182403564453125, -0.016876220703125, 0.046844482421875, -0.006397247314453125, 0.034332275390625, -0.01053619384765625, -0.0022945404052734375, 0.0180511474609375, 0.0167694091796875, 0.02984619140625, 0.043212890625, -0.05267333984375, 0.101806640625, -0.04022216796875, 0.06585693359375, 0.01071929931640625, 0.03570556640625, -0.05877685546875, 0.031036376953125, 0.0182952880859375, -0.048309326171875, 0.059600830078125, -0.0301361083984375, 0.03399658203125, 0.017120361328125, 0.024200439453125, 0.009124755859375, -0.0091400146484375, 0.040069580078125, 0.0212860107421875, 0.014068603515625, -0.0496826171875, 0.0272979736328125, -0.048126220703125, 0.014556884765625, -0.058685302734375, 0.0245513916015625, -0.00634002685546875, 0.053558349609375, -0.024932861328125, -0.0291900634765625, 0.0247039794921875, -0.00789642333984375, -0.032135009765625, 0.0126190185546875, 0.06622314453125, 0.006587982177734375, -0.0034942626953125, -0.00466156005859375, -0.0640869140625, 0.021820068359375, 0.008575439453125, -0.01184844970703125, 0.028594970703125, -0.039337158203125, 0.0005016326904296875, 0.0286407470703125, -0.048583984375, -0.021942138671875, -0.0164031982421875, 0.00147247314453125, 0.030975341796875, 0.007770538330078125, -0.004009246826171875, -0.01157379150390625, 0.0227508544921875, 0.0186767578125, 0.02227783203125, -0.0195159912109375, -0.021514892578125, 0.02691650390625, 0.0159149169921875, -0.004779815673828125, -0.01520538330078125, -0.00695037841796875, -0.03271484375, -0.006809234619140625, 0.01134490966796875, -0.0164031982421875, -0.01320648193359375, -0.027618408203125, -0.035888671875, 0.023773193359375, 0.045501708984375, 0.0016574859619140625, 0.015533447265625, 0.047119140625, -0.053314208984375, 0.042724609375, -0.04254150390625, -0.00811004638671875, 0.030181884765625, -0.024749755859375, -0.040374755859375, 0.0135345458984375, 0.025146484375, -0.005840301513671875, -0.04095458984375, -0.0413818359375, -0.031097412109375, -0.03045654296875, 0.0345458984375, -0.04803466796875, 0.010498046875, 0.0139923095703125, 0.0168914794921875, -0.004688262939453125, 0.01442718505859375, -0.006320953369140625, -0.039306640625, 0.01070404052734375, 0.003673553466796875, 0.002193450927734375, -0.015655517578125, -0.0418701171875, 0.032867431640625, -0.002925872802734375, 0.0209808349609375, 0.0469970703125, 0.00522613525390625, -0.03546142578125, -0.0305938720703125, 0.01494598388671875, 0.00391387939453125, 0.007434844970703125, -0.0220794677734375, 0.01219940185546875, 0.0292510986328125, 0.04931640625, -0.022613525390625, 0.0011415481567382812, 0.017852783203125, -0.00162506103515625, -0.0025787353515625, 0.01342010498046875, -0.0401611328125, 0.0229949951171875, -0.053436279296875, 0.052215576171875, -0.0199737548828125, -0.033966064453125, -0.042144775390625, 0.006679534912109375, -0.03436279296875, -0.020294189453125, -0.033843994140625, -0.00023746490478515625, -0.0126953125, 0.0196685791015625, -0.001438140869140625, -0.034210205078125, 0.0207672119140625, -0.0008559226989746094, -0.0172119140625, 0.0304107666015625, 0.0279083251953125, 0.0205078125, -0.0254364013671875, -0.0038280487060546875, 0.0098724365234375, -0.0076446533203125, 0.0117034912109375, -0.0247650146484375, 0.038055419921875, 0.018890380859375, -0.01544189453125, 0.01219940185546875, -0.030487060546875, 0.06353759765625, -0.024139404296875, -0.06964111328125, 0.039642333984375, 0.01459503173828125, 0.08599853515625, 0.023345947265625, 0.01739501953125, 0.052093505859375, 0.006107330322265625, -0.004856109619140625, 0.0020503997802734375, -0.0052947998046875, -0.041351318359375, 0.01727294921875, 0.0022296905517578125, -0.01224517822265625, 0.0245361328125, 0.051422119140625, 0.0039825439453125, 0.002613067626953125, 0.01139068603515625, -0.0230255126953125, 0.0160675048828125, -0.0084991455078125, 0.01354217529296875, -0.02252197265625, 0.0233154296875, 0.0262603759765625, 0.0100860595703125, -0.029754638671875, 0.00899505615234375, 0.00933074951171875, 0.01074981689453125, -0.018310546875, 0.047882080078125, -0.0294952392578125, 0.0187530517578125, -0.0307464599609375, -0.048492431640625, -0.01096343994140625, 0.035003662109375, 0.023651123046875, -0.0168304443359375, -0.0103607177734375, -0.026611328125, 0.013336181640625, 0.0007596015930175781, -0.01312255859375, 0.01024627685546875, 0.061187744140625, 0.05096435546875, -0.0172271728515625, -0.01329803466796875, -0.0148468017578125, -0.08172607421875, -0.007213592529296875, 0.0694580078125, 0.0305023193359375, 0.047821044921875, 0.00960540771484375, -0.00835418701171875, 0.03436279296875, -0.0240478515625, 0.043975830078125, -0.040985107421875, 0.0026702880859375, -0.005268096923828125, -0.0038433074951171875, -0.04290771484375, 0.032989501953125, -0.109619140625, -0.0001138448715209961, 0.04888916015625, -0.04571533203125, -0.0294342041015625, -0.027099609375, 0.0109100341796875, 0.004695892333984375, -0.06048583984375, -0.004425048828125, -0.03765869140625, 0.0634765625, -0.0036754608154296875, 0.03179931640625, 0.01403045654296875, -0.0233612060546875, 0.0208282470703125, 0.0004050731658935547, -0.038543701171875, -0.0182342529296875, 0.058929443359375, 0.016265869140625, 0.020721435546875, -0.049102783203125, 0.0017995834350585938, 0.008544921875, 0.0308380126953125, 0.00021445751190185547, 0.0010843276977539062, -0.011199951171875, -0.017608642578125, 0.0166015625, -0.021820068359375, 0.016021728515625, 0.002689361572265625, 0.011962890625, -0.0160369873046875, 0.016815185546875, 0.0015916824340820312, -0.0206451416015625, 0.043701171875, 0.006572723388671875, -0.0428466796875, 0.007495880126953125, -0.046051025390625, 0.014495849609375, 0.0194091796875, 0.07781982421875, 0.08099365234375, 0.048583984375, -0.0016012191772460938, -0.0096435546875, -0.007251739501953125, -0.033538818359375, 0.01898193359375, -0.003894805908203125, -0.012939453125, -0.0635986328125, 0.012481689453125, 0.0085906982421875, 0.04150390625, -0.03216552734375, -0.050140380859375, -0.033447265625, -0.0001016855239868164, -0.09600830078125, -0.07464599609375, 0.00960540771484375, -0.047760009765625, -0.0030612945556640625, -0.00769805908203125, -0.002223968505859375, -0.006435394287109375, 0.00018596649169921875, 0.0026264190673828125, -0.01137542724609375, -0.003902435302734375, -0.03656005859375, -0.034271240234375, -0.04815673828125, 0.037933349609375, -0.01312255859375, 0.01381683349609375, -0.0025482177734375, 0.0081634521484375, -0.0152130126953125, -0.046539306640625, -0.0117645263671875, 0.00159454345703125, 0.00970458984375, 0.01059722900390625, -0.0380859375, -0.0030117034912109375, -0.0419921875, 0.003170013427734375, -0.01806640625, -0.0227813720703125, 0.0211181640625, -0.006908416748046875, 0.002292633056640625, 0.0162506103515625, 0.04034423828125, -0.0046539306640625, -0.003124237060546875, 0.0665283203125, 0.058135986328125, -0.0014753341674804688, 0.0081024169921875, -0.0408935546875, -0.0413818359375, -0.01364898681640625, 0.0167388916015625, 0.017974853515625, -0.0178680419921875, -0.002166748046875, 0.006237030029296875, -0.00653839111328125, 0.007518768310546875, -0.00030303001403808594, -0.0021076202392578125, -0.009857177734375, 0.00011408329010009766, -0.0113372802734375, 0.00604248046875, -0.0128021240234375, 0.021392822265625, 0.00716400146484375, 0.0194549560546875, -0.000568389892578125, 0.0178680419921875, -0.01073455810546875, -0.032562255859375, 0.033966064453125, 0.02691650390625, 0.0294036865234375, -0.009033203125, -0.037322998046875, -0.0008296966552734375, 0.061431884765625, -0.017547607421875, -0.005962371826171875, 0.01318359375, 0.0129547119140625, -0.03411865234375, -0.0160369873046875, -0.05987548828125, -0.0045013427734375, -0.042083740234375, 0.0170440673828125, 0.03094482421875, -0.0225372314453125, -0.0159912109375, 0.0301666259765625, -0.0281524658203125, -0.01204681396484375, 0.0216064453125, -0.0648193359375, 0.0280609130859375, -0.0266876220703125, 0.0108795166015625, -0.0308990478515625, -0.003971099853515625, -0.0489501953125, -0.12481689453125, -0.01369476318359375, -0.0361328125, 0.0618896484375, -0.007053375244140625, 0.0012502670288085938, -0.055938720703125, 0.02386474609375, -0.01117706298828125, -0.0175933837890625, 0.0196685791015625, 0.0175933837890625, -0.0002868175506591797, 0.0279693603515625, -0.0031585693359375, -0.0084075927734375, -0.004791259765625, 0.00859832763671875, -0.0235748291015625, 0.0109710693359375, -0.0029468536376953125, -0.035400390625, 0.04052734375, -0.04217529296875, -0.041015625, -0.0290679931640625, -0.057861328125, 0.00649261474609375, -0.025665283203125, -0.0220947265625, -0.027587890625, -0.0697021484375, 0.01123809814453125, 0.0249786376953125, 0.01561737060546875, -0.0059356689453125, 0.043853759765625, 0.025390625, -0.0241851806640625, 0.0173797607421875, -0.027679443359375, 0.040313720703125, -0.0300750732421875, 0.06884765625, 0.034332275390625, -0.0258636474609375, 0.096435546875, -0.0007128715515136719, 0.05462646484375, -0.05535888671875, 0.01517486572265625, -0.007595062255859375, 0.008544921875, 0.01091766357421875, 0.0206756591796875, -0.0031585693359375, 0.04833984375, 0.00015854835510253906, -0.00875091552734375, 0.0211639404296875, 0.005527496337890625, -0.045562744140625, 0.0233001708984375, 0.01419830322265625, -0.04107666015625, 0.0095977783203125, -0.02398681640625, 0.018646240234375, 0.06201171875, -0.0121917724609375, 0.0343017578125, 0.013916015625, -0.01439666748046875, -0.00701904296875, 0.01169586181640625, -0.016632080078125, 0.0204925537109375, -0.017333984375, -0.031951904296875, -0.021331787109375, -0.0220794677734375, 0.049896240234375, 0.0016307830810546875, -0.04229736328125, -0.016571044921875, -0.0015659332275390625, 0.02130126953125, 0.01273345947265625, 0.054840087890625, 0.036865234375, 0.01953125, 0.00887298583984375, -0.0231475830078125, 0.0280914306640625, 0.0301971435546875, -0.0259552001953125, 0.0018215179443359375, 0.0184478759765625, -0.01947021484375, 0.00591278076171875, 0.0386962890625, 0.0338134765625, 0.00974273681640625, -0.0287628173828125, 0.0260467529296875, -0.0236968994140625, 0.03680419921875, 0.041961669921875, -0.06787109375, 0.004299163818359375, 0.00585174560546875, -0.05206298828125, -0.058502197265625, -0.04547119140625, 0.02093505859375, 0.06719970703125, -0.0249176025390625, -0.0033111572265625, 0.0164337158203125, 0.0206298828125, 0.00225830078125, 0.0311737060546875, -0.01442718505859375, -0.0113067626953125, -0.04888916015625, -0.010284423828125, 0.06964111328125, -0.0011653900146484375, 0.0177764892578125, 0.0152740478515625, 0.022308349609375, 0.009490966796875, -0.044921875, 0.0093841552734375, -0.0237274169921875, 0.00315093994140625, -0.0033512115478515625, -0.01556396484375, -0.030029296875, 0.022125244140625, 0.0137939453125, -0.0278472900390625, -0.037200927734375, 0.080078125, -0.04443359375, 0.048187255859375, -0.044830322265625, 0.00836944580078125, -0.01702880859375, 0.0139617919921875, 0.06927490234375, 0.05108642578125, -0.05096435546875, -0.00583648681640625, -0.0394287109375, -0.0152130126953125, -0.01552581787109375, -0.01143646240234375, -0.02337646484375, 0.00600433349609375, -0.0134735107421875, 0.0190277099609375, -0.0086517333984375, 0.025146484375, 0.0205230712890625, 0.0223388671875, -0.037017822265625, 0.06658935546875, -0.0205230712890625, 0.01421356201171875, 0.0260772705078125, 0.0216217041015625, 0.00965118408203125, 0.0345458984375, 0.029693603515625, -0.037872314453125, 0.042999267578125, -0.033355712890625, -0.0631103515625, -0.053009033203125, 0.01244354248046875, 0.0223236083984375, 0.032012939453125, -0.027313232421875, 0.058990478515625, -0.00769805908203125, -0.0019855499267578125, 0.0012769699096679688, -0.0025463104248046875, -0.01374053955078125, 0.061553955078125, 0.038177490234375, -0.040283203125, -0.01531219482421875, 0.0151519775390625, -0.049835205078125, 0.0772705078125, -0.006866455078125, 0.04730224609375, 0.0172119140625, 0.00853729248046875, -0.00738525390625, 0.044830322265625, 0.0024662017822265625, 0.04327392578125, 0.0142364501953125, 0.01555633544921875, 0.0007309913635253906, -0.0018243789672851562, -0.034088134765625, -0.013519287109375, 0.044830322265625, 0.003597259521484375, -0.02069091796875, 0.040496826171875, -0.032379150390625, 0.0380859375, 0.052947998046875, 0.10260009765625, -0.0947265625, 0.025634765625, 0.045013427734375, -0.0249481201171875, 0.0017070770263671875, -0.0155181884765625, -0.005062103271484375, -0.02740478515625, 0.04925537109375, -0.0206451416015625, -0.0246429443359375, 0.007717132568359375, -0.006649017333984375, -0.0009431838989257812, -0.006931304931640625, 0.037811279296875, 0.0238800048828125, -0.032623291015625, 0.0034847259521484375, 0.0224761962890625, -0.014984130859375, -0.0012187957763671875, 0.0153045654296875, 0.01348114013671875, -0.0709228515625, -0.078125, -0.0267791748046875, 0.02850341796875, -0.08343505859375, -0.0242156982421875, -0.0106964111328125, 0.05584716796875, 0.027496337890625, -0.01007080078125, -0.024200439453125, 0.00890350341796875, 0.0163726806640625, -0.018035888671875, -0.0240325927734375, -0.0280609130859375, 0.035552978515625, -0.01617431640625, 0.01372528076171875, -0.01107025146484375, 0.00524139404296875, -0.0018310546875, 0.018218994140625, 0.02410888671875, 0.035736083984375, -0.04266357421875, 0.035125732421875, 0.0219573974609375, -0.0190887451171875, -0.04119873046875, 0.0253448486328125, -0.076416015625, -0.0259552001953125, -0.0075225830078125, -0.0224456787109375, -0.013519287109375, -0.038909912109375, -0.06585693359375, 0.069091796875, 0.02886962890625, 0.0222320556640625, -0.0222015380859375, 0.0141754150390625, -0.01378631591796875, -0.0213470458984375, -0.01027679443359375, 0.01332855224609375, 0.005077362060546875, 0.0187835693359375, -0.0670166015625, -0.0231170654296875, -0.014923095703125, 0.057586669921875, 0.050048828125, -0.006557464599609375, 0.037628173828125, 0.0228271484375, 0.073974609375, 0.05694580078125, -0.0017862319946289062, -0.038421630859375, 0.0196380615234375, 0.00725555419921875, 0.044219970703125, -0.0077972412109375, 0.033355712890625, -0.040557861328125, 0.020111083984375, 0.029571533203125, 0.02239990234375, 0.0261077880859375, 0.0026836395263671875, -0.0219879150390625, -0.034088134765625, 0.01861572265625, 0.0043792724609375, 0.02874755859375, -0.02581787109375, 0.01251983642578125, 0.01010894775390625, -0.0343017578125, -0.0225982666015625, -0.0276641845703125, 0.03485107421875, 0.0244140625, 0.041107177734375, 0.04034423828125, 0.011138916015625, 0.014251708984375, 0.0286865234375, 0.0210723876953125, 0.006122589111328125, 0.002468109130859375, 0.0010509490966796875, 0.0025424957275390625, 0.01016998291015625, -0.04461669921875, 0.0016460418701171875, 0.04559326171875, 0.02520751953125, -0.0219879150390625, 0.0014247894287109375, 0.0043792724609375, 0.0198974609375, 0.01306915283203125, -0.023345947265625, 0.0274658203125, 0.0183258056640625, 0.012542724609375, -0.0118408203125, 0.009796142578125, 0.0307464599609375, 0.031646728515625, 0.0187530517578125, 0.0205230712890625, -0.08685302734375, -0.005611419677734375, -0.050201416015625, -0.00899505615234375, 0.0246429443359375, 0.07550048828125, 0.043212890625, 0.0159454345703125, -0.0219573974609375, -0.039398193359375, -0.00632476806640625, 0.0188140869140625, 0.030181884765625, -0.0107879638671875, -0.0021152496337890625, 0.0028247833251953125, 0.0604248046875, 0.0077056884765625, 0.054534912109375, 0.03070068359375, 0.05377197265625, -0.005023956298828125, -0.0211334228515625, 0.017242431640625, -0.0137481689453125, -0.0271148681640625, 0.0229644775390625, -0.00827789306640625, 0.059906005859375, 0.036346435546875, 0.002201080322265625, -0.04119873046875, 0.0523681640625, 0.04632568359375, -0.0401611328125, 0.02459716796875, -0.0014514923095703125, -0.032135009765625, 0.00540924072265625, -0.006496429443359375, 0.04443359375, -0.0181732177734375, 0.0175018310546875, 0.00186920166015625, 0.016754150390625, -0.05792236328125, -0.0016412734985351562, 0.03192138671875, -0.005634307861328125, 0.005157470703125, 0.00971221923828125, -0.036590576171875, 0.0170745849609375, 0.0279693603515625, 0.01029205322265625, 0.01279449462890625, 0.00928497314453125, -0.00771331787109375, 0.0411376953125, -0.00495147705078125, 0.0628662109375, 0.022430419921875, -0.0185546875, -0.0037288665771484375, -0.0166473388671875, -0.0015974044799804688, 0.016143798828125, -0.002407073974609375, -0.00991058349609375, 0.00438690185546875, 0.00980377197265625, -0.03131103515625, 0.01256561279296875, 0.006557464599609375, -0.0489501953125, 0.05267333984375, -0.02166748046875, -0.005016326904296875, 0.0295562744140625, -0.0014019012451171875, 0.004001617431640625, 0.0301361083984375, 0.036956787109375, -0.0261993408203125, -0.060150146484375, -0.045501708984375, 0.00853729248046875, 0.026275634765625, 0.032562255859375, -0.01415252685546875, -0.0109100341796875, 0.0199127197265625, -0.010345458984375, -0.0087432861328125, -0.0093841552734375, -0.00824737548828125, 0.0226593017578125, 0.006160736083984375, 0.0050048828125, 0.0021820068359375, -0.0205841064453125, -0.000020742416381835938, -0.0003974437713623047, 0.00322723388671875, -0.0303497314453125, -0.0024662017822265625, -0.01654052734375, 0.0283355712890625, 0.047271728515625, 0.00907135009765625, 0.00862884521484375, -0.0010461807250976562, -0.01157379150390625, -0.04168701171875, 0.0021820068359375, -0.009552001953125, -0.05096435546875, -0.0222930908203125, -0.0028228759765625, -0.040069580078125, -0.034332275390625, -0.026885986328125, -0.033355712890625, 0.0401611328125, 0.0008325576782226562, -0.0171661376953125, -0.0557861328125, 0.0080718994140625, 0.058807373046875, -0.01166534423828125, 0.0232086181640625, -0.0237579345703125, 0.0289459228515625, -0.0146636962890625, -0.044769287109375, -0.0282440185546875, 0.06591796875, -0.036346435546875, 0.046234130859375, 0.04833984375, -0.044830322265625, -0.036712646484375, 0.038970947265625, 0.051055908203125, 0.0770263671875, 0.057220458984375, -0.006732940673828125, -0.0201263427734375, 0.025787353515625, -0.0237579345703125, -0.058990478515625, 0.00994873046875, -0.03546142578125, -0.017059326171875, -0.0061492919921875, -0.00034117698669433594, 0.018402099609375, -0.036590576171875, -0.055755615234375, 0.09649658203125, -0.014129638671875, -0.0180206298828125, 0.0008611679077148438, -0.0212249755859375, 0.0053253173828125, 0.02874755859375, 0.0002486705780029297, -0.004695892333984375, -0.04833984375, 0.003421783447265625, 0.045623779296875, -0.0190887451171875, 0.0638427734375, 0.00988006591796875, -0.0278167724609375, -0.005268096923828125, -0.00740814208984375, -0.0024356842041015625, -0.0228729248046875, 0.0170745849609375, 0.005283355712890625, 0.024993896484375, -0.03619384765625, 0.0049285888671875, -0.00337982177734375, 0.03936767578125, -0.023773193359375, -0.0413818359375, 0.014923095703125, 0.01412200927734375, 0.06146240234375, 0.006221771240234375, 0.0062255859375, -0.056121826171875, -0.0360107421875, -0.0253143310546875, 0.012786865234375, -0.01036834716796875, -0.002239227294921875, -0.060882568359375, 0.004886627197265625, -0.0033016204833984375, -0.0130767822265625, -0.0134735107421875, -0.0238800048828125, -0.0279388427734375, 0.001811981201171875, 0.0257110595703125, 0.036865234375, -0.00341796875, -0.029052734375, 0.03564453125, -0.0247802734375, -0.00289154052734375, 0.0203094482421875, 0.0228729248046875, 0.004375457763671875, 0.041290283203125, 0.042449951171875, 0.0246734619140625, -0.035247802734375, -0.005245208740234375, 0.00812530517578125, 0.04937744140625, -0.0211334228515625, -0.048858642578125, -0.0191192626953125, 0.02587890625, -0.00701141357421875, 0.04443359375, 0.01242828369140625, 0.02838134765625, 0.02130126953125, 0.00438690185546875, -0.05157470703125, 0.052154541015625, -0.01514434814453125, 0.0285491943359375, -0.008026123046875, 0.03656005859375, 0.06744384765625, -0.02734375, 0.0214691162109375, -0.0187530517578125, 0.061981201171875, -0.00113677978515625, -0.0182342529296875, 0.0195159912109375, -0.0091552734375, 0.0014467239379882812 ]
10403d55333ca505b791f867c95f62af268b85d1
Wordpress Stackexchange Q: Make post slug have priority over category slug I have a wordpress site where the category base is stripped from the url. Now, when a category has a certain slug that's similar to a post slug, the category is shown. I would like to show the post instead. Is this possible? Thanks! A: I think you can use the answer to this question by replacing page_rewrite_rules filter with post_rewrite_rules, making post rewrite rules to have the top most priority.
Q: Make post slug have priority over category slug I have a wordpress site where the category base is stripped from the url. Now, when a category has a certain slug that's similar to a post slug, the category is shown. I would like to show the post instead. Is this possible? Thanks! A: I think you can use the answer to this question by replacing page_rewrite_rules filter with post_rewrite_rules, making post rewrite rules to have the top most priority. A: There isn't a clean way to do what you're asking. What you want is for WordPress to check to see if, for a given URL, there is a post with that slug, and if not, try to find a category with that slug. With the exception of pages, WordPress doesn't check to see if an opject (post, term) exists before "committing" to a matching rewrite rule. Therefore, when you have conflicting rewrite rules, the second one will never be read. The best answer is to find a different rewrite structure for your posts or categories. Prefixes are ideal, like /blog/%postname%/, /articles/%postname%/ for posts, or /category/%category%/, /topic/%category%/ for categories. That said, it's not impossible to do what you're asking, it's just not optimal. What you need to do is intercept the request and check to see if the post exists. If not, alter the query vars. Note that this adds to every post's page load, so weigh the costs against the benefits. Also remember that if a post and category share the same name, there's no accessing the category. Without further ado, function wpse_75604_check_rewrite_conflicts( $qv ) { if ( isset( $qv['name'] ) ) { if ( ! get_page_by_path( $qv['name'], OBJECT, 'post' ) ) { $qv['category_name'] = $qv['name']; unset( $qv['name'] ); } } return $qv; } add_filter( 'request', 'wpse_75604_check_rewrite_conflicts' );
wordpress
{ "language": "en", "length": 299, "provenance": "stackexchange_00019.jsonl.gz:426646", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75604" }
[ 0.06561279296875, 0.01544952392578125, -0.028717041015625, -0.051910400390625, 0.036468505859375, -0.0287017822265625, 0.017791748046875, -0.0175933837890625, -0.0294647216796875, 0.0013551712036132812, -0.0030651092529296875, -0.019775390625, 0.005954742431640625, -0.051025390625, 0.0380859375, -0.02490234375, 0.005786895751953125, 0.01050567626953125, 0.0096893310546875, -0.0255889892578125, 0.016326904296875, -0.0223388671875, 0.00936126708984375, 0.037750244140625, 0.0304412841796875, -0.04913330078125, 0.0297088623046875, -0.0236663818359375, -0.005878448486328125, -0.045501708984375, 0.0142364501953125, 0.0301971435546875, 0.0225830078125, -0.0012025833129882812, 0.00208282470703125, -0.001354217529296875, 0.005970001220703125, -0.0032596588134765625, -0.003650665283203125, 0.01450347900390625, 0.0179443359375, -0.0147857666015625, 0.0611572265625, -0.0010442733764648438, 0.018646240234375, -0.01328277587890625, 0.01053619384765625, -0.053497314453125, 0.03656005859375, -0.0236968994140625, -0.00716400146484375, 0.0496826171875, -0.00439453125, -0.0199737548828125, -0.0102386474609375, 0.0263824462890625, -0.0209197998046875, 0.0623779296875, 0.035308837890625, -0.0086212158203125, -0.041656494140625, 0.01247406005859375, -0.00244140625, -0.019012451171875, 0.01111602783203125, -0.01052093505859375, 0.018829345703125, 0.0250091552734375, -0.04425048828125, 0.023040771484375, 0.04376220703125, -0.02734375, 0.003307342529296875, -0.003326416015625, -0.0157012939453125, -0.0439453125, 0.027801513671875, -0.025726318359375, 0.0043792724609375, 0.019775390625, 0.00036907196044921875, -0.00942230224609375, 0.01934814453125, -0.026031494140625, -0.002140045166015625, -0.016510009765625, -0.004764556884765625, -0.0074005126953125, -0.03118896484375, -0.034759521484375, -0.01003265380859375, -0.003993988037109375, -0.0762939453125, 0.0305328369140625, 0.021820068359375, -0.024566650390625, 0.0180816650390625, -0.01287841796875, 0.0006422996520996094, 0.0007596015930175781, 0.0161895751953125, -0.0545654296875, 0.03466796875, -0.0126495361328125, -0.0028858184814453125, 0.0124359130859375, 0.0145416259765625, 0.052154541015625, 0.05718994140625, 0.033111572265625, -0.007503509521484375, 0.0472412109375, -0.005565643310546875, 0.0304107666015625, -0.04498291015625, -0.011932373046875, -0.038421630859375, -0.0360107421875, -0.03692626953125, -0.039459228515625, -0.0019102096557617188, 0.0259246826171875, 0.0293121337890625, -0.04266357421875, 0.0220184326171875, 0.024444580078125, -0.0202178955078125, -0.046173095703125, 0.01152801513671875, 0.0263519287109375, -0.0270843505859375, 0.011016845703125, 0.0220489501953125, 0.01202392578125, -0.0005178451538085938, -0.0176544189453125, -0.026885986328125, -0.050750732421875, -0.02789306640625, 0.0223388671875, -0.01258087158203125, -0.01122283935546875, 0.033447265625, -0.0241851806640625, 0.04541015625, 0.0308074951171875, 0.00424957275390625, 0.0015344619750976562, 0.01190948486328125, -0.025146484375, 0.0253143310546875, -0.0408935546875, 0.023651123046875, -0.000762939453125, 0.007266998291015625, -0.0143280029296875, 0.01178741455078125, -0.01110076904296875, -0.01019287109375, -0.0200347900390625, 0.0301513671875, 0.002918243408203125, 0.024017333984375, -0.032684326171875, -0.050537109375, -0.0135498046875, -0.06982421875, -0.0214080810546875, 0.0192413330078125, -0.0161895751953125, 0.041351318359375, 0.02484130859375, -0.0068511962890625, 0.029083251953125, 0.0299835205078125, 0.0038318634033203125, 0.006679534912109375, -0.00806427001953125, 0.009552001953125, 0.05865478515625, 0.01026153564453125, -0.0240325927734375, 0.0154571533203125, -0.0034427642822265625, -0.04168701171875, 0.04302978515625, 0.0206756591796875, 0.07568359375, -0.0231170654296875, 0.02386474609375, 0.03436279296875, 0.01213836669921875, -0.01226043701171875, -0.004543304443359375, -0.0201263427734375, -0.021331787109375, 0.0216827392578125, 0.01715087890625, -0.0074462890625, -0.0030803680419921875, -0.032012939453125, 0.05120849609375, -0.043212890625, 0.0268402099609375, 0.0056915283203125, -0.0083770751953125, 0.01152801513671875, 0.032501220703125, 0.0291290283203125, 0.0254974365234375, 0.00853729248046875, 0.0386962890625, -0.0399169921875, -0.0164031982421875, -0.03289794921875, 0.028411865234375, 0.01192474365234375, -0.022705078125, -0.0100860595703125, 0.00646209716796875, -0.02020263671875, 0.0223388671875, -0.062347412109375, 0.0225372314453125, 0.018218994140625, 0.0110931396484375, -0.0118560791015625, -0.0170745849609375, -0.013214111328125, 0.048309326171875, -0.09710693359375, -0.001171112060546875, 0.033966064453125, 0.033416748046875, -0.04296875, 0.005603790283203125, 0.0011777877807617188, 0.0229949951171875, -0.01389312744140625, 0.0276336669921875, 0.0180206298828125, 0.0196075439453125, -0.0310516357421875, 0.01062774658203125, 0.0006642341613769531, -0.057891845703125, -0.006275177001953125, 0.0205841064453125, 0.0300140380859375, 0.0570068359375, 0.018707275390625, 0.005580902099609375, 0.00955963134765625, -0.030853271484375, 0.0251312255859375, 0.029144287109375, 0.037109375, 0.00959014892578125, -0.0228271484375, 0.021514892578125, 0.0191802978515625, 0.0225372314453125, -0.05206298828125, 0.025970458984375, -0.0009150505065917969, -0.0164337158203125, -0.00011396408081054688, -0.0053558349609375, -0.00711822509765625, -0.0030803680419921875, 0.0177001953125, -0.024749755859375, -0.01277923583984375, 0.034759521484375, 0.0491943359375, -0.0159454345703125, 0.002201080322265625, -0.0254364013671875, -0.00640106201171875, 0.020965576171875, -0.0160369873046875, 0.0161285400390625, 0.0278167724609375, -0.0040130615234375, -0.0229949951171875, -0.0479736328125, 0.0382080078125, 0.00801849365234375, 0.0031528472900390625, -0.02386474609375, 0.014190673828125, 0.002887725830078125, -0.0235748291015625, 0.0256500244140625, 0.0230560302734375, -0.03717041015625, 0.00616455078125, -0.043060302734375, 0.038238525390625, -0.0310516357421875, 0.01776123046875, 0.0706787109375, 0.0212860107421875, 0.0012807846069335938, 0.0142669677734375, 0.00601959228515625, -0.006587982177734375, 0.011962890625, -0.01290130615234375, 0.0008835792541503906, -0.06866455078125, -0.007396697998046875, 0.041748046875, 0.01514434814453125, 0.045989990234375, -0.0151519775390625, 0.0182952880859375, 0.03326416015625, -0.0460205078125, -0.076171875, -0.01242828369140625, -0.049896240234375, 0.0113525390625, 0.0293121337890625, -0.0091400146484375, -0.0279083251953125, 0.059844970703125, 0.01311492919921875, -0.042144775390625, 0.00197601318359375, -0.0299224853515625, -0.041900634765625, -0.049041748046875, -0.00823974609375, -0.017059326171875, 0.0023059844970703125, 0.000972747802734375, 0.0589599609375, 0.00565338134765625, -0.08837890625, -0.0117034912109375, 0.0253143310546875, -0.0292205810546875, 0.01995849609375, -0.019683837890625, -0.01132965087890625, -0.0079803466796875, 0.0005421638488769531, 0.057373046875, 0.018951416015625, -0.0261993408203125, 0.015472412109375, -0.018035888671875, 0.0296173095703125, 0.000019073486328125, 0.034271240234375, 0.033447265625, 0.017120361328125, 0.0204925537109375, -0.0166168212890625, -0.0284271240234375, -0.00775146484375, -0.05438232421875, -0.032684326171875, 0.032073974609375, 0.00949859619140625, -0.0457763671875, -0.0011262893676757812, -0.0030879974365234375, -0.009918212890625, 0.02606201171875, -0.0328369140625, 0.052978515625, -0.0141143798828125, 0.00337982177734375, -0.03717041015625, -0.0218963623046875, -0.0283660888671875, 0.0241546630859375, -0.0191497802734375, -0.01470184326171875, -0.0287628173828125, 0.03314208984375, -0.0242156982421875, -0.052093505859375, 0.01910400390625, -0.07293701171875, 0.004459381103515625, -0.062469482421875, 0.0029735565185546875, -0.033660888671875, 0.06488037109375, -0.01212310791015625, -0.021148681640625, -0.03369140625, -0.0016946792602539062, -0.0015668869018554688, -0.0300445556640625, -0.004024505615234375, -0.01514434814453125, -0.0518798828125, 0.01509857177734375, 0.027252197265625, -0.0266265869140625, -0.005962371826171875, 0.054229736328125, -0.03472900390625, -0.01561737060546875, 0.055419921875, -0.05731201171875, -0.0023212432861328125, 0.015533447265625, -0.0048980712890625, -0.021148681640625, -0.064453125, 0.0032405853271484375, -0.047882080078125, -0.01448822021484375, 0.02880859375, 0.0187225341796875, -0.009857177734375, -0.0016193389892578125, 0.004680633544921875, 0.050506591796875, 0.0285491943359375, 0.032135009765625, -0.0113677978515625, -0.03619384765625, -0.002407073974609375, 0.031768798828125, 0.00484466552734375, 0.0175628662109375, -0.0004949569702148438, -0.0361328125, -0.04132080078125, -0.01617431640625, -0.022979736328125, 0.027252197265625, -0.002391815185546875, -0.0118408203125, -0.07574462890625, -0.043121337890625, -0.01538848876953125, 0.01812744140625, 0.0079803466796875, -0.0030384063720703125, -0.059600830078125, -0.07147216796875, 0.04107666015625, 0.0162353515625, -0.00817108154296875, 0.0008034706115722656, 0.0426025390625, 0.0050048828125, -0.0239410400390625, -0.01763916015625, 0.0045013427734375, 0.0229034423828125, -0.0098724365234375, 0.044708251953125, 0.009613037109375, -0.01357269287109375, 0.07855224609375, -0.0130462646484375, 0.0010919570922851562, -0.032989501953125, 0.0277557373046875, -0.001495361328125, -0.00737762451171875, -0.009674072265625, -0.018218994140625, 0.07147216796875, 0.0672607421875, -0.004352569580078125, -0.011016845703125, -0.047271728515625, 0.0261688232421875, 0.01419830322265625, -0.0095672607421875, -0.048126220703125, -0.005161285400390625, -0.00684356689453125, 0.02093505859375, 0.045074462890625, 0.032135009765625, -0.0006327629089355469, 0.02130126953125, 0.035125732421875, 0.005489349365234375, -0.0259857177734375, -0.005237579345703125, -0.02484130859375, 0.0214080810546875, -0.0201263427734375, -0.00390625, -0.0232086181640625, 0.011016845703125, 0.0253143310546875, 0.0015420913696289062, 0.00455474853515625, -0.049163818359375, -0.0026950836181640625, 0.008819580078125, -0.011505126953125, -0.04248046875, 0.007720947265625, 0.01271820068359375, 0.004241943359375, 0.0277252197265625, -0.052947998046875, -0.01019287109375, -0.01132965087890625, 0.0129241943359375, 0.019927978515625, -0.0176544189453125, 0.0235595703125, 0.0274658203125, 0.010955810546875, 0.0159149169921875, -0.01113128662109375, 0.0114593505859375, 0.034027099609375, -0.030517578125, 0.01544189453125, 0.0286102294921875, -0.0005216598510742188, -0.039276123046875, 0.046661376953125, -0.03411865234375, -0.0139617919921875, -0.016387939453125, 0.0312347412109375, -0.03289794921875, -0.01372528076171875, 0.04241943359375, -0.01010894775390625, -0.0208282470703125, 0.0181121826171875, -0.004192352294921875, -0.034820556640625, -0.01107025146484375, -0.0014400482177734375, 0.016265869140625, -0.004062652587890625, -0.0308837890625, 0.0438232421875, -0.0184173583984375, 0.06854248046875, 0.034759521484375, -0.00836181640625, 0.035186767578125, 0.0145416259765625, -0.0006508827209472656, -0.0281219482421875, -0.00852203369140625, 0.005706787109375, 0.01947021484375, -0.024444580078125, -0.023468017578125, 0.0521240234375, 0.01214599609375, 0.0293731689453125, -0.0105438232421875, -0.042755126953125, 0.052642822265625, -0.00012683868408203125, 0.052978515625, -0.00714874267578125, -0.035308837890625, 0.01470947265625, -0.051605224609375, -0.020904541015625, -0.018707275390625, -0.0172119140625, -0.0440673828125, -0.01334381103515625, 0.0077056884765625, 0.028076171875, -0.0158233642578125, -0.0284271240234375, -0.047698974609375, 0.01108551025390625, 0.037628173828125, 0.035308837890625, -0.0357666015625, 0.059906005859375, -0.025299072265625, 0.035308837890625, -0.02069091796875, 0.004329681396484375, -0.0112152099609375, 0.00003451108932495117, -0.029998779296875, -0.0771484375, -0.020660400390625, 0.0574951171875, -0.06427001953125, 0.040740966796875, 0.04046630859375, 0.0191802978515625, 0.028350830078125, -0.01277923583984375, 0.0008420944213867188, -0.01314544677734375, -0.0123748779296875, -0.044097900390625, 0.01468658447265625, 0.0016803741455078125, 0.0313720703125, 0.0655517578125, -0.032623291015625, -0.0182037353515625, 0.0192718505859375, -0.0238037109375, 0.0555419921875, -0.0286712646484375, -0.04962158203125, 0.0308837890625, 0.02410888671875, 0.0240478515625, 0.02130126953125, 0.0251922607421875, 0.027252197265625, -0.0146636962890625, -0.011322021484375, 0.009429931640625, 0.012298583984375, 0.021148681640625, -0.0183563232421875, 0.0036640167236328125, 0.00371551513671875, -0.01219940185546875, -0.01209259033203125, 0.06732177734375, 0.0478515625, -0.0672607421875, -0.015716552734375, 0.0144805908203125, -0.037384033203125, -0.0232391357421875, 0.02557373046875, -0.0041656494140625, 0.0274810791015625, -0.00007241964340209961, -0.039459228515625, -0.01995849609375, 0.0158233642578125, 0.003082275390625, -0.0157318115234375, -0.013946533203125, 0.045501708984375, 0.01319122314453125, -0.013580322265625, -0.01209259033203125, -0.0013370513916015625, 0.00696563720703125, -0.0316162109375, -0.00788116455078125, 0.0246429443359375, -0.032501220703125, -0.03448486328125, 0.049835205078125, -0.01220703125, 0.020721435546875, 0.03900146484375, 0.0025310516357421875, -0.03338623046875, 0.01137542724609375, -0.00550079345703125, 0.0145111083984375, -0.0181427001953125, -0.06787109375, 0.043487548828125, 0.01690673828125, 0.0124664306640625, 0.01483154296875, -0.00879669189453125, -0.008514404296875, -0.013214111328125, 0.0037994384765625, -0.0421142578125, -0.07830810546875, 0.08544921875, -0.0279693603515625, -0.00843048095703125, -0.01045989990234375, 0.05743408203125, 0.004955291748046875, 0.012542724609375, 0.01580810546875, 0.0085601806640625, 0.028350830078125, 0.004978179931640625, 0.006805419921875, -0.007755279541015625, -0.0051116943359375, -0.099853515625, 0.0689697265625, 0.02154541015625, 0.0843505859375, 0.007122039794921875, 0.011444091796875, -0.0166473388671875, -0.0220184326171875, -0.040374755859375, 0.0572509765625, 0.0100250244140625, 0.054168701171875, -0.06439208984375, -0.0154266357421875, 0.006061553955078125, 0.0433349609375, 0.086669921875, 0.01094818115234375, -0.04779052734375, 0.00888824462890625, 0.086669921875, 0.042327880859375, 0.0021495819091796875, 0.044891357421875, -0.0050201416015625, 0.01496124267578125, 0.03948974609375, -0.04022216796875, 0.0177001953125, 0.004611968994140625, -0.0037212371826171875, 0.02288818359375, 0.023590087890625, 0.03277587890625, 0.0086822509765625, 0.024871826171875, -0.060546875, 0.0146636962890625, 0.06512451171875, -0.027435302734375, -0.00832366943359375, 0.042236328125, 0.044891357421875, -0.09759521484375, -0.055419921875, -0.0266265869140625, 0.047821044921875, 0.00664520263671875, 0.033294677734375, 0.023284912109375, 0.022491455078125, 0.0538330078125, -0.0113525390625, 0.0233612060546875, 0.020050048828125, -0.036224365234375, 0.08233642578125, 0.04693603515625, 0.047088623046875, 0.011627197265625, 0.03900146484375, 0.016571044921875, 0.07135009765625, -0.06646728515625, -0.0164794921875, 0.009429931640625, 0.007843017578125, -0.00453948974609375, -0.026519775390625, -0.01438140869140625, -0.0230712890625, 0.01812744140625, -0.07318115234375, -0.0237884521484375, 0.011016845703125, 0.06976318359375, -0.0299224853515625, -0.05706787109375, -0.018402099609375, -0.048187255859375, -0.037933349609375, 0.002368927001953125, 0.0067138671875, 0.06439208984375, 0.032012939453125, 0.03900146484375, -0.0287628173828125, -0.03143310546875, 0.0007138252258300781, 0.022125244140625, -0.0281829833984375, 0.012664794921875, -0.03509521484375, -0.04852294921875, -0.005878448486328125, 0.039581298828125, 0.00475311279296875, -0.0113677978515625, 0.048248291015625, 0.05859375, -0.0361328125, -0.034393310546875, 0.07269287109375, -0.004413604736328125, 0.04351806640625, -0.0301971435546875, 0.0565185546875, 0.022979736328125, -0.00560760498046875, -0.026763916015625, -0.0029201507568359375, 0.064453125, 0.004795074462890625, 0.0159759521484375, 0.01019287109375, -0.0078887939453125, 0.051116943359375, 0.0145111083984375, 0.034332275390625, 0.040802001953125, -0.035003662109375, 0.004650115966796875, -0.0288848876953125, -0.06884765625, 0.0135650634765625, 0.045867919921875, 0.0022563934326171875, -0.0146942138671875, 0.013275146484375, -0.03350830078125, 0.0261077880859375, -0.00220489501953125, 0.0186920166015625, -0.01284027099609375, -0.021575927734375, -0.007843017578125, -0.042938232421875, -0.01343536376953125, -0.01169586181640625, 0.0218658447265625, 0.0008935928344726562, 0.09344482421875, -0.0102691650390625, 0.01302337646484375, -0.037994384765625, 0.0113525390625, -0.0294036865234375, -0.0296173095703125, 0.0164642333984375, -0.0097808837890625, -0.017242431640625, 0.01361846923828125, -0.0130462646484375, -0.055877685546875, 0.0628662109375, -0.06488037109375, -0.01396942138671875, -0.041595458984375, 0.0234222412109375, -0.052764892578125, -0.0188446044921875, -0.0413818359375, -0.00855255126953125, -0.0288238525390625, -0.032196044921875, 0.01287841796875, -0.0175323486328125, 0.003662109375, 0.028045654296875, -0.026275634765625, -0.0170135498046875, -0.011871337890625, -0.0098419189453125, -0.02972412109375, 0.02679443359375, -0.0231781005859375, 0.03765869140625, 0.061798095703125, -0.007030487060546875, 0.029876708984375, 0.03131103515625, -0.0132598876953125, 0.0439453125, -0.0374755859375, -0.047821044921875, -0.0389404296875, 0.0097198486328125, 0.01284027099609375, 0.00962066650390625, -0.078369140625, 0.013916015625, -0.01727294921875, -0.0052642822265625, -0.021148681640625, -0.007259368896484375, -0.01294708251953125, 0.00437164306640625, -0.0109100341796875, -0.03936767578125, -0.02734375, -0.008819580078125, 0.0157928466796875, 0.00440216064453125, -0.0462646484375, 0.0229034423828125, -0.0024356842041015625, 0.04443359375, -0.031646728515625, -0.006839752197265625, 0.0037174224853515625, -0.012298583984375, -0.07281494140625, 0.023590087890625, -0.029693603515625, -0.0445556640625, -0.00994110107421875, 0.0304107666015625, 0.04827880859375, -0.039703369140625, -0.0479736328125, -0.006565093994140625, 0.0185394287109375, 0.044036865234375, 0.016204833984375, -0.001132965087890625, -0.0157470703125, 0.0404052734375, -0.055084228515625, -0.037750244140625, 0.0198516845703125, 0.0087127685546875, -0.03045654296875, 0.01522064208984375, -0.01065826416015625, 0.0207672119140625, -0.0181427001953125, 0.0058746337890625, 0.09326171875, 0.00904083251953125, -0.0029449462890625, -0.047821044921875, 0.009124755859375, -0.012939453125, 0.042510986328125, -0.0034332275390625, -0.01016998291015625, -0.0277557373046875, 0.013641357421875, 0.0167083740234375, 0.038116455078125, -0.006465911865234375, 0.018524169921875, -0.04150390625, 0.0249176025390625, -0.0005559921264648438, 0.020721435546875, 0.003574371337890625, 0.00013959407806396484, 0.00823974609375, 0.0238189697265625, -0.045074462890625, 0.0173797607421875, -0.00022280216217041016, 0.01971435546875, 0.019378662109375, -0.040802001953125, -0.079345703125, -0.050933837890625, 0.0726318359375, 0.0275726318359375, 0.032257080078125, -0.00640869140625, -0.07098388671875, -0.05682373046875, -0.036895751953125, -0.0143890380859375, 0.051116943359375, -0.097412109375, 0.03338623046875, 0.0187835693359375, 0.0012311935424804688, 0.0134124755859375, -0.041015625, -0.0234375, -0.018951416015625, -0.0426025390625, 0.0084228515625, -0.044036865234375, 0.0101165771484375, -0.00565338134765625, 0.0049285888671875, -0.00875091552734375, 0.007762908935546875, 0.00311279296875, -0.021209716796875, 0.0307769775390625, -0.0190887451171875, 0.01042938232421875, -0.004608154296875, 0.0010986328125, 0.01132965087890625, 0.009918212890625, 0.005397796630859375, 0.0185394287109375, -0.0570068359375, 0.024749755859375, 0.034332275390625, 0.0162506103515625, -0.059295654296875, 0.04254150390625, 0.053131103515625, 0.05487060546875, -0.00420379638671875, -0.003681182861328125, 0.0102386474609375, 0.029388427734375, -0.016021728515625, -0.00274658203125, 0.0193328857421875, -0.04840087890625, -0.004291534423828125, -0.006771087646484375, -0.003620147705078125, -0.0252685546875, 0.00521087646484375, -0.0208740234375, -0.002155303955078125, 0.01032257080078125 ]
fe556679272f9497e13d1222a012b4602d3d0225
Wordpress Stackexchange Q: Show message on wordpress admin dashboard I have created a form. On success of the form, I am redirecting the user the their dashboard. Now, I want to be able to show a success message/notice on the dashboard. What is the convention to show such messages ? A: When you redirect the user to the admin dashboard pass on a GET variable named "success_notice", for example. So you get a URL like this: /wp-admin/index.php?success_notice=1. With that setup, just add the code that shows the success message on the dashboard only if that GET variable is set. add_action('admin_notices', 'wpse75629_admin_notice'); function wpse75629_admin_notice() { global $pagenow; // Only show this message on the admin dashboard and if asked for if ('index.php' === $pagenow && ! empty($_GET['success_notice'])) { echo '<div class="updated"><p>Your success message!</p></div>'; } }
Q: Show message on wordpress admin dashboard I have created a form. On success of the form, I am redirecting the user the their dashboard. Now, I want to be able to show a success message/notice on the dashboard. What is the convention to show such messages ? A: When you redirect the user to the admin dashboard pass on a GET variable named "success_notice", for example. So you get a URL like this: /wp-admin/index.php?success_notice=1. With that setup, just add the code that shows the success message on the dashboard only if that GET variable is set. add_action('admin_notices', 'wpse75629_admin_notice'); function wpse75629_admin_notice() { global $pagenow; // Only show this message on the admin dashboard and if asked for if ('index.php' === $pagenow && ! empty($_GET['success_notice'])) { echo '<div class="updated"><p>Your success message!</p></div>'; } }
wordpress
{ "language": "en", "length": 132, "provenance": "stackexchange_00019.jsonl.gz:426655", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75629" }
[ 0.059661865234375, -0.017059326171875, -0.00872802734375, -0.034759521484375, 0.013916015625, -0.03887939453125, 0.03436279296875, -0.01445770263671875, 0.0094451904296875, 0.02935791015625, 0.01140594482421875, -0.0518798828125, 0.031494140625, -0.027557373046875, -0.029205322265625, -0.0261993408203125, 0.0196990966796875, 0.01464080810546875, 0.044403076171875, 0.0044097900390625, -0.01122283935546875, 0.03021240234375, 0.0131072998046875, -0.004070281982421875, -0.026031494140625, -0.01116180419921875, 0.0809326171875, -0.01483917236328125, -0.0347900390625, -0.039520263671875, -0.006267547607421875, 0.02838134765625, 0.01255035400390625, 0.0143585205078125, 0.00910186767578125, -0.00917816162109375, 0.007587432861328125, 0.0007619857788085938, -0.006061553955078125, 0.032073974609375, 0.00429534912109375, -0.00774383544921875, 0.085693359375, -0.0288238525390625, 0.02301025390625, 0.004119873046875, 0.016204833984375, -0.0528564453125, -0.0167236328125, 0.04046630859375, 0.01474761962890625, 0.02716064453125, 0.0179443359375, -0.008575439453125, 0.005764007568359375, -0.0020294189453125, -0.053070068359375, 0.0452880859375, 0.039642333984375, 0.0631103515625, -0.0009026527404785156, 0.000942230224609375, -0.034210205078125, -0.0770263671875, -0.00257110595703125, -0.015716552734375, -0.014251708984375, 0.0328369140625, -0.0234375, -0.0171051025390625, 0.00982666015625, -0.01221466064453125, -0.006107330322265625, -0.02392578125, 0.004016876220703125, -0.03387451171875, 0.032928466796875, -0.0198822021484375, -0.0232696533203125, 0.02691650390625, 0.0257720947265625, 0.0158233642578125, -0.0015668869018554688, 0.00974273681640625, 0.011444091796875, 0.04022216796875, -0.019744873046875, -0.029937744140625, -0.0338134765625, -0.01499176025390625, -0.0238037109375, -0.0236968994140625, -0.032135009765625, 0.003757476806640625, -0.01428985595703125, -0.00858306884765625, 0.0270538330078125, 0.08111572265625, -0.0292205810546875, -0.006420135498046875, -0.052886962890625, 0.01322174072265625, -0.04656982421875, -0.0270538330078125, -0.0063323974609375, 0.0272216796875, -0.008575439453125, 0.012176513671875, 0.014312744140625, 0.0171051025390625, -0.01041412353515625, -0.03814697265625, -0.07781982421875, -0.02130126953125, -0.036346435546875, 0.036651611328125, -0.0936279296875, -0.019439697265625, -0.0088653564453125, 0.01012420654296875, 0.0003616809844970703, 0.017974853515625, -0.01433563232421875, -0.0099945068359375, -0.002086639404296875, -0.0084075927734375, -0.032562255859375, 0.010955810546875, 0.007526397705078125, 0.0264434814453125, -0.01026153564453125, 0.00811004638671875, -0.01073455810546875, -0.0021495819091796875, -0.0174407958984375, -0.0164794921875, 0.0031833648681640625, -0.04022216796875, -0.0038909912109375, 0.0161285400390625, -0.01561737060546875, -0.004016876220703125, 0.01947021484375, -0.03778076171875, -0.0244140625, 0.034881591796875, 0.005542755126953125, -0.01499176025390625, -0.0247802734375, -0.0584716796875, -0.0202789306640625, -0.039398193359375, 0.0294647216796875, 0.0151214599609375, -0.032958984375, 0.031890869140625, -0.0033321380615234375, 0.005931854248046875, -0.04644775390625, -0.00732421875, 0.0181732177734375, 0.00365447998046875, 0.04632568359375, -0.005786895751953125, -0.0245208740234375, -0.0029125213623046875, -0.082763671875, -0.00876617431640625, 0.0269622802734375, -0.0059356689453125, 0.0235443115234375, -0.0202789306640625, 0.010772705078125, 0.024993896484375, 0.01043701171875, 0.03765869140625, 0.01291656494140625, 0.0025844573974609375, 0.02886962890625, -0.0197906494140625, -0.033599853515625, -0.029449462890625, 0.052703857421875, -0.01922607421875, -0.06402587890625, 0.028045654296875, 0.00839996337890625, 0.044464111328125, 0.00954437255859375, 0.0019330978393554688, 0.032867431640625, 0.0338134765625, 0.038970947265625, 0.023406982421875, -0.040802001953125, -0.03765869140625, -0.0067291259765625, 0.036529541015625, -0.04144287109375, 0.0024127960205078125, 0.035369873046875, 0.035888671875, 0.00795745849609375, 0.00861358642578125, -0.0280914306640625, 0.044769287109375, -0.016357421875, 0.028350830078125, 0.020111083984375, 0.00787353515625, -0.0030155181884765625, 0.01155853271484375, -0.0029964447021484375, -0.0595703125, -0.0343017578125, 0.0148773193359375, -0.0295257568359375, 0.058563232421875, -0.0266265869140625, 0.056304931640625, -0.007701873779296875, -0.086669921875, -0.01102447509765625, 0.00946807861328125, 0.01245880126953125, -0.00811767578125, -0.02734375, -0.0013799667358398438, 0.011260986328125, -0.0164794921875, 0.023468017578125, 0.043701171875, -0.0308837890625, 0.005268096923828125, -0.0017910003662109375, -0.023345947265625, -0.019561767578125, -0.090087890625, 0.031341552734375, 0.046783447265625, 0.00720977783203125, 0.0107879638671875, -0.0261383056640625, 0.059814453125, 0.0162811279296875, -0.053192138671875, -0.0063018798828125, 0.050262451171875, -0.0104217529296875, 0.01081085205078125, -0.035919189453125, -0.01198577880859375, 0.024017333984375, -0.0841064453125, -0.0290069580078125, 0.057708740234375, 0.0027103424072265625, 0.0177459716796875, -0.043670654296875, 0.034698486328125, -0.000701904296875, 0.006587982177734375, -0.0193939208984375, -0.00923919677734375, -0.006103515625, -0.005168914794921875, -0.0027675628662109375, -0.00745391845703125, -0.043731689453125, -0.006877899169921875, 0.056121826171875, 0.04315185546875, 0.001995086669921875, 0.044464111328125, -0.01436614990234375, -0.0088653564453125, -0.02471923828125, -0.006134033203125, -0.0019779205322265625, 0.01226043701171875, -0.02581787109375, 0.0007538795471191406, 0.004375457763671875, -0.0145416259765625, 0.0042877197265625, -0.006771087646484375, 0.03924560546875, -0.02508544921875, 0.054290771484375, 0.00159454345703125, 0.013641357421875, 0.026031494140625, -0.0070343017578125, 0.06256103515625, 0.01114654541015625, -0.033843994140625, -0.038787841796875, -0.036163330078125, 0.033050537109375, -0.022552490234375, 0.058746337890625, 0.07940673828125, 0.0010089874267578125, 0.01715087890625, -0.017547607421875, 0.03021240234375, -0.005329132080078125, 0.00377655029296875, -0.0088653564453125, -0.0484619140625, 0.0236358642578125, 0.051788330078125, 0.0294342041015625, 0.03466796875, 0.01065826416015625, -0.03057861328125, 0.006195068359375, 0.0229949951171875, -0.05865478515625, -0.07647705078125, -0.032379150390625, -0.06500244140625, 0.0172882080078125, 0.0009832382202148438, -0.02142333984375, -0.0035305023193359375, 0.02532958984375, 0.0106353759765625, -0.0037593841552734375, -0.00860595703125, -0.04913330078125, -0.0090484619140625, -0.034637451171875, 0.022430419921875, -0.0228271484375, -0.00542449951171875, -0.01076507568359375, 0.052764892578125, 0.003978729248046875, -0.036895751953125, 0.005313873291015625, 0.0467529296875, 0.0230712890625, 0.01271820068359375, 0.0269927978515625, -0.04302978515625, 0.0290374755859375, 0.0051727294921875, 0.041229248046875, 0.0300140380859375, -0.0312042236328125, -0.01056671142578125, -0.028106689453125, -0.0034637451171875, -0.004367828369140625, -0.04693603515625, 0.0212860107421875, -0.0283203125, -0.05364990234375, -0.06793212890625, -0.0150909423828125, 0.01068115234375, -0.042938232421875, -0.047943115234375, 0.034027099609375, -0.036895751953125, 0.0022983551025390625, -0.0516357421875, -0.0118408203125, -0.0079803466796875, -0.0400390625, -0.01068115234375, -0.00015628337860107422, 0.005680084228515625, 0.0218353271484375, 0.0275115966796875, 0.0098114013671875, -0.02099609375, 0.0154876708984375, 0.0134735107421875, 0.0140838623046875, -0.01148223876953125, 0.0271148681640625, -0.0080413818359375, -0.042388916015625, 0.03033447265625, -0.054901123046875, -0.0256500244140625, -0.025054931640625, 0.004955291748046875, 0.0151214599609375, 0.051300048828125, -0.005565643310546875, -0.0196685791015625, -0.00568389892578125, 0.0033168792724609375, -0.044708251953125, -0.0092620849609375, -0.03216552734375, 0.0014781951904296875, -0.1107177734375, 0.00963592529296875, -0.0174560546875, -0.02166748046875, -0.033203125, 0.04205322265625, -0.0635986328125, -0.053009033203125, 0.0180816650390625, -0.03240966796875, -0.0013952255249023438, -0.0034942626953125, -0.0147857666015625, -0.036376953125, 0.0030841827392578125, -0.04730224609375, -0.02423095703125, -0.017181396484375, -0.019775390625, 0.051513671875, 0.026824951171875, -0.0259246826171875, 0.00537109375, 0.035919189453125, 0.0276641845703125, 0.006866455078125, 0.00978851318359375, -0.00957489013671875, -0.01413726806640625, -0.045562744140625, -0.007694244384765625, -0.034912109375, -0.0149688720703125, 0.0082855224609375, -0.01523590087890625, 0.0248565673828125, -0.00841522216796875, -0.0020389556884765625, 0.0343017578125, -0.03558349609375, -0.06640625, -0.039825439453125, -0.0165863037109375, 0.00620269775390625, -0.0022754669189453125, -0.00853729248046875, -0.028564453125, -0.06219482421875, -0.0211029052734375, 0.01708984375, -0.031982421875, 0.0271453857421875, -0.0159759521484375, 0.02056884765625, -0.01061248779296875, -0.03216552734375, 0.004150390625, 0.052734375, 0.00920867919921875, 0.0030803680419921875, 0.012603759765625, -0.0494384765625, 0.050323486328125, 0.032318115234375, -0.0003781318664550781, -0.00972747802734375, 0.023162841796875, -0.006927490234375, -0.059783935546875, 0.040435791015625, -0.0177001953125, -0.00942230224609375, 0.0005106925964355469, -0.00563812255859375, -0.030731201171875, -0.03375244140625, 0.04534912109375, -0.0090789794921875, 0.0479736328125, -0.03546142578125, -0.0105438232421875, 0.0011882781982421875, -0.01250457763671875, -0.0006041526794433594, 0.0012531280517578125, 0.01427459716796875, -0.0290374755859375, 0.0125885009765625, -0.01018524169921875, 0.0303955078125, 0.005542755126953125, 0.004604339599609375, 0.0246429443359375, 0.0259552001953125, -0.01078033447265625, 0.006702423095703125, -0.0060577392578125, 0.040435791015625, 0.035675048828125, -0.01467132568359375, -0.0292816162109375, 0.018218994140625, 0.04144287109375, -0.02984619140625, 0.0184173583984375, 0.048675537109375, 0.056182861328125, -0.01265716552734375, -0.028656005859375, 0.0281829833984375, 0.01543426513671875, -0.056427001953125, 0.035430908203125, -0.00287628173828125, 0.0205535888671875, -0.007129669189453125, 0.10369873046875, -0.0006628036499023438, 0.0458984375, -0.01171875, 0.038970947265625, 0.053070068359375, 0.00927734375, 0.016021728515625, -0.0012674331665039062, 0.000530242919921875, -0.01166534423828125, 0.00426483154296875, -0.026123046875, 0.014434814453125, -0.0158538818359375, 0.0009250640869140625, 0.026947021484375, -0.0025005340576171875, 0.0308990478515625, -0.00439453125, -0.02105712890625, 0.05242919921875, 0.029144287109375, -0.033477783203125, -0.0496826171875, 0.01119232177734375, 0.054962158203125, 0.010223388671875, -0.00490570068359375, 0.049072265625, 0.000507354736328125, 0.087158203125, 0.0016813278198242188, 0.0589599609375, -0.01116943359375, -0.03594970703125, 0.0003209114074707031, 0.0066070556640625, -0.0031032562255859375, -0.048004150390625, -0.03826904296875, 0.0053558349609375, 0.003269195556640625, 0.04486083984375, -0.028167724609375, 0.00627899169921875, -0.03887939453125, 0.035675048828125, -0.04888916015625, 0.005359649658203125, 0.04180908203125, 0.0294036865234375, -0.0305328369140625, -0.00795745849609375, -0.03533935546875, -0.0219879150390625, -0.03656005859375, -0.038665771484375, -0.031982421875, 0.0026798248291015625, 0.0196685791015625, -0.0017595291137695312, 0.0277252197265625, 0.0037517547607421875, -0.045166015625, 0.0311431884765625, 0.036590576171875, 0.03179931640625, 0.0230712890625, 0.0789794921875, -0.019317626953125, 0.08026123046875, 0.0187225341796875, 0.028594970703125, -0.04022216796875, -0.0207672119140625, 0.0174713134765625, 0.035858154296875, 0.0086822509765625, -0.01027679443359375, 0.041778564453125, -0.07818603515625, -0.01543426513671875, -0.027923583984375, 0.005702972412109375, -0.0077972412109375, 0.0021762847900390625, -0.005374908447265625, 0.012725830078125, 0.0016765594482421875, -0.034820556640625, 0.051300048828125, -0.03277587890625, -0.01438140869140625, -0.000244140625, -0.0008978843688964844, 0.017547607421875, 0.003856658935546875, 0.005809783935546875, -0.0022487640380859375, -0.02734375, 0.057647705078125, 0.1031494140625, 0.02178955078125, 0.0697021484375, 0.024932861328125, 0.025634765625, 0.0330810546875, 0.0101318359375, 0.0047607421875, -0.040985107421875, 0.04052734375, 0.01031494140625, -0.015655517578125, 0.036834716796875, -0.0274810791015625, -0.00659942626953125, 0.0797119140625, 0.052276611328125, -0.0927734375, -0.0034656524658203125, -0.00885009765625, -0.010223388671875, 0.033355712890625, -0.0245361328125, 0.00127410888671875, -0.038055419921875, 0.0296630859375, -0.00945281982421875, -0.0308685302734375, -0.01143646240234375, -0.0058135986328125, -0.005573272705078125, 0.0153045654296875, 0.042236328125, 0.0045013427734375, -0.062347412109375, -0.0252227783203125, 0.054412841796875, -0.037109375, 0.008575439453125, 0.0162200927734375, -0.0038776397705078125, -0.0145416259765625, -0.051910400390625, -0.0049285888671875, -0.0139923095703125, -0.0233001708984375, -0.0128021240234375, 0.0170440673828125, 0.01145172119140625, 0.04290771484375, -0.0019321441650390625, -0.0144805908203125, 0.00732421875, -0.01273345947265625, -0.003978729248046875, -0.009552001953125, 0.0204315185546875, 0.0178070068359375, -0.049560546875, 0.01824951171875, -0.023040771484375, -0.0027523040771484375, -0.0219879150390625, -0.0595703125, 0.0927734375, -0.03753662109375, -0.0137939453125, -0.00868988037109375, 0.006927490234375, 0.00580596923828125, -0.004344940185546875, 0.0557861328125, -0.03424072265625, -0.0167999267578125, 0.00910186767578125, -0.033294677734375, -0.039337158203125, -0.03082275390625, -0.04840087890625, 0.04718017578125, 0.0318603515625, -0.0181884765625, -0.0118408203125, 0.0195770263671875, -0.049163818359375, -0.006134033203125, -0.049774169921875, 0.07330322265625, 0.012786865234375, 0.02484130859375, -0.055938720703125, 0.0033855438232421875, -0.0013608932495117188, 0.0027484893798828125, 0.040557861328125, 0.01727294921875, -0.0009350776672363281, 0.005298614501953125, 0.0185089111328125, -0.007537841796875, -0.037933349609375, 0.0352783203125, 0.00537872314453125, 0.01026153564453125, 0.038421630859375, -0.035552978515625, 0.024200439453125, -0.0238037109375, 0.00595855712890625, 0.03143310546875, 0.0205841064453125, 0.009765625, 0.0188751220703125, -0.0066986083984375, -0.0227813720703125, 0.00850677490234375, 0.02392578125, -0.03363037109375, 0.0076904296875, 0.0163421630859375, -0.004543304443359375, -0.035003662109375, 0.0291290283203125, -0.0343017578125, 0.0290069580078125, -0.01837158203125, 0.01175689697265625, 0.0258941650390625, 0.0221099853515625, -0.00937652587890625, 0.027130126953125, 0.0176544189453125, 0.036346435546875, -0.0306854248046875, 0.04296875, 0.0284576416015625, 0.0247650146484375, -0.02105712890625, -0.005645751953125, 0.039825439453125, 0.0689697265625, -0.02569580078125, 0.01026153564453125, -0.0023937225341796875, 0.0266265869140625, 0.022430419921875, -0.0206146240234375, 0.04736328125, 0.0263214111328125, 0.027374267578125, -0.0172119140625, -0.007110595703125, 0.003345489501953125, 0.00042510032653808594, -0.00450897216796875, 0.01183319091796875, 0.028778076171875, -0.00843048095703125, -0.0193939208984375, -0.00653076171875, 0.039520263671875, 0.04925537109375, -0.0115966796875, 0.0222320556640625, -0.0506591796875, -0.0153961181640625, -0.01290130615234375, -0.0175933837890625, 0.04205322265625, -0.004505157470703125, -0.0299224853515625, 0.018096923828125, 0.05145263671875, 0.0213623046875, -0.001708984375, -0.0091400146484375, 0.009033203125, 0.02142333984375, 0.00519561767578125, -0.015350341796875, -0.00994873046875, -0.01212310791015625, 0.001087188720703125, -0.0606689453125, 0.00934600830078125, -0.0141448974609375, -0.005107879638671875, 0.0162811279296875, 0.0011186599731445312, 0.0011749267578125, -0.035919189453125, -0.01007843017578125, -0.012969970703125, -0.0633544921875, 0.025177001953125, -0.03338623046875, 0.0323486328125, -0.017181396484375, -0.0982666015625, -0.056488037109375, 0.0285491943359375, 0.004894256591796875, 0.0093994140625, 0.033660888671875, -0.00930023193359375, 0.0235443115234375, -0.0007638931274414062, 0.02728271484375, -0.030059814453125, -0.022369384765625, 0.0198211669921875, -0.054168701171875, 0.00844573974609375, -0.0028476715087890625, -0.04840087890625, -0.0098419189453125, -0.017425537109375, 0.0004303455352783203, 0.0260467529296875, 0.0301513671875, 0.02996826171875, 0.033172607421875, -0.04180908203125, 0.0294036865234375, -0.056610107421875, -0.0435791015625, 0.04248046875, -0.01361846923828125, -0.0286102294921875, -0.00182342529296875, -0.0804443359375, 0.037078857421875, 0.0008645057678222656, -0.019012451171875, 0.059783935546875, 0.004962921142578125, -0.0054473876953125, -0.027313232421875, 0.014190673828125, -0.01540374755859375, -0.062744140625, -0.008148193359375, 0.04595947265625, -0.01247406005859375, 0.058807373046875, -0.005527496337890625, 0.04205322265625, -0.0166015625, -0.0240936279296875, 0.005512237548828125, -0.056732177734375, -0.00738525390625, 0.013641357421875, 0.027984619140625, 0.006862640380859375, -0.0012044906616210938, -0.024566650390625, 0.0478515625, -0.0110931396484375, 0.047454833984375, 0.00885772705078125, 0.08123779296875, -0.01194000244140625, -0.037628173828125, -0.03204345703125, -0.05670166015625, -0.030181884765625, 0.0253448486328125, -0.01055908203125, -0.00836944580078125, -0.0159759521484375, -0.015594482421875, -0.007232666015625, -0.0037288665771484375, 0.018585205078125, 0.0147705078125, -0.03466796875, -0.032379150390625, 0.0291748046875, 0.040924072265625, -0.01450347900390625, -0.0185699462890625, 0.001728057861328125, -0.03460693359375, 0.05279541015625, 0.001033782958984375, 0.0226287841796875, 0.0198822021484375, 0.0259552001953125, -0.047821044921875, 0.005680084228515625, -0.0216827392578125, -0.0239410400390625, -0.0244903564453125, -0.032684326171875, 0.00229644775390625, -0.0030193328857421875, -0.0175018310546875, -0.06097412109375, -0.0179443359375, -0.0204315185546875, 0.036041259765625, -0.052032470703125, -0.022125244140625, 0.020843505859375, 0.0310516357421875, -0.02423095703125, -0.00446319580078125, -0.02276611328125, 0.00762176513671875, 0.00865936279296875, -0.0196685791015625, -0.001148223876953125, -0.0496826171875, -0.11083984375, 0.06146240234375, -0.01210784912109375, -0.031463623046875, 0.0200958251953125, -0.038482666015625, -0.023284912109375, 0.02777099609375, 0.022247314453125, -0.0537109375, -0.024139404296875, 0.01163482666015625, 0.0176849365234375, -0.0289154052734375, 0.03692626953125, 0.01290130615234375, -0.0389404296875, 0.01219940185546875, 0.014404296875, -0.01708984375, -0.0118865966796875, -0.029083251953125, 0.0262908935546875, 0.0200042724609375, -0.043609619140625, -0.058074951171875, 0.0174102783203125, 0.00856781005859375, -0.0006866455078125, -0.00948333740234375, 0.003948211669921875, -0.007770538330078125, 0.033905029296875, 0.0096893310546875, 0.00007462501525878906, -0.022857666015625, -0.0305328369140625, -0.029144287109375, -0.0153961181640625, -0.0032138824462890625, 0.0220184326171875, -0.07879638671875, 0.0005483627319335938, 0.037994384765625, -0.0003159046173095703, -0.0014982223510742188, 0.0132293701171875, -0.00856781005859375, -0.0034084320068359375, 0.043853759765625, 0.01019287109375, -0.051910400390625, -0.09344482421875, 0.08697509765625, -0.03692626953125, 0.00897216796875, 0.0182952880859375, 0.06597900390625, 0.0408935546875, 0.05145263671875, 0.00502777099609375, 0.0215606689453125, -0.0614013671875, -0.00322723388671875, -0.00620269775390625, 0.006072998046875, -0.039947509765625, -0.01131439208984375, 0.0121917724609375, 0.04315185546875, -0.0171051025390625, 0.061553955078125, 0.013671875, 0.020477294921875, 0.0017490386962890625, 0.0293121337890625, -0.01471710205078125, 0.0187530517578125, -0.031646728515625, 0.0408935546875, -0.010406494140625, -0.01580810546875, 0.0165863037109375, -0.032379150390625, 0.01432037353515625, 0.0369873046875, 0.058807373046875, -0.0304412841796875, 0.042999267578125, 0.043121337890625, 0.054473876953125, 0.0260467529296875 ]
1a9b89631b9845ab3d3c5a02f739e7f27404ec4f
Wordpress Stackexchange Q: the_excerpt() or get_the_excerpt with shortcode escape I have few posts which have a dropcap shortcode wrapped around the first character like so: [dropcap]T[/dropcap]his is a dropcap. The replacement for this shortcode yields: <span class="dropcap">T</span>his is a dropcap. However, when I call the_excerpt() or get_the_excerpt() on these posts, its returning: "his is a dropcap". I need it to return "This is a dropcap" as if no shortcode exists. A: You can make WordPress execute your shortcode in the excerpt by hooking into get_the_excerpt filter and overwriting the default wp_trim_excerpt function, which is responsible of stripping the shortcode tags from the excerpt as pointed by Chip: add_filter('get_the_excerpt', 'do_my_shortcode_in_excerpt'); function do_my_shortcode_in_excerpt($excerpt) { return do_shortcode(wp_trim_words(get_the_content(), 55)); } This is applied to both the_excerpt() and get_the_excerpt() outputs. If you want to apply it only for the_excerpt() output, hook to the_excerpt filter: add_filter('the_excerpt', 'do_my_shortcode_in_excerpt'); function do_my_shortcode_in_excerpt($excerpt) { return do_shortcode(wp_trim_words(get_the_content(), 55)); }
Q: the_excerpt() or get_the_excerpt with shortcode escape I have few posts which have a dropcap shortcode wrapped around the first character like so: [dropcap]T[/dropcap]his is a dropcap. The replacement for this shortcode yields: <span class="dropcap">T</span>his is a dropcap. However, when I call the_excerpt() or get_the_excerpt() on these posts, its returning: "his is a dropcap". I need it to return "This is a dropcap" as if no shortcode exists. A: You can make WordPress execute your shortcode in the excerpt by hooking into get_the_excerpt filter and overwriting the default wp_trim_excerpt function, which is responsible of stripping the shortcode tags from the excerpt as pointed by Chip: add_filter('get_the_excerpt', 'do_my_shortcode_in_excerpt'); function do_my_shortcode_in_excerpt($excerpt) { return do_shortcode(wp_trim_words(get_the_content(), 55)); } This is applied to both the_excerpt() and get_the_excerpt() outputs. If you want to apply it only for the_excerpt() output, hook to the_excerpt filter: add_filter('the_excerpt', 'do_my_shortcode_in_excerpt'); function do_my_shortcode_in_excerpt($excerpt) { return do_shortcode(wp_trim_words(get_the_content(), 55)); } A: The the_excerpt() function doesn't parse shortcodes. WordPress actually strips the entire shortcode from the excerpt. Since the "T" is wrapped in a shortcode, it doesn't get output by the_excerpt(). The easiest solution is probably to create a custom excerpt, via the Post Excerpt meta box on the Edit Post screen, for posts in which you use the Dropcap shortcode. The better solution is probably to ditch a shortcode that exists solely to do something that can reliably be done using nothing more than CSS rules.
wordpress
{ "language": "en", "length": 232, "provenance": "stackexchange_00019.jsonl.gz:426656", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75631" }
[ -0.0254669189453125, -0.005947113037109375, 0.006343841552734375, 0.0237274169921875, -0.0218353271484375, -0.013702392578125, 0.0228271484375, -0.0256805419921875, -0.018035888671875, 0.03851318359375, -0.0232696533203125, -0.01396942138671875, -0.0113525390625, -0.006389617919921875, -0.0217132568359375, -0.040985107421875, 0.021575927734375, -0.0023975372314453125, 0.00992584228515625, -0.0245819091796875, 0.016876220703125, -0.01611328125, -0.018157958984375, 0.048858642578125, -0.01328277587890625, -0.0341796875, 0.13818359375, -0.027435302734375, 0.00533294677734375, -0.0220947265625, 0.004428863525390625, -0.0039215087890625, 0.025299072265625, 0.06134033203125, -0.09527587890625, 0.055267333984375, -0.035369873046875, 0.0251312255859375, -0.00839996337890625, 0.0389404296875, 0.012481689453125, 0.005840301513671875, -0.0174102783203125, -0.0197296142578125, -0.026885986328125, -0.03826904296875, 0.035888671875, -0.007495880126953125, -0.007904052734375, -0.00559234619140625, 0.04705810546875, 0.03021240234375, 0.060028076171875, -0.0347900390625, -0.008331298828125, 0.022857666015625, 0.00797271728515625, -0.006988525390625, 0.0174713134765625, 0.010650634765625, -0.0182342529296875, 0.022430419921875, 0.0020160675048828125, -0.043731689453125, 0.025604248046875, -0.0007228851318359375, 0.0118255615234375, 0.017578125, -0.02081298828125, 0.03033447265625, 0.0223846435546875, -0.035919189453125, -0.01824951171875, -0.046844482421875, -0.0262298583984375, 0.05816650390625, 0.0012617111206054688, 0.00025582313537597656, -0.0238800048828125, 0.01146697998046875, 0.00189208984375, -0.054290771484375, -0.0200653076171875, -0.007610321044921875, 0.0029735565185546875, 0.00936126708984375, -0.0002543926239013672, 0.00370025634765625, -0.0013275146484375, 0.003864288330078125, -0.00909423828125, 0.034942626953125, 0.01605224609375, -0.00146484375, -0.036346435546875, -0.0205230712890625, -0.0127716064453125, 0.0214691162109375, -0.00485992431640625, 0.03167724609375, -0.01546478271484375, -0.03741455078125, 0.05364990234375, -0.047393798828125, 0.023193359375, 0.01319122314453125, -0.0244140625, -0.02154541015625, 0.032440185546875, 0.027435302734375, -0.0153656005859375, 0.021240234375, -0.03350830078125, -0.043792724609375, -0.033294677734375, 0.048095703125, -0.040924072265625, -0.027374267578125, 0.00672149658203125, -0.024658203125, 0.029693603515625, 0.00791168212890625, 0.06414794921875, 0.0001786947250366211, -0.0372314453125, -0.0220184326171875, -0.038970947265625, -0.05078125, 0.0860595703125, -0.026275634765625, -0.0091094970703125, 0.019866943359375, -0.00550079345703125, -0.011932373046875, -0.009368896484375, 0.01004791259765625, -0.006420135498046875, 0.007720947265625, 0.00626373291015625, -0.0209808349609375, 0.0445556640625, 0.02166748046875, 0.0229949951171875, 0.026031494140625, -0.0255279541015625, 0.006374359130859375, 0.0191650390625, 0.0118560791015625, -0.0164947509765625, -0.05279541015625, -0.00004035234451293945, -0.02008056640625, 0.06341552734375, -0.028289794921875, -0.04852294921875, -0.050537109375, -0.01390838623046875, -0.036346435546875, -0.005641937255859375, -0.045684814453125, 0.037384033203125, -0.0173492431640625, -0.047515869140625, -0.0106353759765625, -0.036163330078125, -0.0024871826171875, -0.0015192031860351562, 0.005401611328125, 0.01824951171875, 0.050537109375, 0.0021152496337890625, -0.0277557373046875, -0.0063629150390625, 0.005107879638671875, -0.0203857421875, 0.0029430389404296875, -0.0267333984375, -0.00316619873046875, 0.03704833984375, -0.006488800048828125, -0.0278472900390625, -0.0285491943359375, 0.0295257568359375, 0.0034084320068359375, -0.044677734375, 0.0229644775390625, 0.03656005859375, 0.105224609375, -0.002971649169921875, 0.0390625, -0.03948974609375, 0.01047515869140625, -0.0225677490234375, -0.06390380859375, -0.0094451904296875, -0.023193359375, 0.00318145751953125, -0.04742431640625, -0.00449371337890625, 0.09942626953125, 0.02484130859375, -0.0290679931640625, 0.03924560546875, -0.003246307373046875, -0.025848388671875, 0.0008873939514160156, -0.01384735107421875, 0.01197052001953125, -0.02532958984375, -0.01611328125, 0.01702880859375, -0.015472412109375, -0.0279388427734375, 0.02947998046875, 0.004886627197265625, 0.06622314453125, -0.052764892578125, 0.04949951171875, -0.004764556884765625, 0.046051025390625, 0.038330078125, -0.035888671875, 0.042816162109375, 0.0096282958984375, 0.06304931640625, -0.07366943359375, 0.0084228515625, -0.0618896484375, 0.002704620361328125, -0.01708984375, -0.0894775390625, 0.059295654296875, 0.058441162109375, 0.013031005859375, -0.060516357421875, -0.00829315185546875, -0.00023758411407470703, -0.0035381317138671875, -0.00710296630859375, 0.05352783203125, 0.069580078125, 0.06341552734375, 0.025054931640625, -0.04754638671875, 0.10052490234375, -0.0290069580078125, 0.0361328125, -0.067626953125, 0.014617919921875, 0.050811767578125, 0.043975830078125, -0.0085906982421875, -0.006229400634765625, -0.047943115234375, 0.0024509429931640625, 0.008026123046875, -0.004192352294921875, 0.0245513916015625, -0.0198974609375, -0.0015707015991210938, 0.005489349365234375, -0.04022216796875, 0.0014047622680664062, -0.03314208984375, 0.06866455078125, 0.0240325927734375, 0.06231689453125, 0.043853759765625, -0.04180908203125, 0.0115814208984375, 0.01015472412109375, 0.050384521484375, 0.0029964447021484375, 0.06512451171875, 0.030029296875, -0.0178375244140625, 0.005466461181640625, -0.0177154541015625, -0.01383209228515625, 0.0113372802734375, 0.0030040740966796875, 0.0421142578125, 0.01461029052734375, -0.016571044921875, -0.01171875, -0.037506103515625, 0.00925445556640625, -0.004383087158203125, 0.007511138916015625, -0.04351806640625, 0.00018298625946044922, 0.03240966796875, -0.01025390625, 0.0208282470703125, 0.02630615234375, -0.00948333740234375, 0.029388427734375, -0.057281494140625, 0.05157470703125, -0.05902099609375, 0.01525115966796875, 0.050323486328125, -0.033477783203125, 0.00263214111328125, 0.0158538818359375, -0.0304412841796875, 0.00928497314453125, 0.0011987686157226562, 0.0036830902099609375, -0.006748199462890625, -0.01149749755859375, 0.068115234375, 0.033355712890625, 0.049468994140625, -0.000029921531677246094, -0.0150146484375, -0.00963592529296875, 0.052001953125, -0.031341552734375, -0.0190277099609375, 0.033538818359375, -0.048675537109375, -0.01122283935546875, -0.0007905960083007812, -0.032989501953125, -0.00937652587890625, 0.029510498046875, -0.0136871337890625, 0.018157958984375, -0.0254974365234375, -0.01265716552734375, -0.023193359375, -0.056915283203125, -0.024871826171875, 0.01006317138671875, 0.008209228515625, 0.01763916015625, 0.03314208984375, 0.02716064453125, -0.04364013671875, 0.03021240234375, -0.013519287109375, -0.02471923828125, 0.03851318359375, 0.01090240478515625, -0.01421356201171875, -0.0113525390625, 0.006317138671875, -0.0160064697265625, 0.034332275390625, -0.01873779296875, -0.0022983551025390625, -0.0102386474609375, 0.021575927734375, 0.038787841796875, 0.0216522216796875, 0.00580596923828125, 0.032318115234375, 0.0838623046875, -0.0108489990234375, 0.017974853515625, -0.030731201171875, -0.04681396484375, -0.0025615692138671875, 0.056793212890625, -0.0137176513671875, -0.03741455078125, -0.01153564453125, 0.0236663818359375, 0.021270751953125, 0.047088623046875, -0.018341064453125, 0.01204681396484375, -0.002170562744140625, -0.00018656253814697266, -0.0278167724609375, 0.0116424560546875, -0.0008130073547363281, -0.00789642333984375, -0.00746917724609375, 0.03533935546875, -0.004169464111328125, -0.00675201416015625, -0.059478759765625, -0.041412353515625, 0.040008544921875, -0.014007568359375, -0.0079193115234375, -0.0113983154296875, -0.0221405029296875, -0.0019092559814453125, 0.0693359375, -0.02349853515625, -0.0222015380859375, 0.0178680419921875, 0.01073455810546875, 0.01389312744140625, 0.003009796142578125, -0.0135650634765625, -0.0306243896484375, -0.0670166015625, 0.004688262939453125, -0.0032863616943359375, -0.03546142578125, -0.01390838623046875, -0.0149993896484375, -0.04608154296875, -0.01525115966796875, 0.0321044921875, -0.024993896484375, 0.0175628662109375, 0.0248565673828125, 0.00782012939453125, 0.0032196044921875, -0.035308837890625, -0.0048675537109375, -0.051239013671875, -0.00688934326171875, 0.0267791748046875, 0.0330810546875, -0.0213165283203125, -0.006404876708984375, -0.0128631591796875, 0.0439453125, -0.0066375732421875, -0.01873779296875, 0.01540374755859375, 0.024139404296875, 0.002399444580078125, 0.00493621826171875, 0.016815185546875, -0.0250701904296875, -0.0034313201904296875, 0.004230499267578125, -0.04583740234375, 0.0112762451171875, -0.0293731689453125, 0.017669677734375, 0.00685882568359375, -0.03509521484375, -0.0657958984375, -0.021453857421875, 0.00310516357421875, -0.02020263671875, -0.0294952392578125, 0.0010251998901367188, -0.0162353515625, -0.0618896484375, 0.04595947265625, 0.0233917236328125, -0.025726318359375, -0.0149688720703125, 0.053375244140625, 0.03668212890625, -0.030364990234375, 0.01303863525390625, 0.024810791015625, 0.04656982421875, -0.0003573894500732422, 0.0679931640625, 0.0487060546875, -0.014495849609375, 0.06585693359375, 0.0157318115234375, 0.0013799667358398438, -0.051544189453125, 0.023773193359375, 0.0116119384765625, 0.022186279296875, -0.0125885009765625, 0.0027751922607421875, 0.07635498046875, 0.007965087890625, -0.0074615478515625, -0.00537109375, 0.01904296875, -0.00022017955780029297, -0.017791748046875, 0.04498291015625, 0.0208740234375, -0.024383544921875, 0.003849029541015625, 0.060760498046875, 0.01580810546875, 0.01551055908203125, 0.0198516845703125, 0.0005922317504882812, 0.0231781005859375, 0.0005049705505371094, -0.031951904296875, -0.0129547119140625, -0.0191650390625, 0.0391845703125, -0.07781982421875, -0.0253753662109375, -0.01373291015625, 0.000148773193359375, 0.0210113525390625, -0.028045654296875, -0.068115234375, 0.011474609375, -0.02117919921875, -0.007625579833984375, 0.036590576171875, 0.0164031982421875, 0.004596710205078125, 0.015472412109375, 0.013031005859375, 0.00601959228515625, 0.018310546875, 0.0264129638671875, -0.01428985595703125, -0.027496337890625, -0.0305023193359375, -0.00650787353515625, 0.0321044921875, 0.03509521484375, -0.04638671875, 0.053070068359375, -0.0143890380859375, 0.0228118896484375, 0.0003216266632080078, 0.03375244140625, 0.024566650390625, -0.03033447265625, 0.016845703125, 0.0059967041015625, -0.0186614990234375, -0.041473388671875, -0.02508544921875, 0.01910400390625, 0.045013427734375, -0.033599853515625, -0.009185791015625, 0.00562286376953125, -0.0119171142578125, 0.003086090087890625, 0.017425537109375, 0.01229095458984375, 0.004608154296875, -0.030029296875, -0.006534576416015625, 0.02996826171875, 0.01471710205078125, 0.0005960464477539062, -0.035308837890625, -0.0018939971923828125, -0.007404327392578125, -0.0012178421020507812, -0.033935546875, 0.006923675537109375, -0.00843048095703125, 0.05718994140625, 0.00868988037109375, -0.047698974609375, 0.0357666015625, -0.024505615234375, -0.005023956298828125, -0.00145721435546875, 0.08489990234375, -0.0225982666015625, -0.0030193328857421875, -0.0259857177734375, 0.01068878173828125, -0.08172607421875, -0.0028076171875, 0.0794677734375, 0.06304931640625, -0.05078125, 0.0159759521484375, -0.04327392578125, -0.005237579345703125, 0.03125, -0.0265350341796875, -0.04290771484375, -0.014312744140625, -0.0251007080078125, 0.0306854248046875, 0.0006194114685058594, 0.00954437255859375, 0.006618499755859375, -0.0005497932434082031, -0.02716064453125, 0.02301025390625, -0.01226043701171875, 0.032562255859375, 0.02081298828125, 0.03814697265625, 0.0236358642578125, 0.0164031982421875, 0.006885528564453125, -0.0399169921875, -0.006381988525390625, -0.0289306640625, -0.01242828369140625, -0.0155029296875, 0.00787353515625, 0.0307769775390625, 0.04547119140625, 0.0022830963134765625, 0.026824951171875, 0.0024776458740234375, -0.01027679443359375, -0.01153564453125, -0.0199127197265625, 0.007419586181640625, -0.003086090087890625, 0.0207672119140625, -0.0106048583984375, 0.04669189453125, -0.03460693359375, 0.00572967529296875, 0.034576416015625, -0.046539306640625, 0.036407470703125, 0.04071044921875, 0.00882720947265625, 0.041534423828125, 0.046783447265625, -0.0435791015625, 0.007495880126953125, 0.017303466796875, -0.025390625, 0.0012836456298828125, 0.022857666015625, 0.0256805419921875, 0.023193359375, 0.035614013671875, -0.003631591796875, 0.0176544189453125, 0.020843505859375, -0.018157958984375, 0.0269927978515625, 0.0124359130859375, 0.04180908203125, -0.046478271484375, 0.0268402099609375, 0.0174713134765625, -0.0018606185913085938, 0.0298309326171875, -0.01262664794921875, -0.00457000732421875, -0.03619384765625, 0.0653076171875, -0.033599853515625, -0.017364501953125, 0.0139007568359375, -0.019622802734375, -0.0186920166015625, -0.052459716796875, 0.04022216796875, 0.01171112060546875, -0.0258636474609375, 0.030975341796875, 0.0306854248046875, 0.00923919677734375, -0.01537322998046875, 0.006946563720703125, -0.0158538818359375, -0.0266571044921875, -0.0352783203125, -0.00234222412109375, -0.0175933837890625, 0.00372314453125, 0.045501708984375, -0.00765228271484375, 0.03961181640625, 0.049591064453125, -0.00466156005859375, 0.01036834716796875, 0.0249786376953125, 0.0001462697982788086, 0.00687408447265625, -0.0207366943359375, 0.007007598876953125, 0.052520751953125, 0.00394439697265625, 0.0196380615234375, 0.023895263671875, -0.0282440185546875, -0.0045928955078125, -0.03240966796875, 0.05938720703125, -0.03265380859375, -0.01617431640625, 0.01519012451171875, -0.0094757080078125, -0.0117340087890625, -0.01172637939453125, 0.033721923828125, -0.037445068359375, 0.00571441650390625, -0.0082550048828125, -0.009796142578125, -0.020172119140625, -0.044464111328125, -0.0693359375, 0.07684326171875, 0.007537841796875, 0.0129241943359375, -0.01239013671875, 0.024383544921875, -0.0203704833984375, -0.004215240478515625, -0.0574951171875, 0.05419921875, 0.042388916015625, 0.035552978515625, -0.06622314453125, -0.032623291015625, 0.003997802734375, 0.04901123046875, 0.047637939453125, 0.0012531280517578125, 0.0141754150390625, 0.01055145263671875, 0.0772705078125, 0.01557159423828125, -0.00392913818359375, 0.0107574462890625, 0.0251617431640625, 0.04754638671875, 0.035186767578125, -0.00984954833984375, 0.04608154296875, -0.053131103515625, -0.0196533203125, 0.044189453125, 0.006252288818359375, -0.00856781005859375, 0.0160980224609375, 0.01629638671875, -0.0228424072265625, -0.0028896331787109375, 0.018280029296875, -0.03265380859375, -0.051483154296875, 0.0594482421875, -0.01180267333984375, -0.06927490234375, -0.035430908203125, -0.052581787109375, 0.02545166015625, -0.00412750244140625, 0.064697265625, 0.042938232421875, 0.0269775390625, 0.04290771484375, 0.0304718017578125, 0.050384521484375, 0.043731689453125, -0.0278167724609375, 0.0251922607421875, 0.02520751953125, 0.0031147003173828125, -0.0089874267578125, 0.055450439453125, 0.02972412109375, 0.019744873046875, -0.043701171875, -0.00969696044921875, -0.0015172958374023438, -0.021575927734375, -0.01216888427734375, -0.0235748291015625, -0.0294189453125, 0.013092041015625, 0.00243377685546875, -0.00428009033203125, -0.033111572265625, 0.016693115234375, 0.0281219482421875, 0.015380859375, 0.0289154052734375, -0.00829315185546875, -0.05084228515625, -0.038787841796875, 0.0247039794921875, 0.0159149169921875, 0.02978515625, 0.0095062255859375, 0.050537109375, -0.01551055908203125, 0.00455474853515625, -0.0016069412231445312, 0.035919189453125, 0.026885986328125, -0.0032558441162109375, -0.007472991943359375, -0.0111846923828125, 0.030487060546875, 0.006504058837890625, 0.01263427734375, -0.0275726318359375, 0.00920867919921875, 0.012451171875, -0.057464599609375, -0.00943756103515625, 0.053131103515625, -0.0222930908203125, 0.011199951171875, -0.04150390625, 0.00205230712890625, -0.00518798828125, -0.01025390625, 0.0008931159973144531, 0.0118255615234375, 0.00473785400390625, -0.038848876953125, 0.0711669921875, -0.01364898681640625, 0.01264190673828125, -0.01910400390625, 0.0308074951171875, -0.014678955078125, 0.0112152099609375, -0.066650390625, -0.005809783935546875, -0.0245361328125, -0.06866455078125, 0.0257720947265625, 0.04669189453125, -0.005619049072265625, -0.0029125213623046875, -0.01464080810546875, -0.0179595947265625, -0.0016775131225585938, 0.0418701171875, -0.0026493072509765625, 0.003936767578125, 0.0187225341796875, -0.0194854736328125, -0.023895263671875, -0.00954437255859375, 0.0014982223510742188, 0.0256195068359375, 0.033233642578125, 0.0299835205078125, 0.0012063980102539062, 0.02728271484375, -0.01503753662109375, 0.0210113525390625, -0.022552490234375, -0.0297088623046875, 0.0306243896484375, 0.0125274658203125, 0.0177001953125, -0.0129547119140625, 0.004467010498046875, 0.018585205078125, 0.05999755859375, -0.0165863037109375, 0.0260467529296875, -0.018341064453125, 0.01390838623046875, -0.06561279296875, 0.042510986328125, -0.001140594482421875, -0.01160430908203125, -0.02679443359375, -0.008148193359375, 0.051544189453125, 0.03875732421875, -0.0174102783203125, -0.0083770751953125, 0.07598876953125, 0.0033512115478515625, 0.028900146484375, 0.044677734375, 0.042633056640625, 0.0300140380859375, -0.00888824462890625, 0.007198333740234375, 0.0207977294921875, -0.006961822509765625, 0.0362548828125, 0.0016050338745117188, 0.0097808837890625, 0.05218505859375, -0.05572509765625, 0.016693115234375, 0.006862640380859375, 0.067626953125, 0.00345611572265625, 0.0193023681640625, -0.00745391845703125, 0.01922607421875, 0.0027790069580078125, 0.03656005859375, -0.038604736328125, -0.005542755126953125, -0.0175323486328125, -0.02197265625, -0.0009436607360839844, -0.08587646484375, -0.07086181640625, -0.0139617919921875, 0.004543304443359375, 0.00579833984375, -0.0318603515625, 0.0015649795532226562, 0.016815185546875, 0.03265380859375, -0.03131103515625, 0.042572021484375, -0.0225677490234375, -0.0096282958984375, -0.0784912109375, -0.04290771484375, -0.0531005859375, 0.03814697265625, -0.054534912109375, -0.006359100341796875, 0.044769287109375, -0.00292205810546875, -0.06146240234375, 0.03948974609375, -0.0169677734375, 0.0677490234375, -0.07647705078125, -0.035064697265625, 0.01678466796875, 0.00560760498046875, 0.00913238525390625, -0.059967041015625, -0.02325439453125, -0.0307159423828125, 0.035858154296875, 0.038665771484375, -0.0305328369140625, -0.006893157958984375, -0.031402587890625, -0.019805908203125, 0.0127105712890625, 0.03155517578125, -0.035491943359375, -0.0305633544921875, 0.0068359375, -0.016357421875, 0.003936767578125, 0.0034847259521484375, -0.01125335693359375, -0.01371002197265625, 0.01525115966796875, 0.006256103515625, 0.058746337890625, 0.01056671142578125, -0.0005793571472167969, -0.01274871826171875, 0.0034942626953125, -0.013946533203125, -0.0010824203491210938, 0.005825042724609375, -0.0289459228515625, 0.035186767578125, 0.038360595703125, -0.0372314453125, -0.03485107421875, 0.01059722900390625, -0.0257568359375, -0.01201629638671875, -0.05322265625, -0.0114898681640625, -0.01788330078125, 0.07513427734375, 0.0142669677734375, 0.0125274658203125, -0.0194091796875, -0.0266876220703125, 0.00391387939453125, -0.01898193359375, -0.01314544677734375, 0.019561767578125, -0.037872314453125, -0.005100250244140625, -0.041748046875, -0.01200103759765625, 0.0283050537109375, -0.03558349609375, -0.043731689453125, -0.000024259090423583984, -0.04754638671875, 0.00824737548828125, -0.061248779296875, -0.062347412109375, 0.028167724609375, -0.032867431640625, -0.0323486328125, -0.00026226043701171875, 0.0382080078125, -0.02923583984375, -0.000896453857421875, -0.0272369384765625, 0.0306549072265625, -0.01166534423828125, -0.0010242462158203125, 0.01123809814453125, 0.01422119140625, -0.007358551025390625, 0.0303497314453125, -0.00739288330078125, 0.03155517578125, 0.002918243408203125, 0.058929443359375, 0.0016422271728515625, 0.001392364501953125, 0.0174713134765625, -0.0298919677734375, -0.037841796875, 0.0809326171875, 0.0173797607421875, -0.0010204315185546875, 0.004909515380859375, 0.03076171875, 0.037628173828125, -0.005748748779296875, 0.0124969482421875, 0.0282440185546875, 0.02435302734375, 0.0101776123046875, -0.01027679443359375, -0.0109710693359375, 0.0164947509765625, -0.00762176513671875 ]
fd4fdc44dc08aebdb7ce06fefbf0697282c423c7
Wordpress Stackexchange Q: Limit the word count in the post title Is there a way to limit the word count of the post title? I searched over the internet but found nothing. All I know is, only the content of the post can be limited or excerpted. A: simply use this where ever you want to display your title with limited words <?php echo wp_trim_words( get_the_title(), 5 ); ?> replace number 5 in above code with whatever number of words you need to display. Regards.
Q: Limit the word count in the post title Is there a way to limit the word count of the post title? I searched over the internet but found nothing. All I know is, only the content of the post can be limited or excerpted. A: simply use this where ever you want to display your title with limited words <?php echo wp_trim_words( get_the_title(), 5 ); ?> replace number 5 in above code with whatever number of words you need to display. Regards. A: If continue sign "..." needed at end of title <?php echo wp_trim_words( get_the_title(), 10, '...' ); ?> If continue sign "..." not needed at end of title <?php echo wp_trim_words( get_the_title(), 10 ); ?> A: There is a built-in function for that: wp_trim_words(). add_filter( 'the_title', 'wpse_75691_trim_words' ); function wpse_75691_trim_words( $title ) { // limit to ten words return wp_trim_words( $title, 10, '' ); } If you want to trim the words depending on certain properties of the post, ask WP to pass the post ID to your callback. Here is an example for filtering by post type. But you can also check for associated terms, post age or author, and even post meta. add_filter( 'the_title', 'wpse_75691_trim_words_by_post_type', 10, 2 ); function wpse_75691_trim_words_by_post_type( $title, $post_id ) { $post_type = get_post_type( $post_id ); if ( 'product' !== $post_type ) return $title; // limit to ten words return wp_trim_words( $title, 10, '' ); } A: function limit_word_count($title) { $len = 5; //change this to the number of words if (str_word_count($title) > $len) { $keys = array_keys(str_word_count($title, 2)); $title = substr($title, 0, $keys[$len]); } return $title; } add_filter('the_title', 'limit_word_count'); You can put any kind of limit on almost anything you like, you just need the correct filter
wordpress
{ "language": "en", "length": 286, "provenance": "stackexchange_00019.jsonl.gz:426673", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75691" }
[ -0.01097869873046875, -0.006099700927734375, 0.006687164306640625, 0.058502197265625, -0.026275634765625, -0.018951416015625, 0.0321044921875, -0.05267333984375, -0.00702667236328125, 0.009552001953125, -0.022735595703125, 0.02459716796875, -0.024566650390625, -0.024932861328125, 0.00494384765625, -0.0246734619140625, 0.0275726318359375, 0.007541656494140625, 0.033294677734375, -0.009124755859375, 0.00937652587890625, 0.0166168212890625, 0.0085601806640625, 0.06842041015625, 0.003726959228515625, -0.0002760887145996094, 0.11297607421875, -0.05096435546875, -0.002899169921875, -0.049163818359375, 0.0211334228515625, 0.005069732666015625, 0.0179443359375, 0.0153045654296875, -0.00783538818359375, 0.042999267578125, 0.016387939453125, -0.005146026611328125, 0.00763702392578125, 0.0250091552734375, 0.0270538330078125, -0.00897979736328125, -0.012451171875, 0.00012171268463134766, -0.00846099853515625, -0.027374267578125, 0.0295257568359375, -0.028045654296875, 0.0163116455078125, -0.0484619140625, 0.0231475830078125, 0.005657196044921875, 0.051971435546875, -0.04193115234375, -0.01367950439453125, 0.0204315185546875, 0.038482666015625, -0.005401611328125, 0.06048583984375, -0.07855224609375, -0.0716552734375, -0.026641845703125, 0.053741455078125, -0.0013856887817382812, 0.0281829833984375, 0.0118865966796875, 0.04730224609375, 0.0198211669921875, 0.005847930908203125, 0.0177001953125, 0.00783538818359375, -0.01428985595703125, 0.0230255126953125, -0.047210693359375, -0.01207733154296875, -0.0014142990112304688, -0.044219970703125, -0.05364990234375, 0.04400634765625, -0.002468109130859375, -0.01036834716796875, -0.050567626953125, 0.0151214599609375, 0.006053924560546875, -0.02593994140625, 0.0040130615234375, -0.0299072265625, 0.0156707763671875, -0.0127410888671875, -0.0171051025390625, -0.01210784912109375, 0.032958984375, -0.0297393798828125, -0.002269744873046875, -0.008819580078125, -0.0266265869140625, 0.0080413818359375, -0.006717681884765625, -0.0182647705078125, -0.024871826171875, 0.01068878173828125, -0.0163726806640625, -0.0071868896484375, 0.0161895751953125, 0.01861572265625, -0.002552032470703125, -0.054412841796875, 0.0086669921875, 0.057403564453125, 0.054656982421875, 0.0018329620361328125, -0.007495880126953125, -0.0162353515625, -0.026458740234375, -0.04949951171875, 0.010284423828125, -0.038482666015625, -0.0058746337890625, 0.01432037353515625, 0.005084991455078125, -0.01129150390625, -0.027069091796875, 0.00689697265625, 0.0240478515625, 0.00873565673828125, 0.005039215087890625, -0.0243072509765625, 0.01122283935546875, 0.0235595703125, 0.050567626953125, 0.0015172958374023438, 0.004695892333984375, -0.02886962890625, -0.01087188720703125, -0.038909912109375, -0.0126190185546875, -0.0186614990234375, -0.007171630859375, -0.0295867919921875, 0.0009598731994628906, -0.0235137939453125, 0.004726409912109375, 0.04779052734375, -0.042816162109375, 0.0030994415283203125, 0.00988006591796875, 0.005950927734375, 0.0286712646484375, 0.006526947021484375, -0.067626953125, 0.03668212890625, -0.0158233642578125, 0.0382080078125, 0.00124359130859375, -0.0341796875, -0.02532958984375, -0.01380157470703125, -0.022247314453125, -0.007518768310546875, -0.024658203125, 0.0282440185546875, -0.0008602142333984375, 0.01097869873046875, 0.0113677978515625, -0.02679443359375, 0.0200347900390625, -0.01345062255859375, -0.00193023681640625, 0.0090789794921875, 0.048095703125, 0.01219940185546875, 0.019195556640625, -0.002117156982421875, -0.01526641845703125, -0.028961181640625, -0.0180816650390625, -0.01544189453125, -0.045318603515625, 0.004222869873046875, 0.036407470703125, -0.00783538818359375, -0.0190277099609375, -0.0181121826171875, 0.007427215576171875, -0.0017900466918945312, -0.046356201171875, 0.024810791015625, 0.00920867919921875, 0.025726318359375, 0.0196533203125, -0.00026535987854003906, -0.0142059326171875, -0.00937652587890625, -0.03057861328125, -0.0186920166015625, -0.031005859375, -0.01279449462890625, -0.0254058837890625, -0.014801025390625, 0.06890869140625, 0.05908203125, -0.028717041015625, 0.01094818115234375, -0.0299224853515625, -0.02972412109375, -0.0389404296875, -0.00353240966796875, 0.0079345703125, 0.0024547576904296875, 0.00836944580078125, 0.006450653076171875, -0.0226898193359375, 0.008819580078125, -0.048583984375, -0.040069580078125, 0.0006489753723144531, -0.0096282958984375, -0.01629638671875, 0.001598358154296875, -0.045166015625, 0.03265380859375, 0.011016845703125, 0.0185546875, 0.045989990234375, 0.08502197265625, -0.05194091796875, 0.0212554931640625, -0.049102783203125, 0.06317138671875, -0.022247314453125, -0.035186767578125, 0.044403076171875, 0.0338134765625, 0.042938232421875, -0.01216888427734375, -0.0247039794921875, -0.010498046875, -0.071044921875, 0.0178070068359375, 0.059844970703125, 0.032928466796875, 0.023193359375, 0.006954193115234375, 0.0199737548828125, 0.037628173828125, -0.034454345703125, 0.01348876953125, -0.0008268356323242188, 0.002288818359375, 0.02215576171875, 0.0165557861328125, 0.006702423095703125, 0.0248260498046875, -0.032745361328125, -0.000995635986328125, 0.034088134765625, -0.008544921875, -0.002696990966796875, -0.02880859375, -0.01200103759765625, 0.0176544189453125, -0.01519775390625, -0.0218048095703125, -0.00611114501953125, -0.035064697265625, 0.04937744140625, 0.0225067138671875, 0.04522705078125, -0.031646728515625, 0.01548004150390625, 0.0251922607421875, 0.051971435546875, 0.017059326171875, -0.020111083984375, -0.00836944580078125, -0.006786346435546875, -0.0404052734375, 0.0202178955078125, 0.04290771484375, -0.029754638671875, -0.005580902099609375, 0.00598907470703125, 0.01525115966796875, -0.010894775390625, 0.0173187255859375, -0.0802001953125, 0.01155853271484375, -0.010498046875, 0.005825042724609375, -0.01496124267578125, -0.006122589111328125, 0.039764404296875, -0.017059326171875, 0.046295166015625, 0.0209503173828125, -0.00482940673828125, -0.0037689208984375, -0.06427001953125, 0.059173583984375, -0.06268310546875, 0.043731689453125, 0.0721435546875, -0.02301025390625, 0.02764892578125, 0.0183258056640625, -0.01385498046875, 0.0199127197265625, 0.01271820068359375, -0.0148773193359375, 0.0220794677734375, -0.11566162109375, -0.004974365234375, 0.00897216796875, 0.032470703125, -0.013275146484375, -0.0173797607421875, -0.00194549560546875, 0.013885498046875, -0.0306854248046875, -0.0243072509765625, 0.0296173095703125, -0.04803466796875, -0.0355224609375, 0.0257720947265625, -0.0276336669921875, -0.004375457763671875, 0.05859375, -0.009552001953125, -0.033782958984375, -0.0253448486328125, -0.027801513671875, -0.0455322265625, -0.04388427734375, -0.0271148681640625, -0.0117645263671875, -0.00673675537109375, -0.005767822265625, 0.089599609375, -0.0064697265625, -0.0997314453125, -0.054840087890625, 0.04376220703125, -0.006908416748046875, 0.007213592529296875, 0.052734375, -0.02587890625, -0.0169677734375, 0.040008544921875, -0.03240966796875, 0.019256591796875, -0.0265960693359375, -0.0303802490234375, -0.005008697509765625, 0.03662109375, 0.0165863037109375, 0.0328369140625, -0.0015840530395507812, 0.046295166015625, 0.018646240234375, -0.01715087890625, -0.03607177734375, -0.0016040802001953125, -0.072509765625, -0.04052734375, 0.048675537109375, 0.0025177001953125, -0.042388916015625, 0.002033233642578125, 0.0406494140625, 0.0235595703125, -0.0163726806640625, -0.0008211135864257812, 0.06866455078125, 0.0186920166015625, 0.052764892578125, -0.0283966064453125, -0.022979736328125, -0.0197906494140625, 0.04052734375, -0.011199951171875, 0.033966064453125, -0.0030231475830078125, 0.036651611328125, -0.0280609130859375, -0.052978515625, 0.037261962890625, -0.022857666015625, 0.01520538330078125, -0.033050537109375, -0.048370361328125, -0.00984954833984375, 0.09002685546875, -0.06494140625, -0.03515625, -0.0186309814453125, 0.0236358642578125, 0.0267333984375, -0.04736328125, 0.034332275390625, -0.047119140625, -0.033538818359375, 0.0036983489990234375, -0.02581787109375, 0.005748748779296875, -0.041595458984375, 0.0360107421875, -0.0234527587890625, -0.01233673095703125, 0.0299072265625, -0.007396697998046875, -0.007511138916015625, -0.009033203125, -0.0279541015625, -0.02734375, -0.027313232421875, -0.00406646728515625, -0.04644775390625, -0.01043701171875, 0.0211029052734375, 0.0007033348083496094, -0.023529052734375, 0.01039886474609375, -0.00848388671875, 0.035797119140625, 0.0223541259765625, 0.024810791015625, 0.015716552734375, -0.0282135009765625, 0.0176849365234375, 0.0343017578125, 0.0283355712890625, -0.015869140625, -0.018463134765625, -0.0362548828125, 0.01306915283203125, 0.034820556640625, -0.0213623046875, 0.005870819091796875, -0.0194549560546875, 0.005035400390625, -0.061614990234375, -0.033111572265625, 0.0218505859375, 0.0145416259765625, 0.0009183883666992188, 0.0020599365234375, -0.035125732421875, -0.0494384765625, 0.05780029296875, 0.046722412109375, -0.0138397216796875, 0.0037288665771484375, 0.07574462890625, 0.0109405517578125, -0.033905029296875, -0.060699462890625, 0.0236663818359375, 0.0276031494140625, 0.00212860107421875, 0.02020263671875, -0.032958984375, -0.03533935546875, 0.09619140625, -0.027984619140625, -0.0172271728515625, 0.006565093994140625, 0.00691986083984375, -0.01395416259765625, -0.03466796875, 0.0223236083984375, -0.037445068359375, 0.0615234375, -0.0044708251953125, -0.0047760009765625, 0.007663726806640625, 0.00499725341796875, 0.0157470703125, -0.0037689208984375, 0.022552490234375, 0.004764556884765625, -0.04510498046875, 0.026611328125, 0.037841796875, -0.0178985595703125, 0.0036373138427734375, 0.0211639404296875, -0.00482177734375, -0.006591796875, 0.0161895751953125, -0.02288818359375, -0.025360107421875, -0.034027099609375, 0.033294677734375, -0.0107421875, 0.0011548995971679688, 0.025421142578125, -0.0142059326171875, 0.035888671875, -0.0007290840148925781, -0.04595947265625, 0.0016584396362304688, -0.00022459030151367188, 0.05010986328125, -0.00299835205078125, 0.060821533203125, 0.0032958984375, 0.00612640380859375, 0.0219879150390625, 0.0017251968383789062, 0.04815673828125, 0.0251617431640625, -0.01052093505859375, 0.043548583984375, 0.0024166107177734375, -0.0034923553466796875, 0.0248565673828125, 0.055908203125, -0.034423828125, 0.046295166015625, -0.013580322265625, 0.04815673828125, 0.0740966796875, -0.0087127685546875, 0.0173492431640625, -0.004974365234375, -0.03973388671875, 0.0051727294921875, -0.01531219482421875, -0.0036563873291015625, -0.0400390625, 0.01479339599609375, -0.00362396240234375, -0.0166168212890625, 0.02734375, 0.020050048828125, 0.0189208984375, -0.0016021728515625, 0.014923095703125, -0.00896453857421875, -0.036773681640625, -0.0158843994140625, 0.022918701171875, 0.042083740234375, 0.0052642822265625, -0.00241851806640625, -0.039794921875, -0.01486968994140625, 0.0027828216552734375, -0.04150390625, -0.007015228271484375, 0.0007104873657226562, 0.0092926025390625, -0.03607177734375, 0.006534576416015625, 0.005947113037109375, -0.00553131103515625, -0.041839599609375, 0.0057830810546875, -0.00481414794921875, 0.0341796875, -0.0165252685546875, 0.037841796875, -0.045074462890625, 0.00366973876953125, -0.038421630859375, 0.0229644775390625, 0.00763702392578125, 0.006134033203125, -0.031036376953125, -0.0240936279296875, -0.052703857421875, -0.03228759765625, -0.00592803955078125, -0.003173828125, -0.0423583984375, -0.01038360595703125, 0.0006022453308105469, 0.01004791259765625, -0.0012426376342773438, -0.01430511474609375, -0.007022857666015625, 0.0408935546875, 0.031890869140625, 0.03521728515625, -0.0170745849609375, 0.01222991943359375, 0.050323486328125, 0.024200439453125, 0.0284576416015625, 0.03662109375, 0.041656494140625, -0.059661865234375, 0.044158935546875, -0.040008544921875, -0.066162109375, 0.001811981201171875, -0.01064300537109375, -0.01152801513671875, -0.0217742919921875, -0.013275146484375, -0.001987457275390625, -0.02789306640625, 0.0020618438720703125, -0.026824951171875, 0.01055908203125, -0.03765869140625, -0.035736083984375, 0.00194549560546875, 0.0015611648559570312, 0.0648193359375, -0.0322265625, -0.00872802734375, 0.041961669921875, -0.0411376953125, 0.053680419921875, 0.006023406982421875, 0.0074005126953125, 0.003406524658203125, 0.0265960693359375, -0.006244659423828125, 0.032073974609375, 0.039764404296875, 0.022125244140625, 0.01413726806640625, 0.01515960693359375, -0.0220489501953125, -0.05230712890625, 0.021087646484375, 0.004261016845703125, -0.001262664794921875, 0.046722412109375, -0.01230621337890625, -0.0128021240234375, 0.03558349609375, 0.0443115234375, -0.0465087890625, 0.01052093505859375, 0.018402099609375, 0.019866943359375, 0.035736083984375, -0.0109710693359375, 0.0284576416015625, 0.0103607177734375, 0.042205810546875, 0.0240936279296875, -0.0085601806640625, 0.023193359375, -0.0122833251953125, 0.005756378173828125, -0.01519012451171875, 0.064697265625, 0.0133514404296875, -0.085693359375, 0.005992889404296875, 0.038421630859375, -0.0100250244140625, -0.05828857421875, -0.01132965087890625, 0.0153350830078125, -0.01158905029296875, -0.061920166015625, 0.037689208984375, -0.019744873046875, 0.0345458984375, 0.00231170654296875, 0.035308837890625, -0.024078369140625, 0.0697021484375, -0.036956787109375, 0.038177490234375, 0.048797607421875, -0.049774169921875, -0.034942626953125, -0.0309906005859375, 0.00885772705078125, 0.04010009765625, -0.035247802734375, 0.0282135009765625, -0.023101806640625, -0.03387451171875, 0.0028438568115234375, -0.01265716552734375, 0.055999755859375, 0.01277923583984375, -0.04974365234375, 0.0027103424072265625, -0.0273590087890625, 0.0157623291015625, -0.007648468017578125, 0.0222320556640625, -0.01096343994140625, 0.03741455078125, -0.00206756591796875, 0.0189208984375, -0.026763916015625, -0.0162811279296875, -0.044952392578125, 0.09442138671875, 0.013214111328125, -0.002132415771484375, -0.0031414031982421875, 0.05487060546875, -0.026641845703125, 0.04302978515625, -0.03826904296875, 0.05401611328125, -0.0273895263671875, 0.0191192626953125, -0.0247344970703125, 0.01043701171875, 0.006591796875, 0.010589599609375, 0.037261962890625, -0.0019025802612304688, 0.0223236083984375, -0.032562255859375, 0.0301055908203125, 0.044891357421875, 0.002727508544921875, -0.006618499755859375, 0.0079498291015625, 0.049102783203125, 0.046478271484375, -0.01393890380859375, 0.0369873046875, 0.0019350051879882812, -0.024688720703125, 0.0400390625, 0.003841400146484375, -0.0113983154296875, 0.0088348388671875, -0.0181121826171875, -0.03582763671875, 0.00130462646484375, 0.025390625, -0.00641632080078125, -0.0189208984375, 0.09173583984375, 0.06732177734375, -0.0626220703125, -0.026611328125, -0.049591064453125, 0.059539794921875, 0.0182952880859375, 0.0509033203125, 0.047515869140625, 0.020721435546875, 0.056121826171875, -0.01641845703125, 0.039764404296875, 0.0067138671875, -0.0296783447265625, -0.02593994140625, -0.0060577392578125, 0.01146697998046875, -0.042144775390625, -0.0162200927734375, 0.06500244140625, 0.0063018798828125, -0.00939178466796875, 0.0161285400390625, 0.0162506103515625, 0.00698089599609375, -0.04498291015625, -0.0364990234375, -0.051788330078125, 0.0738525390625, 0.0625, -0.017486572265625, 0.0111236572265625, 0.054931640625, 0.04522705078125, 0.0237579345703125, 0.038116455078125, -0.0877685546875, -0.019439697265625, 0.005435943603515625, -0.011077880859375, -0.0007944107055664062, 0.031829833984375, 0.0118560791015625, 0.0202484130859375, -0.052032470703125, -0.005229949951171875, 0.03662109375, 0.0006327629089355469, 0.014923095703125, -0.048858642578125, 0.00887298583984375, -0.0240325927734375, -0.00411224365234375, 0.0005922317504882812, 0.01207733154296875, -0.00887298583984375, 0.042205810546875, 0.046661376953125, -0.0279693603515625, -0.034912109375, 0.0093231201171875, -0.009490966796875, 0.029876708984375, -0.01593017578125, 0.02008056640625, -0.0025691986083984375, -0.016693115234375, -0.009063720703125, 0.038360595703125, 0.0169677734375, -0.0021038055419921875, -0.004917144775390625, 0.0219573974609375, -0.00736236572265625, 0.00676727294921875, 0.006053924560546875, -0.03448486328125, 0.02142333984375, -0.100341796875, -0.01104736328125, 0.01525115966796875, -0.052032470703125, 0.01338958740234375, 0.0443115234375, -0.031341552734375, 0.0109100341796875, -0.01082611083984375, -0.0233612060546875, 0.003635406494140625, 0.0129547119140625, -0.0017547607421875, 0.00998687744140625, 0.0026111602783203125, -0.013946533203125, -0.08447265625, -0.0462646484375, -0.045013427734375, 0.0517578125, 0.02239990234375, 0.01251983642578125, 0.0125579833984375, 0.04913330078125, -0.02459716796875, 0.0007624626159667969, 0.00348663330078125, -0.01204681396484375, 0.01861572265625, 0.050537109375, 0.028076171875, -0.03900146484375, -0.06658935546875, 0.02044677734375, 0.0187530517578125, 0.01204681396484375, 0.0628662109375, -0.057159423828125, 0.005252838134765625, -0.053192138671875, 0.037139892578125, -0.0017175674438476562, 0.0222625732421875, -0.0174560546875, -0.038665771484375, 0.06866455078125, 0.0259552001953125, 0.0035305023193359375, 0.0175323486328125, -0.01253509521484375, -0.037689208984375, 0.0294647216796875, -0.037109375, 0.0281524658203125, 0.0361328125, -0.0267791748046875, -0.03564453125, 0.0130767822265625, -0.01166534423828125, -0.0166015625, 0.0262298583984375, 0.00487518310546875, 0.0246124267578125, -0.054412841796875, -0.046173095703125, -0.03692626953125, 0.00424957275390625, -0.0290985107421875, -0.0022754669189453125, -0.0548095703125, 0.007965087890625, -0.01165771484375, 0.01532745361328125, -0.01812744140625, -0.045989990234375, -0.02081298828125, -0.0043487548828125, -0.04156494140625, -0.048919677734375, -0.012481689453125, -0.018890380859375, -0.007171630859375, 0.004489898681640625, 0.0005016326904296875, 0.0225677490234375, -0.00525665283203125, -0.046905517578125, 0.00711822509765625, -0.016693115234375, 0.0010499954223632812, 0.04534912109375, -0.0323486328125, -0.0160675048828125, -0.049591064453125, 0.006000518798828125, -0.052001953125, 0.0230560302734375, 0.056884765625, -0.051422119140625, -0.007434844970703125, 0.0232086181640625, 0.040374755859375, 0.050140380859375, 0.030426025390625, 0.01226806640625, 0.02886962890625, 0.0224761962890625, -0.043243408203125, -0.10968017578125, 0.001956939697265625, -0.041656494140625, -0.00780487060546875, -0.003376007080078125, -0.018585205078125, -0.01003265380859375, -0.035552978515625, -0.06390380859375, 0.036590576171875, 0.0007171630859375, -0.032623291015625, -0.0364990234375, -0.015472412109375, -0.0037479400634765625, 0.0243377685546875, 0.005260467529296875, -0.021820068359375, -0.04229736328125, 0.01480865478515625, 0.01422119140625, 0.030303955078125, 0.0206298828125, 0.007167816162109375, 0.00640106201171875, 0.045196533203125, 0.042083740234375, -0.004302978515625, 0.01045989990234375, -0.0214996337890625, 0.031280517578125, 0.0435791015625, -0.0283050537109375, 0.0026645660400390625, -0.006481170654296875, -0.0218963623046875, -0.0153656005859375, -0.0285491943359375, -0.009796142578125, -0.0254669189453125, 0.0294036865234375, 0.05255126953125, 0.003963470458984375, -0.03509521484375, 0.04443359375, -0.0192413330078125, -0.042999267578125, -0.0007901191711425781, 0.005977630615234375, -0.03704833984375, -0.01267242431640625, 0.025848388671875, -0.0238189697265625, -0.0159759521484375, -0.03753662109375, -0.053924560546875, -0.007244110107421875, -0.040069580078125, 0.0220947265625, -0.0577392578125, 0.00930023193359375, 0.030517578125, -0.042755126953125, -0.035064697265625, 0.00205230712890625, 0.00576019287109375, -0.01995849609375, -0.0296630859375, -0.01428985595703125, -0.037353515625, -0.0127716064453125, 0.021148681640625, -0.013092041015625, 0.06494140625, -0.0176849365234375, -0.01482391357421875, -0.0074920654296875, 0.0176544189453125, 0.025115966796875, 0.0377197265625, -0.020416259765625, 0.0092620849609375, 0.0113525390625, -0.0232391357421875, -0.0290069580078125, 0.0164794921875, -0.00815582275390625, 0.00983428955078125, -0.02618408203125, 0.0192413330078125, 0.0073089599609375, -0.0137481689453125, 0.0204620361328125, 0.00792694091796875, 0.0203857421875, -0.0002560615539550781, 0.0059661865234375, -0.0149078369140625, 0.009796142578125, 0.00437164306640625 ]
7f96cd62b260e3a0cca22c1bf5d341b73164bc66
Wordpress Stackexchange Q: Get current category details the user is currently on in category.php I want to get the current category details that the user is on in category.php. $category = get_the_category(); $slug = $category[0]->slug; // Why is this an array ? In most cases (where there are no sub-categories) it returns and array of single length. But if there are sub-categories it (parent category and ) returns an array of 2 or more. http://domain.com/category/cat-name/ -> get_the_category() returns an array of 2 http://domain.com/category/cat-name/sub-cat-name/ -> get_the_category() returns an array of 2 A: You are using the wrong function. Try: $thiscat = $wp_query->get_queried_object(); var_dump($thiscat); I don't know exactly what you want to do with this information but you will get an object (stdClass) with ~15 items in it. You should be able to find what you need.
Q: Get current category details the user is currently on in category.php I want to get the current category details that the user is on in category.php. $category = get_the_category(); $slug = $category[0]->slug; // Why is this an array ? In most cases (where there are no sub-categories) it returns and array of single length. But if there are sub-categories it (parent category and ) returns an array of 2 or more. http://domain.com/category/cat-name/ -> get_the_category() returns an array of 2 http://domain.com/category/cat-name/sub-cat-name/ -> get_the_category() returns an array of 2 A: You are using the wrong function. Try: $thiscat = $wp_query->get_queried_object(); var_dump($thiscat); I don't know exactly what you want to do with this information but you will get an object (stdClass) with ~15 items in it. You should be able to find what you need. A: I've also got it from the following : $cur_cat_id = get_cat_id(single_cat_title("",false)); $category = get_category($cur_cat_id); But I guess s-ha-dum's solutions is better. A: I normally use the following to retrieve the category ID of the current category archive: $cat_id = get_query_var('cat') to get the details, you can use: $cat = get_category( $cat_id ) http://codex.wordpress.org/Function_Reference/get_category
wordpress
{ "language": "en", "length": 187, "provenance": "stackexchange_00019.jsonl.gz:426683", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75734" }
[ 0.04925537109375, -0.003658294677734375, -0.057647705078125, -0.0684814453125, 0.0252838134765625, -0.05511474609375, 0.0220184326171875, 0.04058837890625, -0.036041259765625, 0.0308685302734375, -0.0025997161865234375, -0.01148223876953125, 0.01114654541015625, -0.035064697265625, 0.01165771484375, -0.0275115966796875, 0.035552978515625, -0.0290374755859375, 0.0175628662109375, -0.0005269050598144531, -0.0170745849609375, 0.037994384765625, 0.032196044921875, 0.0531005859375, 0.00302886962890625, -0.059356689453125, 0.060546875, -0.0191802978515625, 0.002300262451171875, -0.0543212890625, -0.0004582405090332031, 0.04840087890625, 0.0030651092529296875, 0.0087127685546875, 0.0162200927734375, 0.0200958251953125, 0.035400390625, -0.002765655517578125, 0.04168701171875, 0.0253143310546875, 0.032806396484375, -0.0164031982421875, 0.00799560546875, 0.016845703125, -0.006244659423828125, -0.038421630859375, 0.0302581787109375, -0.0265655517578125, 0.005687713623046875, -0.020904541015625, 0.047943115234375, 0.01389312744140625, 0.058441162109375, -0.0350341796875, -0.007289886474609375, 0.0275726318359375, -0.0266571044921875, 0.0245819091796875, 0.05426025390625, -0.0257720947265625, -0.047332763671875, -0.0430908203125, 0.04766845703125, -0.0220184326171875, -0.01003265380859375, -0.0015506744384765625, 0.033721923828125, 0.0181732177734375, -0.01389312744140625, -0.01371002197265625, 0.01580810546875, -0.002414703369140625, 0.01216888427734375, 0.00968170166015625, -0.042083740234375, -0.038482666015625, 0.0215911865234375, -0.01189422607421875, 0.0015916824340820312, 0.007472991943359375, -0.02630615234375, -0.00670623779296875, -0.070068359375, 0.02667236328125, -0.01055145263671875, 0.0372314453125, -0.0201416015625, -0.0296630859375, -0.0160980224609375, -0.032806396484375, -0.0236663818359375, -0.0283050537109375, -0.02484130859375, 0.026336669921875, -0.0183258056640625, -0.0269012451171875, 0.053070068359375, 0.059539794921875, -0.0159912109375, -0.0312042236328125, -0.006519317626953125, -0.0264739990234375, -0.05340576171875, -0.01137542724609375, 0.00705718994140625, 0.003711700439453125, -0.017364501953125, 0.0022602081298828125, 0.050079345703125, 0.03704833984375, 0.005252838134765625, 0.035247802734375, 0.00441741943359375, -0.0167388916015625, -0.0196533203125, 0.04241943359375, -0.01491546630859375, 0.005756378173828125, 0.00006324052810668945, 0.0134429931640625, 0.00688934326171875, 0.047607421875, 0.0235137939453125, -0.02215576171875, -0.00742340087890625, 0.0118255615234375, -0.01074981689453125, -0.057037353515625, 0.024688720703125, -0.0157012939453125, -0.040435791015625, 0.025054931640625, 0.053955078125, 0.0178375244140625, 0.007381439208984375, -0.0035076141357421875, 0.006221771240234375, -0.0251922607421875, 0.007843017578125, -0.01220703125, -0.0127410888671875, 0.011199951171875, 0.0207977294921875, -0.042694091796875, 0.004924774169921875, -0.02447509765625, -0.00485992431640625, 0.028289794921875, 0.0248870849609375, 0.00997161865234375, 0.02862548828125, -0.0518798828125, 0.0162200927734375, 0.026031494140625, -0.00417327880859375, 0.0262451171875, 0.0211029052734375, -0.00261688232421875, -0.0301513671875, -0.018646240234375, 0.049591064453125, 0.00191497802734375, 0.0131683349609375, -0.01537322998046875, -0.037384033203125, -0.00276947021484375, -0.07098388671875, -0.0093536376953125, 0.01995849609375, 0.0086822509765625, 0.004650115966796875, -0.00482177734375, 0.041748046875, 0.006824493408203125, -0.0080413818359375, 0.0008206367492675781, -0.029754638671875, 0.00435638427734375, 0.036285400390625, 0.0238800048828125, -0.0182647705078125, -0.049224853515625, -0.0183563232421875, 0.00682830810546875, -0.0173492431640625, 0.03887939453125, -0.0099334716796875, 0.023284912109375, 0.005626678466796875, 0.01097869873046875, -0.027801513671875, 0.050628662109375, -0.055908203125, 0.0194091796875, -0.0121612548828125, 0.01361846923828125, -0.0103912353515625, 0.023162841796875, -0.0131683349609375, -0.0248565673828125, 0.01045989990234375, -0.00927734375, -0.0084228515625, -0.00966644287109375, -0.06866455078125, -0.01080322265625, -0.008880615234375, 0.0440673828125, 0.005619049072265625, 0.005527496337890625, 0.00579071044921875, -0.01531219482421875, -0.00835418701171875, -0.01393890380859375, -0.0263824462890625, 0.0186767578125, -0.0258026123046875, 0.0024433135986328125, -0.01088714599609375, 0.0192718505859375, -0.02276611328125, 0.011199951171875, -0.02801513671875, 0.00165557861328125, 0.041290283203125, 0.014862060546875, -0.010498046875, -0.016143798828125, 0.0157470703125, 0.052459716796875, -0.090576171875, -0.03411865234375, 0.0226593017578125, 0.0079803466796875, -0.03900146484375, 0.01470947265625, 0.0516357421875, 0.01354217529296875, -0.005096435546875, 0.0255279541015625, 0.03289794921875, -0.00921630859375, -0.0161285400390625, -0.0108489990234375, 0.047607421875, -0.055206298828125, -0.01428985595703125, -0.00365447998046875, 0.004070281982421875, 0.0208740234375, 0.041015625, 0.021728515625, 0.006694793701171875, 0.043548583984375, 0.0162811279296875, 0.03485107421875, 0.0194549560546875, 0.00014221668243408203, -0.01194000244140625, 0.02752685546875, 0.0007081031799316406, 0.0018358230590820312, -0.0215911865234375, -0.00409698486328125, 0.0161895751953125, 0.0173492431640625, 0.0294342041015625, 0.017303466796875, -0.01355743408203125, 0.0028858184814453125, -0.005340576171875, -0.004245758056640625, -0.00600433349609375, 0.0233001708984375, -0.0271759033203125, 0.0206146240234375, -0.0309295654296875, 0.006988525390625, 0.00554656982421875, 0.00021147727966308594, -0.01427459716796875, 0.03778076171875, 0.023651123046875, -0.01445770263671875, -0.047821044921875, -0.0810546875, 0.0205535888671875, 0.0032711029052734375, -0.00199127197265625, 0.0289154052734375, 0.051971435546875, 0.0310821533203125, -0.01432037353515625, 0.024078369140625, -0.046295166015625, 0.0228729248046875, 0.051025390625, -0.0114593505859375, 0.01326751708984375, 0.017425537109375, 0.055908203125, 0.054473876953125, 0.005855560302734375, -0.00310516357421875, 0.0100250244140625, -0.064453125, -0.005138397216796875, 0.00838470458984375, -0.0122833251953125, -0.005970001220703125, -0.0506591796875, 0.049896240234375, 0.00946807861328125, 0.027923583984375, -0.01207733154296875, -0.050537109375, -0.0102386474609375, -0.0025768280029296875, -0.07684326171875, -0.049591064453125, 0.0019407272338867188, -0.05401611328125, 0.01544952392578125, -0.0034809112548828125, -0.0208587646484375, -0.0215606689453125, 0.0321044921875, 0.0126800537109375, 0.0147247314453125, -0.0450439453125, -0.039031982421875, -0.03948974609375, -0.062164306640625, -0.0002796649932861328, -0.00508880615234375, -0.009613037109375, -0.005046844482421875, 0.056610107421875, 0.00617218017578125, -0.03271484375, -0.01403045654296875, 0.034423828125, -0.013458251953125, -0.0151214599609375, -0.00798797607421875, 0.0113372802734375, 0.0180816650390625, 0.015716552734375, -0.001697540283203125, 0.01560211181640625, -0.0097198486328125, -0.01508331298828125, -0.00627899169921875, 0.0210723876953125, 0.027801513671875, 0.0122528076171875, -0.0101318359375, 0.03387451171875, 0.027099609375, -0.01885986328125, -0.023834228515625, -0.0177764892578125, -0.04443359375, -0.0001666545867919922, 0.020050048828125, -0.004863739013671875, -0.00807952880859375, -0.002208709716796875, -0.0223846435546875, 0.00025463104248046875, -0.0265960693359375, -0.044647216796875, 0.0577392578125, 0.0008907318115234375, -0.002452850341796875, 0.0312042236328125, -0.01273345947265625, -0.032135009765625, 0.0290679931640625, -0.0291595458984375, 0.000014662742614746094, -0.02008056640625, 0.01230621337890625, -0.0172271728515625, -0.06585693359375, 0.0526123046875, -0.0205535888671875, -0.00968170166015625, -0.039306640625, -0.020416259765625, 0.01412200927734375, 0.10614013671875, -0.005077362060546875, -0.0161895751953125, -0.0025272369384765625, 0.002368927001953125, -0.044281005859375, 0.0091552734375, -0.052642822265625, 0.005939483642578125, -0.062225341796875, -0.0168914794921875, -0.01401519775390625, -0.035552978515625, -0.009765625, 0.02386474609375, -0.049346923828125, -0.01959228515625, 0.04168701171875, -0.07806396484375, 0.0035152435302734375, -0.01285552978515625, 0.01245880126953125, -0.0650634765625, -0.015777587890625, -0.033843994140625, -0.00930023193359375, -0.00415802001953125, 0.0352783203125, -0.004909515380859375, -0.0021266937255859375, -0.004909515380859375, 0.0212860107421875, 0.0496826171875, 0.00830841064453125, 0.037109375, 0.001708984375, 0.0131378173828125, 0.0218963623046875, -0.009521484375, 0.006137847900390625, -0.0214385986328125, -0.01062774658203125, -0.05291748046875, -0.005985260009765625, -0.015869140625, -0.063720703125, -0.003299713134765625, -0.05767822265625, 0.005710601806640625, -0.04248046875, -0.036376953125, -0.0026302337646484375, 0.01494598388671875, -0.0159149169921875, 0.035797119140625, -0.01177978515625, -0.05023193359375, 0.053314208984375, 0.008453369140625, -0.0306854248046875, 0.0030689239501953125, 0.060028076171875, 0.0037059783935546875, -0.0222015380859375, -0.043182373046875, 0.00809478759765625, 0.049041748046875, -0.016815185546875, 0.030487060546875, 0.021575927734375, -0.049835205078125, 0.07080078125, 0.033538818359375, 0.016021728515625, -0.01505279541015625, 0.040130615234375, -0.0036106109619140625, -0.01296234130859375, 0.01012420654296875, -0.0078582763671875, 0.0004925727844238281, -0.0150299072265625, -0.042877197265625, 0.00626373291015625, -0.027923583984375, 0.0229034423828125, -0.0038738250732421875, 0.0355224609375, -0.02764892578125, -0.04510498046875, 0.00493621826171875, 0.00977325439453125, 0.050933837890625, 0.04681396484375, -0.01061248779296875, 0.055450439453125, 0.037933349609375, -0.0080413818359375, -0.042205810546875, -0.0293731689453125, -0.004184722900390625, 0.029998779296875, -0.07550048828125, 0.00028395652770996094, -0.013824462890625, 0.0211181640625, -0.0203857421875, -0.0374755859375, -0.06878662109375, -0.04095458984375, 0.0099029541015625, 0.00962066650390625, 0.060150146484375, -0.037261962890625, 0.01715087890625, 0.01617431640625, -0.0008783340454101562, 0.00814056396484375, -0.07904052734375, 0.01068115234375, -0.022613525390625, 0.011871337890625, -0.008514404296875, -0.00382232666015625, 0.0032978057861328125, 0.07403564453125, -0.00839996337890625, 0.06683349609375, -0.0124359130859375, -0.000579833984375, 0.00487518310546875, 0.019805908203125, 0.02325439453125, -0.0113983154296875, 0.0091094970703125, -0.016693115234375, 0.0237579345703125, -0.04864501953125, 0.018341064453125, 0.005619049072265625, 0.052520751953125, -0.0017633438110351562, -0.0447998046875, 0.045135498046875, -0.024505615234375, -0.007152557373046875, 0.031402587890625, -0.00800323486328125, -0.015594482421875, -0.024627685546875, -0.008941650390625, 0.0218353271484375, 0.0007486343383789062, -0.025665283203125, 0.0026454925537109375, -0.038299560546875, 0.028564453125, 0.02679443359375, 0.0021228790283203125, -0.0009975433349609375, -0.0170135498046875, -0.08087158203125, -0.0311126708984375, 0.022247314453125, -0.01393890380859375, 0.008087158203125, -0.0312347412109375, -0.05694580078125, 0.040618896484375, 0.0211944580078125, 0.042510986328125, -0.0604248046875, -0.0228424072265625, -0.008544921875, -0.033447265625, 0.07366943359375, 0.01439666748046875, -0.04742431640625, 0.0084381103515625, -0.0584716796875, 0.0040740966796875, 0.048004150390625, -0.057281494140625, -0.003997802734375, -0.042266845703125, -0.0099945068359375, 0.0191802978515625, 0.0192413330078125, 0.02423095703125, -0.055419921875, 0.00811004638671875, 0.020477294921875, 0.0233154296875, -0.0173797607421875, 0.036346435546875, 0.0297698974609375, 0.0220794677734375, -0.0003268718719482422, 0.00978851318359375, -0.01079559326171875, -0.0214385986328125, 0.007755279541015625, -0.02728271484375, -0.01416778564453125, 0.001384735107421875, -0.033294677734375, -0.01532745361328125, 0.056182861328125, -0.005817413330078125, -0.0239105224609375, 0.0041961669921875, 0.00782012939453125, -0.00524139404296875, -0.01148223876953125, 0.04339599609375, -0.043670654296875, 0.04400634765625, -0.01177978515625, 0.0080718994140625, 0.0093231201171875, 0.002986907958984375, 0.004245758056640625, -0.006595611572265625, 0.00864410400390625, 0.01224517822265625, -0.0294036865234375, 0.06365966796875, 0.08251953125, -0.005496978759765625, 0.0254364013671875, 0.019866943359375, 0.01360321044921875, -0.00377655029296875, 0.01538848876953125, 0.0256500244140625, 0.0016489028930664062, 0.06304931640625, 0.003063201904296875, -0.0174560546875, 0.031646728515625, -0.0430908203125, -0.0252227783203125, 0.0304107666015625, 0.035919189453125, -0.04443359375, -0.0010557174682617188, 0.01169586181640625, -0.0139007568359375, -0.01544952392578125, 0.029388427734375, -0.0198211669921875, -0.017486572265625, 0.011474609375, -0.05743408203125, -0.02606201171875, 0.0086822509765625, -0.0162200927734375, -0.01165771484375, 0.01047515869140625, 0.0655517578125, 0.0196685791015625, -0.01136016845703125, -0.036407470703125, -0.002285003662109375, 0.005481719970703125, -0.031829833984375, -0.00799560546875, 0.015167236328125, -0.00846099853515625, -0.035858154296875, 0.059356689453125, 0.003200531005859375, 0.0255889892578125, 0.0091552734375, -0.028656005859375, 0.029266357421875, 0.040252685546875, -0.0174560546875, 0.006855010986328125, 0.0161895751953125, -0.07379150390625, 0.02532958984375, 0.0028553009033203125, -0.0144805908203125, 0.053314208984375, -0.03607177734375, -0.0008807182312011719, -0.0140380859375, 0.050567626953125, -0.0182647705078125, -0.03662109375, 0.051422119140625, -0.0304107666015625, -0.0244903564453125, 0.0003542900085449219, 0.041351318359375, 0.020477294921875, -0.0022602081298828125, 0.02581787109375, -0.0097503662109375, 0.00972747802734375, 0.00791168212890625, 0.004505157470703125, 0.01263427734375, 0.00659942626953125, -0.053192138671875, 0.00249481201171875, -0.03668212890625, 0.04693603515625, 0.01751708984375, -0.020660400390625, 0.028106689453125, -0.023712158203125, -0.05853271484375, 0.06317138671875, 0.0328369140625, 0.05706787109375, -0.08416748046875, -0.0340576171875, -0.00018930435180664062, 0.056304931640625, 0.072265625, 0.0236663818359375, 0.0021762847900390625, -0.01517486572265625, 0.01406097412109375, -0.006717681884765625, -0.046112060546875, 0.040008544921875, 0.0164031982421875, -0.00891876220703125, 0.048431396484375, -0.004779815673828125, 0.0272674560546875, 0.018218994140625, -0.00811767578125, 0.0268707275390625, 0.01366424560546875, 0.02362060546875, -0.02032470703125, 0.044921875, -0.0384521484375, -0.010284423828125, 0.035247802734375, -0.037200927734375, -0.0036373138427734375, 0.08184814453125, 0.054931640625, -0.0404052734375, 0.0158233642578125, -0.050750732421875, 0.065185546875, 0.007328033447265625, 0.01361846923828125, 0.028472900390625, 0.0171051025390625, 0.0626220703125, -0.0161895751953125, 0.01226806640625, 0.008056640625, -0.01904296875, 0.074462890625, 0.032623291015625, 0.0295867919921875, -0.0296630859375, 0.01425933837890625, 0.0452880859375, 0.09124755859375, -0.061798095703125, -0.0662841796875, 0.0237884521484375, 0.00911712646484375, 0.0136566162109375, 0.07122802734375, 0.060943603515625, 0.032257080078125, 0.07183837890625, -0.063720703125, -0.01885986328125, 0.025177001953125, 0.044403076171875, 0.006381988525390625, 0.01073455810546875, -0.0265655517578125, -0.056304931640625, -0.050201416015625, -0.0012197494506835938, 0.005584716796875, 0.05731201171875, 0.02838134765625, 0.056854248046875, -0.028472900390625, -0.035858154296875, 0.01605224609375, 0.017333984375, -0.01401519775390625, -0.0224456787109375, 0.021026611328125, -0.00960540771484375, -0.017120361328125, 0.007610321044921875, 0.0231781005859375, -0.04437255859375, 0.01129913330078125, 0.03125, -0.0157470703125, -0.021087646484375, 0.034820556640625, 0.007965087890625, -0.002796173095703125, -0.0295867919921875, 0.02667236328125, 0.0181121826171875, 0.01435089111328125, -0.005748748779296875, 0.001728057861328125, 0.07733154296875, -0.01235198974609375, 0.039947509765625, -0.0013628005981445312, 0.00994873046875, 0.029937744140625, -0.0216522216796875, 0.016082763671875, 0.00997161865234375, -0.07464599609375, -0.002758026123046875, -0.08056640625, 0.002201080322265625, 0.038238525390625, 0.0308074951171875, -0.0159149169921875, 0.0323486328125, 0.0048828125, -0.037567138671875, 0.02545166015625, 0.01282501220703125, 0.0097503662109375, 0.01132965087890625, 0.003936767578125, -0.0036678314208984375, -0.02911376953125, -0.006381988525390625, 0.0289764404296875, -0.00640106201171875, 0.01320648193359375, 0.0195770263671875, 0.0211639404296875, -0.01258087158203125, -0.02825927734375, 0.04864501953125, -0.08819580078125, -0.0662841796875, 0.0709228515625, -0.046112060546875, -0.0168304443359375, 0.011322021484375, -0.01116180419921875, 0.0026569366455078125, 0.0751953125, -0.0260772705078125, -0.003505706787109375, 0.0044097900390625, 0.015899658203125, -0.03460693359375, 0.044921875, -0.024688720703125, -0.02001953125, -0.0214385986328125, -0.031890869140625, 0.0162200927734375, 0.0391845703125, 0.032196044921875, 0.007556915283203125, -0.00806427001953125, -0.01280975341796875, -0.0183868408203125, 0.04339599609375, -0.032073974609375, 0.0298004150390625, -0.022705078125, 0.01544189453125, 0.006343841552734375, -0.00563812255859375, 0.0168304443359375, 0.017578125, 0.0037078857421875, 0.02056884765625, 0.035064697265625, 0.02227783203125, -0.007404327392578125, 0.02484130859375, -0.03460693359375, 0.0092926025390625, -0.00036263465881347656, 0.005176544189453125, 0.0290679931640625, -0.06597900390625, -0.044891357421875, -0.04864501953125, 0.003139495849609375, 0.042327880859375, -0.03350830078125, -0.0079498291015625, -0.06146240234375, -0.0251007080078125, 0.03271484375, -0.0003516674041748047, -0.0086822509765625, -0.006549835205078125, -0.0114288330078125, 0.0276947021484375, -0.01397705078125, -0.03631591796875, 0.0242767333984375, 0.0228271484375, -0.0675048828125, 0.03631591796875, -0.018157958984375, -0.06939697265625, 0.006587982177734375, 0.0192413330078125, 0.03546142578125, -0.01306915283203125, -0.068115234375, 0.045257568359375, 0.004207611083984375, 0.077880859375, -0.021331787109375, -0.0204925537109375, -0.0025997161865234375, 0.03192138671875, -0.034454345703125, 0.0024871826171875, 0.0228271484375, 0.036163330078125, -0.013153076171875, -0.005786895751953125, -0.01363372802734375, 0.01103973388671875, -0.04595947265625, -0.0518798828125, 0.0626220703125, -0.007701873779296875, -0.048583984375, -0.01172637939453125, 0.0162506103515625, 0.0172882080078125, -0.056304931640625, -0.0198974609375, -0.00328826904296875, -0.0211944580078125, 0.00908660888671875, 0.0362548828125, 0.027679443359375, 0.0015077590942382812, 0.02252197265625, -0.09295654296875, 0.030517578125, -0.0098419189453125, 0.04718017578125, -0.0259552001953125, 0.0175018310546875, 0.0001544952392578125, 0.02545166015625, -0.0321044921875, 0.0098724365234375, 0.01084136962890625, 0.041900634765625, -0.001125335693359375, -0.041900634765625, -0.036529541015625, -0.0188446044921875, 0.039337158203125, 0.0196075439453125, 0.0128936767578125, -0.013092041015625, -0.061492919921875, -0.0308074951171875, -0.01123809814453125, -0.00634765625, 0.033233642578125, -0.08624267578125, 0.0182647705078125, 0.037841796875, -0.00917816162109375, -0.0211029052734375, -0.007480621337890625, -0.05035400390625, -0.00627899169921875, -0.013397216796875, 0.009063720703125, -0.029937744140625, -0.00311279296875, -0.029327392578125, -0.0159912109375, -0.048492431640625, -0.006732940673828125, 0.00713348388671875, -0.06451416015625, -0.0196990966796875, -0.0251922607421875, 0.034912109375, -0.00751495361328125, -0.004123687744140625, 0.01549530029296875, 0.016265869140625, 0.02252197265625, 0.03021240234375, 0.0045318603515625, 0.0169219970703125, -0.0027790069580078125, 0.0178680419921875, -0.0142059326171875, 0.04302978515625, 0.0183258056640625, 0.035858154296875, 0.02069091796875, -0.01934814453125, -0.0234527587890625, 0.07958984375, 0.0216217041015625, -0.0587158203125, 0.036224365234375, -0.05694580078125, -0.0127716064453125, -0.01043701171875, -0.0216522216796875, -0.027801513671875, -0.004344940185546875, -0.0021266937255859375, -0.00885772705078125, 0.0177154541015625 ]
1ab34417552ae57825ce23b38f5c816d9f1bbebe
Wordpress Stackexchange Q: WordPress Multisite: Automatically run importer upon creating new site Is it possible to automatically run the WP Importer when creating a new site in WordPress Multisite? I think this would need to be a function that runs when wpmu_new_blog is called but can't find anything that's helped. A: Since this is for a multisite (the same and NOT a different wordpress installation), would any of these plugins give a solution to your question? New Blog Defaults It is a mu-plugin and has been around for some time (I have tried it myself and works just fine). Under "Bonus Settings" you are provided with options to customize the first post, the sample page, the first comments, the links, etc. All the settings filled under the plugin's options will be applied to all new blogs/sites created after the plugin is installed. Default Blog This one uses a different approach. You have to create a "default", "sample" blog/site first. Please have a look at the screenshots. It looks pretty easy to follow. Never tried it though.
Q: WordPress Multisite: Automatically run importer upon creating new site Is it possible to automatically run the WP Importer when creating a new site in WordPress Multisite? I think this would need to be a function that runs when wpmu_new_blog is called but can't find anything that's helped. A: Since this is for a multisite (the same and NOT a different wordpress installation), would any of these plugins give a solution to your question? New Blog Defaults It is a mu-plugin and has been around for some time (I have tried it myself and works just fine). Under "Bonus Settings" you are provided with options to customize the first post, the sample page, the first comments, the links, etc. All the settings filled under the plugin's options will be applied to all new blogs/sites created after the plugin is installed. Default Blog This one uses a different approach. You have to create a "default", "sample" blog/site first. Please have a look at the screenshots. It looks pretty easy to follow. Never tried it though.
wordpress
{ "language": "en", "length": 174, "provenance": "stackexchange_00019.jsonl.gz:426693", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75764" }
[ 0.02008056640625, -0.0145111083984375, 0.03045654296875, 0.0157928466796875, -0.0272979736328125, -0.01580810546875, 0.01983642578125, -0.06817626953125, -0.0294342041015625, -0.02288818359375, -0.05194091796875, 0.0419921875, -0.057403564453125, -0.0280303955078125, 0.04656982421875, -0.056610107421875, 0.0248260498046875, -0.022125244140625, 0.00614166259765625, -0.01461029052734375, -0.01399993896484375, 0.01146697998046875, 0.0281982421875, 0.031402587890625, 0.0049896240234375, 0.003955841064453125, 0.0268402099609375, 0.026092529296875, 0.0042724609375, -0.01049041748046875, 0.032257080078125, -0.007122039794921875, 0.0018291473388671875, 0.0074462890625, 0.0073089599609375, 0.01525115966796875, 0.0216522216796875, 0.0034027099609375, 0.0063323974609375, 0.047515869140625, 0.0134124755859375, -0.00614166259765625, 0.00921630859375, 0.0250091552734375, -0.0036907196044921875, -0.0496826171875, 0.0185394287109375, -0.046478271484375, 0.046600341796875, -0.0372314453125, -0.0186920166015625, -0.0143280029296875, -0.0031147003173828125, -0.052886962890625, -0.042236328125, -0.043426513671875, -0.0362548828125, 0.034515380859375, 0.01220703125, 0.00177001953125, -0.004718780517578125, 0.022613525390625, 0.006740570068359375, -0.0007448196411132812, -0.016357421875, -0.0038356781005859375, -0.03582763671875, 0.0088653564453125, -0.0211334228515625, 0.001422882080078125, 0.035308837890625, -0.0263519287109375, 0.0189361572265625, 0.023345947265625, -0.018402099609375, -0.0411376953125, 0.0343017578125, 0.0068206787109375, 0.029876708984375, 0.001873016357421875, 0.0289459228515625, -0.017791748046875, -0.0013704299926757812, -0.065185546875, 0.055908203125, -0.0188446044921875, 0.01293182373046875, 0.0027942657470703125, -0.00763702392578125, -0.0111083984375, -0.016632080078125, 0.0215911865234375, -0.053192138671875, 0.025238037109375, -0.01209259033203125, -0.01049041748046875, -0.0061187744140625, 0.061614990234375, -0.00742340087890625, 0.022674560546875, -0.036895751953125, -0.0210418701171875, 0.01244354248046875, -0.043304443359375, 0.008544921875, 0.0531005859375, 0.00498199462890625, -0.054046630859375, 0.0006442070007324219, 0.0003275871276855469, -0.00801849365234375, 0.00836181640625, 0.015045166015625, -0.001659393310546875, -0.02630615234375, -0.025543212890625, -0.0225677490234375, 0.00688934326171875, -0.007236480712890625, -0.02972412109375, -0.02734375, 0.01424407958984375, -0.04730224609375, -0.0109405517578125, -0.00304412841796875, -0.0189971923828125, 0.018280029296875, -0.01407623291015625, -0.05609130859375, 0.00662994384765625, -0.04107666015625, 0.0124664306640625, 0.0648193359375, 0.0545654296875, 0.020416259765625, -0.01910400390625, 0.05560302734375, 0.07061767578125, 0.03094482421875, -0.005420684814453125, 0.01200103759765625, -0.050262451171875, -0.0716552734375, 0.01480865478515625, 0.0103759765625, 0.0246734619140625, 0.024993896484375, 0.01305389404296875, -0.010650634765625, -0.0105438232421875, -0.0107269287109375, 0.006374359130859375, 0.0198516845703125, -0.0205841064453125, 0.042724609375, -0.08697509765625, 0.031829833984375, -0.048248291015625, 0.040618896484375, -0.027496337890625, -0.018829345703125, -0.004268646240234375, 0.01001739501953125, -0.01311492919921875, -0.042724609375, 0.02081298828125, -0.0048675537109375, -0.006259918212890625, 0.02960205078125, -0.032989501953125, -0.038726806640625, -0.0167388916015625, 0.057464599609375, 0.02032470703125, 0.0075225830078125, 0.057281494140625, -0.006259918212890625, 0.0031414031982421875, 0.0198516845703125, 0.0124053955078125, -0.0111083984375, -0.0261993408203125, 0.050689697265625, -0.01494598388671875, -0.04931640625, 0.007488250732421875, 0.004726409912109375, 0.060333251953125, 0.048370361328125, 0.024627685546875, 0.00966644287109375, -0.0390625, -0.04461669921875, -0.0142822265625, 0.029052734375, 0.0108795166015625, -0.02752685546875, -0.001857757568359375, 0.015594482421875, -0.036590576171875, -0.031341552734375, -0.016754150390625, 0.0240631103515625, 0.01177978515625, 0.0050506591796875, -0.01153564453125, -0.00493621826171875, 0.01314544677734375, 0.032745361328125, -0.0266571044921875, -0.0015401840209960938, -0.02081298828125, 0.02880859375, -0.06396484375, -0.0828857421875, 0.0011262893676757812, -0.0362548828125, 0.040496826171875, -0.012420654296875, 0.022064208984375, -0.0273895263671875, -0.0310821533203125, -0.015228271484375, -0.015899658203125, 0.01331329345703125, -0.019317626953125, -0.031494140625, -0.034149169921875, -0.0110015869140625, 0.005706787109375, -0.00997161865234375, 0.05517578125, -0.00616455078125, 0.0108489990234375, -0.020172119140625, 0.0113677978515625, -0.0075836181640625, -0.0189971923828125, 0.01153564453125, 0.0290679931640625, 0.00966644287109375, 0.0183258056640625, -0.0091400146484375, 0.02520751953125, 0.058563232421875, 0.0191802978515625, 0.021087646484375, 0.0175628662109375, 0.01910400390625, 0.07421875, -0.059844970703125, 0.0008869171142578125, 0.0146026611328125, -0.05450439453125, -0.0222930908203125, 0.060760498046875, -0.01117706298828125, -0.041107177734375, 0.017852783203125, -0.0238189697265625, 0.0236663818359375, -0.045501708984375, -0.04962158203125, 0.001842498779296875, 0.017242431640625, 0.0178375244140625, 0.04296875, 0.0292205810546875, -0.01351165771484375, 0.0205841064453125, -0.01079559326171875, -0.044342041015625, -0.002105712890625, 0.0185546875, 0.0171966552734375, 0.006641387939453125, -0.0189666748046875, -0.0207366943359375, -0.0034275054931640625, 0.005306243896484375, -0.02850341796875, 0.03277587890625, -0.0467529296875, -0.0262908935546875, -0.0162811279296875, -0.046295166015625, -0.0041961669921875, -0.01041412353515625, -0.038818359375, -0.046844482421875, 0.006534576416015625, -0.01197052001953125, -0.052734375, 0.019989013671875, 0.01788330078125, -0.0462646484375, 0.032745361328125, -0.07366943359375, 0.0526123046875, -0.043609619140625, 0.0472412109375, 0.07470703125, -0.0102691650390625, 0.0241241455078125, -0.01021575927734375, 0.007022857666015625, -0.0011682510375976562, 0.00145721435546875, -0.0178375244140625, -0.0024585723876953125, -0.08551025390625, 0.0014209747314453125, 0.014923095703125, 0.0321044921875, -0.019378662109375, -0.0249176025390625, -0.02239990234375, -0.020751953125, -0.04925537109375, -0.051605224609375, -0.077392578125, -0.06591796875, 0.0059661865234375, -0.02264404296875, -0.01357269287109375, 0.01222991943359375, -0.00970458984375, 0.0245513916015625, -0.0231781005859375, -0.047576904296875, -0.038177490234375, -0.09466552734375, -0.07342529296875, -0.04156494140625, 0.0161895751953125, 0.01317596435546875, 0.01305389404296875, 0.008148193359375, -0.004039764404296875, -0.0396728515625, -0.0083465576171875, 0.00553131103515625, -0.0205841064453125, -0.019287109375, 0.0035552978515625, 0.0203857421875, 0.030242919921875, -0.0037364959716796875, 0.0321044921875, 0.0750732421875, -0.0596923828125, -0.00977325439453125, -0.0138702392578125, -0.0283203125, -0.031890869140625, -0.003337860107421875, 0.026611328125, -0.0265960693359375, -0.042236328125, -0.054779052734375, 0.029022216796875, -0.022186279296875, -0.019317626953125, 0.0012960433959960938, 0.0055084228515625, -0.026611328125, 0.0204010009765625, -0.035888671875, -0.01267242431640625, -0.018798828125, 0.0457763671875, -0.040771484375, -0.00542449951171875, -0.021697998046875, -0.044403076171875, -0.0303497314453125, 0.0660400390625, 0.0003204345703125, -0.03448486328125, 0.0147857666015625, 0.0282440185546875, -0.0173187255859375, 0.01340484619140625, -0.077392578125, -0.01264190673828125, 0.0060577392578125, -0.03094482421875, 0.03668212890625, -0.0208740234375, -0.0121612548828125, 0.01186370849609375, 0.08154296875, -0.050079345703125, 0.0005135536193847656, -0.0009260177612304688, 0.014617919921875, -0.037139892578125, -0.04302978515625, -0.0638427734375, 0.01222991943359375, -0.0264739990234375, -0.013702392578125, -0.03997802734375, -0.0234832763671875, -0.00795745849609375, -0.0260772705078125, 0.01374053955078125, -0.04742431640625, 0.032470703125, -0.01027679443359375, 0.0270233154296875, -0.0130767822265625, 0.00750732421875, -0.0343017578125, 0.01439666748046875, -0.037322998046875, -0.06903076171875, -0.005970001220703125, -0.0330810546875, 0.0606689453125, 0.01226043701171875, 0.00881195068359375, -0.00991058349609375, 0.0302734375, -0.047271728515625, 0.0504150390625, -0.04217529296875, 0.040130615234375, -0.021453857421875, -0.006526947021484375, -0.01428985595703125, -0.024810791015625, -0.0181884765625, -0.042633056640625, -0.05706787109375, -0.01409149169921875, -0.00926971435546875, 0.04339599609375, 0.0002384185791015625, 0.0125885009765625, -0.019195556640625, -0.042449951171875, 0.00557708740234375, -0.011810302734375, -0.0140838623046875, -0.0023097991943359375, -0.0205841064453125, -0.0024871826171875, -0.0042877197265625, -0.051849365234375, -0.0032978057861328125, 0.0175323486328125, 0.0718994140625, 0.015899658203125, 0.01108551025390625, -0.034271240234375, 0.0104827880859375, 0.0037822723388671875, 0.0027561187744140625, 0.035186767578125, 0.0175933837890625, 0.0175933837890625, -0.0206451416015625, 0.00016057491302490234, -0.00266265869140625, -0.0028820037841796875, 0.0020961761474609375, 0.00583648681640625, -0.0222015380859375, 0.017608642578125, -0.006015777587890625, 0.008697509765625, 0.057403564453125, 0.0035343170166015625, -0.0274200439453125, -0.0014982223510742188, 0.0259246826171875, -0.0219573974609375, -0.0199737548828125, -0.047821044921875, -0.0018787384033203125, 0.007595062255859375, 0.0106048583984375, -0.04241943359375, -0.0184326171875, 0.0120391845703125, -0.057098388671875, -0.0188751220703125, 0.011688232421875, 0.016326904296875, -0.00910186767578125, 0.046234130859375, 0.0242156982421875, 0.043731689453125, 0.0215606689453125, 0.00640106201171875, -0.008331298828125, 0.0297088623046875, 0.00814056396484375, -0.025054931640625, -0.03326416015625, -0.00506591796875, 0.0206756591796875, 0.0004940032958984375, -0.018463134765625, 0.041259765625, 0.037933349609375, -0.024688720703125, -0.025238037109375, -0.0284881591796875, 0.0032634735107421875, -0.058807373046875, -0.07781982421875, -0.034454345703125, -0.0204620361328125, 0.04888916015625, -0.003353118896484375, -0.0665283203125, 0.044891357421875, -0.00677490234375, 0.0020160675048828125, 0.0251922607421875, 0.02740478515625, 0.0208740234375, -0.0064849853515625, -0.0166778564453125, 0.01210784912109375, 0.0206298828125, -0.0280303955078125, 0.01849365234375, 0.0223388671875, 0.0728759765625, -0.0010833740234375, -0.0318603515625, 0.0009918212890625, -0.061309814453125, -0.0196075439453125, 0.049835205078125, 0.0199127197265625, -0.040191650390625, -0.0121307373046875, 0.029937744140625, 0.0220794677734375, -0.0156402587890625, -0.0013093948364257812, -0.0057525634765625, -0.0201263427734375, 0.007171630859375, -0.03375244140625, -0.01422882080078125, 0.0010824203491210938, 0.0017633438110351562, -0.01140594482421875, -0.0340576171875, -0.00036978721618652344, -0.03216552734375, 0.0151519775390625, -0.0312347412109375, -0.0217437744140625, 0.03448486328125, -0.0340576171875, 0.0242156982421875, -0.04180908203125, 0.0050506591796875, -0.0206298828125, 0.0243072509765625, 0.0171661376953125, -0.00634765625, 0.006458282470703125, -0.0113372802734375, -0.052764892578125, -0.06494140625, -0.0287628173828125, 0.0092010498046875, -0.0855712890625, 0.00695037841796875, -0.0028533935546875, -0.0009455680847167969, -0.006053924560546875, -0.00252532958984375, -0.01122283935546875, 0.022613525390625, 0.00873565673828125, 0.00417327880859375, -0.036590576171875, 0.030517578125, 0.035003662109375, 0.03369140625, 0.0190582275390625, 0.035491943359375, 0.0406494140625, -0.04193115234375, -0.00959014892578125, -0.043243408203125, -0.01155853271484375, -0.018280029296875, -0.0110626220703125, 0.05548095703125, 0.0706787109375, 0.0019121170043945312, 0.034210205078125, -0.0080413818359375, 0.0028839111328125, -0.0221099853515625, -0.0028553009033203125, -0.0215911865234375, 0.038299560546875, 0.01250457763671875, -0.037567138671875, 0.014556884765625, 0.0252838134765625, -0.01522064208984375, 0.0304718017578125, -0.016387939453125, 0.009613037109375, 0.01203155517578125, -0.037353515625, 0.066650390625, 0.04638671875, -0.05487060546875, 0.001495361328125, 0.0152435302734375, -0.0269775390625, 0.01535797119140625, 0.005481719970703125, 0.01221466064453125, -0.039276123046875, -0.00795745849609375, -0.0157928466796875, 0.007137298583984375, -0.0201416015625, -0.00801849365234375, 0.027862548828125, 0.037506103515625, 0.055908203125, -0.05694580078125, 0.00926971435546875, 0.03253173828125, -0.0234832763671875, -0.01493072509765625, -0.0255126953125, -0.0141448974609375, -0.044921875, 0.0533447265625, 0.0130615234375, -0.009552001953125, 0.016265869140625, 0.006378173828125, -0.003082275390625, -0.0008363723754882812, 0.0288238525390625, 0.049041748046875, -0.006114959716796875, 0.0360107421875, 0.002838134765625, 0.05792236328125, -0.021148681640625, -0.00844573974609375, -0.016448974609375, -0.0242767333984375, -0.056915283203125, -0.0031299591064453125, -0.0325927734375, 0.016998291015625, -0.02178955078125, 0.0012025833129882812, 0.0019664764404296875, 0.042144775390625, -0.0188751220703125, 0.0176544189453125, 0.0165557861328125, 0.0225372314453125, -0.04620361328125, -0.015594482421875, 0.0518798828125, 0.032470703125, -0.0140228271484375, 0.046051025390625, 0.01068878173828125, -0.086181640625, 0.0026874542236328125, -0.02374267578125, 0.022491455078125, -0.00403594970703125, -0.0040435791015625, 0.032440185546875, 0.0291748046875, -0.0162506103515625, -0.0146026611328125, 0.040679931640625, -0.07476806640625, -0.055450439453125, 0.00007939338684082031, -0.031494140625, -0.0278472900390625, -0.0097503662109375, -0.0697021484375, 0.09368896484375, 0.04779052734375, 0.01052093505859375, -0.0092315673828125, 0.0380859375, -0.0380859375, 0.00848388671875, -0.0325927734375, 0.06378173828125, 0.0277252197265625, 0.0121612548828125, -0.059295654296875, -0.00708770751953125, -0.0165252685546875, 0.0288848876953125, -0.0264739990234375, -0.010772705078125, 0.0037441253662109375, -0.00605010986328125, 0.0335693359375, 0.0435791015625, 0.0167236328125, 0.006923675537109375, -0.004669189453125, 0.061553955078125, 0.0418701171875, -0.0601806640625, 0.0186920166015625, 0.0166778564453125, -0.0208587646484375, 0.0195770263671875, -0.004924774169921875, -0.00799560546875, -0.009796142578125, 0.0036182403564453125, 0.0168914794921875, -0.01593017578125, -0.00626373291015625, -0.0025482177734375, 0.054656982421875, -0.00005328655242919922, 0.0201263427734375, -0.0218658447265625, 0.0672607421875, -0.0289306640625, 0.052032470703125, -0.02789306640625, 0.018524169921875, 0.0268402099609375, 0.0186309814453125, -0.00637054443359375, 0.0263671875, 0.004726409912109375, 0.035491943359375, -0.0181121826171875, 0.0019626617431640625, 0.0152740478515625, 0.047454833984375, 0.000029861927032470703, -0.038482666015625, 0.0177764892578125, 0.00661468505859375, 0.017242431640625, -0.055206298828125, 0.00980377197265625, 0.0016450881958007812, 0.006229400634765625, 0.00894927978515625, -0.007678985595703125, -0.030548095703125, 0.01442718505859375, 0.01392364501953125, -0.0201568603515625, -0.007610321044921875, 0.01617431640625, 0.0024509429931640625, 0.032623291015625, 0.015625, -0.0299835205078125, -0.00821685791015625, 0.01393890380859375, -0.00008666515350341797, 0.0277099609375, -0.0325927734375, 0.06402587890625, -0.066162109375, 0.0019664764404296875, -0.033660888671875, 0.039642333984375, 0.00226593017578125, 0.03558349609375, -0.039154052734375, -0.0237884521484375, 0.01473236083984375, 0.038665771484375, -0.014892578125, 0.055908203125, 0.056549072265625, 0.018707275390625, -0.03216552734375, -0.012359619140625, -0.02239990234375, -0.04547119140625, -0.0078582763671875, -0.0423583984375, -0.0155029296875, 0.00449371337890625, -0.021026611328125, 0.00925445556640625, 0.0024566650390625, 0.03155517578125, -0.059051513671875, 0.0228271484375, -0.020294189453125, -0.0416259765625, 0.0330810546875, -0.0070953369140625, 0.088134765625, -0.033477783203125, -0.0745849609375, 0.0038890838623046875, -0.05206298828125, -0.022857666015625, 0.0010404586791992188, 0.0297393798828125, -0.00733184814453125, 0.018798828125, 0.0157470703125, 0.01495361328125, 0.00797271728515625, -0.0288848876953125, 0.00417327880859375, -0.016632080078125, 0.0248870849609375, 0.00804901123046875, -0.0673828125, -0.0308685302734375, -0.0190887451171875, 0.031585693359375, -0.0160369873046875, 0.043670654296875, -0.0004074573516845703, 0.0012760162353515625, 0.040740966796875, -0.01190185546875, 0.042755126953125, 0.0174713134765625, -0.0276031494140625, -0.01335906982421875, 0.03369140625, -0.0262451171875, -0.0577392578125, 0.01155853271484375, 0.0222625732421875, 0.0081787109375, 0.0212249755859375, -0.032257080078125, 0.0322265625, 0.0232696533203125, 0.058258056640625, -0.025970458984375, -0.05560302734375, -0.08221435546875, -0.01410675048828125, 0.03369140625, 0.008087158203125, -0.03472900390625, 0.0188140869140625, 0.0003783702850341797, -0.0350341796875, 0.0003533363342285156, -0.01947021484375, -0.0128173828125, 0.0214996337890625, 0.02630615234375, -0.053680419921875, 0.01788330078125, 0.0004124641418457031, -0.047821044921875, 0.0271759033203125, 0.033447265625, 0.0056304931640625, -0.055572509765625, 0.0120849609375, 0.04534912109375, 0.03326416015625, -0.05120849609375, 0.0250091552734375, 0.041259765625, -0.004535675048828125, 0.0408935546875, -0.05010986328125, -0.03582763671875, -0.045806884765625, 0.00437164306640625, 0.00830841064453125, -0.0364990234375, -0.0266265869140625, -0.0266265869140625, 0.0079498291015625, 0.04498291015625, -0.00170135498046875, -0.042327880859375, 0.0160675048828125, -0.0264129638671875, 0.0494384765625, -0.00801849365234375, -0.01548004150390625, -0.01094818115234375, -0.012603759765625, -0.01107025146484375, -0.041961669921875, -0.033721923828125, 0.04058837890625, -0.0230712890625, -0.00576019287109375, 0.020538330078125, -0.01409149169921875, -0.0197601318359375, -0.0189971923828125, -0.01788330078125, 0.031402587890625, 0.00910186767578125, -0.0012197494506835938, 0.023162841796875, -0.0035552978515625, -0.019073486328125, -0.09759521484375, -0.007110595703125, -0.0675048828125, 0.02557373046875, -0.0207366943359375, 0.01357269287109375, 0.02490234375, -0.0360107421875, -0.07843017578125, 0.039947509765625, -0.0224609375, -0.035247802734375, -0.030914306640625, -0.00937652587890625, -0.00038814544677734375, 0.006679534912109375, -0.01611328125, 0.004276275634765625, -0.0261383056640625, 0.0377197265625, -0.0162811279296875, 0.037353515625, 0.0190277099609375, -0.0306854248046875, 0.028411865234375, -0.0014810562133789062, 0.03594970703125, -0.0305938720703125, 0.0439453125, -0.031341552734375, 0.036163330078125, 0.051910400390625, -0.03656005859375, -0.01470184326171875, -0.011627197265625, -0.0185699462890625, -0.01000213623046875, -0.006618499755859375, -0.076171875, -0.01149749755859375, 0.12255859375, 0.0838623046875, 0.04107666015625, -0.0382080078125, -0.00835418701171875, -0.01161956787109375, -0.0215911865234375, -0.0299530029296875, 0.01540374755859375, -0.055572509765625, -0.0103912353515625, -0.01212310791015625, -0.0163116455078125, 0.024627685546875, -0.0609130859375, -0.026519775390625, 0.002468109130859375, -0.0289459228515625, 0.01503753662109375, -0.03656005859375, 0.0015850067138671875, 0.06640625, -0.047943115234375, 0.0031890869140625, 0.0192413330078125, -0.003204345703125, 0.01568603515625, 0.0155792236328125, -0.0223541259765625, 0.036956787109375, -0.030487060546875, -0.005741119384765625, 0.002513885498046875, 0.002376556396484375, 0.0037708282470703125, 0.005279541015625, 0.0255279541015625, -0.0012054443359375, -0.0149688720703125, 0.0058135986328125, 0.020538330078125, -0.00063323974609375, -0.039031982421875, 0.038330078125, -0.019561767578125, -0.028350830078125, -0.053558349609375, 0.0450439453125, -0.043914794921875, 0.006984710693359375, -0.0127410888671875, -0.0196380615234375, 0.01068115234375, 0.029541015625, 0.03228759765625, -0.004505157470703125, 0.0021724700927734375, -0.006298065185546875, 0.00833892822265625, 0.0027675628662109375 ]
0bc2571fec84c94bc82313bc6cd86f70ff2459a0
Wordpress Stackexchange Q: Create site programmatically for WPMU My customer has a site, which has WP blog + vBulletin forum. Now he wants to allow vb users to have their own blog, by modifying current WP blog to WPMU network. So I want to create a button, which could be clicked by vb user and new site will be created in network for him. How can I create new site programmatically for WPMU network? A: first create a user from this function $user_id = wpmu_create_user( $username, $password, $email ); then used this function to create blog wpmu_create_blog( $newdomain, $path, $title, $user_id , array( 'public' => 1 ), $current_site->id ); for detail you can see this file /wp-admin/network/site-new.php after viewing this page you will have the exact idea what you want to do.
Q: Create site programmatically for WPMU My customer has a site, which has WP blog + vBulletin forum. Now he wants to allow vb users to have their own blog, by modifying current WP blog to WPMU network. So I want to create a button, which could be clicked by vb user and new site will be created in network for him. How can I create new site programmatically for WPMU network? A: first create a user from this function $user_id = wpmu_create_user( $username, $password, $email ); then used this function to create blog wpmu_create_blog( $newdomain, $path, $title, $user_id , array( 'public' => 1 ), $current_site->id ); for detail you can see this file /wp-admin/network/site-new.php after viewing this page you will have the exact idea what you want to do.
wordpress
{ "language": "en", "length": 130, "provenance": "stackexchange_00019.jsonl.gz:426714", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75839" }
[ 0.0240936279296875, -0.0233154296875, -0.0096435546875, 0.002727508544921875, -0.0185546875, -0.04248046875, 0.04046630859375, -0.00275421142578125, -0.00952911376953125, -0.007686614990234375, -0.0289459228515625, 0.0021381378173828125, -0.01617431640625, -0.0139923095703125, 0.0207977294921875, -0.046905517578125, 0.031280517578125, -0.02569580078125, 0.0016498565673828125, 0.0038051605224609375, -0.00011783838272094727, 0.01800537109375, -0.006847381591796875, -0.00562286376953125, -0.01306915283203125, -0.02825927734375, 0.052642822265625, -0.01027679443359375, 0.007129669189453125, -0.013641357421875, 0.007293701171875, 0.0031185150146484375, 0.004703521728515625, 0.00476837158203125, -0.0018091201782226562, -0.005840301513671875, 0.0175933837890625, -0.005924224853515625, -0.006946563720703125, 0.039520263671875, 0.0034942626953125, 0.005237579345703125, -0.035400390625, 0.040771484375, -0.02117919921875, -0.0765380859375, 0.01111602783203125, -0.058624267578125, 0.00885009765625, 0.018310546875, -0.005031585693359375, 0.010498046875, 0.00537109375, 0.004680633544921875, 0.00665283203125, 0.002559661865234375, -0.0204010009765625, -0.0178375244140625, 0.03533935546875, -0.040802001953125, -0.021484375, -0.03131103515625, 0.04290771484375, 0.023529052734375, 0.0226898193359375, 0.0196990966796875, 0.03753662109375, 0.026580810546875, -0.00310516357421875, 0.00820159912109375, -0.0171661376953125, -0.014068603515625, -0.005184173583984375, 0.0206146240234375, -0.0340576171875, -0.0189361572265625, 0.043792724609375, 0.006702423095703125, 0.00931549072265625, 0.02337646484375, 0.042999267578125, 0.05169677734375, -0.002956390380859375, -0.051788330078125, 0.032958984375, -0.032379150390625, -0.004638671875, -0.0225067138671875, -0.04095458984375, -0.040924072265625, -0.02880859375, -0.0238800048828125, -0.039306640625, -0.00293731689453125, -0.0123748779296875, -0.0177459716796875, -0.007686614990234375, 0.04669189453125, 0.003795623779296875, 0.037384033203125, 0.00270843505859375, -0.044952392578125, 0.054656982421875, -0.043701171875, -0.0068511962890625, 0.0660400390625, -0.022430419921875, -0.040283203125, 0.00807952880859375, 0.00231170654296875, 0.01544189453125, -0.0275726318359375, -0.0036373138427734375, -0.0287628173828125, -0.0227203369140625, 0.026458740234375, -0.00966644287109375, -0.0157928466796875, 0.004962921142578125, -0.036773681640625, -0.0609130859375, -0.03729248046875, 0.006786346435546875, 0.046234130859375, -0.00791168212890625, -0.0105743408203125, 0.01495361328125, -0.0015811920166015625, -0.051727294921875, -0.0108184814453125, -0.0175933837890625, 0.034912109375, 0.056915283203125, 0.048004150390625, 0.00629425048828125, -0.004154205322265625, 0.054473876953125, -0.048492431640625, -0.011932373046875, 0.0223236083984375, 0.0270843505859375, -0.0171966552734375, -0.0234527587890625, -0.006317138671875, 0.00423431396484375, 0.055084228515625, 0.030242919921875, -0.01763916015625, -0.0028133392333984375, -0.043304443359375, -0.035736083984375, -0.00415802001953125, -0.0121002197265625, -0.0001863241195678711, 0.08489990234375, -0.059112548828125, 0.02978515625, -0.04547119140625, 0.0762939453125, 0.0025691986083984375, 0.0272674560546875, 0.01441192626953125, 0.00847625732421875, -0.03961181640625, -0.032257080078125, -0.030303955078125, -0.047088623046875, -0.01024627685546875, 0.040283203125, 0.0169525146484375, 0.0060272216796875, -0.0357666015625, 0.058135986328125, 0.035858154296875, -0.0016727447509765625, 0.041839599609375, 0.01214599609375, -0.0206756591796875, 0.038909912109375, 0.0380859375, 0.0012922286987304688, -0.00989532470703125, 0.08062744140625, -0.02117919921875, -0.06964111328125, 0.031402587890625, 0.00608062744140625, 0.08294677734375, 0.037109375, 0.0203094482421875, 0.028839111328125, -0.033050537109375, -0.009918212890625, 0.0012731552124023438, 0.00650787353515625, -0.0214691162109375, -0.036407470703125, -0.0008816719055175781, -0.01580810546875, -0.003948211669921875, -0.0290985107421875, 0.0159759521484375, 0.01434326171875, 0.04705810546875, 0.0158233642578125, 0.036102294921875, -0.0124053955078125, 0.016357421875, 0.02813720703125, -0.0126953125, -0.007350921630859375, -0.038726806640625, 0.0357666015625, -0.0814208984375, -0.0601806640625, 0.004550933837890625, -0.0084228515625, 0.0201873779296875, -0.0006227493286132812, 0.025177001953125, -0.0133514404296875, -0.0059814453125, -0.009368896484375, 0.0272674560546875, 0.05499267578125, -0.049835205078125, -0.0035266876220703125, -0.043365478515625, 0.0333251953125, 0.0081787109375, -0.0303192138671875, 0.0106353759765625, 0.024932861328125, 0.0167236328125, -0.015228271484375, 0.01271820068359375, -0.0172119140625, -0.045013427734375, -0.01020050048828125, 0.042510986328125, 0.039306640625, -0.0115814208984375, 0.0029850006103515625, 0.008392333984375, 0.0239715576171875, -0.01275634765625, 0.0301361083984375, -0.004032135009765625, 0.006816864013671875, 0.06634521484375, -0.01910400390625, 0.0226898193359375, 0.01236724853515625, -0.06402587890625, 0.00904083251953125, 0.0501708984375, -0.024261474609375, 0.018890380859375, 0.01479339599609375, -0.03826904296875, 0.01019287109375, -0.03173828125, -0.00875091552734375, -0.0234375, 0.024932861328125, 0.005420684814453125, 0.045074462890625, 0.03179931640625, -0.0009732246398925781, -0.018524169921875, -0.0037555694580078125, -0.0103302001953125, 0.006244659423828125, 0.0187530517578125, -0.0085906982421875, 0.0026416778564453125, -0.03875732421875, 0.0065765380859375, 0.0372314453125, 0.01078033447265625, -0.0277099609375, 0.0113983154296875, -0.05072021484375, -0.022125244140625, 0.00029397010803222656, -0.05450439453125, -0.016082763671875, -0.0186004638671875, 0.032470703125, -0.021392822265625, 0.020782470703125, -0.00666046142578125, -0.01776123046875, 0.04083251953125, 0.0280303955078125, -0.057281494140625, 0.0117340087890625, -0.0435791015625, 0.04986572265625, -0.032684326171875, 0.0000750422477722168, 0.062225341796875, -0.00849151611328125, 0.0015478134155273438, -0.01336669921875, 0.0052947998046875, -0.04949951171875, 0.0224761962890625, 0.004802703857421875, -0.027984619140625, -0.017120361328125, 0.03759765625, 0.01045989990234375, 0.00487518310546875, 0.01264190673828125, -0.01904296875, -0.00928497314453125, 0.004779815673828125, -0.0288543701171875, -0.03338623046875, -0.04193115234375, -0.048309326171875, 0.036041259765625, -0.0124969482421875, 0.003986358642578125, -0.0130462646484375, 0.0082244873046875, 0.0199737548828125, -0.033538818359375, -0.04248046875, -0.0364990234375, -0.07110595703125, -0.04583740234375, 0.01297760009765625, -0.0014591217041015625, 0.00047588348388671875, 0.004421234130859375, -0.03131103515625, -0.0196990966796875, 0.00726318359375, -0.01065826416015625, 0.0301971435546875, 0.019561767578125, -0.0648193359375, 0.01239776611328125, -0.015289306640625, 0.0014162063598632812, 0.006076812744140625, 0.0433349609375, 0.0364990234375, -0.04412841796875, 0.01235198974609375, -0.01495361328125, -0.0115509033203125, -0.0117034912109375, -0.0224761962890625, 0.01274871826171875, -0.01079559326171875, -0.03668212890625, -0.06243896484375, -0.00873565673828125, 0.0390625, -0.016937255859375, 0.0086517333984375, -0.01346588134765625, -0.03472900390625, 0.049591064453125, -0.014892578125, -0.02093505859375, -0.0253143310546875, 0.041168212890625, -0.02947998046875, 0.024169921875, -0.0095062255859375, -0.032135009765625, -0.032867431640625, 0.0643310546875, -0.00827789306640625, -0.05059814453125, 0.00917816162109375, -0.00769805908203125, -0.0037517547607421875, -0.028167724609375, -0.0116424560546875, -0.007770538330078125, 0.00777435302734375, -0.04833984375, 0.030517578125, -0.025726318359375, -0.003917694091796875, 0.006359100341796875, 0.0711669921875, -0.05462646484375, -0.0017833709716796875, -0.00585174560546875, 0.0100860595703125, -0.047332763671875, -0.0021038055419921875, -0.06927490234375, 0.00811004638671875, -0.0311431884765625, 0.0059051513671875, 0.0010156631469726562, -0.0198974609375, -0.00586700439453125, -0.053497314453125, -0.0170745849609375, -0.037933349609375, 0.0216827392578125, 0.00615692138671875, 0.0267333984375, -0.01568603515625, 0.00673675537109375, -0.016693115234375, -0.0026721954345703125, -0.01861572265625, -0.06072998046875, 0.0098114013671875, -0.043121337890625, 0.020172119140625, -0.005138397216796875, 0.0304718017578125, -0.039886474609375, 0.00528717041015625, -0.033050537109375, 0.019683837890625, 0.0060272216796875, 0.03338623046875, 0.01441192626953125, 0.0123748779296875, -0.012603759765625, -0.02099609375, -0.02484130859375, -0.029815673828125, 0.0266876220703125, 0.023040771484375, -0.021636962890625, 0.007053375244140625, -0.0107421875, 0.007076263427734375, -0.00704193115234375, -0.03448486328125, -0.0135040283203125, 0.030487060546875, -0.010986328125, -0.00432586669921875, -0.046600341796875, -0.01468658447265625, 0.0116119384765625, -0.05572509765625, 0.0173797607421875, 0.0213775634765625, 0.10809326171875, 0.01226043701171875, 0.0135040283203125, -0.0221405029296875, 0.016326904296875, 0.0194244384765625, 0.01904296875, 0.043487548828125, -0.0037479400634765625, -0.00006765127182006836, 0.01202392578125, -0.00582122802734375, 0.0242156982421875, 0.0266876220703125, -0.00406646728515625, 0.0195770263671875, -0.0035953521728515625, 0.01305389404296875, 0.042236328125, -0.055206298828125, -0.01273345947265625, -0.024932861328125, 0.000583648681640625, -0.011627197265625, 0.029571533203125, 0.00994873046875, 0.0124664306640625, -0.037689208984375, -0.0362548828125, 0.0302276611328125, -0.06121826171875, -0.00618743896484375, -0.041748046875, 0.0209503173828125, -0.04437255859375, -0.040008544921875, -0.0225830078125, 0.0005240440368652344, -0.03399658203125, 0.040863037109375, 0.014801025390625, -0.0171966552734375, -0.008087158203125, -0.004055023193359375, -0.0176849365234375, 0.0396728515625, 0.0306549072265625, -0.00772857666015625, 0.0032825469970703125, -0.00966644287109375, 0.054168701171875, -0.0019483566284179688, -0.010986328125, 0.044219970703125, 0.01806640625, 0.0031280517578125, 0.0032958984375, -0.04327392578125, 0.0041351318359375, -0.058258056640625, 0.00710296630859375, -0.00122833251953125, -0.0167999267578125, 0.03900146484375, 0.032867431640625, -0.01255035400390625, 0.042388916015625, -0.0301055908203125, 0.092041015625, 0.08782958984375, 0.0243682861328125, 0.004238128662109375, -0.0083160400390625, -0.00667572021484375, -0.01094818115234375, -0.0467529296875, 0.0128021240234375, 0.03155517578125, 0.034881591796875, 0.0023059844970703125, 0.01064300537109375, -0.0091552734375, -0.0164794921875, -0.05352783203125, 0.0210418701171875, -0.018035888671875, -0.01995849609375, 0.005950927734375, 0.0094146728515625, -0.016387939453125, -0.0014238357543945312, -0.01042938232421875, 0.0482177734375, -0.0782470703125, 0.0212554931640625, -0.00745391845703125, 0.003326416015625, 0.0305328369140625, -0.0291290283203125, -0.050018310546875, -0.0160064697265625, -0.019927978515625, 0.0053558349609375, -0.0174102783203125, 0.0303497314453125, -0.03472900390625, -0.042510986328125, 0.05389404296875, -0.049163818359375, 0.01045989990234375, -0.060272216796875, 0.043701171875, -0.018951416015625, 0.0137176513671875, 0.050323486328125, 0.0286407470703125, 0.002033233642578125, -0.002269744873046875, -0.0177154541015625, -0.0196380615234375, 0.01053619384765625, -0.0123443603515625, -0.035369873046875, -0.01361846923828125, 0.046142578125, 0.01031494140625, 0.0139617919921875, -0.021728515625, 0.01099395751953125, 0.012451171875, 0.0019159317016601562, 0.004364013671875, -0.00766754150390625, 0.055328369140625, 0.001934051513671875, 0.0333251953125, 0.0252685546875, 0.0194549560546875, -0.04205322265625, -0.0092620849609375, 0.0247344970703125, -0.0152740478515625, -0.059112548828125, -0.032562255859375, -0.039520263671875, 0.02923583984375, 0.057891845703125, -0.032958984375, 0.0207977294921875, -0.0007176399230957031, 0.004852294921875, -0.01482391357421875, -0.0157623291015625, -0.00901031494140625, 0.0188751220703125, -0.0008096694946289062, -0.035003662109375, 0.039154052734375, 0.02105712890625, 0.0182037353515625, -0.00917816162109375, -0.03167724609375, 0.0272216796875, 0.0249481201171875, -0.046417236328125, 0.06304931640625, 0.04705810546875, -0.04229736328125, 0.0244293212890625, -0.00421905517578125, -0.00901031494140625, 0.02996826171875, -0.0020008087158203125, -0.050689697265625, 0.007335662841796875, 0.0413818359375, 0.021484375, -0.01404571533203125, 0.058258056640625, -0.0262908935546875, 0.033782958984375, 0.058624267578125, 0.07794189453125, -0.09271240234375, 0.0183868408203125, 0.00958251953125, -0.01873779296875, 0.030975341796875, 0.0005335807800292969, 0.0027561187744140625, -0.041900634765625, 0.06427001953125, 0.0240478515625, 0.015655517578125, 0.02923583984375, -0.01141357421875, -0.02166748046875, 0.00841522216796875, 0.01522064208984375, 0.034454345703125, 0.00984954833984375, 0.0325927734375, -0.0196685791015625, 0.0667724609375, -0.038482666015625, -0.00843048095703125, 0.009124755859375, 0.002582550048828125, -0.03472900390625, 0.036712646484375, -0.02972412109375, 0.035797119140625, 0.019866943359375, 0.0066375732421875, 0.01239776611328125, 0.05535888671875, -0.026336669921875, 0.0521240234375, 0.03125, 0.0017843246459960938, 0.002674102783203125, 0.0010709762573242188, 0.0294342041015625, -0.0177764892578125, -0.01554107666015625, 0.01496124267578125, -0.04644775390625, -0.021759033203125, -0.008819580078125, -0.0369873046875, 0.0712890625, -0.0183258056640625, -0.0207061767578125, 0.036956787109375, -0.0214691162109375, -0.0340576171875, -0.033721923828125, -0.010589599609375, -0.102294921875, -0.07745361328125, -0.0223388671875, -0.06884765625, 0.0243377685546875, -0.0180206298828125, -0.041717529296875, 0.072265625, 0.0023403167724609375, 0.01132965087890625, -0.01049041748046875, 0.028961181640625, -0.005702972412109375, 0.017791748046875, -0.051910400390625, 0.043426513671875, 0.039581298828125, 0.034271240234375, -0.045928955078125, -0.01340484619140625, -0.0045623779296875, 0.021148681640625, 0.042266845703125, 0.02020263671875, -0.0241241455078125, -0.029022216796875, 0.01505279541015625, 0.024261474609375, -0.005504608154296875, 0.0241241455078125, -0.0147857666015625, 0.01226043701171875, 0.0316162109375, -0.04962158203125, 0.0032367706298828125, 0.02264404296875, -0.006977081298828125, 0.004558563232421875, 0.0032291412353515625, -0.0255889892578125, 0.01221466064453125, -0.00994110107421875, -0.05560302734375, 0.0274658203125, 0.0203399658203125, 0.03509521484375, -0.003452301025390625, 0.017364501953125, -0.004444122314453125, 0.023040771484375, 0.041748046875, -0.039154052734375, 0.037872314453125, 0.0012760162353515625, 0.0244903564453125, 0.01116180419921875, 0.03173828125, 0.002048492431640625, 0.0051116943359375, 0.017852783203125, 0.036102294921875, -0.055633544921875, 0.035675048828125, 0.0145111083984375, 0.0154876708984375, -0.04449462890625, -0.0192108154296875, 0.04656982421875, 0.051666259765625, -0.034210205078125, -0.00205230712890625, -0.0009946823120117188, 0.00646209716796875, 0.0302276611328125, -0.01021575927734375, 0.0706787109375, 0.01629638671875, -0.00138092041015625, -0.045013427734375, 0.0208892822265625, 0.036651611328125, -0.017608642578125, -0.0082244873046875, 0.0005288124084472656, -0.00920867919921875, 0.0440673828125, 0.00493621826171875, -0.0283355712890625, -0.01824951171875, 0.0196380615234375, 0.01346588134765625, 0.018524169921875, -0.038238525390625, -0.0120086669921875, -0.01436614990234375, 0.00244140625, 0.0157318115234375, 0.016204833984375, -0.025634765625, -0.00894927978515625, 0.027435302734375, 0.029815673828125, 0.0015869140625, 0.0081329345703125, 0.048980712890625, 0.02239990234375, -0.03448486328125, -0.020965576171875, -0.004230499267578125, -0.0293426513671875, -0.0218353271484375, -0.0162506103515625, -0.068603515625, -0.0341796875, -0.038543701171875, 0.02264404296875, 0.03717041015625, -0.03936767578125, -0.0217742919921875, 0.0592041015625, -0.0099945068359375, -0.0083770751953125, 0.05682373046875, -0.0163726806640625, 0.07611083984375, 0.0091552734375, -0.11676025390625, -0.013275146484375, -0.037841796875, -0.01271820068359375, 0.01192474365234375, 0.025970458984375, -0.0138702392578125, 0.036285400390625, 0.01140594482421875, 0.002506256103515625, 0.0253753662109375, 0.0008916854858398438, -0.0179443359375, -0.00010716915130615234, 0.050445556640625, -0.005767822265625, -0.1087646484375, -0.044525146484375, -0.05084228515625, 0.040924072265625, -0.00505828857421875, 0.1417236328125, -0.0338134765625, 0.013946533203125, -0.038726806640625, -0.004581451416015625, -0.01090240478515625, -0.036102294921875, -0.00466156005859375, 0.046966552734375, 0.016357421875, -0.004177093505859375, -0.0158843994140625, 0.003582000732421875, 0.03338623046875, 0.0017271041870117188, 0.007366180419921875, -0.033416748046875, 0.030914306640625, 0.0224609375, 0.01898193359375, -0.037322998046875, -0.033203125, -0.034881591796875, -0.01526641845703125, 0.010650634765625, -0.0045928955078125, -0.01351165771484375, 0.068603515625, -0.0171966552734375, -0.01076507568359375, 0.01593017578125, -0.07232666015625, 0.00902557373046875, 0.0237274169921875, 0.004367828369140625, -0.0316162109375, -0.007244110107421875, -0.0174560546875, -0.031494140625, -0.0032978057861328125, 0.02789306640625, -0.00905609130859375, -0.03326416015625, 0.0005269050598144531, -0.01439666748046875, 0.00934600830078125, -0.05206298828125, -0.005535125732421875, 0.0102691650390625, 0.009246826171875, 0.00948333740234375, 0.00386810302734375, -0.01470184326171875, -0.0116729736328125, 0.008270263671875, 0.01479339599609375, 0.003780364990234375, -0.017242431640625, -0.055572509765625, -0.008087158203125, 0.045928955078125, 0.01174163818359375, -0.0271148681640625, 0.01476287841796875, -0.02520751953125, 0.0187530517578125, 0.0205841064453125, 0.0298919677734375, -0.0003714561462402344, 0.028076171875, -0.042144775390625, -0.043060302734375, -0.0118408203125, 0.040863037109375, -0.0308837890625, 0.01023101806640625, 0.033111572265625, -0.01522064208984375, -0.00774383544921875, 0.01861572265625, 0.0092010498046875, 0.05413818359375, -0.008026123046875, -0.007720947265625, 0.0396728515625, -0.051910400390625, -0.023345947265625, -0.06561279296875, 0.0113677978515625, -0.127685546875, -0.0198516845703125, 0.031524658203125, -0.0201416015625, 0.0213775634765625, -0.033447265625, -0.08575439453125, -0.0166015625, 0.0182647705078125, -0.058624267578125, -0.07769775390625, 0.027374267578125, 0.008453369140625, -0.000053763389587402344, -0.0311737060546875, -0.00290679931640625, -0.004604339599609375, 0.0355224609375, 0.0023097991943359375, 0.03179931640625, 0.032135009765625, -0.0279541015625, -0.0020580291748046875, 0.00159454345703125, 0.0053253173828125, 0.0100860595703125, 0.05413818359375, -0.02154541015625, 0.047882080078125, 0.049468994140625, -0.033477783203125, 0.0023021697998046875, -0.025665283203125, -0.033843994140625, -0.0248565673828125, -0.0482177734375, 0.0008230209350585938, 0.001983642578125, 0.08642578125, 0.0217132568359375, 0.0243072509765625, -0.05316162109375, -0.0247039794921875, -0.011566162109375, -0.057769775390625, -0.017913818359375, 0.03521728515625, -0.08551025390625, -0.006435394287109375, 0.00400543212890625, -0.0003120899200439453, -0.01242828369140625, -0.01251220703125, -0.027252197265625, -0.005115509033203125, 0.01001739501953125, 0.0077056884765625, -0.019134521484375, -0.056640625, 0.0430908203125, -0.0300140380859375, 0.0061187744140625, 0.00008094310760498047, 0.05206298828125, 0.005344390869140625, -0.0038509368896484375, -0.03790283203125, -0.0186309814453125, -0.016021728515625, 0.01873779296875, -0.025146484375, 0.0291900634765625, -0.015350341796875, 0.01268768310546875, 0.0219268798828125, 0.0171051025390625, -0.013214111328125, 0.019744873046875, -0.00650787353515625, 0.044708251953125, -0.011871337890625, 0.002719879150390625, 0.0115966796875, -0.018402099609375, -0.031280517578125, 0.06329345703125, -0.0131378173828125, -0.03192138671875, -0.00246429443359375, -0.028839111328125, -0.00799560546875, -0.00021910667419433594, -0.0007061958312988281, -0.07379150390625, 0.03466796875, -0.00475311279296875, 0.01418304443359375, 0.0278167724609375 ]
fc51be820b19f262a47bb06f17a566287191d28c
Wordpress Stackexchange Q: how to get path to images in the uploads folder to be used in a plugin I have some folder with images in /wp-content/uploads. I also have a plugin file in /wp-content/plugins. I want to retrieve the images stored in /wp-content/uploads and use them in the plugin file. I have tried echo'<img src="../../USER_PHOTOS/ronny'" href="#"></img>'; can someone show me how I can get the path to these images? thanks. A: If I'm not mistaken, you may want to try the wp_uploads_dir function, like so: $uploads = wp_upload_dir(); echo '<img src="' . esc_url( $uploads['baseurl'] . '/USER_PHOTOS/ronny/' ) . '" href="#">';
Q: how to get path to images in the uploads folder to be used in a plugin I have some folder with images in /wp-content/uploads. I also have a plugin file in /wp-content/plugins. I want to retrieve the images stored in /wp-content/uploads and use them in the plugin file. I have tried echo'<img src="../../USER_PHOTOS/ronny'" href="#"></img>'; can someone show me how I can get the path to these images? thanks. A: If I'm not mistaken, you may want to try the wp_uploads_dir function, like so: $uploads = wp_upload_dir(); echo '<img src="' . esc_url( $uploads['baseurl'] . '/USER_PHOTOS/ronny/' ) . '" href="#">'; A: Unfortunately there is a documented bug where wp_upload_dir() does not honor https (ssl). My suggestion is to write a wrapper to remove the protocol from the returned URL to make it adaptable to the environment: function wp_upload_dir_url() { $upload_dir = wp_upload_dir(); $upload_dir = $upload_dir['baseurl']; return preg_replace('/^https?:/', '', $upload_dir); }; echo(wp_upload_dir_url() . '/2017/01/my-img.jpg'); // outputs something like '//mysite.test/wp-content/uploads/2017/01/my-img.jpg' // which is perfectly acceptable as an img src If you are concerned about the performance hit of using preg_replace() multiple times, then set a constant in your functions.php file: define('WP_UPLOAD_DIR_URL', wp_upload_dir_url() . '/'); A: Dan S points out a trac ticket where wp_upload_dir() does not support https. I've not found this to be the case on my sites, but if it does affect you, then you can add a filter to upload_dir and manually return the correct protocol based on the is_ssl() conditional. add_filter( 'upload_dir', function( $upload_dir ){ return array_map( function( $value ) { return is_ssl() ? str_replace( 'http://', 'https://', $value ) : str_replace( 'https://', 'http://', $value ); }, $upload_dir ); }, 10, 1 ); Then you can continue using wp_upload_dir() as you always have. As noted here, unless you have specific performance concerns you should use https://. A: I found the answer. I used wp_upload_dir(); wordpress codex A: This is what I used to access an image file named "rock_01.jpg" uploaded to the wordpress folder "uploads/complete-theme/" <?php $upload_dir = wp_upload_dir(); ?> <img src="<?php echo $upload_dir['baseurl'] . '/complete-theme/rock_01.jpg'; ?>" /> It worked as expected.
wordpress
{ "language": "en", "length": 342, "provenance": "stackexchange_00019.jsonl.gz:426736", "question_score": "10", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75887" }
[ 0.043212890625, -0.025634765625, 0.01126861572265625, 0.004787445068359375, -0.005542755126953125, -0.0474853515625, 0.07916259765625, -0.022125244140625, 0.049102783203125, 0.0261993408203125, -0.028778076171875, 0.002948760986328125, 0.006038665771484375, -0.010345458984375, -0.0382080078125, -0.017547607421875, 0.0240936279296875, 0.0133819580078125, 0.049224853515625, 0.00556182861328125, 0.0147705078125, 0.04620361328125, 0.011688232421875, 0.01519012451171875, 0.01084136962890625, 0.0307159423828125, 0.0394287109375, -0.0227508544921875, 0.004119873046875, -0.03851318359375, 0.005931854248046875, 0.0161895751953125, 0.01947021484375, -0.021575927734375, 0.033111572265625, 0.00568389892578125, -0.0099945068359375, -0.006561279296875, 0.01837158203125, 0.007781982421875, 0.037872314453125, -0.018035888671875, 0.031463623046875, 0.0310211181640625, 0.002223968505859375, -0.0215606689453125, 0.043609619140625, -0.017547607421875, 0.02105712890625, 0.057342529296875, 0.01013946533203125, -0.009979248046875, 0.003726959228515625, -0.0079498291015625, -0.0021190643310546875, -0.025726318359375, -0.028167724609375, 0.03851318359375, 0.03424072265625, -0.0041046142578125, -0.036529541015625, -0.0223236083984375, 0.0189666748046875, -0.0268707275390625, -0.019317626953125, 0.020111083984375, 0.005523681640625, 0.0128021240234375, -0.043121337890625, -0.03277587890625, 0.006870269775390625, -0.035552978515625, 0.00762176513671875, -0.022796630859375, -0.0296783447265625, 0.03167724609375, 0.00211334228515625, -0.0268707275390625, 0.02667236328125, -0.021575927734375, 0.01001739501953125, -0.0225067138671875, -0.036224365234375, 0.0194854736328125, 0.023223876953125, 0.0526123046875, -0.0021839141845703125, -0.0220794677734375, -0.00962066650390625, 0.0399169921875, -0.025848388671875, 0.07769775390625, -0.004077911376953125, 0.0094451904296875, -0.0278167724609375, 0.00008845329284667969, 0.01103973388671875, 0.0087890625, -0.00698089599609375, 0.0182037353515625, 0.00908660888671875, -0.054229736328125, 0.05126953125, -0.0396728515625, 0.00463104248046875, 0.010284423828125, 0.0033893585205078125, -0.033721923828125, 0.012298583984375, 0.0249176025390625, -0.01403045654296875, 0.01055145263671875, -0.032684326171875, -0.047882080078125, -0.01116180419921875, 0.0487060546875, -0.025177001953125, 0.007289886474609375, 0.0171051025390625, 0.004058837890625, -0.01551055908203125, 0.01374053955078125, -0.033233642578125, -0.0169525146484375, 0.0253143310546875, -0.01174163818359375, -0.015869140625, 0.00942230224609375, -0.041748046875, 0.026092529296875, -0.032196044921875, 0.03271484375, 0.05853271484375, -0.0132598876953125, -0.02069091796875, -0.0240478515625, -0.0047607421875, -0.0304412841796875, -0.0167236328125, 0.031219482421875, -0.004932403564453125, -0.028106689453125, 0.0287628173828125, -0.031097412109375, -0.024749755859375, 0.0207977294921875, -0.0026378631591796875, 0.0192718505859375, -0.01403045654296875, -0.04473876953125, -0.0018634796142578125, -0.0132293701171875, 0.0085906982421875, 0.0286102294921875, 0.0259857177734375, -0.01355743408203125, 0.055694580078125, -0.040985107421875, 0.01442718505859375, -0.040069580078125, -0.0026988983154296875, 0.0175323486328125, 0.04620361328125, -0.01016998291015625, -0.0037136077880859375, -0.037628173828125, -0.044891357421875, -0.01326751708984375, 0.0251007080078125, 0.00677490234375, 0.01050567626953125, -0.01305389404296875, 0.005458831787109375, 0.02789306640625, 0.0176544189453125, 0.0269317626953125, 0.012725830078125, 0.033660888671875, 0.0026645660400390625, 0.0723876953125, 0.033203125, -0.013214111328125, 0.059814453125, -0.0019207000732421875, -0.017791748046875, -0.0207061767578125, -0.00937652587890625, -0.01482391357421875, 0.019073486328125, 0.001560211181640625, 0.03509521484375, 0.0156097412109375, -0.04296875, -0.0038661956787109375, -0.0168914794921875, 0.010955810546875, -0.041961669921875, -0.00006371736526489258, -0.0180206298828125, 0.0014181137084960938, 0.05224609375, -0.0088653564453125, 0.005756378173828125, -0.005584716796875, -0.0301513671875, -0.0261383056640625, -0.0004260540008544922, -0.003772735595703125, 0.0005650520324707031, 0.0015659332275390625, 0.016845703125, 0.0229339599609375, -0.0261993408203125, -0.041473388671875, -0.012939453125, 0.07244873046875, -0.018096923828125, 0.0108642578125, 0.0001506805419921875, 0.06903076171875, -0.00905609130859375, -0.0134735107421875, -0.026153564453125, 0.0123291015625, 0.00677490234375, 0.0167083740234375, -0.020050048828125, 0.0130767822265625, -0.0154571533203125, 0.04046630859375, -0.04925537109375, -0.019866943359375, -0.025360107421875, 0.0186920166015625, 0.006877899169921875, -0.01351165771484375, 0.00907135009765625, -0.06396484375, 0.044586181640625, 0.03424072265625, 0.043792724609375, 0.051788330078125, 0.00907135009765625, -0.004810333251953125, 0.06634521484375, -0.01526641845703125, 0.024017333984375, -0.033538818359375, 0.01678466796875, 0.006763458251953125, -0.005157470703125, -0.02496337890625, 0.029510498046875, -0.003551483154296875, 0.000579833984375, 0.036651611328125, -0.018798828125, -0.0283660888671875, 0.0023441314697265625, 0.016815185546875, 0.006805419921875, -0.0006504058837890625, -0.01029205322265625, -0.01082611083984375, -0.01375579833984375, 0.01541900634765625, 0.0119781494140625, 0.022186279296875, -0.00839996337890625, 0.004604339599609375, 0.02301025390625, -0.033233642578125, -0.0126953125, 0.042510986328125, 0.03594970703125, -0.01561737060546875, -0.03704833984375, -0.01520538330078125, -0.0027217864990234375, 0.0291595458984375, -0.023834228515625, -0.023345947265625, -0.02874755859375, -0.0009722709655761719, -0.0328369140625, -0.0271759033203125, 0.06524658203125, 0.052947998046875, 0.0008130073547363281, 0.0117034912109375, 0.041107177734375, 0.0227203369140625, -0.0158233642578125, 0.0400390625, -0.0238037109375, -0.00099945068359375, 0.037445068359375, -0.033935546875, 0.035919189453125, -0.0086517333984375, 0.0167388916015625, 0.060699462890625, 0.0110626220703125, -0.019805908203125, 0.01093292236328125, -0.0237274169921875, 0.004108428955078125, 0.015045166015625, -0.004680633544921875, -0.0189361572265625, -0.042755126953125, -0.016082763671875, 0.00572967529296875, 0.0191497802734375, -0.020782470703125, -0.0457763671875, -0.0126190185546875, -0.00688934326171875, -0.10968017578125, -0.10443115234375, -0.025054931640625, -0.10552978515625, 0.027496337890625, -0.0166473388671875, -0.042572021484375, -0.01378631591796875, 0.042755126953125, 0.01421356201171875, -0.007476806640625, -0.0013399124145507812, -0.01416778564453125, -0.0089569091796875, -0.04364013671875, 0.02630615234375, 0.0045013427734375, 0.0194854736328125, -0.004131317138671875, 0.0154266357421875, -0.0159454345703125, -0.033599853515625, -0.03155517578125, 0.072509765625, 0.01380157470703125, -0.0271759033203125, 0.0155487060546875, 0.006381988525390625, -0.007228851318359375, 0.00023186206817626953, 0.04656982421875, 0.052642822265625, -0.0638427734375, -0.0019273757934570312, -0.0014181137084960938, -0.013031005859375, -0.007358551025390625, 0.0272064208984375, 0.02398681640625, 0.00015687942504882812, 0.0031280517578125, -0.051177978515625, 0.00547027587890625, -0.03912353515625, -0.049407958984375, 0.041290283203125, 0.0106201171875, 0.0013370513916015625, -0.012176513671875, 0.020751953125, 0.026458740234375, 0.03643798828125, -0.01959228515625, -0.01557159423828125, 0.024658203125, 0.005435943603515625, 0.031494140625, 0.007762908935546875, 0.0283660888671875, -0.0012636184692382812, 0.0018301010131835938, -0.0017652511596679688, 0.01367950439453125, -0.045196533203125, 0.0228118896484375, -0.0989990234375, -0.03973388671875, 0.0396728515625, -0.02374267578125, 0.016204833984375, -0.035400390625, -0.019744873046875, -0.0241851806640625, 0.058563232421875, -0.039337158203125, -0.01151275634765625, -0.0088653564453125, 0.0177154541015625, -0.059906005859375, -0.045196533203125, -0.053558349609375, 0.003753662109375, -0.07647705078125, -0.00989532470703125, -0.004425048828125, -0.05029296875, 0.044647216796875, -0.08453369140625, -0.0286102294921875, -0.059783935546875, 0.0267486572265625, -0.041351318359375, 0.03094482421875, 0.008270263671875, 0.020416259765625, -0.01213836669921875, 0.0005927085876464844, -0.04095458984375, -0.104248046875, -0.03851318359375, 0.0264129638671875, 0.0711669921875, -0.01123046875, -0.006542205810546875, -0.03314208984375, 0.06817626953125, 0.006420135498046875, 0.00850677490234375, 0.0176239013671875, 0.026885986328125, -0.01511383056640625, -0.053314208984375, 0.0223388671875, -0.0555419921875, 0.0063629150390625, -0.056854248046875, -0.03790283203125, -0.05059814453125, -0.03668212890625, 0.0061187744140625, -0.01275634765625, -0.01190948486328125, 0.0307159423828125, -0.00811767578125, -0.038482666015625, 0.0145263671875, -0.0260772705078125, -0.0119476318359375, -0.028350830078125, -0.00759124755859375, 0.043609619140625, 0.004306793212890625, 0.00930023193359375, 0.006175994873046875, 0.060028076171875, -0.007022857666015625, -0.028656005859375, -0.04290771484375, 0.0023326873779296875, 0.035308837890625, -0.0009455680847167969, 0.05145263671875, 0.03851318359375, -0.0063018798828125, 0.032623291015625, 0.0196990966796875, 0.0216827392578125, -0.0089569091796875, 0.01983642578125, 0.01136016845703125, -0.0263824462890625, 0.01552581787109375, 0.0234375, -0.01824951171875, 0.04632568359375, -0.0161590576171875, -0.00591278076171875, -0.0323486328125, 0.0251007080078125, 0.004364013671875, 0.001804351806640625, -0.034393310546875, -0.07080078125, 0.0115814208984375, -0.042236328125, 0.048126220703125, 0.0189208984375, -0.0158538818359375, 0.0733642578125, 0.047271728515625, -0.0146636962890625, 0.01313018798828125, 0.0193634033203125, 0.022247314453125, 0.0212860107421875, 0.02777099609375, -0.002346038818359375, -0.023162841796875, 0.0135498046875, -0.0022029876708984375, -0.01210784912109375, -0.01482391357421875, -0.037750244140625, -0.0240020751953125, 0.00742340087890625, 0.0269622802734375, -0.0228118896484375, 0.0565185546875, 0.047576904296875, -0.00980377197265625, -0.0123443603515625, -0.042022705078125, 0.0148468017578125, -0.059417724609375, 0.02313232421875, -0.0024433135986328125, -0.0099945068359375, 0.01611328125, 0.025909423828125, -0.0301513671875, 0.0229949951171875, 0.01275634765625, -0.00933837890625, -0.01522064208984375, 0.04345703125, 0.0193023681640625, -0.0176239013671875, 0.0006375312805175781, 0.0021495819091796875, 0.0225830078125, -0.04296875, 0.0283050537109375, -0.00852203369140625, 0.0504150390625, -0.03387451171875, -0.062103271484375, 0.052032470703125, -0.0621337890625, 0.00038313865661621094, 0.005413055419921875, -0.038787841796875, -0.013092041015625, -0.038421630859375, 0.00267791748046875, 0.0762939453125, 0.017242431640625, -0.0294189453125, 0.0075836181640625, -0.035186767578125, 0.0008568763732910156, 0.020355224609375, -0.0660400390625, 0.035491943359375, 0.04449462890625, 0.016845703125, -0.022491455078125, -0.0190582275390625, -0.03314208984375, 0.0211334228515625, -0.041168212890625, -0.012725830078125, 0.07305908203125, -0.026580810546875, 0.0142669677734375, -0.0279083251953125, 0.0027179718017578125, -0.030426025390625, 0.0194091796875, 0.03253173828125, 0.01047515869140625, -0.054229736328125, 0.01218414306640625, -0.05352783203125, 0.000060439109802246094, 0.0264892578125, -0.0226287841796875, -0.039520263671875, -0.0360107421875, -0.0269775390625, 0.0259246826171875, -0.004131317138671875, 0.04620361328125, 0.004016876220703125, 0.0160064697265625, -0.024993896484375, 0.044097900390625, 0.02105712890625, 0.02764892578125, -0.006805419921875, 0.05511474609375, 0.0261077880859375, 0.0034122467041015625, -0.033599853515625, -0.037933349609375, -0.0244903564453125, -0.022247314453125, 0.01158905029296875, -0.0012226104736328125, 0.033843994140625, 0.035736083984375, 0.06304931640625, 0.0244140625, 0.004486083984375, -0.01483917236328125, -0.0003387928009033203, -0.0188751220703125, 0.06280517578125, -0.010498046875, -0.00672149658203125, 0.024658203125, -0.0192718505859375, 0.0111846923828125, -0.003551483154296875, -0.005889892578125, 0.02508544921875, -0.00543212890625, 0.019378662109375, 0.01342010498046875, -0.01215362548828125, 0.03240966796875, 0.0758056640625, 0.006256103515625, 0.06732177734375, 0.03643798828125, 0.03326416015625, 0.048126220703125, 0.02655029296875, 0.027313232421875, 0.0019016265869140625, 0.08172607421875, 0.0240936279296875, -0.00021016597747802734, 0.058135986328125, -0.03271484375, 0.00391387939453125, -0.015533447265625, 0.019775390625, -0.0014514923095703125, 0.0178375244140625, -0.0037384033203125, -0.00885009765625, 0.034942626953125, 0.0147247314453125, -0.004734039306640625, 0.00860595703125, -0.01107025146484375, -0.02069091796875, -0.01068115234375, -0.0017757415771484375, 0.002948760986328125, -0.0014238357543945312, 0.024658203125, 0.0058441162109375, -0.006256103515625, -0.039276123046875, -0.053009033203125, 0.060638427734375, -0.0447998046875, 0.003265380859375, 0.01434326171875, -0.028350830078125, 0.0023708343505859375, -0.0193939208984375, 0.003894805908203125, -0.028167724609375, -0.006717681884765625, -0.0006661415100097656, -0.0271148681640625, 0.060302734375, 0.0288238525390625, 0.005275726318359375, -0.037322998046875, 0.0121917724609375, 0.017791748046875, 0.048248291015625, -0.01087188720703125, -0.00733184814453125, 0.02490234375, -0.07830810546875, -0.00914764404296875, -0.040557861328125, 0.0509033203125, -0.00537109375, -0.0192413330078125, 0.052490234375, -0.0306396484375, -0.0131378173828125, 0.023895263671875, 0.020477294921875, -0.0101165771484375, 0.0032672882080078125, 0.01496124267578125, -0.0482177734375, -0.01029205322265625, 0.0014371871948242188, -0.005222320556640625, 0.005863189697265625, 0.00662994384765625, -0.0516357421875, 0.05810546875, -0.0137786865234375, 0.0273590087890625, 0.03839111328125, 0.00472259521484375, -0.00859832763671875, -0.0168304443359375, -0.0232086181640625, 0.036895751953125, -0.040557861328125, 0.00020515918731689453, -0.063232421875, 0.01209259033203125, -0.033843994140625, 0.02227783203125, 0.0751953125, 0.0247955322265625, -0.03253173828125, -0.0302276611328125, 0.0279541015625, 0.06182861328125, 0.00550079345703125, 0.0225830078125, 0.041015625, -0.0183563232421875, 0.04986572265625, -0.0004954338073730469, 0.04296875, -0.0279693603515625, 0.027862548828125, 0.057373046875, 0.00514984130859375, -0.009674072265625, -0.004638671875, 0.0131683349609375, -0.033905029296875, 0.0002321004867553711, 0.0240020751953125, -0.041961669921875, 0.00988006591796875, 0.02978515625, 0.011993408203125, -0.0068206787109375, -0.0576171875, 0.00685882568359375, 0.022064208984375, -0.01568603515625, 0.0192718505859375, 0.0009479522705078125, 0.000690460205078125, 0.020172119140625, 0.019378662109375, -0.006374359130859375, 0.03564453125, 0.0028209686279296875, 0.059173583984375, 0.0125732421875, 0.018890380859375, -0.050689697265625, 0.01160430908203125, 0.0246124267578125, 0.05718994140625, -0.0499267578125, -0.046051025390625, 0.01190948486328125, 0.015838623046875, 0.00020015239715576172, 0.0205078125, 0.0123748779296875, -0.053558349609375, 0.015350341796875, -0.016357421875, -0.00690460205078125, 0.03521728515625, 0.019317626953125, -0.00023877620697021484, -0.03216552734375, -0.0251007080078125, -0.00197601318359375, 0.01151275634765625, 0.00014352798461914062, -0.023681640625, -0.043548583984375, -0.0306243896484375, 0.022125244140625, 0.00823974609375, 0.03912353515625, 0.01149749755859375, 0.0537109375, -0.00841522216796875, 0.0027923583984375, -0.02557373046875, -0.0709228515625, 0.01551055908203125, 0.03265380859375, 0.0299224853515625, -0.00035643577575683594, 0.035308837890625, 0.017333984375, -0.039825439453125, 0.0008249282836914062, 0.0036773681640625, -0.01419830322265625, 0.0307769775390625, -0.017547607421875, 0.050079345703125, 0.039276123046875, -0.00298309326171875, -0.026580810546875, 0.0031108856201171875, 0.0850830078125, -0.038482666015625, 0.06304931640625, -0.0269012451171875, -0.02191162109375, 0.006031036376953125, -0.056182861328125, 0.07647705078125, -0.032012939453125, -0.046600341796875, 0.01247406005859375, -0.032958984375, -0.02880859375, 0.007297515869140625, 0.033721923828125, -0.00980377197265625, 0.03643798828125, 0.00533294677734375, -0.0165557861328125, 0.005825042724609375, -0.01015472412109375, 0.0235748291015625, -0.0125579833984375, -0.004024505615234375, -0.00394439697265625, -0.0129547119140625, -0.004489898681640625, -0.03826904296875, 0.034149169921875, 0.06414794921875, 0.053466796875, -0.0166473388671875, 0.0501708984375, 0.0245208740234375, -0.007450103759765625, -0.023529052734375, 0.01473236083984375, 0.02679443359375, -0.04193115234375, -0.039947509765625, -0.0079345703125, 0.00634002685546875, 0.023712158203125, 0.022705078125, -0.0045013427734375, -0.04681396484375, 0.004131317138671875, 0.031982421875, 0.08563232421875, 0.019256591796875, -0.01611328125, -0.01262664794921875, -0.040618896484375, -0.024078369140625, 0.0504150390625, 0.03826904296875, -0.01305389404296875, 0.016845703125, 0.0229949951171875, -0.025177001953125, 0.040191650390625, -0.033416748046875, 0.056732177734375, 0.045257568359375, -0.0149078369140625, -0.0430908203125, -0.009368896484375, -0.00908660888671875, -0.0096588134765625, -0.0124053955078125, 0.059478759765625, -0.01446533203125, -0.019500732421875, -0.0128936767578125, -0.0092620849609375, 0.0183258056640625, -0.0078125, 0.0015392303466796875, -0.01401519775390625, 0.01629638671875, -0.01023101806640625, -0.08428955078125, -0.02166748046875, -0.0855712890625, 0.016326904296875, 0.036407470703125, -0.0296478271484375, -0.00012111663818359375, 0.004856109619140625, -0.002742767333984375, 0.0277252197265625, 0.0197601318359375, -0.07257080078125, 0.03057861328125, -0.01364898681640625, 0.01058197021484375, -0.007175445556640625, 0.007354736328125, -0.0013380050659179688, 0.0246124267578125, -0.02447509765625, -0.044464111328125, -0.0271759033203125, 0.03912353515625, -0.029510498046875, 0.033843994140625, 0.024139404296875, -0.036041259765625, 0.04254150390625, 0.07684326171875, 0.041229248046875, 0.1317138671875, -0.0106201171875, -0.0283966064453125, -0.033782958984375, 0.03363037109375, 0.0005478858947753906, -0.0175628662109375, 0.020050048828125, -0.0128936767578125, -0.01457977294921875, -0.0229339599609375, 0.00450897216796875, 0.0124969482421875, -0.049041748046875, -0.075439453125, 0.076171875, -0.0301513671875, -0.0345458984375, -0.0288543701171875, 0.0199432373046875, 0.0078277587890625, 0.00035452842712402344, -0.0013704299926757812, -0.0290679931640625, -0.01971435546875, 0.0145111083984375, 0.01158905029296875, 0.0024356842041015625, 0.018341064453125, 0.00618743896484375, -0.06195068359375, -0.0021514892578125, -0.00022721290588378906, -0.005401611328125, 0.05755615234375, -0.027557373046875, 0.033477783203125, 0.06988525390625, -0.02276611328125, 0.008880615234375, -0.0295562744140625, -0.06341552734375, -0.02099609375, -0.03753662109375, -0.01290130615234375, 0.00299835205078125, 0.051177978515625, 0.07098388671875, 0.0160675048828125, -0.043914794921875, -0.016998291015625, -0.017547607421875, -0.004329681396484375, -0.01221466064453125, 0.01168060302734375, -0.04498291015625, -0.0026760101318359375, -0.0010471343994140625, -0.0035572052001953125, -0.061309814453125, -0.0014524459838867188, -0.04559326171875, -0.03759765625, -0.034393310546875, -0.01004791259765625, 0.015533447265625, 0.00716400146484375, 0.0533447265625, -0.022430419921875, 0.051483154296875, -0.0260772705078125, 0.01776123046875, 0.05987548828125, -0.00768280029296875, 0.016082763671875, 0.017730712890625, -0.035675048828125, 0.007427215576171875, -0.00048232078552246094, 0.0101776123046875, -0.028045654296875, -0.024627685546875, 0.0166473388671875, -0.007785797119140625, -0.0396728515625, -0.00968170166015625, 0.0242462158203125, 0.0224456787109375, -0.0222930908203125, 0.06585693359375, 0.005565643310546875, 0.0001919269561767578, -0.00624847412109375, 0.02813720703125, -0.048553466796875, -0.002475738525390625, -0.00478363037109375, -0.058685302734375, -0.00270843505859375, 0.0260009765625, -0.01163482666015625, -0.05267333984375, 0.0201416015625, 0.0133514404296875, 0.028350830078125, 0.00629425048828125 ]
e84487d56eea7940184fae14a6162d548c7b5ae0
Wordpress Stackexchange Q: How to check if the product is in a certain category on a single-product.php in Woocommerce? How in the world can I check if a product is in a certain product category on the single-product.php? <?php if (is_product_category('audio')) { echo 'In audio'; woocommerce_get_template_part( 'content', 'single-product' ); } elseif (is_product_category('elektro')) { echo 'In elektro'; woocommerce_get_template_part( 'content', 'single-product' ); } else { echo 'some blabla'; } ?> is_product_category('slug') does not have an effect on the single-product.php. I want to have the upper conditionals. Any solution for this on a single-product page? A: It's worth noting that you can go through a list of options by calling an array rather than having to clutter up your code with lots of elseif checks, assuming you want to do the same thing with each category that is. if( has_term( array( 'laptop', 'fridge', 'hats', 'magic wand' ), 'product_cat' ) ) : // Do stuff here else : // Do some other stuff endif;
Q: How to check if the product is in a certain category on a single-product.php in Woocommerce? How in the world can I check if a product is in a certain product category on the single-product.php? <?php if (is_product_category('audio')) { echo 'In audio'; woocommerce_get_template_part( 'content', 'single-product' ); } elseif (is_product_category('elektro')) { echo 'In elektro'; woocommerce_get_template_part( 'content', 'single-product' ); } else { echo 'some blabla'; } ?> is_product_category('slug') does not have an effect on the single-product.php. I want to have the upper conditionals. Any solution for this on a single-product page? A: It's worth noting that you can go through a list of options by calling an array rather than having to clutter up your code with lots of elseif checks, assuming you want to do the same thing with each category that is. if( has_term( array( 'laptop', 'fridge', 'hats', 'magic wand' ), 'product_cat' ) ) : // Do stuff here else : // Do some other stuff endif; A: This is old but just in case people are still looking WooThemes as a simple solution: if ( is_product() && has_term( 'your_category', 'product_cat' ) ) { //do code } *Change 'your_category' to whatever you are using. Here is the link to the documentation: https://docs.woothemes.com/document/remov-product-content-based-on-category/ A: has_term should work in this case: if ( has_term( 'audio', 'product_cat' ) ) { echo 'In audio'; woocommerce_get_template_part( 'content', 'single-product' ); } elseif ( has_term( 'elektro', 'product_cat' ) ) { echo 'In elektro'; woocommerce_get_template_part( 'content', 'single-product' ); } else { echo 'some blabla'; } A: I don't think get_categories() is the best option for you in this case because it returns a string with all the categories listed as anchor tags, fine for displaying, but not great for figuring out in code what the categories are. Ok, so the first thing you need to do is grab the product/post object for the current page if you don't already have it: global $post; Then you can get the product category term objects (the categories) for the product. Here I'm turning the category term objects into a simple array named $categories so it's easier to see what slugs are assigned. Note that this will return all categories assigned to the product, not just the one of the current page, ie if we're on /shop/audio/funzo/: $terms = wp_get_post_terms( $post->ID, 'product_cat' ); foreach ( $terms as $term ) $categories[] = $term->slug; Then we just have to check whether a category is in the list: if ( in_array( 'audio', $categories ) ) { // do something Putting it all together: <?php global $post; $terms = wp_get_post_terms( $post->ID, 'product_cat' ); foreach ( $terms as $term ) $categories[] = $term->slug; if ( in_array( 'audio', $categories ) ) { echo 'In audio'; woocommerce_get_template_part( 'content', 'single-product' ); } elseif ( in_array( 'elektro', $categories ) ) { echo 'In elektro'; woocommerce_get_template_part( 'content', 'single-product' ); } else { echo 'some blabla'; } Hopefully this is what you were looking for and answers your question. A: I'd look at using the get_categories() function of the WC_Product class. You can find the link to the documentation here. Basically within the loop of the page call the function to return the categories associated with the product.
wordpress
{ "language": "en", "length": 526, "provenance": "stackexchange_00019.jsonl.gz:426741", "question_score": "30", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75906" }
[ 0.01302337646484375, 0.007167816162109375, -0.0423583984375, -0.06268310546875, 0.0254364013671875, -0.011871337890625, 0.00806427001953125, 0.01009368896484375, -0.0345458984375, 0.01461029052734375, -0.03759765625, 0.0046539306640625, -0.023651123046875, -0.0211181640625, 0.0200347900390625, -0.05047607421875, 0.009552001953125, 0.001995086669921875, 0.016265869140625, -0.00305938720703125, 0.0060577392578125, 0.01165771484375, -0.0095062255859375, -0.0025691986083984375, 0.02557373046875, -0.050048828125, 0.09588623046875, -0.043548583984375, 0.04034423828125, -0.035491943359375, 0.031951904296875, -0.007778167724609375, 0.0105133056640625, -0.00125885009765625, 0.024932861328125, 0.03900146484375, 0.0169677734375, 0.0021305084228515625, 0.040313720703125, 0.007328033447265625, 0.06072998046875, -0.052001953125, -0.001964569091796875, 0.0438232421875, 0.0245513916015625, -0.0560302734375, 0.04571533203125, -0.0858154296875, 0.032806396484375, -0.05596923828125, 0.021575927734375, 0.0019817352294921875, 0.0211029052734375, -0.059051513671875, -0.031829833984375, 0.022125244140625, -0.0673828125, 0.0270843505859375, 0.0236968994140625, 0.02197265625, -0.01508331298828125, -0.0291900634765625, 0.0071563720703125, -0.034912109375, 0.00022518634796142578, -0.002765655517578125, -0.01322174072265625, 0.033782958984375, -0.05096435546875, -0.0307464599609375, 0.0177764892578125, -0.0255279541015625, 0.00623321533203125, 0.0300445556640625, -0.01629638671875, -0.0504150390625, 0.0311431884765625, -0.01556396484375, 0.0199737548828125, 0.0177764892578125, -0.0178375244140625, 0.01317596435546875, 0.0128631591796875, -0.072021484375, 0.04400634765625, -0.018890380859375, -0.01158905029296875, -0.003391265869140625, -0.0262603759765625, -0.03436279296875, -0.0328369140625, 0.00711822509765625, -0.03399658203125, 0.006694793701171875, -0.0305633544921875, -0.0089874267578125, 0.020660400390625, 0.0484619140625, 0.017578125, 0.01393890380859375, 0.0245819091796875, -0.05218505859375, 0.0160369873046875, -0.039886474609375, 0.033721923828125, 0.0281982421875, -0.005828857421875, -0.0253448486328125, 0.0421142578125, 0.00917816162109375, -0.0033283233642578125, 0.05126953125, -0.046051025390625, -0.046661376953125, -0.0141754150390625, 0.06085205078125, -0.056488037109375, 0.00836944580078125, 0.0014219284057617188, 0.023773193359375, 0.0212554931640625, 0.056396484375, 0.0858154296875, -0.061309814453125, -0.00643157958984375, 0.007049560546875, -0.0201263427734375, -0.10101318359375, -0.00939178466796875, 0.000034809112548828125, -0.0215606689453125, 0.033477783203125, 0.00653839111328125, 0.0169677734375, -0.0162811279296875, 0.00010710954666137695, 0.0160369873046875, 0.07806396484375, 0.0204620361328125, -0.0245361328125, 0.0269775390625, 0.022979736328125, 0.0127716064453125, 0.00041556358337402344, 0.047943115234375, -0.005352020263671875, 0.01053619384765625, 0.02276611328125, 0.0058135986328125, -0.00814056396484375, 0.06414794921875, -0.00017368793487548828, 0.00261688232421875, 0.0275726318359375, 0.037750244140625, 0.02203369140625, 0.041259765625, -0.00699615478515625, -0.01910400390625, -0.01171112060546875, 0.01251220703125, -0.01181793212890625, 0.0277862548828125, -0.035003662109375, -0.042633056640625, 0.019989013671875, -0.07916259765625, -0.0170440673828125, 0.0120086669921875, 0.00841522216796875, -0.037384033203125, 0.0197296142578125, 0.029998779296875, -0.0083465576171875, -0.0086517333984375, -0.0010089874267578125, -0.018768310546875, 0.0148773193359375, 0.040313720703125, 0.025726318359375, -0.034698486328125, -0.048858642578125, 0.0523681640625, -0.032958984375, -0.028228759765625, 0.034942626953125, 0.01277923583984375, 0.024444580078125, -0.0178375244140625, 0.0020389556884765625, 0.044769287109375, 0.050933837890625, -0.01239776611328125, -0.002033233642578125, 0.014892578125, -0.049774169921875, 0.0224151611328125, -0.0193328857421875, -0.0024585723876953125, 0.01198577880859375, 0.02593994140625, 0.00502777099609375, 0.0038166046142578125, -0.0159454345703125, -0.05535888671875, 0.0010881423950195312, -0.01262664794921875, 0.03887939453125, -0.06231689453125, 0.01091766357421875, 0.0293121337890625, -0.026824951171875, -0.003692626953125, -0.0472412109375, 0.0162200927734375, -0.0242919921875, 0.015594482421875, 0.0548095703125, -0.01062774658203125, 0.0270233154296875, -0.01263427734375, -0.03350830078125, -0.0026187896728515625, 0.042083740234375, 0.043670654296875, 0.044464111328125, -0.0211334228515625, 0.0193328857421875, 0.0518798828125, 0.06500244140625, -0.057525634765625, -0.06292724609375, 0.0341796875, 0.00860595703125, -0.020904541015625, 0.0316162109375, 0.045379638671875, -0.0295867919921875, -0.02252197265625, 0.0252227783203125, 0.03948974609375, -0.0081024169921875, -0.031280517578125, -0.021209716796875, 0.033782958984375, -0.0731201171875, -0.0379638671875, 0.003391265869140625, -0.03155517578125, 0.01461029052734375, -0.01210784912109375, 0.045501708984375, 0.016357421875, 0.02825927734375, -0.01277923583984375, 0.047698974609375, -0.0282745361328125, -0.0222320556640625, -0.021392822265625, 0.040618896484375, -0.0189666748046875, -0.0013418197631835938, 0.023681640625, -0.0193328857421875, 0.03961181640625, -0.00864410400390625, 0.019775390625, 0.00705718994140625, -0.010284423828125, -0.0031452178955078125, 0.00136566162109375, -0.036834716796875, -0.0077362060546875, 0.051910400390625, 0.023162841796875, -0.005615234375, -0.050201416015625, -0.00580596923828125, 0.028839111328125, 0.013946533203125, -0.00897216796875, 0.047088623046875, 0.02508544921875, -0.013153076171875, -0.0462646484375, -0.055084228515625, 0.0143585205078125, -0.00928497314453125, -0.0175018310546875, -0.01629638671875, 0.0200042724609375, 0.041229248046875, -0.013336181640625, 0.019012451171875, -0.0295257568359375, -0.0002644062042236328, 0.0050201416015625, -0.0256195068359375, 0.033203125, -0.0280609130859375, 0.0250091552734375, 0.045867919921875, -0.007781982421875, 0.01436614990234375, 0.0004944801330566406, -0.0125885009765625, 0.003887176513671875, 0.004756927490234375, -0.02838134765625, 0.0066986083984375, -0.06414794921875, 0.0081024169921875, 0.03424072265625, 0.0280914306640625, 0.0305938720703125, -0.0197906494140625, 0.042633056640625, 0.03228759765625, -0.036651611328125, -0.0703125, 0.0023326873779296875, -0.051849365234375, 0.0673828125, -0.02593994140625, 0.0132904052734375, -0.0474853515625, 0.005916595458984375, 0.01415252685546875, -0.0205841064453125, 0.0012102127075195312, -0.0242462158203125, -0.031707763671875, -0.04852294921875, -0.0089263916015625, -0.00505828857421875, 0.00823974609375, -0.0007481575012207031, 0.029876708984375, -0.002384185791015625, -0.07318115234375, -0.005367279052734375, 0.0206451416015625, -0.01128387451171875, 0.01904296875, -0.0306396484375, -0.039642333984375, -0.0249786376953125, 0.002239227294921875, 0.0005593299865722656, -0.0230712890625, 0.03216552734375, 0.006988525390625, 0.0027008056640625, 0.016510009765625, 0.0296173095703125, -0.01314544677734375, -0.00678253173828125, 0.040771484375, 0.030303955078125, -0.0175628662109375, -0.03460693359375, 0.00669097900390625, -0.0304718017578125, 0.037322998046875, 0.0185089111328125, -0.00905609130859375, 0.0194091796875, 0.00278472900390625, -0.005481719970703125, 0.011260986328125, -0.00849151611328125, -0.038726806640625, 0.01043701171875, 0.0081634521484375, 0.00983428955078125, 0.013031005859375, -0.00489044189453125, -0.039764404296875, -0.018829345703125, -0.0202178955078125, -0.00476837158203125, -0.0197906494140625, 0.018341064453125, -0.0067596435546875, -0.031982421875, 0.0265655517578125, -0.0113372802734375, 0.01611328125, -0.00917816162109375, -0.0224151611328125, 0.01457977294921875, 0.080810546875, -0.01338958740234375, -0.034820556640625, -0.03155517578125, -0.002681732177734375, -0.006778717041015625, -0.01232147216796875, -0.0256195068359375, -0.00688934326171875, -0.0266876220703125, 0.004520416259765625, -0.002407073974609375, -0.017486572265625, -0.0272979736328125, -0.01788330078125, -0.046600341796875, -0.006565093994140625, 0.030731201171875, -0.09381103515625, 0.03363037109375, 0.033782958984375, -0.002689361572265625, 0.0163421630859375, -0.01284027099609375, -0.068359375, -0.031982421875, -0.0007834434509277344, 0.0156402587890625, -0.0122222900390625, -0.032135009765625, 0.03533935546875, -0.0222930908203125, 0.025054931640625, -0.0022869110107421875, -0.013763427734375, 0.015899658203125, 0.023193359375, -0.0023746490478515625, -0.00040411949157714844, -0.004329681396484375, -0.025299072265625, -0.013763427734375, -0.019317626953125, 0.00522613525390625, 0.048004150390625, -0.00955963134765625, 0.011383056640625, -0.0183563232421875, -0.003398895263671875, -0.07086181640625, -0.0035152435302734375, 0.0156097412109375, -0.00183868408203125, -0.0160980224609375, 0.0301666259765625, 0.01074981689453125, -0.052978515625, 0.036529541015625, -0.0031528472900390625, -0.033050537109375, 0.01849365234375, 0.033935546875, 0.014373779296875, -0.031494140625, -0.0254058837890625, 0.00930023193359375, 0.054901123046875, 0.01392364501953125, 0.0097808837890625, 0.0015592575073242188, -0.042449951171875, 0.044464111328125, 0.0249786376953125, -0.01557159423828125, 0.01374053955078125, 0.053070068359375, 0.003875732421875, -0.00821685791015625, -0.00196075439453125, -0.03350830078125, 0.0219573974609375, 0.01282501220703125, -0.028472900390625, 0.0037784576416015625, -0.009063720703125, 0.0236663818359375, -0.01177978515625, 0.01216888427734375, -0.0374755859375, -0.0389404296875, 0.00150299072265625, 0.00508880615234375, 0.054718017578125, 0.04620361328125, -0.00955963134765625, 0.05322265625, 0.0296478271484375, -0.020660400390625, -0.0203704833984375, 0.0146942138671875, -0.0183868408203125, 0.01052093505859375, -0.0170135498046875, -0.03448486328125, -0.0296173095703125, 0.006679534912109375, -0.040283203125, -0.0180816650390625, -0.041961669921875, -0.02490234375, -0.00621795654296875, -0.012237548828125, 0.0238800048828125, -0.0007634162902832031, 0.0177764892578125, -0.0174713134765625, -0.01739501953125, 0.007427215576171875, -0.0970458984375, 0.01739501953125, -0.043426513671875, -0.013214111328125, 0.01134490966796875, -0.017913818359375, 0.0168304443359375, 0.01349639892578125, 0.0162353515625, 0.0056610107421875, -0.01200103759765625, 0.00812530517578125, 0.032806396484375, 0.0258636474609375, 0.044708251953125, -0.04901123046875, -0.03240966796875, 0.001087188720703125, -0.00522613525390625, -0.03216552734375, -0.011962890625, -0.0016937255859375, 0.0156707763671875, -0.03631591796875, -0.0372314453125, 0.05364990234375, 0.00939178466796875, -0.02264404296875, -0.0012426376342773438, -0.0037136077880859375, -0.01306915283203125, -0.0245819091796875, 0.006072998046875, 0.028472900390625, 0.0186004638671875, -0.03253173828125, 0.0174102783203125, -0.038787841796875, 0.01432037353515625, 0.0604248046875, -0.02667236328125, 0.03521728515625, 0.0243377685546875, -0.037994384765625, -0.0193023681640625, 0.030487060546875, -0.041900634765625, -0.0034847259521484375, -0.0247955322265625, -0.037750244140625, 0.0130157470703125, 0.008514404296875, 0.0517578125, -0.0158843994140625, -0.051177978515625, 0.021514892578125, -0.0118255615234375, 0.06298828125, 0.0223846435546875, -0.0462646484375, 0.0036334991455078125, -0.031768798828125, -0.0182647705078125, 0.01302337646484375, -0.04248046875, -0.031341552734375, -0.0242767333984375, -0.0074920654296875, 0.02032470703125, -0.0137939453125, -0.0138092041015625, -0.006862640380859375, 0.00997161865234375, -0.0042572021484375, -0.009307861328125, -0.00925445556640625, 0.01149749755859375, 0.0269317626953125, 0.020721435546875, 0.0007443428039550781, -0.0083465576171875, -0.01287078857421875, -0.0209197998046875, -0.016326904296875, -0.0268096923828125, 0.0162353515625, 0.00238037109375, 0.01824951171875, -0.007595062255859375, 0.036041259765625, 0.0140380859375, -0.00669097900390625, -0.014862060546875, -0.005207061767578125, -0.01003265380859375, 0.00063323974609375, 0.0017118453979492188, -0.022857666015625, 0.0184173583984375, -0.0631103515625, -0.00687408447265625, 0.006847381591796875, -0.0257568359375, 0.061920166015625, -0.040740966796875, 0.03497314453125, 0.066650390625, -0.0338134765625, 0.050201416015625, 0.031890869140625, 0.003543853759765625, 0.03021240234375, -0.00467681884765625, 0.0158538818359375, -0.00799560546875, 0.01110076904296875, 0.037933349609375, -0.0147857666015625, 0.0292205810546875, -0.023895263671875, 0.00508880615234375, 0.0230712890625, -0.03045654296875, -0.00756072998046875, 0.036712646484375, 0.026397705078125, -0.06353759765625, -0.0123291015625, 0.0203094482421875, -0.0012750625610351562, -0.0148468017578125, -0.0012865066528320312, -0.01033782958984375, -0.0180816650390625, 0.03515625, -0.021636962890625, -0.0026760101318359375, 0.019500732421875, -0.016998291015625, 0.0230865478515625, 0.0306396484375, 0.050140380859375, 0.001255035400390625, -0.08984375, -0.053314208984375, 0.0587158203125, -0.050201416015625, -0.0288848876953125, -0.019256591796875, 0.0243377685546875, -0.01294708251953125, -0.03558349609375, 0.053497314453125, -0.0204925537109375, 0.032806396484375, 0.047760009765625, -0.017730712890625, 0.01294708251953125, 0.045074462890625, -0.0006251335144042969, 0.0016756057739257812, 0.006622314453125, -0.0557861328125, -0.02557373046875, 0.00891876220703125, 0.0260772705078125, 0.0226898193359375, -0.08740234375, 0.006710052490234375, -0.076416015625, 0.055816650390625, -0.007526397705078125, -0.0121002197265625, 0.0305328369140625, -0.0140838623046875, -0.0206756591796875, 0.034942626953125, 0.0256805419921875, -0.01543426513671875, 0.01153564453125, 0.059295654296875, -0.0170135498046875, 0.003917694091796875, 0.03314208984375, 0.0032901763916015625, -0.0185394287109375, 0.01776123046875, -0.08428955078125, 0.00897979736328125, -0.0193023681640625, 0.05999755859375, -0.003635406494140625, -0.0189666748046875, 0.01372528076171875, -0.034393310546875, -0.031890869140625, 0.0186767578125, 0.04376220703125, 0.055145263671875, -0.039581298828125, -0.035247802734375, 0.0148162841796875, 0.075927734375, 0.041748046875, -0.002666473388671875, -0.00789642333984375, 0.0234222412109375, 0.07025146484375, 0.006755828857421875, -0.0248870849609375, 0.03961181640625, -0.0118560791015625, -0.038116455078125, 0.044281005859375, 0.0017766952514648438, 0.044036865234375, -0.0130767822265625, -0.0022640228271484375, -0.0009112358093261719, 0.0252685546875, 0.0235595703125, -0.0186309814453125, 0.028350830078125, 0.026336669921875, -0.028961181640625, 0.00022602081298828125, -0.039581298828125, 0.0304718017578125, 0.03094482421875, 0.0066986083984375, -0.0258331298828125, 0.062255859375, -0.041168212890625, 0.06573486328125, -0.0278778076171875, 0.0221405029296875, 0.0182342529296875, 0.01299285888671875, 0.06982421875, -0.01036834716796875, 0.01568603515625, 0.01465606689453125, -0.0213775634765625, 0.018310546875, 0.030853271484375, 0.0035839080810546875, 0.021759033203125, 0.09796142578125, 0.00830841064453125, -0.0046539306640625, -0.0447998046875, -0.0418701171875, 0.01226043701171875, -0.009429931640625, -0.0012264251708984375, 0.0006413459777832031, -0.0151519775390625, 0.0215911865234375, 0.046875, -0.07000732421875, 0.01192474365234375, 0.05950927734375, 0.031402587890625, 0.007305145263671875, 0.0113525390625, -0.07562255859375, -0.032684326171875, -0.05218505859375, 0.0531005859375, 0.03338623046875, 0.0828857421875, -0.004230499267578125, 0.0789794921875, -0.06707763671875, -0.048736572265625, -0.0113983154296875, 0.01161956787109375, -0.0283050537109375, 0.0009393692016601562, -0.050750732421875, -0.05145263671875, 0.038330078125, 0.049346923828125, 0.0212860107421875, 0.00820159912109375, 0.00930023193359375, 0.059814453125, 0.05242919921875, 0.0020656585693359375, 0.06927490234375, 0.0189971923828125, -0.0013170242309570312, -0.01959228515625, 0.0645751953125, 0.03961181640625, 0.03253173828125, -0.0259552001953125, 0.0673828125, 0.04766845703125, -0.0171356201171875, 0.0291595458984375, 0.002719879150390625, -0.03662109375, 0.0257415771484375, -0.00018131732940673828, 0.08465576171875, 0.01326751708984375, -0.06005859375, -0.03131103515625, 0.017608642578125, -0.02874755859375, -0.0005202293395996094, 0.03558349609375, -0.0200347900390625, 0.02020263671875, 0.01430511474609375, -0.022003173828125, 0.0308990478515625, 0.006572723388671875, -0.017730712890625, -0.02069091796875, 0.0283660888671875, -0.0153656005859375, 0.0248870849609375, 0.0226898193359375, 0.044708251953125, 0.0092315673828125, 0.0250244140625, 0.028076171875, -0.0020198822021484375, 0.0042572021484375, -0.0170745849609375, 0.041259765625, -0.05316162109375, -0.044403076171875, 0.05975341796875, -0.029205322265625, -0.01267242431640625, 0.007720947265625, -0.010772705078125, -0.0200653076171875, 0.07696533203125, -0.0229339599609375, -0.0210723876953125, -0.0091705322265625, 0.03375244140625, -0.0299072265625, 0.055145263671875, -0.01520538330078125, -0.0302581787109375, -0.0300140380859375, -0.00881195068359375, 0.017913818359375, 0.0194244384765625, 0.006908416748046875, 0.01003265380859375, -0.0340576171875, -0.0291748046875, -0.0243682861328125, 0.01468658447265625, -0.051025390625, 0.03265380859375, -0.005939483642578125, 0.01433563232421875, 0.0014009475708007812, -0.01374053955078125, 0.01110076904296875, 0.0128631591796875, 0.0038967132568359375, -0.006824493408203125, -0.0137939453125, 0.01251220703125, 0.049560546875, 0.000012814998626708984, -0.034149169921875, -0.010467529296875, 0.0789794921875, -0.04248046875, -0.020111083984375, 0.01568603515625, -0.03936767578125, -0.040863037109375, -0.0019025802612304688, -0.0227203369140625, -0.009368896484375, -0.0394287109375, -0.021026611328125, -0.0067596435546875, 0.035614013671875, -0.029510498046875, 0.020782470703125, -0.029998779296875, -0.0399169921875, 0.052642822265625, -0.0205078125, -0.00823211669921875, 0.007007598876953125, 0.0230712890625, -0.047088623046875, 0.007732391357421875, -0.032135009765625, -0.030242919921875, -0.0208282470703125, 0.0243682861328125, 0.024261474609375, -0.03619384765625, -0.0511474609375, 0.01293182373046875, 0.005283355712890625, 0.053009033203125, 0.036224365234375, -0.02008056640625, 0.007648468017578125, 0.01464080810546875, -0.020904541015625, -0.0201873779296875, 0.0296630859375, -0.036346435546875, -0.0170440673828125, 0.005558013916015625, 0.000762939453125, 0.032684326171875, -0.03143310546875, -0.05657958984375, 0.044525146484375, -0.0014314651489257812, -0.03228759765625, -0.01027679443359375, 0.004154205322265625, -0.0304107666015625, 0.043487548828125, -0.0175018310546875, 0.01273345947265625, 0.00649261474609375, 0.036163330078125, 0.0254974365234375, 0.0001189112663269043, 0.0238800048828125, 0.006183624267578125, -0.054962158203125, 0.00867462158203125, -0.00800323486328125, 0.00844573974609375, -0.014373779296875, 0.0078887939453125, -0.0333251953125, 0.0032825469970703125, -0.0460205078125, -0.06671142578125, -0.0121002197265625, 0.0205535888671875, 0.037628173828125, -0.0254974365234375, -0.062164306640625, -0.058441162109375, 0.0131072998046875, 0.02471923828125, 0.014556884765625, 0.018798828125, -0.028564453125, -0.01392364501953125, -0.0145416259765625, 0.037811279296875, 0.0174560546875, -0.0287933349609375, 0.0335693359375, 0.019012451171875, -0.014129638671875, 0.0169219970703125, 0.032501220703125, -0.05426025390625, 0.0015048980712890625, -0.00531005859375, -0.004852294921875, -0.09490966796875, -0.01092529296875, -0.047332763671875, 0.01076507568359375, -0.03692626953125, -0.00029659271240234375, 0.0037479400634765625, -0.0625, 0.0177154541015625, 0.028839111328125, 0.0248870849609375, -0.00594329833984375, -0.0224456787109375, 0.03533935546875, 0.00533294677734375, 0.0399169921875, -0.01239013671875, -0.0343017578125, 0.0170745849609375, 0.0181884765625, 0.0010356903076171875, -0.037445068359375, 0.0246734619140625, 0.025543212890625, 0.0650634765625, 0.0185089111328125, 0.00600433349609375, -0.005641937255859375, 0.044586181640625, 0.01450347900390625, -0.026885986328125, 0.03131103515625, -0.03912353515625, 0.0029964447021484375, 0.002269744873046875, -0.046295166015625, -0.0213623046875, -0.00438690185546875, -0.01097869873046875, -0.0304718017578125, -0.00421142578125 ]
21c3837bc3e035b7fad5cdfa257306c871914488
Wordpress Stackexchange Q: Click link on plugin/theme page and open the contextual help on a specific tab I've added a help section using the add_help_tab() function. I'd like to be able to click a link somewhere on the theme/plugin page and have the help panel open at whichever tab I need. Can someone help me out with the required JS for this? Each tab panel has a unique hash link associated with it so I'd need to use this somehow I'm guessing /themes.php?page=theme_options#tab-panel-general A: Maybe the Q is bordering the off-topic, but IMO interesting in WordPress context. I've tested this directly in FireBug, in the Dashboard page (wp-admin/index.php). var $ =jQuery.noConflict(); // Remove 'active' class from all link tabs $('li[id^="tab-link-"]').each(function(){ $(this).removeClass('active'); }); // Hide all panels $('div[id^="tab-panel-"]').each(function(){ $(this).css('display','none'); }); // Set our desired link/panel $('#tab-link-help-content').addClass('active'); $('#tab-panel-help-content').css('display','block'); // Force click on the Help tab $('#contextual-help-link').click();
Q: Click link on plugin/theme page and open the contextual help on a specific tab I've added a help section using the add_help_tab() function. I'd like to be able to click a link somewhere on the theme/plugin page and have the help panel open at whichever tab I need. Can someone help me out with the required JS for this? Each tab panel has a unique hash link associated with it so I'd need to use this somehow I'm guessing /themes.php?page=theme_options#tab-panel-general A: Maybe the Q is bordering the off-topic, but IMO interesting in WordPress context. I've tested this directly in FireBug, in the Dashboard page (wp-admin/index.php). var $ =jQuery.noConflict(); // Remove 'active' class from all link tabs $('li[id^="tab-link-"]').each(function(){ $(this).removeClass('active'); }); // Hide all panels $('div[id^="tab-panel-"]').each(function(){ $(this).css('display','none'); }); // Set our desired link/panel $('#tab-link-help-content').addClass('active'); $('#tab-panel-help-content').css('display','block'); // Force click on the Help tab $('#contextual-help-link').click();
wordpress
{ "language": "en", "length": 142, "provenance": "stackexchange_00019.jsonl.gz:426756", "question_score": "4", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75955" }
[ 0.05902099609375, -0.0003864765167236328, -0.0130767822265625, -0.0216827392578125, 0.042755126953125, -0.057159423828125, 0.0684814453125, -0.0025119781494140625, 0.0018510818481445312, 0.0184173583984375, 0.003124237060546875, -0.0170745849609375, 0.00042057037353515625, -0.0413818359375, -0.00434112548828125, -0.01227569580078125, 0.04656982421875, -0.044219970703125, 0.0030574798583984375, -0.0130767822265625, -0.005611419677734375, -0.0009088516235351562, 0.0248260498046875, 0.07183837890625, 0.028167724609375, -0.00665283203125, 0.07293701171875, 0.006496429443359375, 0.019439697265625, 0.004180908203125, 0.024139404296875, -0.04449462890625, 0.031646728515625, 0.013397216796875, -0.0201873779296875, -0.0335693359375, 0.0257568359375, -0.006732940673828125, -0.0031185150146484375, 0.03192138671875, 0.041748046875, -0.01776123046875, -0.04193115234375, 0.053619384765625, -0.029632568359375, -0.028472900390625, 0.0267333984375, -0.0283966064453125, 0.01313018798828125, 0.0199432373046875, 0.0071563720703125, 0.050567626953125, 0.01393890380859375, -0.0826416015625, 0.01259613037109375, 0.0196075439453125, -0.03302001953125, -0.033721923828125, 0.015045166015625, 0.05938720703125, 0.02655029296875, -0.0214080810546875, -0.0115814208984375, -0.02899169921875, -0.019805908203125, 0.01216888427734375, 0.01216888427734375, -0.0043792724609375, -0.018890380859375, 0.003574371337890625, 0.01617431640625, -0.0122528076171875, -0.0240325927734375, 0.00841522216796875, -0.017608642578125, -0.0038814544677734375, 0.03875732421875, -0.00968170166015625, -0.0123291015625, 0.0246124267578125, 0.0034770965576171875, 0.013153076171875, 0.015960693359375, -0.0129547119140625, -0.01291656494140625, -0.0020465850830078125, -0.0257110595703125, -0.007843017578125, -0.01493072509765625, -0.0079498291015625, -0.021484375, -0.006000518798828125, 0.0008611679077148438, 0.00847625732421875, -0.0297088623046875, 0.00012731552124023438, 0.03143310546875, 0.027587890625, 0.03900146484375, -0.001911163330078125, 0.03607177734375, -0.059783935546875, 0.0267333984375, -0.0262298583984375, -0.024017333984375, 0.057586669921875, 0.0229034423828125, 0.012481689453125, -0.0198822021484375, -0.0017108917236328125, -0.01363372802734375, -0.053741455078125, 0.0234527587890625, 0.01044464111328125, -0.004444122314453125, -0.0322265625, -0.0340576171875, 0.019683837890625, -0.0064697265625, -0.00042438507080078125, -0.01303863525390625, 0.0033092498779296875, -0.03363037109375, 0.01016998291015625, -0.0005221366882324219, -0.016265869140625, -0.0184478759765625, 0.002048492431640625, -0.0305328369140625, -0.0217437744140625, -0.0287628173828125, 0.0278778076171875, 0.08123779296875, 0.054656982421875, 0.032989501953125, -0.00957489013671875, 0.037322998046875, -0.019927978515625, -0.007598876953125, -0.0132293701171875, 0.0291900634765625, 0.0173797607421875, 0.01384735107421875, -0.032501220703125, 0.005336761474609375, 0.0107879638671875, 0.01312255859375, 0.0203399658203125, -0.00872039794921875, -0.04833984375, 0.059051513671875, -0.056884765625, 0.047332763671875, 0.00798797607421875, -0.0201263427734375, -0.024505615234375, 0.047454833984375, -0.03955078125, -0.0169525146484375, -0.05047607421875, 0.0638427734375, 0.0196685791015625, 0.01198577880859375, -0.036529541015625, -0.036102294921875, -0.058319091796875, -0.067626953125, -0.0208892822265625, 0.012298583984375, 0.007602691650390625, -0.048614501953125, -0.044219970703125, 0.00927734375, 0.01800537109375, 0.0027751922607421875, 0.0657958984375, 0.01142120361328125, 0.02850341796875, 0.037261962890625, 0.02587890625, -0.0007243156433105469, -0.0281982421875, 0.1060791015625, -0.0312042236328125, -0.0419921875, 0.068115234375, -0.01788330078125, 0.039581298828125, 0.03424072265625, -0.00974273681640625, -0.007663726806640625, 0.0091400146484375, 0.00687408447265625, -0.020355224609375, -0.0006151199340820312, -0.0216217041015625, -0.008331298828125, 0.00765228271484375, -0.0256500244140625, 0.0181427001953125, 0.04833984375, 0.004787445068359375, -0.0198822021484375, 0.0017213821411132812, -0.050079345703125, -0.016448974609375, -0.0115966796875, 0.0188446044921875, -0.0286712646484375, 0.006374359130859375, 0.0166778564453125, 0.00923919677734375, 0.0004367828369140625, -0.064697265625, -0.0238037109375, 0.0115509033203125, 0.012908935546875, 0.05560302734375, -0.0011987686157226562, 0.02728271484375, 0.0208282470703125, -0.04412841796875, 0.018524169921875, 0.02984619140625, 0.00022804737091064453, 0.027130126953125, -0.031402587890625, -0.0064544677734375, -0.060333251953125, 0.01407623291015625, -0.0274810791015625, 0.056427001953125, 0.057220458984375, 0.0523681640625, -0.0226898193359375, -0.0041351318359375, 0.031158447265625, -0.0291748046875, -0.0065460205078125, 0.0209197998046875, 0.04541015625, 0.0016689300537109375, -0.03350830078125, -0.050872802734375, -0.002918243408203125, -0.0576171875, 0.0204925537109375, -0.029998779296875, -0.014678955078125, 0.03411865234375, 0.0372314453125, 0.028289794921875, 0.020263671875, 0.0572509765625, 0.0014905929565429688, 0.0243377685546875, -0.0233154296875, -0.0029850006103515625, -0.023834228515625, -0.01094818115234375, 0.0006394386291503906, -0.051300048828125, -0.028289794921875, -0.0158843994140625, 0.0421142578125, -0.062286376953125, 0.028289794921875, 0.0040130615234375, -0.006343841552734375, -0.0550537109375, 0.026763916015625, 0.0092315673828125, -0.016387939453125, 0.023529052734375, 0.056854248046875, -0.0232696533203125, -0.06329345703125, -0.01026153564453125, 0.03997802734375, 0.01690673828125, -0.01053619384765625, -0.0006475448608398438, 0.041259765625, -0.007015228271484375, 0.0369873046875, 0.0128936767578125, 0.02691650390625, -0.022064208984375, -0.01465606689453125, -0.0341796875, -0.0023136138916015625, 0.022247314453125, -0.03741455078125, 0.0328369140625, -0.00530242919921875, -0.037567138671875, 0.04388427734375, -0.003147125244140625, 0.0006890296936035156, -0.017822265625, 0.054718017578125, 0.03515625, -0.01264190673828125, -0.0021610260009765625, 0.0120697021484375, -0.022705078125, -0.01172637939453125, 0.00457000732421875, 0.0066070556640625, 0.0002875328063964844, 0.005832672119140625, 0.09423828125, 0.02105712890625, 0.00731658935546875, -0.0274658203125, -0.060760498046875, -0.034149169921875, -0.01251983642578125, -0.12298583984375, -0.08282470703125, 0.034698486328125, -0.0970458984375, 0.009613037109375, -0.031707763671875, -0.059295654296875, -0.014434814453125, 0.0261383056640625, -0.00042700767517089844, -0.01568603515625, 0.003002166748046875, -0.028289794921875, -0.0282135009765625, -0.05438232421875, -0.0157623291015625, 0.005428314208984375, 0.0232696533203125, 0.0227813720703125, -0.01483154296875, 0.01459503173828125, 0.0016126632690429688, 0.053497314453125, 0.012603759765625, -0.0224151611328125, -0.015838623046875, 0.01922607421875, -0.042236328125, 0.0026073455810546875, 0.0011444091796875, -0.00266265869140625, 0.01259613037109375, 0.005321502685546875, -0.00616455078125, -0.01163482666015625, -0.006626129150390625, -0.0005717277526855469, 0.017333984375, 0.020599365234375, 0.00872802734375, 0.0143890380859375, -0.032501220703125, 0.02490234375, -0.005855560302734375, -0.0245819091796875, -0.038116455078125, 0.01953125, -0.01479339599609375, -0.0010528564453125, -0.03692626953125, 0.052978515625, 0.01641845703125, 0.0213775634765625, 0.0234222412109375, 0.002506256103515625, -0.0208282470703125, 0.0306854248046875, -0.056640625, 0.05316162109375, -0.007068634033203125, -0.02789306640625, -0.0042266845703125, 0.00887298583984375, 0.01036834716796875, -0.0217132568359375, -0.0292510986328125, -0.004302978515625, 0.0268707275390625, -0.005405426025390625, 0.018524169921875, -0.003536224365234375, -0.0165252685546875, -0.018798828125, 0.033447265625, -0.09228515625, -0.009368896484375, 0.0005450248718261719, 0.020904541015625, 0.03131103515625, -0.03961181640625, -0.020660400390625, -0.045166015625, -0.1038818359375, 0.0251617431640625, 0.015960693359375, -0.03729248046875, -0.04205322265625, 0.05328369140625, -0.07684326171875, -0.00658416748046875, 0.0509033203125, 0.0198822021484375, -0.00875091552734375, 0.027984619140625, -0.0022487640380859375, -0.0067901611328125, -0.036376953125, 0.020477294921875, -0.07208251953125, -0.0170745849609375, 0.028228759765625, 0.054931640625, -0.0024852752685546875, -0.009674072265625, -0.0061492919921875, 0.06610107421875, 0.044952392578125, 0.05078125, 0.044464111328125, -0.006656646728515625, 0.031707763671875, -0.0306854248046875, 0.047515869140625, -0.051910400390625, 0.01910400390625, -0.0006399154663085938, -0.05633544921875, 0.040130615234375, -0.00927734375, 0.03997802734375, 0.02471923828125, -0.031402587890625, -0.03125, -0.02813720703125, -0.027618408203125, 0.0089569091796875, -0.0024662017822265625, -0.02978515625, -0.0282135009765625, -0.04296875, 0.018402099609375, 0.01047515869140625, -0.033843994140625, 0.000835418701171875, 0.01471710205078125, 0.03448486328125, -0.024139404296875, 0.0218963623046875, 0.034423828125, 0.032684326171875, 0.0347900390625, 0.0467529296875, -0.00506591796875, -0.018890380859375, 0.0699462890625, 0.003993988037109375, 0.013275146484375, -0.01099395751953125, 0.055267333984375, -0.00695037841796875, -0.031524658203125, 0.036651611328125, 0.0181427001953125, -0.025909423828125, -0.028228759765625, -0.027862548828125, 0.031341552734375, -0.02239990234375, -0.003997802734375, 0.0158538818359375, 0.01181793212890625, -0.0154266357421875, -0.003498077392578125, -0.01274871826171875, 0.035186767578125, 0.08294677734375, 0.05657958984375, -0.0007805824279785156, 0.054534912109375, 0.042999267578125, -0.0379638671875, 0.022796630859375, 0.05023193359375, -0.02960205078125, 0.003856658935546875, 0.0269317626953125, -0.049835205078125, -0.0199432373046875, -0.0011396408081054688, 0.044403076171875, -0.0022792816162109375, -0.038299560546875, -0.038787841796875, -0.004413604736328125, -0.0021724700927734375, 0.0103302001953125, -0.02423095703125, 0.036041259765625, 0.0219879150390625, -0.018646240234375, -0.0033054351806640625, 0.01198577880859375, -0.0419921875, -0.030120849609375, 0.0237579345703125, 0.029937744140625, -0.00479888916015625, 0.003993988037109375, 0.0477294921875, 0.002960205078125, 0.0230865478515625, -0.01171112060546875, -0.01004791259765625, 0.016021728515625, 0.01157379150390625, 0.0204315185546875, -0.00630950927734375, -0.00763702392578125, -0.011993408203125, 0.021270751953125, -0.00298309326171875, -0.004360198974609375, 0.0411376953125, 0.0171966552734375, -0.004047393798828125, 0.007328033447265625, -0.0213623046875, -0.01093292236328125, -0.01154327392578125, 0.0220947265625, -0.0095367431640625, -0.02972412109375, -0.0143585205078125, -0.0021190643310546875, 0.01483917236328125, -0.01513671875, 0.004276275634765625, 0.038116455078125, 0.02783203125, 0.05157470703125, 0.0232391357421875, 0.00441741943359375, 0.00011783838272094727, 0.00463104248046875, -0.01102447509765625, -0.009765625, 0.00827789306640625, -0.0511474609375, -0.00433349609375, -0.032073974609375, -0.0132293701171875, 0.034820556640625, 0.006671905517578125, 0.095703125, -0.05029296875, -0.0604248046875, -0.03363037109375, -0.006145477294921875, 0.0237884521484375, 0.0075836181640625, -0.05792236328125, 0.0287322998046875, -0.047393798828125, 0.00506591796875, -0.067138671875, -0.07550048828125, -0.02618408203125, -0.0159912109375, 0.0291290283203125, 0.0175933837890625, 0.0008425712585449219, -0.027435302734375, 0.0131988525390625, -0.004314422607421875, -0.0032596588134765625, -0.003925323486328125, 0.0135040283203125, 0.05987548828125, 0.00800323486328125, 0.034088134765625, 0.0604248046875, 0.0675048828125, -0.006732940673828125, -0.05474853515625, 0.0109710693359375, -0.0390625, -0.0125885009765625, -0.0093231201171875, 0.0216522216796875, 0.01654052734375, 0.0096588134765625, -0.007297515869140625, -0.0180206298828125, 0.0264434814453125, 0.00899505615234375, -0.0423583984375, 0.015228271484375, 0.042816162109375, 0.01412200927734375, -0.01010894775390625, -0.0107421875, 0.06024169921875, -0.00496673583984375, 0.04339599609375, -0.0458984375, -0.05224609375, -0.005702972412109375, 0.040557861328125, -0.0760498046875, 0.061370849609375, 0.0966796875, 0.0240936279296875, 0.050811767578125, -0.0016107559204101562, 0.0123443603515625, 0.021759033203125, 0.00606536865234375, 0.040496826171875, 0.01027679443359375, 0.07159423828125, 0.0045166015625, -0.01141357421875, 0.04632568359375, -0.0283203125, 0.00018656253814697266, 0.0279541015625, 0.03253173828125, -0.0657958984375, 0.005527496337890625, -0.01349639892578125, 0.001483917236328125, 0.051116943359375, 0.019012451171875, 0.01306915283203125, 0.04351806640625, -0.007701873779296875, -0.016998291015625, -0.0161590576171875, 0.00965118408203125, 0.0113067626953125, 0.00783538818359375, 0.0227203369140625, 0.0098876953125, -0.010711669921875, -0.07147216796875, -0.0275726318359375, 0.05780029296875, -0.0203704833984375, 0.01519775390625, 0.008209228515625, 0.00704193115234375, -0.0191192626953125, -0.0204620361328125, 0.01180267333984375, -0.029327392578125, -0.033599853515625, 0.04608154296875, 0.0012903213500976562, 0.017333984375, 0.0269317626953125, -0.0133056640625, 0.0309906005859375, -0.01776123046875, 0.036346435546875, 0.01457977294921875, 0.00323486328125, 0.00612640380859375, -0.03131103515625, -0.019989013671875, 0.0003108978271484375, -0.0311737060546875, -0.0269775390625, -0.014068603515625, 0.04327392578125, 0.09393310546875, -0.038818359375, -0.046112060546875, 0.0235443115234375, 0.003963470458984375, -0.0110015869140625, -0.00537109375, 0.003353118896484375, -0.049346923828125, -0.020233154296875, -0.005767822265625, -0.043731689453125, 0.013641357421875, -0.0298004150390625, -0.02752685546875, 0.07794189453125, -0.04779052734375, 0.011474609375, 0.0295867919921875, 0.0384521484375, -0.02392578125, 0.01148223876953125, -0.0107879638671875, 0.059112548828125, 0.0379638671875, 0.00859832763671875, -0.0089111328125, 0.003337860107421875, 0.00789642333984375, 0.0012407302856445312, -0.0038471221923828125, 0.009918212890625, -0.0157928466796875, -0.01032257080078125, 0.021636962890625, 0.0242156982421875, 0.011077880859375, 0.0236968994140625, 0.01297760009765625, 0.0012788772583007812, 0.034423828125, -0.0236053466796875, 0.0166168212890625, -0.0032939910888671875, -0.0011949539184570312, 0.0240631103515625, 0.040252685546875, 0.035736083984375, -0.028778076171875, 0.0286865234375, -0.0841064453125, 0.00034928321838378906, 0.0582275390625, -0.004413604736328125, 0.00467681884765625, 0.0241241455078125, 0.019866943359375, -0.00844573974609375, -0.01160430908203125, -0.0173492431640625, 0.039581298828125, -0.0014371871948242188, 0.00615692138671875, -0.036895751953125, 0.0213775634765625, -0.0130767822265625, -0.042449951171875, -0.01104736328125, 0.0139007568359375, -0.045562744140625, 0.0270843505859375, -0.0002574920654296875, 0.018157958984375, -0.049560546875, 0.0040130615234375, 0.037506103515625, 0.03778076171875, -0.032745361328125, -0.0736083984375, 0.01143646240234375, 0.009552001953125, -0.003818511962890625, 0.0458984375, 0.03466796875, -0.019989013671875, 0.043548583984375, -0.0274200439453125, 0.0122833251953125, 0.0290374755859375, -0.01378631591796875, -0.0094146728515625, 0.0173187255859375, -0.008392333984375, 0.032135009765625, -0.01898193359375, -0.0003819465637207031, 0.0027866363525390625, -0.001094818115234375, -0.00104522705078125, 0.04254150390625, 0.0302886962890625, -0.000537872314453125, -0.00495147705078125, 0.0250396728515625, 0.002735137939453125, -0.0033702850341796875, -0.0030670166015625, -0.01934814453125, -0.004474639892578125, 0.0196990966796875, 0.054840087890625, 0.00811004638671875, -0.0010395050048828125, 0.01207733154296875, 0.0748291015625, 0.0328369140625, 0.023895263671875, 0.0218353271484375, 0.047149658203125, -0.0264739990234375, 0.04107666015625, -0.01256561279296875, -0.0203704833984375, -0.0214080810546875, -0.0033817291259765625, 0.029937744140625, -0.00514984130859375, 0.06353759765625, -0.002941131591796875, 0.0220794677734375, 0.006572723388671875, -0.019134521484375, 0.03961181640625, 0.0285797119140625, -0.06500244140625, -0.01515960693359375, -0.039459228515625, -0.007251739501953125, 0.025177001953125, 0.0433349609375, 0.00958251953125, 0.0164337158203125, -0.016845703125, 0.0179901123046875, 0.025390625, -0.038909912109375, -0.006206512451171875, 0.047332763671875, 0.029022216796875, 0.021331787109375, -0.0157318115234375, 0.00846099853515625, 0.0223236083984375, -0.0003821849822998047, -0.01226806640625, 0.0238800048828125, 0.01091766357421875, 0.0022830963134765625, -0.0130767822265625, 0.0286407470703125, -0.031890869140625, -0.0118560791015625, 0.0287322998046875, 0.005126953125, 0.0021991729736328125, -0.007259368896484375, -0.035400390625, 0.03607177734375, -0.0102996826171875, 0.00817108154296875, 0.0071258544921875, -0.0155181884765625, 0.0118408203125, 0.023834228515625, 0.0211181640625, -0.0164337158203125, -0.0188140869140625, -0.03680419921875, -0.0214996337890625, 0.02984619140625, 0.036651611328125, 0.00974273681640625, 0.006374359130859375, -0.01551055908203125, 0.0157318115234375, -0.0013141632080078125, 0.035614013671875, -0.01422119140625, 0.037445068359375, -0.0204010009765625, -0.0310211181640625, 0.033172607421875, -0.0114288330078125, 0.02874755859375, 0.0020618438720703125, 0.05657958984375, 0.0218353271484375, -0.012298583984375, -0.00310516357421875, 0.056304931640625, 0.050567626953125, -0.0203704833984375, 0.017974853515625, 0.04229736328125, -0.016632080078125, -0.006816864013671875, 0.003849029541015625, -0.0264434814453125, -0.0169677734375, -0.002597808837890625, 0.007747650146484375, 0.00414276123046875, -0.050262451171875, -0.05126953125, 0.026153564453125, 0.003326416015625, 0.004184722900390625, -0.08331298828125, 0.0169525146484375, 0.00841522216796875, 0.11041259765625, -0.060821533203125, 0.046356201171875, -0.01265716552734375, -0.0006132125854492188, -0.041656494140625, -0.006961822509765625, -0.01291656494140625, 0.03289794921875, -0.00801849365234375, 0.02423095703125, 0.0269012451171875, -0.03466796875, 0.00482177734375, 0.004962921142578125, 0.0313720703125, 0.060089111328125, 0.0367431640625, -0.018463134765625, 0.0269317626953125, -0.022918701171875, -0.0245208740234375, -0.00370025634765625, 0.0002887248992919922, -0.01102447509765625, -0.021331787109375, 0.01239013671875, -0.037506103515625, -0.01194000244140625, -0.042510986328125, -0.087646484375, 0.04400634765625, 0.00396728515625, -0.041748046875, -0.03338623046875, 0.00881195068359375, 0.00089263916015625, -0.0281524658203125, -0.02496337890625, -0.0164947509765625, -0.038970947265625, 0.0166473388671875, -0.00482177734375, 0.0416259765625, -0.01309967041015625, 0.0087432861328125, -0.0118560791015625, 0.01467132568359375, 0.00684356689453125, -0.006404876708984375, 0.02337646484375, -0.0240478515625, 0.014678955078125, 0.021514892578125, -0.04498291015625, -0.055938720703125, -0.027435302734375, 0.0025482177734375, 0.0099639892578125, -0.041748046875, -0.0009860992431640625, -0.031524658203125, -0.007129669189453125, -0.0014295578002929688, 0.00007766485214233398, 0.011322021484375, 0.01097869873046875, -0.037139892578125, -0.00899505615234375, -0.0012226104736328125, 0.019500732421875, -0.0682373046875, -0.014373779296875, 0.040771484375, -0.00974273681640625, 0.0159454345703125, 0.00449371337890625, -0.017120361328125, -0.0032024383544921875, 0.0281219482421875, -0.004024505615234375, -0.040130615234375, 0.0208740234375, 0.08746337890625, -0.0494384765625, 0.01142120361328125, 0.0345458984375, -0.0195465087890625, 0.0635986328125, 0.0271759033203125, 0.040496826171875, 0.0117645263671875, -0.038299560546875, 0.019805908203125, 0.01287078857421875, -0.0009756088256835938, -0.04144287109375, -0.051483154296875, -0.003322601318359375, 0.0023021697998046875, -0.0357666015625, -0.015655517578125, 0.039764404296875, -0.0161590576171875, -0.034698486328125, 0.060028076171875, -0.0250091552734375, 0.01470947265625, -0.0203857421875, 0.039764404296875, 0.0345458984375, -0.030029296875, 0.08367919921875, -0.04913330078125, 0.003749847412109375, 0.018280029296875, 0.01010894775390625, -0.023193359375, 0.0313720703125, 0.0303955078125, 0.013153076171875, 0.00940704345703125 ]
e3e0697604a09ba57777fe3a86dc29b94c190068
Wordpress Stackexchange Q: bloginfo('stylesheet_directory') vs. get_stylesheet_directory_uri() and include('file.php') vs. get_template_part() In my custom theme I'm using <img src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.jpg"/> to load my custom logo. I'm using a custom sidebar for front-page.php and that's why I used <?php include('sidebar-front.php') ?> to get it. But when I'm using the 'theme-check' plugin it's suggesting to change the following: * *bloginfo('stylesheet_directory') to get_stylesheet_directory_uri() *include() to get_template_part() So, I did the following: * *<img src="<?php get_stylesheet_directory_uri(); ?>/images/logo.jpg"/>, and *<?php get_template_part('sidebar-front.php') ?> But both failed here. The logo doesn't load and the sidebar isn't too. I used <?php get_sidebar('front'); ?> and it's working fine. I just want to speculate what the problem with those suggestions? It's WP 3.4.2 here. A: get_stylesheet_directory_uri() returns a value, it doesn’t print anything. So you have to use: echo get_stylesheet_directory_uri(); get_template_part() is just a wrapper for locate_template(). But the latter has one advantage: It returns the path of the file it has found. Try the following: $path = locate_template( 'sidebar-front.php', TRUE ); echo $path;
Q: bloginfo('stylesheet_directory') vs. get_stylesheet_directory_uri() and include('file.php') vs. get_template_part() In my custom theme I'm using <img src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.jpg"/> to load my custom logo. I'm using a custom sidebar for front-page.php and that's why I used <?php include('sidebar-front.php') ?> to get it. But when I'm using the 'theme-check' plugin it's suggesting to change the following: * *bloginfo('stylesheet_directory') to get_stylesheet_directory_uri() *include() to get_template_part() So, I did the following: * *<img src="<?php get_stylesheet_directory_uri(); ?>/images/logo.jpg"/>, and *<?php get_template_part('sidebar-front.php') ?> But both failed here. The logo doesn't load and the sidebar isn't too. I used <?php get_sidebar('front'); ?> and it's working fine. I just want to speculate what the problem with those suggestions? It's WP 3.4.2 here. A: get_stylesheet_directory_uri() returns a value, it doesn’t print anything. So you have to use: echo get_stylesheet_directory_uri(); get_template_part() is just a wrapper for locate_template(). But the latter has one advantage: It returns the path of the file it has found. Try the following: $path = locate_template( 'sidebar-front.php', TRUE ); echo $path;
wordpress
{ "language": "en", "length": 162, "provenance": "stackexchange_00019.jsonl.gz:426764", "question_score": "3", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/75970" }
[ 0.017669677734375, -0.03955078125, -0.0029697418212890625, -0.04339599609375, -0.007541656494140625, -0.015594482421875, 0.022857666015625, 0.0263214111328125, 0.00391387939453125, 0.0160064697265625, -0.06475830078125, 0.0157470703125, -0.0287628173828125, 0.005825042724609375, -0.01001739501953125, -0.043548583984375, 0.05682373046875, -0.0328369140625, 0.05096435546875, 0.00632476806640625, 0.0208740234375, 0.03765869140625, 0.0224609375, 0.03314208984375, 0.037200927734375, -0.0240478515625, 0.0634765625, -0.022064208984375, 0.02801513671875, -0.0328369140625, 0.0292510986328125, -0.0120849609375, 0.029998779296875, 0.0150299072265625, -0.0247344970703125, 0.030181884765625, 0.0216827392578125, 0.007663726806640625, -0.00875091552734375, 0.0255584716796875, 0.00550079345703125, 0.0035839080810546875, -0.00409698486328125, 0.0186920166015625, -0.01139068603515625, -0.044158935546875, 0.0160064697265625, -0.036041259765625, 0.0123291015625, 0.03125, 0.009246826171875, 0.00545501708984375, -0.0002560615539550781, 0.039764404296875, -0.0174407958984375, -0.0112457275390625, 0.0234832763671875, 0.0066070556640625, 0.015625, -0.0205078125, -0.031829833984375, 0.0177154541015625, 0.018341064453125, 0.0115966796875, -0.005474090576171875, 0.00021755695343017578, -0.0026340484619140625, 0.03326416015625, -0.032623291015625, -0.01551055908203125, 0.001773834228515625, -0.01134490966796875, 0.02459716796875, -0.059600830078125, -0.01329803466796875, 0.006961822509765625, -0.0009927749633789062, -0.01419830322265625, 0.0161590576171875, -0.0204315185546875, -0.04254150390625, 0.0094451904296875, -0.1214599609375, -0.0169525146484375, 0.0203399658203125, 0.021453857421875, -0.020782470703125, -0.0095977783203125, -0.0187530517578125, -0.007274627685546875, -0.013916015625, -0.027587890625, -0.00824737548828125, -0.023712158203125, -0.006511688232421875, -0.050506591796875, 0.0136260986328125, 0.10626220703125, -0.0650634765625, 0.0281829833984375, -0.049530029296875, -0.006160736083984375, 0.029327392578125, -0.06719970703125, 0.0125885009765625, 0.025115966796875, 0.00492095947265625, 0.0310516357421875, 0.046417236328125, 0.02276611328125, 0.005352020263671875, 0.004405975341796875, -0.039093017578125, -0.051910400390625, -0.017852783203125, 0.044189453125, -0.0330810546875, -0.01071929931640625, 0.01904296875, 0.0112457275390625, 0.03387451171875, 0.043365478515625, 0.0266571044921875, -0.051025390625, -0.0007038116455078125, -0.0017728805541992188, -0.029815673828125, -0.06048583984375, -0.0010480880737304688, 0.0421142578125, -0.0141448974609375, 0.00849151611328125, 0.00583648681640625, -0.047454833984375, -0.05072021484375, -0.0279998779296875, 0.013671875, -0.00003057718276977539, -0.00927734375, -0.033905029296875, 0.0253753662109375, 0.004207611083984375, 0.01216888427734375, -0.0168304443359375, -0.031463623046875, -0.0236053466796875, 0.0245819091796875, 0.045379638671875, -0.0186614990234375, -0.036651611328125, 0.022247314453125, 0.00689697265625, 0.0210113525390625, 0.0015048980712890625, 0.004180908203125, -0.042694091796875, -0.0096282958984375, -0.027313232421875, 0.02984619140625, -0.025390625, 0.0172271728515625, 0.0048675537109375, 0.005405426025390625, -0.01081085205078125, -0.031341552734375, -0.01528167724609375, -0.007076263427734375, -0.01080322265625, 0.02642822265625, -0.007053375244140625, 0.0079193115234375, -0.0440673828125, -0.036956787109375, 0.033233642578125, 0.01739501953125, 0.052490234375, 0.0016956329345703125, 0.025146484375, 0.0099029541015625, 0.034088134765625, -0.003887176513671875, -0.020660400390625, 0.06658935546875, -0.02008056640625, -0.047821044921875, -0.0114898681640625, 0.01311492919921875, 0.00841522216796875, 0.028656005859375, 0.01508331298828125, 0.043487548828125, 0.0175018310546875, -0.053802490234375, 0.045654296875, -0.021820068359375, -0.031494140625, 0.0011835098266601562, 0.0067291259765625, -0.0200958251953125, 0.0005908012390136719, -0.0022125244140625, 0.013427734375, 0.040374755859375, 0.0140838623046875, -0.00234222412109375, 0.0382080078125, -0.0206451416015625, 0.040191650390625, 0.007312774658203125, 0.05712890625, 0.0029697418212890625, 0.03424072265625, -0.02325439453125, -0.0159149169921875, 0.0020999908447265625, 0.0307464599609375, -0.00370025634765625, 0.027435302734375, -0.00910186767578125, 0.0189208984375, -0.01702880859375, -0.0169830322265625, -0.004917144775390625, 0.02191162109375, 0.0149688720703125, 0.0078125, 0.0035076141357421875, -0.0014019012451171875, -0.0148468017578125, 0.054168701171875, -0.07269287109375, -0.0103759765625, 0.0206756591796875, 0.044342041015625, -0.01224517822265625, -0.01201629638671875, 0.03338623046875, -0.02044677734375, 0.02130126953125, 0.0280609130859375, 0.05072021484375, 0.0428466796875, 0.0011835098266601562, -0.0303802490234375, 0.0657958984375, -0.048431396484375, -0.001071929931640625, -0.0316162109375, 0.0227508544921875, 0.01568603515625, -0.01812744140625, -0.0165863037109375, 0.0281982421875, -0.020050048828125, 0.01361083984375, 0.0367431640625, -0.0022830963134765625, -0.0276336669921875, -0.041015625, 0.0212554931640625, 0.032928466796875, 0.03369140625, -0.0474853515625, 0.03472900390625, 0.0017566680908203125, 0.0167999267578125, 0.00653839111328125, -0.011932373046875, -0.03802490234375, 0.0190582275390625, 0.0264892578125, -0.0006208419799804688, -0.0011377334594726562, 0.06561279296875, 0.01873779296875, -0.0318603515625, -0.003490447998046875, -0.0236663818359375, -0.0113372802734375, 0.0012235641479492188, -0.008941650390625, 0.016998291015625, -0.01059722900390625, -0.0043487548828125, -0.01026153564453125, -0.053497314453125, 0.01485443115234375, 0.035888671875, 0.032379150390625, 0.043060302734375, 0.04888916015625, 0.01390838623046875, 0.0026683807373046875, 0.0278778076171875, -0.033050537109375, -0.0182647705078125, 0.06109619140625, -0.00974273681640625, 0.0027294158935546875, -0.0009255409240722656, 0.0213623046875, 0.0198974609375, 0.01267242431640625, -0.028961181640625, -0.0009703636169433594, 0.0133819580078125, 0.00673675537109375, -0.006420135498046875, -0.0241241455078125, -0.032989501953125, -0.0218048095703125, 0.01000213623046875, 0.03399658203125, 0.0086212158203125, 0.0156402587890625, -0.0299835205078125, -0.00286865234375, 0.0039005279541015625, -0.08026123046875, -0.07940673828125, -0.01483917236328125, -0.06298828125, -0.016998291015625, -0.0233612060546875, -0.03375244140625, 0.0218963623046875, -0.0223541259765625, 0.01251220703125, 0.0255126953125, -0.0205841064453125, -0.050537109375, -0.06414794921875, -0.09271240234375, -0.058563232421875, -0.003978729248046875, -0.00923919677734375, -0.0021953582763671875, 0.0194244384765625, -0.01081085205078125, -0.06182861328125, 0.0032901763916015625, 0.059173583984375, 0.02960205078125, 0.0300445556640625, 0.0227508544921875, -0.003582000732421875, -0.020233154296875, 0.00897216796875, -0.0138092041015625, 0.0205535888671875, -0.04998779296875, -0.014373779296875, -0.005840301513671875, -0.05078125, -0.006099700927734375, 0.04840087890625, 0.005084991455078125, -0.022308349609375, 0.05126953125, -0.054656982421875, -0.06219482421875, -0.048828125, -0.07928466796875, 0.07269287109375, 0.06280517578125, 0.0242919921875, -0.01812744140625, 0.042205810546875, 0.033477783203125, 0.007293701171875, -0.00762939453125, 0.0007967948913574219, 0.06219482421875, 0.0008449554443359375, 0.024932861328125, -0.03143310546875, 0.03289794921875, -0.01317596435546875, -0.01074981689453125, 0.00334930419921875, 0.0038967132568359375, -0.019073486328125, 0.016754150390625, -0.026824951171875, -0.0269622802734375, 0.0232086181640625, -0.0175018310546875, 0.025238037109375, -0.0246124267578125, -0.0142364501953125, -0.0171966552734375, 0.05859375, -0.038055419921875, -0.0191192626953125, -0.0030574798583984375, 0.0202789306640625, -0.054229736328125, -0.04803466796875, -0.043365478515625, 0.00954437255859375, -0.08746337890625, -0.002727508544921875, 0.006641387939453125, -0.05523681640625, 0.01922607421875, -0.0307769775390625, -0.048675537109375, -0.0311126708984375, 0.030120849609375, 0.0204010009765625, 0.006542205810546875, 0.03167724609375, -0.021575927734375, 0.039825439453125, -0.01641845703125, -0.00804901123046875, -0.0914306640625, -0.0246734619140625, -0.028076171875, 0.07257080078125, 0.0146636962890625, 0.0038738250732421875, -0.00759124755859375, 0.0614013671875, 0.0155487060546875, -0.0203399658203125, 0.026519775390625, 0.007434844970703125, -0.0161285400390625, 0.0110321044921875, 0.0211181640625, -0.024749755859375, -0.041259765625, -0.021514892578125, -0.0457763671875, -0.00624847412109375, 0.0018901824951171875, -0.0195770263671875, 0.042724609375, -0.01483917236328125, -0.02764892578125, -0.00222015380859375, 0.0369873046875, 0.004123687744140625, 0.0225982666015625, -0.017852783203125, 0.0099029541015625, 0.006412506103515625, 0.04217529296875, -0.016510009765625, -0.007617950439453125, -0.0007586479187011719, 0.07025146484375, 0.0245819091796875, -0.02471923828125, 0.0153656005859375, 0.00768280029296875, 0.022857666015625, 0.0196380615234375, 0.0137939453125, 0.0258026123046875, -0.0277252197265625, 0.0189971923828125, 0.01502227783203125, 0.010406494140625, 0.0255889892578125, 0.04437255859375, 0.0012769699096679688, -0.0060577392578125, 0.017669677734375, 0.0201873779296875, -0.050262451171875, 0.038421630859375, 0.006633758544921875, -0.006473541259765625, -0.01074981689453125, 0.01165771484375, -0.002399444580078125, -0.004398345947265625, -0.031951904296875, -0.046966552734375, 0.00453948974609375, -0.00489044189453125, 0.0408935546875, 0.050323486328125, -0.02386474609375, 0.0543212890625, 0.017822265625, -0.0303802490234375, 0.059722900390625, 0.01763916015625, 0.036712646484375, 0.0288848876953125, 0.0173797607421875, -0.0239715576171875, 0.0206298828125, 0.001369476318359375, 0.01470184326171875, 0.005748748779296875, 0.01436614990234375, -0.0706787109375, 0.01068878173828125, 0.0127410888671875, -0.017303466796875, 0.01392364501953125, 0.07110595703125, 0.0033473968505859375, -0.040252685546875, -0.0462646484375, -0.0340576171875, -0.036590576171875, -0.06787109375, 0.01187896728515625, -0.0017871856689453125, -0.0171356201171875, 0.02032470703125, -0.0101165771484375, -0.0167388916015625, -0.0025177001953125, 0.0030994415283203125, -0.021240234375, -0.0335693359375, 0.0231781005859375, 0.0233612060546875, 0.0075225830078125, 0.001216888427734375, -0.0036640167236328125, 0.044525146484375, -0.033477783203125, -0.01439666748046875, -0.011383056640625, 0.0631103515625, -0.08355712890625, -0.05731201171875, 0.06414794921875, -0.0350341796875, -0.0018949508666992188, 0.05340576171875, -0.010589599609375, -0.049468994140625, -0.030792236328125, -0.005886077880859375, 0.05609130859375, -0.050018310546875, -0.0133819580078125, 0.019561767578125, -0.0207061767578125, -0.0019321441650390625, 0.032379150390625, -0.049835205078125, 0.016204833984375, 0.00836181640625, -0.038238525390625, 0.0032558441162109375, 0.00440216064453125, -0.0045166015625, -0.04119873046875, -0.005298614501953125, -0.01560211181640625, 0.00962066650390625, -0.07830810546875, 0.0207366943359375, 0.0156402587890625, -0.0121612548828125, -0.0194244384765625, 0.0447998046875, 0.039581298828125, 0.0550537109375, -0.020477294921875, 0.0264739990234375, -0.017120361328125, 0.00994873046875, -0.0011529922485351562, -0.062408447265625, -0.00482177734375, -0.05413818359375, -0.027557373046875, 0.010101318359375, -0.0031642913818359375, 0.040740966796875, -0.03436279296875, 0.0300750732421875, -0.0008831024169921875, 0.0655517578125, -0.016845703125, 0.0308074951171875, 0.0208892822265625, -0.0248260498046875, 0.0136260986328125, -0.0008897781372070312, -0.020172119140625, 0.01131439208984375, -0.0216827392578125, -0.06500244140625, -0.003116607666015625, -0.002765655517578125, -0.00592041015625, 0.06085205078125, 0.0689697265625, 0.0182952880859375, -0.002643585205078125, 0.003910064697265625, -0.002620697021484375, -0.01441192626953125, 0.01262664794921875, 0.018096923828125, -0.0064239501953125, -0.001186370849609375, -0.010650634765625, -0.00040459632873535156, 0.017913818359375, -0.02691650390625, 0.0286865234375, 0.004634857177734375, 0.009857177734375, -0.002841949462890625, -0.06024169921875, 0.08502197265625, 0.064208984375, 0.036590576171875, 0.04779052734375, -0.006496429443359375, 0.019378662109375, -0.0260467529296875, 0.0231475830078125, 0.0086517333984375, 0.0059814453125, 0.06427001953125, -0.0015001296997070312, 0.004550933837890625, 0.043212890625, -0.02349853515625, 0.0295867919921875, 0.0238800048828125, 0.0418701171875, -0.030792236328125, -0.00824737548828125, -0.004955291748046875, -0.045684814453125, 0.0452880859375, -0.015380859375, -0.0179443359375, -0.012298583984375, 0.05059814453125, -0.019500732421875, -0.01389312744140625, 0.009857177734375, 0.006839752197265625, -0.02716064453125, 0.02972412109375, 0.0163116455078125, 0.01513671875, -0.04412841796875, -0.0280914306640625, 0.036376953125, -0.056915283203125, -0.0065765380859375, 0.0303955078125, -0.034271240234375, 0.0028896331787109375, -0.0345458984375, -0.01568603515625, -0.0215911865234375, -0.0258941650390625, 0.0716552734375, 0.0185546875, 0.03704833984375, 0.04046630859375, 0.0160980224609375, 0.0316162109375, -0.01702880859375, 0.0294952392578125, 0.0279388427734375, -0.01424407958984375, -0.002880096435546875, 0.031829833984375, -0.0213775634765625, 0.006526947021484375, 0.0058746337890625, -0.0010509490966796875, -0.0189208984375, -0.004138946533203125, 0.0927734375, -0.0263824462890625, -0.017425537109375, 0.022216796875, 0.01715087890625, -0.021331787109375, -0.039337158203125, 0.046234130859375, -0.10028076171875, -0.030914306640625, 0.0174713134765625, -0.01519012451171875, -0.04278564453125, -0.024383544921875, -0.04833984375, 0.07562255859375, -0.01444244384765625, 0.046875, 0.0244903564453125, 0.0193634033203125, -0.021240234375, 0.0001875162124633789, -0.01108551025390625, 0.011993408203125, -0.0421142578125, 0.0100860595703125, -0.04547119140625, 0.01233673095703125, -0.0165863037109375, 0.032470703125, 0.055084228515625, 0.01122283935546875, 0.0198211669921875, -0.0231781005859375, 0.01332855224609375, 0.03961181640625, -0.00858306884765625, -0.018951416015625, 0.01032257080078125, 0.006916046142578125, 0.024749755859375, -0.0035686492919921875, 0.052001953125, -0.054107666015625, -0.01387786865234375, 0.022003173828125, -0.00583648681640625, -0.02606201171875, 0.009735107421875, 0.011474609375, -0.0677490234375, 0.01497650146484375, 0.044036865234375, -0.0408935546875, -0.00534820556640625, 0.0287933349609375, 0.0246124267578125, -0.04534912109375, -0.0250396728515625, -0.01477813720703125, 0.036468505859375, 0.00786590576171875, 0.006320953369140625, -0.038848876953125, 0.007503509521484375, 0.01461029052734375, -0.053466796875, -0.02447509765625, 0.0265655517578125, -0.040496826171875, 0.03662109375, 0.0264739990234375, 0.035400390625, -0.01483917236328125, 0.04046630859375, 0.0192718505859375, 0.02154541015625, -0.0237274169921875, -0.035400390625, 0.0073394775390625, 0.00799560546875, 0.0233154296875, 0.004238128662109375, 0.0014429092407226562, -0.056976318359375, -0.0006375312805175781, -0.0718994140625, 0.004486083984375, 0.04840087890625, -0.026611328125, -0.0107879638671875, -0.03704833984375, 0.003910064697265625, 0.03607177734375, -0.03704833984375, 0.0509033203125, 0.005321502685546875, 0.0166015625, -0.01206207275390625, 0.04180908203125, -0.041412353515625, -0.0092926025390625, -0.037994384765625, 0.027862548828125, 0.005611419677734375, 0.04534912109375, -0.057464599609375, -0.01168060302734375, 0.01434326171875, 0.052978515625, 0.035919189453125, 0.0007038116455078125, 0.007793426513671875, -0.021942138671875, -0.006500244140625, 0.0227508544921875, 0.037078857421875, -0.0107879638671875, 0.039031982421875, -0.03314208984375, 0.02655029296875, 0.0030574798583984375, -0.0092620849609375, -0.00689697265625, -0.01265716552734375, 0.051055908203125, -0.0106048583984375, 0.043701171875, 0.00925445556640625, 0.01003265380859375, 0.0005917549133300781, -0.03466796875, 0.016937255859375, 0.01551055908203125, -0.01076507568359375, 0.0121002197265625, -0.0172271728515625, -0.015838623046875, -0.0306549072265625, 0.0190887451171875, 0.00014495849609375, 0.031585693359375, 0.0187225341796875, -0.00727081298828125, -0.01349639892578125, -0.0227813720703125, 0.040283203125, 0.0028896331787109375, -0.0109405517578125, 0.0281219482421875, -0.015594482421875, -0.0289764404296875, -0.019744873046875, 0.051055908203125, 0.0278778076171875, 0.09747314453125, -0.048126220703125, 0.037353515625, 0.004360198974609375, -0.00014257431030273438, 0.00484466552734375, -0.006595611572265625, 0.003116607666015625, -0.035491943359375, 0.007259368896484375, 0.0042877197265625, -0.055633544921875, 0.025909423828125, 0.028839111328125, -0.0062255859375, 0.021148681640625, 0.0264434814453125, -0.003139495849609375, -0.0252838134765625, 0.0128631591796875, -0.03173828125, -0.0572509765625, -0.06439208984375, 0.0170440673828125, 0.015045166015625, -0.0038700103759765625, -0.052734375, 0.03436279296875, 0.016815185546875, -0.0235595703125, 0.0281982421875, -0.0535888671875, 0.06475830078125, 0.036956787109375, -0.012847900390625, -0.0284881591796875, -0.0035552978515625, -0.019744873046875, 0.0141448974609375, 0.0056610107421875, 0.055938720703125, -0.019012451171875, -0.00830078125, 0.06219482421875, 0.029388427734375, 0.0457763671875, -0.030548095703125, 0.0094451904296875, 0.048248291015625, 0.0099334716796875, -0.005290985107421875, -0.0302581787109375, -0.012420654296875, -0.033477783203125, -0.0153350830078125, -0.0026378631591796875, 0.003162384033203125, -0.02294921875, 0.0260467529296875, 0.0019426345825195312, 0.020751953125, 0.003055572509765625, -0.0352783203125, 0.01287841796875, -0.0159759521484375, 0.0306854248046875, -0.00533294677734375, 0.0230865478515625, 0.00652313232421875, 0.035491943359375, -0.0302581787109375, -0.00464630126953125, 0.0122833251953125, 0.0099334716796875, 0.0003948211669921875, 0.0148468017578125, 0.0684814453125, -0.01385498046875, -0.033935546875, 0.021453857421875, -0.01537322998046875, 0.068603515625, -0.075927734375, -0.02044677734375, -0.003940582275390625, -0.01678466796875, -0.0419921875, -0.002655029296875, 0.032196044921875, -0.031158447265625, -0.06451416015625, -0.01549530029296875, -0.01401519775390625, -0.01348114013671875, -0.053070068359375, -0.05047607421875, 0.032684326171875, -0.004894256591796875, -0.034515380859375, -0.04498291015625, 0.004451751708984375, -0.00417327880859375, 0.037994384765625, 0.00696563720703125, -0.03582763671875, -0.0250701904296875, 0.03973388671875, 0.0246429443359375, 0.032867431640625, 0.03857421875, 0.01207733154296875, -0.053375244140625, 0.01212310791015625, -0.01116943359375, 0.0169677734375, -0.003498077392578125, -0.0172576904296875, -0.001125335693359375, 0.0352783203125, -0.02593994140625, -0.03192138671875, 0.01313018798828125, -0.0181121826171875, -0.0291290283203125, -0.031982421875, 0.01313018798828125, 0.01715087890625, 0.049346923828125, 0.040191650390625, -0.00020754337310791016, -0.04095458984375, -0.01322174072265625, -0.00304412841796875, -0.054901123046875, 0.0274810791015625, 0.04681396484375, -0.063720703125, 0.01506805419921875, 0.0269775390625, -0.0186004638671875, -0.003314971923828125, -0.00525665283203125, -0.0285491943359375, 0.005603790283203125, 0.006290435791015625, -0.023590087890625, 0.0052642822265625, -0.007724761962890625, 0.07025146484375, -0.0207672119140625, 0.0221405029296875, -0.0264434814453125, 0.0261688232421875, 0.033477783203125, -0.0302734375, 0.006931304931640625, 0.042327880859375, -0.0283966064453125, 0.01044464111328125, 0.0186004638671875, -0.02301025390625, -0.01369476318359375, -0.00250244140625, 0.0166015625, -0.0309906005859375, -0.03350830078125, -0.06219482421875, 0.024810791015625, 0.0101470947265625, -0.054718017578125, 0.119384765625, -0.01461029052734375, 0.056549072265625, 0.0055389404296875, 0.037872314453125, -0.01161956787109375, -0.006099700927734375, 0.01232147216796875, -0.01910400390625, -0.01206207275390625, -0.00978851318359375, -0.04071044921875, -0.06842041015625, 0.01291656494140625, -0.03143310546875, 0.0038623809814453125, 0.00984954833984375 ]
853856490a93459a44e199d14ca94524f462cadd
Wordpress Stackexchange Q: Best way to abort plugin in case of insufficient PHP version? You write a plugin which requires PHP 5.1. Someone tries to install it on a server with PHP 4. How do you deal with that in a safe and user-friendly manner? A: You could activate it and show an error message: // if PHP version is lower than 5.1 if(version_compare(PHP_VERSION, '5.1') < 0){ // show a message inside the dashboard if(is_admin()){ function my_plugin_notice(){ ?> <div class="error below-h2"> <p> <?php printf(__('The abc plugin requires at least PHP 5.1. You have %s'), PHP_VERSION); ?> </p> </div> <?php } add_action('admin_notices', 'my_plugin_notice'); } // stop here and do nothing further return; } // if PHP version is equal or higher than 5.1 require dirname(__FILE__) . '/php51code.php'; It's also probably possible to deactivate it programmatically, before the return statement...
Q: Best way to abort plugin in case of insufficient PHP version? You write a plugin which requires PHP 5.1. Someone tries to install it on a server with PHP 4. How do you deal with that in a safe and user-friendly manner? A: You could activate it and show an error message: // if PHP version is lower than 5.1 if(version_compare(PHP_VERSION, '5.1') < 0){ // show a message inside the dashboard if(is_admin()){ function my_plugin_notice(){ ?> <div class="error below-h2"> <p> <?php printf(__('The abc plugin requires at least PHP 5.1. You have %s'), PHP_VERSION); ?> </p> </div> <?php } add_action('admin_notices', 'my_plugin_notice'); } // stop here and do nothing further return; } // if PHP version is equal or higher than 5.1 require dirname(__FILE__) . '/php51code.php'; It's also probably possible to deactivate it programmatically, before the return statement... A: This function and activation hook prevents the plugin from activating and allows you to check for both a minimum PHP and WordPress version. register_activation_hook( __FILE__, array( 'Your_Plugin_Class_Name', 'activate' ) ); /** * Plugin Activation hook function to check for Minimum PHP and WordPress versions * @param string $wp Minimum version of WordPress required for this plugin * @param string $php Minimum version of PHP required for this plugin */ function activate( $wp = '3.1', $php = '5.2.4' ) { global $wp_version; if ( version_compare( PHP_VERSION, $php, '<' ) ) $flag = 'PHP'; elseif ( version_compare( $wp_version, $wp, '<' ) ) $flag = 'WordPress'; else return; $version = 'PHP' == $flag ? $php : $wp; deactivate_plugins( basename( __FILE__ ) ); wp_die('<p>The <strong>Insert PLugin Name Here</strong> plugin requires'.$flag.' version '.$version.' or greater.</p>','Plugin Activation Error', array( 'response'=>200, 'back_link'=>TRUE ) ); } A: /** * Plugin Name: Foo */ // Check for required PHP version if ( version_compare( PHP_VERSION, '5.1', '<' ) ) { exit( sprintf( 'Foo requires PHP 5.1 or higher. You’re still on %s.', PHP_VERSION ) ); } // The rest of your plugin code follows I'm not sure since which WP version this happened, but in 3.5 the plugin actually fails to activate and the error message is shown to the user in the admin, which is neat. The error message is not translated, though. In order to do that you’d have to load your translation files right before the exit call. A: I know this is an older question, but for those searching for a good solution, Gary Pendergast had a good route to go that covers a few of the bases mentioned in the other answers (see his post here, I've updated the code below to check the PHP version, but you can use it for virtually any check): // In this example, only allow activation on WordPress 3.7 or higherclass MyPlugin { function __construct() { add_action( 'admin_init', array( $this, 'check_version' ) ); // Don't run anything else in the plugin, if we're on an incompatible WordPress version if ( ! self::compatible_version() ) { return; } } // The primary sanity check, automatically disable the plugin on activation if it doesn't// meet minimum requirements.static function activation_check() { if ( ! self::compatible_version() ) { deactivate_plugins( plugin_basename( __FILE__ ) ); wp_die( __( 'My Plugin requires PHP 5.1 or higher!', 'my-plugin' ) ); } } // The backup sanity check, in case the plugin is activated in a weird way, // or the versions change after activation. function check_version() { if ( ! self::compatible_version() ) { if ( is_plugin_active( plugin_basename( __FILE__ ) ) ) { deactivate_plugins( plugin_basename( __FILE__ ) ); add_action( 'admin_notices', array( $this, 'disabled_notice' ) ); if ( isset( $_GET['activate'] ) ) { unset( $_GET['activate'] ); } } } } function disabled_notice() { echo '<strong>' . esc_html__( 'My Plugin requires PHP 5.1 or higher!', 'my-plugin' ) . '</strong>'; } static function compatible_version() { if ( version_compare(PHP_VERSION, '5.1', '<') ) { return false; } // Add sanity checks for other version requirements here return true; } } global $myplugin; $myplugin = new MyPlugin(); register_activation_hook( __FILE__, array( 'MyPlugin', 'activation_check' ) ); I've also saved the code above in a gist.
wordpress
{ "language": "en", "length": 664, "provenance": "stackexchange_00019.jsonl.gz:426773", "question_score": "15", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76007" }
[ 0.069091796875, 0.0225830078125, -0.0323486328125, -0.07635498046875, 0.048370361328125, -0.0168609619140625, -0.0005669593811035156, -0.0148162841796875, 0.040679931640625, -0.0301513671875, -0.038543701171875, -0.00957489013671875, -0.047088623046875, -0.031280517578125, -0.002315521240234375, -0.04833984375, 0.0386962890625, -0.0210723876953125, 0.004352569580078125, 0.00270843505859375, -0.0253753662109375, 0.044342041015625, 0.0104827880859375, 0.0330810546875, 0.00939178466796875, 0.003200531005859375, 0.1136474609375, -0.05267333984375, -0.018035888671875, -0.07470703125, 0.01399993896484375, 0.0447998046875, 0.0007481575012207031, 0.0509033203125, -0.02276611328125, -0.0380859375, -0.0046539306640625, 0.0166778564453125, 0.0181427001953125, 0.00028967857360839844, 0.04248046875, -0.03509521484375, 0.056304931640625, 0.0015935897827148438, 0.0200042724609375, 0.0017719268798828125, 0.044677734375, -0.033599853515625, 0.00946807861328125, -0.00485992431640625, 0.020599365234375, 0.006805419921875, 0.0245361328125, -0.0271148681640625, -0.0227203369140625, -0.005126953125, -0.0112457275390625, 0.09234619140625, 0.0178985595703125, 0.0189971923828125, -0.048919677734375, 0.038177490234375, -0.0104217529296875, -0.043914794921875, 0.0460205078125, 0.0108642578125, 0.043365478515625, 0.0209808349609375, -0.019287109375, 0.056365966796875, 0.0229644775390625, -0.030548095703125, -0.0037689208984375, -0.0258026123046875, -0.006641387939453125, -0.004062652587890625, 0.01422882080078125, -0.01258087158203125, 0.00620269775390625, 0.0055389404296875, 0.034027099609375, 0.0266265869140625, -0.0234375, -0.0287933349609375, 0.0416259765625, 0.0098724365234375, -0.00153350830078125, -0.027923583984375, -0.050567626953125, -0.004932403564453125, -0.04803466796875, 0.01033782958984375, -0.0198211669921875, -0.035980224609375, -0.020416259765625, 0.002239227294921875, -0.01067352294921875, -0.0187835693359375, -0.0103607177734375, -0.01129150390625, 0.026031494140625, -0.043670654296875, 0.0010433197021484375, -0.0207672119140625, -0.00865936279296875, 0.04998779296875, -0.0078582763671875, -0.060211181640625, -0.0250701904296875, 0.0106353759765625, 0.0008306503295898438, -0.048583984375, -0.05865478515625, -0.0546875, 0.0182037353515625, 0.043121337890625, -0.06439208984375, 0.0257110595703125, 0.01456451416015625, 0.02069091796875, -0.0024776458740234375, 0.02947998046875, -0.0180206298828125, -0.04547119140625, -0.0269927978515625, -0.0582275390625, -0.01525115966796875, -0.00934600830078125, 0.00753021240234375, 0.0034332275390625, -0.0302734375, 0.0157318115234375, 0.062469482421875, 0.0023040771484375, 0.0027866363525390625, -0.01477813720703125, 0.02069091796875, 0.0675048828125, -0.0031490325927734375, 0.00335693359375, -0.02593994140625, -0.0227508544921875, 0.01222991943359375, -0.02435302734375, -0.00586700439453125, -0.0112457275390625, 0.0167236328125, 0.034698486328125, -0.01654052734375, -0.044097900390625, 0.060638427734375, -0.0439453125, 0.039886474609375, -0.007785797119140625, -0.01214599609375, 0.007282257080078125, 0.0367431640625, -0.0223236083984375, -0.0533447265625, -0.02655029296875, 0.0216522216796875, -0.027862548828125, -0.003292083740234375, -0.048126220703125, -0.06658935546875, 0.0333251953125, -0.0687255859375, -0.0119781494140625, 0.0206451416015625, 0.0205078125, 0.0152435302734375, -0.035491943359375, -0.00641632080078125, 0.0193328857421875, -0.0036525726318359375, 0.028717041015625, -0.019683837890625, 0.0186004638671875, 0.053375244140625, -0.01493072509765625, -0.037750244140625, -0.02947998046875, 0.06982421875, -0.0266265869140625, -0.030242919921875, -0.021820068359375, 0.0244140625, 0.0208587646484375, 0.00418853759765625, 0.0093994140625, 0.043792724609375, 0.006683349609375, -0.021148681640625, 0.0372314453125, -0.0261688232421875, -0.031158447265625, 0.0024280548095703125, 0.013885498046875, -0.0173187255859375, -0.00501251220703125, 0.009552001953125, 0.0330810546875, -0.013763427734375, -0.03155517578125, -0.07904052734375, -0.003330230712890625, -0.0192413330078125, 0.045135498046875, 0.0302886962890625, 0.03118896484375, 0.006832122802734375, 0.0033168792724609375, -0.0265045166015625, 0.031402587890625, -0.01505279541015625, 0.0031681060791015625, -0.03509521484375, 0.0203399658203125, -0.00373077392578125, 0.053131103515625, 0.01708984375, -0.028717041015625, -0.001438140869140625, -0.02301025390625, 0.032745361328125, -0.0294647216796875, 0.01155853271484375, -0.0278167724609375, 0.04156494140625, -0.002407073974609375, 0.0208892822265625, 0.01486968994140625, -0.00655364990234375, -0.032257080078125, -0.026123046875, -0.01105499267578125, -0.02093505859375, -0.11602783203125, 0.00579071044921875, 0.07806396484375, 0.0186309814453125, 0.015838623046875, -0.014007568359375, 0.01242828369140625, 0.0025310516357421875, -0.04925537109375, -0.00632476806640625, 0.0013256072998046875, -0.0160980224609375, 0.01007080078125, -0.0191802978515625, 0.027862548828125, 0.0266265869140625, 0.037261962890625, 0.006290435791015625, 0.026580810546875, -0.0024967193603515625, -0.0355224609375, -0.02557373046875, -0.0038318634033203125, 0.0160980224609375, -0.04608154296875, -0.054046630859375, 0.01299285888671875, 0.024658203125, -0.00943756103515625, 0.05230712890625, 0.048583984375, 0.01145172119140625, -0.03515625, -0.00545501708984375, 0.00595855712890625, -0.0113525390625, 0.002185821533203125, -0.00838470458984375, 0.006252288818359375, -0.043792724609375, 0.0234832763671875, 0.0109710693359375, 0.0019063949584960938, -0.022247314453125, 0.0002968311309814453, 0.0377197265625, -0.0149383544921875, 0.00830078125, 0.0291595458984375, 0.038726806640625, -0.04083251953125, 0.00958251953125, -0.0124664306640625, 0.033172607421875, -0.022369384765625, -0.039276123046875, 0.01629638671875, 0.017913818359375, -0.0517578125, 0.00839996337890625, -0.037200927734375, 0.031280517578125, -0.01473236083984375, 0.01276397705078125, 0.054840087890625, 0.0306549072265625, -0.0140228271484375, -0.005512237548828125, 0.0149688720703125, 0.035430908203125, -0.014892578125, -0.0296630859375, -0.002155303955078125, -0.053314208984375, -0.02978515625, 0.0310211181640625, 0.06591796875, -0.0167999267578125, -0.0577392578125, -0.00811004638671875, 0.028656005859375, -0.06378173828125, -0.060546875, -0.0171661376953125, -0.0286407470703125, 0.0277862548828125, 0.033721923828125, -0.0032711029052734375, -0.031097412109375, 0.0706787109375, 0.01351165771484375, -0.025177001953125, -0.0264434814453125, -0.0270843505859375, -0.0701904296875, -0.06610107421875, -0.030792236328125, 0.00336456298828125, 0.0214996337890625, 0.004207611083984375, 0.056640625, -0.01727294921875, -0.062286376953125, -0.015716552734375, -0.0430908203125, -0.0022106170654296875, 0.0289459228515625, 0.0027751922607421875, -0.024749755859375, 0.004680633544921875, 0.003932952880859375, 0.0300445556640625, 0.008514404296875, -0.0265960693359375, -0.0225982666015625, 0.0228271484375, -0.01380157470703125, 0.006694793701171875, -0.00112152099609375, -0.02978515625, -0.04608154296875, -0.042083740234375, -0.08148193359375, 0.016204833984375, 0.0210723876953125, -0.005802154541015625, 0.003910064697265625, -0.03387451171875, -0.032501220703125, 0.034423828125, 0.00011277198791503906, -0.044952392578125, -0.0080413818359375, -0.0086212158203125, -0.0242462158203125, 0.03314208984375, -0.00981903076171875, -0.01091766357421875, 0.004207611083984375, 0.04180908203125, -0.0172882080078125, -0.01409912109375, 0.01280975341796875, -0.006542205810546875, 0.0097503662109375, -0.033203125, 0.002971649169921875, -0.0032672882080078125, 0.024261474609375, -0.032928466796875, 0.015533447265625, -0.0181121826171875, -0.0125885009765625, -0.00608062744140625, 0.0567626953125, 0.0000718832015991211, -0.02471923828125, 0.0120849609375, 0.002216339111328125, -0.01165008544921875, 0.0269317626953125, -0.035491943359375, -0.0159454345703125, -0.023193359375, -0.000012874603271484375, 0.005290985107421875, -0.0274505615234375, -0.0228424072265625, -0.01483917236328125, -0.033477783203125, -0.0125885009765625, 0.0266571044921875, -0.039276123046875, 0.00888824462890625, 0.0130767822265625, -0.00310516357421875, -0.026611328125, 0.0036869049072265625, -0.040191650390625, -0.0689697265625, -0.00850677490234375, -0.03851318359375, 0.042388916015625, 0.01184844970703125, 0.0078582763671875, -0.04388427734375, 0.0296783447265625, -0.002933502197265625, -0.00025272369384765625, 0.012664794921875, 0.0171051025390625, -0.0418701171875, 0.0265960693359375, 0.0199127197265625, -0.019775390625, -0.017303466796875, 0.0111083984375, -0.0302734375, 0.01297760009765625, -0.01110076904296875, -0.0311279296875, 0.022216796875, -0.046356201171875, -0.03424072265625, -0.02886962890625, -0.016448974609375, -0.0086822509765625, 0.0064544677734375, -0.0250396728515625, -0.019683837890625, -0.045806884765625, 0.05474853515625, -0.0107421875, 0.0013551712036132812, -0.01377105712890625, 0.0577392578125, 0.0004627704620361328, -0.038055419921875, 0.019805908203125, 0.00705718994140625, 0.0318603515625, 0.0187530517578125, 0.0262908935546875, -0.0078887939453125, -0.025115966796875, 0.07061767578125, 0.007114410400390625, 0.01535797119140625, -0.0183868408203125, -0.019775390625, 0.01751708984375, -0.028167724609375, 0.01593017578125, 0.034393310546875, 0.0254058837890625, 0.0023822784423828125, -0.0011682510375976562, -0.01043701171875, -0.0188751220703125, -0.006038665771484375, -0.001605987548828125, 0.0242462158203125, -0.0088653564453125, -0.05914306640625, 0.033172607421875, -0.0025691986083984375, -0.0400390625, 0.026885986328125, -0.01250457763671875, 0.0012235641479492188, -0.05059814453125, -0.011932373046875, -0.002655029296875, 0.07452392578125, -0.0199737548828125, 0.036376953125, 0.0153961181640625, -0.02056884765625, -0.044342041015625, 0.00305938720703125, -0.0031642913818359375, 0.03033447265625, -0.0088348388671875, -0.054351806640625, 0.0216827392578125, 0.00186920166015625, -0.0355224609375, 0.0035800933837890625, 0.043731689453125, 0.03411865234375, -0.033599853515625, -0.01229095458984375, -0.032135009765625, 0.0244140625, -0.054656982421875, -0.060211181640625, -0.00823211669921875, -0.022796630859375, -0.017364501953125, 0.02398681640625, 0.0133209228515625, 0.004413604736328125, -0.00811767578125, 0.055511474609375, 0.0557861328125, -0.008087158203125, 0.025848388671875, -0.0024471282958984375, 0.0152740478515625, -0.0865478515625, -0.0246734619140625, -0.0144500732421875, -0.04156494140625, -0.0065460205078125, 0.01004791259765625, -0.048309326171875, 0.00201416015625, 0.047119140625, 0.0175018310546875, -0.0277862548828125, 0.0474853515625, 0.032196044921875, -0.032135009765625, -0.03948974609375, 0.0251007080078125, 0.059234619140625, -0.007732391357421875, 0.004497528076171875, -0.0055694580078125, 0.0277862548828125, -0.0036449432373046875, -0.033355712890625, -0.075439453125, 0.03021240234375, 0.0692138671875, 0.05010986328125, -0.02508544921875, -0.0223388671875, 0.00878143310546875, 0.0474853515625, -0.054443359375, -0.039703369140625, 0.0699462890625, -0.0172882080078125, -0.0048828125, 0.0031337738037109375, -0.0135498046875, 0.01152801513671875, -0.0034637451171875, 0.053680419921875, 0.024200439453125, -0.03472900390625, -0.0274505615234375, -0.059722900390625, -0.042083740234375, -0.0443115234375, -0.0238494873046875, -0.049072265625, 0.0204010009765625, -0.01324462890625, 0.00958251953125, -0.0249176025390625, -0.0038204193115234375, -0.005519866943359375, 0.039581298828125, 0.005588531494140625, 0.061187744140625, -0.0309906005859375, 0.0306549072265625, 0.0194854736328125, -0.0026416778564453125, 0.0133209228515625, 0.0182037353515625, 0.0438232421875, -0.018035888671875, 0.035675048828125, 0.0024890899658203125, -0.0059814453125, -0.0443115234375, 0.034881591796875, -0.0853271484375, -0.004833221435546875, -0.0243377685546875, -0.0191497802734375, 0.00022673606872558594, 0.0014133453369140625, -0.0163726806640625, 0.05267333984375, 0.0526123046875, -0.007022857666015625, 0.027069091796875, -0.05511474609375, -0.05010986328125, 0.018646240234375, 0.04278564453125, -0.01125335693359375, -0.024322509765625, -0.0290374755859375, 0.016754150390625, -0.03948974609375, 0.03173828125, 0.024261474609375, 0.007457733154296875, 0.03143310546875, -0.019378662109375, 0.0187530517578125, 0.01079559326171875, 0.03167724609375, -0.031982421875, -0.043365478515625, 0.03082275390625, 0.0213165283203125, 0.007015228271484375, 0.024505615234375, 0.0059967041015625, 0.0008196830749511719, 0.043853759765625, 0.034423828125, -0.05865478515625, -0.0113067626953125, 0.0005087852478027344, -0.032958984375, -0.007373809814453125, -0.040863037109375, 0.00685882568359375, -0.069580078125, 0.05645751953125, 0.030670166015625, -0.00199127197265625, 0.00470733642578125, -0.038330078125, -0.0241241455078125, -0.015625, -0.03656005859375, 0.026153564453125, 0.0106353759765625, 0.0472412109375, -0.00428009033203125, 0.055023193359375, 0.020294189453125, -0.0026912689208984375, 0.006237030029296875, -0.049163818359375, -0.057373046875, -0.0258331298828125, -0.0175018310546875, -0.0576171875, -0.02276611328125, 0.0019474029541015625, 0.033203125, 0.053802490234375, 0.0024204254150390625, -0.0112457275390625, 0.053131103515625, -0.0299072265625, -0.0278167724609375, -0.006763458251953125, -0.009185791015625, 0.0307464599609375, 0.002330780029296875, 0.0014505386352539062, -0.0309906005859375, 0.0038433074951171875, -0.0005307197570800781, 0.01488494873046875, 0.07208251953125, -0.01055908203125, -0.029541015625, 0.036407470703125, -0.0009908676147460938, -0.0226593017578125, -0.0233154296875, 0.045745849609375, -0.060516357421875, -0.0139617919921875, -0.0138397216796875, -0.01004791259765625, -0.0145263671875, -0.045623779296875, -0.0443115234375, 0.0819091796875, 0.01270294189453125, 0.0095672607421875, 0.01523590087890625, 0.0274658203125, -0.031707763671875, 0.004055023193359375, -0.01316070556640625, 0.04327392578125, -0.0172882080078125, 0.0113677978515625, -0.0177459716796875, 0.0210113525390625, -0.00939178466796875, -0.005367279052734375, -0.00524139404296875, 0.00833892822265625, -0.04296875, -0.00279998779296875, 0.0279388427734375, 0.037078857421875, 0.0394287109375, 0.033935546875, 0.0184478759765625, -0.002040863037109375, 0.03302001953125, 0.018218994140625, 0.046661376953125, -0.026702880859375, -0.007320404052734375, 0.035064697265625, 0.0212249755859375, 0.008575439453125, 0.000038564205169677734, 0.01316070556640625, -0.032867431640625, 0.0061187744140625, 0.0165863037109375, 0.0201568603515625, 0.005512237548828125, -0.00015223026275634766, 0.0016651153564453125, 0.00888824462890625, 0.00841522216796875, 0.0005669593811035156, 0.039825439453125, 0.010955810546875, -0.0195465087890625, 0.00019681453704833984, 0.00968170166015625, -0.011749267578125, -0.0209808349609375, -0.0291900634765625, 0.001674652099609375, -0.01172637939453125, -0.0042724609375, 0.0263519287109375, 0.0216827392578125, 0.030426025390625, 0.03643798828125, 0.00832366943359375, -0.01357269287109375, -0.0167083740234375, -0.0604248046875, 0.0027751922607421875, 0.013580322265625, -0.0043487548828125, 0.02252197265625, 0.0029087066650390625, 0.0011157989501953125, 0.04547119140625, -0.04388427734375, -0.0099639892578125, 0.02203369140625, 0.006488800048828125, 0.0184326171875, -0.005680084228515625, -0.003326416015625, -0.03460693359375, -0.015350341796875, -0.01375579833984375, -0.00540924072265625, 0.038421630859375, 0.022705078125, 0.00970458984375, -0.032257080078125, -0.0211334228515625, -0.003414154052734375, 0.041717529296875, -0.00363922119140625, -0.0036106109619140625, -0.03448486328125, -0.06585693359375, -0.02056884765625, 0.0487060546875, -0.0499267578125, -0.029937744140625, 0.02874755859375, 0.08538818359375, -0.03521728515625, -0.03619384765625, 0.044403076171875, -0.006397247314453125, -0.020477294921875, -0.0289459228515625, 0.0286712646484375, 0.014190673828125, -0.00209808349609375, 0.0269317626953125, 0.04168701171875, -0.002834320068359375, -0.028656005859375, 0.032073974609375, 0.00850677490234375, 0.00768280029296875, 0.0186309814453125, -0.01293182373046875, 0.015411376953125, -0.0017385482788085938, 0.020843505859375, 0.01910400390625, 0.012359619140625, 0.0016851425170898438, -0.033203125, -0.0024089813232421875, -0.050872802734375, 0.08154296875, 0.0203857421875, 0.00853729248046875, 0.03631591796875, -0.0330810546875, -0.0218353271484375, -0.014373779296875, 0.04296875, -0.01019287109375, -0.033111572265625, -0.040557861328125, -0.06756591796875, 0.081787109375, 0.04931640625, 0.10369873046875, -0.051910400390625, 0.056671142578125, -0.0117645263671875, -0.01849365234375, -0.004566192626953125, 0.00850677490234375, -0.0015516281127929688, 0.01322174072265625, -0.01959228515625, -0.0188140869140625, -0.03485107421875, 0.04388427734375, -0.0191192626953125, 0.0202178955078125, 0.00022494792938232422, 0.01499176025390625, 0.018463134765625, 0.051605224609375, 0.0259857177734375, -0.023223876953125, -0.066162109375, -0.053741455078125, 0.023040771484375, 0.002452850341796875, 0.048797607421875, -0.033111572265625, -0.03619384765625, 0.0237579345703125, -0.0413818359375, 0.0201416015625, 0.023529052734375, 0.0036029815673828125, 0.018218994140625, 0.0308990478515625, -0.0113372802734375, 0.00701141357421875, -0.00897979736328125, 0.0027942657470703125, 0.016265869140625, 0.046875, -0.005870819091796875, 0.045501708984375, 0.024200439453125, 0.033050537109375, 0.0310211181640625, -0.0207672119140625, -0.006458282470703125, 0.043670654296875, -0.006622314453125, -0.00722503662109375, -0.035003662109375, -0.0188140869140625, -0.03350830078125, -0.0032444000244140625, 0.005859375, -0.001155853271484375, -0.04461669921875, 0.01549530029296875, 0.046875, 0.034393310546875, -0.017608642578125, -0.01029205322265625, 0.0284576416015625, -0.06634521484375, 0.033355712890625, -0.004550933837890625, 0.033721923828125, -0.037261962890625, -0.0103302001953125, -0.0357666015625, -0.01557159423828125, -0.0546875, 0.038482666015625, -0.01806640625, 0.018341064453125, 0.0210418701171875, -0.0303497314453125, 0.0045318603515625, -0.01094818115234375, 0.0230560302734375, 0.0283966064453125, 0.01314544677734375, -0.0024051666259765625, 0.05047607421875, -0.0355224609375, -0.03936767578125, -0.052093505859375, 0.02484130859375, -0.0899658203125, -0.041229248046875, 0.0266876220703125, -0.003753662109375, 0.04132080078125, -0.0212860107421875, -0.049407958984375, 0.0523681640625, -0.0028514862060546875, -0.026885986328125, 0.032470703125, -0.0445556640625, -0.014404296875, 0.0223846435546875, 0.0231781005859375, -0.036590576171875, -0.028564453125, 0.0288238525390625, -0.0000011920928955078125, -0.00930023193359375, 0.0173492431640625, 0.00685882568359375, -0.0126190185546875, 0.0305938720703125, 0.024139404296875, -0.032928466796875, -0.0299530029296875, -0.028411865234375, 0.052581787109375, 0.032379150390625, 0.006175994873046875, 0.0224151611328125, 0.056182861328125, -0.006744384765625, -0.00560760498046875, -0.032989501953125, -0.01280975341796875, -0.0035037994384765625, 0.06689453125, 0.032135009765625, 0.02923583984375, -0.041412353515625, -0.02301025390625, -0.028472900390625, 0.00969696044921875, -0.01519012451171875, 0.007282257080078125, -0.06268310546875, -0.007694244384765625, 0.005828857421875, -0.02032470703125, 0.0499267578125, 0.01953125, 0.00820159912109375, 0.0146331787109375, 0.044647216796875, -0.0380859375, -0.03790283203125, -0.024810791015625, 0.041717529296875, -0.0200347900390625, 0.02227783203125, -0.0004868507385253906, 0.0128173828125, 0.033416748046875, 0.045806884765625, 0.02349853515625, 0.0029621124267578125, -0.039886474609375, 0.01220703125, 0.01073455810546875, 0.0256805419921875, -0.03045654296875, -0.048919677734375, -0.00022530555725097656, 0.006671905517578125, 0.021026611328125, 0.0167236328125, -0.00601959228515625, 0.02178955078125, 0.00917816162109375, -0.027099609375, 0.021759033203125, -0.01110076904296875, -0.01959228515625, 0.04437255859375, 0.0435791015625, -0.0560302734375, 0.05023193359375, -0.028717041015625, 0.040283203125, 0.00548553466796875, 0.0804443359375, 0.0111236572265625, 0.0156402587890625, 0.068359375, 0.008575439453125, 0.0034942626953125 ]
8edd8f99f8c64ee0728a51b2342e7f0dc7df8b02
Wordpress Stackexchange Q: Any way to add custom options to Gallery Settings? Now that Wordpress has updated to version 3.5, the media gallery has been overhauled and this custom options solution doesn't appear to work anymore. I'd like to add a couple of fields to the gallery, so that a client doesn't have to manually add these fields to the gallery shortcode. Does anyone know how to add custom fields with the new 3.5 gallery? A: It looks like the nightly builds of the Advanced Custom Fields plugin can (mostly) handle this now, so you could try installing that. Details on this support issue. I can't update my copy of it to test right now but this is what it would look like in the admin:
Q: Any way to add custom options to Gallery Settings? Now that Wordpress has updated to version 3.5, the media gallery has been overhauled and this custom options solution doesn't appear to work anymore. I'd like to add a couple of fields to the gallery, so that a client doesn't have to manually add these fields to the gallery shortcode. Does anyone know how to add custom fields with the new 3.5 gallery? A: It looks like the nightly builds of the Advanced Custom Fields plugin can (mostly) handle this now, so you could try installing that. Details on this support issue. I can't update my copy of it to test right now but this is what it would look like in the admin:
wordpress
{ "language": "en", "length": 124, "provenance": "stackexchange_00019.jsonl.gz:426778", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76026" }
[ 0.062347412109375, 0.005451202392578125, 0.022247314453125, -0.0307464599609375, 0.000980377197265625, -0.01763916015625, 0.03924560546875, -0.0296478271484375, 0.00011616945266723633, -0.01299285888671875, -0.017974853515625, 0.0012807846069335938, -0.048736572265625, -0.022064208984375, 0.0025634765625, -0.049346923828125, 0.03692626953125, -0.007183074951171875, 0.043182373046875, 0.000042557716369628906, 0.02520751953125, 0.01041412353515625, 0.039642333984375, 0.01184844970703125, 0.035858154296875, 0.016632080078125, -0.01074981689453125, -0.0090179443359375, 0.032379150390625, 0.0161285400390625, 0.0209808349609375, -0.04962158203125, 0.00925445556640625, 0.031951904296875, -0.0249176025390625, 0.0301361083984375, 0.048492431640625, 0.0021572113037109375, 0.0006666183471679688, 0.04754638671875, 0.03369140625, -0.0244293212890625, -0.018585205078125, -0.01313018798828125, -0.018157958984375, -0.00498199462890625, 0.023712158203125, -0.0160675048828125, 0.0302276611328125, -0.0100860595703125, -0.0200653076171875, -0.033050537109375, -0.00531768798828125, -0.04541015625, -0.0283660888671875, -0.055328369140625, -0.03326416015625, 0.0168304443359375, 0.0311279296875, -0.032806396484375, -0.01555633544921875, -0.01358795166015625, 0.02178955078125, 0.00858306884765625, 0.027740478515625, 0.0013704299926757812, 0.027862548828125, 0.0223388671875, -0.03131103515625, 0.0088348388671875, 0.0222625732421875, -0.03619384765625, 0.039398193359375, -0.053314208984375, -0.01097869873046875, 0.0261993408203125, -0.020751953125, -0.0027141571044921875, 0.040252685546875, -0.04974365234375, 0.0028591156005859375, -0.007083892822265625, 0.040008544921875, -0.031982421875, 0.0182342529296875, -0.0167999267578125, -0.001712799072265625, 0.001522064208984375, 0.026336669921875, -0.009765625, 0.009674072265625, -0.055908203125, -0.00662994384765625, 0.06280517578125, 0.007007598876953125, -0.0229034423828125, 0.00015556812286376953, 0.016937255859375, 0.007232666015625, 0.0239105224609375, 0.020782470703125, -0.049896240234375, 0.045135498046875, -0.027130126953125, -0.01059722900390625, -0.020477294921875, 0.0010976791381835938, -0.01611328125, 0.01360321044921875, 0.037261962890625, -0.03131103515625, 0.02783203125, 0.0421142578125, 0.0007710456848144531, 0.005474090576171875, -0.0257568359375, -0.00823211669921875, 0.0592041015625, -0.00848388671875, 0.013519287109375, 0.005584716796875, 0.014495849609375, -0.01009368896484375, -0.00046133995056152344, -0.003932952880859375, -0.0106353759765625, -0.025726318359375, -0.002567291259765625, 0.00012791156768798828, 0.0122222900390625, -0.03509521484375, 0.0465087890625, 0.0731201171875, -0.0008845329284667969, -0.01355743408203125, -0.01189422607421875, 0.055206298828125, -0.0214996337890625, 0.00835418701171875, 0.004791259765625, 0.018402099609375, -0.0221099853515625, -0.0160064697265625, 0.0181427001953125, 0.03424072265625, -0.01751708984375, 0.034820556640625, 0.0516357421875, -0.005126953125, -0.056610107421875, 0.06109619140625, 0.045623779296875, 0.0243377685546875, 0.0350341796875, 0.0030231475830078125, 0.01174163818359375, 0.07879638671875, -0.0391845703125, -0.0267486572265625, -0.05859375, -0.0013780593872070312, -0.00235748291015625, -0.005584716796875, -0.05517578125, -0.042388916015625, 0.00044608116149902344, -0.0239105224609375, -0.006420135498046875, 0.0285797119140625, 0.0309295654296875, 0.0213165283203125, -0.062103271484375, -0.005832672119140625, 0.03350830078125, -0.0055999755859375, 0.041473388671875, 0.00885009765625, 0.0262603759765625, 0.00027441978454589844, 0.0176544189453125, -0.001964569091796875, -0.042083740234375, 0.054290771484375, -0.02978515625, -0.0372314453125, 0.016998291015625, 0.0220794677734375, 0.05877685546875, 0.00792694091796875, 0.01253509521484375, 0.006481170654296875, 0.01474761962890625, -0.01270294189453125, 0.012603759765625, 0.01494598388671875, -0.0017805099487304688, -0.030853271484375, 0.00847625732421875, -0.010101318359375, -0.032562255859375, -0.0374755859375, 0.04388427734375, -0.00972747802734375, 0.047760009765625, 0.024658203125, 0.036712646484375, -0.0022449493408203125, 0.03558349609375, -0.0246734619140625, -0.036895751953125, 0.0217132568359375, -0.0201416015625, -0.037628173828125, 0.0667724609375, -0.0220184326171875, 0.0166015625, 0.003505706787109375, 0.054046630859375, 0.00229644775390625, 0.019744873046875, 0.012359619140625, -0.05609130859375, -0.00331878662109375, 0.0185089111328125, 0.011810302734375, -0.035247802734375, -0.01358795166015625, -0.0272674560546875, 0.0211944580078125, 0.00998687744140625, -0.01593017578125, 0.011016845703125, -0.0005636215209960938, -0.03570556640625, -0.04486083984375, -0.005474090576171875, -0.019500732421875, -0.057647705078125, 0.0029754638671875, 0.0546875, 0.041961669921875, 0.0167388916015625, 0.03289794921875, 0.005344390869140625, 0.0650634765625, 0.01486968994140625, 0.047393798828125, -0.0511474609375, -0.0010251998901367188, 0.0203399658203125, 0.017364501953125, 0.0198516845703125, 0.004505157470703125, -0.046417236328125, 0.0294342041015625, 0.036285400390625, -0.040130615234375, -0.01364898681640625, 0.0239105224609375, -0.00274658203125, 0.005702972412109375, -0.0115203857421875, -0.00019359588623046875, -0.00890350341796875, 0.023162841796875, 0.065673828125, 0.043304443359375, 0.0560302734375, -0.05682373046875, 0.06732177734375, 0.0000064373016357421875, -0.0041656494140625, -0.00118255615234375, -0.0079803466796875, -0.045928955078125, 0.05889892578125, -0.040008544921875, 0.0285186767578125, -0.01045989990234375, -0.0020427703857421875, 0.0011262893676757812, 0.0176239013671875, -0.03704833984375, -0.007045745849609375, 0.0128021240234375, -0.058074951171875, -0.003467559814453125, 0.0289154052734375, -0.043243408203125, -0.04901123046875, 0.01861572265625, 0.007518768310546875, -0.019134521484375, -0.0005040168762207031, 0.015869140625, -0.038848876953125, -0.02532958984375, -0.050018310546875, 0.044158935546875, -0.0635986328125, 0.0258636474609375, 0.057281494140625, -0.048736572265625, 0.019927978515625, -0.0017547607421875, -0.0214691162109375, -0.0213775634765625, 0.04144287109375, 0.011260986328125, -0.04412841796875, -0.0214385986328125, -0.0029010772705078125, 0.0211944580078125, -0.0120849609375, 0.00968170166015625, 0.001506805419921875, -0.026763916015625, 0.0160064697265625, -0.0269775390625, -0.00101470947265625, 0.055023193359375, -0.073974609375, -0.039947509765625, -0.00823974609375, -0.061492919921875, -0.0029296875, 0.0301055908203125, -0.0066375732421875, 0.0048065185546875, -0.01325225830078125, -0.017364501953125, -0.01073455810546875, -0.0261688232421875, -0.0171356201171875, -0.006748199462890625, -0.0002434253692626953, -0.0035991668701171875, 0.09185791015625, 0.00363922119140625, -0.054229736328125, -0.00968170166015625, -0.06622314453125, -0.01041412353515625, 0.024505615234375, 0.057952880859375, -0.057373046875, 0.003021240234375, 0.002529144287109375, 0.0367431640625, 0.0292205810546875, -0.027740478515625, -0.0191650390625, -0.03955078125, 0.021209716796875, -0.01812744140625, 0.035430908203125, 0.054229736328125, 0.004230499267578125, 0.0003814697265625, -0.032562255859375, 0.003765106201171875, 0.01556396484375, -0.00811767578125, -0.00986480712890625, -0.00977325439453125, -0.0247039794921875, -0.00844573974609375, 0.018341064453125, -0.0266876220703125, 0.0034885406494140625, 0.006565093994140625, -0.044281005859375, 0.0247650146484375, -0.00498199462890625, -0.0156707763671875, 0.0004620552062988281, -0.0147552490234375, -0.0296478271484375, 0.0167388916015625, -0.0088958740234375, -0.002197265625, -0.0165863037109375, 0.042877197265625, -0.022613525390625, -0.058868408203125, 0.02655029296875, -0.07489013671875, 0.00560760498046875, -0.06414794921875, -0.00514984130859375, -0.02008056640625, 0.0870361328125, -0.0271453857421875, -0.02227783203125, 0.0291290283203125, 0.0117034912109375, 0.01490020751953125, -0.0011243820190429688, -0.0219879150390625, -0.0462646484375, -0.03118896484375, 0.01019287109375, 0.0151519775390625, -0.0025157928466796875, -0.038543701171875, 0.032318115234375, -0.0309906005859375, -0.01546478271484375, 0.04058837890625, -0.0103302001953125, -0.01306915283203125, -0.0032520294189453125, -0.024139404296875, -0.0302581787109375, -0.0171966552734375, 0.011505126953125, -0.1392822265625, -0.036163330078125, 0.0215911865234375, 0.10296630859375, -0.0032958984375, -0.047119140625, -0.04827880859375, 0.07635498046875, 0.01470947265625, -0.00815582275390625, 0.03460693359375, -0.00917816162109375, -0.0019235610961914062, 0.037933349609375, 0.0222625732421875, -0.005153656005859375, -0.006839752197265625, -0.019866943359375, -0.01116180419921875, -0.0113525390625, -0.0254058837890625, -0.030303955078125, -0.0029048919677734375, -0.0283050537109375, -0.0016803741455078125, -0.00910186767578125, -0.00939178466796875, -0.006633758544921875, -0.0108184814453125, -0.005767822265625, -0.00286865234375, 0.005313873291015625, -0.01177215576171875, -0.06268310546875, 0.0015888214111328125, 0.040069580078125, 0.0994873046875, 0.01186370849609375, 0.03533935546875, -0.061004638671875, -0.00677490234375, 0.026397705078125, -0.01425933837890625, 0.022216796875, 0.0028743743896484375, -0.0279998779296875, 0.0487060546875, -0.007175445556640625, -0.0030956268310546875, -0.043121337890625, 0.054656982421875, -0.0163726806640625, -0.00789642333984375, 0.0035839080810546875, -0.04229736328125, 0.03851318359375, -0.0033664703369140625, -0.0258941650390625, 0.014251708984375, 0.005619049072265625, 0.0218658447265625, -0.005779266357421875, 0.005298614501953125, -0.03582763671875, -0.0276336669921875, -0.004180908203125, -0.0019330978393554688, 0.034210205078125, 0.01398468017578125, -0.00494384765625, 0.0226898193359375, 0.0029087066650390625, -0.0021877288818359375, 0.00943756103515625, 0.0096893310546875, 0.00855255126953125, 0.0496826171875, -0.017730712890625, -0.002155303955078125, -0.01346588134765625, -0.00695037841796875, 0.0272064208984375, -0.01131439208984375, -0.048431396484375, -0.00756072998046875, -0.007358551025390625, 0.0106353759765625, 0.01435089111328125, -0.0155792236328125, 0.0308837890625, 0.042510986328125, 0.0013608932495117188, -0.004009246826171875, -0.055511474609375, 0.05517578125, -0.039093017578125, 0.026580810546875, -0.00445556640625, -0.0027179718017578125, -0.004222869873046875, 0.0308074951171875, -0.0190277099609375, 0.0120391845703125, -0.00527191162109375, -0.01392364501953125, 0.00911712646484375, 0.005649566650390625, 0.0280609130859375, 0.002819061279296875, 0.0246429443359375, -0.042327880859375, 0.0309906005859375, -0.0004706382751464844, 0.006824493408203125, 0.0062255859375, -0.0023403167724609375, 0.0164337158203125, 0.0102081298828125, -0.00868988037109375, -0.0267486572265625, -0.01446533203125, -0.0308685302734375, -0.053741455078125, -0.037994384765625, -0.007472991943359375, 0.0059661865234375, 0.0004534721374511719, -0.0137939453125, -0.00628662109375, 0.019744873046875, -0.04266357421875, 0.002857208251953125, 0.0271453857421875, -0.012786865234375, -0.02520751953125, -0.034271240234375, -0.01678466796875, -0.0061187744140625, 0.003124237060546875, -0.03814697265625, -0.041168212890625, -0.004955291748046875, -0.0064239501953125, 0.034576416015625, -0.02362060546875, 0.01415252685546875, -0.046844482421875, 0.02178955078125, -0.0487060546875, 0.0239410400390625, -0.01079559326171875, -0.0070648193359375, 0.03900146484375, -0.0234832763671875, -0.0144500732421875, -0.0361328125, 0.0078125, -0.020721435546875, -0.0110321044921875, -0.0264892578125, 0.0192718505859375, 0.0203094482421875, -0.021331787109375, -0.055908203125, -0.0396728515625, 0.00759124755859375, 0.051055908203125, 0.01168060302734375, 0.034820556640625, -0.037994384765625, 0.0020294189453125, 0.0208282470703125, 0.0195770263671875, -0.026214599609375, -0.0171966552734375, -0.057342529296875, 0.00727081298828125, -0.013092041015625, -0.0457763671875, 0.006282806396484375, -0.043487548828125, 0.029266357421875, 0.060455322265625, -0.015472412109375, 0.0345458984375, -0.0316162109375, -0.00955963134765625, -0.01081085205078125, 0.0306396484375, -0.040679931640625, 0.006275177001953125, 0.027313232421875, -0.019927978515625, 0.027557373046875, 0.002147674560546875, -0.05218505859375, 0.0546875, 0.0007486343383789062, 0.048980712890625, 0.0244903564453125, -0.0245819091796875, 0.051116943359375, 0.02947998046875, -0.0273284912109375, 0.0008411407470703125, 0.0008192062377929688, -0.0377197265625, -0.034912109375, 0.01049041748046875, 0.012847900390625, -0.033233642578125, 0.046051025390625, 0.0035076141357421875, -0.0186920166015625, 0.021881103515625, -0.033782958984375, 0.03729248046875, 0.00974273681640625, 0.04779052734375, -0.0465087890625, 0.01328277587890625, -0.0153045654296875, -0.016143798828125, 0.08428955078125, -0.0138092041015625, -0.01042938232421875, -0.0266265869140625, 0.055755615234375, -0.04107666015625, -0.0270843505859375, 0.01201629638671875, -0.0200958251953125, -0.025543212890625, 0.008880615234375, 0.00620269775390625, 0.01399993896484375, 0.0268402099609375, -0.026611328125, -0.02374267578125, -0.0011138916015625, 0.025787353515625, -0.01477813720703125, -0.030181884765625, -0.04058837890625, -0.03228759765625, -0.037811279296875, -0.05316162109375, -0.0194091796875, 0.0262451171875, 0.0188140869140625, 0.034576416015625, 0.06280517578125, -0.00870513916015625, 0.019683837890625, 0.025360107421875, -0.009307861328125, 0.0191497802734375, -0.038848876953125, 0.00859832763671875, -0.004306793212890625, -0.060302734375, 0.006988525390625, -0.018310546875, -0.026397705078125, -0.004703521728515625, -0.0026988983154296875, 0.04058837890625, -0.0236968994140625, -0.01953125, 0.0206451416015625, 0.0216064453125, -0.0024318695068359375, 0.020355224609375, 0.007114410400390625, -0.03863525390625, -0.0447998046875, 0.010650634765625, -0.07196044921875, -0.000008165836334228516, -0.0003674030303955078, -0.05828857421875, 0.1160888671875, -0.036468505859375, 0.0228271484375, 0.0325927734375, 0.047576904296875, -0.0499267578125, 0.0175323486328125, 0.0030002593994140625, 0.00418853759765625, -0.01338958740234375, -0.0113525390625, -0.031585693359375, -0.015289306640625, -0.0203704833984375, 0.06475830078125, 0.004962921142578125, 0.0033664703369140625, -0.00201416015625, -0.002899169921875, 0.058380126953125, 0.017303466796875, 0.01157379150390625, 0.01250457763671875, -0.012115478515625, -0.0160064697265625, 0.0202789306640625, -0.00109100341796875, 0.026885986328125, 0.0110321044921875, -0.0281524658203125, -0.0023193359375, -0.00041961669921875, 0.012603759765625, -0.004688262939453125, 0.060791015625, -0.003978729248046875, -0.0220947265625, 0.022705078125, -0.06158447265625, -0.00438690185546875, 0.0234527587890625, 0.0023136138916015625, 0.038055419921875, 0.028228759765625, -0.0185699462890625, 0.035797119140625, -0.01044464111328125, 0.0004286766052246094, -0.014129638671875, 0.007564544677734375, -0.00913238525390625, -0.0230255126953125, -0.006195068359375, 0.023834228515625, -0.017913818359375, 0.02606201171875, 0.00559234619140625, -0.0007677078247070312, -0.023712158203125, 0.051605224609375, -0.0147552490234375, 0.01351165771484375, -0.041412353515625, -0.0418701171875, 0.003925323486328125, -0.0098114013671875, 0.0022068023681640625, -0.00945281982421875, -0.014068603515625, 0.0022525787353515625, 0.0187530517578125, -0.06549072265625, 0.021209716796875, 0.0312042236328125, 0.03802490234375, -0.0122833251953125, 0.0003631114959716797, -0.07073974609375, -0.0161590576171875, -0.0150604248046875, -0.01934814453125, 0.007183074951171875, 0.027099609375, 0.024627685546875, 0.0321044921875, -0.0014438629150390625, -0.0112152099609375, -0.022857666015625, 0.0372314453125, -0.04168701171875, 0.03515625, -0.068115234375, -0.0552978515625, -0.018829345703125, 0.061370849609375, -0.006412506103515625, 0.031951904296875, 0.043914794921875, 0.0474853515625, -0.01325225830078125, -0.0168304443359375, 0.0673828125, -0.00798797607421875, -0.0135040283203125, -0.038665771484375, 0.0259246826171875, 0.061279296875, 0.020111083984375, 0.006099700927734375, -0.0177001953125, 0.0838623046875, -0.0232391357421875, 0.019256591796875, 0.0012378692626953125, -0.03375244140625, 0.032928466796875, -0.000057697296142578125, 0.07666015625, 0.01116943359375, -0.054901123046875, -0.0097198486328125, -0.0014362335205078125, -0.087158203125, -0.0006756782531738281, 0.041259765625, -0.034454345703125, 0.01544189453125, -0.0290069580078125, -0.04705810546875, -0.004261016845703125, 0.033172607421875, 0.0012693405151367188, -0.01300811767578125, -0.0005779266357421875, -0.0369873046875, -0.058868408203125, -0.0194854736328125, -0.039581298828125, 0.01568603515625, 0.052947998046875, 0.07086181640625, -0.001049041748046875, 0.043975830078125, -0.00923919677734375, -0.028533935546875, 0.0218963623046875, 0.006626129150390625, -0.0204010009765625, 0.0152130126953125, 0.00281524658203125, -0.0211334228515625, 0.053375244140625, 0.029541015625, 0.033721923828125, -0.0614013671875, -0.00566864013671875, -0.01035308837890625, 0.0032711029052734375, -0.0090179443359375, 0.0184478759765625, -0.040618896484375, -0.056610107421875, -0.058563232421875, -0.00572967529296875, 0.004058837890625, -0.031402587890625, -0.026580810546875, 0.019561767578125, 0.036712646484375, -0.00629425048828125, 0.0170440673828125, 0.007602691650390625, 0.0328369140625, 0.041900634765625, 0.009521484375, -0.0274505615234375, 0.01378631591796875, -0.0152587890625, 0.0091705322265625, 0.0038623809814453125, 0.04248046875, 0.0135498046875, -0.043853759765625, -0.0174560546875, -0.0010728836059570312, -0.01953125, -0.053863525390625, -0.01190185546875, 0.02685546875, -0.02886962890625, -0.00310516357421875, -0.019317626953125, -0.033538818359375, -0.061553955078125, 0.003635406494140625, 0.03363037109375, -0.03350830078125, 0.0007829666137695312, -0.07611083984375, -0.0021877288818359375, 0.029144287109375, 0.03802490234375, -0.09442138671875, 0.071533203125, 0.01282501220703125, -0.0307159423828125, 0.0230712890625, -0.046234130859375, 0.02349853515625, 0.052642822265625, -0.0098876953125, -0.0013685226440429688, -0.0002658367156982422, -0.01947021484375, 0.00926971435546875, 0.0279388427734375, 0.00968170166015625, -0.028717041015625, 0.0222625732421875, 0.05718994140625, 0.03228759765625, 0.0880126953125, 0.012451171875, -0.0282745361328125, 0.0305328369140625, -0.022705078125, -0.022857666015625, -0.0020694732666015625, 0.02325439453125, -0.05633544921875, -0.0242156982421875, -0.00887298583984375, -0.0108642578125, -0.0010051727294921875, -0.052154541015625, -0.12091064453125, 0.019073486328125, -0.00504302978515625, -0.047821044921875, -0.029449462890625, 0.003513336181640625, -0.01113128662109375, 0.02740478515625, -0.001430511474609375, -0.01500701904296875, 0.0083770751953125, 0.0303497314453125, 0.0114898681640625, 0.0267333984375, -0.0019426345825195312, 0.023712158203125, -0.0300445556640625, 0.0285797119140625, 0.01873779296875, -0.001880645751953125, 0.0482177734375, -0.0379638671875, 0.030609130859375, 0.0077667236328125, -0.07806396484375, -0.056610107421875, -0.041259765625, 0.028045654296875, 0.01264190673828125, -0.0572509765625, -0.055877685546875, -0.0521240234375, 0.037933349609375, 0.03179931640625, 0.010955810546875, 0.0085906982421875, 0.00600433349609375, -0.00960540771484375, 0.01137542724609375, -0.01519012451171875, 0.0040130615234375, -0.05987548828125, -0.028350830078125, 0.02801513671875, -0.007228851318359375, -0.065673828125, 0.04046630859375, -0.01300048828125, -0.006435394287109375, 0.04718017578125, -0.0243377685546875, 0.0225067138671875, 0.04412841796875, 0.0826416015625, -0.049468994140625, 0.003910064697265625, -0.00360870361328125, -0.02044677734375, 0.049102783203125, -0.03509521484375, 0.0085296630859375, -0.0178070068359375, -0.01580810546875, 0.040496826171875, 0.0030155181884765625, 0.0202178955078125, -0.028839111328125, -0.01629638671875, 0.012725830078125, 0.021820068359375, 0.00099945068359375, 0.011260986328125, -0.00621795654296875, 0.0369873046875, -0.0201416015625, 0.053009033203125, -0.015655517578125, -0.038543701171875, -0.040771484375, 0.00792694091796875, 0.0011281967163085938, 0.005962371826171875, 0.03790283203125, -0.0016927719116210938, 0.0047454833984375, 0.007061004638671875, -0.0139007568359375, -0.0506591796875, 0.029083251953125, 0.01132965087890625, 0.0014829635620117188, 0.013641357421875 ]
0213ac1163295833cadda148eb132eea2e208950
Wordpress Stackexchange Q: What is <# code #> in media-template.php, and how does it work? I'm checking /wp-includes/media-template.php and just found this: <# if ( data.compat && data.compat.meta ) { #> {{{ data.compat.meta }}} <# } #> Never seen <# #> or {{{ }}} before. What kind of PHP is this? Searching for this symbols in Google seems futile... A: Those are javascript templates that get compiled into HTML by a javascript library. I think WP uses underscore.js. Let's say you write a jQuery plugin, and you have to append HTML code to the document. Using such templates you can avoid stuffing that HTML code inside huge concatenated strings within your javascript code, and put it where the other HTML markup is. So you load that template from your plugin, compile it (variables get replaced) and append the resulting HTML to your document. Essentially you separate the business logic from the presentation logic. This also makes your plugin more decoupled.
Q: What is <# code #> in media-template.php, and how does it work? I'm checking /wp-includes/media-template.php and just found this: <# if ( data.compat && data.compat.meta ) { #> {{{ data.compat.meta }}} <# } #> Never seen <# #> or {{{ }}} before. What kind of PHP is this? Searching for this symbols in Google seems futile... A: Those are javascript templates that get compiled into HTML by a javascript library. I think WP uses underscore.js. Let's say you write a jQuery plugin, and you have to append HTML code to the document. Using such templates you can avoid stuffing that HTML code inside huge concatenated strings within your javascript code, and put it where the other HTML markup is. So you load that template from your plugin, compile it (variables get replaced) and append the resulting HTML to your document. Essentially you separate the business logic from the presentation logic. This also makes your plugin more decoupled.
wordpress
{ "language": "en", "length": 158, "provenance": "stackexchange_00019.jsonl.gz:426789", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76061" }
[ 0.00231170654296875, -0.0208282470703125, -0.0129852294921875, -0.03216552734375, -0.0174407958984375, -0.007221221923828125, 0.00299835205078125, 0.0124969482421875, -0.045166015625, 0.029296875, -0.017791748046875, 0.0254669189453125, 0.007518768310546875, -0.01031494140625, 0.03106689453125, -0.0251617431640625, 0.02703857421875, -0.028656005859375, -0.0116119384765625, -0.0236968994140625, -0.007572174072265625, -0.01427459716796875, 0.01221466064453125, 0.017547607421875, -0.0242156982421875, -0.0191192626953125, 0.11822509765625, -0.0391845703125, -0.00487518310546875, -0.03741455078125, -0.00167083740234375, 0.0180206298828125, 0.045196533203125, 0.0163421630859375, -0.043212890625, -0.0208587646484375, 0.002521514892578125, 0.0035648345947265625, -0.0223846435546875, 0.015228271484375, -0.0010843276977539062, 0.0106048583984375, 0.045166015625, 0.0155029296875, 0.005298614501953125, -0.0158233642578125, 0.00032258033752441406, -0.049346923828125, 0.015960693359375, -0.0073394775390625, 0.024688720703125, -0.01605224609375, 0.0260009765625, -0.006244659423828125, -0.02923583984375, 0.01549530029296875, -0.032745361328125, -0.01152801513671875, 0.0175628662109375, 0.046295166015625, 0.00926971435546875, -0.010650634765625, -0.0037746429443359375, -0.032318115234375, 0.005657196044921875, -0.0259552001953125, -0.04058837890625, 0.038299560546875, -0.017669677734375, -0.0133514404296875, 0.00910186767578125, -0.0157470703125, 0.01971435546875, -0.07550048828125, 0.012786865234375, 0.038665771484375, 0.0131378173828125, -0.0002455711364746094, -0.0127105712890625, -0.026763916015625, 0.0574951171875, 0.0127105712890625, 0.051910400390625, -0.0509033203125, 0.05169677734375, -0.01812744140625, 0.00667572021484375, -0.033203125, 0.00807952880859375, -0.01151275634765625, -0.0034122467041015625, 0.0037364959716796875, 0.032928466796875, -0.0256500244140625, -0.031341552734375, -0.0296630859375, 0.0251617431640625, 0.043304443359375, -0.0157470703125, 0.0013036727905273438, 0.00238800048828125, -0.040679931640625, 0.0204010009765625, -0.026092529296875, -0.01016998291015625, 0.00647735595703125, -0.006435394287109375, 0.01500701904296875, 0.0243988037109375, 0.03692626953125, -0.004322052001953125, -0.01434326171875, -0.0291595458984375, -0.027130126953125, -0.004009246826171875, 0.034271240234375, -0.045440673828125, 0.019134521484375, -0.00562286376953125, 0.0257720947265625, -0.0111083984375, 0.049530029296875, 0.0091400146484375, -0.0657958984375, 0.038330078125, 0.049896240234375, 0.035369873046875, -0.0860595703125, -0.06011962890625, 0.0029926300048828125, -0.0121917724609375, 0.033111572265625, 0.03759765625, 0.024505615234375, -0.02227783203125, -0.01084136962890625, 0.023773193359375, 0.002132415771484375, 0.0117950439453125, -0.0113677978515625, -0.0162506103515625, -0.0304107666015625, 0.0070648193359375, -0.014862060546875, 0.001434326171875, 0.0159454345703125, 0.02777099609375, 0.00792694091796875, -0.0175018310546875, -0.052001953125, 0.033172607421875, -0.019744873046875, 0.0146942138671875, -0.0016956329345703125, 0.03271484375, -0.01236724853515625, 0.06072998046875, -0.0262451171875, -0.0195465087890625, -0.03143310546875, -0.016632080078125, -0.016357421875, 0.030059814453125, -0.05206298828125, -0.05096435546875, 0.025909423828125, -0.043609619140625, -0.00954437255859375, 0.023468017578125, 0.01207733154296875, 0.0135040283203125, -0.040557861328125, -0.0176544189453125, 0.042572021484375, 0.00926971435546875, 0.037017822265625, -0.0011568069458007812, -0.005687713623046875, 0.0263824462890625, 0.0227203369140625, 0.005130767822265625, -0.017852783203125, 0.044677734375, -0.0161285400390625, -0.0640869140625, 0.04730224609375, 0.01320648193359375, 0.0679931640625, 0.0070343017578125, 0.005462646484375, 0.046630859375, 0.02117919921875, -0.01271820068359375, 0.04461669921875, 0.0093841552734375, -0.039306640625, -0.0000171661376953125, 0.01050567626953125, -0.0057525634765625, -0.047119140625, 0.033966064453125, 0.055908203125, -0.0193023681640625, 0.0108642578125, -0.086669921875, 0.053131103515625, -0.0297698974609375, 0.052642822265625, -0.027618408203125, 0.0255584716796875, 0.02496337890625, -0.0182037353515625, -0.0228271484375, 0.01123046875, 0.0082550048828125, -0.01065826416015625, -0.0122833251953125, 0.0254058837890625, 0.020111083984375, 0.01953125, 0.022705078125, -0.006244659423828125, 0.0123748779296875, 0.006893157958984375, 0.052093505859375, 0.031768798828125, -0.03753662109375, -0.0072021484375, 0.0104217529296875, 0.016693115234375, -0.037994384765625, 0.05499267578125, 0.003993988037109375, -0.0115966796875, -0.057647705078125, -0.0197296142578125, -0.04248046875, -0.03277587890625, 0.003261566162109375, 0.06646728515625, 0.033416748046875, 0.043060302734375, 0.00870513916015625, 0.0035228729248046875, 0.04681396484375, 0.017364501953125, 0.0357666015625, -0.044036865234375, 0.0252532958984375, 0.045623779296875, -0.006931304931640625, -0.006336212158203125, -0.0016393661499023438, -0.09124755859375, -0.00882720947265625, 0.034088134765625, -0.00475311279296875, 0.02294921875, -0.01107025146484375, 0.033660888671875, -0.0265960693359375, 0.046905517578125, 0.05267333984375, -0.01177215576171875, 0.06884765625, -0.007045745849609375, 0.038665771484375, 0.0130462646484375, -0.047393798828125, 0.01146697998046875, 0.0264434814453125, 0.021270751953125, -0.00472259521484375, 0.0131072998046875, -0.0011844635009765625, 0.0634765625, -0.04644775390625, 0.00046634674072265625, 0.01422882080078125, 0.01493072509765625, 0.002475738525390625, 0.049102783203125, -0.0526123046875, -0.0203399658203125, -0.004650115966796875, 0.0204010009765625, -0.03399658203125, -0.0169525146484375, 0.00946044921875, 0.0166473388671875, 0.0257720947265625, 0.06951904296875, 0.00482177734375, 0.036102294921875, -0.0011701583862304688, 0.01039886474609375, 0.00701141357421875, -0.00504302978515625, 0.0203704833984375, -0.029296875, 0.038421630859375, 0.030487060546875, -0.043060302734375, -0.0011348724365234375, -0.008880615234375, -0.005588531494140625, -0.0172119140625, 0.04949951171875, 0.0162506103515625, -0.068603515625, 0.010162353515625, 0.01032257080078125, 0.024505615234375, 0.0098114013671875, 0.020843505859375, -0.03509521484375, -0.0033721923828125, 0.00011938810348510742, -0.07403564453125, -0.06439208984375, 0.0596923828125, -0.027435302734375, -0.0107574462890625, 0.01910400390625, -0.0205535888671875, -0.0183258056640625, 0.043548583984375, -0.022430419921875, -0.031524658203125, -0.036712646484375, -0.043182373046875, -0.0755615234375, -0.07244873046875, 0.0174560546875, -0.0049896240234375, 0.0269317626953125, -0.007274627685546875, 0.039154052734375, 0.006740570068359375, -0.01360321044921875, 0.01084136962890625, 0.00875091552734375, -0.0078582763671875, -0.01314544677734375, 0.059234619140625, -0.066162109375, -0.002925872802734375, 0.00969696044921875, -0.0135955810546875, -0.0005402565002441406, -0.0090484619140625, -0.0290374755859375, -0.00494384765625, -0.034332275390625, 0.01013946533203125, 0.02557373046875, 0.0177459716796875, 0.000659942626953125, 0.03448486328125, -0.039093017578125, -0.01654052734375, -0.0269317626953125, -0.047698974609375, 0.0665283203125, 0.025482177734375, 0.0005125999450683594, 0.003971099853515625, 0.02044677734375, 0.0080718994140625, 0.0178985595703125, -0.02349853515625, -0.0238800048828125, 0.052093505859375, 0.000051081180572509766, 0.039794921875, 0.00803375244140625, 0.031402587890625, -0.0185699462890625, -0.04266357421875, -0.0117645263671875, 0.0006089210510253906, -0.0203399658203125, 0.013763427734375, -0.034820556640625, 0.01104736328125, 0.049835205078125, 0.0160675048828125, 0.03173828125, -0.0253448486328125, -0.030364990234375, -0.036895751953125, 0.04229736328125, -0.0186309814453125, -0.018280029296875, 0.01361083984375, -0.0002129077911376953, -0.024688720703125, 0.023406982421875, -0.036773681640625, -0.01340484619140625, -0.02197265625, 0.01441192626953125, 0.011932373046875, -0.01953125, -0.03558349609375, 0.050048828125, -0.04302978515625, 0.0045318603515625, 0.040985107421875, -0.03594970703125, 0.00981903076171875, 0.007030487060546875, 0.0260009765625, -0.033416748046875, -0.00978851318359375, -0.02825927734375, -0.0065460205078125, -0.01025390625, -0.0231475830078125, 0.058319091796875, 0.05511474609375, -0.04949951171875, -0.00818634033203125, 0.0162353515625, -0.01000213623046875, 0.018890380859375, -0.0352783203125, 0.0216217041015625, -0.01027679443359375, 0.005115509033203125, -0.0174560546875, -0.004421234130859375, -0.0085906982421875, 0.0012922286987304688, -0.01406097412109375, 0.036224365234375, -0.0231170654296875, -0.01242828369140625, 0.014801025390625, -0.0216217041015625, -0.0242462158203125, -0.0173797607421875, -0.036102294921875, 0.01068115234375, -0.0087432861328125, -0.0115509033203125, -0.023681640625, -0.04296875, 0.024017333984375, -0.001567840576171875, -0.02130126953125, 0.006256103515625, 0.064453125, 0.02447509765625, -0.00069427490234375, -0.021759033203125, 0.018463134765625, 0.0294342041015625, -0.0287322998046875, 0.031402587890625, 0.0286712646484375, -0.0220947265625, 0.0265960693359375, -0.01497650146484375, 0.05352783203125, -0.00824737548828125, 0.022857666015625, -0.0192108154296875, -0.039337158203125, 0.06402587890625, 0.01953125, -0.058929443359375, 0.0216064453125, -0.00792694091796875, -0.0128631591796875, 0.0010585784912109375, 0.048126220703125, 0.0167236328125, -0.0169830322265625, -0.0635986328125, -0.036407470703125, -0.00852203369140625, -0.01483917236328125, 0.04864501953125, 0.0122222900390625, 0.001880645751953125, 0.0204010009765625, 0.04559326171875, 0.012908935546875, 0.00183868408203125, 0.01708984375, -0.032684326171875, 0.0267486572265625, 0.01409912109375, -0.0159149169921875, -0.01348876953125, -0.00882720947265625, 0.0277557373046875, 0.00494384765625, -0.039031982421875, -0.01080322265625, 0.017547607421875, 0.018341064453125, 0.02288818359375, 0.004985809326171875, 0.0340576171875, 0.004741668701171875, -0.02490234375, 0.01806640625, 0.0029888153076171875, -0.041473388671875, -0.028228759765625, -0.00943756103515625, -0.00007861852645874023, -0.01209259033203125, -0.021392822265625, 0.0239715576171875, 0.006809234619140625, -0.01258087158203125, -0.006610870361328125, 0.0303192138671875, -0.0027179718017578125, 0.044036865234375, 0.021392822265625, -0.04730224609375, 0.0261077880859375, 0.00943756103515625, -0.0070343017578125, -0.033843994140625, -0.02325439453125, 0.037933349609375, 0.0537109375, -0.01049041748046875, -0.0098114013671875, -0.00849151611328125, -0.02496337890625, -0.01641845703125, -0.0184478759765625, -0.036712646484375, -0.0126190185546875, -0.004375457763671875, -0.00772857666015625, 0.0023097991943359375, 0.01239776611328125, -0.00617218017578125, 0.02581787109375, -0.006328582763671875, 0.06072998046875, 0.000396728515625, 0.023345947265625, 0.002162933349609375, -0.0201263427734375, -0.0047454833984375, 0.01457977294921875, 0.0160675048828125, -0.05364990234375, -0.052337646484375, -0.0026645660400390625, -0.0149993896484375, 0.03961181640625, -0.055816650390625, 0.005191802978515625, -0.0016193389892578125, 0.0223388671875, 0.005565643310546875, 0.03717041015625, 0.021026611328125, 0.0247802734375, -0.0235443115234375, 0.006450653076171875, -0.06182861328125, -0.02960205078125, -0.054718017578125, -0.07000732421875, -0.04931640625, 0.00797271728515625, -0.0143890380859375, 0.00632476806640625, -0.0220184326171875, 0.0011415481567382812, 0.0053863525390625, 0.056732177734375, 0.01303863525390625, 0.07232666015625, -0.0272369384765625, 0.08453369140625, -0.02569580078125, 0.07244873046875, -0.00372314453125, 0.041259765625, 0.0196990966796875, -0.0175628662109375, -0.002414703369140625, -0.0209197998046875, -0.00562286376953125, -0.0007047653198242188, 0.00083160400390625, -0.006954193115234375, 0.0316162109375, 0.0079498291015625, 0.043548583984375, -0.0045318603515625, -0.00916290283203125, -0.0033664703369140625, -0.0211181640625, -0.00910186767578125, 0.0294647216796875, 0.0274810791015625, -0.0352783203125, -0.020782470703125, 0.003978729248046875, -0.047607421875, 0.05712890625, -0.003326416015625, 0.0072479248046875, 0.03204345703125, -0.032745361328125, 0.04248046875, 0.059417724609375, 0.0251922607421875, 0.026214599609375, -0.0092620849609375, 0.0189666748046875, 0.00838470458984375, 0.02178955078125, 0.0279541015625, -0.019256591796875, 0.04376220703125, -0.0095367431640625, -0.030609130859375, 0.006435394287109375, -0.0357666015625, 0.036712646484375, 0.060272216796875, 0.065673828125, -0.08148193359375, 0.0220947265625, 0.02520751953125, -0.017578125, 0.01071929931640625, -0.01258087158203125, 0.001972198486328125, -0.047943115234375, 0.0491943359375, 0.011993408203125, -0.0053253173828125, 0.005100250244140625, -0.0222320556640625, -0.03515625, 0.0162506103515625, -0.03277587890625, 0.012969970703125, 0.0304718017578125, -0.0027866363525390625, -0.0211639404296875, 0.0208740234375, -0.004364013671875, 0.0467529296875, 0.0035858154296875, -0.00713348388671875, -0.009307861328125, 0.040557861328125, 0.015167236328125, -0.0408935546875, -0.06219482421875, 0.020111083984375, 0.026947021484375, 0.056304931640625, -0.0256195068359375, -0.0033168792724609375, 0.049224853515625, 0.017669677734375, -0.01114654541015625, -0.0173187255859375, 0.0218658447265625, 0.0261383056640625, -0.024993896484375, 0.02325439453125, -0.005870819091796875, -0.028045654296875, -0.01343536376953125, -0.0016813278198242188, 0.041900634765625, -0.012786865234375, -0.027496337890625, 0.03924560546875, 0.0240020751953125, -0.0254058837890625, -0.020355224609375, 0.0175018310546875, -0.040924072265625, 0.00022482872009277344, -0.0006403923034667969, -0.0164794921875, -0.0177764892578125, -0.0343017578125, -0.0633544921875, 0.051177978515625, 0.0231170654296875, 0.023284912109375, 0.032989501953125, -0.006504058837890625, -0.0545654296875, -0.0413818359375, -0.052734375, 0.062347412109375, -0.01451873779296875, 0.04449462890625, -0.07379150390625, 0.004093170166015625, 0.00920867919921875, 0.0005888938903808594, 0.023712158203125, 0.005889892578125, -0.0234832763671875, 0.0134735107421875, 0.052032470703125, -0.028594970703125, -0.0160675048828125, 0.052886962890625, -0.024658203125, 0.0240936279296875, 0.0130615234375, -0.07550048828125, 0.017974853515625, -0.05230712890625, -0.0244293212890625, -0.0121307373046875, 0.00690460205078125, -0.00006878376007080078, 0.01708984375, 0.021942138671875, -0.003253936767578125, 0.0032749176025390625, -0.0010833740234375, -0.00754547119140625, 0.0236663818359375, 0.0211639404296875, -0.01361846923828125, -0.02398681640625, -0.01031494140625, -0.0189971923828125, 0.0202178955078125, -0.032318115234375, 0.014617919921875, 0.01593017578125, 0.0089111328125, 0.005397796630859375, -0.008026123046875, 0.00037384033203125, 0.0021686553955078125, -0.006084442138671875, 0.02093505859375, -0.01343536376953125, 0.001068115234375, -0.0849609375, -0.01568603515625, 0.07806396484375, 0.05633544921875, -0.0233154296875, -0.03314208984375, -0.0012378692626953125, -0.0005736351013183594, 0.01219940185546875, -0.01239013671875, 0.004482269287109375, -0.0115966796875, 0.0089111328125, 0.0038967132568359375, -0.01558685302734375, 0.008544921875, -0.007205963134765625, 0.017852783203125, 0.0285797119140625, 0.013702392578125, -0.004398345947265625, -0.0810546875, 0.05780029296875, 0.031768798828125, 0.08782958984375, -0.004581451416015625, 0.09033203125, -0.022857666015625, -0.04931640625, -0.0254974365234375, 0.0191650390625, -0.0216064453125, 0.024688720703125, 0.0082244873046875, 0.0169219970703125, 0.01262664794921875, 0.0108795166015625, 0.015594482421875, 0.04107666015625, 0.04315185546875, 0.0028858184814453125, -0.02972412109375, 0.01326751708984375, 0.032318115234375, -0.035736083984375, 0.0207061767578125, -0.03173828125, 0.044036865234375, -0.00563812255859375, 0.0053558349609375, -0.0078887939453125, 0.009552001953125, 0.0421142578125, -0.05975341796875, 0.053619384765625, -0.0170135498046875, -0.01251983642578125, 0.044952392578125, -0.01910400390625, 0.049163818359375, -0.0231170654296875, -0.0280914306640625, 0.01052093505859375, -0.027069091796875, -0.08551025390625, 0.039886474609375, 0.049835205078125, -0.022613525390625, 0.01277923583984375, 0.007785797119140625, -0.01328277587890625, 0.020782470703125, -0.0025177001953125, 0.0174713134765625, 0.00428009033203125, 0.01001739501953125, -0.00970458984375, -0.051055908203125, -0.0272216796875, -0.038726806640625, 0.03607177734375, 0.03271484375, 0.06982421875, -0.021392822265625, 0.0270843505859375, 0.028778076171875, -0.025482177734375, 0.035308837890625, 0.00312042236328125, 0.007587432861328125, 0.0013256072998046875, 0.02288818359375, -0.0174102783203125, 0.023651123046875, 0.030670166015625, -0.0011034011840820312, -0.0263824462890625, -0.004978179931640625, -0.035186767578125, 0.010223388671875, 0.027862548828125, 0.043853759765625, -0.00638580322265625, -0.0295562744140625, -0.004383087158203125, 0.0085906982421875, 0.0291290283203125, 0.06634521484375, 0.02947998046875, 0.0311737060546875, -0.017242431640625, -0.05645751953125, 0.009033203125, -0.062225341796875, 0.007144927978515625, 0.0300140380859375, 0.030517578125, -0.0125274658203125, 0.0006079673767089844, -0.023345947265625, 0.0131072998046875, -0.0112152099609375, 0.0225982666015625, -0.003803253173828125, -0.06976318359375, 0.01032257080078125, 0.05645751953125, 0.027130126953125, -0.03570556640625, 0.01320648193359375, 0.055145263671875, -0.0296783447265625, 0.004947662353515625, 0.01922607421875, -0.0258026123046875, -0.038177490234375, 0.01172637939453125, 0.0221405029296875, -0.0338134765625, 0.0179443359375, -0.091552734375, -0.018890380859375, 0.022857666015625, -0.005985260009765625, 0.0008120536804199219, -0.0538330078125, 0.01052093505859375, 0.042236328125, 0.0185546875, 0.028900146484375, -0.040252685546875, -0.0028476715087890625, -0.0159912109375, -0.043243408203125, -0.032562255859375, 0.07366943359375, 0.01073455810546875, 0.044708251953125, 0.04833984375, -0.040313720703125, 0.0138702392578125, 0.069580078125, 0.0504150390625, 0.116455078125, 0.012603759765625, -0.015106201171875, 0.0355224609375, -0.007904052734375, 0.003116607666015625, -0.0219268798828125, -0.044158935546875, -0.00273895263671875, 0.040435791015625, 0.00988006591796875, -0.0241241455078125, -0.008941650390625, -0.05413818359375, -0.120361328125, 0.0313720703125, 0.0016613006591796875, -0.06591796875, -0.0589599609375, -0.0244903564453125, 0.0084991455078125, 0.00846099853515625, -0.0181884765625, -0.050689697265625, -0.061431884765625, 0.041534423828125, 0.03155517578125, -0.036712646484375, 0.06719970703125, 0.01165008544921875, -0.04486083984375, -0.0135040283203125, -0.04705810546875, -0.02239990234375, -0.013397216796875, 0.001190185546875, 0.01065826416015625, 0.0139312744140625, -0.02777099609375, -0.007244110107421875, 0.01049041748046875, 0.00382232666015625, 0.0035343170166015625, -0.05615234375, -0.035400390625, -0.01317596435546875, 0.07647705078125, 0.00946807861328125, 0.0158538818359375, -0.036224365234375, 0.02398681640625, -0.0160675048828125, -0.03765869140625, -0.01413726806640625, 0.0151214599609375, -0.06536865234375, -0.0233612060546875, -0.001560211181640625, -0.0184173583984375, 0.02020263671875, -0.0272674560546875, -0.04052734375, 0.007770538330078125, -0.01042938232421875, -0.0051727294921875, -0.01458740234375, -0.050079345703125, 0.1004638671875, -0.04156494140625, 0.0155029296875, 0.004146575927734375, 0.04351806640625, 0.043701171875, 0.00021827220916748047, 0.0010766983032226562, 0.01019287109375, -0.03448486328125, -0.0019245147705078125, 0.0029850006103515625, -0.013458251953125, -0.00518035888671875, -0.01509857177734375, -0.0007390975952148438, 0.02728271484375, -0.004489898681640625, 0.0297393798828125, -0.0019464492797851562, 0.044036865234375, -0.002887725830078125, 0.040802001953125, -0.038116455078125, 0.01116180419921875, -0.026611328125, -0.0054168701171875, -0.007373809814453125, 0.034332275390625, 0.04351806640625, 0.0194549560546875, 0.0180511474609375, -0.0023212432861328125, -0.0026302337646484375, -0.04315185546875, 0.035430908203125, -0.046051025390625, -0.00357818603515625, 0.027069091796875 ]
03ba4dab27ce2e8aa77a9048dcc4355419c7bb59
Wordpress Stackexchange Q: $wpdb->prepare() warning in WordPress 3.5 I am receiving this warning when I try to run a database query: Warning: Missing argument 2 for wpdb::prepare() The offending query is: $result = $wpdb->get_var( $wpdb->prepare( "SELECT DISTINCT meta_value FROM $metatable WHERE meta_key LIKE '%matchme%' AND meta_value IS NOT NULL AND meta_value <> ''" ) ); Is there a way to remove the error by modifying the above query? A: Remove the call to $wpdb->prepare(): $result = $wpdb->get_var( "SELECT DISTINCT meta_value FROM $metatable WHERE meta_key LIKE '%matchme%' AND meta_value IS NOT NULL AND meta_value <> ''" ); In this case, the $wpdb->prepare() function is not doing anything. There are no variables holding unknown values, therefore there is no need to sanitize them. If you did have variables that need sanitizing, you can add a second argument to the function: $result = $wpdb->get_var( $wpdb->prepare( "SELECT DISTINCT meta_value FROM %s WHERE meta_key LIKE '%matchme%' AND meta_value IS NOT NULL AND meta_value <> ''", $metatable ) ); Relevant links: * *PHP Warning: Missing argument 2 for wpdb::prepare() *Ticket #22873: Consider moving to a notice for $wpdb->prepare in 3.5.1
Q: $wpdb->prepare() warning in WordPress 3.5 I am receiving this warning when I try to run a database query: Warning: Missing argument 2 for wpdb::prepare() The offending query is: $result = $wpdb->get_var( $wpdb->prepare( "SELECT DISTINCT meta_value FROM $metatable WHERE meta_key LIKE '%matchme%' AND meta_value IS NOT NULL AND meta_value <> ''" ) ); Is there a way to remove the error by modifying the above query? A: Remove the call to $wpdb->prepare(): $result = $wpdb->get_var( "SELECT DISTINCT meta_value FROM $metatable WHERE meta_key LIKE '%matchme%' AND meta_value IS NOT NULL AND meta_value <> ''" ); In this case, the $wpdb->prepare() function is not doing anything. There are no variables holding unknown values, therefore there is no need to sanitize them. If you did have variables that need sanitizing, you can add a second argument to the function: $result = $wpdb->get_var( $wpdb->prepare( "SELECT DISTINCT meta_value FROM %s WHERE meta_key LIKE '%matchme%' AND meta_value IS NOT NULL AND meta_value <> ''", $metatable ) ); Relevant links: * *PHP Warning: Missing argument 2 for wpdb::prepare() *Ticket #22873: Consider moving to a notice for $wpdb->prepare in 3.5.1
wordpress
{ "language": "en", "length": 182, "provenance": "stackexchange_00019.jsonl.gz:426793", "question_score": "5", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76072" }
[ 0.033843994140625, 0.00818634033203125, 0.0032863616943359375, -0.061492919921875, 0.01551055908203125, -0.000013887882232666016, 0.00908660888671875, -0.01959228515625, 0.022918701171875, 0.03515625, -0.02703857421875, -0.0135498046875, -0.0092926025390625, -0.00759124755859375, -0.0235748291015625, -0.0261383056640625, 0.027191162109375, 0.038360595703125, 0.049224853515625, 0.0108795166015625, 0.024200439453125, 0.021514892578125, -0.00460052490234375, 0.022247314453125, 0.050628662109375, -0.09930419921875, 0.0633544921875, -0.01629638671875, 0.0633544921875, 0.004955291748046875, 0.036712646484375, -0.0234375, 0.0279388427734375, 0.007190704345703125, -0.024871826171875, 0.053955078125, 0.04541015625, -0.00748443603515625, 0.001979827880859375, 0.0247650146484375, 0.006015777587890625, -0.0017480850219726562, -0.050048828125, -0.037872314453125, -0.0276031494140625, -0.030609130859375, 0.01160430908203125, -0.008819580078125, 0.007053375244140625, 0.0034027099609375, -0.0206298828125, 0.0240631103515625, -0.0186309814453125, 0.00492095947265625, -0.004222869873046875, -0.019805908203125, -0.02447509765625, -0.0127105712890625, 0.0028743743896484375, 0.062408447265625, 0.0269775390625, 0.0335693359375, -0.0182952880859375, -0.022491455078125, 0.0037078857421875, -0.0012226104736328125, 0.01241302490234375, 0.0026454925537109375, 0.0221710205078125, 0.01540374755859375, 0.01247406005859375, 0.006885528564453125, -0.006725311279296875, 0.0011234283447265625, -0.01432037353515625, -0.0092010498046875, -0.0035419464111328125, -0.0308685302734375, 0.020538330078125, 0.0286407470703125, 0.017059326171875, 0.0017547607421875, -0.03631591796875, -0.00817108154296875, 0.0303497314453125, 0.00909423828125, 0.00380706787109375, -0.021636962890625, -0.0307159423828125, -0.0455322265625, -0.02044677734375, -0.062469482421875, -0.04071044921875, -0.0078125, -0.0205078125, -0.0419921875, -0.02313232421875, 0.058013916015625, -0.0298919677734375, 0.035369873046875, 0.00482177734375, -0.0234375, 0.003551483154296875, -0.058624267578125, 0.0035762786865234375, 0.041748046875, -0.0221405029296875, -0.00536346435546875, 0.0237884521484375, 0.0361328125, 0.0182342529296875, -0.04339599609375, -0.031982421875, -0.041046142578125, -0.0305328369140625, 0.02880859375, -0.016693115234375, -0.0300140380859375, 0.01971435546875, -0.037689208984375, 0.004913330078125, 0.0258941650390625, -0.025360107421875, -0.046875, 0.031585693359375, -0.003116607666015625, -0.03265380859375, 0.009521484375, -0.0560302734375, 0.044891357421875, -0.0216217041015625, -0.0063323974609375, 0.039825439453125, 0.04278564453125, -0.00792694091796875, -0.024688720703125, 0.0380859375, -0.022186279296875, -0.00850677490234375, 0.0311737060546875, -0.01398468017578125, -0.0633544921875, -0.0318603515625, -0.0034694671630859375, -0.02374267578125, 0.01593017578125, 0.01181793212890625, -0.00684356689453125, -0.00469970703125, -0.02655029296875, -0.033111572265625, -0.0012359619140625, 0.02862548828125, -0.004283905029296875, -0.046722412109375, 0.0165863037109375, -0.0136871337890625, -0.003917694091796875, -0.06597900390625, -0.003757476806640625, 0.01032257080078125, -0.016448974609375, 0.00897979736328125, -0.0394287109375, -0.0648193359375, 0.0010852813720703125, -0.03863525390625, -0.0257415771484375, 0.0194091796875, 0.0298919677734375, 0.01001739501953125, 0.0029125213623046875, 0.04925537109375, 0.0285491943359375, -0.004657745361328125, -0.0021820068359375, 0.007598876953125, 0.0012054443359375, 0.0178985595703125, -0.000263214111328125, -0.016448974609375, -0.02764892578125, 0.045623779296875, -0.0103607177734375, -0.08477783203125, 0.057708740234375, 0.006664276123046875, 0.0753173828125, 0.01410675048828125, 0.0013303756713867188, 0.07574462890625, 0.0230712890625, -0.031585693359375, -0.018157958984375, 0.00323486328125, -0.0164947509765625, 0.01861572265625, -0.01079559326171875, 0.006473541259765625, 0.0255584716796875, -0.0049591064453125, 0.01629638671875, -0.018157958984375, -0.01538848876953125, -0.07177734375, -0.01381683349609375, -0.0241851806640625, 0.03924560546875, -0.0596923828125, 0.01080322265625, 0.0419921875, -0.0009179115295410156, -0.048187255859375, 0.06689453125, 0.0240478515625, -0.0267791748046875, -0.00974273681640625, 0.03009033203125, -0.0088653564453125, 0.0085296630859375, -0.0173492431640625, -0.04296875, -0.005084991455078125, 0.0083465576171875, 0.017822265625, -0.0031375885009765625, -0.0004570484161376953, 0.0043182373046875, 0.057525634765625, 0.0171661376953125, 0.00701904296875, -0.03289794921875, 0.0235595703125, 0.024688720703125, -0.024566650390625, 0.01444244384765625, 0.01215362548828125, -0.029144287109375, 0.001956939697265625, 0.024017333984375, 0.037322998046875, 0.038909912109375, -0.0008993148803710938, -0.005855560302734375, 0.06634521484375, -0.037933349609375, 0.0008482933044433594, -0.015045166015625, 0.0251922607421875, 0.048248291015625, -0.0184783935546875, -0.0308074951171875, 0.00824737548828125, -0.0391845703125, -0.0289306640625, 0.040802001953125, -0.006572723388671875, 0.01026153564453125, 0.0177764892578125, 0.00145721435546875, -0.00791168212890625, -0.01116180419921875, 0.0116424560546875, -0.00022900104522705078, 0.017974853515625, 0.009918212890625, 0.0382080078125, 0.0391845703125, 0.0195159912109375, -0.019775390625, -0.016998291015625, -0.0294342041015625, -0.0165557861328125, 0.0162353515625, -0.007495880126953125, 0.04290771484375, -0.05938720703125, 0.021240234375, 0.0163116455078125, 0.0169677734375, 0.01404571533203125, 0.09857177734375, 0.0011920928955078125, -0.022918701171875, -0.01947021484375, 0.0091094970703125, -0.0218353271484375, -0.0170135498046875, 0.01351165771484375, -0.0165557861328125, 0.0384521484375, -0.00276947021484375, -0.024322509765625, 0.037841796875, -0.0465087890625, -0.048980712890625, -0.0013523101806640625, -0.003284454345703125, -0.003734588623046875, -0.025360107421875, 0.054168701171875, 0.046417236328125, -0.0102386474609375, -0.0214996337890625, -0.0077362060546875, 0.0220947265625, -0.012237548828125, 0.03594970703125, 0.01526641845703125, -0.0121917724609375, -0.07275390625, -0.041015625, 0.04156494140625, 0.0604248046875, 0.015960693359375, -0.0247650146484375, 0.0110015869140625, 0.043121337890625, -0.040008544921875, -0.08770751953125, -0.01971435546875, 0.01551055908203125, -0.006595611572265625, -0.0220489501953125, 0.004947662353515625, 0.003932952880859375, -0.052215576171875, -0.017913818359375, 0.032989501953125, -0.01136016845703125, -0.09869384765625, -0.059844970703125, -0.08416748046875, -0.035675048828125, -0.0221099853515625, 0.0094451904296875, -0.0166778564453125, 0.06988525390625, -0.00023627281188964844, -0.010162353515625, 0.00771331787109375, -0.026397705078125, 0.007137298583984375, -0.008819580078125, -0.01384735107421875, -0.0195465087890625, -0.0006012916564941406, -0.0186004638671875, 0.06353759765625, 0.01538848876953125, -0.005832672119140625, 0.00891876220703125, 0.042205810546875, 0.05291748046875, 0.058746337890625, 0.02374267578125, -0.04632568359375, 0.06756591796875, 0.035980224609375, -0.007106781005859375, 0.007381439208984375, -0.003131866455078125, -0.0231170654296875, 0.0168609619140625, 0.0086669921875, -0.012054443359375, 0.0286865234375, -0.01523590087890625, 0.034515380859375, 0.0528564453125, -0.009918212890625, 0.0098419189453125, 0.034149169921875, -0.00634002685546875, -0.00022840499877929688, -0.0175933837890625, -0.0007987022399902344, -0.0303192138671875, 0.036102294921875, -0.0006999969482421875, -0.0008215904235839844, 0.024200439453125, -0.055694580078125, 0.004444122314453125, -0.039154052734375, 0.0809326171875, 0.045562744140625, 0.0158538818359375, -0.044921875, -0.05596923828125, -0.033966064453125, 0.08294677734375, -0.0119171142578125, -0.031158447265625, -0.01361846923828125, 0.007579803466796875, -0.0272064208984375, -0.0283660888671875, 0.0015668869018554688, 0.000036597251892089844, -0.07733154296875, -0.0006976127624511719, -0.0074005126953125, -0.0247650146484375, 0.0018262863159179688, -0.0023784637451171875, -0.0286407470703125, -0.054107666015625, 0.038787841796875, 0.00424957275390625, -0.026580810546875, 0.0433349609375, -0.0285797119140625, 0.0131378173828125, -0.0209197998046875, 0.002117156982421875, -0.037811279296875, -0.0284881591796875, -0.0118408203125, 0.0540771484375, -0.00850677490234375, 0.0172576904296875, -0.0254364013671875, 0.03656005859375, 0.0270233154296875, -0.026458740234375, 0.03729248046875, 0.00009739398956298828, -0.01226043701171875, 0.00811004638671875, 0.0322265625, -0.04034423828125, -0.01247406005859375, -0.0279388427734375, -0.0177459716796875, -0.02935791015625, -0.0270843505859375, -0.0299224853515625, -0.006988525390625, -0.016815185546875, 0.0143890380859375, -0.00431060791015625, -0.0203857421875, 0.043853759765625, -0.038970947265625, -0.0039215087890625, -0.0233612060546875, -0.01332855224609375, 0.027679443359375, 0.01806640625, -0.00213623046875, -0.0006885528564453125, 0.051177978515625, 0.01325225830078125, -0.03607177734375, -0.028106689453125, -0.01727294921875, 0.0187530517578125, -0.0160369873046875, 0.025604248046875, -0.0142364501953125, -0.04217529296875, 0.0762939453125, -0.004871368408203125, 0.01568603515625, -0.0128936767578125, 0.027069091796875, -0.0014085769653320312, -0.030242919921875, 0.039886474609375, 0.0071258544921875, -0.018798828125, 0.06768798828125, 0.0008802413940429688, 0.0108489990234375, 0.022674560546875, -0.0032939910888671875, -0.01129913330078125, -0.034423828125, -0.00829315185546875, -0.05316162109375, 0.021331787109375, -0.0303192138671875, 0.02349853515625, -0.046142578125, 0.039398193359375, 0.003200531005859375, 0.0240325927734375, -0.0005278587341308594, -0.005039215087890625, 0.027069091796875, -0.01059722900390625, 0.049072265625, -0.0347900390625, -0.0160675048828125, -0.0282440185546875, 0.003582000732421875, 0.046844482421875, 0.00606536865234375, -0.0197601318359375, -0.0158538818359375, -0.01119232177734375, 0.00939178466796875, -0.017364501953125, 0.0184478759765625, 0.033050537109375, 0.0284881591796875, -0.022216796875, -0.0061187744140625, -0.01399993896484375, 0.0110626220703125, -0.05047607421875, -0.00926971435546875, 0.0040130615234375, -0.01142120361328125, -0.025909423828125, 0.06634521484375, -0.01377105712890625, 0.022064208984375, -0.01004791259765625, 0.0139007568359375, -0.01324462890625, 0.0736083984375, 0.0164947509765625, -0.04388427734375, -0.0021209716796875, 0.06597900390625, -0.007293701171875, -0.033843994140625, -0.0029087066650390625, 0.01259613037109375, 0.00492095947265625, 0.0008563995361328125, -0.0061187744140625, 0.03546142578125, 0.0236358642578125, -0.0265045166015625, 0.0096282958984375, -0.0014667510986328125, -0.006351470947265625, -0.04644775390625, -0.028564453125, 0.021209716796875, 0.0352783203125, -0.0059051513671875, 0.0153961181640625, -0.0248565673828125, 0.039825439453125, -0.0281982421875, 0.0178680419921875, -0.01329803466796875, -0.0168914794921875, 0.048095703125, -0.018798828125, -0.045318603515625, -0.0282440185546875, 0.00817108154296875, -0.00463104248046875, -0.0039520263671875, 0.013092041015625, -0.0201263427734375, -0.018463134765625, -0.026458740234375, 0.03662109375, -0.06683349609375, 0.00726318359375, 0.014068603515625, 0.00726318359375, 0.031646728515625, 0.005214691162109375, -0.037567138671875, -0.036895751953125, 0.0007638931274414062, -0.025726318359375, 0.003948211669921875, -0.0236663818359375, -0.0215301513671875, 0.009765625, 0.00960540771484375, 0.0268707275390625, -0.03814697265625, 0.0273895263671875, 0.01238250732421875, 0.003551483154296875, -0.03076171875, 0.032318115234375, 0.034759521484375, -0.005828857421875, 0.00852203369140625, 0.013092041015625, 0.029449462890625, -0.0141754150390625, -0.003841400146484375, -0.04193115234375, -0.00592803955078125, 0.0126495361328125, 0.003528594970703125, -0.024078369140625, -0.01235198974609375, -0.0105438232421875, 0.036285400390625, -0.00539398193359375, 0.003269195556640625, -0.00940704345703125, 0.0099334716796875, -0.0202484130859375, -0.0018320083618164062, 0.04351806640625, -0.01812744140625, 0.046875, -0.01329803466796875, 0.012359619140625, -0.00859832763671875, -0.0305023193359375, 0.0196380615234375, 0.004169464111328125, -0.02960205078125, 0.03765869140625, 0.03363037109375, 0.028045654296875, 0.04351806640625, -0.02838134765625, 0.0195770263671875, 0.0029449462890625, -0.031036376953125, 0.0070648193359375, 0.01097869873046875, 0.05194091796875, -0.007434844970703125, 0.010894775390625, 0.047576904296875, -0.01494598388671875, 0.02679443359375, 0.018768310546875, 0.0916748046875, -0.05224609375, 0.0295562744140625, 0.0654296875, -0.01311492919921875, -0.0240478515625, 0.004863739013671875, -0.01904296875, -0.03619384765625, -0.042022705078125, -0.0129547119140625, -0.027862548828125, -0.0298004150390625, 0.0115509033203125, -0.0038471221923828125, -0.0188446044921875, -0.005405426025390625, 0.0145111083984375, -0.00286102294921875, 0.02728271484375, 0.0032482147216796875, 0.01080322265625, 0.05218505859375, -0.002758026123046875, -0.007389068603515625, -0.047027587890625, -0.0616455078125, -0.0726318359375, -0.04339599609375, -0.0858154296875, -0.0052947998046875, 0.082763671875, 0.0191802978515625, 0.044097900390625, 0.0287628173828125, -0.031402587890625, 0.0181732177734375, 0.0088958740234375, -0.0005335807800292969, -0.0291748046875, -0.0298004150390625, 0.039031982421875, -0.032501220703125, 0.0216064453125, 0.0037994384765625, -0.00977325439453125, 0.00893402099609375, 0.00772857666015625, 0.03076171875, -0.0234375, -0.0025234222412109375, 0.05084228515625, 0.01088714599609375, -0.006084442138671875, -0.02056884765625, 0.058837890625, -0.050933837890625, -0.01153564453125, 0.00963592529296875, -0.0013418197631835938, -0.02215576171875, -0.0201416015625, -0.062469482421875, 0.026824951171875, 0.02197265625, 0.01074981689453125, 0.0151824951171875, 0.002071380615234375, -0.038177490234375, -0.032318115234375, -0.033203125, 0.064453125, -0.01108551025390625, 0.0596923828125, -0.0335693359375, 0.007732391357421875, 0.037445068359375, 0.010589599609375, 0.0052337646484375, -0.006038665771484375, 0.001049041748046875, -0.0045013427734375, 0.0222320556640625, 0.0166015625, -0.00485992431640625, 0.01189422607421875, -0.0103759765625, 0.045989990234375, 0.059051513671875, -0.06280517578125, 0.036102294921875, -0.02490234375, -0.0030536651611328125, 0.0034637451171875, -0.0178680419921875, -0.017333984375, -0.05047607421875, 0.018402099609375, 0.060546875, -0.0496826171875, -0.03375244140625, -0.030487060546875, 0.017242431640625, 0.046844482421875, 0.0211639404296875, -0.0006031990051269531, -0.004058837890625, -0.0252838134765625, 0.03411865234375, -0.0025844573974609375, -0.004009246826171875, 0.0572509765625, 0.0188751220703125, 0.07586669921875, 0.00799560546875, -0.00876617431640625, 0.0010499954223632812, 0.067626953125, 0.04052734375, 0.0283966064453125, 0.01033782958984375, -0.0165252685546875, 0.037353515625, 0.044677734375, 0.043121337890625, -0.0511474609375, -0.03106689453125, -0.008697509765625, 0.00481414794921875, 0.008453369140625, 0.005062103271484375, 0.01218414306640625, 0.06317138671875, 0.050262451171875, -0.035858154296875, 0.001781463623046875, -0.00606536865234375, -0.020660400390625, -0.0182037353515625, -0.01605224609375, 0.046539306640625, 0.0203399658203125, -0.006561279296875, -0.0295257568359375, 0.048797607421875, 0.051361083984375, 0.006435394287109375, 0.0281524658203125, -0.0141448974609375, -0.0144195556640625, -0.0273590087890625, 0.018768310546875, -0.00502777099609375, 0.01264190673828125, -0.059051513671875, -0.047882080078125, 0.06500244140625, 0.03851318359375, 0.00725555419921875, 0.039337158203125, 0.0355224609375, 0.0213623046875, -0.0146636962890625, 0.004199981689453125, 0.0309906005859375, -0.037841796875, -0.017913818359375, -0.0122528076171875, 0.01387786865234375, 0.00295257568359375, 0.020660400390625, -0.01265716552734375, 0.10406494140625, -0.038116455078125, 0.0096282958984375, 0.01007080078125, 0.007434844970703125, 0.01287841796875, 0.0253753662109375, -0.0237579345703125, -0.0152130126953125, 0.01334381103515625, -0.033966064453125, -0.010894775390625, 0.0131683349609375, -0.01617431640625, -0.01287078857421875, 0.032928466796875, -0.00701141357421875, 0.0248260498046875, -0.01180267333984375, 0.0097808837890625, -0.0245819091796875, -0.0017604827880859375, 0.001163482666015625, -0.03375244140625, 0.02520751953125, -0.00345611572265625, -0.005428314208984375, -0.01311492919921875, 0.0279693603515625, 0.017913818359375, -0.034027099609375, 0.1025390625, -0.049346923828125, 0.0017175674438476562, -0.0233917236328125, 0.05084228515625, -0.040008544921875, -0.0019626617431640625, -0.0024166107177734375, 0.007343292236328125, 0.024871826171875, -0.01473236083984375, 0.04296875, 0.0119781494140625, 0.038818359375, -0.033660888671875, 0.0153350830078125, -0.02825927734375, 0.0145111083984375, -0.024871826171875, 0.050811767578125, -0.006256103515625, -0.0224761962890625, -0.0300140380859375, 0.004688262939453125, 0.057373046875, 0.089111328125, -0.026885986328125, 0.036529541015625, 0.034698486328125, -0.0018491744995117188, 0.039764404296875, -0.01314544677734375, 0.07647705078125, 0.044952392578125, -0.021881103515625, 0.01526641845703125, -0.02178955078125, -0.039031982421875, 0.0232696533203125, -0.010040283203125, 0.007701873779296875, -0.02386474609375, 0.01214599609375, 0.0026111602783203125, 0.007354736328125, 0.01324462890625, 0.002288818359375, -0.015472412109375, 0.0242767333984375, -0.01580810546875, -0.02545166015625, 0.017059326171875, -0.0172576904296875, -0.017333984375, -0.0207672119140625, 0.0039215087890625, -0.018798828125, -0.036651611328125, -0.049072265625, 0.0345458984375, 0.0155792236328125, 0.00669097900390625, -0.0689697265625, 0.073486328125, -0.0297393798828125, 0.0157623291015625, 0.0016155242919921875, -0.01126861572265625, -0.005462646484375, 0.030029296875, -0.006694793701171875, -0.041473388671875, -0.0225372314453125, 0.049713134765625, -0.007808685302734375, -0.0015850067138671875, 0.0296630859375, -0.0174407958984375, -0.045623779296875, -0.02593994140625, -0.004589080810546875, -0.00009113550186157227, -0.002655029296875, -0.0168609619140625, 0.01338958740234375, 0.0110931396484375, -0.04119873046875, -0.083740234375, 0.007785797119140625, -0.05364990234375, 0.0147857666015625, 0.0226593017578125, 0.01245880126953125, 0.0247344970703125, -0.037750244140625, -0.144775390625, 0.0928955078125, -0.032501220703125, -0.036041259765625, 0.01416015625, -0.0186614990234375, 0.005462646484375, 0.0157623291015625, -0.007122039794921875, 0.00835418701171875, -0.03472900390625, -0.007038116455078125, 0.0207672119140625, -0.034027099609375, 0.03167724609375, -0.004352569580078125, -0.0826416015625, 0.007167816162109375, 0.0169677734375, -0.014251708984375, -0.039642333984375, 0.03887939453125, -0.004001617431640625, 0.041473388671875, 0.00322723388671875, 0.0110015869140625, 0.0102081298828125, -0.034576416015625, 0.0186767578125, 0.04345703125, -0.040191650390625, 0.0263671875, 0.04095458984375, 0.0780029296875, 0.02276611328125, -0.05145263671875, 0.0013971328735351562, -0.01123809814453125, 0.029998779296875, -0.02447509765625, 0.0017442703247070312, -0.064453125, -0.035736083984375, 0.0107269287109375, -0.017059326171875, 0.01617431640625, 0.0155029296875, -0.032073974609375, 0.01209259033203125, 0.0253753662109375, 0.00039005279541015625, -0.05816650390625, -0.049591064453125, 0.035369873046875, -0.039215087890625, -0.04290771484375, 0.0308990478515625, 0.0282440185546875, -0.0284881591796875, 0.024200439453125, -0.005889892578125, -0.01861572265625, 0.00980377197265625, 0.02545166015625, 0.0126190185546875, -0.00925445556640625, -0.0169677734375, -0.0180511474609375, -0.050750732421875, -0.00022721290588378906, 0.016387939453125, 0.0125579833984375, 0.0180511474609375, -0.0592041015625, 0.01540374755859375, -0.0146026611328125, -0.048004150390625, -0.01715087890625, -0.0102996826171875, 0.009613037109375, 0.0009012222290039062, 0.006603240966796875, 0.091064453125, -0.030487060546875, -0.005535125732421875, -0.00751495361328125, 0.003818511962890625, -0.079345703125, 0.002635955810546875, 0.038360595703125, 0.03228759765625, 0.0338134765625 ]
23efced058404b1b572141a6188b148beef8c4d8
Wordpress Stackexchange Q: check first time login only i want to display welcome message or redirect the user to my custom template when the user login for the first time only. After the user can visit the regular page of the site. A: Whenever a new user is created, this function will add a custom field with value 1. function function_new_user($user_id) { add_user_meta( $user_id, '_new_user', '1' ); } add_action( 'user_register', 'function_new_user'); The next function will check if it's the first login and redirect the user. function function_check_login_redirect($user_login, $user) { $logincontrol = get_user_meta($user->ID, '_new_user', 'TRUE'); if ( $logincontrol ) { //set the user to old update_user_meta( $user->ID, '_new_user', '0' ); //Do the redirects or whatever you need to do for the first login wp_redirect( 'http://www.example.com', 302 ); exit; } } add_action('wp_login', 'function_check_login_redirect', 10, 2); Tip: The function_check_login_redirect knows the user. You can even offer the user a custom info or call to action.
Q: check first time login only i want to display welcome message or redirect the user to my custom template when the user login for the first time only. After the user can visit the regular page of the site. A: Whenever a new user is created, this function will add a custom field with value 1. function function_new_user($user_id) { add_user_meta( $user_id, '_new_user', '1' ); } add_action( 'user_register', 'function_new_user'); The next function will check if it's the first login and redirect the user. function function_check_login_redirect($user_login, $user) { $logincontrol = get_user_meta($user->ID, '_new_user', 'TRUE'); if ( $logincontrol ) { //set the user to old update_user_meta( $user->ID, '_new_user', '0' ); //Do the redirects or whatever you need to do for the first login wp_redirect( 'http://www.example.com', 302 ); exit; } } add_action('wp_login', 'function_check_login_redirect', 10, 2); Tip: The function_check_login_redirect knows the user. You can even offer the user a custom info or call to action.
wordpress
{ "language": "en", "length": 150, "provenance": "stackexchange_00019.jsonl.gz:426800", "question_score": "6", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76090" }
[ 0.0618896484375, 0.0017242431640625, 0.0204010009765625, -0.046234130859375, 0.010711669921875, -0.0159759521484375, 0.0081329345703125, -0.034210205078125, -0.0303192138671875, 0.044891357421875, -0.0008697509765625, 0.0193939208984375, 0.00046634674072265625, -0.022247314453125, -0.0037441253662109375, -0.02099609375, 0.0233917236328125, -0.0204315185546875, 0.0071868896484375, -0.0158233642578125, 0.03131103515625, 0.01031494140625, 0.0006561279296875, 0.03753662109375, 0.00980377197265625, -0.047454833984375, 0.08074951171875, -0.03033447265625, 0.031829833984375, -0.00678253173828125, 0.01103973388671875, -0.017120361328125, -0.01406097412109375, 0.06402587890625, -0.0265350341796875, -0.038116455078125, 0.011627197265625, 0.0361328125, 0.02374267578125, 0.0154266357421875, 0.043792724609375, -0.02362060546875, -0.043304443359375, 0.0147857666015625, -0.02862548828125, -0.049285888671875, 0.05841064453125, -0.00780487060546875, 0.032012939453125, 0.0090789794921875, 0.00653076171875, -0.003505706787109375, 0.021270751953125, -0.0186309814453125, -0.0213165283203125, 0.00994873046875, -0.0211944580078125, -0.00923919677734375, 0.027679443359375, 0.0273284912109375, -0.0038547515869140625, -0.02490234375, 0.01123046875, -0.03582763671875, -0.035003662109375, -0.00041484832763671875, -0.049896240234375, 0.01837158203125, -0.0380859375, -0.06268310546875, 0.001544952392578125, -0.016876220703125, -0.024169921875, 0.01044464111328125, -0.049774169921875, 0.0185089111328125, 0.0318603515625, 0.01235198974609375, -0.003002166748046875, 0.02203369140625, -0.0372314453125, -0.03125, -0.00720977783203125, -0.032501220703125, -0.0010213851928710938, -0.0013189315795898438, -0.0273284912109375, 0.01134490966796875, -0.01392364501953125, -0.0272979736328125, -0.0226287841796875, 0.022125244140625, 0.00447845458984375, -0.04217529296875, -0.049346923828125, -0.033447265625, 0.0506591796875, 0.085205078125, -0.03680419921875, -0.022216796875, -0.039276123046875, -0.01004791259765625, -0.030914306640625, -0.0253753662109375, 0.006717681884765625, 0.06268310546875, 0.0278167724609375, -0.003108978271484375, -0.0027027130126953125, -0.0017375946044921875, 0.0141448974609375, 0.0216064453125, -0.030364990234375, -0.0263214111328125, -0.01502227783203125, 0.0390625, -0.032684326171875, -0.0050201416015625, -0.00278472900390625, 0.0203094482421875, -0.00827789306640625, 0.0161590576171875, 0.06793212890625, -0.07733154296875, 0.0026721954345703125, -0.032470703125, -0.03314208984375, -0.056365966796875, -0.0225372314453125, 0.01053619384765625, -0.0085601806640625, 0.033477783203125, 0.0222930908203125, 0.0006318092346191406, -0.0184783935546875, -0.0052032470703125, 0.05316162109375, 0.007503509521484375, -0.0082855224609375, 0.0150299072265625, 0.013397216796875, -0.046234130859375, -0.057586669921875, -0.00440216064453125, 0.0054473876953125, 0.042449951171875, 0.032440185546875, -0.01276397705078125, -0.04150390625, -0.081298828125, 0.0183868408203125, -0.0297698974609375, -0.0271148681640625, 0.01898193359375, 0.01129150390625, 0.043121337890625, -0.0491943359375, 0.03179931640625, 0.00604248046875, 0.061614990234375, 0.042999267578125, -0.0034160614013671875, -0.027496337890625, -0.03662109375, -0.07305908203125, -0.007564544677734375, -0.0260009765625, -0.01071929931640625, 0.03521728515625, 0.043609619140625, 0.0421142578125, 0.0212249755859375, 0.0087432861328125, 0.0308685302734375, 0.00487518310546875, -0.0133056640625, -0.006763458251953125, 0.0701904296875, -0.0149688720703125, 0.0308074951171875, 0.0294189453125, -0.0269927978515625, 0.034912109375, 0.0033130645751953125, -0.0447998046875, 0.060455322265625, 0.003902435302734375, 0.054779052734375, 0.00952911376953125, 0.0047454833984375, 0.01180267333984375, 0.03472900390625, -0.04046630859375, 0.0217437744140625, -0.0242767333984375, -0.027679443359375, 0.01413726806640625, -0.0022983551025390625, -0.02606201171875, 0.041015625, 0.0909423828125, -0.01323699951171875, 0.03631591796875, -0.048614501953125, -0.057647705078125, 0.01506805419921875, -0.0256805419921875, 0.0172119140625, 0.014495849609375, 0.039459228515625, -0.0040130615234375, 0.0163421630859375, -0.006801605224609375, -0.033477783203125, -0.01122283935546875, -0.00809478759765625, -0.007717132568359375, 0.053253173828125, -0.007537841796875, 0.0277862548828125, 0.00634002685546875, -0.057159423828125, 0.00592803955078125, -0.00015747547149658203, 0.0257110595703125, -0.0197601318359375, -0.01514434814453125, -0.014801025390625, -0.0035495758056640625, -0.001430511474609375, -0.017547607421875, 0.04168701171875, 0.008697509765625, -0.00778961181640625, -0.04937744140625, 0.015350341796875, -0.024505615234375, -0.01111602783203125, -0.022003173828125, 0.03509521484375, 0.035247802734375, 0.00958251953125, -0.00699615478515625, 0.0233154296875, 0.0082855224609375, -0.04901123046875, 0.00885009765625, 0.01102447509765625, 0.0292816162109375, 0.060028076171875, -0.048736572265625, -0.010009765625, 0.022125244140625, -0.0311737060546875, 0.0254669189453125, 0.02899169921875, -0.01207733154296875, -0.006580352783203125, -0.0443115234375, 0.015655517578125, 0.0013885498046875, -0.04229736328125, -0.015106201171875, -0.0229034423828125, 0.00695037841796875, -0.0279388427734375, -0.01116943359375, -0.03424072265625, -0.03759765625, -0.017059326171875, 0.042510986328125, -0.033538818359375, -0.00916290283203125, -0.0006041526794433594, 0.0196685791015625, -0.0182647705078125, -0.04815673828125, 0.0231781005859375, 0.0028018951416015625, -0.012451171875, 0.0025386810302734375, 0.0313720703125, 0.0041656494140625, -0.015594482421875, 0.0010166168212890625, -0.0203094482421875, 0.01032257080078125, 0.010009765625, 0.060882568359375, -0.019683837890625, 0.02960205078125, -0.023529052734375, -0.037200927734375, 0.060455322265625, -0.00855255126953125, -0.08123779296875, -0.063720703125, -0.037445068359375, 0.036895751953125, -0.04095458984375, -0.018768310546875, 0.05828857421875, 0.00403594970703125, 0.0176544189453125, -0.020294189453125, 0.007457733154296875, -0.03936767578125, 0.0161285400390625, -0.01366424560546875, -0.07537841796875, 0.0123748779296875, 0.0034427642822265625, 0.02728271484375, 0.033538818359375, 0.0145263671875, -0.0195465087890625, 0.0027618408203125, 0.006488800048828125, -0.0195465087890625, -0.045013427734375, -0.0821533203125, -0.08294677734375, 0.0225830078125, -0.0117950439453125, -0.01418304443359375, 0.024444580078125, 0.005573272705078125, 0.0330810546875, -0.01038360595703125, 0.0013780593872070312, -0.03125, -0.0302581787109375, -0.051361083984375, 0.0153045654296875, -0.00443267822265625, 0.01092529296875, 0.008941650390625, 0.029388427734375, 0.007427215576171875, -0.05560302734375, 0.009368896484375, 0.026580810546875, -0.0028247833251953125, 0.0212554931640625, -0.02349853515625, 0.01149749755859375, 0.00823974609375, 0.0149993896484375, 0.01457977294921875, -0.02093505859375, 0.00817108154296875, -0.032196044921875, 0.0009217262268066406, -0.06317138671875, 0.0031986236572265625, 0.015960693359375, -0.0174713134765625, -0.0278167724609375, 0.039794921875, -0.049407958984375, 0.026580810546875, 0.018524169921875, -0.017608642578125, -0.0157623291015625, 0.021392822265625, -0.032012939453125, -0.0009074211120605469, -0.043975830078125, -0.01061248779296875, 0.028472900390625, -0.003284454345703125, 0.016510009765625, 0.0200347900390625, -0.023529052734375, -0.042205810546875, -0.01396942138671875, 0.045013427734375, -0.0037899017333984375, -0.033538818359375, 0.005123138427734375, 0.031982421875, -0.010528564453125, -0.01210784912109375, -0.07012939453125, -0.064453125, 0.04119873046875, -0.019195556640625, 0.00521087646484375, -0.032867431640625, -0.01253509521484375, -0.01102447509765625, 0.088134765625, -0.0246734619140625, 0.018707275390625, 0.0174102783203125, -0.01824951171875, 0.002605438232421875, 0.003360748291015625, -0.09930419921875, 0.00405120849609375, -0.09307861328125, -0.02362060546875, 0.0018138885498046875, -0.044036865234375, 0.0167236328125, -0.01477813720703125, -0.04107666015625, -0.03912353515625, 0.008209228515625, 0.025543212890625, 0.03533935546875, -0.00948333740234375, 0.00586700439453125, 0.0025634765625, 0.037994384765625, -0.043243408203125, -0.055908203125, -0.003002166748046875, -0.0355224609375, 0.0572509765625, 0.041717529296875, -0.044891357421875, 0.0022945404052734375, 0.02923583984375, 0.01690673828125, 0.025299072265625, -0.01296234130859375, -0.0113372802734375, 0.039398193359375, 0.0012722015380859375, -0.017120361328125, 0.0022754669189453125, -0.011749267578125, -0.0182952880859375, -0.00844573974609375, 0.0099334716796875, -0.02227783203125, 0.01262664794921875, 0.01025390625, -0.006519317626953125, -0.044464111328125, -0.033111572265625, 0.004169464111328125, 0.0299224853515625, 0.007137298583984375, -0.00318145751953125, -0.057769775390625, -0.0599365234375, 0.01543426513671875, -0.020263671875, -0.031494140625, 0.004932403564453125, 0.040985107421875, 0.0271453857421875, -0.0008063316345214844, 0.0190887451171875, 0.0010957717895507812, 0.025634765625, 0.0019969940185546875, 0.028167724609375, -0.0135498046875, -0.02996826171875, 0.07586669921875, -0.013946533203125, 0.021697998046875, -0.0204620361328125, 0.050811767578125, -0.0229644775390625, -0.0360107421875, 0.035552978515625, -0.0460205078125, -0.01004791259765625, 0.01148223876953125, 0.0237579345703125, -0.0264129638671875, 0.037017822265625, 0.0118560791015625, 0.00287628173828125, -0.00522613525390625, 0.00949859619140625, -0.0304107666015625, 0.00402069091796875, 0.0203704833984375, -0.007503509521484375, 0.020050048828125, -0.0125579833984375, -0.01180267333984375, -0.0082550048828125, -0.01666259765625, 0.0301513671875, -0.0223388671875, 0.0120697021484375, 0.00809478759765625, 0.019622802734375, -0.02252197265625, 0.01102447509765625, -0.01152801513671875, 0.08795166015625, 0.005222320556640625, -0.062225341796875, 0.035888671875, -0.031402587890625, -0.0045318603515625, 0.0182342529296875, 0.00467681884765625, 0.06195068359375, -0.004695892333984375, -0.0389404296875, -0.0215911865234375, -0.005443572998046875, -0.051300048828125, -0.063720703125, -0.005046844482421875, -0.0007491111755371094, -0.0149078369140625, 0.0377197265625, 0.0282440185546875, 0.0102386474609375, 0.0240325927734375, -0.0212554931640625, 0.044464111328125, 0.0616455078125, 0.00556182861328125, 0.0202484130859375, 0.02166748046875, -0.048980712890625, 0.0128326416015625, -0.011016845703125, -0.029693603515625, -0.01410675048828125, 0.0294036865234375, 0.0273895263671875, 0.00555419921875, 0.005199432373046875, -0.00489044189453125, -0.00487518310546875, 0.0179901123046875, 0.040802001953125, -0.0025806427001953125, -0.062744140625, -0.01210784912109375, 0.013031005859375, 0.01325225830078125, -0.062164306640625, -0.01128387451171875, 0.015869140625, -0.045928955078125, 0.0296478271484375, 0.002227783203125, 0.00998687744140625, -0.0194244384765625, -0.032257080078125, -0.04345703125, -0.03521728515625, -0.01218414306640625, 0.01422882080078125, 0.0186614990234375, -0.024749755859375, -0.04315185546875, 0.02276611328125, -0.019439697265625, -0.0214691162109375, -0.029937744140625, 0.0191802978515625, -0.030242919921875, -0.01435089111328125, 0.07061767578125, 0.0149078369140625, -0.05718994140625, -0.01129150390625, -0.01383209228515625, 0.00138092041015625, -0.0255584716796875, -0.03521728515625, -0.01209259033203125, 0.00977325439453125, 0.005306243896484375, 0.018798828125, 0.03192138671875, 0.0273590087890625, -0.00225830078125, 0.0056304931640625, 0.0012559890747070312, 0.030975341796875, -0.03466796875, 0.053070068359375, 0.0250701904296875, 0.019134521484375, 0.00835418701171875, 0.032928466796875, 0.006244659423828125, -0.00567626953125, 0.005664825439453125, 0.01557159423828125, -0.01214599609375, -0.06402587890625, 0.046661376953125, -0.01021575927734375, 0.05657958984375, -0.01535797119140625, 0.0020313262939453125, 0.002414703369140625, -0.002994537353515625, -0.017974853515625, -0.01042938232421875, 0.045806884765625, -0.00554656982421875, 0.031036376953125, 0.001308441162109375, 0.0113525390625, -0.0010213851928710938, -0.0161590576171875, 0.02044677734375, 0.0076904296875, 0.0190277099609375, -0.0246734619140625, -0.06207275390625, 0.027069091796875, 0.03271484375, 0.030792236328125, 0.05108642578125, -0.012359619140625, 0.0440673828125, 0.032318115234375, -0.03582763671875, -0.01303863525390625, 0.01520538330078125, 0.045318603515625, -0.01123046875, -0.00519561767578125, 0.05645751953125, -0.017578125, -0.0030364990234375, 0.0625, 0.049713134765625, -0.099609375, 0.0160980224609375, 0.0052032470703125, 0.021453857421875, 0.030975341796875, -0.0136566162109375, 0.0000928640365600586, -0.0013408660888671875, 0.06927490234375, -0.011138916015625, -0.006954193115234375, 0.034027099609375, -0.01015472412109375, -0.0123138427734375, -0.007232666015625, -0.00908660888671875, -0.0066070556640625, -0.00800323486328125, -0.0095062255859375, 0.005889892578125, -0.01352691650390625, -0.035064697265625, 0.019073486328125, 0.0118408203125, 0.0039043426513671875, -0.0601806640625, 0.020294189453125, -0.00519561767578125, -0.0016679763793945312, 0.05426025390625, -0.00899505615234375, 0.05462646484375, 0.042236328125, 0.0014638900756835938, -0.00339508056640625, 0.01251983642578125, -0.04302978515625, -0.005397796630859375, -0.031524658203125, 0.005962371826171875, 0.0091552734375, -0.0394287109375, 0.0266265869140625, -0.0038013458251953125, -0.046295166015625, -0.0175323486328125, -0.02862548828125, 0.04791259765625, -0.0115814208984375, -0.015716552734375, 0.01324462890625, 0.031463623046875, 0.0023670196533203125, -0.00951385498046875, 0.020751953125, -0.046539306640625, -0.03167724609375, -0.0085601806640625, -0.06707763671875, -0.0173492431640625, -0.0309295654296875, -0.07611083984375, 0.08502197265625, 0.0182952880859375, 0.035614013671875, -0.01078033447265625, 0.021697998046875, -0.0153045654296875, 0.01092529296875, -0.041259765625, 0.056427001953125, 0.04754638671875, 0.047637939453125, -0.03173828125, -0.01052093505859375, 0.0231475830078125, 0.0286712646484375, 0.049224853515625, 0.0272979736328125, -0.0073699951171875, -0.00925445556640625, -0.034759521484375, -0.0222320556640625, -0.055999755859375, 0.035186767578125, -0.01102447509765625, 0.037384033203125, 0.03289794921875, -0.039398193359375, 0.0286102294921875, -0.00909423828125, -0.047943115234375, -0.00801849365234375, 0.0004241466522216797, -0.024627685546875, -0.0211334228515625, 0.018096923828125, -0.09033203125, 0.01178741455078125, 0.03759765625, 0.065185546875, 0.002941131591796875, -0.0031280517578125, -0.00333404541015625, -0.0092010498046875, 0.051025390625, -0.028045654296875, 0.0294189453125, -0.001628875732421875, 0.017730712890625, 0.042388916015625, 0.022369384765625, 0.02032470703125, 0.003620147705078125, 0.00925445556640625, 0.00689697265625, -0.00792694091796875, 0.07513427734375, 0.018829345703125, 0.0274505615234375, -0.055694580078125, -0.00777435302734375, 0.0255279541015625, 0.0858154296875, -0.0457763671875, -0.022186279296875, -0.005702972412109375, 0.0174560546875, 0.04595947265625, 0.0166168212890625, 0.0882568359375, 0.03106689453125, 0.03546142578125, -0.049163818359375, 0.0255584716796875, 0.03070068359375, -0.0055999755859375, -0.015899658203125, 0.022491455078125, -0.03369140625, 0.0408935546875, -0.0269927978515625, 0.008544921875, 0.0191192626953125, -0.00347137451171875, -0.0021820068359375, 0.0323486328125, 0.0665283203125, 0.005069732666015625, -0.0220489501953125, 0.0032901763916015625, 0.01349639892578125, 0.01317596435546875, -0.0235595703125, 0.00493621826171875, -0.01038360595703125, 0.0443115234375, 0.0027637481689453125, -0.025421142578125, -0.0221099853515625, -0.01158905029296875, -0.012298583984375, -0.00926971435546875, 0.03912353515625, -0.01470947265625, 0.04046630859375, -0.0010404586791992188, -0.0162506103515625, -0.0230560302734375, -0.03460693359375, -0.01418304443359375, 0.01216888427734375, 0.0106353759765625, -0.00787353515625, 0.038360595703125, -0.0009002685546875, -0.0311431884765625, 0.00975799560546875, 0.007080078125, 0.10357666015625, 0.0255279541015625, -0.04254150390625, 0.0152587890625, -0.0352783203125, -0.064697265625, 0.0391845703125, 0.04205322265625, -0.03662109375, 0.034637451171875, 0.0250396728515625, -0.01332855224609375, 0.03082275390625, -0.010009765625, 0.021026611328125, -0.018768310546875, 0.005840301513671875, -0.00736236572265625, -0.048095703125, 0.01113128662109375, -0.00888824462890625, -0.00774383544921875, 0.005702972412109375, 0.036163330078125, 0.01053619384765625, 0.0087890625, -0.0217437744140625, 0.027923583984375, -0.03594970703125, -0.0474853515625, 0.06341552734375, -0.0120391845703125, -0.018035888671875, -0.0009579658508300781, -0.057708740234375, 0.06121826171875, 0.0219573974609375, 0.024505615234375, 0.0877685546875, 0.0032901763916015625, -0.0108184814453125, -0.049407958984375, -0.0002124309539794922, -0.024383544921875, -0.06610107421875, -0.0445556640625, 0.0180816650390625, 0.0105133056640625, 0.03387451171875, -0.0031337738037109375, 0.054656982421875, -0.032135009765625, -0.03729248046875, -0.0224151611328125, -0.061614990234375, -0.04217529296875, 0.019287109375, 0.0116729736328125, 0.015716552734375, -0.02203369140625, -0.00998687744140625, -0.006439208984375, 0.0252227783203125, -0.0435791015625, 0.0152587890625, 0.032623291015625, 0.0037097930908203125, 0.0162506103515625, 0.0253753662109375, -0.0249176025390625, -0.00499725341796875, 0.036712646484375, -0.021392822265625, -0.0276336669921875, -0.0550537109375, -0.03228759765625, -0.025115966796875, -0.00719451904296875, -0.0016355514526367188, 0.0163116455078125, -0.06695556640625, 0.0030841827392578125, 0.035400390625, 0.0117034912109375, -0.0258026123046875, -0.0438232421875, 0.0311737060546875, -0.05242919921875, 0.0555419921875, -0.0484619140625, -0.00885009765625, 0.0209503173828125, 0.0413818359375, -0.041046142578125, 0.0107269287109375, -0.0142974853515625, -0.0229034423828125, -0.006328582763671875, -0.03558349609375, 0.0108184814453125, 0.0219879150390625, -0.035675048828125, -0.033477783203125, -0.0631103515625, 0.021209716796875, -0.0694580078125, -0.030426025390625, -0.00493621826171875, -0.009124755859375, 0.003162384033203125, -0.018280029296875, 0.00004929304122924805, -0.03436279296875, -0.0164794921875, -0.005634307861328125, 0.00583648681640625, 0.01995849609375, -0.0284576416015625, -0.0716552734375, 0.06793212890625, -0.02337646484375, -0.0232086181640625, -0.055328369140625, 0.03839111328125, -0.00864410400390625, -0.00646209716796875, -0.017181396484375, -0.01226043701171875, 0.0015516281127929688, 0.017791748046875, -0.00679779052734375, 0.00646209716796875, 0.03350830078125, -0.0054168701171875, -0.03753662109375, -0.0123138427734375, -0.0187835693359375, -0.0222625732421875, 0.02862548828125, -0.032073974609375, 0.0419921875, 0.0472412109375, -0.02020263671875, -0.032989501953125, -0.01099395751953125, -0.023529052734375, -0.0287628173828125, -0.048583984375, 0.0218505859375, -0.01507568359375, 0.04595947265625, 0.0166778564453125, 0.0007243156433105469, -0.0269012451171875, -0.06787109375, -0.020904541015625, -0.0236053466796875, 0.0034465789794921875, 0.0283203125, -0.0810546875, 0.01409912109375, 0.01439666748046875, -0.0360107421875, -0.0079803466796875, 0.0125274658203125, -0.0440673828125, 0.0291595458984375, 0.049774169921875, 0.0211029052734375, -0.03125, 0.023040771484375, 0.05810546875, -0.0325927734375, -0.0039520263671875, -0.00998687744140625, -0.002063751220703125, 0.010284423828125, -0.0273590087890625, 0.0474853515625, 0.05145263671875, -0.042449951171875, -0.036163330078125, 0.034027099609375, 0.01343536376953125, 0.005603790283203125, -0.036865234375, -0.01229095458984375, 0.001964569091796875, -0.001659393310546875, -0.00400543212890625, 0.00168609619140625, -0.001708984375, 0.004154205322265625, 0.0311431884765625, -0.0113525390625, 0.0293121337890625, -0.03814697265625, 0.039886474609375, 0.00701141357421875, -0.00524139404296875, 0.0161590576171875, 0.018951416015625, 0.00200653076171875, 0.0291290283203125, -0.003643035888671875, -0.0360107421875, 0.0212554931640625, 0.0144500732421875, 0.0220794677734375, 0.0046539306640625 ]
7bc8aeb6075687ebce0f0446b362b18fd55fb41d
Wordpress Stackexchange Q: How can I change Max Embed Size in WordPress 3.5? after updating to WordPress 3.5 my automatic embeds are limited to a width of 500px, and the settings for this size have been removed with WordPress 3.5 Also, I can't find the Values in the wp_options table. Does anyone know how to change them again? Cheers, fischi A: This worked for me from http://www.wpbeginner.com/wp-themes/how-to-set-oembed-max-width-in-wordpress-3-5-with-content_width/ Add the below to functions.php if ( ! isset( $content_width ) ) $content_width = 600; Then had to go in and re-save the post to make it work.
Q: How can I change Max Embed Size in WordPress 3.5? after updating to WordPress 3.5 my automatic embeds are limited to a width of 500px, and the settings for this size have been removed with WordPress 3.5 Also, I can't find the Values in the wp_options table. Does anyone know how to change them again? Cheers, fischi A: This worked for me from http://www.wpbeginner.com/wp-themes/how-to-set-oembed-max-width-in-wordpress-3-5-with-content_width/ Add the below to functions.php if ( ! isset( $content_width ) ) $content_width = 600; Then had to go in and re-save the post to make it work. A: See the function wp_embed_defaults() in wp-includes/media.php: function wp_embed_defaults() { if ( ! empty( $GLOBALS['content_width'] ) ) $width = (int) $GLOBALS['content_width']; if ( empty( $width ) ) $width = 500; $height = min( ceil( $width * 1.5 ), 1000 ); return apply_filters( 'embed_defaults', compact( 'width', 'height' ) ); } To change these values filter embed_defaults: add_filter( 'embed_defaults', 'wpse_76102_new_embed_size' ); function wpse_76102_new_embed_size() { // adjust these pixel values to your needs return array( 'width' => 1000, 'height' => 600 ); }
wordpress
{ "language": "en", "length": 173, "provenance": "stackexchange_00019.jsonl.gz:426803", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76102" }
[ -0.0111083984375, -0.01032257080078125, -0.025726318359375, 0.03363037109375, -0.031494140625, -0.03594970703125, 0.00910186767578125, -0.0238189697265625, 0.0016231536865234375, 0.012664794921875, -0.06903076171875, 0.059051513671875, -0.00835418701171875, 0.022491455078125, 0.0233001708984375, -0.01751708984375, 0.053924560546875, -0.01128387451171875, 0.03961181640625, -0.0073089599609375, -0.01776123046875, 0.008575439453125, 0.051727294921875, 0.07720947265625, -0.0029888153076171875, -0.042236328125, 0.11370849609375, -0.05047607421875, 0.00968170166015625, -0.035919189453125, 0.02294921875, 0.00569915771484375, -0.0023860931396484375, 0.048370361328125, -0.040802001953125, -0.01702880859375, 0.0345458984375, 0.006649017333984375, 0.006664276123046875, 0.0235443115234375, 0.0051727294921875, -0.005596160888671875, 0.047576904296875, -0.033355712890625, 0.02008056640625, -0.003963470458984375, 0.0206451416015625, -0.048431396484375, 0.030487060546875, -0.059844970703125, -0.01146697998046875, 0.0024089813232421875, 0.0213470458984375, -0.08795166015625, -0.01018524169921875, 0.01337432861328125, -0.061279296875, 0.03265380859375, 0.0249176025390625, 0.006801605224609375, 0.00156402587890625, -0.00676727294921875, 0.00850677490234375, -0.012481689453125, 0.01126861572265625, -0.02191162109375, 0.07696533203125, 0.0214691162109375, -0.00713348388671875, 0.0011777877807617188, 0.01032257080078125, 0.036285400390625, 0.0085906982421875, -0.0236663818359375, -0.03985595703125, 0.047821044921875, 0.003631591796875, 0.0092315673828125, 0.0293121337890625, -0.042694091796875, 0.03436279296875, 0.01236724853515625, 0.0118255615234375, -0.00417327880859375, 0.01152801513671875, 0.01155853271484375, -0.004467010498046875, -0.026336669921875, 0.00911712646484375, -0.0020198822021484375, -0.00772857666015625, 0.0262908935546875, -0.0066680908203125, 0.0100555419921875, -0.031097412109375, -0.0281982421875, 0.0244903564453125, 0.018951416015625, -0.0137939453125, 0.01300048828125, 0.0170135498046875, -0.057220458984375, 0.0672607421875, -0.03912353515625, -0.0099029541015625, 0.0084228515625, 0.0035572052001953125, 0.007808685302734375, 0.0215911865234375, 0.02227783203125, -0.004589080810546875, 0.0273895263671875, 0.007720947265625, 0.0254364013671875, -0.01219940185546875, -0.040679931640625, -0.06146240234375, 0.03192138671875, -0.029205322265625, 0.0048828125, -0.0026645660400390625, 0.0252532958984375, 0.0096893310546875, -0.003833770751953125, 0.0180206298828125, 0.0253753662109375, 0.00579071044921875, -0.04876708984375, -0.0220489501953125, 0.050079345703125, -0.0352783203125, 0.0088958740234375, 0.0694580078125, 0.015960693359375, -0.0208282470703125, -0.0302734375, -0.0041656494140625, -0.0305328369140625, -0.00940704345703125, 0.059356689453125, -0.095947265625, -0.0362548828125, 0.07366943359375, -0.055084228515625, -0.01033782958984375, 0.0036945343017578125, 0.0245208740234375, 0.02093505859375, -0.017333984375, -0.052459716796875, 0.03277587890625, -0.001918792724609375, 0.037628173828125, 0.0174102783203125, 0.00080108642578125, -0.0202178955078125, 0.07501220703125, -0.043609619140625, -0.0264434814453125, -0.05657958984375, -0.025299072265625, 0.006977081298828125, 0.06683349609375, -0.03350830078125, -0.031402587890625, -0.004344940185546875, -0.053802490234375, -0.0002512931823730469, 0.019775390625, 0.06121826171875, -0.01812744140625, -0.0007953643798828125, -0.0174407958984375, 0.0003733634948730469, -0.017669677734375, 0.0033779144287109375, 0.0254058837890625, -0.0017299652099609375, 0.00885772705078125, 0.04168701171875, 0.0026302337646484375, -0.019195556640625, 0.07781982421875, -0.036865234375, 0.0067901611328125, -0.07476806640625, 0.0283355712890625, 0.0024261474609375, 0.01629638671875, 0.04559326171875, 0.0087432861328125, -0.01837158203125, 0.0244293212890625, -0.012359619140625, 0.0080108642578125, -0.019622802734375, -0.037689208984375, -0.016815185546875, -0.011322021484375, 0.01090240478515625, 0.01396942138671875, 0.041107177734375, -0.02105712890625, 0.022430419921875, -0.0197296142578125, 0.0226898193359375, -0.0032634735107421875, 0.0282440185546875, 0.04376220703125, -0.006610870361328125, -0.0190582275390625, -0.01221466064453125, 0.00907135009765625, -0.01410675048828125, -0.057708740234375, 0.030181884765625, -0.006832122802734375, 0.06011962890625, 0.0123748779296875, 0.04205322265625, 0.0130615234375, -0.057891845703125, 0.007404327392578125, -0.01058197021484375, 0.0360107421875, -0.0364990234375, -0.0016307830810546875, -0.04730224609375, 0.0450439453125, -0.015045166015625, -0.01232147216796875, 0.038787841796875, 0.01192474365234375, 0.0298919677734375, -0.0238037109375, -0.00740814208984375, -0.017791748046875, -0.03253173828125, 0.0107879638671875, 0.0430908203125, 0.0615234375, -0.0110931396484375, 0.026397705078125, 0.0175018310546875, 0.0161285400390625, -0.0272979736328125, 0.045013427734375, -0.029541015625, 0.0014219284057617188, 0.00119781494140625, 0.04144287109375, -0.0259246826171875, 0.0249176025390625, -0.06298828125, 0.007488250732421875, 0.03045654296875, -0.01806640625, -0.0032558441162109375, -0.005023956298828125, 0.0309600830078125, -0.02239990234375, -0.022186279296875, 0.03070068359375, -0.042205810546875, -0.0118865966796875, 0.028228759765625, 0.0225372314453125, 0.0247039794921875, -0.006031036376953125, 0.016754150390625, 0.0217132568359375, -0.0048370361328125, 0.005992889404296875, 0.04803466796875, -0.016204833984375, -0.02288818359375, -0.0274505615234375, 0.00887298583984375, -0.018798828125, -0.0048370361328125, -0.0102996826171875, 0.029083251953125, -0.0267486572265625, -0.01432037353515625, 0.00495147705078125, -0.0286865234375, -0.0108489990234375, -0.00612640380859375, 0.0020809173583984375, -0.0379638671875, -0.0195465087890625, 0.07373046875, -0.010345458984375, 0.058868408203125, 0.050079345703125, -0.0096435546875, -0.00015437602996826172, -0.0948486328125, 0.07550048828125, -0.05999755859375, 0.065185546875, 0.083740234375, -0.03607177734375, 0.04052734375, -0.0091094970703125, -0.01953125, -0.039276123046875, 0.01222991943359375, -0.0237579345703125, -0.0164337158203125, -0.06036376953125, -0.0031452178955078125, 0.00649261474609375, -0.009368896484375, -0.025054931640625, -0.023651123046875, -0.038665771484375, 0.0097198486328125, -0.0399169921875, 0.0298309326171875, 0.0259246826171875, -0.0816650390625, -0.0310821533203125, 0.0186004638671875, -0.0533447265625, -0.017822265625, 0.06646728515625, -0.005458831787109375, 0.0257110595703125, -0.02569580078125, -0.038909912109375, -0.02935791015625, -0.04486083984375, -0.0175933837890625, -0.009307861328125, -0.01410675048828125, 0.00888824462890625, 0.06329345703125, 0.0208740234375, -0.05523681640625, -0.022979736328125, 0.042938232421875, -0.0360107421875, -0.0202484130859375, 0.038665771484375, -0.029205322265625, -0.031768798828125, 0.002777099609375, -0.005870819091796875, 0.0254974365234375, -0.0295867919921875, -0.012542724609375, -0.0305633544921875, -0.0153656005859375, -0.004245758056640625, 0.0472412109375, 0.031829833984375, -0.04327392578125, -0.003246307373046875, -0.064453125, -0.0065155029296875, 0.0099334716796875, -0.022674560546875, 0.007228851318359375, 0.01959228515625, -0.04071044921875, 0.0254974365234375, -0.019012451171875, -0.01514434814453125, 0.0009794235229492188, 0.047760009765625, -0.04571533203125, 0.044189453125, -0.01323699951171875, -0.0254058837890625, -0.033172607421875, 0.0173492431640625, -0.0162200927734375, 0.0225830078125, 0.00313568115234375, 0.007663726806640625, -0.00910186767578125, 0.009490966796875, -0.03643798828125, -0.026336669921875, 0.02679443359375, -0.059295654296875, 0.0008449554443359375, -0.01451873779296875, -0.00397491455078125, 0.00496673583984375, 0.0770263671875, -0.0160369873046875, -0.0289306640625, 0.0172882080078125, 0.01116943359375, -0.0019159317016601562, -0.0177459716796875, -0.02056884765625, -0.01480865478515625, -0.01090240478515625, 0.00726318359375, -0.00957489013671875, 0.00827789306640625, -0.0404052734375, 0.06793212890625, -0.01543426513671875, -0.01092529296875, 0.031646728515625, 0.004489898681640625, -0.039459228515625, 0.01015472412109375, -0.054473876953125, -0.01116180419921875, -0.032867431640625, 0.0158233642578125, -0.08441162109375, -0.01351165771484375, -0.0030956268310546875, 0.0626220703125, -0.0087738037109375, 0.01605224609375, -0.04583740234375, 0.0304107666015625, 0.0513916015625, -0.0017490386962890625, 0.04302978515625, -0.018890380859375, -0.00592803955078125, 0.003223419189453125, 0.040618896484375, -0.0191192626953125, -0.0036773681640625, -0.042724609375, -0.0439453125, -0.03485107421875, -0.0189361572265625, 0.01065826416015625, 0.0088043212890625, -0.004486083984375, -0.0665283203125, -0.0256195068359375, 0.006069183349609375, 0.0122528076171875, 0.0004076957702636719, 0.0002048015594482422, -0.036651611328125, -0.055999755859375, 0.0452880859375, 0.02740478515625, 0.004058837890625, -0.006679534912109375, 0.054656982421875, 0.0159454345703125, -0.044403076171875, -0.00879669189453125, 0.0015230178833007812, 0.029022216796875, 0.037445068359375, 0.0005626678466796875, -0.0038623809814453125, -0.030975341796875, 0.035186767578125, 0.0214385986328125, 0.0247039794921875, 0.0210418701171875, 0.0226593017578125, 0.0116729736328125, -0.0169830322265625, 0.0303955078125, 0.01117706298828125, -0.043792724609375, -0.0193939208984375, -0.005523681640625, -0.0091094970703125, -0.003269195556640625, 0.040191650390625, 0.043426513671875, -0.0023975372314453125, -0.045654296875, -0.0286865234375, 0.01456451416015625, 0.03759765625, 0.0174713134765625, 0.02105712890625, 0.011871337890625, 0.024627685546875, 0.0093841552734375, -0.016998291015625, -0.00447845458984375, -0.0155792236328125, 0.01079559326171875, 0.0161895751953125, -0.0092010498046875, -0.00841522216796875, -0.01318359375, 0.01261138916015625, -0.0188140869140625, -0.0104217529296875, -0.0251922607421875, -0.05218505859375, 0.01064300537109375, 0.01202392578125, 0.02166748046875, 0.003421783447265625, 0.05364990234375, 0.024932861328125, 0.0117950439453125, -0.040771484375, -0.075927734375, 0.0615234375, -0.0594482421875, -0.006717681884765625, -0.031158447265625, -0.00731658935546875, 0.02838134765625, -0.0220947265625, 0.00962066650390625, -0.0063934326171875, -0.01641845703125, 0.0181427001953125, -0.0022945404052734375, 0.028076171875, -0.0035552978515625, 0.038360595703125, 0.01251220703125, 0.0080718994140625, 0.0139923095703125, 0.007598876953125, -0.019073486328125, -0.01029205322265625, -0.0260772705078125, 0.004421234130859375, 0.041717529296875, 0.01409149169921875, 0.015960693359375, -0.018798828125, 0.0261993408203125, -0.017181396484375, -0.0491943359375, -0.0174713134765625, 0.019927978515625, 0.04058837890625, -0.02227783203125, 0.00490570068359375, -0.051239013671875, -0.030609130859375, -0.048828125, 0.039306640625, -0.052459716796875, -0.0155792236328125, -0.023193359375, -0.020904541015625, 0.0014276504516601562, -0.01528167724609375, -0.048309326171875, -0.033477783203125, 0.0017042160034179688, -0.0176544189453125, 0.03564453125, -0.039520263671875, 0.035491943359375, -0.0141448974609375, -0.0089874267578125, 0.0131988525390625, 0.050018310546875, -0.0340576171875, -0.0273284912109375, 0.039337158203125, -0.001918792724609375, -0.01128387451171875, -0.044342041015625, 0.015869140625, -0.0140380859375, -0.0255279541015625, -0.03515625, -0.044586181640625, -0.020416259765625, -0.0137786865234375, 0.021331787109375, -0.046417236328125, 0.061431884765625, 0.024078369140625, -0.004413604736328125, -0.043121337890625, 0.01161956787109375, 0.0665283203125, -0.003772735595703125, 0.0024318695068359375, 0.02618408203125, 0.02874755859375, -0.035247802734375, -0.01462554931640625, -0.0031032562255859375, -0.0129547119140625, 0.0270843505859375, -0.01010894775390625, 0.00821685791015625, 0.05169677734375, -0.0017480850219726562, 0.036163330078125, -0.0462646484375, -0.00946807861328125, -0.01378631591796875, 0.08428955078125, -0.047210693359375, 0.02813720703125, 0.04132080078125, -0.0148162841796875, 0.034027099609375, -0.0002884864807128906, 0.00783538818359375, 0.0175933837890625, -0.0254364013671875, 0.0208282470703125, 0.0228729248046875, -0.0205078125, 0.0360107421875, 0.031585693359375, -0.0034027099609375, 0.0321044921875, 0.011444091796875, 0.0144805908203125, -0.0113677978515625, 0.0014696121215820312, -0.0196380615234375, -0.02679443359375, -0.0167694091796875, -0.015960693359375, 0.038543701171875, 0.0005002021789550781, 0.0210113525390625, 0.0467529296875, 0.00493621826171875, 0.034088134765625, -0.04559326171875, 0.027801513671875, -0.028717041015625, -0.057586669921875, 0.0540771484375, -0.0128021240234375, -0.016510009765625, -0.00386810302734375, 0.031463623046875, 0.008819580078125, -0.01220703125, 0.0225067138671875, 0.0201263427734375, -0.0039825439453125, 0.017547607421875, 0.0684814453125, 0.021575927734375, -0.02581787109375, 0.0172576904296875, -0.022064208984375, 0.0633544921875, -0.021331787109375, -0.01236724853515625, -0.022003173828125, -0.033782958984375, -0.039642333984375, -0.0177459716796875, -0.0201263427734375, -0.00888824462890625, 0.0128631591796875, 0.03546142578125, 0.005535125732421875, 0.06280517578125, -0.007354736328125, 0.007537841796875, 0.034454345703125, -0.034515380859375, 0.0274658203125, -0.0246429443359375, 0.025665283203125, 0.0352783203125, -0.08746337890625, 0.018096923828125, -0.028564453125, 0.0026378631591796875, 0.00689697265625, -0.024566650390625, 0.040679931640625, -0.039703369140625, 0.0011682510375976562, 0.016571044921875, -0.0147247314453125, -0.005405426025390625, -0.0238189697265625, 0.0292816162109375, -0.06878662109375, -0.03741455078125, -0.0118560791015625, -0.050201416015625, -0.0233154296875, -0.05609130859375, -0.03765869140625, 0.1087646484375, -0.01947021484375, 0.00994873046875, 0.006988525390625, 0.046356201171875, -0.02362060546875, 0.0266265869140625, 0.010101318359375, 0.0198516845703125, 0.0181121826171875, -0.0189056396484375, 0.00945281982421875, 0.0005550384521484375, 0.0009899139404296875, 0.01995849609375, -0.01258087158203125, -0.01477813720703125, 0.0043487548828125, -0.0276641845703125, 0.061004638671875, 0.0916748046875, 0.055511474609375, -0.03515625, -0.0260772705078125, -0.0056304931640625, -0.006214141845703125, -0.025543212890625, 0.016632080078125, -0.02484130859375, -0.03179931640625, -0.00013816356658935547, -0.00995635986328125, -0.0242462158203125, 0.0016193389892578125, 0.00958251953125, -0.0218353271484375, -0.0131988525390625, 0.01480865478515625, -0.07537841796875, 0.055328369140625, 0.052520751953125, 0.08111572265625, -0.003047943115234375, 0.051055908203125, -0.032958984375, 0.07867431640625, 0.007110595703125, -0.03289794921875, 0.0213623046875, 0.0030460357666015625, 0.02801513671875, -0.016815185546875, -0.0312347412109375, -0.00598907470703125, 0.034881591796875, 0.0233306884765625, 0.042236328125, 0.04107666015625, 0.02642822265625, -0.01377105712890625, -0.0089111328125, 0.01514434814453125, -0.0012559890747070312, -0.0372314453125, 0.004192352294921875, 0.0150604248046875, 0.007381439208984375, -0.00037860870361328125, -0.00004184246063232422, -0.0032215118408203125, 0.034820556640625, -0.033050537109375, 0.0173492431640625, 0.034423828125, 0.009124755859375, 0.00919342041015625, 0.044586181640625, -0.042724609375, 0.00807952880859375, -0.0313720703125, -0.032623291015625, 0.0265350341796875, 0.0298004150390625, 0.049468994140625, -0.0017957687377929688, 0.047821044921875, -0.00905609130859375, -0.0171661376953125, 0.0087890625, -0.0214996337890625, -0.0025882720947265625, -0.018798828125, -0.0218505859375, 0.003147125244140625, 0.03533935546875, -0.005706787109375, -0.00489044189453125, 0.048614501953125, 0.037384033203125, -0.07977294921875, -0.044189453125, 0.002010345458984375, -0.037200927734375, 0.013427734375, -0.05023193359375, 0.005046844482421875, 0.005123138427734375, -0.0072784423828125, -0.026275634765625, -0.0085601806640625, 0.034515380859375, 0.00984954833984375, 0.015472412109375, 0.0198974609375, -0.00930023193359375, -0.0228424072265625, -0.0162506103515625, -0.0260772705078125, 0.02777099609375, -0.05621337890625, -0.004425048828125, -0.01094818115234375, -0.00830841064453125, -0.0289306640625, 0.005680084228515625, -0.0264434814453125, 0.03656005859375, 0.00890350341796875, -0.00580596923828125, -0.0174102783203125, 0.0128173828125, 0.006031036376953125, -0.020111083984375, 0.019256591796875, -0.0034732818603515625, -0.045989990234375, -0.037811279296875, -0.038726806640625, 0.057098388671875, 0.02862548828125, 0.07562255859375, -0.0276336669921875, 0.029937744140625, 0.01187896728515625, -0.05682373046875, 0.05328369140625, 0.01274871826171875, 0.00026488304138183594, 0.0010595321655273438, -0.02410888671875, -0.02484130859375, -0.01181793212890625, 0.032196044921875, 0.03704833984375, -0.039459228515625, 0.03338623046875, 0.002536773681640625, 0.0029506683349609375, -0.028106689453125, -0.0165557861328125, -0.03961181640625, -0.05426025390625, -0.0262451171875, 0.034210205078125, -0.02203369140625, -0.010650634765625, -0.020843505859375, 0.0214996337890625, 0.016204833984375, -0.03131103515625, 0.03033447265625, -0.0292816162109375, 0.05487060546875, 0.036651611328125, -0.018402099609375, -0.060760498046875, 0.05926513671875, 0.002532958984375, 0.00958251953125, 0.0251312255859375, 0.087158203125, 0.0406494140625, -0.01551055908203125, 0.0109710693359375, 0.0221099853515625, -0.0227813720703125, -0.07794189453125, -0.01160430908203125, 0.0601806640625, -0.0291900634765625, 0.0156402587890625, 0.023223876953125, -0.0149078369140625, -0.00388336181640625, -0.01508331298828125, 0.008148193359375, -0.00152587890625, -0.0111846923828125, -0.04425048828125, 0.0016965866088867188, -0.000012636184692382812, 0.0197601318359375, -0.05865478515625, 0.052276611328125, 0.0007967948913574219, -0.003437042236328125, -0.0120086669921875, -0.0379638671875, -0.00830078125, 0.005863189697265625, -0.0017795562744140625, -0.01495361328125, -0.04302978515625, 0.0220794677734375, -0.0247802734375, 0.00870513916015625, 0.042510986328125, -0.0249176025390625, 0.001590728759765625, -0.001819610595703125, 0.01953125, 0.057830810546875, -0.032684326171875, 0.00788116455078125, 0.039031982421875, 0.01401519775390625, -0.054290771484375, -0.0634765625, 0.006137847900390625, -0.0386962890625, 0.006526947021484375, -0.0121002197265625, 0.00812530517578125, -0.0023746490478515625, -0.0286407470703125, -0.031707763671875, 0.01171875, 0.01181793212890625, -0.033966064453125, 0.0394287109375, -0.04852294921875, -0.022979736328125, -0.014801025390625, 0.01071929931640625, 0.0090179443359375, -0.01953125, 0.022186279296875, -0.0133819580078125, 0.003231048583984375, -0.01215362548828125, -0.02532958984375, -0.05780029296875, 0.0235595703125, 0.042938232421875, -0.018218994140625, -0.00994873046875, -0.0005450248718261719, 0.023895263671875, 0.037445068359375, -0.0150299072265625, -0.0141754150390625, 0.01091766357421875, -0.021209716796875, 0.00943756103515625, -0.0126800537109375, 0.0034999847412109375, -0.00792694091796875, 0.031463623046875, 0.01153564453125, -0.0019254684448242188, -0.0181121826171875, 0.0364990234375, 0.0161285400390625, -0.01406097412109375, 0.002071380615234375, 0.005771636962890625, -0.035003662109375, -0.037353515625, 0.0165557861328125, -0.03448486328125, -0.046295166015625, 0.020111083984375, -0.045867919921875, 0.0057373046875, 0.017547607421875, 0.0021648406982421875, -0.0189208984375, 0.0462646484375, 0.0504150390625, -0.06024169921875, -0.06097412109375, 0.007732391357421875, -0.01421356201171875, -0.034515380859375, -0.10418701171875, 0.0036773681640625, 0.00713348388671875, -0.02655029296875, 0.03759765625, 0.00347137451171875, 0.0219268798828125, -0.04595947265625, -0.0147705078125, 0.0296478271484375, -0.007312774658203125, -0.0159454345703125, -0.00452423095703125, 0.0241546630859375, -0.01103973388671875, -0.037689208984375, -0.01953125, -0.035888671875, 0.035369873046875, -0.033477783203125, 0.0164337158203125, -0.0066986083984375, 0.008880615234375, 0.0293426513671875, 0.00811004638671875, 0.024078369140625, -0.0081024169921875, 0.00904083251953125, -0.0233612060546875, 0.0214080810546875, -0.050323486328125, -0.0113525390625, 0.007129669189453125 ]
833a1713c19857a704339fc292858243ada7ece9
Wordpress Stackexchange Q: Prevent network activation of plugin I have a plugin that currently doesn't support network activation. The best fix for this of course is to fix it :) which I plan to do. However I wonder if there is a temporary solution I can use to prevent network activation in the meantime, perhaps a workflow similar to: * *Detect if the activation is network-wide (how??) *Display message that it's currently not supported, and I stink, I'm sorry *Interrupt the activation or deactivate Or, other suggestions accepted. Thanks. For clarification: Multisite activation is fine, just not network-wide activation. A: A plugin header Network: false will be ignored by WordPress … unfortunately. But the activation hook gets a parameter $network_wide, and we can use that to deactivate the plugin during activation: <?php /** * Plugin Name: Prevent Network Activation * Plugin URI: http://wordpress.stackexchange.com/questions/76145/prevent-network-activation-of-plugin * Network: false * * Note the 'Network' option will be ignored by WordPress. */ register_activation_hook( __FILE__, 'pna_check_network_activation' ); function pna_check_network_activation( $network_wide ) { if ( ! $network_wide ) return; deactivate_plugins( plugin_basename( __FILE__ ), TRUE, TRUE ); header( 'Location: ' . network_admin_url( 'plugins.php?deactivate=true' ) ); exit; }
Q: Prevent network activation of plugin I have a plugin that currently doesn't support network activation. The best fix for this of course is to fix it :) which I plan to do. However I wonder if there is a temporary solution I can use to prevent network activation in the meantime, perhaps a workflow similar to: * *Detect if the activation is network-wide (how??) *Display message that it's currently not supported, and I stink, I'm sorry *Interrupt the activation or deactivate Or, other suggestions accepted. Thanks. For clarification: Multisite activation is fine, just not network-wide activation. A: A plugin header Network: false will be ignored by WordPress … unfortunately. But the activation hook gets a parameter $network_wide, and we can use that to deactivate the plugin during activation: <?php /** * Plugin Name: Prevent Network Activation * Plugin URI: http://wordpress.stackexchange.com/questions/76145/prevent-network-activation-of-plugin * Network: false * * Note the 'Network' option will be ignored by WordPress. */ register_activation_hook( __FILE__, 'pna_check_network_activation' ); function pna_check_network_activation( $network_wide ) { if ( ! $network_wide ) return; deactivate_plugins( plugin_basename( __FILE__ ), TRUE, TRUE ); header( 'Location: ' . network_admin_url( 'plugins.php?deactivate=true' ) ); exit; } A: The answers here are overthought and too complex. Why deactivating the plugin instead of preventing activation? Something as simple as calling die('your error message here) upon activation will do the job. function activate($networkwide) { if (is_multisite() && $networkwide) die('This plugin can\'t be activated networkwide'); } register_activation_hook('your-plugin/index.php','activate'); Then when you try to activate in the panel, you will get a nice error on top of the page, with your error message. A: You could simply hide it from the network-plugins list. add_filter( 'all_plugins', 'wpse_76145_hide_network_plugin' ); function wpse_76145_hide_network_plugin( $all ) { global $current_screen; if( $current_screen->is_network ) unset($all['akismet/akismet.php']); return $all; } And display a one-time network admin notice. Adapting the Q&A add_role() run only once?. add_action( 'network_admin_notices', 'wpse_76145_admin_notice' ); function wpse_76145_admin_notice() { global $current_screen; if( 'plugins-network' == $current_screen->id ) { if ( wpse_25643_run_once( 'hide_akismet_network' ) ) echo '<div class="error">Akismet not available in Network mode</div>'; } } function wpse_25643_run_once( $key ) { $test_case = get_option( 'run_once' ); if ( isset( $test_case[$key] ) && $test_case[$key] ) { return false; } else { $test_case[$key] = true; update_option( 'run_once',$test_case ); return true; } } Or use this other technique: Add a notice to users upon first login to the admin area A: (This is untested) add_action( 'activated_plugin', 'wpse76145_no_network_activation',10,2 ); function wpse76145_no_network_activation( $plugin, $network_wide){ if( $plugin == 'myplugin/myplugin.php' && $network_wide ){ //Plugin was network activated //Network deactivate deactivate_plugins( $plugin,false, true ); //Activate on single site activate_plugins( $plugin); add_option('wpse76145_network_activate_notice',1); } } And then on admin_notices check for the wpse76145_network_activate_notice option and display notice. Note: It would be better not to hardcode 'myplugin/myplugin.php' - I think replacing it with plugin_basename(__FILE__); would work (and be preferable). Edit if multi-site activation is ok, then you could use switch_to_blog() to activate on each plug-in individually. I would still display a notice as you've not done what the user has asked.
wordpress
{ "language": "en", "length": 486, "provenance": "stackexchange_00019.jsonl.gz:426816", "question_score": "9", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76145" }
[ 0.060455322265625, 0.0236053466796875, 0.00673675537109375, -0.0145263671875, 0.035125732421875, -0.0343017578125, 0.049774169921875, -0.0355224609375, -0.01422119140625, -0.01424407958984375, -0.0192108154296875, 0.0019702911376953125, -0.02008056640625, -0.038482666015625, 0.038665771484375, -0.035858154296875, 0.0213470458984375, 0.00524139404296875, -0.002410888671875, -0.00388336181640625, -0.0133514404296875, 0.014007568359375, 0.006145477294921875, 0.0150604248046875, 0.003017425537109375, -0.05322265625, 0.1065673828125, -0.0496826171875, 0.00341796875, -0.033935546875, 0.024566650390625, 0.0156402587890625, 0.002079010009765625, 0.05218505859375, -0.0538330078125, -0.08697509765625, -0.015838623046875, 0.0265960693359375, 0.00231170654296875, 0.0038204193115234375, 0.0191802978515625, 0.00003701448440551758, 0.0655517578125, 0.00885009765625, 0.0238189697265625, -0.04595947265625, 0.02923583984375, -0.058868408203125, 0.027252197265625, 0.0279083251953125, -0.0089263916015625, 0.0123291015625, 0.004245758056640625, -0.016815185546875, -0.025299072265625, -0.050384521484375, -0.05523681640625, 0.01806640625, -0.001430511474609375, 0.056732177734375, 0.0255584716796875, 0.028228759765625, -0.0217437744140625, -0.0272216796875, 0.0166168212890625, -0.0198516845703125, -0.034210205078125, 0.0195159912109375, -0.0653076171875, 0.021514892578125, 0.06414794921875, -0.06024169921875, 0.027191162109375, 0.043914794921875, -0.0287322998046875, -0.09393310546875, 0.0288238525390625, -0.0221099853515625, 0.036773681640625, -0.0109710693359375, 0.004852294921875, 0.027008056640625, -0.039886474609375, -0.027496337890625, 0.0216522216796875, 0.0067901611328125, -0.009429931640625, -0.01349639892578125, -0.033721923828125, 0.013763427734375, -0.036346435546875, -0.01165008544921875, 0.01092529296875, -0.033660888671875, -0.0275115966796875, -0.01154327392578125, 0.042755126953125, 0.0465087890625, -0.004215240478515625, -0.036773681640625, 0.032684326171875, -0.0504150390625, 0.0189056396484375, -0.0255279541015625, -0.00494384765625, 0.07159423828125, 0.01352691650390625, -0.02606201171875, -0.0007925033569335938, -0.0019092559814453125, 0.007122039794921875, -0.003612518310546875, -0.038330078125, -0.0175323486328125, -0.034332275390625, 0.01399993896484375, -0.060760498046875, -0.007389068603515625, -0.001155853271484375, 0.00359344482421875, 0.0016851425170898438, 0.00128173828125, -0.0250701904296875, 0.00992584228515625, 0.00537872314453125, -0.01212310791015625, -0.02764892578125, 0.0258331298828125, -0.053680419921875, 0.0009965896606445312, -0.01287841796875, 0.021484375, 0.040985107421875, 0.013427734375, -0.0080718994140625, 0.00015556812286376953, 0.028533935546875, 0.040130615234375, 0.01494598388671875, -0.02606201171875, 0.06036376953125, -0.01264190673828125, -0.030853271484375, 0.03631591796875, 0.00592803955078125, 0.00594329833984375, 0.0310516357421875, 0.0187530517578125, -0.01030731201171875, -0.0184326171875, 0.005218505859375, -0.003326416015625, 0.040496826171875, 0.0092315673828125, 0.003955841064453125, -0.0164794921875, 0.058380126953125, -0.037567138671875, -0.0341796875, -0.036651611328125, 0.02947998046875, -0.033172607421875, -0.01265716552734375, -0.06103515625, -0.070556640625, 0.0100250244140625, -0.05352783203125, -0.00830078125, 0.0201263427734375, 0.01270294189453125, -0.00412750244140625, -0.0029392242431640625, 0.00949859619140625, 0.0186004638671875, 0.005611419677734375, 0.022918701171875, 0.007350921630859375, 0.0200653076171875, 0.024566650390625, 0.033416748046875, -0.0223236083984375, -0.034576416015625, 0.08746337890625, -0.025970458984375, -0.07037353515625, 0.037353515625, -0.0008168220520019531, 0.034576416015625, 0.0148468017578125, -0.0121002197265625, 0.09136962890625, 0.007625579833984375, -0.01641845703125, 0.0164794921875, -0.040283203125, -0.0117645263671875, 0.006710052490234375, 0.045623779296875, -0.0306854248046875, -0.01415252685546875, 0.02349853515625, 0.012420654296875, -0.024566650390625, -0.0090484619140625, -0.05230712890625, -0.0197601318359375, -0.0093231201171875, 0.0323486328125, 0.034912109375, 0.0182342529296875, -0.0178375244140625, 0.0095367431640625, 0.0178680419921875, -0.06500244140625, -0.0345458984375, 0.01947021484375, -0.033416748046875, 0.0262908935546875, 0.01934814453125, 0.0269622802734375, -0.006626129150390625, 0.0011539459228515625, 0.004688262939453125, -0.043701171875, -0.00616455078125, -0.03692626953125, -0.0002968311309814453, -0.017669677734375, -0.042388916015625, -0.003948211669921875, 0.0010013580322265625, 0.035919189453125, -0.0092620849609375, 0.0266265869140625, 0.0300445556640625, 0.0160369873046875, 0.04156494140625, -0.08404541015625, 0.01445770263671875, 0.01190948486328125, 0.027557373046875, 0.0084381103515625, -0.0138092041015625, -0.0256500244140625, -0.01517486572265625, -0.0863037109375, 0.0070648193359375, -0.0162200927734375, -0.0221099853515625, -0.0139312744140625, -0.020660400390625, 0.0017375946044921875, 0.046783447265625, -0.0196380615234375, -0.00513458251953125, 0.04669189453125, -0.007434844970703125, -0.0609130859375, 0.0330810546875, -0.01666259765625, 0.04241943359375, 0.006656646728515625, -0.0450439453125, 0.04095458984375, -0.008544921875, -0.03594970703125, -0.003543853759765625, -0.004383087158203125, 0.0037441253662109375, -0.0226898193359375, 0.0101318359375, -0.049835205078125, -0.01165008544921875, 0.048065185546875, 0.06610107421875, 0.0100860595703125, -0.0565185546875, -0.0187835693359375, 0.0214996337890625, 0.045654296875, -0.07330322265625, -0.0679931640625, -0.021026611328125, -0.01316070556640625, -0.00017905235290527344, -0.046600341796875, 0.034210205078125, -0.0423583984375, -0.037078857421875, -0.006824493408203125, 0.0285491943359375, 0.0160675048828125, -0.003520965576171875, -0.0155181884765625, 0.0152587890625, -0.006092071533203125, 0.0139312744140625, -0.051971435546875, 0.034637451171875, -0.045379638671875, 0.057037353515625, 0.0797119140625, -0.0026035308837890625, 0.0142822265625, -0.022064208984375, 0.00811767578125, 0.006439208984375, -0.022857666015625, -0.05169677734375, 0.00870513916015625, -0.08880615234375, -0.02630615234375, -0.010498046875, 0.0070648193359375, -0.0306854248046875, -0.0526123046875, -0.006618499755859375, -0.0243988037109375, -0.04400634765625, -0.0035800933837890625, -0.032379150390625, 0.0014886856079101562, 0.0709228515625, -0.01157379150390625, 0.032806396484375, -0.03704833984375, -0.00019502639770507812, 0.01435089111328125, -0.0155487060546875, -0.0210723876953125, -0.057098388671875, -0.05780029296875, -0.06048583984375, 0.0260162353515625, 0.0007185935974121094, -0.002254486083984375, 0.01467132568359375, 0.034027099609375, 0.017181396484375, -0.0237884521484375, 0.0335693359375, -0.0274658203125, -0.00732421875, 0.00855255126953125, -0.0261077880859375, 0.018035888671875, 0.001953125, 0.0031185150146484375, -0.0372314453125, 0.014892578125, 0.006809234619140625, -0.0168914794921875, 0.032501220703125, 0.0129241943359375, 0.04766845703125, 0.021575927734375, -0.03778076171875, -0.0034275054931640625, -0.0088958740234375, -0.051788330078125, -0.0038623809814453125, -0.01036834716796875, -0.0267333984375, 0.01617431640625, -0.00704193115234375, 0.00653076171875, 0.014801025390625, 0.006885528564453125, 0.00586700439453125, -0.007495880126953125, 0.0009350776672363281, -0.0305023193359375, 0.0396728515625, -0.01099395751953125, 0.0124359130859375, 0.00032639503479003906, 0.0240478515625, -0.017425537109375, -0.027679443359375, -0.01568603515625, -0.0023517608642578125, -0.00589752197265625, 0.00589752197265625, -0.0013551712036132812, -0.017547607421875, 0.0101318359375, -0.062255859375, -0.018035888671875, -0.0207672119140625, 0.0262298583984375, -0.006778717041015625, 0.02374267578125, -0.0233612060546875, -0.018310546875, -0.0321044921875, 0.015625, -0.045745849609375, -0.04949951171875, -0.01483917236328125, 0.0024261474609375, -0.04608154296875, 0.0045013427734375, 0.0025119781494140625, -0.04156494140625, 0.015594482421875, -0.07159423828125, -0.029754638671875, -0.03668212890625, 0.0036334991455078125, 0.012908935546875, -0.00323486328125, 0.010345458984375, -0.014495849609375, -0.0189971923828125, 0.0130767822265625, -0.0183868408203125, -0.0218963623046875, 0.0034542083740234375, -0.0250244140625, 0.01091766357421875, 0.0036563873291015625, 0.0229949951171875, -0.042266845703125, 0.00989532470703125, 0.0229949951171875, -0.01458740234375, 0.00547027587890625, -0.0217742919921875, -0.00836181640625, 0.038726806640625, 0.01371002197265625, -0.0025691986083984375, 0.0063018798828125, 0.022216796875, -0.043975830078125, -0.00542449951171875, -0.018829345703125, -0.0294342041015625, 0.048858642578125, -0.06768798828125, -0.00859832763671875, -0.0311737060546875, -0.01041412353515625, 0.006099700927734375, 0.00554656982421875, -0.017852783203125, -0.028564453125, 0.01023101806640625, 0.029510498046875, -0.0211334228515625, -0.01153564453125, 0.007663726806640625, 0.076416015625, 0.0312347412109375, 0.010406494140625, 0.0070343017578125, -0.0040435791015625, 0.0128936767578125, 0.024078369140625, 0.032684326171875, -0.0022792816162109375, -0.0061798095703125, 0.046356201171875, 0.0023746490478515625, 0.011932373046875, 0.0241851806640625, 0.0297393798828125, 0.0109710693359375, -0.03741455078125, 0.027557373046875, 0.007160186767578125, -0.037078857421875, 0.0196380615234375, 0.00196075439453125, -0.02203369140625, -0.018463134765625, 0.050994873046875, -0.0077667236328125, 0.0218353271484375, -0.04315185546875, -0.021697998046875, 0.023590087890625, -0.041656494140625, 0.012115478515625, 0.0185546875, -0.0037994384765625, -0.01922607421875, -0.01947021484375, 0.004192352294921875, -0.008636474609375, 0.02874755859375, -0.0546875, 0.027374267578125, 0.01540374755859375, -0.0299835205078125, 0.0038299560546875, -0.01522064208984375, 0.0968017578125, -0.0275726318359375, -0.046630859375, 0.005123138427734375, -0.0357666015625, 0.01010894775390625, 0.046722412109375, 0.01261138916015625, 0.0570068359375, 0.044830322265625, -0.0146484375, -0.026031494140625, -0.006317138671875, 0.0222320556640625, -0.058197021484375, 0.002925872802734375, 0.0262451171875, -0.0240936279296875, 0.034454345703125, 0.0180206298828125, 0.03778076171875, -0.000904083251953125, -0.0180511474609375, 0.050323486328125, 0.06640625, -0.024017333984375, 0.0168914794921875, 0.027740478515625, -0.01385498046875, -0.0489501953125, -0.0065155029296875, -0.040924072265625, 0.001995086669921875, 0.046966552734375, 0.03363037109375, 0.031341552734375, -0.0202789306640625, -0.027435302734375, -0.00946807861328125, -0.01324462890625, 0.06732177734375, 0.01197052001953125, -0.064453125, -0.039337158203125, -0.0026569366455078125, 0.038970947265625, -0.041534423828125, -0.009521484375, -0.036834716796875, -0.01348114013671875, -0.045379638671875, 0.0298309326171875, -0.09771728515625, 0.0251922607421875, 0.05816650390625, 0.0160369873046875, -0.038330078125, -0.0175933837890625, 0.001377105712890625, 0.0462646484375, -0.0462646484375, -0.019744873046875, 0.027984619140625, -0.0206451416015625, 0.033935546875, -0.04095458984375, 0.0145263671875, -0.03875732421875, 0.0107269287109375, 0.0198974609375, 0.018768310546875, -0.07513427734375, 0.0162811279296875, -0.034637451171875, -0.03192138671875, -0.050628662109375, -0.04656982421875, -0.0643310546875, 0.01114654541015625, 0.034942626953125, 0.0220184326171875, -0.0148162841796875, -0.033905029296875, 0.006671905517578125, 0.01947021484375, 0.018341064453125, 0.07257080078125, -0.0160675048828125, 0.0022792816162109375, 0.0261383056640625, 0.031707763671875, 0.0207977294921875, -0.00395965576171875, -0.0037708282470703125, -0.03167724609375, 0.0219268798828125, -0.017425537109375, -0.04541015625, 0.002964019775390625, -0.05047607421875, -0.0218048095703125, 0.032928466796875, -0.0177001953125, -0.008148193359375, 0.0228729248046875, 0.006702423095703125, -0.024505615234375, 0.0076904296875, 0.042205810546875, 0.044219970703125, -0.025390625, -0.050079345703125, -0.0208282470703125, -0.01287078857421875, -0.0025691986083984375, 0.010772705078125, -0.036346435546875, -0.001918792724609375, 0.0487060546875, -0.038482666015625, 0.046539306640625, 0.07098388671875, 0.0247344970703125, 0.050506591796875, 0.00887298583984375, 0.0279541015625, -0.00516510009765625, 0.035064697265625, -0.00577545166015625, -0.03143310546875, 0.03765869140625, 0.00798797607421875, -0.0195770263671875, 0.02294921875, -0.01422119140625, -0.0006556510925292969, 0.0178070068359375, 0.02667236328125, -0.060791015625, 0.02685546875, 0.0125579833984375, 0.024810791015625, 0.0253753662109375, -0.025665283203125, 0.029754638671875, -0.005100250244140625, 0.0338134765625, 0.036346435546875, -0.0072479248046875, 0.0146026611328125, -0.006084442138671875, -0.002574920654296875, 0.009735107421875, 0.0270538330078125, 0.011077880859375, -0.033477783203125, -0.0239715576171875, 0.03173828125, -0.0034656524658203125, -0.01535797119140625, -0.005718231201171875, 0.0208282470703125, -0.0144500732421875, -0.03436279296875, 0.0286102294921875, -0.029296875, -0.011688232421875, 0.0312042236328125, -0.00887298583984375, 0.020233154296875, 0.040802001953125, -0.005031585693359375, -0.0037975311279296875, 0.01178741455078125, -0.000014424324035644531, 0.0004093647003173828, -0.011016845703125, -0.003314971923828125, 0.005588531494140625, 0.0110321044921875, 0.01442718505859375, 0.00414276123046875, -0.039398193359375, -0.0016431808471679688, -0.0223236083984375, 0.061614990234375, 0.01049041748046875, -0.037567138671875, 0.036285400390625, -0.04107666015625, -0.025634765625, -0.03948974609375, 0.01180267333984375, -0.061767578125, -0.009552001953125, -0.02740478515625, -0.0099334716796875, 0.01715087890625, -0.036041259765625, -0.0254974365234375, 0.0924072265625, 0.00658416748046875, 0.01544189453125, 0.0198516845703125, 0.045196533203125, -0.0144500732421875, 0.03814697265625, -0.044464111328125, 0.061737060546875, -0.0140228271484375, 0.0298309326171875, -0.020538330078125, 0.0256805419921875, 0.0108795166015625, -0.0290985107421875, -0.017181396484375, 0.007129669189453125, -0.0113525390625, -0.010528564453125, -0.012939453125, -0.0135650634765625, -0.0122528076171875, 0.0374755859375, -0.011138916015625, 0.00036406517028808594, 0.0259552001953125, -0.0207366943359375, 0.0263519287109375, -0.0235748291015625, 0.006877899169921875, 0.010009765625, 0.005886077880859375, 0.015625, 0.005588531494140625, 0.006473541259765625, -0.034942626953125, 0.0017957687377929688, 0.0195465087890625, -0.0120086669921875, -0.00844573974609375, 0.0247802734375, -0.024566650390625, 0.043792724609375, 0.040252685546875, -0.0250244140625, 0.043060302734375, -0.0084991455078125, 0.0032939910888671875, 0.026275634765625, 0.019195556640625, 0.011260986328125, -0.010711669921875, 0.005626678466796875, 0.0275115966796875, -0.0228118896484375, -0.0057373046875, 0.004215240478515625, 0.02374267578125, -0.026214599609375, -0.0203399658203125, 0.01117706298828125, 0.0181884765625, 0.003040313720703125, -0.08990478515625, 0.005573272705078125, 0.0140533447265625, 0.034423828125, 0.0565185546875, 0.074951171875, -0.00811767578125, 0.042388916015625, -0.015533447265625, 0.00846099853515625, 0.03326416015625, 0.04071044921875, 0.0200042724609375, 0.0211944580078125, -0.08001708984375, -0.0182952880859375, -0.039093017578125, 0.0023899078369140625, 0.0247039794921875, 0.037933349609375, -0.0055389404296875, 0.04632568359375, 0.01030731201171875, -0.00734710693359375, -0.003978729248046875, 0.0662841796875, -0.01030731201171875, 0.0010805130004882812, -0.043914794921875, -0.08990478515625, 0.036407470703125, 0.025970458984375, 0.01061248779296875, 0.042022705078125, 0.05584716796875, 0.05535888671875, 0.0013561248779296875, 0.01580810546875, 0.06427001953125, -0.014739990234375, 0.010101318359375, -0.054779052734375, -0.0092315673828125, -0.0216064453125, -0.023193359375, 0.023895263671875, -0.02294921875, 0.0185546875, -0.001857757568359375, 0.03143310546875, 0.00926971435546875, 0.007633209228515625, 0.00850677490234375, 0.0192413330078125, -0.008575439453125, 0.029541015625, -0.038543701171875, -0.022064208984375, -0.04669189453125, -0.0152130126953125, 0.031463623046875, 0.03485107421875, 0.00466156005859375, 0.022857666015625, -0.0030117034912109375, 0.01334381103515625, 0.023101806640625, -0.0347900390625, -0.00801849365234375, 0.032806396484375, 0.04522705078125, 0.00893402099609375, 0.01262664794921875, 0.01126861572265625, -0.000438690185546875, 0.02264404296875, 0.00452423095703125, 0.09857177734375, -0.038299560546875, 0.0104522705078125, 0.0638427734375, -0.0250396728515625, 0.033172607421875, 0.06787109375, -0.085693359375, -0.0128631591796875, -0.0015935897827148438, -0.00911712646484375, -0.03466796875, 0.034881591796875, 0.04345703125, -0.0031375885009765625, 0.0364990234375, 0.00794219970703125, -0.0002079010009765625, -0.03472900390625, 0.0017852783203125, -0.0416259765625, -0.08551025390625, -0.06927490234375, 0.0193023681640625, -0.001277923583984375, 0.046661376953125, -0.0194091796875, 0.037628173828125, -0.0018186569213867188, -0.0023956298828125, 0.00832366943359375, -0.018402099609375, -0.03363037109375, 0.016693115234375, 0.01447296142578125, 0.0008554458618164062, 0.02301025390625, -0.01215362548828125, -0.0120849609375, 0.0328369140625, -0.0019626617431640625, 0.0017337799072265625, -0.0140533447265625, -0.0271148681640625, 0.005237579345703125, -0.014801025390625, -0.055938720703125, -0.007221221923828125, 0.0494384765625, -0.01654052734375, -0.01560211181640625, -0.046173095703125, -0.0254058837890625, -0.071044921875, 0.00531005859375, 0.0267486572265625, -0.035552978515625, 0.01103973388671875, 0.004489898681640625, 0.0462646484375, 0.032440185546875, -0.01259613037109375, -0.04730224609375, 0.0164794921875, -0.0648193359375, 0.0787353515625, -0.0132598876953125, 0.006526947021484375, -0.027191162109375, -0.0347900390625, -0.03125, 0.01043701171875, -0.039398193359375, 0.032806396484375, 0.014862060546875, 0.01317596435546875, 0.027862548828125, -0.010589599609375, -0.0380859375, 0.0174560546875, 0.0169830322265625, 0.056304931640625, -0.025177001953125, -0.0286865234375, 0.0006866455078125, -0.02667236328125, 0.012939453125, -0.01303863525390625, 0.0015859603881835938, -0.07049560546875, -0.0423583984375, -0.04254150390625, 0.0182647705078125, 0.0101470947265625, -0.04913330078125, -0.040069580078125, 0.0190887451171875, -0.0022144317626953125, -0.02392578125, -0.0531005859375, -0.0111846923828125, 0.010955810546875, 0.002452850341796875, -0.0211029052734375, -0.01212310791015625, -0.0421142578125, 0.0316162109375, 0.006580352783203125, 0.025299072265625, 0.0006680488586425781, 0.003620147705078125, 0.0394287109375, 0.051422119140625, 0.049591064453125, -0.0285797119140625, -0.02490234375, -0.00499725341796875, 0.032928466796875, 0.016845703125, -0.02056884765625, 0.037689208984375, 0.04217529296875, 0.03265380859375, -0.03289794921875, -0.0350341796875, 0.0340576171875, 0.035675048828125, 0.041748046875, 0.0465087890625, -0.005146026611328125, -0.06732177734375, -0.042999267578125, -0.05755615234375, 0.0039215087890625, -0.005523681640625, 0.00980377197265625, -0.0601806640625, 0.0208587646484375, 0.011474609375, -0.01557159423828125, 0.001934051513671875, 0.006732940673828125, -0.0241546630859375, 0.00955963134765625, 0.042724609375, -0.01039886474609375, -0.0150909423828125, -0.05621337890625, -0.00832366943359375, -0.0016736984252929688, -0.0165557861328125, -0.01351165771484375, 0.03619384765625, -0.035064697265625, 0.03692626953125, -0.006526947021484375, 0.0421142578125, -0.04473876953125, 0.0081787109375, 0.019012451171875, 0.0222930908203125, -0.02264404296875, -0.0024013519287109375, -0.010162353515625, 0.0239410400390625, 0.000514984130859375, 0.017791748046875, -0.01097869873046875, -0.0009603500366210938, 0.0084075927734375, 0.021942138671875, 0.007843017578125, -0.0008668899536132812, -0.010589599609375, 0.041534423828125, 0.0048675537109375, -0.031646728515625, 0.02630615234375, -0.0311737060546875, -0.013885498046875, 0.0147552490234375, 0.013702392578125, -0.061370849609375, 0.04119873046875, -0.060150146484375, 0.023529052734375, 0.0213623046875 ]
94075757c08c19adcb7157c7ef5c0a4c7878d5e9
Wordpress Stackexchange Q: Remove "Insert from URL" link in Media upload - WP 3.5 How do I remove the Insert from URL link in the new Wordpress 3.5 Add Media popup page? In earlier versions of Wordpress, this worked fine: // removes URL tab in image upload for post function remove_media_library_tab($tabs) { if (isset($_REQUEST['post_id'])) { $post_type = get_post_type($_REQUEST['post_id']); if ('premium' == $post_type) unset($tabs['library']); unset($tabs['type_url']); } return $tabs; } add_filter('media_upload_tabs', 'remove_media_library_tab'); Who knows? A: This should work: add_filter( 'media_view_strings', 'cor_media_view_strings' ); /** * Removes the media 'From URL' string. * * @see wp-includes|media.php */ function cor_media_view_strings( $strings ) { unset( $strings['insertFromUrlTitle'] ); return $strings; }
Q: Remove "Insert from URL" link in Media upload - WP 3.5 How do I remove the Insert from URL link in the new Wordpress 3.5 Add Media popup page? In earlier versions of Wordpress, this worked fine: // removes URL tab in image upload for post function remove_media_library_tab($tabs) { if (isset($_REQUEST['post_id'])) { $post_type = get_post_type($_REQUEST['post_id']); if ('premium' == $post_type) unset($tabs['library']); unset($tabs['type_url']); } return $tabs; } add_filter('media_upload_tabs', 'remove_media_library_tab'); Who knows? A: This should work: add_filter( 'media_view_strings', 'cor_media_view_strings' ); /** * Removes the media 'From URL' string. * * @see wp-includes|media.php */ function cor_media_view_strings( $strings ) { unset( $strings['insertFromUrlTitle'] ); return $strings; } A: The code of default tabs array in new WP is in media.php and looks like this: /** * Defines the default media upload tabs * * @since 2.5.0 * * @return array default tabs */ function media_upload_tabs() { $_default_tabs = array( 'type' => __('From Computer'), // handler action suffix => tab text 'type_url' => __('From URL'), 'gallery' => __('Gallery'), 'library' => __('Media Library') ); return apply_filters('media_upload_tabs', $_default_tabs); } If you want only remove upload from url by default you shoud change your function to: // removes URL tab in image upload for post function remove_media_library_tab($tabs) { unset($tabs['type_url']); return $tabs; } add_filter('media_upload_tabs', 'remove_media_library_tab'); Not tested but it should work fine. Edit: Not work because this array is used in other place. If you want just remove the link you can use this work around: function remove_media_library_tab(){ ?> <style> .media-menu a:last-child{ display:none} </style> <?php } add_action('admin_head', 'remove_media_library_tab');
wordpress
{ "language": "en", "length": 248, "provenance": "stackexchange_00019.jsonl.gz:426830", "question_score": "7", "source": "stackexchange", "timestamp": "2023-03-29", "url": "https://wordpress.stackexchange.com/questions/76212" }
[ 0.1107177734375, 0.01340484619140625, 0.02325439453125, -0.01393890380859375, 0.04925537109375, -0.0528564453125, 0.09893798828125, -0.057769775390625, 0.0022602081298828125, 0.033477783203125, 0.049468994140625, -0.0263519287109375, 0.0192108154296875, -0.05584716796875, -0.00020611286163330078, 0.0030498504638671875, 0.003940582275390625, -0.0018930435180664062, 0.01227569580078125, -0.01155853271484375, 0.011505126953125, -0.0278778076171875, 0.0254364013671875, -0.00327301025390625, -0.0068511962890625, 0.059600830078125, 0.01287841796875, -0.0145111083984375, -0.018096923828125, -0.013458251953125, 0.004802703857421875, 0.002590179443359375, -0.003719329833984375, 0.053070068359375, -0.047454833984375, 0.00026917457580566406, 0.034332275390625, 0.008544921875, 0.0255889892578125, 0.00719451904296875, 0.01904296875, -0.0088653564453125, -0.02362060546875, -0.025360107421875, -0.0225067138671875, -0.004421234130859375, 0.0117645263671875, -0.01593017578125, 0.025787353515625, 0.02337646484375, 0.006305694580078125, -0.01023101806640625, 0.0029144287109375, -0.0158538818359375, -0.0197296142578125, -0.00499725341796875, -0.0168914794921875, 0.0323486328125, 0.00691986083984375, 0.030181884765625, 0.0004551410675048828, 0.0384521484375, -0.0235748291015625, -0.0194854736328125, -0.019317626953125, -0.01450347900390625, 0.02752685546875, 0.036834716796875, -0.080810546875, -0.050537109375, 0.03753662109375, -0.0125732421875, 0.006191253662109375, -0.0215301513671875, -0.0238494873046875, 0.03900146484375, 0.0175018310546875, 0.01372528076171875, 0.01812744140625, -0.024993896484375, 0.0201568603515625, -0.00727081298828125, -0.012603759765625, -0.031036376953125, 0.0650634765625, 0.01282501220703125, 0.004581451416015625, -0.0245208740234375, -0.0133209228515625, 0.0237274169921875, -0.022613525390625, -0.007236480712890625, 0.0299224853515625, 0.009002685546875, -0.0418701171875, 0.01195526123046875, 0.045623779296875, 0.048248291015625, -0.0015716552734375, 0.0018978118896484375, 0.003520965576171875, -0.044097900390625, 0.01509857177734375, -0.0278167724609375, 0.006839752197265625, -0.0024623870849609375, -0.0218353271484375, -0.04595947265625, 0.02825927734375, 0.027587890625, -0.0131378173828125, 0.01751708984375, 0.007801055908203125, 0.01482391357421875, -0.01059722900390625, -0.0000776052474975586, -0.01155853271484375, 0.01096343994140625, -0.0286407470703125, 0.0246429443359375, -0.0184783935546875, 0.0225677490234375, -0.07391357421875, 0.006103515625, 0.02471923828125, 0.004161834716796875, 0.00795745849609375, 0.031646728515625, -0.052459716796875, -0.0018453598022460938, -0.0469970703125, 0.0362548828125, 0.12359619140625, 0.034698486328125, 0.00203704833984375, -0.0260772705078125, 0.01230621337890625, 0.00945281982421875, -0.0030879974365234375, 0.0307464599609375, -0.00897979736328125, -0.052520751953125, -0.0031070709228515625, 0.00711822509765625, -0.005512237548828125, 0.033599853515625, 0.0021686553955078125, 0.00533294677734375, 0.024688720703125, -0.051544189453125, -0.01428985595703125, -0.01763916015625, 0.061767578125, 0.006134033203125, -0.043609619140625, -0.044342041015625, 0.053253173828125, -0.053924560546875, -0.00853729248046875, -0.0760498046875, 0.0152435302734375, -0.004238128662109375, 0.001811981201171875, -0.0307159423828125, -0.0309295654296875, -0.011444091796875, -0.04791259765625, -0.0017528533935546875, 0.0229034423828125, 0.07318115234375, -0.03179931640625, -0.04547119140625, -0.034210205078125, 0.0256500244140625, -0.004543304443359375, 0.02398681640625, 0.04339599609375, 0.0257568359375, -0.0007071495056152344, 0.061859130859375, -0.010894775390625, -0.0458984375, 0.08441162109375, -0.06622314453125, -0.0596923828125, 0.0435791015625, 0.0187530517578125, 0.052276611328125, -0.0055389404296875, 0.0113372802734375, 0.061798095703125, 0.048919677734375, 0.0192108154296875, -0.0252227783203125, 0.0257415771484375, -0.02874755859375, -0.01282501220703125, -0.006008148193359375, -0.019866943359375, 0.014739990234375, -0.007373809814453125, 0.073974609375, -0.0102081298828125, 0.042999267578125, -0.01358795166015625, 0.04864501953125, -0.01294708251953125, 0.045562744140625, -0.037261962890625, 0.030303955078125, 0.0377197265625, 0.0249786376953125, -0.05810546875, 0.01528167724609375, 0.01221466064453125, 0.00350189208984375, -0.0163116455078125, 0.03192138671875, -0.020599365234375, 0.04864501953125, -0.04669189453125, 0.0044097900390625, -0.03350830078125, -0.0222930908203125, 0.023681640625, -0.0236663818359375, -0.022186279296875, -0.032928466796875, 0.01526641845703125, -0.010986328125, -0.0277099609375, 0.056915283203125, 0.051239013671875, 0.0157318115234375, -0.04241943359375, 0.00493621826171875, -0.01314544677734375, -0.057464599609375, -0.020782470703125, 0.06201171875, 0.032806396484375, -0.0015897750854492188, -0.0209197998046875, -0.022857666015625, 0.0142059326171875, -0.01861572265625, 0.022308349609375, -0.03497314453125, 0.02923583984375, 0.0648193359375, -0.0097503662109375, 0.00548553466796875, -0.002513885498046875, -0.050079345703125, 0.0168914794921875, 0.015655517578125, -0.016510009765625, -0.0194244384765625, 0.01763916015625, 0.004734039306640625, 0.0013551712036132812, -0.0064697265625, -0.01033782958984375, -0.022857666015625, 0.0065765380859375, 0.04498291015625, 0.0333251953125, 0.052490234375, -0.0286712646484375, 0.01425933837890625, 0.01042938232421875, 0.01050567626953125, -0.0239715576171875, 0.036163330078125, 0.06298828125, -0.000006794929504394531, -0.038543701171875, 0.005611419677734375, -0.0285186767578125, 0.016387939453125, -0.0216522216796875, 0.00392913818359375, 0.028778076171875, -0.007663726806640625, -0.0184783935546875, -0.042694091796875, 0.035430908203125, -0.0158538818359375, 0.006076812744140625, -0.024017333984375, 0.022003173828125, -0.006847381591796875, -0.00753021240234375, 0.010833740234375, 0.0166473388671875, -0.043212890625, -0.01015472412109375, -0.0235595703125, 0.0288848876953125, -0.0279693603515625, 0.07366943359375, 0.061370849609375, -0.019866943359375, 0.01407623291015625, 0.01126861572265625, -0.03729248046875, -0.024169921875, 0.01355743408203125, -0.01233673095703125, 0.009613037109375, -0.08221435546875, 0.01453399658203125, 0.0013790130615234375, -0.081298828125, -0.0043182373046875, -0.0018053054809570312, -0.0325927734375, -0.048583984375, -0.07720947265625, -0.0223388671875, -0.0007796287536621094, -0.04339599609375, -0.0379638671875, 0.03350830078125, -0.040313720703125, -0.0022430419921875, 0.07586669921875, -0.00270843505859375, 0.0280303955078125, -0.007259368896484375, -0.033538818359375, 0.0009360313415527344, -0.0186920166015625, 0.0049591064453125, -0.0033893585205078125, -0.01062774658203125, 0.004169464111328125, 0.07501220703125, 0.02685546875, -0.0016126632690429688, 0.048065185546875, -0.0188140869140625, -0.01374053955078125, 0.0082244873046875, 0.0220947265625, -0.03631591796875, -0.0130462646484375, -0.0084381103515625, 0.038909912109375, 0.0296783447265625, -0.0233154296875, 0.0100250244140625, 0.01491546630859375, -0.0154571533203125, 0.00572967529296875, 0.053375244140625, 0.0029621124267578125, -0.036590576171875, 0.003467559814453125, -0.061370849609375, 0.002925872802734375, 0.0008220672607421875, -0.01519012451171875, 0.0193328857421875, -0.011138916015625, -0.0230560302734375, 0.0144805908203125, 0.0177459716796875, 0.0031986236572265625, -0.00429534912109375, 0.0018596649169921875, -0.0279541015625, 0.037628173828125, -0.0036296844482421875, 0.017822265625, -0.02545166015625, 0.06488037109375, -0.0035762786865234375, -0.0189666748046875, 0.027008056640625, 0.017181396484375, 0.02056884765625, -0.041351318359375, -0.0232086181640625, 0.016448974609375, 0.0252532958984375, -0.0298919677734375, 0.04071044921875, -0.04083251953125, -0.0169677734375, -0.032928466796875, 0.042449951171875, -0.05108642578125, -0.0112152099609375, -0.01157379150390625, 0.0200653076171875, -0.0015039443969726562, -0.07159423828125, -0.024383544921875, -0.01354217529296875, 0.004978179931640625, 0.0084075927734375, 0.0008969306945800781, 0.0102386474609375, -0.0477294921875, 0.0274810791015625, -0.005496978759765625, -0.004791259765625, 0.0498046875, -0.016143798828125, -0.012115478515625, 0.039520263671875, -0.0204925537109375, 0.006786346435546875, -0.061248779296875, 0.01367950439453125, -0.0826416015625, -0.01213836669921875, 0.00299835205078125, 0.045074462890625, -0.0081634521484375, -0.0338134765625, -0.038116455078125, 0.028717041015625, 0.025665283203125, 0.0171966552734375, 0.0105743408203125, -0.025299072265625, 0.014373779296875, 0.01145172119140625, 0.01776123046875, -0.0006837844848632812, -0.003726959228515625, -0.0450439453125, -0.06805419921875, -0.025543212890625, -0.0143890380859375, 0.054107666015625, 0.0052490234375, -0.0088653564453125, -0.0340576171875, -0.031463623046875, 0.00464630126953125, 0.01045989990234375, 0.0372314453125, -0.033416748046875, -0.022003173828125, -0.040191650390625, 0.0259552001953125, 0.001079559326171875, -0.00785064697265625, 0.004535675048828125, 0.05242919921875, 0.0117340087890625, -0.00415802001953125, -0.0254669189453125, 0.0155181884765625, 0.0275115966796875, 0.01001739501953125, 0.0231170654296875, 0.0100860595703125, -0.003406524658203125, -0.01522064208984375, -0.01543426513671875, 0.016082763671875, -0.0094757080078125, 0.0168304443359375, 0.0136260986328125, -0.017852783203125, 0.0184173583984375, 0.01934814453125, -0.00640869140625, -0.01959228515625, -0.007259368896484375, 0.00036215782165527344, 0.00673675537109375, 0.0211029052734375, 0.019073486328125, 0.0011386871337890625, -0.029571533203125, -0.0728759765625, 0.02069091796875, -0.000823974609375, 0.013641357421875, 0.00954437255859375, -0.002956390380859375, 0.046173095703125, 0.00568389892578125, 0.0004911422729492188, 0.0115966796875, 0.05950927734375, -0.057708740234375, 0.04876708984375, -0.0280609130859375, -0.04962158203125, -0.020965576171875, 0.00982666015625, -0.010101318359375, 0.00032830238342285156, -0.004856109619140625, -0.07855224609375, 0.007305145263671875, 0.0257568359375, 0.0030460357666015625, 0.019195556640625, 0.0160369873046875, 0.017791748046875, 0.032135009765625, -0.004131317138671875, -0.01151275634765625, 0.032012939453125, -0.022003173828125, 0.0234222412109375, 0.0024967193603515625, 0.00042939186096191406, 0.017730712890625, 0.00959014892578125, -0.020477294921875, 0.006420135498046875, 0.0025634765625, 0.0087432861328125, 0.001438140869140625, 0.006317138671875, 0.00969696044921875, 0.03594970703125, 0.002254486083984375, -0.0014810562133789062, 0.047271728515625, -0.041046142578125, 0.01739501953125, 0.03662109375, 0.0259246826171875, 0.0020999908447265625, -0.046356201171875, 0.00017261505126953125, -0.051055908203125, -0.018035888671875, 0.033477783203125, -0.011810302734375, -0.043914794921875, -0.035797119140625, 0.0027866363525390625, 0.0222625732421875, -0.01953125, 0.017181396484375, 0.00882720947265625, 0.007534027099609375, -0.010894775390625, 0.0621337890625, -0.04388427734375, -0.01910400390625, -0.0095672607421875, 0.041778564453125, -0.0231475830078125, -0.0272369384765625, 0.01052093505859375, 0.007366180419921875, -0.02996826171875, 0.0010223388671875, 0.058746337890625, -0.0064544677734375, 0.0229034423828125, -0.0224151611328125, -0.008026123046875, -0.0228424072265625, 0.01311492919921875, 0.01800537109375, -0.0026721954345703125, 0.0198974609375, -0.023681640625, -0.03216552734375, -0.0440673828125, -0.0182952880859375, 0.0011138916015625, -0.020355224609375, 0.006580352783203125, -0.0031147003173828125, 0.01476287841796875, -0.0352783203125, -0.0276641845703125, 0.0157012939453125, 0.0254974365234375, 0.00623321533203125, 0.01519775390625, 0.0298919677734375, 0.0029773712158203125, 0.029510498046875, 0.0185394287109375, 0.04046630859375, 0.0164031982421875, -0.0186004638671875, -0.052581787109375, -0.01433563232421875, -0.054656982421875, -0.01088714599609375, 0.008880615234375, -0.0311279296875, 0.0570068359375, 0.05413818359375, 0.0032444000244140625, 0.002643585205078125, -0.01561737060546875, 0.0007348060607910156, -0.0221405029296875, 0.021820068359375, -0.0161285400390625, -0.005947113037109375, -0.01174163818359375, -0.0139617919921875, 0.048980712890625, 0.002834320068359375, 0.0232696533203125, -0.004413604736328125, -0.0310211181640625, 0.01605224609375, 0.0055084228515625, 0.00788116455078125, 0.007358551025390625, 0.078125, 0.009246826171875, 0.06842041015625, 0.03033447265625, 0.021759033203125, 0.04425048828125, 0.007472991943359375, 0.00995635986328125, -0.031890869140625, 0.05242919921875, 0.01485443115234375, -0.00826263427734375, 0.0494384765625, -0.02056884765625, 0.05126953125, 0.03485107421875, 0.061065673828125, -0.032379150390625, -0.00336456298828125, 0.007205963134765625, -0.057586669921875, 0.0469970703125, 0.0016345977783203125, 0.015777587890625, -0.0072174072265625, -0.005962371826171875, -0.01125335693359375, -0.034271240234375, -0.0187530517578125, -0.0079345703125, 0.002532958984375, 0.005352020263671875, 0.043212890625, 0.00753021240234375, -0.00675201416015625, -0.0628662109375, -0.0038509368896484375, -0.0399169921875, -0.017608642578125, 0.01373291015625, 0.00200653076171875, -0.0023708343505859375, -0.064453125, -0.0004382133483886719, -0.013397216796875, -0.006801605224609375, 0.034271240234375, 0.016387939453125, 0.05889892578125, 0.06402587890625, -0.0032558441162109375, 0.00852203369140625, 0.036865234375, -0.0183868408203125, 0.044189453125, 0.0036754608154296875, 0.006496429443359375, 0.0050506591796875, -0.0257720947265625, 0.0016155242919921875, -0.0237884521484375, -0.004245758056640625, 0.022705078125, 0.051055908203125, 0.0501708984375, -0.068359375, -0.00858306884765625, 0.039215087890625, -0.043365478515625, -0.0006227493286132812, -0.0323486328125, 0.054229736328125, -0.034454345703125, -0.02288818359375, -0.0016546249389648438, -0.040130615234375, -0.032501220703125, -0.05438232421875, -0.08831787109375, 0.1357421875, -0.007678985595703125, 0.09503173828125, 0.0134429931640625, 0.029754638671875, -0.0297393798828125, 0.004001617431640625, -0.01495361328125, 0.033782958984375, 0.0235137939453125, 0.010223388671875, -0.0221099853515625, -0.0197601318359375, -0.0025653839111328125, 0.03668212890625, 0.04803466796875, -0.00006097555160522461, 0.0054473876953125, -0.0289154052734375, 0.031890869140625, 0.057861328125, 0.0067596435546875, -0.01477813720703125, 0.0013952255249023438, 0.0136260986328125, 0.05279541015625, -0.05010986328125, 0.030364990234375, -0.00493621826171875, 0.0089569091796875, 0.015380859375, 0.02301025390625, 0.0308685302734375, -0.002826690673828125, -0.006938934326171875, -0.008392333984375, -0.013397216796875, 0.0202789306640625, -0.02398681640625, 0.04840087890625, 0.031463623046875, -0.001094818115234375, 0.004711151123046875, -0.01123809814453125, -0.006519317626953125, 0.040771484375, -0.0212249755859375, -0.01419830322265625, 0.043121337890625, 0.0198974609375, 0.0178375244140625, -0.025390625, -0.01453399658203125, -0.01312255859375, 0.0243988037109375, 0.04656982421875, 0.0313720703125, 0.01812744140625, -0.039215087890625, 0.02056884765625, 0.051788330078125, 0.06781005859375, -0.041656494140625, -0.044647216796875, 0.000850677490234375, -0.01202392578125, -0.005889892578125, -0.00328826904296875, 0.007671356201171875, -0.0916748046875, -0.044097900390625, -0.006084442138671875, -0.004772186279296875, -0.005279541015625, 0.04290771484375, 0.005153656005859375, 0.032623291015625, -0.05181884765625, -0.01776123046875, -0.0386962890625, -0.0103302001953125, -0.0099334716796875, 0.0218048095703125, 0.036285400390625, 0.0306854248046875, 0.0127410888671875, -0.016876220703125, -0.021881103515625, 0.0361328125, -0.0254364013671875, 0.034210205078125, -0.04229736328125, -0.05072021484375, 0.0265655517578125, 0.02301025390625, 0.032440185546875, 0.0777587890625, 0.06329345703125, 0.0196990966796875, -0.0044097900390625, 0.02447509765625, 0.02642822265625, -0.0248260498046875, 0.005336761474609375, -0.046539306640625, 0.01497650146484375, 0.0077362060546875, -0.007778167724609375, -0.0005965232849121094, -0.025726318359375, 0.051666259765625, -0.00789642333984375, -0.0101470947265625, 0.006946563720703125, -0.051910400390625, 0.0233306884765625, 0.0093994140625, 0.049652099609375, 0.0138397216796875, -0.04095458984375, -0.01192474365234375, 0.00959014892578125, -0.0132904052734375, -0.020477294921875, 0.01557159423828125, -0.030517578125, 0.0496826171875, 0.007572174072265625, -0.00798797607421875, -0.0028553009033203125, -0.0230255126953125, 0.0213623046875, -0.00786590576171875, -0.0003769397735595703, -0.0035152435302734375, -0.01421356201171875, 0.0016241073608398438, 0.0335693359375, -0.003322601318359375, -0.009765625, 0.0885009765625, -0.00791168212890625, -0.01557159423828125, -0.01251220703125, -0.025146484375, 0.006549835205078125, 0.0167236328125, -0.069580078125, 0.008392333984375, 0.017486572265625, -0.00666046142578125, 0.01169586181640625, 0.020477294921875, 0.01224517822265625, -0.0243072509765625, 0.0010900497436523438, -0.0307159423828125, 0.00972747802734375, 0.01177978515625, 0.041748046875, -0.006866455078125, 0.01439666748046875, -0.021087646484375, -0.030181884765625, 0.06402587890625, 0.02789306640625, -0.02587890625, 0.040496826171875, 0.00844573974609375, -0.0206451416015625, 0.0257110595703125, -0.0419921875, 0.039642333984375, 0.03118896484375, -0.0032215118408203125, 0.008941650390625, 0.006267547607421875, -0.0258026123046875, 0.01061248779296875, 0.00785064697265625, 0.007686614990234375, 0.0231781005859375, -0.038055419921875, -0.022247314453125, -0.0009713172912597656, -0.0269775390625, -0.045501708984375, -0.0168914794921875, 0.040283203125, -0.0321044921875, -0.0323486328125, 0.026641845703125, -0.0051422119140625, -0.042938232421875, -0.01959228515625, 0.0030765533447265625, -0.053863525390625, -0.023162841796875, -0.069091796875, 0.015960693359375, 0.0184173583984375, 0.0122528076171875, -0.0950927734375, 0.053619384765625, -0.006195068359375, 0.06787109375, -0.03656005859375, 0.0679931640625, -0.041961669921875, 0.009765625, -0.0360107421875, -0.073486328125, -0.0210723876953125, 0.09991455078125, -0.02899169921875, 0.0008158683776855469, 0.028045654296875, -0.0223388671875, -0.0258636474609375, -0.007244110107421875, 0.01462554931640625, 0.03515625, 0.0008778572082519531, -0.0277252197265625, 0.005802154541015625, 0.00580596923828125, -0.01181793212890625, -0.0292205810546875, -0.00508880615234375, -0.033294677734375, 0.005157470703125, -0.004306793212890625, -0.00804901123046875, 0.007396697998046875, -0.031890869140625, -0.0711669921875, 0.0323486328125, -0.0132904052734375, -0.03173828125, 0.03717041015625, 0.0032444000244140625, -0.037445068359375, 0.0694580078125, 0.0295562744140625, -0.01001739501953125, 0.0082550048828125, 0.002887725830078125, 0.00933837890625, 0.037200927734375, -0.0005407333374023438, -0.01174163818359375, -0.01477813720703125, 0.0200347900390625, 0.030487060546875, 0.02142333984375, 0.01007843017578125, -0.0025310516357421875, 0.0270843505859375, 0.020416259765625, -0.04486083984375, 0.034576416015625, -0.0170440673828125, 0.0038700103759765625, -0.043701171875, -0.02447509765625, 0.00937652587890625, 0.02191162109375, 0.0806884765625, 0.06890869140625, 0.0038928985595703125, -0.06207275390625, 0.0143585205078125, -0.01261138916015625, 0.005908966064453125, -0.01436614990234375, -0.00020503997802734375, -0.055572509765625, -0.0218353271484375, 0.005889892578125, 0.01904296875, -0.0224609375, -0.0245208740234375, -0.01486968994140625, -0.0390625, -0.0157012939453125, 0.0311279296875, -0.03204345703125, 0.03802490234375, 0.06182861328125, -0.04815673828125, -0.009124755859375, -0.01505279541015625, -0.0022258758544921875, 0.017181396484375, -0.057525634765625, 0.033355712890625, -0.013092041015625, -0.031341552734375, 0.04052734375, 0.01428985595703125, 0.0099029541015625, -0.057861328125, -0.04571533203125, 0.0015745162963867188, -0.0016145706176757812, -0.0144195556640625, -0.009490966796875, 0.022003173828125, 0.0305023193359375, -0.01427459716796875, 0.050079345703125, -0.03900146484375, 0.01934814453125, -0.02166748046875, -0.015350341796875, -0.0214996337890625, 0.036773681640625, 0.05303955078125, -0.01386260986328125, 0.0023097991943359375, 0.03179931640625, -0.0174560546875, -0.04547119140625, 0.013916015625, -0.0216064453125, 0.01538848876953125, 0.0018854141235351562 ]